@ultraviolet/ui 3.12.2 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/{_@oxc-project_runtime@0.120.0 → _@oxc-project_runtime@0.122.0}/helpers/defineProperty.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.120.0 → _@oxc-project_runtime@0.122.0}/helpers/objectSpread2.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.120.0 → _@oxc-project_runtime@0.122.0}/helpers/objectWithoutProperties.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.120.0 → _@oxc-project_runtime@0.122.0}/helpers/objectWithoutPropertiesLoose.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.120.0 → _@oxc-project_runtime@0.122.0}/helpers/toPrimitive.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.120.0 → _@oxc-project_runtime@0.122.0}/helpers/toPropertyKey.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.120.0 → _@oxc-project_runtime@0.122.0}/helpers/typeof.js +1 -1
- package/dist/components/ActionBar/index.js +1 -1
- package/dist/components/Avatar/constants.d.ts +15 -15
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/Avatar/styles.css.js +0 -2
- package/dist/components/BarChart/index.js +1 -1
- package/dist/components/Breadcrumbs/components/Item.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/components/Item.js +8 -6
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Carousel/Item.d.ts +9 -0
- package/dist/components/Carousel/Item.d.ts.map +1 -0
- package/dist/components/Carousel/Item.js +22 -0
- package/dist/components/Carousel/index.d.ts +6 -8
- package/dist/components/Carousel/index.d.ts.map +1 -1
- package/dist/components/Carousel/index.js +4 -11
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +13 -12
- package/dist/components/Checkbox/styles.css.js +0 -4
- package/dist/components/CheckboxGroup/Context.d.ts +9 -0
- package/dist/components/CheckboxGroup/Context.d.ts.map +1 -0
- package/dist/components/CheckboxGroup/Context.js +13 -0
- package/dist/components/CheckboxGroup/SingleCheckbox.d.ts +8 -0
- package/dist/components/CheckboxGroup/SingleCheckbox.d.ts.map +1 -0
- package/dist/components/CheckboxGroup/SingleCheckbox.js +46 -0
- package/dist/components/CheckboxGroup/index.d.ts +25 -9
- package/dist/components/CheckboxGroup/index.d.ts.map +1 -1
- package/dist/components/CheckboxGroup/index.js +7 -32
- package/dist/components/CopyButton/index.d.ts.map +1 -1
- package/dist/components/CopyButton/index.js +4 -3
- package/dist/components/DateInput/components/CalendarDaily.d.ts.map +1 -1
- package/dist/components/DateInput/components/CalendarDaily.js +5 -4
- package/dist/components/DateInput/components/CalendarMonthly.d.ts.map +1 -1
- package/dist/components/DateInput/components/CalendarMonthly.js +5 -4
- package/dist/components/DateInput/helpers.d.ts +5 -1
- package/dist/components/DateInput/helpers.d.ts.map +1 -1
- package/dist/components/DateInput/helpers.js +18 -9
- package/dist/components/DateInput/index.d.ts.map +1 -1
- package/dist/components/DateInput/index.js +2 -2
- package/dist/components/DateInput/styles.css.d.ts.map +1 -1
- package/dist/components/Expandable/AnimatedExpandable.d.ts +3 -0
- package/dist/components/Expandable/AnimatedExpandable.d.ts.map +1 -0
- package/dist/components/Expandable/AnimatedExpandable.js +95 -0
- package/dist/components/Expandable/NonAnimatedExpandable.d.ts +3 -0
- package/dist/components/Expandable/NonAnimatedExpandable.d.ts.map +1 -0
- package/dist/components/Expandable/NonAnimatedExpandable.js +22 -0
- package/dist/components/Expandable/constant.d.ts +2 -0
- package/dist/components/Expandable/constant.d.ts.map +1 -0
- package/dist/components/Expandable/constant.js +8 -0
- package/dist/components/Expandable/index.d.ts +1 -24
- package/dist/components/Expandable/index.d.ts.map +1 -1
- package/dist/components/Expandable/index.js +8 -94
- package/dist/components/Expandable/types.d.ts +23 -0
- package/dist/components/Expandable/types.d.ts.map +1 -0
- package/dist/components/ExpandableCard/index.d.ts.map +1 -1
- package/dist/components/FileInput/DropzoneContent.d.ts +9 -0
- package/dist/components/FileInput/DropzoneContent.d.ts.map +1 -0
- package/dist/components/FileInput/DropzoneContent.js +30 -0
- package/dist/components/FileInput/components/Button.js +2 -2
- package/dist/components/FileInput/components/List.d.ts.map +1 -1
- package/dist/components/FileInput/components/List.js +11 -9
- package/dist/components/FileInput/helpers.d.ts.map +1 -1
- package/dist/components/FileInput/index.d.ts.map +1 -1
- package/dist/components/FileInput/index.js +40 -66
- package/dist/components/InfiniteScroll/index.js +1 -1
- package/dist/components/Label/LabelContent.d.ts +3 -0
- package/dist/components/Label/LabelContent.d.ts.map +1 -0
- package/dist/components/Label/LabelContent.js +61 -0
- package/dist/components/Label/index.d.ts +1 -19
- package/dist/components/Label/index.d.ts.map +1 -1
- package/dist/components/Label/index.js +3 -47
- package/dist/components/Label/type.d.ts +19 -0
- package/dist/components/Label/type.d.ts.map +1 -0
- package/dist/components/LineChart/CustomLegend.d.ts.map +1 -1
- package/dist/components/LineChart/CustomLegend.js +4 -9
- package/dist/components/LineChart/LegendCell.d.ts +10 -0
- package/dist/components/LineChart/LegendCell.d.ts.map +1 -0
- package/dist/components/LineChart/LegendCell.js +23 -0
- package/dist/components/LineChart/index.js +1 -1
- package/dist/components/List/Cell.js +1 -1
- package/dist/components/List/ExpandButtonCell.d.ts +9 -0
- package/dist/components/List/ExpandButtonCell.d.ts.map +1 -0
- package/dist/components/List/ExpandButtonCell.js +44 -0
- package/dist/components/List/HeaderCell.d.ts.map +1 -1
- package/dist/components/List/HeaderCell.js +4 -8
- package/dist/components/List/ListContext.js +3 -3
- package/dist/components/List/Row.d.ts.map +1 -1
- package/dist/components/List/Row.js +21 -50
- package/dist/components/List/SelectRowCell.d.ts +8 -0
- package/dist/components/List/SelectRowCell.d.ts.map +1 -0
- package/dist/components/List/SelectRowCell.js +49 -0
- package/dist/components/List/SortIcon.d.ts +4 -0
- package/dist/components/List/SortIcon.d.ts.map +1 -0
- package/dist/components/List/SortIcon.js +19 -0
- package/dist/components/List/TableContainer.d.ts +5 -0
- package/dist/components/List/TableContainer.d.ts.map +1 -0
- package/dist/components/List/TableContainer.js +31 -0
- package/dist/components/List/index.d.ts.map +1 -1
- package/dist/components/List/index.js +4 -16
- package/dist/components/Loader/index.js +1 -1
- package/dist/components/Menu/MenuContent.d.ts.map +1 -1
- package/dist/components/Menu/MenuContent.js +28 -22
- package/dist/components/Menu/components/Item.d.ts.map +1 -1
- package/dist/components/Menu/components/Item.js +8 -6
- package/dist/components/Menu/index.js +2 -2
- package/dist/components/Modal/ModalContent.d.ts.map +1 -1
- package/dist/components/Modal/ModalContent.js +4 -4
- package/dist/components/Modal/components/Dialog.d.ts.map +1 -1
- package/dist/components/Modal/components/Dialog.js +14 -12
- package/dist/components/Notification/Notification.js +1 -1
- package/dist/components/NumberInput/components/Controls.d.ts +12 -0
- package/dist/components/NumberInput/components/Controls.d.ts.map +1 -0
- package/dist/components/NumberInput/components/Controls.js +78 -0
- package/dist/components/NumberInput/components/Unit.d.ts +8 -0
- package/dist/components/NumberInput/components/Unit.d.ts.map +1 -0
- package/dist/components/NumberInput/components/Unit.js +28 -0
- package/dist/components/NumberInput/index.d.ts.map +1 -1
- package/dist/components/NumberInput/index.js +33 -86
- package/dist/components/Pagination/PaginationButton.d.ts +11 -0
- package/dist/components/Pagination/PaginationButton.d.ts.map +1 -0
- package/dist/components/Pagination/PaginationButton.js +39 -0
- package/dist/components/Pagination/PaginationButtons.d.ts.map +1 -1
- package/dist/components/Pagination/PaginationButtons.js +4 -25
- package/dist/components/PieChart/index.d.ts.map +1 -1
- package/dist/components/PieChart/index.js +1 -1
- package/dist/components/Popover/ContentWrapper.d.ts +3 -0
- package/dist/components/Popover/ContentWrapper.d.ts.map +1 -0
- package/dist/components/Popover/ContentWrapper.js +49 -0
- package/dist/components/Popover/index.d.ts +6 -12
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js +4 -37
- package/dist/components/Popover/types.d.ts +26 -0
- package/dist/components/Popover/types.d.ts.map +1 -0
- package/dist/components/Popup/helpers.d.ts.map +1 -1
- package/dist/components/Popup/helpers.js +124 -123
- package/dist/components/Popup/index.d.ts.map +1 -1
- package/dist/components/Popup/index.js +3 -2
- package/dist/components/Popup/styles.css.d.ts.map +1 -1
- package/dist/components/Popup/styles.css.js +3 -3
- package/dist/components/ProgressBar/index.d.ts.map +1 -1
- package/dist/components/ProgressBar/index.js +63 -60
- package/dist/components/ProgressBar/styles.css.js +0 -2
- package/dist/components/Radio/MarkedIcon.d.ts +2 -0
- package/dist/components/Radio/MarkedIcon.d.ts.map +1 -0
- package/dist/components/Radio/MarkedIcon.js +33 -0
- package/dist/components/Radio/index.d.ts.map +1 -1
- package/dist/components/Radio/index.js +3 -21
- package/dist/components/Radio/styles.css.js +3 -3
- package/dist/components/RadioGroup/Context.d.ts +9 -0
- package/dist/components/RadioGroup/Context.d.ts.map +1 -0
- package/dist/components/RadioGroup/Context.js +12 -0
- package/dist/components/RadioGroup/SingleRadio.d.ts +6 -0
- package/dist/components/RadioGroup/SingleRadio.d.ts.map +1 -0
- package/dist/components/RadioGroup/SingleRadio.js +40 -0
- package/dist/components/RadioGroup/index.d.ts +2 -4
- package/dist/components/RadioGroup/index.d.ts.map +1 -1
- package/dist/components/RadioGroup/index.js +6 -28
- package/dist/components/Row/index.js +1 -1
- package/dist/components/Row/styles.css.js +2 -2
- package/dist/components/SearchInput/index.d.ts.map +1 -1
- package/dist/components/SelectInput/SelectInputProvider.d.ts.map +1 -1
- package/dist/components/SelectInput/SelectInputProvider.js +8 -63
- package/dist/components/SelectInput/components/Dropdown/AddOption.d.ts +12 -0
- package/dist/components/SelectInput/components/Dropdown/AddOption.d.ts.map +1 -0
- package/dist/components/SelectInput/components/Dropdown/AddOption.js +48 -0
- package/dist/components/SelectInput/components/Dropdown/Content.d.ts +20 -0
- package/dist/components/SelectInput/components/Dropdown/Content.d.ts.map +1 -0
- package/dist/components/SelectInput/components/Dropdown/Content.js +217 -0
- package/dist/components/SelectInput/components/{Dropdown.d.ts → Dropdown/Dropdown.d.ts} +1 -17
- package/dist/components/SelectInput/components/Dropdown/Dropdown.d.ts.map +1 -0
- package/dist/components/SelectInput/components/Dropdown/Dropdown.js +218 -0
- package/dist/components/SelectInput/components/Dropdown/Group.d.ts +5 -0
- package/dist/components/SelectInput/components/Dropdown/Group.d.ts.map +1 -0
- package/dist/components/SelectInput/components/Dropdown/Group.js +79 -0
- package/dist/components/SelectInput/components/Dropdown/Item.d.ts +13 -0
- package/dist/components/SelectInput/components/Dropdown/Item.d.ts.map +1 -0
- package/dist/components/SelectInput/components/Dropdown/Item.js +87 -0
- package/dist/components/SelectInput/components/{DropdownOption.d.ts → Dropdown/Option.d.ts} +2 -2
- package/dist/components/SelectInput/components/Dropdown/Option.d.ts.map +1 -0
- package/dist/components/SelectInput/components/Dropdown/Option.js +139 -0
- package/dist/components/SelectInput/components/Dropdown/SearchBar.d.ts +10 -0
- package/dist/components/SelectInput/components/Dropdown/SearchBar.d.ts.map +1 -0
- package/dist/components/SelectInput/components/{SearchBarDropdown.js → Dropdown/SearchBar.js} +20 -24
- package/dist/components/SelectInput/components/Dropdown/SelectAll.d.ts +4 -0
- package/dist/components/SelectInput/components/Dropdown/SelectAll.d.ts.map +1 -0
- package/dist/components/SelectInput/components/Dropdown/SelectAll.js +84 -0
- package/dist/components/SelectInput/components/{dropdown.css.d.ts → Dropdown/dropdown.css.d.ts} +4 -2
- package/dist/components/SelectInput/components/Dropdown/dropdown.css.d.ts.map +1 -0
- package/dist/components/SelectInput/components/{dropdown.css.js → Dropdown/dropdown.css.js} +15 -13
- package/dist/components/SelectInput/components/Dropdown/dropdown.css.ts.vanilla.js +8 -0
- package/dist/components/SelectInput/components/Dropdown/index.d.ts +2 -0
- package/dist/components/SelectInput/components/Dropdown/index.d.ts.map +1 -0
- package/dist/components/SelectInput/components/Dropdown/index.js +11 -0
- package/dist/components/SelectInput/components/SelectBar/SelectBar.d.ts.map +1 -0
- package/dist/components/SelectInput/components/{SelectBar.js → SelectBar/SelectBar.js} +24 -125
- package/dist/components/SelectInput/components/SelectBar/Values.d.ts +20 -0
- package/dist/components/SelectInput/components/SelectBar/Values.d.ts.map +1 -0
- package/dist/components/SelectInput/components/SelectBar/Values.js +93 -0
- package/dist/components/SelectInput/components/SelectBar/index.d.ts +2 -0
- package/dist/components/SelectInput/components/SelectBar/index.d.ts.map +1 -0
- package/dist/components/SelectInput/components/SelectBar/index.js +11 -0
- package/dist/components/SelectInput/components/SelectBar/selectBar.css.d.ts.map +1 -0
- package/dist/components/SelectInput/components/{selectBar.css.js → SelectBar/selectBar.css.js} +19 -19
- package/dist/components/SelectInput/components/SelectBar/selectBar.css.ts.vanilla.js +8 -0
- package/dist/components/SelectInput/components/helpers.d.ts +30 -0
- package/dist/components/SelectInput/components/helpers.d.ts.map +1 -0
- package/dist/components/SelectInput/components/helpers.js +77 -0
- package/dist/components/SelectInput/components/index.d.ts +3 -0
- package/dist/components/SelectInput/components/index.d.ts.map +1 -0
- package/dist/components/SelectInput/components/index.js +15 -0
- package/dist/components/SelectInput/index.d.ts.map +1 -1
- package/dist/components/SelectInput/index.js +4 -4
- package/dist/components/SelectInput/reducerFonctions.d.ts +28 -0
- package/dist/components/SelectInput/reducerFonctions.d.ts.map +1 -0
- package/dist/components/SelectInput/reducerFonctions.js +76 -0
- package/dist/components/SelectInput/styles.css.d.ts +4 -2
- package/dist/components/SelectInput/styles.css.d.ts.map +1 -1
- package/dist/components/SelectInput/styles.css.js +52 -50
- package/dist/components/SelectableCard/MultiStateInput.js +1 -1
- package/dist/components/SelectableCard/SelectableCard.js +5 -4
- package/dist/components/SelectableCardGroup/Context.d.ts +11 -0
- package/dist/components/SelectableCardGroup/Context.d.ts.map +1 -0
- package/dist/components/SelectableCardGroup/Context.js +13 -0
- package/dist/components/SelectableCardGroup/SingleCard.d.ts +5 -0
- package/dist/components/SelectableCardGroup/SingleCard.d.ts.map +1 -0
- package/dist/components/SelectableCardGroup/SingleCard.js +42 -0
- package/dist/components/SelectableCardGroup/index.d.ts +2 -4
- package/dist/components/SelectableCardGroup/index.d.ts.map +1 -1
- package/dist/components/SelectableCardGroup/index.js +6 -30
- package/dist/components/SelectableCardOptionGroup/components/Option.js +1 -1
- package/dist/components/Skeleton/Blocks.d.ts.map +1 -1
- package/dist/components/Skeleton/List.d.ts.map +1 -1
- package/dist/components/Skeleton/List.js +8 -9
- package/dist/components/Skeleton/Slider.d.ts.map +1 -1
- package/dist/components/Skeleton/index.js +1 -2
- package/dist/components/Slider/components/SingleSlider.d.ts.map +1 -1
- package/dist/components/Slider/components/SingleSlider.js +1 -1
- package/dist/components/Snippet/CodeContent.d.ts +14 -0
- package/dist/components/Snippet/CodeContent.d.ts.map +1 -0
- package/dist/components/Snippet/CodeContent.js +36 -0
- package/dist/components/Snippet/index.d.ts +1 -1
- package/dist/components/Snippet/index.d.ts.map +1 -1
- package/dist/components/Snippet/index.js +6 -22
- package/dist/components/Stack/index.js +2 -2
- package/dist/components/Stack/styles.css.js +2 -2
- package/dist/components/StepList/Item.d.ts +17 -0
- package/dist/components/StepList/Item.d.ts.map +1 -0
- package/dist/components/StepList/Item.js +32 -0
- package/dist/components/StepList/index.d.ts +12 -15
- package/dist/components/StepList/index.d.ts.map +1 -1
- package/dist/components/StepList/index.js +4 -19
- package/dist/components/Stepper/Bullet.d.ts +7 -0
- package/dist/components/Stepper/Bullet.d.ts.map +1 -0
- package/dist/components/Stepper/Bullet.js +42 -0
- package/dist/components/Stepper/Step.d.ts.map +1 -1
- package/dist/components/Stepper/Step.js +8 -24
- package/dist/components/Stepper/index.js +1 -1
- package/dist/components/Table/Cell.js +1 -1
- package/dist/components/Table/HeaderCell.d.ts.map +1 -1
- package/dist/components/Table/HeaderCell.js +6 -12
- package/dist/components/Table/SortIcon.d.ts +4 -0
- package/dist/components/Table/SortIcon.d.ts.map +1 -0
- package/dist/components/Table/SortIcon.js +19 -0
- package/dist/components/Table/TableContainer.d.ts +5 -0
- package/dist/components/Table/TableContainer.d.ts.map +1 -0
- package/dist/components/Table/TableContainer.js +31 -0
- 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 +6 -6
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +6 -22
- package/dist/components/Table/styles.css.js +0 -2
- package/dist/components/Tabs/Tab.js +2 -2
- package/dist/components/Tabs/TabMenu.js +2 -2
- package/dist/components/Tabs/TabMenuItem.js +2 -2
- package/dist/components/Tabs/index.js +2 -2
- package/dist/components/Tag/TagInner.d.ts +5 -0
- package/dist/components/Tag/TagInner.d.ts.map +1 -0
- package/dist/components/Tag/TagInner.js +48 -0
- package/dist/components/Tag/index.d.ts +1 -31
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Tag/index.js +7 -40
- package/dist/components/Tag/type.d.ts +31 -0
- package/dist/components/Tag/type.d.ts.map +1 -0
- package/dist/components/TagInput/index.js +1 -1
- package/dist/components/TagList/constant.d.ts +2 -0
- package/dist/components/TagList/constant.d.ts.map +1 -1
- package/dist/components/TagList/constant.js +3 -2
- 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 +33 -27
- package/dist/components/TagList/styles.css.d.ts.map +1 -1
- package/dist/components/Text/index.js +1 -1
- package/dist/components/Text/style.css.js +0 -2
- package/dist/components/TextArea/Icon.d.ts +5 -0
- package/dist/components/TextArea/Icon.d.ts.map +1 -0
- package/dist/components/TextArea/Icon.js +19 -0
- package/dist/components/TextArea/Notice.d.ts +11 -0
- package/dist/components/TextArea/Notice.d.ts.map +1 -0
- package/dist/components/TextArea/Notice.js +41 -0
- package/dist/components/TextArea/constant.d.ts +2 -0
- package/dist/components/TextArea/constant.d.ts.map +1 -0
- package/dist/components/TextArea/constant.js +11 -0
- package/dist/components/TextArea/index.d.ts.map +1 -1
- package/dist/components/TextArea/index.js +29 -48
- package/dist/components/TextInput/BottomText.d.ts +3 -0
- package/dist/components/TextInput/BottomText.d.ts.map +1 -0
- package/dist/components/TextInput/BottomText.js +29 -0
- package/dist/components/TextInput/PrefixSuffix.d.ts +7 -0
- package/dist/components/TextInput/PrefixSuffix.d.ts.map +1 -0
- package/dist/components/TextInput/PrefixSuffix.js +30 -0
- package/dist/components/TextInput/RightIcon.d.ts +10 -0
- package/dist/components/TextInput/RightIcon.d.ts.map +1 -0
- package/dist/components/TextInput/RightIcon.js +62 -0
- package/dist/components/TextInput/ShowHidePassword.d.ts +7 -0
- package/dist/components/TextInput/ShowHidePassword.d.ts.map +1 -0
- package/dist/components/TextInput/ShowHidePassword.js +36 -0
- package/dist/components/TextInput/index.d.ts +5 -6
- package/dist/components/TextInput/index.d.ts.map +1 -1
- package/dist/components/TextInput/index.js +46 -106
- package/dist/components/TextInput/type.d.ts +25 -0
- package/dist/components/TextInput/type.d.ts.map +1 -0
- package/dist/components/TimeInput/RightIcon.d.ts +9 -0
- package/dist/components/TimeInput/RightIcon.d.ts.map +1 -0
- package/dist/components/TimeInput/RightIcon.js +36 -0
- package/dist/components/TimeInput/index.d.ts.map +1 -1
- package/dist/components/TimeInput/index.js +17 -29
- package/dist/components/Toaster/Toaster.js +1 -1
- package/dist/components/ToggleGroup/Context.d.ts +9 -0
- package/dist/components/ToggleGroup/Context.d.ts.map +1 -0
- package/dist/components/ToggleGroup/Context.js +13 -0
- package/dist/components/ToggleGroup/SingleToggle.d.ts +11 -0
- package/dist/components/ToggleGroup/SingleToggle.d.ts.map +1 -0
- package/dist/components/ToggleGroup/SingleToggle.js +37 -0
- package/dist/components/ToggleGroup/index.d.ts +2 -9
- package/dist/components/ToggleGroup/index.d.ts.map +1 -1
- package/dist/components/ToggleGroup/index.js +6 -25
- package/dist/components/TreeMapChart/index.js +1 -1
- package/dist/components/VerificationCode/index.js +2 -3
- package/dist/components/compositions/CodeEditor/components/CopyButton.d.ts +5 -0
- package/dist/components/compositions/CodeEditor/components/CopyButton.d.ts.map +1 -0
- package/dist/components/compositions/CodeEditor/components/CopyButton.js +24 -0
- package/dist/components/compositions/CodeEditor/components/Expandable.d.ts +8 -0
- package/dist/components/compositions/CodeEditor/components/Expandable.d.ts.map +1 -0
- package/dist/components/compositions/CodeEditor/components/Expandable.js +37 -0
- package/dist/components/compositions/CodeEditor/index.d.ts +4 -38
- package/dist/components/compositions/CodeEditor/index.d.ts.map +1 -1
- package/dist/components/compositions/CodeEditor/index.js +6 -33
- package/dist/components/compositions/CodeEditor/styles.css.js +2 -0
- package/dist/components/compositions/CodeEditor/type.d.ts +38 -0
- package/dist/components/compositions/CodeEditor/type.d.ts.map +1 -0
- package/dist/components/compositions/ContentCard/Content.d.ts +0 -10
- package/dist/components/compositions/ContentCard/Content.d.ts.map +1 -1
- package/dist/components/compositions/ContentCard/Content.js +2 -30
- package/dist/components/compositions/ContentCard/ImageContent.d.ts +7 -0
- package/dist/components/compositions/ContentCard/ImageContent.d.ts.map +1 -0
- package/dist/components/compositions/ContentCard/ImageContent.js +23 -0
- package/dist/components/compositions/ContentCard/LinkContent.d.ts +5 -0
- package/dist/components/compositions/ContentCard/LinkContent.d.ts.map +1 -0
- package/dist/components/compositions/ContentCard/LinkContent.js +30 -0
- package/dist/components/compositions/ContentCard/index.d.ts.map +1 -1
- package/dist/components/compositions/ContentCard/index.js +5 -1
- package/dist/components/compositions/ContentCardGroup/index.d.ts.map +1 -1
- package/dist/components/compositions/Conversation/components/Date.d.ts +6 -0
- package/dist/components/compositions/Conversation/components/Date.d.ts.map +1 -0
- package/dist/components/compositions/Conversation/components/Date.js +23 -0
- package/dist/components/compositions/Conversation/components/Message.d.ts +11 -0
- package/dist/components/compositions/Conversation/components/Message.d.ts.map +1 -0
- package/dist/components/compositions/Conversation/components/Message.js +28 -0
- package/dist/components/compositions/Conversation/components/MessageInfos.d.ts +7 -0
- package/dist/components/compositions/Conversation/components/MessageInfos.d.ts.map +1 -0
- package/dist/components/compositions/Conversation/components/MessageInfos.js +18 -0
- package/dist/components/compositions/Conversation/components/MessageTag.d.ts +6 -0
- package/dist/components/compositions/Conversation/components/MessageTag.d.ts.map +1 -0
- package/dist/components/compositions/Conversation/components/MessageTag.js +20 -0
- package/dist/components/compositions/Conversation/index.d.ts +7 -22
- package/dist/components/compositions/Conversation/index.d.ts.map +1 -1
- package/dist/components/compositions/Conversation/index.js +10 -41
- package/dist/components/compositions/EstimateCost/Components/Children.d.ts +3 -0
- package/dist/components/compositions/EstimateCost/Components/Children.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Components/Children.js +52 -0
- package/dist/components/compositions/EstimateCost/Components/{ContentComponents.d.ts → Description.d.ts} +2 -8
- package/dist/components/compositions/EstimateCost/Components/Description.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Components/Description.js +19 -0
- package/dist/components/compositions/EstimateCost/Components/Item.d.ts.map +1 -1
- package/dist/components/compositions/EstimateCost/Components/Item.js +1 -1
- package/dist/components/compositions/EstimateCost/Components/ItemLeftSide.js +1 -1
- package/dist/components/compositions/EstimateCost/Components/ItemPrice.d.ts.map +1 -1
- package/dist/components/compositions/EstimateCost/Components/LineThrough.js +2 -2
- package/dist/components/compositions/EstimateCost/Components/Title.d.ts +5 -0
- package/dist/components/compositions/EstimateCost/Components/Title.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Components/Title.js +23 -0
- package/dist/components/compositions/EstimateCost/Components/Total.d.ts +3 -0
- package/dist/components/compositions/EstimateCost/Components/Total.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Components/{ContentComponents.js → Total.js} +6 -54
- package/dist/components/compositions/EstimateCost/Components/Unit.js +1 -1
- package/dist/components/compositions/EstimateCost/Components/components.css.js +2 -3
- package/dist/components/compositions/EstimateCost/Ellipsis.d.ts +7 -0
- package/dist/components/compositions/EstimateCost/Ellipsis.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Ellipsis.js +37 -0
- package/dist/components/compositions/EstimateCost/EstimateCostContent.d.ts.map +1 -1
- package/dist/components/compositions/EstimateCost/EstimateCostContent.js +8 -4
- package/dist/components/compositions/EstimateCost/EstimateCostProvider.js +1 -1
- package/dist/components/compositions/EstimateCost/Image.d.ts +2 -0
- package/dist/components/compositions/EstimateCost/Image.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Image.js +21 -0
- package/dist/components/compositions/EstimateCost/index.d.ts +10 -11
- package/dist/components/compositions/EstimateCost/index.d.ts.map +1 -1
- package/dist/components/compositions/EstimateCost/index.js +5 -35
- package/dist/components/compositions/EstimateCost/types.d.ts +1 -1
- package/dist/components/compositions/EstimateCost/types.d.ts.map +1 -1
- package/dist/components/compositions/InfoTable/components/Cell.d.ts.map +1 -1
- package/dist/components/compositions/InfoTable/components/Cell.js +2 -1
- package/dist/components/compositions/InfoTable/components/Row.js +1 -1
- package/dist/components/compositions/InfoTable/styles.css.d.ts +1 -0
- package/dist/components/compositions/InfoTable/styles.css.d.ts.map +1 -1
- package/dist/components/compositions/InfoTable/styles.css.js +2 -1
- package/dist/components/compositions/Navigation/NavigationProvider.js +1 -1
- package/dist/components/compositions/Navigation/components/Group.js +1 -1
- package/dist/components/compositions/Navigation/components/Item/Badge.d.ts +5 -0
- package/dist/components/compositions/Navigation/components/Item/Badge.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/Item/Badge.js +23 -0
- package/dist/components/compositions/Navigation/components/Item/Children.d.ts +5 -0
- package/dist/components/compositions/Navigation/components/Item/Children.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/Item/Children.js +39 -0
- package/dist/components/compositions/Navigation/components/Item/Content.d.ts +3 -0
- package/dist/components/compositions/Navigation/components/Item/Content.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/Item/Content.js +80 -0
- package/dist/components/compositions/Navigation/components/{Item.d.ts → Item/Item.d.ts} +2 -2
- package/dist/components/compositions/Navigation/components/Item/Item.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/{Item.js → Item/Item.js} +35 -8
- package/dist/components/compositions/Navigation/components/{ItemExpanded.d.ts → Item/ItemExpanded.d.ts} +1 -1
- package/dist/components/compositions/Navigation/components/Item/ItemExpanded.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/{ItemExpanded.js → Item/ItemExpanded.js} +16 -92
- package/dist/components/compositions/Navigation/components/Item/ItemProvider.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/{ItemProvider.js → Item/ItemProvider.js} +2 -2
- package/dist/components/compositions/Navigation/components/{ItemFragments.d.ts → Item/PinnedButton.d.ts} +2 -5
- package/dist/components/compositions/Navigation/components/Item/PinnedButton.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/{ItemFragments.js → Item/PinnedButton.js} +9 -19
- package/dist/components/compositions/Navigation/components/Menu/Menu.d.ts +3 -0
- package/dist/components/compositions/Navigation/components/Menu/Menu.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/Menu/Menu.js +73 -0
- package/dist/components/compositions/Navigation/components/{ItemMenu.d.ts → Menu/MenuItem.d.ts} +2 -3
- package/dist/components/compositions/Navigation/components/Menu/MenuItem.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/{ItemMenu.js → Menu/MenuItem.js} +16 -65
- package/dist/components/compositions/Navigation/components/Menu/NestedMenu.d.ts +3 -0
- package/dist/components/compositions/Navigation/components/Menu/NestedMenu.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/Menu/NestedMenu.js +51 -0
- package/dist/components/compositions/Navigation/components/PinnedItems.d.ts.map +1 -1
- package/dist/components/compositions/Navigation/components/PinnedItems.js +2 -2
- package/dist/components/compositions/Navigation/components/ShowHide.d.ts.map +1 -1
- package/dist/components/compositions/Navigation/index.js +1 -1
- package/dist/components/compositions/OfferList/components/Row.d.ts +1 -1
- package/dist/components/compositions/OfferList/components/Row.d.ts.map +1 -1
- package/dist/components/compositions/OfferList/components/Row.js +13 -47
- package/dist/components/compositions/OfferList/components/SelectableCell.d.ts +21 -0
- package/dist/components/compositions/OfferList/components/SelectableCell.d.ts.map +1 -0
- package/dist/components/compositions/OfferList/components/SelectableCell.js +71 -0
- package/dist/components/compositions/OfferList/index.d.ts.map +1 -1
- package/dist/components/compositions/OptionSelector/styles.css.js +178 -2
- package/dist/components/compositions/OrderSummary/ScrollableContent.d.ts.map +1 -1
- package/dist/components/compositions/OrderSummary/ScrollableContent.js +6 -221
- package/dist/components/compositions/OrderSummary/components/Category.d.ts +5 -0
- package/dist/components/compositions/OrderSummary/components/Category.d.ts.map +1 -0
- package/dist/components/compositions/OrderSummary/components/Category.js +125 -0
- package/dist/components/compositions/OrderSummary/components/SubCategory.d.ts +5 -0
- package/dist/components/compositions/OrderSummary/components/SubCategory.d.ts.map +1 -0
- package/dist/components/compositions/OrderSummary/components/SubCategory.js +104 -0
- package/dist/components/compositions/OrderSummary/components/SubCategoryPrice.d.ts +5 -0
- package/dist/components/compositions/OrderSummary/components/SubCategoryPrice.d.ts.map +1 -0
- package/dist/components/compositions/OrderSummary/components/SubCategoryPrice.js +50 -0
- package/dist/components/compositions/OrderSummary/helpers.js +1 -1
- package/dist/components/compositions/OrderSummary/index.d.ts +4 -0
- package/dist/components/compositions/OrderSummary/index.d.ts.map +1 -1
- package/dist/components/compositions/Plans/index.d.ts +3 -0
- package/dist/components/compositions/Plans/index.d.ts.map +1 -1
- package/dist/components/compositions/SteppedListCard/styles.css.js +0 -2
- package/dist/components/index.js +5 -4
- package/dist/components/styles.js +20 -20
- package/dist/helpers/legend.d.ts +15 -15
- package/dist/helpers/nivoTheme.d.ts +15 -15
- package/dist/helpers/treeMap.d.ts +15 -15
- package/dist/index.js +9 -8
- package/dist/theme/ThemeProvider.d.ts +15 -15
- package/dist/theme/index.d.ts +42 -42
- package/dist/ui.css +1 -1
- package/package.json +12 -6
- package/dist/components/SelectInput/components/Dropdown.d.ts.map +0 -1
- package/dist/components/SelectInput/components/Dropdown.js +0 -741
- package/dist/components/SelectInput/components/DropdownOption.d.ts.map +0 -1
- package/dist/components/SelectInput/components/DropdownOption.js +0 -163
- package/dist/components/SelectInput/components/SearchBarDropdown.d.ts +0 -10
- package/dist/components/SelectInput/components/SearchBarDropdown.d.ts.map +0 -1
- package/dist/components/SelectInput/components/SelectBar.d.ts.map +0 -1
- package/dist/components/SelectInput/components/dropdown.css.d.ts.map +0 -1
- package/dist/components/SelectInput/components/dropdown.css.ts.vanilla.js +0 -8
- package/dist/components/SelectInput/components/selectBar.css.d.ts.map +0 -1
- package/dist/components/SelectInput/components/selectBar.css.ts.vanilla.js +0 -8
- package/dist/components/compositions/EstimateCost/Components/ContentComponents.d.ts.map +0 -1
- package/dist/components/compositions/Navigation/components/Item.d.ts.map +0 -1
- package/dist/components/compositions/Navigation/components/ItemExpanded.d.ts.map +0 -1
- package/dist/components/compositions/Navigation/components/ItemFragments.d.ts.map +0 -1
- package/dist/components/compositions/Navigation/components/ItemMenu.d.ts.map +0 -1
- package/dist/components/compositions/Navigation/components/ItemProvider.d.ts.map +0 -1
- /package/dist/components/SelectInput/components/{SelectBar.d.ts → SelectBar/SelectBar.d.ts} +0 -0
- /package/dist/components/SelectInput/components/{selectBar.css.d.ts → SelectBar/selectBar.css.d.ts} +0 -0
- /package/dist/components/compositions/Navigation/components/{ItemProvider.d.ts → Item/ItemProvider.d.ts} +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __esmMin, __name } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { Stack, init_Stack } from "../../../../Stack/index.js";
|
|
3
|
+
import { init_NavigationProvider, useNavigation } from "../../NavigationProvider.js";
|
|
4
|
+
import { init_styles_css, navigationStyle } from "../../styles.css.js";
|
|
5
|
+
import { ItemProvider, init_ItemProvider } from "./ItemProvider.js";
|
|
6
|
+
import { Expandable, init_Expandable } from "../../../../Expandable/index.js";
|
|
7
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
8
|
+
|
|
9
|
+
//#region src/components/compositions/Navigation/components/Item/Children.tsx
|
|
10
|
+
var ItemChildren;
|
|
11
|
+
var init_Children = __esmMin(() => {
|
|
12
|
+
init_Expandable();
|
|
13
|
+
init_Stack();
|
|
14
|
+
init_NavigationProvider();
|
|
15
|
+
init_styles_css();
|
|
16
|
+
init_ItemProvider();
|
|
17
|
+
ItemChildren = ({ noExpand, type, children, internalExpanded }) => {
|
|
18
|
+
const context = useNavigation();
|
|
19
|
+
if (!context) throw new Error("Navigation.Item can only be used inside a NavigationProvider.");
|
|
20
|
+
const { animation, animationType, shouldAnimate } = context;
|
|
21
|
+
return /* @__PURE__ */ jsx(Fragment, { children: noExpand ? /* @__PURE__ */ jsx(ItemProvider, { children: /* @__PURE__ */ jsx(Stack, {
|
|
22
|
+
className: noExpand || type === "pinnedGroup" ? "" : navigationStyle.itemPaddingStack({ hide: shouldAnimate && animationType === "complex" && animation === "expand" }),
|
|
23
|
+
width: animation ? "100%" : void 0,
|
|
24
|
+
children
|
|
25
|
+
}) }) : /* @__PURE__ */ jsx(ItemProvider, { children: /* @__PURE__ */ jsx(Expandable, {
|
|
26
|
+
animationDuration: 0,
|
|
27
|
+
opened: internalExpanded,
|
|
28
|
+
children: /* @__PURE__ */ jsx(Stack, {
|
|
29
|
+
className: noExpand || type === "pinnedGroup" ? "" : navigationStyle.itemPaddingStack({ hide: shouldAnimate && animationType === "complex" && animation === "expand" }),
|
|
30
|
+
width: animation ? "100%" : void 0,
|
|
31
|
+
children
|
|
32
|
+
})
|
|
33
|
+
}) }) });
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
init_Children();
|
|
39
|
+
export { ItemChildren, init_Children };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ItemExpandedType } from '../ComponentsTypes';
|
|
2
|
+
export declare const ItemContent: ({ disabled, active, categoryIcon, type, label, hasActiveChildren, labelDescription, noExpand, subLabel, }: Pick<ItemExpandedType, "active" | "categoryIcon" | "disabled" | "hasActiveChildren" | "label" | "labelDescription" | "noExpand" | "subLabel" | "type">) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=Content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../../src/components/compositions/Navigation/components/Item/Content.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAE1D,eAAO,MAAM,WAAW,gTAwGvB,CAAA"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { __esmMin, __name } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { Stack, init_Stack } from "../../../../Stack/index.js";
|
|
3
|
+
import { Text, init_Text } from "../../../../Text/index.js";
|
|
4
|
+
import { init_NavigationProvider, useNavigation } from "../../NavigationProvider.js";
|
|
5
|
+
import { init_styles_css, navigationStyle } from "../../styles.css.js";
|
|
6
|
+
import { ItemContext, init_ItemProvider } from "./ItemProvider.js";
|
|
7
|
+
import { useContext } from "react";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { DragIcon } from "@ultraviolet/icons/DragIcon";
|
|
10
|
+
|
|
11
|
+
//#region src/components/compositions/Navigation/components/Item/Content.tsx
|
|
12
|
+
var ItemContent;
|
|
13
|
+
var init_Content = __esmMin(() => {
|
|
14
|
+
init_Stack();
|
|
15
|
+
init_Text();
|
|
16
|
+
init_NavigationProvider();
|
|
17
|
+
init_styles_css();
|
|
18
|
+
init_ItemProvider();
|
|
19
|
+
ItemContent = ({ disabled, active, categoryIcon, type, label, hasActiveChildren, labelDescription, noExpand, subLabel }) => {
|
|
20
|
+
const context = useNavigation();
|
|
21
|
+
if (!context) throw new Error("Navigation.Item can only be used inside a NavigationProvider.");
|
|
22
|
+
const { expanded, animation } = context;
|
|
23
|
+
const hasParents = !!useContext(ItemContext);
|
|
24
|
+
return /* @__PURE__ */ jsxs(Stack, {
|
|
25
|
+
alignItems: categoryIcon ? "flex-start" : "center",
|
|
26
|
+
direction: "row",
|
|
27
|
+
gap: 1,
|
|
28
|
+
justifyContent: "center",
|
|
29
|
+
children: [
|
|
30
|
+
categoryIcon ? /* @__PURE__ */ jsx(Stack, {
|
|
31
|
+
alignItems: "center",
|
|
32
|
+
className: navigationStyle.itemCategoryIcon,
|
|
33
|
+
justifyContent: "center",
|
|
34
|
+
children: categoryIcon
|
|
35
|
+
}) : null,
|
|
36
|
+
type === "pinned" && expanded ? /* @__PURE__ */ jsx(DragIcon, {
|
|
37
|
+
className: navigationStyle.itemDragIcon,
|
|
38
|
+
disabled,
|
|
39
|
+
prominence: "default",
|
|
40
|
+
sentiment: "neutral",
|
|
41
|
+
size: "small"
|
|
42
|
+
}) : null,
|
|
43
|
+
/* @__PURE__ */ jsxs(Stack, { children: [animation ? null : /* @__PURE__ */ jsxs(Text, {
|
|
44
|
+
as: "span",
|
|
45
|
+
className: navigationStyle.itemWrapText({
|
|
46
|
+
disabled,
|
|
47
|
+
weak: hasActiveChildren && !noExpand && !disabled && !!active
|
|
48
|
+
}),
|
|
49
|
+
"data-animation": animation,
|
|
50
|
+
disabled,
|
|
51
|
+
prominence: (categoryIcon || !hasParents) && !active ? "strong" : "default",
|
|
52
|
+
sentiment: active ? "primary" : "neutral",
|
|
53
|
+
variant: "bodySmallStrong",
|
|
54
|
+
whiteSpace: "pre-wrap",
|
|
55
|
+
children: [label, labelDescription ? /* @__PURE__ */ jsx("span", {
|
|
56
|
+
className: navigationStyle.itemPadded,
|
|
57
|
+
children: labelDescription
|
|
58
|
+
}) : null]
|
|
59
|
+
}), subLabel && !animation ? /* @__PURE__ */ jsx(Text, {
|
|
60
|
+
as: "span",
|
|
61
|
+
className: navigationStyle.itemWrapText({
|
|
62
|
+
disabled,
|
|
63
|
+
weak: hasActiveChildren && !noExpand && !disabled && !!active
|
|
64
|
+
}),
|
|
65
|
+
"data-animation": animation,
|
|
66
|
+
disabled,
|
|
67
|
+
prominence: "weak",
|
|
68
|
+
sentiment: "neutral",
|
|
69
|
+
variant: "caption",
|
|
70
|
+
whiteSpace: "pre-wrap",
|
|
71
|
+
children: subLabel
|
|
72
|
+
}) : null] })
|
|
73
|
+
]
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
//#endregion
|
|
79
|
+
init_Content();
|
|
80
|
+
export { ItemContent, init_Content };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Badge } from '
|
|
2
|
-
import type { ItemType, PinUnPinType } from '
|
|
1
|
+
import type { Badge } from '../../../../Badge';
|
|
2
|
+
import type { ItemType, PinUnPinType } from '../../types';
|
|
3
3
|
import type { ComponentProps, CSSProperties, ElementType, ReactNode } from 'react';
|
|
4
4
|
type ItemProps = {
|
|
5
5
|
children?: ReactNode;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../../src/components/compositions/Navigation/components/Item/Item.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AACzD,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EAEb,WAAW,EACX,SAAS,EACV,MAAM,OAAO,CAAA;AAMd,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,oWAsShB,CAAA"}
|
|
@@ -1,26 +1,30 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { __esmMin, __name } from "
|
|
3
|
-
import { Stack, init_Stack } from "
|
|
4
|
-
import { Tooltip, init_Tooltip } from "
|
|
5
|
-
import { init_NavigationProvider, useNavigation } from "
|
|
6
|
-
import { init_styles_css, navigationStyle } from "
|
|
2
|
+
import { __esmMin, __name } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { Stack, init_Stack } from "../../../../Stack/index.js";
|
|
4
|
+
import { Tooltip, init_Tooltip } from "../../../../Tooltip/index.js";
|
|
5
|
+
import { init_NavigationProvider, useNavigation } from "../../NavigationProvider.js";
|
|
6
|
+
import { init_styles_css, navigationStyle } from "../../styles.css.js";
|
|
7
7
|
import { ItemContext, init_ItemProvider } from "./ItemProvider.js";
|
|
8
|
+
import { ItemMenu, init_Menu } from "../Menu/Menu.js";
|
|
9
|
+
import { ItemMenuItem, init_MenuItem } from "../Menu/MenuItem.js";
|
|
10
|
+
import { NestedMenu, init_NestedMenu } from "../Menu/NestedMenu.js";
|
|
8
11
|
import { ItemExpanded, init_ItemExpanded } from "./ItemExpanded.js";
|
|
9
|
-
import { ItemMenu, ItemMenuItem, init_ItemMenu } from "./ItemMenu.js";
|
|
10
12
|
import { Children, isValidElement, memo, useContext, useEffect, useMemo, useRef } from "react";
|
|
11
13
|
import { cn } from "@ultraviolet/utils";
|
|
12
14
|
import { jsx } from "react/jsx-runtime";
|
|
13
15
|
import { OpenInNewIcon } from "@ultraviolet/icons/OpenInNewIcon";
|
|
14
16
|
|
|
15
|
-
//#region src/components/compositions/Navigation/components/Item.tsx
|
|
17
|
+
//#region src/components/compositions/Navigation/components/Item/Item.tsx
|
|
16
18
|
var onDragStopTrigger, Item;
|
|
17
19
|
var init_Item = __esmMin(() => {
|
|
18
20
|
init_Stack();
|
|
19
21
|
init_Tooltip();
|
|
20
22
|
init_NavigationProvider();
|
|
21
23
|
init_styles_css();
|
|
24
|
+
init_Menu();
|
|
25
|
+
init_MenuItem();
|
|
26
|
+
init_NestedMenu();
|
|
22
27
|
init_ItemExpanded();
|
|
23
|
-
init_ItemMenu();
|
|
24
28
|
init_ItemProvider();
|
|
25
29
|
onDragStopTrigger = (event) => {
|
|
26
30
|
const element = event.currentTarget;
|
|
@@ -149,6 +153,29 @@ var init_Item = __esmMin(() => {
|
|
|
149
153
|
style,
|
|
150
154
|
children
|
|
151
155
|
});
|
|
156
|
+
if (Children.count(children) > 0 && hasParents) return /* @__PURE__ */ jsx(NestedMenu, {
|
|
157
|
+
active,
|
|
158
|
+
badgeSentiment,
|
|
159
|
+
badgeText,
|
|
160
|
+
disabled,
|
|
161
|
+
hasActiveChildren,
|
|
162
|
+
hasHrefAndNoChildren,
|
|
163
|
+
href,
|
|
164
|
+
id,
|
|
165
|
+
isItemPinned,
|
|
166
|
+
isPinDisabled,
|
|
167
|
+
label,
|
|
168
|
+
labelDescription,
|
|
169
|
+
noExpand,
|
|
170
|
+
onClickPinUnpin,
|
|
171
|
+
onToggle,
|
|
172
|
+
pinTooltipLocale,
|
|
173
|
+
rel,
|
|
174
|
+
shouldShowPinnedButton,
|
|
175
|
+
style,
|
|
176
|
+
target,
|
|
177
|
+
children
|
|
178
|
+
});
|
|
152
179
|
if (hasParents) return /* @__PURE__ */ jsx(ItemMenuItem, {
|
|
153
180
|
active,
|
|
154
181
|
badgeSentiment,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ItemExpandedType } from '
|
|
1
|
+
import type { ItemExpandedType } from '../ComponentsTypes';
|
|
2
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;
|
|
3
3
|
//# sourceMappingURL=ItemExpanded.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemExpanded.d.ts","sourceRoot":"","sources":["../../../../../../src/components/compositions/Navigation/components/Item/ItemExpanded.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAG1D,eAAO,MAAM,YAAY,0aA4MxB,CAAA"}
|
package/dist/components/compositions/Navigation/components/{ItemExpanded.js → Item/ItemExpanded.js}
RENAMED
|
@@ -1,104 +1,28 @@
|
|
|
1
|
-
import { __esmMin, __name } from "
|
|
2
|
-
import { Stack, init_Stack } from "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { useCallback,
|
|
1
|
+
import { __esmMin, __name } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { Stack, init_Stack } from "../../../../Stack/index.js";
|
|
3
|
+
import { init_NavigationProvider, useNavigation } from "../../NavigationProvider.js";
|
|
4
|
+
import { init_styles_css, navigationStyle } from "../../styles.css.js";
|
|
5
|
+
import { ItemBadge, init_Badge } from "./Badge.js";
|
|
6
|
+
import { ItemPinnedButton, init_PinnedButton } from "./PinnedButton.js";
|
|
7
|
+
import { ItemChildren, init_Children } from "./Children.js";
|
|
8
|
+
import { ItemContent, init_Content } from "./Content.js";
|
|
9
|
+
import { useCallback, useMemo, useReducer } from "react";
|
|
10
10
|
import { cn } from "@ultraviolet/utils";
|
|
11
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { OpenInNewIcon } from "@ultraviolet/icons/OpenInNewIcon";
|
|
13
|
-
import { ArrowDownIcon } from "@ultraviolet/icons/ArrowDownIcon";
|
|
14
13
|
import { ArrowRightIcon } from "@ultraviolet/icons/ArrowRightIcon";
|
|
15
|
-
import {
|
|
14
|
+
import { ArrowDownIcon } from "@ultraviolet/icons/ArrowDownIcon";
|
|
16
15
|
|
|
17
|
-
//#region src/components/compositions/Navigation/components/ItemExpanded.tsx
|
|
18
|
-
var
|
|
16
|
+
//#region src/components/compositions/Navigation/components/Item/ItemExpanded.tsx
|
|
17
|
+
var ItemExpanded;
|
|
19
18
|
var init_ItemExpanded = __esmMin(() => {
|
|
20
|
-
init_Expandable();
|
|
21
19
|
init_Stack();
|
|
22
|
-
init_Text();
|
|
23
20
|
init_NavigationProvider();
|
|
24
21
|
init_styles_css();
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
if (!context) throw new Error("Navigation.Item can only be used inside a NavigationProvider.");
|
|
30
|
-
const { animation, animationType, shouldAnimate } = context;
|
|
31
|
-
return /* @__PURE__ */ jsx(Fragment$1, { children: noExpand ? /* @__PURE__ */ jsx(ItemProvider, { children: /* @__PURE__ */ jsx(Stack, {
|
|
32
|
-
className: noExpand || type === "pinnedGroup" ? "" : navigationStyle.itemPaddingStack({ hide: shouldAnimate && animationType === "complex" && animation === "expand" }),
|
|
33
|
-
width: animation ? "100%" : void 0,
|
|
34
|
-
children
|
|
35
|
-
}) }) : /* @__PURE__ */ jsx(ItemProvider, { children: /* @__PURE__ */ jsx(Expandable, {
|
|
36
|
-
animationDuration: 0,
|
|
37
|
-
opened: internalExpanded,
|
|
38
|
-
children: /* @__PURE__ */ jsx(Stack, {
|
|
39
|
-
className: noExpand || type === "pinnedGroup" ? "" : navigationStyle.itemPaddingStack({ hide: shouldAnimate && animationType === "complex" && animation === "expand" }),
|
|
40
|
-
width: animation ? "100%" : void 0,
|
|
41
|
-
children
|
|
42
|
-
})
|
|
43
|
-
}) }) });
|
|
44
|
-
};
|
|
45
|
-
ItemContent = ({ disabled, active, categoryIcon, type, label, hasActiveChildren, labelDescription, noExpand, subLabel }) => {
|
|
46
|
-
const context = useNavigation();
|
|
47
|
-
if (!context) throw new Error("Navigation.Item can only be used inside a NavigationProvider.");
|
|
48
|
-
const { expanded, animation } = context;
|
|
49
|
-
const hasParents = !!useContext(ItemContext);
|
|
50
|
-
return /* @__PURE__ */ jsxs(Stack, {
|
|
51
|
-
alignItems: categoryIcon ? "flex-start" : "center",
|
|
52
|
-
direction: "row",
|
|
53
|
-
gap: 1,
|
|
54
|
-
justifyContent: "center",
|
|
55
|
-
children: [
|
|
56
|
-
categoryIcon ? /* @__PURE__ */ jsx(Stack, {
|
|
57
|
-
alignItems: "center",
|
|
58
|
-
className: navigationStyle.itemCategoryIcon,
|
|
59
|
-
justifyContent: "center",
|
|
60
|
-
children: categoryIcon
|
|
61
|
-
}) : null,
|
|
62
|
-
type === "pinned" && expanded ? /* @__PURE__ */ jsx(DragIcon, {
|
|
63
|
-
className: navigationStyle.itemDragIcon,
|
|
64
|
-
disabled,
|
|
65
|
-
prominence: "default",
|
|
66
|
-
sentiment: "neutral",
|
|
67
|
-
size: "small"
|
|
68
|
-
}) : null,
|
|
69
|
-
/* @__PURE__ */ jsxs(Stack, { children: [animation ? null : /* @__PURE__ */ jsxs(Text, {
|
|
70
|
-
as: "span",
|
|
71
|
-
className: navigationStyle.itemWrapText({
|
|
72
|
-
disabled,
|
|
73
|
-
weak: hasActiveChildren && !noExpand && !disabled && !!active
|
|
74
|
-
}),
|
|
75
|
-
"data-animation": animation,
|
|
76
|
-
disabled,
|
|
77
|
-
prominence: (categoryIcon || !hasParents) && !active ? "strong" : "default",
|
|
78
|
-
sentiment: active ? "primary" : "neutral",
|
|
79
|
-
variant: "bodySmallStrong",
|
|
80
|
-
whiteSpace: "pre-wrap",
|
|
81
|
-
children: [label, labelDescription ? /* @__PURE__ */ jsx("span", {
|
|
82
|
-
className: navigationStyle.itemPadded,
|
|
83
|
-
children: labelDescription
|
|
84
|
-
}) : null]
|
|
85
|
-
}), subLabel && !animation ? /* @__PURE__ */ jsx(Text, {
|
|
86
|
-
as: "span",
|
|
87
|
-
className: navigationStyle.itemWrapText({
|
|
88
|
-
disabled,
|
|
89
|
-
weak: hasActiveChildren && !noExpand && !disabled && !!active
|
|
90
|
-
}),
|
|
91
|
-
"data-animation": animation,
|
|
92
|
-
disabled,
|
|
93
|
-
prominence: "weak",
|
|
94
|
-
sentiment: "neutral",
|
|
95
|
-
variant: "caption",
|
|
96
|
-
whiteSpace: "pre-wrap",
|
|
97
|
-
children: subLabel
|
|
98
|
-
}) : null] })
|
|
99
|
-
]
|
|
100
|
-
});
|
|
101
|
-
};
|
|
22
|
+
init_Badge();
|
|
23
|
+
init_Children();
|
|
24
|
+
init_Content();
|
|
25
|
+
init_PinnedButton();
|
|
102
26
|
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 }) => {
|
|
103
27
|
const context = useNavigation();
|
|
104
28
|
const [internalExpanded, onToggleExpand] = useReducer((prevState) => !prevState, Boolean(toggle));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemProvider.d.ts","sourceRoot":"","sources":["../../../../../../src/components/compositions/Navigation/components/Item/ItemProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,eAAO,MAAM,WAAW,kCAAuB,CAAA;AAE/C,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,SAAS,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,YAAY,8EAIxB,CAAA"}
|
package/dist/components/compositions/Navigation/components/{ItemProvider.js → Item/ItemProvider.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { __esmMin, __name } from "
|
|
2
|
+
import { __esmMin, __name } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
3
3
|
import { createContext, useMemo } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
|
-
//#region src/components/compositions/Navigation/components/ItemProvider.tsx
|
|
6
|
+
//#region src/components/compositions/Navigation/components/Item/ItemProvider.tsx
|
|
7
7
|
var ItemContext, ItemProvider;
|
|
8
8
|
var init_ItemProvider = __esmMin(() => {
|
|
9
9
|
ItemContext = createContext(false);
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import type { ItemExpandedType } from '
|
|
2
|
-
export declare const ItemBadge: ({ badgeText, animation, disabled, badgeSentiment, }: Pick<ItemExpandedType, "badgeSentiment" | "badgeText" | "disabled"> & {
|
|
3
|
-
animation: boolean;
|
|
4
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
1
|
+
import type { ItemExpandedType } from '../ComponentsTypes';
|
|
5
2
|
export declare const ItemPinnedButton: ({ shouldShowPinnedButton, isItemPinned, pinTooltipLocale, isPinDisabled, id, active, onClickPinUnpin, }: Pick<ItemExpandedType, "active" | "id" | "isItemPinned" | "isPinDisabled" | "onClickPinUnpin" | "pinTooltipLocale" | "shouldShowPinnedButton">) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
-
//# sourceMappingURL=
|
|
3
|
+
//# sourceMappingURL=PinnedButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PinnedButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/compositions/Navigation/components/Item/PinnedButton.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAG1D,eAAO,MAAM,gBAAgB,6SA8E5B,CAAA"}
|
package/dist/components/compositions/Navigation/components/{ItemFragments.js → Item/PinnedButton.js}
RENAMED
|
@@ -1,28 +1,18 @@
|
|
|
1
|
-
import { __esmMin, __name } from "
|
|
2
|
-
import { Tooltip, init_Tooltip } from "
|
|
3
|
-
import { init_NavigationProvider, useNavigation } from "
|
|
4
|
-
import { init_styles_css, navigationStyle } from "
|
|
5
|
-
import { Badge, init_Badge } from "../../../Badge/index.js";
|
|
1
|
+
import { __esmMin, __name } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { Tooltip, init_Tooltip } from "../../../../Tooltip/index.js";
|
|
3
|
+
import { init_NavigationProvider, useNavigation } from "../../NavigationProvider.js";
|
|
4
|
+
import { init_styles_css, navigationStyle } from "../../styles.css.js";
|
|
6
5
|
import { useMemo } from "react";
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
8
7
|
import { PinOutlineIcon } from "@ultraviolet/icons/PinOutlineIcon";
|
|
9
8
|
import { UnpinIcon } from "@ultraviolet/icons/UnpinIcon";
|
|
10
9
|
|
|
11
|
-
//#region src/components/compositions/Navigation/components/
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
init_Badge();
|
|
10
|
+
//#region src/components/compositions/Navigation/components/Item/PinnedButton.tsx
|
|
11
|
+
var ItemPinnedButton;
|
|
12
|
+
var init_PinnedButton = __esmMin(() => {
|
|
15
13
|
init_Tooltip();
|
|
16
14
|
init_NavigationProvider();
|
|
17
15
|
init_styles_css();
|
|
18
|
-
ItemBadge = ({ badgeText, animation, disabled, badgeSentiment }) => badgeText && !animation ? /* @__PURE__ */ jsx(Badge, {
|
|
19
|
-
className: navigationStyle.itemBadge,
|
|
20
|
-
disabled,
|
|
21
|
-
prominence: "strong",
|
|
22
|
-
sentiment: badgeSentiment,
|
|
23
|
-
size: "small",
|
|
24
|
-
children: badgeText
|
|
25
|
-
}) : null;
|
|
26
16
|
ItemPinnedButton = ({ shouldShowPinnedButton, isItemPinned, pinTooltipLocale, isPinDisabled, id, active, onClickPinUnpin }) => {
|
|
27
17
|
const context = useNavigation();
|
|
28
18
|
if (!context) throw new Error("Navigation.Item can only be used inside a NavigationProvider.");
|
|
@@ -67,5 +57,5 @@ var init_ItemFragments = __esmMin(() => {
|
|
|
67
57
|
});
|
|
68
58
|
|
|
69
59
|
//#endregion
|
|
70
|
-
|
|
71
|
-
export {
|
|
60
|
+
init_PinnedButton();
|
|
61
|
+
export { ItemPinnedButton, init_PinnedButton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/compositions/Navigation/components/Menu/Menu.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEtD,eAAO,MAAM,QAAQ,iIAuEpB,CAAA"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { __esmMin, __name } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { Stack, init_Stack } from "../../../../Stack/index.js";
|
|
3
|
+
import { Tooltip, init_Tooltip } from "../../../../Tooltip/index.js";
|
|
4
|
+
import { init_styles_css, navigationStyle } from "../../styles.css.js";
|
|
5
|
+
import { Button, init_Button } from "../../../../Button/index.js";
|
|
6
|
+
import { Menu, init_Menu as init_Menu$1 } from "../../../../Menu/index.js";
|
|
7
|
+
import { ItemProvider, init_ItemProvider } from "../Item/ItemProvider.js";
|
|
8
|
+
import { Children } from "react";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
import { OrganizationDashboardCategoryIcon } from "@ultraviolet/icons/category/OrganizationDashboardCategoryIcon";
|
|
11
|
+
import { DotsHorizontalIcon } from "@ultraviolet/icons/DotsHorizontalIcon";
|
|
12
|
+
|
|
13
|
+
//#region src/components/compositions/Navigation/components/Menu/Menu.tsx
|
|
14
|
+
var ItemMenu;
|
|
15
|
+
var init_Menu = __esmMin(() => {
|
|
16
|
+
init_Button();
|
|
17
|
+
init_Menu$1();
|
|
18
|
+
init_Stack();
|
|
19
|
+
init_Tooltip();
|
|
20
|
+
init_styles_css();
|
|
21
|
+
init_ItemProvider();
|
|
22
|
+
ItemMenu = ({ style, children, label, categoryIcon, active, hasActiveChildren }) => /* @__PURE__ */ jsx(Stack, {
|
|
23
|
+
alignItems: "flex-start",
|
|
24
|
+
className: navigationStyle.itemMenuStack,
|
|
25
|
+
gap: 1,
|
|
26
|
+
justifyContent: "flex-start",
|
|
27
|
+
style,
|
|
28
|
+
children: Children.count(children) > 0 ? /* @__PURE__ */ jsx(Menu, {
|
|
29
|
+
className: navigationStyle.itemMenuContainer,
|
|
30
|
+
disclosure: /* @__PURE__ */ jsx(Button, {
|
|
31
|
+
"aria-label": label,
|
|
32
|
+
sentiment: "neutral",
|
|
33
|
+
size: "small",
|
|
34
|
+
variant: hasActiveChildren ? "filled" : "ghost",
|
|
35
|
+
children: categoryIcon ? /* @__PURE__ */ jsx(Stack, {
|
|
36
|
+
alignItems: "center",
|
|
37
|
+
direction: "row",
|
|
38
|
+
gap: 1,
|
|
39
|
+
justifyContent: "center",
|
|
40
|
+
children: categoryIcon
|
|
41
|
+
}) : /* @__PURE__ */ jsx(DotsHorizontalIcon, {})
|
|
42
|
+
}),
|
|
43
|
+
dynamicDomRendering: false,
|
|
44
|
+
placement: "right",
|
|
45
|
+
triggerMethod: "hover",
|
|
46
|
+
children: /* @__PURE__ */ jsx(Menu.Group, {
|
|
47
|
+
label,
|
|
48
|
+
children: /* @__PURE__ */ jsx(ItemProvider, { children })
|
|
49
|
+
})
|
|
50
|
+
}) : /* @__PURE__ */ jsx(Tooltip, {
|
|
51
|
+
placement: "right",
|
|
52
|
+
tabIndex: -1,
|
|
53
|
+
text: label,
|
|
54
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
55
|
+
"aria-label": label,
|
|
56
|
+
sentiment: "neutral",
|
|
57
|
+
size: "small",
|
|
58
|
+
variant: active ? "filled" : "ghost",
|
|
59
|
+
children: /* @__PURE__ */ jsx(Stack, {
|
|
60
|
+
alignItems: "center",
|
|
61
|
+
direction: "row",
|
|
62
|
+
gap: 1,
|
|
63
|
+
justifyContent: "center",
|
|
64
|
+
children: categoryIcon !== null && categoryIcon !== void 0 ? categoryIcon : /* @__PURE__ */ jsx(OrganizationDashboardCategoryIcon, { variant: active ? "primary" : "neutral" })
|
|
65
|
+
})
|
|
66
|
+
})
|
|
67
|
+
})
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
//#endregion
|
|
72
|
+
init_Menu();
|
|
73
|
+
export { ItemMenu, init_Menu };
|
package/dist/components/compositions/Navigation/components/{ItemMenu.d.ts → Menu/MenuItem.d.ts}
RENAMED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ItemMenuItemType
|
|
2
|
-
export declare const ItemMenu: ({ style, children, label, categoryIcon, active, hasActiveChildren, }: ItemMenuType) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import type { ItemMenuItemType } from '../ComponentsTypes';
|
|
3
2
|
export declare const ItemMenuItem: ({ active, shouldShowPinnedButton, disabled, href, onToggle, rel, style, target, hasActiveChildren, noExpand, labelDescription, label, badgeText, badgeSentiment, hasHrefAndNoChildren, pinTooltipLocale, isItemPinned, isPinDisabled, onClickPinUnpin, id, }: ItemMenuItemType) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
//# sourceMappingURL=
|
|
3
|
+
//# sourceMappingURL=MenuItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/compositions/Navigation/components/Menu/MenuItem.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAE1D,eAAO,MAAM,YAAY,6TA4GxB,CAAA"}
|
|
@@ -1,75 +1,25 @@
|
|
|
1
|
-
import { __esmMin, __name } from "
|
|
2
|
-
import { Stack, init_Stack } from "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { ItemBadge,
|
|
8
|
-
import {
|
|
9
|
-
import { Button, init_Button } from "../../../Button/index.js";
|
|
10
|
-
import { Menu, init_Menu } from "../../../Menu/index.js";
|
|
11
|
-
import { Children } from "react";
|
|
1
|
+
import { __esmMin, __name } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { Stack, init_Stack } from "../../../../Stack/index.js";
|
|
3
|
+
import { Text, init_Text } from "../../../../Text/index.js";
|
|
4
|
+
import { init_NavigationProvider, useNavigation } from "../../NavigationProvider.js";
|
|
5
|
+
import { init_styles_css, navigationStyle } from "../../styles.css.js";
|
|
6
|
+
import { Menu, init_Menu } from "../../../../Menu/index.js";
|
|
7
|
+
import { ItemBadge, init_Badge } from "../Item/Badge.js";
|
|
8
|
+
import { ItemPinnedButton, init_PinnedButton } from "../Item/PinnedButton.js";
|
|
12
9
|
import { cn } from "@ultraviolet/utils";
|
|
13
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
11
|
import { OpenInNewIcon } from "@ultraviolet/icons/OpenInNewIcon";
|
|
15
|
-
import { OrganizationDashboardCategoryIcon } from "@ultraviolet/icons/category/OrganizationDashboardCategoryIcon";
|
|
16
12
|
|
|
17
|
-
//#region src/components/compositions/Navigation/components/
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
init_Button();
|
|
13
|
+
//#region src/components/compositions/Navigation/components/Menu/MenuItem.tsx
|
|
14
|
+
var ItemMenuItem;
|
|
15
|
+
var init_MenuItem = __esmMin(() => {
|
|
21
16
|
init_Menu();
|
|
22
17
|
init_Stack();
|
|
23
18
|
init_Text();
|
|
24
|
-
init_Tooltip();
|
|
25
19
|
init_NavigationProvider();
|
|
26
20
|
init_styles_css();
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
ItemMenu = ({ style, children, label, categoryIcon, active, hasActiveChildren }) => /* @__PURE__ */ jsx(Stack, {
|
|
30
|
-
alignItems: "flex-start",
|
|
31
|
-
className: navigationStyle.itemMenuStack,
|
|
32
|
-
gap: 1,
|
|
33
|
-
justifyContent: "flex-start",
|
|
34
|
-
style,
|
|
35
|
-
children: Children.count(children) > 0 ? /* @__PURE__ */ jsx(Menu, {
|
|
36
|
-
className: navigationStyle.itemMenuContainer,
|
|
37
|
-
disclosure: /* @__PURE__ */ jsx(Button, {
|
|
38
|
-
"aria-label": label,
|
|
39
|
-
sentiment: "neutral",
|
|
40
|
-
size: "small",
|
|
41
|
-
variant: hasActiveChildren ? "filled" : "ghost",
|
|
42
|
-
children: categoryIcon ? /* @__PURE__ */ jsx(Stack, {
|
|
43
|
-
alignItems: "center",
|
|
44
|
-
direction: "row",
|
|
45
|
-
gap: 1,
|
|
46
|
-
justifyContent: "center",
|
|
47
|
-
children: categoryIcon
|
|
48
|
-
}) : null
|
|
49
|
-
}),
|
|
50
|
-
dynamicDomRendering: false,
|
|
51
|
-
placement: "right",
|
|
52
|
-
triggerMethod: "hover",
|
|
53
|
-
children: /* @__PURE__ */ jsx(ItemProvider, { children })
|
|
54
|
-
}) : /* @__PURE__ */ jsx(Tooltip, {
|
|
55
|
-
placement: "right",
|
|
56
|
-
tabIndex: -1,
|
|
57
|
-
text: label,
|
|
58
|
-
children: /* @__PURE__ */ jsx(Button, {
|
|
59
|
-
"aria-label": label,
|
|
60
|
-
sentiment: "neutral",
|
|
61
|
-
size: "small",
|
|
62
|
-
variant: active ? "filled" : "ghost",
|
|
63
|
-
children: /* @__PURE__ */ jsx(Stack, {
|
|
64
|
-
alignItems: "center",
|
|
65
|
-
direction: "row",
|
|
66
|
-
gap: 1,
|
|
67
|
-
justifyContent: "center",
|
|
68
|
-
children: categoryIcon !== null && categoryIcon !== void 0 ? categoryIcon : /* @__PURE__ */ jsx(OrganizationDashboardCategoryIcon, { variant: active ? "primary" : "neutral" })
|
|
69
|
-
})
|
|
70
|
-
})
|
|
71
|
-
})
|
|
72
|
-
});
|
|
21
|
+
init_Badge();
|
|
22
|
+
init_PinnedButton();
|
|
73
23
|
ItemMenuItem = ({ active, shouldShowPinnedButton, disabled, href, onToggle, rel, style, target, hasActiveChildren, noExpand, labelDescription, label, badgeText, badgeSentiment, hasHrefAndNoChildren, pinTooltipLocale, isItemPinned, isPinDisabled, onClickPinUnpin, id }) => {
|
|
74
24
|
const context = useNavigation();
|
|
75
25
|
if (!context) throw new Error("Navigation.Item can only be used inside a NavigationProvider.");
|
|
@@ -79,6 +29,7 @@ var init_ItemMenu = __esmMin(() => {
|
|
|
79
29
|
active,
|
|
80
30
|
borderless: true,
|
|
81
31
|
className: cn(navigationStyle.itemMenu, pinnedFeature && shouldShowPinnedButton ? navigationStyle.itemMenuPinned : ""),
|
|
32
|
+
"data-testid": id,
|
|
82
33
|
disabled,
|
|
83
34
|
href,
|
|
84
35
|
onClick: () => onToggle === null || onToggle === void 0 ? void 0 : onToggle(!!active),
|
|
@@ -144,5 +95,5 @@ var init_ItemMenu = __esmMin(() => {
|
|
|
144
95
|
});
|
|
145
96
|
|
|
146
97
|
//#endregion
|
|
147
|
-
|
|
148
|
-
export {
|
|
98
|
+
init_MenuItem();
|
|
99
|
+
export { ItemMenuItem, init_MenuItem };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ItemMenuItemType, ItemMenuType } from '../ComponentsTypes';
|
|
2
|
+
export declare const NestedMenu: ({ children, label, active, shouldShowPinnedButton, disabled, href, onToggle, rel, style, target, hasActiveChildren, noExpand, labelDescription, badgeText, badgeSentiment, hasHrefAndNoChildren, pinTooltipLocale, isItemPinned, isPinDisabled, onClickPinUnpin, id, }: ItemMenuType & ItemMenuItemType) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=NestedMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NestedMenu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/compositions/Navigation/components/Menu/NestedMenu.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAExE,eAAO,MAAM,UAAU,sVAyDtB,CAAA"}
|