@tydavidson/design-system 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +153 -0
- package/dist/components/SidebarNav.d.ts +13 -0
- package/dist/components/SidebarNav.d.ts.map +1 -0
- package/dist/components/SidebarNav.js +63 -0
- package/dist/components/SidebarNav.js.map +1 -0
- package/dist/components/SidebarNavClient.d.ts +2 -0
- package/dist/components/SidebarNavClient.d.ts.map +1 -0
- package/dist/components/SidebarNavClient.js +35 -0
- package/dist/components/SidebarNavClient.js.map +1 -0
- package/dist/components/email/button.d.ts +11 -0
- package/dist/components/email/button.d.ts.map +1 -0
- package/dist/components/email/button.js +95 -0
- package/dist/components/email/button.js.map +1 -0
- package/dist/components/email/index.d.ts +7 -0
- package/dist/components/email/index.d.ts.map +1 -0
- package/dist/components/email/index.js +5 -0
- package/dist/components/email/index.js.map +1 -0
- package/dist/components/email/layout.d.ts +23 -0
- package/dist/components/email/layout.d.ts.map +1 -0
- package/dist/components/email/layout.js +99 -0
- package/dist/components/email/layout.js.map +1 -0
- package/dist/components/email/typography.d.ts +11 -0
- package/dist/components/email/typography.d.ts.map +1 -0
- package/dist/components/email/typography.js +60 -0
- package/dist/components/email/typography.js.map +1 -0
- package/dist/components/hooks/use-mobile.d.ts +2 -0
- package/dist/components/hooks/use-mobile.d.ts.map +1 -0
- package/dist/components/hooks/use-mobile.js +7 -0
- package/dist/components/hooks/use-mobile.js.map +1 -0
- package/dist/components/typography/heading/heading.d.ts +48 -0
- package/dist/components/typography/heading/heading.d.ts.map +1 -0
- package/dist/components/typography/heading/heading.js +80 -0
- package/dist/components/typography/heading/heading.js.map +1 -0
- package/dist/components/typography/heading/heading.stories.d.ts +12 -0
- package/dist/components/typography/heading/heading.stories.d.ts.map +1 -0
- package/dist/components/typography/heading/heading.stories.js +74 -0
- package/dist/components/typography/heading/heading.stories.js.map +1 -0
- package/dist/components/typography/heading/index.d.ts +2 -0
- package/dist/components/typography/heading/index.d.ts.map +1 -0
- package/dist/components/typography/heading/index.js +2 -0
- package/dist/components/typography/heading/index.js.map +1 -0
- package/dist/components/typography/index.d.ts +5 -0
- package/dist/components/typography/index.d.ts.map +1 -0
- package/dist/components/typography/index.js +8 -0
- package/dist/components/typography/index.js.map +1 -0
- package/dist/components/typography/showcase.d.ts +7 -0
- package/dist/components/typography/showcase.d.ts.map +1 -0
- package/dist/components/typography/showcase.js +11 -0
- package/dist/components/typography/showcase.js.map +1 -0
- package/dist/components/typography/text/index.d.ts +2 -0
- package/dist/components/typography/text/index.d.ts.map +1 -0
- package/dist/components/typography/text/index.js +2 -0
- package/dist/components/typography/text/index.js.map +1 -0
- package/dist/components/typography/text/text.d.ts +43 -0
- package/dist/components/typography/text/text.d.ts.map +1 -0
- package/dist/components/typography/text/text.js +61 -0
- package/dist/components/typography/text/text.js.map +1 -0
- package/dist/components/typography/text/text.stories.d.ts +13 -0
- package/dist/components/typography/text/text.stories.d.ts.map +1 -0
- package/dist/components/typography/text/text.stories.js +72 -0
- package/dist/components/typography/text/text.stories.js.map +1 -0
- package/dist/components/ui/accordion.d.ts +8 -0
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/accordion.js +45 -0
- package/dist/components/ui/accordion.js.map +1 -0
- package/dist/components/ui/alert.d.ts +9 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/alert.js +57 -0
- package/dist/components/ui/alert.js.map +1 -0
- package/dist/components/ui/aspect-ratio.d.ts +5 -0
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/components/ui/aspect-ratio.js +4 -0
- package/dist/components/ui/aspect-ratio.js.map +1 -0
- package/dist/components/ui/avatar.d.ts +7 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar.js +43 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/badge.d.ts +15 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +68 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +11 -0
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.js +60 -0
- package/dist/components/ui/breadcrumb.js.map +1 -0
- package/dist/components/ui/button.d.ts +41 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +95 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/calendar.d.ts +9 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar.js +46 -0
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/card/card.d.ts +35 -0
- package/dist/components/ui/card/card.d.ts.map +1 -0
- package/dist/components/ui/card/card.js +64 -0
- package/dist/components/ui/card/card.js.map +1 -0
- package/dist/components/ui/card/index.d.ts +2 -0
- package/dist/components/ui/card/index.d.ts.map +1 -0
- package/dist/components/ui/card/index.js +2 -0
- package/dist/components/ui/card/index.js.map +1 -0
- package/dist/components/ui/card.d.ts +12 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.js +62 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +5 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.js +34 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/collapsible.d.ts +7 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +6 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/command.d.ts +83 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/command.js +71 -0
- package/dist/components/ui/command.js.map +1 -0
- package/dist/components/ui/context-menu.d.ts +31 -0
- package/dist/components/ui/context-menu.d.ts.map +1 -0
- package/dist/components/ui/context-menu.js +87 -0
- package/dist/components/ui/context-menu.js.map +1 -0
- package/dist/components/ui/dialog.d.ts +20 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog.js +63 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +32 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.js +118 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -0
- package/dist/components/ui/dropdown-menu/index.d.ts +2 -0
- package/dist/components/ui/dropdown-menu/index.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu/index.js +2 -0
- package/dist/components/ui/dropdown-menu/index.js.map +1 -0
- package/dist/components/ui/header.d.ts +3 -0
- package/dist/components/ui/header.d.ts.map +1 -0
- package/dist/components/ui/header.js +11 -0
- package/dist/components/ui/header.js.map +1 -0
- package/dist/components/ui/hover-card.d.ts +7 -0
- package/dist/components/ui/hover-card.d.ts.map +1 -0
- package/dist/components/ui/hover-card.js +35 -0
- package/dist/components/ui/hover-card.js.map +1 -0
- package/dist/components/ui/index.d.ts +15 -0
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/components/ui/index.js +27 -0
- package/dist/components/ui/index.js.map +1 -0
- package/dist/components/ui/input.d.ts +6 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +32 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/label.d.ts +6 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +35 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/nav.d.ts +9 -0
- package/dist/components/ui/nav.d.ts.map +1 -0
- package/dist/components/ui/nav.js +42 -0
- package/dist/components/ui/nav.js.map +1 -0
- package/dist/components/ui/org-switcher.d.ts +13 -0
- package/dist/components/ui/org-switcher.d.ts.map +1 -0
- package/dist/components/ui/org-switcher.js +17 -0
- package/dist/components/ui/org-switcher.js.map +1 -0
- package/dist/components/ui/popover.d.ts +8 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.js +36 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/progress.d.ts +5 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/components/ui/progress.js +33 -0
- package/dist/components/ui/progress.js.map +1 -0
- package/dist/components/ui/radio-group.d.ts +6 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/radio-group.js +39 -0
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/select.d.ts +14 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +70 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/separator.d.ts +5 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +33 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/sheet.d.ts +22 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.js +69 -0
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/sidebar.d.ts +65 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -0
- package/dist/components/ui/sidebar.js +263 -0
- package/dist/components/ui/sidebar.js.map +1 -0
- package/dist/components/ui/skeleton.d.ts +3 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.js +30 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/slider.d.ts +5 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/slider.js +33 -0
- package/dist/components/ui/slider.js.map +1 -0
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +33 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/tabs.d.ts +8 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs.js +44 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/textarea.d.ts +6 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea.js +32 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/theme-toggle/index.d.ts +2 -0
- package/dist/components/ui/theme-toggle/index.d.ts.map +1 -0
- package/dist/components/ui/theme-toggle/index.js +2 -0
- package/dist/components/ui/theme-toggle/index.js.map +1 -0
- package/dist/components/ui/theme-toggle/theme-toggle.d.ts +21 -0
- package/dist/components/ui/theme-toggle/theme-toggle.d.ts.map +1 -0
- package/dist/components/ui/theme-toggle/theme-toggle.js +72 -0
- package/dist/components/ui/theme-toggle/theme-toggle.js.map +1 -0
- package/dist/components/ui/toast.d.ts +5 -0
- package/dist/components/ui/toast.d.ts.map +1 -0
- package/dist/components/ui/toast.js +38 -0
- package/dist/components/ui/toast.js.map +1 -0
- package/dist/components/ui/toggle-group.d.ts +6 -0
- package/dist/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/components/ui/toggle-group.js +38 -0
- package/dist/components/ui/toggle-group.js.map +1 -0
- package/dist/components/ui/toggle.d.ts +5 -0
- package/dist/components/ui/toggle.d.ts.map +1 -0
- package/dist/components/ui/toggle.js +33 -0
- package/dist/components/ui/toggle.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +8 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.js +36 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/components/ui/use-toast.d.ts +3 -0
- package/dist/components/ui/use-toast.d.ts.map +1 -0
- package/dist/components/ui/use-toast.js +4 -0
- package/dist/components/ui/use-toast.js.map +1 -0
- package/dist/email/button.d.ts +11 -0
- package/dist/email/button.d.ts.map +1 -0
- package/dist/email/button.js +95 -0
- package/dist/email/button.js.map +1 -0
- package/dist/email/index.d.ts +7 -0
- package/dist/email/index.d.ts.map +1 -0
- package/dist/email/index.js +5 -0
- package/dist/email/index.js.map +1 -0
- package/dist/email/layout.d.ts +23 -0
- package/dist/email/layout.d.ts.map +1 -0
- package/dist/email/layout.js +99 -0
- package/dist/email/layout.js.map +1 -0
- package/dist/email/typography.d.ts +11 -0
- package/dist/email/typography.d.ts.map +1 -0
- package/dist/email/typography.js +60 -0
- package/dist/email/typography.js.map +1 -0
- package/dist/hooks/use-media-query.d.ts +2 -0
- package/dist/hooks/use-media-query.d.ts.map +1 -0
- package/dist/hooks/use-media-query.js +17 -0
- package/dist/hooks/use-media-query.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/theme-utils.d.ts +42 -0
- package/dist/lib/theme-utils.d.ts.map +1 -0
- package/dist/lib/theme-utils.js +78 -0
- package/dist/lib/theme-utils.js.map +1 -0
- package/dist/lib/types.d.ts +18 -0
- package/dist/lib/types.d.ts.map +1 -0
- package/dist/lib/types.js +5 -0
- package/dist/lib/types.js.map +1 -0
- package/dist/lib/utils.d.ts +34 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +62 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/styles/constants/button-colors.d.ts +59 -0
- package/dist/styles/constants/button-colors.d.ts.map +1 -0
- package/dist/styles/constants/button-colors.js +58 -0
- package/dist/styles/constants/button-colors.js.map +1 -0
- package/dist/themes/catalog.d.ts +2 -0
- package/dist/themes/catalog.d.ts.map +1 -0
- package/dist/themes/catalog.js +16 -0
- package/dist/themes/catalog.js.map +1 -0
- package/dist/themes/index.d.ts +1 -0
- package/dist/themes/index.d.ts.map +1 -0
- package/dist/themes/index.js +2 -0
- package/dist/themes/index.js.map +1 -0
- package/dist/themes/theme-context.d.ts +30 -0
- package/dist/themes/theme-context.d.ts.map +1 -0
- package/dist/themes/theme-context.js +40 -0
- package/dist/themes/theme-context.js.map +1 -0
- package/dist/themes/theme-provider.d.ts +9 -0
- package/dist/themes/theme-provider.d.ts.map +1 -0
- package/dist/themes/theme-provider.js +36 -0
- package/dist/themes/theme-provider.js.map +1 -0
- package/dist/tokens/colors.d.ts +135 -0
- package/dist/tokens/colors.d.ts.map +1 -0
- package/dist/tokens/colors.js +137 -0
- package/dist/tokens/colors.js.map +1 -0
- package/dist/tokens/index.d.ts +256 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/index.js +22 -0
- package/dist/tokens/index.js.map +1 -0
- package/dist/tokens/radius.d.ts +19 -0
- package/dist/tokens/radius.d.ts.map +1 -0
- package/dist/tokens/radius.js +24 -0
- package/dist/tokens/radius.js.map +1 -0
- package/dist/tokens/shadows.d.ts +21 -0
- package/dist/tokens/shadows.d.ts.map +1 -0
- package/dist/tokens/shadows.js +23 -0
- package/dist/tokens/shadows.js.map +1 -0
- package/dist/tokens/spacing.d.ts +26 -0
- package/dist/tokens/spacing.d.ts.map +1 -0
- package/dist/tokens/spacing.js +33 -0
- package/dist/tokens/spacing.js.map +1 -0
- package/dist/tokens/typography.d.ts +75 -0
- package/dist/tokens/typography.d.ts.map +1 -0
- package/dist/tokens/typography.js +52 -0
- package/dist/tokens/typography.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +102 -0
@@ -0,0 +1,72 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { Text } from "./text";
|
3
|
+
var meta = {
|
4
|
+
title: "Typography/Text",
|
5
|
+
component: Text,
|
6
|
+
parameters: {
|
7
|
+
layout: "centered",
|
8
|
+
},
|
9
|
+
argTypes: {
|
10
|
+
size: {
|
11
|
+
control: "select",
|
12
|
+
options: ["xl", "lg", "md", "sm", "xs"],
|
13
|
+
description: "The size of the text",
|
14
|
+
defaultValue: "md",
|
15
|
+
},
|
16
|
+
weight: {
|
17
|
+
control: "select",
|
18
|
+
options: ["regular", "medium", "semibold", "bold"],
|
19
|
+
description: "The font weight of the text",
|
20
|
+
defaultValue: "regular",
|
21
|
+
},
|
22
|
+
color: {
|
23
|
+
control: "select",
|
24
|
+
options: ["default", "muted", "brand", "error", "warning", "success"],
|
25
|
+
description: "The color of the text",
|
26
|
+
defaultValue: "default",
|
27
|
+
},
|
28
|
+
italic: {
|
29
|
+
control: "boolean",
|
30
|
+
description: "Whether the text should be italic",
|
31
|
+
defaultValue: false,
|
32
|
+
},
|
33
|
+
underline: {
|
34
|
+
control: "boolean",
|
35
|
+
description: "Whether the text should be underlined",
|
36
|
+
defaultValue: false,
|
37
|
+
},
|
38
|
+
children: {
|
39
|
+
control: "text",
|
40
|
+
description: "The content of the text",
|
41
|
+
defaultValue: "Sample text",
|
42
|
+
},
|
43
|
+
},
|
44
|
+
};
|
45
|
+
export default meta;
|
46
|
+
export var Default = {
|
47
|
+
args: {
|
48
|
+
children: "Default Text",
|
49
|
+
},
|
50
|
+
};
|
51
|
+
export var TextSizes = {
|
52
|
+
render: function () { return (_jsxs("div", { className: "space-y-2", children: [_jsx(Text, { size: "xl", children: "Text XL" }), _jsx(Text, { size: "lg", children: "Text LG" }), _jsx(Text, { size: "md", children: "Text MD" }), _jsx(Text, { size: "sm", children: "Text SM" }), _jsx(Text, { size: "xs", children: "Text XS" })] })); },
|
53
|
+
};
|
54
|
+
export var TextWeights = {
|
55
|
+
render: function () { return (_jsxs("div", { className: "space-y-2", children: [_jsx(Text, { weight: "regular", children: "Regular Text" }), _jsx(Text, { weight: "medium", children: "Medium Text" }), _jsx(Text, { weight: "semibold", children: "Semibold Text" }), _jsx(Text, { weight: "bold", children: "Bold Text" })] })); },
|
56
|
+
};
|
57
|
+
export var TextColors = {
|
58
|
+
render: function () { return (_jsxs("div", { className: "space-y-2", children: [_jsx(Text, { color: "default", children: "Default Color" }), _jsx(Text, { color: "muted", children: "Muted Color" }), _jsx(Text, { color: "brand", children: "Brand Color" }), _jsx(Text, { color: "error", children: "Error Color" }), _jsx(Text, { color: "warning", children: "Warning Color" }), _jsx(Text, { color: "success", children: "Success Color" })] })); },
|
59
|
+
};
|
60
|
+
export var TextStyles = {
|
61
|
+
render: function () { return (_jsxs("div", { className: "space-y-2", children: [_jsx(Text, { children: "Normal Text" }), _jsx(Text, { italic: true, children: "Italic Text" }), _jsx(Text, { underline: true, children: "Underlined Text" }), _jsx(Text, { italic: true, underline: true, children: "Italic and Underlined Text" })] })); },
|
62
|
+
};
|
63
|
+
export var CustomElement = {
|
64
|
+
args: {
|
65
|
+
as: "span",
|
66
|
+
children: "Text as a span element",
|
67
|
+
},
|
68
|
+
};
|
69
|
+
export var CombinedExample = {
|
70
|
+
render: function () { return (_jsxs("div", { className: "space-y-2", children: [_jsx(Text, { size: "lg", weight: "bold", color: "brand", children: "Large, Bold, Brand-colored Text" }), _jsx(Text, { size: "sm", weight: "medium", color: "muted", italic: true, children: "Small, Medium-weight, Muted Italic Text" }), _jsx(Text, { size: "xs", weight: "semibold", color: "error", underline: true, children: "Extra Small, Semibold, Error-colored Underlined Text" })] })); },
|
71
|
+
};
|
72
|
+
//# sourceMappingURL=text.stories.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"text.stories.js","sourceRoot":"","sources":["../../../../src/components/typography/text/text.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,IAAM,IAAI,GAAsB;IAC9B,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;KACnB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;YACvC,WAAW,EAAE,sBAAsB;YACnC,YAAY,EAAE,IAAI;SACnB;QACD,MAAM,EAAE;YACN,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE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,IAAC,IAAI,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAC,KAAK,EAAC,OAAO,EAAC,MAAM,8DAE7C,EACP,KAAC,IAAI,IAAC,IAAI,EAAC,IAAI,EAAC,MAAM,EAAC,UAAU,EAAC,KAAK,EAAC,OAAO,EAAC,SAAS,2EAElD,IACH,CACP,EAZa,CAYb;CACF,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
3
|
+
declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
4
|
+
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
5
|
+
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
6
|
+
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
7
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
8
|
+
//# sourceMappingURL=accordion.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/components/ui/accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAA;AAK/D,QAAA,MAAM,SAAS,8JAA0B,CAAA;AAEzC,QAAA,MAAM,aAAa,iKASjB,CAAA;AAGF,QAAA,MAAM,gBAAgB,0KAoBpB,CAAA;AAGF,QAAA,MAAM,gBAAgB,oKAWpB,CAAA;AAGF,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAA"}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
+
var t = {};
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
+
t[p] = s[p];
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
+
t[p[i]] = s[p[i]];
|
20
|
+
}
|
21
|
+
return t;
|
22
|
+
};
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
|
+
import * as React from "react";
|
25
|
+
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
26
|
+
import { IconChevronDown } from "@tabler/icons-react";
|
27
|
+
import { cn } from "@/lib/utils";
|
28
|
+
var Accordion = AccordionPrimitive.Root;
|
29
|
+
var AccordionItem = React.forwardRef(function (_a, ref) {
|
30
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
31
|
+
return (_jsx(AccordionPrimitive.Item, __assign({ ref: ref, className: cn("border-b", className) }, props)));
|
32
|
+
});
|
33
|
+
AccordionItem.displayName = "AccordionItem";
|
34
|
+
var AccordionTrigger = React.forwardRef(function (_a, ref) {
|
35
|
+
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
36
|
+
return (_jsx(AccordionPrimitive.Header, { className: "flex", children: _jsxs(AccordionPrimitive.Trigger, __assign({ ref: ref, className: cn("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", className) }, props, { children: [children, _jsx(IconChevronDown, { className: "h-4 w-4 shrink-0 transition-transform duration-200", stroke: 1.5 })] })) }));
|
37
|
+
});
|
38
|
+
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
39
|
+
var AccordionContent = React.forwardRef(function (_a, ref) {
|
40
|
+
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
41
|
+
return (_jsx(AccordionPrimitive.Content, __assign({ ref: ref, className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down" }, props, { children: _jsx("div", { className: cn("pb-4 pt-0", className), children: children }) })));
|
42
|
+
});
|
43
|
+
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
44
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
45
|
+
//# sourceMappingURL=accordion.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"accordion.js","sourceRoot":"","sources":["../../../src/components/ui/accordion.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAErD,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAEhC,IAAM,SAAS,GAAG,kBAAkB,CAAC,IAAI,CAAA;AAEzC,IAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAGpC,UAAC,EAAuB,EAAE,GAAG;IAA1B,IAAA,SAAS,eAAA,EAAK,KAAK,cAArB,aAAuB,CAAF;IAAY,O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gBAAgB,EAAE,gBAAgB,EAAE,CAAA"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
3
|
+
declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
4
|
+
variant?: "brand" | "warning" | "success" | "default" | "destructive" | null | undefined;
|
5
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
6
|
+
declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
7
|
+
declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
8
|
+
export { Alert, AlertTitle, AlertDescription };
|
9
|
+
//# sourceMappingURL=alert.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAqBjE,QAAA,MAAM,KAAK;;2HAUT,CAAA;AAGF,QAAA,MAAM,UAAU,uHASd,CAAA;AAGF,QAAA,MAAM,gBAAgB,yHASpB,CAAA;AAGF,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAA"}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
+
var t = {};
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
+
t[p] = s[p];
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
+
t[p[i]] = s[p[i]];
|
20
|
+
}
|
21
|
+
return t;
|
22
|
+
};
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
+
import * as React from "react";
|
25
|
+
import { cva } from "class-variance-authority";
|
26
|
+
import { cn } from "@/lib/utils";
|
27
|
+
var alertVariants = cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4", {
|
28
|
+
variants: {
|
29
|
+
variant: {
|
30
|
+
default: "bg-[var(--bg-primary)] border-[var(--border-tertiary)] text-[var(--text-primary)] [&>svg]:text-[var(--fg-primary)]",
|
31
|
+
destructive: "bg-[var(--color-error-800)] border-none text-[var(--text-primary)] [&>svg]:text-[var(--text-primary)]",
|
32
|
+
warning: "bg-[var(--color-warning-700)] border-none text-[var(--text-primary)] [&>svg]:text-[var(--text-primary)]",
|
33
|
+
success: "bg-[var(--color-success-700)] border-none text-[var(--text-primary)] [&>svg]:text-[var(--text-primary)]",
|
34
|
+
brand: "bg-[var(--color-brand-700)] border-none text-[var(--text-primary)] [&>svg]:text-[var(--text-primary)]",
|
35
|
+
},
|
36
|
+
},
|
37
|
+
defaultVariants: {
|
38
|
+
variant: "default",
|
39
|
+
},
|
40
|
+
});
|
41
|
+
var Alert = React.forwardRef(function (_a, ref) {
|
42
|
+
var className = _a.className, variant = _a.variant, props = __rest(_a, ["className", "variant"]);
|
43
|
+
return (_jsx("div", __assign({ ref: ref, role: "alert", className: cn(alertVariants({ variant: variant }), className) }, props)));
|
44
|
+
});
|
45
|
+
Alert.displayName = "Alert";
|
46
|
+
var AlertTitle = React.forwardRef(function (_a, ref) {
|
47
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
48
|
+
return (_jsx("h5", __assign({ ref: ref, className: cn("mb-1 font-medium leading-none tracking-tight", className) }, props)));
|
49
|
+
});
|
50
|
+
AlertTitle.displayName = "AlertTitle";
|
51
|
+
var AlertDescription = React.forwardRef(function (_a, ref) {
|
52
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
53
|
+
return (_jsx("div", __assign({ ref: ref, className: cn("text-sm text-[var(--text-tertiary)] [&_p]:leading-relaxed", className) }, props)));
|
54
|
+
});
|
55
|
+
AlertDescription.displayName = "AlertDescription";
|
56
|
+
export { Alert, AlertTitle, AlertDescription };
|
57
|
+
//# sourceMappingURL=alert.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../../src/components/ui/alert.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAEhC,IAAM,aAAa,GAAG,GAAG,CACvB,mIAAmI,EACnI;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,oHAAoH;YAC7H,WAAW,EAAE,uGAAuG;YACpH,OAAO,EAAE,yGAAyG;YAClH,OAAO,EAAE,yGAAyG;YAClH,KAAK,EAAE,uGAAuG;SAC/G;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;KACnB;CACF,CACF,CAAA;AAED,IAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAG5B,UAAC,EAAgC,EAAE,GAAG;IAAnC,IAAA,SAAS,eAAA,EAAE,OAAO,aAAA,EAAK,KAAK,cAA9B,wBAAgC,CAAF;IAAY,OAAA,CAC3C,uBACE,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,OAAO,EACZ,SAAS,EAAE,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,SAAA,EAAE,CAAC,EAAE,SAAS,CAAC,IAChD,KAAK,EACT,CACH,CAAA;CAAA,CAAC,CAAA;AACF,KAAK,CAAC,WAAW,GAAG,OAAO,CAAA;AAE3B,IAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAGjC,UAAC,EAAuB,EAAE,GAAG;IAA1B,IAAA,SAAS,eAAA,EAAK,KAAK,cAArB,aAAuB,CAAF;IAAY,OAAA,CAClC,sBACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,8CAA8C,EAAE,SAAS,CAAC,IACpE,KAAK,EACT,CACH,CAAA;CAAA,CAAC,CAAA;AACF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAA;AAErC,IAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CAGvC,UAAC,EAAuB,EAAE,GAAG;IAA1B,IAAA,SAAS,eAAA,EAAK,KAAK,cAArB,aAAuB,CAAF;IAAY,OAAA,CAClC,uBACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,2DAA2D,EAAE,SAAS,CAAC,IACjF,KAAK,EACT,CACH,CAAA;CAAA,CAAC,CAAA;AACF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAA;AAEjD,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAA"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
|
3
|
+
declare const AspectRatio: React.ForwardRefExoticComponent<AspectRatioPrimitive.AspectRatioProps & React.RefAttributes<HTMLDivElement>>;
|
4
|
+
export { AspectRatio };
|
5
|
+
//# sourceMappingURL=aspect-ratio.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"aspect-ratio.d.ts","sourceRoot":"","sources":["../../../src/components/ui/aspect-ratio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAA;AAEpE,QAAA,MAAM,WAAW,8GAA4B,CAAA;AAE7C,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"aspect-ratio.js","sourceRoot":"","sources":["../../../src/components/ui/aspect-ratio.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAA;AAEpE,IAAM,WAAW,GAAG,oBAAoB,CAAC,IAAI,CAAA;AAE7C,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
3
|
+
declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
4
|
+
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
5
|
+
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
6
|
+
export { Avatar, AvatarImage, AvatarFallback };
|
7
|
+
//# sourceMappingURL=avatar.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AAIzD,QAAA,MAAM,MAAM,yJAYV,CAAA;AAGF,QAAA,MAAM,WAAW,gKAUf,CAAA;AAGF,QAAA,MAAM,cAAc,iKAYlB,CAAA;AAGF,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAA"}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
+
var t = {};
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
+
t[p] = s[p];
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
+
t[p[i]] = s[p[i]];
|
20
|
+
}
|
21
|
+
return t;
|
22
|
+
};
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
+
import * as React from "react";
|
25
|
+
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
26
|
+
import { cn } from "@/lib/utils";
|
27
|
+
var Avatar = React.forwardRef(function (_a, ref) {
|
28
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
29
|
+
return (_jsx(AvatarPrimitive.Root, __assign({ ref: ref, className: cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className) }, props)));
|
30
|
+
});
|
31
|
+
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
32
|
+
var AvatarImage = React.forwardRef(function (_a, ref) {
|
33
|
+
var className = _a.className, src = _a.src, props = __rest(_a, ["className", "src"]);
|
34
|
+
return (_jsx(AvatarPrimitive.Image, __assign({ ref: ref, className: cn("aspect-square h-full w-full", className), src: src !== null && src !== void 0 ? src : "/avatars/tydavidson.png" }, props)));
|
35
|
+
});
|
36
|
+
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
37
|
+
var AvatarFallback = React.forwardRef(function (_a, ref) {
|
38
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
39
|
+
return (_jsx(AvatarPrimitive.Fallback, __assign({ ref: ref, className: cn("flex h-full w-full items-center justify-center rounded-full bg-muted", className) }, props)));
|
40
|
+
});
|
41
|
+
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
42
|
+
export { Avatar, AvatarImage, AvatarFallback };
|
43
|
+
//# sourceMappingURL=avatar.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"avatar.js","sourceRoot":"","sources":["../../../src/components/ui/avatar.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AAEzD,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAEhC,IAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAG7B,UAAC,EAAuB,EAAE,GAAG;IAA1B,IAAA,SAAS,eAAA,EAAK,KAAK,cAArB,aAAuB,CAAF;IAAY,OAAA,CAClC,KAAC,eAAe,CAAC,IAAI,aACnB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,+DAA+D,EAC/D,SAAS,CACV,IACG,KAAK,EACT,CACH,CAAA;CAAA,CAAC,CAAA;AACF,MAAM,CAAC,WAAW,GAAG,eAAe,CAAC,IAAI,CAAC,WAAW,CAAA;AAErD,IAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CAGlC,UAAC,EAA4B,EAAE,GAAG;IAA/B,IAAA,SAAS,eAAA,EAAE,GAAG,SAAA,EAAK,KAAK,cAA1B,oBAA4B,CAAF;IAAY,OAAA,CACvC,KAAC,eAAe,CAAC,KAAK,aACpB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,6BAA6B,EAAE,SAAS,CAAC,EACvD,GAAG,EAAE,GAAG,aAAH,GAAG,cAAH,GAAG,GAAI,yBAAyB,IACjC,KAAK,EACT,CACH,CAAA;CAAA,CAAC,CAAA;AACF,WAAW,CAAC,WAAW,GAAG,eAAe,CAAC,KAAK,CAAC,WAAW,CAAA;AAE3D,IAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CAGrC,UAAC,EAAuB,EAAE,GAAG;IAA1B,IAAA,SAAS,eAAA,EAAK,KAAK,cAArB,aAAuB,CAAF;IAAY,OAAA,CAClC,KAAC,eAAe,CAAC,QAAQ,aACvB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,sEAAsE,EACtE,SAAS,CACV,IACG,KAAK,EACT,CACH,CAAA;CAAA,CAAC,CAAA;AACF,cAAc,CAAC,WAAW,GAAG,eAAe,CAAC,QAAQ,CAAC,WAAW,CAAA;AAEjE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAA"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
3
|
+
declare const badgeVariants: (props?: ({
|
4
|
+
variant?: "primary" | "destructive" | "outline" | "ghost" | "gray" | null | undefined;
|
5
|
+
size?: "sm" | "md" | "lg" | "iconSm" | "iconMd" | "iconLg" | null | undefined;
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
7
|
+
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
8
|
+
asChild?: boolean;
|
9
|
+
leftIcon?: React.ReactNode;
|
10
|
+
rightIcon?: React.ReactNode;
|
11
|
+
iconOnly?: boolean;
|
12
|
+
}
|
13
|
+
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
|
14
|
+
export { Badge, badgeVariants };
|
15
|
+
//# sourceMappingURL=badge.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/ui/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,aAAa;;;mFAyBlB,CAAA;AAED,MAAM,WAAW,UACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,YAAY,CAAC,OAAO,aAAa,CAAC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,KAAK,mFA4CV,CAAA;AAID,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA"}
|
@@ -0,0 +1,68 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
+
var t = {};
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
+
t[p] = s[p];
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
+
t[p[i]] = s[p[i]];
|
20
|
+
}
|
21
|
+
return t;
|
22
|
+
};
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
|
+
import * as React from "react";
|
25
|
+
import { Slot } from "@radix-ui/react-slot";
|
26
|
+
import { cva } from "class-variance-authority";
|
27
|
+
import { cn } from "@/lib/utils";
|
28
|
+
var badgeVariants = cva("inline-flex items-center justify-center gap-1 rounded-full border px-2 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 [&_svg]:shrink-0", {
|
29
|
+
variants: {
|
30
|
+
variant: {
|
31
|
+
primary: "bg-[var(--badge-bg-primary)] text-[var(--badge-text-primary)] border-[var(--badge-border-primary)] hover:bg-[var(--badge-bg-primary-hover)] hover:text-[var(--badge-text-primary-hover)] hover:border-[var(--badge-border-primary-hover)]",
|
32
|
+
gray: "bg-[var(--badge-bg-gray)] text-[var(--badge-text-gray)] border-[var(--badge-border-gray)] hover:bg-[var(--badge-bg-gray-hover)] hover:text-[var(--badge-text-gray-hover)] hover:border-[var(--badge-border-gray-hover)]",
|
33
|
+
destructive: "bg-[var(--badge-bg-destructive)] text-[var(--badge-text-destructive)] border-[var(--badge-border-destructive)] hover:bg-[var(--badge-bg-destructive-hover)] hover:text-[var(--badge-text-destructive-hover)] hover:border-[var(--badge-border-destructive-hover)]",
|
34
|
+
outline: "bg-[var(--badge-bg-outline)] text-[var(--badge-text-outline)] border-[var(--badge-border-outline)] hover:bg-[var(--badge-bg-outline-hover)] hover:text-[var(--badge-text-outline-hover)] hover:border-[var(--badge-border-outline-hover)]",
|
35
|
+
ghost: "text-[var(--badge-text-ghost)] border-[var(--badge-border-ghost)] hover:bg-[var(--badge-bg-ghost-hover)] hover:text-[var(--badge-text-ghost-hover)] hover:border-[var(--badge-border-ghost-hover)]",
|
36
|
+
},
|
37
|
+
size: {
|
38
|
+
sm: "h-5 px-2 text-[10px] float-badge-sm",
|
39
|
+
md: "h-6 px-2.5 py-0.5 text-xs float-badge-md",
|
40
|
+
lg: "h-7 px-3 text-sm float-badge-lg",
|
41
|
+
iconSm: "h-5 w-5 p-0 float-badge-icon-sm",
|
42
|
+
iconMd: "h-6 w-6 p-0 float-badge-icon-md",
|
43
|
+
iconLg: "h-7 w-7 p-0 float-badge-icon-lg",
|
44
|
+
}
|
45
|
+
},
|
46
|
+
defaultVariants: {
|
47
|
+
variant: "primary",
|
48
|
+
size: "md",
|
49
|
+
},
|
50
|
+
});
|
51
|
+
var Badge = React.forwardRef(function (_a, ref) {
|
52
|
+
var className = _a.className, variant = _a.variant, _b = _a.size, size = _b === void 0 ? "md" : _b, _c = _a.asChild, asChild = _c === void 0 ? false : _c, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon, _d = _a.iconOnly, iconOnly = _d === void 0 ? false : _d, children = _a.children, props = __rest(_a, ["className", "variant", "size", "asChild", "leftIcon", "rightIcon", "iconOnly", "children"]);
|
53
|
+
var sizeVariant = size;
|
54
|
+
if (iconOnly) {
|
55
|
+
if (size === "sm")
|
56
|
+
sizeVariant = "iconSm";
|
57
|
+
else if (size === "lg")
|
58
|
+
sizeVariant = "iconLg";
|
59
|
+
else
|
60
|
+
sizeVariant = "iconMd";
|
61
|
+
}
|
62
|
+
var Comp = asChild ? Slot : "div";
|
63
|
+
var content = iconOnly ? null : children;
|
64
|
+
return (_jsxs(Comp, __assign({ className: cn(badgeVariants({ variant: variant, size: sizeVariant }), className), ref: ref }, props, { children: [leftIcon && (_jsx("span", { className: cn("flex items-center justify-center", !iconOnly && children && "mr-1"), children: leftIcon })), content, rightIcon && (_jsx("span", { className: cn("flex items-center justify-center", !iconOnly && children && "ml-1"), children: rightIcon }))] })));
|
65
|
+
});
|
66
|
+
Badge.displayName = "Badge";
|
67
|
+
export { Badge, badgeVariants };
|
68
|
+
//# sourceMappingURL=badge.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../../../src/components/ui/badge.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAC3C,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAA;AAEjE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAEhC,IAAM,aAAa,GAAG,GAAG,CACvB,4MAA4M,EAC5M;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,2OAA2O;YACpP,IAAI,EAAE,yNAAyN;YAC/N,WAAW,EAAE,mQAAmQ;YAChR,OAAO,EAAE,2OAA2O;YACpP,KAAK,EAAE,oMAAoM;SAC5M;QACD,IAAI,EAAE;YACJ,EAAE,EAAE,qCAAqC;YACzC,EAAE,EAAE,0CAA0C;YAC9C,EAAE,EAAE,iCAAiC;YACrC,MAAM,EAAE,iCAAiC;YACzC,MAAM,EAAE,iCAAiC;YACzC,MAAM,EAAE,iCAAiC;SAC1C;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,IAAI;KACX;CACF,CACF,CAAA;AAWD,IAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAC5B,UAAC,EAUA,EAAE,GAAG;IATJ,IAAA,SAAS,eAAA,EACT,OAAO,aAAA,EACP,YAAW,EAAX,IAAI,mBAAG,IAAI,KAAA,EACX,eAAe,EAAf,OAAO,mBAAG,KAAK,KAAA,EACf,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,gBAAgB,EAAhB,QAAQ,mBAAG,KAAK,KAAA,EAChB,QAAQ,cAAA,EACL,KAAK,cATT,4FAUA,CADS;IAGR,IAAI,WAAW,GAAG,IAAI,CAAC;IACvB,IAAI,QAAQ,EAAE,CAAC;QACb,IAAI,IAAI,KAAK,IAAI;YAAE,WAAW,GAAG,QAAQ,CAAC;aACrC,IAAI,IAAI,KAAK,IAAI;YAAE,WAAW,GAAG,QAAQ,CAAC;;YAC1C,WAAW,GAAG,QAAQ,CAAC;IAC9B,CAAC;IAED,IAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IAEpC,IAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC;IAE3C,OAAO,CACL,MAAC,IAAI,aACH,SAAS,EAAE,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,SAAA,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,EAAE,SAAS,CAAC,EACvE,GAAG,EAAE,GAAG,IACJ,KAAK,eAER,QAAQ,IAAI,CACX,eAAM,SAAS,EAAE,EAAE,CAAC,kCAAkC,EAAE,CAAC,QAAQ,IAAI,QAAQ,IAAI,MAAM,CAAC,YACrF,QAAQ,GACJ,CACR,EACA,OAAO,EACP,SAAS,IAAI,CACZ,eAAM,SAAS,EAAE,EAAE,CAAC,kCAAkC,EAAE,CAAC,QAAQ,IAAI,QAAQ,IAAI,MAAM,CAAC,YACrF,SAAS,GACL,CACR,KACI,CACR,CAAA;AACH,CAAC,CACF,CAAA;AAED,KAAK,CAAC,WAAW,GAAG,OAAO,CAAA;AAE3B,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
declare const BreadcrumbList: React.ForwardRefExoticComponent<React.OlHTMLAttributes<HTMLOListElement> & React.RefAttributes<HTMLOListElement>>;
|
3
|
+
declare const BreadcrumbItem: React.ForwardRefExoticComponent<React.LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
|
4
|
+
declare const BreadcrumbLink: React.ForwardRefExoticComponent<React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
5
|
+
asChild?: boolean;
|
6
|
+
} & React.RefAttributes<HTMLAnchorElement>>;
|
7
|
+
declare const BreadcrumbSeparator: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
8
|
+
declare const BreadcrumbEllipsis: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
9
|
+
declare const Breadcrumb: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
10
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbSeparator, BreadcrumbEllipsis, };
|
11
|
+
//# sourceMappingURL=breadcrumb.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/ui/breadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,QAAA,MAAM,cAAc,mHAYlB,CAAA;AAGF,QAAA,MAAM,cAAc,6GASlB,CAAA;AAGF,QAAA,MAAM,cAAc;cAGN,OAAO;2CAYnB,CAAA;AAGF,QAAA,MAAM,mBAAmB,+GAWvB,CAAA;AAGF,QAAA,MAAM,kBAAkB,+GActB,CAAA;AAGF,QAAA,MAAM,UAAU,uGAUd,CAAA;AAGF,OAAO,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,kBAAkB,GACnB,CAAA"}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
+
var t = {};
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
+
t[p] = s[p];
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
+
t[p[i]] = s[p[i]];
|
20
|
+
}
|
21
|
+
return t;
|
22
|
+
};
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
|
+
import * as React from "react";
|
25
|
+
import { Slot } from "@radix-ui/react-slot";
|
26
|
+
import { IconChevronRight } from "@tabler/icons-react";
|
27
|
+
import { cn } from "@/lib/utils";
|
28
|
+
var BreadcrumbList = React.forwardRef(function (_a, ref) {
|
29
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
30
|
+
return (_jsx("ol", __assign({ ref: ref, className: cn("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5", className) }, props)));
|
31
|
+
});
|
32
|
+
BreadcrumbList.displayName = "BreadcrumbList";
|
33
|
+
var BreadcrumbItem = React.forwardRef(function (_a, ref) {
|
34
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
35
|
+
return (_jsx("li", __assign({ ref: ref, className: cn("inline-flex items-center gap-1.5", className) }, props)));
|
36
|
+
});
|
37
|
+
BreadcrumbItem.displayName = "BreadcrumbItem";
|
38
|
+
var BreadcrumbLink = React.forwardRef(function (_a, ref) {
|
39
|
+
var asChild = _a.asChild, className = _a.className, props = __rest(_a, ["asChild", "className"]);
|
40
|
+
var Comp = asChild ? Slot : "a";
|
41
|
+
return (_jsx(Comp, __assign({ ref: ref, className: cn("hover:text-foreground transition-colors", className) }, props)));
|
42
|
+
});
|
43
|
+
BreadcrumbLink.displayName = "BreadcrumbLink";
|
44
|
+
var BreadcrumbSeparator = React.forwardRef(function (_a, ref) {
|
45
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
46
|
+
return (_jsx("span", __assign({ ref: ref, className: cn("text-muted-foreground", className) }, props, { children: _jsx(IconChevronRight, { className: "h-4 w-4", stroke: 1.5 }) })));
|
47
|
+
});
|
48
|
+
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
49
|
+
var BreadcrumbEllipsis = React.forwardRef(function (_a, ref) {
|
50
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
51
|
+
return (_jsxs("span", __assign({ ref: ref, className: cn("flex h-9 w-9 items-center justify-center", className) }, props, { children: [_jsx("span", { className: "flex h-1 w-1 mx-0.5 rounded-full bg-muted-foreground" }), _jsx("span", { className: "flex h-1 w-1 mx-0.5 rounded-full bg-muted-foreground" }), _jsx("span", { className: "flex h-1 w-1 mx-0.5 rounded-full bg-muted-foreground" }), _jsx("span", { className: "sr-only", children: "More" })] })));
|
52
|
+
});
|
53
|
+
BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
|
54
|
+
var Breadcrumb = React.forwardRef(function (_a, ref) {
|
55
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
56
|
+
return (_jsx("nav", __assign({ ref: ref, className: cn("overflow-auto", className), "aria-label": "breadcrumb" }, props)));
|
57
|
+
});
|
58
|
+
Breadcrumb.displayName = "Breadcrumb";
|
59
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbSeparator, BreadcrumbEllipsis, };
|
60
|
+
//# sourceMappingURL=breadcrumb.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version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,SAAS,CAAC,gBAC9B,YAAY,IACnB,KAAK,EACT,CACH,CAAA;CAAA,CAAC,CAAA;AACF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAA;AAErC,OAAO,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,kBAAkB,GACnB,CAAA"}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
3
|
+
import { ThemeColor } from "@/lib/theme-utils";
|
4
|
+
declare const buttonVariants: (props?: ({
|
5
|
+
variant?: "primary" | "secondary" | "tertiary" | "default" | "destructive" | "outline" | "ghost" | "link" | "primaryError" | null | undefined;
|
6
|
+
size?: "sm" | "md" | "lg" | "iconSm" | "iconMd" | "iconLg" | "icon" | null | undefined;
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
8
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Omit<VariantProps<typeof buttonVariants>, 'variant'> {
|
9
|
+
asChild?: boolean;
|
10
|
+
/**
|
11
|
+
* Icon to display before the button text
|
12
|
+
*/
|
13
|
+
leftIcon?: React.ReactNode;
|
14
|
+
/**
|
15
|
+
* Icon to display after the button text
|
16
|
+
*/
|
17
|
+
rightIcon?: React.ReactNode;
|
18
|
+
/**
|
19
|
+
* Whether the button is in a loading state
|
20
|
+
*/
|
21
|
+
isLoading?: boolean;
|
22
|
+
/**
|
23
|
+
* Theme color to apply to the button (uses design system colors)
|
24
|
+
*/
|
25
|
+
color?: ThemeColor;
|
26
|
+
/**
|
27
|
+
* Semantic design system variant - use this instead of variant for design system consistency
|
28
|
+
*/
|
29
|
+
dsVariant?: 'primary' | 'secondary' | 'ghost' | 'outline' | 'link' | 'destructive' | 'default' | 'tertiary' | 'primaryError';
|
30
|
+
/**
|
31
|
+
* Whether the button should only show an icon
|
32
|
+
*/
|
33
|
+
iconOnly?: boolean;
|
34
|
+
/**
|
35
|
+
* Button visual style variant
|
36
|
+
*/
|
37
|
+
variant?: 'primary' | 'secondary' | 'ghost' | 'outline' | 'link' | 'destructive' | 'default' | 'tertiary' | 'primaryError';
|
38
|
+
}
|
39
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
40
|
+
export { Button, buttonVariants };
|
41
|
+
//# sourceMappingURL=button.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGjE,OAAO,EAAE,UAAU,EAAoB,MAAM,mBAAmB,CAAA;AAGhE,QAAA,MAAM,cAAc;;;mFAgCnB,CAAA;AAED,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,IAAI,CAAC,YAAY,CAAC,OAAO,cAAc,CAAC,EAAE,SAAS,CAAC;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,aAAa,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc,CAAC;IAC7H;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,aAAa,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc,CAAC;CAC5H;AAED,QAAA,MAAM,MAAM,uFA2FX,CAAC;AAIF,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|