@auronui/vue 1.1.0 → 1.1.1

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 (45) hide show
  1. package/ai-rules.md +884 -0
  2. package/bin/setup-ai.mjs +74 -0
  3. package/dist/cjs/index.cjs +1003 -891
  4. package/dist/cjs/index.cjs.map +1 -1
  5. package/dist/components/checkbox/Checkbox.js.map +1 -1
  6. package/dist/components/checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +8 -0
  7. package/dist/components/checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js.map +1 -1
  8. package/dist/components/checkbox/CheckboxGroup.js.map +1 -1
  9. package/dist/components/checkbox/CheckboxGroup.vue_vue_type_script_setup_true_lang.js +17 -2
  10. package/dist/components/checkbox/CheckboxGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
  11. package/dist/components/checkbox/checkbox-group.context.js.map +1 -1
  12. package/dist/components/date-picker/DatePicker.js.map +1 -1
  13. package/dist/components/date-picker/DatePicker.vue_vue_type_script_setup_true_lang.js +9 -3
  14. package/dist/components/date-picker/DatePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
  15. package/dist/components/date-range-picker/DateRangePicker.js.map +1 -1
  16. package/dist/components/date-range-picker/DateRangePicker.vue_vue_type_script_setup_true_lang.js +9 -3
  17. package/dist/components/date-range-picker/DateRangePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
  18. package/dist/components/date-time-picker/DateTimePicker.js.map +1 -1
  19. package/dist/components/date-time-picker/DateTimePicker.vue_vue_type_script_setup_true_lang.js +9 -3
  20. package/dist/components/date-time-picker/DateTimePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
  21. package/dist/components/form/validation.js +1 -1
  22. package/dist/components/form/validation.js.map +1 -1
  23. package/dist/components/modal/ModalContent.vue_vue_type_script_setup_true_lang.js +1 -1
  24. package/dist/components/popover/PopoverContent.js.map +1 -1
  25. package/dist/components/popover/PopoverContent.vue_vue_type_script_setup_true_lang.js +46 -34
  26. package/dist/components/popover/PopoverContent.vue_vue_type_script_setup_true_lang.js.map +1 -1
  27. package/dist/components/radio/Radio.js.map +1 -1
  28. package/dist/components/radio/Radio.vue_vue_type_script_setup_true_lang.js +9 -1
  29. package/dist/components/radio/Radio.vue_vue_type_script_setup_true_lang.js.map +1 -1
  30. package/dist/components/radio/RadioGroup.js.map +1 -1
  31. package/dist/components/radio/RadioGroup.vue_vue_type_script_setup_true_lang.js +14 -2
  32. package/dist/components/radio/RadioGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
  33. package/dist/components/radio/radio-group.context.js.map +1 -1
  34. package/dist/components/switch/Switch.js.map +1 -1
  35. package/dist/components/switch/Switch.vue_vue_type_script_setup_true_lang.js +8 -0
  36. package/dist/components/switch/Switch.vue_vue_type_script_setup_true_lang.js.map +1 -1
  37. package/dist/components/switch/SwitchGroup.js.map +1 -1
  38. package/dist/components/switch/SwitchGroup.vue_vue_type_script_setup_true_lang.js +17 -2
  39. package/dist/components/switch/SwitchGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
  40. package/dist/components/switch/switch-group.context.js.map +1 -1
  41. package/dist/components/tooltip/TooltipContent.js.map +1 -1
  42. package/dist/components/tooltip/TooltipContent.vue_vue_type_script_setup_true_lang.js +46 -34
  43. package/dist/components/tooltip/TooltipContent.vue_vue_type_script_setup_true_lang.js.map +1 -1
  44. package/dist/index.d.ts +78 -20
  45. package/package.json +9 -3
package/dist/index.d.ts CHANGED
@@ -143,13 +143,11 @@ asChild: boolean;
143
143
  forceMount: boolean;
144
144
  side: "top" | "right" | "bottom" | "left";
145
145
  sideOffset: number;
146
+ sideFlip: boolean;
146
147
  align: "start" | "center" | "end";
147
148
  alignOffset: number;
148
- avoidCollisions: boolean;
149
- to: string | HTMLElement;
150
- defer: boolean;
151
- sideFlip: boolean;
152
149
  alignFlip: boolean;
150
+ avoidCollisions: boolean;
153
151
  collisionBoundary: Element | null | Array<Element | null>;
154
152
  collisionPadding: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>;
155
153
  arrowPadding: number;
@@ -160,6 +158,8 @@ positionStrategy: "fixed" | "absolute";
160
158
  updatePositionStrategy: "always" | "optimized";
161
159
  disableUpdateOnLayoutShift: boolean;
162
160
  prioritizePosition: boolean;
161
+ to: string | HTMLElement;
162
+ defer: boolean;
163
163
  reference: object | null;
164
164
  disableOutsidePointerEvents: boolean;
165
165
  position: "item-aligned" | "popper";
@@ -273,13 +273,11 @@ forceMount: boolean;
273
273
  loop: boolean;
274
274
  side: "top" | "right" | "bottom" | "left";
275
275
  sideOffset: number;
276
+ sideFlip: boolean;
276
277
  align: "start" | "center" | "end";
277
278
  alignOffset: number;
278
- avoidCollisions: boolean;
279
- to: string | HTMLElement;
280
- defer: boolean;
281
- sideFlip: boolean;
282
279
  alignFlip: boolean;
280
+ avoidCollisions: boolean;
283
281
  collisionBoundary: Element | null | Array<Element | null>;
284
282
  collisionPadding: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>;
285
283
  arrowPadding: number;
@@ -290,6 +288,8 @@ positionStrategy: "fixed" | "absolute";
290
288
  updatePositionStrategy: "always" | "optimized";
291
289
  disableUpdateOnLayoutShift: boolean;
292
290
  prioritizePosition: boolean;
291
+ to: string | HTMLElement;
292
+ defer: boolean;
293
293
  reference: object | null;
294
294
  portalDisabled: boolean;
295
295
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
@@ -463,12 +463,10 @@ asChild: boolean;
463
463
  forceMount: boolean;
464
464
  loop: boolean;
465
465
  sideOffset: number;
466
- alignOffset: number;
467
- avoidCollisions: boolean;
468
- to: string | HTMLElement;
469
- defer: boolean;
470
466
  sideFlip: boolean;
467
+ alignOffset: number;
471
468
  alignFlip: boolean;
469
+ avoidCollisions: boolean;
472
470
  collisionBoundary: Element | null | Array<Element | null>;
473
471
  collisionPadding: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>;
474
472
  arrowPadding: number;
@@ -479,6 +477,8 @@ positionStrategy: "fixed" | "absolute";
479
477
  updatePositionStrategy: "always" | "optimized";
480
478
  disableUpdateOnLayoutShift: boolean;
481
479
  prioritizePosition: boolean;
480
+ to: string | HTMLElement;
481
+ defer: boolean;
482
482
  reference: object | null;
483
483
  portalDisabled: boolean;
484
484
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
@@ -572,13 +572,11 @@ asChild: boolean;
572
572
  forceMount: boolean;
573
573
  side: "top" | "right" | "bottom" | "left";
574
574
  sideOffset: number;
575
+ sideFlip: boolean;
575
576
  align: "start" | "center" | "end";
576
577
  alignOffset: number;
577
- avoidCollisions: boolean;
578
- to: string | HTMLElement;
579
- defer: boolean;
580
- sideFlip: boolean;
581
578
  alignFlip: boolean;
579
+ avoidCollisions: boolean;
582
580
  collisionBoundary: Element | null | Array<Element | null>;
583
581
  collisionPadding: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>;
584
582
  arrowPadding: number;
@@ -589,6 +587,8 @@ positionStrategy: "fixed" | "absolute";
589
587
  updatePositionStrategy: "always" | "optimized";
590
588
  disableUpdateOnLayoutShift: boolean;
591
589
  prioritizePosition: boolean;
590
+ to: string | HTMLElement;
591
+ defer: boolean;
592
592
  reference: object | null;
593
593
  disableOutsidePointerEvents: boolean;
594
594
  position: "inline" | "popper";
@@ -751,13 +751,11 @@ asChild: boolean;
751
751
  forceMount: boolean;
752
752
  side: "top" | "right" | "bottom" | "left";
753
753
  sideOffset: number;
754
+ sideFlip: boolean;
754
755
  align: "start" | "center" | "end";
755
756
  alignOffset: number;
756
- avoidCollisions: boolean;
757
- to: string | HTMLElement;
758
- defer: boolean;
759
- sideFlip: boolean;
760
757
  alignFlip: boolean;
758
+ avoidCollisions: boolean;
761
759
  collisionBoundary: Element | null | Array<Element | null>;
762
760
  collisionPadding: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>;
763
761
  arrowPadding: number;
@@ -768,6 +766,8 @@ positionStrategy: "fixed" | "absolute";
768
766
  updatePositionStrategy: "always" | "optimized";
769
767
  disableUpdateOnLayoutShift: boolean;
770
768
  prioritizePosition: boolean;
769
+ to: string | HTMLElement;
770
+ defer: boolean;
771
771
  reference: object | null;
772
772
  disableOutsidePointerEvents: boolean;
773
773
  position: "inline" | "popper";
@@ -1457,6 +1457,9 @@ labelPlacement: "inside" | "outside" | "outside-left";
1457
1457
  isRequired: boolean;
1458
1458
  defaultOpen: boolean;
1459
1459
  modal: boolean;
1460
+ avoidCollisions: boolean;
1461
+ collisionPadding: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>;
1462
+ prioritizePosition: boolean;
1460
1463
  closeOnSelect: boolean;
1461
1464
  isReadOnly: boolean;
1462
1465
  hideTimeZone: boolean;
@@ -1498,6 +1501,9 @@ labelPlacement: "inside" | "outside" | "outside-left";
1498
1501
  isRequired: boolean;
1499
1502
  defaultOpen: boolean;
1500
1503
  modal: boolean;
1504
+ avoidCollisions: boolean;
1505
+ collisionPadding: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>;
1506
+ prioritizePosition: boolean;
1501
1507
  closeOnSelect: boolean;
1502
1508
  isReadOnly: boolean;
1503
1509
  hideTimeZone: boolean;
@@ -1533,6 +1539,9 @@ isInvalid: boolean;
1533
1539
  labelPlacement: "inside" | "outside" | "outside-left";
1534
1540
  isRequired: boolean;
1535
1541
  defaultOpen: boolean;
1542
+ avoidCollisions: boolean;
1543
+ collisionPadding: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>;
1544
+ prioritizePosition: boolean;
1536
1545
  closeOnSelect: boolean;
1537
1546
  isReadOnly: boolean;
1538
1547
  granularity: "minute" | "second";
@@ -1722,6 +1731,7 @@ declare const __VLS_component_27: DefineComponent<__VLS_Props_30, {}, {}, {}, {}
1722
1731
  }>, {
1723
1732
  id: string;
1724
1733
  variant: "primary" | "secondary";
1734
+ isInvalid: boolean;
1725
1735
  isIndeterminate: boolean;
1726
1736
  value: string;
1727
1737
  as: string;
@@ -1746,6 +1756,8 @@ declare const __VLS_component_28: DefineComponent<__VLS_Props_31, {}, {}, {}, {}
1746
1756
  variant: "primary" | "secondary";
1747
1757
  description: string;
1748
1758
  label: string;
1759
+ errorMessage: string;
1760
+ isInvalid: boolean;
1749
1761
  orientation: "horizontal" | "vertical";
1750
1762
  disabled: boolean;
1751
1763
  modelValue: string[];
@@ -1761,6 +1773,7 @@ onSelect?: ((event: Event) => any) | undefined;
1761
1773
  id: string;
1762
1774
  variant: "primary" | "secondary";
1763
1775
  class: string | false | Record<string, unknown> | ClassValue[] | null;
1776
+ isInvalid: boolean;
1764
1777
  as: string;
1765
1778
  classNames: Partial<{
1766
1779
  base: ClassValue;
@@ -1791,6 +1804,8 @@ declare const __VLS_component_30: DefineComponent<__VLS_Props_33, {}, {}, {}, {}
1791
1804
  variant: "primary" | "secondary";
1792
1805
  description: string;
1793
1806
  label: string;
1807
+ errorMessage: string;
1808
+ isInvalid: boolean;
1794
1809
  orientation: "horizontal" | "vertical";
1795
1810
  as: string;
1796
1811
  disabled: boolean;
@@ -1810,6 +1825,7 @@ declare const __VLS_component_31: DefineComponent<__VLS_Props_34, {}, {}, {}, {}
1810
1825
  }>, {
1811
1826
  id: string;
1812
1827
  size: "md" | "sm" | "lg";
1828
+ isInvalid: boolean;
1813
1829
  value: string;
1814
1830
  as: string;
1815
1831
  disabled: boolean;
@@ -1832,6 +1848,8 @@ declare const __VLS_component_32: DefineComponent<__VLS_Props_35, {}, {}, {}, {}
1832
1848
  size: "md" | "sm" | "lg";
1833
1849
  description: string;
1834
1850
  label: string;
1851
+ errorMessage: string;
1852
+ isInvalid: boolean;
1835
1853
  orientation: "horizontal" | "vertical";
1836
1854
  disabled: boolean;
1837
1855
  modelValue: string[];
@@ -1861,6 +1879,8 @@ sideOffset: number;
1861
1879
  align: "start" | "center" | "end";
1862
1880
  alignOffset: number;
1863
1881
  avoidCollisions: boolean;
1882
+ collisionPadding: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>;
1883
+ prioritizePosition: boolean;
1864
1884
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1865
1885
 
1866
1886
  declare const __VLS_component_35: DefineComponent<__VLS_Props_40, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_40> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
@@ -1890,6 +1910,8 @@ sideOffset: number;
1890
1910
  align: "start" | "center" | "end";
1891
1911
  alignOffset: number;
1892
1912
  avoidCollisions: boolean;
1913
+ collisionPadding: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>;
1914
+ prioritizePosition: boolean;
1893
1915
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1894
1916
 
1895
1917
  declare const __VLS_component_4: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {
@@ -4685,6 +4707,7 @@ declare type __VLS_Props_30 = {
4685
4707
  modelValue?: boolean;
4686
4708
  defaultValue?: boolean;
4687
4709
  disabled?: boolean;
4710
+ isInvalid?: boolean;
4688
4711
  isIndeterminate?: boolean;
4689
4712
  name?: string;
4690
4713
  /** HTML id attribute forwarded to CheckboxRoot. */
@@ -4718,12 +4741,14 @@ declare type __VLS_Props_30 = {
4718
4741
  declare type __VLS_Props_31 = {
4719
4742
  variant?: CheckboxGroupVariants['variant'];
4720
4743
  disabled?: boolean;
4744
+ isInvalid?: boolean;
4721
4745
  modelValue?: string[];
4722
4746
  defaultValue?: string[];
4723
4747
  name?: string;
4724
4748
  orientation?: 'horizontal' | 'vertical';
4725
4749
  label?: string;
4726
4750
  description?: string;
4751
+ errorMessage?: string;
4727
4752
  class?: string;
4728
4753
  /** Shorthand API: render checkboxes from an array instead of the compound slot API */
4729
4754
  items?: CheckboxShorthandItem[];
@@ -4733,6 +4758,7 @@ declare type __VLS_Props_32 = {
4733
4758
  value: string;
4734
4759
  variant?: RadioGroupVariants['variant'];
4735
4760
  disabled?: boolean;
4761
+ isInvalid?: boolean;
4736
4762
  /** HTML id attribute forwarded to RadioGroupItem. */
4737
4763
  id?: string;
4738
4764
  /** Whether RadioGroupItem renders as a child element. */
@@ -4762,12 +4788,14 @@ declare type __VLS_Props_32 = {
4762
4788
  declare type __VLS_Props_33 = {
4763
4789
  variant?: RadioGroupVariants['variant'];
4764
4790
  disabled?: boolean;
4791
+ isInvalid?: boolean;
4765
4792
  modelValue?: string;
4766
4793
  defaultValue?: string;
4767
4794
  name?: string;
4768
4795
  orientation?: 'horizontal' | 'vertical';
4769
4796
  label?: string;
4770
4797
  description?: string;
4798
+ errorMessage?: string;
4771
4799
  /** Text direction forwarded to RadioGroupRoot. */
4772
4800
  dir?: 'ltr' | 'rtl';
4773
4801
  /** Whether keyboard navigation loops from last to first item. */
@@ -4785,6 +4813,7 @@ declare type __VLS_Props_33 = {
4785
4813
 
4786
4814
  declare type __VLS_Props_34 = {
4787
4815
  size?: SwitchVariants['size'];
4816
+ isInvalid?: boolean;
4788
4817
  value?: string;
4789
4818
  modelValue?: boolean;
4790
4819
  defaultValue?: boolean;
@@ -4823,6 +4852,8 @@ declare type __VLS_Props_35 = {
4823
4852
  defaultValue?: string[];
4824
4853
  name?: string;
4825
4854
  orientation?: SwitchGroupVariants['orientation'];
4855
+ isInvalid?: boolean;
4856
+ errorMessage?: string;
4826
4857
  label?: string;
4827
4858
  description?: string;
4828
4859
  class?: string;
@@ -4872,9 +4903,21 @@ declare type __VLS_Props_37 = {
4872
4903
  declare type __VLS_Props_38 = {
4873
4904
  side?: 'top' | 'right' | 'bottom' | 'left';
4874
4905
  sideOffset?: number;
4906
+ sideFlip?: boolean;
4875
4907
  align?: 'start' | 'center' | 'end';
4876
4908
  alignOffset?: number;
4909
+ alignFlip?: boolean;
4877
4910
  avoidCollisions?: boolean;
4911
+ collisionBoundary?: Element | null | Array<Element | null>;
4912
+ collisionPadding?: number | Partial<Record<'top' | 'right' | 'bottom' | 'left', number>>;
4913
+ arrowPadding?: number;
4914
+ hideShiftedArrow?: boolean;
4915
+ sticky?: 'partial' | 'always';
4916
+ hideWhenDetached?: boolean;
4917
+ positionStrategy?: 'fixed' | 'absolute';
4918
+ updatePositionStrategy?: 'always' | 'optimized';
4919
+ disableUpdateOnLayoutShift?: boolean;
4920
+ prioritizePosition?: boolean;
4878
4921
  class?: string;
4879
4922
  };
4880
4923
 
@@ -4923,9 +4966,21 @@ declare type __VLS_Props_43 = {
4923
4966
  declare type __VLS_Props_44 = {
4924
4967
  side?: 'top' | 'right' | 'bottom' | 'left';
4925
4968
  sideOffset?: number;
4969
+ sideFlip?: boolean;
4926
4970
  align?: 'start' | 'center' | 'end';
4927
4971
  alignOffset?: number;
4972
+ alignFlip?: boolean;
4928
4973
  avoidCollisions?: boolean;
4974
+ collisionBoundary?: Element | null | Array<Element | null>;
4975
+ collisionPadding?: number | Partial<Record<'top' | 'right' | 'bottom' | 'left', number>>;
4976
+ arrowPadding?: number;
4977
+ hideShiftedArrow?: boolean;
4978
+ sticky?: 'partial' | 'always';
4979
+ hideWhenDetached?: boolean;
4980
+ positionStrategy?: 'fixed' | 'absolute';
4981
+ updatePositionStrategy?: 'always' | 'optimized';
4982
+ disableUpdateOnLayoutShift?: boolean;
4983
+ prioritizePosition?: boolean;
4929
4984
  class?: string;
4930
4985
  };
4931
4986
 
@@ -9321,6 +9376,7 @@ export declare const CheckboxGroup: __VLS_WithTemplateSlots_28<typeof __VLS_comp
9321
9376
  export declare interface CheckboxGroupContext {
9322
9377
  variant: Ref<CheckboxVariants['variant']>;
9323
9378
  disabled: Ref<boolean>;
9379
+ isInvalid: Ref<boolean>;
9324
9380
  selectedValues: Ref<string[]>;
9325
9381
  toggleValue: (value: string) => void;
9326
9382
  name: Ref<string | undefined>;
@@ -10761,6 +10817,7 @@ export declare function composeSlotClassName<V extends Record<string, unknown>>(
10761
10817
  export declare interface RadioGroupContext {
10762
10818
  variant: Ref<RadioGroupVariants['variant']>;
10763
10819
  disabled: Ref<boolean>;
10820
+ isInvalid: Ref<boolean>;
10764
10821
  }
10765
10822
 
10766
10823
  export declare const radioGroupContextKey: InjectionKey<RadioGroupContext>;
@@ -10977,6 +11034,7 @@ export declare function composeSlotClassName<V extends Record<string, unknown>>(
10977
11034
  export declare interface SwitchGroupContext {
10978
11035
  size: Ref<SwitchVariants['size']>;
10979
11036
  disabled: Ref<boolean>;
11037
+ isInvalid: Ref<boolean>;
10980
11038
  selectedValues: Ref<string[]>;
10981
11039
  toggleValue: (value: string) => void;
10982
11040
  name: Ref<string | undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auronui/vue",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Vue 3 85 components with full visual and functional parity",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -48,8 +48,13 @@
48
48
  },
49
49
  "files": [
50
50
  "dist",
51
+ "bin",
52
+ "ai-rules.md",
51
53
  "README.md"
52
54
  ],
55
+ "bin": {
56
+ "setup-ai": "bin/setup-ai.mjs"
57
+ },
53
58
  "peerDependencies": {
54
59
  "@vueuse/core": ">=14.0.0",
55
60
  "reka-ui": ">=2.9.0",
@@ -69,7 +74,7 @@
69
74
  "tailwind-merge": "3.5.0",
70
75
  "tailwind-variants": "3.2.2",
71
76
  "vee-validate": "^4.15.1",
72
- "@auronui/styles": "1.1.0"
77
+ "@auronui/styles": "1.1.1"
73
78
  },
74
79
  "devDependencies": {
75
80
  "@chialab/vitest-axe": "0.19.1",
@@ -92,7 +97,8 @@
92
97
  "@auronui/vitest": "0.0.0"
93
98
  },
94
99
  "scripts": {
95
- "build": "vite build",
100
+ "build:ai": "node src/ai-rules/generate.mjs",
101
+ "build": "node src/ai-rules/generate.mjs && vite build",
96
102
  "dev": "vite build --watch",
97
103
  "typecheck": "vue-tsc --noEmit",
98
104
  "lint": "eslint src --ext .ts,.vue",