@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,5 @@
|
|
|
1
|
+
//#region src/components/compositions/CustomerSatisfaction/assets/5-5NB.svg
|
|
2
|
+
var _5_5NB_default = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2072%2072'%3e%3cg%20data-name='Calque%202'%3e%3cg%20data-name='Calque%201'%3e%3cpath%20fill='%23f0f0f0'%20fill-rule='evenodd'%20d='M36.08%200a77%2077%200%200%200-12.91%201.1C11.48%203.08%204%209.65%201.55%2021.43a69.7%2069.7%200%200%200-.24%2028.05c2.31%2012%209.57%2019.25%2021.61%2021.38a75%2075%200%200%200%2013%201.14%2077%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200%200-27.82c-2.31-12-9.54-18.91-21.58-21A75%2075%200%200%200%2036.08%200'/%3e%3cpath%20fill='%232b2b2b'%20d='M24.32%2028.58a1.08%201.08%200%200%201-1-1.12A5.3%205.3%200%200%200%2018.19%2022a5.3%205.3%200%200%200-5.09%205.46%201%201%200%201%201-2.09%200%207.46%207.46%200%200%201%207.18-7.7%207.45%207.45%200%200%201%207.17%207.7%201.08%201.08%200%200%201-1.04%201.12m26.62%200a1.09%201.09%200%200%201-1-1.12%205.1%205.1%200%201%200-10.17%200%201%201%200%201%201-2.09%200%207.46%207.46%200%200%201%207.18-7.7%207.46%207.46%200%200%201%207.14%207.7%201.08%201.08%200%200%201-1.06%201.12'/%3e%3cpath%20fill='%233b3b3b'%20fill-rule='evenodd'%20d='M70.66%2022.18c-2.31-12-9.54-18.91-21.58-21C48.46%201%2047.84%201%2047.22.85A39.73%2039.73%200%200%201%2062%2022c.28%201%205.22%2020.18-7%2034-10.87%2012.29-30.91%2015.38-48%206.17%203.73%204.53%209.06%207.47%2016%208.69A75%2075%200%200%200%2036%2072a77%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200-.05-27.82'%20opacity='.06'/%3e%3cpath%20fill='%23fff'%20d='M46%2032.9v5.47a21.22%2021.22%200%200%201-30%200V32.9a21.22%2021.22%200%200%200%2030%200'/%3e%3cpath%20fill='%238e8e8e'%20d='M34.82%2048.44a6.4%206.4%200%200%201%205.63%203.36%2015%2015%200%200%201-18.9%200A6.39%206.39%200%200%201%2031%2049.71a6.3%206.3%200%200%201%203.82-1.27'/%3e%3cpath%20fill='%23474747'%20d='M46%2038.37v1.78a15%2015%200%200%201-4.39%2010.61c-.37.37-.76.71-1.16%201a6.4%206.4%200%200%200-5.63-3.36A6.3%206.3%200%200%200%2031%2049.71a6.39%206.39%200%200%200-9.45%202.09A15%2015%200%200%201%2016%2040.15v-1.78a21.22%2021.22%200%200%200%2030%200'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
3
|
+
|
|
4
|
+
//#endregion
|
|
5
|
+
export { _5_5NB_default as default };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
declare const ratings: readonly [{
|
|
3
|
+
readonly imgNotSelected: string;
|
|
4
|
+
readonly imgSelected: string;
|
|
5
|
+
readonly value: 1;
|
|
6
|
+
}, {
|
|
7
|
+
readonly imgNotSelected: string;
|
|
8
|
+
readonly imgSelected: string;
|
|
9
|
+
readonly value: 2;
|
|
10
|
+
}, {
|
|
11
|
+
readonly imgNotSelected: string;
|
|
12
|
+
readonly imgSelected: string;
|
|
13
|
+
readonly value: 3;
|
|
14
|
+
}, {
|
|
15
|
+
readonly imgNotSelected: string;
|
|
16
|
+
readonly imgSelected: string;
|
|
17
|
+
readonly value: 4;
|
|
18
|
+
}, {
|
|
19
|
+
readonly imgNotSelected: string;
|
|
20
|
+
readonly imgSelected: string;
|
|
21
|
+
readonly value: 5;
|
|
22
|
+
}];
|
|
23
|
+
type Value = (typeof ratings)[number]['value'];
|
|
24
|
+
type CustomerSatisfactionProps = {
|
|
25
|
+
value: Value;
|
|
26
|
+
onChange: (rating: Value) => void;
|
|
27
|
+
'data-testid'?: string;
|
|
28
|
+
className?: string;
|
|
29
|
+
style?: CSSProperties;
|
|
30
|
+
};
|
|
31
|
+
export declare const CustomerSatisfaction: ({ value, onChange, 'data-testid': dataTestId, className, style, }: CustomerSatisfactionProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/CustomerSatisfaction/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAkB1C,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;EA0BH,CAAA;AAEV,KAAK,KAAK,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AAE9C,KAAK,yBAAyB,GAAG;IAC/B,KAAK,EAAE,KAAK,CAAA;IACZ,QAAQ,EAAE,CAAC,MAAM,EAAE,KAAK,KAAK,IAAI,CAAA;IACjC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,oBAAoB,2IA4DhC,CAAA"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { Stack } from "../../Stack/index.js";
|
|
4
|
+
import _1_5_default from "./assets/1-5.js";
|
|
5
|
+
import _1_5NB_default from "./assets/1-5NB.js";
|
|
6
|
+
import _2_5_default from "./assets/2-5.js";
|
|
7
|
+
import _2_5NB_default from "./assets/2-5NB.js";
|
|
8
|
+
import _3_5_default from "./assets/3-5.js";
|
|
9
|
+
import _3_5NB_default from "./assets/3-5NB.js";
|
|
10
|
+
import _4_5_default from "./assets/4-5.js";
|
|
11
|
+
import _4_5NB_default from "./assets/4-5NB.js";
|
|
12
|
+
import _5_5_default from "./assets/5-5.js";
|
|
13
|
+
import _5_5NB_default from "./assets/5-5NB.js";
|
|
14
|
+
import { customerSatisfactionButtonContainer, customerStatisfaction } from "./styles.css.js";
|
|
15
|
+
import { useMemo, useState } from "react";
|
|
16
|
+
import { jsx } from "react/jsx-runtime";
|
|
17
|
+
|
|
18
|
+
//#region src/components/compositions/CustomerSatisfaction/index.tsx
|
|
19
|
+
const ratings = [
|
|
20
|
+
{
|
|
21
|
+
imgNotSelected: _1_5NB_default,
|
|
22
|
+
imgSelected: _1_5_default,
|
|
23
|
+
value: 1
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
imgNotSelected: _2_5NB_default,
|
|
27
|
+
imgSelected: _2_5_default,
|
|
28
|
+
value: 2
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
imgNotSelected: _3_5NB_default,
|
|
32
|
+
imgSelected: _3_5_default,
|
|
33
|
+
value: 3
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
imgNotSelected: _4_5NB_default,
|
|
37
|
+
imgSelected: _4_5_default,
|
|
38
|
+
value: 4
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
imgNotSelected: _5_5NB_default,
|
|
42
|
+
imgSelected: _5_5_default,
|
|
43
|
+
value: 5
|
|
44
|
+
}
|
|
45
|
+
];
|
|
46
|
+
const CustomerSatisfaction = ({ value, onChange, "data-testid": dataTestId, className, style }) => {
|
|
47
|
+
const [hoveredValue, setHoveredValue] = useState(0);
|
|
48
|
+
const isHappy = useMemo(() => value > ratings.length / 2, [value]);
|
|
49
|
+
return /* @__PURE__ */ jsx(Stack, {
|
|
50
|
+
className,
|
|
51
|
+
"data-testid": dataTestId,
|
|
52
|
+
direction: "row",
|
|
53
|
+
justifyContent: "space-between",
|
|
54
|
+
style,
|
|
55
|
+
children: ratings.map((rating) => {
|
|
56
|
+
const isSelected = rating.value === value;
|
|
57
|
+
const isOverfly = rating.value <= hoveredValue;
|
|
58
|
+
const isScaled = rating.value === hoveredValue && isSelected;
|
|
59
|
+
return /* @__PURE__ */ jsx("button", {
|
|
60
|
+
className: customerSatisfactionButtonContainer,
|
|
61
|
+
onClick: () => {
|
|
62
|
+
onChange(rating.value);
|
|
63
|
+
},
|
|
64
|
+
onKeyDown: () => {},
|
|
65
|
+
onMouseEnter: () => {
|
|
66
|
+
setHoveredValue(rating.value);
|
|
67
|
+
},
|
|
68
|
+
onMouseLeave: () => {
|
|
69
|
+
setHoveredValue(0);
|
|
70
|
+
},
|
|
71
|
+
type: "button",
|
|
72
|
+
children: /* @__PURE__ */ jsx("img", {
|
|
73
|
+
alt: "rating",
|
|
74
|
+
className: customerStatisfaction({
|
|
75
|
+
animated: isSelected ? isHappy ? "happy" : "angry" : void 0,
|
|
76
|
+
isScaled
|
|
77
|
+
}),
|
|
78
|
+
"data-testid": `${dataTestId}-${rating.value}`,
|
|
79
|
+
height: "auto",
|
|
80
|
+
src: isSelected || isOverfly || rating.value <= value ? rating.imgSelected : rating.imgNotSelected,
|
|
81
|
+
width: "auto"
|
|
82
|
+
})
|
|
83
|
+
}, rating.value);
|
|
84
|
+
})
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
//#endregion
|
|
89
|
+
export { CustomerSatisfaction };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const angryAnimation: string;
|
|
2
|
+
export declare const happyAnimation: string;
|
|
3
|
+
export declare const customerStatisfaction: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
4
|
+
animated: {
|
|
5
|
+
angry: {
|
|
6
|
+
animation: `${string} 1s ease infinite`;
|
|
7
|
+
};
|
|
8
|
+
happy: {
|
|
9
|
+
animation: `${string} 1s ease infinite`;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
isScaled: {
|
|
13
|
+
true: {
|
|
14
|
+
transform: "scale(1.2)";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}>;
|
|
18
|
+
export declare const customerSatisfactionButtonContainer: string;
|
|
19
|
+
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/CustomerSatisfaction/styles.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,QAazB,CAAA;AAEF,eAAO,MAAM,cAAc,QAazB,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;EA2BhC,CAAA;AAEF,eAAO,MAAM,mCAAmC,QAM9C,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
|
+
|
|
4
|
+
//#region src/components/compositions/CustomerSatisfaction/styles.css.ts
|
|
5
|
+
var customerStatisfaction = createRuntimeFn({
|
|
6
|
+
defaultClassName: "uv_1itnax12",
|
|
7
|
+
variantClassNames: {
|
|
8
|
+
animated: {
|
|
9
|
+
angry: "uv_1itnax13",
|
|
10
|
+
happy: "uv_1itnax14"
|
|
11
|
+
},
|
|
12
|
+
isScaled: { true: "uv_1itnax15" }
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {},
|
|
15
|
+
compoundVariants: []
|
|
16
|
+
});
|
|
17
|
+
var customerSatisfactionButtonContainer = "uv_1itnax16";
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { customerSatisfactionButtonContainer, customerStatisfaction };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Iteration } from './types';
|
|
2
|
+
type TotalPrice = {
|
|
3
|
+
hourly: number;
|
|
4
|
+
maxHourly: number;
|
|
5
|
+
maxOverlayHourly: number;
|
|
6
|
+
maxTotal: number;
|
|
7
|
+
overlayHourly: number;
|
|
8
|
+
total: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const CompactEstimateCost: ({ label, totalPrice, iteration, }: {
|
|
11
|
+
label: string;
|
|
12
|
+
totalPrice: TotalPrice;
|
|
13
|
+
iteration: Iteration;
|
|
14
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=CompactEstimateCost.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompactEstimateCost.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/EstimateCost/CompactEstimateCost.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,KAAK,UAAU,GAAG;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,gBAAgB,EAAE,MAAM,CAAA;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,aAAa,EAAE,MAAM,CAAA;IACrB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,eAAO,MAAM,mBAAmB;;;;6CA+B/B,CAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { Stack } from "../../Stack/index.js";
|
|
3
|
+
import { Text } from "../../Text/index.js";
|
|
4
|
+
import { estimateCostCompact, estimateCostCompactText } from "./styles.css.js";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { CalculatorIcon } from "@ultraviolet/icons/CalculatorIcon";
|
|
7
|
+
|
|
8
|
+
//#region src/components/compositions/EstimateCost/CompactEstimateCost.tsx
|
|
9
|
+
const CompactEstimateCost = ({ label, totalPrice, iteration }) => /* @__PURE__ */ jsxs(Stack, {
|
|
10
|
+
alignItems: "center",
|
|
11
|
+
className: estimateCostCompact,
|
|
12
|
+
direction: "row",
|
|
13
|
+
justifyContent: "space-between",
|
|
14
|
+
children: [/* @__PURE__ */ jsxs(Text, {
|
|
15
|
+
as: "p",
|
|
16
|
+
className: estimateCostCompactText,
|
|
17
|
+
variant: "bodyStrong",
|
|
18
|
+
children: [/* @__PURE__ */ jsx(CalculatorIcon, {
|
|
19
|
+
sentiment: "primary",
|
|
20
|
+
size: "medium"
|
|
21
|
+
}), label]
|
|
22
|
+
}), /* @__PURE__ */ jsxs(Stack, {
|
|
23
|
+
alignItems: "center",
|
|
24
|
+
direction: "row",
|
|
25
|
+
children: [/* @__PURE__ */ jsxs(Text, {
|
|
26
|
+
as: "span",
|
|
27
|
+
variant: "headingSmallStrong",
|
|
28
|
+
children: ["€", totalPrice.total]
|
|
29
|
+
}), /* @__PURE__ */ jsxs(Text, {
|
|
30
|
+
as: "span",
|
|
31
|
+
variant: "bodyStrong",
|
|
32
|
+
children: ["/", iteration.unit.length > 1 && iteration.unit.endsWith("s") ? iteration.unit.slice(0, -1) : iteration.unit]
|
|
33
|
+
})]
|
|
34
|
+
})]
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
export { CompactEstimateCost };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ChildrenComponentType, LocalesType, TotalContentProps } from '../types';
|
|
3
|
+
export declare const DescriptionComponent: import("react").MemoExoticComponent<({ description, locales, }: {
|
|
4
|
+
description: ReactNode;
|
|
5
|
+
locales: Record<"estimate.cost.az.label" | "estimate.cost.beta.badge" | "estimate.cost.beta.discount" | "estimate.cost.beta.free" | "estimate.cost.description" | "estimate.cost.fees.commitment" | "estimate.cost.fees.monthly.title" | "estimate.cost.fees.oneTime.title" | "estimate.cost.label" | "estimate.cost.notDefined" | "estimate.cost.region.label" | "estimate.cost.submit.label" | "estimate.cost.units.days.label" | "estimate.cost.units.gb.label" | "estimate.cost.units.hours.label" | "estimate.cost.units.minutes.label" | "estimate.cost.units.months.label" | "estimate.cost.units.seconds.label" | "estimate.cost.units.years.label", string>;
|
|
6
|
+
}) => number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null>;
|
|
7
|
+
export declare const TitleComponent: import("react").MemoExoticComponent<({ locales }: {
|
|
8
|
+
locales: LocalesType;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
10
|
+
export declare const ChildrenComponent: ({ hideTotal, ref, hideTimeUnit, defaultTimeUnit, iteration, setIteration, timeUnits, children, discount, productsCallback, }: ChildrenComponentType) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const TotalComponent: ({ isBeta, discount, totalValue, totalPrice, totalMaxValue, hideHourlyPriceOnTotal, isLongFractionDigits, }: TotalContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=ContentComponents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentComponents.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/EstimateCost/Components/ContentComponents.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAwBtC,OAAO,KAAK,EACV,qBAAqB,EAErB,WAAW,EACX,iBAAiB,EAClB,MAAM,UAAU,CAAA;AAGjB,eAAO,MAAM,oBAAoB;;;yTAehC,CAAA;AAED,eAAO,MAAM,cAAc;;8CASzB,CAAA;AAEF,eAAO,MAAM,iBAAiB,kMAoF7B,CAAA;AAED,eAAO,MAAM,cAAc,4KAuF1B,CAAA"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { __name } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { Text } from "../../../Text/index.js";
|
|
3
|
+
import { Badge } from "../../../Badge/index.js";
|
|
4
|
+
import { maximumFractionDigits, maximumFractionDigitsLong } from "../constants.js";
|
|
5
|
+
import { useEstimateCost } from "../EstimateCostProvider.js";
|
|
6
|
+
import { estimateCostBadgeBeta, estimateCostCalculatorIcon, estimateCostCell, estimateCostEmptyCell, estimateCostEmptyTable, estimateCostPriceCell, estimateCostPriceCellContent, estimateCostPriceColumn, estimateCostTable, estimateCostText, estimateCostTimeCell, estimateCostTitle, estimateCostTotalPriceCell, paddingLeftCell } from "../styles.css.js";
|
|
7
|
+
import { LineThrough } from "./LineThrough.js";
|
|
8
|
+
import { CustomUnitInput } from "./CustomUnitInput.js";
|
|
9
|
+
import { Children, cloneElement, isValidElement, memo } from "react";
|
|
10
|
+
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
import { cn } from "@ultraviolet/utils";
|
|
13
|
+
import { CalculatorIcon } from "@ultraviolet/icons/CalculatorIcon";
|
|
14
|
+
|
|
15
|
+
//#region src/components/compositions/EstimateCost/Components/ContentComponents.tsx
|
|
16
|
+
const DescriptionComponent = memo(({ description, locales }) => description === void 0 || typeof description === "string" ? /* @__PURE__ */ jsx(Text, {
|
|
17
|
+
as: "span",
|
|
18
|
+
variant: "body",
|
|
19
|
+
children: description || locales["estimate.cost.description"]
|
|
20
|
+
}) : description);
|
|
21
|
+
const TitleComponent = memo(({ locales }) => /* @__PURE__ */ jsxs("h3", {
|
|
22
|
+
className: estimateCostTitle,
|
|
23
|
+
children: [/* @__PURE__ */ jsx(CalculatorIcon, {
|
|
24
|
+
className: estimateCostCalculatorIcon,
|
|
25
|
+
sentiment: "primary",
|
|
26
|
+
size: "medium"
|
|
27
|
+
}), locales === null || locales === void 0 ? void 0 : locales["estimate.cost.label"]]
|
|
28
|
+
}));
|
|
29
|
+
const ChildrenComponent = ({ hideTotal, ref, hideTimeUnit, defaultTimeUnit, iteration, setIteration, timeUnits, children, discount, productsCallback }) => {
|
|
30
|
+
const { locales } = useEstimateCost();
|
|
31
|
+
return /* @__PURE__ */ jsxs("table", {
|
|
32
|
+
cellPadding: "0",
|
|
33
|
+
cellSpacing: "0",
|
|
34
|
+
className: estimateCostTable[hideTotal ? "noTotal" : "total"],
|
|
35
|
+
"data-testid": "summary",
|
|
36
|
+
ref,
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ jsxs("colgroup", { children: [/* @__PURE__ */ jsx("col", {}), /* @__PURE__ */ jsx("col", { className: estimateCostPriceColumn })] }),
|
|
39
|
+
hideTimeUnit ? null : /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [/* @__PURE__ */ jsx("th", { children: /* @__PURE__ */ jsx(TitleComponent, { locales }) }), /* @__PURE__ */ jsx("th", {
|
|
40
|
+
className: cn(estimateCostPriceCellContent, estimateCostPriceCell),
|
|
41
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
42
|
+
className: estimateCostTimeCell,
|
|
43
|
+
children: /* @__PURE__ */ jsx(CustomUnitInput, {
|
|
44
|
+
defaultTimeUnit,
|
|
45
|
+
iteration,
|
|
46
|
+
setIteration,
|
|
47
|
+
timeUnits
|
|
48
|
+
})
|
|
49
|
+
})
|
|
50
|
+
})] }) }),
|
|
51
|
+
/* @__PURE__ */ jsx("tbody", { children: Children.map(children, (child, index) => isValidElement(child) ? cloneElement(child, {
|
|
52
|
+
discount: discount && !child.props.discount ? discount : child.props.discount,
|
|
53
|
+
isLastElement: index === Children.count(children) - 1,
|
|
54
|
+
iteration,
|
|
55
|
+
productsCallback
|
|
56
|
+
}) : child) })
|
|
57
|
+
]
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
const TotalComponent = ({ isBeta, discount, totalValue, totalPrice, totalMaxValue, hideHourlyPriceOnTotal, isLongFractionDigits }) => {
|
|
61
|
+
const { formatNumber, locales } = useEstimateCost();
|
|
62
|
+
const localeBeta = locales[`estimate.cost.beta.${discount > 0 ? "discount" : "free"}`];
|
|
63
|
+
return /* @__PURE__ */ jsxs("table", {
|
|
64
|
+
cellPadding: "0",
|
|
65
|
+
cellSpacing: "0",
|
|
66
|
+
className: estimateCostEmptyTable,
|
|
67
|
+
children: [/* @__PURE__ */ jsxs("colgroup", { children: [/* @__PURE__ */ jsx("col", {}), /* @__PURE__ */ jsx("col", { className: estimateCostPriceColumn })] }), /* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsxs("tr", { children: [/* @__PURE__ */ jsx("td", {
|
|
68
|
+
"aria-label": "control",
|
|
69
|
+
className: estimateCostEmptyCell
|
|
70
|
+
}), /* @__PURE__ */ jsxs("td", {
|
|
71
|
+
className: cn(estimateCostCell({
|
|
72
|
+
hasBorder: false,
|
|
73
|
+
primary: false
|
|
74
|
+
}), estimateCostTotalPriceCell),
|
|
75
|
+
style: assignInlineVars({ [paddingLeftCell]: "16px" }),
|
|
76
|
+
children: [
|
|
77
|
+
isBeta ? /* @__PURE__ */ jsx(Badge, {
|
|
78
|
+
className: estimateCostBadgeBeta[localeBeta.length > 25 ? "long" : "short"],
|
|
79
|
+
prominence: "strong",
|
|
80
|
+
sentiment: "warning",
|
|
81
|
+
children: `${discount > 0 ? discount * 100 : ""}
|
|
82
|
+
${localeBeta}`
|
|
83
|
+
}) : null,
|
|
84
|
+
/* @__PURE__ */ jsx(Text, {
|
|
85
|
+
as: "h3",
|
|
86
|
+
className: estimateCostText({ beta: isBeta }),
|
|
87
|
+
sentiment: "primary",
|
|
88
|
+
variant: "heading",
|
|
89
|
+
children: /* @__PURE__ */ jsxs(LineThrough, {
|
|
90
|
+
isActive: isBeta && (discount === 0 || discount >= 1),
|
|
91
|
+
children: [totalValue, totalPrice.maxTotal > 0 ? ` - ${totalMaxValue}` : null]
|
|
92
|
+
})
|
|
93
|
+
}),
|
|
94
|
+
hideHourlyPriceOnTotal && totalPrice.hourly > 0 && totalPrice.hourly !== totalPrice.total && totalPrice.total > 0 ? /* @__PURE__ */ jsx(Text, {
|
|
95
|
+
as: "p",
|
|
96
|
+
placement: "right",
|
|
97
|
+
variant: "body",
|
|
98
|
+
children: /* @__PURE__ */ jsxs(LineThrough, {
|
|
99
|
+
isActive: isBeta && (discount === 0 || discount >= 1),
|
|
100
|
+
children: [
|
|
101
|
+
formatNumber(totalPrice.hourly, { maximumFractionDigits: isLongFractionDigits ? maximumFractionDigitsLong.hours : maximumFractionDigits.hours }),
|
|
102
|
+
totalPrice.maxHourly > 0 ? ` - ${formatNumber(totalPrice.maxHourly, { maximumFractionDigits: isLongFractionDigits ? maximumFractionDigitsLong.hours : maximumFractionDigits.hours })}` : null,
|
|
103
|
+
"/",
|
|
104
|
+
locales["estimate.cost.units.hours.label"].toLowerCase()
|
|
105
|
+
]
|
|
106
|
+
})
|
|
107
|
+
}) : null
|
|
108
|
+
]
|
|
109
|
+
})] }) })]
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
//#endregion
|
|
114
|
+
export { ChildrenComponent, DescriptionComponent, TotalComponent };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Iteration, Units } from '../types';
|
|
2
|
+
type CustomUnitInputProps = {
|
|
3
|
+
defaultTimeUnit?: Units;
|
|
4
|
+
setIteration: (iteration: Iteration) => void;
|
|
5
|
+
iteration: Iteration;
|
|
6
|
+
timeUnits: Units[];
|
|
7
|
+
};
|
|
8
|
+
export declare const CustomUnitInput: import("react").MemoExoticComponent<({ defaultTimeUnit, setIteration, iteration, timeUnits, }: CustomUnitInputProps) => import("react/jsx-runtime").JSX.Element>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=CustomUnitInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomUnitInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/EstimateCost/Components/CustomUnitInput.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAEhD,KAAK,oBAAoB,GAAG;IAC1B,eAAe,CAAC,EAAE,KAAK,CAAA;IACvB,YAAY,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAA;IAC5C,SAAS,EAAE,SAAS,CAAA;IACpB,SAAS,EAAE,KAAK,EAAE,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,eAAe,kKAkD3B,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { useEstimateCost } from "../EstimateCostProvider.js";
|
|
4
|
+
import { UnitInput } from "../../../UnitInput/index.js";
|
|
5
|
+
import { memo, useMemo } from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/compositions/EstimateCost/Components/CustomUnitInput.tsx
|
|
9
|
+
const CustomUnitInput = memo(({ defaultTimeUnit = "hours", setIteration, iteration, timeUnits }) => {
|
|
10
|
+
const { locales } = useEstimateCost();
|
|
11
|
+
const options = useMemo(() => timeUnits.map((unit) => ({
|
|
12
|
+
label: locales[`estimate.cost.units.${unit}.label`],
|
|
13
|
+
value: unit
|
|
14
|
+
})), [timeUnits, locales]);
|
|
15
|
+
const defaultOption = useMemo(() => options.find(({ value }) => value === defaultTimeUnit), [defaultTimeUnit, options]);
|
|
16
|
+
return /* @__PURE__ */ jsx(UnitInput, {
|
|
17
|
+
min: 1,
|
|
18
|
+
name: "iteration",
|
|
19
|
+
onChange: (inputValue) => setIteration({
|
|
20
|
+
unit: iteration.unit,
|
|
21
|
+
value: inputValue
|
|
22
|
+
}),
|
|
23
|
+
onChangeUnitValue: (unitValue) => {
|
|
24
|
+
setIteration({
|
|
25
|
+
unit: unitValue,
|
|
26
|
+
value: iteration.value
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
options,
|
|
30
|
+
placeholder: "0",
|
|
31
|
+
selectInputWidth: "100%",
|
|
32
|
+
size: "medium",
|
|
33
|
+
templateColumns: "auto auto",
|
|
34
|
+
unitValue: iteration.unit || (defaultOption === null || defaultOption === void 0 ? void 0 : defaultOption.value),
|
|
35
|
+
value: iteration.value,
|
|
36
|
+
width: "100%"
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
export { CustomUnitInput };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type { ComponentProps, CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import type { Text } from '../../../Text';
|
|
3
|
+
import type { BareEstimateProduct, EstimateProduct, Iteration } from '../types';
|
|
4
|
+
type ItemProps = {
|
|
5
|
+
amount?: number;
|
|
6
|
+
/**
|
|
7
|
+
* Number of items that are free. It will be deducted to price of the item.
|
|
8
|
+
*/
|
|
9
|
+
amountFree?: number;
|
|
10
|
+
/**
|
|
11
|
+
* if true, zoomIn animation is triggered
|
|
12
|
+
*/
|
|
13
|
+
animated?: boolean;
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
discount?: number;
|
|
16
|
+
discountText?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Hide element from overlay
|
|
19
|
+
*/
|
|
20
|
+
hideFromOverlay?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Do not set this prop, it is transferred from parent
|
|
23
|
+
*/
|
|
24
|
+
isDefined?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Do not set this prop, it is transferred from parent
|
|
27
|
+
*/
|
|
28
|
+
isFirstElement?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Do not set this prop, it is transferred from parent
|
|
31
|
+
*/
|
|
32
|
+
isLastElement?: boolean;
|
|
33
|
+
isPrimaryBackground?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Do not set this prop, it is transferred from parent
|
|
36
|
+
*/
|
|
37
|
+
iteration?: Iteration;
|
|
38
|
+
/**
|
|
39
|
+
* String that is displayed on left part of the item, it defines the item
|
|
40
|
+
*/
|
|
41
|
+
label?: ReactNode;
|
|
42
|
+
/**
|
|
43
|
+
* Changes label typography variant
|
|
44
|
+
*/
|
|
45
|
+
labelTextVariant?: ComponentProps<typeof Text>['variant'];
|
|
46
|
+
/**
|
|
47
|
+
* Changes label typography prominence
|
|
48
|
+
*/
|
|
49
|
+
labelTextProminence?: ComponentProps<typeof Text>['prominence'];
|
|
50
|
+
/**
|
|
51
|
+
* If your price has a lot of number after decimal point (ex: 0.0000076) - up 8 fraction digits
|
|
52
|
+
*/
|
|
53
|
+
longFractionDigits?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Create a range price with [amount - maxAmount] values and prices
|
|
56
|
+
*/
|
|
57
|
+
maxAmount?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Price per month
|
|
60
|
+
*/
|
|
61
|
+
monthlyPrice?: number;
|
|
62
|
+
/**
|
|
63
|
+
* Remove border bottom of the item
|
|
64
|
+
*/
|
|
65
|
+
noBorder?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* If the price of the item is not based on time enable this prop. ex: 5kg of chocolate is same price over 1 month or 1 hour.
|
|
68
|
+
*/
|
|
69
|
+
noIteration?: boolean;
|
|
70
|
+
noIterationText?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Remove the price on the right section of the table
|
|
73
|
+
*/
|
|
74
|
+
noPrice?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Notice to display below the label
|
|
77
|
+
*/
|
|
78
|
+
notice?: string;
|
|
79
|
+
onAmountChange?: (amount: number) => void;
|
|
80
|
+
/**
|
|
81
|
+
* Hourly price for one unit
|
|
82
|
+
*/
|
|
83
|
+
price?: number;
|
|
84
|
+
priceText?: ReactNode;
|
|
85
|
+
productsCallback?: {
|
|
86
|
+
add: (product: EstimateProduct) => void;
|
|
87
|
+
remove: (product: BareEstimateProduct) => void;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Hide item from overlay if screen width is small
|
|
91
|
+
*/
|
|
92
|
+
shouldBeHidden?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Display a complementary text on the right of the label
|
|
95
|
+
*/
|
|
96
|
+
subLabel?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Increase left padding of the item like
|
|
99
|
+
*/
|
|
100
|
+
tabulation?: number;
|
|
101
|
+
/**
|
|
102
|
+
* Text to display in case of not defined value
|
|
103
|
+
*/
|
|
104
|
+
textNotDefined?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Display near label, an icon with a tooltip that contains your text
|
|
107
|
+
*/
|
|
108
|
+
tooltipInfo?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Unit of your item, examples: GB, MB, Node, Queries, etc.
|
|
111
|
+
*/
|
|
112
|
+
unit?: 'mb' | 'gb' | 'tb' | 'seconds' | 'minutes' | 'hours' | 'days' | 'months' | 'years' | (string & NonNullable<unknown>);
|
|
113
|
+
strikeThrough?: boolean;
|
|
114
|
+
style?: CSSProperties;
|
|
115
|
+
};
|
|
116
|
+
export declare const Item: import("react").MemoExoticComponent<({ discount, priceText, discountText, label, tooltipInfo, subLabel, price: basePrice, monthlyPrice, unit: baseUnit, amount: currentAmount, onAmountChange, amountFree, maxAmount, longFractionDigits, noIteration, noIterationText, noBorder, noPrice, isDefined, children, isFirstElement, isLastElement, isPrimaryBackground, productsCallback, iteration: receivedIteration, shouldBeHidden, hideFromOverlay, textNotDefined, animated, tabulation, labelTextVariant, labelTextProminence, notice, strikeThrough, style, }: ItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
117
|
+
export {};
|
|
118
|
+
//# sourceMappingURL=Item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/EstimateCost/Components/Item.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAezC,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAK/E,KAAK,SAAS,GAAG;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB;;OAEG;IACH,gBAAgB,CAAC,EAAE,cAAc,CAAC,OAAO,IAAI,CAAC,CAAC,SAAS,CAAC,CAAA;IACzD;;OAEG;IACH,mBAAmB,CAAC,EAAE,cAAc,CAAC,OAAO,IAAI,CAAC,CAAC,YAAY,CAAC,CAAA;IAC/D;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,gBAAgB,CAAC,EAAE;QACjB,GAAG,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI,CAAA;QACvC,MAAM,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAA;KAC/C,CAAA;IACD;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,IAAI,CAAC,EACD,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,SAAS,GACT,SAAS,GACT,OAAO,GACP,MAAM,GACN,QAAQ,GACR,OAAO,GAEP,CAAC,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,CAAA;IAInC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,IAAI,2lBA4OhB,CAAA"}
|