@adgytec/adgytec-web-ui-components 2.1.8 → 2.1.9
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/App.d.ts +3 -0
- package/dist/assets/BaseCalendar.css +1 -1
- package/dist/chunks/BaseCalendar +113 -84
- package/dist/chunks/BaseCalendar.map +1 -1
- package/dist/chunks/compiler-runtime +13 -13
- package/dist/chunks/compiler-runtime.map +1 -1
- package/dist/chunks/core3.map +1 -1
- package/dist/chunks/useGlobalListeners +2 -2
- package/dist/chunks/useGlobalListeners.map +1 -1
- package/dist/chunks/useHover +12 -4
- package/dist/chunks/useHover.map +1 -1
- package/dist/chunks/usePress +11 -1
- package/dist/chunks/usePress.map +1 -1
- package/dist/{src/components → components}/Button/core/withTooltip.d.ts +1 -1
- package/dist/components/Calendar/core/useCalendarState.d.ts +4 -0
- package/dist/{src/components → components}/Input/DateField/DateField.d.ts +1 -1
- package/dist/{src/components → components}/Input/DatePicker/DatePicker/DatePicker.d.ts +1 -1
- package/dist/{src/components → components}/Input/DatePicker/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/{src/components → components}/Input/Select/ComboBox/ComboBox.d.ts +1 -1
- package/dist/{src/components → components}/Input/Select/Select/Select.d.ts +1 -1
- package/dist/{src/components → components}/Input/Select/SelectList/SelectList.d.ts +1 -1
- package/dist/{src/components → components}/Input/Select/SelectListSection/SelectListSection.d.ts +1 -1
- package/dist/{src/components → components}/Input/Slider/CenteredSlider/CenteredSlider.d.ts +1 -1
- package/dist/{src/components → components}/Input/Slider/RangeSlider/RangeSlider.d.ts +1 -1
- package/dist/{src/components → components}/Input/Slider/Slider/Slider.d.ts +1 -1
- package/dist/{src/components → components}/Input/TimeField/TimeField.d.ts +1 -1
- package/dist/{src/components → components}/Menu/Menu/Menu.d.ts +1 -1
- package/dist/{src/components → components}/Menu/MenuSection/MenuSection.d.ts +1 -1
- package/dist/{src/components → components}/Tabs/TabList/TabList.d.ts +1 -1
- package/dist/{src/components → components}/Tabs/TabPanels/TabPanels.d.ts +1 -1
- package/dist/{src/components → components}/ThemeSelector/ThemeItem.d.ts +1 -1
- package/dist/index.d.ts +22 -2
- package/package.json +16 -16
- package/dist/src/App.d.ts +0 -3
- package/dist/src/components/Calendar/core/useCalendarState.d.ts +0 -3
- package/dist/src/index.d.ts +0 -22
- /package/dist/{src/components → components}/AppBar/AppBar/AppBar.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/AppBar/index.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/AppBar/types.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/AppBarAction/AppBarAction.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/AppBarAction/index.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/AppBarAvatar/AppBarAvatar.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/AppBarAvatar/index.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/AppBarHeadline/AppBarHeadline.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/AppBarHeadline/index.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/AppBarState/AppBarState.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/AppBarState/context.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/AppBarState/index.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/core/alignment.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/core/context.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/core/size.d.ts +0 -0
- /package/dist/{src/components → components}/AppBar/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/Button/Button.d.ts +0 -0
- /package/dist/{src/components → components}/Button/Button/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/Button/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ButtonGroup/ButtonGroup.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ButtonGroup/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ButtonGroup/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ButtonGroupContext/context.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ButtonGroupContext/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ButtonGroupContext/useButtonGroupContext.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ButtonGroupContext/useConnectedButtonGroupContext.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ConnectedButton/ConnectedButton.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ConnectedButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ConnectedButton/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ConnectedButtonGroup/ConnectedButtonGroup.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ConnectedButtonGroup/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/ConnectedButtonGroup/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ButtonGroups/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/IconButton/IconButton.d.ts +0 -0
- /package/dist/{src/components → components}/Button/IconButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/IconButton/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/LinkButton/LinkButton.d.ts +0 -0
- /package/dist/{src/components → components}/Button/LinkButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/LinkButton/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/LinkIconButton/LinkIconButton.d.ts +0 -0
- /package/dist/{src/components → components}/Button/LinkIconButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/LinkIconButton/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButton/SplitButton.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButton/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButtonContext/context.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButtonContext/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButtonContext/useSplitButtonContext.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButtonPrimary/SplitButtonPrimary.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButtonPrimary/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButtonPrimary/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButtonTrigger/SplitButtonTrigger.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButtonTrigger/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/SplitButtonTrigger/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/core/size.d.ts +0 -0
- /package/dist/{src/components → components}/Button/SplitButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ToggleButton/ToggleButton.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ToggleButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ToggleButton/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ToggleIconButton/ToggleIconButton.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ToggleIconButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/ToggleIconButton/types.d.ts +0 -0
- /package/dist/{src/components → components}/Button/core/button.d.ts +0 -0
- /package/dist/{src/components → components}/Button/core/color.d.ts +0 -0
- /package/dist/{src/components → components}/Button/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/Button/core/shape.d.ts +0 -0
- /package/dist/{src/components → components}/Button/core/sizes.d.ts +0 -0
- /package/dist/{src/components → components}/Button/core/useButtonConfig.d.ts +0 -0
- /package/dist/{src/components → components}/Button/core/variant.d.ts +0 -0
- /package/dist/{src/components → components}/Button/core/width.d.ts +0 -0
- /package/dist/{src/components → components}/Button/index.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/BaseCalendar/BaseCalendar.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/BaseCalendar/index.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/Calendar/Calendar.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/Calendar/index.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/CalendarCell/CalendarCell.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/CalendarCell/index.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/CalendarGrid/CalendarGrid.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/CalendarGrid/index.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/CalendarMenuItem/CalendarMenuItem.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/CalendarMenuItem/index.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/CalendarMonthMenu/CalendarMonthMenu.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/CalendarMonthMenu/index.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/CalendarYearMenu/CalendarYearMenu.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/CalendarYearMenu/index.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/RangeCalendar/RangeCalendar.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/RangeCalendar/index.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/core/calendar.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/Calendar/index.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/ActionDialog/ActionDialog.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/ActionDialog/index.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/ActionDialog/types.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/Dialog/Dialog.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/Dialog/index.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/Modal/Modal.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/Modal/index.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/ModalOverlay/ModalOverlay.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/ModalOverlay/index.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/core/context.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/core/typography.d.ts +0 -0
- /package/dist/{src/components → components}/Dialog/index.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/Disclosure/Disclosure.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/Disclosure/index.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/DisclosureGroup/DisclosureGroup.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/DisclosureGroup/index.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/DisclosureHeader/DisclosureHeader.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/DisclosureHeader/index.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/DisclosurePanel/DisclosurePanel.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/DisclosurePanel/index.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/context/context.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/context/index.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/context/useDisclosureTypographyContext.d.ts +0 -0
- /package/dist/{src/components → components}/Disclosure/index.d.ts +0 -0
- /package/dist/{src/components → components}/Divider/Divider.d.ts +0 -0
- /package/dist/{src/components → components}/Divider/index.d.ts +0 -0
- /package/dist/{src/components → components}/Icon/Icon.d.ts +0 -0
- /package/dist/{src/components → components}/Icon/index.d.ts +0 -0
- /package/dist/{src/components → components}/Icon/types.d.ts +0 -0
- /package/dist/{src/components → components}/Image/Image.d.ts +0 -0
- /package/dist/{src/components → components}/Image/index.d.ts +0 -0
- /package/dist/{src/components → components}/Image/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/CharacterCount/CharacterCount.d.ts +0 -0
- /package/dist/{src/components → components}/Input/CharacterCount/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Checkbox/Checkbox.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Checkbox/CheckboxGroup.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Checkbox/context.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Checkbox/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Checkbox/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/DateField/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/DateField/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/DatePicker/DatePicker/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/DatePicker/DatePicker/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/DatePicker/DateRangePicker/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/DatePicker/DateRangePicker/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/DatePicker/core/datePicker.d.ts +0 -0
- /package/dist/{src/components → components}/Input/DatePicker/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/DatePicker/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Description/Description.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Description/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/FieldError/FieldError.d.ts +0 -0
- /package/dist/{src/components → components}/Input/FieldError/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Input/Input.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Input/InputButton.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Input/handleInputButton.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Input/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Input/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Label/Label.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Label/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Radio/Radio.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Radio/RadioGroup.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Radio/context.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Radio/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Radio/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/SearchField/SearchField.d.ts +0 -0
- /package/dist/{src/components → components}/Input/SearchField/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/SearchField/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/ComboBox/context.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/ComboBox/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/ComboBox/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/ComboBoxPopover/ComboBoxPopover.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/ComboBoxPopover/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/ComboBoxTrigger/ComboBoxTrigger.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/ComboBoxTrigger/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/Select/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/Select/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/SelectItem/SelectItem.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/SelectItem/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/SelectItem/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/SelectList/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/SelectListSection/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/SelectListSectionHeader/SelectListSectionHeader.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/SelectListSectionHeader/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/SelectPopover/SelectPopover.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/SelectPopover/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/SelectTrigger/SelectTrigger.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/SelectTrigger/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Select/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/CenteredSlider/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/CenteredSlider/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/RangeSlider/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/RangeSlider/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/Slider/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/Slider/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/SliderOutput/SliderOutput.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/SliderOutput/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/SliderStops/SliderStops.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/SliderStops/core.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/SliderStops/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/SliderStops/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/SliderThumb/SliderThumb.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/SliderThumb/context.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/SliderThumb/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/core/color.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/core/size.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/core/slider.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/core/variant.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Slider/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Switch/Switch.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Switch/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/Switch/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/TextArea/TextArea.d.ts +0 -0
- /package/dist/{src/components → components}/Input/TextArea/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/TextArea/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/TimeField/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/TimeField/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/core/input.d.ts +0 -0
- /package/dist/{src/components → components}/Input/core/textField.d.ts +0 -0
- /package/dist/{src/components → components}/Input/hooks/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/hooks/useControllableState.d.ts +0 -0
- /package/dist/{src/components → components}/Input/index.d.ts +0 -0
- /package/dist/{src/components → components}/Loader/Loader.d.ts +0 -0
- /package/dist/{src/components → components}/Loader/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/Menu/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/Menu/types.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuItem/MenuItem.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuItem/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuItem/types.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuPopover/MenuPopover.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuPopover/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuSection/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuSectionHeader/MenuSectionHeader.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuSectionHeader/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuShortcut/MenuShortcut.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuShortcut/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuTrailingText/MenuTrailingText.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuTrailingText/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuTrigger/MenuTrigger.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/MenuTrigger/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/SubmenuPopover/SubmenuPopover.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/SubmenuPopover/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/context/context.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/context/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/context/useMenuConfigContext.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/core/color.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/core/layout.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/core/menu.d.ts +0 -0
- /package/dist/{src/components → components}/Menu/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/Navigation/Navigation.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/Navigation/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/Navigation/navContext.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/Navigation/navRenderingContext.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/Navigation/types.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationButton/NavigationButton.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationButton/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationButton/types.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationItemIconRenderer/NavigationItemIconRenderer.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationItemIconRenderer/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationLink/NavigationLink.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationLink/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem/NavigationLink/types.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem/core/navigationItem.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationItem/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationScrollContainer/NavigationScrollContainer.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationScrollContainer/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationSection/NavigationSection/NavigationSection.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationSection/NavigationSection/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationSection/NavigationSectionLabel/NavigationSectionLabel.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationSection/NavigationSectionLabel/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationSection/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationState/NavigationState.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationState/context.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationState/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/NavigationState/types.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/SubNavigation/SubNavigation/SubNavigation.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/SubNavigation/SubNavigation/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/SubNavigation/SubNavigationTrigger/SubNavigationTrigger.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/SubNavigation/SubNavigationTrigger/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/SubNavigation/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/core/navLabelContext.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/core/navigation.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/core/navigationInfo.d.ts +0 -0
- /package/dist/{src/components → components}/Navigation/index.d.ts +0 -0
- /package/dist/{src/components → components}/Popover/Popover.d.ts +0 -0
- /package/dist/{src/components → components}/Popover/index.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/BottomSheet/BottomSheet.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/BottomSheet/index.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/BottomSheetModal/BottomSheetModal.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/BottomSheetModal/context.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/BottomSheetModal/index.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/BottomSheetModal/types.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/SideSheet/SideSheet.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/SideSheet/SideSheetDialog.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/SideSheet/index.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/SideSheet/types.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/SideSheetModal/SideSheetModal.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/SideSheetModal/context.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/SideSheetModal/index.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/SideSheetModal/types.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/core/index.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/core/layout.d.ts +0 -0
- /package/dist/{src/components → components}/Sheets/index.d.ts +0 -0
- /package/dist/{src/components → components}/Snackbar/SnackbarRegion.d.ts +0 -0
- /package/dist/{src/components → components}/Snackbar/context.d.ts +0 -0
- /package/dist/{src/components → components}/Snackbar/index.d.ts +0 -0
- /package/dist/{src/components → components}/Snackbar/types.d.ts +0 -0
- /package/dist/{src/components → components}/Splash/Splash.d.ts +0 -0
- /package/dist/{src/components → components}/Splash/index.d.ts +0 -0
- /package/dist/{src/components → components}/Splash/types.d.ts +0 -0
- /package/dist/{src/components → components}/Splash/useSplash.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/Tab/Tab.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/Tab/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/TabList/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/TabPanel/TabPanel.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/TabPanel/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/TabPanels/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/Tabs/Tabs.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/Tabs/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tag/Tag.d.ts +0 -0
- /package/dist/{src/components → components}/Tag/core.d.ts +0 -0
- /package/dist/{src/components → components}/Tag/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tag/types.d.ts +0 -0
- /package/dist/{src/components → components}/ThemeSelector/ThemeProvider.d.ts +0 -0
- /package/dist/{src/components → components}/ThemeSelector/ThemeSelector.d.ts +0 -0
- /package/dist/{src/components → components}/ThemeSelector/core.d.ts +0 -0
- /package/dist/{src/components → components}/ThemeSelector/index.d.ts +0 -0
- /package/dist/{src/components → components}/ThemeSelector/types.d.ts +0 -0
- /package/dist/{src/components → components}/Toolbar/Toolbar.d.ts +0 -0
- /package/dist/{src/components → components}/Toolbar/ToolbarToggleButtonGroup.d.ts +0 -0
- /package/dist/{src/components → components}/Toolbar/index.d.ts +0 -0
- /package/dist/{src/components → components}/Toolbar/types.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltip/RichTooltip.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltip/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipActions/RichTooltipActions.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipActions/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipInfo/RichTooltipInfo.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipInfo/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/RichTooltipSubhead.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/RichTooltipText.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/RichTooltipInfo/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/RichTooltip/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/Tooltip/Tooltip.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/Tooltip/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/TooltipTrigger/TooltipTrigger.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/TooltipTrigger/index.d.ts +0 -0
- /package/dist/{src/components → components}/Tooltip/index.d.ts +0 -0
- /package/dist/{src/main.d.ts → main.d.ts} +0 -0
- /package/dist/{src/styles → styles}/core.d.ts +0 -0
- /package/dist/{src/styles → styles}/defaultTheme.d.ts +0 -0
- /package/dist/{src/utils → utils}/form/form.d.ts +0 -0
- /package/dist/{src/utils → utils}/form/index.d.ts +0 -0
- /package/dist/{src/utils → utils}/index.d.ts +0 -0
- /package/dist/{src/utils → utils}/ref/index.d.ts +0 -0
- /package/dist/{src/utils → utils}/ref/ref.d.ts +0 -0
- /package/dist/{src/utils → utils}/scroll/index.d.ts +0 -0
- /package/dist/{src/utils → utils}/scroll/scroll.d.ts +0 -0
- /package/dist/{src/utils → utils}/tapTarget/index.d.ts +0 -0
- /package/dist/{src/utils → utils}/tapTarget/tapTarget.d.ts +0 -0
- /package/dist/{src/utils → utils}/theme/build.d.ts +0 -0
- /package/dist/{src/utils → utils}/theme/index.d.ts +0 -0
- /package/dist/{src/utils → utils}/theme/types.d.ts +0 -0
- /package/dist/{src/utils → utils}/theme/useTheme.d.ts +0 -0
- /package/dist/{src/utils → utils}/typography/base.d.ts +0 -0
- /package/dist/{src/utils → utils}/typography/core.d.ts +0 -0
- /package/dist/{src/utils → utils}/typography/fluid.d.ts +0 -0
- /package/dist/{src/utils → utils}/typography/index.d.ts +0 -0
package/dist/App.d.ts
ADDED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer adgytec.comps{.
|
|
1
|
+
@layer adgytec.comps{._header_te9i6_2{padding-inline:var(--md-sys-layout-space-12);justify-content:space-between;align-items:center;display:flex}[data-disabled]:is(._header_te9i6_2 [data-visual-button]){background-color:#0000}._selection_te9i6_16{--rotate:0}._selection_te9i6_16[data-pressed]{--rotate:180deg}._selection_te9i6_16[data-pressed] [data-visual-button]{--state-layer-opacity:var(--md-sys-state-pressed)}._selection_te9i6_16 svg{rotate:var(--rotate);transition:rotate var(--md-sys-motion-expressive-fast-spatial) var(--md-sys-motion-expressive-fast-spatial-duration)}@media (prefers-reduced-motion){._selection_te9i6_16 svg{transition:none}}._options_te9i6_38{align-items:center;display:flex}._view_te9i6_43{position:relative;overflow:clip}._menu_te9i6_48{transition:opacity var(--md-sys-motion-expressive-fast-effects) var(--md-sys-motion-expressive-fast-effects-duration)}@media (prefers-reduced-motion){._menu_te9i6_48{transition:none}}._menu_te9i6_48{opacity:0;grid-template-rows:1fr;grid-template-columns:1fr;display:grid}._menu_te9i6_48[data-state=exiting]{position:absolute;inset:0}._menu_te9i6_48[data-state=entered]{opacity:1}._menu_te9i6_48 [data-menu]{max-block-size:calc(6 * var(--_md-calendar-cell-size));block-size:calc(6 * var(--_md-calendar-cell-size));min-inline-size:calc(7 * var(--_md-calendar-cell-size));border-block-start:calc(1 * var(--dp,1px)) solid var(--_md-calendar-menu-divider-color);padding-block-start:var(--md-sys-layout-space-12);padding-block-end:var(--md-sys-layout-space-4);overflow-y:auto}}
|
package/dist/chunks/BaseCalendar
CHANGED
|
@@ -6,34 +6,30 @@ import { n as i, t as a } from "./core3";
|
|
|
6
6
|
import { CalendarMonthMenu as o } from "../components/Calendar/CalendarMonthMenu/index.js";
|
|
7
7
|
import { CalendarYearMenu as s } from "../components/Calendar/CalendarYearMenu/index.js";
|
|
8
8
|
import c from "clsx";
|
|
9
|
-
import {
|
|
10
|
-
import { jsx as
|
|
11
|
-
import { ButtonContext as
|
|
12
|
-
import { ChevronDown as
|
|
13
|
-
import { today as
|
|
14
|
-
import { useDateFormatter as
|
|
15
|
-
import { Transition as
|
|
16
|
-
import '../assets/BaseCalendar.css';var
|
|
17
|
-
header: "
|
|
18
|
-
selection: "
|
|
19
|
-
options: "
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
let [
|
|
24
|
-
calendar: l(),
|
|
25
|
-
month: l(),
|
|
26
|
-
year: l()
|
|
27
|
-
}).current[E], k = d(null), A = i(), j = A.timeZone, M = b({
|
|
9
|
+
import { useMemo as l, useRef as u, useState as d } from "react";
|
|
10
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
11
|
+
import { ButtonContext as m } from "react-aria-components";
|
|
12
|
+
import { ChevronDown as h, ChevronLeft as g, ChevronRight as _ } from "lucide-react";
|
|
13
|
+
import { today as v } from "@internationalized/date";
|
|
14
|
+
import { useDateFormatter as y } from "react-aria";
|
|
15
|
+
import { Transition as b } from "react-transition-group";
|
|
16
|
+
import '../assets/BaseCalendar.css';var x = {
|
|
17
|
+
header: "_header_te9i6_2",
|
|
18
|
+
selection: "_selection_te9i6_16",
|
|
19
|
+
options: "_options_te9i6_38",
|
|
20
|
+
view: "_view_te9i6_43",
|
|
21
|
+
menu: "_menu_te9i6_48"
|
|
22
|
+
}, S = ({ isRangeCalendar: S, weekdayStyle: C }) => {
|
|
23
|
+
let [w, T] = d("calendar"), E = u(null), D = u(null), O = u(null), k = u(null), A = i(), j = A.timeZone, M = y({
|
|
28
24
|
month: "short",
|
|
29
25
|
timeZone: j
|
|
30
|
-
}), N =
|
|
26
|
+
}), N = y({
|
|
31
27
|
month: "long",
|
|
32
28
|
timeZone: j
|
|
33
|
-
}), P =
|
|
29
|
+
}), P = y({
|
|
34
30
|
year: "numeric",
|
|
35
31
|
timeZone: j
|
|
36
|
-
}), F = M.format(A.focusedDate.toDate(j)), I = P.format(A.focusedDate.toDate(j)), L =
|
|
32
|
+
}), F = M.format(A.focusedDate.toDate(j)), I = P.format(A.focusedDate.toDate(j)), L = v(j).year, R = A.minValue?.year ?? 1900, z = A.maxValue?.year ?? L + 100, B = l(() => {
|
|
37
33
|
let e = [];
|
|
38
34
|
for (let t = R; t <= z; t++) {
|
|
39
35
|
let n = A.focusedDate.set({ year: t });
|
|
@@ -48,7 +44,7 @@ import '../assets/BaseCalendar.css';var C = {
|
|
|
48
44
|
z,
|
|
49
45
|
j,
|
|
50
46
|
P
|
|
51
|
-
]), V =
|
|
47
|
+
]), V = l(() => {
|
|
52
48
|
let e = [], t = A.focusedDate.calendar.getMonthsInYear(A.focusedDate);
|
|
53
49
|
for (let n = 1; n <= t; n++) {
|
|
54
50
|
let t = A.focusedDate.set({ month: n });
|
|
@@ -76,142 +72,175 @@ import '../assets/BaseCalendar.css';var C = {
|
|
|
76
72
|
}, K = () => {
|
|
77
73
|
a(A) && (A.setAnchorDate(k.current), k.current = null);
|
|
78
74
|
}, q = () => {
|
|
79
|
-
|
|
75
|
+
T("calendar"), K();
|
|
80
76
|
};
|
|
81
|
-
return /* @__PURE__ */ m
|
|
77
|
+
return /* @__PURE__ */ p(m, {
|
|
82
78
|
value: { slots: {
|
|
83
79
|
"previous-month": {
|
|
84
80
|
onPress: () => A.focusPreviousPage(),
|
|
85
|
-
isDisabled: A.isDisabled ||
|
|
81
|
+
isDisabled: A.isDisabled || w !== "calendar" || A.isPreviousVisibleRangeInvalid()
|
|
86
82
|
},
|
|
87
83
|
"next-month": {
|
|
88
84
|
onPress: () => A.focusNextPage(),
|
|
89
|
-
isDisabled: A.isDisabled ||
|
|
85
|
+
isDisabled: A.isDisabled || w !== "calendar" || A.isNextVisibleRangeInvalid()
|
|
90
86
|
},
|
|
91
87
|
"month-view": {
|
|
92
88
|
onPress: () => {
|
|
93
|
-
if (
|
|
94
|
-
K(),
|
|
89
|
+
if (w === "month") {
|
|
90
|
+
K(), T("calendar");
|
|
95
91
|
return;
|
|
96
92
|
}
|
|
97
|
-
G(),
|
|
93
|
+
G(), T("month");
|
|
98
94
|
},
|
|
99
|
-
isDisabled: A.isDisabled ||
|
|
100
|
-
isPressed:
|
|
95
|
+
isDisabled: A.isDisabled || w === "year",
|
|
96
|
+
isPressed: w === "month"
|
|
101
97
|
},
|
|
102
98
|
"previous-year": {
|
|
103
99
|
onPress: () => {
|
|
104
100
|
A.setFocusedDate(A.focusedDate.cycle("year", -1));
|
|
105
101
|
},
|
|
106
|
-
isDisabled: A.isDisabled ||
|
|
102
|
+
isDisabled: A.isDisabled || w !== "calendar" || W()
|
|
107
103
|
},
|
|
108
104
|
"next-year": {
|
|
109
105
|
onPress: () => {
|
|
110
106
|
A.setFocusedDate(A.focusedDate.cycle("year", 1));
|
|
111
107
|
},
|
|
112
|
-
isDisabled: A.isDisabled ||
|
|
108
|
+
isDisabled: A.isDisabled || w !== "calendar" || U()
|
|
113
109
|
},
|
|
114
110
|
"year-view": {
|
|
115
111
|
onPress: () => {
|
|
116
|
-
if (
|
|
117
|
-
K(),
|
|
112
|
+
if (w === "year") {
|
|
113
|
+
K(), T("calendar");
|
|
118
114
|
return;
|
|
119
115
|
}
|
|
120
|
-
G(),
|
|
116
|
+
G(), T("year");
|
|
121
117
|
},
|
|
122
|
-
isDisabled: A.isDisabled ||
|
|
123
|
-
isPressed:
|
|
118
|
+
isDisabled: A.isDisabled || w === "month",
|
|
119
|
+
isPressed: w === "year"
|
|
124
120
|
}
|
|
125
121
|
} },
|
|
126
|
-
children: [/* @__PURE__ */
|
|
127
|
-
className: c(
|
|
128
|
-
children: [/* @__PURE__ */
|
|
129
|
-
className: c(
|
|
122
|
+
children: [/* @__PURE__ */ p("header", {
|
|
123
|
+
className: c(x.header),
|
|
124
|
+
children: [/* @__PURE__ */ p("div", {
|
|
125
|
+
className: c(x.options),
|
|
130
126
|
children: [
|
|
131
|
-
/* @__PURE__ */
|
|
127
|
+
/* @__PURE__ */ f(n, {
|
|
132
128
|
slot: "previous-month",
|
|
133
|
-
icon:
|
|
129
|
+
icon: g,
|
|
134
130
|
color: "standard",
|
|
135
131
|
size: "extra-small"
|
|
136
132
|
}),
|
|
137
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ p(t, {
|
|
138
134
|
slot: "month-view",
|
|
139
135
|
color: "text",
|
|
140
136
|
shape: "square",
|
|
141
137
|
size: "extra-small",
|
|
142
|
-
className: c(
|
|
143
|
-
children: [F, /* @__PURE__ */
|
|
144
|
-
icon:
|
|
138
|
+
className: c(x.selection),
|
|
139
|
+
children: [F, /* @__PURE__ */ f(e, {
|
|
140
|
+
icon: h,
|
|
145
141
|
size: 18
|
|
146
142
|
})]
|
|
147
143
|
}),
|
|
148
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ f(n, {
|
|
149
145
|
slot: "next-month",
|
|
150
|
-
icon:
|
|
146
|
+
icon: _,
|
|
151
147
|
color: "standard",
|
|
152
148
|
size: "extra-small"
|
|
153
149
|
})
|
|
154
150
|
]
|
|
155
|
-
}), /* @__PURE__ */
|
|
156
|
-
className: c(
|
|
151
|
+
}), /* @__PURE__ */ p("div", {
|
|
152
|
+
className: c(x.options),
|
|
157
153
|
children: [
|
|
158
|
-
/* @__PURE__ */
|
|
154
|
+
/* @__PURE__ */ f(n, {
|
|
159
155
|
slot: "previous-year",
|
|
160
|
-
icon:
|
|
156
|
+
icon: g,
|
|
161
157
|
color: "standard",
|
|
162
158
|
size: "extra-small"
|
|
163
159
|
}),
|
|
164
|
-
/* @__PURE__ */
|
|
160
|
+
/* @__PURE__ */ p(t, {
|
|
165
161
|
slot: "year-view",
|
|
166
162
|
color: "text",
|
|
167
163
|
shape: "square",
|
|
168
164
|
size: "extra-small",
|
|
169
|
-
className: c(
|
|
170
|
-
children: [I, /* @__PURE__ */
|
|
171
|
-
icon:
|
|
165
|
+
className: c(x.selection),
|
|
166
|
+
children: [I, /* @__PURE__ */ f(e, {
|
|
167
|
+
icon: h,
|
|
172
168
|
size: 18
|
|
173
169
|
})]
|
|
174
170
|
}),
|
|
175
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ f(n, {
|
|
176
172
|
slot: "next-year",
|
|
177
|
-
icon:
|
|
173
|
+
icon: _,
|
|
178
174
|
color: "standard",
|
|
179
175
|
size: "extra-small"
|
|
180
176
|
})
|
|
181
177
|
]
|
|
182
178
|
})]
|
|
183
|
-
}), /* @__PURE__ */ p(
|
|
184
|
-
className: c(
|
|
185
|
-
children:
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
children:
|
|
196
|
-
E
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
179
|
+
}), /* @__PURE__ */ p("div", {
|
|
180
|
+
className: c(x.view),
|
|
181
|
+
children: [
|
|
182
|
+
/* @__PURE__ */ f(b, {
|
|
183
|
+
nodeRef: E,
|
|
184
|
+
timeout: {
|
|
185
|
+
enter: 0,
|
|
186
|
+
exit: 150
|
|
187
|
+
},
|
|
188
|
+
mountOnEnter: !0,
|
|
189
|
+
unmountOnExit: !0,
|
|
190
|
+
in: w === "calendar",
|
|
191
|
+
children: (e) => /* @__PURE__ */ f("div", {
|
|
192
|
+
ref: E,
|
|
193
|
+
className: c(x.menu),
|
|
194
|
+
"data-state": e,
|
|
195
|
+
children: /* @__PURE__ */ f(r, {
|
|
196
|
+
weekdayStyle: C,
|
|
197
|
+
isRangeCalendar: S
|
|
198
|
+
})
|
|
199
|
+
})
|
|
200
|
+
}),
|
|
201
|
+
/* @__PURE__ */ f(b, {
|
|
202
|
+
nodeRef: D,
|
|
203
|
+
timeout: {
|
|
204
|
+
enter: 0,
|
|
205
|
+
exit: 150
|
|
206
|
+
},
|
|
207
|
+
mountOnEnter: !0,
|
|
208
|
+
unmountOnExit: !0,
|
|
209
|
+
in: w === "month",
|
|
210
|
+
children: (e) => /* @__PURE__ */ f("div", {
|
|
211
|
+
ref: D,
|
|
212
|
+
className: c(x.menu),
|
|
213
|
+
"data-state": e,
|
|
214
|
+
children: /* @__PURE__ */ f(o, {
|
|
201
215
|
onSelection: q,
|
|
202
216
|
months: V
|
|
203
|
-
})
|
|
204
|
-
|
|
217
|
+
})
|
|
218
|
+
})
|
|
219
|
+
}),
|
|
220
|
+
/* @__PURE__ */ f(b, {
|
|
221
|
+
nodeRef: O,
|
|
222
|
+
timeout: {
|
|
223
|
+
enter: 0,
|
|
224
|
+
exit: 150
|
|
225
|
+
},
|
|
226
|
+
mountOnEnter: !0,
|
|
227
|
+
unmountOnExit: !0,
|
|
228
|
+
in: w === "year",
|
|
229
|
+
children: (e) => /* @__PURE__ */ f("div", {
|
|
230
|
+
ref: O,
|
|
231
|
+
className: c(x.menu),
|
|
232
|
+
"data-state": e,
|
|
233
|
+
children: /* @__PURE__ */ f(s, {
|
|
205
234
|
onSelection: q,
|
|
206
235
|
years: B
|
|
207
236
|
})
|
|
208
|
-
|
|
237
|
+
})
|
|
209
238
|
})
|
|
210
|
-
|
|
239
|
+
]
|
|
211
240
|
})]
|
|
212
241
|
});
|
|
213
242
|
};
|
|
214
243
|
//#endregion
|
|
215
|
-
export {
|
|
244
|
+
export { S as t };
|
|
216
245
|
|
|
217
246
|
//# sourceMappingURL=BaseCalendar.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseCalendar","names":["items","date"],"sources":["../../src/components/Calendar/BaseCalendar/baseCalendar.module.css","../../src/components/Calendar/BaseCalendar/BaseCalendar.tsx"],"sourcesContent":["@layer adgytec.comps {\n .header {\n padding-inline: var(--md-sys-layout-space-12);\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n [data-visual-button] {\n &[data-disabled] {\n background-color: transparent;\n }\n }\n }\n\n .selection {\n --rotate: 0;\n\n &[data-pressed] {\n --rotate: 180deg;\n\n [data-visual-button] {\n --state-layer-opacity: var(--md-sys-state-pressed);\n }\n }\n\n svg {\n rotate: var(--rotate);\n transition: rotate var(--md-sys-motion-expressive-fast-spatial)\n var(--md-sys-motion-expressive-fast-spatial-duration);\n\n @media (prefers-reduced-motion) {\n transition: none;\n }\n }\n }\n\n .options {\n display: flex;\n align-items: center;\n }\n\n .transition-group {\n position: relative;\n overflow: clip;\n }\n\n .view {\n transition: opacity var(--md-sys-motion-expressive-fast-effects)\n var(--md-sys-motion-expressive-fast-effects-duration);\n\n @media (prefers-reduced-motion) {\n transition: none;\n }\n\n opacity: 0;\n\n display: grid;\n grid-template-columns: 1fr;\n grid-template-rows: 1fr;\n\n &[data-exiting] {\n position: absolute;\n inset: 0;\n opacity: 0;\n }\n\n &[data-entered] {\n opacity: 1;\n }\n\n [data-menu] {\n max-block-size: calc(6 * var(--_md-calendar-cell-size));\n block-size: calc(6 * var(--_md-calendar-cell-size));\n\n min-inline-size: calc(7 * var(--_md-calendar-cell-size));\n\n overflow-y: auto;\n padding-block-start: var(--md-sys-layout-space-12);\n padding-block-end: var(--md-sys-layout-space-4);\n\n border-block-start: calc(1 * var(--dp, 1px)) solid\n var(--_md-calendar-menu-divider-color);\n }\n }\n}\n","import { type CalendarDate, today } from \"@internationalized/date\";\nimport clsx from \"clsx\";\nimport { ChevronDown, ChevronLeft, ChevronRight } from \"lucide-react\";\nimport { createRef, useMemo, useRef, useState } from \"react\";\nimport { useDateFormatter } from \"react-aria\";\nimport { ButtonContext } from \"react-aria-components\";\nimport { Transition, TransitionGroup } from \"react-transition-group\";\nimport { Button, IconButton } from \"@/components/Button\";\nimport { Icon } from \"@/components/Icon\";\nimport { CalendarGrid } from \"../CalendarGrid\";\nimport { CalendarMonthMenu } from \"../CalendarMonthMenu\";\nimport { CalendarYearMenu } from \"../CalendarYearMenu\";\nimport {\n defaultMaxYearIncrement,\n defaultMinYear,\n isRangeCalendarState,\n type MonthItem,\n useCalendarState,\n type WeekdayStyle,\n type YearItem,\n} from \"../core\";\nimport styles from \"./baseCalendar.module.css\";\n\ntype View = \"calendar\" | \"month\" | \"year\";\n\nexport const BaseCalendar: React.FC<{\n isRangeCalendar?: boolean;\n weekdayStyle?: WeekdayStyle;\n}> = ({ isRangeCalendar, weekdayStyle }) => {\n const [view, setView] = useState<View>(\"calendar\");\n const nodeRefs = useRef({\n calendar: createRef<HTMLDivElement>(),\n month: createRef<HTMLDivElement>(),\n year: createRef<HTMLDivElement>(),\n }).current;\n const currentRef = nodeRefs[view];\n // fixes menu selection issue in range calendar\n const anchorDate = useRef<CalendarDate | null>(null);\n\n const calendarState = useCalendarState();\n const timeZone = calendarState.timeZone;\n\n const monthShortFormatter = useDateFormatter({\n month: \"short\",\n timeZone: timeZone,\n });\n const monthLongFormatter = useDateFormatter({\n month: \"long\",\n timeZone,\n });\n const yearFormatter = useDateFormatter({\n year: \"numeric\",\n timeZone: timeZone,\n });\n\n const focusedMonth = monthShortFormatter.format(\n calendarState.focusedDate.toDate(timeZone)\n );\n const focusedYear = yearFormatter.format(\n calendarState.focusedDate.toDate(timeZone)\n );\n\n // create year menu items\n const currentYear = today(timeZone).year;\n\n const minYear = calendarState.minValue?.year ?? defaultMinYear;\n const maxYear =\n calendarState.maxValue?.year ?? currentYear + defaultMaxYearIncrement;\n\n // biome-ignore lint/correctness/useExhaustiveDependencies: focusedDate month/day changes do not affect rendered year labels\n const years = useMemo(() => {\n const items: YearItem[] = [];\n\n for (let year = minYear; year <= maxYear; year++) {\n const date = calendarState.focusedDate.set({ year });\n\n items.push({\n id: year,\n formatted: yearFormatter.format(date.toDate(timeZone)),\n });\n }\n\n return items;\n }, [minYear, maxYear, timeZone, yearFormatter]);\n\n // create month menu items\n // biome-ignore lint/correctness/useExhaustiveDependencies: focusedDate month/day changes do not affect generated month items\n const months = useMemo(() => {\n const items: MonthItem[] = [];\n\n const numMonths = calendarState.focusedDate.calendar.getMonthsInYear(\n calendarState.focusedDate\n );\n\n for (let month = 1; month <= numMonths; month++) {\n const date = calendarState.focusedDate.set({ month });\n\n items.push({\n id: month,\n formatted: monthLongFormatter.format(date.toDate(timeZone)),\n });\n }\n\n return items;\n }, [calendarState.focusedDate.calendar, timeZone, monthLongFormatter]);\n\n const isYearInvalid = (date: CalendarDate) => {\n const startOfYear = date.set({ month: 1, day: 1 });\n\n const lastMonth = date.calendar.getMonthsInYear(date);\n const endOfYear = date.set({\n month: lastMonth,\n day: date.calendar.getDaysInMonth(date.set({ month: lastMonth })),\n });\n\n return (\n (calendarState.maxValue != null &&\n startOfYear.compare(calendarState.maxValue) > 0) ||\n (calendarState.minValue != null &&\n endOfYear.compare(calendarState.minValue) < 0)\n );\n };\n\n const nextYearIsInvalid = () => {\n return isYearInvalid(calendarState.focusedDate.cycle(\"year\", 1));\n };\n\n const prevYearIsInvalid = () => {\n return isYearInvalid(calendarState.focusedDate.cycle(\"year\", -1));\n };\n\n const saveAnchorDateForRangeCalendar = () => {\n if (!isRangeCalendarState(calendarState)) return;\n\n anchorDate.current = calendarState.anchorDate;\n calendarState.setAnchorDate(null);\n };\n\n const restoreAnchorDateForRangeCalendar = () => {\n if (!isRangeCalendarState(calendarState)) return;\n\n calendarState.setAnchorDate(anchorDate.current);\n anchorDate.current = null;\n };\n\n const menuItemOnSelection = () => {\n setView(\"calendar\");\n restoreAnchorDateForRangeCalendar();\n };\n\n return (\n <ButtonContext\n value={{\n slots: {\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousPage(),\n isDisabled:\n calendarState.isDisabled ||\n view !== \"calendar\" ||\n calendarState.isPreviousVisibleRangeInvalid(),\n },\n \"next-month\": {\n onPress: () => calendarState.focusNextPage(),\n isDisabled:\n calendarState.isDisabled ||\n view !== \"calendar\" ||\n calendarState.isNextVisibleRangeInvalid(),\n },\n \"month-view\": {\n onPress: () => {\n if (view === \"month\") {\n restoreAnchorDateForRangeCalendar();\n setView(\"calendar\");\n return;\n }\n\n saveAnchorDateForRangeCalendar();\n setView(\"month\");\n },\n isDisabled: calendarState.isDisabled || view === \"year\",\n isPressed: view === \"month\",\n },\n\n \"previous-year\": {\n onPress: () => {\n calendarState.setFocusedDate(\n calendarState.focusedDate.cycle(\"year\", -1)\n );\n },\n isDisabled:\n calendarState.isDisabled ||\n view !== \"calendar\" ||\n prevYearIsInvalid(),\n },\n \"next-year\": {\n onPress: () => {\n calendarState.setFocusedDate(\n calendarState.focusedDate.cycle(\"year\", 1)\n );\n },\n isDisabled:\n calendarState.isDisabled ||\n view !== \"calendar\" ||\n nextYearIsInvalid(),\n },\n \"year-view\": {\n onPress: () => {\n if (view === \"year\") {\n restoreAnchorDateForRangeCalendar();\n setView(\"calendar\");\n return;\n }\n\n saveAnchorDateForRangeCalendar();\n setView(\"year\");\n },\n isDisabled:\n calendarState.isDisabled || view === \"month\",\n isPressed: view === \"year\",\n },\n },\n }}\n >\n <header className={clsx(styles[\"header\"])}>\n <div className={clsx(styles[\"options\"])}>\n <IconButton\n slot=\"previous-month\"\n icon={ChevronLeft}\n color=\"standard\"\n size=\"extra-small\"\n />\n\n <Button\n slot=\"month-view\"\n color=\"text\"\n shape=\"square\"\n size=\"extra-small\"\n className={clsx(styles[\"selection\"])}\n >\n {focusedMonth}\n <Icon icon={ChevronDown} size={18} />\n </Button>\n\n <IconButton\n slot=\"next-month\"\n icon={ChevronRight}\n color=\"standard\"\n size=\"extra-small\"\n />\n </div>\n\n <div className={clsx(styles[\"options\"])}>\n <IconButton\n slot=\"previous-year\"\n icon={ChevronLeft}\n color=\"standard\"\n size=\"extra-small\"\n />\n\n <Button\n slot=\"year-view\"\n color=\"text\"\n shape=\"square\"\n size=\"extra-small\"\n className={clsx(styles[\"selection\"])}\n >\n {focusedYear}\n <Icon icon={ChevronDown} size={18} />\n </Button>\n\n <IconButton\n slot=\"next-year\"\n icon={ChevronRight}\n color=\"standard\"\n size=\"extra-small\"\n />\n </div>\n </header>\n\n <TransitionGroup className={clsx(styles[\"transition-group\"])}>\n <Transition\n key={view}\n nodeRef={currentRef}\n timeout={150}\n unmountOnExit\n >\n {(transitionState) => (\n <div\n ref={currentRef}\n className={clsx(styles[\"view\"])}\n data-entering={\n transitionState === \"entering\" || undefined\n }\n data-exiting={\n transitionState === \"exiting\" || undefined\n }\n data-entered={\n transitionState === \"entered\" || undefined\n }\n >\n {view === \"calendar\" && (\n <CalendarGrid\n weekdayStyle={weekdayStyle}\n isRangeCalendar={isRangeCalendar}\n />\n )}\n\n {view === \"month\" && (\n <CalendarMonthMenu\n onSelection={menuItemOnSelection}\n months={months}\n />\n )}\n\n {view === \"year\" && (\n <CalendarYearMenu\n onSelection={menuItemOnSelection}\n years={years}\n />\n )}\n </div>\n )}\n </Transition>\n </TransitionGroup>\n </ButtonContext>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;GCyBa,KAGP,EAAE,oBAAiB,sBAAmB;CACxC,IAAM,CAAC,GAAM,KAAW,EAAe,UAAU,GAM3C,IALW,EAAO;EACpB,UAAU,EAA0B;EACpC,OAAO,EAA0B;EACjC,MAAM,EAA0B;CACpC,CAAC,CAAC,CAAC,QACyB,IAEtB,IAAa,EAA4B,IAAI,GAE7C,IAAgB,EAAiB,GACjC,IAAW,EAAc,UAEzB,IAAsB,E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,gBACI,MAAoB,aAAa,KAAA;eAVzC;MAaK,MAAS,cACN,kBAAC,GAAD;OACkB;OACG;MAAgB,CAAA;MAIxC,MAAS,WACN,kBAAC,GAAD;OACI,aAAa;OACL;MAAO,CAAA;MAItB,MAAS,UACN,kBAAC,GAAD;OACI,aAAa;OACN;MAAM,CAAA;KAGpB;;GAED,GAzCH,CAyCG;EACC,CAAA,CACN;;AAEvB"}
|
|
1
|
+
{"version":3,"file":"BaseCalendar","names":["items","date","state"],"sources":["../../src/components/Calendar/BaseCalendar/baseCalendar.module.css","../../src/components/Calendar/BaseCalendar/BaseCalendar.tsx"],"sourcesContent":["@layer adgytec.comps {\n .header {\n padding-inline: var(--md-sys-layout-space-12);\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n [data-visual-button] {\n &[data-disabled] {\n background-color: transparent;\n }\n }\n }\n\n .selection {\n --rotate: 0;\n\n &[data-pressed] {\n --rotate: 180deg;\n\n [data-visual-button] {\n --state-layer-opacity: var(--md-sys-state-pressed);\n }\n }\n\n svg {\n rotate: var(--rotate);\n transition: rotate var(--md-sys-motion-expressive-fast-spatial)\n var(--md-sys-motion-expressive-fast-spatial-duration);\n\n @media (prefers-reduced-motion) {\n transition: none;\n }\n }\n }\n\n .options {\n display: flex;\n align-items: center;\n }\n\n .view {\n position: relative;\n overflow: clip;\n }\n\n .menu {\n transition: opacity var(--md-sys-motion-expressive-fast-effects)\n var(--md-sys-motion-expressive-fast-effects-duration);\n\n @media (prefers-reduced-motion) {\n transition: none;\n }\n\n opacity: 0;\n\n display: grid;\n grid-template-columns: 1fr;\n grid-template-rows: 1fr;\n\n &[data-state=\"exiting\"] {\n position: absolute;\n inset: 0;\n }\n\n &[data-state=\"entered\"] {\n opacity: 1;\n }\n\n [data-menu] {\n max-block-size: calc(6 * var(--_md-calendar-cell-size));\n block-size: calc(6 * var(--_md-calendar-cell-size));\n\n min-inline-size: calc(7 * var(--_md-calendar-cell-size));\n\n overflow-y: auto;\n padding-block-start: var(--md-sys-layout-space-12);\n padding-block-end: var(--md-sys-layout-space-4);\n\n border-block-start: calc(1 * var(--dp, 1px)) solid\n var(--_md-calendar-menu-divider-color);\n }\n }\n}\n","import { type CalendarDate, today } from \"@internationalized/date\";\nimport clsx from \"clsx\";\nimport { ChevronDown, ChevronLeft, ChevronRight } from \"lucide-react\";\nimport { useMemo, useRef, useState } from \"react\";\nimport { useDateFormatter } from \"react-aria\";\nimport { ButtonContext } from \"react-aria-components\";\nimport { Transition } from \"react-transition-group\";\nimport { Button, IconButton } from \"@/components/Button\";\nimport { Icon } from \"@/components/Icon\";\nimport { CalendarGrid } from \"../CalendarGrid\";\nimport { CalendarMonthMenu } from \"../CalendarMonthMenu\";\nimport { CalendarYearMenu } from \"../CalendarYearMenu\";\nimport {\n defaultMaxYearIncrement,\n defaultMinYear,\n isRangeCalendarState,\n type MonthItem,\n useCalendarState,\n type WeekdayStyle,\n type YearItem,\n} from \"../core\";\nimport styles from \"./baseCalendar.module.css\";\n\ntype View = \"calendar\" | \"month\" | \"year\";\n\nexport const BaseCalendar: React.FC<{\n isRangeCalendar?: boolean;\n weekdayStyle?: WeekdayStyle;\n}> = ({ isRangeCalendar, weekdayStyle }) => {\n const [view, setView] = useState<View>(\"calendar\");\n\n const calendarRef = useRef<HTMLDivElement>(null);\n const monthRef = useRef<HTMLDivElement>(null);\n const yearRef = useRef<HTMLDivElement>(null);\n\n // fixes menu selection issue in range calendar\n const anchorDate = useRef<CalendarDate | null>(null);\n\n const calendarState = useCalendarState();\n const timeZone = calendarState.timeZone;\n\n const monthShortFormatter = useDateFormatter({\n month: \"short\",\n timeZone: timeZone,\n });\n const monthLongFormatter = useDateFormatter({\n month: \"long\",\n timeZone,\n });\n const yearFormatter = useDateFormatter({\n year: \"numeric\",\n timeZone: timeZone,\n });\n\n const focusedMonth = monthShortFormatter.format(\n calendarState.focusedDate.toDate(timeZone)\n );\n const focusedYear = yearFormatter.format(\n calendarState.focusedDate.toDate(timeZone)\n );\n\n // create year menu items\n const currentYear = today(timeZone).year;\n\n const minYear = calendarState.minValue?.year ?? defaultMinYear;\n const maxYear =\n calendarState.maxValue?.year ?? currentYear + defaultMaxYearIncrement;\n\n // biome-ignore lint/correctness/useExhaustiveDependencies: focusedDate month/day changes do not affect rendered year labels\n const years = useMemo(() => {\n const items: YearItem[] = [];\n\n for (let year = minYear; year <= maxYear; year++) {\n const date = calendarState.focusedDate.set({ year });\n\n items.push({\n id: year,\n formatted: yearFormatter.format(date.toDate(timeZone)),\n });\n }\n\n return items;\n }, [minYear, maxYear, timeZone, yearFormatter]);\n\n // create month menu items\n // biome-ignore lint/correctness/useExhaustiveDependencies: focusedDate month/day changes do not affect generated month items\n const months = useMemo(() => {\n const items: MonthItem[] = [];\n\n const numMonths = calendarState.focusedDate.calendar.getMonthsInYear(\n calendarState.focusedDate\n );\n\n for (let month = 1; month <= numMonths; month++) {\n const date = calendarState.focusedDate.set({ month });\n\n items.push({\n id: month,\n formatted: monthLongFormatter.format(date.toDate(timeZone)),\n });\n }\n\n return items;\n }, [calendarState.focusedDate.calendar, timeZone, monthLongFormatter]);\n\n const isYearInvalid = (date: CalendarDate) => {\n const startOfYear = date.set({ month: 1, day: 1 });\n\n const lastMonth = date.calendar.getMonthsInYear(date);\n const endOfYear = date.set({\n month: lastMonth,\n day: date.calendar.getDaysInMonth(date.set({ month: lastMonth })),\n });\n\n return (\n (calendarState.maxValue != null &&\n startOfYear.compare(calendarState.maxValue) > 0) ||\n (calendarState.minValue != null &&\n endOfYear.compare(calendarState.minValue) < 0)\n );\n };\n\n const nextYearIsInvalid = () => {\n return isYearInvalid(calendarState.focusedDate.cycle(\"year\", 1));\n };\n\n const prevYearIsInvalid = () => {\n return isYearInvalid(calendarState.focusedDate.cycle(\"year\", -1));\n };\n\n const saveAnchorDateForRangeCalendar = () => {\n if (!isRangeCalendarState(calendarState)) return;\n\n anchorDate.current = calendarState.anchorDate;\n calendarState.setAnchorDate(null);\n };\n\n const restoreAnchorDateForRangeCalendar = () => {\n if (!isRangeCalendarState(calendarState)) return;\n\n calendarState.setAnchorDate(anchorDate.current);\n anchorDate.current = null;\n };\n\n const menuItemOnSelection = () => {\n setView(\"calendar\");\n restoreAnchorDateForRangeCalendar();\n };\n\n return (\n <ButtonContext\n value={{\n slots: {\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousPage(),\n isDisabled:\n calendarState.isDisabled ||\n view !== \"calendar\" ||\n calendarState.isPreviousVisibleRangeInvalid(),\n },\n \"next-month\": {\n onPress: () => calendarState.focusNextPage(),\n isDisabled:\n calendarState.isDisabled ||\n view !== \"calendar\" ||\n calendarState.isNextVisibleRangeInvalid(),\n },\n \"month-view\": {\n onPress: () => {\n if (view === \"month\") {\n restoreAnchorDateForRangeCalendar();\n setView(\"calendar\");\n return;\n }\n\n saveAnchorDateForRangeCalendar();\n setView(\"month\");\n },\n isDisabled: calendarState.isDisabled || view === \"year\",\n isPressed: view === \"month\",\n },\n\n \"previous-year\": {\n onPress: () => {\n calendarState.setFocusedDate(\n calendarState.focusedDate.cycle(\"year\", -1)\n );\n },\n isDisabled:\n calendarState.isDisabled ||\n view !== \"calendar\" ||\n prevYearIsInvalid(),\n },\n \"next-year\": {\n onPress: () => {\n calendarState.setFocusedDate(\n calendarState.focusedDate.cycle(\"year\", 1)\n );\n },\n isDisabled:\n calendarState.isDisabled ||\n view !== \"calendar\" ||\n nextYearIsInvalid(),\n },\n \"year-view\": {\n onPress: () => {\n if (view === \"year\") {\n restoreAnchorDateForRangeCalendar();\n setView(\"calendar\");\n return;\n }\n\n saveAnchorDateForRangeCalendar();\n setView(\"year\");\n },\n isDisabled:\n calendarState.isDisabled || view === \"month\",\n isPressed: view === \"year\",\n },\n },\n }}\n >\n <header className={clsx(styles[\"header\"])}>\n <div className={clsx(styles[\"options\"])}>\n <IconButton\n slot=\"previous-month\"\n icon={ChevronLeft}\n color=\"standard\"\n size=\"extra-small\"\n />\n\n <Button\n slot=\"month-view\"\n color=\"text\"\n shape=\"square\"\n size=\"extra-small\"\n className={clsx(styles[\"selection\"])}\n >\n {focusedMonth}\n <Icon icon={ChevronDown} size={18} />\n </Button>\n\n <IconButton\n slot=\"next-month\"\n icon={ChevronRight}\n color=\"standard\"\n size=\"extra-small\"\n />\n </div>\n\n <div className={clsx(styles[\"options\"])}>\n <IconButton\n slot=\"previous-year\"\n icon={ChevronLeft}\n color=\"standard\"\n size=\"extra-small\"\n />\n\n <Button\n slot=\"year-view\"\n color=\"text\"\n shape=\"square\"\n size=\"extra-small\"\n className={clsx(styles[\"selection\"])}\n >\n {focusedYear}\n <Icon icon={ChevronDown} size={18} />\n </Button>\n\n <IconButton\n slot=\"next-year\"\n icon={ChevronRight}\n color=\"standard\"\n size=\"extra-small\"\n />\n </div>\n </header>\n\n <div className={clsx(styles[\"view\"])}>\n <Transition\n nodeRef={calendarRef}\n timeout={{\n enter: 0,\n exit: 150,\n }}\n mountOnEnter\n unmountOnExit\n in={view === \"calendar\"}\n >\n {(state) => (\n <div\n ref={calendarRef}\n className={clsx(styles[\"menu\"])}\n data-state={state}\n >\n <CalendarGrid\n weekdayStyle={weekdayStyle}\n isRangeCalendar={isRangeCalendar}\n />\n </div>\n )}\n </Transition>\n\n <Transition\n nodeRef={monthRef}\n timeout={{\n enter: 0,\n exit: 150,\n }}\n mountOnEnter\n unmountOnExit\n in={view === \"month\"}\n >\n {(state) => (\n <div\n ref={monthRef}\n className={clsx(styles[\"menu\"])}\n data-state={state}\n >\n <CalendarMonthMenu\n onSelection={menuItemOnSelection}\n months={months}\n />\n </div>\n )}\n </Transition>\n\n <Transition\n nodeRef={yearRef}\n timeout={{\n enter: 0,\n exit: 150,\n }}\n mountOnEnter\n unmountOnExit\n in={view === \"year\"}\n >\n {(state) => (\n <div\n ref={yearRef}\n className={clsx(styles[\"menu\"])}\n data-state={state}\n >\n <CalendarYearMenu\n onSelection={menuItemOnSelection}\n years={years}\n />\n </div>\n )}\n </Transition>\n </div>\n </ButtonContext>\n );\n};\n"],"mappings":";;;;;;;;;;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;IAErB;KACD;MAER,kBAAC,OAAD;GAAK,WAAW,EAAK,EAAO,IAAO;aAAnC;IACI,kBAAC,GAAD;KACI,SAAS;KACT,SAAS;MACL,OAAO;MACP,MAAM;KACV;KACA,cAAA;KACA,eAAA;KACA,IAAI,MAAS;gBAEX,MACE,kBAAC,OAAD;MACI,KAAK;MACL,WAAW,EAAK,EAAO,IAAO;MAC9B,cAAY;gBAEZ,kBAAC,GAAD;OACkB;OACG;MAAgB,CAAA;KAEpC,CAAA;IAED,CAAA;IAEZ,kBAAC,GAAD;KACI,SAAS;KACT,SAAS;MACL,OAAO;MACP,MAAM;KACV;KACA,cAAA;KACA,eAAA;KACA,IAAI,MAAS;gBAEXC,MACE,kBAAC,OAAD;MACI,KAAK;MACL,WAAW,EAAK,EAAO,IAAO;MAC9B,cAAYA;gBAEZ,kBAAC,GAAD;OACI,aAAa;OACL;MAAO,CAAA;KAElB,CAAA;IAED,CAAA;IAEZ,kBAAC,GAAD;KACI,SAAS;KACT,SAAS;MACL,OAAO;MACP,MAAM;KACV;KACA,cAAA;KACA,eAAA;KACA,IAAI,MAAS;gBAEXA,MACE,kBAAC,OAAD;MACI,KAAK;MACL,WAAW,EAAK,EAAO,IAAO;MAC9B,cAAYA;gBAEZ,kBAAC,GAAD;OACI,aAAa;OACN;MAAM,CAAA;KAEhB,CAAA;IAED,CAAA;GACX;IACM;;AAEvB"}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
+
import * as e from "react";
|
|
1
2
|
//#region \0rolldown/runtime.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var n = t("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
3
|
+
var t = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), n = /* @__PURE__ */ t(((t, n) => {
|
|
4
|
+
n.exports = { ...e };
|
|
5
|
+
})), r = /* @__PURE__ */ t(((e) => {
|
|
6
|
+
var t = n().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
7
7
|
e.c = function(e) {
|
|
8
|
-
return
|
|
8
|
+
return t.H.useMemoCache(e);
|
|
9
9
|
};
|
|
10
|
-
})),
|
|
10
|
+
})), i = /* @__PURE__ */ t(((e) => {
|
|
11
11
|
process.env.NODE_ENV !== "production" && (function() {
|
|
12
|
-
var
|
|
12
|
+
var t = n().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
13
13
|
e.c = function(e) {
|
|
14
|
-
var
|
|
15
|
-
return
|
|
14
|
+
var n = t.H;
|
|
15
|
+
return n === null && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."), n.useMemoCache(e);
|
|
16
16
|
};
|
|
17
17
|
})();
|
|
18
|
-
})),
|
|
19
|
-
process.env.NODE_ENV === "production" ? t.exports =
|
|
18
|
+
})), a = /* @__PURE__ */ t(((e, t) => {
|
|
19
|
+
process.env.NODE_ENV === "production" ? t.exports = r() : t.exports = i();
|
|
20
20
|
}));
|
|
21
21
|
//#endregion
|
|
22
|
-
export {
|
|
22
|
+
export { a as t };
|
|
23
23
|
|
|
24
24
|
//# sourceMappingURL=compiler-runtime.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compiler-runtime","names":[],"sources":["../../node_modules/react/cjs/react-compiler-runtime.production.js","../../node_modules/react/cjs/react-compiler-runtime.development.js","../../node_modules/react/compiler-runtime.js"],"sourcesContent":["/**\n * @license React\n * react-compiler-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\nexports.c = function (size) {\n return ReactSharedInternals.H.useMemoCache(size);\n};\n","/**\n * @license React\n * react-compiler-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n var ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\n exports.c = function (size) {\n var dispatcher = ReactSharedInternals.H;\n null === dispatcher &&\n console.error(\n \"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.\"\n );\n return dispatcher.useMemoCache(size);\n };\n })();\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-compiler-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-compiler-runtime.development.js');\n}\n"],"x_google_ignoreList":[
|
|
1
|
+
{"version":3,"file":"compiler-runtime","names":[],"sources":["../../builtin:esm-external-require-react","../../node_modules/react/cjs/react-compiler-runtime.production.js","../../node_modules/react/cjs/react-compiler-runtime.development.js","../../node_modules/react/compiler-runtime.js"],"sourcesContent":["import * as m from 'react';module.exports = { ...m };","/**\n * @license React\n * react-compiler-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\nexports.c = function (size) {\n return ReactSharedInternals.H.useMemoCache(size);\n};\n","/**\n * @license React\n * react-compiler-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n var ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\n exports.c = function (size) {\n var dispatcher = ReactSharedInternals.H;\n null === dispatcher &&\n console.error(\n \"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.\"\n );\n return dispatcher.useMemoCache(size);\n };\n })();\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-compiler-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-compiler-runtime.development.js');\n}\n"],"x_google_ignoreList":[1,2,3],"mappings":";;;CAA2B,EAAO,UAAU,EAAE,GAAG,EAAE;;CCWnD,IAAI,IAAA,EAAA,CAAA,CACe;CACnB,EAAQ,IAAI,SAAU,GAAM;EAC1B,OAAO,EAAqB,EAAE,aAAa,CAAI;CACjD;;CCJA,AAAA,QAAA,IAAA,aAAA,iBACG,WAAY;EACX,IAAI,IAAA,EAAA,CAAA,CACe;EACnB,EAAQ,IAAI,SAAU,GAAM;GAC1B,IAAI,IAAa,EAAqB;GAKtC,OAJS,MAAT,QACE,QAAQ,MACN,+aACF,GACK,EAAW,aAAa,CAAI;EACrC;CACF,EAAA,CAAG;;CCdL,AAAA,QAAA,IAAA,aAA6B,eAC3B,EAAO,UAAA,EAAA,IAEP,EAAO,UAAA,EAAA"}
|
package/dist/chunks/core3.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core3","names":[],"sources":["../../src/components/Calendar/core/calendar.module.css","../../src/components/Calendar/core/calendar.ts","../../src/components/Calendar/core/useCalendarState.ts"],"sourcesContent":["/* configurable tokens\n*\n* --md-calendar-background\n* --md-calendar-header-cell-color\n*\n* --md-calendar-cell-color\n* --md-calendar-cell-state-layer-color\n* --md-calendar-cell-today-color\n*\n* --md-calendar-cell-selected-background\n* --md-calendar-selected-color\n*\n* --md-calendar-in-active-range-background\n* --md-calendar-in-active-range-color\n*\n* --md-calendar-menu-divider-color\n* --md-calendar-menu-selected-background\n* --md-calendar-menu-selected-color\n*\n* configurable tokens end */\n\n@layer adgytec.comps {\n .calendar {\n --_md-calendar-background: var(\n --md-calendar-background,\n var(--md-sys-color-surface-container-high)\n );\n --_md-calendar-header-cell-color: var(\n --md-calendar-header-cell-color,\n var(--md-sys-color-on-surface)\n );\n\n --_md-calendar-cell-color: var(\n --md-calendar-cell-color,\n var(--md-sys-color-on-surface)\n );\n --_md-calendar-cell-state-layer-color: var(\n --md-calendar-cell-state-layer-color,\n var(--md-sys-color-on-surface-variant)\n );\n --_md-calendar-cell-today-color: var(\n --md-calendar-cell-today-color,\n var(--md-sys-color-primary)\n );\n\n --_md-calendar-cell-selected-background: var(\n --md-calendar-cell-selected-background,\n var(--md-sys-color-primary)\n );\n --_md-calendar-selected-color: var(\n --md-calendar-selected-color,\n var(--md-sys-color-on-primary)\n );\n\n --_md-calendar-in-active-range-background: var(\n --md-calendar-in-active-range-background,\n var(--md-sys-color-secondary-container)\n );\n --_md-calendar-in-active-range-color: var(\n --md-calendar-in-active-range-color,\n var(--md-sys-color-on-secondary-container)\n );\n\n --_md-calendar-menu-divider-color: var(\n --md-calendar-menu-divider-color,\n var(--md-sys-color-outline-variant)\n );\n --_md-calendar-menu-selected-background: var(\n --md-calendar-menu-selected-background,\n var(--md-sys-color-surface-variant)\n );\n --_md-calendar-menu-selected-color: var(\n --md-calendar-menu-selected-color,\n var(--md-sys-color-on-surface)\n );\n\n --_md-calendar-cell-size: clamp(\n var(--md-sys-layout-space-40),\n 8svi,\n var(--md-sys-layout-space-48)\n );\n\n padding-block-end: var(--md-sys-layout-space-12);\n padding-block-start: var(--md-sys-layout-space-20);\n\n background-color: var(--_md-calendar-background);\n border-radius: var(--md-sys-shape-corner-radius-large);\n\n display: grid;\n gap: calc(18 * var(--dp, 1px));\n\n [data-button] {\n --md-button-color: var(--_md-calendar-cell-color);\n }\n }\n}\n","import styles from \"./calendar.module.css\";\n\nexport const CalendarBaseStyles = styles[\"calendar\"];\n\nexport type WeekdayStyle = \"narrow\" | \"short\";\n\nexport interface MonthItem {\n id: number;\n formatted: string;\n}\n\nexport interface YearItem {\n id: number;\n formatted: string;\n}\n\nexport const defaultMinYear = 1900;\nexport const defaultMaxYearIncrement = 100;\n","import { useContext } from \"react\";\nimport {\n type CalendarState,\n CalendarStateContext,\n type RangeCalendarState,\n RangeCalendarStateContext,\n} from \"react-aria-components\";\n\nexport function useCalendarState() {\n const calendarState = useContext(CalendarStateContext);\n const rangeCalendarState = useContext(RangeCalendarStateContext);\n const state = calendarState || rangeCalendarState || null;\n\n if (!state) {\n throw Error(\n \"BaseCalendar used outside Calendar or RangeCalendar component\"\n );\n }\n\n return state;\n}\n\nexport function isRangeCalendarState(\n state: CalendarState | RangeCalendarState\n): state is RangeCalendarState {\n return \"anchorDate\" in state;\n}\n"],"mappings":";;;;ACEA,IAAa,IAAqB,iCAAA,EAAO,UAc5B,IAAiB,MACjB,IAA0B;;;
|
|
1
|
+
{"version":3,"file":"core3","names":[],"sources":["../../src/components/Calendar/core/calendar.module.css","../../src/components/Calendar/core/calendar.ts","../../src/components/Calendar/core/useCalendarState.ts"],"sourcesContent":["/* configurable tokens\n*\n* --md-calendar-background\n* --md-calendar-header-cell-color\n*\n* --md-calendar-cell-color\n* --md-calendar-cell-state-layer-color\n* --md-calendar-cell-today-color\n*\n* --md-calendar-cell-selected-background\n* --md-calendar-selected-color\n*\n* --md-calendar-in-active-range-background\n* --md-calendar-in-active-range-color\n*\n* --md-calendar-menu-divider-color\n* --md-calendar-menu-selected-background\n* --md-calendar-menu-selected-color\n*\n* configurable tokens end */\n\n@layer adgytec.comps {\n .calendar {\n --_md-calendar-background: var(\n --md-calendar-background,\n var(--md-sys-color-surface-container-high)\n );\n --_md-calendar-header-cell-color: var(\n --md-calendar-header-cell-color,\n var(--md-sys-color-on-surface)\n );\n\n --_md-calendar-cell-color: var(\n --md-calendar-cell-color,\n var(--md-sys-color-on-surface)\n );\n --_md-calendar-cell-state-layer-color: var(\n --md-calendar-cell-state-layer-color,\n var(--md-sys-color-on-surface-variant)\n );\n --_md-calendar-cell-today-color: var(\n --md-calendar-cell-today-color,\n var(--md-sys-color-primary)\n );\n\n --_md-calendar-cell-selected-background: var(\n --md-calendar-cell-selected-background,\n var(--md-sys-color-primary)\n );\n --_md-calendar-selected-color: var(\n --md-calendar-selected-color,\n var(--md-sys-color-on-primary)\n );\n\n --_md-calendar-in-active-range-background: var(\n --md-calendar-in-active-range-background,\n var(--md-sys-color-secondary-container)\n );\n --_md-calendar-in-active-range-color: var(\n --md-calendar-in-active-range-color,\n var(--md-sys-color-on-secondary-container)\n );\n\n --_md-calendar-menu-divider-color: var(\n --md-calendar-menu-divider-color,\n var(--md-sys-color-outline-variant)\n );\n --_md-calendar-menu-selected-background: var(\n --md-calendar-menu-selected-background,\n var(--md-sys-color-surface-variant)\n );\n --_md-calendar-menu-selected-color: var(\n --md-calendar-menu-selected-color,\n var(--md-sys-color-on-surface)\n );\n\n --_md-calendar-cell-size: clamp(\n var(--md-sys-layout-space-40),\n 8svi,\n var(--md-sys-layout-space-48)\n );\n\n padding-block-end: var(--md-sys-layout-space-12);\n padding-block-start: var(--md-sys-layout-space-20);\n\n background-color: var(--_md-calendar-background);\n border-radius: var(--md-sys-shape-corner-radius-large);\n\n display: grid;\n gap: calc(18 * var(--dp, 1px));\n\n [data-button] {\n --md-button-color: var(--_md-calendar-cell-color);\n }\n }\n}\n","import styles from \"./calendar.module.css\";\n\nexport const CalendarBaseStyles = styles[\"calendar\"];\n\nexport type WeekdayStyle = \"narrow\" | \"short\";\n\nexport interface MonthItem {\n id: number;\n formatted: string;\n}\n\nexport interface YearItem {\n id: number;\n formatted: string;\n}\n\nexport const defaultMinYear = 1900;\nexport const defaultMaxYearIncrement = 100;\n","import { useContext } from \"react\";\nimport {\n type CalendarState,\n CalendarStateContext,\n type RangeCalendarState,\n RangeCalendarStateContext,\n} from \"react-aria-components\";\nimport type { CalendarSelectionMode } from \"react-aria-components/Calendar\";\n\nexport function useCalendarState() {\n const calendarState = useContext(CalendarStateContext);\n const rangeCalendarState = useContext(RangeCalendarStateContext);\n const state = calendarState || rangeCalendarState || null;\n\n if (!state) {\n throw Error(\n \"BaseCalendar used outside Calendar or RangeCalendar component\"\n );\n }\n\n return state;\n}\n\nexport function isRangeCalendarState(\n state: CalendarState<CalendarSelectionMode> | RangeCalendarState\n): state is RangeCalendarState {\n return \"anchorDate\" in state;\n}\n"],"mappings":";;;;ACEA,IAAa,IAAqB,iCAAA,EAAO,UAc5B,IAAiB,MACjB,IAA0B;;;ACRvC,SAAO,IAAA;CACH,IAAA,IAAsB,EAAW,CAAoB,GACrD,IAA2B,EAAW,CAAyB,GAC/D,IAAc,KAAA,KAAA;CAEd,IAAI,CAAC,GACD,MAAM,MACF,+DACJ;CACH,OAEM;AAAK;AAGhB,SAAgB,EACZ,GAC2B;CAC3B,OAAO,gBAAgB;AAC3B"}
|
|
@@ -83,7 +83,7 @@ function y(e) {
|
|
|
83
83
|
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
|
|
84
84
|
let { display: n, visibility: r } = e.style, i = n !== "none" && r !== "hidden" && r !== "collapse";
|
|
85
85
|
if (i) {
|
|
86
|
-
let { getComputedStyle: t } = e
|
|
86
|
+
let { getComputedStyle: t } = u(e), { display: n, visibility: r } = t(e);
|
|
87
87
|
i = n !== "none" && r !== "hidden" && r !== "collapse";
|
|
88
88
|
}
|
|
89
89
|
return i;
|
|
@@ -119,7 +119,7 @@ function w(e, t) {
|
|
|
119
119
|
function T(e) {
|
|
120
120
|
let t = e;
|
|
121
121
|
for (; t != null;) {
|
|
122
|
-
if (t instanceof t.
|
|
122
|
+
if (t instanceof u(t).HTMLElement && t.inert) return !0;
|
|
123
123
|
t = t.parentElement;
|
|
124
124
|
}
|
|
125
125
|
return !1;
|