winduum 1.2.1 → 2.0.0-next.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.css +1 -1
- package/dist/tailwind.css +1 -1
- package/package.json +15 -15
- package/plugin/index.cjs +81 -43
- package/plugin/index.js +73 -22
- package/plugin/utilities/common.js +4 -4
- package/plugin/utilities/dot.js +4 -5
- package/src/base/breakpoints.css +10 -10
- package/src/base/config/font.css +22 -9
- package/src/base/config/rounded.css +12 -12
- package/src/base/config/transition.css +14 -14
- package/src/base/config/z.css +5 -5
- package/src/base/config.css +0 -1
- package/src/base/defaults.css +10 -12
- package/src/base/keyframes.css +13 -1
- package/src/base/reset.css +2 -7
- package/src/base/theme/dark-rgb.css +1 -1
- package/src/base/theme/dark.css +1 -1
- package/src/base/theme/default-rgb.css +6 -6
- package/src/base/theme/default.css +6 -6
- package/src/components/badge/bordered.css +6 -0
- package/src/components/badge/circle.css +5 -0
- package/src/components/badge/default.css +42 -0
- package/src/{ui → components}/badge/index.css +1 -1
- package/src/components/badge/lg.css +3 -0
- package/src/components/badge/muted.css +4 -0
- package/src/components/badge/props/default.css +9 -0
- package/src/components/badge/readme.md +37 -0
- package/src/components/badge/sm.css +4 -0
- package/src/components/badge/square.css +4 -0
- package/src/components/breadcrumb/default.css +7 -7
- package/src/components/breadcrumb/index.css +1 -1
- package/src/components/breadcrumb/props/default.css +5 -0
- package/src/components/breadcrumb/readme.md +1 -1
- package/src/components/button/bordered.css +19 -0
- package/src/components/button/circle.css +6 -0
- package/src/components/button/default.css +63 -0
- package/src/components/button/fill.css +6 -0
- package/src/components/button/ghosted.css +14 -0
- package/src/{ui/btn → components/button}/index.css +2 -7
- package/src/components/button/interactive.css +56 -0
- package/src/components/button/lg.css +4 -0
- package/src/components/button/muted.css +14 -0
- package/src/components/button/props/default.css +11 -0
- package/src/components/button/props/interactive.css +9 -0
- package/src/components/button/raised.css +6 -0
- package/src/components/button/readme.md +46 -0
- package/src/components/button/sm.css +4 -0
- package/src/components/button/square.css +5 -0
- package/src/components/card/default.css +4 -6
- package/src/components/card/index.css +1 -1
- package/src/components/card/props/default.css +6 -0
- package/src/components/card/readme.md +1 -1
- package/src/components/carousel/content.css +2 -2
- package/src/components/carousel/default.css +1 -1
- package/src/components/carousel/index.d.ts +3 -3
- package/src/components/carousel/index.js +13 -11
- package/src/components/check/default.css +67 -0
- package/src/{ui/switch → components/check}/index.css +1 -1
- package/src/components/check/interactive.css +56 -0
- package/src/components/check/invalid.css +9 -0
- package/src/components/check/props/default.css +13 -0
- package/src/{ui/color → components/check}/readme.md +8 -9
- package/src/components/color/default.css +36 -0
- package/src/components/color/index.css +3 -0
- package/src/components/color/interactive.css +36 -0
- package/src/components/color/props/default.css +7 -0
- package/src/{ui/title → components/color}/readme.md +7 -8
- package/src/components/compare/default.css +17 -18
- package/src/components/compare/index.js +2 -2
- package/src/components/control/color.css +24 -0
- package/src/components/control/default.css +74 -0
- package/src/components/control/file.css +27 -0
- package/src/components/control/floating-interactive.css +13 -0
- package/src/components/control/floating.css +36 -0
- package/src/components/control/icon.css +32 -0
- package/src/{ui → components}/control/index.css +5 -6
- package/src/components/control/interactive.css +19 -0
- package/src/components/control/invalid.css +10 -0
- package/src/components/control/props/color.css +5 -0
- package/src/components/control/props/default.css +16 -0
- package/src/components/control/props/floating.css +4 -0
- package/src/components/control/props/icon.css +4 -0
- package/src/components/control/props/select.css +4 -0
- package/src/components/control/readme.md +43 -0
- package/src/{ui → components}/control/select-multiple.css +2 -2
- package/src/components/control/select.css +23 -0
- package/src/components/dialog/content.css +7 -7
- package/src/components/dialog/default.css +14 -12
- package/src/components/dialog/index.css +2 -2
- package/src/components/dialog/index.d.ts +4 -19
- package/src/components/dialog/index.js +24 -83
- package/src/components/dialog/props/content.css +5 -0
- package/src/components/dialog/props/default.css +6 -0
- package/src/components/dialog/readme.md +2 -2
- package/src/components/drawer/content.css +4 -4
- package/src/components/drawer/default.css +9 -6
- package/src/components/drawer/index.css +2 -2
- package/src/components/drawer/index.js +3 -3
- package/src/components/drawer/props/content.css +7 -0
- package/src/components/drawer/props/default.css +3 -0
- package/src/components/drawer/readme.md +2 -2
- package/src/components/field/default.css +6 -6
- package/src/components/form/index.js +5 -5
- package/src/components/group/default.css +42 -0
- package/src/{ui → components}/group/readme.md +6 -6
- package/src/{ui → components}/group/vertical.css +2 -2
- package/src/components/heading/default.css +8 -0
- package/src/{ui → components}/heading/index.css +1 -1
- package/src/components/heading/lg.css +3 -0
- package/src/components/heading/props/default.css +6 -0
- package/src/{ui/check → components/heading}/readme.md +8 -9
- package/src/components/heading/sm.css +3 -0
- package/src/{ui → components}/image/avatar.css +3 -3
- package/src/{ui → components}/image/default.css +2 -2
- package/src/{ui/notice → components/image}/readme.md +6 -6
- package/src/components/index.css +18 -0
- package/src/components/info/default.css +8 -0
- package/src/components/info/index.css +2 -0
- package/src/components/info/props/default.css +4 -0
- package/src/{ui/rating → components/info}/readme.md +6 -7
- package/src/components/label/default.css +8 -0
- package/src/components/label/index.css +2 -0
- package/src/components/label/props/default.css +4 -0
- package/src/{ui → components}/label/readme.md +6 -6
- package/src/components/link/default.css +8 -0
- package/src/components/link/index.css +3 -0
- package/src/components/link/interactive.css +9 -0
- package/src/components/link/props/default.css +4 -0
- package/src/{ui → components}/link/readme.md +7 -7
- package/src/components/notice/default.css +21 -0
- package/src/components/notice/index.css +2 -0
- package/src/components/notice/props/default.css +8 -0
- package/src/{ui/image → components/notice}/readme.md +6 -6
- package/src/components/pagination/default.css +2 -2
- package/src/components/popover/content.css +18 -19
- package/src/components/popover/default.css +1 -1
- package/src/components/popover/index.css +1 -1
- package/src/components/popover/index.d.ts +5 -1
- package/src/components/popover/index.js +11 -9
- package/src/components/popover/props/content.css +8 -0
- package/src/components/popover/readme.md +1 -1
- package/src/components/progress/default.css +46 -0
- package/src/{ui → components}/progress/index.css +1 -1
- package/src/components/progress/lg.css +3 -0
- package/src/{ui → components}/progress/meter.css +7 -7
- package/src/components/progress/props/default.css +6 -0
- package/src/components/progress/readme.md +33 -0
- package/src/components/progress/sm.css +3 -0
- package/src/components/range/default.css +99 -0
- package/src/{ui → components}/range/index.css +1 -1
- package/src/{ui → components}/range/index.js +2 -2
- package/src/components/range/multi.css +22 -0
- package/src/components/range/props/default.css +9 -0
- package/src/{ui → components}/range/readme.md +8 -8
- package/src/{ui → components}/range/vertical.css +3 -3
- package/src/{ui → components}/rating/default.css +11 -11
- package/src/{ui → components}/rating/index.css +1 -1
- package/src/components/rating/invalid.css +5 -0
- package/src/components/rating/props/default.css +8 -0
- package/src/components/rating/readme.md +31 -0
- package/src/components/switch/default.css +43 -0
- package/src/{ui/check → components/switch}/index.css +1 -2
- package/src/components/switch/interactive.css +43 -0
- package/src/components/switch/invalid.css +6 -0
- package/src/components/switch/props/default.css +17 -0
- package/src/{ui/progress → components/switch}/readme.md +8 -9
- package/src/components/table/default.css +11 -11
- package/src/components/table/index.css +1 -2
- package/src/components/table/interactive.css +14 -14
- package/src/components/table/props/default.css +8 -0
- package/src/components/table/readme.md +1 -2
- package/src/components/tabs/index.css +1 -1
- package/src/components/tabs/list.css +8 -0
- package/src/components/tabs/readme.md +1 -1
- package/src/components/text/default.css +223 -0
- package/src/components/text/index.css +2 -0
- package/src/components/text/props/default.css +9 -0
- package/src/{ui/info → components/text}/readme.md +6 -6
- package/src/components/title/default.css +8 -0
- package/src/{ui → components}/title/index.css +1 -1
- package/src/components/title/lg.css +3 -0
- package/src/components/title/props/default.css +5 -0
- package/src/{ui/heading → components/title}/readme.md +9 -8
- package/src/components/title/sm.css +3 -0
- package/src/components/toast/content.css +16 -15
- package/src/components/toast/default.css +8 -8
- package/src/components/toast/index.css +2 -2
- package/src/components/toast/props/content.css +7 -0
- package/src/components/toast/props/default.css +4 -0
- package/src/components/toast/readme.md +2 -2
- package/src/components/toaster/default.css +4 -4
- package/src/components/toaster/index.css +1 -1
- package/src/components/toaster/index.js +8 -8
- package/src/components/toaster/props/default.css +4 -0
- package/src/components/toaster/readme.md +1 -1
- package/src/components/tooltip/default.css +15 -15
- package/src/components/tooltip/index.css +1 -1
- package/src/components/tooltip/props/default.css +12 -0
- package/src/components/tooltip/readme.md +2 -2
- package/src/main.css +0 -1
- package/src/test.css +7 -0
- package/src/utilities/common.css +2 -6
- package/src/utilities/container/default.css +3 -4
- package/src/utilities/container/index.css +1 -1
- package/src/utilities/divider.css +13 -4
- package/src/utilities/ripple/index.css +9 -6
- package/src/utilities/skeleton/default.css +8 -1
- package/src/utilities/skeleton/index.css +1 -1
- package/src/utilities/skeleton/props/default.css +5 -0
- package/src/utilities/swap/default.css +6 -6
- package/src/utilities/underline.css +3 -3
- package/types/index.d.ts +39 -24
- package/types/index.d.ts.map +3 -8
- package/plugin/utilities/flex.js +0 -12
- package/src/base/config/text.css +0 -15
- package/src/components/breadcrumb/default-props.css +0 -5
- package/src/components/card/default-props.css +0 -4
- package/src/components/dialog/content-props.css +0 -5
- package/src/components/dialog/default-props.css +0 -6
- package/src/components/drawer/content-props.css +0 -6
- package/src/components/drawer/default-props.css +0 -3
- package/src/components/popover/content-props.css +0 -8
- package/src/components/table/default-props.css +0 -8
- package/src/components/table/interactive-props.css +0 -4
- package/src/components/tabs/default.css +0 -8
- package/src/components/toast/content-props.css +0 -7
- package/src/components/toast/default-props.css +0 -4
- package/src/components/toaster/default-props.css +0 -4
- package/src/components/tooltip/default-props.css +0 -12
- package/src/ui/badge/bordered.css +0 -16
- package/src/ui/badge/circle.css +0 -5
- package/src/ui/badge/default-props.css +0 -8
- package/src/ui/badge/default.css +0 -26
- package/src/ui/badge/lg.css +0 -3
- package/src/ui/badge/muted.css +0 -4
- package/src/ui/badge/readme.md +0 -37
- package/src/ui/badge/sm.css +0 -4
- package/src/ui/badge/square.css +0 -4
- package/src/ui/btn/bordered.css +0 -21
- package/src/ui/btn/circle.css +0 -6
- package/src/ui/btn/default-props.css +0 -10
- package/src/ui/btn/default.css +0 -49
- package/src/ui/btn/fill.css +0 -6
- package/src/ui/btn/ghosted.css +0 -9
- package/src/ui/btn/gradient-bordered.css +0 -24
- package/src/ui/btn/gradient.css +0 -10
- package/src/ui/btn/interactive-props.css +0 -9
- package/src/ui/btn/interactive.css +0 -53
- package/src/ui/btn/lg.css +0 -4
- package/src/ui/btn/loading-props.css +0 -4
- package/src/ui/btn/loading.css +0 -24
- package/src/ui/btn/muted.css +0 -9
- package/src/ui/btn/raised.css +0 -7
- package/src/ui/btn/readme.md +0 -51
- package/src/ui/btn/sm.css +0 -4
- package/src/ui/btn/square.css +0 -5
- package/src/ui/btn/wide.css +0 -3
- package/src/ui/check/default-props.css +0 -13
- package/src/ui/check/default.css +0 -74
- package/src/ui/check/interactive-props.css +0 -3
- package/src/ui/check/interactive.css +0 -50
- package/src/ui/check/invalid.css +0 -8
- package/src/ui/color/default-props.css +0 -11
- package/src/ui/color/default.css +0 -48
- package/src/ui/color/index.css +0 -4
- package/src/ui/color/interactive-props.css +0 -3
- package/src/ui/color/interactive.css +0 -30
- package/src/ui/control/color-props.css +0 -5
- package/src/ui/control/color.css +0 -24
- package/src/ui/control/default-props.css +0 -16
- package/src/ui/control/default.css +0 -77
- package/src/ui/control/file.css +0 -25
- package/src/ui/control/floating-interactive.css +0 -13
- package/src/ui/control/floating-props.css +0 -4
- package/src/ui/control/floating.css +0 -36
- package/src/ui/control/icon-props.css +0 -4
- package/src/ui/control/icon.css +0 -32
- package/src/ui/control/interactive-props.css +0 -3
- package/src/ui/control/interactive.css +0 -19
- package/src/ui/control/invalid.css +0 -10
- package/src/ui/control/readme.md +0 -44
- package/src/ui/control/select-props.css +0 -4
- package/src/ui/control/select.css +0 -23
- package/src/ui/group/default.css +0 -42
- package/src/ui/heading/default-props.css +0 -6
- package/src/ui/heading/default.css +0 -8
- package/src/ui/heading/lg.css +0 -3
- package/src/ui/heading/sm.css +0 -3
- package/src/ui/index.css +0 -18
- package/src/ui/info/default-props.css +0 -4
- package/src/ui/info/default.css +0 -8
- package/src/ui/info/index.css +0 -2
- package/src/ui/label/default-props.css +0 -4
- package/src/ui/label/default.css +0 -8
- package/src/ui/label/index.css +0 -2
- package/src/ui/link/default-props.css +0 -4
- package/src/ui/link/default.css +0 -8
- package/src/ui/link/index.css +0 -4
- package/src/ui/link/interactive-props.css +0 -5
- package/src/ui/link/interactive.css +0 -16
- package/src/ui/notice/default-props.css +0 -8
- package/src/ui/notice/default.css +0 -25
- package/src/ui/notice/index.css +0 -2
- package/src/ui/progress/default-props.css +0 -4
- package/src/ui/progress/default.css +0 -47
- package/src/ui/progress/lg.css +0 -3
- package/src/ui/progress/sm.css +0 -3
- package/src/ui/range/default-props.css +0 -10
- package/src/ui/range/default.css +0 -101
- package/src/ui/range/multi.css +0 -22
- package/src/ui/rating/default-props.css +0 -5
- package/src/ui/rating/invalid.css +0 -5
- package/src/ui/switch/default-props.css +0 -17
- package/src/ui/switch/default.css +0 -46
- package/src/ui/switch/interactive-props.css +0 -3
- package/src/ui/switch/interactive.css +0 -39
- package/src/ui/switch/invalid.css +0 -6
- package/src/ui/switch/readme.md +0 -32
- package/src/ui/text/default-props.css +0 -9
- package/src/ui/text/default.css +0 -193
- package/src/ui/text/index.css +0 -2
- package/src/ui/text/readme.md +0 -30
- package/src/ui/title/default-props.css +0 -5
- package/src/ui/title/default.css +0 -8
- package/src/ui/title/lg.css +0 -3
- package/src/ui/title/sm.css +0 -3
- package/src/utilities/skeleton/default-props.css +0 -5
- /package/src/{ui → components}/group/index.css +0 -0
- /package/src/{ui → components}/image/index.css +0 -0
- /package/src/{ui → components}/range/index.d.ts +0 -0
- /package/src/utilities/container/{default-props.css → props/default.css} +0 -0
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",
|
|
@@ -54,6 +48,7 @@
|
|
|
54
48
|
"insertToast",
|
|
55
49
|
"closeToaster",
|
|
56
50
|
"ShowPopoverOptions",
|
|
51
|
+
"HidePopoverOptions",
|
|
57
52
|
"showPopover",
|
|
58
53
|
"hidePopover",
|
|
59
54
|
"togglePopover",
|
|
@@ -77,7 +72,7 @@
|
|
|
77
72
|
"../src/components/tabs/index.d.ts",
|
|
78
73
|
"../src/components/toaster/index.d.ts",
|
|
79
74
|
"../src/components/popover/index.d.ts",
|
|
80
|
-
"../src/
|
|
75
|
+
"../src/components/range/index.d.ts",
|
|
81
76
|
"../src/utilities/ripple/index.d.ts",
|
|
82
77
|
"../src/utilities/swap/index.d.ts"
|
|
83
78
|
],
|
|
@@ -96,5 +91,5 @@
|
|
|
96
91
|
null,
|
|
97
92
|
null
|
|
98
93
|
],
|
|
99
|
-
"mappings": ";;kBAEiBA,aAAaA;;;;;;;;;;;;;;;;;;;;cAoBjBC,aAAaA
|
|
94
|
+
"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;;;;;;;;;;kBAUlBC,kBAAkBA;;;;iBAInBC,WAAWA;iBACXC,WAAWA;iBACXC,aAAaA;;;;;;kBClBZC,uBAAuBA;;;;;;kBAMvBC,eAAeA;;;;;kBAKfC,gBAAgBA;;;;;iBAKjBC,gBAAgBA;iBAChBC,QAAQA;iBACRC,cAAcA;;;;;;iBClBdC,UAAUA;;;;;;iBCAVC,UAAUA"
|
|
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,8 +0,0 @@
|
|
|
1
|
-
:root, :host {
|
|
2
|
-
--c-popover-content-bg: var(--color-body-primary);
|
|
3
|
-
--c-popover-content-border-radius: var(--rounded);
|
|
4
|
-
--c-popover-content-py: var(--spacing-sm);
|
|
5
|
-
--c-popover-content-px: var(--spacing-sm);
|
|
6
|
-
--c-popover-content-scale-y: 0.75;
|
|
7
|
-
--c-popover-content-scale-x: 0.75;
|
|
8
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
:root, :host {
|
|
2
|
-
--c-tooltip-bg: var(--color-main);
|
|
3
|
-
--c-tooltip-color: var(--color-main-foreground);
|
|
4
|
-
--c-tooltip-border-radius: var(--rounded-md);
|
|
5
|
-
--c-tooltip-font-size: var(--text-sm);
|
|
6
|
-
--c-tooltip-py: var(--spacing-xs);
|
|
7
|
-
--c-tooltip-px: var(--spacing-sm);
|
|
8
|
-
--c-tooltip-margin-block: var(--spacing-xs);
|
|
9
|
-
--c-tooltip-margin-inline: var(--spacing-xs);
|
|
10
|
-
--c-tooltip-scale-x: 0.75;
|
|
11
|
-
--c-tooltip-scale-y: 0.75;
|
|
12
|
-
}
|
|
@@ -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/readme.md
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# [Badge](https://winduum.dev/docs/ui/badge.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/badge/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/badge/default.css" layer(components);
|
|
18
|
-
@import "winduum/src/ui/badge/default-props.css" layer(components);
|
|
19
|
-
@import "winduum/src/ui/badge/sm.css" layer(components);
|
|
20
|
-
@import "winduum/src/ui/badge/lg.css" layer(components);
|
|
21
|
-
@import "winduum/src/ui/badge/bordered.css" layer(components);
|
|
22
|
-
@import "winduum/src/ui/badge/muted.css" layer(components);
|
|
23
|
-
@import "winduum/src/ui/badge/square.css" layer(components);
|
|
24
|
-
@import "winduum/src/ui/badge/circle.css" layer(components);
|
|
25
|
-
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
### Local imports
|
|
29
|
-
By default, imports are directly from `npm` so you can leverage updates.
|
|
30
|
-
You can also copy and paste the code from this directory to your project and remap the imports to local.
|
|
31
|
-
|
|
32
|
-
```css
|
|
33
|
-
@import "@/components/ui/badge/assets/index.css" layer(components);
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### Docs
|
|
37
|
-
Visit [docs](https://winduum.dev/docs/ui/badge.html) to learn more about usage examples.
|
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