tfy-web-components 0.0.33 → 0.0.35
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/README.md +49 -58
- package/dist/Button-C77b7jpW.js +284 -0
- package/dist/Button-C77b7jpW.js.map +1 -0
- package/dist/CompositeItem-BGwD51jI.js +33 -0
- package/dist/CompositeItem-BGwD51jI.js.map +1 -0
- package/dist/CompositeList-D4xmSZ5V.js +291 -0
- package/dist/CompositeList-D4xmSZ5V.js.map +1 -0
- package/dist/CompositeRoot-BxrPc7F6.js +351 -0
- package/dist/CompositeRoot-BxrPc7F6.js.map +1 -0
- package/dist/DirectionContext-Pb9yafF5.js +11 -0
- package/dist/DirectionContext-Pb9yafF5.js.map +1 -0
- package/dist/FieldItemContext-DRVgx-D1.js +13 -0
- package/dist/FieldItemContext-DRVgx-D1.js.map +1 -0
- package/dist/{Input-BvwIpntS.js → Input-Dhmo6L2n.js} +100 -78
- package/dist/Input-Dhmo6L2n.js.map +1 -0
- package/dist/Modal-C4MUy9GD.js +696 -0
- package/dist/Modal-C4MUy9GD.js.map +1 -0
- package/dist/{MonacoEditorCore-xfpJ6z-E.js → MonacoEditorCore-n-df5f7I.js} +2 -2
- package/dist/{MonacoEditorCore-xfpJ6z-E.js.map → MonacoEditorCore-n-df5f7I.js.map} +1 -1
- package/dist/Popover-eC_vX5By.js +1074 -0
- package/dist/Popover-eC_vX5By.js.map +1 -0
- package/dist/ToolbarRootContext-B_HxjkNI.js +11 -0
- package/dist/ToolbarRootContext-B_HxjkNI.js.map +1 -0
- package/dist/Tooltip-BuGLP-PU.js +4096 -0
- package/dist/Tooltip-BuGLP-PU.js.map +1 -0
- package/dist/classNames-B1XpQHle.js +44 -0
- package/dist/classNames-B1XpQHle.js.map +1 -0
- package/dist/components/atoms/Accordion.d.ts +19 -37
- package/dist/components/atoms/Accordion.es.js +847 -78
- package/dist/components/atoms/Accordion.es.js.map +1 -1
- package/dist/components/atoms/AudioPlayer.es.js +9 -9
- package/dist/components/atoms/AudioPlayer.es.js.map +1 -1
- package/dist/components/atoms/Avatar.d.ts +42 -9
- package/dist/components/atoms/Avatar.es.js +491 -36
- package/dist/components/atoms/Avatar.es.js.map +1 -1
- package/dist/components/atoms/Badge.d.ts +40 -35
- package/dist/components/atoms/Badge.es.js +163 -53
- package/dist/components/atoms/Badge.es.js.map +1 -1
- package/dist/components/atoms/Button.d.ts +37 -16
- package/dist/components/atoms/Button.es.js +16 -221
- package/dist/components/atoms/Button.es.js.map +1 -1
- package/dist/components/atoms/ButtonGroup.d.ts +53 -0
- package/dist/components/atoms/ButtonGroup.es.js +349 -0
- package/dist/components/atoms/ButtonGroup.es.js.map +1 -0
- package/dist/components/atoms/IconButton.d.ts +23 -9
- package/dist/components/atoms/IconButton.es.js +82 -16
- package/dist/components/atoms/IconButton.es.js.map +1 -1
- package/dist/components/atoms/IconProvider.d.ts +1 -1
- package/dist/components/atoms/IconProvider.es.js +48 -7
- package/dist/components/atoms/IconProvider.es.js.map +1 -1
- package/dist/components/atoms/Modal.d.ts +27 -3
- package/dist/components/atoms/Modal.es.js +15 -16
- package/dist/components/atoms/Modal.es.js.map +1 -1
- package/dist/components/atoms/Notification.d.ts +1 -1
- package/dist/components/atoms/Notification.es.js +26 -3
- package/dist/components/atoms/Notification.es.js.map +1 -1
- package/dist/components/atoms/OutlinedRadio.d.ts +6 -2
- package/dist/components/atoms/OutlinedRadio.es.js +12 -25
- package/dist/components/atoms/OutlinedRadio.es.js.map +1 -1
- package/dist/components/atoms/Progress.d.ts +48 -0
- package/dist/components/atoms/Progress.es.js +279 -0
- package/dist/components/atoms/Progress.es.js.map +1 -0
- package/dist/components/atoms/Skeleton.d.ts +9 -3
- package/dist/components/atoms/Skeleton.es.js +33 -3
- package/dist/components/atoms/Skeleton.es.js.map +1 -1
- package/dist/components/atoms/Spinner.d.ts +15 -4
- package/dist/components/atoms/Spinner.es.js +86 -22
- package/dist/components/atoms/Spinner.es.js.map +1 -1
- package/dist/components/atoms/Switch.d.ts +19 -7
- package/dist/components/atoms/Switch.es.js +288 -50
- package/dist/components/atoms/Switch.es.js.map +1 -1
- package/dist/components/atoms/TabButton.d.ts +17 -3
- package/dist/components/atoms/TabButton.es.js +647 -25
- package/dist/components/atoms/TabButton.es.js.map +1 -1
- package/dist/components/atoms/TabPanel.es.js +1 -1
- package/dist/components/atoms/Tag.d.ts +43 -0
- package/dist/components/atoms/Tag.es.js +219 -0
- package/dist/components/atoms/Tag.es.js.map +1 -0
- package/dist/components/atoms/Tooltip.d.ts +36 -14
- package/dist/components/atoms/Tooltip.es.js +7 -114
- package/dist/components/atoms/Tooltip.es.js.map +1 -1
- package/dist/components/molecules/Alert.d.ts +1 -1
- package/dist/components/molecules/Alert.es.js +13 -9
- package/dist/components/molecules/Alert.es.js.map +1 -1
- package/dist/components/molecules/CopyField.d.ts +2 -2
- package/dist/components/molecules/CopyField.es.js +3 -4
- package/dist/components/molecules/CopyField.es.js.map +1 -1
- package/dist/components/molecules/CustomDrawer.d.ts +5 -4
- package/dist/components/molecules/CustomDrawer.es.js +141 -82
- package/dist/components/molecules/CustomDrawer.es.js.map +1 -1
- package/dist/components/molecules/Dialog.d.ts +16 -8
- package/dist/components/molecules/Dialog.es.js +33 -31
- package/dist/components/molecules/Dialog.es.js.map +1 -1
- package/dist/components/molecules/ImagesPreview.es.js +15 -11
- package/dist/components/molecules/ImagesPreview.es.js.map +1 -1
- package/dist/components/molecules/Input.d.ts +1 -1
- package/dist/components/molecules/Input.es.js +3 -5
- package/dist/components/molecules/Input.es.js.map +1 -1
- package/dist/components/molecules/Markdown/ExpandableMarkdown.d.ts +8 -8
- package/dist/components/molecules/Markdown/components.d.ts +12 -11
- package/dist/components/molecules/Markdown.es.js +26 -49
- package/dist/components/molecules/Markdown.es.js.map +1 -1
- package/dist/components/molecules/Notify.d.ts +30 -1
- package/dist/components/molecules/Notify.es.js +91 -36
- package/dist/components/molecules/Notify.es.js.map +1 -1
- package/dist/components/molecules/SimpleCodeEditor.es.js +32 -19
- package/dist/components/molecules/SimpleCodeEditor.es.js.map +1 -1
- package/dist/components/molecules/ToggleButton.d.ts +3 -2
- package/dist/components/molecules/ToggleButton.es.js +155 -57
- package/dist/components/molecules/ToggleButton.es.js.map +1 -1
- package/dist/components/molecules/agent-chat/AgentStepsCard.d.ts +2 -2
- package/dist/components/molecules/agent-chat/UserMessage.es.js +2 -2
- package/dist/components/molecules/agent-chat/UserMessage.es.js.map +1 -1
- package/dist/components/molecules/agent-chat/UserMessageEdit.es.js +5 -5
- package/dist/components/molecules/agent-chat/UserMessageEdit.es.js.map +1 -1
- package/dist/components/molecules/agent-chat/index.d.ts +0 -6
- package/dist/components/molecules/agent-chat.es.js +78 -410
- package/dist/components/molecules/agent-chat.es.js.map +1 -1
- package/dist/components/molecules/monacoEditorCore/MonacoEditorCore.d.ts +0 -1
- package/dist/components/theme/colors.d.ts +17 -53
- package/dist/components/theme/colors.es.js +384 -180
- package/dist/components/theme/colors.es.js.map +1 -1
- package/dist/components/theme/theme.d.ts +14 -11
- package/dist/components/theme/theme.es.js +3 -64
- package/dist/components/theme/theme.es.js.map +1 -1
- package/dist/components/theme/useTheme.es.js +1 -4
- package/dist/components/theme/useTheme.es.js.map +1 -1
- package/dist/composite-CrCQWAKA.js +108 -0
- package/dist/composite-CrCQWAKA.js.map +1 -0
- package/dist/composite-DCpXNxz9.js +66 -0
- package/dist/composite-DCpXNxz9.js.map +1 -0
- package/dist/conversions-CbWPvHRE.js +14 -0
- package/dist/conversions-CbWPvHRE.js.map +1 -0
- package/dist/error-FX4R42W-.js +6 -0
- package/dist/error-FX4R42W-.js.map +1 -0
- package/dist/fonts.css +7 -0
- package/dist/hooks/useContainerDimensions.d.ts +1 -1
- package/dist/index-B806bfA-.js +257 -0
- package/dist/index-B806bfA-.js.map +1 -0
- package/dist/index-DSVg79g-.js +45 -0
- package/dist/index-DSVg79g-.js.map +1 -0
- package/dist/index.d.ts +19 -4
- package/dist/index.es.js +56 -9
- package/dist/index.es.js.map +1 -1
- package/dist/inertValue-IJM5NA30.js +11 -0
- package/dist/inertValue-IJM5NA30.js.map +1 -0
- package/dist/lib/utils.d.ts +1 -0
- package/dist/markdown.css +13 -14
- package/dist/new-components/atoms/Checkbox.d.ts +6 -0
- package/dist/new-components/atoms/Checkbox.es.js +423 -0
- package/dist/new-components/atoms/Checkbox.es.js.map +1 -0
- package/dist/new-components/atoms/Chip.d.ts +38 -0
- package/dist/new-components/atoms/Chip.es.js +269 -0
- package/dist/new-components/atoms/Chip.es.js.map +1 -0
- package/dist/new-components/atoms/Popover.d.ts +87 -0
- package/dist/new-components/atoms/Popover.es.js +21 -0
- package/dist/new-components/atoms/Popover.es.js.map +1 -0
- package/dist/new-components/atoms/Radio.d.ts +14 -0
- package/dist/new-components/atoms/Radio.es.js +536 -0
- package/dist/new-components/atoms/Radio.es.js.map +1 -0
- package/dist/new-components/atoms/SegmentedControl.d.ts +28 -0
- package/dist/new-components/atoms/SegmentedControl.es.js +326 -0
- package/dist/new-components/atoms/SegmentedControl.es.js.map +1 -0
- package/dist/new-components/atoms/Slider.d.ts +8 -0
- package/dist/new-components/atoms/Slider.es.js +1415 -0
- package/dist/new-components/atoms/Slider.es.js.map +1 -0
- package/dist/new-components/atoms/Toggletip.d.ts +43 -0
- package/dist/new-components/atoms/Toggletip.es.js +216 -0
- package/dist/new-components/atoms/Toggletip.es.js.map +1 -0
- package/dist/new-components/atoms/stories/ThemeComparison.d.ts +8 -0
- package/dist/shadowDom-Bq4g0Qeu.js +52 -0
- package/dist/shadowDom-Bq4g0Qeu.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/theme.css +9 -154
- package/dist/tokens.css +1136 -0
- package/dist/useAnimationFrame-DwhymJoW.js +108 -0
- package/dist/useAnimationFrame-DwhymJoW.js.map +1 -0
- package/dist/useAriaLabelledBy-B6n92QBS.js +49 -0
- package/dist/useAriaLabelledBy-B6n92QBS.js.map +1 -0
- package/dist/useBaseUiId-Ch7ujXpo.js +281 -0
- package/dist/useBaseUiId-Ch7ujXpo.js.map +1 -0
- package/dist/useButton-PUBhT4Vo.js +235 -0
- package/dist/useButton-PUBhT4Vo.js.map +1 -0
- package/dist/useControlled-BSyYkg5C.js +65 -0
- package/dist/useControlled-BSyYkg5C.js.map +1 -0
- package/dist/useIsoLayoutEffect-e9VA-ICd.js +499 -0
- package/dist/useIsoLayoutEffect-e9VA-ICd.js.map +1 -0
- package/dist/useLabelableId-DCLzrdD-.js +241 -0
- package/dist/useLabelableId-DCLzrdD-.js.map +1 -0
- package/dist/useOpenInteractionType-DGWLoAqp.js +1086 -0
- package/dist/useOpenInteractionType-DGWLoAqp.js.map +1 -0
- package/dist/usePopupHandleStore-BdS-xYID.js +2372 -0
- package/dist/usePopupHandleStore-BdS-xYID.js.map +1 -0
- package/dist/useTimeout-BXf1hDIL.js +46 -0
- package/dist/useTimeout-BXf1hDIL.js.map +1 -0
- package/dist/useTransitionStatus-C9gg_XJ-.js +202 -0
- package/dist/useTransitionStatus-C9gg_XJ-.js.map +1 -0
- package/dist/useValueAsRef-BfFRcMg6.js +28 -0
- package/dist/useValueAsRef-BfFRcMg6.js.map +1 -0
- package/dist/utils/classNames.d.ts +3 -2
- package/dist/visuallyHidden-B6H2X3_Y.js +26 -0
- package/dist/visuallyHidden-B6H2X3_Y.js.map +1 -0
- package/dist/vite-env.d.ts +18 -0
- package/package.json +30 -22
- package/dist/Input-BvwIpntS.js.map +0 -1
- package/dist/Notification-BT4CZ69U.js +0 -39
- package/dist/Notification-BT4CZ69U.js.map +0 -1
- package/dist/RootFontSizeContext-7vgn7Y_k.js +0 -22
- package/dist/RootFontSizeContext-7vgn7Y_k.js.map +0 -1
- package/dist/classNames-Dy-RXSjS.js +0 -9
- package/dist/classNames-Dy-RXSjS.js.map +0 -1
- package/dist/components/molecules/DropdownMenu.d.ts +0 -18
- package/dist/components/molecules/DropdownMenu.es.js +0 -104
- package/dist/components/molecules/DropdownMenu.es.js.map +0 -1
- package/dist/components/molecules/ThumbsFeedback.d.ts +0 -13
- package/dist/components/molecules/ThumbsFeedback.es.js +0 -98
- package/dist/components/molecules/ThumbsFeedback.es.js.map +0 -1
- package/dist/components/molecules/agent-chat/SandboxToolCall.d.ts +0 -15
- package/dist/components/molecules/agent-chat/ToolCallCard.d.ts +0 -26
- package/dist/components/molecules/agent-chat/ToolCallContentBlock.d.ts +0 -17
- package/dist/components/theme/lightColorPlugin.d.ts +0 -1
- package/dist/components/theme/lightColorPlugin.es.js +0 -92
- package/dist/components/theme/lightColorPlugin.es.js.map +0 -1
- package/dist/tailwindPreset.d.ts +0 -144
- package/dist/tailwindPreset.es.js +0 -100
- package/dist/tailwindPreset.es.js.map +0 -1
|
@@ -1,36 +1,41 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type
|
|
3
|
-
type
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
export type BadgeStatus = 'success' | 'error' | 'warning' | 'info' | 'pending' | 'neutral' | 'loading';
|
|
4
|
+
export type BadgeStyle = 'default' | 'stroke' | 'filled' | 'outline' | 'special';
|
|
5
|
+
export type BadgeSize = 'sm' | 'md' | 'lg';
|
|
6
|
+
export type BadgeIconPosition = 'none' | 'left' | 'right' | 'only';
|
|
7
|
+
declare const badgeVariants: (props?: ({
|
|
8
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
9
|
+
badgeStyle?: "stroke" | "default" | "filled" | "outline" | "special" | null | undefined;
|
|
10
|
+
roundness?: "default" | "pill" | null | undefined;
|
|
11
|
+
icon?: "left" | "right" | "none" | "only" | null | undefined;
|
|
12
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
|
+
declare const legacyStatusMap: {
|
|
14
|
+
readonly default: "info";
|
|
15
|
+
readonly primary: "info";
|
|
16
|
+
readonly danger: "error";
|
|
17
|
+
readonly success: "success";
|
|
18
|
+
readonly warning: "warning";
|
|
19
|
+
readonly waiting: "pending";
|
|
20
|
+
readonly gray: "neutral";
|
|
21
|
+
readonly 'light-gray': "neutral";
|
|
22
|
+
readonly white: "neutral";
|
|
23
|
+
readonly none: "neutral";
|
|
24
|
+
readonly 'tfy-managed': "info";
|
|
25
|
+
readonly remote: "info";
|
|
26
|
+
readonly openapi: "info";
|
|
27
|
+
readonly virtual: "warning";
|
|
28
|
+
readonly stdio: "warning";
|
|
29
|
+
readonly ai: "info";
|
|
30
|
+
};
|
|
31
|
+
export type BadgeProps = Omit<React.ComponentProps<'span'>, 'children' | 'style'> & VariantProps<typeof badgeVariants> & {
|
|
32
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
33
|
+
label?: React.ReactNode;
|
|
34
|
+
iconSwap?: React.ReactNode;
|
|
35
|
+
status?: BadgeStatus;
|
|
36
|
+
style?: BadgeStyle;
|
|
37
|
+
text?: React.ReactNode;
|
|
38
|
+
type?: keyof typeof legacyStatusMap;
|
|
39
|
+
};
|
|
40
|
+
declare function Badge({ ref, className, label, text, iconSwap, status, type, style, size, roundness, icon, ...props }: BadgeProps): React.JSX.Element;
|
|
36
41
|
export default Badge;
|
|
@@ -1,57 +1,167 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"text-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
2
|
+
import { c as cva } from "../../index-DSVg79g-.js";
|
|
3
|
+
import Spinner from "./Spinner.es.js";
|
|
4
|
+
import { c as classNames } from "../../classNames-B1XpQHle.js";
|
|
5
|
+
const badgeVariants = cva(
|
|
6
|
+
"inline-flex w-fit shrink-0 items-center justify-center gap-space-4 whitespace-nowrap font-medium",
|
|
7
|
+
{
|
|
8
|
+
variants: {
|
|
9
|
+
size: {
|
|
10
|
+
sm: "h-[var(--size-18)] px-space-4 text-label-sm",
|
|
11
|
+
md: "h-[var(--size-20)] px-space-4 text-label-sm",
|
|
12
|
+
lg: "h-[var(--size-24)] px-space-4 text-label-md"
|
|
13
|
+
},
|
|
14
|
+
badgeStyle: {
|
|
15
|
+
default: "border border-transparent",
|
|
16
|
+
stroke: "border",
|
|
17
|
+
filled: "border border-transparent",
|
|
18
|
+
outline: "border bg-transparent px-space-8",
|
|
19
|
+
special: "overflow-hidden border py-0 pl-0 pr-space-6"
|
|
20
|
+
},
|
|
21
|
+
roundness: {
|
|
22
|
+
default: "rounded-sm",
|
|
23
|
+
pill: "rounded-pill"
|
|
24
|
+
},
|
|
25
|
+
icon: {
|
|
26
|
+
none: "",
|
|
27
|
+
left: "",
|
|
28
|
+
right: "",
|
|
29
|
+
only: "aspect-square px-0"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
defaultVariants: {
|
|
33
|
+
size: "sm",
|
|
34
|
+
badgeStyle: "default",
|
|
35
|
+
roundness: "default",
|
|
36
|
+
icon: "none"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
const statusClasses = {
|
|
41
|
+
success: {
|
|
42
|
+
default: "bg-background-surface-success text-text-success",
|
|
43
|
+
stroke: "border-border-success bg-background-surface-success text-text-success",
|
|
44
|
+
filled: "bg-background-fill-success text-text-inverse",
|
|
45
|
+
outline: "border-border-success-bold text-text-success"
|
|
46
|
+
},
|
|
47
|
+
error: {
|
|
48
|
+
default: "bg-background-surface-error text-text-error",
|
|
49
|
+
stroke: "border-border-error bg-background-surface-error text-text-error",
|
|
50
|
+
filled: "bg-background-fill-error text-text-inverse",
|
|
51
|
+
outline: "border-border-error-bold text-text-error"
|
|
52
|
+
},
|
|
53
|
+
warning: {
|
|
54
|
+
default: "bg-background-surface-warning text-text-warning",
|
|
55
|
+
stroke: "border-border-warning bg-background-surface-warning text-text-warning",
|
|
56
|
+
filled: "bg-background-fill-warning text-text-inverse",
|
|
57
|
+
outline: "border-border-warning-bold text-text-warning"
|
|
58
|
+
},
|
|
59
|
+
info: {
|
|
60
|
+
default: "bg-background-surface-info text-text-info",
|
|
61
|
+
stroke: "border-border-info bg-background-surface-info text-text-info",
|
|
62
|
+
filled: "bg-background-fill-info text-text-inverse",
|
|
63
|
+
outline: "border-border-info-bold text-text-info"
|
|
64
|
+
},
|
|
65
|
+
pending: {
|
|
66
|
+
default: "bg-background-surface-pending text-text-pending",
|
|
67
|
+
stroke: "border-border-pending bg-background-surface-pending text-text-pending",
|
|
68
|
+
filled: "bg-background-fill-pending text-text-inverse",
|
|
69
|
+
outline: "border-border-pending-bold text-text-pending"
|
|
70
|
+
},
|
|
71
|
+
neutral: {
|
|
72
|
+
default: "bg-background-surface-neutral text-text-neutral",
|
|
73
|
+
stroke: "border-border-neutral bg-background-surface-neutral text-text-neutral",
|
|
74
|
+
filled: "bg-background-fill-neutral text-text-inverse",
|
|
75
|
+
outline: "border-border-neutral-bold text-text-neutral"
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
const specialClasses = {
|
|
79
|
+
success: "border-border-success-bold bg-background-surface-success text-text-success",
|
|
80
|
+
error: "border-border-error-bold bg-background-surface-error text-text-error",
|
|
81
|
+
warning: "border-border-warning-bold bg-background-surface-warning text-text-warning",
|
|
82
|
+
info: "border-border-info-bold bg-background-surface-info text-text-info",
|
|
83
|
+
pending: "border-border-pending-bold bg-background-surface-pending text-text-pending",
|
|
84
|
+
neutral: "border-border-neutral-bold bg-background-surface-neutral text-text-neutral"
|
|
85
|
+
};
|
|
86
|
+
const specialIconClasses = {
|
|
87
|
+
success: "bg-background-fill-success",
|
|
88
|
+
error: "bg-background-fill-error",
|
|
89
|
+
warning: "bg-background-fill-warning",
|
|
90
|
+
info: "bg-background-fill-info",
|
|
91
|
+
pending: "bg-background-fill-pending",
|
|
92
|
+
neutral: "bg-background-fill-neutral"
|
|
93
|
+
};
|
|
94
|
+
const legacyStatusMap = {
|
|
95
|
+
default: "info",
|
|
96
|
+
primary: "info",
|
|
97
|
+
danger: "error",
|
|
98
|
+
success: "success",
|
|
99
|
+
warning: "warning",
|
|
100
|
+
waiting: "pending",
|
|
101
|
+
gray: "neutral",
|
|
102
|
+
"light-gray": "neutral",
|
|
103
|
+
white: "neutral",
|
|
104
|
+
none: "neutral",
|
|
105
|
+
"tfy-managed": "info",
|
|
106
|
+
remote: "info",
|
|
107
|
+
openapi: "info",
|
|
108
|
+
virtual: "warning",
|
|
109
|
+
stdio: "warning",
|
|
110
|
+
ai: "info"
|
|
111
|
+
};
|
|
112
|
+
function Badge({
|
|
113
|
+
ref,
|
|
114
|
+
className,
|
|
115
|
+
label,
|
|
116
|
+
text,
|
|
117
|
+
iconSwap,
|
|
118
|
+
status,
|
|
119
|
+
type,
|
|
120
|
+
style = "default",
|
|
121
|
+
size = "md",
|
|
122
|
+
roundness = "default",
|
|
123
|
+
icon = "none",
|
|
124
|
+
...props
|
|
125
|
+
}) {
|
|
126
|
+
const resolvedStatus = status ?? (type ? legacyStatusMap[type] : "neutral");
|
|
127
|
+
const resolvedLabel = label ?? text;
|
|
128
|
+
const normalizedStyle = resolvedStatus === "loading" && (style === "filled" || style === "special") ? "default" : style;
|
|
129
|
+
const colorStatus = resolvedStatus === "loading" ? "neutral" : resolvedStatus;
|
|
130
|
+
const iconContent = resolvedStatus === "loading" ? /* @__PURE__ */ jsx(Spinner, { size: "sm", tone: "neutral", "aria-label": "Loading" }) : iconSwap;
|
|
131
|
+
const resolvedIcon = resolvedStatus === "loading" && icon === "none" ? "left" : icon;
|
|
132
|
+
return /* @__PURE__ */ jsxs(
|
|
133
|
+
"span",
|
|
134
|
+
{
|
|
135
|
+
ref,
|
|
136
|
+
"data-slot": "badge",
|
|
137
|
+
"data-status": resolvedStatus,
|
|
138
|
+
"data-style": normalizedStyle,
|
|
139
|
+
className: classNames(
|
|
140
|
+
badgeVariants({ size, badgeStyle: normalizedStyle, roundness, icon: resolvedIcon }),
|
|
141
|
+
normalizedStyle === "special" ? specialClasses[colorStatus] : statusClasses[colorStatus][normalizedStyle],
|
|
142
|
+
className
|
|
143
|
+
),
|
|
144
|
+
...props,
|
|
145
|
+
children: [
|
|
146
|
+
(resolvedIcon === "left" || resolvedIcon === "only") && iconContent ? /* @__PURE__ */ jsx(
|
|
147
|
+
"span",
|
|
148
|
+
{
|
|
149
|
+
"data-slot": "badge-icon",
|
|
150
|
+
"aria-hidden": true,
|
|
151
|
+
className: classNames(
|
|
152
|
+
"inline-flex shrink-0 items-center justify-center",
|
|
153
|
+
normalizedStyle === "special" && "h-full aspect-square text-icon-inverse",
|
|
154
|
+
normalizedStyle === "special" && specialIconClasses[colorStatus]
|
|
155
|
+
),
|
|
156
|
+
children: iconContent
|
|
157
|
+
}
|
|
158
|
+
) : null,
|
|
159
|
+
resolvedIcon !== "only" && resolvedLabel ? /* @__PURE__ */ jsx("span", { "data-slot": "badge-label", children: resolvedLabel }) : null,
|
|
160
|
+
resolvedIcon === "right" && iconContent ? /* @__PURE__ */ jsx("span", { "data-slot": "badge-icon", "aria-hidden": true, className: "inline-flex shrink-0 items-center justify-center", children: iconContent }) : null
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
);
|
|
164
|
+
}
|
|
55
165
|
export {
|
|
56
166
|
Badge as default
|
|
57
167
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.es.js","sources":["../../../src/components/atoms/Badge.tsx"],"sourcesContent":["import React from 'react'\
|
|
1
|
+
{"version":3,"file":"Badge.es.js","sources":["../../../src/components/atoms/Badge.tsx"],"sourcesContent":["import * as React from 'react'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { cn } from '@/lib/utils'\n\nimport Spinner from './Spinner'\n\nexport type BadgeStatus = 'success' | 'error' | 'warning' | 'info' | 'pending' | 'neutral' | 'loading'\nexport type BadgeStyle = 'default' | 'stroke' | 'filled' | 'outline' | 'special'\nexport type BadgeSize = 'sm' | 'md' | 'lg'\nexport type BadgeIconPosition = 'none' | 'left' | 'right' | 'only'\n\nconst badgeVariants = cva(\n 'inline-flex w-fit shrink-0 items-center justify-center gap-space-4 whitespace-nowrap font-medium',\n {\n variants: {\n size: {\n sm: 'h-[var(--size-18)] px-space-4 text-label-sm',\n md: 'h-[var(--size-20)] px-space-4 text-label-sm',\n lg: 'h-[var(--size-24)] px-space-4 text-label-md',\n },\n badgeStyle: {\n default: 'border border-transparent',\n stroke: 'border',\n filled: 'border border-transparent',\n outline: 'border bg-transparent px-space-8',\n special: 'overflow-hidden border py-0 pl-0 pr-space-6',\n },\n roundness: {\n default: 'rounded-sm',\n pill: 'rounded-pill',\n },\n icon: {\n none: '',\n left: '',\n right: '',\n only: 'aspect-square px-0',\n },\n },\n defaultVariants: {\n size: 'sm',\n badgeStyle: 'default',\n roundness: 'default',\n icon: 'none',\n },\n },\n)\n\nconst statusClasses: Record<Exclude<BadgeStatus, 'loading'>, Record<Exclude<BadgeStyle, 'special'>, string>> = {\n success: {\n default: 'bg-background-surface-success text-text-success',\n stroke: 'border-border-success bg-background-surface-success text-text-success',\n filled: 'bg-background-fill-success text-text-inverse',\n outline: 'border-border-success-bold text-text-success',\n },\n error: {\n default: 'bg-background-surface-error text-text-error',\n stroke: 'border-border-error bg-background-surface-error text-text-error',\n filled: 'bg-background-fill-error text-text-inverse',\n outline: 'border-border-error-bold text-text-error',\n },\n warning: {\n default: 'bg-background-surface-warning text-text-warning',\n stroke: 'border-border-warning bg-background-surface-warning text-text-warning',\n filled: 'bg-background-fill-warning text-text-inverse',\n outline: 'border-border-warning-bold text-text-warning',\n },\n info: {\n default: 'bg-background-surface-info text-text-info',\n stroke: 'border-border-info bg-background-surface-info text-text-info',\n filled: 'bg-background-fill-info text-text-inverse',\n outline: 'border-border-info-bold text-text-info',\n },\n pending: {\n default: 'bg-background-surface-pending text-text-pending',\n stroke: 'border-border-pending bg-background-surface-pending text-text-pending',\n filled: 'bg-background-fill-pending text-text-inverse',\n outline: 'border-border-pending-bold text-text-pending',\n },\n neutral: {\n default: 'bg-background-surface-neutral text-text-neutral',\n stroke: 'border-border-neutral bg-background-surface-neutral text-text-neutral',\n filled: 'bg-background-fill-neutral text-text-inverse',\n outline: 'border-border-neutral-bold text-text-neutral',\n },\n}\n\nconst specialClasses: Record<Exclude<BadgeStatus, 'loading'>, string> = {\n success: 'border-border-success-bold bg-background-surface-success text-text-success',\n error: 'border-border-error-bold bg-background-surface-error text-text-error',\n warning: 'border-border-warning-bold bg-background-surface-warning text-text-warning',\n info: 'border-border-info-bold bg-background-surface-info text-text-info',\n pending: 'border-border-pending-bold bg-background-surface-pending text-text-pending',\n neutral: 'border-border-neutral-bold bg-background-surface-neutral text-text-neutral',\n}\n\nconst specialIconClasses: Record<Exclude<BadgeStatus, 'loading'>, string> = {\n success: 'bg-background-fill-success',\n error: 'bg-background-fill-error',\n warning: 'bg-background-fill-warning',\n info: 'bg-background-fill-info',\n pending: 'bg-background-fill-pending',\n neutral: 'bg-background-fill-neutral',\n}\n\nconst legacyStatusMap = {\n default: 'info',\n primary: 'info',\n danger: 'error',\n success: 'success',\n warning: 'warning',\n waiting: 'pending',\n gray: 'neutral',\n 'light-gray': 'neutral',\n white: 'neutral',\n none: 'neutral',\n 'tfy-managed': 'info',\n remote: 'info',\n openapi: 'info',\n virtual: 'warning',\n stdio: 'warning',\n ai: 'info',\n} as const satisfies Record<string, Exclude<BadgeStatus, 'loading'>>\n\nexport type BadgeProps = Omit<React.ComponentProps<'span'>, 'children' | 'style'> &\n VariantProps<typeof badgeVariants> & {\n ref?: React.Ref<HTMLSpanElement>\n label?: React.ReactNode\n iconSwap?: React.ReactNode\n status?: BadgeStatus\n style?: BadgeStyle\n text?: React.ReactNode\n type?: keyof typeof legacyStatusMap\n }\n\nfunction Badge({\n ref,\n className,\n label,\n text,\n iconSwap,\n status,\n type,\n style = 'default',\n size = 'md',\n roundness = 'default',\n icon = 'none',\n ...props\n}: BadgeProps) {\n const resolvedStatus = status ?? (type ? legacyStatusMap[type] : 'neutral')\n const resolvedLabel = label ?? text\n const normalizedStyle =\n resolvedStatus === 'loading' && (style === 'filled' || style === 'special') ? 'default' : style\n const colorStatus = resolvedStatus === 'loading' ? 'neutral' : resolvedStatus\n const iconContent =\n resolvedStatus === 'loading' ? <Spinner size=\"sm\" tone=\"neutral\" aria-label=\"Loading\" /> : iconSwap\n const resolvedIcon = resolvedStatus === 'loading' && icon === 'none' ? 'left' : icon\n\n return (\n <span\n ref={ref}\n data-slot=\"badge\"\n data-status={resolvedStatus}\n data-style={normalizedStyle}\n className={cn(\n badgeVariants({ size, badgeStyle: normalizedStyle, roundness, icon: resolvedIcon }),\n normalizedStyle === 'special' ? specialClasses[colorStatus] : statusClasses[colorStatus][normalizedStyle],\n className,\n )}\n {...props}\n >\n {(resolvedIcon === 'left' || resolvedIcon === 'only') && iconContent ? (\n <span\n data-slot=\"badge-icon\"\n aria-hidden\n className={cn(\n 'inline-flex shrink-0 items-center justify-center',\n normalizedStyle === 'special' && 'h-full aspect-square text-icon-inverse',\n normalizedStyle === 'special' && specialIconClasses[colorStatus],\n )}\n >\n {iconContent}\n </span>\n ) : null}\n {resolvedIcon !== 'only' && resolvedLabel ? <span data-slot=\"badge-label\">{resolvedLabel}</span> : null}\n {resolvedIcon === 'right' && iconContent ? (\n <span data-slot=\"badge-icon\" aria-hidden className=\"inline-flex shrink-0 items-center justify-center\">\n {iconContent}\n </span>\n ) : null}\n </span>\n )\n}\n\nexport default Badge\n"],"names":["cn"],"mappings":"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"}
|
|
@@ -1,17 +1,35 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
/**
|
|
4
|
+
* Figma Button (294:8575): Variant / Size / State / Icon
|
|
5
|
+
*/
|
|
6
|
+
declare const buttonVariants: (props?: ({
|
|
7
|
+
variant?: "link" | "ghost" | "default" | "primary" | "secondary" | "destructive" | null | undefined;
|
|
8
|
+
size?: "icon" | "default" | "sm" | "md" | "icon-md" | "icon-sm" | null | undefined;
|
|
9
|
+
roundness?: "rounded" | "default" | null | undefined;
|
|
10
|
+
type?: "text" | "icon" | "toggle" | "load-more" | null | undefined;
|
|
11
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
12
|
+
type ControlButtonProps = Omit<React.ComponentProps<'button'>, 'type'> & VariantProps<typeof buttonVariants> & {
|
|
13
|
+
asChild?: boolean;
|
|
14
|
+
selected?: boolean;
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
htmlType?: React.ComponentProps<'button'>['type'];
|
|
17
|
+
type?: NonNullable<VariantProps<typeof buttonVariants>['type']>;
|
|
18
|
+
};
|
|
19
|
+
declare function ControlButton({ className, variant, size, roundness, type: controlType, htmlType, asChild, selected, loading, disabled, onClick, children, ...props }: ControlButtonProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
20
|
+
import { type IconProp } from './IconProvider';
|
|
3
21
|
import { TooltipProps } from './Tooltip';
|
|
4
22
|
export type ButtonSize = 'large' | 'small';
|
|
5
23
|
export interface ButtonProps {
|
|
6
24
|
id?: string;
|
|
7
|
-
icon?:
|
|
25
|
+
icon?: IconProp;
|
|
8
26
|
text?: React.ReactNode | JSX.Element | string;
|
|
9
27
|
block?: boolean;
|
|
10
28
|
disabled?: boolean;
|
|
11
29
|
loading?: boolean;
|
|
12
30
|
dataTestId?: string;
|
|
13
31
|
iconToRight?: boolean;
|
|
14
|
-
variant?: 'primary' | 'secondary' | 'ghost' | 'tertiary' | 'destructive';
|
|
32
|
+
variant?: 'primary' | 'secondary' | 'ghost' | 'tertiary' | 'destructive' | 'link';
|
|
15
33
|
size?: ButtonSize;
|
|
16
34
|
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
17
35
|
iconClasses?: string;
|
|
@@ -24,18 +42,21 @@ export interface ButtonProps {
|
|
|
24
42
|
className?: string;
|
|
25
43
|
autoFocus?: boolean;
|
|
26
44
|
}
|
|
27
|
-
type ButtonComponent = React.ForwardRefExoticComponent<ButtonProps
|
|
28
|
-
Ghost:
|
|
29
|
-
Primary:
|
|
30
|
-
Secondary:
|
|
31
|
-
Tertiary:
|
|
32
|
-
Destructive:
|
|
45
|
+
type ButtonComponent = React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>> & {
|
|
46
|
+
Ghost: typeof ButtonBase;
|
|
47
|
+
Primary: typeof ButtonBase;
|
|
48
|
+
Secondary: typeof ButtonBase;
|
|
49
|
+
Tertiary: typeof ButtonBase;
|
|
50
|
+
Destructive: typeof ButtonBase;
|
|
33
51
|
};
|
|
34
|
-
declare const
|
|
35
|
-
declare const PrimaryButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
36
|
-
declare const SecondaryButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
37
|
-
declare const TertiaryButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
38
|
-
declare const DestructiveButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
52
|
+
declare const ButtonBase: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
39
53
|
declare const Button: ButtonComponent;
|
|
40
|
-
export
|
|
54
|
+
export declare const GhostButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
55
|
+
export declare const PrimaryButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
56
|
+
export declare const SecondaryButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
57
|
+
export declare const TertiaryButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
58
|
+
export declare const DestructiveButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
59
|
+
export { Button };
|
|
41
60
|
export default Button;
|
|
61
|
+
export { ControlButton };
|
|
62
|
+
export type { ControlButtonProps };
|