@godxjp/ui 5.0.2 → 6.0.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 (242) hide show
  1. package/README.md +101 -142
  2. package/dist/app/index.d.ts +140 -0
  3. package/dist/app/index.js +38 -0
  4. package/dist/app.prop-IobwLwaM.d.ts +90 -0
  5. package/dist/checkbox-NkFkqsQ8.d.ts +13 -0
  6. package/dist/chunk-2XW7J3EI.js +226 -0
  7. package/dist/chunk-3F2AKYRD.js +416 -0
  8. package/dist/chunk-3KPEZ5CF.js +37 -0
  9. package/dist/chunk-3UGU5TYP.js +89 -0
  10. package/dist/chunk-6RA3KSVK.js +588 -0
  11. package/dist/chunk-7NZFVD24.js +122 -0
  12. package/dist/chunk-7PWBC4BY.js +25 -0
  13. package/dist/chunk-7S7MYFXE.js +61 -0
  14. package/dist/chunk-7WRZG2IG.js +71 -0
  15. package/dist/chunk-B775Y6BE.js +1 -0
  16. package/dist/chunk-BHV2FUOA.js +111 -0
  17. package/dist/chunk-BI3HERR7.js +70 -0
  18. package/dist/chunk-BPSKQUL2.js +68 -0
  19. package/dist/chunk-CDWPQ5RP.js +187 -0
  20. package/dist/chunk-CP2LET6N.js +244 -0
  21. package/dist/chunk-CQBADMFG.js +20 -0
  22. package/dist/chunk-CRERCLIZ.js +33 -0
  23. package/dist/chunk-DU6ZYZRP.js +238 -0
  24. package/dist/chunk-DY5C44UP.js +55 -0
  25. package/dist/chunk-E4HJNQ62.js +117 -0
  26. package/dist/chunk-E76QIYSY.js +93 -0
  27. package/dist/chunk-F7PG4OEV.js +37 -0
  28. package/dist/chunk-GDSVW62T.js +171 -0
  29. package/dist/chunk-H2FHJOLU.js +178 -0
  30. package/dist/chunk-HJEBRCXL.js +55 -0
  31. package/dist/chunk-ICM6XBST.js +16 -0
  32. package/dist/chunk-IK7I3ABN.js +88 -0
  33. package/dist/chunk-L6J44O74.js +144 -0
  34. package/dist/chunk-LDSLS6HE.js +1 -0
  35. package/dist/chunk-LVNUHUEZ.js +191 -0
  36. package/dist/chunk-M64MVRLS.js +92 -0
  37. package/dist/chunk-NGQW3KEM.js +402 -0
  38. package/dist/chunk-NZ4FOC5N.js +559 -0
  39. package/dist/chunk-PIIRNAXA.js +26 -0
  40. package/dist/chunk-S66TJXJU.js +33 -0
  41. package/dist/chunk-SMLKNECP.js +133 -0
  42. package/dist/chunk-TAHBM3F2.js +66 -0
  43. package/dist/chunk-TO33OY4L.js +150 -0
  44. package/dist/chunk-TO7URV7U.js +51 -0
  45. package/dist/chunk-TOO5AEKL.js +81 -0
  46. package/dist/chunk-U3GHAOIJ.js +299 -0
  47. package/dist/chunk-U7N2A7A3.js +9 -0
  48. package/dist/chunk-UX634MYF.js +123 -0
  49. package/dist/chunk-V6UWJKZF.js +28 -0
  50. package/dist/chunk-VOHTRR5X.js +28 -0
  51. package/dist/chunk-WRFKVUPW.js +332 -0
  52. package/dist/chunk-WXW43RK5.js +24 -0
  53. package/dist/chunk-XG7XDYIM.js +60 -0
  54. package/dist/chunk-YFCQKO3B.js +842 -0
  55. package/dist/chunk-ZDWXGWLY.js +73 -0
  56. package/dist/chunk-ZLK5SPT6.js +11 -0
  57. package/dist/chunk-ZS6DTAM2.js +31 -0
  58. package/dist/chunk-ZT5UEUBO.js +1 -0
  59. package/dist/components/admin/index.d.ts +80 -0
  60. package/dist/components/admin/index.js +38 -0
  61. package/dist/components/data-display/badge.d.ts +12 -0
  62. package/dist/components/data-display/badge.js +3 -0
  63. package/dist/components/data-display/card.d.ts +87 -0
  64. package/dist/components/data-display/card.js +2 -0
  65. package/dist/components/data-display/index.d.ts +72 -0
  66. package/dist/components/data-display/index.js +89 -0
  67. package/dist/components/data-display/popover.d.ts +13 -0
  68. package/dist/components/data-display/popover.js +2 -0
  69. package/dist/components/data-display/scroll-area.d.ts +7 -0
  70. package/dist/components/data-display/scroll-area.js +2 -0
  71. package/dist/components/data-display/table.d.ts +10 -0
  72. package/dist/components/data-display/table.js +3 -0
  73. package/dist/components/data-entry/autocomplete.d.ts +16 -0
  74. package/dist/components/data-entry/autocomplete.js +8 -0
  75. package/dist/components/data-entry/calendar.d.ts +16 -0
  76. package/dist/components/data-entry/calendar.js +4 -0
  77. package/dist/components/data-entry/cascader.d.ts +32 -0
  78. package/dist/components/data-entry/cascader.js +13 -0
  79. package/dist/components/data-entry/checkbox.d.ts +13 -0
  80. package/dist/components/data-entry/checkbox.js +4 -0
  81. package/dist/components/data-entry/color-picker.d.ts +16 -0
  82. package/dist/components/data-entry/color-picker.js +6 -0
  83. package/dist/components/data-entry/command.d.ts +69 -0
  84. package/dist/components/data-entry/command.js +3 -0
  85. package/dist/components/data-entry/date-picker.d.ts +16 -0
  86. package/dist/components/data-entry/date-picker.js +8 -0
  87. package/dist/components/data-entry/date-range-picker.d.ts +16 -0
  88. package/dist/components/data-entry/date-range-picker.js +8 -0
  89. package/dist/components/data-entry/index.d.ts +53 -0
  90. package/dist/components/data-entry/index.js +152 -0
  91. package/dist/components/data-entry/input.d.ts +6 -0
  92. package/dist/components/data-entry/input.js +2 -0
  93. package/dist/components/data-entry/label.d.ts +8 -0
  94. package/dist/components/data-entry/label.js +2 -0
  95. package/dist/components/data-entry/radio.d.ts +24 -0
  96. package/dist/components/data-entry/radio.js +4 -0
  97. package/dist/components/data-entry/select.d.ts +18 -0
  98. package/dist/components/data-entry/select.js +3 -0
  99. package/dist/components/data-entry/slider.d.ts +16 -0
  100. package/dist/components/data-entry/slider.js +2 -0
  101. package/dist/components/data-entry/switch.d.ts +17 -0
  102. package/dist/components/data-entry/switch.js +2 -0
  103. package/dist/components/data-entry/textarea.d.ts +6 -0
  104. package/dist/components/data-entry/textarea.js +3 -0
  105. package/dist/components/data-entry/time-picker.d.ts +16 -0
  106. package/dist/components/data-entry/time-picker.js +7 -0
  107. package/dist/components/data-entry/transfer.d.ts +17 -0
  108. package/dist/components/data-entry/transfer.js +11 -0
  109. package/dist/components/data-entry/tree-select.d.ts +26 -0
  110. package/dist/components/data-entry/tree-select.js +13 -0
  111. package/dist/components/data-entry/upload.d.ts +42 -0
  112. package/dist/components/data-entry/upload.js +11 -0
  113. package/dist/components/feedback/alert.d.ts +60 -0
  114. package/dist/components/feedback/alert.js +7 -0
  115. package/dist/components/feedback/dialog.d.ts +64 -0
  116. package/dist/components/feedback/dialog.js +7 -0
  117. package/dist/components/feedback/index.d.ts +16 -0
  118. package/dist/components/feedback/index.js +14 -0
  119. package/dist/components/feedback/sheet.d.ts +24 -0
  120. package/dist/components/feedback/sheet.js +2 -0
  121. package/dist/components/feedback/sonner.d.ts +6 -0
  122. package/dist/components/feedback/sonner.js +1 -0
  123. package/dist/components/general/button.d.ts +20 -0
  124. package/dist/components/general/button.js +2 -0
  125. package/dist/components/general/index.d.ts +6 -0
  126. package/dist/components/general/index.js +2 -0
  127. package/dist/components/layout/index.d.ts +71 -0
  128. package/dist/components/layout/index.js +5 -0
  129. package/dist/components/navigation/dropdown-menu.d.ts +28 -0
  130. package/dist/components/navigation/dropdown-menu.js +2 -0
  131. package/dist/components/navigation/index.d.ts +32 -0
  132. package/dist/components/navigation/index.js +12 -0
  133. package/dist/components/navigation/pagination.d.ts +11 -0
  134. package/dist/components/navigation/pagination.js +7 -0
  135. package/dist/components/navigation/steps.d.ts +12 -0
  136. package/dist/components/navigation/steps.js +3 -0
  137. package/dist/components/navigation/tabs-items.d.ts +12 -0
  138. package/dist/components/navigation/tabs-items.js +3 -0
  139. package/dist/components/navigation/tabs.d.ts +12 -0
  140. package/dist/components/navigation/tabs.js +2 -0
  141. package/dist/components/query/index.d.ts +43 -0
  142. package/dist/components/query/index.js +8 -0
  143. package/dist/components/ui/index.d.ts +57 -0
  144. package/dist/components/ui/index.js +37 -0
  145. package/dist/content.prop-D1Dd3TAc.d.ts +31 -0
  146. package/dist/data-display.prop-DNTAzmDy.d.ts +58 -0
  147. package/dist/data-entry.prop-BEGA1lTq.d.ts +323 -0
  148. package/dist/data-table-D1u_rKLK.d.ts +83 -0
  149. package/dist/data.prop-BVvfKC_g.d.ts +41 -0
  150. package/dist/feedback.prop-BmxUlpAW.d.ts +64 -0
  151. package/dist/filter-bar-B7OGFO9S.d.ts +10 -0
  152. package/dist/form/index.d.ts +21 -0
  153. package/dist/form/index.js +4 -0
  154. package/dist/form.prop-BHgpuFFm.d.ts +41 -0
  155. package/dist/format-date-ByyZoqI5.d.ts +51 -0
  156. package/dist/general.prop-D7brMPNL.d.ts +16 -0
  157. package/dist/i18n/index.d.ts +217 -0
  158. package/dist/i18n/index.js +2 -0
  159. package/dist/index.d.ts +46 -26
  160. package/dist/index.js +39 -13062
  161. package/dist/inline-C5u6ptJV.d.ts +10 -0
  162. package/dist/interaction.prop-Cdn7wOtq.d.ts +25 -0
  163. package/dist/layout.prop-4TCNvyQZ.d.ts +20 -0
  164. package/dist/layout.prop-C795F0qg.d.ts +112 -0
  165. package/dist/lib/datetime/index.d.ts +31 -0
  166. package/dist/lib/datetime/index.js +1 -0
  167. package/dist/lib/utils.d.ts +5 -0
  168. package/dist/lib/utils.js +1 -0
  169. package/dist/navigation.prop-DpZqcXey.d.ts +78 -0
  170. package/dist/navigation.prop-DxBiClEH.d.ts +20 -0
  171. package/dist/props/components/index.d.ts +27 -0
  172. package/dist/props/components/index.js +1 -0
  173. package/dist/props/index.d.ts +28 -0
  174. package/dist/props/index.js +3 -0
  175. package/dist/props/registry.d.ts +649 -0
  176. package/dist/props/registry.js +1 -0
  177. package/dist/props/vocabulary/index.d.ts +7 -0
  178. package/dist/props/vocabulary/index.js +1 -0
  179. package/dist/query.prop-hIPrk2zI.d.ts +71 -0
  180. package/dist/search-input-uP01rY1L.d.ts +22 -0
  181. package/dist/shared.prop-BNRJc9K0.d.ts +45 -0
  182. package/dist/styles/alert-layout.css +191 -0
  183. package/dist/styles/badge-layout.css +22 -0
  184. package/dist/styles/card-layout.css +373 -0
  185. package/dist/styles/control.css +504 -0
  186. package/dist/styles/data-display-layout.css +246 -0
  187. package/dist/styles/density.css +43 -0
  188. package/dist/styles/dialog-layout.css +84 -0
  189. package/dist/styles/index.css +105 -0
  190. package/dist/styles/layout.css +479 -0
  191. package/dist/styles/shell-layout.css +604 -0
  192. package/dist/styles/table-layout.css +109 -0
  193. package/dist/theme/example.service.css +37 -0
  194. package/dist/tokens/base.css +13 -0
  195. package/dist/tokens/foundation.css +151 -0
  196. package/dist/tokens/primitives/badge.css +13 -0
  197. package/dist/tokens/primitives/card.css +29 -0
  198. package/dist/tokens/primitives/control.css +55 -0
  199. package/dist/tokens/primitives/feedback.css +17 -0
  200. package/dist/tokens/primitives/layout.css +20 -0
  201. package/dist/tokens/primitives/navigation.css +13 -0
  202. package/dist/tokens/primitives/table.css +10 -0
  203. package/dist/types-mvzYGrma.d.ts +37 -0
  204. package/dist/use-toast-Dol5bdY3.d.ts +34 -0
  205. package/package.json +279 -117
  206. package/scripts/ui-audit.mjs +179 -0
  207. package/BRAND.md +0 -296
  208. package/CHANGELOG.md +0 -668
  209. package/config/eslint.js +0 -54
  210. package/config/prettier.cjs +0 -20
  211. package/config/tsconfig.base.json +0 -22
  212. package/config/vitest.base.ts +0 -26
  213. package/dist/MiniMonth-YAmPGEpC.d.ts +0 -143
  214. package/dist/Table.types-BbsxoIYE.d.ts +0 -352
  215. package/dist/color-DO0qqUAb.d.ts +0 -38
  216. package/dist/components/composites.d.ts +0 -963
  217. package/dist/components/composites.js +0 -7343
  218. package/dist/components/composites.js.map +0 -1
  219. package/dist/components/primitives.d.ts +0 -2744
  220. package/dist/components/primitives.js +0 -7356
  221. package/dist/components/primitives.js.map +0 -1
  222. package/dist/components/shell.d.ts +0 -182
  223. package/dist/components/shell.js +0 -774
  224. package/dist/components/shell.js.map +0 -1
  225. package/dist/hooks.d.ts +0 -100
  226. package/dist/hooks.js +0 -558
  227. package/dist/hooks.js.map +0 -1
  228. package/dist/i18n.d.ts +0 -61
  229. package/dist/i18n.js +0 -860
  230. package/dist/i18n.js.map +0 -1
  231. package/dist/index.js.map +0 -1
  232. package/dist/padding-DY0JV5Ja.d.ts +0 -16
  233. package/dist/preferences.d.ts +0 -132
  234. package/dist/preferences.js +0 -262
  235. package/dist/preferences.js.map +0 -1
  236. package/dist/props.d.ts +0 -86
  237. package/dist/props.js +0 -16
  238. package/dist/props.js.map +0 -1
  239. package/dist/size-CQwNvOWd.d.ts +0 -19
  240. package/dist/types-LTj-2bl-.d.ts +0 -30
  241. package/dist/useTableViews-D5NIAJ7h.d.ts +0 -154
  242. package/src/tokens/tailwind.css +0 -158
@@ -0,0 +1,43 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { D as DataStateProp, M as MutationFeedbackProp, Q as QueryRefetchButtonProp, a as InfiniteQueryStateProp, P as PrefetchLinkProp } from '../../query.prop-hIPrk2zI.js';
3
+ import 'react';
4
+ import '@tanstack/react-query';
5
+ import 'react-router-dom';
6
+ import '../../general.prop-D7brMPNL.js';
7
+ import '../../shared.prop-BNRJc9K0.js';
8
+ import '../../interaction.prop-Cdn7wOtq.js';
9
+
10
+ /**
11
+ * Query lifecycle widget — orchestrates skeleton / error / empty / success for one `useQuery` block.
12
+ * Not a visual component; prefer `@godxjp/ui/query`. Apps may also import via `@godxjp/ui/admin`.
13
+ */
14
+ declare function DataState<T>({ query, skeleton, empty, isEmpty, errorRenderer, showRetry, onRetry, children, }: DataStateProp<T>): react_jsx_runtime.JSX.Element;
15
+
16
+ /**
17
+ * Inline mutation error — renders nothing when idle/success.
18
+ * Prefer toast for transient saves; use this for blocking form sections (SimulatorPage).
19
+ */
20
+ declare function MutationFeedback({ mutation, onRetry, showRetry, pending, className, }: MutationFeedbackProp): react_jsx_runtime.JSX.Element | null;
21
+
22
+ /** Page-header Refresh — spins while `query.isFetching`, calls `query.refetch()`. */
23
+ declare function QueryRefetchButton({ query, label, children, variant, size, className, ...props }: QueryRefetchButtonProp): react_jsx_runtime.JSX.Element;
24
+
25
+ /** Flatten `{ pages: [{ items }] }` — default GODX paginated API shape. */
26
+ declare function flattenItemPages<TItem, TPage extends {
27
+ items: TItem[];
28
+ }>(data: {
29
+ pages: TPage[];
30
+ } | undefined): TItem[];
31
+ /**
32
+ * `useInfiniteQuery` lifecycle widget — flatten pages, load-more footer.
33
+ * Cursor / activity feeds where user accumulates pages (vs DataTable cursor buttons).
34
+ */
35
+ declare function InfiniteQueryState<TPage, TFlat>({ query, skeleton, empty, flatten, isEmpty, errorRenderer, showRetry, onRetry, loadingMore, loadMore, showLoadMore, children, }: InfiniteQueryStateProp<TPage, TFlat>): react_jsx_runtime.JSX.Element;
36
+
37
+ /**
38
+ * React Router `Link` + `queryClient.prefetchQuery` on hover/focus.
39
+ * Detail routes feel instant when list rows are hovered.
40
+ */
41
+ declare function PrefetchLink({ queryKey, queryFn, prefetchOn, staleTime, onMouseEnter, onFocus, ...linkProps }: PrefetchLinkProp): react_jsx_runtime.JSX.Element;
42
+
43
+ export { DataState, DataStateProp, DataStateProp as DataStateProps, InfiniteQueryState, InfiniteQueryStateProp, InfiniteQueryStateProp as InfiniteQueryStateProps, MutationFeedback, MutationFeedbackProp, MutationFeedbackProp as MutationFeedbackProps, PrefetchLink, PrefetchLinkProp, PrefetchLinkProp as PrefetchLinkProps, QueryRefetchButton, QueryRefetchButtonProp, QueryRefetchButtonProp as QueryRefetchButtonProps, flattenItemPages };
@@ -0,0 +1,8 @@
1
+ export { DataState, InfiniteQueryState, MutationFeedback, PrefetchLink, QueryRefetchButton, flattenItemPages } from '../../chunk-LVNUHUEZ.js';
2
+ import '../../chunk-E4HJNQ62.js';
3
+ import '../../chunk-7S7MYFXE.js';
4
+ import '../../chunk-S66TJXJU.js';
5
+ import '../../chunk-HJEBRCXL.js';
6
+ import '../../chunk-3F2AKYRD.js';
7
+ import '../../chunk-YFCQKO3B.js';
8
+ import '../../chunk-U7N2A7A3.js';
@@ -0,0 +1,57 @@
1
+ export { Alert, AlertActions, AlertBase, AlertContent, AlertDescription, AlertQueryError, AlertTitle } from '../feedback/alert.js';
2
+ export { Dialog, DialogAction, DialogCancel, DialogClose, DialogConfirm, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogMode, DialogOverlay, DialogPortal, DialogRoot, DialogTitle, DialogTrigger } from '../feedback/dialog.js';
3
+ export { Autocomplete } from '../data-entry/autocomplete.js';
4
+ export { Badge, BadgeProps } from '../data-display/badge.js';
5
+ export { Button, buttonVariants } from '../general/button.js';
6
+ export { Calendar } from '../data-entry/calendar.js';
7
+ export { Card, CardAction, CardContent, CardContentProps, CardCover, CardCoverProps, CardDescription, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardProps, CardStat, CardStatProps, CardTitle } from '../data-display/card.js';
8
+ export { C as Checkbox } from '../../checkbox-NkFkqsQ8.js';
9
+ export { ColorPicker } from '../data-entry/color-picker.js';
10
+ export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from '../data-entry/command.js';
11
+ export { DatePicker } from '../data-entry/date-picker.js';
12
+ export { DateRangePicker } from '../data-entry/date-range-picker.js';
13
+ export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from '../navigation/dropdown-menu.js';
14
+ export { Input, InputProps } from '../data-entry/input.js';
15
+ export { Label } from '../data-entry/label.js';
16
+ export { Pagination } from '../navigation/pagination.js';
17
+ export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger } from '../data-display/popover.js';
18
+ export { Radio, RadioGroup, RadioGroupRoot, RadioItem } from '../data-entry/radio.js';
19
+ export { ScrollArea, ScrollBar } from '../data-display/scroll-area.js';
20
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from '../data-entry/select.js';
21
+ export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger } from '../feedback/sheet.js';
22
+ export { Slider } from '../data-entry/slider.js';
23
+ export { Toaster } from '../feedback/sonner.js';
24
+ export { Switch } from '../data-entry/switch.js';
25
+ export { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '../data-display/table.js';
26
+ export { Tabs, TabsContent, TabsList, TabsTrigger } from '../navigation/tabs.js';
27
+ export { TabsItems } from '../navigation/tabs-items.js';
28
+ export { Textarea, TextareaProps } from '../data-entry/textarea.js';
29
+ export { TimePicker } from '../data-entry/time-picker.js';
30
+ export { Upload, useUploadDraft } from '../data-entry/upload.js';
31
+ export { A as AlertActionsProp, A as AlertActionsProps, a as AlertContentProp, a as AlertContentProps, b as AlertDescriptionProp, b as AlertDescriptionProps, c as AlertProp, c as AlertProps, d as AlertQueryErrorProp, d as AlertQueryErrorProps, e as AlertTitleProp, e as AlertTitleProps, D as DialogConfirmProp, D as DialogConfirmProps } from '../../feedback.prop-BmxUlpAW.js';
32
+ export { a as AutocompleteProp, a as AutocompleteProps, C as CalendarProp, C as CalendarProps, f as ColorPickerProp, f as ColorPickerProps, D as DatePickerProp, D as DatePickerProps, j as DateRangePickerProp, j as DateRangePickerProps, R as RadioGroupProp, R as RadioGroupProps, m as SliderProp, m as SliderProps, o as SwitchProp, o as SwitchProps, p as TimePickerProp, p as TimePickerProps, U as UploadCommitAction, v as UploadFileItem, w as UploadFileItemProp, x as UploadProp, x as UploadProps, y as UploadVariant, z as UploadVariantProp, B as collectUploadCommitActions, E as createUploadItem } from '../../data-entry.prop-BEGA1lTq.js';
33
+ export { B as ButtonProp, B as ButtonProps } from '../../general.prop-D7brMPNL.js';
34
+ export { P as PaginationProp, P as PaginationProps, d as TabsItemsProp, d as TabsItemsProps } from '../../navigation.prop-DpZqcXey.js';
35
+ import 'react/jsx-runtime';
36
+ import '../../shared.prop-BNRJc9K0.js';
37
+ import 'react';
38
+ import '../../content.prop-D1Dd3TAc.js';
39
+ import '../../interaction.prop-Cdn7wOtq.js';
40
+ import '@radix-ui/react-dialog';
41
+ import '@radix-ui/react-alert-dialog';
42
+ import 'class-variance-authority/types';
43
+ import 'class-variance-authority';
44
+ import '@radix-ui/react-checkbox';
45
+ import '@radix-ui/react-dropdown-menu';
46
+ import '@radix-ui/react-label';
47
+ import '@radix-ui/react-popover';
48
+ import '@radix-ui/react-radio-group';
49
+ import '@radix-ui/react-scroll-area';
50
+ import '@radix-ui/react-select';
51
+ import '@radix-ui/react-slider';
52
+ import 'sonner';
53
+ import '@radix-ui/react-switch';
54
+ import '@radix-ui/react-tabs';
55
+ import 'react-day-picker';
56
+ import '../../data.prop-BVvfKC_g.js';
57
+ import '../../layout.prop-4TCNvyQZ.js';
@@ -0,0 +1,37 @@
1
+ export { Radio, RadioGroupOptions as RadioGroup, RadioGroupRoot, RadioItem } from '../../chunk-3UGU5TYP.js';
2
+ export { Switch } from '../../chunk-WXW43RK5.js';
3
+ export { Textarea } from '../../chunk-ZLK5SPT6.js';
4
+ export { TimePicker } from '../../chunk-CDWPQ5RP.js';
5
+ export { ColorPicker } from '../../chunk-ZDWXGWLY.js';
6
+ export { DatePicker } from '../../chunk-TAHBM3F2.js';
7
+ export { DateRangePicker } from '../../chunk-BI3HERR7.js';
8
+ export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger } from '../../chunk-BHV2FUOA.js';
9
+ export { Autocomplete } from '../../chunk-TOO5AEKL.js';
10
+ export { Calendar } from '../../chunk-IK7I3ABN.js';
11
+ export { Card, CardAction, CardContent, CardCover, CardDescription, CardFooter, CardHeader, CardStat, CardTitle } from '../../chunk-7NZFVD24.js';
12
+ export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from '../../chunk-TO33OY4L.js';
13
+ export { Pagination } from '../../chunk-GDSVW62T.js';
14
+ export { TabsItems } from '../../chunk-BPSKQUL2.js';
15
+ export { Tabs, TabsContent, TabsList, TabsTrigger } from '../../chunk-XG7XDYIM.js';
16
+ export { Upload, collectUploadCommitActions, createUploadItem, useUploadDraft } from '../../chunk-NZ4FOC5N.js';
17
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from '../../chunk-UX634MYF.js';
18
+ export { Slider } from '../../chunk-CRERCLIZ.js';
19
+ export { Toaster } from '../../chunk-TO7URV7U.js';
20
+ export { Checkbox } from '../../chunk-E76QIYSY.js';
21
+ import '../../chunk-CQBADMFG.js';
22
+ export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from '../../chunk-V6UWJKZF.js';
23
+ export { Badge } from '../../chunk-PIIRNAXA.js';
24
+ export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger } from '../../chunk-DY5C44UP.js';
25
+ export { ScrollArea, ScrollBar } from '../../chunk-3KPEZ5CF.js';
26
+ export { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '../../chunk-ZS6DTAM2.js';
27
+ import '../../chunk-ICM6XBST.js';
28
+ export { Alert, AlertActions, AlertBase, AlertContent, AlertDescription, AlertQueryError, AlertTitle } from '../../chunk-E4HJNQ62.js';
29
+ import '../../chunk-7S7MYFXE.js';
30
+ import '../../chunk-S66TJXJU.js';
31
+ export { Dialog, DialogAction, DialogCancel, DialogClose, DialogConfirm, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogRoot, DialogTitle, DialogTrigger } from '../../chunk-DU6ZYZRP.js';
32
+ export { Input } from '../../chunk-VOHTRR5X.js';
33
+ export { Button, buttonVariants } from '../../chunk-HJEBRCXL.js';
34
+ export { Label } from '../../chunk-7PWBC4BY.js';
35
+ import '../../chunk-3F2AKYRD.js';
36
+ import '../../chunk-YFCQKO3B.js';
37
+ import '../../chunk-U7N2A7A3.js';
@@ -0,0 +1,31 @@
1
+ import * as React from 'react';
2
+
3
+ /**
4
+ * Content-slot prop types — titles, descriptions, actions.
5
+ * @see docs/PROPS-VOCABULARY.md#content-slots
6
+ */
7
+
8
+ /** Primary heading text — page title, dialog title, empty state title. */
9
+ type TitleProp = React.ReactNode;
10
+ /** Secondary text below a title — page subtitle, card description. */
11
+ type SubtitleProp = React.ReactNode;
12
+ /** Longer explanatory copy — dialog body, empty state body. */
13
+ type DescriptionProp = React.ReactNode;
14
+ /** Top-right action slot on pages (Ant Design `extra`). */
15
+ type ExtraProp = React.ReactNode;
16
+ /** Bottom action bar on pages — save/cancel, pagination controls. */
17
+ type FooterProp = React.ReactNode;
18
+ /** Primary CTA in empty states or inline prompts. */
19
+ type ActionProp = React.ReactNode;
20
+ /** Optional icon in empty states and status views (Lucide or compatible). */
21
+ type IconProp = React.ComponentType<{
22
+ className?: string;
23
+ }>;
24
+ /** Confirm / submit button label in dialogs. */
25
+ type ConfirmLabelProp = React.ReactNode;
26
+ /** Cancel / dismiss button label in dialogs. */
27
+ type CancelLabelProp = React.ReactNode;
28
+ /** Toolbar actions slot in tables and filter rows. */
29
+ type ActionsProp = React.ReactNode;
30
+
31
+ export type { ActionProp as A, CancelLabelProp as C, DescriptionProp as D, ExtraProp as E, FooterProp as F, IconProp as I, SubtitleProp as S, TitleProp as T, ActionsProp as a, ConfirmLabelProp as b };
@@ -0,0 +1,58 @@
1
+ import * as React from 'react';
2
+ import { a as ClassNameProp, C as ChildrenProp } from './shared.prop-BNRJc9K0.js';
3
+ import { I as IconProp, T as TitleProp, D as DescriptionProp, A as ActionProp } from './content.prop-D1Dd3TAc.js';
4
+ import { T as TableDensityProp } from './layout.prop-4TCNvyQZ.js';
5
+ import { c as SortStateProp, d as StatusToneProp } from './interaction.prop-Cdn7wOtq.js';
6
+ import { C as ColumnDefProp, G as GetRowIdProp, S as SelectedIdsProp, c as OnSelectChangeProp, a as OnRowClickProp, e as OnTableDensityChangeProp, d as OnSortChangeProp } from './data.prop-BVvfKC_g.js';
7
+
8
+ /** Data Display component prop types — @see docs/COMPONENTS.md#data-display */
9
+
10
+ /** @see EmptyState */
11
+ type EmptyStateProp = {
12
+ icon?: IconProp;
13
+ title: TitleProp;
14
+ description?: DescriptionProp;
15
+ action?: ActionProp;
16
+ className?: ClassNameProp;
17
+ };
18
+ /** @see KeyValueGrid */
19
+ type KeyValueGridProp = {
20
+ items: KeyValueGridItemProp[];
21
+ columns?: 1 | 2 | 3;
22
+ className?: ClassNameProp;
23
+ };
24
+ type KeyValueGridItemProp = {
25
+ label: React.ReactNode;
26
+ value: React.ReactNode;
27
+ mono?: boolean;
28
+ };
29
+ /** @see StatusBadge */
30
+ type StatusBadgeProp = {
31
+ status: string;
32
+ tone?: StatusToneProp;
33
+ className?: ClassNameProp;
34
+ };
35
+ /** @see DataTable */
36
+ type DataTableProp<T> = {
37
+ data: T[];
38
+ columns: ColumnDefProp<T>[];
39
+ getRowId?: GetRowIdProp<T>;
40
+ selectable?: boolean;
41
+ selected?: SelectedIdsProp;
42
+ onSelectChange?: OnSelectChangeProp;
43
+ onRowClick?: OnRowClickProp<T>;
44
+ density?: TableDensityProp;
45
+ onDensityChange?: OnTableDensityChangeProp;
46
+ sort?: SortStateProp;
47
+ onSortChange?: OnSortChangeProp;
48
+ loading?: boolean;
49
+ empty?: React.ReactNode;
50
+ className?: ClassNameProp;
51
+ children?: ChildrenProp;
52
+ };
53
+ /** @see Badge */
54
+ type BadgeProp = React.HTMLAttributes<HTMLDivElement> & {
55
+ variant?: "default" | "secondary" | "destructive" | "outline" | "success" | "warning";
56
+ };
57
+
58
+ export type { BadgeProp as B, DataTableProp as D, EmptyStateProp as E, KeyValueGridItemProp as K, StatusBadgeProp as S, KeyValueGridProp as a };
@@ -0,0 +1,323 @@
1
+ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
2
+ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
3
+ import * as SliderPrimitive from '@radix-ui/react-slider';
4
+ import * as SwitchPrimitive from '@radix-ui/react-switch';
5
+ import { DayPickerProps, DateRange } from 'react-day-picker';
6
+ import * as React from 'react';
7
+ import { f as PlaceholderProp, D as DisabledProp, a as ClassNameProp, I as IdProp, L as LabelProp, R as RequiredProp, b as HelperProp, E as ErrorProp, V as ValueProp, O as OnChangeProp } from './shared.prop-BNRJc9K0.js';
8
+ import { b as OnSearchChangeProp } from './data.prop-BVvfKC_g.js';
9
+
10
+ /** Upload item — maps to media-service after `onUpload` resolves `mediaId`. */
11
+ type UploadFileStatus = "idle" | "uploading" | "done" | "error" | "removed";
12
+ type UploadFileItem = {
13
+ /** Stable key for list reconciliation */
14
+ uid: string;
15
+ name: string;
16
+ size: number;
17
+ mimeType?: string;
18
+ /** Blob URL or media-service download URL */
19
+ previewUrl?: string;
20
+ /** Set after issue → PUT → complete */
21
+ mediaId?: string;
22
+ status: UploadFileStatus;
23
+ error?: string;
24
+ /** Local file before / during upload */
25
+ file?: File;
26
+ /**
27
+ * Draft-only: marked for soft-delete on form commit.
28
+ * Undo clears this before save — media-service has no restore API.
29
+ */
30
+ pendingDelete?: boolean;
31
+ /**
32
+ * Draft-only: replacement staged locally; baseline kept for undo.
33
+ */
34
+ pendingReplace?: boolean;
35
+ /** mediaId to soft-delete on commit when `pendingReplace` */
36
+ replacesMediaId?: string;
37
+ };
38
+ type UploadVariant = "dropzone" | "button" | "picture-card" | "picture" | "avatar" | "avatar-crop";
39
+ /** Actions parent runs on form submit (media-service). */
40
+ type UploadCommitAction = {
41
+ /** Soft-delete on save — no restore API */
42
+ deleteMediaIds: string[];
43
+ /** Temp uploads already completed via `onUpload` — promote on save */
44
+ promoteMediaIds: string[];
45
+ };
46
+ declare function createUploadItem(file: File, partial?: Partial<UploadFileItem>): UploadFileItem;
47
+ declare function collectUploadCommitActions(items: UploadFileItem[]): UploadCommitAction;
48
+
49
+ /** Data Entry component prop types — @see docs/COMPONENTS.md#data-entry */
50
+
51
+ /** @see Input */
52
+ type InputProp = React.InputHTMLAttributes<HTMLInputElement>;
53
+ /** @see Textarea */
54
+ type TextareaProp = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
55
+ /** @see FormField */
56
+ type FormFieldProp = {
57
+ id: IdProp;
58
+ label: LabelProp;
59
+ required?: RequiredProp;
60
+ helper?: HelperProp;
61
+ error?: ErrorProp;
62
+ /** Optional control rendered inline after the label (e.g. a help button). */
63
+ labelAddon?: React.ReactNode;
64
+ className?: ClassNameProp;
65
+ children: React.ReactNode;
66
+ };
67
+ /** @see SearchInput */
68
+ type SearchInputProp = {
69
+ id?: IdProp;
70
+ label?: LabelProp;
71
+ placeholder?: PlaceholderProp;
72
+ value?: ValueProp;
73
+ onChange?: OnChangeProp;
74
+ onDebouncedChange?: OnSearchChangeProp;
75
+ debounceMs?: number;
76
+ className?: ClassNameProp;
77
+ };
78
+ /** @see Checkbox — extends Radix checkbox root props. */
79
+ type CheckboxProp = React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>;
80
+ /** Shared option row — Ant Design `CheckboxOptionType`. */
81
+ type ChoiceOptionProp = {
82
+ label: React.ReactNode;
83
+ value: string;
84
+ disabled?: boolean;
85
+ description?: React.ReactNode;
86
+ };
87
+ /** @see Checkbox.Group */
88
+ type CheckboxGroupProp = {
89
+ value?: string[];
90
+ defaultValue?: string[];
91
+ onChange?: (value: string[]) => void;
92
+ options?: ChoiceOptionProp[];
93
+ orientation?: "horizontal" | "vertical";
94
+ disabled?: DisabledProp;
95
+ name?: string;
96
+ className?: ClassNameProp;
97
+ children?: React.ReactNode;
98
+ };
99
+ /** @see Radio.Group */
100
+ type RadioGroupProp = {
101
+ value?: string;
102
+ defaultValue?: string;
103
+ onValueChange?: (value: string) => void;
104
+ options?: ChoiceOptionProp[];
105
+ orientation?: "horizontal" | "vertical";
106
+ disabled?: DisabledProp;
107
+ name?: string;
108
+ className?: ClassNameProp;
109
+ children?: React.ReactNode;
110
+ };
111
+ /** @see Radio.Item — Radix radio group item. */
112
+ type RadioProp = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>;
113
+ /** @see Switch — extends Radix switch root props. */
114
+ type SwitchProp = React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root> & {
115
+ size?: "sm" | "default";
116
+ };
117
+ /** @see SwitchField — labelled switch with hidden input for HTML forms. */
118
+ type SwitchFieldProp = {
119
+ id: IdProp;
120
+ label: LabelProp;
121
+ name: string;
122
+ required?: RequiredProp;
123
+ helper?: HelperProp;
124
+ error?: ErrorProp;
125
+ labelAddon?: React.ReactNode;
126
+ className?: ClassNameProp;
127
+ checked?: boolean;
128
+ defaultChecked?: boolean;
129
+ onCheckedChange?: (checked: boolean) => void;
130
+ disabled?: DisabledProp;
131
+ size?: SwitchProp["size"];
132
+ };
133
+ /** Country row accepted by CountrySelect / CountryOptionLabel.
134
+ * Accepts either a select-option (`value`) or a summary (`code`). */
135
+ type CountryOptionProp = {
136
+ name: string;
137
+ nativeName?: string | null;
138
+ flagSvgPath?: string | null;
139
+ value?: string;
140
+ code?: string;
141
+ label?: string;
142
+ };
143
+ /** @see CountryOptionLabel — flag + name (+ optional code) row. */
144
+ type CountryOptionLabelProp = {
145
+ country: CountryOptionProp;
146
+ showCode?: boolean;
147
+ className?: ClassNameProp;
148
+ };
149
+ /** @see CountrySelect — country picker built on Select. */
150
+ type CountrySelectProp = {
151
+ id: IdProp;
152
+ name: string;
153
+ options: CountryOptionProp[];
154
+ defaultValue?: string | null;
155
+ required?: RequiredProp;
156
+ allowEmpty?: boolean;
157
+ emptyLabel?: string;
158
+ placeholder?: PlaceholderProp;
159
+ invalid?: boolean;
160
+ };
161
+ /** @see Slider — numeric range (Radix Slider). */
162
+ type SliderProp = React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>;
163
+ /** @see Calendar — react-day-picker DayPicker. */
164
+ type CalendarProp = DayPickerProps;
165
+ /** @see DatePicker */
166
+ type DatePickerProp = {
167
+ value?: Date;
168
+ onChange?: (date: Date | undefined) => void;
169
+ placeholder?: PlaceholderProp;
170
+ disabled?: DisabledProp;
171
+ className?: ClassNameProp;
172
+ id?: IdProp;
173
+ locale?: DayPickerProps["locale"];
174
+ fromDate?: Date;
175
+ toDate?: Date;
176
+ };
177
+ /** @see DateRangePicker */
178
+ type DateRangePickerProp = {
179
+ value?: DateRange;
180
+ onChange?: (range: DateRange | undefined) => void;
181
+ placeholder?: PlaceholderProp;
182
+ disabled?: DisabledProp;
183
+ className?: ClassNameProp;
184
+ id?: IdProp;
185
+ locale?: DayPickerProps["locale"];
186
+ fromDate?: Date;
187
+ toDate?: Date;
188
+ };
189
+ /** @see TimePicker — popover HH:mm picker (canonical 24h storage). */
190
+ type TimePickerProp = {
191
+ value?: string;
192
+ defaultValue?: string;
193
+ onChange?: (value: string) => void;
194
+ placeholder?: PlaceholderProp;
195
+ disabled?: DisabledProp;
196
+ className?: ClassNameProp;
197
+ id?: IdProp;
198
+ /** Minute column step — default 5 (logistics cut-offs). */
199
+ minuteStep?: number;
200
+ };
201
+ /** @see ColorPicker */
202
+ type ColorPickerProp = {
203
+ value?: string;
204
+ onChange?: (hex: string) => void;
205
+ disabled?: DisabledProp;
206
+ className?: ClassNameProp;
207
+ id?: IdProp;
208
+ showHexInput?: boolean;
209
+ };
210
+ /** Autocomplete option row. */
211
+ type AutocompleteOptionProp = {
212
+ value: string;
213
+ label: string;
214
+ };
215
+ /** @see Autocomplete — searchable combobox. */
216
+ type AutocompleteProp = {
217
+ options: AutocompleteOptionProp[];
218
+ value?: ValueProp;
219
+ onValueChange?: (value: string) => void;
220
+ placeholder?: PlaceholderProp;
221
+ searchPlaceholder?: PlaceholderProp;
222
+ emptyMessage?: string;
223
+ disabled?: DisabledProp;
224
+ className?: ClassNameProp;
225
+ id?: IdProp;
226
+ };
227
+ /** @see UploadFileItem */
228
+ type UploadFileItemProp = UploadFileItem;
229
+ /** @see Upload */
230
+ type UploadVariantProp = "dropzone" | "button" | "picture-card" | "picture" | "avatar" | "avatar-crop";
231
+ /** @see Upload — presentational; wire `onUpload` to media-service in app api.ts */
232
+ type UploadProp = {
233
+ variant?: UploadVariantProp;
234
+ value?: UploadFileItemProp[];
235
+ defaultValue?: UploadFileItemProp[];
236
+ onChange?: (items: UploadFileItemProp[]) => void;
237
+ accept?: string;
238
+ multiple?: boolean;
239
+ maxCount?: number;
240
+ maxSizeBytes?: number;
241
+ disabled?: DisabledProp;
242
+ removable?: boolean;
243
+ /** App: issue → PUT → complete; return mediaId + optional preview URL */
244
+ onUpload?: (file: File, item: UploadFileItemProp) => Promise<{
245
+ mediaId: string;
246
+ previewUrl?: string;
247
+ }>;
248
+ className?: ClassNameProp;
249
+ children?: React.ReactNode;
250
+ };
251
+ /** Tree node — shared by Cascader options & TreeSelect treeData. */
252
+ type TreeOptionProp = {
253
+ value: string;
254
+ label: React.ReactNode;
255
+ disabled?: boolean;
256
+ disableCheckbox?: boolean;
257
+ isLeaf?: boolean;
258
+ children?: TreeOptionProp[];
259
+ };
260
+ type TreeFieldNamesProp = {
261
+ label?: string;
262
+ value?: string;
263
+ children?: string;
264
+ };
265
+ /** @see Cascader — cascade picker (Popover + multi-column). */
266
+ type CascaderProp = {
267
+ options: TreeOptionProp[];
268
+ value?: string[] | string[][];
269
+ defaultValue?: string[] | string[][];
270
+ onChange?: (value: string[] | string[][], selectedOptions?: TreeOptionProp[] | TreeOptionProp[][]) => void;
271
+ multiple?: boolean;
272
+ changeOnSelect?: boolean;
273
+ showSearch?: boolean;
274
+ placeholder?: PlaceholderProp;
275
+ disabled?: DisabledProp;
276
+ className?: ClassNameProp;
277
+ id?: IdProp;
278
+ expandTrigger?: "click" | "hover";
279
+ fieldNames?: TreeFieldNamesProp;
280
+ allowClear?: boolean;
281
+ };
282
+ type ShowCheckedStrategyProp = "SHOW_CHILD" | "SHOW_PARENT" | "SHOW_ALL";
283
+ /** @see TreeSelect — tree in Popover (cmdk search + expand/collapse). */
284
+ type TreeSelectProp = {
285
+ treeData: TreeOptionProp[];
286
+ value?: string | string[];
287
+ defaultValue?: string | string[];
288
+ onChange?: (value: string | string[] | undefined) => void;
289
+ multiple?: boolean;
290
+ treeCheckable?: boolean;
291
+ treeCheckStrictly?: boolean;
292
+ showSearch?: boolean;
293
+ showCheckedStrategy?: ShowCheckedStrategyProp;
294
+ treeDefaultExpandAll?: boolean;
295
+ placeholder?: PlaceholderProp;
296
+ disabled?: DisabledProp;
297
+ allowClear?: boolean;
298
+ className?: ClassNameProp;
299
+ id?: IdProp;
300
+ fieldNames?: TreeFieldNamesProp;
301
+ };
302
+ /** @see TransferItem */
303
+ type TransferItemProp = {
304
+ key: string;
305
+ title: React.ReactNode;
306
+ description?: React.ReactNode;
307
+ disabled?: boolean;
308
+ };
309
+ /** @see Transfer — dual-list shuttle (Checkbox + SearchInput). */
310
+ type TransferProp = {
311
+ dataSource: TransferItemProp[];
312
+ targetKeys: string[];
313
+ onChange?: (targetKeys: string[], direction: "left" | "right", moveKeys: string[]) => void;
314
+ titles?: [React.ReactNode, React.ReactNode];
315
+ showSearch?: boolean;
316
+ oneWay?: boolean;
317
+ disabled?: DisabledProp;
318
+ className?: ClassNameProp;
319
+ selectedKeys?: [string[], string[]];
320
+ onSelectChange?: (sourceSelectedKeys: string[], targetSelectedKeys: string[]) => void;
321
+ };
322
+
323
+ export { type AutocompleteOptionProp as A, collectUploadCommitActions as B, type CalendarProp as C, type DatePickerProp as D, createUploadItem as E, type FormFieldProp as F, type InputProp as I, type RadioGroupProp as R, type SearchInputProp as S, type TextareaProp as T, type UploadCommitAction as U, type AutocompleteProp as a, type CascaderProp as b, type CheckboxGroupProp as c, type CheckboxProp as d, type ChoiceOptionProp as e, type ColorPickerProp as f, type CountryOptionLabelProp as g, type CountryOptionProp as h, type CountrySelectProp as i, type DateRangePickerProp as j, type RadioProp as k, type ShowCheckedStrategyProp as l, type SliderProp as m, type SwitchFieldProp as n, type SwitchProp as o, type TimePickerProp as p, type TransferItemProp as q, type TransferProp as r, type TreeFieldNamesProp as s, type TreeOptionProp as t, type TreeSelectProp as u, type UploadFileItem as v, type UploadFileItemProp as w, type UploadProp as x, type UploadVariant as y, type UploadVariantProp as z };
@@ -0,0 +1,83 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { E as EmptyStateProp } from './data-display.prop-DNTAzmDy.js';
3
+ import * as React from 'react';
4
+ import { T as TableDensityProp } from './layout.prop-4TCNvyQZ.js';
5
+ import { c as SortStateProp } from './interaction.prop-Cdn7wOtq.js';
6
+ import { C as ColumnDefProp } from './data.prop-BVvfKC_g.js';
7
+
8
+ declare function EmptyState({ icon: Icon, title, description, action, className }: EmptyStateProp): react_jsx_runtime.JSX.Element;
9
+
10
+ interface StatusBadgeProps {
11
+ status: string;
12
+ className?: string;
13
+ label?: React.ReactNode;
14
+ }
15
+ declare function StatusBadge({ status, className, label: labelOverride }: StatusBadgeProps): react_jsx_runtime.JSX.Element;
16
+
17
+ interface KeyValueGridProps {
18
+ columns?: 1 | 2 | 3;
19
+ className?: string;
20
+ children: React.ReactNode;
21
+ }
22
+ declare function KeyValueGrid({ columns, className, children }: KeyValueGridProps): react_jsx_runtime.JSX.Element;
23
+ declare namespace KeyValueGrid {
24
+ var Item: ({ label, mono, span, className, children, }: KeyValueGridItemProps) => react_jsx_runtime.JSX.Element;
25
+ }
26
+ interface KeyValueGridItemProps {
27
+ label: React.ReactNode;
28
+ /** Use mono spacing for IDs, paths, JSON. */
29
+ mono?: boolean;
30
+ /** Span full row(s) when value is long. */
31
+ span?: 2 | 3;
32
+ className?: string;
33
+ children: React.ReactNode;
34
+ }
35
+
36
+ type Density = TableDensityProp;
37
+ type ColumnDef<T> = ColumnDefProp<T>;
38
+ interface DataTableProps<T> {
39
+ data: T[];
40
+ columns: ColumnDef<T>[];
41
+ /** Required when `selectable` is true. Default: assume row.id (typed as any). */
42
+ getRowId?: (row: T) => string;
43
+ selectable?: boolean;
44
+ selected?: Set<string>;
45
+ onSelectChange?: (next: Set<string>) => void;
46
+ onRowClick?: (row: T) => void;
47
+ density?: Density;
48
+ onDensityChange?: (d: Density) => void;
49
+ sort?: SortStateProp;
50
+ onSortChange?: (sort: SortStateProp | undefined) => void;
51
+ className?: string;
52
+ children?: React.ReactNode;
53
+ }
54
+ declare function DataTable<T>({ data, columns, getRowId, selectable, selected: controlledSelected, onSelectChange, onRowClick, density: controlledDensity, onDensityChange, sort, onSortChange, className, children, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
55
+ declare namespace DataTable {
56
+ var Toolbar: ({ children, className, }: {
57
+ children?: React.ReactNode;
58
+ className?: string;
59
+ }) => react_jsx_runtime.JSX.Element;
60
+ var SelectAll: () => react_jsx_runtime.JSX.Element | null;
61
+ var BulkActions: ({ count, children, className, }: BulkActionsProps) => react_jsx_runtime.JSX.Element | null;
62
+ var DensityToggle: () => react_jsx_runtime.JSX.Element;
63
+ var Content: () => react_jsx_runtime.JSX.Element;
64
+ var Pagination: ({ cursor, hasMore, onChange, className, }: PaginationProps) => react_jsx_runtime.JSX.Element;
65
+ var RowActions: ({ ariaLabel, children }: RowActionsProps) => react_jsx_runtime.JSX.Element;
66
+ }
67
+ interface BulkActionsProps {
68
+ count?: number;
69
+ children?: React.ReactNode;
70
+ className?: string;
71
+ }
72
+ interface PaginationProps {
73
+ cursor?: string;
74
+ hasMore: boolean;
75
+ onChange: (cursor: string | undefined) => void;
76
+ className?: string;
77
+ }
78
+ interface RowActionsProps {
79
+ ariaLabel?: string;
80
+ children: React.ReactNode;
81
+ }
82
+
83
+ export { type ColumnDef as C, DataTable as D, EmptyState as E, KeyValueGrid as K, StatusBadge as S, type Density as a };