@xenide-io/the-old-ui-theme 0.4.4 → 0.4.8
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/{chunk-54ZR4VL5.mjs → chunk-RZXHZWUB.mjs} +44 -17
- package/dist/{index-B5NOyoKS.d.mts → index-Od4pIP4F.d.mts} +7 -1
- package/dist/{index-B5NOyoKS.d.ts → index-Od4pIP4F.d.ts} +7 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +37 -10
- package/dist/index.mjs +1 -1
- package/dist/suite.d.mts +152 -41
- package/dist/suite.d.ts +152 -41
- package/dist/suite.js +1366 -671
- package/dist/suite.mjs +1304 -610
- package/dist/ui.d.mts +1 -1
- package/dist/ui.d.ts +1 -1
- package/dist/ui.js +37 -10
- package/dist/ui.mjs +1 -1
- package/package.json +7 -3
- package/src/components/ui/Modal.tsx +70 -26
- package/src/styles/suite-skin.css +284 -24
- package/src/suite/components/ai-panel.test.ts +20 -0
- package/src/suite/components/ai-panel.tsx +494 -103
- package/src/suite/components/suite-app-layout.tsx +48 -28
- package/src/suite/components/suite-layout.tsx +84 -40
- package/src/suite/components/suite-mobile-drawer.tsx +35 -22
- package/src/suite/components/suite-notification-bell.tsx +9 -3
- package/src/suite/components/suite-settings-layout.tsx +82 -0
- package/src/suite/components/suite-settings-mobile-nav.tsx +18 -17
- package/src/suite/components/suite-skeleton.tsx +3 -3
- package/src/suite/components/today-calibrating.tsx +11 -35
- package/src/suite/components/today-page-frame.tsx +19 -11
- package/src/suite/components/today-ui.tsx +276 -19
- package/src/suite/index.ts +41 -25
- package/src/suite/lib/apps.ts +32 -2
- package/src/suite/lib/use-sidebar-width.ts +114 -0
- package/src/components/sections/AccordionShowcase.tsx +0 -45
- package/src/components/sections/AlertShowcase.tsx +0 -40
- package/src/components/sections/AvatarShowcase.tsx +0 -80
- package/src/components/sections/BadgeShowcase.tsx +0 -65
- package/src/components/sections/ButtonShowcase.tsx +0 -308
- package/src/components/sections/CalendarShowcase.tsx +0 -35
- package/src/components/sections/CardShowcase.tsx +0 -159
- package/src/components/sections/CodeMockupShowcase.tsx +0 -56
- package/src/components/sections/ColorPalette.tsx +0 -117
- package/src/components/sections/CommandPaletteShowcase.tsx +0 -48
- package/src/components/sections/CountdownShowcase.tsx +0 -43
- package/src/components/sections/DiffShowcase.tsx +0 -70
- package/src/components/sections/DrawerShowcase.tsx +0 -97
- package/src/components/sections/DropdownShowcase.tsx +0 -98
- package/src/components/sections/EmptyStateShowcase.tsx +0 -50
- package/src/components/sections/FilterChipsShowcase.tsx +0 -98
- package/src/components/sections/FormShowcase.tsx +0 -127
- package/src/components/sections/HoverCardShowcase.tsx +0 -50
- package/src/components/sections/IconShowcase.tsx +0 -121
- package/src/components/sections/IndicatorShowcase.tsx +0 -52
- package/src/components/sections/KbdShowcase.tsx +0 -57
- package/src/components/sections/ModalShowcase.tsx +0 -211
- package/src/components/sections/NavigationShowcase.tsx +0 -199
- package/src/components/sections/NewComponentsShowcase.tsx +0 -1052
- package/src/components/sections/ProductLayoutsShowcase.tsx +0 -78
- package/src/components/sections/ProgressShowcase.tsx +0 -82
- package/src/components/sections/QuillChartShowcase.tsx +0 -92
- package/src/components/sections/QuillDashboardShowcase.tsx +0 -149
- package/src/components/sections/SegmentedControlShowcase.tsx +0 -49
- package/src/components/sections/SetupThemeShowcase.tsx +0 -262
- package/src/components/sections/SidebarShowcase.tsx +0 -152
- package/src/components/sections/StackShowcase.tsx +0 -33
- package/src/components/sections/StepperShowcase.tsx +0 -37
- package/src/components/sections/SuiteShowcase.tsx +0 -669
- package/src/components/sections/SwapShowcase.tsx +0 -99
- package/src/components/sections/TabShowcase.tsx +0 -84
- package/src/components/sections/TableShowcase.tsx +0 -142
- package/src/components/sections/TimelineShowcase.tsx +0 -83
- package/src/components/sections/ToastShowcase.tsx +0 -108
- package/src/components/sections/TooltipShowcase.tsx +0 -38
- package/src/components/sections/UtilityShowcase.tsx +0 -81
- package/src/styles/excel-themes.css +0 -110
- package/src/styles/lemon-primitives.css +0 -550
|
@@ -1011,7 +1011,7 @@ FileUpload.displayName = "FileUpload";
|
|
|
1011
1011
|
// src/components/ui/Modal.tsx
|
|
1012
1012
|
import * as Dialog from "@radix-ui/react-dialog";
|
|
1013
1013
|
import { useRef } from "react";
|
|
1014
|
-
import { jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1014
|
+
import { Fragment as Fragment3, jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1015
1015
|
var sizeMap4 = {
|
|
1016
1016
|
sm: "max-w-sm",
|
|
1017
1017
|
md: "max-w-lg",
|
|
@@ -1028,10 +1028,16 @@ function Modal({
|
|
|
1028
1028
|
footer,
|
|
1029
1029
|
size = "md",
|
|
1030
1030
|
className,
|
|
1031
|
+
customLayout = false,
|
|
1031
1032
|
showCloseButton = true,
|
|
1032
1033
|
closeOnOutsideClick = true,
|
|
1033
1034
|
closeOnEscape = true,
|
|
1034
|
-
|
|
1035
|
+
dataTest,
|
|
1036
|
+
panelDataTest,
|
|
1037
|
+
zIndex,
|
|
1038
|
+
id,
|
|
1039
|
+
"aria-label": ariaLabel,
|
|
1040
|
+
"aria-labelledby": ariaLabelledBy
|
|
1035
1041
|
}) {
|
|
1036
1042
|
const canDismiss = Boolean(onClose);
|
|
1037
1043
|
const restoreFocusRef = useRef(null);
|
|
@@ -1043,13 +1049,23 @@ function Modal({
|
|
|
1043
1049
|
if (!nextOpen) onClose == null ? void 0 : onClose();
|
|
1044
1050
|
},
|
|
1045
1051
|
children: /* @__PURE__ */ jsxs11(Dialog.Portal, { children: [
|
|
1046
|
-
/* @__PURE__ */ jsx12(
|
|
1047
|
-
|
|
1052
|
+
/* @__PURE__ */ jsx12(
|
|
1053
|
+
Dialog.Overlay,
|
|
1054
|
+
{
|
|
1055
|
+
"data-test": dataTest,
|
|
1056
|
+
className: "ph-modal-overlay",
|
|
1057
|
+
style: zIndex ? { zIndex } : void 0
|
|
1058
|
+
}
|
|
1059
|
+
),
|
|
1060
|
+
/* @__PURE__ */ jsx12(
|
|
1048
1061
|
Dialog.Content,
|
|
1049
|
-
__spreadProps(__spreadValues({
|
|
1050
|
-
|
|
1051
|
-
"
|
|
1052
|
-
|
|
1062
|
+
__spreadProps(__spreadValues(__spreadProps(__spreadValues(__spreadValues({
|
|
1063
|
+
id,
|
|
1064
|
+
"data-test": panelDataTest,
|
|
1065
|
+
className: cn("ph-modal-panel", sizeMap4[size], className)
|
|
1066
|
+
}, ariaLabel ? { "aria-label": ariaLabel } : {}), ariaLabelledBy ? { "aria-labelledby": ariaLabelledBy } : {}), {
|
|
1067
|
+
style: zIndex ? { zIndex } : void 0
|
|
1068
|
+
}), description ? {} : { "aria-describedby": void 0 }), {
|
|
1053
1069
|
onOpenAutoFocus: () => {
|
|
1054
1070
|
restoreFocusRef.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
1055
1071
|
},
|
|
@@ -1064,18 +1080,29 @@ function Modal({
|
|
|
1064
1080
|
onPointerDownOutside: (event) => {
|
|
1065
1081
|
if (!canDismiss || !closeOnOutsideClick) event.preventDefault();
|
|
1066
1082
|
},
|
|
1067
|
-
children: [
|
|
1083
|
+
children: customLayout ? /* @__PURE__ */ jsxs11(Fragment3, { children: [
|
|
1084
|
+
/* @__PURE__ */ jsx12(Dialog.Title, { className: "sr-only", children: ariaLabel != null ? ariaLabel : "Dialog" }),
|
|
1085
|
+
children
|
|
1086
|
+
] }) : /* @__PURE__ */ jsxs11(Fragment3, { children: [
|
|
1068
1087
|
title ? null : /* @__PURE__ */ jsx12(Dialog.Title, { className: "sr-only", children: ariaLabel != null ? ariaLabel : "Dialog" }),
|
|
1069
1088
|
title || description || showCloseButton && canDismiss ? /* @__PURE__ */ jsxs11("header", { className: "ph-modal-header", children: [
|
|
1070
1089
|
/* @__PURE__ */ jsxs11("div", { className: "min-w-0", children: [
|
|
1071
1090
|
title ? /* @__PURE__ */ jsx12(Dialog.Title, { className: "text-lg font-bold text-ph-ink", children: title }) : null,
|
|
1072
1091
|
description ? /* @__PURE__ */ jsx12(Dialog.Description, { className: "mt-1 text-sm text-ph-subtle", children: description }) : null
|
|
1073
1092
|
] }),
|
|
1074
|
-
showCloseButton && canDismiss ? /* @__PURE__ */ jsx12(Dialog.Close, { asChild: true, children: /* @__PURE__ */ jsx12(
|
|
1093
|
+
showCloseButton && canDismiss ? /* @__PURE__ */ jsx12(Dialog.Close, { asChild: true, children: /* @__PURE__ */ jsx12(
|
|
1094
|
+
"button",
|
|
1095
|
+
{
|
|
1096
|
+
type: "button",
|
|
1097
|
+
className: "ph-modal-close",
|
|
1098
|
+
"aria-label": "Close dialog",
|
|
1099
|
+
children: /* @__PURE__ */ jsx12(IconClose, { className: "h-5 w-5", "aria-hidden": true })
|
|
1100
|
+
}
|
|
1101
|
+
) }) : null
|
|
1075
1102
|
] }) : null,
|
|
1076
1103
|
/* @__PURE__ */ jsx12("div", { className: "ph-modal-body", children }),
|
|
1077
1104
|
footer ? /* @__PURE__ */ jsx12("div", { className: "ph-modal-footer", children: footer }) : null
|
|
1078
|
-
]
|
|
1105
|
+
] })
|
|
1079
1106
|
})
|
|
1080
1107
|
)
|
|
1081
1108
|
] })
|
|
@@ -1684,12 +1711,12 @@ function ThemeDomSync() {
|
|
|
1684
1711
|
|
|
1685
1712
|
// src/components/ui/ThemeManager.tsx
|
|
1686
1713
|
import { useLayoutEffect as useLayoutEffect2 } from "react";
|
|
1687
|
-
import { Fragment as
|
|
1714
|
+
import { Fragment as Fragment4, jsx as jsx21 } from "react/jsx-runtime";
|
|
1688
1715
|
function ThemeManager({ children }) {
|
|
1689
1716
|
useLayoutEffect2(() => {
|
|
1690
1717
|
persistTheme(readStoredTheme());
|
|
1691
1718
|
}, []);
|
|
1692
|
-
return /* @__PURE__ */ jsx21(
|
|
1719
|
+
return /* @__PURE__ */ jsx21(Fragment4, { children });
|
|
1693
1720
|
}
|
|
1694
1721
|
|
|
1695
1722
|
// src/components/ui/ThemeSwitcher.tsx
|
|
@@ -2109,7 +2136,7 @@ function EmptyState({ icon, title, description, action, className }) {
|
|
|
2109
2136
|
}
|
|
2110
2137
|
|
|
2111
2138
|
// src/components/ui/FilterChips.tsx
|
|
2112
|
-
import { Fragment as
|
|
2139
|
+
import { Fragment as Fragment5, jsx as jsx30, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
2113
2140
|
function FilterChips({
|
|
2114
2141
|
chips,
|
|
2115
2142
|
onToggle,
|
|
@@ -2120,7 +2147,7 @@ function FilterChips({
|
|
|
2120
2147
|
return /* @__PURE__ */ jsx30("div", { className: cn("ph-filter-chips", className), role: "group", "aria-label": ariaLabel, children: chips.map((chip) => {
|
|
2121
2148
|
var _a;
|
|
2122
2149
|
const label = (_a = chip.removeLabel) != null ? _a : getChipText(chip);
|
|
2123
|
-
const content = /* @__PURE__ */ jsxs27(
|
|
2150
|
+
const content = /* @__PURE__ */ jsxs27(Fragment5, { children: [
|
|
2124
2151
|
/* @__PURE__ */ jsx30("span", { className: "ph-filter-chip__label", children: chip.label }),
|
|
2125
2152
|
chip.value != null ? /* @__PURE__ */ jsx30("span", { className: "ph-filter-chip__value", children: chip.value }) : null
|
|
2126
2153
|
] });
|
|
@@ -2768,7 +2795,7 @@ function ChatBubble(_a) {
|
|
|
2768
2795
|
}
|
|
2769
2796
|
|
|
2770
2797
|
// src/components/ui/Terminal.tsx
|
|
2771
|
-
import { Fragment as
|
|
2798
|
+
import { Fragment as Fragment6, jsx as jsx41, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
2772
2799
|
function Terminal(_a) {
|
|
2773
2800
|
var _b = _a, {
|
|
2774
2801
|
title = "sandbox",
|
|
@@ -2796,7 +2823,7 @@ function Terminal(_a) {
|
|
|
2796
2823
|
/* @__PURE__ */ jsx41("div", { className: "h-3 w-3 rounded-full bg-emerald-400" }),
|
|
2797
2824
|
title && /* @__PURE__ */ jsx41("span", { className: "text-xs font-medium text-ph-mutedtext", children: title })
|
|
2798
2825
|
] }),
|
|
2799
|
-
/* @__PURE__ */ jsx41("div", { className: "ph-code rounded-none border-x-0 border-b-0 text-[13px] leading-relaxed", children: children || /* @__PURE__ */ jsx41(
|
|
2826
|
+
/* @__PURE__ */ jsx41("div", { className: "ph-code rounded-none border-x-0 border-b-0 text-[13px] leading-relaxed", children: children || /* @__PURE__ */ jsx41(Fragment6, { children: lines == null ? void 0 : lines.map((line, i) => {
|
|
2800
2827
|
const text = typeof line === "string" ? line : line.text;
|
|
2801
2828
|
const color = typeof line === "string" ? void 0 : line.color;
|
|
2802
2829
|
return /* @__PURE__ */ jsxs37("span", { children: [
|
|
@@ -307,12 +307,18 @@ interface ModalProps {
|
|
|
307
307
|
footer?: ReactNode;
|
|
308
308
|
size?: ModalSize;
|
|
309
309
|
className?: string;
|
|
310
|
+
customLayout?: boolean;
|
|
310
311
|
showCloseButton?: boolean;
|
|
311
312
|
closeOnOutsideClick?: boolean;
|
|
312
313
|
closeOnEscape?: boolean;
|
|
314
|
+
dataTest?: string;
|
|
315
|
+
panelDataTest?: string;
|
|
316
|
+
zIndex?: number;
|
|
317
|
+
id?: string;
|
|
313
318
|
"aria-label"?: string;
|
|
319
|
+
"aria-labelledby"?: string;
|
|
314
320
|
}
|
|
315
|
-
declare function Modal({ open, onClose, title, description, children, footer, size, className, showCloseButton, closeOnOutsideClick, closeOnEscape, "aria-label": ariaLabel, }: ModalProps): react.JSX.Element;
|
|
321
|
+
declare function Modal({ open, onClose, title, description, children, footer, size, className, customLayout, showCloseButton, closeOnOutsideClick, closeOnEscape, dataTest, panelDataTest, zIndex, id, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, }: ModalProps): react.JSX.Element;
|
|
316
322
|
|
|
317
323
|
interface BreadcrumbItem {
|
|
318
324
|
label: string;
|
|
@@ -307,12 +307,18 @@ interface ModalProps {
|
|
|
307
307
|
footer?: ReactNode;
|
|
308
308
|
size?: ModalSize;
|
|
309
309
|
className?: string;
|
|
310
|
+
customLayout?: boolean;
|
|
310
311
|
showCloseButton?: boolean;
|
|
311
312
|
closeOnOutsideClick?: boolean;
|
|
312
313
|
closeOnEscape?: boolean;
|
|
314
|
+
dataTest?: string;
|
|
315
|
+
panelDataTest?: string;
|
|
316
|
+
zIndex?: number;
|
|
317
|
+
id?: string;
|
|
313
318
|
"aria-label"?: string;
|
|
319
|
+
"aria-labelledby"?: string;
|
|
314
320
|
}
|
|
315
|
-
declare function Modal({ open, onClose, title, description, children, footer, size, className, showCloseButton, closeOnOutsideClick, closeOnEscape, "aria-label": ariaLabel, }: ModalProps): react.JSX.Element;
|
|
321
|
+
declare function Modal({ open, onClose, title, description, children, footer, size, className, customLayout, showCloseButton, closeOnOutsideClick, closeOnEscape, dataTest, panelDataTest, zIndex, id, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, }: ModalProps): react.JSX.Element;
|
|
316
322
|
|
|
317
323
|
interface BreadcrumbItem {
|
|
318
324
|
label: string;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bU as IconProps } from './index-
|
|
2
|
-
export { A as Accordion, a as Alert, b as AlertDialog, c as AlertDialogProps, d as AlertProps, e as AlertStatus, f as AppLayout, g as AppLayoutProps, h as AuthCard, i as AuthCardProps, j as AuthDivider, k as AuthDividerProps, l as AuthLayout, m as AuthLayoutProps, n as Autocomplete, o as AutocompleteOption, p as AutocompleteProps, q as Avatar, r as AvatarGroup, s as AvatarGroupProps, t as AvatarProps, u as AvatarSize, v as AvatarStatus, B as Badge, w as BadgeProps, x as BadgeSize, y as BadgeVariant, z as Banner, C as BannerProps, D as BannerType, E as BreadcrumbItem, F as Breadcrumbs, G as BreadcrumbsProps, H as Button, I as ButtonChrome, J as ButtonChromeProps, K as ButtonGroup, L as ButtonGroupProps, M as ButtonProps, N as ButtonShape, O as ButtonSize, P as ButtonVariant, Q as CANONICAL_ICONS, R as Calendar, S as CanonicalIconName, T as Caption, U as Card, V as CardProps, W as CardVariant, X as ChatBubble, Y as ChatBubbleProps, Z as ChatBubbleVariant, _ as Checkbox, $ as CheckboxProps, a0 as Chip, a1 as ChipProps, a2 as CodeBlock, a3 as Collapsible, a4 as CollapsibleProps, a5 as CollapsibleSection, a6 as Combobox, a7 as ComboboxOption, a8 as ComboboxProps, a9 as CommandPalette, aa as ComponentDocs, ab as ComponentDocsProps, ac as ComponentPropRow, ad as ContextMenu, ae as ContextMenuItem, af as ContextMenuProps, ag as DataTable, ah as DataTableColumn, ai as DataTableProps, aj as DatePicker, ak as DatePickerProps, al as Dialog, am as DialogProps, an as Display, ao as Divider, ap as DividerProps, aq as Dot, ar as DotProps, as as Drawer, at as DrawerProps, au as DrawerSide, av as DrawerSize, aw as DropdownAlign, ax as DropdownButton, ay as DropdownButtonProps, az as DropdownItem, aA as DropdownItemProps, aB as DropdownMenu, aC as DropdownMenuProps, aD as DropdownRadioGroup, aE as DropdownRadioGroupProps, aF as DropdownRadioItem, aG as DropdownRadioItemProps, aH as DropdownSide, aI as EmptyState, aJ as FileUpload, aK as FileUploadProps, aL as FilterBar, aM as FilterBarProps, aN as FilterChip, aO as FilterChips, aP as FilterChipsProps, aQ as FilterControls, aR as FilterControlsProps, aS as FilterMenu, aT as FilterMenuOption, aU as FilterMenuProps, aV as FormField, aW as FormFieldControlProps, aX as FormFieldProps, aY as H1, aZ as H2, a_ as H3, a$ as H4, b0 as H5, b1 as HoverCard, b7 as Icon, b2 as IconActivity, b3 as IconAliasName, b4 as IconAreaChart, b5 as IconArrowDown, b6 as IconArrowUp, b7 as IconBase, b8 as IconBell, b9 as IconBellOff, ba as IconBolt, bb as IconBox, bc as IconByName, bd as IconCancel, be as IconCheck, bf as IconCheckCircle, bg as IconChevronDown, bh as IconChevronLeft, bi as IconChevronRight, bj as IconClipboardEdit, bk as IconClose, bl as IconCodePreview, bm as IconCohort, bn as IconCommandCursor, bo as IconCopy, bp as IconCumulativeChart, bq as IconDataReel, br as IconDatabase, bs as IconDownload, bt as IconEdit, bu as IconErrorOutline, bv as IconEventStream, bw as IconExclamation, bx as IconExperimentSplit, by as IconFeatureGate, bz as IconFlag, bA as IconFlare, bB as IconFlask, bC as IconGift, bD as IconGridView, bE as IconHandClick, bF as IconHome, bG as IconInfo, bH as IconInsightBoard, bI as IconLayers, bJ as IconListView, bK as IconLogout, bL as IconMail, bM as IconMoon, bN as IconName, bO as IconOldWindow, bP as IconPanelRight, bQ as IconPerson, bR as IconPlayCircle, bS as IconPlus, bT as IconPremium, bV as IconQueryEditor, bW as IconQueryStack, bX as IconRadar, bY as IconRecording, bZ as IconReplayFrame, b_ as IconRobot, b$ as IconRocket, c0 as IconSave, c1 as IconSearch, c2 as IconSelectEvents, c3 as IconShoppingCart, c4 as IconSpinner, c5 as IconStar, c6 as IconSubArrowRight, c7 as IconSun, c8 as IconSurveyCard, c9 as IconSurveys, ca as IconSync, cb as IconTableChart, cc as IconTerminal, cd as IconToggle, ce as IconTrash, cf as IconTuning, cg as IconUpload, ch as IconVolume, ci as IconVolumeOff, cj as Indicator, ck as IndicatorPosition, cl as IndicatorProps, cm as Input, cn as InputGroup, co as InputGroupProps, cp as InputProps, cq as InputSize, cr as InputVariant, cs as Kbd, ct as KbdPlatform, cu as KbdProps, cv as KbdVariant, cw as Label, cx as Lead, cy as Lettermark, cz as LettermarkProps, cA as Link, cB as LinkProps, cC as Loader, cD as LoaderProps, cE as LoaderSize, cF as LoaderVariant, cG as LoadingBar, cH as LoadingBarProps, cI as LoadingState, cJ as LoadingStateProps, cK as Menubar, cL as MenubarItem, cM as MenubarProps, cN as Metric, cO as MetricProps, cP as Modal, cQ as ModalProps, cR as ModalSize, cS as Mono, cT as NumberField, cU as NumberFieldProps, cV as OLD_UI_ICONS, cW as Overline, cX as P, cY as PH_ICONS, cZ as PH_ICON_ALIASES, c_ as Pagination, c$ as PaginationProps, d0 as Panel, d1 as PanelProps, d2 as Popover, d3 as PopoverProps, d4 as Progress, d5 as ProgressCircle, d6 as ProgressCircleProps, d7 as ProgressProps, d8 as Radio, d9 as RadioProps, da as Range, db as RangeProps, dc as Rating, dd as RatingProps, de as Resizable, df as ResizableProps, dg as Row, dh as RowProps, di as ScrollArea, dj as ScrollAreaProps, dk as SearchGroup, dl as SearchGroupProps, dm as SearchInput, dn as SearchInputProps, dp as SegmentedControl, dq as Select, dr as SelectProps, ds as SettingsLayout, dt as SettingsLayoutProps, du as SettingsNav, dv as SettingsNavGroup, dw as SettingsNavItem, dx as SettingsNavProps, dy as ShowcaseWrapper, dz as Sidebar, dA as SidebarGroup, dB as SidebarItemDef, dC as SidebarProps, dD as Skeleton, dE as SkeletonProps, dF as SkeletonShape, dG as Small, dH as Snack, dI as SnackProps, dJ as SortMenu, dK as SortMenuProps, dL as Spinner, dM as SpinnerProps, dN as Splotch, dO as SplotchColor, dP as SplotchProps, dQ as Stat, dR as StatProps, dS as StatTone, dT as Stepper, dU as TabItem, dV as Table, dW as TableColumn, dX as TableProps, dY as Tabs, dZ as TabsProps, d_ as TabsVariant, d$ as Tag, e0 as TagProps, e1 as TagType, e2 as Terminal, e3 as TerminalProps, e4 as Textarea, e5 as TextareaProps, e6 as ThemeDomSync, e7 as ThemeManager, e8 as ThemeManagerProps, e9 as ThemeSwitcher, ea as ThemeSwitcherProps, eb as Timeline, ec as TimelineEvent, ed as TimelineProps, ee as Toast, ef as ToastProps, eg as ToastStack, eh as ToastStackProps, ei as ToastStatus, ej as Toggle, ek as ToggleButton, el as ToggleButtonProps, em as ToggleGroup, en as ToggleGroupProps, eo as ToggleProps, ep as Tooltip, eq as TooltipAlign, er as TooltipProps, es as TooltipProvider, et as TooltipProviderProps, eu as TooltipSide, ev as Widget, ew as WidgetProps } from './index-
|
|
1
|
+
import { bU as IconProps } from './index-Od4pIP4F.mjs';
|
|
2
|
+
export { A as Accordion, a as Alert, b as AlertDialog, c as AlertDialogProps, d as AlertProps, e as AlertStatus, f as AppLayout, g as AppLayoutProps, h as AuthCard, i as AuthCardProps, j as AuthDivider, k as AuthDividerProps, l as AuthLayout, m as AuthLayoutProps, n as Autocomplete, o as AutocompleteOption, p as AutocompleteProps, q as Avatar, r as AvatarGroup, s as AvatarGroupProps, t as AvatarProps, u as AvatarSize, v as AvatarStatus, B as Badge, w as BadgeProps, x as BadgeSize, y as BadgeVariant, z as Banner, C as BannerProps, D as BannerType, E as BreadcrumbItem, F as Breadcrumbs, G as BreadcrumbsProps, H as Button, I as ButtonChrome, J as ButtonChromeProps, K as ButtonGroup, L as ButtonGroupProps, M as ButtonProps, N as ButtonShape, O as ButtonSize, P as ButtonVariant, Q as CANONICAL_ICONS, R as Calendar, S as CanonicalIconName, T as Caption, U as Card, V as CardProps, W as CardVariant, X as ChatBubble, Y as ChatBubbleProps, Z as ChatBubbleVariant, _ as Checkbox, $ as CheckboxProps, a0 as Chip, a1 as ChipProps, a2 as CodeBlock, a3 as Collapsible, a4 as CollapsibleProps, a5 as CollapsibleSection, a6 as Combobox, a7 as ComboboxOption, a8 as ComboboxProps, a9 as CommandPalette, aa as ComponentDocs, ab as ComponentDocsProps, ac as ComponentPropRow, ad as ContextMenu, ae as ContextMenuItem, af as ContextMenuProps, ag as DataTable, ah as DataTableColumn, ai as DataTableProps, aj as DatePicker, ak as DatePickerProps, al as Dialog, am as DialogProps, an as Display, ao as Divider, ap as DividerProps, aq as Dot, ar as DotProps, as as Drawer, at as DrawerProps, au as DrawerSide, av as DrawerSize, aw as DropdownAlign, ax as DropdownButton, ay as DropdownButtonProps, az as DropdownItem, aA as DropdownItemProps, aB as DropdownMenu, aC as DropdownMenuProps, aD as DropdownRadioGroup, aE as DropdownRadioGroupProps, aF as DropdownRadioItem, aG as DropdownRadioItemProps, aH as DropdownSide, aI as EmptyState, aJ as FileUpload, aK as FileUploadProps, aL as FilterBar, aM as FilterBarProps, aN as FilterChip, aO as FilterChips, aP as FilterChipsProps, aQ as FilterControls, aR as FilterControlsProps, aS as FilterMenu, aT as FilterMenuOption, aU as FilterMenuProps, aV as FormField, aW as FormFieldControlProps, aX as FormFieldProps, aY as H1, aZ as H2, a_ as H3, a$ as H4, b0 as H5, b1 as HoverCard, b7 as Icon, b2 as IconActivity, b3 as IconAliasName, b4 as IconAreaChart, b5 as IconArrowDown, b6 as IconArrowUp, b7 as IconBase, b8 as IconBell, b9 as IconBellOff, ba as IconBolt, bb as IconBox, bc as IconByName, bd as IconCancel, be as IconCheck, bf as IconCheckCircle, bg as IconChevronDown, bh as IconChevronLeft, bi as IconChevronRight, bj as IconClipboardEdit, bk as IconClose, bl as IconCodePreview, bm as IconCohort, bn as IconCommandCursor, bo as IconCopy, bp as IconCumulativeChart, bq as IconDataReel, br as IconDatabase, bs as IconDownload, bt as IconEdit, bu as IconErrorOutline, bv as IconEventStream, bw as IconExclamation, bx as IconExperimentSplit, by as IconFeatureGate, bz as IconFlag, bA as IconFlare, bB as IconFlask, bC as IconGift, bD as IconGridView, bE as IconHandClick, bF as IconHome, bG as IconInfo, bH as IconInsightBoard, bI as IconLayers, bJ as IconListView, bK as IconLogout, bL as IconMail, bM as IconMoon, bN as IconName, bO as IconOldWindow, bP as IconPanelRight, bQ as IconPerson, bR as IconPlayCircle, bS as IconPlus, bT as IconPremium, bV as IconQueryEditor, bW as IconQueryStack, bX as IconRadar, bY as IconRecording, bZ as IconReplayFrame, b_ as IconRobot, b$ as IconRocket, c0 as IconSave, c1 as IconSearch, c2 as IconSelectEvents, c3 as IconShoppingCart, c4 as IconSpinner, c5 as IconStar, c6 as IconSubArrowRight, c7 as IconSun, c8 as IconSurveyCard, c9 as IconSurveys, ca as IconSync, cb as IconTableChart, cc as IconTerminal, cd as IconToggle, ce as IconTrash, cf as IconTuning, cg as IconUpload, ch as IconVolume, ci as IconVolumeOff, cj as Indicator, ck as IndicatorPosition, cl as IndicatorProps, cm as Input, cn as InputGroup, co as InputGroupProps, cp as InputProps, cq as InputSize, cr as InputVariant, cs as Kbd, ct as KbdPlatform, cu as KbdProps, cv as KbdVariant, cw as Label, cx as Lead, cy as Lettermark, cz as LettermarkProps, cA as Link, cB as LinkProps, cC as Loader, cD as LoaderProps, cE as LoaderSize, cF as LoaderVariant, cG as LoadingBar, cH as LoadingBarProps, cI as LoadingState, cJ as LoadingStateProps, cK as Menubar, cL as MenubarItem, cM as MenubarProps, cN as Metric, cO as MetricProps, cP as Modal, cQ as ModalProps, cR as ModalSize, cS as Mono, cT as NumberField, cU as NumberFieldProps, cV as OLD_UI_ICONS, cW as Overline, cX as P, cY as PH_ICONS, cZ as PH_ICON_ALIASES, c_ as Pagination, c$ as PaginationProps, d0 as Panel, d1 as PanelProps, d2 as Popover, d3 as PopoverProps, d4 as Progress, d5 as ProgressCircle, d6 as ProgressCircleProps, d7 as ProgressProps, d8 as Radio, d9 as RadioProps, da as Range, db as RangeProps, dc as Rating, dd as RatingProps, de as Resizable, df as ResizableProps, dg as Row, dh as RowProps, di as ScrollArea, dj as ScrollAreaProps, dk as SearchGroup, dl as SearchGroupProps, dm as SearchInput, dn as SearchInputProps, dp as SegmentedControl, dq as Select, dr as SelectProps, ds as SettingsLayout, dt as SettingsLayoutProps, du as SettingsNav, dv as SettingsNavGroup, dw as SettingsNavItem, dx as SettingsNavProps, dy as ShowcaseWrapper, dz as Sidebar, dA as SidebarGroup, dB as SidebarItemDef, dC as SidebarProps, dD as Skeleton, dE as SkeletonProps, dF as SkeletonShape, dG as Small, dH as Snack, dI as SnackProps, dJ as SortMenu, dK as SortMenuProps, dL as Spinner, dM as SpinnerProps, dN as Splotch, dO as SplotchColor, dP as SplotchProps, dQ as Stat, dR as StatProps, dS as StatTone, dT as Stepper, dU as TabItem, dV as Table, dW as TableColumn, dX as TableProps, dY as Tabs, dZ as TabsProps, d_ as TabsVariant, d$ as Tag, e0 as TagProps, e1 as TagType, e2 as Terminal, e3 as TerminalProps, e4 as Textarea, e5 as TextareaProps, e6 as ThemeDomSync, e7 as ThemeManager, e8 as ThemeManagerProps, e9 as ThemeSwitcher, ea as ThemeSwitcherProps, eb as Timeline, ec as TimelineEvent, ed as TimelineProps, ee as Toast, ef as ToastProps, eg as ToastStack, eh as ToastStackProps, ei as ToastStatus, ej as Toggle, ek as ToggleButton, el as ToggleButtonProps, em as ToggleGroup, en as ToggleGroupProps, eo as ToggleProps, ep as Tooltip, eq as TooltipAlign, er as TooltipProps, es as TooltipProvider, et as TooltipProviderProps, eu as TooltipSide, ev as Widget, ew as WidgetProps } from './index-Od4pIP4F.mjs';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import '@radix-ui/react-dropdown-menu';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bU as IconProps } from './index-
|
|
2
|
-
export { A as Accordion, a as Alert, b as AlertDialog, c as AlertDialogProps, d as AlertProps, e as AlertStatus, f as AppLayout, g as AppLayoutProps, h as AuthCard, i as AuthCardProps, j as AuthDivider, k as AuthDividerProps, l as AuthLayout, m as AuthLayoutProps, n as Autocomplete, o as AutocompleteOption, p as AutocompleteProps, q as Avatar, r as AvatarGroup, s as AvatarGroupProps, t as AvatarProps, u as AvatarSize, v as AvatarStatus, B as Badge, w as BadgeProps, x as BadgeSize, y as BadgeVariant, z as Banner, C as BannerProps, D as BannerType, E as BreadcrumbItem, F as Breadcrumbs, G as BreadcrumbsProps, H as Button, I as ButtonChrome, J as ButtonChromeProps, K as ButtonGroup, L as ButtonGroupProps, M as ButtonProps, N as ButtonShape, O as ButtonSize, P as ButtonVariant, Q as CANONICAL_ICONS, R as Calendar, S as CanonicalIconName, T as Caption, U as Card, V as CardProps, W as CardVariant, X as ChatBubble, Y as ChatBubbleProps, Z as ChatBubbleVariant, _ as Checkbox, $ as CheckboxProps, a0 as Chip, a1 as ChipProps, a2 as CodeBlock, a3 as Collapsible, a4 as CollapsibleProps, a5 as CollapsibleSection, a6 as Combobox, a7 as ComboboxOption, a8 as ComboboxProps, a9 as CommandPalette, aa as ComponentDocs, ab as ComponentDocsProps, ac as ComponentPropRow, ad as ContextMenu, ae as ContextMenuItem, af as ContextMenuProps, ag as DataTable, ah as DataTableColumn, ai as DataTableProps, aj as DatePicker, ak as DatePickerProps, al as Dialog, am as DialogProps, an as Display, ao as Divider, ap as DividerProps, aq as Dot, ar as DotProps, as as Drawer, at as DrawerProps, au as DrawerSide, av as DrawerSize, aw as DropdownAlign, ax as DropdownButton, ay as DropdownButtonProps, az as DropdownItem, aA as DropdownItemProps, aB as DropdownMenu, aC as DropdownMenuProps, aD as DropdownRadioGroup, aE as DropdownRadioGroupProps, aF as DropdownRadioItem, aG as DropdownRadioItemProps, aH as DropdownSide, aI as EmptyState, aJ as FileUpload, aK as FileUploadProps, aL as FilterBar, aM as FilterBarProps, aN as FilterChip, aO as FilterChips, aP as FilterChipsProps, aQ as FilterControls, aR as FilterControlsProps, aS as FilterMenu, aT as FilterMenuOption, aU as FilterMenuProps, aV as FormField, aW as FormFieldControlProps, aX as FormFieldProps, aY as H1, aZ as H2, a_ as H3, a$ as H4, b0 as H5, b1 as HoverCard, b7 as Icon, b2 as IconActivity, b3 as IconAliasName, b4 as IconAreaChart, b5 as IconArrowDown, b6 as IconArrowUp, b7 as IconBase, b8 as IconBell, b9 as IconBellOff, ba as IconBolt, bb as IconBox, bc as IconByName, bd as IconCancel, be as IconCheck, bf as IconCheckCircle, bg as IconChevronDown, bh as IconChevronLeft, bi as IconChevronRight, bj as IconClipboardEdit, bk as IconClose, bl as IconCodePreview, bm as IconCohort, bn as IconCommandCursor, bo as IconCopy, bp as IconCumulativeChart, bq as IconDataReel, br as IconDatabase, bs as IconDownload, bt as IconEdit, bu as IconErrorOutline, bv as IconEventStream, bw as IconExclamation, bx as IconExperimentSplit, by as IconFeatureGate, bz as IconFlag, bA as IconFlare, bB as IconFlask, bC as IconGift, bD as IconGridView, bE as IconHandClick, bF as IconHome, bG as IconInfo, bH as IconInsightBoard, bI as IconLayers, bJ as IconListView, bK as IconLogout, bL as IconMail, bM as IconMoon, bN as IconName, bO as IconOldWindow, bP as IconPanelRight, bQ as IconPerson, bR as IconPlayCircle, bS as IconPlus, bT as IconPremium, bV as IconQueryEditor, bW as IconQueryStack, bX as IconRadar, bY as IconRecording, bZ as IconReplayFrame, b_ as IconRobot, b$ as IconRocket, c0 as IconSave, c1 as IconSearch, c2 as IconSelectEvents, c3 as IconShoppingCart, c4 as IconSpinner, c5 as IconStar, c6 as IconSubArrowRight, c7 as IconSun, c8 as IconSurveyCard, c9 as IconSurveys, ca as IconSync, cb as IconTableChart, cc as IconTerminal, cd as IconToggle, ce as IconTrash, cf as IconTuning, cg as IconUpload, ch as IconVolume, ci as IconVolumeOff, cj as Indicator, ck as IndicatorPosition, cl as IndicatorProps, cm as Input, cn as InputGroup, co as InputGroupProps, cp as InputProps, cq as InputSize, cr as InputVariant, cs as Kbd, ct as KbdPlatform, cu as KbdProps, cv as KbdVariant, cw as Label, cx as Lead, cy as Lettermark, cz as LettermarkProps, cA as Link, cB as LinkProps, cC as Loader, cD as LoaderProps, cE as LoaderSize, cF as LoaderVariant, cG as LoadingBar, cH as LoadingBarProps, cI as LoadingState, cJ as LoadingStateProps, cK as Menubar, cL as MenubarItem, cM as MenubarProps, cN as Metric, cO as MetricProps, cP as Modal, cQ as ModalProps, cR as ModalSize, cS as Mono, cT as NumberField, cU as NumberFieldProps, cV as OLD_UI_ICONS, cW as Overline, cX as P, cY as PH_ICONS, cZ as PH_ICON_ALIASES, c_ as Pagination, c$ as PaginationProps, d0 as Panel, d1 as PanelProps, d2 as Popover, d3 as PopoverProps, d4 as Progress, d5 as ProgressCircle, d6 as ProgressCircleProps, d7 as ProgressProps, d8 as Radio, d9 as RadioProps, da as Range, db as RangeProps, dc as Rating, dd as RatingProps, de as Resizable, df as ResizableProps, dg as Row, dh as RowProps, di as ScrollArea, dj as ScrollAreaProps, dk as SearchGroup, dl as SearchGroupProps, dm as SearchInput, dn as SearchInputProps, dp as SegmentedControl, dq as Select, dr as SelectProps, ds as SettingsLayout, dt as SettingsLayoutProps, du as SettingsNav, dv as SettingsNavGroup, dw as SettingsNavItem, dx as SettingsNavProps, dy as ShowcaseWrapper, dz as Sidebar, dA as SidebarGroup, dB as SidebarItemDef, dC as SidebarProps, dD as Skeleton, dE as SkeletonProps, dF as SkeletonShape, dG as Small, dH as Snack, dI as SnackProps, dJ as SortMenu, dK as SortMenuProps, dL as Spinner, dM as SpinnerProps, dN as Splotch, dO as SplotchColor, dP as SplotchProps, dQ as Stat, dR as StatProps, dS as StatTone, dT as Stepper, dU as TabItem, dV as Table, dW as TableColumn, dX as TableProps, dY as Tabs, dZ as TabsProps, d_ as TabsVariant, d$ as Tag, e0 as TagProps, e1 as TagType, e2 as Terminal, e3 as TerminalProps, e4 as Textarea, e5 as TextareaProps, e6 as ThemeDomSync, e7 as ThemeManager, e8 as ThemeManagerProps, e9 as ThemeSwitcher, ea as ThemeSwitcherProps, eb as Timeline, ec as TimelineEvent, ed as TimelineProps, ee as Toast, ef as ToastProps, eg as ToastStack, eh as ToastStackProps, ei as ToastStatus, ej as Toggle, ek as ToggleButton, el as ToggleButtonProps, em as ToggleGroup, en as ToggleGroupProps, eo as ToggleProps, ep as Tooltip, eq as TooltipAlign, er as TooltipProps, es as TooltipProvider, et as TooltipProviderProps, eu as TooltipSide, ev as Widget, ew as WidgetProps } from './index-
|
|
1
|
+
import { bU as IconProps } from './index-Od4pIP4F.js';
|
|
2
|
+
export { A as Accordion, a as Alert, b as AlertDialog, c as AlertDialogProps, d as AlertProps, e as AlertStatus, f as AppLayout, g as AppLayoutProps, h as AuthCard, i as AuthCardProps, j as AuthDivider, k as AuthDividerProps, l as AuthLayout, m as AuthLayoutProps, n as Autocomplete, o as AutocompleteOption, p as AutocompleteProps, q as Avatar, r as AvatarGroup, s as AvatarGroupProps, t as AvatarProps, u as AvatarSize, v as AvatarStatus, B as Badge, w as BadgeProps, x as BadgeSize, y as BadgeVariant, z as Banner, C as BannerProps, D as BannerType, E as BreadcrumbItem, F as Breadcrumbs, G as BreadcrumbsProps, H as Button, I as ButtonChrome, J as ButtonChromeProps, K as ButtonGroup, L as ButtonGroupProps, M as ButtonProps, N as ButtonShape, O as ButtonSize, P as ButtonVariant, Q as CANONICAL_ICONS, R as Calendar, S as CanonicalIconName, T as Caption, U as Card, V as CardProps, W as CardVariant, X as ChatBubble, Y as ChatBubbleProps, Z as ChatBubbleVariant, _ as Checkbox, $ as CheckboxProps, a0 as Chip, a1 as ChipProps, a2 as CodeBlock, a3 as Collapsible, a4 as CollapsibleProps, a5 as CollapsibleSection, a6 as Combobox, a7 as ComboboxOption, a8 as ComboboxProps, a9 as CommandPalette, aa as ComponentDocs, ab as ComponentDocsProps, ac as ComponentPropRow, ad as ContextMenu, ae as ContextMenuItem, af as ContextMenuProps, ag as DataTable, ah as DataTableColumn, ai as DataTableProps, aj as DatePicker, ak as DatePickerProps, al as Dialog, am as DialogProps, an as Display, ao as Divider, ap as DividerProps, aq as Dot, ar as DotProps, as as Drawer, at as DrawerProps, au as DrawerSide, av as DrawerSize, aw as DropdownAlign, ax as DropdownButton, ay as DropdownButtonProps, az as DropdownItem, aA as DropdownItemProps, aB as DropdownMenu, aC as DropdownMenuProps, aD as DropdownRadioGroup, aE as DropdownRadioGroupProps, aF as DropdownRadioItem, aG as DropdownRadioItemProps, aH as DropdownSide, aI as EmptyState, aJ as FileUpload, aK as FileUploadProps, aL as FilterBar, aM as FilterBarProps, aN as FilterChip, aO as FilterChips, aP as FilterChipsProps, aQ as FilterControls, aR as FilterControlsProps, aS as FilterMenu, aT as FilterMenuOption, aU as FilterMenuProps, aV as FormField, aW as FormFieldControlProps, aX as FormFieldProps, aY as H1, aZ as H2, a_ as H3, a$ as H4, b0 as H5, b1 as HoverCard, b7 as Icon, b2 as IconActivity, b3 as IconAliasName, b4 as IconAreaChart, b5 as IconArrowDown, b6 as IconArrowUp, b7 as IconBase, b8 as IconBell, b9 as IconBellOff, ba as IconBolt, bb as IconBox, bc as IconByName, bd as IconCancel, be as IconCheck, bf as IconCheckCircle, bg as IconChevronDown, bh as IconChevronLeft, bi as IconChevronRight, bj as IconClipboardEdit, bk as IconClose, bl as IconCodePreview, bm as IconCohort, bn as IconCommandCursor, bo as IconCopy, bp as IconCumulativeChart, bq as IconDataReel, br as IconDatabase, bs as IconDownload, bt as IconEdit, bu as IconErrorOutline, bv as IconEventStream, bw as IconExclamation, bx as IconExperimentSplit, by as IconFeatureGate, bz as IconFlag, bA as IconFlare, bB as IconFlask, bC as IconGift, bD as IconGridView, bE as IconHandClick, bF as IconHome, bG as IconInfo, bH as IconInsightBoard, bI as IconLayers, bJ as IconListView, bK as IconLogout, bL as IconMail, bM as IconMoon, bN as IconName, bO as IconOldWindow, bP as IconPanelRight, bQ as IconPerson, bR as IconPlayCircle, bS as IconPlus, bT as IconPremium, bV as IconQueryEditor, bW as IconQueryStack, bX as IconRadar, bY as IconRecording, bZ as IconReplayFrame, b_ as IconRobot, b$ as IconRocket, c0 as IconSave, c1 as IconSearch, c2 as IconSelectEvents, c3 as IconShoppingCart, c4 as IconSpinner, c5 as IconStar, c6 as IconSubArrowRight, c7 as IconSun, c8 as IconSurveyCard, c9 as IconSurveys, ca as IconSync, cb as IconTableChart, cc as IconTerminal, cd as IconToggle, ce as IconTrash, cf as IconTuning, cg as IconUpload, ch as IconVolume, ci as IconVolumeOff, cj as Indicator, ck as IndicatorPosition, cl as IndicatorProps, cm as Input, cn as InputGroup, co as InputGroupProps, cp as InputProps, cq as InputSize, cr as InputVariant, cs as Kbd, ct as KbdPlatform, cu as KbdProps, cv as KbdVariant, cw as Label, cx as Lead, cy as Lettermark, cz as LettermarkProps, cA as Link, cB as LinkProps, cC as Loader, cD as LoaderProps, cE as LoaderSize, cF as LoaderVariant, cG as LoadingBar, cH as LoadingBarProps, cI as LoadingState, cJ as LoadingStateProps, cK as Menubar, cL as MenubarItem, cM as MenubarProps, cN as Metric, cO as MetricProps, cP as Modal, cQ as ModalProps, cR as ModalSize, cS as Mono, cT as NumberField, cU as NumberFieldProps, cV as OLD_UI_ICONS, cW as Overline, cX as P, cY as PH_ICONS, cZ as PH_ICON_ALIASES, c_ as Pagination, c$ as PaginationProps, d0 as Panel, d1 as PanelProps, d2 as Popover, d3 as PopoverProps, d4 as Progress, d5 as ProgressCircle, d6 as ProgressCircleProps, d7 as ProgressProps, d8 as Radio, d9 as RadioProps, da as Range, db as RangeProps, dc as Rating, dd as RatingProps, de as Resizable, df as ResizableProps, dg as Row, dh as RowProps, di as ScrollArea, dj as ScrollAreaProps, dk as SearchGroup, dl as SearchGroupProps, dm as SearchInput, dn as SearchInputProps, dp as SegmentedControl, dq as Select, dr as SelectProps, ds as SettingsLayout, dt as SettingsLayoutProps, du as SettingsNav, dv as SettingsNavGroup, dw as SettingsNavItem, dx as SettingsNavProps, dy as ShowcaseWrapper, dz as Sidebar, dA as SidebarGroup, dB as SidebarItemDef, dC as SidebarProps, dD as Skeleton, dE as SkeletonProps, dF as SkeletonShape, dG as Small, dH as Snack, dI as SnackProps, dJ as SortMenu, dK as SortMenuProps, dL as Spinner, dM as SpinnerProps, dN as Splotch, dO as SplotchColor, dP as SplotchProps, dQ as Stat, dR as StatProps, dS as StatTone, dT as Stepper, dU as TabItem, dV as Table, dW as TableColumn, dX as TableProps, dY as Tabs, dZ as TabsProps, d_ as TabsVariant, d$ as Tag, e0 as TagProps, e1 as TagType, e2 as Terminal, e3 as TerminalProps, e4 as Textarea, e5 as TextareaProps, e6 as ThemeDomSync, e7 as ThemeManager, e8 as ThemeManagerProps, e9 as ThemeSwitcher, ea as ThemeSwitcherProps, eb as Timeline, ec as TimelineEvent, ed as TimelineProps, ee as Toast, ef as ToastProps, eg as ToastStack, eh as ToastStackProps, ei as ToastStatus, ej as Toggle, ek as ToggleButton, el as ToggleButtonProps, em as ToggleGroup, en as ToggleGroupProps, eo as ToggleProps, ep as Tooltip, eq as TooltipAlign, er as TooltipProps, es as TooltipProvider, et as TooltipProviderProps, eu as TooltipSide, ev as Widget, ew as WidgetProps } from './index-Od4pIP4F.js';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import '@radix-ui/react-dropdown-menu';
|
package/dist/index.js
CHANGED
|
@@ -2055,10 +2055,16 @@ function Modal({
|
|
|
2055
2055
|
footer,
|
|
2056
2056
|
size = "md",
|
|
2057
2057
|
className,
|
|
2058
|
+
customLayout = false,
|
|
2058
2059
|
showCloseButton = true,
|
|
2059
2060
|
closeOnOutsideClick = true,
|
|
2060
2061
|
closeOnEscape = true,
|
|
2061
|
-
|
|
2062
|
+
dataTest,
|
|
2063
|
+
panelDataTest,
|
|
2064
|
+
zIndex,
|
|
2065
|
+
id,
|
|
2066
|
+
"aria-label": ariaLabel,
|
|
2067
|
+
"aria-labelledby": ariaLabelledBy
|
|
2062
2068
|
}) {
|
|
2063
2069
|
const canDismiss = Boolean(onClose);
|
|
2064
2070
|
const restoreFocusRef = (0, import_react11.useRef)(null);
|
|
@@ -2070,13 +2076,23 @@ function Modal({
|
|
|
2070
2076
|
if (!nextOpen) onClose == null ? void 0 : onClose();
|
|
2071
2077
|
},
|
|
2072
2078
|
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Dialog.Portal, { children: [
|
|
2073
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2074
|
-
|
|
2079
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2080
|
+
Dialog.Overlay,
|
|
2081
|
+
{
|
|
2082
|
+
"data-test": dataTest,
|
|
2083
|
+
className: "ph-modal-overlay",
|
|
2084
|
+
style: zIndex ? { zIndex } : void 0
|
|
2085
|
+
}
|
|
2086
|
+
),
|
|
2087
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2075
2088
|
Dialog.Content,
|
|
2076
|
-
__spreadProps(__spreadValues({
|
|
2077
|
-
|
|
2078
|
-
"
|
|
2079
|
-
|
|
2089
|
+
__spreadProps(__spreadValues(__spreadProps(__spreadValues(__spreadValues({
|
|
2090
|
+
id,
|
|
2091
|
+
"data-test": panelDataTest,
|
|
2092
|
+
className: cn("ph-modal-panel", sizeMap4[size], className)
|
|
2093
|
+
}, ariaLabel ? { "aria-label": ariaLabel } : {}), ariaLabelledBy ? { "aria-labelledby": ariaLabelledBy } : {}), {
|
|
2094
|
+
style: zIndex ? { zIndex } : void 0
|
|
2095
|
+
}), description ? {} : { "aria-describedby": void 0 }), {
|
|
2080
2096
|
onOpenAutoFocus: () => {
|
|
2081
2097
|
restoreFocusRef.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
2082
2098
|
},
|
|
@@ -2091,18 +2107,29 @@ function Modal({
|
|
|
2091
2107
|
onPointerDownOutside: (event) => {
|
|
2092
2108
|
if (!canDismiss || !closeOnOutsideClick) event.preventDefault();
|
|
2093
2109
|
},
|
|
2094
|
-
children: [
|
|
2110
|
+
children: customLayout ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
|
|
2111
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Dialog.Title, { className: "sr-only", children: ariaLabel != null ? ariaLabel : "Dialog" }),
|
|
2112
|
+
children
|
|
2113
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
|
|
2095
2114
|
title ? null : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Dialog.Title, { className: "sr-only", children: ariaLabel != null ? ariaLabel : "Dialog" }),
|
|
2096
2115
|
title || description || showCloseButton && canDismiss ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("header", { className: "ph-modal-header", children: [
|
|
2097
2116
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "min-w-0", children: [
|
|
2098
2117
|
title ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Dialog.Title, { className: "text-lg font-bold text-ph-ink", children: title }) : null,
|
|
2099
2118
|
description ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Dialog.Description, { className: "mt-1 text-sm text-ph-subtle", children: description }) : null
|
|
2100
2119
|
] }),
|
|
2101
|
-
showCloseButton && canDismiss ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2120
|
+
showCloseButton && canDismiss ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2121
|
+
"button",
|
|
2122
|
+
{
|
|
2123
|
+
type: "button",
|
|
2124
|
+
className: "ph-modal-close",
|
|
2125
|
+
"aria-label": "Close dialog",
|
|
2126
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(IconClose, { className: "h-5 w-5", "aria-hidden": true })
|
|
2127
|
+
}
|
|
2128
|
+
) }) : null
|
|
2102
2129
|
] }) : null,
|
|
2103
2130
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "ph-modal-body", children }),
|
|
2104
2131
|
footer ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "ph-modal-footer", children: footer }) : null
|
|
2105
|
-
]
|
|
2132
|
+
] })
|
|
2106
2133
|
})
|
|
2107
2134
|
)
|
|
2108
2135
|
] })
|