@rolemodel/optics 2.1.5 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/pull_request_template.md +18 -9
- package/.github/workflows/linting.yml +3 -2
- package/.github/workflows/publish-storybook.yml +3 -2
- package/.github/workflows/release-package.yml +4 -3
- package/.node-version +1 -0
- package/.prettierignore +1 -0
- package/.stylelintrc.json +3 -2
- package/.yarn/install-state.gz +0 -0
- package/build_token_json.js +5 -4
- package/dist/css/addons/panel.css +3 -3
- package/dist/css/addons/tom-select.css +5 -5
- package/dist/css/components/accordion.css +3 -3
- package/dist/css/components/alert.css +2 -2
- package/dist/css/components/avatar.css +6 -6
- package/dist/css/components/button.css +3 -3
- package/dist/css/components/button_group.css +4 -4
- package/dist/css/components/card.css +4 -4
- package/dist/css/components/confirm-dialog.css +1 -1
- package/dist/css/components/divider.css +7 -6
- package/dist/css/components/form.css +15 -15
- package/dist/css/components/icon.css +4 -4
- package/dist/css/components/index.css +1 -0
- package/dist/css/components/modal.css +25 -43
- package/dist/css/components/navbar.css +6 -4
- package/dist/css/components/pagination.css +1 -1
- package/dist/css/components/segmented-control.css +135 -0
- package/dist/css/components/side_panel.css +4 -4
- package/dist/css/components/sidebar.css +11 -8
- package/dist/css/components/spinner.css +3 -3
- package/dist/css/components/switch.css +8 -8
- package/dist/css/components/table.css +3 -3
- package/dist/css/components/tooltip.css +2 -2
- package/dist/css/core/base.css +3 -4
- package/dist/css/core/layout.css +114 -7
- package/dist/css/core/tokens/base_tokens.css +18 -11
- package/dist/css/core/utilities.css +93 -68
- package/dist/css/optics.css +465 -211
- package/dist/css/optics.min.css +1 -1
- package/dist/package.json +21 -28
- package/dist/tokens/tokens.json +1 -1
- package/eslint.config.mjs +27 -0
- package/package.json +21 -28
- package/.eslintrc.json +0 -14
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolemodel/optics",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"packageManager": "yarn@4.8.1",
|
|
5
5
|
"description": "Optics is a css package that provides base styles and components that can be integrated and customized in a variety of projects.",
|
|
6
6
|
"main": "dist/css/optics.css",
|
|
@@ -46,35 +46,28 @@
|
|
|
46
46
|
"modern-css-reset": "^1.4.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@babel/preset-env": "^7.
|
|
50
|
-
"@
|
|
51
|
-
"@storybook/
|
|
52
|
-
"@storybook/html": "^
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"@storybook/theming": "^8.5.3",
|
|
58
|
-
"cssnano": "^7.0.6",
|
|
59
|
-
"eslint": "^8.45.0",
|
|
60
|
-
"eslint-config-prettier": "^9.1.0",
|
|
61
|
-
"eslint-config-standard": "^17.1.0",
|
|
62
|
-
"eslint-plugin-import": "^2.27.5",
|
|
63
|
-
"eslint-plugin-n": "^16.0.1",
|
|
64
|
-
"eslint-plugin-promise": "^6.1.1",
|
|
65
|
-
"eslint-plugin-storybook": "^0.11.2",
|
|
49
|
+
"@babel/preset-env": "^7.28.5",
|
|
50
|
+
"@eslint/js": "^9.39.2",
|
|
51
|
+
"@storybook/addon-docs": "^10.1.11",
|
|
52
|
+
"@storybook/html-vite": "^10.1.11",
|
|
53
|
+
"cssnano": "^7.1.2",
|
|
54
|
+
"eslint": "^9.39.2",
|
|
55
|
+
"eslint-config-prettier": "^10.1.8",
|
|
56
|
+
"eslint-plugin-storybook": "^10.1.11",
|
|
66
57
|
"generate-template-files": "^3.2.1",
|
|
67
|
-
"
|
|
68
|
-
"postcss
|
|
69
|
-
"postcss-
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"storybook
|
|
73
|
-
"
|
|
74
|
-
"
|
|
58
|
+
"globals": "^16.5.0",
|
|
59
|
+
"postcss": "^8.5.6",
|
|
60
|
+
"postcss-cli": "^11.0.1",
|
|
61
|
+
"postcss-import": "^16.1.1",
|
|
62
|
+
"prettier": "^3.7.4",
|
|
63
|
+
"storybook": "^10.1.11",
|
|
64
|
+
"storybook-design-token": "^5.0.0",
|
|
65
|
+
"style-loader": "^4.0.0",
|
|
66
|
+
"stylelint": "^16.26.1",
|
|
75
67
|
"stylelint-config-idiomatic-order": "^10.0.0",
|
|
76
|
-
"stylelint-prettier": "^5.0.
|
|
77
|
-
"
|
|
68
|
+
"stylelint-prettier": "^5.0.3",
|
|
69
|
+
"stylelint-use-logical": "^2.1.2",
|
|
70
|
+
"vite": "^7.3.0"
|
|
78
71
|
},
|
|
79
72
|
"peerDependencies": {
|
|
80
73
|
"tom-select": "^2.0.0"
|
package/dist/tokens/tokens.json
CHANGED
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"accordion": "rotate 120ms ease-in",
|
|
128
128
|
"input": "all 120ms ease-in",
|
|
129
129
|
"sidebar": "all 200ms ease-in-out",
|
|
130
|
-
"modal": "all
|
|
130
|
+
"modal": "all var(--op-transition-modal-time) ease-in",
|
|
131
131
|
"panel": "right 400ms ease-in",
|
|
132
132
|
"tooltip": "all 300ms ease-in 300ms"
|
|
133
133
|
},
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import js from '@eslint/js'
|
|
2
|
+
import globals from 'globals'
|
|
3
|
+
import { defineConfig } from 'eslint/config'
|
|
4
|
+
|
|
5
|
+
import eslintConfigPrettier from 'eslint-config-prettier/flat'
|
|
6
|
+
import storybook from 'eslint-plugin-storybook'
|
|
7
|
+
|
|
8
|
+
export default defineConfig([
|
|
9
|
+
{
|
|
10
|
+
files: ['**/*.{js,mjs,cjs}'],
|
|
11
|
+
plugins: { js },
|
|
12
|
+
extends: ['js/recommended'],
|
|
13
|
+
languageOptions: { globals: globals.browser },
|
|
14
|
+
rules: {
|
|
15
|
+
'no-unused-vars': [
|
|
16
|
+
'warn',
|
|
17
|
+
{
|
|
18
|
+
argsIgnorePattern: '^_', // Allow unused arguments starting with an underscore
|
|
19
|
+
varsIgnorePattern: '^_', // Allow unused variables starting with an underscore
|
|
20
|
+
ignoreRestSiblings: true,
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
eslintConfigPrettier,
|
|
26
|
+
...storybook.configs['flat/recommended'],
|
|
27
|
+
])
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolemodel/optics",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"packageManager": "yarn@4.8.1",
|
|
5
5
|
"description": "Optics is a css package that provides base styles and components that can be integrated and customized in a variety of projects.",
|
|
6
6
|
"main": "dist/css/optics.css",
|
|
@@ -46,35 +46,28 @@
|
|
|
46
46
|
"modern-css-reset": "^1.4.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@babel/preset-env": "^7.
|
|
50
|
-
"@
|
|
51
|
-
"@storybook/
|
|
52
|
-
"@storybook/html": "^
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"@storybook/theming": "^8.5.3",
|
|
58
|
-
"cssnano": "^7.0.6",
|
|
59
|
-
"eslint": "^8.45.0",
|
|
60
|
-
"eslint-config-prettier": "^9.1.0",
|
|
61
|
-
"eslint-config-standard": "^17.1.0",
|
|
62
|
-
"eslint-plugin-import": "^2.27.5",
|
|
63
|
-
"eslint-plugin-n": "^16.0.1",
|
|
64
|
-
"eslint-plugin-promise": "^6.1.1",
|
|
65
|
-
"eslint-plugin-storybook": "^0.11.2",
|
|
49
|
+
"@babel/preset-env": "^7.28.5",
|
|
50
|
+
"@eslint/js": "^9.39.2",
|
|
51
|
+
"@storybook/addon-docs": "^10.1.11",
|
|
52
|
+
"@storybook/html-vite": "^10.1.11",
|
|
53
|
+
"cssnano": "^7.1.2",
|
|
54
|
+
"eslint": "^9.39.2",
|
|
55
|
+
"eslint-config-prettier": "^10.1.8",
|
|
56
|
+
"eslint-plugin-storybook": "^10.1.11",
|
|
66
57
|
"generate-template-files": "^3.2.1",
|
|
67
|
-
"
|
|
68
|
-
"postcss
|
|
69
|
-
"postcss-
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"storybook
|
|
73
|
-
"
|
|
74
|
-
"
|
|
58
|
+
"globals": "^16.5.0",
|
|
59
|
+
"postcss": "^8.5.6",
|
|
60
|
+
"postcss-cli": "^11.0.1",
|
|
61
|
+
"postcss-import": "^16.1.1",
|
|
62
|
+
"prettier": "^3.7.4",
|
|
63
|
+
"storybook": "^10.1.11",
|
|
64
|
+
"storybook-design-token": "^5.0.0",
|
|
65
|
+
"style-loader": "^4.0.0",
|
|
66
|
+
"stylelint": "^16.26.1",
|
|
75
67
|
"stylelint-config-idiomatic-order": "^10.0.0",
|
|
76
|
-
"stylelint-prettier": "^5.0.
|
|
77
|
-
"
|
|
68
|
+
"stylelint-prettier": "^5.0.3",
|
|
69
|
+
"stylelint-use-logical": "^2.1.2",
|
|
70
|
+
"vite": "^7.3.0"
|
|
78
71
|
},
|
|
79
72
|
"peerDependencies": {
|
|
80
73
|
"tom-select": "^2.0.0"
|
package/.eslintrc.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
"extends": ["standard", "prettier"],
|
|
4
|
-
"rules": {
|
|
5
|
-
"no-unused-vars": [
|
|
6
|
-
"warn",
|
|
7
|
-
{
|
|
8
|
-
"argsIgnorePattern": "^_", // Allow unused arguments starting with an underscore
|
|
9
|
-
"varsIgnorePattern": "^_", // Allow unused variables starting with an underscore
|
|
10
|
-
"ignoreRestSiblings": true
|
|
11
|
-
}
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
}
|