@wisemen/vue-core-components 1.5.6 → 1.7.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 (57) hide show
  1. package/dist/{AlertCircleIcon-B7QhXiWj.js → AlertCircleIcon-DWnaiKG4.js} +1 -1
  2. package/dist/{AlertTriangleIcon-CLSHiTCi.js → AlertTriangleIcon-DbswLYO7.js} +1 -1
  3. package/dist/{ArrowDownIcon-B0HQ8bZe.js → ArrowDownIcon-DSR27arK.js} +1 -1
  4. package/dist/{ArrowLeftIcon-_7FnlVUN.js → ArrowLeftIcon-eF2XMY64.js} +1 -1
  5. package/dist/{ArrowRightIcon-Cfp6R1Rk.js → ArrowRightIcon-Cgofu3ys.js} +1 -1
  6. package/dist/{ArrowUpIcon-C2eotFek.js → ArrowUpIcon-BCsmbxcL.js} +1 -1
  7. package/dist/{CalendarIcon-CuXDq8PR.js → CalendarIcon-CvmMQLIx.js} +1 -1
  8. package/dist/{CheckCircleIcon-BUL0Q25h.js → CheckCircleIcon-CMfQtF0H.js} +1 -1
  9. package/dist/{CheckIcon-CMVkR6Zv.js → CheckIcon-CABXzSU_.js} +1 -1
  10. package/dist/{ChevronLeftDoubleIcon-clynV8BT.js → ChevronLeftDoubleIcon-1EXfP15V.js} +1 -1
  11. package/dist/{ChevronLeftIcon-BXm9iSZG.js → ChevronLeftIcon-CvFypS-T.js} +1 -1
  12. package/dist/{ChevronRightDoubleIcon-BsqqG2CS.js → ChevronRightDoubleIcon-BMosx0v6.js} +1 -1
  13. package/dist/{ChevronRightIcon-D9-ziEq-.js → ChevronRightIcon-B6c-9a4O.js} +1 -1
  14. package/dist/{CloseIcon-LY_9T2Dj.js → CloseIcon-lL5BDQVA.js} +1 -1
  15. package/dist/{EyeIcon-WMji5ixf.js → EyeIcon-DE_B60Oc.js} +1 -1
  16. package/dist/{EyeOffIcon-BhRSNIca.js → EyeOffIcon-D81POEQt.js} +1 -1
  17. package/dist/{InfoCircleIcon-COHePsdK.js → InfoCircleIcon-IlGMVdcr.js} +1 -1
  18. package/dist/{MinusIcon-CZE725o9.js → MinusIcon-SOAYRofh.js} +1 -1
  19. package/dist/{PlusIcon-DB-II3dl.js → PlusIcon-DwIi46Ao.js} +1 -1
  20. package/dist/{SearchIcon-D0lWo6HO.js → SearchIcon-CBdLZ36S.js} +1 -1
  21. package/dist/{SelectIconRight-BInTeZAF.js → SelectIconRight-DGPll0qP.js} +1 -1
  22. package/dist/{StarsIcon-zRGUwbYZ.js → StarsIcon-DqoPcoCc.js} +1 -1
  23. package/dist/{SwitchVerticalIcon-CYDbffwu.js → SwitchVerticalIcon-Do6gLZom.js} +1 -1
  24. package/dist/{TranslateIcon-DO9JaaRp.js → TranslateIcon-DA-oW7EF.js} +1 -1
  25. package/dist/class-variant/classVariant.type.d.ts +3 -1
  26. package/dist/components/autocomplete/Autocomplete.d.ts +3 -0
  27. package/dist/components/date-field/DateField.d.ts +4 -2
  28. package/dist/components/date-field/dateField.context.d.ts +1 -0
  29. package/dist/components/date-field/parts/DateFieldRoot.d.ts +4 -2
  30. package/dist/components/date-range-field/DateRangeField.d.ts +4 -2
  31. package/dist/components/date-range-field/dateRangeField.context.d.ts +1 -0
  32. package/dist/components/date-range-field/parts/DateRangeFieldRoot.d.ts +4 -2
  33. package/dist/components/select/Select.d.ts +3 -0
  34. package/dist/components/select/parts/SelectBase.d.ts +3 -0
  35. package/dist/components/select/parts/SelectBaseMultiple.d.ts +27 -61
  36. package/dist/components/switch/index.d.ts +1 -0
  37. package/dist/components/switch/parts/SwitchRoot.d.ts +3 -0
  38. package/dist/components/switch/parts/SwitchThumb.d.ts +16 -1
  39. package/dist/components/switch/parts/SwitchThumbIcon.d.ts +2 -0
  40. package/dist/components/switch/switch.context.d.ts +1 -0
  41. package/dist/components/switch/switch.props.d.ts +11 -0
  42. package/dist/components/switch/switch.style.d.ts +9 -0
  43. package/dist/components/tabs/button/ButtonTabs.d.ts +1 -7
  44. package/dist/components/tabs/index.d.ts +0 -1
  45. package/dist/components/tabs/router-link/RouterLinkTabs.d.ts +1 -7
  46. package/dist/components/tabs/shared/parts/TabsRoot.d.ts +2 -7
  47. package/dist/components/tabs/shared/parts/TabsScrollContainer.d.ts +21 -0
  48. package/dist/components/tabs/shared/parts/TabsScrollToLeftButton.d.ts +2 -0
  49. package/dist/components/tabs/shared/parts/TabsScrollToRightButton.d.ts +2 -0
  50. package/dist/components/tabs/shared/tabs.composable.d.ts +12 -0
  51. package/dist/components/tabs/shared/tabs.context.d.ts +6 -0
  52. package/dist/components/tabs/shared/tabs.style.d.ts +6 -0
  53. package/dist/{index-CxKOHuY9.js → index-CJy3ljZi.js} +7625 -7308
  54. package/dist/index.js +44 -44
  55. package/dist/index.umd +18 -18
  56. package/dist/style.css +1 -1
  57. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const s = {}, l = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const s = {}, l = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const s = {}, c = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const s = {}, c = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const s = {}, i = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const s = {}, c = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const s = {}, l = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const s = {}, c = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const s = {}, c = {
4
4
  xmlns: "http://www.w3.org/2000/svg",
5
5
  width: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const s = {}, l = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const s = {}, c = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const s = {}, i = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const s = {}, i = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const s = {}, l = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as t, openBlock as r, createElementVNode as e } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const s = {}, l = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const s = {}, C = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as t, openBlock as r, createElementVNode as o } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const c = {}, i = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as n } from "vue";
2
- import { _ as r } from "./index-CxKOHuY9.js";
2
+ import { _ as r } from "./index-CJy3ljZi.js";
3
3
  const s = {}, i = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const s = {}, l = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const s = {}, c = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as t, openBlock as o, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const s = {}, c = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const s = {}, c = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as t, openBlock as o, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const s = {}, c = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CxKOHuY9.js";
2
+ import { _ as n } from "./index-CJy3ljZi.js";
3
3
  const s = {}, l = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -133,7 +133,9 @@ export interface ComponentMap {
133
133
  };
134
134
  tabs: {
135
135
  style: typeof createTabsStyle;
136
- children: {};
136
+ children: {
137
+ scrollButton: 'iconButton';
138
+ };
137
139
  };
138
140
  textarea: {
139
141
  style: typeof createTextareaStyle;
@@ -14,6 +14,9 @@ declare const _default: <TValue extends AcceptableValue>(__VLS_props: NonNullabl
14
14
  left?(_: {}): any;
15
15
  right?(_: {}): any;
16
16
  loader?(_: {}): any;
17
+ items?(_: {
18
+ items: import('@vue/reactivity').UnwrapRefSimple<TValue>[];
19
+ }): any;
17
20
  item?(_: {
18
21
  value: NonNullable<TValue>;
19
22
  }): any;
@@ -6,13 +6,15 @@ declare const _default: <TValue extends Date>(__VLS_props: NonNullable<Awaited<t
6
6
  readonly onFocus?: ((e: FocusEvent) => any) | undefined;
7
7
  readonly onBlur?: ((e: FocusEvent) => any) | undefined;
8
8
  readonly "onUpdate:modelValue"?: ((value: TValue | null) => any) | undefined;
9
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onUpdate:modelValue"> & ({
9
+ readonly "onUpdate:placeholderValue"?: ((value: TValue | null) => any) | undefined;
10
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onUpdate:modelValue" | "onUpdate:placeholderValue"> & ({
10
11
  modelValue: TValue | null;
12
+ placeholderValue?: TValue | null;
11
13
  } & DateFieldProps) & Partial<{}>> & import('vue').PublicProps;
12
14
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
13
15
  attrs: any;
14
16
  slots: Readonly<DateFieldSlots> & DateFieldSlots;
15
- emit: DateFieldEmits & ((evt: "update:modelValue", value: TValue | null) => void);
17
+ emit: DateFieldEmits & (((evt: "update:modelValue", value: TValue | null) => void) & ((evt: "update:placeholderValue", value: TValue | null) => void));
16
18
  }>) => import('vue').VNode & {
17
19
  __ctx?: Awaited<typeof __VLS_setup>;
18
20
  };
@@ -6,6 +6,7 @@ import { PropsToComputed } from '../../utils/props.util';
6
6
  interface DateFieldContext extends PropsToComputed<DateFieldProps> {
7
7
  customClassConfig: ComputedRef<ResolvedClassConfig<'dateField'>>;
8
8
  modelValue: Ref<Date | null>;
9
+ placeholderValue: ComputedRef<Date>;
9
10
  style: ComputedRef<CreateDateFieldStyle>;
10
11
  onBlur: (event: FocusEvent) => void;
11
12
  onFocus: (event: FocusEvent) => void;
@@ -5,8 +5,10 @@ declare const _default: <TValue extends Date>(__VLS_props: NonNullable<Awaited<t
5
5
  readonly onFocus?: ((e: FocusEvent) => any) | undefined;
6
6
  readonly onBlur?: ((e: FocusEvent) => any) | undefined;
7
7
  readonly "onUpdate:modelValue"?: ((value: TValue | null) => any) | undefined;
8
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onUpdate:modelValue"> & ({
8
+ readonly "onUpdate:placeholderValue"?: ((value: TValue | null) => any) | undefined;
9
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onUpdate:modelValue" | "onUpdate:placeholderValue"> & ({
9
10
  modelValue: TValue | null;
11
+ placeholderValue?: TValue | null;
10
12
  } & DateFieldProps) & Partial<{}>> & import('vue').PublicProps;
11
13
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
12
14
  attrs: any;
@@ -18,7 +20,7 @@ declare const _default: <TValue extends Date>(__VLS_props: NonNullable<Awaited<t
18
20
  }[];
19
21
  }): any;
20
22
  };
21
- emit: DateFieldEmits & ((evt: "update:modelValue", value: TValue | null) => void);
23
+ emit: DateFieldEmits & (((evt: "update:modelValue", value: TValue | null) => void) & ((evt: "update:placeholderValue", value: TValue | null) => void));
22
24
  }>) => import('vue').VNode & {
23
25
  __ctx?: Awaited<typeof __VLS_setup>;
24
26
  };
@@ -7,13 +7,15 @@ declare const _default: <TValue extends Date>(__VLS_props: NonNullable<Awaited<t
7
7
  readonly onFocus?: ((e: FocusEvent) => any) | undefined;
8
8
  readonly onBlur?: ((e: FocusEvent) => any) | undefined;
9
9
  readonly "onUpdate:modelValue"?: ((value: DateRange<TValue>) => any) | undefined;
10
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onUpdate:modelValue"> & ({
10
+ readonly "onUpdate:placeholderValue"?: ((value: Date) => any) | undefined;
11
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onUpdate:modelValue" | "onUpdate:placeholderValue"> & ({
11
12
  modelValue: DateRange<TValue>;
13
+ placeholderValue?: Date;
12
14
  } & DateRangeFieldProps) & Partial<{}>> & import('vue').PublicProps;
13
15
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
14
16
  attrs: any;
15
17
  slots: Readonly<DateRangeFieldSlots> & DateRangeFieldSlots;
16
- emit: DateRangeFieldEmits & ((evt: "update:modelValue", value: DateRange<TValue>) => void);
18
+ emit: DateRangeFieldEmits & (((evt: "update:modelValue", value: DateRange<TValue>) => void) & ((evt: "update:placeholderValue", value: Date) => void));
17
19
  }>) => import('vue').VNode & {
18
20
  __ctx?: Awaited<typeof __VLS_setup>;
19
21
  };
@@ -7,6 +7,7 @@ import { PropsToComputed } from '../../utils/props.util';
7
7
  interface DateRangeFieldContext extends PropsToComputed<DateRangeFieldProps> {
8
8
  customClassConfig: ComputedRef<ResolvedClassConfig<'dateRangeField'>>;
9
9
  modelValue: Ref<DateRange>;
10
+ placeholderValue: ComputedRef<Date>;
10
11
  style: ComputedRef<CreateDateRangeFieldStyle>;
11
12
  onBlur: (event: FocusEvent) => void;
12
13
  onFocus: (event: FocusEvent) => void;
@@ -6,8 +6,10 @@ declare const _default: <TValue extends Date>(__VLS_props: NonNullable<Awaited<t
6
6
  readonly onFocus?: ((e: FocusEvent) => any) | undefined;
7
7
  readonly onBlur?: ((e: FocusEvent) => any) | undefined;
8
8
  readonly "onUpdate:modelValue"?: ((value: DateRange<TValue>) => any) | undefined;
9
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onUpdate:modelValue"> & ({
9
+ readonly "onUpdate:placeholderValue"?: ((value: Date) => any) | undefined;
10
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onUpdate:modelValue" | "onUpdate:placeholderValue"> & ({
10
11
  modelValue: DateRange<TValue>;
12
+ placeholderValue?: Date;
11
13
  } & DateRangeFieldProps) & Partial<{}>> & import('vue').PublicProps;
12
14
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
13
15
  attrs: any;
@@ -25,7 +27,7 @@ declare const _default: <TValue extends Date>(__VLS_props: NonNullable<Awaited<t
25
27
  };
26
28
  }): any;
27
29
  };
28
- emit: DateRangeFieldEmits & ((evt: "update:modelValue", value: DateRange<TValue>) => void);
30
+ emit: DateRangeFieldEmits & (((evt: "update:modelValue", value: DateRange<TValue>) => void) & ((evt: "update:placeholderValue", value: Date) => void));
29
31
  }>) => import('vue').VNode & {
30
32
  __ctx?: Awaited<typeof __VLS_setup>;
31
33
  };
@@ -22,6 +22,9 @@ declare const _default: <TValue extends SelectValueType>(__VLS_props: NonNullabl
22
22
  left?(_: {}): any;
23
23
  'icon-left'?(_: {}): any;
24
24
  base?(_: {}): any;
25
+ badge?(_: {
26
+ value: import('reka-ui').AcceptableValue;
27
+ }): any;
25
28
  'icon-right'?(_: {}): any;
26
29
  loader?(_: {}): any;
27
30
  right?(_: {}): any;
@@ -2,6 +2,9 @@ declare function __VLS_template(): {
2
2
  attrs: Partial<{}>;
3
3
  slots: {
4
4
  default?(_: {}): any;
5
+ badge?(_: {
6
+ value: import('reka-ui').AcceptableValue;
7
+ }): any;
5
8
  };
6
9
  refs: {};
7
10
  rootEl: HTMLDivElement;
@@ -1,65 +1,31 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
1
+ import { AcceptableValue } from 'reka-ui';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ badge?(_: {
6
+ value: AcceptableValue;
7
+ }): any;
8
+ badge?(_: {
9
+ value: AcceptableValue;
10
+ }): any;
11
+ };
12
+ refs: {
13
+ tagContainerRef: HTMLDivElement;
14
+ badgeWrapperRef: HTMLDivElement[];
15
+ moreTagsCountRef: HTMLDivElement;
16
+ };
17
+ rootEl: HTMLDivElement;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
2
21
  tagContainerRef: HTMLDivElement;
3
- tagRef: (({
4
- $: import('vue').ComponentInternalInstance;
5
- $data: {};
6
- $props: {
7
- readonly isRemovable?: boolean | undefined;
8
- readonly color: import('../../../class-variant/classVariant.type').GetComponentProp<"badge", "color">;
9
- readonly icon?: (import('../../..').Icon | null) | undefined;
10
- readonly size?: "lg" | "md" | "sm" | undefined;
11
- readonly variant: import('../../../class-variant/classVariant.type').GetComponentProp<"badge", "variant">;
12
- readonly testId?: string | null | undefined;
13
- readonly classConfig?: import('../../../class-variant/classVariant.type').ResolvedClassConfig<"badge"> | null | undefined;
14
- readonly onRemove?: (() => any) | undefined;
15
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
16
- $attrs: {
17
- [x: string]: unknown;
18
- };
19
- $refs: {
20
- [x: string]: unknown;
21
- };
22
- $slots: Readonly<{
23
- [name: string]: import('vue').Slot<any> | undefined;
24
- }>;
25
- $root: import('vue').ComponentPublicInstance | null;
26
- $parent: import('vue').ComponentPublicInstance | null;
27
- $host: Element | null;
28
- $emit: (event: "remove") => void;
29
- $el: any;
30
- $options: import('vue').ComponentOptionsBase<Readonly<import('../..').VcBadgeProps> & Readonly<{
31
- onRemove?: (() => any) | undefined;
32
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
33
- remove: () => any;
34
- }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
35
- beforeCreate?: (() => void) | (() => void)[];
36
- created?: (() => void) | (() => void)[];
37
- beforeMount?: (() => void) | (() => void)[];
38
- mounted?: (() => void) | (() => void)[];
39
- beforeUpdate?: (() => void) | (() => void)[];
40
- updated?: (() => void) | (() => void)[];
41
- activated?: (() => void) | (() => void)[];
42
- deactivated?: (() => void) | (() => void)[];
43
- beforeDestroy?: (() => void) | (() => void)[];
44
- beforeUnmount?: (() => void) | (() => void)[];
45
- destroyed?: (() => void) | (() => void)[];
46
- unmounted?: (() => void) | (() => void)[];
47
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
48
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
49
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
50
- };
51
- $forceUpdate: () => void;
52
- $nextTick: typeof import('vue').nextTick;
53
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
54
- } & Readonly<{}> & Omit<Readonly<import('../..').VcBadgeProps> & Readonly<{
55
- onRemove?: (() => any) | undefined;
56
- }>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
57
- $slots: {
58
- left?(_: {}): any;
59
- default?(_: {}): any;
60
- right?(_: {}): any;
61
- };
62
- }) | null)[];
22
+ badgeWrapperRef: HTMLDivElement[];
63
23
  moreTagsCountRef: HTMLDivElement;
64
24
  }, HTMLDivElement>;
25
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
65
26
  export default _default;
27
+ type __VLS_WithTemplateSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -1,4 +1,5 @@
1
1
  export { default as VcSwitchRoot } from './parts/SwitchRoot';
2
2
  export { default as VcSwitchThumb } from './parts/SwitchThumb';
3
+ export { default as VcSwitchThumbIcon } from './parts/SwitchThumbIcon';
3
4
  export type { SwitchProps as VcSwitchProps } from './switch.props';
4
5
  export { default as VcSwitch } from './Switch';
@@ -35,7 +35,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
35
35
  classConfig: {
36
36
  root?: string | undefined;
37
37
  thumb?: string | undefined;
38
+ thumbIcon?: string | undefined;
38
39
  } | null;
40
+ iconChecked: import('../../..').Icon | null;
41
+ iconUnchecked: import('../../..').Icon | null;
39
42
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
40
43
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
41
44
  export default _default;
@@ -1,2 +1,17 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: any;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2
12
  export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -4,6 +4,7 @@ import { SwitchProps } from './switch.props';
4
4
  import { CreateSwitchStyle } from './switch.style';
5
5
  import { PropsToComputed } from '../../utils/props.util';
6
6
  interface SwitchContext extends PropsToComputed<SwitchProps> {
7
+ isChecked: ComputedRef<boolean>;
7
8
  customClassConfig: ComputedRef<ResolvedClassConfig<'switch'>>;
8
9
  style: ComputedRef<CreateSwitchStyle>;
9
10
  }
@@ -1,6 +1,17 @@
1
1
  import { CustomizableElement, GetComponentProp } from '../../class-variant/classVariant.type';
2
+ import { Icon } from '../../icons/icons';
2
3
  import { FormElement, InteractableElement, TestId } from '../../utils/props.util';
3
4
  export interface SwitchProps extends TestId, InteractableElement, FormElement, CustomizableElement<'switch'> {
5
+ /**
6
+ * The icon to be displayed when the switch is checked.
7
+ * @default null
8
+ */
9
+ iconChecked?: Icon | null;
10
+ /**
11
+ * The icon to be displayed when the switch is unchecked.
12
+ * @default null
13
+ */
14
+ iconUnchecked?: Icon | null;
4
15
  /**
5
16
  * Defines the size of the switch.
6
17
  * @default 'md'
@@ -5,45 +5,54 @@ export declare const createSwitchStyle: import('tailwind-variants').TVReturnType
5
5
  md: {
6
6
  root: string;
7
7
  thumb: string;
8
+ thumbIcon: string;
8
9
  };
9
10
  sm: {
10
11
  root: string;
11
12
  thumb: string;
13
+ thumbIcon: string;
12
14
  };
13
15
  };
14
16
  }, {
15
17
  root: string;
16
18
  thumb: string;
19
+ thumbIcon: string;
17
20
  }, undefined, {
18
21
  variant: {};
19
22
  size: {
20
23
  md: {
21
24
  root: string;
22
25
  thumb: string;
26
+ thumbIcon: string;
23
27
  };
24
28
  sm: {
25
29
  root: string;
26
30
  thumb: string;
31
+ thumbIcon: string;
27
32
  };
28
33
  };
29
34
  }, {
30
35
  root: string;
31
36
  thumb: string;
37
+ thumbIcon: string;
32
38
  }, import('tailwind-variants').TVReturnType<{
33
39
  variant: {};
34
40
  size: {
35
41
  md: {
36
42
  root: string;
37
43
  thumb: string;
44
+ thumbIcon: string;
38
45
  };
39
46
  sm: {
40
47
  root: string;
41
48
  thumb: string;
49
+ thumbIcon: string;
42
50
  };
43
51
  };
44
52
  }, {
45
53
  root: string;
46
54
  thumb: string;
55
+ thumbIcon: string;
47
56
  }, undefined, unknown, unknown, undefined>>;
48
57
  export type SwitchStyle = VariantProps<typeof createSwitchStyle>;
49
58
  export type CreateSwitchStyle = ReturnType<typeof createSwitchStyle>;
@@ -35,13 +35,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
35
35
  }>, {
36
36
  variant: "button-border" | "button-brand" | "underline";
37
37
  testId: string | null;
38
- classConfig: {
39
- base?: string | undefined;
40
- content?: string | undefined;
41
- indicator?: string | undefined;
42
- item?: string | undefined;
43
- list?: string | undefined;
44
- } | null;
38
+ classConfig: import('../../../class-variant/classVariant.type').ResolvedClassConfig<"tabs"> | null;
45
39
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
46
40
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
47
41
  export default _default;
@@ -9,4 +9,3 @@ export { default as VcTabsIndicator } from './shared/parts/TabsIndicator';
9
9
  export { default as VcTabsList } from './shared/parts/TabsList';
10
10
  export { default as VcTabsRoot } from './shared/parts/TabsRoot';
11
11
  export type { RouterLinkTabsItemProps as VcRouterLinkTabsItemProps, TabsProps as VcTabsProps, } from './shared/tabs.props';
12
- export { createTabsStyle } from './shared/tabs.style';
@@ -19,13 +19,7 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
19
  declare const __VLS_component: import('vue').DefineComponent<TabsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TabsProps> & Readonly<{}>, {
20
20
  variant: "button-border" | "button-brand" | "underline";
21
21
  testId: string | null;
22
- classConfig: {
23
- base?: string | undefined;
24
- content?: string | undefined;
25
- indicator?: string | undefined;
26
- item?: string | undefined;
27
- list?: string | undefined;
28
- } | null;
22
+ classConfig: import('../../../class-variant/classVariant.type').ResolvedClassConfig<"tabs"> | null;
29
23
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
24
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
31
25
  export default _default;
@@ -19,13 +19,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
19
19
  }>, {
20
20
  variant: "button-border" | "button-brand" | "underline";
21
21
  testId: string | null;
22
- classConfig: {
23
- base?: string | undefined;
24
- content?: string | undefined;
25
- indicator?: string | undefined;
26
- item?: string | undefined;
27
- list?: string | undefined;
28
- } | null;
22
+ classConfig: import('../../../../class-variant/classVariant.type').ResolvedClassConfig<"tabs"> | null;
23
+ orientation: "horizontal" | "vertical";
29
24
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
25
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
31
26
  export default _default;