@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
package/dist/_chunks/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 "./primitives.js";
|
|
5
|
-
import {
|
|
5
|
+
import { e as u } from "./vendor-utils.js";
|
|
6
6
|
import { c as r } from "./utils.js";
|
|
7
7
|
const h = u("relative flex shrink-0 overflow-hidden", {
|
|
8
8
|
variants: {
|
package/dist/_chunks/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 V } from "./vendor-utils.js";
|
|
4
4
|
import { S as R, a as E } from "./primitives.js";
|
|
5
5
|
import * as G from "react";
|
|
6
6
|
import { u as M, S as q } from "./spinner.js";
|
package/dist/_chunks/card.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
3
3
|
import * as o from "react";
|
|
4
4
|
import { bj as n, bk as c } from "./primitives.js";
|
|
5
5
|
import { c as s } from "./utils.js";
|
|
6
|
-
import {
|
|
6
|
+
import { e as l } from "./vendor-utils.js";
|
|
7
7
|
const f = o.forwardRef(({ className: e, error: r, ...a }, d) => t(n, { className: s("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-ds-full border-2 border-transparent shadow-01 transition-colors duration-fast-01 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-[0.38] data-[state=checked]:bg-interactive data-[state=unchecked]:bg-border-strong", r && "border-border-error data-[state=checked]:bg-error", e), ...a, ref: d, children: t(c, { className: s("pointer-events-none block h-ico-md w-ico-md rounded-ds-full bg-text-on-color shadow-02 ring-0 transition-transform duration-fast-01 data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0") }) }));
|
|
8
8
|
f.displayName = n.displayName;
|
|
9
9
|
const b = l("rounded-ds-lg text-text-primary", {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import K from "react";
|
|
4
4
|
import { jsx as l, Fragment as fe, jsxs as ne } from "react/jsx-runtime";
|
|
5
|
-
import { R as $t, h as Lt, u as zl, o as Yl, s as Xl, f as jl, a as ql, b as Zl, c as Jl, l as Ql, d as eu } from "./vendor.js";
|
|
5
|
+
import { R as $t, h as Lt, u as zl, o as Yl, s as Xl, f as jl, a as ql, b as Zl, c as Jl, l as Ql, d as eu } from "./vendor-client.js";
|
|
6
6
|
import * as Ft from "react-dom";
|
|
7
7
|
import fr from "react-dom";
|
|
8
8
|
function tu(e, o) {
|
package/dist/_chunks/sidebar.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as r, jsxs as x } from "react/jsx-runtime";
|
|
3
3
|
import { bi as I, S as v } from "./primitives.js";
|
|
4
|
-
import {
|
|
4
|
+
import { e as z } from "./vendor-utils.js";
|
|
5
5
|
import { IconLayoutSidebarLeftCollapse as O } from "@tabler/icons-react";
|
|
6
6
|
import { useIsMobile as G } from "../hooks/use-mobile.js";
|
|
7
7
|
import { c as i } from "./utils.js";
|
|
@@ -56,17 +56,17 @@ const te = o(
|
|
|
56
56
|
...c
|
|
57
57
|
}, f) => {
|
|
58
58
|
const l = G(), [u, p] = _(!1), [g, y] = _(a), h = e ?? g, w = C(
|
|
59
|
-
(
|
|
60
|
-
const
|
|
61
|
-
t ? t(
|
|
59
|
+
(b) => {
|
|
60
|
+
const m = typeof b == "function" ? b(h) : b;
|
|
61
|
+
t ? t(m) : y(m), document.cookie = `${Y}=${m}; path=/; max-age=${J}`;
|
|
62
62
|
},
|
|
63
63
|
[t, h]
|
|
64
|
-
), S = C(() => l ? p((
|
|
64
|
+
), S = C(() => l ? p((b) => !b) : w((b) => !b), [l, w, p]);
|
|
65
65
|
j(() => {
|
|
66
|
-
const
|
|
67
|
-
|
|
66
|
+
const b = (m) => {
|
|
67
|
+
m.key === ae && (m.metaKey || m.ctrlKey) && (m.preventDefault(), S());
|
|
68
68
|
};
|
|
69
|
-
return window.addEventListener("keydown",
|
|
69
|
+
return window.addEventListener("keydown", b), () => window.removeEventListener("keydown", b);
|
|
70
70
|
}, [S]);
|
|
71
71
|
const M = h ? "expanded" : "collapsed", D = E(
|
|
72
72
|
() => ({
|
|
@@ -329,7 +329,7 @@ const pe = o(
|
|
|
329
329
|
)
|
|
330
330
|
);
|
|
331
331
|
pe.displayName = "SidebarGroup";
|
|
332
|
-
const
|
|
332
|
+
const be = o(({ className: a, asChild: e = !1, ...t }, d) => /* @__PURE__ */ r(
|
|
333
333
|
e ? v : "div",
|
|
334
334
|
{
|
|
335
335
|
ref: d,
|
|
@@ -342,8 +342,8 @@ const me = o(({ className: a, asChild: e = !1, ...t }, d) => /* @__PURE__ */ r(
|
|
|
342
342
|
...t
|
|
343
343
|
}
|
|
344
344
|
));
|
|
345
|
-
|
|
346
|
-
const
|
|
345
|
+
be.displayName = "SidebarGroupLabel";
|
|
346
|
+
const me = o(({ className: a, asChild: e = !1, ...t }, d) => /* @__PURE__ */ r(
|
|
347
347
|
e ? v : "button",
|
|
348
348
|
{
|
|
349
349
|
ref: d,
|
|
@@ -357,7 +357,7 @@ const be = o(({ className: a, asChild: e = !1, ...t }, d) => /* @__PURE__ */ r(
|
|
|
357
357
|
...t
|
|
358
358
|
}
|
|
359
359
|
));
|
|
360
|
-
|
|
360
|
+
me.displayName = "SidebarGroupAction";
|
|
361
361
|
const fe = o(
|
|
362
362
|
({ className: a, ...e }, t) => /* @__PURE__ */ r(
|
|
363
363
|
"div",
|
|
@@ -568,7 +568,7 @@ export {
|
|
|
568
568
|
ce as b,
|
|
569
569
|
ue as c,
|
|
570
570
|
pe as d,
|
|
571
|
-
|
|
571
|
+
be as e,
|
|
572
572
|
fe as f,
|
|
573
573
|
ge as g,
|
|
574
574
|
le as h,
|
|
@@ -576,7 +576,7 @@ export {
|
|
|
576
576
|
ve as j,
|
|
577
577
|
se as k,
|
|
578
578
|
R as l,
|
|
579
|
-
|
|
579
|
+
me as m,
|
|
580
580
|
oe as n,
|
|
581
581
|
de as o,
|
|
582
582
|
ye as p,
|
package/dist/_chunks/tiptap.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import $, { useRef as xl, useState as xs, useDebugValue as Ms, useEffect as Cs, forwardRef as Ml, useLayoutEffect as Cl, createRef as wl, memo as Tl, createElement as Ol, createContext as ws, version as Xr, useContext as El } from "react";
|
|
3
3
|
import vl, { flushSync as Nl } from "react-dom";
|
|
4
|
-
import { O as Zr, k as Al,
|
|
4
|
+
import { O as Zr, k as Al, c as Dl, R as Ts, f as Os, r as Qr, t as Rl, d as Il } from "./vendor-utils.js";
|
|
5
5
|
function Es(n, e, t) {
|
|
6
6
|
for (let r = 0; ; r++) {
|
|
7
7
|
if (r == n.childCount || r == e.childCount)
|
package/dist/_chunks/utils.js
CHANGED