winduum 2.0.0-next.1 → 2.0.0-next.2
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/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 +6 -6
- package/src/components/dialog/default.css +11 -8
- package/src/components/dialog/index.css +2 -2
- package/src/components/dialog/index.js +3 -3
- 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 +8 -5
- 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 +1 -1
- 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 +14 -15
- 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
|
@@ -6,7 +6,7 @@ import { animationsFinished } from '../../common.js'
|
|
|
6
6
|
export const defaultOptions = {
|
|
7
7
|
openClass: 'open',
|
|
8
8
|
overflowClass: 'overflow-auto',
|
|
9
|
-
scrollbarWidthProperty: '--scrollbar-width',
|
|
9
|
+
scrollbarWidthProperty: '--default-scrollbar-width',
|
|
10
10
|
remove: false
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -48,7 +48,7 @@ export const showDialog = async (element, options = {}) => {
|
|
|
48
48
|
element.classList.add(options.openClass)
|
|
49
49
|
await animationsFinished(element.lastElementChild)
|
|
50
50
|
element.classList.add(options.overflowClass)
|
|
51
|
-
element.dispatchEvent(new CustomEvent('dialog:show'))
|
|
51
|
+
element.dispatchEvent(new CustomEvent('x-dialog:show'))
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/**
|
|
@@ -71,6 +71,6 @@ export const closeDialog = async (element, options = {}) => {
|
|
|
71
71
|
? element.close()
|
|
72
72
|
: element.removeAttribute('open')
|
|
73
73
|
|
|
74
|
-
element.dispatchEvent(new CustomEvent('dialog:close'))
|
|
74
|
+
element.dispatchEvent(new CustomEvent('x-dialog:close'))
|
|
75
75
|
options.remove && element.remove()
|
|
76
76
|
}
|
|
@@ -14,9 +14,9 @@ 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/dialog/default
|
|
17
|
+
@import "winduum/src/components/dialog/props/default.css" layer(components);
|
|
18
|
+
@import "winduum/src/components/dialog/props/content.css" layer(components);
|
|
18
19
|
@import "winduum/src/components/dialog/default.css" layer(components);
|
|
19
|
-
@import "winduum/src/components/dialog/content-props.css" layer(components);
|
|
20
20
|
@import "winduum/src/components/dialog/content.css" layer(components);
|
|
21
21
|
```
|
|
22
22
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
.drawer-content {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
.x-drawer-content {
|
|
2
|
+
inline-size: var(--x-drawer-content-inline-size);
|
|
3
|
+
block-size: var(--x-drawer-content-block-size);
|
|
4
|
+
background-color: var(--x-drawer-content-background-color);
|
|
4
5
|
flex-shrink: 0;
|
|
5
6
|
scroll-snap-align: end;
|
|
6
|
-
background-color: var(--color-body-primary);
|
|
7
7
|
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
.drawer {
|
|
2
|
-
--
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
.x-drawer {
|
|
2
|
+
z-index: var(--x-drawer-z-index, var(--z-index-30));
|
|
3
|
+
background-color:
|
|
4
|
+
color-mix(
|
|
5
|
+
in var(--x-drawer-background-color-space, srgb),
|
|
6
|
+
var(--color-dark) calc(var(--background-color-opacity, 0) * var(--x-drawer-background-color-opacity)),
|
|
7
|
+
var(--x-drawer-background-color-mix, transparent)
|
|
8
|
+
);
|
|
5
9
|
position: fixed;
|
|
6
10
|
inset: 0;
|
|
7
11
|
display: flex;
|
|
8
12
|
overflow: auto hidden;
|
|
9
|
-
background-color: color-mix(in sRGB, var(--color-dark) calc(var(--tw-bg-opacity) * var(--drawer-bg-opacity) * 100%), transparent);
|
|
10
13
|
scrollbar-width: none;
|
|
11
14
|
scroll-behavior: smooth;
|
|
12
15
|
-webkit-overflow-scrolling: touch;
|
|
@@ -26,7 +26,7 @@ export const closeDrawer = (element, distance = element.scrollWidth, direction =
|
|
|
26
26
|
export const scrollDrawer = (element, options = {}) => {
|
|
27
27
|
options = {
|
|
28
28
|
snapClass: 'snap-x snap-mandatory',
|
|
29
|
-
opacityProperty: '--
|
|
29
|
+
opacityProperty: '--background-color-opacity',
|
|
30
30
|
opacityRatio: 1,
|
|
31
31
|
scrollOpen: 0,
|
|
32
32
|
scrollClose: element.scrollWidth - element.clientWidth,
|
|
@@ -43,12 +43,12 @@ export const scrollDrawer = (element, options = {}) => {
|
|
|
43
43
|
if (options.scrollDirection === options.scrollOpen) {
|
|
44
44
|
element.classList.add(...options.snapClass.split(/\s/))
|
|
45
45
|
element.inert = false
|
|
46
|
-
element.dispatchEvent(new CustomEvent('drawer:open'))
|
|
46
|
+
element.dispatchEvent(new CustomEvent('x-drawer:open'))
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
if ((options.scrollDirection === options.scrollClose) && !element.inert) {
|
|
50
50
|
element.classList.remove(...options.snapClass.split(/\s/))
|
|
51
51
|
element.inert = true
|
|
52
|
-
element.dispatchEvent(new CustomEvent('drawer:close'))
|
|
52
|
+
element.dispatchEvent(new CustomEvent('x-drawer:close'))
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -14,9 +14,9 @@ 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/drawer/default
|
|
17
|
+
@import "winduum/src/components/drawer/props/default.css" layer(components);
|
|
18
|
+
@import "winduum/src/components/drawer/props/content.css" layer(components);
|
|
18
19
|
@import "winduum/src/components/drawer/default.css" layer(components);
|
|
19
|
-
@import "winduum/src/components/drawer/content-props.css" layer(components);
|
|
20
20
|
@import "winduum/src/components/drawer/content.css" layer(components);
|
|
21
21
|
```
|
|
22
22
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
.field {
|
|
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(.info[hidden]) {
|
|
8
|
-
display:
|
|
7
|
+
:where(.x-info[hidden]) {
|
|
8
|
+
display: revert;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
&:has([required]) :where(.label) {
|
|
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: '.control, .check, .switch, .rating, .color',
|
|
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: '.field',
|
|
41
|
-
infoSelector: '.info',
|
|
42
|
-
infoContent: '<div class="
|
|
43
|
-
endParentSelector: '.control',
|
|
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',
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
.group {
|
|
1
|
+
.x-group {
|
|
2
2
|
display: flex;
|
|
3
3
|
border-radius: var(--radius);
|
|
4
4
|
|
|
5
|
-
&:has(.control) {
|
|
6
|
-
> :where(.button) {
|
|
7
|
-
min-width: var(--control-height);
|
|
5
|
+
&:has(.x-control) {
|
|
6
|
+
> :where(.x-button) {
|
|
7
|
+
min-width: var(--x-control-height);
|
|
8
8
|
height: auto;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
> :is(.button) {
|
|
12
|
-
--button-border-width: var(--control-border-width);
|
|
11
|
+
> :is(.x-button) {
|
|
12
|
+
--x-button-border-width: var(--x-control-border-width);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
> :where(*) {
|
|
17
17
|
border-radius: inherit;
|
|
18
18
|
|
|
19
|
-
&:is(.control) {
|
|
20
|
-
--
|
|
19
|
+
&:is(.x-control) {
|
|
20
|
+
--x-control-border-color-mix: var(--color-body-primary);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
&:is(.button) {
|
|
24
|
-
--button-focus-outline-offset: 0;
|
|
23
|
+
&:is(.x-button) {
|
|
24
|
+
--x-button-focus-outline-offset: 0;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
&:focus-within {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
&:where(:not(:first-child)) {
|
|
32
|
-
margin-inline-start: calc(var(--control-border-width) * -1);
|
|
32
|
+
margin-inline-start: calc(var(--x-control-border-width) * -1);
|
|
33
33
|
border-start-start-radius: 0;
|
|
34
34
|
border-end-start-radius: 0;
|
|
35
35
|
}
|
|
@@ -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
|
-
.group:where(.vertical) {
|
|
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(--control-border-width) * -1);
|
|
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,8 +1,8 @@
|
|
|
1
|
-
.heading {
|
|
2
|
-
font-family: var(--heading-font-family);
|
|
3
|
-
font-weight: var(--heading-font-weight);
|
|
4
|
-
font-size: var(--heading-font-size);
|
|
5
|
-
line-height: var(--heading-line-height);
|
|
6
|
-
letter-spacing: var(--heading-letter-spacing);
|
|
1
|
+
.x-heading {
|
|
2
|
+
font-family: var(--x-heading-font-family);
|
|
3
|
+
font-weight: var(--x-heading-font-weight);
|
|
4
|
+
font-size: var(--x-heading-font-size);
|
|
5
|
+
line-height: var(--x-heading-line-height);
|
|
6
|
+
letter-spacing: var(--x-heading-letter-spacing);
|
|
7
7
|
text-wrap: balance;
|
|
8
8
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.heading:is(.lg) {
|
|
2
|
-
--heading-font-size: var(--font-size-3xl);
|
|
1
|
+
.x-heading:is(.lg) {
|
|
2
|
+
--x-heading-font-size: var(--font-size-3xl);
|
|
3
3
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [Heading](https://winduum.dev/docs/
|
|
1
|
+
# [Heading](https://winduum.dev/docs/components/heading.html)
|
|
2
2
|
|
|
3
3
|
## Installation
|
|
4
4
|
```shell
|
|
@@ -8,16 +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/
|
|
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);
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
### Local imports
|
|
@@ -25,8 +25,8 @@ By default, imports are directly from `npm` so you can leverage updates.
|
|
|
25
25
|
You can also copy and paste the code from this directory to your project and remap the imports to local.
|
|
26
26
|
|
|
27
27
|
```css
|
|
28
|
-
@import "@/components/
|
|
28
|
+
@import "@/components/heading/assets/index.css" layer(components);
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
### Docs
|
|
32
|
-
Visit [docs](https://winduum.dev/docs/
|
|
32
|
+
Visit [docs](https://winduum.dev/docs/components/heading.html) to learn more about usage examples.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.heading:is(.sm) {
|
|
2
|
-
--heading-font-size: var(--font-size-lg);
|
|
1
|
+
.x-heading:is(.sm) {
|
|
2
|
+
--x-heading-font-size: var(--font-size-lg);
|
|
3
3
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [Image](https://winduum.dev/docs/
|
|
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,8 +1,8 @@
|
|
|
1
|
-
.info {
|
|
2
|
-
font-family: var(--info-font-family);
|
|
3
|
-
font-weight: var(--info-font-weight);
|
|
4
|
-
font-size: var(--info-font-size);
|
|
5
|
-
line-height: var(--info-line-height);
|
|
6
|
-
letter-spacing: var(--info-letter-spacing);
|
|
1
|
+
.x-info {
|
|
2
|
+
font-family: var(--x-info-font-family);
|
|
3
|
+
font-weight: var(--x-info-font-weight);
|
|
4
|
+
font-size: var(--x-info-font-size);
|
|
5
|
+
line-height: var(--x-info-line-height);
|
|
6
|
+
letter-spacing: var(--x-info-letter-spacing);
|
|
7
7
|
text-wrap: pretty;
|
|
8
8
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import "default
|
|
1
|
+
@import "props/default.css";
|
|
2
2
|
@import "default.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [Info](https://winduum.dev/docs/
|
|
1
|
+
# [Info](https://winduum.dev/docs/components/info.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/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/
|
|
17
|
+
@import "winduum/src/components/info/props/default.css" layer(components);
|
|
18
|
+
@import "winduum/src/components/info/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/info/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/info.html) to learn more about usage examples.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
.label {
|
|
2
|
-
font-family: var(--label-font-family);
|
|
3
|
-
font-weight: var(--label-font-weight);
|
|
4
|
-
font-size: var(--label-font-size);
|
|
5
|
-
line-height: var(--label-line-height);
|
|
6
|
-
letter-spacing: var(--label-letter-spacing);
|
|
1
|
+
.x-label {
|
|
2
|
+
font-family: var(--x-label-font-family);
|
|
3
|
+
font-weight: var(--x-label-font-weight);
|
|
4
|
+
font-size: var(--x-label-font-size);
|
|
5
|
+
line-height: var(--x-label-line-height);
|
|
6
|
+
letter-spacing: var(--x-label-letter-spacing);
|
|
7
7
|
text-wrap: pretty;
|
|
8
8
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import "default
|
|
1
|
+
@import "props/default.css";
|
|
2
2
|
@import "default.css";
|
|
@@ -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.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
.link {
|
|
2
|
-
font-family: var(--link-font-family);
|
|
3
|
-
font-weight: var(--link-font-weight);
|
|
4
|
-
font-size: var(--link-font-size);
|
|
5
|
-
line-height: var(--link-line-height);
|
|
6
|
-
letter-spacing: var(--link-letter-spacing);
|
|
1
|
+
.x-link {
|
|
2
|
+
font-family: var(--x-link-font-family);
|
|
3
|
+
font-weight: var(--x-link-font-weight);
|
|
4
|
+
font-size: var(--x-link-font-size);
|
|
5
|
+
line-height: var(--x-link-line-height);
|
|
6
|
+
letter-spacing: var(--x-link-letter-spacing);
|
|
7
7
|
text-wrap: pretty;
|
|
8
8
|
}
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
.link {
|
|
2
|
-
--tw-text-opacity: var(--link-hover-color-opacity);
|
|
3
|
-
|
|
1
|
+
.x-link {
|
|
4
2
|
&:where(:any-link, button:enabled, [role="button"]) {
|
|
5
3
|
transition: all var(--default-transition-duration) var(--transition-timing-function-in-out);
|
|
6
4
|
|
|
7
|
-
&:hover {
|
|
8
|
-
color:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&:focus-visible {
|
|
12
|
-
outline: 2px dotted currentColor;
|
|
13
|
-
outline-offset: 2px;
|
|
5
|
+
&:is(:hover, :focus-visible) {
|
|
6
|
+
color: var(--x-link-hover-color, var(--color-accent));
|
|
14
7
|
}
|
|
15
8
|
}
|
|
16
9
|
}
|