@vertz/theme-shadcn 0.2.36 → 0.2.38
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/dist/index.js +259 -224
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
palettes
|
|
13
13
|
} from "./shared/chunk-f0wk9320.js";
|
|
14
14
|
// src/configure.ts
|
|
15
|
+
import { injectCSS as injectCSS2 } from "@vertz/ui";
|
|
15
16
|
import {
|
|
16
17
|
ComposedAlert,
|
|
17
18
|
ComposedAvatar,
|
|
@@ -3850,234 +3851,268 @@ function createTooltipStyles() {
|
|
|
3850
3851
|
// src/configure.ts
|
|
3851
3852
|
function configureTheme(config) {
|
|
3852
3853
|
const { theme, globals } = configureThemeBase(config);
|
|
3853
|
-
const buttonStyles = createButton();
|
|
3854
|
-
const badgeStyles = createBadge();
|
|
3855
|
-
const cardStyles = createCard();
|
|
3856
|
-
const inputStyles = createInput();
|
|
3857
|
-
const labelStyles = createLabel();
|
|
3858
|
-
const separatorStyles = createSeparator();
|
|
3859
|
-
const formGroupStyles = createFormGroup();
|
|
3860
|
-
const dialogStyles = createDialogStyles();
|
|
3861
3854
|
createDialogGlobalStyles();
|
|
3862
|
-
const
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
const sliderStyles = createSliderStyles();
|
|
3871
|
-
const alertStyles = createAlertStyles();
|
|
3872
|
-
const accordionStyles = createAccordionStyles();
|
|
3873
|
-
const textareaStyles = createTextarea();
|
|
3874
|
-
const toastStyles = createToastStyles();
|
|
3875
|
-
const tooltipStyles = createTooltipStyles();
|
|
3876
|
-
const avatarStyles = createAvatarStyles();
|
|
3877
|
-
const emptyStateStyles = createEmptyStateStyles();
|
|
3878
|
-
const skeletonStyles = createSkeletonStyles();
|
|
3879
|
-
const tableStyles = createTableStyles();
|
|
3880
|
-
const sheetStyles = createSheetStyles();
|
|
3881
|
-
const breadcrumbStyles = createBreadcrumbStyles();
|
|
3882
|
-
const calendarStyles = createCalendarStyles();
|
|
3883
|
-
const carouselStyles = createCarouselStyles();
|
|
3884
|
-
const collapsibleStyles = createCollapsibleStyles();
|
|
3885
|
-
const commandStyles = createCommandStyles();
|
|
3886
|
-
const contextMenuStyles = createContextMenuStyles();
|
|
3887
|
-
const datePickerStyles = createDatePickerStyles();
|
|
3888
|
-
const drawerStyles = createDrawerStyles();
|
|
3889
|
-
const hoverCardStyles = createHoverCardStyles();
|
|
3890
|
-
const listStyles = createListStyles();
|
|
3891
|
-
const menubarStyles = createMenubarStyles();
|
|
3892
|
-
const navigationMenuStyles = createNavigationMenuStyles();
|
|
3893
|
-
const paginationStyles = createPaginationStyles();
|
|
3894
|
-
const resizablePanelStyles = createResizablePanelStyles();
|
|
3895
|
-
const scrollAreaStyles = createScrollAreaStyles();
|
|
3896
|
-
const toggleStyles = createToggleStyles();
|
|
3897
|
-
const toggleGroupStyles = createToggleGroupStyles();
|
|
3898
|
-
const styles = {
|
|
3899
|
-
alert: alertStyles,
|
|
3900
|
-
button: buttonStyles,
|
|
3901
|
-
badge: badgeStyles,
|
|
3902
|
-
card: cardStyles,
|
|
3903
|
-
input: inputStyles,
|
|
3904
|
-
textarea: textareaStyles,
|
|
3905
|
-
label: labelStyles,
|
|
3906
|
-
separator: separatorStyles,
|
|
3907
|
-
formGroup: formGroupStyles,
|
|
3908
|
-
dialog: dialogStyles,
|
|
3909
|
-
dropdownMenu: dropdownMenuStyles,
|
|
3910
|
-
select: selectStyles,
|
|
3911
|
-
tabs: tabsStyles,
|
|
3912
|
-
checkbox: checkboxStyles,
|
|
3913
|
-
switch: switchStyles,
|
|
3914
|
-
popover: popoverStyles,
|
|
3915
|
-
progress: progressStyles,
|
|
3916
|
-
radioGroup: radioGroupStyles,
|
|
3917
|
-
slider: sliderStyles,
|
|
3918
|
-
accordion: accordionStyles,
|
|
3919
|
-
toast: toastStyles,
|
|
3920
|
-
tooltip: tooltipStyles,
|
|
3921
|
-
avatar: avatarStyles,
|
|
3922
|
-
emptyState: emptyStateStyles,
|
|
3923
|
-
skeleton: skeletonStyles,
|
|
3924
|
-
table: tableStyles,
|
|
3925
|
-
sheet: sheetStyles,
|
|
3926
|
-
breadcrumb: breadcrumbStyles,
|
|
3927
|
-
calendar: calendarStyles,
|
|
3928
|
-
carousel: carouselStyles,
|
|
3929
|
-
collapsible: collapsibleStyles,
|
|
3930
|
-
command: commandStyles,
|
|
3931
|
-
contextMenu: contextMenuStyles,
|
|
3932
|
-
datePicker: datePickerStyles,
|
|
3933
|
-
drawer: drawerStyles,
|
|
3934
|
-
hoverCard: hoverCardStyles,
|
|
3935
|
-
list: listStyles,
|
|
3936
|
-
menubar: menubarStyles,
|
|
3937
|
-
navigationMenu: navigationMenuStyles,
|
|
3938
|
-
pagination: paginationStyles,
|
|
3939
|
-
resizablePanel: resizablePanelStyles,
|
|
3940
|
-
scrollArea: scrollAreaStyles,
|
|
3941
|
-
toggle: toggleStyles,
|
|
3942
|
-
toggleGroup: toggleGroupStyles
|
|
3943
|
-
};
|
|
3944
|
-
const badgeColorInlineStyles = {
|
|
3945
|
-
blue: { backgroundColor: "oklch(0.55 0.15 250)", color: "#fff" },
|
|
3946
|
-
green: { backgroundColor: "oklch(0.55 0.15 155)", color: "#fff" },
|
|
3947
|
-
yellow: { backgroundColor: "oklch(0.75 0.15 85)", color: "oklch(0.25 0.05 85)" }
|
|
3948
|
-
};
|
|
3949
|
-
const DefaultAlert = withStyles19(ComposedAlert, {
|
|
3950
|
-
root: alertStyles.root,
|
|
3951
|
-
title: alertStyles.title,
|
|
3952
|
-
description: alertStyles.description
|
|
3953
|
-
});
|
|
3954
|
-
const DestructiveAlert = withStyles19(ComposedAlert, {
|
|
3955
|
-
root: [alertStyles.root, alertStyles.destructive].join(" "),
|
|
3956
|
-
title: alertStyles.title,
|
|
3957
|
-
description: alertStyles.description
|
|
3958
|
-
});
|
|
3959
|
-
function ThemedAlert({ variant, ...rest }) {
|
|
3960
|
-
return (variant === "destructive" ? DestructiveAlert : DefaultAlert)(rest);
|
|
3855
|
+
const styleCache = new Map;
|
|
3856
|
+
function getOrInit(key, factory) {
|
|
3857
|
+
let value = styleCache.get(key);
|
|
3858
|
+
if (value === undefined) {
|
|
3859
|
+
value = factory();
|
|
3860
|
+
styleCache.set(key, value);
|
|
3861
|
+
}
|
|
3862
|
+
return value;
|
|
3961
3863
|
}
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
3864
|
+
function defineLazyStyle(key, factory) {
|
|
3865
|
+
Object.defineProperty(styles, key, {
|
|
3866
|
+
get() {
|
|
3867
|
+
const result2 = getOrInit(key, factory);
|
|
3868
|
+
const cssText = result2.css;
|
|
3869
|
+
if (cssText)
|
|
3870
|
+
injectCSS2(cssText);
|
|
3871
|
+
return result2;
|
|
3872
|
+
},
|
|
3873
|
+
enumerable: true,
|
|
3874
|
+
configurable: true
|
|
3875
|
+
});
|
|
3876
|
+
}
|
|
3877
|
+
const styles = {};
|
|
3878
|
+
defineLazyStyle("alert", createAlertStyles);
|
|
3879
|
+
defineLazyStyle("button", createButton);
|
|
3880
|
+
defineLazyStyle("badge", createBadge);
|
|
3881
|
+
defineLazyStyle("card", createCard);
|
|
3882
|
+
defineLazyStyle("input", createInput);
|
|
3883
|
+
defineLazyStyle("textarea", createTextarea);
|
|
3884
|
+
defineLazyStyle("label", createLabel);
|
|
3885
|
+
defineLazyStyle("separator", createSeparator);
|
|
3886
|
+
defineLazyStyle("formGroup", createFormGroup);
|
|
3887
|
+
defineLazyStyle("dialog", createDialogStyles);
|
|
3888
|
+
defineLazyStyle("dropdownMenu", createDropdownMenuStyles);
|
|
3889
|
+
defineLazyStyle("select", createSelectStyles);
|
|
3890
|
+
defineLazyStyle("tabs", createTabsStyles);
|
|
3891
|
+
defineLazyStyle("checkbox", createCheckboxStyles);
|
|
3892
|
+
defineLazyStyle("switch", createSwitchStyles);
|
|
3893
|
+
defineLazyStyle("popover", createPopoverStyles);
|
|
3894
|
+
defineLazyStyle("progress", createProgressStyles);
|
|
3895
|
+
defineLazyStyle("radioGroup", createRadioGroupStyles);
|
|
3896
|
+
defineLazyStyle("slider", createSliderStyles);
|
|
3897
|
+
defineLazyStyle("accordion", createAccordionStyles);
|
|
3898
|
+
defineLazyStyle("toast", createToastStyles);
|
|
3899
|
+
defineLazyStyle("tooltip", createTooltipStyles);
|
|
3900
|
+
defineLazyStyle("avatar", createAvatarStyles);
|
|
3901
|
+
defineLazyStyle("emptyState", createEmptyStateStyles);
|
|
3902
|
+
defineLazyStyle("skeleton", createSkeletonStyles);
|
|
3903
|
+
defineLazyStyle("table", createTableStyles);
|
|
3904
|
+
defineLazyStyle("sheet", createSheetStyles);
|
|
3905
|
+
defineLazyStyle("breadcrumb", createBreadcrumbStyles);
|
|
3906
|
+
defineLazyStyle("calendar", createCalendarStyles);
|
|
3907
|
+
defineLazyStyle("carousel", createCarouselStyles);
|
|
3908
|
+
defineLazyStyle("collapsible", createCollapsibleStyles);
|
|
3909
|
+
defineLazyStyle("command", createCommandStyles);
|
|
3910
|
+
defineLazyStyle("contextMenu", createContextMenuStyles);
|
|
3911
|
+
defineLazyStyle("datePicker", createDatePickerStyles);
|
|
3912
|
+
defineLazyStyle("drawer", createDrawerStyles);
|
|
3913
|
+
defineLazyStyle("hoverCard", createHoverCardStyles);
|
|
3914
|
+
defineLazyStyle("list", createListStyles);
|
|
3915
|
+
defineLazyStyle("menubar", createMenubarStyles);
|
|
3916
|
+
defineLazyStyle("navigationMenu", createNavigationMenuStyles);
|
|
3917
|
+
defineLazyStyle("pagination", createPaginationStyles);
|
|
3918
|
+
defineLazyStyle("resizablePanel", createResizablePanelStyles);
|
|
3919
|
+
defineLazyStyle("scrollArea", createScrollAreaStyles);
|
|
3920
|
+
defineLazyStyle("toggle", createToggleStyles);
|
|
3921
|
+
defineLazyStyle("toggleGroup", createToggleGroupStyles);
|
|
3922
|
+
let cachedComponents;
|
|
3923
|
+
function buildComponents() {
|
|
3924
|
+
const alertS = getOrInit("alert", createAlertStyles);
|
|
3925
|
+
const buttonS = getOrInit("button", createButton);
|
|
3926
|
+
const badgeS = getOrInit("badge", createBadge);
|
|
3927
|
+
const cardS = getOrInit("card", createCard);
|
|
3928
|
+
const inputS = getOrInit("input", createInput);
|
|
3929
|
+
const textareaS = getOrInit("textarea", createTextarea);
|
|
3930
|
+
const labelS = getOrInit("label", createLabel);
|
|
3931
|
+
const separatorS = getOrInit("separator", createSeparator);
|
|
3932
|
+
const formGroupS = getOrInit("formGroup", createFormGroup);
|
|
3933
|
+
const breadcrumbS = getOrInit("breadcrumb", createBreadcrumbStyles);
|
|
3934
|
+
const paginationS = getOrInit("pagination", createPaginationStyles);
|
|
3935
|
+
const avatarS = getOrInit("avatar", createAvatarStyles);
|
|
3936
|
+
const emptyStateS = getOrInit("emptyState", createEmptyStateStyles);
|
|
3937
|
+
const skeletonS = getOrInit("skeleton", createSkeletonStyles);
|
|
3938
|
+
const tableS = getOrInit("table", createTableStyles);
|
|
3939
|
+
const dropdownMenuS = getOrInit("dropdownMenu", createDropdownMenuStyles);
|
|
3940
|
+
const selectS = getOrInit("select", createSelectStyles);
|
|
3941
|
+
const tabsS = getOrInit("tabs", createTabsStyles);
|
|
3942
|
+
const checkboxS = getOrInit("checkbox", createCheckboxStyles);
|
|
3943
|
+
const switchS = getOrInit("switch", createSwitchStyles);
|
|
3944
|
+
const popoverS = getOrInit("popover", createPopoverStyles);
|
|
3945
|
+
const progressS = getOrInit("progress", createProgressStyles);
|
|
3946
|
+
const radioGroupS = getOrInit("radioGroup", createRadioGroupStyles);
|
|
3947
|
+
const sliderS = getOrInit("slider", createSliderStyles);
|
|
3948
|
+
const accordionS = getOrInit("accordion", createAccordionStyles);
|
|
3949
|
+
const toastS = getOrInit("toast", createToastStyles);
|
|
3950
|
+
const tooltipS = getOrInit("tooltip", createTooltipStyles);
|
|
3951
|
+
const sheetS = getOrInit("sheet", createSheetStyles);
|
|
3952
|
+
const calendarS = getOrInit("calendar", createCalendarStyles);
|
|
3953
|
+
const carouselS = getOrInit("carousel", createCarouselStyles);
|
|
3954
|
+
const collapsibleS = getOrInit("collapsible", createCollapsibleStyles);
|
|
3955
|
+
const commandS = getOrInit("command", createCommandStyles);
|
|
3956
|
+
const contextMenuS = getOrInit("contextMenu", createContextMenuStyles);
|
|
3957
|
+
const datePickerS = getOrInit("datePicker", createDatePickerStyles);
|
|
3958
|
+
const drawerS = getOrInit("drawer", createDrawerStyles);
|
|
3959
|
+
const hoverCardS = getOrInit("hoverCard", createHoverCardStyles);
|
|
3960
|
+
const listS = getOrInit("list", createListStyles);
|
|
3961
|
+
const menubarS = getOrInit("menubar", createMenubarStyles);
|
|
3962
|
+
const navigationMenuS = getOrInit("navigationMenu", createNavigationMenuStyles);
|
|
3963
|
+
const resizablePanelS = getOrInit("resizablePanel", createResizablePanelStyles);
|
|
3964
|
+
const scrollAreaS = getOrInit("scrollArea", createScrollAreaStyles);
|
|
3965
|
+
const toggleS = getOrInit("toggle", createToggleStyles);
|
|
3966
|
+
const toggleGroupS = getOrInit("toggleGroup", createToggleGroupStyles);
|
|
3967
|
+
const badgeColorInlineStyles = {
|
|
3968
|
+
blue: { backgroundColor: "oklch(0.55 0.15 250)", color: "#fff" },
|
|
3969
|
+
green: { backgroundColor: "oklch(0.55 0.15 155)", color: "#fff" },
|
|
3970
|
+
yellow: { backgroundColor: "oklch(0.75 0.15 85)", color: "oklch(0.25 0.05 85)" }
|
|
3971
|
+
};
|
|
3972
|
+
const DefaultAlert = withStyles19(ComposedAlert, {
|
|
3973
|
+
root: alertS.root,
|
|
3974
|
+
title: alertS.title,
|
|
3975
|
+
description: alertS.description
|
|
3976
|
+
});
|
|
3977
|
+
const DestructiveAlert = withStyles19(ComposedAlert, {
|
|
3978
|
+
root: [alertS.root, alertS.destructive].join(" "),
|
|
3979
|
+
title: alertS.title,
|
|
3980
|
+
description: alertS.description
|
|
3981
|
+
});
|
|
3982
|
+
function ThemedAlert({ variant, ...rest }) {
|
|
3983
|
+
return (variant === "destructive" ? DestructiveAlert : DefaultAlert)(rest);
|
|
3984
|
+
}
|
|
3985
|
+
const Alert = Object.assign(ThemedAlert, {
|
|
3986
|
+
Title: ComposedAlert.Title,
|
|
3987
|
+
Description: ComposedAlert.Description
|
|
3988
|
+
});
|
|
3989
|
+
return {
|
|
3990
|
+
Alert,
|
|
3991
|
+
Button: ({ intent, size, ...rest }) => ComposedButton({ ...rest, classes: { base: buttonS({ intent, size }) } }),
|
|
3992
|
+
Badge: ({ color, ...rest }) => {
|
|
3993
|
+
const style = color ? badgeColorInlineStyles[color] : undefined;
|
|
3994
|
+
return ComposedBadge({ ...rest, classes: { base: badgeS({ color }) }, style });
|
|
3995
|
+
},
|
|
3996
|
+
Breadcrumb: withStyles19(ComposedBreadcrumb, {
|
|
3997
|
+
nav: breadcrumbS.nav,
|
|
3998
|
+
list: breadcrumbS.list,
|
|
3999
|
+
item: breadcrumbS.item,
|
|
4000
|
+
link: breadcrumbS.link,
|
|
4001
|
+
page: breadcrumbS.page,
|
|
4002
|
+
separator: breadcrumbS.separator
|
|
4030
4003
|
}),
|
|
4031
|
-
|
|
4032
|
-
root:
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
row: tableStyles.row,
|
|
4040
|
-
head: tableStyles.head,
|
|
4041
|
-
cell: tableStyles.cell,
|
|
4042
|
-
caption: tableStyles.caption,
|
|
4043
|
-
footer: tableStyles.footer
|
|
4044
|
-
}),
|
|
4045
|
-
primitives: {
|
|
4046
|
-
Dialog: createThemedDialog(),
|
|
4047
|
-
DropdownMenu: createThemedDropdownMenu(dropdownMenuStyles),
|
|
4048
|
-
Select: createThemedSelect(selectStyles),
|
|
4049
|
-
Tabs: createThemedTabs(tabsStyles),
|
|
4050
|
-
Checkbox: createThemedCheckbox(checkboxStyles),
|
|
4051
|
-
Switch: createThemedSwitch(switchStyles),
|
|
4052
|
-
Popover: createThemedPopover(popoverStyles),
|
|
4053
|
-
Progress: createThemedProgress(progressStyles),
|
|
4054
|
-
RadioGroup: createThemedRadioGroup(radioGroupStyles),
|
|
4055
|
-
Slider: createThemedSlider(sliderStyles),
|
|
4056
|
-
Accordion: createThemedAccordion(accordionStyles),
|
|
4057
|
-
Toast: createThemedToast(toastStyles),
|
|
4058
|
-
Tooltip: createThemedTooltip(tooltipStyles),
|
|
4059
|
-
Sheet: createThemedSheet(sheetStyles),
|
|
4060
|
-
Calendar: createThemedCalendar(calendarStyles),
|
|
4061
|
-
Carousel: createThemedCarousel(carouselStyles),
|
|
4062
|
-
Collapsible: createThemedCollapsible(collapsibleStyles),
|
|
4063
|
-
Command: createThemedCommand(commandStyles),
|
|
4064
|
-
ContextMenu: createThemedContextMenu(contextMenuStyles),
|
|
4065
|
-
DatePicker: createThemedDatePicker(datePickerStyles, {
|
|
4066
|
-
...calendarStyles,
|
|
4067
|
-
root: calendarStyles.rootNoBorder
|
|
4004
|
+
Card: withStyles19(ComposedCard, {
|
|
4005
|
+
root: cardS.root,
|
|
4006
|
+
header: cardS.header,
|
|
4007
|
+
title: cardS.title,
|
|
4008
|
+
description: cardS.description,
|
|
4009
|
+
content: cardS.content,
|
|
4010
|
+
footer: cardS.footer,
|
|
4011
|
+
action: cardS.action
|
|
4068
4012
|
}),
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4013
|
+
Input: withStyles19(ComposedInput, { base: inputS.base }),
|
|
4014
|
+
Textarea: withStyles19(ComposedTextarea, { base: textareaS.base }),
|
|
4015
|
+
Label: withStyles19(ComposedLabel, { base: labelS.base }),
|
|
4016
|
+
Pagination: (props) => ComposedPagination({
|
|
4017
|
+
...props,
|
|
4018
|
+
classes: {
|
|
4019
|
+
nav: paginationS.nav,
|
|
4020
|
+
list: paginationS.list,
|
|
4021
|
+
item: paginationS.item,
|
|
4022
|
+
link: paginationS.link,
|
|
4023
|
+
linkActive: paginationS.linkActive,
|
|
4024
|
+
navButton: paginationS.navButton,
|
|
4025
|
+
ellipsis: paginationS.ellipsis
|
|
4026
|
+
}
|
|
4027
|
+
}),
|
|
4028
|
+
Separator: withStyles19(ComposedSeparator, {
|
|
4029
|
+
base: separatorS.base,
|
|
4030
|
+
horizontal: separatorS.horizontal,
|
|
4031
|
+
vertical: separatorS.vertical
|
|
4032
|
+
}),
|
|
4033
|
+
FormGroup: withStyles19(ComposedFormGroup, {
|
|
4034
|
+
base: formGroupS.base,
|
|
4035
|
+
error: formGroupS.error
|
|
4036
|
+
}),
|
|
4037
|
+
Avatar: withStyles19(ComposedAvatar, {
|
|
4038
|
+
root: avatarS.root,
|
|
4039
|
+
image: avatarS.image,
|
|
4040
|
+
fallback: avatarS.fallback
|
|
4041
|
+
}),
|
|
4042
|
+
EmptyState: withStyles19(ComposedEmptyState, {
|
|
4043
|
+
root: emptyStateS.root,
|
|
4044
|
+
icon: emptyStateS.icon,
|
|
4045
|
+
title: emptyStateS.title,
|
|
4046
|
+
description: emptyStateS.description,
|
|
4047
|
+
action: emptyStateS.action
|
|
4048
|
+
}),
|
|
4049
|
+
Skeleton: Object.assign(withStyles19(ComposedSkeleton, { root: skeletonS.root }), {
|
|
4050
|
+
Text: withStyles19(ComposedSkeleton.Text, {
|
|
4051
|
+
root: skeletonS.textRoot,
|
|
4052
|
+
line: skeletonS.textLine
|
|
4053
|
+
}),
|
|
4054
|
+
Circle: withStyles19(ComposedSkeleton.Circle, {
|
|
4055
|
+
root: skeletonS.circleRoot
|
|
4056
|
+
})
|
|
4057
|
+
}),
|
|
4058
|
+
Table: withStyles19(ComposedTable, {
|
|
4059
|
+
root: tableS.root,
|
|
4060
|
+
header: tableS.header,
|
|
4061
|
+
body: tableS.body,
|
|
4062
|
+
row: tableS.row,
|
|
4063
|
+
head: tableS.head,
|
|
4064
|
+
cell: tableS.cell,
|
|
4065
|
+
caption: tableS.caption,
|
|
4066
|
+
footer: tableS.footer
|
|
4067
|
+
}),
|
|
4068
|
+
primitives: {
|
|
4069
|
+
Dialog: createThemedDialog(),
|
|
4070
|
+
DropdownMenu: createThemedDropdownMenu(dropdownMenuS),
|
|
4071
|
+
Select: createThemedSelect(selectS),
|
|
4072
|
+
Tabs: createThemedTabs(tabsS),
|
|
4073
|
+
Checkbox: createThemedCheckbox(checkboxS),
|
|
4074
|
+
Switch: createThemedSwitch(switchS),
|
|
4075
|
+
Popover: createThemedPopover(popoverS),
|
|
4076
|
+
Progress: createThemedProgress(progressS),
|
|
4077
|
+
RadioGroup: createThemedRadioGroup(radioGroupS),
|
|
4078
|
+
Slider: createThemedSlider(sliderS),
|
|
4079
|
+
Accordion: createThemedAccordion(accordionS),
|
|
4080
|
+
Toast: createThemedToast(toastS),
|
|
4081
|
+
Tooltip: createThemedTooltip(tooltipS),
|
|
4082
|
+
Sheet: createThemedSheet(sheetS),
|
|
4083
|
+
Calendar: createThemedCalendar(calendarS),
|
|
4084
|
+
Carousel: createThemedCarousel(carouselS),
|
|
4085
|
+
Collapsible: createThemedCollapsible(collapsibleS),
|
|
4086
|
+
Command: createThemedCommand(commandS),
|
|
4087
|
+
ContextMenu: createThemedContextMenu(contextMenuS),
|
|
4088
|
+
DatePicker: createThemedDatePicker(datePickerS, {
|
|
4089
|
+
...calendarS,
|
|
4090
|
+
root: calendarS.rootNoBorder
|
|
4091
|
+
}),
|
|
4092
|
+
Drawer: createThemedDrawer(drawerS),
|
|
4093
|
+
HoverCard: createThemedHoverCard(hoverCardS),
|
|
4094
|
+
List: createThemedList(listS),
|
|
4095
|
+
Menubar: createThemedMenubar(menubarS),
|
|
4096
|
+
NavigationMenu: createThemedNavigationMenu(navigationMenuS),
|
|
4097
|
+
ResizablePanel: createThemedResizablePanel(resizablePanelS),
|
|
4098
|
+
ScrollArea: createThemedScrollArea(scrollAreaS),
|
|
4099
|
+
Toggle: createThemedToggle(toggleS),
|
|
4100
|
+
ToggleGroup: createThemedToggleGroup(toggleGroupS)
|
|
4101
|
+
}
|
|
4102
|
+
};
|
|
4103
|
+
}
|
|
4104
|
+
const result = { theme, globals, styles };
|
|
4105
|
+
Object.defineProperty(result, "components", {
|
|
4106
|
+
get() {
|
|
4107
|
+
if (cachedComponents === undefined) {
|
|
4108
|
+
cachedComponents = buildComponents();
|
|
4109
|
+
}
|
|
4110
|
+
return cachedComponents;
|
|
4111
|
+
},
|
|
4112
|
+
enumerable: true,
|
|
4113
|
+
configurable: true
|
|
4114
|
+
});
|
|
4115
|
+
return result;
|
|
4081
4116
|
}
|
|
4082
4117
|
export {
|
|
4083
4118
|
palettes,
|