@byyuurin/ui 0.0.8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/README.md +0 -3
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +4 -3
  4. package/dist/module.mjs.map +1 -1
  5. package/dist/runtime/app/injections.d.ts +9299 -8
  6. package/dist/runtime/app/injections.js +35 -5
  7. package/dist/runtime/components/Accordion.vue +17 -19
  8. package/dist/runtime/components/Alert.vue +6 -9
  9. package/dist/runtime/components/App.vue +14 -19
  10. package/dist/runtime/components/Avatar.vue +5 -8
  11. package/dist/runtime/components/AvatarGroup.vue +2 -5
  12. package/dist/runtime/components/Badge.vue +3 -6
  13. package/dist/runtime/components/Breadcrumb.vue +22 -23
  14. package/dist/runtime/components/Button.vue +2 -3
  15. package/dist/runtime/components/ButtonGroup.vue +2 -5
  16. package/dist/runtime/components/Calendar.vue +185 -0
  17. package/dist/runtime/components/Card.vue +2 -5
  18. package/dist/runtime/components/Carousel.vue +11 -16
  19. package/dist/runtime/components/Checkbox.vue +13 -11
  20. package/dist/runtime/components/Chip.vue +6 -9
  21. package/dist/runtime/components/Collapsible.vue +2 -5
  22. package/dist/runtime/components/Drawer.vue +88 -45
  23. package/dist/runtime/components/DropdownMenu.vue +143 -0
  24. package/dist/runtime/components/DropdownMenuContent.vue +188 -0
  25. package/dist/runtime/components/Form.vue +311 -0
  26. package/dist/runtime/components/FormItem.vue +129 -0
  27. package/dist/runtime/components/Input.vue +34 -23
  28. package/dist/runtime/components/InputNumber.vue +23 -18
  29. package/dist/runtime/components/Kbd.vue +2 -6
  30. package/dist/runtime/components/Link.vue +25 -7
  31. package/dist/runtime/components/Modal.vue +31 -22
  32. package/dist/runtime/components/OverlayProvider.vue +29 -0
  33. package/dist/runtime/components/Pagination.vue +34 -27
  34. package/dist/runtime/components/PinInput.vue +23 -17
  35. package/dist/runtime/components/Popover.vue +5 -8
  36. package/dist/runtime/components/Progress.vue +2 -5
  37. package/dist/runtime/components/RadioGroup.vue +52 -49
  38. package/dist/runtime/components/ScrollArea.vue +2 -6
  39. package/dist/runtime/components/Select.vue +96 -89
  40. package/dist/runtime/components/Separator.vue +2 -6
  41. package/dist/runtime/components/Skeleton.vue +2 -5
  42. package/dist/runtime/components/Slider.vue +13 -11
  43. package/dist/runtime/components/Switch.vue +18 -11
  44. package/dist/runtime/components/Table.vue +23 -13
  45. package/dist/runtime/components/Tabs.vue +14 -16
  46. package/dist/runtime/components/Textarea.vue +20 -17
  47. package/dist/runtime/components/Toast.vue +12 -13
  48. package/dist/runtime/components/{Toaster.vue → ToastProvider.vue} +18 -16
  49. package/dist/runtime/components/Tooltip.vue +5 -8
  50. package/dist/runtime/composables/useFormItem.d.ts +27 -0
  51. package/dist/runtime/composables/useFormItem.js +64 -0
  52. package/dist/runtime/composables/useKbd.d.ts +1 -1
  53. package/dist/runtime/composables/useOverlay.d.ts +29 -0
  54. package/dist/runtime/composables/useOverlay.js +69 -0
  55. package/dist/runtime/composables/useTheme.d.ts +6 -2
  56. package/dist/runtime/composables/useTheme.js +10 -3
  57. package/dist/runtime/composables/useToast.d.ts +4 -20
  58. package/dist/runtime/composables/useToast.js +6 -5
  59. package/dist/runtime/index.d.ts +6 -2
  60. package/dist/runtime/index.js +6 -2
  61. package/dist/runtime/locale/en.js +6 -0
  62. package/dist/runtime/locale/zh-tw.js +6 -0
  63. package/dist/runtime/theme/accordion.js +3 -3
  64. package/dist/runtime/theme/alert.js +3 -3
  65. package/dist/runtime/theme/app.d.ts +1 -0
  66. package/dist/runtime/theme/app.js +2 -1
  67. package/dist/runtime/theme/avatar.js +2 -2
  68. package/dist/runtime/theme/badge.d.ts +21 -45
  69. package/dist/runtime/theme/breadcrumb.d.ts +3 -3
  70. package/dist/runtime/theme/breadcrumb.js +5 -5
  71. package/dist/runtime/theme/button.d.ts +111 -57
  72. package/dist/runtime/theme/button.js +13 -13
  73. package/dist/runtime/theme/calendar.d.ts +56 -0
  74. package/dist/runtime/theme/calendar.js +69 -0
  75. package/dist/runtime/theme/card.js +6 -6
  76. package/dist/runtime/theme/carousel.js +1 -1
  77. package/dist/runtime/theme/checkbox.js +5 -5
  78. package/dist/runtime/theme/chip.d.ts +11 -44
  79. package/dist/runtime/theme/chip.js +3 -3
  80. package/dist/runtime/theme/drawer.d.ts +85 -47
  81. package/dist/runtime/theme/drawer.js +46 -19
  82. package/dist/runtime/theme/dropdown-menu.d.ts +71 -0
  83. package/dist/runtime/theme/dropdown-menu.js +83 -0
  84. package/dist/runtime/theme/form-item.d.ts +76 -0
  85. package/dist/runtime/theme/form-item.js +34 -0
  86. package/dist/runtime/theme/form.d.ts +8 -0
  87. package/dist/runtime/theme/form.js +7 -0
  88. package/dist/runtime/theme/index.d.ts +5 -1
  89. package/dist/runtime/theme/index.js +5 -1
  90. package/dist/runtime/theme/input-number.d.ts +41 -61
  91. package/dist/runtime/theme/input-number.js +1 -1
  92. package/dist/runtime/theme/input.d.ts +99 -71
  93. package/dist/runtime/theme/input.js +15 -15
  94. package/dist/runtime/theme/kbd.d.ts +2 -2
  95. package/dist/runtime/theme/kbd.js +1 -1
  96. package/dist/runtime/theme/link.d.ts +1 -1
  97. package/dist/runtime/theme/link.js +3 -3
  98. package/dist/runtime/theme/modal.d.ts +5 -33
  99. package/dist/runtime/theme/modal.js +4 -4
  100. package/dist/runtime/theme/pagination.d.ts +27 -3
  101. package/dist/runtime/theme/pagination.js +6 -2
  102. package/dist/runtime/theme/pinInput.d.ts +42 -42
  103. package/dist/runtime/theme/pinInput.js +13 -13
  104. package/dist/runtime/theme/progress.d.ts +117 -53
  105. package/dist/runtime/theme/progress.js +4 -4
  106. package/dist/runtime/theme/radio-group.d.ts +2 -2
  107. package/dist/runtime/theme/radio-group.js +7 -7
  108. package/dist/runtime/theme/select.d.ts +100 -84
  109. package/dist/runtime/theme/select.js +21 -20
  110. package/dist/runtime/theme/separator.d.ts +13 -28
  111. package/dist/runtime/theme/separator.js +1 -1
  112. package/dist/runtime/theme/skeleton.d.ts +1 -1
  113. package/dist/runtime/theme/skeleton.js +1 -1
  114. package/dist/runtime/theme/slider.js +1 -1
  115. package/dist/runtime/theme/switch.js +5 -5
  116. package/dist/runtime/theme/table.d.ts +3 -0
  117. package/dist/runtime/theme/table.js +8 -7
  118. package/dist/runtime/theme/tabs.d.ts +51 -68
  119. package/dist/runtime/theme/tabs.js +10 -10
  120. package/dist/runtime/theme/textarea.d.ts +37 -43
  121. package/dist/runtime/theme/textarea.js +13 -13
  122. package/dist/runtime/theme/{toaster.d.ts → toast-provider.d.ts} +26 -41
  123. package/dist/runtime/theme/toast.js +5 -5
  124. package/dist/runtime/theme/tooltip.js +1 -1
  125. package/dist/runtime/types/components.d.ts +6 -1
  126. package/dist/runtime/types/form.d.ts +45 -0
  127. package/dist/runtime/types/form.js +0 -0
  128. package/dist/runtime/types/index.d.ts +5 -2
  129. package/dist/runtime/types/index.js +1 -0
  130. package/dist/runtime/types/locale.d.ts +6 -0
  131. package/dist/runtime/types/utils.d.ts +35 -12
  132. package/dist/runtime/utils/extend-theme.js +15 -4
  133. package/dist/runtime/utils/form.d.ts +5 -0
  134. package/dist/runtime/utils/form.js +24 -0
  135. package/dist/runtime/utils/index.d.ts +2 -0
  136. package/dist/runtime/utils/index.js +4 -0
  137. package/dist/runtime/utils/link.d.ts +4 -26
  138. package/dist/runtime/utils/link.js +10 -3
  139. package/dist/shared/ui.3e7fad19.mjs +5 -0
  140. package/dist/shared/ui.3e7fad19.mjs.map +1 -0
  141. package/dist/unocss.mjs +21 -16
  142. package/dist/unocss.mjs.map +1 -1
  143. package/dist/unplugin.mjs +1 -1
  144. package/dist/vite.mjs +1 -1
  145. package/package.json +20 -18
  146. package/dist/runtime/components/ModalProvider.vue +0 -11
  147. package/dist/runtime/composables/useModal.d.ts +0 -10
  148. package/dist/runtime/composables/useModal.js +0 -47
  149. package/dist/shared/ui.ba24b380.mjs +0 -4
  150. package/dist/shared/ui.ba24b380.mjs.map +0 -1
  151. /package/dist/runtime/theme/{toaster.js → toast-provider.js} +0 -0
@@ -1,5 +1,9 @@
1
- import * as theme from '../theme/index.js';
1
+ import * as uiTheme from '../theme/index.js';
2
+ import type { StylerProps, StylerReturnType, StylerTheme } from '../types/index.js';
3
+ type UITheme = typeof uiTheme;
2
4
  export declare const useTheme: () => {
3
- theme: import("vue").ComputedRef<typeof theme>;
5
+ theme: import("vue").ComputedRef<typeof uiTheme>;
4
6
  createStyler: <V extends import("@byyuurin/ui-kit").CVVariants<S, B>, CV extends import("@byyuurin/ui-kit").CVCompoundVariants<V, S, B>, DV extends import("@byyuurin/ui-kit").CVDefaultVariants<V, S>, B extends import("@byyuurin/ui-kit").ClassValue = undefined, S extends import("@byyuurin/ui-kit").CVSlots = undefined>(theme: import("@byyuurin/ui-kit").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>; };
7
+ generateStyle: <T extends keyof UITheme>(name: T, props?: StylerProps<UITheme[T]>) => StylerReturnType<StylerTheme<UITheme[T]>>;
5
8
  };
9
+ export {};
@@ -2,15 +2,22 @@ import { transformUnoRules } from "@byyuurin/ui/unocss";
2
2
  import { createSharedComposable } from "@vueuse/core";
3
3
  import { computed, toValue } from "vue";
4
4
  import { injectThemeExtension, injectUnoConfig } from "../app/injections.js";
5
- import * as theme from "../theme/index.js";
5
+ import * as uiTheme from "../theme/index.js";
6
6
  import { extendTheme, prepareStyler } from "../utils/index.js";
7
7
  export const useTheme = createSharedComposable(() => {
8
8
  const themeExtension = injectThemeExtension();
9
9
  const unoConfig = injectUnoConfig();
10
10
  const mergeRules = transformUnoRules(toValue(unoConfig));
11
11
  const { createStyler } = prepareStyler(mergeRules);
12
+ const themeDefaults = JSON.parse(JSON.stringify(uiTheme));
13
+ const theme = computed(() => extendTheme(toValue(themeExtension), themeDefaults));
14
+ function generateStyle(name, props) {
15
+ const styler = createStyler(theme.value[name]);
16
+ return styler(props);
17
+ }
12
18
  return {
13
- theme: computed(() => extendTheme(toValue(themeExtension), theme)),
14
- createStyler
19
+ theme,
20
+ createStyler,
21
+ generateStyle
15
22
  };
16
23
  });
@@ -1,24 +1,8 @@
1
- import type { ToastProps } from '../types/index.js';
2
- export interface Toast extends Omit<ToastProps, 'defaultOpen'> {
3
- id: string | number;
4
- onClick?: (toast: Toast) => void;
5
- }
1
+ import type { ToastState } from '../types/index.js';
6
2
  export declare const useToast: () => {
7
- toasts: import("vue").Ref<{
8
- [x: string]: any;
9
- [x: number]: any;
10
- [x: symbol]: ToastProps;
11
- id: string | number;
12
- onClick?: ((toast: Toast) => void) | undefined;
13
- }[], Toast[] | {
14
- [x: string]: any;
15
- [x: number]: any;
16
- [x: symbol]: ToastProps;
17
- id: string | number;
18
- onClick?: ((toast: Toast) => void) | undefined;
19
- }[]>;
20
- add: (toast: Partial<Toast>) => Toast;
21
- update: (id: string | number, toast: Partial<Omit<Toast, "id">>) => void;
3
+ toasts: import("vue").Ref<ToastState[], ToastState[]>;
4
+ add: (toast: Partial<ToastState>) => ToastState;
5
+ update: (id: string | number, toast: Partial<Omit<ToastState, "id">>) => void;
22
6
  remove: (id: string | number) => void;
23
7
  clear: () => void;
24
8
  };
@@ -1,11 +1,12 @@
1
1
  import { createSharedComposable } from "@vueuse/core";
2
2
  import { nextTick, ref } from "vue";
3
+ import { useState } from "#imports";
3
4
  export const useToast = createSharedComposable(() => {
4
- const toasts = ref([]);
5
+ const toasts = useState("toasts", () => []);
5
6
  const running = ref(false);
6
7
  const maxToasts = 5;
7
8
  const queue = [];
8
- const generateId = () => `${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
9
+ const generateId = () => `toast-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
9
10
  async function processQueue() {
10
11
  if (running.value || queue.length === 0)
11
12
  return;
@@ -28,7 +29,7 @@ export const useToast = createSharedComposable(() => {
28
29
  return body;
29
30
  }
30
31
  function update(id, toast) {
31
- const index = toasts.value.findIndex((t) => t.id === id);
32
+ const index = toasts.value.findIndex((toast2) => toast2.id === id);
32
33
  if (index === -1)
33
34
  return;
34
35
  toasts.value[index] = {
@@ -37,7 +38,7 @@ export const useToast = createSharedComposable(() => {
37
38
  };
38
39
  }
39
40
  function remove(id) {
40
- const index = toasts.value.findIndex((t) => t.id === id);
41
+ const index = toasts.value.findIndex((toast) => toast.id === id);
41
42
  if (index === -1)
42
43
  return;
43
44
  toasts.value[index] = {
@@ -45,7 +46,7 @@ export const useToast = createSharedComposable(() => {
45
46
  open: false
46
47
  };
47
48
  setTimeout(() => {
48
- toasts.value = toasts.value.filter((t) => t.id !== id);
49
+ toasts.value = toasts.value.filter((toast) => toast.id !== id);
49
50
  }, 200);
50
51
  }
51
52
  function clear() {
@@ -7,19 +7,23 @@ export { default as Badge } from './components/Badge.vue.js';
7
7
  export { default as Breadcrumb } from './components/Breadcrumb.vue.js';
8
8
  export { default as Button } from './components/Button.vue.js';
9
9
  export { default as ButtonGroup } from './components/ButtonGroup.vue.js';
10
+ export { default as Calendar } from './components/Calendar.vue.js';
10
11
  export { default as Card } from './components/Card.vue.js';
11
12
  export { default as Carousel } from './components/Carousel.vue.js';
12
13
  export { default as Checkbox } from './components/Checkbox.vue.js';
13
14
  export { default as Chip } from './components/Chip.vue.js';
14
15
  export { default as Collapsible } from './components/Collapsible.vue.js';
15
16
  export { default as Drawer } from './components/Drawer.vue.js';
17
+ export { default as DropdownMenu } from './components/DropdownMenu.vue.js';
18
+ export { default as Form } from './components/Form.vue.js';
19
+ export { default as FormItem } from './components/FormItem.vue.js';
16
20
  export { default as Input } from './components/Input.vue.js';
17
21
  export { default as InputNumber } from './components/InputNumber.vue.js';
18
22
  export { default as Kbd } from './components/Kbd.vue.js';
19
23
  export { default as Link } from './components/Link.vue.js';
20
24
  export { default as LinkBase } from './components/LinkBase.vue.js';
21
25
  export { default as Modal } from './components/Modal.vue.js';
22
- export { default as ModalProvider } from './components/ModalProvider.vue.js';
26
+ export { default as OverlayProvider } from './components/OverlayProvider.vue.js';
23
27
  export { default as Pagination } from './components/Pagination.vue.js';
24
28
  export { default as PinInput } from './components/PinInput.vue.js';
25
29
  export { default as Popover } from './components/Popover.vue.js';
@@ -35,6 +39,6 @@ export { default as Table } from './components/Table.vue.js';
35
39
  export { default as Tabs } from './components/Tabs.vue.js';
36
40
  export { default as Textarea } from './components/Textarea.vue.js';
37
41
  export { default as Toast } from './components/Toast.vue.js';
38
- export { default as Toaster } from './components/Toaster.vue.js';
42
+ export { default as ToastProvider } from './components/ToastProvider.vue.js';
39
43
  export { default as Tooltip } from './components/Tooltip.vue.js';
40
44
  export * from './types/index.js';
@@ -7,19 +7,23 @@ export { default as Badge } from "./components/Badge.vue";
7
7
  export { default as Breadcrumb } from "./components/Breadcrumb.vue";
8
8
  export { default as Button } from "./components/Button.vue";
9
9
  export { default as ButtonGroup } from "./components/ButtonGroup.vue";
10
+ export { default as Calendar } from "./components/Calendar.vue";
10
11
  export { default as Card } from "./components/Card.vue";
11
12
  export { default as Carousel } from "./components/Carousel.vue";
12
13
  export { default as Checkbox } from "./components/Checkbox.vue";
13
14
  export { default as Chip } from "./components/Chip.vue";
14
15
  export { default as Collapsible } from "./components/Collapsible.vue";
15
16
  export { default as Drawer } from "./components/Drawer.vue";
17
+ export { default as DropdownMenu } from "./components/DropdownMenu.vue";
18
+ export { default as Form } from "./components/Form.vue";
19
+ export { default as FormItem } from "./components/FormItem.vue";
16
20
  export { default as Input } from "./components/Input.vue";
17
21
  export { default as InputNumber } from "./components/InputNumber.vue";
18
22
  export { default as Kbd } from "./components/Kbd.vue";
19
23
  export { default as Link } from "./components/Link.vue";
20
24
  export { default as LinkBase } from "./components/LinkBase.vue";
21
25
  export { default as Modal } from "./components/Modal.vue";
22
- export { default as ModalProvider } from "./components/ModalProvider.vue";
26
+ export { default as OverlayProvider } from "./components/OverlayProvider.vue";
23
27
  export { default as Pagination } from "./components/Pagination.vue";
24
28
  export { default as PinInput } from "./components/PinInput.vue";
25
29
  export { default as Popover } from "./components/Popover.vue";
@@ -35,6 +39,6 @@ export { default as Table } from "./components/Table.vue";
35
39
  export { default as Tabs } from "./components/Tabs.vue";
36
40
  export { default as Textarea } from "./components/Textarea.vue";
37
41
  export { default as Toast } from "./components/Toast.vue";
38
- export { default as Toaster } from "./components/Toaster.vue";
42
+ export { default as ToastProvider } from "./components/ToastProvider.vue";
39
43
  export { default as Tooltip } from "./components/Tooltip.vue";
40
44
  export * from "./types/index.js";
@@ -6,6 +6,12 @@ export default defineLocale({
6
6
  alert: {
7
7
  close: "Close"
8
8
  },
9
+ calendar: {
10
+ prevYear: "Previous year",
11
+ nextYear: "Next year",
12
+ prevMonth: "Previous month",
13
+ nextMonth: "Next month"
14
+ },
9
15
  carousel: {
10
16
  prev: "Prev",
11
17
  next: "Next",
@@ -6,6 +6,12 @@ export default defineLocale({
6
6
  alert: {
7
7
  close: "\u95DC\u9589"
8
8
  },
9
+ calendar: {
10
+ prevYear: "\u53BB\u5E74",
11
+ nextYear: "\u660E\u5E74",
12
+ prevMonth: "\u4E0A\u500B\u6708",
13
+ nextMonth: "\u4E0B\u500B\u6708"
14
+ },
9
15
  carousel: {
10
16
  prev: "\u4E0A\u4E00\u9801",
11
17
  next: "\u4E0B\u4E00\u9801",
@@ -3,16 +3,16 @@ export default ct(
3
3
  /* @unocss-include */
4
4
  {
5
5
  slots: {
6
- root: "w-full color-ui-cb",
6
+ root: "w-full color-ui-base",
7
7
  item: "border-b last:border-b-0",
8
8
  header: "flex",
9
- trigger: "group flex-1 flex items-center gap-2 font-medium text-sm py-4 outline-none focus-visible:outline-ui-cb/80 min-w-0",
9
+ trigger: "group flex-1 flex items-center gap-2 font-medium text-sm py-4 outline-none focus-visible:outline-ui-base/80 min-w-0",
10
10
  content: [
11
11
  "overflow-hidden focus:outline-none",
12
12
  "data-[state=open]:animate-[accordion-down_200ms_ease-out]",
13
13
  "data-[state=closed]:animate-[accordion-up_200ms_ease-out]"
14
14
  ],
15
- body: "text-sm pb-4 color-ui-cb/80",
15
+ body: "text-sm pb-4 color-ui-base/80",
16
16
  leadingIcon: "shrink-0 size-5",
17
17
  trailingIcon: "shrink-0 size-5 ms-auto group-data-[state=open]:rotate-180 transition-all duration-200",
18
18
  label: "text-start break-words"
@@ -18,13 +18,13 @@ export default ct(
18
18
  close: "ui-base-inverted"
19
19
  },
20
20
  "outline": {
21
- root: "color-ui-content bg-ui-cx ring ring-inset ring-ui-fill/30"
21
+ root: "color-ui-fill bg-ui-base ring ring-inset ring-ui-fill/30"
22
22
  },
23
23
  "soft": {
24
- root: "color-ui-content bg-soft-ui-fill/10"
24
+ root: "color-ui-fill bg-soft-ui-fill/10"
25
25
  },
26
26
  "soft-outline": {
27
- root: "color-ui-content bg-soft-ui-fill/10 ring ring-inset ring-ui-fill/30"
27
+ root: "color-ui-fill bg-soft-ui-fill/10 ring ring-inset ring-ui-fill/30"
28
28
  }
29
29
  },
30
30
  orientation: {
@@ -13,6 +13,7 @@ declare const _default: {
13
13
  ellipsis: string;
14
14
  plus: string;
15
15
  minus: string;
16
+ external: string;
16
17
  };
17
18
  };
18
19
  export default _default;
@@ -13,6 +13,7 @@ export default {
13
13
  chevronDoubleRight: "i-mdi-chevron-double-right",
14
14
  ellipsis: "i-mdi-dots-horizontal",
15
15
  plus: "i-mdi-plus",
16
- minus: "i-mdi-minus"
16
+ minus: "i-mdi-minus",
17
+ external: "i-mdi-arrow-top-right"
17
18
  }
18
19
  };
@@ -5,8 +5,8 @@ export default ct(
5
5
  slots: {
6
6
  root: "inline-flex items-center justify-center shrink-0 select-none overflow-hidden rounded-full align-middle bg-soft-ui-cb/10",
7
7
  image: "size-full rounded-inherit object-cover",
8
- fallback: "leading-none color-ui-cb/60 truncate",
9
- icon: "size-3/4 color-ui-cb/60 shrink-0"
8
+ fallback: "leading-none color-ui-base/60 truncate",
9
+ icon: "size-3/4 color-ui-base/60 shrink-0"
10
10
  },
11
11
  variants: {
12
12
  size: {
@@ -50,55 +50,31 @@ declare const _default: {
50
50
  };
51
51
  };
52
52
  };
53
- compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
54
- size: {
55
- xs: {
56
- root: string;
57
- };
58
- sm: {
59
- root: string;
60
- };
61
- md: {
62
- root: string;
63
- };
64
- lg: {
65
- root: string;
66
- };
67
- xl: {
68
- root: string;
69
- };
70
- };
71
- position: {
72
- 'top-right': {
73
- base: string;
74
- };
75
- 'bottom-right': {
76
- base: string;
77
- };
78
- 'top-left': {
79
- base: string;
80
- };
81
- 'bottom-left': {
82
- base: string;
83
- };
53
+ compoundVariants: ({
54
+ position: "top-right";
55
+ inset: false;
56
+ class: {
57
+ base: string;
84
58
  };
85
- show: {
86
- true: {
87
- base: string;
88
- };
59
+ } | {
60
+ position: "bottom-right";
61
+ inset: false;
62
+ class: {
63
+ base: string;
89
64
  };
90
- inset: {
91
- true: "";
65
+ } | {
66
+ position: "top-left";
67
+ inset: false;
68
+ class: {
69
+ base: string;
92
70
  };
93
- standalone: {
94
- false: {
95
- base: string;
96
- };
71
+ } | {
72
+ position: "bottom-left";
73
+ inset: false;
74
+ class: {
75
+ base: string;
97
76
  };
98
- }, {
99
- root: string;
100
- base: string[];
101
- }, undefined>;
77
+ })[];
102
78
  defaultVariants: {
103
79
  size: "md";
104
80
  };
@@ -29,9 +29,9 @@ declare const _default: {
29
29
  };
30
30
  };
31
31
  compoundVariants: {
32
- disabled: boolean;
33
- active: boolean;
34
- to: boolean;
32
+ disabled: false;
33
+ active: false;
34
+ to: true;
35
35
  class: {
36
36
  link: string;
37
37
  };
@@ -6,19 +6,19 @@ export default ct(
6
6
  root: "relative min-w-0",
7
7
  list: "flex items-center gap-1.5",
8
8
  item: "flex min-w-0",
9
- link: "group relative flex items-center gap-1.5 text-sm min-w-0 focus-visible:outline-ui-cp",
9
+ link: "group relative flex items-center gap-1.5 text-sm min-w-0 focus-visible:outline-ui-primary",
10
10
  linkLeadingIcon: "shrink-0 size-5",
11
11
  linkLabel: "truncate",
12
12
  separator: "flex",
13
- separatorIcon: "shrink-0 size-5 color-ui-cb/60"
13
+ separatorIcon: "shrink-0 size-5 color-ui-base/60"
14
14
  },
15
15
  variants: {
16
16
  active: {
17
17
  true: {
18
- link: "text-ui-cp font-semibold"
18
+ link: "color-ui-primary font-semibold"
19
19
  },
20
20
  false: {
21
- link: "color-ui-cb/60 font-medium"
21
+ link: "color-ui-base/60 font-medium"
22
22
  }
23
23
  },
24
24
  disabled: {
@@ -36,7 +36,7 @@ export default ct(
36
36
  active: false,
37
37
  to: true,
38
38
  class: {
39
- link: "hover:color-ui-cb/80 transition-colors"
39
+ link: "hover:color-ui-base/80 transition-colors"
40
40
  }
41
41
  }
42
42
  ]
@@ -65,70 +65,124 @@ declare const _default: {
65
65
  };
66
66
  };
67
67
  };
68
- compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
69
- variant: {
70
- solid: {
71
- base: string[];
72
- };
73
- outline: {
74
- base: string[];
75
- };
76
- soft: {
77
- base: string[];
78
- };
79
- 'soft-outline': {
80
- base: string[];
81
- };
82
- ghost: {
83
- base: string[];
84
- };
85
- link: {
86
- base: string[];
87
- };
68
+ compoundVariants: ({
69
+ size: ("xs" | "sm" | "md")[];
70
+ class: {
71
+ base: string;
72
+ label: string;
73
+ leadingIcon?: undefined;
74
+ trailingIcon?: undefined;
88
75
  };
89
- size: {
90
- xs: {
91
- base: string;
92
- };
93
- sm: {
94
- base: string;
95
- };
96
- md: {
97
- base: string;
98
- };
99
- lg: {
100
- base: string;
101
- };
102
- xl: {
103
- base: string;
104
- };
76
+ active?: undefined;
77
+ variant?: undefined;
78
+ loading?: undefined;
79
+ leading?: undefined;
80
+ trailing?: undefined;
81
+ } | {
82
+ size: ("lg" | "xl")[];
83
+ class: {
84
+ base: string;
85
+ label: string;
86
+ leadingIcon?: undefined;
87
+ trailingIcon?: undefined;
105
88
  };
106
- active: {
107
- true: "";
89
+ active?: undefined;
90
+ variant?: undefined;
91
+ loading?: undefined;
92
+ leading?: undefined;
93
+ trailing?: undefined;
94
+ } | {
95
+ active: true;
96
+ variant: "solid";
97
+ class: {
98
+ base: string;
99
+ label?: undefined;
100
+ leadingIcon?: undefined;
101
+ trailingIcon?: undefined;
108
102
  };
109
- leading: {
110
- true: "";
103
+ size?: undefined;
104
+ loading?: undefined;
105
+ leading?: undefined;
106
+ trailing?: undefined;
107
+ } | {
108
+ active: true;
109
+ variant: "outline";
110
+ class: {
111
+ base: string;
112
+ label?: undefined;
113
+ leadingIcon?: undefined;
114
+ trailingIcon?: undefined;
111
115
  };
112
- trailing: {
113
- true: "";
116
+ size?: undefined;
117
+ loading?: undefined;
118
+ leading?: undefined;
119
+ trailing?: undefined;
120
+ } | {
121
+ active: true;
122
+ variant: ("soft" | "soft-outline")[];
123
+ class: {
124
+ base: string;
125
+ label?: undefined;
126
+ leadingIcon?: undefined;
127
+ trailingIcon?: undefined;
114
128
  };
115
- loading: {
116
- true: "";
129
+ size?: undefined;
130
+ loading?: undefined;
131
+ leading?: undefined;
132
+ trailing?: undefined;
133
+ } | {
134
+ active: true;
135
+ variant: "ghost";
136
+ class: {
137
+ base: string;
138
+ label?: undefined;
139
+ leadingIcon?: undefined;
140
+ trailingIcon?: undefined;
117
141
  };
118
- groupOrientation: {
119
- horizontal: {
120
- base: string;
121
- };
122
- vertical: {
123
- base: string;
124
- };
142
+ size?: undefined;
143
+ loading?: undefined;
144
+ leading?: undefined;
145
+ trailing?: undefined;
146
+ } | {
147
+ active: true;
148
+ variant: "link";
149
+ class: {
150
+ base: string;
151
+ label?: undefined;
152
+ leadingIcon?: undefined;
153
+ trailingIcon?: undefined;
125
154
  };
126
- }, {
127
- base: string[];
128
- label: string;
129
- leadingIcon: string;
130
- trailingIcon: string;
131
- }, undefined>;
155
+ size?: undefined;
156
+ loading?: undefined;
157
+ leading?: undefined;
158
+ trailing?: undefined;
159
+ } | {
160
+ loading: true;
161
+ leading: true;
162
+ class: {
163
+ leadingIcon: string;
164
+ base?: undefined;
165
+ label?: undefined;
166
+ trailingIcon?: undefined;
167
+ };
168
+ size?: undefined;
169
+ active?: undefined;
170
+ variant?: undefined;
171
+ trailing?: undefined;
172
+ } | {
173
+ loading: true;
174
+ leading: false;
175
+ trailing: true;
176
+ class: {
177
+ trailingIcon: string;
178
+ base?: undefined;
179
+ label?: undefined;
180
+ leadingIcon?: undefined;
181
+ };
182
+ size?: undefined;
183
+ active?: undefined;
184
+ variant?: undefined;
185
+ })[];
132
186
  defaultVariants: {
133
187
  size: "md";
134
188
  };
@@ -6,7 +6,7 @@ export default ct(
6
6
  slots: {
7
7
  base: [
8
8
  "relative inline-flex items-center rounded-ui-button leading-normal transition-colors",
9
- "outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-cb/80",
9
+ "outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-base/80",
10
10
  "disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-50 aria-disabled:opacity-50"
11
11
  ],
12
12
  label: "color-inherit",
@@ -26,26 +26,26 @@ export default ct(
26
26
  },
27
27
  "outline": {
28
28
  base: [
29
- "color-ui-fill/80 bg-ui-cx ring ring-inset ring-ui-fill/30",
29
+ "color-ui-fill/80 bg-ui-base ring ring-inset ring-ui-fill/30",
30
30
  "hover:bg-soft-ui-fill/5 active:bg-soft-ui-fill/10",
31
- "disabled:bg-ui-cx aria-disabled:bg-ui-cx",
32
- "hover:disabled:bg-ui-cx hover:aria-disabled:bg-ui-cx"
31
+ "disabled:bg-ui-base aria-disabled:bg-ui-base",
32
+ "hover:disabled:bg-ui-base hover:aria-disabled:bg-ui-base"
33
33
  ]
34
34
  },
35
35
  "soft": {
36
36
  base: [
37
- "color-ui-content/80 bg-soft-ui-fill/15",
38
- "hover:bg-soft-ui-fill/10 hover:color-ui-content/80 active:bg-soft-ui-fill/25 active:color-ui-content/90",
39
- "disabled:bg-soft-ui-fill/15 aria-disabled:bg-soft-ui-fill/15 disabled:color-ui-content/80 aria-disabled:color-ui-content/80",
40
- "hover:disabled:bg-soft-ui-fill/15 hover:aria-disabled:bg-soft-ui-fill/15 hover:disabled:color-ui-content/80 hover:aria-disabled:color-ui-content/80"
37
+ "color-ui-fill/80 bg-soft-ui-fill/15",
38
+ "hover:bg-soft-ui-fill/10 hover:color-ui-fill/80 active:bg-soft-ui-fill/25 active:color-ui-fill/90",
39
+ "disabled:bg-soft-ui-fill/15 aria-disabled:bg-soft-ui-fill/15 disabled:color-ui-fill/80 aria-disabled:color-ui-fill/80",
40
+ "hover:disabled:bg-soft-ui-fill/15 hover:aria-disabled:bg-soft-ui-fill/15 hover:disabled:color-ui-fill/80 hover:aria-disabled:color-ui-fill/80"
41
41
  ]
42
42
  },
43
43
  "soft-outline": {
44
44
  base: [
45
- "color-ui-content/80 bg-soft-ui-fill/15 ring ring-inset ring-ui-fill/30",
46
- "hover:bg-soft-ui-fill/10 hover:color-ui-content/80 active:bg-soft-ui-fill/25 active:color-ui-content/90",
47
- "disabled:bg-soft-ui-fill/15 aria-disabled:bg-soft-ui-fill/15 disabled:color-ui-content/80 aria-disabled:color-ui-content/80",
48
- "hover:disabled:bg-soft-ui-fill/15 hover:aria-disabled:bg-soft-ui-fill/15 hover:disabled:color-ui-content/80 hover:aria-disabled:color-ui-content/80"
45
+ "color-ui-fill/80 bg-soft-ui-fill/15 ring ring-inset ring-ui-fill/30",
46
+ "hover:bg-soft-ui-fill/10 hover:color-ui-fill/80 active:bg-soft-ui-fill/25 active:color-ui-fill/90",
47
+ "disabled:bg-soft-ui-fill/15 aria-disabled:bg-soft-ui-fill/15 disabled:color-ui-fill/80 aria-disabled:color-ui-fill/80",
48
+ "hover:disabled:bg-soft-ui-fill/15 hover:aria-disabled:bg-soft-ui-fill/15 hover:disabled:color-ui-fill/80 hover:aria-disabled:color-ui-fill/80"
49
49
  ]
50
50
  },
51
51
  "ghost": {
@@ -128,7 +128,7 @@ export default ct(
128
128
  active: true,
129
129
  variant: ["soft", "soft-outline"],
130
130
  class: {
131
- base: "color-ui-content/90 bg-soft-ui-fill/25 hover:color-ui-content/90 hover:bg-soft-ui-fill/25"
131
+ base: "color-ui-fill/90 bg-soft-ui-fill/25 hover:color-ui-fill/90 hover:bg-soft-ui-fill/25"
132
132
  }
133
133
  },
134
134
  {