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
|
@@ -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.
|
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
.notice {
|
|
2
|
-
--
|
|
3
|
-
--
|
|
4
|
-
--
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
color: var(--color-accent);
|
|
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
12
|
outline:
|
|
13
|
-
var(--notice-outline-width) solid
|
|
13
|
+
var(--x-notice-outline-width) solid
|
|
14
14
|
color-mix(
|
|
15
|
-
in var(--
|
|
16
|
-
var(--color-accent)
|
|
17
|
-
var(--
|
|
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
18
|
);
|
|
19
|
-
outline-offset: var(--notice-outline-offset);
|
|
19
|
+
outline-offset: var(--x-notice-outline-offset);
|
|
20
20
|
text-wrap: pretty;
|
|
21
|
-
|
|
22
|
-
:where(hr) {
|
|
23
|
-
--tw-border-opacity: 0.2;
|
|
24
|
-
}
|
|
25
21
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import "default
|
|
1
|
+
@import "props/default.css";
|
|
2
2
|
@import "default.css";
|
|
@@ -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
|
-
# [Notice](https://winduum.dev/docs/
|
|
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,15 +1,15 @@
|
|
|
1
|
-
.popover-content {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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));
|
|
5
6
|
transition-property: var(--default-transition-property);
|
|
6
7
|
transition-timing-function: var(--transition-timing-function-in-out);
|
|
7
8
|
transition-duration: var(--default-transition-duration);
|
|
9
|
+
transform:
|
|
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
|
-
background-color: var(--popover-content-bg);
|
|
10
|
-
border-radius: var(--popover-content-border-radius);
|
|
11
|
-
padding: var(--popover-content-py) var(--popover-content-px);
|
|
12
|
-
z-index: var(--z-index-10);
|
|
13
13
|
width: max-content;
|
|
14
14
|
position: absolute;
|
|
15
15
|
|
|
@@ -87,21 +87,20 @@
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
&[popover]:not(.in) {
|
|
90
|
-
--tw-scale-x: var(--popover-content-scale-x);
|
|
91
|
-
--tw-scale-y: var(--popover-content-scale-y);
|
|
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(--popover-content-scale-x);
|
|
100
|
-
--tw-scale-y: var(--popover-content-scale-y);
|
|
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
|
-
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
:root, :host {
|
|
2
|
+
--x-popover-content-background-color: var(--color-body-primary);
|
|
3
|
+
--x-popover-content-border-radius: var(--radius);
|
|
4
|
+
--x-popover-content-padding-block: var(--spacing-sm);
|
|
5
|
+
--x-popover-content-padding-inline: var(--spacing-sm);
|
|
6
|
+
--x-popover-content-scale-y: 0.75;
|
|
7
|
+
--x-popover-content-scale-x: 0.75;
|
|
8
|
+
}
|
|
@@ -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/popover/props/content.css" layer(components);
|
|
17
18
|
@import "winduum/src/components/popover/default.css" layer(components);
|
|
18
|
-
@import "winduum/src/components/popover/content-props.css" layer(components);
|
|
19
19
|
@import "winduum/src/components/popover/content.css" layer(components);
|
|
20
20
|
```
|
|
21
21
|
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
.progress {
|
|
2
|
-
--
|
|
3
|
-
|
|
4
|
-
--
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
.x-progress {
|
|
2
|
+
inline-size: var(--x-progress-inline-size, 100%);
|
|
3
|
+
block-size: var(--x-progress-block-size);
|
|
4
|
+
border-radius: var(--x-progress-border-radius);
|
|
5
|
+
background-color:
|
|
6
|
+
color-mix(
|
|
7
|
+
in var(--x-progress-background-color-space, srgb),
|
|
8
|
+
var(--x-progress-background-color, var(--color-accent)) var(--x-progress-background-color-opacity, 10%),
|
|
9
|
+
var(--x-progress-background-color-mix, var(--color-body))
|
|
10
|
+
);
|
|
10
11
|
position: relative;
|
|
11
12
|
overflow: clip;
|
|
12
13
|
|
|
13
14
|
&::-moz-progress-bar {
|
|
14
|
-
background-color: var(--color-accent);
|
|
15
|
+
background-color: var(--x-progress-bar-background-color, var(--color-accent));
|
|
16
|
+
transition: all var(--x-progress-transition-duration) var(--transition-timing-function-in-out);
|
|
15
17
|
border-radius: inherit;
|
|
16
|
-
transition: all var(--default-transition-duration) var(--transition-timing-function-in-out);
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
&::-webkit-progress-bar {
|
|
@@ -26,15 +27,13 @@
|
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
&::-webkit-progress-value {
|
|
29
|
-
background-color: var(--color-accent);
|
|
30
|
-
border-radius: inherit;
|
|
30
|
+
background-color: var(--x-progress-bar-background-color, var(--color-accent));
|
|
31
31
|
transition: all var(--default-transition-duration) var(--transition-timing-function-in-out);
|
|
32
|
+
border-radius: inherit;
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
&:indeterminate {
|
|
35
|
-
--
|
|
36
|
-
|
|
37
|
-
animation: var(--default-transition-duration) var(--transition-timing-function-linear) infinite move-indeterminate;
|
|
36
|
+
animation: var(--x-progress-indeterminate-transition-duration) var(--transition-timing-function-linear) infinite move-indeterminate;
|
|
38
37
|
background-image: linear-gradient(to right, var(--color-accent) 33.33%, transparent 0%);
|
|
39
38
|
background-position: top left;
|
|
40
39
|
background-repeat: no-repeat;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.progress:is(.lg) {
|
|
2
|
-
--progress-
|
|
1
|
+
.x-progress:is(.lg) {
|
|
2
|
+
--x-progress-block-size: 1.5rem;
|
|
3
3
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.progress {
|
|
1
|
+
.x-progress {
|
|
2
2
|
&::-webkit-meter-bar {
|
|
3
3
|
border: 0;
|
|
4
4
|
background: transparent;
|
|
@@ -12,32 +12,32 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
&::-webkit-meter-optimum-value {
|
|
15
|
-
background: var(--color-success);
|
|
15
|
+
background: var(--x-progress-meter-success-background, var(--color-success));
|
|
16
16
|
border-radius: inherit;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
&::-webkit-meter-suboptimum-value {
|
|
20
|
-
background: var(--color-warning);
|
|
20
|
+
background: var(--x-progress-meter-warning-background, var(--color-warning));
|
|
21
21
|
border-radius: inherit;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&::-webkit-meter-even-less-good-value {
|
|
25
|
-
background: var(--color-error);
|
|
25
|
+
background: var(--x-progress-meter-error-background, var(--color-error));
|
|
26
26
|
border-radius: inherit;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&:-moz-meter-optimum::-moz-meter-bar {
|
|
30
|
-
background: var(--color-success);
|
|
30
|
+
background: var(--x-progress-meter-success-background, var(--color-success));
|
|
31
31
|
border-radius: inherit;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
&:-moz-meter-sub-optimum::-moz-meter-bar {
|
|
35
|
-
background: var(--color-warning);
|
|
35
|
+
background: var(--x-progress-meter-warning-background, var(--color-warning));
|
|
36
36
|
border-radius: inherit;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
&:-moz-meter-sub-sub-optimum::-moz-meter-bar {
|
|
40
|
-
background: var(--color-error);
|
|
40
|
+
background: var(--x-progress-meter-error-background, var(--color-error));
|
|
41
41
|
border-radius: inherit;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [Progress](https://winduum.dev/docs/
|
|
1
|
+
# [Progress](https://winduum.dev/docs/components/progress.html)
|
|
2
2
|
|
|
3
3
|
## Installation
|
|
4
4
|
```shell
|
|
@@ -8,17 +8,17 @@ 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/progress/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/
|
|
17
|
+
@import "winduum/src/components/progress/props/default.css" layer(components);
|
|
18
|
+
@import "winduum/src/components/progress/default.css" layer(components);
|
|
19
|
+
@import "winduum/src/components/progress/meter.css" layer(components);
|
|
20
|
+
@import "winduum/src/components/progress/sm.css" layer(components);
|
|
21
|
+
@import "winduum/src/components/progress/lg.css" layer(components);
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
### Local imports
|
|
@@ -26,8 +26,8 @@ By default, imports are directly from `npm` so you can leverage updates.
|
|
|
26
26
|
You can also copy and paste the code from this directory to your project and remap the imports to local.
|
|
27
27
|
|
|
28
28
|
```css
|
|
29
|
-
@import "@/components/
|
|
29
|
+
@import "@/components/progress/assets/index.css" layer(components);
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
### Docs
|
|
33
|
-
Visit [docs](https://winduum.dev/docs/
|
|
33
|
+
Visit [docs](https://winduum.dev/docs/components/progress.html) to learn more about usage examples.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.progress:is(.sm) {
|
|
2
|
-
--progress-
|
|
1
|
+
.x-progress:is(.sm) {
|
|
2
|
+
--x-progress-block-size: 0.5rem;
|
|
3
3
|
}
|
|
@@ -1,100 +1,98 @@
|
|
|
1
|
-
.range {
|
|
2
|
-
--range-thumb-
|
|
3
|
-
--range-thumb-border-color: var(--range-thumb-
|
|
4
|
-
--range-track-
|
|
5
|
-
--range-track:
|
|
1
|
+
.x-range {
|
|
2
|
+
--x-range-thumb-background-color: var(--color-accent);
|
|
3
|
+
--x-range-thumb-border-color: var(--x-range-thumb-background-color);
|
|
4
|
+
--x-range-track-background-color: var(--color-accent);
|
|
5
|
+
--x-range-track-background:
|
|
6
6
|
linear-gradient(
|
|
7
7
|
to right,
|
|
8
|
-
var(--range-track-
|
|
9
|
-
var(--range-track-
|
|
10
|
-
transparent var(--range-track-start),
|
|
11
|
-
transparent var(--range-track-end)
|
|
8
|
+
var(--x-range-track-background-color) 0%,
|
|
9
|
+
var(--x-range-track-background-color) var(--x-range-track-start),
|
|
10
|
+
transparent var(--x-range-track-start),
|
|
11
|
+
transparent var(--x-range-track-end)
|
|
12
12
|
);
|
|
13
13
|
|
|
14
|
-
min-block-size: var(--range-thumb-size);
|
|
14
|
+
min-block-size: var(--x-range-thumb-size);
|
|
15
15
|
display: grid;
|
|
16
16
|
|
|
17
17
|
:where(input) {
|
|
18
|
-
--
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
block-size: var(--x-range-track-block-size);
|
|
19
|
+
background-color:
|
|
20
|
+
color-mix(
|
|
21
|
+
in var(--x-range-background-color-space, srgb),
|
|
22
|
+
var(--x-range-background-color, var(--color-accent)) var(--x-range-background-color-opacity, 10%),
|
|
23
|
+
var(--x-range-background-color-mix, var(--color-body))
|
|
24
|
+
);
|
|
23
25
|
position: relative;
|
|
24
26
|
grid-area: 1/1;
|
|
25
27
|
|
|
26
28
|
&::-webkit-slider-runnable-track {
|
|
27
|
-
block-size: var(--range-track-
|
|
28
|
-
border-radius: var(--radius-full);
|
|
29
|
-
background: var(--range-track);
|
|
29
|
+
block-size: var(--x-range-track-block-size);
|
|
30
|
+
border-radius: var(--x-range-track-border-radius, var(--radius-full));
|
|
31
|
+
background: var(--x-range-track-background);
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
&::-moz-range-track {
|
|
33
|
-
block-size: var(--range-track-
|
|
35
|
+
block-size: var(--x-range-track-block-size);
|
|
34
36
|
border-radius: var(--radius-full);
|
|
35
|
-
background: var(--range-track);
|
|
37
|
+
background: var(--x-range-track-background);
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
&::-webkit-slider-thumb {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
height: var(--range-thumb-size);
|
|
43
|
-
background-color: var(--range-thumb-bg);
|
|
41
|
+
width: var(--x-range-thumb-size);
|
|
42
|
+
height: var(--x-range-thumb-size);
|
|
43
|
+
background-color: var(--x-range-thumb-background-color);
|
|
44
44
|
border-radius: var(--radius-full);
|
|
45
|
-
border: var(--range-thumb-border-width) solid var(--range-thumb-border-color);
|
|
45
|
+
border: var(--x-range-thumb-border-width) solid var(--x-range-thumb-border-color);
|
|
46
46
|
outline:
|
|
47
|
-
var(--range-thumb-outline-width) solid
|
|
47
|
+
var(--x-range-thumb-outline-width) solid
|
|
48
48
|
color-mix(
|
|
49
|
-
in var(--
|
|
50
|
-
var(--range-thumb-
|
|
51
|
-
transparent
|
|
49
|
+
in var(--x-range-thumb-outline-color-space, srgb),
|
|
50
|
+
var(--x-range-thumb-outline-color, var(--x-range-thumb-background-color)) var(--x-range-thumb-outline-color-opacity, 0%),
|
|
51
|
+
var(--x-range-thumb-outline-color-mix, transparent)
|
|
52
52
|
);
|
|
53
|
-
margin-block-start: calc((var(--range-thumb-size) - var(--range-track-
|
|
53
|
+
margin-block-start: calc((var(--x-range-thumb-size) - var(--x-range-track-block-size)) / 2 * -1);
|
|
54
54
|
transition: outline-color var(--default-transition-duration), outline-offset var(--default-transition-duration);
|
|
55
|
-
cursor: var(--range-thumb-cursor, grab);
|
|
55
|
+
cursor: var(--x-range-thumb-cursor, grab);
|
|
56
56
|
appearance: none;
|
|
57
57
|
pointer-events: auto;
|
|
58
58
|
|
|
59
59
|
&:active {
|
|
60
|
-
--range-thumb-cursor: grabbing;
|
|
61
|
-
--
|
|
60
|
+
--x-range-thumb-cursor: grabbing;
|
|
61
|
+
--x-range-thumb-outline-color-opacity: var(--x-range-thumb-focus-outline-opacity);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
&::-moz-range-thumb {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
height: var(--range-thumb-size);
|
|
70
|
-
background-color: var(--range-thumb-bg);
|
|
66
|
+
width: var(--x-range-thumb-size);
|
|
67
|
+
height: var(--x-range-thumb-size);
|
|
68
|
+
background-color: var(--x-range-thumb-background-color);
|
|
71
69
|
border-radius: var(--radius-full);
|
|
72
|
-
border: var(--range-thumb-border-width) solid var(--range-thumb-border-color);
|
|
70
|
+
border: var(--x-range-thumb-border-width) solid var(--x-range-thumb-border-color);
|
|
73
71
|
outline:
|
|
74
|
-
var(--range-thumb-outline-width) solid
|
|
72
|
+
var(--x-range-thumb-outline-width) solid
|
|
75
73
|
color-mix(
|
|
76
|
-
in var(--
|
|
77
|
-
var(--range-thumb-
|
|
78
|
-
transparent
|
|
74
|
+
in var(--x-range-thumb-outline-color-space, srgb),
|
|
75
|
+
var(--x-range-thumb-outline-color, var(--x-range-thumb-background-color)) var(--x-range-thumb-outline-color-opacity, 0%),
|
|
76
|
+
var(--x-range-thumb-outline-color-mix, transparent)
|
|
79
77
|
);
|
|
80
78
|
transition: outline-color var(--default-transition-duration), outline-offset var(--default-transition-duration);
|
|
81
|
-
cursor: var(--range-thumb-cursor, grab);
|
|
79
|
+
cursor: var(--x-range-thumb-cursor, grab);
|
|
82
80
|
appearance: none;
|
|
83
81
|
pointer-events: auto;
|
|
84
82
|
|
|
85
83
|
&:active {
|
|
86
|
-
--range-thumb-cursor: grabbing;
|
|
87
|
-
--
|
|
84
|
+
--x-range-thumb-cursor: grabbing;
|
|
85
|
+
--x-range-thumb-outline-color-opacity: var(--x-range-thumb-focus-outline-opacity);
|
|
88
86
|
}
|
|
89
87
|
}
|
|
90
88
|
|
|
91
89
|
&:focus-visible {
|
|
92
90
|
&::-webkit-slider-thumb {
|
|
93
|
-
--
|
|
91
|
+
--x-range-thumb-outline-color-opacity: var(--x-range-thumb-focus-outline-opacity);
|
|
94
92
|
}
|
|
95
93
|
|
|
96
94
|
&::-moz-range-thumb {
|
|
97
|
-
--
|
|
95
|
+
--x-range-thumb-outline-color-opacity: var(--x-range-thumb-focus-outline-opacity);
|
|
98
96
|
}
|
|
99
97
|
}
|
|
100
98
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @returns void
|
|
5
5
|
*/
|
|
6
6
|
export const setTrackProperty = ({ element, value, max }, track = 'start') => {
|
|
7
|
-
element.style.setProperty('--range-track-' + track, `${((value) / max * 100).toString()}%`)
|
|
7
|
+
element.style.setProperty('--x-range-track-' + track, `${((value) / max * 100).toString()}%`)
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -14,7 +14,7 @@ export const setTrackProperty = ({ element, value, max }, track = 'start') => {
|
|
|
14
14
|
*/
|
|
15
15
|
export const setValue = (element, options = {}) => {
|
|
16
16
|
const { selector, track } = {
|
|
17
|
-
selector: '.range',
|
|
17
|
+
selector: '.x-range',
|
|
18
18
|
track: 'start',
|
|
19
19
|
...options
|
|
20
20
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
.range {
|
|
1
|
+
.x-range {
|
|
2
2
|
:where(input) {
|
|
3
3
|
&:not(:only-of-type) {
|
|
4
|
-
--range-track:
|
|
4
|
+
--x-range-track-background:
|
|
5
5
|
linear-gradient(
|
|
6
6
|
to right,
|
|
7
7
|
transparent 0%,
|
|
8
|
-
transparent var(--range-track-start),
|
|
9
|
-
var(--range-track-
|
|
10
|
-
var(--range-track-
|
|
11
|
-
transparent var(--range-track-end),
|
|
8
|
+
transparent var(--x-range-track-start),
|
|
9
|
+
var(--x-range-track-background-color) var(--x-range-track-start),
|
|
10
|
+
var(--x-range-track-background-color) var(--x-range-track-end),
|
|
11
|
+
transparent var(--x-range-track-end),
|
|
12
12
|
transparent 100%
|
|
13
13
|
);
|
|
14
14
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
:root, :host {
|
|
2
|
+
--x-range-track-block-size: 0.375rem;
|
|
3
|
+
--x-range-thumb-size: 1.125rem;
|
|
4
|
+
--x-range-thumb-border-width: 0;
|
|
5
|
+
--x-range-thumb-outline-width: 2px;
|
|
6
|
+
--x-range-thumb-focus-outline-opacity: 50%;
|
|
7
|
+
--x-range-track-start: 0%;
|
|
8
|
+
--x-range-track-end: 100%;
|
|
9
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [Range](https://winduum.dev/docs/
|
|
1
|
+
# [Range](https://winduum.dev/docs/components/range.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/range/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/range/default.css" layer(components);
|
|
18
|
+
@import "winduum/src/components/range/default-props.css" layer(components);
|
|
19
|
+
@import "winduum/src/components/range/multi.css" layer(components);
|
|
20
|
+
@import "winduum/src/components/range/vertical.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/range/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/range.html) to learn more about Javascript API and see usage examples.
|