@eldrajs/ui 0.3.20 → 0.3.22
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 +23 -0
- package/README.md +71 -31
- package/dist/{PhoneInput-CHTpjbtS.js → PhoneInput-D_z9MuDw.js} +2 -2
- package/dist/{VariantPicker-BLuaCwee.js → VariantPicker-DgDBOM-w.js} +527 -314
- package/dist/components/autocomplete/Autocomplete.vue.d.ts +2 -0
- package/dist/components/chip/Chip.vue.d.ts +2 -0
- package/dist/components/currency-input/CurrencyInput.vue.d.ts +5 -1
- package/dist/components/currency-picker/CurrencyPicker.vue.d.ts +27 -1
- package/dist/components/currency-picker/types.d.ts +2 -1
- 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 +2 -0
- package/dist/components/load-more/LoadMore.vue.d.ts +1 -1
- package/dist/components/nav-menu/NavMenu.vue.d.ts +5 -2
- package/dist/components/nav-menu/NavMenuDrawerList.vue.d.ts +39 -0
- package/dist/components/nav-menu/navLinks.d.ts +9 -0
- package/dist/components/nav-menu/types.d.ts +22 -2
- package/dist/components/pagination/Pagination.vue.d.ts +2 -0
- package/dist/components/product-card/ProductCard.vue.d.ts +6 -0
- package/dist/components/product-card/types.d.ts +25 -2
- 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/unit-input/UnitInput.vue.d.ts +8 -0
- package/dist/components/unit-input/types.d.ts +13 -1
- package/dist/components.css +45 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +699 -331
- package/dist/messages/en-US.d.ts +4 -0
- package/dist/messages/is-IS.js +3 -1
- package/dist/phone/PhoneInput.vue.d.ts +2 -0
- package/dist/phone/vee-validate.js +4 -4
- package/dist/phone.js +1 -1
- package/dist/style.css +45 -0
- package/dist/{useFieldControl-B1JvPEeM.js → useFieldControl-D_h1RWyU.js} +18 -7
- package/dist/{useMessages-BdN9F1cW.js → useMessages-D8bTGX7c.js} +5 -1
- package/dist/{useOptionList-UMUMayec.js → useOptionList-DuAKag8J.js} +1 -0
- package/dist/utilities.css +23 -0
- package/dist/utils/amount.d.ts +71 -0
- package/dist/vee-validate/useFieldControl.d.ts +6 -0
- package/dist/vee-validate.js +35 -5
- package/dist/vue-i18n.js +1 -1
- package/package.json +2 -2
package/dist/components.css
CHANGED
|
@@ -834,6 +834,10 @@
|
|
|
834
834
|
field-sizing: content;
|
|
835
835
|
}
|
|
836
836
|
|
|
837
|
+
.eldra\:aspect-\(--eldra-nav-menu-card-aspect\) {
|
|
838
|
+
aspect-ratio: var(--eldra-nav-menu-card-aspect);
|
|
839
|
+
}
|
|
840
|
+
|
|
837
841
|
.eldra\:aspect-square {
|
|
838
842
|
aspect-ratio: 1;
|
|
839
843
|
}
|
|
@@ -1037,6 +1041,10 @@
|
|
|
1037
1041
|
height: 1em;
|
|
1038
1042
|
}
|
|
1039
1043
|
|
|
1044
|
+
.eldra\:h-\[calc\(100dvh-var\(--eldra-nav-menu-drawer-top\,0px\)\)\] {
|
|
1045
|
+
height: calc(100dvh - var(--eldra-nav-menu-drawer-top, 0px));
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1040
1048
|
.eldra\:h-auto {
|
|
1041
1049
|
height: auto;
|
|
1042
1050
|
}
|
|
@@ -1412,6 +1420,11 @@
|
|
|
1412
1420
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1413
1421
|
}
|
|
1414
1422
|
|
|
1423
|
+
.eldra\:-translate-y-1 {
|
|
1424
|
+
--tw-translate-y: calc(var(--eldra-space-1) * -1);
|
|
1425
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1415
1428
|
.eldra\:-translate-y-1\/2 {
|
|
1416
1429
|
--tw-translate-y: calc(calc(1 / 2 * 100%) * -1);
|
|
1417
1430
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -1535,6 +1548,10 @@
|
|
|
1535
1548
|
animation: eldra-lightbox-in var(--eldra-duration-slow) var(--eldra-ease-out);
|
|
1536
1549
|
}
|
|
1537
1550
|
|
|
1551
|
+
.eldra\:animate-eldra-menu-in {
|
|
1552
|
+
animation: eldra-menu-in var(--eldra-duration-base) var(--eldra-ease-out);
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1538
1555
|
.eldra\:animate-eldra-spin {
|
|
1539
1556
|
animation: .7s linear infinite eldra-spin;
|
|
1540
1557
|
}
|
|
@@ -3708,6 +3725,12 @@
|
|
|
3708
3725
|
filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
|
|
3709
3726
|
}
|
|
3710
3727
|
|
|
3728
|
+
.eldra\:transition-\[opacity\,translate\,clip-path\] {
|
|
3729
|
+
transition-property: opacity, translate, clip-path;
|
|
3730
|
+
transition-timing-function: var(--tw-ease, var(--eldra-default-transition-timing-function));
|
|
3731
|
+
transition-duration: var(--tw-duration, var(--eldra-default-transition-duration));
|
|
3732
|
+
}
|
|
3733
|
+
|
|
3711
3734
|
.eldra\:transition-\[rotate\] {
|
|
3712
3735
|
transition-property: rotate;
|
|
3713
3736
|
transition-timing-function: var(--tw-ease, var(--eldra-default-transition-timing-function));
|
|
@@ -3851,6 +3874,14 @@
|
|
|
3851
3874
|
--eldra-radio-card-selected-color: var(--eldra-color-danger);
|
|
3852
3875
|
}
|
|
3853
3876
|
|
|
3877
|
+
.eldra\:\[clip-path\:inset\(0\)\] {
|
|
3878
|
+
clip-path: inset(0);
|
|
3879
|
+
}
|
|
3880
|
+
|
|
3881
|
+
.eldra\:\[clip-path\:inset\(0_0_65\%_0\)\] {
|
|
3882
|
+
clip-path: inset(0 0 65%);
|
|
3883
|
+
}
|
|
3884
|
+
|
|
3854
3885
|
.eldra\:eldra-rating-half {
|
|
3855
3886
|
clip-path: inset(0 50% 0 0);
|
|
3856
3887
|
}
|
|
@@ -5087,6 +5118,20 @@
|
|
|
5087
5118
|
}
|
|
5088
5119
|
}
|
|
5089
5120
|
|
|
5121
|
+
@keyframes eldra-menu-in {
|
|
5122
|
+
from {
|
|
5123
|
+
opacity: 0;
|
|
5124
|
+
clip-path: inset(0 -3rem 65%);
|
|
5125
|
+
transform: translateY(-.25rem);
|
|
5126
|
+
}
|
|
5127
|
+
|
|
5128
|
+
to {
|
|
5129
|
+
opacity: 1;
|
|
5130
|
+
clip-path: inset(0 -3rem -3rem);
|
|
5131
|
+
transform: none;
|
|
5132
|
+
}
|
|
5133
|
+
}
|
|
5134
|
+
|
|
5090
5135
|
[data-section-bg="none"] + [data-section-bg="none"], [data-section-bg="surface"] + [data-section-bg="surface"], [data-section-bg="surface-strong"] + [data-section-bg="surface-strong"], [data-section-bg="primary"] + [data-section-bg="primary"], [data-section-bg="accent"] + [data-section-bg="accent"] {
|
|
5091
5136
|
padding-top: 0;
|
|
5092
5137
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ export type { LinkPart, LinkProps, LinkTone, LinkVariant } from './components/li
|
|
|
91
91
|
export type { LoadMorePart, LoadMoreProps } from './components/load-more/types.js';
|
|
92
92
|
export type { LogoItemPart, LogoItemProps } from './components/logo-item/types.js';
|
|
93
93
|
export type { MultiSelectPart, MultiSelectProps, SelectOption, SelectPart, SelectPlacement, SelectProps, SelectSize, } from './components/select/types.js';
|
|
94
|
-
export type { NavMenuCollapse, NavMenuDrawerLayout, NavMenuDrawerPanelPart, NavMenuGroup, NavMenuGroupHeadingSlotProps, NavMenuItem, NavMenuLink, NavMenuPanelItemSlotProps, NavMenuPanelLayout, NavMenuPanelPart, NavMenuPart, NavMenuPlacement, NavMenuProps, NavMenuVariant, } from './components/nav-menu/types.js';
|
|
94
|
+
export type { NavMenuCollapse, NavMenuDrawerLayout, NavMenuDrawerMode, NavMenuDrawerPanelPart, NavMenuGroup, NavMenuGroupHeadingSlotProps, NavMenuItem, NavMenuLink, NavMenuPanelItemSlotProps, NavMenuPanelLayout, NavMenuPanelPart, NavMenuPart, NavMenuPlacement, NavMenuProps, NavMenuSection, NavMenuTone, NavMenuVariant, } from './components/nav-menu/types.js';
|
|
95
95
|
export type { NoticePart, NoticeProps, NoticeTone } from './components/notice/types.js';
|
|
96
96
|
export type { PaginationPart, PaginationProps } from './components/pagination/types.js';
|
|
97
97
|
export type { PopoverPart, PopoverProps } from './components/popover/types.js';
|
|
@@ -149,6 +149,7 @@ export { mixToward } from './utils/color.js';
|
|
|
149
149
|
export { joinIds, useUiId } from './utils/id.js';
|
|
150
150
|
export { applyMask, defaultCharacterMeaning, stripMask } from './utils/mask.js';
|
|
151
151
|
export { createNumberFormat, currencyFractionDigits, currencySymbol, defaultUnitFormat, formatCurrency, formatNumber, formatUnit, localeSeparators, parseLocaleNumber, toMinorUnits, type NumberFormatOptions, type UnitFormatOptions, } from './utils/number-format.js';
|
|
152
|
+
export { createAmountEditor, parseAmount, readAmount, type AmountEdit, type AmountEditor, type AmountEditorOptions, type AmountInvalidReason, type AmountReading, type AmountText, } from './utils/amount.js';
|
|
152
153
|
export { filterNumericBeforeInput, type NumericInputFilterOptions } from './utils/numeric-input.js';
|
|
153
154
|
export { frameAspectRatio } from './utils/ratio.js';
|
|
154
155
|
export { zoomSizes } from './utils/sizes.js';
|