@eldrajs/ui 0.2.8 → 0.3.0
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 +52 -0
- package/README.md +324 -161
- package/dist/{VariantPicker-CjWUVhlm.js → VariantPicker-C-9sMXGI.js} +3275 -2040
- package/dist/componentNames.d.ts +1 -1
- package/dist/components/accordion/Accordion.vue.d.ts +1 -2
- package/dist/components/accordion/AccordionItem.vue.d.ts +1 -1
- package/dist/components/accordion/types.d.ts +6 -7
- package/dist/components/avatar/Avatar.vue.d.ts +1 -1
- package/dist/components/avatar/types.d.ts +6 -4
- package/dist/components/badge/types.d.ts +6 -4
- package/dist/components/breadcrumb/types.d.ts +5 -2
- package/dist/components/button/Button.vue.d.ts +6 -3
- package/dist/components/button/ButtonGroup.vue.d.ts +0 -1
- package/dist/components/button/types.d.ts +39 -9
- package/dist/components/card/ContentCard.vue.d.ts +2 -2
- package/dist/components/card/FeatureCard.vue.d.ts +1 -1
- package/dist/components/card/stretchedLink.d.ts +3 -3
- package/dist/components/card/types.d.ts +6 -4
- package/dist/components/carousel/types.d.ts +7 -3
- package/dist/components/checkbox/Checkbox.vue.d.ts +5 -3
- package/dist/components/checkbox/CheckboxGroup.vue.d.ts +1 -1
- package/dist/components/checkbox/types.d.ts +21 -4
- package/dist/components/chip/Chip.vue.d.ts +5 -4
- package/dist/components/chip/ChipGroup.vue.d.ts +0 -1
- package/dist/components/chip/types.d.ts +5 -6
- package/dist/components/container/Container.vue.d.ts +0 -1
- package/dist/components/container/types.d.ts +0 -4
- package/dist/components/dialog/Dialog.vue.d.ts +13 -8
- package/dist/components/dialog/types.d.ts +16 -4
- package/dist/components/drawer/Drawer.vue.d.ts +2 -1
- package/dist/components/drawer/types.d.ts +5 -2
- package/dist/components/empty-state/EmptyState.vue.d.ts +1 -1
- package/dist/components/empty-state/types.d.ts +7 -6
- package/dist/components/field-wrapper/FieldWrapper.vue.d.ts +4 -1
- package/dist/components/field-wrapper/RequiredMark.vue.d.ts +15 -0
- package/dist/components/field-wrapper/context.d.ts +8 -0
- package/dist/components/field-wrapper/types.d.ts +17 -6
- package/dist/components/filter-panel/FilterGroup.vue.d.ts +1 -0
- package/dist/components/filter-panel/FilterPanel.vue.d.ts +7 -6
- package/dist/components/filter-panel/facets/ColourFacet.vue.d.ts +1 -0
- package/dist/components/filter-panel/facets/ListFacet.vue.d.ts +1 -0
- package/dist/components/filter-panel/facets/RangeFacet.vue.d.ts +2 -1
- package/dist/components/filter-panel/facets/SizeFacet.vue.d.ts +1 -0
- package/dist/components/filter-panel/facets/ToggleFacet.vue.d.ts +1 -0
- package/dist/components/filter-panel/facets/shared.d.ts +4 -4
- package/dist/components/filter-panel/types.d.ts +5 -2
- package/dist/components/form-layout/FormLayout.vue.d.ts +1 -1
- package/dist/components/form-layout/types.d.ts +5 -2
- package/dist/components/icon/Icon.vue.d.ts +1 -2
- package/dist/components/icon/types.d.ts +0 -4
- package/dist/components/image/types.d.ts +3 -2
- package/dist/components/input/Input.vue.d.ts +13 -8
- package/dist/components/input/classes.d.ts +33 -18
- package/dist/components/input/reassertValue.d.ts +13 -0
- package/dist/components/input/types.d.ts +18 -6
- package/dist/components/input/useAdornmentRoom.d.ts +15 -0
- package/dist/components/lightbox/Lightbox.vue.d.ts +2 -1
- package/dist/components/lightbox/types.d.ts +5 -2
- package/dist/components/link/Link.vue.d.ts +1 -1
- package/dist/components/link/types.d.ts +5 -2
- package/dist/components/load-more/types.d.ts +4 -3
- package/dist/components/logo-item/LogoItem.vue.d.ts +1 -1
- package/dist/components/logo-item/types.d.ts +2 -1
- package/dist/components/nav-menu/NavMenu.vue.d.ts +2 -1
- package/dist/components/nav-menu/navLinks.d.ts +1 -1
- package/dist/components/nav-menu/types.d.ts +3 -3
- package/dist/components/pagination/Pagination.vue.d.ts +154 -0
- package/dist/components/pagination/types.d.ts +36 -2
- package/dist/components/popover/Popover.vue.d.ts +29 -2
- package/dist/components/popover/types.d.ts +62 -9
- package/dist/components/price/types.d.ts +3 -2
- package/dist/components/product-card/ProductCard.vue.d.ts +2 -2
- package/dist/components/product-card/types.d.ts +3 -2
- package/dist/components/quantity-stepper/QuantityStepper.vue.d.ts +4 -4
- package/dist/components/quantity-stepper/types.d.ts +5 -2
- package/dist/components/radio/Radio.vue.d.ts +33 -0
- package/dist/components/radio/RadioGroup.vue.d.ts +6 -2
- package/dist/components/radio/recipes.d.ts +41 -0
- package/dist/components/radio/types.d.ts +71 -4
- package/dist/components/range-slider/RangeSlider.vue.d.ts +2 -1
- package/dist/components/range-slider/types.d.ts +5 -2
- package/dist/components/rating/Rating.vue.d.ts +1 -1
- package/dist/components/rating/types.d.ts +3 -2
- package/dist/components/search-bar/SearchBar.vue.d.ts +4 -3
- package/dist/components/search-bar/SearchResultsPanel.vue.d.ts +1 -1
- package/dist/components/search-bar/types.d.ts +5 -2
- package/dist/components/search-modal/SearchModal.vue.d.ts +3 -2
- package/dist/components/search-modal/types.d.ts +7 -4
- package/dist/components/section/Section.vue.d.ts +0 -1
- package/dist/components/section/types.d.ts +0 -4
- package/dist/components/select/MultiSelect.vue.d.ts +53 -6
- package/dist/components/select/Select.vue.d.ts +24 -4
- package/dist/components/select/SelectPanel.vue.d.ts +25 -2
- package/dist/components/select/SelectTags.vue.d.ts +50 -0
- package/dist/components/select/openRegistry.d.ts +14 -4
- package/dist/components/select/panelParts.d.ts +45 -18
- package/dist/components/select/types.d.ts +54 -10
- package/dist/components/select/useOptionList.d.ts +31 -4
- package/dist/components/select/usePopover.d.ts +36 -39
- package/dist/components/select/useSummaryFit.d.ts +21 -0
- package/dist/components/select/useTagRows.d.ts +17 -0
- package/dist/components/site-form/SiteForm.vue.d.ts +3 -2
- package/dist/components/site-form/types.d.ts +6 -2
- package/dist/components/skeleton/Skeleton.vue.d.ts +2 -2
- package/dist/components/skeleton/types.d.ts +4 -4
- package/dist/components/switch/Switch.vue.d.ts +17 -10
- package/dist/components/switch/types.d.ts +29 -2
- package/dist/components/tabler-icon/TablerIcon.vue.d.ts +2 -3
- package/dist/components/tabler-icon/types.d.ts +0 -4
- package/dist/components/tabs/Tab.vue.d.ts +2 -1
- package/dist/components/tabs/TabPanel.vue.d.ts +1 -3
- package/dist/components/tabs/Tabs.vue.d.ts +1 -1
- package/dist/components/tabs/context.d.ts +6 -2
- package/dist/components/tabs/types.d.ts +22 -11
- package/dist/components/textarea/Textarea.vue.d.ts +23 -3
- package/dist/components/textarea/types.d.ts +15 -3
- package/dist/components/toast/Toast.vue.d.ts +2 -0
- package/dist/components/toast/Toaster.vue.d.ts +7 -1
- package/dist/components/toast/types.d.ts +52 -5
- package/dist/components/tooltip/types.d.ts +4 -3
- package/dist/components/unit-input/UnitInput.vue.d.ts +7 -7
- package/dist/components/unit-input/types.d.ts +5 -2
- package/dist/components/variant-picker/VariantPicker.vue.d.ts +1 -1
- package/dist/components/variant-picker/types.d.ts +3 -2
- package/dist/components/visually-hidden/VisuallyHidden.vue.d.ts +0 -1
- package/dist/components/visually-hidden/types.d.ts +0 -4
- package/dist/components.css +1556 -2145
- package/dist/composables/useDialog.d.ts +7 -3
- package/dist/composables/useEldraScope.d.ts +24 -0
- package/dist/composables/useFloating.d.ts +21 -8
- package/dist/composables/useOverlay.d.ts +10 -5
- package/dist/composables/useToast.d.ts +3 -0
- package/dist/index.d.ts +12 -10
- package/dist/index.js +2553 -1185
- package/dist/messages/en-US.d.ts +2 -0
- package/dist/messages/is-IS.js +1 -0
- package/dist/resolver.js +1 -0
- package/dist/style.css +1561 -2150
- package/dist/tailwind.css +11 -2203
- package/dist/theme.css +108 -0
- package/dist/tokens.css +1 -0
- package/dist/useMessages-B5nzZghs.js +592 -0
- package/dist/utilities.css +2160 -0
- package/dist/utils/mergeClass.d.ts +3 -0
- package/dist/utils/tagRecipe.d.ts +3 -3
- package/dist/vee-validate.js +42 -6
- package/dist/vue-i18n/index.d.ts +50 -0
- package/dist/vue-i18n/shapes.d.ts +40 -0
- package/dist/vue-i18n.js +289 -0
- package/package.json +17 -3
- package/dist/utils/cx.d.ts +0 -31
|
@@ -7,8 +7,10 @@ export interface UseDialogOptions {
|
|
|
7
7
|
/** The `<dialog>` element itself. Must be a real `<dialog>`; every part of this composable is
|
|
8
8
|
* built on `HTMLDialogElement`'s own `showModal()`/`close()`/`cancel`/`close` contract. */
|
|
9
9
|
dialog: Ref<HTMLDialogElement | null>;
|
|
10
|
-
/** Whether a backdrop click closes the dialog. `
|
|
10
|
+
/** Whether a backdrop click closes the dialog. `close()` always does. Default `true`. */
|
|
11
11
|
dismissable?: MaybeRefOrGetter<boolean>;
|
|
12
|
+
/** Whether `Esc` closes the dialog. Read on every key press. Default `true`. */
|
|
13
|
+
closeOnEscape?: MaybeRefOrGetter<boolean>;
|
|
12
14
|
/**
|
|
13
15
|
* Focused when the dialog opens from the keyboard, instead of the first meaningful control. After a tap or click
|
|
14
16
|
* it is focused only when it is a text field or marked `autofocus`; otherwise the dialog itself takes focus.
|
|
@@ -65,9 +67,11 @@ export interface UseDialogReturn {
|
|
|
65
67
|
* rule: "`Esc` … always closes it") — but only while this dialog is the top of the stack; a lower
|
|
66
68
|
* one ignores it outright (`preventDefault()`ed, so even the platform's own default action cannot
|
|
67
69
|
* close it). `onCancel` is a notification, not a guard — it cannot prevent the close, matching
|
|
68
|
-
* the interface below (`() => void`, nothing to call `preventDefault()` on).
|
|
70
|
+
* the interface below (`() => void`, nothing to call `preventDefault()` on). The one opt-out is
|
|
71
|
+
* `closeOnEscape: false`, which ignores `Esc` the same way (no `onCancel`, no close).
|
|
69
72
|
* - **Backdrop click**: a `click` whose `target` is the `<dialog>` element itself — not a
|
|
70
|
-
* descendant, which stops the target at that descendant
|
|
73
|
+
* descendant, which stops the target at that descendant, and not a press that began inside the
|
|
74
|
+
* panel and was released on the backdrop — closes it when `dismissable` is `true`
|
|
71
75
|
* (default) **and** this dialog is the top of the stack; a lower dialog's own backdrop click
|
|
72
76
|
* (unreachable in a real browser, where the topmost modal's full-viewport surface covers it, but
|
|
73
77
|
* reachable from a test dispatching the event directly) does nothing. `dismissable` is read on
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
2
|
+
/** The injection key `provideEldraScope` provides under. */
|
|
3
|
+
export declare const ELDRA_SCOPE_KEY: InjectionKey<string>;
|
|
4
|
+
/**
|
|
5
|
+
* Names a theming scope for every component of this package rendered below the caller (see the
|
|
6
|
+
* README, "Theming a subtree"). Call it in `setup()` of a wrapper or an app root.
|
|
7
|
+
*
|
|
8
|
+
* Each component then renders `data-eldra-scope="<name>"` on its root and on every part it
|
|
9
|
+
* teleports (panels, dialogs, toasts). The name is free; the consumer's own variable overrides
|
|
10
|
+
* target it (`[data-eldra-scope='studio'] { --eldra-color-primary: … }`). Without a provider the
|
|
11
|
+
* attribute is not rendered, so the output is unchanged.
|
|
12
|
+
*/
|
|
13
|
+
export declare function provideEldraScope(name?: string): void;
|
|
14
|
+
/**
|
|
15
|
+
* Internal: the theming hooks a component of this package binds. `scope` goes on every root,
|
|
16
|
+
* teleported root and kit-owned element sitting directly in a slot host, so a scope's variables
|
|
17
|
+
* reach it; it is `undefined` without a provider. `slotHost(...names)` is `data-eldra-slot`, on
|
|
18
|
+
* the element holding those slots, a hook for consumer CSS. It renders whenever one of the slots
|
|
19
|
+
* has content, provider or not, and never for a fallback, which is the kit's own markup.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useEldraScope(): {
|
|
22
|
+
scope: string | undefined;
|
|
23
|
+
slotHost: (...names: string[]) => "" | undefined;
|
|
24
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReferenceElement } from '@floating-ui/vue';
|
|
2
|
+
import { ComputedRef, MaybeRefOrGetter, Ref } from 'vue';
|
|
2
3
|
/**
|
|
3
4
|
* Where the panel goes.
|
|
4
5
|
*
|
|
@@ -7,14 +8,22 @@ import { ComputedRef, Ref } from 'vue';
|
|
|
7
8
|
* `above` always opens above — the footer's selectors, where below is off-screen by definition. The
|
|
8
9
|
* remaining values are `@floating-ui/dom` placements for anything that wants to be explicit —
|
|
9
10
|
* `top-end`/`bottom-end` are `Tooltip`'s own `align="end"`, added alongside the `-start` pair
|
|
10
|
-
* already here for `align="start"`.
|
|
11
|
+
* already here for `align="start"`. The `left`/`right` family is for a panel that opens beside its
|
|
12
|
+
* reference (a submenu, a toolbar flyout); like every explicit placement it flips to the other side.
|
|
11
13
|
*/
|
|
12
|
-
export type FloatingPlacement = 'auto' | 'above' | 'bottom' | 'bottom-start' | 'bottom-end' | 'top' | 'top-start' | 'top-end';
|
|
14
|
+
export type FloatingPlacement = 'auto' | 'above' | 'bottom' | 'bottom-start' | 'bottom-end' | 'top' | 'top-start' | 'top-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
13
15
|
export interface UseFloatingOptions {
|
|
14
|
-
/**
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Default `'auto'` — below, flipping above when it does not fit. A ref or getter is followed: the
|
|
18
|
+
* panel repositions when it changes.
|
|
19
|
+
*/
|
|
20
|
+
placement?: MaybeRefOrGetter<FloatingPlacement>;
|
|
21
|
+
/** Gap between the reference and the panel, in pixels. Default `4` (the spec's 0.25rem). Followed
|
|
22
|
+
* when a ref or getter. */
|
|
23
|
+
offset?: MaybeRefOrGetter<number | undefined>;
|
|
24
|
+
/** The least room `shift` keeps between the panel and the viewport edge, in pixels. Default `8`.
|
|
25
|
+
* Followed when a ref or getter. */
|
|
26
|
+
padding?: MaybeRefOrGetter<number | undefined>;
|
|
18
27
|
/**
|
|
19
28
|
* Tie the panel's width to the reference's.
|
|
20
29
|
*
|
|
@@ -78,5 +87,9 @@ export interface UseFloatingReturn {
|
|
|
78
87
|
* const panel = ref<HTMLElement | null>(null);
|
|
79
88
|
* const { styles, placement } = useFloating(trigger, panel, { matchWidth: true });
|
|
80
89
|
* ```
|
|
90
|
+
*
|
|
91
|
+
* The reference may be a Floating UI **virtual element** (`{ getBoundingClientRect() }`), for a
|
|
92
|
+
* panel anchored to a caret or a pointer position rather than to a node; call `update()` after it
|
|
93
|
+
* moves, since nothing observes a virtual element's geometry.
|
|
81
94
|
*/
|
|
82
|
-
export declare function useFloating(reference: Ref<
|
|
95
|
+
export declare function useFloating(reference: Readonly<Ref<ReferenceElement | null>>, floating: Ref<HTMLElement | null>, options?: UseFloatingOptions): UseFloatingReturn;
|
|
@@ -15,12 +15,17 @@ export interface UseOverlayOptions {
|
|
|
15
15
|
content: Ref<HTMLElement | null>;
|
|
16
16
|
/** Asked to close. The consumer writes `open`; nothing here does. */
|
|
17
17
|
setOpen: (open: boolean) => void;
|
|
18
|
-
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Close when a pointer press lands outside the overlay — and, unless `closeOnFocusOutside` says
|
|
20
|
+
* otherwise, when focus does. Default `true`. A getter is asked on every event.
|
|
21
|
+
*/
|
|
22
|
+
closeOnOutsideClick?: boolean | (() => boolean);
|
|
23
|
+
/** Close when focus moves outside the overlay. Default: whatever `closeOnOutsideClick` is. */
|
|
24
|
+
closeOnFocusOutside?: boolean | (() => boolean);
|
|
25
|
+
/** Close on `Escape`. Default `true`. A getter is asked on every keystroke. */
|
|
26
|
+
closeOnEscape?: boolean | (() => boolean);
|
|
22
27
|
/** Put focus back on the trigger when closing would otherwise lose it. Default `true`. */
|
|
23
|
-
returnFocus?: boolean;
|
|
28
|
+
returnFocus?: boolean | (() => boolean);
|
|
24
29
|
}
|
|
25
30
|
export interface UseOverlayReturn {
|
|
26
31
|
/** Ask the consumer to close. */
|
|
@@ -9,6 +9,8 @@ export interface ToastOptions {
|
|
|
9
9
|
text?: string;
|
|
10
10
|
/** One action: a link (`{ label, href }`) or a button (`{ label, onActivate }`). */
|
|
11
11
|
action?: ToastAction;
|
|
12
|
+
/** Shows the close button and closes on `Escape`. Default `true`. */
|
|
13
|
+
closable?: boolean;
|
|
12
14
|
/** Auto-dismiss time in ms; `0` stays until closed. Ignored for `variant: "danger"` — it is
|
|
13
15
|
* always `0` (spec "Toast" -> Properties, `duration` row: "Danger is always `0`."). Defaults to
|
|
14
16
|
* the variant's own timing (see `DEFAULT_DURATION` below) when omitted. */
|
|
@@ -26,6 +28,7 @@ export interface ToastItem {
|
|
|
26
28
|
title: string;
|
|
27
29
|
text?: string;
|
|
28
30
|
action?: ToastAction;
|
|
31
|
+
closable?: boolean;
|
|
29
32
|
duration: number;
|
|
30
33
|
}
|
|
31
34
|
export interface UseToastReturn {
|
package/dist/index.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export { default as Popover } from './components/popover/Popover.vue.js';
|
|
|
36
36
|
export { default as Price } from './components/price/Price.vue.js';
|
|
37
37
|
export { default as ProductCard } from './components/product-card/ProductCard.vue.js';
|
|
38
38
|
export { default as QuantityStepper } from './components/quantity-stepper/QuantityStepper.vue.js';
|
|
39
|
+
export { default as Radio } from './components/radio/Radio.vue.js';
|
|
39
40
|
export { default as RadioGroup } from './components/radio/RadioGroup.vue.js';
|
|
40
41
|
export { default as RangeSlider } from './components/range-slider/RangeSlider.vue.js';
|
|
41
42
|
export { default as Rating } from './components/rating/Rating.vue.js';
|
|
@@ -63,11 +64,11 @@ export type { AppliedFilter, FilterFacet, FilterFacetLayout, FilterFacetSelectio
|
|
|
63
64
|
export type { AvatarGroupPart, AvatarGroupPerson, AvatarGroupProps, AvatarPart, AvatarProps, AvatarSize, } from './components/avatar/types.js';
|
|
64
65
|
export type { BadgePart, BadgeProps, BadgeTone, BadgeVariant, StockBadgePart, StockBadgeProps, StockLevel, } from './components/badge/types.js';
|
|
65
66
|
export type { BreadcrumbItem, BreadcrumbPart, BreadcrumbProps, } from './components/breadcrumb/types.js';
|
|
66
|
-
export type { ButtonGroupPart, ButtonGroupProps, ButtonPart, ButtonProps, ButtonSize, ButtonVariant, } from './components/button/types.js';
|
|
67
|
+
export type { ButtonGroupPart, ButtonGroupProps, ButtonPart, ButtonProps, ButtonSize, ButtonSpinnerPlacement, ButtonVariant, } from './components/button/types.js';
|
|
67
68
|
export type { CarouselControls, CarouselPart, CarouselPerViewBreakpoints, CarouselProps, } from './components/carousel/types.js';
|
|
68
69
|
export type { CheckboxGroupLayout, CheckboxGroupOption, CheckboxGroupPart, CheckboxGroupProps, CheckboxPart, CheckboxProps, CheckboxSize, } from './components/checkbox/types.js';
|
|
69
70
|
export type { ChipGroupPart, ChipGroupProps, ChipPart, ChipProps, ChipSize, } from './components/chip/types.js';
|
|
70
|
-
export type {
|
|
71
|
+
export type { ContainerProps, ContainerWidth } from './components/container/types.js';
|
|
71
72
|
export type { ContentCardPart, ContentCardProps, ContentCardRatio, ContentCardVariant, FeatureCardPart, FeatureCardProps, FeatureCardVariant, } from './components/card/types.js';
|
|
72
73
|
export type { CurrencyInputPart, CurrencyInputProps } from './components/currency-input/types.js';
|
|
73
74
|
export type { DialogPart, DialogProps, DialogSize } from './components/dialog/types.js';
|
|
@@ -75,7 +76,7 @@ export type { DrawerPart, DrawerProps, DrawerSide } from './components/drawer/ty
|
|
|
75
76
|
export type { EditorPlaceholderPart, EditorPlaceholderProps, EmptyStatePart, EmptyStateProps, EmptyStateVariant, } from './components/empty-state/types.js';
|
|
76
77
|
export type { FieldWrapperCounter, FieldWrapperPart, FieldWrapperProps, } from './components/field-wrapper/types.js';
|
|
77
78
|
export type { FormLayoutHeadingLevel, FormLayoutPart, FormLayoutProps, FormLayoutSubmitPayload, FormLayoutVariant, } from './components/form-layout/types.js';
|
|
78
|
-
export type { IconComponent,
|
|
79
|
+
export type { IconComponent, IconProps, IconSize } from './components/icon/types.js';
|
|
79
80
|
export type { ImageCrop, ImageMedia, ImagePart, ImageProps, ImageRatio, } from './components/image/types.js';
|
|
80
81
|
export type { InputPart, InputProps, InputSize, InputType } from './components/input/types.js';
|
|
81
82
|
export type { LightboxImage, LightboxPart, LightboxProps } from './components/lightbox/types.js';
|
|
@@ -89,26 +90,27 @@ export type { PopoverPart, PopoverProps } from './components/popover/types.js';
|
|
|
89
90
|
export type { PricePart, PriceProps, PriceSize } from './components/price/types.js';
|
|
90
91
|
export type { ProductCardPart, ProductCardProduct, ProductCardProps, ProductCardRatio, } from './components/product-card/types.js';
|
|
91
92
|
export type { QuantityStepperPart, QuantityStepperProps, QuantityStepperSize, } from './components/quantity-stepper/types.js';
|
|
92
|
-
export type { RadioGroupLayout, RadioGroupOption, RadioGroupPart, RadioGroupProps, RadioGroupSize, } from './components/radio/types.js';
|
|
93
|
+
export type { RadioGroupLayout, RadioGroupOption, RadioGroupPart, RadioGroupProps, RadioGroupSize, RadioPart, RadioProps, RadioValue, } from './components/radio/types.js';
|
|
93
94
|
export type { RangeSliderEnd, RangeSliderInputsSlotProps, RangeSliderPart, RangeSliderProps, RangeSliderThumb, RangeSliderTrackSlotProps, RangeSliderValue, } from './components/range-slider/types.js';
|
|
94
95
|
export type { RatingPart, RatingProps, RatingSize } from './components/rating/types.js';
|
|
95
96
|
export type { SearchBarPart, SearchBarProps, SearchBarSize, SearchResultItem, SearchResultType, SearchResults, SearchRow, SearchSection, SearchSelectType, } from './components/search-bar/types.js';
|
|
96
97
|
export type { SearchModalPart, SearchModalProps } from './components/search-modal/types.js';
|
|
97
|
-
export type { SectionBackground,
|
|
98
|
+
export type { SectionBackground, SectionProps, SectionSpacing } from './components/section/types.js';
|
|
98
99
|
export type { SiteFormClient, SiteFormDefinition, SiteFormFailure, SiteFormFailureReason, SiteFormField, SiteFormLayout, SiteFormPart, SiteFormProps, SiteFormStatus, SiteFormSubmitOutcome, SiteFormSuccess, SiteFormValue, } from './components/site-form/types.js';
|
|
99
100
|
export type { SkeletonPart, SkeletonProps, SkeletonVariant } from './components/skeleton/types.js';
|
|
100
|
-
export type { SwitchPart, SwitchProps, SwitchSize } from './components/switch/types.js';
|
|
101
|
+
export type { SwitchPart, SwitchProps, SwitchSize, SwitchSlotProps, } from './components/switch/types.js';
|
|
101
102
|
export type { TabPanelPart, TabPanelProps, TabPart, TabProps, TabsActivation, TabsItem, TabsPart, TabsProps, TabsVariant, } from './components/tabs/types.js';
|
|
102
|
-
export type {
|
|
103
|
+
export type { TablerIconProps } from './components/tabler-icon/types.js';
|
|
103
104
|
export type { TextareaPart, TextareaProps } from './components/textarea/types.js';
|
|
104
|
-
export type { ToastAction, ToastPart, ToastProps, ToastVariant, ToasterPart, ToasterProps, } from './components/toast/types.js';
|
|
105
|
+
export type { ToastAction, ToastPart, ToastProps, ToastVariant, ToasterPart, ToasterPosition, ToasterProps, ToasterToast, } from './components/toast/types.js';
|
|
105
106
|
export type { TooltipAlign, TooltipPart, TooltipPlacement, TooltipProps, TooltipRole, } from './components/tooltip/types.js';
|
|
106
107
|
export type { UnitInputPart, UnitInputProps } from './components/unit-input/types.js';
|
|
107
108
|
export type { VariantPickerOption, VariantPickerPart, VariantPickerProps, VariantPickerType, } from './components/variant-picker/types.js';
|
|
108
|
-
export type {
|
|
109
|
+
export type { VisuallyHiddenProps } from './components/visually-hidden/types.js';
|
|
109
110
|
export { defaultMessages, enUS } from './messages/index.js';
|
|
110
111
|
export { MESSAGES_KEY, provideEldraUiMessages, useMessages, type UiMessages, } from './composables/useMessages.js';
|
|
111
112
|
export { CURRENCY_KEY, DEFAULT_UI_LOCALE, LOCALE_KEY, provideEldraUiCurrency, provideEldraUiLocale, useEldraUiCurrency, useEldraUiLocale, } from './composables/useLocale.js';
|
|
113
|
+
export { ELDRA_SCOPE_KEY, provideEldraScope } from './composables/useEldraScope.js';
|
|
112
114
|
export { useControllableModel } from './composables/useControllableModel.js';
|
|
113
115
|
export { preloadTablerIcons } from './components/tabler-icon/registry.js';
|
|
114
116
|
export { tablerIconName } from './components/tabler-icon/tablerIconName.js';
|
|
@@ -116,6 +118,7 @@ export { closeDialog, currentDialog, isOpenDialog, openDialog, TOAST_HOST_KEY, }
|
|
|
116
118
|
export { useDialog, type UseDialogOptions, type UseDialogReturn } from './composables/useDialog.js';
|
|
117
119
|
export { useToast, type ToastItem, type ToastOptions, type UseToastReturn, } from './composables/useToast.js';
|
|
118
120
|
export { useFloating, type FloatingPlacement, type UseFloatingOptions, type UseFloatingReturn, } from './composables/useFloating.js';
|
|
121
|
+
export { topLayerDialog } from './composables/teleportTarget.js';
|
|
119
122
|
export { useHeadingTag, type HeadingLevel } from './composables/useHeadingTag.js';
|
|
120
123
|
export { useOverlay, type UseOverlayOptions, type UseOverlayReturn, } from './composables/useOverlay.js';
|
|
121
124
|
export { normalizeText, useListbox, type ListboxOption, type UseListboxOptions, type UseListboxReturn, } from './components/select/useListbox.js';
|
|
@@ -132,7 +135,6 @@ export { SECTION_KEY } from './components/section/context.js';
|
|
|
132
135
|
export { CHIP_GROUP_KEY, type ChipGroupContext } from './components/chip/context.js';
|
|
133
136
|
export { ACCORDION_KEY, type AccordionContext } from './components/accordion/context.js';
|
|
134
137
|
export { TABS_KEY, type TabsContext, type TabsEntry } from './components/tabs/context.js';
|
|
135
|
-
export { cx, partClass, type ClassValue } from './utils/cx.js';
|
|
136
138
|
export { mixToward } from './utils/color.js';
|
|
137
139
|
export { joinIds, useUiId } from './utils/id.js';
|
|
138
140
|
export { applyMask, defaultCharacterMeaning, stripMask } from './utils/mask.js';
|