@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.
@@ -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 { m as u } from "./vendor.js";
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: {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as r, jsxs as x } from "react/jsx-runtime";
3
- import { m as V } from "./vendor.js";
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";
@@ -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 { m as l } from "./vendor.js";
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) {
@@ -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 { m as z } from "./vendor.js";
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
- (m) => {
60
- const b = typeof m == "function" ? m(h) : m;
61
- t ? t(b) : y(b), document.cookie = `${Y}=${b}; path=/; max-age=${J}`;
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((m) => !m) : w((m) => !m), [l, w, p]);
64
+ ), S = C(() => l ? p((b) => !b) : w((b) => !b), [l, w, p]);
65
65
  j(() => {
66
- const m = (b) => {
67
- b.key === ae && (b.metaKey || b.ctrlKey) && (b.preventDefault(), S());
66
+ const b = (m) => {
67
+ m.key === ae && (m.metaKey || m.ctrlKey) && (m.preventDefault(), S());
68
68
  };
69
- return window.addEventListener("keydown", m), () => window.removeEventListener("keydown", m);
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 me = o(({ className: a, asChild: e = !1, ...t }, d) => /* @__PURE__ */ r(
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
- me.displayName = "SidebarGroupLabel";
346
- const be = o(({ className: a, asChild: e = !1, ...t }, d) => /* @__PURE__ */ r(
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
- be.displayName = "SidebarGroupAction";
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
- me as e,
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
- be as m,
579
+ me as m,
580
580
  oe as n,
581
581
  de as o,
582
582
  ye as p,
@@ -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, e as Dl, g as Ts, i as Os, r as Qr, t as Rl, j as Il } from "./vendor.js";
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)
@@ -1,5 +1,4 @@
1
- "use client";
2
- import { n as s, p as t } from "./vendor.js";
1
+ import { g as s, h as t } from "./vendor-utils.js";
3
2
  const n = t({
4
3
  extend: {
5
4
  classGroups: {