@devalok/shilp-sutra 0.33.2 → 0.34.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 (175) hide show
  1. package/dist/_chunks/badge-group.js +306 -246
  2. package/dist/_chunks/chat.js +513 -0
  3. package/dist/_chunks/date-picker.js +748 -0
  4. package/dist/_chunks/document-preview.js +109 -90
  5. package/dist/_chunks/file-preview.js +492 -504
  6. package/dist/_chunks/framer.js +5564 -5613
  7. package/dist/_chunks/image-preview.js +127 -88
  8. package/dist/_chunks/keybinding.js +12 -14
  9. package/dist/_chunks/link-context.js +19 -16
  10. package/dist/_chunks/mention-suggestion.js +353 -350
  11. package/dist/_chunks/motion-provider.js +26 -20
  12. package/dist/_chunks/popover.js +127 -0
  13. package/dist/_chunks/primitives.js +7584 -6425
  14. package/dist/_chunks/rich-chat-input.js +2070 -0
  15. package/dist/_chunks/rolldown-runtime.js +21 -0
  16. package/dist/_chunks/shared.js +126 -0
  17. package/dist/_chunks/sonner.js +605 -734
  18. package/dist/_chunks/stat-row.js +418 -440
  19. package/dist/_chunks/tiptap.js +15850 -19964
  20. package/dist/_chunks/tree-view.js +231 -290
  21. package/dist/_chunks/use-calendar.js +161 -208
  22. package/dist/_chunks/vendor-client.js +314 -2199
  23. package/dist/_chunks/vendor-utils.js +1721 -2978
  24. package/dist/ai/ai-command-provider.js +23 -17
  25. package/dist/ai/block-renderer.js +68 -51
  26. package/dist/ai/blocks/index.js +2 -12
  27. package/dist/ai/command-bar.js +470 -519
  28. package/dist/ai/conversation.js +241 -227
  29. package/dist/ai/index.js +181 -167
  30. package/dist/ai/types.js +0 -1
  31. package/dist/composed/activity-feed.js +232 -202
  32. package/dist/composed/avatar-group.js +164 -222
  33. package/dist/composed/bulk-action-bar.js +174 -165
  34. package/dist/composed/command-palette.js +290 -308
  35. package/dist/composed/confirm-dialog.js +28 -48
  36. package/dist/composed/content-card.js +69 -108
  37. package/dist/composed/date-picker/index.js +3 -13
  38. package/dist/composed/deadline-indicator.js +68 -74
  39. package/dist/composed/emoji-picker.js +83 -110
  40. package/dist/composed/empty-state.js +64 -103
  41. package/dist/composed/error-boundary.js +129 -127
  42. package/dist/composed/file-preview.js +2 -12
  43. package/dist/composed/filter-bar.js +98 -130
  44. package/dist/composed/form-section.js +61 -45
  45. package/dist/composed/global-loading.js +34 -47
  46. package/dist/composed/index.js +34 -92
  47. package/dist/composed/inline-edit.js +92 -107
  48. package/dist/composed/lib/string-utils.js +8 -8
  49. package/dist/composed/loading-skeleton.js +103 -171
  50. package/dist/composed/markdown-viewer.js +187 -139
  51. package/dist/composed/master-detail.js +147 -156
  52. package/dist/composed/member-picker.js +46 -49
  53. package/dist/composed/multi-select-popover.js +181 -179
  54. package/dist/composed/page-header.js +54 -76
  55. package/dist/composed/page-skeletons.js +143 -127
  56. package/dist/composed/priority-indicator.js +105 -111
  57. package/dist/composed/responsive-overlay.js +36 -41
  58. package/dist/composed/rich-chat-input.js +2 -1860
  59. package/dist/composed/rich-text-editor.js +561 -424
  60. package/dist/composed/schedule-view.js +134 -185
  61. package/dist/composed/simple-tooltip.js +21 -21
  62. package/dist/composed/status-badge.js +133 -137
  63. package/dist/hooks/index.js +7 -12
  64. package/dist/hooks/use-color-mode.js +28 -25
  65. package/dist/hooks/use-mobile.js +13 -13
  66. package/dist/hooks/use-toast.js +2 -4
  67. package/dist/hooks/use-touch-device.js +9 -11
  68. package/dist/hooks/use-viewport-height.js +14 -14
  69. package/dist/motion/index.js +3 -11
  70. package/dist/motion/primitives-index.js +226 -186
  71. package/dist/shell/app-command-palette.js +203 -234
  72. package/dist/shell/bottom-navbar.js +150 -190
  73. package/dist/shell/command-registry.js +13 -14
  74. package/dist/shell/index.js +10 -20
  75. package/dist/shell/link-context.js +2 -5
  76. package/dist/shell/notification-center.js +238 -259
  77. package/dist/shell/notification-preferences.js +241 -184
  78. package/dist/shell/sidebar.js +251 -281
  79. package/dist/shell/top-bar.js +203 -237
  80. package/dist/tailwind/index.cjs +426 -451
  81. package/dist/tailwind/index.js +2 -4
  82. package/dist/tailwind/preset.d.ts.map +1 -1
  83. package/dist/tailwind/preset.js +443 -468
  84. package/dist/ui/accordion.js +52 -60
  85. package/dist/ui/alert-dialog.js +111 -156
  86. package/dist/ui/alert.js +177 -99
  87. package/dist/ui/aspect-ratio.js +13 -16
  88. package/dist/ui/autocomplete.js +112 -148
  89. package/dist/ui/avatar.js +196 -169
  90. package/dist/ui/badge-group.js +2 -7
  91. package/dist/ui/badge-indicator.js +42 -51
  92. package/dist/ui/badge.js +2 -15
  93. package/dist/ui/banner.js +76 -68
  94. package/dist/ui/breadcrumb.js +65 -84
  95. package/dist/ui/button-group.js +109 -102
  96. package/dist/ui/button-processing.js +69 -73
  97. package/dist/ui/button.js +393 -279
  98. package/dist/ui/card.js +151 -157
  99. package/dist/ui/charts/index.js +1002 -1319
  100. package/dist/ui/chat/index.js +2 -11
  101. package/dist/ui/checkbox.js +77 -100
  102. package/dist/ui/code.js +18 -32
  103. package/dist/ui/collapsible.js +21 -29
  104. package/dist/ui/color-input.js +453 -372
  105. package/dist/ui/color-swatch.js +60 -90
  106. package/dist/ui/combobox.js +244 -293
  107. package/dist/ui/container.js +18 -24
  108. package/dist/ui/context-menu.js +154 -203
  109. package/dist/ui/data-table-body.js +116 -213
  110. package/dist/ui/data-table-bulk-actions.js +43 -59
  111. package/dist/ui/data-table-card.js +84 -71
  112. package/dist/ui/data-table-context.js +39 -42
  113. package/dist/ui/data-table-header.js +98 -139
  114. package/dist/ui/data-table-pagination.js +69 -82
  115. package/dist/ui/data-table-toolbar.js +104 -130
  116. package/dist/ui/data-table.js +278 -354
  117. package/dist/ui/devalok-grain.js +77 -66
  118. package/dist/ui/dialog.js +122 -151
  119. package/dist/ui/dropdown-menu.js +152 -203
  120. package/dist/ui/file-upload.js +242 -266
  121. package/dist/ui/form.js +60 -56
  122. package/dist/ui/hover-card.js +54 -54
  123. package/dist/ui/icon-button.js +21 -26
  124. package/dist/ui/icon-context.js +17 -17
  125. package/dist/ui/icon-group.js +22 -29
  126. package/dist/ui/icon.js +201 -121
  127. package/dist/ui/index.js +74 -350
  128. package/dist/ui/input-otp.d.ts.map +1 -1
  129. package/dist/ui/input-otp.js +44 -48
  130. package/dist/ui/input.js +92 -169
  131. package/dist/ui/label.js +17 -22
  132. package/dist/ui/lib/date-utils.js +14 -11
  133. package/dist/ui/lib/motion.js +77 -36
  134. package/dist/ui/lib/utils.js +39 -16
  135. package/dist/ui/link.js +13 -24
  136. package/dist/ui/menubar.js +132 -210
  137. package/dist/ui/navigation-menu.js +164 -194
  138. package/dist/ui/number-input.js +72 -95
  139. package/dist/ui/pagination.js +122 -159
  140. package/dist/ui/popover.js +2 -131
  141. package/dist/ui/progress-ring.js +133 -143
  142. package/dist/ui/progress.js +51 -95
  143. package/dist/ui/radio.js +41 -50
  144. package/dist/ui/search-input.js +51 -53
  145. package/dist/ui/segmented-control.js +93 -114
  146. package/dist/ui/select.js +131 -157
  147. package/dist/ui/separator.js +15 -25
  148. package/dist/ui/sheet.js +135 -163
  149. package/dist/ui/sidebar.js +357 -600
  150. package/dist/ui/skeleton.js +179 -231
  151. package/dist/ui/slider.js +24 -34
  152. package/dist/ui/spinner.js +226 -205
  153. package/dist/ui/split-button.js +227 -276
  154. package/dist/ui/stack.js +56 -70
  155. package/dist/ui/stat-card.js +259 -251
  156. package/dist/ui/status-dot.js +67 -63
  157. package/dist/ui/stepper.js +119 -168
  158. package/dist/ui/switch.js +51 -54
  159. package/dist/ui/table.js +57 -90
  160. package/dist/ui/tabs.js +139 -156
  161. package/dist/ui/text.js +52 -59
  162. package/dist/ui/textarea.js +40 -57
  163. package/dist/ui/toast-types.js +0 -1
  164. package/dist/ui/toast.js +554 -536
  165. package/dist/ui/toaster.js +23 -33
  166. package/dist/ui/toggle-group.js +37 -41
  167. package/dist/ui/toggle.js +36 -40
  168. package/dist/ui/tooltip.js +80 -65
  169. package/dist/ui/tree-view/index.js +2 -6
  170. package/dist/ui/visually-hidden.js +12 -10
  171. package/llms-full.txt +1 -1
  172. package/llms.txt +12 -0
  173. package/package.json +3 -3
  174. package/dist/_chunks/date-time-picker.js +0 -851
  175. package/dist/_chunks/typing-indicator.js +0 -565
@@ -1,187 +1,227 @@
1
1
  "use client";
2
- import { jsx as a } from "react/jsx-runtime";
3
- import * as m from "react";
4
- import { springs as g, tweens as w } from "../ui/lib/motion.js";
5
- import { cn as f } from "../ui/lib/utils.js";
6
- import { A as u, m as y } from "../_chunks/framer.js";
7
- const N = m.forwardRef(
8
- ({ show: i, children: e, className: t, layout: o, 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__ */ a(u, { children: i && /* @__PURE__ */ a(
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(t),
23
- layout: o,
24
- layoutId: n,
25
- ...d,
26
- ...l,
27
- children: e
28
- }
29
- ) });
30
- }
31
- );
32
- N.displayName = "MotionFade";
33
- const V = m.forwardRef(
34
- ({ show: i, children: e, className: t, preset: o = "snappy", layout: n, layoutId: s, whileInView: r, viewportOnce: c = !0, viewportMargin: l = "-50px", ...p }, d) => {
35
- const h = g[o], v = r ? {
36
- initial: "hidden",
37
- whileInView: "visible",
38
- viewport: { once: c, margin: l }
39
- } : {};
40
- return /* @__PURE__ */ a(u, { children: i && /* @__PURE__ */ a(
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(t),
49
- layout: n,
50
- layoutId: s,
51
- ...v,
52
- ...p,
53
- children: e
54
- }
55
- ) });
56
- }
57
- );
58
- V.displayName = "MotionScale";
59
- const b = m.forwardRef(
60
- ({ show: i, children: e, className: t, preset: o = "bouncy", layout: n, layoutId: s, whileInView: r, viewportOnce: c = !0, viewportMargin: l = "-50px", ...p }, d) => {
61
- const h = g[o], v = r ? {
62
- initial: "hidden",
63
- whileInView: "visible",
64
- viewport: { once: c, margin: l }
65
- } : {};
66
- return /* @__PURE__ */ a(u, { children: i && /* @__PURE__ */ a(
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(t),
75
- layout: n,
76
- layoutId: s,
77
- ...v,
78
- ...p,
79
- children: e
80
- }
81
- ) });
82
- }
83
- );
84
- b.displayName = "MotionPop";
85
- const P = m.forwardRef(
86
- ({ show: i, children: e, className: t, preset: o = "smooth", direction: n = "up", layout: s, layoutId: r, whileInView: c, viewportOnce: l = !0, viewportMargin: p = "-50px", ...d }, h) => {
87
- const v = g[o], 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__ */ a(u, { children: i && /* @__PURE__ */ a(
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(t),
106
- layout: s,
107
- layoutId: r,
108
- ...M,
109
- ...d,
110
- children: e
111
- }
112
- ) });
113
- }
114
- );
115
- P.displayName = "MotionSlide";
116
- const R = m.forwardRef(
117
- ({ show: i, children: e, className: t, preset: o = "gentle", layout: n, layoutId: s, ...r }, c) => {
118
- const l = g[o];
119
- return /* @__PURE__ */ a(u, { initial: !1, children: i && /* @__PURE__ */ a(
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(t),
128
- layout: n,
129
- layoutId: s,
130
- ...r,
131
- children: e
132
- }
133
- ) });
134
- }
135
- );
136
- R.displayName = "MotionCollapse";
137
- const S = m.forwardRef(
138
- ({ children: i, className: e, delay: t = 0.04, whileInView: o, viewportOnce: n = !0, viewportMargin: s = "-50px", ...r }, c) => {
139
- const l = {
140
- hidden: {},
141
- visible: {
142
- transition: { staggerChildren: t }
143
- }
144
- }, p = o ? { initial: "hidden", whileInView: "visible", viewport: { once: n, margin: s } } : { initial: "hidden", animate: "visible" };
145
- return /* @__PURE__ */ a(
146
- y.div,
147
- {
148
- ref: c,
149
- variants: l,
150
- className: f(e),
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: e, ...t }, o) => /* @__PURE__ */ a(
168
- y.div,
169
- {
170
- ref: o,
171
- variants: I,
172
- className: f(e),
173
- ...t,
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
- };
2
+ import { a as e, c as t } from "../_chunks/framer.js";
3
+ import { springs as n, tweens as r } from "../ui/lib/motion.js";
4
+ import { cn as i } from "../ui/lib/utils.js";
5
+ import * as a from "react";
6
+ import { jsx as o } from "react/jsx-runtime";
7
+ //#region src/motion/primitives.tsx
8
+ var s = a.forwardRef(({ show: n, children: a, className: s, layout: c, layoutId: l, whileInView: u, viewportOnce: d = !0, viewportMargin: f = "-50px", ...p }, m) => {
9
+ let h = u ? {
10
+ initial: "hidden",
11
+ whileInView: "visible",
12
+ viewport: {
13
+ once: d,
14
+ margin: f
15
+ }
16
+ } : {};
17
+ return /* @__PURE__ */ o(t, { children: n && /* @__PURE__ */ o(e.div, {
18
+ ref: m,
19
+ initial: { opacity: 0 },
20
+ animate: { opacity: 1 },
21
+ exit: { opacity: 0 },
22
+ transition: r.fade,
23
+ className: i(s),
24
+ layout: c,
25
+ layoutId: l,
26
+ ...h,
27
+ ...p,
28
+ children: a
29
+ }) });
30
+ });
31
+ s.displayName = "MotionFade";
32
+ var c = a.forwardRef(({ show: a, children: s, className: c, preset: l = "snappy", layout: u, layoutId: d, whileInView: f, viewportOnce: p = !0, viewportMargin: m = "-50px", ...h }, g) => {
33
+ let _ = n[l], v = f ? {
34
+ initial: "hidden",
35
+ whileInView: "visible",
36
+ viewport: {
37
+ once: p,
38
+ margin: m
39
+ }
40
+ } : {};
41
+ return /* @__PURE__ */ o(t, { children: a && /* @__PURE__ */ o(e.div, {
42
+ ref: g,
43
+ initial: {
44
+ opacity: 0,
45
+ scale: .96
46
+ },
47
+ animate: {
48
+ opacity: 1,
49
+ scale: 1
50
+ },
51
+ exit: {
52
+ opacity: 0,
53
+ scale: .96
54
+ },
55
+ transition: {
56
+ ..._,
57
+ opacity: r.fade
58
+ },
59
+ className: i(c),
60
+ layout: u,
61
+ layoutId: d,
62
+ ...v,
63
+ ...h,
64
+ children: s
65
+ }) });
66
+ });
67
+ c.displayName = "MotionScale";
68
+ var l = a.forwardRef(({ show: a, children: s, className: c, preset: l = "bouncy", layout: u, layoutId: d, whileInView: f, viewportOnce: p = !0, viewportMargin: m = "-50px", ...h }, g) => {
69
+ let _ = n[l], v = f ? {
70
+ initial: "hidden",
71
+ whileInView: "visible",
72
+ viewport: {
73
+ once: p,
74
+ margin: m
75
+ }
76
+ } : {};
77
+ return /* @__PURE__ */ o(t, { children: a && /* @__PURE__ */ o(e.div, {
78
+ ref: g,
79
+ initial: {
80
+ opacity: 0,
81
+ scale: .5
82
+ },
83
+ animate: {
84
+ opacity: 1,
85
+ scale: 1
86
+ },
87
+ exit: {
88
+ opacity: 0,
89
+ scale: .5
90
+ },
91
+ transition: {
92
+ ..._,
93
+ opacity: r.fade
94
+ },
95
+ className: i(c),
96
+ layout: u,
97
+ layoutId: d,
98
+ ...v,
99
+ ...h,
100
+ children: s
101
+ }) });
102
+ });
103
+ l.displayName = "MotionPop";
104
+ var u = a.forwardRef(({ show: a, children: s, className: c, preset: l = "smooth", direction: u = "up", layout: d, layoutId: f, whileInView: p, viewportOnce: m = !0, viewportMargin: h = "-50px", ...g }, _) => {
105
+ let v = n[l], y = {
106
+ up: { y: 16 },
107
+ down: { y: -16 },
108
+ left: { x: 16 },
109
+ right: { x: -16 }
110
+ }[u], b = p ? {
111
+ initial: "hidden",
112
+ whileInView: "visible",
113
+ viewport: {
114
+ once: m,
115
+ margin: h
116
+ }
117
+ } : {};
118
+ return /* @__PURE__ */ o(t, { children: a && /* @__PURE__ */ o(e.div, {
119
+ ref: _,
120
+ initial: {
121
+ opacity: 0,
122
+ ...y
123
+ },
124
+ animate: {
125
+ opacity: 1,
126
+ x: 0,
127
+ y: 0
128
+ },
129
+ exit: {
130
+ opacity: 0,
131
+ ...y
132
+ },
133
+ transition: {
134
+ ...v,
135
+ opacity: r.fade
136
+ },
137
+ className: i(c),
138
+ layout: d,
139
+ layoutId: f,
140
+ ...b,
141
+ ...g,
142
+ children: s
143
+ }) });
144
+ });
145
+ u.displayName = "MotionSlide";
146
+ var d = a.forwardRef(({ show: a, children: s, className: c, preset: l = "gentle", layout: u, layoutId: d, ...f }, p) => {
147
+ let m = n[l];
148
+ return /* @__PURE__ */ o(t, {
149
+ initial: !1,
150
+ children: a && /* @__PURE__ */ o(e.div, {
151
+ ref: p,
152
+ initial: {
153
+ height: 0,
154
+ opacity: 0,
155
+ overflow: "hidden"
156
+ },
157
+ animate: {
158
+ height: "auto",
159
+ opacity: 1,
160
+ overflow: "hidden"
161
+ },
162
+ exit: {
163
+ height: 0,
164
+ opacity: 0,
165
+ overflow: "hidden"
166
+ },
167
+ transition: {
168
+ ...m,
169
+ opacity: r.fade
170
+ },
171
+ className: i(c),
172
+ layout: u,
173
+ layoutId: d,
174
+ ...f,
175
+ children: s
176
+ })
177
+ });
178
+ });
179
+ d.displayName = "MotionCollapse";
180
+ var f = a.forwardRef(({ children: t, className: n, delay: r = .04, whileInView: a, viewportOnce: s = !0, viewportMargin: c = "-50px", ...l }, u) => {
181
+ let d = {
182
+ hidden: {},
183
+ visible: { transition: { staggerChildren: r } }
184
+ }, f = a ? {
185
+ initial: "hidden",
186
+ whileInView: "visible",
187
+ viewport: {
188
+ once: s,
189
+ margin: c
190
+ }
191
+ } : {
192
+ initial: "hidden",
193
+ animate: "visible"
194
+ };
195
+ return /* @__PURE__ */ o(e.div, {
196
+ ref: u,
197
+ variants: d,
198
+ className: i(n),
199
+ ...f,
200
+ ...l,
201
+ children: t
202
+ });
203
+ });
204
+ f.displayName = "MotionStagger";
205
+ var p = {
206
+ hidden: {
207
+ opacity: 0,
208
+ y: 8
209
+ },
210
+ visible: {
211
+ opacity: 1,
212
+ y: 0,
213
+ transition: {
214
+ ...n.smooth,
215
+ opacity: r.fade
216
+ }
217
+ }
218
+ }, m = a.forwardRef(({ children: t, className: n, ...r }, a) => /* @__PURE__ */ o(e.div, {
219
+ ref: a,
220
+ variants: p,
221
+ className: i(n),
222
+ ...r,
223
+ children: t
224
+ }));
225
+ m.displayName = "MotionStaggerItem";
226
+ //#endregion
227
+ export { d as MotionCollapse, s as MotionFade, l as MotionPop, c as MotionScale, u as MotionSlide, f as MotionStagger, m as MotionStaggerItem };