@ansh-ui/vue 0.3.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 (47) hide show
  1. package/dist/{chunk-HIVA75XC.js → chunk-D3HH726R.js} +151 -143
  2. package/dist/chunk-D3HH726R.js.map +1 -0
  3. package/dist/{chunk-FK536ZUI.cjs → chunk-EDAF7RAN.cjs} +150 -142
  4. package/dist/chunk-EDAF7RAN.cjs.map +1 -0
  5. package/dist/{chunk-LRTNIUAG.js → chunk-G3EIU6VM.js} +13 -7
  6. package/dist/chunk-G3EIU6VM.js.map +1 -0
  7. package/dist/{chunk-J2LA4GRP.cjs → chunk-IO6WJEJI.cjs} +122 -120
  8. package/dist/chunk-IO6WJEJI.cjs.map +1 -0
  9. package/dist/{chunk-IK3E4MPB.cjs → chunk-JJBYF7AH.cjs} +13 -7
  10. package/dist/chunk-JJBYF7AH.cjs.map +1 -0
  11. package/dist/{chunk-Z7XOFKM4.cjs → chunk-KKCZ5RUE.cjs} +4 -2
  12. package/dist/chunk-KKCZ5RUE.cjs.map +1 -0
  13. package/dist/{chunk-6ABPGOJP.js → chunk-LFGAOD32.js} +4 -2
  14. package/dist/chunk-LFGAOD32.js.map +1 -0
  15. package/dist/{chunk-FVKLCGA4.js → chunk-NJMTWLT2.js} +123 -121
  16. package/dist/chunk-NJMTWLT2.js.map +1 -0
  17. package/dist/data.cjs +16 -16
  18. package/dist/data.d.cts +46 -45
  19. package/dist/data.d.ts +46 -45
  20. package/dist/data.js +1 -1
  21. package/dist/form.cjs +36 -36
  22. package/dist/form.d.cts +51 -44
  23. package/dist/form.d.ts +51 -44
  24. package/dist/form.js +1 -1
  25. package/dist/index.cjs +134 -134
  26. package/dist/index.js +8 -8
  27. package/dist/layout.d.cts +2 -2
  28. package/dist/layout.d.ts +2 -2
  29. package/dist/motion.cjs +11 -11
  30. package/dist/motion.d.cts +28 -25
  31. package/dist/motion.d.ts +28 -25
  32. package/dist/motion.js +1 -1
  33. package/dist/navigation.d.cts +2 -2
  34. package/dist/navigation.d.ts +2 -2
  35. package/dist/overlay.cjs +13 -13
  36. package/dist/overlay.d.cts +29 -27
  37. package/dist/overlay.d.ts +29 -27
  38. package/dist/overlay.js +1 -1
  39. package/package.json +3 -3
  40. package/dist/chunk-6ABPGOJP.js.map +0 -1
  41. package/dist/chunk-FK536ZUI.cjs.map +0 -1
  42. package/dist/chunk-FVKLCGA4.js.map +0 -1
  43. package/dist/chunk-HIVA75XC.js.map +0 -1
  44. package/dist/chunk-IK3E4MPB.cjs.map +0 -1
  45. package/dist/chunk-J2LA4GRP.cjs.map +0 -1
  46. package/dist/chunk-LRTNIUAG.js.map +0 -1
  47. package/dist/chunk-Z7XOFKM4.cjs.map +0 -1
package/dist/form.d.ts CHANGED
@@ -117,8 +117,8 @@ declare const Field: vue.DefineComponent<vue.ExtractPropTypes<{
117
117
  error: SlotContent;
118
118
  label: SlotContent;
119
119
  required: boolean;
120
- description: SlotContent;
121
120
  disabled: boolean;
121
+ description: SlotContent;
122
122
  orientation: "horizontal" | "vertical";
123
123
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
124
124
  declare const Fieldset: vue.DefineComponent<vue.ExtractPropTypes<{
@@ -274,15 +274,16 @@ declare const Input: vue.DefineComponent<vue.ExtractPropTypes<{
274
274
  }>, {
275
275
  invalid: boolean;
276
276
  size: InputSize;
277
- disabled: boolean;
278
277
  modelValue: string;
279
278
  defaultValue: string;
280
- prefix: SlotContent;
281
- suffix: SlotContent;
279
+ disabled: boolean;
282
280
  clearable: boolean;
283
281
  readonly: boolean;
282
+ prefix: SlotContent;
283
+ suffix: SlotContent;
284
284
  wrapperClassName: string;
285
285
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
286
+
286
287
  /** A multi-line text input, optionally growing with its content. */
287
288
  declare const Textarea: vue.DefineComponent<vue.ExtractPropTypes<{
288
289
  modelValue: {
@@ -354,6 +355,7 @@ declare const Textarea: vue.DefineComponent<vue.ExtractPropTypes<{
354
355
  maxRows: number;
355
356
  showCount: boolean;
356
357
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
358
+
357
359
  /**
358
360
  * A numeric input with steppers — the Vue counterpart of `@ansh-ui/react`'s `NumberInput`.
359
361
  *
@@ -457,11 +459,11 @@ declare const NumberInput: vue.DefineComponent<vue.ExtractPropTypes<{
457
459
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
458
460
  }>, {
459
461
  size: InputSize;
460
- disabled: boolean;
461
462
  modelValue: number;
462
463
  defaultValue: number;
463
- min: number;
464
+ disabled: boolean;
464
465
  max: number;
466
+ min: number;
465
467
  step: number;
466
468
  precision: number;
467
469
  unit: SlotContent;
@@ -563,12 +565,13 @@ declare const Checkbox: vue.DefineComponent<vue.ExtractPropTypes<{
563
565
  invalid: boolean;
564
566
  label: SlotContent;
565
567
  size: ChoiceSize;
566
- description: SlotContent;
567
- disabled: boolean;
568
568
  modelValue: boolean;
569
569
  defaultValue: boolean;
570
+ disabled: boolean;
571
+ description: SlotContent;
570
572
  indeterminate: boolean;
571
573
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
574
+
572
575
  /**
573
576
  * An on/off toggle.
574
577
  *
@@ -645,12 +648,13 @@ declare const Switch: vue.DefineComponent<vue.ExtractPropTypes<{
645
648
  }>, {
646
649
  label: SlotContent;
647
650
  size: ChoiceSize;
648
- description: SlotContent;
649
- disabled: boolean;
650
651
  modelValue: boolean;
651
652
  defaultValue: boolean;
653
+ disabled: boolean;
654
+ description: SlotContent;
652
655
  labelPosition: "start" | "end";
653
656
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
657
+
654
658
  interface RadioGroupProps {
655
659
  modelValue?: string;
656
660
  defaultValue?: string;
@@ -724,10 +728,10 @@ declare const RadioGroup: vue.DefineComponent<vue.ExtractPropTypes<{
724
728
  }>, {
725
729
  name: string;
726
730
  label: string;
727
- disabled: boolean;
728
- orientation: "horizontal" | "vertical";
729
731
  modelValue: string;
730
732
  defaultValue: string;
733
+ disabled: boolean;
734
+ orientation: "horizontal" | "vertical";
731
735
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
732
736
  declare const Radio: vue.DefineComponent<vue.ExtractPropTypes<{
733
737
  value: {
@@ -776,9 +780,10 @@ declare const Radio: vue.DefineComponent<vue.ExtractPropTypes<{
776
780
  }>> & Readonly<{}>, {
777
781
  label: SlotContent;
778
782
  size: ChoiceSize;
779
- description: SlotContent;
780
783
  disabled: boolean;
784
+ description: SlotContent;
781
785
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
786
+
782
787
  /**
783
788
  * A radio rendered as a selectable card — plan pickers, onboarding branches.
784
789
  *
@@ -841,9 +846,9 @@ declare const ChoiceCard: vue.DefineComponent<vue.ExtractPropTypes<{
841
846
  }>> & Readonly<{}>, {
842
847
  label: SlotContent;
843
848
  size: ChoiceSize;
844
- description: SlotContent;
845
849
  disabled: boolean;
846
850
  icon: SlotContent;
851
+ description: SlotContent;
847
852
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
848
853
 
849
854
  /**
@@ -1120,12 +1125,12 @@ declare const Select: vue.DefineComponent<vue.ExtractPropTypes<{
1120
1125
  invalid: boolean;
1121
1126
  label: string;
1122
1127
  size: "sm" | "md" | "lg";
1123
- disabled: boolean;
1128
+ emptyMessage: SlotContent;
1124
1129
  modelValue: string | null;
1125
1130
  defaultValue: string | null;
1126
- clearable: boolean;
1127
- emptyMessage: SlotContent;
1128
1131
  placeholder: string;
1132
+ disabled: boolean;
1133
+ clearable: boolean;
1129
1134
  maxHeight: string;
1130
1135
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1131
1136
 
@@ -1300,12 +1305,12 @@ declare const Combobox: vue.DefineComponent<vue.ExtractPropTypes<{
1300
1305
  invalid: boolean;
1301
1306
  label: string;
1302
1307
  size: "sm" | "md" | "lg";
1303
- disabled: boolean;
1304
- modelValue: readonly string[];
1305
- defaultValue: readonly string[];
1306
1308
  multiple: boolean;
1307
1309
  emptyMessage: SlotContent;
1310
+ modelValue: readonly string[];
1311
+ defaultValue: readonly string[];
1308
1312
  placeholder: string;
1313
+ disabled: boolean;
1309
1314
  maxHeight: string;
1310
1315
  onCreate: (label: string) => string;
1311
1316
  createLabel: (query: string) => string;
@@ -1452,17 +1457,18 @@ declare const Slider: vue.DefineComponent<vue.ExtractPropTypes<{
1452
1457
  }>, {
1453
1458
  name: string;
1454
1459
  label: string;
1455
- disabled: boolean;
1456
- orientation: "horizontal" | "vertical";
1457
1460
  modelValue: number;
1458
1461
  defaultValue: number;
1459
- min: number;
1462
+ disabled: boolean;
1460
1463
  max: number;
1464
+ min: number;
1461
1465
  step: number;
1462
- marks: readonly SliderMark[];
1463
- showValue: boolean | "always";
1464
1466
  formatValue: (value: number) => string;
1467
+ showValue: boolean | "always";
1468
+ orientation: "horizontal" | "vertical";
1469
+ marks: readonly SliderMark[];
1465
1470
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1471
+
1466
1472
  /**
1467
1473
  * A two-thumb range slider — the Vue counterpart of `@ansh-ui/react`'s `RangeSlider`. Price filters,
1468
1474
  * date windows, numeric facets.
@@ -1575,15 +1581,15 @@ declare const RangeSlider: vue.DefineComponent<vue.ExtractPropTypes<{
1575
1581
  onCommit?: ((...args: any[]) => any) | undefined;
1576
1582
  }>, {
1577
1583
  label: string;
1578
- disabled: boolean;
1579
1584
  modelValue: readonly [number, number];
1580
1585
  defaultValue: readonly [number, number];
1581
- min: number;
1586
+ disabled: boolean;
1582
1587
  max: number;
1588
+ min: number;
1583
1589
  step: number;
1584
- marks: readonly SliderMark[];
1585
- showValue: boolean | "always";
1586
1590
  formatValue: (value: number) => string;
1591
+ showValue: boolean | "always";
1592
+ marks: readonly SliderMark[];
1587
1593
  minDistance: number;
1588
1594
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1589
1595
 
@@ -1696,9 +1702,9 @@ declare const PinInput: vue.DefineComponent<vue.ExtractPropTypes<{
1696
1702
  invalid: boolean;
1697
1703
  label: string;
1698
1704
  mask: boolean;
1699
- disabled: boolean;
1700
1705
  modelValue: string;
1701
1706
  defaultValue: string;
1707
+ disabled: boolean;
1702
1708
  autofocus: boolean;
1703
1709
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1704
1710
 
@@ -1810,12 +1816,12 @@ declare const TagsInput: vue.DefineComponent<vue.ExtractPropTypes<{
1810
1816
  }>, {
1811
1817
  invalid: boolean;
1812
1818
  label: string;
1813
- disabled: boolean;
1814
1819
  modelValue: readonly string[];
1815
1820
  defaultValue: readonly string[];
1816
- max: number;
1817
- delimiters: readonly string[];
1818
1821
  placeholder: string;
1822
+ disabled: boolean;
1823
+ delimiters: readonly string[];
1824
+ max: number;
1819
1825
  validate: (value: string) => string | null;
1820
1826
  dedupe: boolean;
1821
1827
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
@@ -1931,13 +1937,13 @@ declare const Rating: vue.DefineComponent<vue.ExtractPropTypes<{
1931
1937
  name: string;
1932
1938
  label: string;
1933
1939
  size: RatingSize;
1934
- disabled: boolean;
1935
1940
  modelValue: number;
1936
1941
  defaultValue: number;
1937
- readonly: boolean;
1938
- max: number;
1942
+ disabled: boolean;
1939
1943
  icon: SlotContent;
1944
+ max: number;
1940
1945
  allowHalf: boolean;
1946
+ readonly: boolean;
1941
1947
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1942
1948
 
1943
1949
  interface DropzoneFile {
@@ -2049,8 +2055,8 @@ declare const Dropzone: vue.DefineComponent<vue.ExtractPropTypes<{
2049
2055
  }>, {
2050
2056
  label: SlotContent;
2051
2057
  maxSize: number;
2052
- disabled: boolean;
2053
2058
  multiple: boolean;
2059
+ disabled: boolean;
2054
2060
  accept: string;
2055
2061
  maxFiles: number;
2056
2062
  previews: boolean;
@@ -2162,9 +2168,9 @@ declare const ColorPicker: vue.DefineComponent<vue.ExtractPropTypes<{
2162
2168
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2163
2169
  }>, {
2164
2170
  label: string;
2165
- disabled: boolean;
2166
2171
  modelValue: string;
2167
2172
  defaultValue: string;
2173
+ disabled: boolean;
2168
2174
  format: "oklch" | "hsl" | "hex" | "rgb";
2169
2175
  alpha: boolean;
2170
2176
  presets: readonly string[];
@@ -2303,8 +2309,8 @@ declare const Calendar: vue.DefineComponent<vue.ExtractPropTypes<{
2303
2309
  mode: "range" | "single";
2304
2310
  modelValue: Date | DateRange | null;
2305
2311
  defaultValue: Date | DateRange | null;
2306
- min: Date;
2307
2312
  max: Date;
2313
+ min: Date;
2308
2314
  isDateDisabled: (date: Date) => boolean;
2309
2315
  weekStartsOn: 0 | 2 | 3 | 1 | 4 | 5 | 6;
2310
2316
  locale: string;
@@ -2483,20 +2489,21 @@ declare const DatePicker: vue.DefineComponent<vue.ExtractPropTypes<{
2483
2489
  name: string;
2484
2490
  invalid: boolean;
2485
2491
  label: string;
2486
- disabled: boolean;
2487
2492
  modelValue: Date | null;
2488
2493
  defaultValue: Date | null;
2494
+ placeholder: string;
2495
+ disabled: boolean;
2489
2496
  clearable: boolean;
2490
- min: Date;
2491
2497
  max: Date;
2492
- placeholder: string;
2493
2498
  format: (date: Date) => string;
2499
+ min: Date;
2494
2500
  isDateDisabled: (date: Date) => boolean;
2495
2501
  weekStartsOn: 0 | 2 | 3 | 1 | 4 | 5 | 6;
2496
2502
  locale: string;
2497
2503
  months: number;
2498
2504
  showWeekNumbers: boolean;
2499
2505
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
2506
+
2500
2507
  /** Documents the shape of `DateRangePicker`'s props. Not consumed by `defineComponent` directly. */
2501
2508
  interface DateRangePickerProps {
2502
2509
  modelValue?: DateRange;
@@ -2624,11 +2631,11 @@ declare const DateRangePicker: vue.DefineComponent<vue.ExtractPropTypes<{
2624
2631
  }>, {
2625
2632
  invalid: boolean;
2626
2633
  label: string;
2627
- disabled: boolean;
2628
2634
  modelValue: DateRange;
2629
2635
  defaultValue: DateRange;
2630
- min: Date;
2636
+ disabled: boolean;
2631
2637
  max: Date;
2638
+ min: Date;
2632
2639
  isDateDisabled: (date: Date) => boolean;
2633
2640
  weekStartsOn: 0 | 2 | 3 | 1 | 4 | 5 | 6;
2634
2641
  locale: string;
package/dist/form.js CHANGED
@@ -1,4 +1,4 @@
1
- export { Calendar, Checkbox, ChoiceCard, ColorPicker, Combobox, DatePicker, DateRangePicker, Dropzone, Field, Fieldset, Input, NumberInput, OptionList, PinInput, Radio, RadioGroup, RangeSlider, Rating, Select, Slider, Switch, TagsInput, Textarea, VisuallyHidden, addDays, addMonths, filterOptions, firstEnabled, isSameDay, scoreOption, startOfDay, stepActive, useFieldContext, useFieldControl, useTypeahead } from './chunk-LRTNIUAG.js';
1
+ export { Calendar, Checkbox, ChoiceCard, ColorPicker, Combobox, DatePicker, DateRangePicker, Dropzone, Field, Fieldset, Input, NumberInput, OptionList, PinInput, Radio, RadioGroup, RangeSlider, Rating, Select, Slider, Switch, TagsInput, Textarea, VisuallyHidden, addDays, addMonths, filterOptions, firstEnabled, isSameDay, scoreOption, startOfDay, stepActive, useFieldContext, useFieldControl, useTypeahead } from './chunk-G3EIU6VM.js';
2
2
  import './chunk-XZ5ZFLZM.js';
3
3
  import './chunk-OAQ7MDYX.js';
4
4
  import './chunk-NJDDNO4C.js';