@eldrajs/ui 0.3.9 → 0.3.10

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 (65) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/README.md +48 -3
  3. package/dist/{PhoneInput-CX83wgD0.js → PhoneInput-BVH32MEg.js} +2 -2
  4. package/dist/{VariantPicker-BqLbiONX.js → VariantPicker-CKDdeFmV.js} +2945 -2548
  5. package/dist/componentNames.d.ts +1 -1
  6. package/dist/components/autocomplete/Autocomplete.vue.d.ts +216 -0
  7. package/dist/components/autocomplete/types.d.ts +50 -0
  8. package/dist/components/button/Button.vue.d.ts +4 -4
  9. package/dist/components/card/ContentCard.vue.d.ts +1 -1
  10. package/dist/components/carousel/Carousel.vue.d.ts +1 -1
  11. package/dist/components/checkbox/Checkbox.vue.d.ts +3 -3
  12. package/dist/components/chip/Chip.vue.d.ts +2 -1
  13. package/dist/components/container/Container.vue.d.ts +1 -1
  14. package/dist/components/dialog/Dialog.vue.d.ts +1 -0
  15. package/dist/components/drawer/Drawer.vue.d.ts +4 -3
  16. package/dist/components/field-wrapper/FieldWrapper.vue.d.ts +1 -1
  17. package/dist/components/filter-panel/FilterGroup.vue.d.ts +1 -0
  18. package/dist/components/filter-panel/FilterPanel.vue.d.ts +5 -4
  19. package/dist/components/filter-panel/facets/ColourFacet.vue.d.ts +1 -0
  20. package/dist/components/filter-panel/facets/ListFacet.vue.d.ts +1 -0
  21. package/dist/components/filter-panel/facets/RangeFacet.vue.d.ts +2 -1
  22. package/dist/components/filter-panel/facets/SizeFacet.vue.d.ts +1 -0
  23. package/dist/components/filter-panel/facets/ToggleFacet.vue.d.ts +1 -0
  24. package/dist/components/form-layout/FormLayout.vue.d.ts +2 -2
  25. package/dist/components/image/Image.vue.d.ts +3 -3
  26. package/dist/components/input/Input.vue.d.ts +7 -7
  27. package/dist/components/lightbox/Lightbox.vue.d.ts +2 -1
  28. package/dist/components/nav-menu/NavMenu.vue.d.ts +4 -3
  29. package/dist/components/pagination/Pagination.vue.d.ts +3 -2
  30. package/dist/components/popover/Popover.vue.d.ts +3 -3
  31. package/dist/components/quantity-stepper/QuantityStepper.vue.d.ts +2 -2
  32. package/dist/components/radio/Radio.vue.d.ts +1 -1
  33. package/dist/components/range-slider/RangeSlider.vue.d.ts +2 -1
  34. package/dist/components/search-bar/SearchBar.vue.d.ts +4 -3
  35. package/dist/components/search-bar/SearchResultsPanel.vue.d.ts +1 -1
  36. package/dist/components/search-modal/SearchModal.vue.d.ts +3 -2
  37. package/dist/components/select/MultiSelect.vue.d.ts +11 -10
  38. package/dist/components/select/Select.vue.d.ts +12 -11
  39. package/dist/components/select/SelectPanel.vue.d.ts +1 -1
  40. package/dist/components/site-form/SiteForm.vue.d.ts +1 -0
  41. package/dist/components/skeleton/Skeleton.vue.d.ts +1 -1
  42. package/dist/components/switch/Switch.vue.d.ts +1 -1
  43. package/dist/components/textarea/Textarea.vue.d.ts +3 -3
  44. package/dist/components/toast/Toast.vue.d.ts +2 -1
  45. package/dist/components/toast/Toaster.vue.d.ts +1 -0
  46. package/dist/components/unit-input/UnitInput.vue.d.ts +6 -6
  47. package/dist/index.d.ts +2 -0
  48. package/dist/index.js +4 -4
  49. package/dist/messages/en-US.d.ts +2 -0
  50. package/dist/messages/is-IS.js +1 -0
  51. package/dist/phone/PhoneInput.vue.d.ts +7 -6
  52. package/dist/phone/vee-validate.js +4 -4
  53. package/dist/phone.js +1 -1
  54. package/dist/resolver.js +1 -0
  55. package/dist/{useFieldControl-D1j54YON.js → useFieldControl-CGH6GEWM.js} +2 -2
  56. package/dist/{useMessages-CkhrRmu7.js → useMessages-CYnyGVRG.js} +2 -0
  57. package/dist/{usePopover-ECHpsSRF.js → useOptionList-CPHHDvPF.js} +1475 -1475
  58. package/dist/vee-validate/FieldAutocomplete.vue.d.ts +20 -0
  59. package/dist/vee-validate/Form.vue.d.ts +2 -2
  60. package/dist/vee-validate/index.d.ts +3 -2
  61. package/dist/vee-validate/types.d.ts +4 -1
  62. package/dist/vee-validate/useFieldControl.d.ts +1 -1
  63. package/dist/vee-validate.js +71 -4
  64. package/dist/vue-i18n.js +1 -1
  65. package/package.json +2 -2
@@ -41,9 +41,6 @@ declare const __VLS_base: import('vue').DefineComponent<NavMenuProps, {
41
41
  }>, {
42
42
  modelValue: number | null;
43
43
  classes: Partial<Record<import('./types.js').NavMenuPart, string>>;
44
- variant: NavMenuVariant;
45
- linkAs: string | import('vue').Component;
46
- ariaLabel: string;
47
44
  messages: Partial<{
48
45
  clear: string;
49
46
  close: string;
@@ -196,6 +193,7 @@ declare const __VLS_base: import('vue').DefineComponent<NavMenuProps, {
196
193
  formPendingMessage: string;
197
194
  stepCompleted: string;
198
195
  stepNotStarted: string;
196
+ suggestions: string;
199
197
  phoneCountry: (name: string, code: string) => string;
200
198
  phoneCountryList: string;
201
199
  phoneSearch: string;
@@ -205,6 +203,9 @@ declare const __VLS_base: import('vue').DefineComponent<NavMenuProps, {
205
203
  phoneInvalid: (country: string) => string;
206
204
  phoneInvalidNumber: string;
207
205
  }>;
206
+ variant: NavMenuVariant;
207
+ linkAs: string | import('vue').Component;
208
+ ariaLabel: string;
208
209
  drawerOpen: boolean;
209
210
  collapseBelow: NavMenuCollapse;
210
211
  drawerSide: import('../../index.js').DrawerSide;
@@ -5,9 +5,7 @@ declare const __VLS_export: import('vue').DefineComponent<PaginationProps, {}, {
5
5
  "onUpdate:page"?: ((page: number) => any) | undefined;
6
6
  }>, {
7
7
  classes: Partial<Record<import('./types.js').PaginationPart, string>>;
8
- linkAs: string | import('vue').Component;
9
8
  disabled: boolean;
10
- ariaLabel: string;
11
9
  messages: Partial<{
12
10
  clear: string;
13
11
  close: string;
@@ -160,6 +158,7 @@ declare const __VLS_export: import('vue').DefineComponent<PaginationProps, {}, {
160
158
  formPendingMessage: string;
161
159
  stepCompleted: string;
162
160
  stepNotStarted: string;
161
+ suggestions: string;
163
162
  phoneCountry: (name: string, code: string) => string;
164
163
  phoneCountryList: string;
165
164
  phoneSearch: string;
@@ -169,6 +168,8 @@ declare const __VLS_export: import('vue').DefineComponent<PaginationProps, {}, {
169
168
  phoneInvalid: (country: string) => string;
170
169
  phoneInvalidNumber: string;
171
170
  }>;
171
+ linkAs: string | import('vue').Component;
172
+ ariaLabel: string;
172
173
  compact: boolean;
173
174
  siblings: number;
174
175
  hrefForPage: (page: number) => string;
@@ -32,15 +32,15 @@ declare const __VLS_base: import('vue').DefineComponent<PopoverProps, {
32
32
  modelValue: boolean;
33
33
  classes: Partial<Record<import('./types.js').PopoverPart, string>>;
34
34
  disabled: boolean;
35
- ariaLabel: string;
36
- closeOnEscape: boolean;
37
35
  placement: import('../../index.js').FloatingPlacement;
38
36
  teleport: boolean;
39
37
  reference: import('@floating-ui/vue').ReferenceElement | null;
40
38
  offset: number;
41
39
  matchWidth: boolean | "exact";
40
+ ariaLabel: string;
41
+ closeOnEscape: boolean;
42
42
  viewportPadding: number;
43
- haspopup: "dialog" | "menu" | "true" | "grid" | "listbox" | "tree";
43
+ haspopup: "dialog" | "menu" | "true" | "listbox" | "grid" | "tree";
44
44
  labelledByTrigger: boolean;
45
45
  openOnArrowDown: boolean;
46
46
  focusOnOpen: boolean;
@@ -15,11 +15,11 @@ declare const __VLS_export: import('vue').DefineComponent<QuantityStepperProps,
15
15
  modelValue: number;
16
16
  classes: Partial<Record<import('./types.js').QuantityStepperPart, string>>;
17
17
  error: string;
18
- max: number;
19
18
  id: string;
19
+ min: number;
20
+ max: number;
20
21
  disabled: boolean;
21
22
  locale: string;
22
- min: number;
23
23
  itemName: string;
24
24
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
25
  declare const _default: typeof __VLS_export;
@@ -19,8 +19,8 @@ declare const __VLS_base: import('vue').DefineComponent<RadioProps, {}, {}, {},
19
19
  size: import('./types.js').RadioGroupSize;
20
20
  modelValue: RadioValue;
21
21
  classes: Partial<Record<import('./types.js').RadioPart, string>>;
22
- disabled: boolean;
23
22
  invalid: boolean;
23
+ disabled: boolean;
24
24
  hint: string;
25
25
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
26
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -25,6 +25,7 @@ declare const __VLS_base: import('vue').DefineComponent<RangeSliderProps, {}, {}
25
25
  label: string;
26
26
  modelValue: RangeSliderValue;
27
27
  classes: Partial<Record<import('./types.js').RangeSliderPart, string>>;
28
+ min: number;
28
29
  max: number;
29
30
  step: number;
30
31
  disabled: boolean;
@@ -180,6 +181,7 @@ declare const __VLS_base: import('vue').DefineComponent<RangeSliderProps, {}, {}
180
181
  formPendingMessage: string;
181
182
  stepCompleted: string;
182
183
  stepNotStarted: string;
184
+ suggestions: string;
183
185
  phoneCountry: (name: string, code: string) => string;
184
186
  phoneCountryList: string;
185
187
  phoneSearch: string;
@@ -189,7 +191,6 @@ declare const __VLS_base: import('vue').DefineComponent<RangeSliderProps, {}, {}
189
191
  phoneInvalid: (country: string) => string;
190
192
  phoneInvalidNumber: string;
191
193
  }>;
192
- min: number;
193
194
  formatValue: (value: number, end?: RangeSliderEnd) => string;
194
195
  inputs: boolean;
195
196
  largeStep: number;
@@ -25,11 +25,11 @@ declare const __VLS_base: import('vue').DefineComponent<SearchBarProps, {}, {},
25
25
  size: SearchBarSize;
26
26
  modelValue: string;
27
27
  classes: Partial<Record<import('./types.js').SearchBarPart, string>>;
28
- placeholder: string;
29
28
  results: import('./types.js').SearchResults;
30
29
  loading: boolean;
31
- pill: boolean;
30
+ placeholder: string;
32
31
  autofocus: boolean;
32
+ teleport: string | boolean;
33
33
  messages: Partial<{
34
34
  clear: string;
35
35
  close: string;
@@ -182,6 +182,7 @@ declare const __VLS_base: import('vue').DefineComponent<SearchBarProps, {}, {},
182
182
  formPendingMessage: string;
183
183
  stepCompleted: string;
184
184
  stepNotStarted: string;
185
+ suggestions: string;
185
186
  phoneCountry: (name: string, code: string) => string;
186
187
  phoneCountryList: string;
187
188
  phoneSearch: string;
@@ -191,8 +192,8 @@ declare const __VLS_base: import('vue').DefineComponent<SearchBarProps, {}, {},
191
192
  phoneInvalid: (country: string) => string;
192
193
  phoneInvalidNumber: string;
193
194
  }>;
195
+ pill: boolean;
194
196
  action: string;
195
- teleport: string | boolean;
196
197
  recent: string[];
197
198
  popular: string[];
198
199
  showRecent: boolean;
@@ -81,8 +81,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
81
81
  flat: boolean;
82
82
  classes: Partial<Record<SearchBarPart, string>>;
83
83
  placement: string;
84
- activeValue: string;
85
84
  panelStyle: Record<string, string>;
85
+ activeValue: string;
86
86
  viewAll: SearchRow;
87
87
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
88
88
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -32,10 +32,9 @@ declare const __VLS_base: import('vue').DefineComponent<SearchModalProps, {
32
32
  }>, {
33
33
  modelValue: boolean;
34
34
  classes: Partial<Record<import('./types.js').SearchModalPart, string>>;
35
- placeholder: string;
36
35
  results: import('./types.js').SearchResults;
37
36
  loading: boolean;
38
- ariaLabel: string;
37
+ placeholder: string;
39
38
  messages: Partial<{
40
39
  clear: string;
41
40
  close: string;
@@ -188,6 +187,7 @@ declare const __VLS_base: import('vue').DefineComponent<SearchModalProps, {
188
187
  formPendingMessage: string;
189
188
  stepCompleted: string;
190
189
  stepNotStarted: string;
190
+ suggestions: string;
191
191
  phoneCountry: (name: string, code: string) => string;
192
192
  phoneCountryList: string;
193
193
  phoneSearch: string;
@@ -197,6 +197,7 @@ declare const __VLS_base: import('vue').DefineComponent<SearchModalProps, {
197
197
  phoneInvalid: (country: string) => string;
198
198
  phoneInvalidNumber: string;
199
199
  }>;
200
+ ariaLabel: string;
200
201
  action: string;
201
202
  query: string;
202
203
  recent: string[];
@@ -80,14 +80,21 @@ declare const __VLS_base: import('vue').DefineComponent<MultiSelectProps, {}, {}
80
80
  modelValue: string[];
81
81
  classes: Partial<Record<import('./types.js').MultiSelectPart, string>>;
82
82
  required: boolean;
83
- placeholder: string;
84
83
  loading: boolean;
85
84
  selectAll: boolean;
86
- id: string;
87
85
  leadingIcon: import('../../index.js').IconComponent;
88
- disabled: boolean;
86
+ id: string;
87
+ placeholder: string;
89
88
  invalid: boolean;
90
89
  describedBy: string;
90
+ readonly: boolean;
91
+ disabled: boolean;
92
+ searchable: boolean;
93
+ searchPlaceholder: string;
94
+ placement: import('./types.js').SelectPlacement;
95
+ teleport: string | boolean;
96
+ creatable: boolean;
97
+ renderBatch: number;
91
98
  messages: Partial<{
92
99
  clear: string;
93
100
  close: string;
@@ -240,6 +247,7 @@ declare const __VLS_base: import('vue').DefineComponent<MultiSelectProps, {}, {}
240
247
  formPendingMessage: string;
241
248
  stepCompleted: string;
242
249
  stepNotStarted: string;
250
+ suggestions: string;
243
251
  phoneCountry: (name: string, code: string) => string;
244
252
  phoneCountryList: string;
245
253
  phoneSearch: string;
@@ -249,13 +257,6 @@ declare const __VLS_base: import('vue').DefineComponent<MultiSelectProps, {}, {}
249
257
  phoneInvalid: (country: string) => string;
250
258
  phoneInvalidNumber: string;
251
259
  }>;
252
- readonly: boolean;
253
- searchable: boolean;
254
- searchPlaceholder: string;
255
- placement: import('./types.js').SelectPlacement;
256
- teleport: string | boolean;
257
- creatable: boolean;
258
- renderBatch: number;
259
260
  showTags: boolean;
260
261
  tagPlacement: "below" | "inside";
261
262
  maxTagRows: number;
@@ -51,13 +51,21 @@ declare const __VLS_base: import('vue').DefineComponent<SelectProps, {}, {}, {},
51
51
  modelValue: string;
52
52
  classes: Partial<Record<import('./types.js').SelectPart, string>>;
53
53
  required: boolean;
54
- placeholder: string;
55
54
  loading: boolean;
56
- id: string;
57
55
  leadingIcon: import('../../index.js').IconComponent;
58
- disabled: boolean;
56
+ id: string;
57
+ placeholder: string;
58
+ clearable: boolean;
59
59
  invalid: boolean;
60
60
  describedBy: string;
61
+ readonly: boolean;
62
+ disabled: boolean;
63
+ searchable: boolean;
64
+ searchPlaceholder: string;
65
+ placement: import('./types.js').SelectPlacement;
66
+ teleport: string | boolean;
67
+ creatable: boolean;
68
+ renderBatch: number;
61
69
  messages: Partial<{
62
70
  clear: string;
63
71
  close: string;
@@ -210,6 +218,7 @@ declare const __VLS_base: import('vue').DefineComponent<SelectProps, {}, {}, {},
210
218
  formPendingMessage: string;
211
219
  stepCompleted: string;
212
220
  stepNotStarted: string;
221
+ suggestions: string;
213
222
  phoneCountry: (name: string, code: string) => string;
214
223
  phoneCountryList: string;
215
224
  phoneSearch: string;
@@ -219,14 +228,6 @@ declare const __VLS_base: import('vue').DefineComponent<SelectProps, {}, {}, {},
219
228
  phoneInvalid: (country: string) => string;
220
229
  phoneInvalidNumber: string;
221
230
  }>;
222
- clearable: boolean;
223
- readonly: boolean;
224
- searchable: boolean;
225
- searchPlaceholder: string;
226
- placement: import('./types.js').SelectPlacement;
227
- teleport: string | boolean;
228
- creatable: boolean;
229
- renderBatch: number;
230
231
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
231
232
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
232
233
  declare const _default: typeof __VLS_export;
@@ -105,12 +105,12 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
105
105
  loading: boolean;
106
106
  createOption: SelectOption;
107
107
  placement: string;
108
+ panelStyle: Record<string, string>;
108
109
  activeValue: string;
109
110
  labelledBy: string;
110
111
  fallbackLabel: string;
111
112
  loadingText: string;
112
113
  createText: string;
113
- panelStyle: Record<string, string>;
114
114
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
115
115
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
116
116
  declare const _default: typeof __VLS_export;
@@ -175,6 +175,7 @@ declare const __VLS_base: import('vue').DefineComponent<SiteFormProps, {}, {}, {
175
175
  formPendingMessage: string;
176
176
  stepCompleted: string;
177
177
  stepNotStarted: string;
178
+ suggestions: string;
178
179
  phoneCountry: (name: string, code: string) => string;
179
180
  phoneCountryList: string;
180
181
  phoneSearch: string;
@@ -3,8 +3,8 @@ declare const __VLS_export: import('vue').DefineComponent<SkeletonProps, {}, {},
3
3
  size: string;
4
4
  height: string;
5
5
  classes: Partial<Record<"line", string>>;
6
- variant: SkeletonVariant;
7
6
  width: string;
7
+ variant: SkeletonVariant;
8
8
  ratio: import('../../index.js').ImageRatio;
9
9
  lines: number;
10
10
  busyLabel: string | null;
@@ -24,8 +24,8 @@ declare const __VLS_base: import('vue').DefineComponent<SwitchProps, {}, {}, {},
24
24
  classes: Partial<Record<import('./types.js').SwitchPart, string>>;
25
25
  error: string;
26
26
  id: string;
27
- disabled: boolean;
28
27
  invalid: boolean;
28
+ disabled: boolean;
29
29
  requiredMark: boolean;
30
30
  description: string;
31
31
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -26,13 +26,13 @@ declare const __VLS_base: import('vue').DefineComponent<TextareaProps, {
26
26
  modelValue: string;
27
27
  classes: Partial<Record<import('./types.js').TextareaPart, string>>;
28
28
  required: boolean;
29
- placeholder: string;
30
29
  id: string;
31
- disabled: boolean;
30
+ placeholder: string;
31
+ clearable: boolean;
32
32
  invalid: boolean;
33
33
  describedBy: string;
34
- clearable: boolean;
35
34
  readonly: boolean;
35
+ disabled: boolean;
36
36
  maxLength: number;
37
37
  hardLimit: boolean;
38
38
  minHeight: string;
@@ -8,7 +8,6 @@ declare const __VLS_export: import('vue').DefineComponent<ToastProps, {}, {}, {}
8
8
  }>, {
9
9
  text: string;
10
10
  classes: Partial<Record<import('./types.js').ToastPart, string>>;
11
- variant: ToastVariant;
12
11
  messages: Partial<{
13
12
  clear: string;
14
13
  close: string;
@@ -161,6 +160,7 @@ declare const __VLS_export: import('vue').DefineComponent<ToastProps, {}, {}, {}
161
160
  formPendingMessage: string;
162
161
  stepCompleted: string;
163
162
  stepNotStarted: string;
163
+ suggestions: string;
164
164
  phoneCountry: (name: string, code: string) => string;
165
165
  phoneCountryList: string;
166
166
  phoneSearch: string;
@@ -170,6 +170,7 @@ declare const __VLS_export: import('vue').DefineComponent<ToastProps, {}, {}, {}
170
170
  phoneInvalid: (country: string) => string;
171
171
  phoneInvalidNumber: string;
172
172
  }>;
173
+ variant: ToastVariant;
173
174
  action: import('./types.js').ToastAction;
174
175
  closable: boolean;
175
176
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -160,6 +160,7 @@ declare const __VLS_export: import('vue').DefineComponent<ToasterProps, {}, {},
160
160
  formPendingMessage: string;
161
161
  stepCompleted: string;
162
162
  stepNotStarted: string;
163
+ suggestions: string;
163
164
  phoneCountry: (name: string, code: string) => string;
164
165
  phoneCountryList: string;
165
166
  phoneSearch: string;
@@ -30,22 +30,22 @@ declare const __VLS_base: import('vue').DefineComponent<UnitInputProps, {
30
30
  classes: Partial<Record<import('./types.js').UnitInputPart, string>>;
31
31
  required: boolean;
32
32
  unit: string;
33
- max: number;
33
+ leadingIcon: import('../../index.js').IconComponent;
34
34
  id: string;
35
+ min: number;
36
+ max: number;
35
37
  step: number;
36
- leadingIcon: import('../../index.js').IconComponent;
37
- disabled: boolean;
38
+ clearable: boolean;
38
39
  invalid: boolean;
39
40
  describedBy: string;
41
+ readonly: boolean;
42
+ disabled: boolean;
40
43
  locale: string;
41
44
  currency: string;
42
45
  narrowSymbol: boolean;
43
46
  maxFraction: number;
44
47
  isCurrency: boolean;
45
- min: number;
46
48
  enableDragAdjust: boolean;
47
- clearable: boolean;
48
- readonly: boolean;
49
49
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
50
50
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
51
51
  declare const _default: typeof __VLS_export;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { default as Accordion } from './components/accordion/Accordion.vue.js';
2
2
  export { default as AccordionItem } from './components/accordion/AccordionItem.vue.js';
3
+ export { default as Autocomplete } from './components/autocomplete/Autocomplete.vue.js';
3
4
  export { default as Avatar } from './components/avatar/Avatar.vue.js';
4
5
  export { default as AvatarGroup } from './components/avatar/AvatarGroup.vue.js';
5
6
  export { default as Badge } from './components/badge/Badge.vue.js';
@@ -64,6 +65,7 @@ export { default as VariantPicker } from './components/variant-picker/VariantPic
64
65
  export { default as VisuallyHidden } from './components/visually-hidden/VisuallyHidden.vue.js';
65
66
  export type { AccordionItemHeadingLevel, AccordionItemPart, AccordionItemProps, AccordionPart, AccordionProps, } from './components/accordion/types.js';
66
67
  export type { AppliedFilter, FilterFacet, FilterFacetLayout, FilterFacetSelection, FilterFacetType, FilterFacetValue, FilterPanelMode, FilterPanelPart, FilterPanelProps, FilterRemoval, FilterSelection, } from './components/filter-panel/types.js';
68
+ export type { AutocompleteOptionSlotProps, AutocompletePart, AutocompleteProps, AutocompleteSuggestion, } from './components/autocomplete/types.js';
67
69
  export type { AvatarGroupPart, AvatarGroupPerson, AvatarGroupProps, AvatarPart, AvatarProps, AvatarSize, } from './components/avatar/types.js';
68
70
  export type { BadgePart, BadgeProps, BadgeTone, BadgeVariant, StockBadgePart, StockBadgeProps, StockLevel, } from './components/badge/types.js';
69
71
  export type { BreadcrumbItem, BreadcrumbPart, BreadcrumbProps, } from './components/breadcrumb/types.js';
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { A as FIELD_SEARCH_APPEARANCE, B as LOCALE_KEY, C as FIELD_DISABLED, E as FIELD_LIVE, G as FIELD_KEY, H as provideEldraUiLocale, J as ICON_STROKE_WIDTH$6, K as Spinner_default, Q as useUiId, R as CURRENCY_KEY, U as useEldraUiCurrency, V as provideEldraUiCurrency, W as useEldraUiLocale, X as useControllableModel, Y as mergeClass, Z as joinIds, a as useFloating, i as useTeleportTarget, j as FIELD_SIZE, l as normalizeText, n as useOverlay, q as ICON_SIZE_CLASS, r as topLayerDialog, s as matchRange, t as usePopover, u as useListbox, v as FIELD_BASE, x as FIELD_CLEAR_BUTTON_BOX, z as DEFAULT_UI_LOCALE } from "./usePopover-ECHpsSRF.js";
1
+ import { $ as FIELD_KEY, A as ICON_STROKE_WIDTH$6, G as FIELD_SEARCH_APPEARANCE, I as FIELD_CLEAR_BUTTON_BOX, K as FIELD_SIZE, N as FIELD_BASE, R as FIELD_DISABLED, V as FIELD_LIVE, _ as useFloating, a as CURRENCY_KEY, c as provideEldraUiCurrency, d as useEldraUiLocale, et as mergeClass, f as Spinner_default, g as useTeleportTarget, h as topLayerDialog, k as ICON_SIZE_CLASS, l as provideEldraUiLocale, m as useOverlay, n as matchRange, nt as joinIds, o as DEFAULT_UI_LOCALE, p as usePopover, rt as useUiId, s as LOCALE_KEY, tt as useControllableModel, u as useEldraUiCurrency, v as normalizeText, y as useListbox } from "./useOptionList-CPHHDvPF.js";
2
2
  import { n as provideEldraScope, r as useEldraScope, t as ELDRA_SCOPE_KEY } from "./useEldraScope-BDbGzt7R.js";
3
- import { i as enUS, n as provideEldraUiMessages, r as useMessages, t as MESSAGES_KEY } from "./useMessages-CkhrRmu7.js";
4
- import { $ as FORM_SUBMITTING_KEY, A as UnitInput_default, B as useSlotPresence, C as Switch_default, D as defaultCharacterMeaning, E as applyMask, F as formatCurrency, G as CheckboxGroup_default, H as TAG_FILL, I as formatNumber, J as RequiredMark_default, K as Checkbox_default, L as formatUnit, M as currencyFractionDigits, N as currencySymbol, O as stripMask, P as defaultUnitFormat, Q as FORM_LAYOUT_KEY, R as localeSeparators, S as focusInvalid, T as Input_default, U as TAG_SHAPE, V as useHeadingTag, W as tagPadding, X as Button_default, Y as FieldError_default, Z as Icon_default, _ as optionCursor, a as claimShortcut, b as MultiSelect_default, c as SearchResultsPanel_default, d as INPUT, f as PLAIN_BOX_ONLY, g as labelRecipe, h as dotRecipe, i as SearchBar_default, j as createNumberFormat, k as CurrencyInput_default, l as RadioGroup_default, m as PLAIN_OPTION, n as Textarea_default, o as ownsShortcut, p as PLAIN_COLUMNS, q as VisuallyHidden_default, r as Select_default, s as releaseShortcut, t as VariantPicker_default, u as HINT, v as radioRecipe, w as filterNumericBeforeInput, x as FormLayout_default, y as QuantityStepper_default, z as parseLocaleNumber } from "./VariantPicker-BqLbiONX.js";
3
+ import { $ as defaultCharacterMeaning, A as defaultUnitFormat, B as CheckboxGroup_default, C as Switch_default, D as createNumberFormat, E as UnitInput_default, F as parseLocaleNumber, G as Button_default, H as VisuallyHidden_default, I as useHeadingTag, J as FORM_SUBMITTING_KEY, K as Icon_default, L as TAG_FILL, M as formatNumber, N as formatUnit, O as currencyFractionDigits, P as localeSeparators, Q as applyMask, R as TAG_SHAPE, S as focusInvalid, T as CurrencyInput_default, U as RequiredMark_default, V as Checkbox_default, W as FieldError_default, X as Input_default, Y as Autocomplete_default, Z as useSlotPresence, _ as optionCursor, a as claimShortcut, b as MultiSelect_default, c as SearchResultsPanel_default, d as INPUT, et as stripMask, f as PLAIN_BOX_ONLY, g as labelRecipe, h as dotRecipe, i as SearchBar_default, j as formatCurrency, k as currencySymbol, l as RadioGroup_default, m as PLAIN_OPTION, n as Textarea_default, o as ownsShortcut, p as PLAIN_COLUMNS, q as FORM_LAYOUT_KEY, r as Select_default, s as releaseShortcut, t as VariantPicker_default, u as HINT, v as radioRecipe, w as filterNumericBeforeInput, x as FormLayout_default, y as QuantityStepper_default, z as tagPadding } from "./VariantPicker-CKDdeFmV.js";
4
+ import { i as enUS, n as provideEldraUiMessages, r as useMessages, t as MESSAGES_KEY } from "./useMessages-CYnyGVRG.js";
5
5
  import { Comment, Fragment, Teleport, Text, Transition, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, inject, isRef, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, onServerPrefetch, onUnmounted, onUpdated, openBlock, provide, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRef, toValue, unref, useAttrs, useId, useSlots, useTemplateRef, vModelText, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
6
6
  import { dateTimeFormat } from "@eldrajs/sdk/format/date";
7
7
  // src/components/accordion/context.ts
@@ -16399,4 +16399,4 @@ var Tooltip_default = /* @__PURE__ */ defineComponent({
16399
16399
  function mixToward(color, toward, percent) {
16400
16400
  return `color-mix(in oklab, ${color}, ${toward} ${percent}%)`;
16401
16401
  }
16402
- export { ACCORDION_KEY, Accordion_default as Accordion, AccordionItem_default as AccordionItem, Avatar_default as Avatar, AvatarGroup_default as AvatarGroup, Badge_default as Badge, Breadcrumb_default as Breadcrumb, Button_default as Button, ButtonGroup_default as ButtonGroup, CHIP_GROUP_KEY, CURRENCY_KEY, Carousel_default as Carousel, Checkbox_default as Checkbox, CheckboxGroup_default as CheckboxGroup, Chip_default as Chip, ChipGroup_default as ChipGroup, Container_default as Container, ContentCard_default as ContentCard, CurrencyInput_default as CurrencyInput, DEFAULT_UI_LOCALE, Dialog_default as Dialog, Drawer_default as Drawer, ELDRA_SCOPE_KEY, EditorPlaceholder_default as EditorPlaceholder, EmptyState_default as EmptyState, FIELD_KEY, FILTER_SEARCH_FROM, FILTER_VALUES_SHOWN, FORM_LAYOUT_KEY, FORM_SUBMITTING_KEY, FeatureCard_default as FeatureCard, FieldWrapper_default as FieldWrapper, FilterPanel_default as FilterPanel, FormLayout_default as FormLayout, Icon_default as Icon, Image_default as Image, Input_default as Input, LOCALE_KEY, Lightbox_default as Lightbox, Link_default as Link, LoadMore_default as LoadMore, LogoItem_default as LogoItem, MESSAGES_KEY, MultiSelect_default as MultiSelect, NavMenu_default as NavMenu, Notice_default as Notice, Pagination_default as Pagination, Popover_default as Popover, Price_default as Price, ProductCard_default as ProductCard, QuantityStepper_default as QuantityStepper, Radio_default as Radio, RadioGroup_default as RadioGroup, RangeSlider_default as RangeSlider, Rating_default as Rating, SECTION_KEY, SWATCH_INK_LUMINANCE_THRESHOLD, SearchBar_default as SearchBar, SearchModal_default as SearchModal, Section_default as Section, Select_default as Select, SiteForm_default as SiteForm, Skeleton_default as Skeleton, Spinner_default as Spinner, StepIndicator_default as StepIndicator, StockBadge_default as StockBadge, Switch_default as Switch, TABS_KEY, TOAST_HOST_KEY, Tab_default as Tab, TabPanel_default as TabPanel, TablerIcon_default as TablerIcon, Tabs_default as Tabs, Textarea_default as Textarea, Toast_default as Toast, Toaster_default as Toaster, Tooltip_default as Tooltip, UnitInput_default as UnitInput, VariantPicker_default as VariantPicker, VisuallyHidden_default as VisuallyHidden, appliedFilters, applyMask, carouselPerViewStyle, clampRangeThumb, clearedSelection, closeDialog, createNumberFormat, currencyFractionDigits, currencySymbol, currentDialog, defaultCharacterMeaning, enUS as defaultMessages, enUS, defaultUnitFormat, dropOmittedFacets, facetCanShowAll, facetHasHiddenValues, facetIsRenderable, facetIsSearchable, facetRows, facetSelectedCount, facetStartsOpen, facetSummaryLabels, facetValues, filterNumericBeforeInput, foldForSearch, formatCurrency, formatDate, formatNumber, formatUnit, fractionDigits, frameAspectRatio, hasSelection, histogramBarInRange, initialsFromName, isOpenDialog, isRangeAtLimits, isRangeSelection, isValueDisabled, isValueSelected, joinIds, localeSeparators, matchesSearch, mixToward, nearestRangeThumb, normalizeRangeValue, normalizeText, openDialog, parseLocaleNumber, prefersReducedMotion, preloadTablerIcons, provideEldraScope, provideEldraUiCurrency, provideEldraUiLocale, provideEldraUiMessages, rangeKeyTransition, rangeLimits, rangeOf, rangePositionToValue, rangeStepDigits, rangeThumbLimits, rangeValueToPercent, ratingStarStates, removeValue, renderableFacets, resolveCarouselPerView, roundRatingToHalf, selectedValues, setRange, sizeSystemGroups, snapToRangeStep, stripMask, swatchInk, swatchLuminance, tablerIconName, toggleValue, topLayerDialog, useCarousel, useControllableModel, useDialog, useEldraUiCurrency, useEldraUiLocale, useFloating, useHeadingTag, useListbox, useMessages, useOverlay, usePopover, useSiteForm, useSlotPresence, useToast, useUiId, visibleFacetValues, zoomSizes };
16402
+ export { ACCORDION_KEY, Accordion_default as Accordion, AccordionItem_default as AccordionItem, Autocomplete_default as Autocomplete, Avatar_default as Avatar, AvatarGroup_default as AvatarGroup, Badge_default as Badge, Breadcrumb_default as Breadcrumb, Button_default as Button, ButtonGroup_default as ButtonGroup, CHIP_GROUP_KEY, CURRENCY_KEY, Carousel_default as Carousel, Checkbox_default as Checkbox, CheckboxGroup_default as CheckboxGroup, Chip_default as Chip, ChipGroup_default as ChipGroup, Container_default as Container, ContentCard_default as ContentCard, CurrencyInput_default as CurrencyInput, DEFAULT_UI_LOCALE, Dialog_default as Dialog, Drawer_default as Drawer, ELDRA_SCOPE_KEY, EditorPlaceholder_default as EditorPlaceholder, EmptyState_default as EmptyState, FIELD_KEY, FILTER_SEARCH_FROM, FILTER_VALUES_SHOWN, FORM_LAYOUT_KEY, FORM_SUBMITTING_KEY, FeatureCard_default as FeatureCard, FieldWrapper_default as FieldWrapper, FilterPanel_default as FilterPanel, FormLayout_default as FormLayout, Icon_default as Icon, Image_default as Image, Input_default as Input, LOCALE_KEY, Lightbox_default as Lightbox, Link_default as Link, LoadMore_default as LoadMore, LogoItem_default as LogoItem, MESSAGES_KEY, MultiSelect_default as MultiSelect, NavMenu_default as NavMenu, Notice_default as Notice, Pagination_default as Pagination, Popover_default as Popover, Price_default as Price, ProductCard_default as ProductCard, QuantityStepper_default as QuantityStepper, Radio_default as Radio, RadioGroup_default as RadioGroup, RangeSlider_default as RangeSlider, Rating_default as Rating, SECTION_KEY, SWATCH_INK_LUMINANCE_THRESHOLD, SearchBar_default as SearchBar, SearchModal_default as SearchModal, Section_default as Section, Select_default as Select, SiteForm_default as SiteForm, Skeleton_default as Skeleton, Spinner_default as Spinner, StepIndicator_default as StepIndicator, StockBadge_default as StockBadge, Switch_default as Switch, TABS_KEY, TOAST_HOST_KEY, Tab_default as Tab, TabPanel_default as TabPanel, TablerIcon_default as TablerIcon, Tabs_default as Tabs, Textarea_default as Textarea, Toast_default as Toast, Toaster_default as Toaster, Tooltip_default as Tooltip, UnitInput_default as UnitInput, VariantPicker_default as VariantPicker, VisuallyHidden_default as VisuallyHidden, appliedFilters, applyMask, carouselPerViewStyle, clampRangeThumb, clearedSelection, closeDialog, createNumberFormat, currencyFractionDigits, currencySymbol, currentDialog, defaultCharacterMeaning, enUS as defaultMessages, enUS, defaultUnitFormat, dropOmittedFacets, facetCanShowAll, facetHasHiddenValues, facetIsRenderable, facetIsSearchable, facetRows, facetSelectedCount, facetStartsOpen, facetSummaryLabels, facetValues, filterNumericBeforeInput, foldForSearch, formatCurrency, formatDate, formatNumber, formatUnit, fractionDigits, frameAspectRatio, hasSelection, histogramBarInRange, initialsFromName, isOpenDialog, isRangeAtLimits, isRangeSelection, isValueDisabled, isValueSelected, joinIds, localeSeparators, matchesSearch, mixToward, nearestRangeThumb, normalizeRangeValue, normalizeText, openDialog, parseLocaleNumber, prefersReducedMotion, preloadTablerIcons, provideEldraScope, provideEldraUiCurrency, provideEldraUiLocale, provideEldraUiMessages, rangeKeyTransition, rangeLimits, rangeOf, rangePositionToValue, rangeStepDigits, rangeThumbLimits, rangeValueToPercent, ratingStarStates, removeValue, renderableFacets, resolveCarouselPerView, roundRatingToHalf, selectedValues, setRange, sizeSystemGroups, snapToRangeStep, stripMask, swatchInk, swatchLuminance, tablerIconName, toggleValue, topLayerDialog, useCarousel, useControllableModel, useDialog, useEldraUiCurrency, useEldraUiLocale, useFloating, useHeadingTag, useListbox, useMessages, useOverlay, usePopover, useSiteForm, useSlotPresence, useToast, useUiId, visibleFacetValues, zoomSizes };
@@ -522,6 +522,8 @@ export declare const enUS: {
522
522
  stepCompleted: string;
523
523
  /** `StepIndicator`: the same, for a step after the current one. */
524
524
  stepNotStarted: string;
525
+ /** `Autocomplete`: the accessible name of the list of suggestions under the field. */
526
+ suggestions: string;
525
527
  /**
526
528
  * `PhoneInput` (`@eldrajs/ui/phone`): the country button's accessible name, the chosen country
527
529
  * and its dialling code ("Country: Iceland, +354").
@@ -194,6 +194,7 @@ var isIS = {
194
194
  formPendingMessage: "Við sendum þér tölvupóst. Smelltu á hlekkinn í honum til að staðfesta.",
195
195
  stepCompleted: "lokið",
196
196
  stepNotStarted: "ekki hafið",
197
+ suggestions: "Tillögur",
197
198
  phoneCountry: (name, code) => `Land: ${name}, ${code}`,
198
199
  phoneCountryList: "Land",
199
200
  phoneSearch: "Leita að landi eða landsnúmeri",
@@ -37,12 +37,14 @@ declare const __VLS_base: import('vue').DefineComponent<PhoneInputProps, {
37
37
  modelValue: string;
38
38
  classes: Partial<Record<import('./types.js').PhoneInputPart, string>>;
39
39
  required: boolean;
40
- placeholder: string | false;
41
40
  id: string;
42
- disabled: boolean;
41
+ placeholder: string | false;
42
+ autocomplete: string;
43
43
  invalid: boolean;
44
44
  describedBy: string;
45
- locale: string;
45
+ readonly: boolean;
46
+ disabled: boolean;
47
+ country: string;
46
48
  messages: Partial<{
47
49
  clear: string;
48
50
  close: string;
@@ -195,6 +197,7 @@ declare const __VLS_base: import('vue').DefineComponent<PhoneInputProps, {
195
197
  formPendingMessage: string;
196
198
  stepCompleted: string;
197
199
  stepNotStarted: string;
200
+ suggestions: string;
198
201
  phoneCountry: (name: string, code: string) => string;
199
202
  phoneCountryList: string;
200
203
  phoneSearch: string;
@@ -204,9 +207,7 @@ declare const __VLS_base: import('vue').DefineComponent<PhoneInputProps, {
204
207
  phoneInvalid: (country: string) => string;
205
208
  phoneInvalidNumber: string;
206
209
  }>;
207
- readonly: boolean;
208
- country: string;
209
- autocomplete: string;
210
+ locale: string;
210
211
  defaultCountry: string;
211
212
  preferredCountries: string[];
212
213
  countries: string[];
@@ -1,7 +1,7 @@
1
- import { W as useEldraUiLocale } from "../usePopover-ECHpsSRF.js";
2
- import { r as useMessages } from "../useMessages-CkhrRmu7.js";
3
- import { a as useControlProps, n as FIELD_ONLY, o as useFieldControl, r as FIELD_VALIDATION_DEFAULTS } from "../useFieldControl-D1j54YON.js";
4
- import { r as phoneRule, t as PhoneInput_default } from "../PhoneInput-CX83wgD0.js";
1
+ import { d as useEldraUiLocale } from "../useOptionList-CPHHDvPF.js";
2
+ import { r as useMessages } from "../useMessages-CYnyGVRG.js";
3
+ import { a as useControlProps, n as FIELD_ONLY, o as useFieldControl, r as FIELD_VALIDATION_DEFAULTS } from "../useFieldControl-CGH6GEWM.js";
4
+ import { r as phoneRule, t as PhoneInput_default } from "../PhoneInput-BVH32MEg.js";
5
5
  import { computed, createBlock, createSlots, defineComponent, guardReactiveProps, isRef, mergeDefaults, mergeProps, normalizeProps, openBlock, reactive, ref, renderList, renderSlot, toRefs, unref, withCtx } from "vue";
6
6
  // src/phone/vee-validate/FieldPhoneInput.vue
7
7
  var FieldPhoneInput_default = /* @__PURE__ */ defineComponent({
package/dist/phone.js CHANGED
@@ -1,3 +1,3 @@
1
- import { a as parsePhone, c as phoneExample, i as isValidPhone, n as phoneCountryName, o as phoneCallingCode, r as phoneRule, s as phoneCountries, t as PhoneInput_default } from "./PhoneInput-CX83wgD0.js";
1
+ import { a as parsePhone, c as phoneExample, i as isValidPhone, n as phoneCountryName, o as phoneCallingCode, r as phoneRule, s as phoneCountries, t as PhoneInput_default } from "./PhoneInput-BVH32MEg.js";
2
2
  import { n as preloadCountryFlags } from "./CountryFlag-DOa8lOHp.js";
3
3
  export { PhoneInput_default as PhoneInput, isValidPhone, parsePhone, phoneCallingCode, phoneCountries, phoneCountryName, phoneExample, phoneRule, preloadCountryFlags as preloadPhoneFlags };
package/dist/resolver.js CHANGED
@@ -19,6 +19,7 @@
19
19
  var componentNames = [
20
20
  "Accordion",
21
21
  "AccordionItem",
22
+ "Autocomplete",
22
23
  "Avatar",
23
24
  "AvatarGroup",
24
25
  "Badge",
@@ -1,4 +1,4 @@
1
- import { G as FIELD_KEY, Q as useUiId } from "./usePopover-ECHpsSRF.js";
1
+ import { $ as FIELD_KEY, rt as useUiId } from "./useOptionList-CPHHDvPF.js";
2
2
  import { computed, inject, onMounted, onScopeDispose, shallowRef, watch } from "vue";
3
3
  import { FormContextKey, useField } from "vee-validate";
4
4
  // src/vee-validate/context.ts
@@ -85,7 +85,7 @@ var FIELD_ONLY = [
85
85
  * Each `Field*` is a thin SFC over this: `useField(name, rules, { label })` for the value and the
86
86
  * validation, the message the field **shows**, the `id` the form's error summary links to, and the
87
87
  * server error that stops being true as soon as the value changes. Keeping it here is what makes
88
- * the thirteen components agree on all of that rather than thirteen files drifting apart.
88
+ * the fourteen components agree on all of that rather than fourteen files drifting apart.
89
89
  *
90
90
  * **When a field validates, and when its message changes.** The spec's rule (Form layout →
91
91
  * Behaviour & motion) is "Validate on submit, then on blur for fields that were invalid after the
@@ -551,6 +551,8 @@ var enUS = {
551
551
  stepCompleted: "completed",
552
552
  /** `StepIndicator`: the same, for a step after the current one. */
553
553
  stepNotStarted: "not started",
554
+ /** `Autocomplete`: the accessible name of the list of suggestions under the field. */
555
+ suggestions: "Suggestions",
554
556
  /**
555
557
  * `PhoneInput` (`@eldrajs/ui/phone`): the country button's accessible name, the chosen country
556
558
  * and its dialling code ("Country: Iceland, +354").