@devalok/shilp-sutra 0.27.2 → 0.29.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/badge-group.js +299 -0
- package/dist/_chunks/framer.js +1915 -1980
- package/dist/_chunks/keybinding.js +4 -5
- package/dist/_chunks/primitives.js +3198 -3272
- package/dist/_chunks/sonner.js +29 -31
- package/dist/_chunks/stat-row.js +110 -131
- package/dist/_chunks/tiptap.js +42 -78
- package/dist/_chunks/tree-view.js +138 -149
- package/dist/_chunks/typing-indicator.js +565 -0
- package/dist/_chunks/use-calendar.js +416 -439
- package/dist/_chunks/vendor-client.js +977 -814
- package/dist/_chunks/vendor-utils.js +5 -5
- package/dist/ai/block-renderer.js +22 -22
- package/dist/ai/blocks/loading.d.ts.map +1 -1
- package/dist/ai/command-bar.d.ts.map +1 -1
- package/dist/ai/command-bar.js +241 -263
- package/dist/ai/conversation.d.ts.map +1 -1
- package/dist/ai/conversation.js +87 -107
- package/dist/composed/activity-feed.d.ts +2 -0
- package/dist/composed/activity-feed.d.ts.map +1 -1
- package/dist/composed/activity-feed.js +118 -90
- package/dist/composed/avatar-group.d.ts +1 -0
- package/dist/composed/avatar-group.d.ts.map +1 -1
- package/dist/composed/avatar-group.js +91 -67
- package/dist/composed/bulk-action-bar.d.ts.map +1 -1
- package/dist/composed/bulk-action-bar.js +29 -28
- package/dist/composed/command-palette.d.ts.map +1 -1
- package/dist/composed/command-palette.js +99 -113
- package/dist/composed/content-card.js +1 -1
- package/dist/composed/date-picker/calendar-grid.d.ts.map +1 -1
- package/dist/composed/date-picker/date-picker.d.ts.map +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.map +1 -1
- package/dist/composed/date-picker/time-picker.d.ts.map +1 -1
- package/dist/composed/deadline-indicator.d.ts.map +1 -1
- package/dist/composed/deadline-indicator.js +29 -28
- package/dist/composed/error-boundary.d.ts.map +1 -1
- package/dist/composed/error-boundary.js +30 -27
- package/dist/composed/extensions/file-attachment.d.ts.map +1 -1
- package/dist/composed/file-preview.d.ts.map +1 -1
- package/dist/composed/file-preview.js +261 -271
- package/dist/composed/filter-bar.d.ts.map +1 -1
- package/dist/composed/filter-bar.js +49 -48
- package/dist/composed/form-section.d.ts.map +1 -1
- package/dist/composed/form-section.js +12 -11
- package/dist/composed/global-loading.js +1 -1
- package/dist/composed/index.js +63 -63
- package/dist/composed/inline-edit.d.ts.map +1 -1
- package/dist/composed/inline-edit.js +55 -54
- package/dist/composed/markdown-viewer.d.ts.map +1 -1
- package/dist/composed/markdown-viewer.js +44 -43
- package/dist/composed/master-detail.d.ts.map +1 -1
- package/dist/composed/master-detail.js +35 -34
- package/dist/composed/multi-select-popover.d.ts.map +1 -1
- package/dist/composed/multi-select-popover.js +64 -64
- package/dist/composed/page-header.d.ts.map +1 -1
- package/dist/composed/page-header.js +31 -37
- package/dist/composed/priority-indicator.d.ts.map +1 -1
- package/dist/composed/priority-indicator.js +37 -36
- package/dist/composed/rich-text-editor.d.ts.map +1 -1
- package/dist/composed/rich-text-editor.js +287 -306
- package/dist/composed/schedule-view.js +62 -62
- package/dist/composed/status-badge.d.ts +4 -2
- package/dist/composed/status-badge.d.ts.map +1 -1
- package/dist/composed/status-badge.js +58 -45
- package/dist/shell/app-command-palette.d.ts.map +1 -1
- package/dist/shell/app-command-palette.js +93 -93
- package/dist/shell/bottom-navbar.d.ts.map +1 -1
- package/dist/shell/bottom-navbar.js +21 -20
- package/dist/shell/index.js +18 -18
- package/dist/shell/notification-center.d.ts.map +1 -1
- package/dist/shell/notification-center.js +96 -95
- package/dist/shell/notification-preferences.d.ts.map +1 -1
- package/dist/shell/notification-preferences.js +82 -85
- package/dist/shell/sidebar.js +59 -60
- package/dist/shell/top-bar.d.ts.map +1 -1
- package/dist/shell/top-bar.js +103 -103
- package/dist/tailwind/index.cjs +37 -4
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +38 -5
- package/dist/tokens/primitives.css +10 -0
- package/dist/tokens/semantic.css +70 -7
- package/dist/ui/accordion.d.ts +5 -2
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/accordion.js +44 -39
- package/dist/ui/alert-dialog.js +57 -57
- package/dist/ui/alert.d.ts +1 -1
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +30 -29
- package/dist/ui/aspect-ratio.js +4 -4
- package/dist/ui/autocomplete.js +56 -56
- package/dist/ui/avatar.js +2 -2
- package/dist/ui/badge-group.d.ts +22 -0
- package/dist/ui/badge-group.d.ts.map +1 -0
- package/dist/ui/badge-group.js +8 -0
- package/dist/ui/badge-indicator.d.ts +32 -0
- package/dist/ui/badge-indicator.d.ts.map +1 -0
- package/dist/ui/badge-indicator.js +54 -0
- package/dist/ui/badge.d.ts +27 -24
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +13 -129
- package/dist/ui/banner.d.ts +1 -1
- package/dist/ui/banner.d.ts.map +1 -1
- package/dist/ui/banner.js +27 -26
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/breadcrumb.js +37 -36
- package/dist/ui/button-group.d.ts +12 -6
- package/dist/ui/button-group.d.ts.map +1 -1
- package/dist/ui/button-group.js +18 -18
- package/dist/ui/button-processing.d.ts +15 -0
- package/dist/ui/button-processing.d.ts.map +1 -0
- package/dist/ui/button-processing.js +77 -0
- package/dist/ui/button.d.ts +50 -25
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +243 -127
- package/dist/ui/card.js +20 -21
- package/dist/ui/charts/index.js +499 -508
- package/dist/ui/chat/date-separator.d.ts +12 -0
- package/dist/ui/chat/date-separator.d.ts.map +1 -0
- package/dist/ui/chat/index.d.ts +9 -0
- package/dist/ui/chat/index.d.ts.map +1 -0
- package/dist/ui/chat/index.js +12 -0
- package/dist/ui/chat/message-input.d.ts +16 -0
- package/dist/ui/chat/message-input.d.ts.map +1 -0
- package/dist/ui/chat/message-list.d.ts +24 -0
- package/dist/ui/chat/message-list.d.ts.map +1 -0
- package/dist/ui/chat/message.d.ts +108 -0
- package/dist/ui/chat/message.d.ts.map +1 -0
- package/dist/ui/chat/system-message.d.ts +11 -0
- package/dist/ui/chat/system-message.d.ts.map +1 -0
- package/dist/ui/chat/typing-indicator.d.ts +14 -0
- package/dist/ui/chat/typing-indicator.d.ts.map +1 -0
- package/dist/ui/chat/unread-separator.d.ts +12 -0
- package/dist/ui/chat/unread-separator.d.ts.map +1 -0
- package/dist/ui/checkbox.js +18 -18
- package/dist/ui/chip.d.ts +13 -62
- package/dist/ui/chip.d.ts.map +1 -1
- package/dist/ui/chip.js +10 -109
- package/dist/ui/collapsible.js +4 -4
- package/dist/ui/color-input.d.ts +19 -5
- package/dist/ui/color-input.d.ts.map +1 -1
- package/dist/ui/color-input.js +371 -79
- package/dist/ui/color-swatch.js +11 -11
- package/dist/ui/combobox.d.ts.map +1 -1
- package/dist/ui/combobox.js +74 -80
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +86 -85
- package/dist/ui/data-table-toolbar.d.ts.map +1 -1
- package/dist/ui/data-table-toolbar.js +51 -57
- package/dist/ui/data-table.d.ts.map +1 -1
- package/dist/ui/data-table.js +268 -296
- package/dist/ui/devalok-grain.d.ts +81 -0
- package/dist/ui/devalok-grain.d.ts.map +1 -0
- package/dist/ui/devalok-grain.js +69 -0
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +73 -72
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.js +93 -92
- package/dist/ui/file-upload.d.ts.map +1 -1
- package/dist/ui/file-upload.js +82 -82
- package/dist/ui/hover-card.js +29 -29
- package/dist/ui/icon-button.d.ts +7 -7
- package/dist/ui/icon-button.d.ts.map +1 -1
- package/dist/ui/icon-context.d.ts +15 -0
- package/dist/ui/icon-context.d.ts.map +1 -0
- package/dist/ui/icon-context.js +20 -0
- package/dist/ui/icon-group.d.ts +22 -0
- package/dist/ui/icon-group.d.ts.map +1 -0
- package/dist/ui/icon-group.js +32 -0
- package/dist/ui/icon.d.ts +57 -0
- package/dist/ui/icon.d.ts.map +1 -0
- package/dist/ui/icon.js +122 -0
- package/dist/ui/index.d.ts +8 -1
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +351 -329
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/input-otp.js +21 -20
- package/dist/ui/input.d.ts +32 -11
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +149 -44
- package/dist/ui/label.js +1 -1
- package/dist/ui/lib/motion.d.ts +2 -0
- package/dist/ui/lib/motion.d.ts.map +1 -1
- package/dist/ui/lib/motion.js +13 -11
- package/dist/ui/lib/utils.js +1 -1
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +87 -86
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +23 -28
- package/dist/ui/number-input.d.ts.map +1 -1
- package/dist/ui/number-input.js +54 -53
- package/dist/ui/pagination.d.ts.map +1 -1
- package/dist/ui/pagination.js +45 -44
- package/dist/ui/popover.js +30 -30
- package/dist/ui/progress.d.ts +3 -1
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +43 -39
- package/dist/ui/radio.js +1 -1
- package/dist/ui/search-input.d.ts.map +1 -1
- package/dist/ui/search-input.js +47 -60
- package/dist/ui/segmented-control.js +1 -1
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +54 -53
- package/dist/ui/separator.js +5 -5
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +46 -45
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +196 -193
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/slider.js +1 -1
- package/dist/ui/spinner.js +74 -74
- package/dist/ui/stat-card.d.ts.map +1 -1
- package/dist/ui/stat-card.js +85 -86
- package/dist/ui/switch.d.ts +3 -0
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +40 -26
- package/dist/ui/tabs.js +43 -43
- package/dist/ui/text.js +1 -1
- package/dist/ui/textarea.js +10 -10
- package/dist/ui/toast.d.ts.map +1 -1
- package/dist/ui/toast.js +169 -169
- package/dist/ui/toggle-group.js +1 -1
- package/dist/ui/toggle.js +5 -5
- package/dist/ui/tooltip.js +41 -41
- package/dist/ui/tree-view/tree-item.d.ts.map +1 -1
- package/docs/components/_header.md +4 -4
- package/docs/components/composed/activity-feed.md +7 -0
- package/docs/components/composed/avatar-group.md +8 -5
- package/docs/components/composed/status-badge.md +14 -1
- package/docs/components/ui/accordion.md +5 -2
- package/docs/components/ui/badge-group.md +38 -0
- package/docs/components/ui/badge-indicator.md +40 -0
- package/docs/components/ui/badge.md +36 -5
- package/docs/components/ui/button-processing.md +15 -0
- package/docs/components/ui/button.md +40 -11
- package/docs/components/ui/chat.md +214 -0
- package/docs/components/ui/color-input.md +58 -4
- package/docs/components/ui/data-table.md +3 -0
- package/docs/components/ui/devalok-grain.md +55 -0
- package/docs/components/ui/icon-button.md +12 -5
- package/docs/components/ui/icon-context.md +38 -0
- package/docs/components/ui/icon-group.md +36 -0
- package/docs/components/ui/icon.md +47 -0
- package/docs/components/ui/input.md +32 -6
- package/docs/components/ui/progress.md +5 -0
- package/docs/components/ui/spinner.md +3 -0
- package/docs/components/ui/switch.md +13 -0
- package/llms-full.txt +724 -44
- package/llms.txt +38 -19
- package/package.json +8 -2
package/dist/ui/select.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import * as o from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { IconChevronDown as
|
|
6
|
-
import {
|
|
4
|
+
import { ap as n, aq as w, ar as m, as as p, at as N, au as f, av as v, aw as u, ax as h, ay as S, az as I, aA as y, aB as R, aC as z, aD as C } from "../_chunks/primitives.js";
|
|
5
|
+
import { IconChevronDown as b, IconChevronUp as j, IconCheck as B } from "@tabler/icons-react";
|
|
6
|
+
import { a as V } from "../_chunks/vendor-utils.js";
|
|
7
7
|
import { cn as r } from "./lib/utils.js";
|
|
8
|
-
import { tweens as
|
|
9
|
-
import {
|
|
10
|
-
|
|
8
|
+
import { tweens as D, springs as T } from "./lib/motion.js";
|
|
9
|
+
import { Icon as i } from "./icon.js";
|
|
10
|
+
import { m as U } from "../_chunks/framer.js";
|
|
11
|
+
const Q = R, W = C, X = z, G = V(
|
|
11
12
|
"flex w-full items-center justify-between whitespace-nowrap rounded-ds-md border border-surface-border-strong bg-surface-raised-hover placeholder:text-surface-fg-subtle focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 focus-visible:border-accent-7 disabled:cursor-not-allowed disabled:opacity-action-disabled [&>span]:line-clamp-1",
|
|
12
13
|
{
|
|
13
14
|
variants: {
|
|
@@ -20,21 +21,21 @@ const O = I, Q = C, W = R, U = V(
|
|
|
20
21
|
},
|
|
21
22
|
defaultVariants: { size: "md" }
|
|
22
23
|
}
|
|
23
|
-
),
|
|
24
|
-
|
|
24
|
+
), L = o.forwardRef(({ className: a, children: t, size: s, ...d }, l) => /* @__PURE__ */ c(
|
|
25
|
+
n,
|
|
25
26
|
{
|
|
26
|
-
ref:
|
|
27
|
-
className: r(
|
|
27
|
+
ref: l,
|
|
28
|
+
className: r(G({ size: s }), a),
|
|
28
29
|
...d,
|
|
29
30
|
children: [
|
|
30
31
|
t,
|
|
31
|
-
/* @__PURE__ */ e(
|
|
32
|
+
/* @__PURE__ */ e(w, { asChild: !0, children: /* @__PURE__ */ e(i, { icon: b, size: "sm", className: "opacity-50" }) })
|
|
32
33
|
]
|
|
33
34
|
}
|
|
34
35
|
));
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
|
|
36
|
+
L.displayName = n.displayName;
|
|
37
|
+
const x = o.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ e(
|
|
38
|
+
m,
|
|
38
39
|
{
|
|
39
40
|
ref: s,
|
|
40
41
|
className: r(
|
|
@@ -42,12 +43,12 @@ const b = o.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ e(
|
|
|
42
43
|
a
|
|
43
44
|
),
|
|
44
45
|
...t,
|
|
45
|
-
children: /* @__PURE__ */ e(
|
|
46
|
+
children: /* @__PURE__ */ e(i, { icon: j, size: "sm" })
|
|
46
47
|
}
|
|
47
48
|
));
|
|
48
|
-
|
|
49
|
-
const
|
|
50
|
-
|
|
49
|
+
x.displayName = m.displayName;
|
|
50
|
+
const g = o.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ e(
|
|
51
|
+
p,
|
|
51
52
|
{
|
|
52
53
|
ref: s,
|
|
53
54
|
className: r(
|
|
@@ -55,32 +56,32 @@ const x = o.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ e(
|
|
|
55
56
|
a
|
|
56
57
|
),
|
|
57
58
|
...t,
|
|
58
|
-
children: /* @__PURE__ */ e(
|
|
59
|
+
children: /* @__PURE__ */ e(i, { icon: b, size: "sm" })
|
|
59
60
|
}
|
|
60
61
|
));
|
|
61
|
-
|
|
62
|
-
const
|
|
63
|
-
|
|
62
|
+
g.displayName = p.displayName;
|
|
63
|
+
const k = o.forwardRef(({ className: a, children: t, position: s = "popper", ...d }, l) => /* @__PURE__ */ e(N, { children: /* @__PURE__ */ e(
|
|
64
|
+
f,
|
|
64
65
|
{
|
|
65
|
-
ref:
|
|
66
|
+
ref: l,
|
|
66
67
|
position: s,
|
|
67
68
|
asChild: !0,
|
|
68
69
|
...d,
|
|
69
|
-
children: /* @__PURE__ */
|
|
70
|
-
|
|
70
|
+
children: /* @__PURE__ */ c(
|
|
71
|
+
U.div,
|
|
71
72
|
{
|
|
72
73
|
initial: { opacity: 0, scale: 0.95 },
|
|
73
74
|
animate: { opacity: 1, scale: 1 },
|
|
74
|
-
transition: { ...T.snappy, opacity:
|
|
75
|
+
transition: { ...T.snappy, opacity: D.fade },
|
|
75
76
|
className: r(
|
|
76
77
|
"relative z-popover max-h-96 min-w-[8rem] overflow-hidden rounded-ds-lg border border-surface-border-strong bg-surface-overlay text-surface-fg shadow-floating",
|
|
77
78
|
s === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
78
79
|
a
|
|
79
80
|
),
|
|
80
81
|
children: [
|
|
81
|
-
/* @__PURE__ */ e(
|
|
82
|
+
/* @__PURE__ */ e(x, {}),
|
|
82
83
|
/* @__PURE__ */ e(
|
|
83
|
-
|
|
84
|
+
v,
|
|
84
85
|
{
|
|
85
86
|
className: r(
|
|
86
87
|
"p-ds-02",
|
|
@@ -89,24 +90,24 @@ const L = o.forwardRef(({ className: a, children: t, position: s = "popper", ...
|
|
|
89
90
|
children: t
|
|
90
91
|
}
|
|
91
92
|
),
|
|
92
|
-
/* @__PURE__ */ e(
|
|
93
|
+
/* @__PURE__ */ e(g, {})
|
|
93
94
|
]
|
|
94
95
|
}
|
|
95
96
|
)
|
|
96
97
|
}
|
|
97
98
|
) }));
|
|
98
|
-
|
|
99
|
-
const
|
|
100
|
-
|
|
99
|
+
k.displayName = f.displayName;
|
|
100
|
+
const q = o.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ e(
|
|
101
|
+
u,
|
|
101
102
|
{
|
|
102
103
|
ref: s,
|
|
103
104
|
className: r("px-ds-03 py-ds-02b text-ds-md font-semibold", a),
|
|
104
105
|
...t
|
|
105
106
|
}
|
|
106
107
|
));
|
|
107
|
-
|
|
108
|
-
const
|
|
109
|
-
|
|
108
|
+
q.displayName = u.displayName;
|
|
109
|
+
const A = o.forwardRef(({ className: a, children: t, ...s }, d) => /* @__PURE__ */ c(
|
|
110
|
+
h,
|
|
110
111
|
{
|
|
111
112
|
ref: d,
|
|
112
113
|
className: r(
|
|
@@ -115,31 +116,31 @@ const q = o.forwardRef(({ className: a, children: t, ...s }, d) => /* @__PURE__
|
|
|
115
116
|
),
|
|
116
117
|
...s,
|
|
117
118
|
children: [
|
|
118
|
-
/* @__PURE__ */ e("span", { className: "absolute right-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ e(
|
|
119
|
-
/* @__PURE__ */ e(
|
|
119
|
+
/* @__PURE__ */ e("span", { className: "absolute right-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(i, { icon: B, size: "sm" }) }) }),
|
|
120
|
+
/* @__PURE__ */ e(I, { children: t })
|
|
120
121
|
]
|
|
121
122
|
}
|
|
122
123
|
));
|
|
123
|
-
|
|
124
|
-
const
|
|
125
|
-
|
|
124
|
+
A.displayName = h.displayName;
|
|
125
|
+
const P = o.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ e(
|
|
126
|
+
y,
|
|
126
127
|
{
|
|
127
128
|
ref: s,
|
|
128
129
|
className: r("-mx-ds-01 my-ds-02 h-px bg-surface-border", a),
|
|
129
130
|
...t
|
|
130
131
|
}
|
|
131
132
|
));
|
|
132
|
-
|
|
133
|
+
P.displayName = y.displayName;
|
|
133
134
|
export {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
135
|
+
Q as Select,
|
|
136
|
+
k as SelectContent,
|
|
137
|
+
W as SelectGroup,
|
|
138
|
+
A as SelectItem,
|
|
139
|
+
q as SelectLabel,
|
|
140
|
+
g as SelectScrollDownButton,
|
|
141
|
+
x as SelectScrollUpButton,
|
|
142
|
+
P as SelectSeparator,
|
|
143
|
+
L as SelectTrigger,
|
|
144
|
+
X as SelectValue,
|
|
145
|
+
G as selectTriggerVariants
|
|
145
146
|
};
|
package/dist/ui/separator.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as g } from "react/jsx-runtime";
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
5
|
-
import { cn as
|
|
6
|
-
const l =
|
|
3
|
+
import * as d from "react";
|
|
4
|
+
import { aj as e } from "../_chunks/primitives.js";
|
|
5
|
+
import { cn as i } from "./lib/utils.js";
|
|
6
|
+
const l = d.forwardRef(
|
|
7
7
|
({ className: t, orientation: a = "horizontal", decorative: o = !0, variant: r = "default", ...n }, s) => /* @__PURE__ */ g(
|
|
8
8
|
e,
|
|
9
9
|
{
|
|
10
10
|
ref: s,
|
|
11
11
|
decorative: o,
|
|
12
12
|
orientation: a,
|
|
13
|
-
className:
|
|
13
|
+
className: i(
|
|
14
14
|
"shrink-0",
|
|
15
15
|
r === "gradient" ? "bg-transparent bg-[image:linear-gradient(90deg,transparent,var(--color-surface-border)_15%,var(--color-surface-border)_85%,transparent)]" : r === "gradient-left" ? "bg-transparent bg-[image:linear-gradient(90deg,transparent,var(--color-surface-border)_30%)]" : r === "gradient-right" ? "bg-transparent bg-[image:linear-gradient(90deg,var(--color-surface-border)_70%,transparent)]" : "bg-surface-border",
|
|
16
16
|
a === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
package/dist/ui/sheet.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../src/ui/sheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,cAAc,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../src/ui/sheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,cAAc,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAYjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,CA0B/E,CAAA;AAGD,QAAA,MAAM,YAAY,6GAAyB,CAAA;AAE3C,QAAA,MAAM,UAAU,2GAAuB,CAAA;AAEvC,QAAA,MAAM,WAAW,4CAAwB,CAAA;AAEzC,QAAA,MAAM,YAAY,6JAehB,CAAA;AAmBF,QAAA,MAAM,aAAa;;8EAelB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,WAAW,iBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,EACnE,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAEzC,QAAA,MAAM,YAAY,0FAgChB,CAAA;AAGF,QAAA,MAAM,WAAW,6GAWhB,CAAA;AAGD,QAAA,MAAM,WAAW,6GAWhB,CAAA;AAGD,QAAA,MAAM,UAAU,mKASd,CAAA;AAGF,QAAA,MAAM,gBAAgB,6KASpB,CAAA;AAGF,OAAO,EACL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,GACjB,CAAA"}
|
package/dist/ui/sheet.js
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { IconX as
|
|
2
|
+
import { jsx as o, jsxs as c } from "react/jsx-runtime";
|
|
3
|
+
import * as r from "react";
|
|
4
|
+
import { a6 as h, a7 as R, a8 as u, a9 as x, aa as b, ab as y, ac as O, ad as P } from "../_chunks/primitives.js";
|
|
5
|
+
import { a as j } from "../_chunks/vendor-utils.js";
|
|
6
|
+
import { IconX as T } from "@tabler/icons-react";
|
|
7
7
|
import { cn as a } from "./lib/utils.js";
|
|
8
|
-
import { tweens as
|
|
9
|
-
import {
|
|
10
|
-
|
|
8
|
+
import { tweens as z, motionProps as g, springs as A } from "./lib/motion.js";
|
|
9
|
+
import { Icon as I } from "./icon.js";
|
|
10
|
+
import { m as v, A as M } from "../_chunks/framer.js";
|
|
11
|
+
const N = r.createContext(!1), D = ({
|
|
11
12
|
open: e,
|
|
12
13
|
defaultOpen: s = !1,
|
|
13
14
|
onOpenChange: t,
|
|
14
15
|
children: i,
|
|
15
16
|
...n
|
|
16
17
|
}) => {
|
|
17
|
-
const [l,
|
|
18
|
+
const [l, w] = r.useState(s), d = e !== void 0, m = d ? e : l, C = r.useCallback(
|
|
18
19
|
(f) => {
|
|
19
|
-
d ||
|
|
20
|
+
d || w(f), t?.(f);
|
|
20
21
|
},
|
|
21
22
|
[d, t]
|
|
22
23
|
);
|
|
23
|
-
return /* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ o(N.Provider, { value: m, children: /* @__PURE__ */ o(O, { open: m, onOpenChange: C, ...n, children: i }) });
|
|
24
25
|
};
|
|
25
|
-
|
|
26
|
-
const
|
|
26
|
+
D.displayName = "Sheet";
|
|
27
|
+
const Z = P, _ = x, F = R, S = r.forwardRef(({ className: e, ...s }, t) => /* @__PURE__ */ o(h, { forceMount: !0, asChild: !0, children: /* @__PURE__ */ o(
|
|
27
28
|
v.div,
|
|
28
29
|
{
|
|
29
30
|
ref: t,
|
|
@@ -31,22 +32,22 @@ const W = j, Y = x, H = R, w = o.forwardRef(({ className: e, ...s }, t) => /* @_
|
|
|
31
32
|
initial: { opacity: 0 },
|
|
32
33
|
animate: { opacity: 1 },
|
|
33
34
|
exit: { opacity: 0 },
|
|
34
|
-
transition:
|
|
35
|
+
transition: z.fade,
|
|
35
36
|
...g(s)
|
|
36
37
|
}
|
|
37
38
|
) }));
|
|
38
|
-
|
|
39
|
+
S.displayName = h.displayName;
|
|
39
40
|
const p = {
|
|
40
41
|
top: { y: "-100%" },
|
|
41
42
|
bottom: { y: "100%" },
|
|
42
43
|
left: { x: "-100%" },
|
|
43
44
|
right: { x: "100%" }
|
|
44
|
-
},
|
|
45
|
+
}, H = {
|
|
45
46
|
top: { y: 0 },
|
|
46
47
|
bottom: { y: 0 },
|
|
47
48
|
left: { x: 0 },
|
|
48
49
|
right: { x: 0 }
|
|
49
|
-
}, V =
|
|
50
|
+
}, V = j(
|
|
50
51
|
"fixed z-modal gap-ds-05 bg-surface-overlay p-ds-06 shadow-overlay",
|
|
51
52
|
{
|
|
52
53
|
variants: {
|
|
@@ -61,24 +62,24 @@ const p = {
|
|
|
61
62
|
side: "right"
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
|
-
), k =
|
|
65
|
-
const l =
|
|
66
|
-
return /* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
/* @__PURE__ */
|
|
65
|
+
), k = r.forwardRef(({ side: e = "right", className: s, children: t, ...i }, n) => {
|
|
66
|
+
const l = r.useContext(N);
|
|
67
|
+
return /* @__PURE__ */ o(M, { children: l && /* @__PURE__ */ c(F, { forceMount: !0, children: [
|
|
68
|
+
/* @__PURE__ */ o(S, {}),
|
|
69
|
+
/* @__PURE__ */ o(u, { forceMount: !0, asChild: !0, children: /* @__PURE__ */ c(
|
|
69
70
|
v.div,
|
|
70
71
|
{
|
|
71
72
|
ref: n,
|
|
72
73
|
className: a(V({ side: e }), s),
|
|
73
74
|
initial: p[e],
|
|
74
|
-
animate:
|
|
75
|
+
animate: H[e],
|
|
75
76
|
exit: p[e],
|
|
76
|
-
transition:
|
|
77
|
+
transition: A.smooth,
|
|
77
78
|
...g(i),
|
|
78
79
|
children: [
|
|
79
80
|
/* @__PURE__ */ c(x, { className: "absolute right-ds-05 top-ds-05 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm text-surface-fg-subtle transition-colors ease-productive-standard hover:text-surface-fg-muted hover:bg-surface-raised-hover active:scale-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 disabled:pointer-events-none", children: [
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ o(I, { icon: T, size: "sm" }),
|
|
82
|
+
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
82
83
|
] }),
|
|
83
84
|
t
|
|
84
85
|
]
|
|
@@ -87,8 +88,8 @@ const p = {
|
|
|
87
88
|
] }) });
|
|
88
89
|
});
|
|
89
90
|
k.displayName = u.displayName;
|
|
90
|
-
const
|
|
91
|
-
({ className: e, ...s }, t) => /* @__PURE__ */
|
|
91
|
+
const U = r.forwardRef(
|
|
92
|
+
({ className: e, ...s }, t) => /* @__PURE__ */ o(
|
|
92
93
|
"div",
|
|
93
94
|
{
|
|
94
95
|
ref: t,
|
|
@@ -100,9 +101,9 @@ const O = o.forwardRef(
|
|
|
100
101
|
}
|
|
101
102
|
)
|
|
102
103
|
);
|
|
103
|
-
|
|
104
|
-
const
|
|
105
|
-
({ className: e, ...s }, t) => /* @__PURE__ */
|
|
104
|
+
U.displayName = "SheetHeader";
|
|
105
|
+
const X = r.forwardRef(
|
|
106
|
+
({ className: e, ...s }, t) => /* @__PURE__ */ o(
|
|
106
107
|
"div",
|
|
107
108
|
{
|
|
108
109
|
ref: t,
|
|
@@ -114,8 +115,8 @@ const U = o.forwardRef(
|
|
|
114
115
|
}
|
|
115
116
|
)
|
|
116
117
|
);
|
|
117
|
-
|
|
118
|
-
const
|
|
118
|
+
X.displayName = "SheetFooter";
|
|
119
|
+
const q = r.forwardRef(({ className: e, ...s }, t) => /* @__PURE__ */ o(
|
|
119
120
|
b,
|
|
120
121
|
{
|
|
121
122
|
ref: t,
|
|
@@ -123,8 +124,8 @@ const X = o.forwardRef(({ className: e, ...s }, t) => /* @__PURE__ */ r(
|
|
|
123
124
|
...s
|
|
124
125
|
}
|
|
125
126
|
));
|
|
126
|
-
|
|
127
|
-
const
|
|
127
|
+
q.displayName = b.displayName;
|
|
128
|
+
const B = r.forwardRef(({ className: e, ...s }, t) => /* @__PURE__ */ o(
|
|
128
129
|
y,
|
|
129
130
|
{
|
|
130
131
|
ref: t,
|
|
@@ -132,16 +133,16 @@ const q = o.forwardRef(({ className: e, ...s }, t) => /* @__PURE__ */ r(
|
|
|
132
133
|
...s
|
|
133
134
|
}
|
|
134
135
|
));
|
|
135
|
-
|
|
136
|
+
B.displayName = y.displayName;
|
|
136
137
|
export {
|
|
137
|
-
|
|
138
|
-
|
|
138
|
+
D as Sheet,
|
|
139
|
+
_ as SheetClose,
|
|
139
140
|
k as SheetContent,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
141
|
+
B as SheetDescription,
|
|
142
|
+
X as SheetFooter,
|
|
143
|
+
U as SheetHeader,
|
|
144
|
+
S as SheetOverlay,
|
|
145
|
+
F as SheetPortal,
|
|
146
|
+
q as SheetTitle,
|
|
147
|
+
Z as SheetTrigger
|
|
147
148
|
};
|
package/dist/ui/sidebar.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../src/ui/sidebar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAO,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../src/ui/sidebar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAa5D,OAAO,EAEL,cAAc,EAGf,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,cAAc,EAUf,MAAM,OAAO,CAAA;AASd,K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