@wisemen/vue-core-components 1.17.0 → 2.0.0-beta.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 (97) hide show
  1. package/dist/{AlertCircleIcon-DVsVCSLr.js → AlertCircleIcon-D7CicIEs.js} +1 -1
  2. package/dist/{AlertTriangleIcon-C7yedJDj.js → AlertTriangleIcon-DzlLdT1q.js} +1 -1
  3. package/dist/{ArrowDownIcon-CTqY9yih.js → ArrowDownIcon-DZr01Sf6.js} +1 -1
  4. package/dist/{ArrowLeftIcon-CMBqMcN8.js → ArrowLeftIcon-CVU7B5Rv.js} +1 -1
  5. package/dist/{ArrowRightIcon-BYaugluP.js → ArrowRightIcon-A8_LzUxJ.js} +1 -1
  6. package/dist/{ArrowUpIcon-Ci3lRZK5.js → ArrowUpIcon-c-BbbYHh.js} +1 -1
  7. package/dist/{CalendarIcon-AHt2ALJb.js → CalendarIcon-D2NvYthk.js} +1 -1
  8. package/dist/{CheckCircleIcon-BSCXFP22.js → CheckCircleIcon-DKnYfS0a.js} +1 -1
  9. package/dist/{CheckIcon-BcSj6qzw.js → CheckIcon-BdFM_PWS.js} +1 -1
  10. package/dist/{ChevronLeftDoubleIcon-DhecHeTI.js → ChevronLeftDoubleIcon-BjIKgpkh.js} +1 -1
  11. package/dist/{ChevronLeftIcon-DkH4rff3.js → ChevronLeftIcon-DhUy0U_9.js} +1 -1
  12. package/dist/{ChevronRightDoubleIcon-CELq3EDE.js → ChevronRightDoubleIcon-BF0prMpM.js} +1 -1
  13. package/dist/{ChevronRightIcon-Xk2hDdj0.js → ChevronRightIcon-5hSTA6TF.js} +1 -1
  14. package/dist/{CloseIcon-BXmDw2ST.js → CloseIcon-C0sSLkrm.js} +1 -1
  15. package/dist/{EyeIcon-SRgflOZ4.js → EyeIcon-LaL5PkGR.js} +1 -1
  16. package/dist/{EyeOffIcon-DaacPXpf.js → EyeOffIcon-CG1ArkOt.js} +1 -1
  17. package/dist/{InfoCircleIcon-BO5xoT5y.js → InfoCircleIcon-itEN2uGV.js} +1 -1
  18. package/dist/{MinusIcon-Dhrr9qOB.js → MinusIcon-Dm3It5EC.js} +1 -1
  19. package/dist/{PlusIcon-BEfwXUnE.js → PlusIcon-C71GCIJ1.js} +1 -1
  20. package/dist/{SearchIcon-CMyCjH4B.js → SearchIcon-DMDvaCjI.js} +1 -1
  21. package/dist/{SelectIconRight-d8i-3c2D.js → SelectIconRight-CpQjNlqt.js} +1 -1
  22. package/dist/{StarsIcon-5kBm7r6u.js → StarsIcon-CtRxOZ6l.js} +1 -1
  23. package/dist/{SwitchVerticalIcon-CooLQOrG.js → SwitchVerticalIcon-BbFWYPhT.js} +1 -1
  24. package/dist/{TranslateIcon-CCaXc-R1.js → TranslateIcon-BWa8fOJh.js} +1 -1
  25. package/dist/class-variant/classVariant.type.d.ts +0 -7
  26. package/dist/components/config-provider/index.d.ts +1 -0
  27. package/dist/components/date-field/DateField.d.ts +29 -19
  28. package/dist/components/date-field/dateField.context.d.ts +3 -2
  29. package/dist/components/date-field/parts/DateFieldRoot.d.ts +51 -19
  30. package/dist/components/date-picker/range/DateRangePicker.d.ts +7 -6
  31. package/dist/components/date-picker/range/dateRangePicker.context.d.ts +3 -2
  32. package/dist/components/date-picker/range/parts/DateRangePickerRoot.d.ts +7 -6
  33. package/dist/components/date-picker/shared/datePicker.util.d.ts +3 -0
  34. package/dist/components/date-picker/single/DatePicker.d.ts +7 -6
  35. package/dist/components/date-picker/single/datePicker.context.d.ts +3 -2
  36. package/dist/components/date-picker/single/parts/DatePickerRoot.d.ts +7 -6
  37. package/dist/components/date-range-field/DateRangeField.d.ts +29 -19
  38. package/dist/components/date-range-field/dateRangeField.context.d.ts +3 -2
  39. package/dist/components/date-range-field/parts/DateRangeFieldRoot.d.ts +51 -19
  40. package/dist/components/dialog/Dialog.d.ts +2 -0
  41. package/dist/components/dialog/DialogContainer.d.ts +1 -5
  42. package/dist/components/dialog/dialog.composable.d.ts +12 -4
  43. package/dist/components/dialog/dialog.type.d.ts +5 -47
  44. package/dist/components/dialog/index.d.ts +1 -1
  45. package/dist/components/dropdown-menu/DropdownMenu.d.ts +4 -0
  46. package/dist/components/dropdown-menu/dropdownMenu.context.d.ts +2 -0
  47. package/dist/components/dropdown-menu/parts/DropdownMenuRoot.d.ts +4 -0
  48. package/dist/components/index.d.ts +0 -1
  49. package/dist/components/table/index.d.ts +3 -7
  50. package/dist/components/table/parts/TableBody.d.ts +16 -1
  51. package/dist/components/table/parts/TableCell.d.ts +2 -4
  52. package/dist/components/table/parts/TableHeader.d.ts +16 -1
  53. package/dist/components/table/parts/TableHeaderCell.d.ts +15 -4
  54. package/dist/components/table/parts/TableHiddenResultsHint.d.ts +7 -1
  55. package/dist/components/table/parts/TableRoot.d.ts +22 -15
  56. package/dist/components/table/parts/TableRow.d.ts +20 -2
  57. package/dist/components/table/table.composable.d.ts +6 -15
  58. package/dist/components/table/table.context.d.ts +1 -5
  59. package/dist/components/table/table.props.d.ts +3 -36
  60. package/dist/components/table/table.style.d.ts +3 -0
  61. package/dist/components/table/table.type.d.ts +11 -43
  62. package/dist/components/theme-provider/ThemeProvider.d.ts +8 -2
  63. package/dist/components/time-field/TimeField.d.ts +26 -17
  64. package/dist/components/time-field/parts/TimeFieldRoot.d.ts +48 -17
  65. package/dist/components/time-field/timeField.context.d.ts +2 -1
  66. package/dist/components/toast/index.d.ts +1 -1
  67. package/dist/{index-B--cIpg_.js → index-B8ijWIxM.js} +4623 -5542
  68. package/dist/index.js +140 -152
  69. package/dist/index.umd +14 -14
  70. package/dist/style.css +1 -1
  71. package/dist/types/dateRange.type.d.ts +2 -1
  72. package/package.json +8 -6
  73. package/dist/components/internal/ProgressiveBlur.d.ts +0 -5
  74. package/dist/components/table/Table.d.ts +0 -24
  75. package/dist/components/table/parts/TableCellLayout.d.ts +0 -21
  76. package/dist/components/table/parts/TableEmptyOrLoadingState.d.ts +0 -19
  77. package/dist/components/table/parts/TableHeaderCellProvider.d.ts +0 -21
  78. package/dist/components/table/parts/TableInteractiveElement.d.ts +0 -17
  79. package/dist/components/table/parts/TableRowAction.d.ts +0 -6
  80. package/dist/components/table/table.emits.d.ts +0 -3
  81. package/dist/components/table/tableHeaderCell.context.d.ts +0 -7
  82. package/dist/components/table-next/index.d.ts +0 -11
  83. package/dist/components/table-next/parts/TableBody.d.ts +0 -17
  84. package/dist/components/table-next/parts/TableCell.d.ts +0 -24
  85. package/dist/components/table-next/parts/TableContent.d.ts +0 -17
  86. package/dist/components/table-next/parts/TableHeader.d.ts +0 -17
  87. package/dist/components/table-next/parts/TableHeaderCell.d.ts +0 -29
  88. package/dist/components/table-next/parts/TableHiddenResultsHint.d.ts +0 -8
  89. package/dist/components/table-next/parts/TableRoot.d.ts +0 -27
  90. package/dist/components/table-next/parts/TableRow.d.ts +0 -23
  91. package/dist/components/table-next/parts/TableScrollContainer.d.ts +0 -21
  92. package/dist/components/table-next/table.composable.d.ts +0 -7
  93. package/dist/components/table-next/table.context.d.ts +0 -15
  94. package/dist/components/table-next/table.props.d.ts +0 -21
  95. package/dist/components/table-next/table.style.d.ts +0 -37
  96. package/dist/components/table-next/table.type.d.ts +0 -12
  97. /package/dist/components/{table-next → table}/parts/TableCellSkeleton.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as r } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.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-B--cIpg_.js";
2
+ import { _ as n } from "./index-B8ijWIxM.js";
3
3
  const s = {}, l = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -21,7 +21,6 @@ import { createRadioGroupItemStyle } from '../components/radio-group-item/radioG
21
21
  import { createSelectStyle } from '../components/select/style/select.style';
22
22
  import { createSwitchStyle } from '../components/switch/switch.style';
23
23
  import { createTableStyle } from '../components/table/table.style';
24
- import { createTableNextStyle } from '../components/table-next/table.style';
25
24
  import { createTabsStyle } from '../components/tabs/shared/tabs.style';
26
25
  import { createTextFieldStyle } from '../components/text-field/textField.style';
27
26
  import { createTextareaStyle } from '../components/textarea/textarea.style';
@@ -140,12 +139,6 @@ export interface ComponentMap {
140
139
  headerCellButton: 'button';
141
140
  };
142
141
  };
143
- tableNext: {
144
- style: typeof createTableNextStyle;
145
- children: {
146
- headerCellButton: 'button';
147
- };
148
- };
149
142
  tabs: {
150
143
  style: typeof createTabsStyle;
151
144
  children: {
@@ -1 +1,2 @@
1
+ export { useInjectConfigContext } from './config.context';
1
2
  export { default as VcConfigProvider } from './ConfigProvider';
@@ -1,24 +1,34 @@
1
- import { DateFieldEmits } from './dateField.emits';
1
+ import { Temporal } from 'temporal-polyfill';
2
2
  import { DateFieldProps } from './dateField.props';
3
3
  import { DateFieldSlots } from './dateField.slots';
4
- declare const _default: <TValue extends Date>(__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<{
5
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
- readonly onFocus?: ((e: FocusEvent) => any) | undefined;
7
- readonly onBlur?: ((e: FocusEvent) => any) | undefined;
8
- readonly "onUpdate:modelValue"?: ((value: TValue | null) => any) | undefined;
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"> & ({
11
- modelValue: TValue | null;
12
- placeholderValue?: TValue | null;
13
- } & DateFieldProps) & Partial<{}>> & import('vue').PublicProps;
14
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
15
- attrs: any;
4
+ type __VLS_Props = DateFieldProps;
5
+ type __VLS_PublicProps = {
6
+ modelValue: Temporal.PlainDate | null;
7
+ 'placeholderValue'?: Temporal.PlainDate | null;
8
+ } & __VLS_Props;
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
16
11
  slots: Readonly<DateFieldSlots> & DateFieldSlots;
17
- emit: DateFieldEmits & (((evt: "update:modelValue", value: TValue | null) => void) & ((evt: "update:placeholderValue", value: TValue | null) => void));
18
- }>) => import('vue').VNode & {
19
- __ctx?: Awaited<typeof __VLS_setup>;
12
+ refs: {};
13
+ rootEl: HTMLDivElement;
20
14
  };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ "update:modelValue": (value: Temporal.PlainDate | null) => any;
18
+ "update:placeholderValue": (value: Temporal.PlainDate | null) => any;
19
+ } & {
20
+ focus: (e: FocusEvent) => any;
21
+ blur: (e: FocusEvent) => any;
22
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
+ onFocus?: ((e: FocusEvent) => any) | undefined;
24
+ onBlur?: ((e: FocusEvent) => any) | undefined;
25
+ "onUpdate:modelValue"?: ((value: Temporal.PlainDate | null) => any) | undefined;
26
+ "onUpdate:placeholderValue"?: ((value: Temporal.PlainDate | null) => any) | undefined;
27
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
28
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
29
  export default _default;
22
- type __VLS_PrettifyLocal<T> = {
23
- [K in keyof T]: T[K];
24
- } & {};
30
+ type __VLS_WithTemplateSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -1,3 +1,4 @@
1
+ import { Temporal } from 'temporal-polyfill';
1
2
  import { ComputedRef, Ref } from 'vue';
2
3
  import { ResolvedClassConfig } from '../../class-variant/classVariant.type';
3
4
  import { DateFieldProps } from './dateField.props';
@@ -5,8 +6,8 @@ import { CreateDateFieldStyle } from './dateField.style';
5
6
  import { PropsToComputed } from '../../utils/props.util';
6
7
  interface DateFieldContext extends PropsToComputed<DateFieldProps> {
7
8
  customClassConfig: ComputedRef<ResolvedClassConfig<'dateField'>>;
8
- modelValue: Ref<Date | null>;
9
- placeholderValue: Ref<Date>;
9
+ modelValue: Ref<Temporal.PlainDate | null>;
10
+ placeholderValue: Ref<Temporal.PlainDate>;
10
11
  style: ComputedRef<CreateDateFieldStyle>;
11
12
  onBlur: (event: FocusEvent) => void;
12
13
  onFocus: (event: FocusEvent) => void;
@@ -1,17 +1,13 @@
1
- import { DateFieldEmits } from '../dateField.emits';
1
+ import { Temporal } from 'temporal-polyfill';
2
+ import { ResolvedClassConfig } from '../../../class-variant/classVariant.type';
2
3
  import { DateFieldProps } from '../dateField.props';
3
- declare const _default: <TValue extends Date>(__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<{
4
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
- readonly onFocus?: ((e: FocusEvent) => any) | undefined;
6
- readonly onBlur?: ((e: FocusEvent) => any) | undefined;
7
- readonly "onUpdate:modelValue"?: ((value: TValue | null) => any) | undefined;
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"> & ({
10
- modelValue: TValue | null;
11
- placeholderValue?: TValue | null;
12
- } & DateFieldProps) & Partial<{}>> & import('vue').PublicProps;
13
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
14
- attrs: any;
4
+ type __VLS_Props = DateFieldProps;
5
+ type __VLS_PublicProps = {
6
+ modelValue: Temporal.PlainDate | null;
7
+ 'placeholderValue'?: Temporal.PlainDate | null;
8
+ } & __VLS_Props;
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
15
11
  slots: {
16
12
  default?(_: {
17
13
  segments: {
@@ -20,11 +16,47 @@ declare const _default: <TValue extends Date>(__VLS_props: NonNullable<Awaited<t
20
16
  }[];
21
17
  }): any;
22
18
  };
23
- emit: DateFieldEmits & (((evt: "update:modelValue", value: TValue | null) => void) & ((evt: "update:placeholderValue", value: TValue | null) => void));
24
- }>) => import('vue').VNode & {
25
- __ctx?: Awaited<typeof __VLS_setup>;
19
+ refs: {};
20
+ rootEl: any;
26
21
  };
22
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
+ "update:modelValue": (value: Temporal.PlainDate | null) => any;
25
+ "update:placeholderValue": (value: Temporal.PlainDate | null) => any;
26
+ } & {
27
+ focus: (e: FocusEvent) => any;
28
+ blur: (e: FocusEvent) => any;
29
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
30
+ onFocus?: ((e: FocusEvent) => any) | undefined;
31
+ onBlur?: ((e: FocusEvent) => any) | undefined;
32
+ "onUpdate:modelValue"?: ((value: Temporal.PlainDate | null) => any) | undefined;
33
+ "onUpdate:placeholderValue"?: ((value: Temporal.PlainDate | null) => any) | undefined;
34
+ }>, {
35
+ variant: null;
36
+ iconLeft: import('../../..').Icon | null;
37
+ label: string | null;
38
+ hint: string | null;
39
+ isLoading: boolean;
40
+ testId: string | null;
41
+ isDisabled: boolean;
42
+ id: string | null;
43
+ isRequired: boolean;
44
+ isTouched: boolean;
45
+ errorMessage: string | null;
46
+ classConfig: ResolvedClassConfig<"dateField"> | null;
47
+ autocomplete: "off" | "on";
48
+ hideDatePicker: boolean;
49
+ maxDate: Date | null;
50
+ minDate: Date | null;
51
+ isDateDisabled: (date: Date) => boolean;
52
+ isDateUnavailable: (date: Date) => boolean;
53
+ allowDeselect: boolean;
54
+ showTwoMonths: boolean;
55
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
56
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
57
  export default _default;
28
- type __VLS_PrettifyLocal<T> = {
29
- [K in keyof T]: T[K];
30
- } & {};
58
+ type __VLS_WithTemplateSlots<T, S> = T & {
59
+ new (): {
60
+ $slots: S;
61
+ };
62
+ };
@@ -1,9 +1,10 @@
1
+ import { Temporal } from 'temporal-polyfill';
1
2
  import { DateRangePickerProps } from './dateRangePicker.props';
2
3
  import { DateRange } from '../../../types/dateRange.type';
3
4
  type __VLS_Props = DateRangePickerProps;
4
5
  type __VLS_PublicProps = {
5
- modelValue: DateRange;
6
- 'placeholderValue'?: Date;
6
+ modelValue: DateRange<Temporal.PlainDate>;
7
+ 'placeholderValue'?: Temporal.PlainDate;
7
8
  } & __VLS_Props;
8
9
  declare function __VLS_template(): {
9
10
  attrs: Partial<{}>;
@@ -17,11 +18,11 @@ declare function __VLS_template(): {
17
18
  };
18
19
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
20
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
- "update:modelValue": (value: DateRange<Date>) => any;
21
- "update:placeholderValue": (value: Date) => any;
21
+ "update:modelValue": (value: DateRange<Temporal.PlainDate>) => any;
22
+ "update:placeholderValue": (value: Temporal.PlainDate) => any;
22
23
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
- "onUpdate:modelValue"?: ((value: DateRange<Date>) => any) | undefined;
24
- "onUpdate:placeholderValue"?: ((value: Date) => any) | undefined;
24
+ "onUpdate:modelValue"?: ((value: DateRange<Temporal.PlainDate>) => any) | undefined;
25
+ "onUpdate:placeholderValue"?: ((value: Temporal.PlainDate) => any) | undefined;
25
26
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
27
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
28
  export default _default;
@@ -1,3 +1,4 @@
1
+ import { Temporal } from 'temporal-polyfill';
1
2
  import { ComputedRef, Ref } from 'vue';
2
3
  import { ResolvedClassConfig } from '../../../class-variant/classVariant.type';
3
4
  import { DateRangePickerProps } from './dateRangePicker.props';
@@ -6,8 +7,8 @@ import { DateRange } from '../../../types/dateRange.type';
6
7
  import { PropsToComputed } from '../../../utils/props.util';
7
8
  interface DateRangePickerContext extends PropsToComputed<DateRangePickerProps> {
8
9
  customClassConfig: ComputedRef<ResolvedClassConfig<'dateRangePicker'>>;
9
- modelValue: Ref<DateRange>;
10
- placeholderValue: Ref<Date>;
10
+ modelValue: Ref<DateRange<Temporal.PlainDate>>;
11
+ placeholderValue: Ref<Temporal.PlainDate>;
11
12
  style: ComputedRef<CreateDateRangePickerStyle>;
12
13
  }
13
14
  export declare const useProvideDateRangePickerContext: (context: DateRangePickerContext) => DateRangePickerContext, useInjectDateRangePickerContext: <TFallback extends DateRangePickerContext | null = DateRangePickerContext>(fallback?: TFallback | undefined) => TFallback extends null ? DateRangePickerContext | null : DateRangePickerContext;
@@ -1,11 +1,12 @@
1
1
  import { DateValue } from 'reka-ui';
2
+ import { Temporal } from 'temporal-polyfill';
2
3
  import { DateRangePickerProps } from '../dateRangePicker.props';
3
4
  import { Grid } from '../../shared/datePicker.type';
4
5
  import { DateRange } from '../../../../types/dateRange.type';
5
6
  type __VLS_Props = DateRangePickerProps;
6
7
  type __VLS_PublicProps = {
7
- modelValue: DateRange;
8
- 'placeholderValue'?: Date;
8
+ modelValue: DateRange<Temporal.PlainDate>;
9
+ 'placeholderValue'?: Temporal.PlainDate;
9
10
  } & __VLS_Props;
10
11
  declare function __VLS_template(): {
11
12
  attrs: Partial<{}>;
@@ -20,11 +21,11 @@ declare function __VLS_template(): {
20
21
  };
21
22
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
23
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
- "update:modelValue": (value: DateRange<Date>) => any;
24
- "update:placeholderValue": (value: Date) => any;
24
+ "update:modelValue": (value: DateRange<Temporal.PlainDate>) => any;
25
+ "update:placeholderValue": (value: Temporal.PlainDate) => any;
25
26
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
26
- "onUpdate:modelValue"?: ((value: DateRange<Date>) => any) | undefined;
27
- "onUpdate:placeholderValue"?: ((value: Date) => any) | undefined;
27
+ "onUpdate:modelValue"?: ((value: DateRange<Temporal.PlainDate>) => any) | undefined;
28
+ "onUpdate:placeholderValue"?: ((value: Temporal.PlainDate) => any) | undefined;
28
29
  }>, {
29
30
  variant: null;
30
31
  testId: string | null;
@@ -1,5 +1,8 @@
1
1
  import { DateValue } from 'reka-ui';
2
+ import { Temporal } from 'temporal-polyfill';
2
3
  export declare function dateToDateValue(date: Date): DateValue;
4
+ export declare function dateValueToPlainDate(value: DateValue): Temporal.PlainDate;
5
+ export declare function plainDateToDateValue(plainDate: Temporal.PlainDate): DateValue;
3
6
  export declare function dateValueToDate(value: DateValue): Date;
4
7
  export declare function getMonthName(month: number, locale: string, format: 'long' | 'short'): string;
5
8
  export declare function getDaysInMonth(month: number, year: number): number;
@@ -1,8 +1,9 @@
1
+ import { Temporal } from 'temporal-polyfill';
1
2
  import { DatePickerProps } from './datePicker.props';
2
3
  type __VLS_Props = DatePickerProps;
3
4
  type __VLS_PublicProps = {
4
- modelValue: Date | null;
5
- 'placeholderValue'?: Date;
5
+ modelValue: Temporal.PlainDate | null;
6
+ 'placeholderValue'?: Temporal.PlainDate;
6
7
  } & __VLS_Props;
7
8
  declare function __VLS_template(): {
8
9
  attrs: Partial<{}>;
@@ -16,11 +17,11 @@ declare function __VLS_template(): {
16
17
  };
17
18
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
19
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
- "update:modelValue": (value: Date | null) => any;
20
- "update:placeholderValue": (value: Date) => any;
20
+ "update:modelValue": (value: Temporal.PlainDate | null) => any;
21
+ "update:placeholderValue": (value: Temporal.PlainDate) => any;
21
22
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
22
- "onUpdate:modelValue"?: ((value: Date | null) => any) | undefined;
23
- "onUpdate:placeholderValue"?: ((value: Date) => any) | undefined;
23
+ "onUpdate:modelValue"?: ((value: Temporal.PlainDate | null) => any) | undefined;
24
+ "onUpdate:placeholderValue"?: ((value: Temporal.PlainDate) => any) | undefined;
24
25
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
26
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
27
  export default _default;
@@ -1,3 +1,4 @@
1
+ import { Temporal } from 'temporal-polyfill';
1
2
  import { ComputedRef, Ref } from 'vue';
2
3
  import { ResolvedClassConfig } from '../../../class-variant/classVariant.type';
3
4
  import { DatePickerProps } from './datePicker.props';
@@ -5,8 +6,8 @@ import { CreateDatePickerStyle } from './datePicker.style';
5
6
  import { PropsToComputed } from '../../../utils/props.util';
6
7
  interface DatePickerContext extends PropsToComputed<DatePickerProps> {
7
8
  customClassConfig: ComputedRef<ResolvedClassConfig<'datePicker'>>;
8
- modelValue: Ref<Date | null>;
9
- placeholderValue: Ref<Date>;
9
+ modelValue: Ref<Temporal.PlainDate | null>;
10
+ placeholderValue: Ref<Temporal.PlainDate>;
10
11
  style: ComputedRef<CreateDatePickerStyle>;
11
12
  }
12
13
  export declare const useProvideDatePickerContext: (context: DatePickerContext) => DatePickerContext, useInjectDatePickerContext: <TFallback extends DatePickerContext | null = DatePickerContext>(fallback?: TFallback | undefined) => TFallback extends null ? DatePickerContext | null : DatePickerContext;
@@ -1,10 +1,11 @@
1
1
  import { DateValue } from 'reka-ui';
2
+ import { Temporal } from 'temporal-polyfill';
2
3
  import { Grid } from '../../shared/datePicker.type';
3
4
  import { DatePickerProps } from '../datePicker.props';
4
5
  type __VLS_Props = DatePickerProps;
5
6
  type __VLS_PublicProps = {
6
- modelValue: Date | null;
7
- 'placeholderValue'?: Date;
7
+ modelValue: Temporal.PlainDate | null;
8
+ 'placeholderValue'?: Temporal.PlainDate;
8
9
  } & __VLS_Props;
9
10
  declare function __VLS_template(): {
10
11
  attrs: Partial<{}>;
@@ -19,11 +20,11 @@ declare function __VLS_template(): {
19
20
  };
20
21
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
22
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
- "update:modelValue": (value: Date | null) => any;
23
- "update:placeholderValue": (value: Date) => any;
23
+ "update:modelValue": (value: Temporal.PlainDate | null) => any;
24
+ "update:placeholderValue": (value: Temporal.PlainDate) => any;
24
25
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
25
- "onUpdate:modelValue"?: ((value: Date | null) => any) | undefined;
26
- "onUpdate:placeholderValue"?: ((value: Date) => any) | undefined;
26
+ "onUpdate:modelValue"?: ((value: Temporal.PlainDate | null) => any) | undefined;
27
+ "onUpdate:placeholderValue"?: ((value: Temporal.PlainDate) => any) | undefined;
27
28
  }>, {
28
29
  variant: null;
29
30
  testId: string | null;
@@ -1,25 +1,35 @@
1
- import { DateRangeFieldEmits } from './dateRangeField.emits';
1
+ import { Temporal } from 'temporal-polyfill';
2
2
  import { DateRangeFieldProps } from './dateRangeField.props';
3
3
  import { DateRangeFieldSlots } from './dateRangeField.slots';
4
4
  import { DateRange } from '../../types/dateRange.type';
5
- declare const _default: <TValue extends Date>(__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<{
6
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
7
- readonly onFocus?: ((e: FocusEvent) => any) | undefined;
8
- readonly onBlur?: ((e: FocusEvent) => any) | undefined;
9
- readonly "onUpdate:modelValue"?: ((value: DateRange<TValue>) => any) | undefined;
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"> & ({
12
- modelValue: DateRange<TValue>;
13
- placeholderValue?: Date;
14
- } & DateRangeFieldProps) & Partial<{}>> & import('vue').PublicProps;
15
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
16
- attrs: any;
5
+ type __VLS_Props = DateRangeFieldProps;
6
+ type __VLS_PublicProps = {
7
+ modelValue: DateRange<Temporal.PlainDate>;
8
+ 'placeholderValue'?: Temporal.PlainDate;
9
+ } & __VLS_Props;
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
17
12
  slots: Readonly<DateRangeFieldSlots> & DateRangeFieldSlots;
18
- emit: DateRangeFieldEmits & (((evt: "update:modelValue", value: DateRange<TValue>) => void) & ((evt: "update:placeholderValue", value: Date) => void));
19
- }>) => import('vue').VNode & {
20
- __ctx?: Awaited<typeof __VLS_setup>;
13
+ refs: {};
14
+ rootEl: HTMLDivElement;
21
15
  };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ "update:modelValue": (value: DateRange<Temporal.PlainDate>) => any;
19
+ "update:placeholderValue": (value: Temporal.PlainDate) => any;
20
+ } & {
21
+ focus: (e: FocusEvent) => any;
22
+ blur: (e: FocusEvent) => any;
23
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
+ onFocus?: ((e: FocusEvent) => any) | undefined;
25
+ onBlur?: ((e: FocusEvent) => any) | undefined;
26
+ "onUpdate:modelValue"?: ((value: DateRange<Temporal.PlainDate>) => any) | undefined;
27
+ "onUpdate:placeholderValue"?: ((value: Temporal.PlainDate) => any) | undefined;
28
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
29
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
30
  export default _default;
23
- type __VLS_PrettifyLocal<T> = {
24
- [K in keyof T]: T[K];
25
- } & {};
31
+ type __VLS_WithTemplateSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -1,3 +1,4 @@
1
+ import { Temporal } from 'temporal-polyfill';
1
2
  import { ComputedRef, Ref } from 'vue';
2
3
  import { ResolvedClassConfig } from '../../class-variant/classVariant.type';
3
4
  import { DateRangeFieldProps } from './dateRangeField.props';
@@ -6,8 +7,8 @@ import { DateRange } from '../../types/dateRange.type';
6
7
  import { PropsToComputed } from '../../utils/props.util';
7
8
  interface DateRangeFieldContext extends PropsToComputed<DateRangeFieldProps> {
8
9
  customClassConfig: ComputedRef<ResolvedClassConfig<'dateRangeField'>>;
9
- modelValue: Ref<DateRange>;
10
- placeholderValue: Ref<Date>;
10
+ modelValue: Ref<DateRange<Temporal.PlainDate>>;
11
+ placeholderValue: Ref<Temporal.PlainDate>;
11
12
  style: ComputedRef<CreateDateRangeFieldStyle>;
12
13
  onBlur: (event: FocusEvent) => void;
13
14
  onFocus: (event: FocusEvent) => void;