@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
@@ -12,7 +12,8 @@ import { clsx } from "clsx";
12
12
  import { useRef } from "react";
13
13
  import { DialogTrigger } from "react-aria-components";
14
14
  import { useLabel } from "react-aria";
15
- const SelectMobile = ({ ref, error, showSelectionContent, inputClassName, containerClassName, customTrigger, onBlur, ...props }) => {
15
+ //#region src/components/inputs/Selection/shared/SelectMobile.tsx
16
+ var SelectMobile = ({ ref, error, showSelectionContent, inputClassName, containerClassName, customTrigger, onBlur, ...props }) => {
16
17
  const { label, tooltipText, helperText, isRequired, rightContent, isHeaderHidden, headerClassName, errorClassName, placeholder, variant, isDisabled, className, hideLabel, hideDropdownIcon, hideSearchIcon, isSearchable, isClearable, as, collapseAfter, selectedTagsType } = props;
17
18
  const formFieldProps = {
18
19
  error,
@@ -112,4 +113,5 @@ const SelectMobile = ({ ref, error, showSelectionContent, inputClassName, contai
112
113
  })
113
114
  });
114
115
  };
116
+ //#endregion
115
117
  export { SelectMobile };
@@ -1,8 +1,9 @@
1
- import { NewItemId, useSelectItems } from "./useSelectItems.js";
1
+ import { useSelectItems } from "./useSelectItems.js";
2
2
  import { useDebounceCallback } from "../../../../hooks/useDebounceCallback.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { createContext, use, useCallback, useEffect, useMemo, useRef, useState } from "react";
5
- let SelectContext;
5
+ //#region src/components/inputs/Selection/shared/select.context.tsx
6
+ var SelectContext;
6
7
  (function(_SelectContext) {
7
8
  const Context = createContext({});
8
9
  const defaultMapInitialToSelectItem = (item) => ({
@@ -45,10 +46,10 @@ let SelectContext;
45
46
  });
46
47
  const selectedItems = useMemo(() => allItems.filter(({ id }) => Array.isArray(fieldState.value) ? fieldState.value.includes(id) : id === fieldState.value), [allItems, fieldState.value]);
47
48
  const selectedIds = useMemo(() => selectedItems.map(({ id }) => id), [selectedItems]);
48
- const getItem = useCallback((value$1) => allItems.find((item) => item && item.id === value$1) ?? null, [allItems]);
49
- const updateValue = useCallback((value$1) => {
50
- if (Array.isArray(value$1)) valueRef.current = value$1.map((id) => getItem(id)).filter((item) => item !== null);
51
- else valueRef.current = getItem(value$1);
49
+ const getItem = useCallback((value) => allItems.find((item) => item && item.id === value) ?? null, [allItems]);
50
+ const updateValue = useCallback((value) => {
51
+ if (Array.isArray(value)) valueRef.current = value.map((id) => getItem(id)).filter((item) => item !== null);
52
+ else valueRef.current = getItem(value);
52
53
  }, [getItem]);
53
54
  const getValueIds = () => Array.isArray(valueRef.current) ? valueRef.current.map(({ id }) => id) : valueRef.current?.id ?? null;
54
55
  const emitStateChanges = useCallback((changes, skipSelectionChange) => {
@@ -67,10 +68,10 @@ let SelectContext;
67
68
  onSearchChangeDebounced,
68
69
  updateValue
69
70
  ]);
70
- const syncFieldState = (value$1) => {
71
+ const syncFieldState = (value) => {
71
72
  const newFieldState = {
72
- value: value$1,
73
- inputValue: isMultiple || Array.isArray(value$1) ? fieldState.inputValue : getItem(value$1)?.label ?? "",
73
+ value,
74
+ inputValue: isMultiple || Array.isArray(value) ? fieldState.inputValue : getItem(value)?.label ?? "",
74
75
  searchValue: ""
75
76
  };
76
77
  setFieldState(newFieldState);
@@ -78,9 +79,9 @@ let SelectContext;
78
79
  if (!isMultiple) setShowAll(true);
79
80
  };
80
81
  useEffect(() => {
81
- const value$1 = props.value ?? null;
82
- if (JSON.stringify(value$1) !== JSON.stringify(fieldState.value)) syncFieldState(value$1);
83
- else updateValue(value$1);
82
+ const value = props.value ?? null;
83
+ if (JSON.stringify(value) !== JSON.stringify(fieldState.value)) syncFieldState(value);
84
+ else updateValue(value);
84
85
  }, [props.value]);
85
86
  useEffect(() => {
86
87
  if (!isMultiple && fieldState.value && fieldState.inputValue === "" && getItem(fieldState.value)?.label) syncFieldState(fieldState.value);
@@ -100,12 +101,12 @@ let SelectContext;
100
101
  fieldState.value,
101
102
  isMultiple
102
103
  ]);
103
- const onChange = useCallback((value$1) => {
104
- if (value$1 === "new-item-id") onNewItemOption?.(fieldState.inputValue);
104
+ const onChange = useCallback((value) => {
105
+ if (value === "new-item-id") onNewItemOption?.(fieldState.inputValue);
105
106
  else {
106
107
  const newFieldState = {
107
- value: value$1,
108
- inputValue: isMultiple || Array.isArray(value$1) ? "" : getItem(value$1)?.label ?? "",
108
+ value,
109
+ inputValue: isMultiple || Array.isArray(value) ? "" : getItem(value)?.label ?? "",
109
110
  searchValue: ""
110
111
  };
111
112
  setFieldState(newFieldState);
@@ -136,8 +137,8 @@ let SelectContext;
136
137
  const onSelectAll = useCallback(() => {
137
138
  onChange(selectableListItems.map(({ id }) => id));
138
139
  }, [selectableListItems, onChange]);
139
- const onRemove = useCallback((value$1) => {
140
- if (isMultiple && Array.isArray(fieldState.value)) onChange(fieldState.value.filter((id) => id !== value$1));
140
+ const onRemove = useCallback((value) => {
141
+ if (isMultiple && Array.isArray(fieldState.value)) onChange(fieldState.value.filter((id) => id !== value));
141
142
  }, [
142
143
  isMultiple,
143
144
  fieldState.value,
@@ -187,4 +188,5 @@ let SelectContext;
187
188
  return use(Context);
188
189
  };
189
190
  })(SelectContext || (SelectContext = {}));
191
+ //#endregion
190
192
  export { SelectContext };
@@ -1,24 +1,25 @@
1
1
  import { useMemo } from "react";
2
2
  import { useFilter } from "react-aria-components";
3
- const SelectAllItemId = "all-item-id";
3
+ //#region src/components/inputs/Selection/shared/useSelectItems.tsx
4
+ var SelectAllItemId = "all-item-id";
4
5
  var SelectAllItem = (inputValue) => ({
5
6
  id: SelectAllItemId,
6
7
  label: inputValue,
7
8
  isSelectAllItem: true
8
9
  });
9
- const NewItemId = "new-item-id";
10
+ var NewItemId = "new-item-id";
10
11
  var NewItem = (inputValue) => ({
11
12
  id: NewItemId,
12
13
  label: inputValue,
13
14
  isNewItem: true
14
15
  });
15
- const LoadingItemId = "loading-item-id";
16
+ var LoadingItemId = "loading-item-id";
16
17
  var LoadingItem = (inputValue) => ({
17
18
  id: LoadingItemId,
18
19
  label: inputValue,
19
20
  isLoadingItem: true
20
21
  });
21
- const ReservedItemIds = [
22
+ var ReservedItemIds = [
22
23
  SelectAllItemId,
23
24
  NewItemId,
24
25
  LoadingItemId
@@ -79,4 +80,5 @@ function useSelectItems({ initialSelectedItems, selectedItems, cachedItems, inpu
79
80
  selectableListItems: useMemo(() => listItems.filter((item) => !item.isDisabled && !ReservedItemIds.includes(String(item.id))), [listItems])
80
81
  };
81
82
  }
83
+ //#endregion
82
84
  export { NewItemId, SelectAllItemId, useSelectItems };
@@ -7,6 +7,7 @@ import { clsx } from "clsx";
7
7
  import { Slider, SliderThumb, SliderTrack } from "react-aria-components";
8
8
  import { mergeRefs } from "@react-aria/utils";
9
9
  import { Controller } from "react-hook-form";
10
+ //#region src/components/inputs/Slider/Slider.tsx
10
11
  var SliderBase = (props) => {
11
12
  const ui = UIConfig.useConfig();
12
13
  const { label, tooltipText, helperText, isRequired, rightContent, isDisabled, headerClassName, errorClassName, isHeaderHidden, error, unit, hideLabel = ui.input.hideLabel, minValue = ui.slider.minValue, maxValue = ui.slider.maxValue, ...rest } = props;
@@ -72,7 +73,7 @@ var SliderBase = (props) => {
72
73
  })
73
74
  });
74
75
  };
75
- const Slider$1 = (props) => {
76
+ var Slider$1 = (props) => {
76
77
  if ("formControl" in props && props.formControl) {
77
78
  const { formControl, ref, ...innerProps } = props;
78
79
  return /* @__PURE__ */ jsx(Controller, {
@@ -90,4 +91,5 @@ const Slider$1 = (props) => {
90
91
  }
91
92
  return /* @__PURE__ */ jsx(SliderBase, { ...props });
92
93
  };
94
+ //#endregion
93
95
  export { Slider$1 as Slider };
@@ -20,6 +20,7 @@ import { TextStyle } from "@tiptap/extension-text-style";
20
20
  import { Underline } from "@tiptap/extension-underline";
21
21
  import { EditorContent, useEditor } from "@tiptap/react";
22
22
  import { StarterKit } from "@tiptap/starter-kit";
23
+ //#region src/components/inputs/TextEditor/TextEditor.tsx
23
24
  var extensions = [
24
25
  StarterKit.configure({ heading: { levels: [
25
26
  1,
@@ -129,7 +130,7 @@ var TextEditorBase = ({ ref, as = "default", placeholder, label, hideLabel, tool
129
130
  })
130
131
  });
131
132
  };
132
- const TextEditor = (props) => {
133
+ var TextEditor = (props) => {
133
134
  if ("formControl" in props && props.formControl) {
134
135
  const { formControl, ref, ...innerProps } = props;
135
136
  return /* @__PURE__ */ jsx(Controller, {
@@ -147,4 +148,5 @@ const TextEditor = (props) => {
147
148
  }
148
149
  return /* @__PURE__ */ jsx(TextEditorBase, { ...props });
149
150
  };
151
+ //#endregion
150
152
  export { TextEditor };
@@ -1,7 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { clsx } from "clsx";
3
3
  import { ColorSwatch, ColorSwatchPicker, ColorSwatchPickerItem } from "react-aria-components";
4
- const ColorPicker = ({ colors, value, onChange }) => {
4
+ //#region src/components/inputs/TextEditor/Toolbar/ColorPicker.tsx
5
+ var ColorPicker = ({ colors, value, onChange }) => {
5
6
  return /* @__PURE__ */ jsx(ColorSwatchPicker, {
6
7
  value,
7
8
  onChange: (color) => onChange(color.toString("hex")),
@@ -13,4 +14,5 @@ const ColorPicker = ({ colors, value, onChange }) => {
13
14
  }, color))
14
15
  });
15
16
  };
17
+ //#endregion
16
18
  export { ColorPicker };
@@ -8,7 +8,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
8
8
  import { clsx } from "clsx";
9
9
  import { useState } from "react";
10
10
  import { Button, Dialog, DialogTrigger, Popover } from "react-aria-components";
11
- const ColorPickerDropdown = ({ colors, value, onChange, isDisabled, children }) => {
11
+ //#region src/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.tsx
12
+ var ColorPickerDropdown = ({ colors, value, onChange, isDisabled, children }) => {
12
13
  const inputCva = useInputCva();
13
14
  const popoverCva = UIStyle.useCva("popover.cva", popover);
14
15
  const [isOpen, setIsOpen] = useState(false);
@@ -51,4 +52,5 @@ const ColorPickerDropdown = ({ colors, value, onChange, isDisabled, children })
51
52
  })]
52
53
  });
53
54
  };
55
+ //#endregion
54
56
  export { ColorPickerDropdown };
@@ -1,14 +1,15 @@
1
1
  import { LinkIcon } from "../../../../assets/icons/Link.js";
2
2
  import { Button } from "../../../buttons/Button/Button.js";
3
3
  import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
4
- import { ns } from "../../../../config/i18n.js";
4
+ import "../../../../config/i18n.js";
5
5
  import { TextInput } from "../../Input/TextInput/TextInput.js";
6
6
  import { ResponsivePopover } from "../../../overlays/ResponsivePopover/ResponsivePopover.js";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
8
  import { clsx } from "clsx";
9
9
  import { useEffect, useState } from "react";
10
10
  import { useTranslation } from "react-i18next";
11
- const HyperlinkAction = ({ editor }) => {
11
+ //#region src/components/inputs/TextEditor/Toolbar/HyperlinkAction.tsx
12
+ var HyperlinkAction = ({ editor }) => {
12
13
  const { t } = useTranslation("ui");
13
14
  const [isOpen, setIsOpen] = useState(false);
14
15
  const [url, setUrl] = useState("");
@@ -67,4 +68,5 @@ const HyperlinkAction = ({ editor }) => {
67
68
  })]
68
69
  });
69
70
  };
71
+ //#endregion
70
72
  export { HyperlinkAction };
@@ -2,11 +2,12 @@ import { AlignCenterIcon } from "../../../../assets/icons/AlignCenter.js";
2
2
  import { AlignLeftIcon } from "../../../../assets/icons/AlignLeft.js";
3
3
  import { AlignLeftRightIcon } from "../../../../assets/icons/AlignLeftRight.js";
4
4
  import { AlignRightIcon } from "../../../../assets/icons/AlignRight.js";
5
- import { ns } from "../../../../config/i18n.js";
5
+ import "../../../../config/i18n.js";
6
6
  import { Select } from "../../Selection/Select/Select.js";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
  import { useTranslation } from "react-i18next";
9
- const TextAlignSelect = ({ editor }) => {
9
+ //#region src/components/inputs/TextEditor/Toolbar/TextAlignSelect.tsx
10
+ var TextAlignSelect = ({ editor }) => {
10
11
  const { t } = useTranslation("ui");
11
12
  if (!!!editor.extensionManager.extensions.find((extension) => extension.name === "textAlign")) return null;
12
13
  const onChange = (val) => {
@@ -41,4 +42,5 @@ const TextAlignSelect = ({ editor }) => {
41
42
  isDisabled: !editor.isEditable
42
43
  });
43
44
  };
45
+ //#endregion
44
46
  export { TextAlignSelect };
@@ -2,7 +2,8 @@ import { TextColorIcon } from "../../../../assets/icons/TextColor.js";
2
2
  import { ColorPickerDropdown } from "./ColorPickerDropdown.js";
3
3
  import { defaultColors } from "../textEditor.types.js";
4
4
  import { jsx } from "react/jsx-runtime";
5
- const TextColorSelect = ({ editor }) => {
5
+ //#region src/components/inputs/TextEditor/Toolbar/TextColorSelect.tsx
6
+ var TextColorSelect = ({ editor }) => {
6
7
  if (!editor.extensionManager.extensions.some((extension) => extension.name === "color")) return null;
7
8
  const onChange = (color) => {
8
9
  editor.chain().focus().setColor(color).run();
@@ -19,4 +20,5 @@ const TextColorSelect = ({ editor }) => {
19
20
  })
20
21
  });
21
22
  };
23
+ //#endregion
22
24
  export { TextColorSelect };
@@ -6,7 +6,8 @@ import { TextListActions } from "./TextListActions.js";
6
6
  import { TextMarksActions } from "./TextMarksActions.js";
7
7
  import { TextStyleSelect } from "./TextStyleSelect.js";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
- const TextEditorToolbar = ({ editor }) => {
9
+ //#region src/components/inputs/TextEditor/Toolbar/TextEditorToolbar.tsx
10
+ var TextEditorToolbar = ({ editor }) => {
10
11
  if (!editor) return null;
11
12
  return /* @__PURE__ */ jsxs("div", {
12
13
  className: "flex w-full flex-wrap items-center gap-x-7 gap-y-1 border-elevation-outline-default-2 border-b border-solid p-2",
@@ -27,4 +28,5 @@ const TextEditorToolbar = ({ editor }) => {
27
28
  ]
28
29
  });
29
30
  };
31
+ //#endregion
30
32
  export { TextEditorToolbar };
@@ -3,7 +3,8 @@ import { HighlightOnIcon } from "../../../../assets/icons/HighlightOn.js";
3
3
  import { ColorPickerDropdown } from "./ColorPickerDropdown.js";
4
4
  import { defaultColors } from "../textEditor.types.js";
5
5
  import { jsx } from "react/jsx-runtime";
6
- const TextHighlightSelect = ({ editor }) => {
6
+ //#region src/components/inputs/TextEditor/Toolbar/TextHighlightSelect.tsx
7
+ var TextHighlightSelect = ({ editor }) => {
7
8
  if (!editor.extensionManager.extensions.some((extension) => extension.name === "highlight")) return null;
8
9
  const onChange = (color) => {
9
10
  if (color === "#FFFFFF") editor.chain().focus().unsetHighlight().run();
@@ -21,4 +22,5 @@ const TextHighlightSelect = ({ editor }) => {
21
22
  }) : /* @__PURE__ */ jsx(HighlightIcon, { className: "size-6" })
22
23
  });
23
24
  };
25
+ //#endregion
24
26
  export { TextHighlightSelect };
@@ -1,11 +1,12 @@
1
1
  import { BulletedListIcon } from "../../../../assets/icons/BulletedList.js";
2
2
  import { NumberedListIcon } from "../../../../assets/icons/NumberedList.js";
3
3
  import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
4
- import { ns } from "../../../../config/i18n.js";
4
+ import "../../../../config/i18n.js";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  import { clsx } from "clsx";
7
7
  import { useTranslation } from "react-i18next";
8
- const TextListActions = ({ editor }) => {
8
+ //#region src/components/inputs/TextEditor/Toolbar/TextListActions.tsx
9
+ var TextListActions = ({ editor }) => {
9
10
  const { t } = useTranslation("ui");
10
11
  const enabledActions = [{
11
12
  can: !!editor.extensionManager.extensions.find((extension) => extension.name === "bulletList"),
@@ -39,4 +40,5 @@ const TextListActions = ({ editor }) => {
39
40
  }, action.label))
40
41
  });
41
42
  };
43
+ //#endregion
42
44
  export { TextListActions };
@@ -3,11 +3,12 @@ import { ItalicIcon } from "../../../../assets/icons/Italic.js";
3
3
  import { StrikethroughIcon } from "../../../../assets/icons/Strikethrough.js";
4
4
  import { UnderlinedIcon } from "../../../../assets/icons/Underlined.js";
5
5
  import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
6
- import { ns } from "../../../../config/i18n.js";
6
+ import "../../../../config/i18n.js";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
  import { clsx } from "clsx";
9
9
  import { useTranslation } from "react-i18next";
10
- const TextMarksActions = ({ editor }) => {
10
+ //#region src/components/inputs/TextEditor/Toolbar/TextMarksActions.tsx
11
+ var TextMarksActions = ({ editor }) => {
11
12
  const { t } = useTranslation("ui");
12
13
  const enabledActions = [
13
14
  {
@@ -64,4 +65,5 @@ const TextMarksActions = ({ editor }) => {
64
65
  }, action.label))
65
66
  });
66
67
  };
68
+ //#endregion
67
69
  export { TextMarksActions };
@@ -1,9 +1,10 @@
1
1
  import { Typography } from "../../../text/Typography/Typography.js";
2
- import { ns } from "../../../../config/i18n.js";
2
+ import "../../../../config/i18n.js";
3
3
  import { Select } from "../../Selection/Select/Select.js";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  import { useTranslation } from "react-i18next";
6
- const TextStyleSelect = ({ editor }) => {
6
+ //#region src/components/inputs/TextEditor/Toolbar/TextStyleSelect.tsx
7
+ var TextStyleSelect = ({ editor }) => {
7
8
  const { t } = useTranslation("ui");
8
9
  if (!!!editor.extensionManager.extensions.find((extension) => extension.name === "heading")) return null;
9
10
  const getItem = (level) => {
@@ -49,4 +50,5 @@ const TextStyleSelect = ({ editor }) => {
49
50
  isDisabled: !editor.isEditable
50
51
  });
51
52
  };
53
+ //#endregion
52
54
  export { TextStyleSelect };
@@ -1,4 +1,5 @@
1
- const defaultColors = [
1
+ //#region src/components/inputs/TextEditor/textEditor.types.ts
2
+ var defaultColors = [
2
3
  "#000000",
3
4
  "#e60000",
4
5
  "#ff9900",
@@ -35,4 +36,5 @@ const defaultColors = [
35
36
  "#002966",
36
37
  "#3d1466"
37
38
  ];
39
+ //#endregion
38
40
  export { defaultColors };
@@ -8,6 +8,7 @@ import { clsx } from "clsx";
8
8
  import { Switch } 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/Toggle/Toggle.tsx
11
12
  var ToggleBase = (props) => {
12
13
  const ui = UIConfig.useConfig();
13
14
  const toggleCva = UIStyle.useCva("toggle.cva", toggle);
@@ -35,7 +36,7 @@ var ToggleBase = (props) => {
35
36
  })]
36
37
  }), /* @__PURE__ */ jsx(FormFieldError, { ...formFieldErrorProps })] });
37
38
  };
38
- const Toggle = (props) => {
39
+ var Toggle = (props) => {
39
40
  if ("formControl" in props && props.formControl) {
40
41
  const { formControl, ref, ...innerProps } = props;
41
42
  return /* @__PURE__ */ jsx(Controller, {
@@ -56,4 +57,5 @@ const Toggle = (props) => {
56
57
  }
57
58
  return /* @__PURE__ */ jsx(ToggleBase, { ...props });
58
59
  };
60
+ //#endregion
59
61
  export { Toggle };
@@ -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 toggle = cva(["h-6 w-10 rounded-full before:m-0-5 before:block before:aspect-square before:h-5 before:rounded-full before:transition-transform before:content-[''] group-selected:before:translate-x-4", uiGroupOutlineClass], {
4
+ //#region src/components/inputs/Toggle/toggle.cva.ts
5
+ var toggle = cva(["h-6 w-10 rounded-full before:m-0-5 before:block before:aspect-square before:h-5 before:rounded-full before:transition-transform before:content-[''] group-selected:before:translate-x-4", uiGroupOutlineClass], {
5
6
  variants: { variant: { default: [
6
7
  "bg-interactive-contained-secondary-idle",
7
8
  "group-disabled:bg-interactive-contained-secondary-disabled",
@@ -20,9 +21,10 @@ const toggle = cva(["h-6 w-10 rounded-full before:m-0-5 before:block before:aspe
20
21
  ] } },
21
22
  defaultVariants: { variant: "default" }
22
23
  });
23
- const toggleTypography = compoundMapper({ default: {
24
+ var toggleTypography = compoundMapper({ default: {
24
25
  size: "label-1",
25
26
  sizeMobile: "label-1",
26
27
  variant: "default"
27
28
  } });
29
+ //#endregion
28
30
  export { toggle, toggleTypography };
@@ -2,7 +2,8 @@ import { UIStyle } from "../../../config/uiStyle.context.js";
2
2
  import { typography } from "../../text/Typography/typography.cva.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import clsx$1 from "clsx";
5
- const CheckContent = ({ children, className, ...props }) => {
5
+ //#region src/components/inputs/shared/CheckContent.tsx
6
+ var CheckContent = ({ children, className, ...props }) => {
6
7
  return /* @__PURE__ */ jsx("div", {
7
8
  className: clsx$1(UIStyle.useCva("typography.cva", typography)({
8
9
  size: "label-1",
@@ -14,4 +15,5 @@ const CheckContent = ({ children, className, ...props }) => {
14
15
  children
15
16
  });
16
17
  };
18
+ //#endregion
17
19
  export { CheckContent };
@@ -1,14 +1,15 @@
1
1
  import { CloseIcon } from "../../../assets/icons/Close.js";
2
2
  import { InlineIconButton } from "../../buttons/InlineIconButton/InlineIconButton.js";
3
- import { ns } from "../../../config/i18n.js";
3
+ import "../../../config/i18n.js";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  import { clsx } from "clsx";
6
6
  import { useTranslation } from "react-i18next";
7
- const InputClear = ({ onClear, className, style, show }) => {
7
+ //#region src/components/inputs/shared/InputClear.tsx
8
+ var InputClear = ({ onClear, className, style, show }) => {
8
9
  const { t } = useTranslation("ui");
9
10
  return /* @__PURE__ */ jsx(InlineIconButton, {
10
11
  color: "secondary",
11
- className: clsx("invisible flex items-center", "group-focus-within:visible group-hover/date-picker-content:visible group-hover/select-content:visible group-hover/text-area:visible group-hover:visible", "border-0!", !show && "invisible!", className),
12
+ className: clsx("invisible relative z-1 flex items-center", "group-focus-within:visible group-hover/date-picker-content:visible group-hover/select-content:visible group-hover/text-area:visible group-hover:visible", "border-0!", !show && "invisible!", className),
12
13
  label: t(($) => $.ui.clearAlt),
13
14
  icon: CloseIcon,
14
15
  onPress: onClear,
@@ -16,4 +17,5 @@ const InputClear = ({ onClear, className, style, show }) => {
16
17
  style
17
18
  });
18
19
  };
20
+ //#endregion
19
21
  export { InputClear };
@@ -1,6 +1,7 @@
1
1
  import { Tooltip } from "../../overlays/Tooltip/Tooltip.js";
2
2
  import { jsx } from "react/jsx-runtime";
3
- const TooltipWrapper = (props) => {
3
+ //#region src/components/inputs/shared/TooltipWrapper.tsx
4
+ var TooltipWrapper = (props) => {
4
5
  if (props.as !== "inline") return props.children;
5
6
  return /* @__PURE__ */ jsx(Tooltip, {
6
7
  text: props.error || void 0,
@@ -16,4 +17,5 @@ const TooltipWrapper = (props) => {
16
17
  })
17
18
  });
18
19
  };
20
+ //#endregion
19
21
  export { TooltipWrapper };
@@ -2,7 +2,8 @@ import { UIStyle } from "../../../config/uiStyle.context.js";
2
2
  import { uiOutlineClass } from "../../outline.clsx.js";
3
3
  import { clsx } from "clsx";
4
4
  import { cva } from "class-variance-authority";
5
- const inputBase = cva([uiOutlineClass, "flex w-full not-[textarea]:truncate"], {
5
+ //#region src/components/inputs/shared/input.cva.ts
6
+ var inputBase = cva([uiOutlineClass, "flex w-full not-[textarea]:truncate"], {
6
7
  variants: {
7
8
  variant: {
8
9
  outlined: "",
@@ -127,7 +128,7 @@ const inputBase = cva([uiOutlineClass, "flex w-full not-[textarea]:truncate"], {
127
128
  as: "default"
128
129
  }
129
130
  });
130
- const inputSize = cva("", {
131
+ var inputSize = cva("", {
131
132
  variants: {
132
133
  size: {
133
134
  "extra-small": "text-label-1",
@@ -190,7 +191,7 @@ const inputSize = cva("", {
190
191
  as: "default"
191
192
  }
192
193
  });
193
- const inputSide = cva("", {
194
+ var inputSide = cva("", {
194
195
  variants: {
195
196
  size: {
196
197
  "extra-small": "",
@@ -268,11 +269,12 @@ const inputSide = cva("", {
268
269
  ],
269
270
  defaultVariants: { size: "default" }
270
271
  });
271
- const useInputCva = () => {
272
+ var useInputCva = () => {
272
273
  const inputBaseCva = UIStyle.useCva("input.baseCva", inputBase);
273
274
  const inputSizeCva = UIStyle.useCva("input.sizeCva", inputSize);
274
275
  return ({ className, ...rest }) => {
275
276
  return clsx(inputBaseCva(rest), inputSizeCva(rest), className);
276
277
  };
277
278
  };
279
+ //#endregion
278
280
  export { inputBase, inputSide, inputSize, useInputCva };
@@ -1,6 +1,7 @@
1
1
  import { compoundMapper } from "../../../utils/compoundMapper.js";
2
2
  import { cva } from "class-variance-authority";
3
- const labelBase = cva("", {
3
+ //#region src/components/inputs/shared/label.cva.ts
4
+ var labelBase = cva("", {
4
5
  variants: { as: {
5
6
  default: ["flex items-start gap-1 text-text-default-1"],
6
7
  filter: ["text-text-default-1"],
@@ -24,7 +25,7 @@ const labelBase = cva("", {
24
25
  } },
25
26
  defaultVariants: { as: "default" }
26
27
  });
27
- const labelTypography = compoundMapper({
28
+ var labelTypography = compoundMapper({
28
29
  compoundVariants: [
29
30
  {
30
31
  as: "default",
@@ -66,4 +67,5 @@ const labelTypography = compoundMapper({
66
67
  },
67
68
  defaultVariants: { as: "default" }
68
69
  });
70
+ //#endregion
69
71
  export { labelBase, labelTypography };
@@ -4,7 +4,8 @@ import { AccordionItem } from "./AccordionItem.js";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  import { clsx } from "clsx";
6
6
  import { DisclosureGroup } from "react-aria-components";
7
- const Accordion = ({ items, variant = "filled", actionPosition = "right", allowsMultipleExpanded = false, expandedKeys, defaultExpandedKeys, onExpandedChange, className, disabled }) => {
7
+ //#region src/components/navigation/Accordion/Accordion.tsx
8
+ var Accordion = ({ items, variant = "filled", actionPosition = "right", allowsMultipleExpanded = false, expandedKeys, defaultExpandedKeys, onExpandedChange, className, disabled }) => {
8
9
  return /* @__PURE__ */ jsx(DisclosureGroup, {
9
10
  allowsMultipleExpanded,
10
11
  expandedKeys,
@@ -29,4 +30,5 @@ const Accordion = ({ items, variant = "filled", actionPosition = "right", allows
29
30
  }, item.id))
30
31
  });
31
32
  };
33
+ //#endregion
32
34
  export { Accordion };
@@ -4,7 +4,8 @@ import { Typography } from "../../text/Typography/Typography.js";
4
4
  import { accordionChevronCva, accordionHeadingCva, accordionHeadingSubtitleCva, accordionHeadingTitleCva, accordionIconCva, accordionItemCva, accordionPanelContentCva, accordionPanelCva, accordionTriggerCva } from "./accordion.cva.js";
5
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
6
  import { Button, Disclosure, DisclosurePanel, Heading } from "react-aria-components";
7
- const AccordionItem = ({ id, disabled, heading, subheading, children, icon: Icon, variant = "filled", actionPosition = "right", isSingle }) => {
7
+ //#region src/components/navigation/Accordion/AccordionItem.tsx
8
+ var AccordionItem = ({ id, disabled, heading, subheading, children, icon: Icon, variant = "filled", actionPosition = "right", isSingle }) => {
8
9
  const itemCva = UIStyle.useCva("accordion.itemCva", accordionItemCva);
9
10
  const triggerCva = UIStyle.useCva("accordion.triggerCva", accordionTriggerCva);
10
11
  const headingCva = UIStyle.useCva("accordion.headingCva", accordionHeadingCva);
@@ -58,4 +59,5 @@ const AccordionItem = ({ id, disabled, heading, subheading, children, icon: Icon
58
59
  })] })
59
60
  });
60
61
  };
62
+ //#endregion
61
63
  export { AccordionItem };