@devalok/shilp-sutra 0.21.0 → 0.22.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/use-calendar.js +115 -115
- package/dist/_chunks/vendor-utils.js +1230 -1178
- package/dist/composed/activity-feed.d.ts.map +1 -1
- package/dist/composed/activity-feed.js +78 -78
- package/dist/composed/avatar-group.d.ts +2 -2
- package/dist/composed/avatar-group.d.ts.map +1 -1
- package/dist/composed/avatar-group.js +82 -107
- package/dist/composed/command-palette.js +50 -50
- package/dist/composed/content-card.js +10 -10
- package/dist/composed/empty-state.d.ts.map +1 -1
- package/dist/composed/empty-state.js +58 -48
- package/dist/composed/global-loading.d.ts.map +1 -1
- package/dist/composed/global-loading.js +11 -10
- package/dist/composed/loading-skeleton.d.ts.map +1 -1
- package/dist/composed/loading-skeleton.js +32 -29
- package/dist/composed/member-picker.d.ts.map +1 -1
- package/dist/composed/member-picker.js +28 -17
- package/dist/composed/page-header.js +25 -25
- package/dist/composed/priority-indicator.d.ts.map +1 -1
- package/dist/composed/priority-indicator.js +60 -36
- package/dist/composed/rich-text-editor.js +104 -104
- package/dist/composed/schedule-view.d.ts.map +1 -1
- package/dist/composed/schedule-view.js +52 -44
- package/dist/composed/status-badge.js +16 -16
- package/dist/shell/bottom-navbar.d.ts.map +1 -1
- package/dist/shell/bottom-navbar.js +35 -31
- package/dist/shell/notification-center.d.ts.map +1 -1
- package/dist/shell/notification-center.js +119 -111
- package/dist/shell/sidebar.js +2 -2
- package/dist/shell/top-bar.js +9 -9
- package/dist/tailwind/index.cjs +30 -3
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +30 -3
- package/dist/tokens/semantic.css +10 -10
- package/dist/tokens/typography-semantic.css +3 -3
- package/dist/ui/accordion.js +22 -22
- package/dist/ui/alert.js +8 -8
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +72 -86
- package/dist/ui/badge.js +5 -5
- package/dist/ui/banner.js +18 -18
- package/dist/ui/breadcrumb.js +23 -23
- package/dist/ui/button.js +22 -22
- package/dist/ui/card.js +16 -16
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +72 -25
- package/dist/ui/chip.js +14 -14
- package/dist/ui/code.js +9 -9
- package/dist/ui/combobox.d.ts.map +1 -1
- package/dist/ui/combobox.js +46 -45
- package/dist/ui/dialog.js +17 -17
- package/dist/ui/dropdown-menu.js +22 -22
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +35 -29
- package/dist/ui/input.js +20 -20
- package/dist/ui/label.js +15 -15
- package/dist/ui/lib/motion.d.ts.map +1 -1
- package/dist/ui/lib/motion.js +2 -2
- package/dist/ui/link.js +14 -14
- package/dist/ui/number-input.js +36 -36
- package/dist/ui/pagination.js +14 -14
- package/dist/ui/progress.js +6 -6
- package/dist/ui/radio.d.ts.map +1 -1
- package/dist/ui/radio.js +24 -12
- package/dist/ui/search-input.d.ts.map +1 -1
- package/dist/ui/search-input.js +25 -19
- package/dist/ui/select.js +15 -15
- package/dist/ui/separator.d.ts +10 -2
- package/dist/ui/separator.d.ts.map +1 -1
- package/dist/ui/separator.js +16 -15
- package/dist/ui/sheet.js +7 -7
- package/dist/ui/sidebar.d.ts +1 -1
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +22 -22
- package/dist/ui/skeleton.js +5 -5
- package/dist/ui/slider.js +7 -7
- package/dist/ui/stat-card.js +19 -19
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +14 -13
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +60 -51
- package/dist/ui/textarea.js +15 -15
- package/dist/ui/toast.js +1 -1
- package/dist/ui/toggle.js +5 -5
- package/dist/ui/tooltip.d.ts +0 -4
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/dist/ui/tooltip.js +24 -24
- package/docs/components/ui/avatar.md +3 -0
- package/docs/components/ui/button.md +5 -0
- package/docs/components/ui/checkbox.md +5 -0
- package/docs/components/ui/dropdown-menu.md +3 -0
- package/docs/components/ui/separator.md +3 -0
- package/docs/components/ui/tooltip.md +5 -0
- package/llms-full.txt +25 -1
- package/llms.txt +20 -0
- package/package.json +1 -1
package/dist/ui/accordion.js
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as e, jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import { I as m, H as f, T as
|
|
2
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
3
|
+
import * as s from "react";
|
|
4
|
+
import { I as m, H as f, T as d, C as n, R as l } from "../_chunks/primitives.js";
|
|
5
5
|
import { IconChevronDown as p } from "@tabler/icons-react";
|
|
6
|
-
import { cn as
|
|
6
|
+
import { cn as i } from "./lib/utils.js";
|
|
7
7
|
import { tweens as u } from "./lib/motion.js";
|
|
8
|
-
import { m as
|
|
9
|
-
const I = l,
|
|
8
|
+
import { m as b } from "../_chunks/framer.js";
|
|
9
|
+
const I = l, g = s.forwardRef(({ className: o, ...a }, t) => /* @__PURE__ */ e(
|
|
10
10
|
m,
|
|
11
11
|
{
|
|
12
12
|
ref: t,
|
|
13
|
-
className:
|
|
13
|
+
className: i("border-b border-surface-border", o),
|
|
14
14
|
...a
|
|
15
15
|
}
|
|
16
16
|
));
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
|
|
17
|
+
g.displayName = "AccordionItem";
|
|
18
|
+
const N = s.forwardRef(({ className: o, children: a, ...t }, r) => /* @__PURE__ */ e(f, { className: "flex", children: /* @__PURE__ */ c(
|
|
19
|
+
d,
|
|
20
20
|
{
|
|
21
21
|
ref: r,
|
|
22
|
-
className:
|
|
23
|
-
"group flex flex-1 items-center justify-between py-ds-05 text-left text-ds-md font-medium hover:
|
|
22
|
+
className: i(
|
|
23
|
+
"group flex flex-1 items-center justify-between py-ds-05 text-left text-ds-md font-medium hover:bg-surface-2 rounded-ds-md data-[state=open]:bg-surface-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
|
|
24
24
|
o
|
|
25
25
|
),
|
|
26
26
|
...t,
|
|
27
27
|
children: [
|
|
28
28
|
a,
|
|
29
|
-
/* @__PURE__ */ e(p, { className: "h-ico-sm w-ico-sm shrink-0 text-surface-fg-muted transition-transform duration-
|
|
29
|
+
/* @__PURE__ */ e(p, { className: "h-ico-sm w-ico-sm shrink-0 text-surface-fg-muted transition-transform duration-moderate-02 ease-productive-standard group-data-[state=open]:rotate-180" })
|
|
30
30
|
]
|
|
31
31
|
}
|
|
32
32
|
) }));
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
|
|
33
|
+
N.displayName = d.displayName;
|
|
34
|
+
const w = s.forwardRef(({ className: o, children: a, ...t }, r) => /* @__PURE__ */ e(
|
|
35
|
+
n,
|
|
36
36
|
{
|
|
37
37
|
ref: r,
|
|
38
38
|
className: "w-full overflow-hidden text-ds-md data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up",
|
|
39
39
|
...t,
|
|
40
40
|
children: /* @__PURE__ */ e(
|
|
41
|
-
|
|
41
|
+
b.div,
|
|
42
42
|
{
|
|
43
43
|
initial: !1,
|
|
44
44
|
animate: { opacity: 1 },
|
|
45
45
|
transition: u.fade,
|
|
46
|
-
children: /* @__PURE__ */ e("div", { className:
|
|
46
|
+
children: /* @__PURE__ */ e("div", { className: i("pb-ds-05 pt-ds-02", o), children: a })
|
|
47
47
|
}
|
|
48
48
|
)
|
|
49
49
|
}
|
|
50
50
|
));
|
|
51
|
-
|
|
51
|
+
w.displayName = n.displayName;
|
|
52
52
|
export {
|
|
53
53
|
I as Accordion,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
w as AccordionContent,
|
|
55
|
+
g as AccordionItem,
|
|
56
|
+
N as AccordionTrigger
|
|
57
57
|
};
|
package/dist/ui/alert.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
import { IconInfoCircle as o, IconAlertCircle as
|
|
3
|
+
import { IconInfoCircle as o, IconAlertCircle as v, IconAlertTriangle as x, IconCircleCheck as p, IconX as N } from "@tabler/icons-react";
|
|
4
4
|
import * as r from "react";
|
|
5
5
|
import { ag as w } from "../_chunks/vendor-utils.js";
|
|
6
6
|
import { cn as h } from "./lib/utils.js";
|
|
@@ -48,15 +48,15 @@ const k = w(
|
|
|
48
48
|
), V = {
|
|
49
49
|
info: o,
|
|
50
50
|
success: p,
|
|
51
|
-
warning:
|
|
52
|
-
error:
|
|
51
|
+
warning: x,
|
|
52
|
+
error: v,
|
|
53
53
|
neutral: o
|
|
54
54
|
}, j = r.forwardRef(
|
|
55
55
|
({ className: c, variant: i = "subtle", color: t = "info", title: a, onDismiss: s, children: l, ...f }, u) => {
|
|
56
|
-
const
|
|
56
|
+
const d = V[t ?? "info"], [m, g] = r.useState(!0), b = r.useCallback(() => {
|
|
57
57
|
g(!1);
|
|
58
58
|
}, []);
|
|
59
|
-
return /* @__PURE__ */ e(C, { onExitComplete: s, children:
|
|
59
|
+
return /* @__PURE__ */ e(C, { onExitComplete: s, children: m && /* @__PURE__ */ n(
|
|
60
60
|
A.div,
|
|
61
61
|
{
|
|
62
62
|
ref: u,
|
|
@@ -68,17 +68,17 @@ const k = w(
|
|
|
68
68
|
role: "alert",
|
|
69
69
|
...I(f),
|
|
70
70
|
children: [
|
|
71
|
-
/* @__PURE__ */ e(
|
|
71
|
+
/* @__PURE__ */ e(d, { className: "mt-ds-01 h-ico-md w-ico-md shrink-0", "aria-hidden": "true" }),
|
|
72
72
|
/* @__PURE__ */ n("div", { className: "flex-1 min-w-0", children: [
|
|
73
73
|
a && /* @__PURE__ */ e("p", { className: "text-ds-md font-semibold mb-ds-01", children: a }),
|
|
74
|
-
/* @__PURE__ */ e("div", { className: "text-ds-md
|
|
74
|
+
/* @__PURE__ */ e("div", { className: "text-ds-md text-surface-fg-muted", children: l })
|
|
75
75
|
] }),
|
|
76
76
|
s && /* @__PURE__ */ e(
|
|
77
77
|
"button",
|
|
78
78
|
{
|
|
79
79
|
type: "button",
|
|
80
80
|
onClick: b,
|
|
81
|
-
className: "shrink-0 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm text-surface-fg-subtle transition-colors hover:text-surface-fg-muted hover:bg-surface-3 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
|
|
81
|
+
className: "shrink-0 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm text-surface-fg-subtle transition-colors duration-fast-01 ease-productive-standard hover:text-surface-fg-muted hover:bg-surface-3 active:scale-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
|
|
82
82
|
"aria-label": "Dismiss",
|
|
83
83
|
children: /* @__PURE__ */ e(N, { className: "h-ico-sm w-ico-sm" })
|
|
84
84
|
}
|
package/dist/ui/avatar.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../src/ui/avatar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../src/ui/avatar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAUjE,eAAO,MAAM,cAAc;;;8EAmB1B,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAA;AAEjE,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAA;AAoE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC,EACnF,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,8EAA8E;IAC9E,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,gCAAgC;IAChC,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC,SAAS,CAAA;IACxC,+CAA+C;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,QAAA,MAAM,MAAM,qFA6EV,CAAA;AAGF,QAAA,MAAM,WAAW,gKAgBf,CAAA;AAGF,MAAM,WAAW,mBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,QAAQ,CAAC;IACvE;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,QAAA,MAAM,cAAc,6FAiClB,CAAA;AAGF,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAA"}
|
package/dist/ui/avatar.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import * as
|
|
4
|
-
import { F as y, J as
|
|
5
|
-
import { ag as
|
|
6
|
-
import { springs as
|
|
7
|
-
import { cn as
|
|
8
|
-
import { m as
|
|
9
|
-
const
|
|
2
|
+
import { jsx as s, jsxs as R } from "react/jsx-runtime";
|
|
3
|
+
import * as i from "react";
|
|
4
|
+
import { F as y, J as N, K as k } from "../_chunks/primitives.js";
|
|
5
|
+
import { ag as F } from "../_chunks/vendor-utils.js";
|
|
6
|
+
import { springs as C } from "./lib/motion.js";
|
|
7
|
+
import { cn as r } from "./lib/utils.js";
|
|
8
|
+
import { m as f } from "../_chunks/framer.js";
|
|
9
|
+
const A = i.createContext("circle"), x = F(
|
|
10
10
|
"relative flex shrink-0 overflow-hidden",
|
|
11
11
|
{
|
|
12
12
|
variants: {
|
|
@@ -25,157 +25,143 @@ const p = R(
|
|
|
25
25
|
},
|
|
26
26
|
defaultVariants: { size: "md", shape: "circle" }
|
|
27
27
|
}
|
|
28
|
-
),
|
|
28
|
+
), b = {
|
|
29
29
|
online: "bg-success-9",
|
|
30
30
|
offline: "bg-surface-3",
|
|
31
31
|
busy: "bg-error-9",
|
|
32
32
|
away: "bg-warning-9"
|
|
33
|
-
},
|
|
33
|
+
}, h = {
|
|
34
34
|
online: "Online",
|
|
35
35
|
offline: "Offline",
|
|
36
36
|
busy: "Busy",
|
|
37
37
|
away: "Away"
|
|
38
|
-
},
|
|
38
|
+
}, w = {
|
|
39
39
|
xs: "h-ds-02b w-ds-02b",
|
|
40
40
|
sm: "h-[8px] w-[8px]",
|
|
41
41
|
md: "h-ds-03 w-ds-03",
|
|
42
42
|
lg: "h-[12px] w-[12px]",
|
|
43
43
|
xl: "h-ds-04 w-ds-04"
|
|
44
|
-
},
|
|
44
|
+
}, O = {
|
|
45
45
|
lead: "ring-accent-7",
|
|
46
46
|
admin: "ring-warning-7",
|
|
47
47
|
client: "ring-info-7"
|
|
48
|
-
},
|
|
48
|
+
}, S = {
|
|
49
49
|
circle: "rounded-ds-full",
|
|
50
50
|
square: "rounded-ds-none",
|
|
51
51
|
rounded: "rounded-ds-md"
|
|
52
|
-
},
|
|
53
|
-
{ bg: "bg-accent-
|
|
54
|
-
{ bg: "bg-
|
|
55
|
-
{ bg: "bg-
|
|
56
|
-
{ bg: "bg-
|
|
57
|
-
{ bg: "bg-
|
|
58
|
-
{ bg: "bg-
|
|
59
|
-
{ bg: "bg-
|
|
60
|
-
{ bg: "bg-
|
|
52
|
+
}, v = [
|
|
53
|
+
{ bg: "bg-accent-2", text: "text-accent-11" },
|
|
54
|
+
{ bg: "bg-success-2", text: "text-success-11" },
|
|
55
|
+
{ bg: "bg-warning-2", text: "text-warning-11" },
|
|
56
|
+
{ bg: "bg-error-2", text: "text-error-11" },
|
|
57
|
+
{ bg: "bg-info-2", text: "text-info-11" },
|
|
58
|
+
{ bg: "bg-cat-purple-2", text: "text-cat-purple-11" },
|
|
59
|
+
{ bg: "bg-cat-pink-2", text: "text-cat-pink-11" },
|
|
60
|
+
{ bg: "bg-cat-teal-2", text: "text-cat-teal-11" }
|
|
61
61
|
];
|
|
62
62
|
function j(o) {
|
|
63
63
|
let a = 5381;
|
|
64
64
|
for (let e = 0; e < o.length; e++)
|
|
65
65
|
a = (a << 5) + a + o.charCodeAt(e) | 0;
|
|
66
|
-
const
|
|
67
|
-
return
|
|
66
|
+
const n = Math.abs(a) % v.length;
|
|
67
|
+
return v[n];
|
|
68
68
|
}
|
|
69
|
-
const
|
|
70
|
-
const
|
|
71
|
-
if (
|
|
72
|
-
return /* @__PURE__ */
|
|
69
|
+
const q = i.forwardRef(({ className: o, size: a, shape: n, status: e, ring: l, badge: t, loading: g, children: d, ...c }, u) => {
|
|
70
|
+
const m = n ?? "circle", p = l && l !== "none" ? r("ring-2 ring-offset-2 ring-offset-surface-2", O[l], S[m]) : void 0;
|
|
71
|
+
if (g)
|
|
72
|
+
return /* @__PURE__ */ s("span", { ref: u, className: r("relative inline-flex shrink-0", p), children: /* @__PURE__ */ s(
|
|
73
73
|
"span",
|
|
74
74
|
{
|
|
75
|
-
className:
|
|
75
|
+
className: r(x({ size: a, shape: n }), "animate-pulse bg-surface-3"),
|
|
76
76
|
"data-slot": "avatar-skeleton"
|
|
77
77
|
}
|
|
78
78
|
) });
|
|
79
|
-
const
|
|
80
|
-
return /* @__PURE__ */
|
|
81
|
-
/* @__PURE__ */
|
|
79
|
+
const M = t !== void 0 && t !== 0;
|
|
80
|
+
return /* @__PURE__ */ s(A.Provider, { value: m, children: /* @__PURE__ */ R("span", { className: r("relative inline-flex shrink-0", p), children: [
|
|
81
|
+
/* @__PURE__ */ s(
|
|
82
82
|
y,
|
|
83
83
|
{
|
|
84
|
-
ref:
|
|
85
|
-
className:
|
|
86
|
-
...
|
|
87
|
-
children:
|
|
84
|
+
ref: u,
|
|
85
|
+
className: r(x({ size: a, shape: n }), o),
|
|
86
|
+
...c,
|
|
87
|
+
children: d
|
|
88
88
|
}
|
|
89
89
|
),
|
|
90
|
-
e && (e === "online" ? /* @__PURE__ */
|
|
91
|
-
|
|
90
|
+
e && (e === "online" ? /* @__PURE__ */ s(
|
|
91
|
+
f.span,
|
|
92
92
|
{
|
|
93
|
-
className:
|
|
94
|
-
"absolute bottom-0 right-0 rounded-ds-full ring-2 ring-surface-2",
|
|
95
|
-
x[e],
|
|
96
|
-
h[a ?? "md"]
|
|
97
|
-
),
|
|
93
|
+
className: r("absolute bottom-0 right-0 rounded-ds-full ring-2 ring-surface-2", b[e], w[a ?? "md"]),
|
|
98
94
|
animate: { opacity: [1, 0.75, 1] },
|
|
99
95
|
transition: { duration: 2.5, repeat: 1 / 0, ease: "easeInOut" },
|
|
100
96
|
role: "img",
|
|
101
|
-
"aria-label":
|
|
102
|
-
}
|
|
103
|
-
) : /* @__PURE__ */ r(
|
|
104
|
-
"span",
|
|
105
|
-
{
|
|
106
|
-
className: n(
|
|
107
|
-
"absolute bottom-0 right-0 rounded-ds-full ring-2 ring-surface-2",
|
|
108
|
-
x[e],
|
|
109
|
-
h[a ?? "md"]
|
|
110
|
-
),
|
|
111
|
-
role: "img",
|
|
112
|
-
"aria-label": b[e]
|
|
97
|
+
"aria-label": h[e]
|
|
113
98
|
}
|
|
114
|
-
)),
|
|
115
|
-
|
|
99
|
+
) : /* @__PURE__ */ s("span", { className: r("absolute bottom-0 right-0 rounded-ds-full ring-2 ring-surface-2", b[e], w[a ?? "md"]), role: "img", "aria-label": h[e] })),
|
|
100
|
+
M && (t === "dot" ? /* @__PURE__ */ s(
|
|
116
101
|
"span",
|
|
117
102
|
{
|
|
118
103
|
className: "absolute -right-0.5 -top-0.5 h-[8px] w-[8px] rounded-ds-full bg-error-9 ring-2 ring-surface-2",
|
|
119
104
|
"data-slot": "avatar-badge-dot",
|
|
120
105
|
"aria-hidden": "true"
|
|
121
106
|
}
|
|
122
|
-
) : typeof t == "number" ? /* @__PURE__ */
|
|
123
|
-
|
|
107
|
+
) : typeof t == "number" ? /* @__PURE__ */ s(
|
|
108
|
+
f.span,
|
|
124
109
|
{
|
|
125
110
|
initial: { scale: 0 },
|
|
126
111
|
animate: { scale: 1 },
|
|
127
|
-
transition:
|
|
112
|
+
transition: C.bouncy,
|
|
128
113
|
className: "absolute -right-1 -top-1 flex min-w-[16px] items-center justify-center rounded-ds-full bg-error-9 px-1 text-[10px] font-bold leading-[16px] text-error-fg ring-2 ring-surface-2",
|
|
129
114
|
"data-slot": "avatar-badge",
|
|
130
115
|
role: "status",
|
|
131
116
|
"aria-label": `${t > 99 ? "99+" : t} notifications`,
|
|
132
117
|
children: t > 99 ? "99+" : t
|
|
133
118
|
}
|
|
134
|
-
) : /* @__PURE__ */
|
|
135
|
-
] });
|
|
119
|
+
) : /* @__PURE__ */ s("span", { className: "absolute -right-1 -top-1", "data-slot": "avatar-badge-custom", children: t }))
|
|
120
|
+
] }) });
|
|
136
121
|
});
|
|
137
|
-
|
|
138
|
-
const
|
|
139
|
-
|
|
122
|
+
q.displayName = y.displayName;
|
|
123
|
+
const I = i.forwardRef(({ className: o, ...a }, n) => /* @__PURE__ */ s(
|
|
124
|
+
f.span,
|
|
140
125
|
{
|
|
141
126
|
initial: { opacity: 0, scale: 0.96 },
|
|
142
127
|
animate: { opacity: 1, scale: 1 },
|
|
143
|
-
transition:
|
|
128
|
+
transition: C.smooth,
|
|
144
129
|
className: "absolute inset-0 h-full w-full",
|
|
145
|
-
children: /* @__PURE__ */
|
|
146
|
-
|
|
130
|
+
children: /* @__PURE__ */ s(
|
|
131
|
+
N,
|
|
147
132
|
{
|
|
148
|
-
ref:
|
|
149
|
-
className:
|
|
133
|
+
ref: n,
|
|
134
|
+
className: r("aspect-square h-full w-full", o),
|
|
150
135
|
...a
|
|
151
136
|
}
|
|
152
137
|
)
|
|
153
138
|
}
|
|
154
139
|
));
|
|
155
|
-
|
|
156
|
-
const
|
|
157
|
-
const t = typeof
|
|
158
|
-
return /* @__PURE__ */
|
|
159
|
-
|
|
140
|
+
I.displayName = N.displayName;
|
|
141
|
+
const L = i.forwardRef(({ className: o, colorSeed: a, children: n, ...e }, l) => {
|
|
142
|
+
const t = typeof n == "string" ? n : "", d = j(a ?? t), c = i.useContext(A), u = c === "square" ? "rounded-ds-none" : c === "rounded" ? "rounded-ds-md" : "rounded-ds-full", m = t.length === 1 ? "tracking-wide" : "tracking-normal";
|
|
143
|
+
return /* @__PURE__ */ s(
|
|
144
|
+
k,
|
|
160
145
|
{
|
|
161
146
|
ref: l,
|
|
162
147
|
"data-slot": "avatar-fallback",
|
|
163
|
-
className:
|
|
164
|
-
"flex h-full w-full items-center justify-center
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
d,
|
|
148
|
+
className: r(
|
|
149
|
+
"flex h-full w-full items-center justify-center",
|
|
150
|
+
u,
|
|
151
|
+
d.bg,
|
|
152
|
+
d.text,
|
|
153
|
+
m,
|
|
168
154
|
o
|
|
169
155
|
),
|
|
170
156
|
...e,
|
|
171
|
-
children:
|
|
157
|
+
children: n
|
|
172
158
|
}
|
|
173
159
|
);
|
|
174
160
|
});
|
|
175
|
-
|
|
161
|
+
L.displayName = k.displayName;
|
|
176
162
|
export {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
163
|
+
q as Avatar,
|
|
164
|
+
L as AvatarFallback,
|
|
165
|
+
I as AvatarImage,
|
|
166
|
+
x as avatarVariants
|
|
181
167
|
};
|
package/dist/ui/badge.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
3
|
-
import { IconX as
|
|
3
|
+
import { IconX as g } from "@tabler/icons-react";
|
|
4
4
|
import * as b from "react";
|
|
5
5
|
import { ag as m } from "../_chunks/vendor-utils.js";
|
|
6
6
|
import { cn as u } from "./lib/utils.js";
|
|
7
7
|
import { m as f } from "../_chunks/framer.js";
|
|
8
8
|
const x = m(
|
|
9
|
-
"inline-flex items-center gap-ds-02b font-sans font-medium rounded-ds-full border",
|
|
9
|
+
"inline-flex items-center gap-ds-02b font-sans font-medium rounded-ds-full border transition-colors duration-fast-01 ease-productive-standard",
|
|
10
10
|
{
|
|
11
11
|
variants: {
|
|
12
12
|
variant: {
|
|
@@ -100,7 +100,7 @@ const x = m(
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
), v = b.forwardRef(
|
|
103
|
-
({ className: o, variant: s, color: n, size: c, dot: l, onDismiss: r, children: e, ...i },
|
|
103
|
+
({ className: o, variant: s, color: n, size: c, dot: l, onDismiss: r, children: e, ...i }, d) => /* @__PURE__ */ t("span", { ref: d, className: u(x({ variant: s, color: n, size: c }), o), ...i, children: [
|
|
104
104
|
l && /* @__PURE__ */ t("span", { className: "relative inline-flex h-ds-02b w-ds-02b shrink-0", "aria-hidden": "true", children: [
|
|
105
105
|
/* @__PURE__ */ a(
|
|
106
106
|
f.span,
|
|
@@ -118,9 +118,9 @@ const x = m(
|
|
|
118
118
|
{
|
|
119
119
|
type: "button",
|
|
120
120
|
onClick: r,
|
|
121
|
-
className: "ml-ds-01 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-full text-
|
|
121
|
+
className: "ml-ds-01 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-full text-current/60 hover:text-current hover:bg-current/10 transition-[color,background-color,transform] duration-fast-02 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
|
|
122
122
|
"aria-label": `Remove ${typeof e == "string" ? e : ""}`.trim() || "Remove",
|
|
123
|
-
children: /* @__PURE__ */ a(
|
|
123
|
+
children: /* @__PURE__ */ a(g, { className: "h-ico-sm w-ico-sm" })
|
|
124
124
|
}
|
|
125
125
|
)
|
|
126
126
|
] })
|
package/dist/ui/banner.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as e, jsxs as
|
|
3
|
-
import { IconInfoCircle as n, IconAlertCircle as
|
|
2
|
+
import { jsx as e, jsxs as p } from "react/jsx-runtime";
|
|
3
|
+
import { IconInfoCircle as n, IconAlertCircle as h, IconAlertTriangle as x, IconCircleCheck as v, IconX as w } from "@tabler/icons-react";
|
|
4
4
|
import * as r from "react";
|
|
5
|
-
import { ag as
|
|
6
|
-
import { cn as
|
|
7
|
-
import { springs as
|
|
8
|
-
import { A as
|
|
9
|
-
const _ =
|
|
5
|
+
import { ag as N } from "../_chunks/vendor-utils.js";
|
|
6
|
+
import { cn as I } from "./lib/utils.js";
|
|
7
|
+
import { springs as C, motionProps as y } from "./lib/motion.js";
|
|
8
|
+
import { A as k, m as A } from "../_chunks/framer.js";
|
|
9
|
+
const _ = N(
|
|
10
10
|
"flex flex-wrap items-center gap-ds-04 px-ds-06 py-ds-04 text-ds-md font-medium border-b",
|
|
11
11
|
{
|
|
12
12
|
variants: {
|
|
@@ -24,33 +24,33 @@ const _ = k(
|
|
|
24
24
|
info: n,
|
|
25
25
|
success: v,
|
|
26
26
|
warning: x,
|
|
27
|
-
error:
|
|
27
|
+
error: h,
|
|
28
28
|
neutral: n
|
|
29
29
|
}, j = r.forwardRef(
|
|
30
|
-
({ className:
|
|
31
|
-
const
|
|
30
|
+
({ className: i, color: s = "info", action: a, actions: c, onDismiss: o, children: d, ...l }, m) => {
|
|
31
|
+
const t = c ?? a, u = V[s ?? "info"], [f, b] = r.useState(!0), g = r.useCallback(() => {
|
|
32
32
|
b(!1);
|
|
33
33
|
}, []);
|
|
34
|
-
return /* @__PURE__ */ e(
|
|
34
|
+
return /* @__PURE__ */ e(k, { onExitComplete: o, children: f && /* @__PURE__ */ p(
|
|
35
35
|
A.div,
|
|
36
36
|
{
|
|
37
37
|
ref: m,
|
|
38
38
|
initial: { height: "auto", opacity: 1 },
|
|
39
39
|
exit: { height: 0, opacity: 0 },
|
|
40
|
-
transition:
|
|
41
|
-
className:
|
|
40
|
+
transition: C.snappy,
|
|
41
|
+
className: I(_({ color: s }), "overflow-hidden", i),
|
|
42
42
|
role: "alert",
|
|
43
|
-
...
|
|
43
|
+
...y(l),
|
|
44
44
|
children: [
|
|
45
|
-
/* @__PURE__ */ e(
|
|
46
|
-
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children:
|
|
47
|
-
|
|
45
|
+
/* @__PURE__ */ e(u, { className: "h-ico-md w-ico-md shrink-0", "aria-hidden": "true" }),
|
|
46
|
+
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: d }),
|
|
47
|
+
t && /* @__PURE__ */ e("div", { className: "flex shrink-0 items-center gap-ds-02 [&_button]:transition-colors [&_button]:duration-moderate-01 [&_button]:ease-productive-standard [&_button:hover]:bg-current/10", children: t }),
|
|
48
48
|
o && /* @__PURE__ */ e(
|
|
49
49
|
"button",
|
|
50
50
|
{
|
|
51
51
|
type: "button",
|
|
52
52
|
onClick: g,
|
|
53
|
-
className: "shrink-0 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm transition-colors duration-
|
|
53
|
+
className: "shrink-0 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm transition-colors duration-moderate-01 ease-productive-standard hover:bg-current/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
|
|
54
54
|
"aria-label": "Dismiss",
|
|
55
55
|
children: /* @__PURE__ */ e(w, { className: "h-ico-sm w-ico-sm" })
|
|
56
56
|
}
|
package/dist/ui/breadcrumb.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as s, jsxs as
|
|
3
|
-
import { S as
|
|
4
|
-
import { IconDots as
|
|
5
|
-
import * as
|
|
2
|
+
import { jsx as s, jsxs as t } from "react/jsx-runtime";
|
|
3
|
+
import { S as c } from "../_chunks/primitives.js";
|
|
4
|
+
import { IconDots as d, IconChevronRight as n } from "@tabler/icons-react";
|
|
5
|
+
import * as i from "react";
|
|
6
6
|
import { cn as m } from "./lib/utils.js";
|
|
7
|
-
const l =
|
|
7
|
+
const l = i.forwardRef(({ ...e }, r) => /* @__PURE__ */ s("nav", { ref: r, "aria-label": "breadcrumb", ...e }));
|
|
8
8
|
l.displayName = "Breadcrumb";
|
|
9
|
-
const
|
|
9
|
+
const u = i.forwardRef(
|
|
10
10
|
({ className: e, ...r }, a) => /* @__PURE__ */ s(
|
|
11
11
|
"ol",
|
|
12
12
|
{
|
|
@@ -19,30 +19,30 @@ const f = o.forwardRef(
|
|
|
19
19
|
}
|
|
20
20
|
)
|
|
21
21
|
);
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
({ className: e, ...r }, a) => /* @__PURE__ */ s("li", { ref: a, className: m("inline-flex items-center gap-ds-
|
|
22
|
+
u.displayName = "BreadcrumbList";
|
|
23
|
+
const f = i.forwardRef(
|
|
24
|
+
({ className: e, ...r }, a) => /* @__PURE__ */ s("li", { ref: a, className: m("inline-flex items-center gap-ds-03", e), ...r })
|
|
25
25
|
);
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
r ?
|
|
26
|
+
f.displayName = "BreadcrumbItem";
|
|
27
|
+
const p = i.forwardRef(({ className: e, asChild: r = !1, ...a }, o) => /* @__PURE__ */ s(
|
|
28
|
+
r ? c : "a",
|
|
29
29
|
{
|
|
30
|
-
ref:
|
|
30
|
+
ref: o,
|
|
31
31
|
className: m(
|
|
32
|
-
"transition-colors hover:text-surface-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 rounded-ds-sm",
|
|
32
|
+
"transition-colors duration-fast-01 ease-productive-standard hover:text-surface-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 rounded-ds-sm",
|
|
33
33
|
e
|
|
34
34
|
),
|
|
35
35
|
...a
|
|
36
36
|
}
|
|
37
37
|
));
|
|
38
|
-
|
|
39
|
-
const b =
|
|
38
|
+
p.displayName = "BreadcrumbLink";
|
|
39
|
+
const b = i.forwardRef(
|
|
40
40
|
({ className: e, ...r }, a) => /* @__PURE__ */ s(
|
|
41
41
|
"span",
|
|
42
42
|
{
|
|
43
43
|
ref: a,
|
|
44
44
|
"aria-current": "page",
|
|
45
|
-
className: m("font-
|
|
45
|
+
className: m("font-medium text-surface-fg", e),
|
|
46
46
|
...r
|
|
47
47
|
}
|
|
48
48
|
)
|
|
@@ -55,11 +55,11 @@ const N = ({ children: e, className: r, ...a }) => /* @__PURE__ */ s(
|
|
|
55
55
|
"aria-hidden": "true",
|
|
56
56
|
className: m("[&>svg]:h-ico-sm [&>svg]:w-ico-sm", r),
|
|
57
57
|
...a,
|
|
58
|
-
children: e ?? /* @__PURE__ */ s(
|
|
58
|
+
children: e ?? /* @__PURE__ */ s(n, {})
|
|
59
59
|
}
|
|
60
60
|
);
|
|
61
61
|
N.displayName = "BreadcrumbSeparator";
|
|
62
|
-
const g = ({ className: e, ...r }) => /* @__PURE__ */
|
|
62
|
+
const g = ({ className: e, ...r }) => /* @__PURE__ */ t(
|
|
63
63
|
"span",
|
|
64
64
|
{
|
|
65
65
|
role: "presentation",
|
|
@@ -67,7 +67,7 @@ const g = ({ className: e, ...r }) => /* @__PURE__ */ i(
|
|
|
67
67
|
className: m("flex h-ds-sm-plus w-ds-sm-plus items-center justify-center", e),
|
|
68
68
|
...r,
|
|
69
69
|
children: [
|
|
70
|
-
/* @__PURE__ */ s(
|
|
70
|
+
/* @__PURE__ */ s(d, { className: "h-ico-sm w-ico-sm" }),
|
|
71
71
|
/* @__PURE__ */ s("span", { className: "sr-only", children: "More" })
|
|
72
72
|
]
|
|
73
73
|
}
|
|
@@ -76,9 +76,9 @@ g.displayName = "BreadcrumbEllipsis";
|
|
|
76
76
|
export {
|
|
77
77
|
l as Breadcrumb,
|
|
78
78
|
g as BreadcrumbEllipsis,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
f as BreadcrumbItem,
|
|
80
|
+
p as BreadcrumbLink,
|
|
81
|
+
u as BreadcrumbList,
|
|
82
82
|
b as BreadcrumbPage,
|
|
83
83
|
N as BreadcrumbSeparator
|
|
84
84
|
};
|