@devalok/shilp-sutra 0.9.0 → 0.9.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/avatar.js +1 -1
- package/dist/_chunks/button.js +1 -1
- package/dist/_chunks/card.js +1 -1
- package/dist/_chunks/primitives.js +1 -1
- package/dist/_chunks/sidebar.js +14 -14
- package/dist/_chunks/tiptap.js +1 -1
- package/dist/_chunks/utils.js +1 -2
- package/dist/_chunks/vendor-client.js +1835 -0
- package/dist/_chunks/vendor-utils.js +3995 -0
- package/dist/composed/avatar-group.js +1 -1
- package/dist/composed/content-card.js +5 -5
- package/dist/composed/priority-indicator.js +1 -1
- package/dist/composed/status-badge.js +1 -1
- package/dist/ui/alert.js +1 -1
- package/dist/ui/avatar.js +1 -1
- package/dist/ui/badge.js +1 -1
- package/dist/ui/banner.js +4 -4
- package/dist/ui/button.js +1 -1
- package/dist/ui/card.js +1 -1
- package/dist/ui/chip.js +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/ui/input.js +4 -4
- package/dist/ui/lib/utils.js +1 -1
- package/dist/ui/progress.js +1 -1
- package/dist/ui/segmented-control.js +1 -1
- package/dist/ui/select.js +1 -1
- package/dist/ui/sheet.js +1 -1
- package/dist/ui/sidebar.js +1 -1
- package/dist/ui/skeleton.js +4 -4
- package/dist/ui/tabs.js +10 -10
- package/dist/ui/text.js +1 -1
- package/dist/ui/textarea.js +1 -1
- package/dist/ui/toast.js +1 -1
- package/dist/ui/toggle.js +5 -5
- package/package.json +1 -1
- package/dist/_chunks/vendor.js +0 -5823
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
3
3
|
import * as u from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { e as w } from "../_chunks/vendor-utils.js";
|
|
5
5
|
import { c as d } from "../_chunks/utils.js";
|
|
6
6
|
import { A, a as T, b as C } from "../_chunks/avatar.js";
|
|
7
7
|
import { T as I, a as f, b as p, c as h } from "../_chunks/tooltip.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
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 {
|
|
3
|
+
import { e as v } from "../_chunks/vendor-utils.js";
|
|
4
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",
|
|
@@ -51,18 +51,18 @@ const h = v(
|
|
|
51
51
|
footer: s,
|
|
52
52
|
className: p,
|
|
53
53
|
children: l,
|
|
54
|
-
...
|
|
55
|
-
},
|
|
54
|
+
...u
|
|
55
|
+
}, m) => {
|
|
56
56
|
const n = c || d || o;
|
|
57
57
|
return /* @__PURE__ */ i(
|
|
58
58
|
"div",
|
|
59
59
|
{
|
|
60
|
-
ref:
|
|
60
|
+
ref: m,
|
|
61
61
|
className: t(
|
|
62
62
|
h({ variant: r, padding: n || s ? "none" : a }),
|
|
63
63
|
p
|
|
64
64
|
),
|
|
65
|
-
...
|
|
65
|
+
...u,
|
|
66
66
|
children: [
|
|
67
67
|
n && /* @__PURE__ */ e(
|
|
68
68
|
"div",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { e as f } from "../_chunks/vendor-utils.js";
|
|
4
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 = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import * as m from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { e as y } from "../_chunks/vendor-utils.js";
|
|
4
4
|
import { c as r } from "../_chunks/utils.js";
|
|
5
5
|
const g = y(
|
|
6
6
|
"inline-flex items-center gap-ds-02b rounded-ds-full font-body",
|
package/dist/ui/alert.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import { IconInfoCircle as s, IconAlertCircle as x, IconAlertTriangle as m, IconCircleCheck as u, IconX as f } from "@tabler/icons-react";
|
|
4
4
|
import * as g from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { e as v } from "../_chunks/vendor-utils.js";
|
|
6
6
|
import { c as p } from "../_chunks/utils.js";
|
|
7
7
|
const N = v(
|
|
8
8
|
"relative flex gap-ds-04 rounded-ds-lg border p-ds-05",
|
package/dist/ui/avatar.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsxs as p, jsx as l } from "react/jsx-runtime";
|
|
3
3
|
import * as i from "react";
|
|
4
4
|
import { R as n, I as o, F as t } from "../_chunks/primitives.js";
|
|
5
|
-
import {
|
|
5
|
+
import { e as u } from "../_chunks/vendor-utils.js";
|
|
6
6
|
import { c as r } from "../_chunks/utils.js";
|
|
7
7
|
const w = u(
|
|
8
8
|
"relative flex shrink-0 overflow-hidden",
|
package/dist/ui/badge.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsxs as d, jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import { IconX as b } from "@tabler/icons-react";
|
|
4
4
|
import * as g from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { e as x } from "../_chunks/vendor-utils.js";
|
|
6
6
|
import { c as m } from "../_chunks/utils.js";
|
|
7
7
|
const u = x(
|
|
8
8
|
"inline-flex items-center gap-ds-02b font-sans font-medium rounded-ds-full border",
|
package/dist/ui/banner.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
3
|
-
import { IconInfoCircle as n, IconAlertCircle as
|
|
3
|
+
import { IconInfoCircle as n, IconAlertCircle as f, IconAlertTriangle as m, IconCircleCheck as b, IconX as u } from "@tabler/icons-react";
|
|
4
4
|
import * as x from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { e as g } from "../_chunks/vendor-utils.js";
|
|
6
6
|
import { c as p } from "../_chunks/utils.js";
|
|
7
7
|
const h = g(
|
|
8
8
|
"flex items-center gap-ds-04 px-ds-06 py-ds-04 text-ds-md font-medium border-b",
|
|
@@ -21,8 +21,8 @@ const h = g(
|
|
|
21
21
|
), N = {
|
|
22
22
|
info: n,
|
|
23
23
|
success: b,
|
|
24
|
-
warning:
|
|
25
|
-
error:
|
|
24
|
+
warning: m,
|
|
25
|
+
error: f,
|
|
26
26
|
neutral: n
|
|
27
27
|
}, v = x.forwardRef(
|
|
28
28
|
({ className: t, color: e = "info", action: s, onDismiss: o, children: i, ...c }, a) => {
|
package/dist/ui/button.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as r, jsxs as x } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { e as B } from "../_chunks/vendor-utils.js";
|
|
4
4
|
import { S as R, a as E } from "../_chunks/primitives.js";
|
|
5
5
|
import * as G from "react";
|
|
6
6
|
import { u as M, S as q } from "../_chunks/spinner.js";
|
package/dist/ui/card.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as d } from "react/jsx-runtime";
|
|
3
3
|
import * as t from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { e as i } from "../_chunks/vendor-utils.js";
|
|
5
5
|
import { c as o } from "../_chunks/utils.js";
|
|
6
6
|
const l = i(
|
|
7
7
|
"rounded-ds-lg text-text-primary",
|
package/dist/ui/chip.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsxs as v, jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import * as f from "react";
|
|
4
4
|
import { IconX as p } from "@tabler/icons-react";
|
|
5
|
-
import {
|
|
5
|
+
import { e as N } from "../_chunks/vendor-utils.js";
|
|
6
6
|
import { c as h } from "../_chunks/utils.js";
|
|
7
7
|
const w = N(
|
|
8
8
|
"inline-flex items-center gap-ds-02 font-sans leading-ds-relaxed rounded-ds-full transition-colors duration-fast-01",
|
package/dist/ui/index.js
CHANGED
|
@@ -34,7 +34,7 @@ import { Popover as kt, PopoverAnchor as Bt, PopoverContent as Gt, PopoverTrigge
|
|
|
34
34
|
import { HoverCard as Ht, HoverCardContent as zt, HoverCardTrigger as Ot } from "./hover-card.js";
|
|
35
35
|
import { Collapsible as Et, CollapsibleContent as Ut, CollapsibleTrigger as qt } from "./collapsible.js";
|
|
36
36
|
import { IconInfoCircle as x, IconAlertCircle as C, IconAlertTriangle as T, IconCircleCheck as w, IconX as y } from "@tabler/icons-react";
|
|
37
|
-
import {
|
|
37
|
+
import { e as d } from "../_chunks/vendor-utils.js";
|
|
38
38
|
import { Banner as _t, bannerVariants as Jt } from "./banner.js";
|
|
39
39
|
import { A as Qt, b as Wt, a as Yt, c as Zt } from "../_chunks/avatar.js";
|
|
40
40
|
import { Table as ea, TableBody as ra, TableCaption as ta, TableCell as aa, TableFooter as oa, TableHead as na, TableHeader as sa, TableRow as ia } from "./table.js";
|
package/dist/ui/input.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o, jsxs as f } from "react/jsx-runtime";
|
|
3
3
|
import * as v from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { e as p } from "../_chunks/vendor-utils.js";
|
|
5
5
|
import { c as x } from "../_chunks/utils.js";
|
|
6
6
|
import { u as g } from "../_chunks/form.js";
|
|
7
7
|
const h = p(
|
|
@@ -28,7 +28,7 @@ const h = p(
|
|
|
28
28
|
}
|
|
29
29
|
), y = v.forwardRef(
|
|
30
30
|
({ className: d, type: l, state: n, size: c, startIcon: e, endIcon: r, ...t }, u) => {
|
|
31
|
-
const s = g(), i = n ?? (s.state === "helper" ? void 0 : s.state),
|
|
31
|
+
const s = g(), i = n ?? (s.state === "helper" ? void 0 : s.state), b = t["aria-describedby"] ?? s.helperTextId, m = t["aria-required"] ?? s.required, a = /* @__PURE__ */ o(
|
|
32
32
|
"input",
|
|
33
33
|
{
|
|
34
34
|
type: l,
|
|
@@ -42,8 +42,8 @@ const h = p(
|
|
|
42
42
|
d
|
|
43
43
|
),
|
|
44
44
|
"aria-invalid": i === "error" || void 0,
|
|
45
|
-
"aria-describedby":
|
|
46
|
-
"aria-required":
|
|
45
|
+
"aria-describedby": b,
|
|
46
|
+
"aria-required": m || void 0,
|
|
47
47
|
ref: u,
|
|
48
48
|
...t
|
|
49
49
|
}
|
package/dist/ui/lib/utils.js
CHANGED
package/dist/ui/progress.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsxs as t, jsx as n } from "react/jsx-runtime";
|
|
3
3
|
import * as p from "react";
|
|
4
4
|
import { aU as i, aV as u } from "../_chunks/primitives.js";
|
|
5
|
-
import {
|
|
5
|
+
import { e as o } from "../_chunks/vendor-utils.js";
|
|
6
6
|
import { c as a } from "../_chunks/utils.js";
|
|
7
7
|
const x = o(
|
|
8
8
|
"relative w-full overflow-hidden rounded-ds-full bg-layer-02",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as h, jsxs as C } from "react/jsx-runtime";
|
|
3
3
|
import w, { useState as D, useCallback as M, useRef as S } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { e as I } from "../_chunks/vendor-utils.js";
|
|
5
5
|
import { c as N } from "../_chunks/utils.js";
|
|
6
6
|
function z(i = 600) {
|
|
7
7
|
const [v, d] = D([]), n = M((a) => {
|
package/dist/ui/select.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
|
3
3
|
import * as r from "react";
|
|
4
4
|
import { al as c, am as w, an as n, ao as m, ap as N, aq as p, ar as g, as as f, at as u, au as v, av as S, aw as h, ax as I, ay as R, az as j } from "../_chunks/primitives.js";
|
|
5
5
|
import { IconChevronDown as b, IconChevronUp as z, IconCheck as C } from "@tabler/icons-react";
|
|
6
|
-
import {
|
|
6
|
+
import { e as V } from "../_chunks/vendor-utils.js";
|
|
7
7
|
import { c as o } from "../_chunks/utils.js";
|
|
8
8
|
const F = I, H = R, J = j, B = V(
|
|
9
9
|
"flex w-full items-center justify-between whitespace-nowrap rounded-ds-md border border-border bg-field placeholder:text-text-placeholder focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 focus-visible:border-border-interactive disabled:cursor-not-allowed disabled:opacity-[0.38] [&>span]:line-clamp-1",
|
package/dist/ui/sheet.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as s, jsxs as d } from "react/jsx-runtime";
|
|
3
3
|
import * as o from "react";
|
|
4
4
|
import { aa as i, ab as x, ac as l, ad as n, ae as m, af as c, ag as b, ah as y } from "../_chunks/primitives.js";
|
|
5
|
-
import {
|
|
5
|
+
import { e as u } from "../_chunks/vendor-utils.js";
|
|
6
6
|
import { IconX as g } from "@tabler/icons-react";
|
|
7
7
|
import { c as r } from "../_chunks/utils.js";
|
|
8
8
|
const O = b, P = y, V = n, N = x, f = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
package/dist/ui/sidebar.js
CHANGED
package/dist/ui/skeleton.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import * as r from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { c as
|
|
5
|
-
const l =
|
|
3
|
+
import { e as i } from "../_chunks/vendor-utils.js";
|
|
4
|
+
import { c as m } from "../_chunks/utils.js";
|
|
5
|
+
const l = i("bg-skeleton-base", {
|
|
6
6
|
variants: {
|
|
7
7
|
variant: {
|
|
8
8
|
rectangle: "rounded-ds-md",
|
|
@@ -24,7 +24,7 @@ const l = m("bg-skeleton-base", {
|
|
|
24
24
|
"div",
|
|
25
25
|
{
|
|
26
26
|
ref: s,
|
|
27
|
-
className:
|
|
27
|
+
className: m(l({ variant: a, animation: t }), e),
|
|
28
28
|
...n
|
|
29
29
|
}
|
|
30
30
|
)
|
package/dist/ui/tabs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as i } from "react/jsx-runtime";
|
|
3
3
|
import { bl as d, bm as c, bn as l, bo as m } from "../_chunks/primitives.js";
|
|
4
4
|
import * as s from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { e as b } from "../_chunks/vendor-utils.js";
|
|
6
6
|
import { c as o } from "../_chunks/utils.js";
|
|
7
7
|
const C = m, f = s.createContext({ variant: "line" }), p = b("inline-flex items-center", {
|
|
8
8
|
variants: {
|
|
@@ -31,39 +31,39 @@ const C = m, f = s.createContext({ variant: "line" }), p = b("inline-flex items-
|
|
|
31
31
|
},
|
|
32
32
|
defaultVariants: { variant: "line" }
|
|
33
33
|
}
|
|
34
|
-
), x = s.forwardRef(({ className: t, variant:
|
|
35
|
-
const r =
|
|
34
|
+
), x = s.forwardRef(({ className: t, variant: e, ...a }, n) => {
|
|
35
|
+
const r = e ?? "line";
|
|
36
36
|
return /* @__PURE__ */ i(f.Provider, { value: { variant: r }, children: /* @__PURE__ */ i(
|
|
37
37
|
d,
|
|
38
38
|
{
|
|
39
39
|
ref: n,
|
|
40
40
|
className: o(p({ variant: r }), t),
|
|
41
|
-
...
|
|
41
|
+
...a
|
|
42
42
|
}
|
|
43
43
|
) });
|
|
44
44
|
});
|
|
45
45
|
x.displayName = d.displayName;
|
|
46
|
-
const g = s.forwardRef(({ className: t, variant:
|
|
47
|
-
const r = s.useContext(f), v =
|
|
46
|
+
const g = s.forwardRef(({ className: t, variant: e, ...a }, n) => {
|
|
47
|
+
const r = s.useContext(f), v = e ?? r.variant;
|
|
48
48
|
return /* @__PURE__ */ i(
|
|
49
49
|
c,
|
|
50
50
|
{
|
|
51
51
|
ref: n,
|
|
52
52
|
className: o(u({ variant: v }), t),
|
|
53
|
-
...
|
|
53
|
+
...a
|
|
54
54
|
}
|
|
55
55
|
);
|
|
56
56
|
});
|
|
57
57
|
g.displayName = c.displayName;
|
|
58
|
-
const y = s.forwardRef(({ className: t, ...
|
|
58
|
+
const y = s.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ i(
|
|
59
59
|
l,
|
|
60
60
|
{
|
|
61
|
-
ref:
|
|
61
|
+
ref: a,
|
|
62
62
|
className: o(
|
|
63
63
|
"mt-ds-05 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2",
|
|
64
64
|
t
|
|
65
65
|
),
|
|
66
|
-
...
|
|
66
|
+
...e
|
|
67
67
|
}
|
|
68
68
|
));
|
|
69
69
|
y.displayName = l.displayName;
|
package/dist/ui/text.js
CHANGED
package/dist/ui/textarea.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as l } from "react/jsx-runtime";
|
|
3
3
|
import * as c from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { e as b } from "../_chunks/vendor-utils.js";
|
|
5
5
|
import { c as u } from "../_chunks/utils.js";
|
|
6
6
|
import { u as f } from "../_chunks/form.js";
|
|
7
7
|
const m = b(
|
package/dist/ui/toast.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as a } from "react/jsx-runtime";
|
|
3
3
|
import * as o from "react";
|
|
4
4
|
import { aH as i, aI as d, aJ as n, aK as l, aL as c, aM as m, aN as p } from "../_chunks/primitives.js";
|
|
5
|
-
import {
|
|
5
|
+
import { e as u } from "../_chunks/vendor-utils.js";
|
|
6
6
|
import { IconX as x } from "@tabler/icons-react";
|
|
7
7
|
import { c as r } from "../_chunks/utils.js";
|
|
8
8
|
const C = p, b = o.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a(
|
package/dist/ui/toggle.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import * as d from "react";
|
|
4
4
|
import { aE as e } from "../_chunks/primitives.js";
|
|
5
|
-
import {
|
|
6
|
-
import { c as
|
|
7
|
-
const
|
|
5
|
+
import { e as n } from "../_chunks/vendor-utils.js";
|
|
6
|
+
import { c as l } from "../_chunks/utils.js";
|
|
7
|
+
const m = n(
|
|
8
8
|
"inline-flex items-center justify-center gap-ds-03 rounded-ds-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-[0.38] data-[state=on]:bg-interactive-subtle data-[state=on]:text-interactive",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
@@ -27,12 +27,12 @@ const l = n(
|
|
|
27
27
|
e,
|
|
28
28
|
{
|
|
29
29
|
ref: o,
|
|
30
|
-
className: m(
|
|
30
|
+
className: l(m({ variant: s, size: a }), t),
|
|
31
31
|
...i
|
|
32
32
|
}
|
|
33
33
|
));
|
|
34
34
|
f.displayName = e.displayName;
|
|
35
35
|
export {
|
|
36
36
|
f as Toggle,
|
|
37
|
-
|
|
37
|
+
m as toggleVariants
|
|
38
38
|
};
|