tfy-web-components 0.0.42 → 0.0.44
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/{Button-BMEClWyK.js → Button-BdNaawKV.js} +3 -2
- package/dist/{Button-BMEClWyK.js.map → Button-BdNaawKV.js.map} +1 -1
- package/dist/{CompositeItem-BGwD51jI.js → CompositeItem-EOSJycCk.js} +2 -2
- package/dist/{CompositeItem-BGwD51jI.js.map → CompositeItem-EOSJycCk.js.map} +1 -1
- package/dist/{CompositeRoot-BxrPc7F6.js → CompositeRoot-DnijP7Jm.js} +5 -5
- package/dist/{CompositeRoot-BxrPc7F6.js.map → CompositeRoot-DnijP7Jm.js.map} +1 -1
- package/dist/{Input-OmtWyaSl.js → Input-D0UuCXLs.js} +3 -3
- package/dist/{Input-OmtWyaSl.js.map → Input-D0UuCXLs.js.map} +1 -1
- package/dist/{Modal-MUzR0rK2.js → Modal-BFnf68oS.js} +18 -18
- package/dist/{Modal-MUzR0rK2.js.map → Modal-BFnf68oS.js.map} +1 -1
- package/dist/{Popover-CBnt1wgJ.js → Popover-B6z7exNd.js} +10 -10
- package/dist/{Popover-CBnt1wgJ.js.map → Popover-B6z7exNd.js.map} +1 -1
- package/dist/PrehydrationScript--08s8Mfl.js +56 -0
- package/dist/PrehydrationScript--08s8Mfl.js.map +1 -0
- package/dist/{Tooltip-BkP9fnI0.js → Tooltip-6R-t7wt1.js} +9 -8
- package/dist/{Tooltip-BkP9fnI0.js.map → Tooltip-6R-t7wt1.js.map} +1 -1
- package/dist/components/atoms/Accordion.d.ts +20 -4
- package/dist/components/atoms/Accordion.es.js +74 -26
- package/dist/components/atoms/Accordion.es.js.map +1 -1
- package/dist/components/atoms/Button.d.ts +1 -0
- package/dist/components/atoms/Button.es.js +2 -2
- package/dist/components/atoms/ButtonGroup.d.ts +10 -5
- package/dist/components/atoms/ButtonGroup.es.js +95 -39
- package/dist/components/atoms/ButtonGroup.es.js.map +1 -1
- package/dist/components/atoms/IconButton.es.js +2 -2
- package/dist/components/atoms/IconProvider.es.js +2 -1
- package/dist/components/atoms/IconProvider.es.js.map +1 -1
- package/dist/components/atoms/Modal.es.js +6 -6
- package/dist/components/atoms/OverflowButton.es.js +2 -2
- package/dist/components/atoms/Switch.es.js +5 -5
- package/dist/components/atoms/Switch.es.js.map +1 -1
- package/dist/components/atoms/TabButton.d.ts +31 -6
- package/dist/components/atoms/TabButton.es.js +418 -50
- package/dist/components/atoms/TabButton.es.js.map +1 -1
- package/dist/components/atoms/Tooltip.es.js +1 -1
- package/dist/components/molecules/Alert.es.js +3 -3
- package/dist/components/molecules/CopyField.es.js +2 -2
- package/dist/components/molecules/CustomDrawer.es.js +1 -1
- package/dist/components/molecules/Dialog.es.js +1 -1
- package/dist/components/molecules/ImagesPreview.es.js +2 -2
- package/dist/components/molecules/Input.es.js +2 -2
- package/dist/components/molecules/Markdown.es.js +2 -2
- package/dist/components/molecules/Markdown.es.js.map +1 -1
- package/dist/components/molecules/SimpleCodeEditor.es.js +2 -2
- package/dist/components/molecules/ToggleButton.es.js +2 -2
- package/dist/components/molecules/TopBar.d.ts +47 -0
- package/dist/components/molecules/TopBar.es.js +164 -0
- package/dist/components/molecules/TopBar.es.js.map +1 -0
- package/dist/components/molecules/agent-chat.es.js +2 -2
- package/dist/components/theme/colors.es.js +1 -0
- package/dist/components/theme/colors.es.js.map +1 -1
- package/dist/{composite-CrCQWAKA.js → composite-BDBV1Jsx.js} +2 -2
- package/dist/{composite-CrCQWAKA.js.map → composite-BDBV1Jsx.js.map} +1 -1
- package/dist/{composite-DCpXNxz9.js → composite-rAI4IlWK.js} +2 -2
- package/dist/{composite-DCpXNxz9.js.map → composite-rAI4IlWK.js.map} +1 -1
- package/dist/{index-B806bfA-.js → index-B6xFUIBK.js} +3 -3
- package/dist/{index-B806bfA-.js.map → index-B6xFUIBK.js.map} +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.es.js +26 -12
- package/dist/index.es.js.map +1 -1
- package/dist/new-components/atoms/Alert.d.ts +33 -0
- package/dist/new-components/atoms/Alert.es.js +164 -0
- package/dist/new-components/atoms/Alert.es.js.map +1 -0
- package/dist/new-components/atoms/Checkbox.es.js +4 -4
- package/dist/new-components/atoms/EmptyState.d.ts +44 -0
- package/dist/new-components/atoms/EmptyState.es.js +234 -0
- package/dist/new-components/atoms/EmptyState.es.js.map +1 -0
- package/dist/new-components/atoms/Popover.es.js +2 -2
- package/dist/new-components/atoms/Radio.es.js +8 -8
- package/dist/new-components/atoms/SegmentedControl.es.js +4 -4
- package/dist/new-components/atoms/Slider.es.js +7 -52
- package/dist/new-components/atoms/Slider.es.js.map +1 -1
- package/dist/new-components/atoms/Toast.d.ts +79 -0
- package/dist/new-components/atoms/Toast.es.js +449 -0
- package/dist/new-components/atoms/Toast.es.js.map +1 -0
- package/dist/new-components/atoms/Toggletip.d.ts +1 -1
- package/dist/new-components/atoms/Toggletip.es.js +3 -3
- package/dist/new-components/atoms/Toggletip.es.js.map +1 -1
- package/dist/{shadowDom-Bq4g0Qeu.js → shadowDom-CRvvf3qf.js} +2 -2
- package/dist/{shadowDom-Bq4g0Qeu.js.map → shadowDom-CRvvf3qf.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/tokens.css +37 -11
- package/dist/{useAriaLabelledBy-B6n92QBS.js → useAriaLabelledBy-C9SDiruE.js} +2 -2
- package/dist/{useAriaLabelledBy-B6n92QBS.js.map → useAriaLabelledBy-C9SDiruE.js.map} +1 -1
- package/dist/{useBaseUiId-Ch7ujXpo.js → useBaseUiId-jtgiQp--.js} +24 -24
- package/dist/{useBaseUiId-Ch7ujXpo.js.map → useBaseUiId-jtgiQp--.js.map} +1 -1
- package/dist/{useButton-PUBhT4Vo.js → useButton-BalOc_EL.js} +2 -2
- package/dist/{useButton-PUBhT4Vo.js.map → useButton-BalOc_EL.js.map} +1 -1
- package/dist/{useLabelableId-DCLzrdD-.js → useLabelableId-CQqNbBk1.js} +2 -2
- package/dist/{useLabelableId-DCLzrdD-.js.map → useLabelableId-CQqNbBk1.js.map} +1 -1
- package/dist/{useOpenInteractionType-DGWLoAqp.js → useOpenInteractionType-BnUZ2Eio.js} +9 -9
- package/dist/{useOpenInteractionType-DGWLoAqp.js.map → useOpenInteractionType-BnUZ2Eio.js.map} +1 -1
- package/dist/{usePopupHandleStore-BdS-xYID.js → usePopupHandleStore-DYUo-Fyk.js} +32 -32
- package/dist/{usePopupHandleStore-BdS-xYID.js.map → usePopupHandleStore-DYUo-Fyk.js.map} +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5,14 +5,19 @@ import { default as default4 } from "./components/atoms/OutlinedRadio.es.js";
|
|
|
5
5
|
import { Progress, ProgressCircle, ProgressField, ProgressSteps } from "./components/atoms/Progress.es.js";
|
|
6
6
|
import { default as default5, SpinnerMark } from "./components/atoms/Spinner.es.js";
|
|
7
7
|
import { default as default6 } from "./components/molecules/CustomDrawer.es.js";
|
|
8
|
-
import {
|
|
9
|
-
import { default as
|
|
10
|
-
import {
|
|
11
|
-
import { default as default9
|
|
12
|
-
import { default as default10,
|
|
13
|
-
import {
|
|
8
|
+
import { TopBar, titleVariants } from "./components/molecules/TopBar.es.js";
|
|
9
|
+
import { default as default7, alertVariants } from "./new-components/atoms/Alert.es.js";
|
|
10
|
+
import { default as default8 } from "./new-components/atoms/Checkbox.es.js";
|
|
11
|
+
import { default as default9 } from "./new-components/atoms/Chip.es.js";
|
|
12
|
+
import { default as default10, emptyStateVariants } from "./new-components/atoms/EmptyState.es.js";
|
|
13
|
+
import { P, a, b, c, d, e, f, g, h, i, j } from "./Popover-B6z7exNd.js";
|
|
14
|
+
import { default as default11, RadioGroup } from "./new-components/atoms/Radio.es.js";
|
|
15
|
+
import { default as default12, SegmentedControlItem } from "./new-components/atoms/SegmentedControl.es.js";
|
|
16
|
+
import { default as default13 } from "./new-components/atoms/Slider.es.js";
|
|
17
|
+
import { default as default14, ToastStack, ToastTimer, toastVariants } from "./new-components/atoms/Toast.es.js";
|
|
14
18
|
import { Toggletip, ToggletipActions, ToggletipCode, ToggletipContent, ToggletipDescription, ToggletipHeader, ToggletipInlineCode, ToggletipLink, ToggletipRoot, ToggletipRow, ToggletipRows, ToggletipTitle, ToggletipTrigger } from "./new-components/atoms/Toggletip.es.js";
|
|
15
19
|
export {
|
|
20
|
+
default7 as Alert,
|
|
16
21
|
Avatar,
|
|
17
22
|
AvatarBadge,
|
|
18
23
|
AvatarFallback,
|
|
@@ -20,9 +25,10 @@ export {
|
|
|
20
25
|
AvatarGroupCount,
|
|
21
26
|
AvatarImage,
|
|
22
27
|
default2 as Badge,
|
|
23
|
-
|
|
24
|
-
|
|
28
|
+
default8 as Checkbox,
|
|
29
|
+
default9 as Chip,
|
|
25
30
|
default6 as CustomDrawer,
|
|
31
|
+
default10 as EmptyState,
|
|
26
32
|
default3 as Logo,
|
|
27
33
|
default4 as OutlinedRadio,
|
|
28
34
|
P as Popover,
|
|
@@ -40,13 +46,16 @@ export {
|
|
|
40
46
|
ProgressCircle,
|
|
41
47
|
ProgressField,
|
|
42
48
|
ProgressSteps,
|
|
43
|
-
|
|
49
|
+
default11 as Radio,
|
|
44
50
|
RadioGroup,
|
|
45
|
-
|
|
51
|
+
default12 as SegmentedControl,
|
|
46
52
|
SegmentedControlItem,
|
|
47
|
-
|
|
53
|
+
default13 as Slider,
|
|
48
54
|
default5 as Spinner,
|
|
49
55
|
SpinnerMark,
|
|
56
|
+
default14 as Toast,
|
|
57
|
+
ToastStack,
|
|
58
|
+
ToastTimer,
|
|
50
59
|
Toggletip,
|
|
51
60
|
ToggletipActions,
|
|
52
61
|
ToggletipCode,
|
|
@@ -59,6 +68,11 @@ export {
|
|
|
59
68
|
ToggletipRow,
|
|
60
69
|
ToggletipRows,
|
|
61
70
|
ToggletipTitle,
|
|
62
|
-
ToggletipTrigger
|
|
71
|
+
ToggletipTrigger,
|
|
72
|
+
TopBar,
|
|
73
|
+
alertVariants,
|
|
74
|
+
emptyStateVariants,
|
|
75
|
+
toastVariants,
|
|
76
|
+
titleVariants as topBarTitleVariants
|
|
63
77
|
};
|
|
64
78
|
//# sourceMappingURL=index.es.js.map
|
package/dist/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { type IconProp } from '../../components/atoms/IconProvider';
|
|
4
|
+
declare const alertVariants: (props?: ({
|
|
5
|
+
appearance?: "inline" | "banner" | "plain" | "attached" | null | undefined;
|
|
6
|
+
tone?: "info" | "warning" | "neutral" | "success" | "error" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
type AlertTone = NonNullable<VariantProps<typeof alertVariants>['tone']>;
|
|
9
|
+
type AlertAppearance = NonNullable<VariantProps<typeof alertVariants>['appearance']>;
|
|
10
|
+
export type AlertAction = {
|
|
11
|
+
label: React.ReactNode;
|
|
12
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type AlertProps = Omit<React.ComponentProps<'div'>, 'title'> & {
|
|
17
|
+
tone?: AlertTone;
|
|
18
|
+
appearance?: AlertAppearance;
|
|
19
|
+
iconSize?: 16 | 24;
|
|
20
|
+
title?: React.ReactNode;
|
|
21
|
+
description?: React.ReactNode;
|
|
22
|
+
icon?: IconProp | false;
|
|
23
|
+
action?: AlertAction;
|
|
24
|
+
secondaryAction?: AlertAction;
|
|
25
|
+
customActions?: React.ReactNode;
|
|
26
|
+
onDismiss?: () => void;
|
|
27
|
+
dismissLabel?: string;
|
|
28
|
+
live?: boolean;
|
|
29
|
+
dataTestPrefix?: string;
|
|
30
|
+
};
|
|
31
|
+
declare function Alert({ ref, tone, appearance, iconSize, title, description, icon, action, secondaryAction, customActions, onDismiss, dismissLabel, live, children, role, className, dataTestPrefix, ...props }: AlertProps): React.JSX.Element;
|
|
32
|
+
export { alertVariants };
|
|
33
|
+
export default Alert;
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { c as cva } from "../../index-DSVg79g-.js";
|
|
3
|
+
import { faCircleXmark, faTriangleExclamation, faCircleCheck, faCircleInfo, faXmark } from "@fortawesome/free-solid-svg-icons";
|
|
4
|
+
import { C as ControlButton } from "../../Button-BdNaawKV.js";
|
|
5
|
+
import IconButton from "../../components/atoms/IconButton.es.js";
|
|
6
|
+
import IconProvider, { iconFrame } from "../../components/atoms/IconProvider.es.js";
|
|
7
|
+
import { c as classNames } from "../../classNames-B1XpQHle.js";
|
|
8
|
+
import { t as toDataTestId } from "../../conversions-CbWPvHRE.js";
|
|
9
|
+
const alertVariants = cva("flex w-full items-start gap-space-8 text-text-primary", {
|
|
10
|
+
variants: {
|
|
11
|
+
appearance: {
|
|
12
|
+
inline: "rounded-control border px-space-12 py-space-8",
|
|
13
|
+
attached: "rounded-control p-space-8",
|
|
14
|
+
banner: "border-b px-space-16 py-space-12",
|
|
15
|
+
plain: "p-0"
|
|
16
|
+
},
|
|
17
|
+
tone: {
|
|
18
|
+
neutral: "border-status-border-neutral bg-status-background-neutral-subtle",
|
|
19
|
+
info: "border-status-border-info bg-status-background-info-subtle",
|
|
20
|
+
success: "border-status-border-success bg-status-background-success-subtle",
|
|
21
|
+
warning: "border-status-border-warning bg-status-background-warning-subtle",
|
|
22
|
+
error: "border-status-border-error bg-status-background-error-subtle"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
compoundVariants: [
|
|
26
|
+
{
|
|
27
|
+
appearance: "plain",
|
|
28
|
+
className: "border-0 bg-transparent"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
defaultVariants: {
|
|
32
|
+
appearance: "inline",
|
|
33
|
+
tone: "neutral"
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
const TONE_ICON = {
|
|
37
|
+
neutral: { icon: faCircleInfo, className: "text-status-icon-neutral" },
|
|
38
|
+
info: { icon: faCircleInfo, className: "text-status-icon-info" },
|
|
39
|
+
success: { icon: faCircleCheck, className: "text-status-text-success" },
|
|
40
|
+
warning: { icon: faTriangleExclamation, className: "text-status-icon-warning-bold" },
|
|
41
|
+
error: { icon: faCircleXmark, className: "text-status-icon-error" }
|
|
42
|
+
};
|
|
43
|
+
function AlertActions({
|
|
44
|
+
action,
|
|
45
|
+
secondaryAction,
|
|
46
|
+
trailing
|
|
47
|
+
}) {
|
|
48
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "alert-actions", className: classNames("flex gap-space-8", trailing && "shrink-0"), children: [
|
|
49
|
+
/* @__PURE__ */ jsx(
|
|
50
|
+
ControlButton,
|
|
51
|
+
{
|
|
52
|
+
variant: "secondary",
|
|
53
|
+
size: "md",
|
|
54
|
+
htmlType: "button",
|
|
55
|
+
onClick: action.onClick,
|
|
56
|
+
disabled: action.disabled,
|
|
57
|
+
loading: action.loading,
|
|
58
|
+
className: "bg-background-page text-text-primary ring-border-default",
|
|
59
|
+
children: action.label
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
secondaryAction ? /* @__PURE__ */ jsx(
|
|
63
|
+
ControlButton,
|
|
64
|
+
{
|
|
65
|
+
variant: "ghost",
|
|
66
|
+
size: "md",
|
|
67
|
+
htmlType: "button",
|
|
68
|
+
onClick: secondaryAction.onClick,
|
|
69
|
+
disabled: secondaryAction.disabled,
|
|
70
|
+
loading: secondaryAction.loading,
|
|
71
|
+
children: secondaryAction.label
|
|
72
|
+
}
|
|
73
|
+
) : null
|
|
74
|
+
] });
|
|
75
|
+
}
|
|
76
|
+
function Alert({
|
|
77
|
+
ref,
|
|
78
|
+
tone = "neutral",
|
|
79
|
+
appearance = "inline",
|
|
80
|
+
iconSize = 16,
|
|
81
|
+
title,
|
|
82
|
+
description,
|
|
83
|
+
icon,
|
|
84
|
+
action,
|
|
85
|
+
secondaryAction,
|
|
86
|
+
customActions,
|
|
87
|
+
onDismiss,
|
|
88
|
+
dismissLabel = "Dismiss",
|
|
89
|
+
live = false,
|
|
90
|
+
children,
|
|
91
|
+
role,
|
|
92
|
+
className,
|
|
93
|
+
dataTestPrefix,
|
|
94
|
+
...props
|
|
95
|
+
}) {
|
|
96
|
+
const toneIcon = TONE_ICON[tone];
|
|
97
|
+
const resolvedIcon = icon === void 0 ? toneIcon.icon : icon;
|
|
98
|
+
const resolvedDescription = description ?? children;
|
|
99
|
+
const trailingActions = appearance === "attached" || appearance === "banner";
|
|
100
|
+
const liveRole = live ? tone === "error" || tone === "warning" ? "alert" : "status" : void 0;
|
|
101
|
+
const hasCustomActions = customActions != null && customActions !== false;
|
|
102
|
+
const resolvedActions = action ? /* @__PURE__ */ jsx(AlertActions, { action, secondaryAction, trailing: trailingActions }) : null;
|
|
103
|
+
return /* @__PURE__ */ jsxs(
|
|
104
|
+
"div",
|
|
105
|
+
{
|
|
106
|
+
ref,
|
|
107
|
+
role: role ?? liveRole,
|
|
108
|
+
"data-slot": "alert",
|
|
109
|
+
"data-tone": tone,
|
|
110
|
+
"data-appearance": appearance,
|
|
111
|
+
...props,
|
|
112
|
+
"data-test": toDataTestId("alert", dataTestPrefix),
|
|
113
|
+
className: classNames(alertVariants({ appearance, tone }), hasCustomActions && "items-center", className),
|
|
114
|
+
children: [
|
|
115
|
+
resolvedIcon !== false ? /* @__PURE__ */ jsx(
|
|
116
|
+
"span",
|
|
117
|
+
{
|
|
118
|
+
"aria-hidden": true,
|
|
119
|
+
"data-slot": "alert-icon",
|
|
120
|
+
className: classNames(
|
|
121
|
+
"relative shrink-0",
|
|
122
|
+
iconSize === 16 ? "flex h-5 w-4 items-center justify-center" : "size-5",
|
|
123
|
+
toneIcon.className
|
|
124
|
+
),
|
|
125
|
+
children: /* @__PURE__ */ jsx(
|
|
126
|
+
IconProvider,
|
|
127
|
+
{
|
|
128
|
+
icon: resolvedIcon,
|
|
129
|
+
size: iconSize === 16 ? iconFrame["16"].glyph : iconFrame["24"].glyph,
|
|
130
|
+
className: classNames(iconSize === 24 && "absolute -left-0.5 -top-0.5")
|
|
131
|
+
}
|
|
132
|
+
)
|
|
133
|
+
}
|
|
134
|
+
) : null,
|
|
135
|
+
/* @__PURE__ */ jsxs("div", { "data-slot": "alert-content", className: "flex min-w-0 flex-1 flex-col gap-space-8", children: [
|
|
136
|
+
title != null || resolvedDescription != null ? /* @__PURE__ */ jsxs("div", { "data-slot": "alert-text", className: "flex w-full flex-col gap-space-2 wrap-break-word", children: [
|
|
137
|
+
title != null ? /* @__PURE__ */ jsx("div", { "data-slot": "alert-title", className: "text-label-md", children: title }) : null,
|
|
138
|
+
resolvedDescription != null ? /* @__PURE__ */ jsx("div", { "data-slot": "alert-description", className: classNames("text-body-sm", !title && "mt-space-2"), children: resolvedDescription }) : null
|
|
139
|
+
] }) : null,
|
|
140
|
+
!hasCustomActions && !trailingActions ? resolvedActions : null
|
|
141
|
+
] }),
|
|
142
|
+
hasCustomActions ? /* @__PURE__ */ jsx("div", { "data-slot": "alert-actions", className: "flex shrink-0 gap-space-8", children: customActions }) : trailingActions ? resolvedActions : null,
|
|
143
|
+
onDismiss ? /* @__PURE__ */ jsx(
|
|
144
|
+
IconButton,
|
|
145
|
+
{
|
|
146
|
+
"data-slot": "alert-dismiss",
|
|
147
|
+
variant: "ghost",
|
|
148
|
+
size: "md",
|
|
149
|
+
icon: faXmark,
|
|
150
|
+
iconSize: iconFrame["16"].glyph,
|
|
151
|
+
"aria-label": dismissLabel,
|
|
152
|
+
onClick: onDismiss,
|
|
153
|
+
className: "shrink-0"
|
|
154
|
+
}
|
|
155
|
+
) : null
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
export {
|
|
161
|
+
alertVariants,
|
|
162
|
+
Alert as default
|
|
163
|
+
};
|
|
164
|
+
//# sourceMappingURL=Alert.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.es.js","sources":["../../../src/new-components/atoms/Alert.tsx"],"sourcesContent":["import * as React from 'react'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport {\n faCircleCheck,\n faCircleInfo,\n faCircleXmark,\n faTriangleExclamation,\n faXmark,\n} from '@fortawesome/free-solid-svg-icons'\n\nimport { ControlButton } from '@/components/atoms/Button'\nimport IconButton from '@/components/atoms/IconButton'\nimport IconProvider, { iconFrame, type IconProp } from '@/components/atoms/IconProvider'\nimport { cn } from '@/lib/utils'\n\nimport classNames from '@/utils/classNames'\nimport { toDataTestId } from '@/utils/conversions'\n\nconst alertVariants = cva('flex w-full items-start gap-space-8 text-text-primary', {\n variants: {\n appearance: {\n inline: 'rounded-control border px-space-12 py-space-8',\n attached: 'rounded-control p-space-8',\n banner: 'border-b px-space-16 py-space-12',\n plain: 'p-0',\n },\n tone: {\n neutral: 'border-status-border-neutral bg-status-background-neutral-subtle',\n info: 'border-status-border-info bg-status-background-info-subtle',\n success: 'border-status-border-success bg-status-background-success-subtle',\n warning: 'border-status-border-warning bg-status-background-warning-subtle',\n error: 'border-status-border-error bg-status-background-error-subtle',\n },\n },\n compoundVariants: [\n {\n appearance: 'plain',\n className: 'border-0 bg-transparent',\n },\n ],\n defaultVariants: {\n appearance: 'inline',\n tone: 'neutral',\n },\n})\n\ntype AlertTone = NonNullable<VariantProps<typeof alertVariants>['tone']>\ntype AlertAppearance = NonNullable<VariantProps<typeof alertVariants>['appearance']>\n\nconst TONE_ICON = {\n neutral: { icon: faCircleInfo, className: 'text-status-icon-neutral' },\n info: { icon: faCircleInfo, className: 'text-status-icon-info' },\n success: { icon: faCircleCheck, className: 'text-status-text-success' },\n warning: { icon: faTriangleExclamation, className: 'text-status-icon-warning-bold' },\n error: { icon: faCircleXmark, className: 'text-status-icon-error' },\n} as const satisfies Record<AlertTone, { icon: IconProp; className: string }>\n\nexport type AlertAction = {\n label: React.ReactNode\n onClick?: React.MouseEventHandler<HTMLButtonElement>\n disabled?: boolean\n loading?: boolean\n}\n\nexport type AlertProps = Omit<React.ComponentProps<'div'>, 'title'> & {\n tone?: AlertTone\n appearance?: AlertAppearance\n iconSize?: 16 | 24\n title?: React.ReactNode\n description?: React.ReactNode\n icon?: IconProp | false\n action?: AlertAction\n secondaryAction?: AlertAction\n customActions?: React.ReactNode\n onDismiss?: () => void\n dismissLabel?: string\n live?: boolean\n dataTestPrefix?: string\n}\n\nfunction AlertActions({\n action,\n secondaryAction,\n trailing,\n}: {\n action: AlertAction\n secondaryAction?: AlertAction\n trailing: boolean\n}) {\n return (\n <div data-slot=\"alert-actions\" className={cn('flex gap-space-8', trailing && 'shrink-0')}>\n <ControlButton\n variant=\"secondary\"\n size=\"md\"\n htmlType=\"button\"\n onClick={action.onClick}\n disabled={action.disabled}\n loading={action.loading}\n className=\"bg-background-page text-text-primary ring-border-default\"\n >\n {action.label}\n </ControlButton>\n {secondaryAction ? (\n <ControlButton\n variant=\"ghost\"\n size=\"md\"\n htmlType=\"button\"\n onClick={secondaryAction.onClick}\n disabled={secondaryAction.disabled}\n loading={secondaryAction.loading}\n >\n {secondaryAction.label}\n </ControlButton>\n ) : null}\n </div>\n )\n}\n\nfunction Alert({\n ref,\n tone = 'neutral',\n appearance = 'inline',\n iconSize = 16,\n title,\n description,\n icon,\n action,\n secondaryAction,\n customActions,\n onDismiss,\n dismissLabel = 'Dismiss',\n live = false,\n children,\n role,\n className,\n dataTestPrefix,\n ...props\n}: AlertProps) {\n const toneIcon = TONE_ICON[tone]\n const resolvedIcon = icon === undefined ? toneIcon.icon : icon\n const resolvedDescription = description ?? children\n const trailingActions = appearance === 'attached' || appearance === 'banner'\n const liveRole = live ? (tone === 'error' || tone === 'warning' ? 'alert' : 'status') : undefined\n const hasCustomActions = customActions != null && customActions !== false\n const resolvedActions = action ? (\n <AlertActions action={action} secondaryAction={secondaryAction} trailing={trailingActions} />\n ) : null\n\n return (\n <div\n ref={ref}\n role={role ?? liveRole}\n data-slot=\"alert\"\n data-tone={tone}\n data-appearance={appearance}\n {...props}\n data-test={toDataTestId('alert', dataTestPrefix)}\n className={cn(alertVariants({ appearance, tone }), hasCustomActions && 'items-center', className)}\n >\n {resolvedIcon !== false ? (\n <span\n aria-hidden\n data-slot=\"alert-icon\"\n className={cn(\n 'relative shrink-0',\n iconSize === 16 ? 'flex h-5 w-4 items-center justify-center' : 'size-5',\n toneIcon.className,\n )}\n >\n <IconProvider\n icon={resolvedIcon}\n size={iconSize === 16 ? iconFrame['16'].glyph : iconFrame['24'].glyph}\n className={cn(iconSize === 24 && 'absolute -left-0.5 -top-0.5')}\n />\n </span>\n ) : null}\n\n <div data-slot=\"alert-content\" className=\"flex min-w-0 flex-1 flex-col gap-space-8\">\n {title != null || resolvedDescription != null ? (\n <div data-slot=\"alert-text\" className=\"flex w-full flex-col gap-space-2 wrap-break-word\">\n {title != null ? (\n <div data-slot=\"alert-title\" className=\"text-label-md\">\n {title}\n </div>\n ) : null}\n {resolvedDescription != null ? (\n <div data-slot=\"alert-description\" className={classNames('text-body-sm', !title && 'mt-space-2')}>\n {resolvedDescription}\n </div>\n ) : null}\n </div>\n ) : null}\n\n {!hasCustomActions && !trailingActions ? resolvedActions : null}\n </div>\n\n {hasCustomActions ? (\n <div data-slot=\"alert-actions\" className=\"flex shrink-0 gap-space-8\">\n {customActions}\n </div>\n ) : trailingActions ? (\n resolvedActions\n ) : null}\n\n {onDismiss ? (\n <IconButton\n data-slot=\"alert-dismiss\"\n variant=\"ghost\"\n size=\"md\"\n icon={faXmark}\n iconSize={iconFrame['16'].glyph}\n aria-label={dismissLabel}\n onClick={onDismiss}\n className=\"shrink-0\"\n />\n ) : null}\n </div>\n )\n}\n\nexport { alertVariants }\nexport default Alert\n"],"names":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,MAAM;AAAA,gBACN,MAAM,aAAa,KAAK,UAAU,IAAI,EAAE,QAAQ,UAAU,IAAI,EAAE;AAAA,gBAChE,WAAWA,WAAG,aAAa,MAAM,6BAA6B;AAAA,cAAA;AAAA,YAAA;AAAA,UAChE;AAAA,QAAA,IAEA;AAAA,QAEJ,qBAAC,OAAA,EAAI,aAAU,iBAAgB,WAAU,4CACtC,UAAA;AAAA,UAAA,SAAS,QAAQ,uBAAuB,OACvC,qBAAC,SAAI,aAAU,cAAa,WAAU,oDACnC,UAAA;AAAA,YAAA,SAAS,2BACP,OAAA,EAAI,aAAU,eAAc,WAAU,iBACpC,iBACH,IACE;AAAA,YACH,uBAAuB,OACtB,oBAAC,OAAA,EAAI,aAAU,qBAAoB,WAAW,WAAW,gBAAgB,CAAC,SAAS,YAAY,GAC5F,+BACH,IACE;AAAA,UAAA,EAAA,CACN,IACE;AAAA,UAEH,CAAC,oBAAoB,CAAC,kBAAkB,kBAAkB;AAAA,QAAA,GAC7D;AAAA,QAEC,mBACC,oBAAC,OAAA,EAAI,aAAU,iBAAgB,WAAU,6BACtC,UAAA,cAAA,CACH,IACE,kBACF,kBACE;AAAA,QAEH,YACC;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,aAAU;AAAA,YACV,SAAQ;AAAA,YACR,MAAK;AAAA,YACL,MAAM;AAAA,YACN,UAAU,UAAU,IAAI,EAAE;AAAA,YAC1B,cAAY;AAAA,YACZ,SAAS;AAAA,YACT,WAAU;AAAA,UAAA;AAAA,QAAA,IAEV;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
|
@@ -6,11 +6,11 @@ import * as React from "react";
|
|
|
6
6
|
import { f as formatErrorMessage, c as useMergedRefs, u as useIsoLayoutEffect, m as mergeProps, d as EMPTY_OBJECT, b as useRenderElement } from "../../useIsoLayoutEffect-e9VA-ICd.js";
|
|
7
7
|
import { u as useControlled } from "../../useControlled-BSyYkg5C.js";
|
|
8
8
|
import { v as visuallyHiddenInput, a as visuallyHidden } from "../../visuallyHidden-B6H2X3_Y.js";
|
|
9
|
-
import { f as fieldValidityMapping, u as useFormContext, a as useFieldRootContext, b as useLabelableContext, d as useLabelableId, c as useSetFieldFocused, e as useRegisterFieldControl, g as useValueChanged } from "../../useLabelableId-
|
|
10
|
-
import { a as useButton, d as dispatchClickWithModifiers } from "../../useButton-
|
|
11
|
-
import { u as useBaseUiId, c as createChangeEventDetails, n as none,
|
|
9
|
+
import { f as fieldValidityMapping, u as useFormContext, a as useFieldRootContext, b as useLabelableContext, d as useLabelableId, c as useSetFieldFocused, e as useRegisterFieldControl, g as useValueChanged } from "../../useLabelableId-CQqNbBk1.js";
|
|
10
|
+
import { a as useButton, d as dispatchClickWithModifiers } from "../../useButton-BalOc_EL.js";
|
|
11
|
+
import { u as useBaseUiId, c as createChangeEventDetails, n as none, b as getWindow } from "../../useBaseUiId-jtgiQp--.js";
|
|
12
12
|
import { u as useFieldItemContext } from "../../FieldItemContext-DRVgx-D1.js";
|
|
13
|
-
import { u as useAriaLabelledBy } from "../../useAriaLabelledBy-
|
|
13
|
+
import { u as useAriaLabelledBy } from "../../useAriaLabelledBy-C9SDiruE.js";
|
|
14
14
|
import { u as useTransitionStatus, a as useOpenChangeComplete, t as transitionStatusMapping } from "../../useTransitionStatus-C9gg_XJ-.js";
|
|
15
15
|
function getDefaultFormSubmitter(form) {
|
|
16
16
|
if (!form) {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { type IconProp } from '../../components/atoms/IconProvider';
|
|
4
|
+
declare const emptyStateVariants: (props?: ({
|
|
5
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
6
|
+
surface?: "grid" | "none" | "filled" | "outline" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
type EmptyStateSize = NonNullable<VariantProps<typeof emptyStateVariants>['size']>;
|
|
9
|
+
type EmptyStateSurface = NonNullable<VariantProps<typeof emptyStateVariants>['surface']>;
|
|
10
|
+
type EmptyStateMediaType = 'none' | 'icon' | 'illustration' | 'avatar' | 'avatar-group';
|
|
11
|
+
type EmptyStateTitleElement = 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
12
|
+
export type EmptyStateAction = {
|
|
13
|
+
label: React.ReactNode;
|
|
14
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
variant?: 'primary' | 'secondary';
|
|
18
|
+
};
|
|
19
|
+
export type EmptyStateLink = {
|
|
20
|
+
label: React.ReactNode;
|
|
21
|
+
href: string;
|
|
22
|
+
target?: React.HTMLAttributeAnchorTarget;
|
|
23
|
+
rel?: string;
|
|
24
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
25
|
+
};
|
|
26
|
+
export type EmptyStateProps = Omit<React.ComponentProps<'section'>, 'children' | 'title'> & {
|
|
27
|
+
size?: EmptyStateSize;
|
|
28
|
+
surface?: EmptyStateSurface;
|
|
29
|
+
media?: EmptyStateMediaType;
|
|
30
|
+
icon?: IconProp;
|
|
31
|
+
illustration?: React.ReactNode;
|
|
32
|
+
avatar?: React.ReactNode;
|
|
33
|
+
avatars?: React.ReactNode;
|
|
34
|
+
title: React.ReactNode;
|
|
35
|
+
titleAs?: EmptyStateTitleElement;
|
|
36
|
+
description?: React.ReactNode;
|
|
37
|
+
action?: EmptyStateAction;
|
|
38
|
+
secondaryAction?: Omit<EmptyStateAction, 'variant'>;
|
|
39
|
+
link?: EmptyStateLink;
|
|
40
|
+
live?: boolean;
|
|
41
|
+
};
|
|
42
|
+
declare function EmptyState({ ref, size, surface, media, icon, illustration, avatar, avatars, title, titleAs: Title, description, action, secondaryAction, link, live, className, 'aria-labelledby': ariaLabelledBy, ...props }: EmptyStateProps): React.JSX.Element;
|
|
43
|
+
export { emptyStateVariants };
|
|
44
|
+
export default EmptyState;
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { c as cva } from "../../index-DSVg79g-.js";
|
|
4
|
+
import { faBox } from "@fortawesome/free-solid-svg-icons";
|
|
5
|
+
import { Avatar, AvatarFallback, AvatarGroup } from "../../components/atoms/Avatar.es.js";
|
|
6
|
+
import { B as Button, C as ControlButton } from "../../Button-BdNaawKV.js";
|
|
7
|
+
import IconProvider from "../../components/atoms/IconProvider.es.js";
|
|
8
|
+
import { c as classNames } from "../../classNames-B1XpQHle.js";
|
|
9
|
+
const emptyStateVariants = cva(
|
|
10
|
+
"relative flex max-w-full flex-col items-center justify-center overflow-hidden text-center text-text-primary",
|
|
11
|
+
{
|
|
12
|
+
variants: {
|
|
13
|
+
size: {
|
|
14
|
+
sm: "w-64 gap-space-12 p-space-16",
|
|
15
|
+
md: "w-80 gap-space-16 p-space-24",
|
|
16
|
+
lg: "w-96 gap-space-16 p-space-32"
|
|
17
|
+
},
|
|
18
|
+
surface: {
|
|
19
|
+
none: "",
|
|
20
|
+
outline: "rounded-container border border-dashed border-border-default",
|
|
21
|
+
filled: "rounded-container bg-background-striped",
|
|
22
|
+
grid: ""
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: {
|
|
26
|
+
size: "md",
|
|
27
|
+
surface: "none"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
const TEXT_CLASS = {
|
|
32
|
+
sm: "gap-space-4",
|
|
33
|
+
md: "gap-space-4",
|
|
34
|
+
lg: "gap-space-8"
|
|
35
|
+
};
|
|
36
|
+
const TITLE_CLASS = {
|
|
37
|
+
sm: "text-label-md",
|
|
38
|
+
md: "text-heading-sm",
|
|
39
|
+
lg: "text-heading-md"
|
|
40
|
+
};
|
|
41
|
+
const DESCRIPTION_CLASS = {
|
|
42
|
+
sm: "text-body-sm",
|
|
43
|
+
md: "text-body-sm",
|
|
44
|
+
lg: "text-body-md"
|
|
45
|
+
};
|
|
46
|
+
const BUTTON_SIZE = {
|
|
47
|
+
sm: "small",
|
|
48
|
+
md: "large",
|
|
49
|
+
lg: "large"
|
|
50
|
+
};
|
|
51
|
+
const ICON_TILE_CLASS = {
|
|
52
|
+
sm: "size-8",
|
|
53
|
+
md: "size-10",
|
|
54
|
+
lg: "size-12"
|
|
55
|
+
};
|
|
56
|
+
const ICON_TILE_GLYPH = {
|
|
57
|
+
sm: 1,
|
|
58
|
+
md: 1.5,
|
|
59
|
+
lg: 1.5
|
|
60
|
+
};
|
|
61
|
+
const ILLUSTRATION_CLASS = {
|
|
62
|
+
sm: "size-16",
|
|
63
|
+
md: "size-20",
|
|
64
|
+
lg: "size-24"
|
|
65
|
+
};
|
|
66
|
+
const ILLUSTRATION_GLYPH = {
|
|
67
|
+
sm: 2,
|
|
68
|
+
md: 2.5,
|
|
69
|
+
lg: 3
|
|
70
|
+
};
|
|
71
|
+
const AVATAR_SIZE = {
|
|
72
|
+
sm: "default",
|
|
73
|
+
md: "lg",
|
|
74
|
+
lg: "xl"
|
|
75
|
+
};
|
|
76
|
+
const AVATAR_GROUP_SIZE = {
|
|
77
|
+
sm: "default",
|
|
78
|
+
md: "lg",
|
|
79
|
+
lg: "lg"
|
|
80
|
+
};
|
|
81
|
+
function IconTile({ icon, size }) {
|
|
82
|
+
return /* @__PURE__ */ jsx(
|
|
83
|
+
"span",
|
|
84
|
+
{
|
|
85
|
+
"data-slot": "empty-state-icon-tile",
|
|
86
|
+
className: classNames(
|
|
87
|
+
"flex shrink-0 items-center justify-center rounded-container border border-border-brand bg-background-brand text-background-brand-bold-selected",
|
|
88
|
+
ICON_TILE_CLASS[size]
|
|
89
|
+
),
|
|
90
|
+
children: /* @__PURE__ */ jsx(IconProvider, { icon, size: ICON_TILE_GLYPH[size] })
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
function IllustrationStandIn({ size }) {
|
|
95
|
+
return /* @__PURE__ */ jsx(
|
|
96
|
+
"span",
|
|
97
|
+
{
|
|
98
|
+
"data-slot": "empty-state-illustration-stand-in",
|
|
99
|
+
className: classNames(
|
|
100
|
+
"flex shrink-0 items-center justify-center rounded-container bg-background-sunken text-icon-primary",
|
|
101
|
+
ILLUSTRATION_CLASS[size]
|
|
102
|
+
),
|
|
103
|
+
children: /* @__PURE__ */ jsx(IconProvider, { icon: faBox, size: ILLUSTRATION_GLYPH[size] })
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
function EmptyStateMedia({
|
|
108
|
+
media,
|
|
109
|
+
size,
|
|
110
|
+
icon,
|
|
111
|
+
illustration,
|
|
112
|
+
avatar,
|
|
113
|
+
avatars
|
|
114
|
+
}) {
|
|
115
|
+
if (media === "none") return null;
|
|
116
|
+
return /* @__PURE__ */ jsxs("div", { "data-slot": "empty-state-media", "aria-hidden": "true", inert: true, className: "relative shrink-0", children: [
|
|
117
|
+
media === "icon" ? /* @__PURE__ */ jsx(IconTile, { icon: icon ?? faBox, size }) : null,
|
|
118
|
+
media === "illustration" ? illustration ?? /* @__PURE__ */ jsx(IllustrationStandIn, { size }) : null,
|
|
119
|
+
media === "avatar" ? /* @__PURE__ */ jsx(Avatar, { size: AVATAR_SIZE[size], children: avatar ?? /* @__PURE__ */ jsx(AvatarFallback, {}) }) : null,
|
|
120
|
+
media === "avatar-group" ? /* @__PURE__ */ jsx(AvatarGroup, { size: AVATAR_GROUP_SIZE[size], layout: "stack", children: avatars ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
121
|
+
/* @__PURE__ */ jsx(Avatar, { children: /* @__PURE__ */ jsx(AvatarFallback, { identity: "initials", children: "A" }) }),
|
|
122
|
+
/* @__PURE__ */ jsx(Avatar, { children: /* @__PURE__ */ jsx(AvatarFallback, { identity: "initials", children: "R" }) }),
|
|
123
|
+
/* @__PURE__ */ jsx(Avatar, { children: /* @__PURE__ */ jsx(AvatarFallback, { identity: "initials", children: "S" }) })
|
|
124
|
+
] }) }) : null
|
|
125
|
+
] });
|
|
126
|
+
}
|
|
127
|
+
function EmptyState({
|
|
128
|
+
ref,
|
|
129
|
+
size = "md",
|
|
130
|
+
surface = "none",
|
|
131
|
+
media = "none",
|
|
132
|
+
icon,
|
|
133
|
+
illustration,
|
|
134
|
+
avatar,
|
|
135
|
+
avatars,
|
|
136
|
+
title,
|
|
137
|
+
titleAs: Title = "h3",
|
|
138
|
+
description,
|
|
139
|
+
action,
|
|
140
|
+
secondaryAction,
|
|
141
|
+
link,
|
|
142
|
+
live = false,
|
|
143
|
+
className,
|
|
144
|
+
"aria-labelledby": ariaLabelledBy,
|
|
145
|
+
...props
|
|
146
|
+
}) {
|
|
147
|
+
const generatedTitleId = React.useId();
|
|
148
|
+
const titleId = ariaLabelledBy ? void 0 : generatedTitleId;
|
|
149
|
+
return /* @__PURE__ */ jsxs(
|
|
150
|
+
"section",
|
|
151
|
+
{
|
|
152
|
+
ref,
|
|
153
|
+
"data-slot": "empty-state",
|
|
154
|
+
"data-size": size,
|
|
155
|
+
"data-surface": surface,
|
|
156
|
+
"data-media": media,
|
|
157
|
+
"aria-labelledby": ariaLabelledBy ?? generatedTitleId,
|
|
158
|
+
"aria-live": live ? "polite" : void 0,
|
|
159
|
+
...props,
|
|
160
|
+
className: classNames(emptyStateVariants({ size, surface }), className),
|
|
161
|
+
children: [
|
|
162
|
+
surface === "grid" ? /* @__PURE__ */ jsx(
|
|
163
|
+
"span",
|
|
164
|
+
{
|
|
165
|
+
"aria-hidden": "true",
|
|
166
|
+
"data-slot": "empty-state-backdrop",
|
|
167
|
+
className: "pointer-events-none absolute inset-0 bg-[radial-gradient(circle,var(--border-subtle)_0.0625rem,transparent_0.0625rem)] [background-size:1rem_1rem]"
|
|
168
|
+
}
|
|
169
|
+
) : null,
|
|
170
|
+
/* @__PURE__ */ jsx(
|
|
171
|
+
EmptyStateMedia,
|
|
172
|
+
{
|
|
173
|
+
media,
|
|
174
|
+
size,
|
|
175
|
+
icon,
|
|
176
|
+
illustration,
|
|
177
|
+
avatar,
|
|
178
|
+
avatars
|
|
179
|
+
}
|
|
180
|
+
),
|
|
181
|
+
/* @__PURE__ */ jsxs(
|
|
182
|
+
"div",
|
|
183
|
+
{
|
|
184
|
+
"data-slot": "empty-state-text",
|
|
185
|
+
className: classNames("relative flex w-full flex-col items-center break-words", TEXT_CLASS[size]),
|
|
186
|
+
children: [
|
|
187
|
+
/* @__PURE__ */ jsx(Title, { id: titleId, "data-slot": "empty-state-title", className: classNames("w-full", TITLE_CLASS[size]), children: title }),
|
|
188
|
+
description != null ? /* @__PURE__ */ jsx(
|
|
189
|
+
"div",
|
|
190
|
+
{
|
|
191
|
+
"data-slot": "empty-state-description",
|
|
192
|
+
className: classNames("w-full text-text-secondary", DESCRIPTION_CLASS[size]),
|
|
193
|
+
children: description
|
|
194
|
+
}
|
|
195
|
+
) : null
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
),
|
|
199
|
+
action ? /* @__PURE__ */ jsxs("div", { "data-slot": "empty-state-actions", className: "relative flex items-center justify-center gap-space-8", children: [
|
|
200
|
+
/* @__PURE__ */ jsx(
|
|
201
|
+
Button,
|
|
202
|
+
{
|
|
203
|
+
variant: action.variant ?? "primary",
|
|
204
|
+
size: BUTTON_SIZE[size],
|
|
205
|
+
type: "button",
|
|
206
|
+
text: action.label,
|
|
207
|
+
onClick: action.onClick,
|
|
208
|
+
disabled: action.disabled,
|
|
209
|
+
loading: action.loading
|
|
210
|
+
}
|
|
211
|
+
),
|
|
212
|
+
secondaryAction ? /* @__PURE__ */ jsx(
|
|
213
|
+
Button,
|
|
214
|
+
{
|
|
215
|
+
variant: "secondary",
|
|
216
|
+
size: BUTTON_SIZE[size],
|
|
217
|
+
type: "button",
|
|
218
|
+
text: secondaryAction.label,
|
|
219
|
+
onClick: secondaryAction.onClick,
|
|
220
|
+
disabled: secondaryAction.disabled,
|
|
221
|
+
loading: secondaryAction.loading
|
|
222
|
+
}
|
|
223
|
+
) : null
|
|
224
|
+
] }) : null,
|
|
225
|
+
link ? /* @__PURE__ */ jsx(ControlButton, { "data-slot": "empty-state-link", asChild: true, variant: "link", size: "sm", className: "relative", children: /* @__PURE__ */ jsx("a", { href: link.href, target: link.target, rel: link.rel, onClick: link.onClick, children: link.label }) }) : null
|
|
226
|
+
]
|
|
227
|
+
}
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
export {
|
|
231
|
+
EmptyState as default,
|
|
232
|
+
emptyStateVariants
|
|
233
|
+
};
|
|
234
|
+
//# sourceMappingURL=EmptyState.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyState.es.js","sources":["../../../src/new-components/atoms/EmptyState.tsx"],"sourcesContent":["import * as React from 'react'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport { faBox } from '@fortawesome/free-solid-svg-icons'\n\nimport { Avatar, AvatarFallback, AvatarGroup, type AvatarSize } from '@/components/atoms/Avatar'\nimport Button, { type ButtonSize, ControlButton } from '@/components/atoms/Button'\nimport IconProvider, { type IconProp } from '@/components/atoms/IconProvider'\nimport { cn } from '@/lib/utils'\n\nconst emptyStateVariants = cva(\n 'relative flex max-w-full flex-col items-center justify-center overflow-hidden text-center text-text-primary',\n {\n variants: {\n size: {\n sm: 'w-64 gap-space-12 p-space-16',\n md: 'w-80 gap-space-16 p-space-24',\n lg: 'w-96 gap-space-16 p-space-32',\n },\n surface: {\n none: '',\n outline: 'rounded-container border border-dashed border-border-default',\n filled: 'rounded-container bg-background-striped',\n grid: '',\n },\n },\n defaultVariants: {\n size: 'md',\n surface: 'none',\n },\n },\n)\n\ntype EmptyStateSize = NonNullable<VariantProps<typeof emptyStateVariants>['size']>\ntype EmptyStateSurface = NonNullable<VariantProps<typeof emptyStateVariants>['surface']>\ntype EmptyStateMediaType = 'none' | 'icon' | 'illustration' | 'avatar' | 'avatar-group'\ntype EmptyStateTitleElement = 'h2' | 'h3' | 'h4' | 'h5' | 'h6'\n\nexport type EmptyStateAction = {\n label: React.ReactNode\n onClick?: React.MouseEventHandler<HTMLButtonElement>\n disabled?: boolean\n loading?: boolean\n variant?: 'primary' | 'secondary'\n}\n\nexport type EmptyStateLink = {\n label: React.ReactNode\n href: string\n target?: React.HTMLAttributeAnchorTarget\n rel?: string\n onClick?: React.MouseEventHandler<HTMLAnchorElement>\n}\n\nexport type EmptyStateProps = Omit<React.ComponentProps<'section'>, 'children' | 'title'> & {\n size?: EmptyStateSize\n surface?: EmptyStateSurface\n media?: EmptyStateMediaType\n icon?: IconProp\n illustration?: React.ReactNode\n avatar?: React.ReactNode\n avatars?: React.ReactNode\n title: React.ReactNode\n titleAs?: EmptyStateTitleElement\n description?: React.ReactNode\n action?: EmptyStateAction\n secondaryAction?: Omit<EmptyStateAction, 'variant'>\n link?: EmptyStateLink\n live?: boolean\n}\n\nconst TEXT_CLASS: Record<EmptyStateSize, string> = {\n sm: 'gap-space-4',\n md: 'gap-space-4',\n lg: 'gap-space-8',\n}\n\nconst TITLE_CLASS: Record<EmptyStateSize, string> = {\n sm: 'text-label-md',\n md: 'text-heading-sm',\n lg: 'text-heading-md',\n}\n\nconst DESCRIPTION_CLASS: Record<EmptyStateSize, string> = {\n sm: 'text-body-sm',\n md: 'text-body-sm',\n lg: 'text-body-md',\n}\n\nconst BUTTON_SIZE: Record<EmptyStateSize, ButtonSize> = {\n sm: 'small',\n md: 'large',\n lg: 'large',\n}\n\nconst ICON_TILE_CLASS: Record<EmptyStateSize, string> = {\n sm: 'size-8',\n md: 'size-10',\n lg: 'size-12',\n}\n\nconst ICON_TILE_GLYPH: Record<EmptyStateSize, number> = {\n sm: 1,\n md: 1.5,\n lg: 1.5,\n}\n\nconst ILLUSTRATION_CLASS: Record<EmptyStateSize, string> = {\n sm: 'size-16',\n md: 'size-20',\n lg: 'size-24',\n}\n\nconst ILLUSTRATION_GLYPH: Record<EmptyStateSize, number> = {\n sm: 2,\n md: 2.5,\n lg: 3,\n}\n\nconst AVATAR_SIZE: Record<EmptyStateSize, AvatarSize> = {\n sm: 'default',\n md: 'lg',\n lg: 'xl',\n}\n\nconst AVATAR_GROUP_SIZE = {\n sm: 'default',\n md: 'lg',\n lg: 'lg',\n} as const\n\nfunction IconTile({ icon, size }: { icon: IconProp; size: EmptyStateSize }) {\n return (\n <span\n data-slot=\"empty-state-icon-tile\"\n className={cn(\n 'flex shrink-0 items-center justify-center rounded-container border border-border-brand bg-background-brand text-background-brand-bold-selected',\n ICON_TILE_CLASS[size],\n )}\n >\n <IconProvider icon={icon} size={ICON_TILE_GLYPH[size]} />\n </span>\n )\n}\n\nfunction IllustrationStandIn({ size }: { size: EmptyStateSize }) {\n return (\n <span\n data-slot=\"empty-state-illustration-stand-in\"\n className={cn(\n 'flex shrink-0 items-center justify-center rounded-container bg-background-sunken text-icon-primary',\n ILLUSTRATION_CLASS[size],\n )}\n >\n <IconProvider icon={faBox} size={ILLUSTRATION_GLYPH[size]} />\n </span>\n )\n}\n\nfunction EmptyStateMedia({\n media,\n size,\n icon,\n illustration,\n avatar,\n avatars,\n}: Pick<EmptyStateProps, 'media' | 'icon' | 'illustration' | 'avatar' | 'avatars'> & {\n size: EmptyStateSize\n}) {\n if (media === 'none') return null\n\n return (\n <div data-slot=\"empty-state-media\" aria-hidden=\"true\" inert className=\"relative shrink-0\">\n {media === 'icon' ? <IconTile icon={icon ?? faBox} size={size} /> : null}\n {media === 'illustration' ? illustration ?? <IllustrationStandIn size={size} /> : null}\n {media === 'avatar' ? <Avatar size={AVATAR_SIZE[size]}>{avatar ?? <AvatarFallback />}</Avatar> : null}\n {media === 'avatar-group' ? (\n <AvatarGroup size={AVATAR_GROUP_SIZE[size]} layout=\"stack\">\n {avatars ?? (\n <>\n <Avatar>\n <AvatarFallback identity=\"initials\">A</AvatarFallback>\n </Avatar>\n <Avatar>\n <AvatarFallback identity=\"initials\">R</AvatarFallback>\n </Avatar>\n <Avatar>\n <AvatarFallback identity=\"initials\">S</AvatarFallback>\n </Avatar>\n </>\n )}\n </AvatarGroup>\n ) : null}\n </div>\n )\n}\n\nfunction EmptyState({\n ref,\n size = 'md',\n surface = 'none',\n media = 'none',\n icon,\n illustration,\n avatar,\n avatars,\n title,\n titleAs: Title = 'h3',\n description,\n action,\n secondaryAction,\n link,\n live = false,\n className,\n 'aria-labelledby': ariaLabelledBy,\n ...props\n}: EmptyStateProps) {\n const generatedTitleId = React.useId()\n const titleId = ariaLabelledBy ? undefined : generatedTitleId\n\n return (\n <section\n ref={ref}\n data-slot=\"empty-state\"\n data-size={size}\n data-surface={surface}\n data-media={media}\n aria-labelledby={ariaLabelledBy ?? generatedTitleId}\n aria-live={live ? 'polite' : undefined}\n {...props}\n className={cn(emptyStateVariants({ size, surface }), className)}\n >\n {surface === 'grid' ? (\n <span\n aria-hidden=\"true\"\n data-slot=\"empty-state-backdrop\"\n className=\"pointer-events-none absolute inset-0 bg-[radial-gradient(circle,var(--border-subtle)_0.0625rem,transparent_0.0625rem)] [background-size:1rem_1rem]\"\n />\n ) : null}\n\n <EmptyStateMedia\n media={media}\n size={size}\n icon={icon}\n illustration={illustration}\n avatar={avatar}\n avatars={avatars}\n />\n\n <div\n data-slot=\"empty-state-text\"\n className={cn('relative flex w-full flex-col items-center break-words', TEXT_CLASS[size])}\n >\n <Title id={titleId} data-slot=\"empty-state-title\" className={cn('w-full', TITLE_CLASS[size])}>\n {title}\n </Title>\n {description != null ? (\n <div\n data-slot=\"empty-state-description\"\n className={cn('w-full text-text-secondary', DESCRIPTION_CLASS[size])}\n >\n {description}\n </div>\n ) : null}\n </div>\n\n {action ? (\n <div data-slot=\"empty-state-actions\" className=\"relative flex items-center justify-center gap-space-8\">\n <Button\n variant={action.variant ?? 'primary'}\n size={BUTTON_SIZE[size]}\n type=\"button\"\n text={action.label}\n onClick={action.onClick}\n disabled={action.disabled}\n loading={action.loading}\n />\n {secondaryAction ? (\n <Button\n variant=\"secondary\"\n size={BUTTON_SIZE[size]}\n type=\"button\"\n text={secondaryAction.label}\n onClick={secondaryAction.onClick}\n disabled={secondaryAction.disabled}\n loading={secondaryAction.loading}\n />\n ) : null}\n </div>\n ) : null}\n\n {link ? (\n <ControlButton data-slot=\"empty-state-link\" asChild variant=\"link\" size=\"sm\" className=\"relative\">\n <a href={link.href} target={link.target} rel={link.rel} onClick={link.onClick}>\n {link.label}\n </a>\n </ControlButton>\n ) : null}\n </section>\n )\n}\n\nexport { emptyStateVariants }\nexport default EmptyState\n"],"names":["cn"],"mappings":";;;;;;;;AASA,MAAM,qBAAqB;AAAA,EACzB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MAAA;AAAA,MAEN,SAAS;AAAA,QACP,MAAM;AAAA,QACN,SAAS;AAAA,QACT,QAAQ;AAAA,QACR,MAAM;AAAA,MAAA;AAAA,IACR;AAAA,IAEF,iBAAiB;AAAA,MACf,MAAM;AAAA,MACN,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ;AAwCA,MAAM,aAA6C;AAAA,EACjD,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEA,MAAM,cAA8C;AAAA,EAClD,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEA,MAAM,oBAAoD;AAAA,EACxD,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEA,MAAM,cAAkD;AAAA,EACtD,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEA,MAAM,kBAAkD;AAAA,EACtD,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEA,MAAM,kBAAkD;AAAA,EACtD,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEA,MAAM,qBAAqD;AAAA,EACzD,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEA,MAAM,qB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KAAK,KAAK,SAAS,KAAK,SACnE,UAAA,KAAK,MAAA,CACR,GACF,IACE;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../index-DSVg79g-.js";
|
|
4
|
-
import "../../Button-
|
|
4
|
+
import "../../Button-BdNaawKV.js";
|
|
5
5
|
import "../../components/atoms/IconProvider.es.js";
|
|
6
6
|
import "../../classNames-B1XpQHle.js";
|
|
7
|
-
import { P, a, b, c, d, e, f, g, h, i, j } from "../../Popover-
|
|
7
|
+
import { P, a, b, c, d, e, f, g, h, i, j } from "../../Popover-B6z7exNd.js";
|
|
8
8
|
export {
|
|
9
9
|
P as Popover,
|
|
10
10
|
a as PopoverArrow,
|