winduum 2.0.0-next.1 → 2.0.0-next.3
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/package.json +12 -12
- package/plugin/index.js +10 -10
- package/plugin/utilities/dot.js +2 -2
- package/src/base/breakpoints.css +10 -10
- package/src/base/defaults.css +1 -1
- package/src/base/keyframes.css +3 -3
- package/src/components/badge/bordered.css +5 -15
- package/src/components/badge/circle.css +4 -4
- package/src/components/badge/default.css +34 -18
- package/src/components/badge/index.css +1 -1
- package/src/components/badge/lg.css +2 -2
- package/src/components/badge/muted.css +3 -3
- package/src/components/badge/props/default.css +9 -0
- package/src/components/badge/readme.md +12 -12
- package/src/components/badge/sm.css +3 -3
- package/src/components/badge/square.css +3 -3
- package/src/components/breadcrumb/default.css +7 -7
- package/src/components/breadcrumb/index.css +1 -1
- package/src/components/breadcrumb/props/default.css +5 -0
- package/src/components/breadcrumb/readme.md +1 -1
- package/src/components/button/bordered.css +18 -18
- package/src/components/button/circle.css +5 -5
- package/src/components/button/default.css +29 -29
- package/src/components/button/fill.css +5 -5
- package/src/components/button/ghosted.css +13 -13
- package/src/components/button/interactive.css +32 -32
- package/src/components/button/lg.css +3 -3
- package/src/components/button/muted.css +13 -13
- package/src/components/button/props/default.css +9 -9
- package/src/components/button/props/interactive.css +7 -7
- package/src/components/button/raised.css +5 -5
- package/src/components/button/readme.md +2 -2
- package/src/components/button/sm.css +3 -3
- package/src/components/button/square.css +4 -4
- package/src/components/card/default.css +4 -6
- package/src/components/card/index.css +1 -1
- package/src/components/card/props/default.css +6 -0
- package/src/components/card/readme.md +1 -1
- package/src/components/carousel/content.css +2 -2
- package/src/components/carousel/default.css +1 -1
- package/src/components/check/default.css +34 -41
- package/src/components/check/index.css +1 -2
- package/src/components/check/interactive.css +31 -25
- package/src/components/check/invalid.css +7 -6
- package/src/components/check/props/default.css +13 -0
- package/src/components/check/readme.md +8 -9
- package/src/components/color/default.css +13 -25
- package/src/components/color/index.css +1 -2
- package/src/components/color/interactive.css +18 -12
- package/src/components/color/props/default.css +7 -0
- package/src/components/color/readme.md +7 -8
- package/src/components/compare/default.css +17 -18
- package/src/components/compare/index.js +2 -2
- package/src/components/control/color.css +8 -8
- package/src/components/control/default.css +36 -39
- package/src/components/control/file.css +14 -12
- package/src/components/control/floating-interactive.css +5 -5
- package/src/components/control/floating.css +7 -7
- package/src/components/control/icon.css +8 -8
- package/src/components/control/index.css +5 -6
- package/src/components/control/interactive.css +9 -9
- package/src/components/control/invalid.css +7 -7
- package/src/components/control/props/color.css +5 -0
- package/src/components/control/props/default.css +16 -0
- package/src/components/control/props/floating.css +4 -0
- package/src/components/control/props/icon.css +4 -0
- package/src/components/control/props/select.css +4 -0
- package/src/components/control/readme.md +19 -20
- package/src/components/control/select-multiple.css +2 -2
- package/src/components/control/select.css +8 -8
- package/src/components/dialog/content.css +7 -7
- package/src/components/dialog/default.css +16 -10
- package/src/components/dialog/index.css +2 -2
- package/src/components/dialog/index.d.ts +2 -2
- package/src/components/dialog/index.js +15 -15
- package/src/components/dialog/props/content.css +5 -0
- package/src/components/dialog/props/default.css +6 -0
- package/src/components/dialog/readme.md +2 -2
- package/src/components/drawer/content.css +4 -4
- package/src/components/drawer/default.css +9 -6
- package/src/components/drawer/index.css +2 -2
- package/src/components/drawer/index.js +3 -3
- package/src/components/drawer/props/content.css +7 -0
- package/src/components/drawer/props/default.css +3 -0
- package/src/components/drawer/readme.md +2 -2
- package/src/components/field/default.css +6 -6
- package/src/components/form/index.js +5 -5
- package/src/components/group/default.css +11 -11
- package/src/components/group/readme.md +6 -6
- package/src/components/group/vertical.css +2 -2
- package/src/components/heading/default.css +6 -6
- package/src/components/heading/index.css +1 -1
- package/src/components/heading/lg.css +2 -2
- package/src/components/heading/props/default.css +6 -0
- package/src/components/heading/readme.md +8 -8
- package/src/components/heading/sm.css +2 -2
- package/src/components/image/avatar.css +1 -1
- package/src/components/image/default.css +2 -2
- package/src/components/image/readme.md +6 -6
- package/src/components/index.css +0 -2
- package/src/components/info/default.css +6 -6
- package/src/components/info/index.css +1 -1
- package/src/components/info/props/default.css +4 -0
- package/src/components/info/readme.md +6 -6
- package/src/components/label/default.css +6 -6
- package/src/components/label/index.css +1 -1
- package/src/components/label/props/default.css +4 -0
- package/src/components/label/readme.md +6 -6
- package/src/components/link/default.css +6 -6
- package/src/components/link/index.css +1 -2
- package/src/components/link/interactive.css +3 -10
- package/src/components/link/props/default.css +4 -0
- package/src/components/link/readme.md +7 -7
- package/src/components/notice/default.css +16 -20
- package/src/components/notice/index.css +1 -1
- package/src/components/notice/props/default.css +8 -0
- package/src/components/notice/readme.md +6 -6
- package/src/components/pagination/default.css +2 -2
- package/src/components/popover/content.css +15 -16
- package/src/components/popover/default.css +1 -1
- package/src/components/popover/index.css +1 -1
- package/src/components/popover/props/content.css +8 -0
- package/src/components/popover/readme.md +1 -1
- package/src/components/progress/default.css +15 -16
- package/src/components/progress/index.css +1 -1
- package/src/components/progress/lg.css +2 -2
- package/src/components/progress/meter.css +7 -7
- package/src/components/progress/props/default.css +6 -0
- package/src/components/progress/readme.md +9 -9
- package/src/components/progress/sm.css +2 -2
- package/src/components/range/default.css +47 -49
- package/src/components/range/index.css +1 -1
- package/src/components/range/index.js +2 -2
- package/src/components/range/multi.css +6 -6
- package/src/components/range/props/default.css +9 -0
- package/src/components/range/readme.md +8 -8
- package/src/components/range/vertical.css +3 -3
- package/src/components/rating/default.css +11 -11
- package/src/components/rating/index.css +1 -1
- package/src/components/rating/invalid.css +3 -3
- package/src/components/rating/props/default.css +8 -0
- package/src/components/rating/readme.md +7 -7
- package/src/components/switch/default.css +23 -26
- package/src/components/switch/index.css +1 -1
- package/src/components/switch/interactive.css +13 -9
- package/src/components/switch/invalid.css +4 -4
- package/src/components/switch/props/default.css +17 -0
- package/src/components/switch/readme.md +8 -8
- package/src/components/table/default.css +11 -11
- package/src/components/table/index.css +1 -2
- package/src/components/table/interactive.css +14 -14
- package/src/components/table/props/default.css +8 -0
- package/src/components/table/readme.md +1 -2
- package/src/components/tabs/default.css +6 -6
- package/src/components/text/default.css +102 -72
- package/src/components/text/index.css +1 -1
- package/src/components/text/props/default.css +9 -0
- package/src/components/text/readme.md +6 -6
- package/src/components/title/default.css +6 -6
- package/src/components/title/index.css +1 -1
- package/src/components/title/lg.css +2 -2
- package/src/components/title/props/default.css +5 -0
- package/src/components/title/readme.md +8 -8
- package/src/components/title/sm.css +2 -2
- package/src/components/toast/content.css +16 -15
- package/src/components/toast/default.css +8 -8
- package/src/components/toast/index.css +2 -2
- package/src/components/toast/props/content.css +7 -0
- package/src/components/toast/props/default.css +4 -0
- package/src/components/toast/readme.md +2 -2
- package/src/components/toaster/default.css +4 -4
- package/src/components/toaster/index.css +1 -1
- package/src/components/toaster/index.js +8 -8
- package/src/components/toaster/props/default.css +4 -0
- package/src/components/toaster/readme.md +1 -1
- package/src/components/tooltip/default.css +15 -15
- package/src/components/tooltip/index.css +1 -1
- package/src/components/tooltip/props/default.css +12 -0
- package/src/components/tooltip/readme.md +2 -2
- package/src/utilities/divider.css +13 -3
- package/src/utilities/ripple/index.css +9 -4
- package/src/utilities/skeleton/default.css +8 -1
- package/src/utilities/skeleton/props/default.css +3 -3
- package/src/utilities/swap/default.css +3 -3
- package/src/components/badge/default-props.css +0 -8
- package/src/components/breadcrumb/default-props.css +0 -5
- package/src/components/card/default-props.css +0 -4
- package/src/components/check/default-props.css +0 -13
- package/src/components/check/interactive-props.css +0 -3
- package/src/components/color/default-props.css +0 -11
- package/src/components/color/interactive-props.css +0 -3
- package/src/components/control/color-props.css +0 -5
- package/src/components/control/default-props.css +0 -16
- package/src/components/control/floating-props.css +0 -4
- package/src/components/control/icon-props.css +0 -4
- package/src/components/control/interactive-props.css +0 -3
- package/src/components/control/select-props.css +0 -4
- package/src/components/dialog/content-props.css +0 -5
- package/src/components/dialog/default-props.css +0 -6
- package/src/components/drawer/content-props.css +0 -6
- package/src/components/drawer/default-props.css +0 -3
- package/src/components/heading/default-props.css +0 -6
- package/src/components/info/default-props.css +0 -4
- package/src/components/label/default-props.css +0 -4
- package/src/components/link/default-props.css +0 -4
- package/src/components/link/interactive-props.css +0 -5
- package/src/components/notice/default-props.css +0 -8
- package/src/components/popover/content-props.css +0 -8
- package/src/components/progress/default-props.css +0 -4
- package/src/components/range/default-props.css +0 -10
- package/src/components/rating/default-props.css +0 -5
- package/src/components/switch/default-props.css +0 -17
- package/src/components/switch/interactive-props.css +0 -3
- package/src/components/table/default-props.css +0 -8
- package/src/components/table/interactive-props.css +0 -4
- package/src/components/text/default-props.css +0 -9
- package/src/components/title/default-props.css +0 -5
- package/src/components/toast/content-props.css +0 -7
- package/src/components/toast/default-props.css +0 -4
- package/src/components/toaster/default-props.css +0 -4
- package/src/components/tooltip/default-props.css +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "winduum",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "types/index.d.ts",
|
|
6
6
|
"main": "plugin/index.cjs",
|
|
@@ -19,28 +19,28 @@
|
|
|
19
19
|
"publish-next": "npm publish --tag next"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@floating-ui/dom": "^1.6.
|
|
22
|
+
"@floating-ui/dom": "^1.6.7",
|
|
23
23
|
"@stylistic/stylelint-config": "^1.0.1",
|
|
24
24
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
25
|
-
"@vitejs/plugin-vue": "^5.0.
|
|
25
|
+
"@vitejs/plugin-vue": "^5.0.5",
|
|
26
26
|
"autoprefixer": "^10.4.19",
|
|
27
27
|
"css-has-pseudo": "^6.0.5",
|
|
28
|
-
"dts-buddy": "^0.
|
|
28
|
+
"dts-buddy": "^0.5.1",
|
|
29
29
|
"eslint": "^8.57.0",
|
|
30
30
|
"eslint-config-standard": "^17.1.0",
|
|
31
31
|
"fast-glob": "^3.3.2",
|
|
32
|
-
"postcss": "^8.4.
|
|
33
|
-
"postcss-custom-media": "^10.0.
|
|
32
|
+
"postcss": "^8.4.39",
|
|
33
|
+
"postcss-custom-media": "^10.0.8",
|
|
34
34
|
"postcss-import": "^16.1.0",
|
|
35
35
|
"postcss-nesting": "^12.1.5",
|
|
36
36
|
"slide-element": "^2.3.1",
|
|
37
|
-
"stylelint": "^16.
|
|
38
|
-
"stylelint-config-standard": "^36.0.
|
|
39
|
-
"tailwindcss": "^3.4.
|
|
37
|
+
"stylelint": "^16.7.0",
|
|
38
|
+
"stylelint-config-standard": "^36.0.1",
|
|
39
|
+
"tailwindcss": "^3.4.5",
|
|
40
40
|
"tailwindcss-animate": "^1.0.7",
|
|
41
|
-
"typescript": "^5.
|
|
42
|
-
"vite": "^5.
|
|
43
|
-
"vue": "^3.4.
|
|
41
|
+
"typescript": "^5.5.3",
|
|
42
|
+
"vite": "^5.3.3",
|
|
43
|
+
"vue": "^3.4.31"
|
|
44
44
|
},
|
|
45
45
|
"files": [
|
|
46
46
|
"index.js",
|
package/plugin/index.js
CHANGED
|
@@ -82,16 +82,16 @@ export const defaultConfig = {
|
|
|
82
82
|
animations: ['ripple', 'spin', 'move-indeterminate'],
|
|
83
83
|
mask: ['check', 'radio', 'angle-up', 'angle-down'],
|
|
84
84
|
screens: {
|
|
85
|
-
xs: '22.
|
|
86
|
-
sm: '
|
|
87
|
-
md: '
|
|
88
|
-
lg: '
|
|
89
|
-
xl: '
|
|
90
|
-
'2xl': '
|
|
91
|
-
'3xl': '
|
|
92
|
-
'4xl': '
|
|
93
|
-
xxl: '
|
|
94
|
-
'2xxl': '
|
|
85
|
+
xs: '22.5rem',
|
|
86
|
+
sm: '26rem',
|
|
87
|
+
md: '46.5rem',
|
|
88
|
+
lg: '60rem',
|
|
89
|
+
xl: '76rem',
|
|
90
|
+
'2xl': '82rem',
|
|
91
|
+
'3xl': '88rem',
|
|
92
|
+
'4xl': '100rem',
|
|
93
|
+
xxl: '126rem',
|
|
94
|
+
'2xxl': '158rem'
|
|
95
95
|
},
|
|
96
96
|
settings: {
|
|
97
97
|
rgb: false,
|
package/plugin/utilities/dot.js
CHANGED
|
@@ -3,8 +3,8 @@ export default {
|
|
|
3
3
|
display: 'inline-flex',
|
|
4
4
|
width: '0.625rem',
|
|
5
5
|
height: '0.625rem',
|
|
6
|
-
borderRadius: 'var(--
|
|
7
|
-
backgroundColor: '
|
|
6
|
+
borderRadius: 'var(--radius-full)',
|
|
7
|
+
backgroundColor: 'var(--color-accent)',
|
|
8
8
|
flexShrink: '0',
|
|
9
9
|
justifyContent: 'center',
|
|
10
10
|
alignItems: 'center'
|
package/src/base/breakpoints.css
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
@custom-media --media-xs (min-width: 22.
|
|
2
|
-
@custom-media --media-sm (min-width:
|
|
3
|
-
@custom-media --media-md (min-width:
|
|
4
|
-
@custom-media --media-lg (min-width:
|
|
5
|
-
@custom-media --media-xl (min-width:
|
|
6
|
-
@custom-media --media-2xl (min-width:
|
|
7
|
-
@custom-media --media-3xl (min-width:
|
|
8
|
-
@custom-media --media-4xl (min-width:
|
|
9
|
-
@custom-media --media-xxl (min-width:
|
|
10
|
-
@custom-media --media-2xxl (min-width:
|
|
1
|
+
@custom-media --media-xs (min-width: 22.5rem);
|
|
2
|
+
@custom-media --media-sm (min-width: 26rem);
|
|
3
|
+
@custom-media --media-md (min-width: 46.5rem);
|
|
4
|
+
@custom-media --media-lg (min-width: 60rem);
|
|
5
|
+
@custom-media --media-xl (min-width: 76rem);
|
|
6
|
+
@custom-media --media-2xl (min-width: 82rem);
|
|
7
|
+
@custom-media --media-3xl (min-width: 88rem);
|
|
8
|
+
@custom-media --media-4xl (min-width: 100rem);
|
|
9
|
+
@custom-media --media-xxl (min-width: 126rem);
|
|
10
|
+
@custom-media --media-2xxl (min-width: 158rem);
|
package/src/base/defaults.css
CHANGED
package/src/base/keyframes.css
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
@keyframes ripple {
|
|
8
8
|
to {
|
|
9
9
|
transform: scale(2.5);
|
|
10
|
-
opacity: 0
|
|
10
|
+
opacity: 0%;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
|
|
24
24
|
@keyframes fade-in {
|
|
25
25
|
from {
|
|
26
|
-
opacity: 0
|
|
26
|
+
opacity: 0%;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
@keyframes fade-out {
|
|
31
31
|
from {
|
|
32
|
-
opacity:
|
|
32
|
+
opacity: 100%;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
.badge {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
--tw-border-mix: transparent;
|
|
7
|
-
|
|
8
|
-
border: var(--badge-border-width) solid color-mix(in var(--default-color-space), var(--badge-border-color) calc(var(--tw-border-opacity) * 100%), var(--tw-border-mix));
|
|
9
|
-
padding-inline: calc(var(--badge-px) - var(--badge-border-width));
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&:is(.bordered) {
|
|
13
|
-
--badge-color: var(--color-accent);
|
|
14
|
-
--tw-bg-opacity: 0;
|
|
15
|
-
}
|
|
1
|
+
.x-badge:is(.bordered) {
|
|
2
|
+
--x-badge-border-width: 1px;
|
|
3
|
+
--x-badge-border-color-opacity: 100%;
|
|
4
|
+
--x-badge-background-color-opacity: 0%;
|
|
5
|
+
--x-badge-color: var(--color-accent);
|
|
16
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
.badge:is(.circle) {
|
|
2
|
-
--badge-
|
|
3
|
-
--badge-width: var(--badge-height);
|
|
4
|
-
--badge-border-radius: var(--radius-full);
|
|
1
|
+
.x-badge:is(.circle) {
|
|
2
|
+
--x-badge-padding-inline: var(--x-badge-padding-block);
|
|
3
|
+
--x-badge-width: var(--x-badge-height);
|
|
4
|
+
--x-badge-border-radius: var(--radius-full);
|
|
5
5
|
}
|
|
@@ -1,22 +1,38 @@
|
|
|
1
|
-
.badge {
|
|
2
|
-
--badge-
|
|
3
|
-
--badge-color: var(--color-accent
|
|
4
|
-
--
|
|
5
|
-
--tw-text-opacity: 1;
|
|
6
|
-
--tw-bg-mix: transparent;
|
|
7
|
-
--tw-text-mix: transparent;
|
|
1
|
+
.x-badge {
|
|
2
|
+
--x-badge-background-color: var(--color-accent);
|
|
3
|
+
--x-badge-border-color: var(--color-accent);
|
|
4
|
+
--x-badge-color: var(--color-accent-foreground);
|
|
8
5
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
padding: var(--badge-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
font-
|
|
15
|
-
font-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
color:
|
|
19
|
-
|
|
6
|
+
inline-size: var(--x-badge-width);
|
|
7
|
+
block-size: var(--x-badge-height);
|
|
8
|
+
padding: var(--x-badge-padding-block) var(--x-badge-padding-inline);
|
|
9
|
+
padding-inline: calc(var(--x-badge-padding-inline) - var(--x-badge-border-width));
|
|
10
|
+
border-radius: var(--x-badge-border-radius);
|
|
11
|
+
font-family: var(--x-badge-font-family);
|
|
12
|
+
font-weight: var(--x-badge-font-weight);
|
|
13
|
+
font-size: var(--x-badge-font-size);
|
|
14
|
+
letter-spacing: var(--x-badge-letter-spacing);
|
|
15
|
+
background-color:
|
|
16
|
+
color-mix(
|
|
17
|
+
in var(--x-badge-background-color-space, srgb),
|
|
18
|
+
var(--x-badge-background-color) var(--x-badge-background-color-opacity, 100%),
|
|
19
|
+
var(--x-badge-background-color-mix, transparent)
|
|
20
|
+
);
|
|
21
|
+
color:
|
|
22
|
+
color-mix(
|
|
23
|
+
in var(--x-badge-color-space, srgb),
|
|
24
|
+
var(--x-badge-color) var(--x-badge-color-opacity, 100%),
|
|
25
|
+
var(--x-badge-color-mix, transparent)
|
|
26
|
+
);
|
|
27
|
+
border:
|
|
28
|
+
var(--x-badge-border-width)
|
|
29
|
+
solid
|
|
30
|
+
color-mix(
|
|
31
|
+
in var(--x-badge-border-color-space, srgb),
|
|
32
|
+
var(--x-badge-border-color) var(--x-badge-border-color-opacity, 100%),
|
|
33
|
+
var(--x-badge-border-color-mix, transparent)
|
|
34
|
+
);
|
|
35
|
+
gap: var(--x-badge-gap);
|
|
20
36
|
display: inline-flex;
|
|
21
37
|
text-align: center;
|
|
22
38
|
align-items: center;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.badge:is(.lg) {
|
|
2
|
-
--badge-height: 1.75rem;
|
|
1
|
+
.x-badge:is(.lg) {
|
|
2
|
+
--x-badge-height: 1.75rem;
|
|
3
3
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.badge:is(.muted) {
|
|
2
|
-
--badge-color: var(--color-accent);
|
|
3
|
-
--
|
|
1
|
+
.x-badge:is(.muted) {
|
|
2
|
+
--x-badge-color: var(--color-accent);
|
|
3
|
+
--x-badge-background-color-opacity: 10%;
|
|
4
4
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
:root, :host {
|
|
2
|
+
--x-badge-border-width: 0px;
|
|
3
|
+
--x-badge-border-radius: var(--radius-lg);
|
|
4
|
+
--x-badge-font-size: var(--font-size-xs);
|
|
5
|
+
--x-badge-gap: var(--spacing-xs);
|
|
6
|
+
--x-badge-height: 1.5rem;
|
|
7
|
+
--x-badge-padding-block: 0;
|
|
8
|
+
--x-badge-padding-inline: 0.5rem;
|
|
9
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [Badge](https://winduum.dev/docs/
|
|
1
|
+
# [Badge](https://winduum.dev/docs/components/badge.html)
|
|
2
2
|
|
|
3
3
|
## Installation
|
|
4
4
|
```shell
|
|
@@ -8,20 +8,20 @@ Learn more how to set up Winduum [here](https://winduum.dev/docs/).
|
|
|
8
8
|
Include CSS either globally or to your component _([you can't use TailwindCSS layers in per-component CSS](https://tailwindcss.com/docs/adding-custom-styles#layers-and-per-component-css))_
|
|
9
9
|
|
|
10
10
|
```css
|
|
11
|
-
@import "winduum/src/
|
|
11
|
+
@import "winduum/src/components/badge/index.css" layer(components);
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
or modular (you can use your own props or CSS)
|
|
15
15
|
|
|
16
16
|
```css
|
|
17
|
-
@import "winduum/src/
|
|
18
|
-
@import "winduum/src/
|
|
19
|
-
@import "winduum/src/
|
|
20
|
-
@import "winduum/src/
|
|
21
|
-
@import "winduum/src/
|
|
22
|
-
@import "winduum/src/
|
|
23
|
-
@import "winduum/src/
|
|
24
|
-
@import "winduum/src/
|
|
17
|
+
@import "winduum/src/components/badge/props/default.css" layer(components);
|
|
18
|
+
@import "winduum/src/components/badge/default.css" layer(components);
|
|
19
|
+
@import "winduum/src/components/badge/sm.css" layer(components);
|
|
20
|
+
@import "winduum/src/components/badge/lg.css" layer(components);
|
|
21
|
+
@import "winduum/src/components/badge/bordered.css" layer(components);
|
|
22
|
+
@import "winduum/src/components/badge/muted.css" layer(components);
|
|
23
|
+
@import "winduum/src/components/badge/square.css" layer(components);
|
|
24
|
+
@import "winduum/src/components/badge/circle.css" layer(components);
|
|
25
25
|
|
|
26
26
|
```
|
|
27
27
|
|
|
@@ -30,8 +30,8 @@ By default, imports are directly from `npm` so you can leverage updates.
|
|
|
30
30
|
You can also copy and paste the code from this directory to your project and remap the imports to local.
|
|
31
31
|
|
|
32
32
|
```css
|
|
33
|
-
@import "@/components/
|
|
33
|
+
@import "@/components/badge/assets/index.css" layer(components);
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
### Docs
|
|
37
|
-
Visit [docs](https://winduum.dev/docs/
|
|
37
|
+
Visit [docs](https://winduum.dev/docs/components/badge.html) to learn more about usage examples.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.badge:is(.sm) {
|
|
2
|
-
--badge-height: 1.25rem;
|
|
3
|
-
--badge-font-size:
|
|
1
|
+
.x-badge:is(.sm) {
|
|
2
|
+
--x-badge-height: 1.25rem;
|
|
3
|
+
--x-badge-font-size: var(--font-size-xs);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.badge:is(.square) {
|
|
2
|
-
--badge-
|
|
3
|
-
--badge-width: var(--badge-height);
|
|
1
|
+
.x-badge:is(.square) {
|
|
2
|
+
--x-badge-padding-inline: var(--x-badge-padding-block);
|
|
3
|
+
--x-badge-width: var(--x-badge-height);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.breadcrumb {
|
|
1
|
+
.x-breadcrumb {
|
|
2
2
|
> :where(ul, ol) {
|
|
3
3
|
&, > li {
|
|
4
4
|
display: flex;
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
|
|
8
8
|
> li {
|
|
9
9
|
&:not(:last-child)::after {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
height: var(--breadcrumb-marker-size);
|
|
10
|
+
mask: var(--x-breadcrumb-marker);
|
|
11
|
+
background-color: var(--x-breadcrumb-background-color, currentColor);
|
|
12
|
+
margin-inline: var(--x-breadcrumb-gap);
|
|
13
|
+
inline-size: var(--x-breadcrumb-marker-size);
|
|
14
|
+
block-size: var(--x-breadcrumb-marker-size);
|
|
16
15
|
flex-shrink: 0;
|
|
16
|
+
content: "";
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -14,8 +14,8 @@ Include CSS either globally or to your component _([you can't use TailwindCSS la
|
|
|
14
14
|
or modular (you can use your own props or CSS)
|
|
15
15
|
|
|
16
16
|
```css
|
|
17
|
+
@import "winduum/src/components/breadcrumb/props/default.css" layer(components);
|
|
17
18
|
@import "winduum/src/components/breadcrumb/default.css" layer(components);
|
|
18
|
-
@import "winduum/src/components/breadcrumb/default-props.css" layer(components);
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
### Local imports
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
.button:is(.bordered) {
|
|
2
|
-
--button-disabled-background-color-opacity: 0%;
|
|
3
|
-
--button-disabled-background-color-mix: transparent;
|
|
4
|
-
--button-disabled-border-color-opacity: 30%;
|
|
5
|
-
--button-disabled-color: var(--color-accent);
|
|
6
|
-
--button-active-background-color-opacity: 20%;
|
|
7
|
-
--button-active-background-color-mix: transparent;
|
|
8
|
-
--button-active-border-color-opacity: 30%;
|
|
9
|
-
--button-active-color: var(--color-accent);
|
|
10
|
-
--button-hover-background-color-opacity: 10%;
|
|
11
|
-
--button-hover-background-color-mix: transparent;
|
|
12
|
-
--button-hover-border-color-opacity: 30%;
|
|
13
|
-
--button-hover-color: var(--color-accent);
|
|
14
|
-
--button-focus-outline-offset: 0px;
|
|
15
|
-
--button-border-width: 1px;
|
|
16
|
-
--button-border-color-opacity: 30%;
|
|
17
|
-
--button-background-color-opacity: 0%;
|
|
18
|
-
--button-color: var(--color-accent);
|
|
1
|
+
.x-button:is(.bordered) {
|
|
2
|
+
--x-button-disabled-background-color-opacity: 0%;
|
|
3
|
+
--x-button-disabled-background-color-mix: transparent;
|
|
4
|
+
--x-button-disabled-border-color-opacity: 30%;
|
|
5
|
+
--x-button-disabled-color: var(--color-accent);
|
|
6
|
+
--x-button-active-background-color-opacity: 20%;
|
|
7
|
+
--x-button-active-background-color-mix: transparent;
|
|
8
|
+
--x-button-active-border-color-opacity: 30%;
|
|
9
|
+
--x-button-active-color: var(--color-accent);
|
|
10
|
+
--x-button-hover-background-color-opacity: 10%;
|
|
11
|
+
--x-button-hover-background-color-mix: transparent;
|
|
12
|
+
--x-button-hover-border-color-opacity: 30%;
|
|
13
|
+
--x-button-hover-color: var(--color-accent);
|
|
14
|
+
--x-button-focus-outline-offset: 0px;
|
|
15
|
+
--x-button-border-width: 1px;
|
|
16
|
+
--x-button-border-color-opacity: 30%;
|
|
17
|
+
--x-button-background-color-opacity: 0%;
|
|
18
|
+
--x-button-color: var(--color-accent);
|
|
19
19
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.button:is(.circle) {
|
|
2
|
-
--button-padding-block: 0;
|
|
3
|
-
--button-padding-inline: 0;
|
|
4
|
-
--button-width: var(--button-height);
|
|
5
|
-
--button-border-radius: var(--radius-full);
|
|
1
|
+
.x-button:is(.circle) {
|
|
2
|
+
--x-button-padding-block: 0;
|
|
3
|
+
--x-button-padding-inline: 0;
|
|
4
|
+
--x-button-width: var(--x-button-height);
|
|
5
|
+
--x-button-border-radius: var(--radius-full);
|
|
6
6
|
}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
.button {
|
|
2
|
-
--button-background-color: var(--color-accent);
|
|
3
|
-
--button-border-color: var(--color-accent);
|
|
4
|
-
--button-color: var(--color-accent-foreground);
|
|
1
|
+
.x-button {
|
|
2
|
+
--x-button-background-color: var(--color-accent);
|
|
3
|
+
--x-button-border-color: var(--color-accent);
|
|
4
|
+
--x-button-color: var(--color-accent-foreground);
|
|
5
5
|
|
|
6
|
-
inline-size: var(--button-width);
|
|
7
|
-
block-size: var(--button-height);
|
|
8
|
-
padding: var(--button-padding-block) var(--button-padding-inline);
|
|
9
|
-
padding-inline: calc(var(--button-padding-inline) - var(--button-border-width));
|
|
10
|
-
border-radius: var(--button-border-radius);
|
|
11
|
-
font-family: var(--button-font-family);
|
|
12
|
-
font-size: var(--button-font-size);
|
|
13
|
-
font-weight: var(--button-font-weight);
|
|
14
|
-
letter-spacing: var(--button-letter-spacing);
|
|
6
|
+
inline-size: var(--x-button-width);
|
|
7
|
+
block-size: var(--x-button-height);
|
|
8
|
+
padding: var(--x-button-padding-block) var(--x-button-padding-inline);
|
|
9
|
+
padding-inline: calc(var(--x-button-padding-inline) - var(--x-button-border-width));
|
|
10
|
+
border-radius: var(--x-button-border-radius);
|
|
11
|
+
font-family: var(--x-button-font-family);
|
|
12
|
+
font-size: var(--x-button-font-size);
|
|
13
|
+
font-weight: var(--x-button-font-weight);
|
|
14
|
+
letter-spacing: var(--x-button-letter-spacing);
|
|
15
15
|
background-color:
|
|
16
16
|
color-mix(
|
|
17
|
-
in var(--button-background-color-space, srgb),
|
|
18
|
-
var(--button-background-color) var(--button-background-color-opacity, 100%),
|
|
19
|
-
var(--button-background-color-mix, transparent)
|
|
17
|
+
in var(--x-button-background-color-space, srgb),
|
|
18
|
+
var(--x-button-background-color) var(--x-button-background-color-opacity, 100%),
|
|
19
|
+
var(--x-button-background-color-mix, transparent)
|
|
20
20
|
);
|
|
21
21
|
color:
|
|
22
22
|
color-mix(
|
|
23
|
-
in var(--button-color-space, srgb),
|
|
24
|
-
var(--button-color) var(--button-color-opacity, 100%),
|
|
25
|
-
var(--button-color-mix, transparent)
|
|
23
|
+
in var(--x-button-color-space, srgb),
|
|
24
|
+
var(--x-button-color) var(--x-button-color-opacity, 100%),
|
|
25
|
+
var(--x-button-color-mix, transparent)
|
|
26
26
|
);
|
|
27
27
|
border:
|
|
28
|
-
var(--button-border-width)
|
|
28
|
+
var(--x-button-border-width)
|
|
29
29
|
solid
|
|
30
30
|
color-mix(
|
|
31
|
-
in var(--button-border-color-space, srgb),
|
|
32
|
-
var(--button-border-color) var(--button-border-color-opacity, 100%),
|
|
33
|
-
var(--button-border-color-mix, transparent)
|
|
31
|
+
in var(--x-button-border-color-space, srgb),
|
|
32
|
+
var(--x-button-border-color) var(--x-button-border-color-opacity, 100%),
|
|
33
|
+
var(--x-button-border-color-mix, transparent)
|
|
34
34
|
);
|
|
35
35
|
outline:
|
|
36
|
-
var(--button-outline-width)
|
|
36
|
+
var(--x-button-outline-width)
|
|
37
37
|
solid
|
|
38
38
|
color-mix(
|
|
39
|
-
in var(--button-outline-color-space, srgb),
|
|
40
|
-
var(--button-outline-color, transparent) var(--button-outline-color-opacity, 100%),
|
|
41
|
-
var(--button-outline-color-mix, transparent)
|
|
39
|
+
in var(--x-button-outline-color-space, srgb),
|
|
40
|
+
var(--x-button-outline-color, transparent) var(--x-button-outline-color-opacity, 100%),
|
|
41
|
+
var(--x-button-outline-color-mix, transparent)
|
|
42
42
|
);
|
|
43
|
-
outline-offset: var(--button-outline-offset);
|
|
44
|
-
gap: var(--button-gap);
|
|
43
|
+
outline-offset: var(--x-button-outline-offset);
|
|
44
|
+
gap: var(--x-button-gap);
|
|
45
45
|
user-select: none;
|
|
46
46
|
overflow: clip;
|
|
47
47
|
display: inline-flex;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.button:is(.fill) {
|
|
2
|
-
--button-hover-background-color-mix: var(--color-dark);
|
|
3
|
-
--button-hover-background-color-opacity: 100%;
|
|
4
|
-
--button-active-background-color-mix: var(--color-dark);
|
|
5
|
-
--button-active-background-color-opacity: 90%;
|
|
1
|
+
.x-button:is(.fill) {
|
|
2
|
+
--x-button-hover-background-color-mix: var(--color-dark);
|
|
3
|
+
--x-button-hover-background-color-opacity: 100%;
|
|
4
|
+
--x-button-active-background-color-mix: var(--color-dark);
|
|
5
|
+
--x-button-active-background-color-opacity: 90%;
|
|
6
6
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
.button:is(.ghosted) {
|
|
2
|
-
--button-disabled-background-color-opacity: 0%;
|
|
3
|
-
--button-disabled-background-color-mix: transparent;
|
|
4
|
-
--button-disabled-color: var(--color-accent);
|
|
5
|
-
--button-active-background-color-opacity: 20%;
|
|
6
|
-
--button-active-background-color-mix: transparent;
|
|
7
|
-
--button-active-color: var(--color-accent);
|
|
8
|
-
--button-hover-background-color-opacity: 10%;
|
|
9
|
-
--button-hover-background-color-mix: transparent;
|
|
10
|
-
--button-hover-color: var(--color-accent);
|
|
11
|
-
--button-focus-outline-offset: -2px;
|
|
12
|
-
--button-color: var(--color-accent);
|
|
13
|
-
--button-background-color-opacity: 0%;
|
|
1
|
+
.x-button:is(.ghosted) {
|
|
2
|
+
--x-button-disabled-background-color-opacity: 0%;
|
|
3
|
+
--x-button-disabled-background-color-mix: transparent;
|
|
4
|
+
--x-button-disabled-color: var(--color-accent);
|
|
5
|
+
--x-button-active-background-color-opacity: 20%;
|
|
6
|
+
--x-button-active-background-color-mix: transparent;
|
|
7
|
+
--x-button-active-color: var(--color-accent);
|
|
8
|
+
--x-button-hover-background-color-opacity: 10%;
|
|
9
|
+
--x-button-hover-background-color-mix: transparent;
|
|
10
|
+
--x-button-hover-color: var(--color-accent);
|
|
11
|
+
--x-button-focus-outline-offset: -2px;
|
|
12
|
+
--x-button-color: var(--color-accent);
|
|
13
|
+
--x-button-background-color-opacity: 0%;
|
|
14
14
|
}
|