@ultraviolet/ui 3.11.1 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/defineProperty.js +19 -0
- package/dist/_virtual/{_@oxc-project_runtime@0.114.0 → _@oxc-project_runtime@0.115.0}/helpers/objectSpread2.js +8 -4
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutProperties.js +22 -0
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutPropertiesLoose.js +17 -0
- package/dist/_virtual/{_@oxc-project_runtime@0.114.0 → _@oxc-project_runtime@0.115.0}/helpers/toPrimitive.js +8 -4
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/toPropertyKey.js +17 -0
- package/dist/_virtual/{_@oxc-project_runtime@0.114.0 → _@oxc-project_runtime@0.115.0}/helpers/typeof.js +5 -3
- package/dist/_virtual/_rolldown/runtime.js +2 -1
- package/dist/components/ActionBar/index.js +24 -24
- package/dist/components/ActionBar/styles.css.d.ts +4 -2
- package/dist/components/ActionBar/styles.css.d.ts.map +1 -1
- package/dist/components/ActionBar/styles.css.js +15 -6
- package/dist/components/ActionBar/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Alert/index.d.ts.map +1 -1
- package/dist/components/Alert/index.js +85 -80
- package/dist/components/Alert/styles.css.d.ts +46 -6
- package/dist/components/Alert/styles.css.d.ts.map +1 -1
- package/dist/components/Alert/styles.css.js +37 -29
- package/dist/components/Alert/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Avatar/constants.js +18 -14
- package/dist/components/Avatar/index.d.ts.map +1 -1
- package/dist/components/Avatar/index.js +87 -81
- package/dist/components/Avatar/styles.css.d.ts +117 -115
- package/dist/components/Avatar/styles.css.d.ts.map +1 -1
- package/dist/components/Avatar/styles.css.js +169 -160
- package/dist/components/Avatar/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Avatar/variables.css.js +10 -4
- package/dist/components/Avatar/variables.css.ts.vanilla.js +8 -0
- package/dist/components/Badge/constant.js +13 -7
- package/dist/components/Badge/index.js +35 -31
- package/dist/components/Badge/styles.css.d.ts +46 -1
- package/dist/components/Badge/styles.css.d.ts.map +1 -1
- package/dist/components/Badge/styles.css.js +109 -103
- package/dist/components/Badge/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Banner/assets/default-image-small.js +8 -2
- package/dist/components/Banner/assets/default-image.js +8 -2
- package/dist/components/Banner/index.js +115 -107
- package/dist/components/Banner/styles.css.d.ts +20 -3
- package/dist/components/Banner/styles.css.d.ts.map +1 -1
- package/dist/components/Banner/styles.css.js +48 -40
- package/dist/components/Banner/styles.css.ts.vanilla.js +8 -0
- package/dist/components/BarChart/Tooltip.d.ts.map +1 -1
- package/dist/components/BarChart/Tooltip.js +27 -21
- package/dist/components/BarChart/index.js +61 -58
- package/dist/components/BarChart/styles.css.d.ts +4 -2
- package/dist/components/BarChart/styles.css.d.ts.map +1 -1
- package/dist/components/BarChart/styles.css.js +13 -5
- package/dist/components/BarChart/styles.css.ts.vanilla.js +8 -0
- package/dist/components/BarStack/index.d.ts.map +1 -1
- package/dist/components/BarStack/index.js +99 -93
- package/dist/components/BarStack/styles.css.d.ts +48 -45
- package/dist/components/BarStack/styles.css.d.ts.map +1 -1
- package/dist/components/BarStack/styles.css.js +40 -30
- package/dist/components/BarStack/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Breadcrumbs/components/Item.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/components/Item.js +58 -48
- package/dist/components/Breadcrumbs/components/styles.css.d.ts +4 -4
- package/dist/components/Breadcrumbs/components/styles.css.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/components/styles.css.js +15 -13
- package/dist/components/Breadcrumbs/components/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Breadcrumbs/index.js +20 -17
- package/dist/components/Breadcrumbs/styles.css.d.ts +14 -1
- package/dist/components/Breadcrumbs/styles.css.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/styles.css.js +24 -3
- package/dist/components/Breadcrumbs/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Bullet/index.js +25 -22
- package/dist/components/Bullet/styles.css.d.ts +23 -21
- package/dist/components/Bullet/styles.css.d.ts.map +1 -1
- package/dist/components/Bullet/styles.css.js +107 -101
- package/dist/components/Bullet/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Button/constants.js +13 -7
- package/dist/components/Button/index.js +115 -113
- package/dist/components/Button/styles.css.d.ts +84 -1
- package/dist/components/Button/styles.css.d.ts.map +1 -1
- package/dist/components/Button/styles.css.js +156 -150
- package/dist/components/Button/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Card/index.js +48 -44
- package/dist/components/Card/styles.css.d.ts +4 -2
- package/dist/components/Card/styles.css.d.ts.map +1 -1
- package/dist/components/Card/styles.css.js +12 -4
- package/dist/components/Card/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Carousel/index.d.ts.map +1 -1
- package/dist/components/Carousel/index.js +100 -97
- package/dist/components/Carousel/styles.css.d.ts +7 -5
- package/dist/components/Carousel/styles.css.d.ts.map +1 -1
- package/dist/components/Carousel/styles.css.js +16 -8
- package/dist/components/Carousel/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Checkbox/CheckboxIconContainer.js +37 -31
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +105 -99
- package/dist/components/Checkbox/styles.css.d.ts +10 -8
- package/dist/components/Checkbox/styles.css.d.ts.map +1 -1
- package/dist/components/Checkbox/styles.css.js +37 -24
- package/dist/components/Checkbox/styles.css.ts.vanilla.js +8 -0
- package/dist/components/CheckboxGroup/index.js +107 -101
- package/dist/components/CheckboxGroup/styles.css.d.ts +4 -2
- package/dist/components/CheckboxGroup/styles.css.d.ts.map +1 -1
- package/dist/components/CheckboxGroup/styles.css.js +12 -4
- package/dist/components/CheckboxGroup/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Chip/ChipContext.js +7 -2
- package/dist/components/Chip/ChipIcon.d.ts +3 -5
- package/dist/components/Chip/ChipIcon.d.ts.map +1 -1
- package/dist/components/Chip/ChipIcon.js +39 -45
- package/dist/components/Chip/index.d.ts +2 -2
- package/dist/components/Chip/index.js +73 -67
- package/dist/components/Chip/styles.css.d.ts +4 -2
- package/dist/components/Chip/styles.css.d.ts.map +1 -1
- package/dist/components/Chip/styles.css.js +12 -4
- package/dist/components/Chip/styles.css.ts.vanilla.js +8 -0
- package/dist/components/CopyButton/index.js +28 -26
- package/dist/components/DateInput/Context.js +23 -19
- package/dist/components/DateInput/components/CalendarContent.js +79 -67
- package/dist/components/DateInput/components/CalendarDaily.js +151 -139
- package/dist/components/DateInput/components/CalendarMonthly.d.ts.map +1 -1
- package/dist/components/DateInput/components/CalendarMonthly.js +93 -84
- package/dist/components/DateInput/components/Popup.js +42 -35
- package/dist/components/DateInput/components/styles.css.d.ts +0 -1
- package/dist/components/DateInput/components/styles.css.d.ts.map +1 -1
- package/dist/components/DateInput/components/styles.css.ts.vanilla.js +8 -0
- package/dist/components/DateInput/constants.js +8 -2
- package/dist/components/DateInput/helpers.js +59 -55
- package/dist/components/DateInput/helpersLocale.js +55 -51
- package/dist/components/DateInput/index.d.ts.map +1 -1
- package/dist/components/DateInput/index.js +243 -232
- package/dist/components/DateInput/styles.css.d.ts +13 -7
- package/dist/components/DateInput/styles.css.d.ts.map +1 -1
- package/dist/components/DateInput/styles.css.js +22 -8
- package/dist/components/DateInput/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Dialog/Context.js +12 -8
- package/dist/components/Dialog/components/Button.js +20 -14
- package/dist/components/Dialog/components/Buttons.js +13 -8
- package/dist/components/Dialog/components/CancelButton.js +15 -10
- package/dist/components/Dialog/components/Stack.js +12 -7
- package/dist/components/Dialog/components/Text.js +14 -9
- package/dist/components/Dialog/index.js +70 -59
- package/dist/components/Dialog/styles.css.d.ts +4 -2
- package/dist/components/Dialog/styles.css.d.ts.map +1 -1
- package/dist/components/Dialog/styles.css.js +12 -4
- package/dist/components/Dialog/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Drawer/DrawerContent.js +11 -6
- package/dist/components/Drawer/index.d.ts.map +1 -1
- package/dist/components/Drawer/index.js +109 -99
- package/dist/components/Drawer/styles.css.d.ts +11 -9
- package/dist/components/Drawer/styles.css.d.ts.map +1 -1
- package/dist/components/Drawer/styles.css.js +23 -15
- package/dist/components/Drawer/styles.css.ts.vanilla.js +8 -0
- package/dist/components/EmptyState/index.js +78 -73
- package/dist/components/EmptyState/styles.css.d.ts +22 -20
- package/dist/components/EmptyState/styles.css.d.ts.map +1 -1
- package/dist/components/EmptyState/styles.css.js +30 -22
- package/dist/components/EmptyState/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Expandable/index.js +110 -109
- package/dist/components/Expandable/styles.css.d.ts +3 -1
- package/dist/components/Expandable/styles.css.d.ts.map +1 -1
- package/dist/components/Expandable/styles.css.js +10 -4
- package/dist/components/Expandable/styles.css.ts.vanilla.js +8 -0
- package/dist/components/ExpandableCard/components/Title.js +15 -10
- package/dist/components/ExpandableCard/index.d.ts.map +1 -1
- package/dist/components/ExpandableCard/index.js +148 -140
- package/dist/components/ExpandableCard/styles.css.d.ts +9 -7
- package/dist/components/ExpandableCard/styles.css.d.ts.map +1 -1
- package/dist/components/ExpandableCard/styles.css.js +17 -9
- package/dist/components/ExpandableCard/styles.css.ts.vanilla.js +8 -0
- package/dist/components/FileInput/FileInputProvider.js +12 -8
- package/dist/components/FileInput/components/Button.js +29 -21
- package/dist/components/FileInput/components/List.d.ts.map +1 -1
- package/dist/components/FileInput/components/List.js +138 -127
- package/dist/components/FileInput/helpers.js +37 -33
- package/dist/components/FileInput/index.js +232 -224
- package/dist/components/FileInput/styles.css.d.ts +29 -27
- package/dist/components/FileInput/styles.css.d.ts.map +1 -1
- package/dist/components/FileInput/styles.css.js +58 -49
- package/dist/components/FileInput/styles.css.ts.vanilla.js +8 -0
- package/dist/components/GlobalAlert/GlobalAlertLink.js +27 -22
- package/dist/components/GlobalAlert/index.js +54 -49
- package/dist/components/GlobalAlert/styles.css.d.ts +4 -2
- package/dist/components/GlobalAlert/styles.css.d.ts.map +1 -1
- package/dist/components/GlobalAlert/styles.css.js +16 -8
- package/dist/components/GlobalAlert/styles.css.ts.vanilla.js +8 -0
- package/dist/components/InfiniteScroll/index.js +72 -71
- package/dist/components/Key/constants.js +15 -9
- package/dist/components/Key/index.js +44 -40
- package/dist/components/Key/styles.css.d.ts +27 -25
- package/dist/components/Key/styles.css.d.ts.map +1 -1
- package/dist/components/Key/styles.css.js +57 -51
- package/dist/components/Key/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Label/index.js +69 -65
- package/dist/components/Label/styles.css.d.ts +3 -1
- package/dist/components/Label/styles.css.d.ts.map +1 -1
- package/dist/components/Label/styles.css.js +13 -7
- package/dist/components/Label/styles.css.ts.vanilla.js +8 -0
- package/dist/components/LineChart/CustomLegend.d.ts.map +1 -1
- package/dist/components/LineChart/CustomLegend.js +100 -91
- package/dist/components/LineChart/Tooltip.js +28 -22
- package/dist/components/LineChart/helpers.js +36 -32
- package/dist/components/LineChart/index.js +99 -94
- package/dist/components/LineChart/styles.css.d.ts +14 -12
- package/dist/components/LineChart/styles.css.d.ts.map +1 -1
- package/dist/components/LineChart/styles.css.js +24 -16
- package/dist/components/LineChart/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Link/index.d.ts.map +1 -1
- package/dist/components/Link/index.js +89 -86
- package/dist/components/Link/styles.css.d.ts +71 -69
- package/dist/components/Link/styles.css.d.ts.map +1 -1
- package/dist/components/Link/styles.css.js +82 -74
- package/dist/components/Link/styles.css.ts.vanilla.js +8 -0
- package/dist/components/List/Cell.js +41 -32
- package/dist/components/List/ColumnProvider.d.ts.map +1 -1
- package/dist/components/List/ColumnProvider.js +23 -12
- package/dist/components/List/HeaderCell.js +60 -52
- package/dist/components/List/HeaderRow.d.ts.map +1 -1
- package/dist/components/List/HeaderRow.js +39 -31
- package/dist/components/List/ListContext.js +209 -202
- package/dist/components/List/Row.d.ts.map +1 -1
- package/dist/components/List/Row.js +153 -141
- package/dist/components/List/SelectBar.js +34 -27
- package/dist/components/List/SkeletonRows.d.ts.map +1 -1
- package/dist/components/List/SkeletonRows.js +35 -26
- package/dist/components/List/index.d.ts.map +1 -1
- package/dist/components/List/index.js +71 -59
- package/dist/components/List/styles.css.d.ts +27 -25
- package/dist/components/List/styles.css.d.ts.map +1 -1
- package/dist/components/List/styles.css.js +48 -40
- package/dist/components/List/styles.css.ts.vanilla.js +8 -0
- package/dist/components/List/variables.css.js +18 -12
- package/dist/components/List/variables.css.ts.vanilla.js +8 -0
- package/dist/components/Loader/constants.js +15 -9
- package/dist/components/Loader/index.js +56 -52
- package/dist/components/Loader/styles.css.d.ts +5 -3
- package/dist/components/Loader/styles.css.d.ts.map +1 -1
- package/dist/components/Loader/styles.css.js +13 -5
- package/dist/components/Loader/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Menu/MenuContent.d.ts.map +1 -1
- package/dist/components/Menu/MenuContent.js +193 -183
- package/dist/components/Menu/MenuProvider.js +45 -41
- package/dist/components/Menu/components/Group.js +31 -24
- package/dist/components/Menu/components/Item.js +150 -141
- package/dist/components/Menu/helpers.js +31 -30
- package/dist/components/Menu/index.js +36 -26
- package/dist/components/Menu/styles.css.d.ts +40 -38
- package/dist/components/Menu/styles.css.d.ts.map +1 -1
- package/dist/components/Menu/styles.css.js +80 -72
- package/dist/components/Menu/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Meter/index.js +52 -49
- package/dist/components/Meter/styles.css.d.ts +5 -3
- package/dist/components/Meter/styles.css.d.ts.map +1 -1
- package/dist/components/Meter/styles.css.js +14 -6
- package/dist/components/Meter/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Modal/ModalContent.js +47 -40
- package/dist/components/Modal/ModalProvider.js +42 -38
- package/dist/components/Modal/components/Dialog.d.ts.map +1 -1
- package/dist/components/Modal/components/Dialog.js +165 -157
- package/dist/components/Modal/components/Disclosure.js +39 -35
- package/dist/components/Modal/index.js +89 -86
- package/dist/components/Modal/styles.css.d.ts +72 -70
- package/dist/components/Modal/styles.css.d.ts.map +1 -1
- package/dist/components/Modal/styles.css.js +86 -73
- package/dist/components/Modal/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Notice/index.js +22 -19
- package/dist/components/Notice/styles.css.d.ts +3 -1
- package/dist/components/Notice/styles.css.d.ts.map +1 -1
- package/dist/components/Notice/styles.css.js +9 -3
- package/dist/components/Notice/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Notification/Notification.js +39 -31
- package/dist/components/Notification/NotificationContainer.js +21 -16
- package/dist/components/Notification/index.js +10 -0
- package/dist/components/Notification/styles.css.d.ts +3 -1
- package/dist/components/Notification/styles.css.d.ts.map +1 -1
- package/dist/components/Notification/styles.css.js +9 -3
- package/dist/components/Notification/styles.css.ts.vanilla.js +8 -0
- package/dist/components/NumberInput/index.d.ts.map +1 -1
- package/dist/components/NumberInput/index.js +202 -194
- package/dist/components/NumberInput/styles.css.d.ts +105 -95
- package/dist/components/NumberInput/styles.css.d.ts.map +1 -1
- package/dist/components/NumberInput/styles.css.js +82 -69
- package/dist/components/NumberInput/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Pagination/PaginationButtons.d.ts.map +1 -1
- package/dist/components/Pagination/PaginationButtons.js +96 -87
- package/dist/components/Pagination/PerPage.js +72 -65
- package/dist/components/Pagination/getPageNumbers.js +20 -23
- package/dist/components/Pagination/index.js +48 -45
- package/dist/components/Pagination/styles.css.d.ts +5 -3
- package/dist/components/Pagination/styles.css.d.ts.map +1 -1
- package/dist/components/Pagination/styles.css.js +19 -11
- package/dist/components/Pagination/styles.css.ts.vanilla.js +8 -0
- package/dist/components/PasswordCheck/index.js +35 -32
- package/dist/components/PasswordCheck/styles.css.d.ts +3 -1
- package/dist/components/PasswordCheck/styles.css.d.ts.map +1 -1
- package/dist/components/PasswordCheck/styles.css.js +9 -3
- package/dist/components/PasswordCheck/styles.css.ts.vanilla.js +8 -0
- package/dist/components/PieChart/Legends.d.ts.map +1 -1
- package/dist/components/PieChart/Legends.js +56 -49
- package/dist/components/PieChart/Tooltip.js +47 -41
- package/dist/components/PieChart/index.d.ts.map +1 -1
- package/dist/components/PieChart/index.js +98 -93
- package/dist/components/PieChart/styles.css.d.ts +45 -43
- package/dist/components/PieChart/styles.css.d.ts.map +1 -1
- package/dist/components/PieChart/styles.css.js +57 -49
- package/dist/components/PieChart/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Popover/index.js +88 -82
- package/dist/components/Popover/styles.css.d.ts +31 -29
- package/dist/components/Popover/styles.css.d.ts.map +1 -1
- package/dist/components/Popover/styles.css.js +26 -18
- package/dist/components/Popover/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Popup/helpers.js +235 -251
- package/dist/components/Popup/index.d.ts.map +1 -1
- package/dist/components/Popup/index.js +325 -322
- package/dist/components/Popup/styles.css.d.ts +40 -38
- package/dist/components/Popup/styles.css.d.ts.map +1 -1
- package/dist/components/Popup/styles.css.js +42 -32
- package/dist/components/Popup/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Popup/variables.css.js +14 -10
- package/dist/components/Popup/variables.css.ts.vanilla.js +8 -0
- package/dist/components/ProgressBar/index.d.ts.map +1 -1
- package/dist/components/ProgressBar/index.js +76 -70
- package/dist/components/ProgressBar/styles.css.d.ts +6 -4
- package/dist/components/ProgressBar/styles.css.d.ts.map +1 -1
- package/dist/components/ProgressBar/styles.css.js +26 -16
- package/dist/components/ProgressBar/styles.css.ts.vanilla.js +8 -0
- package/dist/components/ProgressBar/variables.css.js +7 -3
- package/dist/components/ProgressBar/variables.css.ts.vanilla.js +8 -0
- package/dist/components/Radio/index.d.ts.map +1 -1
- package/dist/components/Radio/index.js +96 -91
- package/dist/components/Radio/styles.css.d.ts +12 -10
- package/dist/components/Radio/styles.css.d.ts.map +1 -1
- package/dist/components/Radio/styles.css.js +26 -15
- package/dist/components/Radio/styles.css.ts.vanilla.js +8 -0
- package/dist/components/RadioGroup/index.js +104 -98
- package/dist/components/RadioGroup/styles.css.d.ts +3 -1
- package/dist/components/RadioGroup/styles.css.d.ts.map +1 -1
- package/dist/components/RadioGroup/styles.css.js +9 -3
- package/dist/components/RadioGroup/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Row/index.js +23 -19
- package/dist/components/Row/styles.css.d.ts +3 -1
- package/dist/components/Row/styles.css.d.ts.map +1 -1
- package/dist/components/Row/styles.css.js +491 -485
- package/dist/components/Row/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Row/variables.css.js +24 -18
- package/dist/components/Row/variables.css.ts.vanilla.js +8 -0
- package/dist/components/SearchInput/KeyGroup.d.ts.map +1 -1
- package/dist/components/SearchInput/KeyGroup.js +22 -15
- package/dist/components/SearchInput/index.js +198 -195
- package/dist/components/SearchInput/styles.css.d.ts +5 -3
- package/dist/components/SearchInput/styles.css.d.ts.map +1 -1
- package/dist/components/SearchInput/styles.css.js +13 -5
- package/dist/components/SearchInput/styles.css.ts.vanilla.js +8 -0
- package/dist/components/SelectInput/SelectInputProvider.js +165 -161
- package/dist/components/SelectInput/components/Dropdown.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown.js +669 -651
- package/dist/components/SelectInput/components/DropdownOption.d.ts.map +1 -1
- package/dist/components/SelectInput/components/DropdownOption.js +121 -113
- package/dist/components/SelectInput/components/SearchBarDropdown.d.ts.map +1 -1
- package/dist/components/SelectInput/components/SearchBarDropdown.js +102 -93
- package/dist/components/SelectInput/components/SelectBar.d.ts.map +1 -1
- package/dist/components/SelectInput/components/SelectBar.js +289 -274
- package/dist/components/SelectInput/components/dropdown.css.js +33 -42
- package/dist/components/SelectInput/components/dropdown.css.ts.vanilla.js +8 -0
- package/dist/components/SelectInput/components/selectBar.css.d.ts +1 -1
- package/dist/components/SelectInput/components/selectBar.css.d.ts.map +1 -1
- package/dist/components/SelectInput/components/selectBar.css.js +50 -54
- package/dist/components/SelectInput/components/selectBar.css.ts.vanilla.js +8 -0
- package/dist/components/SelectInput/constants.js +18 -12
- package/dist/components/SelectInput/findOptionInOptions.js +12 -8
- package/dist/components/SelectInput/index.js +112 -104
- package/dist/components/SelectInput/styles.css.d.ts +164 -2
- package/dist/components/SelectInput/styles.css.d.ts.map +1 -1
- package/dist/components/SelectInput/styles.css.js +115 -4
- package/dist/components/SelectInput/styles.css.ts.vanilla.js +8 -0
- package/dist/components/SelectableCard/IllustrationContainer.d.ts +6 -2
- package/dist/components/SelectableCard/IllustrationContainer.d.ts.map +1 -1
- package/dist/components/SelectableCard/IllustrationContainer.js +43 -55
- package/dist/components/SelectableCard/MultiStateInput.js +77 -68
- package/dist/components/SelectableCard/SelectableCard.d.ts.map +1 -1
- package/dist/components/SelectableCard/SelectableCard.js +113 -106
- package/dist/components/SelectableCard/index.js +11 -0
- package/dist/components/SelectableCard/styles.css.d.ts +28 -26
- package/dist/components/SelectableCard/styles.css.d.ts.map +1 -1
- package/dist/components/SelectableCard/styles.css.js +36 -28
- package/dist/components/SelectableCard/styles.css.ts.vanilla.js +8 -0
- package/dist/components/SelectableCard/types.d.ts +8 -5
- package/dist/components/SelectableCard/types.d.ts.map +1 -1
- package/dist/components/SelectableCard/variables.css.js +10 -4
- package/dist/components/SelectableCard/variables.css.ts.vanilla.js +8 -0
- package/dist/components/SelectableCardGroup/index.js +101 -93
- package/dist/components/SelectableCardGroup/styles.css.d.ts +3 -1
- package/dist/components/SelectableCardGroup/styles.css.d.ts.map +1 -1
- package/dist/components/SelectableCardGroup/styles.css.js +9 -3
- package/dist/components/SelectableCardGroup/styles.css.ts.vanilla.js +8 -0
- package/dist/components/SelectableCardOptionGroup/Provider.js +20 -16
- package/dist/components/SelectableCardOptionGroup/SelectableCardOptionGroup.d.ts.map +1 -1
- package/dist/components/SelectableCardOptionGroup/SelectableCardOptionGroup.js +73 -68
- package/dist/components/SelectableCardOptionGroup/components/Image.d.ts.map +1 -1
- package/dist/components/SelectableCardOptionGroup/components/Image.js +20 -15
- package/dist/components/SelectableCardOptionGroup/components/Option.d.ts.map +1 -1
- package/dist/components/SelectableCardOptionGroup/components/Option.js +86 -73
- package/dist/components/SelectableCardOptionGroup/index.js +9 -0
- package/dist/components/SelectableCardOptionGroup/styles.css.d.ts +10 -8
- package/dist/components/SelectableCardOptionGroup/styles.css.d.ts.map +1 -1
- package/dist/components/SelectableCardOptionGroup/styles.css.js +18 -10
- package/dist/components/SelectableCardOptionGroup/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Separator/index.d.ts.map +1 -1
- package/dist/components/Separator/index.js +44 -42
- package/dist/components/Separator/styles.css.d.ts +127 -66
- package/dist/components/Separator/styles.css.d.ts.map +1 -1
- package/dist/components/Separator/styles.css.js +60 -50
- package/dist/components/Separator/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Skeleton/Block.js +18 -11
- package/dist/components/Skeleton/Blocks.d.ts.map +1 -1
- package/dist/components/Skeleton/Blocks.js +21 -12
- package/dist/components/Skeleton/BoxWithIcon.d.ts.map +1 -1
- package/dist/components/Skeleton/BoxWithIcon.js +21 -12
- package/dist/components/Skeleton/Donut.d.ts.map +1 -1
- package/dist/components/Skeleton/Donut.js +30 -22
- package/dist/components/Skeleton/IconSkeleton.d.ts.map +1 -1
- package/dist/components/Skeleton/IconSkeleton.js +9 -4
- package/dist/components/Skeleton/Line.d.ts.map +1 -1
- package/dist/components/Skeleton/Line.js +20 -13
- package/dist/components/Skeleton/List.d.ts.map +1 -1
- package/dist/components/Skeleton/List.js +20 -14
- package/dist/components/Skeleton/Slider.d.ts.map +1 -1
- package/dist/components/Skeleton/Slider.js +17 -10
- package/dist/components/Skeleton/Square.d.ts.map +1 -1
- package/dist/components/Skeleton/Square.js +9 -4
- package/dist/components/Skeleton/index.js +51 -43
- package/dist/components/Skeleton/styles.css.d.ts +22 -2
- package/dist/components/Skeleton/styles.css.d.ts.map +1 -1
- package/dist/components/Skeleton/styles.css.js +32 -4
- package/dist/components/Skeleton/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Skeleton/stylesVariants.css.js +12 -24
- package/dist/components/Skeleton/stylesVariants.css.ts.vanilla.js +8 -0
- package/dist/components/Slider/components/DoubleSlider.d.ts.map +1 -1
- package/dist/components/Slider/components/DoubleSlider.js +287 -272
- package/dist/components/Slider/components/Options.js +39 -33
- package/dist/components/Slider/components/SingleSlider.d.ts.map +1 -1
- package/dist/components/Slider/components/SingleSlider.js +201 -191
- package/dist/components/Slider/constant.js +8 -0
- package/dist/components/Slider/index.js +102 -98
- package/dist/components/Slider/styles.css.d.ts +145 -141
- package/dist/components/Slider/styles.css.d.ts.map +1 -1
- package/dist/components/Slider/styles.css.js +110 -100
- package/dist/components/Slider/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Snippet/index.d.ts.map +1 -1
- package/dist/components/Snippet/index.js +117 -110
- package/dist/components/Snippet/styles.css.d.ts +42 -40
- package/dist/components/Snippet/styles.css.d.ts.map +1 -1
- package/dist/components/Snippet/styles.css.js +58 -50
- package/dist/components/Snippet/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Stack/index.d.ts.map +1 -1
- package/dist/components/Stack/index.js +62 -60
- package/dist/components/Stack/styles.css.d.ts +3 -1
- package/dist/components/Stack/styles.css.d.ts.map +1 -1
- package/dist/components/Stack/styles.css.js +578 -572
- package/dist/components/Stack/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Stack/variables.css.js +12 -6
- package/dist/components/Stack/variables.css.ts.vanilla.js +8 -0
- package/dist/components/Status/index.js +19 -16
- package/dist/components/Status/styles.css.d.ts +22 -20
- package/dist/components/Status/styles.css.d.ts.map +1 -1
- package/dist/components/Status/styles.css.js +41 -32
- package/dist/components/Status/styles.css.ts.vanilla.js +8 -0
- package/dist/components/StepList/index.js +31 -29
- package/dist/components/StepList/styles.css.d.ts +23 -21
- package/dist/components/StepList/styles.css.d.ts.map +1 -1
- package/dist/components/StepList/styles.css.js +28 -20
- package/dist/components/StepList/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Stepper/Step.d.ts.map +1 -1
- package/dist/components/Stepper/Step.js +85 -76
- package/dist/components/Stepper/StepperProvider.js +39 -38
- package/dist/components/Stepper/index.js +51 -43
- package/dist/components/Stepper/styles.css.d.ts +101 -87
- package/dist/components/Stepper/styles.css.d.ts.map +1 -1
- package/dist/components/Stepper/styles.css.js +155 -126
- package/dist/components/Stepper/styles.css.ts.vanilla.js +8 -0
- package/dist/components/SwitchButton/FocusOverlay.js +16 -9
- package/dist/components/SwitchButton/Option.d.ts.map +1 -1
- package/dist/components/SwitchButton/Option.js +47 -39
- package/dist/components/SwitchButton/SwitchButtonContext.js +12 -8
- package/dist/components/SwitchButton/constant.js +8 -0
- package/dist/components/SwitchButton/index.js +140 -131
- package/dist/components/SwitchButton/styles.css.d.ts +7 -8
- package/dist/components/SwitchButton/styles.css.d.ts.map +1 -1
- package/dist/components/SwitchButton/styles.css.js +21 -13
- package/dist/components/SwitchButton/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Table/Body.js +7 -3
- package/dist/components/Table/Cell.js +35 -27
- package/dist/components/Table/Header.js +11 -6
- package/dist/components/Table/HeaderCell.d.ts.map +1 -1
- package/dist/components/Table/HeaderCell.js +69 -60
- package/dist/components/Table/HeaderRow.js +35 -26
- package/dist/components/Table/Row.d.ts.map +1 -1
- package/dist/components/Table/Row.js +123 -111
- package/dist/components/Table/SelectBar.js +34 -27
- package/dist/components/Table/SkeletonRows.d.ts.map +1 -1
- package/dist/components/Table/SkeletonRows.js +24 -17
- package/dist/components/Table/TableContext.js +56 -49
- package/dist/components/Table/constants.js +8 -0
- package/dist/components/Table/index.js +82 -69
- package/dist/components/Table/styles.css.d.ts +65 -63
- package/dist/components/Table/styles.css.d.ts.map +1 -1
- package/dist/components/Table/styles.css.js +56 -47
- package/dist/components/Table/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Table/variables.css.js +13 -7
- package/dist/components/Table/variables.css.ts.vanilla.js +8 -0
- package/dist/components/Tabs/Tab.d.ts.map +1 -1
- package/dist/components/Tabs/Tab.js +95 -83
- package/dist/components/Tabs/TabMenu.js +46 -38
- package/dist/components/Tabs/TabMenuItem.js +35 -26
- package/dist/components/Tabs/TabsContext.js +8 -4
- package/dist/components/Tabs/index.js +85 -77
- package/dist/components/Tabs/styles.css.d.ts +11 -9
- package/dist/components/Tabs/styles.css.d.ts.map +1 -1
- package/dist/components/Tabs/styles.css.js +22 -14
- package/dist/components/Tabs/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Tag/index.js +78 -73
- package/dist/components/Tag/styles.css.d.ts +28 -26
- package/dist/components/Tag/styles.css.d.ts.map +1 -1
- package/dist/components/Tag/styles.css.js +62 -54
- package/dist/components/Tag/styles.css.ts.vanilla.js +8 -0
- package/dist/components/TagInput/index.d.ts.map +1 -1
- package/dist/components/TagInput/index.js +196 -187
- package/dist/components/TagInput/styles.css.d.ts +20 -18
- package/dist/components/TagInput/styles.css.d.ts.map +1 -1
- package/dist/components/TagInput/styles.css.js +22 -14
- package/dist/components/TagInput/styles.css.ts.vanilla.js +8 -0
- package/dist/components/TagList/constant.js +7 -2
- package/dist/components/TagList/index.d.ts.map +1 -1
- package/dist/components/TagList/index.js +170 -164
- package/dist/components/TagList/styles.css.d.ts +12 -10
- package/dist/components/TagList/styles.css.d.ts.map +1 -1
- package/dist/components/TagList/styles.css.js +20 -12
- package/dist/components/TagList/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Text/index.js +50 -43
- package/dist/components/Text/style.css.d.ts +48 -1
- package/dist/components/Text/style.css.d.ts.map +1 -1
- package/dist/components/Text/style.css.js +448 -442
- package/dist/components/Text/style.css.ts.vanilla.js +8 -0
- package/dist/components/Text/variables.css.js +12 -6
- package/dist/components/Text/variables.css.ts.vanilla.js +8 -0
- package/dist/components/TextArea/index.d.ts.map +1 -1
- package/dist/components/TextArea/index.js +154 -144
- package/dist/components/TextArea/styles.css.d.ts +14 -12
- package/dist/components/TextArea/styles.css.d.ts.map +1 -1
- package/dist/components/TextArea/styles.css.js +24 -16
- package/dist/components/TextArea/styles.css.ts.vanilla.js +8 -0
- package/dist/components/TextInput/index.d.ts.map +1 -1
- package/dist/components/TextInput/index.js +202 -196
- package/dist/components/TextInput/styles.css.d.ts +9 -7
- package/dist/components/TextInput/styles.css.d.ts.map +1 -1
- package/dist/components/TextInput/styles.css.js +23 -14
- package/dist/components/TextInput/styles.css.ts.vanilla.js +8 -0
- package/dist/components/TimeInput/constants.js +19 -13
- package/dist/components/TimeInput/helpers.js +46 -42
- package/dist/components/TimeInput/index.js +304 -296
- package/dist/components/TimeInput/styles.css.d.ts +69 -67
- package/dist/components/TimeInput/styles.css.d.ts.map +1 -1
- package/dist/components/TimeInput/styles.css.js +34 -26
- package/dist/components/TimeInput/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Toaster/Toaster.js +34 -27
- package/dist/components/Toaster/ToasterContainer.js +27 -29
- package/dist/components/Toaster/components/CloseButton.js +17 -11
- package/dist/components/Toaster/components/Content.js +19 -13
- package/dist/components/Toaster/constants.js +8 -2
- package/dist/components/Toaster/index.js +10 -0
- package/dist/components/Toaster/styles.css.d.ts +5 -3
- package/dist/components/Toaster/styles.css.d.ts.map +1 -1
- package/dist/components/Toaster/styles.css.js +13 -4
- package/dist/components/Toaster/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Toggle/index.js +93 -84
- package/dist/components/Toggle/styles.css.d.ts +83 -81
- package/dist/components/Toggle/styles.css.d.ts.map +1 -1
- package/dist/components/Toggle/styles.css.js +54 -46
- package/dist/components/Toggle/styles.css.ts.vanilla.js +8 -0
- package/dist/components/ToggleGroup/index.d.ts.map +1 -1
- package/dist/components/ToggleGroup/index.js +100 -94
- package/dist/components/ToggleGroup/styles.css.d.ts +3 -1
- package/dist/components/ToggleGroup/styles.css.d.ts.map +1 -1
- package/dist/components/ToggleGroup/styles.css.js +9 -3
- package/dist/components/ToggleGroup/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Tooltip/index.js +31 -29
- package/dist/components/Tooltip/styles.css.d.ts +3 -1
- package/dist/components/Tooltip/styles.css.d.ts.map +1 -1
- package/dist/components/Tooltip/styles.css.js +9 -3
- package/dist/components/Tooltip/styles.css.ts.vanilla.js +8 -0
- package/dist/components/TreeMapChart/Tooltip.js +24 -18
- package/dist/components/TreeMapChart/index.js +54 -50
- package/dist/components/TreeMapChart/styles.css.d.ts +4 -2
- package/dist/components/TreeMapChart/styles.css.d.ts.map +1 -1
- package/dist/components/TreeMapChart/styles.css.js +12 -4
- package/dist/components/TreeMapChart/styles.css.ts.vanilla.js +8 -0
- package/dist/components/UnitInput/index.d.ts.map +1 -1
- package/dist/components/UnitInput/index.js +134 -124
- package/dist/components/UnitInput/styles.css.d.ts +8 -6
- package/dist/components/UnitInput/styles.css.d.ts.map +1 -1
- package/dist/components/UnitInput/styles.css.js +31 -23
- package/dist/components/UnitInput/styles.css.ts.vanilla.js +8 -0
- package/dist/components/VerificationCode/index.d.ts.map +1 -1
- package/dist/components/VerificationCode/index.js +153 -149
- package/dist/components/VerificationCode/styles.css.d.ts +5 -3
- package/dist/components/VerificationCode/styles.css.d.ts.map +1 -1
- package/dist/components/VerificationCode/styles.css.js +18 -10
- package/dist/components/VerificationCode/styles.css.ts.vanilla.js +8 -0
- package/dist/components/compositions/CodeEditor/index.d.ts.map +1 -1
- package/dist/components/compositions/CodeEditor/index.js +123 -113
- package/dist/components/compositions/CodeEditor/styles.css.d.ts +17 -15
- package/dist/components/compositions/CodeEditor/styles.css.d.ts.map +1 -1
- package/dist/components/compositions/CodeEditor/styles.css.js +32 -24
- package/dist/components/compositions/CodeEditor/styles.css.ts.vanilla.js +8 -0
- package/dist/components/compositions/ContentCard/Content.d.ts.map +1 -1
- package/dist/components/compositions/ContentCard/Content.js +62 -55
- package/dist/components/compositions/ContentCard/Skeleton.d.ts.map +1 -1
- package/dist/components/compositions/ContentCard/Skeleton.js +32 -25
- package/dist/components/compositions/ContentCard/index.d.ts.map +1 -1
- package/dist/components/compositions/ContentCard/index.js +71 -68
- package/dist/components/compositions/ContentCard/styles.css.d.ts +22 -17
- package/dist/components/compositions/ContentCard/styles.css.d.ts.map +1 -1
- package/dist/components/compositions/ContentCard/styles.css.js +41 -30
- package/dist/components/compositions/ContentCard/styles.css.ts.vanilla.js +8 -0
- package/dist/components/compositions/ContentCardGroup/Card.d.ts.map +1 -1
- package/dist/components/compositions/ContentCardGroup/Card.js +57 -50
- package/dist/components/compositions/ContentCardGroup/SkeletonCard.d.ts.map +1 -1
- package/dist/components/compositions/ContentCardGroup/SkeletonCard.js +30 -23
- package/dist/components/compositions/ContentCardGroup/index.js +22 -14
- package/dist/components/compositions/ContentCardGroup/styles.css.d.ts +9 -7
- package/dist/components/compositions/ContentCardGroup/styles.css.d.ts.map +1 -1
- package/dist/components/compositions/ContentCardGroup/styles.css.js +17 -9
- package/dist/components/compositions/ContentCardGroup/styles.css.ts.vanilla.js +8 -0
- package/dist/components/compositions/Conversation/index.d.ts.map +1 -1
- package/dist/components/compositions/Conversation/index.js +54 -46
- package/dist/components/compositions/Conversation/styles.css.d.ts +9 -7
- package/dist/components/compositions/Conversation/styles.css.d.ts.map +1 -1
- package/dist/components/compositions/Conversation/styles.css.js +26 -18
- package/dist/components/compositions/Conversation/styles.css.ts.vanilla.js +8 -0
- package/dist/components/compositions/CustomerSatisfaction/assets/1-5.js +8 -2
- package/dist/components/compositions/CustomerSatisfaction/assets/1-5NB.js +8 -2
- package/dist/components/compositions/CustomerSatisfaction/assets/2-5.js +8 -2
- package/dist/components/compositions/CustomerSatisfaction/assets/2-5NB.js +8 -2
- package/dist/components/compositions/CustomerSatisfaction/assets/3-5.js +8 -2
- package/dist/components/compositions/CustomerSatisfaction/assets/3-5NB.js +8 -2
- package/dist/components/compositions/CustomerSatisfaction/assets/4-5.js +8 -2
- package/dist/components/compositions/CustomerSatisfaction/assets/4-5NB.js +8 -2
- package/dist/components/compositions/CustomerSatisfaction/assets/5-5.js +8 -2
- package/dist/components/compositions/CustomerSatisfaction/assets/5-5NB.js +8 -2
- package/dist/components/compositions/CustomerSatisfaction/index.d.ts.map +1 -1
- package/dist/components/compositions/CustomerSatisfaction/index.js +99 -82
- package/dist/components/compositions/CustomerSatisfaction/styles.css.d.ts +18 -16
- package/dist/components/compositions/CustomerSatisfaction/styles.css.d.ts.map +1 -1
- package/dist/components/compositions/CustomerSatisfaction/styles.css.js +24 -14
- package/dist/components/compositions/CustomerSatisfaction/styles.css.ts.vanilla.js +8 -0
- package/dist/components/compositions/EstimateCost/CompactEstimateCost.js +33 -26
- package/dist/components/compositions/EstimateCost/Components/ContentComponents.d.ts.map +1 -1
- package/dist/components/compositions/EstimateCost/Components/ContentComponents.js +114 -103
- package/dist/components/compositions/EstimateCost/Components/CustomUnitInput.js +38 -32
- package/dist/components/compositions/EstimateCost/Components/Item.d.ts.map +1 -1
- package/dist/components/compositions/EstimateCost/Components/Item.js +159 -148
- package/dist/components/compositions/EstimateCost/Components/ItemLeftSide.d.ts.map +1 -1
- package/dist/components/compositions/EstimateCost/Components/ItemLeftSide.js +80 -67
- package/dist/components/compositions/EstimateCost/Components/ItemPrice.js +56 -49
- package/dist/components/compositions/EstimateCost/Components/LineThrough.js +19 -12
- package/dist/components/compositions/EstimateCost/Components/NumberInput.js +36 -28
- package/dist/components/compositions/EstimateCost/Components/Region.js +37 -29
- package/dist/components/compositions/EstimateCost/Components/Regular.d.ts.map +1 -1
- package/dist/components/compositions/EstimateCost/Components/Regular.js +20 -14
- package/dist/components/compositions/EstimateCost/Components/Strong.js +14 -9
- package/dist/components/compositions/EstimateCost/Components/Unit.d.ts.map +1 -1
- package/dist/components/compositions/EstimateCost/Components/Unit.js +52 -43
- package/dist/components/compositions/EstimateCost/Components/Zone.js +36 -28
- package/dist/components/compositions/EstimateCost/Components/components.css.d.ts +12 -12
- package/dist/components/compositions/EstimateCost/Components/components.css.d.ts.map +1 -1
- package/dist/components/compositions/EstimateCost/Components/components.css.js +63 -65
- package/dist/components/compositions/EstimateCost/Components/components.css.ts.vanilla.js +8 -0
- package/dist/components/compositions/EstimateCost/EstimateCostContent.d.ts.map +1 -1
- package/dist/components/compositions/EstimateCost/EstimateCostContent.js +203 -186
- package/dist/components/compositions/EstimateCost/EstimateCostProvider.js +31 -25
- package/dist/components/compositions/EstimateCost/OverlayComponent.d.ts.map +1 -1
- package/dist/components/compositions/EstimateCost/OverlayComponent.js +101 -90
- package/dist/components/compositions/EstimateCost/OverlayContext.js +11 -7
- package/dist/components/compositions/EstimateCost/constants.js +29 -23
- package/dist/components/compositions/EstimateCost/helper.js +12 -7
- package/dist/components/compositions/EstimateCost/index.js +106 -86
- package/dist/components/compositions/EstimateCost/locales/en.js +28 -22
- package/dist/components/compositions/EstimateCost/styles.css.d.ts +150 -71
- package/dist/components/compositions/EstimateCost/styles.css.d.ts.map +1 -1
- package/dist/components/compositions/EstimateCost/styles.css.js +142 -66
- package/dist/components/compositions/EstimateCost/styles.css.ts.vanilla.js +8 -0
- package/dist/components/compositions/FAQ/index.d.ts +3 -5
- package/dist/components/compositions/FAQ/index.d.ts.map +1 -1
- package/dist/components/compositions/FAQ/index.js +20 -15
- package/dist/components/compositions/FAQ/styles.css.d.ts +3 -1
- package/dist/components/compositions/FAQ/styles.css.d.ts.map +1 -1
- package/dist/components/compositions/FAQ/styles.css.js +11 -3
- package/dist/components/compositions/FAQ/styles.css.ts.vanilla.js +8 -0
- package/dist/components/compositions/InfoTable/Context.js +7 -2
- package/dist/components/compositions/InfoTable/components/Cell.js +39 -32
- package/dist/components/compositions/InfoTable/components/Row.js +23 -15
- package/dist/components/compositions/InfoTable/index.d.ts +5 -7
- package/dist/components/compositions/InfoTable/index.d.ts.map +1 -1
- package/dist/components/compositions/InfoTable/index.js +31 -21
- package/dist/components/compositions/InfoTable/styles.css.d.ts +8 -6
- package/dist/components/compositions/InfoTable/styles.css.d.ts.map +1 -1
- package/dist/components/compositions/InfoTable/styles.css.js +17 -9
- package/dist/components/compositions/InfoTable/styles.css.ts.vanilla.js +8 -0
- package/dist/components/compositions/Navigation/Footer.d.ts.map +1 -1
- package/dist/components/compositions/Navigation/Footer.js +62 -54
- package/dist/components/compositions/Navigation/Header.js +22 -15
- package/dist/components/compositions/Navigation/NavigationContent.d.ts.map +1 -1
- package/dist/components/compositions/Navigation/NavigationContent.js +105 -93
- package/dist/components/compositions/Navigation/NavigationProvider.js +121 -113
- package/dist/components/compositions/Navigation/animations.css.ts.vanilla.js +8 -0
- package/dist/components/compositions/Navigation/components/Group.js +42 -33
- package/dist/components/compositions/Navigation/components/Item.d.ts.map +1 -1
- package/dist/components/compositions/Navigation/components/Item.js +190 -179
- package/dist/components/compositions/Navigation/components/ItemExpanded.d.ts.map +1 -1
- package/dist/components/compositions/Navigation/components/ItemExpanded.js +207 -196
- package/dist/components/compositions/Navigation/components/ItemFragments.d.ts.map +1 -1
- package/dist/components/compositions/Navigation/components/ItemFragments.js +61 -53
- package/dist/components/compositions/Navigation/components/ItemMenu.d.ts.map +1 -1
- package/dist/components/compositions/Navigation/components/ItemMenu.js +135 -122
- package/dist/components/compositions/Navigation/components/ItemProvider.js +14 -10
- package/dist/components/compositions/Navigation/components/PinnedItems.d.ts.map +1 -1
- package/dist/components/compositions/Navigation/components/PinnedItems.js +103 -94
- package/dist/components/compositions/Navigation/components/Separator.d.ts.map +1 -1
- package/dist/components/compositions/Navigation/components/Separator.js +11 -5
- package/dist/components/compositions/Navigation/components/ShowHide.js +50 -42
- package/dist/components/compositions/Navigation/components/items.css.d.ts +22 -22
- package/dist/components/compositions/Navigation/components/items.css.d.ts.map +1 -1
- package/dist/components/compositions/Navigation/components/items.css.ts.vanilla.js +8 -0
- package/dist/components/compositions/Navigation/components/styles.css.d.ts +7 -7
- package/dist/components/compositions/Navigation/components/styles.css.d.ts.map +1 -1
- package/dist/components/compositions/Navigation/components/styles.css.ts.vanilla.js +8 -0
- package/dist/components/compositions/Navigation/constants.js +8 -0
- package/dist/components/compositions/Navigation/index.js +34 -28
- package/dist/components/compositions/Navigation/locales/en.js +16 -10
- package/dist/components/compositions/Navigation/styles.css.d.ts +156 -33
- package/dist/components/compositions/Navigation/styles.css.d.ts.map +1 -1
- package/dist/components/compositions/Navigation/styles.css.js +186 -30
- package/dist/components/compositions/Navigation/styles.css.ts.vanilla.js +8 -0
- package/dist/components/compositions/Navigation/variables.css.js +8 -2
- package/dist/components/compositions/Navigation/variables.css.ts.vanilla.js +8 -0
- package/dist/components/compositions/OfferList/OfferListProvider.d.ts.map +1 -1
- package/dist/components/compositions/OfferList/OfferListProvider.js +41 -23
- package/dist/components/compositions/OfferList/components/Banner.d.ts.map +1 -1
- package/dist/components/compositions/OfferList/components/Banner.js +35 -27
- package/dist/components/compositions/OfferList/components/Cell.d.ts.map +1 -1
- package/dist/components/compositions/OfferList/components/Cell.js +35 -26
- package/dist/components/compositions/OfferList/components/OfferListRowProvider.js +10 -6
- package/dist/components/compositions/OfferList/components/Row.d.ts.map +1 -1
- package/dist/components/compositions/OfferList/components/Row.js +176 -160
- package/dist/components/compositions/OfferList/index.js +54 -45
- package/dist/components/compositions/OfferList/styles.css.d.ts +40 -37
- package/dist/components/compositions/OfferList/styles.css.d.ts.map +1 -1
- package/dist/components/compositions/OfferList/styles.css.js +127 -118
- package/dist/components/compositions/OfferList/styles.css.ts.vanilla.js +8 -0
- package/dist/components/compositions/OptionSelector/components/ArrowIcon.js +18 -13
- package/dist/components/compositions/OptionSelector/components/IconWithContent.js +13 -8
- package/dist/components/compositions/OptionSelector/components/RevealOnHover.d.ts.map +1 -1
- package/dist/components/compositions/OptionSelector/components/RevealOnHover.js +17 -12
- package/dist/components/compositions/OptionSelector/components/Selector.d.ts.map +1 -1
- package/dist/components/compositions/OptionSelector/components/Selector.js +33 -27
- package/dist/components/compositions/OptionSelector/components/SelectorLabel.d.ts.map +1 -1
- package/dist/components/compositions/OptionSelector/components/SelectorLabel.js +17 -11
- package/dist/components/compositions/OptionSelector/index.d.ts.map +1 -1
- package/dist/components/compositions/OptionSelector/index.js +147 -140
- package/dist/components/compositions/OptionSelector/styles.css.d.ts +25 -23
- package/dist/components/compositions/OptionSelector/styles.css.d.ts.map +1 -1
- package/dist/components/compositions/OptionSelector/styles.css.js +37 -28
- package/dist/components/compositions/OptionSelector/styles.css.ts.vanilla.js +8 -0
- package/dist/components/compositions/OrderSummary/NonScrollableContent.d.ts.map +1 -1
- package/dist/components/compositions/OrderSummary/NonScrollableContent.js +92 -83
- package/dist/components/compositions/OrderSummary/Provider.js +20 -14
- package/dist/components/compositions/OrderSummary/ScrollableContent.d.ts.map +1 -1
- package/dist/components/compositions/OrderSummary/ScrollableContent.js +220 -210
- package/dist/components/compositions/OrderSummary/constants.js +21 -15
- package/dist/components/compositions/OrderSummary/helpers.js +132 -125
- package/dist/components/compositions/OrderSummary/index.d.ts.map +1 -1
- package/dist/components/compositions/OrderSummary/index.js +142 -128
- package/dist/components/compositions/OrderSummary/locales/en.js +16 -10
- package/dist/components/compositions/OrderSummary/styles.css.d.ts +21 -19
- package/dist/components/compositions/OrderSummary/styles.css.d.ts.map +1 -1
- package/dist/components/compositions/OrderSummary/styles.css.js +34 -26
- package/dist/components/compositions/OrderSummary/styles.css.ts.vanilla.js +8 -0
- package/dist/components/compositions/Plans/FeatureHint.js +39 -32
- package/dist/components/compositions/Plans/PlanHeader.d.ts.map +1 -1
- package/dist/components/compositions/Plans/PlanHeader.js +99 -89
- package/dist/components/compositions/Plans/index.d.ts.map +1 -1
- package/dist/components/compositions/Plans/index.js +159 -148
- package/dist/components/compositions/Plans/locales/en.js +12 -6
- package/dist/components/compositions/Plans/styles.css.d.ts +53 -51
- package/dist/components/compositions/Plans/styles.css.d.ts.map +1 -1
- package/dist/components/compositions/Plans/styles.css.js +41 -33
- package/dist/components/compositions/Plans/styles.css.ts.vanilla.js +8 -0
- package/dist/components/compositions/SteppedListCard/Step.js +47 -39
- package/dist/components/compositions/SteppedListCard/SteppedListContent.d.ts.map +1 -1
- package/dist/components/compositions/SteppedListCard/SteppedListContent.js +56 -48
- package/dist/components/compositions/SteppedListCard/helper.js +27 -27
- package/dist/components/compositions/SteppedListCard/index.d.ts.map +1 -1
- package/dist/components/compositions/SteppedListCard/index.js +98 -88
- package/dist/components/compositions/SteppedListCard/styles.css.d.ts +10 -8
- package/dist/components/compositions/SteppedListCard/styles.css.d.ts.map +1 -1
- package/dist/components/compositions/SteppedListCard/styles.css.js +18 -10
- package/dist/components/compositions/SteppedListCard/styles.css.ts.vanilla.js +8 -0
- package/dist/components/compositions/index.js +35 -14
- package/dist/components/compositions/styles.d.ts +15 -0
- package/dist/components/compositions/styles.d.ts.map +1 -0
- package/dist/components/compositions/styles.js +37 -0
- package/dist/components/index.js +167 -0
- package/dist/components/styles.d.ts +75 -0
- package/dist/components/styles.d.ts.map +1 -0
- package/dist/components/styles.js +157 -0
- package/dist/helpers/isClientSide.js +9 -6
- package/dist/helpers/legend.js +13 -9
- package/dist/helpers/nivoTheme.js +20 -16
- package/dist/helpers/recursivelyGetChildrenString.js +16 -12
- package/dist/helpers/treeMap.js +25 -103
- package/dist/hooks/useIsOverflowing.js +25 -24
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +93 -5
- package/dist/theme/ThemeProvider.js +46 -49
- package/dist/theme/index.js +19 -20
- package/dist/themes/dist/vanilla/themes.css.js.vanilla.js +8 -0
- package/dist/ui.css +1 -1
- package/dist/utils/animations/animations.js +8 -0
- package/dist/utils/animations/animations2.js +33 -27
- package/dist/utils/animations/{animationsVE.css.d.ts → animationsVanillaExtract.css.d.ts} +1 -1
- package/dist/utils/animations/animationsVanillaExtract.css.d.ts.map +1 -0
- package/dist/utils/animations/animationsVanillaExtract.css.js +39 -0
- package/dist/utils/animations/animationsVanillaExtract.css.ts.vanilla.js +8 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +10 -2
- package/dist/utils/normalize.js +7 -3
- package/dist/utils/responsive/utilities.js +15 -10
- package/package.json +12 -6
- package/dist/_virtual/_@oxc-project_runtime@0.114.0/helpers/asyncToGenerator.js +0 -32
- package/dist/_virtual/_@oxc-project_runtime@0.114.0/helpers/defineProperty.js +0 -15
- package/dist/_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js +0 -18
- package/dist/_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutPropertiesLoose.js +0 -15
- package/dist/_virtual/_@oxc-project_runtime@0.114.0/helpers/toPropertyKey.js +0 -12
- package/dist/components/DateInput/components/styles.css.js +0 -11
- package/dist/components/compositions/Navigation/components/items.css.js +0 -123
- package/dist/components/compositions/Navigation/components/styles.css.js +0 -29
- package/dist/helpers/isJSON.d.ts +0 -3
- package/dist/helpers/isJSON.d.ts.map +0 -1
- package/dist/utils/animations/animationsVE.css.d.ts.map +0 -1
- package/dist/utils/animations/animationsVE.css.js +0 -33
|
@@ -1,100 +1,111 @@
|
|
|
1
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 {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { Strong } from "./Components/Strong.js";
|
|
2
|
+
import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { Stack, init_Stack } from "../../Stack/index.js";
|
|
4
|
+
import { Badge, init_Badge } from "../../Badge/index.js";
|
|
5
|
+
import { init_constants, maximumFractionDigits, multiplier } from "./constants.js";
|
|
6
|
+
import { init_EstimateCostProvider, useEstimateCost } from "./EstimateCostProvider.js";
|
|
7
|
+
import { OverlayContextProvider, init_OverlayContext } from "./OverlayContext.js";
|
|
8
|
+
import { estimateCostStyle, init_styles_css, overlayMarginVar } from "./styles.css.js";
|
|
9
|
+
import { LineThrough, init_LineThrough } from "./Components/LineThrough.js";
|
|
10
|
+
import { Strong, init_Strong } from "./Components/Strong.js";
|
|
12
11
|
import { Children, cloneElement, isValidElement, useMemo } from "react";
|
|
13
12
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
14
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
14
|
import { CalculatorIcon } from "@ultraviolet/icons/CalculatorIcon";
|
|
16
15
|
|
|
17
16
|
//#region src/components/compositions/EstimateCost/OverlayComponent.tsx
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
className:
|
|
67
|
-
children: [/* @__PURE__ */
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
17
|
+
var OverlayComponent;
|
|
18
|
+
var init_OverlayComponent = __esmMin(() => {
|
|
19
|
+
init_Badge();
|
|
20
|
+
init_Stack();
|
|
21
|
+
init_LineThrough();
|
|
22
|
+
init_Strong();
|
|
23
|
+
init_constants();
|
|
24
|
+
init_EstimateCostProvider();
|
|
25
|
+
init_OverlayContext();
|
|
26
|
+
init_styles_css();
|
|
27
|
+
OverlayComponent = ({ children, inView = false, discount = 1, OverlayRight, disableOverlayRight = false, OverlayLeft, disableOverlayLeft = false, totalPrice, unit = "hours", isBeta = false, overlayMargin }) => {
|
|
28
|
+
const { locales, formatNumber } = useEstimateCost();
|
|
29
|
+
const value = useMemo(() => ({ isOverlay: true }), []);
|
|
30
|
+
const totalOverlayPrice = {
|
|
31
|
+
days: totalPrice.maxOverlayHourly * multiplier.days,
|
|
32
|
+
hours: totalPrice.maxOverlayHourly,
|
|
33
|
+
minutes: totalPrice.maxOverlayHourly * multiplier.minutes,
|
|
34
|
+
months: totalPrice.maxOverlayHourly * multiplier.months,
|
|
35
|
+
seconds: totalPrice.maxOverlayHourly * multiplier.seconds
|
|
36
|
+
}[unit];
|
|
37
|
+
const overlayPrice = {
|
|
38
|
+
days: totalPrice.overlayHourly * multiplier.days,
|
|
39
|
+
hours: totalPrice.overlayHourly,
|
|
40
|
+
minutes: totalPrice.overlayHourly * multiplier.minutes,
|
|
41
|
+
months: totalPrice.overlayHourly * multiplier.months,
|
|
42
|
+
seconds: totalPrice.overlayHourly * multiplier.seconds
|
|
43
|
+
}[unit];
|
|
44
|
+
return /* @__PURE__ */ jsx(OverlayContextProvider, {
|
|
45
|
+
value,
|
|
46
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
47
|
+
className: estimateCostStyle.overlayContainer({ inView }),
|
|
48
|
+
"data-testid": "summary-overlay",
|
|
49
|
+
style: assignInlineVars({ [overlayMarginVar]: overlayMargin !== null && overlayMargin !== void 0 ? overlayMargin : "0" }),
|
|
50
|
+
children: /* @__PURE__ */ jsxs("ul", {
|
|
51
|
+
className: estimateCostStyle.list,
|
|
52
|
+
children: [
|
|
53
|
+
OverlayLeft ? /* @__PURE__ */ jsx("li", {
|
|
54
|
+
className: estimateCostStyle.sideItem,
|
|
55
|
+
children: /* @__PURE__ */ jsx(OverlayLeft, {
|
|
56
|
+
disabled: disableOverlayLeft,
|
|
57
|
+
children: locales["estimate.cost.submit.label"]
|
|
58
|
+
})
|
|
59
|
+
}) : null,
|
|
60
|
+
Children.map(children, (child, index) => isValidElement(child) ? cloneElement(child, {
|
|
61
|
+
isFirstElement: index === 0,
|
|
62
|
+
isLastElement: index === Children.count(children) - 1
|
|
63
|
+
}) : null),
|
|
64
|
+
/* @__PURE__ */ jsxs("li", {
|
|
65
|
+
className: estimateCostStyle.overlayRow(),
|
|
66
|
+
children: [/* @__PURE__ */ jsxs(Stack, {
|
|
67
|
+
alignItems: "center",
|
|
68
|
+
direction: "row",
|
|
69
|
+
gap: 1,
|
|
70
|
+
children: [/* @__PURE__ */ jsx(CalculatorIcon, {
|
|
71
|
+
sentiment: "primary",
|
|
72
|
+
size: "medium"
|
|
73
|
+
}), locales["estimate.cost.label"]]
|
|
74
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
75
|
+
className: estimateCostStyle.resourceName(),
|
|
76
|
+
children: [/* @__PURE__ */ jsx(Strong, {
|
|
77
|
+
variant: "big",
|
|
78
|
+
children: /* @__PURE__ */ jsxs(LineThrough, {
|
|
79
|
+
isActive: isBeta && discount === 0,
|
|
80
|
+
children: [
|
|
81
|
+
formatNumber(overlayPrice, { maximumFractionDigits: maximumFractionDigits[unit] }),
|
|
82
|
+
totalOverlayPrice > 0 ? ` - ${formatNumber(totalOverlayPrice, { maximumFractionDigits: maximumFractionDigits[unit] })}` : null,
|
|
83
|
+
"/",
|
|
84
|
+
locales[`estimate.cost.units.${unit}.label`]
|
|
85
|
+
]
|
|
86
|
+
})
|
|
87
|
+
}), isBeta ? /* @__PURE__ */ jsxs(Badge, {
|
|
88
|
+
className: estimateCostStyle.badge,
|
|
89
|
+
prominence: "strong",
|
|
90
|
+
sentiment: "warning",
|
|
91
|
+
children: [discount > 0 ? discount * 100 : "", locales[`estimate.cost.beta.${discount > 0 ? "discount" : "free"}`]]
|
|
92
|
+
}) : null]
|
|
93
|
+
})]
|
|
94
|
+
}),
|
|
95
|
+
OverlayRight ? /* @__PURE__ */ jsx("li", {
|
|
96
|
+
className: estimateCostStyle.sideItem,
|
|
97
|
+
children: /* @__PURE__ */ jsx(OverlayRight, {
|
|
98
|
+
disabled: disableOverlayRight,
|
|
99
|
+
children: locales["estimate.cost.submit.label"]
|
|
100
|
+
})
|
|
101
|
+
}) : null
|
|
102
|
+
]
|
|
103
|
+
})
|
|
94
104
|
})
|
|
95
|
-
})
|
|
96
|
-
}
|
|
97
|
-
};
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
});
|
|
98
108
|
|
|
99
109
|
//#endregion
|
|
100
|
-
|
|
110
|
+
init_OverlayComponent();
|
|
111
|
+
export { OverlayComponent, init_OverlayComponent };
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
3
|
import { createContext, useContext } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/compositions/EstimateCost/OverlayContext.tsx
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
children
|
|
7
|
+
var OverlayContext, useOverlay, OverlayContextProvider;
|
|
8
|
+
var init_OverlayContext = __esmMin(() => {
|
|
9
|
+
OverlayContext = createContext({ isOverlay: false });
|
|
10
|
+
useOverlay = () => useContext(OverlayContext);
|
|
11
|
+
OverlayContextProvider = ({ children, value }) => /* @__PURE__ */ jsx(OverlayContext.Provider, {
|
|
12
|
+
value,
|
|
13
|
+
children
|
|
14
|
+
});
|
|
12
15
|
});
|
|
13
16
|
|
|
14
17
|
//#endregion
|
|
15
|
-
|
|
18
|
+
init_OverlayContext();
|
|
19
|
+
export { OverlayContextProvider, init_OverlayContext, useOverlay };
|
|
@@ -1,26 +1,32 @@
|
|
|
1
|
+
import { __esmMin } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
|
|
1
3
|
//#region src/components/compositions/EstimateCost/constants.ts
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
4
|
+
var APPROXIMATE_HOURS_IN_MONTH, multiplier, maximumFractionDigits, maximumFractionDigitsLong;
|
|
5
|
+
var init_constants = __esmMin(() => {
|
|
6
|
+
APPROXIMATE_HOURS_IN_MONTH = 730;
|
|
7
|
+
multiplier = {
|
|
8
|
+
days: 24,
|
|
9
|
+
hours: 1,
|
|
10
|
+
minutes: 1 / 60,
|
|
11
|
+
months: 730,
|
|
12
|
+
seconds: 1 / 60 / 60
|
|
13
|
+
};
|
|
14
|
+
maximumFractionDigits = {
|
|
15
|
+
days: 3,
|
|
16
|
+
hours: 5,
|
|
17
|
+
minutes: 8,
|
|
18
|
+
months: 2,
|
|
19
|
+
seconds: 10
|
|
20
|
+
};
|
|
21
|
+
maximumFractionDigitsLong = {
|
|
22
|
+
days: 4,
|
|
23
|
+
hours: 8,
|
|
24
|
+
minutes: 10,
|
|
25
|
+
months: 2,
|
|
26
|
+
seconds: 12
|
|
27
|
+
};
|
|
28
|
+
});
|
|
24
29
|
|
|
25
30
|
//#endregion
|
|
26
|
-
|
|
31
|
+
init_constants();
|
|
32
|
+
export { init_constants, maximumFractionDigits, maximumFractionDigitsLong, multiplier };
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { multiplier } from "./constants.js";
|
|
1
|
+
import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { init_constants, multiplier } from "./constants.js";
|
|
3
3
|
|
|
4
4
|
//#region src/components/compositions/EstimateCost/helper.ts
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
5
|
+
var calculatePrice;
|
|
6
|
+
var init_helper = __esmMin(() => {
|
|
7
|
+
init_constants();
|
|
8
|
+
calculatePrice = ({ price, amount, amountFree = 0, timeUnit, timeAmount, discount = 0 }) => {
|
|
9
|
+
const nonNanTimeAmount = Number.isNaN(timeAmount) ? 0 : timeAmount;
|
|
10
|
+
return (price - price * discount) * (nonNanTimeAmount * multiplier[timeUnit]) * Math.max(amount - amountFree, 0);
|
|
11
|
+
};
|
|
12
|
+
});
|
|
9
13
|
|
|
10
14
|
//#endregion
|
|
11
|
-
|
|
15
|
+
init_helper();
|
|
16
|
+
export { calculatePrice, init_helper };
|
|
@@ -1,97 +1,117 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.
|
|
4
|
-
import { Text } from "../../Text/index.js";
|
|
5
|
-
import { maxWidthText, maxWidthTextVar } from "./Components/components.css.js";
|
|
6
|
-
import en_default from "./locales/en.js";
|
|
7
|
-
import { EstimateCostProvider } from "./EstimateCostProvider.js";
|
|
8
|
-
import { useOverlay } from "./OverlayContext.js";
|
|
9
|
-
import {
|
|
10
|
-
import { Item } from "./Components/Item.js";
|
|
11
|
-
import { LineThrough } from "./Components/LineThrough.js";
|
|
12
|
-
import { Regular } from "./Components/Regular.js";
|
|
13
|
-
import { NumberInput } from "./Components/NumberInput.js";
|
|
14
|
-
import { Strong } from "./Components/Strong.js";
|
|
15
|
-
import { Region } from "./Components/Region.js";
|
|
16
|
-
import { Unit } from "./Components/Unit.js";
|
|
17
|
-
import { Zone } from "./Components/Zone.js";
|
|
18
|
-
import { EstimateCostContent } from "./EstimateCostContent.js";
|
|
2
|
+
import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectSpread2, init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.115.0/helpers/objectSpread2.js";
|
|
4
|
+
import { Text, init_Text } from "../../Text/index.js";
|
|
5
|
+
import { init_components_css, maxWidthText, maxWidthTextVar } from "./Components/components.css.js";
|
|
6
|
+
import en_default, { init_en } from "./locales/en.js";
|
|
7
|
+
import { EstimateCostProvider, init_EstimateCostProvider } from "./EstimateCostProvider.js";
|
|
8
|
+
import { init_OverlayContext, useOverlay } from "./OverlayContext.js";
|
|
9
|
+
import { estimateCostStyle, init_styles_css } from "./styles.css.js";
|
|
10
|
+
import { Item, init_Item } from "./Components/Item.js";
|
|
11
|
+
import { LineThrough, init_LineThrough } from "./Components/LineThrough.js";
|
|
12
|
+
import { Regular, init_Regular } from "./Components/Regular.js";
|
|
13
|
+
import { NumberInput, init_NumberInput } from "./Components/NumberInput.js";
|
|
14
|
+
import { Strong, init_Strong } from "./Components/Strong.js";
|
|
15
|
+
import { Region, init_Region } from "./Components/Region.js";
|
|
16
|
+
import { Unit, init_Unit } from "./Components/Unit.js";
|
|
17
|
+
import { Zone, init_Zone } from "./Components/Zone.js";
|
|
18
|
+
import { EstimateCostContent, init_EstimateCostContent } from "./EstimateCostContent.js";
|
|
19
19
|
import { Children } from "react";
|
|
20
|
+
import { cn } from "@ultraviolet/utils";
|
|
20
21
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
21
22
|
import { jsx } from "react/jsx-runtime";
|
|
22
|
-
import { cn } from "@ultraviolet/utils";
|
|
23
23
|
|
|
24
24
|
//#region src/components/compositions/EstimateCost/index.tsx
|
|
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
|
-
|
|
25
|
+
var DEFAULT_UNIT_LIST, Image, EstimateCost, Ellipsis;
|
|
26
|
+
var init_EstimateCost = __esmMin(() => {
|
|
27
|
+
init_Text();
|
|
28
|
+
init_components_css();
|
|
29
|
+
init_Item();
|
|
30
|
+
init_LineThrough();
|
|
31
|
+
init_NumberInput();
|
|
32
|
+
init_Region();
|
|
33
|
+
init_Regular();
|
|
34
|
+
init_Strong();
|
|
35
|
+
init_Unit();
|
|
36
|
+
init_Zone();
|
|
37
|
+
init_EstimateCostContent();
|
|
38
|
+
init_EstimateCostProvider();
|
|
39
|
+
init_en();
|
|
40
|
+
init_OverlayContext();
|
|
41
|
+
init_styles_css();
|
|
42
|
+
init_objectSpread2();
|
|
43
|
+
DEFAULT_UNIT_LIST = [
|
|
44
|
+
"hours",
|
|
45
|
+
"days",
|
|
46
|
+
"months"
|
|
47
|
+
];
|
|
48
|
+
Image = (props) => /* @__PURE__ */ jsx("img", _objectSpread2(_objectSpread2({
|
|
49
|
+
alt: props.alt,
|
|
50
|
+
height: props.height,
|
|
51
|
+
width: props.width
|
|
52
|
+
}, props), {}, { className: cn(props.className, estimateCostStyle.image) }));
|
|
53
|
+
EstimateCost = ({ description, alert, alertTitle, alertVariant = "warning", defaultTimeUnit = "hours", timeUnits = DEFAULT_UNIT_LIST, hideOverlay = false, disableOverlayLeft = false, disableOverlayRight = false, hideTimeUnit = false, hideTotal = false, discount = 0, OverlayRight, OverlayLeft, overlayMargin, isBeta = false, commitmentFees, commitmentFeesContent, monthlyFees, monthlyFeesLabel, monthlyFeesContent, overlayUnit = "hours", children = null, locales = en_default, compact, numberLocales = "en-EN", currency = "EUR", style, onTotalPriceChange }) => /* @__PURE__ */ jsx(EstimateCostProvider, {
|
|
54
|
+
currency,
|
|
55
55
|
locales,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
as: "p",
|
|
86
|
-
className: maxWidthText,
|
|
87
|
-
oneLine: true,
|
|
88
|
-
style: assignInlineVars({ [maxWidthTextVar]: isOverlay ? "200px" : `${maxWidth}px` }),
|
|
89
|
-
variant: "bodyStrong",
|
|
90
|
-
children: text
|
|
56
|
+
numberLocales,
|
|
57
|
+
children: /* @__PURE__ */ jsx(EstimateCostContent, {
|
|
58
|
+
alert,
|
|
59
|
+
alertTitle,
|
|
60
|
+
alertVariant,
|
|
61
|
+
commitmentFees,
|
|
62
|
+
commitmentFeesContent,
|
|
63
|
+
compact,
|
|
64
|
+
defaultTimeUnit,
|
|
65
|
+
description,
|
|
66
|
+
disableOverlayLeft,
|
|
67
|
+
disableOverlayRight,
|
|
68
|
+
discount,
|
|
69
|
+
hideOverlay,
|
|
70
|
+
hideTimeUnit,
|
|
71
|
+
hideTotal,
|
|
72
|
+
isBeta,
|
|
73
|
+
locales,
|
|
74
|
+
monthlyFees,
|
|
75
|
+
monthlyFeesContent,
|
|
76
|
+
monthlyFeesLabel,
|
|
77
|
+
OverlayLeft,
|
|
78
|
+
OverlayRight,
|
|
79
|
+
onTotalPriceChange,
|
|
80
|
+
overlayMargin,
|
|
81
|
+
overlayUnit,
|
|
82
|
+
style,
|
|
83
|
+
timeUnits,
|
|
84
|
+
children
|
|
91
85
|
})
|
|
92
86
|
});
|
|
93
|
-
|
|
94
|
-
EstimateCost.
|
|
87
|
+
EstimateCost.LineThrough = LineThrough;
|
|
88
|
+
EstimateCost.Item = Item;
|
|
89
|
+
EstimateCost.NumberInput = NumberInput;
|
|
90
|
+
EstimateCost.Unit = Unit;
|
|
91
|
+
EstimateCost.Strong = Strong;
|
|
92
|
+
EstimateCost.Regular = Regular;
|
|
93
|
+
EstimateCost.Image = Image;
|
|
94
|
+
EstimateCost.Region = Region;
|
|
95
|
+
EstimateCost.Zone = Zone;
|
|
96
|
+
Ellipsis = ({ children, maxWidth = 350, "data-testid": dataTestId }) => {
|
|
97
|
+
const { isOverlay } = useOverlay();
|
|
98
|
+
const text = Children.toArray(children).join("").toString();
|
|
99
|
+
return /* @__PURE__ */ jsx("div", {
|
|
100
|
+
"data-testid": dataTestId,
|
|
101
|
+
style: { display: isOverlay ? void 0 : "inline-flex" },
|
|
102
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
103
|
+
as: "p",
|
|
104
|
+
className: maxWidthText,
|
|
105
|
+
oneLine: true,
|
|
106
|
+
style: assignInlineVars({ [maxWidthTextVar]: isOverlay ? "200px" : `${maxWidth}px` }),
|
|
107
|
+
variant: "bodyStrong",
|
|
108
|
+
children: text
|
|
109
|
+
})
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
EstimateCost.Ellipsis = Ellipsis;
|
|
113
|
+
});
|
|
95
114
|
|
|
96
115
|
//#endregion
|
|
97
|
-
|
|
116
|
+
init_EstimateCost();
|
|
117
|
+
export { EstimateCost, en_default as estimateCostDefaultLocales, init_EstimateCost };
|
|
@@ -1,25 +1,31 @@
|
|
|
1
|
+
import { __esmMin } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
|
|
1
3
|
//#region src/components/compositions/EstimateCost/locales/en.ts
|
|
2
|
-
var en_default
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
4
|
+
var en_default;
|
|
5
|
+
var init_en = __esmMin(() => {
|
|
6
|
+
en_default = {
|
|
7
|
+
"estimate.cost.az.label": "Availability Zone",
|
|
8
|
+
"estimate.cost.beta.badge": "Beta Version",
|
|
9
|
+
"estimate.cost.beta.discount": "% off during Beta",
|
|
10
|
+
"estimate.cost.beta.free": "Free During Beta",
|
|
11
|
+
"estimate.cost.description": "This summary provides a cost estimation based on your configuration, the amount of time you expect to use the resource for, and the scale of your expected usage. For the purposes of this calculation, we consider that 1 month equals to 730 hours.",
|
|
12
|
+
"estimate.cost.fees.commitment": "Commitment Fees",
|
|
13
|
+
"estimate.cost.fees.monthly.title": "Each month",
|
|
14
|
+
"estimate.cost.fees.oneTime.title": "One time fees",
|
|
15
|
+
"estimate.cost.label": "Estimated cost",
|
|
16
|
+
"estimate.cost.notDefined": "Not defined",
|
|
17
|
+
"estimate.cost.region.label": "Region",
|
|
18
|
+
"estimate.cost.submit.label": "Create",
|
|
19
|
+
"estimate.cost.units.days.label": "Day(s)",
|
|
20
|
+
"estimate.cost.units.gb.label": "GB",
|
|
21
|
+
"estimate.cost.units.hours.label": "Hour(s)",
|
|
22
|
+
"estimate.cost.units.minutes.label": "Minute(s)",
|
|
23
|
+
"estimate.cost.units.months.label": "Month(s)",
|
|
24
|
+
"estimate.cost.units.seconds.label": "Second(s)",
|
|
25
|
+
"estimate.cost.units.years.label": "Year(s)"
|
|
26
|
+
};
|
|
27
|
+
});
|
|
23
28
|
|
|
24
29
|
//#endregion
|
|
25
|
-
|
|
30
|
+
init_en();
|
|
31
|
+
export { en_default as default, init_en };
|