winduum 1.2.1 → 2.0.0-next.1
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 +4 -4
- package/plugin/index.js +63 -12
- package/plugin/utilities/common.js +4 -4
- package/plugin/utilities/dot.js +1 -2
- 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 +9 -11
- package/src/base/keyframes.css +12 -0
- 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 +16 -0
- package/src/components/badge/circle.css +5 -0
- package/src/components/badge/default-props.css +8 -0
- package/src/components/badge/default.css +26 -0
- package/src/components/badge/lg.css +3 -0
- package/src/components/badge/muted.css +4 -0
- package/src/components/badge/sm.css +4 -0
- package/src/components/badge/square.css +4 -0
- package/src/components/breadcrumb/default-props.css +3 -3
- package/src/components/breadcrumb/default.css +5 -5
- 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-props.css +2 -2
- package/src/components/card/default.css +4 -4
- package/src/components/carousel/content.css +1 -1
- package/src/components/carousel/default.css +1 -1
- package/src/components/check/default-props.css +13 -0
- package/src/components/check/default.css +74 -0
- package/src/components/check/interactive-props.css +3 -0
- package/src/components/check/interactive.css +50 -0
- package/src/components/check/invalid.css +8 -0
- package/src/components/color/default-props.css +11 -0
- package/src/{ui → components}/color/default.css +14 -14
- package/src/components/color/interactive-props.css +3 -0
- package/src/{ui → components}/color/interactive.css +5 -5
- package/src/components/compare/default.css +13 -13
- package/src/components/compare/index.js +2 -2
- package/src/components/control/color-props.css +5 -0
- package/src/components/control/color.css +24 -0
- package/src/components/control/default-props.css +16 -0
- package/src/components/control/default.css +77 -0
- package/src/components/control/file.css +25 -0
- package/src/components/control/floating-interactive.css +13 -0
- package/src/components/control/floating-props.css +4 -0
- package/src/{ui → components}/control/floating.css +5 -5
- package/src/components/control/icon-props.css +4 -0
- package/src/components/control/icon.css +32 -0
- package/src/components/control/interactive-props.css +3 -0
- package/src/components/control/interactive.css +19 -0
- package/src/components/control/invalid.css +10 -0
- package/src/{ui → components}/control/select-multiple.css +2 -2
- package/src/components/control/select-props.css +4 -0
- package/src/components/control/select.css +23 -0
- package/src/components/dialog/content-props.css +3 -3
- package/src/components/dialog/content.css +5 -5
- package/src/components/dialog/default-props.css +4 -4
- package/src/components/dialog/default.css +11 -12
- package/src/components/dialog/index.d.ts +3 -18
- package/src/components/dialog/index.js +21 -80
- package/src/components/drawer/content-props.css +4 -4
- package/src/components/drawer/content.css +3 -3
- package/src/components/drawer/default-props.css +1 -1
- package/src/components/drawer/default.css +3 -3
- package/src/components/drawer/index.js +2 -2
- package/src/components/field/default.css +3 -3
- package/src/components/form/index.js +4 -4
- package/src/{ui → components}/group/default.css +11 -11
- package/src/{ui → components}/group/vertical.css +2 -2
- package/src/components/heading/default-props.css +6 -0
- package/src/components/heading/default.css +8 -0
- package/src/components/heading/lg.css +3 -0
- package/src/components/heading/sm.css +3 -0
- package/src/{ui → components}/image/avatar.css +3 -3
- package/src/{ui → components}/image/default.css +1 -1
- package/src/components/index.css +20 -0
- package/src/components/info/default-props.css +4 -0
- package/src/components/info/default.css +8 -0
- package/src/components/label/default-props.css +4 -0
- package/src/components/label/default.css +8 -0
- package/src/components/link/default-props.css +4 -0
- package/src/components/link/default.css +8 -0
- package/src/components/link/interactive-props.css +5 -0
- package/src/components/link/interactive.css +16 -0
- package/src/components/notice/default-props.css +8 -0
- package/src/components/notice/default.css +25 -0
- package/src/components/pagination/default.css +1 -1
- package/src/components/popover/content-props.css +6 -6
- package/src/components/popover/content.css +12 -12
- package/src/components/popover/default.css +1 -1
- package/src/components/progress/default-props.css +4 -0
- package/src/{ui → components}/progress/default.css +9 -9
- package/src/components/progress/lg.css +3 -0
- package/src/{ui → components}/progress/meter.css +1 -1
- package/src/components/progress/sm.css +3 -0
- package/src/components/range/default-props.css +10 -0
- package/src/components/range/default.css +101 -0
- package/src/{ui → components}/range/index.js +2 -2
- package/src/components/range/multi.css +22 -0
- package/src/{ui → components}/range/vertical.css +2 -2
- package/src/components/rating/default-props.css +5 -0
- package/src/{ui → components}/rating/default.css +6 -6
- package/src/{ui → components}/rating/invalid.css +2 -2
- package/src/components/switch/default-props.css +17 -0
- package/src/components/switch/default.css +46 -0
- package/src/components/switch/interactive-props.css +3 -0
- package/src/components/switch/interactive.css +39 -0
- package/src/components/switch/invalid.css +6 -0
- package/src/components/table/default-props.css +6 -6
- package/src/components/table/default.css +8 -8
- package/src/components/table/interactive-props.css +2 -2
- package/src/components/table/interactive.css +11 -11
- package/src/components/tabs/default.css +2 -2
- package/src/components/text/default-props.css +9 -0
- package/src/components/text/default.css +193 -0
- package/src/components/title/default-props.css +5 -0
- package/src/components/title/default.css +8 -0
- package/src/components/title/lg.css +3 -0
- package/src/components/title/sm.css +3 -0
- package/src/components/toast/content-props.css +5 -5
- package/src/components/toast/content.css +12 -12
- package/src/components/toast/default-props.css +2 -2
- package/src/components/toast/default.css +5 -5
- package/src/components/toaster/default-props.css +2 -2
- package/src/components/toaster/default.css +4 -4
- package/src/components/toaster/index.js +6 -6
- package/src/components/tooltip/default-props.css +10 -10
- package/src/components/tooltip/default.css +14 -14
- package/src/main.css +0 -1
- 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 +2 -3
- package/src/utilities/ripple/index.css +1 -3
- package/src/utilities/skeleton/index.css +1 -1
- package/src/utilities/skeleton/props/default.css +5 -0
- package/src/utilities/swap/default.css +4 -4
- package/src/utilities/underline.css +3 -3
- package/types/index.d.ts +4 -19
- 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/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/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/interactive-props.css +0 -3
- 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/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/select-props.css +0 -4
- package/src/ui/control/select.css +0 -23
- 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/label/default-props.css +0 -4
- package/src/ui/label/default.css +0 -8
- package/src/ui/link/default-props.css +0 -4
- package/src/ui/link/default.css +0 -8
- 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/progress/default-props.css +0 -4
- 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/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/text/default-props.css +0 -9
- package/src/ui/text/default.css +0 -193
- 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}/badge/index.css +0 -0
- /package/src/{ui → components}/badge/readme.md +0 -0
- /package/src/{ui → components}/check/index.css +0 -0
- /package/src/{ui → components}/check/readme.md +0 -0
- /package/src/{ui → components}/color/index.css +0 -0
- /package/src/{ui → components}/color/readme.md +0 -0
- /package/src/{ui → components}/control/index.css +0 -0
- /package/src/{ui → components}/control/readme.md +0 -0
- /package/src/{ui → components}/group/index.css +0 -0
- /package/src/{ui → components}/group/readme.md +0 -0
- /package/src/{ui → components}/heading/index.css +0 -0
- /package/src/{ui → components}/heading/readme.md +0 -0
- /package/src/{ui → components}/image/index.css +0 -0
- /package/src/{ui → components}/image/readme.md +0 -0
- /package/src/{ui → components}/info/index.css +0 -0
- /package/src/{ui → components}/info/readme.md +0 -0
- /package/src/{ui → components}/label/index.css +0 -0
- /package/src/{ui → components}/label/readme.md +0 -0
- /package/src/{ui → components}/link/index.css +0 -0
- /package/src/{ui → components}/link/readme.md +0 -0
- /package/src/{ui → components}/notice/index.css +0 -0
- /package/src/{ui → components}/notice/readme.md +0 -0
- /package/src/{ui → components}/progress/index.css +0 -0
- /package/src/{ui → components}/progress/readme.md +0 -0
- /package/src/{ui → components}/range/index.css +0 -0
- /package/src/{ui → components}/range/index.d.ts +0 -0
- /package/src/{ui → components}/range/readme.md +0 -0
- /package/src/{ui → components}/rating/index.css +0 -0
- /package/src/{ui → components}/rating/readme.md +0 -0
- /package/src/{ui → components}/switch/index.css +0 -0
- /package/src/{ui → components}/switch/readme.md +0 -0
- /package/src/{ui → components}/text/index.css +0 -0
- /package/src/{ui → components}/text/readme.md +0 -0
- /package/src/{ui → components}/title/index.css +0 -0
- /package/src/{ui → components}/title/readme.md +0 -0
- /package/src/utilities/container/{default-props.css → props/default.css} +0 -0
package/src/main.css
CHANGED
package/src/utilities/common.css
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
.grid-cols-container {
|
|
2
|
-
display: grid;
|
|
3
2
|
grid-template-columns:
|
|
4
3
|
[container-full-start] minmax(var(--container-padding), 1fr)
|
|
5
4
|
[container-lg-start] minmax(0, calc((var(--container-lg-width) - var(--container-width)) / 2))
|
|
6
5
|
[container-start] min(100% - (var(--container-padding) * 2), var(--container-width)) [container-end]
|
|
7
6
|
minmax(0, calc((var(--container-lg-width) - var(--container-width)) / 2)) [container-lg-end]
|
|
8
7
|
minmax(var(--container-padding), 1fr) [container-full-end];
|
|
9
|
-
}
|
|
10
8
|
|
|
11
|
-
:where(
|
|
12
|
-
|
|
9
|
+
& > :where(*) {
|
|
10
|
+
grid-column: container;
|
|
11
|
+
}
|
|
13
12
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
@import "default.css";
|
|
2
|
-
@import "default
|
|
2
|
+
@import "props/default.css";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
.divider {
|
|
2
2
|
--color-accent: currentColor;
|
|
3
|
-
--tw-border-opacity: 0.15;
|
|
4
3
|
|
|
5
4
|
display: flex;
|
|
6
5
|
align-items: center;
|
|
@@ -13,13 +12,13 @@
|
|
|
13
12
|
&::before, &::after {
|
|
14
13
|
content: "";
|
|
15
14
|
flex-grow: 1;
|
|
16
|
-
border-block-start: 1px solid color-mix(in var(--space), var(--color-accent)
|
|
15
|
+
border-block-start: 1px solid color-mix(in var(--default-color-space), var(--color-accent) 15%, transparent);
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
&:where(.flex-col) {
|
|
20
19
|
&::before, &::after {
|
|
21
20
|
border-block-start: 0;
|
|
22
|
-
border-inline-start: 1px solid color-mix(in var(--space), var(--color-accent)
|
|
21
|
+
border-inline-start: 1px solid color-mix(in var(--default-color-space), var(--color-accent) 15%, transparent);
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
.ripple {
|
|
2
|
-
--
|
|
3
|
-
|
|
4
|
-
background-color: color-mix(in var(--space), currentcolor calc(var(--tw-bg-opacity) * 100%), transparent);
|
|
2
|
+
background-color: color-mix(in var(--default-color-space), currentcolor 40%, transparent);
|
|
5
3
|
position: absolute;
|
|
6
4
|
border-radius: 50%;
|
|
7
5
|
transform: scale(0);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
@import "default.css";
|
|
2
|
-
@import "default
|
|
2
|
+
@import "props/default.css";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.swap {
|
|
2
2
|
display: inline-grid;
|
|
3
|
-
cursor: var(--cursor, pointer);
|
|
3
|
+
cursor: var(--cursor-pointer, pointer);
|
|
4
4
|
|
|
5
5
|
> :where(*) {
|
|
6
|
-
transition-property: var(--transition);
|
|
7
|
-
transition-timing-function: var(--
|
|
8
|
-
transition-duration: var(--duration);
|
|
6
|
+
transition-property: var(--default-transition-property);
|
|
7
|
+
transition-timing-function: var(--transition-timing-function-in-out);
|
|
8
|
+
transition-duration: var(--default-transition-duration);
|
|
9
9
|
grid-area: 1/-1;
|
|
10
10
|
opacity: 0;
|
|
11
11
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
.underline {
|
|
2
|
-
text-underline-offset: var(--
|
|
2
|
+
text-underline-offset: var(--default-underline-offset, 0.125em);
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.underline-transparent {
|
|
6
6
|
&:where(:any-link, button:enabled, [role="button"]) {
|
|
7
|
-
transition: all var(--duration) var(--
|
|
7
|
+
transition: all var(--default-transition-duration) var(--transition-timing-function-in-out);
|
|
8
8
|
|
|
9
9
|
&:not(:hover, :focus-visible) {
|
|
10
|
-
text-underline-offset: var(--
|
|
10
|
+
text-underline-offset: var(--default-underline-transparent-offset, -0.25em);
|
|
11
11
|
text-decoration-color: transparent;
|
|
12
12
|
}
|
|
13
13
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -96,28 +96,13 @@ declare module 'winduum/src/components/dialog' {
|
|
|
96
96
|
remove?: boolean | null
|
|
97
97
|
closable?: boolean | null
|
|
98
98
|
openClass?: string
|
|
99
|
+
overflowClass?: string
|
|
99
100
|
scrollbarWidthProperty?: string
|
|
100
101
|
}
|
|
101
102
|
|
|
102
|
-
export interface InsertDialogOptions {
|
|
103
|
-
selector?: string | null
|
|
104
|
-
class?: string | null
|
|
105
|
-
append?: boolean | null
|
|
106
|
-
show?: DefaultOptions
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export interface FetchDialogOptions {
|
|
110
|
-
url: string
|
|
111
|
-
insert?: InsertDialogOptions
|
|
112
|
-
}
|
|
113
|
-
|
|
114
103
|
export const defaultOptions: DefaultOptions
|
|
115
|
-
export function
|
|
116
|
-
export function
|
|
117
|
-
export function showDialog(element: HTMLDialogElement, options?: DefaultOptions): Promise<void>
|
|
118
|
-
export function closeDialog(element: HTMLDialogElement, options?: DefaultOptions): Promise<void>
|
|
119
|
-
export function insertDialog(content: string, options?: InsertDialogOptions): Promise<void>
|
|
120
|
-
export function fetchDialog({ url, insert }: FetchDialogOptions): Promise<void>
|
|
104
|
+
export function showDialog(element: HTMLDialogElement | HTMLElement, options?: DefaultOptions): Promise<void>
|
|
105
|
+
export function closeDialog(element: HTMLDialogElement | HTMLElement, options?: DefaultOptions): Promise<void>
|
|
121
106
|
}
|
|
122
107
|
|
|
123
108
|
declare module 'winduum/src/components/drawer' {
|
|
@@ -224,7 +209,7 @@ declare module 'winduum/src/components/popover' {
|
|
|
224
209
|
export function togglePopover(element: HTMLElement | Element, options?: ShowPopoverOptions): Promise<void>
|
|
225
210
|
}
|
|
226
211
|
|
|
227
|
-
declare module 'winduum/src/
|
|
212
|
+
declare module 'winduum/src/components/range' {
|
|
228
213
|
export interface SetTrackPropertyOptions {
|
|
229
214
|
element: HTMLElement | Element
|
|
230
215
|
value: string
|
package/types/index.d.ts.map
CHANGED
|
@@ -27,14 +27,8 @@
|
|
|
27
27
|
"showDetails",
|
|
28
28
|
"closeDetails",
|
|
29
29
|
"toggleDetails",
|
|
30
|
-
"InsertDialogOptions",
|
|
31
|
-
"FetchDialogOptions",
|
|
32
|
-
"dialogSelector",
|
|
33
|
-
"dismissDialog",
|
|
34
30
|
"showDialog",
|
|
35
31
|
"closeDialog",
|
|
36
|
-
"insertDialog",
|
|
37
|
-
"fetchDialog",
|
|
38
32
|
"ScrollDrawerOptions",
|
|
39
33
|
"showDrawer",
|
|
40
34
|
"closeDrawer",
|
|
@@ -77,7 +71,7 @@
|
|
|
77
71
|
"../src/components/tabs/index.d.ts",
|
|
78
72
|
"../src/components/toaster/index.d.ts",
|
|
79
73
|
"../src/components/popover/index.d.ts",
|
|
80
|
-
"../src/
|
|
74
|
+
"../src/components/range/index.d.ts",
|
|
81
75
|
"../src/utilities/ripple/index.d.ts",
|
|
82
76
|
"../src/utilities/swap/index.d.ts"
|
|
83
77
|
],
|
|
@@ -96,5 +90,6 @@
|
|
|
96
90
|
null,
|
|
97
91
|
null
|
|
98
92
|
],
|
|
99
|
-
"mappings": ";;kBAEiBA,aAAaA;;;;;;;;;;;;;;;;;;;;cAoBjBC,aAAaA;;;;;;kBCtBTC,sBAAsBA;;;;;;;;kBAQtBC,yBAAyBA;;;;;;kBAMzBC,qBAAqBA;;;;;;;;kBAQrBC,uBAAuBA;;;;;kBAKvBC,mBAAmBA;;;;iBAIpBC,UAAUA;iBACVC,UAAUA;iBACVC,QAAQA;iBACRC,YAAYA;iBACZC,eAAeA;iBACfC,cAAcA;iBACdC,kBAAkBA;iBAClBC,gBAAgBA;iBAChBC,YAAYA;;;;kBCvCXC,kBAAkBA;;;;;iBAKnBC,WAAWA;iBACXC,eAAeA;iBACfC,YAAYA;;;;kBCPXC,cAAcA;;;;;cAKlBC,cAAcA;iBACXC,WAAWA;iBACXC,YAAYA;iBACZC,aAAaA;;;;kBCRZJ,cAAcA
|
|
93
|
+
"mappings": ";;kBAEiBA,aAAaA;;;;;;;;;;;;;;;;;;;;cAoBjBC,aAAaA;;;;;;kBCtBTC,sBAAsBA;;;;;;;;kBAQtBC,yBAAyBA;;;;;;kBAMzBC,qBAAqBA;;;;;;;;kBAQrBC,uBAAuBA;;;;;kBAKvBC,mBAAmBA;;;;iBAIpBC,UAAUA;iBACVC,UAAUA;iBACVC,QAAQA;iBACRC,YAAYA;iBACZC,eAAeA;iBACfC,cAAcA;iBACdC,kBAAkBA;iBAClBC,gBAAgBA;iBAChBC,YAAYA;;;;kBCvCXC,kBAAkBA;;;;;iBAKnBC,WAAWA;iBACXC,eAAeA;iBACfC,YAAYA;;;;kBCPXC,cAAcA;;;;;cAKlBC,cAAcA;iBACXC,WAAWA;iBACXC,YAAYA;iBACZC,aAAaA;;;;kBCRZJ,cAAcA;;;;;;;;cAQlBC,cAAcA;iBACXI,UAAUA;iBACVC,WAAWA;;;;kBCVVC,mBAAmBA;;;;;;;;;;iBAUpBC,UAAUA;iBACVC,WAAWA;iBACXC,YAAYA;;;;kBCZXC,mBAAmBA;;;;;;kBAMnBC,oBAAoBA;;;;;;;;;;;;;;;;;;iBAkBrBC,YAAYA;iBACZC,aAAaA;;;;;;;;;iBCpBbC,SAASA;;;;kBCLRC,gBAAgBA;;;;;;;kBAOhBC,iBAAiBA;;;;;kBAKjBC,oBAAoBA;;;;kBAIpBC,kBAAkBA;;;;;;;;;iBASnBC,UAAUA;iBACVC,SAASA;iBACTC,aAAaA;iBACbC,WAAWA;iBACXC,YAAYA;;;;;kBC3BXC,kBAAkBA;;;;;;;;;;iBAUnBC,WAAWA;iBACXC,WAAWA;iBACXC,aAAaA;;;;kBCdZC,uBAAuBA;;;;;;kBAMvBC,eAAeA;;;;;kBAKfC,gBAAgBA;;;;;iBAKjBC,gBAAgBA;iBAChBC,QAAQA;iBACRC,cAAcA;;;;iBClBdC,UAAUA;;;;iBCAVC,UAAUA",
|
|
94
|
+
"ignoreList": []
|
|
100
95
|
}
|
package/plugin/utilities/flex.js
DELETED
package/src/base/config/text.css
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
:root, :host {
|
|
2
|
-
--text-xs: 0.75rem;
|
|
3
|
-
--text-sm: 0.875rem;
|
|
4
|
-
--text-base: 1rem;
|
|
5
|
-
--text-lg: 1.125rem;
|
|
6
|
-
--text-xl: 1.25rem;
|
|
7
|
-
--text-2xl: 1.5rem;
|
|
8
|
-
--text-3xl: 1.875rem;
|
|
9
|
-
--text-4xl: 2.25rem;
|
|
10
|
-
--text-5xl: 3rem;
|
|
11
|
-
--text-6xl: 3.75rem;
|
|
12
|
-
--text-7xl: 4.5rem;
|
|
13
|
-
--text-8xl: 6rem;
|
|
14
|
-
--text-9xl: 8rem;
|
|
15
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
.ui-badge {
|
|
2
|
-
&:where(.bordered) {
|
|
3
|
-
--ui-badge-border-color: var(--color-accent);
|
|
4
|
-
--ui-badge-border-width: 1px;
|
|
5
|
-
--tw-border-opacity: 1;
|
|
6
|
-
--tw-border-mix: transparent;
|
|
7
|
-
|
|
8
|
-
border: var(--ui-badge-border-width) solid color-mix(in var(--space), var(--ui-badge-border-color) calc(var(--tw-border-opacity) * 100%), var(--tw-border-mix));
|
|
9
|
-
padding-inline: calc(var(--ui-badge-px) - var(--ui-badge-border-width));
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&:is(.bordered) {
|
|
13
|
-
--ui-badge-color: var(--color-accent);
|
|
14
|
-
--tw-bg-opacity: 0;
|
|
15
|
-
}
|
|
16
|
-
}
|
package/src/ui/badge/circle.css
DELETED
package/src/ui/badge/default.css
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
.ui-badge {
|
|
2
|
-
--ui-badge-bg: var(--color-accent);
|
|
3
|
-
--ui-badge-color: var(--color-accent-foreground);
|
|
4
|
-
--tw-bg-opacity: 1;
|
|
5
|
-
--tw-text-opacity: 1;
|
|
6
|
-
--tw-bg-mix: transparent;
|
|
7
|
-
--tw-text-mix: transparent;
|
|
8
|
-
|
|
9
|
-
width: var(--ui-badge-width);
|
|
10
|
-
height: var(--ui-badge-height);
|
|
11
|
-
padding: var(--ui-badge-py) var(--ui-badge-px);
|
|
12
|
-
border-radius: var(--ui-badge-border-radius);
|
|
13
|
-
font-family: var(--ui-badge-font-family);
|
|
14
|
-
font-weight: var(--ui-badge-font-weight);
|
|
15
|
-
font-size: var(--ui-badge-font-size);
|
|
16
|
-
letter-spacing: var(--ui-badge-letter-spacing);
|
|
17
|
-
background-color: color-mix(in var(--space), var(--ui-badge-bg) calc(var(--tw-bg-opacity) * 100%), var(--tw-bg-mix));
|
|
18
|
-
color: color-mix(in var(--space), var(--ui-badge-color) calc(var(--tw-text-opacity) * 100%), var(--tw-text-mix));
|
|
19
|
-
gap: var(--ui-badge-gap);
|
|
20
|
-
display: inline-flex;
|
|
21
|
-
text-align: center;
|
|
22
|
-
align-items: center;
|
|
23
|
-
justify-content: center;
|
|
24
|
-
line-height: 1;
|
|
25
|
-
flex-shrink: 0;
|
|
26
|
-
}
|
package/src/ui/badge/lg.css
DELETED
package/src/ui/badge/muted.css
DELETED
package/src/ui/badge/sm.css
DELETED
package/src/ui/badge/square.css
DELETED
package/src/ui/btn/bordered.css
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
.ui-btn {
|
|
2
|
-
&:where(.bordered) {
|
|
3
|
-
--ui-btn-border-width: 1px;
|
|
4
|
-
--ui-btn-border-color: var(--color-accent);
|
|
5
|
-
--tw-border-opacity: 0.3;
|
|
6
|
-
--tw-border-mix: transparent;
|
|
7
|
-
|
|
8
|
-
border: var(--ui-btn-border-width) solid color-mix(in var(--space), var(--ui-btn-border-color) calc(var(--tw-border-opacity) * 100%), var(--tw-border-mix));
|
|
9
|
-
padding-inline: calc(var(--ui-btn-px) - var(--ui-btn-border-width));
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&:is(.bordered) {
|
|
13
|
-
--ui-btn-hover-bg-mix: transparent;
|
|
14
|
-
--ui-btn-hover-bg-opacity: 0.1;
|
|
15
|
-
--ui-btn-active-bg-mix: transparent;
|
|
16
|
-
--ui-btn-active-bg-opacity: 0.2;
|
|
17
|
-
--ui-btn-focus-outline-offset: -2px;
|
|
18
|
-
--ui-btn-color: var(--color-accent);
|
|
19
|
-
--tw-bg-opacity: 0;
|
|
20
|
-
}
|
|
21
|
-
}
|
package/src/ui/btn/circle.css
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
:root, :host {
|
|
2
|
-
--ui-btn-border-radius: var(--rounded);
|
|
3
|
-
--ui-btn-font-size: var(--text-sm);
|
|
4
|
-
--ui-btn-font-weight: var(--font-medium);
|
|
5
|
-
--ui-btn-gap: var(--spacing-sm);
|
|
6
|
-
--ui-btn-outline-width: 2px;
|
|
7
|
-
--ui-btn-height: 2.25rem;
|
|
8
|
-
--ui-btn-py: 0.375rem;
|
|
9
|
-
--ui-btn-px: 0.75rem;
|
|
10
|
-
}
|
package/src/ui/btn/default.css
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
.ui-btn {
|
|
2
|
-
--ui-btn-bg: var(--color-accent);
|
|
3
|
-
--ui-btn-color: var(--color-accent-foreground);
|
|
4
|
-
--ui-btn-outline-color: var(--color-accent);
|
|
5
|
-
--tw-bg-opacity: 1;
|
|
6
|
-
--tw-bg-mix: transparent;
|
|
7
|
-
--tw-text-opacity: 1;
|
|
8
|
-
--tw-text-mix: transparent;
|
|
9
|
-
--tw-outline-opacity: 0;
|
|
10
|
-
--tw-outline-mix: transparent;
|
|
11
|
-
|
|
12
|
-
inline-size: var(--ui-btn-width);
|
|
13
|
-
block-size: var(--ui-btn-height);
|
|
14
|
-
padding: var(--ui-btn-py) var(--ui-btn-px);
|
|
15
|
-
border-radius: var(--ui-btn-border-radius);
|
|
16
|
-
font-family: var(--ui-btn-font-family);
|
|
17
|
-
font-size: var(--ui-btn-font-size);
|
|
18
|
-
font-weight: var(--ui-btn-font-weight);
|
|
19
|
-
letter-spacing: var(--ui-btn-letter-spacing);
|
|
20
|
-
background-color: color-mix(in var(--space), var(--ui-btn-bg) calc(var(--tw-bg-opacity) * 100%), var(--tw-bg-mix));
|
|
21
|
-
color: color-mix(in var(--space), var(--ui-btn-color) calc(var(--tw-text-opacity) * 100%), var(--tw-text-mix));
|
|
22
|
-
outline:
|
|
23
|
-
var(--ui-btn-outline-width) solid
|
|
24
|
-
color-mix(
|
|
25
|
-
in var(--space),
|
|
26
|
-
var(--ui-btn-outline-color) calc(var(--tw-outline-opacity) * 100%),
|
|
27
|
-
var(--tw-outline-mix)
|
|
28
|
-
);
|
|
29
|
-
outline-offset: var(--ui-btn-outline-offset);
|
|
30
|
-
gap: var(--ui-btn-gap);
|
|
31
|
-
user-select: none;
|
|
32
|
-
overflow: clip;
|
|
33
|
-
display: inline-flex;
|
|
34
|
-
text-align: center;
|
|
35
|
-
align-items: center;
|
|
36
|
-
justify-content: center;
|
|
37
|
-
position: relative;
|
|
38
|
-
line-height: 1;
|
|
39
|
-
flex-shrink: 0;
|
|
40
|
-
z-index: 0;
|
|
41
|
-
|
|
42
|
-
:where(*) {
|
|
43
|
-
pointer-events: none;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&:where(input)::after {
|
|
47
|
-
content: attr(aria-label);
|
|
48
|
-
}
|
|
49
|
-
}
|
package/src/ui/btn/fill.css
DELETED
package/src/ui/btn/ghosted.css
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
.ui-btn:is(.ghosted) {
|
|
2
|
-
--ui-btn-hover-bg-mix: transparent;
|
|
3
|
-
--ui-btn-hover-bg-opacity: 0.1;
|
|
4
|
-
--ui-btn-active-bg-mix: transparent;
|
|
5
|
-
--ui-btn-active-bg-opacity: 0.2;
|
|
6
|
-
--ui-btn-focus-outline-offset: -2px;
|
|
7
|
-
--ui-btn-color: var(--color-accent);
|
|
8
|
-
--tw-bg-opacity: 0;
|
|
9
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
.ui-btn {
|
|
2
|
-
&:where(.gradient-bordered) {
|
|
3
|
-
&::before {
|
|
4
|
-
content: "";
|
|
5
|
-
position: absolute;
|
|
6
|
-
background-color: color-mix(in var(--space), var(--color-body) calc(100% - var(--tw-bg-opacity) * 100%), transparent);
|
|
7
|
-
inset: var(--ui-btn-border-width);
|
|
8
|
-
border-radius: calc(var(--ui-btn-border-radius) / 1.25);
|
|
9
|
-
z-index: -1;
|
|
10
|
-
transition: var(--transition-background);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&:is(.gradient-bordered) {
|
|
15
|
-
--ui-btn-hover-bg-mix: transparent;
|
|
16
|
-
--ui-btn-hover-bg-opacity: 0.1;
|
|
17
|
-
--ui-btn-active-bg-mix: transparent;
|
|
18
|
-
--ui-btn-active-bg-opacity: 0.2;
|
|
19
|
-
--ui-btn-focus-outline-offset: 0;
|
|
20
|
-
--ui-btn-border-width: 2px;
|
|
21
|
-
--ui-btn-color: currentColor;
|
|
22
|
-
--tw-bg-opacity: 0;
|
|
23
|
-
}
|
|
24
|
-
}
|
package/src/ui/btn/gradient.css
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
.ui-btn:where(.gradient) {
|
|
2
|
-
&::before {
|
|
3
|
-
content: "";
|
|
4
|
-
position: absolute;
|
|
5
|
-
inset: 0;
|
|
6
|
-
background-color: color-mix(in var(--space), var(--tw-bg-mix) calc(100% - var(--tw-bg-opacity) * 100%), transparent);
|
|
7
|
-
z-index: -1;
|
|
8
|
-
transition: var(--transition-background);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
:root, :host {
|
|
2
|
-
--ui-btn-hover-bg-mix: var(--color-dark);
|
|
3
|
-
--ui-btn-hover-bg-opacity: 0.8;
|
|
4
|
-
--ui-btn-focus-outline-offset: 2px;
|
|
5
|
-
--ui-btn-focus-outline-opacity: 0.5;
|
|
6
|
-
--ui-btn-active-bg-mix: var(--color-dark);
|
|
7
|
-
--ui-btn-active-bg-opacity: 0.9;
|
|
8
|
-
--ui-btn-disabled-opacity: 0.75;
|
|
9
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
.ui-btn {
|
|
2
|
-
transition-property: var(--transition);
|
|
3
|
-
transition-timing-function: var(--ease-in-out);
|
|
4
|
-
transition-duration: var(--duration);
|
|
5
|
-
|
|
6
|
-
&:where(.accent-main) {
|
|
7
|
-
--ui-btn-hover-bg-mix: var(--color-main-foreground);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
&:where(.accent-body) {
|
|
11
|
-
--ui-btn-hover-bg-mix: var(--color-body-foreground);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&:where(.accent-light) {
|
|
15
|
-
--ui-btn-hover-bg-mix: var(--color-light-foreground);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&:where(.accent-dark) {
|
|
19
|
-
--ui-btn-hover-bg-mix: var(--color-dark-foreground);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&:is(:any-link, button, [role="button"], input) {
|
|
23
|
-
cursor: var(--cursor, pointer);
|
|
24
|
-
|
|
25
|
-
&:disabled {
|
|
26
|
-
opacity: var(--ui-btn-disabled-opacity);
|
|
27
|
-
cursor: not-allowed;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&:not(:disabled) {
|
|
31
|
-
&:hover {
|
|
32
|
-
@media (hover: hover) and (pointer: fine) {
|
|
33
|
-
--ui-btn-bg: var(--ui-btn-hover-bg, var(--color-accent));
|
|
34
|
-
--ui-btn-border-color: var(--ui-btn-hover-border-color, var(--color-accent));
|
|
35
|
-
--tw-bg-mix: var(--ui-btn-hover-bg-mix);
|
|
36
|
-
--tw-bg-opacity: var(--ui-btn-hover-bg-opacity);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&:focus {
|
|
41
|
-
--ui-btn-outline-offset: var(--ui-btn-focus-outline-offset);
|
|
42
|
-
--tw-outline-opacity: var(--ui-btn-focus-outline-opacity);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&:active, &:checked, &.active {
|
|
46
|
-
--ui-btn-bg: var(--ui-btn-active-bg, var(--color-accent));
|
|
47
|
-
--ui-btn-border-color: var(--ui-btn-active-border-color, var(--color-accent));
|
|
48
|
-
--tw-bg-mix: var(--ui-btn-active-bg-mix);
|
|
49
|
-
--tw-bg-opacity: var(--ui-btn-active-bg-opacity);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
package/src/ui/btn/lg.css
DELETED
package/src/ui/btn/loading.css
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
.ui-btn:is(.loading) {
|
|
2
|
-
pointer-events: none;
|
|
3
|
-
color: transparent;
|
|
4
|
-
|
|
5
|
-
> * {
|
|
6
|
-
opacity: 0;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
&::after {
|
|
10
|
-
z-index: 1;
|
|
11
|
-
width: var(--ui-btn-loading-width);
|
|
12
|
-
height: var(--ui-btn-loading-width);
|
|
13
|
-
content: "";
|
|
14
|
-
border: var(--ui-btn-loading-border-width) solid var(--ui-btn-color);
|
|
15
|
-
border-right-color: transparent;
|
|
16
|
-
border-radius: 50%;
|
|
17
|
-
animation: spin 0.5s infinite linear;
|
|
18
|
-
position: absolute;
|
|
19
|
-
margin-left: calc(var(--ui-btn-loading-width) / 2 * -1);
|
|
20
|
-
margin-top: calc(var(--ui-btn-loading-width) / 2 * -1);
|
|
21
|
-
left: 50%;
|
|
22
|
-
top: 50%;
|
|
23
|
-
}
|
|
24
|
-
}
|
package/src/ui/btn/muted.css
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
.ui-btn:is(.muted) {
|
|
2
|
-
--ui-btn-hover-bg-mix: transparent;
|
|
3
|
-
--ui-btn-hover-bg-opacity: 0.3;
|
|
4
|
-
--ui-btn-active-bg-mix: transparent;
|
|
5
|
-
--ui-btn-active-bg-opacity: 0.2;
|
|
6
|
-
--ui-btn-focus-outline-offset: -2px;
|
|
7
|
-
--ui-btn-color: var(--color-accent);
|
|
8
|
-
--tw-bg-opacity: 0.1;
|
|
9
|
-
}
|
package/src/ui/btn/raised.css
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
.ui-btn:where(.raised) {
|
|
2
|
-
--ui-btn-border-width: 2px;
|
|
3
|
-
--tw-border-opacity: 0.85;
|
|
4
|
-
|
|
5
|
-
border: var(--ui-btn-border-width) solid color-mix(in var(--space), var(--ui-btn-bg) calc(var(--tw-border-opacity) * 100%), var(--ui-btn-color));
|
|
6
|
-
padding-inline: calc(var(--ui-btn-px) - var(--ui-btn-border-width));
|
|
7
|
-
}
|
package/src/ui/btn/readme.md
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# [Button](https://winduum.dev/docs/ui/button.html)
|
|
2
|
-
|
|
3
|
-
## Installation
|
|
4
|
-
```shell
|
|
5
|
-
npm i winduum
|
|
6
|
-
```
|
|
7
|
-
Learn more how to set up Winduum [here](https://winduum.dev/docs/).
|
|
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
|
-
|
|
10
|
-
```css
|
|
11
|
-
@import "winduum/src/ui/btn/index.css" layer(components);
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
or modular (you can use your own props or CSS)
|
|
15
|
-
|
|
16
|
-
```css
|
|
17
|
-
@import "winduum/src/ui/btn/default.css" layer(components);
|
|
18
|
-
@import "winduum/src/ui/btn/default-props.css" layer(components);
|
|
19
|
-
@import "winduum/src/ui/btn/interactive.css" layer(components);
|
|
20
|
-
@import "winduum/src/ui/btn/interactive-props.css" layer(components);
|
|
21
|
-
@import "winduum/src/ui/btn/sm.css" layer(components);
|
|
22
|
-
@import "winduum/src/ui/btn/lg.css" layer(components);
|
|
23
|
-
@import "winduum/src/ui/btn/loading.css" layer(components);
|
|
24
|
-
@import "winduum/src/ui/btn/loading-props.css" layer(components);
|
|
25
|
-
@import "winduum/src/ui/btn/wide.css" layer(components);
|
|
26
|
-
@import "winduum/src/ui/btn/bordered.css" layer(components);
|
|
27
|
-
@import "winduum/src/ui/btn/ghosted.css" layer(components);
|
|
28
|
-
@import "winduum/src/ui/btn/hover-fill.css" layer(components);
|
|
29
|
-
@import "winduum/src/ui/btn/gradient.css" layer(components);
|
|
30
|
-
@import "winduum/src/ui/btn/gradient-bordered.css" layer(components);
|
|
31
|
-
@import "winduum/src/ui/btn/muted.css" layer(components);
|
|
32
|
-
@import "winduum/src/ui/btn/raised.css" layer(components);
|
|
33
|
-
@import "winduum/src/ui/btn/square.css" layer(components);
|
|
34
|
-
@import "winduum/src/ui/btn/circle.css" layer(components);
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
### Local imports
|
|
39
|
-
By default, imports are directly from `npm` so you can leverage updates.
|
|
40
|
-
You can also copy and paste the code from this directory to your project and remap the imports to local.
|
|
41
|
-
|
|
42
|
-
```css
|
|
43
|
-
@import "@/components/ui/btn/assets/index.css" layer(components);
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
### Docs
|
|
47
|
-
Visit [docs](https://winduum.dev/docs/ui/button.html) to learn more about usage examples.
|
|
48
|
-
|
|
49
|
-
### Frameworks
|
|
50
|
-
* [winduum/winduum-vue](https://github.com/winduum/winduum-vue/blob/main/src/ui/btn)
|
|
51
|
-
* [winduum/winduum-react](https://github.com/winduum/winduum-react/blob/main/src/ui/btn)
|
package/src/ui/btn/sm.css
DELETED
package/src/ui/btn/square.css
DELETED
package/src/ui/btn/wide.css
DELETED