@eldrajs/ui 0.3.12 → 0.3.14
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.
- package/CHANGELOG.md +4 -0
- package/README.md +18 -1
- package/dist/{PhoneInput-BVH32MEg.js → PhoneInput-B5AgJJVE.js} +1 -1
- package/dist/{VariantPicker-9sOtHHEk.js → VariantPicker-Buz_8mHq.js} +2 -2
- package/dist/components/autocomplete/Autocomplete.vue.d.ts +2 -0
- package/dist/components/chip/Chip.vue.d.ts +2 -0
- package/dist/components/dialog/Dialog.vue.d.ts +2 -0
- package/dist/components/drawer/Drawer.vue.d.ts +2 -0
- package/dist/components/filter-panel/FilterGroup.vue.d.ts +2 -0
- package/dist/components/filter-panel/FilterPanel.vue.d.ts +2 -0
- package/dist/components/filter-panel/facets/ColourFacet.vue.d.ts +2 -0
- package/dist/components/filter-panel/facets/ListFacet.vue.d.ts +2 -0
- package/dist/components/filter-panel/facets/RangeFacet.vue.d.ts +2 -0
- package/dist/components/filter-panel/facets/SizeFacet.vue.d.ts +2 -0
- package/dist/components/filter-panel/facets/ToggleFacet.vue.d.ts +2 -0
- package/dist/components/lightbox/Lightbox.vue.d.ts +3 -0
- package/dist/components/lightbox/types.d.ts +9 -1
- package/dist/components/lightbox/zoom.d.ts +32 -0
- package/dist/components/nav-menu/NavMenu.vue.d.ts +2 -0
- package/dist/components/pagination/Pagination.vue.d.ts +2 -0
- package/dist/components/range-slider/RangeSlider.vue.d.ts +2 -0
- package/dist/components/search-bar/SearchBar.vue.d.ts +2 -0
- package/dist/components/search-modal/SearchModal.vue.d.ts +2 -0
- package/dist/components/select/MultiSelect.vue.d.ts +2 -0
- package/dist/components/select/Select.vue.d.ts +2 -0
- package/dist/components/site-form/SiteForm.vue.d.ts +2 -0
- package/dist/components/toast/Toast.vue.d.ts +2 -0
- package/dist/components/toast/Toaster.vue.d.ts +2 -0
- package/dist/components.css +58 -0
- package/dist/composables/dialogStack.d.ts +2 -1
- package/dist/index.js +419 -39
- package/dist/messages/en-US.d.ts +4 -0
- package/dist/messages/is-IS.js +2 -0
- package/dist/phone/PhoneInput.vue.d.ts +2 -0
- package/dist/phone/vee-validate.js +2 -2
- package/dist/phone.js +1 -1
- package/dist/style.css +58 -0
- package/dist/{useMessages-CYnyGVRG.js → useMessages-CrSnIuLt.js} +4 -0
- package/dist/vee-validate.js +2 -2
- package/dist/vue-i18n.js +1 -1
- package/package.json +1 -1
package/dist/messages/en-US.d.ts
CHANGED
|
@@ -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. */
|
package/dist/messages/is-IS.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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
|
}
|
|
@@ -1502,6 +1506,10 @@
|
|
|
1502
1506
|
flex: 14rem;
|
|
1503
1507
|
}
|
|
1504
1508
|
|
|
1509
|
+
.eldra\:flex-auto {
|
|
1510
|
+
flex: auto;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1505
1513
|
.eldra\:shrink-0 {
|
|
1506
1514
|
flex-shrink: 0;
|
|
1507
1515
|
}
|
|
@@ -1685,6 +1693,14 @@
|
|
|
1685
1693
|
cursor: progress;
|
|
1686
1694
|
}
|
|
1687
1695
|
|
|
1696
|
+
.eldra\:cursor-zoom-in {
|
|
1697
|
+
cursor: zoom-in;
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
.eldra\:cursor-zoom-out {
|
|
1701
|
+
cursor: zoom-out;
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1688
1704
|
.eldra\:touch-pan-x {
|
|
1689
1705
|
--tw-pan-x: pan-x;
|
|
1690
1706
|
touch-action: var(--tw-pan-x, ) var(--tw-pan-y, ) var(--tw-pinch-zoom, );
|
|
@@ -2337,6 +2353,16 @@
|
|
|
2337
2353
|
}
|
|
2338
2354
|
}
|
|
2339
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
|
+
|
|
2340
2366
|
.eldra\:bg-\[color-mix\(in_oklab\,var\(--eldra-color-text\)_94\%\,transparent\)\] {
|
|
2341
2367
|
background-color: var(--eldra-color-text);
|
|
2342
2368
|
}
|
|
@@ -4188,6 +4214,16 @@
|
|
|
4188
4214
|
}
|
|
4189
4215
|
}
|
|
4190
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
|
+
|
|
4191
4227
|
.eldra\:hover\:bg-\[color-mix\(in_oklab\,var\(--eldra-dialog-text\,var\(--eldra-color-text\)\)\,transparent_94\%\)\]:hover {
|
|
4192
4228
|
background-color: var(--eldra-dialog-text, var(--eldra-color-text));
|
|
4193
4229
|
}
|
|
@@ -4283,6 +4319,10 @@
|
|
|
4283
4319
|
}
|
|
4284
4320
|
}
|
|
4285
4321
|
|
|
4322
|
+
.eldra\:focus-visible\:opacity-100:focus-visible {
|
|
4323
|
+
opacity: 1;
|
|
4324
|
+
}
|
|
4325
|
+
|
|
4286
4326
|
.eldra\:active\:scale-\[0\.98\]:active {
|
|
4287
4327
|
scale: .98;
|
|
4288
4328
|
}
|
|
@@ -4445,6 +4485,14 @@
|
|
|
4445
4485
|
user-select: none;
|
|
4446
4486
|
}
|
|
4447
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
|
+
|
|
4448
4496
|
@media (prefers-reduced-motion: reduce) {
|
|
4449
4497
|
.eldra\:motion-reduce\:animate-eldra-dialog-in-reduced {
|
|
4450
4498
|
animation: .2s linear eldra-dialog-in-reduced;
|
|
@@ -4919,6 +4967,16 @@
|
|
|
4919
4967
|
.eldra\:\[\&\>a\:first-child\]\:me-auto > a:first-child {
|
|
4920
4968
|
margin-inline-end: auto;
|
|
4921
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
|
+
}
|
|
4922
4980
|
}
|
|
4923
4981
|
|
|
4924
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. */
|
package/dist/vee-validate.js
CHANGED
|
@@ -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-
|
|
2
|
-
import { r as useMessages } from "./useMessages-
|
|
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-
|
|
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.
|
|
3
|
+
"version": "0.3.14",
|
|
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",
|