winduum 1.2.1 → 2.0.0-next.10
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/dist/main.css +1 -1
- package/dist/tailwind.css +1 -1
- package/package.json +15 -15
- package/plugin/index.cjs +81 -43
- package/plugin/index.js +73 -22
- package/plugin/utilities/common.js +4 -4
- package/plugin/utilities/dot.js +4 -5
- package/src/base/breakpoints.css +10 -10
- package/src/base/config/font.css +22 -9
- package/src/base/config/rounded.css +12 -12
- package/src/base/config/transition.css +14 -14
- package/src/base/config/z.css +5 -5
- package/src/base/config.css +0 -1
- package/src/base/defaults.css +10 -12
- package/src/base/keyframes.css +13 -1
- package/src/base/reset.css +2 -7
- package/src/base/theme/dark-rgb.css +1 -1
- package/src/base/theme/dark.css +1 -1
- package/src/base/theme/default-rgb.css +6 -6
- package/src/base/theme/default.css +6 -6
- package/src/components/badge/bordered.css +6 -0
- package/src/components/badge/circle.css +5 -0
- package/src/components/badge/default.css +42 -0
- package/src/{ui → components}/badge/index.css +1 -1
- package/src/components/badge/lg.css +3 -0
- package/src/components/badge/muted.css +4 -0
- package/src/components/badge/props/default.css +9 -0
- package/src/components/badge/readme.md +37 -0
- package/src/components/badge/sm.css +4 -0
- package/src/components/badge/square.css +4 -0
- 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 +19 -0
- package/src/components/button/circle.css +6 -0
- package/src/components/button/default.css +63 -0
- package/src/components/button/fill.css +6 -0
- package/src/components/button/ghosted.css +14 -0
- package/src/{ui/btn → components/button}/index.css +2 -7
- package/src/components/button/interactive.css +56 -0
- package/src/components/button/lg.css +4 -0
- package/src/components/button/muted.css +14 -0
- package/src/components/button/props/default.css +11 -0
- package/src/components/button/props/interactive.css +9 -0
- package/src/components/button/raised.css +6 -0
- package/src/components/button/readme.md +46 -0
- package/src/components/button/sm.css +4 -0
- package/src/components/button/square.css +5 -0
- 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/carousel/index.d.ts +3 -3
- package/src/components/carousel/index.js +13 -11
- package/src/components/check/default.css +67 -0
- package/src/{ui/switch → components/check}/index.css +1 -1
- package/src/components/check/interactive.css +56 -0
- package/src/components/check/invalid.css +9 -0
- package/src/components/check/props/default.css +13 -0
- package/src/{ui/color → components/check}/readme.md +8 -9
- package/src/components/color/default.css +36 -0
- package/src/components/color/index.css +3 -0
- package/src/components/color/interactive.css +36 -0
- package/src/components/color/props/default.css +7 -0
- package/src/{ui/title → 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 +24 -0
- package/src/components/control/default.css +74 -0
- package/src/components/control/file.css +27 -0
- package/src/components/control/floating-interactive.css +13 -0
- package/src/components/control/floating.css +36 -0
- package/src/components/control/icon.css +32 -0
- package/src/{ui → components}/control/index.css +5 -6
- package/src/components/control/interactive.css +19 -0
- package/src/components/control/invalid.css +10 -0
- 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 +43 -0
- package/src/{ui → components}/control/select-multiple.css +2 -2
- package/src/components/control/select.css +23 -0
- package/src/components/dialog/content.css +7 -7
- package/src/components/dialog/default.css +14 -12
- package/src/components/dialog/index.css +2 -2
- package/src/components/dialog/index.d.ts +4 -19
- package/src/components/dialog/index.js +24 -83
- 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 +42 -0
- package/src/{ui → components}/group/readme.md +6 -6
- package/src/{ui → components}/group/vertical.css +2 -2
- package/src/components/heading/default.css +8 -0
- package/src/{ui → components}/heading/index.css +1 -1
- package/src/components/heading/lg.css +3 -0
- package/src/components/heading/props/default.css +6 -0
- package/src/{ui/check → components/heading}/readme.md +8 -9
- package/src/components/heading/sm.css +3 -0
- package/src/{ui → components}/image/avatar.css +3 -3
- package/src/{ui → components}/image/default.css +2 -2
- package/src/{ui/notice → components/image}/readme.md +6 -6
- package/src/components/index.css +18 -0
- package/src/components/info/default.css +8 -0
- package/src/components/info/index.css +2 -0
- package/src/components/info/props/default.css +4 -0
- package/src/{ui/rating → components/info}/readme.md +6 -7
- package/src/components/label/default.css +8 -0
- package/src/components/label/index.css +2 -0
- package/src/components/label/props/default.css +4 -0
- package/src/{ui → components}/label/readme.md +6 -6
- package/src/components/link/default.css +8 -0
- package/src/components/link/index.css +3 -0
- package/src/components/link/interactive.css +9 -0
- package/src/components/link/props/default.css +4 -0
- package/src/{ui → components}/link/readme.md +7 -7
- package/src/components/notice/default.css +21 -0
- package/src/components/notice/index.css +2 -0
- package/src/components/notice/props/default.css +8 -0
- package/src/{ui/image → components/notice}/readme.md +6 -6
- package/src/components/pagination/default.css +2 -2
- package/src/components/popover/content.css +18 -19
- package/src/components/popover/default.css +1 -1
- package/src/components/popover/index.css +1 -1
- package/src/components/popover/index.d.ts +5 -1
- package/src/components/popover/index.js +11 -9
- package/src/components/popover/props/content.css +8 -0
- package/src/components/popover/readme.md +1 -1
- package/src/components/progress/default.css +46 -0
- package/src/{ui → components}/progress/index.css +1 -1
- package/src/components/progress/lg.css +3 -0
- package/src/{ui → components}/progress/meter.css +7 -7
- package/src/components/progress/props/default.css +6 -0
- package/src/components/progress/readme.md +33 -0
- package/src/components/progress/sm.css +3 -0
- package/src/components/range/default.css +99 -0
- package/src/{ui → components}/range/index.css +1 -1
- package/src/{ui → components}/range/index.js +2 -2
- package/src/components/range/multi.css +22 -0
- package/src/components/range/props/default.css +9 -0
- package/src/{ui → components}/range/readme.md +8 -8
- package/src/{ui → components}/range/vertical.css +3 -3
- package/src/{ui → components}/rating/default.css +11 -11
- package/src/{ui → components}/rating/index.css +1 -1
- package/src/components/rating/invalid.css +5 -0
- package/src/components/rating/props/default.css +8 -0
- package/src/components/rating/readme.md +31 -0
- package/src/components/switch/default.css +43 -0
- package/src/{ui/check → components/switch}/index.css +1 -2
- package/src/components/switch/interactive.css +43 -0
- package/src/components/switch/invalid.css +6 -0
- package/src/components/switch/props/default.css +17 -0
- package/src/{ui/progress → components/switch}/readme.md +8 -9
- 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/index.css +1 -1
- package/src/components/tabs/list.css +8 -0
- package/src/components/tabs/readme.md +1 -1
- package/src/components/text/default.css +223 -0
- package/src/components/text/index.css +2 -0
- package/src/components/text/props/default.css +9 -0
- package/src/{ui/info → components/text}/readme.md +6 -6
- package/src/components/title/default.css +8 -0
- package/src/{ui → components}/title/index.css +1 -1
- package/src/components/title/lg.css +3 -0
- package/src/components/title/props/default.css +5 -0
- package/src/{ui/heading → components/title}/readme.md +9 -8
- package/src/components/title/sm.css +3 -0
- 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/main.css +0 -1
- package/src/test.css +7 -0
- package/src/utilities/common.css +2 -6
- package/src/utilities/container/default.css +3 -4
- package/src/utilities/container/index.css +1 -1
- package/src/utilities/divider.css +13 -4
- package/src/utilities/ripple/index.css +9 -6
- package/src/utilities/skeleton/default.css +8 -1
- package/src/utilities/skeleton/index.css +1 -1
- package/src/utilities/skeleton/props/default.css +5 -0
- package/src/utilities/swap/default.css +6 -6
- package/src/utilities/underline.css +3 -3
- package/types/index.d.ts +39 -24
- package/types/index.d.ts.map +3 -8
- package/plugin/utilities/flex.js +0 -12
- package/src/base/config/text.css +0 -15
- package/src/components/breadcrumb/default-props.css +0 -5
- package/src/components/card/default-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/popover/content-props.css +0 -8
- package/src/components/table/default-props.css +0 -8
- package/src/components/table/interactive-props.css +0 -4
- package/src/components/tabs/default.css +0 -8
- 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/src/ui/badge/bordered.css +0 -16
- package/src/ui/badge/circle.css +0 -5
- package/src/ui/badge/default-props.css +0 -8
- package/src/ui/badge/default.css +0 -26
- package/src/ui/badge/lg.css +0 -3
- package/src/ui/badge/muted.css +0 -4
- package/src/ui/badge/readme.md +0 -37
- package/src/ui/badge/sm.css +0 -4
- package/src/ui/badge/square.css +0 -4
- package/src/ui/btn/bordered.css +0 -21
- package/src/ui/btn/circle.css +0 -6
- package/src/ui/btn/default-props.css +0 -10
- package/src/ui/btn/default.css +0 -49
- package/src/ui/btn/fill.css +0 -6
- package/src/ui/btn/ghosted.css +0 -9
- package/src/ui/btn/gradient-bordered.css +0 -24
- package/src/ui/btn/gradient.css +0 -10
- package/src/ui/btn/interactive-props.css +0 -9
- package/src/ui/btn/interactive.css +0 -53
- package/src/ui/btn/lg.css +0 -4
- package/src/ui/btn/loading-props.css +0 -4
- package/src/ui/btn/loading.css +0 -24
- package/src/ui/btn/muted.css +0 -9
- package/src/ui/btn/raised.css +0 -7
- package/src/ui/btn/readme.md +0 -51
- package/src/ui/btn/sm.css +0 -4
- package/src/ui/btn/square.css +0 -5
- package/src/ui/btn/wide.css +0 -3
- package/src/ui/check/default-props.css +0 -13
- package/src/ui/check/default.css +0 -74
- package/src/ui/check/interactive-props.css +0 -3
- package/src/ui/check/interactive.css +0 -50
- package/src/ui/check/invalid.css +0 -8
- package/src/ui/color/default-props.css +0 -11
- package/src/ui/color/default.css +0 -48
- package/src/ui/color/index.css +0 -4
- package/src/ui/color/interactive-props.css +0 -3
- package/src/ui/color/interactive.css +0 -30
- package/src/ui/control/color-props.css +0 -5
- package/src/ui/control/color.css +0 -24
- package/src/ui/control/default-props.css +0 -16
- package/src/ui/control/default.css +0 -77
- package/src/ui/control/file.css +0 -25
- package/src/ui/control/floating-interactive.css +0 -13
- package/src/ui/control/floating-props.css +0 -4
- package/src/ui/control/floating.css +0 -36
- package/src/ui/control/icon-props.css +0 -4
- package/src/ui/control/icon.css +0 -32
- package/src/ui/control/interactive-props.css +0 -3
- package/src/ui/control/interactive.css +0 -19
- package/src/ui/control/invalid.css +0 -10
- package/src/ui/control/readme.md +0 -44
- package/src/ui/control/select-props.css +0 -4
- package/src/ui/control/select.css +0 -23
- package/src/ui/group/default.css +0 -42
- package/src/ui/heading/default-props.css +0 -6
- package/src/ui/heading/default.css +0 -8
- package/src/ui/heading/lg.css +0 -3
- package/src/ui/heading/sm.css +0 -3
- package/src/ui/index.css +0 -18
- package/src/ui/info/default-props.css +0 -4
- package/src/ui/info/default.css +0 -8
- package/src/ui/info/index.css +0 -2
- package/src/ui/label/default-props.css +0 -4
- package/src/ui/label/default.css +0 -8
- package/src/ui/label/index.css +0 -2
- package/src/ui/link/default-props.css +0 -4
- package/src/ui/link/default.css +0 -8
- package/src/ui/link/index.css +0 -4
- package/src/ui/link/interactive-props.css +0 -5
- package/src/ui/link/interactive.css +0 -16
- package/src/ui/notice/default-props.css +0 -8
- package/src/ui/notice/default.css +0 -25
- package/src/ui/notice/index.css +0 -2
- package/src/ui/progress/default-props.css +0 -4
- package/src/ui/progress/default.css +0 -47
- package/src/ui/progress/lg.css +0 -3
- package/src/ui/progress/sm.css +0 -3
- package/src/ui/range/default-props.css +0 -10
- package/src/ui/range/default.css +0 -101
- package/src/ui/range/multi.css +0 -22
- package/src/ui/rating/default-props.css +0 -5
- package/src/ui/rating/invalid.css +0 -5
- package/src/ui/switch/default-props.css +0 -17
- package/src/ui/switch/default.css +0 -46
- package/src/ui/switch/interactive-props.css +0 -3
- package/src/ui/switch/interactive.css +0 -39
- package/src/ui/switch/invalid.css +0 -6
- package/src/ui/switch/readme.md +0 -32
- package/src/ui/text/default-props.css +0 -9
- package/src/ui/text/default.css +0 -193
- package/src/ui/text/index.css +0 -2
- package/src/ui/text/readme.md +0 -30
- package/src/ui/title/default-props.css +0 -5
- package/src/ui/title/default.css +0 -8
- package/src/ui/title/lg.css +0 -3
- package/src/ui/title/sm.css +0 -3
- package/src/utilities/skeleton/default-props.css +0 -5
- /package/src/{ui → components}/group/index.css +0 -0
- /package/src/{ui → components}/image/index.css +0 -0
- /package/src/{ui → components}/range/index.d.ts +0 -0
- /package/src/utilities/container/{default-props.css → props/default.css} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
.
|
|
2
|
-
gap: var(--spacing-sm);
|
|
1
|
+
.x-field {
|
|
2
|
+
gap: var(--x-field-gap, var(--spacing-sm));
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
|
|
6
6
|
.validated &:has(:invalid) {
|
|
7
|
-
:where(.
|
|
8
|
-
display:
|
|
7
|
+
:where(.x-info[hidden]) {
|
|
8
|
+
display: revert;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
&:has([required]) :where(.
|
|
12
|
+
&:has([required]) :where(.x-label) {
|
|
13
13
|
&::after {
|
|
14
|
-
color: var(--color-error);
|
|
14
|
+
color: var(--x-field-required-color, var(--color-error));
|
|
15
15
|
content: " *";
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export const validateForm = (event, options = {}) => {
|
|
7
7
|
options = {
|
|
8
|
-
validateSelectors: '.
|
|
8
|
+
validateSelectors: '.x-control, .x-check, .x-switch, .x-rating, .x-color',
|
|
9
9
|
validateOptions: {},
|
|
10
10
|
submitterLoadingClass: 'loading',
|
|
11
11
|
...options
|
|
@@ -37,10 +37,10 @@ export const validateField = (element, options = {}) => {
|
|
|
37
37
|
selector: 'input:not([type="hidden"]), textarea, select',
|
|
38
38
|
ignoreMatch: /(data-novalidate|readonly)/,
|
|
39
39
|
validitySelector: '.validity',
|
|
40
|
-
infoParentSelector: '.
|
|
41
|
-
infoSelector: '.
|
|
42
|
-
infoContent: '<div class="
|
|
43
|
-
endParentSelector: '.
|
|
40
|
+
infoParentSelector: '.x-field',
|
|
41
|
+
infoSelector: '.x-info',
|
|
42
|
+
infoContent: '<div class="x-info text-error validity"></div>',
|
|
43
|
+
endParentSelector: '.x-control',
|
|
44
44
|
endSelector: '.ms-auto',
|
|
45
45
|
endContent: '<div class="ms-auto"></div>',
|
|
46
46
|
validClass: 'valid',
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.x-group {
|
|
2
|
+
display: flex;
|
|
3
|
+
border-radius: var(--radius);
|
|
4
|
+
|
|
5
|
+
&:has(.x-control) {
|
|
6
|
+
> :where(.x-button) {
|
|
7
|
+
min-inline-size: var(--x-control-height);
|
|
8
|
+
height: auto;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
> :is(.x-button) {
|
|
12
|
+
--x-button-border-width: var(--x-control-border-width);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
> :where(*) {
|
|
17
|
+
border-radius: inherit;
|
|
18
|
+
|
|
19
|
+
&:is(.x-control) {
|
|
20
|
+
--x-control-border-color-mix: var(--color-body-primary);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&:is(.x-button) {
|
|
24
|
+
--x-button-focus-outline-offset: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:focus-within {
|
|
28
|
+
z-index: 1;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:where(:not(:first-child)) {
|
|
32
|
+
margin-inline-start: calc(var(--x-control-border-width) * -1);
|
|
33
|
+
border-start-start-radius: 0;
|
|
34
|
+
border-end-start-radius: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:where(:not(:last-child)) {
|
|
38
|
+
border-start-end-radius: 0;
|
|
39
|
+
border-end-end-radius: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [Group](https://winduum.dev/docs/
|
|
1
|
+
# [Group](https://winduum.dev/docs/components/group.html)
|
|
2
2
|
|
|
3
3
|
## Installation
|
|
4
4
|
```shell
|
|
@@ -8,14 +8,14 @@ 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/group/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/
|
|
17
|
+
@import "winduum/src/components/group/default.css" layer(components);
|
|
18
|
+
@import "winduum/src/components/group/vertical.css" layer(components);
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
### Local imports
|
|
@@ -23,8 +23,8 @@ By default, imports are directly from `npm` so you can leverage updates.
|
|
|
23
23
|
You can also copy and paste the code from this directory to your project and remap the imports to local.
|
|
24
24
|
|
|
25
25
|
```css
|
|
26
|
-
@import "@/components/
|
|
26
|
+
@import "@/components/group/assets/index.css" layer(components);
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
### Docs
|
|
30
|
-
Visit [docs](https://winduum.dev/docs/
|
|
30
|
+
Visit [docs](https://winduum.dev/docs/components/group.html) to learn more about usage examples.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.
|
|
1
|
+
.x-group:where(.vertical) {
|
|
2
2
|
flex-direction: column;
|
|
3
3
|
|
|
4
4
|
> :where(*) {
|
|
5
5
|
border-radius: inherit;
|
|
6
6
|
|
|
7
7
|
&:where(:not(:first-child)) {
|
|
8
|
-
margin-block-start: calc(var(--
|
|
8
|
+
margin-block-start: calc(var(--x-control-border-width) * -1);
|
|
9
9
|
border-start-start-radius: 0;
|
|
10
10
|
border-start-end-radius: 0;
|
|
11
11
|
margin-inline-start: 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [
|
|
1
|
+
# [Heading](https://winduum.dev/docs/components/heading.html)
|
|
2
2
|
|
|
3
3
|
## Installation
|
|
4
4
|
```shell
|
|
@@ -8,17 +8,16 @@ 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/heading/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/ui/check/invalid.css" layer(components);
|
|
17
|
+
@import "winduum/src/components/heading/props/default.css" layer(components);
|
|
18
|
+
@import "winduum/src/components/heading/default.css" layer(components);
|
|
19
|
+
@import "winduum/src/components/heading/sm.css" layer(components);
|
|
20
|
+
@import "winduum/src/components/heading/lg.css" layer(components);
|
|
22
21
|
```
|
|
23
22
|
|
|
24
23
|
### Local imports
|
|
@@ -26,8 +25,8 @@ By default, imports are directly from `npm` so you can leverage updates.
|
|
|
26
25
|
You can also copy and paste the code from this directory to your project and remap the imports to local.
|
|
27
26
|
|
|
28
27
|
```css
|
|
29
|
-
@import "@/components/
|
|
28
|
+
@import "@/components/heading/assets/index.css" layer(components);
|
|
30
29
|
```
|
|
31
30
|
|
|
32
31
|
### Docs
|
|
33
|
-
Visit [docs](https://winduum.dev/docs/
|
|
32
|
+
Visit [docs](https://winduum.dev/docs/components/heading.html) to learn more about usage examples.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
.
|
|
2
|
-
border-radius: var(--
|
|
1
|
+
.x-image:where(.avatar) {
|
|
2
|
+
border-radius: var(--radius-full);
|
|
3
3
|
background-color: var(--color-accent);
|
|
4
4
|
color: var(--color-accent-foreground);
|
|
5
5
|
container-type: inline-size;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
align-items: center;
|
|
8
8
|
|
|
9
9
|
:where(span) {
|
|
10
|
-
font-weight: var(--font-medium);
|
|
10
|
+
font-weight: var(--font-weight-medium);
|
|
11
11
|
font-size: 50cqi;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
.x-image {
|
|
2
2
|
position: relative;
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
border-radius: inherit;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
> :where(img, video, iframe, object, svg) {
|
|
15
15
|
border-radius: inherit;
|
|
16
|
-
min-
|
|
16
|
+
min-inline-size: 100%;
|
|
17
17
|
height: auto;
|
|
18
18
|
object-fit: contain;
|
|
19
19
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [
|
|
1
|
+
# [Image](https://winduum.dev/docs/components/image.html)
|
|
2
2
|
|
|
3
3
|
## Installation
|
|
4
4
|
```shell
|
|
@@ -8,14 +8,14 @@ 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/image/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/
|
|
17
|
+
@import "winduum/src/components/image/default.css" layer(components);
|
|
18
|
+
@import "winduum/src/components/image/avatar.css" layer(components);
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
### Local imports
|
|
@@ -23,8 +23,8 @@ By default, imports are directly from `npm` so you can leverage updates.
|
|
|
23
23
|
You can also copy and paste the code from this directory to your project and remap the imports to local.
|
|
24
24
|
|
|
25
25
|
```css
|
|
26
|
-
@import "@/components/
|
|
26
|
+
@import "@/components/image/assets/index.css" layer(components);
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
### Docs
|
|
30
|
-
Visit [docs](https://winduum.dev/docs/
|
|
30
|
+
Visit [docs](https://winduum.dev/docs/components/image.html) to learn more about usage examples.
|
package/src/components/index.css
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
@import "badge/index.css";
|
|
2
|
+
@import "button/index.css";
|
|
3
|
+
@import "check/index.css";
|
|
4
|
+
@import "color/index.css";
|
|
5
|
+
@import "control/index.css";
|
|
6
|
+
@import "group/index.css";
|
|
7
|
+
@import "heading/index.css";
|
|
8
|
+
@import "image/index.css";
|
|
9
|
+
@import "info/index.css";
|
|
10
|
+
@import "label/index.css";
|
|
11
|
+
@import "link/index.css";
|
|
12
|
+
@import "notice/index.css";
|
|
13
|
+
@import "progress/index.css";
|
|
14
|
+
@import "range/index.css";
|
|
15
|
+
@import "rating/index.css";
|
|
16
|
+
@import "switch/index.css";
|
|
17
|
+
@import "text/index.css";
|
|
18
|
+
@import "title/index.css";
|
|
1
19
|
@import "breadcrumb/index.css";
|
|
2
20
|
@import "card/index.css";
|
|
3
21
|
@import "dialog/index.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [
|
|
1
|
+
# [Info](https://winduum.dev/docs/components/info.html)
|
|
2
2
|
|
|
3
3
|
## Installation
|
|
4
4
|
```shell
|
|
@@ -8,15 +8,14 @@ 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/info/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/ui/rating/invalid.css";
|
|
17
|
+
@import "winduum/src/components/info/props/default.css" layer(components);
|
|
18
|
+
@import "winduum/src/components/info/default.css" layer(components);
|
|
20
19
|
```
|
|
21
20
|
|
|
22
21
|
### Local imports
|
|
@@ -24,8 +23,8 @@ By default, imports are directly from `npm` so you can leverage updates.
|
|
|
24
23
|
You can also copy and paste the code from this directory to your project and remap the imports to local.
|
|
25
24
|
|
|
26
25
|
```css
|
|
27
|
-
@import "@/components/
|
|
26
|
+
@import "@/components/info/assets/index.css" layer(components);
|
|
28
27
|
```
|
|
29
28
|
|
|
30
29
|
### Docs
|
|
31
|
-
Visit [docs](https://winduum.dev/docs/
|
|
30
|
+
Visit [docs](https://winduum.dev/docs/components/info.html) to learn more about usage examples.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [Label](https://winduum.dev/docs/
|
|
1
|
+
# [Label](https://winduum.dev/docs/components/label.html)
|
|
2
2
|
|
|
3
3
|
## Installation
|
|
4
4
|
```shell
|
|
@@ -8,14 +8,14 @@ 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/label/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/
|
|
17
|
+
@import "winduum/src/components/label/props/default.css" layer(components);
|
|
18
|
+
@import "winduum/src/components/label/default.css" layer(components);
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
### Local imports
|
|
@@ -23,8 +23,8 @@ By default, imports are directly from `npm` so you can leverage updates.
|
|
|
23
23
|
You can also copy and paste the code from this directory to your project and remap the imports to local.
|
|
24
24
|
|
|
25
25
|
```css
|
|
26
|
-
@import "@/components/
|
|
26
|
+
@import "@/components/label/assets/index.css" layer(components);
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
### Docs
|
|
30
|
-
Visit [docs](https://winduum.dev/docs/
|
|
30
|
+
Visit [docs](https://winduum.dev/docs/components/label.html) to learn more about usage examples.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
.x-link {
|
|
2
|
+
&:where(:any-link, button:enabled, [role="button"]) {
|
|
3
|
+
transition: all var(--default-transition-duration) var(--transition-timing-function-in-out);
|
|
4
|
+
|
|
5
|
+
&:is(:hover, :focus-visible) {
|
|
6
|
+
color: var(--x-link-hover-color, var(--color-accent));
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [Link](https://winduum.dev/docs/
|
|
1
|
+
# [Link](https://winduum.dev/docs/components/link.html)
|
|
2
2
|
|
|
3
3
|
## Installation
|
|
4
4
|
```shell
|
|
@@ -8,15 +8,15 @@ 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/link/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/
|
|
17
|
+
@import "winduum/src/components/link/default-props.css" layer(components);
|
|
18
|
+
@import "winduum/src/components/link/default.css" layer(components);
|
|
19
|
+
@import "winduum/src/components/link/interactive.css" layer(components);
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
### Local imports
|
|
@@ -24,8 +24,8 @@ By default, imports are directly from `npm` so you can leverage updates.
|
|
|
24
24
|
You can also copy and paste the code from this directory to your project and remap the imports to local.
|
|
25
25
|
|
|
26
26
|
```css
|
|
27
|
-
@import "@/components/
|
|
27
|
+
@import "@/components/link/assets/index.css" layer(components);
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
### Docs
|
|
31
|
-
Visit [docs](https://winduum.dev/docs/
|
|
31
|
+
Visit [docs](https://winduum.dev/docs/components/link.html) to learn more about usage examples.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.x-notice {
|
|
2
|
+
padding: var(--x-notice-padding-block) var(--x-notice-padding-inline);
|
|
3
|
+
font-size: var(--x-notice-font-size);
|
|
4
|
+
border-radius: var(--x-notice-border-radius);
|
|
5
|
+
background-color:
|
|
6
|
+
color-mix(
|
|
7
|
+
in var(--x-notice-background-color-space, srgb),
|
|
8
|
+
var(--x-notice-background-color, var(--color-accent)) var(--x-notice-background-color-opacity, 10%),
|
|
9
|
+
var(--x-notice-background-color-mix, transparent)
|
|
10
|
+
);
|
|
11
|
+
color: var(--x-notice-color, var(--color-accent));
|
|
12
|
+
outline:
|
|
13
|
+
var(--x-notice-outline-width) solid
|
|
14
|
+
color-mix(
|
|
15
|
+
in var(--x-notice-outline-color-space, srgb),
|
|
16
|
+
var(--x-notice-outline-color, var(--color-accent)) var(--x-notice-outline-color-opacity, 10%),
|
|
17
|
+
var(--x-notice-outline-color-mix, transparent)
|
|
18
|
+
);
|
|
19
|
+
outline-offset: var(--x-notice-outline-offset);
|
|
20
|
+
text-wrap: pretty;
|
|
21
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
:root, :host {
|
|
2
|
+
--x-notice-padding-block: 1.25rem;
|
|
3
|
+
--x-notice-padding-inline: 1.5rem;
|
|
4
|
+
--x-notice-font-size: var(--font-size-sm);
|
|
5
|
+
--x-notice-border-radius: var(--radius);
|
|
6
|
+
--x-notice-outline-width: 1px;
|
|
7
|
+
--x-notice-outline-offset: calc(var(--x-notice-outline-width, 1px) * -1);
|
|
8
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [
|
|
1
|
+
# [Notice](https://winduum.dev/docs/components/notice.html)
|
|
2
2
|
|
|
3
3
|
## Installation
|
|
4
4
|
```shell
|
|
@@ -8,14 +8,14 @@ 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/notice/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/
|
|
17
|
+
@import "winduum/src/components/notice/default-props.css" layer(components);
|
|
18
|
+
@import "winduum/src/components/notice/default.css" layer(components);
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
### Local imports
|
|
@@ -23,8 +23,8 @@ By default, imports are directly from `npm` so you can leverage updates.
|
|
|
23
23
|
You can also copy and paste the code from this directory to your project and remap the imports to local.
|
|
24
24
|
|
|
25
25
|
```css
|
|
26
|
-
@import "@/components/
|
|
26
|
+
@import "@/components/notice/assets/index.css" layer(components);
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
### Docs
|
|
30
|
-
Visit [docs](https://winduum.dev/docs/
|
|
30
|
+
Visit [docs](https://winduum.dev/docs/components/notice.html) to learn more about usage examples.
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
.
|
|
1
|
+
.x-popover-content {
|
|
2
|
+
background-color: var(--x-popover-content-background-color);
|
|
3
|
+
border-radius: var(--x-popover-content-border-radius);
|
|
4
|
+
padding: var(--x-popover-content-padding-block) var(--x-popover-content-padding-inline);
|
|
5
|
+
z-index: var(--x-popover-content-z-index, var(--z-index-10));
|
|
6
|
+
transition-property: var(--default-transition-property);
|
|
7
|
+
transition-timing-function: var(--transition-timing-function-in-out);
|
|
8
|
+
transition-duration: var(--default-transition-duration);
|
|
2
9
|
transform:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
transition-property: var(--transition);
|
|
6
|
-
transition-timing-function: var(--ease-in-out);
|
|
7
|
-
transition-duration: var(--duration);
|
|
10
|
+
translate(var(--tw-translate-x), var(--tw-translate-y))
|
|
11
|
+
scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
8
12
|
will-change: transform;
|
|
9
|
-
|
|
10
|
-
border-radius: var(--c-popover-content-border-radius);
|
|
11
|
-
padding: var(--c-popover-content-py) var(--c-popover-content-px);
|
|
12
|
-
z-index: var(--z-10);
|
|
13
|
-
width: max-content;
|
|
13
|
+
inline-size: max-content;
|
|
14
14
|
position: absolute;
|
|
15
15
|
|
|
16
16
|
&:where(.bottom), & {
|
|
@@ -86,22 +86,21 @@
|
|
|
86
86
|
inset-block-start: 50%;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
&[popover]:not(
|
|
90
|
-
--tw-scale-x: var(--
|
|
91
|
-
--tw-scale-y: var(--
|
|
89
|
+
&[popover]:not([data-open]) {
|
|
90
|
+
--tw-scale-x: var(--x-popover-content-scale-x);
|
|
91
|
+
--tw-scale-y: var(--x-popover-content-scale-y);
|
|
92
92
|
|
|
93
|
-
opacity: 0
|
|
93
|
+
opacity: 0%;
|
|
94
94
|
pointer-events: none;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
&:not([popover]) {
|
|
98
98
|
.focus:not(:focus, :focus-within) > &, .hover:not(:hover) > & {
|
|
99
|
-
--tw-scale-x: var(--
|
|
100
|
-
--tw-scale-y: var(--
|
|
99
|
+
--tw-scale-x: var(--x-popover-content-scale-x);
|
|
100
|
+
--tw-scale-y: var(--x-popover-content-scale-y);
|
|
101
101
|
|
|
102
|
-
opacity: 0
|
|
102
|
+
opacity: 0%;
|
|
103
103
|
visibility: hidden;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
|