@ultraviolet/ui 3.21.1 → 3.21.2
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/EstimateCost.js +90 -0
- package/dist/_virtual/Filters.js +18 -0
- package/dist/_virtual/Navigation.js +43 -0
- package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/asyncToGenerator.js +4 -2
- package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/defineProperty.js +6 -4
- package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/extends.js +4 -2
- package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/objectDestructuringEmpty.js +4 -2
- package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/objectSpread2.js +6 -4
- package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/objectWithoutProperties.js +6 -4
- package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/objectWithoutPropertiesLoose.js +4 -2
- package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/toPrimitive.js +6 -4
- package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/toPropertyKey.js +7 -5
- package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/typeof.js +4 -2
- package/dist/components/ActionBar/index.js +20 -18
- package/dist/components/ActionBar/styles.css.js +11 -9
- package/dist/components/ActionBar/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Alert/index.js +79 -77
- package/dist/components/Alert/styles.css.js +34 -32
- package/dist/components/Alert/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Avatar/constants.js +17 -15
- package/dist/components/Avatar/index.js +81 -79
- package/dist/components/Avatar/styles.css.js +161 -159
- package/dist/components/Avatar/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Avatar/variables.css.js +7 -5
- package/dist/components/Badge/constant.js +10 -8
- package/dist/components/Badge/index.js +30 -24
- package/dist/components/Badge/styles.css.js +107 -105
- package/dist/components/Badge/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Banner/assets/default-image-small.js +5 -3
- package/dist/components/Banner/assets/default-image.js +5 -3
- package/dist/components/Banner/index.js +106 -104
- package/dist/components/Banner/styles.css.js +44 -42
- package/dist/components/Banner/styles.css.ts.vanilla.js +3 -1
- package/dist/components/BarChart/Tooltip.js +23 -21
- package/dist/components/BarChart/index.js +63 -61
- package/dist/components/BarChart/styles.css.js +10 -8
- package/dist/components/BarChart/styles.css.ts.vanilla.js +3 -1
- package/dist/components/BarStack/index.js +90 -88
- package/dist/components/BarStack/styles.css.js +38 -36
- package/dist/components/BarStack/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Breadcrumbs/components/Item.js +57 -55
- package/dist/components/Breadcrumbs/components/styles.css.js +13 -11
- package/dist/components/Breadcrumbs/components/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Breadcrumbs/index.js +18 -16
- package/dist/components/Breadcrumbs/styles.css.js +19 -17
- package/dist/components/Breadcrumbs/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Bullet/index.js +22 -20
- package/dist/components/Bullet/styles.css.js +105 -103
- package/dist/components/Bullet/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Button/constants.js +10 -8
- package/dist/components/Button/index.js +116 -114
- package/dist/components/Button/styles.css.js +154 -152
- package/dist/components/Button/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Card/index.js +43 -41
- package/dist/components/Card/styles.css.js +9 -7
- package/dist/components/Card/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Carousel/Item.js +14 -12
- package/dist/components/Carousel/index.js +90 -88
- package/dist/components/Carousel/styles.css.js +13 -11
- package/dist/components/Carousel/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Checkbox/CheckboxIconContainer.js +34 -32
- package/dist/components/Checkbox/index.d.ts +3 -14
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +92 -90
- package/dist/components/Checkbox/styles.css.js +26 -24
- package/dist/components/Checkbox/styles.css.ts.vanilla.js +3 -1
- package/dist/components/CheckboxGroup/Context.js +5 -3
- package/dist/components/CheckboxGroup/SingleCheckbox.js +34 -32
- package/dist/components/CheckboxGroup/index.js +67 -65
- package/dist/components/CheckboxGroup/styles.css.js +9 -7
- package/dist/components/CheckboxGroup/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Chip/ChipContext.js +5 -3
- package/dist/components/Chip/ChipIcon.js +36 -34
- package/dist/components/Chip/index.js +66 -64
- package/dist/components/Chip/styles.css.js +9 -7
- package/dist/components/Chip/styles.css.ts.vanilla.js +3 -1
- package/dist/components/CopyButton/index.js +27 -25
- package/dist/components/DateInput/Context.js +22 -20
- package/dist/components/DateInput/components/CalendarContent.js +69 -67
- package/dist/components/DateInput/components/CalendarDaily.js +143 -141
- package/dist/components/DateInput/components/CalendarMonthly.js +86 -84
- package/dist/components/DateInput/components/Popup.js +37 -35
- package/dist/components/DateInput/components/styles.css.ts.vanilla.js +3 -1
- package/dist/components/DateInput/constants.js +5 -3
- package/dist/components/DateInput/helpers.js +68 -66
- package/dist/components/DateInput/helpersLocale.js +54 -52
- package/dist/components/DateInput/index.js +233 -231
- package/dist/components/DateInput/styles.css.js +19 -17
- package/dist/components/DateInput/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Description/index.js +39 -37
- package/dist/components/Dialog/Context.js +10 -8
- package/dist/components/Dialog/components/Button.d.ts.map +1 -1
- package/dist/components/Dialog/components/Button.js +23 -15
- package/dist/components/Dialog/components/Buttons.js +12 -10
- package/dist/components/Dialog/components/CancelButton.js +14 -12
- package/dist/components/Dialog/components/Stack.js +11 -9
- package/dist/components/Dialog/components/Text.js +13 -11
- package/dist/components/Dialog/index.js +59 -57
- package/dist/components/Dialog/styles.css.js +9 -7
- package/dist/components/Dialog/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Drawer/DrawerContent.js +10 -8
- package/dist/components/Drawer/index.js +94 -92
- package/dist/components/Drawer/styles.css.d.ts +0 -5
- package/dist/components/Drawer/styles.css.d.ts.map +1 -1
- package/dist/components/Drawer/styles.css.js +20 -18
- package/dist/components/Drawer/styles.css.ts.vanilla.js +3 -1
- package/dist/components/EmptyState/index.js +73 -71
- package/dist/components/EmptyState/styles.css.js +29 -27
- package/dist/components/EmptyState/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Expandable/AnimatedExpandable.js +77 -77
- package/dist/components/Expandable/NonAnimatedExpandable.js +15 -13
- package/dist/components/Expandable/index.js +26 -26
- package/dist/components/Expandable/styles.css.js +7 -5
- package/dist/components/Expandable/styles.css.ts.vanilla.js +3 -1
- package/dist/components/ExpandableCard/components/Title.js +14 -12
- package/dist/components/ExpandableCard/index.js +143 -141
- package/dist/components/ExpandableCard/styles.css.js +14 -12
- package/dist/components/ExpandableCard/styles.css.ts.vanilla.js +3 -1
- package/dist/components/FileInput/DropzoneContent.js +19 -17
- package/dist/components/FileInput/FileInputProvider.js +10 -8
- package/dist/components/FileInput/components/Button.js +25 -23
- package/dist/components/FileInput/components/List.js +136 -134
- package/dist/components/FileInput/helpers.js +100 -98
- package/dist/components/FileInput/index.js +238 -236
- package/dist/components/FileInput/styles.css.js +59 -57
- package/dist/components/FileInput/styles.css.ts.vanilla.js +3 -1
- package/dist/components/GlobalAlert/GlobalAlertLink.js +24 -22
- package/dist/components/GlobalAlert/index.js +49 -47
- package/dist/components/GlobalAlert/styles.css.js +13 -11
- package/dist/components/GlobalAlert/styles.css.ts.vanilla.js +3 -1
- package/dist/components/InfiniteScroll/index.js +62 -60
- package/dist/components/Key/constants.js +12 -10
- package/dist/components/Key/index.js +39 -37
- package/dist/components/Key/styles.css.js +55 -53
- package/dist/components/Key/styles.css.ts.vanilla.js +3 -1
- package/dist/components/KeyValueInput/index.d.ts +6 -0
- package/dist/components/KeyValueInput/index.d.ts.map +1 -0
- package/dist/components/KeyValueInput/index.js +146 -0
- package/dist/components/KeyValueInput/styles.css.d.ts +5 -0
- package/dist/components/KeyValueInput/styles.css.d.ts.map +1 -0
- package/dist/components/KeyValueInput/styles.css.js +21 -0
- package/dist/components/KeyValueInput/styles.css.ts.vanilla.js +10 -0
- package/dist/components/KeyValueInput/types.d.ts +59 -0
- package/dist/components/KeyValueInput/types.d.ts.map +1 -0
- package/dist/components/Label/LabelContent.js +42 -40
- package/dist/components/Label/index.js +31 -29
- package/dist/components/Label/styles.css.js +10 -8
- package/dist/components/Label/styles.css.ts.vanilla.js +3 -1
- package/dist/components/LineChart/CustomLegend.js +87 -85
- package/dist/components/LineChart/LegendCell.js +13 -11
- package/dist/components/LineChart/Tooltip.js +25 -23
- package/dist/components/LineChart/helpers.js +34 -32
- package/dist/components/LineChart/index.js +93 -91
- package/dist/components/LineChart/styles.css.js +21 -19
- package/dist/components/LineChart/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Link/index.js +85 -83
- package/dist/components/Link/styles.css.js +78 -76
- package/dist/components/Link/styles.css.ts.vanilla.js +3 -1
- package/dist/components/List/Cell.js +36 -34
- package/dist/components/List/ColumnProvider.js +21 -19
- package/dist/components/List/ExpandButtonCell.js +28 -26
- package/dist/components/List/HeaderCell.js +50 -48
- package/dist/components/List/HeaderRow.js +33 -31
- package/dist/components/List/ListContext.js +207 -205
- package/dist/components/List/Row.js +123 -121
- package/dist/components/List/SelectBar.js +30 -28
- package/dist/components/List/SelectRowCell.js +32 -30
- package/dist/components/List/SkeletonRows.js +27 -25
- package/dist/components/List/SortIcon.js +9 -7
- package/dist/components/List/TableContainer.js +20 -18
- package/dist/components/List/index.js +50 -48
- package/dist/components/List/styles.css.js +45 -43
- package/dist/components/List/styles.css.ts.vanilla.js +3 -1
- package/dist/components/List/variables.css.js +15 -13
- package/dist/components/Loader/constants.js +12 -10
- package/dist/components/Loader/index.js +53 -51
- package/dist/components/Loader/styles.css.js +10 -8
- package/dist/components/Loader/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Menu/MenuContent.d.ts.map +1 -1
- package/dist/components/Menu/MenuContent.js +190 -188
- package/dist/components/Menu/MenuProvider.js +43 -41
- package/dist/components/Menu/components/Group.js +27 -25
- package/dist/components/Menu/components/Item.js +144 -142
- package/dist/components/Menu/helpers.js +29 -27
- package/dist/components/Menu/index.js +32 -30
- package/dist/components/Menu/styles.css.js +76 -74
- package/dist/components/Menu/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Meter/index.js +49 -47
- package/dist/components/Meter/styles.css.js +11 -9
- package/dist/components/Meter/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Modal/ModalContent.d.ts +1 -2
- package/dist/components/Modal/ModalContent.d.ts.map +1 -1
- package/dist/components/Modal/ModalContent.js +50 -41
- package/dist/components/Modal/ModalProvider.js +40 -38
- package/dist/components/Modal/components/Dialog.d.ts +1 -1
- package/dist/components/Modal/components/Dialog.d.ts.map +1 -1
- package/dist/components/Modal/components/Dialog.js +170 -166
- package/dist/components/Modal/components/Disclosure.js +37 -35
- package/dist/components/Modal/constants.css.d.ts +11 -0
- package/dist/components/Modal/constants.css.d.ts.map +1 -0
- package/dist/components/Modal/index.js +65 -64
- package/dist/components/Modal/styles.css.d.ts +13 -61
- package/dist/components/Modal/styles.css.d.ts.map +1 -1
- package/dist/components/Modal/styles.css.js +48 -80
- package/dist/components/Modal/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Modal/types.d.ts +1 -0
- package/dist/components/Modal/types.d.ts.map +1 -1
- package/dist/components/Modal/useDelayUnmount.d.ts +2 -0
- package/dist/components/Modal/useDelayUnmount.d.ts.map +1 -0
- package/dist/components/Modal/useDelayUnmount.js +27 -0
- package/dist/components/Notice/index.js +19 -17
- package/dist/components/Notice/styles.css.js +6 -4
- package/dist/components/Notice/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Notification/Notification.js +37 -35
- package/dist/components/Notification/NotificationContainer.js +20 -18
- package/dist/components/Notification/styles.css.js +6 -4
- package/dist/components/Notification/styles.css.ts.vanilla.js +3 -1
- package/dist/components/NumberInput/components/Controls.js +61 -59
- package/dist/components/NumberInput/components/Unit.js +18 -16
- package/dist/components/NumberInput/index.d.ts +19 -5
- package/dist/components/NumberInput/index.d.ts.map +1 -1
- package/dist/components/NumberInput/index.js +158 -156
- package/dist/components/NumberInput/styles.css.js +81 -79
- package/dist/components/NumberInput/styles.css.ts.vanilla.js +3 -1
- package/dist/components/NumberInput/types.d.ts +3 -6
- package/dist/components/NumberInput/types.d.ts.map +1 -1
- package/dist/components/Pagination/Ellipsis.js +17 -15
- package/dist/components/Pagination/PaginationButton.js +21 -19
- package/dist/components/Pagination/PaginationButtons.js +74 -72
- package/dist/components/Pagination/PerPage.d.ts.map +1 -1
- package/dist/components/Pagination/PerPage.js +71 -65
- package/dist/components/Pagination/getPageNumbers.js +20 -18
- package/dist/components/Pagination/index.js +46 -44
- package/dist/components/Pagination/styles.css.js +16 -14
- package/dist/components/Pagination/styles.css.ts.vanilla.js +3 -1
- package/dist/components/PasswordCheck/index.js +31 -29
- package/dist/components/PasswordCheck/styles.css.js +6 -4
- package/dist/components/PasswordCheck/styles.css.ts.vanilla.js +3 -1
- package/dist/components/PhoneInput/index.js +131 -129
- package/dist/components/PhoneInput/styles.css.js +15 -13
- package/dist/components/PhoneInput/styles.css.ts.vanilla.js +3 -1
- package/dist/components/PieChart/Legends.js +57 -55
- package/dist/components/PieChart/Tooltip.js +39 -37
- package/dist/components/PieChart/index.js +86 -84
- package/dist/components/PieChart/styles.css.js +29 -27
- package/dist/components/PieChart/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Popover/ContentWrapper.js +34 -32
- package/dist/components/Popover/index.js +53 -51
- package/dist/components/Popover/styles.css.js +23 -21
- package/dist/components/Popover/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Popup/helpers.js +243 -241
- package/dist/components/Popup/index.js +321 -319
- package/dist/components/Popup/styles.css.js +40 -38
- package/dist/components/Popup/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Popup/variables.css.js +12 -10
- package/dist/components/ProgressBar/index.js +73 -71
- package/dist/components/ProgressBar/styles.css.js +21 -19
- package/dist/components/ProgressBar/styles.css.ts.vanilla.js +3 -1
- package/dist/components/ProgressBar/variables.css.js +5 -3
- package/dist/components/Radio/MarkedIcon.js +32 -30
- package/dist/components/Radio/index.js +75 -73
- package/dist/components/Radio/styles.css.js +27 -25
- package/dist/components/Radio/styles.css.ts.vanilla.js +3 -1
- package/dist/components/RadioGroup/Context.js +5 -3
- package/dist/components/RadioGroup/SingleRadio.js +31 -29
- package/dist/components/RadioGroup/index.js +70 -68
- package/dist/components/RadioGroup/styles.css.js +6 -4
- package/dist/components/RadioGroup/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Row/index.js +20 -18
- package/dist/components/Row/styles.css.js +487 -485
- package/dist/components/Row/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Row/variables.css.js +21 -19
- package/dist/components/Row/variables.css.ts.vanilla.js +3 -1
- package/dist/components/SearchInput/KeyGroup.js +18 -16
- package/dist/components/SearchInput/index.d.ts.map +1 -1
- package/dist/components/SearchInput/index.js +197 -191
- package/dist/components/SearchInput/styles.css.js +10 -8
- package/dist/components/SearchInput/styles.css.ts.vanilla.js +3 -1
- package/dist/components/SearchInput/types.d.ts +1 -1
- package/dist/components/SearchInput/types.d.ts.map +1 -1
- package/dist/components/SelectInput/SelectInputProvider.js +114 -112
- package/dist/components/SelectInput/components/Dropdown/AddOption.js +36 -34
- package/dist/components/SelectInput/components/Dropdown/Content.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/Content.js +189 -184
- package/dist/components/SelectInput/components/Dropdown/Dropdown.js +192 -190
- package/dist/components/SelectInput/components/Dropdown/Group.js +61 -59
- package/dist/components/SelectInput/components/Dropdown/Item.js +64 -62
- package/dist/components/SelectInput/components/Dropdown/Option.js +108 -106
- package/dist/components/SelectInput/components/Dropdown/SearchBar.js +94 -93
- package/dist/components/SelectInput/components/Dropdown/SelectAll.js +63 -61
- package/dist/components/SelectInput/components/Dropdown/dropdown.css.js +33 -31
- package/dist/components/SelectInput/components/Dropdown/dropdown.css.ts.vanilla.js +3 -1
- package/dist/components/SelectInput/components/SelectBar/SelectBar.d.ts +2 -1
- package/dist/components/SelectInput/components/SelectBar/SelectBar.d.ts.map +1 -1
- package/dist/components/SelectInput/components/SelectBar/SelectBar.js +183 -179
- package/dist/components/SelectInput/components/SelectBar/Values.js +73 -71
- package/dist/components/SelectInput/components/SelectBar/selectBar.css.js +46 -44
- package/dist/components/SelectInput/components/SelectBar/selectBar.css.ts.vanilla.js +3 -1
- package/dist/components/SelectInput/components/helpers.js +61 -59
- package/dist/components/SelectInput/constants.js +15 -13
- package/dist/components/SelectInput/findOptionInOptions.js +10 -8
- package/dist/components/SelectInput/index.d.ts +9 -29
- package/dist/components/SelectInput/index.d.ts.map +1 -1
- package/dist/components/SelectInput/index.js +99 -96
- package/dist/components/SelectInput/reducerFunctions.js +54 -52
- package/dist/components/SelectInput/styles.css.js +107 -105
- package/dist/components/SelectInput/styles.css.ts.vanilla.js +3 -1
- package/dist/components/SelectableCard/IllustrationContainer.js +38 -36
- package/dist/components/SelectableCard/MultiStateInput.js +71 -69
- package/dist/components/SelectableCard/SelectableCard.js +107 -105
- package/dist/components/SelectableCard/styles.css.js +33 -31
- package/dist/components/SelectableCard/styles.css.ts.vanilla.js +3 -1
- package/dist/components/SelectableCard/variables.css.js +7 -5
- package/dist/components/SelectableCardGroup/Context.js +5 -3
- package/dist/components/SelectableCardGroup/SingleCard.js +31 -30
- package/dist/components/SelectableCardGroup/index.js +61 -59
- package/dist/components/SelectableCardGroup/styles.css.js +6 -4
- package/dist/components/SelectableCardGroup/styles.css.ts.vanilla.js +3 -1
- package/dist/components/SelectableCardOptionGroup/Provider.js +19 -17
- package/dist/components/SelectableCardOptionGroup/SelectableCardOptionGroup.js +67 -65
- package/dist/components/SelectableCardOptionGroup/components/Image.js +17 -15
- package/dist/components/SelectableCardOptionGroup/components/Option.js +77 -76
- package/dist/components/SelectableCardOptionGroup/styles.css.js +15 -13
- package/dist/components/SelectableCardOptionGroup/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Separator/index.js +44 -42
- package/dist/components/Separator/styles.css.js +55 -53
- package/dist/components/Separator/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Skeleton/Block.js +14 -12
- package/dist/components/Skeleton/Blocks.js +16 -14
- package/dist/components/Skeleton/BoxWithIcon.js +16 -14
- package/dist/components/Skeleton/Donut.js +26 -24
- package/dist/components/Skeleton/IconSkeleton.js +6 -4
- package/dist/components/Skeleton/Line.js +17 -15
- package/dist/components/Skeleton/List.js +16 -14
- package/dist/components/Skeleton/Slider.js +14 -12
- package/dist/components/Skeleton/Square.js +6 -4
- package/dist/components/Skeleton/index.js +40 -38
- package/dist/components/Skeleton/styles.css.js +28 -26
- package/dist/components/Skeleton/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Skeleton/stylesVariants.css.js +9 -7
- package/dist/components/Skeleton/stylesVariants.css.ts.vanilla.js +3 -1
- package/dist/components/Slider/components/DoubleSlider.js +284 -284
- package/dist/components/Slider/components/Options.js +36 -36
- package/dist/components/Slider/components/SingleSlider.js +195 -195
- package/dist/components/Slider/index.js +101 -99
- package/dist/components/Slider/styles.css.js +103 -101
- package/dist/components/Slider/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Snippet/CodeContent.js +23 -21
- package/dist/components/Snippet/index.js +91 -89
- package/dist/components/Snippet/styles.css.js +55 -53
- package/dist/components/Snippet/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Stack/index.js +57 -55
- package/dist/components/Stack/styles.css.js +574 -572
- package/dist/components/Stack/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Stack/variables.css.js +9 -7
- package/dist/components/Stack/variables.css.ts.vanilla.js +3 -1
- package/dist/components/Status/index.js +16 -14
- package/dist/components/Status/styles.css.js +38 -36
- package/dist/components/Status/styles.css.ts.vanilla.js +3 -1
- package/dist/components/StepList/Item.js +22 -20
- package/dist/components/StepList/index.js +14 -12
- package/dist/components/StepList/styles.css.js +26 -24
- package/dist/components/StepList/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Stepper/Bullet.js +31 -29
- package/dist/components/Stepper/Step.js +62 -60
- package/dist/components/Stepper/StepperProvider.js +38 -35
- package/dist/components/Stepper/index.js +46 -44
- package/dist/components/Stepper/styles.css.js +131 -129
- package/dist/components/Stepper/styles.css.ts.vanilla.js +3 -1
- package/dist/components/SwitchButton/FocusOverlay.js +12 -12
- package/dist/components/SwitchButton/Option.js +42 -41
- package/dist/components/SwitchButton/SwitchButtonContext.js +10 -8
- package/dist/components/SwitchButton/index.js +131 -131
- package/dist/components/SwitchButton/styles.css.js +18 -16
- package/dist/components/SwitchButton/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Table/Body.js +6 -4
- package/dist/components/Table/Cell.d.ts.map +1 -1
- package/dist/components/Table/Cell.js +34 -28
- package/dist/components/Table/Header.js +9 -7
- package/dist/components/Table/HeaderCell.d.ts.map +1 -1
- package/dist/components/Table/HeaderCell.js +61 -55
- package/dist/components/Table/HeaderRow.d.ts.map +1 -1
- package/dist/components/Table/HeaderRow.js +32 -29
- package/dist/components/Table/Row.js +87 -91
- package/dist/components/Table/SelectBar.js +30 -28
- package/dist/components/Table/SkeletonRows.js +19 -17
- package/dist/components/Table/SortIcon.js +9 -7
- package/dist/components/Table/TableContainer.js +20 -18
- package/dist/components/Table/TableContext.d.ts +2 -0
- package/dist/components/Table/TableContext.d.ts.map +1 -1
- package/dist/components/Table/TableContext.js +52 -48
- package/dist/components/Table/constants.d.ts +10 -2
- package/dist/components/Table/constants.d.ts.map +1 -1
- package/dist/components/Table/constants.js +11 -2
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +60 -57
- package/dist/components/Table/styles.css.d.ts +22 -6
- package/dist/components/Table/styles.css.d.ts.map +1 -1
- package/dist/components/Table/styles.css.js +65 -53
- package/dist/components/Table/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Table/variables.css.js +10 -8
- package/dist/components/Tabs/Tab.js +86 -84
- package/dist/components/Tabs/TabMenu.js +41 -39
- package/dist/components/Tabs/TabMenuItem.js +29 -27
- package/dist/components/Tabs/TabsContext.js +6 -4
- package/dist/components/Tabs/index.js +77 -75
- package/dist/components/Tabs/styles.css.js +19 -17
- package/dist/components/Tabs/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Tag/index.js +86 -82
- package/dist/components/Tag/styles.css.js +143 -141
- package/dist/components/Tag/styles.css.ts.vanilla.js +3 -1
- package/dist/components/TagInput/index.js +183 -181
- package/dist/components/TagInput/styles.css.js +20 -18
- package/dist/components/TagInput/styles.css.ts.vanilla.js +3 -1
- package/dist/components/TagList/constant.js +6 -4
- package/dist/components/TagList/index.js +170 -168
- package/dist/components/TagList/styles.css.js +18 -16
- package/dist/components/TagList/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Text/index.js +44 -42
- package/dist/components/Text/style.css.js +449 -447
- package/dist/components/Text/style.css.ts.vanilla.js +3 -1
- package/dist/components/Text/variables.css.js +8 -6
- package/dist/components/TextArea/Icon.js +8 -6
- package/dist/components/TextArea/Notice.js +32 -30
- package/dist/components/TextArea/index.d.ts +4 -25
- package/dist/components/TextArea/index.d.ts.map +1 -1
- package/dist/components/TextArea/index.js +132 -132
- package/dist/components/TextArea/styles.css.js +28 -26
- package/dist/components/TextArea/styles.css.ts.vanilla.js +3 -1
- package/dist/components/TextInput/PrefixSuffix.js +20 -18
- package/dist/components/TextInput/RightIcon.js +48 -46
- package/dist/components/TextInput/ShowHidePassword.js +24 -22
- package/dist/components/TextInput/index.d.ts +1 -1
- package/dist/components/TextInput/index.js +138 -136
- package/dist/components/TextInput/styles.css.js +19 -17
- package/dist/components/TextInput/styles.css.ts.vanilla.js +3 -1
- package/dist/components/TextInput/type.d.ts +1 -1
- package/dist/components/TextInput/type.d.ts.map +1 -1
- package/dist/components/TimeInput/RightIcon.js +25 -23
- package/dist/components/TimeInput/constants.js +16 -14
- package/dist/components/TimeInput/helpers.js +44 -42
- package/dist/components/TimeInput/index.d.ts +5 -23
- package/dist/components/TimeInput/index.d.ts.map +1 -1
- package/dist/components/TimeInput/index.js +292 -288
- package/dist/components/TimeInput/styles.css.js +31 -29
- package/dist/components/TimeInput/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Toaster/Toaster.js +31 -29
- package/dist/components/Toaster/ToasterContainer.js +24 -22
- package/dist/components/Toaster/components/Button.js +22 -20
- package/dist/components/Toaster/components/CloseButton.js +14 -12
- package/dist/components/Toaster/components/Content.js +16 -14
- package/dist/components/Toaster/components/Link.js +18 -15
- package/dist/components/Toaster/constants.js +5 -3
- package/dist/components/Toaster/index.js +12 -10
- package/dist/components/Toaster/styles.css.js +10 -8
- package/dist/components/Toaster/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Toggle/index.js +81 -79
- package/dist/components/Toggle/styles.css.js +49 -47
- package/dist/components/Toggle/styles.css.ts.vanilla.js +3 -1
- package/dist/components/ToggleGroup/Context.js +5 -3
- package/dist/components/ToggleGroup/SingleToggle.js +27 -25
- package/dist/components/ToggleGroup/index.js +65 -63
- package/dist/components/ToggleGroup/styles.css.js +6 -4
- package/dist/components/ToggleGroup/styles.css.ts.vanilla.js +3 -1
- package/dist/components/Tooltip/index.js +27 -25
- package/dist/components/Tooltip/styles.css.js +6 -4
- package/dist/components/Tooltip/styles.css.ts.vanilla.js +3 -1
- package/dist/components/TreeMapChart/Tooltip.js +21 -19
- package/dist/components/TreeMapChart/index.js +49 -47
- package/dist/components/TreeMapChart/styles.css.js +9 -7
- package/dist/components/TreeMapChart/styles.css.ts.vanilla.js +3 -1
- package/dist/components/UnitInput/index.d.ts +3 -6
- package/dist/components/UnitInput/index.d.ts.map +1 -1
- package/dist/components/UnitInput/index.js +123 -121
- package/dist/components/UnitInput/styles.css.js +28 -26
- package/dist/components/UnitInput/styles.css.ts.vanilla.js +3 -1
- package/dist/components/VerificationCode/index.js +143 -142
- package/dist/components/VerificationCode/styles.css.js +15 -13
- package/dist/components/VerificationCode/styles.css.ts.vanilla.js +3 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/styles.d.ts +1 -0
- package/dist/components/styles.d.ts.map +1 -1
- package/dist/composition.js +118 -11
- package/dist/compositions/CodeEditor/components/CopyButton.js +14 -12
- package/dist/compositions/CodeEditor/components/Expandable.js +25 -23
- package/dist/compositions/CodeEditor/index.js +89 -87
- package/dist/compositions/CodeEditor/styles.css.js +30 -28
- package/dist/compositions/CodeEditor/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/ContentCard/Content.js +34 -32
- package/dist/compositions/ContentCard/ImageContent.js +14 -12
- package/dist/compositions/ContentCard/LinkContent.js +19 -17
- package/dist/compositions/ContentCard/Skeleton.js +28 -26
- package/dist/compositions/ContentCard/index.js +68 -66
- package/dist/compositions/ContentCard/styles.css.js +39 -37
- package/dist/compositions/ContentCard/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/ContentCardGroup/Card.js +53 -51
- package/dist/compositions/ContentCardGroup/SkeletonCard.js +26 -24
- package/dist/compositions/ContentCardGroup/index.js +17 -15
- package/dist/compositions/ContentCardGroup/styles.css.js +14 -12
- package/dist/compositions/ContentCardGroup/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/Conversation/components/Date.js +15 -13
- package/dist/compositions/Conversation/components/Message.js +20 -18
- package/dist/compositions/Conversation/components/MessageInfos.js +11 -9
- package/dist/compositions/Conversation/components/MessageTag.js +12 -10
- package/dist/compositions/Conversation/index.js +18 -16
- package/dist/compositions/Conversation/styles.css.js +23 -21
- package/dist/compositions/Conversation/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/CustomerSatisfaction/assets/1-5.js +5 -3
- package/dist/compositions/CustomerSatisfaction/assets/1-5NB.js +5 -3
- package/dist/compositions/CustomerSatisfaction/assets/2-5.js +5 -3
- package/dist/compositions/CustomerSatisfaction/assets/2-5NB.js +5 -3
- package/dist/compositions/CustomerSatisfaction/assets/3-5.js +5 -3
- package/dist/compositions/CustomerSatisfaction/assets/3-5NB.js +5 -3
- package/dist/compositions/CustomerSatisfaction/assets/4-5.js +5 -3
- package/dist/compositions/CustomerSatisfaction/assets/4-5NB.js +5 -3
- package/dist/compositions/CustomerSatisfaction/assets/5-5.js +5 -3
- package/dist/compositions/CustomerSatisfaction/assets/5-5NB.js +5 -3
- package/dist/compositions/CustomerSatisfaction/index.js +86 -84
- package/dist/compositions/CustomerSatisfaction/styles.css.js +21 -19
- package/dist/compositions/CustomerSatisfaction/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/EstimateCost/CompactEstimateCost.js +29 -27
- package/dist/compositions/EstimateCost/Components/Children.js +38 -36
- package/dist/compositions/EstimateCost/Components/CustomUnitInput.js +35 -33
- package/dist/compositions/EstimateCost/Components/Description.js +10 -8
- package/dist/compositions/EstimateCost/Components/Item.js +151 -149
- package/dist/compositions/EstimateCost/Components/ItemLeftSide.js +70 -68
- package/dist/compositions/EstimateCost/Components/ItemPrice.js +51 -49
- package/dist/compositions/EstimateCost/Components/LineThrough.js +15 -13
- package/dist/compositions/EstimateCost/Components/NumberInput.js +31 -29
- package/dist/compositions/EstimateCost/Components/Region.js +33 -31
- package/dist/compositions/EstimateCost/Components/Regular.js +17 -15
- package/dist/compositions/EstimateCost/Components/Strong.js +11 -9
- package/dist/compositions/EstimateCost/Components/Title.js +13 -11
- package/dist/compositions/EstimateCost/Components/Total.js +61 -59
- package/dist/compositions/EstimateCost/Components/Unit.js +47 -45
- package/dist/compositions/EstimateCost/Components/Zone.js +32 -30
- package/dist/compositions/EstimateCost/Components/components.css.js +59 -57
- package/dist/compositions/EstimateCost/Components/components.css.ts.vanilla.js +3 -1
- package/dist/compositions/EstimateCost/Ellipsis.js +25 -23
- package/dist/compositions/EstimateCost/EstimateCostContent.js +191 -189
- package/dist/compositions/EstimateCost/EstimateCostProvider.js +28 -26
- package/dist/compositions/EstimateCost/Image.js +13 -11
- package/dist/compositions/EstimateCost/OverlayComponent.js +91 -89
- package/dist/compositions/EstimateCost/OverlayContext.js +10 -8
- package/dist/compositions/EstimateCost/constants.js +26 -24
- package/dist/compositions/EstimateCost/helper.js +9 -7
- package/dist/compositions/EstimateCost/index.js +2 -86
- package/dist/compositions/EstimateCost/locales/en.js +25 -23
- package/dist/compositions/EstimateCost/styles.css.js +136 -134
- package/dist/compositions/EstimateCost/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/FAQ/index.js +36 -34
- package/dist/compositions/FAQ/styles.css.js +6 -4
- package/dist/compositions/FAQ/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/Filters/Filters.js +27 -25
- package/dist/compositions/Filters/filterTypes/FilterDateRange.js +27 -26
- package/dist/compositions/Filters/filterTypes/FilterDatetimeRange/Dropdown.js +117 -115
- package/dist/compositions/Filters/filterTypes/FilterDatetimeRange/FilterDatetimeRange.js +58 -56
- package/dist/compositions/Filters/filterTypes/FilterDatetimeRange/filterDatetimeRange.styles.css.js +9 -7
- package/dist/compositions/Filters/filterTypes/FilterDatetimeRange/filterDatetimeRange.styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/Filters/filterTypes/FilterMultiSelect.js +41 -39
- package/dist/compositions/Filters/filterTypes/FilterNumber.js +16 -14
- package/dist/compositions/Filters/filterTypes/FilterSearch.js +32 -30
- package/dist/compositions/Filters/filterTypes/FilterSelect.js +36 -34
- package/dist/compositions/Filters/filterTypes/FilterSlider.js +22 -20
- package/dist/compositions/Filters/filterTypes/FilterText.js +32 -30
- package/dist/compositions/Filters/index.js +4 -13
- package/dist/compositions/Filters/parts/AbstractFilter.js +43 -41
- package/dist/compositions/Filters/parts/ExpandableFilterGroup.js +43 -41
- package/dist/compositions/Filters/parts/FiltersDrawer.js +74 -72
- package/dist/compositions/Filters/parts/FiltersMainRow.js +65 -63
- package/dist/compositions/Filters/parts/FiltersProvider.js +46 -44
- package/dist/compositions/Filters/parts/helpers.js +32 -30
- package/dist/compositions/Filters/parts/reducer.js +48 -46
- package/dist/compositions/Filters/parts/styles.css.js +6 -4
- package/dist/compositions/Filters/parts/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/Filters/parts/useFilters.js +89 -86
- package/dist/compositions/InfoTable/Context.js +5 -3
- package/dist/compositions/InfoTable/components/Cell.d.ts.map +1 -1
- package/dist/compositions/InfoTable/components/Cell.js +36 -32
- package/dist/compositions/InfoTable/components/CellWithCopyButton.js +32 -30
- package/dist/compositions/InfoTable/components/Row.js +20 -18
- package/dist/compositions/InfoTable/index.js +40 -39
- package/dist/compositions/InfoTable/styles.css.js +141 -137
- package/dist/compositions/InfoTable/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/Navigation/Footer.js +56 -54
- package/dist/compositions/Navigation/Header.js +18 -16
- package/dist/compositions/Navigation/NavigationContent.js +104 -101
- package/dist/compositions/Navigation/NavigationProvider.js +137 -135
- package/dist/compositions/Navigation/components/Group.js +36 -34
- package/dist/compositions/Navigation/components/Item/Badge.js +14 -12
- package/dist/compositions/Navigation/components/Item/Children.js +22 -20
- package/dist/compositions/Navigation/components/Item/Content.js +66 -64
- package/dist/compositions/Navigation/components/Item/Item.js +201 -199
- package/dist/compositions/Navigation/components/Item/ItemExpanded.js +120 -118
- package/dist/compositions/Navigation/components/Item/ItemProvider.js +12 -10
- package/dist/compositions/Navigation/components/Item/PinnedButton.js +46 -44
- package/dist/compositions/Navigation/components/Menu/Menu.js +57 -55
- package/dist/compositions/Navigation/components/Menu/MenuItem.js +77 -75
- package/dist/compositions/Navigation/components/Menu/NestedMenu.js +40 -38
- package/dist/compositions/Navigation/components/PinnedItems.js +97 -95
- package/dist/compositions/Navigation/components/Separator.js +14 -12
- package/dist/compositions/Navigation/components/ShowHide.js +46 -44
- package/dist/compositions/Navigation/components/items.css.d.ts +2 -2
- package/dist/compositions/Navigation/components/items.css.ts.vanilla.js +3 -1
- package/dist/compositions/Navigation/components/styles.css.d.ts +2 -2
- package/dist/compositions/Navigation/components/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/Navigation/constants.d.ts +1 -1
- package/dist/compositions/Navigation/constants.js +5 -3
- package/dist/compositions/Navigation/index.js +2 -39
- package/dist/compositions/Navigation/locales/en.js +13 -11
- package/dist/compositions/Navigation/styles.css.d.ts +5 -5
- package/dist/compositions/Navigation/styles.css.js +133 -131
- package/dist/compositions/Navigation/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/Navigation/variables.css.js +7 -5
- package/dist/compositions/OfferList/OfferListProvider.js +39 -37
- package/dist/compositions/OfferList/components/Banner.js +30 -28
- package/dist/compositions/OfferList/components/Cell.js +28 -26
- package/dist/compositions/OfferList/components/OfferListRowProvider.js +9 -7
- package/dist/compositions/OfferList/components/Row.js +139 -137
- package/dist/compositions/OfferList/components/SelectableCell.js +54 -52
- package/dist/compositions/OfferList/index.js +47 -45
- package/dist/compositions/OfferList/styles.css.js +123 -121
- package/dist/compositions/OfferList/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/OptionSelector/components/ArrowIcon.js +16 -14
- package/dist/compositions/OptionSelector/components/IconWithContent.js +11 -9
- package/dist/compositions/OptionSelector/components/RevealOnHover.js +14 -12
- package/dist/compositions/OptionSelector/components/Selector.js +31 -29
- package/dist/compositions/OptionSelector/index.js +147 -145
- package/dist/compositions/OptionSelector/styles.css.js +148 -144
- package/dist/compositions/OptionSelector/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/OrderSummary/NonScrollableContent.js +101 -99
- package/dist/compositions/OrderSummary/Provider.js +18 -16
- package/dist/compositions/OrderSummary/ScrollableContent.js +30 -28
- package/dist/compositions/OrderSummary/components/Category.js +96 -94
- package/dist/compositions/OrderSummary/components/SubCategory.js +90 -88
- package/dist/compositions/OrderSummary/components/SubCategoryPrice.js +36 -34
- package/dist/compositions/OrderSummary/constants.js +18 -16
- package/dist/compositions/OrderSummary/helpers.js +128 -126
- package/dist/compositions/OrderSummary/index.js +132 -130
- package/dist/compositions/OrderSummary/locales/en.js +13 -11
- package/dist/compositions/OrderSummary/styles.css.js +50 -48
- package/dist/compositions/OrderSummary/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/Plans/FeatureHint.js +34 -32
- package/dist/compositions/Plans/PlanHeader.js +90 -88
- package/dist/compositions/Plans/index.js +148 -146
- package/dist/compositions/Plans/locales/en.js +9 -7
- package/dist/compositions/Plans/styles.css.js +39 -37
- package/dist/compositions/Plans/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/RichTextInput/Toolbar.js +110 -108
- package/dist/compositions/RichTextInput/editorCore.js +50 -48
- package/dist/compositions/RichTextInput/helpers.js +14 -12
- package/dist/compositions/RichTextInput/index.js +113 -111
- package/dist/compositions/RichTextInput/styles.css.js +38 -36
- package/dist/compositions/RichTextInput/styles.css.ts.vanilla.js +3 -1
- package/dist/compositions/SteppedListCard/Step.js +41 -39
- package/dist/compositions/SteppedListCard/SteppedListContent.js +51 -49
- package/dist/compositions/SteppedListCard/helper.js +26 -24
- package/dist/compositions/SteppedListCard/index.js +87 -85
- package/dist/compositions/SteppedListCard/styles.css.js +15 -13
- package/dist/compositions/SteppedListCard/styles.css.ts.vanilla.js +3 -1
- package/dist/helpers/hasHelperText.js +6 -4
- package/dist/helpers/isClientSide.js +6 -4
- package/dist/helpers/isStringOrNumberArray.d.ts +2 -0
- package/dist/helpers/isStringOrNumberArray.d.ts.map +1 -0
- package/dist/helpers/isStringOrNumberArray.js +13 -0
- package/dist/helpers/legend.js +11 -9
- package/dist/helpers/nivoTheme.js +20 -18
- package/dist/helpers/recursivelyGetChildrenString.d.ts.map +1 -1
- package/dist/helpers/recursivelyGetChildrenString.js +17 -12
- package/dist/helpers/treeMap.js +23 -21
- package/dist/hooks/useIsOverflowing.js +23 -21
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +200 -46
- package/dist/theme/ThemeProvider.js +39 -37
- package/dist/theme/index.js +18 -16
- package/dist/types.d.ts +35 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/dist/utils/animations/animations.js +3 -1
- package/dist/utils/animations/animations2.js +31 -29
- package/dist/utils/animations/animationsVanillaExtract.css.js +32 -30
- package/dist/utils/animations/animationsVanillaExtract.css.ts.vanilla.js +3 -1
- package/dist/utils/index.js +8 -7
- package/dist/utils/normalize.js +6 -4
- package/dist/utils/responsive/utilities.js +13 -11
- package/package.json +12 -12
- package/dist/components/Expandable/constant.js +0 -8
- package/dist/components/Modal/constants.d.ts +0 -44
- package/dist/components/Modal/constants.d.ts.map +0 -1
- package/dist/components/Notification/index.js +0 -13
- package/dist/components/SelectableCard/index.js +0 -11
- package/dist/components/SelectableCardOptionGroup/index.js +0 -11
- package/dist/components/Slider/constant.js +0 -8
- package/dist/components/SwitchButton/constant.js +0 -8
- package/dist/components/TextArea/constant.js +0 -8
- package/dist/components/index.js +0 -170
- package/dist/components/styles.js +0 -157
- package/dist/compositions/index.js +0 -47
- package/dist/compositions/styles.js +0 -37
- package/dist/utils/responsive/index.js +0 -11
|
@@ -7,38 +7,40 @@ import { CalculatorIcon } from "@ultraviolet/icons/CalculatorIcon";
|
|
|
7
7
|
|
|
8
8
|
//#region src/compositions/EstimateCost/CompactEstimateCost.tsx
|
|
9
9
|
var CompactEstimateCost;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
className: estimateCostStyle.compact[backgroundProminence],
|
|
17
|
-
direction: "row",
|
|
18
|
-
justifyContent: "space-between",
|
|
19
|
-
children: [/* @__PURE__ */ jsxs(Text, {
|
|
20
|
-
as: "p",
|
|
21
|
-
className: estimateCostStyle.compactText,
|
|
22
|
-
variant: "bodyStrong",
|
|
23
|
-
children: [/* @__PURE__ */ jsx(CalculatorIcon, {
|
|
24
|
-
sentiment: "primary",
|
|
25
|
-
size: "medium"
|
|
26
|
-
}), label]
|
|
27
|
-
}), /* @__PURE__ */ jsxs(Stack, {
|
|
10
|
+
function init_CompactEstimateCost() {
|
|
11
|
+
return (init_CompactEstimateCost = __esmMin(() => {
|
|
12
|
+
init_Stack();
|
|
13
|
+
init_Text();
|
|
14
|
+
init_styles_css();
|
|
15
|
+
CompactEstimateCost = ({ label, totalPrice, iteration, backgroundProminence }) => /* @__PURE__ */ jsxs(Stack, {
|
|
28
16
|
alignItems: "center",
|
|
17
|
+
className: estimateCostStyle.compact[backgroundProminence],
|
|
29
18
|
direction: "row",
|
|
19
|
+
justifyContent: "space-between",
|
|
30
20
|
children: [/* @__PURE__ */ jsxs(Text, {
|
|
31
|
-
as: "
|
|
32
|
-
|
|
33
|
-
children: ["€", totalPrice.total]
|
|
34
|
-
}), /* @__PURE__ */ jsxs(Text, {
|
|
35
|
-
as: "span",
|
|
21
|
+
as: "p",
|
|
22
|
+
className: estimateCostStyle.compactText,
|
|
36
23
|
variant: "bodyStrong",
|
|
37
|
-
children: [
|
|
24
|
+
children: [/* @__PURE__ */ jsx(CalculatorIcon, {
|
|
25
|
+
sentiment: "primary",
|
|
26
|
+
size: "medium"
|
|
27
|
+
}), label]
|
|
28
|
+
}), /* @__PURE__ */ jsxs(Stack, {
|
|
29
|
+
alignItems: "center",
|
|
30
|
+
direction: "row",
|
|
31
|
+
children: [/* @__PURE__ */ jsxs(Text, {
|
|
32
|
+
as: "span",
|
|
33
|
+
variant: "headingSmallStrong",
|
|
34
|
+
children: ["€", totalPrice.total]
|
|
35
|
+
}), /* @__PURE__ */ jsxs(Text, {
|
|
36
|
+
as: "span",
|
|
37
|
+
variant: "bodyStrong",
|
|
38
|
+
children: ["/", iteration.unit.length > 1 && iteration.unit.endsWith("s") ? iteration.unit.slice(0, -1) : iteration.unit]
|
|
39
|
+
})]
|
|
38
40
|
})]
|
|
39
|
-
})
|
|
40
|
-
});
|
|
41
|
-
}
|
|
41
|
+
});
|
|
42
|
+
}))();
|
|
43
|
+
}
|
|
42
44
|
|
|
43
45
|
//#endregion
|
|
44
46
|
init_CompactEstimateCost();
|
|
@@ -9,43 +9,45 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
9
9
|
|
|
10
10
|
//#region src/compositions/EstimateCost/Components/Children.tsx
|
|
11
11
|
var ChildrenComponent;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
12
|
+
function init_Children() {
|
|
13
|
+
return (init_Children = __esmMin(() => {
|
|
14
|
+
init_EstimateCostProvider();
|
|
15
|
+
init_CustomUnitInput();
|
|
16
|
+
init_Title();
|
|
17
|
+
init_styles_css();
|
|
18
|
+
ChildrenComponent = ({ hideTotal, ref, hideTimeUnit, defaultTimeUnit, iteration, setIteration, timeUnits, children, discount, productsCallback }) => {
|
|
19
|
+
const { locales } = useEstimateCost();
|
|
20
|
+
return /* @__PURE__ */ jsxs("table", {
|
|
21
|
+
cellPadding: "0",
|
|
22
|
+
cellSpacing: "0",
|
|
23
|
+
className: estimateCostStyle.table[hideTotal ? "noTotal" : "total"],
|
|
24
|
+
"data-testid": "summary",
|
|
25
|
+
ref,
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ jsxs("colgroup", { children: [/* @__PURE__ */ jsx("col", {}), /* @__PURE__ */ jsx("col", { className: estimateCostStyle.priceColumn })] }),
|
|
28
|
+
hideTimeUnit ? null : /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [/* @__PURE__ */ jsx("th", { children: /* @__PURE__ */ jsx(Title, { locales }) }), /* @__PURE__ */ jsx("th", {
|
|
29
|
+
className: cn(estimateCostStyle.priceCellContent, estimateCostStyle.priceCell),
|
|
30
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
31
|
+
className: estimateCostStyle.timeCell,
|
|
32
|
+
children: /* @__PURE__ */ jsx(CustomUnitInput, {
|
|
33
|
+
defaultTimeUnit,
|
|
34
|
+
iteration,
|
|
35
|
+
setIteration,
|
|
36
|
+
timeUnits
|
|
37
|
+
})
|
|
36
38
|
})
|
|
37
|
-
})
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
}
|
|
39
|
+
})] }) }),
|
|
40
|
+
/* @__PURE__ */ jsx("tbody", { children: Children.map(children, (child, index) => isValidElement(child) ? cloneElement(child, {
|
|
41
|
+
discount: discount && !child.props.discount ? discount : child.props.discount,
|
|
42
|
+
isLastElement: index === Children.count(children) - 1,
|
|
43
|
+
iteration,
|
|
44
|
+
productsCallback
|
|
45
|
+
}) : child) })
|
|
46
|
+
]
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
}))();
|
|
50
|
+
}
|
|
49
51
|
|
|
50
52
|
//#endregion
|
|
51
53
|
init_Children();
|
|
@@ -7,40 +7,42 @@ import { jsx } from "react/jsx-runtime";
|
|
|
7
7
|
|
|
8
8
|
//#region src/compositions/EstimateCost/Components/CustomUnitInput.tsx
|
|
9
9
|
var CustomUnitInput;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
10
|
+
function init_CustomUnitInput() {
|
|
11
|
+
return (init_CustomUnitInput = __esmMin(() => {
|
|
12
|
+
init_UnitInput();
|
|
13
|
+
init_EstimateCostProvider();
|
|
14
|
+
CustomUnitInput = memo(({ defaultTimeUnit = "hours", setIteration, iteration, timeUnits }) => {
|
|
15
|
+
const { locales } = useEstimateCost();
|
|
16
|
+
const options = useMemo(() => timeUnits.map((unit) => ({
|
|
17
|
+
label: locales[`estimate.cost.units.${unit}.label`],
|
|
18
|
+
value: unit
|
|
19
|
+
})), [timeUnits, locales]);
|
|
20
|
+
const defaultOption = useMemo(() => options.find(({ value }) => value === defaultTimeUnit), [defaultTimeUnit, options]);
|
|
21
|
+
return /* @__PURE__ */ jsx(UnitInput, {
|
|
22
|
+
min: 1,
|
|
23
|
+
name: "iteration",
|
|
24
|
+
onChange: (inputValue) => setIteration({
|
|
25
|
+
unit: iteration.unit,
|
|
26
|
+
value: inputValue
|
|
27
|
+
}),
|
|
28
|
+
onChangeUnitValue: (unitValue) => {
|
|
29
|
+
setIteration({
|
|
30
|
+
unit: unitValue,
|
|
31
|
+
value: iteration.value
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
options,
|
|
35
|
+
placeholder: "0",
|
|
36
|
+
selectInputWidth: "100%",
|
|
37
|
+
size: "medium",
|
|
38
|
+
templateColumns: "auto auto",
|
|
39
|
+
unitValue: iteration.unit || (defaultOption === null || defaultOption === void 0 ? void 0 : defaultOption.value),
|
|
40
|
+
value: iteration.value,
|
|
41
|
+
width: "100%"
|
|
42
|
+
});
|
|
41
43
|
});
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
+
}))();
|
|
45
|
+
}
|
|
44
46
|
|
|
45
47
|
//#endregion
|
|
46
48
|
init_CustomUnitInput();
|
|
@@ -5,14 +5,16 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
|
|
6
6
|
//#region src/compositions/EstimateCost/Components/Description.tsx
|
|
7
7
|
var Description;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
});
|
|
8
|
+
function init_Description() {
|
|
9
|
+
return (init_Description = __esmMin(() => {
|
|
10
|
+
init_Text();
|
|
11
|
+
Description = memo(({ description, locales }) => description === void 0 || typeof description === "string" ? /* @__PURE__ */ jsx(Text, {
|
|
12
|
+
as: "span",
|
|
13
|
+
variant: "body",
|
|
14
|
+
children: description || locales["estimate.cost.description"]
|
|
15
|
+
}) : description);
|
|
16
|
+
}))();
|
|
17
|
+
}
|
|
16
18
|
|
|
17
19
|
//#endregion
|
|
18
20
|
init_Description();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import _objectSpread2, { init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.142.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { init_constants, maximumFractionDigits, maximumFractionDigitsLong, multiplier } from "../constants.js";
|
|
5
5
|
import { init_EstimateCostProvider, useEstimateCost } from "../EstimateCostProvider.js";
|
|
6
6
|
import { calculatePrice, init_helper } from "../helper.js";
|
|
@@ -15,165 +15,167 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
15
15
|
|
|
16
16
|
//#region src/compositions/EstimateCost/Components/Item.tsx
|
|
17
17
|
var Item;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
18
|
+
function init_Item() {
|
|
19
|
+
return (init_Item = __esmMin(() => {
|
|
20
|
+
init_constants();
|
|
21
|
+
init_EstimateCostProvider();
|
|
22
|
+
init_helper();
|
|
23
|
+
init_OverlayContext();
|
|
24
|
+
init_ItemLeftSide();
|
|
25
|
+
init_ItemPrice();
|
|
26
|
+
init_styles_css();
|
|
27
|
+
init_objectSpread2();
|
|
28
|
+
Item = memo(({ discount = 0, priceText, discountText, label, tooltipInfo, subLabel = "", price: basePrice = 0, monthlyPrice = 0, unit: baseUnit, amount: currentAmount = 1, onAmountChange, amountFree = 0, maxAmount = 0, longFractionDigits = false, noIteration = false, noIterationText, noBorder, noPrice, isDefined = true, children = null, isFirstElement = false, isLastElement = false, isPrimaryBackground = false, productsCallback, iteration: receivedIteration, shouldBeHidden = false, hideFromOverlay = false, textNotDefined, animated = false, tabulation, labelTextVariant, labelTextProminence, notice, strikeThrough, style }) => {
|
|
29
|
+
const { locales } = useEstimateCost();
|
|
30
|
+
let iteration;
|
|
31
|
+
if (noIteration) iteration = _objectSpread2(_objectSpread2({}, receivedIteration !== null && receivedIteration !== void 0 ? receivedIteration : { value: 0 }), {}, { unit: "hours" });
|
|
32
|
+
else iteration = receivedIteration;
|
|
33
|
+
const price = useMemo(() => {
|
|
34
|
+
if (monthlyPrice && basePrice === 0) return monthlyPrice / multiplier.months;
|
|
35
|
+
return basePrice;
|
|
36
|
+
}, [basePrice, monthlyPrice]);
|
|
37
|
+
const unit = useMemo(() => {
|
|
38
|
+
if (!baseUnit) return locales["estimate.cost.units.gb.label"];
|
|
39
|
+
return baseUnit;
|
|
40
|
+
}, [baseUnit, locales]);
|
|
41
|
+
const { isOverlay } = useOverlay();
|
|
42
|
+
const Row = isOverlay ? "li" : "tr";
|
|
43
|
+
const Cell = isOverlay ? "div" : "td";
|
|
44
|
+
const [amount, setAmount] = useState(currentAmount);
|
|
45
|
+
const [isVariant, setIsVariant] = useState(false);
|
|
46
|
+
useEffect(() => setAmount(currentAmount), [setAmount, currentAmount]);
|
|
47
|
+
useEffect(() => onAmountChange === null || onAmountChange === void 0 ? void 0 : onAmountChange(amount), [onAmountChange, amount]);
|
|
48
|
+
const itemCallback = useCallback((localAmount, localIsVariant) => {
|
|
49
|
+
setAmount(localAmount);
|
|
50
|
+
setIsVariant(localIsVariant);
|
|
51
|
+
}, [setAmount, setIsVariant]);
|
|
52
|
+
const id = useId();
|
|
53
|
+
useEffect(() => () => productsCallback === null || productsCallback === void 0 ? void 0 : productsCallback.remove({ id }), [id, productsCallback]);
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
if (!isOverlay) productsCallback === null || productsCallback === void 0 || productsCallback.add({
|
|
56
|
+
amount,
|
|
57
|
+
amountFree,
|
|
58
|
+
discount,
|
|
59
|
+
id,
|
|
60
|
+
isVariant,
|
|
61
|
+
longFractionDigits,
|
|
62
|
+
maxAmount,
|
|
63
|
+
noIteration,
|
|
64
|
+
price
|
|
65
|
+
});
|
|
66
|
+
}, [
|
|
67
|
+
price,
|
|
57
68
|
discount,
|
|
69
|
+
amount,
|
|
58
70
|
id,
|
|
59
|
-
|
|
60
|
-
longFractionDigits,
|
|
71
|
+
productsCallback,
|
|
61
72
|
maxAmount,
|
|
62
73
|
noIteration,
|
|
63
|
-
|
|
64
|
-
});
|
|
65
|
-
}, [
|
|
66
|
-
price,
|
|
67
|
-
discount,
|
|
68
|
-
amount,
|
|
69
|
-
id,
|
|
70
|
-
productsCallback,
|
|
71
|
-
maxAmount,
|
|
72
|
-
noIteration,
|
|
73
|
-
isVariant,
|
|
74
|
-
amountFree,
|
|
75
|
-
isOverlay,
|
|
76
|
-
longFractionDigits
|
|
77
|
-
]);
|
|
78
|
-
const computedItemPrice = useMemo(() => {
|
|
79
|
-
var _iteration$value;
|
|
80
|
-
var _iteration$unit;
|
|
81
|
-
return calculatePrice({
|
|
82
|
-
amount,
|
|
83
|
-
amountFree,
|
|
84
|
-
discount,
|
|
85
|
-
price,
|
|
86
|
-
timeAmount: noIteration ? 1 : (_iteration$value = iteration === null || iteration === void 0 ? void 0 : iteration.value) !== null && _iteration$value !== void 0 ? _iteration$value : 1,
|
|
87
|
-
timeUnit: noIteration ? "hours" : (_iteration$unit = iteration === null || iteration === void 0 ? void 0 : iteration.unit) !== null && _iteration$unit !== void 0 ? _iteration$unit : "hours"
|
|
88
|
-
});
|
|
89
|
-
}, [
|
|
90
|
-
price,
|
|
91
|
-
amount,
|
|
92
|
-
amountFree,
|
|
93
|
-
iteration,
|
|
94
|
-
noIteration,
|
|
95
|
-
discount
|
|
96
|
-
]);
|
|
97
|
-
const computedMaxItemPrice = useMemo(() => {
|
|
98
|
-
var _iteration$value2;
|
|
99
|
-
var _iteration$unit2;
|
|
100
|
-
return calculatePrice({
|
|
101
|
-
amount: maxAmount,
|
|
74
|
+
isVariant,
|
|
102
75
|
amountFree,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
maxAmount,
|
|
111
|
-
amountFree,
|
|
112
|
-
iteration,
|
|
113
|
-
noIteration,
|
|
114
|
-
discount
|
|
115
|
-
]);
|
|
116
|
-
const formatMaximumFractionDigits = useMemo(() => {
|
|
117
|
-
if (!(iteration === null || iteration === void 0 ? void 0 : iteration.unit)) return;
|
|
118
|
-
return longFractionDigits ? maximumFractionDigitsLong[iteration === null || iteration === void 0 ? void 0 : iteration.unit] : maximumFractionDigits[iteration === null || iteration === void 0 ? void 0 : iteration.unit];
|
|
119
|
-
}, [iteration === null || iteration === void 0 ? void 0 : iteration.unit, longFractionDigits]);
|
|
120
|
-
return /* @__PURE__ */ jsxs(Row, {
|
|
121
|
-
className: isOverlay ? estimateCostStyle.overlayRow({
|
|
122
|
-
hideFromOverlay,
|
|
123
|
-
isFirstElement,
|
|
124
|
-
shouldBeHidden
|
|
125
|
-
}) : estimateCostStyle.tr,
|
|
126
|
-
style,
|
|
127
|
-
children: [/* @__PURE__ */ jsx(Cell, {
|
|
128
|
-
className: estimateCostStyle.cell({ hasBorder: !(isLastElement || noBorder || isOverlay) }),
|
|
129
|
-
style: assignInlineVars({ [paddingLeftCell]: `${(tabulation !== null && tabulation !== void 0 ? tabulation : 0) * 8 + 16}px` }),
|
|
130
|
-
children: /* @__PURE__ */ jsx(ItemLeftSide, {
|
|
76
|
+
isOverlay,
|
|
77
|
+
longFractionDigits
|
|
78
|
+
]);
|
|
79
|
+
const computedItemPrice = useMemo(() => {
|
|
80
|
+
var _iteration$value;
|
|
81
|
+
var _iteration$unit;
|
|
82
|
+
return calculatePrice({
|
|
131
83
|
amount,
|
|
132
|
-
|
|
84
|
+
amountFree,
|
|
133
85
|
discount,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
primary: isPrimaryBackground
|
|
152
|
-
}), estimateCostStyle.priceCell),
|
|
153
|
-
style: assignInlineVars({ [paddingLeftCell]: "16px" }),
|
|
154
|
-
children: noPrice ? null : /* @__PURE__ */ jsx(ItemPrice, {
|
|
155
|
-
amount,
|
|
86
|
+
price,
|
|
87
|
+
timeAmount: noIteration ? 1 : (_iteration$value = iteration === null || iteration === void 0 ? void 0 : iteration.value) !== null && _iteration$value !== void 0 ? _iteration$value : 1,
|
|
88
|
+
timeUnit: noIteration ? "hours" : (_iteration$unit = iteration === null || iteration === void 0 ? void 0 : iteration.unit) !== null && _iteration$unit !== void 0 ? _iteration$unit : "hours"
|
|
89
|
+
});
|
|
90
|
+
}, [
|
|
91
|
+
price,
|
|
92
|
+
amount,
|
|
93
|
+
amountFree,
|
|
94
|
+
iteration,
|
|
95
|
+
noIteration,
|
|
96
|
+
discount
|
|
97
|
+
]);
|
|
98
|
+
const computedMaxItemPrice = useMemo(() => {
|
|
99
|
+
var _iteration$value2;
|
|
100
|
+
var _iteration$unit2;
|
|
101
|
+
return calculatePrice({
|
|
102
|
+
amount: maxAmount,
|
|
156
103
|
amountFree,
|
|
157
|
-
computedItemPrice,
|
|
158
|
-
computedMaxItemPrice,
|
|
159
104
|
discount,
|
|
160
|
-
formatMaximumFractionDigits,
|
|
161
|
-
longFractionDigits,
|
|
162
|
-
maxAmount,
|
|
163
|
-
maximumFractionDigits,
|
|
164
|
-
maximumFractionDigitsLong,
|
|
165
|
-
noIteration,
|
|
166
|
-
noIterationText,
|
|
167
105
|
price,
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
106
|
+
timeAmount: noIteration ? 1 : (_iteration$value2 = iteration === null || iteration === void 0 ? void 0 : iteration.value) !== null && _iteration$value2 !== void 0 ? _iteration$value2 : 1,
|
|
107
|
+
timeUnit: noIteration ? "hours" : (_iteration$unit2 = iteration === null || iteration === void 0 ? void 0 : iteration.unit) !== null && _iteration$unit2 !== void 0 ? _iteration$unit2 : "hours"
|
|
108
|
+
});
|
|
109
|
+
}, [
|
|
110
|
+
price,
|
|
111
|
+
maxAmount,
|
|
112
|
+
amountFree,
|
|
113
|
+
iteration,
|
|
114
|
+
noIteration,
|
|
115
|
+
discount
|
|
116
|
+
]);
|
|
117
|
+
const formatMaximumFractionDigits = useMemo(() => {
|
|
118
|
+
if (!(iteration === null || iteration === void 0 ? void 0 : iteration.unit)) return;
|
|
119
|
+
return longFractionDigits ? maximumFractionDigitsLong[iteration === null || iteration === void 0 ? void 0 : iteration.unit] : maximumFractionDigits[iteration === null || iteration === void 0 ? void 0 : iteration.unit];
|
|
120
|
+
}, [iteration === null || iteration === void 0 ? void 0 : iteration.unit, longFractionDigits]);
|
|
121
|
+
return /* @__PURE__ */ jsxs(Row, {
|
|
122
|
+
className: isOverlay ? estimateCostStyle.overlayRow({
|
|
123
|
+
hideFromOverlay,
|
|
124
|
+
isFirstElement,
|
|
125
|
+
shouldBeHidden
|
|
126
|
+
}) : estimateCostStyle.tr,
|
|
127
|
+
style,
|
|
128
|
+
children: [/* @__PURE__ */ jsx(Cell, {
|
|
129
|
+
className: estimateCostStyle.cell({ hasBorder: !(isLastElement || noBorder || isOverlay) }),
|
|
130
|
+
style: assignInlineVars({ [paddingLeftCell]: `${(tabulation !== null && tabulation !== void 0 ? tabulation : 0) * 8 + 16}px` }),
|
|
131
|
+
children: /* @__PURE__ */ jsx(ItemLeftSide, {
|
|
132
|
+
amount,
|
|
133
|
+
animated,
|
|
134
|
+
discount,
|
|
135
|
+
discountText,
|
|
136
|
+
isDefined,
|
|
137
|
+
itemCallback,
|
|
138
|
+
label,
|
|
139
|
+
labelTextProminence,
|
|
140
|
+
labelTextVariant,
|
|
141
|
+
maxAmount,
|
|
142
|
+
notice,
|
|
143
|
+
subLabel,
|
|
144
|
+
textNotDefined,
|
|
145
|
+
tooltipInfo,
|
|
146
|
+
unit,
|
|
147
|
+
children
|
|
148
|
+
})
|
|
149
|
+
}), isOverlay ? null : /* @__PURE__ */ jsx("td", {
|
|
150
|
+
className: cn(estimateCostStyle.cell({
|
|
151
|
+
hasBorder: !(isLastElement || noBorder),
|
|
152
|
+
primary: isPrimaryBackground
|
|
153
|
+
}), estimateCostStyle.priceCell),
|
|
154
|
+
style: assignInlineVars({ [paddingLeftCell]: "16px" }),
|
|
155
|
+
children: noPrice ? null : /* @__PURE__ */ jsx(ItemPrice, {
|
|
156
|
+
amount,
|
|
157
|
+
amountFree,
|
|
158
|
+
computedItemPrice,
|
|
159
|
+
computedMaxItemPrice,
|
|
160
|
+
discount,
|
|
161
|
+
formatMaximumFractionDigits,
|
|
162
|
+
longFractionDigits,
|
|
163
|
+
maxAmount,
|
|
164
|
+
maximumFractionDigits,
|
|
165
|
+
maximumFractionDigitsLong,
|
|
166
|
+
noIteration,
|
|
167
|
+
noIterationText,
|
|
168
|
+
price,
|
|
169
|
+
priceText,
|
|
170
|
+
strikeThrough,
|
|
171
|
+
unit
|
|
172
|
+
})
|
|
173
|
+
})]
|
|
174
|
+
});
|
|
173
175
|
});
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
176
|
+
Item.displayName = "EstimateCost.Item";
|
|
177
|
+
}))();
|
|
178
|
+
}
|
|
177
179
|
|
|
178
180
|
//#endregion
|
|
179
181
|
init_Item();
|