@povio/ui 3.1.1 → 3.2.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 (296) hide show
  1. package/dist/assets/icons/AlignCenter.js +26 -11
  2. package/dist/assets/icons/AlignLeft.js +26 -11
  3. package/dist/assets/icons/AlignLeftRight.js +26 -11
  4. package/dist/assets/icons/AlignRight.js +26 -11
  5. package/dist/assets/icons/ArrowDropDown.js +26 -11
  6. package/dist/assets/icons/ArrowDropUp.js +26 -11
  7. package/dist/assets/icons/ArrowLeft.js +26 -11
  8. package/dist/assets/icons/ArrowRight.js +26 -11
  9. package/dist/assets/icons/Bold.js +26 -11
  10. package/dist/assets/icons/BulletedList.js +26 -11
  11. package/dist/assets/icons/Calendar.js +28 -13
  12. package/dist/assets/icons/Check.js +28 -13
  13. package/dist/assets/icons/CheckCircle.js +26 -11
  14. package/dist/assets/icons/CheckboxCheckmark.js +29 -14
  15. package/dist/assets/icons/CheckboxIndeterminate.js +29 -14
  16. package/dist/assets/icons/ChevronDown.js +28 -13
  17. package/dist/assets/icons/ChevronLeft.js +28 -13
  18. package/dist/assets/icons/ChevronRight.js +28 -13
  19. package/dist/assets/icons/ChevronUp.js +28 -13
  20. package/dist/assets/icons/ChevronsLeft.js +28 -13
  21. package/dist/assets/icons/ChevronsRight.js +28 -13
  22. package/dist/assets/icons/Clock.js +26 -11
  23. package/dist/assets/icons/Close.js +26 -11
  24. package/dist/assets/icons/DateTime.js +35 -14
  25. package/dist/assets/icons/DragIndicator.js +26 -11
  26. package/dist/assets/icons/File.js +28 -13
  27. package/dist/assets/icons/Highlight.js +26 -11
  28. package/dist/assets/icons/HighlightOn.js +49 -15
  29. package/dist/assets/icons/Home.js +26 -11
  30. package/dist/assets/icons/Info.js +37 -16
  31. package/dist/assets/icons/Italic.js +26 -11
  32. package/dist/assets/icons/Link.js +26 -11
  33. package/dist/assets/icons/Menu.js +26 -11
  34. package/dist/assets/icons/NumberedList.js +26 -11
  35. package/dist/assets/icons/PointerHorizontal.js +26 -11
  36. package/dist/assets/icons/PointerVertical.js +26 -11
  37. package/dist/assets/icons/Search.js +26 -11
  38. package/dist/assets/icons/Send.js +28 -13
  39. package/dist/assets/icons/Strikethrough.js +26 -11
  40. package/dist/assets/icons/TextColor.js +48 -14
  41. package/dist/assets/icons/Today.js +26 -11
  42. package/dist/assets/icons/Underlined.js +28 -13
  43. package/dist/assets/icons/Upload.js +35 -14
  44. package/dist/assets/icons/Visibility.js +26 -11
  45. package/dist/assets/icons/VisibilityOff.js +26 -11
  46. package/dist/assets/icons/WarningFilled.js +28 -13
  47. package/dist/components/Breadcrumbs/Breadcrumbs.js +207 -56
  48. package/dist/components/Menu/Menu.js +18 -2
  49. package/dist/components/Menu/MenuDesktop.js +41 -7
  50. package/dist/components/Menu/MenuItem.js +32 -9
  51. package/dist/components/Menu/MenuMobile.js +102 -39
  52. package/dist/components/Menu/MenuPopover.js +105 -29
  53. package/dist/components/buttons/IconButton/IconButton.js +40 -8
  54. package/dist/components/buttons/InlineIconButton/InlineIconButton.d.ts +2 -1
  55. package/dist/components/buttons/InlineIconButton/InlineIconButton.js +34 -9
  56. package/dist/components/buttons/PillButton/PillButton.js +55 -17
  57. package/dist/components/buttons/SplitButton/SplitButton.js +103 -18
  58. package/dist/components/buttons/TextButton/TextButton.js +30 -8
  59. package/dist/components/buttons/ToggleButton/ToggleButton.js +28 -8
  60. package/dist/components/buttons/shared/ButtonContent.js +80 -22
  61. package/dist/components/inputs/Checkbox/Checkbox.d.ts +5 -2
  62. package/dist/components/inputs/Checkbox/Checkbox.js +216 -36
  63. package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +24 -10
  64. package/dist/components/inputs/Checkbox/CheckboxGroup.d.ts +23 -0
  65. package/dist/components/inputs/Checkbox/CheckboxGroup.js +363 -0
  66. package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +65 -0
  67. package/dist/components/inputs/Checkbox/checkbox.cva.js +104 -1
  68. package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +12 -5
  69. package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +381 -76
  70. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +12 -5
  71. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +500 -187
  72. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +14 -5
  73. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +281 -47
  74. package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +7 -3
  75. package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +617 -122
  76. package/dist/components/inputs/DateTime/shared/Calendar.d.ts +5 -2
  77. package/dist/components/inputs/DateTime/shared/Calendar.js +342 -119
  78. package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +4 -2
  79. package/dist/components/inputs/DateTime/shared/CalendarCell.js +310 -103
  80. package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +4 -2
  81. package/dist/components/inputs/DateTime/shared/CalendarGrid.js +150 -33
  82. package/dist/components/inputs/DateTime/shared/CalendarHeader.js +233 -98
  83. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +318 -137
  84. package/dist/components/inputs/DateTime/shared/DateField.d.ts +2 -1
  85. package/dist/components/inputs/DateTime/shared/DateField.js +303 -113
  86. package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +14 -3
  87. package/dist/components/inputs/DateTime/shared/DatePickerInput.js +361 -131
  88. package/dist/components/inputs/DateTime/shared/DateSegmentItem.d.ts +18 -1
  89. package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +104 -11
  90. package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +83 -28
  91. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +59 -10
  92. package/dist/components/inputs/DateTime/shared/MonthPicker.js +103 -58
  93. package/dist/components/inputs/DateTime/shared/RangeCalendar.js +193 -82
  94. package/dist/components/inputs/DateTime/shared/TimeField.js +27 -8
  95. package/dist/components/inputs/DateTime/shared/TimePickerForm.js +279 -110
  96. package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +4 -1
  97. package/dist/components/inputs/DateTime/shared/TimePickerInput.js +212 -66
  98. package/dist/components/inputs/DateTime/shared/YearPicker.js +119 -68
  99. package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +5 -0
  100. package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +16 -0
  101. package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +16 -0
  102. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +15 -0
  103. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +32 -0
  104. package/dist/components/inputs/DateTime/shared/dateSegment.utils.d.ts +2 -0
  105. package/dist/components/inputs/DateTime/shared/dateSegment.utils.spec.d.ts +1 -0
  106. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.d.ts +41 -0
  107. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +99 -0
  108. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +1 -0
  109. package/dist/components/inputs/File/FileUpload.js +87 -44
  110. package/dist/components/inputs/File/FileUploadContainer.js +15 -7
  111. package/dist/components/inputs/File/InputUpload.js +317 -79
  112. package/dist/components/inputs/File/shared/FileCard.js +104 -41
  113. package/dist/components/inputs/File/shared/FileCardList.js +47 -12
  114. package/dist/components/inputs/File/shared/FileUploadContent.js +175 -44
  115. package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +149 -46
  116. package/dist/components/inputs/File/shared/FileUploadContentError.js +234 -93
  117. package/dist/components/inputs/File/shared/FileUploadContentFilled.js +230 -97
  118. package/dist/components/inputs/File/shared/FileUploadContentLoading.js +199 -55
  119. package/dist/components/inputs/File/shared/InputUploadContent.js +148 -34
  120. package/dist/components/inputs/File/shared/InputUploadFilled.js +49 -8
  121. package/dist/components/inputs/File/shared/ProgressBar.js +102 -15
  122. package/dist/components/inputs/FormField/FormField.d.ts +3 -3
  123. package/dist/components/inputs/FormField/FormField.js +119 -37
  124. package/dist/components/inputs/FormField/FormFieldError.js +25 -5
  125. package/dist/components/inputs/FormField/FormFieldHeader.d.ts +2 -2
  126. package/dist/components/inputs/FormField/FormFieldHeader.js +81 -22
  127. package/dist/components/inputs/FormField/FormFieldHeaderClose.js +31 -7
  128. package/dist/components/inputs/FormField/FormFieldHelper.js +26 -6
  129. package/dist/components/inputs/FormField/FormFieldLabel.d.ts +2 -2
  130. package/dist/components/inputs/FormField/FormFieldLabel.js +40 -9
  131. package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +13 -0
  132. package/dist/components/inputs/FormField/formFieldHeader.cva.js +14 -0
  133. package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +5 -2
  134. package/dist/components/inputs/Input/NumberInput/NumberInput.js +447 -98
  135. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +45 -0
  136. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +571 -0
  137. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +35 -0
  138. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +574 -0
  139. package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +48 -9
  140. package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +8 -0
  141. package/dist/components/inputs/Input/TextArea/TextArea.cva.js +5 -0
  142. package/dist/components/inputs/Input/TextArea/TextArea.js +307 -92
  143. package/dist/components/inputs/Input/TextInput/TextInput.d.ts +3 -1
  144. package/dist/components/inputs/Input/TextInput/TextInput.js +430 -91
  145. package/dist/components/inputs/Input/shared/InputContent.js +193 -59
  146. package/dist/components/inputs/Input/shared/numberStatic.utils.d.ts +1 -0
  147. package/dist/components/inputs/Input/shared/numberStatic.utils.js +7 -0
  148. package/dist/components/inputs/Inputs/Form.js +40 -11
  149. package/dist/components/inputs/Inputs/InputItem.d.ts +16 -21
  150. package/dist/components/inputs/Inputs/InputItem.js +71 -14
  151. package/dist/components/inputs/Inputs/Inputs.js +37 -11
  152. package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +3 -1
  153. package/dist/components/inputs/RadioGroup/RadioGroup.js +353 -61
  154. package/dist/components/inputs/RadioGroup/radio.cva.d.ts +45 -0
  155. package/dist/components/inputs/RadioGroup/radio.cva.js +48 -1
  156. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +6 -2
  157. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +217 -22
  158. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +3 -18
  159. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +107 -8
  160. package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +37 -0
  161. package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +14 -0
  162. package/dist/components/inputs/Selection/Select/QuerySelect.js +178 -0
  163. package/dist/components/inputs/Selection/Select/Select.d.ts +7 -3
  164. package/dist/components/inputs/Selection/Select/Select.js +227 -18
  165. package/dist/components/inputs/Selection/shared/SelectBase.d.ts +8 -1
  166. package/dist/components/inputs/Selection/shared/SelectBase.js +69 -18
  167. package/dist/components/inputs/Selection/shared/SelectDesktop.d.ts +1 -1
  168. package/dist/components/inputs/Selection/shared/SelectDesktop.js +394 -139
  169. package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
  170. package/dist/components/inputs/Selection/shared/SelectInput.js +397 -116
  171. package/dist/components/inputs/Selection/shared/SelectInputTags.js +99 -25
  172. package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +2 -2
  173. package/dist/components/inputs/Selection/shared/SelectListBox.js +164 -52
  174. package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +85 -35
  175. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +69 -16
  176. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +70 -21
  177. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +58 -9
  178. package/dist/components/inputs/Selection/shared/SelectMobile.d.ts +1 -1
  179. package/dist/components/inputs/Selection/shared/SelectMobile.js +9 -3
  180. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +9 -0
  181. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +47 -0
  182. package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +14 -0
  183. package/dist/components/inputs/Selection/shared/querySelect.utils.js +43 -0
  184. package/dist/components/inputs/Selection/shared/select.context.d.ts +3 -2
  185. package/dist/components/inputs/Selection/shared/select.context.js +67 -36
  186. package/dist/components/inputs/Selection/shared/select.types.d.ts +3 -2
  187. package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +6 -0
  188. package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +5 -0
  189. package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +12 -0
  190. package/dist/components/inputs/Selection/shared/selectInput.cva.js +8 -0
  191. package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +23 -0
  192. package/dist/components/inputs/Selection/shared/staticSelect.utils.js +54 -0
  193. package/dist/components/inputs/Selection/shared/staticSelect.utils.spec.d.ts +1 -0
  194. package/dist/components/inputs/Selection/shared/useSelectItems.js +109 -49
  195. package/dist/components/inputs/Skeleton/InputFrame.d.ts +83 -0
  196. package/dist/components/inputs/Skeleton/InputFrame.js +612 -0
  197. package/dist/components/inputs/Slider/Slider.d.ts +2 -1
  198. package/dist/components/inputs/Slider/Slider.js +265 -76
  199. package/dist/components/inputs/TextEditor/TextEditor.d.ts +1 -0
  200. package/dist/components/inputs/TextEditor/TextEditor.js +448 -99
  201. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +37 -11
  202. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +102 -30
  203. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +194 -45
  204. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +88 -28
  205. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +48 -14
  206. package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +66 -19
  207. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +49 -15
  208. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +92 -32
  209. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +126 -54
  210. package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +141 -38
  211. package/dist/components/inputs/Toggle/Toggle.d.ts +1 -0
  212. package/dist/components/inputs/Toggle/Toggle.js +214 -37
  213. package/dist/components/inputs/Toggle/toggle.cva.d.ts +3 -0
  214. package/dist/components/inputs/Toggle/toggle.cva.js +2 -1
  215. package/dist/components/inputs/shared/CheckContent.d.ts +2 -1
  216. package/dist/components/inputs/shared/CheckContent.js +21 -11
  217. package/dist/components/inputs/shared/InputClear.d.ts +2 -1
  218. package/dist/components/inputs/shared/InputClear.js +88 -12
  219. package/dist/components/inputs/shared/TooltipWrapper.js +50 -11
  220. package/dist/components/inputs/shared/input.cva.d.ts +28 -0
  221. package/dist/components/inputs/shared/input.cva.js +38 -4
  222. package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +8 -0
  223. package/dist/components/inputs/shared/tooltipWrapper.cva.js +5 -0
  224. package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +15 -0
  225. package/dist/components/inputs/shared/useStaticInputHandoff.js +112 -0
  226. package/dist/components/navigation/Accordion/Accordion.js +69 -22
  227. package/dist/components/navigation/Accordion/AccordionItem.js +86 -41
  228. package/dist/components/navigation/Stepper/Stepper.js +67 -22
  229. package/dist/components/navigation/Stepper/StepperItem.js +104 -31
  230. package/dist/components/navigation/Stepper/StepperSeparator.js +23 -5
  231. package/dist/components/overlays/ActionModal/ActionModal.js +169 -35
  232. package/dist/components/overlays/BottomSheet/BottomSheet.js +96 -23
  233. package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +48 -8
  234. package/dist/components/overlays/Drawer/Drawer.js +62 -20
  235. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +85 -28
  236. package/dist/components/overlays/Tooltip/Tooltip.js +137 -28
  237. package/dist/components/overlays/Tooltip/TooltipEllipsis.js +37 -12
  238. package/dist/components/segment/Segment.js +218 -57
  239. package/dist/components/segment/SegmentItem.js +67 -10
  240. package/dist/components/shared/pagination/Pagination.js +108 -22
  241. package/dist/components/shared/pagination/PaginationList.js +167 -64
  242. package/dist/components/status/Alert/Alert.js +97 -30
  243. package/dist/components/status/Loader/Loader.js +77 -22
  244. package/dist/components/status/Toast/Toast.js +28 -14
  245. package/dist/components/status/Toast/useToast.js +62 -57
  246. package/dist/components/table/ColumnConfig.js +158 -54
  247. package/dist/components/table/InfiniteTable.js +67 -16
  248. package/dist/components/table/PaginatedTable.js +84 -18
  249. package/dist/components/table/Table.js +28 -27
  250. package/dist/components/text/Link/Link.js +19 -7
  251. package/dist/components/text/Typography/Typography.js +23 -8
  252. package/dist/config/confirmation.context.js +1 -1
  253. package/dist/config/link.context.js +23 -9
  254. package/dist/config/router.context.js +42 -16
  255. package/dist/config/theme.context.js +98 -45
  256. package/dist/config/uiConfig.context.d.ts +20 -6
  257. package/dist/config/uiConfig.context.js +68 -14
  258. package/dist/config/uiOverrides.context.d.ts +22 -0
  259. package/dist/config/uiOverrides.context.js +54 -14
  260. package/dist/helpers/dynamicInputs.d.ts +12 -9
  261. package/dist/helpers/dynamicInputs.js +13 -8
  262. package/dist/hooks/useAutosave.d.ts +2 -1
  263. package/dist/hooks/useAutosave.js +12 -4
  264. package/dist/hooks/useAutosave.spec.d.ts +1 -0
  265. package/dist/hooks/useBreakpoint.js +16 -3
  266. package/dist/hooks/useDebounceCallback.js +51 -17
  267. package/dist/hooks/useFilters.js +125 -64
  268. package/dist/hooks/useForm.js +42 -8
  269. package/dist/hooks/useFormAutosave.d.ts +3 -1
  270. package/dist/hooks/useFormAutosave.js +122 -30
  271. package/dist/hooks/useFormAutosave.spec.d.ts +1 -0
  272. package/dist/hooks/useIntersectionObserver.d.ts +1 -1
  273. package/dist/hooks/useIntersectionObserver.js +91 -24
  274. package/dist/hooks/useKeyInteractions.d.ts +20 -0
  275. package/dist/hooks/useKeyInteractions.js +54 -0
  276. package/dist/hooks/useKeyInteractions.spec.d.ts +1 -0
  277. package/dist/hooks/useLocalStorage.js +43 -10
  278. package/dist/hooks/useLongPressRepeat.js +55 -20
  279. package/dist/hooks/usePagination.js +49 -19
  280. package/dist/hooks/useQueryAutocomplete.d.ts +14 -0
  281. package/dist/hooks/useQueryAutocomplete.js +72 -0
  282. package/dist/hooks/useScrollableListBox.js +37 -16
  283. package/dist/hooks/useSorting.js +69 -28
  284. package/dist/hooks/useStateAndRef.js +21 -7
  285. package/dist/hooks/useTableColumnConfig.js +124 -31
  286. package/dist/hooks/useTranslationMemo.js +25 -5
  287. package/dist/index.d.ts +20 -3
  288. package/dist/index.js +19 -8
  289. package/dist/tw-ui-plugin.js +8 -0
  290. package/dist/utils/date-time.utils.d.ts +38 -10
  291. package/dist/utils/date-time.utils.js +136 -22
  292. package/dist/utils/query.utils.d.ts +4 -0
  293. package/dist/utils/query.utils.js +8 -0
  294. package/dist/utils/zod.utils.d.ts +2 -0
  295. package/dist/utils/zod.utils.js +5 -0
  296. package/package.json +5 -5
@@ -2,24 +2,38 @@ import { CheckboxCheckmarkIcon } from "../../../assets/icons/CheckboxCheckmark.j
2
2
  import { CheckboxIndeterminateIcon } from "../../../assets/icons/CheckboxIndeterminate.js";
3
3
  import { UIOverrides } from "../../../config/uiOverrides.context.js";
4
4
  import { checkboxDefinition, checkboxIconDefinition } from "./checkbox.cva.js";
5
+ import { c } from "react/compiler-runtime";
5
6
  import { jsx, jsxs } from "react/jsx-runtime";
6
7
  //#region src/components/inputs/Checkbox/CheckboxCheckmark.tsx
7
- var CheckboxCheckmark = ({ variant, className, selectedIcon: SelectedIcon = CheckboxCheckmarkIcon, indeterminateIcon: IndeterminateIcon = CheckboxIndeterminateIcon, ...props }) => {
8
+ var CheckboxCheckmark = (t0) => {
9
+ const $ = c(3);
10
+ const { variant, className, selectedIcon: t1, indeterminateIcon: t2, ...props } = t0;
11
+ const SelectedIcon = t1 === void 0 ? CheckboxCheckmarkIcon : t1;
12
+ const IndeterminateIcon = t2 === void 0 ? CheckboxIndeterminateIcon : t2;
8
13
  const checkboxCva = UIOverrides.useCva("checkbox.cva", checkboxDefinition);
9
14
  const checkboxIconCva = UIOverrides.useCva("checkbox.iconCva", checkboxIconDefinition);
15
+ const t3 = checkboxCva({
16
+ variant,
17
+ ...props,
18
+ className
19
+ });
20
+ const t4 = checkboxIconCva({
21
+ ...props,
22
+ iconVariant: "indeterminate"
23
+ });
24
+ let t5;
25
+ if ($[0] !== IndeterminateIcon || $[1] !== t4) {
26
+ t5 = /* @__PURE__ */ jsx(IndeterminateIcon, { className: t4 });
27
+ $[0] = IndeterminateIcon;
28
+ $[1] = t4;
29
+ $[2] = t5;
30
+ } else t5 = $[2];
10
31
  return /* @__PURE__ */ jsxs("div", {
11
- className: checkboxCva({
12
- variant,
13
- ...props,
14
- className
15
- }),
32
+ className: t3,
16
33
  children: [/* @__PURE__ */ jsx(SelectedIcon, { className: checkboxIconCva({
17
34
  ...props,
18
35
  iconVariant: "selected"
19
- }) }), /* @__PURE__ */ jsx(IndeterminateIcon, { className: checkboxIconCva({
20
- ...props,
21
- iconVariant: "indeterminate"
22
- }) })]
36
+ }) }), t5]
23
37
  });
24
38
  };
25
39
  //#endregion
@@ -0,0 +1,23 @@
1
+ import { ReactElement, Ref } from 'react';
2
+ import { CheckboxGroupProps as AriaCheckboxGroupProps } from 'react-aria-components';
3
+ import { FieldValues } from 'react-hook-form';
4
+ import { CheckboxVariantProps } from './checkbox.cva';
5
+ import { FormFieldProps } from '../FormField/FormField';
6
+ import { ControlProps } from '../shared/form.types';
7
+ import { InputVariantProps } from '../shared/input.cva';
8
+ interface CheckboxGroupBaseProps extends Omit<FormFieldProps, "variant">, CheckboxVariantProps, Omit<InputVariantProps, "variant">, Omit<AriaCheckboxGroupProps, "children" | "className" | "label"> {
9
+ ref?: Ref<HTMLDivElement>;
10
+ options: {
11
+ label: string | ReactElement;
12
+ value: string;
13
+ }[];
14
+ isDirty?: boolean;
15
+ inputClassName?: string;
16
+ labelClassName?: string;
17
+ fireBlurOnChange?: boolean;
18
+ }
19
+ export interface CheckboxGroupProps extends CheckboxGroupBaseProps {
20
+ }
21
+ export type ControlledCheckboxGroupProps<TFieldValues extends FieldValues> = ControlProps<CheckboxGroupProps, TFieldValues>;
22
+ export declare const CheckboxGroup: <TFieldValues extends FieldValues>(props: ControlledCheckboxGroupProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
23
+ export {};
@@ -0,0 +1,363 @@
1
+ import { UIOverrides } from "../../../config/uiOverrides.context.js";
2
+ import { UIConfig } from "../../../config/uiConfig.context.js";
3
+ import { checkboxContentRowDefinition, checkboxContentWrapperDefinition, checkboxGroupLabelDefinition } from "./checkbox.cva.js";
4
+ import { CheckboxBase } from "./Checkbox.js";
5
+ import { FormFieldLabel } from "../FormField/FormFieldLabel.js";
6
+ import { FormField } from "../FormField/FormField.js";
7
+ import { inputBaseDefinition, inputSizeDefinition } from "../shared/input.cva.js";
8
+ import { c } from "react/compiler-runtime";
9
+ import { jsx, jsxs } from "react/jsx-runtime";
10
+ import { clsx } from "clsx";
11
+ import { CheckboxGroup } from "react-aria-components";
12
+ import { useLabel } from "react-aria";
13
+ import { mergeRefs } from "@react-aria/utils";
14
+ import { Controller } from "react-hook-form";
15
+ //#region src/components/inputs/Checkbox/CheckboxGroup.tsx
16
+ var CheckboxGroupBase = (props) => {
17
+ const $ = c(92);
18
+ const ui = UIConfig.useConfig();
19
+ const checkboxContentWrapperCva = UIOverrides.useCva("checkbox.contentWrapperCva", checkboxContentWrapperDefinition);
20
+ const checkboxContentRowCva = UIOverrides.useCva("checkbox.contentRowCva", checkboxContentRowDefinition);
21
+ const checkboxGroupLabelCva = UIOverrides.useCva("checkbox.groupLabelCva", checkboxGroupLabelDefinition);
22
+ const inputBaseCva = UIOverrides.useCva("input.baseCva", inputBaseDefinition);
23
+ const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
24
+ const { ref, label, tooltipText, helperText, isDirty, isRequired, rightContent, isDisabled, headerClassName, errorClassName, labelClassName, inputClassName, isHeaderHidden, error, className, options, value, defaultValue, onChange, onBlur, fireBlurOnChange: fireBlurOnChangeProp, as: asProp, size: sizeProp, variant: variantProp, hideLabel: hideLabelProp, ...rest } = props;
25
+ const as = asProp ?? ui.input.as;
26
+ const size = sizeProp ?? ui.input.size;
27
+ const variant = variantProp ?? ui.checkbox.variant;
28
+ const hideLabel = hideLabelProp ?? ui.input.hideLabel;
29
+ const fireBlurOnChange = fireBlurOnChangeProp ?? ui.checkbox.fireBlurOnChange;
30
+ const selectedValue = value ?? defaultValue;
31
+ const shouldRenderInputFrame = as !== "default";
32
+ let t0;
33
+ if ($[0] !== label) {
34
+ t0 = { label };
35
+ $[0] = label;
36
+ $[1] = t0;
37
+ } else t0 = $[1];
38
+ const { labelProps, fieldProps } = useLabel(t0);
39
+ const t1 = isHeaderHidden || as === "inline" || as === "filter" || as === "floating";
40
+ let t2;
41
+ if ($[2] !== className || $[3] !== error || $[4] !== errorClassName || $[5] !== headerClassName || $[6] !== helperText || $[7] !== hideLabel || $[8] !== isDisabled || $[9] !== isRequired || $[10] !== label || $[11] !== rightContent || $[12] !== t1 || $[13] !== tooltipText) {
42
+ t2 = {
43
+ className,
44
+ error,
45
+ errorClassName,
46
+ headerClassName,
47
+ helperText,
48
+ hideLabel,
49
+ isDisabled,
50
+ isHeaderHidden: t1,
51
+ isRequired,
52
+ label,
53
+ rightContent,
54
+ tooltipText
55
+ };
56
+ $[2] = className;
57
+ $[3] = error;
58
+ $[4] = errorClassName;
59
+ $[5] = headerClassName;
60
+ $[6] = helperText;
61
+ $[7] = hideLabel;
62
+ $[8] = isDisabled;
63
+ $[9] = isRequired;
64
+ $[10] = label;
65
+ $[11] = rightContent;
66
+ $[12] = t1;
67
+ $[13] = tooltipText;
68
+ $[14] = t2;
69
+ } else t2 = $[14];
70
+ const formFieldProps = t2;
71
+ const t3 = hideLabel || isHeaderHidden;
72
+ let t4;
73
+ if ($[15] !== headerClassName || $[16] !== helperText || $[17] !== isDisabled || $[18] !== isRequired || $[19] !== label || $[20] !== labelProps || $[21] !== rightContent || $[22] !== t3 || $[23] !== tooltipText) {
74
+ t4 = {
75
+ className: headerClassName,
76
+ helperText,
77
+ isDisabled,
78
+ isHeaderHidden: t3,
79
+ isRequired,
80
+ label,
81
+ labelProps,
82
+ rightContent,
83
+ tooltipText
84
+ };
85
+ $[15] = headerClassName;
86
+ $[16] = helperText;
87
+ $[17] = isDisabled;
88
+ $[18] = isRequired;
89
+ $[19] = label;
90
+ $[20] = labelProps;
91
+ $[21] = rightContent;
92
+ $[22] = t3;
93
+ $[23] = tooltipText;
94
+ $[24] = t4;
95
+ } else t4 = $[24];
96
+ const headerProps = t4;
97
+ let t5;
98
+ if ($[25] !== fireBlurOnChange || $[26] !== onBlur || $[27] !== onChange) {
99
+ t5 = (nextValue) => {
100
+ onChange?.(nextValue);
101
+ if (fireBlurOnChange) onBlur?.({});
102
+ };
103
+ $[25] = fireBlurOnChange;
104
+ $[26] = onBlur;
105
+ $[27] = onChange;
106
+ $[28] = t5;
107
+ } else t5 = $[28];
108
+ const handleChange = t5;
109
+ const T0 = CheckboxGroup;
110
+ const t6 = !!error;
111
+ const t7 = isDirty || void 0;
112
+ const t8 = isRequired || void 0;
113
+ const t9 = "group";
114
+ const T1 = FormField;
115
+ const t10 = as === "inline" && "h-full";
116
+ let t11;
117
+ if ($[29] !== className || $[30] !== t10) {
118
+ t11 = clsx("w-full", t10, className);
119
+ $[29] = className;
120
+ $[30] = t10;
121
+ $[31] = t11;
122
+ } else t11 = $[31];
123
+ const t12 = as === "inline" ? -1 : void 0;
124
+ let t13;
125
+ if ($[32] !== as || $[33] !== inputBaseCva || $[34] !== inputClassName || $[35] !== shouldRenderInputFrame || $[36] !== ui) {
126
+ t13 = clsx("group/checkbox-group-content relative", shouldRenderInputFrame && inputBaseCva({
127
+ variant: ui.input.variant,
128
+ as
129
+ }), inputClassName);
130
+ $[32] = as;
131
+ $[33] = inputBaseCva;
132
+ $[34] = inputClassName;
133
+ $[35] = shouldRenderInputFrame;
134
+ $[36] = ui;
135
+ $[37] = t13;
136
+ } else t13 = $[37];
137
+ const t14 = "";
138
+ const t15 = isDisabled || void 0;
139
+ const t16 = isDisabled || void 0;
140
+ const t17 = !!error || void 0;
141
+ const t18 = selectedValue?.length ? true : void 0;
142
+ const t19 = "";
143
+ const t20 = clsx(checkboxContentWrapperCva({
144
+ variant,
145
+ as,
146
+ size,
147
+ hasInputFrame: shouldRenderInputFrame,
148
+ ...rest
149
+ }), shouldRenderInputFrame && as !== "floating" && inputSizeCva({
150
+ as,
151
+ size
152
+ }));
153
+ const t21 = isDirty || void 0;
154
+ const t22 = isRequired || void 0;
155
+ let t23;
156
+ if ($[38] !== as || $[39] !== checkboxGroupLabelCva || $[40] !== headerClassName || $[41] !== headerProps || $[42] !== size) {
157
+ t23 = as && ["filter", "floating"].includes(as) && /* @__PURE__ */ jsx(FormFieldLabel, {
158
+ ...headerProps,
159
+ as: as === "floating" ? "filter" : as,
160
+ size,
161
+ className: clsx(headerClassName, checkboxGroupLabelCva({ as }))
162
+ });
163
+ $[38] = as;
164
+ $[39] = checkboxGroupLabelCva;
165
+ $[40] = headerClassName;
166
+ $[41] = headerProps;
167
+ $[42] = size;
168
+ $[43] = t23;
169
+ } else t23 = $[43];
170
+ const t24 = checkboxContentRowCva({
171
+ variant,
172
+ as,
173
+ hasInputFrame: shouldRenderInputFrame,
174
+ ...rest
175
+ });
176
+ let t25;
177
+ if ($[44] !== hideLabel || $[45] !== labelClassName || $[46] !== options || $[47] !== variant) {
178
+ let t26;
179
+ if ($[49] !== hideLabel || $[50] !== labelClassName || $[51] !== variant) {
180
+ t26 = (option) => /* @__PURE__ */ jsx(CheckboxBase, {
181
+ value: option.value,
182
+ variant,
183
+ hideLabel,
184
+ hideError: true,
185
+ labelClassName,
186
+ children: option.label
187
+ }, option.value);
188
+ $[49] = hideLabel;
189
+ $[50] = labelClassName;
190
+ $[51] = variant;
191
+ $[52] = t26;
192
+ } else t26 = $[52];
193
+ t25 = options.map(t26);
194
+ $[44] = hideLabel;
195
+ $[45] = labelClassName;
196
+ $[46] = options;
197
+ $[47] = variant;
198
+ $[48] = t25;
199
+ } else t25 = $[48];
200
+ let t26;
201
+ if ($[53] !== t24 || $[54] !== t25) {
202
+ t26 = /* @__PURE__ */ jsx("div", {
203
+ className: t24,
204
+ children: t25
205
+ });
206
+ $[53] = t24;
207
+ $[54] = t25;
208
+ $[55] = t26;
209
+ } else t26 = $[55];
210
+ let t27;
211
+ if ($[56] !== t20 || $[57] !== t21 || $[58] !== t22 || $[59] !== t23 || $[60] !== t26) {
212
+ t27 = /* @__PURE__ */ jsxs("div", {
213
+ className: t20,
214
+ "data-is-dirty": t21,
215
+ "data-is-required": t22,
216
+ children: [t23, t26]
217
+ });
218
+ $[56] = t20;
219
+ $[57] = t21;
220
+ $[58] = t22;
221
+ $[59] = t23;
222
+ $[60] = t26;
223
+ $[61] = t27;
224
+ } else t27 = $[61];
225
+ let t28;
226
+ if ($[62] !== t13 || $[63] !== t15 || $[64] !== t16 || $[65] !== t17 || $[66] !== t18 || $[67] !== t27) {
227
+ t28 = /* @__PURE__ */ jsx("div", {
228
+ className: t13,
229
+ "data-rac": t14,
230
+ "data-disabled": t15,
231
+ "data-is-disabled": t16,
232
+ "data-invalid": t17,
233
+ "data-has-selection": t18,
234
+ "data-checkbox-group-content": t19,
235
+ children: t27
236
+ });
237
+ $[62] = t13;
238
+ $[63] = t15;
239
+ $[64] = t16;
240
+ $[65] = t17;
241
+ $[66] = t18;
242
+ $[67] = t27;
243
+ $[68] = t28;
244
+ } else t28 = $[68];
245
+ let t29;
246
+ if ($[69] !== T1 || $[70] !== as || $[71] !== formFieldProps || $[72] !== labelProps || $[73] !== t11 || $[74] !== t12 || $[75] !== t28) {
247
+ t29 = /* @__PURE__ */ jsx(T1, {
248
+ ...formFieldProps,
249
+ as,
250
+ labelProps,
251
+ className: t11,
252
+ tabIndex: t12,
253
+ children: t28
254
+ });
255
+ $[69] = T1;
256
+ $[70] = as;
257
+ $[71] = formFieldProps;
258
+ $[72] = labelProps;
259
+ $[73] = t11;
260
+ $[74] = t12;
261
+ $[75] = t28;
262
+ $[76] = t29;
263
+ } else t29 = $[76];
264
+ let t30;
265
+ if ($[77] !== T0 || $[78] !== defaultValue || $[79] !== fieldProps || $[80] !== handleChange || $[81] !== isDisabled || $[82] !== isRequired || $[83] !== onBlur || $[84] !== ref || $[85] !== rest || $[86] !== t29 || $[87] !== t6 || $[88] !== t7 || $[89] !== t8 || $[90] !== value) {
266
+ t30 = /* @__PURE__ */ jsx(T0, {
267
+ ...rest,
268
+ ...fieldProps,
269
+ ref,
270
+ value,
271
+ defaultValue,
272
+ onChange: handleChange,
273
+ onBlur,
274
+ isDisabled,
275
+ isInvalid: t6,
276
+ isRequired,
277
+ "data-is-dirty": t7,
278
+ "data-is-required": t8,
279
+ className: t9,
280
+ children: t29
281
+ });
282
+ $[77] = T0;
283
+ $[78] = defaultValue;
284
+ $[79] = fieldProps;
285
+ $[80] = handleChange;
286
+ $[81] = isDisabled;
287
+ $[82] = isRequired;
288
+ $[83] = onBlur;
289
+ $[84] = ref;
290
+ $[85] = rest;
291
+ $[86] = t29;
292
+ $[87] = t6;
293
+ $[88] = t7;
294
+ $[89] = t8;
295
+ $[90] = value;
296
+ $[91] = t30;
297
+ } else t30 = $[91];
298
+ return t30;
299
+ };
300
+ var CheckboxGroup$1 = (props) => {
301
+ const $ = c(15);
302
+ if ("formControl" in props && props.formControl) {
303
+ let formControl;
304
+ let innerProps;
305
+ let ref;
306
+ if ($[0] !== props) {
307
+ ({formControl, ref, ...innerProps} = props);
308
+ $[0] = props;
309
+ $[1] = formControl;
310
+ $[2] = innerProps;
311
+ $[3] = ref;
312
+ } else {
313
+ formControl = $[1];
314
+ innerProps = $[2];
315
+ ref = $[3];
316
+ }
317
+ let t0;
318
+ if ($[4] !== innerProps || $[5] !== props.error || $[6] !== props.isDisabled || $[7] !== ref) {
319
+ t0 = (t1) => {
320
+ const { field, fieldState: t2 } = t1;
321
+ const { error, isDirty } = t2;
322
+ return /* @__PURE__ */ jsx(CheckboxGroupBase, {
323
+ ...innerProps,
324
+ ref: mergeRefs(ref, field.ref),
325
+ value: field.value,
326
+ onChange: field.onChange,
327
+ onBlur: field.onBlur,
328
+ name: field.name,
329
+ isDirty,
330
+ isDisabled: field.disabled || props.isDisabled,
331
+ error: props.error ?? error?.message
332
+ });
333
+ };
334
+ $[4] = innerProps;
335
+ $[5] = props.error;
336
+ $[6] = props.isDisabled;
337
+ $[7] = ref;
338
+ $[8] = t0;
339
+ } else t0 = $[8];
340
+ let t1;
341
+ if ($[9] !== formControl.control || $[10] !== formControl.name || $[11] !== t0) {
342
+ t1 = /* @__PURE__ */ jsx(Controller, {
343
+ control: formControl.control,
344
+ name: formControl.name,
345
+ render: t0
346
+ });
347
+ $[9] = formControl.control;
348
+ $[10] = formControl.name;
349
+ $[11] = t0;
350
+ $[12] = t1;
351
+ } else t1 = $[12];
352
+ return t1;
353
+ }
354
+ let t0;
355
+ if ($[13] !== props) {
356
+ t0 = /* @__PURE__ */ jsx(CheckboxGroupBase, { ...props });
357
+ $[13] = props;
358
+ $[14] = t0;
359
+ } else t0 = $[14];
360
+ return t0;
361
+ };
362
+ //#endregion
363
+ export { CheckboxGroup$1 as CheckboxGroup };
@@ -15,6 +15,71 @@ export declare const checkboxIndicatorClass = "group flex items-center gap-2";
15
15
  export declare const checkboxTypography: (props: {
16
16
  readonly variant?: "default" | null | undefined;
17
17
  }) => TypographyVariantProps | undefined;
18
+ export declare const checkboxContentClassName: (props: {
19
+ readonly variant?: "default" | null | undefined;
20
+ }) => string | undefined;
21
+ export declare const checkboxContentWrapperDefinition: {
22
+ base: string[];
23
+ config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
24
+ readonly variant: {
25
+ readonly default: "";
26
+ };
27
+ readonly size: {
28
+ readonly "extra-small": "";
29
+ readonly small: "";
30
+ readonly default: "";
31
+ readonly large: "";
32
+ };
33
+ readonly as: {
34
+ readonly default: "flex-col";
35
+ readonly floating: "flex-col";
36
+ readonly filter: "flex-row flex-wrap items-center gap-2";
37
+ readonly inline: "flex-row flex-wrap items-center gap-2";
38
+ };
39
+ readonly hasInputFrame: {
40
+ readonly true: "gap-2";
41
+ readonly false: "";
42
+ };
43
+ }>;
44
+ };
45
+ export type CheckboxContentWrapperConfig = NonNullable<typeof checkboxContentWrapperDefinition.config>;
46
+ export interface CheckboxContentWrapperVariantProps extends UIOverrides.VariantProps<CheckboxContentWrapperConfig> {
47
+ }
48
+ export declare const checkboxGroupLabelDefinition: {
49
+ base: string[];
50
+ config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
51
+ readonly as: {
52
+ readonly default: "";
53
+ readonly floating: ["pointer-events-none absolute", "top-[calc(var(--spacing-floating-label-input-height-filled)+var(--spacing-floating-label-input-offset-top))]", "text-text-default-1", "font-semibold!", "text-label-3!"];
54
+ readonly filter: "";
55
+ readonly inline: "";
56
+ };
57
+ }>;
58
+ };
59
+ export type CheckboxGroupLabelConfig = NonNullable<typeof checkboxGroupLabelDefinition.config>;
60
+ export interface CheckboxGroupLabelVariantProps extends UIOverrides.VariantProps<CheckboxGroupLabelConfig> {
61
+ }
62
+ export declare const checkboxContentRowDefinition: {
63
+ base: string[];
64
+ config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
65
+ readonly variant: {
66
+ readonly default: "";
67
+ };
68
+ readonly as: {
69
+ readonly default: "flex-col";
70
+ readonly floating: "flex-col";
71
+ readonly filter: "flex-row flex-wrap items-center gap-2";
72
+ readonly inline: "flex-row flex-wrap items-center gap-2";
73
+ };
74
+ readonly hasInputFrame: {
75
+ readonly true: "gap-2";
76
+ readonly false: "";
77
+ };
78
+ }>;
79
+ };
80
+ export type CheckboxContentRowConfig = NonNullable<typeof checkboxContentRowDefinition.config>;
81
+ export interface CheckboxContentRowVariantProps extends UIOverrides.VariantProps<CheckboxContentRowConfig> {
82
+ }
18
83
  export declare const checkboxIconDefinition: {
19
84
  base: string[];
20
85
  config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
@@ -44,6 +44,109 @@ var checkboxTypography = compoundMapper({ default: {
44
44
  sizeMobile: "label-1",
45
45
  variant: "default"
46
46
  } });
47
+ var checkboxContentClassName = compoundMapper({ default: "text-text-default-2" });
48
+ var checkboxContentWrapperDefinition = UIOverrides.defineConfig({
49
+ base: ["relative flex"],
50
+ config: {
51
+ variants: {
52
+ variant: { default: "" },
53
+ size: {
54
+ "extra-small": "",
55
+ small: "",
56
+ default: "",
57
+ large: ""
58
+ },
59
+ as: {
60
+ default: "flex-col",
61
+ floating: "flex-col",
62
+ filter: "flex-row flex-wrap items-center gap-2",
63
+ inline: "flex-row flex-wrap items-center gap-2"
64
+ },
65
+ hasInputFrame: {
66
+ true: "gap-2",
67
+ false: ""
68
+ }
69
+ },
70
+ compoundVariants: [
71
+ {
72
+ as: "floating",
73
+ hasInputFrame: true,
74
+ className: ["pb-[calc(var(--spacing-floating-label-input-height-filled)+var(--spacing-floating-label-input-offset-bottom))]", "pt-[calc(var(--spacing-floating-label-input-height-filled)+var(--spacing-floating-label-input-offset-top)+var(--text-label-3--line-height)*var(--text-label-3)+var(--spacing-input-gap-input-text-to-elements))]"]
75
+ },
76
+ {
77
+ as: "floating",
78
+ size: "extra-small",
79
+ hasInputFrame: true,
80
+ className: "px-input-side-xs"
81
+ },
82
+ {
83
+ as: "floating",
84
+ size: "small",
85
+ hasInputFrame: true,
86
+ className: "px-input-side-s"
87
+ },
88
+ {
89
+ as: "floating",
90
+ size: "default",
91
+ hasInputFrame: true,
92
+ className: "px-input-side-m"
93
+ },
94
+ {
95
+ as: "floating",
96
+ size: "large",
97
+ hasInputFrame: true,
98
+ className: "px-input-side-l"
99
+ }
100
+ ],
101
+ defaultVariants: {
102
+ variant: "default",
103
+ as: "default",
104
+ size: "default",
105
+ hasInputFrame: false
106
+ }
107
+ }
108
+ });
109
+ var checkboxGroupLabelDefinition = UIOverrides.defineConfig({
110
+ base: [""],
111
+ config: {
112
+ variants: { as: {
113
+ default: "",
114
+ floating: [
115
+ "pointer-events-none absolute",
116
+ "top-[calc(var(--spacing-floating-label-input-height-filled)+var(--spacing-floating-label-input-offset-top))]",
117
+ "text-text-default-1",
118
+ "font-semibold!",
119
+ "text-label-3!"
120
+ ],
121
+ filter: "",
122
+ inline: ""
123
+ } },
124
+ defaultVariants: { as: "default" }
125
+ }
126
+ });
127
+ var checkboxContentRowDefinition = UIOverrides.defineConfig({
128
+ base: ["flex"],
129
+ config: {
130
+ variants: {
131
+ variant: { default: "" },
132
+ as: {
133
+ default: "flex-col",
134
+ floating: "flex-col",
135
+ filter: "flex-row flex-wrap items-center gap-2",
136
+ inline: "flex-row flex-wrap items-center gap-2"
137
+ },
138
+ hasInputFrame: {
139
+ true: "gap-2",
140
+ false: ""
141
+ }
142
+ },
143
+ defaultVariants: {
144
+ variant: "default",
145
+ as: "default",
146
+ hasInputFrame: false
147
+ }
148
+ }
149
+ });
47
150
  var checkboxIconDefinition = UIOverrides.defineConfig({
48
151
  base: ["absolute hidden size-3"],
49
152
  config: {
@@ -55,4 +158,4 @@ var checkboxIconDefinition = UIOverrides.defineConfig({
55
158
  }
56
159
  });
57
160
  //#endregion
58
- export { checkboxDefinition, checkboxIconDefinition, checkboxIndicatorClass, checkboxTypography };
161
+ export { checkboxContentClassName, checkboxContentRowDefinition, checkboxContentWrapperDefinition, checkboxDefinition, checkboxGroupLabelDefinition, checkboxIconDefinition, checkboxIndicatorClass, checkboxTypography };
@@ -1,26 +1,32 @@
1
1
  import { CalendarDate, DateValue } from '@internationalized/date';
2
- import { Ref } from 'react';
2
+ import { FocusEvent, Ref } from 'react';
3
3
  import { FieldValues } from 'react-hook-form';
4
4
  import { DatePickerStateOptions } from 'react-stately';
5
5
  import { DatePickerInputHandle } from '../shared/DatePickerInput';
6
+ import { DatePickerTodayIcon, DatePickerTodayIconButtonComponent, DatePickerTodayIconButtonSize, DatePickerTodayIconPlacement } from '../shared/datePicker.types';
6
7
  import { FormFieldProps } from '../../FormField/FormField';
7
8
  import { ControlProps } from '../../shared/form.types';
8
9
  import { InputVariantProps } from '../../shared/input.cva';
9
10
  type DatePickerGranularity = "day" | "month" | "year";
10
- interface DatePickerBaseProps extends FormFieldProps, InputVariantProps, Omit<DatePickerStateOptions<CalendarDate>, "granularity" | "shouldCloseOnSelect" | "label"> {
11
+ interface DatePickerBaseProps extends FormFieldProps, InputVariantProps, Omit<DatePickerStateOptions<CalendarDate>, "granularity" | "shouldCloseOnSelect" | "label" | "onBlur"> {
11
12
  ref?: Ref<DatePickerInputHandle & HTMLDivElement>;
12
13
  disableDropdown?: boolean;
13
14
  isClearable?: boolean;
14
15
  className?: string;
15
- todayIcon?: boolean;
16
+ todayIcon?: DatePickerTodayIcon;
17
+ todayIconButtonSize?: DatePickerTodayIconButtonSize;
18
+ todayIconButtonComponent?: DatePickerTodayIconButtonComponent;
19
+ todayIconPlacement?: DatePickerTodayIconPlacement;
16
20
  isDirty?: boolean;
17
21
  disableManualEntry?: boolean;
22
+ autoFixYear?: boolean;
18
23
  placeholder?: string;
19
24
  inputClassName?: string;
25
+ onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
20
26
  shouldUpdateDateOnMonthYearChange?: boolean;
21
27
  granularity?: DatePickerGranularity;
22
- autoFixYear?: boolean;
23
28
  format?: string;
29
+ fireBlurOnChange?: boolean;
24
30
  }
25
31
  export interface DatePickerProps extends Omit<DatePickerBaseProps, "value" | "onChange" | "minValue" | "maxValue"> {
26
32
  value?: string | null;
@@ -28,7 +34,8 @@ export interface DatePickerProps extends Omit<DatePickerBaseProps, "value" | "on
28
34
  fullIso?: boolean;
29
35
  minValue?: DateValue | string;
30
36
  maxValue?: DateValue | string;
37
+ renderStaticInput?: boolean;
31
38
  }
32
39
  export type ControlledDatePickerProps<TFieldValues extends FieldValues> = ControlProps<DatePickerProps, TFieldValues>;
33
- export declare const DatePicker: <TFieldValues extends FieldValues>({ fullIso, granularity, minValue, maxValue, ...props }: ControlledDatePickerProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
40
+ export declare const DatePicker: <TFieldValues extends FieldValues>({ fullIso, granularity, minValue, maxValue, renderStaticInput, ...props }: ControlledDatePickerProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
34
41
  export {};