@byyuurin/ui 0.0.4 → 0.0.6
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/README.md +23 -29
- package/dist/index.d.ts +28 -2
- package/dist/index.mjs +28 -2
- package/dist/nuxt.d.mts +1 -1
- package/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.mjs +15 -10
- package/dist/nuxt.mjs.map +1 -0
- package/dist/runtime/components/Accordion.vue +1 -1
- package/dist/runtime/components/Alert.vue +120 -0
- package/dist/runtime/components/App.vue +1 -1
- package/dist/runtime/components/Badge.vue +70 -0
- package/dist/runtime/components/Button.vue +7 -3
- package/dist/runtime/components/ButtonGroup.vue +47 -0
- package/dist/runtime/components/Card.vue +4 -4
- package/dist/runtime/components/Carousel.vue +310 -0
- package/dist/runtime/components/Checkbox.vue +1 -2
- package/dist/runtime/components/Chip.vue +64 -0
- package/dist/runtime/components/Drawer.vue +2 -2
- package/dist/runtime/components/Input.vue +10 -5
- package/dist/runtime/components/Link.vue +1 -1
- package/dist/runtime/components/Modal.vue +4 -5
- package/dist/runtime/components/Pagination.vue +167 -0
- package/dist/runtime/components/PinInput.vue +85 -0
- package/dist/runtime/components/Popover.vue +1 -1
- package/dist/runtime/components/RadioGroup.vue +1 -2
- package/dist/runtime/components/ScrollArea.vue +2 -2
- package/dist/runtime/components/Select.vue +7 -2
- package/dist/runtime/components/Slider.vue +96 -0
- package/dist/runtime/components/Switch.vue +2 -4
- package/dist/runtime/components/Tabs.vue +1 -2
- package/dist/runtime/components/Textarea.vue +2 -4
- package/dist/runtime/components/Toast.vue +21 -10
- package/dist/runtime/components/Toaster.vue +5 -5
- package/dist/runtime/components/Tooltip.vue +1 -1
- package/dist/runtime/composables/useButtonGroup.d.ts +13 -0
- package/dist/runtime/composables/useButtonGroup.mjs +14 -0
- package/dist/runtime/composables/useTheme.d.ts +2 -2
- package/dist/runtime/composables/useTheme.mjs +1 -1
- package/dist/runtime/composables/useToast.d.ts +4 -4
- package/dist/runtime/composables/useToast.mjs +19 -6
- package/dist/runtime/theme/accordion.d.ts +17 -0
- package/dist/runtime/theme/accordion.mjs +24 -21
- package/dist/runtime/theme/alert.d.ts +125 -0
- package/dist/runtime/theme/alert.mjs +47 -0
- package/dist/runtime/theme/app.d.ts +5 -0
- package/dist/runtime/theme/app.mjs +7 -1
- package/dist/runtime/theme/badge.d.ts +82 -0
- package/dist/runtime/theme/badge.mjs +92 -0
- package/dist/runtime/theme/button-group.d.ts +66 -0
- package/dist/runtime/theme/button-group.mjs +42 -0
- package/dist/runtime/theme/button.d.ts +15 -1
- package/dist/runtime/theme/button.mjs +135 -119
- package/dist/runtime/theme/card.d.ts +21 -2
- package/dist/runtime/theme/card.mjs +12 -9
- package/dist/runtime/theme/carousel.d.ts +113 -0
- package/dist/runtime/theme/carousel.mjs +43 -0
- package/dist/runtime/theme/checkbox.d.ts +3 -0
- package/dist/runtime/theme/checkbox.mjs +47 -41
- package/dist/runtime/theme/chip.d.ts +67 -0
- package/dist/runtime/theme/chip.mjs +68 -0
- package/dist/runtime/theme/drawer.d.ts +38 -0
- package/dist/runtime/theme/drawer.mjs +69 -66
- package/dist/runtime/theme/index.d.ts +10 -2
- package/dist/runtime/theme/index.mjs +10 -2
- package/dist/runtime/theme/input.d.ts +41 -22
- package/dist/runtime/theme/input.mjs +139 -121
- package/dist/runtime/theme/link.d.ts +14 -1
- package/dist/runtime/theme/link.mjs +23 -20
- package/dist/runtime/theme/modal.d.ts +3 -0
- package/dist/runtime/theme/modal.mjs +53 -47
- package/dist/runtime/theme/pagination.d.ts +56 -0
- package/dist/runtime/theme/pagination.mjs +13 -0
- package/dist/runtime/theme/pinInput.d.ts +100 -0
- package/dist/runtime/theme/pinInput.mjs +111 -0
- package/dist/runtime/theme/popover.d.ts +11 -0
- package/dist/runtime/theme/popover.mjs +11 -8
- package/dist/runtime/theme/{radioGroup.d.ts → radio-group.d.ts} +3 -0
- package/dist/runtime/theme/radio-group.mjs +61 -0
- package/dist/runtime/theme/{scrollArea.d.ts → scroll-area.d.ts} +22 -0
- package/dist/runtime/theme/scroll-area.mjs +33 -0
- package/dist/runtime/theme/select.d.ts +16 -2
- package/dist/runtime/theme/select.mjs +160 -142
- package/dist/runtime/theme/slider.d.ts +76 -0
- package/dist/runtime/theme/slider.mjs +52 -0
- package/dist/runtime/theme/switch.d.ts +3 -0
- package/dist/runtime/theme/switch.mjs +69 -63
- package/dist/runtime/theme/tabs.d.ts +15 -2
- package/dist/runtime/theme/tabs.mjs +134 -112
- package/dist/runtime/theme/textarea.d.ts +8 -2
- package/dist/runtime/theme/textarea.mjs +105 -89
- package/dist/runtime/theme/toast.d.ts +44 -6
- package/dist/runtime/theme/toast.mjs +30 -22
- package/dist/runtime/theme/toaster.d.ts +51 -2
- package/dist/runtime/theme/toaster.mjs +88 -80
- package/dist/runtime/theme/tooltip.d.ts +13 -0
- package/dist/runtime/theme/tooltip.mjs +9 -6
- package/dist/runtime/types/components.d.ts +27 -20
- package/dist/runtime/types/components.mjs +27 -0
- package/dist/runtime/types/index.d.ts +1 -3
- package/dist/runtime/types/utils.d.ts +1 -1
- package/dist/runtime/utils/extend-theme.mjs +1 -1
- package/dist/runtime/utils/link.d.ts +1 -1
- package/dist/runtime/utils/styler.d.ts +2 -2
- package/dist/shared/ui.D4zm1r0C.mjs +4 -0
- package/dist/shared/ui.D4zm1r0C.mjs.map +1 -0
- package/dist/{unocss-preset.d.mts → unocss.d.mts} +4 -4
- package/dist/{unocss-preset.d.ts → unocss.d.ts} +4 -4
- package/dist/{unocss-preset.mjs → unocss.mjs} +58 -36
- package/dist/unocss.mjs.map +1 -0
- package/dist/unplugin.d.mts +26 -0
- package/dist/unplugin.d.ts +26 -0
- package/dist/unplugin.mjs +72 -0
- package/dist/unplugin.mjs.map +1 -0
- package/dist/vite.d.mts +10 -0
- package/dist/vite.d.ts +10 -0
- package/dist/vite.mjs +14 -0
- package/dist/vite.mjs.map +1 -0
- package/package.json +46 -26
- package/dist/resolver.d.mts +0 -13
- package/dist/resolver.d.ts +0 -13
- package/dist/resolver.mjs +0 -21
- package/dist/runtime/components/index.d.ts +0 -20
- package/dist/runtime/components/index.mjs +0 -20
- package/dist/runtime/composables/index.d.ts +0 -5
- package/dist/runtime/composables/index.mjs +0 -5
- package/dist/runtime/theme/radioGroup.mjs +0 -55
- package/dist/runtime/theme/scrollArea.mjs +0 -30
- package/dist/shared/ui.Cmq14xN9.mjs +0 -25
- /package/{LICENSE.md → LICENSE} +0 -0
|
@@ -1,133 +1,151 @@
|
|
|
1
1
|
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
import { buttonGroupVariant } from "./button-group.mjs";
|
|
3
|
+
export default ct(
|
|
4
|
+
/* @unocss-include */
|
|
5
|
+
{
|
|
6
|
+
slots: {
|
|
7
|
+
base: "inline-flex items-center rounded-ui-base transition-colors aria-disabled:opacity-50",
|
|
8
|
+
input: [
|
|
9
|
+
"w-full color-inherit bg-transparent border-0 placeholder:color-ui-cb/50",
|
|
10
|
+
"focus:outline-none",
|
|
11
|
+
"disabled:cursor-not-allowed"
|
|
12
|
+
],
|
|
13
|
+
prefix: "flex items-center",
|
|
14
|
+
prefixIcon: "shrink-0 size-1.25em",
|
|
15
|
+
suffix: "flex items-center",
|
|
16
|
+
suffixIcon: "shrink-0 size-1.25em"
|
|
17
|
+
},
|
|
18
|
+
variants: {
|
|
19
|
+
...buttonGroupVariant,
|
|
20
|
+
size: {
|
|
21
|
+
xs: {
|
|
22
|
+
base: "text-xs"
|
|
23
|
+
},
|
|
24
|
+
sm: {
|
|
25
|
+
base: "text-sm"
|
|
26
|
+
},
|
|
27
|
+
md: {
|
|
28
|
+
base: "text-base"
|
|
29
|
+
},
|
|
30
|
+
lg: {
|
|
31
|
+
base: "text-lg"
|
|
32
|
+
},
|
|
33
|
+
xl: {
|
|
34
|
+
base: "text-xl"
|
|
35
|
+
}
|
|
19
36
|
},
|
|
20
|
-
|
|
21
|
-
|
|
37
|
+
variant: {
|
|
38
|
+
"outline": {
|
|
39
|
+
base: [
|
|
40
|
+
"color-ui-cb/80 bg-solid-ui-c1 ring ring-inset ring-ui-cb/50",
|
|
41
|
+
"focus-within:ring-2 focus-within:ring-ui-cb/50",
|
|
42
|
+
"aria-disabled:ring-ui-cb/80 hover:aria-disabled:ring-ui-cb/80"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"soft": {
|
|
46
|
+
base: [
|
|
47
|
+
"color-ui-cb/80 bg-solid-ui-cb/4",
|
|
48
|
+
"hover:bg-solid-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-solid-ui-cb/8 focus-within:color-ui-cb/85",
|
|
49
|
+
"aria-disabled:color-ui-cb/80 aria-disabled:bg-solid-ui-cb/5 hover:aria-disabled:color-ui-cb/80 hover:aria-disabled:bg-solid-ui-cb/5"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"soft-outline": {
|
|
53
|
+
base: [
|
|
54
|
+
"color-ui-cb/80 bg-solid-ui-cb/4 ring ring-inset ring-ui-cb/10",
|
|
55
|
+
"hover:bg-solid-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-solid-ui-cb/8 focus-within:color-ui-cb/85",
|
|
56
|
+
"aria-disabled:color-ui-cb/80 aria-disabled:bg-solid-ui-cb/5 hover:aria-disabled:color-ui-cb/80 hover:aria-disabled:bg-solid-ui-cb/5"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"ghost": {
|
|
60
|
+
base: [
|
|
61
|
+
"color-ui-cb/80 bg-transparent",
|
|
62
|
+
"hover:bg-solid-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-solid-ui-cb/8 focus-within:color-ui-cb/85",
|
|
63
|
+
"aria-disabled:color-ui-fill/80 aria-disabled:bg-transparent hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-transparent"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"none": {
|
|
67
|
+
base: "color-ui-cb bg-transparent"
|
|
68
|
+
}
|
|
22
69
|
},
|
|
23
|
-
|
|
24
|
-
|
|
70
|
+
prefix: {
|
|
71
|
+
true: ""
|
|
25
72
|
},
|
|
26
|
-
|
|
27
|
-
|
|
73
|
+
suffix: {
|
|
74
|
+
true: ""
|
|
28
75
|
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
variant: {
|
|
34
|
-
outline: {
|
|
35
|
-
root: [
|
|
36
|
-
"color-ui-cb/80 bg-ui-c1 ring ring-inset ring-ui-cb/50",
|
|
37
|
-
"focus-within:ring-2 focus-within:ring-ui-cb/50",
|
|
38
|
-
"aria-disabled:ring-ui-cb/80 hover:aria-disabled:ring-ui-cb/80"
|
|
39
|
-
]
|
|
76
|
+
loading: {
|
|
77
|
+
true: ""
|
|
40
78
|
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"color-ui-cb/80 bg-ui-cb/4",
|
|
44
|
-
"hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
|
|
45
|
-
"aria-disabled:color-ui-content/80 aria-disabled:bg-ui-fill/5 hover:aria-disabled:color-ui-content/80 hover:aria-disabled:bg-ui-fill/5"
|
|
46
|
-
]
|
|
79
|
+
underline: {
|
|
80
|
+
true: ""
|
|
47
81
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"color-ui-cb/80 bg-transparent",
|
|
51
|
-
"hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
|
|
52
|
-
"aria-disabled:color-ui-fill/80 aria-disabled:bg-transparent hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-transparent"
|
|
53
|
-
]
|
|
82
|
+
highlight: {
|
|
83
|
+
true: ""
|
|
54
84
|
},
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
prefix: {
|
|
60
|
-
true: ""
|
|
61
|
-
},
|
|
62
|
-
suffix: {
|
|
63
|
-
true: ""
|
|
64
|
-
},
|
|
65
|
-
loading: {
|
|
66
|
-
true: ""
|
|
67
|
-
},
|
|
68
|
-
underline: {
|
|
69
|
-
true: ""
|
|
70
|
-
},
|
|
71
|
-
highlight: {
|
|
72
|
-
true: {
|
|
73
|
-
base: ""
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
type: {
|
|
77
|
-
file: {
|
|
78
|
-
base: "prefix-normal not-disabled:cursor-pointer file:pointer-events-none file:py-0 file:font-size-0.875em file:rounded-ui-button file:border-none file:color-ui-c1 file:bg-ui-cb/80"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
compoundVariants: [
|
|
83
|
-
{
|
|
84
|
-
variant: ["soft", "ghost", "none"],
|
|
85
|
-
highlight: false,
|
|
86
|
-
underline: true,
|
|
87
|
-
class: {
|
|
88
|
-
root: "relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-ui-cb/40"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
size: ["xs", "sm", "md"],
|
|
93
|
-
class: {
|
|
94
|
-
root: "p-1.5 px-2.5"
|
|
85
|
+
type: {
|
|
86
|
+
file: {
|
|
87
|
+
input: "prefix-normal not-disabled:cursor-pointer file:pointer-events-none file:py-0 file:font-size-0.875em file:rounded-ui-button file:border-none file:color-ui-c1 file:bg-solid-ui-cb/80"
|
|
88
|
+
}
|
|
95
89
|
}
|
|
96
90
|
},
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
91
|
+
compoundVariants: [
|
|
92
|
+
{
|
|
93
|
+
variant: ["soft", "ghost", "none"],
|
|
94
|
+
highlight: false,
|
|
95
|
+
underline: true,
|
|
96
|
+
class: {
|
|
97
|
+
base: [
|
|
98
|
+
"relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-solid-ui-cb/40",
|
|
99
|
+
"focus-within:after:h-2px focus-within:after:bg-solid-ui-fill/60"
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
size: ["xs", "sm", "md"],
|
|
105
|
+
class: {
|
|
106
|
+
base: "p-1.5",
|
|
107
|
+
input: "px-1"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
size: ["lg", "xl"],
|
|
112
|
+
class: {
|
|
113
|
+
base: "p-2.5",
|
|
114
|
+
input: "px-1.5"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
variant: ["soft", "soft-outline", "ghost", "none"],
|
|
119
|
+
highlight: true,
|
|
120
|
+
class: {
|
|
121
|
+
base: "ring ring-inset ring-ui-fill/80"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
variant: ["outline"],
|
|
126
|
+
highlight: true,
|
|
127
|
+
class: {
|
|
128
|
+
base: "ring-2 ring-ui-fill/80 focus-within:ring-ui-fill/80"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
loading: true,
|
|
133
|
+
prefix: true,
|
|
134
|
+
class: {
|
|
135
|
+
prefixIcon: "animate-spin"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
loading: true,
|
|
140
|
+
prefix: false,
|
|
141
|
+
suffix: true,
|
|
142
|
+
class: {
|
|
143
|
+
suffixIcon: "animate-spin"
|
|
144
|
+
}
|
|
130
145
|
}
|
|
146
|
+
],
|
|
147
|
+
defaultVariants: {
|
|
148
|
+
size: "md"
|
|
131
149
|
}
|
|
132
|
-
|
|
133
|
-
|
|
150
|
+
}
|
|
151
|
+
);
|
|
@@ -26,6 +26,19 @@ declare const _default: {
|
|
|
26
26
|
disabled: {
|
|
27
27
|
true: "cursor-not-allowed opacity-50";
|
|
28
28
|
};
|
|
29
|
-
}, undefined, "border-y border-t-transparent focus-visible:outline-ui-cb">;
|
|
29
|
+
}, undefined, "border-y border-t-transparent outline-none focus-visible:outline-ui-cb/80">;
|
|
30
|
+
defaultVariants: import("@byyuurin/ui-kit/index").CVDefaultVariants<{
|
|
31
|
+
underline: {
|
|
32
|
+
true: "border-current";
|
|
33
|
+
false: "border-transparent";
|
|
34
|
+
};
|
|
35
|
+
active: {
|
|
36
|
+
true: string[];
|
|
37
|
+
false: string[];
|
|
38
|
+
};
|
|
39
|
+
disabled: {
|
|
40
|
+
true: "cursor-not-allowed opacity-50";
|
|
41
|
+
};
|
|
42
|
+
}, undefined>;
|
|
30
43
|
};
|
|
31
44
|
export default _default;
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
-
export default ct(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
base: "border-y border-t-transparent outline-none focus-visible:outline-ui-cb/80",
|
|
6
|
+
variants: {
|
|
7
|
+
underline: {
|
|
8
|
+
true: "border-current",
|
|
9
|
+
false: "border-transparent"
|
|
10
|
+
},
|
|
11
|
+
active: {
|
|
12
|
+
true: [
|
|
13
|
+
"color-ui-fill",
|
|
14
|
+
"disabled:color-ui-fill aria-disabled:color-ui-fill"
|
|
15
|
+
],
|
|
16
|
+
false: [
|
|
17
|
+
"color-ui-cb hover:color-ui-cb/80 transition-colors",
|
|
18
|
+
"disabled:hover:color-ui-cb aria-disabled:hover:color-ui-cb"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
disabled: {
|
|
22
|
+
true: "cursor-not-allowed opacity-50"
|
|
23
|
+
}
|
|
21
24
|
}
|
|
22
25
|
}
|
|
23
|
-
|
|
26
|
+
);
|
|
@@ -1,54 +1,60 @@
|
|
|
1
1
|
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
-
export default ct(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
transition: {
|
|
15
|
-
true: {
|
|
16
|
-
overlay: "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]",
|
|
17
|
-
content: "data-[state=open]:animate-[scale-in_200ms_ease-out] data-[state=closed]:animate-[scale-out_200ms_ease-in]"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
blur: {
|
|
21
|
-
true: {
|
|
22
|
-
overlay: "backdrop-blur-sm"
|
|
23
|
-
}
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
overlay: "fixed inset-0 bg-ui-c3/75",
|
|
7
|
+
content: "fixed bg-solid-ui-c1 divide-y divide-ui-cb/10 flex flex-col focus:outline-none",
|
|
8
|
+
header: "flex flex-wrap items-center gap-1 px-4 py-5 sm:px-6",
|
|
9
|
+
body: "flex-1 overflow-y-auto p-4 sm:p-6 empty:hidden",
|
|
10
|
+
footer: "flex items-center gap-1.5 p-4 sm:px-6",
|
|
11
|
+
title: "flex-grow color-ui-cb text-xl font-semibold",
|
|
12
|
+
description: "w-full color-ui-cb/80",
|
|
13
|
+
close: "ms-auto"
|
|
24
14
|
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
15
|
+
variants: {
|
|
16
|
+
transition: {
|
|
17
|
+
true: {
|
|
18
|
+
overlay: "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]",
|
|
19
|
+
content: "data-[state=open]:animate-[scale-in_200ms_ease-out] data-[state=closed]:animate-[scale-out_200ms_ease-in]"
|
|
20
|
+
}
|
|
31
21
|
},
|
|
32
|
-
|
|
33
|
-
|
|
22
|
+
blur: {
|
|
23
|
+
true: {
|
|
24
|
+
overlay: "backdrop-blur-sm"
|
|
25
|
+
}
|
|
34
26
|
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
27
|
+
size: {
|
|
28
|
+
fullscreen: {
|
|
29
|
+
content: "inset-0"
|
|
30
|
+
},
|
|
31
|
+
sm: {
|
|
32
|
+
content: "w-screen-sm"
|
|
33
|
+
},
|
|
34
|
+
md: {
|
|
35
|
+
content: "w-screen-md"
|
|
36
|
+
},
|
|
37
|
+
lg: {
|
|
38
|
+
content: "w-screen-lg"
|
|
39
|
+
},
|
|
40
|
+
xl: {
|
|
41
|
+
content: "w-screen-xl"
|
|
42
|
+
}
|
|
40
43
|
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
},
|
|
45
|
+
compoundVariants: [
|
|
46
|
+
{
|
|
47
|
+
size: ["sm", "md", "lg", "xl"],
|
|
48
|
+
class: {
|
|
49
|
+
content: [
|
|
50
|
+
"bottom-4 left-[50%] translate-x-[-50%] h-auto max-w-[calc(100%-2rem)] max-h-[calc(100%-2rem)] ring ring-ui-c2",
|
|
51
|
+
"sm:bottom-auto sm:top-[50%] sm:translate-y-[-50%] sm:rounded-ui-box sm:shadow-lg"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
51
54
|
}
|
|
55
|
+
],
|
|
56
|
+
defaultVariants: {
|
|
57
|
+
size: "sm"
|
|
52
58
|
}
|
|
53
|
-
|
|
54
|
-
|
|
59
|
+
}
|
|
60
|
+
);
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
root: string;
|
|
5
|
+
list: string;
|
|
6
|
+
item: string;
|
|
7
|
+
ellipsis: string;
|
|
8
|
+
label: string;
|
|
9
|
+
};
|
|
10
|
+
variants: {
|
|
11
|
+
[key: string]: {
|
|
12
|
+
[key: string]: "" | {
|
|
13
|
+
root?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
14
|
+
item?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
15
|
+
label?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
16
|
+
list?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
17
|
+
ellipsis?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
18
|
+
} | null;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
|
|
22
|
+
[key: string]: {
|
|
23
|
+
[key: string]: "" | {
|
|
24
|
+
root?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
25
|
+
item?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
26
|
+
label?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
27
|
+
list?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
28
|
+
ellipsis?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
29
|
+
} | null;
|
|
30
|
+
};
|
|
31
|
+
}, {
|
|
32
|
+
root: string;
|
|
33
|
+
list: string;
|
|
34
|
+
item: string;
|
|
35
|
+
ellipsis: string;
|
|
36
|
+
label: string;
|
|
37
|
+
}, undefined>;
|
|
38
|
+
defaultVariants: import("@byyuurin/ui-kit/index").CVDefaultVariants<{
|
|
39
|
+
[key: string]: {
|
|
40
|
+
[key: string]: "" | {
|
|
41
|
+
root?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
42
|
+
item?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
43
|
+
label?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
44
|
+
list?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
45
|
+
ellipsis?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
46
|
+
} | null;
|
|
47
|
+
};
|
|
48
|
+
}, {
|
|
49
|
+
root: string;
|
|
50
|
+
list: string;
|
|
51
|
+
item: string;
|
|
52
|
+
ellipsis: string;
|
|
53
|
+
label: string;
|
|
54
|
+
}>;
|
|
55
|
+
};
|
|
56
|
+
export default _default;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
root: string;
|
|
5
|
+
container: string;
|
|
6
|
+
base: string;
|
|
7
|
+
};
|
|
8
|
+
variants: {
|
|
9
|
+
size: {
|
|
10
|
+
xs: {
|
|
11
|
+
container: string;
|
|
12
|
+
};
|
|
13
|
+
sm: {
|
|
14
|
+
container: string;
|
|
15
|
+
};
|
|
16
|
+
md: {
|
|
17
|
+
container: string;
|
|
18
|
+
};
|
|
19
|
+
lg: {
|
|
20
|
+
container: string;
|
|
21
|
+
};
|
|
22
|
+
xl: {
|
|
23
|
+
container: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
variant: {
|
|
27
|
+
outline: {
|
|
28
|
+
container: string[];
|
|
29
|
+
};
|
|
30
|
+
soft: {
|
|
31
|
+
container: string[];
|
|
32
|
+
};
|
|
33
|
+
'soft-outline': {
|
|
34
|
+
container: string[];
|
|
35
|
+
};
|
|
36
|
+
ghost: {
|
|
37
|
+
container: string[];
|
|
38
|
+
};
|
|
39
|
+
none: {
|
|
40
|
+
container: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
underline: {
|
|
44
|
+
true: "";
|
|
45
|
+
};
|
|
46
|
+
highlight: {
|
|
47
|
+
true: "";
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
compoundVariants: ({
|
|
51
|
+
variant: ("soft" | "ghost" | "none")[];
|
|
52
|
+
highlight: false;
|
|
53
|
+
underline: true;
|
|
54
|
+
class: {
|
|
55
|
+
container: string[];
|
|
56
|
+
base?: undefined;
|
|
57
|
+
};
|
|
58
|
+
size?: undefined;
|
|
59
|
+
} | {
|
|
60
|
+
size: ("xs" | "sm" | "md")[];
|
|
61
|
+
class: {
|
|
62
|
+
base: string;
|
|
63
|
+
container?: undefined;
|
|
64
|
+
};
|
|
65
|
+
variant?: undefined;
|
|
66
|
+
highlight?: undefined;
|
|
67
|
+
underline?: undefined;
|
|
68
|
+
} | {
|
|
69
|
+
size: ("lg" | "xl")[];
|
|
70
|
+
class: {
|
|
71
|
+
base: string;
|
|
72
|
+
container?: undefined;
|
|
73
|
+
};
|
|
74
|
+
variant?: undefined;
|
|
75
|
+
highlight?: undefined;
|
|
76
|
+
underline?: undefined;
|
|
77
|
+
} | {
|
|
78
|
+
variant: ("soft" | "soft-outline" | "ghost" | "none")[];
|
|
79
|
+
highlight: true;
|
|
80
|
+
class: {
|
|
81
|
+
container: string;
|
|
82
|
+
base?: undefined;
|
|
83
|
+
};
|
|
84
|
+
underline?: undefined;
|
|
85
|
+
size?: undefined;
|
|
86
|
+
} | {
|
|
87
|
+
variant: "outline"[];
|
|
88
|
+
highlight: true;
|
|
89
|
+
class: {
|
|
90
|
+
container: string;
|
|
91
|
+
base?: undefined;
|
|
92
|
+
};
|
|
93
|
+
underline?: undefined;
|
|
94
|
+
size?: undefined;
|
|
95
|
+
})[];
|
|
96
|
+
defaultVariants: {
|
|
97
|
+
size: "md";
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
export default _default;
|