asma-ui-core 3.44.0 → 3.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/asma-ui-core.css +1 -1
- package/dist/components/custom/module/header-layout/ToolbarActionGroup.js +2 -2
- package/dist/components/custom/module/module-title/StyledModuleTitle.module.js +1 -1
- package/dist/components/custom/widget/widget/StyledWidget.module.js +8 -8
- package/dist/components/custom/widget/widget-title/StyledWidgetTitle.module.js +1 -1
- package/dist/components/data-display/ai-disclosure/StyledAIDisclosure.js +7 -5
- package/dist/components/data-display/badge/StyledBadge.js +53 -23
- package/dist/components/data-display/chip/StyledChip.js +62 -59
- package/dist/components/data-display/chip/chipPadding.js +44 -0
- package/dist/components/data-display/form-label/components/StyledFormLabel.js +18 -10
- package/dist/components/data-display/form-label/styles/StyledFormLabel.module.js +4 -4
- package/dist/components/data-display/interactive-chip/StyledInteractiveChip.js +35 -39
- package/dist/components/data-display/interactive-chip/StyledInteractiveChip.module.js +4 -0
- package/dist/components/data-display/tooltip/StyledTooltip.js +51 -33
- package/dist/components/data-display/typography/StyledTypography.js +62 -4
- package/dist/components/feedback/dialog/StyledDialog.js +102 -39
- package/dist/components/feedback/dialog/StyledDialog.module.js +2 -9
- package/dist/components/feedback/dialog/StyledDialogActions.js +16 -16
- package/dist/components/feedback/dialog/StyledDialogContent.js +18 -14
- package/dist/components/feedback/dialog/StyledDialogTitle.js +18 -13
- package/dist/components/feedback/empty-page/StyledEmptyPage.js +4 -4
- package/dist/components/feedback/filtered-empty-state/StyledFilteredEmptyState.js +7 -7
- package/dist/components/feedback/minimizable-dialog/MinimizableDialog.js +123 -114
- package/dist/components/feedback/minimizable-dialog/components/CloseBtn.js +6 -5
- package/dist/components/feedback/minimizable-dialog/components/FullscreenBtn.js +13 -12
- package/dist/components/feedback/minimizable-dialog/components/MinimizeBtn.js +15 -13
- package/dist/components/feedback/minimizable-dialog/v2/MinimizableDialogV2.js +67 -61
- package/dist/components/feedback/snack-bar/StyledAlert.js +95 -14
- package/dist/components/feedback/snack-bar/StyledSnackbar.js +34 -8
- package/dist/components/feedback/snack-bar/components/StyledDefaultSnackbar.js +32 -33
- package/dist/components/feedback/snack-bar/components/StyledDefaultSnackbar.module.js +16 -16
- package/dist/components/icons/check-icon/CheckIcon.js +8 -7
- package/dist/components/inputs/button/StyledButton.js +22 -18
- package/dist/components/inputs/button/StyledButton.module.js +5 -5
- package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.js +61 -55
- package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.module.js +12 -11
- package/dist/components/inputs/dynamic-select/components/DynamicInteractiveChipGroup.js +54 -50
- package/dist/components/inputs/dynamic-select/components/DynamicSelectAutocomplete.js +107 -99
- package/dist/components/inputs/field-styles.js +8 -0
- package/dist/components/inputs/input-field/StyledInputField.js +188 -83
- package/dist/components/inputs/input-field/StyledInputField.module.js +10 -0
- package/dist/components/inputs/label/StyledLabel.js +19 -11
- package/dist/components/inputs/label/StyledLabel.module.js +1 -1
- package/dist/components/inputs/radio-button/base-ui/RadioGroupContext.js +6 -0
- package/dist/components/inputs/radio-button/base-ui/StyledRadio.js +43 -28
- package/dist/components/inputs/radio-button/base-ui/StyledRadio.module.js +7 -6
- package/dist/components/inputs/radio-button/base-ui/StyledRadioGroup.js +37 -24
- package/dist/components/inputs/search-field/StyledSearchField.js +49 -43
- package/dist/components/inputs/select/StyledSelect.js +170 -45
- package/dist/components/inputs/select/StyledSelectItem.js +19 -23
- package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +228 -150
- package/dist/components/inputs/slider/StyledSlider.js +100 -52
- package/dist/components/inputs/slider/StyledSlider.module.js +10 -0
- package/dist/components/inputs/switch/base-ui/StyledSwitch.js +45 -38
- package/dist/components/inputs/switch/base-ui/StyledSwitch.module.js +4 -4
- package/dist/components/inputs/textarea/StyledTextarea.js +44 -43
- package/dist/components/inputs/textarea/StyledTextarea.module.js +1 -1
- package/dist/components/miscellaneous/FormControlContext.js +6 -0
- package/dist/components/miscellaneous/StyledFormControl.js +42 -21
- package/dist/components/miscellaneous/StyledFormControlLabel.js +29 -15
- package/dist/components/miscellaneous/StyledFormGroup.js +16 -4
- package/dist/components/miscellaneous/StyledFormHelperText.js +12 -4
- package/dist/components/miscellaneous/StyledInputLabel.js +20 -4
- package/dist/components/mui-compat/Avatar.js +34 -0
- package/dist/components/mui-compat/ClickAwayListener.js +42 -0
- package/dist/components/mui-compat/Container.js +24 -0
- package/dist/components/mui-compat/Fade.js +29 -0
- package/dist/components/mui-compat/Fade.module.js +9 -0
- package/dist/components/mui-compat/FormLabel.js +22 -0
- package/dist/components/mui-compat/Paper.js +44 -0
- package/dist/components/mui-compat/Popper.js +35 -0
- package/dist/components/mui-compat/Skeleton.js +27 -0
- package/dist/components/mui-compat/Stack.js +24 -0
- package/dist/components/navigation/drawer/StyledDrawer.js +45 -4
- package/dist/components/navigation/link/StyledLink.module.js +5 -5
- package/dist/components/navigation/listbox/Listbox.js +7 -7
- package/dist/components/navigation/menu/StyledMenu.js +28 -11
- package/dist/components/navigation/menu/StyledMenuItem.js +21 -19
- package/dist/components/navigation/menu/StyledMenuList.js +34 -4
- package/dist/components/navigation/tabs/StyledTab.js +28 -13
- package/dist/components/navigation/tabs/StyledTabs.js +115 -66
- package/dist/components/navigation/tabs/TabsContext.js +6 -0
- package/dist/components/utils/accordion/base-ui/AccordionContext.js +10 -0
- package/dist/components/utils/accordion/base-ui/StyledAccordion.js +28 -21
- package/dist/components/utils/accordion/base-ui/StyledAccordion.module.js +7 -7
- package/dist/components/utils/accordion/base-ui/StyledAccordionDetails.js +28 -14
- package/dist/components/utils/accordion/base-ui/StyledAccordionSummary.js +34 -27
- package/dist/components/utils/copy-wrapper/CopyButton.js +8 -7
- package/dist/components/utils/copy-wrapper/CopyWrapper.js +23 -20
- package/dist/components/utils/filter-menu/StyledFilterButton.js +14 -13
- package/dist/components/utils/filter-menu/StyledFilterMenu.js +16 -15
- package/dist/components/utils/popover/StyledPopover.js +51 -15
- package/dist/components/utils/virtual-list/VirtualList.js +46 -0
- package/dist/datetime/components/date-picker/StyledDatePicker.js +17 -17
- package/dist/datetime/components/date-picker/components/BaseDatePickerInput.js +98 -99
- package/dist/datetime/components/date-picker/components/DatePickerButton.js +11 -9
- package/dist/datetime/components/date-picker/components/StyledCalendarPicker.js +11 -11
- package/dist/datetime/components/date-picker/components/StyledCalendarPicker.module.js +20 -20
- package/dist/datetime/components/date-picker/components/StyledCalendarPickerCaption.js +8 -7
- package/dist/datetime/components/date-picker/components/StyledCalendarPickerFooter.js +13 -14
- package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectMonth.js +17 -24
- package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectYear.js +7 -8
- package/dist/datetime/components/date-picker/components/StyledDayPicker.js +4 -5
- package/dist/datetime/components/date-picker/helpers.js +7 -7
- package/dist/datetime/components/date-picker/hooks/useDatePickerMask.js +3 -7
- package/dist/datetime/components/time-picker/StyledTimePicker.js +25 -25
- package/dist/datetime/components/time-picker/StyledTimePicker.module.js +6 -6
- package/dist/datetime/components/time-picker/TimePickerInput.js +56 -50
- package/dist/datetime/components/time-picker/TimePickerPopper.js +22 -19
- package/dist/datetime/components/time-picker/components/TimePickerColumn.js +12 -12
- package/dist/datetime/components/time-picker/helpers/getTimeFromValue.js +3 -3
- package/dist/datetime/helpers/cn.js +4 -5
- package/dist/datetime/hooks/useWindowWidthSize.hook.js +1 -1
- package/dist/helpers/arrays.js +4 -0
- package/dist/helpers/classOverride.js +12 -0
- package/dist/helpers/cn.js +4 -5
- package/dist/helpers/inputMask.js +58 -0
- package/dist/helpers/sx.js +46 -0
- package/dist/hooks/useFocusTrap.hook.js +34 -0
- package/dist/hooks/useTopLayer.hook.js +25 -0
- package/dist/index.js +185 -175
- package/dist/src/api-surface.test.d.ts +1 -0
- package/dist/src/components/custom/module/header-layout/DynamicToolbar.d.ts +10 -0
- package/dist/src/components/custom/module/module-title/StyledModuleTitle.d.ts +4 -0
- package/dist/src/components/custom/widget/widget/StyledWidget.d.ts +8 -0
- package/dist/src/components/custom/widget/widget-header/StyledWidgetHeader.d.ts +4 -0
- package/dist/src/components/custom/widget/widget-title/StyledWidgetTitle.d.ts +4 -0
- package/dist/src/components/data-display/ai-disclosure/StyledAIDisclosure.d.ts +7 -0
- package/dist/src/components/data-display/badge/StyledBadge.d.ts +40 -2
- package/dist/src/components/data-display/chip/StyledChip.d.ts +74 -5
- package/dist/src/components/data-display/chip/chipPadding.d.ts +3 -0
- package/dist/src/components/data-display/form-label/types.d.ts +11 -0
- package/dist/src/components/data-display/interactive-chip/StyledInteractiveChip.d.ts +22 -4
- package/dist/src/components/data-display/tooltip/StyledTooltip.d.ts +43 -1
- package/dist/src/components/data-display/typography/StyledTypography.d.ts +32 -1
- package/dist/src/components/feedback/dialog/StyledDialog.d.ts +60 -4
- package/dist/src/components/feedback/dialog/StyledDialogActions.d.ts +12 -2
- package/dist/src/components/feedback/dialog/StyledDialogContent.d.ts +12 -2
- package/dist/src/components/feedback/dialog/StyledDialogTitle.d.ts +10 -2
- package/dist/src/components/feedback/empty-page/StyledEmptyPage.d.ts +6 -0
- package/dist/src/components/feedback/filtered-empty-state/StyledFilteredEmptyState.d.ts +7 -0
- package/dist/src/components/feedback/loading/StyledLoading.d.ts +9 -0
- package/dist/src/components/feedback/minimizable-dialog/v2/types.d.ts +13 -0
- package/dist/src/components/feedback/minimizable-dialog/v2/useControlledProps.d.ts +4 -2
- package/dist/src/components/feedback/minimizable-dialog/v2/useTranslations.d.ts +17 -12
- package/dist/src/components/feedback/snack-bar/SnackbarProvider.d.ts +1 -1
- package/dist/src/components/feedback/snack-bar/StyledAlert.d.ts +41 -2
- package/dist/src/components/feedback/snack-bar/StyledAlertSnackbar.d.ts +1 -1
- package/dist/src/components/feedback/snack-bar/StyledSnackbar.d.ts +25 -2
- package/dist/src/components/feedback/snack-bar/components/StyledDefaultSnackbar.d.ts +10 -1
- package/dist/src/components/feedback/snack-bar/components/StyledInfoSnackbar.d.ts +1 -1
- package/dist/src/components/feedback/snack-bar/components/types.d.ts +1 -1
- package/dist/src/components/inputs/button/StyledButton.d.ts +15 -1
- package/dist/src/components/inputs/checkbox/base-ui/StyledCheckbox.d.ts +33 -4
- package/dist/src/components/inputs/dynamic-select/StyledDynamicSelect.d.ts +16 -0
- package/dist/src/components/inputs/dynamic-select/types.d.ts +25 -14
- package/dist/src/components/inputs/field-styles.d.ts +27 -0
- package/dist/src/components/inputs/input-field/StyledInputField.d.ts +85 -10
- package/dist/src/components/inputs/input-field/index.d.ts +1 -1
- package/dist/src/components/inputs/label/StyledLabel.d.ts +13 -0
- package/dist/src/components/inputs/radio-button/base-ui/RadioGroupContext.d.ts +10 -0
- package/dist/src/components/inputs/radio-button/base-ui/StyledRadio.d.ts +60 -5
- package/dist/src/components/inputs/radio-button/base-ui/StyledRadioGroup.d.ts +30 -7
- package/dist/src/components/inputs/search-field/StyledSearchField.d.ts +9 -1
- package/dist/src/components/inputs/select/StyledSelect.d.ts +70 -16
- package/dist/src/components/inputs/select/StyledSelectItem.d.ts +14 -2
- package/dist/src/components/inputs/select/index.d.ts +0 -1
- package/dist/src/components/inputs/select-autocomplete/StyledSelectAutocomplete.d.ts +120 -17
- package/dist/src/components/inputs/slider/StyledSlider.d.ts +66 -3
- package/dist/src/components/inputs/switch/base-ui/StyledSwitch.d.ts +44 -4
- package/dist/src/components/inputs/textarea/StyledTextarea.d.ts +19 -0
- package/dist/src/components/miscellaneous/FormControlContext.d.ts +14 -0
- package/dist/src/components/miscellaneous/StyledFormControl.d.ts +27 -2
- package/dist/src/components/miscellaneous/StyledFormControlLabel.d.ts +21 -2
- package/dist/src/components/miscellaneous/StyledFormGroup.d.ts +11 -2
- package/dist/src/components/miscellaneous/StyledFormHelperText.d.ts +12 -2
- package/dist/src/components/miscellaneous/StyledInputLabel.d.ts +20 -2
- package/dist/src/components/mui-compat/Avatar.d.ts +6 -0
- package/dist/src/components/mui-compat/ClickAwayListener.d.ts +19 -0
- package/dist/src/components/mui-compat/Container.d.ts +6 -0
- package/dist/src/components/mui-compat/Fade.d.ts +21 -0
- package/dist/src/components/mui-compat/FormLabel.d.ts +6 -0
- package/dist/src/components/mui-compat/Paper.d.ts +6 -0
- package/dist/src/components/mui-compat/Popper.d.ts +29 -0
- package/dist/src/components/mui-compat/Skeleton.d.ts +7 -0
- package/dist/src/components/mui-compat/Stack.d.ts +7 -0
- package/dist/src/components/mui-compat/index.d.ts +9 -0
- package/dist/src/components/mui-compat/types.d.ts +46 -0
- package/dist/src/components/navigation/drawer/StyledDrawer.d.ts +33 -2
- package/dist/src/components/navigation/link/StyledLink.d.ts +13 -0
- package/dist/src/components/navigation/menu/StyledMenu.d.ts +33 -2
- package/dist/src/components/navigation/menu/StyledMenuItem.d.ts +35 -2
- package/dist/src/components/navigation/menu/StyledMenuList.d.ts +16 -2
- package/dist/src/components/navigation/menu/index.d.ts +0 -1
- package/dist/src/components/navigation/tabs/StyledTab.d.ts +27 -3
- package/dist/src/components/navigation/tabs/StyledTabs.d.ts +22 -7
- package/dist/src/components/navigation/tabs/TabsContext.d.ts +11 -0
- package/dist/src/components/utils/accordion/base-ui/AccordionContext.d.ts +10 -0
- package/dist/src/components/utils/accordion/base-ui/StyledAccordion.d.ts +9 -3
- package/dist/src/components/utils/accordion/base-ui/StyledAccordionDetails.d.ts +5 -0
- package/dist/src/components/utils/accordion/base-ui/StyledAccordionSummary.d.ts +16 -4
- package/dist/src/components/utils/copy-wrapper/CopyWrapper.d.ts +6 -1
- package/dist/src/components/utils/filter-menu/StyledFilterButton.d.ts +4 -0
- package/dist/src/components/utils/filter-menu/StyledFilterMenu.d.ts +8 -2
- package/dist/src/components/utils/popover/StyledPopover.d.ts +39 -2
- package/dist/src/components/utils/virtual-list/VirtualList.d.ts +32 -0
- package/dist/src/components/utils/virtual-list/index.d.ts +1 -0
- package/dist/src/datetime/components/date-picker/StyledDatePicker.d.ts +11 -0
- package/dist/src/datetime/components/date-picker/components/DatePickerButton.d.ts +2 -0
- package/dist/src/datetime/components/date-picker/components/StyledCalendarPicker.d.ts +1 -1
- package/dist/src/datetime/components/date-picker/components/StyledDayPicker.d.ts +1 -1
- package/dist/src/datetime/components/date-picker/hooks/useDatePickerMask.d.ts +1 -2
- package/dist/src/datetime/components/date-picker/hooks/useDatePickerValidation.d.ts +7 -5
- package/dist/src/datetime/components/time-picker/StyledTimePicker.d.ts +10 -0
- package/dist/src/datetime/components/time-picker/TimePickerInput.d.ts +1 -1
- package/dist/src/datetime/components/time-picker/TimePickerPopper.d.ts +1 -1
- package/dist/src/datetime/components/time-picker/types.d.ts +1 -2
- package/dist/src/datetime/hooks/useToggleMenuVisibility.hook.d.ts +6 -4
- package/dist/src/datetime/shared-components/StyledFormControl.d.ts +1 -2
- package/dist/src/datetime/shared-components/StyledInputField.d.ts +1 -12
- package/dist/src/datetime/shared-components/StyledSelect.d.ts +1 -16
- package/dist/src/datetime/shared-components/StyledSelectItem.d.ts +1 -2
- package/dist/src/datetime/shared-components/StyledTooltip.d.ts +1 -2
- package/dist/src/helpers/applyImportantPadding.d.ts +8 -0
- package/dist/src/helpers/arrays.d.ts +2 -0
- package/dist/src/helpers/arrays.test.d.ts +1 -0
- package/dist/src/helpers/classOverride.d.ts +21 -0
- package/dist/src/helpers/classOverride.test.d.ts +1 -0
- package/dist/src/helpers/inputMask.d.ts +40 -0
- package/dist/src/helpers/inputMask.test.d.ts +1 -0
- package/dist/src/helpers/sx.d.ts +2 -0
- package/dist/src/helpers/sx.test.d.ts +1 -0
- package/dist/src/hooks/useFocusTrap.hook.d.ts +10 -0
- package/dist/src/hooks/useTopLayer.hook.d.ts +49 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/src/table/components/columns/helpers/useElementHeightPx.d.ts +6 -3
- package/dist/src/table/components/columns/helpers/useProxyHorizontalScrollSync.d.ts +9 -6
- package/dist/src/table/hooks/useToggleMenuVisibility.hook.d.ts +6 -4
- package/dist/src/table/hooks/useTranslations.d.ts +15 -8
- package/dist/src/table/shared-components/StyledCheckbox.d.ts +7 -4
- package/dist/src/table/shared-components/StyledMenuItem.d.ts +18 -2
- package/dist/src/table/shared-components/menu-item/index.d.ts +13 -2
- package/dist/src/table/shared-components/tooltip/index.d.ts +5 -1
- package/dist/src/table/types.d.ts +1 -1
- package/dist/table/components/Fetching.js +4 -4
- package/dist/table/components/StyledTable.module.js +48 -48
- package/dist/table/components/TableRow.js +7 -7
- package/dist/table/components/TableSkeleton.js +6 -6
- package/dist/table/components/columns/action-column/actionColumn.js +14 -11
- package/dist/table/components/columns/action-column/components/HeaderActionMenu.js +52 -49
- package/dist/table/components/columns/action-column/components/RowActionMenu.js +40 -36
- package/dist/table/components/columns/expandColumn.js +12 -9
- package/dist/table/components/table-footer/TablePagination.js +28 -25
- package/dist/table/components/table-footer/TableRowCountSelect.js +31 -28
- package/dist/table/components/table-header/TableHeaderCell.js +54 -45
- package/dist/table/custom-features/focus-rows/FocusRowsFeature.js +29 -25
- package/dist/table/helpers/cn.js +4 -5
- package/dist/table/hooks/useColumnVirtualizer.js +1 -1
- package/dist/table/hooks/usePersistedPageSize.js +6 -6
- package/dist/table/hooks/useTranslations.js +6 -4
- package/dist/table/hooks/useWindowWidthSize.hook.js +1 -1
- package/dist/table/shared-components/StyledCheckbox.js +54 -55
- package/dist/table/shared-components/StyledCheckbox.module.js +9 -9
- package/dist/table/shared-components/StyledMenuItem.js +14 -17
- package/dist/table/shared-components/button/StyledButton.module.js +8 -8
- package/dist/table/shared-components/menu-item/index.js +15 -16
- package/dist/table/shared-components/tooltip/index.js +4 -23
- package/package.json +9 -18
- package/src/styles/components-colors/inputVariables.css +59 -57
- package/src/styles/index.css +38 -0
- package/dist/components/feedback/dialog/StyledDialogActions.module.js +0 -8
- package/dist/components/feedback/dialog/StyledDialogContent.module.js +0 -4
- package/dist/components/feedback/dialog/StyledDialogTitle.module.js +0 -4
- package/dist/components/icons/arrow-expand/ArrowExpand.js +0 -18
- package/dist/components/icons/arrow-expand/index.js +0 -1
- package/dist/components/icons/arrow-shrink/ArrowShrink.js +0 -18
- package/dist/components/icons/arrow-shrink/index.js +0 -1
- package/dist/components/inputs/checkbox/StyledCheckbox.js +0 -20
- package/dist/components/inputs/radio-button/StyledRadio.js +0 -17
- package/dist/datetime/components/date-picker/components/HelperTextWithTooltip.js +0 -39
- package/dist/datetime/shared-components/ExpandIcon.js +0 -18
- package/dist/datetime/shared-components/StyledFormControl.js +0 -23
- package/dist/datetime/shared-components/StyledInputField.js +0 -47
- package/dist/datetime/shared-components/StyledSelect.js +0 -47
- package/dist/datetime/shared-components/StyledSelectItem.js +0 -13
- package/dist/datetime/shared-components/StyledTooltip.js +0 -32
- package/dist/src/components/icons/arrow-expand/ArrowExpand.d.ts +0 -2
- package/dist/src/components/icons/arrow-expand/index.d.ts +0 -1
- package/dist/src/components/icons/arrow-shrink/ArrowShrink.d.ts +0 -2
- package/dist/src/components/icons/arrow-shrink/index.d.ts +0 -1
- package/dist/src/components/inputs/checkbox/StyledCheckbox.d.ts +0 -4
- package/dist/src/components/inputs/radio-button/StyledRadio.d.ts +0 -4
- package/dist/src/components/inputs/radio-button/StyledRadioGroup.d.ts +0 -4
- package/dist/src/components/inputs/switch/StyledSwitch.d.ts +0 -5
- package/dist/src/components/utils/accordion/StyledAccordion.d.ts +0 -2
- package/dist/src/components/utils/accordion/StyledAccordionDetails.d.ts +0 -2
- package/dist/src/components/utils/accordion/StyledAccordionSummary.d.ts +0 -8
- package/dist/src/datetime/components/date-picker/components/HelperTextWithTooltip.d.ts +0 -5
|
@@ -1,26 +1,33 @@
|
|
|
1
|
-
import { cn as
|
|
2
|
-
import
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
var
|
|
7
|
-
const o =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { cn as A } from "../../../../helpers/cn.js";
|
|
2
|
+
import I from "./StyledAccordion.module.js";
|
|
3
|
+
import { AccordionContext as S } from "./AccordionContext.js";
|
|
4
|
+
import { useId as l, useMemo as y, useState as C } from "react";
|
|
5
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
6
|
+
var N = ({ className: d, children: m, expanded: t, defaultExpanded: p, disabled: e, onChange: u, ...f }) => {
|
|
7
|
+
const n = l(), r = l(), c = t !== void 0, [a, v] = C(!!p), o = c ? !!t : a, g = () => {
|
|
8
|
+
const i = !o;
|
|
9
|
+
c || v(i), u?.(i);
|
|
10
|
+
}, x = y(() => ({
|
|
11
|
+
open: o,
|
|
12
|
+
toggle: g,
|
|
13
|
+
disabled: e,
|
|
14
|
+
triggerId: n,
|
|
15
|
+
panelId: r
|
|
16
|
+
}), [
|
|
17
|
+
o,
|
|
18
|
+
e,
|
|
19
|
+
n,
|
|
20
|
+
r
|
|
21
|
+
]);
|
|
22
|
+
return /* @__PURE__ */ s("div", {
|
|
23
|
+
...f,
|
|
24
|
+
className: A(I.AccordionRoot, d),
|
|
25
|
+
children: /* @__PURE__ */ s(S.Provider, {
|
|
26
|
+
value: x,
|
|
27
|
+
children: m
|
|
21
28
|
})
|
|
22
29
|
});
|
|
23
30
|
};
|
|
24
31
|
export {
|
|
25
|
-
|
|
32
|
+
N as StyledAccordion
|
|
26
33
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var r = "
|
|
1
|
+
var r = "_AccordionRoot_95gyk_1", _ = "_Trigger_95gyk_9", g = "_Header_95gyk_18", e = "_TriggerIcon_95gyk_42", o = "_TriggerIconRight_95gyk_50", a = "_Panel_95gyk_58", n = "_Content_95gyk_66", t = {
|
|
2
2
|
AccordionRoot: r,
|
|
3
|
-
Trigger:
|
|
4
|
-
Header:
|
|
3
|
+
Trigger: _,
|
|
4
|
+
Header: g,
|
|
5
5
|
TriggerIcon: e,
|
|
6
|
-
TriggerIconRight:
|
|
7
|
-
Panel:
|
|
8
|
-
Content:
|
|
6
|
+
TriggerIconRight: o,
|
|
7
|
+
Panel: a,
|
|
8
|
+
Content: n
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
t as default
|
|
12
12
|
};
|
|
@@ -1,16 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import n from "./StyledAccordion.module.js";
|
|
2
|
+
import { useAccordionContext as g } from "./AccordionContext.js";
|
|
3
|
+
import { clsx as s } from "clsx";
|
|
4
|
+
import { useEffect as h, useRef as v, useState as x } from "react";
|
|
5
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
6
|
+
var C = ({ children: r, className: i, contentClassName: l, ...a }) => {
|
|
7
|
+
const { open: d, panelId: m, triggerId: u } = g(), e = v(null), [f, p] = x(0);
|
|
8
|
+
return h(() => {
|
|
9
|
+
if (!e.current) return;
|
|
10
|
+
const t = () => p(e.current?.scrollHeight ?? 0);
|
|
11
|
+
t();
|
|
12
|
+
const o = new ResizeObserver(t);
|
|
13
|
+
return o.observe(e.current), () => o.disconnect();
|
|
14
|
+
}, [r]), /* @__PURE__ */ c("div", {
|
|
15
|
+
...a,
|
|
16
|
+
id: m,
|
|
17
|
+
role: "region",
|
|
18
|
+
"aria-labelledby": u,
|
|
19
|
+
className: s(n.Panel, i),
|
|
20
|
+
style: { "--accordion-panel-height": d ? `${f}px` : "0px" },
|
|
21
|
+
children: /* @__PURE__ */ c("div", {
|
|
22
|
+
ref: e,
|
|
23
|
+
className: s(n.Content, l),
|
|
24
|
+
children: r
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
};
|
|
14
28
|
export {
|
|
15
|
-
|
|
29
|
+
C as StyledAccordionDetails
|
|
16
30
|
};
|
|
@@ -1,35 +1,42 @@
|
|
|
1
|
-
import { ChevronDownIcon as
|
|
1
|
+
import { ChevronDownIcon as b } from "../../../icons/chevron-down-icon/ChevronDownIcon.js";
|
|
2
2
|
import r from "./StyledAccordion.module.js";
|
|
3
|
-
import
|
|
3
|
+
import { useAccordionContext as A } from "./AccordionContext.js";
|
|
4
|
+
import t from "clsx";
|
|
4
5
|
import "react";
|
|
5
|
-
import { Fragment as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"--trigger-
|
|
10
|
-
"--trigger-
|
|
11
|
-
"--
|
|
12
|
-
"--chevron-size": t ? "20px" : "24px",
|
|
6
|
+
import { Fragment as c, jsx as o, jsxs as l } from "react/jsx-runtime";
|
|
7
|
+
var _ = ({ size: m = "large", expandChevronRight: n, className: d, headerClassName: g, sx: p, children: x, onClick: f, ...h }) => {
|
|
8
|
+
const { open: a, toggle: u, disabled: y, triggerId: I, panelId: v } = A(), e = m === "small", N = {
|
|
9
|
+
"--trigger-height": e ? "48px" : "72px",
|
|
10
|
+
"--trigger-padding-x": e ? "8px" : "16px",
|
|
11
|
+
"--trigger-font-size": e ? "14px" : "18px",
|
|
12
|
+
"--chevron-size": e ? "20px" : "24px",
|
|
13
13
|
...p
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
14
|
+
}, i = /* @__PURE__ */ o(b, {
|
|
15
|
+
className: t(r.TriggerIcon, n && r.TriggerIconRight),
|
|
16
|
+
"data-state-icon": !0
|
|
17
|
+
}), s = /* @__PURE__ */ o("span", {
|
|
18
|
+
className: "m-0 flex flex-grow items-center",
|
|
19
|
+
children: x
|
|
20
|
+
});
|
|
21
|
+
return /* @__PURE__ */ o("h3", {
|
|
22
|
+
className: t(r.Header, g),
|
|
23
|
+
children: /* @__PURE__ */ o("button", {
|
|
24
|
+
...h,
|
|
25
|
+
type: "button",
|
|
26
|
+
id: I,
|
|
27
|
+
"aria-expanded": a,
|
|
28
|
+
"aria-controls": v,
|
|
29
|
+
disabled: y,
|
|
30
|
+
onClick: (S) => {
|
|
31
|
+
f?.(S), u();
|
|
32
|
+
},
|
|
33
|
+
className: t(r.Trigger, d),
|
|
34
|
+
style: N,
|
|
35
|
+
"data-panel-open": a ? "" : void 0,
|
|
36
|
+
children: n ? /* @__PURE__ */ l(c, { children: [s, i] }) : /* @__PURE__ */ l(c, { children: [i, s] })
|
|
30
37
|
})
|
|
31
38
|
});
|
|
32
39
|
};
|
|
33
40
|
export {
|
|
34
|
-
|
|
41
|
+
_ as StyledAccordionSummary
|
|
35
42
|
};
|
|
@@ -4,13 +4,14 @@ import { StyledButton as m } from "../../inputs/button/StyledButton.js";
|
|
|
4
4
|
import { useMobileMediaQuery as s } from "../../../hooks/useMediaQuery.hook.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx as t } from "react/jsx-runtime";
|
|
7
|
-
var v = ({ className:
|
|
8
|
-
const
|
|
7
|
+
var v = ({ className: e, contentToCopy: n, locale: i, messageInfo: p, text: r }) => {
|
|
8
|
+
const o = i === "en" ? "Copy" : "Kopier", l = s();
|
|
9
9
|
return /* @__PURE__ */ t(d, {
|
|
10
|
-
title:
|
|
10
|
+
title: o,
|
|
11
11
|
children: /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(m, {
|
|
12
12
|
dataTest: "copy-button",
|
|
13
|
-
|
|
13
|
+
"aria-label": r ?? o,
|
|
14
|
+
className: e,
|
|
14
15
|
size: "small",
|
|
15
16
|
variant: "text",
|
|
16
17
|
startIcon: /* @__PURE__ */ t(c, {
|
|
@@ -18,11 +19,11 @@ var v = ({ className: r, contentToCopy: e, locale: o, messageInfo: n, text: p })
|
|
|
18
19
|
height: 20
|
|
19
20
|
}),
|
|
20
21
|
onClick: () => {
|
|
21
|
-
navigator.clipboard.writeText(
|
|
22
|
-
|
|
22
|
+
navigator.clipboard.writeText(n).then(() => {
|
|
23
|
+
p(i === "no" ? "Kopiert til utklippstavle" : "Copied to clipboard");
|
|
23
24
|
}).catch((a) => console.error("Copying failed with this: ", a));
|
|
24
25
|
},
|
|
25
|
-
children: !l && (
|
|
26
|
+
children: !l && (r ?? o)
|
|
26
27
|
}) })
|
|
27
28
|
});
|
|
28
29
|
};
|
|
@@ -1,32 +1,35 @@
|
|
|
1
1
|
import { cn as m } from "../../../helpers/cn.js";
|
|
2
|
-
import { ContentCopyIcon as
|
|
3
|
-
import { StyledTooltip as
|
|
2
|
+
import { ContentCopyIcon as s } from "../../icons/content-copy-icon/ContentCopyIcon.js";
|
|
3
|
+
import { StyledTooltip as c } from "../../data-display/tooltip/StyledTooltip.js";
|
|
4
4
|
import { StyledButton as d } from "../../inputs/button/StyledButton.js";
|
|
5
5
|
import e from "./CopyWrapper.module.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx as t, jsxs as h } from "react/jsx-runtime";
|
|
8
|
-
var
|
|
8
|
+
var b = ({ className: i, contentToCopy: p, locale: o, messageInfo: a, children: n }) => /* @__PURE__ */ h("div", {
|
|
9
9
|
className: m("flex items-center hover:text-gama-500", e["copy-wrapper"], i),
|
|
10
|
-
children: [n, /* @__PURE__ */ t(
|
|
10
|
+
children: [n, /* @__PURE__ */ t(c, {
|
|
11
11
|
title: o === "no" ? "Kopier" : "Copy",
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
12
|
+
children: /* @__PURE__ */ t("div", {
|
|
13
|
+
className: e["hidden-copy"],
|
|
14
|
+
children: /* @__PURE__ */ t(d, {
|
|
15
|
+
dataTest: "copy-button",
|
|
16
|
+
"aria-label": o === "no" ? "Kopier" : "Copy",
|
|
17
|
+
size: "small",
|
|
18
|
+
variant: "text",
|
|
19
|
+
className: "cursor-pointer",
|
|
20
|
+
onClick: (r) => {
|
|
21
|
+
r.preventDefault(), r.stopPropagation(), navigator.clipboard.writeText(p).then(() => {
|
|
22
|
+
a(o === "no" ? "Kopiert til utklippstavle" : "Copied to clipboard");
|
|
23
|
+
}).catch((l) => console.error("Copying failed with this: ", l));
|
|
24
|
+
},
|
|
25
|
+
startIcon: /* @__PURE__ */ t(s, {
|
|
26
|
+
width: 20,
|
|
27
|
+
height: 20
|
|
28
|
+
})
|
|
26
29
|
})
|
|
27
|
-
})
|
|
30
|
+
})
|
|
28
31
|
})]
|
|
29
32
|
});
|
|
30
33
|
export {
|
|
31
|
-
|
|
34
|
+
b as CopyWrapper
|
|
32
35
|
};
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { FilterIcon as d } from "../../icons/filter-icon/FilterIcon.js";
|
|
2
|
-
import { StyledButton as
|
|
3
|
-
import { useDynamicToolbarLayout as
|
|
4
|
-
import
|
|
5
|
-
import { Fragment as
|
|
6
|
-
var
|
|
7
|
-
const { filterIconOnly:
|
|
8
|
-
return /* @__PURE__ */ r(
|
|
2
|
+
import { StyledButton as c } from "../../inputs/button/StyledButton.js";
|
|
3
|
+
import { useDynamicToolbarLayout as s } from "../../custom/module/header-layout/DynamicToolbarLayoutContext.js";
|
|
4
|
+
import g from "clsx";
|
|
5
|
+
import { Fragment as h, jsx as r, jsxs as u } from "react/jsx-runtime";
|
|
6
|
+
var F = ({ filterIsActive: i, label: o, hideLabel: l, size: t = "large", variant: a = "outlined", ...n }) => {
|
|
7
|
+
const { filterIconOnly: m } = s(), e = l ?? m;
|
|
8
|
+
return /* @__PURE__ */ r(h, { children: /* @__PURE__ */ u("div", {
|
|
9
9
|
className: "relative h-fit w-fit",
|
|
10
|
-
children: [/* @__PURE__ */ r(
|
|
11
|
-
...
|
|
10
|
+
children: [/* @__PURE__ */ r(c, {
|
|
11
|
+
...n,
|
|
12
12
|
type: "button",
|
|
13
|
+
"aria-label": e ? o ?? "Filter" : void 0,
|
|
13
14
|
startIcon: /* @__PURE__ */ r(d, {
|
|
14
15
|
width: t === "large" ? 24 : 20,
|
|
15
16
|
height: t === "large" ? 24 : 20
|
|
16
17
|
}),
|
|
17
|
-
variant:
|
|
18
|
+
variant: a,
|
|
18
19
|
size: t,
|
|
19
|
-
children: !
|
|
20
|
-
}),
|
|
20
|
+
children: !e && (o ?? "Filter")
|
|
21
|
+
}), i && /* @__PURE__ */ r("div", { className: g("absolute h-2 w-2 rounded-full bg-gama-400", t === "large" ? "right-2 top-2" : "right-1 top-1") })]
|
|
21
22
|
}) });
|
|
22
23
|
};
|
|
23
24
|
export {
|
|
24
|
-
|
|
25
|
+
F as StyledFilterButton
|
|
25
26
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FilterIcon as b } from "../../icons/filter-icon/FilterIcon.js";
|
|
2
2
|
import { StyledButton as v } from "../../inputs/button/StyledButton.js";
|
|
3
3
|
import { StyledPopover as E } from "../popover/StyledPopover.js";
|
|
4
|
-
import { useDynamicToolbarLayout as
|
|
5
|
-
import
|
|
6
|
-
import c, { useState as
|
|
7
|
-
import { Fragment as
|
|
4
|
+
import { useDynamicToolbarLayout as F } from "../../custom/module/header-layout/DynamicToolbarLayoutContext.js";
|
|
5
|
+
import k from "clsx";
|
|
6
|
+
import c, { useState as x } from "react";
|
|
7
|
+
import { Fragment as C, jsx as e, jsxs as y } from "react/jsx-runtime";
|
|
8
8
|
var I = () => {
|
|
9
|
-
const [r, t] =
|
|
9
|
+
const [r, t] = x(null), s = (a) => {
|
|
10
10
|
const o = a.currentTarget;
|
|
11
11
|
t(o);
|
|
12
12
|
}, l = () => {
|
|
@@ -19,14 +19,14 @@ var I = () => {
|
|
|
19
19
|
r ? l() : s(a);
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
}, N = (r) => c.isValidElement(r) || typeof r == "string" || typeof r == "number" || r === null || Array.isArray(r), $ = ({ filterIsActive: r, popoverContent: t, dataTest: s, disabled: l, size: i = "large", variant: a = "outlined", popoverProps: o, anchorNode: h, label:
|
|
23
|
-
const { onAnchorClick:
|
|
22
|
+
}, N = (r) => c.isValidElement(r) || typeof r == "string" || typeof r == "number" || r === null || Array.isArray(r), $ = ({ filterIsActive: r, popoverContent: t, dataTest: s, disabled: l, size: i = "large", variant: a = "outlined", popoverProps: o, anchorNode: h, label: d, hideLabel: A }) => {
|
|
23
|
+
const { onAnchorClick: u, onClose: m, anchorEl: n } = I(), { filterIconOnly: O } = F(), g = A ?? O, f = h?.({
|
|
24
24
|
isOpen: !!n,
|
|
25
25
|
onClose: m
|
|
26
|
-
}),
|
|
27
|
-
return /* @__PURE__ */
|
|
26
|
+
}), p = c.useId();
|
|
27
|
+
return /* @__PURE__ */ y(C, { children: [/* @__PURE__ */ y("div", {
|
|
28
28
|
className: "relative h-fit w-fit",
|
|
29
|
-
children: [h && c.isValidElement(
|
|
29
|
+
children: [h && c.isValidElement(f) ? c.cloneElement(f, { onClick: u }) : /* @__PURE__ */ e(v, {
|
|
30
30
|
type: "button",
|
|
31
31
|
disabled: l,
|
|
32
32
|
variant: a,
|
|
@@ -34,17 +34,18 @@ var I = () => {
|
|
|
34
34
|
width: i === "large" ? 24 : 20,
|
|
35
35
|
height: i === "large" ? 24 : 20
|
|
36
36
|
}),
|
|
37
|
-
onClick:
|
|
37
|
+
onClick: u,
|
|
38
38
|
size: i,
|
|
39
39
|
dataTest: s,
|
|
40
|
+
"aria-label": g ? d ?? "Filter" : void 0,
|
|
40
41
|
"aria-haspopup": "true",
|
|
41
42
|
"aria-expanded": !!n,
|
|
42
|
-
"aria-controls": n ?
|
|
43
|
-
children: !
|
|
44
|
-
}), r && /* @__PURE__ */ e("div", { className:
|
|
43
|
+
"aria-controls": n ? p : void 0,
|
|
44
|
+
children: !g && (d ?? "Filter")
|
|
45
|
+
}), r && /* @__PURE__ */ e("div", { className: k("absolute h-2 w-2 rounded-full bg-gama-400", i === "large" ? "right-2 top-2" : "right-1 top-1") })]
|
|
45
46
|
}), /* @__PURE__ */ e(E, {
|
|
46
47
|
...o,
|
|
47
|
-
id:
|
|
48
|
+
id: p,
|
|
48
49
|
open: !!n,
|
|
49
50
|
anchorEl: n,
|
|
50
51
|
onClose: m,
|
|
@@ -1,17 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
1
|
+
import { cn as A } from "../../../helpers/cn.js";
|
|
2
|
+
import { resolveSx as i } from "../../../helpers/sx.js";
|
|
3
|
+
import { TOP_LAYER_PROPS as F, TOP_LAYER_RESET_STYLE as P, getOpenModalDialogAncestor as S, useTopLayerRef as h } from "../../../hooks/useTopLayer.hook.js";
|
|
4
|
+
import { useMemo as l } from "react";
|
|
5
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
6
|
+
import { FloatingPortal as w, autoUpdate as E, flip as L, offset as z, shift as D, useDismiss as M, useFloating as O, useInteractions as N, useMergeRefs as k } from "@floating-ui/react";
|
|
7
|
+
var C = {
|
|
8
|
+
vertical: "bottom",
|
|
9
|
+
horizontal: "left"
|
|
10
|
+
}, U = {
|
|
11
|
+
vertical: "top",
|
|
12
|
+
horizontal: "left"
|
|
13
|
+
}, Y = (e, t) => `${t.vertical === "bottom" ? "top" : t.vertical === "top" ? "bottom" : e.vertical === "top" ? "top" : "bottom"}${e.horizontal === "left" ? "-start" : e.horizontal === "right" ? "-end" : ""}`, B = ({ open: e, anchorEl: t, onClose: p, anchorOrigin: r = C, transformOrigin: a = U, id: n, className: m, sx: f, slotProps: o, onClick: d, children: c }) => {
|
|
14
|
+
const { refs: u, floatingStyles: g, context: v } = O({
|
|
15
|
+
open: e,
|
|
16
|
+
placement: l(() => Y(r, a), [r, a]),
|
|
17
|
+
strategy: "fixed",
|
|
18
|
+
whileElementsMounted: E,
|
|
19
|
+
elements: { reference: t ?? void 0 },
|
|
20
|
+
middleware: [
|
|
21
|
+
z(4),
|
|
22
|
+
L({ padding: 8 }),
|
|
23
|
+
D({ padding: 8 })
|
|
24
|
+
],
|
|
25
|
+
onOpenChange: (y, T, b) => {
|
|
26
|
+
y || p?.(T ?? {}, b === "escape-key" ? "escapeKeyDown" : "backdropClick");
|
|
27
|
+
}
|
|
28
|
+
}), { getFloatingProps: R } = N([M(v, {
|
|
29
|
+
outsidePress: !0,
|
|
30
|
+
escapeKey: !0
|
|
31
|
+
})]), _ = k([h(u.setFloating)]), x = l(() => e ? S(t) : void 0, [e, t]);
|
|
32
|
+
return e ? /* @__PURE__ */ s(w, {
|
|
33
|
+
root: x,
|
|
34
|
+
children: /* @__PURE__ */ s("div", {
|
|
35
|
+
ref: _,
|
|
36
|
+
id: n,
|
|
37
|
+
...F,
|
|
38
|
+
style: {
|
|
39
|
+
...P,
|
|
40
|
+
...g,
|
|
41
|
+
...i(f),
|
|
42
|
+
...i(o?.paper?.sx),
|
|
43
|
+
...o?.paper?.style
|
|
44
|
+
},
|
|
45
|
+
...R({ onClick: d }),
|
|
46
|
+
className: A("z-[1300] overflow-auto rounded bg-white shadow-[0px_1px_12px_0px_rgba(0,0,0,0.15)]", m ?? "my-1", o?.paper?.className),
|
|
47
|
+
children: c
|
|
48
|
+
})
|
|
49
|
+
}) : null;
|
|
50
|
+
};
|
|
15
51
|
export {
|
|
16
|
-
|
|
52
|
+
B as StyledPopover
|
|
17
53
|
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import o from "clsx";
|
|
2
|
+
import { useRef as v } from "react";
|
|
3
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
4
|
+
import { useVirtualizer as y } from "@tanstack/react-virtual";
|
|
5
|
+
var E = ({ items: i, itemSize: t, height: d, width: f = "100%", measureRows: n = !1, overscan: c = 5, getItemKey: m, className: u, contentClassName: p, contentStyle: x, dataTest: h, renderItem: g }) => {
|
|
6
|
+
const s = v(null), r = y({
|
|
7
|
+
count: i.length,
|
|
8
|
+
getScrollElement: () => s.current,
|
|
9
|
+
estimateSize: typeof t == "function" ? t : () => t,
|
|
10
|
+
getItemKey: m,
|
|
11
|
+
overscan: c
|
|
12
|
+
});
|
|
13
|
+
return /* @__PURE__ */ l("div", {
|
|
14
|
+
ref: s,
|
|
15
|
+
tabIndex: 0,
|
|
16
|
+
className: o("overflow-auto", u),
|
|
17
|
+
style: {
|
|
18
|
+
height: d,
|
|
19
|
+
width: f
|
|
20
|
+
},
|
|
21
|
+
"data-testid": h,
|
|
22
|
+
children: /* @__PURE__ */ l("div", {
|
|
23
|
+
className: o("relative w-full", p),
|
|
24
|
+
style: {
|
|
25
|
+
height: r.getTotalSize(),
|
|
26
|
+
...x
|
|
27
|
+
},
|
|
28
|
+
children: r.getVirtualItems().map((e) => {
|
|
29
|
+
const a = i[e.index];
|
|
30
|
+
return a === void 0 ? null : /* @__PURE__ */ l("div", {
|
|
31
|
+
"data-index": e.index,
|
|
32
|
+
ref: n ? r.measureElement : void 0,
|
|
33
|
+
className: "absolute left-0 top-0 w-full",
|
|
34
|
+
style: {
|
|
35
|
+
transform: `translateY(${e.start}px)`,
|
|
36
|
+
height: n ? void 0 : e.size
|
|
37
|
+
},
|
|
38
|
+
children: g(a, e.index)
|
|
39
|
+
}, e.key);
|
|
40
|
+
})
|
|
41
|
+
})
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
export {
|
|
45
|
+
E as VirtualList
|
|
46
|
+
};
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import { setPickerPosition as f } from "./helpers.js";
|
|
2
2
|
import { StyledDayPicker as k } from "./components/StyledDayPicker.js";
|
|
3
|
-
import { StyledCalendarPicker as
|
|
4
|
-
import { DatePickerInputIndex as
|
|
5
|
-
import { useIsMobileView as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { Fragment as
|
|
10
|
-
var j = (
|
|
11
|
-
const
|
|
3
|
+
import { StyledCalendarPicker as x } from "./components/StyledCalendarPicker.js";
|
|
4
|
+
import { DatePickerInputIndex as u } from "./components/DatePickerInputIndex.js";
|
|
5
|
+
import { useIsMobileView as v } from "../../hooks/useWindowWidthSize.hook.js";
|
|
6
|
+
import { StyledDrawer as C } from "../../../components/navigation/drawer/StyledDrawer.js";
|
|
7
|
+
import { useBackNavigationClose as b } from "../../hooks/useBackNavigationClose.hook.js";
|
|
8
|
+
import { useState as a } from "react";
|
|
9
|
+
import { Fragment as h, jsx as o, jsxs as y } from "react/jsx-runtime";
|
|
10
|
+
var j = (p) => {
|
|
11
|
+
const s = v(), [e, n] = a(null), [c, m] = a(!1), [d, i] = a(!1), P = (l) => {
|
|
12
12
|
n(l.currentTarget), f(l, m);
|
|
13
13
|
}, r = () => {
|
|
14
14
|
i(!0), n(null);
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
b({
|
|
17
17
|
open: !!e,
|
|
18
18
|
onClose: r
|
|
19
19
|
});
|
|
20
20
|
const t = {
|
|
21
|
-
...
|
|
21
|
+
...p,
|
|
22
22
|
validateOnCalendarClose: d,
|
|
23
23
|
onValidatedOnce: () => i(!1)
|
|
24
24
|
};
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */ o(
|
|
25
|
+
return /* @__PURE__ */ y(h, { children: [
|
|
26
|
+
/* @__PURE__ */ o(u, {
|
|
27
27
|
datePickerProps: t,
|
|
28
28
|
onClick: P
|
|
29
29
|
}),
|
|
30
|
-
!
|
|
30
|
+
!s && /* @__PURE__ */ o(x, {
|
|
31
31
|
datePickerProps: { ...t },
|
|
32
32
|
popoverProps: {
|
|
33
33
|
open: !!e,
|
|
34
34
|
anchorEl: e,
|
|
35
35
|
onClose: r
|
|
36
36
|
},
|
|
37
|
-
positionAbove:
|
|
37
|
+
positionAbove: c
|
|
38
38
|
}),
|
|
39
|
-
|
|
39
|
+
s && /* @__PURE__ */ o(C, {
|
|
40
40
|
anchor: "bottom",
|
|
41
41
|
open: !!e,
|
|
42
42
|
onClose: r,
|
|
43
43
|
sx: { zIndex: 1300 },
|
|
44
44
|
className: "z-[1300]",
|
|
45
45
|
children: /* @__PURE__ */ o("div", {
|
|
46
|
-
className: "mx-auto max-w-[360px]",
|
|
46
|
+
className: "mx-auto max-w-[360px] px-2 pb-[max(1.5rem,env(safe-area-inset-bottom))]",
|
|
47
47
|
children: /* @__PURE__ */ o(k, {
|
|
48
48
|
datePickerProps: { ...t },
|
|
49
49
|
popoverProps: {
|