@devalok/shilp-sutra 0.8.3 → 0.9.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/dist/_chunks/avatar.js +50 -0
- package/dist/_chunks/button.js +95 -0
- package/dist/_chunks/card.js +40 -0
- package/dist/_chunks/checkbox.js +14 -0
- package/dist/_chunks/form.js +27 -0
- package/dist/_chunks/primitives.js +6965 -0
- package/dist/_chunks/sidebar.js +592 -0
- package/dist/_chunks/spinner.js +34 -0
- package/dist/_chunks/tiptap.js +15254 -0
- package/dist/_chunks/tooltip.js +13 -0
- package/dist/_chunks/tree-view.js +304 -0
- package/dist/_chunks/use-calendar.js +990 -0
- package/dist/_chunks/utils.js +15 -0
- package/dist/_chunks/vendor.js +5823 -0
- package/dist/composed/avatar-group.js +20 -20
- package/dist/composed/command-palette.js +1 -1
- package/dist/composed/confirm-dialog.js +5 -5
- package/dist/composed/content-card.d.ts +1 -1
- package/dist/composed/content-card.js +6 -6
- package/dist/composed/date-picker/index.js +13 -0
- package/dist/composed/empty-state.js +10 -10
- package/dist/composed/error-boundary.js +2 -2
- package/dist/composed/global-loading.js +4 -4
- package/dist/composed/index.js +45 -53
- package/dist/composed/loading-skeleton.js +2 -2
- package/dist/composed/member-picker.js +5 -5
- package/dist/composed/page-header.js +4 -4
- package/dist/composed/page-skeletons.js +1 -1
- package/dist/composed/priority-indicator.js +6 -6
- package/dist/composed/rich-text-editor.js +422 -209
- package/dist/composed/schedule-view.js +1 -1
- package/dist/composed/simple-tooltip.js +6 -6
- package/dist/composed/status-badge.d.ts +1 -1
- package/dist/composed/status-badge.js +2 -2
- package/dist/shell/bottom-navbar.js +1 -1
- package/dist/shell/notification-center.js +2 -2
- package/dist/shell/notification-preferences.js +32 -33
- package/dist/shell/sidebar.js +24 -24
- package/dist/shell/top-bar.js +22 -22
- package/dist/ui/accordion.js +17 -17
- package/dist/ui/alert-dialog.js +29 -29
- package/dist/ui/alert.d.ts +2 -2
- package/dist/ui/alert.js +65 -44
- package/dist/ui/aspect-ratio.js +1 -1
- package/dist/ui/autocomplete.js +11 -11
- package/dist/ui/avatar.d.ts +1 -1
- package/dist/ui/avatar.js +67 -25
- package/dist/ui/badge.d.ts +2 -2
- package/dist/ui/badge.js +115 -91
- package/dist/ui/banner.d.ts +1 -1
- package/dist/ui/banner.js +5 -5
- package/dist/ui/breadcrumb.js +14 -14
- package/dist/ui/button-group.js +30 -15
- package/dist/ui/button.d.ts +2 -2
- package/dist/ui/button.js +114 -71
- package/dist/ui/card.js +66 -22
- package/dist/ui/charts/index.js +1221 -18
- package/dist/ui/checkbox.js +25 -5
- package/dist/ui/chip.d.ts +4 -4
- package/dist/ui/chip.js +2 -2
- package/dist/ui/code.js +1 -1
- package/dist/ui/collapsible.js +5 -5
- package/dist/ui/color-input.js +11 -11
- package/dist/ui/combobox.js +12 -12
- package/dist/ui/container.js +4 -4
- package/dist/ui/context-menu.js +37 -37
- package/dist/ui/data-table-toolbar.js +18 -18
- package/dist/ui/data-table.js +2 -2
- package/dist/ui/dialog.js +33 -33
- package/dist/ui/dropdown-menu.js +60 -60
- package/dist/ui/file-upload.js +1 -1
- package/dist/ui/form.js +36 -15
- package/dist/ui/hover-card.js +7 -7
- package/dist/ui/icon-button.js +9 -9
- package/dist/ui/index.js +523 -325
- package/dist/ui/input-otp.d.ts +2 -2
- package/dist/ui/input-otp.js +14 -14
- package/dist/ui/input.js +56 -28
- package/dist/ui/label.js +18 -4
- package/dist/ui/lib/utils.js +4 -5
- package/dist/ui/link.js +9 -9
- package/dist/ui/menubar.js +81 -81
- package/dist/ui/navigation-menu.js +42 -42
- package/dist/ui/number-input.js +13 -13
- package/dist/ui/pagination.js +5 -5
- package/dist/ui/popover.js +9 -9
- package/dist/ui/progress.d.ts +1 -1
- package/dist/ui/progress.js +15 -15
- package/dist/ui/radio.js +10 -10
- package/dist/ui/search-input.js +5 -5
- package/dist/ui/segmented-control.js +91 -83
- package/dist/ui/select.js +52 -52
- package/dist/ui/separator.js +20 -5
- package/dist/ui/sheet.js +28 -28
- package/dist/ui/sidebar.js +36 -560
- package/dist/ui/skeleton.d.ts +1 -1
- package/dist/ui/skeleton.js +9 -9
- package/dist/ui/slider.js +11 -11
- package/dist/ui/spinner.js +37 -2
- package/dist/ui/stack.js +1 -1
- package/dist/ui/stat-card.js +1 -1
- package/dist/ui/stepper.js +15 -15
- package/dist/ui/switch.js +22 -3
- package/dist/ui/table.js +1 -1
- package/dist/ui/tabs.js +59 -32
- package/dist/ui/text.js +2 -2
- package/dist/ui/textarea.js +7 -7
- package/dist/ui/toast.d.ts +1 -1
- package/dist/ui/toast.js +28 -28
- package/dist/ui/toggle-group.js +11 -11
- package/dist/ui/toggle.js +9 -9
- package/dist/ui/tooltip.js +17 -6
- package/dist/ui/transitions.js +68 -58
- package/dist/ui/tree-view/index.js +7 -0
- package/dist/ui/visually-hidden.js +3 -3
- package/llms-full.txt +1 -1
- package/llms.txt +7 -0
- package/package.json +656 -701
- package/dist/_virtual/client.js +0 -5
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/react-dom-client.development.js +0 -5
- package/dist/_virtual/react-dom-client.production.js +0 -5
- package/dist/_virtual/scheduler.development.js +0 -5
- package/dist/_virtual/scheduler.production.js +0 -5
- package/dist/composed/date-picker/calendar-grid.js +0 -194
- package/dist/composed/date-picker/date-picker.js +0 -124
- package/dist/composed/date-picker/date-range-picker.js +0 -167
- package/dist/composed/date-picker/date-time-picker.js +0 -193
- package/dist/composed/date-picker/month-picker.js +0 -53
- package/dist/composed/date-picker/presets.js +0 -84
- package/dist/composed/date-picker/time-picker.js +0 -181
- package/dist/composed/date-picker/use-calendar.js +0 -17
- package/dist/composed/date-picker/year-picker.js +0 -45
- package/dist/composed/extensions/emoji-suggestion.js +0 -119
- package/dist/composed/extensions/file-attachment.js +0 -55
- package/dist/composed/extensions/mention-suggestion.js +0 -79
- package/dist/node_modules/.pnpm/@emoji-mart_data@1.2.1/node_modules/@emoji-mart/data/sets/15/native.json.js +0 -40141
- package/dist/node_modules/.pnpm/@emoji-mart_react@1.1.1_emoji-mart@5.6.0_react@19.2.4/node_modules/@emoji-mart/react/dist/module.js +0 -17
- package/dist/node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/module.js +0 -2958
- package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/cjs/react-dom-client.development.js +0 -17062
- package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/cjs/react-dom-client.production.js +0 -9790
- package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/client.js +0 -20
- package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.development.js +0 -237
- package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js +0 -234
- package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/index.js +0 -11
- package/dist/primitives/_internal/number.js +0 -6
- package/dist/primitives/_internal/primitive.js +0 -9
- package/dist/primitives/_internal/react-arrow.js +0 -13
- package/dist/primitives/_internal/react-collection.js +0 -48
- package/dist/primitives/_internal/react-compose-refs.js +0 -29
- package/dist/primitives/_internal/react-context.js +0 -76
- package/dist/primitives/_internal/react-direction.js +0 -10
- package/dist/primitives/_internal/react-dismissable-layer.js +0 -103
- package/dist/primitives/_internal/react-focus-guards.js +0 -17
- package/dist/primitives/_internal/react-focus-scope.js +0 -137
- package/dist/primitives/_internal/react-id.js +0 -14
- package/dist/primitives/_internal/react-popper.js +0 -137
- package/dist/primitives/_internal/react-portal.js +0 -16
- package/dist/primitives/_internal/react-presence.js +0 -71
- package/dist/primitives/_internal/react-primitive.js +0 -36
- package/dist/primitives/_internal/react-use-callback-ref.js +0 -13
- package/dist/primitives/_internal/react-use-controllable-state.js +0 -44
- package/dist/primitives/_internal/react-use-escape-keydown.js +0 -14
- package/dist/primitives/_internal/react-use-is-hydrated.js +0 -15
- package/dist/primitives/_internal/react-use-layout-effect.js +0 -6
- package/dist/primitives/_internal/react-use-previous.js +0 -8
- package/dist/primitives/_internal/react-use-size.js +0 -27
- package/dist/primitives/react-accordion.js +0 -239
- package/dist/primitives/react-alert-dialog.js +0 -127
- package/dist/primitives/react-aspect-ratio.js +0 -43
- package/dist/primitives/react-avatar.js +0 -75
- package/dist/primitives/react-checkbox.js +0 -251
- package/dist/primitives/react-collapsible.js +0 -120
- package/dist/primitives/react-context-menu.js +0 -240
- package/dist/primitives/react-dialog.js +0 -262
- package/dist/primitives/react-dropdown-menu.js +0 -227
- package/dist/primitives/react-hover-card.js +0 -187
- package/dist/primitives/react-label.js +0 -20
- package/dist/primitives/react-menu.js +0 -652
- package/dist/primitives/react-menubar.js +0 -355
- package/dist/primitives/react-navigation-menu.js +0 -607
- package/dist/primitives/react-popover.js +0 -243
- package/dist/primitives/react-progress.js +0 -84
- package/dist/primitives/react-radio-group.js +0 -238
- package/dist/primitives/react-roving-focus.js +0 -183
- package/dist/primitives/react-select.js +0 -862
- package/dist/primitives/react-separator.js +0 -24
- package/dist/primitives/react-slider.js +0 -437
- package/dist/primitives/react-slot.js +0 -70
- package/dist/primitives/react-switch.js +0 -132
- package/dist/primitives/react-tabs.js +0 -163
- package/dist/primitives/react-toast.js +0 -446
- package/dist/primitives/react-toggle-group.js +0 -137
- package/dist/primitives/react-toggle.js +0 -33
- package/dist/primitives/react-tooltip.js +0 -338
- package/dist/primitives/react-visually-hidden.js +0 -32
- package/dist/ui/charts/_internal/animation.js +0 -18
- package/dist/ui/charts/_internal/axes.js +0 -42
- package/dist/ui/charts/_internal/colors.js +0 -21
- package/dist/ui/charts/_internal/grid-lines.js +0 -43
- package/dist/ui/charts/_internal/legend.js +0 -29
- package/dist/ui/charts/_internal/tooltip.js +0 -39
- package/dist/ui/charts/_internal/types.js +0 -10
- package/dist/ui/charts/area-chart.js +0 -245
- package/dist/ui/charts/bar-chart.js +0 -153
- package/dist/ui/charts/chart-container.js +0 -27
- package/dist/ui/charts/gauge-chart.js +0 -72
- package/dist/ui/charts/line-chart.js +0 -163
- package/dist/ui/charts/pie-chart.js +0 -132
- package/dist/ui/charts/radar-chart.js +0 -223
- package/dist/ui/charts/sparkline.js +0 -124
- package/dist/ui/lib/motion.js +0 -32
- package/dist/ui/lib/use-reduced-motion.js +0 -15
- package/dist/ui/lib/use-ripple.js +0 -14
- package/dist/ui/tree-view/tree-item.js +0 -139
- package/dist/ui/tree-view/tree-view.js +0 -140
- package/dist/ui/tree-view/use-tree.js +0 -38
package/dist/ui/badge.js
CHANGED
|
@@ -2,100 +2,124 @@
|
|
|
2
2
|
import { jsxs as d, jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import { IconX as b } from "@tabler/icons-react";
|
|
4
4
|
import * as g from "react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
const u = x(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
import { m as x } from "../_chunks/vendor.js";
|
|
6
|
+
import { c as m } from "../_chunks/utils.js";
|
|
7
|
+
const u = x(
|
|
8
|
+
"inline-flex items-center gap-ds-02b font-sans font-medium rounded-ds-full border",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
subtle: "",
|
|
13
|
+
secondary: "",
|
|
14
|
+
// alias → subtle
|
|
15
|
+
solid: "",
|
|
16
|
+
outline: "",
|
|
17
|
+
destructive: ""
|
|
18
|
+
// alias → solid + error
|
|
19
|
+
},
|
|
20
|
+
color: {
|
|
21
|
+
default: "",
|
|
22
|
+
info: "",
|
|
23
|
+
success: "",
|
|
24
|
+
error: "",
|
|
25
|
+
warning: "",
|
|
26
|
+
brand: "",
|
|
27
|
+
accent: "",
|
|
28
|
+
teal: "",
|
|
29
|
+
amber: "",
|
|
30
|
+
slate: "",
|
|
31
|
+
indigo: "",
|
|
32
|
+
cyan: "",
|
|
33
|
+
orange: "",
|
|
34
|
+
emerald: ""
|
|
35
|
+
},
|
|
36
|
+
size: {
|
|
37
|
+
xs: "h-[16px] px-ds-02b text-ds-xs",
|
|
38
|
+
sm: "h-[20px] px-ds-03 text-ds-xs",
|
|
39
|
+
md: "h-ds-xs px-ds-03 text-ds-sm",
|
|
40
|
+
lg: "h-ds-xs-plus px-ds-04 text-ds-md"
|
|
41
|
+
}
|
|
17
42
|
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
43
|
+
compoundVariants: [
|
|
44
|
+
// subtle (surface bg)
|
|
45
|
+
{ variant: "subtle", color: "default", className: "bg-field text-text-secondary border-border" },
|
|
46
|
+
// "secondary" alias → same as subtle + default
|
|
47
|
+
{ variant: "secondary", color: "default", className: "bg-field text-text-secondary border-border" },
|
|
48
|
+
// "destructive" alias → solid + error
|
|
49
|
+
{ variant: "destructive", color: "default", className: "bg-error text-text-on-color border-transparent" },
|
|
50
|
+
{ variant: "destructive", color: "error", className: "bg-error text-text-on-color border-transparent" },
|
|
51
|
+
{ variant: "subtle", color: "info", className: "bg-info-surface text-info-text border-info-border" },
|
|
52
|
+
{ variant: "subtle", color: "success", className: "bg-success-surface text-success-text border-success-border" },
|
|
53
|
+
{ variant: "subtle", color: "error", className: "bg-error-surface text-error-text border-error-border" },
|
|
54
|
+
{ variant: "subtle", color: "warning", className: "bg-warning-surface text-warning-text border-warning-border" },
|
|
55
|
+
{ variant: "subtle", color: "brand", className: "bg-interactive-subtle text-text-brand border-interactive" },
|
|
56
|
+
{ variant: "subtle", color: "accent", className: "bg-accent-subtle text-accent border-accent" },
|
|
57
|
+
{ variant: "subtle", color: "teal", className: "bg-category-teal-surface text-category-teal-text border-category-teal-border" },
|
|
58
|
+
{ variant: "subtle", color: "amber", className: "bg-category-amber-surface text-category-amber-text border-category-amber-border" },
|
|
59
|
+
{ variant: "subtle", color: "slate", className: "bg-category-slate-surface text-category-slate-text border-category-slate-border" },
|
|
60
|
+
{ variant: "subtle", color: "indigo", className: "bg-category-indigo-surface text-category-indigo-text border-category-indigo-border" },
|
|
61
|
+
{ variant: "subtle", color: "cyan", className: "bg-category-cyan-surface text-category-cyan-text border-category-cyan-border" },
|
|
62
|
+
{ variant: "subtle", color: "orange", className: "bg-category-orange-surface text-category-orange-text border-category-orange-border" },
|
|
63
|
+
{ variant: "subtle", color: "emerald", className: "bg-category-emerald-surface text-category-emerald-text border-category-emerald-border" },
|
|
64
|
+
// solid (filled bg)
|
|
65
|
+
{ variant: "solid", color: "default", className: "bg-interactive text-text-on-color border-transparent" },
|
|
66
|
+
{ variant: "solid", color: "info", className: "bg-info text-text-on-color border-transparent" },
|
|
67
|
+
{ variant: "solid", color: "success", className: "bg-success text-text-on-color border-transparent" },
|
|
68
|
+
{ variant: "solid", color: "error", className: "bg-error text-text-on-color border-transparent" },
|
|
69
|
+
{ variant: "solid", color: "warning", className: "bg-warning text-text-on-color border-transparent" },
|
|
70
|
+
{ variant: "solid", color: "brand", className: "bg-interactive text-text-on-color border-transparent" },
|
|
71
|
+
{ variant: "solid", color: "accent", className: "bg-accent text-text-on-color border-transparent" },
|
|
72
|
+
{ variant: "solid", color: "teal", className: "bg-category-teal text-text-on-color border-transparent" },
|
|
73
|
+
{ variant: "solid", color: "amber", className: "bg-category-amber text-text-on-color border-transparent" },
|
|
74
|
+
{ variant: "solid", color: "slate", className: "bg-category-slate text-text-on-color border-transparent" },
|
|
75
|
+
{ variant: "solid", color: "indigo", className: "bg-category-indigo text-text-on-color border-transparent" },
|
|
76
|
+
{ variant: "solid", color: "cyan", className: "bg-category-cyan text-text-on-color border-transparent" },
|
|
77
|
+
{ variant: "solid", color: "orange", className: "bg-category-orange text-text-on-color border-transparent" },
|
|
78
|
+
{ variant: "solid", color: "emerald", className: "bg-category-emerald text-text-on-color border-transparent" },
|
|
79
|
+
// outline (border only)
|
|
80
|
+
{ variant: "outline", color: "default", className: "bg-transparent text-text-secondary border-border" },
|
|
81
|
+
{ variant: "outline", color: "info", className: "bg-transparent text-info-text border-info-border" },
|
|
82
|
+
{ variant: "outline", color: "success", className: "bg-transparent text-success-text border-success-border" },
|
|
83
|
+
{ variant: "outline", color: "error", className: "bg-transparent text-error-text border-error-border" },
|
|
84
|
+
{ variant: "outline", color: "warning", className: "bg-transparent text-warning-text border-warning-border" },
|
|
85
|
+
{ variant: "outline", color: "brand", className: "bg-transparent text-text-brand border-interactive" },
|
|
86
|
+
{ variant: "outline", color: "accent", className: "bg-transparent text-accent border-accent" },
|
|
87
|
+
{ variant: "outline", color: "teal", className: "bg-transparent text-category-teal-text border-category-teal-border" },
|
|
88
|
+
{ variant: "outline", color: "amber", className: "bg-transparent text-category-amber-text border-category-amber-border" },
|
|
89
|
+
{ variant: "outline", color: "slate", className: "bg-transparent text-category-slate-text border-category-slate-border" },
|
|
90
|
+
{ variant: "outline", color: "indigo", className: "bg-transparent text-category-indigo-text border-category-indigo-border" },
|
|
91
|
+
{ variant: "outline", color: "cyan", className: "bg-transparent text-category-cyan-text border-category-cyan-border" },
|
|
92
|
+
{ variant: "outline", color: "orange", className: "bg-transparent text-category-orange-text border-category-orange-border" },
|
|
93
|
+
{ variant: "outline", color: "emerald", className: "bg-transparent text-category-emerald-text border-category-emerald-border" }
|
|
94
|
+
],
|
|
95
|
+
defaultVariants: {
|
|
96
|
+
variant: "subtle",
|
|
97
|
+
color: "default",
|
|
98
|
+
size: "md"
|
|
39
99
|
}
|
|
40
|
-
},
|
|
41
|
-
compoundVariants: [
|
|
42
|
-
// subtle (surface bg)
|
|
43
|
-
{ variant: "subtle", color: "default", className: "bg-field text-text-secondary border-border" },
|
|
44
|
-
// "secondary" alias → same as subtle + default
|
|
45
|
-
{ variant: "secondary", color: "default", className: "bg-field text-text-secondary border-border" },
|
|
46
|
-
// "destructive" alias → solid + error
|
|
47
|
-
{ variant: "destructive", color: "default", className: "bg-error text-text-on-color border-transparent" },
|
|
48
|
-
{ variant: "destructive", color: "error", className: "bg-error text-text-on-color border-transparent" },
|
|
49
|
-
{ variant: "subtle", color: "info", className: "bg-info-surface text-info-text border-info-border" },
|
|
50
|
-
{ variant: "subtle", color: "success", className: "bg-success-surface text-success-text border-success-border" },
|
|
51
|
-
{ variant: "subtle", color: "error", className: "bg-error-surface text-error-text border-error-border" },
|
|
52
|
-
{ variant: "subtle", color: "warning", className: "bg-warning-surface text-warning-text border-warning-border" },
|
|
53
|
-
{ variant: "subtle", color: "brand", className: "bg-interactive-subtle text-text-brand border-interactive" },
|
|
54
|
-
{ variant: "subtle", color: "accent", className: "bg-accent-subtle text-accent border-accent" },
|
|
55
|
-
{ variant: "subtle", color: "teal", className: "bg-category-teal-surface text-category-teal-text border-category-teal-border" },
|
|
56
|
-
{ variant: "subtle", color: "amber", className: "bg-category-amber-surface text-category-amber-text border-category-amber-border" },
|
|
57
|
-
{ variant: "subtle", color: "slate", className: "bg-category-slate-surface text-category-slate-text border-category-slate-border" },
|
|
58
|
-
{ variant: "subtle", color: "indigo", className: "bg-category-indigo-surface text-category-indigo-text border-category-indigo-border" },
|
|
59
|
-
{ variant: "subtle", color: "cyan", className: "bg-category-cyan-surface text-category-cyan-text border-category-cyan-border" },
|
|
60
|
-
{ variant: "subtle", color: "orange", className: "bg-category-orange-surface text-category-orange-text border-category-orange-border" },
|
|
61
|
-
{ variant: "subtle", color: "emerald", className: "bg-category-emerald-surface text-category-emerald-text border-category-emerald-border" },
|
|
62
|
-
// solid (filled bg)
|
|
63
|
-
{ variant: "solid", color: "default", className: "bg-interactive text-text-on-color border-transparent" },
|
|
64
|
-
{ variant: "solid", color: "info", className: "bg-info text-text-on-color border-transparent" },
|
|
65
|
-
{ variant: "solid", color: "success", className: "bg-success text-text-on-color border-transparent" },
|
|
66
|
-
{ variant: "solid", color: "error", className: "bg-error text-text-on-color border-transparent" },
|
|
67
|
-
{ variant: "solid", color: "warning", className: "bg-warning text-text-on-color border-transparent" },
|
|
68
|
-
{ variant: "solid", color: "brand", className: "bg-interactive text-text-on-color border-transparent" },
|
|
69
|
-
{ variant: "solid", color: "accent", className: "bg-accent text-text-on-color border-transparent" },
|
|
70
|
-
{ variant: "solid", color: "teal", className: "bg-category-teal text-text-on-color border-transparent" },
|
|
71
|
-
{ variant: "solid", color: "amber", className: "bg-category-amber text-text-on-color border-transparent" },
|
|
72
|
-
{ variant: "solid", color: "slate", className: "bg-category-slate text-text-on-color border-transparent" },
|
|
73
|
-
{ variant: "solid", color: "indigo", className: "bg-category-indigo text-text-on-color border-transparent" },
|
|
74
|
-
{ variant: "solid", color: "cyan", className: "bg-category-cyan text-text-on-color border-transparent" },
|
|
75
|
-
{ variant: "solid", color: "orange", className: "bg-category-orange text-text-on-color border-transparent" },
|
|
76
|
-
{ variant: "solid", color: "emerald", className: "bg-category-emerald text-text-on-color border-transparent" },
|
|
77
|
-
// outline (border only)
|
|
78
|
-
{ variant: "outline", color: "default", className: "bg-transparent text-text-secondary border-border" },
|
|
79
|
-
{ variant: "outline", color: "info", className: "bg-transparent text-info-text border-info-border" },
|
|
80
|
-
{ variant: "outline", color: "success", className: "bg-transparent text-success-text border-success-border" },
|
|
81
|
-
{ variant: "outline", color: "error", className: "bg-transparent text-error-text border-error-border" },
|
|
82
|
-
{ variant: "outline", color: "warning", className: "bg-transparent text-warning-text border-warning-border" },
|
|
83
|
-
{ variant: "outline", color: "brand", className: "bg-transparent text-text-brand border-interactive" },
|
|
84
|
-
{ variant: "outline", color: "accent", className: "bg-transparent text-accent border-accent" },
|
|
85
|
-
{ variant: "outline", color: "teal", className: "bg-transparent text-category-teal-text border-category-teal-border" },
|
|
86
|
-
{ variant: "outline", color: "amber", className: "bg-transparent text-category-amber-text border-category-amber-border" },
|
|
87
|
-
{ variant: "outline", color: "slate", className: "bg-transparent text-category-slate-text border-category-slate-border" },
|
|
88
|
-
{ variant: "outline", color: "indigo", className: "bg-transparent text-category-indigo-text border-category-indigo-border" },
|
|
89
|
-
{ variant: "outline", color: "cyan", className: "bg-transparent text-category-cyan-text border-category-cyan-border" },
|
|
90
|
-
{ variant: "outline", color: "orange", className: "bg-transparent text-category-orange-text border-category-orange-border" },
|
|
91
|
-
{ variant: "outline", color: "emerald", className: "bg-transparent text-category-emerald-text border-category-emerald-border" }
|
|
92
|
-
],
|
|
93
|
-
defaultVariants: {
|
|
94
|
-
variant: "subtle",
|
|
95
|
-
color: "default",
|
|
96
|
-
size: "md"
|
|
97
100
|
}
|
|
98
|
-
|
|
101
|
+
), v = g.forwardRef(
|
|
102
|
+
({ className: t, variant: a, color: o, size: s, dot: n, onDismiss: e, children: c, ...l }, i) => /* @__PURE__ */ d("span", { ref: i, className: m(u({ variant: a, color: o, size: s }), t), ...l, children: [
|
|
103
|
+
n && /* @__PURE__ */ r(
|
|
104
|
+
"span",
|
|
105
|
+
{
|
|
106
|
+
className: "h-ds-02b w-ds-02b rounded-ds-full bg-current opacity-[0.7] shrink-0",
|
|
107
|
+
"aria-hidden": "true"
|
|
108
|
+
}
|
|
109
|
+
),
|
|
110
|
+
c,
|
|
111
|
+
e && /* @__PURE__ */ r(
|
|
112
|
+
"button",
|
|
113
|
+
{
|
|
114
|
+
type: "button",
|
|
115
|
+
onClick: e,
|
|
116
|
+
className: "ml-ds-01 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-full text-icon-secondary transition-colors hover:text-icon-primary hover:bg-field focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus",
|
|
117
|
+
"aria-label": "Remove",
|
|
118
|
+
children: /* @__PURE__ */ r(b, { className: "h-ico-sm w-ico-sm" })
|
|
119
|
+
}
|
|
120
|
+
)
|
|
121
|
+
] })
|
|
122
|
+
);
|
|
99
123
|
v.displayName = "Badge";
|
|
100
124
|
export {
|
|
101
125
|
v as Badge,
|
package/dist/ui/banner.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare const bannerVariants: (props?: ({
|
|
5
|
-
color?: "error" | "
|
|
5
|
+
color?: "error" | "info" | "success" | "warning" | "neutral" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
/**
|
|
8
8
|
* Props for Banner — a full-width notification strip with a colored icon, message, optional
|
package/dist/ui/banner.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
3
|
-
import { IconInfoCircle as n, IconAlertCircle as
|
|
3
|
+
import { IconInfoCircle as n, IconAlertCircle as m, IconAlertTriangle as f, IconCircleCheck as b, IconX as u } from "@tabler/icons-react";
|
|
4
4
|
import * as x from "react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { m as g } from "../_chunks/vendor.js";
|
|
6
|
+
import { c as p } from "../_chunks/utils.js";
|
|
7
7
|
const h = g(
|
|
8
8
|
"flex items-center gap-ds-04 px-ds-06 py-ds-04 text-ds-md font-medium border-b",
|
|
9
9
|
{
|
|
@@ -21,8 +21,8 @@ const h = g(
|
|
|
21
21
|
), N = {
|
|
22
22
|
info: n,
|
|
23
23
|
success: b,
|
|
24
|
-
warning:
|
|
25
|
-
error:
|
|
24
|
+
warning: f,
|
|
25
|
+
error: m,
|
|
26
26
|
neutral: n
|
|
27
27
|
}, v = x.forwardRef(
|
|
28
28
|
({ className: t, color: e = "info", action: s, onDismiss: o, children: i, ...c }, a) => {
|
package/dist/ui/breadcrumb.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as s, jsxs as i } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { S as c } from "../_chunks/primitives.js";
|
|
4
4
|
import { IconDots as n, IconChevronRight as d } from "@tabler/icons-react";
|
|
5
|
-
import * as
|
|
6
|
-
import {
|
|
7
|
-
const l =
|
|
5
|
+
import * as o from "react";
|
|
6
|
+
import { c as m } from "../_chunks/utils.js";
|
|
7
|
+
const l = o.forwardRef(({ ...e }, r) => /* @__PURE__ */ s("nav", { ref: r, "aria-label": "breadcrumb", ...e }));
|
|
8
8
|
l.displayName = "Breadcrumb";
|
|
9
|
-
const p =
|
|
9
|
+
const p = o.forwardRef(
|
|
10
10
|
({ className: e, ...r }, a) => /* @__PURE__ */ s(
|
|
11
11
|
"ol",
|
|
12
12
|
{
|
|
13
13
|
ref: a,
|
|
14
|
-
className:
|
|
14
|
+
className: m(
|
|
15
15
|
"flex flex-wrap items-center gap-ds-02b break-words text-ds-md text-text-secondary sm:gap-ds-03",
|
|
16
16
|
e
|
|
17
17
|
),
|
|
@@ -20,15 +20,15 @@ const p = m.forwardRef(
|
|
|
20
20
|
)
|
|
21
21
|
);
|
|
22
22
|
p.displayName = "BreadcrumbList";
|
|
23
|
-
const u =
|
|
24
|
-
({ className: e, ...r }, a) => /* @__PURE__ */ s("li", { ref: a, className:
|
|
23
|
+
const u = o.forwardRef(
|
|
24
|
+
({ className: e, ...r }, a) => /* @__PURE__ */ s("li", { ref: a, className: m("inline-flex items-center gap-ds-02b", e), ...r })
|
|
25
25
|
);
|
|
26
26
|
u.displayName = "BreadcrumbItem";
|
|
27
|
-
const f =
|
|
27
|
+
const f = o.forwardRef(({ className: e, asChild: r = !1, ...a }, t) => /* @__PURE__ */ s(
|
|
28
28
|
r ? c : "a",
|
|
29
29
|
{
|
|
30
30
|
ref: t,
|
|
31
|
-
className:
|
|
31
|
+
className: m(
|
|
32
32
|
"transition-colors hover:text-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus rounded-ds-sm",
|
|
33
33
|
e
|
|
34
34
|
),
|
|
@@ -36,13 +36,13 @@ const f = m.forwardRef(({ className: e, asChild: r = !1, ...a }, t) => /* @__PUR
|
|
|
36
36
|
}
|
|
37
37
|
));
|
|
38
38
|
f.displayName = "BreadcrumbLink";
|
|
39
|
-
const b =
|
|
39
|
+
const b = o.forwardRef(
|
|
40
40
|
({ className: e, ...r }, a) => /* @__PURE__ */ s(
|
|
41
41
|
"span",
|
|
42
42
|
{
|
|
43
43
|
ref: a,
|
|
44
44
|
"aria-current": "page",
|
|
45
|
-
className:
|
|
45
|
+
className: m("font-normal text-text-primary", e),
|
|
46
46
|
...r
|
|
47
47
|
}
|
|
48
48
|
)
|
|
@@ -53,7 +53,7 @@ const N = ({ children: e, className: r, ...a }) => /* @__PURE__ */ s(
|
|
|
53
53
|
{
|
|
54
54
|
role: "presentation",
|
|
55
55
|
"aria-hidden": "true",
|
|
56
|
-
className:
|
|
56
|
+
className: m("[&>svg]:h-ico-sm [&>svg]:w-ico-sm", r),
|
|
57
57
|
...a,
|
|
58
58
|
children: e ?? /* @__PURE__ */ s(d, {})
|
|
59
59
|
}
|
|
@@ -64,7 +64,7 @@ const x = ({ className: e, ...r }) => /* @__PURE__ */ i(
|
|
|
64
64
|
{
|
|
65
65
|
role: "presentation",
|
|
66
66
|
"aria-hidden": "true",
|
|
67
|
-
className:
|
|
67
|
+
className: m("flex h-ds-sm-plus w-ds-sm-plus items-center justify-center", e),
|
|
68
68
|
...r,
|
|
69
69
|
children: [
|
|
70
70
|
/* @__PURE__ */ s(n, { className: "h-ico-sm w-ico-sm" }),
|
package/dist/ui/button-group.js
CHANGED
|
@@ -1,25 +1,40 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import * as o from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { c as f } from "../_chunks/utils.js";
|
|
5
5
|
const l = o.createContext({});
|
|
6
6
|
function h() {
|
|
7
7
|
return o.useContext(l);
|
|
8
8
|
}
|
|
9
|
-
const p = o.forwardRef(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
9
|
+
const p = o.forwardRef(
|
|
10
|
+
({ className: u, variant: t, color: n, size: e, orientation: i = "horizontal", children: d, ...c }, s) => {
|
|
11
|
+
const a = o.useMemo(() => ({ variant: t, color: n, size: e }), [t, n, e]);
|
|
12
|
+
return /* @__PURE__ */ r(l.Provider, { value: a, children: /* @__PURE__ */ r(
|
|
13
|
+
"div",
|
|
14
|
+
{
|
|
15
|
+
ref: s,
|
|
16
|
+
role: "group",
|
|
17
|
+
className: f(
|
|
18
|
+
"inline-flex",
|
|
19
|
+
i === "horizontal" ? [
|
|
20
|
+
"flex-row",
|
|
21
|
+
"[&>*:not(:first-child)]:rounded-l-none",
|
|
22
|
+
"[&>*:not(:last-child)]:rounded-r-none",
|
|
23
|
+
"[&>*:not(:first-child)]:-ml-px"
|
|
24
|
+
] : [
|
|
25
|
+
"flex-col",
|
|
26
|
+
"[&>*:not(:first-child)]:rounded-t-none",
|
|
27
|
+
"[&>*:not(:last-child)]:rounded-b-none",
|
|
28
|
+
"[&>*:not(:first-child)]:-mt-px"
|
|
29
|
+
],
|
|
30
|
+
u
|
|
31
|
+
),
|
|
32
|
+
...c,
|
|
33
|
+
children: d
|
|
34
|
+
}
|
|
35
|
+
) });
|
|
36
|
+
}
|
|
37
|
+
);
|
|
23
38
|
p.displayName = "ButtonGroup";
|
|
24
39
|
export {
|
|
25
40
|
p as ButtonGroup,
|
package/dist/ui/button.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
export declare const buttonVariants: (props?: ({
|
|
5
|
-
variant?: "link" | "
|
|
5
|
+
variant?: "link" | "default" | "solid" | "outline" | "destructive" | "ghost" | null | undefined;
|
|
6
6
|
color?: "default" | "error" | null | undefined;
|
|
7
|
-
size?: "sm" | "md" | "
|
|
7
|
+
size?: "sm" | "md" | "icon" | "lg" | "icon-sm" | "icon-md" | "icon-lg" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
/**
|
|
10
10
|
* Props for Button — the primary action component with a two-axis variant system,
|
package/dist/ui/button.js
CHANGED
|
@@ -1,64 +1,66 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as r, jsxs as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { jsx as r, jsxs as x } from "react/jsx-runtime";
|
|
3
|
+
import { m as B } from "../_chunks/vendor.js";
|
|
4
|
+
import { S as R, a as E } from "../_chunks/primitives.js";
|
|
5
5
|
import * as G from "react";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
6
|
+
import { u as M, S as q } from "../_chunks/spinner.js";
|
|
7
|
+
import { c as s } from "../_chunks/utils.js";
|
|
8
|
+
const p = B(
|
|
9
|
+
"inline-flex items-center justify-center gap-ds-03 whitespace-nowrap font-sans font-semibold select-none border border-transparent transition-[color,background-color,border-color,box-shadow] duration-fast-01 ease-productive-standard focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-[0.38]",
|
|
10
|
+
{
|
|
11
|
+
variants: {
|
|
12
|
+
variant: {
|
|
13
|
+
solid: "",
|
|
14
|
+
default: "",
|
|
15
|
+
// alias → solid
|
|
16
|
+
outline: "",
|
|
17
|
+
ghost: "",
|
|
18
|
+
destructive: "",
|
|
19
|
+
// alias → solid + error
|
|
20
|
+
link: "text-text-link underline-offset-4 hover:underline active:opacity-[0.8]"
|
|
21
|
+
},
|
|
22
|
+
color: {
|
|
23
|
+
default: "",
|
|
24
|
+
error: ""
|
|
25
|
+
},
|
|
26
|
+
size: {
|
|
27
|
+
sm: "h-ds-sm rounded-ds-md px-ds-04 text-ds-sm",
|
|
28
|
+
md: "h-ds-md rounded-ds-md px-ds-05 text-ds-md",
|
|
29
|
+
lg: "h-ds-lg rounded-ds-lg px-ds-06 text-ds-base",
|
|
30
|
+
icon: "h-ds-md w-ds-md rounded-ds-md",
|
|
31
|
+
// alias → icon-md
|
|
32
|
+
"icon-sm": "h-ds-sm w-ds-sm rounded-ds-md",
|
|
33
|
+
"icon-md": "h-ds-md w-ds-md rounded-ds-md",
|
|
34
|
+
"icon-lg": "h-ds-lg w-ds-lg rounded-ds-lg"
|
|
35
|
+
}
|
|
20
36
|
},
|
|
21
|
-
|
|
22
|
-
default
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
//
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
"
|
|
37
|
+
compoundVariants: [
|
|
38
|
+
// solid + default (primary)
|
|
39
|
+
{ variant: "solid", color: "default", className: "bg-interactive text-text-on-color hover:bg-interactive-hover active:bg-interactive-active shadow-01 hover:shadow-brand" },
|
|
40
|
+
// "default" alias → same as solid + default
|
|
41
|
+
{ variant: "default", color: "default", className: "bg-interactive text-text-on-color hover:bg-interactive-hover active:bg-interactive-active shadow-01 hover:shadow-brand" },
|
|
42
|
+
{ variant: "default", color: "error", className: "bg-error text-text-on-color hover:bg-error-hover active:bg-error-hover shadow-01" },
|
|
43
|
+
// "destructive" alias → solid + error
|
|
44
|
+
{ variant: "destructive", color: "default", className: "bg-error text-text-on-color hover:bg-error-hover active:bg-error-hover shadow-01" },
|
|
45
|
+
{ variant: "destructive", color: "error", className: "bg-error text-text-on-color hover:bg-error-hover active:bg-error-hover shadow-01" },
|
|
46
|
+
// solid + error
|
|
47
|
+
{ variant: "solid", color: "error", className: "bg-error text-text-on-color hover:bg-error-hover active:bg-error-hover shadow-01" },
|
|
48
|
+
// outline + default (secondary)
|
|
49
|
+
{ variant: "outline", color: "default", className: "bg-transparent text-interactive border-border-interactive hover:bg-interactive-subtle active:bg-layer-active" },
|
|
50
|
+
// outline + error (error-ghost)
|
|
51
|
+
{ variant: "outline", color: "error", className: "bg-transparent text-error border border-border-error hover:bg-error-surface active:bg-error-surface" },
|
|
52
|
+
// ghost + default
|
|
53
|
+
{ variant: "ghost", color: "default", className: "bg-transparent text-text-secondary hover:bg-layer-02 hover:text-text-primary active:bg-layer-active" },
|
|
54
|
+
// ghost + error
|
|
55
|
+
{ variant: "ghost", color: "error", className: "bg-transparent text-error hover:bg-error-surface hover:text-error active:bg-error-surface" }
|
|
56
|
+
],
|
|
57
|
+
defaultVariants: {
|
|
58
|
+
variant: "solid",
|
|
59
|
+
color: "default",
|
|
60
|
+
size: "md"
|
|
34
61
|
}
|
|
35
|
-
},
|
|
36
|
-
compoundVariants: [
|
|
37
|
-
// solid + default (primary)
|
|
38
|
-
{ variant: "solid", color: "default", className: "bg-interactive text-text-on-color hover:bg-interactive-hover active:bg-interactive-active shadow-01 hover:shadow-brand" },
|
|
39
|
-
// "default" alias → same as solid + default
|
|
40
|
-
{ variant: "default", color: "default", className: "bg-interactive text-text-on-color hover:bg-interactive-hover active:bg-interactive-active shadow-01 hover:shadow-brand" },
|
|
41
|
-
{ variant: "default", color: "error", className: "bg-error text-text-on-color hover:bg-error-hover active:bg-error-hover shadow-01" },
|
|
42
|
-
// "destructive" alias → solid + error
|
|
43
|
-
{ variant: "destructive", color: "default", className: "bg-error text-text-on-color hover:bg-error-hover active:bg-error-hover shadow-01" },
|
|
44
|
-
{ variant: "destructive", color: "error", className: "bg-error text-text-on-color hover:bg-error-hover active:bg-error-hover shadow-01" },
|
|
45
|
-
// solid + error
|
|
46
|
-
{ variant: "solid", color: "error", className: "bg-error text-text-on-color hover:bg-error-hover active:bg-error-hover shadow-01" },
|
|
47
|
-
// outline + default (secondary)
|
|
48
|
-
{ variant: "outline", color: "default", className: "bg-transparent text-interactive border-border-interactive hover:bg-interactive-subtle active:bg-layer-active" },
|
|
49
|
-
// outline + error (error-ghost)
|
|
50
|
-
{ variant: "outline", color: "error", className: "bg-transparent text-error border border-border-error hover:bg-error-surface active:bg-error-surface" },
|
|
51
|
-
// ghost + default
|
|
52
|
-
{ variant: "ghost", color: "default", className: "bg-transparent text-text-secondary hover:bg-layer-02 hover:text-text-primary active:bg-layer-active" },
|
|
53
|
-
// ghost + error
|
|
54
|
-
{ variant: "ghost", color: "error", className: "bg-transparent text-error hover:bg-error-surface hover:text-error active:bg-error-surface" }
|
|
55
|
-
],
|
|
56
|
-
defaultVariants: {
|
|
57
|
-
variant: "solid",
|
|
58
|
-
color: "default",
|
|
59
|
-
size: "md"
|
|
60
62
|
}
|
|
61
|
-
|
|
63
|
+
), A = {
|
|
62
64
|
sm: "h-ico-sm w-ico-sm [&>svg]:h-ico-sm [&>svg]:w-ico-sm",
|
|
63
65
|
md: "h-ico-sm w-ico-sm [&>svg]:h-ico-sm [&>svg]:w-ico-sm",
|
|
64
66
|
lg: "h-ico-md w-ico-md [&>svg]:h-ico-md [&>svg]:w-ico-md",
|
|
@@ -74,23 +76,64 @@ const x = B("inline-flex items-center justify-center gap-ds-03 whitespace-nowrap
|
|
|
74
76
|
"icon-sm": "sm",
|
|
75
77
|
"icon-md": "sm",
|
|
76
78
|
"icon-lg": "md"
|
|
77
|
-
}, F = G.forwardRef(
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
79
|
+
}, F = G.forwardRef(
|
|
80
|
+
({
|
|
81
|
+
className: c,
|
|
82
|
+
variant: w,
|
|
83
|
+
color: N,
|
|
84
|
+
size: y,
|
|
85
|
+
asChild: S = !1,
|
|
86
|
+
startIcon: d,
|
|
87
|
+
endIcon: l,
|
|
88
|
+
loading: e = !1,
|
|
89
|
+
loadingPosition: t = "start",
|
|
90
|
+
fullWidth: m = !1,
|
|
91
|
+
disabled: v,
|
|
92
|
+
children: i,
|
|
93
|
+
...u
|
|
94
|
+
}, h) => {
|
|
95
|
+
const a = M(), b = w ?? a.variant, g = N ?? a.color, o = y ?? a.size ?? "md", f = A[o], z = D[o], n = e ? /* @__PURE__ */ r(q, { size: z }) : null;
|
|
96
|
+
if (S) {
|
|
97
|
+
const V = {
|
|
98
|
+
className: s(
|
|
99
|
+
p({ variant: b, color: g, size: o }),
|
|
100
|
+
m && "w-full",
|
|
101
|
+
c
|
|
102
|
+
),
|
|
103
|
+
ref: h,
|
|
104
|
+
disabled: v || e,
|
|
105
|
+
"aria-busy": e || void 0,
|
|
106
|
+
...u
|
|
107
|
+
};
|
|
108
|
+
return /* @__PURE__ */ r(R, { ...V, children: /* @__PURE__ */ r(E, { children: i }) });
|
|
109
|
+
}
|
|
110
|
+
const j = () => e && t === "start" ? n : d ? /* @__PURE__ */ r("span", { className: s("inline-flex shrink-0 items-center justify-center", f), children: d }) : null, k = () => e && t === "end" ? n : l ? /* @__PURE__ */ r("span", { className: s("inline-flex shrink-0 items-center justify-center", f), children: l }) : null, C = () => e && t === "center" ? /* @__PURE__ */ x("span", { className: "relative inline-flex items-center justify-center", children: [
|
|
111
|
+
/* @__PURE__ */ r("span", { className: "invisible", children: i }),
|
|
112
|
+
/* @__PURE__ */ r("span", { className: "absolute inset-0 flex items-center justify-center", children: n })
|
|
113
|
+
] }) : i;
|
|
114
|
+
return /* @__PURE__ */ x(
|
|
115
|
+
"button",
|
|
116
|
+
{
|
|
117
|
+
className: s(
|
|
118
|
+
p({ variant: b, color: g, size: o }),
|
|
119
|
+
m && "w-full",
|
|
120
|
+
c
|
|
121
|
+
),
|
|
122
|
+
ref: h,
|
|
123
|
+
disabled: v || e,
|
|
124
|
+
"aria-busy": e || void 0,
|
|
125
|
+
...u,
|
|
126
|
+
children: [
|
|
127
|
+
j(),
|
|
128
|
+
C(),
|
|
129
|
+
k()
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
);
|
|
88
133
|
}
|
|
89
|
-
|
|
90
|
-
return p("button", { className: t(x({ variant: b, color: f, size: o }), m && "w-full", c), ref: h, disabled: v || e, "aria-busy": e || void 0, ...u, children: [j(), C(), k()] });
|
|
91
|
-
});
|
|
134
|
+
);
|
|
92
135
|
F.displayName = "Button";
|
|
93
136
|
export {
|
|
94
137
|
F as Button,
|
|
95
|
-
|
|
138
|
+
p as buttonVariants
|
|
96
139
|
};
|