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