@devalok/shilp-sutra 0.8.4 → 0.9.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 +50 -0
- package/dist/_chunks/button.js +95 -0
- package/dist/_chunks/card.js +40 -0
- package/dist/_chunks/checkbox.js +14 -0
- package/dist/_chunks/form.js +27 -0
- package/dist/_chunks/primitives.js +6965 -0
- package/dist/_chunks/sidebar.js +592 -0
- package/dist/_chunks/spinner.js +34 -0
- package/dist/_chunks/tiptap.js +15254 -0
- package/dist/_chunks/tooltip.js +13 -0
- package/dist/_chunks/tree-view.js +304 -0
- package/dist/_chunks/use-calendar.js +990 -0
- package/dist/_chunks/utils.js +15 -0
- package/dist/_chunks/vendor.js +5823 -0
- package/dist/composed/avatar-group.js +20 -20
- package/dist/composed/command-palette.js +1 -1
- package/dist/composed/confirm-dialog.js +5 -5
- package/dist/composed/content-card.d.ts +1 -1
- package/dist/composed/content-card.js +6 -6
- package/dist/composed/date-picker/index.js +13 -0
- package/dist/composed/empty-state.js +10 -10
- package/dist/composed/error-boundary.js +2 -2
- package/dist/composed/global-loading.js +4 -4
- package/dist/composed/index.js +45 -53
- package/dist/composed/loading-skeleton.js +2 -2
- package/dist/composed/member-picker.js +5 -5
- package/dist/composed/page-header.js +4 -4
- package/dist/composed/page-skeletons.js +1 -1
- package/dist/composed/priority-indicator.js +6 -6
- package/dist/composed/rich-text-editor.js +422 -209
- package/dist/composed/schedule-view.js +1 -1
- package/dist/composed/simple-tooltip.js +6 -6
- package/dist/composed/status-badge.d.ts +1 -1
- package/dist/composed/status-badge.js +2 -2
- package/dist/shell/bottom-navbar.js +1 -1
- package/dist/shell/notification-center.js +2 -2
- package/dist/shell/notification-preferences.js +32 -33
- package/dist/shell/sidebar.js +24 -24
- package/dist/shell/top-bar.js +22 -22
- package/dist/ui/accordion.js +17 -17
- package/dist/ui/alert-dialog.js +29 -29
- package/dist/ui/alert.d.ts +2 -2
- package/dist/ui/alert.js +65 -44
- package/dist/ui/aspect-ratio.js +1 -1
- package/dist/ui/autocomplete.js +11 -11
- package/dist/ui/avatar.d.ts +1 -1
- package/dist/ui/avatar.js +67 -25
- package/dist/ui/badge.d.ts +2 -2
- package/dist/ui/badge.js +115 -91
- package/dist/ui/banner.d.ts +1 -1
- package/dist/ui/banner.js +5 -5
- package/dist/ui/breadcrumb.js +14 -14
- package/dist/ui/button-group.js +30 -15
- package/dist/ui/button.d.ts +2 -2
- package/dist/ui/button.js +114 -71
- package/dist/ui/card.js +66 -22
- package/dist/ui/charts/index.js +1221 -18
- package/dist/ui/checkbox.js +25 -5
- package/dist/ui/chip.d.ts +4 -4
- package/dist/ui/chip.js +2 -2
- package/dist/ui/code.js +1 -1
- package/dist/ui/collapsible.js +5 -5
- package/dist/ui/color-input.js +11 -11
- package/dist/ui/combobox.js +12 -12
- package/dist/ui/container.js +4 -4
- package/dist/ui/context-menu.js +37 -37
- package/dist/ui/data-table-toolbar.js +18 -18
- package/dist/ui/data-table.js +2 -2
- package/dist/ui/dialog.js +33 -33
- package/dist/ui/dropdown-menu.js +60 -60
- package/dist/ui/file-upload.js +1 -1
- package/dist/ui/form.js +36 -15
- package/dist/ui/hover-card.js +7 -7
- package/dist/ui/icon-button.js +9 -9
- package/dist/ui/index.js +523 -325
- package/dist/ui/input-otp.d.ts +2 -2
- package/dist/ui/input-otp.js +14 -14
- package/dist/ui/input.js +56 -28
- package/dist/ui/label.js +18 -4
- package/dist/ui/lib/utils.js +4 -5
- package/dist/ui/link.js +9 -9
- package/dist/ui/menubar.js +81 -81
- package/dist/ui/navigation-menu.js +42 -42
- package/dist/ui/number-input.js +13 -13
- package/dist/ui/pagination.js +5 -5
- package/dist/ui/popover.js +9 -9
- package/dist/ui/progress.d.ts +1 -1
- package/dist/ui/progress.js +15 -15
- package/dist/ui/radio.js +10 -10
- package/dist/ui/search-input.js +5 -5
- package/dist/ui/segmented-control.js +91 -83
- package/dist/ui/select.js +52 -52
- package/dist/ui/separator.js +20 -5
- package/dist/ui/sheet.js +28 -28
- package/dist/ui/sidebar.js +36 -560
- package/dist/ui/skeleton.d.ts +1 -1
- package/dist/ui/skeleton.js +9 -9
- package/dist/ui/slider.js +11 -11
- package/dist/ui/spinner.js +37 -2
- package/dist/ui/stack.js +1 -1
- package/dist/ui/stat-card.js +1 -1
- package/dist/ui/stepper.js +15 -15
- package/dist/ui/switch.js +22 -3
- package/dist/ui/table.js +1 -1
- package/dist/ui/tabs.js +59 -32
- package/dist/ui/text.js +2 -2
- package/dist/ui/textarea.js +7 -7
- package/dist/ui/toast.d.ts +1 -1
- package/dist/ui/toast.js +28 -28
- package/dist/ui/toggle-group.js +11 -11
- package/dist/ui/toggle.js +9 -9
- package/dist/ui/tooltip.js +17 -6
- package/dist/ui/transitions.js +68 -58
- package/dist/ui/tree-view/index.js +7 -0
- package/dist/ui/visually-hidden.js +3 -3
- package/llms-full.txt +1 -1
- package/llms.txt +7 -0
- package/package.json +656 -706
- package/dist/_virtual/client.js +0 -5
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/react-dom-client.development.js +0 -5
- package/dist/_virtual/react-dom-client.production.js +0 -5
- package/dist/_virtual/scheduler.development.js +0 -5
- package/dist/_virtual/scheduler.production.js +0 -5
- package/dist/composed/date-picker/calendar-grid.js +0 -194
- package/dist/composed/date-picker/date-picker.js +0 -124
- package/dist/composed/date-picker/date-range-picker.js +0 -167
- package/dist/composed/date-picker/date-time-picker.js +0 -193
- package/dist/composed/date-picker/month-picker.js +0 -53
- package/dist/composed/date-picker/presets.js +0 -84
- package/dist/composed/date-picker/time-picker.js +0 -181
- package/dist/composed/date-picker/use-calendar.js +0 -17
- package/dist/composed/date-picker/year-picker.js +0 -45
- package/dist/composed/extensions/emoji-suggestion.js +0 -119
- package/dist/composed/extensions/file-attachment.js +0 -55
- package/dist/composed/extensions/mention-suggestion.js +0 -79
- package/dist/node_modules/.pnpm/@emoji-mart_data@1.2.1/node_modules/@emoji-mart/data/sets/15/native.json.js +0 -40141
- package/dist/node_modules/.pnpm/@emoji-mart_react@1.1.1_emoji-mart@5.6.0_react@19.2.4/node_modules/@emoji-mart/react/dist/module.js +0 -17
- package/dist/node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/module.js +0 -2958
- package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/cjs/react-dom-client.development.js +0 -17062
- package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/cjs/react-dom-client.production.js +0 -9790
- package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/client.js +0 -20
- package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.development.js +0 -237
- package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js +0 -234
- package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/index.js +0 -11
- package/dist/primitives/_internal/number.js +0 -6
- package/dist/primitives/_internal/primitive.js +0 -9
- package/dist/primitives/_internal/react-arrow.js +0 -13
- package/dist/primitives/_internal/react-collection.js +0 -48
- package/dist/primitives/_internal/react-compose-refs.js +0 -29
- package/dist/primitives/_internal/react-context.js +0 -76
- package/dist/primitives/_internal/react-direction.js +0 -10
- package/dist/primitives/_internal/react-dismissable-layer.js +0 -103
- package/dist/primitives/_internal/react-focus-guards.js +0 -17
- package/dist/primitives/_internal/react-focus-scope.js +0 -137
- package/dist/primitives/_internal/react-id.js +0 -14
- package/dist/primitives/_internal/react-popper.js +0 -137
- package/dist/primitives/_internal/react-portal.js +0 -16
- package/dist/primitives/_internal/react-presence.js +0 -71
- package/dist/primitives/_internal/react-primitive.js +0 -36
- package/dist/primitives/_internal/react-use-callback-ref.js +0 -13
- package/dist/primitives/_internal/react-use-controllable-state.js +0 -44
- package/dist/primitives/_internal/react-use-escape-keydown.js +0 -14
- package/dist/primitives/_internal/react-use-is-hydrated.js +0 -15
- package/dist/primitives/_internal/react-use-layout-effect.js +0 -6
- package/dist/primitives/_internal/react-use-previous.js +0 -8
- package/dist/primitives/_internal/react-use-size.js +0 -27
- package/dist/primitives/react-accordion.js +0 -239
- package/dist/primitives/react-alert-dialog.js +0 -127
- package/dist/primitives/react-aspect-ratio.js +0 -43
- package/dist/primitives/react-avatar.js +0 -75
- package/dist/primitives/react-checkbox.js +0 -251
- package/dist/primitives/react-collapsible.js +0 -120
- package/dist/primitives/react-context-menu.js +0 -240
- package/dist/primitives/react-dialog.js +0 -262
- package/dist/primitives/react-dropdown-menu.js +0 -227
- package/dist/primitives/react-hover-card.js +0 -187
- package/dist/primitives/react-label.js +0 -20
- package/dist/primitives/react-menu.js +0 -652
- package/dist/primitives/react-menubar.js +0 -355
- package/dist/primitives/react-navigation-menu.js +0 -607
- package/dist/primitives/react-popover.js +0 -243
- package/dist/primitives/react-progress.js +0 -84
- package/dist/primitives/react-radio-group.js +0 -238
- package/dist/primitives/react-roving-focus.js +0 -183
- package/dist/primitives/react-select.js +0 -862
- package/dist/primitives/react-separator.js +0 -24
- package/dist/primitives/react-slider.js +0 -437
- package/dist/primitives/react-slot.js +0 -70
- package/dist/primitives/react-switch.js +0 -132
- package/dist/primitives/react-tabs.js +0 -163
- package/dist/primitives/react-toast.js +0 -446
- package/dist/primitives/react-toggle-group.js +0 -137
- package/dist/primitives/react-toggle.js +0 -33
- package/dist/primitives/react-tooltip.js +0 -338
- package/dist/primitives/react-visually-hidden.js +0 -32
- package/dist/ui/charts/_internal/animation.js +0 -18
- package/dist/ui/charts/_internal/axes.js +0 -42
- package/dist/ui/charts/_internal/colors.js +0 -21
- package/dist/ui/charts/_internal/grid-lines.js +0 -43
- package/dist/ui/charts/_internal/legend.js +0 -29
- package/dist/ui/charts/_internal/tooltip.js +0 -39
- package/dist/ui/charts/_internal/types.js +0 -10
- package/dist/ui/charts/area-chart.js +0 -245
- package/dist/ui/charts/bar-chart.js +0 -153
- package/dist/ui/charts/chart-container.js +0 -27
- package/dist/ui/charts/gauge-chart.js +0 -72
- package/dist/ui/charts/line-chart.js +0 -163
- package/dist/ui/charts/pie-chart.js +0 -132
- package/dist/ui/charts/radar-chart.js +0 -223
- package/dist/ui/charts/sparkline.js +0 -124
- package/dist/ui/lib/motion.js +0 -32
- package/dist/ui/lib/use-reduced-motion.js +0 -15
- package/dist/ui/lib/use-ripple.js +0 -14
- package/dist/ui/tree-view/tree-item.js +0 -139
- package/dist/ui/tree-view/tree-view.js +0 -140
- package/dist/ui/tree-view/use-tree.js +0 -38
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as e, jsxs as
|
|
2
|
+
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
3
3
|
import * as u from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { m as w } from "../_chunks/vendor.js";
|
|
5
|
+
import { c as d } from "../_chunks/utils.js";
|
|
6
|
+
import { A, a as T, b as C } from "../_chunks/avatar.js";
|
|
7
|
+
import { T as I, a as f, b as p, c as h } from "../_chunks/tooltip.js";
|
|
8
8
|
import { getInitials as j } from "./lib/string-utils.js";
|
|
9
9
|
const x = w(
|
|
10
10
|
"shrink-0 overflow-hidden rounded-ds-full border-2 border-layer-01",
|
|
@@ -21,30 +21,30 @@ const x = w(
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
), z = u.forwardRef(
|
|
24
|
-
({ users: s, max: l = 4, size: o, showTooltip:
|
|
24
|
+
({ users: s, max: l = 4, size: o, showTooltip: b = !0, className: v, ...g }, y) => {
|
|
25
25
|
const i = s.slice(0, l), m = s.length - l, n = {
|
|
26
26
|
sm: "-ml-ds-02b",
|
|
27
27
|
md: "-ml-ds-03",
|
|
28
28
|
lg: "-ml-ds-04"
|
|
29
29
|
}[o ?? "md"];
|
|
30
|
-
return /* @__PURE__ */ e(I, { children: /* @__PURE__ */
|
|
30
|
+
return /* @__PURE__ */ e(I, { children: /* @__PURE__ */ r(
|
|
31
31
|
"div",
|
|
32
32
|
{
|
|
33
33
|
ref: y,
|
|
34
|
-
className: d("flex items-center",
|
|
34
|
+
className: d("flex items-center", v),
|
|
35
35
|
...g,
|
|
36
36
|
children: [
|
|
37
|
-
i.map((
|
|
38
|
-
const N = j(
|
|
37
|
+
i.map((a, t) => {
|
|
38
|
+
const N = j(a.name), c = /* @__PURE__ */ r(
|
|
39
39
|
A,
|
|
40
40
|
{
|
|
41
41
|
className: d(
|
|
42
42
|
x({ size: o }),
|
|
43
|
-
|
|
43
|
+
t > 0 && n
|
|
44
44
|
),
|
|
45
|
-
style: { zIndex: i.length -
|
|
45
|
+
style: { zIndex: i.length - t },
|
|
46
46
|
children: [
|
|
47
|
-
|
|
47
|
+
a.image && /* @__PURE__ */ e(T, { src: a.image, alt: a.name }),
|
|
48
48
|
/* @__PURE__ */ e(
|
|
49
49
|
C,
|
|
50
50
|
{
|
|
@@ -54,22 +54,22 @@ const x = w(
|
|
|
54
54
|
)
|
|
55
55
|
]
|
|
56
56
|
},
|
|
57
|
-
|
|
57
|
+
t
|
|
58
58
|
);
|
|
59
|
-
return
|
|
59
|
+
return b ? /* @__PURE__ */ r(f, { children: [
|
|
60
60
|
/* @__PURE__ */ e(p, { asChild: !0, children: c }),
|
|
61
61
|
/* @__PURE__ */ e(
|
|
62
62
|
h,
|
|
63
63
|
{
|
|
64
64
|
className: "border-border bg-layer-01 text-text-primary",
|
|
65
65
|
sideOffset: 6,
|
|
66
|
-
children: /* @__PURE__ */ e("p", { className: "text-ds-sm", children:
|
|
66
|
+
children: /* @__PURE__ */ e("p", { className: "text-ds-sm", children: a.name })
|
|
67
67
|
}
|
|
68
68
|
)
|
|
69
|
-
] },
|
|
69
|
+
] }, t) : c;
|
|
70
70
|
}),
|
|
71
|
-
m > 0 && /* @__PURE__ */
|
|
72
|
-
/* @__PURE__ */ e(p, { asChild: !0, children: /* @__PURE__ */
|
|
71
|
+
m > 0 && /* @__PURE__ */ r(f, { children: [
|
|
72
|
+
/* @__PURE__ */ e(p, { asChild: !0, children: /* @__PURE__ */ r(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
75
|
className: d(
|
|
@@ -89,7 +89,7 @@ const x = w(
|
|
|
89
89
|
{
|
|
90
90
|
className: "border-border bg-layer-01 text-text-primary",
|
|
91
91
|
sideOffset: 6,
|
|
92
|
-
children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-ds-01", children: s.slice(l).map((
|
|
92
|
+
children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-ds-01", children: s.slice(l).map((a, t) => /* @__PURE__ */ e("p", { className: "text-ds-sm", children: a.name }, t)) })
|
|
93
93
|
}
|
|
94
94
|
)
|
|
95
95
|
] })
|
|
@@ -3,7 +3,7 @@ import { jsx as s, jsxs as a } from "react/jsx-runtime";
|
|
|
3
3
|
import * as d from "react";
|
|
4
4
|
import { Dialog as A, DialogPortal as M, DialogOverlay as R, DialogContentRaw as L, DialogTitle as S, DialogDescription as $ } from "../ui/dialog.js";
|
|
5
5
|
import { IconSearch as K, IconCornerDownLeft as v, IconArrowUp as P, IconArrowDown as q } from "@tabler/icons-react";
|
|
6
|
-
import {
|
|
6
|
+
import { c as b } from "../_chunks/utils.js";
|
|
7
7
|
import { VisuallyHidden as z } from "../ui/visually-hidden.js";
|
|
8
8
|
const O = d.forwardRef(
|
|
9
9
|
function({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as i, jsxs as r } from "react/jsx-runtime";
|
|
3
3
|
import { AlertDialog as f, AlertDialogContent as D, AlertDialogHeader as h, AlertDialogTitle as g, AlertDialogDescription as A, AlertDialogFooter as C } from "../ui/alert-dialog.js";
|
|
4
|
-
import {
|
|
4
|
+
import { B as o } from "../_chunks/button.js";
|
|
5
5
|
const p = ({
|
|
6
6
|
open: t,
|
|
7
7
|
onOpenChange: e,
|
|
8
|
-
title:
|
|
9
|
-
description:
|
|
8
|
+
title: a,
|
|
9
|
+
description: n,
|
|
10
10
|
confirmText: c = "Confirm",
|
|
11
11
|
cancelText: d = "Cancel",
|
|
12
12
|
color: s = "default",
|
|
@@ -14,8 +14,8 @@ const p = ({
|
|
|
14
14
|
onConfirm: m
|
|
15
15
|
}) => /* @__PURE__ */ i(f, { open: t, onOpenChange: e, children: /* @__PURE__ */ r(D, { children: [
|
|
16
16
|
/* @__PURE__ */ r(h, { children: [
|
|
17
|
-
/* @__PURE__ */ i(g, { children:
|
|
18
|
-
/* @__PURE__ */ i(A, { children:
|
|
17
|
+
/* @__PURE__ */ i(g, { children: a }),
|
|
18
|
+
/* @__PURE__ */ i(A, { children: n })
|
|
19
19
|
] }),
|
|
20
20
|
/* @__PURE__ */ r(C, { children: [
|
|
21
21
|
/* @__PURE__ */ i(
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const contentCardVariants: (props?: ({
|
|
4
4
|
variant?: "default" | "outline" | "ghost" | null | undefined;
|
|
5
|
-
padding?: "
|
|
5
|
+
padding?: "none" | "default" | "compact" | "spacious" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export interface ContentCardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof contentCardVariants> {
|
|
8
8
|
header?: React.ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e, Fragment as f } from "react/jsx-runtime";
|
|
2
2
|
import * as g from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { m as v } from "../_chunks/vendor.js";
|
|
4
|
+
import { c as t } from "../_chunks/utils.js";
|
|
5
5
|
const h = v(
|
|
6
6
|
"rounded-ds-lg transition-[color,background-color,border-color,box-shadow] duration-fast-02 ease-productive-standard",
|
|
7
7
|
{
|
|
@@ -51,18 +51,18 @@ const h = v(
|
|
|
51
51
|
footer: s,
|
|
52
52
|
className: p,
|
|
53
53
|
children: l,
|
|
54
|
-
...
|
|
55
|
-
},
|
|
54
|
+
...m
|
|
55
|
+
}, u) => {
|
|
56
56
|
const n = c || d || o;
|
|
57
57
|
return /* @__PURE__ */ i(
|
|
58
58
|
"div",
|
|
59
59
|
{
|
|
60
|
-
ref:
|
|
60
|
+
ref: u,
|
|
61
61
|
className: t(
|
|
62
62
|
h({ variant: r, padding: n || s ? "none" : a }),
|
|
63
63
|
p
|
|
64
64
|
),
|
|
65
|
-
...
|
|
65
|
+
...m,
|
|
66
66
|
children: [
|
|
67
67
|
n && /* @__PURE__ */ e(
|
|
68
68
|
"div",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { C as r, D as s, a as i, b as P, M as c, P as k, T as t, Y as n, u as D } from "../../_chunks/use-calendar.js";
|
|
3
|
+
export {
|
|
4
|
+
r as CalendarGrid,
|
|
5
|
+
s as DatePicker,
|
|
6
|
+
i as DateRangePicker,
|
|
7
|
+
P as DateTimePicker,
|
|
8
|
+
c as MonthPicker,
|
|
9
|
+
k as Presets,
|
|
10
|
+
t as TimePicker,
|
|
11
|
+
n as YearPicker,
|
|
12
|
+
D as useCalendar
|
|
13
|
+
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
|
-
import {
|
|
4
|
-
const h = ({ className:
|
|
3
|
+
import { c } from "../_chunks/utils.js";
|
|
4
|
+
const h = ({ className: t }) => /* @__PURE__ */ e(
|
|
5
5
|
"svg",
|
|
6
6
|
{
|
|
7
7
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8
8
|
viewBox: "0 0 32 32",
|
|
9
9
|
fill: "currentColor",
|
|
10
|
-
className:
|
|
10
|
+
className: t,
|
|
11
11
|
"aria-hidden": "true",
|
|
12
12
|
children: /* @__PURE__ */ e("path", { d: "M25.97,21.39c-0.9-1.85,0.08-3.95-1.72-5.39c1.76-1.44,0.8-3.55,1.69-5.39c0.05-0.12,0.04-0.25-0.02-0.35c-0.06-0.1-0.16-0.18-0.29-0.19c-2.05-0.15-3.35-2.04-5.5-1.21c-0.39-2.21-2.7-2.44-3.84-4.13c-0.08-0.1-0.19-0.16-0.31-0.16c-0.12,0-0.23,0.05-0.31,0.16c-1.14,1.69-3.43,1.92-3.82,4.13c-2.14-0.83-3.47,1.07-5.52,1.21c-0.13,0.01-0.23,0.09-0.29,0.19c-0.06,0.1-0.07,0.23-0.02,0.35c0.9,1.85-0.08,3.95,1.72,5.39c-1.76,1.44-0.8,3.55-1.69,5.39C6,21.51,6.02,21.64,6.07,21.74c0.06,0.1,0.16,0.18,0.29,0.19c2.05,0.15,3.38,2.06,5.52,1.23c0.39,2.21,2.67,2.43,3.82,4.12c0.08,0.1,0.19,0.16,0.31,0.16c0.12,0,0.23-0.05,0.31-0.16c1.14-1.69,3.42-1.92,3.81-4.13c2.14,0.83,3.48-1.07,5.53-1.22c0.13-0.01,0.23-0.09,0.29-0.19C26.01,21.64,26.02,21.51,25.97,21.39z" })
|
|
13
13
|
}
|
|
14
14
|
), f = n.forwardRef(
|
|
15
15
|
({
|
|
16
|
-
icon:
|
|
16
|
+
icon: t,
|
|
17
17
|
title: a,
|
|
18
18
|
description: d,
|
|
19
19
|
action: l,
|
|
@@ -21,10 +21,10 @@ const h = ({ className: c }) => /* @__PURE__ */ e(
|
|
|
21
21
|
className: i,
|
|
22
22
|
...m
|
|
23
23
|
}, o) => {
|
|
24
|
-
const x =
|
|
24
|
+
const x = t ?? /* @__PURE__ */ e(
|
|
25
25
|
h,
|
|
26
26
|
{
|
|
27
|
-
className:
|
|
27
|
+
className: c(
|
|
28
28
|
"text-text-placeholder",
|
|
29
29
|
s ? "h-ico-md w-ico-md" : "h-ico-lg w-ico-lg"
|
|
30
30
|
)
|
|
@@ -34,7 +34,7 @@ const h = ({ className: c }) => /* @__PURE__ */ e(
|
|
|
34
34
|
"div",
|
|
35
35
|
{
|
|
36
36
|
ref: o,
|
|
37
|
-
className:
|
|
37
|
+
className: c(
|
|
38
38
|
"flex flex-col items-center justify-center text-center",
|
|
39
39
|
s ? "gap-ds-04 py-ds-07" : "gap-ds-05 py-ds-10",
|
|
40
40
|
i
|
|
@@ -44,7 +44,7 @@ const h = ({ className: c }) => /* @__PURE__ */ e(
|
|
|
44
44
|
/* @__PURE__ */ e(
|
|
45
45
|
"div",
|
|
46
46
|
{
|
|
47
|
-
className:
|
|
47
|
+
className: c(
|
|
48
48
|
"flex items-center justify-center rounded-ds-xl bg-layer-02",
|
|
49
49
|
s ? "h-ds-md w-ds-md" : "h-ds-lg w-ds-lg"
|
|
50
50
|
),
|
|
@@ -55,7 +55,7 @@ const h = ({ className: c }) => /* @__PURE__ */ e(
|
|
|
55
55
|
/* @__PURE__ */ e(
|
|
56
56
|
"h3",
|
|
57
57
|
{
|
|
58
|
-
className:
|
|
58
|
+
className: c(
|
|
59
59
|
"text-text-primary",
|
|
60
60
|
s ? "text-ds-md font-semibold" : "text-ds-base font-semibold"
|
|
61
61
|
),
|
|
@@ -65,7 +65,7 @@ const h = ({ className: c }) => /* @__PURE__ */ e(
|
|
|
65
65
|
d && /* @__PURE__ */ e(
|
|
66
66
|
"p",
|
|
67
67
|
{
|
|
68
|
-
className:
|
|
68
|
+
className: c(
|
|
69
69
|
"text-text-placeholder",
|
|
70
70
|
s ? "text-ds-sm" : "text-ds-md"
|
|
71
71
|
),
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx as s, jsxs as n } from "react/jsx-runtime";
|
|
3
3
|
import * as g from "react";
|
|
4
4
|
import { IconAlertTriangle as u, IconServerOff as p, IconBan as x, IconFileUnknown as h } from "@tabler/icons-react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { B as b } from "../_chunks/button.js";
|
|
6
|
+
import { c } from "../_chunks/utils.js";
|
|
7
7
|
function v(e) {
|
|
8
8
|
if (e && typeof e == "object" && "status" in e && typeof e.status == "number")
|
|
9
9
|
return e.status;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import * as i from "react";
|
|
4
|
-
import { useRef as l, useState as
|
|
5
|
-
import {
|
|
4
|
+
import { useRef as l, useState as s, useEffect as f } from "react";
|
|
5
|
+
import { c } from "../_chunks/utils.js";
|
|
6
6
|
const m = i.forwardRef(
|
|
7
7
|
function({ isLoading: e }, n) {
|
|
8
|
-
const t = l(null), [a, o] =
|
|
9
|
-
return
|
|
8
|
+
const t = l(null), [a, o] = s(!0);
|
|
9
|
+
return f(() => {
|
|
10
10
|
t.current && e && o(!1);
|
|
11
11
|
}, [e]), /* @__PURE__ */ r(
|
|
12
12
|
"div",
|
package/dist/composed/index.js
CHANGED
|
@@ -1,63 +1,55 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { PageHeader as o } from "./page-header.js";
|
|
3
|
-
import { ContentCard as a, contentCardVariants as
|
|
4
|
-
import { StatusBadge as p, statusBadgeVariants as
|
|
5
|
-
import { EmptyState as
|
|
6
|
-
import { AvatarGroup as
|
|
7
|
-
import { PriorityIndicator as
|
|
3
|
+
import { ContentCard as a, contentCardVariants as i } from "./content-card.js";
|
|
4
|
+
import { StatusBadge as p, statusBadgeVariants as s } from "./status-badge.js";
|
|
5
|
+
import { EmptyState as l } from "./empty-state.js";
|
|
6
|
+
import { AvatarGroup as f } from "./avatar-group.js";
|
|
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 {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { DatePicker as O } from "./date-picker/date-picker.js";
|
|
21
|
-
import { DateRangePicker as U } from "./date-picker/date-range-picker.js";
|
|
22
|
-
import { DateTimePicker as X } from "./date-picker/date-time-picker.js";
|
|
23
|
-
import { MonthPicker as _ } from "./date-picker/month-picker.js";
|
|
24
|
-
import { Presets as rr } from "./date-picker/presets.js";
|
|
25
|
-
import { TimePicker as or } from "./date-picker/time-picker.js";
|
|
26
|
-
import { YearPicker as ar } from "./date-picker/year-picker.js";
|
|
27
|
-
import { useCalendar as ir } from "./date-picker/use-calendar.js";
|
|
9
|
+
import { C as D, D as T, a as g, b as u, M as b, P as h, T as V, Y as y, u as B } from "../_chunks/use-calendar.js";
|
|
10
|
+
import { BoardSkeleton as G, CardSkeleton as L, ListSkeleton as M, TableSkeleton as R } from "./loading-skeleton.js";
|
|
11
|
+
import { DashboardSkeleton as I, ProjectListSkeleton as Y, TaskDetailSkeleton as j } from "./page-skeletons.js";
|
|
12
|
+
import { ErrorDisplay as A } from "./error-boundary.js";
|
|
13
|
+
import { GlobalLoading as q } from "./global-loading.js";
|
|
14
|
+
import { CommandPalette as F } 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
|
+
import { ConfirmDialog as X } from "./confirm-dialog.js";
|
|
19
|
+
import { getInitials as _ } from "./lib/string-utils.js";
|
|
28
20
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
21
|
+
f as AvatarGroup,
|
|
22
|
+
G as BoardSkeleton,
|
|
23
|
+
D as CalendarGrid,
|
|
24
|
+
L as CardSkeleton,
|
|
25
|
+
F as CommandPalette,
|
|
26
|
+
X as ConfirmDialog,
|
|
35
27
|
a as ContentCard,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
28
|
+
I as DashboardSkeleton,
|
|
29
|
+
T as DatePicker,
|
|
30
|
+
g as DateRangePicker,
|
|
31
|
+
u as DateTimePicker,
|
|
32
|
+
l as EmptyState,
|
|
33
|
+
A as ErrorDisplay,
|
|
34
|
+
q as GlobalLoading,
|
|
35
|
+
M as ListSkeleton,
|
|
36
|
+
K as MemberPicker,
|
|
37
|
+
b as MonthPicker,
|
|
46
38
|
o as PageHeader,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
39
|
+
h as Presets,
|
|
40
|
+
k as PriorityIndicator,
|
|
41
|
+
Y as ProjectListSkeleton,
|
|
50
42
|
P as RichTextEditor,
|
|
51
43
|
S as RichTextViewer,
|
|
52
|
-
|
|
53
|
-
|
|
44
|
+
U as ScheduleView,
|
|
45
|
+
O as SimpleTooltip,
|
|
54
46
|
p as StatusBadge,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
47
|
+
R as TableSkeleton,
|
|
48
|
+
j as TaskDetailSkeleton,
|
|
49
|
+
V as TimePicker,
|
|
50
|
+
y as YearPicker,
|
|
51
|
+
i as contentCardVariants,
|
|
52
|
+
_ as getInitials,
|
|
53
|
+
s as statusBadgeVariants,
|
|
54
|
+
B as useCalendar
|
|
63
55
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { c as i } from "../_chunks/utils.js";
|
|
4
4
|
import { Skeleton as s } from "../ui/skeleton.js";
|
|
5
5
|
const b = n.forwardRef(
|
|
6
6
|
function({ className: a }, r) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import * as r from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { c as b } from "../_chunks/utils.js";
|
|
5
5
|
import { Popover as g, PopoverTrigger as v, PopoverContent as y } from "../ui/popover.js";
|
|
6
|
-
import {
|
|
6
|
+
import { A as N, a as w, b as k } from "../_chunks/avatar.js";
|
|
7
7
|
import { IconSearch as C, IconCheck as S } from "@tabler/icons-react";
|
|
8
8
|
import { getInitials as P } from "./lib/string-utils.js";
|
|
9
|
-
const
|
|
9
|
+
const A = r.forwardRef(
|
|
10
10
|
({
|
|
11
11
|
members: c,
|
|
12
12
|
selectedIds: i,
|
|
@@ -76,7 +76,7 @@ const I = r.forwardRef(
|
|
|
76
76
|
] });
|
|
77
77
|
}
|
|
78
78
|
);
|
|
79
|
-
|
|
79
|
+
A.displayName = "MemberPicker";
|
|
80
80
|
export {
|
|
81
|
-
|
|
81
|
+
A as MemberPicker
|
|
82
82
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import * as h from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { c as i } from "../_chunks/utils.js";
|
|
4
4
|
import { IconChevronRight as g } from "@tabler/icons-react";
|
|
5
5
|
const N = h.forwardRef(
|
|
6
|
-
({ title:
|
|
6
|
+
({ title: c, subtitle: s, actions: r, breadcrumbs: e, titleClassName: n, className: p, ...m }, f) => {
|
|
7
7
|
var x;
|
|
8
|
-
const o =
|
|
8
|
+
const o = c ?? ((x = e == null ? void 0 : e[e.length - 1]) == null ? void 0 : x.label) ?? "";
|
|
9
9
|
return /* @__PURE__ */ a(
|
|
10
10
|
"div",
|
|
11
11
|
{
|
|
@@ -49,7 +49,7 @@ const N = h.forwardRef(
|
|
|
49
49
|
{
|
|
50
50
|
className: i(
|
|
51
51
|
"text-ds-2xl text-text-primary",
|
|
52
|
-
|
|
52
|
+
n
|
|
53
53
|
),
|
|
54
54
|
children: o
|
|
55
55
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
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
|
-
import {
|
|
4
|
+
import { c as d } from "../_chunks/utils.js";
|
|
5
5
|
const l = "bg-field", x = o.forwardRef(
|
|
6
6
|
function(i, m) {
|
|
7
7
|
return /* @__PURE__ */ a("div", { ref: m, className: "flex flex-col gap-ds-06", children: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { m as f } from "../_chunks/vendor.js";
|
|
4
|
+
import { c as e } from "../_chunks/utils.js";
|
|
5
5
|
import { IconAlertTriangle as g, IconArrowUp as b, IconMinus as p, IconArrowDown as x } from "@tabler/icons-react";
|
|
6
6
|
const u = {
|
|
7
7
|
LOW: {
|
|
@@ -42,8 +42,8 @@ const u = {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
), w = d.forwardRef(
|
|
45
|
-
({ priority:
|
|
46
|
-
const
|
|
45
|
+
({ priority: a, display: t, className: i, ...c }, n) => {
|
|
46
|
+
const l = a.toUpperCase(), o = u[l], s = o.icon;
|
|
47
47
|
return t === "compact" ? /* @__PURE__ */ r(
|
|
48
48
|
"div",
|
|
49
49
|
{
|
|
@@ -55,7 +55,7 @@ const u = {
|
|
|
55
55
|
),
|
|
56
56
|
title: o.label,
|
|
57
57
|
...c,
|
|
58
|
-
children: /* @__PURE__ */ r(
|
|
58
|
+
children: /* @__PURE__ */ r(s, { className: e("h-ico-sm w-ico-sm", o.color), stroke: 2 })
|
|
59
59
|
}
|
|
60
60
|
) : /* @__PURE__ */ m(
|
|
61
61
|
"div",
|
|
@@ -71,7 +71,7 @@ const u = {
|
|
|
71
71
|
"inline-flex items-center justify-center rounded-ds-md p-ds-01",
|
|
72
72
|
o.bgColor
|
|
73
73
|
),
|
|
74
|
-
children: /* @__PURE__ */ r(
|
|
74
|
+
children: /* @__PURE__ */ r(s, { className: e("h-ico-sm w-ico-sm", o.color), stroke: 2 })
|
|
75
75
|
}
|
|
76
76
|
),
|
|
77
77
|
/* @__PURE__ */ r("span", { className: "text-ds-sm text-text-secondary", children: o.label })
|