@devalok/shilp-sutra 0.17.2 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/avatar.js +21 -19
- package/dist/_chunks/button-group.js +27 -0
- package/dist/_chunks/button.js +53 -35
- package/dist/_chunks/card.js +50 -0
- package/dist/_chunks/checkbox.js +11 -9
- package/dist/_chunks/date-utils.js +13 -0
- package/dist/_chunks/form.js +20 -20
- package/dist/_chunks/link-context.js +19 -0
- package/dist/_chunks/motion.js +1376 -0
- package/dist/_chunks/motion2.js +35 -0
- package/dist/_chunks/primitives.js +3499 -3920
- package/dist/_chunks/sidebar.js +225 -211
- package/dist/_chunks/spinner.js +58 -28
- package/dist/_chunks/tiptap.js +1 -1
- package/dist/_chunks/tooltip.js +27 -10
- package/dist/_chunks/tree-view.js +180 -178
- package/dist/_chunks/use-calendar.js +531 -515
- package/dist/_chunks/utils.js +3 -3
- package/dist/_chunks/vendor-client.js +1792 -1049
- package/dist/_chunks/vendor-utils.js +5123 -1169
- package/dist/composed/activity-feed.d.ts.map +1 -1
- package/dist/composed/activity-feed.js +71 -74
- package/dist/composed/avatar-group.js +36 -36
- package/dist/composed/command-palette.d.ts +1 -1
- package/dist/composed/command-palette.d.ts.map +1 -1
- package/dist/composed/command-palette.js +207 -158
- package/dist/composed/confirm-dialog.d.ts +3 -5
- package/dist/composed/confirm-dialog.d.ts.map +1 -1
- package/dist/composed/confirm-dialog.js +46 -41
- package/dist/composed/content-card.d.ts +1 -1
- package/dist/composed/content-card.js +29 -29
- package/dist/composed/date-picker/calendar-grid.d.ts +1 -1
- package/dist/composed/date-picker/calendar-grid.d.ts.map +1 -1
- package/dist/composed/date-picker/date-picker.d.ts +1 -1
- package/dist/composed/date-picker/date-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/date-range-picker.d.ts +1 -1
- package/dist/composed/date-picker/date-range-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/date-time-picker.d.ts +1 -1
- package/dist/composed/date-picker/date-time-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/month-picker.d.ts +1 -1
- package/dist/composed/date-picker/month-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/presets.d.ts +1 -1
- package/dist/composed/date-picker/presets.d.ts.map +1 -1
- package/dist/composed/date-picker/time-picker.d.ts +1 -1
- package/dist/composed/date-picker/time-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/year-picker.d.ts +1 -1
- package/dist/composed/date-picker/year-picker.d.ts.map +1 -1
- package/dist/composed/empty-state.d.ts +1 -0
- package/dist/composed/empty-state.d.ts.map +1 -1
- package/dist/composed/empty-state.js +51 -47
- package/dist/composed/error-boundary.d.ts +1 -1
- package/dist/composed/error-boundary.d.ts.map +1 -1
- package/dist/composed/error-boundary.js +48 -48
- package/dist/composed/extensions/mention-suggestion.d.ts +1 -1
- package/dist/composed/extensions/mention-suggestion.d.ts.map +1 -1
- package/dist/composed/global-loading.d.ts +1 -1
- package/dist/composed/global-loading.d.ts.map +1 -1
- package/dist/composed/global-loading.js +23 -20
- package/dist/composed/index.d.ts +2 -4
- package/dist/composed/index.d.ts.map +1 -1
- package/dist/composed/index.js +26 -29
- package/dist/composed/loading-skeleton.d.ts +1 -1
- package/dist/composed/loading-skeleton.d.ts.map +1 -1
- package/dist/composed/loading-skeleton.js +92 -87
- package/dist/composed/member-picker.d.ts +1 -1
- package/dist/composed/member-picker.d.ts.map +1 -1
- package/dist/composed/member-picker.js +47 -43
- package/dist/composed/page-header.js +36 -36
- package/dist/composed/page-skeletons.d.ts +9 -3
- package/dist/composed/page-skeletons.d.ts.map +1 -1
- package/dist/composed/page-skeletons.js +58 -58
- package/dist/composed/priority-indicator.js +19 -19
- package/dist/composed/rich-text-editor.d.ts +3 -3
- package/dist/composed/rich-text-editor.d.ts.map +1 -1
- package/dist/composed/rich-text-editor.js +316 -309
- package/dist/composed/schedule-view.js +88 -88
- package/dist/composed/simple-tooltip.d.ts +2 -5
- package/dist/composed/simple-tooltip.d.ts.map +1 -1
- package/dist/composed/simple-tooltip.js +19 -14
- package/dist/composed/status-badge.d.ts +2 -1
- package/dist/composed/status-badge.d.ts.map +1 -1
- package/dist/composed/status-badge.js +76 -63
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +3 -4
- package/dist/hooks/use-toast.d.ts +15 -45
- package/dist/hooks/use-toast.d.ts.map +1 -1
- package/dist/hooks/use-toast.js +2 -95
- package/dist/motion/index.d.ts +4 -0
- package/dist/motion/index.d.ts.map +1 -0
- package/dist/motion/index.js +10 -0
- package/dist/motion/motion-provider.d.ts +18 -0
- package/dist/motion/motion-provider.d.ts.map +1 -0
- package/dist/motion/motion-provider.js +24 -0
- package/dist/motion/primitives-index.d.ts +3 -0
- package/dist/motion/primitives-index.d.ts.map +1 -0
- package/dist/motion/primitives-index.js +11 -0
- package/dist/motion/primitives.d.ts +38 -0
- package/dist/motion/primitives.d.ts.map +1 -0
- package/dist/motion/primitives.js +187 -0
- package/dist/shell/app-command-palette.d.ts +14 -5
- package/dist/shell/app-command-palette.d.ts.map +1 -1
- package/dist/shell/app-command-palette.js +152 -130
- package/dist/shell/bottom-navbar.d.ts.map +1 -1
- package/dist/shell/bottom-navbar.js +90 -92
- package/dist/shell/command-registry.d.ts +23 -0
- package/dist/shell/command-registry.d.ts.map +1 -0
- package/dist/shell/command-registry.js +18 -0
- package/dist/shell/index.d.ts +2 -1
- package/dist/shell/index.d.ts.map +1 -1
- package/dist/shell/index.js +14 -11
- package/dist/shell/link-context.d.ts +6 -10
- package/dist/shell/link-context.d.ts.map +1 -1
- package/dist/shell/link-context.js +3 -16
- package/dist/shell/notification-center.d.ts.map +1 -1
- package/dist/shell/notification-center.js +137 -132
- package/dist/shell/notification-preferences.d.ts +10 -5
- package/dist/shell/notification-preferences.d.ts.map +1 -1
- package/dist/shell/notification-preferences.js +168 -165
- package/dist/shell/sidebar.js +119 -119
- package/dist/shell/top-bar.js +65 -65
- package/dist/tailwind/index.cjs +118 -297
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +118 -297
- package/dist/tokens/generate-scale.d.ts +86 -0
- package/dist/tokens/generate-scale.d.ts.map +1 -0
- package/dist/tokens/primitives.css +415 -187
- package/dist/tokens/semantic.css +244 -270
- package/dist/tokens/typography.css +6 -6
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/accordion.js +32 -22
- package/dist/ui/alert-dialog.d.ts +4 -1
- package/dist/ui/alert-dialog.d.ts.map +1 -1
- package/dist/ui/alert-dialog.js +114 -73
- package/dist/ui/alert.d.ts +6 -1
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +64 -49
- package/dist/ui/aspect-ratio.d.ts +2 -1
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/aspect-ratio.js +14 -4
- package/dist/ui/autocomplete.d.ts +11 -2
- package/dist/ui/autocomplete.d.ts.map +1 -1
- package/dist/ui/autocomplete.js +82 -57
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +45 -34
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +70 -65
- package/dist/ui/banner.d.ts.map +1 -1
- package/dist/ui/banner.js +53 -39
- package/dist/ui/breadcrumb.d.ts +2 -0
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/breadcrumb.js +21 -21
- package/dist/ui/button.d.ts +10 -1
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +103 -67
- package/dist/ui/card.d.ts +2 -2
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +61 -53
- package/dist/ui/charts/_internal/animation.d.ts +1 -1
- package/dist/ui/charts/_internal/animation.d.ts.map +1 -1
- package/dist/ui/charts/area-chart.d.ts +3 -5
- package/dist/ui/charts/area-chart.d.ts.map +1 -1
- package/dist/ui/charts/bar-chart.d.ts +3 -5
- package/dist/ui/charts/bar-chart.d.ts.map +1 -1
- package/dist/ui/charts/chart-container.d.ts +2 -5
- package/dist/ui/charts/chart-container.d.ts.map +1 -1
- package/dist/ui/charts/gauge-chart.d.ts +3 -5
- package/dist/ui/charts/gauge-chart.d.ts.map +1 -1
- package/dist/ui/charts/index.js +1204 -1095
- package/dist/ui/charts/line-chart.d.ts +3 -5
- package/dist/ui/charts/line-chart.d.ts.map +1 -1
- package/dist/ui/charts/pie-chart.d.ts +2 -5
- package/dist/ui/charts/pie-chart.d.ts.map +1 -1
- package/dist/ui/charts/radar-chart.d.ts +3 -5
- package/dist/ui/charts/radar-chart.d.ts.map +1 -1
- package/dist/ui/charts/sparkline.d.ts +5 -5
- package/dist/ui/charts/sparkline.d.ts.map +1 -1
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +31 -19
- package/dist/ui/chip.d.ts +3 -2
- package/dist/ui/chip.d.ts.map +1 -1
- package/dist/ui/chip.js +62 -54
- package/dist/ui/code.js +16 -16
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/collapsible.js +23 -15
- package/dist/ui/color-input.d.ts +1 -1
- package/dist/ui/color-input.d.ts.map +1 -1
- package/dist/ui/color-input.js +27 -27
- package/dist/ui/combobox.d.ts +2 -0
- package/dist/ui/combobox.d.ts.map +1 -1
- package/dist/ui/combobox.js +177 -166
- package/dist/ui/context-menu.d.ts +4 -2
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +146 -86
- package/dist/ui/data-table-toolbar.d.ts +3 -2
- package/dist/ui/data-table-toolbar.d.ts.map +1 -1
- package/dist/ui/data-table-toolbar.js +61 -59
- package/dist/ui/data-table.d.ts.map +1 -1
- package/dist/ui/data-table.js +289 -254
- package/dist/ui/dialog.d.ts +3 -1
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +114 -74
- package/dist/ui/dropdown-menu.d.ts +5 -3
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.js +150 -89
- package/dist/ui/file-upload.d.ts.map +1 -1
- package/dist/ui/file-upload.js +169 -127
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +29 -26
- package/dist/ui/hover-card.d.ts +1 -1
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/hover-card.js +53 -21
- package/dist/ui/index.d.ts +18 -18
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +432 -449
- package/dist/ui/input-otp.d.ts +2 -0
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/input-otp.js +7 -7
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +36 -34
- package/dist/ui/label.js +12 -12
- package/dist/ui/lib/date-utils.d.ts +6 -0
- package/dist/ui/lib/date-utils.d.ts.map +1 -0
- package/dist/ui/lib/index.d.ts +7 -0
- package/dist/ui/lib/index.d.ts.map +1 -0
- package/dist/ui/lib/link-context.d.ts +13 -0
- package/dist/ui/lib/link-context.d.ts.map +1 -0
- package/dist/ui/lib/motion.d.ts +44 -9
- package/dist/ui/lib/motion.d.ts.map +1 -1
- package/dist/ui/lib/use-ripple.d.ts.map +1 -1
- package/dist/ui/lib/utils.js +1 -1
- package/dist/ui/link.js +11 -11
- package/dist/ui/menubar.d.ts +4 -2
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +141 -97
- package/dist/ui/navigation-menu.d.ts +2 -0
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +176 -73
- package/dist/ui/number-input.d.ts.map +1 -1
- package/dist/ui/number-input.js +56 -49
- package/dist/ui/pagination.js +22 -22
- package/dist/ui/popover.d.ts +2 -1
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/popover.js +54 -22
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +58 -42
- package/dist/ui/radio.js +19 -19
- package/dist/ui/search-input.d.ts.map +1 -1
- package/dist/ui/search-input.js +28 -33
- package/dist/ui/segmented-control.d.ts +2 -2
- package/dist/ui/segmented-control.d.ts.map +1 -1
- package/dist/ui/segmented-control.js +143 -124
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +72 -61
- package/dist/ui/separator.js +11 -11
- package/dist/ui/sheet.d.ts +1 -1
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +111 -75
- package/dist/ui/sidebar.d.ts +6 -1
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +27 -25
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/slider.d.ts +9 -0
- package/dist/ui/slider.d.ts.map +1 -1
- package/dist/ui/slider.js +33 -27
- package/dist/ui/spinner.d.ts +32 -25
- package/dist/ui/spinner.d.ts.map +1 -1
- package/dist/ui/spinner.js +199 -40
- package/dist/ui/stat-card.d.ts.map +1 -1
- package/dist/ui/stat-card.js +183 -116
- package/dist/ui/stepper.d.ts +22 -1
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/stepper.js +121 -43
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +39 -26
- package/dist/ui/table.d.ts +3 -0
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/table.js +47 -47
- package/dist/ui/tabs.d.ts +4 -1
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +94 -44
- package/dist/ui/text.d.ts +3 -3
- package/dist/ui/text.js +1 -1
- package/dist/ui/textarea.d.ts.map +1 -1
- package/dist/ui/textarea.js +29 -27
- package/dist/ui/toast-types.d.ts +43 -0
- package/dist/ui/toast-types.d.ts.map +1 -0
- package/dist/ui/toast-types.js +2 -0
- package/dist/ui/toast.d.ts +60 -26
- package/dist/ui/toast.d.ts.map +1 -1
- package/dist/ui/toast.js +535 -89
- package/dist/ui/toaster.d.ts +19 -23
- package/dist/ui/toaster.d.ts.map +1 -1
- package/dist/ui/toaster.js +31 -21
- package/dist/ui/toggle-group.d.ts +2 -2
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle-group.js +29 -26
- package/dist/ui/toggle.d.ts +2 -2
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/toggle.js +21 -17
- package/dist/ui/tooltip.d.ts +2 -1
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/dist/ui/tooltip.js +58 -21
- package/dist/ui/tree-view/tree-view.d.ts +1 -1
- package/dist/ui/tree-view/tree-view.d.ts.map +1 -1
- package/llms-full.txt +221 -102
- package/llms.txt +65 -12
- package/package.json +26 -8
- package/dist/_chunks/switch.js +0 -10
- package/dist/composed/upload-progress.d.ts +0 -33
- package/dist/composed/upload-progress.d.ts.map +0 -1
- package/dist/composed/upload-progress.js +0 -386
- package/dist/ui/lib/use-reduced-motion.d.ts +0 -4
- package/dist/ui/lib/use-reduced-motion.d.ts.map +0 -1
- package/dist/ui/transitions.d.ts +0 -17
- package/dist/ui/transitions.d.ts.map +0 -1
- package/dist/ui/transitions.js +0 -111
|
@@ -1,36 +1,39 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import * as
|
|
4
|
-
import { useRef as l, useState as
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import * as m from "react";
|
|
4
|
+
import { useRef as l, useState as p, useEffect as i } from "react";
|
|
5
5
|
import { c } from "../_chunks/utils.js";
|
|
6
|
-
const
|
|
7
|
-
function({ isLoading: e },
|
|
8
|
-
const t = l(null), [
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
}, [
|
|
6
|
+
const d = m.forwardRef(
|
|
7
|
+
function({ isLoading: e, className: s, ...u }, f) {
|
|
8
|
+
const t = l(null), [r, a] = p(!0), o = l();
|
|
9
|
+
return i(() => () => {
|
|
10
|
+
clearTimeout(o.current);
|
|
11
|
+
}, []), i(() => {
|
|
12
|
+
t.current && e && a(!1);
|
|
13
|
+
}, [e]), /* @__PURE__ */ n(
|
|
12
14
|
"div",
|
|
13
15
|
{
|
|
14
|
-
ref:
|
|
16
|
+
ref: f,
|
|
15
17
|
role: "progressbar",
|
|
16
18
|
"aria-label": "Page loading",
|
|
17
19
|
"aria-hidden": !e,
|
|
18
20
|
"aria-valuetext": e ? "Loading" : void 0,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
...u,
|
|
22
|
+
className: c("pointer-events-none fixed inset-x-0 top-0 z-toast h-1", s),
|
|
23
|
+
children: /* @__PURE__ */ n(
|
|
21
24
|
"div",
|
|
22
25
|
{
|
|
23
26
|
ref: t,
|
|
24
27
|
className: c(
|
|
25
|
-
"h-full bg-
|
|
28
|
+
"h-full bg-accent-9 transition-all duration-slow-01 ease-productive-standard",
|
|
26
29
|
e && "w-4/5 opacity-100",
|
|
27
|
-
!e &&
|
|
28
|
-
!e && !
|
|
30
|
+
!e && r && "w-0 opacity-0",
|
|
31
|
+
!e && !r && "w-full opacity-100"
|
|
29
32
|
),
|
|
30
33
|
onTransitionEnd: () => {
|
|
31
|
-
e || setTimeout(() => {
|
|
32
|
-
|
|
33
|
-
}, 200);
|
|
34
|
+
e || (o.current = setTimeout(() => {
|
|
35
|
+
a(!0);
|
|
36
|
+
}, 200));
|
|
34
37
|
}
|
|
35
38
|
}
|
|
36
39
|
)
|
|
@@ -38,7 +41,7 @@ const m = i.forwardRef(
|
|
|
38
41
|
);
|
|
39
42
|
}
|
|
40
43
|
);
|
|
41
|
-
|
|
44
|
+
d.displayName = "GlobalLoading";
|
|
42
45
|
export {
|
|
43
|
-
|
|
46
|
+
d as GlobalLoading
|
|
44
47
|
};
|
package/dist/composed/index.d.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* rich text editors, skeleton loaders, and domain-specific patterns.
|
|
7
7
|
*
|
|
8
8
|
* **Server-safe components** (import individually for Server Components):
|
|
9
|
-
* `ContentCard`, `
|
|
10
|
-
* `PriorityIndicator
|
|
9
|
+
* `ContentCard`, `PageHeader`, `LoadingSkeleton`, `PageSkeletons`,
|
|
10
|
+
* `PriorityIndicator`
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* import { PageHeader } from '@devalok/shilp-sutra/composed/page-header'
|
|
@@ -46,8 +46,6 @@ export { ScheduleView } from './schedule-view';
|
|
|
46
46
|
export type { ScheduleViewProps, ScheduleEvent } from './schedule-view';
|
|
47
47
|
export { ConfirmDialog } from './confirm-dialog';
|
|
48
48
|
export type { ConfirmDialogProps } from './confirm-dialog';
|
|
49
|
-
export { UploadProgress, formatFileSize } from './upload-progress';
|
|
50
|
-
export type { UploadProgressProps, UploadFile } from './upload-progress';
|
|
51
49
|
export { ActivityFeed } from './activity-feed';
|
|
52
50
|
export type { ActivityItem, ActivityFeedProps } from './activity-feed';
|
|
53
51
|
export { getInitials } from './lib/string-utils';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composed/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAEhE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACjE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACjE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,YAAY,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAElE,OAAO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M,kBAAkB,CAAA;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAEvE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAEtE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA"}
|
package/dist/composed/index.js
CHANGED
|
@@ -2,41 +2,40 @@
|
|
|
2
2
|
import { PageHeader as o } from "./page-header.js";
|
|
3
3
|
import { ContentCard as a, contentCardVariants as i } from "./content-card.js";
|
|
4
4
|
import { StatusBadge as p, statusBadgeVariants as s } from "./status-badge.js";
|
|
5
|
-
import { EmptyState as
|
|
6
|
-
import { AvatarGroup as
|
|
5
|
+
import { EmptyState as x } from "./empty-state.js";
|
|
6
|
+
import { AvatarGroup as l } from "./avatar-group.js";
|
|
7
7
|
import { PriorityIndicator as k } from "./priority-indicator.js";
|
|
8
8
|
import { RichTextEditor as P, RichTextViewer as S } from "./rich-text-editor.js";
|
|
9
|
-
import { C as
|
|
9
|
+
import { C as D, D as T, a as g, b as u, M as b, P as h, T as y, Y as V, u as B } from "../_chunks/use-calendar.js";
|
|
10
10
|
import { BoardSkeleton as G, CardSkeleton as L, ListSkeleton as M, TableSkeleton as R } from "./loading-skeleton.js";
|
|
11
|
-
import { DashboardSkeleton as w, ProjectListSkeleton as A, TaskDetailSkeleton as
|
|
12
|
-
import { ErrorDisplay as
|
|
13
|
-
import { GlobalLoading as
|
|
14
|
-
import { CommandPalette as
|
|
15
|
-
import { MemberPicker as
|
|
16
|
-
import { SimpleTooltip as
|
|
17
|
-
import { ScheduleView as
|
|
11
|
+
import { DashboardSkeleton as w, ProjectListSkeleton as A, TaskDetailSkeleton as I } from "./page-skeletons.js";
|
|
12
|
+
import { ErrorDisplay as j } from "./error-boundary.js";
|
|
13
|
+
import { GlobalLoading as H } from "./global-loading.js";
|
|
14
|
+
import { CommandPalette as z } from "./command-palette.js";
|
|
15
|
+
import { MemberPicker as K } from "./member-picker.js";
|
|
16
|
+
import { SimpleTooltip as O } from "./simple-tooltip.js";
|
|
17
|
+
import { ScheduleView as U } from "./schedule-view.js";
|
|
18
18
|
import { ConfirmDialog as X } from "./confirm-dialog.js";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { getInitials as te } from "./lib/string-utils.js";
|
|
19
|
+
import { ActivityFeed as _ } from "./activity-feed.js";
|
|
20
|
+
import { getInitials as ee } from "./lib/string-utils.js";
|
|
22
21
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
_ as ActivityFeed,
|
|
23
|
+
l as AvatarGroup,
|
|
25
24
|
G as BoardSkeleton,
|
|
26
|
-
|
|
25
|
+
D as CalendarGrid,
|
|
27
26
|
L as CardSkeleton,
|
|
28
|
-
|
|
27
|
+
z as CommandPalette,
|
|
29
28
|
X as ConfirmDialog,
|
|
30
29
|
a as ContentCard,
|
|
31
30
|
w as DashboardSkeleton,
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
T as DatePicker,
|
|
32
|
+
g as DateRangePicker,
|
|
34
33
|
u as DateTimePicker,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
x as EmptyState,
|
|
35
|
+
j as ErrorDisplay,
|
|
36
|
+
H as GlobalLoading,
|
|
38
37
|
M as ListSkeleton,
|
|
39
|
-
|
|
38
|
+
K as MemberPicker,
|
|
40
39
|
b as MonthPicker,
|
|
41
40
|
o as PageHeader,
|
|
42
41
|
h as Presets,
|
|
@@ -44,17 +43,15 @@ export {
|
|
|
44
43
|
A as ProjectListSkeleton,
|
|
45
44
|
P as RichTextEditor,
|
|
46
45
|
S as RichTextViewer,
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
U as ScheduleView,
|
|
47
|
+
O as SimpleTooltip,
|
|
49
48
|
p as StatusBadge,
|
|
50
49
|
R as TableSkeleton,
|
|
51
|
-
|
|
50
|
+
I as TaskDetailSkeleton,
|
|
52
51
|
y as TimePicker,
|
|
53
|
-
_ as UploadProgress,
|
|
54
52
|
V as YearPicker,
|
|
55
53
|
i as contentCardVariants,
|
|
56
|
-
|
|
57
|
-
te as getInitials,
|
|
54
|
+
ee as getInitials,
|
|
58
55
|
s as statusBadgeVariants,
|
|
59
56
|
B as useCalendar
|
|
60
57
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export interface CardSkeletonProps {
|
|
2
|
+
export interface CardSkeletonProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
3
3
|
className?: string;
|
|
4
4
|
}
|
|
5
5
|
declare const CardSkeleton: React.ForwardRefExoticComponent<CardSkeletonProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loading-skeleton.d.ts","sourceRoot":"","sources":["../../src/composed/loading-skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"loading-skeleton.d.ts","sourceRoot":"","sources":["../../src/composed/loading-skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IAC9E,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,QAAA,MAAM,YAAY,0FA2BjB,CAAA;AAID,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,QAAA,MAAM,aAAa,2FAoDlB,CAAA;AAID,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,QAAA,MAAM,aAAa,2FAgDlB,CAAA;AAID,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,QAAA,MAAM,YAAY,0FA8BjB,CAAA;AAID,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { c
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { c } from "../_chunks/utils.js";
|
|
4
4
|
import { Skeleton as s } from "../ui/skeleton.js";
|
|
5
|
-
const b =
|
|
6
|
-
function({ className:
|
|
7
|
-
return /* @__PURE__ */
|
|
5
|
+
const b = t.forwardRef(
|
|
6
|
+
function({ className: d, ...l }, o) {
|
|
7
|
+
return /* @__PURE__ */ r(
|
|
8
8
|
"div",
|
|
9
9
|
{
|
|
10
|
-
ref:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
ref: o,
|
|
11
|
+
...l,
|
|
12
|
+
className: c(
|
|
13
|
+
"rounded-ds-lg border border-surface-border-strong bg-surface-1 p-ds-05b",
|
|
14
|
+
d
|
|
14
15
|
),
|
|
15
16
|
children: [
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */ e(s, { className: "h-[16px] w-[128px] bg-
|
|
18
|
-
/* @__PURE__ */ e(s, { className: "h-ico-sm w-ico-sm rounded bg-
|
|
17
|
+
/* @__PURE__ */ r("div", { className: "flex items-center justify-between pb-ds-05", children: [
|
|
18
|
+
/* @__PURE__ */ e(s, { className: "h-[16px] w-[128px] bg-surface-3" }),
|
|
19
|
+
/* @__PURE__ */ e(s, { className: "h-ico-sm w-ico-sm rounded bg-surface-3" })
|
|
19
20
|
] }),
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */ e(s, { className: "h-[12px] w-full bg-
|
|
22
|
-
/* @__PURE__ */ e(s, { className: "h-[12px] w-4/5 bg-
|
|
23
|
-
/* @__PURE__ */ e(s, { className: "h-[12px] w-3/5 bg-
|
|
21
|
+
/* @__PURE__ */ r("div", { className: "space-y-ds-04", children: [
|
|
22
|
+
/* @__PURE__ */ e(s, { className: "h-[12px] w-full bg-surface-3" }),
|
|
23
|
+
/* @__PURE__ */ e(s, { className: "h-[12px] w-4/5 bg-surface-3" }),
|
|
24
|
+
/* @__PURE__ */ e(s, { className: "h-[12px] w-3/5 bg-surface-3" })
|
|
24
25
|
] }),
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */ e(s, { className: "h-ds-xs w-ds-xs rounded-ds-full bg-
|
|
27
|
-
/* @__PURE__ */ e(s, { className: "h-[12px] w-[80px] bg-
|
|
26
|
+
/* @__PURE__ */ r("div", { className: "flex items-center gap-ds-03 pt-ds-05", children: [
|
|
27
|
+
/* @__PURE__ */ e(s, { className: "h-ds-xs w-ds-xs rounded-ds-full bg-surface-3" }),
|
|
28
|
+
/* @__PURE__ */ e(s, { className: "h-[12px] w-[80px] bg-surface-3" })
|
|
28
29
|
] })
|
|
29
30
|
]
|
|
30
31
|
}
|
|
@@ -32,133 +33,137 @@ const b = n.forwardRef(
|
|
|
32
33
|
}
|
|
33
34
|
);
|
|
34
35
|
b.displayName = "CardSkeleton";
|
|
35
|
-
const
|
|
36
|
+
const g = t.forwardRef(
|
|
36
37
|
function({
|
|
37
|
-
rows:
|
|
38
|
-
columns:
|
|
39
|
-
className:
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
rows: d = 5,
|
|
39
|
+
columns: l = 4,
|
|
40
|
+
className: o,
|
|
41
|
+
...f
|
|
42
|
+
}, n) {
|
|
43
|
+
return /* @__PURE__ */ r(
|
|
42
44
|
"div",
|
|
43
45
|
{
|
|
44
|
-
ref:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
ref: n,
|
|
47
|
+
...f,
|
|
48
|
+
className: c(
|
|
49
|
+
"overflow-hidden rounded-ds-lg border border-surface-border-strong",
|
|
50
|
+
o
|
|
48
51
|
),
|
|
49
52
|
children: [
|
|
50
|
-
/* @__PURE__ */ e("div", { className: "flex items-center gap-ds-05 border-b border-border bg-
|
|
53
|
+
/* @__PURE__ */ e("div", { className: "flex items-center gap-ds-05 border-b border-surface-border-strong bg-surface-2 px-ds-05 py-ds-04", children: Array.from({ length: l }).map((p, a) => /* @__PURE__ */ e(
|
|
51
54
|
s,
|
|
52
55
|
{
|
|
53
|
-
className:
|
|
54
|
-
"h-[12px] bg-
|
|
55
|
-
|
|
56
|
+
className: c(
|
|
57
|
+
"h-[12px] bg-surface-3",
|
|
58
|
+
a === 0 ? "w-[160px]" : "flex-1"
|
|
56
59
|
)
|
|
57
60
|
},
|
|
58
|
-
`head-${
|
|
61
|
+
`head-${a}`
|
|
59
62
|
)) }),
|
|
60
|
-
Array.from({ length:
|
|
63
|
+
Array.from({ length: d }).map((p, a) => /* @__PURE__ */ e(
|
|
61
64
|
"div",
|
|
62
65
|
{
|
|
63
|
-
className:
|
|
66
|
+
className: c(
|
|
64
67
|
"flex items-center gap-ds-05 px-ds-05 py-ds-04",
|
|
65
|
-
|
|
68
|
+
a < d - 1 && "border-b border-surface-border-strong"
|
|
66
69
|
),
|
|
67
|
-
children: Array.from({ length:
|
|
70
|
+
children: Array.from({ length: l }).map((u, m) => /* @__PURE__ */ e(
|
|
68
71
|
s,
|
|
69
72
|
{
|
|
70
|
-
className:
|
|
71
|
-
"h-[12px] bg-
|
|
73
|
+
className: c(
|
|
74
|
+
"h-[12px] bg-surface-3",
|
|
72
75
|
m === 0 ? "w-[160px]" : "flex-1"
|
|
73
76
|
)
|
|
74
77
|
},
|
|
75
|
-
`cell-${
|
|
78
|
+
`cell-${a}-${m}`
|
|
76
79
|
))
|
|
77
80
|
},
|
|
78
|
-
`row-${
|
|
81
|
+
`row-${a}`
|
|
79
82
|
))
|
|
80
83
|
]
|
|
81
84
|
}
|
|
82
85
|
);
|
|
83
86
|
}
|
|
84
87
|
);
|
|
85
|
-
|
|
86
|
-
const
|
|
88
|
+
g.displayName = "TableSkeleton";
|
|
89
|
+
const h = t.forwardRef(
|
|
87
90
|
function({
|
|
88
|
-
columns:
|
|
89
|
-
cardsPerColumn:
|
|
90
|
-
className:
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
columns: d = 4,
|
|
92
|
+
cardsPerColumn: l = 3,
|
|
93
|
+
className: o,
|
|
94
|
+
...f
|
|
95
|
+
}, n) {
|
|
96
|
+
return /* @__PURE__ */ e("div", { ref: n, ...f, className: c("flex gap-ds-05 overflow-x-auto", o), children: Array.from({ length: d }).map((p, a) => /* @__PURE__ */ r(
|
|
93
97
|
"div",
|
|
94
98
|
{
|
|
95
99
|
className: "flex w-[272px] shrink-0 flex-col gap-ds-03",
|
|
96
100
|
children: [
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
-
/* @__PURE__ */ e(s, { className: "h-[12px] w-[12px] rounded bg-
|
|
100
|
-
/* @__PURE__ */ e(s, { className: "h-[12px] w-[80px] bg-
|
|
101
|
-
/* @__PURE__ */ e(s, { className: "h-[16px] w-[20px] rounded-ds-full bg-
|
|
101
|
+
/* @__PURE__ */ r("div", { className: "flex items-center justify-between px-ds-02 py-ds-03", children: [
|
|
102
|
+
/* @__PURE__ */ r("div", { className: "flex items-center gap-ds-03", children: [
|
|
103
|
+
/* @__PURE__ */ e(s, { className: "h-[12px] w-[12px] rounded bg-surface-3" }),
|
|
104
|
+
/* @__PURE__ */ e(s, { className: "h-[12px] w-[80px] bg-surface-3" }),
|
|
105
|
+
/* @__PURE__ */ e(s, { className: "h-[16px] w-[20px] rounded-ds-full bg-surface-3" })
|
|
102
106
|
] }),
|
|
103
|
-
/* @__PURE__ */ e(s, { className: "h-ico-sm w-ico-sm rounded bg-
|
|
107
|
+
/* @__PURE__ */ e(s, { className: "h-ico-sm w-ico-sm rounded bg-surface-3" })
|
|
104
108
|
] }),
|
|
105
|
-
Array.from({ length:
|
|
109
|
+
Array.from({ length: l }).map((u, m) => /* @__PURE__ */ r(
|
|
106
110
|
"div",
|
|
107
111
|
{
|
|
108
|
-
className: "rounded-ds-lg border border-border bg-
|
|
112
|
+
className: "rounded-ds-lg border border-surface-border-strong bg-surface-1 p-ds-04",
|
|
109
113
|
children: [
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
-
/* @__PURE__ */ e(s, { className: "h-[12px] w-4/5 bg-
|
|
112
|
-
/* @__PURE__ */ e(s, { className: "h-[12px] w-3/5 bg-
|
|
114
|
+
/* @__PURE__ */ r("div", { className: "space-y-ds-03", children: [
|
|
115
|
+
/* @__PURE__ */ e(s, { className: "h-[12px] w-4/5 bg-surface-3" }),
|
|
116
|
+
/* @__PURE__ */ e(s, { className: "h-[12px] w-3/5 bg-surface-3" })
|
|
113
117
|
] }),
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
-
/* @__PURE__ */ e(s, { className: "h-ico-md w-ico-md rounded-ds-full bg-
|
|
117
|
-
/* @__PURE__ */ e(s, { className: "h-ds-03 w-[64px] bg-
|
|
118
|
+
/* @__PURE__ */ r("div", { className: "flex items-center justify-between pt-ds-04", children: [
|
|
119
|
+
/* @__PURE__ */ r("div", { className: "flex items-center gap-ds-02b", children: [
|
|
120
|
+
/* @__PURE__ */ e(s, { className: "h-ico-md w-ico-md rounded-ds-full bg-surface-3" }),
|
|
121
|
+
/* @__PURE__ */ e(s, { className: "h-ds-03 w-[64px] bg-surface-3" })
|
|
118
122
|
] }),
|
|
119
|
-
/* @__PURE__ */ e(s, { className: "h-[16px] w-ds-lg rounded-ds-full bg-
|
|
123
|
+
/* @__PURE__ */ e(s, { className: "h-[16px] w-ds-lg rounded-ds-full bg-surface-3" })
|
|
120
124
|
] })
|
|
121
125
|
]
|
|
122
126
|
},
|
|
123
|
-
`card-${
|
|
127
|
+
`card-${a}-${m}`
|
|
124
128
|
))
|
|
125
129
|
]
|
|
126
130
|
},
|
|
127
|
-
`col-${
|
|
131
|
+
`col-${a}`
|
|
128
132
|
)) });
|
|
129
133
|
}
|
|
130
134
|
);
|
|
131
|
-
|
|
132
|
-
const
|
|
135
|
+
h.displayName = "BoardSkeleton";
|
|
136
|
+
const x = t.forwardRef(
|
|
133
137
|
function({
|
|
134
|
-
rows:
|
|
135
|
-
showAvatar:
|
|
136
|
-
className:
|
|
137
|
-
|
|
138
|
-
|
|
138
|
+
rows: d = 6,
|
|
139
|
+
showAvatar: l = !0,
|
|
140
|
+
className: o,
|
|
141
|
+
...f
|
|
142
|
+
}, n) {
|
|
143
|
+
return /* @__PURE__ */ e("div", { ref: n, ...f, className: c("flex flex-col", o), children: Array.from({ length: d }).map((p, a) => /* @__PURE__ */ r(
|
|
139
144
|
"div",
|
|
140
145
|
{
|
|
141
|
-
className:
|
|
146
|
+
className: c(
|
|
142
147
|
"flex items-center gap-ds-04 py-ds-04",
|
|
143
|
-
|
|
148
|
+
a < d - 1 && "border-b border-surface-border-strong"
|
|
144
149
|
),
|
|
145
150
|
children: [
|
|
146
|
-
|
|
147
|
-
/* @__PURE__ */
|
|
148
|
-
/* @__PURE__ */ e(s, { className: "h-[12px] w-2/5 bg-
|
|
149
|
-
/* @__PURE__ */ e(s, { className: "h-ds-03 w-3/5 bg-
|
|
151
|
+
l && /* @__PURE__ */ e(s, { className: "h-ds-sm w-ds-sm shrink-0 rounded-ds-full bg-surface-3" }),
|
|
152
|
+
/* @__PURE__ */ r("div", { className: "flex flex-1 flex-col gap-ds-02b", children: [
|
|
153
|
+
/* @__PURE__ */ e(s, { className: "h-[12px] w-2/5 bg-surface-3" }),
|
|
154
|
+
/* @__PURE__ */ e(s, { className: "h-ds-03 w-3/5 bg-surface-3" })
|
|
150
155
|
] }),
|
|
151
|
-
/* @__PURE__ */ e(s, { className: "h-[20px] w-[56px] rounded-ds-full bg-
|
|
156
|
+
/* @__PURE__ */ e(s, { className: "h-[20px] w-[56px] rounded-ds-full bg-surface-3" })
|
|
152
157
|
]
|
|
153
158
|
},
|
|
154
|
-
`list-${
|
|
159
|
+
`list-${a}`
|
|
155
160
|
)) });
|
|
156
161
|
}
|
|
157
162
|
);
|
|
158
|
-
|
|
163
|
+
x.displayName = "ListSkeleton";
|
|
159
164
|
export {
|
|
160
|
-
|
|
165
|
+
h as BoardSkeleton,
|
|
161
166
|
b as CardSkeleton,
|
|
162
|
-
|
|
163
|
-
|
|
167
|
+
x as ListSkeleton,
|
|
168
|
+
g as TableSkeleton
|
|
164
169
|
};
|
|
@@ -5,7 +5,7 @@ export interface MemberPickerMember {
|
|
|
5
5
|
name: string;
|
|
6
6
|
avatar?: string;
|
|
7
7
|
}
|
|
8
|
-
export interface MemberPickerProps {
|
|
8
|
+
export interface MemberPickerProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'onSelect'> {
|
|
9
9
|
members: MemberPickerMember[];
|
|
10
10
|
selectedIds: string[];
|
|
11
11
|
onSelect: (memberId: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"member-picker.d.ts","sourceRoot":"","sources":["../../src/composed/member-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAmB9B,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"member-picker.d.ts","sourceRoot":"","sources":["../../src/composed/member-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAmB9B,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAChG,OAAO,EAAE,kBAAkB,EAAE,CAAA;IAC7B,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAMD,QAAA,MAAM,YAAY,0FAsFjB,CAAA;AAID,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,74 +1,78 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import { c as
|
|
5
|
-
import { Popover as
|
|
6
|
-
import { A as
|
|
7
|
-
import { IconSearch as
|
|
8
|
-
import { getInitials as
|
|
9
|
-
const
|
|
2
|
+
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import * as a from "react";
|
|
4
|
+
import { c as l } from "../_chunks/utils.js";
|
|
5
|
+
import { Popover as N, PopoverTrigger as y, PopoverContent as w } from "../ui/popover.js";
|
|
6
|
+
import { A as k, a as C, b as S } from "../_chunks/avatar.js";
|
|
7
|
+
import { IconSearch as P, IconCheck as A } from "@tabler/icons-react";
|
|
8
|
+
import { getInitials as I } from "./lib/string-utils.js";
|
|
9
|
+
const O = a.forwardRef(
|
|
10
10
|
({
|
|
11
|
-
members:
|
|
12
|
-
selectedIds:
|
|
13
|
-
onSelect:
|
|
14
|
-
children:
|
|
15
|
-
multiple:
|
|
16
|
-
placeholder:
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
members: i,
|
|
12
|
+
selectedIds: d,
|
|
13
|
+
onSelect: f,
|
|
14
|
+
children: m,
|
|
15
|
+
multiple: p = !1,
|
|
16
|
+
placeholder: u = "Search members...",
|
|
17
|
+
className: h,
|
|
18
|
+
...x
|
|
19
|
+
}, g) => {
|
|
20
|
+
const [b, r] = a.useState(!1), [o, v] = a.useState(""), c = i.filter(
|
|
19
21
|
(e) => e.name.toLowerCase().includes(o.toLowerCase())
|
|
20
22
|
);
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
/* @__PURE__ */ t(
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
|
|
23
|
+
return /* @__PURE__ */ s(N, { open: b, onOpenChange: r, children: [
|
|
24
|
+
/* @__PURE__ */ t(y, { asChild: !0, children: m }),
|
|
25
|
+
/* @__PURE__ */ s(
|
|
26
|
+
w,
|
|
25
27
|
{
|
|
26
|
-
ref:
|
|
27
|
-
|
|
28
|
+
ref: g,
|
|
29
|
+
...x,
|
|
30
|
+
className: l("w-[220px] border-surface-border-strong bg-surface-1 p-0", h),
|
|
28
31
|
align: "start",
|
|
29
32
|
sideOffset: 4,
|
|
30
33
|
children: [
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
/* @__PURE__ */ t(
|
|
34
|
+
/* @__PURE__ */ s("div", { className: "flex items-center gap-ds-03 border-b border-surface-border-strong px-ds-04 py-ds-03", children: [
|
|
35
|
+
/* @__PURE__ */ t(P, { className: "h-ico-sm w-ico-sm shrink-0 text-surface-fg-subtle", stroke: 1.5 }),
|
|
33
36
|
/* @__PURE__ */ t(
|
|
34
37
|
"input",
|
|
35
38
|
{
|
|
36
39
|
type: "text",
|
|
37
|
-
placeholder:
|
|
40
|
+
placeholder: u,
|
|
38
41
|
value: o,
|
|
39
|
-
onChange: (e) =>
|
|
40
|
-
|
|
42
|
+
onChange: (e) => v(e.target.value),
|
|
43
|
+
"aria-label": "Search members",
|
|
44
|
+
className: "w-full bg-transparent text-ds-md font-body text-surface-fg placeholder:text-surface-fg-subtle outline-none"
|
|
41
45
|
}
|
|
42
46
|
)
|
|
43
47
|
] }),
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
|
|
46
|
-
const n =
|
|
47
|
-
return /* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ s("div", { className: "max-h-[200px] overflow-y-auto py-ds-02", children: [
|
|
49
|
+
c.map((e) => {
|
|
50
|
+
const n = d.includes(e.id);
|
|
51
|
+
return /* @__PURE__ */ s(
|
|
48
52
|
"button",
|
|
49
53
|
{
|
|
50
54
|
type: "button",
|
|
51
55
|
onClick: () => {
|
|
52
|
-
|
|
56
|
+
f(e.id), p || r(!1);
|
|
53
57
|
},
|
|
54
|
-
className:
|
|
58
|
+
className: l(
|
|
55
59
|
"flex w-full items-center gap-ds-03 px-ds-04 py-ds-02b text-left transition-colors",
|
|
56
|
-
"hover:bg-
|
|
57
|
-
n && "bg-
|
|
60
|
+
"hover:bg-surface-3",
|
|
61
|
+
n && "bg-surface-3"
|
|
58
62
|
),
|
|
59
63
|
children: [
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
e.avatar && /* @__PURE__ */ t(
|
|
62
|
-
/* @__PURE__ */ t(
|
|
64
|
+
/* @__PURE__ */ s(k, { className: "h-ico-md w-ico-md", children: [
|
|
65
|
+
e.avatar && /* @__PURE__ */ t(C, { src: e.avatar, alt: e.name }),
|
|
66
|
+
/* @__PURE__ */ t(S, { className: "bg-surface-3 text-ds-xs font-semibold text-accent-fg", children: I(e.name) })
|
|
63
67
|
] }),
|
|
64
|
-
/* @__PURE__ */ t("span", { className: "flex-1 truncate text-ds-md font-body text-
|
|
65
|
-
n && /* @__PURE__ */ t(
|
|
68
|
+
/* @__PURE__ */ t("span", { className: "flex-1 truncate text-ds-md font-body text-surface-fg", children: e.name }),
|
|
69
|
+
n && /* @__PURE__ */ t(A, { className: "h-ico-sm w-ico-sm shrink-0 text-accent-11" })
|
|
66
70
|
]
|
|
67
71
|
},
|
|
68
72
|
e.id
|
|
69
73
|
);
|
|
70
74
|
}),
|
|
71
|
-
|
|
75
|
+
c.length === 0 && /* @__PURE__ */ t("p", { className: "px-ds-04 py-ds-05 text-center text-ds-sm font-body text-surface-fg-subtle", children: "No members found" })
|
|
72
76
|
] })
|
|
73
77
|
]
|
|
74
78
|
}
|
|
@@ -76,7 +80,7 @@ const A = r.forwardRef(
|
|
|
76
80
|
] });
|
|
77
81
|
}
|
|
78
82
|
);
|
|
79
|
-
|
|
83
|
+
O.displayName = "MemberPicker";
|
|
80
84
|
export {
|
|
81
|
-
|
|
85
|
+
O as MemberPicker
|
|
82
86
|
};
|