@ultraviolet/ui 3.11.0 → 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 -159
- package/dist/components/Avatar/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Avatar/variables.css.js +9 -5
- 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 -22
- 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 +29 -27
- 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 -41
- 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 -33
- package/dist/components/Popup/styles.css.ts.vanilla.js +8 -0
- package/dist/components/Popup/variables.css.js +15 -9
- 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 -17
- package/dist/components/ProgressBar/styles.css.ts.vanilla.js +8 -0
- package/dist/components/ProgressBar/variables.css.js +8 -2
- 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 -16
- 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 -64
- 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 +96 -8
- 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 -124
- 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,20 +1,26 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { __esmMin } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import en_default, { init_en } from "./locales/en.js";
|
|
2
3
|
import { createContext } from "react";
|
|
3
4
|
|
|
4
5
|
//#region src/components/compositions/OrderSummary/Provider.tsx
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
var OrderSummaryContext;
|
|
7
|
+
var init_Provider = __esmMin(() => {
|
|
8
|
+
init_en();
|
|
9
|
+
OrderSummaryContext = createContext({
|
|
10
|
+
categoriesPrice: {},
|
|
11
|
+
currency: "EUR",
|
|
12
|
+
hideTimeUnit: false,
|
|
13
|
+
items: [{
|
|
14
|
+
category: "",
|
|
15
|
+
subCategories: []
|
|
16
|
+
}],
|
|
17
|
+
localeFormat: "en-US",
|
|
18
|
+
locales: en_default,
|
|
19
|
+
timePeriodAmount: 1,
|
|
20
|
+
timePeriodUnit: "hours"
|
|
21
|
+
});
|
|
17
22
|
});
|
|
18
23
|
|
|
19
24
|
//#endregion
|
|
20
|
-
|
|
25
|
+
init_Provider();
|
|
26
|
+
export { OrderSummaryContext, init_Provider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollableContent.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/OrderSummary/ScrollableContent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScrollableContent.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/OrderSummary/ScrollableContent.tsx"],"names":[],"mappings":"AA8UA,eAAO,MAAM,iBAAiB,+CAqC7B,CAAA"}
|
|
@@ -1,248 +1,258 @@
|
|
|
1
|
-
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { Stack } from "../../Stack/index.js";
|
|
3
|
-
import { Text } from "../../Text/index.js";
|
|
4
|
-
import { NumberInput } from "../../NumberInput/index.js";
|
|
5
|
-
import { OrderSummaryContext } from "./Provider.js";
|
|
6
|
-
import { DisplayPrice, calculateSubCategoryPrice, formatNumber } from "./helpers.js";
|
|
7
|
-
import {
|
|
1
|
+
import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { Stack, init_Stack } from "../../Stack/index.js";
|
|
3
|
+
import { Text, init_Text } from "../../Text/index.js";
|
|
4
|
+
import { NumberInput, init_NumberInput } from "../../NumberInput/index.js";
|
|
5
|
+
import { OrderSummaryContext, init_Provider } from "./Provider.js";
|
|
6
|
+
import { DisplayPrice, calculateSubCategoryPrice, formatNumber, init_helpers } from "./helpers.js";
|
|
7
|
+
import { init_styles_css, orderSummaryStyle } from "./styles.css.js";
|
|
8
8
|
import { useContext } from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { AttachIcon } from "@ultraviolet/icons/AttachIcon";
|
|
11
11
|
|
|
12
12
|
//#region src/components/compositions/OrderSummary/ScrollableContent.tsx
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
gap: 1,
|
|
27
|
-
children: [/* @__PURE__ */ jsxs(Text, {
|
|
28
|
-
as: "span",
|
|
29
|
-
prominence: "weak",
|
|
30
|
-
sentiment: "neutral",
|
|
31
|
-
strikeThrough: true,
|
|
32
|
-
variant: "bodySmallStrong",
|
|
33
|
-
children: [subCategoryPrice.default[0] === subCategoryPrice.default[1] || subCategory.priceUnit ? formatNumber(getCorrectPrice("default", 0), localeFormat, currency, fractionDigits) : `${formatNumber(subCategoryPrice.default[0], localeFormat, currency, fractionDigits)} - ${formatNumber(subCategoryPrice.default[1], localeFormat, currency, fractionDigits)}`, subCategory.priceUnit ? ` /${subCategory.priceUnit}` : ""]
|
|
34
|
-
}), /* @__PURE__ */ jsxs(Text, {
|
|
13
|
+
var SubCategoryPrice, CategoryName, SubCategory, ScrollableContent;
|
|
14
|
+
var init_ScrollableContent = __esmMin(() => {
|
|
15
|
+
init_NumberInput();
|
|
16
|
+
init_Stack();
|
|
17
|
+
init_Text();
|
|
18
|
+
init_helpers();
|
|
19
|
+
init_Provider();
|
|
20
|
+
init_styles_css();
|
|
21
|
+
SubCategoryPrice = ({ subCategory }) => {
|
|
22
|
+
const { currency, localeFormat, hideTimeUnit, timePeriodAmount, timePeriodUnit, fractionDigits } = useContext(OrderSummaryContext);
|
|
23
|
+
const subCategoryPrice = calculateSubCategoryPrice(subCategory, hideTimeUnit, timePeriodAmount, timePeriodUnit);
|
|
24
|
+
const getCorrectPrice = (variant, index) => subCategory.priceUnit ? subCategory.price : subCategoryPrice[variant][index];
|
|
25
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [subCategory.price !== void 0 && !subCategory.hidePrice && subCategoryPrice.default[0] === subCategoryPrice.discounted[0] && subCategoryPrice.default[1] === subCategoryPrice.discounted[1] ? /* @__PURE__ */ jsxs(Text, {
|
|
35
26
|
as: "span",
|
|
36
27
|
prominence: "strong",
|
|
37
28
|
sentiment: "neutral",
|
|
38
29
|
variant: "bodySmallStrong",
|
|
39
30
|
children: [subCategoryPrice.discounted[0] === subCategoryPrice.discounted[1] || subCategory.priceUnit ? formatNumber(getCorrectPrice("discounted", 0), localeFormat, currency, fractionDigits) : `${formatNumber(subCategoryPrice.discounted[0], localeFormat, currency, fractionDigits)} - ${formatNumber(subCategoryPrice.discounted[1], localeFormat, currency, fractionDigits)}`, subCategory.priceUnit ? ` /${subCategory.priceUnit}` : ""]
|
|
40
|
-
})]
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const { categoriesPrice } = useContext(OrderSummaryContext);
|
|
46
|
-
const categoryPrice = (_categoriesPrice$cate = categoriesPrice[category.category]) !== null && _categoriesPrice$cate !== void 0 ? _categoriesPrice$cate : {
|
|
47
|
-
maxPrice: 0,
|
|
48
|
-
maxPriceWithDiscount: 0,
|
|
49
|
-
timeUnit: "hours",
|
|
50
|
-
totalPrice: 0,
|
|
51
|
-
totalPriceWithDiscount: 0
|
|
52
|
-
};
|
|
53
|
-
return category.category ? /* @__PURE__ */ jsxs(Stack, {
|
|
54
|
-
alignItems: "center",
|
|
55
|
-
direction: "row",
|
|
56
|
-
justifyContent: "space-between",
|
|
57
|
-
children: [
|
|
58
|
-
category.additionalInfo ? /* @__PURE__ */ jsxs(Stack, {
|
|
59
|
-
alignItems: "center",
|
|
60
|
-
direction: "row",
|
|
61
|
-
gap: 1,
|
|
62
|
-
children: [/* @__PURE__ */ jsx(Text, {
|
|
63
|
-
as: "span",
|
|
64
|
-
prominence: "strong",
|
|
65
|
-
sentiment: "neutral",
|
|
66
|
-
variant: "bodyStrong",
|
|
67
|
-
children: category.anchor ? /* @__PURE__ */ jsxs("a", {
|
|
68
|
-
className: orderSummaryAnchor,
|
|
69
|
-
href: category.anchor,
|
|
70
|
-
children: [/* @__PURE__ */ jsx(AttachIcon, {
|
|
71
|
-
className: orderSummaryAnchorIcon({ size: "medium" }),
|
|
72
|
-
sentiment: "info"
|
|
73
|
-
}), category.category]
|
|
74
|
-
}) : category.category
|
|
75
|
-
}), /* @__PURE__ */ jsx(Text, {
|
|
76
|
-
as: "span",
|
|
77
|
-
italic: true,
|
|
78
|
-
sentiment: "primary",
|
|
79
|
-
variant: "bodySmall",
|
|
80
|
-
children: category.additionalInfo
|
|
81
|
-
})]
|
|
82
|
-
}) : /* @__PURE__ */ jsx(Text, {
|
|
31
|
+
}) : null, subCategory.price !== void 0 && !subCategory.hidePrice && (subCategoryPrice.default[0] !== subCategoryPrice.discounted[0] || subCategoryPrice.default[1] !== subCategoryPrice.discounted[1]) ? /* @__PURE__ */ jsxs(Stack, {
|
|
32
|
+
alignItems: "center",
|
|
33
|
+
direction: "row",
|
|
34
|
+
gap: 1,
|
|
35
|
+
children: [/* @__PURE__ */ jsxs(Text, {
|
|
83
36
|
as: "span",
|
|
84
|
-
prominence: "
|
|
37
|
+
prominence: "weak",
|
|
85
38
|
sentiment: "neutral",
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
children: [/* @__PURE__ */ jsx(AttachIcon, {
|
|
91
|
-
className: orderSummaryAnchorIcon({ size: "medium" }),
|
|
92
|
-
sentiment: "info"
|
|
93
|
-
}), category.category]
|
|
94
|
-
}) : category.category
|
|
95
|
-
}),
|
|
96
|
-
category.customContent,
|
|
97
|
-
category.numberInput ? /* @__PURE__ */ jsx(NumberInput, {
|
|
98
|
-
className: orderSummaryNumberInput,
|
|
99
|
-
controls: category.numberInputControls,
|
|
100
|
-
onChange: category.onChangeInput,
|
|
101
|
-
size: "small",
|
|
102
|
-
unit: category.numberInputUnit,
|
|
103
|
-
value: category.numberInputValue
|
|
104
|
-
}) : null,
|
|
105
|
-
!(category.customContent || category.numberInput) && categoryPrice.totalPrice === categoryPrice.totalPriceWithDiscount ? /* @__PURE__ */ jsx(Text, {
|
|
39
|
+
strikeThrough: true,
|
|
40
|
+
variant: "bodySmallStrong",
|
|
41
|
+
children: [subCategoryPrice.default[0] === subCategoryPrice.default[1] || subCategory.priceUnit ? formatNumber(getCorrectPrice("default", 0), localeFormat, currency, fractionDigits) : `${formatNumber(subCategoryPrice.default[0], localeFormat, currency, fractionDigits)} - ${formatNumber(subCategoryPrice.default[1], localeFormat, currency, fractionDigits)}`, subCategory.priceUnit ? ` /${subCategory.priceUnit}` : ""]
|
|
42
|
+
}), /* @__PURE__ */ jsxs(Text, {
|
|
106
43
|
as: "span",
|
|
107
44
|
prominence: "strong",
|
|
108
45
|
sentiment: "neutral",
|
|
109
|
-
variant: "
|
|
110
|
-
children:
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
children: /* @__PURE__ */ jsx(DisplayPrice, {
|
|
126
|
-
beforeOrAfter: "before",
|
|
127
|
-
price: categoryPrice
|
|
128
|
-
})
|
|
129
|
-
}), /* @__PURE__ */ jsx(Text, {
|
|
130
|
-
as: "span",
|
|
131
|
-
prominence: "strong",
|
|
132
|
-
sentiment: "neutral",
|
|
133
|
-
variant: "bodyStrong",
|
|
134
|
-
children: /* @__PURE__ */ jsx(DisplayPrice, {
|
|
135
|
-
beforeOrAfter: "after",
|
|
136
|
-
price: categoryPrice
|
|
137
|
-
})
|
|
138
|
-
})]
|
|
139
|
-
}) : null
|
|
140
|
-
]
|
|
141
|
-
}) : null;
|
|
142
|
-
};
|
|
143
|
-
const SubCategory = ({ subCategory }) => {
|
|
144
|
-
var _subCategory$details;
|
|
145
|
-
return /* @__PURE__ */ jsxs(Stack, {
|
|
146
|
-
direction: "column",
|
|
147
|
-
gap: 1,
|
|
148
|
-
children: [/* @__PURE__ */ jsxs(Stack, {
|
|
46
|
+
variant: "bodySmallStrong",
|
|
47
|
+
children: [subCategoryPrice.discounted[0] === subCategoryPrice.discounted[1] || subCategory.priceUnit ? formatNumber(getCorrectPrice("discounted", 0), localeFormat, currency, fractionDigits) : `${formatNumber(subCategoryPrice.discounted[0], localeFormat, currency, fractionDigits)} - ${formatNumber(subCategoryPrice.discounted[1], localeFormat, currency, fractionDigits)}`, subCategory.priceUnit ? ` /${subCategory.priceUnit}` : ""]
|
|
48
|
+
})]
|
|
49
|
+
}) : null] });
|
|
50
|
+
};
|
|
51
|
+
CategoryName = ({ category }) => {
|
|
52
|
+
var _categoriesPrice$cate;
|
|
53
|
+
const { categoriesPrice } = useContext(OrderSummaryContext);
|
|
54
|
+
const categoryPrice = (_categoriesPrice$cate = categoriesPrice[category.category]) !== null && _categoriesPrice$cate !== void 0 ? _categoriesPrice$cate : {
|
|
55
|
+
maxPrice: 0,
|
|
56
|
+
maxPriceWithDiscount: 0,
|
|
57
|
+
timeUnit: "hours",
|
|
58
|
+
totalPrice: 0,
|
|
59
|
+
totalPriceWithDiscount: 0
|
|
60
|
+
};
|
|
61
|
+
return category.category ? /* @__PURE__ */ jsxs(Stack, {
|
|
149
62
|
alignItems: "center",
|
|
150
63
|
direction: "row",
|
|
151
64
|
justifyContent: "space-between",
|
|
152
65
|
children: [
|
|
153
|
-
|
|
66
|
+
category.additionalInfo ? /* @__PURE__ */ jsxs(Stack, {
|
|
154
67
|
alignItems: "center",
|
|
155
68
|
direction: "row",
|
|
156
69
|
gap: 1,
|
|
157
|
-
children: [
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
variant: "bodySmall",
|
|
178
|
-
children: subCategory.additionalInfo
|
|
179
|
-
})
|
|
180
|
-
]
|
|
70
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
71
|
+
as: "span",
|
|
72
|
+
prominence: "strong",
|
|
73
|
+
sentiment: "neutral",
|
|
74
|
+
variant: "bodyStrong",
|
|
75
|
+
children: category.anchor ? /* @__PURE__ */ jsxs("a", {
|
|
76
|
+
className: orderSummaryStyle.anchor,
|
|
77
|
+
href: category.anchor,
|
|
78
|
+
children: [/* @__PURE__ */ jsx(AttachIcon, {
|
|
79
|
+
className: orderSummaryStyle.anchorIcon({ size: "medium" }),
|
|
80
|
+
sentiment: "info"
|
|
81
|
+
}), category.category]
|
|
82
|
+
}) : category.category
|
|
83
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
84
|
+
as: "span",
|
|
85
|
+
italic: true,
|
|
86
|
+
sentiment: "primary",
|
|
87
|
+
variant: "bodySmall",
|
|
88
|
+
children: category.additionalInfo
|
|
89
|
+
})]
|
|
181
90
|
}) : /* @__PURE__ */ jsx(Text, {
|
|
182
91
|
as: "span",
|
|
183
92
|
prominence: "strong",
|
|
184
93
|
sentiment: "neutral",
|
|
185
|
-
variant: "
|
|
186
|
-
children:
|
|
187
|
-
className:
|
|
188
|
-
href:
|
|
94
|
+
variant: "bodyStrong",
|
|
95
|
+
children: category.anchor ? /* @__PURE__ */ jsxs("a", {
|
|
96
|
+
className: orderSummaryStyle.anchor,
|
|
97
|
+
href: category.anchor,
|
|
189
98
|
children: [/* @__PURE__ */ jsx(AttachIcon, {
|
|
190
|
-
className:
|
|
99
|
+
className: orderSummaryStyle.anchorIcon({ size: "medium" }),
|
|
191
100
|
sentiment: "info"
|
|
192
|
-
}),
|
|
193
|
-
}) :
|
|
101
|
+
}), category.category]
|
|
102
|
+
}) : category.category
|
|
194
103
|
}),
|
|
195
|
-
|
|
104
|
+
category.customContent,
|
|
105
|
+
category.numberInput ? /* @__PURE__ */ jsx(NumberInput, {
|
|
106
|
+
className: orderSummaryStyle.numberInput,
|
|
107
|
+
controls: category.numberInputControls,
|
|
108
|
+
onChange: category.onChangeInput,
|
|
109
|
+
size: "small",
|
|
110
|
+
unit: category.numberInputUnit,
|
|
111
|
+
value: category.numberInputValue
|
|
112
|
+
}) : null,
|
|
113
|
+
!(category.customContent || category.numberInput) && categoryPrice.totalPrice === categoryPrice.totalPriceWithDiscount ? /* @__PURE__ */ jsx(Text, {
|
|
196
114
|
as: "span",
|
|
197
115
|
prominence: "strong",
|
|
198
116
|
sentiment: "neutral",
|
|
199
|
-
variant: "
|
|
200
|
-
children:
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
controls: subCategory.numberInputControls,
|
|
205
|
-
onChange: subCategory.onChangeInput,
|
|
206
|
-
size: "small",
|
|
207
|
-
unit: subCategory.numberInputUnit,
|
|
208
|
-
value: subCategory.numberInputValue
|
|
117
|
+
variant: "bodyStrong",
|
|
118
|
+
children: /* @__PURE__ */ jsx(DisplayPrice, {
|
|
119
|
+
beforeOrAfter: "after",
|
|
120
|
+
price: categoryPrice
|
|
121
|
+
})
|
|
209
122
|
}) : null,
|
|
210
|
-
/* @__PURE__ */
|
|
123
|
+
!(category.customContent || category.numberInput) && categoryPrice.totalPrice !== categoryPrice.totalPriceWithDiscount ? /* @__PURE__ */ jsxs(Stack, {
|
|
124
|
+
alignItems: "center",
|
|
125
|
+
direction: "row",
|
|
126
|
+
gap: 1,
|
|
127
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
128
|
+
as: "span",
|
|
129
|
+
prominence: "weak",
|
|
130
|
+
sentiment: "neutral",
|
|
131
|
+
strikeThrough: true,
|
|
132
|
+
variant: "bodySmallStrong",
|
|
133
|
+
children: /* @__PURE__ */ jsx(DisplayPrice, {
|
|
134
|
+
beforeOrAfter: "before",
|
|
135
|
+
price: categoryPrice
|
|
136
|
+
})
|
|
137
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
138
|
+
as: "span",
|
|
139
|
+
prominence: "strong",
|
|
140
|
+
sentiment: "neutral",
|
|
141
|
+
variant: "bodyStrong",
|
|
142
|
+
children: /* @__PURE__ */ jsx(DisplayPrice, {
|
|
143
|
+
beforeOrAfter: "after",
|
|
144
|
+
price: categoryPrice
|
|
145
|
+
})
|
|
146
|
+
})]
|
|
147
|
+
}) : null
|
|
211
148
|
]
|
|
212
|
-
})
|
|
213
|
-
|
|
149
|
+
}) : null;
|
|
150
|
+
};
|
|
151
|
+
SubCategory = ({ subCategory }) => {
|
|
152
|
+
var _subCategory$details;
|
|
153
|
+
return /* @__PURE__ */ jsxs(Stack, {
|
|
214
154
|
direction: "column",
|
|
215
|
-
gap:
|
|
216
|
-
children:
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
children:
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
155
|
+
gap: 1,
|
|
156
|
+
children: [/* @__PURE__ */ jsxs(Stack, {
|
|
157
|
+
alignItems: "center",
|
|
158
|
+
direction: "row",
|
|
159
|
+
justifyContent: "space-between",
|
|
160
|
+
children: [
|
|
161
|
+
subCategory.additionalInfo || subCategory.icon ? /* @__PURE__ */ jsxs(Stack, {
|
|
162
|
+
alignItems: "center",
|
|
163
|
+
direction: "row",
|
|
164
|
+
gap: 1,
|
|
165
|
+
children: [
|
|
166
|
+
subCategory.icon,
|
|
167
|
+
/* @__PURE__ */ jsx(Text, {
|
|
168
|
+
as: "span",
|
|
169
|
+
prominence: "strong",
|
|
170
|
+
sentiment: "neutral",
|
|
171
|
+
variant: "bodySmallStrong",
|
|
172
|
+
children: subCategory.anchor ? /* @__PURE__ */ jsxs("a", {
|
|
173
|
+
className: orderSummaryStyle.anchor,
|
|
174
|
+
href: subCategory.anchor,
|
|
175
|
+
children: [/* @__PURE__ */ jsx(AttachIcon, {
|
|
176
|
+
className: orderSummaryStyle.anchorIcon({ size: "small" }),
|
|
177
|
+
sentiment: "info"
|
|
178
|
+
}), subCategory.title]
|
|
179
|
+
}) : subCategory.title
|
|
180
|
+
}),
|
|
181
|
+
/* @__PURE__ */ jsx(Text, {
|
|
182
|
+
as: "span",
|
|
183
|
+
italic: true,
|
|
184
|
+
sentiment: "primary",
|
|
185
|
+
variant: "bodySmall",
|
|
186
|
+
children: subCategory.additionalInfo
|
|
187
|
+
})
|
|
188
|
+
]
|
|
189
|
+
}) : /* @__PURE__ */ jsx(Text, {
|
|
190
|
+
as: "span",
|
|
191
|
+
prominence: "strong",
|
|
192
|
+
sentiment: "neutral",
|
|
193
|
+
variant: "bodySmallStrong",
|
|
194
|
+
children: subCategory.anchor ? /* @__PURE__ */ jsxs("a", {
|
|
195
|
+
className: orderSummaryStyle.anchor,
|
|
196
|
+
href: subCategory.anchor,
|
|
197
|
+
children: [/* @__PURE__ */ jsx(AttachIcon, {
|
|
198
|
+
className: orderSummaryStyle.anchorIcon({ size: "small" }),
|
|
199
|
+
sentiment: "info"
|
|
200
|
+
}), subCategory.title]
|
|
201
|
+
}) : subCategory.title
|
|
202
|
+
}),
|
|
203
|
+
subCategory.customContent ? /* @__PURE__ */ jsx(Text, {
|
|
204
|
+
as: "span",
|
|
205
|
+
prominence: "strong",
|
|
206
|
+
sentiment: "neutral",
|
|
207
|
+
variant: "bodySmallStrong",
|
|
208
|
+
children: subCategory.customContent
|
|
209
|
+
}) : null,
|
|
210
|
+
subCategory.numberInput ? /* @__PURE__ */ jsx(NumberInput, {
|
|
211
|
+
className: orderSummaryStyle.numberInput,
|
|
212
|
+
controls: subCategory.numberInputControls,
|
|
213
|
+
onChange: subCategory.onChangeInput,
|
|
214
|
+
size: "small",
|
|
215
|
+
unit: subCategory.numberInputUnit,
|
|
216
|
+
value: subCategory.numberInputValue
|
|
217
|
+
}) : null,
|
|
218
|
+
/* @__PURE__ */ jsx(SubCategoryPrice, { subCategory })
|
|
219
|
+
]
|
|
220
|
+
}), /* @__PURE__ */ jsx(Stack, {
|
|
221
|
+
className: orderSummaryStyle.details,
|
|
234
222
|
direction: "column",
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
})
|
|
242
|
-
})
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
223
|
+
gap: .5,
|
|
224
|
+
children: (_subCategory$details = subCategory.details) === null || _subCategory$details === void 0 ? void 0 : _subCategory$details.map((detail, index) => detail ? /* @__PURE__ */ jsx(Text, {
|
|
225
|
+
as: "span",
|
|
226
|
+
sentiment: "neutral",
|
|
227
|
+
variant: "bodySmall",
|
|
228
|
+
children: detail
|
|
229
|
+
}, `${subCategory.title}-${index}`) : null)
|
|
230
|
+
})]
|
|
231
|
+
});
|
|
232
|
+
};
|
|
233
|
+
ScrollableContent = () => {
|
|
234
|
+
const { items } = useContext(OrderSummaryContext);
|
|
235
|
+
return /* @__PURE__ */ jsx(Stack, {
|
|
236
|
+
className: orderSummaryStyle.scrollableContainer,
|
|
237
|
+
gap: 3,
|
|
238
|
+
children: items.map((category) => Object.keys(category).length > 0 && category.category ? /* @__PURE__ */ jsxs(Stack, {
|
|
239
|
+
className: orderSummaryStyle.category,
|
|
240
|
+
gap: 1.5,
|
|
241
|
+
children: [category.subTitle ? /* @__PURE__ */ jsxs(Stack, {
|
|
242
|
+
direction: "column",
|
|
243
|
+
children: [/* @__PURE__ */ jsx(CategoryName, { category }), category.subTitle]
|
|
244
|
+
}) : /* @__PURE__ */ jsx(CategoryName, { category }), category.subCategories && Object.keys(category.subCategories).length > 0 ? /* @__PURE__ */ jsx(Stack, {
|
|
245
|
+
gap: 1,
|
|
246
|
+
children: category.subCategories.map((subCategory, index) => {
|
|
247
|
+
var _subCategory$title;
|
|
248
|
+
return /* @__PURE__ */ jsx(SubCategory, { subCategory }, (_subCategory$title = subCategory.title) !== null && _subCategory$title !== void 0 ? _subCategory$title : `${index}`);
|
|
249
|
+
})
|
|
250
|
+
}) : null]
|
|
251
|
+
}, category.category) : null)
|
|
252
|
+
});
|
|
253
|
+
};
|
|
254
|
+
});
|
|
246
255
|
|
|
247
256
|
//#endregion
|
|
248
|
-
|
|
257
|
+
init_ScrollableContent();
|
|
258
|
+
export { ScrollableContent, init_ScrollableContent };
|
|
@@ -1,18 +1,24 @@
|
|
|
1
|
+
import { __esmMin } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
|
|
1
3
|
//#region src/components/compositions/OrderSummary/constants.ts
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
var Units, multiplier;
|
|
5
|
+
var init_constants = __esmMin(() => {
|
|
6
|
+
Units = [
|
|
7
|
+
"seconds",
|
|
8
|
+
"minutes",
|
|
9
|
+
"hours",
|
|
10
|
+
"days",
|
|
11
|
+
"months"
|
|
12
|
+
];
|
|
13
|
+
multiplier = {
|
|
14
|
+
days: 24,
|
|
15
|
+
hours: 1,
|
|
16
|
+
minutes: 1 / 60,
|
|
17
|
+
months: 730,
|
|
18
|
+
seconds: 1 / 60 / 60
|
|
19
|
+
};
|
|
20
|
+
});
|
|
16
21
|
|
|
17
22
|
//#endregion
|
|
18
|
-
|
|
23
|
+
init_constants();
|
|
24
|
+
export { Units, init_constants, multiplier };
|