@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,226 @@
|
|
|
1
|
+
import type { ComponentProps, CSSProperties, Dispatch, JSX, ReactNode, SetStateAction } from 'react';
|
|
2
|
+
import type { Alert } from '../../Alert';
|
|
3
|
+
import type { Text } from '../../Text';
|
|
4
|
+
import type EstimateCostLocales from './locales/en';
|
|
5
|
+
export type LocalesType = Record<keyof typeof EstimateCostLocales, string>;
|
|
6
|
+
export type EstimateCostProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Text to display into an alert on the top of the EstimateCost component.
|
|
9
|
+
*/
|
|
10
|
+
alert?: ReactNode;
|
|
11
|
+
alertTitle?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Type of the alert defined by the Scaleway UI Alert component.
|
|
14
|
+
*/
|
|
15
|
+
alertVariant?: ComponentProps<typeof Alert>['sentiment'];
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Individual fees to display at the bottom of the EstimateCost component.
|
|
19
|
+
*/
|
|
20
|
+
commitmentFees?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Content to display into the fees part, it can be any component but in order to have a consistent design, it is recommended to use `<EstimateCost.Regular>` and `<EstimateCost.Strong>` components.
|
|
23
|
+
*/
|
|
24
|
+
commitmentFeesContent?: ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* When set to true, only the estimated final cost is displayed
|
|
27
|
+
*/
|
|
28
|
+
compact?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* By default, a description exists but if you need you can customize it with this prop.
|
|
31
|
+
*/
|
|
32
|
+
description?: ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Hide the floating estimate cost overlay shown in the bottom of the page.
|
|
35
|
+
*/
|
|
36
|
+
hideOverlay?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Disable left button on the overlay.
|
|
39
|
+
*/
|
|
40
|
+
disableOverlayLeft?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Disable right button (submit) on the overlay.
|
|
43
|
+
*/
|
|
44
|
+
disableOverlayRight?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* This is a global discount for all estimate cost, all sub items will be impacted by this discount.
|
|
47
|
+
* The discount is a percentage, so 0.1 means 10% discount. Discount = 1 means 100% so it means free.
|
|
48
|
+
* This is usually associate with beta products and prop `isBeta`.
|
|
49
|
+
*/
|
|
50
|
+
discount?: number;
|
|
51
|
+
/**
|
|
52
|
+
* The default time unit to select.
|
|
53
|
+
*/
|
|
54
|
+
defaultTimeUnit?: Units;
|
|
55
|
+
/**
|
|
56
|
+
* List of time unit the price can be calculated with. Can only be an array of `seconds`, `minutes`, `hours`, `days` or `months`.
|
|
57
|
+
*/
|
|
58
|
+
timeUnits?: Units[];
|
|
59
|
+
/**
|
|
60
|
+
* Hide the selectable time unit on the top of the component.
|
|
61
|
+
*/
|
|
62
|
+
hideTimeUnit?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Hide the total price at the bottom of the component.
|
|
65
|
+
*/
|
|
66
|
+
hideTotal?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Hide the hourly price in total section at the bottom of the component.
|
|
69
|
+
*/
|
|
70
|
+
hideHourlyPriceOnTotal?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Show a badge beta on the total price with how much discount is applied.
|
|
73
|
+
*/
|
|
74
|
+
isBeta?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* It will display another individual line at the bottom of the component with a monthly price. It can be used when you display hourly price, but you have one or many items that are billed monthly.
|
|
77
|
+
*/
|
|
78
|
+
monthlyFees?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Content to display into monthly fees part, it can be any component but in order to have a consistent design, it is recommended to use `<EstimateCost.Regular>` and `<EstimateCost.Strong>` components.
|
|
81
|
+
*/
|
|
82
|
+
monthlyFeesContent?: ReactNode;
|
|
83
|
+
/**
|
|
84
|
+
* Label of the item, it describes what kind of fees is related to. (ex: "Installation fee")
|
|
85
|
+
*/
|
|
86
|
+
monthlyFeesLabel?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Content that will be shown on the left side of the overlay.
|
|
89
|
+
*/
|
|
90
|
+
OverlayLeft?: (props: {
|
|
91
|
+
children: ReactNode;
|
|
92
|
+
disabled?: boolean;
|
|
93
|
+
}) => JSX.Element;
|
|
94
|
+
/**
|
|
95
|
+
* Content that will be shown on the left side of the overlay.
|
|
96
|
+
*/
|
|
97
|
+
OverlayRight?: (props: {
|
|
98
|
+
children?: ReactNode;
|
|
99
|
+
disabled?: boolean;
|
|
100
|
+
}) => JSX.Element;
|
|
101
|
+
/**
|
|
102
|
+
* Time unit to use on the overlay. It can be different from estimate cost.
|
|
103
|
+
*/
|
|
104
|
+
overlayUnit?: Units;
|
|
105
|
+
/**
|
|
106
|
+
* Locales for the component. By default, it will use the english locales.
|
|
107
|
+
*/
|
|
108
|
+
locales?: LocalesType;
|
|
109
|
+
/**
|
|
110
|
+
* Defines the currency to be shown in the component.
|
|
111
|
+
* To find out all currencies checkout https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes section "Code" of the table.
|
|
112
|
+
*/
|
|
113
|
+
currency?: string;
|
|
114
|
+
style?: CSSProperties;
|
|
115
|
+
/**
|
|
116
|
+
* Defines the way we display numbers depending on locale (ex: 1,000.00 or 1 000,00).
|
|
117
|
+
* To understand better please read https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#locales
|
|
118
|
+
*/
|
|
119
|
+
numberLocales?: string;
|
|
120
|
+
overlayMargin?: string;
|
|
121
|
+
onTotalPriceChange?: ({ total, totalMax }: {
|
|
122
|
+
/**
|
|
123
|
+
* The total price of the estimate cost.
|
|
124
|
+
*/
|
|
125
|
+
total: number;
|
|
126
|
+
/**
|
|
127
|
+
* If the price has a range (ex: 10-20), this is the maximum value.
|
|
128
|
+
*/
|
|
129
|
+
totalMax?: number;
|
|
130
|
+
}) => void;
|
|
131
|
+
};
|
|
132
|
+
export type Units = 'seconds' | 'minutes' | 'hours' | 'days' | 'months';
|
|
133
|
+
export type Iteration = {
|
|
134
|
+
unit: Units;
|
|
135
|
+
value: number;
|
|
136
|
+
};
|
|
137
|
+
export type BareEstimateProduct = {
|
|
138
|
+
id: string;
|
|
139
|
+
};
|
|
140
|
+
export type EstimateProduct = BareEstimateProduct & {
|
|
141
|
+
amount: number;
|
|
142
|
+
price: number;
|
|
143
|
+
amountFree: number;
|
|
144
|
+
isVariant: boolean;
|
|
145
|
+
maxAmount: number;
|
|
146
|
+
noIteration: boolean;
|
|
147
|
+
longFractionDigits: boolean;
|
|
148
|
+
discount: number;
|
|
149
|
+
};
|
|
150
|
+
export type ChildrenComponentType = {
|
|
151
|
+
hideTotal: boolean;
|
|
152
|
+
ref?: (node?: Element | null) => void;
|
|
153
|
+
hideTimeUnit: boolean;
|
|
154
|
+
defaultTimeUnit: Units;
|
|
155
|
+
iteration: Iteration;
|
|
156
|
+
setIteration: Dispatch<SetStateAction<Iteration>>;
|
|
157
|
+
timeUnits: Units[];
|
|
158
|
+
children: ReactNode;
|
|
159
|
+
discount: number;
|
|
160
|
+
productsCallback: {
|
|
161
|
+
add: (newProduct: EstimateProduct) => void;
|
|
162
|
+
remove: ({ id }: BareEstimateProduct) => void;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
export type ExtraProps = {
|
|
166
|
+
isLastElement?: boolean;
|
|
167
|
+
productsCallback?: {
|
|
168
|
+
add: (product: EstimateProduct) => void;
|
|
169
|
+
remove: (product: BareEstimateProduct) => void;
|
|
170
|
+
};
|
|
171
|
+
iteration?: Iteration;
|
|
172
|
+
discount?: number;
|
|
173
|
+
};
|
|
174
|
+
export type TotalContentProps = {
|
|
175
|
+
isBeta: boolean;
|
|
176
|
+
discount: number;
|
|
177
|
+
totalValue: string;
|
|
178
|
+
totalPrice: {
|
|
179
|
+
hourly: number;
|
|
180
|
+
maxHourly: number;
|
|
181
|
+
maxOverlayHourly: number;
|
|
182
|
+
maxTotal: number;
|
|
183
|
+
overlayHourly: number;
|
|
184
|
+
total: number;
|
|
185
|
+
};
|
|
186
|
+
totalMaxValue: string;
|
|
187
|
+
hideHourlyPriceOnTotal: boolean;
|
|
188
|
+
isLongFractionDigits: boolean;
|
|
189
|
+
};
|
|
190
|
+
export type ItemLeftSideProps = {
|
|
191
|
+
label: ReactNode;
|
|
192
|
+
tooltipInfo?: string;
|
|
193
|
+
subLabel: string;
|
|
194
|
+
discount: number;
|
|
195
|
+
discountText?: string;
|
|
196
|
+
notice?: string;
|
|
197
|
+
isDefined: boolean;
|
|
198
|
+
animated: boolean;
|
|
199
|
+
children: ReactNode;
|
|
200
|
+
amount: number;
|
|
201
|
+
itemCallback: (localAmount: number, localIsVariant: boolean) => void;
|
|
202
|
+
maxAmount: number;
|
|
203
|
+
unit: string;
|
|
204
|
+
textNotDefined?: string;
|
|
205
|
+
labelTextVariant?: ComponentProps<typeof Text>['variant'];
|
|
206
|
+
labelTextProminence?: ComponentProps<typeof Text>['prominence'];
|
|
207
|
+
};
|
|
208
|
+
export type ItemPriceProps = {
|
|
209
|
+
computedItemPrice: number;
|
|
210
|
+
computedMaxItemPrice: number;
|
|
211
|
+
strikeThrough?: boolean;
|
|
212
|
+
noIterationText?: string;
|
|
213
|
+
priceText: ReactNode;
|
|
214
|
+
formatMaximumFractionDigits?: number;
|
|
215
|
+
amount: number;
|
|
216
|
+
amountFree: number;
|
|
217
|
+
maxAmount: number;
|
|
218
|
+
noIteration: boolean;
|
|
219
|
+
discount: number;
|
|
220
|
+
price: number;
|
|
221
|
+
longFractionDigits: boolean;
|
|
222
|
+
maximumFractionDigitsLong: Record<Units, number>;
|
|
223
|
+
maximumFractionDigits: Record<Units, number>;
|
|
224
|
+
unit: string;
|
|
225
|
+
};
|
|
226
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/EstimateCost/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as ProductIcon from '@ultraviolet/icons/product';
|
|
2
|
+
import type { CSSProperties } from 'react';
|
|
3
|
+
import type { PascalToCamelCaseWithoutSuffix } from '../../../types';
|
|
4
|
+
type FAQProps = {
|
|
5
|
+
description: string;
|
|
6
|
+
productIconName?: PascalToCamelCaseWithoutSuffix<keyof typeof ProductIcon, 'ProductIcon'>;
|
|
7
|
+
illustrationText?: number | string;
|
|
8
|
+
notes?: string;
|
|
9
|
+
title: string;
|
|
10
|
+
style?: CSSProperties;
|
|
11
|
+
};
|
|
12
|
+
export declare const FAQ: ({ productIconName, illustrationText, title, description, notes, style, }: FAQProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/FAQ/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,WAAW,MAAM,4BAA4B,CAAA;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAA;AAOpE,KAAK,QAAQ,GAAG;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,8BAA8B,CAC9C,MAAM,OAAO,WAAW,EACxB,aAAa,CACd,CAAA;IACD,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,GAAG,iIA0Cf,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { Stack } from "../../Stack/index.js";
|
|
4
|
+
import { Text } from "../../Text/index.js";
|
|
5
|
+
import { Bullet } from "../../Bullet/index.js";
|
|
6
|
+
import { Card } from "../../Card/index.js";
|
|
7
|
+
import { faq } from "./styles.css.js";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import * as ProductIcon from "@ultraviolet/icons/product";
|
|
10
|
+
|
|
11
|
+
//#region src/components/compositions/FAQ/index.tsx
|
|
12
|
+
const FAQ = ({ productIconName, illustrationText, title, description, notes, style }) => {
|
|
13
|
+
const ProductIconUsed = productIconName ? ProductIcon[`${productIconName.charAt(0).toUpperCase() + productIconName.slice(1)}ProductIcon`] : null;
|
|
14
|
+
return /* @__PURE__ */ jsx(Card, {
|
|
15
|
+
className: faq,
|
|
16
|
+
style,
|
|
17
|
+
children: /* @__PURE__ */ jsxs(Stack, {
|
|
18
|
+
direction: "row",
|
|
19
|
+
gap: 2,
|
|
20
|
+
children: [/* @__PURE__ */ jsxs("div", { children: [!productIconName && illustrationText ? /* @__PURE__ */ jsx(Bullet, {
|
|
21
|
+
sentiment: "primary",
|
|
22
|
+
children: illustrationText.toString()
|
|
23
|
+
}) : null, ProductIconUsed ? /* @__PURE__ */ jsx(ProductIconUsed, { size: "xlarge" }) : null] }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(Text, {
|
|
24
|
+
as: "p",
|
|
25
|
+
prominence: "strong",
|
|
26
|
+
variant: "bodyStronger",
|
|
27
|
+
children: title
|
|
28
|
+
}), /* @__PURE__ */ jsxs(Text, {
|
|
29
|
+
as: "div",
|
|
30
|
+
variant: "bodySmall",
|
|
31
|
+
children: [description, notes ? /* @__PURE__ */ jsx(Text, {
|
|
32
|
+
as: "small",
|
|
33
|
+
italic: true,
|
|
34
|
+
variant: "caption",
|
|
35
|
+
children: notes
|
|
36
|
+
}) : null]
|
|
37
|
+
})] })]
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
43
|
+
export { FAQ };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/FAQ/styles.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG,QAGd,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/InfoTable/Context.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;EAAwC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
type CellProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
multiline?: boolean;
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
};
|
|
8
|
+
export declare const InfoTableCell: ({ children, title, multiline, style, }: CellProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=Cell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/InfoTable/components/Cell.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKrD,KAAK,SAAS,GAAG;IACf,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,SAAS,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,aAAa,gGAoCzB,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { Stack } from "../../../Stack/index.js";
|
|
4
|
+
import { Text } from "../../../Text/index.js";
|
|
5
|
+
import { cellText, desc, infoTableCell, term } from "../styles.css.js";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/compositions/InfoTable/components/Cell.tsx
|
|
9
|
+
const InfoTableCell = ({ children, title, multiline = false, style }) => /* @__PURE__ */ jsxs(Stack, {
|
|
10
|
+
className: infoTableCell,
|
|
11
|
+
gap: "0.5",
|
|
12
|
+
minWidth: "0",
|
|
13
|
+
style,
|
|
14
|
+
width: "100%",
|
|
15
|
+
children: [/* @__PURE__ */ jsx("dt", {
|
|
16
|
+
className: term,
|
|
17
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
18
|
+
as: "div",
|
|
19
|
+
prominence: "weak",
|
|
20
|
+
sentiment: "neutral",
|
|
21
|
+
variant: "bodySmallStrong",
|
|
22
|
+
children: title
|
|
23
|
+
})
|
|
24
|
+
}), /* @__PURE__ */ jsx("dd", {
|
|
25
|
+
className: desc,
|
|
26
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
27
|
+
as: "div",
|
|
28
|
+
className: cellText,
|
|
29
|
+
oneLine: !multiline,
|
|
30
|
+
prominence: "default",
|
|
31
|
+
sentiment: "neutral",
|
|
32
|
+
variant: "body",
|
|
33
|
+
children
|
|
34
|
+
})
|
|
35
|
+
})]
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
export { InfoTableCell };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
type RowProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
templateColumns: string;
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
};
|
|
7
|
+
export declare const InfoTableRow: ({ children, templateColumns, style, }: RowProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=Row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/InfoTable/components/Row.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMrD,KAAK,QAAQ,GAAG;IACd,QAAQ,EAAE,SAAS,CAAA;IACnB,eAAe,EAAE,MAAM,CAAA;IACvB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,YAAY,8FAqBxB,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { Row } from "../../../Row/index.js";
|
|
5
|
+
import { InfoTableContext } from "../Context.js";
|
|
6
|
+
import { infoTableRow, rowWidth } from "../styles.css.js";
|
|
7
|
+
import { useContext } from "react";
|
|
8
|
+
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
|
|
11
|
+
//#region src/components/compositions/InfoTable/components/Row.tsx
|
|
12
|
+
const InfoTableRow = ({ children, templateColumns, style }) => {
|
|
13
|
+
const { width } = useContext(InfoTableContext);
|
|
14
|
+
return /* @__PURE__ */ jsx(Row, {
|
|
15
|
+
className: infoTableRow,
|
|
16
|
+
style: _objectSpread2(_objectSpread2({}, assignInlineVars({ [rowWidth]: width !== null && width !== void 0 ? width : "100%" })), style),
|
|
17
|
+
templateColumns,
|
|
18
|
+
children
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { InfoTableRow };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
type InfoTableProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
width?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
'data-testid'?: string;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
};
|
|
9
|
+
export declare function InfoTable({ children, width, className, style, 'data-testid': dataTestId }: InfoTableProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare namespace InfoTable {
|
|
11
|
+
var Row: ({ children, templateColumns, style, }: {
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
templateColumns: string;
|
|
14
|
+
style?: CSSProperties | undefined;
|
|
15
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace InfoTable {
|
|
18
|
+
var Cell: ({ children, title, multiline, style, }: {
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
title: ReactNode;
|
|
21
|
+
multiline?: boolean | undefined;
|
|
22
|
+
style?: CSSProperties | undefined;
|
|
23
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/InfoTable/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMrD,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;kCAMyB,EACxB,QAAQ,EACR,KAAK,EACL,SAAS,EACT,KAAK,EACL,aAAa,EAAE,UAAU,EAC1B,EAAE,cAAc"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { InfoTableContext } from "./Context.js";
|
|
4
|
+
import { dl } from "./styles.css.js";
|
|
5
|
+
import { InfoTableCell } from "./components/Cell.js";
|
|
6
|
+
import { InfoTableRow } from "./components/Row.js";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
import { cn } from "@ultraviolet/utils";
|
|
9
|
+
|
|
10
|
+
//#region src/components/compositions/InfoTable/index.tsx
|
|
11
|
+
/**
|
|
12
|
+
* Use this component to display offers.
|
|
13
|
+
* Create rows with `InfoTable.Row` and place cells within each row using `InfoTable.Cell`.
|
|
14
|
+
*/
|
|
15
|
+
const InfoTable = ({ children, width, className, style, "data-testid": dataTestId }) => /* @__PURE__ */ jsx(InfoTableContext.Provider, {
|
|
16
|
+
value: { width },
|
|
17
|
+
children: /* @__PURE__ */ jsx("dl", {
|
|
18
|
+
className: cn(className, dl),
|
|
19
|
+
"data-testid": dataTestId,
|
|
20
|
+
style,
|
|
21
|
+
children
|
|
22
|
+
})
|
|
23
|
+
});
|
|
24
|
+
InfoTable.Row = InfoTableRow;
|
|
25
|
+
InfoTable.Cell = InfoTableCell;
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { InfoTable };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const rowWidth: `var(--${string})`;
|
|
2
|
+
export declare const dl: string;
|
|
3
|
+
export declare const infoTableRow: string;
|
|
4
|
+
export declare const infoTableCell: string;
|
|
5
|
+
export declare const term: string;
|
|
6
|
+
export declare const desc: string;
|
|
7
|
+
export declare const cellText: string;
|
|
8
|
+
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/InfoTable/styles.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,oBAAc,CAAA;AAEnC,eAAO,MAAM,EAAE,QAQb,CAAA;AAEF,eAAO,MAAM,YAAY,QAavB,CAAA;AAEF,eAAO,MAAM,aAAa,QAMxB,CAAA;AAEF,eAAO,MAAM,IAAI,QAMf,CAAA;AAEF,eAAO,MAAM,IAAI,QAKf,CAAA;AAEF,eAAO,MAAM,QAAQ,QAInB,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
|
|
3
|
+
//#region src/components/compositions/InfoTable/styles.css.ts
|
|
4
|
+
var rowWidth = "var(--uv_dvjyo40)";
|
|
5
|
+
var dl = "uv_dvjyo41";
|
|
6
|
+
var infoTableRow = "uv_dvjyo42";
|
|
7
|
+
var infoTableCell = "uv_dvjyo43";
|
|
8
|
+
var term = "uv_dvjyo44";
|
|
9
|
+
var desc = "uv_dvjyo45";
|
|
10
|
+
var cellText = "uv_dvjyo46";
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { cellText, desc, dl, infoTableCell, infoTableRow, rowWidth, term };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
import type { NavigationProps } from './types';
|
|
3
|
+
type FooterProps = {
|
|
4
|
+
onToggleExpand: NavigationProps['onToggleExpand'];
|
|
5
|
+
contentRef: RefObject<HTMLDivElement | null>;
|
|
6
|
+
};
|
|
7
|
+
export declare const Footer: ({ onToggleExpand, contentRef }: FooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=Footer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/Navigation/Footer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMtC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,eAAe,CAAC,gBAAgB,CAAC,CAAA;IACjD,UAAU,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;CAC7C,CAAA;AAED,eAAO,MAAM,MAAM,0FAqFlB,CAAA"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { Tooltip } from "../../Tooltip/index.js";
|
|
4
|
+
import { useNavigation } from "./NavigationProvider.js";
|
|
5
|
+
import { Button } from "../../Button/index.js";
|
|
6
|
+
import { navigationStickyFooter } from "./styles.css.js";
|
|
7
|
+
import { useCallback, useLayoutEffect, useMemo, useState } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
import { ArrowLeftDoubleIcon } from "@ultraviolet/icons/ArrowLeftDoubleIcon";
|
|
10
|
+
import { ArrowRightDoubleIcon } from "@ultraviolet/icons/ArrowRightDoubleIcon";
|
|
11
|
+
|
|
12
|
+
//#region src/components/compositions/Navigation/Footer.tsx
|
|
13
|
+
const Footer = ({ onToggleExpand, contentRef }) => {
|
|
14
|
+
const { expanded, toggleExpand, locales, animation } = useNavigation();
|
|
15
|
+
const isScrollAtBottom = useCallback(() => {
|
|
16
|
+
if (contentRef.current) {
|
|
17
|
+
if (contentRef.current.scrollTop + contentRef.current.offsetHeight >= contentRef.current.scrollHeight) return false;
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
return true;
|
|
21
|
+
}, [contentRef]);
|
|
22
|
+
const [footerHasOverflowStyle, setFooterHasOverflowStyle] = useState(isScrollAtBottom());
|
|
23
|
+
useLayoutEffect(() => {
|
|
24
|
+
const currentContentRef = contentRef.current;
|
|
25
|
+
const scroll = () => {
|
|
26
|
+
const hasOverflow = isScrollAtBottom();
|
|
27
|
+
if (footerHasOverflowStyle !== hasOverflow) setFooterHasOverflowStyle(hasOverflow);
|
|
28
|
+
};
|
|
29
|
+
if (currentContentRef) currentContentRef.addEventListener("scroll", scroll);
|
|
30
|
+
return () => {
|
|
31
|
+
currentContentRef === null || currentContentRef === void 0 || currentContentRef.removeEventListener("scroll", scroll);
|
|
32
|
+
};
|
|
33
|
+
}, [
|
|
34
|
+
footerHasOverflowStyle,
|
|
35
|
+
isScrollAtBottom,
|
|
36
|
+
contentRef
|
|
37
|
+
]);
|
|
38
|
+
useLayoutEffect(() => {
|
|
39
|
+
setFooterHasOverflowStyle(isScrollAtBottom());
|
|
40
|
+
}, [isScrollAtBottom]);
|
|
41
|
+
const Icon = useMemo(() => expanded ? ArrowLeftDoubleIcon : ArrowRightDoubleIcon, [expanded]);
|
|
42
|
+
const label = useMemo(() => expanded ? locales["navigation.collapse.button"] : locales["navigation.expand.button"], [expanded, locales]);
|
|
43
|
+
return /* @__PURE__ */ jsx("div", {
|
|
44
|
+
className: navigationStickyFooter({ overflow: footerHasOverflowStyle }),
|
|
45
|
+
children: /* @__PURE__ */ jsx(Tooltip, {
|
|
46
|
+
disableAnimation: animation === false,
|
|
47
|
+
placement: "right",
|
|
48
|
+
text: label,
|
|
49
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
50
|
+
"aria-label": label,
|
|
51
|
+
onClick: () => {
|
|
52
|
+
toggleExpand();
|
|
53
|
+
onToggleExpand === null || onToggleExpand === void 0 || onToggleExpand(!expanded);
|
|
54
|
+
},
|
|
55
|
+
sentiment: "neutral",
|
|
56
|
+
size: "small",
|
|
57
|
+
variant: "ghost",
|
|
58
|
+
children: /* @__PURE__ */ jsx(Icon, {})
|
|
59
|
+
})
|
|
60
|
+
})
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
//#endregion
|
|
65
|
+
export { Footer };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { NavigationProps } from './types';
|
|
2
|
+
type HeaderProps = {
|
|
3
|
+
logo: NavigationProps['logo'];
|
|
4
|
+
};
|
|
5
|
+
export declare const Header: import("react").MemoExoticComponent<({ logo }: HeaderProps) => import("react/jsx-runtime").JSX.Element>;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/Navigation/Header.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,CAAA;CAC9B,CAAA;AAED,eAAO,MAAM,MAAM,yGAcjB,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { navigationHeader, navigationLogoContainer } from "./styles.css.js";
|
|
6
|
+
import { memo } from "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
|
|
9
|
+
//#region src/components/compositions/Navigation/Header.tsx
|
|
10
|
+
const Header = memo(({ logo }) => {
|
|
11
|
+
const { animation, expanded } = useNavigation();
|
|
12
|
+
return /* @__PURE__ */ jsx("div", {
|
|
13
|
+
className: navigationHeader,
|
|
14
|
+
children: /* @__PURE__ */ jsx(Stack, {
|
|
15
|
+
alignItems: "flex-start",
|
|
16
|
+
className: navigationLogoContainer,
|
|
17
|
+
justifyContent: expanded ? void 0 : "center",
|
|
18
|
+
children: typeof logo === "function" ? logo(animation ? false : expanded) : logo
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { Header };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { NavigationProps } from './types';
|
|
2
|
+
export declare const NavigationContent: ({ children, logo, onWidthResize, className, 'data-testid': dataTestId, id, onToggleExpand, }: NavigationProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=NavigationContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationContent.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/Navigation/NavigationContent.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAG9C,eAAO,MAAM,iBAAiB,4JA6I7B,CAAA"}
|