@byyuurin/ui 0.0.5 → 0.0.7

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 (160) hide show
  1. package/README.md +15 -11
  2. package/dist/module.cjs +5 -0
  3. package/dist/module.json +12 -0
  4. package/dist/{nuxt.mjs → module.mjs} +7 -6
  5. package/dist/module.mjs.map +1 -0
  6. package/dist/runtime/components/Accordion.vue +20 -31
  7. package/dist/runtime/components/Alert.vue +1 -1
  8. package/dist/runtime/components/App.vue +1 -1
  9. package/dist/runtime/components/Badge.vue +0 -1
  10. package/dist/runtime/components/Button.vue +14 -12
  11. package/dist/runtime/components/ButtonGroup.vue +47 -0
  12. package/dist/runtime/components/Card.vue +9 -6
  13. package/dist/runtime/components/Carousel.vue +310 -0
  14. package/dist/runtime/components/Checkbox.vue +3 -4
  15. package/dist/runtime/components/Chip.vue +9 -4
  16. package/dist/runtime/components/Collapsible.vue +56 -0
  17. package/dist/runtime/components/Drawer.vue +4 -2
  18. package/dist/runtime/components/Input.vue +12 -8
  19. package/dist/runtime/components/InputNumber.vue +167 -0
  20. package/dist/runtime/components/Link.vue +301 -72
  21. package/dist/runtime/components/LinkBase.vue +88 -0
  22. package/dist/runtime/components/Modal.vue +2 -4
  23. package/dist/runtime/components/Pagination.vue +167 -0
  24. package/dist/runtime/components/PinInput.vue +0 -1
  25. package/dist/runtime/components/RadioGroup.vue +0 -1
  26. package/dist/runtime/components/ScrollArea.vue +1 -1
  27. package/dist/runtime/components/Select.vue +9 -5
  28. package/dist/runtime/components/Separator.vue +63 -0
  29. package/dist/runtime/components/Slider.vue +0 -1
  30. package/dist/runtime/components/Switch.vue +4 -6
  31. package/dist/runtime/components/Table.vue +292 -0
  32. package/dist/runtime/components/Tabs.vue +17 -18
  33. package/dist/runtime/components/Textarea.vue +0 -1
  34. package/dist/runtime/components/Toast.vue +21 -10
  35. package/dist/runtime/components/Toaster.vue +4 -39
  36. package/dist/runtime/composables/useButtonGroup.d.ts +13 -0
  37. package/dist/runtime/composables/useButtonGroup.js +14 -0
  38. package/dist/runtime/composables/{useComponentIcons.mjs → useComponentIcons.js} +1 -1
  39. package/dist/runtime/composables/useModal.d.ts +1 -1
  40. package/dist/runtime/composables/{useModal.mjs → useModal.js} +1 -1
  41. package/dist/runtime/composables/useTheme.d.ts +4 -4
  42. package/dist/runtime/composables/{useTheme.mjs → useTheme.js} +4 -4
  43. package/dist/runtime/composables/useToast.d.ts +4 -4
  44. package/dist/runtime/composables/{useToast.mjs → useToast.js} +19 -6
  45. package/dist/runtime/index.d.ts +34 -0
  46. package/dist/runtime/index.js +34 -0
  47. package/dist/runtime/theme/accordion.d.ts +22 -5
  48. package/dist/runtime/theme/{accordion.mjs → accordion.js} +2 -2
  49. package/dist/runtime/theme/alert.d.ts +41 -1
  50. package/dist/runtime/theme/{alert.mjs → alert.js} +4 -4
  51. package/dist/runtime/theme/app.d.ts +8 -0
  52. package/dist/runtime/theme/app.js +18 -0
  53. package/dist/runtime/theme/badge.d.ts +48 -21
  54. package/dist/runtime/theme/{badge.mjs → badge.js} +5 -2
  55. package/dist/runtime/theme/button-group.d.ts +66 -0
  56. package/dist/runtime/theme/button-group.js +42 -0
  57. package/dist/runtime/theme/button.d.ts +68 -111
  58. package/dist/runtime/theme/button.js +164 -0
  59. package/dist/runtime/theme/card.d.ts +38 -19
  60. package/dist/runtime/theme/card.js +37 -0
  61. package/dist/runtime/theme/carousel.d.ts +113 -0
  62. package/dist/runtime/theme/carousel.js +43 -0
  63. package/dist/runtime/theme/checkbox.d.ts +4 -1
  64. package/dist/runtime/theme/{checkbox.mjs → checkbox.js} +7 -4
  65. package/dist/runtime/theme/chip.d.ts +56 -12
  66. package/dist/runtime/theme/{chip.mjs → chip.js} +10 -7
  67. package/dist/runtime/theme/collapsible.d.ts +38 -0
  68. package/dist/runtime/theme/collapsible.js +10 -0
  69. package/dist/runtime/theme/drawer.d.ts +71 -33
  70. package/dist/runtime/theme/{drawer.mjs → drawer.js} +33 -22
  71. package/dist/runtime/theme/index.d.ts +31 -24
  72. package/dist/runtime/theme/index.js +31 -0
  73. package/dist/runtime/theme/input-number.d.ts +135 -0
  74. package/dist/runtime/theme/input-number.js +92 -0
  75. package/dist/runtime/theme/input.d.ts +94 -111
  76. package/dist/runtime/theme/input.js +151 -0
  77. package/dist/runtime/theme/link.d.ts +14 -1
  78. package/dist/runtime/theme/{link.mjs → link.js} +1 -1
  79. package/dist/runtime/theme/modal.d.ts +33 -7
  80. package/dist/runtime/theme/{modal.mjs → modal.js} +8 -10
  81. package/dist/runtime/theme/pagination.d.ts +56 -0
  82. package/dist/runtime/theme/pagination.js +13 -0
  83. package/dist/runtime/theme/pinInput.d.ts +45 -42
  84. package/dist/runtime/theme/{pinInput.mjs → pinInput.js} +14 -11
  85. package/dist/runtime/theme/popover.d.ts +16 -5
  86. package/dist/runtime/theme/{radioGroup.d.ts → radio-group.d.ts} +4 -1
  87. package/dist/runtime/theme/{radioGroup.mjs → radio-group.js} +3 -0
  88. package/dist/runtime/theme/scroll-area.d.ts +73 -0
  89. package/dist/runtime/theme/{scrollArea.mjs → scroll-area.js} +2 -2
  90. package/dist/runtime/theme/select.d.ts +95 -99
  91. package/dist/runtime/theme/{select.mjs → select.js} +22 -17
  92. package/dist/runtime/theme/separator.d.ts +95 -0
  93. package/dist/runtime/theme/separator.js +53 -0
  94. package/dist/runtime/theme/slider.d.ts +4 -1
  95. package/dist/runtime/theme/{slider.mjs → slider.js} +6 -3
  96. package/dist/runtime/theme/switch.d.ts +4 -1
  97. package/dist/runtime/theme/{switch.mjs → switch.js} +5 -2
  98. package/dist/runtime/theme/table.d.ts +89 -0
  99. package/dist/runtime/theme/table.js +35 -0
  100. package/dist/runtime/theme/tabs.d.ts +72 -52
  101. package/dist/runtime/theme/{tabs.mjs → tabs.js} +15 -12
  102. package/dist/runtime/theme/textarea.d.ts +46 -37
  103. package/dist/runtime/theme/{textarea.mjs → textarea.js} +14 -11
  104. package/dist/runtime/theme/toast.d.ts +45 -7
  105. package/dist/runtime/theme/{toast.mjs → toast.js} +12 -7
  106. package/dist/runtime/theme/toaster.d.ts +89 -25
  107. package/dist/runtime/theme/{toaster.mjs → toaster.js} +5 -0
  108. package/dist/runtime/theme/tooltip.d.ts +20 -7
  109. package/dist/runtime/theme/{tooltip.mjs → tooltip.js} +2 -2
  110. package/dist/runtime/types/components.d.ts +7 -1
  111. package/dist/runtime/types/index.d.ts +4 -4
  112. package/dist/runtime/types/index.js +2 -0
  113. package/dist/runtime/types/utils.d.ts +1 -1
  114. package/dist/runtime/utils/index.d.ts +3 -3
  115. package/dist/runtime/utils/{index.mjs → index.js} +3 -3
  116. package/dist/runtime/utils/link.d.ts +22 -7
  117. package/dist/runtime/utils/link.js +30 -0
  118. package/dist/runtime/utils/styler.d.ts +2 -2
  119. package/dist/runtime/vue/stubs.d.ts +9 -0
  120. package/dist/runtime/vue/stubs.js +16 -0
  121. package/dist/shared/ui.d1728164.mjs +4 -0
  122. package/dist/shared/ui.d1728164.mjs.map +1 -0
  123. package/dist/types.d.mts +1 -0
  124. package/dist/types.d.ts +1 -0
  125. package/dist/{unocss-preset.d.ts → unocss.d.mts} +10 -15
  126. package/dist/{unocss-preset.d.mts → unocss.d.ts} +10 -15
  127. package/dist/{unocss-preset.mjs → unocss.mjs} +53 -21
  128. package/dist/unocss.mjs.map +1 -0
  129. package/dist/unplugin.d.mts +4 -3
  130. package/dist/unplugin.d.ts +4 -3
  131. package/dist/unplugin.mjs +49 -5
  132. package/dist/unplugin.mjs.map +1 -1
  133. package/dist/vite.d.mts +1 -1
  134. package/dist/vite.d.ts +1 -1
  135. package/dist/vite.mjs +7 -5
  136. package/dist/vite.mjs.map +1 -1
  137. package/package.json +59 -45
  138. package/dist/index.d.ts +0 -26
  139. package/dist/index.mjs +0 -26
  140. package/dist/nuxt.mjs.map +0 -1
  141. package/dist/runtime/theme/app.mjs +0 -10
  142. package/dist/runtime/theme/button.mjs +0 -143
  143. package/dist/runtime/theme/card.mjs +0 -14
  144. package/dist/runtime/theme/index.mjs +0 -24
  145. package/dist/runtime/theme/input.mjs +0 -146
  146. package/dist/runtime/theme/scrollArea.d.ts +0 -51
  147. package/dist/runtime/types/index.mjs +0 -2
  148. package/dist/runtime/utils/link.mjs +0 -4
  149. package/dist/shared/ui.CzDyI29e.mjs +0 -8
  150. package/dist/shared/ui.CzDyI29e.mjs.map +0 -1
  151. package/dist/unocss-preset.mjs.map +0 -1
  152. /package/{LICENSE.md → LICENSE} +0 -0
  153. /package/dist/{nuxt.d.mts → module.d.mts} +0 -0
  154. /package/dist/{nuxt.d.ts → module.d.ts} +0 -0
  155. /package/dist/runtime/composables/{defineInjection.mjs → defineInjection.js} +0 -0
  156. /package/dist/runtime/theme/{popover.mjs → popover.js} +0 -0
  157. /package/dist/runtime/types/{components.mjs → components.js} +0 -0
  158. /package/dist/runtime/types/{utils.mjs → utils.js} +0 -0
  159. /package/dist/runtime/utils/{extend-theme.mjs → extend-theme.js} +0 -0
  160. /package/dist/runtime/utils/{styler.mjs → styler.js} +0 -0
@@ -48,46 +48,55 @@ declare const _default: {
48
48
  };
49
49
  };
50
50
  };
51
- compoundVariants: ({
52
- variant: ("soft" | "ghost" | "none")[];
53
- highlight: false;
54
- underline: true;
55
- class: {
56
- root: string[];
57
- };
58
- size?: undefined;
59
- } | {
60
- size: ("xs" | "sm" | "md")[];
61
- class: {
62
- root: string;
51
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
52
+ size: {
53
+ xs: {
54
+ root: string;
55
+ };
56
+ sm: {
57
+ root: string;
58
+ };
59
+ md: {
60
+ root: string;
61
+ };
62
+ lg: {
63
+ root: string;
64
+ };
65
+ xl: {
66
+ root: string;
67
+ };
63
68
  };
64
- variant?: undefined;
65
- highlight?: undefined;
66
- underline?: undefined;
67
- } | {
68
- size: ("lg" | "xl")[];
69
- class: {
70
- root: string;
69
+ variant: {
70
+ outline: {
71
+ root: string[];
72
+ };
73
+ soft: {
74
+ root: string[];
75
+ };
76
+ 'soft-outline': {
77
+ root: string[];
78
+ };
79
+ ghost: {
80
+ root: string[];
81
+ };
82
+ none: {
83
+ root: string;
84
+ };
71
85
  };
72
- variant?: undefined;
73
- highlight?: undefined;
74
- underline?: undefined;
75
- } | {
76
- variant: ("soft" | "soft-outline" | "ghost" | "none")[];
77
- highlight: true;
78
- class: {
79
- root: string;
86
+ underline: {
87
+ true: "";
80
88
  };
81
- underline?: undefined;
82
- size?: undefined;
83
- } | {
84
- variant: "outline"[];
85
- highlight: true;
86
- class: {
87
- root: string;
89
+ highlight: {
90
+ true: {
91
+ base: string;
92
+ };
88
93
  };
89
- underline?: undefined;
90
- size?: undefined;
91
- })[];
94
+ }, {
95
+ root: string;
96
+ base: string[];
97
+ }, undefined>;
98
+ defaultVariants: {
99
+ size: "md";
100
+ };
92
101
  };
93
102
  export default _default;
@@ -31,29 +31,29 @@ export default ct(
31
31
  variant: {
32
32
  "outline": {
33
33
  root: [
34
- "color-ui-cb/80 bg-ui-c1 ring ring-inset ring-ui-cb/50",
34
+ "color-ui-cb/80 bg-ui-cx ring ring-inset ring-ui-cb/30",
35
35
  "focus-within:ring-2 focus-within:ring-ui-cb/50",
36
36
  "aria-disabled:ring-ui-cb/80 hover:aria-disabled:ring-ui-cb/80"
37
37
  ]
38
38
  },
39
39
  "soft": {
40
40
  root: [
41
- "color-ui-cb/80 bg-ui-cb/4",
42
- "hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
43
- "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"
41
+ "color-ui-cb/80 bg-soft-ui-cb/4",
42
+ "hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 focus-within:hover:bg-soft-ui-cb/8 focus-within:color-ui-cb/85",
43
+ "aria-disabled:color-ui-content/80 aria-disabled:bg-soft-ui-fill/5 hover:aria-disabled:color-ui-content/80 hover:aria-disabled:bg-soft-ui-fill/5"
44
44
  ]
45
45
  },
46
46
  "soft-outline": {
47
47
  root: [
48
- "color-ui-cb/80 bg-ui-cb/4 ring ring-inset ring-ui-cb/10",
49
- "hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
50
- "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"
48
+ "color-ui-cb/80 bg-soft-ui-cb/4 ring ring-inset ring-ui-cb/30",
49
+ "hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 focus-within:hover:bg-soft-ui-cb/8 focus-within:color-ui-cb/85",
50
+ "aria-disabled:color-ui-content/80 aria-disabled:bg-soft-ui-fill/5 hover:aria-disabled:color-ui-content/80 hover:aria-disabled:bg-soft-ui-fill/5"
51
51
  ]
52
52
  },
53
53
  "ghost": {
54
54
  root: [
55
55
  "color-ui-cb/80 bg-transparent",
56
- "hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
56
+ "hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 focus-within:hover:bg-soft-ui-cb/8 focus-within:color-ui-cb/85",
57
57
  "aria-disabled:color-ui-fill/80 aria-disabled:bg-transparent hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-transparent"
58
58
  ]
59
59
  },
@@ -77,8 +77,8 @@ export default ct(
77
77
  underline: true,
78
78
  class: {
79
79
  root: [
80
- "relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-ui-cb/40",
81
- "focus-within:after:h-2px focus-within:after:bg-ui-fill/60"
80
+ "relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-soft-ui-cb/40",
81
+ "focus-within:after:h-2px focus-within:after:bg-soft-ui-fill/60"
82
82
  ]
83
83
  }
84
84
  },
@@ -108,6 +108,9 @@ export default ct(
108
108
  root: "ring-2 ring-ui-fill/80 focus-within:ring-ui-fill/80"
109
109
  }
110
110
  }
111
- ]
111
+ ],
112
+ defaultVariants: {
113
+ size: "md"
114
+ }
112
115
  }
113
116
  );
@@ -13,28 +13,38 @@ declare const _default: {
13
13
  close: string;
14
14
  };
15
15
  variants: {
16
- multiline: {
17
- true: {
16
+ orientation: {
17
+ horizontal: {
18
18
  root: string;
19
19
  actions: string;
20
20
  };
21
- false: {
21
+ vertical: {
22
22
  root: string;
23
23
  actions: string;
24
24
  };
25
25
  };
26
- };
27
- compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
28
- multiline: {
26
+ title: {
29
27
  true: {
28
+ description: string;
29
+ };
30
+ };
31
+ };
32
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
33
+ orientation: {
34
+ horizontal: {
30
35
  root: string;
31
36
  actions: string;
32
37
  };
33
- false: {
38
+ vertical: {
34
39
  root: string;
35
40
  actions: string;
36
41
  };
37
42
  };
43
+ title: {
44
+ true: {
45
+ description: string;
46
+ };
47
+ };
38
48
  }, {
39
49
  root: string;
40
50
  wrapper: string;
@@ -47,5 +57,33 @@ declare const _default: {
47
57
  progress: string;
48
58
  close: string;
49
59
  }, undefined>;
60
+ defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
61
+ orientation: {
62
+ horizontal: {
63
+ root: string;
64
+ actions: string;
65
+ };
66
+ vertical: {
67
+ root: string;
68
+ actions: string;
69
+ };
70
+ };
71
+ title: {
72
+ true: {
73
+ description: string;
74
+ };
75
+ };
76
+ }, {
77
+ root: string;
78
+ wrapper: string;
79
+ title: string;
80
+ description: string;
81
+ icon: string;
82
+ avatar: string;
83
+ avatarSize: string;
84
+ actions: string;
85
+ progress: string;
86
+ close: string;
87
+ }>;
50
88
  };
51
89
  export default _default;
@@ -3,7 +3,7 @@ export default ct(
3
3
  /* @unocss-include */
4
4
  {
5
5
  slots: {
6
- root: "relative group overflow-hidden bg-ui-c1 shadow-lg rounded-ui-box ring ring-ui-c2 p-4 flex gap-2.5 focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ui-c2",
6
+ root: "group relative overflow-hidden bg-ui-cx shadow-lg rounded-ui-box ring ring-ui-cb/5 p-4 flex gap-2.5 focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ui-cb/5",
7
7
  wrapper: "w-0 flex-1 flex flex-col gap-1",
8
8
  title: "text-base font-medium color-ui-cb",
9
9
  description: "text-sm color-ui-cb/80",
@@ -15,14 +15,19 @@ export default ct(
15
15
  close: "p-0.5"
16
16
  },
17
17
  variants: {
18
- multiline: {
19
- true: {
20
- root: "items-start",
21
- actions: "items-start mt-1"
22
- },
23
- false: {
18
+ orientation: {
19
+ horizontal: {
24
20
  root: "items-center",
25
21
  actions: "items-center"
22
+ },
23
+ vertical: {
24
+ root: "items-start",
25
+ actions: "items-start mt-2.5"
26
+ }
27
+ },
28
+ title: {
29
+ true: {
30
+ description: "mt-1"
26
31
  }
27
32
  }
28
33
  }
@@ -5,6 +5,11 @@ declare const _default: {
5
5
  base: string[];
6
6
  };
7
7
  variants: {
8
+ clickable: {
9
+ true: {
10
+ base: string;
11
+ };
12
+ };
8
13
  position: {
9
14
  'top-left': {
10
15
  viewport: string;
@@ -40,34 +45,93 @@ declare const _default: {
40
45
  };
41
46
  };
42
47
  };
43
- compoundVariants: ({
44
- position: ("top-right" | "top-left" | "top-center")[];
45
- class: {
46
- viewport: string;
47
- base: string;
48
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
49
+ clickable: {
50
+ true: {
51
+ base: string;
52
+ };
48
53
  };
49
- swipeDirection?: undefined;
50
- } | {
51
- position: ("bottom-right" | "bottom-left" | "bottom-center")[];
52
- class: {
53
- viewport: string;
54
- base: string;
54
+ position: {
55
+ 'top-left': {
56
+ viewport: string;
57
+ };
58
+ 'top-center': {
59
+ viewport: string;
60
+ };
61
+ 'top-right': {
62
+ viewport: string;
63
+ };
64
+ 'bottom-left': {
65
+ viewport: string;
66
+ };
67
+ 'bottom-center': {
68
+ viewport: string;
69
+ };
70
+ 'bottom-right': {
71
+ viewport: string;
72
+ };
55
73
  };
56
- swipeDirection?: undefined;
57
- } | {
58
- swipeDirection: ("right" | "left")[];
59
- class: {
60
- base: string[];
61
- viewport?: undefined;
74
+ swipeDirection: {
75
+ up: {
76
+ base: string;
77
+ };
78
+ right: {
79
+ base: string;
80
+ };
81
+ down: {
82
+ base: string;
83
+ };
84
+ left: {
85
+ base: string;
86
+ };
62
87
  };
63
- position?: undefined;
64
- } | {
65
- swipeDirection: ("up" | "down")[];
66
- class: {
67
- base: string[];
68
- viewport?: undefined;
88
+ }, {
89
+ viewport: string[];
90
+ base: string[];
91
+ }, undefined>;
92
+ defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
93
+ clickable: {
94
+ true: {
95
+ base: string;
96
+ };
97
+ };
98
+ position: {
99
+ 'top-left': {
100
+ viewport: string;
101
+ };
102
+ 'top-center': {
103
+ viewport: string;
104
+ };
105
+ 'top-right': {
106
+ viewport: string;
107
+ };
108
+ 'bottom-left': {
109
+ viewport: string;
110
+ };
111
+ 'bottom-center': {
112
+ viewport: string;
113
+ };
114
+ 'bottom-right': {
115
+ viewport: string;
116
+ };
69
117
  };
70
- position?: undefined;
71
- })[];
118
+ swipeDirection: {
119
+ up: {
120
+ base: string;
121
+ };
122
+ right: {
123
+ base: string;
124
+ };
125
+ down: {
126
+ base: string;
127
+ };
128
+ left: {
129
+ base: string;
130
+ };
131
+ };
132
+ }, {
133
+ viewport: string[];
134
+ base: string[];
135
+ }>;
72
136
  };
73
137
  export default _default;
@@ -17,6 +17,11 @@ export default ct(
17
17
  ]
18
18
  },
19
19
  variants: {
20
+ clickable: {
21
+ true: {
22
+ base: "cursor-pointer"
23
+ }
24
+ },
20
25
  position: {
21
26
  "top-left": {
22
27
  viewport: "left-4"
@@ -8,18 +8,18 @@ declare const _default: {
8
8
  variants: {
9
9
  [key: string]: {
10
10
  [key: string]: "" | {
11
- content?: import("@byyuurin/ui-kit/index").ClassValue;
12
- arrow?: import("@byyuurin/ui-kit/index").ClassValue;
13
- text?: import("@byyuurin/ui-kit/index").ClassValue;
11
+ content?: import("@byyuurin/ui-kit").ClassValue;
12
+ arrow?: import("@byyuurin/ui-kit").ClassValue;
13
+ text?: import("@byyuurin/ui-kit").ClassValue;
14
14
  } | null;
15
15
  };
16
16
  };
17
- compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
17
+ compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
18
18
  [key: string]: {
19
19
  [key: string]: "" | {
20
- content?: import("@byyuurin/ui-kit/index").ClassValue;
21
- arrow?: import("@byyuurin/ui-kit/index").ClassValue;
22
- text?: import("@byyuurin/ui-kit/index").ClassValue;
20
+ content?: import("@byyuurin/ui-kit").ClassValue;
21
+ arrow?: import("@byyuurin/ui-kit").ClassValue;
22
+ text?: import("@byyuurin/ui-kit").ClassValue;
23
23
  } | null;
24
24
  };
25
25
  }, {
@@ -27,5 +27,18 @@ declare const _default: {
27
27
  arrow: string;
28
28
  text: string;
29
29
  }, undefined>;
30
+ defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
31
+ [key: string]: {
32
+ [key: string]: "" | {
33
+ content?: import("@byyuurin/ui-kit").ClassValue;
34
+ arrow?: import("@byyuurin/ui-kit").ClassValue;
35
+ text?: import("@byyuurin/ui-kit").ClassValue;
36
+ } | null;
37
+ };
38
+ }, {
39
+ content: string;
40
+ arrow: string;
41
+ text: string;
42
+ }>;
30
43
  };
31
44
  export default _default;
@@ -3,8 +3,8 @@ export default ct(
3
3
  /* @unocss-include */
4
4
  {
5
5
  slots: {
6
- content: "flex items-center gap-1 bg-ui-c1 color-ui-base shadow-sm rounded-ui-base ring ring-ui-base/10 h-6 px-2 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
7
- arrow: "fill-ui-c1 stroke-ui-cb/10",
6
+ content: "flex items-center gap-1 bg-ui-cx color-ui-base shadow-sm rounded-ui-base ring ring-ui-base/10 h-6 px-2 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
7
+ arrow: "fill-ui-cx stroke-ui-cb/10",
8
8
  text: "truncate"
9
9
  }
10
10
  }
@@ -1,23 +1,29 @@
1
1
  export type * from '../components/Accordion.vue';
2
2
  export type * from '../components/Alert.vue';
3
3
  export type * from '../components/App.vue';
4
- export type * from '../components/App.vue';
5
4
  export type * from '../components/Badge.vue';
6
5
  export type * from '../components/Button.vue';
6
+ export type * from '../components/ButtonGroup.vue';
7
7
  export type * from '../components/Card.vue';
8
+ export type * from '../components/Carousel.vue';
8
9
  export type * from '../components/Checkbox.vue';
9
10
  export type * from '../components/Chip.vue';
11
+ export type * from '../components/Collapsible.vue';
10
12
  export type * from '../components/Drawer.vue';
11
13
  export type * from '../components/Input.vue';
14
+ export type * from '../components/InputNumber.vue';
12
15
  export type * from '../components/Link.vue';
13
16
  export type * from '../components/Modal.vue';
17
+ export type * from '../components/Pagination.vue';
14
18
  export type * from '../components/PinInput.vue';
15
19
  export type * from '../components/Popover.vue';
16
20
  export type * from '../components/RadioGroup.vue';
17
21
  export type * from '../components/ScrollArea.vue';
18
22
  export type * from '../components/Select.vue';
23
+ export type * from '../components/Separator.vue';
19
24
  export type * from '../components/Slider.vue';
20
25
  export type * from '../components/Switch.vue';
26
+ export type * from '../components/Table.vue';
21
27
  export type * from '../components/Tabs.vue';
22
28
  export type * from '../components/Textarea.vue';
23
29
  export type * from '../components/Toast.vue';
@@ -1,5 +1,5 @@
1
- import type * as theme from '../theme';
2
- import type { PartialTheme } from './utils';
3
- export * from './components';
4
- export * from './utils';
1
+ import type * as theme from '../theme/index.js';
2
+ import type { PartialTheme } from './utils.js';
3
+ export * from './components.js';
4
+ export * from './utils.js';
5
5
  export type ThemeExtension = PartialTheme<typeof theme>;
@@ -0,0 +1,2 @@
1
+ export * from "./components.js";
2
+ export * from "./utils.js";
@@ -21,7 +21,7 @@ export interface StylerBaseProps {
21
21
  class?: ClassValue;
22
22
  }
23
23
  export type StylerReturnType<T> = T extends CVReturnType<infer V, infer S, infer B> ? ReturnType<CVReturnType<V, S, B>> : never;
24
- export type Styler<T> = T extends CVReturnType<infer V, any, any> ? [keyof V] extends string[] ? (props: Required<VariantProps<T>> & StylerBaseProps) => StylerReturnType<T> : (props?: StylerBaseProps) => StylerReturnType<T> : never;
24
+ export type Styler<T> = T extends CVReturnType<infer V, any, any> ? [keyof V] extends string[] ? (props: VariantProps<T> & StylerBaseProps) => StylerReturnType<T> : (props?: StylerBaseProps) => StylerReturnType<T> : never;
25
25
  export interface SelectModelValueEmits<T, V, M extends boolean = false, DV = T> {
26
26
  (event: 'update:modelValue', payload: SelectModelValue<T, V, M, DV>): void;
27
27
  }
@@ -1,6 +1,6 @@
1
- export * from './extend-theme';
2
- export * from './link';
3
- export * from './styler';
1
+ export * from './extend-theme.js';
2
+ export * from './link.js';
3
+ export * from './styler.js';
4
4
  export declare function pick<Data extends object, Keys extends keyof Data>(data: Data, keys: Keys[]): Pick<Data, Keys>;
5
5
  export declare function omit<Data extends object, Keys extends keyof Data>(data: Data, keys: Keys[]): Omit<Data, Keys>;
6
6
  export declare function get(object: Record<string, any> | undefined, path: (string | number)[] | string, defaultValue?: any): any;
@@ -1,7 +1,7 @@
1
1
  import { isEqual } from "ohash";
2
- export * from "./extend-theme.mjs";
3
- export * from "./link.mjs";
4
- export * from "./styler.mjs";
2
+ export * from "./extend-theme.js";
3
+ export * from "./link.js";
4
+ export * from "./styler.js";
5
5
  export function pick(data, keys) {
6
6
  const result = {};
7
7
  for (const key of keys)
@@ -1,15 +1,30 @@
1
- import type { LinkProps } from '../types';
2
- export declare function pickLinkProps(props: LinkProps & Partial<Pick<HTMLAnchorElement, 'ariaLabel' | 'title'>>): {
1
+ import type { LinkProps } from '../types/index.js';
2
+ export declare function pickLinkProps(link: LinkProps & {
3
+ ariaLabel?: string;
4
+ title?: string;
5
+ }): {
3
6
  disabled: any;
4
7
  title: any;
5
8
  active: any;
6
9
  type: any;
10
+ replace: any;
11
+ activeClass: any;
12
+ ariaCurrentValue: any;
7
13
  ariaLabel: any;
8
- rel: any;
9
- target: any;
10
- href: any;
11
- ui: any;
12
14
  as: any;
15
+ disableClass: any;
16
+ exact: any;
17
+ exactActiveClass: any;
18
+ exactHash: any;
19
+ exactQuery: any;
20
+ external: any;
21
+ href: any;
22
+ inactiveClass: any;
23
+ noPrefetch: any;
13
24
  noRel: any;
14
- onClick: any;
25
+ prefetch: any;
26
+ prefetchedClass: any;
27
+ rel: any;
28
+ target: any;
29
+ to: any;
15
30
  };
@@ -0,0 +1,30 @@
1
+ import { reactivePick } from "@vueuse/core";
2
+ export function pickLinkProps(link) {
3
+ return reactivePick(
4
+ link,
5
+ "active",
6
+ "activeClass",
7
+ "ariaCurrentValue",
8
+ "ariaLabel",
9
+ "as",
10
+ "disabled",
11
+ "disableClass",
12
+ "exact",
13
+ "exactActiveClass",
14
+ "exactHash",
15
+ "exactQuery",
16
+ "external",
17
+ "href",
18
+ "inactiveClass",
19
+ "noPrefetch",
20
+ "noRel",
21
+ "prefetch",
22
+ "prefetchedClass",
23
+ "rel",
24
+ "replace",
25
+ "target",
26
+ "to",
27
+ "type",
28
+ "title"
29
+ );
30
+ }
@@ -1,4 +1,4 @@
1
- import type { ClassValue, CRRule, CVCompoundVariants, CVMeta, CVSlots, CVVariants } from '@byyuurin/ui-kit';
1
+ import type { ClassValue, CRRule, CVCompoundVariants, CVDefaultVariants, CVMeta, CVSlots, CVVariants } from '@byyuurin/ui-kit';
2
2
  export declare function prepareStyler(rules?: CRRule[]): {
3
- createStyler: <V extends CVVariants<S, B>, CV extends CVCompoundVariants<V, S, B>, B extends ClassValue = undefined, S extends CVSlots = undefined>(theme: CVMeta<V, CV, never, B, S>) => [keyof V] extends string[] ? (props: Required<import("@byyuurin/ui-kit/index").VariantProps<import("@byyuurin/ui-kit/index").CVReturnType<V, S, B>>> & import("../types").StylerBaseProps) => S extends undefined ? string : { [K in keyof S | (B extends undefined ? never : "base")]: import("@byyuurin/ui-kit/index").CVHandler<V, S, string>; } : (props?: import("../types").StylerBaseProps) => S extends undefined ? string : { [K in keyof S | (B extends undefined ? never : "base")]: import("@byyuurin/ui-kit/index").CVHandler<V, S, string>; };
3
+ createStyler: <V extends CVVariants<S, B>, CV extends CVCompoundVariants<V, S, B>, DV extends CVDefaultVariants<V, S>, B extends ClassValue = undefined, S extends CVSlots = undefined>(theme: CVMeta<V, CV, DV, B, S>) => [keyof V] extends string[] ? (props: import("@byyuurin/ui-kit").VariantProps<import("@byyuurin/ui-kit").CVReturnType<V, S, B>> & import("..").StylerBaseProps) => S extends undefined ? string : { [K in keyof S | (B extends undefined ? never : "base")]: import("@byyuurin/ui-kit").CVHandler<V, S, string>; } : (props?: import("..").StylerBaseProps) => S extends undefined ? string : { [K in keyof S | (B extends undefined ? never : "base")]: import("@byyuurin/ui-kit").CVHandler<V, S, string>; };
4
4
  };
@@ -0,0 +1,9 @@
1
+ import type { Ref } from 'vue';
2
+ export { useRoute, useRouter } from 'vue-router';
3
+ export declare function useState<T>(key: string, init: () => T): Ref<T>;
4
+ export declare function useNuxtApp(): {
5
+ isHydrating: boolean;
6
+ payload: {
7
+ serverRendered: boolean;
8
+ };
9
+ };
@@ -0,0 +1,16 @@
1
+ import { ref } from "vue";
2
+ export { useRoute, useRouter } from "vue-router";
3
+ const state = {};
4
+ export function useState(key, init) {
5
+ if (state[key])
6
+ return state[key];
7
+ const value = ref(init());
8
+ state[key] = value;
9
+ return value;
10
+ }
11
+ export function useNuxtApp() {
12
+ return {
13
+ isHydrating: true,
14
+ payload: { serverRendered: false }
15
+ };
16
+ }
@@ -0,0 +1,4 @@
1
+ const packageName = "@byyuurin/ui";
2
+
3
+ export { packageName as p };
4
+ //# sourceMappingURL=ui.d1728164.mjs.map