@devalok/shilp-sutra 0.1.0 → 0.2.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/composed/avatar-group.d.ts +1 -0
- package/dist/composed/avatar-group.d.ts.map +1 -1
- package/dist/composed/avatar-group.js +1 -0
- package/dist/composed/command-palette.d.ts +1 -0
- package/dist/composed/command-palette.js +4 -3
- package/dist/composed/date-picker/calendar-grid.d.ts +1 -0
- package/dist/composed/date-picker/calendar-grid.js +1 -0
- package/dist/composed/date-picker/date-picker.d.ts +1 -0
- package/dist/composed/date-picker/date-picker.js +1 -0
- package/dist/composed/date-picker/date-range-picker.d.ts +1 -0
- package/dist/composed/date-picker/date-range-picker.js +1 -0
- package/dist/composed/date-picker/date-time-picker.d.ts +1 -0
- package/dist/composed/date-picker/date-time-picker.js +1 -0
- package/dist/composed/date-picker/index.d.ts +1 -0
- package/dist/composed/date-picker/month-picker.d.ts +1 -0
- package/dist/composed/date-picker/month-picker.js +1 -0
- package/dist/composed/date-picker/presets.d.ts +1 -0
- package/dist/composed/date-picker/presets.js +1 -0
- package/dist/composed/date-picker/time-picker.d.ts +1 -0
- package/dist/composed/date-picker/time-picker.js +2 -1
- package/dist/composed/date-picker/use-calendar.d.ts +1 -0
- package/dist/composed/date-picker/use-calendar.d.ts.map +1 -1
- package/dist/composed/date-picker/use-calendar.js +1 -0
- package/dist/composed/date-picker/year-picker.d.ts +1 -0
- package/dist/composed/date-picker/year-picker.js +1 -0
- package/dist/composed/empty-state.js +1 -1
- package/dist/composed/error-boundary.d.ts +1 -0
- package/dist/composed/error-boundary.js +2 -1
- package/dist/composed/global-loading.d.ts +1 -0
- package/dist/composed/global-loading.js +1 -0
- package/dist/composed/index.d.ts +15 -0
- package/dist/composed/index.d.ts.map +1 -1
- package/dist/composed/index.js +1 -0
- package/dist/composed/lib/string-utils.d.ts +1 -0
- package/dist/composed/lib/string-utils.d.ts.map +1 -1
- package/dist/composed/lib/string-utils.js +7 -4
- package/dist/composed/loading-skeleton.js +32 -32
- package/dist/composed/member-picker.d.ts +1 -0
- package/dist/composed/member-picker.js +1 -0
- package/dist/composed/page-skeletons.js +38 -38
- package/dist/composed/rich-text-editor.d.ts +1 -0
- package/dist/composed/rich-text-editor.d.ts.map +1 -1
- package/dist/composed/rich-text-editor.js +47 -44
- package/dist/composed/status-badge.js +6 -6
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +10 -0
- package/dist/hooks/use-color-mode.d.ts +1 -0
- package/dist/hooks/use-color-mode.d.ts.map +1 -1
- package/dist/hooks/use-color-mode.js +9 -8
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-mobile.js +1 -0
- package/dist/hooks/use-toast.d.ts +1 -0
- package/dist/hooks/use-toast.d.ts.map +1 -1
- package/dist/hooks/use-toast.js +3 -2
- package/dist/primitives/react-accordion.d.ts +114 -0
- package/dist/primitives/react-alert-dialog.d.ts +51 -0
- package/dist/primitives/react-aspect-ratio.d.ts +11 -0
- package/dist/primitives/react-avatar.d.ts +24 -0
- package/dist/primitives/react-checkbox.d.ts +50 -0
- package/dist/primitives/react-collapsible.d.ts +33 -0
- package/dist/primitives/react-context-menu.d.ts +96 -0
- package/dist/primitives/react-dialog.d.ts +103 -0
- package/dist/primitives/react-dropdown-menu.d.ts +97 -0
- package/dist/primitives/react-hover-card.d.ts +79 -0
- package/dist/primitives/react-label.d.ts +10 -0
- package/dist/primitives/react-menu.d.ts +169 -0
- package/dist/primitives/react-menubar.d.ts +115 -0
- package/dist/primitives/react-navigation-menu.d.ts +126 -0
- package/dist/primitives/react-popover.d.ts +85 -0
- package/dist/primitives/react-progress.d.ts +19 -0
- package/dist/primitives/react-radio-group.d.ts +58 -0
- package/dist/primitives/react-roving-focus.d.ts +49 -0
- package/dist/primitives/react-select.d.ts +137 -0
- package/dist/primitives/react-separator.d.ts +21 -0
- package/dist/primitives/react-slider.d.ts +75 -0
- package/dist/primitives/react-switch.d.ts +21 -0
- package/dist/primitives/react-tabs.d.ts +56 -0
- package/dist/primitives/react-toast.d.ts +120 -0
- package/dist/primitives/react-toggle-group.d.ts +75 -0
- package/dist/primitives/react-toggle.d.ts +24 -0
- package/dist/primitives/react-tooltip.d.ts +101 -0
- package/dist/primitives/react-visually-hidden.d.ts +22 -0
- package/dist/shell/app-command-palette.d.ts +3 -3
- package/dist/shell/app-command-palette.d.ts.map +1 -1
- package/dist/shell/app-command-palette.js +2 -1
- package/dist/shell/bottom-navbar.d.ts +1 -0
- package/dist/shell/bottom-navbar.d.ts.map +1 -1
- package/dist/shell/bottom-navbar.js +40 -37
- package/dist/shell/index.d.ts +14 -2
- package/dist/shell/index.d.ts.map +1 -1
- package/dist/shell/index.js +16 -12
- package/dist/shell/link-context.d.ts +12 -0
- package/dist/shell/link-context.d.ts.map +1 -0
- package/dist/shell/link-context.js +19 -0
- package/dist/shell/notification-center.d.ts +1 -0
- package/dist/shell/notification-center.d.ts.map +1 -1
- package/dist/shell/notification-center.js +21 -19
- package/dist/shell/notification-preferences.d.ts +3 -3
- package/dist/shell/notification-preferences.d.ts.map +1 -1
- package/dist/shell/notification-preferences.js +14 -13
- package/dist/shell/sidebar.d.ts +1 -0
- package/dist/shell/sidebar.d.ts.map +1 -1
- package/dist/shell/sidebar.js +32 -30
- package/dist/shell/top-bar.d.ts +1 -0
- package/dist/shell/top-bar.d.ts.map +1 -1
- package/dist/shell/top-bar.js +35 -30
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +32 -2
- package/dist/ui/accordion.d.ts +2 -1
- package/dist/ui/accordion.js +1 -0
- package/dist/ui/alert-dialog.d.ts +2 -1
- package/dist/ui/alert-dialog.js +1 -0
- package/dist/ui/alert.d.ts +1 -0
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +2 -1
- package/dist/ui/aspect-ratio.d.ts +2 -1
- package/dist/ui/aspect-ratio.js +1 -0
- package/dist/ui/autocomplete.d.ts +1 -0
- package/dist/ui/autocomplete.js +35 -34
- package/dist/ui/avatar.d.ts +2 -1
- package/dist/ui/avatar.js +13 -12
- package/dist/ui/badge.d.ts +1 -0
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +4 -3
- package/dist/ui/banner.d.ts +1 -0
- package/dist/ui/banner.d.ts.map +1 -1
- package/dist/ui/banner.js +1 -0
- package/dist/ui/breadcrumb.d.ts +1 -0
- package/dist/ui/breadcrumb.js +1 -0
- package/dist/ui/button-group.d.ts +1 -0
- package/dist/ui/button-group.js +1 -0
- package/dist/ui/button.d.ts +1 -0
- package/dist/ui/button.js +2 -1
- package/dist/ui/card.d.ts +1 -0
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +2 -1
- package/dist/ui/charts/_internal/animation.d.ts +1 -0
- package/dist/ui/charts/_internal/animation.d.ts.map +1 -1
- package/dist/ui/charts/_internal/animation.js +1 -0
- package/dist/ui/charts/_internal/axes.d.ts +1 -0
- package/dist/ui/charts/_internal/axes.d.ts.map +1 -1
- package/dist/ui/charts/_internal/axes.js +1 -0
- package/dist/ui/charts/_internal/colors.d.ts +1 -0
- package/dist/ui/charts/_internal/colors.js +1 -0
- package/dist/ui/charts/_internal/grid-lines.d.ts +1 -0
- package/dist/ui/charts/_internal/grid-lines.js +1 -0
- package/dist/ui/charts/_internal/legend.d.ts +1 -0
- package/dist/ui/charts/_internal/legend.js +1 -0
- package/dist/ui/charts/_internal/scales.d.ts +1 -0
- package/dist/ui/charts/_internal/tooltip.d.ts +1 -0
- package/dist/ui/charts/_internal/tooltip.d.ts.map +1 -1
- package/dist/ui/charts/_internal/tooltip.js +1 -0
- package/dist/ui/charts/_internal/types.d.ts +1 -0
- package/dist/ui/charts/_internal/types.js +1 -0
- package/dist/ui/charts/area-chart.d.ts +1 -0
- package/dist/ui/charts/area-chart.js +1 -0
- package/dist/ui/charts/bar-chart.d.ts +1 -0
- package/dist/ui/charts/bar-chart.js +2 -1
- package/dist/ui/charts/chart-container.d.ts +1 -0
- package/dist/ui/charts/chart-container.js +12 -11
- package/dist/ui/charts/gauge-chart.d.ts +1 -0
- package/dist/ui/charts/gauge-chart.js +1 -0
- package/dist/ui/charts/index.d.ts +1 -0
- package/dist/ui/charts/line-chart.d.ts +1 -0
- package/dist/ui/charts/line-chart.js +2 -1
- package/dist/ui/charts/pie-chart.d.ts +1 -0
- package/dist/ui/charts/pie-chart.js +1 -0
- package/dist/ui/charts/radar-chart.d.ts +1 -0
- package/dist/ui/charts/radar-chart.js +21 -20
- package/dist/ui/charts/sparkline.d.ts +1 -0
- package/dist/ui/charts/sparkline.js +1 -0
- package/dist/ui/checkbox.d.ts +2 -1
- package/dist/ui/checkbox.js +1 -0
- package/dist/ui/chip.d.ts +1 -0
- package/dist/ui/chip.d.ts.map +1 -1
- package/dist/ui/chip.js +35 -36
- package/dist/ui/code.js +13 -13
- package/dist/ui/collapsible.d.ts +2 -1
- package/dist/ui/collapsible.js +1 -0
- package/dist/ui/combobox.d.ts +1 -0
- package/dist/ui/combobox.js +2 -1
- package/dist/ui/context-menu.d.ts +2 -1
- package/dist/ui/context-menu.js +2 -1
- package/dist/ui/data-table-toolbar.d.ts +1 -0
- package/dist/ui/data-table-toolbar.js +1 -0
- package/dist/ui/data-table.d.ts +1 -0
- package/dist/ui/data-table.d.ts.map +1 -1
- package/dist/ui/data-table.js +79 -78
- package/dist/ui/dialog.d.ts +2 -1
- package/dist/ui/dialog.js +1 -0
- package/dist/ui/dropdown-menu.d.ts +2 -1
- package/dist/ui/dropdown-menu.js +23 -22
- package/dist/ui/file-upload.d.ts +1 -0
- package/dist/ui/file-upload.js +60 -59
- package/dist/ui/form.d.ts +1 -0
- package/dist/ui/form.js +1 -0
- package/dist/ui/hover-card.d.ts +2 -1
- package/dist/ui/hover-card.js +1 -0
- package/dist/ui/icon-button.d.ts +1 -0
- package/dist/ui/icon-button.d.ts.map +1 -1
- package/dist/ui/icon-button.js +1 -0
- package/dist/ui/index.d.ts +18 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +1 -0
- package/dist/ui/input-otp.d.ts +1 -0
- package/dist/ui/input-otp.js +2 -1
- package/dist/ui/input.d.ts +2 -1
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +1 -0
- package/dist/ui/label.d.ts +2 -1
- package/dist/ui/label.js +1 -0
- package/dist/ui/lib/slot.d.ts +1 -0
- package/dist/ui/lib/use-reduced-motion.d.ts +1 -0
- package/dist/ui/lib/use-reduced-motion.js +1 -0
- package/dist/ui/lib/use-ripple.d.ts +1 -0
- package/dist/ui/lib/use-ripple.js +1 -0
- package/dist/ui/link.d.ts +1 -0
- package/dist/ui/link.js +1 -0
- package/dist/ui/menubar.d.ts +2 -1
- package/dist/ui/menubar.js +23 -22
- package/dist/ui/navigation-menu.d.ts +2 -1
- package/dist/ui/navigation-menu.js +7 -6
- package/dist/ui/number-input.d.ts +1 -0
- package/dist/ui/number-input.js +2 -1
- package/dist/ui/pagination.d.ts +1 -0
- package/dist/ui/pagination.js +1 -0
- package/dist/ui/popover.d.ts +2 -1
- package/dist/ui/popover.js +1 -0
- package/dist/ui/progress.d.ts +2 -1
- package/dist/ui/progress.js +1 -0
- package/dist/ui/radio.d.ts +2 -1
- package/dist/ui/radio.js +1 -0
- package/dist/ui/search-input.d.ts +6 -5
- package/dist/ui/search-input.d.ts.map +1 -1
- package/dist/ui/search-input.js +11 -10
- package/dist/ui/segmented-control.d.ts +1 -0
- package/dist/ui/segmented-control.d.ts.map +1 -1
- package/dist/ui/segmented-control.js +4 -4
- package/dist/ui/select.d.ts +2 -1
- package/dist/ui/select.js +3 -2
- package/dist/ui/separator.d.ts +2 -1
- package/dist/ui/separator.js +1 -0
- package/dist/ui/sheet.d.ts +2 -1
- package/dist/ui/sheet.js +1 -0
- package/dist/ui/sidebar.d.ts +1 -0
- package/dist/ui/sidebar.js +53 -52
- package/dist/ui/slider.d.ts +2 -1
- package/dist/ui/slider.js +1 -0
- package/dist/ui/stack.d.ts +2 -2
- package/dist/ui/stack.d.ts.map +1 -1
- package/dist/ui/stack.js +51 -21
- package/dist/ui/stat-card.d.ts +4 -1
- package/dist/ui/stat-card.d.ts.map +1 -1
- package/dist/ui/stat-card.js +22 -21
- package/dist/ui/stepper.d.ts +1 -0
- package/dist/ui/stepper.js +26 -25
- package/dist/ui/switch.d.ts +2 -1
- package/dist/ui/switch.js +1 -0
- package/dist/ui/table.js +12 -12
- package/dist/ui/tabs.d.ts +2 -1
- package/dist/ui/tabs.js +1 -0
- package/dist/ui/text.d.ts +1 -1
- package/dist/ui/text.d.ts.map +1 -1
- package/dist/ui/textarea.d.ts +1 -0
- package/dist/ui/textarea.d.ts.map +1 -1
- package/dist/ui/textarea.js +2 -0
- package/dist/ui/toast.d.ts +2 -1
- package/dist/ui/toast.js +2 -1
- package/dist/ui/toaster.d.ts +1 -0
- package/dist/ui/toaster.js +1 -0
- package/dist/ui/toggle-group.d.ts +2 -1
- package/dist/ui/toggle-group.js +1 -0
- package/dist/ui/toggle.d.ts +2 -1
- package/dist/ui/toggle.js +1 -0
- package/dist/ui/tooltip.d.ts +2 -1
- package/dist/ui/tooltip.js +1 -0
- package/dist/ui/transitions.d.ts +1 -0
- package/dist/ui/transitions.js +1 -0
- package/dist/ui/tree-view/index.d.ts +1 -0
- package/dist/ui/tree-view/tree-item.d.ts +1 -0
- package/dist/ui/tree-view/tree-item.js +2 -1
- package/dist/ui/tree-view/tree-view.d.ts +1 -0
- package/dist/ui/tree-view/tree-view.js +1 -0
- package/dist/ui/tree-view/use-tree.d.ts +1 -0
- package/dist/ui/tree-view/use-tree.js +1 -0
- package/package.json +97 -24
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar-group.d.ts","sourceRoot":"","sources":["../../src/composed/avatar-group.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"avatar-group.d.ts","sourceRoot":"","sources":["../../src/composed/avatar-group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAejE,QAAA,MAAM,kBAAkB;;8EAcvB,CAAA;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB;AAED,MAAM,WAAW,gBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,YAAY,CAAC,OAAO,kBAAkB,CAAC;IACzC,KAAK,EAAE,UAAU,EAAE,CAAA;IACnB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,QAAA,MAAM,WAAW,yFAuFhB,CAAA;AAGD,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as s, jsxs as a } from "react/jsx-runtime";
|
|
2
3
|
import * as r from "react";
|
|
3
4
|
import { Dialog as E, DialogPortal as A, DialogOverlay as M, DialogContentRaw as R, DialogTitle as L, DialogDescription as S } from "../ui/dialog.js";
|
|
@@ -173,7 +174,7 @@ const O = r.forwardRef(
|
|
|
173
174
|
o && /* @__PURE__ */ s(
|
|
174
175
|
g,
|
|
175
176
|
{
|
|
176
|
-
className: "h-
|
|
177
|
+
className: "h-ico-sm w-ico-sm shrink-0 text-text-placeholder",
|
|
177
178
|
stroke: 1.5
|
|
178
179
|
}
|
|
179
180
|
)
|
|
@@ -195,11 +196,11 @@ const O = r.forwardRef(
|
|
|
195
196
|
/* @__PURE__ */ s("span", { className: "text-ds-xs text-text-placeholder", children: "Navigate" })
|
|
196
197
|
] }),
|
|
197
198
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-ds-02b", children: [
|
|
198
|
-
/* @__PURE__ */ s("kbd", { className: "inline-flex h-
|
|
199
|
+
/* @__PURE__ */ s("kbd", { className: "inline-flex h-[20px] items-center justify-center rounded-ds-md border border-border bg-layer-02 px-ds-02b", children: /* @__PURE__ */ s(g, { className: "h-ds-03 w-ds-03 text-text-placeholder", stroke: 2 }) }),
|
|
199
200
|
/* @__PURE__ */ s("span", { className: "text-ds-xs text-text-placeholder", children: "Select" })
|
|
200
201
|
] }),
|
|
201
202
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-ds-02b", children: [
|
|
202
|
-
/* @__PURE__ */ s("kbd", { className: "inline-flex h-
|
|
203
|
+
/* @__PURE__ */ s("kbd", { className: "inline-flex h-[20px] items-center justify-center rounded-ds-md border border-border bg-layer-02 px-ds-02b text-ds-xs font-medium text-text-placeholder", children: "Esc" }),
|
|
203
204
|
/* @__PURE__ */ s("span", { className: "text-ds-xs text-text-placeholder", children: "Close" })
|
|
204
205
|
] })
|
|
205
206
|
] })
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsxs as w, jsx as i } from "react/jsx-runtime";
|
|
2
3
|
import * as g from "react";
|
|
3
4
|
import { startOfMonth as v, endOfMonth as S, startOfWeek as V, endOfWeek as X, addDays as f, subMonths as Z, format as m, addMonths as _, isSameMonth as D, isSameDay as y, lastDayOfMonth as H, isBefore as k, startOfDay as W, isAfter as M, isWithinInterval as T } from "date-fns";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsxs as d, jsx as r } from "react/jsx-runtime";
|
|
2
3
|
import * as P from "react";
|
|
3
4
|
import { format as O, setHours as S, setMinutes as $, setSeconds as j } from "date-fns";
|
|
@@ -51,7 +52,7 @@ const F = P.forwardRef(
|
|
|
51
52
|
const t = s.getHours();
|
|
52
53
|
let a;
|
|
53
54
|
e === "AM" ? a = t >= 12 ? t - 12 : t : a = t < 12 ? t + 12 : t, c == null || c(S(new Date(s), a));
|
|
54
|
-
}, b = P.useMemo(() => s ? l === "12h" ? O(s, x ? "h:mm:ss a" : "h:mm a") : O(s, x ? "HH:mm:ss" : "HH:mm") : null, [s, l, x]), R = l === "12h" ? E : o, M = "flex flex-col gap-ds-01 overflow-y-auto max-h-[200px] px-ds-01
|
|
55
|
+
}, b = P.useMemo(() => s ? l === "12h" ? O(s, x ? "h:mm:ss a" : "h:mm a") : O(s, x ? "HH:mm:ss" : "HH:mm") : null, [s, l, x]), R = l === "12h" ? E : o, M = "flex flex-col gap-ds-01 overflow-y-auto max-h-[200px] px-ds-01", h = "flex h-ds-sm w-full items-center justify-center rounded-ds-md text-ds-md transition-colors duration-fast-01 ease-productive-standard cursor-pointer", N = "bg-interactive text-text-on-color", g = "text-text-primary hover:bg-field";
|
|
55
56
|
return /* @__PURE__ */ d(Y, { open: q, onOpenChange: z, children: [
|
|
56
57
|
/* @__PURE__ */ r(Z, { asChild: !0, children: /* @__PURE__ */ d(
|
|
57
58
|
"button",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-calendar.d.ts","sourceRoot":"","sources":["../../../src/composed/date-picker/use-calendar.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-calendar.d.ts","sourceRoot":"","sources":["../../../src/composed/date-picker/use-calendar.ts"],"names":[],"mappings":"AAKA,wBAAgB,WAAW,CAAC,YAAY,CAAC,EAAE,IAAI;;;;;uBAKnB,MAAM;qBAER,MAAM;EAW/B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as s, jsxs as n } from "react/jsx-runtime";
|
|
2
3
|
import * as g from "react";
|
|
3
4
|
import { IconAlertTriangle as u, IconServerOff as p, IconBan as x, IconFileUnknown as h } from "@tabler/icons-react";
|
|
@@ -71,7 +72,7 @@ const C = g.forwardRef(
|
|
|
71
72
|
"div",
|
|
72
73
|
{
|
|
73
74
|
className: c(
|
|
74
|
-
"flex h-
|
|
75
|
+
"flex h-ds-lg w-ds-lg items-center justify-center rounded-ds-2xl",
|
|
75
76
|
r.bgClass
|
|
76
77
|
),
|
|
77
78
|
children: /* @__PURE__ */ s(
|
package/dist/composed/index.d.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/**
|
|
3
|
+
* @module @devalok/shilp-sutra/composed
|
|
4
|
+
*
|
|
5
|
+
* Higher-level composed components built from UI primitives: page headers, date pickers,
|
|
6
|
+
* rich text editors, skeleton loaders, and domain-specific patterns.
|
|
7
|
+
*
|
|
8
|
+
* **Server-safe components** (import individually for Server Components):
|
|
9
|
+
* `ContentCard`, `EmptyState`, `PageHeader`, `LoadingSkeleton`, `PageSkeletons`,
|
|
10
|
+
* `PriorityIndicator`, `StatusBadge`
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* import { PageHeader } from '@devalok/shilp-sutra/composed/page-header'
|
|
14
|
+
* import { DatePicker } from '@devalok/shilp-sutra/composed/date-picker'
|
|
15
|
+
*/
|
|
1
16
|
export { PageHeader } from './page-header';
|
|
2
17
|
export type { PageHeaderProps, Breadcrumb } from './page-header';
|
|
3
18
|
export { ContentCard, contentCardVariants } from './content-card';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composed/index.ts"],"names":[],"mappings":"AAAA,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,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,YAAY,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE5E,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnE,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAElF,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AACpJ,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,eAAe,EAAE,mBAAmB,EAAE,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAE/L,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC7F,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAEtH,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEvF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA"}
|
|
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,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,YAAY,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE5E,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnE,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAElF,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AACpJ,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,eAAe,EAAE,mBAAmB,EAAE,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAE/L,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC7F,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAEtH,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEvF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA"}
|
package/dist/composed/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string-utils.d.ts","sourceRoot":"","sources":["../../../src/composed/lib/string-utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"string-utils.d.ts","sourceRoot":"","sources":["../../../src/composed/lib/string-utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMhD"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
function i(r) {
|
|
3
|
+
const t = r.trim();
|
|
4
|
+
if (!t) return "";
|
|
5
|
+
const e = t.split(/\s+/);
|
|
6
|
+
return e.length >= 2 ? (e[0][0] + e[1][0]).toUpperCase() : t.slice(0, 2).toUpperCase();
|
|
4
7
|
}
|
|
5
8
|
export {
|
|
6
|
-
|
|
9
|
+
i as getInitials
|
|
7
10
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
|
2
2
|
import * as n from "react";
|
|
3
3
|
import { cn as i } from "../ui/lib/utils.js";
|
|
4
4
|
import { Skeleton as s } from "../ui/skeleton.js";
|
|
5
|
-
const
|
|
5
|
+
const b = n.forwardRef(
|
|
6
6
|
function({ className: a }, r) {
|
|
7
7
|
return /* @__PURE__ */ d(
|
|
8
8
|
"div",
|
|
@@ -14,25 +14,25 @@ const h = n.forwardRef(
|
|
|
14
14
|
),
|
|
15
15
|
children: [
|
|
16
16
|
/* @__PURE__ */ d("div", { className: "flex items-center justify-between pb-ds-05", children: [
|
|
17
|
-
/* @__PURE__ */ e(s, { className: "h-
|
|
17
|
+
/* @__PURE__ */ e(s, { className: "h-[16px] w-[128px] bg-field" }),
|
|
18
18
|
/* @__PURE__ */ e(s, { className: "h-ico-sm w-ico-sm rounded bg-field" })
|
|
19
19
|
] }),
|
|
20
20
|
/* @__PURE__ */ d("div", { className: "space-y-ds-04", children: [
|
|
21
|
-
/* @__PURE__ */ e(s, { className: "h-
|
|
22
|
-
/* @__PURE__ */ e(s, { className: "h-
|
|
23
|
-
/* @__PURE__ */ e(s, { className: "h-
|
|
21
|
+
/* @__PURE__ */ e(s, { className: "h-[12px] w-full bg-field" }),
|
|
22
|
+
/* @__PURE__ */ e(s, { className: "h-[12px] w-4/5 bg-field" }),
|
|
23
|
+
/* @__PURE__ */ e(s, { className: "h-[12px] w-3/5 bg-field" })
|
|
24
24
|
] }),
|
|
25
25
|
/* @__PURE__ */ d("div", { className: "flex items-center gap-ds-03 pt-ds-05", children: [
|
|
26
26
|
/* @__PURE__ */ e(s, { className: "h-ds-xs w-ds-xs rounded-ds-full bg-field" }),
|
|
27
|
-
/* @__PURE__ */ e(s, { className: "h-
|
|
27
|
+
/* @__PURE__ */ e(s, { className: "h-[12px] w-[80px] bg-field" })
|
|
28
28
|
] })
|
|
29
29
|
]
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
33
|
);
|
|
34
|
-
|
|
35
|
-
const
|
|
34
|
+
b.displayName = "CardSkeleton";
|
|
35
|
+
const h = n.forwardRef(
|
|
36
36
|
function({
|
|
37
37
|
rows: a = 5,
|
|
38
38
|
columns: r = 4,
|
|
@@ -51,8 +51,8 @@ const g = n.forwardRef(
|
|
|
51
51
|
s,
|
|
52
52
|
{
|
|
53
53
|
className: i(
|
|
54
|
-
"h-
|
|
55
|
-
l === 0 ? "w-
|
|
54
|
+
"h-[12px] bg-field",
|
|
55
|
+
l === 0 ? "w-[160px]" : "flex-1"
|
|
56
56
|
)
|
|
57
57
|
},
|
|
58
58
|
`head-${l}`
|
|
@@ -64,12 +64,12 @@ const g = n.forwardRef(
|
|
|
64
64
|
"flex items-center gap-ds-05 px-ds-05 py-ds-04",
|
|
65
65
|
l < a - 1 && "border-b border-border"
|
|
66
66
|
),
|
|
67
|
-
children: Array.from({ length: r }).map((
|
|
67
|
+
children: Array.from({ length: r }).map((p, m) => /* @__PURE__ */ e(
|
|
68
68
|
s,
|
|
69
69
|
{
|
|
70
70
|
className: i(
|
|
71
|
-
"h-
|
|
72
|
-
m === 0 ? "w-
|
|
71
|
+
"h-[12px] bg-field",
|
|
72
|
+
m === 0 ? "w-[160px]" : "flex-1"
|
|
73
73
|
)
|
|
74
74
|
},
|
|
75
75
|
`cell-${l}-${m}`
|
|
@@ -82,8 +82,8 @@ const g = n.forwardRef(
|
|
|
82
82
|
);
|
|
83
83
|
}
|
|
84
84
|
);
|
|
85
|
-
|
|
86
|
-
const
|
|
85
|
+
h.displayName = "TableSkeleton";
|
|
86
|
+
const x = n.forwardRef(
|
|
87
87
|
function({
|
|
88
88
|
columns: a = 4,
|
|
89
89
|
cardsPerColumn: r = 3,
|
|
@@ -96,27 +96,27 @@ const N = n.forwardRef(
|
|
|
96
96
|
children: [
|
|
97
97
|
/* @__PURE__ */ d("div", { className: "flex items-center justify-between px-ds-02 py-ds-03", children: [
|
|
98
98
|
/* @__PURE__ */ d("div", { className: "flex items-center gap-ds-03", children: [
|
|
99
|
-
/* @__PURE__ */ e(s, { className: "h-
|
|
100
|
-
/* @__PURE__ */ e(s, { className: "h-
|
|
101
|
-
/* @__PURE__ */ e(s, { className: "h-
|
|
99
|
+
/* @__PURE__ */ e(s, { className: "h-[12px] w-[12px] rounded bg-field" }),
|
|
100
|
+
/* @__PURE__ */ e(s, { className: "h-[12px] w-[80px] bg-field" }),
|
|
101
|
+
/* @__PURE__ */ e(s, { className: "h-[16px] w-[20px] rounded-ds-full bg-field" })
|
|
102
102
|
] }),
|
|
103
103
|
/* @__PURE__ */ e(s, { className: "h-ico-sm w-ico-sm rounded bg-field" })
|
|
104
104
|
] }),
|
|
105
|
-
Array.from({ length: r }).map((
|
|
105
|
+
Array.from({ length: r }).map((p, m) => /* @__PURE__ */ d(
|
|
106
106
|
"div",
|
|
107
107
|
{
|
|
108
108
|
className: "rounded-ds-lg border border-border bg-layer-01 p-ds-04",
|
|
109
109
|
children: [
|
|
110
110
|
/* @__PURE__ */ d("div", { className: "space-y-ds-03", children: [
|
|
111
|
-
/* @__PURE__ */ e(s, { className: "h-
|
|
112
|
-
/* @__PURE__ */ e(s, { className: "h-
|
|
111
|
+
/* @__PURE__ */ e(s, { className: "h-[12px] w-4/5 bg-field" }),
|
|
112
|
+
/* @__PURE__ */ e(s, { className: "h-[12px] w-3/5 bg-field" })
|
|
113
113
|
] }),
|
|
114
114
|
/* @__PURE__ */ d("div", { className: "flex items-center justify-between pt-ds-04", children: [
|
|
115
115
|
/* @__PURE__ */ d("div", { className: "flex items-center gap-ds-02b", children: [
|
|
116
116
|
/* @__PURE__ */ e(s, { className: "h-ico-md w-ico-md rounded-ds-full bg-field" }),
|
|
117
|
-
/* @__PURE__ */ e(s, { className: "h-ds-03 w-
|
|
117
|
+
/* @__PURE__ */ e(s, { className: "h-ds-03 w-[64px] bg-field" })
|
|
118
118
|
] }),
|
|
119
|
-
/* @__PURE__ */ e(s, { className: "h-
|
|
119
|
+
/* @__PURE__ */ e(s, { className: "h-[16px] w-ds-lg rounded-ds-full bg-field" })
|
|
120
120
|
] })
|
|
121
121
|
]
|
|
122
122
|
},
|
|
@@ -128,8 +128,8 @@ const N = n.forwardRef(
|
|
|
128
128
|
)) });
|
|
129
129
|
}
|
|
130
130
|
);
|
|
131
|
-
|
|
132
|
-
const
|
|
131
|
+
x.displayName = "BoardSkeleton";
|
|
132
|
+
const g = n.forwardRef(
|
|
133
133
|
function({
|
|
134
134
|
rows: a = 6,
|
|
135
135
|
showAvatar: r = !0,
|
|
@@ -145,20 +145,20 @@ const p = n.forwardRef(
|
|
|
145
145
|
children: [
|
|
146
146
|
r && /* @__PURE__ */ e(s, { className: "h-ds-sm w-ds-sm shrink-0 rounded-ds-full bg-field" }),
|
|
147
147
|
/* @__PURE__ */ d("div", { className: "flex flex-1 flex-col gap-ds-02b", children: [
|
|
148
|
-
/* @__PURE__ */ e(s, { className: "h-
|
|
148
|
+
/* @__PURE__ */ e(s, { className: "h-[12px] w-2/5 bg-field" }),
|
|
149
149
|
/* @__PURE__ */ e(s, { className: "h-ds-03 w-3/5 bg-field" })
|
|
150
150
|
] }),
|
|
151
|
-
/* @__PURE__ */ e(s, { className: "h-
|
|
151
|
+
/* @__PURE__ */ e(s, { className: "h-[20px] w-[56px] rounded-ds-full bg-field" })
|
|
152
152
|
]
|
|
153
153
|
},
|
|
154
154
|
`list-${l}`
|
|
155
155
|
)) });
|
|
156
156
|
}
|
|
157
157
|
);
|
|
158
|
-
|
|
158
|
+
g.displayName = "ListSkeleton";
|
|
159
159
|
export {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
160
|
+
x as BoardSkeleton,
|
|
161
|
+
b as CardSkeleton,
|
|
162
|
+
g as ListSkeleton,
|
|
163
|
+
h as TableSkeleton
|
|
164
164
|
};
|
|
@@ -2,8 +2,8 @@ import { jsxs as a, jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { Skeleton as e } from "../ui/skeleton.js";
|
|
4
4
|
import { cn as d } from "../ui/lib/utils.js";
|
|
5
|
-
const l = "bg-field",
|
|
6
|
-
function(
|
|
5
|
+
const l = "bg-field", x = o.forwardRef(
|
|
6
|
+
function(i, m) {
|
|
7
7
|
return /* @__PURE__ */ a("div", { ref: m, className: "flex flex-col gap-ds-06", children: [
|
|
8
8
|
/* @__PURE__ */ s("div", { className: "grid grid-cols-1 gap-ds-05 sm:grid-cols-2 lg:grid-cols-4", children: Array.from({ length: 4 }).map((c, r) => /* @__PURE__ */ a(
|
|
9
9
|
"div",
|
|
@@ -11,25 +11,25 @@ const l = "bg-field", h = o.forwardRef(
|
|
|
11
11
|
className: "flex flex-col gap-ds-04 rounded-ds-xl border border-border bg-layer-01 p-ds-05b",
|
|
12
12
|
children: [
|
|
13
13
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
14
|
-
/* @__PURE__ */ s(e, { className: d("h-
|
|
14
|
+
/* @__PURE__ */ s(e, { className: d("h-[12px] w-[80px]", l) }),
|
|
15
15
|
/* @__PURE__ */ s(e, { className: d("h-ds-sm w-ds-sm rounded-ds-lg", l) })
|
|
16
16
|
] }),
|
|
17
|
-
/* @__PURE__ */ s(e, { className: d("h-ds-xs-plus w-
|
|
18
|
-
/* @__PURE__ */ s(e, { className: d("h-ds-03 w-
|
|
17
|
+
/* @__PURE__ */ s(e, { className: d("h-ds-xs-plus w-[64px]", l) }),
|
|
18
|
+
/* @__PURE__ */ s(e, { className: d("h-ds-03 w-[112px]", l) })
|
|
19
19
|
]
|
|
20
20
|
},
|
|
21
21
|
`stat-${r}`
|
|
22
22
|
)) }),
|
|
23
23
|
/* @__PURE__ */ a("div", { className: "rounded-ds-xl border border-border bg-layer-01 p-ds-06", children: [
|
|
24
24
|
/* @__PURE__ */ a("div", { className: "mb-ds-06 flex items-center justify-between", children: [
|
|
25
|
-
/* @__PURE__ */ s(e, { className: d("h-
|
|
25
|
+
/* @__PURE__ */ s(e, { className: d("h-[20px] w-[128px]", l) }),
|
|
26
26
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-ds-03", children: [
|
|
27
27
|
/* @__PURE__ */ s(e, { className: d("h-ds-sm w-ds-sm rounded-ds-lg", l) }),
|
|
28
|
-
/* @__PURE__ */ s(e, { className: d("h-
|
|
28
|
+
/* @__PURE__ */ s(e, { className: d("h-[16px] w-[112px]", l) }),
|
|
29
29
|
/* @__PURE__ */ s(e, { className: d("h-ds-sm w-ds-sm rounded-ds-lg", l) })
|
|
30
30
|
] })
|
|
31
31
|
] }),
|
|
32
|
-
/* @__PURE__ */ s("div", { className: "mb-ds-03 grid grid-cols-7 gap-ds-03", children: Array.from({ length: 7 }).map((c, r) => /* @__PURE__ */ s(e, { className: d("mx-auto h-
|
|
32
|
+
/* @__PURE__ */ s("div", { className: "mb-ds-03 grid grid-cols-7 gap-ds-03", children: Array.from({ length: 7 }).map((c, r) => /* @__PURE__ */ s(e, { className: d("mx-auto h-[12px] w-[32px]", l) }, `wh-${r}`)) }),
|
|
33
33
|
/* @__PURE__ */ s("div", { className: "grid grid-cols-7 gap-ds-03", children: Array.from({ length: 35 }).map((c, r) => /* @__PURE__ */ s(
|
|
34
34
|
e,
|
|
35
35
|
{
|
|
@@ -41,20 +41,20 @@ const l = "bg-field", h = o.forwardRef(
|
|
|
41
41
|
] });
|
|
42
42
|
}
|
|
43
43
|
);
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
function(
|
|
44
|
+
x.displayName = "DashboardSkeleton";
|
|
45
|
+
const t = o.forwardRef(
|
|
46
|
+
function(i, m) {
|
|
47
47
|
return /* @__PURE__ */ a("div", { ref: m, className: "flex flex-col gap-ds-06", children: [
|
|
48
48
|
/* @__PURE__ */ a("div", { className: "flex flex-col gap-ds-05 sm:flex-row sm:items-center sm:justify-between", children: [
|
|
49
49
|
/* @__PURE__ */ a("div", { className: "flex flex-col gap-ds-03", children: [
|
|
50
|
-
/* @__PURE__ */ s(e, { className: d("h-
|
|
51
|
-
/* @__PURE__ */ s(e, { className: d("h-ds-04 w-
|
|
50
|
+
/* @__PURE__ */ s(e, { className: d("h-[24px] w-[112px]", l) }),
|
|
51
|
+
/* @__PURE__ */ s(e, { className: d("h-ds-04 w-[160px]", l) })
|
|
52
52
|
] }),
|
|
53
|
-
/* @__PURE__ */ s(e, { className: d("h-ds-sm-plus w-
|
|
53
|
+
/* @__PURE__ */ s(e, { className: d("h-ds-sm-plus w-[128px] rounded-ds-lg", l) })
|
|
54
54
|
] }),
|
|
55
55
|
/* @__PURE__ */ a("div", { className: "flex flex-col gap-ds-04 sm:flex-row sm:items-center", children: [
|
|
56
56
|
/* @__PURE__ */ s(e, { className: d("h-ds-sm-plus flex-1 rounded-ds-lg", l) }),
|
|
57
|
-
/* @__PURE__ */ s("div", { className: "flex gap-ds-02b", children: Array.from({ length: 4 }).map((c, r) => /* @__PURE__ */ s(e, { className: d("h-ds-sm w-
|
|
57
|
+
/* @__PURE__ */ s("div", { className: "flex gap-ds-02b", children: Array.from({ length: 4 }).map((c, r) => /* @__PURE__ */ s(e, { className: d("h-ds-sm w-[64px] rounded-ds-lg", l) }, `f-${r}`)) })
|
|
58
58
|
] }),
|
|
59
59
|
/* @__PURE__ */ s("div", { className: "grid grid-cols-1 gap-ds-05 sm:grid-cols-2 lg:grid-cols-3", children: Array.from({ length: 6 }).map((c, r) => /* @__PURE__ */ a(
|
|
60
60
|
"div",
|
|
@@ -62,21 +62,21 @@ const f = o.forwardRef(
|
|
|
62
62
|
className: "flex flex-col gap-ds-05 rounded-ds-xl border border-border bg-layer-01 p-ds-05b",
|
|
63
63
|
children: [
|
|
64
64
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
65
|
-
/* @__PURE__ */ s(e, { className: d("h-
|
|
66
|
-
/* @__PURE__ */ s(e, { className: d("h-
|
|
65
|
+
/* @__PURE__ */ s(e, { className: d("h-[20px] w-[64px] rounded-ds-full", l) }),
|
|
66
|
+
/* @__PURE__ */ s(e, { className: d("h-[16px] w-[80px] rounded-ds-md", l) })
|
|
67
67
|
] }),
|
|
68
68
|
/* @__PURE__ */ a("div", { className: "flex flex-col gap-ds-03", children: [
|
|
69
|
-
/* @__PURE__ */ s(e, { className: d("h-
|
|
70
|
-
/* @__PURE__ */ s(e, { className: d("h-
|
|
71
|
-
/* @__PURE__ */ s(e, { className: d("h-
|
|
69
|
+
/* @__PURE__ */ s(e, { className: d("h-[16px] w-3/4", l) }),
|
|
70
|
+
/* @__PURE__ */ s(e, { className: d("h-[12px] w-full", l) }),
|
|
71
|
+
/* @__PURE__ */ s(e, { className: d("h-[12px] w-2/3", l) })
|
|
72
72
|
] }),
|
|
73
73
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between pt-ds-02", children: [
|
|
74
|
-
/* @__PURE__ */ s("div", { className: "flex -space-x-ds-03", children: Array.from({ length: 3 }).map((
|
|
74
|
+
/* @__PURE__ */ s("div", { className: "flex -space-x-ds-03", children: Array.from({ length: 3 }).map((f, n) => /* @__PURE__ */ s(
|
|
75
75
|
e,
|
|
76
76
|
{
|
|
77
77
|
className: d("h-ds-xs-plus w-ds-xs-plus rounded-ds-full", l)
|
|
78
78
|
},
|
|
79
|
-
`av-${r}-${
|
|
79
|
+
`av-${r}-${n}`
|
|
80
80
|
)) }),
|
|
81
81
|
/* @__PURE__ */ s(e, { className: d("h-ds-04 w-ds-md", l) })
|
|
82
82
|
] })
|
|
@@ -87,12 +87,12 @@ const f = o.forwardRef(
|
|
|
87
87
|
] });
|
|
88
88
|
}
|
|
89
89
|
);
|
|
90
|
-
|
|
91
|
-
const
|
|
92
|
-
function(
|
|
90
|
+
t.displayName = "ProjectListSkeleton";
|
|
91
|
+
const h = o.forwardRef(
|
|
92
|
+
function(i, m) {
|
|
93
93
|
return /* @__PURE__ */ a("div", { ref: m, className: "flex h-full flex-col gap-0 rounded-ds-xl border border-border bg-layer-01", children: [
|
|
94
94
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between border-b border-border px-ds-05b py-ds-05", children: [
|
|
95
|
-
/* @__PURE__ */ s(e, { className: d("h-
|
|
95
|
+
/* @__PURE__ */ s(e, { className: d("h-[20px] w-[192px]", l) }),
|
|
96
96
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-ds-03", children: [
|
|
97
97
|
/* @__PURE__ */ s(e, { className: d("h-ds-xs-plus w-ds-xs-plus rounded-ds-lg", l) }),
|
|
98
98
|
/* @__PURE__ */ s(e, { className: d("h-ds-xs-plus w-ds-xs-plus rounded-ds-lg", l) })
|
|
@@ -103,26 +103,26 @@ const p = o.forwardRef(
|
|
|
103
103
|
{
|
|
104
104
|
className: "flex items-center gap-ds-05 py-ds-03",
|
|
105
105
|
children: [
|
|
106
|
-
/* @__PURE__ */ s(e, { className: d("h-
|
|
107
|
-
/* @__PURE__ */ s(e, { className: d("h-
|
|
106
|
+
/* @__PURE__ */ s(e, { className: d("h-[12px] w-[96px] shrink-0", l) }),
|
|
107
|
+
/* @__PURE__ */ s(e, { className: d("h-[24px] w-[128px] rounded-ds-md", l) })
|
|
108
108
|
]
|
|
109
109
|
},
|
|
110
110
|
`prop-${r}`
|
|
111
111
|
)) }),
|
|
112
|
-
/* @__PURE__ */ s("div", { className: "border-b border-border px-ds-05b", children: /* @__PURE__ */ s("div", { className: "flex gap-ds-05 py-ds-04", children: Array.from({ length: 3 }).map((c, r) => /* @__PURE__ */ s(e, { className: d("h-
|
|
112
|
+
/* @__PURE__ */ s("div", { className: "border-b border-border px-ds-05b", children: /* @__PURE__ */ s("div", { className: "flex gap-ds-05 py-ds-04", children: Array.from({ length: 3 }).map((c, r) => /* @__PURE__ */ s(e, { className: d("h-[16px] w-[64px]", l) }, `tab-${r}`)) }) }),
|
|
113
113
|
/* @__PURE__ */ a("div", { className: "flex flex-1 flex-col gap-ds-04 px-ds-05b py-ds-05", children: [
|
|
114
|
-
/* @__PURE__ */ s(e, { className: d("h-
|
|
115
|
-
/* @__PURE__ */ s(e, { className: d("h-
|
|
116
|
-
/* @__PURE__ */ s(e, { className: d("h-
|
|
117
|
-
/* @__PURE__ */ s(e, { className: d("mt-ds-03 h-
|
|
118
|
-
/* @__PURE__ */ s(e, { className: d("h-
|
|
114
|
+
/* @__PURE__ */ s(e, { className: d("h-[12px] w-full", l) }),
|
|
115
|
+
/* @__PURE__ */ s(e, { className: d("h-[12px] w-4/5", l) }),
|
|
116
|
+
/* @__PURE__ */ s(e, { className: d("h-[12px] w-3/5", l) }),
|
|
117
|
+
/* @__PURE__ */ s(e, { className: d("mt-ds-03 h-[12px] w-full", l) }),
|
|
118
|
+
/* @__PURE__ */ s(e, { className: d("h-[12px] w-2/3", l) })
|
|
119
119
|
] })
|
|
120
120
|
] });
|
|
121
121
|
}
|
|
122
122
|
);
|
|
123
|
-
|
|
123
|
+
h.displayName = "TaskDetailSkeleton";
|
|
124
124
|
export {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
x as DashboardSkeleton,
|
|
126
|
+
t as ProjectListSkeleton,
|
|
127
|
+
h as TaskDetailSkeleton
|
|
128
128
|
};
|