@middag-io/react 0.12.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/README.md +14 -14
  2. package/dist-lib/ChartPanelBlock-DIb2mv9F.js +18005 -0
  3. package/dist-lib/{ConditionTreeBlock-BkbUNS1M.js → ConditionTreeBlock-C54B_GOo.js} +1 -1
  4. package/dist-lib/DateField-CA-O-Fpw.js +121 -0
  5. package/dist-lib/DateRangeField-vXr5VVQz.js +663 -0
  6. package/dist-lib/DocumentField-I92arMqr.js +221 -0
  7. package/dist-lib/{FlowEditorBlock-CHodeGBw.js → FlowEditorBlock-CaR42_-b.js} +2063 -2653
  8. package/dist-lib/FormBuilderBlock-B_LPQ4oN.js +240 -0
  9. package/dist-lib/FormPanelBlock-BE89P5Vj.js +8827 -0
  10. package/dist-lib/FormPanelBlock-Bn_z6669.js +2 -0
  11. package/dist-lib/{index.min-BoVYs6GD.js → HugeiconsIcon-C_2Bj2NI.js} +147 -1809
  12. package/dist-lib/KanbanBoardBlock-rySahBrC.js +399 -0
  13. package/dist-lib/{MarkdownContent-gyfg0PWC.js → MarkdownContent-DVCptbxx.js} +14 -12
  14. package/dist-lib/PhoneField-BXhvQbTx.js +18585 -0
  15. package/dist-lib/{SentenceBuilderBlock-DWpf9_O-.js → SentenceBuilderBlock-Wf5YMSPg.js} +1 -1
  16. package/dist-lib/app/ContractPage.d.ts +1 -1
  17. package/dist-lib/app/ContractPage.d.ts.map +1 -1
  18. package/dist-lib/app/EntityRoutes.d.ts +1 -1
  19. package/dist-lib/app/EntityRoutes.d.ts.map +1 -1
  20. package/dist-lib/app/HostSlot.d.ts +68 -0
  21. package/dist-lib/app/HostSlot.d.ts.map +1 -0
  22. package/dist-lib/app/LazyBlock.d.ts +1 -1
  23. package/dist-lib/app/LazyBlock.d.ts.map +1 -1
  24. package/dist-lib/app/bootstrap.d.ts.map +1 -1
  25. package/dist-lib/app/providers/auth.d.ts +2 -2
  26. package/dist-lib/app/providers/auth.d.ts.map +1 -1
  27. package/dist-lib/app/providers/error-reporter.d.ts.map +1 -1
  28. package/dist-lib/app/providers/flash.d.ts.map +1 -1
  29. package/dist-lib/app/providers/i18n-defaults.d.ts.map +1 -1
  30. package/dist-lib/app/providers/i18n.d.ts +1 -1
  31. package/dist-lib/app/providers/i18n.d.ts.map +1 -1
  32. package/dist-lib/app/providers/index.d.ts +15 -0
  33. package/dist-lib/app/providers/index.d.ts.map +1 -0
  34. package/dist-lib/app/providers/locales/pt-BR.d.ts.map +1 -1
  35. package/dist-lib/app/providers/progress.d.ts.map +1 -1
  36. package/dist-lib/app/providers/scope.d.ts.map +1 -1
  37. package/dist-lib/app/register-defaults.d.ts +4 -3
  38. package/dist-lib/app/register-defaults.d.ts.map +1 -1
  39. package/dist-lib/app/registries.d.ts.map +1 -1
  40. package/dist-lib/assets/lottie/index.d.ts.map +1 -1
  41. package/dist-lib/badge-CEJlJgBY.js +63 -0
  42. package/dist-lib/base/blocks/ActionGridBlock.d.ts +1 -1
  43. package/dist-lib/base/blocks/ActionGridBlock.d.ts.map +1 -1
  44. package/dist-lib/base/blocks/ActivityTimelineBlock.d.ts.map +1 -1
  45. package/dist-lib/base/blocks/CardGridBlock.d.ts +1 -1
  46. package/dist-lib/base/blocks/CardGridBlock.d.ts.map +1 -1
  47. package/dist-lib/base/blocks/ChartPanelBlock.d.ts +11 -0
  48. package/dist-lib/base/blocks/ChartPanelBlock.d.ts.map +1 -0
  49. package/dist-lib/base/blocks/ConditionTreeBlock.d.ts +1 -1
  50. package/dist-lib/base/blocks/ConditionTreeBlock.d.ts.map +1 -1
  51. package/dist-lib/base/blocks/DenseTableBlock.d.ts +1 -1
  52. package/dist-lib/base/blocks/DenseTableBlock.d.ts.map +1 -1
  53. package/dist-lib/base/blocks/DetailPanelBlock.d.ts +1 -1
  54. package/dist-lib/base/blocks/DetailPanelBlock.d.ts.map +1 -1
  55. package/dist-lib/base/blocks/EmptyStateBlock.d.ts +1 -1
  56. package/dist-lib/base/blocks/EmptyStateBlock.d.ts.map +1 -1
  57. package/dist-lib/base/blocks/FlowEditorBlock.d.ts +1 -1
  58. package/dist-lib/base/blocks/FlowEditorBlock.d.ts.map +1 -1
  59. package/dist-lib/base/blocks/FormBuilderBlock.d.ts +1 -1
  60. package/dist-lib/base/blocks/FormBuilderBlock.d.ts.map +1 -1
  61. package/dist-lib/base/blocks/FormPanelBlock.d.ts +8 -3
  62. package/dist-lib/base/blocks/FormPanelBlock.d.ts.map +1 -1
  63. package/dist-lib/base/blocks/KanbanBoardBlock.d.ts +11 -0
  64. package/dist-lib/base/blocks/KanbanBoardBlock.d.ts.map +1 -0
  65. package/dist-lib/base/blocks/LinkListBlock.d.ts +1 -1
  66. package/dist-lib/base/blocks/LinkListBlock.d.ts.map +1 -1
  67. package/dist-lib/base/blocks/MarkdownPanelBlock.d.ts +1 -1
  68. package/dist-lib/base/blocks/MarkdownPanelBlock.d.ts.map +1 -1
  69. package/dist-lib/base/blocks/MetricCardBlock.d.ts +1 -1
  70. package/dist-lib/base/blocks/MetricCardBlock.d.ts.map +1 -1
  71. package/dist-lib/base/blocks/SentenceBuilderBlock.d.ts.map +1 -1
  72. package/dist-lib/base/blocks/StatusStripBlock.d.ts +1 -1
  73. package/dist-lib/base/blocks/StatusStripBlock.d.ts.map +1 -1
  74. package/dist-lib/base/blocks/TabbedPanelBlock.d.ts +1 -1
  75. package/dist-lib/base/blocks/TabbedPanelBlock.d.ts.map +1 -1
  76. package/dist-lib/base/blocks/WorkflowProgressBlock.d.ts.map +1 -1
  77. package/dist-lib/base/form/FormField.d.ts +6 -20
  78. package/dist-lib/base/form/FormField.d.ts.map +1 -1
  79. package/dist-lib/base/form/fields/CheckboxField.d.ts.map +1 -1
  80. package/dist-lib/base/form/fields/ColorField.d.ts.map +1 -1
  81. package/dist-lib/base/form/fields/CurrencyField.d.ts +2 -2
  82. package/dist-lib/base/form/fields/CurrencyField.d.ts.map +1 -1
  83. package/dist-lib/base/form/fields/DateField.d.ts +21 -0
  84. package/dist-lib/base/form/fields/DateField.d.ts.map +1 -0
  85. package/dist-lib/base/form/fields/DateRangeField.d.ts +21 -0
  86. package/dist-lib/base/form/fields/DateRangeField.d.ts.map +1 -0
  87. package/dist-lib/base/form/fields/DocumentField.d.ts +19 -6
  88. package/dist-lib/base/form/fields/DocumentField.d.ts.map +1 -1
  89. package/dist-lib/base/form/fields/EntityPickerField.d.ts +19 -9
  90. package/dist-lib/base/form/fields/EntityPickerField.d.ts.map +1 -1
  91. package/dist-lib/base/form/fields/FileUploadField.d.ts +22 -0
  92. package/dist-lib/base/form/fields/FileUploadField.d.ts.map +1 -0
  93. package/dist-lib/base/form/fields/MultiSelectField.d.ts +5 -5
  94. package/dist-lib/base/form/fields/MultiSelectField.d.ts.map +1 -1
  95. package/dist-lib/base/form/fields/NumberField.d.ts.map +1 -1
  96. package/dist-lib/base/form/fields/PasswordField.d.ts.map +1 -1
  97. package/dist-lib/base/form/fields/PhoneField.d.ts +8 -4
  98. package/dist-lib/base/form/fields/PhoneField.d.ts.map +1 -1
  99. package/dist-lib/base/form/fields/RadioField.d.ts.map +1 -1
  100. package/dist-lib/base/form/fields/RatingField.d.ts +17 -0
  101. package/dist-lib/base/form/fields/RatingField.d.ts.map +1 -0
  102. package/dist-lib/base/form/fields/SelectField.d.ts.map +1 -1
  103. package/dist-lib/base/form/fields/SlugField.d.ts +2 -2
  104. package/dist-lib/base/form/fields/SlugField.d.ts.map +1 -1
  105. package/dist-lib/base/form/fields/StaticField.d.ts.map +1 -1
  106. package/dist-lib/base/form/fields/SwitchField.d.ts.map +1 -1
  107. package/dist-lib/base/form/fields/TagsField.d.ts.map +1 -1
  108. package/dist-lib/base/form/fields/TextField.d.ts.map +1 -1
  109. package/dist-lib/base/form/fields/TextareaField.d.ts.map +1 -1
  110. package/dist-lib/base/form/fields/document-validation.d.ts +25 -5
  111. package/dist-lib/base/form/fields/document-validation.d.ts.map +1 -1
  112. package/dist-lib/base/form/fields/field-registry.d.ts +38 -0
  113. package/dist-lib/base/form/fields/field-registry.d.ts.map +1 -0
  114. package/dist-lib/base/form/fields/register-default-fields.d.ts +13 -0
  115. package/dist-lib/base/form/fields/register-default-fields.d.ts.map +1 -0
  116. package/dist-lib/base/form/form-schema-builder.d.ts +27 -0
  117. package/dist-lib/base/form/form-schema-builder.d.ts.map +1 -0
  118. package/dist-lib/base/form/form-utils.d.ts +14 -0
  119. package/dist-lib/base/form/form-utils.d.ts.map +1 -0
  120. package/dist-lib/base/hooks/usePolling.d.ts.map +1 -1
  121. package/dist-lib/base/layout/BlockRegion.d.ts +18 -0
  122. package/dist-lib/base/layout/BlockRegion.d.ts.map +1 -0
  123. package/dist-lib/base/layout/DashboardLayout.d.ts +5 -2
  124. package/dist-lib/base/layout/DashboardLayout.d.ts.map +1 -1
  125. package/dist-lib/base/layout/SidebarLayout.d.ts +16 -0
  126. package/dist-lib/base/layout/SidebarLayout.d.ts.map +1 -0
  127. package/dist-lib/base/layout/StackLayout.d.ts +4 -4
  128. package/dist-lib/base/layout/StackLayout.d.ts.map +1 -1
  129. package/dist-lib/base/layout/WizardLayout.d.ts +2 -2
  130. package/dist-lib/base/layout/WizardLayout.d.ts.map +1 -1
  131. package/dist-lib/base/partials/ActionBar/index.d.ts +4 -12
  132. package/dist-lib/base/partials/ActionBar/index.d.ts.map +1 -1
  133. package/dist-lib/base/partials/ConfirmationDialog/index.d.ts.map +1 -1
  134. package/dist-lib/base/partials/DataTable/cell-registry.d.ts +35 -0
  135. package/dist-lib/base/partials/DataTable/cell-registry.d.ts.map +1 -0
  136. package/dist-lib/base/partials/DataTable/cell-renderers.d.ts +14 -10
  137. package/dist-lib/base/partials/DataTable/cell-renderers.d.ts.map +1 -1
  138. package/dist-lib/base/partials/DataTable/index.d.ts.map +1 -1
  139. package/dist-lib/base/partials/DataTable/register-default-cells.d.ts +9 -0
  140. package/dist-lib/base/partials/DataTable/register-default-cells.d.ts.map +1 -0
  141. package/dist-lib/base/partials/DataTable/types.d.ts +4 -4
  142. package/dist-lib/base/partials/DataTable/types.d.ts.map +1 -1
  143. package/dist-lib/base/partials/DetailSection/index.d.ts +1 -1
  144. package/dist-lib/base/partials/DetailSection/index.d.ts.map +1 -1
  145. package/dist-lib/base/partials/EmptyPlaceholder/index.d.ts.map +1 -1
  146. package/dist-lib/base/partials/FilterBar/index.d.ts.map +1 -1
  147. package/dist-lib/base/partials/FormSection/index.d.ts.map +1 -1
  148. package/dist-lib/base/partials/LogViewer/JsonBlock.d.ts +1 -1
  149. package/dist-lib/base/partials/LogViewer/JsonBlock.d.ts.map +1 -1
  150. package/dist-lib/base/partials/LogViewer/LogEntry.d.ts.map +1 -1
  151. package/dist-lib/base/partials/LogViewer/LogViewerToolbar.d.ts.map +1 -1
  152. package/dist-lib/base/partials/LogViewer/index.d.ts.map +1 -1
  153. package/dist-lib/base/partials/LogViewer/types.d.ts.map +1 -1
  154. package/dist-lib/base/partials/MarkdownContent/index.d.ts.map +1 -1
  155. package/dist-lib/base/partials/StatRow/index.d.ts.map +1 -1
  156. package/dist-lib/base/partials/StatusBar/index.d.ts +1 -1
  157. package/dist-lib/base/partials/StatusBar/index.d.ts.map +1 -1
  158. package/dist-lib/base/partials/StatusIndicator/index.d.ts.map +1 -1
  159. package/dist-lib/base/partials/StepIndicator/index.d.ts +3 -1
  160. package/dist-lib/base/partials/StepIndicator/index.d.ts.map +1 -1
  161. package/dist-lib/base/partials/TimelineList/index.d.ts.map +1 -1
  162. package/dist-lib/base/shell/ImmersiveShell.d.ts +14 -0
  163. package/dist-lib/base/shell/ImmersiveShell.d.ts.map +1 -0
  164. package/dist-lib/base/shell/ProductShell.d.ts +17 -5
  165. package/dist-lib/base/shell/ProductShell.d.ts.map +1 -1
  166. package/dist-lib/base/shell/partials/AdminTabBar.d.ts +12 -0
  167. package/dist-lib/base/shell/partials/AdminTabBar.d.ts.map +1 -0
  168. package/dist-lib/base/shell/partials/AppearanceToggle.d.ts.map +1 -1
  169. package/dist-lib/base/shell/partials/BoostSearchBar.d.ts +32 -0
  170. package/dist-lib/base/shell/partials/BoostSearchBar.d.ts.map +1 -0
  171. package/dist-lib/base/shell/partials/CommandPalette.d.ts +1 -1
  172. package/dist-lib/base/shell/partials/CommandPalette.d.ts.map +1 -1
  173. package/dist-lib/base/shell/partials/HelpContext.d.ts +1 -1
  174. package/dist-lib/base/shell/partials/HelpContext.d.ts.map +1 -1
  175. package/dist-lib/base/shell/partials/HelpPanel.d.ts.map +1 -1
  176. package/dist-lib/base/shell/partials/InlineInspector.d.ts +3 -2
  177. package/dist-lib/base/shell/partials/InlineInspector.d.ts.map +1 -1
  178. package/dist-lib/base/shell/partials/InspectorContext.d.ts +14 -3
  179. package/dist-lib/base/shell/partials/InspectorContext.d.ts.map +1 -1
  180. package/dist-lib/base/shell/partials/InspectorPanel.d.ts.map +1 -1
  181. package/dist-lib/base/shell/partials/NavErrorBoundary.d.ts +1 -1
  182. package/dist-lib/base/shell/partials/NavErrorBoundary.d.ts.map +1 -1
  183. package/dist-lib/base/shell/partials/OverlayScreen.d.ts.map +1 -1
  184. package/dist-lib/base/shell/partials/PageActionButton.d.ts +1 -1
  185. package/dist-lib/base/shell/partials/PageActionButton.d.ts.map +1 -1
  186. package/dist-lib/base/shell/partials/PageFilterTabs.d.ts.map +1 -1
  187. package/dist-lib/base/shell/partials/PageHeader.d.ts +1 -1
  188. package/dist-lib/base/shell/partials/PageHeader.d.ts.map +1 -1
  189. package/dist-lib/base/shell/partials/SidebarNav.d.ts +4 -4
  190. package/dist-lib/base/shell/partials/SidebarNav.d.ts.map +1 -1
  191. package/dist-lib/base/theme/appearance.d.ts.map +1 -1
  192. package/dist-lib/base/theme/host-layout-detector.d.ts.map +1 -1
  193. package/dist-lib/base/theme/host-theme-detector.d.ts.map +1 -1
  194. package/dist-lib/base/theme/theme-context.d.ts +61 -0
  195. package/dist-lib/base/theme/theme-context.d.ts.map +1 -0
  196. package/dist-lib/base/theme/useHostTheme.d.ts.map +1 -1
  197. package/dist-lib/base/utils/conditions.d.ts.map +1 -1
  198. package/dist-lib/base/utils/icon-registry.d.ts +27 -0
  199. package/dist-lib/base/utils/icon-registry.d.ts.map +1 -0
  200. package/dist-lib/base/utils/icons.d.ts +1 -1
  201. package/dist-lib/base/utils/icons.d.ts.map +1 -1
  202. package/dist-lib/base/utils/interpolate.d.ts.map +1 -1
  203. package/dist-lib/base/utils/register-default-icons.d.ts +11 -0
  204. package/dist-lib/base/utils/register-default-icons.d.ts.map +1 -0
  205. package/dist-lib/base/utils/storage.d.ts +34 -0
  206. package/dist-lib/base/utils/storage.d.ts.map +1 -0
  207. package/dist-lib/button-DY_CinAY.js +242 -0
  208. package/dist-lib/calendar-Dw-fH9qs.js +4505 -0
  209. package/dist-lib/combobox-DdpNpq0T.js +5303 -0
  210. package/dist-lib/components/reui/alert.d.ts +1 -1
  211. package/dist-lib/components/reui/avatar.d.ts +12 -0
  212. package/dist-lib/components/reui/avatar.d.ts.map +1 -0
  213. package/dist-lib/components/reui/badge.d.ts +1 -1
  214. package/dist-lib/components/reui/button.d.ts +1 -1
  215. package/dist-lib/components/reui/calendar.d.ts +9 -0
  216. package/dist-lib/components/reui/calendar.d.ts.map +1 -0
  217. package/dist-lib/components/reui/chart.d.ts +45 -0
  218. package/dist-lib/components/reui/chart.d.ts.map +1 -0
  219. package/dist-lib/components/reui/combobox.d.ts +25 -0
  220. package/dist-lib/components/reui/combobox.d.ts.map +1 -0
  221. package/dist-lib/components/reui/date-selector.d.ts +129 -0
  222. package/dist-lib/components/reui/date-selector.d.ts.map +1 -0
  223. package/dist-lib/components/reui/frame.d.ts +1 -1
  224. package/dist-lib/components/reui/input-group.d.ts +17 -0
  225. package/dist-lib/components/reui/input-group.d.ts.map +1 -0
  226. package/dist-lib/components/reui/kanban.d.ts +60 -0
  227. package/dist-lib/components/reui/kanban.d.ts.map +1 -0
  228. package/dist-lib/components/reui/phone-input.d.ts +12 -0
  229. package/dist-lib/components/reui/phone-input.d.ts.map +1 -0
  230. package/dist-lib/components/reui/rating.d.ts +32 -0
  231. package/dist-lib/components/reui/rating.d.ts.map +1 -0
  232. package/dist-lib/components/reui/scroll-area.d.ts +6 -0
  233. package/dist-lib/components/reui/scroll-area.d.ts.map +1 -0
  234. package/dist-lib/components/reui/stepper.d.ts +62 -0
  235. package/dist-lib/components/reui/stepper.d.ts.map +1 -0
  236. package/dist-lib/contracts/block-data/actions.d.ts +57 -0
  237. package/dist-lib/contracts/block-data/actions.d.ts.map +1 -0
  238. package/dist-lib/contracts/block-data/data-display.d.ts +235 -0
  239. package/dist-lib/contracts/block-data/data-display.d.ts.map +1 -0
  240. package/dist-lib/contracts/block-data/form.d.ts +234 -0
  241. package/dist-lib/contracts/block-data/form.d.ts.map +1 -0
  242. package/dist-lib/contracts/block-data/index.d.ts +15 -0
  243. package/dist-lib/contracts/block-data/index.d.ts.map +1 -0
  244. package/dist-lib/contracts/block-data/interactive.d.ts +140 -0
  245. package/dist-lib/contracts/block-data/interactive.d.ts.map +1 -0
  246. package/dist-lib/contracts/block-data/shared.d.ts +47 -0
  247. package/dist-lib/contracts/block-data/shared.d.ts.map +1 -0
  248. package/dist-lib/contracts/navigation.d.ts +1 -59
  249. package/dist-lib/contracts/navigation.d.ts.map +1 -1
  250. package/dist-lib/contracts/page-contract-schema.d.ts.map +1 -1
  251. package/dist-lib/contracts/page-contract.d.ts +55 -15
  252. package/dist-lib/contracts/page-contract.d.ts.map +1 -1
  253. package/dist-lib/contracts/shared-props.d.ts +2 -2
  254. package/dist-lib/contracts/shared-props.d.ts.map +1 -1
  255. package/dist-lib/dist-3F0-lo64.js +15 -0
  256. package/dist-lib/dist-BN2kCxhw.js +1196 -0
  257. package/dist-lib/dist-BVqmxsUH.js +123 -0
  258. package/dist-lib/dist-C3iVHwGr.js +235 -0
  259. package/dist-lib/dist-DSWRN9XQ.js +54 -0
  260. package/dist-lib/document-validation-C5Yr5Kkc.js +1249 -0
  261. package/dist-lib/floating-ui.react-dom-kYEBCgAT.js +1089 -0
  262. package/dist-lib/{i18n-BUNFYM_z.js → i18n-CP5eDOjK.js} +113 -0
  263. package/dist-lib/index.d.ts +16 -10
  264. package/dist-lib/index.d.ts.map +1 -1
  265. package/dist-lib/input-DovH16Rh.js +14 -0
  266. package/dist-lib/lib/hooks/use-file-upload.d.ts.map +1 -1
  267. package/dist-lib/lib/utils.d.ts.map +1 -1
  268. package/dist-lib/lottie/index.ts +8 -40
  269. package/dist-lib/middag-react.css +1 -1
  270. package/dist-lib/middag-react.js +7508 -31147
  271. package/dist-lib/popover-DeghPbgu.js +242 -0
  272. package/dist-lib/scroll-area-CDaBiyoP.js +557 -0
  273. package/dist-lib/skeleton-UFUcHob_.js +12 -0
  274. package/dist-lib/{FormBuilderBlock-C6AX-Eg0.js → sortable.esm-0nILrm98.js} +745 -982
  275. package/dist-lib/use-mobile-B2E8cMyY.js +205 -0
  276. package/dist-lib/utils-DS8lnGJS.js +1692 -0
  277. package/dist-lib/value-BmOnuKrw.js +413 -0
  278. package/dist-lib/with-selector-eFb4BYrL.js +185 -0
  279. package/package.json +8 -1
  280. package/dist-lib/base/layout/MasterDetailLayout.d.ts +0 -8
  281. package/dist-lib/base/layout/MasterDetailLayout.d.ts.map +0 -1
  282. package/dist-lib/base/layout/SplitLayout.d.ts +0 -8
  283. package/dist-lib/base/layout/SplitLayout.d.ts.map +0 -1
  284. package/dist-lib/base/shell/AdminShell.d.ts +0 -12
  285. package/dist-lib/base/shell/AdminShell.d.ts.map +0 -1
  286. package/dist-lib/base/shell/HostProductShell.d.ts +0 -29
  287. package/dist-lib/base/shell/HostProductShell.d.ts.map +0 -1
  288. package/dist-lib/components/reui/alert-dialog.d.ts +0 -19
  289. package/dist-lib/components/reui/alert-dialog.d.ts.map +0 -1
  290. package/dist-lib/contracts/block-data.d.ts +0 -438
  291. package/dist-lib/contracts/block-data.d.ts.map +0 -1
  292. package/dist-lib/lib/deprecation.d.ts +0 -10
  293. package/dist-lib/lib/deprecation.d.ts.map +0 -1
  294. /package/dist-lib/{dist-BDvVQ5m8.js → dist-CZG8yxiX.js} +0 -0
@@ -0,0 +1,413 @@
1
+ //#region node_modules/d3-color/src/define.js
2
+ function e(e, t, n) {
3
+ e.prototype = t.prototype = n, n.constructor = e;
4
+ }
5
+ function t(e, t) {
6
+ var n = Object.create(e.prototype);
7
+ for (var r in t) n[r] = t[r];
8
+ return n;
9
+ }
10
+ //#endregion
11
+ //#region node_modules/d3-color/src/color.js
12
+ function n() {}
13
+ var r = .7, i = 1 / r, a = "\\s*([+-]?\\d+)\\s*", o = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", s = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", c = /^#([0-9a-f]{3,8})$/, l = RegExp(`^rgb\\(${a},${a},${a}\\)$`), u = RegExp(`^rgb\\(${s},${s},${s}\\)$`), d = RegExp(`^rgba\\(${a},${a},${a},${o}\\)$`), f = RegExp(`^rgba\\(${s},${s},${s},${o}\\)$`), p = RegExp(`^hsl\\(${o},${s},${s}\\)$`), m = RegExp(`^hsla\\(${o},${s},${s},${o}\\)$`), h = {
14
+ aliceblue: 15792383,
15
+ antiquewhite: 16444375,
16
+ aqua: 65535,
17
+ aquamarine: 8388564,
18
+ azure: 15794175,
19
+ beige: 16119260,
20
+ bisque: 16770244,
21
+ black: 0,
22
+ blanchedalmond: 16772045,
23
+ blue: 255,
24
+ blueviolet: 9055202,
25
+ brown: 10824234,
26
+ burlywood: 14596231,
27
+ cadetblue: 6266528,
28
+ chartreuse: 8388352,
29
+ chocolate: 13789470,
30
+ coral: 16744272,
31
+ cornflowerblue: 6591981,
32
+ cornsilk: 16775388,
33
+ crimson: 14423100,
34
+ cyan: 65535,
35
+ darkblue: 139,
36
+ darkcyan: 35723,
37
+ darkgoldenrod: 12092939,
38
+ darkgray: 11119017,
39
+ darkgreen: 25600,
40
+ darkgrey: 11119017,
41
+ darkkhaki: 12433259,
42
+ darkmagenta: 9109643,
43
+ darkolivegreen: 5597999,
44
+ darkorange: 16747520,
45
+ darkorchid: 10040012,
46
+ darkred: 9109504,
47
+ darksalmon: 15308410,
48
+ darkseagreen: 9419919,
49
+ darkslateblue: 4734347,
50
+ darkslategray: 3100495,
51
+ darkslategrey: 3100495,
52
+ darkturquoise: 52945,
53
+ darkviolet: 9699539,
54
+ deeppink: 16716947,
55
+ deepskyblue: 49151,
56
+ dimgray: 6908265,
57
+ dimgrey: 6908265,
58
+ dodgerblue: 2003199,
59
+ firebrick: 11674146,
60
+ floralwhite: 16775920,
61
+ forestgreen: 2263842,
62
+ fuchsia: 16711935,
63
+ gainsboro: 14474460,
64
+ ghostwhite: 16316671,
65
+ gold: 16766720,
66
+ goldenrod: 14329120,
67
+ gray: 8421504,
68
+ green: 32768,
69
+ greenyellow: 11403055,
70
+ grey: 8421504,
71
+ honeydew: 15794160,
72
+ hotpink: 16738740,
73
+ indianred: 13458524,
74
+ indigo: 4915330,
75
+ ivory: 16777200,
76
+ khaki: 15787660,
77
+ lavender: 15132410,
78
+ lavenderblush: 16773365,
79
+ lawngreen: 8190976,
80
+ lemonchiffon: 16775885,
81
+ lightblue: 11393254,
82
+ lightcoral: 15761536,
83
+ lightcyan: 14745599,
84
+ lightgoldenrodyellow: 16448210,
85
+ lightgray: 13882323,
86
+ lightgreen: 9498256,
87
+ lightgrey: 13882323,
88
+ lightpink: 16758465,
89
+ lightsalmon: 16752762,
90
+ lightseagreen: 2142890,
91
+ lightskyblue: 8900346,
92
+ lightslategray: 7833753,
93
+ lightslategrey: 7833753,
94
+ lightsteelblue: 11584734,
95
+ lightyellow: 16777184,
96
+ lime: 65280,
97
+ limegreen: 3329330,
98
+ linen: 16445670,
99
+ magenta: 16711935,
100
+ maroon: 8388608,
101
+ mediumaquamarine: 6737322,
102
+ mediumblue: 205,
103
+ mediumorchid: 12211667,
104
+ mediumpurple: 9662683,
105
+ mediumseagreen: 3978097,
106
+ mediumslateblue: 8087790,
107
+ mediumspringgreen: 64154,
108
+ mediumturquoise: 4772300,
109
+ mediumvioletred: 13047173,
110
+ midnightblue: 1644912,
111
+ mintcream: 16121850,
112
+ mistyrose: 16770273,
113
+ moccasin: 16770229,
114
+ navajowhite: 16768685,
115
+ navy: 128,
116
+ oldlace: 16643558,
117
+ olive: 8421376,
118
+ olivedrab: 7048739,
119
+ orange: 16753920,
120
+ orangered: 16729344,
121
+ orchid: 14315734,
122
+ palegoldenrod: 15657130,
123
+ palegreen: 10025880,
124
+ paleturquoise: 11529966,
125
+ palevioletred: 14381203,
126
+ papayawhip: 16773077,
127
+ peachpuff: 16767673,
128
+ peru: 13468991,
129
+ pink: 16761035,
130
+ plum: 14524637,
131
+ powderblue: 11591910,
132
+ purple: 8388736,
133
+ rebeccapurple: 6697881,
134
+ red: 16711680,
135
+ rosybrown: 12357519,
136
+ royalblue: 4286945,
137
+ saddlebrown: 9127187,
138
+ salmon: 16416882,
139
+ sandybrown: 16032864,
140
+ seagreen: 3050327,
141
+ seashell: 16774638,
142
+ sienna: 10506797,
143
+ silver: 12632256,
144
+ skyblue: 8900331,
145
+ slateblue: 6970061,
146
+ slategray: 7372944,
147
+ slategrey: 7372944,
148
+ snow: 16775930,
149
+ springgreen: 65407,
150
+ steelblue: 4620980,
151
+ tan: 13808780,
152
+ teal: 32896,
153
+ thistle: 14204888,
154
+ tomato: 16737095,
155
+ turquoise: 4251856,
156
+ violet: 15631086,
157
+ wheat: 16113331,
158
+ white: 16777215,
159
+ whitesmoke: 16119285,
160
+ yellow: 16776960,
161
+ yellowgreen: 10145074
162
+ };
163
+ e(n, b, {
164
+ copy(e) {
165
+ return Object.assign(new this.constructor(), this, e);
166
+ },
167
+ displayable() {
168
+ return this.rgb().displayable();
169
+ },
170
+ hex: g,
171
+ formatHex: g,
172
+ formatHex8: _,
173
+ formatHsl: v,
174
+ formatRgb: y,
175
+ toString: y
176
+ });
177
+ function g() {
178
+ return this.rgb().formatHex();
179
+ }
180
+ function _() {
181
+ return this.rgb().formatHex8();
182
+ }
183
+ function v() {
184
+ return M(this).formatHsl();
185
+ }
186
+ function y() {
187
+ return this.rgb().formatRgb();
188
+ }
189
+ function b(e) {
190
+ var t, n;
191
+ return e = (e + "").trim().toLowerCase(), (t = c.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? x(t) : n === 3 ? new T(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? S(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? S(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = l.exec(e)) ? new T(t[1], t[2], t[3], 1) : (t = u.exec(e)) ? new T(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = d.exec(e)) ? S(t[1], t[2], t[3], t[4]) : (t = f.exec(e)) ? S(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = p.exec(e)) ? j(t[1], t[2] / 100, t[3] / 100, 1) : (t = m.exec(e)) ? j(t[1], t[2] / 100, t[3] / 100, t[4]) : h.hasOwnProperty(e) ? x(h[e]) : e === "transparent" ? new T(NaN, NaN, NaN, 0) : null;
192
+ }
193
+ function x(e) {
194
+ return new T(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
195
+ }
196
+ function S(e, t, n, r) {
197
+ return r <= 0 && (e = t = n = NaN), new T(e, t, n, r);
198
+ }
199
+ function C(e) {
200
+ return e instanceof n || (e = b(e)), e ? (e = e.rgb(), new T(e.r, e.g, e.b, e.opacity)) : new T();
201
+ }
202
+ function w(e, t, n, r) {
203
+ return arguments.length === 1 ? C(e) : new T(e, t, n, r ?? 1);
204
+ }
205
+ function T(e, t, n, r) {
206
+ this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
207
+ }
208
+ e(T, w, t(n, {
209
+ brighter(e) {
210
+ return e = e == null ? i : i ** +e, new T(this.r * e, this.g * e, this.b * e, this.opacity);
211
+ },
212
+ darker(e) {
213
+ return e = e == null ? r : r ** +e, new T(this.r * e, this.g * e, this.b * e, this.opacity);
214
+ },
215
+ rgb() {
216
+ return this;
217
+ },
218
+ clamp() {
219
+ return new T(k(this.r), k(this.g), k(this.b), O(this.opacity));
220
+ },
221
+ displayable() {
222
+ return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
223
+ },
224
+ hex: E,
225
+ formatHex: E,
226
+ formatHex8: ee,
227
+ formatRgb: D,
228
+ toString: D
229
+ }));
230
+ function E() {
231
+ return `#${A(this.r)}${A(this.g)}${A(this.b)}`;
232
+ }
233
+ function ee() {
234
+ return `#${A(this.r)}${A(this.g)}${A(this.b)}${A((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
235
+ }
236
+ function D() {
237
+ let e = O(this.opacity);
238
+ return `${e === 1 ? "rgb(" : "rgba("}${k(this.r)}, ${k(this.g)}, ${k(this.b)}${e === 1 ? ")" : `, ${e})`}`;
239
+ }
240
+ function O(e) {
241
+ return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
242
+ }
243
+ function k(e) {
244
+ return Math.max(0, Math.min(255, Math.round(e) || 0));
245
+ }
246
+ function A(e) {
247
+ return e = k(e), (e < 16 ? "0" : "") + e.toString(16);
248
+ }
249
+ function j(e, t, n, r) {
250
+ return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new P(e, t, n, r);
251
+ }
252
+ function M(e) {
253
+ if (e instanceof P) return new P(e.h, e.s, e.l, e.opacity);
254
+ if (e instanceof n || (e = b(e)), !e) return new P();
255
+ if (e instanceof P) return e;
256
+ e = e.rgb();
257
+ var t = e.r / 255, r = e.g / 255, i = e.b / 255, a = Math.min(t, r, i), o = Math.max(t, r, i), s = NaN, c = o - a, l = (o + a) / 2;
258
+ return c ? (s = t === o ? (r - i) / c + (r < i) * 6 : r === o ? (i - t) / c + 2 : (t - r) / c + 4, c /= l < .5 ? o + a : 2 - o - a, s *= 60) : c = l > 0 && l < 1 ? 0 : s, new P(s, c, l, e.opacity);
259
+ }
260
+ function N(e, t, n, r) {
261
+ return arguments.length === 1 ? M(e) : new P(e, t, n, r ?? 1);
262
+ }
263
+ function P(e, t, n, r) {
264
+ this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
265
+ }
266
+ e(P, N, t(n, {
267
+ brighter(e) {
268
+ return e = e == null ? i : i ** +e, new P(this.h, this.s, this.l * e, this.opacity);
269
+ },
270
+ darker(e) {
271
+ return e = e == null ? r : r ** +e, new P(this.h, this.s, this.l * e, this.opacity);
272
+ },
273
+ rgb() {
274
+ var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
275
+ return new T(L(e >= 240 ? e - 240 : e + 120, i, r), L(e, i, r), L(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
276
+ },
277
+ clamp() {
278
+ return new P(F(this.h), I(this.s), I(this.l), O(this.opacity));
279
+ },
280
+ displayable() {
281
+ return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
282
+ },
283
+ formatHsl() {
284
+ let e = O(this.opacity);
285
+ return `${e === 1 ? "hsl(" : "hsla("}${F(this.h)}, ${I(this.s) * 100}%, ${I(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
286
+ }
287
+ }));
288
+ function F(e) {
289
+ return e = (e || 0) % 360, e < 0 ? e + 360 : e;
290
+ }
291
+ function I(e) {
292
+ return Math.max(0, Math.min(1, e || 0));
293
+ }
294
+ function L(e, t, n) {
295
+ return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
296
+ }
297
+ //#endregion
298
+ //#region node_modules/d3-interpolate/src/constant.js
299
+ var R = (e) => () => e;
300
+ //#endregion
301
+ //#region node_modules/d3-interpolate/src/color.js
302
+ function z(e, t) {
303
+ return function(n) {
304
+ return e + n * t;
305
+ };
306
+ }
307
+ function B(e, t, n) {
308
+ return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
309
+ return (e + r * t) ** +n;
310
+ };
311
+ }
312
+ function V(e) {
313
+ return (e = +e) == 1 ? H : function(t, n) {
314
+ return n - t ? B(t, n, e) : R(isNaN(t) ? n : t);
315
+ };
316
+ }
317
+ function H(e, t) {
318
+ var n = t - e;
319
+ return n ? z(e, n) : R(isNaN(e) ? t : e);
320
+ }
321
+ //#endregion
322
+ //#region node_modules/d3-interpolate/src/rgb.js
323
+ var U = (function e(t) {
324
+ var n = V(t);
325
+ function r(e, t) {
326
+ var r = n((e = w(e)).r, (t = w(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = H(e.opacity, t.opacity);
327
+ return function(t) {
328
+ return e.r = r(t), e.g = i(t), e.b = a(t), e.opacity = o(t), e + "";
329
+ };
330
+ }
331
+ return r.gamma = e, r;
332
+ })(1);
333
+ //#endregion
334
+ //#region node_modules/d3-interpolate/src/numberArray.js
335
+ function W(e, t) {
336
+ t ||= [];
337
+ var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
338
+ return function(a) {
339
+ for (i = 0; i < n; ++i) r[i] = e[i] * (1 - a) + t[i] * a;
340
+ return r;
341
+ };
342
+ }
343
+ function G(e) {
344
+ return ArrayBuffer.isView(e) && !(e instanceof DataView);
345
+ }
346
+ //#endregion
347
+ //#region node_modules/d3-interpolate/src/array.js
348
+ function K(e, t) {
349
+ var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o;
350
+ for (o = 0; o < r; ++o) i[o] = $(e[o], t[o]);
351
+ for (; o < n; ++o) a[o] = t[o];
352
+ return function(e) {
353
+ for (o = 0; o < r; ++o) a[o] = i[o](e);
354
+ return a;
355
+ };
356
+ }
357
+ //#endregion
358
+ //#region node_modules/d3-interpolate/src/date.js
359
+ function q(e, t) {
360
+ var n = /* @__PURE__ */ new Date();
361
+ return e = +e, t = +t, function(r) {
362
+ return n.setTime(e * (1 - r) + t * r), n;
363
+ };
364
+ }
365
+ //#endregion
366
+ //#region node_modules/d3-interpolate/src/number.js
367
+ function J(e, t) {
368
+ return e = +e, t = +t, function(n) {
369
+ return e * (1 - n) + t * n;
370
+ };
371
+ }
372
+ //#endregion
373
+ //#region node_modules/d3-interpolate/src/object.js
374
+ function Y(e, t) {
375
+ var n = {}, r = {}, i;
376
+ for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = $(e[i], t[i]) : r[i] = t[i];
377
+ return function(e) {
378
+ for (i in n) r[i] = n[i](e);
379
+ return r;
380
+ };
381
+ }
382
+ //#endregion
383
+ //#region node_modules/d3-interpolate/src/string.js
384
+ var X = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, Z = new RegExp(X.source, "g");
385
+ function te(e) {
386
+ return function() {
387
+ return e;
388
+ };
389
+ }
390
+ function ne(e) {
391
+ return function(t) {
392
+ return e(t) + "";
393
+ };
394
+ }
395
+ function Q(e, t) {
396
+ var n = X.lastIndex = Z.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
397
+ for (e += "", t += ""; (r = X.exec(e)) && (i = Z.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
398
+ i: o,
399
+ x: J(r, i)
400
+ })), n = Z.lastIndex;
401
+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? ne(c[0].x) : te(t) : (t = c.length, function(e) {
402
+ for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);
403
+ return s.join("");
404
+ });
405
+ }
406
+ //#endregion
407
+ //#region node_modules/d3-interpolate/src/value.js
408
+ function $(e, t) {
409
+ var n = typeof t, r;
410
+ return t == null || n === "boolean" ? R(t) : (n === "number" ? J : n === "string" ? (r = b(t)) ? (t = r, U) : Q : t instanceof b ? U : t instanceof Date ? q : G(t) ? W : Array.isArray(t) ? K : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? Y : J)(e, t);
411
+ }
412
+ //#endregion
413
+ export { b as a, U as i, Q as n, J as r, $ as t };
@@ -0,0 +1,185 @@
1
+ import { r as e, t } from "./chunk-DeC0fbbY.js";
2
+ //#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
3
+ var n = /* @__PURE__ */ t(((t) => {
4
+ var n = e("react");
5
+ function r(e, t) {
6
+ return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
7
+ }
8
+ var i = typeof Object.is == "function" ? Object.is : r, a = n.useState, o = n.useEffect, s = n.useLayoutEffect, c = n.useDebugValue;
9
+ function l(e, t) {
10
+ var n = t(), r = a({ inst: {
11
+ value: n,
12
+ getSnapshot: t
13
+ } }), i = r[0].inst, l = r[1];
14
+ return s(function() {
15
+ i.value = n, i.getSnapshot = t, u(i) && l({ inst: i });
16
+ }, [
17
+ e,
18
+ n,
19
+ t
20
+ ]), o(function() {
21
+ return u(i) && l({ inst: i }), e(function() {
22
+ u(i) && l({ inst: i });
23
+ });
24
+ }, [e]), c(n), n;
25
+ }
26
+ function u(e) {
27
+ var t = e.getSnapshot;
28
+ e = e.value;
29
+ try {
30
+ var n = t();
31
+ return !i(e, n);
32
+ } catch {
33
+ return !0;
34
+ }
35
+ }
36
+ function d(e, t) {
37
+ return t();
38
+ }
39
+ var f = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? d : l;
40
+ t.useSyncExternalStore = n.useSyncExternalStore === void 0 ? f : n.useSyncExternalStore;
41
+ })), r = /* @__PURE__ */ t(((t) => {
42
+ process.env.NODE_ENV !== "production" && (function() {
43
+ function n(e, t) {
44
+ return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
45
+ }
46
+ function r(e, t) {
47
+ f || o.startTransition === void 0 || (f = !0, console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
48
+ var n = t();
49
+ if (!p) {
50
+ var r = t();
51
+ s(n, r) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), p = !0);
52
+ }
53
+ r = c({ inst: {
54
+ value: n,
55
+ getSnapshot: t
56
+ } });
57
+ var a = r[0].inst, m = r[1];
58
+ return u(function() {
59
+ a.value = n, a.getSnapshot = t, i(a) && m({ inst: a });
60
+ }, [
61
+ e,
62
+ n,
63
+ t
64
+ ]), l(function() {
65
+ return i(a) && m({ inst: a }), e(function() {
66
+ i(a) && m({ inst: a });
67
+ });
68
+ }, [e]), d(n), n;
69
+ }
70
+ function i(e) {
71
+ var t = e.getSnapshot;
72
+ e = e.value;
73
+ try {
74
+ var n = t();
75
+ return !s(e, n);
76
+ } catch {
77
+ return !0;
78
+ }
79
+ }
80
+ function a(e, t) {
81
+ return t();
82
+ }
83
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
84
+ var o = e("react"), s = typeof Object.is == "function" ? Object.is : n, c = o.useState, l = o.useEffect, u = o.useLayoutEffect, d = o.useDebugValue, f = !1, p = !1, m = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? a : r;
85
+ t.useSyncExternalStore = o.useSyncExternalStore === void 0 ? m : o.useSyncExternalStore, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
86
+ })();
87
+ })), i = /* @__PURE__ */ t(((e, t) => {
88
+ process.env.NODE_ENV === "production" ? t.exports = n() : t.exports = r();
89
+ })), a = /* @__PURE__ */ t(((t) => {
90
+ var n = e("react"), r = i();
91
+ function a(e, t) {
92
+ return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
93
+ }
94
+ var o = typeof Object.is == "function" ? Object.is : a, s = r.useSyncExternalStore, c = n.useRef, l = n.useEffect, u = n.useMemo, d = n.useDebugValue;
95
+ t.useSyncExternalStoreWithSelector = function(e, t, n, r, i) {
96
+ var a = c(null);
97
+ if (a.current === null) {
98
+ var f = {
99
+ hasValue: !1,
100
+ value: null
101
+ };
102
+ a.current = f;
103
+ } else f = a.current;
104
+ a = u(function() {
105
+ function e(e) {
106
+ if (!a) {
107
+ if (a = !0, s = e, e = r(e), i !== void 0 && f.hasValue) {
108
+ var t = f.value;
109
+ if (i(t, e)) return c = t;
110
+ }
111
+ return c = e;
112
+ }
113
+ if (t = c, o(s, e)) return t;
114
+ var n = r(e);
115
+ return i !== void 0 && i(t, n) ? (s = e, t) : (s = e, c = n);
116
+ }
117
+ var a = !1, s, c, l = n === void 0 ? null : n;
118
+ return [function() {
119
+ return e(t());
120
+ }, l === null ? void 0 : function() {
121
+ return e(l());
122
+ }];
123
+ }, [
124
+ t,
125
+ n,
126
+ r,
127
+ i
128
+ ]);
129
+ var p = s(e, a[0], a[1]);
130
+ return l(function() {
131
+ f.hasValue = !0, f.value = p;
132
+ }, [p]), d(p), p;
133
+ };
134
+ })), o = /* @__PURE__ */ t(((t) => {
135
+ process.env.NODE_ENV !== "production" && (function() {
136
+ function n(e, t) {
137
+ return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
138
+ }
139
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
140
+ var r = e("react"), a = i(), o = typeof Object.is == "function" ? Object.is : n, s = a.useSyncExternalStore, c = r.useRef, l = r.useEffect, u = r.useMemo, d = r.useDebugValue;
141
+ t.useSyncExternalStoreWithSelector = function(e, t, n, r, i) {
142
+ var a = c(null);
143
+ if (a.current === null) {
144
+ var f = {
145
+ hasValue: !1,
146
+ value: null
147
+ };
148
+ a.current = f;
149
+ } else f = a.current;
150
+ a = u(function() {
151
+ function e(e) {
152
+ if (!a) {
153
+ if (a = !0, s = e, e = r(e), i !== void 0 && f.hasValue) {
154
+ var t = f.value;
155
+ if (i(t, e)) return c = t;
156
+ }
157
+ return c = e;
158
+ }
159
+ if (t = c, o(s, e)) return t;
160
+ var n = r(e);
161
+ return i !== void 0 && i(t, n) ? (s = e, t) : (s = e, c = n);
162
+ }
163
+ var a = !1, s, c, l = n === void 0 ? null : n;
164
+ return [function() {
165
+ return e(t());
166
+ }, l === null ? void 0 : function() {
167
+ return e(l());
168
+ }];
169
+ }, [
170
+ t,
171
+ n,
172
+ r,
173
+ i
174
+ ]);
175
+ var p = s(e, a[0], a[1]);
176
+ return l(function() {
177
+ f.hasValue = !0, f.value = p;
178
+ }, [p]), d(p), p;
179
+ }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
180
+ })();
181
+ })), s = /* @__PURE__ */ t(((e, t) => {
182
+ process.env.NODE_ENV === "production" ? t.exports = a() : t.exports = o();
183
+ }));
184
+ //#endregion
185
+ export { i as n, s as t };
package/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "@middag-io/react",
3
- "version": "0.12.0",
3
+ "version": "0.14.0",
4
4
  "type": "module",
5
5
  "description": "MIDDAG shared React UI library for Moodle, WordPress and other Inertia hosts",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/middag-io/middag-react.git"
9
9
  },
10
+ "engines": {
11
+ "node": ">=18.0.0"
12
+ },
10
13
  "bin": {
11
14
  "middag-react": "./bin/middag-react.js"
12
15
  },
@@ -22,6 +25,10 @@
22
25
  "./theme.css": "./src/theme.css",
23
26
  "./reui/*": "./src/components/reui/*",
24
27
  "./blocks/*": "./src/base/blocks/*",
28
+ "./themes/classic.css": "./src/base/theme/themes/classic.css",
29
+ "./themes/enterprise.css": "./src/base/theme/themes/enterprise.css",
30
+ "./themes/soft.css": "./src/base/theme/themes/soft.css",
31
+ "./themes/midnight.css": "./src/base/theme/themes/midnight.css",
25
32
  "./mock": {
26
33
  "types": "./mock/index-lib.d.ts",
27
34
  "import": "./dist-mock/middag-mock.js",
@@ -1,8 +0,0 @@
1
- /**
2
- * MasterDetailLayout — renders the `master-detail` template.
3
- * Regions: header, content, detail.
4
- */
5
- import type { ReactElement } from "react";
6
- import type { LayoutProps } from "../../app/registries";
7
- export declare function MasterDetailLayout({ layout, renderBlock, }: LayoutProps): ReactElement;
8
- //# sourceMappingURL=MasterDetailLayout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MasterDetailLayout.d.ts","sourceRoot":"","sources":["../../../src/base/layout/MasterDetailLayout.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,WAAW,GACZ,EAAE,WAAW,GAAG,YAAY,CAuB5B"}
@@ -1,8 +0,0 @@
1
- /**
2
- * SplitLayout — renders the `split` template from page-contract.
3
- * Regions: header, main, aside.
4
- */
5
- import type { ReactElement } from "react";
6
- import type { LayoutProps } from "../../app/registries";
7
- export declare function SplitLayout({ layout, renderBlock, }: LayoutProps): ReactElement;
8
- //# sourceMappingURL=SplitLayout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SplitLayout.d.ts","sourceRoot":"","sources":["../../../src/base/layout/SplitLayout.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,WAAW,GACZ,EAAE,WAAW,GAAG,YAAY,CAmB5B"}
@@ -1,12 +0,0 @@
1
- /**
2
- * AdminShell — MIDDAG admin shell with dynamic sidebar navigation and optional tab bar.
3
- *
4
- * Mirrors ProductShell architecture (SidebarProvider → SidebarNav → PageHeader → content)
5
- * but adds an optional admin tab bar between header and content when `admin_tabs` prop is present.
6
- *
7
- * @see ADR-807 ref/shell-and-navigation §1-2
8
- */
9
- import { type ReactElement } from "react";
10
- import type { ShellProps } from "../../app/registries";
11
- export declare function AdminShell({ children }: ShellProps): ReactElement;
12
- //# sourceMappingURL=AdminShell.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AdminShell.d.ts","sourceRoot":"","sources":["../../../src/base/shell/AdminShell.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAe,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAcvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AA+FnD,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,EAAE,UAAU,GAAG,YAAY,CASjE"}
@@ -1,29 +0,0 @@
1
- /**
2
- * HostProductShell — production-ready shell for WordPress/Moodle/Custom hosts.
3
- *
4
- * Based on ProductShell but adds:
5
- * - SidebarFooter with collapse button + AppearanceToggle
6
- * - Floating controls when sidebar is hidden (expand + dark mode)
7
- * - Uses `collapsible="offcanvas"` (full hide/show)
8
- * - Uses `useTranslation()` for i18n
9
- * - NO mock-only features (no host switch, no locale switch)
10
- *
11
- * @see ADR-807 ref/shell-and-navigation §1-2
12
- * @see NV-05-ux-shell-sidebar.md §2
13
- */
14
- import { type ReactElement } from "react";
15
- import type { ShellProps } from "../../app/registries";
16
- /**
17
- * HostProductShell wraps content in SidebarProvider with offcanvas collapsible.
18
- *
19
- * Designed for WordPress/Moodle/Custom host environments where the sidebar
20
- * should fully hide/show (not collapse to icons). Includes:
21
- * - SidebarFooter with collapse button + AppearanceToggle
22
- * - Floating expand + dark mode controls when sidebar is hidden
23
- * - Host header height detection for proper positioning
24
- *
25
- * Note: the sidebar primitive uses a cookie for state, not localStorage.
26
- * We override this in SidebarNav for section-level state (different concern).
27
- */
28
- export declare function HostProductShell({ children }: ShellProps): ReactElement;
29
- //# sourceMappingURL=HostProductShell.d.ts.map