@devalok/shilp-sutra 0.18.0 → 0.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/motion-provider.js +24 -0
- package/dist/_chunks/primitives.js +101 -101
- package/dist/_chunks/tree-view.js +12 -12
- package/dist/_chunks/use-calendar.js +1 -1
- package/dist/_chunks/vendor-utils.js +2 -2
- package/dist/composed/activity-feed.js +21 -21
- package/dist/composed/avatar-group.js +25 -25
- package/dist/composed/command-palette.js +3 -3
- package/dist/composed/confirm-dialog.js +1 -1
- package/dist/composed/content-card.js +1 -1
- package/dist/composed/empty-state.js +2 -2
- package/dist/composed/error-boundary.js +2 -2
- package/dist/composed/global-loading.js +10 -10
- package/dist/composed/lib/string-utils.d.ts +0 -1
- package/dist/composed/lib/string-utils.js +0 -1
- package/dist/composed/loading-skeleton.js +1 -1
- package/dist/composed/member-picker.js +6 -6
- package/dist/composed/page-header.js +1 -1
- package/dist/composed/page-skeletons.js +1 -1
- package/dist/composed/priority-indicator.js +6 -6
- package/dist/composed/rich-text-editor.js +1 -1
- package/dist/composed/schedule-view.js +15 -15
- package/dist/composed/simple-tooltip.js +8 -8
- package/dist/composed/status-badge.js +12 -12
- package/dist/motion/index.d.ts +1 -1
- package/dist/motion/index.d.ts.map +1 -1
- package/dist/motion/index.js +8 -6
- package/dist/motion/primitives-index.js +184 -8
- package/dist/shell/app-command-palette.js +1 -1
- package/dist/shell/bottom-navbar.js +3 -3
- package/dist/shell/notification-center.js +35 -35
- package/dist/shell/notification-preferences.js +29 -28
- package/dist/shell/sidebar.js +56 -56
- package/dist/shell/top-bar.js +25 -25
- package/dist/ui/accordion.js +11 -11
- package/dist/ui/alert-dialog.js +41 -41
- package/dist/ui/alert.js +10 -10
- package/dist/ui/aspect-ratio.js +5 -5
- package/dist/ui/autocomplete.js +15 -15
- package/dist/ui/avatar.js +4 -4
- package/dist/ui/badge.js +11 -11
- package/dist/ui/banner.js +3 -3
- package/dist/ui/breadcrumb.js +8 -8
- package/dist/ui/button-group.js +4 -4
- package/dist/ui/button.js +25 -25
- package/dist/ui/card.js +5 -5
- package/dist/ui/charts/index.js +4 -4
- package/dist/ui/checkbox.js +4 -4
- package/dist/ui/chip.js +14 -14
- package/dist/ui/code.js +1 -1
- package/dist/ui/collapsible.js +7 -7
- package/dist/ui/color-input.js +1 -1
- package/dist/ui/combobox.js +5 -5
- package/dist/ui/container.js +4 -4
- package/dist/ui/context-menu.js +4 -4
- package/dist/ui/data-table-toolbar.js +18 -18
- package/dist/ui/data-table.js +55 -55
- package/dist/ui/dialog.js +3 -3
- package/dist/ui/dropdown-menu.js +3 -3
- package/dist/ui/file-upload.js +10 -10
- package/dist/ui/form.js +1 -1
- package/dist/ui/hover-card.js +12 -12
- package/dist/ui/icon-button.js +9 -9
- package/dist/ui/index.js +322 -516
- package/dist/ui/input-otp.js +4 -4
- package/dist/ui/input.js +9 -9
- package/dist/ui/label.js +9 -9
- package/dist/ui/lib/date-utils.d.ts +0 -1
- package/dist/{_chunks → ui/lib}/date-utils.js +1 -2
- package/dist/{_chunks/motion2.js → ui/lib/motion.js} +13 -14
- package/dist/ui/lib/use-ripple.d.ts.map +1 -1
- package/dist/ui/lib/utils.js +1 -1
- package/dist/ui/link.js +1 -1
- package/dist/ui/menubar.js +66 -66
- package/dist/ui/navigation-menu.js +4 -4
- package/dist/ui/number-input.js +9 -9
- package/dist/ui/pagination.js +1 -1
- package/dist/ui/popover.js +18 -18
- package/dist/ui/progress.js +4 -4
- package/dist/ui/radio.js +11 -11
- package/dist/ui/search-input.js +2 -2
- package/dist/ui/segmented-control.d.ts +2 -0
- package/dist/ui/segmented-control.d.ts.map +1 -1
- package/dist/ui/segmented-control.js +59 -55
- package/dist/ui/select.js +19 -19
- package/dist/ui/separator.js +5 -5
- package/dist/ui/sheet.js +10 -10
- package/dist/ui/sidebar.js +574 -38
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/slider.js +9 -9
- package/dist/ui/spinner.js +2 -2
- package/dist/ui/stack.js +1 -1
- package/dist/ui/stat-card.js +35 -35
- package/dist/ui/stepper.d.ts +1 -3
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/stepper.js +74 -74
- package/dist/ui/switch.js +7 -7
- package/dist/ui/table.js +28 -28
- package/dist/ui/tabs.js +10 -10
- package/dist/ui/text.js +1 -1
- package/dist/ui/textarea.js +10 -10
- package/dist/ui/toast.js +12 -12
- package/dist/ui/toaster.js +11 -11
- package/dist/ui/toggle-group.js +2 -2
- package/dist/ui/toggle.js +8 -8
- package/dist/ui/tooltip.js +21 -21
- package/dist/ui/visually-hidden.js +3 -3
- package/llms-full.txt +3384 -1591
- package/llms.txt +4 -4
- package/package.json +25 -2
- package/dist/_chunks/avatar.js +0 -52
- package/dist/_chunks/button-group.js +0 -27
- package/dist/_chunks/button.js +0 -113
- package/dist/_chunks/card.js +0 -50
- package/dist/_chunks/checkbox.js +0 -16
- package/dist/_chunks/form.js +0 -27
- package/dist/_chunks/sidebar.js +0 -606
- package/dist/_chunks/spinner.js +0 -64
- package/dist/_chunks/tooltip.js +0 -30
- package/dist/_chunks/utils.js +0 -17
- package/dist/motion/motion-provider.js +0 -24
- package/dist/motion/primitives.js +0 -187
- /package/dist/_chunks/{motion.js → framer.js} +0 -0
package/dist/ui/textarea.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as c } from "react/jsx-runtime";
|
|
3
3
|
import * as l from "react";
|
|
4
|
-
import { ag as
|
|
5
|
-
import {
|
|
6
|
-
import { m } from "
|
|
7
|
-
import {
|
|
8
|
-
import { m as x } from "../_chunks/
|
|
9
|
-
const p =
|
|
4
|
+
import { ag as f } from "../_chunks/vendor-utils.js";
|
|
5
|
+
import { cn as u } from "./lib/utils.js";
|
|
6
|
+
import { motionProps as m } from "./lib/motion.js";
|
|
7
|
+
import { useFormField as b } from "./form.js";
|
|
8
|
+
import { m as x } from "../_chunks/framer.js";
|
|
9
|
+
const p = f(
|
|
10
10
|
[
|
|
11
11
|
"flex w-full font-sans resize-y",
|
|
12
12
|
"bg-surface-3 text-surface-fg",
|
|
@@ -29,20 +29,20 @@ const p = u(
|
|
|
29
29
|
defaultVariants: { size: "md" }
|
|
30
30
|
}
|
|
31
31
|
), g = l.forwardRef(
|
|
32
|
-
({ className:
|
|
33
|
-
const r = b(), e =
|
|
32
|
+
({ className: i, state: a, size: o, ...s }, t) => {
|
|
33
|
+
const r = b(), e = a ?? (r.state === "helper" ? void 0 : r.state), d = s["aria-describedby"] ?? r.helperTextId, n = s["aria-required"] ?? r.required;
|
|
34
34
|
return /* @__PURE__ */ c(
|
|
35
35
|
x.textarea,
|
|
36
36
|
{
|
|
37
37
|
"aria-invalid": e === "error" || void 0,
|
|
38
38
|
"aria-describedby": d,
|
|
39
39
|
"aria-required": n || void 0,
|
|
40
|
-
className:
|
|
40
|
+
className: u(
|
|
41
41
|
p({ size: o }),
|
|
42
42
|
e === "error" && "border-error-7 focus-visible:ring-error-7",
|
|
43
43
|
e === "warning" && "border-warning-7 focus-visible:ring-warning-7",
|
|
44
44
|
e === "success" && "border-success-7 focus-visible:ring-success-7",
|
|
45
|
-
|
|
45
|
+
i
|
|
46
46
|
),
|
|
47
47
|
ref: t,
|
|
48
48
|
...m(s)
|
package/dist/ui/toast.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { jsx as s, jsxs as d } from "react/jsx-runtime";
|
|
3
3
|
import * as g from "react";
|
|
4
4
|
import { t as f } from "../_chunks/vendor-client.js";
|
|
5
|
-
import { IconInfoCircle as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { IconInfoCircle as S, IconAlertTriangle as M, IconCircleX as O, IconCircleCheck as P, IconCheck as B, IconAlertCircle as U, IconPhoto as j, IconFile as L, IconRefresh as _, IconX as z, IconUpload as G } from "@tabler/icons-react";
|
|
6
|
+
import { cn as b } from "./lib/utils.js";
|
|
7
|
+
import { springs as p, tweens as y } from "./lib/motion.js";
|
|
8
|
+
import { Spinner as E } from "./spinner.js";
|
|
9
9
|
import { Progress as X } from "./progress.js";
|
|
10
|
-
import { m as o, A as T } from "../_chunks/
|
|
10
|
+
import { m as o, A as T } from "../_chunks/framer.js";
|
|
11
11
|
const k = 5e3, H = 8e3, $ = 3e3, F = {
|
|
12
12
|
message: {
|
|
13
13
|
accentClass: "",
|
|
@@ -36,7 +36,7 @@ const k = 5e3, H = 8e3, $ = 3e3, F = {
|
|
|
36
36
|
info: {
|
|
37
37
|
accentClass: "bg-info-9",
|
|
38
38
|
iconClass: "text-info-11",
|
|
39
|
-
icon:
|
|
39
|
+
icon: S,
|
|
40
40
|
timerBarClass: "bg-info-9"
|
|
41
41
|
},
|
|
42
42
|
loading: {
|
|
@@ -46,7 +46,7 @@ const k = 5e3, H = 8e3, $ = 3e3, F = {
|
|
|
46
46
|
timerBarClass: "bg-accent-9"
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
-
function
|
|
49
|
+
function A({
|
|
50
50
|
duration: e,
|
|
51
51
|
type: t,
|
|
52
52
|
paused: a
|
|
@@ -81,8 +81,8 @@ function I({
|
|
|
81
81
|
return g.useEffect(() => {
|
|
82
82
|
if (l == null || i === 1 / 0) return;
|
|
83
83
|
if (u) {
|
|
84
|
-
const
|
|
85
|
-
N.current = Math.max(0, N.current -
|
|
84
|
+
const D = Date.now() - c.current;
|
|
85
|
+
N.current = Math.max(0, N.current - D);
|
|
86
86
|
return;
|
|
87
87
|
}
|
|
88
88
|
c.current = Date.now();
|
|
@@ -165,7 +165,7 @@ function I({
|
|
|
165
165
|
] })
|
|
166
166
|
] })
|
|
167
167
|
] }),
|
|
168
|
-
w && e !== "loading" && /* @__PURE__ */ s(
|
|
168
|
+
w && e !== "loading" && /* @__PURE__ */ s(A, { duration: i, type: e, paused: u })
|
|
169
169
|
]
|
|
170
170
|
}
|
|
171
171
|
);
|
|
@@ -417,7 +417,7 @@ function Q({
|
|
|
417
417
|
] })
|
|
418
418
|
] }),
|
|
419
419
|
u && /* @__PURE__ */ s(
|
|
420
|
-
|
|
420
|
+
A,
|
|
421
421
|
{
|
|
422
422
|
duration: $,
|
|
423
423
|
type: N,
|
|
@@ -536,7 +536,7 @@ m.dismiss = (e) => {
|
|
|
536
536
|
e !== void 0 ? f.dismiss(e) : f.dismiss();
|
|
537
537
|
};
|
|
538
538
|
export {
|
|
539
|
-
|
|
539
|
+
A as TimerBar,
|
|
540
540
|
I as ToastContent,
|
|
541
541
|
J as UploadFileRow,
|
|
542
542
|
Q as UploadToastContent,
|
package/dist/ui/toaster.js
CHANGED
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import * as l from "react";
|
|
4
4
|
import { T as f } from "../_chunks/vendor-client.js";
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
5
|
+
import { cn as p } from "./lib/utils.js";
|
|
6
|
+
const c = l.forwardRef(
|
|
7
7
|
({
|
|
8
8
|
position: o = "bottom-right",
|
|
9
|
-
closeButton:
|
|
10
|
-
duration:
|
|
11
|
-
hotkey:
|
|
9
|
+
closeButton: r = !1,
|
|
10
|
+
duration: s = 5e3,
|
|
11
|
+
hotkey: a = ["altKey", "KeyT"],
|
|
12
12
|
visibleToasts: e = 3,
|
|
13
13
|
className: m
|
|
14
|
-
}, i) => /* @__PURE__ */ t("div", { ref: i, className:
|
|
14
|
+
}, i) => /* @__PURE__ */ t("div", { ref: i, className: p("z-toast", m), children: /* @__PURE__ */ t(
|
|
15
15
|
f,
|
|
16
16
|
{
|
|
17
17
|
position: o,
|
|
18
|
-
closeButton:
|
|
19
|
-
duration:
|
|
20
|
-
hotkey:
|
|
18
|
+
closeButton: r,
|
|
19
|
+
duration: s,
|
|
20
|
+
hotkey: a,
|
|
21
21
|
visibleToasts: e,
|
|
22
22
|
toastOptions: {
|
|
23
23
|
unstyled: !0,
|
|
@@ -28,7 +28,7 @@ const p = l.forwardRef(
|
|
|
28
28
|
}
|
|
29
29
|
) })
|
|
30
30
|
);
|
|
31
|
-
|
|
31
|
+
c.displayName = "Toaster";
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
c as Toaster
|
|
34
34
|
};
|
package/dist/ui/toggle-group.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
3
|
import * as e from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { c } from "
|
|
4
|
+
import { aI as i, aJ as l } from "../_chunks/primitives.js";
|
|
5
|
+
import { cn as c } from "./lib/utils.js";
|
|
6
6
|
import { toggleVariants as f } from "./toggle.js";
|
|
7
7
|
const p = e.createContext({
|
|
8
8
|
size: "md",
|
package/dist/ui/toggle.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as i } from "react/jsx-runtime";
|
|
3
3
|
import * as n from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { aH as t } from "../_chunks/primitives.js";
|
|
5
5
|
import { ag as d } from "../_chunks/vendor-utils.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { m as l } from "../_chunks/
|
|
9
|
-
const p = l.create(
|
|
6
|
+
import { springs as m, motionProps as c } from "./lib/motion.js";
|
|
7
|
+
import { cn as f } from "./lib/utils.js";
|
|
8
|
+
import { m as l } from "../_chunks/framer.js";
|
|
9
|
+
const p = l.create(t), g = d(
|
|
10
10
|
"inline-flex items-center justify-center gap-ds-03 rounded-ds-md font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled data-[state=on]:bg-accent-2 data-[state=on]:text-accent-11",
|
|
11
11
|
{
|
|
12
12
|
variants: {
|
|
@@ -25,17 +25,17 @@ const p = l.create(s), g = d(
|
|
|
25
25
|
size: "md"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
), u = n.forwardRef(({ className:
|
|
28
|
+
), u = n.forwardRef(({ className: e, variant: s, size: a, ...o }, r) => /* @__PURE__ */ i(
|
|
29
29
|
p,
|
|
30
30
|
{
|
|
31
31
|
ref: r,
|
|
32
32
|
whileTap: { scale: 0.95 },
|
|
33
33
|
transition: m.snappy,
|
|
34
|
-
className: f(g({ variant:
|
|
34
|
+
className: f(g({ variant: s, size: a }), e),
|
|
35
35
|
...c(o)
|
|
36
36
|
}
|
|
37
37
|
));
|
|
38
|
-
u.displayName =
|
|
38
|
+
u.displayName = t.displayName;
|
|
39
39
|
export {
|
|
40
40
|
u as Toggle,
|
|
41
41
|
g as toggleVariants
|
package/dist/ui/tooltip.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import * as s from "react";
|
|
4
|
-
import { aK as x, aL as p,
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { A as
|
|
8
|
-
const
|
|
9
|
-
open:
|
|
10
|
-
defaultOpen:
|
|
4
|
+
import { aK as x, aL as p, aM as y, aN as T, aO as v } from "../_chunks/primitives.js";
|
|
5
|
+
import { cn as g } from "./lib/utils.js";
|
|
6
|
+
import { tweens as h, springs as C } from "./lib/motion.js";
|
|
7
|
+
import { A as N, m as b } from "../_chunks/framer.js";
|
|
8
|
+
const k = y, f = s.createContext({ open: !1 }), w = ({
|
|
9
|
+
open: i,
|
|
10
|
+
defaultOpen: a,
|
|
11
11
|
onOpenChange: t,
|
|
12
12
|
...r
|
|
13
13
|
}) => {
|
|
14
|
-
const [n, c] = s.useState(
|
|
14
|
+
const [n, c] = s.useState(a ?? !1), o = i !== void 0, l = o ? i : n, m = s.useCallback(
|
|
15
15
|
(d) => {
|
|
16
16
|
o || c(d), t == null || t(d);
|
|
17
17
|
},
|
|
@@ -19,25 +19,25 @@ const z = y, f = s.createContext({ open: !1 }), N = ({
|
|
|
19
19
|
), u = s.useMemo(() => ({ open: l }), [l]);
|
|
20
20
|
return /* @__PURE__ */ e(f.Provider, { value: u, children: /* @__PURE__ */ e(v, { open: l, onOpenChange: m, ...r }) });
|
|
21
21
|
};
|
|
22
|
-
|
|
23
|
-
const
|
|
22
|
+
w.displayName = "Tooltip";
|
|
23
|
+
const z = T, M = {
|
|
24
24
|
top: { y: 4 },
|
|
25
25
|
bottom: { y: -4 },
|
|
26
26
|
left: { x: 4 },
|
|
27
27
|
right: { x: -4 }
|
|
28
|
-
},
|
|
29
|
-
const { open: c } = s.useContext(f), o =
|
|
30
|
-
return /* @__PURE__ */ e(
|
|
28
|
+
}, P = s.forwardRef(({ className: i, sideOffset: a = 4, side: t = "top", ...r }, n) => {
|
|
29
|
+
const { open: c } = s.useContext(f), o = M[t] ?? {};
|
|
30
|
+
return /* @__PURE__ */ e(N, { children: c && /* @__PURE__ */ e(x, { forceMount: !0, children: /* @__PURE__ */ e(
|
|
31
31
|
p,
|
|
32
32
|
{
|
|
33
33
|
ref: n,
|
|
34
34
|
forceMount: !0,
|
|
35
35
|
asChild: !0,
|
|
36
|
-
sideOffset:
|
|
36
|
+
sideOffset: a,
|
|
37
37
|
side: t,
|
|
38
38
|
...r,
|
|
39
39
|
children: /* @__PURE__ */ e(
|
|
40
|
-
|
|
40
|
+
b.div,
|
|
41
41
|
{
|
|
42
42
|
initial: { opacity: 0, scale: 0.95, ...o },
|
|
43
43
|
animate: { opacity: 1, scale: 1, x: 0, y: 0 },
|
|
@@ -45,17 +45,17 @@ const H = T, P = {
|
|
|
45
45
|
transition: { ...C.snappy, opacity: h.fade },
|
|
46
46
|
className: g(
|
|
47
47
|
"z-tooltip overflow-hidden rounded-ds-md bg-surface-fg px-ds-04 py-ds-02b text-ds-sm text-accent-fg shadow-02",
|
|
48
|
-
|
|
48
|
+
i
|
|
49
49
|
)
|
|
50
50
|
}
|
|
51
51
|
)
|
|
52
52
|
}
|
|
53
53
|
) }) });
|
|
54
54
|
});
|
|
55
|
-
|
|
55
|
+
P.displayName = p.displayName;
|
|
56
56
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
w as Tooltip,
|
|
58
|
+
P as TooltipContent,
|
|
59
|
+
k as TooltipProvider,
|
|
60
|
+
z as TooltipTrigger
|
|
61
61
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import * as e from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { cn as i } from "./lib/utils.js";
|
|
4
4
|
const m = e.forwardRef(
|
|
5
|
-
({ className: r, ...a },
|
|
5
|
+
({ className: r, ...a }, o) => /* @__PURE__ */ s("span", { ref: o, className: i("sr-only", r), ...a })
|
|
6
6
|
);
|
|
7
7
|
m.displayName = "VisuallyHidden";
|
|
8
8
|
export {
|