@devalok/shilp-sutra 0.18.0 → 0.18.2
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/docs/components/_header.md +83 -0
- package/docs/components/composed/activity-feed.md +43 -0
- package/docs/components/composed/avatar-group.md +32 -0
- package/docs/components/composed/command-palette.md +40 -0
- package/docs/components/composed/confirm-dialog.md +46 -0
- package/docs/components/composed/content-card.md +36 -0
- package/docs/components/composed/date-picker.md +130 -0
- package/docs/components/composed/empty-state.md +53 -0
- package/docs/components/composed/error-boundary.md +29 -0
- package/docs/components/composed/global-loading.md +27 -0
- package/docs/components/composed/loading-skeleton.md +51 -0
- package/docs/components/composed/member-picker.md +35 -0
- package/docs/components/composed/page-header.md +41 -0
- package/docs/components/composed/page-skeletons.md +32 -0
- package/docs/components/composed/priority-indicator.md +32 -0
- package/docs/components/composed/rich-text-editor.md +71 -0
- package/docs/components/composed/schedule-view.md +39 -0
- package/docs/components/composed/simple-tooltip.md +33 -0
- package/docs/components/composed/status-badge.md +41 -0
- package/docs/components/shell/app-command-palette.md +44 -0
- package/docs/components/shell/bottom-navbar.md +48 -0
- package/docs/components/shell/command-registry.md +48 -0
- package/docs/components/shell/link-context.md +41 -0
- package/docs/components/shell/notification-center.md +63 -0
- package/docs/components/shell/notification-preferences.md +42 -0
- package/docs/components/shell/sidebar.md +88 -0
- package/docs/components/shell/top-bar.md +63 -0
- package/docs/components/ui/accordion.md +48 -0
- package/docs/components/ui/alert-dialog.md +58 -0
- package/docs/components/ui/alert.md +43 -0
- package/docs/components/ui/aspect-ratio.md +25 -0
- package/docs/components/ui/autocomplete.md +48 -0
- package/docs/components/ui/avatar.md +34 -0
- package/docs/components/ui/badge.md +48 -0
- package/docs/components/ui/banner.md +35 -0
- package/docs/components/ui/breadcrumb.md +37 -0
- package/docs/components/ui/button-group.md +32 -0
- package/docs/components/ui/button.md +55 -0
- package/docs/components/ui/card.md +48 -0
- package/docs/components/ui/charts.md +43 -0
- package/docs/components/ui/checkbox.md +31 -0
- package/docs/components/ui/chip.md +43 -0
- package/docs/components/ui/code.md +28 -0
- package/docs/components/ui/collapsible.md +40 -0
- package/docs/components/ui/color-input.md +37 -0
- package/docs/components/ui/combobox.md +54 -0
- package/docs/components/ui/container.md +26 -0
- package/docs/components/ui/context-menu.md +43 -0
- package/docs/components/ui/data-table-toolbar.md +44 -0
- package/docs/components/ui/data-table.md +91 -0
- package/docs/components/ui/dialog.md +51 -0
- package/docs/components/ui/dropdown-menu.md +45 -0
- package/docs/components/ui/file-upload.md +41 -0
- package/docs/components/ui/form.md +51 -0
- package/docs/components/ui/hover-card.md +32 -0
- package/docs/components/ui/icon-button.md +33 -0
- package/docs/components/ui/input-otp.md +44 -0
- package/docs/components/ui/input.md +48 -0
- package/docs/components/ui/label.md +25 -0
- package/docs/components/ui/link.md +29 -0
- package/docs/components/ui/menubar.md +44 -0
- package/docs/components/ui/navigation-menu.md +46 -0
- package/docs/components/ui/number-input.md +44 -0
- package/docs/components/ui/pagination.md +48 -0
- package/docs/components/ui/popover.md +30 -0
- package/docs/components/ui/progress.md +29 -0
- package/docs/components/ui/radio.md +34 -0
- package/docs/components/ui/search-input.md +43 -0
- package/docs/components/ui/segmented-control.md +50 -0
- package/docs/components/ui/select.md +49 -0
- package/docs/components/ui/separator.md +29 -0
- package/docs/components/ui/sheet.md +47 -0
- package/docs/components/ui/sidebar.md +72 -0
- package/docs/components/ui/skeleton.md +77 -0
- package/docs/components/ui/slider.md +29 -0
- package/docs/components/ui/spinner.md +50 -0
- package/docs/components/ui/stack.md +39 -0
- package/docs/components/ui/stat-card.md +61 -0
- package/docs/components/ui/stepper.md +49 -0
- package/docs/components/ui/switch.md +34 -0
- package/docs/components/ui/table.md +47 -0
- package/docs/components/ui/tabs.md +56 -0
- package/docs/components/ui/text.md +37 -0
- package/docs/components/ui/textarea.md +39 -0
- package/docs/components/ui/toast.md +65 -0
- package/docs/components/ui/toaster.md +47 -0
- package/docs/components/ui/toggle-group.md +43 -0
- package/docs/components/ui/toggle.md +37 -0
- package/docs/components/ui/tooltip.md +33 -0
- package/docs/components/ui/tree-view.md +65 -0
- package/docs/components/ui/visually-hidden.md +21 -0
- package/llms-full.txt +3384 -1591
- package/llms.txt +4 -4
- package/package.json +28 -3
- 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/input-otp.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx as r, jsxs as p } from "react/jsx-runtime";
|
|
|
3
3
|
import * as a from "react";
|
|
4
4
|
import { OTPInput as m, OTPInputContext as u } from "input-otp";
|
|
5
5
|
import { IconMinus as f } from "@tabler/icons-react";
|
|
6
|
-
import {
|
|
6
|
+
import { cn as o } from "./lib/utils.js";
|
|
7
7
|
const x = a.forwardRef(({ className: e, containerClassName: t, ...s }, n) => /* @__PURE__ */ r(
|
|
8
8
|
m,
|
|
9
9
|
{
|
|
@@ -20,20 +20,20 @@ x.displayName = "InputOTP";
|
|
|
20
20
|
const b = a.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ r("div", { ref: s, className: o("flex items-center", e), ...t }));
|
|
21
21
|
b.displayName = "InputOTPGroup";
|
|
22
22
|
const I = a.forwardRef(({ index: e, className: t, ...s }, n) => {
|
|
23
|
-
const i = a.useContext(u), { char: d, hasFakeCaret:
|
|
23
|
+
const i = a.useContext(u), { char: d, hasFakeCaret: l, isActive: c } = i.slots[e];
|
|
24
24
|
return /* @__PURE__ */ p(
|
|
25
25
|
"div",
|
|
26
26
|
{
|
|
27
27
|
ref: n,
|
|
28
28
|
className: o(
|
|
29
29
|
"relative flex h-ds-sm-plus w-ds-sm-plus items-center justify-center border-y border-r border-surface-border-strong text-ds-md shadow-01 transition-[box-shadow] first:rounded-l-ds-md first:border-l last:rounded-r-ds-md",
|
|
30
|
-
|
|
30
|
+
c && "z-raised ring-2 ring-accent-9",
|
|
31
31
|
t
|
|
32
32
|
),
|
|
33
33
|
...s,
|
|
34
34
|
children: [
|
|
35
35
|
d,
|
|
36
|
-
|
|
36
|
+
l && /* @__PURE__ */ r("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ r("div", { className: "animate-caret-blink h-[16px] w-px bg-surface-fg duration-slow-02" }) })
|
|
37
37
|
]
|
|
38
38
|
}
|
|
39
39
|
);
|
package/dist/ui/input.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsx as a, jsxs as b } from "react/jsx-runtime";
|
|
3
3
|
import * as p from "react";
|
|
4
4
|
import { ag as g } from "../_chunks/vendor-utils.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { m as w } from "../_chunks/
|
|
5
|
+
import { cn as v } from "./lib/utils.js";
|
|
6
|
+
import { motionProps as x } from "./lib/motion.js";
|
|
7
|
+
import { useFormField as h } from "./form.js";
|
|
8
|
+
import { m as w } from "../_chunks/framer.js";
|
|
9
9
|
const y = g(
|
|
10
10
|
[
|
|
11
11
|
"flex w-full font-sans",
|
|
@@ -29,15 +29,15 @@ const y = g(
|
|
|
29
29
|
defaultVariants: { size: "md" }
|
|
30
30
|
}
|
|
31
31
|
), N = p.forwardRef(
|
|
32
|
-
({ className: d, type: n, state: c, size: l, startIcon: e, endIcon:
|
|
33
|
-
const
|
|
32
|
+
({ className: d, type: n, state: c, size: l, startIcon: e, endIcon: r, ...t }, u) => {
|
|
33
|
+
const s = h(), i = c ?? (s.state === "helper" ? void 0 : s.state), f = t["aria-describedby"] ?? s.helperTextId, m = t["aria-required"] ?? s.required, o = /* @__PURE__ */ a(
|
|
34
34
|
w.input,
|
|
35
35
|
{
|
|
36
36
|
type: n,
|
|
37
37
|
className: v(
|
|
38
38
|
y({ size: l }),
|
|
39
39
|
e && "pl-ds-07",
|
|
40
|
-
|
|
40
|
+
r && "pr-ds-07",
|
|
41
41
|
i === "error" && "border-error-7 focus-visible:ring-error-7",
|
|
42
42
|
i === "warning" && "border-warning-7 focus-visible:ring-warning-7",
|
|
43
43
|
i === "success" && "border-success-7 focus-visible:ring-success-7",
|
|
@@ -50,10 +50,10 @@ const y = g(
|
|
|
50
50
|
...x(t)
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
|
-
return !e && !
|
|
53
|
+
return !e && !r ? o : /* @__PURE__ */ b("div", { className: "relative flex items-center w-full", children: [
|
|
54
54
|
e && /* @__PURE__ */ a("span", { className: "absolute left-ds-03 flex items-center text-surface-fg-muted pointer-events-none [&>svg]:h-ico-sm [&>svg]:w-ico-sm", children: e }),
|
|
55
55
|
o,
|
|
56
|
-
|
|
56
|
+
r && /* @__PURE__ */ a("span", { className: "absolute right-ds-03 flex items-center text-surface-fg-muted pointer-events-none [&>svg]:h-ico-sm [&>svg]:w-ico-sm", children: r })
|
|
57
57
|
] });
|
|
58
58
|
}
|
|
59
59
|
);
|
package/dist/ui/label.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as d, jsx as i } from "react/jsx-runtime";
|
|
3
3
|
import * as m from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
7
|
-
|
|
4
|
+
import { v as e } from "../_chunks/primitives.js";
|
|
5
|
+
import { cn as n } from "./lib/utils.js";
|
|
6
|
+
const l = m.forwardRef(({ className: a, required: r, children: s, ...o }, t) => /* @__PURE__ */ d(
|
|
7
|
+
e,
|
|
8
8
|
{
|
|
9
9
|
ref: t,
|
|
10
10
|
className: n(
|
|
11
11
|
"font-sans text-ds-md font-medium text-surface-fg leading-none peer-disabled:opacity-action-disabled",
|
|
12
|
-
|
|
12
|
+
a
|
|
13
13
|
),
|
|
14
14
|
...o,
|
|
15
15
|
children: [
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
s,
|
|
17
|
+
r && /* @__PURE__ */ i("span", { className: "text-error-11 ml-ds-01", "aria-hidden": "true", children: "*" })
|
|
18
18
|
]
|
|
19
19
|
}
|
|
20
20
|
));
|
|
21
|
-
|
|
21
|
+
l.displayName = e.displayName;
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
l as Label
|
|
24
24
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
function a(t) {
|
|
3
2
|
const n = typeof t == "string" ? new Date(t) : t, f = (/* @__PURE__ */ new Date()).getTime() - n.getTime(), o = Math.floor(f / 6e4);
|
|
4
3
|
if (o < 1) return "Just now";
|
|
@@ -9,5 +8,5 @@ function a(t) {
|
|
|
9
8
|
return r < 7 ? `${r}d ago` : n.toLocaleDateString("en-IN", { month: "short", day: "numeric" });
|
|
10
9
|
}
|
|
11
10
|
export {
|
|
12
|
-
a as
|
|
11
|
+
a as formatRelativeTime
|
|
13
12
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
const n = {
|
|
1
|
+
const s = {
|
|
3
2
|
/** Micro-interactions: buttons, hover, form inputs */
|
|
4
3
|
snappy: { type: "spring", stiffness: 500, damping: 30, mass: 0.5 },
|
|
5
4
|
/** Dialogs, sheets, panels, navigation */
|
|
@@ -14,22 +13,22 @@ const n = {
|
|
|
14
13
|
/** Hover color, bg, border transitions */
|
|
15
14
|
colorShift: { type: "tween", duration: 0.1, ease: "easeOut" }
|
|
16
15
|
};
|
|
17
|
-
function e(
|
|
16
|
+
function e(n = 0.04) {
|
|
18
17
|
return {
|
|
19
|
-
visible: { transition: { staggerChildren:
|
|
20
|
-
hidden: { transition: { staggerChildren:
|
|
18
|
+
visible: { transition: { staggerChildren: n } },
|
|
19
|
+
hidden: { transition: { staggerChildren: n } }
|
|
21
20
|
};
|
|
22
21
|
}
|
|
23
|
-
function i(
|
|
24
|
-
return { ...
|
|
22
|
+
function i(n) {
|
|
23
|
+
return { ...n, duration: 0 };
|
|
25
24
|
}
|
|
26
|
-
function
|
|
27
|
-
return
|
|
25
|
+
function r(n) {
|
|
26
|
+
return n;
|
|
28
27
|
}
|
|
29
28
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
t,
|
|
34
|
-
i as
|
|
29
|
+
r as motionProps,
|
|
30
|
+
s as springs,
|
|
31
|
+
e as stagger,
|
|
32
|
+
t as tweens,
|
|
33
|
+
i as withReducedMotion
|
|
35
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-ripple.d.ts","sourceRoot":"","sources":["../../../src/ui/lib/use-ripple.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,KAAK,UAAU,EAAE,MAAM,OAAO,CAAA;AAEjF,UAAU,MAAM;IACd,EAAE,EAAE,MAAM,CAAA;IACV,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,IAAI,EAAE,MAAM,CAAA;CACb;AAED,wBAAgB,SAAS,CAAC,QAAQ,SAAM;;sBAQD,UAAU,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"use-ripple.d.ts","sourceRoot":"","sources":["../../../src/ui/lib/use-ripple.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,KAAK,UAAU,EAAE,MAAM,OAAO,CAAA;AAEjF,UAAU,MAAM;IACd,EAAE,EAAE,MAAM,CAAA;IACV,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,IAAI,EAAE,MAAM,CAAA;CACb;AAED,wBAAgB,SAAS,CAAC,QAAQ,SAAM;;sBAQD,UAAU,CAAC,WAAW,CAAC;EAgB7D"}
|
package/dist/ui/lib/utils.js
CHANGED
package/dist/ui/link.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import { S as s } from "../_chunks/primitives.js";
|
|
4
4
|
import * as a from "react";
|
|
5
|
-
import { c } from "
|
|
5
|
+
import { cn as c } from "./lib/utils.js";
|
|
6
6
|
const f = a.forwardRef(
|
|
7
7
|
({ className: o, inline: e = !0, asChild: n = !1, ...t }, i) => /* @__PURE__ */ r(
|
|
8
8
|
n ? s : "a",
|
package/dist/ui/menubar.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
|
3
3
|
import * as o from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { aW as p, aX as f, aY as b, aZ as y, a_ as g, a$ as N, b0 as x, b1 as h, b2 as v, b3 as M, b4 as w, b5 as R, b6 as j, b7 as G, b8 as P, b9 as T } from "../_chunks/primitives.js";
|
|
5
5
|
import { IconChevronRight as z, IconCheck as A, IconCircle as L } from "@tabler/icons-react";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { A as U, m as I } from "../_chunks/
|
|
9
|
-
const k = o.createContext(!1),
|
|
10
|
-
|
|
11
|
-
const
|
|
6
|
+
import { cn as n } from "./lib/utils.js";
|
|
7
|
+
import { tweens as C, springs as S } from "./lib/motion.js";
|
|
8
|
+
import { A as U, m as I } from "../_chunks/framer.js";
|
|
9
|
+
const k = o.createContext(!1), W = (e) => /* @__PURE__ */ r(P, { ...e });
|
|
10
|
+
W.displayName = "MenubarMenu";
|
|
11
|
+
const re = j, te = g, X = ({
|
|
12
12
|
open: e,
|
|
13
13
|
defaultOpen: a = !1,
|
|
14
14
|
onOpenChange: s,
|
|
15
|
-
...
|
|
15
|
+
...t
|
|
16
16
|
}) => {
|
|
17
|
-
const [d, i] = o.useState(a), c = e !== void 0, u = c ? e : d,
|
|
17
|
+
const [d, i] = o.useState(a), c = e !== void 0, u = c ? e : d, _ = o.useCallback(
|
|
18
18
|
(m) => {
|
|
19
19
|
c || i(m), s == null || s(m);
|
|
20
20
|
},
|
|
21
21
|
[c, s]
|
|
22
22
|
);
|
|
23
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ r(k.Provider, { value: u, children: /* @__PURE__ */ r(T, { open: u, onOpenChange: _, ...t }) });
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
const oe =
|
|
25
|
+
X.displayName = "MenubarSub";
|
|
26
|
+
const oe = G, Y = o.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ r(
|
|
27
27
|
p,
|
|
28
28
|
{
|
|
29
29
|
ref: s,
|
|
@@ -34,8 +34,8 @@ const oe = _, W = o.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ t(
|
|
|
34
34
|
...a
|
|
35
35
|
}
|
|
36
36
|
));
|
|
37
|
-
|
|
38
|
-
const
|
|
37
|
+
Y.displayName = p.displayName;
|
|
38
|
+
const Z = o.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ r(
|
|
39
39
|
f,
|
|
40
40
|
{
|
|
41
41
|
ref: s,
|
|
@@ -46,8 +46,8 @@ const X = o.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ t(
|
|
|
46
46
|
...a
|
|
47
47
|
}
|
|
48
48
|
));
|
|
49
|
-
|
|
50
|
-
const
|
|
49
|
+
Z.displayName = f.displayName;
|
|
50
|
+
const $ = o.forwardRef(({ className: e, inset: a, children: s, ...t }, d) => /* @__PURE__ */ l(
|
|
51
51
|
b,
|
|
52
52
|
{
|
|
53
53
|
ref: d,
|
|
@@ -56,30 +56,30 @@ const Y = o.forwardRef(({ className: e, inset: a, children: s, ...r }, d) => /*
|
|
|
56
56
|
a && "pl-ds-07",
|
|
57
57
|
e
|
|
58
58
|
),
|
|
59
|
-
...
|
|
59
|
+
...t,
|
|
60
60
|
children: [
|
|
61
61
|
s,
|
|
62
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ r(z, { className: "ml-auto" })
|
|
63
63
|
]
|
|
64
64
|
}
|
|
65
65
|
));
|
|
66
|
-
|
|
67
|
-
const
|
|
66
|
+
$.displayName = b.displayName;
|
|
67
|
+
const q = o.forwardRef(({ className: e, children: a, ...s }, t) => {
|
|
68
68
|
const d = o.useContext(k);
|
|
69
|
-
return /* @__PURE__ */
|
|
69
|
+
return /* @__PURE__ */ r(U, { children: d && /* @__PURE__ */ r(
|
|
70
70
|
y,
|
|
71
71
|
{
|
|
72
|
-
ref:
|
|
72
|
+
ref: t,
|
|
73
73
|
forceMount: !0,
|
|
74
74
|
asChild: !0,
|
|
75
75
|
...s,
|
|
76
|
-
children: /* @__PURE__ */
|
|
76
|
+
children: /* @__PURE__ */ r(
|
|
77
77
|
I.div,
|
|
78
78
|
{
|
|
79
79
|
initial: { opacity: 0, scale: 0.95 },
|
|
80
80
|
animate: { opacity: 1, scale: 1 },
|
|
81
81
|
exit: { opacity: 0, scale: 0.95 },
|
|
82
|
-
transition: { ...
|
|
82
|
+
transition: { ...S.snappy, opacity: C.fade },
|
|
83
83
|
className: n(
|
|
84
84
|
"z-popover min-w-[8rem] overflow-hidden rounded-ds-lg border border-surface-border-strong bg-surface-1 p-ds-02 text-surface-fg shadow-03",
|
|
85
85
|
e
|
|
@@ -90,24 +90,24 @@ const Z = o.forwardRef(({ className: e, children: a, ...s }, r) => {
|
|
|
90
90
|
}
|
|
91
91
|
) });
|
|
92
92
|
});
|
|
93
|
-
|
|
94
|
-
const
|
|
95
|
-
({ className: e, align: a = "start", alignOffset: s = -4, sideOffset:
|
|
93
|
+
q.displayName = y.displayName;
|
|
94
|
+
const B = o.forwardRef(
|
|
95
|
+
({ className: e, align: a = "start", alignOffset: s = -4, sideOffset: t = 8, children: d, ...i }, c) => /* @__PURE__ */ r(g, { children: /* @__PURE__ */ r(
|
|
96
96
|
N,
|
|
97
97
|
{
|
|
98
98
|
ref: c,
|
|
99
99
|
align: a,
|
|
100
100
|
alignOffset: s,
|
|
101
|
-
sideOffset:
|
|
101
|
+
sideOffset: t,
|
|
102
102
|
asChild: !0,
|
|
103
103
|
...i,
|
|
104
|
-
children: /* @__PURE__ */
|
|
104
|
+
children: /* @__PURE__ */ r(
|
|
105
105
|
I.div,
|
|
106
106
|
{
|
|
107
107
|
initial: { opacity: 0, scale: 0.95 },
|
|
108
108
|
animate: { opacity: 1, scale: 1 },
|
|
109
109
|
exit: { opacity: 0, scale: 0.95 },
|
|
110
|
-
transition: { ...
|
|
110
|
+
transition: { ...S.snappy, opacity: C.fade },
|
|
111
111
|
className: n(
|
|
112
112
|
"z-popover min-w-[12rem] rounded-ds-lg border border-surface-border-strong bg-surface-1 p-ds-02 text-surface-fg shadow-03",
|
|
113
113
|
e
|
|
@@ -118,11 +118,11 @@ const $ = o.forwardRef(
|
|
|
118
118
|
}
|
|
119
119
|
) })
|
|
120
120
|
);
|
|
121
|
-
|
|
122
|
-
const
|
|
121
|
+
B.displayName = N.displayName;
|
|
122
|
+
const D = o.forwardRef(({ className: e, inset: a, ...s }, t) => /* @__PURE__ */ r(
|
|
123
123
|
x,
|
|
124
124
|
{
|
|
125
|
-
ref:
|
|
125
|
+
ref: t,
|
|
126
126
|
className: n(
|
|
127
127
|
"relative flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none transition-colors focus:bg-surface-2 focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
|
|
128
128
|
a && "pl-ds-07",
|
|
@@ -131,8 +131,8 @@ const q = o.forwardRef(({ className: e, inset: a, ...s }, r) => /* @__PURE__ */
|
|
|
131
131
|
...s
|
|
132
132
|
}
|
|
133
133
|
));
|
|
134
|
-
|
|
135
|
-
const
|
|
134
|
+
D.displayName = x.displayName;
|
|
135
|
+
const E = o.forwardRef(({ className: e, children: a, checked: s, ...t }, d) => /* @__PURE__ */ l(
|
|
136
136
|
h,
|
|
137
137
|
{
|
|
138
138
|
ref: d,
|
|
@@ -141,34 +141,34 @@ const B = o.forwardRef(({ className: e, children: a, checked: s, ...r }, d) => /
|
|
|
141
141
|
e
|
|
142
142
|
),
|
|
143
143
|
checked: s,
|
|
144
|
-
...
|
|
144
|
+
...t,
|
|
145
145
|
children: [
|
|
146
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ r("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ r(v, { children: /* @__PURE__ */ r(A, { className: "h-ico-sm w-ico-sm" }) }) }),
|
|
147
147
|
a
|
|
148
148
|
]
|
|
149
149
|
}
|
|
150
150
|
));
|
|
151
|
-
|
|
152
|
-
const
|
|
151
|
+
E.displayName = h.displayName;
|
|
152
|
+
const F = o.forwardRef(({ className: e, children: a, ...s }, t) => /* @__PURE__ */ l(
|
|
153
153
|
M,
|
|
154
154
|
{
|
|
155
|
-
ref:
|
|
155
|
+
ref: t,
|
|
156
156
|
className: n(
|
|
157
157
|
"relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-none transition-colors focus:bg-surface-2 focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
|
|
158
158
|
e
|
|
159
159
|
),
|
|
160
160
|
...s,
|
|
161
161
|
children: [
|
|
162
|
-
/* @__PURE__ */
|
|
162
|
+
/* @__PURE__ */ r("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ r(v, { children: /* @__PURE__ */ r(L, { className: "h-2 w-2 fill-current" }) }) }),
|
|
163
163
|
a
|
|
164
164
|
]
|
|
165
165
|
}
|
|
166
166
|
));
|
|
167
|
-
|
|
168
|
-
const
|
|
167
|
+
F.displayName = M.displayName;
|
|
168
|
+
const H = o.forwardRef(({ className: e, inset: a, ...s }, t) => /* @__PURE__ */ r(
|
|
169
169
|
w,
|
|
170
170
|
{
|
|
171
|
-
ref:
|
|
171
|
+
ref: t,
|
|
172
172
|
className: n(
|
|
173
173
|
"px-ds-03 py-ds-02b text-ds-md font-semibold",
|
|
174
174
|
a && "pl-ds-07",
|
|
@@ -177,8 +177,8 @@ const E = o.forwardRef(({ className: e, inset: a, ...s }, r) => /* @__PURE__ */
|
|
|
177
177
|
...s
|
|
178
178
|
}
|
|
179
179
|
));
|
|
180
|
-
|
|
181
|
-
const
|
|
180
|
+
H.displayName = w.displayName;
|
|
181
|
+
const J = o.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ r(
|
|
182
182
|
R,
|
|
183
183
|
{
|
|
184
184
|
ref: s,
|
|
@@ -186,11 +186,11 @@ const F = o.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ t(
|
|
|
186
186
|
...a
|
|
187
187
|
}
|
|
188
188
|
));
|
|
189
|
-
|
|
190
|
-
const
|
|
189
|
+
J.displayName = R.displayName;
|
|
190
|
+
const K = ({
|
|
191
191
|
className: e,
|
|
192
192
|
...a
|
|
193
|
-
}) => /* @__PURE__ */
|
|
193
|
+
}) => /* @__PURE__ */ r(
|
|
194
194
|
"span",
|
|
195
195
|
{
|
|
196
196
|
className: n(
|
|
@@ -200,22 +200,22 @@ const H = ({
|
|
|
200
200
|
...a
|
|
201
201
|
}
|
|
202
202
|
);
|
|
203
|
-
|
|
203
|
+
K.displayName = "MenubarShortcut";
|
|
204
204
|
export {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
205
|
+
Y as Menubar,
|
|
206
|
+
E as MenubarCheckboxItem,
|
|
207
|
+
B as MenubarContent,
|
|
208
|
+
re as MenubarGroup,
|
|
209
|
+
D as MenubarItem,
|
|
210
|
+
H as MenubarLabel,
|
|
211
|
+
W as MenubarMenu,
|
|
212
|
+
te as MenubarPortal,
|
|
213
213
|
oe as MenubarRadioGroup,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
214
|
+
F as MenubarRadioItem,
|
|
215
|
+
J as MenubarSeparator,
|
|
216
|
+
K as MenubarShortcut,
|
|
217
|
+
X as MenubarSub,
|
|
218
|
+
q as MenubarSubContent,
|
|
219
|
+
$ as MenubarSubTrigger,
|
|
220
|
+
Z as MenubarTrigger
|
|
221
221
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as v, jsx as c } from "react/jsx-runtime";
|
|
3
3
|
import * as a from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { ba as N, bb as h, bc as w, bd as x, be as R, bf as M, bg as O, bh as V } from "../_chunks/primitives.js";
|
|
5
5
|
import { IconChevronDown as E } from "@tabler/icons-react";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { m as g } from "../_chunks/
|
|
6
|
+
import { cn as u } from "./lib/utils.js";
|
|
7
|
+
import { tweens as y, springs as j } from "./lib/motion.js";
|
|
8
|
+
import { m as g } from "../_chunks/framer.js";
|
|
9
9
|
const L = a.forwardRef(({ className: r, children: n, ...t }, o) => /* @__PURE__ */ v(
|
|
10
10
|
N,
|
|
11
11
|
{
|
package/dist/ui/number-input.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsxs as y, jsx as i } from "react/jsx-runtime";
|
|
3
3
|
import * as v from "react";
|
|
4
4
|
import { IconMinus as E, IconPlus as j } from "@tabler/icons-react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { cn as M } from "./lib/utils.js";
|
|
6
|
+
import { useFormField as k } from "./form.js";
|
|
7
7
|
const D = v.forwardRef(
|
|
8
8
|
({
|
|
9
9
|
value: s = 0,
|
|
@@ -14,17 +14,17 @@ const D = v.forwardRef(
|
|
|
14
14
|
disabled: m = !1,
|
|
15
15
|
className: n,
|
|
16
16
|
"aria-label": l,
|
|
17
|
-
...
|
|
17
|
+
...b
|
|
18
18
|
}, p) => {
|
|
19
|
-
const
|
|
19
|
+
const f = k(), u = l ?? (b.id || f.helperTextId ? void 0 : "Numeric value"), N = (c) => {
|
|
20
20
|
const t = c.target.value.trim();
|
|
21
21
|
if (t === "" || t === "-") {
|
|
22
22
|
e == null || e(r >= 0 ? r : 0);
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
|
-
const
|
|
26
|
-
if (Number.isNaN(
|
|
27
|
-
const I = Math.min(Math.max(
|
|
25
|
+
const a = Number(t);
|
|
26
|
+
if (Number.isNaN(a)) return;
|
|
27
|
+
const I = Math.min(Math.max(a, r), d);
|
|
28
28
|
e == null || e(I);
|
|
29
29
|
}, x = (c) => {
|
|
30
30
|
c.preventDefault();
|
|
@@ -66,9 +66,9 @@ const D = v.forwardRef(
|
|
|
66
66
|
step: o,
|
|
67
67
|
disabled: m,
|
|
68
68
|
"aria-label": u,
|
|
69
|
-
"aria-describedby":
|
|
69
|
+
"aria-describedby": b["aria-describedby"] ?? f.helperTextId,
|
|
70
70
|
className: "bg-transparent text-ds-md font-semibold w-ds-sm-plus border-0 text-center text-surface-fg-muted [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
71
|
-
...
|
|
71
|
+
...b
|
|
72
72
|
}
|
|
73
73
|
),
|
|
74
74
|
/* @__PURE__ */ i(
|
package/dist/ui/pagination.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx as a, jsxs as g } from "react/jsx-runtime";
|
|
|
3
3
|
import * as o from "react";
|
|
4
4
|
import { S as R } from "../_chunks/primitives.js";
|
|
5
5
|
import { IconChevronLeft as j, IconChevronRight as k, IconDots as C } from "@tabler/icons-react";
|
|
6
|
-
import {
|
|
6
|
+
import { cn as r } from "./lib/utils.js";
|
|
7
7
|
const w = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ a(
|
|
8
8
|
"nav",
|
|
9
9
|
{
|
package/dist/ui/popover.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import * as t from "react";
|
|
4
|
-
import { P as u,
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { A as
|
|
4
|
+
import { P as u, d as l, c as P, b as v, aP as y } from "../_chunks/primitives.js";
|
|
5
|
+
import { cn as x } from "./lib/utils.js";
|
|
6
|
+
import { tweens as b, springs as g } from "./lib/motion.js";
|
|
7
|
+
import { A as h, m as C } from "../_chunks/framer.js";
|
|
8
8
|
const m = t.createContext(!1), w = ({
|
|
9
9
|
open: s,
|
|
10
|
-
defaultOpen:
|
|
10
|
+
defaultOpen: n = !1,
|
|
11
11
|
onOpenChange: o,
|
|
12
|
-
...
|
|
12
|
+
...a
|
|
13
13
|
}) => {
|
|
14
|
-
const [c, i] = t.useState(
|
|
15
|
-
(
|
|
16
|
-
r || i(
|
|
14
|
+
const [c, i] = t.useState(n), r = s !== void 0, p = r ? s : c, f = t.useCallback(
|
|
15
|
+
(d) => {
|
|
16
|
+
r || i(d), o == null || o(d);
|
|
17
17
|
},
|
|
18
18
|
[r, o]
|
|
19
19
|
);
|
|
20
|
-
return /* @__PURE__ */ e(m.Provider, { value: p, children: /* @__PURE__ */ e(
|
|
20
|
+
return /* @__PURE__ */ e(m.Provider, { value: p, children: /* @__PURE__ */ e(v, { open: p, onOpenChange: f, ...a }) });
|
|
21
21
|
};
|
|
22
22
|
w.displayName = "Popover";
|
|
23
|
-
const k =
|
|
23
|
+
const k = P, z = y, A = t.forwardRef(({ className: s, align: n = "center", sideOffset: o = 4, children: a, ...c }, i) => {
|
|
24
24
|
const r = t.useContext(m);
|
|
25
|
-
return /* @__PURE__ */ e(
|
|
26
|
-
|
|
25
|
+
return /* @__PURE__ */ e(h, { children: r && /* @__PURE__ */ e(u, { forceMount: !0, children: /* @__PURE__ */ e(
|
|
26
|
+
l,
|
|
27
27
|
{
|
|
28
28
|
ref: i,
|
|
29
|
-
align:
|
|
29
|
+
align: n,
|
|
30
30
|
sideOffset: o,
|
|
31
31
|
forceMount: !0,
|
|
32
32
|
asChild: !0,
|
|
@@ -37,18 +37,18 @@ const k = v, z = y, A = t.forwardRef(({ className: s, align: a = "center", sideO
|
|
|
37
37
|
initial: { opacity: 0, scale: 0.95 },
|
|
38
38
|
animate: { opacity: 1, scale: 1 },
|
|
39
39
|
exit: { opacity: 0, scale: 0.95 },
|
|
40
|
-
transition: { ...
|
|
41
|
-
className:
|
|
40
|
+
transition: { ...g.snappy, opacity: b.fade },
|
|
41
|
+
className: x(
|
|
42
42
|
"z-popover w-72 rounded-ds-lg border border-surface-border-strong bg-surface-1 p-ds-05 text-surface-fg shadow-03 outline-none",
|
|
43
43
|
s
|
|
44
44
|
),
|
|
45
|
-
children:
|
|
45
|
+
children: a
|
|
46
46
|
}
|
|
47
47
|
)
|
|
48
48
|
}
|
|
49
49
|
) }) });
|
|
50
50
|
});
|
|
51
|
-
A.displayName =
|
|
51
|
+
A.displayName = l.displayName;
|
|
52
52
|
export {
|
|
53
53
|
w as Popover,
|
|
54
54
|
z as PopoverAnchor,
|
package/dist/ui/progress.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import * as h from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { aQ as d, aR as l } from "../_chunks/primitives.js";
|
|
5
5
|
import { ag as c } from "../_chunks/vendor-utils.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { m as w } from "../_chunks/
|
|
6
|
+
import { cn as a } from "./lib/utils.js";
|
|
7
|
+
import { springs as x } from "./lib/motion.js";
|
|
8
|
+
import { m as w } from "../_chunks/framer.js";
|
|
9
9
|
const N = c(
|
|
10
10
|
"relative w-full overflow-hidden rounded-ds-full bg-surface-2",
|
|
11
11
|
{
|