@ultraviolet/ui 3.12.2 → 3.13.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.120.0 → _@oxc-project_runtime@0.122.0}/helpers/defineProperty.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.120.0 → _@oxc-project_runtime@0.122.0}/helpers/objectSpread2.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.120.0 → _@oxc-project_runtime@0.122.0}/helpers/objectWithoutProperties.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.120.0 → _@oxc-project_runtime@0.122.0}/helpers/objectWithoutPropertiesLoose.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.120.0 → _@oxc-project_runtime@0.122.0}/helpers/toPrimitive.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.120.0 → _@oxc-project_runtime@0.122.0}/helpers/toPropertyKey.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.120.0 → _@oxc-project_runtime@0.122.0}/helpers/typeof.js +1 -1
- package/dist/components/ActionBar/index.js +1 -1
- package/dist/components/Avatar/constants.d.ts +15 -15
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/Avatar/styles.css.js +0 -2
- package/dist/components/BarChart/index.js +1 -1
- package/dist/components/Breadcrumbs/components/Item.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/components/Item.js +8 -6
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Carousel/Item.d.ts +9 -0
- package/dist/components/Carousel/Item.d.ts.map +1 -0
- package/dist/components/Carousel/Item.js +22 -0
- package/dist/components/Carousel/index.d.ts +6 -8
- package/dist/components/Carousel/index.d.ts.map +1 -1
- package/dist/components/Carousel/index.js +4 -11
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +13 -12
- package/dist/components/Checkbox/styles.css.js +0 -4
- package/dist/components/CheckboxGroup/Context.d.ts +9 -0
- package/dist/components/CheckboxGroup/Context.d.ts.map +1 -0
- package/dist/components/CheckboxGroup/Context.js +13 -0
- package/dist/components/CheckboxGroup/SingleCheckbox.d.ts +8 -0
- package/dist/components/CheckboxGroup/SingleCheckbox.d.ts.map +1 -0
- package/dist/components/CheckboxGroup/SingleCheckbox.js +46 -0
- package/dist/components/CheckboxGroup/index.d.ts +25 -9
- package/dist/components/CheckboxGroup/index.d.ts.map +1 -1
- package/dist/components/CheckboxGroup/index.js +7 -32
- package/dist/components/CopyButton/index.d.ts.map +1 -1
- package/dist/components/CopyButton/index.js +4 -3
- package/dist/components/DateInput/components/CalendarDaily.d.ts.map +1 -1
- package/dist/components/DateInput/components/CalendarDaily.js +5 -4
- package/dist/components/DateInput/components/CalendarMonthly.d.ts.map +1 -1
- package/dist/components/DateInput/components/CalendarMonthly.js +5 -4
- package/dist/components/DateInput/helpers.d.ts +5 -1
- package/dist/components/DateInput/helpers.d.ts.map +1 -1
- package/dist/components/DateInput/helpers.js +18 -9
- package/dist/components/DateInput/index.d.ts.map +1 -1
- package/dist/components/DateInput/index.js +2 -2
- package/dist/components/DateInput/styles.css.d.ts.map +1 -1
- package/dist/components/Expandable/AnimatedExpandable.d.ts +3 -0
- package/dist/components/Expandable/AnimatedExpandable.d.ts.map +1 -0
- package/dist/components/Expandable/AnimatedExpandable.js +95 -0
- package/dist/components/Expandable/NonAnimatedExpandable.d.ts +3 -0
- package/dist/components/Expandable/NonAnimatedExpandable.d.ts.map +1 -0
- package/dist/components/Expandable/NonAnimatedExpandable.js +22 -0
- package/dist/components/Expandable/constant.d.ts +2 -0
- package/dist/components/Expandable/constant.d.ts.map +1 -0
- package/dist/components/Expandable/constant.js +8 -0
- package/dist/components/Expandable/index.d.ts +1 -24
- package/dist/components/Expandable/index.d.ts.map +1 -1
- package/dist/components/Expandable/index.js +8 -94
- package/dist/components/Expandable/types.d.ts +23 -0
- package/dist/components/Expandable/types.d.ts.map +1 -0
- package/dist/components/ExpandableCard/index.d.ts.map +1 -1
- package/dist/components/FileInput/DropzoneContent.d.ts +9 -0
- package/dist/components/FileInput/DropzoneContent.d.ts.map +1 -0
- package/dist/components/FileInput/DropzoneContent.js +30 -0
- package/dist/components/FileInput/components/Button.js +2 -2
- package/dist/components/FileInput/components/List.d.ts.map +1 -1
- package/dist/components/FileInput/components/List.js +11 -9
- package/dist/components/FileInput/helpers.d.ts.map +1 -1
- package/dist/components/FileInput/index.d.ts.map +1 -1
- package/dist/components/FileInput/index.js +40 -66
- package/dist/components/InfiniteScroll/index.js +1 -1
- package/dist/components/Label/LabelContent.d.ts +3 -0
- package/dist/components/Label/LabelContent.d.ts.map +1 -0
- package/dist/components/Label/LabelContent.js +61 -0
- package/dist/components/Label/index.d.ts +1 -19
- package/dist/components/Label/index.d.ts.map +1 -1
- package/dist/components/Label/index.js +3 -47
- package/dist/components/Label/type.d.ts +19 -0
- package/dist/components/Label/type.d.ts.map +1 -0
- package/dist/components/LineChart/CustomLegend.d.ts.map +1 -1
- package/dist/components/LineChart/CustomLegend.js +4 -9
- package/dist/components/LineChart/LegendCell.d.ts +10 -0
- package/dist/components/LineChart/LegendCell.d.ts.map +1 -0
- package/dist/components/LineChart/LegendCell.js +23 -0
- package/dist/components/LineChart/index.js +1 -1
- package/dist/components/List/Cell.js +1 -1
- package/dist/components/List/ExpandButtonCell.d.ts +9 -0
- package/dist/components/List/ExpandButtonCell.d.ts.map +1 -0
- package/dist/components/List/ExpandButtonCell.js +44 -0
- package/dist/components/List/HeaderCell.d.ts.map +1 -1
- package/dist/components/List/HeaderCell.js +4 -8
- package/dist/components/List/ListContext.js +3 -3
- package/dist/components/List/Row.d.ts.map +1 -1
- package/dist/components/List/Row.js +21 -50
- package/dist/components/List/SelectRowCell.d.ts +8 -0
- package/dist/components/List/SelectRowCell.d.ts.map +1 -0
- package/dist/components/List/SelectRowCell.js +49 -0
- package/dist/components/List/SortIcon.d.ts +4 -0
- package/dist/components/List/SortIcon.d.ts.map +1 -0
- package/dist/components/List/SortIcon.js +19 -0
- package/dist/components/List/TableContainer.d.ts +5 -0
- package/dist/components/List/TableContainer.d.ts.map +1 -0
- package/dist/components/List/TableContainer.js +31 -0
- package/dist/components/List/index.d.ts.map +1 -1
- package/dist/components/List/index.js +4 -16
- package/dist/components/Loader/index.js +1 -1
- package/dist/components/Menu/MenuContent.d.ts.map +1 -1
- package/dist/components/Menu/MenuContent.js +28 -22
- package/dist/components/Menu/components/Item.d.ts.map +1 -1
- package/dist/components/Menu/components/Item.js +8 -6
- package/dist/components/Menu/index.js +2 -2
- package/dist/components/Modal/ModalContent.d.ts.map +1 -1
- package/dist/components/Modal/ModalContent.js +4 -4
- package/dist/components/Modal/components/Dialog.d.ts.map +1 -1
- package/dist/components/Modal/components/Dialog.js +14 -12
- package/dist/components/Notification/Notification.js +1 -1
- package/dist/components/NumberInput/components/Controls.d.ts +12 -0
- package/dist/components/NumberInput/components/Controls.d.ts.map +1 -0
- package/dist/components/NumberInput/components/Controls.js +78 -0
- package/dist/components/NumberInput/components/Unit.d.ts +8 -0
- package/dist/components/NumberInput/components/Unit.d.ts.map +1 -0
- package/dist/components/NumberInput/components/Unit.js +28 -0
- package/dist/components/NumberInput/index.d.ts.map +1 -1
- package/dist/components/NumberInput/index.js +33 -86
- package/dist/components/Pagination/PaginationButton.d.ts +11 -0
- package/dist/components/Pagination/PaginationButton.d.ts.map +1 -0
- package/dist/components/Pagination/PaginationButton.js +39 -0
- package/dist/components/Pagination/PaginationButtons.d.ts.map +1 -1
- package/dist/components/Pagination/PaginationButtons.js +4 -25
- package/dist/components/PieChart/index.d.ts.map +1 -1
- package/dist/components/PieChart/index.js +1 -1
- package/dist/components/Popover/ContentWrapper.d.ts +3 -0
- package/dist/components/Popover/ContentWrapper.d.ts.map +1 -0
- package/dist/components/Popover/ContentWrapper.js +49 -0
- package/dist/components/Popover/index.d.ts +6 -12
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js +4 -37
- package/dist/components/Popover/types.d.ts +26 -0
- package/dist/components/Popover/types.d.ts.map +1 -0
- package/dist/components/Popup/helpers.d.ts.map +1 -1
- package/dist/components/Popup/helpers.js +124 -123
- package/dist/components/Popup/index.d.ts.map +1 -1
- package/dist/components/Popup/index.js +3 -2
- package/dist/components/Popup/styles.css.d.ts.map +1 -1
- package/dist/components/Popup/styles.css.js +3 -3
- package/dist/components/ProgressBar/index.d.ts.map +1 -1
- package/dist/components/ProgressBar/index.js +63 -60
- package/dist/components/ProgressBar/styles.css.js +0 -2
- package/dist/components/Radio/MarkedIcon.d.ts +2 -0
- package/dist/components/Radio/MarkedIcon.d.ts.map +1 -0
- package/dist/components/Radio/MarkedIcon.js +33 -0
- package/dist/components/Radio/index.d.ts.map +1 -1
- package/dist/components/Radio/index.js +3 -21
- package/dist/components/Radio/styles.css.js +3 -3
- package/dist/components/RadioGroup/Context.d.ts +9 -0
- package/dist/components/RadioGroup/Context.d.ts.map +1 -0
- package/dist/components/RadioGroup/Context.js +12 -0
- package/dist/components/RadioGroup/SingleRadio.d.ts +6 -0
- package/dist/components/RadioGroup/SingleRadio.d.ts.map +1 -0
- package/dist/components/RadioGroup/SingleRadio.js +40 -0
- package/dist/components/RadioGroup/index.d.ts +2 -4
- package/dist/components/RadioGroup/index.d.ts.map +1 -1
- package/dist/components/RadioGroup/index.js +6 -28
- package/dist/components/Row/index.js +1 -1
- package/dist/components/Row/styles.css.js +2 -2
- package/dist/components/SearchInput/index.d.ts.map +1 -1
- package/dist/components/SelectInput/SelectInputProvider.d.ts.map +1 -1
- package/dist/components/SelectInput/SelectInputProvider.js +8 -63
- package/dist/components/SelectInput/components/Dropdown/AddOption.d.ts +12 -0
- package/dist/components/SelectInput/components/Dropdown/AddOption.d.ts.map +1 -0
- package/dist/components/SelectInput/components/Dropdown/AddOption.js +48 -0
- package/dist/components/SelectInput/components/Dropdown/Content.d.ts +20 -0
- package/dist/components/SelectInput/components/Dropdown/Content.d.ts.map +1 -0
- package/dist/components/SelectInput/components/Dropdown/Content.js +217 -0
- package/dist/components/SelectInput/components/{Dropdown.d.ts → Dropdown/Dropdown.d.ts} +1 -17
- package/dist/components/SelectInput/components/Dropdown/Dropdown.d.ts.map +1 -0
- package/dist/components/SelectInput/components/Dropdown/Dropdown.js +218 -0
- package/dist/components/SelectInput/components/Dropdown/Group.d.ts +5 -0
- package/dist/components/SelectInput/components/Dropdown/Group.d.ts.map +1 -0
- package/dist/components/SelectInput/components/Dropdown/Group.js +79 -0
- package/dist/components/SelectInput/components/Dropdown/Item.d.ts +13 -0
- package/dist/components/SelectInput/components/Dropdown/Item.d.ts.map +1 -0
- package/dist/components/SelectInput/components/Dropdown/Item.js +87 -0
- package/dist/components/SelectInput/components/{DropdownOption.d.ts → Dropdown/Option.d.ts} +2 -2
- package/dist/components/SelectInput/components/Dropdown/Option.d.ts.map +1 -0
- package/dist/components/SelectInput/components/Dropdown/Option.js +139 -0
- package/dist/components/SelectInput/components/Dropdown/SearchBar.d.ts +10 -0
- package/dist/components/SelectInput/components/Dropdown/SearchBar.d.ts.map +1 -0
- package/dist/components/SelectInput/components/{SearchBarDropdown.js → Dropdown/SearchBar.js} +20 -24
- package/dist/components/SelectInput/components/Dropdown/SelectAll.d.ts +4 -0
- package/dist/components/SelectInput/components/Dropdown/SelectAll.d.ts.map +1 -0
- package/dist/components/SelectInput/components/Dropdown/SelectAll.js +84 -0
- package/dist/components/SelectInput/components/{dropdown.css.d.ts → Dropdown/dropdown.css.d.ts} +4 -2
- package/dist/components/SelectInput/components/Dropdown/dropdown.css.d.ts.map +1 -0
- package/dist/components/SelectInput/components/{dropdown.css.js → Dropdown/dropdown.css.js} +15 -13
- package/dist/components/SelectInput/components/Dropdown/dropdown.css.ts.vanilla.js +8 -0
- package/dist/components/SelectInput/components/Dropdown/index.d.ts +2 -0
- package/dist/components/SelectInput/components/Dropdown/index.d.ts.map +1 -0
- package/dist/components/SelectInput/components/Dropdown/index.js +11 -0
- package/dist/components/SelectInput/components/SelectBar/SelectBar.d.ts.map +1 -0
- package/dist/components/SelectInput/components/{SelectBar.js → SelectBar/SelectBar.js} +24 -125
- package/dist/components/SelectInput/components/SelectBar/Values.d.ts +20 -0
- package/dist/components/SelectInput/components/SelectBar/Values.d.ts.map +1 -0
- package/dist/components/SelectInput/components/SelectBar/Values.js +93 -0
- package/dist/components/SelectInput/components/SelectBar/index.d.ts +2 -0
- package/dist/components/SelectInput/components/SelectBar/index.d.ts.map +1 -0
- package/dist/components/SelectInput/components/SelectBar/index.js +11 -0
- package/dist/components/SelectInput/components/SelectBar/selectBar.css.d.ts.map +1 -0
- package/dist/components/SelectInput/components/{selectBar.css.js → SelectBar/selectBar.css.js} +19 -19
- package/dist/components/SelectInput/components/SelectBar/selectBar.css.ts.vanilla.js +8 -0
- package/dist/components/SelectInput/components/helpers.d.ts +30 -0
- package/dist/components/SelectInput/components/helpers.d.ts.map +1 -0
- package/dist/components/SelectInput/components/helpers.js +77 -0
- package/dist/components/SelectInput/components/index.d.ts +3 -0
- package/dist/components/SelectInput/components/index.d.ts.map +1 -0
- package/dist/components/SelectInput/components/index.js +15 -0
- package/dist/components/SelectInput/index.d.ts.map +1 -1
- package/dist/components/SelectInput/index.js +4 -4
- package/dist/components/SelectInput/reducerFonctions.d.ts +28 -0
- package/dist/components/SelectInput/reducerFonctions.d.ts.map +1 -0
- package/dist/components/SelectInput/reducerFonctions.js +76 -0
- package/dist/components/SelectInput/styles.css.d.ts +4 -2
- package/dist/components/SelectInput/styles.css.d.ts.map +1 -1
- package/dist/components/SelectInput/styles.css.js +52 -50
- package/dist/components/SelectableCard/MultiStateInput.js +1 -1
- package/dist/components/SelectableCard/SelectableCard.js +5 -4
- package/dist/components/SelectableCardGroup/Context.d.ts +11 -0
- package/dist/components/SelectableCardGroup/Context.d.ts.map +1 -0
- package/dist/components/SelectableCardGroup/Context.js +13 -0
- package/dist/components/SelectableCardGroup/SingleCard.d.ts +5 -0
- package/dist/components/SelectableCardGroup/SingleCard.d.ts.map +1 -0
- package/dist/components/SelectableCardGroup/SingleCard.js +42 -0
- package/dist/components/SelectableCardGroup/index.d.ts +2 -4
- package/dist/components/SelectableCardGroup/index.d.ts.map +1 -1
- package/dist/components/SelectableCardGroup/index.js +6 -30
- package/dist/components/SelectableCardOptionGroup/components/Option.js +1 -1
- package/dist/components/Skeleton/Blocks.d.ts.map +1 -1
- package/dist/components/Skeleton/List.d.ts.map +1 -1
- package/dist/components/Skeleton/List.js +8 -9
- package/dist/components/Skeleton/Slider.d.ts.map +1 -1
- package/dist/components/Skeleton/index.js +1 -2
- package/dist/components/Slider/components/SingleSlider.d.ts.map +1 -1
- package/dist/components/Slider/components/SingleSlider.js +1 -1
- package/dist/components/Snippet/CodeContent.d.ts +14 -0
- package/dist/components/Snippet/CodeContent.d.ts.map +1 -0
- package/dist/components/Snippet/CodeContent.js +36 -0
- package/dist/components/Snippet/index.d.ts +1 -1
- package/dist/components/Snippet/index.d.ts.map +1 -1
- package/dist/components/Snippet/index.js +6 -22
- package/dist/components/Stack/index.js +2 -2
- package/dist/components/Stack/styles.css.js +2 -2
- package/dist/components/StepList/Item.d.ts +17 -0
- package/dist/components/StepList/Item.d.ts.map +1 -0
- package/dist/components/StepList/Item.js +32 -0
- package/dist/components/StepList/index.d.ts +12 -15
- package/dist/components/StepList/index.d.ts.map +1 -1
- package/dist/components/StepList/index.js +4 -19
- package/dist/components/Stepper/Bullet.d.ts +7 -0
- package/dist/components/Stepper/Bullet.d.ts.map +1 -0
- package/dist/components/Stepper/Bullet.js +42 -0
- package/dist/components/Stepper/Step.d.ts.map +1 -1
- package/dist/components/Stepper/Step.js +8 -24
- package/dist/components/Stepper/index.js +1 -1
- package/dist/components/Table/Cell.js +1 -1
- package/dist/components/Table/HeaderCell.d.ts.map +1 -1
- package/dist/components/Table/HeaderCell.js +6 -12
- package/dist/components/Table/SortIcon.d.ts +4 -0
- package/dist/components/Table/SortIcon.d.ts.map +1 -0
- package/dist/components/Table/SortIcon.js +19 -0
- package/dist/components/Table/TableContainer.d.ts +5 -0
- package/dist/components/Table/TableContainer.d.ts.map +1 -0
- package/dist/components/Table/TableContainer.js +31 -0
- package/dist/components/Table/TableContext.d.ts.map +1 -1
- package/dist/components/Table/TableContext.js +2 -2
- package/dist/components/Table/index.d.ts +6 -6
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +6 -22
- package/dist/components/Table/styles.css.js +0 -2
- package/dist/components/Tabs/Tab.js +2 -2
- package/dist/components/Tabs/TabMenu.js +2 -2
- package/dist/components/Tabs/TabMenuItem.js +2 -2
- package/dist/components/Tabs/index.js +2 -2
- package/dist/components/Tag/TagInner.d.ts +5 -0
- package/dist/components/Tag/TagInner.d.ts.map +1 -0
- package/dist/components/Tag/TagInner.js +48 -0
- package/dist/components/Tag/index.d.ts +1 -31
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Tag/index.js +7 -40
- package/dist/components/Tag/type.d.ts +31 -0
- package/dist/components/Tag/type.d.ts.map +1 -0
- package/dist/components/TagInput/index.js +1 -1
- package/dist/components/TagList/constant.d.ts +2 -0
- package/dist/components/TagList/constant.d.ts.map +1 -1
- package/dist/components/TagList/constant.js +3 -2
- package/dist/components/TagList/index.d.ts +1 -1
- package/dist/components/TagList/index.d.ts.map +1 -1
- package/dist/components/TagList/index.js +33 -27
- package/dist/components/TagList/styles.css.d.ts.map +1 -1
- package/dist/components/Text/index.js +1 -1
- package/dist/components/Text/style.css.js +0 -2
- package/dist/components/TextArea/Icon.d.ts +5 -0
- package/dist/components/TextArea/Icon.d.ts.map +1 -0
- package/dist/components/TextArea/Icon.js +19 -0
- package/dist/components/TextArea/Notice.d.ts +11 -0
- package/dist/components/TextArea/Notice.d.ts.map +1 -0
- package/dist/components/TextArea/Notice.js +41 -0
- package/dist/components/TextArea/constant.d.ts +2 -0
- package/dist/components/TextArea/constant.d.ts.map +1 -0
- package/dist/components/TextArea/constant.js +11 -0
- package/dist/components/TextArea/index.d.ts.map +1 -1
- package/dist/components/TextArea/index.js +29 -48
- package/dist/components/TextInput/BottomText.d.ts +3 -0
- package/dist/components/TextInput/BottomText.d.ts.map +1 -0
- package/dist/components/TextInput/BottomText.js +29 -0
- package/dist/components/TextInput/PrefixSuffix.d.ts +7 -0
- package/dist/components/TextInput/PrefixSuffix.d.ts.map +1 -0
- package/dist/components/TextInput/PrefixSuffix.js +30 -0
- package/dist/components/TextInput/RightIcon.d.ts +10 -0
- package/dist/components/TextInput/RightIcon.d.ts.map +1 -0
- package/dist/components/TextInput/RightIcon.js +62 -0
- package/dist/components/TextInput/ShowHidePassword.d.ts +7 -0
- package/dist/components/TextInput/ShowHidePassword.d.ts.map +1 -0
- package/dist/components/TextInput/ShowHidePassword.js +36 -0
- package/dist/components/TextInput/index.d.ts +5 -6
- package/dist/components/TextInput/index.d.ts.map +1 -1
- package/dist/components/TextInput/index.js +46 -106
- package/dist/components/TextInput/type.d.ts +25 -0
- package/dist/components/TextInput/type.d.ts.map +1 -0
- package/dist/components/TimeInput/RightIcon.d.ts +9 -0
- package/dist/components/TimeInput/RightIcon.d.ts.map +1 -0
- package/dist/components/TimeInput/RightIcon.js +36 -0
- package/dist/components/TimeInput/index.d.ts.map +1 -1
- package/dist/components/TimeInput/index.js +17 -29
- package/dist/components/Toaster/Toaster.js +1 -1
- package/dist/components/ToggleGroup/Context.d.ts +9 -0
- package/dist/components/ToggleGroup/Context.d.ts.map +1 -0
- package/dist/components/ToggleGroup/Context.js +13 -0
- package/dist/components/ToggleGroup/SingleToggle.d.ts +11 -0
- package/dist/components/ToggleGroup/SingleToggle.d.ts.map +1 -0
- package/dist/components/ToggleGroup/SingleToggle.js +37 -0
- package/dist/components/ToggleGroup/index.d.ts +2 -9
- package/dist/components/ToggleGroup/index.d.ts.map +1 -1
- package/dist/components/ToggleGroup/index.js +6 -25
- package/dist/components/TreeMapChart/index.js +1 -1
- package/dist/components/VerificationCode/index.js +2 -3
- package/dist/components/compositions/CodeEditor/components/CopyButton.d.ts +5 -0
- package/dist/components/compositions/CodeEditor/components/CopyButton.d.ts.map +1 -0
- package/dist/components/compositions/CodeEditor/components/CopyButton.js +24 -0
- package/dist/components/compositions/CodeEditor/components/Expandable.d.ts +8 -0
- package/dist/components/compositions/CodeEditor/components/Expandable.d.ts.map +1 -0
- package/dist/components/compositions/CodeEditor/components/Expandable.js +37 -0
- package/dist/components/compositions/CodeEditor/index.d.ts +4 -38
- package/dist/components/compositions/CodeEditor/index.d.ts.map +1 -1
- package/dist/components/compositions/CodeEditor/index.js +6 -33
- package/dist/components/compositions/CodeEditor/styles.css.js +2 -0
- package/dist/components/compositions/CodeEditor/type.d.ts +38 -0
- package/dist/components/compositions/CodeEditor/type.d.ts.map +1 -0
- package/dist/components/compositions/ContentCard/Content.d.ts +0 -10
- package/dist/components/compositions/ContentCard/Content.d.ts.map +1 -1
- package/dist/components/compositions/ContentCard/Content.js +2 -30
- package/dist/components/compositions/ContentCard/ImageContent.d.ts +7 -0
- package/dist/components/compositions/ContentCard/ImageContent.d.ts.map +1 -0
- package/dist/components/compositions/ContentCard/ImageContent.js +23 -0
- package/dist/components/compositions/ContentCard/LinkContent.d.ts +5 -0
- package/dist/components/compositions/ContentCard/LinkContent.d.ts.map +1 -0
- package/dist/components/compositions/ContentCard/LinkContent.js +30 -0
- package/dist/components/compositions/ContentCard/index.d.ts.map +1 -1
- package/dist/components/compositions/ContentCard/index.js +5 -1
- package/dist/components/compositions/ContentCardGroup/index.d.ts.map +1 -1
- package/dist/components/compositions/Conversation/components/Date.d.ts +6 -0
- package/dist/components/compositions/Conversation/components/Date.d.ts.map +1 -0
- package/dist/components/compositions/Conversation/components/Date.js +23 -0
- package/dist/components/compositions/Conversation/components/Message.d.ts +11 -0
- package/dist/components/compositions/Conversation/components/Message.d.ts.map +1 -0
- package/dist/components/compositions/Conversation/components/Message.js +28 -0
- package/dist/components/compositions/Conversation/components/MessageInfos.d.ts +7 -0
- package/dist/components/compositions/Conversation/components/MessageInfos.d.ts.map +1 -0
- package/dist/components/compositions/Conversation/components/MessageInfos.js +18 -0
- package/dist/components/compositions/Conversation/components/MessageTag.d.ts +6 -0
- package/dist/components/compositions/Conversation/components/MessageTag.d.ts.map +1 -0
- package/dist/components/compositions/Conversation/components/MessageTag.js +20 -0
- package/dist/components/compositions/Conversation/index.d.ts +7 -22
- package/dist/components/compositions/Conversation/index.d.ts.map +1 -1
- package/dist/components/compositions/Conversation/index.js +10 -41
- package/dist/components/compositions/EstimateCost/Components/Children.d.ts +3 -0
- package/dist/components/compositions/EstimateCost/Components/Children.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Components/Children.js +52 -0
- package/dist/components/compositions/EstimateCost/Components/{ContentComponents.d.ts → Description.d.ts} +2 -8
- package/dist/components/compositions/EstimateCost/Components/Description.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Components/Description.js +19 -0
- package/dist/components/compositions/EstimateCost/Components/Item.d.ts.map +1 -1
- package/dist/components/compositions/EstimateCost/Components/Item.js +1 -1
- package/dist/components/compositions/EstimateCost/Components/ItemLeftSide.js +1 -1
- package/dist/components/compositions/EstimateCost/Components/ItemPrice.d.ts.map +1 -1
- package/dist/components/compositions/EstimateCost/Components/LineThrough.js +2 -2
- package/dist/components/compositions/EstimateCost/Components/Title.d.ts +5 -0
- package/dist/components/compositions/EstimateCost/Components/Title.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Components/Title.js +23 -0
- package/dist/components/compositions/EstimateCost/Components/Total.d.ts +3 -0
- package/dist/components/compositions/EstimateCost/Components/Total.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Components/{ContentComponents.js → Total.js} +6 -54
- package/dist/components/compositions/EstimateCost/Components/Unit.js +1 -1
- package/dist/components/compositions/EstimateCost/Components/components.css.js +2 -3
- package/dist/components/compositions/EstimateCost/Ellipsis.d.ts +7 -0
- package/dist/components/compositions/EstimateCost/Ellipsis.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Ellipsis.js +37 -0
- package/dist/components/compositions/EstimateCost/EstimateCostContent.d.ts.map +1 -1
- package/dist/components/compositions/EstimateCost/EstimateCostContent.js +8 -4
- package/dist/components/compositions/EstimateCost/EstimateCostProvider.js +1 -1
- package/dist/components/compositions/EstimateCost/Image.d.ts +2 -0
- package/dist/components/compositions/EstimateCost/Image.d.ts.map +1 -0
- package/dist/components/compositions/EstimateCost/Image.js +21 -0
- package/dist/components/compositions/EstimateCost/index.d.ts +10 -11
- package/dist/components/compositions/EstimateCost/index.d.ts.map +1 -1
- package/dist/components/compositions/EstimateCost/index.js +5 -35
- package/dist/components/compositions/EstimateCost/types.d.ts +1 -1
- package/dist/components/compositions/EstimateCost/types.d.ts.map +1 -1
- package/dist/components/compositions/InfoTable/components/Cell.d.ts.map +1 -1
- package/dist/components/compositions/InfoTable/components/Cell.js +2 -1
- package/dist/components/compositions/InfoTable/components/Row.js +1 -1
- package/dist/components/compositions/InfoTable/styles.css.d.ts +1 -0
- package/dist/components/compositions/InfoTable/styles.css.d.ts.map +1 -1
- package/dist/components/compositions/InfoTable/styles.css.js +2 -1
- package/dist/components/compositions/Navigation/NavigationProvider.js +1 -1
- package/dist/components/compositions/Navigation/components/Group.js +1 -1
- package/dist/components/compositions/Navigation/components/Item/Badge.d.ts +5 -0
- package/dist/components/compositions/Navigation/components/Item/Badge.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/Item/Badge.js +23 -0
- package/dist/components/compositions/Navigation/components/Item/Children.d.ts +5 -0
- package/dist/components/compositions/Navigation/components/Item/Children.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/Item/Children.js +39 -0
- package/dist/components/compositions/Navigation/components/Item/Content.d.ts +3 -0
- package/dist/components/compositions/Navigation/components/Item/Content.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/Item/Content.js +80 -0
- package/dist/components/compositions/Navigation/components/{Item.d.ts → Item/Item.d.ts} +2 -2
- package/dist/components/compositions/Navigation/components/Item/Item.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/{Item.js → Item/Item.js} +35 -8
- package/dist/components/compositions/Navigation/components/{ItemExpanded.d.ts → Item/ItemExpanded.d.ts} +1 -1
- package/dist/components/compositions/Navigation/components/Item/ItemExpanded.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/{ItemExpanded.js → Item/ItemExpanded.js} +16 -92
- package/dist/components/compositions/Navigation/components/Item/ItemProvider.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/{ItemProvider.js → Item/ItemProvider.js} +2 -2
- package/dist/components/compositions/Navigation/components/{ItemFragments.d.ts → Item/PinnedButton.d.ts} +2 -5
- package/dist/components/compositions/Navigation/components/Item/PinnedButton.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/{ItemFragments.js → Item/PinnedButton.js} +9 -19
- package/dist/components/compositions/Navigation/components/Menu/Menu.d.ts +3 -0
- package/dist/components/compositions/Navigation/components/Menu/Menu.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/Menu/Menu.js +73 -0
- package/dist/components/compositions/Navigation/components/{ItemMenu.d.ts → Menu/MenuItem.d.ts} +2 -3
- package/dist/components/compositions/Navigation/components/Menu/MenuItem.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/{ItemMenu.js → Menu/MenuItem.js} +16 -65
- package/dist/components/compositions/Navigation/components/Menu/NestedMenu.d.ts +3 -0
- package/dist/components/compositions/Navigation/components/Menu/NestedMenu.d.ts.map +1 -0
- package/dist/components/compositions/Navigation/components/Menu/NestedMenu.js +51 -0
- package/dist/components/compositions/Navigation/components/PinnedItems.d.ts.map +1 -1
- package/dist/components/compositions/Navigation/components/PinnedItems.js +2 -2
- package/dist/components/compositions/Navigation/components/ShowHide.d.ts.map +1 -1
- package/dist/components/compositions/Navigation/index.js +1 -1
- package/dist/components/compositions/OfferList/components/Row.d.ts +1 -1
- package/dist/components/compositions/OfferList/components/Row.d.ts.map +1 -1
- package/dist/components/compositions/OfferList/components/Row.js +13 -47
- package/dist/components/compositions/OfferList/components/SelectableCell.d.ts +21 -0
- package/dist/components/compositions/OfferList/components/SelectableCell.d.ts.map +1 -0
- package/dist/components/compositions/OfferList/components/SelectableCell.js +71 -0
- package/dist/components/compositions/OfferList/index.d.ts.map +1 -1
- package/dist/components/compositions/OptionSelector/styles.css.js +178 -2
- package/dist/components/compositions/OrderSummary/ScrollableContent.d.ts.map +1 -1
- package/dist/components/compositions/OrderSummary/ScrollableContent.js +6 -221
- package/dist/components/compositions/OrderSummary/components/Category.d.ts +5 -0
- package/dist/components/compositions/OrderSummary/components/Category.d.ts.map +1 -0
- package/dist/components/compositions/OrderSummary/components/Category.js +125 -0
- package/dist/components/compositions/OrderSummary/components/SubCategory.d.ts +5 -0
- package/dist/components/compositions/OrderSummary/components/SubCategory.d.ts.map +1 -0
- package/dist/components/compositions/OrderSummary/components/SubCategory.js +104 -0
- package/dist/components/compositions/OrderSummary/components/SubCategoryPrice.d.ts +5 -0
- package/dist/components/compositions/OrderSummary/components/SubCategoryPrice.d.ts.map +1 -0
- package/dist/components/compositions/OrderSummary/components/SubCategoryPrice.js +50 -0
- package/dist/components/compositions/OrderSummary/helpers.js +1 -1
- package/dist/components/compositions/OrderSummary/index.d.ts +4 -0
- package/dist/components/compositions/OrderSummary/index.d.ts.map +1 -1
- package/dist/components/compositions/Plans/index.d.ts +3 -0
- package/dist/components/compositions/Plans/index.d.ts.map +1 -1
- package/dist/components/compositions/SteppedListCard/styles.css.js +0 -2
- package/dist/components/index.js +5 -4
- package/dist/components/styles.js +20 -20
- package/dist/helpers/legend.d.ts +15 -15
- package/dist/helpers/nivoTheme.d.ts +15 -15
- package/dist/helpers/treeMap.d.ts +15 -15
- package/dist/index.js +9 -8
- package/dist/theme/ThemeProvider.d.ts +15 -15
- package/dist/theme/index.d.ts +42 -42
- package/dist/ui.css +1 -1
- package/package.json +12 -6
- package/dist/components/SelectInput/components/Dropdown.d.ts.map +0 -1
- package/dist/components/SelectInput/components/Dropdown.js +0 -741
- package/dist/components/SelectInput/components/DropdownOption.d.ts.map +0 -1
- package/dist/components/SelectInput/components/DropdownOption.js +0 -163
- package/dist/components/SelectInput/components/SearchBarDropdown.d.ts +0 -10
- package/dist/components/SelectInput/components/SearchBarDropdown.d.ts.map +0 -1
- package/dist/components/SelectInput/components/SelectBar.d.ts.map +0 -1
- package/dist/components/SelectInput/components/dropdown.css.d.ts.map +0 -1
- package/dist/components/SelectInput/components/dropdown.css.ts.vanilla.js +0 -8
- package/dist/components/SelectInput/components/selectBar.css.d.ts.map +0 -1
- package/dist/components/SelectInput/components/selectBar.css.ts.vanilla.js +0 -8
- package/dist/components/compositions/EstimateCost/Components/ContentComponents.d.ts.map +0 -1
- package/dist/components/compositions/Navigation/components/Item.d.ts.map +0 -1
- package/dist/components/compositions/Navigation/components/ItemExpanded.d.ts.map +0 -1
- package/dist/components/compositions/Navigation/components/ItemFragments.d.ts.map +0 -1
- package/dist/components/compositions/Navigation/components/ItemMenu.d.ts.map +0 -1
- package/dist/components/compositions/Navigation/components/ItemProvider.d.ts.map +0 -1
- /package/dist/components/SelectInput/components/{SelectBar.d.ts → SelectBar/SelectBar.d.ts} +0 -0
- /package/dist/components/SelectInput/components/{selectBar.css.d.ts → SelectBar/selectBar.css.d.ts} +0 -0
- /package/dist/components/compositions/Navigation/components/{ItemProvider.d.ts → Item/ItemProvider.d.ts} +0 -0
|
@@ -1,235 +1,20 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
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
3
|
import { OrderSummaryContext, init_Provider } from "./Provider.js";
|
|
6
|
-
import { DisplayPrice, calculateSubCategoryPrice, formatNumber, init_helpers } from "./helpers.js";
|
|
7
4
|
import { init_styles_css, orderSummaryStyle } from "./styles.css.js";
|
|
5
|
+
import { CategoryName, init_Category } from "./components/Category.js";
|
|
6
|
+
import { SubCategory, init_SubCategory } from "./components/SubCategory.js";
|
|
8
7
|
import { useContext } from "react";
|
|
9
|
-
import {
|
|
10
|
-
import { AttachIcon } from "@ultraviolet/icons/AttachIcon";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
9
|
|
|
12
10
|
//#region src/components/compositions/OrderSummary/ScrollableContent.tsx
|
|
13
|
-
var
|
|
11
|
+
var ScrollableContent;
|
|
14
12
|
var init_ScrollableContent = __esmMin(() => {
|
|
15
|
-
init_NumberInput();
|
|
16
13
|
init_Stack();
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
init_Category();
|
|
15
|
+
init_SubCategory();
|
|
19
16
|
init_Provider();
|
|
20
17
|
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, {
|
|
26
|
-
as: "span",
|
|
27
|
-
prominence: "strong",
|
|
28
|
-
sentiment: "neutral",
|
|
29
|
-
variant: "bodySmallStrong",
|
|
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}` : ""]
|
|
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, {
|
|
36
|
-
as: "span",
|
|
37
|
-
prominence: "weak",
|
|
38
|
-
sentiment: "neutral",
|
|
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, {
|
|
43
|
-
as: "span",
|
|
44
|
-
prominence: "strong",
|
|
45
|
-
sentiment: "neutral",
|
|
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, {
|
|
62
|
-
alignItems: "center",
|
|
63
|
-
direction: "row",
|
|
64
|
-
justifyContent: "space-between",
|
|
65
|
-
children: [
|
|
66
|
-
category.additionalInfo ? /* @__PURE__ */ jsxs(Stack, {
|
|
67
|
-
alignItems: "center",
|
|
68
|
-
direction: "row",
|
|
69
|
-
gap: 1,
|
|
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
|
-
})]
|
|
90
|
-
}) : /* @__PURE__ */ jsx(Text, {
|
|
91
|
-
as: "span",
|
|
92
|
-
prominence: "strong",
|
|
93
|
-
sentiment: "neutral",
|
|
94
|
-
variant: "bodyStrong",
|
|
95
|
-
children: category.anchor ? /* @__PURE__ */ jsxs("a", {
|
|
96
|
-
className: orderSummaryStyle.anchor,
|
|
97
|
-
href: category.anchor,
|
|
98
|
-
children: [/* @__PURE__ */ jsx(AttachIcon, {
|
|
99
|
-
className: orderSummaryStyle.anchorIcon({ size: "medium" }),
|
|
100
|
-
sentiment: "info"
|
|
101
|
-
}), category.category]
|
|
102
|
-
}) : category.category
|
|
103
|
-
}),
|
|
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, {
|
|
114
|
-
as: "span",
|
|
115
|
-
prominence: "strong",
|
|
116
|
-
sentiment: "neutral",
|
|
117
|
-
variant: "bodyStrong",
|
|
118
|
-
children: /* @__PURE__ */ jsx(DisplayPrice, {
|
|
119
|
-
beforeOrAfter: "after",
|
|
120
|
-
price: categoryPrice
|
|
121
|
-
})
|
|
122
|
-
}) : null,
|
|
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
|
|
148
|
-
]
|
|
149
|
-
}) : null;
|
|
150
|
-
};
|
|
151
|
-
SubCategory = ({ subCategory }) => {
|
|
152
|
-
var _subCategory$details;
|
|
153
|
-
return /* @__PURE__ */ jsxs(Stack, {
|
|
154
|
-
direction: "column",
|
|
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,
|
|
222
|
-
direction: "column",
|
|
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
18
|
ScrollableContent = () => {
|
|
234
19
|
const { items } = useContext(OrderSummaryContext);
|
|
235
20
|
return /* @__PURE__ */ jsx(Stack, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Category.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/OrderSummary/components/Category.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAEzC,eAAO,MAAM,YAAY;;oDAwGxB,CAAA"}
|
|
@@ -0,0 +1,125 @@
|
|
|
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, init_helpers } from "../helpers.js";
|
|
7
|
+
import { init_styles_css, orderSummaryStyle } from "../styles.css.js";
|
|
8
|
+
import { useContext } from "react";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { AttachIcon } from "@ultraviolet/icons/AttachIcon";
|
|
11
|
+
|
|
12
|
+
//#region src/components/compositions/OrderSummary/components/Category.tsx
|
|
13
|
+
var CategoryName;
|
|
14
|
+
var init_Category = __esmMin(() => {
|
|
15
|
+
init_NumberInput();
|
|
16
|
+
init_Stack();
|
|
17
|
+
init_Text();
|
|
18
|
+
init_helpers();
|
|
19
|
+
init_Provider();
|
|
20
|
+
init_styles_css();
|
|
21
|
+
CategoryName = ({ category }) => {
|
|
22
|
+
var _categoriesPrice$cate;
|
|
23
|
+
const { categoriesPrice } = useContext(OrderSummaryContext);
|
|
24
|
+
const categoryPrice = (_categoriesPrice$cate = categoriesPrice[category.category]) !== null && _categoriesPrice$cate !== void 0 ? _categoriesPrice$cate : {
|
|
25
|
+
maxPrice: 0,
|
|
26
|
+
maxPriceWithDiscount: 0,
|
|
27
|
+
timeUnit: "hours",
|
|
28
|
+
totalPrice: 0,
|
|
29
|
+
totalPriceWithDiscount: 0
|
|
30
|
+
};
|
|
31
|
+
return category.category ? /* @__PURE__ */ jsxs(Stack, {
|
|
32
|
+
alignItems: "center",
|
|
33
|
+
direction: "row",
|
|
34
|
+
justifyContent: "space-between",
|
|
35
|
+
children: [
|
|
36
|
+
category.additionalInfo ? /* @__PURE__ */ jsxs(Stack, {
|
|
37
|
+
alignItems: "center",
|
|
38
|
+
direction: "row",
|
|
39
|
+
gap: 1,
|
|
40
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
41
|
+
as: "span",
|
|
42
|
+
prominence: "strong",
|
|
43
|
+
sentiment: "neutral",
|
|
44
|
+
variant: "bodyStrong",
|
|
45
|
+
children: category.anchor ? /* @__PURE__ */ jsxs("a", {
|
|
46
|
+
className: orderSummaryStyle.anchor,
|
|
47
|
+
href: category.anchor,
|
|
48
|
+
children: [/* @__PURE__ */ jsx(AttachIcon, {
|
|
49
|
+
className: orderSummaryStyle.anchorIcon({ size: "medium" }),
|
|
50
|
+
sentiment: "info"
|
|
51
|
+
}), category.category]
|
|
52
|
+
}) : category.category
|
|
53
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
54
|
+
as: "span",
|
|
55
|
+
italic: true,
|
|
56
|
+
sentiment: "primary",
|
|
57
|
+
variant: "bodySmall",
|
|
58
|
+
children: category.additionalInfo
|
|
59
|
+
})]
|
|
60
|
+
}) : /* @__PURE__ */ jsx(Text, {
|
|
61
|
+
as: "span",
|
|
62
|
+
prominence: "strong",
|
|
63
|
+
sentiment: "neutral",
|
|
64
|
+
variant: "bodyStrong",
|
|
65
|
+
children: category.anchor ? /* @__PURE__ */ jsxs("a", {
|
|
66
|
+
className: orderSummaryStyle.anchor,
|
|
67
|
+
href: category.anchor,
|
|
68
|
+
children: [/* @__PURE__ */ jsx(AttachIcon, {
|
|
69
|
+
className: orderSummaryStyle.anchorIcon({ size: "medium" }),
|
|
70
|
+
sentiment: "info"
|
|
71
|
+
}), category.category]
|
|
72
|
+
}) : category.category
|
|
73
|
+
}),
|
|
74
|
+
category.customContent,
|
|
75
|
+
category.numberInput ? /* @__PURE__ */ jsx(NumberInput, {
|
|
76
|
+
className: orderSummaryStyle.numberInput,
|
|
77
|
+
controls: category.numberInputControls,
|
|
78
|
+
onChange: category.onChangeInput,
|
|
79
|
+
size: "small",
|
|
80
|
+
unit: category.numberInputUnit,
|
|
81
|
+
value: category.numberInputValue
|
|
82
|
+
}) : null,
|
|
83
|
+
!(category.customContent || category.numberInput) && categoryPrice.totalPrice === categoryPrice.totalPriceWithDiscount ? /* @__PURE__ */ jsx(Text, {
|
|
84
|
+
as: "span",
|
|
85
|
+
prominence: "strong",
|
|
86
|
+
sentiment: "neutral",
|
|
87
|
+
variant: "bodyStrong",
|
|
88
|
+
children: /* @__PURE__ */ jsx(DisplayPrice, {
|
|
89
|
+
beforeOrAfter: "after",
|
|
90
|
+
price: categoryPrice
|
|
91
|
+
})
|
|
92
|
+
}) : null,
|
|
93
|
+
!(category.customContent || category.numberInput) && categoryPrice.totalPrice !== categoryPrice.totalPriceWithDiscount ? /* @__PURE__ */ jsxs(Stack, {
|
|
94
|
+
alignItems: "center",
|
|
95
|
+
direction: "row",
|
|
96
|
+
gap: 1,
|
|
97
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
98
|
+
as: "span",
|
|
99
|
+
prominence: "weak",
|
|
100
|
+
sentiment: "neutral",
|
|
101
|
+
strikeThrough: true,
|
|
102
|
+
variant: "bodySmallStrong",
|
|
103
|
+
children: /* @__PURE__ */ jsx(DisplayPrice, {
|
|
104
|
+
beforeOrAfter: "before",
|
|
105
|
+
price: categoryPrice
|
|
106
|
+
})
|
|
107
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
108
|
+
as: "span",
|
|
109
|
+
prominence: "strong",
|
|
110
|
+
sentiment: "neutral",
|
|
111
|
+
variant: "bodyStrong",
|
|
112
|
+
children: /* @__PURE__ */ jsx(DisplayPrice, {
|
|
113
|
+
beforeOrAfter: "after",
|
|
114
|
+
price: categoryPrice
|
|
115
|
+
})
|
|
116
|
+
})]
|
|
117
|
+
}) : null
|
|
118
|
+
]
|
|
119
|
+
}) : null;
|
|
120
|
+
};
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
//#endregion
|
|
124
|
+
init_Category();
|
|
125
|
+
export { CategoryName, init_Category };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubCategory.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/OrderSummary/components/SubCategory.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE/C,eAAO,MAAM,WAAW;;6CA0FvB,CAAA"}
|
|
@@ -0,0 +1,104 @@
|
|
|
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 { init_styles_css, orderSummaryStyle } from "../styles.css.js";
|
|
6
|
+
import { SubCategoryPrice, init_SubCategoryPrice } from "./SubCategoryPrice.js";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { AttachIcon } from "@ultraviolet/icons/AttachIcon";
|
|
9
|
+
|
|
10
|
+
//#region src/components/compositions/OrderSummary/components/SubCategory.tsx
|
|
11
|
+
var SubCategory;
|
|
12
|
+
var init_SubCategory = __esmMin(() => {
|
|
13
|
+
init_NumberInput();
|
|
14
|
+
init_Stack();
|
|
15
|
+
init_Text();
|
|
16
|
+
init_styles_css();
|
|
17
|
+
init_SubCategoryPrice();
|
|
18
|
+
SubCategory = ({ subCategory }) => {
|
|
19
|
+
var _subCategory$details;
|
|
20
|
+
return /* @__PURE__ */ jsxs(Stack, {
|
|
21
|
+
direction: "column",
|
|
22
|
+
gap: 1,
|
|
23
|
+
children: [/* @__PURE__ */ jsxs(Stack, {
|
|
24
|
+
alignItems: "center",
|
|
25
|
+
direction: "row",
|
|
26
|
+
justifyContent: "space-between",
|
|
27
|
+
children: [
|
|
28
|
+
subCategory.additionalInfo || subCategory.icon ? /* @__PURE__ */ jsxs(Stack, {
|
|
29
|
+
alignItems: "center",
|
|
30
|
+
direction: "row",
|
|
31
|
+
gap: 1,
|
|
32
|
+
children: [
|
|
33
|
+
subCategory.icon,
|
|
34
|
+
/* @__PURE__ */ jsx(Text, {
|
|
35
|
+
as: "span",
|
|
36
|
+
prominence: "strong",
|
|
37
|
+
sentiment: "neutral",
|
|
38
|
+
variant: "bodySmallStrong",
|
|
39
|
+
children: subCategory.anchor ? /* @__PURE__ */ jsxs("a", {
|
|
40
|
+
className: orderSummaryStyle.anchor,
|
|
41
|
+
href: subCategory.anchor,
|
|
42
|
+
children: [/* @__PURE__ */ jsx(AttachIcon, {
|
|
43
|
+
className: orderSummaryStyle.anchorIcon({ size: "small" }),
|
|
44
|
+
sentiment: "info"
|
|
45
|
+
}), subCategory.title]
|
|
46
|
+
}) : subCategory.title
|
|
47
|
+
}),
|
|
48
|
+
/* @__PURE__ */ jsx(Text, {
|
|
49
|
+
as: "span",
|
|
50
|
+
italic: true,
|
|
51
|
+
sentiment: "primary",
|
|
52
|
+
variant: "bodySmall",
|
|
53
|
+
children: subCategory.additionalInfo
|
|
54
|
+
})
|
|
55
|
+
]
|
|
56
|
+
}) : /* @__PURE__ */ jsx(Text, {
|
|
57
|
+
as: "span",
|
|
58
|
+
prominence: "strong",
|
|
59
|
+
sentiment: "neutral",
|
|
60
|
+
variant: "bodySmallStrong",
|
|
61
|
+
children: subCategory.anchor ? /* @__PURE__ */ jsxs("a", {
|
|
62
|
+
className: orderSummaryStyle.anchor,
|
|
63
|
+
href: subCategory.anchor,
|
|
64
|
+
children: [/* @__PURE__ */ jsx(AttachIcon, {
|
|
65
|
+
className: orderSummaryStyle.anchorIcon({ size: "small" }),
|
|
66
|
+
sentiment: "info"
|
|
67
|
+
}), subCategory.title]
|
|
68
|
+
}) : subCategory.title
|
|
69
|
+
}),
|
|
70
|
+
subCategory.customContent ? /* @__PURE__ */ jsx(Text, {
|
|
71
|
+
as: "span",
|
|
72
|
+
prominence: "strong",
|
|
73
|
+
sentiment: "neutral",
|
|
74
|
+
variant: "bodySmallStrong",
|
|
75
|
+
children: subCategory.customContent
|
|
76
|
+
}) : null,
|
|
77
|
+
subCategory.numberInput ? /* @__PURE__ */ jsx(NumberInput, {
|
|
78
|
+
className: orderSummaryStyle.numberInput,
|
|
79
|
+
controls: subCategory.numberInputControls,
|
|
80
|
+
onChange: subCategory.onChangeInput,
|
|
81
|
+
size: "small",
|
|
82
|
+
unit: subCategory.numberInputUnit,
|
|
83
|
+
value: subCategory.numberInputValue
|
|
84
|
+
}) : null,
|
|
85
|
+
/* @__PURE__ */ jsx(SubCategoryPrice, { subCategory })
|
|
86
|
+
]
|
|
87
|
+
}), /* @__PURE__ */ jsx(Stack, {
|
|
88
|
+
className: orderSummaryStyle.details,
|
|
89
|
+
direction: "column",
|
|
90
|
+
gap: .5,
|
|
91
|
+
children: (_subCategory$details = subCategory.details) === null || _subCategory$details === void 0 ? void 0 : _subCategory$details.map((detail, index) => detail ? /* @__PURE__ */ jsx(Text, {
|
|
92
|
+
as: "span",
|
|
93
|
+
sentiment: "neutral",
|
|
94
|
+
variant: "bodySmall",
|
|
95
|
+
children: detail
|
|
96
|
+
}, `${subCategory.title}-${index}`) : null)
|
|
97
|
+
})]
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
//#endregion
|
|
103
|
+
init_SubCategory();
|
|
104
|
+
export { SubCategory, init_SubCategory };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubCategoryPrice.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/OrderSummary/components/SubCategoryPrice.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE/C,eAAO,MAAM,gBAAgB;;6CA4H5B,CAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { OrderSummaryContext, init_Provider } from "../Provider.js";
|
|
5
|
+
import { calculateSubCategoryPrice, formatNumber, init_helpers } from "../helpers.js";
|
|
6
|
+
import { useContext } from "react";
|
|
7
|
+
import { Fragment as Fragment$1, jsxs } from "react/jsx-runtime";
|
|
8
|
+
|
|
9
|
+
//#region src/components/compositions/OrderSummary/components/SubCategoryPrice.tsx
|
|
10
|
+
var SubCategoryPrice;
|
|
11
|
+
var init_SubCategoryPrice = __esmMin(() => {
|
|
12
|
+
init_Stack();
|
|
13
|
+
init_Text();
|
|
14
|
+
init_helpers();
|
|
15
|
+
init_Provider();
|
|
16
|
+
SubCategoryPrice = ({ subCategory }) => {
|
|
17
|
+
const { currency, localeFormat, hideTimeUnit, timePeriodAmount, timePeriodUnit, fractionDigits } = useContext(OrderSummaryContext);
|
|
18
|
+
const subCategoryPrice = calculateSubCategoryPrice(subCategory, hideTimeUnit, timePeriodAmount, timePeriodUnit);
|
|
19
|
+
const getCorrectPrice = (variant, index) => subCategory.priceUnit ? subCategory.price : subCategoryPrice[variant][index];
|
|
20
|
+
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, {
|
|
21
|
+
as: "span",
|
|
22
|
+
prominence: "strong",
|
|
23
|
+
sentiment: "neutral",
|
|
24
|
+
variant: "bodySmallStrong",
|
|
25
|
+
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}` : ""]
|
|
26
|
+
}) : null, subCategory.price !== void 0 && !subCategory.hidePrice && (subCategoryPrice.default[0] !== subCategoryPrice.discounted[0] || subCategoryPrice.default[1] !== subCategoryPrice.discounted[1]) ? /* @__PURE__ */ jsxs(Stack, {
|
|
27
|
+
alignItems: "center",
|
|
28
|
+
direction: "row",
|
|
29
|
+
gap: 1,
|
|
30
|
+
children: [/* @__PURE__ */ jsxs(Text, {
|
|
31
|
+
as: "span",
|
|
32
|
+
prominence: "weak",
|
|
33
|
+
sentiment: "neutral",
|
|
34
|
+
strikeThrough: true,
|
|
35
|
+
variant: "bodySmallStrong",
|
|
36
|
+
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}` : ""]
|
|
37
|
+
}), /* @__PURE__ */ jsxs(Text, {
|
|
38
|
+
as: "span",
|
|
39
|
+
prominence: "strong",
|
|
40
|
+
sentiment: "neutral",
|
|
41
|
+
variant: "bodySmallStrong",
|
|
42
|
+
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}` : ""]
|
|
43
|
+
})]
|
|
44
|
+
}) : null] });
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
//#endregion
|
|
49
|
+
init_SubCategoryPrice();
|
|
50
|
+
export { SubCategoryPrice, init_SubCategoryPrice };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { _objectSpread2, init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import { _objectSpread2, init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
|
|
3
3
|
import { init_constants, multiplier } from "./constants.js";
|
|
4
4
|
import { OrderSummaryContext, init_Provider } from "./Provider.js";
|
|
5
5
|
import { useContext } from "react";
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import type { OrderSummaryProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Key interface element that provides users with a comprehensive
|
|
4
|
+
* view of their selected configurations, costs, and any applied discounts.
|
|
5
|
+
*/
|
|
2
6
|
export declare const OrderSummary: ({ header, hideTimeUnit, periodOptions, valueUnitInput, unitUnitInput, items, locales, currency, localeFormat, footer, children, discount, totalPriceInfo, fractionDigits, hideDetails, onChange, onChangeUnitInput, totalPriceDescription, additionalInfo, className, totalPriceInfoPlacement, hideBeforePrice, 'data-testid': dataTestId, style, priceInformation, }: OrderSummaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/OrderSummary/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,iBAAiB,EAAY,MAAM,SAAS,CAAA;AAE1D,eAAO,MAAM,YAAY,uaAwLxB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/OrderSummary/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,iBAAiB,EAAY,MAAM,SAAS,CAAA;AAE1D;;;GAGG;AACH,eAAO,MAAM,YAAY,uaAwLxB,CAAA"}
|
|
@@ -17,6 +17,9 @@ type PlansProps<T extends string> = {
|
|
|
17
17
|
content: string;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* Allows users to compare different offers, providing varying features and pricing options to suit different needs.
|
|
22
|
+
*/
|
|
20
23
|
export declare const Plans: <T extends string>({ fieldName, onChange, value, features, plans, hideFeatureText, hideLabels, locales, style, highlight, }: PlansProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
21
24
|
export {};
|
|
22
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/Plans/index.tsx"],"names":[],"mappings":"AASA,OAAO,YAAY,MAAM,cAAc,CAAA;AAIvC,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE1C,KAAK,UAAU,CAAC,CAAC,SAAS,MAAM,IAAI;IAClC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAA;IACrD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAA;IACtB,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAA;IACpB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,OAAO,YAAY,EAAE,MAAM,CAAC,CAAA;IACnD,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,sFAAsF;IACtF,SAAS,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAA;CAC9C,CAAA;AAED,eAAO,MAAM,KAAK,GAAI,CAAC,oLAuOtB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/Plans/index.tsx"],"names":[],"mappings":"AASA,OAAO,YAAY,MAAM,cAAc,CAAA;AAIvC,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE1C,KAAK,UAAU,CAAC,CAAC,SAAS,MAAM,IAAI;IAClC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAA;IACrD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAA;IACtB,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAA;IACpB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,OAAO,YAAY,EAAE,MAAM,CAAC,CAAA;IACnD,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,sFAAsF;IACtF,SAAS,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAA;CAC9C,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,KAAK,GAAI,CAAC,oLAuOtB,CAAA"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { __esmMin } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { init_themes_css_js_vanilla } from "../../../themes/dist/vanilla/themes.css.js.vanilla.js";
|
|
3
2
|
import { init_styles_css_ts_vanilla } from "./styles.css.ts.vanilla.js";
|
|
4
3
|
|
|
5
4
|
//#region src/components/compositions/SteppedListCard/styles.css.ts
|
|
6
5
|
var steppedListCardStyle;
|
|
7
6
|
var init_styles_css = __esmMin(() => {
|
|
8
|
-
init_themes_css_js_vanilla();
|
|
9
7
|
init_styles_css_ts_vanilla();
|
|
10
8
|
steppedListCardStyle = {
|
|
11
9
|
steppedListCard: "uv_11c7zuq0",
|
package/dist/components/index.js
CHANGED
|
@@ -3,8 +3,6 @@ import { Stack, init_Stack } from "./Stack/index.js";
|
|
|
3
3
|
import { Popup, init_Popup } from "./Popup/index.js";
|
|
4
4
|
import { Tooltip, init_Tooltip } from "./Tooltip/index.js";
|
|
5
5
|
import { Text, init_Text } from "./Text/index.js";
|
|
6
|
-
import { Expandable, init_Expandable } from "./Expandable/index.js";
|
|
7
|
-
import { Badge, init_Badge } from "./Badge/index.js";
|
|
8
6
|
import { Loader, init_Loader } from "./Loader/index.js";
|
|
9
7
|
import { Button, init_Button } from "./Button/index.js";
|
|
10
8
|
import { Label, init_Label } from "./Label/index.js";
|
|
@@ -12,12 +10,14 @@ import { TextInput, init_TextInput } from "./TextInput/index.js";
|
|
|
12
10
|
import { Key, init_Key } from "./Key/index.js";
|
|
13
11
|
import { SearchInput, init_SearchInput } from "./SearchInput/index.js";
|
|
14
12
|
import { Menu, init_Menu } from "./Menu/index.js";
|
|
13
|
+
import { Badge, init_Badge } from "./Badge/index.js";
|
|
14
|
+
import { Expandable, init_Expandable } from "./Expandable/index.js";
|
|
15
15
|
import { Separator, init_Separator } from "./Separator/index.js";
|
|
16
16
|
import { Row, init_Row } from "./Row/index.js";
|
|
17
17
|
import { NumberInput, init_NumberInput } from "./NumberInput/index.js";
|
|
18
18
|
import { Alert, init_Alert } from "./Alert/index.js";
|
|
19
|
-
import { Checkbox, init_Checkbox } from "./Checkbox/index.js";
|
|
20
19
|
import { Skeleton, init_Skeleton } from "./Skeleton/index.js";
|
|
20
|
+
import { Checkbox, init_Checkbox } from "./Checkbox/index.js";
|
|
21
21
|
import { Tag, init_Tag } from "./Tag/index.js";
|
|
22
22
|
import { SelectInput, init_SelectInput } from "./SelectInput/index.js";
|
|
23
23
|
import { UnitInput, init_UnitInput } from "./UnitInput/index.js";
|
|
@@ -36,7 +36,8 @@ import { BarChart, init_BarChart } from "./BarChart/index.js";
|
|
|
36
36
|
import { BarStack, init_BarStack } from "./BarStack/index.js";
|
|
37
37
|
import { Breadcrumbs, init_Breadcrumbs } from "./Breadcrumbs/index.js";
|
|
38
38
|
import { Carousel, init_Carousel } from "./Carousel/index.js";
|
|
39
|
-
import {
|
|
39
|
+
import { CheckboxGroupCheckbox } from "./CheckboxGroup/SingleCheckbox.js";
|
|
40
|
+
import { CheckboxGroup, init_CheckboxGroup } from "./CheckboxGroup/index.js";
|
|
40
41
|
import { Chip, init_Chip } from "./Chip/index.js";
|
|
41
42
|
import { DateInput, init_DateInput } from "./DateInput/index.js";
|
|
42
43
|
import { Modal, init_Modal } from "./Modal/index.js";
|