@eldrajs/ui 0.2.9 → 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 +7 -0
- package/README.md +113 -122
- package/dist/{VariantPicker-Da41_oGA.js → VariantPicker-C-9sMXGI.js} +1188 -798
- 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 +3 -3
- package/dist/components/button/ButtonGroup.vue.d.ts +0 -1
- package/dist/components/button/types.d.ts +7 -6
- package/dist/components/card/ContentCard.vue.d.ts +1 -1
- 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 +3 -3
- package/dist/components/checkbox/CheckboxGroup.vue.d.ts +1 -1
- package/dist/components/checkbox/types.d.ts +10 -4
- package/dist/components/chip/Chip.vue.d.ts +1 -1
- 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 +2 -2
- package/dist/components/dialog/types.d.ts +5 -2
- package/dist/components/drawer/Drawer.vue.d.ts +1 -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 +1 -1
- package/dist/components/field-wrapper/types.d.ts +5 -2
- package/dist/components/filter-panel/FilterPanel.vue.d.ts +4 -4
- 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 +6 -6
- package/dist/components/input/classes.d.ts +25 -19
- package/dist/components/input/types.d.ts +5 -2
- package/dist/components/lightbox/Lightbox.vue.d.ts +1 -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 +1 -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/types.d.ts +5 -2
- package/dist/components/popover/Popover.vue.d.ts +1 -1
- package/dist/components/popover/types.d.ts +5 -6
- package/dist/components/price/types.d.ts +3 -2
- package/dist/components/product-card/ProductCard.vue.d.ts +1 -1
- 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 +3 -3
- package/dist/components/radio/RadioGroup.vue.d.ts +3 -3
- package/dist/components/radio/recipes.d.ts +11 -7
- package/dist/components/radio/types.d.ts +11 -5
- package/dist/components/range-slider/RangeSlider.vue.d.ts +1 -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 +3 -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 +2 -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 +5 -5
- package/dist/components/select/Select.vue.d.ts +4 -4
- package/dist/components/select/SelectPanel.vue.d.ts +2 -2
- package/dist/components/select/panelParts.d.ts +21 -20
- package/dist/components/select/types.d.ts +10 -4
- package/dist/components/site-form/SiteForm.vue.d.ts +1 -1
- 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 +2 -2
- package/dist/components/switch/types.d.ts +5 -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 +1 -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/types.d.ts +13 -11
- package/dist/components/textarea/Textarea.vue.d.ts +4 -4
- package/dist/components/textarea/types.d.ts +5 -2
- package/dist/components/toast/types.d.ts +9 -3
- 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 +1422 -2310
- package/dist/composables/useEldraScope.d.ts +7 -9
- package/dist/index.d.ts +5 -6
- package/dist/index.js +1357 -880
- package/dist/style.css +1427 -2315
- package/dist/tailwind.css +11 -2234
- package/dist/theme.css +108 -0
- package/dist/tokens.css +1 -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 +1 -1
- package/package.json +4 -3
- package/dist/scoped.css +0 -4623
- package/dist/utils/cx.d.ts +0 -31
|
@@ -2,9 +2,8 @@ import { InjectionKey } from 'vue';
|
|
|
2
2
|
/** The injection key `provideEldraScope` provides under. */
|
|
3
3
|
export declare const ELDRA_SCOPE_KEY: InjectionKey<string>;
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* "Embedding in another Tailwind app"). Call it in `setup()` of a wrapper or an app root.
|
|
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.
|
|
8
7
|
*
|
|
9
8
|
* Each component then renders `data-eldra-scope="<name>"` on its root and on every part it
|
|
10
9
|
* teleports (panels, dialogs, toasts). The name is free; the consumer's own variable overrides
|
|
@@ -13,12 +12,11 @@ export declare const ELDRA_SCOPE_KEY: InjectionKey<string>;
|
|
|
13
12
|
*/
|
|
14
13
|
export declare function provideEldraScope(name?: string): void;
|
|
15
14
|
/**
|
|
16
|
-
* Internal:
|
|
17
|
-
* teleported root and kit-owned element sitting directly in a slot host
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* style without `scoped.css`), and never for a fallback, which is the kit's own markup.
|
|
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.
|
|
22
20
|
*/
|
|
23
21
|
export declare function useEldraScope(): {
|
|
24
22
|
scope: string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ export type { ButtonGroupPart, ButtonGroupProps, ButtonPart, ButtonProps, Button
|
|
|
68
68
|
export type { CarouselControls, CarouselPart, CarouselPerViewBreakpoints, CarouselProps, } from './components/carousel/types.js';
|
|
69
69
|
export type { CheckboxGroupLayout, CheckboxGroupOption, CheckboxGroupPart, CheckboxGroupProps, CheckboxPart, CheckboxProps, CheckboxSize, } from './components/checkbox/types.js';
|
|
70
70
|
export type { ChipGroupPart, ChipGroupProps, ChipPart, ChipProps, ChipSize, } from './components/chip/types.js';
|
|
71
|
-
export type {
|
|
71
|
+
export type { ContainerProps, ContainerWidth } from './components/container/types.js';
|
|
72
72
|
export type { ContentCardPart, ContentCardProps, ContentCardRatio, ContentCardVariant, FeatureCardPart, FeatureCardProps, FeatureCardVariant, } from './components/card/types.js';
|
|
73
73
|
export type { CurrencyInputPart, CurrencyInputProps } from './components/currency-input/types.js';
|
|
74
74
|
export type { DialogPart, DialogProps, DialogSize } from './components/dialog/types.js';
|
|
@@ -76,7 +76,7 @@ export type { DrawerPart, DrawerProps, DrawerSide } from './components/drawer/ty
|
|
|
76
76
|
export type { EditorPlaceholderPart, EditorPlaceholderProps, EmptyStatePart, EmptyStateProps, EmptyStateVariant, } from './components/empty-state/types.js';
|
|
77
77
|
export type { FieldWrapperCounter, FieldWrapperPart, FieldWrapperProps, } from './components/field-wrapper/types.js';
|
|
78
78
|
export type { FormLayoutHeadingLevel, FormLayoutPart, FormLayoutProps, FormLayoutSubmitPayload, FormLayoutVariant, } from './components/form-layout/types.js';
|
|
79
|
-
export type { IconComponent,
|
|
79
|
+
export type { IconComponent, IconProps, IconSize } from './components/icon/types.js';
|
|
80
80
|
export type { ImageCrop, ImageMedia, ImagePart, ImageProps, ImageRatio, } from './components/image/types.js';
|
|
81
81
|
export type { InputPart, InputProps, InputSize, InputType } from './components/input/types.js';
|
|
82
82
|
export type { LightboxImage, LightboxPart, LightboxProps } from './components/lightbox/types.js';
|
|
@@ -95,18 +95,18 @@ export type { RangeSliderEnd, RangeSliderInputsSlotProps, RangeSliderPart, Range
|
|
|
95
95
|
export type { RatingPart, RatingProps, RatingSize } from './components/rating/types.js';
|
|
96
96
|
export type { SearchBarPart, SearchBarProps, SearchBarSize, SearchResultItem, SearchResultType, SearchResults, SearchRow, SearchSection, SearchSelectType, } from './components/search-bar/types.js';
|
|
97
97
|
export type { SearchModalPart, SearchModalProps } from './components/search-modal/types.js';
|
|
98
|
-
export type { SectionBackground,
|
|
98
|
+
export type { SectionBackground, SectionProps, SectionSpacing } from './components/section/types.js';
|
|
99
99
|
export type { SiteFormClient, SiteFormDefinition, SiteFormFailure, SiteFormFailureReason, SiteFormField, SiteFormLayout, SiteFormPart, SiteFormProps, SiteFormStatus, SiteFormSubmitOutcome, SiteFormSuccess, SiteFormValue, } from './components/site-form/types.js';
|
|
100
100
|
export type { SkeletonPart, SkeletonProps, SkeletonVariant } from './components/skeleton/types.js';
|
|
101
101
|
export type { SwitchPart, SwitchProps, SwitchSize, SwitchSlotProps, } from './components/switch/types.js';
|
|
102
102
|
export type { TabPanelPart, TabPanelProps, TabPart, TabProps, TabsActivation, TabsItem, TabsPart, TabsProps, TabsVariant, } from './components/tabs/types.js';
|
|
103
|
-
export type {
|
|
103
|
+
export type { TablerIconProps } from './components/tabler-icon/types.js';
|
|
104
104
|
export type { TextareaPart, TextareaProps } from './components/textarea/types.js';
|
|
105
105
|
export type { ToastAction, ToastPart, ToastProps, ToastVariant, ToasterPart, ToasterPosition, ToasterProps, ToasterToast, } from './components/toast/types.js';
|
|
106
106
|
export type { TooltipAlign, TooltipPart, TooltipPlacement, TooltipProps, TooltipRole, } from './components/tooltip/types.js';
|
|
107
107
|
export type { UnitInputPart, UnitInputProps } from './components/unit-input/types.js';
|
|
108
108
|
export type { VariantPickerOption, VariantPickerPart, VariantPickerProps, VariantPickerType, } from './components/variant-picker/types.js';
|
|
109
|
-
export type {
|
|
109
|
+
export type { VisuallyHiddenProps } from './components/visually-hidden/types.js';
|
|
110
110
|
export { defaultMessages, enUS } from './messages/index.js';
|
|
111
111
|
export { MESSAGES_KEY, provideEldraUiMessages, useMessages, type UiMessages, } from './composables/useMessages.js';
|
|
112
112
|
export { CURRENCY_KEY, DEFAULT_UI_LOCALE, LOCALE_KEY, provideEldraUiCurrency, provideEldraUiLocale, useEldraUiCurrency, useEldraUiLocale, } from './composables/useLocale.js';
|
|
@@ -135,7 +135,6 @@ export { SECTION_KEY } from './components/section/context.js';
|
|
|
135
135
|
export { CHIP_GROUP_KEY, type ChipGroupContext } from './components/chip/context.js';
|
|
136
136
|
export { ACCORDION_KEY, type AccordionContext } from './components/accordion/context.js';
|
|
137
137
|
export { TABS_KEY, type TabsContext, type TabsEntry } from './components/tabs/context.js';
|
|
138
|
-
export { cx, partClass, type ClassValue } from './utils/cx.js';
|
|
139
138
|
export { mixToward } from './utils/color.js';
|
|
140
139
|
export { joinIds, useUiId } from './utils/id.js';
|
|
141
140
|
export { applyMask, defaultCharacterMeaning, stripMask } from './utils/mask.js';
|