@eldrajs/ui 0.3.15 → 0.3.17
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 +3 -2
- package/dist/{PhoneInput-B5AgJJVE.js → PhoneInput-CHTpjbtS.js} +2 -2
- package/dist/{VariantPicker-Buz_8mHq.js → VariantPicker-Dein0E4i.js} +4200 -4195
- package/dist/componentNames.d.ts +1 -1
- package/dist/components/autocomplete/Autocomplete.vue.d.ts +2 -0
- package/dist/components/chip/Chip.vue.d.ts +2 -0
- package/dist/components/currency-picker/CurrencyPicker.vue.d.ts +17 -0
- package/dist/components/currency-picker/types.d.ts +21 -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 +2 -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/popover/Popover.vue.d.ts +1 -1
- package/dist/components/product-card/types.d.ts +3 -1
- 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 +3 -1
- package/dist/components/section/Section.vue.d.ts +1 -1
- 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/tabs/Tab.vue.d.ts +2 -0
- package/dist/components/tabs/Tabs.vue.d.ts +2 -0
- package/dist/components/tabs/context.d.ts +3 -1
- package/dist/components/tabs/types.d.ts +8 -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 +40 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +1001 -853
- 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 +4 -4
- package/dist/phone.js +1 -1
- package/dist/resolver.js +1 -0
- package/dist/style.css +40 -0
- package/dist/{useFieldControl-CGH6GEWM.js → useFieldControl-B1JvPEeM.js} +1 -1
- package/dist/{useMessages-CrSnIuLt.js → useMessages-BdN9F1cW.js} +4 -0
- package/dist/{useOptionList-CPHHDvPF.js → useOptionList-UMUMayec.js} +1 -0
- package/dist/utilities.css +9 -0
- package/dist/utils/number-format.d.ts +2 -0
- package/dist/vee-validate.js +3 -3
- package/dist/vue-i18n.js +2 -1
- package/package.json +2 -2
package/dist/componentNames.d.ts
CHANGED
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
* it from `@eldrajs/ui`, where it does not exist, and would pull an optional peer into a project
|
|
16
16
|
* that never installed it. `src/__tests__/veeValidateIsolation.spec.ts` asserts both halves.
|
|
17
17
|
*/
|
|
18
|
-
export declare const componentNames: readonly ["Accordion", "AccordionItem", "Autocomplete", "Avatar", "AvatarGroup", "Badge", "Breadcrumb", "Button", "ButtonGroup", "Carousel", "Checkbox", "CheckboxGroup", "Chip", "ChipGroup", "Container", "ContentCard", "CurrencyInput", "Dialog", "Drawer", "EditorPlaceholder", "EmptyState", "FeatureCard", "FieldWrapper", "FilterPanel", "FormLayout", "Icon", "Image", "Input", "Lightbox", "Link", "LoadMore", "LogoItem", "MultiSelect", "NavMenu", "Notice", "Pagination", "Popover", "Price", "ProductCard", "QuantityStepper", "Radio", "RadioGroup", "RangeSlider", "Rating", "SearchBar", "SearchModal", "Section", "Select", "SiteForm", "Skeleton", "Spinner", "StepIndicator", "StockBadge", "Switch", "Tab", "TabPanel", "TablerIcon", "Tabs", "Textarea", "Toast", "Toaster", "Tooltip", "UnitInput", "VariantPicker", "VisuallyHidden"];
|
|
18
|
+
export declare const componentNames: readonly ["Accordion", "AccordionItem", "Autocomplete", "Avatar", "AvatarGroup", "Badge", "Breadcrumb", "Button", "ButtonGroup", "Carousel", "Checkbox", "CheckboxGroup", "Chip", "ChipGroup", "Container", "ContentCard", "CurrencyInput", "CurrencyPicker", "Dialog", "Drawer", "EditorPlaceholder", "EmptyState", "FeatureCard", "FieldWrapper", "FilterPanel", "FormLayout", "Icon", "Image", "Input", "Lightbox", "Link", "LoadMore", "LogoItem", "MultiSelect", "NavMenu", "Notice", "Pagination", "Popover", "Price", "ProductCard", "QuantityStepper", "Radio", "RadioGroup", "RangeSlider", "Rating", "SearchBar", "SearchModal", "Section", "Select", "SiteForm", "Skeleton", "Spinner", "StepIndicator", "StockBadge", "Switch", "Tab", "TabPanel", "TablerIcon", "Tabs", "Textarea", "Toast", "Toaster", "Tooltip", "UnitInput", "VariantPicker", "VisuallyHidden"];
|
|
19
19
|
export type ComponentName = (typeof componentNames)[number];
|
|
@@ -101,9 +101,11 @@ declare const __VLS_base: import('vue').DefineComponent<AutocompleteProps, {
|
|
|
101
101
|
newBadge: string;
|
|
102
102
|
quickAddLabel: string;
|
|
103
103
|
quickAdd: (title: string) => string;
|
|
104
|
+
notSoldInCurrency: (currency: string) => string;
|
|
104
105
|
loadingProduct: string;
|
|
105
106
|
swatchesAvailable: (n: number) => string;
|
|
106
107
|
noImage: string;
|
|
108
|
+
currencyPickerLabel: string;
|
|
107
109
|
noImageAvailable: string;
|
|
108
110
|
stockistSite: string;
|
|
109
111
|
stockIn: string;
|
|
@@ -82,9 +82,11 @@ declare const __VLS_base: import('vue').DefineComponent<ChipProps, {}, {}, {}, {
|
|
|
82
82
|
newBadge: string;
|
|
83
83
|
quickAddLabel: string;
|
|
84
84
|
quickAdd: (title: string) => string;
|
|
85
|
+
notSoldInCurrency: (currency: string) => string;
|
|
85
86
|
loadingProduct: string;
|
|
86
87
|
swatchesAvailable: (n: number) => string;
|
|
87
88
|
noImage: string;
|
|
89
|
+
currencyPickerLabel: string;
|
|
88
90
|
noImageAvailable: string;
|
|
89
91
|
stockistSite: string;
|
|
90
92
|
stockIn: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CurrencyPickerProps } from './types.js';
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<CurrencyPickerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
"update:modelValue": (code: string) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<CurrencyPickerProps> & Readonly<{
|
|
5
|
+
"onUpdate:modelValue"?: ((code: string) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
label: string;
|
|
8
|
+
size: "sm" | "md" | "lg";
|
|
9
|
+
modelValue: string;
|
|
10
|
+
classes: Partial<Record<import('./types.js').CurrencyPickerPart, string>>;
|
|
11
|
+
placement: "auto" | "above";
|
|
12
|
+
busy: boolean;
|
|
13
|
+
locale: string;
|
|
14
|
+
showLabel: boolean;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SelectPart } from '../select/types.js';
|
|
2
|
+
export type CurrencyPickerPart = 'root' | SelectPart;
|
|
3
|
+
export interface CurrencyPickerProps {
|
|
4
|
+
/** ISO 4217 codes to offer, the store's own first. With fewer than two the picker renders nothing. */
|
|
5
|
+
currencies: readonly string[];
|
|
6
|
+
/** The chosen code (`v-model`). */
|
|
7
|
+
modelValue?: string;
|
|
8
|
+
/** Defaults to the `currencyPickerLabel` message ("Currency"). */
|
|
9
|
+
label?: string;
|
|
10
|
+
/** Shows the label; hidden by default, where the picker sits in a header. */
|
|
11
|
+
showLabel?: boolean;
|
|
12
|
+
/** `Select`'s own `size`. Defaults to `sm`. */
|
|
13
|
+
size?: 'sm' | 'md' | 'lg';
|
|
14
|
+
/** `Select`'s own `placement`. */
|
|
15
|
+
placement?: 'auto' | 'above';
|
|
16
|
+
/** A change is on its way (the cart is moving): the picker says so and still takes a newer choice. */
|
|
17
|
+
busy?: boolean;
|
|
18
|
+
/** The language the currency names are written in. Defaults to `useEldraUiLocale()`. */
|
|
19
|
+
locale?: string;
|
|
20
|
+
classes?: Partial<Record<CurrencyPickerPart, string>>;
|
|
21
|
+
}
|
|
@@ -83,9 +83,11 @@ declare const __VLS_base: import('vue').DefineComponent<DialogProps, {
|
|
|
83
83
|
newBadge: string;
|
|
84
84
|
quickAddLabel: string;
|
|
85
85
|
quickAdd: (title: string) => string;
|
|
86
|
+
notSoldInCurrency: (currency: string) => string;
|
|
86
87
|
loadingProduct: string;
|
|
87
88
|
swatchesAvailable: (n: number) => string;
|
|
88
89
|
noImage: string;
|
|
90
|
+
currencyPickerLabel: string;
|
|
89
91
|
noImageAvailable: string;
|
|
90
92
|
stockistSite: string;
|
|
91
93
|
stockIn: string;
|
|
@@ -84,9 +84,11 @@ declare const __VLS_base: import('vue').DefineComponent<DrawerProps, {
|
|
|
84
84
|
newBadge: string;
|
|
85
85
|
quickAddLabel: string;
|
|
86
86
|
quickAdd: (title: string) => string;
|
|
87
|
+
notSoldInCurrency: (currency: string) => string;
|
|
87
88
|
loadingProduct: string;
|
|
88
89
|
swatchesAvailable: (n: number) => string;
|
|
89
90
|
noImage: string;
|
|
91
|
+
currencyPickerLabel: string;
|
|
90
92
|
noImageAvailable: string;
|
|
91
93
|
stockistSite: string;
|
|
92
94
|
stockIn: string;
|
|
@@ -95,9 +95,11 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
95
95
|
newBadge: string;
|
|
96
96
|
quickAddLabel: string;
|
|
97
97
|
quickAdd: (title: string) => string;
|
|
98
|
+
notSoldInCurrency: (currency: string) => string;
|
|
98
99
|
loadingProduct: string;
|
|
99
100
|
swatchesAvailable: (n: number) => string;
|
|
100
101
|
noImage: string;
|
|
102
|
+
currencyPickerLabel: string;
|
|
101
103
|
noImageAvailable: string;
|
|
102
104
|
stockistSite: string;
|
|
103
105
|
stockIn: string;
|
|
@@ -114,9 +114,11 @@ declare const __VLS_base: import('vue').DefineComponent<FilterPanelProps, {
|
|
|
114
114
|
newBadge: string;
|
|
115
115
|
quickAddLabel: string;
|
|
116
116
|
quickAdd: (title: string) => string;
|
|
117
|
+
notSoldInCurrency: (currency: string) => string;
|
|
117
118
|
loadingProduct: string;
|
|
118
119
|
swatchesAvailable: (n: number) => string;
|
|
119
120
|
noImage: string;
|
|
121
|
+
currencyPickerLabel: string;
|
|
120
122
|
noImageAvailable: string;
|
|
121
123
|
stockistSite: string;
|
|
122
124
|
stockIn: string;
|
|
@@ -64,9 +64,11 @@ declare const __VLS_export: import('vue').DefineComponent<FacetProps, {}, {}, {}
|
|
|
64
64
|
newBadge: string;
|
|
65
65
|
quickAddLabel: string;
|
|
66
66
|
quickAdd: (title: string) => string;
|
|
67
|
+
notSoldInCurrency: (currency: string) => string;
|
|
67
68
|
loadingProduct: string;
|
|
68
69
|
swatchesAvailable: (n: number) => string;
|
|
69
70
|
noImage: string;
|
|
71
|
+
currencyPickerLabel: string;
|
|
70
72
|
noImageAvailable: string;
|
|
71
73
|
stockistSite: string;
|
|
72
74
|
stockIn: string;
|
|
@@ -64,9 +64,11 @@ declare const __VLS_export: import('vue').DefineComponent<FacetProps, {}, {}, {}
|
|
|
64
64
|
newBadge: string;
|
|
65
65
|
quickAddLabel: string;
|
|
66
66
|
quickAdd: (title: string) => string;
|
|
67
|
+
notSoldInCurrency: (currency: string) => string;
|
|
67
68
|
loadingProduct: string;
|
|
68
69
|
swatchesAvailable: (n: number) => string;
|
|
69
70
|
noImage: string;
|
|
71
|
+
currencyPickerLabel: string;
|
|
70
72
|
noImageAvailable: string;
|
|
71
73
|
stockistSite: string;
|
|
72
74
|
stockIn: string;
|
|
@@ -70,9 +70,11 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
70
70
|
newBadge: string;
|
|
71
71
|
quickAddLabel: string;
|
|
72
72
|
quickAdd: (title: string) => string;
|
|
73
|
+
notSoldInCurrency: (currency: string) => string;
|
|
73
74
|
loadingProduct: string;
|
|
74
75
|
swatchesAvailable: (n: number) => string;
|
|
75
76
|
noImage: string;
|
|
77
|
+
currencyPickerLabel: string;
|
|
76
78
|
noImageAvailable: string;
|
|
77
79
|
stockistSite: string;
|
|
78
80
|
stockIn: string;
|
|
@@ -64,9 +64,11 @@ declare const __VLS_export: import('vue').DefineComponent<FacetProps, {}, {}, {}
|
|
|
64
64
|
newBadge: string;
|
|
65
65
|
quickAddLabel: string;
|
|
66
66
|
quickAdd: (title: string) => string;
|
|
67
|
+
notSoldInCurrency: (currency: string) => string;
|
|
67
68
|
loadingProduct: string;
|
|
68
69
|
swatchesAvailable: (n: number) => string;
|
|
69
70
|
noImage: string;
|
|
71
|
+
currencyPickerLabel: string;
|
|
70
72
|
noImageAvailable: string;
|
|
71
73
|
stockistSite: string;
|
|
72
74
|
stockIn: string;
|
|
@@ -64,9 +64,11 @@ declare const __VLS_export: import('vue').DefineComponent<FacetProps, {}, {}, {}
|
|
|
64
64
|
newBadge: string;
|
|
65
65
|
quickAddLabel: string;
|
|
66
66
|
quickAdd: (title: string) => string;
|
|
67
|
+
notSoldInCurrency: (currency: string) => string;
|
|
67
68
|
loadingProduct: string;
|
|
68
69
|
swatchesAvailable: (n: number) => string;
|
|
69
70
|
noImage: string;
|
|
71
|
+
currencyPickerLabel: string;
|
|
70
72
|
noImageAvailable: string;
|
|
71
73
|
stockistSite: string;
|
|
72
74
|
stockIn: string;
|
|
@@ -71,9 +71,11 @@ declare const __VLS_export: import('vue').DefineComponent<LightboxProps, {
|
|
|
71
71
|
newBadge: string;
|
|
72
72
|
quickAddLabel: string;
|
|
73
73
|
quickAdd: (title: string) => string;
|
|
74
|
+
notSoldInCurrency: (currency: string) => string;
|
|
74
75
|
loadingProduct: string;
|
|
75
76
|
swatchesAvailable: (n: number) => string;
|
|
76
77
|
noImage: string;
|
|
78
|
+
currencyPickerLabel: string;
|
|
77
79
|
noImageAvailable: string;
|
|
78
80
|
stockistSite: string;
|
|
79
81
|
stockIn: string;
|
|
@@ -100,9 +100,11 @@ declare const __VLS_base: import('vue').DefineComponent<NavMenuProps, {
|
|
|
100
100
|
newBadge: string;
|
|
101
101
|
quickAddLabel: string;
|
|
102
102
|
quickAdd: (title: string) => string;
|
|
103
|
+
notSoldInCurrency: (currency: string) => string;
|
|
103
104
|
loadingProduct: string;
|
|
104
105
|
swatchesAvailable: (n: number) => string;
|
|
105
106
|
noImage: string;
|
|
107
|
+
currencyPickerLabel: string;
|
|
106
108
|
noImageAvailable: string;
|
|
107
109
|
stockistSite: string;
|
|
108
110
|
stockIn: string;
|
|
@@ -65,9 +65,11 @@ declare const __VLS_export: import('vue').DefineComponent<PaginationProps, {}, {
|
|
|
65
65
|
newBadge: string;
|
|
66
66
|
quickAddLabel: string;
|
|
67
67
|
quickAdd: (title: string) => string;
|
|
68
|
+
notSoldInCurrency: (currency: string) => string;
|
|
68
69
|
loadingProduct: string;
|
|
69
70
|
swatchesAvailable: (n: number) => string;
|
|
70
71
|
noImage: string;
|
|
72
|
+
currencyPickerLabel: string;
|
|
71
73
|
noImageAvailable: string;
|
|
72
74
|
stockistSite: string;
|
|
73
75
|
stockIn: string;
|
|
@@ -40,7 +40,7 @@ declare const __VLS_base: import('vue').DefineComponent<PopoverProps, {
|
|
|
40
40
|
ariaLabel: string;
|
|
41
41
|
closeOnEscape: boolean;
|
|
42
42
|
viewportPadding: number;
|
|
43
|
-
haspopup: "dialog" | "menu" | "true" | "listbox" | "
|
|
43
|
+
haspopup: "dialog" | "menu" | "true" | "listbox" | "tree" | "grid";
|
|
44
44
|
labelledByTrigger: boolean;
|
|
45
45
|
openOnArrowDown: boolean;
|
|
46
46
|
focusOnOpen: boolean;
|
|
@@ -62,10 +62,12 @@ export interface ProductCardProduct {
|
|
|
62
62
|
* media at 60% opacity, an outline "Sold out" badge, and quick add replaced by a disabled
|
|
63
63
|
* "Sold out" button. Omitted/`true` is the ordinary available state. */
|
|
64
64
|
available?: boolean;
|
|
65
|
+
/** A currency code: the product has no price in it. Replaces the price with a line saying so and turns quick add off. */
|
|
66
|
+
notSoldIn?: string | null;
|
|
65
67
|
}
|
|
66
68
|
/** The parts a consumer can restyle through `classes`, named as the spec's anatomy names them,
|
|
67
69
|
* plus `stockLine` for the addition beyond it (see `ProductCardProduct.stock`). */
|
|
68
|
-
export type ProductCardPart = 'media' | 'badges' | 'body' | 'vendor' | 'title' | 'link' | 'price' | 'rating' | 'stockLine' | 'swatches' | 'swatch' | 'swatchOverflow' | 'quickAdd' | 'skeleton';
|
|
70
|
+
export type ProductCardPart = 'media' | 'badges' | 'body' | 'vendor' | 'title' | 'link' | 'price' | 'notSold' | 'rating' | 'stockLine' | 'swatches' | 'swatch' | 'swatchOverflow' | 'quickAdd' | 'skeleton';
|
|
69
71
|
export interface ProductCardProps {
|
|
70
72
|
/** The product. See `ProductCardProduct`. */
|
|
71
73
|
product: ProductCardProduct;
|
|
@@ -88,9 +88,11 @@ declare const __VLS_base: import('vue').DefineComponent<RangeSliderProps, {}, {}
|
|
|
88
88
|
newBadge: string;
|
|
89
89
|
quickAddLabel: string;
|
|
90
90
|
quickAdd: (title: string) => string;
|
|
91
|
+
notSoldInCurrency: (currency: string) => string;
|
|
91
92
|
loadingProduct: string;
|
|
92
93
|
swatchesAvailable: (n: number) => string;
|
|
93
94
|
noImage: string;
|
|
95
|
+
currencyPickerLabel: string;
|
|
94
96
|
noImageAvailable: string;
|
|
95
97
|
stockistSite: string;
|
|
96
98
|
stockIn: string;
|
|
@@ -89,9 +89,11 @@ declare const __VLS_base: import('vue').DefineComponent<SearchBarProps, {}, {},
|
|
|
89
89
|
newBadge: string;
|
|
90
90
|
quickAddLabel: string;
|
|
91
91
|
quickAdd: (title: string) => string;
|
|
92
|
+
notSoldInCurrency: (currency: string) => string;
|
|
92
93
|
loadingProduct: string;
|
|
93
94
|
swatchesAvailable: (n: number) => string;
|
|
94
95
|
noImage: string;
|
|
96
|
+
currencyPickerLabel: string;
|
|
95
97
|
noImageAvailable: string;
|
|
96
98
|
stockistSite: string;
|
|
97
99
|
stockIn: string;
|
|
@@ -94,9 +94,11 @@ declare const __VLS_base: import('vue').DefineComponent<SearchModalProps, {
|
|
|
94
94
|
newBadge: string;
|
|
95
95
|
quickAddLabel: string;
|
|
96
96
|
quickAdd: (title: string) => string;
|
|
97
|
+
notSoldInCurrency: (currency: string) => string;
|
|
97
98
|
loadingProduct: string;
|
|
98
99
|
swatchesAvailable: (n: number) => string;
|
|
99
100
|
noImage: string;
|
|
101
|
+
currencyPickerLabel: string;
|
|
100
102
|
noImageAvailable: string;
|
|
101
103
|
stockistSite: string;
|
|
102
104
|
stockIn: string;
|
|
@@ -200,8 +202,8 @@ declare const __VLS_base: import('vue').DefineComponent<SearchModalProps, {
|
|
|
200
202
|
phoneInvalidNumber: string;
|
|
201
203
|
}>;
|
|
202
204
|
ariaLabel: string;
|
|
203
|
-
action: string;
|
|
204
205
|
query: string;
|
|
206
|
+
action: string;
|
|
205
207
|
recent: string[];
|
|
206
208
|
popular: string[];
|
|
207
209
|
showRecent: boolean;
|
|
@@ -9,8 +9,8 @@ declare const __VLS_base: import('vue').DefineComponent<SectionProps, {}, {}, {}
|
|
|
9
9
|
spacing: SectionSpacing;
|
|
10
10
|
as: string;
|
|
11
11
|
ariaLabel: string | null;
|
|
12
|
-
background: SectionBackground;
|
|
13
12
|
labelledBy: string | null;
|
|
13
|
+
background: SectionBackground;
|
|
14
14
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
16
|
declare const _default: typeof __VLS_export;
|
|
@@ -154,9 +154,11 @@ declare const __VLS_base: import('vue').DefineComponent<MultiSelectProps, {}, {}
|
|
|
154
154
|
newBadge: string;
|
|
155
155
|
quickAddLabel: string;
|
|
156
156
|
quickAdd: (title: string) => string;
|
|
157
|
+
notSoldInCurrency: (currency: string) => string;
|
|
157
158
|
loadingProduct: string;
|
|
158
159
|
swatchesAvailable: (n: number) => string;
|
|
159
160
|
noImage: string;
|
|
161
|
+
currencyPickerLabel: string;
|
|
160
162
|
noImageAvailable: string;
|
|
161
163
|
stockistSite: string;
|
|
162
164
|
stockIn: string;
|
|
@@ -125,9 +125,11 @@ declare const __VLS_base: import('vue').DefineComponent<SelectProps, {}, {}, {},
|
|
|
125
125
|
newBadge: string;
|
|
126
126
|
quickAddLabel: string;
|
|
127
127
|
quickAdd: (title: string) => string;
|
|
128
|
+
notSoldInCurrency: (currency: string) => string;
|
|
128
129
|
loadingProduct: string;
|
|
129
130
|
swatchesAvailable: (n: number) => string;
|
|
130
131
|
noImage: string;
|
|
132
|
+
currencyPickerLabel: string;
|
|
131
133
|
noImageAvailable: string;
|
|
132
134
|
stockistSite: string;
|
|
133
135
|
stockIn: string;
|
|
@@ -82,9 +82,11 @@ declare const __VLS_base: import('vue').DefineComponent<SiteFormProps, {}, {}, {
|
|
|
82
82
|
newBadge: string;
|
|
83
83
|
quickAddLabel: string;
|
|
84
84
|
quickAdd: (title: string) => string;
|
|
85
|
+
notSoldInCurrency: (currency: string) => string;
|
|
85
86
|
loadingProduct: string;
|
|
86
87
|
swatchesAvailable: (n: number) => string;
|
|
87
88
|
noImage: string;
|
|
89
|
+
currencyPickerLabel: string;
|
|
88
90
|
noImageAvailable: string;
|
|
89
91
|
stockistSite: string;
|
|
90
92
|
stockIn: string;
|
|
@@ -14,6 +14,8 @@ declare const __VLS_base: import('vue').DefineComponent<TabsProps, {}, {}, {}, {
|
|
|
14
14
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
15
15
|
onChange?: ((value: string) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
|
+
fill: boolean;
|
|
18
|
+
size: import('./types.js').TabsSize;
|
|
17
19
|
modelValue: string;
|
|
18
20
|
classes: Partial<Record<import('./types.js').TabsPart, string>>;
|
|
19
21
|
variant: import('./types.js').TabsVariant;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComputedRef, InjectionKey } from 'vue';
|
|
2
|
-
import { TabsActivation, TabsVariant } from './types.js';
|
|
2
|
+
import { TabsActivation, TabsSize, TabsVariant } from './types.js';
|
|
3
3
|
/** What a mounted `Tab` gives the `Tabs` root that owns it, so the root can move focus to it and
|
|
4
4
|
* place it in the registration order without owning any of its DOM itself. */
|
|
5
5
|
export interface TabsEntry {
|
|
@@ -32,6 +32,8 @@ export interface TabsContext {
|
|
|
32
32
|
selectedValue: ComputedRef<string | undefined>;
|
|
33
33
|
activation: ComputedRef<TabsActivation>;
|
|
34
34
|
variant: ComputedRef<TabsVariant>;
|
|
35
|
+
size: ComputedRef<TabsSize>;
|
|
36
|
+
fill: ComputedRef<boolean>;
|
|
35
37
|
isSelected: (value: string) => boolean;
|
|
36
38
|
/** Selects `value` and emits `update:modelValue`/`change`. */
|
|
37
39
|
select: (value: string) => void;
|
|
@@ -7,6 +7,10 @@ export type TabsPart = 'list' | 'tab' | 'indicator' | 'panel';
|
|
|
7
7
|
/** Underline (default): a bar under the selected tab, sitting on the list's hairline. Pills: a
|
|
8
8
|
* filled, fully-rounded button — the fill itself is the "indicator". */
|
|
9
9
|
export type TabsVariant = 'underline' | 'pills';
|
|
10
|
+
/** `md` (default): the spec's 2.75rem touch-height tab. `sm`: a 2.25rem panel tab with 13px text at
|
|
11
|
+
* weight 500, a 0.375rem icon gap and a full-width 2px indicator, for a tab bar inside a tool
|
|
12
|
+
* panel (the page builder's side rail). */
|
|
13
|
+
export type TabsSize = 'md' | 'sm';
|
|
10
14
|
/** `auto`: arrow keys select immediately. `manual`: arrow keys move focus only, `Enter`/`Space`
|
|
11
15
|
* selects — use only when a panel loads slowly. */
|
|
12
16
|
export type TabsActivation = 'auto' | 'manual';
|
|
@@ -33,6 +37,10 @@ export interface TabsProps {
|
|
|
33
37
|
* information"), put on `role="tablist"` as `aria-label`. Package convention: an
|
|
34
38
|
* accessible-name-only prop is named `ariaLabel`, never `label` (visible text is `title`). */
|
|
35
39
|
ariaLabel: string;
|
|
40
|
+
/** `md` (default) or `sm`. Passed to every `Tab` through the context. */
|
|
41
|
+
size?: TabsSize;
|
|
42
|
+
/** The tabs share the list's width equally instead of taking their own. Defaults to `false`. */
|
|
43
|
+
fill?: boolean;
|
|
36
44
|
/** `auto` (default) or `manual`. */
|
|
37
45
|
activation?: TabsActivation;
|
|
38
46
|
/** The tabs and their panels, 1–5 of them (spec's own guidance). Renders internally as the same
|
|
@@ -67,9 +67,11 @@ declare const __VLS_export: import('vue').DefineComponent<ToastProps, {}, {}, {}
|
|
|
67
67
|
newBadge: string;
|
|
68
68
|
quickAddLabel: string;
|
|
69
69
|
quickAdd: (title: string) => string;
|
|
70
|
+
notSoldInCurrency: (currency: string) => string;
|
|
70
71
|
loadingProduct: string;
|
|
71
72
|
swatchesAvailable: (n: number) => string;
|
|
72
73
|
noImage: string;
|
|
74
|
+
currencyPickerLabel: string;
|
|
73
75
|
noImageAvailable: string;
|
|
74
76
|
stockistSite: string;
|
|
75
77
|
stockIn: string;
|
|
@@ -67,9 +67,11 @@ declare const __VLS_export: import('vue').DefineComponent<ToasterProps, {}, {},
|
|
|
67
67
|
newBadge: string;
|
|
68
68
|
quickAddLabel: string;
|
|
69
69
|
quickAdd: (title: string) => string;
|
|
70
|
+
notSoldInCurrency: (currency: string) => string;
|
|
70
71
|
loadingProduct: string;
|
|
71
72
|
swatchesAvailable: (n: number) => string;
|
|
72
73
|
noImage: string;
|
|
74
|
+
currencyPickerLabel: string;
|
|
73
75
|
noImageAvailable: string;
|
|
74
76
|
stockistSite: string;
|
|
75
77
|
stockIn: string;
|
package/dist/components.css
CHANGED
|
@@ -977,6 +977,10 @@
|
|
|
977
977
|
height: 0;
|
|
978
978
|
}
|
|
979
979
|
|
|
980
|
+
.eldra\:h-0\.5 {
|
|
981
|
+
height: .125rem;
|
|
982
|
+
}
|
|
983
|
+
|
|
980
984
|
.eldra\:h-1 {
|
|
981
985
|
height: var(--eldra-space-1);
|
|
982
986
|
}
|
|
@@ -1005,6 +1009,10 @@
|
|
|
1005
1009
|
height: var(--eldra-space-8);
|
|
1006
1010
|
}
|
|
1007
1011
|
|
|
1012
|
+
.eldra\:h-9 {
|
|
1013
|
+
height: 2.25rem;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1008
1016
|
.eldra\:h-10 {
|
|
1009
1017
|
height: 2.5rem;
|
|
1010
1018
|
}
|
|
@@ -2273,6 +2281,10 @@
|
|
|
2273
2281
|
background-color: var(--eldra-drawer-handle-color, var(--eldra-color-border-strong));
|
|
2274
2282
|
}
|
|
2275
2283
|
|
|
2284
|
+
.eldra\:bg-\[var\(--eldra-tabs-accent\,var\(--eldra-color-primary\)\)\] {
|
|
2285
|
+
background-color: var(--eldra-tabs-accent, var(--eldra-color-primary));
|
|
2286
|
+
}
|
|
2287
|
+
|
|
2276
2288
|
.eldra\:bg-accent {
|
|
2277
2289
|
background-color: var(--eldra-color-accent);
|
|
2278
2290
|
}
|
|
@@ -3102,6 +3114,12 @@
|
|
|
3102
3114
|
line-height: var(--eldra-field-note-line-height, 1.45);
|
|
3103
3115
|
}
|
|
3104
3116
|
|
|
3117
|
+
.eldra\:text-tab-sm {
|
|
3118
|
+
font-family: var(--eldra-font-body);
|
|
3119
|
+
font-size: var(--eldra-text-caption-size);
|
|
3120
|
+
line-height: var(--eldra-control-line-height, 1.5rem);
|
|
3121
|
+
}
|
|
3122
|
+
|
|
3105
3123
|
.eldra\:text-tooltip {
|
|
3106
3124
|
font-family: var(--eldra-font-body);
|
|
3107
3125
|
font-size: var(--eldra-text-caption-size);
|
|
@@ -3231,6 +3249,14 @@
|
|
|
3231
3249
|
color: var(--eldra-select-tag-text, var(--eldra-color-text));
|
|
3232
3250
|
}
|
|
3233
3251
|
|
|
3252
|
+
.eldra\:text-\[color\:var\(--eldra-tabs-accent\,var\(--eldra-color-primary\)\)\] {
|
|
3253
|
+
color: var(--eldra-tabs-accent, var(--eldra-color-primary));
|
|
3254
|
+
}
|
|
3255
|
+
|
|
3256
|
+
.eldra\:text-\[color\:var\(--eldra-tabs-muted\,var\(--eldra-color-muted\)\)\] {
|
|
3257
|
+
color: var(--eldra-tabs-muted, var(--eldra-color-muted));
|
|
3258
|
+
}
|
|
3259
|
+
|
|
3234
3260
|
.eldra\:text-accent {
|
|
3235
3261
|
color: var(--eldra-color-accent);
|
|
3236
3262
|
}
|
|
@@ -3898,6 +3924,10 @@
|
|
|
3898
3924
|
}
|
|
3899
3925
|
}
|
|
3900
3926
|
|
|
3927
|
+
.eldra\:group-focus-visible\:bottom-\[calc\(var\(--eldra-focus-offset\)_\+_var\(--eldra-focus-width\)\)\]:is(:where(.eldra\:group):focus-visible *) {
|
|
3928
|
+
bottom: calc(var(--eldra-focus-offset) + var(--eldra-focus-width));
|
|
3929
|
+
}
|
|
3930
|
+
|
|
3901
3931
|
.eldra\:placeholder\:text-\[color\:var\(--eldra-select-panel-muted\,var\(--eldra-color-muted\)\)\]::placeholder {
|
|
3902
3932
|
color: var(--eldra-select-panel-muted, var(--eldra-color-muted));
|
|
3903
3933
|
}
|
|
@@ -4106,6 +4136,16 @@
|
|
|
4106
4136
|
}
|
|
4107
4137
|
}
|
|
4108
4138
|
|
|
4139
|
+
.eldra\:hover\:bg-\[var\(--eldra-tabs-hover-bg\,color-mix\(in_oklab\,var\(--eldra-color-text\)\,transparent_94\%\)\)\]:hover {
|
|
4140
|
+
background-color: var(--eldra-tabs-hover-bg, var(--eldra-color-text));
|
|
4141
|
+
}
|
|
4142
|
+
|
|
4143
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
4144
|
+
.eldra\:hover\:bg-\[var\(--eldra-tabs-hover-bg\,color-mix\(in_oklab\,var\(--eldra-color-text\)\,transparent_94\%\)\)\]:hover {
|
|
4145
|
+
background-color: var(--eldra-tabs-hover-bg, color-mix(in oklab,var(--eldra-color-text),transparent 94%));
|
|
4146
|
+
}
|
|
4147
|
+
}
|
|
4148
|
+
|
|
4109
4149
|
.eldra\:hover\:bg-primary:hover {
|
|
4110
4150
|
background-color: var(--eldra-color-primary);
|
|
4111
4151
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export { default as ChipGroup } from './components/chip/ChipGroup.vue.js';
|
|
|
15
15
|
export { default as Container } from './components/container/Container.vue.js';
|
|
16
16
|
export { default as ContentCard } from './components/card/ContentCard.vue.js';
|
|
17
17
|
export { default as CurrencyInput } from './components/currency-input/CurrencyInput.vue.js';
|
|
18
|
+
export { default as CurrencyPicker } from './components/currency-picker/CurrencyPicker.vue.js';
|
|
18
19
|
export { default as Dialog } from './components/dialog/Dialog.vue.js';
|
|
19
20
|
export { default as Drawer } from './components/drawer/Drawer.vue.js';
|
|
20
21
|
export { default as EditorPlaceholder } from './components/empty-state/EditorPlaceholder.vue.js';
|
|
@@ -76,6 +77,7 @@ export type { ChipGroupPart, ChipGroupProps, ChipPart, ChipProps, ChipSize, } fr
|
|
|
76
77
|
export type { ContainerProps, ContainerWidth } from './components/container/types.js';
|
|
77
78
|
export type { ContentCardPart, ContentCardProps, ContentCardRatio, ContentCardVariant, FeatureCardPart, FeatureCardProps, FeatureCardVariant, } from './components/card/types.js';
|
|
78
79
|
export type { CurrencyInputPart, CurrencyInputProps } from './components/currency-input/types.js';
|
|
80
|
+
export type { CurrencyPickerPart, CurrencyPickerProps } from './components/currency-picker/types.js';
|
|
79
81
|
export type { DialogPart, DialogProps, DialogSize } from './components/dialog/types.js';
|
|
80
82
|
export type { DrawerPart, DrawerProps, DrawerSide } from './components/drawer/types.js';
|
|
81
83
|
export type { EditorPlaceholderPart, EditorPlaceholderProps, EmptyStatePart, EmptyStateProps, EmptyStateVariant, } from './components/empty-state/types.js';
|
|
@@ -107,7 +109,7 @@ export type { SkeletonPart, SkeletonProps, SkeletonVariant } from './components/
|
|
|
107
109
|
export type { SpinnerProps } from './components/spinner/types.js';
|
|
108
110
|
export type { StepIndicatorOrientation, StepIndicatorPart, StepIndicatorProps, StepIndicatorState, StepIndicatorStep, } from './components/step-indicator/types.js';
|
|
109
111
|
export type { SwitchPart, SwitchProps, SwitchSize, SwitchSlotProps, } from './components/switch/types.js';
|
|
110
|
-
export type { TabPanelPart, TabPanelProps, TabPart, TabProps, TabsActivation, TabsItem, TabsPart, TabsProps, TabsVariant, } from './components/tabs/types.js';
|
|
112
|
+
export type { TabPanelPart, TabPanelProps, TabPart, TabProps, TabsActivation, TabsItem, TabsPart, TabsProps, TabsSize, TabsVariant, } from './components/tabs/types.js';
|
|
111
113
|
export type { TablerIconProps } from './components/tabler-icon/types.js';
|
|
112
114
|
export type { TextareaPart, TextareaProps } from './components/textarea/types.js';
|
|
113
115
|
export type { ToastAction, ToastPart, ToastProps, ToastVariant, ToasterPart, ToasterPosition, ToasterProps, ToasterToast, } from './components/toast/types.js';
|
|
@@ -146,7 +148,7 @@ export { TABS_KEY, type TabsContext, type TabsEntry } from './components/tabs/co
|
|
|
146
148
|
export { mixToward } from './utils/color.js';
|
|
147
149
|
export { joinIds, useUiId } from './utils/id.js';
|
|
148
150
|
export { applyMask, defaultCharacterMeaning, stripMask } from './utils/mask.js';
|
|
149
|
-
export { createNumberFormat, currencyFractionDigits, currencySymbol, defaultUnitFormat, formatCurrency, formatNumber, formatUnit, localeSeparators, parseLocaleNumber, type NumberFormatOptions, type UnitFormatOptions, } from './utils/number-format.js';
|
|
151
|
+
export { createNumberFormat, currencyFractionDigits, currencySymbol, defaultUnitFormat, formatCurrency, formatNumber, formatUnit, localeSeparators, parseLocaleNumber, toMinorUnits, type NumberFormatOptions, type UnitFormatOptions, } from './utils/number-format.js';
|
|
150
152
|
export { filterNumericBeforeInput, type NumericInputFilterOptions } from './utils/numeric-input.js';
|
|
151
153
|
export { frameAspectRatio } from './utils/ratio.js';
|
|
152
154
|
export { zoomSizes } from './utils/sizes.js';
|