@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,37 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { useEstimateCost } from "../EstimateCostProvider.js";
|
|
4
|
+
import { estimateCostImage } from "../styles.css.js";
|
|
5
|
+
import { Item } from "./Item.js";
|
|
6
|
+
import { Strong } from "./Strong.js";
|
|
7
|
+
import { memo } from "react";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
|
|
10
|
+
//#region src/components/compositions/EstimateCost/Components/Zone.tsx
|
|
11
|
+
const Zone = memo(({ label, image, shouldBeHidden = false, priceText, animated = false, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, style }) => {
|
|
12
|
+
const { locales } = useEstimateCost();
|
|
13
|
+
return /* @__PURE__ */ jsx(Item, {
|
|
14
|
+
animated,
|
|
15
|
+
discount,
|
|
16
|
+
isFirstElement,
|
|
17
|
+
isLastElement,
|
|
18
|
+
iteration,
|
|
19
|
+
label: locales["estimate.cost.az.label"],
|
|
20
|
+
noBorder,
|
|
21
|
+
noPrice,
|
|
22
|
+
priceText,
|
|
23
|
+
productsCallback,
|
|
24
|
+
shouldBeHidden,
|
|
25
|
+
style,
|
|
26
|
+
children: /* @__PURE__ */ jsxs(Strong, { children: [/* @__PURE__ */ jsx("img", {
|
|
27
|
+
alt: label,
|
|
28
|
+
className: estimateCostImage,
|
|
29
|
+
height: "auto",
|
|
30
|
+
src: image,
|
|
31
|
+
width: "auto"
|
|
32
|
+
}), label] })
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
export { Zone };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export declare const maxWidthTextVar: `var(--${string})`;
|
|
2
|
+
export declare const maxWidthText: string;
|
|
3
|
+
export declare const estimateCostImage: string;
|
|
4
|
+
export declare const estimateCostTr: string;
|
|
5
|
+
export declare const styledDiv: string;
|
|
6
|
+
export declare const estimateCostLeftSide: string;
|
|
7
|
+
export declare const estimateCostItemResourceName: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
8
|
+
animated: {
|
|
9
|
+
true: {
|
|
10
|
+
animation: `800ms ${string}`;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}>;
|
|
14
|
+
export declare const estimateCostResourceName: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
15
|
+
isAnimated: {
|
|
16
|
+
true: {
|
|
17
|
+
animation: `${string} 800ms`;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
isOverlay: {
|
|
21
|
+
false: {
|
|
22
|
+
textAlign: "right";
|
|
23
|
+
};
|
|
24
|
+
true: {
|
|
25
|
+
display: "flex";
|
|
26
|
+
flexDirection: "column";
|
|
27
|
+
height: `var(--${string})`;
|
|
28
|
+
justifyContent: "center";
|
|
29
|
+
textAlign: "initial";
|
|
30
|
+
WebkitBoxPack: "center";
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
}>;
|
|
34
|
+
export declare const estimateCostBadgeItem: string;
|
|
35
|
+
export declare const estimateCostTextItem: string;
|
|
36
|
+
export declare const estimateCostMaxWidthText: string;
|
|
37
|
+
export declare const estimateCostTooltip: string;
|
|
38
|
+
export declare const estimateCostLineThrough: string;
|
|
39
|
+
export declare const estimateCostRegular: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
40
|
+
isOverlay: {
|
|
41
|
+
false: {
|
|
42
|
+
display: "inline-flex";
|
|
43
|
+
};
|
|
44
|
+
true: {
|
|
45
|
+
display: "flex";
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
variant: {
|
|
49
|
+
big: {};
|
|
50
|
+
capitalized: {};
|
|
51
|
+
normal: {};
|
|
52
|
+
small: {
|
|
53
|
+
color: `var(--${string})`;
|
|
54
|
+
display: "block";
|
|
55
|
+
fontSize: number;
|
|
56
|
+
lineHeight: number;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
}>;
|
|
60
|
+
export declare const estimateCostStrong: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
61
|
+
variant: {
|
|
62
|
+
big: {
|
|
63
|
+
fontSize: number;
|
|
64
|
+
};
|
|
65
|
+
capitalized: {
|
|
66
|
+
fontSize: number;
|
|
67
|
+
textTransform: "capitalize";
|
|
68
|
+
};
|
|
69
|
+
normal: {
|
|
70
|
+
fontSize: number;
|
|
71
|
+
};
|
|
72
|
+
small: {
|
|
73
|
+
fontSize: number;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
}>;
|
|
77
|
+
export declare const estimateCostNumberInput: string;
|
|
78
|
+
//# sourceMappingURL=components.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.css.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/EstimateCost/Components/components.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe,oBAAc,CAAA;AAE1C,eAAO,MAAM,YAAY,QAEvB,CAAA;AAEF,eAAO,MAAM,iBAAiB,QAG5B,CAAA;AAEF,eAAO,MAAM,cAAc,QAAY,CAAA;AAEvC,eAAO,MAAM,SAAS,QAA4C,CAAA;AAElE,eAAO,MAAM,oBAAoB,QAS/B,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;EAkBvC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;EAyBnC,CAAA;AAEF,eAAO,MAAM,qBAAqB,QAGhC,CAAA;AAEF,eAAO,MAAM,oBAAoB,QAE/B,CAAA;AAEF,eAAO,MAAM,wBAAwB,QAEnC,CAAA;AAEF,eAAO,MAAM,mBAAmB,QAAuC,CAAA;AAEvE,eAAO,MAAM,uBAAuB,QAGlC,CAAA;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;EAiC9B,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;EA4B7B,CAAA;AAEF,eAAO,MAAM,uBAAuB,QAQlC,CAAA"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
5
|
+
|
|
6
|
+
//#region src/components/compositions/EstimateCost/Components/components.css.ts
|
|
7
|
+
var maxWidthTextVar = "var(--uv_pk0duk0)";
|
|
8
|
+
var maxWidthText = "uv_pk0duk1";
|
|
9
|
+
var estimateCostTr = "uv_pk0duk3";
|
|
10
|
+
var styledDiv = "uv_pk0duk4";
|
|
11
|
+
var estimateCostLeftSide = "uv_pk0duk5";
|
|
12
|
+
var estimateCostItemResourceName = createRuntimeFn({
|
|
13
|
+
defaultClassName: "uv_pk0duk6",
|
|
14
|
+
variantClassNames: { animated: { true: "uv_pk0duk7" } },
|
|
15
|
+
defaultVariants: { animated: false },
|
|
16
|
+
compoundVariants: []
|
|
17
|
+
});
|
|
18
|
+
var estimateCostResourceName = createRuntimeFn({
|
|
19
|
+
defaultClassName: "uv_pk0duk8",
|
|
20
|
+
variantClassNames: {
|
|
21
|
+
isAnimated: { true: "uv_pk0duk9" },
|
|
22
|
+
isOverlay: {
|
|
23
|
+
false: "uv_pk0duka",
|
|
24
|
+
true: "uv_pk0dukb"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
isAnimated: false,
|
|
29
|
+
isOverlay: false
|
|
30
|
+
},
|
|
31
|
+
compoundVariants: []
|
|
32
|
+
});
|
|
33
|
+
var estimateCostBadgeItem = "uv_pk0dukc";
|
|
34
|
+
var estimateCostTextItem = "uv_pk0dukd";
|
|
35
|
+
var estimateCostMaxWidthText = "uv_pk0duke";
|
|
36
|
+
var estimateCostTooltip = "uv_pk0dukf";
|
|
37
|
+
var estimateCostLineThrough = "uv_pk0dukg";
|
|
38
|
+
var estimateCostRegular = createRuntimeFn({
|
|
39
|
+
defaultClassName: "uv_pk0dukh",
|
|
40
|
+
variantClassNames: {
|
|
41
|
+
isOverlay: {
|
|
42
|
+
false: "uv_pk0duki",
|
|
43
|
+
true: "uv_pk0dukj"
|
|
44
|
+
},
|
|
45
|
+
variant: {
|
|
46
|
+
big: "uv_pk0dukk",
|
|
47
|
+
capitalized: "uv_pk0dukl",
|
|
48
|
+
normal: "uv_pk0dukm",
|
|
49
|
+
small: "uv_pk0dukn"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
defaultVariants: {
|
|
53
|
+
isOverlay: false,
|
|
54
|
+
variant: "normal"
|
|
55
|
+
},
|
|
56
|
+
compoundVariants: []
|
|
57
|
+
});
|
|
58
|
+
var estimateCostStrong = createRuntimeFn({
|
|
59
|
+
defaultClassName: "uv_pk0duko",
|
|
60
|
+
variantClassNames: { variant: {
|
|
61
|
+
big: "uv_pk0dukp",
|
|
62
|
+
capitalized: "uv_pk0dukq",
|
|
63
|
+
normal: "uv_pk0dukr",
|
|
64
|
+
small: "uv_pk0duks"
|
|
65
|
+
} },
|
|
66
|
+
defaultVariants: { variant: "normal" },
|
|
67
|
+
compoundVariants: []
|
|
68
|
+
});
|
|
69
|
+
var estimateCostNumberInput = "uv_pk0dukt";
|
|
70
|
+
|
|
71
|
+
//#endregion
|
|
72
|
+
export { estimateCostBadgeItem, estimateCostItemResourceName, estimateCostLeftSide, estimateCostLineThrough, estimateCostMaxWidthText, estimateCostNumberInput, estimateCostRegular, estimateCostResourceName, estimateCostStrong, estimateCostTextItem, estimateCostTooltip, estimateCostTr, maxWidthText, maxWidthTextVar, styledDiv };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { EstimateCostProps } from './types';
|
|
2
|
+
export declare const EstimateCostContent: ({ description, alert, alertTitle, alertVariant, defaultTimeUnit, timeUnits, hideOverlay, disableOverlayLeft, disableOverlayRight, hideTimeUnit, hideTotal, hideHourlyPriceOnTotal, discount, OverlayRight, OverlayLeft, isBeta, commitmentFees, commitmentFeesContent, monthlyFees, monthlyFeesLabel, monthlyFeesContent, overlayUnit, children, locales, overlayMargin, onTotalPriceChange, style, compact, }: EstimateCostProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=EstimateCostContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EstimateCostContent.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/EstimateCost/EstimateCostContent.tsx"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAEV,iBAAiB,EAIlB,MAAM,SAAS,CAAA;AAIhB,eAAO,MAAM,mBAAmB,gdAiT/B,CAAA"}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { Stack } from "../../Stack/index.js";
|
|
4
|
+
import { Text } from "../../Text/index.js";
|
|
5
|
+
import { maximumFractionDigits, maximumFractionDigitsLong } from "./constants.js";
|
|
6
|
+
import en_default from "./locales/en.js";
|
|
7
|
+
import { useEstimateCost } from "./EstimateCostProvider.js";
|
|
8
|
+
import { calculatePrice } from "./helper.js";
|
|
9
|
+
import { OverlayContextProvider } from "./OverlayContext.js";
|
|
10
|
+
import { estimateCostContent, estimateCostFeesTable, estimatecostFeesText } from "./styles.css.js";
|
|
11
|
+
import { Item } from "./Components/Item.js";
|
|
12
|
+
import { Alert } from "../../Alert/index.js";
|
|
13
|
+
import { CompactEstimateCost } from "./CompactEstimateCost.js";
|
|
14
|
+
import { ChildrenComponent, DescriptionComponent, TotalComponent } from "./Components/ContentComponents.js";
|
|
15
|
+
import { OverlayComponent } from "./OverlayComponent.js";
|
|
16
|
+
import { useEffect, useMemo, useState } from "react";
|
|
17
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
+
import { useInView } from "react-intersection-observer";
|
|
19
|
+
|
|
20
|
+
//#region src/components/compositions/EstimateCost/EstimateCostContent.tsx
|
|
21
|
+
const DEFAULT_UNIT_LIST = [
|
|
22
|
+
"hours",
|
|
23
|
+
"days",
|
|
24
|
+
"months"
|
|
25
|
+
];
|
|
26
|
+
const EstimateCostContent = ({ description, alert, alertTitle, alertVariant = "warning", defaultTimeUnit = "hours", timeUnits = DEFAULT_UNIT_LIST, hideOverlay = false, disableOverlayLeft = false, disableOverlayRight = false, hideTimeUnit = false, hideTotal = false, hideHourlyPriceOnTotal = false, discount = 0, OverlayRight, OverlayLeft, isBeta = false, commitmentFees, commitmentFeesContent, monthlyFees, monthlyFeesLabel, monthlyFeesContent, overlayUnit = "hours", children = null, locales = en_default, overlayMargin, onTotalPriceChange, style, compact }) => {
|
|
27
|
+
const [ref, inView] = useInView();
|
|
28
|
+
const { formatNumber } = useEstimateCost();
|
|
29
|
+
const [products, setProducts] = useState([]);
|
|
30
|
+
const [totalPrice, setTotalPrice] = useState({
|
|
31
|
+
hourly: 0,
|
|
32
|
+
maxHourly: 0,
|
|
33
|
+
maxOverlayHourly: 0,
|
|
34
|
+
maxTotal: 0,
|
|
35
|
+
overlayHourly: 0,
|
|
36
|
+
total: 0
|
|
37
|
+
});
|
|
38
|
+
const [iteration, setIteration] = useState({
|
|
39
|
+
unit: defaultTimeUnit !== null && defaultTimeUnit !== void 0 ? defaultTimeUnit : "hours",
|
|
40
|
+
value: 1
|
|
41
|
+
});
|
|
42
|
+
const [isLongFractionDigits, setIsLongFractionDigits] = useState(false);
|
|
43
|
+
const providerValue = useMemo(() => ({ isOverlay: false }), []);
|
|
44
|
+
const totalValue = useMemo(() => formatNumber(totalPrice.total < 0 ? 0 : totalPrice.total, { maximumFractionDigits: isLongFractionDigits ? maximumFractionDigitsLong[iteration.unit] : maximumFractionDigits[iteration.unit] }), [
|
|
45
|
+
formatNumber,
|
|
46
|
+
isLongFractionDigits,
|
|
47
|
+
iteration.unit,
|
|
48
|
+
totalPrice.total
|
|
49
|
+
]);
|
|
50
|
+
const totalMaxValue = useMemo(() => formatNumber(totalPrice.maxTotal < 0 ? 0 : totalPrice.maxTotal, { maximumFractionDigits: isLongFractionDigits ? maximumFractionDigitsLong[iteration.unit] : maximumFractionDigits[iteration.unit] }), [
|
|
51
|
+
formatNumber,
|
|
52
|
+
isLongFractionDigits,
|
|
53
|
+
iteration.unit,
|
|
54
|
+
totalPrice.maxTotal
|
|
55
|
+
]);
|
|
56
|
+
const productsCallback = useMemo(() => ({
|
|
57
|
+
add: (newProduct) => {
|
|
58
|
+
setProducts((total) => {
|
|
59
|
+
if (total.find((product) => product.id === newProduct.id)) return total.map((product) => product.id === newProduct.id ? newProduct : product);
|
|
60
|
+
return [...total, newProduct];
|
|
61
|
+
});
|
|
62
|
+
},
|
|
63
|
+
remove: ({ id }) => {
|
|
64
|
+
setProducts((total) => total.filter((product) => product.id !== id));
|
|
65
|
+
}
|
|
66
|
+
}), [setProducts]);
|
|
67
|
+
useEffect(() => {
|
|
68
|
+
const isMaxAmountInProducts = products.find((product) => product.maxAmount);
|
|
69
|
+
setIsLongFractionDigits(!!products.find((product) => product.longFractionDigits));
|
|
70
|
+
setTotalPrice({
|
|
71
|
+
hourly: products.reduce((acc, product) => acc + (product.noIteration ? 0 : (product.price - product.price * product.discount) * Math.max(product.amount - product.amountFree, 0)), 0),
|
|
72
|
+
maxHourly: isMaxAmountInProducts ? products.reduce((acc, product) => acc && product.noIteration ? 0 : (product.price - product.price * product.discount) * Math.max(product.maxAmount - product.amountFree, 0), 0) : 0,
|
|
73
|
+
maxOverlayHourly: isMaxAmountInProducts ? products.reduce((acc, product) => acc + (product.noIteration ? 0 : (product.price - product.price * product.discount) * Math.max(product.maxAmount - product.amountFree, 0)), 0) : 0,
|
|
74
|
+
maxTotal: isMaxAmountInProducts ? products.reduce((acc, product) => acc + calculatePrice({
|
|
75
|
+
amount: product.maxAmount || product.amount,
|
|
76
|
+
amountFree: product.amountFree,
|
|
77
|
+
discount: product.discount,
|
|
78
|
+
price: product.price,
|
|
79
|
+
timeAmount: product.noIteration ? 1 : iteration.value,
|
|
80
|
+
timeUnit: product.noIteration ? "hours" : iteration.unit
|
|
81
|
+
}), 0) : 0,
|
|
82
|
+
overlayHourly: products.reduce((acc, product) => acc + (product.noIteration ? 0 : (product.price - product.price * product.discount) * Math.max(product.amount - product.amountFree, 0)), 0),
|
|
83
|
+
total: hideTotal ? 0 : products.reduce((acc, product) => acc + calculatePrice({
|
|
84
|
+
amount: product.amount,
|
|
85
|
+
amountFree: product.amountFree,
|
|
86
|
+
discount: product.discount,
|
|
87
|
+
price: product.price,
|
|
88
|
+
timeAmount: product.noIteration ? 1 : iteration.value,
|
|
89
|
+
timeUnit: product.noIteration ? "hours" : iteration.unit
|
|
90
|
+
}), 0)
|
|
91
|
+
});
|
|
92
|
+
onTotalPriceChange === null || onTotalPriceChange === void 0 || onTotalPriceChange({
|
|
93
|
+
total: totalPrice.total,
|
|
94
|
+
totalMax: totalPrice.maxTotal > 0 ? totalPrice.maxTotal : void 0
|
|
95
|
+
});
|
|
96
|
+
}, [
|
|
97
|
+
hideTotal,
|
|
98
|
+
products,
|
|
99
|
+
iteration,
|
|
100
|
+
setTotalPrice,
|
|
101
|
+
onTotalPriceChange,
|
|
102
|
+
totalPrice.total,
|
|
103
|
+
totalPrice.maxTotal,
|
|
104
|
+
totalValue,
|
|
105
|
+
totalMaxValue
|
|
106
|
+
]);
|
|
107
|
+
useEffect(() => {
|
|
108
|
+
if (hideTimeUnit && (iteration.value > 1 || iteration.unit !== (defaultTimeUnit !== null && defaultTimeUnit !== void 0 ? defaultTimeUnit : "hours"))) setIteration({
|
|
109
|
+
unit: defaultTimeUnit !== null && defaultTimeUnit !== void 0 ? defaultTimeUnit : "hours",
|
|
110
|
+
value: 1
|
|
111
|
+
});
|
|
112
|
+
}, [
|
|
113
|
+
hideTimeUnit,
|
|
114
|
+
iteration,
|
|
115
|
+
defaultTimeUnit
|
|
116
|
+
]);
|
|
117
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [compact ? /* @__PURE__ */ jsx(CompactEstimateCost, {
|
|
118
|
+
iteration,
|
|
119
|
+
label: locales["estimate.cost.label"],
|
|
120
|
+
totalPrice
|
|
121
|
+
}) : null, /* @__PURE__ */ jsxs(Stack, {
|
|
122
|
+
className: estimateCostContent[compact ? "compact" : "default"],
|
|
123
|
+
gap: 2,
|
|
124
|
+
style,
|
|
125
|
+
children: [
|
|
126
|
+
hideOverlay ? null : /* @__PURE__ */ jsx(OverlayComponent, {
|
|
127
|
+
disableOverlayLeft,
|
|
128
|
+
disableOverlayRight,
|
|
129
|
+
discount,
|
|
130
|
+
inView,
|
|
131
|
+
isBeta,
|
|
132
|
+
OverlayLeft,
|
|
133
|
+
OverlayRight,
|
|
134
|
+
overlayMargin,
|
|
135
|
+
totalPrice,
|
|
136
|
+
unit: overlayUnit,
|
|
137
|
+
children
|
|
138
|
+
}),
|
|
139
|
+
description === false ? null : /* @__PURE__ */ jsx(DescriptionComponent, {
|
|
140
|
+
description,
|
|
141
|
+
locales
|
|
142
|
+
}),
|
|
143
|
+
alert ? /* @__PURE__ */ jsx(Alert, {
|
|
144
|
+
sentiment: alertVariant,
|
|
145
|
+
title: alertTitle,
|
|
146
|
+
children: alert
|
|
147
|
+
}) : null,
|
|
148
|
+
/* @__PURE__ */ jsx(OverlayContextProvider, {
|
|
149
|
+
value: providerValue,
|
|
150
|
+
children: /* @__PURE__ */ jsxs("div", { children: [
|
|
151
|
+
children ? /* @__PURE__ */ jsx(ChildrenComponent, {
|
|
152
|
+
defaultTimeUnit,
|
|
153
|
+
discount,
|
|
154
|
+
hideTimeUnit,
|
|
155
|
+
hideTotal,
|
|
156
|
+
iteration,
|
|
157
|
+
productsCallback,
|
|
158
|
+
ref,
|
|
159
|
+
setIteration,
|
|
160
|
+
timeUnits,
|
|
161
|
+
children
|
|
162
|
+
}) : null,
|
|
163
|
+
hideTotal ? null : /* @__PURE__ */ jsx(TotalComponent, {
|
|
164
|
+
discount,
|
|
165
|
+
hideHourlyPriceOnTotal,
|
|
166
|
+
isBeta,
|
|
167
|
+
isLongFractionDigits,
|
|
168
|
+
totalMaxValue,
|
|
169
|
+
totalPrice,
|
|
170
|
+
totalValue
|
|
171
|
+
}),
|
|
172
|
+
commitmentFees !== void 0 || monthlyFees !== void 0 ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Text, {
|
|
173
|
+
as: "h3",
|
|
174
|
+
className: estimatecostFeesText,
|
|
175
|
+
variant: "headingSmall",
|
|
176
|
+
children: locales[`estimate.cost.fees.${commitmentFees ? "oneTime" : "monthly"}.title`]
|
|
177
|
+
}), /* @__PURE__ */ jsx("table", {
|
|
178
|
+
className: estimateCostFeesTable,
|
|
179
|
+
children: /* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsx(Item, {
|
|
180
|
+
isLastElement: true,
|
|
181
|
+
label: commitmentFees ? locales["estimate.cost.fees.commitment"] : monthlyFeesLabel,
|
|
182
|
+
noIteration: true,
|
|
183
|
+
price: commitmentFees || monthlyFees,
|
|
184
|
+
productsCallback: {
|
|
185
|
+
add: () => {},
|
|
186
|
+
remove: () => {}
|
|
187
|
+
},
|
|
188
|
+
children: commitmentFees ? commitmentFeesContent : monthlyFeesContent
|
|
189
|
+
}) })
|
|
190
|
+
})] }) : null
|
|
191
|
+
] })
|
|
192
|
+
})
|
|
193
|
+
]
|
|
194
|
+
})] });
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
//#endregion
|
|
198
|
+
export { EstimateCostContent };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import EstimateCostLocales from './locales/en';
|
|
3
|
+
export declare const useEstimateCost: () => {
|
|
4
|
+
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>;
|
|
5
|
+
formatNumber: (number: number, options: FormatNumberOption) => string;
|
|
6
|
+
};
|
|
7
|
+
type EstimateCostProviderProps = {
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
locales?: Record<keyof typeof EstimateCostLocales, string>;
|
|
10
|
+
currency?: string;
|
|
11
|
+
numberLocales?: string;
|
|
12
|
+
};
|
|
13
|
+
type FormatNumberOption = {
|
|
14
|
+
currencyDisplay?: 'symbol' | 'code' | 'name';
|
|
15
|
+
unit?: string;
|
|
16
|
+
unitDisplay?: 'long' | 'short' | 'narrow';
|
|
17
|
+
useGrouping?: boolean;
|
|
18
|
+
minimumIntegerDigits?: number;
|
|
19
|
+
minimumFractionDigits?: number;
|
|
20
|
+
maximumFractionDigits?: number;
|
|
21
|
+
minimumSignificantDigits?: number;
|
|
22
|
+
maximumSignificantDigits?: number;
|
|
23
|
+
};
|
|
24
|
+
export declare const EstimateCostProvider: ({ children, locales, currency, numberLocales, }: EstimateCostProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=EstimateCostProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EstimateCostProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/EstimateCost/EstimateCostProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,mBAAmB,MAAM,cAAc,CAAA;AAQ9C,eAAO,MAAM,eAAe;;;CAAwC,CAAA;AAEpE,KAAK,yBAAyB,GAAG;IAC/B,QAAQ,EAAE,SAAS,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,OAAO,mBAAmB,EAAE,MAAM,CAAC,CAAA;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,KAAK,kBAAkB,GAAG;IACxB,eAAe,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAA;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAA;IACzC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,wBAAwB,CAAC,EAAE,MAAM,CAAA;IACjC,wBAAwB,CAAC,EAAE,MAAM,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,oBAAoB,yHAsChC,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 en_default from "./locales/en.js";
|
|
5
|
+
import { createContext, useCallback, useContext, useMemo } from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/compositions/EstimateCost/EstimateCostProvider.tsx
|
|
9
|
+
const EstimateCostContext = createContext({
|
|
10
|
+
formatNumber: () => "",
|
|
11
|
+
locales: en_default
|
|
12
|
+
});
|
|
13
|
+
const useEstimateCost = () => useContext(EstimateCostContext);
|
|
14
|
+
const EstimateCostProvider = ({ children, locales, currency, numberLocales }) => {
|
|
15
|
+
const newLocales = useMemo(() => locales ? _objectSpread2(_objectSpread2({}, en_default), locales) : en_default, [locales]);
|
|
16
|
+
const formatNumber = useCallback((number, options) => {
|
|
17
|
+
return new Intl.NumberFormat(numberLocales, _objectSpread2({
|
|
18
|
+
currency,
|
|
19
|
+
style: "currency"
|
|
20
|
+
}, options)).format(number);
|
|
21
|
+
}, [currency, numberLocales]);
|
|
22
|
+
const value = useMemo(() => ({
|
|
23
|
+
formatNumber,
|
|
24
|
+
locales: newLocales
|
|
25
|
+
}), [formatNumber, newLocales]);
|
|
26
|
+
return /* @__PURE__ */ jsx(EstimateCostContext.Provider, {
|
|
27
|
+
value,
|
|
28
|
+
children
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
export { EstimateCostProvider, useEstimateCost };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { JSX, ReactNode } from 'react';
|
|
2
|
+
import type { Units } from './types';
|
|
3
|
+
type OverlayComponentProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
disableOverlayLeft?: boolean;
|
|
6
|
+
disableOverlayRight?: boolean;
|
|
7
|
+
discount?: number;
|
|
8
|
+
inView?: boolean;
|
|
9
|
+
isBeta?: boolean;
|
|
10
|
+
unit: Units;
|
|
11
|
+
OverlayLeft?: (props: {
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}) => JSX.Element;
|
|
15
|
+
OverlayRight?: (props: {
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
}) => JSX.Element;
|
|
19
|
+
totalPrice: {
|
|
20
|
+
maxOverlayHourly: number;
|
|
21
|
+
overlayHourly: number;
|
|
22
|
+
};
|
|
23
|
+
overlayMargin?: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const OverlayComponent: ({ children, inView, discount, OverlayRight, disableOverlayRight, OverlayLeft, disableOverlayLeft, totalPrice, unit, isBeta, overlayMargin, }: OverlayComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=OverlayComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OverlayComponent.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/EstimateCost/OverlayComponent.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAkB3C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAOpC,KAAK,qBAAqB,GAAG;IAC3B,QAAQ,EAAE,SAAS,CAAA;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,KAAK,CAAA;IACX,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE;QACpB,QAAQ,EAAE,SAAS,CAAA;QACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;KACnB,KAAK,GAAG,CAAC,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE;QACrB,QAAQ,CAAC,EAAE,SAAS,CAAA;QACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;KACnB,KAAK,GAAG,CAAC,OAAO,CAAA;IACjB,UAAU,EAAE;QACV,gBAAgB,EAAE,MAAM,CAAA;QACxB,aAAa,EAAE,MAAM,CAAA;KACtB,CAAA;IACD,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,gBAAgB,kNAwG5B,CAAA"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { Stack } from "../../Stack/index.js";
|
|
4
|
+
import { Badge } from "../../Badge/index.js";
|
|
5
|
+
import { estimateCostResourceName } from "./Components/components.css.js";
|
|
6
|
+
import { maximumFractionDigits, multiplier } from "./constants.js";
|
|
7
|
+
import { useEstimateCost } from "./EstimateCostProvider.js";
|
|
8
|
+
import { OverlayContextProvider } from "./OverlayContext.js";
|
|
9
|
+
import { estimateCostBadge, estimateCostList, estimateCostOverlayContainer, estimateCostOverlayRow, estimateCostSideItem, overlayMarginVar } from "./styles.css.js";
|
|
10
|
+
import { LineThrough } from "./Components/LineThrough.js";
|
|
11
|
+
import { Strong } from "./Components/Strong.js";
|
|
12
|
+
import { Children, cloneElement, isValidElement, useMemo } from "react";
|
|
13
|
+
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
14
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
import { CalculatorIcon } from "@ultraviolet/icons/CalculatorIcon";
|
|
16
|
+
|
|
17
|
+
//#region src/components/compositions/EstimateCost/OverlayComponent.tsx
|
|
18
|
+
const OverlayComponent = ({ children, inView = false, discount = 1, OverlayRight, disableOverlayRight = false, OverlayLeft, disableOverlayLeft = false, totalPrice, unit = "hours", isBeta = false, overlayMargin }) => {
|
|
19
|
+
const { locales, formatNumber } = useEstimateCost();
|
|
20
|
+
const value = useMemo(() => ({ isOverlay: true }), []);
|
|
21
|
+
const totalOverlayPrice = {
|
|
22
|
+
days: totalPrice.maxOverlayHourly * multiplier.days,
|
|
23
|
+
hours: totalPrice.maxOverlayHourly,
|
|
24
|
+
minutes: totalPrice.maxOverlayHourly * multiplier.minutes,
|
|
25
|
+
months: totalPrice.maxOverlayHourly * multiplier.months,
|
|
26
|
+
seconds: totalPrice.maxOverlayHourly * multiplier.seconds
|
|
27
|
+
}[unit];
|
|
28
|
+
const overlayPrice = {
|
|
29
|
+
days: totalPrice.overlayHourly * multiplier.days,
|
|
30
|
+
hours: totalPrice.overlayHourly,
|
|
31
|
+
minutes: totalPrice.overlayHourly * multiplier.minutes,
|
|
32
|
+
months: totalPrice.overlayHourly * multiplier.months,
|
|
33
|
+
seconds: totalPrice.overlayHourly * multiplier.seconds
|
|
34
|
+
}[unit];
|
|
35
|
+
return /* @__PURE__ */ jsx(OverlayContextProvider, {
|
|
36
|
+
value,
|
|
37
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
38
|
+
className: estimateCostOverlayContainer({ inView }),
|
|
39
|
+
"data-testid": "summary-overlay",
|
|
40
|
+
style: assignInlineVars({ [overlayMarginVar]: overlayMargin !== null && overlayMargin !== void 0 ? overlayMargin : "0" }),
|
|
41
|
+
children: /* @__PURE__ */ jsxs("ul", {
|
|
42
|
+
className: estimateCostList,
|
|
43
|
+
children: [
|
|
44
|
+
OverlayLeft ? /* @__PURE__ */ jsx("li", {
|
|
45
|
+
className: estimateCostSideItem,
|
|
46
|
+
children: /* @__PURE__ */ jsx(OverlayLeft, {
|
|
47
|
+
disabled: disableOverlayLeft,
|
|
48
|
+
children: locales["estimate.cost.submit.label"]
|
|
49
|
+
})
|
|
50
|
+
}) : null,
|
|
51
|
+
Children.map(children, (child, index) => isValidElement(child) ? cloneElement(child, {
|
|
52
|
+
isFirstElement: index === 0,
|
|
53
|
+
isLastElement: index === Children.count(children) - 1
|
|
54
|
+
}) : null),
|
|
55
|
+
/* @__PURE__ */ jsxs("li", {
|
|
56
|
+
className: estimateCostOverlayRow(),
|
|
57
|
+
children: [/* @__PURE__ */ jsxs(Stack, {
|
|
58
|
+
alignItems: "center",
|
|
59
|
+
direction: "row",
|
|
60
|
+
gap: 1,
|
|
61
|
+
children: [/* @__PURE__ */ jsx(CalculatorIcon, {
|
|
62
|
+
sentiment: "primary",
|
|
63
|
+
size: "medium"
|
|
64
|
+
}), locales["estimate.cost.label"]]
|
|
65
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
66
|
+
className: estimateCostResourceName(),
|
|
67
|
+
children: [/* @__PURE__ */ jsx(Strong, {
|
|
68
|
+
variant: "big",
|
|
69
|
+
children: /* @__PURE__ */ jsxs(LineThrough, {
|
|
70
|
+
isActive: isBeta && discount === 0,
|
|
71
|
+
children: [
|
|
72
|
+
formatNumber(overlayPrice, { maximumFractionDigits: maximumFractionDigits[unit] }),
|
|
73
|
+
totalOverlayPrice > 0 ? ` - ${formatNumber(totalOverlayPrice, { maximumFractionDigits: maximumFractionDigits[unit] })}` : null,
|
|
74
|
+
"/",
|
|
75
|
+
locales[`estimate.cost.units.${unit}.label`]
|
|
76
|
+
]
|
|
77
|
+
})
|
|
78
|
+
}), isBeta ? /* @__PURE__ */ jsxs(Badge, {
|
|
79
|
+
className: estimateCostBadge,
|
|
80
|
+
prominence: "strong",
|
|
81
|
+
sentiment: "warning",
|
|
82
|
+
children: [discount > 0 ? discount * 100 : "", locales[`estimate.cost.beta.${discount > 0 ? "discount" : "free"}`]]
|
|
83
|
+
}) : null]
|
|
84
|
+
})]
|
|
85
|
+
}),
|
|
86
|
+
OverlayRight ? /* @__PURE__ */ jsx("li", {
|
|
87
|
+
className: estimateCostSideItem,
|
|
88
|
+
children: /* @__PURE__ */ jsx(OverlayRight, {
|
|
89
|
+
disabled: disableOverlayRight,
|
|
90
|
+
children: locales["estimate.cost.submit.label"]
|
|
91
|
+
})
|
|
92
|
+
}) : null
|
|
93
|
+
]
|
|
94
|
+
})
|
|
95
|
+
})
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
//#endregion
|
|
100
|
+
export { OverlayComponent };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export declare const useOverlay: () => {
|
|
3
|
+
isOverlay: boolean;
|
|
4
|
+
};
|
|
5
|
+
type OverlayContextProviderProps = {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
value: {
|
|
8
|
+
isOverlay: boolean;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare const OverlayContextProvider: ({ children, value, }: OverlayContextProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=OverlayContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OverlayContext.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/EstimateCost/OverlayContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC,eAAO,MAAM,UAAU;;CAAmC,CAAA;AAE1D,KAAK,2BAA2B,GAAG;IACjC,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE,CAAA;CAC9B,CAAA;AAED,eAAO,MAAM,sBAAsB,gGAKlC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { createContext, useContext } from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/compositions/EstimateCost/OverlayContext.tsx
|
|
7
|
+
const OverlayContext = createContext({ isOverlay: false });
|
|
8
|
+
const useOverlay = () => useContext(OverlayContext);
|
|
9
|
+
const OverlayContextProvider = ({ children, value }) => /* @__PURE__ */ jsx(OverlayContext.Provider, {
|
|
10
|
+
value,
|
|
11
|
+
children
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { OverlayContextProvider, useOverlay };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Units } from './types';
|
|
2
|
+
export declare const APPROXIMATE_HOURS_IN_MONTH = 730;
|
|
3
|
+
export declare const multiplier: Record<Units, number>;
|
|
4
|
+
export declare const maximumFractionDigits: Record<Units, number>;
|
|
5
|
+
export declare const maximumFractionDigitsLong: Record<Units, number>;
|
|
6
|
+
export declare const MAX_CELL_WIDTH = "70%";
|
|
7
|
+
export declare const PRICE_MAX_CELL_WIDTH = "30%";
|
|
8
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/EstimateCost/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAEpC,eAAO,MAAM,0BAA0B,MAAM,CAAA;AAI7C,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAMnC,CAAA;AAIV,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAM9C,CAAA;AAEV,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAMlD,CAAA;AAEV,eAAO,MAAM,cAAc,QAAQ,CAAA;AACnC,eAAO,MAAM,oBAAoB,QAAQ,CAAA"}
|