@ultraviolet/ui 3.12.3 → 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.js +1 -1
- 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 -3
- 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/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,55 +1,24 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
3
|
import { Stack, init_Stack } from "../../Stack/index.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { jsx
|
|
4
|
+
import { DateComponent, init_Date } from "./components/Date.js";
|
|
5
|
+
import { Message, init_Message } from "./components/Message.js";
|
|
6
|
+
import { MessageInfos, init_MessageInfos } from "./components/MessageInfos.js";
|
|
7
|
+
import { MessageTag, init_MessageTag } from "./components/MessageTag.js";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
|
|
10
10
|
//#region src/components/compositions/Conversation/index.tsx
|
|
11
|
-
var Conversation
|
|
11
|
+
var Conversation;
|
|
12
12
|
var init_Conversation = __esmMin(() => {
|
|
13
13
|
init_Stack();
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
init_Date();
|
|
15
|
+
init_Message();
|
|
16
|
+
init_MessageInfos();
|
|
17
|
+
init_MessageTag();
|
|
17
18
|
Conversation = ({ children, style }) => /* @__PURE__ */ jsx(Stack, {
|
|
18
19
|
style,
|
|
19
20
|
children
|
|
20
21
|
});
|
|
21
|
-
MessageInfos = ({ children, align, style }) => /* @__PURE__ */ jsx("div", {
|
|
22
|
-
className: conversationStyle.infos[align],
|
|
23
|
-
style,
|
|
24
|
-
children
|
|
25
|
-
});
|
|
26
|
-
DateComponent = ({ children, style }) => /* @__PURE__ */ jsx(Text, {
|
|
27
|
-
as: "p",
|
|
28
|
-
className: conversationStyle.styledText,
|
|
29
|
-
prominence: "weak",
|
|
30
|
-
style,
|
|
31
|
-
variant: "bodySmall",
|
|
32
|
-
children
|
|
33
|
-
});
|
|
34
|
-
Message = ({ className, children, avatar, align = "right", style }) => /* @__PURE__ */ jsxs("div", {
|
|
35
|
-
className: cn(className, conversationStyle.container[align]),
|
|
36
|
-
style,
|
|
37
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
38
|
-
className: conversationStyle.bubble,
|
|
39
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
40
|
-
className: conversationStyle.rawMessage[align],
|
|
41
|
-
children
|
|
42
|
-
})
|
|
43
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
44
|
-
className: conversationStyle.avatar,
|
|
45
|
-
children: avatar
|
|
46
|
-
})]
|
|
47
|
-
});
|
|
48
|
-
MessageTag = ({ children, style }) => /* @__PURE__ */ jsx(Tag, {
|
|
49
|
-
className: conversationStyle.tag,
|
|
50
|
-
style,
|
|
51
|
-
children
|
|
52
|
-
});
|
|
53
22
|
Conversation.Date = DateComponent;
|
|
54
23
|
Conversation.Message = Message;
|
|
55
24
|
Conversation.MessageInfos = MessageInfos;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ChildrenComponentType } from '../types';
|
|
2
|
+
export declare const ChildrenComponent: ({ hideTotal, ref, hideTimeUnit, defaultTimeUnit, iteration, setIteration, timeUnits, children, discount, productsCallback, }: ChildrenComponentType) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=Children.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Children.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/EstimateCost/Components/Children.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,qBAAqB,EAAc,MAAM,UAAU,CAAA;AAEjE,eAAO,MAAM,iBAAiB,kMAoF7B,CAAA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { __esmMin, __name } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { init_EstimateCostProvider, useEstimateCost } from "../EstimateCostProvider.js";
|
|
3
|
+
import { estimateCostStyle, init_styles_css } from "../styles.css.js";
|
|
4
|
+
import { CustomUnitInput, init_CustomUnitInput } from "./CustomUnitInput.js";
|
|
5
|
+
import { Title, init_Title } from "./Title.js";
|
|
6
|
+
import { Children, cloneElement, isValidElement } from "react";
|
|
7
|
+
import { cn } from "@ultraviolet/utils";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
|
|
10
|
+
//#region src/components/compositions/EstimateCost/Components/Children.tsx
|
|
11
|
+
var ChildrenComponent;
|
|
12
|
+
var init_Children = __esmMin(() => {
|
|
13
|
+
init_CustomUnitInput();
|
|
14
|
+
init_EstimateCostProvider();
|
|
15
|
+
init_styles_css();
|
|
16
|
+
init_Title();
|
|
17
|
+
ChildrenComponent = ({ hideTotal, ref, hideTimeUnit, defaultTimeUnit, iteration, setIteration, timeUnits, children, discount, productsCallback }) => {
|
|
18
|
+
const { locales } = useEstimateCost();
|
|
19
|
+
return /* @__PURE__ */ jsxs("table", {
|
|
20
|
+
cellPadding: "0",
|
|
21
|
+
cellSpacing: "0",
|
|
22
|
+
className: estimateCostStyle.table[hideTotal ? "noTotal" : "total"],
|
|
23
|
+
"data-testid": "summary",
|
|
24
|
+
ref,
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ jsxs("colgroup", { children: [/* @__PURE__ */ jsx("col", {}), /* @__PURE__ */ jsx("col", { className: estimateCostStyle.priceColumn })] }),
|
|
27
|
+
hideTimeUnit ? null : /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [/* @__PURE__ */ jsx("th", { children: /* @__PURE__ */ jsx(Title, { locales }) }), /* @__PURE__ */ jsx("th", {
|
|
28
|
+
className: cn(estimateCostStyle.priceCellContent, estimateCostStyle.priceCell),
|
|
29
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
30
|
+
className: estimateCostStyle.timeCell,
|
|
31
|
+
children: /* @__PURE__ */ jsx(CustomUnitInput, {
|
|
32
|
+
defaultTimeUnit,
|
|
33
|
+
iteration,
|
|
34
|
+
setIteration,
|
|
35
|
+
timeUnits
|
|
36
|
+
})
|
|
37
|
+
})
|
|
38
|
+
})] }) }),
|
|
39
|
+
/* @__PURE__ */ jsx("tbody", { children: Children.map(children, (child, index) => isValidElement(child) ? cloneElement(child, {
|
|
40
|
+
discount: discount && !child.props.discount ? discount : child.props.discount,
|
|
41
|
+
isLastElement: index === Children.count(children) - 1,
|
|
42
|
+
iteration,
|
|
43
|
+
productsCallback
|
|
44
|
+
}) : child) })
|
|
45
|
+
]
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
init_Children();
|
|
52
|
+
export { ChildrenComponent, init_Children };
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import type { ChildrenComponentType, LocalesType, TotalContentProps } from '../types';
|
|
2
1
|
import type { ReactNode } from 'react';
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const Description: import("react").MemoExoticComponent<({ description, locales, }: {
|
|
4
3
|
description: ReactNode;
|
|
5
4
|
locales: Record<"estimate.cost.az.label" | "estimate.cost.beta.badge" | "estimate.cost.beta.discount" | "estimate.cost.beta.free" | "estimate.cost.description" | "estimate.cost.fees.commitment" | "estimate.cost.fees.monthly.title" | "estimate.cost.fees.oneTime.title" | "estimate.cost.label" | "estimate.cost.notDefined" | "estimate.cost.region.label" | "estimate.cost.submit.label" | "estimate.cost.units.days.label" | "estimate.cost.units.gb.label" | "estimate.cost.units.hours.label" | "estimate.cost.units.minutes.label" | "estimate.cost.units.months.label" | "estimate.cost.units.seconds.label" | "estimate.cost.units.years.label", string>;
|
|
6
5
|
}) => number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null>;
|
|
7
|
-
|
|
8
|
-
locales: LocalesType;
|
|
9
|
-
}) => import("react/jsx-runtime").JSX.Element>;
|
|
10
|
-
export declare const ChildrenComponent: ({ hideTotal, ref, hideTimeUnit, defaultTimeUnit, iteration, setIteration, timeUnits, children, discount, productsCallback, }: ChildrenComponentType) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare const TotalComponent: ({ isBeta, discount, totalValue, totalPrice, totalMaxValue, hideHourlyPriceOnTotal, isLongFractionDigits, }: TotalContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
//# sourceMappingURL=ContentComponents.d.ts.map
|
|
6
|
+
//# sourceMappingURL=Description.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/EstimateCost/Components/Description.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,eAAO,MAAM,WAAW;;;yTAevB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __esmMin, __name } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { Text, init_Text } from "../../../Text/index.js";
|
|
3
|
+
import { memo } from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/compositions/EstimateCost/Components/Description.tsx
|
|
7
|
+
var Description;
|
|
8
|
+
var init_Description = __esmMin(() => {
|
|
9
|
+
init_Text();
|
|
10
|
+
Description = memo(({ description, locales }) => description === void 0 || typeof description === "string" ? /* @__PURE__ */ jsx(Text, {
|
|
11
|
+
as: "span",
|
|
12
|
+
variant: "body",
|
|
13
|
+
children: description || locales["estimate.cost.description"]
|
|
14
|
+
}) : description);
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
init_Description();
|
|
19
|
+
export { Description, init_Description };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/EstimateCost/Components/Item.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/EstimateCost/Components/Item.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EACf,SAAS,EAEV,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErE,KAAK,SAAS,GAAG;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB;;OAEG;IACH,gBAAgB,CAAC,EAAE,cAAc,CAAC,OAAO,IAAI,CAAC,CAAC,SAAS,CAAC,CAAA;IACzD;;OAEG;IACH,mBAAmB,CAAC,EAAE,cAAc,CAAC,OAAO,IAAI,CAAC,CAAC,YAAY,CAAC,CAAA;IAC/D;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,gBAAgB,CAAC,EAAE;QACjB,GAAG,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI,CAAA;QACvC,MAAM,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAA;KAC/C,CAAA;IACD;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,IAAI,CAAC,EACD,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,SAAS,GACT,SAAS,GACT,OAAO,GACP,MAAM,GACN,QAAQ,GACR,OAAO,GAEP,CAAC,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,CAAA;IAInC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,IAAI,2lBA4OhB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import { _objectSpread2, init_objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import { _objectSpread2, init_objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
|
|
4
4
|
import { init_constants, maximumFractionDigits, maximumFractionDigitsLong, multiplier } from "../constants.js";
|
|
5
5
|
import { init_EstimateCostProvider, useEstimateCost } from "../EstimateCostProvider.js";
|
|
6
6
|
import { calculatePrice, init_helper } from "../helper.js";
|
|
@@ -3,10 +3,10 @@ import { Stack, init_Stack } from "../../../Stack/index.js";
|
|
|
3
3
|
import { Tooltip, init_Tooltip } from "../../../Tooltip/index.js";
|
|
4
4
|
import { Text, init_Text } from "../../../Text/index.js";
|
|
5
5
|
import { Badge, init_Badge } from "../../../Badge/index.js";
|
|
6
|
-
import { estimateCostMaxWidthText, init_components_css } from "./components.css.js";
|
|
7
6
|
import { init_EstimateCostProvider, useEstimateCost } from "../EstimateCostProvider.js";
|
|
8
7
|
import { init_OverlayContext, useOverlay } from "../OverlayContext.js";
|
|
9
8
|
import { estimateCostStyle, init_styles_css } from "../styles.css.js";
|
|
9
|
+
import { estimateCostMaxWidthText, init_components_css } from "./components.css.js";
|
|
10
10
|
import { Children, cloneElement, isValidElement } from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { HelpCircleOutlineIcon } from "@ultraviolet/icons/HelpCircleOutlineIcon";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemPrice.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/EstimateCost/Components/ItemPrice.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAS,MAAM,UAAU,CAAA;AAUrD,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"ItemPrice.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/EstimateCost/Components/ItemPrice.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAS,MAAM,UAAU,CAAA;AAUrD,eAAO,MAAM,SAAS,4TAkFrB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import { _objectSpread2, init_objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.
|
|
4
|
-
import { _objectWithoutProperties, init_objectWithoutProperties } from "../../../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import { _objectSpread2, init_objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
|
|
4
|
+
import { _objectWithoutProperties, init_objectWithoutProperties } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
|
|
5
5
|
import { estimateCostStyle, init_styles_css } from "../styles.css.js";
|
|
6
6
|
import { cn } from "@ultraviolet/utils";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/EstimateCost/Components/Title.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAE3C,eAAO,MAAM,KAAK;;8CAShB,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __esmMin, __name } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { estimateCostStyle, init_styles_css } from "../styles.css.js";
|
|
3
|
+
import { memo } from "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { CalculatorIcon } from "@ultraviolet/icons/CalculatorIcon";
|
|
6
|
+
|
|
7
|
+
//#region src/components/compositions/EstimateCost/Components/Title.tsx
|
|
8
|
+
var Title;
|
|
9
|
+
var init_Title = __esmMin(() => {
|
|
10
|
+
init_styles_css();
|
|
11
|
+
Title = memo(({ locales }) => /* @__PURE__ */ jsxs("h3", {
|
|
12
|
+
className: estimateCostStyle.title,
|
|
13
|
+
children: [/* @__PURE__ */ jsx(CalculatorIcon, {
|
|
14
|
+
className: estimateCostStyle.calculatorIcon,
|
|
15
|
+
sentiment: "primary",
|
|
16
|
+
size: "medium"
|
|
17
|
+
}), locales === null || locales === void 0 ? void 0 : locales["estimate.cost.label"]]
|
|
18
|
+
}));
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
init_Title();
|
|
23
|
+
export { Title, init_Title };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { TotalContentProps } from '../types';
|
|
2
|
+
export declare const Total: ({ isBeta, discount, totalValue, totalPrice, totalMaxValue, hideHourlyPriceOnTotal, isLongFractionDigits, }: TotalContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=Total.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Total.d.ts","sourceRoot":"","sources":["../../../../../src/components/compositions/EstimateCost/Components/Total.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAEjD,eAAO,MAAM,KAAK,4KA2FjB,CAAA"}
|
package/dist/components/compositions/EstimateCost/Components/{ContentComponents.js → Total.js}
RENAMED
|
@@ -5,68 +5,20 @@ import { init_constants, maximumFractionDigits, maximumFractionDigitsLong } from
|
|
|
5
5
|
import { init_EstimateCostProvider, useEstimateCost } from "../EstimateCostProvider.js";
|
|
6
6
|
import { estimateCostStyle, init_styles_css, paddingLeftCell } from "../styles.css.js";
|
|
7
7
|
import { LineThrough, init_LineThrough } from "./LineThrough.js";
|
|
8
|
-
import { CustomUnitInput, init_CustomUnitInput } from "./CustomUnitInput.js";
|
|
9
|
-
import { Children, cloneElement, isValidElement, memo } from "react";
|
|
10
8
|
import { cn } from "@ultraviolet/utils";
|
|
11
9
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
12
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { CalculatorIcon } from "@ultraviolet/icons/CalculatorIcon";
|
|
14
11
|
|
|
15
|
-
//#region src/components/compositions/EstimateCost/Components/
|
|
16
|
-
var
|
|
17
|
-
var
|
|
12
|
+
//#region src/components/compositions/EstimateCost/Components/Total.tsx
|
|
13
|
+
var Total;
|
|
14
|
+
var init_Total = __esmMin(() => {
|
|
18
15
|
init_Badge();
|
|
19
16
|
init_Text();
|
|
20
|
-
init_CustomUnitInput();
|
|
21
17
|
init_constants();
|
|
22
18
|
init_EstimateCostProvider();
|
|
23
19
|
init_styles_css();
|
|
24
20
|
init_LineThrough();
|
|
25
|
-
|
|
26
|
-
as: "span",
|
|
27
|
-
variant: "body",
|
|
28
|
-
children: description || locales["estimate.cost.description"]
|
|
29
|
-
}) : description);
|
|
30
|
-
TitleComponent = memo(({ locales }) => /* @__PURE__ */ jsxs("h3", {
|
|
31
|
-
className: estimateCostStyle.title,
|
|
32
|
-
children: [/* @__PURE__ */ jsx(CalculatorIcon, {
|
|
33
|
-
className: estimateCostStyle.calculatorIcon,
|
|
34
|
-
sentiment: "primary",
|
|
35
|
-
size: "medium"
|
|
36
|
-
}), locales === null || locales === void 0 ? void 0 : locales["estimate.cost.label"]]
|
|
37
|
-
}));
|
|
38
|
-
ChildrenComponent = ({ hideTotal, ref, hideTimeUnit, defaultTimeUnit, iteration, setIteration, timeUnits, children, discount, productsCallback }) => {
|
|
39
|
-
const { locales } = useEstimateCost();
|
|
40
|
-
return /* @__PURE__ */ jsxs("table", {
|
|
41
|
-
cellPadding: "0",
|
|
42
|
-
cellSpacing: "0",
|
|
43
|
-
className: estimateCostStyle.table[hideTotal ? "noTotal" : "total"],
|
|
44
|
-
"data-testid": "summary",
|
|
45
|
-
ref,
|
|
46
|
-
children: [
|
|
47
|
-
/* @__PURE__ */ jsxs("colgroup", { children: [/* @__PURE__ */ jsx("col", {}), /* @__PURE__ */ jsx("col", { className: estimateCostStyle.priceColumn })] }),
|
|
48
|
-
hideTimeUnit ? null : /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [/* @__PURE__ */ jsx("th", { children: /* @__PURE__ */ jsx(TitleComponent, { locales }) }), /* @__PURE__ */ jsx("th", {
|
|
49
|
-
className: cn(estimateCostStyle.priceCellContent, estimateCostStyle.priceCell),
|
|
50
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
51
|
-
className: estimateCostStyle.timeCell,
|
|
52
|
-
children: /* @__PURE__ */ jsx(CustomUnitInput, {
|
|
53
|
-
defaultTimeUnit,
|
|
54
|
-
iteration,
|
|
55
|
-
setIteration,
|
|
56
|
-
timeUnits
|
|
57
|
-
})
|
|
58
|
-
})
|
|
59
|
-
})] }) }),
|
|
60
|
-
/* @__PURE__ */ jsx("tbody", { children: Children.map(children, (child, index) => isValidElement(child) ? cloneElement(child, {
|
|
61
|
-
discount: discount && !child.props.discount ? discount : child.props.discount,
|
|
62
|
-
isLastElement: index === Children.count(children) - 1,
|
|
63
|
-
iteration,
|
|
64
|
-
productsCallback
|
|
65
|
-
}) : child) })
|
|
66
|
-
]
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
TotalComponent = ({ isBeta, discount, totalValue, totalPrice, totalMaxValue, hideHourlyPriceOnTotal, isLongFractionDigits }) => {
|
|
21
|
+
Total = ({ isBeta, discount, totalValue, totalPrice, totalMaxValue, hideHourlyPriceOnTotal, isLongFractionDigits }) => {
|
|
70
22
|
const { formatNumber, locales } = useEstimateCost();
|
|
71
23
|
const localeBeta = locales[`estimate.cost.beta.${discount > 0 ? "discount" : "free"}`];
|
|
72
24
|
return /* @__PURE__ */ jsxs("table", {
|
|
@@ -121,5 +73,5 @@ var init_ContentComponents = __esmMin(() => {
|
|
|
121
73
|
});
|
|
122
74
|
|
|
123
75
|
//#endregion
|
|
124
|
-
|
|
125
|
-
export {
|
|
76
|
+
init_Total();
|
|
77
|
+
export { Total, init_Total };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import { _objectSpread2, init_objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import { _objectSpread2, init_objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
|
|
4
4
|
import { init_OverlayContext, useOverlay } from "../OverlayContext.js";
|
|
5
5
|
import { estimateCostStyle, init_styles_css } from "../styles.css.js";
|
|
6
6
|
import { NumberInput, init_NumberInput } from "../../../NumberInput/index.js";
|
|
@@ -4,12 +4,11 @@ import { init_components_css_ts_vanilla } from "./components.css.ts.vanilla.js";
|
|
|
4
4
|
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
5
5
|
|
|
6
6
|
//#region src/components/compositions/EstimateCost/Components/components.css.ts
|
|
7
|
-
var maxWidthTextVar,
|
|
7
|
+
var maxWidthTextVar, itemResourceName, resourceName, estimateCostMaxWidthText, regular, strong;
|
|
8
8
|
var init_components_css = __esmMin(() => {
|
|
9
9
|
init_animationsVanillaExtract_css_ts_vanilla();
|
|
10
10
|
init_components_css_ts_vanilla();
|
|
11
11
|
maxWidthTextVar = "var(--uv_pk0duk0)";
|
|
12
|
-
maxWidthText = "uv_pk0duk1";
|
|
13
12
|
itemResourceName = createRuntimeFn({
|
|
14
13
|
defaultClassName: "uv_pk0duk6",
|
|
15
14
|
variantClassNames: { animated: { true: "uv_pk0duk7" } },
|
|
@@ -67,4 +66,4 @@ var init_components_css = __esmMin(() => {
|
|
|
67
66
|
|
|
68
67
|
//#endregion
|
|
69
68
|
init_components_css();
|
|
70
|
-
export { estimateCostMaxWidthText, init_components_css,
|
|
69
|
+
export { estimateCostMaxWidthText, init_components_css, maxWidthTextVar };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export declare const Ellipsis: ({ children, maxWidth, 'data-testid': dataTestId, }: {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
maxWidth?: number | undefined;
|
|
5
|
+
'data-testid'?: string | undefined;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=Ellipsis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Ellipsis.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/EstimateCost/Ellipsis.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,eAAO,MAAM,QAAQ;;;;6CA+BpB,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { Text, init_Text } from "../../Text/index.js";
|
|
3
|
+
import { init_OverlayContext, useOverlay } from "./OverlayContext.js";
|
|
4
|
+
import { estimateCostStyle, init_styles_css } from "./styles.css.js";
|
|
5
|
+
import { init_components_css, maxWidthTextVar } from "./Components/components.css.js";
|
|
6
|
+
import { Children } from "react";
|
|
7
|
+
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
|
|
10
|
+
//#region src/components/compositions/EstimateCost/Ellipsis.tsx
|
|
11
|
+
var Ellipsis;
|
|
12
|
+
var init_Ellipsis = __esmMin(() => {
|
|
13
|
+
init_Text();
|
|
14
|
+
init_components_css();
|
|
15
|
+
init_OverlayContext();
|
|
16
|
+
init_styles_css();
|
|
17
|
+
Ellipsis = ({ children, maxWidth = 350, "data-testid": dataTestId }) => {
|
|
18
|
+
const { isOverlay } = useOverlay();
|
|
19
|
+
const text = Children.toArray(children).join("").toString();
|
|
20
|
+
return /* @__PURE__ */ jsx("div", {
|
|
21
|
+
"data-testid": dataTestId,
|
|
22
|
+
style: { display: isOverlay ? void 0 : "inline-flex" },
|
|
23
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
24
|
+
as: "p",
|
|
25
|
+
className: estimateCostStyle.maxWidthText,
|
|
26
|
+
oneLine: true,
|
|
27
|
+
style: assignInlineVars({ [maxWidthTextVar]: isOverlay ? "200px" : `${maxWidth}px` }),
|
|
28
|
+
variant: "bodyStrong",
|
|
29
|
+
children: text
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
init_Ellipsis();
|
|
37
|
+
export { Ellipsis, init_Ellipsis };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EstimateCostContent.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/EstimateCost/EstimateCostContent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EstimateCostContent.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/EstimateCost/EstimateCostContent.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAEV,iBAAiB,EAIlB,MAAM,SAAS,CAAA;AAIhB,eAAO,MAAM,mBAAmB,gdA+S/B,CAAA"}
|
|
@@ -11,7 +11,9 @@ import { estimateCostStyle, init_styles_css } from "./styles.css.js";
|
|
|
11
11
|
import { Item, init_Item } from "./Components/Item.js";
|
|
12
12
|
import { Alert, init_Alert } from "../../Alert/index.js";
|
|
13
13
|
import { CompactEstimateCost, init_CompactEstimateCost } from "./CompactEstimateCost.js";
|
|
14
|
-
import { ChildrenComponent,
|
|
14
|
+
import { ChildrenComponent, init_Children } from "./Components/Children.js";
|
|
15
|
+
import { Description, init_Description } from "./Components/Description.js";
|
|
16
|
+
import { Total, init_Total } from "./Components/Total.js";
|
|
15
17
|
import { OverlayComponent, init_OverlayComponent } from "./OverlayComponent.js";
|
|
16
18
|
import { useEffect, useMemo, useState } from "react";
|
|
17
19
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -24,8 +26,10 @@ var init_EstimateCostContent = __esmMin(() => {
|
|
|
24
26
|
init_Stack();
|
|
25
27
|
init_Text();
|
|
26
28
|
init_CompactEstimateCost();
|
|
27
|
-
|
|
29
|
+
init_Children();
|
|
30
|
+
init_Description();
|
|
28
31
|
init_Item();
|
|
32
|
+
init_Total();
|
|
29
33
|
init_constants();
|
|
30
34
|
init_EstimateCostProvider();
|
|
31
35
|
init_helper();
|
|
@@ -151,7 +155,7 @@ var init_EstimateCostContent = __esmMin(() => {
|
|
|
151
155
|
unit: overlayUnit,
|
|
152
156
|
children
|
|
153
157
|
}),
|
|
154
|
-
description === false ? null : /* @__PURE__ */ jsx(
|
|
158
|
+
description === false ? null : /* @__PURE__ */ jsx(Description, {
|
|
155
159
|
description,
|
|
156
160
|
locales
|
|
157
161
|
}),
|
|
@@ -175,7 +179,7 @@ var init_EstimateCostContent = __esmMin(() => {
|
|
|
175
179
|
timeUnits,
|
|
176
180
|
children
|
|
177
181
|
}) : null,
|
|
178
|
-
hideTotal ? null : /* @__PURE__ */ jsx(
|
|
182
|
+
hideTotal ? null : /* @__PURE__ */ jsx(Total, {
|
|
179
183
|
discount,
|
|
180
184
|
hideHourlyPriceOnTotal,
|
|
181
185
|
isBeta,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import { _objectSpread2, init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import { _objectSpread2, init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
|
|
4
4
|
import en_default, { init_en } from "./locales/en.js";
|
|
5
5
|
import { createContext, useCallback, useContext, useMemo } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/EstimateCost/Image.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,KAAK,8JAUjB,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { _objectSpread2, init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
|
|
3
|
+
import { estimateCostStyle, init_styles_css } from "./styles.css.js";
|
|
4
|
+
import { cn } from "@ultraviolet/utils";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/compositions/EstimateCost/Image.tsx
|
|
8
|
+
var Image;
|
|
9
|
+
var init_Image = __esmMin(() => {
|
|
10
|
+
init_styles_css();
|
|
11
|
+
init_objectSpread2();
|
|
12
|
+
Image = (props) => /* @__PURE__ */ jsx("img", _objectSpread2(_objectSpread2({
|
|
13
|
+
alt: props.alt,
|
|
14
|
+
height: props.height,
|
|
15
|
+
width: props.width
|
|
16
|
+
}, props), {}, { className: cn(props.className, estimateCostStyle.image) }));
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
init_Image();
|
|
21
|
+
export { Image, init_Image };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import estimateCostDefaultLocales from './locales/en';
|
|
2
2
|
import type { EstimateCostProps } from './types';
|
|
3
|
-
import type { ReactNode } from 'react';
|
|
4
3
|
export declare function EstimateCost({ description, alert, alertTitle, alertVariant, defaultTimeUnit, timeUnits, hideOverlay, disableOverlayLeft, disableOverlayRight, hideTimeUnit, hideTotal, discount, OverlayRight, OverlayLeft, overlayMargin, isBeta, commitmentFees, commitmentFeesContent, monthlyFees, monthlyFeesLabel, monthlyFeesContent, overlayUnit, children, locales, compact, numberLocales, currency, style, onTotalPriceChange }: EstimateCostProps): import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export declare namespace EstimateCost {
|
|
6
5
|
var LineThrough: ({ isActive, className, ...props }: import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
@@ -12,7 +11,7 @@ export declare namespace EstimateCost {
|
|
|
12
11
|
amount?: number | undefined;
|
|
13
12
|
amountFree?: number | undefined;
|
|
14
13
|
animated?: boolean | undefined;
|
|
15
|
-
children?: ReactNode;
|
|
14
|
+
children?: import("react").ReactNode;
|
|
16
15
|
discount?: number | undefined;
|
|
17
16
|
discountText?: string | undefined;
|
|
18
17
|
hideFromOverlay?: boolean | undefined;
|
|
@@ -21,7 +20,7 @@ export declare namespace EstimateCost {
|
|
|
21
20
|
isLastElement?: boolean | undefined;
|
|
22
21
|
isPrimaryBackground?: boolean | undefined;
|
|
23
22
|
iteration?: import("./types").Iteration | undefined;
|
|
24
|
-
label?: ReactNode;
|
|
23
|
+
label?: import("react").ReactNode;
|
|
25
24
|
labelTextVariant?: "body" | "bodySmall" | "bodySmallStrong" | "bodySmallStronger" | "bodyStrong" | "bodyStronger" | "caption" | "captionSmall" | "captionSmallStrong" | "captionSmallStronger" | "captionStrong" | "captionStronger" | "code" | "codeSmall" | "codeSmallStrong" | "codeSmallStronger" | "codeStrong" | "codeStronger" | "heading" | "headingLarge" | "headingLargeStrong" | "headingLargeStronger" | "headingSmall" | "headingSmallStrong" | "headingSmallStronger" | "headingStrong" | "headingStronger" | undefined;
|
|
26
25
|
labelTextProminence?: "default" | "strong" | "stronger" | "weak" | undefined;
|
|
27
26
|
longFractionDigits?: boolean | undefined;
|
|
@@ -34,7 +33,7 @@ export declare namespace EstimateCost {
|
|
|
34
33
|
notice?: string | undefined;
|
|
35
34
|
onAmountChange?: ((amount: number) => void) | undefined;
|
|
36
35
|
price?: number | undefined;
|
|
37
|
-
priceText?: ReactNode;
|
|
36
|
+
priceText?: import("react").ReactNode;
|
|
38
37
|
productsCallback?: {
|
|
39
38
|
add: (product: import("./types").EstimateProduct) => void;
|
|
40
39
|
remove: (product: import("./types").BareEstimateProduct) => void;
|
|
@@ -71,7 +70,7 @@ export declare namespace EstimateCost {
|
|
|
71
70
|
export declare namespace EstimateCost {
|
|
72
71
|
var Strong: import("react").MemoExoticComponent<({ variant, children, style }: {
|
|
73
72
|
variant?: "big" | "capitalized" | "normal" | "small" | undefined;
|
|
74
|
-
children?: ReactNode;
|
|
73
|
+
children?: import("react").ReactNode;
|
|
75
74
|
isDisabledOnOverlay?: boolean | undefined;
|
|
76
75
|
style?: import("react").CSSProperties | undefined;
|
|
77
76
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -80,7 +79,7 @@ export declare namespace EstimateCost {
|
|
|
80
79
|
var Regular: import("react").MemoExoticComponent<({ variant, isDisabledOnOverlay, children, className, style, }: {
|
|
81
80
|
variant?: "big" | "capitalized" | "normal" | "small" | undefined;
|
|
82
81
|
isDisabledOnOverlay?: boolean | undefined;
|
|
83
|
-
children?: ReactNode;
|
|
82
|
+
children?: import("react").ReactNode;
|
|
84
83
|
style?: import("react").CSSProperties | undefined;
|
|
85
84
|
className?: string | undefined;
|
|
86
85
|
}) => import("react/jsx-runtime").JSX.Element | null>;
|
|
@@ -91,7 +90,7 @@ export declare namespace EstimateCost {
|
|
|
91
90
|
export declare namespace EstimateCost {
|
|
92
91
|
var Region: import("react").MemoExoticComponent<({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, hideFromOverlay, style, }: {
|
|
93
92
|
shouldBeHidden?: boolean | undefined;
|
|
94
|
-
priceText?: ReactNode;
|
|
93
|
+
priceText?: import("react").ReactNode;
|
|
95
94
|
animated?: boolean | undefined;
|
|
96
95
|
isFirstElement?: boolean | undefined;
|
|
97
96
|
isLastElement?: boolean | undefined;
|
|
@@ -109,7 +108,7 @@ export declare namespace EstimateCost {
|
|
|
109
108
|
amount?: number | undefined;
|
|
110
109
|
amountFree?: number | undefined;
|
|
111
110
|
animated?: boolean | undefined;
|
|
112
|
-
children?: ReactNode;
|
|
111
|
+
children?: import("react").ReactNode;
|
|
113
112
|
discount?: number | undefined;
|
|
114
113
|
discountText?: string | undefined;
|
|
115
114
|
hideFromOverlay?: boolean | undefined;
|
|
@@ -118,7 +117,7 @@ export declare namespace EstimateCost {
|
|
|
118
117
|
isLastElement?: boolean | undefined;
|
|
119
118
|
isPrimaryBackground?: boolean | undefined;
|
|
120
119
|
iteration?: import("./types").Iteration | undefined;
|
|
121
|
-
label?: ReactNode;
|
|
120
|
+
label?: import("react").ReactNode;
|
|
122
121
|
labelTextVariant?: "body" | "bodySmall" | "bodySmallStrong" | "bodySmallStronger" | "bodyStrong" | "bodyStronger" | "caption" | "captionSmall" | "captionSmallStrong" | "captionSmallStronger" | "captionStrong" | "captionStronger" | "code" | "codeSmall" | "codeSmallStrong" | "codeSmallStronger" | "codeStrong" | "codeStronger" | "heading" | "headingLarge" | "headingLargeStrong" | "headingLargeStronger" | "headingSmall" | "headingSmallStrong" | "headingSmallStronger" | "headingStrong" | "headingStronger" | undefined;
|
|
123
122
|
labelTextProminence?: "default" | "strong" | "stronger" | "weak" | undefined;
|
|
124
123
|
longFractionDigits?: boolean | undefined;
|
|
@@ -131,7 +130,7 @@ export declare namespace EstimateCost {
|
|
|
131
130
|
notice?: string | undefined;
|
|
132
131
|
onAmountChange?: ((amount: number) => void) | undefined;
|
|
133
132
|
price?: number | undefined;
|
|
134
|
-
priceText?: ReactNode;
|
|
133
|
+
priceText?: import("react").ReactNode;
|
|
135
134
|
productsCallback?: {
|
|
136
135
|
add: (product: import("./types").EstimateProduct) => void;
|
|
137
136
|
remove: (product: import("./types").BareEstimateProduct) => void;
|
|
@@ -168,7 +167,7 @@ export declare namespace EstimateCost {
|
|
|
168
167
|
}
|
|
169
168
|
export declare namespace EstimateCost {
|
|
170
169
|
var Ellipsis: ({ children, maxWidth, 'data-testid': dataTestId, }: {
|
|
171
|
-
children: ReactNode;
|
|
170
|
+
children: import("react").ReactNode;
|
|
172
171
|
maxWidth?: number | undefined;
|
|
173
172
|
'data-testid'?: string | undefined;
|
|
174
173
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/EstimateCost/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/EstimateCost/index.tsx"],"names":[],"mappings":"AAcA,OAAO,0BAA0B,MAAM,cAAc,CAAA;AAErD,OAAO,KAAK,EAAE,iBAAiB,EAAS,MAAM,SAAS,CAAA;qCAO1B,EAC3B,WAAW,EACX,KAAK,EACL,UAAU,EACV,YAAwB,EACxB,eAAyB,EACzB,SAA6B,EAC7B,WAAmB,EACnB,kBAA0B,EAC1B,mBAA2B,EAC3B,YAAoB,EACpB,SAAiB,EACjB,QAAY,EACZ,YAAY,EACZ,WAAW,EACX,aAAa,EACb,MAAc,EACd,cAAc,EACd,qBAAqB,EACrB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,WAAqB,EACrB,QAAe,EACf,OAAoC,EACpC,OAAO,EACP,aAAuB,EACvB,QAAgB,EAChB,KAAK,EACL,kBAAkB,EACnB,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DpB,OAAO,EAAE,0BAA0B,EAAE,CAAA"}
|