@ultraviolet/ui 3.13.1 → 3.15.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/README.md +5 -19
- package/dist/_virtual/{_@oxc-project_runtime@0.122.0 → _@oxc-project_runtime@0.128.0}/helpers/defineProperty.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.122.0 → _@oxc-project_runtime@0.128.0}/helpers/objectSpread2.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.122.0 → _@oxc-project_runtime@0.128.0}/helpers/objectWithoutProperties.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.122.0 → _@oxc-project_runtime@0.128.0}/helpers/objectWithoutPropertiesLoose.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.122.0 → _@oxc-project_runtime@0.128.0}/helpers/toPrimitive.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.122.0 → _@oxc-project_runtime@0.128.0}/helpers/toPropertyKey.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.122.0 → _@oxc-project_runtime@0.128.0}/helpers/typeof.js +1 -1
- package/dist/components/ActionBar/index.d.ts.map +1 -1
- package/dist/components/ActionBar/index.js +1 -1
- package/dist/components/ActionBar/styles.css.d.ts.map +1 -1
- package/dist/components/Alert/index.d.ts +1 -1
- package/dist/components/Alert/index.d.ts.map +1 -1
- package/dist/components/Alert/index.js +10 -10
- package/dist/components/Alert/styles.css.d.ts +1 -1
- package/dist/components/Alert/styles.css.d.ts.map +1 -1
- package/dist/components/Alert/styles.css.js +1 -1
- package/dist/components/Alert/type.d.ts.map +1 -1
- package/dist/components/Avatar/index.d.ts.map +1 -1
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/Avatar/styles.css.d.ts.map +1 -1
- package/dist/components/Avatar/types.d.ts +1 -1
- package/dist/components/Avatar/types.d.ts.map +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Badge/index.d.ts.map +1 -1
- package/dist/components/Badge/index.js +1 -5
- package/dist/components/Badge/styles.css.d.ts.map +1 -1
- package/dist/components/Banner/index.d.ts +1 -1
- package/dist/components/Banner/index.d.ts.map +1 -1
- package/dist/components/Banner/styles.css.d.ts.map +1 -1
- package/dist/components/BarChart/Tooltip.d.ts.map +1 -1
- package/dist/components/BarChart/index.d.ts +5 -2
- package/dist/components/BarChart/index.d.ts.map +1 -1
- package/dist/components/BarChart/index.js +8 -2
- package/dist/components/BarStack/index.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/components/Item.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/components/Item.js +1 -1
- package/dist/components/Breadcrumbs/index.d.ts +1 -1
- package/dist/components/Breadcrumbs/index.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/styles.css.d.ts.map +1 -1
- package/dist/components/Bullet/index.d.ts +1 -1
- package/dist/components/Bullet/index.d.ts.map +1 -1
- package/dist/components/Bullet/styles.css.d.ts.map +1 -1
- package/dist/components/Button/index.d.ts +5 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +4 -1
- package/dist/components/Button/styles.css.d.ts.map +1 -1
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/Carousel/Item.d.ts +1 -1
- package/dist/components/Carousel/Item.d.ts.map +1 -1
- package/dist/components/Carousel/Item.js +1 -1
- package/dist/components/Carousel/index.d.ts +1 -1
- package/dist/components/Carousel/index.d.ts.map +1 -1
- package/dist/components/Checkbox/CheckboxIconContainer.d.ts +1 -1
- package/dist/components/Checkbox/CheckboxIconContainer.d.ts.map +1 -1
- package/dist/components/Checkbox/index.d.ts +2 -2
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +13 -20
- package/dist/components/Checkbox/styles.css.d.ts +0 -1
- package/dist/components/Checkbox/styles.css.d.ts.map +1 -1
- package/dist/components/Checkbox/styles.css.js +10 -11
- package/dist/components/CheckboxGroup/Context.d.ts.map +1 -1
- package/dist/components/CheckboxGroup/SingleCheckbox.d.ts +1 -1
- package/dist/components/CheckboxGroup/SingleCheckbox.d.ts.map +1 -1
- package/dist/components/CheckboxGroup/index.d.ts +5 -5
- package/dist/components/CheckboxGroup/index.d.ts.map +1 -1
- package/dist/components/CheckboxGroup/index.js +38 -43
- package/dist/components/Chip/ChipContext.d.ts.map +1 -1
- package/dist/components/Chip/ChipIcon.d.ts +1 -1
- package/dist/components/Chip/ChipIcon.d.ts.map +1 -1
- package/dist/components/Chip/index.d.ts +2 -2
- package/dist/components/Chip/index.d.ts.map +1 -1
- package/dist/components/CopyButton/index.d.ts.map +1 -1
- package/dist/components/DateInput/Context.d.ts.map +1 -1
- package/dist/components/DateInput/Context.js +6 -6
- package/dist/components/DateInput/components/CalendarContent.d.ts.map +1 -1
- package/dist/components/DateInput/components/CalendarContent.js +1 -1
- package/dist/components/DateInput/components/CalendarDaily.d.ts.map +1 -1
- package/dist/components/DateInput/components/CalendarDaily.js +1 -1
- package/dist/components/DateInput/components/CalendarMonthly.d.ts.map +1 -1
- package/dist/components/DateInput/components/Popup.d.ts +1 -1
- package/dist/components/DateInput/components/Popup.d.ts.map +1 -1
- package/dist/components/DateInput/components/Popup.js +1 -1
- package/dist/components/DateInput/components/styles.css.d.ts.map +1 -1
- package/dist/components/DateInput/helpers.d.ts.map +1 -1
- package/dist/components/DateInput/index.d.ts +4 -3
- package/dist/components/DateInput/index.d.ts.map +1 -1
- package/dist/components/DateInput/index.js +2 -1
- package/dist/components/DateInput/styles.css.d.ts.map +1 -1
- package/dist/components/Description/index.d.ts +15 -0
- package/dist/components/Description/index.d.ts.map +1 -0
- package/dist/components/Description/index.js +48 -0
- package/dist/components/Dialog/Context.d.ts.map +1 -1
- package/dist/components/Dialog/components/Button.d.ts +2 -2
- package/dist/components/Dialog/components/Button.d.ts.map +1 -1
- package/dist/components/Dialog/components/Buttons.d.ts +1 -1
- package/dist/components/Dialog/components/Buttons.d.ts.map +1 -1
- package/dist/components/Dialog/components/CancelButton.d.ts +2 -2
- package/dist/components/Dialog/components/CancelButton.d.ts.map +1 -1
- package/dist/components/Dialog/components/Stack.d.ts.map +1 -1
- package/dist/components/Dialog/components/Text.d.ts.map +1 -1
- package/dist/components/Dialog/constants.d.ts.map +1 -1
- package/dist/components/Dialog/index.d.ts +13 -124
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/Drawer/DrawerContent.d.ts.map +1 -1
- package/dist/components/Drawer/index.d.ts +1 -1
- package/dist/components/Drawer/index.d.ts.map +1 -1
- package/dist/components/Drawer/index.js +3 -3
- package/dist/components/Drawer/styles.css.d.ts.map +1 -1
- package/dist/components/EmptyState/index.d.ts +1 -1
- package/dist/components/EmptyState/index.d.ts.map +1 -1
- package/dist/components/EmptyState/index.js +4 -4
- package/dist/components/Expandable/AnimatedExpandable.d.ts.map +1 -1
- package/dist/components/Expandable/AnimatedExpandable.js +1 -1
- package/dist/components/Expandable/NonAnimatedExpandable.js +1 -1
- package/dist/components/Expandable/index.d.ts.map +1 -1
- package/dist/components/ExpandableCard/components/Title.d.ts +2 -2
- package/dist/components/ExpandableCard/components/Title.d.ts.map +1 -1
- package/dist/components/ExpandableCard/index.d.ts +2 -2
- package/dist/components/ExpandableCard/index.d.ts.map +1 -1
- package/dist/components/FileInput/DropzoneContent.d.ts +1 -1
- package/dist/components/FileInput/DropzoneContent.d.ts.map +1 -1
- package/dist/components/FileInput/DropzoneContent.js +1 -2
- package/dist/components/FileInput/FileInputProvider.d.ts +1 -1
- package/dist/components/FileInput/FileInputProvider.d.ts.map +1 -1
- package/dist/components/FileInput/components/Button.d.ts +1 -1
- package/dist/components/FileInput/components/Button.d.ts.map +1 -1
- package/dist/components/FileInput/components/Button.js +2 -2
- package/dist/components/FileInput/components/List.d.ts +1 -1
- package/dist/components/FileInput/components/List.d.ts.map +1 -1
- package/dist/components/FileInput/components/List.js +2 -1
- package/dist/components/FileInput/helpers.d.ts.map +1 -1
- package/dist/components/FileInput/index.d.ts +3 -59
- package/dist/components/FileInput/index.d.ts.map +1 -1
- package/dist/components/FileInput/index.js +109 -86
- package/dist/components/FileInput/styles.css.d.ts +5 -0
- package/dist/components/FileInput/styles.css.d.ts.map +1 -1
- package/dist/components/FileInput/styles.css.js +21 -18
- package/dist/components/FileInput/types.d.ts +13 -8
- package/dist/components/FileInput/types.d.ts.map +1 -1
- package/dist/components/GlobalAlert/GlobalAlertLink.d.ts +1 -1
- package/dist/components/GlobalAlert/GlobalAlertLink.d.ts.map +1 -1
- package/dist/components/GlobalAlert/index.d.ts +11 -11
- package/dist/components/GlobalAlert/index.d.ts.map +1 -1
- package/dist/components/GlobalAlert/styles.css.d.ts.map +1 -1
- package/dist/components/InfiniteScroll/index.d.ts.map +1 -1
- package/dist/components/InfiniteScroll/index.js +1 -1
- package/dist/components/Key/index.d.ts.map +1 -1
- package/dist/components/Label/LabelContent.d.ts.map +1 -1
- package/dist/components/Label/index.d.ts.map +1 -1
- package/dist/components/Label/type.d.ts +1 -1
- package/dist/components/Label/type.d.ts.map +1 -1
- package/dist/components/LineChart/CustomLegend.d.ts +1 -1
- package/dist/components/LineChart/CustomLegend.d.ts.map +1 -1
- package/dist/components/LineChart/LegendCell.d.ts +1 -1
- package/dist/components/LineChart/LegendCell.d.ts.map +1 -1
- package/dist/components/LineChart/Tooltip.d.ts +3 -3
- package/dist/components/LineChart/Tooltip.d.ts.map +1 -1
- package/dist/components/LineChart/Tooltip.js +1 -1
- package/dist/components/LineChart/helpers.d.ts +10 -6
- package/dist/components/LineChart/helpers.d.ts.map +1 -1
- package/dist/components/LineChart/index.d.ts +8 -7
- package/dist/components/LineChart/index.d.ts.map +1 -1
- package/dist/components/LineChart/index.js +2 -2
- package/dist/components/Link/index.d.ts +2 -2
- package/dist/components/Link/index.d.ts.map +1 -1
- package/dist/components/Link/styles.css.d.ts.map +1 -1
- package/dist/components/List/Cell.d.ts.map +1 -1
- package/dist/components/List/Cell.js +1 -1
- package/dist/components/List/ColumnProvider.d.ts +1 -1
- package/dist/components/List/ColumnProvider.d.ts.map +1 -1
- package/dist/components/List/ExpandButtonCell.d.ts +1 -1
- package/dist/components/List/ExpandButtonCell.d.ts.map +1 -1
- package/dist/components/List/HeaderCell.d.ts.map +1 -1
- package/dist/components/List/HeaderRow.d.ts.map +1 -1
- package/dist/components/List/ListContext.d.ts +1 -1
- package/dist/components/List/ListContext.d.ts.map +1 -1
- package/dist/components/List/ListContext.js +3 -3
- package/dist/components/List/Row.d.ts +1 -1
- package/dist/components/List/Row.d.ts.map +1 -1
- package/dist/components/List/SelectBar.d.ts +1 -1
- package/dist/components/List/SelectBar.d.ts.map +1 -1
- package/dist/components/List/SelectRowCell.d.ts.map +1 -1
- package/dist/components/List/SkeletonRows.d.ts +1 -1
- package/dist/components/List/SkeletonRows.d.ts.map +1 -1
- package/dist/components/List/SortIcon.d.ts.map +1 -1
- package/dist/components/List/TableContainer.d.ts.map +1 -1
- package/dist/components/List/index.d.ts +1 -1
- package/dist/components/List/index.d.ts.map +1 -1
- package/dist/components/List/index.js +1 -1
- package/dist/components/List/styles.css.d.ts.map +1 -1
- package/dist/components/List/types.d.ts +1 -1
- package/dist/components/List/types.d.ts.map +1 -1
- package/dist/components/Loader/index.d.ts +2 -2
- package/dist/components/Loader/index.d.ts.map +1 -1
- package/dist/components/Loader/index.js +1 -1
- package/dist/components/Menu/MenuContent.d.ts +4 -4
- package/dist/components/Menu/MenuContent.d.ts.map +1 -1
- package/dist/components/Menu/MenuContent.js +0 -4
- package/dist/components/Menu/MenuProvider.d.ts.map +1 -1
- package/dist/components/Menu/components/Group.d.ts +1 -1
- package/dist/components/Menu/components/Group.d.ts.map +1 -1
- package/dist/components/Menu/components/Item.d.ts +1 -0
- package/dist/components/Menu/components/Item.d.ts.map +1 -1
- package/dist/components/Menu/components/Item.js +5 -7
- package/dist/components/Menu/helpers.d.ts.map +1 -1
- package/dist/components/Menu/index.d.ts +5 -4
- package/dist/components/Menu/index.d.ts.map +1 -1
- package/dist/components/Menu/index.js +2 -2
- package/dist/components/Menu/styles.css.d.ts.map +1 -1
- package/dist/components/Menu/types.d.ts +1 -1
- package/dist/components/Menu/types.d.ts.map +1 -1
- package/dist/components/Meter/index.d.ts.map +1 -1
- package/dist/components/Modal/ModalContent.d.ts +1 -1
- package/dist/components/Modal/ModalContent.d.ts.map +1 -1
- package/dist/components/Modal/ModalProvider.d.ts.map +1 -1
- package/dist/components/Modal/components/Dialog.d.ts.map +1 -1
- package/dist/components/Modal/components/Dialog.js +4 -3
- package/dist/components/Modal/components/Disclosure.d.ts +1 -1
- package/dist/components/Modal/components/Disclosure.d.ts.map +1 -1
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/styles.css.d.ts.map +1 -1
- package/dist/components/Notice/index.d.ts +1 -1
- package/dist/components/Notice/index.d.ts.map +1 -1
- package/dist/components/Notification/Notification.d.ts.map +1 -1
- package/dist/components/Notification/Notification.js +1 -1
- package/dist/components/Notification/NotificationContainer.d.ts.map +1 -1
- package/dist/components/NumberInput/components/Controls.d.ts +1 -1
- package/dist/components/NumberInput/components/Controls.d.ts.map +1 -1
- package/dist/components/NumberInput/index.d.ts +3 -3
- package/dist/components/NumberInput/index.d.ts.map +1 -1
- package/dist/components/NumberInput/index.js +14 -16
- package/dist/components/NumberInput/styles.css.d.ts.map +1 -1
- package/dist/components/Pagination/PaginationButton.d.ts.map +1 -1
- package/dist/components/Pagination/PaginationButtons.d.ts.map +1 -1
- package/dist/components/Pagination/PerPage.d.ts.map +1 -1
- package/dist/components/Pagination/getPageNumbers.d.ts.map +1 -1
- package/dist/components/Pagination/index.d.ts.map +1 -1
- package/dist/components/PasswordCheck/index.d.ts +1 -1
- package/dist/components/PasswordCheck/index.d.ts.map +1 -1
- package/dist/components/PieChart/Legends.d.ts +1 -1
- package/dist/components/PieChart/Legends.d.ts.map +1 -1
- package/dist/components/PieChart/Legends.js +1 -1
- package/dist/components/PieChart/Tooltip.d.ts.map +1 -1
- package/dist/components/PieChart/index.d.ts +1 -1
- package/dist/components/PieChart/index.d.ts.map +1 -1
- package/dist/components/PieChart/index.js +1 -1
- package/dist/components/PieChart/styles.css.d.ts.map +1 -1
- package/dist/components/Popover/ContentWrapper.d.ts +1 -1
- package/dist/components/Popover/ContentWrapper.d.ts.map +1 -1
- package/dist/components/Popover/index.d.ts +4 -4
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/styles.css.d.ts.map +1 -1
- package/dist/components/Popover/types.d.ts +1 -1
- package/dist/components/Popover/types.d.ts.map +1 -1
- package/dist/components/Popup/helpers.d.ts +1 -1
- package/dist/components/Popup/helpers.d.ts.map +1 -1
- package/dist/components/Popup/helpers.js +60 -52
- package/dist/components/Popup/index.d.ts +2 -2
- package/dist/components/Popup/index.d.ts.map +1 -1
- package/dist/components/Popup/index.js +2 -2
- package/dist/components/Popup/styles.css.d.ts.map +1 -1
- package/dist/components/Popup/styles.css.js +6 -2
- package/dist/components/ProgressBar/constants.d.ts.map +1 -1
- package/dist/components/ProgressBar/index.d.ts +1 -1
- package/dist/components/ProgressBar/index.d.ts.map +1 -1
- package/dist/components/ProgressBar/styles.css.d.ts.map +1 -1
- package/dist/components/Radio/index.d.ts +2 -2
- package/dist/components/Radio/index.d.ts.map +1 -1
- package/dist/components/Radio/index.js +13 -9
- package/dist/components/Radio/styles.css.d.ts.map +1 -1
- package/dist/components/RadioGroup/Context.d.ts.map +1 -1
- package/dist/components/RadioGroup/SingleRadio.d.ts +1 -1
- package/dist/components/RadioGroup/SingleRadio.d.ts.map +1 -1
- package/dist/components/RadioGroup/index.d.ts +3 -3
- package/dist/components/RadioGroup/index.d.ts.map +1 -1
- package/dist/components/RadioGroup/index.js +38 -43
- package/dist/components/Row/index.d.ts +1 -1
- package/dist/components/Row/index.d.ts.map +1 -1
- package/dist/components/Row/index.js +1 -1
- package/dist/components/Row/styles.css.d.ts.map +1 -1
- package/dist/components/Row/variables.css.d.ts +1 -1
- package/dist/components/Row/variables.css.d.ts.map +1 -1
- package/dist/components/SearchInput/KeyGroup.d.ts +1 -1
- package/dist/components/SearchInput/KeyGroup.d.ts.map +1 -1
- package/dist/components/SearchInput/index.d.ts.map +1 -1
- package/dist/components/SearchInput/types.d.ts +1 -1
- package/dist/components/SearchInput/types.d.ts.map +1 -1
- package/dist/components/SelectInput/SelectInputProvider.d.ts +1 -1
- package/dist/components/SelectInput/SelectInputProvider.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/AddOption.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/AddOption.js +1 -1
- package/dist/components/SelectInput/components/Dropdown/Content.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/Content.js +2 -2
- package/dist/components/SelectInput/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/SelectInput/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/Dropdown.js +4 -4
- package/dist/components/SelectInput/components/Dropdown/Group.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/Item.d.ts +1 -1
- package/dist/components/SelectInput/components/Dropdown/Item.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/Item.js +1 -1
- package/dist/components/SelectInput/components/Dropdown/Option.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/SearchBar.d.ts +2 -2
- package/dist/components/SelectInput/components/Dropdown/SearchBar.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/SearchBar.js +2 -2
- package/dist/components/SelectInput/components/Dropdown/SelectAll.d.ts +1 -1
- package/dist/components/SelectInput/components/Dropdown/SelectAll.d.ts.map +1 -1
- package/dist/components/SelectInput/components/SelectBar/SelectBar.d.ts +5 -2
- package/dist/components/SelectInput/components/SelectBar/SelectBar.d.ts.map +1 -1
- package/dist/components/SelectInput/components/SelectBar/SelectBar.js +5 -2
- package/dist/components/SelectInput/components/SelectBar/Values.d.ts +1 -1
- package/dist/components/SelectInput/components/SelectBar/Values.d.ts.map +1 -1
- package/dist/components/SelectInput/components/SelectBar/selectBar.css.d.ts.map +1 -1
- package/dist/components/SelectInput/components/helpers.d.ts +1 -1
- package/dist/components/SelectInput/components/helpers.d.ts.map +1 -1
- package/dist/components/SelectInput/constants.d.ts.map +1 -1
- package/dist/components/SelectInput/index.d.ts +5 -5
- package/dist/components/SelectInput/index.d.ts.map +1 -1
- package/dist/components/SelectInput/index.js +61 -65
- package/dist/components/SelectInput/reducerFunctions.d.ts.map +1 -1
- package/dist/components/SelectInput/styles.css.d.ts.map +1 -1
- package/dist/components/SelectableCard/IllustrationContainer.d.ts +1 -1
- package/dist/components/SelectableCard/IllustrationContainer.d.ts.map +1 -1
- package/dist/components/SelectableCard/MultiStateInput.d.ts.map +1 -1
- package/dist/components/SelectableCard/MultiStateInput.js +1 -1
- package/dist/components/SelectableCard/SelectableCard.d.ts.map +1 -1
- package/dist/components/SelectableCard/SelectableCard.js +1 -1
- package/dist/components/SelectableCard/styles.css.d.ts.map +1 -1
- package/dist/components/SelectableCard/types.d.ts +1 -1
- package/dist/components/SelectableCard/types.d.ts.map +1 -1
- package/dist/components/SelectableCardGroup/Context.d.ts.map +1 -1
- package/dist/components/SelectableCardGroup/SingleCard.d.ts +1 -1
- package/dist/components/SelectableCardGroup/SingleCard.d.ts.map +1 -1
- package/dist/components/SelectableCardGroup/index.d.ts +3 -3
- package/dist/components/SelectableCardGroup/index.d.ts.map +1 -1
- package/dist/components/SelectableCardGroup/index.js +28 -35
- package/dist/components/SelectableCardOptionGroup/Provider.d.ts +1 -1
- package/dist/components/SelectableCardOptionGroup/Provider.d.ts.map +1 -1
- package/dist/components/SelectableCardOptionGroup/SelectableCardOptionGroup.d.ts +3 -3
- package/dist/components/SelectableCardOptionGroup/SelectableCardOptionGroup.d.ts.map +1 -1
- package/dist/components/SelectableCardOptionGroup/SelectableCardOptionGroup.js +15 -11
- package/dist/components/SelectableCardOptionGroup/components/Image.d.ts.map +1 -1
- package/dist/components/SelectableCardOptionGroup/components/Option.d.ts +1 -1
- package/dist/components/SelectableCardOptionGroup/components/Option.d.ts.map +1 -1
- package/dist/components/SelectableCardOptionGroup/components/Option.js +2 -2
- package/dist/components/Separator/index.d.ts +6 -2
- package/dist/components/Separator/index.d.ts.map +1 -1
- package/dist/components/Separator/index.js +3 -1
- package/dist/components/Separator/styles.css.d.ts.map +1 -1
- package/dist/components/Skeleton/Block.d.ts.map +1 -1
- package/dist/components/Skeleton/Blocks.d.ts +1 -1
- package/dist/components/Skeleton/Blocks.d.ts.map +1 -1
- package/dist/components/Skeleton/BoxWithIcon.d.ts +1 -1
- package/dist/components/Skeleton/BoxWithIcon.d.ts.map +1 -1
- package/dist/components/Skeleton/Line.d.ts.map +1 -1
- package/dist/components/Skeleton/List.d.ts +1 -1
- package/dist/components/Skeleton/List.d.ts.map +1 -1
- package/dist/components/Skeleton/Slider.d.ts.map +1 -1
- package/dist/components/Skeleton/index.d.ts +3 -3
- package/dist/components/Skeleton/index.d.ts.map +1 -1
- package/dist/components/Skeleton/styles.css.d.ts.map +1 -1
- package/dist/components/Slider/components/DoubleSlider.d.ts +1 -1
- package/dist/components/Slider/components/DoubleSlider.d.ts.map +1 -1
- package/dist/components/Slider/components/DoubleSlider.js +9 -4
- package/dist/components/Slider/components/Options.d.ts +1 -1
- package/dist/components/Slider/components/Options.d.ts.map +1 -1
- package/dist/components/Slider/components/Options.js +4 -2
- package/dist/components/Slider/components/SingleSlider.d.ts +1 -1
- package/dist/components/Slider/components/SingleSlider.d.ts.map +1 -1
- package/dist/components/Slider/components/SingleSlider.js +5 -4
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/index.js +15 -11
- package/dist/components/Slider/styles.css.d.ts +2 -0
- package/dist/components/Slider/styles.css.d.ts.map +1 -1
- package/dist/components/Slider/types.d.ts +2 -2
- package/dist/components/Slider/types.d.ts.map +1 -1
- package/dist/components/Snippet/CodeContent.d.ts.map +1 -1
- package/dist/components/Snippet/index.d.ts +4 -3
- package/dist/components/Snippet/index.d.ts.map +1 -1
- package/dist/components/Snippet/index.js +12 -9
- package/dist/components/Snippet/styles.css.d.ts.map +1 -1
- package/dist/components/Stack/index.d.ts +2 -2
- package/dist/components/Stack/index.d.ts.map +1 -1
- package/dist/components/Stack/index.js +2 -2
- package/dist/components/Stack/styles.css.d.ts.map +1 -1
- package/dist/components/Stack/types.d.ts.map +1 -1
- package/dist/components/Status/constant.d.ts.map +1 -1
- package/dist/components/Status/index.d.ts +1 -1
- package/dist/components/Status/index.d.ts.map +1 -1
- package/dist/components/Status/styles.css.d.ts.map +1 -1
- package/dist/components/StepList/Item.d.ts +1 -1
- package/dist/components/StepList/Item.d.ts.map +1 -1
- package/dist/components/StepList/index.d.ts +2 -2
- package/dist/components/StepList/index.d.ts.map +1 -1
- package/dist/components/Stepper/Bullet.d.ts.map +1 -1
- package/dist/components/Stepper/Step.d.ts.map +1 -1
- package/dist/components/Stepper/StepperProvider.d.ts.map +1 -1
- package/dist/components/Stepper/index.d.ts +1 -1
- package/dist/components/Stepper/index.d.ts.map +1 -1
- package/dist/components/Stepper/index.js +1 -1
- package/dist/components/SwitchButton/FocusOverlay.d.ts +1 -1
- package/dist/components/SwitchButton/FocusOverlay.d.ts.map +1 -1
- package/dist/components/SwitchButton/Option.d.ts +1 -1
- package/dist/components/SwitchButton/Option.d.ts.map +1 -1
- package/dist/components/SwitchButton/Option.js +1 -1
- package/dist/components/SwitchButton/SwitchButtonContext.d.ts.map +1 -1
- package/dist/components/SwitchButton/index.d.ts +2 -2
- package/dist/components/SwitchButton/index.d.ts.map +1 -1
- package/dist/components/SwitchButton/index.js +1 -1
- package/dist/components/SwitchButton/styles.css.d.ts.map +1 -1
- package/dist/components/Table/Cell.d.ts +2 -2
- package/dist/components/Table/Cell.d.ts.map +1 -1
- package/dist/components/Table/Cell.js +1 -1
- package/dist/components/Table/Header.d.ts.map +1 -1
- package/dist/components/Table/HeaderCell.d.ts.map +1 -1
- package/dist/components/Table/HeaderRow.d.ts.map +1 -1
- package/dist/components/Table/Row.d.ts.map +1 -1
- package/dist/components/Table/Row.js +2 -2
- package/dist/components/Table/SelectBar.d.ts +1 -1
- package/dist/components/Table/SelectBar.d.ts.map +1 -1
- package/dist/components/Table/SkeletonRows.d.ts.map +1 -1
- package/dist/components/Table/SortIcon.d.ts.map +1 -1
- package/dist/components/Table/TableContainer.d.ts.map +1 -1
- package/dist/components/Table/TableContext.d.ts.map +1 -1
- package/dist/components/Table/TableContext.js +2 -2
- package/dist/components/Table/index.d.ts +3 -3
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Table/styles.css.d.ts.map +1 -1
- package/dist/components/Table/types.d.ts +1 -1
- package/dist/components/Table/types.d.ts.map +1 -1
- package/dist/components/Tabs/Tab.d.ts.map +1 -1
- package/dist/components/Tabs/Tab.js +4 -4
- package/dist/components/Tabs/TabMenu.d.ts +1 -1
- package/dist/components/Tabs/TabMenu.d.ts.map +1 -1
- package/dist/components/Tabs/TabMenu.js +2 -2
- package/dist/components/Tabs/TabMenuItem.d.ts +1 -1
- package/dist/components/Tabs/TabMenuItem.d.ts.map +1 -1
- package/dist/components/Tabs/TabMenuItem.js +4 -4
- package/dist/components/Tabs/TabsContext.d.ts.map +1 -1
- package/dist/components/Tabs/index.d.ts +3 -226
- package/dist/components/Tabs/index.d.ts.map +1 -1
- package/dist/components/Tabs/index.js +4 -4
- package/dist/components/Tabs/styles.css.d.ts.map +1 -1
- package/dist/components/Tag/TagInner.d.ts +1 -1
- package/dist/components/Tag/TagInner.d.ts.map +1 -1
- package/dist/components/Tag/TagInner.js +3 -4
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Tag/index.js +7 -3
- package/dist/components/Tag/styles.css.d.ts +6 -1
- package/dist/components/Tag/styles.css.d.ts.map +1 -1
- package/dist/components/Tag/styles.css.js +47 -47
- package/dist/components/Tag/type.d.ts +1 -1
- package/dist/components/Tag/type.d.ts.map +1 -1
- package/dist/components/TagInput/index.d.ts +3 -2
- package/dist/components/TagInput/index.d.ts.map +1 -1
- package/dist/components/TagInput/index.js +16 -17
- package/dist/components/TagList/index.d.ts +1 -1
- package/dist/components/TagList/index.d.ts.map +1 -1
- package/dist/components/TagList/index.js +1 -1
- package/dist/components/TagList/styles.css.d.ts.map +1 -1
- package/dist/components/Text/index.d.ts +2 -2
- package/dist/components/Text/index.d.ts.map +1 -1
- package/dist/components/Text/index.js +2 -2
- package/dist/components/Text/style.css.d.ts +1 -0
- package/dist/components/Text/style.css.d.ts.map +1 -1
- package/dist/components/Text/style.css.js +444 -441
- package/dist/components/Text/variables.css.d.ts.map +1 -1
- package/dist/components/TextArea/Icon.d.ts +1 -1
- package/dist/components/TextArea/Icon.d.ts.map +1 -1
- package/dist/components/TextArea/Notice.d.ts +2 -2
- package/dist/components/TextArea/Notice.d.ts.map +1 -1
- package/dist/components/TextArea/Notice.js +11 -8
- package/dist/components/TextArea/index.d.ts +2 -5
- package/dist/components/TextArea/index.d.ts.map +1 -1
- package/dist/components/TextArea/index.js +8 -9
- package/dist/components/TextInput/PrefixSuffix.d.ts +1 -1
- package/dist/components/TextInput/PrefixSuffix.d.ts.map +1 -1
- package/dist/components/TextInput/RightIcon.d.ts +1 -1
- package/dist/components/TextInput/RightIcon.d.ts.map +1 -1
- package/dist/components/TextInput/ShowHidePassword.d.ts +1 -1
- package/dist/components/TextInput/ShowHidePassword.d.ts.map +1 -1
- package/dist/components/TextInput/index.d.ts +2 -2
- package/dist/components/TextInput/index.d.ts.map +1 -1
- package/dist/components/TextInput/index.js +13 -7
- package/dist/components/TextInput/styles.css.d.ts.map +1 -1
- package/dist/components/TextInput/type.d.ts +2 -2
- package/dist/components/TextInput/type.d.ts.map +1 -1
- package/dist/components/TimeInput/RightIcon.d.ts.map +1 -1
- package/dist/components/TimeInput/helpers.d.ts.map +1 -1
- package/dist/components/TimeInput/index.d.ts +2 -1
- package/dist/components/TimeInput/index.d.ts.map +1 -1
- package/dist/components/TimeInput/index.js +17 -10
- package/dist/components/TimeInput/styles.css.d.ts.map +1 -1
- package/dist/components/Toaster/Toaster.d.ts.map +1 -1
- package/dist/components/Toaster/Toaster.js +2 -2
- package/dist/components/Toaster/ToasterContainer.d.ts.map +1 -1
- package/dist/components/Toaster/components/Button.d.ts +1 -1
- package/dist/components/Toaster/components/Button.d.ts.map +1 -1
- package/dist/components/Toaster/components/CloseButton.d.ts +1 -1
- package/dist/components/Toaster/components/CloseButton.d.ts.map +1 -1
- package/dist/components/Toaster/components/Content.d.ts.map +1 -1
- package/dist/components/Toaster/components/Link.d.ts +1 -1
- package/dist/components/Toaster/components/Link.d.ts.map +1 -1
- package/dist/components/Toaster/index.d.ts +2 -89
- package/dist/components/Toaster/index.d.ts.map +1 -1
- package/dist/components/Toggle/index.d.ts +1 -1
- package/dist/components/Toggle/index.d.ts.map +1 -1
- package/dist/components/Toggle/index.js +29 -34
- package/dist/components/ToggleGroup/Context.d.ts.map +1 -1
- package/dist/components/ToggleGroup/SingleToggle.d.ts +1 -1
- package/dist/components/ToggleGroup/SingleToggle.d.ts.map +1 -1
- package/dist/components/ToggleGroup/index.d.ts +3 -3
- package/dist/components/ToggleGroup/index.d.ts.map +1 -1
- package/dist/components/ToggleGroup/index.js +38 -44
- package/dist/components/Tooltip/index.d.ts +2 -2
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/TreeMapChart/Tooltip.d.ts +1 -1
- package/dist/components/TreeMapChart/Tooltip.d.ts.map +1 -1
- package/dist/components/TreeMapChart/index.d.ts +2 -2
- package/dist/components/TreeMapChart/index.d.ts.map +1 -1
- package/dist/components/TreeMapChart/index.js +2 -2
- package/dist/components/UnitInput/index.d.ts +4 -4
- package/dist/components/UnitInput/index.d.ts.map +1 -1
- package/dist/components/UnitInput/index.js +15 -16
- package/dist/components/VerificationCode/index.d.ts +2 -1
- package/dist/components/VerificationCode/index.d.ts.map +1 -1
- package/dist/components/VerificationCode/index.js +14 -18
- package/dist/components/VerificationCode/styles.css.d.ts.map +1 -1
- package/dist/components/styles.js +4 -4
- package/dist/compositions/CodeEditor/components/CopyButton.d.ts.map +1 -1
- package/dist/compositions/CodeEditor/components/Expandable.d.ts.map +1 -1
- package/dist/compositions/CodeEditor/index.d.ts +1 -1
- package/dist/compositions/CodeEditor/index.d.ts.map +1 -1
- package/dist/compositions/CodeEditor/index.js +14 -17
- package/dist/compositions/CodeEditor/styles.css.d.ts.map +1 -1
- package/dist/compositions/CodeEditor/type.d.ts +1 -0
- package/dist/compositions/CodeEditor/type.d.ts.map +1 -1
- package/dist/compositions/ContentCard/Content.d.ts.map +1 -1
- package/dist/compositions/ContentCard/ImageContent.d.ts.map +1 -1
- package/dist/compositions/ContentCard/LinkContent.d.ts +1 -1
- package/dist/compositions/ContentCard/LinkContent.d.ts.map +1 -1
- package/dist/compositions/ContentCard/Skeleton.d.ts.map +1 -1
- package/dist/compositions/ContentCard/index.d.ts.map +1 -1
- package/dist/compositions/ContentCardGroup/Card.d.ts.map +1 -1
- package/dist/compositions/ContentCardGroup/SkeletonCard.d.ts.map +1 -1
- package/dist/compositions/ContentCardGroup/index.d.ts +1 -1
- package/dist/compositions/ContentCardGroup/index.d.ts.map +1 -1
- package/dist/compositions/Conversation/components/Date.d.ts +1 -1
- package/dist/compositions/Conversation/components/Date.d.ts.map +1 -1
- package/dist/compositions/Conversation/components/Message.d.ts +1 -1
- package/dist/compositions/Conversation/components/Message.d.ts.map +1 -1
- package/dist/compositions/Conversation/components/MessageInfos.d.ts.map +1 -1
- package/dist/compositions/Conversation/components/MessageTag.d.ts +1 -1
- package/dist/compositions/Conversation/components/MessageTag.d.ts.map +1 -1
- package/dist/compositions/Conversation/index.d.ts +3 -3
- package/dist/compositions/Conversation/index.d.ts.map +1 -1
- package/dist/compositions/Conversation/styles.css.d.ts.map +1 -1
- package/dist/compositions/CustomerSatisfaction/index.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/CompactEstimateCost.d.ts +2 -1
- package/dist/compositions/EstimateCost/CompactEstimateCost.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/CompactEstimateCost.js +2 -2
- package/dist/compositions/EstimateCost/Components/Children.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/Components/Children.js +1 -1
- package/dist/compositions/EstimateCost/Components/CustomUnitInput.d.ts +1 -1
- package/dist/compositions/EstimateCost/Components/CustomUnitInput.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/Components/Description.d.ts +2 -2
- package/dist/compositions/EstimateCost/Components/Description.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/Components/Item.d.ts +1 -1
- package/dist/compositions/EstimateCost/Components/Item.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/Components/Item.js +2 -2
- package/dist/compositions/EstimateCost/Components/ItemLeftSide.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/Components/ItemPrice.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/Components/LineThrough.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/Components/LineThrough.js +2 -2
- package/dist/compositions/EstimateCost/Components/NumberInput.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/Components/NumberInput.js +1 -1
- package/dist/compositions/EstimateCost/Components/Region.d.ts +2 -2
- package/dist/compositions/EstimateCost/Components/Region.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/Components/Region.js +1 -1
- package/dist/compositions/EstimateCost/Components/Regular.d.ts +1 -1
- package/dist/compositions/EstimateCost/Components/Regular.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/Components/Strong.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/Components/Title.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/Components/Total.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/Components/Total.js +1 -1
- package/dist/compositions/EstimateCost/Components/Unit.d.ts +1 -1
- package/dist/compositions/EstimateCost/Components/Unit.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/Components/Unit.js +2 -2
- package/dist/compositions/EstimateCost/Components/Zone.d.ts +1 -1
- package/dist/compositions/EstimateCost/Components/Zone.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/Components/Zone.js +1 -1
- package/dist/compositions/EstimateCost/Components/components.css.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/Ellipsis.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/Ellipsis.js +1 -1
- package/dist/compositions/EstimateCost/EstimateCostContent.d.ts +1 -1
- package/dist/compositions/EstimateCost/EstimateCostContent.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/EstimateCostContent.js +3 -2
- package/dist/compositions/EstimateCost/EstimateCostProvider.d.ts +2 -2
- package/dist/compositions/EstimateCost/EstimateCostProvider.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/EstimateCostProvider.js +1 -1
- package/dist/compositions/EstimateCost/Image.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/Image.js +1 -1
- package/dist/compositions/EstimateCost/OverlayComponent.d.ts +1 -1
- package/dist/compositions/EstimateCost/OverlayComponent.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/OverlayContext.d.ts +1 -1
- package/dist/compositions/EstimateCost/OverlayContext.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/helper.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/index.d.ts +8 -8
- package/dist/compositions/EstimateCost/index.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/index.js +2 -1
- package/dist/compositions/EstimateCost/locales/en.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/styles.css.d.ts +1 -1
- package/dist/compositions/EstimateCost/styles.css.d.ts.map +1 -1
- package/dist/compositions/EstimateCost/styles.css.js +5 -2
- package/dist/compositions/EstimateCost/types.d.ts +6 -2
- package/dist/compositions/EstimateCost/types.d.ts.map +1 -1
- package/dist/compositions/FAQ/index.d.ts +1 -1
- package/dist/compositions/FAQ/index.d.ts.map +1 -1
- package/dist/compositions/InfoTable/components/Cell.d.ts +1 -1
- package/dist/compositions/InfoTable/components/Cell.d.ts.map +1 -1
- package/dist/compositions/InfoTable/components/CellWithCopyButton.d.ts +1 -1
- package/dist/compositions/InfoTable/components/CellWithCopyButton.d.ts.map +1 -1
- package/dist/compositions/InfoTable/components/Row.d.ts +1 -1
- package/dist/compositions/InfoTable/components/Row.d.ts.map +1 -1
- package/dist/compositions/InfoTable/components/Row.js +1 -1
- package/dist/compositions/InfoTable/index.d.ts +5 -17
- package/dist/compositions/InfoTable/index.d.ts.map +1 -1
- package/dist/compositions/Navigation/Footer.d.ts +1 -1
- package/dist/compositions/Navigation/Footer.d.ts.map +1 -1
- package/dist/compositions/Navigation/Header.d.ts.map +1 -1
- package/dist/compositions/Navigation/NavigationContent.d.ts.map +1 -1
- package/dist/compositions/Navigation/NavigationContent.js +27 -17
- package/dist/compositions/Navigation/NavigationProvider.d.ts +6 -3
- package/dist/compositions/Navigation/NavigationProvider.d.ts.map +1 -1
- package/dist/compositions/Navigation/NavigationProvider.js +36 -12
- package/dist/compositions/Navigation/components/ComponentsTypes.d.ts +6 -1
- package/dist/compositions/Navigation/components/ComponentsTypes.d.ts.map +1 -1
- package/dist/compositions/Navigation/components/Group.d.ts +1 -1
- package/dist/compositions/Navigation/components/Group.d.ts.map +1 -1
- package/dist/compositions/Navigation/components/Group.js +22 -23
- package/dist/compositions/Navigation/components/Item/Badge.d.ts +1 -3
- package/dist/compositions/Navigation/components/Item/Badge.d.ts.map +1 -1
- package/dist/compositions/Navigation/components/Item/Badge.js +1 -1
- package/dist/compositions/Navigation/components/Item/Children.d.ts.map +1 -1
- package/dist/compositions/Navigation/components/Item/Children.js +6 -8
- package/dist/compositions/Navigation/components/Item/Content.d.ts.map +1 -1
- package/dist/compositions/Navigation/components/Item/Content.js +5 -3
- package/dist/compositions/Navigation/components/Item/Item.d.ts +1 -1
- package/dist/compositions/Navigation/components/Item/Item.d.ts.map +1 -1
- package/dist/compositions/Navigation/components/Item/Item.js +8 -14
- package/dist/compositions/Navigation/components/Item/ItemExpanded.d.ts +1 -1
- package/dist/compositions/Navigation/components/Item/ItemExpanded.d.ts.map +1 -1
- package/dist/compositions/Navigation/components/Item/ItemExpanded.js +14 -23
- package/dist/compositions/Navigation/components/Item/ItemProvider.d.ts.map +1 -1
- package/dist/compositions/Navigation/components/Item/PinnedButton.d.ts.map +1 -1
- package/dist/compositions/Navigation/components/Menu/Menu.d.ts +1 -1
- package/dist/compositions/Navigation/components/Menu/Menu.d.ts.map +1 -1
- package/dist/compositions/Navigation/components/Menu/Menu.js +6 -4
- package/dist/compositions/Navigation/components/Menu/MenuItem.d.ts.map +1 -1
- package/dist/compositions/Navigation/components/Menu/MenuItem.js +4 -9
- package/dist/compositions/Navigation/components/Menu/NestedMenu.d.ts.map +1 -1
- package/dist/compositions/Navigation/components/Menu/NestedMenu.js +1 -1
- package/dist/compositions/Navigation/components/PinnedItems.d.ts +1 -1
- package/dist/compositions/Navigation/components/PinnedItems.d.ts.map +1 -1
- package/dist/compositions/Navigation/components/PinnedItems.js +4 -5
- package/dist/compositions/Navigation/components/Separator.d.ts.map +1 -1
- package/dist/compositions/Navigation/components/Separator.js +8 -1
- package/dist/compositions/Navigation/components/ShowHide.d.ts +1 -1
- package/dist/compositions/Navigation/components/ShowHide.d.ts.map +1 -1
- package/dist/compositions/Navigation/components/ShowHide.js +4 -4
- package/dist/compositions/Navigation/components/items.css.d.ts +22 -31
- package/dist/compositions/Navigation/components/items.css.d.ts.map +1 -1
- package/dist/compositions/Navigation/components/styles.css.d.ts +8 -6
- package/dist/compositions/Navigation/components/styles.css.d.ts.map +1 -1
- package/dist/compositions/Navigation/constants.d.ts +2 -1
- package/dist/compositions/Navigation/constants.d.ts.map +1 -1
- package/dist/compositions/Navigation/constants.js +5 -2
- package/dist/compositions/Navigation/index.d.ts +6 -6
- package/dist/compositions/Navigation/index.d.ts.map +1 -1
- package/dist/compositions/Navigation/locales/en.d.ts.map +1 -1
- package/dist/compositions/Navigation/styles.css.d.ts +41 -53
- package/dist/compositions/Navigation/styles.css.d.ts.map +1 -1
- package/dist/compositions/Navigation/styles.css.js +66 -107
- package/dist/compositions/Navigation/variables.css.d.ts +13 -0
- package/dist/compositions/Navigation/variables.css.d.ts.map +1 -1
- package/dist/compositions/Navigation/variables.css.js +4 -2
- package/dist/compositions/OfferList/OfferListProvider.d.ts.map +1 -1
- package/dist/compositions/OfferList/components/Banner.d.ts +1 -1
- package/dist/compositions/OfferList/components/Banner.d.ts.map +1 -1
- package/dist/compositions/OfferList/components/Cell.d.ts +1 -1
- package/dist/compositions/OfferList/components/Cell.d.ts.map +1 -1
- package/dist/compositions/OfferList/components/Cell.js +2 -2
- package/dist/compositions/OfferList/components/Row.d.ts +2 -2
- package/dist/compositions/OfferList/components/Row.d.ts.map +1 -1
- package/dist/compositions/OfferList/components/Row.js +2 -2
- package/dist/compositions/OfferList/components/SelectableCell.d.ts +1 -1
- package/dist/compositions/OfferList/components/SelectableCell.d.ts.map +1 -1
- package/dist/compositions/OfferList/index.d.ts +4 -24
- package/dist/compositions/OfferList/index.d.ts.map +1 -1
- package/dist/compositions/OfferList/styles.css.d.ts.map +1 -1
- package/dist/compositions/OptionSelector/__mock__/resources.d.ts.map +1 -1
- package/dist/compositions/OptionSelector/components/ArrowIcon.d.ts.map +1 -1
- package/dist/compositions/OptionSelector/components/IconWithContent.d.ts +1 -1
- package/dist/compositions/OptionSelector/components/IconWithContent.d.ts.map +1 -1
- package/dist/compositions/OptionSelector/components/RevealOnHover.d.ts +1 -1
- package/dist/compositions/OptionSelector/components/RevealOnHover.d.ts.map +1 -1
- package/dist/compositions/OptionSelector/components/Selector.d.ts +2 -1
- package/dist/compositions/OptionSelector/components/Selector.d.ts.map +1 -1
- package/dist/compositions/OptionSelector/components/Selector.js +2 -1
- package/dist/compositions/OptionSelector/index.d.ts.map +1 -1
- package/dist/compositions/OptionSelector/index.js +21 -10
- package/dist/compositions/OptionSelector/styles.css.d.ts.map +1 -1
- package/dist/compositions/OptionSelector/styles.css.js +58 -58
- package/dist/compositions/OptionSelector/types.d.ts +1 -1
- package/dist/compositions/OptionSelector/types.d.ts.map +1 -1
- package/dist/compositions/OrderSummary/NonScrollableContent.d.ts +4 -2
- package/dist/compositions/OrderSummary/NonScrollableContent.d.ts.map +1 -1
- package/dist/compositions/OrderSummary/NonScrollableContent.js +18 -4
- package/dist/compositions/OrderSummary/Provider.d.ts.map +1 -1
- package/dist/compositions/OrderSummary/ScrollableContent.d.ts.map +1 -1
- package/dist/compositions/OrderSummary/components/Category.d.ts.map +1 -1
- package/dist/compositions/OrderSummary/components/SubCategory.d.ts +1 -1
- package/dist/compositions/OrderSummary/components/SubCategory.d.ts.map +1 -1
- package/dist/compositions/OrderSummary/components/SubCategory.js +1 -1
- package/dist/compositions/OrderSummary/components/SubCategoryPrice.d.ts +1 -1
- package/dist/compositions/OrderSummary/components/SubCategoryPrice.d.ts.map +1 -1
- package/dist/compositions/OrderSummary/constants.d.ts.map +1 -1
- package/dist/compositions/OrderSummary/helpers.d.ts +1 -1
- package/dist/compositions/OrderSummary/helpers.d.ts.map +1 -1
- package/dist/compositions/OrderSummary/helpers.js +1 -1
- package/dist/compositions/OrderSummary/index.d.ts +1 -1
- package/dist/compositions/OrderSummary/index.d.ts.map +1 -1
- package/dist/compositions/OrderSummary/index.js +5 -3
- package/dist/compositions/OrderSummary/locales/en.d.ts.map +1 -1
- package/dist/compositions/OrderSummary/styles.css.d.ts +22 -2
- package/dist/compositions/OrderSummary/styles.css.d.ts.map +1 -1
- package/dist/compositions/OrderSummary/styles.css.js +32 -15
- package/dist/compositions/OrderSummary/types.d.ts +16 -2
- package/dist/compositions/OrderSummary/types.d.ts.map +1 -1
- package/dist/compositions/Plans/FeatureHint.d.ts.map +1 -1
- package/dist/compositions/Plans/PlanHeader.d.ts.map +1 -1
- package/dist/compositions/Plans/index.d.ts +1 -1
- package/dist/compositions/Plans/index.d.ts.map +1 -1
- package/dist/compositions/Plans/locales/en.d.ts.map +1 -1
- package/dist/compositions/Plans/styles.css.d.ts.map +1 -1
- package/dist/compositions/Plans/types.d.ts +1 -1
- package/dist/compositions/Plans/types.d.ts.map +1 -1
- package/dist/compositions/SteppedListCard/Step.d.ts +1 -1
- package/dist/compositions/SteppedListCard/Step.d.ts.map +1 -1
- package/dist/compositions/SteppedListCard/SteppedListContent.d.ts.map +1 -1
- package/dist/compositions/SteppedListCard/helper.d.ts.map +1 -1
- package/dist/compositions/SteppedListCard/index.d.ts +1 -1
- package/dist/compositions/SteppedListCard/index.d.ts.map +1 -1
- package/dist/helpers/hasHelperText.d.ts +4 -0
- package/dist/helpers/hasHelperText.d.ts.map +1 -0
- package/dist/helpers/hasHelperText.js +12 -0
- package/dist/helpers/isClientSide.d.ts.map +1 -1
- package/dist/helpers/keycode.d.ts.map +1 -1
- package/dist/helpers/legend.d.ts.map +1 -1
- package/dist/helpers/nivoTheme.d.ts +1 -0
- package/dist/helpers/nivoTheme.d.ts.map +1 -1
- package/dist/helpers/nivoTheme.js +1 -0
- package/dist/helpers/numbers.d.ts.map +1 -1
- package/dist/helpers/recursivelyGetChildrenString.d.ts.map +1 -1
- package/dist/helpers/treeMap.d.ts.map +1 -1
- package/dist/hooks/useIsOverflowing.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/mocks/list.d.ts.map +1 -1
- package/dist/theme/ThemeProvider.d.ts +1 -1
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/dist/utils/normalize.d.ts.map +1 -1
- package/dist/utils/responsive/utilities.d.ts.map +1 -1
- package/package.json +27 -26
- package/dist/components/SelectInput/components/Dropdown.d.ts +0 -42
- package/dist/components/SelectInput/components/Dropdown.d.ts.map +0 -1
- package/dist/components/SelectInput/components/DropdownOption.d.ts +0 -10
- package/dist/components/SelectInput/components/DropdownOption.d.ts.map +0 -1
- package/dist/components/SelectInput/components/SearchBarDropdown.d.ts +0 -10
- package/dist/components/SelectInput/components/SearchBarDropdown.d.ts.map +0 -1
- package/dist/components/TextInput/BottomText.d.ts +0 -3
- package/dist/components/TextInput/BottomText.d.ts.map +0 -1
- package/dist/components/TextInput/BottomText.js +0 -29
- package/dist/compositions/Navigation/animations.css.d.ts +0 -7
- package/dist/compositions/Navigation/animations.css.d.ts.map +0 -1
- package/dist/compositions/Navigation/animations.css.ts.vanilla.js +0 -8
- package/dist/compositions/OptionSelector/components/SelectorLabel.d.ts +0 -8
- package/dist/compositions/OptionSelector/components/SelectorLabel.d.ts.map +0 -1
- package/dist/compositions/OptionSelector/components/SelectorLabel.js +0 -23
|
@@ -2,17 +2,20 @@
|
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
3
|
import { Stack, init_Stack } from "../../components/Stack/index.js";
|
|
4
4
|
import { init_constants } from "./constants.js";
|
|
5
|
+
import { init_variables_css, widthNavigationContainer, widthNavigationContainerDuration, widthNavigationContainerExpanded } from "./variables.css.js";
|
|
5
6
|
import { init_NavigationProvider, useNavigation } from "./NavigationProvider.js";
|
|
6
7
|
import { init_styles_css, navigationStyle } from "./styles.css.js";
|
|
7
8
|
import { Footer, init_Footer } from "./Footer.js";
|
|
8
9
|
import { Header, init_Header } from "./Header.js";
|
|
9
|
-
import { init_variables_css, widthNavigationContainer } from "./variables.css.js";
|
|
10
10
|
import { useEffect, useRef } from "react";
|
|
11
11
|
import { cn } from "@ultraviolet/utils";
|
|
12
|
-
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
12
|
+
import { assignInlineVars, setElementVars } from "@vanilla-extract/dynamic";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
|
|
15
15
|
//#region src/compositions/Navigation/NavigationContent.tsx
|
|
16
|
+
function clamp(min, value, max) {
|
|
17
|
+
return Math.min(max, Math.max(min, value));
|
|
18
|
+
}
|
|
16
19
|
var NavigationContent;
|
|
17
20
|
var init_NavigationContent = __esmMin(() => {
|
|
18
21
|
init_Stack();
|
|
@@ -25,7 +28,7 @@ var init_NavigationContent = __esmMin(() => {
|
|
|
25
28
|
NavigationContent = ({ children, logo, onWidthResize, className, "data-testid": dataTestId, id, onToggleExpand }) => {
|
|
26
29
|
const context = useNavigation();
|
|
27
30
|
if (!context) throw new Error("Navigation should be inside NavigationProvider to use it properly.");
|
|
28
|
-
const { setWidth, width, expanded, toggleExpand,
|
|
31
|
+
const { setWidth, width, expanded, toggleExpand, navigationRef, allowNavigationResize, shouldAnimate } = context;
|
|
29
32
|
const sliderRef = useRef(null);
|
|
30
33
|
const contentRef = useRef(null);
|
|
31
34
|
useEffect(() => {
|
|
@@ -36,22 +39,25 @@ var init_NavigationContent = __esmMin(() => {
|
|
|
36
39
|
const mouseMove = (event) => {
|
|
37
40
|
if (prevX !== void 0) {
|
|
38
41
|
var _navRect$width;
|
|
39
|
-
const newWidth = ((_navRect$width = navRect === null || navRect === void 0 ? void 0 : navRect.width) !== null && _navRect$width !== void 0 ? _navRect$width : 0) + (event.clientX - prevX);
|
|
40
|
-
if (navigationRef.current && expanded)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
const newWidth = clamp(220, ((_navRect$width = navRect === null || navRect === void 0 ? void 0 : navRect.width) !== null && _navRect$width !== void 0 ? _navRect$width : 0) + (event.clientX - prevX), 320);
|
|
43
|
+
if (navigationRef.current && expanded) {
|
|
44
|
+
navigationRef.current.style.width = `${newWidth}px`;
|
|
45
|
+
setElementVars(navigationRef.current, { [widthNavigationContainerExpanded]: `${newWidth}px` });
|
|
46
|
+
}
|
|
47
|
+
shouldCollapseOnMouseUp = newWidth <= 220;
|
|
48
|
+
shouldExpandOnMouseUp = !expanded && newWidth >= 64;
|
|
45
49
|
}
|
|
46
50
|
};
|
|
47
51
|
const mousedown = (event) => {
|
|
48
52
|
var _navigationRef$curren;
|
|
49
53
|
prevX = event.clientX;
|
|
50
54
|
navRect = (_navigationRef$curren = navigationRef.current) === null || _navigationRef$curren === void 0 ? void 0 : _navigationRef$curren.getBoundingClientRect();
|
|
55
|
+
if (navigationRef.current) setElementVars(navigationRef.current, { [widthNavigationContainerDuration]: "0" });
|
|
51
56
|
const mouseup = () => {
|
|
52
57
|
if (shouldCollapseOnMouseUp || shouldExpandOnMouseUp) {
|
|
53
58
|
toggleExpand();
|
|
54
59
|
onToggleExpand === null || onToggleExpand === void 0 || onToggleExpand(!expanded);
|
|
60
|
+
if (navigationRef.current) setElementVars(navigationRef.current, { [widthNavigationContainerExpanded]: `${width}px` });
|
|
55
61
|
}
|
|
56
62
|
if (navigationRef.current) {
|
|
57
63
|
if (!(shouldCollapseOnMouseUp || shouldExpandOnMouseUp)) {
|
|
@@ -59,6 +65,7 @@ var init_NavigationContent = __esmMin(() => {
|
|
|
59
65
|
setWidth === null || setWidth === void 0 || setWidth(navigationRef.current.offsetWidth);
|
|
60
66
|
}
|
|
61
67
|
if (!expanded) navigationRef.current.style.width = "";
|
|
68
|
+
setElementVars(navigationRef.current, { [widthNavigationContainerDuration]: `${shouldAnimate ? 250 : 0}ms` });
|
|
62
69
|
}
|
|
63
70
|
document.removeEventListener("mousemove", mouseMove);
|
|
64
71
|
window.removeEventListener("mouseup", mouseup);
|
|
@@ -77,23 +84,26 @@ var init_NavigationContent = __esmMin(() => {
|
|
|
77
84
|
onToggleExpand,
|
|
78
85
|
onWidthResize,
|
|
79
86
|
setWidth,
|
|
80
|
-
toggleExpand
|
|
87
|
+
toggleExpand,
|
|
88
|
+
shouldAnimate,
|
|
89
|
+
width
|
|
81
90
|
]);
|
|
82
91
|
return /* @__PURE__ */ jsxs("nav", {
|
|
83
92
|
className: cn(className, navigationStyle.navigation),
|
|
84
93
|
"data-testid": dataTestId,
|
|
85
94
|
id,
|
|
86
95
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
87
|
-
className: navigationStyle.container(
|
|
88
|
-
animation: shouldAnimate ? animation : void 0,
|
|
89
|
-
expanded
|
|
90
|
-
}),
|
|
96
|
+
className: navigationStyle.container(),
|
|
91
97
|
ref: navigationRef,
|
|
92
|
-
style: assignInlineVars({
|
|
98
|
+
style: assignInlineVars({
|
|
99
|
+
[widthNavigationContainer]: `${expanded ? width : 64}px`,
|
|
100
|
+
[widthNavigationContainerExpanded]: `${width}px`,
|
|
101
|
+
[widthNavigationContainerDuration]: `${shouldAnimate ? 250 : 0}ms`
|
|
102
|
+
}),
|
|
93
103
|
children: [logo ? /* @__PURE__ */ jsx(Header, { logo }) : null, /* @__PURE__ */ jsxs("div", {
|
|
94
|
-
className: cn(navigationStyle.contentContainer
|
|
104
|
+
className: cn(navigationStyle.contentContainer),
|
|
95
105
|
children: [/* @__PURE__ */ jsx(Stack, {
|
|
96
|
-
className: navigationStyle.content,
|
|
106
|
+
className: navigationStyle.content({ collapsed: !expanded }),
|
|
97
107
|
gap: .25,
|
|
98
108
|
ref: contentRef,
|
|
99
109
|
children
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Dispatch, ReactNode, RefObject } from 'react';
|
|
1
2
|
import NavigationLocales from './locales/en';
|
|
2
3
|
import type { PinUnPinType } from './types';
|
|
3
|
-
import type { Dispatch, ReactNode, RefObject } from 'react';
|
|
4
4
|
type Item = {
|
|
5
5
|
label: string;
|
|
6
6
|
active?: boolean;
|
|
@@ -11,7 +11,9 @@ type Items = Record<string, Item>;
|
|
|
11
11
|
type AnimationType = 'simple' | 'complex';
|
|
12
12
|
type ContextProps = {
|
|
13
13
|
expanded: boolean;
|
|
14
|
-
toggleExpand: (toggle?: boolean
|
|
14
|
+
toggleExpand: (toggle?: boolean, options?: {
|
|
15
|
+
immediate?: boolean;
|
|
16
|
+
}) => void;
|
|
15
17
|
animation: boolean | 'expand' | 'collapse';
|
|
16
18
|
pinnedFeature?: boolean;
|
|
17
19
|
onClickPinUnpin?: (pinned: string[]) => void;
|
|
@@ -85,10 +87,11 @@ type NavigationProviderProps = {
|
|
|
85
87
|
animation?: boolean;
|
|
86
88
|
/**
|
|
87
89
|
* type of animation
|
|
90
|
+
* @deprecated use the `animation` prop to enable or disable the animation completely. This one has no effect.
|
|
88
91
|
*/
|
|
89
92
|
animationType?: AnimationType;
|
|
90
93
|
showHide?: 'show' | 'hide';
|
|
91
94
|
};
|
|
92
|
-
export declare const NavigationProvider: ({ children, pinnedFeature, initialPinned, initialExpanded, locales, pinLimit, onExpandChange, initialWidth, initialAllowNavigationResize, animation:
|
|
95
|
+
export declare const NavigationProvider: ({ children, pinnedFeature, initialPinned, initialExpanded, locales, pinLimit, onExpandChange, initialWidth, initialAllowNavigationResize, animation: animationEnabled, animationType, showHide, }: NavigationProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
93
96
|
export {};
|
|
94
97
|
//# sourceMappingURL=NavigationProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationProvider.d.ts","sourceRoot":"","sources":["../../../src/compositions/Navigation/NavigationProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NavigationProvider.d.ts","sourceRoot":"","sources":["../../../src/compositions/Navigation/NavigationProvider.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.
|
|
4
|
-
import { init_constants } from "./constants.js";
|
|
3
|
+
import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.128.0/helpers/objectSpread2.js";
|
|
4
|
+
import { ANIMATION_EASING, init_constants } from "./constants.js";
|
|
5
5
|
import en_default, { init_en } from "./locales/en.js";
|
|
6
|
+
import { init_variables_css, widthNavigationContainerDuration } from "./variables.css.js";
|
|
6
7
|
import { createContext, useCallback, useContext, useMemo, useReducer, useRef, useState } from "react";
|
|
8
|
+
import { setElementVars } from "@vanilla-extract/dynamic";
|
|
7
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
import { useFlip, usePrefersReducedMotion } from "@ultraviolet/animations";
|
|
8
11
|
|
|
9
12
|
//#region src/compositions/Navigation/NavigationProvider.tsx
|
|
10
13
|
var NavigationContext, useNavigation, NavigationProvider;
|
|
11
14
|
var init_NavigationProvider = __esmMin(() => {
|
|
12
15
|
init_constants();
|
|
13
16
|
init_en();
|
|
17
|
+
init_variables_css();
|
|
14
18
|
init_objectSpread2();
|
|
15
19
|
NavigationContext = createContext({
|
|
16
20
|
allowNavigationResize: true,
|
|
@@ -29,34 +33,54 @@ var init_NavigationProvider = __esmMin(() => {
|
|
|
29
33
|
setPinnedItems: () => {},
|
|
30
34
|
setWidth: () => {},
|
|
31
35
|
shouldAnimate: true,
|
|
36
|
+
/**
|
|
37
|
+
* This function will trigger the expand/collapse of the navigation and
|
|
38
|
+
* will also trigger the animation
|
|
39
|
+
*/
|
|
32
40
|
toggleExpand: () => {},
|
|
33
41
|
unpinItem: () => [],
|
|
34
42
|
width: 280
|
|
35
43
|
});
|
|
36
44
|
useNavigation = () => useContext(NavigationContext);
|
|
37
|
-
NavigationProvider = ({ children, pinnedFeature = false, initialPinned, initialExpanded = true, locales = en_default, pinLimit = 7, onExpandChange, initialWidth = 280, initialAllowNavigationResize = true, animation:
|
|
45
|
+
NavigationProvider = ({ children, pinnedFeature = false, initialPinned, initialExpanded = true, locales = en_default, pinLimit = 7, onExpandChange, initialWidth = 280, initialAllowNavigationResize = true, animation: animationEnabled = true, animationType, showHide }) => {
|
|
38
46
|
const [expanded, setExpanded] = useState(initialExpanded);
|
|
39
47
|
const [pinnedItems, setPinnedItems] = useState(initialPinned !== null && initialPinned !== void 0 ? initialPinned : []);
|
|
48
|
+
const prefersReducedMotion = usePrefersReducedMotion();
|
|
49
|
+
const shouldAnimate = animationEnabled && !prefersReducedMotion;
|
|
40
50
|
const [animation, setAnimation] = useState(false);
|
|
41
51
|
const [width, setWidth] = useState(initialWidth);
|
|
42
52
|
const [allowNavigationResize, setAllowNavigationResize] = useState(initialAllowNavigationResize);
|
|
43
53
|
const [items, registerItem] = useReducer((oldState, newState) => _objectSpread2(_objectSpread2({}, oldState), newState), {});
|
|
44
54
|
const navigationRef = useRef(null);
|
|
45
|
-
const
|
|
55
|
+
const { prepareAnimation, animate } = useFlip(navigationRef, {
|
|
56
|
+
duration: 250,
|
|
57
|
+
easing: ANIMATION_EASING
|
|
58
|
+
});
|
|
59
|
+
const toggleExpand = useCallback((toggle, options) => {
|
|
46
60
|
if (typeof toggle !== "boolean" && toggle !== void 0) throw new Error("toggleExpand only accepts boolean or undefined as parameter. You most likely did <button onClick={toggleExpand}> instead of <button onClick={() => toggleExpand()}>");
|
|
47
61
|
if (toggle !== void 0 && toggle === expanded) return;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
62
|
+
const isNowExpanded = toggle !== null && toggle !== void 0 ? toggle : !expanded;
|
|
63
|
+
const immediate = options === null || options === void 0 ? void 0 : options.immediate;
|
|
64
|
+
onExpandChange === null || onExpandChange === void 0 || onExpandChange(!isNowExpanded);
|
|
65
|
+
setExpanded(isNowExpanded);
|
|
66
|
+
if (navigationRef.current) {
|
|
67
|
+
navigationRef.current.style.width = "";
|
|
68
|
+
setElementVars(navigationRef.current, { [widthNavigationContainerDuration]: `${shouldAnimate && !immediate ? 250 : 0}ms` });
|
|
69
|
+
}
|
|
70
|
+
if (!shouldAnimate || immediate) return;
|
|
71
|
+
prepareAnimation();
|
|
72
|
+
setAnimation(isNowExpanded ? "expand" : "collapse");
|
|
73
|
+
requestAnimationFrame(() => {
|
|
74
|
+
animate().then(() => {
|
|
75
|
+
if (navigationRef.current) setElementVars(navigationRef.current, { [widthNavigationContainerDuration]: `${shouldAnimate ? 250 : 0}ms` });
|
|
54
76
|
setAnimation(false);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
77
|
+
}).catch(() => {});
|
|
78
|
+
});
|
|
57
79
|
}, [
|
|
58
80
|
expanded,
|
|
59
81
|
onExpandChange,
|
|
82
|
+
prepareAnimation,
|
|
83
|
+
animate,
|
|
60
84
|
shouldAnimate
|
|
61
85
|
]);
|
|
62
86
|
const pinItem = useCallback((item) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { ComponentProps, CSSProperties, DragEvent, ElementType, ReactNode } from 'react';
|
|
1
2
|
import type { Badge } from '../../../components/Badge';
|
|
2
3
|
import type { ItemType, PinUnPinType } from '../types';
|
|
3
|
-
import type { ComponentProps, CSSProperties, DragEvent, ElementType, ReactNode } from 'react';
|
|
4
4
|
export type ItemExpandedType = {
|
|
5
5
|
categoryIcon: ReactNode;
|
|
6
6
|
containerTag: ElementType;
|
|
@@ -12,6 +12,7 @@ export type ItemExpandedType = {
|
|
|
12
12
|
shouldShowPinnedButton: boolean;
|
|
13
13
|
children: ReactNode;
|
|
14
14
|
dataTestId?: string;
|
|
15
|
+
dataFlipId?: string | null;
|
|
15
16
|
type: ItemType;
|
|
16
17
|
href?: HTMLAnchorElement['href'];
|
|
17
18
|
rel?: HTMLAnchorElement['rel'];
|
|
@@ -39,6 +40,10 @@ export type ItemMenuType = {
|
|
|
39
40
|
hasActiveChildren: boolean;
|
|
40
41
|
categoryIcon?: ReactNode;
|
|
41
42
|
active?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* @private
|
|
45
|
+
*/
|
|
46
|
+
'data-flip-id'?: string;
|
|
42
47
|
};
|
|
43
48
|
export type ItemMenuItemType = {
|
|
44
49
|
active?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComponentsTypes.d.ts","sourceRoot":"","sources":["../../../../src/compositions/Navigation/components/ComponentsTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ComponentsTypes.d.ts","sourceRoot":"","sources":["../../../../src/compositions/Navigation/components/ComponentsTypes.ts"],"names":[],"mappings":"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"}
|
|
@@ -5,6 +5,6 @@ type GroupProps = {
|
|
|
5
5
|
style?: CSSProperties;
|
|
6
6
|
additionalData?: ReactNode;
|
|
7
7
|
};
|
|
8
|
-
export declare const Group: ({ children, label, style, additionalData
|
|
8
|
+
export declare const Group: ({ children, label, style, additionalData }: GroupProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
9
|
export {};
|
|
10
10
|
//# sourceMappingURL=Group.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../src/compositions/Navigation/components/Group.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../src/compositions/Navigation/components/Group.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMrD,KAAK,UAAU,GAAG;IAChB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,cAAc,CAAC,EAAE,SAAS,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,KAAK,+CAAgD,UAAU,mDAuC3E,CAAA"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import { _objectSpread2, init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
|
|
4
3
|
import { Stack, init_Stack } from "../../../components/Stack/index.js";
|
|
5
4
|
import { Text, init_Text } from "../../../components/Text/index.js";
|
|
6
5
|
import { init_NavigationProvider, useNavigation } from "../NavigationProvider.js";
|
|
7
6
|
import { init_styles_css, navigationStyle } from "../styles.css.js";
|
|
8
|
-
import { Children } from "react";
|
|
7
|
+
import { Children, useId } from "react";
|
|
9
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
9
|
|
|
11
10
|
//#region src/compositions/Navigation/components/Group.tsx
|
|
@@ -15,30 +14,30 @@ var init_Group = __esmMin(() => {
|
|
|
15
14
|
init_Text();
|
|
16
15
|
init_NavigationProvider();
|
|
17
16
|
init_styles_css();
|
|
18
|
-
init_objectSpread2();
|
|
19
17
|
Group = ({ children, label, style, additionalData }) => {
|
|
20
18
|
const context = useNavigation();
|
|
19
|
+
const id = useId();
|
|
21
20
|
if (!context) throw new Error("Navigation.Group can only be used inside a NavigationProvider.");
|
|
22
|
-
const { expanded, animation
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}) :
|
|
41
|
-
})
|
|
21
|
+
const { expanded, animation } = context;
|
|
22
|
+
if (Children.count(children) > 0) return /* @__PURE__ */ jsxs(Stack, {
|
|
23
|
+
gap: .25,
|
|
24
|
+
direction: "column",
|
|
25
|
+
style,
|
|
26
|
+
"data-flip-id": id,
|
|
27
|
+
className: navigationStyle.groupStack,
|
|
28
|
+
children: [expanded ? /* @__PURE__ */ jsx(Text, {
|
|
29
|
+
as: "span",
|
|
30
|
+
className: navigationStyle.groupText({ animation: animation === "expand" ? "expand" : void 0 }),
|
|
31
|
+
prominence: "weak",
|
|
32
|
+
sentiment: "neutral",
|
|
33
|
+
variant: "bodySmallStrong",
|
|
34
|
+
children: additionalData ? /* @__PURE__ */ jsxs(Stack, {
|
|
35
|
+
direction: "row",
|
|
36
|
+
alignItems: "center",
|
|
37
|
+
justifyContent: "space-between",
|
|
38
|
+
children: [label, additionalData]
|
|
39
|
+
}) : label
|
|
40
|
+
}) : null, children]
|
|
42
41
|
});
|
|
43
42
|
return null;
|
|
44
43
|
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import type { ItemExpandedType } from '../ComponentsTypes';
|
|
2
|
-
export declare const ItemBadge: ({ badgeText,
|
|
3
|
-
animation: boolean;
|
|
4
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
2
|
+
export declare const ItemBadge: ({ badgeText, disabled, badgeSentiment, }: Pick<ItemExpandedType, 'badgeText' | 'badgeSentiment' | 'disabled'>) => import("react/jsx-runtime").JSX.Element | null;
|
|
5
3
|
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../../src/compositions/Navigation/components/Item/Badge.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../../src/compositions/Navigation/components/Item/Badge.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAG1D,eAAO,MAAM,SAAS,6CAInB,IAAI,CAAC,gBAAgB,EAAE,WAAW,GAAG,gBAAgB,GAAG,UAAU,CAAC,mDAW5D,CAAA"}
|
|
@@ -8,7 +8,7 @@ var ItemBadge;
|
|
|
8
8
|
var init_Badge = __esmMin(() => {
|
|
9
9
|
init_Badge$1();
|
|
10
10
|
init_styles_css();
|
|
11
|
-
ItemBadge = ({ badgeText,
|
|
11
|
+
ItemBadge = ({ badgeText, disabled, badgeSentiment }) => badgeText ? /* @__PURE__ */ jsx(Badge, {
|
|
12
12
|
className: navigationStyle.itemBadge,
|
|
13
13
|
disabled,
|
|
14
14
|
prominence: "strong",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Children.d.ts","sourceRoot":"","sources":["../../../../../src/compositions/Navigation/components/Item/Children.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Children.d.ts","sourceRoot":"","sources":["../../../../../src/compositions/Navigation/components/Item/Children.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAI1D,eAAO,MAAM,YAAY,oDAKtB,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,MAAM,GAAG,UAAU,CAAC,GAAG;IAC5D,gBAAgB,EAAE,OAAO,CAAA;CAC1B,4CA0BA,CAAA"}
|
|
@@ -12,22 +12,20 @@ var init_Children = __esmMin(() => {
|
|
|
12
12
|
init_Expandable();
|
|
13
13
|
init_Stack();
|
|
14
14
|
init_NavigationProvider();
|
|
15
|
-
init_styles_css();
|
|
16
15
|
init_ItemProvider();
|
|
16
|
+
init_styles_css();
|
|
17
17
|
ItemChildren = ({ noExpand, type, children, internalExpanded }) => {
|
|
18
|
-
|
|
19
|
-
if (!context) throw new Error("Navigation.Item can only be used inside a NavigationProvider.");
|
|
20
|
-
const { animation, animationType, shouldAnimate } = context;
|
|
18
|
+
if (!useNavigation()) throw new Error("Navigation.Item can only be used inside a NavigationProvider.");
|
|
21
19
|
return /* @__PURE__ */ jsx(Fragment, { children: noExpand ? /* @__PURE__ */ jsx(ItemProvider, { children: /* @__PURE__ */ jsx(Stack, {
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
gap: .25,
|
|
21
|
+
className: noExpand || type === "pinnedGroup" ? "" : navigationStyle.itemPaddingStack,
|
|
24
22
|
children
|
|
25
23
|
}) }) : /* @__PURE__ */ jsx(ItemProvider, { children: /* @__PURE__ */ jsx(Expandable, {
|
|
26
24
|
animationDuration: 0,
|
|
27
25
|
opened: internalExpanded,
|
|
28
26
|
children: /* @__PURE__ */ jsx(Stack, {
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
gap: .25,
|
|
28
|
+
className: noExpand || type === "pinnedGroup" ? "" : navigationStyle.itemPaddingStack,
|
|
31
29
|
children
|
|
32
30
|
})
|
|
33
31
|
}) }) });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../src/compositions/Navigation/components/Item/Content.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../src/compositions/Navigation/components/Item/Content.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAI1D,eAAO,MAAM,WAAW,8GAUrB,IAAI,CACL,gBAAgB,EACd,UAAU,GACV,QAAQ,GACR,cAAc,GACd,MAAM,GACN,OAAO,GACP,mBAAmB,GACnB,kBAAkB,GAClB,UAAU,GACV,UAAU,CACb,4CAkEA,CAAA"}
|
|
@@ -14,8 +14,8 @@ var init_Content = __esmMin(() => {
|
|
|
14
14
|
init_Stack();
|
|
15
15
|
init_Text();
|
|
16
16
|
init_NavigationProvider();
|
|
17
|
-
init_styles_css();
|
|
18
17
|
init_ItemProvider();
|
|
18
|
+
init_styles_css();
|
|
19
19
|
ItemContent = ({ disabled, active, categoryIcon, type, label, hasActiveChildren, labelDescription, noExpand, subLabel }) => {
|
|
20
20
|
const context = useNavigation();
|
|
21
21
|
if (!context) throw new Error("Navigation.Item can only be used inside a NavigationProvider.");
|
|
@@ -40,10 +40,11 @@ var init_Content = __esmMin(() => {
|
|
|
40
40
|
sentiment: "neutral",
|
|
41
41
|
size: "small"
|
|
42
42
|
}) : null,
|
|
43
|
-
/* @__PURE__ */ jsxs(Stack, { children: [
|
|
43
|
+
/* @__PURE__ */ jsxs(Stack, { children: [/* @__PURE__ */ jsxs(Text, {
|
|
44
44
|
as: "span",
|
|
45
45
|
className: navigationStyle.itemWrapText({
|
|
46
46
|
disabled,
|
|
47
|
+
animation,
|
|
47
48
|
weak: hasActiveChildren && !noExpand && !disabled && !!active
|
|
48
49
|
}),
|
|
49
50
|
"data-animation": animation,
|
|
@@ -56,10 +57,11 @@ var init_Content = __esmMin(() => {
|
|
|
56
57
|
className: navigationStyle.itemPadded,
|
|
57
58
|
children: labelDescription
|
|
58
59
|
}) : null]
|
|
59
|
-
}), subLabel &&
|
|
60
|
+
}), subLabel && expanded ? /* @__PURE__ */ jsx(Text, {
|
|
60
61
|
as: "span",
|
|
61
62
|
className: navigationStyle.itemWrapText({
|
|
62
63
|
disabled,
|
|
64
|
+
animation,
|
|
63
65
|
weak: hasActiveChildren && !noExpand && !disabled && !!active
|
|
64
66
|
}),
|
|
65
67
|
"data-animation": animation,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { ComponentProps, CSSProperties, ElementType, ReactNode } from 'react';
|
|
1
2
|
import type { Badge } from '../../../../components/Badge';
|
|
2
3
|
import type { ItemType, PinUnPinType } from '../../types';
|
|
3
|
-
import type { ComponentProps, CSSProperties, ElementType, ReactNode } from 'react';
|
|
4
4
|
type ItemProps = {
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../src/compositions/Navigation/components/Item/Item.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../src/compositions/Navigation/components/Item/Item.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAa,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAC7F,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAA;AAIzD,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAYzD,KAAK,SAAS,GAAG;IACf,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,gBAAgB,CAAC,EAAE,SAAS,CAAA;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC,OAAO,KAAK,CAAC,CAAC,WAAW,CAAC,CAAA;IAC1D,IAAI,CAAC,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAA;IAChC,MAAM,CAAC,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAA;IACpC,GAAG,CAAC,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAA;IAC9B;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;IACpC,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,YAAY,KAAK,IAAI,CAAA;IACpD;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;;OAKG;IACH,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAOD,eAAO,MAAM,IAAI,uSA0BZ,SAAS,oDA6Ob,CAAA"}
|
|
@@ -20,12 +20,12 @@ var init_Item = __esmMin(() => {
|
|
|
20
20
|
init_Stack();
|
|
21
21
|
init_Tooltip();
|
|
22
22
|
init_NavigationProvider();
|
|
23
|
-
init_styles_css();
|
|
24
23
|
init_Menu();
|
|
25
24
|
init_MenuItem();
|
|
26
25
|
init_NestedMenu();
|
|
27
26
|
init_ItemExpanded();
|
|
28
27
|
init_ItemProvider();
|
|
28
|
+
init_styles_css();
|
|
29
29
|
onDragStopTrigger = (event) => {
|
|
30
30
|
const element = event.currentTarget;
|
|
31
31
|
element.style.opacity = "1";
|
|
@@ -34,7 +34,7 @@ var init_Item = __esmMin(() => {
|
|
|
34
34
|
const context = useNavigation();
|
|
35
35
|
if (!context) throw new Error("Navigation.Item can only be used inside a NavigationProvider.");
|
|
36
36
|
const hasParents = !!useContext(ItemContext);
|
|
37
|
-
const { expanded, locales, pinnedFeature, pinnedItems, pinLimit,
|
|
37
|
+
const { expanded, locales, pinnedFeature, pinnedItems, pinLimit, registerItem, showHide } = context;
|
|
38
38
|
const makeRegisterRef = useRef(null);
|
|
39
39
|
useEffect(() => {
|
|
40
40
|
makeRegisterRef.current = () => registerItem({ [id]: {
|
|
@@ -113,14 +113,14 @@ var init_Item = __esmMin(() => {
|
|
|
113
113
|
locales
|
|
114
114
|
]);
|
|
115
115
|
if (!alwaysVisible && showHide === "hide") return null;
|
|
116
|
-
|
|
117
|
-
if (expanded || !expanded && animation === "expand") return /* @__PURE__ */ jsx(ItemExpanded, {
|
|
116
|
+
if (expanded) return /* @__PURE__ */ jsx(ItemExpanded, {
|
|
118
117
|
active,
|
|
119
118
|
badgeSentiment,
|
|
120
119
|
badgeText,
|
|
121
120
|
categoryIcon,
|
|
122
121
|
containerTag,
|
|
123
122
|
dataTestId,
|
|
123
|
+
dataFlipId: !hasParents && categoryIcon ? id : null,
|
|
124
124
|
disabled,
|
|
125
125
|
hasActiveChildren,
|
|
126
126
|
hasPinnedFeatureAndNoChildren,
|
|
@@ -148,6 +148,7 @@ var init_Item = __esmMin(() => {
|
|
|
148
148
|
if (categoryIcon || Children.count(children) > 0 && !hasParents) return /* @__PURE__ */ jsx(ItemMenu, {
|
|
149
149
|
active,
|
|
150
150
|
categoryIcon,
|
|
151
|
+
"data-flip-id": categoryIcon ? id : void 0,
|
|
151
152
|
hasActiveChildren,
|
|
152
153
|
label,
|
|
153
154
|
style,
|
|
@@ -202,27 +203,20 @@ var init_Item = __esmMin(() => {
|
|
|
202
203
|
placement: "right",
|
|
203
204
|
text: label,
|
|
204
205
|
children: /* @__PURE__ */ jsx(Stack, {
|
|
205
|
-
alignItems: "
|
|
206
|
-
|
|
206
|
+
alignItems: "center",
|
|
207
|
+
"data-flip-id": categoryIcon ? id : void 0,
|
|
207
208
|
gap: 1,
|
|
208
209
|
justifyContent: "flex-start",
|
|
209
210
|
children: /* @__PURE__ */ jsx(Stack, {
|
|
210
211
|
alignItems: "center",
|
|
211
212
|
as: containerTag,
|
|
212
|
-
className: cn(navigationStyle.itemContainer({ disabled }),
|
|
213
|
-
animated: shouldAnimate && animationType === "complex",
|
|
214
|
-
animation: computedAnimation
|
|
215
|
-
})),
|
|
213
|
+
className: cn(navigationStyle.itemContainer({ disabled })),
|
|
216
214
|
gap: 1,
|
|
217
215
|
href,
|
|
218
216
|
justifyContent: "center",
|
|
219
217
|
rel,
|
|
220
218
|
target,
|
|
221
219
|
children: /* @__PURE__ */ jsx(OpenInNewIcon, {
|
|
222
|
-
className: navigationStyle.itemAnimatedIcon({
|
|
223
|
-
animated: shouldAnimate && animationType === "complex",
|
|
224
|
-
animation: computedAnimation
|
|
225
|
-
}),
|
|
226
220
|
prominence: "weak",
|
|
227
221
|
sentiment: "neutral"
|
|
228
222
|
})
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ItemExpandedType } from '../ComponentsTypes';
|
|
2
|
-
export declare const ItemExpanded: ({ categoryIcon, containerTag, disabled, active, noExpand, subLabel, shouldShowPinnedButton, children, dataTestId, type, href, rel, id, style, target, label, labelDescription, hasPinnedFeatureAndNoChildren, badgeText, badgeSentiment, isItemPinned, pinTooltipLocale, onClickPinUnpin, isPinDisabled, onToggle, index, onDragStopTrigger, toggle, hasActiveChildren, }: ItemExpandedType) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const ItemExpanded: ({ categoryIcon, containerTag, disabled, active, noExpand, subLabel, shouldShowPinnedButton, children, dataTestId, dataFlipId, type, href, rel, id, style, target, label, labelDescription, hasPinnedFeatureAndNoChildren, badgeText, badgeSentiment, isItemPinned, pinTooltipLocale, onClickPinUnpin, isPinDisabled, onToggle, index, onDragStopTrigger, toggle, hasActiveChildren, }: ItemExpandedType) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=ItemExpanded.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemExpanded.d.ts","sourceRoot":"","sources":["../../../../../src/compositions/Navigation/components/Item/ItemExpanded.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ItemExpanded.d.ts","sourceRoot":"","sources":["../../../../../src/compositions/Navigation/components/Item/ItemExpanded.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAO1D,eAAO,MAAM,YAAY,0XA+BtB,gBAAgB,4CAuIlB,CAAA"}
|