@vritti/quantum-ui 0.3.8 → 0.3.11

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 (455) hide show
  1. package/dist/Avatar.js +5 -5
  2. package/dist/BarChart.js +1 -9
  3. package/dist/BarChart.js.map +1 -1
  4. package/dist/Breadcrumb.js +1 -1
  5. package/dist/Breadcrumb.js.map +1 -1
  6. package/dist/Button.js +14 -6
  7. package/dist/Button.js.map +1 -1
  8. package/dist/Checkbox2.js +5 -5
  9. package/dist/CheckboxGroup.js +64 -6
  10. package/dist/CheckboxGroup.js.map +1 -1
  11. package/dist/Collapsible.js +1 -1
  12. package/dist/Collapsible.js.map +1 -1
  13. package/dist/ConfirmHost.js +5 -17
  14. package/dist/ConfirmHost.js.map +1 -1
  15. package/dist/CurrencyField.js +1 -1
  16. package/dist/CurrencyFilter.js.map +1 -1
  17. package/dist/DateRangePicker.js +4 -2
  18. package/dist/DateRangePicker.js.map +1 -1
  19. package/dist/DateTimePicker.js +1 -1
  20. package/dist/DateTimeRangePicker.js +4 -2
  21. package/dist/DateTimeRangePicker.js.map +1 -1
  22. package/dist/DetailSectionSkeleton.js +14 -1
  23. package/dist/DetailSectionSkeleton.js.map +1 -1
  24. package/dist/Dialog.js +1 -1
  25. package/dist/Dialog.js.map +1 -1
  26. package/dist/ErrorBoundary.js +1 -108
  27. package/dist/ErrorBoundary.js.map +1 -1
  28. package/dist/FilePreview.js +1 -145
  29. package/dist/FilePreview.js.map +1 -1
  30. package/dist/HierarchyGraph.js +12 -8
  31. package/dist/HierarchyGraph.js.map +1 -1
  32. package/dist/IconSelect.js +31393 -0
  33. package/dist/IconSelect.js.map +1 -0
  34. package/dist/Kbd.js +11 -19
  35. package/dist/Kbd.js.map +1 -1
  36. package/dist/LocationSelector.js +13 -15
  37. package/dist/LocationSelector.js.map +1 -1
  38. package/dist/OTPField.js +1 -12
  39. package/dist/OTPField.js.map +1 -1
  40. package/dist/PageContent.js.map +1 -1
  41. package/dist/PageHeaderSkeleton.js +1 -1
  42. package/dist/PageHeaderSkeleton.js.map +1 -1
  43. package/dist/PermissionGate.js +31 -0
  44. package/dist/PermissionGate.js.map +1 -0
  45. package/dist/PieChart.js.map +1 -1
  46. package/dist/Progress.js +2 -2
  47. package/dist/QuantSelector.js.map +1 -1
  48. package/dist/RadialChart.js.map +1 -1
  49. package/dist/RadioGroup.js +7 -7
  50. package/dist/Select.js +32 -188
  51. package/dist/Select.js.map +1 -1
  52. package/dist/SerialSelector.js +13 -15
  53. package/dist/SerialSelector.js.map +1 -1
  54. package/dist/Sidebar.js +8 -19
  55. package/dist/Sidebar.js.map +1 -1
  56. package/dist/Sonner.js +2 -17
  57. package/dist/Sonner.js.map +1 -1
  58. package/dist/SupplierItemSelector.js.map +1 -1
  59. package/dist/Switch.js +7 -5
  60. package/dist/Switch.js.map +1 -1
  61. package/dist/TabsSkeleton.js +49 -23
  62. package/dist/TabsSkeleton.js.map +1 -1
  63. package/dist/ThemeToggle.js +1 -41
  64. package/dist/ThemeToggle.js.map +1 -1
  65. package/dist/Toggle.js +1 -1
  66. package/dist/Tooltip.js +19 -0
  67. package/dist/Tooltip.js.map +1 -0
  68. package/dist/UomSelector.js +6 -1
  69. package/dist/UomSelector.js.map +1 -1
  70. package/dist/UploadFile.js +1 -35
  71. package/dist/UploadFile.js.map +1 -1
  72. package/dist/ValueFilter.js.map +1 -1
  73. package/dist/ViewTabs.js +1 -16
  74. package/dist/ViewTabs.js.map +1 -1
  75. package/dist/assets/quantum-ui.css +109 -4
  76. package/dist/calendar2.js +2 -13
  77. package/dist/calendar2.js.map +1 -1
  78. package/dist/check-check.js +18 -0
  79. package/dist/check-check.js.map +1 -0
  80. package/dist/chevron-left.js +15 -0
  81. package/dist/chevron-left.js.map +1 -0
  82. package/dist/circle-question-mark.js +19 -0
  83. package/dist/circle-question-mark.js.map +1 -0
  84. package/dist/circle-x.js +19 -0
  85. package/dist/circle-x.js.map +1 -0
  86. package/dist/circle.js +15 -0
  87. package/dist/circle.js.map +1 -0
  88. package/dist/components/DataTable.js +1 -1
  89. package/dist/components/DetailField.js +1 -1
  90. package/dist/components/FormattedDate.js.map +1 -1
  91. package/dist/components/PermissionGate.js +2 -0
  92. package/dist/components/PermissionGate.js.map +1 -0
  93. package/dist/components/RichTextEditor.js +1 -1
  94. package/dist/components/ScanBarcodeButton.js +1 -20
  95. package/dist/components/ScanBarcodeButton.js.map +1 -1
  96. package/dist/components/Switch.js +1 -1
  97. package/dist/components/Tooltip.js +2 -0
  98. package/dist/components/Tooltip.js.map +1 -0
  99. package/dist/components/TreeView.js +4 -4
  100. package/dist/dot.js +15 -0
  101. package/dist/dot.js.map +1 -0
  102. package/dist/dropdown-menu.js +11 -22
  103. package/dist/dropdown-menu.js.map +1 -1
  104. package/dist/file.js +148 -0
  105. package/dist/file.js.map +1 -0
  106. package/dist/globe.js +19 -0
  107. package/dist/globe.js.map +1 -0
  108. package/dist/icons.js +21 -0
  109. package/dist/icons.js.map +1 -0
  110. package/dist/image-component.js +37 -96
  111. package/dist/image-component.js.map +1 -1
  112. package/dist/index.js +7 -4
  113. package/dist/index.js.map +1 -1
  114. package/dist/index12.js +7 -7
  115. package/dist/index13.js +7 -7
  116. package/dist/index14.js +11 -11
  117. package/dist/index15.js +1 -1
  118. package/dist/index16.js +1 -1
  119. package/dist/index17.js +168 -175
  120. package/dist/index17.js.map +1 -1
  121. package/dist/index18.js +173 -201
  122. package/dist/index18.js.map +1 -1
  123. package/dist/index19.js +203 -69
  124. package/dist/index19.js.map +1 -1
  125. package/dist/index20.js +70 -211
  126. package/dist/index20.js.map +1 -1
  127. package/dist/index21.js +206 -116
  128. package/dist/index21.js.map +1 -1
  129. package/dist/index22.js +122 -70
  130. package/dist/index22.js.map +1 -1
  131. package/dist/index23.js +74 -11
  132. package/dist/index23.js.map +1 -1
  133. package/dist/index24.js +13 -1134
  134. package/dist/index24.js.map +1 -1
  135. package/dist/index25.js +1120 -219
  136. package/dist/index25.js.map +1 -1
  137. package/dist/index26.js +202 -2506
  138. package/dist/index26.js.map +1 -1
  139. package/dist/index27.js +2527 -23
  140. package/dist/index27.js.map +1 -1
  141. package/dist/index28.js +32 -4
  142. package/dist/index28.js.map +1 -1
  143. package/dist/index29.js +3 -1124
  144. package/dist/index29.js.map +1 -1
  145. package/dist/index30.js +1123 -35
  146. package/dist/index30.js.map +1 -1
  147. package/dist/index31.js +36 -310
  148. package/dist/index31.js.map +1 -1
  149. package/dist/index32.js +309 -7
  150. package/dist/index32.js.map +1 -1
  151. package/dist/index33.js +8 -30
  152. package/dist/index33.js.map +1 -1
  153. package/dist/index34.js +29 -59
  154. package/dist/index34.js.map +1 -1
  155. package/dist/index35.js +59 -10
  156. package/dist/index35.js.map +1 -1
  157. package/dist/index36.js +10 -35
  158. package/dist/index36.js.map +1 -1
  159. package/dist/index37.js +27 -36809
  160. package/dist/index37.js.map +1 -1
  161. package/dist/index38.js +35362 -70
  162. package/dist/index38.js.map +1 -1
  163. package/dist/index39.js +72 -187
  164. package/dist/index39.js.map +1 -1
  165. package/dist/index4.js +5 -5
  166. package/dist/index40.js +199 -0
  167. package/dist/index40.js.map +1 -0
  168. package/dist/lib/components/BarChart/BarChart.d.ts.map +1 -1
  169. package/dist/lib/components/Button/Button.d.ts +1 -0
  170. package/dist/lib/components/Button/Button.d.ts.map +1 -1
  171. package/dist/lib/components/CheckboxGroup/CheckboxGroup.d.ts +1 -0
  172. package/dist/lib/components/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
  173. package/dist/lib/components/Collapsible/Collapsible.d.ts.map +1 -1
  174. package/dist/lib/components/ConfirmHost/ConfirmHost.d.ts +3 -0
  175. package/dist/lib/components/ConfirmHost/ConfirmHost.d.ts.map +1 -1
  176. package/dist/lib/components/DataTable/components/RowActions.d.ts +1 -0
  177. package/dist/lib/components/DataTable/components/RowActions.d.ts.map +1 -1
  178. package/dist/lib/components/DataTable/index.d.ts +2 -2
  179. package/dist/lib/components/DataTable/index.d.ts.map +1 -1
  180. package/dist/lib/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  181. package/dist/lib/components/DateTimeRangePicker/DateTimeRangePicker.d.ts.map +1 -1
  182. package/dist/lib/components/DetailField/DetailHeader.d.ts +10 -0
  183. package/dist/lib/components/DetailField/DetailHeader.d.ts.map +1 -0
  184. package/dist/lib/components/DetailField/index.d.ts +1 -0
  185. package/dist/lib/components/DetailField/index.d.ts.map +1 -1
  186. package/dist/lib/components/Dialog/Dialog.d.ts.map +1 -1
  187. package/dist/lib/components/Editor/context/editor-config-context.d.ts +2 -2
  188. package/dist/lib/components/Editor/context/editor-config-context.d.ts.map +1 -1
  189. package/dist/lib/components/Editor/context/toolbar-context.d.ts +1 -1
  190. package/dist/lib/components/Editor/context/toolbar-context.d.ts.map +1 -1
  191. package/dist/lib/components/Editor/editor-hooks/use-debounce.d.ts.map +1 -1
  192. package/dist/lib/components/Editor/editor-hooks/use-modal.d.ts.map +1 -1
  193. package/dist/lib/components/Editor/editor-hooks/use-update-toolbar.d.ts.map +1 -1
  194. package/dist/lib/components/Editor/editor-ui/button-group.d.ts +3 -3
  195. package/dist/lib/components/Editor/editor-ui/button-group.d.ts.map +1 -1
  196. package/dist/lib/components/Editor/editor-ui/button.d.ts +2 -2
  197. package/dist/lib/components/Editor/editor-ui/button.d.ts.map +1 -1
  198. package/dist/lib/components/Editor/editor-ui/code-button.d.ts.map +1 -1
  199. package/dist/lib/components/Editor/editor-ui/color-picker.d.ts +8 -8
  200. package/dist/lib/components/Editor/editor-ui/color-picker.d.ts.map +1 -1
  201. package/dist/lib/components/Editor/editor-ui/command.d.ts +2 -2
  202. package/dist/lib/components/Editor/editor-ui/command.d.ts.map +1 -1
  203. package/dist/lib/components/Editor/editor-ui/content-editable.d.ts +1 -1
  204. package/dist/lib/components/Editor/editor-ui/content-editable.d.ts.map +1 -1
  205. package/dist/lib/components/Editor/editor-ui/dialog.d.ts +4 -4
  206. package/dist/lib/components/Editor/editor-ui/dialog.d.ts.map +1 -1
  207. package/dist/lib/components/Editor/editor-ui/image-component.d.ts +3 -3
  208. package/dist/lib/components/Editor/editor-ui/image-component.d.ts.map +1 -1
  209. package/dist/lib/components/Editor/editor-ui/image-resizer.d.ts +2 -2
  210. package/dist/lib/components/Editor/editor-ui/image-resizer.d.ts.map +1 -1
  211. package/dist/lib/components/Editor/editor-ui/input.d.ts +2 -2
  212. package/dist/lib/components/Editor/editor-ui/input.d.ts.map +1 -1
  213. package/dist/lib/components/Editor/editor-ui/label.d.ts +2 -2
  214. package/dist/lib/components/Editor/editor-ui/label.d.ts.map +1 -1
  215. package/dist/lib/components/Editor/editor-ui/popover.d.ts +2 -2
  216. package/dist/lib/components/Editor/editor-ui/popover.d.ts.map +1 -1
  217. package/dist/lib/components/Editor/editor-ui/scroll-area.d.ts +2 -2
  218. package/dist/lib/components/Editor/editor-ui/scroll-area.d.ts.map +1 -1
  219. package/dist/lib/components/Editor/editor-ui/select.d.ts +3 -3
  220. package/dist/lib/components/Editor/editor-ui/select.d.ts.map +1 -1
  221. package/dist/lib/components/Editor/editor-ui/separator.d.ts +2 -2
  222. package/dist/lib/components/Editor/editor-ui/separator.d.ts.map +1 -1
  223. package/dist/lib/components/Editor/editor-ui/tabs.d.ts +2 -2
  224. package/dist/lib/components/Editor/editor-ui/tabs.d.ts.map +1 -1
  225. package/dist/lib/components/Editor/editor-ui/toggle-group.d.ts +2 -2
  226. package/dist/lib/components/Editor/editor-ui/toggle-group.d.ts.map +1 -1
  227. package/dist/lib/components/Editor/editor-ui/toggle.d.ts +2 -2
  228. package/dist/lib/components/Editor/editor-ui/toggle.d.ts.map +1 -1
  229. package/dist/lib/components/Editor/editor-ui/tooltip.d.ts +2 -2
  230. package/dist/lib/components/Editor/editor-ui/tooltip.d.ts.map +1 -1
  231. package/dist/lib/components/Editor/index.d.ts.map +1 -1
  232. package/dist/lib/components/Editor/nodes/autocomplete-node.d.ts +2 -2
  233. package/dist/lib/components/Editor/nodes/autocomplete-node.d.ts.map +1 -1
  234. package/dist/lib/components/Editor/nodes/embeds/tweet-node.d.ts +2 -2
  235. package/dist/lib/components/Editor/nodes/embeds/tweet-node.d.ts.map +1 -1
  236. package/dist/lib/components/Editor/nodes/embeds/youtube-node.d.ts +1 -1
  237. package/dist/lib/components/Editor/nodes/embeds/youtube-node.d.ts.map +1 -1
  238. package/dist/lib/components/Editor/nodes/emoji-node.d.ts.map +1 -1
  239. package/dist/lib/components/Editor/nodes/image-node.d.ts +5 -5
  240. package/dist/lib/components/Editor/nodes/image-node.d.ts.map +1 -1
  241. package/dist/lib/components/Editor/nodes/keyword-node.d.ts.map +1 -1
  242. package/dist/lib/components/Editor/nodes/layout-container-node.d.ts.map +1 -1
  243. package/dist/lib/components/Editor/nodes/layout-item-node.d.ts.map +1 -1
  244. package/dist/lib/components/Editor/nodes/mention-node.d.ts +1 -1
  245. package/dist/lib/components/Editor/nodes/mention-node.d.ts.map +1 -1
  246. package/dist/lib/components/Editor/nodes/nodes.d.ts.map +1 -1
  247. package/dist/lib/components/Editor/nodes.d.ts.map +1 -1
  248. package/dist/lib/components/Editor/plugins/actions/character-limit-plugin.d.ts +2 -2
  249. package/dist/lib/components/Editor/plugins/actions/character-limit-plugin.d.ts.map +1 -1
  250. package/dist/lib/components/Editor/plugins/actions/clear-editor-plugin.d.ts.map +1 -1
  251. package/dist/lib/components/Editor/plugins/actions/counter-character-plugin.d.ts +2 -2
  252. package/dist/lib/components/Editor/plugins/actions/counter-character-plugin.d.ts.map +1 -1
  253. package/dist/lib/components/Editor/plugins/actions/edit-mode-toggle-plugin.d.ts.map +1 -1
  254. package/dist/lib/components/Editor/plugins/actions/import-export-plugin.d.ts.map +1 -1
  255. package/dist/lib/components/Editor/plugins/actions/markdown-toggle-plugin.d.ts.map +1 -1
  256. package/dist/lib/components/Editor/plugins/actions/max-length-plugin.d.ts.map +1 -1
  257. package/dist/lib/components/Editor/plugins/actions/share-content-plugin.d.ts.map +1 -1
  258. package/dist/lib/components/Editor/plugins/actions/speech-to-text-plugin.d.ts.map +1 -1
  259. package/dist/lib/components/Editor/plugins/actions/tree-view-plugin.d.ts.map +1 -1
  260. package/dist/lib/components/Editor/plugins/auto-link-plugin.d.ts.map +1 -1
  261. package/dist/lib/components/Editor/plugins/autocomplete-plugin.d.ts.map +1 -1
  262. package/dist/lib/components/Editor/plugins/code-action-menu-plugin.d.ts.map +1 -1
  263. package/dist/lib/components/Editor/plugins/code-highlight-plugin.d.ts.map +1 -1
  264. package/dist/lib/components/Editor/plugins/component-picker-menu-plugin.d.ts +1 -1
  265. package/dist/lib/components/Editor/plugins/component-picker-menu-plugin.d.ts.map +1 -1
  266. package/dist/lib/components/Editor/plugins/context-menu-plugin.d.ts.map +1 -1
  267. package/dist/lib/components/Editor/plugins/drag-drop-paste-plugin.d.ts.map +1 -1
  268. package/dist/lib/components/Editor/plugins/draggable-block-plugin.d.ts +1 -1
  269. package/dist/lib/components/Editor/plugins/draggable-block-plugin.d.ts.map +1 -1
  270. package/dist/lib/components/Editor/plugins/embeds/auto-embed-plugin.d.ts +1 -1
  271. package/dist/lib/components/Editor/plugins/embeds/auto-embed-plugin.d.ts.map +1 -1
  272. package/dist/lib/components/Editor/plugins/embeds/twitter-plugin.d.ts +1 -1
  273. package/dist/lib/components/Editor/plugins/embeds/twitter-plugin.d.ts.map +1 -1
  274. package/dist/lib/components/Editor/plugins/embeds/youtube-plugin.d.ts +1 -1
  275. package/dist/lib/components/Editor/plugins/embeds/youtube-plugin.d.ts.map +1 -1
  276. package/dist/lib/components/Editor/plugins/emoji-picker-plugin.d.ts.map +1 -1
  277. package/dist/lib/components/Editor/plugins/emojis-plugin.d.ts.map +1 -1
  278. package/dist/lib/components/Editor/plugins/floating-link-editor-plugin.d.ts.map +1 -1
  279. package/dist/lib/components/Editor/plugins/floating-text-format-plugin.d.ts.map +1 -1
  280. package/dist/lib/components/Editor/plugins/images-plugin.d.ts +4 -4
  281. package/dist/lib/components/Editor/plugins/images-plugin.d.ts.map +1 -1
  282. package/dist/lib/components/Editor/plugins/keywords-plugin.d.ts.map +1 -1
  283. package/dist/lib/components/Editor/plugins/layout-plugin.d.ts +1 -1
  284. package/dist/lib/components/Editor/plugins/layout-plugin.d.ts.map +1 -1
  285. package/dist/lib/components/Editor/plugins/link-plugin.d.ts.map +1 -1
  286. package/dist/lib/components/Editor/plugins/list-max-indent-level-plugin.d.ts +1 -1
  287. package/dist/lib/components/Editor/plugins/list-max-indent-level-plugin.d.ts.map +1 -1
  288. package/dist/lib/components/Editor/plugins/mentions-plugin.d.ts.map +1 -1
  289. package/dist/lib/components/Editor/plugins/picker/alignment-picker-plugin.d.ts +2 -2
  290. package/dist/lib/components/Editor/plugins/picker/alignment-picker-plugin.d.ts.map +1 -1
  291. package/dist/lib/components/Editor/plugins/picker/bulleted-list-picker-plugin.d.ts.map +1 -1
  292. package/dist/lib/components/Editor/plugins/picker/check-list-picker-plugin.d.ts.map +1 -1
  293. package/dist/lib/components/Editor/plugins/picker/code-picker-plugin.d.ts.map +1 -1
  294. package/dist/lib/components/Editor/plugins/picker/columns-layout-picker-plugin.d.ts.map +1 -1
  295. package/dist/lib/components/Editor/plugins/picker/component-picker-menu-plugin.d.ts.map +1 -1
  296. package/dist/lib/components/Editor/plugins/picker/component-picker-option.d.ts +1 -1
  297. package/dist/lib/components/Editor/plugins/picker/component-picker-option.d.ts.map +1 -1
  298. package/dist/lib/components/Editor/plugins/picker/divider-picker-plugin.d.ts.map +1 -1
  299. package/dist/lib/components/Editor/plugins/picker/embeds-picker-plugin.d.ts +2 -2
  300. package/dist/lib/components/Editor/plugins/picker/embeds-picker-plugin.d.ts.map +1 -1
  301. package/dist/lib/components/Editor/plugins/picker/heading-picker-plugin.d.ts.map +1 -1
  302. package/dist/lib/components/Editor/plugins/picker/image-picker-plugin.d.ts.map +1 -1
  303. package/dist/lib/components/Editor/plugins/picker/numbered-list-picker-plugin.d.ts.map +1 -1
  304. package/dist/lib/components/Editor/plugins/picker/paragraph-picker-plugin.d.ts.map +1 -1
  305. package/dist/lib/components/Editor/plugins/picker/quote-picker-plugin.d.ts.map +1 -1
  306. package/dist/lib/components/Editor/plugins/picker/table-picker-plugin.d.ts +1 -1
  307. package/dist/lib/components/Editor/plugins/picker/table-picker-plugin.d.ts.map +1 -1
  308. package/dist/lib/components/Editor/plugins/plugins.d.ts +1 -1
  309. package/dist/lib/components/Editor/plugins/plugins.d.ts.map +1 -1
  310. package/dist/lib/components/Editor/plugins/tab-focus-plugin.d.ts.map +1 -1
  311. package/dist/lib/components/Editor/plugins/table-plugin.d.ts +2 -3
  312. package/dist/lib/components/Editor/plugins/table-plugin.d.ts.map +1 -1
  313. package/dist/lib/components/Editor/plugins/toolbar/block-format/block-format-data.d.ts.map +1 -1
  314. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-heading.d.ts.map +1 -1
  315. package/dist/lib/components/Editor/plugins/toolbar/block-format-toolbar-plugin.d.ts +1 -1
  316. package/dist/lib/components/Editor/plugins/toolbar/block-format-toolbar-plugin.d.ts.map +1 -1
  317. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-horizontal-rule.d.ts.map +1 -1
  318. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-image.d.ts.map +1 -1
  319. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-table.d.ts.map +1 -1
  320. package/dist/lib/components/Editor/plugins/toolbar/block-insert-plugin.d.ts.map +1 -1
  321. package/dist/lib/components/Editor/plugins/toolbar/clear-formatting-toolbar-plugin.d.ts.map +1 -1
  322. package/dist/lib/components/Editor/plugins/toolbar/code-language-toolbar-plugin.d.ts.map +1 -1
  323. package/dist/lib/components/Editor/plugins/toolbar/element-format-toolbar-plugin.d.ts +1 -1
  324. package/dist/lib/components/Editor/plugins/toolbar/element-format-toolbar-plugin.d.ts.map +1 -1
  325. package/dist/lib/components/Editor/plugins/toolbar/font-background-toolbar-plugin.d.ts.map +1 -1
  326. package/dist/lib/components/Editor/plugins/toolbar/font-color-toolbar-plugin.d.ts.map +1 -1
  327. package/dist/lib/components/Editor/plugins/toolbar/font-family-toolbar-plugin.d.ts.map +1 -1
  328. package/dist/lib/components/Editor/plugins/toolbar/font-format-toolbar-plugin.d.ts.map +1 -1
  329. package/dist/lib/components/Editor/plugins/toolbar/font-size-toolbar-plugin.d.ts.map +1 -1
  330. package/dist/lib/components/Editor/plugins/toolbar/history-toolbar-plugin.d.ts.map +1 -1
  331. package/dist/lib/components/Editor/plugins/toolbar/horizontal-rule-toolbar-plugin.d.ts.map +1 -1
  332. package/dist/lib/components/Editor/plugins/toolbar/image-toolbar-plugin.d.ts.map +1 -1
  333. package/dist/lib/components/Editor/plugins/toolbar/link-toolbar-plugin.d.ts +1 -1
  334. package/dist/lib/components/Editor/plugins/toolbar/link-toolbar-plugin.d.ts.map +1 -1
  335. package/dist/lib/components/Editor/plugins/toolbar/subsuper-toolbar-plugin.d.ts.map +1 -1
  336. package/dist/lib/components/Editor/plugins/toolbar/table-toolbar-plugin.d.ts.map +1 -1
  337. package/dist/lib/components/Editor/plugins/toolbar/toolbar-plugin.d.ts +1 -1
  338. package/dist/lib/components/Editor/plugins/toolbar/toolbar-plugin.d.ts.map +1 -1
  339. package/dist/lib/components/Editor/plugins/typing-pref-plugin.d.ts.map +1 -1
  340. package/dist/lib/components/Editor/plugins.d.ts.map +1 -1
  341. package/dist/lib/components/Editor/shared/can-use-dom.d.ts.map +1 -1
  342. package/dist/lib/components/Editor/shared/caret-from-point.d.ts.map +1 -1
  343. package/dist/lib/components/Editor/shared/environment.d.ts.map +1 -1
  344. package/dist/lib/components/Editor/shared/invariant.d.ts +1 -1
  345. package/dist/lib/components/Editor/shared/invariant.d.ts.map +1 -1
  346. package/dist/lib/components/Editor/shared/react-test-utils.d.ts +1 -1
  347. package/dist/lib/components/Editor/shared/react-test-utils.d.ts.map +1 -1
  348. package/dist/lib/components/Editor/shared/simple-diff-with-cursor.d.ts.map +1 -1
  349. package/dist/lib/components/Editor/shared/use-layout-effect.d.ts.map +1 -1
  350. package/dist/lib/components/Editor/themes/editor-theme.d.ts.map +1 -1
  351. package/dist/lib/components/Editor/transformers/index.d.ts +6 -6
  352. package/dist/lib/components/Editor/transformers/index.d.ts.map +1 -1
  353. package/dist/lib/components/Editor/transformers/markdown-emoji-transformer.d.ts.map +1 -1
  354. package/dist/lib/components/Editor/transformers/markdown-hr-transformer.d.ts.map +1 -1
  355. package/dist/lib/components/Editor/transformers/markdown-image-transformer.d.ts.map +1 -1
  356. package/dist/lib/components/Editor/transformers/markdown-table-transformer.d.ts.map +1 -1
  357. package/dist/lib/components/Editor/transformers/markdown-tweet-transformer.d.ts.map +1 -1
  358. package/dist/lib/components/Editor/types.d.ts.map +1 -1
  359. package/dist/lib/components/Editor/utils/can-use-dom.d.ts.map +1 -1
  360. package/dist/lib/components/Editor/utils/doc-serialization.d.ts.map +1 -1
  361. package/dist/lib/components/Editor/utils/emoji-list.d.ts.map +1 -1
  362. package/dist/lib/components/Editor/utils/get-dom-range-rect.d.ts.map +1 -1
  363. package/dist/lib/components/Editor/utils/get-selected-node.d.ts.map +1 -1
  364. package/dist/lib/components/Editor/utils/set-floating-elem-position.d.ts.map +1 -1
  365. package/dist/lib/components/Editor/utils/swipe.d.ts.map +1 -1
  366. package/dist/lib/components/Editor/utils/url.d.ts.map +1 -1
  367. package/dist/lib/components/FormattedDate/FormattedDate.d.ts.map +1 -1
  368. package/dist/lib/components/FormattedDate/index.d.ts +1 -1
  369. package/dist/lib/components/FormattedDate/index.d.ts.map +1 -1
  370. package/dist/lib/components/HierarchyGraph/HierarchyGraph.d.ts.map +1 -1
  371. package/dist/lib/components/Kbd/Kbd.d.ts.map +1 -1
  372. package/dist/lib/components/Kbd/index.d.ts +1 -1
  373. package/dist/lib/components/Kbd/index.d.ts.map +1 -1
  374. package/dist/lib/components/PageContent/PageContent.d.ts.map +1 -1
  375. package/dist/lib/components/PermissionGate/PermissionGate.d.ts +18 -0
  376. package/dist/lib/components/PermissionGate/PermissionGate.d.ts.map +1 -0
  377. package/dist/lib/components/PermissionGate/index.d.ts +2 -0
  378. package/dist/lib/components/PermissionGate/index.d.ts.map +1 -0
  379. package/dist/lib/components/PieChart/PieChart.d.ts.map +1 -1
  380. package/dist/lib/components/RadialChart/RadialChart.d.ts.map +1 -1
  381. package/dist/lib/components/Select/Select.d.ts.map +1 -1
  382. package/dist/lib/components/Select/components/MultiSelect/MultiSelect.d.ts.map +1 -1
  383. package/dist/lib/components/Select/hooks/useSelect.d.ts +2 -1
  384. package/dist/lib/components/Select/hooks/useSelect.d.ts.map +1 -1
  385. package/dist/lib/components/Sidebar/Sidebar.d.ts +2 -0
  386. package/dist/lib/components/Sidebar/Sidebar.d.ts.map +1 -1
  387. package/dist/lib/components/Switch/Switch.d.ts +2 -0
  388. package/dist/lib/components/Switch/Switch.d.ts.map +1 -1
  389. package/dist/lib/components/Switch/index.d.ts +2 -2
  390. package/dist/lib/components/Switch/index.d.ts.map +1 -1
  391. package/dist/lib/components/Tabs/Tabs.d.ts +2 -1
  392. package/dist/lib/components/Tabs/Tabs.d.ts.map +1 -1
  393. package/dist/lib/components/Tooltip/Tooltip.d.ts +12 -0
  394. package/dist/lib/components/Tooltip/Tooltip.d.ts.map +1 -0
  395. package/dist/lib/components/Tooltip/index.d.ts +3 -0
  396. package/dist/lib/components/Tooltip/index.d.ts.map +1 -0
  397. package/dist/lib/components/ValueFilter/ValueFilter.d.ts.map +1 -1
  398. package/dist/lib/components/index.d.ts +5 -3
  399. package/dist/lib/components/index.d.ts.map +1 -1
  400. package/dist/lib/hooks/useFormatters.d.ts.map +1 -1
  401. package/dist/lib/icons/icon-names.json.d.ts +13731 -0
  402. package/dist/lib/icons/index.d.ts +4 -0
  403. package/dist/lib/icons/index.d.ts.map +1 -0
  404. package/dist/lib/selects/currency/CurrencyFilter.d.ts.map +1 -1
  405. package/dist/lib/selects/icon/IconSelect.d.ts +20 -0
  406. package/dist/lib/selects/icon/IconSelect.d.ts.map +1 -0
  407. package/dist/lib/selects/icon/index.d.ts +2 -0
  408. package/dist/lib/selects/icon/index.d.ts.map +1 -0
  409. package/dist/lib/selects/index.d.ts +3 -2
  410. package/dist/lib/selects/index.d.ts.map +1 -1
  411. package/dist/lib/selects/location/LocationSelector.d.ts.map +1 -1
  412. package/dist/lib/selects/location/index.d.ts +1 -1
  413. package/dist/lib/selects/location/index.d.ts.map +1 -1
  414. package/dist/lib/selects/purchase-order-item/PurchaseOrderItemSelector.d.ts.map +1 -1
  415. package/dist/lib/selects/quant/QuantSelector.d.ts.map +1 -1
  416. package/dist/lib/selects/serial/SerialSelector.d.ts.map +1 -1
  417. package/dist/lib/selects/supplier-item/SupplierItemSelector.d.ts.map +1 -1
  418. package/dist/lib/selects/uom/UomSelector.d.ts.map +1 -1
  419. package/dist/lib/utils/format.d.ts.map +1 -1
  420. package/dist/lib/utils/hotkeys.d.ts +1 -1
  421. package/dist/lib/utils/hotkeys.d.ts.map +1 -1
  422. package/dist/lib/utils/zod.d.ts.map +1 -1
  423. package/dist/lock-keyhole.js +19 -0
  424. package/dist/lock-keyhole.js.map +1 -0
  425. package/dist/panel-left.js +18 -0
  426. package/dist/panel-left.js.map +1 -0
  427. package/dist/scan-barcode.js +23 -0
  428. package/dist/scan-barcode.js.map +1 -0
  429. package/dist/selects/icon.js +2 -0
  430. package/dist/selects/icon.js.map +1 -0
  431. package/dist/selects/purchase-order-item.js.map +1 -1
  432. package/dist/shadcn/shadcnMultiSelect/multi-select.d.ts.map +1 -1
  433. package/dist/sun.js +44 -0
  434. package/dist/sun.js.map +1 -0
  435. package/dist/table-properties.js +351 -0
  436. package/dist/table-properties.js.map +1 -0
  437. package/dist/{tooltip.js → tooltip2.js} +1 -1
  438. package/dist/tooltip2.js.map +1 -0
  439. package/dist/{cells.js → useDataTable.js} +45 -381
  440. package/dist/useDataTable.js.map +1 -0
  441. package/dist/useFormatters.js.map +1 -1
  442. package/dist/user.js +38 -0
  443. package/dist/user.js.map +1 -0
  444. package/dist/utils/format.js +1 -0
  445. package/dist/utils/format.js.map +1 -1
  446. package/dist/utils/motion.js +2 -2
  447. package/dist/utils/zod.js.map +1 -1
  448. package/dist/value.js +1 -1
  449. package/dist/wifi-off.js +111 -0
  450. package/dist/wifi-off.js.map +1 -0
  451. package/dist/youtube.js +737 -0
  452. package/dist/youtube.js.map +1 -0
  453. package/package.json +19 -1
  454. package/dist/cells.js.map +0 -1
  455. package/dist/tooltip.js.map +0 -1
@@ -1,11 +1,13 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import { c as cn } from './utils.js';
3
3
  import { S as Skeleton } from './Skeleton.js';
4
+ import { a as useFormatters } from './useFormatters.js';
4
5
  import { a as useDialog, u as useConfirm } from './useConfirm.js';
5
6
  import { B as Button } from './Button.js';
6
7
  import { D as Dialog, a as DialogActions } from './Dialog.js';
7
8
  import { D as DropdownMenu } from './DropdownMenu.js';
8
- import { c as createLucideIcon } from './createLucideIcon.js';
9
+ import { b as usePermissionGate, l as lockedTip } from './PermissionGate.js';
10
+ import { A as ArrowDown, a as ArrowUp, I as Inbox, S as Settings, C as ChevronsLeft, b as ChevronsRight, c as Columns2, P as Pin, E as EllipsisVertical, F as FileUp, d as FilePlusCorner, R as RefreshCw, e as Equal, f as ArrowLeft, B as BookmarkPlus, L as LayoutList, g as Settings2, h as Funnel, i as ArrowUpFromLine, j as ArrowDownToLine, T as TableProperties } from './table-properties.js';
9
11
  import { useMutation, useQueryClient, useQuery } from '@tanstack/react-query';
10
12
  import * as React from 'react';
11
13
  import React__default, { useRef, Children, isValidElement, cloneElement, useMemo, useState, useEffect, forwardRef, useCallback, useLayoutEffect } from 'react';
@@ -23,7 +25,7 @@ import { U as Upload } from './upload.js';
23
25
  import { T as TextAlignJustify, D as Download } from './text-align-justify.js';
24
26
  import { C as CircleCheck } from './circle-check.js';
25
27
  import { S as Select, a as SelectTrigger, b as SelectValue, c as SelectContent, d as SelectItem } from './select2.js';
26
- import { a as ChevronLeft } from './calendar2.js';
28
+ import { C as ChevronLeft } from './chevron-left.js';
27
29
  import { I as Input } from './Input.js';
28
30
  import { C as ChevronRight } from './chevron-right.js';
29
31
  import { C as Check } from './check.js';
@@ -42,354 +44,6 @@ import { T as TriangleAlert } from './triangle-alert.js';
42
44
  import { pluralize } from './utils/pluralize.js';
43
45
  import { C as Checkbox } from './Checkbox.js';
44
46
  import { g as getConfig } from './index7.js';
45
- import { a as useFormatters } from './useFormatters.js';
46
-
47
- /**
48
- * @license lucide-react v0.562.0 - ISC
49
- *
50
- * This source code is licensed under the ISC license.
51
- * See the LICENSE file in the root directory of this source tree.
52
- */
53
-
54
-
55
- const __iconNode$k = [
56
- ["path", { d: "M12 17V3", key: "1cwfxf" }],
57
- ["path", { d: "m6 11 6 6 6-6", key: "12ii2o" }],
58
- ["path", { d: "M19 21H5", key: "150jfl" }]
59
- ];
60
- const ArrowDownToLine = createLucideIcon("arrow-down-to-line", __iconNode$k);
61
-
62
- /**
63
- * @license lucide-react v0.562.0 - ISC
64
- *
65
- * This source code is licensed under the ISC license.
66
- * See the LICENSE file in the root directory of this source tree.
67
- */
68
-
69
-
70
- const __iconNode$j = [
71
- ["path", { d: "M12 5v14", key: "s699le" }],
72
- ["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
73
- ];
74
- const ArrowDown = createLucideIcon("arrow-down", __iconNode$j);
75
-
76
- /**
77
- * @license lucide-react v0.562.0 - ISC
78
- *
79
- * This source code is licensed under the ISC license.
80
- * See the LICENSE file in the root directory of this source tree.
81
- */
82
-
83
-
84
- const __iconNode$i = [
85
- ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
86
- ["path", { d: "M19 12H5", key: "x3x0zl" }]
87
- ];
88
- const ArrowLeft = createLucideIcon("arrow-left", __iconNode$i);
89
-
90
- /**
91
- * @license lucide-react v0.562.0 - ISC
92
- *
93
- * This source code is licensed under the ISC license.
94
- * See the LICENSE file in the root directory of this source tree.
95
- */
96
-
97
-
98
- const __iconNode$h = [
99
- ["path", { d: "m18 9-6-6-6 6", key: "kcunyi" }],
100
- ["path", { d: "M12 3v14", key: "7cf3v8" }],
101
- ["path", { d: "M5 21h14", key: "11awu3" }]
102
- ];
103
- const ArrowUpFromLine = createLucideIcon("arrow-up-from-line", __iconNode$h);
104
-
105
- /**
106
- * @license lucide-react v0.562.0 - ISC
107
- *
108
- * This source code is licensed under the ISC license.
109
- * See the LICENSE file in the root directory of this source tree.
110
- */
111
-
112
-
113
- const __iconNode$g = [
114
- ["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
115
- ["path", { d: "M12 19V5", key: "x0mq9r" }]
116
- ];
117
- const ArrowUp = createLucideIcon("arrow-up", __iconNode$g);
118
-
119
- /**
120
- * @license lucide-react v0.562.0 - ISC
121
- *
122
- * This source code is licensed under the ISC license.
123
- * See the LICENSE file in the root directory of this source tree.
124
- */
125
-
126
-
127
- const __iconNode$f = [
128
- ["path", { d: "m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z", key: "1fy3hk" }],
129
- ["line", { x1: "12", x2: "12", y1: "7", y2: "13", key: "1cppfj" }],
130
- ["line", { x1: "15", x2: "9", y1: "10", y2: "10", key: "1gty7f" }]
131
- ];
132
- const BookmarkPlus = createLucideIcon("bookmark-plus", __iconNode$f);
133
-
134
- /**
135
- * @license lucide-react v0.562.0 - ISC
136
- *
137
- * This source code is licensed under the ISC license.
138
- * See the LICENSE file in the root directory of this source tree.
139
- */
140
-
141
-
142
- const __iconNode$e = [
143
- ["path", { d: "m11 17-5-5 5-5", key: "13zhaf" }],
144
- ["path", { d: "m18 17-5-5 5-5", key: "h8a8et" }]
145
- ];
146
- const ChevronsLeft = createLucideIcon("chevrons-left", __iconNode$e);
147
-
148
- /**
149
- * @license lucide-react v0.562.0 - ISC
150
- *
151
- * This source code is licensed under the ISC license.
152
- * See the LICENSE file in the root directory of this source tree.
153
- */
154
-
155
-
156
- const __iconNode$d = [
157
- ["path", { d: "m6 17 5-5-5-5", key: "xnjwq" }],
158
- ["path", { d: "m13 17 5-5-5-5", key: "17xmmf" }]
159
- ];
160
- const ChevronsRight = createLucideIcon("chevrons-right", __iconNode$d);
161
-
162
- /**
163
- * @license lucide-react v0.562.0 - ISC
164
- *
165
- * This source code is licensed under the ISC license.
166
- * See the LICENSE file in the root directory of this source tree.
167
- */
168
-
169
-
170
- const __iconNode$c = [
171
- ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
172
- ["path", { d: "M12 3v18", key: "108xh3" }]
173
- ];
174
- const Columns2 = createLucideIcon("columns-2", __iconNode$c);
175
-
176
- /**
177
- * @license lucide-react v0.562.0 - ISC
178
- *
179
- * This source code is licensed under the ISC license.
180
- * See the LICENSE file in the root directory of this source tree.
181
- */
182
-
183
-
184
- const __iconNode$b = [
185
- ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
186
- ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
187
- ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
188
- ];
189
- const EllipsisVertical = createLucideIcon("ellipsis-vertical", __iconNode$b);
190
-
191
- /**
192
- * @license lucide-react v0.562.0 - ISC
193
- *
194
- * This source code is licensed under the ISC license.
195
- * See the LICENSE file in the root directory of this source tree.
196
- */
197
-
198
-
199
- const __iconNode$a = [
200
- ["line", { x1: "5", x2: "19", y1: "9", y2: "9", key: "1nwqeh" }],
201
- ["line", { x1: "5", x2: "19", y1: "15", y2: "15", key: "g8yjpy" }]
202
- ];
203
- const Equal = createLucideIcon("equal", __iconNode$a);
204
-
205
- /**
206
- * @license lucide-react v0.562.0 - ISC
207
- *
208
- * This source code is licensed under the ISC license.
209
- * See the LICENSE file in the root directory of this source tree.
210
- */
211
-
212
-
213
- const __iconNode$9 = [
214
- [
215
- "path",
216
- {
217
- d: "M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",
218
- key: "17jvcc"
219
- }
220
- ],
221
- ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
222
- ["path", { d: "M14 19h6", key: "bvotb8" }],
223
- ["path", { d: "M17 16v6", key: "18yu1i" }]
224
- ];
225
- const FilePlusCorner = createLucideIcon("file-plus-corner", __iconNode$9);
226
-
227
- /**
228
- * @license lucide-react v0.562.0 - ISC
229
- *
230
- * This source code is licensed under the ISC license.
231
- * See the LICENSE file in the root directory of this source tree.
232
- */
233
-
234
-
235
- const __iconNode$8 = [
236
- [
237
- "path",
238
- {
239
- d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
240
- key: "1oefj6"
241
- }
242
- ],
243
- ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
244
- ["path", { d: "M12 12v6", key: "3ahymv" }],
245
- ["path", { d: "m15 15-3-3-3 3", key: "15xj92" }]
246
- ];
247
- const FileUp = createLucideIcon("file-up", __iconNode$8);
248
-
249
- /**
250
- * @license lucide-react v0.562.0 - ISC
251
- *
252
- * This source code is licensed under the ISC license.
253
- * See the LICENSE file in the root directory of this source tree.
254
- */
255
-
256
-
257
- const __iconNode$7 = [
258
- [
259
- "path",
260
- {
261
- d: "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",
262
- key: "sc7q7i"
263
- }
264
- ]
265
- ];
266
- const Funnel = createLucideIcon("funnel", __iconNode$7);
267
-
268
- /**
269
- * @license lucide-react v0.562.0 - ISC
270
- *
271
- * This source code is licensed under the ISC license.
272
- * See the LICENSE file in the root directory of this source tree.
273
- */
274
-
275
-
276
- const __iconNode$6 = [
277
- ["polyline", { points: "22 12 16 12 14 15 10 15 8 12 2 12", key: "o97t9d" }],
278
- [
279
- "path",
280
- {
281
- d: "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",
282
- key: "oot6mr"
283
- }
284
- ]
285
- ];
286
- const Inbox = createLucideIcon("inbox", __iconNode$6);
287
-
288
- /**
289
- * @license lucide-react v0.562.0 - ISC
290
- *
291
- * This source code is licensed under the ISC license.
292
- * See the LICENSE file in the root directory of this source tree.
293
- */
294
-
295
-
296
- const __iconNode$5 = [
297
- ["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
298
- ["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }],
299
- ["path", { d: "M14 4h7", key: "3xa0d5" }],
300
- ["path", { d: "M14 9h7", key: "1icrd9" }],
301
- ["path", { d: "M14 15h7", key: "1mj8o2" }],
302
- ["path", { d: "M14 20h7", key: "11slyb" }]
303
- ];
304
- const LayoutList = createLucideIcon("layout-list", __iconNode$5);
305
-
306
- /**
307
- * @license lucide-react v0.562.0 - ISC
308
- *
309
- * This source code is licensed under the ISC license.
310
- * See the LICENSE file in the root directory of this source tree.
311
- */
312
-
313
-
314
- const __iconNode$4 = [
315
- ["path", { d: "M12 17v5", key: "bb1du9" }],
316
- [
317
- "path",
318
- {
319
- d: "M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",
320
- key: "1nkz8b"
321
- }
322
- ]
323
- ];
324
- const Pin = createLucideIcon("pin", __iconNode$4);
325
-
326
- /**
327
- * @license lucide-react v0.562.0 - ISC
328
- *
329
- * This source code is licensed under the ISC license.
330
- * See the LICENSE file in the root directory of this source tree.
331
- */
332
-
333
-
334
- const __iconNode$3 = [
335
- ["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
336
- ["path", { d: "M21 3v5h-5", key: "1q7to0" }],
337
- ["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
338
- ["path", { d: "M8 16H3v5", key: "1cv678" }]
339
- ];
340
- const RefreshCw = createLucideIcon("refresh-cw", __iconNode$3);
341
-
342
- /**
343
- * @license lucide-react v0.562.0 - ISC
344
- *
345
- * This source code is licensed under the ISC license.
346
- * See the LICENSE file in the root directory of this source tree.
347
- */
348
-
349
-
350
- const __iconNode$2 = [
351
- [
352
- "path",
353
- {
354
- d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",
355
- key: "1i5ecw"
356
- }
357
- ],
358
- ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
359
- ];
360
- const Settings = createLucideIcon("settings", __iconNode$2);
361
-
362
- /**
363
- * @license lucide-react v0.562.0 - ISC
364
- *
365
- * This source code is licensed under the ISC license.
366
- * See the LICENSE file in the root directory of this source tree.
367
- */
368
-
369
-
370
- const __iconNode$1 = [
371
- ["path", { d: "M14 17H5", key: "gfn3mx" }],
372
- ["path", { d: "M19 7h-9", key: "6i9tg" }],
373
- ["circle", { cx: "17", cy: "17", r: "3", key: "18b49y" }],
374
- ["circle", { cx: "7", cy: "7", r: "3", key: "dfmy0x" }]
375
- ];
376
- const Settings2 = createLucideIcon("settings-2", __iconNode$1);
377
-
378
- /**
379
- * @license lucide-react v0.562.0 - ISC
380
- *
381
- * This source code is licensed under the ISC license.
382
- * See the LICENSE file in the root directory of this source tree.
383
- */
384
-
385
-
386
- const __iconNode = [
387
- ["path", { d: "M15 3v18", key: "14nvp0" }],
388
- ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
389
- ["path", { d: "M21 9H3", key: "1338ky" }],
390
- ["path", { d: "M21 15H3", key: "9uk58r" }]
391
- ];
392
- const TableProperties = createLucideIcon("table-properties", __iconNode);
393
47
 
394
48
  const DEFAULT_COLUMNS = [
395
49
  { headerWidth: "w-20", cellWidth: "w-28" },
@@ -436,6 +90,35 @@ const CompactTableSkeleton = ({
436
90
  ] }) });
437
91
  };
438
92
 
93
+ const StringCell = ({ value, mono, className }) => {
94
+ const fmt = useFormatters();
95
+ const { primary } = fmt.string(value);
96
+ return /* @__PURE__ */ jsx("span", { className: [mono ? "font-mono" : "", className].filter(Boolean).join(" ") || void 0, children: primary });
97
+ };
98
+ const NumberCell = ({ value, fractionDigits, className }) => {
99
+ const fmt = useFormatters();
100
+ const { primary } = fmt.number(value, { fractionDigits });
101
+ return /* @__PURE__ */ jsx("span", { className: ["font-mono", className].filter(Boolean).join(" "), children: primary });
102
+ };
103
+ const CurrencyCell = ({ value, exchangeRate, className }) => {
104
+ const fmt = useFormatters();
105
+ const { primary, secondary } = fmt.currency(value, { exchangeRate });
106
+ return /* @__PURE__ */ jsxs("span", { className: ["font-mono", className].filter(Boolean).join(" "), children: [
107
+ primary,
108
+ secondary && /* @__PURE__ */ jsx("span", { className: "ml-1 text-xs text-muted-foreground", children: secondary })
109
+ ] });
110
+ };
111
+ const DateCell = ({ value, className }) => {
112
+ const fmt = useFormatters();
113
+ const { primary } = fmt.date(value);
114
+ return /* @__PURE__ */ jsx("span", { className, children: primary });
115
+ };
116
+ const DateTimeCell = ({ value, timeZone, className }) => {
117
+ const fmt = useFormatters();
118
+ const { primary } = fmt.dateTime(value, { timeZone });
119
+ return /* @__PURE__ */ jsx("span", { className, children: primary });
120
+ };
121
+
439
122
  function DataTableColumnHeader({
440
123
  column,
441
124
  title,
@@ -18033,6 +17716,7 @@ const DirectAction = ({ action, disabledAll }) => {
18033
17716
  size: "icon",
18034
17717
  className: `size-7 ${destructiveClass}`,
18035
17718
  disabled: disabledAll || action.disabled,
17719
+ disabledTip: action.lockTip,
18036
17720
  onClick: open,
18037
17721
  "aria-label": action.label,
18038
17722
  children: /* @__PURE__ */ jsx(Icon, { className: "size-4" })
@@ -18049,6 +17733,7 @@ const DirectAction = ({ action, disabledAll }) => {
18049
17733
  size: "icon",
18050
17734
  className: `size-7 ${destructiveClass}`,
18051
17735
  disabled: disabledAll || action.disabled,
17736
+ disabledTip: action.lockTip,
18052
17737
  onClick: action.onClick,
18053
17738
  "aria-label": action.label,
18054
17739
  children: /* @__PURE__ */ jsx(Icon, { className: "size-4" })
@@ -18080,7 +17765,15 @@ function toDropdownItems(actions, disabledAll) {
18080
17765
  });
18081
17766
  }
18082
17767
  const RowActions = ({ actions, disabledAll }) => {
18083
- const visible = actions.filter((a) => !a.hidden);
17768
+ const gate = usePermissionGate();
17769
+ const resolved = actions.map((action) => {
17770
+ if (!action.permission) return action;
17771
+ const result = gate(action.permission);
17772
+ if (!result.granted) return { ...action, hidden: true };
17773
+ if (result.locked) return { ...action, disabled: true, lockTip: lockedTip(result) };
17774
+ return action;
17775
+ });
17776
+ const visible = resolved.filter((a) => !a.hidden);
18084
17777
  if (visible.length === 0) return null;
18085
17778
  if (visible.length === 1) {
18086
17779
  return /* @__PURE__ */ jsx(DirectAction, { action: visible[0], disabledAll });
@@ -22662,34 +22355,5 @@ function useDataTable({
22662
22355
  return { table };
22663
22356
  }
22664
22357
 
22665
- const StringCell = ({ value, mono, className }) => {
22666
- const fmt = useFormatters();
22667
- const { primary } = fmt.string(value);
22668
- return /* @__PURE__ */ jsx("span", { className: [mono ? "font-mono" : "", className].filter(Boolean).join(" ") || void 0, children: primary });
22669
- };
22670
- const NumberCell = ({ value, fractionDigits, className }) => {
22671
- const fmt = useFormatters();
22672
- const { primary } = fmt.number(value, { fractionDigits });
22673
- return /* @__PURE__ */ jsx("span", { className: ["font-mono", className].filter(Boolean).join(" "), children: primary });
22674
- };
22675
- const CurrencyCell = ({ value, exchangeRate, className }) => {
22676
- const fmt = useFormatters();
22677
- const { primary, secondary } = fmt.currency(value, { exchangeRate });
22678
- return /* @__PURE__ */ jsxs("span", { className: ["font-mono", className].filter(Boolean).join(" "), children: [
22679
- primary,
22680
- secondary && /* @__PURE__ */ jsx("span", { className: "ml-1 text-xs text-muted-foreground", children: secondary })
22681
- ] });
22682
- };
22683
- const DateCell = ({ value, className }) => {
22684
- const fmt = useFormatters();
22685
- const { primary } = fmt.date(value);
22686
- return /* @__PURE__ */ jsx("span", { className, children: primary });
22687
- };
22688
- const DateTimeCell = ({ value, timeZone, className }) => {
22689
- const fmt = useFormatters();
22690
- const { primary } = fmt.dateTime(value, { timeZone });
22691
- return /* @__PURE__ */ jsx("span", { className, children: primary });
22692
- };
22693
-
22694
22358
  export { CompactTableSkeleton as C, DataTable as D, NumberCell as N, RowActions as R, StringCell as S, CurrencyCell as a, DataTableColumnHeader as b, DataTableEmpty as c, DataTableFilters as d, DataTablePagination as e, DataTableRowDensity as f, DataTableSearch as g, DataTableSelectionBar as h, DataTableViewOptions as i, DateCell as j, DateTimeCell as k, exportToCSV as l, getSelectionColumn as m, useDataTableStore as n, useDataTable as u };
22695
- //# sourceMappingURL=cells.js.map
22359
+ //# sourceMappingURL=useDataTable.js.map