@ultraviolet/ui 3.10.1 → 3.11.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.113.0 → _@oxc-project_runtime@0.114.0}/helpers/asyncToGenerator.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/defineProperty.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/objectSpread2.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/objectWithoutProperties.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/objectWithoutPropertiesLoose.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/toPrimitive.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/toPropertyKey.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.113.0 → _@oxc-project_runtime@0.114.0}/helpers/typeof.js +1 -1
- package/dist/components/ActionBar/index.js +2 -2
- package/dist/components/Alert/index.js +2 -2
- package/dist/components/Avatar/index.js +3 -3
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Banner/index.js +2 -2
- package/dist/components/BarChart/Tooltip.js +1 -1
- package/dist/components/BarChart/index.js +2 -2
- package/dist/components/BarStack/index.js +1 -1
- package/dist/components/Breadcrumbs/components/Item.js +1 -1
- package/dist/components/Bullet/index.js +1 -1
- package/dist/components/Button/index.js +2 -2
- package/dist/components/Card/index.js +1 -1
- package/dist/components/Carousel/index.js +2 -2
- package/dist/components/Checkbox/CheckboxIconContainer.d.ts +4 -0
- package/dist/components/Checkbox/CheckboxIconContainer.d.ts.map +1 -0
- package/dist/components/Checkbox/CheckboxIconContainer.js +38 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +9 -37
- package/dist/components/Checkbox/styles.css.d.ts +3 -3
- package/dist/components/Checkbox/styles.css.d.ts.map +1 -1
- package/dist/components/Checkbox/styles.css.js +17 -10
- package/dist/components/CheckboxGroup/index.d.ts +2 -2
- package/dist/components/CheckboxGroup/index.d.ts.map +1 -1
- package/dist/components/CheckboxGroup/index.js +4 -3
- package/dist/components/Chip/index.js +1 -1
- package/dist/components/CopyButton/index.js +1 -1
- package/dist/components/DateInput/components/CalendarContent.js +1 -1
- package/dist/components/DateInput/components/CalendarMonthly.js +1 -1
- package/dist/components/DateInput/index.js +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/EmptyState/index.js +1 -1
- package/dist/components/Expandable/index.js +2 -2
- package/dist/components/ExpandableCard/index.js +2 -2
- package/dist/components/FileInput/components/Button.js +2 -2
- package/dist/components/GlobalAlert/GlobalAlertLink.js +1 -1
- package/dist/components/GlobalAlert/index.js +1 -1
- package/dist/components/InfiniteScroll/index.js +1 -1
- package/dist/components/Key/index.js +1 -1
- package/dist/components/Label/index.js +1 -1
- package/dist/components/LineChart/CustomLegend.js +2 -2
- package/dist/components/LineChart/index.js +2 -2
- package/dist/components/Link/index.js +4 -4
- package/dist/components/List/Cell.js +2 -2
- package/dist/components/List/HeaderCell.js +3 -3
- package/dist/components/List/HeaderRow.js +1 -1
- package/dist/components/List/ListContext.js +3 -3
- package/dist/components/List/Row.js +5 -5
- package/dist/components/List/SelectBar.js +1 -1
- package/dist/components/List/SkeletonRows.js +2 -2
- package/dist/components/List/index.js +1 -1
- package/dist/components/List/styles.css.js +1 -0
- package/dist/components/Loader/index.js +2 -2
- package/dist/components/Menu/MenuContent.js +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 +28 -8
- package/dist/components/Menu/index.d.ts +1 -0
- package/dist/components/Menu/index.d.ts.map +1 -1
- package/dist/components/Menu/index.js +2 -2
- package/dist/components/Modal/components/Dialog.js +2 -2
- package/dist/components/Notice/index.js +1 -1
- package/dist/components/Notification/Notification.js +1 -1
- package/dist/components/Notification/NotificationContainer.js +1 -1
- package/dist/components/NumberInput/index.js +1 -1
- package/dist/components/Pagination/PaginationButtons.js +1 -1
- package/dist/components/PasswordCheck/index.js +1 -1
- package/dist/components/PieChart/index.js +2 -2
- package/dist/components/Popover/index.js +1 -1
- package/dist/components/Popup/index.js +2 -2
- package/dist/components/ProgressBar/index.js +1 -1
- package/dist/components/ProgressBar/styles.css.js +1 -0
- package/dist/components/ProgressBar/variables.css.js +0 -2
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/Radio/styles.css.js +1 -0
- package/dist/components/RadioGroup/index.js +2 -2
- package/dist/components/Row/index.js +3 -3
- package/dist/components/SearchInput/index.js +1 -1
- package/dist/components/SelectInput/components/Dropdown.js +4 -4
- package/dist/components/SelectInput/components/SearchBarDropdown.js +3 -3
- package/dist/components/SelectInput/components/SelectBar.js +3 -3
- package/dist/components/SelectInput/index.js +1 -1
- package/dist/components/SelectableCard/IllustrationContainer.d.ts +1 -1
- package/dist/components/SelectableCard/IllustrationContainer.js +2 -2
- package/dist/components/SelectableCard/MultiStateInput.js +1 -1
- package/dist/components/SelectableCard/SelectableCard.js +2 -2
- package/dist/components/SelectableCardGroup/index.js +1 -1
- package/dist/components/SelectableCardOptionGroup/SelectableCardOptionGroup.js +1 -1
- package/dist/components/SelectableCardOptionGroup/components/Image.js +1 -1
- package/dist/components/SelectableCardOptionGroup/components/Option.js +2 -2
- package/dist/components/Separator/index.js +1 -1
- package/dist/components/Skeleton/index.js +1 -1
- package/dist/components/Slider/components/DoubleSlider.js +2 -2
- package/dist/components/Slider/components/SingleSlider.js +3 -3
- package/dist/components/Snippet/index.js +2 -2
- package/dist/components/Stack/index.js +3 -3
- package/dist/components/Status/index.js +1 -1
- package/dist/components/StepList/index.js +1 -1
- package/dist/components/Stepper/Step.js +1 -1
- package/dist/components/Stepper/index.js +2 -2
- package/dist/components/SwitchButton/Option.js +1 -1
- package/dist/components/SwitchButton/index.js +1 -1
- package/dist/components/Table/Cell.js +2 -2
- package/dist/components/Table/HeaderCell.js +2 -2
- package/dist/components/Table/HeaderRow.js +1 -1
- package/dist/components/Table/Row.js +5 -5
- package/dist/components/Table/TableContext.js +2 -2
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Tabs/Tab.js +3 -3
- package/dist/components/Tabs/TabMenu.js +3 -3
- package/dist/components/Tabs/TabMenuItem.js +2 -2
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/Tabs/index.js +3 -3
- package/dist/components/Tag/index.js +1 -1
- package/dist/components/TagInput/index.js +2 -2
- package/dist/components/TagList/index.js +2 -2
- package/dist/components/Text/index.js +3 -3
- package/dist/components/TextArea/index.js +2 -2
- package/dist/components/TextInput/index.js +1 -1
- package/dist/components/TimeInput/index.js +1 -1
- package/dist/components/Toaster/Toaster.js +1 -1
- package/dist/components/Toaster/ToasterContainer.js +1 -1
- package/dist/components/Toggle/index.js +1 -1
- package/dist/components/ToggleGroup/index.js +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/TreeMapChart/index.js +3 -3
- package/dist/components/UnitInput/index.js +2 -2
- package/dist/components/VerificationCode/index.js +1 -1
- package/dist/components/compositions/CodeEditor/index.d.ts +40 -0
- package/dist/components/compositions/CodeEditor/index.d.ts.map +1 -0
- package/dist/components/compositions/CodeEditor/index.js +129 -0
- package/dist/components/compositions/CodeEditor/styles.css.d.ts +19 -0
- package/dist/components/compositions/CodeEditor/styles.css.d.ts.map +1 -0
- package/dist/components/compositions/CodeEditor/styles.css.js +30 -0
- package/dist/components/compositions/ContentCard/Content.d.ts +13 -0
- package/dist/components/compositions/ContentCard/Content.d.ts.map +1 -0
- package/dist/components/compositions/ContentCard/Content.js +65 -0
- package/dist/components/compositions/ContentCard/Skeleton.d.ts +6 -0
- package/dist/components/compositions/ContentCard/Skeleton.d.ts.map +1 -0
- package/dist/components/compositions/ContentCard/Skeleton.js +33 -0
- package/dist/components/compositions/ContentCard/index.d.ts +8 -0
- package/dist/components/compositions/ContentCard/index.d.ts.map +1 -0
- package/dist/components/compositions/ContentCard/index.js +80 -0
- package/dist/components/compositions/ContentCard/styles.css.d.ts +24 -0
- package/dist/components/compositions/ContentCard/styles.css.d.ts.map +1 -0
- package/dist/components/compositions/ContentCard/styles.css.js +36 -0
- package/dist/components/compositions/ContentCard/type.d.ts +30 -0
- package/dist/components/compositions/ContentCard/type.d.ts.map +1 -0
- package/dist/components/compositions/ContentCardGroup/Card.d.ts +15 -0
- package/dist/components/compositions/ContentCardGroup/Card.d.ts.map +1 -0
- package/dist/components/compositions/ContentCardGroup/Card.js +58 -0
- package/dist/components/compositions/ContentCardGroup/SkeletonCard.d.ts +2 -0
- package/dist/components/compositions/ContentCardGroup/SkeletonCard.d.ts.map +1 -0
- package/dist/components/compositions/ContentCardGroup/SkeletonCard.js +30 -0
- package/dist/components/compositions/ContentCardGroup/index.d.ts +21 -0
- package/dist/components/compositions/ContentCardGroup/index.d.ts.map +1 -0
- package/dist/components/compositions/ContentCardGroup/index.js +21 -0
- package/dist/components/compositions/ContentCardGroup/styles.css.d.ts +8 -0
- package/dist/components/compositions/ContentCardGroup/styles.css.d.ts.map +1 -0
- package/dist/components/compositions/ContentCardGroup/styles.css.js +13 -0
- package/dist/components/compositions/Conversation/index.d.ts +50 -0
- package/dist/components/compositions/Conversation/index.d.ts.map +1 -0
- package/dist/components/compositions/Conversation/index.js +53 -0
- package/dist/components/compositions/Conversation/styles.css.d.ts +8 -0
- package/dist/components/compositions/Conversation/styles.css.d.ts.map +1 -0
- package/dist/components/compositions/Conversation/styles.css.js +22 -0
- package/dist/components/compositions/CustomerSatisfaction/assets/1-5.js +5 -0
- package/dist/components/compositions/CustomerSatisfaction/assets/1-5NB.js +5 -0
- package/dist/components/compositions/CustomerSatisfaction/assets/2-5.js +5 -0
- package/dist/components/compositions/CustomerSatisfaction/assets/2-5NB.js +5 -0
- package/dist/components/compositions/CustomerSatisfaction/assets/3-5.js +5 -0
- package/dist/components/compositions/CustomerSatisfaction/assets/3-5NB.js +5 -0
- package/dist/components/compositions/CustomerSatisfaction/assets/4-5.js +5 -0
- package/dist/components/compositions/CustomerSatisfaction/assets/4-5NB.js +5 -0
- package/dist/components/compositions/CustomerSatisfaction/assets/5-5.js +5 -0
- package/dist/components/compositions/CustomerSatisfaction/assets/5-5NB.js +5 -0
- package/dist/components/compositions/CustomerSatisfaction/index.d.ts +33 -0
- package/dist/components/compositions/CustomerSatisfaction/index.d.ts.map +1 -0
- package/dist/components/compositions/CustomerSatisfaction/index.js +89 -0
- package/dist/components/compositions/CustomerSatisfaction/styles.css.d.ts +19 -0
- package/dist/components/compositions/CustomerSatisfaction/styles.css.d.ts.map +1 -0
- package/dist/components/compositions/CustomerSatisfaction/styles.css.js +20 -0
- package/dist/components/compositions/EstimateCost/CompactEstimateCost.d.ts +16 -0
- package/dist/components/compositions/EstimateCost/CompactEstimateCost.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/CompactEstimateCost.js +38 -0
- package/dist/components/compositions/EstimateCost/Components/ContentComponents.d.ts +12 -0
- package/dist/components/compositions/EstimateCost/Components/ContentComponents.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Components/ContentComponents.js +114 -0
- package/dist/components/compositions/EstimateCost/Components/CustomUnitInput.d.ts +10 -0
- package/dist/components/compositions/EstimateCost/Components/CustomUnitInput.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Components/CustomUnitInput.js +41 -0
- package/dist/components/compositions/EstimateCost/Components/Item.d.ts +118 -0
- package/dist/components/compositions/EstimateCost/Components/Item.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Components/Item.js +168 -0
- package/dist/components/compositions/EstimateCost/Components/ItemLeftSide.d.ts +3 -0
- package/dist/components/compositions/EstimateCost/Components/ItemLeftSide.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Components/ItemLeftSide.js +75 -0
- package/dist/components/compositions/EstimateCost/Components/ItemPrice.d.ts +3 -0
- package/dist/components/compositions/EstimateCost/Components/ItemPrice.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Components/ItemPrice.js +54 -0
- package/dist/components/compositions/EstimateCost/Components/LineThrough.d.ts +7 -0
- package/dist/components/compositions/EstimateCost/Components/LineThrough.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Components/LineThrough.js +18 -0
- package/dist/components/compositions/EstimateCost/Components/NumberInput.d.ts +11 -0
- package/dist/components/compositions/EstimateCost/Components/NumberInput.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Components/NumberInput.js +35 -0
- package/dist/components/compositions/EstimateCost/Components/Region.d.ts +23 -0
- package/dist/components/compositions/EstimateCost/Components/Region.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Components/Region.js +38 -0
- package/dist/components/compositions/EstimateCost/Components/Regular.d.ts +11 -0
- package/dist/components/compositions/EstimateCost/Components/Regular.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Components/Regular.js +23 -0
- package/dist/components/compositions/EstimateCost/Components/Strong.d.ts +10 -0
- package/dist/components/compositions/EstimateCost/Components/Strong.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Components/Strong.js +16 -0
- package/dist/components/compositions/EstimateCost/Components/Unit.d.ts +11 -0
- package/dist/components/compositions/EstimateCost/Components/Unit.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Components/Unit.js +50 -0
- package/dist/components/compositions/EstimateCost/Components/Zone.d.ts +23 -0
- package/dist/components/compositions/EstimateCost/Components/Zone.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Components/Zone.js +37 -0
- package/dist/components/compositions/EstimateCost/Components/components.css.d.ts +78 -0
- package/dist/components/compositions/EstimateCost/Components/components.css.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Components/components.css.js +71 -0
- package/dist/components/compositions/EstimateCost/EstimateCostContent.d.ts +3 -0
- package/dist/components/compositions/EstimateCost/EstimateCostContent.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/EstimateCostContent.js +198 -0
- package/dist/components/compositions/EstimateCost/EstimateCostProvider.d.ts +26 -0
- package/dist/components/compositions/EstimateCost/EstimateCostProvider.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/EstimateCostProvider.js +33 -0
- package/dist/components/compositions/EstimateCost/OverlayComponent.d.ts +27 -0
- package/dist/components/compositions/EstimateCost/OverlayComponent.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/OverlayComponent.js +100 -0
- package/dist/components/compositions/EstimateCost/OverlayContext.d.ts +13 -0
- package/dist/components/compositions/EstimateCost/OverlayContext.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/OverlayContext.js +15 -0
- package/dist/components/compositions/EstimateCost/constants.d.ts +8 -0
- package/dist/components/compositions/EstimateCost/constants.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/constants.js +26 -0
- package/dist/components/compositions/EstimateCost/helper.d.ts +10 -0
- package/dist/components/compositions/EstimateCost/helper.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/helper.js +11 -0
- package/dist/components/compositions/EstimateCost/index.d.ts +177 -0
- package/dist/components/compositions/EstimateCost/index.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/index.js +97 -0
- package/dist/components/compositions/EstimateCost/locales/en.d.ts +23 -0
- package/dist/components/compositions/EstimateCost/locales/en.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/locales/en.js +25 -0
- package/dist/components/compositions/EstimateCost/styles.css.d.ts +86 -0
- package/dist/components/compositions/EstimateCost/styles.css.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/styles.css.js +72 -0
- package/dist/components/compositions/EstimateCost/types.d.ts +226 -0
- package/dist/components/compositions/EstimateCost/types.d.ts.map +1 -0
- package/dist/components/compositions/FAQ/index.d.ts +14 -0
- package/dist/components/compositions/FAQ/index.d.ts.map +1 -0
- package/dist/components/compositions/FAQ/index.js +43 -0
- package/dist/components/compositions/FAQ/styles.css.d.ts +2 -0
- package/dist/components/compositions/FAQ/styles.css.d.ts.map +1 -0
- package/dist/components/compositions/FAQ/styles.css.js +7 -0
- package/dist/components/compositions/InfoTable/Context.d.ts +4 -0
- package/dist/components/compositions/InfoTable/Context.d.ts.map +1 -0
- package/dist/components/compositions/InfoTable/Context.js +7 -0
- package/dist/components/compositions/InfoTable/components/Cell.d.ts +10 -0
- package/dist/components/compositions/InfoTable/components/Cell.d.ts.map +1 -0
- package/dist/components/compositions/InfoTable/components/Cell.js +39 -0
- package/dist/components/compositions/InfoTable/components/Row.d.ts +9 -0
- package/dist/components/compositions/InfoTable/components/Row.d.ts.map +1 -0
- package/dist/components/compositions/InfoTable/components/Row.js +23 -0
- package/dist/components/compositions/InfoTable/index.d.ts +25 -0
- package/dist/components/compositions/InfoTable/index.d.ts.map +1 -0
- package/dist/components/compositions/InfoTable/index.js +28 -0
- package/dist/components/compositions/InfoTable/styles.css.d.ts +8 -0
- package/dist/components/compositions/InfoTable/styles.css.d.ts.map +1 -0
- package/dist/components/compositions/InfoTable/styles.css.js +13 -0
- package/dist/components/compositions/Navigation/Footer.d.ts +9 -0
- package/dist/components/compositions/Navigation/Footer.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/Footer.js +65 -0
- package/dist/components/compositions/Navigation/Header.d.ts +7 -0
- package/dist/components/compositions/Navigation/Header.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/Header.js +24 -0
- package/dist/components/compositions/Navigation/NavigationContent.d.ts +3 -0
- package/dist/components/compositions/Navigation/NavigationContent.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/NavigationContent.js +104 -0
- package/dist/components/compositions/Navigation/NavigationProvider.d.ts +94 -0
- package/dist/components/compositions/Navigation/NavigationProvider.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/NavigationProvider.js +121 -0
- package/dist/components/compositions/Navigation/animations.css.d.ts +7 -0
- package/dist/components/compositions/Navigation/animations.css.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/ComponentsTypes.d.ts +65 -0
- package/dist/components/compositions/Navigation/components/ComponentsTypes.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/Group.d.ts +10 -0
- package/dist/components/compositions/Navigation/components/Group.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/Group.js +40 -0
- package/dist/components/compositions/Navigation/components/Item.d.ts +88 -0
- package/dist/components/compositions/Navigation/components/Item.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/Item.js +200 -0
- package/dist/components/compositions/Navigation/components/ItemExpanded.d.ts +3 -0
- package/dist/components/compositions/Navigation/components/ItemExpanded.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/ItemExpanded.js +214 -0
- package/dist/components/compositions/Navigation/components/ItemFragments.d.ts +6 -0
- package/dist/components/compositions/Navigation/components/ItemFragments.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/ItemFragments.js +63 -0
- package/dist/components/compositions/Navigation/components/ItemMenu.d.ts +4 -0
- package/dist/components/compositions/Navigation/components/ItemMenu.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/ItemMenu.js +135 -0
- package/dist/components/compositions/Navigation/components/ItemProvider.d.ts +8 -0
- package/dist/components/compositions/Navigation/components/ItemProvider.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/ItemProvider.js +17 -0
- package/dist/components/compositions/Navigation/components/PinnedItems.d.ts +24 -0
- package/dist/components/compositions/Navigation/components/PinnedItems.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/PinnedItems.js +105 -0
- package/dist/components/compositions/Navigation/components/Separator.d.ts +2 -0
- package/dist/components/compositions/Navigation/components/Separator.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/Separator.js +11 -0
- package/dist/components/compositions/Navigation/components/ShowHide.d.ts +16 -0
- package/dist/components/compositions/Navigation/components/ShowHide.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/ShowHide.js +54 -0
- package/dist/components/compositions/Navigation/components/items.css.d.ts +98 -0
- package/dist/components/compositions/Navigation/components/items.css.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/items.css.js +124 -0
- package/dist/components/compositions/Navigation/components/styles.css.d.ts +25 -0
- package/dist/components/compositions/Navigation/components/styles.css.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/styles.css.js +29 -0
- package/dist/components/compositions/Navigation/constants.d.ts +10 -0
- package/dist/components/compositions/Navigation/constants.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/index.d.ts +65 -0
- package/dist/components/compositions/Navigation/index.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/index.js +35 -0
- package/dist/components/compositions/Navigation/locales/en.d.ts +11 -0
- package/dist/components/compositions/Navigation/locales/en.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/locales/en.js +13 -0
- package/dist/components/compositions/Navigation/styles.css.d.ts +34 -0
- package/dist/components/compositions/Navigation/styles.css.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/styles.css.js +37 -0
- package/dist/components/compositions/Navigation/types.d.ts +43 -0
- package/dist/components/compositions/Navigation/types.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/variables.css.d.ts +2 -0
- package/dist/components/compositions/Navigation/variables.css.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/variables.css.js +5 -0
- package/dist/components/compositions/OfferList/components/Cell.js +1 -1
- package/dist/components/compositions/OfferList/components/Row.js +4 -4
- package/dist/components/compositions/OfferList/index.js +1 -1
- package/dist/components/compositions/OptionSelector/components/Selector.js +1 -1
- package/dist/components/compositions/OptionSelector/index.js +1 -1
- package/dist/components/compositions/OrderSummary/ScrollableContent.js +1 -1
- package/dist/components/compositions/OrderSummary/helpers.js +1 -1
- package/dist/components/compositions/OrderSummary/index.js +1 -1
- package/dist/components/compositions/OrderSummary/types.d.ts +1 -1
- package/dist/components/compositions/OrderSummary/types.d.ts.map +1 -1
- package/dist/components/compositions/Plans/PlanHeader.js +1 -1
- package/dist/components/compositions/SteppedListCard/styles.css.js +0 -1
- package/dist/components/compositions/index.d.ts +9 -0
- package/dist/components/compositions/index.d.ts.map +1 -1
- package/dist/components/compositions/index.js +12 -1
- package/dist/index.js +17 -17
- package/dist/theme/ThemeProvider.js +1 -1
- package/dist/ui.css +1 -1
- package/package.json +10 -6
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { CSSProperties, ReactElement } from 'react';
|
|
2
|
+
type PinnedItemsProps = {
|
|
3
|
+
/**
|
|
4
|
+
* This prop is used to control if the item is expanded or collapsed
|
|
5
|
+
*/
|
|
6
|
+
toggle?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* This function will be triggered on click of the item. If the item is expandable
|
|
9
|
+
* toggle will be passed with it.
|
|
10
|
+
*/
|
|
11
|
+
onToggle?: (toggle: boolean) => void;
|
|
12
|
+
/**
|
|
13
|
+
* This function will be called when the user reorder the pinned items
|
|
14
|
+
*/
|
|
15
|
+
onReorder?: (pinnedItems: string[]) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Use this prop if it is needed to wrap each PinnedItem component into another component (eg NavLink)
|
|
18
|
+
*/
|
|
19
|
+
itemWrapper?: (item: ReactElement, itemId: string) => ReactElement;
|
|
20
|
+
style?: CSSProperties;
|
|
21
|
+
};
|
|
22
|
+
export declare const PinnedItems: ({ toggle, onReorder, onToggle, itemWrapper, style, }: PinnedItemsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=PinnedItems.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PinnedItems.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/Navigation/components/PinnedItems.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAa,YAAY,EAAE,MAAM,OAAO,CAAA;AAYnE,KAAK,gBAAgB,GAAG;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;IACpC;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IAC3C;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,KAAK,YAAY,CAAA;IAClE,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,WAAW,4HAiJvB,CAAA"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
4
|
+
import { Text } from "../../../Text/index.js";
|
|
5
|
+
import { useNavigation } from "../NavigationProvider.js";
|
|
6
|
+
import { navigationPinnedItemContainer, navigationPinnedItemDropableArea, navigationPinnedItemRelativeDiv } from "./styles.css.js";
|
|
7
|
+
import { Item } from "./Item.js";
|
|
8
|
+
import { useCallback } from "react";
|
|
9
|
+
import { useTheme } from "@ultraviolet/themes";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { PinCategoryIcon } from "@ultraviolet/icons/category";
|
|
12
|
+
|
|
13
|
+
//#region src/components/compositions/Navigation/components/PinnedItems.tsx
|
|
14
|
+
const PinnedItems = ({ toggle = true, onReorder, onToggle, itemWrapper, style }) => {
|
|
15
|
+
const context = useNavigation();
|
|
16
|
+
if (!context) throw new Error("Navigation.PinnedItems can only be used inside a NavigationProvider.");
|
|
17
|
+
const { locales, pinnedItems, pinnedFeature, reorderItems, expanded, items, animation, showHide } = context;
|
|
18
|
+
const theme = useTheme();
|
|
19
|
+
const onDrop = useCallback((event, index) => {
|
|
20
|
+
event.preventDefault();
|
|
21
|
+
if (event === null || event === void 0 ? void 0 : event.dataTransfer) {
|
|
22
|
+
event.currentTarget.style.borderColor = "transparent";
|
|
23
|
+
const data = JSON.parse(event.dataTransfer.getData("text"));
|
|
24
|
+
if (data.index === index - 1 || index > data.index) {
|
|
25
|
+
const newItems = reorderItems(data.index, index - 1);
|
|
26
|
+
onReorder === null || onReorder === void 0 || onReorder(newItems);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const newItems = reorderItems(data.index, index);
|
|
30
|
+
onReorder === null || onReorder === void 0 || onReorder(newItems);
|
|
31
|
+
}
|
|
32
|
+
}, [onReorder, reorderItems]);
|
|
33
|
+
const onDragOver = useCallback((event) => {
|
|
34
|
+
event.preventDefault();
|
|
35
|
+
event.currentTarget.style.borderColor = theme.colors.primary.border;
|
|
36
|
+
}, [theme.colors.primary.border]);
|
|
37
|
+
const onDragLeave = useCallback((event) => {
|
|
38
|
+
event.preventDefault();
|
|
39
|
+
event.currentTarget.style.borderColor = "transparent";
|
|
40
|
+
}, []);
|
|
41
|
+
if (Object.keys(items).length === 0) return null;
|
|
42
|
+
if (pinnedFeature && showHide !== "hide") return /* @__PURE__ */ jsx("div", {
|
|
43
|
+
style: _objectSpread2({ width: animation ? "100%" : void 0 }, style),
|
|
44
|
+
children: /* @__PURE__ */ jsxs(Item, {
|
|
45
|
+
categoryIcon: /* @__PURE__ */ jsx(PinCategoryIcon, { variant: "neutral" }),
|
|
46
|
+
"data-testid": "pinned-group",
|
|
47
|
+
id: "pinned-group",
|
|
48
|
+
label: locales["navigation.pinned.item.group.label"],
|
|
49
|
+
onToggle,
|
|
50
|
+
toggle,
|
|
51
|
+
type: "pinnedGroup",
|
|
52
|
+
children: [pinnedItems.length > 0 ? pinnedItems.map((itemId, index) => {
|
|
53
|
+
var _items$itemId;
|
|
54
|
+
if ((_items$itemId = items[itemId]) === null || _items$itemId === void 0 ? void 0 : _items$itemId.label) {
|
|
55
|
+
var _items$itemId$active;
|
|
56
|
+
var _items$itemId2;
|
|
57
|
+
var _items$itemId$onClick;
|
|
58
|
+
var _items$itemId3;
|
|
59
|
+
var _items$itemId4;
|
|
60
|
+
const itemElement = /* @__PURE__ */ jsx(Item, {
|
|
61
|
+
active: (_items$itemId$active = (_items$itemId2 = items[itemId]) === null || _items$itemId2 === void 0 ? void 0 : _items$itemId2.active) !== null && _items$itemId$active !== void 0 ? _items$itemId$active : false,
|
|
62
|
+
id: itemId,
|
|
63
|
+
index,
|
|
64
|
+
label: items[itemId].label,
|
|
65
|
+
onClickPinUnpin: (_items$itemId$onClick = (_items$itemId3 = items[itemId]) === null || _items$itemId3 === void 0 ? void 0 : _items$itemId3.onClickPinUnpin) !== null && _items$itemId$onClick !== void 0 ? _items$itemId$onClick : void 0,
|
|
66
|
+
onToggle: (_items$itemId4 = items[itemId]) === null || _items$itemId4 === void 0 ? void 0 : _items$itemId4.onToggle,
|
|
67
|
+
toggle,
|
|
68
|
+
type: "pinned"
|
|
69
|
+
}, itemId);
|
|
70
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
71
|
+
className: navigationPinnedItemRelativeDiv,
|
|
72
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
73
|
+
className: navigationPinnedItemDropableArea,
|
|
74
|
+
onDragLeave,
|
|
75
|
+
onDragOver,
|
|
76
|
+
onDrop: (event) => onDrop(event, index)
|
|
77
|
+
}), itemWrapper ? itemWrapper(itemElement, itemId) : itemElement]
|
|
78
|
+
}, itemId);
|
|
79
|
+
}
|
|
80
|
+
return null;
|
|
81
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
82
|
+
className: navigationPinnedItemContainer({ expanded }),
|
|
83
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
84
|
+
as: "p",
|
|
85
|
+
prominence: "weak",
|
|
86
|
+
sentiment: "neutral",
|
|
87
|
+
variant: "caption",
|
|
88
|
+
children: locales["navigation.pinned.item.group.empty"]
|
|
89
|
+
})
|
|
90
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
91
|
+
className: navigationPinnedItemRelativeDiv,
|
|
92
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
93
|
+
className: navigationPinnedItemDropableArea,
|
|
94
|
+
onDragLeave,
|
|
95
|
+
onDragOver,
|
|
96
|
+
onDrop: (event) => onDrop(event, pinnedItems.length)
|
|
97
|
+
})
|
|
98
|
+
})]
|
|
99
|
+
})
|
|
100
|
+
});
|
|
101
|
+
return null;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
//#endregion
|
|
105
|
+
export { PinnedItems };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/Navigation/components/Separator.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS,+CAAwD,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { navigationSeparator } from "./styles.css.js";
|
|
4
|
+
import { Separator as Separator$1 } from "../../../Separator/index.js";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/compositions/Navigation/components/Separator.tsx
|
|
8
|
+
const Separator = () => /* @__PURE__ */ jsx(Separator$1, { className: navigationSeparator });
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Separator };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
type ShowAllProp = {
|
|
3
|
+
showContent: ReactNode;
|
|
4
|
+
hideContent: ReactNode;
|
|
5
|
+
onShowHide?: (expanded: 'show' | 'hide') => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Add a tooltip to display on hover when the navigation is not-exanped
|
|
9
|
+
*/
|
|
10
|
+
tooltip?: string;
|
|
11
|
+
'data-testid'?: string;
|
|
12
|
+
style?: CSSProperties;
|
|
13
|
+
};
|
|
14
|
+
export declare const ShowHide: import("react").MemoExoticComponent<({ showContent, hideContent, onShowHide, tooltip, 'data-testid': dataTestId, style, }: ShowAllProp) => import("react/jsx-runtime").JSX.Element>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=ShowHide.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShowHide.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/Navigation/components/ShowHide.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOrD,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,SAAS,CAAA;IACtB,WAAW,EAAE,SAAS,CAAA;IACtB,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAA;IAChD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,QAAQ,qLAgEpB,CAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { Stack } from "../../../Stack/index.js";
|
|
4
|
+
import { useNavigation } from "../NavigationProvider.js";
|
|
5
|
+
import { navigationShowHideStack } from "./styles.css.js";
|
|
6
|
+
import { Button } from "../../../Button/index.js";
|
|
7
|
+
import { memo, useState } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
import { ArrowDownIcon } from "@ultraviolet/icons/ArrowDownIcon";
|
|
10
|
+
import { ArrowUpIcon } from "@ultraviolet/icons/ArrowUpIcon";
|
|
11
|
+
|
|
12
|
+
//#region src/components/compositions/Navigation/components/ShowHide.tsx
|
|
13
|
+
const ShowHide = memo(({ showContent, hideContent, onShowHide, tooltip, "data-testid": dataTestId, style }) => {
|
|
14
|
+
const context = useNavigation();
|
|
15
|
+
if (!context) throw new Error("Navigation.ShowAll can only be used inside a NavigationProvider.");
|
|
16
|
+
const { expanded, showHide } = context;
|
|
17
|
+
const [computedShown, setIsShown] = useState(showHide === "show");
|
|
18
|
+
const onClick = () => {
|
|
19
|
+
setIsShown(!computedShown);
|
|
20
|
+
onShowHide === null || onShowHide === void 0 || onShowHide(computedShown ? "hide" : "show");
|
|
21
|
+
};
|
|
22
|
+
if (expanded) return /* @__PURE__ */ jsx(Stack, {
|
|
23
|
+
className: navigationShowHideStack,
|
|
24
|
+
justifyContent: "flex-end",
|
|
25
|
+
style,
|
|
26
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
27
|
+
"data-testid": dataTestId,
|
|
28
|
+
onClick,
|
|
29
|
+
sentiment: "primary",
|
|
30
|
+
size: "small",
|
|
31
|
+
style,
|
|
32
|
+
variant: "ghost",
|
|
33
|
+
children: computedShown ? hideContent : showContent
|
|
34
|
+
})
|
|
35
|
+
});
|
|
36
|
+
return /* @__PURE__ */ jsx(Stack, {
|
|
37
|
+
alignItems: "center",
|
|
38
|
+
className: navigationShowHideStack,
|
|
39
|
+
justifyContent: "flex-end",
|
|
40
|
+
style,
|
|
41
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
42
|
+
"data-testid": dataTestId,
|
|
43
|
+
onClick,
|
|
44
|
+
sentiment: "primary",
|
|
45
|
+
size: "small",
|
|
46
|
+
tooltip,
|
|
47
|
+
variant: "ghost",
|
|
48
|
+
children: computedShown ? /* @__PURE__ */ jsx(ArrowUpIcon, {}) : /* @__PURE__ */ jsx(ArrowDownIcon, {})
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
//#endregion
|
|
54
|
+
export { ShowHide };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export declare const navigationItemMenuContainer: string;
|
|
2
|
+
export declare const navigationItemRelative: string;
|
|
3
|
+
export declare const navigationItemPadded: string;
|
|
4
|
+
export declare const navigationItemPinIcon: Record<"active" | "inactive", string>;
|
|
5
|
+
export declare const navigationItemMenu: string;
|
|
6
|
+
export declare const navigationItemMenuPinned: string;
|
|
7
|
+
export declare const navigationItemContainerBase: string;
|
|
8
|
+
export declare const navigationItemContainer: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
9
|
+
disabled: {
|
|
10
|
+
true: {
|
|
11
|
+
backgroundColor: "unset";
|
|
12
|
+
cursor: "not-allowed";
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
hasActive: {
|
|
16
|
+
true: {
|
|
17
|
+
backgroundColor: `var(--${string})`;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
isActive: {
|
|
21
|
+
true: {
|
|
22
|
+
backgroundColor: `var(--${string})`;
|
|
23
|
+
selectors: {
|
|
24
|
+
'&:hover': {
|
|
25
|
+
backgroundColor: `var(--${string})`;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
noExpand: {
|
|
31
|
+
false: {
|
|
32
|
+
cursor: "pointer";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
subLabel: {
|
|
36
|
+
true: {
|
|
37
|
+
padding: `var(--${string}) var(--${string})`;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
}>;
|
|
41
|
+
export declare const navigationItemContainerAnimated: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
42
|
+
animated: {
|
|
43
|
+
true: {};
|
|
44
|
+
};
|
|
45
|
+
animation: {
|
|
46
|
+
collapse: {};
|
|
47
|
+
expand: {};
|
|
48
|
+
};
|
|
49
|
+
}>;
|
|
50
|
+
export declare const navigationItemShowDraggable: string;
|
|
51
|
+
export declare const navigationItemShowPinButton: string;
|
|
52
|
+
export declare const navigationItemWeakText: string;
|
|
53
|
+
export declare const navigationItemVariants: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
54
|
+
showDraggableIcon: {
|
|
55
|
+
true: string;
|
|
56
|
+
};
|
|
57
|
+
showPinIcon: {
|
|
58
|
+
true: string;
|
|
59
|
+
};
|
|
60
|
+
shouldHaveWeakText: {
|
|
61
|
+
true: string;
|
|
62
|
+
};
|
|
63
|
+
}>;
|
|
64
|
+
export declare const navigationItemDragIcon: string;
|
|
65
|
+
export declare const navigationItemWrapText: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
66
|
+
disabled: {
|
|
67
|
+
true: {
|
|
68
|
+
color: `var(--${string})`;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
weak: {
|
|
72
|
+
true: {
|
|
73
|
+
color: `var(--${string})`;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
}>;
|
|
77
|
+
export declare const navigationItemBadge: string;
|
|
78
|
+
export declare const navigationItemPinnedButton: string;
|
|
79
|
+
export declare const navigationItemAnimatedIcon: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
80
|
+
animated: {
|
|
81
|
+
true: {};
|
|
82
|
+
};
|
|
83
|
+
animation: {
|
|
84
|
+
collapse: {};
|
|
85
|
+
expand: {};
|
|
86
|
+
};
|
|
87
|
+
}>;
|
|
88
|
+
export declare const navigationItemMenuStack: string;
|
|
89
|
+
export declare const navigationItemStackIcon: string;
|
|
90
|
+
export declare const navigationItemCategoryIcon: string;
|
|
91
|
+
export declare const navigationItemPaddingStack: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
92
|
+
hide: {
|
|
93
|
+
true: {
|
|
94
|
+
display: "none";
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
}>;
|
|
98
|
+
//# sourceMappingURL=items.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"items.css.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/Navigation/components/items.css.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,2BAA2B,QAAwB,CAAA;AAEhE,eAAO,MAAM,sBAAsB,QAAkC,CAAA;AAErE,eAAO,MAAM,oBAAoB,QAAyC,CAAA;AAW1E,eAAO,MAAM,qBAAqB,uCAiBhC,CAAA;AAEF,eAAO,MAAM,kBAAkB,QAE7B,CAAA;AAEF,eAAO,MAAM,wBAAwB,QAAY,CAAA;AAEjD,eAAO,MAAM,2BAA2B,QAUtC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+ElC,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;EAwB1C,CAAA;AAEF,eAAO,MAAM,2BAA2B,QAAY,CAAA;AACpD,eAAO,MAAM,2BAA2B,QAAY,CAAA;AACpD,eAAO,MAAM,sBAAsB,QAAY,CAAA;AAE/C,eAAO,MAAM,sBAAsB;;;;;;;;;;EAYjC,CAAA;AAEF,eAAO,MAAM,sBAAsB,QAUjC,CAAA;AACF,eAAO,MAAM,sBAAsB;;;;;;;;;;;EA6BjC,CAAA;AAEF,eAAO,MAAM,mBAAmB,QAgB9B,CAAA;AAEF,eAAO,MAAM,0BAA0B,QA2BrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;EAwBrC,CAAA;AAEF,eAAO,MAAM,uBAAuB,QAIlC,CAAA;AAEF,eAAO,MAAM,uBAAuB,QAElC,CAAA;AAEF,eAAO,MAAM,0BAA0B,QAErC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;EAWrC,CAAA"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
6
|
+
|
|
7
|
+
//#region src/components/compositions/Navigation/components/items.css.ts
|
|
8
|
+
var navigationItemMenuContainer = "uv_5h81qo0";
|
|
9
|
+
var navigationItemRelative = "uv_5h81qo1";
|
|
10
|
+
var navigationItemPadded = "uv_5h81qo2";
|
|
11
|
+
var navigationItemPinIcon = {
|
|
12
|
+
active: "uv_5h81qo4 uv_5h81qo3",
|
|
13
|
+
inactive: "uv_5h81qo5 uv_5h81qo3"
|
|
14
|
+
};
|
|
15
|
+
var navigationItemMenu = "uv_5h81qo6";
|
|
16
|
+
var navigationItemMenuPinned = "uv_5h81qo7";
|
|
17
|
+
var navigationItemContainer = createRuntimeFn({
|
|
18
|
+
defaultClassName: "uv_5h81qo9 uv_5h81qo8",
|
|
19
|
+
variantClassNames: {
|
|
20
|
+
disabled: { true: "uv_5h81qoa" },
|
|
21
|
+
hasActive: { true: "uv_5h81qob" },
|
|
22
|
+
isActive: { true: "uv_5h81qoc" },
|
|
23
|
+
noExpand: { false: "uv_5h81qod" },
|
|
24
|
+
subLabel: { true: "uv_5h81qoe" }
|
|
25
|
+
},
|
|
26
|
+
defaultVariants: {
|
|
27
|
+
disabled: false,
|
|
28
|
+
hasActive: false,
|
|
29
|
+
isActive: false,
|
|
30
|
+
noExpand: false,
|
|
31
|
+
subLabel: false
|
|
32
|
+
},
|
|
33
|
+
compoundVariants: [
|
|
34
|
+
[{
|
|
35
|
+
disabled: false,
|
|
36
|
+
isActive: false,
|
|
37
|
+
noExpand: false
|
|
38
|
+
}, "uv_5h81qof"],
|
|
39
|
+
[{
|
|
40
|
+
disabled: false,
|
|
41
|
+
hasActive: true,
|
|
42
|
+
isActive: false,
|
|
43
|
+
noExpand: false
|
|
44
|
+
}, "uv_5h81qog"],
|
|
45
|
+
[{
|
|
46
|
+
disabled: false,
|
|
47
|
+
isActive: false,
|
|
48
|
+
noExpand: false
|
|
49
|
+
}, "uv_5h81qoh"]
|
|
50
|
+
]
|
|
51
|
+
});
|
|
52
|
+
var navigationItemContainerAnimated = createRuntimeFn({
|
|
53
|
+
defaultClassName: "uv_5h81qoi",
|
|
54
|
+
variantClassNames: {
|
|
55
|
+
animated: { true: "uv_5h81qoj" },
|
|
56
|
+
animation: {
|
|
57
|
+
collapse: "uv_5h81qok",
|
|
58
|
+
expand: "uv_5h81qol"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
defaultVariants: {},
|
|
62
|
+
compoundVariants: [[{
|
|
63
|
+
animated: true,
|
|
64
|
+
animation: "collapse"
|
|
65
|
+
}, "uv_5h81qom"], [{
|
|
66
|
+
animated: true,
|
|
67
|
+
animation: "expand"
|
|
68
|
+
}, "uv_5h81qon"]]
|
|
69
|
+
});
|
|
70
|
+
var navigationItemVariants = createRuntimeFn({
|
|
71
|
+
defaultClassName: "uv_5h81qor",
|
|
72
|
+
variantClassNames: {
|
|
73
|
+
showDraggableIcon: { true: "uv_5h81qos uv_5h81qoo" },
|
|
74
|
+
showPinIcon: { true: "uv_5h81qot uv_5h81qop" },
|
|
75
|
+
shouldHaveWeakText: { true: "uv_5h81qou uv_5h81qoq" }
|
|
76
|
+
},
|
|
77
|
+
defaultVariants: {},
|
|
78
|
+
compoundVariants: []
|
|
79
|
+
});
|
|
80
|
+
var navigationItemDragIcon = "uv_5h81qov";
|
|
81
|
+
var navigationItemWrapText = createRuntimeFn({
|
|
82
|
+
defaultClassName: "uv_5h81qow",
|
|
83
|
+
variantClassNames: {
|
|
84
|
+
disabled: { true: "uv_5h81qox" },
|
|
85
|
+
weak: { true: "uv_5h81qoy" }
|
|
86
|
+
},
|
|
87
|
+
defaultVariants: {
|
|
88
|
+
disabled: false,
|
|
89
|
+
weak: false
|
|
90
|
+
},
|
|
91
|
+
compoundVariants: []
|
|
92
|
+
});
|
|
93
|
+
var navigationItemBadge = "uv_5h81qoz";
|
|
94
|
+
var navigationItemPinnedButton = "uv_5h81qo10";
|
|
95
|
+
var navigationItemAnimatedIcon = createRuntimeFn({
|
|
96
|
+
defaultClassName: "uv_5h81qo11",
|
|
97
|
+
variantClassNames: {
|
|
98
|
+
animated: { true: "uv_5h81qo12" },
|
|
99
|
+
animation: {
|
|
100
|
+
collapse: "uv_5h81qo13",
|
|
101
|
+
expand: "uv_5h81qo14"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
defaultVariants: {},
|
|
105
|
+
compoundVariants: [[{
|
|
106
|
+
animated: true,
|
|
107
|
+
animation: "collapse"
|
|
108
|
+
}, "uv_5h81qo15"], [{
|
|
109
|
+
animated: true,
|
|
110
|
+
animation: "expand"
|
|
111
|
+
}, "uv_5h81qo16"]]
|
|
112
|
+
});
|
|
113
|
+
var navigationItemMenuStack = "uv_5h81qo17";
|
|
114
|
+
var navigationItemStackIcon = "uv_5h81qo18";
|
|
115
|
+
var navigationItemCategoryIcon = "uv_5h81qo19";
|
|
116
|
+
var navigationItemPaddingStack = createRuntimeFn({
|
|
117
|
+
defaultClassName: "uv_5h81qo1a",
|
|
118
|
+
variantClassNames: { hide: { true: "uv_5h81qo1b" } },
|
|
119
|
+
defaultVariants: {},
|
|
120
|
+
compoundVariants: []
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
//#endregion
|
|
124
|
+
export { navigationItemAnimatedIcon, navigationItemBadge, navigationItemCategoryIcon, navigationItemContainer, navigationItemContainerAnimated, navigationItemDragIcon, navigationItemMenu, navigationItemMenuContainer, navigationItemMenuPinned, navigationItemMenuStack, navigationItemPadded, navigationItemPaddingStack, navigationItemPinIcon, navigationItemPinnedButton, navigationItemRelative, navigationItemStackIcon, navigationItemVariants, navigationItemWrapText };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const navigationGroupText: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
2
|
+
animation: {
|
|
3
|
+
collapse: {
|
|
4
|
+
animation: `${string} 250ms ease-in-out reverse`;
|
|
5
|
+
};
|
|
6
|
+
expand: {
|
|
7
|
+
animation: `${string} 250ms ease-in-out`;
|
|
8
|
+
};
|
|
9
|
+
false: {};
|
|
10
|
+
};
|
|
11
|
+
}>;
|
|
12
|
+
export declare const navigationGroupStack: string;
|
|
13
|
+
export declare const navigationPinnedItemDropableArea: string;
|
|
14
|
+
export declare const navigationPinnedItemRelativeDiv: string;
|
|
15
|
+
export declare const navigationPinnedItemContainer: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
16
|
+
expanded: {
|
|
17
|
+
true: {
|
|
18
|
+
marginLeft: `var(--${string})`;
|
|
19
|
+
paddingLeft: `var(--${string})`;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}>;
|
|
23
|
+
export declare const navigationSeparator: string;
|
|
24
|
+
export declare const navigationShowHideStack: string;
|
|
25
|
+
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/Navigation/components/styles.css.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,mBAAmB;;;;;;;;;;EAkB9B,CAAA;AAEF,eAAO,MAAM,oBAAoB,QAAwC,CAAA;AAEzE,eAAO,MAAM,gCAAgC,QAsB3C,CAAA;AAEF,eAAO,MAAM,+BAA+B,QAE1C,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;;;EAYxC,CAAA;AAEF,eAAO,MAAM,mBAAmB,QAG9B,CAAA;AAEF,eAAO,MAAM,uBAAuB,QAElC,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
4
|
+
|
|
5
|
+
//#region src/components/compositions/Navigation/components/styles.css.ts
|
|
6
|
+
var navigationGroupText = createRuntimeFn({
|
|
7
|
+
defaultClassName: "uv_1kj9apl0",
|
|
8
|
+
variantClassNames: { animation: {
|
|
9
|
+
collapse: "uv_1kj9apl1",
|
|
10
|
+
expand: "uv_1kj9apl2",
|
|
11
|
+
false: "uv_1kj9apl3"
|
|
12
|
+
} },
|
|
13
|
+
defaultVariants: {},
|
|
14
|
+
compoundVariants: []
|
|
15
|
+
});
|
|
16
|
+
var navigationGroupStack = "uv_1kj9apl4";
|
|
17
|
+
var navigationPinnedItemDropableArea = "uv_1kj9apl5";
|
|
18
|
+
var navigationPinnedItemRelativeDiv = "uv_1kj9apl6";
|
|
19
|
+
var navigationPinnedItemContainer = createRuntimeFn({
|
|
20
|
+
defaultClassName: "uv_1kj9apl7",
|
|
21
|
+
variantClassNames: { expanded: { true: "uv_1kj9apl8" } },
|
|
22
|
+
defaultVariants: {},
|
|
23
|
+
compoundVariants: []
|
|
24
|
+
});
|
|
25
|
+
var navigationSeparator = "uv_1kj9apl9";
|
|
26
|
+
var navigationShowHideStack = "uv_1kj9apla";
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
export { navigationGroupStack, navigationGroupText, navigationPinnedItemContainer, navigationPinnedItemDropableArea, navigationPinnedItemRelativeDiv, navigationSeparator, navigationShowHideStack };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const NAVIGATION_MIN_WIDTH = 220;
|
|
2
|
+
export declare const NAVIGATION_WIDTH = 280;
|
|
3
|
+
export declare const NAVIGATION_COLLASPED_WIDTH = 67;
|
|
4
|
+
export declare const NAVIGATION_MAX_WIDTH = 320;
|
|
5
|
+
/**
|
|
6
|
+
* ANIMATIONS
|
|
7
|
+
* collapse and expand animation duration of the whole nav in ms
|
|
8
|
+
*/
|
|
9
|
+
export declare const ANIMATION_DURATION = 250;
|
|
10
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/Navigation/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,MAAM,CAAA;AACvC,eAAO,MAAM,gBAAgB,MAAM,CAAA;AACnC,eAAO,MAAM,0BAA0B,KAAK,CAAA;AAC5C,eAAO,MAAM,oBAAoB,MAAM,CAAA;AAEvC;;;GAGG;AACH,eAAO,MAAM,kBAAkB,MAAM,CAAA"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { NavigationProvider, useNavigation } from './NavigationProvider';
|
|
2
|
+
import type { NavigationProps } from './types';
|
|
3
|
+
export declare function Navigation({ 'data-testid': dataTestId, children, className, id, logo, onToggleExpand, onWidthResize, style }: NavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare namespace Navigation {
|
|
5
|
+
var Group: ({ children, label, style, additionalData, }: {
|
|
6
|
+
children: import("react").ReactNode;
|
|
7
|
+
label: string;
|
|
8
|
+
style?: import("react").CSSProperties | undefined;
|
|
9
|
+
additionalData?: import("react").ReactNode;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
}
|
|
12
|
+
export declare namespace Navigation {
|
|
13
|
+
var Item: import("react").MemoExoticComponent<({ children, categoryIcon, label, labelDescription, subLabel, badgeText, badgeSentiment, href, target, rel, onToggle, onClickPinUnpin, toggle, active, noPinButton, type, as, disabled, noExpand, index, id, 'data-testid': dataTestId, style, alwaysVisible, }: {
|
|
14
|
+
children?: import("react").ReactNode;
|
|
15
|
+
categoryIcon?: import("react").ReactNode;
|
|
16
|
+
label: string;
|
|
17
|
+
labelDescription?: import("react").ReactNode;
|
|
18
|
+
id: string;
|
|
19
|
+
subLabel?: string | undefined;
|
|
20
|
+
badgeText?: string | undefined;
|
|
21
|
+
badgeSentiment?: "black" | "danger" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | "white" | undefined;
|
|
22
|
+
href?: string | undefined;
|
|
23
|
+
target?: string | undefined;
|
|
24
|
+
rel?: string | undefined;
|
|
25
|
+
onToggle?: ((toggle: boolean) => void) | undefined;
|
|
26
|
+
onClickPinUnpin?: ((parameters: import("./types").PinUnPinType) => void) | undefined;
|
|
27
|
+
toggle?: boolean | undefined;
|
|
28
|
+
active?: boolean | undefined;
|
|
29
|
+
noPinButton?: boolean | undefined;
|
|
30
|
+
type?: import("./types").ItemType | undefined;
|
|
31
|
+
index?: number | undefined;
|
|
32
|
+
as?: import("react").ElementType | undefined;
|
|
33
|
+
noExpand?: boolean | undefined;
|
|
34
|
+
alwaysVisible?: boolean | undefined;
|
|
35
|
+
disabled?: boolean | undefined;
|
|
36
|
+
'data-testid'?: string | undefined;
|
|
37
|
+
style?: import("react").CSSProperties | undefined;
|
|
38
|
+
}) => import("react/jsx-runtime").JSX.Element | null>;
|
|
39
|
+
}
|
|
40
|
+
export declare namespace Navigation {
|
|
41
|
+
var PinnedItems: ({ toggle, onReorder, onToggle, itemWrapper, style, }: {
|
|
42
|
+
toggle?: boolean | undefined;
|
|
43
|
+
onToggle?: ((toggle: boolean) => void) | undefined;
|
|
44
|
+
onReorder?: ((pinnedItems: string[]) => void) | undefined;
|
|
45
|
+
itemWrapper?: ((item: import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>, itemId: string) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
46
|
+
style?: import("react").CSSProperties | undefined;
|
|
47
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
48
|
+
}
|
|
49
|
+
export declare namespace Navigation {
|
|
50
|
+
var Separator: () => import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
}
|
|
52
|
+
export declare namespace Navigation {
|
|
53
|
+
var ShowHide: import("react").MemoExoticComponent<({ showContent, hideContent, onShowHide, tooltip, 'data-testid': dataTestId, style, }: {
|
|
54
|
+
showContent: import("react").ReactNode;
|
|
55
|
+
hideContent: import("react").ReactNode;
|
|
56
|
+
onShowHide?: ((expanded: "hide" | "show") => void) | undefined;
|
|
57
|
+
disabled?: boolean | undefined;
|
|
58
|
+
tooltip?: string | undefined;
|
|
59
|
+
'data-testid'?: string | undefined;
|
|
60
|
+
style?: import("react").CSSProperties | undefined;
|
|
61
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
62
|
+
}
|
|
63
|
+
export { NavigationProvider, useNavigation };
|
|
64
|
+
export type { NavigationProps };
|
|
65
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/Navigation/index.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;mCAOnB,EACzB,aAAa,EAAE,UAAU,EACzB,QAAQ,EACR,SAAS,EACT,EAAE,EACF,IAAI,EACJ,cAAc,EACd,aAAa,EACb,KAAK,EACN,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBlB,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,CAAA;AAC5C,YAAY,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { NavigationProvider, useNavigation } from "./NavigationProvider.js";
|
|
4
|
+
import { Group } from "./components/Group.js";
|
|
5
|
+
import { Item } from "./components/Item.js";
|
|
6
|
+
import { PinnedItems } from "./components/PinnedItems.js";
|
|
7
|
+
import { Separator } from "./components/Separator.js";
|
|
8
|
+
import { ShowHide } from "./components/ShowHide.js";
|
|
9
|
+
import { NavigationContent } from "./NavigationContent.js";
|
|
10
|
+
import { jsx } from "react/jsx-runtime";
|
|
11
|
+
|
|
12
|
+
//#region src/components/compositions/Navigation/index.tsx
|
|
13
|
+
/**
|
|
14
|
+
* Navigation is a component that allows you to create a sidebar navigation.
|
|
15
|
+
* You can wrap your navigation items like `<Navigation.Item>` with your router
|
|
16
|
+
* to make it work in your application.
|
|
17
|
+
*/
|
|
18
|
+
const Navigation = ({ "data-testid": dataTestId, children, className, id, logo, onToggleExpand, onWidthResize, style }) => /* @__PURE__ */ jsx(NavigationContent, {
|
|
19
|
+
className,
|
|
20
|
+
"data-testid": dataTestId,
|
|
21
|
+
id,
|
|
22
|
+
logo,
|
|
23
|
+
onToggleExpand,
|
|
24
|
+
onWidthResize,
|
|
25
|
+
style,
|
|
26
|
+
children
|
|
27
|
+
});
|
|
28
|
+
Navigation.Group = Group;
|
|
29
|
+
Navigation.Item = Item;
|
|
30
|
+
Navigation.PinnedItems = PinnedItems;
|
|
31
|
+
Navigation.Separator = Separator;
|
|
32
|
+
Navigation.ShowHide = ShowHide;
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
export { Navigation, NavigationProvider, useNavigation };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
readonly 'navigation.collapse.button': "Collapse sidebar";
|
|
3
|
+
readonly 'navigation.expand.button': "Expand sidebar";
|
|
4
|
+
readonly 'navigation.pin.limit': "You cannot pin more products";
|
|
5
|
+
readonly 'navigation.pin.tooltip': "Pin product";
|
|
6
|
+
readonly 'navigation.pinned.item.group.empty': "You have no pinned items.";
|
|
7
|
+
readonly 'navigation.pinned.item.group.label': "Pinned items";
|
|
8
|
+
readonly 'navigation.unpin.tooltip': "Unpin product";
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=en.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/Navigation/locales/en.ts"],"names":[],"mappings":";;;;;;;;;AAAA,wBAQU"}
|