Skip to content
Draft

V1 #9

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
8b0c2f7
Update to v1-alpha
Aviortheking Sep 23, 2021
96cd641
Update
Aviortheking Sep 24, 2021
9ab5654
Update
Aviortheking Sep 24, 2021
b403a94
Update
Aviortheking Sep 27, 2021
79355a9
0.12.0-0
Aviortheking Sep 27, 2021
0eac63f
bump version
Aviortheking Sep 27, 2021
784b080
Added separator for container items
Aviortheking Sep 27, 2021
2ffd6dd
bump
Aviortheking Sep 27, 2021
b34c3c8
Updated support for webpack 5
Aviortheking Sep 30, 2021
cd6502d
Updated components
Aviortheking Sep 30, 2021
b5f80b0
Added workflows
Aviortheking Sep 30, 2021
bc10816
bump
Aviortheking Sep 30, 2021
91674f6
Update Text to support more typography
Aviortheking Oct 1, 2021
bb00114
Updated text
Aviortheking Oct 1, 2021
8d7a8c7
Updated
Aviortheking Oct 6, 2021
926d065
Update
Aviortheking Oct 7, 2021
f71223b
bump version
Aviortheking Oct 7, 2021
3495142
new Fixes
Aviortheking Dec 1, 2021
4ad8e75
Bump to 1.0.0-alpha.5
Aviortheking Dec 1, 2021
a97d849
Fixed missing Sidebar export
Aviortheking Dec 1, 2021
30d507c
Bump package to 1.0.0-alpha.6
Aviortheking Dec 1, 2021
496bafa
Fixed Plus/Minus Sign being missplaced
Aviortheking Dec 2, 2021
32ea3b9
Added three new components
Aviortheking Dec 9, 2021
c35084f
Bump deps
Aviortheking Dec 9, 2021
d5b438c
Fix last Sidebar bugs
Aviortheking Dec 12, 2021
fdb217b
BUMP 1.0.0-alpha.7
Aviortheking Dec 12, 2021
6a6ab8d
misc: Update deps
Aviortheking Apr 5, 2022
45616b1
misc: Add DebugCol to exports
Aviortheking Apr 5, 2022
47399da
feat: Add sidePadding parameter to BoxHeader
Aviortheking Apr 5, 2022
b5f4411
fix: Force Popup to have 0 margin
Aviortheking Apr 5, 2022
aa4e710
misc: Cleanup
Aviortheking Apr 5, 2022
beaa9b1
misc: bump version to alpha 8
Aviortheking Apr 5, 2022
4d1b649
fix: Add back Fieldset
Aviortheking May 10, 2022
5e6d88c
bump: 1.0.0-alpha.9
Aviortheking May 10, 2022
98cfcf2
fix: Multiple inputs bugs
Aviortheking May 13, 2022
71ec45c
fix: Circular dependencies
Aviortheking May 13, 2022
6f1ab96
bump: Alpha 10
Aviortheking May 13, 2022
407ccca
fix: Allow to disable automatic icons
Aviortheking May 13, 2022
895716c
fix: Upgrade deps
Aviortheking Sep 12, 2022
b43329c
feat: Moved to vite
Aviortheking Sep 27, 2022
fec1c9e
fix: Build including NextJS
Aviortheking Sep 27, 2022
8d6e256
bump: version 1.0.0-alpha.12
Aviortheking Sep 27, 2022
644cb5b
fix: choices not having choices on start
Aviortheking Sep 28, 2022
e0b6743
bump: Alpha 13
Aviortheking Sep 28, 2022
62008de
fix: onValueEvent not sending with value
Aviortheking Sep 28, 2022
c92dc2d
bump: version
Aviortheking Sep 28, 2022
cd2304d
fix: Props event not updating internal value
Aviortheking Sep 28, 2022
a3f9cdf
bump: Alpha 15
Aviortheking Sep 28, 2022
fb72d5a
fix: if this.props.value is not set onValue event is launched
Aviortheking Sep 28, 2022
4f16367
bump: Alpha 16
Aviortheking Sep 28, 2022
3604659
fix: choice not respected on startup
Aviortheking Sep 28, 2022
261f008
fix: Dep not installed for custom build
Aviortheking Oct 2, 2022
d8995ed
fix: Build considering index.ts as an external deps
Aviortheking Oct 2, 2022
71bcd60
bump: Alpha 17
Aviortheking Oct 2, 2022
504f155
fix: Build error when typing is not added correctly
Aviortheking Oct 2, 2022
c2f6e7e
fix: like the precedent commit
Aviortheking Oct 2, 2022
81f654e
feat: Move to css variables !
Aviortheking Oct 3, 2022
6f8c627
feat: Allow to have a base theme and to have child theming in page
Aviortheking Oct 3, 2022
c47a02c
feat: Remove post install compilation
Aviortheking Oct 3, 2022
2bb4e98
bump: BETA 1
Aviortheking Oct 3, 2022
f213ec4
feat: add left childrens to navbar
Aviortheking Oct 8, 2022
43b6d64
fix: Missing color on Popup
Aviortheking Oct 10, 2022
6d7fc01
bump: BETA 2
Aviortheking Oct 10, 2022
14f36f0
fix: menu closing when clicking on it
Aviortheking Oct 16, 2022
8a360e1
bump: BETA 3
Aviortheking Oct 16, 2022
41c01d8
bump BETA 3
Aviortheking Oct 18, 2022
2646afa
feat: Add back scrollbar
Aviortheking Oct 18, 2022
128dbe3
fix: Button not accepting custom classes
Aviortheking Oct 18, 2022
bf4ceeb
bump: BETA 6
Aviortheking Oct 18, 2022
7526114
fix: Allow to havem obile only links for navbar, menu not displaying
Aviortheking Oct 21, 2022
2b75a3a
bump: BETA 7
Aviortheking Oct 21, 2022
197617e
fix: Fullscreen bein weird
Aviortheking Oct 23, 2022
cdedcdd
bump: BETA 8
Aviortheking Oct 23, 2022
5601a40
feat: Customize range slider
Aviortheking Oct 23, 2022
e105399
bump
Aviortheking Oct 23, 2022
931062a
feat: Add parent elements to Col component
Aviortheking Nov 21, 2022
66ee86c
bump: BETA 10
Aviortheking Nov 21, 2022
d985ffc
feat: Started moving texts to the new CSS variable ones
Aviortheking Nov 26, 2022
5540647
fix: Add normal variant of colors for easyness of usage in projects
Aviortheking Dec 9, 2022
bf8b06b
bump: BETA-12
Aviortheking Dec 9, 2022
29654e3
fix: Add name to logo for accessibility
Aviortheking Dec 12, 2022
caa646b
bump version
Aviortheking Dec 12, 2022
2d8076e
fix: Moved to using `gap` css instead of hacking
Aviortheking Jan 30, 2023
c1b9be4
bump: BETA 14
Aviortheking Jan 30, 2023
e65c7e4
fix: PureComponent shit
Aviortheking Feb 7, 2023
eaf5092
bump: version
Aviortheking Feb 7, 2023
acc4230
fix: Add pre-wrap to Text component so that elements with \n wrap
Aviortheking Feb 20, 2023
40c5a23
bmup: BETA 16
Aviortheking Feb 20, 2023
fef3ebf
feat: Add padding to input svgs so they are more clickable
Aviortheking Feb 27, 2023
f197e92
bump: beta 17
Aviortheking Feb 27, 2023
40a5a2d
fix: button being decalled
Aviortheking Feb 27, 2023
edc82da
bump: BETA 18
Aviortheking Feb 27, 2023
4617c3e
fix: Col not respecting gap with static values
Aviortheking Mar 28, 2023
fc41cc4
bump: beta 19
Aviortheking Mar 28, 2023
589181c
fix: box background being too dark
Aviortheking Mar 28, 2023
d5ba10e
bump: BETA 20
Aviortheking Mar 28, 2023
4066de1
feat: handle number input better
Aviortheking Jun 23, 2023
33201a7
bump beta
Aviortheking Jun 23, 2023
c7b554b
fix: value not being updated
Aviortheking Jun 26, 2023
f76d0ab
bump: version
Aviortheking Jun 26, 2023
a6c5399
fix: strict input not sending infos
Aviortheking Jul 12, 2023
c1b2fb3
bump: BETA 23
Aviortheking Jul 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
extends: [
"./node_modules/@dzeio/config/eslint/react-typescript"
]
}
5 changes: 4 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
* text=lf
* text=auto eol=lf
*.png binary
*.jpg binary
*.jpeg binary
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
# Workflow files stored in the
# default location of `.github/workflows`
directory: "/"
schedule:
interval: "daily"
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Build & Check

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Use Node.js 16
uses: actions/setup-node@v2.4.1
with:
node-version: 16.x

- name: Install packages
run: npm ci

- name: Build components
run: npm run build
65 changes: 65 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
37 changes: 37 additions & 0 deletions .github/workflows/ossar-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# This workflow integrates a collection of open source static analysis tools
# with GitHub code scanning. For documentation, or to provide feedback, visit
# https://github.com/github/ossar-action
name: OSSAR

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]

jobs:
OSSAR-Scan:
# OSSAR runs on windows-latest.
# ubuntu-latest and macos-latest support coming soon
runs-on: windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Run open source static analysis tools
- name: Run OSSAR
uses: github/ossar-action@v1
id: ossar

# Upload results to the Security tab
- name: Upload OSSAR results
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: ${{ steps.ossar.outputs.sarifFile }}
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: publish
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
12 changes: 4 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
module/
node_modules/
*.mjs
*.js
!src/dzeio/stylusUtils.js
*.d.ts
types/
!rollup.config.js
!src/stylus.d.ts
!.storybook/*.js

index.es.js
index.umd.js
style.css
*.tgz
11 changes: 8 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
.github/
.storybook/
node_modules/
*.stories.js
src/
.editorconfig
.gitattributes
.gitignore
.npmignore
yarn.lock
yarn-error.log
LICENSE
vite.config.js
package-lock.json
tsconfig.json
README.md
26 changes: 8 additions & 18 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
const path = require("path");
const webpack = require('webpack')

module.exports = {
"stories": [
"../src/dzeio/**/*.stories.tsx",
"../src/**/*.stories.tsx",
],
core: {
builder: "@storybook/builder-vite"
},
staticDirs: ["./public"],
"addons": [
"@storybook/addon-essentials"
],
reactOptions: {
strictMode: true
},
typescript: {
check: false,
checkOptions: {},
Expand All @@ -16,19 +20,5 @@ module.exports = {
shouldExtractLiteralValuesFromEnum: true,
propFilter: (prop) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true),
},
},
presets: [path.resolve(__dirname, "./next.js")],
// Allow to use Next/Image
webpackFinal: (config) => {
config.plugins.push(new webpack.DefinePlugin({
'process.env.__NEXT_IMAGE_OPTS': JSON.stringify({
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
domains: [],
path: '/',
loader: 'default',
})
}))
return config
}
}
17 changes: 0 additions & 17 deletions .storybook/mockNextImage.js

This file was deleted.

10 changes: 7 additions & 3 deletions .storybook/mockNextRouter.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import Router from 'next/router';
import Router from 'next/router'

Router.router = {
push: async () => {},
push: async (route) => {
console.log('Pushing router to', route)
},
replace: async () => {},
prefetch: () => {},
route: '/mock-route',
pathname: 'mock-path',};
asPath: '/mock-route',
pathname: 'mock-path',
}
37 changes: 0 additions & 37 deletions .storybook/next.js

This file was deleted.

8 changes: 4 additions & 4 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '../src/dzeio/general.styl'
import '../src/general.styl'
import './mockNextRouter'
import './mockNextImage'

export const parameters = {
layout: 'centered'
}
layout: 'centered',
actions: { argTypesRegex: '^on.*' }
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Florian Bouillon

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Dzeio Components
Loading