@eldrajs/ui 0.3.13 → 0.3.15

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 (40) hide show
  1. package/CHANGELOG.md +3 -1
  2. package/README.md +18 -1
  3. package/dist/{PhoneInput-BVH32MEg.js → PhoneInput-B5AgJJVE.js} +1 -1
  4. package/dist/{VariantPicker-CHaKOzYT.js → VariantPicker-Buz_8mHq.js} +1 -1
  5. package/dist/components/autocomplete/Autocomplete.vue.d.ts +2 -0
  6. package/dist/components/chip/Chip.vue.d.ts +2 -0
  7. package/dist/components/dialog/Dialog.vue.d.ts +2 -0
  8. package/dist/components/drawer/Drawer.vue.d.ts +2 -0
  9. package/dist/components/filter-panel/FilterGroup.vue.d.ts +2 -0
  10. package/dist/components/filter-panel/FilterPanel.vue.d.ts +2 -0
  11. package/dist/components/filter-panel/facets/ColourFacet.vue.d.ts +2 -0
  12. package/dist/components/filter-panel/facets/ListFacet.vue.d.ts +2 -0
  13. package/dist/components/filter-panel/facets/RangeFacet.vue.d.ts +2 -0
  14. package/dist/components/filter-panel/facets/SizeFacet.vue.d.ts +2 -0
  15. package/dist/components/filter-panel/facets/ToggleFacet.vue.d.ts +2 -0
  16. package/dist/components/lightbox/Lightbox.vue.d.ts +3 -0
  17. package/dist/components/lightbox/types.d.ts +9 -1
  18. package/dist/components/lightbox/zoom.d.ts +32 -0
  19. package/dist/components/nav-menu/NavMenu.vue.d.ts +2 -0
  20. package/dist/components/pagination/Pagination.vue.d.ts +2 -0
  21. package/dist/components/range-slider/RangeSlider.vue.d.ts +2 -0
  22. package/dist/components/search-bar/SearchBar.vue.d.ts +2 -0
  23. package/dist/components/search-modal/SearchModal.vue.d.ts +2 -0
  24. package/dist/components/select/MultiSelect.vue.d.ts +2 -0
  25. package/dist/components/select/Select.vue.d.ts +2 -0
  26. package/dist/components/site-form/SiteForm.vue.d.ts +2 -0
  27. package/dist/components/toast/Toast.vue.d.ts +2 -0
  28. package/dist/components/toast/Toaster.vue.d.ts +2 -0
  29. package/dist/components.css +54 -0
  30. package/dist/index.js +376 -36
  31. package/dist/messages/en-US.d.ts +4 -0
  32. package/dist/messages/is-IS.js +2 -0
  33. package/dist/phone/PhoneInput.vue.d.ts +2 -0
  34. package/dist/phone/vee-validate.js +2 -2
  35. package/dist/phone.js +1 -1
  36. package/dist/style.css +54 -0
  37. package/dist/{useMessages-CYnyGVRG.js → useMessages-CrSnIuLt.js} +4 -0
  38. package/dist/vee-validate.js +2 -2
  39. package/dist/vue-i18n.js +1 -1
  40. package/package.json +2 -2
@@ -169,6 +169,10 @@ export declare const enUS: {
169
169
  * `goToImage` above), the spec gives the track a specific, real word here rather than leaving it
170
170
  * to this package's own generic choice, so it gets its own key instead of reusing `slides`. */
171
171
  lightboxImages: string;
172
+ /** A `Lightbox` (`zoom`) button's name while the image is fitted to the screen. */
173
+ lightboxZoomIn: string;
174
+ /** The same button's name while the image is zoomed. */
175
+ lightboxZoomOut: string;
172
176
  /** A `Textarea`'s remaining-characters hint, announced once at 80% of the limit. */
173
177
  charactersLeft: (n: number) => string;
174
178
  /** A `Textarea`'s over-the-limit hint, announced once when the limit is passed. */
@@ -84,6 +84,8 @@ var isIS = {
84
84
  imageOf: (position, total) => `${position} af ${total}`,
85
85
  goToImage: (n) => `Fara á mynd ${n}`,
86
86
  lightboxImages: "Myndir",
87
+ lightboxZoomIn: "Stækka mynd",
88
+ lightboxZoomOut: "Minnka mynd",
87
89
  charactersLeft: (n) => `${n} ${singular(n) ? "stafur" : "stafir"} eftir`,
88
90
  overLimit: (n) => `Yfir hámarkinu um ${n}`,
89
91
  soldOut: "Uppselt",
@@ -96,6 +96,8 @@ declare const __VLS_base: import('vue').DefineComponent<PhoneInputProps, {
96
96
  imageOf: (position: number, total: number) => string;
97
97
  goToImage: (n: number) => string;
98
98
  lightboxImages: string;
99
+ lightboxZoomIn: string;
100
+ lightboxZoomOut: string;
99
101
  charactersLeft: (n: number) => string;
100
102
  overLimit: (n: number) => string;
101
103
  soldOut: string;
@@ -1,7 +1,7 @@
1
1
  import { d as useEldraUiLocale } from "../useOptionList-CPHHDvPF.js";
2
- import { r as useMessages } from "../useMessages-CYnyGVRG.js";
2
+ import { r as useMessages } from "../useMessages-CrSnIuLt.js";
3
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";
4
+ import { r as phoneRule, t as PhoneInput_default } from "../PhoneInput-B5AgJJVE.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-BVH32MEg.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-B5AgJJVE.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/style.css CHANGED
@@ -617,6 +617,10 @@
617
617
  bottom: 0;
618
618
  }
619
619
 
620
+ .eldra\:bottom-3 {
621
+ bottom: var(--eldra-space-3);
622
+ }
623
+
620
624
  .eldra\:bottom-4 {
621
625
  bottom: var(--eldra-space-4);
622
626
  }
@@ -1689,6 +1693,14 @@
1689
1693
  cursor: progress;
1690
1694
  }
1691
1695
 
1696
+ .eldra\:cursor-zoom-in {
1697
+ cursor: zoom-in;
1698
+ }
1699
+
1700
+ .eldra\:cursor-zoom-out {
1701
+ cursor: zoom-out;
1702
+ }
1703
+
1692
1704
  .eldra\:touch-pan-x {
1693
1705
  --tw-pan-x: pan-x;
1694
1706
  touch-action: var(--tw-pan-x, ) var(--tw-pan-y, ) var(--tw-pinch-zoom, );
@@ -2341,6 +2353,16 @@
2341
2353
  }
2342
2354
  }
2343
2355
 
2356
+ .eldra\:bg-\[color-mix\(in_oklab\,var\(--eldra-color-text\)_60\%\,transparent\)\] {
2357
+ background-color: var(--eldra-color-text);
2358
+ }
2359
+
2360
+ @supports (color: color-mix(in lab, red, red)) {
2361
+ .eldra\:bg-\[color-mix\(in_oklab\,var\(--eldra-color-text\)_60\%\,transparent\)\] {
2362
+ background-color: color-mix(in oklab,var(--eldra-color-text) 60%,transparent);
2363
+ }
2364
+ }
2365
+
2344
2366
  .eldra\:bg-\[color-mix\(in_oklab\,var\(--eldra-color-text\)_94\%\,transparent\)\] {
2345
2367
  background-color: var(--eldra-color-text);
2346
2368
  }
@@ -4192,6 +4214,16 @@
4192
4214
  }
4193
4215
  }
4194
4216
 
4217
+ .eldra\:hover\:bg-\[color-mix\(in_oklab\,var\(--eldra-color-text\)_80\%\,transparent\)\]:hover {
4218
+ background-color: var(--eldra-color-text);
4219
+ }
4220
+
4221
+ @supports (color: color-mix(in lab, red, red)) {
4222
+ .eldra\:hover\:bg-\[color-mix\(in_oklab\,var\(--eldra-color-text\)_80\%\,transparent\)\]:hover {
4223
+ background-color: color-mix(in oklab,var(--eldra-color-text) 80%,transparent);
4224
+ }
4225
+ }
4226
+
4195
4227
  .eldra\:hover\:bg-\[color-mix\(in_oklab\,var\(--eldra-dialog-text\,var\(--eldra-color-text\)\)\,transparent_94\%\)\]:hover {
4196
4228
  background-color: var(--eldra-dialog-text, var(--eldra-color-text));
4197
4229
  }
@@ -4287,6 +4319,10 @@
4287
4319
  }
4288
4320
  }
4289
4321
 
4322
+ .eldra\:focus-visible\:opacity-100:focus-visible {
4323
+ opacity: 1;
4324
+ }
4325
+
4290
4326
  .eldra\:active\:scale-\[0\.98\]:active {
4291
4327
  scale: .98;
4292
4328
  }
@@ -4449,6 +4485,14 @@
4449
4485
  user-select: none;
4450
4486
  }
4451
4487
 
4488
+ .eldra\:data-\[zoomed\=true\]\:overflow-hidden[data-zoomed="true"] {
4489
+ overflow: hidden;
4490
+ }
4491
+
4492
+ .eldra\:data-\[zoomed\=true\]\:overflow-x-hidden[data-zoomed="true"] {
4493
+ overflow-x: hidden;
4494
+ }
4495
+
4452
4496
  @media (prefers-reduced-motion: reduce) {
4453
4497
  .eldra\:motion-reduce\:animate-eldra-dialog-in-reduced {
4454
4498
  animation: .2s linear eldra-dialog-in-reduced;
@@ -4923,6 +4967,16 @@
4923
4967
  .eldra\:\[\&\>a\:first-child\]\:me-auto > a:first-child {
4924
4968
  margin-inline-end: auto;
4925
4969
  }
4970
+
4971
+ @media (hover: none) {
4972
+ .eldra\:\[\@media\(hover\:none\)\]\:opacity-100 {
4973
+ opacity: 1;
4974
+ }
4975
+ }
4976
+
4977
+ [data-zoomed="true"] .eldra\:\[\[data-zoomed\=true\]_\&\]\:overflow-visible {
4978
+ overflow: visible;
4979
+ }
4926
4980
  }
4927
4981
 
4928
4982
  @layer utilities;
@@ -192,6 +192,10 @@ var enUS = {
192
192
  * `goToImage` above), the spec gives the track a specific, real word here rather than leaving it
193
193
  * to this package's own generic choice, so it gets its own key instead of reusing `slides`. */
194
194
  lightboxImages: "Images",
195
+ /** A `Lightbox` (`zoom`) button's name while the image is fitted to the screen. */
196
+ lightboxZoomIn: "Zoom in",
197
+ /** The same button's name while the image is zoomed. */
198
+ lightboxZoomOut: "Zoom out",
195
199
  /** A `Textarea`'s remaining-characters hint, announced once at 80% of the limit. */
196
200
  charactersLeft: (n) => `${n} ${n === 1 ? "character" : "characters"} left`,
197
201
  /** A `Textarea`'s over-the-limit hint, announced once when the limit is passed. */
@@ -1,5 +1,5 @@
1
- import { B as CheckboxGroup_default, C as Switch_default, E as UnitInput_default, S as focusInvalid, T as CurrencyInput_default, V as Checkbox_default, X as Input_default, Y as Autocomplete_default, b as MultiSelect_default, i as SearchBar_default, l as RadioGroup_default, n as Textarea_default, r as Select_default, t as VariantPicker_default, x as FormLayout_default, y as QuantityStepper_default } from "./VariantPicker-CHaKOzYT.js";
2
- import { r as useMessages } from "./useMessages-CYnyGVRG.js";
1
+ import { B as CheckboxGroup_default, C as Switch_default, E as UnitInput_default, S as focusInvalid, T as CurrencyInput_default, V as Checkbox_default, X as Input_default, Y as Autocomplete_default, b as MultiSelect_default, i as SearchBar_default, l as RadioGroup_default, n as Textarea_default, r as Select_default, t as VariantPicker_default, x as FormLayout_default, y as QuantityStepper_default } from "./VariantPicker-Buz_8mHq.js";
2
+ import { r as useMessages } from "./useMessages-CrSnIuLt.js";
3
3
  import { a as useControlProps, c as FIELD_ANCHORS_KEY, i as FIELD_VALIDATION_PROPS, l as FIELD_MESSAGES_KEY, n as FIELD_ONLY, o as useFieldControl, r as FIELD_VALIDATION_DEFAULTS, s as API_ERRORS_KEY, t as FIELD_CHOICE_VALIDATION_DEFAULTS } from "./useFieldControl-CGH6GEWM.js";
4
4
  import { r as useEldraScope } from "./useEldraScope-BDbGzt7R.js";
5
5
  import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createSlots, createTextVNode, defineComponent, guardReactiveProps, isRef, mergeDefaults, mergeProps, nextTick, normalizeClass, normalizeProps, onMounted, openBlock, provide, ref, renderList, renderSlot, toDisplayString, unref, watch, withCtx } from "vue";
package/dist/vue-i18n.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as enUS, n as provideEldraUiMessages } from "./useMessages-CYnyGVRG.js";
1
+ import { i as enUS, n as provideEldraUiMessages } from "./useMessages-CrSnIuLt.js";
2
2
  import { t as formatConjunctionList } from "./listFormat-D9ecpDMT.js";
3
3
  import { numberFormat } from "@eldrajs/sdk/format";
4
4
  import { useI18n } from "vue-i18n";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eldrajs/ui",
3
- "version": "0.3.13",
3
+ "version": "0.3.15",
4
4
  "description": "Accessible Vue 3 core components for Eldra storefronts: buttons, forms, selects, cards, overlays and navigation, themed through CSS design tokens.",
5
5
  "keywords": [
6
6
  "accessible",
@@ -77,7 +77,7 @@
77
77
  "dependencies": {
78
78
  "@floating-ui/vue": "^1.1.5",
79
79
  "tailwind-merge": "^3.0.0",
80
- "@eldrajs/sdk": "^0.5.1"
80
+ "@eldrajs/sdk": "^0.5.2"
81
81
  },
82
82
  "devDependencies": {
83
83
  "@playwright/test": "1.62.1",