@devalok/shilp-sutra 0.17.2 → 0.18.1
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/framer.js +1376 -0
- package/dist/_chunks/link-context.js +19 -0
- package/dist/_chunks/motion-provider.js +24 -0
- package/dist/_chunks/primitives.js +3499 -3920
- package/dist/_chunks/tiptap.js +1 -1
- package/dist/_chunks/tree-view.js +183 -181
- package/dist/_chunks/use-calendar.js +531 -515
- package/dist/_chunks/vendor-client.js +1792 -1049
- package/dist/_chunks/vendor-utils.js +5123 -1169
- package/dist/composed/activity-feed.d.ts.map +1 -1
- package/dist/composed/activity-feed.js +75 -78
- package/dist/composed/avatar-group.js +33 -33
- package/dist/composed/command-palette.d.ts +1 -1
- package/dist/composed/command-palette.d.ts.map +1 -1
- package/dist/composed/command-palette.js +207 -158
- package/dist/composed/confirm-dialog.d.ts +3 -5
- package/dist/composed/confirm-dialog.d.ts.map +1 -1
- package/dist/composed/confirm-dialog.js +47 -42
- package/dist/composed/content-card.d.ts +1 -1
- package/dist/composed/content-card.js +30 -30
- package/dist/composed/date-picker/calendar-grid.d.ts +1 -1
- package/dist/composed/date-picker/calendar-grid.d.ts.map +1 -1
- package/dist/composed/date-picker/date-picker.d.ts +1 -1
- package/dist/composed/date-picker/date-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/date-range-picker.d.ts +1 -1
- package/dist/composed/date-picker/date-range-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/date-time-picker.d.ts +1 -1
- package/dist/composed/date-picker/date-time-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/month-picker.d.ts +1 -1
- package/dist/composed/date-picker/month-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/presets.d.ts +1 -1
- package/dist/composed/date-picker/presets.d.ts.map +1 -1
- package/dist/composed/date-picker/time-picker.d.ts +1 -1
- package/dist/composed/date-picker/time-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/year-picker.d.ts +1 -1
- package/dist/composed/date-picker/year-picker.d.ts.map +1 -1
- package/dist/composed/empty-state.d.ts +1 -0
- package/dist/composed/empty-state.d.ts.map +1 -1
- package/dist/composed/empty-state.js +51 -47
- package/dist/composed/error-boundary.d.ts +1 -1
- package/dist/composed/error-boundary.d.ts.map +1 -1
- package/dist/composed/error-boundary.js +48 -48
- package/dist/composed/extensions/mention-suggestion.d.ts +1 -1
- package/dist/composed/extensions/mention-suggestion.d.ts.map +1 -1
- package/dist/composed/global-loading.d.ts +1 -1
- package/dist/composed/global-loading.d.ts.map +1 -1
- package/dist/composed/global-loading.js +22 -19
- package/dist/composed/index.d.ts +2 -4
- package/dist/composed/index.d.ts.map +1 -1
- package/dist/composed/index.js +26 -29
- package/dist/composed/lib/string-utils.d.ts +0 -1
- package/dist/composed/lib/string-utils.js +0 -1
- package/dist/composed/loading-skeleton.d.ts +1 -1
- package/dist/composed/loading-skeleton.d.ts.map +1 -1
- package/dist/composed/loading-skeleton.js +92 -87
- package/dist/composed/member-picker.d.ts +1 -1
- package/dist/composed/member-picker.d.ts.map +1 -1
- package/dist/composed/member-picker.js +47 -43
- package/dist/composed/page-header.js +36 -36
- package/dist/composed/page-skeletons.d.ts +9 -3
- package/dist/composed/page-skeletons.d.ts.map +1 -1
- package/dist/composed/page-skeletons.js +58 -58
- package/dist/composed/priority-indicator.js +24 -24
- package/dist/composed/rich-text-editor.d.ts +3 -3
- package/dist/composed/rich-text-editor.d.ts.map +1 -1
- package/dist/composed/rich-text-editor.js +317 -310
- package/dist/composed/schedule-view.js +84 -84
- package/dist/composed/simple-tooltip.d.ts +2 -5
- package/dist/composed/simple-tooltip.d.ts.map +1 -1
- package/dist/composed/simple-tooltip.js +19 -14
- package/dist/composed/status-badge.d.ts +2 -1
- package/dist/composed/status-badge.d.ts.map +1 -1
- package/dist/composed/status-badge.js +81 -68
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +3 -4
- package/dist/hooks/use-toast.d.ts +15 -45
- package/dist/hooks/use-toast.d.ts.map +1 -1
- package/dist/hooks/use-toast.js +2 -95
- package/dist/motion/index.d.ts +4 -0
- package/dist/motion/index.d.ts.map +1 -0
- package/dist/motion/index.js +12 -0
- package/dist/motion/motion-provider.d.ts +18 -0
- package/dist/motion/motion-provider.d.ts.map +1 -0
- package/dist/motion/primitives-index.d.ts +3 -0
- package/dist/motion/primitives-index.d.ts.map +1 -0
- package/dist/motion/primitives-index.js +187 -0
- package/dist/motion/primitives.d.ts +38 -0
- package/dist/motion/primitives.d.ts.map +1 -0
- package/dist/shell/app-command-palette.d.ts +14 -5
- package/dist/shell/app-command-palette.d.ts.map +1 -1
- package/dist/shell/app-command-palette.js +152 -130
- package/dist/shell/bottom-navbar.d.ts.map +1 -1
- package/dist/shell/bottom-navbar.js +90 -92
- package/dist/shell/command-registry.d.ts +23 -0
- package/dist/shell/command-registry.d.ts.map +1 -0
- package/dist/shell/command-registry.js +18 -0
- package/dist/shell/index.d.ts +2 -1
- package/dist/shell/index.d.ts.map +1 -1
- package/dist/shell/index.js +14 -11
- package/dist/shell/link-context.d.ts +6 -10
- package/dist/shell/link-context.d.ts.map +1 -1
- package/dist/shell/link-context.js +3 -16
- package/dist/shell/notification-center.d.ts.map +1 -1
- package/dist/shell/notification-center.js +129 -124
- package/dist/shell/notification-preferences.d.ts +10 -5
- package/dist/shell/notification-preferences.d.ts.map +1 -1
- package/dist/shell/notification-preferences.js +169 -165
- package/dist/shell/sidebar.js +104 -104
- package/dist/shell/top-bar.js +67 -67
- package/dist/tailwind/index.cjs +118 -297
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +118 -297
- package/dist/tokens/generate-scale.d.ts +86 -0
- package/dist/tokens/generate-scale.d.ts.map +1 -0
- package/dist/tokens/primitives.css +415 -187
- package/dist/tokens/semantic.css +244 -270
- package/dist/tokens/typography.css +6 -6
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/accordion.js +34 -24
- package/dist/ui/alert-dialog.d.ts +4 -1
- package/dist/ui/alert-dialog.d.ts.map +1 -1
- package/dist/ui/alert-dialog.js +115 -74
- package/dist/ui/alert.d.ts +6 -1
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +65 -50
- package/dist/ui/aspect-ratio.d.ts +2 -1
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/aspect-ratio.js +14 -4
- package/dist/ui/autocomplete.d.ts +11 -2
- package/dist/ui/autocomplete.d.ts.map +1 -1
- package/dist/ui/autocomplete.js +85 -60
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +46 -35
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +72 -67
- package/dist/ui/banner.d.ts.map +1 -1
- package/dist/ui/banner.js +54 -40
- package/dist/ui/breadcrumb.d.ts +2 -0
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/breadcrumb.js +19 -19
- package/dist/ui/button-group.js +4 -4
- package/dist/ui/button.d.ts +10 -1
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +102 -66
- package/dist/ui/card.d.ts +2 -2
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +61 -53
- package/dist/ui/charts/_internal/animation.d.ts +1 -1
- package/dist/ui/charts/_internal/animation.d.ts.map +1 -1
- package/dist/ui/charts/area-chart.d.ts +3 -5
- package/dist/ui/charts/area-chart.d.ts.map +1 -1
- package/dist/ui/charts/bar-chart.d.ts +3 -5
- package/dist/ui/charts/bar-chart.d.ts.map +1 -1
- package/dist/ui/charts/chart-container.d.ts +2 -5
- package/dist/ui/charts/chart-container.d.ts.map +1 -1
- package/dist/ui/charts/gauge-chart.d.ts +3 -5
- package/dist/ui/charts/gauge-chart.d.ts.map +1 -1
- package/dist/ui/charts/index.js +1204 -1095
- package/dist/ui/charts/line-chart.d.ts +3 -5
- package/dist/ui/charts/line-chart.d.ts.map +1 -1
- package/dist/ui/charts/pie-chart.d.ts +2 -5
- package/dist/ui/charts/pie-chart.d.ts.map +1 -1
- package/dist/ui/charts/radar-chart.d.ts +3 -5
- package/dist/ui/charts/radar-chart.d.ts.map +1 -1
- package/dist/ui/charts/sparkline.d.ts +5 -5
- package/dist/ui/charts/sparkline.d.ts.map +1 -1
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +31 -19
- package/dist/ui/chip.d.ts +3 -2
- package/dist/ui/chip.d.ts.map +1 -1
- package/dist/ui/chip.js +58 -50
- package/dist/ui/code.js +16 -16
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/collapsible.js +23 -15
- package/dist/ui/color-input.d.ts +1 -1
- package/dist/ui/color-input.d.ts.map +1 -1
- package/dist/ui/color-input.js +27 -27
- package/dist/ui/combobox.d.ts +2 -0
- package/dist/ui/combobox.d.ts.map +1 -1
- package/dist/ui/combobox.js +177 -166
- package/dist/ui/container.js +4 -4
- package/dist/ui/context-menu.d.ts +4 -2
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +147 -87
- package/dist/ui/data-table-toolbar.d.ts +3 -2
- package/dist/ui/data-table-toolbar.d.ts.map +1 -1
- package/dist/ui/data-table-toolbar.js +65 -63
- package/dist/ui/data-table.d.ts.map +1 -1
- package/dist/ui/data-table.js +275 -240
- package/dist/ui/dialog.d.ts +3 -1
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +114 -74
- package/dist/ui/dropdown-menu.d.ts +5 -3
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.js +151 -90
- package/dist/ui/file-upload.d.ts.map +1 -1
- package/dist/ui/file-upload.js +170 -128
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +30 -27
- package/dist/ui/hover-card.d.ts +1 -1
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/hover-card.js +53 -21
- package/dist/ui/icon-button.js +9 -9
- package/dist/ui/index.d.ts +18 -18
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +322 -533
- package/dist/ui/input-otp.d.ts +2 -0
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/input-otp.js +8 -8
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +35 -33
- package/dist/ui/label.js +12 -12
- package/dist/ui/lib/date-utils.d.ts +5 -0
- package/dist/ui/lib/date-utils.d.ts.map +1 -0
- package/dist/ui/lib/date-utils.js +12 -0
- package/dist/ui/lib/index.d.ts +7 -0
- package/dist/ui/lib/index.d.ts.map +1 -0
- package/dist/ui/lib/link-context.d.ts +13 -0
- package/dist/ui/lib/link-context.d.ts.map +1 -0
- package/dist/ui/lib/motion.d.ts +44 -9
- package/dist/ui/lib/motion.d.ts.map +1 -1
- package/dist/ui/lib/motion.js +34 -0
- package/dist/ui/lib/use-ripple.d.ts.map +1 -1
- package/dist/ui/lib/utils.js +1 -1
- package/dist/ui/link.js +11 -11
- package/dist/ui/menubar.d.ts +4 -2
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +142 -98
- package/dist/ui/navigation-menu.d.ts +2 -0
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +176 -73
- package/dist/ui/number-input.d.ts.map +1 -1
- package/dist/ui/number-input.js +58 -51
- package/dist/ui/pagination.js +23 -23
- package/dist/ui/popover.d.ts +2 -1
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/popover.js +54 -22
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +58 -42
- package/dist/ui/radio.js +15 -15
- package/dist/ui/search-input.d.ts.map +1 -1
- package/dist/ui/search-input.js +28 -33
- package/dist/ui/segmented-control.d.ts +4 -2
- package/dist/ui/segmented-control.d.ts.map +1 -1
- package/dist/ui/segmented-control.js +146 -123
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +75 -64
- package/dist/ui/separator.js +12 -12
- package/dist/ui/sheet.d.ts +1 -1
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +111 -75
- package/dist/ui/sidebar.d.ts +6 -1
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +574 -36
- package/dist/ui/skeleton.js +2 -2
- package/dist/ui/slider.d.ts +9 -0
- package/dist/ui/slider.d.ts.map +1 -1
- package/dist/ui/slider.js +33 -27
- package/dist/ui/spinner.d.ts +32 -25
- package/dist/ui/spinner.d.ts.map +1 -1
- package/dist/ui/spinner.js +199 -40
- package/dist/ui/stack.js +1 -1
- package/dist/ui/stat-card.d.ts.map +1 -1
- package/dist/ui/stat-card.js +181 -114
- package/dist/ui/stepper.d.ts +23 -4
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/stepper.js +126 -48
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +39 -26
- package/dist/ui/table.d.ts +3 -0
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/table.js +29 -29
- package/dist/ui/tabs.d.ts +4 -1
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +94 -44
- package/dist/ui/text.d.ts +3 -3
- package/dist/ui/text.js +2 -2
- package/dist/ui/textarea.d.ts.map +1 -1
- package/dist/ui/textarea.js +27 -25
- package/dist/ui/toast-types.d.ts +43 -0
- package/dist/ui/toast-types.d.ts.map +1 -0
- package/dist/ui/toast-types.js +2 -0
- package/dist/ui/toast.d.ts +60 -26
- package/dist/ui/toast.d.ts.map +1 -1
- package/dist/ui/toast.js +535 -89
- package/dist/ui/toaster.d.ts +19 -23
- package/dist/ui/toaster.d.ts.map +1 -1
- package/dist/ui/toaster.js +31 -21
- package/dist/ui/toggle-group.d.ts +2 -2
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle-group.js +29 -26
- package/dist/ui/toggle.d.ts +2 -2
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/toggle.js +21 -17
- package/dist/ui/tooltip.d.ts +2 -1
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/dist/ui/tooltip.js +58 -21
- package/dist/ui/tree-view/tree-view.d.ts +1 -1
- package/dist/ui/tree-view/tree-view.d.ts.map +1 -1
- package/dist/ui/visually-hidden.js +3 -3
- package/llms-full.txt +3440 -1528
- package/llms.txt +67 -14
- package/package.json +50 -9
- package/dist/_chunks/avatar.js +0 -50
- package/dist/_chunks/button.js +0 -95
- package/dist/_chunks/checkbox.js +0 -14
- package/dist/_chunks/form.js +0 -27
- package/dist/_chunks/sidebar.js +0 -592
- package/dist/_chunks/spinner.js +0 -34
- package/dist/_chunks/switch.js +0 -10
- package/dist/_chunks/tooltip.js +0 -13
- package/dist/_chunks/utils.js +0 -17
- package/dist/composed/upload-progress.d.ts +0 -33
- package/dist/composed/upload-progress.d.ts.map +0 -1
- package/dist/composed/upload-progress.js +0 -386
- package/dist/ui/lib/use-reduced-motion.d.ts +0 -4
- package/dist/ui/lib/use-reduced-motion.d.ts.map +0 -1
- package/dist/ui/transitions.d.ts +0 -17
- package/dist/ui/transitions.d.ts.map +0 -1
- package/dist/ui/transitions.js +0 -111
package/dist/ui/accordion.js
CHANGED
|
@@ -1,47 +1,57 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
2
|
+
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
3
|
+
import * as i from "react";
|
|
4
|
+
import { I as m, H as f, T as n, C as c, R as l } from "../_chunks/primitives.js";
|
|
5
5
|
import { IconChevronDown as p } from "@tabler/icons-react";
|
|
6
|
-
import {
|
|
7
|
-
|
|
6
|
+
import { cn as s } from "./lib/utils.js";
|
|
7
|
+
import { tweens as u } from "./lib/motion.js";
|
|
8
|
+
import { m as N } from "../_chunks/framer.js";
|
|
9
|
+
const I = l, w = i.forwardRef(({ className: o, ...a }, t) => /* @__PURE__ */ e(
|
|
8
10
|
m,
|
|
9
11
|
{
|
|
10
12
|
ref: t,
|
|
11
|
-
className:
|
|
12
|
-
...
|
|
13
|
+
className: s("border-b border-surface-border", o),
|
|
14
|
+
...a
|
|
13
15
|
}
|
|
14
16
|
));
|
|
15
|
-
|
|
16
|
-
const x =
|
|
17
|
+
w.displayName = "AccordionItem";
|
|
18
|
+
const x = i.forwardRef(({ className: o, children: a, ...t }, r) => /* @__PURE__ */ e(f, { className: "flex", children: /* @__PURE__ */ d(
|
|
17
19
|
n,
|
|
18
20
|
{
|
|
19
|
-
ref:
|
|
20
|
-
className:
|
|
21
|
-
"flex flex-1 items-center justify-between py-ds-05 text-left text-ds-md font-medium
|
|
22
|
-
|
|
21
|
+
ref: r,
|
|
22
|
+
className: s(
|
|
23
|
+
"group flex flex-1 items-center justify-between py-ds-05 text-left text-ds-md font-medium hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
|
|
24
|
+
o
|
|
23
25
|
),
|
|
24
26
|
...t,
|
|
25
27
|
children: [
|
|
26
|
-
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
+
a,
|
|
29
|
+
/* @__PURE__ */ e(p, { className: "h-ico-sm w-ico-sm shrink-0 text-surface-fg-muted transition-transform duration-200 group-data-[state=open]:rotate-180" })
|
|
28
30
|
]
|
|
29
31
|
}
|
|
30
32
|
) }));
|
|
31
33
|
x.displayName = n.displayName;
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
+
const b = i.forwardRef(({ className: o, children: a, ...t }, r) => /* @__PURE__ */ e(
|
|
35
|
+
c,
|
|
34
36
|
{
|
|
35
|
-
ref:
|
|
36
|
-
className: "
|
|
37
|
+
ref: r,
|
|
38
|
+
className: "w-full overflow-hidden text-ds-md data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up",
|
|
37
39
|
...t,
|
|
38
|
-
children: /* @__PURE__ */
|
|
40
|
+
children: /* @__PURE__ */ e(
|
|
41
|
+
N.div,
|
|
42
|
+
{
|
|
43
|
+
initial: !1,
|
|
44
|
+
animate: { opacity: 1 },
|
|
45
|
+
transition: u.fade,
|
|
46
|
+
children: /* @__PURE__ */ e("div", { className: s("pb-ds-05 pt-0", o), children: a })
|
|
47
|
+
}
|
|
48
|
+
)
|
|
39
49
|
}
|
|
40
50
|
));
|
|
41
|
-
|
|
51
|
+
b.displayName = c.displayName;
|
|
42
52
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
53
|
+
I as Accordion,
|
|
54
|
+
b as AccordionContent,
|
|
55
|
+
w as AccordionItem,
|
|
46
56
|
x as AccordionTrigger
|
|
47
57
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as AlertDialogPrimitive from '../primitives/react-alert-dialog';
|
|
4
|
-
declare const AlertDialog: React.FC<AlertDialogPrimitive.
|
|
4
|
+
declare const AlertDialog: React.FC<React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Root>>;
|
|
5
5
|
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
6
|
declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
7
7
|
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -12,5 +12,8 @@ declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialog
|
|
|
12
12
|
declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
13
13
|
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
14
14
|
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
export type AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>;
|
|
16
|
+
export type AlertDialogActionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>;
|
|
17
|
+
export type AlertDialogCancelProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>;
|
|
15
18
|
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
16
19
|
//# sourceMappingURL=alert-dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../src/ui/alert-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,oBAAoB,MAAM,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../src/ui/alert-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,oBAAoB,MAAM,gCAAgC,CAAA;AAYtE,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,CAyB3F,CAAA;AAGD,QAAA,MAAM,kBAAkB,wHAA+B,CAAA;AAEvD,QAAA,MAAM,iBAAiB,uDAA8B,CAAA;AAErD,QAAA,MAAM,kBAAkB,wKAatB,CAAA;AAGF,QAAA,MAAM,kBAAkB,wKAyCtB,CAAA;AAGF,QAAA,MAAM,iBAAiB,6GAWtB,CAAA;AAGD,QAAA,MAAM,iBAAiB,6GAWtB,CAAA;AAGD,QAAA,MAAM,gBAAgB,8KAYpB,CAAA;AAGF,QAAA,MAAM,sBAAsB,wLAS1B,CAAA;AAIF,QAAA,MAAM,iBAAiB,6KAYrB,CAAA;AAGF,QAAA,MAAM,iBAAiB,6KAYrB,CAAA;AAGF,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,CAAA;AACzG,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,CAAA;AACvG,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,CAAA;AAEvG,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAClB,CAAA"}
|
package/dist/ui/alert-dialog.js
CHANGED
|
@@ -1,118 +1,159 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as s, jsxs as
|
|
2
|
+
import { jsx as s, jsxs as h } from "react/jsx-runtime";
|
|
3
3
|
import * as o from "react";
|
|
4
|
-
import { O as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import { O as p, w as R, x as u, y as g, D as x, A as y, z as b, B as C, E as j } from "../_chunks/primitives.js";
|
|
5
|
+
import { cn as i } from "./lib/utils.js";
|
|
6
|
+
import { tweens as f, springs as M } from "./lib/motion.js";
|
|
7
|
+
import { A as T, m } from "../_chunks/framer.js";
|
|
8
|
+
const v = o.createContext({ open: !1 }), z = () => o.useContext(v), P = ({
|
|
9
|
+
open: t,
|
|
10
|
+
defaultOpen: a,
|
|
11
|
+
onOpenChange: e,
|
|
12
|
+
...r
|
|
13
|
+
}) => {
|
|
14
|
+
const [l, A] = o.useState(a ?? !1), n = t !== void 0, d = n ? t : l, D = o.useCallback(
|
|
15
|
+
(c) => {
|
|
16
|
+
n || A(c), e == null || e(c);
|
|
17
|
+
},
|
|
18
|
+
[n, e]
|
|
19
|
+
), w = o.useMemo(() => ({ open: d }), [d]);
|
|
20
|
+
return /* @__PURE__ */ s(v.Provider, { value: w, children: /* @__PURE__ */ s(C, { open: d, onOpenChange: D, ...r }) });
|
|
21
|
+
};
|
|
22
|
+
P.displayName = "AlertDialog";
|
|
23
|
+
const L = j, F = R, N = o.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s(
|
|
24
|
+
p,
|
|
8
25
|
{
|
|
9
|
-
ref:
|
|
26
|
+
ref: e,
|
|
27
|
+
forceMount: !0,
|
|
10
28
|
className: i(
|
|
11
|
-
"fixed inset-0 z-modal bg-overlay
|
|
12
|
-
|
|
29
|
+
"fixed inset-0 z-modal bg-overlay",
|
|
30
|
+
t
|
|
13
31
|
),
|
|
14
|
-
...
|
|
32
|
+
...a
|
|
15
33
|
}
|
|
16
34
|
));
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
/* @__PURE__ */ s(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
N.displayName = p.displayName;
|
|
36
|
+
const H = o.forwardRef(({ className: t, children: a, ...e }, r) => {
|
|
37
|
+
const { open: l } = z();
|
|
38
|
+
return /* @__PURE__ */ s(T, { children: l && /* @__PURE__ */ h(F, { forceMount: !0, children: [
|
|
39
|
+
/* @__PURE__ */ s(N, { asChild: !0, children: /* @__PURE__ */ s(
|
|
40
|
+
m.div,
|
|
41
|
+
{
|
|
42
|
+
initial: { opacity: 0 },
|
|
43
|
+
animate: { opacity: 1 },
|
|
44
|
+
exit: { opacity: 0 },
|
|
45
|
+
transition: f.fade
|
|
46
|
+
}
|
|
47
|
+
) }),
|
|
48
|
+
/* @__PURE__ */ s(
|
|
49
|
+
u,
|
|
50
|
+
{
|
|
51
|
+
ref: r,
|
|
52
|
+
forceMount: !0,
|
|
53
|
+
asChild: !0,
|
|
54
|
+
...e,
|
|
55
|
+
children: /* @__PURE__ */ s(
|
|
56
|
+
m.div,
|
|
57
|
+
{
|
|
58
|
+
initial: { opacity: 0, scale: 0.95 },
|
|
59
|
+
animate: { opacity: 1, scale: 1 },
|
|
60
|
+
exit: { opacity: 0, scale: 0.95 },
|
|
61
|
+
transition: { ...M.smooth, opacity: f.fade },
|
|
62
|
+
className: i(
|
|
63
|
+
"fixed left-[50%] top-[50%] z-modal grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-ds-05 border border-surface-border-strong bg-surface-1 p-ds-06 shadow-04 rounded-ds-xl",
|
|
64
|
+
t
|
|
65
|
+
),
|
|
66
|
+
children: a
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
] }) });
|
|
72
|
+
});
|
|
73
|
+
H.displayName = u.displayName;
|
|
74
|
+
const O = o.forwardRef(
|
|
75
|
+
({ className: t, ...a }, e) => /* @__PURE__ */ s(
|
|
35
76
|
"div",
|
|
36
77
|
{
|
|
37
|
-
ref:
|
|
78
|
+
ref: e,
|
|
38
79
|
className: i(
|
|
39
80
|
"flex flex-col space-y-ds-02b text-center sm:text-left",
|
|
40
|
-
|
|
81
|
+
t
|
|
41
82
|
),
|
|
42
|
-
...
|
|
83
|
+
...a
|
|
43
84
|
}
|
|
44
85
|
)
|
|
45
86
|
);
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
({ className:
|
|
87
|
+
O.displayName = "AlertDialogHeader";
|
|
88
|
+
const k = o.forwardRef(
|
|
89
|
+
({ className: t, ...a }, e) => /* @__PURE__ */ s(
|
|
49
90
|
"div",
|
|
50
91
|
{
|
|
51
|
-
ref:
|
|
92
|
+
ref: e,
|
|
52
93
|
className: i(
|
|
53
94
|
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-ds-03",
|
|
54
|
-
|
|
95
|
+
t
|
|
55
96
|
),
|
|
56
|
-
...
|
|
97
|
+
...a
|
|
57
98
|
}
|
|
58
99
|
)
|
|
59
100
|
);
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
|
|
101
|
+
k.displayName = "AlertDialogFooter";
|
|
102
|
+
const B = o.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s(
|
|
103
|
+
g,
|
|
63
104
|
{
|
|
64
|
-
ref:
|
|
105
|
+
ref: e,
|
|
65
106
|
className: i(
|
|
66
107
|
"text-ds-lg font-semibold",
|
|
67
|
-
|
|
108
|
+
t
|
|
68
109
|
),
|
|
69
|
-
...
|
|
110
|
+
...a
|
|
70
111
|
}
|
|
71
112
|
));
|
|
72
|
-
|
|
73
|
-
const
|
|
74
|
-
|
|
113
|
+
B.displayName = g.displayName;
|
|
114
|
+
const E = o.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s(
|
|
115
|
+
x,
|
|
75
116
|
{
|
|
76
|
-
ref:
|
|
77
|
-
className: i("text-ds-md text-
|
|
78
|
-
...
|
|
117
|
+
ref: e,
|
|
118
|
+
className: i("text-ds-md text-surface-fg-muted", t),
|
|
119
|
+
...a
|
|
79
120
|
}
|
|
80
121
|
));
|
|
81
|
-
|
|
82
|
-
const
|
|
83
|
-
|
|
122
|
+
E.displayName = x.displayName;
|
|
123
|
+
const I = o.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s(
|
|
124
|
+
y,
|
|
84
125
|
{
|
|
85
|
-
ref:
|
|
126
|
+
ref: e,
|
|
86
127
|
className: i(
|
|
87
|
-
"inline-flex h-ds-md items-center justify-center rounded-ds-md px-ds-05 text-ds-md font-semibold transition-colors bg-
|
|
88
|
-
|
|
128
|
+
"inline-flex h-ds-md items-center justify-center rounded-ds-md px-ds-05 text-ds-md font-semibold transition-colors bg-accent-9 text-accent-fg hover:bg-accent-10 active:bg-accent-10 shadow-01 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled",
|
|
129
|
+
t
|
|
89
130
|
),
|
|
90
|
-
...
|
|
131
|
+
...a
|
|
91
132
|
}
|
|
92
133
|
));
|
|
93
|
-
|
|
94
|
-
const
|
|
95
|
-
|
|
134
|
+
I.displayName = y.displayName;
|
|
135
|
+
const S = o.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ s(
|
|
136
|
+
b,
|
|
96
137
|
{
|
|
97
|
-
ref:
|
|
138
|
+
ref: e,
|
|
98
139
|
className: i(
|
|
99
|
-
"inline-flex h-ds-md items-center justify-center rounded-ds-md px-ds-05 text-ds-md font-semibold transition-colors bg-transparent text-
|
|
100
|
-
|
|
140
|
+
"inline-flex h-ds-md items-center justify-center rounded-ds-md px-ds-05 text-ds-md font-semibold transition-colors bg-transparent text-surface-fg-muted border border-surface-border-strong hover:bg-surface-2 hover:text-surface-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled",
|
|
141
|
+
t
|
|
101
142
|
),
|
|
102
|
-
...
|
|
143
|
+
...a
|
|
103
144
|
}
|
|
104
145
|
));
|
|
105
|
-
|
|
146
|
+
S.displayName = b.displayName;
|
|
106
147
|
export {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
148
|
+
P as AlertDialog,
|
|
149
|
+
I as AlertDialogAction,
|
|
150
|
+
S as AlertDialogCancel,
|
|
151
|
+
H as AlertDialogContent,
|
|
152
|
+
E as AlertDialogDescription,
|
|
153
|
+
k as AlertDialogFooter,
|
|
154
|
+
O as AlertDialogHeader,
|
|
155
|
+
N as AlertDialogOverlay,
|
|
156
|
+
F as AlertDialogPortal,
|
|
157
|
+
B as AlertDialogTitle,
|
|
158
|
+
L as AlertDialogTrigger
|
|
118
159
|
};
|
package/dist/ui/alert.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 alertVariants: (props?: ({
|
|
5
|
-
variant?: "
|
|
5
|
+
variant?: "outline" | "filled" | "subtle" | null | undefined;
|
|
6
6
|
color?: "error" | "info" | "success" | "warning" | "neutral" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
/**
|
|
@@ -44,6 +44,11 @@ declare const alertVariants: (props?: ({
|
|
|
44
44
|
*/
|
|
45
45
|
export interface AlertProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>, VariantProps<typeof alertVariants> {
|
|
46
46
|
title?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Called after the exit animation completes, not immediately on click.
|
|
49
|
+
* The dismiss button sets internal visibility to false, triggering the exit
|
|
50
|
+
* animation; `onDismiss` fires via `AnimatePresence.onExitComplete`.
|
|
51
|
+
*/
|
|
47
52
|
onDismiss?: () => void;
|
|
48
53
|
}
|
|
49
54
|
declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
|
package/dist/ui/alert.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/ui/alert.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/ui/alert.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAKjE,QAAA,MAAM,aAAa;;;8EAuClB,CAAA;AAUD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,EACzD,YAAY,CAAC,OAAO,aAAa,CAAC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED,QAAA,MAAM,KAAK,mFA0CV,CAAA;AAGD,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA"}
|
package/dist/ui/alert.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { IconInfoCircle as
|
|
4
|
-
import * as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
2
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { IconInfoCircle as o, IconAlertCircle as x, IconAlertTriangle as v, IconCircleCheck as p, IconX as N } from "@tabler/icons-react";
|
|
4
|
+
import * as r from "react";
|
|
5
|
+
import { ag as w } from "../_chunks/vendor-utils.js";
|
|
6
|
+
import { cn as h } from "./lib/utils.js";
|
|
7
|
+
import { springs as y, motionProps as I } from "./lib/motion.js";
|
|
8
|
+
import { A as C, m as A } from "../_chunks/framer.js";
|
|
9
|
+
const k = w(
|
|
8
10
|
"relative flex gap-ds-04 rounded-ds-lg border p-ds-05",
|
|
9
11
|
{
|
|
10
12
|
variants: {
|
|
@@ -23,58 +25,71 @@ const y = w(
|
|
|
23
25
|
},
|
|
24
26
|
compoundVariants: [
|
|
25
27
|
// subtle (surface bg) — default, matches previous behavior
|
|
26
|
-
{ variant: "subtle", color: "info", className: "bg-info-
|
|
27
|
-
{ variant: "subtle", color: "success", className: "bg-success-
|
|
28
|
-
{ variant: "subtle", color: "warning", className: "bg-warning-
|
|
29
|
-
{ variant: "subtle", color: "error", className: "bg-error-
|
|
30
|
-
{ variant: "subtle", color: "neutral", className: "bg-
|
|
28
|
+
{ variant: "subtle", color: "info", className: "bg-info-3 border-info-7 text-info-11" },
|
|
29
|
+
{ variant: "subtle", color: "success", className: "bg-success-3 border-success-7 text-success-11" },
|
|
30
|
+
{ variant: "subtle", color: "warning", className: "bg-warning-3 border-warning-7 text-warning-11" },
|
|
31
|
+
{ variant: "subtle", color: "error", className: "bg-error-3 border-error-7 text-error-11" },
|
|
32
|
+
{ variant: "subtle", color: "neutral", className: "bg-surface-2 border-surface-border-strong text-surface-fg [&>svg]:text-surface-fg-muted" },
|
|
31
33
|
// filled (solid bg, white text)
|
|
32
|
-
{ variant: "filled", color: "info", className: "bg-info text-
|
|
33
|
-
{ variant: "filled", color: "success", className: "bg-success text-
|
|
34
|
-
{ variant: "filled", color: "warning", className: "bg-warning text-
|
|
35
|
-
{ variant: "filled", color: "error", className: "bg-error text-
|
|
36
|
-
{ variant: "filled", color: "neutral", className: "bg-
|
|
34
|
+
{ variant: "filled", color: "info", className: "bg-info-9 text-accent-fg border-transparent [&>svg]:text-accent-fg" },
|
|
35
|
+
{ variant: "filled", color: "success", className: "bg-success-9 text-accent-fg border-transparent [&>svg]:text-accent-fg" },
|
|
36
|
+
{ variant: "filled", color: "warning", className: "bg-warning-9 text-accent-fg border-transparent [&>svg]:text-accent-fg" },
|
|
37
|
+
{ variant: "filled", color: "error", className: "bg-error-9 text-accent-fg border-transparent [&>svg]:text-accent-fg" },
|
|
38
|
+
{ variant: "filled", color: "neutral", className: "bg-surface-3 text-surface-fg border-transparent [&>svg]:text-surface-fg-muted" },
|
|
37
39
|
// outline (transparent bg, colored border)
|
|
38
|
-
{ variant: "outline", color: "info", className: "bg-transparent border-info-
|
|
39
|
-
{ variant: "outline", color: "success", className: "bg-transparent border-success-
|
|
40
|
-
{ variant: "outline", color: "warning", className: "bg-transparent border-warning-
|
|
41
|
-
{ variant: "outline", color: "error", className: "bg-transparent border-error-
|
|
42
|
-
{ variant: "outline", color: "neutral", className: "bg-transparent border-border text-
|
|
40
|
+
{ variant: "outline", color: "info", className: "bg-transparent border-info-7 text-info-11" },
|
|
41
|
+
{ variant: "outline", color: "success", className: "bg-transparent border-success-7 text-success-11" },
|
|
42
|
+
{ variant: "outline", color: "warning", className: "bg-transparent border-warning-7 text-warning-11" },
|
|
43
|
+
{ variant: "outline", color: "error", className: "bg-transparent border-error-7 text-error-11" },
|
|
44
|
+
{ variant: "outline", color: "neutral", className: "bg-transparent border-surface-border-strong text-surface-fg [&>svg]:text-surface-fg-muted" }
|
|
43
45
|
],
|
|
44
46
|
defaultVariants: { variant: "subtle", color: "info" }
|
|
45
47
|
}
|
|
46
|
-
),
|
|
47
|
-
info:
|
|
48
|
+
), V = {
|
|
49
|
+
info: o,
|
|
48
50
|
success: p,
|
|
49
51
|
warning: v,
|
|
50
|
-
error:
|
|
51
|
-
neutral:
|
|
52
|
-
},
|
|
53
|
-
({ className: c, variant:
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
}, [
|
|
57
|
-
return /* @__PURE__ */
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
{
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"aria-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
52
|
+
error: x,
|
|
53
|
+
neutral: o
|
|
54
|
+
}, j = r.forwardRef(
|
|
55
|
+
({ className: c, variant: i = "subtle", color: t = "info", title: a, onDismiss: s, children: l, ...f }, u) => {
|
|
56
|
+
const m = V[t ?? "info"], [d, g] = r.useState(!0), b = r.useCallback(() => {
|
|
57
|
+
g(!1);
|
|
58
|
+
}, []);
|
|
59
|
+
return /* @__PURE__ */ e(C, { onExitComplete: s, children: d && /* @__PURE__ */ n(
|
|
60
|
+
A.div,
|
|
61
|
+
{
|
|
62
|
+
ref: u,
|
|
63
|
+
initial: { opacity: 1, y: 0 },
|
|
64
|
+
animate: { opacity: 1, y: 0 },
|
|
65
|
+
exit: { opacity: 0, y: -8 },
|
|
66
|
+
transition: y.snappy,
|
|
67
|
+
className: h(k({ variant: i, color: t }), c),
|
|
68
|
+
role: "alert",
|
|
69
|
+
...I(f),
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ e(m, { className: "mt-ds-01 h-ico-md w-ico-md shrink-0", "aria-hidden": "true" }),
|
|
72
|
+
/* @__PURE__ */ n("div", { className: "flex-1 min-w-0", children: [
|
|
73
|
+
a && /* @__PURE__ */ e("p", { className: "text-ds-md font-semibold mb-ds-01", children: a }),
|
|
74
|
+
/* @__PURE__ */ e("div", { className: "text-ds-md opacity-[0.9]", children: l })
|
|
75
|
+
] }),
|
|
76
|
+
s && /* @__PURE__ */ e(
|
|
77
|
+
"button",
|
|
78
|
+
{
|
|
79
|
+
type: "button",
|
|
80
|
+
onClick: b,
|
|
81
|
+
className: "shrink-0 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm text-surface-fg-subtle transition-colors hover:text-surface-fg-muted hover:bg-surface-3 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
|
|
82
|
+
"aria-label": "Dismiss",
|
|
83
|
+
children: /* @__PURE__ */ e(N, { className: "h-ico-sm w-ico-sm" })
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
) });
|
|
74
89
|
}
|
|
75
90
|
);
|
|
76
|
-
|
|
91
|
+
j.displayName = "Alert";
|
|
77
92
|
export {
|
|
78
|
-
|
|
79
|
-
|
|
93
|
+
j as Alert,
|
|
94
|
+
k as alertVariants
|
|
80
95
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import * as React from 'react';
|
|
2
3
|
import * as AspectRatioPrimitive from '../primitives/react-aspect-ratio';
|
|
3
|
-
declare const AspectRatio:
|
|
4
|
+
declare const AspectRatio: React.ForwardRefExoticComponent<Omit<AspectRatioPrimitive.AspectRatioProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
5
|
export { AspectRatio };
|
|
5
6
|
//# sourceMappingURL=aspect-ratio.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aspect-ratio.d.ts","sourceRoot":"","sources":["../../src/ui/aspect-ratio.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,oBAAoB,MAAM,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"aspect-ratio.d.ts","sourceRoot":"","sources":["../../src/ui/aspect-ratio.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,oBAAoB,MAAM,gCAAgC,CAAA;AAGtE,QAAA,MAAM,WAAW,iKASf,CAAA;AAGF,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
package/dist/ui/aspect-ratio.js
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import * as m from "react";
|
|
4
|
+
import { a as s } from "../_chunks/primitives.js";
|
|
5
|
+
import { cn as p } from "./lib/utils.js";
|
|
6
|
+
const e = m.forwardRef(({ className: o, ...t }, a) => /* @__PURE__ */ r(
|
|
7
|
+
s,
|
|
8
|
+
{
|
|
9
|
+
ref: a,
|
|
10
|
+
className: p(o),
|
|
11
|
+
...t
|
|
12
|
+
}
|
|
13
|
+
));
|
|
14
|
+
e.displayName = "AspectRatio";
|
|
5
15
|
export {
|
|
6
|
-
|
|
16
|
+
e as AspectRatio
|
|
7
17
|
};
|
|
@@ -35,7 +35,7 @@ type AutocompleteOption = {
|
|
|
35
35
|
* />
|
|
36
36
|
* // These are just a few ways — feel free to combine props creatively!
|
|
37
37
|
*/
|
|
38
|
-
type AutocompleteProps = {
|
|
38
|
+
type AutocompleteProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
39
39
|
options: AutocompleteOption[];
|
|
40
40
|
value?: AutocompleteOption | null;
|
|
41
41
|
onValueChange?: (option: AutocompleteOption) => void;
|
|
@@ -45,6 +45,15 @@ type AutocompleteProps = {
|
|
|
45
45
|
className?: string;
|
|
46
46
|
id?: string;
|
|
47
47
|
};
|
|
48
|
-
declare const Autocomplete: React.ForwardRefExoticComponent<
|
|
48
|
+
declare const Autocomplete: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
49
|
+
options: AutocompleteOption[];
|
|
50
|
+
value?: AutocompleteOption | null;
|
|
51
|
+
onValueChange?: (option: AutocompleteOption) => void;
|
|
52
|
+
placeholder?: string;
|
|
53
|
+
emptyText?: string;
|
|
54
|
+
disabled?: boolean;
|
|
55
|
+
className?: string;
|
|
56
|
+
id?: string;
|
|
57
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
49
58
|
export { Autocomplete, type AutocompleteProps, type AutocompleteOption };
|
|
50
59
|
//# sourceMappingURL=autocomplete.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../src/ui/autocomplete.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../src/ui/autocomplete.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAe9B,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,KAAK,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IAC9D,OAAO,EAAE,kBAAkB,EAAE,CAAA;IAC7B,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAA;IACjC,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAA;IACpD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,QAAA,MAAM,YAAY;aAVP,kBAAkB,EAAE;YACrB,kBAAkB,GAAG,IAAI;oBACjB,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI;kBACtC,MAAM;gBACR,MAAM;eACP,OAAO;gBACN,MAAM;SACb,MAAM;0CA8LZ,CAAA;AAGD,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,CAAA"}
|