@devalok/shilp-sutra 0.33.2 → 0.34.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/badge-group.js +306 -246
- package/dist/_chunks/chat.js +513 -0
- package/dist/_chunks/date-picker.js +748 -0
- package/dist/_chunks/document-preview.js +109 -90
- package/dist/_chunks/file-preview.js +492 -504
- package/dist/_chunks/framer.js +5564 -5613
- package/dist/_chunks/image-preview.js +127 -88
- package/dist/_chunks/keybinding.js +12 -14
- package/dist/_chunks/link-context.js +19 -16
- package/dist/_chunks/mention-suggestion.js +353 -350
- package/dist/_chunks/motion-provider.js +26 -20
- package/dist/_chunks/popover.js +127 -0
- package/dist/_chunks/primitives.js +7584 -6425
- package/dist/_chunks/rich-chat-input.js +2070 -0
- package/dist/_chunks/rolldown-runtime.js +21 -0
- package/dist/_chunks/shared.js +126 -0
- package/dist/_chunks/sonner.js +605 -734
- package/dist/_chunks/stat-row.js +418 -440
- package/dist/_chunks/tiptap.js +15850 -19964
- package/dist/_chunks/tree-view.js +231 -290
- package/dist/_chunks/use-calendar.js +161 -208
- package/dist/_chunks/vendor-client.js +314 -2199
- package/dist/_chunks/vendor-utils.js +1721 -2978
- package/dist/ai/ai-command-provider.js +23 -17
- package/dist/ai/block-renderer.js +68 -51
- package/dist/ai/blocks/index.js +2 -12
- package/dist/ai/command-bar.js +470 -519
- package/dist/ai/conversation.js +241 -227
- package/dist/ai/index.js +181 -167
- package/dist/ai/types.js +0 -1
- package/dist/composed/activity-feed.js +232 -202
- package/dist/composed/avatar-group.js +164 -222
- package/dist/composed/bulk-action-bar.js +174 -165
- package/dist/composed/command-palette.js +290 -308
- package/dist/composed/confirm-dialog.js +28 -48
- package/dist/composed/content-card.js +69 -108
- package/dist/composed/date-picker/index.js +3 -13
- package/dist/composed/deadline-indicator.js +68 -74
- package/dist/composed/emoji-picker.js +83 -110
- package/dist/composed/empty-state.js +64 -103
- package/dist/composed/error-boundary.js +129 -127
- package/dist/composed/file-preview.js +2 -12
- package/dist/composed/filter-bar.js +98 -130
- package/dist/composed/form-section.js +61 -45
- package/dist/composed/global-loading.js +34 -47
- package/dist/composed/index.js +34 -92
- package/dist/composed/inline-edit.js +92 -107
- package/dist/composed/lib/string-utils.js +8 -8
- package/dist/composed/loading-skeleton.js +103 -171
- package/dist/composed/markdown-viewer.js +187 -139
- package/dist/composed/master-detail.js +147 -156
- package/dist/composed/member-picker.js +46 -49
- package/dist/composed/multi-select-popover.js +181 -179
- package/dist/composed/page-header.js +54 -76
- package/dist/composed/page-skeletons.js +143 -127
- package/dist/composed/priority-indicator.js +105 -111
- package/dist/composed/responsive-overlay.js +36 -41
- package/dist/composed/rich-chat-input.js +2 -1860
- package/dist/composed/rich-text-editor.js +561 -424
- package/dist/composed/schedule-view.js +134 -185
- package/dist/composed/simple-tooltip.js +21 -21
- package/dist/composed/status-badge.js +133 -137
- package/dist/hooks/index.js +7 -12
- package/dist/hooks/use-color-mode.js +28 -25
- package/dist/hooks/use-mobile.js +13 -13
- package/dist/hooks/use-toast.js +2 -4
- package/dist/hooks/use-touch-device.js +9 -11
- package/dist/hooks/use-viewport-height.js +14 -14
- package/dist/motion/index.js +3 -11
- package/dist/motion/primitives-index.js +226 -186
- package/dist/shell/app-command-palette.js +203 -234
- package/dist/shell/bottom-navbar.js +150 -190
- package/dist/shell/command-registry.js +13 -14
- package/dist/shell/index.js +10 -20
- package/dist/shell/link-context.js +2 -5
- package/dist/shell/notification-center.js +238 -259
- package/dist/shell/notification-preferences.js +241 -184
- package/dist/shell/sidebar.js +251 -281
- package/dist/shell/top-bar.js +203 -237
- package/dist/tailwind/index.cjs +426 -451
- package/dist/tailwind/index.js +2 -4
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +443 -468
- package/dist/ui/accordion.js +52 -60
- package/dist/ui/alert-dialog.js +111 -156
- package/dist/ui/alert.js +177 -99
- package/dist/ui/aspect-ratio.js +13 -16
- package/dist/ui/autocomplete.js +112 -148
- package/dist/ui/avatar.js +196 -169
- package/dist/ui/badge-group.js +2 -7
- package/dist/ui/badge-indicator.js +42 -51
- package/dist/ui/badge.js +2 -15
- package/dist/ui/banner.js +76 -68
- package/dist/ui/breadcrumb.js +65 -84
- package/dist/ui/button-group.js +109 -102
- package/dist/ui/button-processing.js +69 -73
- package/dist/ui/button.js +393 -279
- package/dist/ui/card.js +151 -157
- package/dist/ui/charts/index.js +1002 -1319
- package/dist/ui/chat/index.js +2 -11
- package/dist/ui/checkbox.js +77 -100
- package/dist/ui/code.js +18 -32
- package/dist/ui/collapsible.js +21 -29
- package/dist/ui/color-input.js +453 -372
- package/dist/ui/color-swatch.js +60 -90
- package/dist/ui/combobox.js +244 -293
- package/dist/ui/container.js +18 -24
- package/dist/ui/context-menu.js +154 -203
- package/dist/ui/data-table-body.js +116 -213
- package/dist/ui/data-table-bulk-actions.js +43 -59
- package/dist/ui/data-table-card.js +84 -71
- package/dist/ui/data-table-context.js +39 -42
- package/dist/ui/data-table-header.js +98 -139
- package/dist/ui/data-table-pagination.js +69 -82
- package/dist/ui/data-table-toolbar.js +104 -130
- package/dist/ui/data-table.js +278 -354
- package/dist/ui/devalok-grain.js +77 -66
- package/dist/ui/dialog.js +122 -151
- package/dist/ui/dropdown-menu.js +152 -203
- package/dist/ui/file-upload.js +242 -266
- package/dist/ui/form.js +60 -56
- package/dist/ui/hover-card.js +54 -54
- package/dist/ui/icon-button.js +21 -26
- package/dist/ui/icon-context.js +17 -17
- package/dist/ui/icon-group.js +22 -29
- package/dist/ui/icon.js +201 -121
- package/dist/ui/index.js +74 -350
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/input-otp.js +44 -48
- package/dist/ui/input.js +92 -169
- package/dist/ui/label.js +17 -22
- package/dist/ui/lib/date-utils.js +14 -11
- package/dist/ui/lib/motion.js +77 -36
- package/dist/ui/lib/utils.js +39 -16
- package/dist/ui/link.js +13 -24
- package/dist/ui/menubar.js +132 -210
- package/dist/ui/navigation-menu.js +164 -194
- package/dist/ui/number-input.js +72 -95
- package/dist/ui/pagination.js +122 -159
- package/dist/ui/popover.js +2 -131
- package/dist/ui/progress-ring.js +133 -143
- package/dist/ui/progress.js +51 -95
- package/dist/ui/radio.js +41 -50
- package/dist/ui/search-input.js +51 -53
- package/dist/ui/segmented-control.js +93 -114
- package/dist/ui/select.js +131 -157
- package/dist/ui/separator.js +15 -25
- package/dist/ui/sheet.js +135 -163
- package/dist/ui/sidebar.js +357 -600
- package/dist/ui/skeleton.js +179 -231
- package/dist/ui/slider.js +24 -34
- package/dist/ui/spinner.js +226 -205
- package/dist/ui/split-button.js +227 -276
- package/dist/ui/stack.js +56 -70
- package/dist/ui/stat-card.js +259 -251
- package/dist/ui/status-dot.js +67 -63
- package/dist/ui/stepper.js +119 -168
- package/dist/ui/switch.js +51 -54
- package/dist/ui/table.js +57 -90
- package/dist/ui/tabs.js +139 -156
- package/dist/ui/text.js +52 -59
- package/dist/ui/textarea.js +40 -57
- package/dist/ui/toast-types.js +0 -1
- package/dist/ui/toast.js +554 -536
- package/dist/ui/toaster.js +23 -33
- package/dist/ui/toggle-group.js +37 -41
- package/dist/ui/toggle.js +36 -40
- package/dist/ui/tooltip.js +80 -65
- package/dist/ui/tree-view/index.js +2 -6
- package/dist/ui/visually-hidden.js +12 -10
- package/llms-full.txt +1 -1
- package/llms.txt +12 -0
- package/package.json +3 -3
- package/dist/_chunks/date-time-picker.js +0 -851
- package/dist/_chunks/typing-indicator.js +0 -565
|
@@ -1,133 +1,101 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { Icon as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
N,
|
|
61
|
-
{
|
|
62
|
-
size: t,
|
|
63
|
-
className: u("w-40", r !== "" && r !== "all" && "border-accent-7", n),
|
|
64
|
-
children: /* @__PURE__ */ e(F, { placeholder: s })
|
|
65
|
-
}
|
|
66
|
-
),
|
|
67
|
-
/* @__PURE__ */ c(B, { children: [
|
|
68
|
-
/* @__PURE__ */ e(h, { value: "all", children: l }),
|
|
69
|
-
a.map((o) => /* @__PURE__ */ e(h, { value: o.value, children: o.label }, o.value))
|
|
70
|
-
] })
|
|
71
|
-
] });
|
|
2
|
+
import { a as e } from "../_chunks/framer.js";
|
|
3
|
+
import { springs as t } from "../ui/lib/motion.js";
|
|
4
|
+
import { cn as n } from "../ui/lib/utils.js";
|
|
5
|
+
import { Icon as r } from "../ui/icon.js";
|
|
6
|
+
import { n as i } from "../_chunks/badge-group.js";
|
|
7
|
+
import { Button as a } from "../ui/button.js";
|
|
8
|
+
import { Select as o, SelectContent as s, SelectItem as c, SelectTrigger as l, SelectValue as u } from "../ui/select.js";
|
|
9
|
+
import { SearchInput as d } from "../ui/search-input.js";
|
|
10
|
+
import { MultiSelectPopover as f } from "./multi-select-popover.js";
|
|
11
|
+
import * as p from "react";
|
|
12
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
13
|
+
import { IconChevronDown as g } from "@tabler/icons-react";
|
|
14
|
+
//#region src/composed/filter-bar.tsx
|
|
15
|
+
var _ = p.createContext({ size: "sm" }), v = p.forwardRef(({ searchValue: e, onSearchChange: t, searchPlaceholder: r = "Search...", onClearAll: i, size: o = "sm", children: s, className: c, ...l }, u) => /* @__PURE__ */ m(_.Provider, {
|
|
16
|
+
value: { size: o },
|
|
17
|
+
children: /* @__PURE__ */ h("div", {
|
|
18
|
+
ref: u,
|
|
19
|
+
className: n("flex flex-wrap items-center gap-ds-03", c),
|
|
20
|
+
role: "toolbar",
|
|
21
|
+
"aria-label": "Filters",
|
|
22
|
+
...l,
|
|
23
|
+
children: [
|
|
24
|
+
t && /* @__PURE__ */ m(d, {
|
|
25
|
+
size: o,
|
|
26
|
+
value: e,
|
|
27
|
+
onChange: (e) => t(e.target.value),
|
|
28
|
+
onClear: e ? () => t("") : void 0,
|
|
29
|
+
placeholder: r,
|
|
30
|
+
className: "w-48"
|
|
31
|
+
}),
|
|
32
|
+
s,
|
|
33
|
+
i && /* @__PURE__ */ m(a, {
|
|
34
|
+
variant: "ghost",
|
|
35
|
+
size: o,
|
|
36
|
+
onClick: i,
|
|
37
|
+
children: "Clear all"
|
|
38
|
+
})
|
|
39
|
+
]
|
|
40
|
+
})
|
|
41
|
+
}));
|
|
42
|
+
v.displayName = "FilterBar";
|
|
43
|
+
function y({ label: e, value: t, onValueChange: r, options: i, allLabel: a = "All", className: d }) {
|
|
44
|
+
let { size: f } = p.useContext(_);
|
|
45
|
+
return /* @__PURE__ */ h(o, {
|
|
46
|
+
value: t,
|
|
47
|
+
onValueChange: r,
|
|
48
|
+
children: [/* @__PURE__ */ m(l, {
|
|
49
|
+
size: f,
|
|
50
|
+
className: n("w-40", t !== "" && t !== "all" && "border-accent-7", d),
|
|
51
|
+
children: /* @__PURE__ */ m(u, { placeholder: e })
|
|
52
|
+
}), /* @__PURE__ */ h(s, { children: [/* @__PURE__ */ m(c, {
|
|
53
|
+
value: "all",
|
|
54
|
+
children: a
|
|
55
|
+
}), i.map((e) => /* @__PURE__ */ m(c, {
|
|
56
|
+
value: e.value,
|
|
57
|
+
children: e.label
|
|
58
|
+
}, e.value))] })]
|
|
59
|
+
});
|
|
72
60
|
}
|
|
73
|
-
function
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
})
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
z.span,
|
|
112
|
-
{
|
|
113
|
-
initial: { scale: 0.8 },
|
|
114
|
-
animate: { scale: 1 },
|
|
115
|
-
transition: b.bouncy,
|
|
116
|
-
className: "inline-flex",
|
|
117
|
-
children: /* @__PURE__ */ e(C, { size: "xs", variant: "solid", className: "ml-ds-01", children: t })
|
|
118
|
-
},
|
|
119
|
-
t
|
|
120
|
-
)
|
|
121
|
-
] }),
|
|
122
|
-
/* @__PURE__ */ e(v, { icon: x, size: "xs", className: "opacity-50 shrink-0" })
|
|
123
|
-
]
|
|
124
|
-
}
|
|
125
|
-
)
|
|
126
|
-
}
|
|
127
|
-
);
|
|
61
|
+
function b({ label: a, value: o, onValueChange: s, options: c, className: l }) {
|
|
62
|
+
let { size: u } = p.useContext(_), d = o.length;
|
|
63
|
+
return /* @__PURE__ */ m(f, {
|
|
64
|
+
items: p.useMemo(() => c.map((e) => ({
|
|
65
|
+
id: e.value,
|
|
66
|
+
label: e.label
|
|
67
|
+
})), [c]),
|
|
68
|
+
value: o,
|
|
69
|
+
onValueChange: s,
|
|
70
|
+
searchPlaceholder: `Search ${a.toLowerCase()}...`,
|
|
71
|
+
children: /* @__PURE__ */ h("button", {
|
|
72
|
+
type: "button",
|
|
73
|
+
className: n("flex items-center justify-between gap-ds-02 whitespace-nowrap rounded-ds-md border bg-surface-raised-hover text-surface-fg", "hover:bg-surface-raised-active transition-colors duration-fast-01 ease-productive-standard", {
|
|
74
|
+
xs: "h-ds-xs-plus text-ds-sm px-ds-02",
|
|
75
|
+
sm: "h-ds-sm text-ds-sm px-ds-03",
|
|
76
|
+
md: "h-ds-md text-ds-md px-ds-04"
|
|
77
|
+
}[u], d > 0 ? "border-accent-7" : "border-surface-border-strong", "w-40", l),
|
|
78
|
+
children: [/* @__PURE__ */ h("span", {
|
|
79
|
+
className: "flex items-center gap-ds-02 truncate",
|
|
80
|
+
children: [/* @__PURE__ */ m("span", { children: a }), d > 0 && /* @__PURE__ */ m(e.span, {
|
|
81
|
+
initial: { scale: .8 },
|
|
82
|
+
animate: { scale: 1 },
|
|
83
|
+
transition: t.bouncy,
|
|
84
|
+
className: "inline-flex",
|
|
85
|
+
children: /* @__PURE__ */ m(i, {
|
|
86
|
+
size: "xs",
|
|
87
|
+
variant: "solid",
|
|
88
|
+
className: "ml-ds-01",
|
|
89
|
+
children: d
|
|
90
|
+
})
|
|
91
|
+
}, d)]
|
|
92
|
+
}), /* @__PURE__ */ m(r, {
|
|
93
|
+
icon: g,
|
|
94
|
+
size: "xs",
|
|
95
|
+
className: "opacity-50 shrink-0"
|
|
96
|
+
})]
|
|
97
|
+
})
|
|
98
|
+
});
|
|
128
99
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
G as FilterMultiSelect,
|
|
132
|
-
E as FilterSelect
|
|
133
|
-
};
|
|
100
|
+
//#endregion
|
|
101
|
+
export { v as FilterBar, b as FilterMultiSelect, y as FilterSelect };
|
|
@@ -1,47 +1,63 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { cn as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
2
|
+
import { a as e } from "../_chunks/framer.js";
|
|
3
|
+
import { springs as t } from "../ui/lib/motion.js";
|
|
4
|
+
import { cn as n } from "../ui/lib/utils.js";
|
|
5
|
+
import { Icon as r } from "../ui/icon.js";
|
|
6
|
+
import { Collapsible as i, CollapsibleContent as a, CollapsibleTrigger as o } from "../ui/collapsible.js";
|
|
7
|
+
import * as s from "react";
|
|
8
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
9
|
+
import { IconChevronDown as u } from "@tabler/icons-react";
|
|
10
|
+
//#region src/composed/form-section.tsx
|
|
11
|
+
var d = s.forwardRef(({ title: d, description: f, collapsible: p = !1, defaultOpen: m = !0, children: h, className: g, ..._ }, v) => {
|
|
12
|
+
let y = /* @__PURE__ */ l("div", {
|
|
13
|
+
className: "flex flex-col gap-ds-01",
|
|
14
|
+
children: [/* @__PURE__ */ c("span", {
|
|
15
|
+
className: "text-ds-md font-semibold text-surface-fg font-sans",
|
|
16
|
+
children: d
|
|
17
|
+
}), f && /* @__PURE__ */ c("span", {
|
|
18
|
+
className: "text-ds-sm text-surface-fg-muted font-sans",
|
|
19
|
+
children: f
|
|
20
|
+
})]
|
|
21
|
+
}), [b, x] = s.useState(m);
|
|
22
|
+
return p ? /* @__PURE__ */ l(i, {
|
|
23
|
+
defaultOpen: m,
|
|
24
|
+
onOpenChange: x,
|
|
25
|
+
className: n("space-y-ds-04", g),
|
|
26
|
+
..._,
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ l(o, {
|
|
29
|
+
className: "flex w-full items-center justify-between py-ds-02 group",
|
|
30
|
+
children: [y, /* @__PURE__ */ c(e.span, {
|
|
31
|
+
animate: { rotate: b ? 180 : 0 },
|
|
32
|
+
transition: t.snappy,
|
|
33
|
+
className: "inline-flex",
|
|
34
|
+
children: /* @__PURE__ */ c(r, {
|
|
35
|
+
icon: u,
|
|
36
|
+
size: "sm",
|
|
37
|
+
className: "text-surface-fg-muted"
|
|
38
|
+
})
|
|
39
|
+
})]
|
|
40
|
+
}),
|
|
41
|
+
/* @__PURE__ */ c("div", { className: "border-b border-surface-border-subtle" }),
|
|
42
|
+
/* @__PURE__ */ c(a, { children: /* @__PURE__ */ c("div", {
|
|
43
|
+
className: "space-y-ds-04 pt-ds-02",
|
|
44
|
+
children: h
|
|
45
|
+
}) })
|
|
46
|
+
]
|
|
47
|
+
}) : /* @__PURE__ */ l("div", {
|
|
48
|
+
ref: v,
|
|
49
|
+
className: n("space-y-ds-04", g),
|
|
50
|
+
..._,
|
|
51
|
+
children: [
|
|
52
|
+
y,
|
|
53
|
+
/* @__PURE__ */ c("div", { className: "border-b border-surface-border-subtle" }),
|
|
54
|
+
/* @__PURE__ */ c("div", {
|
|
55
|
+
className: "space-y-ds-04",
|
|
56
|
+
children: h
|
|
57
|
+
})
|
|
58
|
+
]
|
|
59
|
+
});
|
|
43
60
|
});
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
};
|
|
61
|
+
d.displayName = "FormSection";
|
|
62
|
+
//#endregion
|
|
63
|
+
export { d as FormSection };
|
|
@@ -1,48 +1,35 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
r(!0);
|
|
37
|
-
}, 200));
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
)
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
d.displayName = "GlobalLoading";
|
|
46
|
-
export {
|
|
47
|
-
d as GlobalLoading
|
|
48
|
-
};
|
|
2
|
+
import { cn as e } from "../ui/lib/utils.js";
|
|
3
|
+
import * as t from "react";
|
|
4
|
+
import { useEffect as n, useRef as r, useState as i } from "react";
|
|
5
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
6
|
+
//#region src/composed/global-loading.tsx
|
|
7
|
+
var o = t.forwardRef(function({ isLoading: t, className: o, ...s }, c) {
|
|
8
|
+
let l = r(null), [u, d] = i(!0), f = r(void 0);
|
|
9
|
+
return n(() => () => {
|
|
10
|
+
clearTimeout(f.current);
|
|
11
|
+
}, []), n(() => {
|
|
12
|
+
l.current && t && d(!1);
|
|
13
|
+
}, [t]), /* @__PURE__ */ a("div", {
|
|
14
|
+
ref: c,
|
|
15
|
+
role: "progressbar",
|
|
16
|
+
"aria-label": "Page loading",
|
|
17
|
+
"aria-hidden": !t,
|
|
18
|
+
"aria-valuetext": t ? "Loading" : void 0,
|
|
19
|
+
...s,
|
|
20
|
+
className: e("pointer-events-none fixed inset-x-0 top-0 z-toast h-1", o),
|
|
21
|
+
children: /* @__PURE__ */ a("div", {
|
|
22
|
+
ref: l,
|
|
23
|
+
className: e("h-full bg-accent-9 transition-[width,opacity] duration-slow-01 ease-productive-standard", t && "w-4/5 opacity-100", !t && u && "w-0 opacity-0", !t && !u && "w-full opacity-100"),
|
|
24
|
+
style: !t && !u ? { boxShadow: "0 0 8px var(--color-accent-9)" } : void 0,
|
|
25
|
+
onTransitionEnd: () => {
|
|
26
|
+
t || (f.current = setTimeout(() => {
|
|
27
|
+
d(!0);
|
|
28
|
+
}, 200));
|
|
29
|
+
}
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
o.displayName = "GlobalLoading";
|
|
34
|
+
//#endregion
|
|
35
|
+
export { o as GlobalLoading };
|
package/dist/composed/index.js
CHANGED
|
@@ -1,93 +1,35 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
export {
|
|
36
|
-
Q as ActivityFeed,
|
|
37
|
-
g as AudioPlayer,
|
|
38
|
-
C as AudioWaveform,
|
|
39
|
-
s as AvatarGroup,
|
|
40
|
-
v as BoardSkeleton,
|
|
41
|
-
pe as BulkActionBar,
|
|
42
|
-
he as CalendarGrid,
|
|
43
|
-
y as CardSkeleton,
|
|
44
|
-
L as CommandPalette,
|
|
45
|
-
J as ConfirmDialog,
|
|
46
|
-
a as ContentCard,
|
|
47
|
-
M as DashboardSkeleton,
|
|
48
|
-
Ie as DatePicker,
|
|
49
|
-
Re as DateRangePicker,
|
|
50
|
-
Ve as DateTimePicker,
|
|
51
|
-
le as DeadlineIndicator,
|
|
52
|
-
Ce as EmojiNode,
|
|
53
|
-
ue as EmojiPicker,
|
|
54
|
-
Se as EmojiPickerPopover,
|
|
55
|
-
x as EmptyState,
|
|
56
|
-
b as ErrorBoundary,
|
|
57
|
-
j as ErrorDisplay,
|
|
58
|
-
Te as FilePreview,
|
|
59
|
-
$ as FilterBar,
|
|
60
|
-
ee as FilterMultiSelect,
|
|
61
|
-
re as FilterSelect,
|
|
62
|
-
ie as FormSection,
|
|
63
|
-
A as GlobalLoading,
|
|
64
|
-
te as InlineEdit,
|
|
65
|
-
B as ListSkeleton,
|
|
66
|
-
ke as MarkdownViewer,
|
|
67
|
-
ne as MasterDetail,
|
|
68
|
-
H as MemberPicker,
|
|
69
|
-
be as MonthPicker,
|
|
70
|
-
Z as MultiSelectPopover,
|
|
71
|
-
o as PageHeader,
|
|
72
|
-
je as Presets,
|
|
73
|
-
d as PriorityIndicator,
|
|
74
|
-
I as ProjectListSkeleton,
|
|
75
|
-
ce as ResponsiveOverlay,
|
|
76
|
-
D as RichChatInput,
|
|
77
|
-
P as RichTextEditor,
|
|
78
|
-
u as RichTextViewer,
|
|
79
|
-
q as ScheduleView,
|
|
80
|
-
O as SimpleTooltip,
|
|
81
|
-
p as StatusBadge,
|
|
82
|
-
h as TableSkeleton,
|
|
83
|
-
R as TaskDetailSkeleton,
|
|
84
|
-
we as TimePicker,
|
|
85
|
-
Ae as YearPicker,
|
|
86
|
-
i as contentCardVariants,
|
|
87
|
-
De as createEmojiSuggestion,
|
|
88
|
-
ye as getInitials,
|
|
89
|
-
U as groupItemsByTime,
|
|
90
|
-
f as statusBadgeVariants,
|
|
91
|
-
Fe as useCalendar,
|
|
92
|
-
E as useVoiceRecorder
|
|
93
|
-
};
|
|
2
|
+
import { getInitials as e } from "./lib/string-utils.js";
|
|
3
|
+
import { ActivityFeed as t, groupItemsByTime as n } from "./activity-feed.js";
|
|
4
|
+
import { AvatarGroup as r } from "./avatar-group.js";
|
|
5
|
+
import { BulkActionBar as i } from "./bulk-action-bar.js";
|
|
6
|
+
import { CommandPalette as a } from "./command-palette.js";
|
|
7
|
+
import { ConfirmDialog as o } from "./confirm-dialog.js";
|
|
8
|
+
import { ContentCard as s, contentCardVariants as c } from "./content-card.js";
|
|
9
|
+
import { SimpleTooltip as l } from "./simple-tooltip.js";
|
|
10
|
+
import { DeadlineIndicator as u } from "./deadline-indicator.js";
|
|
11
|
+
import { EmojiPicker as d, EmojiPickerPopover as f } from "./emoji-picker.js";
|
|
12
|
+
import { EmptyState as p } from "./empty-state.js";
|
|
13
|
+
import { ErrorBoundary as m, ErrorDisplay as h } from "./error-boundary.js";
|
|
14
|
+
import { t as g } from "../_chunks/file-preview.js";
|
|
15
|
+
import { MultiSelectPopover as _ } from "./multi-select-popover.js";
|
|
16
|
+
import { FilterBar as v, FilterMultiSelect as y, FilterSelect as b } from "./filter-bar.js";
|
|
17
|
+
import { FormSection as x } from "./form-section.js";
|
|
18
|
+
import { GlobalLoading as S } from "./global-loading.js";
|
|
19
|
+
import { PageHeader as C } from "./page-header.js";
|
|
20
|
+
import { StatusBadge as w, statusBadgeVariants as T } from "./status-badge.js";
|
|
21
|
+
import { PriorityIndicator as E } from "./priority-indicator.js";
|
|
22
|
+
import { n as D, r as O } from "../_chunks/mention-suggestion.js";
|
|
23
|
+
import { RichTextEditor as k, RichTextViewer as A } from "./rich-text-editor.js";
|
|
24
|
+
import { b as j, n as M, r as N, t as P } from "../_chunks/rich-chat-input.js";
|
|
25
|
+
import { n as F, t as I } from "../_chunks/use-calendar.js";
|
|
26
|
+
import { a as L, i as R, n as z, o as B, r as V, s as H, t as U } from "../_chunks/date-picker.js";
|
|
27
|
+
import { BoardSkeleton as W, CardSkeleton as G, ListSkeleton as K, TableSkeleton as q } from "./loading-skeleton.js";
|
|
28
|
+
import { DashboardSkeleton as J, ProjectListSkeleton as Y, TaskDetailSkeleton as X } from "./page-skeletons.js";
|
|
29
|
+
import { MemberPicker as Z } from "./member-picker.js";
|
|
30
|
+
import { ScheduleView as Q } from "./schedule-view.js";
|
|
31
|
+
import { InlineEdit as $ } from "./inline-edit.js";
|
|
32
|
+
import { MasterDetail as ee } from "./master-detail.js";
|
|
33
|
+
import { ResponsiveOverlay as te } from "./responsive-overlay.js";
|
|
34
|
+
import { MarkdownViewer as ne } from "./markdown-viewer.js";
|
|
35
|
+
export { t as ActivityFeed, N as AudioPlayer, j as AudioWaveform, r as AvatarGroup, W as BoardSkeleton, i as BulkActionBar, F as CalendarGrid, G as CardSkeleton, a as CommandPalette, o as ConfirmDialog, s as ContentCard, J as DashboardSkeleton, L as DatePicker, V as DateRangePicker, U as DateTimePicker, u as DeadlineIndicator, O as EmojiNode, d as EmojiPicker, f as EmojiPickerPopover, p as EmptyState, m as ErrorBoundary, h as ErrorDisplay, g as FilePreview, v as FilterBar, y as FilterMultiSelect, b as FilterSelect, x as FormSection, S as GlobalLoading, $ as InlineEdit, K as ListSkeleton, ne as MarkdownViewer, ee as MasterDetail, Z as MemberPicker, B as MonthPicker, _ as MultiSelectPopover, C as PageHeader, R as Presets, E as PriorityIndicator, Y as ProjectListSkeleton, te as ResponsiveOverlay, P as RichChatInput, k as RichTextEditor, A as RichTextViewer, Q as ScheduleView, l as SimpleTooltip, w as StatusBadge, q as TableSkeleton, X as TaskDetailSkeleton, z as TimePicker, H as YearPicker, c as contentCardVariants, D as createEmojiSuggestion, e as getInitials, n as groupItemsByTime, T as statusBadgeVariants, I as useCalendar, M as useVoiceRecorder };
|