@devalok/shilp-sutra 0.18.0 → 0.18.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.
Files changed (214) 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/docs/components/_header.md +83 -0
  109. package/docs/components/composed/activity-feed.md +43 -0
  110. package/docs/components/composed/avatar-group.md +32 -0
  111. package/docs/components/composed/command-palette.md +40 -0
  112. package/docs/components/composed/confirm-dialog.md +46 -0
  113. package/docs/components/composed/content-card.md +36 -0
  114. package/docs/components/composed/date-picker.md +130 -0
  115. package/docs/components/composed/empty-state.md +53 -0
  116. package/docs/components/composed/error-boundary.md +29 -0
  117. package/docs/components/composed/global-loading.md +27 -0
  118. package/docs/components/composed/loading-skeleton.md +51 -0
  119. package/docs/components/composed/member-picker.md +35 -0
  120. package/docs/components/composed/page-header.md +41 -0
  121. package/docs/components/composed/page-skeletons.md +32 -0
  122. package/docs/components/composed/priority-indicator.md +32 -0
  123. package/docs/components/composed/rich-text-editor.md +71 -0
  124. package/docs/components/composed/schedule-view.md +39 -0
  125. package/docs/components/composed/simple-tooltip.md +33 -0
  126. package/docs/components/composed/status-badge.md +41 -0
  127. package/docs/components/shell/app-command-palette.md +44 -0
  128. package/docs/components/shell/bottom-navbar.md +48 -0
  129. package/docs/components/shell/command-registry.md +48 -0
  130. package/docs/components/shell/link-context.md +41 -0
  131. package/docs/components/shell/notification-center.md +63 -0
  132. package/docs/components/shell/notification-preferences.md +42 -0
  133. package/docs/components/shell/sidebar.md +88 -0
  134. package/docs/components/shell/top-bar.md +63 -0
  135. package/docs/components/ui/accordion.md +48 -0
  136. package/docs/components/ui/alert-dialog.md +58 -0
  137. package/docs/components/ui/alert.md +43 -0
  138. package/docs/components/ui/aspect-ratio.md +25 -0
  139. package/docs/components/ui/autocomplete.md +48 -0
  140. package/docs/components/ui/avatar.md +34 -0
  141. package/docs/components/ui/badge.md +48 -0
  142. package/docs/components/ui/banner.md +35 -0
  143. package/docs/components/ui/breadcrumb.md +37 -0
  144. package/docs/components/ui/button-group.md +32 -0
  145. package/docs/components/ui/button.md +55 -0
  146. package/docs/components/ui/card.md +48 -0
  147. package/docs/components/ui/charts.md +43 -0
  148. package/docs/components/ui/checkbox.md +31 -0
  149. package/docs/components/ui/chip.md +43 -0
  150. package/docs/components/ui/code.md +28 -0
  151. package/docs/components/ui/collapsible.md +40 -0
  152. package/docs/components/ui/color-input.md +37 -0
  153. package/docs/components/ui/combobox.md +54 -0
  154. package/docs/components/ui/container.md +26 -0
  155. package/docs/components/ui/context-menu.md +43 -0
  156. package/docs/components/ui/data-table-toolbar.md +44 -0
  157. package/docs/components/ui/data-table.md +91 -0
  158. package/docs/components/ui/dialog.md +51 -0
  159. package/docs/components/ui/dropdown-menu.md +45 -0
  160. package/docs/components/ui/file-upload.md +41 -0
  161. package/docs/components/ui/form.md +51 -0
  162. package/docs/components/ui/hover-card.md +32 -0
  163. package/docs/components/ui/icon-button.md +33 -0
  164. package/docs/components/ui/input-otp.md +44 -0
  165. package/docs/components/ui/input.md +48 -0
  166. package/docs/components/ui/label.md +25 -0
  167. package/docs/components/ui/link.md +29 -0
  168. package/docs/components/ui/menubar.md +44 -0
  169. package/docs/components/ui/navigation-menu.md +46 -0
  170. package/docs/components/ui/number-input.md +44 -0
  171. package/docs/components/ui/pagination.md +48 -0
  172. package/docs/components/ui/popover.md +30 -0
  173. package/docs/components/ui/progress.md +29 -0
  174. package/docs/components/ui/radio.md +34 -0
  175. package/docs/components/ui/search-input.md +43 -0
  176. package/docs/components/ui/segmented-control.md +50 -0
  177. package/docs/components/ui/select.md +49 -0
  178. package/docs/components/ui/separator.md +29 -0
  179. package/docs/components/ui/sheet.md +47 -0
  180. package/docs/components/ui/sidebar.md +72 -0
  181. package/docs/components/ui/skeleton.md +77 -0
  182. package/docs/components/ui/slider.md +29 -0
  183. package/docs/components/ui/spinner.md +50 -0
  184. package/docs/components/ui/stack.md +39 -0
  185. package/docs/components/ui/stat-card.md +61 -0
  186. package/docs/components/ui/stepper.md +49 -0
  187. package/docs/components/ui/switch.md +34 -0
  188. package/docs/components/ui/table.md +47 -0
  189. package/docs/components/ui/tabs.md +56 -0
  190. package/docs/components/ui/text.md +37 -0
  191. package/docs/components/ui/textarea.md +39 -0
  192. package/docs/components/ui/toast.md +65 -0
  193. package/docs/components/ui/toaster.md +47 -0
  194. package/docs/components/ui/toggle-group.md +43 -0
  195. package/docs/components/ui/toggle.md +37 -0
  196. package/docs/components/ui/tooltip.md +33 -0
  197. package/docs/components/ui/tree-view.md +65 -0
  198. package/docs/components/ui/visually-hidden.md +21 -0
  199. package/llms-full.txt +3384 -1591
  200. package/llms.txt +4 -4
  201. package/package.json +28 -3
  202. package/dist/_chunks/avatar.js +0 -52
  203. package/dist/_chunks/button-group.js +0 -27
  204. package/dist/_chunks/button.js +0 -113
  205. package/dist/_chunks/card.js +0 -50
  206. package/dist/_chunks/checkbox.js +0 -16
  207. package/dist/_chunks/form.js +0 -27
  208. package/dist/_chunks/sidebar.js +0 -606
  209. package/dist/_chunks/spinner.js +0 -64
  210. package/dist/_chunks/tooltip.js +0 -30
  211. package/dist/_chunks/utils.js +0 -17
  212. package/dist/motion/motion-provider.js +0 -24
  213. package/dist/motion/primitives.js +0 -187
  214. /package/dist/_chunks/{motion.js → framer.js} +0 -0
@@ -1,30 +0,0 @@
1
- "use client";
2
- import { jsx as o } from "react/jsx-runtime";
3
- import * as s from "react";
4
- import { aH as x, aI as y, aJ as T, aK as g, aL as p } from "./primitives.js";
5
- import { c as h } from "./utils.js";
6
- import { t as v, s as b } from "./motion2.js";
7
- import { A as C, m as w } from "./motion.js";
8
- const z = x, f = s.createContext({ open: !1 }), N = ({ open: a, defaultOpen: i, onOpenChange: t, ...r }) => {
9
- const [n, c] = s.useState(i ?? !1), e = a !== void 0, l = e ? a : n, m = s.useCallback((d) => {
10
- e || c(d), t == null || t(d);
11
- }, [e, t]), u = s.useMemo(() => ({ open: l }), [l]);
12
- return o(f.Provider, { value: u, children: o(T, { open: l, onOpenChange: m, ...r }) });
13
- };
14
- N.displayName = "Tooltip";
15
- const H = y, P = {
16
- top: { y: 4 },
17
- bottom: { y: -4 },
18
- left: { x: 4 },
19
- right: { x: -4 }
20
- }, I = s.forwardRef(({ className: a, sideOffset: i = 4, side: t = "top", ...r }, n) => {
21
- const { open: c } = s.useContext(f), e = P[t] ?? {};
22
- return o(C, { children: c && o(g, { forceMount: !0, children: o(p, { ref: n, forceMount: !0, asChild: !0, sideOffset: i, side: t, ...r, children: o(w.div, { initial: { opacity: 0, scale: 0.95, ...e }, animate: { opacity: 1, scale: 1, x: 0, y: 0 }, exit: { opacity: 0, scale: 0.95, ...e }, transition: { ...b.snappy, opacity: v.fade }, className: h("z-tooltip overflow-hidden rounded-ds-md bg-surface-fg px-ds-04 py-ds-02b text-ds-sm text-accent-fg shadow-02", a) }) }) }) });
23
- });
24
- I.displayName = p.displayName;
25
- export {
26
- z as T,
27
- N as a,
28
- H as b,
29
- I as c
30
- };
@@ -1,17 +0,0 @@
1
- import { ah as d, ai as e } from "./vendor-utils.js";
2
- const t = e({
3
- extend: {
4
- theme: {
5
- spacing: ["ds-01", "ds-02", "ds-02b", "ds-03", "ds-04", "ds-05", "ds-05b", "ds-06", "ds-06b", "ds-07", "ds-08", "ds-09", "ds-10", "ds-11", "ds-12", "ds-13"]
6
- },
7
- classGroups: {
8
- "font-size": [{ "text-ds": ["xs", "sm", "md"] }]
9
- }
10
- }
11
- });
12
- function a(...s) {
13
- return t(d(s));
14
- }
15
- export {
16
- a as c
17
- };
@@ -1,24 +0,0 @@
1
- "use client";
2
- import { jsx as r } from "react/jsx-runtime";
3
- import * as o from "react";
4
- import { t as s, s as n } from "../_chunks/motion2.js";
5
- import { u as f, M as m } from "../_chunks/motion.js";
6
- const i = o.createContext({
7
- springs: n,
8
- tweens: s,
9
- reducedMotion: !1
10
- });
11
- function l({ children: u, reducedMotion: e = "user" }) {
12
- const a = f() ?? !1, t = e === "user" ? a : e, c = o.useMemo(
13
- () => ({ springs: n, tweens: s, reducedMotion: t }),
14
- [t]
15
- );
16
- return /* @__PURE__ */ r(i.Provider, { value: c, children: /* @__PURE__ */ r(m, { reducedMotion: e === "user" ? "user" : e ? "always" : "never", children: u }) });
17
- }
18
- function x() {
19
- return o.useContext(i);
20
- }
21
- export {
22
- l as MotionProvider,
23
- x as useMotion
24
- };
@@ -1,187 +0,0 @@
1
- "use client";
2
- import { jsx as o } from "react/jsx-runtime";
3
- import * as m from "react";
4
- import { t as w, s as g } from "../_chunks/motion2.js";
5
- import { c as f } from "../_chunks/utils.js";
6
- import { A as u, m as y } from "../_chunks/motion.js";
7
- const N = m.forwardRef(
8
- ({ show: i, children: t, className: e, layout: a, layoutId: n, whileInView: s, viewportOnce: r = !0, viewportMargin: c = "-50px", ...l }, p) => {
9
- const d = s ? {
10
- initial: "hidden",
11
- whileInView: "visible",
12
- viewport: { once: r, margin: c }
13
- } : {};
14
- return /* @__PURE__ */ o(u, { children: i && /* @__PURE__ */ o(
15
- y.div,
16
- {
17
- ref: p,
18
- initial: { opacity: 0 },
19
- animate: { opacity: 1 },
20
- exit: { opacity: 0 },
21
- transition: w.fade,
22
- className: f(e),
23
- layout: a,
24
- layoutId: n,
25
- ...d,
26
- ...l,
27
- children: t
28
- }
29
- ) });
30
- }
31
- );
32
- N.displayName = "MotionFade";
33
- const V = m.forwardRef(
34
- ({ show: i, children: t, className: e, preset: a = "snappy", layout: n, layoutId: s, whileInView: r, viewportOnce: c = !0, viewportMargin: l = "-50px", ...p }, d) => {
35
- const h = g[a], v = r ? {
36
- initial: "hidden",
37
- whileInView: "visible",
38
- viewport: { once: c, margin: l }
39
- } : {};
40
- return /* @__PURE__ */ o(u, { children: i && /* @__PURE__ */ o(
41
- y.div,
42
- {
43
- ref: d,
44
- initial: { opacity: 0, scale: 0.96 },
45
- animate: { opacity: 1, scale: 1 },
46
- exit: { opacity: 0, scale: 0.96 },
47
- transition: { ...h, opacity: w.fade },
48
- className: f(e),
49
- layout: n,
50
- layoutId: s,
51
- ...v,
52
- ...p,
53
- children: t
54
- }
55
- ) });
56
- }
57
- );
58
- V.displayName = "MotionScale";
59
- const b = m.forwardRef(
60
- ({ show: i, children: t, className: e, preset: a = "bouncy", layout: n, layoutId: s, whileInView: r, viewportOnce: c = !0, viewportMargin: l = "-50px", ...p }, d) => {
61
- const h = g[a], v = r ? {
62
- initial: "hidden",
63
- whileInView: "visible",
64
- viewport: { once: c, margin: l }
65
- } : {};
66
- return /* @__PURE__ */ o(u, { children: i && /* @__PURE__ */ o(
67
- y.div,
68
- {
69
- ref: d,
70
- initial: { opacity: 0, scale: 0.5 },
71
- animate: { opacity: 1, scale: 1 },
72
- exit: { opacity: 0, scale: 0.5 },
73
- transition: { ...h, opacity: w.fade },
74
- className: f(e),
75
- layout: n,
76
- layoutId: s,
77
- ...v,
78
- ...p,
79
- children: t
80
- }
81
- ) });
82
- }
83
- );
84
- b.displayName = "MotionPop";
85
- const P = m.forwardRef(
86
- ({ show: i, children: t, className: e, preset: a = "smooth", direction: n = "up", layout: s, layoutId: r, whileInView: c, viewportOnce: l = !0, viewportMargin: p = "-50px", ...d }, h) => {
87
- const v = g[a], x = {
88
- up: { y: 16 },
89
- down: { y: -16 },
90
- left: { x: 16 },
91
- right: { x: -16 }
92
- }[n], M = c ? {
93
- initial: "hidden",
94
- whileInView: "visible",
95
- viewport: { once: l, margin: p }
96
- } : {};
97
- return /* @__PURE__ */ o(u, { children: i && /* @__PURE__ */ o(
98
- y.div,
99
- {
100
- ref: h,
101
- initial: { opacity: 0, ...x },
102
- animate: { opacity: 1, x: 0, y: 0 },
103
- exit: { opacity: 0, ...x },
104
- transition: { ...v, opacity: w.fade },
105
- className: f(e),
106
- layout: s,
107
- layoutId: r,
108
- ...M,
109
- ...d,
110
- children: t
111
- }
112
- ) });
113
- }
114
- );
115
- P.displayName = "MotionSlide";
116
- const R = m.forwardRef(
117
- ({ show: i, children: t, className: e, preset: a = "gentle", layout: n, layoutId: s, ...r }, c) => {
118
- const l = g[a];
119
- return /* @__PURE__ */ o(u, { initial: !1, children: i && /* @__PURE__ */ o(
120
- y.div,
121
- {
122
- ref: c,
123
- initial: { height: 0, opacity: 0, overflow: "hidden" },
124
- animate: { height: "auto", opacity: 1, overflow: "hidden" },
125
- exit: { height: 0, opacity: 0, overflow: "hidden" },
126
- transition: { ...l, opacity: w.fade },
127
- className: f(e),
128
- layout: n,
129
- layoutId: s,
130
- ...r,
131
- children: t
132
- }
133
- ) });
134
- }
135
- );
136
- R.displayName = "MotionCollapse";
137
- const S = m.forwardRef(
138
- ({ children: i, className: t, delay: e = 0.04, whileInView: a, viewportOnce: n = !0, viewportMargin: s = "-50px", ...r }, c) => {
139
- const l = {
140
- hidden: {},
141
- visible: {
142
- transition: { staggerChildren: e }
143
- }
144
- }, p = a ? { initial: "hidden", whileInView: "visible", viewport: { once: n, margin: s } } : { initial: "hidden", animate: "visible" };
145
- return /* @__PURE__ */ o(
146
- y.div,
147
- {
148
- ref: c,
149
- variants: l,
150
- className: f(t),
151
- ...p,
152
- ...r,
153
- children: i
154
- }
155
- );
156
- }
157
- );
158
- S.displayName = "MotionStagger";
159
- const I = {
160
- hidden: { opacity: 0, y: 8 },
161
- visible: {
162
- opacity: 1,
163
- y: 0,
164
- transition: { ...g.smooth, opacity: w.fade }
165
- }
166
- }, C = m.forwardRef(
167
- ({ children: i, className: t, ...e }, a) => /* @__PURE__ */ o(
168
- y.div,
169
- {
170
- ref: a,
171
- variants: I,
172
- className: f(t),
173
- ...e,
174
- children: i
175
- }
176
- )
177
- );
178
- C.displayName = "MotionStaggerItem";
179
- export {
180
- R as MotionCollapse,
181
- N as MotionFade,
182
- b as MotionPop,
183
- V as MotionScale,
184
- P as MotionSlide,
185
- S as MotionStagger,
186
- C as MotionStaggerItem
187
- };
File without changes