@byyuurin/ui 0.0.6 → 0.0.8

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 (198) hide show
  1. package/README.md +4 -5
  2. package/dist/module.cjs +5 -0
  3. package/dist/module.json +12 -0
  4. package/dist/{nuxt.mjs → module.mjs} +8 -8
  5. package/dist/module.mjs.map +1 -0
  6. package/dist/runtime/app/injections.d.ts +16 -0
  7. package/dist/runtime/app/injections.js +31 -0
  8. package/dist/runtime/components/Accordion.vue +27 -38
  9. package/dist/runtime/components/Alert.vue +23 -16
  10. package/dist/runtime/components/App.vue +15 -15
  11. package/dist/runtime/components/Avatar.vue +73 -0
  12. package/dist/runtime/components/AvatarGroup.vue +90 -0
  13. package/dist/runtime/components/Badge.vue +15 -10
  14. package/dist/runtime/components/Breadcrumb.vue +105 -0
  15. package/dist/runtime/components/Button.vue +22 -23
  16. package/dist/runtime/components/ButtonGroup.vue +12 -10
  17. package/dist/runtime/components/Card.vue +16 -8
  18. package/dist/runtime/components/Carousel.vue +19 -12
  19. package/dist/runtime/components/Checkbox.vue +16 -12
  20. package/dist/runtime/components/Chip.vue +17 -12
  21. package/dist/runtime/components/Collapsible.vue +56 -0
  22. package/dist/runtime/components/Drawer.vue +18 -17
  23. package/dist/runtime/components/Input.vue +28 -28
  24. package/dist/runtime/components/InputNumber.vue +169 -0
  25. package/dist/runtime/components/Kbd.vue +51 -0
  26. package/dist/runtime/components/Link.vue +301 -72
  27. package/dist/runtime/components/LinkBase.vue +88 -0
  28. package/dist/runtime/components/Modal.vue +11 -9
  29. package/dist/runtime/components/ModalProvider.vue +2 -1
  30. package/dist/runtime/components/Pagination.vue +30 -30
  31. package/dist/runtime/components/PinInput.vue +7 -7
  32. package/dist/runtime/components/Popover.vue +7 -7
  33. package/dist/runtime/components/Progress.vue +165 -0
  34. package/dist/runtime/components/RadioGroup.vue +33 -29
  35. package/dist/runtime/components/Select.vue +40 -40
  36. package/dist/runtime/components/Separator.vue +63 -0
  37. package/dist/runtime/components/Skeleton.vue +33 -0
  38. package/dist/runtime/components/Slider.vue +6 -6
  39. package/dist/runtime/components/Switch.vue +14 -15
  40. package/dist/runtime/components/Table.vue +300 -0
  41. package/dist/runtime/components/Tabs.vue +25 -21
  42. package/dist/runtime/components/Textarea.vue +11 -11
  43. package/dist/runtime/components/Toast.vue +15 -14
  44. package/dist/runtime/components/Toaster.vue +5 -39
  45. package/dist/runtime/components/Tooltip.vue +7 -7
  46. package/dist/runtime/composables/useAvatarGroup.d.ts +4 -0
  47. package/dist/runtime/composables/useAvatarGroup.js +8 -0
  48. package/dist/runtime/composables/useButtonGroup.d.ts +4 -12
  49. package/dist/runtime/composables/{useButtonGroup.mjs → useButtonGroup.js} +1 -6
  50. package/dist/runtime/composables/useComponentIcons.d.ts +9 -9
  51. package/dist/runtime/composables/useComponentIcons.js +24 -0
  52. package/dist/runtime/composables/useKbd.d.ts +35 -0
  53. package/dist/runtime/composables/useKbd.js +49 -0
  54. package/dist/runtime/composables/useLocale.d.ts +8 -0
  55. package/dist/runtime/composables/useLocale.js +22 -0
  56. package/dist/runtime/composables/useModal.d.ts +2 -7
  57. package/dist/runtime/composables/{useModal.mjs → useModal.js} +1 -6
  58. package/dist/runtime/composables/useTheme.d.ts +2 -6
  59. package/dist/runtime/composables/useTheme.js +16 -0
  60. package/dist/runtime/composables/useToast.d.ts +1 -1
  61. package/dist/runtime/index.d.ts +40 -0
  62. package/dist/runtime/index.js +40 -0
  63. package/dist/runtime/locale/en.d.ts +2 -0
  64. package/dist/runtime/locale/en.js +28 -0
  65. package/dist/runtime/locale/index.d.ts +2 -0
  66. package/dist/runtime/locale/index.js +2 -0
  67. package/dist/runtime/locale/zh-tw.d.ts +2 -0
  68. package/dist/runtime/locale/zh-tw.js +28 -0
  69. package/dist/runtime/theme/accordion.d.ts +5 -5
  70. package/dist/runtime/theme/{accordion.mjs → accordion.js} +2 -2
  71. package/dist/runtime/theme/alert.d.ts +2 -2
  72. package/dist/runtime/theme/{alert.mjs → alert.js} +4 -4
  73. package/dist/runtime/theme/app.d.ts +8 -5
  74. package/dist/runtime/theme/app.js +18 -0
  75. package/dist/runtime/theme/avatar-group.d.ts +52 -0
  76. package/dist/runtime/theme/avatar-group.js +32 -0
  77. package/dist/runtime/theme/avatar.d.ts +56 -0
  78. package/dist/runtime/theme/avatar.js +34 -0
  79. package/dist/runtime/theme/badge.d.ts +45 -21
  80. package/dist/runtime/theme/{badge.mjs → badge.js} +2 -2
  81. package/dist/runtime/theme/breadcrumb.d.ts +67 -0
  82. package/dist/runtime/theme/breadcrumb.js +44 -0
  83. package/dist/runtime/theme/button-group.d.ts +2 -2
  84. package/dist/runtime/theme/button.d.ts +61 -115
  85. package/dist/runtime/theme/button.js +164 -0
  86. package/dist/runtime/theme/card.d.ts +38 -38
  87. package/dist/runtime/theme/card.js +37 -0
  88. package/dist/runtime/theme/carousel.d.ts +2 -2
  89. package/dist/runtime/theme/{carousel.mjs → carousel.js} +2 -2
  90. package/dist/runtime/theme/checkbox.d.ts +1 -1
  91. package/dist/runtime/theme/{checkbox.mjs → checkbox.js} +3 -3
  92. package/dist/runtime/theme/chip.d.ts +47 -14
  93. package/dist/runtime/theme/{chip.mjs → chip.js} +7 -9
  94. package/dist/runtime/theme/collapsible.d.ts +38 -0
  95. package/dist/runtime/theme/collapsible.js +10 -0
  96. package/dist/runtime/theme/drawer.d.ts +43 -43
  97. package/dist/runtime/theme/{drawer.mjs → drawer.js} +33 -22
  98. package/dist/runtime/theme/index.d.ts +37 -27
  99. package/dist/runtime/theme/index.js +37 -0
  100. package/dist/runtime/theme/input-number.d.ts +141 -0
  101. package/dist/runtime/theme/input-number.js +95 -0
  102. package/dist/runtime/theme/input.d.ts +77 -105
  103. package/dist/runtime/theme/{input.mjs → input.js} +25 -25
  104. package/dist/runtime/theme/kbd.d.ts +39 -0
  105. package/dist/runtime/theme/kbd.js +26 -0
  106. package/dist/runtime/theme/link.d.ts +2 -2
  107. package/dist/runtime/theme/{link.mjs → link.js} +1 -1
  108. package/dist/runtime/theme/modal.d.ts +31 -8
  109. package/dist/runtime/theme/{modal.mjs → modal.js} +4 -9
  110. package/dist/runtime/theme/pagination.d.ts +17 -17
  111. package/dist/runtime/theme/pinInput.d.ts +42 -42
  112. package/dist/runtime/theme/{pinInput.mjs → pinInput.js} +10 -10
  113. package/dist/runtime/theme/popover.d.ts +8 -8
  114. package/dist/runtime/theme/{popover.mjs → popover.js} +1 -1
  115. package/dist/runtime/theme/progress.d.ts +122 -0
  116. package/dist/runtime/theme/progress.js +95 -0
  117. package/dist/runtime/theme/radio-group.d.ts +1 -1
  118. package/dist/runtime/theme/{radio-group.mjs → radio-group.js} +1 -1
  119. package/dist/runtime/theme/scroll-area.d.ts +17 -17
  120. package/dist/runtime/theme/{scroll-area.mjs → scroll-area.js} +2 -2
  121. package/dist/runtime/theme/select.d.ts +93 -108
  122. package/dist/runtime/theme/{select.mjs → select.js} +31 -31
  123. package/dist/runtime/theme/separator.d.ts +95 -0
  124. package/dist/runtime/theme/separator.js +53 -0
  125. package/dist/runtime/theme/skeleton.d.ts +8 -0
  126. package/dist/runtime/theme/skeleton.js +7 -0
  127. package/dist/runtime/theme/slider.d.ts +1 -1
  128. package/dist/runtime/theme/{slider.mjs → slider.js} +3 -3
  129. package/dist/runtime/theme/switch.d.ts +1 -1
  130. package/dist/runtime/theme/{switch.mjs → switch.js} +3 -3
  131. package/dist/runtime/theme/table.d.ts +89 -0
  132. package/dist/runtime/theme/table.js +35 -0
  133. package/dist/runtime/theme/tabs.d.ts +70 -53
  134. package/dist/runtime/theme/{tabs.mjs → tabs.js} +12 -12
  135. package/dist/runtime/theme/textarea.d.ts +43 -37
  136. package/dist/runtime/theme/{textarea.mjs → textarea.js} +10 -10
  137. package/dist/runtime/theme/toast.d.ts +2 -2
  138. package/dist/runtime/theme/{toast.mjs → toast.js} +3 -3
  139. package/dist/runtime/theme/toaster.d.ts +42 -27
  140. package/dist/runtime/theme/tooltip.d.ts +11 -11
  141. package/dist/runtime/theme/tooltip.js +11 -0
  142. package/dist/runtime/types/components.d.ts +37 -27
  143. package/dist/runtime/types/index.d.ts +5 -4
  144. package/dist/runtime/types/index.js +3 -0
  145. package/dist/runtime/types/locale.d.ts +23 -0
  146. package/dist/runtime/types/locale.js +0 -0
  147. package/dist/runtime/types/utils.d.ts +1 -1
  148. package/dist/runtime/types/utils.js +0 -0
  149. package/dist/runtime/utils/index.d.ts +9 -4
  150. package/dist/runtime/utils/{index.mjs → index.js} +9 -7
  151. package/dist/runtime/utils/link.d.ts +22 -7
  152. package/dist/runtime/utils/link.js +30 -0
  153. package/dist/runtime/utils/styler.d.ts +1 -1
  154. package/dist/runtime/utils/translator.d.ts +18 -0
  155. package/dist/runtime/utils/translator.js +8 -0
  156. package/dist/runtime/vue/stubs.d.ts +9 -0
  157. package/dist/runtime/vue/stubs.js +16 -0
  158. package/dist/shared/ui.ba24b380.mjs +4 -0
  159. package/dist/shared/ui.ba24b380.mjs.map +1 -0
  160. package/dist/types.d.mts +1 -0
  161. package/dist/types.d.ts +1 -0
  162. package/dist/unocss.d.mts +6 -11
  163. package/dist/unocss.d.ts +6 -11
  164. package/dist/unocss.mjs +40 -21
  165. package/dist/unocss.mjs.map +1 -1
  166. package/dist/unplugin.mjs +35 -8
  167. package/dist/unplugin.mjs.map +1 -1
  168. package/dist/vite.d.mts +0 -1
  169. package/dist/vite.d.ts +0 -1
  170. package/dist/vite.mjs +3 -1
  171. package/dist/vite.mjs.map +1 -1
  172. package/package.json +50 -38
  173. package/dist/index.d.ts +0 -29
  174. package/dist/index.mjs +0 -29
  175. package/dist/nuxt.mjs.map +0 -1
  176. package/dist/runtime/composables/useComponentIcons.mjs +0 -24
  177. package/dist/runtime/composables/useTheme.mjs +0 -26
  178. package/dist/runtime/theme/app.mjs +0 -15
  179. package/dist/runtime/theme/button.mjs +0 -148
  180. package/dist/runtime/theme/card.mjs +0 -14
  181. package/dist/runtime/theme/index.mjs +0 -27
  182. package/dist/runtime/theme/tooltip.mjs +0 -11
  183. package/dist/runtime/types/components.mjs +0 -27
  184. package/dist/runtime/types/index.mjs +0 -2
  185. package/dist/runtime/utils/link.mjs +0 -4
  186. package/dist/shared/ui.D4zm1r0C.mjs +0 -4
  187. package/dist/shared/ui.D4zm1r0C.mjs.map +0 -1
  188. /package/dist/{nuxt.d.mts → module.d.mts} +0 -0
  189. /package/dist/{nuxt.d.ts → module.d.ts} +0 -0
  190. /package/dist/runtime/composables/{useToast.mjs → useToast.js} +0 -0
  191. /package/dist/runtime/theme/{button-group.mjs → button-group.js} +0 -0
  192. /package/dist/runtime/theme/{pagination.mjs → pagination.js} +0 -0
  193. /package/dist/runtime/theme/{toaster.mjs → toaster.js} +0 -0
  194. /package/dist/runtime/types/{utils.mjs → components.js} +0 -0
  195. /package/dist/runtime/utils/{extend-theme.mjs → extend-theme.js} +0 -0
  196. /package/dist/runtime/utils/{styler.mjs → styler.js} +0 -0
  197. /package/dist/runtime/{composables/defineInjection.d.ts → utils/vue.d.ts} +0 -0
  198. /package/dist/runtime/{composables/defineInjection.mjs → utils/vue.js} +0 -0
@@ -9,27 +9,43 @@ declare const _default: {
9
9
  description: string;
10
10
  };
11
11
  variants: {
12
- [key: string]: {
13
- [key: string]: "" | {
14
- root?: import("@byyuurin/ui-kit/index").ClassValue;
15
- header?: import("@byyuurin/ui-kit/index").ClassValue;
16
- body?: import("@byyuurin/ui-kit/index").ClassValue;
17
- title?: import("@byyuurin/ui-kit/index").ClassValue;
18
- description?: import("@byyuurin/ui-kit/index").ClassValue;
19
- footer?: import("@byyuurin/ui-kit/index").ClassValue;
20
- } | null;
12
+ variant: {
13
+ solid: {
14
+ root: string;
15
+ description: string;
16
+ };
17
+ outline: {
18
+ root: string;
19
+ description: string;
20
+ };
21
+ soft: {
22
+ root: string;
23
+ description: string;
24
+ };
25
+ 'soft-outline': {
26
+ root: string;
27
+ description: string;
28
+ };
21
29
  };
22
30
  };
23
- compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
24
- [key: string]: {
25
- [key: string]: "" | {
26
- root?: import("@byyuurin/ui-kit/index").ClassValue;
27
- header?: import("@byyuurin/ui-kit/index").ClassValue;
28
- body?: import("@byyuurin/ui-kit/index").ClassValue;
29
- title?: import("@byyuurin/ui-kit/index").ClassValue;
30
- description?: import("@byyuurin/ui-kit/index").ClassValue;
31
- footer?: import("@byyuurin/ui-kit/index").ClassValue;
32
- } | null;
31
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
32
+ variant: {
33
+ solid: {
34
+ root: string;
35
+ description: string;
36
+ };
37
+ outline: {
38
+ root: string;
39
+ description: string;
40
+ };
41
+ soft: {
42
+ root: string;
43
+ description: string;
44
+ };
45
+ 'soft-outline': {
46
+ root: string;
47
+ description: string;
48
+ };
33
49
  };
34
50
  }, {
35
51
  root: string;
@@ -39,24 +55,8 @@ declare const _default: {
39
55
  title: string;
40
56
  description: string;
41
57
  }, undefined>;
42
- defaultVariants: import("@byyuurin/ui-kit/index").CVDefaultVariants<{
43
- [key: string]: {
44
- [key: string]: "" | {
45
- root?: import("@byyuurin/ui-kit/index").ClassValue;
46
- header?: import("@byyuurin/ui-kit/index").ClassValue;
47
- body?: import("@byyuurin/ui-kit/index").ClassValue;
48
- title?: import("@byyuurin/ui-kit/index").ClassValue;
49
- description?: import("@byyuurin/ui-kit/index").ClassValue;
50
- footer?: import("@byyuurin/ui-kit/index").ClassValue;
51
- } | null;
52
- };
53
- }, {
54
- root: string;
55
- header: string;
56
- body: string;
57
- footer: string;
58
- title: string;
59
- description: string;
60
- }>;
58
+ defaultVariants: {
59
+ variant: "outline";
60
+ };
61
61
  };
62
62
  export default _default;
@@ -0,0 +1,37 @@
1
+ import { ct } from "@byyuurin/ui-kit";
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ root: "rounded-ui-box divide-y",
7
+ header: "flex flex-wrap items-center gap-1 px-4 py-5 sm:px-6",
8
+ body: "flex-1 overflow-y-auto p-4 sm:p-6 empty:hidden",
9
+ footer: "flex items-center gap-1.5 p-4 sm:px-6",
10
+ title: "flex-grow text-xl font-semibold",
11
+ description: "w-full"
12
+ },
13
+ variants: {
14
+ variant: {
15
+ "solid": {
16
+ root: "color-ui-cx bg-ui-fill divide-ui-cx/20",
17
+ description: "color-ui-cx/80"
18
+ },
19
+ "outline": {
20
+ root: "color-ui-content bg-ui-cx divide-ui-content/20 ring ring-inset ring-ui-fill/20",
21
+ description: "color-ui-content/80"
22
+ },
23
+ "soft": {
24
+ root: "color-ui-content bg-soft-ui-fill/10 divide-ui-content/20",
25
+ description: "color-ui-content/80"
26
+ },
27
+ "soft-outline": {
28
+ root: "color-ui-content bg-soft-ui-fill/10 divide-ui-content/20 ring ring-inset ring-ui-fill/20",
29
+ description: "color-ui-content/80"
30
+ }
31
+ }
32
+ },
33
+ defaultVariants: {
34
+ variant: "outline"
35
+ }
36
+ }
37
+ );
@@ -37,7 +37,7 @@ declare const _default: {
37
37
  };
38
38
  };
39
39
  };
40
- compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
40
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
41
41
  orientation: {
42
42
  vertical: {
43
43
  container: string;
@@ -73,7 +73,7 @@ declare const _default: {
73
73
  dots: string;
74
74
  dot: string;
75
75
  }, undefined>;
76
- defaultVariants: import("@byyuurin/ui-kit/index").CVDefaultVariants<{
76
+ defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
77
77
  orientation: {
78
78
  vertical: {
79
79
  container: string;
@@ -12,7 +12,7 @@ export default ct(
12
12
  prev: "rounded-full",
13
13
  next: "rounded-full",
14
14
  dots: "flex flex-wrap items-center justify-center gap-3",
15
- dot: "cursor-pointer size-3 bg-solid-ui-cb/10 rounded-full transition"
15
+ dot: "cursor-pointer size-3 bg-soft-ui-cb/10 rounded-full transition"
16
16
  },
17
17
  variants: {
18
18
  orientation: {
@@ -35,7 +35,7 @@ export default ct(
35
35
  },
36
36
  active: {
37
37
  true: {
38
- dot: "bg-solid-ui-content"
38
+ dot: "bg-soft-ui-content"
39
39
  }
40
40
  }
41
41
  }
@@ -41,7 +41,7 @@ declare const _default: {
41
41
  };
42
42
  };
43
43
  };
44
- compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
44
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
45
45
  size: {
46
46
  xs: {
47
47
  root: string;
@@ -5,13 +5,13 @@ export default ct(
5
5
  slots: {
6
6
  root: "relative flex items-start",
7
7
  base: [
8
- "size-1.25em shrink-0 flex items-center justify-center rounded-ui-checkbox color-ui-c1 ring-2 ring-ui-content ring-inset bg-solid-ui-content",
8
+ "size-1.25em shrink-0 flex items-center justify-center rounded-ui-checkbox color-ui-cx ring-2 ring-ui-content ring-inset bg-soft-ui-content",
9
9
  "outline-none focus-visible:outline-ui-cb/80 focus-visible:outline-2 focus-visible:outline-offset-2",
10
- "aria-[checked=false]:ring-1 aria-[checked=false]:ring-ui-cb aria-[checked=false]:bg-solid-ui-c1"
10
+ "aria-[checked=false]:ring-1 aria-[checked=false]:ring-ui-cb aria-[checked=false]:bg-ui-cx"
11
11
  ],
12
12
  container: "flex items-center h-1.25em overflow-hidden",
13
13
  wrapper: "text-inherit ms-2",
14
- icon: "color-ui-c1 shrink-0 size-1em transition data-[state=unchecked]:translate-y-full",
14
+ icon: "color-ui-cx shrink-0 size-1em transition data-[state=unchecked]:translate-y-full",
15
15
  label: "flex color-ui-cb after:content-empty",
16
16
  description: "color-ui-cb/60"
17
17
  },
@@ -3,13 +3,13 @@ declare const _default: {
3
3
  slots: {
4
4
  base: string;
5
5
  label: string;
6
- prefixIcon: string;
7
- suffixIcon: string;
6
+ leadingIcon: string;
7
+ trailingIcon: string;
8
8
  };
9
9
  variants: {
10
10
  variant: {
11
11
  solid: {
12
- base: string[];
12
+ base: string;
13
13
  };
14
14
  outline: {
15
15
  base: string;
@@ -47,19 +47,52 @@ declare const _default: {
47
47
  };
48
48
  };
49
49
  };
50
- compoundVariants: ({
51
- size: ("xs" | "sm" | "md")[];
52
- class: {
53
- base: string;
54
- label: string;
50
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
51
+ variant: {
52
+ solid: {
53
+ base: string;
54
+ };
55
+ outline: {
56
+ base: string;
57
+ };
58
+ soft: {
59
+ base: string;
60
+ };
61
+ 'soft-outline': {
62
+ base: string;
63
+ };
64
+ };
65
+ size: {
66
+ xs: {
67
+ base: string;
68
+ };
69
+ sm: {
70
+ base: string;
71
+ };
72
+ md: {
73
+ base: string;
74
+ };
75
+ lg: {
76
+ base: string;
77
+ };
78
+ xl: {
79
+ base: string;
80
+ };
55
81
  };
56
- } | {
57
- size: ("lg" | "xl")[];
58
- class: {
59
- base: string;
60
- label: string;
82
+ groupOrientation: {
83
+ horizontal: {
84
+ base: string;
85
+ };
86
+ vertical: {
87
+ base: string;
88
+ };
61
89
  };
62
- })[];
90
+ }, {
91
+ base: string;
92
+ label: string;
93
+ leadingIcon: string;
94
+ trailingIcon: string;
95
+ }, undefined>;
63
96
  defaultVariants: {
64
97
  size: "md";
65
98
  };
@@ -1,30 +1,28 @@
1
1
  import { ct } from "@byyuurin/ui-kit";
2
- import { buttonGroupVariant } from "./button-group.mjs";
2
+ import { buttonGroupVariant } from "./button-group.js";
3
3
  export default ct(
4
4
  /* @unocss-include */
5
5
  {
6
6
  slots: {
7
7
  base: "inline-flex items-center rounded-ui-base leading-normal transition-colors",
8
8
  label: "",
9
- prefixIcon: "shrink-0 size-1.5em not-only-child:ml-1.5",
10
- suffixIcon: "shrink-0 size-1.5em not-only-child:mr-1.5"
9
+ leadingIcon: "shrink-0 size-1.5em not-only-child:ml-1.5",
10
+ trailingIcon: "shrink-0 size-1.5em not-only-child:mr-1.5"
11
11
  },
12
12
  variants: {
13
13
  ...buttonGroupVariant,
14
14
  variant: {
15
15
  "solid": {
16
- base: [
17
- "color-ui-c1 bg-solid-ui-fill/90"
18
- ]
16
+ base: "color-ui-cx bg-soft-ui-fill/90"
19
17
  },
20
18
  "outline": {
21
- base: "color-ui-fill bg-solid-ui-c1 ring ring-inset ring-ui-fill"
19
+ base: "color-ui-fill bg-ui-cx ring ring-inset ring-ui-fill/30"
22
20
  },
23
21
  "soft": {
24
- base: "color-ui-content/80 bg-solid-ui-fill/10"
22
+ base: "color-ui-content/80 bg-soft-ui-fill/10"
25
23
  },
26
24
  "soft-outline": {
27
- base: "color-ui-content/80 bg-solid-ui-fill/10 ring ring-inset ring-ui-fill/40"
25
+ base: "color-ui-content/80 bg-soft-ui-fill/10 ring ring-inset ring-ui-fill/30"
28
26
  }
29
27
  },
30
28
  size: {
@@ -0,0 +1,38 @@
1
+ declare const _default: {
2
+ base: undefined;
3
+ slots: {
4
+ root: string;
5
+ content: string;
6
+ };
7
+ variants: {
8
+ [key: string]: {
9
+ [key: string]: "" | {
10
+ root?: import("@byyuurin/ui-kit").ClassValue;
11
+ content?: import("@byyuurin/ui-kit").ClassValue;
12
+ } | null;
13
+ };
14
+ };
15
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
16
+ [key: string]: {
17
+ [key: string]: "" | {
18
+ root?: import("@byyuurin/ui-kit").ClassValue;
19
+ content?: import("@byyuurin/ui-kit").ClassValue;
20
+ } | null;
21
+ };
22
+ }, {
23
+ root: string;
24
+ content: string;
25
+ }, undefined>;
26
+ defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
27
+ [key: string]: {
28
+ [key: string]: "" | {
29
+ root?: import("@byyuurin/ui-kit").ClassValue;
30
+ content?: import("@byyuurin/ui-kit").ClassValue;
31
+ } | null;
32
+ };
33
+ }, {
34
+ root: string;
35
+ content: string;
36
+ }>;
37
+ };
38
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { ct } from "@byyuurin/ui-kit";
2
+ export default ct(
3
+ /* @unocss-include */
4
+ {
5
+ slots: {
6
+ root: "",
7
+ content: "data-[state=open]:animate-[collapsible-down_200ms_ease-out] data-[state=closed]:animate-[collapsible-up_200ms_ease-in] overflow-hidden"
8
+ }
9
+ }
10
+ );
@@ -17,67 +17,66 @@ declare const _default: {
17
17
  content: string;
18
18
  handle: string;
19
19
  };
20
- right: {
20
+ bottom: {
21
21
  content: string;
22
22
  handle: string;
23
23
  };
24
- bottom: {
24
+ left: {
25
25
  content: string;
26
26
  handle: string;
27
27
  };
28
- left: {
28
+ right: {
29
29
  content: string;
30
30
  handle: string;
31
31
  };
32
32
  };
33
- blur: {
33
+ inset: {
34
34
  true: {
35
- overlay: string;
35
+ content: string;
36
36
  };
37
37
  };
38
- full: {
39
- true: "";
40
- };
41
38
  };
42
- compoundVariants: ({
43
- direction: ("top" | "bottom")[];
44
- class: {
45
- content: string;
46
- handle: string;
47
- };
48
- full?: undefined;
49
- } | {
50
- direction: ("top" | "bottom")[];
51
- full: false;
52
- class: {
53
- content: string;
54
- handle?: undefined;
55
- };
56
- } | {
57
- direction: ("right" | "left")[];
58
- class: {
59
- content: string;
60
- handle: string;
61
- };
62
- full?: undefined;
63
- } | {
64
- direction: ("right" | "left")[];
65
- full: false;
66
- class: {
67
- content: string;
68
- handle?: undefined;
69
- };
70
- })[];
71
- defaultVariants: import("@byyuurin/ui-kit/index").CVDefaultVariants<{
39
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
72
40
  direction: {
73
41
  top: {
74
42
  content: string;
75
43
  handle: string;
76
44
  };
45
+ bottom: {
46
+ content: string;
47
+ handle: string;
48
+ };
49
+ left: {
50
+ content: string;
51
+ handle: string;
52
+ };
77
53
  right: {
78
54
  content: string;
79
55
  handle: string;
80
56
  };
57
+ };
58
+ inset: {
59
+ true: {
60
+ content: string;
61
+ };
62
+ };
63
+ }, {
64
+ overlay: string;
65
+ content: string;
66
+ handle: string;
67
+ container: string;
68
+ header: string;
69
+ title: string;
70
+ description: string;
71
+ body: string;
72
+ footer: string;
73
+ }, undefined>;
74
+ defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
75
+ direction: {
76
+ top: {
77
+ content: string;
78
+ handle: string;
79
+ };
81
80
  bottom: {
82
81
  content: string;
83
82
  handle: string;
@@ -86,15 +85,16 @@ declare const _default: {
86
85
  content: string;
87
86
  handle: string;
88
87
  };
88
+ right: {
89
+ content: string;
90
+ handle: string;
91
+ };
89
92
  };
90
- blur: {
93
+ inset: {
91
94
  true: {
92
- overlay: string;
95
+ content: string;
93
96
  };
94
97
  };
95
- full: {
96
- true: "";
97
- };
98
98
  }, {
99
99
  overlay: string;
100
100
  content: string;
@@ -3,9 +3,9 @@ export default ct(
3
3
  /* @unocss-include */
4
4
  {
5
5
  slots: {
6
- overlay: "fixed inset-0 bg-ui-c3/75",
7
- content: "fixed bg-solid-ui-c1 ring ring-ui-cb/5 flex focus:outline-none",
8
- handle: "shrink-0 rounded-full bg-solid-ui-cb/17.5",
6
+ overlay: "fixed z-1 inset-0 bg-black/40",
7
+ content: "fixed z-1 bg-ui-cx ring ring-ui-cb/5 flex focus:outline-none",
8
+ handle: "shrink-0 rounded-full bg-soft-ui-cb/17.5",
9
9
  container: "w-full flex flex-col overflow-hidden overflow-y-auto",
10
10
  header: "p-4 sm:px-6 sibling:pt-0",
11
11
  title: "color-ui-cb text-xl font-semibold",
@@ -19,26 +19,23 @@ export default ct(
19
19
  content: "top-0 mb-24 flex-col-reverse rounded-b-ui-box",
20
20
  handle: "mb-4"
21
21
  },
22
- right: {
23
- content: "right-4 flex-row rounded-l-ui-box",
24
- handle: "ml-4"
25
- },
26
22
  bottom: {
27
23
  content: "bottom-0 mt-24 flex-col rounded-t-ui-box",
28
24
  handle: "mt-4"
29
25
  },
30
26
  left: {
31
- content: "left-4 flex-row-reverse rounded-r-ui-box",
27
+ content: "left-0 flex-row-reverse rounded-r-ui-box",
32
28
  handle: "mr-4"
29
+ },
30
+ right: {
31
+ content: "right-0 flex-row rounded-l-ui-box",
32
+ handle: "ml-4"
33
33
  }
34
34
  },
35
- blur: {
35
+ inset: {
36
36
  true: {
37
- overlay: "backdrop-blur-sm"
37
+ content: "rounded-ui-box after:hidden"
38
38
  }
39
- },
40
- full: {
41
- true: ""
42
39
  }
43
40
  },
44
41
  compoundVariants: [
@@ -50,24 +47,38 @@ export default ct(
50
47
  }
51
48
  },
52
49
  {
53
- direction: ["top", "bottom"],
54
- full: false,
50
+ direction: ["left", "right"],
51
+ class: {
52
+ content: "inset-y-0 w-auto max-w-[calc(100%-2rem)]",
53
+ handle: "h-12 w-1.5 my-auto"
54
+ }
55
+ },
56
+ {
57
+ direction: ["top"],
58
+ inset: true,
55
59
  class: {
56
- content: "inset-x-4 my-4 rounded-ui-box after:hidden"
60
+ content: "inset-x-4 top-4"
57
61
  }
58
62
  },
59
63
  {
60
- direction: ["right", "left"],
64
+ direction: ["bottom"],
65
+ inset: true,
61
66
  class: {
62
- content: "inset-y-0 w-auto max-w-[calc(100%-2rem)]",
63
- handle: "h-12 w-1.5 my-auto"
67
+ content: "inset-x-4 bottom-4"
68
+ }
69
+ },
70
+ {
71
+ direction: ["left"],
72
+ inset: true,
73
+ class: {
74
+ content: "inset-y-4 left-4"
64
75
  }
65
76
  },
66
77
  {
67
- direction: ["right", "left"],
68
- full: false,
78
+ direction: ["right"],
79
+ inset: true,
69
80
  class: {
70
- content: "inset-y-4 rounded-ui-box after:hidden"
81
+ content: "inset-y-4 right-4"
71
82
  }
72
83
  }
73
84
  ]
@@ -1,27 +1,37 @@
1
- export { default as accordion } from './accordion';
2
- export { default as alert } from './alert';
3
- export { default as app } from './app';
4
- export { default as badge } from './badge';
5
- export { default as button } from './button';
6
- export { default as buttonGroup } from './button-group';
7
- export { default as card } from './card';
8
- export { default as carousel } from './carousel';
9
- export { default as checkbox } from './checkbox';
10
- export { default as chip } from './chip';
11
- export { default as drawer } from './drawer';
12
- export { default as input } from './input';
13
- export { default as link } from './link';
14
- export { default as modal } from './modal';
15
- export { default as pagination } from './pagination';
16
- export { default as pinInput } from './pinInput';
17
- export { default as popover } from './popover';
18
- export { default as radioGroup } from './radio-group';
19
- export { default as scrollArea } from './scroll-area';
20
- export { default as select } from './select';
21
- export { default as slider } from './slider';
22
- export { default as switch } from './switch';
23
- export { default as tabs } from './tabs';
24
- export { default as textarea } from './textarea';
25
- export { default as toast } from './toast';
26
- export { default as toaster } from './toaster';
27
- export { default as tooltip } from './tooltip';
1
+ export { default as accordion } from './accordion.js';
2
+ export { default as alert } from './alert.js';
3
+ export { default as app } from './app.js';
4
+ export { default as avatar } from './avatar.js';
5
+ export { default as avatarGroup } from './avatar-group.js';
6
+ export { default as badge } from './badge.js';
7
+ export { default as breadcrumb } from './breadcrumb.js';
8
+ export { default as button } from './button.js';
9
+ export { default as buttonGroup } from './button-group.js';
10
+ export { default as card } from './card.js';
11
+ export { default as carousel } from './carousel.js';
12
+ export { default as checkbox } from './checkbox.js';
13
+ export { default as chip } from './chip.js';
14
+ export { default as collapsible } from './collapsible.js';
15
+ export { default as drawer } from './drawer.js';
16
+ export { default as input } from './input.js';
17
+ export { default as inputNumber } from './input-number.js';
18
+ export { default as kbd } from './kbd.js';
19
+ export { default as link } from './link.js';
20
+ export { default as modal } from './modal.js';
21
+ export { default as pagination } from './pagination.js';
22
+ export { default as pinInput } from './pinInput.js';
23
+ export { default as popover } from './popover.js';
24
+ export { default as progress } from './progress.js';
25
+ export { default as radioGroup } from './radio-group.js';
26
+ export { default as scrollArea } from './scroll-area.js';
27
+ export { default as select } from './select.js';
28
+ export { default as separator } from './separator.js';
29
+ export { default as skeleton } from './skeleton.js';
30
+ export { default as slider } from './slider.js';
31
+ export { default as switch } from './switch.js';
32
+ export { default as table } from './table.js';
33
+ export { default as tabs } from './tabs.js';
34
+ export { default as textarea } from './textarea.js';
35
+ export { default as toast } from './toast.js';
36
+ export { default as toaster } from './toaster.js';
37
+ export { default as tooltip } from './tooltip.js';