@byyuurin/ui 0.2.0 → 0.4.0

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 (137) hide show
  1. package/README.md +5 -3
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +2 -2
  4. package/dist/runtime/components/Accordion.vue +2 -2
  5. package/dist/runtime/components/Accordion.vue.d.ts +11 -7
  6. package/dist/runtime/components/Alert.vue +2 -1
  7. package/dist/runtime/components/Alert.vue.d.ts +4 -4
  8. package/dist/runtime/components/App.vue +2 -1
  9. package/dist/runtime/components/App.vue.d.ts +11 -7
  10. package/dist/runtime/components/Avatar.vue +2 -1
  11. package/dist/runtime/components/Avatar.vue.d.ts +4 -3
  12. package/dist/runtime/components/AvatarGroup.vue +2 -1
  13. package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
  14. package/dist/runtime/components/Badge.vue +4 -3
  15. package/dist/runtime/components/Badge.vue.d.ts +2 -2
  16. package/dist/runtime/components/Breadcrumb.vue +2 -2
  17. package/dist/runtime/components/Breadcrumb.vue.d.ts +10 -6
  18. package/dist/runtime/components/Button.vue +8 -8
  19. package/dist/runtime/components/Button.vue.d.ts +1 -1
  20. package/dist/runtime/components/Calendar.vue +2 -1
  21. package/dist/runtime/components/Calendar.vue.d.ts +16 -12
  22. package/dist/runtime/components/Card.vue +2 -1
  23. package/dist/runtime/components/Card.vue.d.ts +1 -1
  24. package/dist/runtime/components/Carousel.vue +2 -1
  25. package/dist/runtime/components/Carousel.vue.d.ts +14 -10
  26. package/dist/runtime/components/Checkbox.vue +4 -2
  27. package/dist/runtime/components/Checkbox.vue.d.ts +4 -3
  28. package/dist/runtime/components/CheckboxGroup.vue +4 -3
  29. package/dist/runtime/components/CheckboxGroup.vue.d.ts +11 -7
  30. package/dist/runtime/components/Chip.vue +5 -1
  31. package/dist/runtime/components/Chip.vue.d.ts +2 -2
  32. package/dist/runtime/components/Collapsible.vue +2 -1
  33. package/dist/runtime/components/Collapsible.vue.d.ts +2 -2
  34. package/dist/runtime/components/Drawer.vue +2 -1
  35. package/dist/runtime/components/Drawer.vue.d.ts +6 -6
  36. package/dist/runtime/components/DropdownMenu.vue +3 -3
  37. package/dist/runtime/components/DropdownMenu.vue.d.ts +17 -9
  38. package/dist/runtime/components/DropdownMenuContent.vue +11 -12
  39. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +11 -7
  40. package/dist/runtime/components/FieldGroup.vue +2 -1
  41. package/dist/runtime/components/FieldGroup.vue.d.ts +2 -2
  42. package/dist/runtime/components/FileUpload.vue +267 -0
  43. package/dist/runtime/components/FileUpload.vue.d.ts +178 -0
  44. package/dist/runtime/components/Form.vue +2 -1
  45. package/dist/runtime/components/Form.vue.d.ts +13 -8
  46. package/dist/runtime/components/FormField.vue +6 -4
  47. package/dist/runtime/components/FormField.vue.d.ts +7 -2
  48. package/dist/runtime/components/Icon.vue.d.ts +1 -1
  49. package/dist/runtime/components/Input.vue +4 -4
  50. package/dist/runtime/components/Input.vue.d.ts +16 -12
  51. package/dist/runtime/components/InputNumber.vue +3 -2
  52. package/dist/runtime/components/InputNumber.vue.d.ts +128 -124
  53. package/dist/runtime/components/InputTags.vue +2 -1
  54. package/dist/runtime/components/InputTags.vue.d.ts +16 -11
  55. package/dist/runtime/components/Kbd.vue +2 -1
  56. package/dist/runtime/components/Kbd.vue.d.ts +2 -2
  57. package/dist/runtime/components/Link.vue +5 -3
  58. package/dist/runtime/components/Link.vue.d.ts +16 -6
  59. package/dist/runtime/components/LinkBase.vue.d.ts +2 -2
  60. package/dist/runtime/components/Marquee.vue +2 -1
  61. package/dist/runtime/components/Marquee.vue.d.ts +3 -3
  62. package/dist/runtime/components/Modal.vue +3 -2
  63. package/dist/runtime/components/Modal.vue.d.ts +6 -6
  64. package/dist/runtime/components/NavigationMenu.vue +2 -2
  65. package/dist/runtime/components/NavigationMenu.vue.d.ts +11 -7
  66. package/dist/runtime/components/Pagination.vue +2 -1
  67. package/dist/runtime/components/Pagination.vue.d.ts +4 -4
  68. package/dist/runtime/components/PinInput.vue +4 -4
  69. package/dist/runtime/components/PinInput.vue.d.ts +14 -10
  70. package/dist/runtime/components/Popover.vue +1 -1
  71. package/dist/runtime/components/Popover.vue.d.ts +11 -7
  72. package/dist/runtime/components/Progress.vue +2 -1
  73. package/dist/runtime/components/Progress.vue.d.ts +2 -2
  74. package/dist/runtime/components/RadioGroup.vue +3 -3
  75. package/dist/runtime/components/RadioGroup.vue.d.ts +11 -7
  76. package/dist/runtime/components/ScrollArea.vue +2 -1
  77. package/dist/runtime/components/ScrollArea.vue.d.ts +2 -2
  78. package/dist/runtime/components/Select.vue +282 -131
  79. package/dist/runtime/components/Select.vue.d.ts +103 -123
  80. package/dist/runtime/components/Separator.vue +2 -1
  81. package/dist/runtime/components/Separator.vue.d.ts +2 -2
  82. package/dist/runtime/components/Skeleton.vue +2 -1
  83. package/dist/runtime/components/Skeleton.vue.d.ts +2 -2
  84. package/dist/runtime/components/Slider.vue +2 -1
  85. package/dist/runtime/components/Slider.vue.d.ts +11 -7
  86. package/dist/runtime/components/Stepper.vue +117 -0
  87. package/dist/runtime/components/Stepper.vue.d.ts +83 -0
  88. package/dist/runtime/components/Switch.vue +3 -4
  89. package/dist/runtime/components/Switch.vue.d.ts +4 -3
  90. package/dist/runtime/components/Table.vue +2 -1
  91. package/dist/runtime/components/Table.vue.d.ts +13 -8
  92. package/dist/runtime/components/Tabs.vue +2 -2
  93. package/dist/runtime/components/Tabs.vue.d.ts +12 -8
  94. package/dist/runtime/components/Textarea.vue +3 -3
  95. package/dist/runtime/components/Textarea.vue.d.ts +16 -11
  96. package/dist/runtime/components/Timeline.vue +2 -1
  97. package/dist/runtime/components/Timeline.vue.d.ts +11 -7
  98. package/dist/runtime/components/Toast.vue +2 -1
  99. package/dist/runtime/components/Toast.vue.d.ts +5 -5
  100. package/dist/runtime/components/ToastProvider.vue +2 -2
  101. package/dist/runtime/components/ToastProvider.vue.d.ts +3 -3
  102. package/dist/runtime/components/Tooltip.vue +4 -4
  103. package/dist/runtime/components/Tooltip.vue.d.ts +2 -2
  104. package/dist/runtime/components/Tree.vue +241 -0
  105. package/dist/runtime/components/Tree.vue.d.ts +121 -0
  106. package/dist/runtime/composables/defineShortcuts.d.ts +1 -0
  107. package/dist/runtime/composables/defineShortcuts.js +44 -8
  108. package/dist/runtime/composables/useFileUpload.d.ts +19 -0
  109. package/dist/runtime/composables/useFileUpload.js +79 -0
  110. package/dist/runtime/composables/useLocale.d.ts +18 -0
  111. package/dist/runtime/locale/en.d.ts +9 -0
  112. package/dist/runtime/locale/en.js +9 -0
  113. package/dist/runtime/locale/zh_tw.d.ts +9 -0
  114. package/dist/runtime/locale/zh_tw.js +9 -0
  115. package/dist/runtime/types/html.d.ts +8 -0
  116. package/dist/runtime/types/html.js +0 -0
  117. package/dist/runtime/types/index.d.ts +3 -0
  118. package/dist/runtime/types/index.js +3 -0
  119. package/dist/runtime/types/input.d.ts +5 -5
  120. package/dist/runtime/types/locale.d.ts +9 -0
  121. package/dist/runtime/types/utils.d.ts +4 -4
  122. package/dist/runtime/utils/index.d.ts +3 -3
  123. package/dist/runtime/utils/link.d.ts +2 -1
  124. package/dist/runtime/utils/link.js +40 -29
  125. package/dist/runtime/vue/components/Icon.vue.d.ts +1 -1
  126. package/dist/runtime/vue/components/Link.vue +7 -12
  127. package/dist/runtime/vue/components/Link.vue.d.ts +11 -40
  128. package/dist/setup.d.mts +1 -1
  129. package/dist/shared/{ui.DpbffTXs.d.mts → ui.CGCKYv7g.d.mts} +6 -2
  130. package/dist/shared/{ui.CzIlLITK.mjs → ui.DYMXCXO6.mjs} +9 -5
  131. package/dist/shared/{ui.DLOxhmP0.mjs → ui.DcEKQd0n.mjs} +490 -20
  132. package/dist/unocss.mjs +1 -1
  133. package/dist/unplugin.d.mts +1 -1
  134. package/dist/unplugin.mjs +2 -2
  135. package/dist/vite.d.mts +1 -1
  136. package/dist/vite.mjs +2 -2
  137. package/package.json +31 -31
@@ -40,13 +40,13 @@ export interface MarqueeProps extends ComponentBaseProps {
40
40
  export interface MarqueeSlots {
41
41
  default: StaticSlot;
42
42
  }
43
+ declare const _default: typeof __VLS_export;
44
+ export default _default;
43
45
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<MarqueeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MarqueeProps> & Readonly<{}>, {
44
- overlay: boolean;
45
46
  repeat: number;
46
47
  orientation: "horizontal" | "vertical";
48
+ overlay: boolean;
47
49
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, MarqueeSlots>;
48
- declare const _default: typeof __VLS_export;
49
- export default _default;
50
50
  type __VLS_WithSlots<T, S> = T & {
51
51
  new (): {
52
52
  $slots: S;
@@ -9,6 +9,7 @@ import { computed, toRef } from "vue";
9
9
  import { useAppConfig } from "#imports";
10
10
  import { useLocale } from "../composables/useLocale";
11
11
  import { usePortal } from "../composables/usePortal";
12
+ import { pick } from "../utils";
12
13
  import { cv, merge } from "../utils/style";
13
14
  import Button from "./Button.vue";
14
15
  const props = defineProps({
@@ -52,7 +53,7 @@ const { t } = useLocale();
52
53
  const appConfig = useAppConfig();
53
54
  const ui = computed(() => {
54
55
  const styler = cv(merge(theme, appConfig.ui.modal));
55
- return styler(props);
56
+ return styler(pick(props, ["transition", "fullscreen", "overlay"]));
56
57
  });
57
58
  </script>
58
59
 
@@ -100,7 +101,7 @@ const ui = computed(() => {
100
101
  variant="ghost"
101
102
  color="neutral"
102
103
  :icon="props.closeIcon || appConfig.ui.icons.close"
103
- v-bind="typeof props.close === 'boolean' ? {} : props.close"
104
+ v-bind="typeof props.close === 'object' ? props.close : {}"
104
105
  :aria-label="t('modal.close')"
105
106
  :class="ui.close({ class: props.ui?.close })"
106
107
  data-part="close"
@@ -1,6 +1,6 @@
1
1
  import type { DialogContentEmits, DialogContentProps, DialogRootEmits, DialogRootProps } from 'reka-ui';
2
2
  import theme from '#build/ui/modal';
3
- import type { ButtonProps, ComponentBaseProps, ComponentStyler, ComponentUIProps, IconProps } from '../types';
3
+ import type { ButtonProps, ComponentBaseProps, ComponentStyler, ComponentUIProps, IconProps, LinkPropsKeys } from '../types';
4
4
  import type { EmitsToProps, StaticSlot } from '../types/utils';
5
5
  export interface ModalProps extends ComponentBaseProps, DialogRootProps {
6
6
  title?: string;
@@ -31,7 +31,7 @@ export interface ModalProps extends ComponentBaseProps, DialogRootProps {
31
31
  * Display a close button to dismiss the modal.
32
32
  * @default true
33
33
  */
34
- close?: boolean | Partial<ButtonProps>;
34
+ close?: boolean | Omit<ButtonProps, LinkPropsKeys>;
35
35
  /** @default app.icons.close */
36
36
  closeIcon?: IconProps['name'];
37
37
  /**
@@ -69,6 +69,8 @@ export interface ModalSlots {
69
69
  close: () => void;
70
70
  }>;
71
71
  }
72
+ declare const _default: typeof __VLS_export;
73
+ export default _default;
72
74
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
73
75
  "update:open": (value: boolean) => any;
74
76
  "after-leave": () => any;
@@ -80,15 +82,13 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ModalP
80
82
  "onAfter-enter"?: (() => any) | undefined;
81
83
  "onClose-prevent"?: (() => any) | undefined;
82
84
  }>, {
83
- overlay: boolean;
84
- close: boolean | Partial<ButtonProps>;
85
+ close: boolean | Omit<ButtonProps, LinkPropsKeys>;
85
86
  transition: boolean;
87
+ overlay: boolean;
86
88
  modal: boolean;
87
89
  portal: boolean | string | HTMLElement;
88
90
  dismissible: boolean;
89
91
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ModalSlots>;
90
- declare const _default: typeof __VLS_export;
91
- export default _default;
92
92
  type __VLS_WithSlots<T, S> = T & {
93
93
  new (): {
94
94
  $slots: S;
@@ -8,7 +8,7 @@ import { defu } from "defu";
8
8
  import { AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, useForwardPropsEmits } from "reka-ui";
9
9
  import { computed, toRef } from "vue";
10
10
  import { useAppConfig } from "#imports";
11
- import { get, isArrayOfArray, pickLinkProps } from "../utils";
11
+ import { get, isArrayOfArray, pick, pickLinkProps } from "../utils";
12
12
  import { cv, merge } from "../utils/style";
13
13
  import Avatar from "./Avatar.vue";
14
14
  import Badge from "./Badge.vue";
@@ -80,7 +80,7 @@ const appConfig = useAppConfig();
80
80
  const ui = computed(() => {
81
81
  const styler = cv(merge(theme, appConfig.ui.navigationMenu));
82
82
  return styler({
83
- ...props,
83
+ ...pick(props, ["orientation", "collapsed", "color", "variant", "highlight"]),
84
84
  contentOrientation: props.orientation === "vertical" ? void 0 : props.contentOrientation,
85
85
  highlightColor: props.highlightColor || props.color
86
86
  });
@@ -198,10 +198,14 @@ export type NavigationMenuSlots<A extends ArrayOrNested<NavigationMenuItem> = Ar
198
198
  active: boolean;
199
199
  ui: ComponentStyler<typeof theme>;
200
200
  }>;
201
- declare const __VLS_export: <T extends ArrayOrNested<NavigationMenuItem>, K extends SingleOrMultipleType = SingleOrMultipleType, O extends Orientation = Orientation>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
202
- props: __VLS_PrettifyLocal<NavigationMenuProps<T, K, O> & {
201
+ declare const _default: typeof __VLS_export;
202
+ export default _default;
203
+ declare const __VLS_export: <T extends ArrayOrNested<NavigationMenuItem>, K extends SingleOrMultipleType = SingleOrMultipleType, O extends Orientation = Orientation>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
204
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<NavigationMenuProps<T, K, O> & {
203
205
  "onUpdate:modelValue"?: ((value: NavigationMenuModelValue<K, O> | undefined) => any) | undefined;
204
- }> & import("vue").PublicProps;
206
+ }> & (typeof globalThis extends {
207
+ __VLS_PROPS_FALLBACK: infer P;
208
+ } ? P : {});
205
209
  expose: (exposed: {}) => void;
206
210
  attrs: any;
207
211
  slots: NavigationMenuSlots<T, NestedItem<T>>;
@@ -209,8 +213,8 @@ declare const __VLS_export: <T extends ArrayOrNested<NavigationMenuItem>, K exte
209
213
  }>) => import("vue").VNode & {
210
214
  __ctx?: Awaited<typeof __VLS_setup>;
211
215
  };
212
- declare const _default: typeof __VLS_export;
213
- export default _default;
214
- type __VLS_PrettifyLocal<T> = {
216
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
217
+ [K in keyof T]: T[K];
218
+ } : {
215
219
  [K in keyof T as K]: T[K];
216
- } & {};
220
+ }) & {};
@@ -8,6 +8,7 @@ import { PaginationEllipsis, PaginationFirst, PaginationLast, PaginationList, Pa
8
8
  import { computed } from "vue";
9
9
  import { useAppConfig } from "#imports";
10
10
  import { useLocale } from "../composables/useLocale";
11
+ import { pick } from "../utils";
11
12
  import { cv, merge } from "../utils/style";
12
13
  import Button from "./Button.vue";
13
14
  const props = defineProps({
@@ -41,7 +42,7 @@ const { dir } = useLocale();
41
42
  const appConfig = useAppConfig();
42
43
  const ui = computed(() => {
43
44
  const styler = cv(merge(theme, appConfig.ui.pagination));
44
- return styler(props);
45
+ return styler(pick(props, []));
45
46
  });
46
47
  const firstIcon = computed(() => props.firstIcon || (dir.value === "rtl" ? appConfig.ui.icons.chevronDoubleRight : appConfig.ui.icons.chevronDoubleLeft));
47
48
  const prevIcon = computed(() => props.prevIcon || (dir.value === "rtl" ? appConfig.ui.icons.chevronRight : appConfig.ui.icons.chevronLeft));
@@ -92,23 +92,23 @@ export interface PaginationSlots {
92
92
  index: number;
93
93
  }>;
94
94
  }
95
+ declare const _default: typeof __VLS_export;
96
+ export default _default;
95
97
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<PaginationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
96
98
  "update:page": (value: number) => any;
97
99
  }, string, import("vue").PublicProps, Readonly<PaginationProps> & Readonly<{
98
100
  "onUpdate:page"?: ((value: number) => any) | undefined;
99
101
  }>, {
100
- color: "error" | "info" | "primary" | "secondary" | "success" | "warning" | "neutral";
102
+ color: "error" | "primary" | "secondary" | "success" | "info" | "warning" | "neutral";
101
103
  variant: "link" | "solid" | "outline" | "soft" | "subtle" | "ghost";
102
104
  activeVariant: "link" | "solid" | "outline" | "soft" | "subtle" | "ghost";
103
- activeColor: "error" | "info" | "primary" | "secondary" | "success" | "warning" | "neutral";
105
+ activeColor: "error" | "primary" | "secondary" | "success" | "info" | "warning" | "neutral";
104
106
  itemsPerPage: number;
105
107
  showEdges: boolean;
106
108
  siblingCount: number;
107
109
  total: number;
108
110
  showControls: boolean;
109
111
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PaginationSlots>;
110
- declare const _default: typeof __VLS_export;
111
- export default _default;
112
112
  type __VLS_WithSlots<T, S> = T & {
113
113
  new (): {
114
114
  $slots: S;
@@ -8,7 +8,7 @@ import { PinInputInput, PinInputRoot, useForwardPropsEmits } from "reka-ui";
8
8
  import { computed, onMounted, ref } from "vue";
9
9
  import { useAppConfig } from "#imports";
10
10
  import { useFormField } from "../composables/useFormField";
11
- import { looseToNumber } from "../utils";
11
+ import { looseToNumber, pick } from "../utils";
12
12
  import { cv, merge } from "../utils/style";
13
13
  const props = defineProps({
14
14
  as: { type: null, required: false },
@@ -21,7 +21,7 @@ const props = defineProps({
21
21
  highlight: { type: Boolean, required: false },
22
22
  ui: { type: null, required: false },
23
23
  class: { type: [Object, String, Number, Boolean, null, Array], required: false, skipCheck: true },
24
- defaultValue: { type: Array, required: false },
24
+ defaultValue: { type: null, required: false },
25
25
  disabled: { type: Boolean, required: false },
26
26
  id: { type: String, required: false },
27
27
  mask: { type: Boolean, required: false },
@@ -39,9 +39,9 @@ const appConfig = useAppConfig();
39
39
  const ui = computed(() => {
40
40
  const styler = cv(merge(theme, appConfig.ui.pinInput));
41
41
  return styler({
42
- ...props,
43
- size: size.value,
42
+ ...pick(props, ["variant"]),
44
43
  color: color.value,
44
+ size: size.value,
45
45
  highlight: highlight.value
46
46
  });
47
47
  });
@@ -1,6 +1,6 @@
1
- import type { ComponentPublicInstance } from 'vue';
2
1
  import type { VariantProps } from '@byyuurin/ui-kit';
3
2
  import type { PinInputRootEmits, PinInputRootProps } from 'reka-ui';
3
+ import type { ComponentPublicInstance } from 'vue';
4
4
  import theme from '#build/ui/pin-input';
5
5
  import type { ComponentBaseProps, ComponentUIProps } from '../types';
6
6
  type PinInputType = 'text' | 'number';
@@ -31,24 +31,28 @@ export type PinInputEmits<T extends PinInputType = 'text'> = PinInputRootEmits<T
31
31
  change: [event: Event];
32
32
  blur: [event: Event];
33
33
  };
34
- declare const __VLS_export: <T extends PinInputType = "text" | "number">(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
35
- props: __VLS_PrettifyLocal<PinInputProps<T> & {
36
- onChange?: ((event: Event) => any) | undefined;
34
+ declare const _default: typeof __VLS_export;
35
+ export default _default;
36
+ declare const __VLS_export: <T extends PinInputType = "text" | "number">(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
37
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<PinInputProps<T> & {
37
38
  onBlur?: ((event: Event) => any) | undefined;
39
+ onChange?: ((event: Event) => any) | undefined;
38
40
  "onUpdate:modelValue"?: ((value: [T] extends ["number"] ? number[] : string[]) => any) | undefined;
39
41
  onComplete?: ((value: [T] extends ["number"] ? number[] : string[]) => any) | undefined;
40
- }> & import("vue").PublicProps;
42
+ }> & (typeof globalThis extends {
43
+ __VLS_PROPS_FALLBACK: infer P;
44
+ } ? P : {});
41
45
  expose: (exposed: import("vue").ShallowUnwrapRef<{
42
46
  inputsRef: import("vue").Ref<ComponentPublicInstance[], ComponentPublicInstance[]>;
43
47
  }>) => void;
44
48
  attrs: any;
45
49
  slots: {};
46
- emit: ((evt: "change", event: Event) => void) & ((evt: "blur", event: Event) => void) & ((evt: "update:modelValue", value: [T] extends ["number"] ? number[] : string[]) => void) & ((evt: "complete", value: [T] extends ["number"] ? number[] : string[]) => void);
50
+ emit: ((evt: "blur", event: Event) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: [T] extends ["number"] ? number[] : string[]) => void) & ((evt: "complete", value: [T] extends ["number"] ? number[] : string[]) => void);
47
51
  }>) => import("vue").VNode & {
48
52
  __ctx?: Awaited<typeof __VLS_setup>;
49
53
  };
50
- declare const _default: typeof __VLS_export;
51
- export default _default;
52
- type __VLS_PrettifyLocal<T> = {
54
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
55
+ [K in keyof T]: T[K];
56
+ } : {
53
57
  [K in keyof T as K]: T[K];
54
- } & {};
58
+ }) & {};
@@ -49,7 +49,7 @@ const Component = computed(() => props.mode === "hover" ? HoverCard : Popover);
49
49
  const appConfig = useAppConfig();
50
50
  const ui = computed(() => {
51
51
  const styler = cv(merge(theme, appConfig.ui.popover));
52
- return styler(props);
52
+ return styler();
53
53
  });
54
54
  </script>
55
55
 
@@ -51,11 +51,15 @@ export interface PopoverSlots<M extends PopoverMode = PopoverMode> {
51
51
  close: () => void;
52
52
  }>;
53
53
  }
54
- declare const __VLS_export: <M extends PopoverMode>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
55
- props: __VLS_PrettifyLocal<PopoverProps<M> & {
54
+ declare const _default: typeof __VLS_export;
55
+ export default _default;
56
+ declare const __VLS_export: <M extends PopoverMode>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
57
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<PopoverProps<M> & {
56
58
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
57
59
  "onClose-prevent"?: (() => any) | undefined;
58
- }> & import("vue").PublicProps;
60
+ }> & (typeof globalThis extends {
61
+ __VLS_PROPS_FALLBACK: infer P;
62
+ } ? P : {});
59
63
  expose: (exposed: {}) => void;
60
64
  attrs: any;
61
65
  slots: PopoverSlots<M>;
@@ -63,8 +67,8 @@ declare const __VLS_export: <M extends PopoverMode>(__VLS_props: NonNullable<Awa
63
67
  }>) => import("vue").VNode & {
64
68
  __ctx?: Awaited<typeof __VLS_setup>;
65
69
  };
66
- declare const _default: typeof __VLS_export;
67
- export default _default;
68
- type __VLS_PrettifyLocal<T> = {
70
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
71
+ [K in keyof T]: T[K];
72
+ } : {
69
73
  [K in keyof T as K]: T[K];
70
- } & {};
74
+ }) & {};
@@ -8,6 +8,7 @@ import { Primitive, ProgressIndicator, ProgressRoot, useForwardPropsEmits } from
8
8
  import { computed } from "vue";
9
9
  import { useAppConfig } from "#imports";
10
10
  import { useLocale } from "../composables/useLocale";
11
+ import { pick } from "../utils";
11
12
  import { cv, merge } from "../utils/style";
12
13
  const props = defineProps({
13
14
  as: { type: null, required: false },
@@ -82,7 +83,7 @@ function stepVariant(index) {
82
83
  const appConfig = useAppConfig();
83
84
  const ui = computed(() => {
84
85
  const styler = cv(merge(theme, appConfig.ui.progress));
85
- return styler(props);
86
+ return styler(pick(props, ["animation", "size", "color", "orientation", "inverted"]));
86
87
  });
87
88
  </script>
88
89
 
@@ -43,6 +43,8 @@ export type ProgressSlots = {
43
43
  step: string | number;
44
44
  }>;
45
45
  };
46
+ declare const _default: typeof __VLS_export;
47
+ export default _default;
46
48
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ProgressProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
47
49
  "update:modelValue": (value: string[] | undefined) => any;
48
50
  "update:max": (value: number) => any;
@@ -54,8 +56,6 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Progre
54
56
  inverted: boolean;
55
57
  modelValue: number | null;
56
58
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProgressSlots>;
57
- declare const _default: typeof __VLS_export;
58
- export default _default;
59
59
  type __VLS_WithSlots<T, S> = T & {
60
60
  new (): {
61
61
  $slots: S;
@@ -8,7 +8,7 @@ import { Label, RadioGroupIndicator, RadioGroupItem as RekaRadioGroupItem, Radio
8
8
  import { computed, useId } from "vue";
9
9
  import { useAppConfig } from "#imports";
10
10
  import { useFormField } from "../composables/useFormField";
11
- import { get } from "../utils";
11
+ import { get, pick } from "../utils";
12
12
  import { cv, merge } from "../utils/style";
13
13
  const props = defineProps({
14
14
  as: { type: null, required: false },
@@ -40,9 +40,9 @@ const appConfig = useAppConfig();
40
40
  const ui = computed(() => {
41
41
  const styler = cv(merge(theme, appConfig.ui.radioGroup));
42
42
  return styler({
43
- ...props,
44
- color: color.value,
43
+ ...pick(props, ["required", "orientation", "variant", "indicator"]),
45
44
  size: size.value,
45
+ color: color.value,
46
46
  disabled: disabled.value
47
47
  });
48
48
  });
@@ -77,11 +77,15 @@ export interface RadioGroupSlots<T extends RadioGroupItem[] = RadioGroupItem[]>
77
77
  label: SlotProps<T>;
78
78
  description: SlotProps<T>;
79
79
  }
80
- declare const __VLS_export: <T extends RadioGroupItem[], VK extends GetItemKeys<T> = "value">(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
81
- props: __VLS_PrettifyLocal<RadioGroupProps<T, VK> & {
80
+ declare const _default: typeof __VLS_export;
81
+ export default _default;
82
+ declare const __VLS_export: <T extends RadioGroupItem[], VK extends GetItemKeys<T> = "value">(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
83
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<RadioGroupProps<T, VK> & {
82
84
  onChange?: ((event: Event) => any) | undefined;
83
85
  "onUpdate:modelValue"?: ((value: import("../types").GetItemValue<T, VK, NestedItem<T>>) => any) | undefined;
84
- }> & import("vue").PublicProps;
86
+ }> & (typeof globalThis extends {
87
+ __VLS_PROPS_FALLBACK: infer P;
88
+ } ? P : {});
85
89
  expose: (exposed: {}) => void;
86
90
  attrs: any;
87
91
  slots: RadioGroupSlots<T>;
@@ -89,8 +93,8 @@ declare const __VLS_export: <T extends RadioGroupItem[], VK extends GetItemKeys<
89
93
  }>) => import("vue").VNode & {
90
94
  __ctx?: Awaited<typeof __VLS_setup>;
91
95
  };
92
- declare const _default: typeof __VLS_export;
93
- export default _default;
94
- type __VLS_PrettifyLocal<T> = {
96
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
97
+ [K in keyof T]: T[K];
98
+ } : {
95
99
  [K in keyof T as K]: T[K];
96
- } & {};
100
+ }) & {};
@@ -7,6 +7,7 @@ import { reactivePick } from "@vueuse/core";
7
7
  import { ScrollAreaCorner, ScrollAreaRoot, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport } from "reka-ui";
8
8
  import { computed, ref } from "vue";
9
9
  import { useAppConfig } from "#imports";
10
+ import { pick } from "../utils";
10
11
  import { cv, merge } from "../utils/style";
11
12
  const props = defineProps({
12
13
  ui: { type: null, required: false },
@@ -20,7 +21,7 @@ const rootProps = reactivePick(props, "type", "dir", "scrollHideDelay");
20
21
  const appConfig = useAppConfig();
21
22
  const ui = computed(() => {
22
23
  const styler = cv(merge(theme, appConfig.ui.scrollArea));
23
- return styler(props);
24
+ return styler(pick(props, []));
24
25
  });
25
26
  defineExpose({
26
27
  scrollTop,
@@ -4,6 +4,8 @@ import type { ComponentBaseProps, ComponentUIProps } from '../types';
4
4
  export interface ScrollAreaProps extends ComponentBaseProps, Pick<ScrollAreaRootProps, 'type' | 'dir' | 'scrollHideDelay'> {
5
5
  ui?: ComponentUIProps<typeof theme>;
6
6
  }
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
7
9
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ScrollAreaProps, {
8
10
  scrollTop: () => void;
9
11
  scrollTopLeft: () => void;
@@ -12,8 +14,6 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Scroll
12
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
13
15
  default?: (props: {}) => any;
14
16
  }>;
15
- declare const _default: typeof __VLS_export;
16
- export default _default;
17
17
  type __VLS_WithSlots<T, S> = T & {
18
18
  new (): {
19
19
  $slots: S;