@devalok/shilp-sutra 0.18.0 → 0.18.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.
Files changed (123) hide show
  1. package/dist/_chunks/motion-provider.js +24 -0
  2. package/dist/_chunks/primitives.js +101 -101
  3. package/dist/_chunks/tree-view.js +12 -12
  4. package/dist/_chunks/use-calendar.js +1 -1
  5. package/dist/_chunks/vendor-utils.js +2 -2
  6. package/dist/composed/activity-feed.js +21 -21
  7. package/dist/composed/avatar-group.js +25 -25
  8. package/dist/composed/command-palette.js +3 -3
  9. package/dist/composed/confirm-dialog.js +1 -1
  10. package/dist/composed/content-card.js +1 -1
  11. package/dist/composed/empty-state.js +2 -2
  12. package/dist/composed/error-boundary.js +2 -2
  13. package/dist/composed/global-loading.js +10 -10
  14. package/dist/composed/lib/string-utils.d.ts +0 -1
  15. package/dist/composed/lib/string-utils.js +0 -1
  16. package/dist/composed/loading-skeleton.js +1 -1
  17. package/dist/composed/member-picker.js +6 -6
  18. package/dist/composed/page-header.js +1 -1
  19. package/dist/composed/page-skeletons.js +1 -1
  20. package/dist/composed/priority-indicator.js +6 -6
  21. package/dist/composed/rich-text-editor.js +1 -1
  22. package/dist/composed/schedule-view.js +15 -15
  23. package/dist/composed/simple-tooltip.js +8 -8
  24. package/dist/composed/status-badge.js +12 -12
  25. package/dist/motion/index.d.ts +1 -1
  26. package/dist/motion/index.d.ts.map +1 -1
  27. package/dist/motion/index.js +8 -6
  28. package/dist/motion/primitives-index.js +184 -8
  29. package/dist/shell/app-command-palette.js +1 -1
  30. package/dist/shell/bottom-navbar.js +3 -3
  31. package/dist/shell/notification-center.js +35 -35
  32. package/dist/shell/notification-preferences.js +29 -28
  33. package/dist/shell/sidebar.js +56 -56
  34. package/dist/shell/top-bar.js +25 -25
  35. package/dist/ui/accordion.js +11 -11
  36. package/dist/ui/alert-dialog.js +41 -41
  37. package/dist/ui/alert.js +10 -10
  38. package/dist/ui/aspect-ratio.js +5 -5
  39. package/dist/ui/autocomplete.js +15 -15
  40. package/dist/ui/avatar.js +4 -4
  41. package/dist/ui/badge.js +11 -11
  42. package/dist/ui/banner.js +3 -3
  43. package/dist/ui/breadcrumb.js +8 -8
  44. package/dist/ui/button-group.js +4 -4
  45. package/dist/ui/button.js +25 -25
  46. package/dist/ui/card.js +5 -5
  47. package/dist/ui/charts/index.js +4 -4
  48. package/dist/ui/checkbox.js +4 -4
  49. package/dist/ui/chip.js +14 -14
  50. package/dist/ui/code.js +1 -1
  51. package/dist/ui/collapsible.js +7 -7
  52. package/dist/ui/color-input.js +1 -1
  53. package/dist/ui/combobox.js +5 -5
  54. package/dist/ui/container.js +4 -4
  55. package/dist/ui/context-menu.js +4 -4
  56. package/dist/ui/data-table-toolbar.js +18 -18
  57. package/dist/ui/data-table.js +55 -55
  58. package/dist/ui/dialog.js +3 -3
  59. package/dist/ui/dropdown-menu.js +3 -3
  60. package/dist/ui/file-upload.js +10 -10
  61. package/dist/ui/form.js +1 -1
  62. package/dist/ui/hover-card.js +12 -12
  63. package/dist/ui/icon-button.js +9 -9
  64. package/dist/ui/index.js +322 -516
  65. package/dist/ui/input-otp.js +4 -4
  66. package/dist/ui/input.js +9 -9
  67. package/dist/ui/label.js +9 -9
  68. package/dist/ui/lib/date-utils.d.ts +0 -1
  69. package/dist/{_chunks → ui/lib}/date-utils.js +1 -2
  70. package/dist/{_chunks/motion2.js → ui/lib/motion.js} +13 -14
  71. package/dist/ui/lib/use-ripple.d.ts.map +1 -1
  72. package/dist/ui/lib/utils.js +1 -1
  73. package/dist/ui/link.js +1 -1
  74. package/dist/ui/menubar.js +66 -66
  75. package/dist/ui/navigation-menu.js +4 -4
  76. package/dist/ui/number-input.js +9 -9
  77. package/dist/ui/pagination.js +1 -1
  78. package/dist/ui/popover.js +18 -18
  79. package/dist/ui/progress.js +4 -4
  80. package/dist/ui/radio.js +11 -11
  81. package/dist/ui/search-input.js +2 -2
  82. package/dist/ui/segmented-control.d.ts +2 -0
  83. package/dist/ui/segmented-control.d.ts.map +1 -1
  84. package/dist/ui/segmented-control.js +59 -55
  85. package/dist/ui/select.js +19 -19
  86. package/dist/ui/separator.js +5 -5
  87. package/dist/ui/sheet.js +10 -10
  88. package/dist/ui/sidebar.js +574 -38
  89. package/dist/ui/skeleton.js +1 -1
  90. package/dist/ui/slider.js +9 -9
  91. package/dist/ui/spinner.js +2 -2
  92. package/dist/ui/stack.js +1 -1
  93. package/dist/ui/stat-card.js +35 -35
  94. package/dist/ui/stepper.d.ts +1 -3
  95. package/dist/ui/stepper.d.ts.map +1 -1
  96. package/dist/ui/stepper.js +74 -74
  97. package/dist/ui/switch.js +7 -7
  98. package/dist/ui/table.js +28 -28
  99. package/dist/ui/tabs.js +10 -10
  100. package/dist/ui/text.js +1 -1
  101. package/dist/ui/textarea.js +10 -10
  102. package/dist/ui/toast.js +12 -12
  103. package/dist/ui/toaster.js +11 -11
  104. package/dist/ui/toggle-group.js +2 -2
  105. package/dist/ui/toggle.js +8 -8
  106. package/dist/ui/tooltip.js +21 -21
  107. package/dist/ui/visually-hidden.js +3 -3
  108. package/llms-full.txt +3384 -1591
  109. package/llms.txt +4 -4
  110. package/package.json +25 -2
  111. package/dist/_chunks/avatar.js +0 -52
  112. package/dist/_chunks/button-group.js +0 -27
  113. package/dist/_chunks/button.js +0 -113
  114. package/dist/_chunks/card.js +0 -50
  115. package/dist/_chunks/checkbox.js +0 -16
  116. package/dist/_chunks/form.js +0 -27
  117. package/dist/_chunks/sidebar.js +0 -606
  118. package/dist/_chunks/spinner.js +0 -64
  119. package/dist/_chunks/tooltip.js +0 -30
  120. package/dist/_chunks/utils.js +0 -17
  121. package/dist/motion/motion-provider.js +0 -24
  122. package/dist/motion/primitives.js +0 -187
  123. /package/dist/_chunks/{motion.js → framer.js} +0 -0
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { jsx as c } from "react/jsx-runtime";
3
3
  import * as l from "react";
4
- import { ag as u } from "../_chunks/vendor-utils.js";
5
- import { c as f } from "../_chunks/utils.js";
6
- import { m } from "../_chunks/motion2.js";
7
- import { u as b } from "../_chunks/form.js";
8
- import { m as x } from "../_chunks/motion.js";
9
- const p = u(
4
+ import { ag as f } from "../_chunks/vendor-utils.js";
5
+ import { cn as u } from "./lib/utils.js";
6
+ import { motionProps as m } from "./lib/motion.js";
7
+ import { useFormField as b } from "./form.js";
8
+ import { m as x } from "../_chunks/framer.js";
9
+ const p = f(
10
10
  [
11
11
  "flex w-full font-sans resize-y",
12
12
  "bg-surface-3 text-surface-fg",
@@ -29,20 +29,20 @@ const p = u(
29
29
  defaultVariants: { size: "md" }
30
30
  }
31
31
  ), g = l.forwardRef(
32
- ({ className: a, state: i, size: o, ...s }, t) => {
33
- const r = b(), e = i ?? (r.state === "helper" ? void 0 : r.state), d = s["aria-describedby"] ?? r.helperTextId, n = s["aria-required"] ?? r.required;
32
+ ({ className: i, state: a, size: o, ...s }, t) => {
33
+ const r = b(), e = a ?? (r.state === "helper" ? void 0 : r.state), d = s["aria-describedby"] ?? r.helperTextId, n = s["aria-required"] ?? r.required;
34
34
  return /* @__PURE__ */ c(
35
35
  x.textarea,
36
36
  {
37
37
  "aria-invalid": e === "error" || void 0,
38
38
  "aria-describedby": d,
39
39
  "aria-required": n || void 0,
40
- className: f(
40
+ className: u(
41
41
  p({ size: o }),
42
42
  e === "error" && "border-error-7 focus-visible:ring-error-7",
43
43
  e === "warning" && "border-warning-7 focus-visible:ring-warning-7",
44
44
  e === "success" && "border-success-7 focus-visible:ring-success-7",
45
- a
45
+ i
46
46
  ),
47
47
  ref: t,
48
48
  ...m(s)
package/dist/ui/toast.js CHANGED
@@ -2,12 +2,12 @@
2
2
  import { jsx as s, jsxs as d } from "react/jsx-runtime";
3
3
  import * as g from "react";
4
4
  import { t as f } from "../_chunks/vendor-client.js";
5
- import { IconInfoCircle as D, IconAlertTriangle as M, IconCircleX as O, IconCircleCheck as P, IconCheck as B, IconAlertCircle as U, IconPhoto as j, IconFile as L, IconRefresh as _, IconX as z, IconUpload as G } from "@tabler/icons-react";
6
- import { c as b } from "../_chunks/utils.js";
7
- import { s as p, t as y } from "../_chunks/motion2.js";
8
- import { S as E } from "../_chunks/spinner.js";
5
+ import { IconInfoCircle as S, IconAlertTriangle as M, IconCircleX as O, IconCircleCheck as P, IconCheck as B, IconAlertCircle as U, IconPhoto as j, IconFile as L, IconRefresh as _, IconX as z, IconUpload as G } from "@tabler/icons-react";
6
+ import { cn as b } from "./lib/utils.js";
7
+ import { springs as p, tweens as y } from "./lib/motion.js";
8
+ import { Spinner as E } from "./spinner.js";
9
9
  import { Progress as X } from "./progress.js";
10
- import { m as o, A as T } from "../_chunks/motion.js";
10
+ import { m as o, A as T } from "../_chunks/framer.js";
11
11
  const k = 5e3, H = 8e3, $ = 3e3, F = {
12
12
  message: {
13
13
  accentClass: "",
@@ -36,7 +36,7 @@ const k = 5e3, H = 8e3, $ = 3e3, F = {
36
36
  info: {
37
37
  accentClass: "bg-info-9",
38
38
  iconClass: "text-info-11",
39
- icon: D,
39
+ icon: S,
40
40
  timerBarClass: "bg-info-9"
41
41
  },
42
42
  loading: {
@@ -46,7 +46,7 @@ const k = 5e3, H = 8e3, $ = 3e3, F = {
46
46
  timerBarClass: "bg-accent-9"
47
47
  }
48
48
  };
49
- function S({
49
+ function A({
50
50
  duration: e,
51
51
  type: t,
52
52
  paused: a
@@ -81,8 +81,8 @@ function I({
81
81
  return g.useEffect(() => {
82
82
  if (l == null || i === 1 / 0) return;
83
83
  if (u) {
84
- const A = Date.now() - c.current;
85
- N.current = Math.max(0, N.current - A);
84
+ const D = Date.now() - c.current;
85
+ N.current = Math.max(0, N.current - D);
86
86
  return;
87
87
  }
88
88
  c.current = Date.now();
@@ -165,7 +165,7 @@ function I({
165
165
  ] })
166
166
  ] })
167
167
  ] }),
168
- w && e !== "loading" && /* @__PURE__ */ s(S, { duration: i, type: e, paused: u })
168
+ w && e !== "loading" && /* @__PURE__ */ s(A, { duration: i, type: e, paused: u })
169
169
  ]
170
170
  }
171
171
  );
@@ -417,7 +417,7 @@ function Q({
417
417
  ] })
418
418
  ] }),
419
419
  u && /* @__PURE__ */ s(
420
- S,
420
+ A,
421
421
  {
422
422
  duration: $,
423
423
  type: N,
@@ -536,7 +536,7 @@ m.dismiss = (e) => {
536
536
  e !== void 0 ? f.dismiss(e) : f.dismiss();
537
537
  };
538
538
  export {
539
- S as TimerBar,
539
+ A as TimerBar,
540
540
  I as ToastContent,
541
541
  J as UploadFileRow,
542
542
  Q as UploadToastContent,
@@ -2,22 +2,22 @@
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import * as l from "react";
4
4
  import { T as f } from "../_chunks/vendor-client.js";
5
- import { c } from "../_chunks/utils.js";
6
- const p = l.forwardRef(
5
+ import { cn as p } from "./lib/utils.js";
6
+ const c = l.forwardRef(
7
7
  ({
8
8
  position: o = "bottom-right",
9
- closeButton: s = !1,
10
- duration: a = 5e3,
11
- hotkey: r = ["altKey", "KeyT"],
9
+ closeButton: r = !1,
10
+ duration: s = 5e3,
11
+ hotkey: a = ["altKey", "KeyT"],
12
12
  visibleToasts: e = 3,
13
13
  className: m
14
- }, i) => /* @__PURE__ */ t("div", { ref: i, className: c("z-toast", m), children: /* @__PURE__ */ t(
14
+ }, i) => /* @__PURE__ */ t("div", { ref: i, className: p("z-toast", m), children: /* @__PURE__ */ t(
15
15
  f,
16
16
  {
17
17
  position: o,
18
- closeButton: s,
19
- duration: a,
20
- hotkey: r,
18
+ closeButton: r,
19
+ duration: s,
20
+ hotkey: a,
21
21
  visibleToasts: e,
22
22
  toastOptions: {
23
23
  unstyled: !0,
@@ -28,7 +28,7 @@ const p = l.forwardRef(
28
28
  }
29
29
  ) })
30
30
  );
31
- p.displayName = "Toaster";
31
+ c.displayName = "Toaster";
32
32
  export {
33
- p as Toaster
33
+ c as Toaster
34
34
  };
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as n } from "react/jsx-runtime";
3
3
  import * as e from "react";
4
- import { aF as i, aG as l } from "../_chunks/primitives.js";
5
- import { c } from "../_chunks/utils.js";
4
+ import { aI as i, aJ as l } from "../_chunks/primitives.js";
5
+ import { cn as c } from "./lib/utils.js";
6
6
  import { toggleVariants as f } from "./toggle.js";
7
7
  const p = e.createContext({
8
8
  size: "md",
package/dist/ui/toggle.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { jsx as i } from "react/jsx-runtime";
3
3
  import * as n from "react";
4
- import { aE as s } from "../_chunks/primitives.js";
4
+ import { aH as t } from "../_chunks/primitives.js";
5
5
  import { ag as d } from "../_chunks/vendor-utils.js";
6
- import { s as m, m as c } from "../_chunks/motion2.js";
7
- import { c as f } from "../_chunks/utils.js";
8
- import { m as l } from "../_chunks/motion.js";
9
- const p = l.create(s), g = d(
6
+ import { springs as m, motionProps as c } from "./lib/motion.js";
7
+ import { cn as f } from "./lib/utils.js";
8
+ import { m as l } from "../_chunks/framer.js";
9
+ const p = l.create(t), g = d(
10
10
  "inline-flex items-center justify-center gap-ds-03 rounded-ds-md font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled data-[state=on]:bg-accent-2 data-[state=on]:text-accent-11",
11
11
  {
12
12
  variants: {
@@ -25,17 +25,17 @@ const p = l.create(s), g = d(
25
25
  size: "md"
26
26
  }
27
27
  }
28
- ), u = n.forwardRef(({ className: t, variant: e, size: a, ...o }, r) => /* @__PURE__ */ i(
28
+ ), u = n.forwardRef(({ className: e, variant: s, size: a, ...o }, r) => /* @__PURE__ */ i(
29
29
  p,
30
30
  {
31
31
  ref: r,
32
32
  whileTap: { scale: 0.95 },
33
33
  transition: m.snappy,
34
- className: f(g({ variant: e, size: a }), t),
34
+ className: f(g({ variant: s, size: a }), e),
35
35
  ...c(o)
36
36
  }
37
37
  ));
38
- u.displayName = s.displayName;
38
+ u.displayName = t.displayName;
39
39
  export {
40
40
  u as Toggle,
41
41
  g as toggleVariants
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  import { jsx as e } from "react/jsx-runtime";
3
3
  import * as s from "react";
4
- import { aK as x, aL as p, aH as y, aI as T, aJ as v } from "../_chunks/primitives.js";
5
- import { c as g } from "../_chunks/utils.js";
6
- import { t as h, s as C } from "../_chunks/motion2.js";
7
- import { A as b, m as w } from "../_chunks/motion.js";
8
- const z = y, f = s.createContext({ open: !1 }), N = ({
9
- open: a,
10
- defaultOpen: i,
4
+ import { aK as x, aL as p, aM as y, aN as T, aO as v } from "../_chunks/primitives.js";
5
+ import { cn as g } from "./lib/utils.js";
6
+ import { tweens as h, springs as C } from "./lib/motion.js";
7
+ import { A as N, m as b } from "../_chunks/framer.js";
8
+ const k = y, f = s.createContext({ open: !1 }), w = ({
9
+ open: i,
10
+ defaultOpen: a,
11
11
  onOpenChange: t,
12
12
  ...r
13
13
  }) => {
14
- const [n, c] = s.useState(i ?? !1), o = a !== void 0, l = o ? a : n, m = s.useCallback(
14
+ const [n, c] = s.useState(a ?? !1), o = i !== void 0, l = o ? i : n, m = s.useCallback(
15
15
  (d) => {
16
16
  o || c(d), t == null || t(d);
17
17
  },
@@ -19,25 +19,25 @@ const z = y, f = s.createContext({ open: !1 }), N = ({
19
19
  ), u = s.useMemo(() => ({ open: l }), [l]);
20
20
  return /* @__PURE__ */ e(f.Provider, { value: u, children: /* @__PURE__ */ e(v, { open: l, onOpenChange: m, ...r }) });
21
21
  };
22
- N.displayName = "Tooltip";
23
- const H = T, P = {
22
+ w.displayName = "Tooltip";
23
+ const z = T, M = {
24
24
  top: { y: 4 },
25
25
  bottom: { y: -4 },
26
26
  left: { x: 4 },
27
27
  right: { x: -4 }
28
- }, I = s.forwardRef(({ className: a, sideOffset: i = 4, side: t = "top", ...r }, n) => {
29
- const { open: c } = s.useContext(f), o = P[t] ?? {};
30
- return /* @__PURE__ */ e(b, { children: c && /* @__PURE__ */ e(x, { forceMount: !0, children: /* @__PURE__ */ e(
28
+ }, P = s.forwardRef(({ className: i, sideOffset: a = 4, side: t = "top", ...r }, n) => {
29
+ const { open: c } = s.useContext(f), o = M[t] ?? {};
30
+ return /* @__PURE__ */ e(N, { children: c && /* @__PURE__ */ e(x, { forceMount: !0, children: /* @__PURE__ */ e(
31
31
  p,
32
32
  {
33
33
  ref: n,
34
34
  forceMount: !0,
35
35
  asChild: !0,
36
- sideOffset: i,
36
+ sideOffset: a,
37
37
  side: t,
38
38
  ...r,
39
39
  children: /* @__PURE__ */ e(
40
- w.div,
40
+ b.div,
41
41
  {
42
42
  initial: { opacity: 0, scale: 0.95, ...o },
43
43
  animate: { opacity: 1, scale: 1, x: 0, y: 0 },
@@ -45,17 +45,17 @@ const H = T, P = {
45
45
  transition: { ...C.snappy, opacity: h.fade },
46
46
  className: g(
47
47
  "z-tooltip overflow-hidden rounded-ds-md bg-surface-fg px-ds-04 py-ds-02b text-ds-sm text-accent-fg shadow-02",
48
- a
48
+ i
49
49
  )
50
50
  }
51
51
  )
52
52
  }
53
53
  ) }) });
54
54
  });
55
- I.displayName = p.displayName;
55
+ P.displayName = p.displayName;
56
56
  export {
57
- N as Tooltip,
58
- I as TooltipContent,
59
- z as TooltipProvider,
60
- H as TooltipTrigger
57
+ w as Tooltip,
58
+ P as TooltipContent,
59
+ k as TooltipProvider,
60
+ z as TooltipTrigger
61
61
  };
@@ -1,8 +1,8 @@
1
- import { jsx as o } from "react/jsx-runtime";
1
+ import { jsx as s } from "react/jsx-runtime";
2
2
  import * as e from "react";
3
- import { c as i } from "../_chunks/utils.js";
3
+ import { cn as i } from "./lib/utils.js";
4
4
  const m = e.forwardRef(
5
- ({ className: r, ...a }, s) => /* @__PURE__ */ o("span", { ref: s, className: i("sr-only", r), ...a })
5
+ ({ className: r, ...a }, o) => /* @__PURE__ */ s("span", { ref: o, className: i("sr-only", r), ...a })
6
6
  );
7
7
  m.displayName = "VisuallyHidden";
8
8
  export {