@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
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as e, jsxs as
|
|
2
|
+
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
3
3
|
import * as n from "react";
|
|
4
|
-
import { createPortal as
|
|
5
|
-
import { IconX as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
4
|
+
import { createPortal as h } from "react-dom";
|
|
5
|
+
import { IconX as x } from "@tabler/icons-react";
|
|
6
|
+
import { Icon as p } from "../ui/icon.js";
|
|
7
|
+
import { cn as b } from "../ui/lib/utils.js";
|
|
8
|
+
import { Button as t } from "../ui/button.js";
|
|
9
|
+
import { B as v } from "../_chunks/badge-group.js";
|
|
10
|
+
import { springs as C } from "../ui/lib/motion.js";
|
|
10
11
|
import { A as d, m as l } from "../_chunks/framer.js";
|
|
11
|
-
function
|
|
12
|
+
function k({ action: i }) {
|
|
12
13
|
const [r, s] = n.useState(!1);
|
|
13
|
-
return r ? /* @__PURE__ */
|
|
14
|
+
return r ? /* @__PURE__ */ a(
|
|
14
15
|
l.div,
|
|
15
16
|
{
|
|
16
17
|
initial: { opacity: 0, scale: 0.95 },
|
|
@@ -21,7 +22,7 @@ function C({ action: i }) {
|
|
|
21
22
|
children: [
|
|
22
23
|
/* @__PURE__ */ e("span", { className: "text-ds-sm text-surface-fg-muted whitespace-nowrap", children: i.confirmMessage ?? "Are you sure?" }),
|
|
23
24
|
/* @__PURE__ */ e(
|
|
24
|
-
|
|
25
|
+
t,
|
|
25
26
|
{
|
|
26
27
|
variant: "solid",
|
|
27
28
|
size: "sm",
|
|
@@ -33,7 +34,7 @@ function C({ action: i }) {
|
|
|
33
34
|
}
|
|
34
35
|
),
|
|
35
36
|
/* @__PURE__ */ e(
|
|
36
|
-
|
|
37
|
+
t,
|
|
37
38
|
{
|
|
38
39
|
variant: "ghost",
|
|
39
40
|
size: "sm",
|
|
@@ -51,65 +52,65 @@ function C({ action: i }) {
|
|
|
51
52
|
exit: { opacity: 0, scale: 0.95 },
|
|
52
53
|
transition: { type: "spring", stiffness: 500, damping: 30 },
|
|
53
54
|
children: /* @__PURE__ */ e(
|
|
54
|
-
|
|
55
|
+
t,
|
|
55
56
|
{
|
|
56
57
|
variant: "ghost",
|
|
57
58
|
size: "sm",
|
|
58
59
|
color: i.color === "error" ? "error" : "default",
|
|
59
60
|
disabled: i.disabled,
|
|
60
61
|
onClick: i.requiresConfirmation ? () => s(!0) : i.onClick,
|
|
61
|
-
startIcon: i.icon ? /* @__PURE__ */ e(
|
|
62
|
+
startIcon: i.icon ? /* @__PURE__ */ e(p, { icon: i.icon }) : void 0,
|
|
62
63
|
children: i.label
|
|
63
64
|
}
|
|
64
65
|
)
|
|
65
66
|
}
|
|
66
67
|
);
|
|
67
68
|
}
|
|
68
|
-
function
|
|
69
|
+
function S({
|
|
69
70
|
show: i,
|
|
70
71
|
count: r,
|
|
71
72
|
onClearSelection: s,
|
|
72
73
|
actions: f,
|
|
73
74
|
totalCount: o,
|
|
74
75
|
onSelectAll: c,
|
|
75
|
-
className:
|
|
76
|
+
className: u
|
|
76
77
|
}) {
|
|
77
|
-
const [
|
|
78
|
+
const [y, g] = n.useState(!1);
|
|
78
79
|
return n.useEffect(() => {
|
|
79
|
-
|
|
80
|
-
}, []),
|
|
81
|
-
/* @__PURE__ */ e(d, { children: i && /* @__PURE__ */
|
|
80
|
+
g(!0);
|
|
81
|
+
}, []), y ? h(
|
|
82
|
+
/* @__PURE__ */ e(d, { children: i && /* @__PURE__ */ a(
|
|
82
83
|
l.div,
|
|
83
84
|
{
|
|
84
85
|
initial: { y: 100, opacity: 0 },
|
|
85
86
|
animate: { y: 0, opacity: 1 },
|
|
86
87
|
exit: { y: 100, opacity: 0 },
|
|
87
|
-
transition:
|
|
88
|
-
className:
|
|
88
|
+
transition: C.snappy,
|
|
89
|
+
className: b(
|
|
89
90
|
"fixed bottom-ds-06 left-1/2 z-50 -translate-x-1/2",
|
|
90
91
|
"flex items-center gap-ds-04 rounded-ds-lg border border-surface-border bg-surface-overlay px-ds-05 py-ds-03 shadow-floating",
|
|
91
|
-
|
|
92
|
+
u
|
|
92
93
|
),
|
|
93
94
|
role: "toolbar",
|
|
94
95
|
"aria-label": `${r} items selected`,
|
|
95
96
|
children: [
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
+
/* @__PURE__ */ a(v, { variant: "solid", size: "sm", children: [
|
|
97
98
|
r,
|
|
98
99
|
" selected"
|
|
99
100
|
] }),
|
|
100
|
-
o != null && o > r && c && /* @__PURE__ */ t
|
|
101
|
+
o != null && o > r && c && /* @__PURE__ */ a(t, { variant: "link", size: "xs", onClick: c, children: [
|
|
101
102
|
"Select all ",
|
|
102
103
|
o
|
|
103
104
|
] }),
|
|
104
|
-
/* @__PURE__ */ e("div", { className: "flex items-center gap-ds-02", children: /* @__PURE__ */ e(d, { mode: "popLayout", children: f.map((m) => /* @__PURE__ */ e(
|
|
105
|
+
/* @__PURE__ */ e("div", { className: "flex items-center gap-ds-02", children: /* @__PURE__ */ e(d, { mode: "popLayout", children: f.map((m) => /* @__PURE__ */ e(k, { action: m }, m.label)) }) }),
|
|
105
106
|
/* @__PURE__ */ e(
|
|
106
|
-
|
|
107
|
+
t,
|
|
107
108
|
{
|
|
108
109
|
variant: "ghost",
|
|
109
110
|
size: "icon-sm",
|
|
110
111
|
onClick: s,
|
|
111
112
|
"aria-label": "Clear selection",
|
|
112
|
-
children: /* @__PURE__ */ e(
|
|
113
|
+
children: /* @__PURE__ */ e(p, { icon: x, size: "sm" })
|
|
113
114
|
}
|
|
114
115
|
)
|
|
115
116
|
]
|
|
@@ -119,5 +120,5 @@ function M({
|
|
|
119
120
|
) : null;
|
|
120
121
|
}
|
|
121
122
|
export {
|
|
122
|
-
|
|
123
|
+
S as BulkActionBar
|
|
123
124
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-palette.d.ts","sourceRoot":"","sources":["../../src/composed/command-palette.tsx"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"command-palette.d.ts","sourceRoot":"","sources":["../../src/composed/command-palette.tsx"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAqB9B,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,uGAAuG;IACvG,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;IAC/B,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;IACtC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,iFAAiF;IACjF,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,sGAAsG;IACtG,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAA;IAChD,+GAA+G;IAC/G,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,WAAW,EAAE,CAAA;CACrB;AAED,kDAAkD;AAClD,MAAM,WAAW,UAAU;IACzB,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAA;IACZ,sEAAsE;IACtE,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IAChF,MAAM,CAAC,EAAE,YAAY,EAAE,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,kFAAkF;IAClF,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAE5B,6BAA6B;IAC7B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,iDAAiD;IACjD,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,0CAA0C;IAC1C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IAEtC;;uDAEmD;IACnD,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,KAAK,CAAA;IAEtC,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAE3B,8EAA8E;IAC9E,WAAW,CAAC,EAAE,UAAU,EAAE,GAAG,KAAK,CAAA;CACnC;AAmCD,QAAA,MAAM,cAAc,4FA6ZnB,CAAA;AAID,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1,54 +1,55 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as t, jsxs as
|
|
2
|
+
import { jsx as t, jsxs as o } from "react/jsx-runtime";
|
|
3
3
|
import * as r from "react";
|
|
4
|
-
import { Dialog as
|
|
5
|
-
import { IconSearch as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
import { Dialog as ne, DialogPortal as oe, DialogOverlay as ie, DialogContentRaw as ce, DialogTitle as de, DialogDescription as le } from "../ui/dialog.js";
|
|
5
|
+
import { IconSearch as fe, IconCornerDownLeft as F, IconArrowUp as ue, IconArrowDown as me } from "@tabler/icons-react";
|
|
6
|
+
import { Icon as w } from "../ui/icon.js";
|
|
7
|
+
import { cn as N } from "../ui/lib/utils.js";
|
|
8
|
+
import { springs as K, tweens as P } from "../ui/lib/motion.js";
|
|
9
|
+
import { VisuallyHidden as pe } from "../ui/visually-hidden.js";
|
|
10
|
+
import { u as be } from "../_chunks/motion-provider.js";
|
|
11
|
+
import { g as xe, a as ge, m as he } from "../_chunks/keybinding.js";
|
|
12
|
+
import { m, A as ye } from "../_chunks/framer.js";
|
|
13
|
+
function ve(n) {
|
|
14
|
+
return n.filterValue ? n.filterValue : typeof n.label == "string" ? n.label : "";
|
|
14
15
|
}
|
|
15
|
-
function we(
|
|
16
|
-
return typeof
|
|
16
|
+
function we(n) {
|
|
17
|
+
return typeof n.description == "string" ? n.description : "";
|
|
17
18
|
}
|
|
18
|
-
function
|
|
19
|
-
return
|
|
19
|
+
function Ne(n) {
|
|
20
|
+
return n.includes("+") ? n.split("+").map((p) => p.trim()).filter(Boolean) : n.split(/\s+/).filter(Boolean);
|
|
20
21
|
}
|
|
21
|
-
const
|
|
22
|
+
const ke = r.forwardRef(
|
|
22
23
|
function({
|
|
23
24
|
groups: p = [],
|
|
24
|
-
placeholder:
|
|
25
|
-
onSearch:
|
|
25
|
+
placeholder: q = "Search or jump to...",
|
|
26
|
+
onSearch: O,
|
|
26
27
|
emptyMessage: B = "No results found.",
|
|
27
28
|
emptyState: Q,
|
|
28
|
-
open:
|
|
29
|
+
open: E,
|
|
29
30
|
defaultOpen: T,
|
|
30
|
-
onOpenChange:
|
|
31
|
+
onOpenChange: S,
|
|
31
32
|
keybinding: b = "mod+k",
|
|
32
|
-
maxHeight:
|
|
33
|
-
footerHints:
|
|
33
|
+
maxHeight: _ = "320px",
|
|
34
|
+
footerHints: j,
|
|
34
35
|
className: U,
|
|
35
36
|
...G
|
|
36
37
|
}, H) {
|
|
37
|
-
const C =
|
|
38
|
-
|
|
39
|
-
const
|
|
38
|
+
const C = E !== void 0, [J, W] = r.useState(T ?? !1), x = C ? E : J, A = r.useRef(x);
|
|
39
|
+
A.current = x;
|
|
40
|
+
const c = r.useCallback(
|
|
40
41
|
(e) => {
|
|
41
|
-
const s = typeof e == "function" ? e(
|
|
42
|
-
C || W(s),
|
|
42
|
+
const s = typeof e == "function" ? e(A.current) : e;
|
|
43
|
+
C || W(s), S?.(s);
|
|
43
44
|
},
|
|
44
|
-
[C,
|
|
45
|
-
), [g,
|
|
45
|
+
[C, S]
|
|
46
|
+
), [g, R] = r.useState(""), [f, h] = r.useState(0), z = r.useRef(null), L = r.useRef(null), D = r.useId(), $ = `command-palette-listbox-${D}`, { reducedMotion: d } = be(), k = { duration: 0 }, X = r.useMemo(() => xe(), []), u = r.useMemo(() => {
|
|
46
47
|
if (!g.trim()) return p;
|
|
47
48
|
const e = g.toLowerCase();
|
|
48
49
|
return p.map((s) => ({
|
|
49
50
|
...s,
|
|
50
51
|
items: s.items.filter(
|
|
51
|
-
(a) =>
|
|
52
|
+
(a) => ve(a).toLowerCase().includes(e) || we(a).toLowerCase().includes(e)
|
|
52
53
|
)
|
|
53
54
|
})).filter((s) => s.items.length > 0);
|
|
54
55
|
}, [p, g]), y = r.useMemo(
|
|
@@ -60,16 +61,15 @@ const Ne = r.forwardRef(
|
|
|
60
61
|
const e = Array.isArray(b) ? b : [b];
|
|
61
62
|
function s(a) {
|
|
62
63
|
for (const i of e)
|
|
63
|
-
if (
|
|
64
|
-
a.preventDefault(),
|
|
64
|
+
if (he(a, i)) {
|
|
65
|
+
a.preventDefault(), c((l) => !l);
|
|
65
66
|
return;
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
return document.addEventListener("keydown", s), () => document.removeEventListener("keydown", s);
|
|
69
|
-
}, [b,
|
|
70
|
-
x && (
|
|
71
|
-
|
|
72
|
-
(e = S.current) == null || e.focus();
|
|
70
|
+
}, [b, c]), r.useEffect(() => {
|
|
71
|
+
x && (R(""), h(0), requestAnimationFrame(() => {
|
|
72
|
+
z.current?.focus();
|
|
73
73
|
}));
|
|
74
74
|
}, [x]);
|
|
75
75
|
const Y = (e) => {
|
|
@@ -89,54 +89,52 @@ const Ne = r.forwardRef(
|
|
|
89
89
|
case "Enter": {
|
|
90
90
|
e.preventDefault();
|
|
91
91
|
const s = y[f];
|
|
92
|
-
s && (s.onSelect(),
|
|
92
|
+
s && (s.onSelect(), c(!1));
|
|
93
93
|
break;
|
|
94
94
|
}
|
|
95
95
|
case "Escape": {
|
|
96
|
-
e.preventDefault(),
|
|
96
|
+
e.preventDefault(), c(!1);
|
|
97
97
|
break;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
101
|
r.useEffect(() => {
|
|
102
|
-
|
|
103
|
-
const e = (s = $.current) == null ? void 0 : s.querySelector(
|
|
102
|
+
L.current?.querySelector(
|
|
104
103
|
`[data-command-index="${f}"]`
|
|
105
|
-
);
|
|
106
|
-
e == null || e.scrollIntoView({ block: "nearest" });
|
|
104
|
+
)?.scrollIntoView({ block: "nearest" });
|
|
107
105
|
}, [f]);
|
|
108
106
|
const Z = (e) => {
|
|
109
|
-
|
|
110
|
-
},
|
|
107
|
+
R(e), h(0), O?.(e);
|
|
108
|
+
}, ee = r.useMemo(() => {
|
|
111
109
|
const e = /* @__PURE__ */ new Map();
|
|
112
110
|
let s = 0;
|
|
113
111
|
for (const a of u)
|
|
114
112
|
for (const i of a.items)
|
|
115
113
|
e.set(i.id, s++);
|
|
116
114
|
return e;
|
|
117
|
-
}, [u]),
|
|
115
|
+
}, [u]), te = d ? k : K.snappy, I = d ? k : P.fade, v = d ? { opacity: 1, scale: 1, y: 0 } : void 0, se = typeof _ == "number" ? `${_}px` : _, V = j === !1 ? !1 : j ?? [
|
|
118
116
|
{ keys: "↑↓", label: "Navigate" },
|
|
119
117
|
{ keys: "↵", label: "Select" },
|
|
120
118
|
{ keys: "Esc", label: "Close" }
|
|
121
|
-
],
|
|
119
|
+
], ae = r.useCallback(
|
|
122
120
|
(e) => {
|
|
123
|
-
|
|
121
|
+
c(e);
|
|
124
122
|
},
|
|
125
|
-
[
|
|
123
|
+
[c]
|
|
126
124
|
);
|
|
127
|
-
return /* @__PURE__ */ t(
|
|
125
|
+
return /* @__PURE__ */ t(ne, { open: x, onOpenChange: ae, children: /* @__PURE__ */ o(oe, { children: [
|
|
128
126
|
/* @__PURE__ */ t(
|
|
129
|
-
|
|
127
|
+
ie,
|
|
130
128
|
{
|
|
131
129
|
className: "fixed inset-0 z-overlay bg-overlay data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"
|
|
132
130
|
}
|
|
133
131
|
),
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
-
|
|
132
|
+
/* @__PURE__ */ o(
|
|
133
|
+
ce,
|
|
136
134
|
{
|
|
137
135
|
ref: H,
|
|
138
136
|
...G,
|
|
139
|
-
className:
|
|
137
|
+
className: N(
|
|
140
138
|
"fixed left-1/2 top-[20%] z-modal w-full max-w-[560px] -translate-x-1/2",
|
|
141
139
|
"overflow-hidden rounded-ds-xl border border-surface-border-strong bg-surface-overlay shadow-overlay",
|
|
142
140
|
"duration-moderate-02 data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
@@ -148,40 +146,34 @@ const Ne = r.forwardRef(
|
|
|
148
146
|
),
|
|
149
147
|
onKeyDown: Y,
|
|
150
148
|
children: [
|
|
151
|
-
/* @__PURE__ */
|
|
149
|
+
/* @__PURE__ */ o(pe, { children: [
|
|
152
150
|
/* @__PURE__ */ t(de, { children: "Command Palette" }),
|
|
153
|
-
/* @__PURE__ */ t(
|
|
151
|
+
/* @__PURE__ */ t(le, { children: "Search or jump to pages, projects, tasks, and actions" })
|
|
154
152
|
] }),
|
|
155
|
-
/* @__PURE__ */
|
|
153
|
+
/* @__PURE__ */ o("div", { className: "flex items-center gap-ds-04 border-b border-surface-border-strong px-ds-05 py-ds-04", children: [
|
|
156
154
|
/* @__PURE__ */ t(
|
|
157
155
|
m.span,
|
|
158
156
|
{
|
|
159
|
-
initial:
|
|
157
|
+
initial: v ?? { opacity: 0, scale: 0.96 },
|
|
160
158
|
animate: { opacity: 1, scale: 1 },
|
|
161
|
-
transition:
|
|
159
|
+
transition: te,
|
|
162
160
|
className: "inline-flex shrink-0",
|
|
163
|
-
children: /* @__PURE__ */ t(
|
|
164
|
-
le,
|
|
165
|
-
{
|
|
166
|
-
className: "h-ico-sm w-ico-sm text-surface-fg-subtle",
|
|
167
|
-
stroke: 1.5
|
|
168
|
-
}
|
|
169
|
-
)
|
|
161
|
+
children: /* @__PURE__ */ t(w, { icon: fe, size: "sm", stroke: "light", className: "text-surface-fg-subtle" })
|
|
170
162
|
}
|
|
171
163
|
),
|
|
172
164
|
/* @__PURE__ */ t(
|
|
173
165
|
"input",
|
|
174
166
|
{
|
|
175
|
-
ref:
|
|
167
|
+
ref: z,
|
|
176
168
|
value: g,
|
|
177
169
|
onChange: (e) => Z(e.target.value),
|
|
178
|
-
placeholder:
|
|
170
|
+
placeholder: q,
|
|
179
171
|
role: "combobox",
|
|
180
172
|
"aria-expanded": !0,
|
|
181
|
-
"aria-controls":
|
|
182
|
-
"aria-activedescendant": y[f] ? `command-item-${
|
|
173
|
+
"aria-controls": $,
|
|
174
|
+
"aria-activedescendant": y[f] ? `command-item-${D}-${y[f].id}` : void 0,
|
|
183
175
|
"aria-autocomplete": "list",
|
|
184
|
-
className:
|
|
176
|
+
className: N(
|
|
185
177
|
"flex-1 bg-transparent text-ds-base text-surface-fg outline-none",
|
|
186
178
|
"placeholder:text-surface-fg-subtle"
|
|
187
179
|
),
|
|
@@ -192,53 +184,53 @@ const Ne = r.forwardRef(
|
|
|
192
184
|
),
|
|
193
185
|
/* @__PURE__ */ t("kbd", { className: "hidden shrink-0 select-none rounded-ds-md border border-surface-border-strong bg-surface-raised px-ds-02b py-ds-01 text-ds-sm font-medium text-surface-fg-subtle shadow-[inset_0_-1px_0_rgba(0,0,0,0.1)] sm:inline-flex", children: "Esc" })
|
|
194
186
|
] }),
|
|
195
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ o(
|
|
196
188
|
"div",
|
|
197
189
|
{
|
|
198
|
-
ref:
|
|
199
|
-
id:
|
|
190
|
+
ref: L,
|
|
191
|
+
id: $,
|
|
200
192
|
role: "listbox",
|
|
201
193
|
"aria-label": "Command results",
|
|
202
194
|
className: "overflow-y-auto px-ds-03 py-ds-03",
|
|
203
|
-
style: { maxHeight:
|
|
195
|
+
style: { maxHeight: se },
|
|
204
196
|
children: [
|
|
205
197
|
u.length === 0 && /* @__PURE__ */ t(
|
|
206
198
|
m.div,
|
|
207
199
|
{
|
|
208
|
-
initial:
|
|
200
|
+
initial: v ?? { opacity: 0 },
|
|
209
201
|
animate: { opacity: 1 },
|
|
210
|
-
transition:
|
|
202
|
+
transition: I,
|
|
211
203
|
className: "flex items-center justify-center py-ds-07",
|
|
212
204
|
children: Q ?? /* @__PURE__ */ t("p", { className: "text-ds-md text-surface-fg-subtle", children: B })
|
|
213
205
|
}
|
|
214
206
|
),
|
|
215
|
-
u.map((e, s) => /* @__PURE__ */
|
|
207
|
+
u.map((e, s) => /* @__PURE__ */ o(
|
|
216
208
|
m.div,
|
|
217
209
|
{
|
|
218
|
-
initial:
|
|
210
|
+
initial: v ?? { opacity: 0 },
|
|
219
211
|
animate: { opacity: 1 },
|
|
220
|
-
transition:
|
|
212
|
+
transition: d ? k : { ...P.fade, delay: s * 0.06 },
|
|
221
213
|
className: "mb-ds-02",
|
|
222
214
|
children: [
|
|
223
215
|
/* @__PURE__ */ t("div", { className: "px-ds-03 pb-ds-02 pt-ds-03", children: /* @__PURE__ */ t("span", { className: "text-ds-xs font-semibold uppercase tracking-wider text-surface-fg-subtle", children: e.label }) }),
|
|
224
216
|
e.items.map((a) => {
|
|
225
|
-
const i =
|
|
226
|
-
return /* @__PURE__ */
|
|
217
|
+
const i = ee.get(a.id) ?? 0, l = i === f;
|
|
218
|
+
return /* @__PURE__ */ o(
|
|
227
219
|
m.button,
|
|
228
220
|
{
|
|
229
|
-
id: `command-item-${
|
|
221
|
+
id: `command-item-${D}-${a.id}`,
|
|
230
222
|
type: "button",
|
|
231
223
|
role: "option",
|
|
232
224
|
"aria-selected": l,
|
|
233
225
|
"data-command-index": i,
|
|
234
|
-
initial:
|
|
226
|
+
initial: v ?? { opacity: 0, y: 4 },
|
|
235
227
|
animate: { opacity: 1, y: 0 },
|
|
236
|
-
transition:
|
|
228
|
+
transition: d ? k : { ...K.snappy, delay: i * 0.03 },
|
|
237
229
|
onClick: () => {
|
|
238
|
-
a.onSelect(),
|
|
230
|
+
a.onSelect(), c(!1);
|
|
239
231
|
},
|
|
240
232
|
onMouseEnter: () => h(i),
|
|
241
|
-
className:
|
|
233
|
+
className: N(
|
|
242
234
|
"flex w-full items-center gap-ds-04 rounded-ds-lg px-ds-03 py-ds-03 text-left transition-[color,background-color] duration-fast-02 ease-productive-standard",
|
|
243
235
|
l ? "bg-surface-raised-hover text-surface-fg" : "text-surface-fg-muted hover:bg-surface-raised"
|
|
244
236
|
),
|
|
@@ -246,7 +238,7 @@ const Ne = r.forwardRef(
|
|
|
246
238
|
a.icon && /* @__PURE__ */ t(
|
|
247
239
|
"span",
|
|
248
240
|
{
|
|
249
|
-
className:
|
|
241
|
+
className: N(
|
|
250
242
|
"[&>svg]:h-ico-sm [&>svg]:w-ico-sm shrink-0 transition-colors duration-fast-02 ease-productive-standard",
|
|
251
243
|
l ? "text-accent-11" : "text-surface-fg-subtle"
|
|
252
244
|
),
|
|
@@ -254,36 +246,30 @@ const Ne = r.forwardRef(
|
|
|
254
246
|
children: a.icon
|
|
255
247
|
}
|
|
256
248
|
),
|
|
257
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ o("div", { className: "flex flex-1 flex-col", children: [
|
|
258
250
|
/* @__PURE__ */ t("span", { className: "text-ds-md", children: a.renderLabel ? a.renderLabel(g) : a.label }),
|
|
259
251
|
a.description && /* @__PURE__ */ t("span", { className: "text-ds-sm text-surface-fg-subtle", children: a.description })
|
|
260
252
|
] }),
|
|
261
|
-
a.shortcut && /* @__PURE__ */ t("span", { className: "flex shrink-0 items-center gap-ds-01", children:
|
|
253
|
+
a.shortcut && /* @__PURE__ */ t("span", { className: "flex shrink-0 items-center gap-ds-01", children: Ne(a.shortcut).map((M, re) => /* @__PURE__ */ t(
|
|
262
254
|
"kbd",
|
|
263
255
|
{
|
|
264
|
-
className:
|
|
256
|
+
className: N(
|
|
265
257
|
"inline-flex min-w-[20px] items-center justify-center rounded border px-ds-02b py-ds-01 text-ds-xs font-medium shadow-[inset_0_-1px_0_rgba(0,0,0,0.1)] transition-colors duration-fast-02 ease-productive-standard",
|
|
266
258
|
l ? "bg-accent-2 text-accent-11 border-accent-6" : "bg-surface-raised text-surface-fg-subtle border-surface-border-strong"
|
|
267
259
|
),
|
|
268
|
-
children:
|
|
260
|
+
children: M === "Ctrl" || M === "ctrl" ? ge(X) : M
|
|
269
261
|
},
|
|
270
|
-
|
|
262
|
+
re
|
|
271
263
|
)) }),
|
|
272
|
-
/* @__PURE__ */ t(
|
|
264
|
+
/* @__PURE__ */ t(ye, { children: l && /* @__PURE__ */ t(
|
|
273
265
|
m.span,
|
|
274
266
|
{
|
|
275
|
-
initial:
|
|
267
|
+
initial: d ? void 0 : { opacity: 0 },
|
|
276
268
|
animate: { opacity: 1 },
|
|
277
|
-
exit:
|
|
278
|
-
transition:
|
|
269
|
+
exit: d ? void 0 : { opacity: 0 },
|
|
270
|
+
transition: I,
|
|
279
271
|
className: "inline-flex shrink-0",
|
|
280
|
-
children: /* @__PURE__ */ t(
|
|
281
|
-
K,
|
|
282
|
-
{
|
|
283
|
-
className: "h-ico-sm w-ico-sm text-surface-fg-subtle",
|
|
284
|
-
stroke: 1.5
|
|
285
|
-
}
|
|
286
|
-
)
|
|
272
|
+
children: /* @__PURE__ */ t(w, { icon: F, size: "sm", stroke: "light", className: "text-surface-fg-subtle" })
|
|
287
273
|
}
|
|
288
274
|
) })
|
|
289
275
|
]
|
|
@@ -298,18 +284,18 @@ const Ne = r.forwardRef(
|
|
|
298
284
|
]
|
|
299
285
|
}
|
|
300
286
|
),
|
|
301
|
-
|
|
287
|
+
V !== !1 && /* @__PURE__ */ t(
|
|
302
288
|
m.div,
|
|
303
289
|
{
|
|
304
|
-
initial:
|
|
290
|
+
initial: v ?? { opacity: 0 },
|
|
305
291
|
animate: { opacity: 1 },
|
|
306
|
-
transition:
|
|
292
|
+
transition: I,
|
|
307
293
|
className: "flex items-center gap-ds-05 border-t border-surface-border-strong px-ds-05 py-ds-03",
|
|
308
|
-
children:
|
|
309
|
-
e.keys === "↑↓" ? /* @__PURE__ */
|
|
310
|
-
/* @__PURE__ */ t("kbd", { className: "inline-flex h-ico-md w-ico-md items-center justify-center rounded border border-surface-border-strong bg-surface-raised shadow-[inset_0_-1px_0_rgba(0,0,0,0.1)]", children: /* @__PURE__ */ t(
|
|
311
|
-
/* @__PURE__ */ t("kbd", { className: "inline-flex h-ico-md w-ico-md items-center justify-center rounded border border-surface-border-strong bg-surface-raised shadow-[inset_0_-1px_0_rgba(0,0,0,0.1)]", children: /* @__PURE__ */ t(
|
|
312
|
-
] }) : e.keys === "↵" ? /* @__PURE__ */ t("kbd", { className: "inline-flex h-[20px] items-center justify-center rounded-ds-md border border-surface-border-strong bg-surface-raised px-ds-02b shadow-[inset_0_-1px_0_rgba(0,0,0,0.1)]", children: /* @__PURE__ */ t(
|
|
294
|
+
children: V.map((e, s) => /* @__PURE__ */ o("div", { className: "flex items-center gap-ds-02b", children: [
|
|
295
|
+
e.keys === "↑↓" ? /* @__PURE__ */ o("div", { className: "flex items-center gap-ds-01", children: [
|
|
296
|
+
/* @__PURE__ */ t("kbd", { className: "inline-flex h-ico-md w-ico-md items-center justify-center rounded border border-surface-border-strong bg-surface-raised shadow-[inset_0_-1px_0_rgba(0,0,0,0.1)]", children: /* @__PURE__ */ t(w, { icon: ue, size: "xs", className: "text-surface-fg-subtle" }) }),
|
|
297
|
+
/* @__PURE__ */ t("kbd", { className: "inline-flex h-ico-md w-ico-md items-center justify-center rounded border border-surface-border-strong bg-surface-raised shadow-[inset_0_-1px_0_rgba(0,0,0,0.1)]", children: /* @__PURE__ */ t(w, { icon: me, size: "xs", className: "text-surface-fg-subtle" }) })
|
|
298
|
+
] }) : e.keys === "↵" ? /* @__PURE__ */ t("kbd", { className: "inline-flex h-[20px] items-center justify-center rounded-ds-md border border-surface-border-strong bg-surface-raised px-ds-02b shadow-[inset_0_-1px_0_rgba(0,0,0,0.1)]", children: /* @__PURE__ */ t(w, { icon: F, size: "xs", className: "text-surface-fg-subtle" }) }) : /* @__PURE__ */ t("kbd", { className: "inline-flex h-[20px] items-center justify-center rounded-ds-md border border-surface-border-strong bg-surface-raised px-ds-02b text-ds-xs font-medium text-surface-fg-subtle shadow-[inset_0_-1px_0_rgba(0,0,0,0.1)]", children: e.keys }),
|
|
313
299
|
/* @__PURE__ */ t("span", { className: "text-ds-xs text-surface-fg-subtle", children: e.label })
|
|
314
300
|
] }, s))
|
|
315
301
|
}
|
|
@@ -320,7 +306,7 @@ const Ne = r.forwardRef(
|
|
|
320
306
|
] }) });
|
|
321
307
|
}
|
|
322
308
|
);
|
|
323
|
-
|
|
309
|
+
ke.displayName = "CommandPalette";
|
|
324
310
|
export {
|
|
325
|
-
|
|
311
|
+
ke as CommandPalette
|
|
326
312
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e, Fragment as m } from "react/jsx-runtime";
|
|
2
2
|
import * as g from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { a as h } from "../_chunks/vendor-utils.js";
|
|
4
4
|
import { cn as d } from "../ui/lib/utils.js";
|
|
5
5
|
const v = h(
|
|
6
6
|
"rounded-ds-lg will-change-[box-shadow] transition-[color,background-color,border-color,box-shadow] duration-fast-02 ease-productive-standard",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-grid.d.ts","sourceRoot":"","sources":["../../../src/composed/date-picker/calendar-grid.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"calendar-grid.d.ts","sourceRoot":"","sources":["../../../src/composed/date-picker/calendar-grid.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAwB9B,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,IAAI,CAAA;IACV,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAChG,YAAY,EAAE,IAAI,CAAA;IAClB,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IACtB,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IACxB,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IACtB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IACvB,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;IAC9B,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAA;IACrC,aAAa,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;IACnC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAA;IACvC,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,+CAA+C;IAC/C,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,2CAA2C;IAC3C,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,mDAAmD;IACnD,MAAM,CAAC,EAAE,aAAa,EAAE,CAAA;CACzB;AAED,eAAO,MAAM,YAAY,0FA2PxB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["../../../src/composed/date-picker/date-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["../../../src/composed/date-picker/date-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAgB9B,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IAC3G,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IACnB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAA;IACtC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAA;CACxC;AAED,QAAA,MAAM,UAAU,2FAyHf,CAAA;AAID,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-range-picker.d.ts","sourceRoot":"","sources":["../../../src/composed/date-picker/date-range-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"date-range-picker.d.ts","sourceRoot":"","sources":["../../../src/composed/date-picker/date-range-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAc9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAI1C,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtG,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IACvB,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,IAAI,GAAG,IAAI,CAAC;QAAC,GAAG,EAAE,IAAI,GAAG,IAAI,CAAA;KAAE,KAAK,IAAI,CAAA;IACpE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAA;IACvC,8DAA8D;IAC9D,OAAO,CAAC,EAAE,SAAS,EAAE,CAAA;IACrB,qEAAqE;IACrE,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,QAAA,MAAM,eAAe,gGA+MpB,CAAA;AAID,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-time-picker.d.ts","sourceRoot":"","sources":["../../../src/composed/date-picker/date-time-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"date-time-picker.d.ts","sourceRoot":"","sources":["../../../src/composed/date-picker/date-time-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAsB9B,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IAC/G,4CAA4C;IAC5C,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IACnB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAA;IACtC,gCAAgC;IAChC,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,8BAA8B;IAC9B,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,0CAA0C;IAC1C,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAA;IACvC,0EAA0E;IAC1E,UAAU,CAAC,EAAE,KAAK,GAAG,KAAK,CAAA;IAC1B,6CAA6C;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAcD,QAAA,MAAM,cAAc,+FA4PnB,CAAA;AAID,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-picker.d.ts","sourceRoot":"","sources":["../../../src/composed/date-picker/time-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"time-picker.d.ts","sourceRoot":"","sources":["../../../src/composed/date-picker/time-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAW9B,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IAC3G,sDAAsD;IACtD,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IACnB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;IAC/B,qDAAqD;IACrD,MAAM,CAAC,EAAE,KAAK,GAAG,KAAK,CAAA;IACtB,wCAAwC;IACxC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,wCAAwC;IACxC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,0CAA0C;IAC1C,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAcD,QAAA,MAAM,UAAU,2FA2Qf,CAAA;AAID,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deadline-indicator.d.ts","sourceRoot":"","sources":["../../src/composed/deadline-indicator.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"deadline-indicator.d.ts","sourceRoot":"","sources":["../../src/composed/deadline-indicator.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAY9B,MAAM,WAAW,sBAAuB,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IACnF,QAAQ,EAAE,IAAI,GAAG,MAAM,CAAA;IACvB,wEAAwE;IACxE,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,uEAAuE;IACvE,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,0BAA0B;IAC1B,MAAM,CAAC,EAAE,UAAU,GAAG,UAAU,CAAA;IAChC,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kFAAkF;IAClF,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AA8BD,iBAAS,iBAAiB,CAAC,EACzB,QAAQ,EACR,gBAAuB,EACvB,iBAAuB,EACvB,MAAmB,EACnB,QAAgB,EAChB,eAAuB,EACvB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,sBAAsB,2CA+DxB;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|