@devalok/shilp-sutra 0.31.0 → 0.32.0

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 (233) hide show
  1. package/dist/_chunks/badge-group.js +123 -172
  2. package/dist/_chunks/document-preview.js +92 -0
  3. package/dist/_chunks/file-preview.js +511 -0
  4. package/dist/_chunks/image-preview.js +90 -0
  5. package/dist/_chunks/primitives.js +109 -109
  6. package/dist/_chunks/stat-row.js +144 -124
  7. package/dist/_chunks/use-calendar.js +558 -490
  8. package/dist/ai/block-renderer.d.ts +2 -1
  9. package/dist/ai/block-renderer.d.ts.map +1 -1
  10. package/dist/ai/block-renderer.js +30 -29
  11. package/dist/ai/blocks/block-table.d.ts.map +1 -1
  12. package/dist/ai/blocks/confirm.d.ts.map +1 -1
  13. package/dist/ai/blocks/divider.d.ts.map +1 -1
  14. package/dist/ai/blocks/error.d.ts.map +1 -1
  15. package/dist/ai/blocks/info.d.ts.map +1 -1
  16. package/dist/ai/blocks/loading.d.ts.map +1 -1
  17. package/dist/ai/blocks/stat-row.d.ts.map +1 -1
  18. package/dist/ai/blocks/success.d.ts.map +1 -1
  19. package/dist/ai/blocks/text.d.ts.map +1 -1
  20. package/dist/ai/command-bar.d.ts +18 -0
  21. package/dist/ai/command-bar.d.ts.map +1 -1
  22. package/dist/ai/command-bar.js +126 -125
  23. package/dist/ai/conversation.d.ts +13 -1
  24. package/dist/ai/conversation.d.ts.map +1 -1
  25. package/dist/ai/conversation.js +78 -78
  26. package/dist/ai/types.d.ts +0 -1
  27. package/dist/ai/types.d.ts.map +1 -1
  28. package/dist/ai/types.js +0 -1
  29. package/dist/composed/bulk-action-bar.d.ts +6 -4
  30. package/dist/composed/bulk-action-bar.d.ts.map +1 -1
  31. package/dist/composed/bulk-action-bar.js +102 -58
  32. package/dist/composed/command-palette.d.ts +9 -0
  33. package/dist/composed/command-palette.d.ts.map +1 -1
  34. package/dist/composed/command-palette.js +68 -68
  35. package/dist/composed/confirm-dialog.d.ts +1 -1
  36. package/dist/composed/confirm-dialog.d.ts.map +1 -1
  37. package/dist/composed/confirm-dialog.js +10 -10
  38. package/dist/composed/date-picker/date-picker.d.ts +11 -1
  39. package/dist/composed/date-picker/date-picker.d.ts.map +1 -1
  40. package/dist/composed/date-picker/month-picker.d.ts.map +1 -1
  41. package/dist/composed/date-picker/year-picker.d.ts.map +1 -1
  42. package/dist/composed/deadline-indicator.d.ts +1 -1
  43. package/dist/composed/deadline-indicator.d.ts.map +1 -1
  44. package/dist/composed/deadline-indicator.js +39 -36
  45. package/dist/composed/emoji-picker.d.ts +6 -0
  46. package/dist/composed/emoji-picker.d.ts.map +1 -1
  47. package/dist/composed/emoji-picker.js +22 -20
  48. package/dist/composed/error-boundary.d.ts +21 -1
  49. package/dist/composed/error-boundary.d.ts.map +1 -1
  50. package/dist/composed/error-boundary.js +47 -32
  51. package/dist/composed/file-preview/audio-preview.d.ts +7 -0
  52. package/dist/composed/file-preview/audio-preview.d.ts.map +1 -0
  53. package/dist/composed/file-preview/document-preview.d.ts +7 -0
  54. package/dist/composed/file-preview/document-preview.d.ts.map +1 -0
  55. package/dist/composed/file-preview/embed-preview.d.ts +7 -0
  56. package/dist/composed/file-preview/embed-preview.d.ts.map +1 -0
  57. package/dist/composed/file-preview/image-preview.d.ts +7 -0
  58. package/dist/composed/file-preview/image-preview.d.ts.map +1 -0
  59. package/dist/composed/file-preview/shared.d.ts +20 -0
  60. package/dist/composed/file-preview/shared.d.ts.map +1 -0
  61. package/dist/composed/file-preview/video-preview.d.ts +6 -0
  62. package/dist/composed/file-preview/video-preview.d.ts.map +1 -0
  63. package/dist/composed/file-preview.d.ts.map +1 -1
  64. package/dist/composed/file-preview.js +10 -662
  65. package/dist/composed/filter-bar.d.ts +10 -2
  66. package/dist/composed/filter-bar.d.ts.map +1 -1
  67. package/dist/composed/filter-bar.js +42 -43
  68. package/dist/composed/form-section.d.ts +1 -1
  69. package/dist/composed/form-section.d.ts.map +1 -1
  70. package/dist/composed/form-section.js +22 -21
  71. package/dist/composed/index.d.ts +2 -2
  72. package/dist/composed/index.d.ts.map +1 -1
  73. package/dist/composed/index.js +58 -57
  74. package/dist/composed/inline-edit.d.ts +1 -1
  75. package/dist/composed/inline-edit.d.ts.map +1 -1
  76. package/dist/composed/inline-edit.js +33 -32
  77. package/dist/composed/markdown-viewer.d.ts +1 -1
  78. package/dist/composed/markdown-viewer.d.ts.map +1 -1
  79. package/dist/composed/markdown-viewer.js +60 -59
  80. package/dist/composed/master-detail.d.ts +11 -7
  81. package/dist/composed/master-detail.d.ts.map +1 -1
  82. package/dist/composed/master-detail.js +123 -84
  83. package/dist/composed/responsive-overlay.d.ts +8 -0
  84. package/dist/composed/responsive-overlay.d.ts.map +1 -1
  85. package/dist/composed/rich-text-editor.d.ts +11 -3
  86. package/dist/composed/rich-text-editor.d.ts.map +1 -1
  87. package/dist/composed/rich-text-editor.js +21 -20
  88. package/dist/composed/schedule-view.d.ts +9 -1
  89. package/dist/composed/schedule-view.d.ts.map +1 -1
  90. package/dist/hooks/index.d.ts +2 -0
  91. package/dist/hooks/index.d.ts.map +1 -1
  92. package/dist/hooks/index.js +8 -4
  93. package/dist/hooks/use-touch-device.d.ts +12 -0
  94. package/dist/hooks/use-touch-device.d.ts.map +1 -0
  95. package/dist/hooks/use-touch-device.js +13 -0
  96. package/dist/hooks/use-viewport-height.d.ts +11 -0
  97. package/dist/hooks/use-viewport-height.d.ts.map +1 -0
  98. package/dist/hooks/use-viewport-height.js +16 -0
  99. package/dist/shell/bottom-navbar.d.ts.map +1 -1
  100. package/dist/shell/bottom-navbar.js +72 -63
  101. package/dist/shell/command-registry.d.ts.map +1 -1
  102. package/dist/shell/notification-center.d.ts.map +1 -1
  103. package/dist/shell/notification-center.js +77 -77
  104. package/dist/shell/top-bar.d.ts +2 -2
  105. package/dist/shell/top-bar.d.ts.map +1 -1
  106. package/dist/shell/top-bar.js +61 -60
  107. package/dist/tailwind/index.cjs +51 -7
  108. package/dist/tailwind/preset.d.ts.map +1 -1
  109. package/dist/tailwind/preset.js +51 -7
  110. package/dist/tokens/primitives.css +3 -1
  111. package/dist/tokens/semantic.css +16 -13
  112. package/dist/ui/autocomplete.d.ts.map +1 -1
  113. package/dist/ui/autocomplete.js +38 -39
  114. package/dist/ui/badge.d.ts +104 -2
  115. package/dist/ui/badge.d.ts.map +1 -1
  116. package/dist/ui/banner.d.ts.map +1 -1
  117. package/dist/ui/banner.js +8 -7
  118. package/dist/ui/button.d.ts +2 -2
  119. package/dist/ui/button.d.ts.map +1 -1
  120. package/dist/ui/button.js +54 -74
  121. package/dist/ui/card.js +24 -24
  122. package/dist/ui/charts/area-chart.d.ts +2 -0
  123. package/dist/ui/charts/area-chart.d.ts.map +1 -1
  124. package/dist/ui/charts/bar-chart.d.ts +2 -0
  125. package/dist/ui/charts/bar-chart.d.ts.map +1 -1
  126. package/dist/ui/charts/chart-container.d.ts +2 -0
  127. package/dist/ui/charts/chart-container.d.ts.map +1 -1
  128. package/dist/ui/charts/index.js +583 -577
  129. package/dist/ui/charts/line-chart.d.ts +2 -0
  130. package/dist/ui/charts/line-chart.d.ts.map +1 -1
  131. package/dist/ui/charts/pie-chart.d.ts +2 -0
  132. package/dist/ui/charts/pie-chart.d.ts.map +1 -1
  133. package/dist/ui/charts/radar-chart.d.ts +2 -0
  134. package/dist/ui/charts/radar-chart.d.ts.map +1 -1
  135. package/dist/ui/checkbox.d.ts +2 -0
  136. package/dist/ui/checkbox.d.ts.map +1 -1
  137. package/dist/ui/checkbox.js +36 -27
  138. package/dist/ui/color-input.js +5 -5
  139. package/dist/ui/combobox.d.ts +6 -1
  140. package/dist/ui/combobox.d.ts.map +1 -1
  141. package/dist/ui/combobox.js +1 -1
  142. package/dist/ui/context-menu.js +1 -1
  143. package/dist/ui/data-table-body.d.ts +12 -0
  144. package/dist/ui/data-table-body.d.ts.map +1 -0
  145. package/dist/ui/data-table-body.js +219 -0
  146. package/dist/ui/data-table-bulk-actions.d.ts +19 -0
  147. package/dist/ui/data-table-bulk-actions.d.ts.map +1 -0
  148. package/dist/ui/data-table-bulk-actions.js +61 -0
  149. package/dist/ui/data-table-card.d.ts +9 -0
  150. package/dist/ui/data-table-card.d.ts.map +1 -0
  151. package/dist/ui/data-table-card.js +73 -0
  152. package/dist/ui/data-table-context.d.ts +62 -0
  153. package/dist/ui/data-table-context.d.ts.map +1 -0
  154. package/dist/ui/data-table-context.js +48 -0
  155. package/dist/ui/data-table-header.d.ts +10 -0
  156. package/dist/ui/data-table-header.d.ts.map +1 -0
  157. package/dist/ui/data-table-header.js +141 -0
  158. package/dist/ui/data-table-pagination.d.ts +13 -0
  159. package/dist/ui/data-table-pagination.d.ts.map +1 -0
  160. package/dist/ui/data-table-pagination.js +84 -0
  161. package/dist/ui/data-table.d.ts +11 -9
  162. package/dist/ui/data-table.d.ts.map +1 -1
  163. package/dist/ui/data-table.js +258 -573
  164. package/dist/ui/dialog.d.ts +6 -2
  165. package/dist/ui/dialog.d.ts.map +1 -1
  166. package/dist/ui/dialog.js +84 -82
  167. package/dist/ui/dropdown-menu.js +1 -1
  168. package/dist/ui/hover-card.d.ts +7 -0
  169. package/dist/ui/hover-card.d.ts.map +1 -1
  170. package/dist/ui/hover-card.js +3 -3
  171. package/dist/ui/icon-group.d.ts +2 -4
  172. package/dist/ui/icon-group.d.ts.map +1 -1
  173. package/dist/ui/icon-group.js +22 -23
  174. package/dist/ui/index.d.ts +1 -2
  175. package/dist/ui/index.d.ts.map +1 -1
  176. package/dist/ui/index.js +94 -99
  177. package/dist/ui/label.js +1 -1
  178. package/dist/ui/lib/bottom-sheet.d.ts +16 -0
  179. package/dist/ui/lib/bottom-sheet.d.ts.map +1 -0
  180. package/dist/ui/menubar.d.ts.map +1 -1
  181. package/dist/ui/menubar.js +64 -73
  182. package/dist/ui/navigation-menu.d.ts.map +1 -1
  183. package/dist/ui/navigation-menu.js +40 -44
  184. package/dist/ui/number-input.d.ts.map +1 -1
  185. package/dist/ui/number-input.js +19 -17
  186. package/dist/ui/popover.d.ts.map +1 -1
  187. package/dist/ui/popover.js +107 -32
  188. package/dist/ui/progress-ring.d.ts.map +1 -1
  189. package/dist/ui/progress-ring.js +80 -80
  190. package/dist/ui/progress.js +4 -4
  191. package/dist/ui/radio.d.ts +5 -2
  192. package/dist/ui/radio.d.ts.map +1 -1
  193. package/dist/ui/radio.js +29 -20
  194. package/dist/ui/search-input.d.ts.map +1 -1
  195. package/dist/ui/search-input.js +13 -12
  196. package/dist/ui/segmented-control.d.ts +6 -108
  197. package/dist/ui/segmented-control.d.ts.map +1 -1
  198. package/dist/ui/segmented-control.js +86 -272
  199. package/dist/ui/select.js +5 -5
  200. package/dist/ui/separator.js +5 -5
  201. package/dist/ui/sheet.d.ts +2 -0
  202. package/dist/ui/sheet.d.ts.map +1 -1
  203. package/dist/ui/sheet.js +102 -84
  204. package/dist/ui/sidebar.d.ts.map +1 -1
  205. package/dist/ui/sidebar.js +200 -175
  206. package/dist/ui/slider.js +14 -14
  207. package/dist/ui/status-dot.js +8 -8
  208. package/dist/ui/stepper.d.ts.map +1 -1
  209. package/dist/ui/stepper.js +33 -31
  210. package/dist/ui/switch.js +3 -3
  211. package/dist/ui/tabs.js +6 -6
  212. package/dist/ui/toast-types.d.ts +0 -1
  213. package/dist/ui/toast-types.d.ts.map +1 -1
  214. package/dist/ui/toast-types.js +0 -1
  215. package/dist/ui/toast.d.ts.map +1 -1
  216. package/dist/ui/toast.js +156 -150
  217. package/dist/ui/toggle-group.js +1 -1
  218. package/dist/ui/toggle.js +1 -1
  219. package/dist/ui/tooltip.js +3 -3
  220. package/docs/components/ui/data-table-body.md +13 -0
  221. package/docs/components/ui/data-table-bulk-actions.md +13 -0
  222. package/docs/components/ui/data-table-card.md +13 -0
  223. package/docs/components/ui/data-table-context.md +13 -0
  224. package/docs/components/ui/data-table-header.md +13 -0
  225. package/docs/components/ui/data-table-pagination.md +13 -0
  226. package/llms-full.txt +79 -48
  227. package/llms.txt +32 -0
  228. package/package.json +1 -6
  229. package/dist/ui/chip.d.ts +0 -19
  230. package/dist/ui/chip.d.ts.map +0 -1
  231. package/dist/ui/chip.js +0 -14
  232. package/dist/ui/lib/use-ripple.d.ts +0 -14
  233. package/dist/ui/lib/use-ripple.d.ts.map +0 -1
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as e, Fragment as h } from "react/jsx-runtime";
3
3
  import * as o from "react";
4
- import { aL as y, aM as f, aN as C, aO as u, aP as g } from "../_chunks/primitives.js";
4
+ import { aK as y, aL as f, aM as C, aN as u, aO as g } from "../_chunks/primitives.js";
5
5
  import { cn as P } from "./lib/utils.js";
6
6
  import { tweens as T, springs as O } from "./lib/motion.js";
7
7
  import { A as N, m as b } from "../_chunks/framer.js";
@@ -27,7 +27,7 @@ const m = o.createContext({ open: !1 }), M = ({
27
27
  return /* @__PURE__ */ e(w, { children: /* @__PURE__ */ e(m.Provider, { value: x, children: /* @__PURE__ */ e(g, { open: n, onOpenChange: v, ...a }) }) });
28
28
  };
29
29
  M.displayName = "Tooltip";
30
- const L = C, A = {
30
+ const K = C, A = {
31
31
  top: { y: 4 },
32
32
  bottom: { y: -4 },
33
33
  left: { x: 4 },
@@ -65,5 +65,5 @@ export {
65
65
  M as Tooltip,
66
66
  R as TooltipContent,
67
67
  F as TooltipProvider,
68
- L as TooltipTrigger
68
+ K as TooltipTrigger
69
69
  };
@@ -0,0 +1,13 @@
1
+ # $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
2
+
3
+ > Internal sub-component of DataTable. Not exported to consumers.
4
+
5
+ ## Usage
6
+
7
+ This component is used internally by `<DataTable>` and should not be imported directly.
8
+ See [DataTable](./data-table.md) for the public API.
9
+
10
+ ## Changes
11
+
12
+ ### v0.32.0
13
+ - Extracted from DataTable monolith into focused sub-component.
@@ -0,0 +1,13 @@
1
+ # $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
2
+
3
+ > Internal sub-component of DataTable. Not exported to consumers.
4
+
5
+ ## Usage
6
+
7
+ This component is used internally by `<DataTable>` and should not be imported directly.
8
+ See [DataTable](./data-table.md) for the public API.
9
+
10
+ ## Changes
11
+
12
+ ### v0.32.0
13
+ - Extracted from DataTable monolith into focused sub-component.
@@ -0,0 +1,13 @@
1
+ # $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
2
+
3
+ > Internal sub-component of DataTable. Not exported to consumers.
4
+
5
+ ## Usage
6
+
7
+ This component is used internally by `<DataTable>` and should not be imported directly.
8
+ See [DataTable](./data-table.md) for the public API.
9
+
10
+ ## Changes
11
+
12
+ ### v0.32.0
13
+ - Extracted from DataTable monolith into focused sub-component.
@@ -0,0 +1,13 @@
1
+ # $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
2
+
3
+ > Internal sub-component of DataTable. Not exported to consumers.
4
+
5
+ ## Usage
6
+
7
+ This component is used internally by `<DataTable>` and should not be imported directly.
8
+ See [DataTable](./data-table.md) for the public API.
9
+
10
+ ## Changes
11
+
12
+ ### v0.32.0
13
+ - Extracted from DataTable monolith into focused sub-component.
@@ -0,0 +1,13 @@
1
+ # $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
2
+
3
+ > Internal sub-component of DataTable. Not exported to consumers.
4
+
5
+ ## Usage
6
+
7
+ This component is used internally by `<DataTable>` and should not be imported directly.
8
+ See [DataTable](./data-table.md) for the public API.
9
+
10
+ ## Changes
11
+
12
+ ### v0.32.0
13
+ - Extracted from DataTable monolith into focused sub-component.
@@ -0,0 +1,13 @@
1
+ # $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
2
+
3
+ > Internal sub-component of DataTable. Not exported to consumers.
4
+
5
+ ## Usage
6
+
7
+ This component is used internally by `<DataTable>` and should not be imported directly.
8
+ See [DataTable](./data-table.md) for the public API.
9
+
10
+ ## Changes
11
+
12
+ ### v0.32.0
13
+ - Extracted from DataTable monolith into focused sub-component.
package/llms-full.txt CHANGED
@@ -5,7 +5,7 @@
5
5
  > All variant values and props verified from source CVA definitions.
6
6
  >
7
7
  > Package: @devalok/shilp-sutra
8
- > Version: 0.31.0
8
+ > Version: 0.32.0
9
9
 
10
10
  ---
11
11
 
@@ -1097,53 +1097,6 @@ Animated bouncing dots with a text description of who is typing.
1097
1097
  - **Changed** Bouncy check indicator animation migrated to Framer Motion
1098
1098
  - **Fixed** Icon sizing uses design tokens consistently
1099
1099
 
1100
- ### v0.1.0
1101
- - **Added** Initial release
1102
- # Chip
1103
-
1104
- - Import: @devalok/shilp-sutra/ui/chip
1105
- - Server-safe: No
1106
- - Category: ui
1107
-
1108
- ## Props
1109
- label: string (REQUIRED — use this, NOT children)
1110
- variant: "subtle" | "outline"
1111
- color: "default" | "primary" | "success" | "error" | "warning" | "info" | "teal" | "amber" | "slate" | "indigo" | "cyan" | "orange" | "emerald"
1112
- size: "sm" | "md" | "lg"
1113
- icon: ReactNode
1114
- onClick: MouseEventHandler (renders as <button> when provided)
1115
- onDismiss: () => void (shows X button)
1116
- disabled: boolean
1117
-
1118
- ## Defaults
1119
- variant="subtle", size="md", color="default"
1120
-
1121
- ## Example
1122
- ```jsx
1123
- <Chip label="In Progress" color="warning" />
1124
- <Chip label="React" color="info" onDismiss={() => removeFilter('react')} />
1125
- ```
1126
-
1127
- ## Additional Exports
1128
- ChipGroup — re-exported AnimatePresence from framer-motion; wrap a list of Chips for coordinated exit animations
1129
-
1130
- ## Gotchas
1131
- - MUST use label prop — children are NOT rendered
1132
- - `<Chip>text</Chip>` is WRONG — use `<Chip label="text" />`
1133
- - Wrap dynamic chip lists in `<ChipGroup>` for exit animations
1134
- - `color="primary"` will be renamed to `color="brand"` in v1.0 — use `color="primary"` for now
1135
-
1136
- ## Changes
1137
- ### v0.19.1
1138
- - **Fixed** `active:scale-95` tap feedback broken by Framer Motion transform override — replaced with `whileTap={{ scale: 0.95 }}`
1139
-
1140
- ### v0.4.2
1141
- - **Changed** (BREAKING) `variant="filled"` renamed to `"subtle"`, `variant="outlined"` renamed to `"outline"`, `onDelete` renamed to `onDismiss`
1142
-
1143
- ### v0.1.1
1144
- - **Fixed** `opacity-[var(--action-disabled-opacity,0.38)]` replaced with `opacity-action-disabled`
1145
- - **Fixed** Converted from `React.createElement` to JSX syntax
1146
-
1147
1100
  ### v0.1.0
1148
1101
  - **Added** Initial release
1149
1102
  # Code
@@ -1547,6 +1500,84 @@ import { DataTable } from '@devalok/shilp-sutra/ui/data-table'
1547
1500
 
1548
1501
  ### v0.1.0
1549
1502
  - **Added** Initial release
1503
+ # $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
1504
+
1505
+ > Internal sub-component of DataTable. Not exported to consumers.
1506
+
1507
+ ## Usage
1508
+
1509
+ This component is used internally by `<DataTable>` and should not be imported directly.
1510
+ See [DataTable](./data-table.md) for the public API.
1511
+
1512
+ ## Changes
1513
+
1514
+ ### v0.32.0
1515
+ - Extracted from DataTable monolith into focused sub-component.
1516
+ # $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
1517
+
1518
+ > Internal sub-component of DataTable. Not exported to consumers.
1519
+
1520
+ ## Usage
1521
+
1522
+ This component is used internally by `<DataTable>` and should not be imported directly.
1523
+ See [DataTable](./data-table.md) for the public API.
1524
+
1525
+ ## Changes
1526
+
1527
+ ### v0.32.0
1528
+ - Extracted from DataTable monolith into focused sub-component.
1529
+ # $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
1530
+
1531
+ > Internal sub-component of DataTable. Not exported to consumers.
1532
+
1533
+ ## Usage
1534
+
1535
+ This component is used internally by `<DataTable>` and should not be imported directly.
1536
+ See [DataTable](./data-table.md) for the public API.
1537
+
1538
+ ## Changes
1539
+
1540
+ ### v0.32.0
1541
+ - Extracted from DataTable monolith into focused sub-component.
1542
+ # $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
1543
+
1544
+ > Internal sub-component of DataTable. Not exported to consumers.
1545
+
1546
+ ## Usage
1547
+
1548
+ This component is used internally by `<DataTable>` and should not be imported directly.
1549
+ See [DataTable](./data-table.md) for the public API.
1550
+
1551
+ ## Changes
1552
+
1553
+ ### v0.32.0
1554
+ - Extracted from DataTable monolith into focused sub-component.
1555
+ # $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
1556
+
1557
+ > Internal sub-component of DataTable. Not exported to consumers.
1558
+
1559
+ ## Usage
1560
+
1561
+ This component is used internally by `<DataTable>` and should not be imported directly.
1562
+ See [DataTable](./data-table.md) for the public API.
1563
+
1564
+ ## Changes
1565
+
1566
+ ### v0.32.0
1567
+ - Extracted from DataTable monolith into focused sub-component.
1568
+ # $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
1569
+
1570
+ > Internal sub-component of DataTable. Not exported to consumers.
1571
+
1572
+ ## Usage
1573
+
1574
+ This component is used internally by `<DataTable>` and should not be imported directly.
1575
+ See [DataTable](./data-table.md) for the public API.
1576
+
1577
+ ## Changes
1578
+
1579
+ ### v0.32.0
1580
+ - Extracted from DataTable monolith into focused sub-component.
1550
1581
  # DataTableToolbar
1551
1582
 
1552
1583
  - Import: @devalok/shilp-sutra/ui/data-table-toolbar
package/llms.txt CHANGED
@@ -4,6 +4,38 @@
4
4
  > Built on the same primitives as shadcn/ui but with key API differences.
5
5
  > Read this file BEFORE writing any UI code. Do NOT guess from shadcn/ui knowledge.
6
6
 
7
+ ## BREAKING CHANGES (v0.32.0)
8
+
9
+ - **Button:** `variant="default"` removed (use `"solid"`), `variant="destructive"` removed (use `variant="solid" color="error"`), `color="default"` removed (use `"accent"`).
10
+ - **Chip:** Removed. Use `Badge` instead.
11
+ - **SegmentedControl:** Rewritten. `variant="filled"` → `"accent"`, `variant="tonal"` → `"default"`. `SegmentedControlItem` no longer exported. Legacy sizes `small`/`medium`/`big` removed.
12
+ - **TopBar:** Now renders as `<header>` (was `<div>`).
13
+ - **Sidebar:** Now renders as `<aside>` (was `<div>`).
14
+ - **InfoBlock:** `role="status"` (was `role="alert"`).
15
+ - **Border tokens:** One step darker system-wide.
16
+ - **Dark mode button text:** Pure white `neutral-0` (#fff) on brand-colored buttons.
17
+ - **BottomNavbar:** Bottom padding is now `pb-safe` (safe-area-inset).
18
+ - **ResponsiveOverlay:** Deprecated. Use Dialog or Sheet directly.
19
+ - **iOS inputs:** Forced to `font-size: max(16px, 1em)` on mobile via preset.
20
+
21
+ ## CHANGES (v0.32.0)
22
+
23
+ - **Mobile Responsiveness:**
24
+ - Dialog auto-fullScreens on mobile (<768px). Opt out: `<DialogContent responsive={false}>`.
25
+ - Sheet auto-bottom with swipe-to-dismiss on mobile. Drag handle, 30% threshold. Opt out: `<SheetContent responsive={false}>`.
26
+ - Popover renders as bottom drawer on mobile automatically.
27
+ - `.touch-target` utility — 44px invisible hit area for Apple HIG compliance.
28
+ - `.pt-safe`, `.pb-safe`, `.pl-safe`, `.pr-safe`, `.p-safe` — safe area inset utilities.
29
+ - `useTouchDevice()` — detects touch capability (vs viewport width).
30
+ - `useViewportHeight()` — dynamic viewport height via Visual Viewport API.
31
+ - Sidebar has swipe-to-close on mobile.
32
+ - **DataTable `mobileView="card"`** — Rows render as stacked cards below 640px. First column = card title, rest = label-value pairs.
33
+ - **DataTable `aria-sort`** — Sortable column headers include `aria-sort`.
34
+ - **Charts `ariaLabel` prop** — Configurable screen reader label on all chart components.
35
+ - **SegmentedControl** — Redesigned: `variant="default"` (white pill + shadow-sm) | `variant="accent"` (brand pill). Inset radius, snappy spring animation.
36
+ - **`--shadow-kbd` token** — Keyboard shortcut badge shadow. Use `shadow-kbd` utility.
37
+ - **Checkbox/Radio `size` prop** — `sm | md (default) | lg`.
38
+
7
39
  ## CHANGES (v0.31.0)
8
40
  - **Alert `size` prop** — `sm | md (default) | lg`. Scales padding, gap, icon, text.
9
41
  - **Card `color` prop** — `default | accent | error | success | warning | info | neutral`. Semantic border color.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devalok/shilp-sutra",
3
- "version": "0.31.0",
3
+ "version": "0.32.0",
4
4
  "description": "Devalok Design System — tokens, components, and patterns for Next.js",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -103,11 +103,6 @@
103
103
  "default": "./dist/ui/color-swatch.js",
104
104
  "types": "./dist/ui/color-swatch.d.ts"
105
105
  },
106
- "./ui/chip": {
107
- "import": "./dist/ui/chip.js",
108
- "default": "./dist/ui/chip.js",
109
- "types": "./dist/ui/chip.d.ts"
110
- },
111
106
  "./ui/code": {
112
107
  "import": "./dist/ui/code.js",
113
108
  "default": "./dist/ui/code.js",
package/dist/ui/chip.d.ts DELETED
@@ -1,19 +0,0 @@
1
- "use client";
2
- import { BadgeProps } from './badge';
3
- import * as React from 'react';
4
- /**
5
- * @deprecated Use `<Badge onClick={...}>` instead of `<Chip>`.
6
- * This wrapper maps the old Chip API (label prop) to Badge (children).
7
- */
8
- interface ChipProps extends Omit<BadgeProps, 'children'> {
9
- label: string;
10
- icon?: React.ReactElement | null;
11
- }
12
- declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLElement>>;
13
- /**
14
- * @deprecated Use `<Badge.Group>` for overflow. For exit animations, wrap in `<AnimatePresence>`.
15
- */
16
- declare const ChipGroup: ({ children, custom, initial, onExitComplete, presenceAffectsLayout, mode, propagate, anchorX, anchorY, root }: React.PropsWithChildren<import('framer-motion').AnimatePresenceProps>) => import("react/jsx-runtime").JSX.Element | null;
17
- export { Chip, ChipGroup };
18
- export type { ChipProps };
19
- //# sourceMappingURL=chip.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chip.d.ts","sourceRoot":"","sources":["../../src/ui/chip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAGzC;;;GAGG;AACH,UAAU,SAAU,SAAQ,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC;IACtD,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,CAAA;CACjC;AAED,QAAA,MAAM,IAAI,+EAMT,CAAA;AAGD;;GAEG;AACH,QAAA,MAAM,SAAS,0OAAkB,CAAA;AAEjC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAA;AAC1B,YAAY,EAAE,SAAS,EAAE,CAAA"}
package/dist/ui/chip.js DELETED
@@ -1,14 +0,0 @@
1
- "use client";
2
- import { jsx as p } from "react/jsx-runtime";
3
- import * as t from "react";
4
- import { B as a } from "../_chunks/badge-group.js";
5
- import { A as e } from "../_chunks/framer.js";
6
- const s = t.forwardRef(
7
- ({ label: o, icon: r, ...i }, m) => /* @__PURE__ */ p(a, { ref: m, startIcon: r ?? void 0, ...i, children: o })
8
- );
9
- s.displayName = "Chip";
10
- const f = e;
11
- export {
12
- s as Chip,
13
- f as ChipGroup
14
- };
@@ -1,14 +0,0 @@
1
- "use client";
2
- import { MouseEvent } from 'react';
3
- interface Ripple {
4
- id: number;
5
- x: number;
6
- y: number;
7
- size: number;
8
- }
9
- export declare function useRipple(duration?: number): {
10
- ripples: Ripple[];
11
- createRipple: (e: MouseEvent<HTMLElement>) => void;
12
- };
13
- export {};
14
- //# sourceMappingURL=use-ripple.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-ripple.d.ts","sourceRoot":"","sources":["../../../src/ui/lib/use-ripple.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,KAAK,UAAU,EAAE,MAAM,OAAO,CAAA;AAEjF,UAAU,MAAM;IACd,EAAE,EAAE,MAAM,CAAA;IACV,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,IAAI,EAAE,MAAM,CAAA;CACb;AAED,wBAAgB,SAAS,CAAC,QAAQ,SAAM;;sBAQD,UAAU,CAAC,WAAW,CAAC;EAgB7D"}