@dbcdk/react-components 0.0.102 → 0.0.104

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 (355) hide show
  1. package/dist/assets/logo.cjs +87 -0
  2. package/dist/assets/logo.js +85 -0
  3. package/dist/client.cjs +587 -0
  4. package/dist/client.d.ts +83 -0
  5. package/dist/client.js +84 -0
  6. package/dist/components/accordion/Accordion.cjs +103 -0
  7. package/dist/components/accordion/Accordion.js +97 -0
  8. package/dist/components/accordion/Accordion.module.css +41 -0
  9. package/dist/components/accordion/components/AccordionRow.cjs +115 -0
  10. package/dist/components/accordion/components/AccordionRow.js +109 -0
  11. package/dist/components/accordion/components/AccordionRow.module.css +99 -0
  12. package/dist/components/alert/Alert.cjs +52 -0
  13. package/dist/components/alert/Alert.d.ts +2 -1
  14. package/dist/components/alert/Alert.js +46 -0
  15. package/dist/components/alert/Alert.module.css +97 -0
  16. package/dist/components/app-header/AppHeader.cjs +14 -0
  17. package/dist/components/app-header/AppHeader.js +8 -0
  18. package/dist/components/app-header/AppHeader.module.css +74 -0
  19. package/dist/components/attribute-chip/AttributeChip.cjs +22 -0
  20. package/dist/components/attribute-chip/AttributeChip.js +16 -0
  21. package/dist/components/attribute-chip/AttributeChip.module.css +65 -0
  22. package/dist/components/avatar/Avatar.cjs +111 -0
  23. package/dist/components/avatar/Avatar.js +86 -0
  24. package/dist/components/avatar/Avatar.module.css +91 -0
  25. package/dist/components/breadcrumbs/Breadcrumbs.cjs +24 -0
  26. package/dist/components/breadcrumbs/Breadcrumbs.js +18 -0
  27. package/dist/components/breadcrumbs/Breadcrumbs.module.css +80 -0
  28. package/dist/components/button/Button.cjs +149 -0
  29. package/dist/components/button/Button.js +124 -0
  30. package/dist/components/button/Button.module.css +260 -0
  31. package/dist/components/button-select/ButtonSelect.cjs +35 -0
  32. package/dist/components/button-select/ButtonSelect.js +29 -0
  33. package/dist/components/button-select/ButtonSelect.module.css +40 -0
  34. package/dist/components/card/Card.cjs +112 -0
  35. package/dist/components/card/Card.d.ts +2 -1
  36. package/dist/components/card/Card.js +106 -0
  37. package/dist/components/card/Card.module.css +187 -0
  38. package/dist/components/card/components/CardMeta.cjs +62 -0
  39. package/dist/components/card/components/CardMeta.js +55 -0
  40. package/dist/components/card/components/CardMeta.module.css +55 -0
  41. package/dist/components/card-container/CardContainer.cjs +34 -0
  42. package/dist/components/card-container/CardContainer.js +28 -0
  43. package/dist/components/card-container/CardContainer.module.css +63 -0
  44. package/dist/components/chip/Chip.cjs +65 -0
  45. package/dist/components/chip/Chip.js +59 -0
  46. package/dist/components/chip/Chip.module.css +236 -0
  47. package/dist/components/circle/Circle.cjs +33 -0
  48. package/dist/components/circle/Circle.js +27 -0
  49. package/dist/components/circle/Circle.module.css +128 -0
  50. package/dist/components/clear-button/ClearButton.cjs +33 -0
  51. package/dist/components/clear-button/ClearButton.d.ts +2 -1
  52. package/dist/components/clear-button/ClearButton.js +27 -0
  53. package/dist/components/clear-button/ClearButton.module.css +26 -0
  54. package/dist/components/code-block/CodeBlock.cjs +97 -0
  55. package/dist/components/code-block/CodeBlock.js +91 -0
  56. package/dist/components/code-block/CodeBlock.module.css +124 -0
  57. package/dist/components/copy-button/CopyButton.cjs +139 -0
  58. package/dist/components/copy-button/CopyButton.js +133 -0
  59. package/dist/components/copy-button/CopyButton.module.css +22 -0
  60. package/dist/components/datetime-picker/DateTimePicker.cjs +559 -0
  61. package/dist/components/datetime-picker/DateTimePicker.js +553 -0
  62. package/dist/components/datetime-picker/DateTimePicker.module.css +155 -0
  63. package/dist/components/datetime-picker/dateTimeHelpers.cjs +179 -0
  64. package/dist/components/datetime-picker/dateTimeHelpers.js +160 -0
  65. package/dist/components/divider/Divider.cjs +22 -0
  66. package/dist/components/divider/Divider.js +20 -0
  67. package/dist/components/filter-field/FilterField.cjs +296 -0
  68. package/dist/components/filter-field/FilterField.js +289 -0
  69. package/dist/components/filter-field/FilterField.module.css +379 -0
  70. package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.cjs +115 -0
  71. package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.js +108 -0
  72. package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.module.css +59 -0
  73. package/dist/components/forms/checkbox/Checkbox.cjs +88 -0
  74. package/dist/components/forms/checkbox/Checkbox.js +82 -0
  75. package/dist/components/forms/checkbox/Checkbox.module.css +104 -0
  76. package/dist/components/forms/checkbox-group/CheckboxGroup.cjs +121 -0
  77. package/dist/components/forms/checkbox-group/CheckboxGroup.js +115 -0
  78. package/dist/components/forms/checkbox-group/CheckboxGroup.module.css +115 -0
  79. package/dist/components/forms/form-select/FormSelect.cjs +191 -0
  80. package/dist/components/forms/form-select/FormSelect.js +166 -0
  81. package/dist/components/forms/form-select/FormSelect.module.css +236 -0
  82. package/dist/components/forms/input/Input.cjs +188 -0
  83. package/dist/components/forms/input/Input.d.ts +1 -0
  84. package/dist/components/forms/input/Input.js +182 -0
  85. package/dist/components/forms/input/Input.module.css +468 -0
  86. package/dist/components/forms/input-container/InputContainer.cjs +72 -0
  87. package/dist/components/forms/input-container/InputContainer.js +66 -0
  88. package/dist/components/forms/input-container/InputContainer.module.css +59 -0
  89. package/dist/components/forms/multi-select/MultiSelect.cjs +227 -0
  90. package/dist/components/forms/multi-select/MultiSelect.js +225 -0
  91. package/dist/components/forms/radio-buttons/RadioButton.cjs +91 -0
  92. package/dist/components/forms/radio-buttons/RadioButton.js +85 -0
  93. package/dist/components/forms/radio-buttons/RadioButtonGroup.cjs +74 -0
  94. package/dist/components/forms/radio-buttons/RadioButtonGroup.js +72 -0
  95. package/dist/components/forms/radio-buttons/RadioButtons.module.css +118 -0
  96. package/dist/components/forms/select/Select.cjs +286 -0
  97. package/dist/components/forms/select/Select.js +280 -0
  98. package/dist/components/forms/select/Select.module.css +32 -0
  99. package/dist/components/forms/text-area/Textarea.cjs +116 -0
  100. package/dist/components/forms/text-area/Textarea.js +110 -0
  101. package/dist/components/forms/text-area/Textarea.module.css +70 -0
  102. package/dist/components/forms/typeahead/Typeahead.cjs +792 -0
  103. package/dist/components/forms/typeahead/Typeahead.js +768 -0
  104. package/dist/components/forms/typeahead/Typeahead.module.css +38 -0
  105. package/dist/components/grid/Grid.cjs +45 -0
  106. package/dist/components/grid/Grid.js +38 -0
  107. package/dist/components/grid/Grid.module.css +35 -0
  108. package/dist/components/headline/CollapsibleHeadline.cjs +80 -0
  109. package/dist/components/headline/CollapsibleHeadline.js +74 -0
  110. package/dist/components/headline/Headline.cjs +59 -0
  111. package/dist/components/headline/Headline.js +53 -0
  112. package/dist/components/headline/Headline.module.css +185 -0
  113. package/dist/components/hyperlink/Hyperlink.cjs +107 -0
  114. package/dist/components/hyperlink/Hyperlink.d.ts +1 -0
  115. package/dist/components/hyperlink/Hyperlink.js +82 -0
  116. package/dist/components/hyperlink/Hyperlink.module.css +121 -0
  117. package/dist/components/icon/Icon.cjs +27 -0
  118. package/dist/components/icon/Icon.js +20 -0
  119. package/dist/components/icon/Icon.module.css +36 -0
  120. package/dist/components/inline-status/InlineStatus.cjs +39 -0
  121. package/dist/components/inline-status/InlineStatus.js +33 -0
  122. package/dist/components/inline-status/InlineStatus.module.css +92 -0
  123. package/dist/components/interval-select/IntervalSelect.cjs +203 -0
  124. package/dist/components/interval-select/IntervalSelect.js +201 -0
  125. package/dist/components/json-viewer/HighlightedText.cjs +13 -0
  126. package/dist/components/json-viewer/HighlightedText.js +11 -0
  127. package/dist/components/json-viewer/JsonNode.cjs +124 -0
  128. package/dist/components/json-viewer/JsonNode.js +118 -0
  129. package/dist/components/json-viewer/JsonViewer.cjs +164 -0
  130. package/dist/components/json-viewer/JsonViewer.js +158 -0
  131. package/dist/components/json-viewer/JsonViewer.module.css +346 -0
  132. package/dist/components/json-viewer/types.cjs +2 -0
  133. package/dist/components/json-viewer/types.js +1 -0
  134. package/dist/components/json-viewer/useClipboardStatus.cjs +15 -0
  135. package/dist/components/json-viewer/useClipboardStatus.js +13 -0
  136. package/dist/components/json-viewer/utils.cjs +126 -0
  137. package/dist/components/json-viewer/utils.js +111 -0
  138. package/dist/components/media-card/MediaCard.cjs +60 -0
  139. package/dist/components/media-card/MediaCard.d.ts +19 -0
  140. package/dist/components/media-card/MediaCard.js +54 -0
  141. package/dist/components/media-card/MediaCard.module.css +92 -0
  142. package/dist/components/menu/Menu.cjs +287 -0
  143. package/dist/components/menu/Menu.js +262 -0
  144. package/dist/components/menu/Menu.module.css +220 -0
  145. package/dist/components/meta-bar/MetaBar.cjs +28 -0
  146. package/dist/components/meta-bar/MetaBar.js +22 -0
  147. package/dist/components/meta-bar/MetaBar.module.css +27 -0
  148. package/dist/components/nav-bar/NavBar.cjs +95 -0
  149. package/dist/components/nav-bar/NavBar.d.ts +1 -1
  150. package/dist/components/nav-bar/NavBar.js +89 -0
  151. package/dist/components/nav-bar/NavBar.module.css +225 -0
  152. package/dist/components/overlay/fade-overlay/FadeOverlay.cjs +30 -0
  153. package/dist/components/overlay/fade-overlay/FadeOverlay.js +24 -0
  154. package/dist/components/overlay/fade-overlay/FadeOverlay.module.css +54 -0
  155. package/dist/components/overlay/modal/Modal.cjs +189 -0
  156. package/dist/components/overlay/modal/Modal.d.ts +2 -1
  157. package/dist/components/overlay/modal/Modal.js +183 -0
  158. package/dist/components/overlay/modal/Modal.module.css +112 -0
  159. package/dist/components/overlay/modal/provider/ModalProvider.cjs +98 -0
  160. package/dist/components/overlay/modal/provider/ModalProvider.js +95 -0
  161. package/dist/components/overlay/side-panel/SidePanel.cjs +173 -0
  162. package/dist/components/overlay/side-panel/SidePanel.js +167 -0
  163. package/dist/components/overlay/side-panel/SidePanel.module.css +177 -0
  164. package/dist/components/overlay/side-panel/useSidePanel.cjs +16 -0
  165. package/dist/components/overlay/side-panel/useSidePanel.js +14 -0
  166. package/dist/components/overlay/tooltip/Tooltip.cjs +34 -0
  167. package/dist/components/overlay/tooltip/Tooltip.js +32 -0
  168. package/dist/components/overlay/tooltip/Tooltip.module.css +104 -0
  169. package/dist/components/overlay/tooltip/TooltipProvider.cjs +238 -0
  170. package/dist/components/overlay/tooltip/TooltipProvider.js +231 -0
  171. package/dist/components/overlay/tooltip/useTooltipTrigger.cjs +117 -0
  172. package/dist/components/overlay/tooltip/useTooltipTrigger.js +115 -0
  173. package/dist/components/page/Page.cjs +63 -0
  174. package/dist/components/page/Page.js +57 -0
  175. package/dist/components/page/Page.module.css +95 -0
  176. package/dist/components/page-layout/PageLayout.cjs +97 -0
  177. package/dist/components/page-layout/PageLayout.d.ts +0 -5
  178. package/dist/components/page-layout/PageLayout.js +91 -0
  179. package/dist/components/page-layout/PageLayout.module.css +236 -0
  180. package/dist/components/page-layout/components/footer/Footer.cjs +53 -0
  181. package/dist/components/page-layout/components/footer/Footer.js +47 -0
  182. package/dist/components/page-layout/components/footer/Footer.module.css +89 -0
  183. package/dist/components/pagination/Pagination.cjs +160 -0
  184. package/dist/components/pagination/Pagination.js +154 -0
  185. package/dist/components/pagination/Pagination.module.css +25 -0
  186. package/dist/components/panel/Panel.cjs +38 -0
  187. package/dist/components/panel/Panel.js +32 -0
  188. package/dist/components/panel/Panel.module.css +30 -0
  189. package/dist/components/popover/Popover.cjs +331 -0
  190. package/dist/components/popover/Popover.js +307 -0
  191. package/dist/components/popover/Popover.module.css +52 -0
  192. package/dist/components/search-box/SearchBox.cjs +274 -0
  193. package/dist/components/search-box/SearchBox.js +268 -0
  194. package/dist/components/search-box/SearchBox.module.css +27 -0
  195. package/dist/components/segmented-progress-bar/SegmentedProgressBar.cjs +127 -0
  196. package/dist/components/segmented-progress-bar/SegmentedProgressBar.js +121 -0
  197. package/dist/components/segmented-progress-bar/SegmentedProgressBar.module.css +174 -0
  198. package/dist/components/sidebar/Sidebar.cjs +39 -0
  199. package/dist/components/sidebar/Sidebar.js +37 -0
  200. package/dist/components/sidebar/components/SidebarItem.cjs +29 -0
  201. package/dist/components/sidebar/components/SidebarItem.js +27 -0
  202. package/dist/components/sidebar/components/SidebarItem.module.css +0 -0
  203. package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.cjs +133 -0
  204. package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.js +127 -0
  205. package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.module.css +29 -0
  206. package/dist/components/sidebar/components/sidebar-container/SidebarContainer.cjs +214 -0
  207. package/dist/components/sidebar/components/sidebar-container/SidebarContainer.js +207 -0
  208. package/dist/components/sidebar/components/sidebar-container/SidebarContainer.module.css +260 -0
  209. package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.cjs +54 -0
  210. package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.js +47 -0
  211. package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.module.css +106 -0
  212. package/dist/components/sidebar/components/sidebar-items/SidebarItems.cjs +61 -0
  213. package/dist/components/sidebar/components/sidebar-items/SidebarItems.js +55 -0
  214. package/dist/components/sidebar/components/sidebar-items/SidebarItems.module.css +20 -0
  215. package/dist/components/sidebar/components/sidenav-filteirng/SidenavFiltering.cjs +97 -0
  216. package/dist/components/sidebar/components/sidenav-filteirng/SidenavFiltering.js +91 -0
  217. package/dist/components/sidebar/providers/SidebarProvider.cjs +223 -0
  218. package/dist/components/sidebar/providers/SidebarProvider.js +220 -0
  219. package/dist/components/skeleton-loader/SkeletonLoader.cjs +442 -0
  220. package/dist/components/skeleton-loader/SkeletonLoader.js +440 -0
  221. package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.cjs +42 -0
  222. package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.js +36 -0
  223. package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.module.css +51 -0
  224. package/dist/components/split-button/SplitButton.cjs +46 -0
  225. package/dist/components/split-button/SplitButton.js +40 -0
  226. package/dist/components/split-button/SplitButton.module.css +32 -0
  227. package/dist/components/split-pane/SplitPane.cjs +177 -0
  228. package/dist/components/split-pane/SplitPane.js +168 -0
  229. package/dist/components/split-pane/SplitPane.module.css +111 -0
  230. package/dist/components/split-pane/provider/SplitPaneContext.cjs +129 -0
  231. package/dist/components/split-pane/provider/SplitPaneContext.js +121 -0
  232. package/dist/components/stack/Stack.cjs +47 -0
  233. package/dist/components/stack/Stack.d.ts +1 -1
  234. package/dist/components/stack/Stack.js +41 -0
  235. package/dist/components/stack/Stack.module.css +61 -0
  236. package/dist/components/state-page/StatePage.cjs +48 -0
  237. package/dist/components/state-page/StatePage.js +42 -0
  238. package/dist/components/state-page/StatePage.module.css +9 -0
  239. package/dist/components/state-page/empty.cjs +664 -0
  240. package/dist/components/state-page/empty.js +662 -0
  241. package/dist/components/state-page/error.cjs +310 -0
  242. package/dist/components/state-page/error.js +308 -0
  243. package/dist/components/state-page/notFound.cjs +243 -0
  244. package/dist/components/state-page/notFound.js +241 -0
  245. package/dist/components/sticky-footer-layout/StickyFooterLayout.cjs +98 -0
  246. package/dist/components/sticky-footer-layout/StickyFooterLayout.js +96 -0
  247. package/dist/components/table/Table.cjs +216 -0
  248. package/dist/components/table/Table.js +210 -0
  249. package/dist/components/table/Table.module.css +534 -0
  250. package/dist/components/table/Table.types.cjs +2 -0
  251. package/dist/components/table/Table.types.js +1 -0
  252. package/dist/components/table/TanstackTable.cjs +172 -0
  253. package/dist/components/table/TanstackTable.js +147 -0
  254. package/dist/components/table/components/TableBody.cjs +50 -0
  255. package/dist/components/table/components/TableBody.js +44 -0
  256. package/dist/components/table/components/TableHeader.cjs +56 -0
  257. package/dist/components/table/components/TableHeader.js +50 -0
  258. package/dist/components/table/components/TableHeaderCell.cjs +69 -0
  259. package/dist/components/table/components/TableHeaderCell.js +63 -0
  260. package/dist/components/table/components/TableLoadingBody.cjs +35 -0
  261. package/dist/components/table/components/TableLoadingBody.js +29 -0
  262. package/dist/components/table/components/TablePagination.cjs +2 -0
  263. package/dist/components/table/components/TablePagination.js +1 -0
  264. package/dist/components/table/components/TableRow.cjs +151 -0
  265. package/dist/components/table/components/TableRow.js +145 -0
  266. package/dist/components/table/components/TableSelectionCell.cjs +41 -0
  267. package/dist/components/table/components/TableSelectionCell.js +35 -0
  268. package/dist/components/table/components/column-resizer/ColumnResizer.cjs +25 -0
  269. package/dist/components/table/components/column-resizer/ColumnResizer.js +19 -0
  270. package/dist/components/table/components/column-resizer/ColumnResizer.module.css +22 -0
  271. package/dist/components/table/components/empty-state/EmptyState.cjs +33 -0
  272. package/dist/components/table/components/empty-state/EmptyState.js +31 -0
  273. package/dist/components/table/components/empty-state/EmptyState.module.css +4 -0
  274. package/dist/components/table/components/table-settings/TableSettings.cjs +139 -0
  275. package/dist/components/table/components/table-settings/TableSettings.js +137 -0
  276. package/dist/components/table/hooks/useTableRowInteractions.cjs +46 -0
  277. package/dist/components/table/hooks/useTableRowInteractions.js +44 -0
  278. package/dist/components/table/table.classes.cjs +49 -0
  279. package/dist/components/table/table.classes.js +40 -0
  280. package/dist/components/table/table.utils.cjs +57 -0
  281. package/dist/components/table/table.utils.js +45 -0
  282. package/dist/components/table/tanstackTable.utils.cjs +166 -0
  283. package/dist/components/table/tanstackTable.utils.js +159 -0
  284. package/dist/components/tabs/Tabs.cjs +172 -0
  285. package/dist/components/tabs/Tabs.js +166 -0
  286. package/dist/components/tabs/Tabs.module.css +261 -0
  287. package/dist/components/theme-button/ThemeButton.cjs +78 -0
  288. package/dist/components/theme-button/ThemeButton.js +75 -0
  289. package/dist/components/toast/Toast.cjs +68 -0
  290. package/dist/components/toast/Toast.js +62 -0
  291. package/dist/components/toast/Toast.module.css +161 -0
  292. package/dist/components/toast/provider/ToastProvider.cjs +105 -0
  293. package/dist/components/toast/provider/ToastProvider.js +97 -0
  294. package/dist/components/user-display/UserDisplay.cjs +22 -0
  295. package/dist/components/user-display/UserDisplay.js +16 -0
  296. package/dist/components/user-display/UserDisplay.module.css +25 -0
  297. package/dist/constants/chart-colors.cjs +10 -0
  298. package/dist/constants/chart-colors.js +8 -0
  299. package/dist/constants/chart-colors.types.cjs +2 -0
  300. package/dist/constants/chart-colors.types.js +1 -0
  301. package/dist/constants/severity.cjs +30 -0
  302. package/dist/constants/severity.js +26 -0
  303. package/dist/constants/severity.types.cjs +2 -0
  304. package/dist/constants/severity.types.js +1 -0
  305. package/dist/constants/sizes.cjs +11 -0
  306. package/dist/constants/sizes.js +9 -0
  307. package/dist/hooks/useDeviceSize.cjs +35 -0
  308. package/dist/hooks/useDeviceSize.js +33 -0
  309. package/dist/hooks/useListNavigation.cjs +237 -0
  310. package/dist/hooks/useListNavigation.js +235 -0
  311. package/dist/hooks/usePagination.cjs +144 -0
  312. package/dist/hooks/usePagination.js +142 -0
  313. package/dist/hooks/useSorting.cjs +119 -0
  314. package/dist/hooks/useSorting.js +117 -0
  315. package/dist/hooks/useTableData.cjs +53 -0
  316. package/dist/hooks/useTableData.js +51 -0
  317. package/dist/hooks/useTableSelection.cjs +172 -0
  318. package/dist/hooks/useTableSelection.js +170 -0
  319. package/dist/hooks/useTableSettings.cjs +90 -0
  320. package/dist/hooks/useTableSettings.js +87 -0
  321. package/dist/hooks/useTheme.cjs +64 -0
  322. package/dist/hooks/useTheme.js +62 -0
  323. package/dist/hooks/useTimeDuration.cjs +72 -0
  324. package/dist/hooks/useTimeDuration.js +70 -0
  325. package/dist/hooks/useViewportFill.cjs +82 -0
  326. package/dist/hooks/useViewportFill.js +80 -0
  327. package/dist/index.cjs +161 -12901
  328. package/dist/index.css +67 -7228
  329. package/dist/index.d.ts +0 -58
  330. package/dist/index.js +24 -12802
  331. package/dist/styles/animation.cjs +9 -0
  332. package/dist/styles/animation.js +7 -0
  333. package/dist/styles/themes/dbc/colors.css +5 -0
  334. package/dist/styles/themes/types.cjs +2 -0
  335. package/dist/styles/themes/types.js +1 -0
  336. package/dist/tanstack.cjs +18 -2652
  337. package/dist/tanstack.js +3 -2636
  338. package/dist/types/a11y-props.types.cjs +2 -0
  339. package/dist/types/a11y-props.types.js +1 -0
  340. package/dist/types/assets.d.cjs +2 -0
  341. package/dist/types/assets.d.js +1 -0
  342. package/dist/types/css.d.cjs +2 -0
  343. package/dist/types/css.d.js +1 -0
  344. package/dist/types/sizes.types.cjs +2 -0
  345. package/dist/types/sizes.types.js +1 -0
  346. package/dist/utils/arrays/nested-filtering.cjs +40 -0
  347. package/dist/utils/arrays/nested-filtering.js +38 -0
  348. package/dist/utils/date/formatDate.cjs +35 -0
  349. package/dist/utils/date/formatDate.js +33 -0
  350. package/dist/utils/localStorage.utils.cjs +53 -0
  351. package/dist/utils/localStorage.utils.js +49 -0
  352. package/dist/utils/text/get-highlighted-segments.cjs +49 -0
  353. package/dist/utils/text/get-highlighted-segments.js +47 -0
  354. package/package.json +8 -3
  355. package/dist/tanstack.css +0 -1271
@@ -0,0 +1,468 @@
1
+ /* Root control group */
2
+ .container {
3
+ display: inline-flex;
4
+ align-items: stretch;
5
+ flex-grow: 1;
6
+ gap: 0;
7
+ inline-size: var(--input-width, auto);
8
+ min-inline-size: var(--input-min-width, 0);
9
+ max-inline-size: var(--input-max-width, none);
10
+ }
11
+
12
+ /* When you want it to take available space */
13
+ .fullWidth {
14
+ display: flex;
15
+ inline-size: 100%;
16
+ min-inline-size: 0;
17
+ }
18
+
19
+ /* The "field" (input + icons + clear) */
20
+ .field {
21
+ position: relative;
22
+ display: flex;
23
+ align-items: center;
24
+ flex: 1 1 auto;
25
+ height: 100%;
26
+ min-inline-size: 0;
27
+ color: var(--color-fg-default);
28
+ background: var(--color-bg-surface);
29
+ border: var(--border-width-thin) solid var(--color-border-default);
30
+ border-radius: var(--border-radius-default);
31
+ box-sizing: border-box;
32
+ transition:
33
+ background-color var(--transition-fast) var(--ease-standard),
34
+ border-color var(--transition-fast) var(--ease-standard),
35
+ box-shadow var(--transition-fast) var(--ease-standard),
36
+ color var(--transition-fast) var(--ease-standard);
37
+ }
38
+
39
+ /* Actual input */
40
+ .input {
41
+ flex: 1 1 auto;
42
+ min-inline-size: 0;
43
+ inline-size: 100%;
44
+ box-sizing: border-box;
45
+ text-overflow: ellipsis;
46
+ color: var(--color-fg-default);
47
+ background: transparent;
48
+ font-family: var(--font-family);
49
+ font-size: var(--font-size-sm);
50
+ line-height: var(--line-height-normal);
51
+ border: none;
52
+ outline: none;
53
+ padding-inline: var(--spacing-sm);
54
+ padding-block: var(--spacing-xs);
55
+ margin: 0;
56
+ }
57
+
58
+ .input::placeholder {
59
+ color: var(--color-fg-subtle) !important;
60
+ }
61
+
62
+ .input:disabled {
63
+ background-color: transparent;
64
+ color: var(--color-disabled-fg);
65
+ cursor: not-allowed;
66
+ opacity: 1;
67
+ box-shadow: none;
68
+ }
69
+
70
+ /* Button group styling */
71
+ .withButton .field {
72
+ border-top-right-radius: 0;
73
+ border-bottom-right-radius: 0;
74
+ }
75
+
76
+ /*
77
+ When onClear exists, do not keep extra inline-end padding on the input itself.
78
+ The clear affordance already reserves the needed space via:
79
+ - the inline clearSlot inside endAdornment, or
80
+ - the absolute clear button path.
81
+ */
82
+ .withClear .input {
83
+ padding-inline-end: 0;
84
+ }
85
+
86
+ /* When clear is inline with other end adornments, keep the input tight as well. */
87
+ .withInlineClear .input {
88
+ padding-inline-end: 0;
89
+ }
90
+
91
+ /* Global focus reset - variants own visible focus treatment */
92
+ .input:focus-visible {
93
+ outline: none;
94
+ }
95
+
96
+ /* =========================
97
+ Variants
98
+ ========================= */
99
+
100
+ /* Stronger field chrome for forms/settings */
101
+ .outlined {
102
+ background-color: var(--color-bg-surface);
103
+ border-color: var(--color-border-default);
104
+ }
105
+
106
+ .outlined:hover:not([aria-disabled='true']) {
107
+ border-color: var(--color-border-strong);
108
+ }
109
+
110
+ .outlined:focus-within:not([aria-disabled='true']) {
111
+ border-color: var(--color-border-selected);
112
+ box-shadow: inset 0 0 0 1px var(--color-border-selected);
113
+ }
114
+
115
+ .surface {
116
+ background-color: var(--color-bg-surface);
117
+ border: 1px solid var(--color-border-subtle);
118
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
119
+ }
120
+
121
+ .surface:hover:not([aria-disabled='true']) {
122
+ border-color: var(--color-border-default);
123
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
124
+ }
125
+
126
+ .surface:focus-within:not([aria-disabled='true']) {
127
+ border-color: var(--color-border-selected);
128
+ box-shadow: inset 0 0 0 1px var(--color-border-selected);
129
+ }
130
+
131
+ /* Old filled/tinted behavior, now renamed subtle */
132
+ .subtle {
133
+ background-color: var(--color-bg-toolbar);
134
+ border-color: transparent;
135
+ box-shadow: inset 0 0 0 1px transparent;
136
+ }
137
+
138
+ .subtle:hover:not([aria-disabled='true']) {
139
+ background-color: var(--color-bg-toolbar-hover);
140
+ }
141
+
142
+ .subtle:focus-within:not([aria-disabled='true']) {
143
+ border-color: var(--color-border-selected);
144
+ box-shadow: inset 0 0 0 1px var(--color-border-selected);
145
+ }
146
+
147
+ .embedded {
148
+ background-color: transparent;
149
+ border-color: transparent;
150
+ border-radius: 0;
151
+ box-shadow: none;
152
+ padding-block: 0;
153
+ block-size: 100%;
154
+ }
155
+
156
+ .embedded:hover:not([aria-disabled='true']),
157
+ .embedded:focus-within:not([aria-disabled='true']) {
158
+ background-color: transparent;
159
+ border-color: transparent;
160
+ box-shadow: none;
161
+ outline: none;
162
+ }
163
+
164
+ .standalone {
165
+ background-color: var(--color-bg-surface);
166
+ border-color: var(--color-border-subtle);
167
+ border-radius: var(--border-radius-rounded);
168
+ box-shadow: var(--shadow-xs), var(--shadow-sm);
169
+ }
170
+
171
+ .standalone .input {
172
+ padding-inline: var(--spacing-md);
173
+ }
174
+
175
+ .standalone:hover:not([aria-disabled='true']) {
176
+ border-color: var(--color-border-strong);
177
+ box-shadow: var(--shadow-sm), var(--shadow-md);
178
+ }
179
+
180
+ .standalone:focus-within:not([aria-disabled='true']) {
181
+ border-color: var(--color-border-selected);
182
+ box-shadow:
183
+ var(--shadow-xs),
184
+ var(--shadow-md),
185
+ inset 0 0 0 1px var(--color-border-selected);
186
+ }
187
+
188
+ /* =========================
189
+ Modified state
190
+ ========================= */
191
+
192
+ .modified {
193
+ background-color: color-mix(in srgb, var(--color-status-warning-bg) 22%, var(--color-bg-surface));
194
+ border-color: color-mix(
195
+ in srgb,
196
+ var(--color-status-warning-border) 45%,
197
+ var(--color-border-default)
198
+ );
199
+ border-left-color: var(--color-status-warning-border);
200
+ border-left-width: 4px;
201
+ }
202
+
203
+ /* Hover should stay warm, not switch back to the normal border */
204
+ .modified:hover:not([aria-disabled='true']) {
205
+ background-color: color-mix(in srgb, var(--color-status-warning-bg) 28%, var(--color-bg-surface));
206
+ border-color: color-mix(
207
+ in srgb,
208
+ var(--color-status-warning-border) 60%,
209
+ var(--color-border-default)
210
+ );
211
+ border-left-color: var(--color-status-warning-border);
212
+ }
213
+
214
+ /* Focus should also stay warm and readable */
215
+ .modified:focus-within:not([aria-disabled='true']) {
216
+ background-color: color-mix(in srgb, var(--color-status-warning-bg) 28%, var(--color-bg-surface));
217
+ border-color: color-mix(
218
+ in srgb,
219
+ var(--color-status-warning-border) 75%,
220
+ var(--color-border-default)
221
+ );
222
+ border-left-color: var(--color-status-warning-border);
223
+ box-shadow: inset 0 0 0 1px
224
+ color-mix(in srgb, var(--color-status-warning-border) 55%, var(--color-border-default));
225
+ }
226
+
227
+ /* Variant-specific tweaks when modified */
228
+ .surface.modified {
229
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
230
+ }
231
+
232
+ .surface.modified:hover:not([aria-disabled='true']) {
233
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
234
+ }
235
+
236
+ .surface.modified:focus-within:not([aria-disabled='true']) {
237
+ box-shadow: inset 0 0 0 1px
238
+ color-mix(in srgb, var(--color-status-warning-border) 55%, var(--color-border-default));
239
+ }
240
+
241
+ .subtle.modified {
242
+ background-color: color-mix(in srgb, var(--color-status-warning-bg) 30%, var(--color-bg-toolbar));
243
+ border-color: transparent;
244
+ border-left-color: var(--color-status-warning-border);
245
+ border-left-width: 4px;
246
+ box-shadow: none;
247
+ }
248
+
249
+ .subtle.modified:hover:not([aria-disabled='true']) {
250
+ background-color: color-mix(
251
+ in srgb,
252
+ var(--color-status-warning-bg) 36%,
253
+ var(--color-bg-toolbar-hover)
254
+ );
255
+ }
256
+
257
+ .subtle.modified:focus-within:not([aria-disabled='true']) {
258
+ border-color: color-mix(
259
+ in srgb,
260
+ var(--color-status-warning-border) 75%,
261
+ var(--color-border-default)
262
+ );
263
+ border-left-color: var(--color-status-warning-border);
264
+ box-shadow: inset 0 0 0 1px
265
+ color-mix(in srgb, var(--color-status-warning-border) 55%, var(--color-border-default));
266
+ }
267
+
268
+ .standalone.modified {
269
+ box-shadow: var(--shadow-xs), var(--shadow-md);
270
+ }
271
+
272
+ .standalone.modified:hover:not([aria-disabled='true']) {
273
+ box-shadow: var(--shadow-sm), var(--shadow-md);
274
+ }
275
+
276
+ .standalone.modified:focus-within:not([aria-disabled='true']) {
277
+ box-shadow:
278
+ var(--shadow-xs),
279
+ var(--shadow-md),
280
+ inset 0 0 0 1px
281
+ color-mix(in srgb, var(--color-status-warning-border) 55%, var(--color-border-default));
282
+ }
283
+
284
+ /* Embedded should stay visually light, but can still get the marker */
285
+ .embedded.modified {
286
+ background-color: color-mix(in srgb, var(--color-status-warning-bg) 18%, transparent);
287
+ border-color: transparent;
288
+ border-left-color: var(--color-status-warning-border);
289
+ border-left-width: 3px;
290
+ box-shadow: none;
291
+ }
292
+
293
+ .embedded.modified:hover:not([aria-disabled='true']),
294
+ .embedded.modified:focus-within:not([aria-disabled='true']) {
295
+ background-color: color-mix(in srgb, var(--color-status-warning-bg) 22%, transparent);
296
+ border-color: transparent;
297
+ border-left-color: var(--color-status-warning-border);
298
+ box-shadow: none;
299
+ }
300
+
301
+ /* Disabled modified state */
302
+ .modified[aria-disabled='true'] {
303
+ background-color: var(--color-disabled-bg);
304
+ border-color: var(--color-disabled-border);
305
+ border-left-color: var(--color-disabled-border);
306
+ border-left-width: var(--border-width-thin);
307
+ box-shadow: none;
308
+ }
309
+
310
+ /* Sizes */
311
+ .xs {
312
+ block-size: var(--component-size-xs);
313
+ font-size: var(--font-size-xs);
314
+ }
315
+
316
+ .input.xs {
317
+ padding-inline: var(--spacing-xxs);
318
+ }
319
+
320
+ .sm {
321
+ block-size: var(--component-size-sm);
322
+ font-size: var(--font-size-sm);
323
+ }
324
+
325
+ .sm.embedded,
326
+ .md.embedded,
327
+ .lg.embedded {
328
+ block-size: 100%;
329
+ }
330
+
331
+ .md {
332
+ block-size: var(--component-size-md);
333
+ font-size: var(--font-size-sm);
334
+ }
335
+
336
+ .lg {
337
+ block-size: var(--component-size-lg);
338
+ font-size: var(--font-size-lg);
339
+ }
340
+
341
+ /* Leading icon */
342
+ .fieldWithIcon .input {
343
+ padding-inline-start: calc(var(--spacing-sm) + var(--icon-size-md) + var(--spacing-xs));
344
+ }
345
+
346
+ .embedded.fieldWithIcon .input {
347
+ padding-inline-start: calc(var(--spacing-xs) + var(--icon-size-md) + var(--spacing-xs));
348
+ }
349
+
350
+ .icon {
351
+ position: absolute;
352
+ inset-inline-start: var(--spacing-sm);
353
+ top: 50%;
354
+ transform: translateY(-50%);
355
+ display: inline-flex;
356
+ align-items: center;
357
+ justify-content: center;
358
+ inline-size: var(--icon-size-md);
359
+ block-size: var(--icon-size-md);
360
+ pointer-events: none;
361
+ color: var(--color-fg-subtle);
362
+ transition: color var(--transition-fast) var(--ease-standard);
363
+ }
364
+
365
+ .embedded .icon {
366
+ inset-inline-start: var(--spacing-xs);
367
+ }
368
+
369
+ .field:focus-within .icon {
370
+ color: var(--color-fg-muted);
371
+ }
372
+
373
+ .icon svg {
374
+ inline-size: var(--icon-size-md);
375
+ block-size: var(--icon-size-md);
376
+ }
377
+
378
+ /* Trailing label (unit, currency, etc.) */
379
+ .withTrailingLabel .field {
380
+ border-top-right-radius: 0;
381
+ border-bottom-right-radius: 0;
382
+ }
383
+
384
+ .trailingLabel {
385
+ display: flex;
386
+ align-items: center;
387
+ flex: 0 0 auto;
388
+ padding-inline: var(--spacing-sm);
389
+ font-family: var(--font-family);
390
+ font-size: var(--font-size-sm);
391
+ color: var(--color-fg-muted);
392
+ background: var(--color-bg-toolbar);
393
+ border: var(--border-width-thin) solid var(--color-border-default);
394
+ margin-left: calc(-1 * var(--border-width-thin));
395
+ border-top-right-radius: var(--border-radius-default);
396
+ border-bottom-right-radius: var(--border-radius-default);
397
+ white-space: nowrap;
398
+ user-select: none;
399
+ box-sizing: border-box;
400
+ }
401
+
402
+ .withTrailingLabel:has(.standalone) .trailingLabel {
403
+ border-top-right-radius: var(--border-radius-rounded);
404
+ border-bottom-right-radius: var(--border-radius-rounded);
405
+ border-color: var(--color-border-subtle);
406
+ background-color: var(--color-bg-surface);
407
+ box-shadow: var(--shadow-xs), var(--shadow-sm);
408
+ }
409
+
410
+ /* Trailing action button (outside field) */
411
+ .trailingButton {
412
+ flex: 0 0 auto;
413
+ border-top-left-radius: 0;
414
+ border-bottom-left-radius: 0;
415
+ border-left: var(--border-width-thin) solid transparent;
416
+ margin-left: calc(-1 * var(--border-width-thin));
417
+ }
418
+
419
+ .trailingButton:hover {
420
+ border-color: var(--color-border-default);
421
+ z-index: 2;
422
+ }
423
+
424
+ /* Standalone variant: pill-shaped trailing button to match the field */
425
+ .withButton:has(.standalone) .trailingButton {
426
+ border-top-right-radius: var(--border-radius-rounded);
427
+ border-bottom-right-radius: var(--border-radius-rounded);
428
+ border-left-color: var(--color-border-subtle);
429
+ border-color: var(--color-border-subtle);
430
+ background-color: var(--color-bg-surface);
431
+ box-shadow: var(--shadow-xs), var(--shadow-sm);
432
+ }
433
+
434
+ .withButton:has(.standalone) .trailingButton:hover {
435
+ border-color: var(--color-border-strong);
436
+ box-shadow: var(--shadow-sm), var(--shadow-sm);
437
+ }
438
+
439
+ /* Date/time picker indicator (WebKit) */
440
+ .input[type='datetime-local']::-webkit-calendar-picker-indicator {
441
+ filter: invert(0.7);
442
+ }
443
+
444
+ /* Start and end adornments */
445
+ .startAdornment {
446
+ display: flex;
447
+ align-items: center;
448
+ gap: 4px;
449
+ margin-left: var(--spacing-xs);
450
+ }
451
+
452
+ .endAdornment {
453
+ display: flex;
454
+ align-items: center;
455
+ flex: 0 0 auto;
456
+ gap: 2px;
457
+ margin-inline-start: auto;
458
+ margin-right: var(--spacing-xxs);
459
+ color: var(--color-fg-subtle);
460
+ }
461
+
462
+ .clearSlot {
463
+ display: inline-flex;
464
+ align-items: center;
465
+ justify-content: center;
466
+ min-inline-size: calc(16px + (var(--spacing-xxs) * 2));
467
+ min-block-size: calc(16px + (var(--spacing-xxs) * 2));
468
+ }
@@ -0,0 +1,72 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var styles = require('./InputContainer.module.css');
5
+ var InlineStatus = require('../../inline-status/InlineStatus');
6
+
7
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
+
9
+ var styles__default = /*#__PURE__*/_interopDefault(styles);
10
+
11
+ function InputContainer({
12
+ label,
13
+ labelAction,
14
+ htmlFor,
15
+ error,
16
+ helpText,
17
+ helpTextAddition,
18
+ fullWidth = false,
19
+ required = false,
20
+ children,
21
+ orientation = "horizontal",
22
+ size = "md",
23
+ labelWidth = "160px",
24
+ modified = false
25
+ }) {
26
+ const renderLabelRow = (label || labelAction) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${styles__default.default.labelRow} dbc-flex dbc-items-center dbc-gap-md`, children: [
27
+ label && /* @__PURE__ */ jsxRuntime.jsxs("label", { className: styles__default.default.label, htmlFor, children: [
28
+ label,
29
+ required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles__default.default.required, children: " *" })
30
+ ] }),
31
+ labelAction && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles__default.default.labelAction, children: labelAction })
32
+ ] });
33
+ const renderMessageRow = (error || helpText || helpTextAddition) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${error ? styles__default.default.errorText : styles__default.default.helpText} ${styles__default.default.messageRow}`, children: error ? /* @__PURE__ */ jsxRuntime.jsx(InlineStatus.InlineStatus, { severity: "error", disableIcon: true, children: error }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
34
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: helpText }),
35
+ helpTextAddition && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles__default.default.helpTextAddition, children: helpTextAddition })
36
+ ] }) });
37
+ if (orientation === "vertical") {
38
+ return /* @__PURE__ */ jsxRuntime.jsxs(
39
+ "div",
40
+ {
41
+ "data-modified": modified ? "true" : void 0,
42
+ className: `dbc-flex dbc-flex-column dbc-gap-xs ${styles__default.default.inputContainer}`,
43
+ style: { width: fullWidth ? "100%" : void 0 },
44
+ children: [
45
+ renderLabelRow,
46
+ children,
47
+ renderMessageRow
48
+ ]
49
+ }
50
+ );
51
+ }
52
+ return /* @__PURE__ */ jsxRuntime.jsx(
53
+ "div",
54
+ {
55
+ "data-modified": modified ? "true" : void 0,
56
+ className: styles__default.default.inputContainer,
57
+ style: {
58
+ "--label-width": labelWidth,
59
+ width: fullWidth ? "100%" : void 0
60
+ },
61
+ children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${styles__default.default.horizontal} dbc-flex dbc-flex-column dbc-gap-xs`, "data-size": size, children: [
62
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${styles__default.default.labelContainer} dbc-flex dbc-items-center dbc-gap-xs`, children: [
63
+ renderLabelRow,
64
+ children
65
+ ] }),
66
+ renderMessageRow
67
+ ] })
68
+ }
69
+ );
70
+ }
71
+
72
+ exports.InputContainer = InputContainer;
@@ -0,0 +1,66 @@
1
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
+ import styles from './InputContainer.module.css';
3
+ import { InlineStatus } from '../../inline-status/InlineStatus';
4
+
5
+ function InputContainer({
6
+ label,
7
+ labelAction,
8
+ htmlFor,
9
+ error,
10
+ helpText,
11
+ helpTextAddition,
12
+ fullWidth = false,
13
+ required = false,
14
+ children,
15
+ orientation = "horizontal",
16
+ size = "md",
17
+ labelWidth = "160px",
18
+ modified = false
19
+ }) {
20
+ const renderLabelRow = (label || labelAction) && /* @__PURE__ */ jsxs("div", { className: `${styles.labelRow} dbc-flex dbc-items-center dbc-gap-md`, children: [
21
+ label && /* @__PURE__ */ jsxs("label", { className: styles.label, htmlFor, children: [
22
+ label,
23
+ required && /* @__PURE__ */ jsx("span", { className: styles.required, children: " *" })
24
+ ] }),
25
+ labelAction && /* @__PURE__ */ jsx("div", { className: styles.labelAction, children: labelAction })
26
+ ] });
27
+ const renderMessageRow = (error || helpText || helpTextAddition) && /* @__PURE__ */ jsx("div", { className: `${error ? styles.errorText : styles.helpText} ${styles.messageRow}`, children: error ? /* @__PURE__ */ jsx(InlineStatus, { severity: "error", disableIcon: true, children: error }) : /* @__PURE__ */ jsxs(Fragment, { children: [
28
+ /* @__PURE__ */ jsx("span", { children: helpText }),
29
+ helpTextAddition && /* @__PURE__ */ jsx("span", { className: styles.helpTextAddition, children: helpTextAddition })
30
+ ] }) });
31
+ if (orientation === "vertical") {
32
+ return /* @__PURE__ */ jsxs(
33
+ "div",
34
+ {
35
+ "data-modified": modified ? "true" : void 0,
36
+ className: `dbc-flex dbc-flex-column dbc-gap-xs ${styles.inputContainer}`,
37
+ style: { width: fullWidth ? "100%" : void 0 },
38
+ children: [
39
+ renderLabelRow,
40
+ children,
41
+ renderMessageRow
42
+ ]
43
+ }
44
+ );
45
+ }
46
+ return /* @__PURE__ */ jsx(
47
+ "div",
48
+ {
49
+ "data-modified": modified ? "true" : void 0,
50
+ className: styles.inputContainer,
51
+ style: {
52
+ "--label-width": labelWidth,
53
+ width: fullWidth ? "100%" : void 0
54
+ },
55
+ children: /* @__PURE__ */ jsxs("div", { className: `${styles.horizontal} dbc-flex dbc-flex-column dbc-gap-xs`, "data-size": size, children: [
56
+ /* @__PURE__ */ jsxs("div", { className: `${styles.labelContainer} dbc-flex dbc-items-center dbc-gap-xs`, children: [
57
+ renderLabelRow,
58
+ children
59
+ ] }),
60
+ renderMessageRow
61
+ ] })
62
+ }
63
+ );
64
+ }
65
+
66
+ export { InputContainer };
@@ -0,0 +1,59 @@
1
+ .horizontal {
2
+ --gap: var(--spacing-sm);
3
+ }
4
+
5
+ .horizontal[data-size='sm'] {
6
+ --gap: var(--spacing-xs);
7
+ }
8
+
9
+ .labelContainer {
10
+ gap: var(--gap);
11
+ }
12
+
13
+ .label {
14
+ color: var(--color-fg-default);
15
+ font-size: var(--font-size-sm);
16
+ font-weight: var(--font-weight-medium);
17
+ }
18
+
19
+ .horizontal .errorText,
20
+ .horizontal .helpText {
21
+ margin-left: calc(var(--label-width) + var(--gap));
22
+ }
23
+
24
+ .helpText {
25
+ color: var(--color-fg-subtle);
26
+ font-size: var(--font-size-sm);
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: space-between;
30
+ }
31
+
32
+ .helpTextAddition {
33
+ color: var(--color-fg-subtle);
34
+ }
35
+
36
+ .horizontal label {
37
+ width: var(--label-width);
38
+ }
39
+
40
+ .errorText {
41
+ color: var(--color-status-error);
42
+ font-size: var(--font-size-sm);
43
+ }
44
+
45
+ .required {
46
+ color: var(--color-status-error);
47
+ font-weight: bold;
48
+ }
49
+
50
+ .messageRow {
51
+ min-height: 1lh;
52
+ }
53
+
54
+ /* Optional: keep this only for controls whose own label lives inside children,
55
+ such as checkbox/radio wrappers. It will not affect Input's top label. */
56
+ .inputContainer[data-modified] label:not(.label) {
57
+ background-color: color-mix(in srgb, var(--color-status-warning-bg) 35%, transparent);
58
+ border-radius: var(--border-radius-default);
59
+ }