@ultraviolet/ui 3.10.2 → 3.11.1
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/Avatar/styles.css.js +1 -0
- package/dist/components/Avatar/variables.css.js +0 -2
- 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 +19 -8
- 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/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 +0 -1
- 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 +0 -1
- package/dist/components/ProgressBar/variables.css.js +2 -0
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/Radio/styles.css.js +0 -1
- 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 +2 -2
- 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/Text/style.css.js +0 -1
- package/dist/components/Text/variables.css.js +2 -0
- 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 +72 -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 +123 -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/OfferList/styles.css.js +0 -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/Plans/PlanHeader.js +1 -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,26 @@
|
|
|
1
|
+
//#region src/components/compositions/EstimateCost/constants.ts
|
|
2
|
+
const APPROXIMATE_HOURS_IN_MONTH = 730;
|
|
3
|
+
const multiplier = {
|
|
4
|
+
days: 24,
|
|
5
|
+
hours: 1,
|
|
6
|
+
minutes: 1 / 60,
|
|
7
|
+
months: 730,
|
|
8
|
+
seconds: 1 / 60 / 60
|
|
9
|
+
};
|
|
10
|
+
const maximumFractionDigits = {
|
|
11
|
+
days: 3,
|
|
12
|
+
hours: 5,
|
|
13
|
+
minutes: 8,
|
|
14
|
+
months: 2,
|
|
15
|
+
seconds: 10
|
|
16
|
+
};
|
|
17
|
+
const maximumFractionDigitsLong = {
|
|
18
|
+
days: 4,
|
|
19
|
+
hours: 8,
|
|
20
|
+
minutes: 10,
|
|
21
|
+
months: 2,
|
|
22
|
+
seconds: 12
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { maximumFractionDigits, maximumFractionDigitsLong, multiplier };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Units } from './types';
|
|
2
|
+
export declare const calculatePrice: ({ price, amount, amountFree, timeUnit, timeAmount, discount, }: {
|
|
3
|
+
price: number;
|
|
4
|
+
amount: number;
|
|
5
|
+
amountFree?: number | undefined;
|
|
6
|
+
timeUnit: Units;
|
|
7
|
+
timeAmount: number;
|
|
8
|
+
discount?: number | undefined;
|
|
9
|
+
}) => number;
|
|
10
|
+
//# sourceMappingURL=helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/EstimateCost/helper.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAIpC,eAAO,MAAM,cAAc;;;;;;;YAsB1B,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { multiplier } from "./constants.js";
|
|
3
|
+
|
|
4
|
+
//#region src/components/compositions/EstimateCost/helper.ts
|
|
5
|
+
const calculatePrice = ({ price, amount, amountFree = 0, timeUnit, timeAmount, discount = 0 }) => {
|
|
6
|
+
const nonNanTimeAmount = Number.isNaN(timeAmount) ? 0 : timeAmount;
|
|
7
|
+
return (price - price * discount) * (nonNanTimeAmount * multiplier[timeUnit]) * Math.max(amount - amountFree, 0);
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { calculatePrice };
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import estimateCostDefaultLocales from './locales/en';
|
|
3
|
+
import type { EstimateCostProps } from './types';
|
|
4
|
+
export declare function EstimateCost({ description, alert, alertTitle, alertVariant, defaultTimeUnit, timeUnits, hideOverlay, disableOverlayLeft, disableOverlayRight, hideTimeUnit, hideTotal, discount, OverlayRight, OverlayLeft, overlayMargin, isBeta, commitmentFees, commitmentFeesContent, monthlyFees, monthlyFeesLabel, monthlyFeesContent, overlayUnit, children, locales, compact, numberLocales, currency, style, onTotalPriceChange }: EstimateCostProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare namespace EstimateCost {
|
|
6
|
+
var LineThrough: ({ isActive, className, ...props }: import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
7
|
+
isActive?: boolean | undefined;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace EstimateCost {
|
|
11
|
+
var 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, }: {
|
|
12
|
+
amount?: number | undefined;
|
|
13
|
+
amountFree?: number | undefined;
|
|
14
|
+
animated?: boolean | undefined;
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
discount?: number | undefined;
|
|
17
|
+
discountText?: string | undefined;
|
|
18
|
+
hideFromOverlay?: boolean | undefined;
|
|
19
|
+
isDefined?: boolean | undefined;
|
|
20
|
+
isFirstElement?: boolean | undefined;
|
|
21
|
+
isLastElement?: boolean | undefined;
|
|
22
|
+
isPrimaryBackground?: boolean | undefined;
|
|
23
|
+
iteration?: import("./types").Iteration | undefined;
|
|
24
|
+
label?: ReactNode;
|
|
25
|
+
labelTextVariant?: "body" | "bodySmall" | "bodySmallStrong" | "bodySmallStronger" | "bodyStrong" | "bodyStronger" | "caption" | "captionSmall" | "captionSmallStrong" | "captionSmallStronger" | "captionStrong" | "captionStronger" | "code" | "codeSmall" | "codeSmallStrong" | "codeSmallStronger" | "codeStrong" | "codeStronger" | "heading" | "headingLarge" | "headingLargeStrong" | "headingLargeStronger" | "headingSmall" | "headingSmallStrong" | "headingSmallStronger" | "headingStrong" | "headingStronger" | undefined;
|
|
26
|
+
labelTextProminence?: "default" | "strong" | "stronger" | "weak" | undefined;
|
|
27
|
+
longFractionDigits?: boolean | undefined;
|
|
28
|
+
maxAmount?: number | undefined;
|
|
29
|
+
monthlyPrice?: number | undefined;
|
|
30
|
+
noBorder?: boolean | undefined;
|
|
31
|
+
noIteration?: boolean | undefined;
|
|
32
|
+
noIterationText?: string | undefined;
|
|
33
|
+
noPrice?: boolean | undefined;
|
|
34
|
+
notice?: string | undefined;
|
|
35
|
+
onAmountChange?: ((amount: number) => void) | undefined;
|
|
36
|
+
price?: number | undefined;
|
|
37
|
+
priceText?: ReactNode;
|
|
38
|
+
productsCallback?: {
|
|
39
|
+
add: (product: import("./types").EstimateProduct) => void;
|
|
40
|
+
remove: (product: import("./types").BareEstimateProduct) => void;
|
|
41
|
+
} | undefined;
|
|
42
|
+
shouldBeHidden?: boolean | undefined;
|
|
43
|
+
subLabel?: string | undefined;
|
|
44
|
+
tabulation?: number | undefined;
|
|
45
|
+
textNotDefined?: string | undefined;
|
|
46
|
+
tooltipInfo?: string | undefined;
|
|
47
|
+
unit?: "days" | "gb" | "hours" | "mb" | "minutes" | "months" | "seconds" | "tb" | "years" | (string & {}) | undefined;
|
|
48
|
+
strikeThrough?: boolean | undefined;
|
|
49
|
+
style?: import("react").CSSProperties | undefined;
|
|
50
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
51
|
+
}
|
|
52
|
+
export declare namespace EstimateCost {
|
|
53
|
+
var NumberInput: ({ amount, minValue, maxValue, getAmountValue, itemCallback, controls, }: {
|
|
54
|
+
amount?: number | undefined;
|
|
55
|
+
itemCallback?: ((amount?: number | null | undefined, isVariant?: boolean | undefined) => void) | undefined;
|
|
56
|
+
getAmountValue?: ((amount?: number | null | undefined) => void) | undefined;
|
|
57
|
+
minValue?: number | undefined;
|
|
58
|
+
maxValue?: number | undefined;
|
|
59
|
+
controls?: boolean | undefined;
|
|
60
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
}
|
|
62
|
+
export declare namespace EstimateCost {
|
|
63
|
+
var Unit: ({ amount, itemCallback, getAmountValue, unit, style, }: {
|
|
64
|
+
amount?: number | undefined;
|
|
65
|
+
itemCallback?: ((amount?: number | undefined, isVariant?: boolean | undefined) => void) | undefined;
|
|
66
|
+
getAmountValue?: ((amount?: number | undefined) => void) | undefined;
|
|
67
|
+
unit?: string | undefined;
|
|
68
|
+
style?: import("react").CSSProperties | undefined;
|
|
69
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
70
|
+
}
|
|
71
|
+
export declare namespace EstimateCost {
|
|
72
|
+
var Strong: import("react").MemoExoticComponent<({ variant, children, style }: {
|
|
73
|
+
variant?: "big" | "capitalized" | "normal" | "small" | undefined;
|
|
74
|
+
children?: ReactNode;
|
|
75
|
+
isDisabledOnOverlay?: boolean | undefined;
|
|
76
|
+
style?: import("react").CSSProperties | undefined;
|
|
77
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
78
|
+
}
|
|
79
|
+
export declare namespace EstimateCost {
|
|
80
|
+
var Regular: import("react").MemoExoticComponent<({ variant, isDisabledOnOverlay, children, className, style, }: {
|
|
81
|
+
variant?: "big" | "capitalized" | "normal" | "small" | undefined;
|
|
82
|
+
isDisabledOnOverlay?: boolean | undefined;
|
|
83
|
+
children?: ReactNode;
|
|
84
|
+
style?: import("react").CSSProperties | undefined;
|
|
85
|
+
className?: string | undefined;
|
|
86
|
+
}) => import("react/jsx-runtime").JSX.Element | null>;
|
|
87
|
+
}
|
|
88
|
+
export declare namespace EstimateCost {
|
|
89
|
+
var Image: (props: import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>) => import("react/jsx-runtime").JSX.Element;
|
|
90
|
+
}
|
|
91
|
+
export declare namespace EstimateCost {
|
|
92
|
+
var Region: import("react").MemoExoticComponent<({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, hideFromOverlay, style, }: {
|
|
93
|
+
shouldBeHidden?: boolean | undefined;
|
|
94
|
+
priceText?: ReactNode;
|
|
95
|
+
animated?: boolean | undefined;
|
|
96
|
+
isFirstElement?: boolean | undefined;
|
|
97
|
+
isLastElement?: boolean | undefined;
|
|
98
|
+
productsCallback?: {
|
|
99
|
+
add: (product: import("./types").EstimateProduct) => void;
|
|
100
|
+
remove: (product: import("./types").BareEstimateProduct) => void;
|
|
101
|
+
} | undefined;
|
|
102
|
+
iteration?: import("./types").Iteration | undefined;
|
|
103
|
+
discount?: number | undefined;
|
|
104
|
+
label: string;
|
|
105
|
+
image: string;
|
|
106
|
+
noBorder?: boolean | undefined;
|
|
107
|
+
noPrice?: boolean | undefined;
|
|
108
|
+
} & Pick<{
|
|
109
|
+
amount?: number | undefined;
|
|
110
|
+
amountFree?: number | undefined;
|
|
111
|
+
animated?: boolean | undefined;
|
|
112
|
+
children?: ReactNode;
|
|
113
|
+
discount?: number | undefined;
|
|
114
|
+
discountText?: string | undefined;
|
|
115
|
+
hideFromOverlay?: boolean | undefined;
|
|
116
|
+
isDefined?: boolean | undefined;
|
|
117
|
+
isFirstElement?: boolean | undefined;
|
|
118
|
+
isLastElement?: boolean | undefined;
|
|
119
|
+
isPrimaryBackground?: boolean | undefined;
|
|
120
|
+
iteration?: import("./types").Iteration | undefined;
|
|
121
|
+
label?: ReactNode;
|
|
122
|
+
labelTextVariant?: "body" | "bodySmall" | "bodySmallStrong" | "bodySmallStronger" | "bodyStrong" | "bodyStronger" | "caption" | "captionSmall" | "captionSmallStrong" | "captionSmallStronger" | "captionStrong" | "captionStronger" | "code" | "codeSmall" | "codeSmallStrong" | "codeSmallStronger" | "codeStrong" | "codeStronger" | "heading" | "headingLarge" | "headingLargeStrong" | "headingLargeStronger" | "headingSmall" | "headingSmallStrong" | "headingSmallStronger" | "headingStrong" | "headingStronger" | undefined;
|
|
123
|
+
labelTextProminence?: "default" | "strong" | "stronger" | "weak" | undefined;
|
|
124
|
+
longFractionDigits?: boolean | undefined;
|
|
125
|
+
maxAmount?: number | undefined;
|
|
126
|
+
monthlyPrice?: number | undefined;
|
|
127
|
+
noBorder?: boolean | undefined;
|
|
128
|
+
noIteration?: boolean | undefined;
|
|
129
|
+
noIterationText?: string | undefined;
|
|
130
|
+
noPrice?: boolean | undefined;
|
|
131
|
+
notice?: string | undefined;
|
|
132
|
+
onAmountChange?: ((amount: number) => void) | undefined;
|
|
133
|
+
price?: number | undefined;
|
|
134
|
+
priceText?: ReactNode;
|
|
135
|
+
productsCallback?: {
|
|
136
|
+
add: (product: import("./types").EstimateProduct) => void;
|
|
137
|
+
remove: (product: import("./types").BareEstimateProduct) => void;
|
|
138
|
+
} | undefined;
|
|
139
|
+
shouldBeHidden?: boolean | undefined;
|
|
140
|
+
subLabel?: string | undefined;
|
|
141
|
+
tabulation?: number | undefined;
|
|
142
|
+
textNotDefined?: string | undefined;
|
|
143
|
+
tooltipInfo?: string | undefined;
|
|
144
|
+
unit?: "days" | "gb" | "hours" | "mb" | "minutes" | "months" | "seconds" | "tb" | "years" | (string & {}) | undefined;
|
|
145
|
+
strikeThrough?: boolean | undefined;
|
|
146
|
+
style?: import("react").CSSProperties | undefined;
|
|
147
|
+
}, "hideFromOverlay" | "style">) => import("react/jsx-runtime").JSX.Element>;
|
|
148
|
+
}
|
|
149
|
+
export declare namespace EstimateCost {
|
|
150
|
+
var Zone: import("react").MemoExoticComponent<({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, style, }: {
|
|
151
|
+
shouldBeHidden?: boolean | undefined;
|
|
152
|
+
priceText?: string | undefined;
|
|
153
|
+
animated?: boolean | undefined;
|
|
154
|
+
isFirstElement?: boolean | undefined;
|
|
155
|
+
isLastElement?: boolean | undefined;
|
|
156
|
+
productsCallback?: {
|
|
157
|
+
add: (product: import("./types").EstimateProduct) => void;
|
|
158
|
+
remove: (product: import("./types").BareEstimateProduct) => void;
|
|
159
|
+
} | undefined;
|
|
160
|
+
iteration?: import("./types").Iteration | undefined;
|
|
161
|
+
discount?: number | undefined;
|
|
162
|
+
label: string;
|
|
163
|
+
image: string;
|
|
164
|
+
noBorder?: boolean | undefined;
|
|
165
|
+
noPrice?: boolean | undefined;
|
|
166
|
+
style?: import("react").CSSProperties | undefined;
|
|
167
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
168
|
+
}
|
|
169
|
+
export declare namespace EstimateCost {
|
|
170
|
+
var Ellipsis: ({ children, maxWidth, 'data-testid': dataTestId, }: {
|
|
171
|
+
children: ReactNode;
|
|
172
|
+
maxWidth?: number | undefined;
|
|
173
|
+
'data-testid'?: string | undefined;
|
|
174
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
175
|
+
}
|
|
176
|
+
export { estimateCostDefaultLocales };
|
|
177
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/EstimateCost/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAkB,SAAS,EAAE,MAAM,OAAO,CAAA;AActD,OAAO,0BAA0B,MAAM,cAAc,CAAA;AAGrD,OAAO,KAAK,EAAE,iBAAiB,EAAS,MAAM,SAAS,CAAA;qCAgB1B,EAC3B,WAAW,EACX,KAAK,EACL,UAAU,EACV,YAAwB,EACxB,eAAyB,EACzB,SAA6B,EAC7B,WAAmB,EACnB,kBAA0B,EAC1B,mBAA2B,EAC3B,YAAoB,EACpB,SAAiB,EACjB,QAAY,EACZ,YAAY,EACZ,WAAW,EACX,aAAa,EACb,MAAc,EACd,cAAc,EACd,qBAAqB,EACrB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,WAAqB,EACrB,QAAe,EACf,OAAoC,EACpC,OAAO,EACP,aAAuB,EACvB,QAAgB,EAChB,KAAK,EACL,kBAAkB,EACnB,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4FpB,OAAO,EAAE,0BAA0B,EAAE,CAAA"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
|
|
4
|
+
import { Text } from "../../Text/index.js";
|
|
5
|
+
import { maxWidthText, maxWidthTextVar } from "./Components/components.css.js";
|
|
6
|
+
import en_default from "./locales/en.js";
|
|
7
|
+
import { EstimateCostProvider } from "./EstimateCostProvider.js";
|
|
8
|
+
import { useOverlay } from "./OverlayContext.js";
|
|
9
|
+
import { estimateCostImage } from "./styles.css.js";
|
|
10
|
+
import { Item } from "./Components/Item.js";
|
|
11
|
+
import { LineThrough } from "./Components/LineThrough.js";
|
|
12
|
+
import { Regular } from "./Components/Regular.js";
|
|
13
|
+
import { NumberInput } from "./Components/NumberInput.js";
|
|
14
|
+
import { Strong } from "./Components/Strong.js";
|
|
15
|
+
import { Region } from "./Components/Region.js";
|
|
16
|
+
import { Unit } from "./Components/Unit.js";
|
|
17
|
+
import { Zone } from "./Components/Zone.js";
|
|
18
|
+
import { EstimateCostContent } from "./EstimateCostContent.js";
|
|
19
|
+
import { Children } from "react";
|
|
20
|
+
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
21
|
+
import { jsx } from "react/jsx-runtime";
|
|
22
|
+
import { cn } from "@ultraviolet/utils";
|
|
23
|
+
|
|
24
|
+
//#region src/components/compositions/EstimateCost/index.tsx
|
|
25
|
+
const DEFAULT_UNIT_LIST = [
|
|
26
|
+
"hours",
|
|
27
|
+
"days",
|
|
28
|
+
"months"
|
|
29
|
+
];
|
|
30
|
+
const Image = (props) => /* @__PURE__ */ jsx("img", _objectSpread2(_objectSpread2({
|
|
31
|
+
alt: props.alt,
|
|
32
|
+
height: props.height,
|
|
33
|
+
width: props.width
|
|
34
|
+
}, props), {}, { className: cn(props.className, estimateCostImage) }));
|
|
35
|
+
const EstimateCost = ({ description, alert, alertTitle, alertVariant = "warning", defaultTimeUnit = "hours", timeUnits = DEFAULT_UNIT_LIST, hideOverlay = false, disableOverlayLeft = false, disableOverlayRight = false, hideTimeUnit = false, hideTotal = false, discount = 0, OverlayRight, OverlayLeft, overlayMargin, isBeta = false, commitmentFees, commitmentFeesContent, monthlyFees, monthlyFeesLabel, monthlyFeesContent, overlayUnit = "hours", children = null, locales = en_default, compact, numberLocales = "en-EN", currency = "EUR", style, onTotalPriceChange }) => /* @__PURE__ */ jsx(EstimateCostProvider, {
|
|
36
|
+
currency,
|
|
37
|
+
locales,
|
|
38
|
+
numberLocales,
|
|
39
|
+
children: /* @__PURE__ */ jsx(EstimateCostContent, {
|
|
40
|
+
alert,
|
|
41
|
+
alertTitle,
|
|
42
|
+
alertVariant,
|
|
43
|
+
commitmentFees,
|
|
44
|
+
commitmentFeesContent,
|
|
45
|
+
compact,
|
|
46
|
+
defaultTimeUnit,
|
|
47
|
+
description,
|
|
48
|
+
disableOverlayLeft,
|
|
49
|
+
disableOverlayRight,
|
|
50
|
+
discount,
|
|
51
|
+
hideOverlay,
|
|
52
|
+
hideTimeUnit,
|
|
53
|
+
hideTotal,
|
|
54
|
+
isBeta,
|
|
55
|
+
locales,
|
|
56
|
+
monthlyFees,
|
|
57
|
+
monthlyFeesContent,
|
|
58
|
+
monthlyFeesLabel,
|
|
59
|
+
OverlayLeft,
|
|
60
|
+
OverlayRight,
|
|
61
|
+
onTotalPriceChange,
|
|
62
|
+
overlayMargin,
|
|
63
|
+
overlayUnit,
|
|
64
|
+
style,
|
|
65
|
+
timeUnits,
|
|
66
|
+
children
|
|
67
|
+
})
|
|
68
|
+
});
|
|
69
|
+
EstimateCost.LineThrough = LineThrough;
|
|
70
|
+
EstimateCost.Item = Item;
|
|
71
|
+
EstimateCost.NumberInput = NumberInput;
|
|
72
|
+
EstimateCost.Unit = Unit;
|
|
73
|
+
EstimateCost.Strong = Strong;
|
|
74
|
+
EstimateCost.Regular = Regular;
|
|
75
|
+
EstimateCost.Image = Image;
|
|
76
|
+
EstimateCost.Region = Region;
|
|
77
|
+
EstimateCost.Zone = Zone;
|
|
78
|
+
const Ellipsis = ({ children, maxWidth = 350, "data-testid": dataTestId }) => {
|
|
79
|
+
const { isOverlay } = useOverlay();
|
|
80
|
+
const text = Children.toArray(children).join("").toString();
|
|
81
|
+
return /* @__PURE__ */ jsx("div", {
|
|
82
|
+
"data-testid": dataTestId,
|
|
83
|
+
style: { display: isOverlay ? void 0 : "inline-flex" },
|
|
84
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
85
|
+
as: "p",
|
|
86
|
+
className: maxWidthText,
|
|
87
|
+
oneLine: true,
|
|
88
|
+
style: assignInlineVars({ [maxWidthTextVar]: isOverlay ? "200px" : `${maxWidth}px` }),
|
|
89
|
+
variant: "bodyStrong",
|
|
90
|
+
children: text
|
|
91
|
+
})
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
EstimateCost.Ellipsis = Ellipsis;
|
|
95
|
+
|
|
96
|
+
//#endregion
|
|
97
|
+
export { EstimateCost, en_default as estimateCostDefaultLocales };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
readonly 'estimate.cost.az.label': "Availability Zone";
|
|
3
|
+
readonly 'estimate.cost.beta.badge': "Beta Version";
|
|
4
|
+
readonly 'estimate.cost.beta.discount': "% off during Beta";
|
|
5
|
+
readonly 'estimate.cost.beta.free': "Free During Beta";
|
|
6
|
+
readonly 'estimate.cost.description': "This summary provides a cost estimation based on your configuration, the amount of time you expect to use the resource for, and the scale of your expected usage. For the purposes of this calculation, we consider that 1 month equals to 730 hours.";
|
|
7
|
+
readonly 'estimate.cost.fees.commitment': "Commitment Fees";
|
|
8
|
+
readonly 'estimate.cost.fees.monthly.title': "Each month";
|
|
9
|
+
readonly 'estimate.cost.fees.oneTime.title': "One time fees";
|
|
10
|
+
readonly 'estimate.cost.label': "Estimated cost";
|
|
11
|
+
readonly 'estimate.cost.notDefined': "Not defined";
|
|
12
|
+
readonly 'estimate.cost.region.label': "Region";
|
|
13
|
+
readonly 'estimate.cost.submit.label': "Create";
|
|
14
|
+
readonly 'estimate.cost.units.days.label': "Day(s)";
|
|
15
|
+
readonly 'estimate.cost.units.gb.label': "GB";
|
|
16
|
+
readonly 'estimate.cost.units.hours.label': "Hour(s)";
|
|
17
|
+
readonly 'estimate.cost.units.minutes.label': "Minute(s)";
|
|
18
|
+
readonly 'estimate.cost.units.months.label': "Month(s)";
|
|
19
|
+
readonly 'estimate.cost.units.seconds.label': "Second(s)";
|
|
20
|
+
readonly 'estimate.cost.units.years.label': "Year(s)";
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
23
|
+
//# sourceMappingURL=en.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/EstimateCost/locales/en.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,wBAqBU"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region src/components/compositions/EstimateCost/locales/en.ts
|
|
2
|
+
var en_default = {
|
|
3
|
+
"estimate.cost.az.label": "Availability Zone",
|
|
4
|
+
"estimate.cost.beta.badge": "Beta Version",
|
|
5
|
+
"estimate.cost.beta.discount": "% off during Beta",
|
|
6
|
+
"estimate.cost.beta.free": "Free During Beta",
|
|
7
|
+
"estimate.cost.description": "This summary provides a cost estimation based on your configuration, the amount of time you expect to use the resource for, and the scale of your expected usage. For the purposes of this calculation, we consider that 1 month equals to 730 hours.",
|
|
8
|
+
"estimate.cost.fees.commitment": "Commitment Fees",
|
|
9
|
+
"estimate.cost.fees.monthly.title": "Each month",
|
|
10
|
+
"estimate.cost.fees.oneTime.title": "One time fees",
|
|
11
|
+
"estimate.cost.label": "Estimated cost",
|
|
12
|
+
"estimate.cost.notDefined": "Not defined",
|
|
13
|
+
"estimate.cost.region.label": "Region",
|
|
14
|
+
"estimate.cost.submit.label": "Create",
|
|
15
|
+
"estimate.cost.units.days.label": "Day(s)",
|
|
16
|
+
"estimate.cost.units.gb.label": "GB",
|
|
17
|
+
"estimate.cost.units.hours.label": "Hour(s)",
|
|
18
|
+
"estimate.cost.units.minutes.label": "Minute(s)",
|
|
19
|
+
"estimate.cost.units.months.label": "Month(s)",
|
|
20
|
+
"estimate.cost.units.seconds.label": "Second(s)",
|
|
21
|
+
"estimate.cost.units.years.label": "Year(s)"
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { en_default as default };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export declare const paddingLeftCell: `var(--${string})`;
|
|
2
|
+
export declare const overlayMarginVar: `var(--${string})`;
|
|
3
|
+
export declare const estimateCostImage: string;
|
|
4
|
+
export declare const estimateCostTable: Record<"noTotal" | "total", string>;
|
|
5
|
+
export declare const estimateCostFeesTable: string;
|
|
6
|
+
export declare const estimateCostPriceColumn: string;
|
|
7
|
+
export declare const estimateCostPriceCell: string;
|
|
8
|
+
export declare const estimateCostCell: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
9
|
+
hasBorder: {
|
|
10
|
+
true: {
|
|
11
|
+
selectors: {
|
|
12
|
+
'&:before': {
|
|
13
|
+
borderBottom: `1px solid var(--${string})`;
|
|
14
|
+
bottom: number;
|
|
15
|
+
content: "''";
|
|
16
|
+
height: number;
|
|
17
|
+
left: number;
|
|
18
|
+
marginLeft: `var(--${string})`;
|
|
19
|
+
position: "absolute";
|
|
20
|
+
width: "calc(100% - 32px)";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
primary: {
|
|
26
|
+
true: {
|
|
27
|
+
background: `var(--${string})`;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}>;
|
|
31
|
+
export declare const estimateCostTotalPriceCell: string;
|
|
32
|
+
export declare const estimateCostEmptyTable: string;
|
|
33
|
+
export declare const estimateCostTitle: string;
|
|
34
|
+
export declare const estimateCostEmptyCell: string;
|
|
35
|
+
export declare const estimateCostTimeCell: string;
|
|
36
|
+
export declare const estimateCostBadgeBeta: Record<"long" | "short", string>;
|
|
37
|
+
export declare const estimateCostOverlayRow: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
38
|
+
hideFromOverlay: {
|
|
39
|
+
true: {
|
|
40
|
+
display: "none";
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
isFirstElement: {
|
|
44
|
+
true: {
|
|
45
|
+
border: number;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
shouldBeHidden: {
|
|
49
|
+
true: {
|
|
50
|
+
'@media': {
|
|
51
|
+
'(max-width: 1800px)': {
|
|
52
|
+
display: "none";
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
}>;
|
|
58
|
+
export declare const estimateCostBadge: string;
|
|
59
|
+
export declare const estimatecostFeesText: string;
|
|
60
|
+
export declare const estimateCostText: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
61
|
+
beta: {
|
|
62
|
+
true: {
|
|
63
|
+
marginLeft: `var(--${string})`;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
}>;
|
|
67
|
+
export declare const estimateCostCalculatorIcon: string;
|
|
68
|
+
export declare const estimateCostPriceCellContent: string;
|
|
69
|
+
export declare const estimateCostOverlayContainer: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
70
|
+
inView: {
|
|
71
|
+
false: {
|
|
72
|
+
bottom: number;
|
|
73
|
+
boxShadow: `var(--${string})`;
|
|
74
|
+
};
|
|
75
|
+
true: {
|
|
76
|
+
bottom: "-120px";
|
|
77
|
+
boxShadow: "0";
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
}>;
|
|
81
|
+
export declare const estimateCostList: string;
|
|
82
|
+
export declare const estimateCostSideItem: string;
|
|
83
|
+
export declare const estimateCostContent: Record<"compact" | "default", string>;
|
|
84
|
+
export declare const estimateCostCompact: string;
|
|
85
|
+
export declare const estimateCostCompactText: string;
|
|
86
|
+
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/EstimateCost/styles.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe,oBAAc,CAAA;AAC1C,eAAO,MAAM,gBAAgB,oBAAc,CAAA;AAE3C,eAAO,MAAM,iBAAiB,QAG5B,CAAA;AAOF,eAAO,MAAM,iBAAiB,qCAG5B,CAAA;AAEF,eAAO,MAAM,qBAAqB,QAGhC,CAAA;AAEF,eAAO,MAAM,uBAAuB,QAElC,CAAA;AAEF,eAAO,MAAM,qBAAqB,QAKhC,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;EA+B3B,CAAA;AAEF,eAAO,MAAM,0BAA0B,QAUrC,CAAA;AAEF,eAAO,MAAM,sBAAsB,QAKjC,CAAA;AAEF,eAAO,MAAM,iBAAiB,QAQ5B,CAAA;AAEF,eAAO,MAAM,qBAAqB,QAAmC,CAAA;AAErE,eAAO,MAAM,oBAAoB,QAM/B,CAAA;AAMF,eAAO,MAAM,qBAAqB,kCAGhC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;EA8BjC,CAAA;AAEF,eAAO,MAAM,iBAAiB,QAM5B,CAAA;AAEF,eAAO,MAAM,oBAAoB,QAE/B,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;EAW3B,CAAA;AAEF,eAAO,MAAM,0BAA0B,QAAyC,CAAA;AAEhF,eAAO,MAAM,4BAA4B,QAEvC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;EAyBvC,CAAA;AAEF,eAAO,MAAM,gBAAgB,QAO3B,CAAA;AAEF,eAAO,MAAM,oBAAoB,QAI/B,CAAA;AAEF,eAAO,MAAM,mBAAmB,uCAK9B,CAAA;AAEF,eAAO,MAAM,mBAAmB,QAG9B,CAAA;AAEF,eAAO,MAAM,uBAAuB,QAMlC,CAAA"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
|
+
|
|
4
|
+
//#region src/components/compositions/EstimateCost/styles.css.ts
|
|
5
|
+
var paddingLeftCell = "var(--uv_mq8p7m0)";
|
|
6
|
+
var overlayMarginVar = "var(--uv_mq8p7m1)";
|
|
7
|
+
var estimateCostImage = "uv_mq8p7m2";
|
|
8
|
+
var estimateCostTable = {
|
|
9
|
+
noTotal: "uv_mq8p7m4 uv_mq8p7m3",
|
|
10
|
+
total: "uv_mq8p7m5 uv_mq8p7m3"
|
|
11
|
+
};
|
|
12
|
+
var estimateCostFeesTable = "uv_mq8p7m6 uv_mq8p7m3";
|
|
13
|
+
var estimateCostPriceColumn = "uv_mq8p7m7";
|
|
14
|
+
var estimateCostPriceCell = "uv_mq8p7m8";
|
|
15
|
+
var estimateCostCell = createRuntimeFn({
|
|
16
|
+
defaultClassName: "uv_mq8p7m9",
|
|
17
|
+
variantClassNames: {
|
|
18
|
+
hasBorder: { true: "uv_mq8p7ma" },
|
|
19
|
+
primary: { true: "uv_mq8p7mb" }
|
|
20
|
+
},
|
|
21
|
+
defaultVariants: {},
|
|
22
|
+
compoundVariants: []
|
|
23
|
+
});
|
|
24
|
+
var estimateCostTotalPriceCell = "uv_mq8p7mc";
|
|
25
|
+
var estimateCostEmptyTable = "uv_mq8p7md";
|
|
26
|
+
var estimateCostTitle = "uv_mq8p7me";
|
|
27
|
+
var estimateCostEmptyCell = "uv_mq8p7mf";
|
|
28
|
+
var estimateCostTimeCell = "uv_mq8p7mg";
|
|
29
|
+
var estimateCostBadgeBeta = {
|
|
30
|
+
"long": "uv_mq8p7mi uv_mq8p7mh",
|
|
31
|
+
"short": "uv_mq8p7mj uv_mq8p7mh"
|
|
32
|
+
};
|
|
33
|
+
var estimateCostOverlayRow = createRuntimeFn({
|
|
34
|
+
defaultClassName: "uv_mq8p7mk",
|
|
35
|
+
variantClassNames: {
|
|
36
|
+
hideFromOverlay: { true: "uv_mq8p7ml" },
|
|
37
|
+
isFirstElement: { true: "uv_mq8p7mm" },
|
|
38
|
+
shouldBeHidden: { true: "uv_mq8p7mn" }
|
|
39
|
+
},
|
|
40
|
+
defaultVariants: {},
|
|
41
|
+
compoundVariants: []
|
|
42
|
+
});
|
|
43
|
+
var estimateCostBadge = "uv_mq8p7mo";
|
|
44
|
+
var estimatecostFeesText = "uv_mq8p7mp";
|
|
45
|
+
var estimateCostText = createRuntimeFn({
|
|
46
|
+
defaultClassName: "uv_mq8p7mq",
|
|
47
|
+
variantClassNames: { beta: { true: "uv_mq8p7mr" } },
|
|
48
|
+
defaultVariants: {},
|
|
49
|
+
compoundVariants: []
|
|
50
|
+
});
|
|
51
|
+
var estimateCostCalculatorIcon = "uv_mq8p7ms";
|
|
52
|
+
var estimateCostPriceCellContent = "uv_mq8p7mt";
|
|
53
|
+
var estimateCostOverlayContainer = createRuntimeFn({
|
|
54
|
+
defaultClassName: "uv_mq8p7mu",
|
|
55
|
+
variantClassNames: { inView: {
|
|
56
|
+
false: "uv_mq8p7mv",
|
|
57
|
+
true: "uv_mq8p7mw"
|
|
58
|
+
} },
|
|
59
|
+
defaultVariants: {},
|
|
60
|
+
compoundVariants: []
|
|
61
|
+
});
|
|
62
|
+
var estimateCostList = "uv_mq8p7mx";
|
|
63
|
+
var estimateCostSideItem = "uv_mq8p7my";
|
|
64
|
+
var estimateCostContent = {
|
|
65
|
+
compact: "uv_mq8p7mz",
|
|
66
|
+
"default": "uv_mq8p7m10"
|
|
67
|
+
};
|
|
68
|
+
var estimateCostCompact = "uv_mq8p7m11";
|
|
69
|
+
var estimateCostCompactText = "uv_mq8p7m12";
|
|
70
|
+
|
|
71
|
+
//#endregion
|
|
72
|
+
export { estimateCostBadge, estimateCostBadgeBeta, estimateCostCalculatorIcon, estimateCostCell, estimateCostCompact, estimateCostCompactText, estimateCostContent, estimateCostEmptyCell, estimateCostEmptyTable, estimateCostFeesTable, estimateCostImage, estimateCostList, estimateCostOverlayContainer, estimateCostOverlayRow, estimateCostPriceCell, estimateCostPriceCellContent, estimateCostPriceColumn, estimateCostSideItem, estimateCostTable, estimateCostText, estimateCostTimeCell, estimateCostTitle, estimateCostTotalPriceCell, estimatecostFeesText, overlayMarginVar, paddingLeftCell };
|