@povio/ui 2.2.6 → 2.2.7

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 (248) hide show
  1. package/dist/assets/icons/AlignCenter.js +3 -1
  2. package/dist/assets/icons/AlignLeft.js +3 -1
  3. package/dist/assets/icons/AlignLeftRight.js +3 -1
  4. package/dist/assets/icons/AlignRight.js +3 -1
  5. package/dist/assets/icons/ArrowDropDown.js +3 -1
  6. package/dist/assets/icons/ArrowDropUp.js +3 -1
  7. package/dist/assets/icons/ArrowLeft.js +3 -1
  8. package/dist/assets/icons/ArrowRight.js +3 -1
  9. package/dist/assets/icons/Bold.js +3 -1
  10. package/dist/assets/icons/BulletedList.js +3 -1
  11. package/dist/assets/icons/Calendar.js +3 -1
  12. package/dist/assets/icons/Check.js +3 -1
  13. package/dist/assets/icons/CheckCircle.js +3 -1
  14. package/dist/assets/icons/CheckboxCheckmark.js +3 -1
  15. package/dist/assets/icons/CheckboxIndeterminate.js +3 -1
  16. package/dist/assets/icons/ChevronDown.js +3 -1
  17. package/dist/assets/icons/ChevronLeft.js +3 -1
  18. package/dist/assets/icons/ChevronRight.js +3 -1
  19. package/dist/assets/icons/ChevronUp.js +3 -1
  20. package/dist/assets/icons/ChevronsLeft.js +3 -1
  21. package/dist/assets/icons/ChevronsRight.js +3 -1
  22. package/dist/assets/icons/Clock.js +3 -1
  23. package/dist/assets/icons/Close.js +3 -1
  24. package/dist/assets/icons/DateTime.js +3 -1
  25. package/dist/assets/icons/DragIndicator.js +3 -1
  26. package/dist/assets/icons/File.js +3 -1
  27. package/dist/assets/icons/Highlight.js +3 -1
  28. package/dist/assets/icons/HighlightOn.js +3 -1
  29. package/dist/assets/icons/Home.js +3 -1
  30. package/dist/assets/icons/Info.js +3 -1
  31. package/dist/assets/icons/Italic.js +3 -1
  32. package/dist/assets/icons/Link.js +3 -1
  33. package/dist/assets/icons/Menu.js +3 -1
  34. package/dist/assets/icons/NumberedList.js +3 -1
  35. package/dist/assets/icons/PointerHorizontal.js +3 -1
  36. package/dist/assets/icons/PointerVertical.js +3 -1
  37. package/dist/assets/icons/Search.js +3 -1
  38. package/dist/assets/icons/Send.js +3 -1
  39. package/dist/assets/icons/Strikethrough.js +3 -1
  40. package/dist/assets/icons/TextColor.js +3 -1
  41. package/dist/assets/icons/Today.js +3 -1
  42. package/dist/assets/icons/Underlined.js +3 -1
  43. package/dist/assets/icons/Upload.js +3 -1
  44. package/dist/assets/icons/Visibility.js +3 -1
  45. package/dist/assets/icons/VisibilityOff.js +3 -1
  46. package/dist/assets/icons/WarningFilled.js +3 -1
  47. package/dist/assets/locales/en/translation.json.js +1 -0
  48. package/dist/assets/locales/sl/translation.json.js +1 -0
  49. package/dist/components/Breadcrumbs/Breadcrumbs.js +5 -3
  50. package/dist/components/Breadcrumbs/breadcrumbs.cva.js +7 -5
  51. package/dist/components/Menu/Menu.js +3 -1
  52. package/dist/components/Menu/MenuDesktop.js +3 -1
  53. package/dist/components/Menu/MenuItem.js +3 -1
  54. package/dist/components/Menu/MenuMobile.js +3 -1
  55. package/dist/components/Menu/MenuPopover.js +3 -1
  56. package/dist/components/Menu/menu.cva.js +6 -4
  57. package/dist/components/buttons/Button/Button.js +3 -1
  58. package/dist/components/buttons/Button/button.cva.js +7 -5
  59. package/dist/components/buttons/IconButton/IconButton.js +3 -1
  60. package/dist/components/buttons/InlineIconButton/InlineIconButton.js +3 -1
  61. package/dist/components/buttons/PillButton/PillButton.js +3 -1
  62. package/dist/components/buttons/PillButton/pillButton.cva.js +6 -4
  63. package/dist/components/buttons/SplitButton/SplitButton.js +3 -1
  64. package/dist/components/buttons/TextButton/TextButton.js +3 -1
  65. package/dist/components/buttons/ToggleButton/ToggleButton.js +3 -1
  66. package/dist/components/buttons/shared/ButtonContent.js +3 -1
  67. package/dist/components/buttons/shared/buttonContent.cva.js +2 -1
  68. package/dist/components/inputs/Checkbox/Checkbox.js +3 -1
  69. package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +3 -1
  70. package/dist/components/inputs/Checkbox/checkbox.cva.js +6 -4
  71. package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +3 -1
  72. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +9 -7
  73. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +3 -1
  74. package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +3 -1
  75. package/dist/components/inputs/DateTime/shared/Calendar.js +3 -1
  76. package/dist/components/inputs/DateTime/shared/CalendarCell.js +3 -1
  77. package/dist/components/inputs/DateTime/shared/CalendarGrid.js +3 -1
  78. package/dist/components/inputs/DateTime/shared/CalendarHeader.js +3 -1
  79. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +4 -2
  80. package/dist/components/inputs/DateTime/shared/DateField.js +3 -1
  81. package/dist/components/inputs/DateTime/shared/DatePickerInput.js +3 -1
  82. package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +4 -2
  83. package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +3 -1
  84. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +4 -2
  85. package/dist/components/inputs/DateTime/shared/MonthPicker.js +3 -1
  86. package/dist/components/inputs/DateTime/shared/RangeCalendar.js +3 -1
  87. package/dist/components/inputs/DateTime/shared/TimeField.js +3 -1
  88. package/dist/components/inputs/DateTime/shared/TimePickerForm.js +3 -1
  89. package/dist/components/inputs/DateTime/shared/TimePickerInput.js +3 -1
  90. package/dist/components/inputs/DateTime/shared/YearPicker.js +3 -1
  91. package/dist/components/inputs/File/FileUpload.js +6 -4
  92. package/dist/components/inputs/File/FileUploadContainer.js +3 -1
  93. package/dist/components/inputs/File/InputUpload.js +3 -1
  94. package/dist/components/inputs/File/shared/FileCard.js +3 -1
  95. package/dist/components/inputs/File/shared/FileCardList.js +3 -1
  96. package/dist/components/inputs/File/shared/FileUploadContent.js +3 -1
  97. package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +3 -1
  98. package/dist/components/inputs/File/shared/FileUploadContentError.js +4 -2
  99. package/dist/components/inputs/File/shared/FileUploadContentFilled.js +4 -2
  100. package/dist/components/inputs/File/shared/FileUploadContentLoading.js +4 -2
  101. package/dist/components/inputs/File/shared/InputUploadContent.js +4 -2
  102. package/dist/components/inputs/File/shared/InputUploadFilled.js +3 -1
  103. package/dist/components/inputs/File/shared/ProgressBar.js +3 -1
  104. package/dist/components/inputs/File/shared/fileUpload.cva.js +4 -2
  105. package/dist/components/inputs/File/shared/inputUploadButton.cva.js +6 -3
  106. package/dist/components/inputs/FormField/FormField.js +3 -1
  107. package/dist/components/inputs/FormField/FormFieldError.js +3 -1
  108. package/dist/components/inputs/FormField/FormFieldHeader.js +3 -1
  109. package/dist/components/inputs/FormField/FormFieldHeaderClose.js +4 -2
  110. package/dist/components/inputs/FormField/FormFieldHelper.js +3 -1
  111. package/dist/components/inputs/FormField/FormFieldLabel.js +3 -1
  112. package/dist/components/inputs/FormField/formFieldError.cva.js +3 -1
  113. package/dist/components/inputs/FormField/formFieldHelper.cva.js +3 -1
  114. package/dist/components/inputs/Input/NumberInput/NumberInput.js +3 -1
  115. package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +4 -2
  116. package/dist/components/inputs/Input/TextArea/TextArea.js +3 -1
  117. package/dist/components/inputs/Input/TextInput/TextInput.js +3 -1
  118. package/dist/components/inputs/Input/shared/InputContent.js +3 -1
  119. package/dist/components/inputs/Inputs/Form.js +2 -0
  120. package/dist/components/inputs/Inputs/InputItem.js +2 -0
  121. package/dist/components/inputs/Inputs/Inputs.js +2 -0
  122. package/dist/components/inputs/RadioGroup/RadioGroup.js +3 -1
  123. package/dist/components/inputs/RadioGroup/radio.cva.js +5 -3
  124. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +3 -1
  125. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +3 -1
  126. package/dist/components/inputs/Selection/Select/Select.js +3 -1
  127. package/dist/components/inputs/Selection/shared/SelectBase.js +3 -1
  128. package/dist/components/inputs/Selection/shared/SelectDesktop.js +4 -2
  129. package/dist/components/inputs/Selection/shared/SelectInput.js +4 -2
  130. package/dist/components/inputs/Selection/shared/SelectInputTags.js +3 -1
  131. package/dist/components/inputs/Selection/shared/SelectListBox.js +4 -2
  132. package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +5 -3
  133. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +4 -2
  134. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +4 -2
  135. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +4 -2
  136. package/dist/components/inputs/Selection/shared/SelectMobile.js +3 -1
  137. package/dist/components/inputs/Selection/shared/select.context.js +20 -18
  138. package/dist/components/inputs/Selection/shared/useSelectItems.js +6 -4
  139. package/dist/components/inputs/Slider/Slider.js +3 -1
  140. package/dist/components/inputs/TextEditor/TextEditor.js +3 -1
  141. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +3 -1
  142. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +3 -1
  143. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +4 -2
  144. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +4 -2
  145. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +3 -1
  146. package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +3 -1
  147. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +3 -1
  148. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +4 -2
  149. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +4 -2
  150. package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +4 -2
  151. package/dist/components/inputs/TextEditor/textEditor.types.js +3 -1
  152. package/dist/components/inputs/Toggle/Toggle.js +3 -1
  153. package/dist/components/inputs/Toggle/toggle.cva.js +4 -2
  154. package/dist/components/inputs/shared/CheckContent.js +3 -1
  155. package/dist/components/inputs/shared/InputClear.js +5 -3
  156. package/dist/components/inputs/shared/TooltipWrapper.js +3 -1
  157. package/dist/components/inputs/shared/input.cva.js +6 -4
  158. package/dist/components/inputs/shared/label.cva.js +4 -2
  159. package/dist/components/navigation/Accordion/Accordion.js +3 -1
  160. package/dist/components/navigation/Accordion/AccordionItem.js +3 -1
  161. package/dist/components/navigation/Accordion/accordion.cva.js +12 -10
  162. package/dist/components/navigation/Stepper/Stepper.js +3 -1
  163. package/dist/components/navigation/Stepper/StepperItem.js +3 -1
  164. package/dist/components/navigation/Stepper/StepperSeparator.js +3 -1
  165. package/dist/components/navigation/Stepper/stepper.cva.js +9 -7
  166. package/dist/components/outline.clsx.js +4 -2
  167. package/dist/components/overlays/ActionModal/ActionModal.js +3 -1
  168. package/dist/components/overlays/BottomSheet/BottomSheet.js +3 -1
  169. package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +4 -2
  170. package/dist/components/overlays/Drawer/Drawer.js +3 -1
  171. package/dist/components/overlays/Modal/Modal.js +4 -2
  172. package/dist/components/overlays/Modal/modal.cva.js +5 -3
  173. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +3 -1
  174. package/dist/components/overlays/Tooltip/Tooltip.js +7 -2
  175. package/dist/components/overlays/Tooltip/TooltipEllipsis.js +3 -1
  176. package/dist/components/overlays/Tooltip/tooltip.cva.js +6 -4
  177. package/dist/components/segment/Segment.js +3 -1
  178. package/dist/components/segment/SegmentItem.js +3 -1
  179. package/dist/components/segment/segment.cva.js +4 -2
  180. package/dist/components/shared/pagination/Pagination.js +4 -2
  181. package/dist/components/shared/pagination/PaginationList.js +4 -2
  182. package/dist/components/shared/pagination/minWidth.cva.js +3 -1
  183. package/dist/components/shared/popover.cva.js +3 -1
  184. package/dist/components/status/Alert/Alert.js +3 -1
  185. package/dist/components/status/Alert/alert.cva.js +3 -1
  186. package/dist/components/status/Loader/Loader.js +3 -1
  187. package/dist/components/status/Loader/loader.cva.js +4 -2
  188. package/dist/components/status/Toast/Toast.js +15 -6
  189. package/dist/components/status/Toast/toast.cva.js +6 -20
  190. package/dist/components/status/Toast/useToast.js +3 -1
  191. package/dist/components/status/shared/status.cva.js +4 -2
  192. package/dist/components/table/CellText.js +3 -1
  193. package/dist/components/table/ColumnConfig.js +3 -1
  194. package/dist/components/table/HeaderText.js +3 -1
  195. package/dist/components/table/InfiniteTable.js +3 -1
  196. package/dist/components/table/PaginatedTable.js +3 -1
  197. package/dist/components/table/Table.js +4 -2
  198. package/dist/components/table/table.cva.js +8 -6
  199. package/dist/components/text/Link/Link.js +3 -1
  200. package/dist/components/text/Link/link.cva.js +3 -1
  201. package/dist/components/text/Tag/Tag.d.ts +3 -0
  202. package/dist/components/text/Tag/Tag.js +9 -4
  203. package/dist/components/text/Tag/tag.cva.js +3 -1
  204. package/dist/components/text/Typography/Typography.js +3 -1
  205. package/dist/components/text/Typography/typography.cva.js +3 -1
  206. package/dist/config/confirmation.context.js +4 -2
  207. package/dist/config/i18n.js +4 -2
  208. package/dist/config/link.context.js +3 -1
  209. package/dist/config/router.context.js +3 -1
  210. package/dist/config/theme.context.js +8 -6
  211. package/dist/config/uiConfig.context.d.ts +4 -0
  212. package/dist/config/uiConfig.context.js +9 -2
  213. package/dist/config/uiStyle.context.js +3 -1
  214. package/dist/helpers/dynamicColumns.js +4 -2
  215. package/dist/helpers/dynamicInputs.js +5 -3
  216. package/dist/hooks/useAutosave.js +2 -0
  217. package/dist/hooks/useBreakpoint.js +5 -3
  218. package/dist/hooks/useDebounceCallback.js +2 -0
  219. package/dist/hooks/useDeepCompare.js +5 -3
  220. package/dist/hooks/useFilters.js +3 -1
  221. package/dist/hooks/useForm.js +2 -0
  222. package/dist/hooks/useFormAutosave.js +2 -0
  223. package/dist/hooks/useIntersectionObserver.js +3 -1
  224. package/dist/hooks/useLocalStorage.js +3 -1
  225. package/dist/hooks/useLongPressRepeat.js +3 -1
  226. package/dist/hooks/usePagination.js +2 -0
  227. package/dist/hooks/useScrollableListBox.js +2 -0
  228. package/dist/hooks/useSorting.js +2 -0
  229. package/dist/hooks/useStateAndRef.js +3 -1
  230. package/dist/hooks/useTableColumnConfig.js +2 -0
  231. package/dist/hooks/useTableNav.js +124 -20
  232. package/dist/hooks/useTranslationMemo.js +2 -0
  233. package/dist/tw-ui-plugin.js +4 -2
  234. package/dist/utils/array.utils.js +3 -1
  235. package/dist/utils/compoundMapper.js +3 -1
  236. package/dist/utils/date-time.utils.js +3 -1
  237. package/dist/utils/date.utils.js +3 -1
  238. package/dist/utils/dom.utils.js +3 -1
  239. package/dist/utils/file.utils.js +3 -1
  240. package/dist/utils/isEqual.js +3 -1
  241. package/dist/utils/logger.js +3 -1
  242. package/dist/utils/object.utils.js +3 -1
  243. package/dist/utils/queries.utils.js +3 -1
  244. package/dist/utils/rest.utils.js +3 -1
  245. package/dist/utils/routing.utils.js +3 -1
  246. package/dist/utils/string.utils.js +3 -1
  247. package/dist/utils/zod.utils.js +3 -1
  248. package/package.json +2 -2
@@ -1,6 +1,7 @@
1
1
  import { clsx } from "clsx";
2
2
  import { cva } from "class-variance-authority";
3
- const fileUploadDropZoneBase = cva(["relative w-full rounded-file-upload-container-rounding-default"], {
3
+ //#region src/components/inputs/File/shared/fileUpload.cva.ts
4
+ var fileUploadDropZoneBase = cva(["relative w-full rounded-file-upload-container-rounding-default"], {
4
5
  variants: {
5
6
  variant: {
6
7
  vertical: ["flex-col justify-center"],
@@ -35,7 +36,7 @@ const fileUploadDropZoneBase = cva(["relative w-full rounded-file-upload-contain
35
36
  },
36
37
  defaultVariants: { variant: "vertical" }
37
38
  });
38
- const fileUploadDropZone = (props) => {
39
+ var fileUploadDropZone = (props) => {
39
40
  const { className, ...rest } = props;
40
41
  return clsx(fileUploadDropZoneBase(rest), className);
41
42
  };
@@ -46,4 +47,5 @@ cva(["flex gap-3"], {
46
47
  } },
47
48
  defaultVariants: { variant: "vertical" }
48
49
  });
50
+ //#endregion
49
51
  export { fileUploadDropZone };
@@ -1,17 +1,19 @@
1
1
  import { clsx } from "clsx";
2
2
  import { cva } from "class-variance-authority";
3
- const inputUploadButtonBase = cva(["flex w-full items-center justify-between gap-input-gap-input-to-button-gap"], {
3
+ //#region src/components/inputs/File/shared/inputUploadButton.cva.ts
4
+ var inputUploadButtonBase = cva(["flex w-full items-center justify-between gap-input-gap-input-to-button-gap"], {
4
5
  variants: { variant: {
5
6
  default: [],
6
7
  nested: []
7
8
  } },
8
9
  defaultVariants: { variant: "default" }
9
10
  });
10
- const inputUploadButton = (props) => {
11
+ var inputUploadButton = (props) => {
11
12
  const { className, ...rest } = props;
12
13
  return clsx(inputUploadButtonBase(rest), className);
13
14
  };
14
- const inputUploadDropZone = cva([
15
+ var inputUploadDropZone = cva([
16
+ "relative",
15
17
  "min-w-0 flex-1",
16
18
  "flex items-center",
17
19
  "group-invalid/input-upload:border group-invalid/input-upload:border-input-outlined-outline-error",
@@ -24,4 +26,5 @@ const inputUploadDropZone = cva([
24
26
  } },
25
27
  defaultVariants: { variant: "default" }
26
28
  });
29
+ //#endregion
27
30
  export { inputUploadButton, inputUploadDropZone };
@@ -2,7 +2,8 @@ import { FormFieldError } from "./FormFieldError.js";
2
2
  import { FormFieldHeader } from "./FormFieldHeader.js";
3
3
  import { FormFieldHelper } from "./FormFieldHelper.js";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
- const FormField = ({ ref, as, label, tooltipText, helperText, isRequired, rightContent, isDisabled, error, hideLabel, headerClassName, errorClassName, children, className, labelProps, isHeaderHidden, tabIndex, onMouseEnter, onFocusCapture }) => {
5
+ //#region src/components/inputs/FormField/FormField.tsx
6
+ var FormField = ({ ref, as, label, tooltipText, helperText, isRequired, rightContent, isDisabled, error, hideLabel, headerClassName, errorClassName, children, className, labelProps, isHeaderHidden, tabIndex, onMouseEnter, onFocusCapture }) => {
6
7
  const headerProps = {
7
8
  label,
8
9
  tooltipText,
@@ -40,4 +41,5 @@ const FormField = ({ ref, as, label, tooltipText, helperText, isRequired, rightC
40
41
  ]
41
42
  });
42
43
  };
44
+ //#endregion
43
45
  export { FormField };
@@ -2,10 +2,12 @@ import { UIStyle } from "../../../config/uiStyle.context.js";
2
2
  import { formFieldError } from "./formFieldError.cva.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { clsx } from "clsx";
5
- const FormFieldError = ({ error, isDisabled, isHidden, className }) => {
5
+ //#region src/components/inputs/FormField/FormFieldError.tsx
6
+ var FormFieldError = ({ error, isDisabled, isHidden, className }) => {
6
7
  return /* @__PURE__ */ jsx("p", {
7
8
  className: clsx(UIStyle.useCva("formField.errorLabelCva", formFieldError)({ visible: !!error && !isDisabled && !isHidden }), className),
8
9
  children: error
9
10
  });
10
11
  };
12
+ //#endregion
11
13
  export { FormFieldError };
@@ -5,7 +5,8 @@ import { FormFieldLabel } from "./FormFieldLabel.js";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { clsx } from "clsx";
7
7
  import { Focusable } from "react-aria-components";
8
- const FormFieldHeader = ({ label, tooltipText, helperText, isRequired, rightContent, isHeaderHidden, isDisabled, className, labelProps }) => {
8
+ //#region src/components/inputs/FormField/FormFieldHeader.tsx
9
+ var FormFieldHeader = ({ label, tooltipText, helperText, isRequired, rightContent, isHeaderHidden, isDisabled, className, labelProps }) => {
9
10
  return /* @__PURE__ */ jsxs("div", {
10
11
  className: clsx(isHeaderHidden ? "sr-only" : "mb-1", className),
11
12
  children: [/* @__PURE__ */ jsxs("div", {
@@ -33,4 +34,5 @@ const FormFieldHeader = ({ label, tooltipText, helperText, isRequired, rightCont
33
34
  })]
34
35
  });
35
36
  };
37
+ //#endregion
36
38
  export { FormFieldHeader };
@@ -1,9 +1,10 @@
1
1
  import { CloseIcon } from "../../../assets/icons/Close.js";
2
- import { ns } from "../../../config/i18n.js";
2
+ import "../../../config/i18n.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { Button } from "react-aria-components";
5
5
  import { useTranslation } from "react-i18next";
6
- const FormFieldHeaderClose = ({ onClose }) => {
6
+ //#region src/components/inputs/FormField/FormFieldHeaderClose.tsx
7
+ var FormFieldHeaderClose = ({ onClose }) => {
7
8
  const { t } = useTranslation("ui");
8
9
  return /* @__PURE__ */ jsx(Button, {
9
10
  onPress: onClose,
@@ -12,4 +13,5 @@ const FormFieldHeaderClose = ({ onClose }) => {
12
13
  children: /* @__PURE__ */ jsx(CloseIcon, { className: "size-6 text-interactive-text-secondary-idle" })
13
14
  });
14
15
  };
16
+ //#endregion
15
17
  export { FormFieldHeaderClose };
@@ -2,11 +2,13 @@ import { UIStyle } from "../../../config/uiStyle.context.js";
2
2
  import { formFieldHelper } from "./formFieldHelper.cva.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { clsx } from "clsx";
5
- const FormFieldHelper = ({ helperText, isDisabled, isHidden, hasError, className }) => {
5
+ //#region src/components/inputs/FormField/FormFieldHelper.tsx
6
+ var FormFieldHelper = ({ helperText, isDisabled, isHidden, hasError, className }) => {
6
7
  return /* @__PURE__ */ jsx("p", {
7
8
  className: clsx(UIStyle.useCva("formField.helperLabelCva", formFieldHelper)({ visible: !!helperText && !isDisabled && !isHidden && !hasError }), className),
8
9
  slot: "description",
9
10
  children: helperText
10
11
  });
11
12
  };
13
+ //#endregion
12
14
  export { FormFieldHelper };
@@ -4,7 +4,8 @@ import { labelBase, labelTypography } from "../shared/label.cva.js";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import { clsx } from "clsx";
6
6
  import { Label } from "react-aria-components";
7
- const FormFieldLabel = ({ ref, as, label, isRequired, isDisabled, labelProps, className }) => {
7
+ //#region src/components/inputs/FormField/FormFieldLabel.tsx
8
+ var FormFieldLabel = ({ ref, as, label, isRequired, isDisabled, labelProps, className }) => {
8
9
  const typographyCva = UIStyle.useCva("typography.cva", typography);
9
10
  const labelTypographyMap = UIStyle.useMapper("label.typography", labelTypography);
10
11
  const labelBaseCva = UIStyle.useCva("label.cva", labelBase);
@@ -23,4 +24,5 @@ const FormFieldLabel = ({ ref, as, label, isRequired, isDisabled, labelProps, cl
23
24
  })]
24
25
  });
25
26
  };
27
+ //#endregion
26
28
  export { FormFieldLabel };
@@ -1,9 +1,11 @@
1
1
  import { cva } from "class-variance-authority";
2
- const formFieldError = cva("text-label-3 text-text-error-1", {
2
+ //#region src/components/inputs/FormField/formFieldError.cva.ts
3
+ var formFieldError = cva("text-label-3 text-text-error-1", {
3
4
  variants: { visible: {
4
5
  true: "mt-1-5",
5
6
  false: "sr-only"
6
7
  } },
7
8
  defaultVariants: { visible: false }
8
9
  });
10
+ //#endregion
9
11
  export { formFieldError };
@@ -1,9 +1,11 @@
1
1
  import { cva } from "class-variance-authority";
2
- const formFieldHelper = cva("text-label-3 text-text-default-2", {
2
+ //#region src/components/inputs/FormField/formFieldHelper.cva.ts
3
+ var formFieldHelper = cva("text-label-3 text-text-default-2", {
3
4
  variants: { visible: {
4
5
  true: "mt-1-5",
5
6
  false: "sr-only"
6
7
  } },
7
8
  defaultVariants: { visible: false }
8
9
  });
10
+ //#endregion
9
11
  export { formFieldHelper };
@@ -12,6 +12,7 @@ import { useFocusVisible, useNumberField } from "react-aria";
12
12
  import { mergeRefs } from "@react-aria/utils";
13
13
  import { Controller } from "react-hook-form";
14
14
  import { useNumberFieldState } from "react-stately";
15
+ //#region src/components/inputs/Input/NumberInput/NumberInput.tsx
15
16
  var NumberInputBase = (props) => {
16
17
  const ui = UIConfig.useConfig();
17
18
  const inputBaseCva = UIStyle.useCva("input.baseCva", inputBase);
@@ -112,7 +113,7 @@ var NumberInputBase = (props) => {
112
113
  })
113
114
  });
114
115
  };
115
- const NumberInput = (props) => {
116
+ var NumberInput = (props) => {
116
117
  if ("formControl" in props && props.formControl) {
117
118
  const { formControl, ref, ...innerProps } = props;
118
119
  return /* @__PURE__ */ jsx(Controller, {
@@ -132,4 +133,5 @@ const NumberInput = (props) => {
132
133
  }
133
134
  return /* @__PURE__ */ jsx(NumberInputBase, { ...props }, props.value === null || props.value === void 0 ? "empty" : "filled");
134
135
  };
136
+ //#endregion
135
137
  export { NumberInput };
@@ -1,11 +1,12 @@
1
1
  import { VisibilityIcon } from "../../../../assets/icons/Visibility.js";
2
2
  import { VisibilityOffIcon } from "../../../../assets/icons/VisibilityOff.js";
3
- import { ns } from "../../../../config/i18n.js";
3
+ import "../../../../config/i18n.js";
4
4
  import { TextInput } from "../TextInput/TextInput.js";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  import { useState } from "react";
7
7
  import { useTranslation } from "react-i18next";
8
- const PasswordInput = (props) => {
8
+ //#region src/components/inputs/Input/PasswordInput/PasswordInput.tsx
9
+ var PasswordInput = (props) => {
9
10
  const { t } = useTranslation("ui");
10
11
  const [isRevealed, setIsRevealed] = useState(false);
11
12
  return /* @__PURE__ */ jsx(TextInput, {
@@ -18,4 +19,5 @@ const PasswordInput = (props) => {
18
19
  }
19
20
  });
20
21
  };
22
+ //#endregion
21
23
  export { PasswordInput };
@@ -12,6 +12,7 @@ import { TextArea } from "react-aria-components";
12
12
  import { useTextField } from "react-aria";
13
13
  import { mergeRefs } from "@react-aria/utils";
14
14
  import { Controller } from "react-hook-form";
15
+ //#region src/components/inputs/Input/TextArea/TextArea.tsx
15
16
  var TextAreaBase = (props) => {
16
17
  const ui = UIConfig.useConfig();
17
18
  const inputCva = useInputCva();
@@ -105,7 +106,7 @@ var TextAreaBase = (props) => {
105
106
  })
106
107
  });
107
108
  };
108
- const TextArea$1 = (props) => {
109
+ var TextArea$1 = (props) => {
109
110
  if ("formControl" in props && props.formControl) {
110
111
  const { formControl, ref, ...innerProps } = props;
111
112
  return /* @__PURE__ */ jsx(Controller, {
@@ -125,4 +126,5 @@ const TextArea$1 = (props) => {
125
126
  }
126
127
  return /* @__PURE__ */ jsx(TextAreaBase, { ...props });
127
128
  };
129
+ //#endregion
128
130
  export { TextArea$1 as TextArea };
@@ -11,6 +11,7 @@ import { Input } from "react-aria-components";
11
11
  import { useFocusVisible, useTextField } from "react-aria";
12
12
  import { mergeRefs } from "@react-aria/utils";
13
13
  import { Controller } from "react-hook-form";
14
+ //#region src/components/inputs/Input/TextInput/TextInput.tsx
14
15
  var TextInputBase = (props) => {
15
16
  const ui = UIConfig.useConfig();
16
17
  const inputBaseCva = UIStyle.useCva("input.baseCva", inputBase);
@@ -105,7 +106,7 @@ var TextInputBase = (props) => {
105
106
  })
106
107
  });
107
108
  };
108
- const TextInput = (props) => {
109
+ var TextInput = (props) => {
109
110
  if ("formControl" in props && props.formControl) {
110
111
  const { formControl, ref, ...innerProps } = props;
111
112
  return /* @__PURE__ */ jsx(Controller, {
@@ -125,4 +126,5 @@ const TextInput = (props) => {
125
126
  }
126
127
  return /* @__PURE__ */ jsx(TextInputBase, { ...props });
127
128
  };
129
+ //#endregion
128
130
  export { TextInput };
@@ -8,7 +8,8 @@ import { inputSize } from "../../shared/input.cva.js";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
9
  import { clsx } from "clsx";
10
10
  import { isValidElement } from "react";
11
- const InputContent = ({ leadingIcon: LeadingIcon, trailingIcon: TrailingIcon, unit, isLoading, isDisabled, action, isClearable, value, onChange, onBlur, children, headerProps, as, size }) => {
11
+ //#region src/components/inputs/Input/shared/InputContent.tsx
12
+ var InputContent = ({ leadingIcon: LeadingIcon, trailingIcon: TrailingIcon, unit, isLoading, isDisabled, action, isClearable, value, onChange, onBlur, children, headerProps, as, size }) => {
12
13
  const typographyCva = UIStyle.useCva("typography.cva", typography);
13
14
  const inputSizeCva = UIStyle.useCva("input.sizeCva", inputSize);
14
15
  const isLeadingIconElement = LeadingIcon && isValidElement(LeadingIcon);
@@ -72,4 +73,5 @@ const InputContent = ({ leadingIcon: LeadingIcon, trailingIcon: TrailingIcon, un
72
73
  })]
73
74
  });
74
75
  };
76
+ //#endregion
75
77
  export { InputContent };
@@ -5,6 +5,7 @@ import { getDefaultInputComponentType } from "../../../helpers/dynamicInputs.js"
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  import { useMemo } from "react";
7
7
  import { z } from "zod";
8
+ //#region src/components/inputs/Inputs/Form.tsx
8
9
  var createFieldComponent = (field, schemaKeyType, form) => {
9
10
  return function FieldComponent({ inputType, label, placeholder, ...inputProps }) {
10
11
  return /* @__PURE__ */ jsx(InputItem, {
@@ -39,4 +40,5 @@ function Form({ form, schema, onSubmit, onError, className, children }) {
39
40
  children: children(components)
40
41
  });
41
42
  }
43
+ //#endregion
42
44
  export { Form };
@@ -14,6 +14,7 @@ import { Slider } from "../Slider/Slider.js";
14
14
  import { Toggle } from "../Toggle/Toggle.js";
15
15
  import { Segment } from "../../segment/Segment.js";
16
16
  import { jsx } from "react/jsx-runtime";
17
+ //#region src/components/inputs/Inputs/InputItem.tsx
17
18
  var componentRegistry = {
18
19
  toggle: Toggle,
19
20
  checkbox: Checkbox,
@@ -51,4 +52,5 @@ function InputItem({ form, inputDef }) {
51
52
  });
52
53
  return inputWrapper ? inputWrapper(inputComponent, label) : inputComponent;
53
54
  }
55
+ //#endregion
54
56
  export { InputItem };
@@ -1,5 +1,6 @@
1
1
  import { InputItem } from "./InputItem.js";
2
2
  import { jsx } from "react/jsx-runtime";
3
+ //#region src/components/inputs/Inputs/Inputs.tsx
3
4
  function Inputs({ form, inputDefs, children }) {
4
5
  if (!children) return inputDefs.map((inputDef) => /* @__PURE__ */ jsx(InputItem, {
5
6
  form,
@@ -12,4 +13,5 @@ function Inputs({ form, inputDefs, children }) {
12
13
  });
13
14
  return children(childrenParams);
14
15
  }
16
+ //#endregion
15
17
  export { Inputs };
@@ -8,6 +8,7 @@ import { clsx } from "clsx";
8
8
  import { Radio, RadioGroup } from "react-aria-components";
9
9
  import { mergeRefs } from "@react-aria/utils";
10
10
  import { Controller } from "react-hook-form";
11
+ //#region src/components/inputs/RadioGroup/RadioGroup.tsx
11
12
  var RadioGroupBase = (props) => {
12
13
  const ui = UIConfig.useConfig();
13
14
  const radioCva = UIStyle.useCva("radio.cva", radio);
@@ -56,7 +57,7 @@ var RadioGroupBase = (props) => {
56
57
  })
57
58
  });
58
59
  };
59
- const RadioGroup$1 = (props) => {
60
+ var RadioGroup$1 = (props) => {
60
61
  if ("formControl" in props && props.formControl) {
61
62
  const { formControl, ref, ...innerProps } = props;
62
63
  return /* @__PURE__ */ jsx(Controller, {
@@ -77,4 +78,5 @@ const RadioGroup$1 = (props) => {
77
78
  }
78
79
  return /* @__PURE__ */ jsx(RadioGroupBase, { ...props });
79
80
  };
81
+ //#endregion
80
82
  export { RadioGroup$1 as RadioGroup };
@@ -1,7 +1,8 @@
1
1
  import { uiGroupOutlineClass } from "../../outline.clsx.js";
2
2
  import { compoundMapper } from "../../../utils/compoundMapper.js";
3
3
  import { cva } from "class-variance-authority";
4
- const radio = cva([
4
+ //#region src/components/inputs/RadioGroup/radio.cva.ts
5
+ var radio = cva([
5
6
  "flex items-center justify-center border-2",
6
7
  "relative size-3-5 rounded-full p-1-5",
7
8
  "before:absolute before:hidden before:size-1 before:rounded-full",
@@ -24,10 +25,11 @@ const radio = cva([
24
25
  ] } },
25
26
  defaultVariants: { variant: "default" }
26
27
  });
27
- const radioIndicatorClass = "group flex items-center gap-2";
28
- const radioTypography = compoundMapper({ default: {
28
+ var radioIndicatorClass = "group flex items-center gap-2";
29
+ var radioTypography = compoundMapper({ default: {
29
30
  size: "label-1",
30
31
  sizeMobile: "label-1",
31
32
  variant: "default"
32
33
  } });
34
+ //#endregion
33
35
  export { radio, radioIndicatorClass, radioTypography };
@@ -2,7 +2,8 @@ import { SelectBase } from "../shared/SelectBase.js";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { mergeRefs } from "@react-aria/utils";
4
4
  import { Controller } from "react-hook-form";
5
- const Autocomplete = (props) => {
5
+ //#region src/components/inputs/Selection/Autocomplete/Autocomplete.tsx
6
+ var Autocomplete = (props) => {
6
7
  if ("formControl" in props && props.formControl) {
7
8
  const { formControl, ref, ...innerProps } = props;
8
9
  return /* @__PURE__ */ jsx(Controller, {
@@ -25,4 +26,5 @@ const Autocomplete = (props) => {
25
26
  isSearchable: true
26
27
  });
27
28
  };
29
+ //#endregion
28
30
  export { Autocomplete };
@@ -1,7 +1,8 @@
1
1
  import { Autocomplete } from "./Autocomplete.js";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { useState } from "react";
4
- const QueryAutocomplete = ({ query, queryParams, queryOptions, ...props }) => {
4
+ //#region src/components/inputs/Selection/Autocomplete/QueryAutocomplete.tsx
5
+ var QueryAutocomplete = ({ query, queryParams, queryOptions, ...props }) => {
5
6
  const [search, setSearch] = useState("");
6
7
  const { data: items, isLoading } = query({
7
8
  search,
@@ -15,4 +16,5 @@ const QueryAutocomplete = ({ query, queryParams, queryOptions, ...props }) => {
15
16
  isLoading
16
17
  });
17
18
  };
19
+ //#endregion
18
20
  export { QueryAutocomplete };
@@ -2,7 +2,8 @@ import { SelectBase } from "../shared/SelectBase.js";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { mergeRefs } from "@react-aria/utils";
4
4
  import { Controller } from "react-hook-form";
5
- const Select = (props) => {
5
+ //#region src/components/inputs/Selection/Select/Select.tsx
6
+ var Select = (props) => {
6
7
  if ("formControl" in props && props.formControl) {
7
8
  const { formControl, ref, ...innerProps } = props;
8
9
  return /* @__PURE__ */ jsx(Controller, {
@@ -21,4 +22,5 @@ const Select = (props) => {
21
22
  }
22
23
  return /* @__PURE__ */ jsx(SelectBase, { ...props });
23
24
  };
25
+ //#endregion
24
26
  export { Select };
@@ -4,7 +4,8 @@ import { SelectContext } from "./select.context.js";
4
4
  import { SelectDesktop } from "./SelectDesktop.js";
5
5
  import { SelectMobile } from "./SelectMobile.js";
6
6
  import { jsx } from "react/jsx-runtime";
7
- const SelectBase = (dProps) => {
7
+ //#region src/components/inputs/Selection/shared/SelectBase.tsx
8
+ var SelectBase = (dProps) => {
8
9
  const ui = UIConfig.useConfig();
9
10
  const props = {
10
11
  ...dProps,
@@ -26,4 +27,5 @@ const SelectBase = (dProps) => {
26
27
  children: isDesktop ? /* @__PURE__ */ jsx(SelectDesktop, { ...props }) : /* @__PURE__ */ jsx(SelectMobile, { ...props })
27
28
  });
28
29
  };
30
+ //#endregion
29
31
  export { SelectBase };
@@ -2,7 +2,7 @@ import { UIStyle } from "../../../../config/uiStyle.context.js";
2
2
  import { popover } from "../../../shared/popover.cva.js";
3
3
  import { FormField } from "../../FormField/FormField.js";
4
4
  import { TooltipWrapper } from "../../shared/TooltipWrapper.js";
5
- import { SelectAllItemId } from "./useSelectItems.js";
5
+ import "./useSelectItems.js";
6
6
  import { SelectContext } from "./select.context.js";
7
7
  import { SelectInput } from "./SelectInput.js";
8
8
  import { SelectListBox } from "./SelectListBox.js";
@@ -12,7 +12,8 @@ import { Fragment as Fragment$1, useLayoutEffect, useMemo, useRef, useState } fr
12
12
  import { ComboBox, DialogTrigger, Popover } from "react-aria-components";
13
13
  import { useLabel, usePreventScroll } from "react-aria";
14
14
  import { mergeRefs } from "@react-aria/utils";
15
- const SelectDesktop = ({ ref, error, ignoreTriggerWidth, showSelectionContent, inputClassName, containerClassName, customTrigger, onBlur, ...props }) => {
15
+ //#region src/components/inputs/Selection/shared/SelectDesktop.tsx
16
+ var SelectDesktop = ({ ref, error, ignoreTriggerWidth, showSelectionContent, inputClassName, containerClassName, customTrigger, onBlur, ...props }) => {
16
17
  const { label, tooltipText, helperText, isRequired, rightContent, isHeaderHidden, headerClassName, errorClassName, placeholder, variant, isDisabled, className, hideLabel, hideDropdownIcon, isSearchable, isClearable, isLoading, as, size, collapseAfter, selectedTagsType } = props;
17
18
  const popoverCva = UIStyle.useCva("popover.cva", popover);
18
19
  const formFieldProps = {
@@ -159,4 +160,5 @@ const SelectDesktop = ({ ref, error, ignoreTriggerWidth, showSelectionContent, i
159
160
  })
160
161
  });
161
162
  };
163
+ //#endregion
162
164
  export { SelectDesktop };
@@ -1,7 +1,7 @@
1
1
  import { ArrowDropDownIcon } from "../../../../assets/icons/ArrowDropDown.js";
2
2
  import { UIStyle } from "../../../../config/uiStyle.context.js";
3
3
  import { Typography } from "../../../text/Typography/Typography.js";
4
- import { ns } from "../../../../config/i18n.js";
4
+ import "../../../../config/i18n.js";
5
5
  import { FormFieldLabel } from "../../FormField/FormFieldLabel.js";
6
6
  import { InputClear } from "../../shared/InputClear.js";
7
7
  import { inputBase, inputSize } from "../../shared/input.cva.js";
@@ -13,7 +13,8 @@ import { use, useMemo, useRef, useState } from "react";
13
13
  import { Button, ComboBoxStateContext, Input } from "react-aria-components";
14
14
  import { useFocusVisible, useFocusWithin, useHover } from "react-aria";
15
15
  import { useTranslation } from "react-i18next";
16
- const SelectInput = ({ ref, placeholder, variant, as, size, isDisabled, isInvalid, className, hideDropdownIcon, isSearchable, isClearable, showSelectionContent, inputClassName, fieldProps, headerProps, selectedTagsType, collapseAfter, onCloseComboBox, onBlur, ...props }) => {
16
+ //#region src/components/inputs/Selection/shared/SelectInput.tsx
17
+ var SelectInput = ({ ref, placeholder, variant, as, size, isDisabled, isInvalid, className, hideDropdownIcon, isSearchable, isClearable, showSelectionContent, inputClassName, fieldProps, headerProps, selectedTagsType, collapseAfter, onCloseComboBox, onBlur, ...props }) => {
17
18
  const inputSizeCva = UIStyle.useCva("input.sizeCva", inputSize);
18
19
  const inputBaseCva = UIStyle.useCva("input.baseCva", inputBase);
19
20
  const { t } = useTranslation("ui");
@@ -143,4 +144,5 @@ const SelectInput = ({ ref, placeholder, variant, as, size, isDisabled, isInvali
143
144
  ]
144
145
  });
145
146
  };
147
+ //#endregion
146
148
  export { SelectInput };
@@ -1,7 +1,8 @@
1
1
  import { Tag } from "../../../text/Tag/Tag.js";
2
2
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useMemo } from "react";
4
- const SelectInputTags = ({ selectedItems, isDisabled, selectedTagsType, collapseAfter, onRemove }) => {
4
+ //#region src/components/inputs/Selection/shared/SelectInputTags.tsx
5
+ var SelectInputTags = ({ selectedItems, isDisabled, selectedTagsType, collapseAfter, onRemove }) => {
5
6
  const { displayedItems, remainingCount } = useMemo(() => {
6
7
  if (!collapseAfter || selectedItems.length <= collapseAfter) return {
7
8
  displayedItems: selectedItems,
@@ -26,4 +27,5 @@ const SelectInputTags = ({ selectedItems, isDisabled, selectedTagsType, collapse
26
27
  }, "remaining-count")] });
27
28
  return /* @__PURE__ */ jsx("p", { children: selectedItems.map((item) => item.label).join(", ") });
28
29
  };
30
+ //#endregion
29
31
  export { SelectInputTags };
@@ -1,4 +1,4 @@
1
- import { SelectAllItemId } from "./useSelectItems.js";
1
+ import "./useSelectItems.js";
2
2
  import { SelectContext } from "./select.context.js";
3
3
  import { SelectListBoxItem } from "./SelectListBoxItem.js";
4
4
  import { SelectListBoxItemSelectAll } from "./SelectListBoxItemSelectAll.js";
@@ -6,7 +6,8 @@ import { SelectListBoxLoadingItem } from "./SelectListBoxLoadingItem.js";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  import { clsx } from "clsx";
8
8
  import { ListBox, ListLayout, Virtualizer } from "react-aria-components";
9
- const SelectListBox = ({ label, selectionMode, isSearchable, isScrollable = true, virtualizerOptions, newItemRender, onLoadMore, className, onClose, ...props }) => {
9
+ //#region src/components/inputs/Selection/shared/SelectListBox.tsx
10
+ var SelectListBox = ({ label, selectionMode, isSearchable, isScrollable = true, virtualizerOptions, newItemRender, onLoadMore, className, onClose, ...props }) => {
10
11
  const { fieldState, onChange, listItems, selectableListItems, selectedIds, isMultiple, onClear, onSelectAll } = SelectContext.useSelect();
11
12
  const onSelectionChange = (value) => {
12
13
  const ids = Array.from(value);
@@ -70,4 +71,5 @@ const SelectListBox = ({ label, selectionMode, isSearchable, isScrollable = true
70
71
  children: renderItem
71
72
  });
72
73
  };
74
+ //#endregion
73
75
  export { SelectListBox };
@@ -1,4 +1,4 @@
1
- import { ns } from "../../../../config/i18n.js";
1
+ import "../../../../config/i18n.js";
2
2
  import { CheckboxCheckmark } from "../../Checkbox/CheckboxCheckmark.js";
3
3
  import { SelectContext } from "./select.context.js";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -6,7 +6,8 @@ import { clsx } from "clsx";
6
6
  import { useMemo, useRef } from "react";
7
7
  import { ListBoxItem } from "react-aria-components";
8
8
  import { useTranslation } from "react-i18next";
9
- const SelectListBoxItem = ({ isSearchable, isNewItem, newItemRender, id, label, content, isDisabled }) => {
9
+ //#region src/components/inputs/Selection/shared/SelectListBoxItem.tsx
10
+ var SelectListBoxItem = ({ isSearchable, isNewItem, newItemRender, id, label, content, isDisabled }) => {
10
11
  const ref = useRef(null);
11
12
  const { t } = useTranslation("ui");
12
13
  const { selectedIds, isMultiple } = SelectContext.useSelect();
@@ -44,5 +45,6 @@ const SelectListBoxItem = ({ isSearchable, isNewItem, newItemRender, id, label,
44
45
  ]
45
46
  });
46
47
  };
47
- const selectListBoxItemClass = clsx("group flex cursor-pointer items-center gap-2 px-list-side-item-left py-list-height-item", "border-b border-b-elevation-outline-default-1 outline-none", "font-labels-default text-interactive-text-secondary-idle text-label-2", "hover:text-interactive-text-secondary-hover", "focus-visible:bg-interactive-contained-primary-focus focus-visible:text-interactive-text-secondary-idle-inverted", "disabled:cursor-default disabled:text-interactive-text-secondary-disabled");
48
+ var selectListBoxItemClass = clsx("group flex cursor-pointer items-center gap-2 px-list-side-item-left py-list-height-item", "border-b border-b-elevation-outline-default-1 outline-none", "font-labels-default text-interactive-text-secondary-idle text-label-2", "hover:text-interactive-text-secondary-hover", "focus-visible:bg-interactive-contained-primary-focus focus-visible:text-interactive-text-secondary-idle-inverted", "disabled:cursor-default disabled:text-interactive-text-secondary-disabled");
49
+ //#endregion
48
50
  export { SelectListBoxItem, selectListBoxItemClass };
@@ -1,4 +1,4 @@
1
- import { ns } from "../../../../config/i18n.js";
1
+ import "../../../../config/i18n.js";
2
2
  import { CheckboxCheckmark } from "../../Checkbox/CheckboxCheckmark.js";
3
3
  import { SelectContext } from "./select.context.js";
4
4
  import { selectListBoxItemClass } from "./SelectListBoxItem.js";
@@ -6,7 +6,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { useRef } from "react";
7
7
  import { ListBoxItem } from "react-aria-components";
8
8
  import { useTranslation } from "react-i18next";
9
- const SelectListBoxItemSelectAll = ({ id, label, isDisabled }) => {
9
+ //#region src/components/inputs/Selection/shared/SelectListBoxItemSelectAll.tsx
10
+ var SelectListBoxItemSelectAll = ({ id, label, isDisabled }) => {
10
11
  const ref = useRef(null);
11
12
  const { t } = useTranslation("ui");
12
13
  const { selectableListItems, selectedIds } = SelectContext.useSelect();
@@ -28,4 +29,5 @@ const SelectListBoxItemSelectAll = ({ id, label, isDisabled }) => {
28
29
  }), t(($) => $.ui.select.allOption)]
29
30
  });
30
31
  };
32
+ //#endregion
31
33
  export { SelectListBoxItemSelectAll };
@@ -1,5 +1,5 @@
1
1
  import { Loader } from "../../../status/Loader/Loader.js";
2
- import { ns } from "../../../../config/i18n.js";
2
+ import "../../../../config/i18n.js";
3
3
  import { SelectContext } from "./select.context.js";
4
4
  import { selectListBoxItemClass } from "./SelectListBoxItem.js";
5
5
  import { useIntersectionObserver } from "../../../../hooks/useIntersectionObserver.js";
@@ -7,7 +7,8 @@ import { jsx } from "react/jsx-runtime";
7
7
  import { useCallback } from "react";
8
8
  import { ListBoxItem } from "react-aria-components";
9
9
  import { useTranslation } from "react-i18next";
10
- const SelectListBoxLoadingItem = ({ id, label, onLoadMore }) => {
10
+ //#region src/components/inputs/Selection/shared/SelectListBoxLoadingItem.tsx
11
+ var SelectListBoxLoadingItem = ({ id, label, onLoadMore }) => {
11
12
  const { t } = useTranslation("ui");
12
13
  const { isDebouncing, isLoading, hasLoadMore } = SelectContext.useSelect();
13
14
  const { ref } = useIntersectionObserver({
@@ -33,4 +34,5 @@ const SelectListBoxLoadingItem = ({ id, label, onLoadMore }) => {
33
34
  })
34
35
  });
35
36
  };
37
+ //#endregion
36
38
  export { SelectListBoxLoadingItem };
@@ -1,10 +1,11 @@
1
- import { ns } from "../../../../config/i18n.js";
1
+ import "../../../../config/i18n.js";
2
2
  import { TextButton } from "../../../buttons/TextButton/TextButton.js";
3
3
  import { SelectContext } from "./select.context.js";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import { clsx } from "clsx";
6
6
  import { useTranslation } from "react-i18next";
7
- const SelectListBoxSelectionBar = ({ className }) => {
7
+ //#region src/components/inputs/Selection/shared/SelectListBoxSelectionBar.tsx
8
+ var SelectListBoxSelectionBar = ({ className }) => {
8
9
  const { t } = useTranslation("ui");
9
10
  const { onClear, onSelectAll } = SelectContext.useSelect();
10
11
  return /* @__PURE__ */ jsxs("div", {
@@ -22,4 +23,5 @@ const SelectListBoxSelectionBar = ({ className }) => {
22
23
  })]
23
24
  });
24
25
  };
26
+ //#endregion
25
27
  export { SelectListBoxSelectionBar };