@onesy/ui-react 1.0.171 → 1.0.173
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/Accordion/Accordion.js +93 -74
- package/AdvancedTextField/AdvancedTextField.js +7 -6
- package/Append/Append.js +24 -19
- package/AreaChart/AreaChart.js +15 -17
- package/AreaChartItem/AreaChartItem.js +63 -58
- package/AudioPlayer/AudioPlayer.js +180 -148
- package/AudioRecorder/AudioRecorder.js +104 -59
- package/AutoComplete/AutoComplete.js +135 -125
- package/AutoCompleteCountry/AutoCompleteCountry.js +10 -11
- package/AutoCompleteCurrency/AutoCompleteCurrency.js +4 -5
- package/Avatar/Avatar.js +11 -8
- package/AvatarGroup/AvatarGroup.js +21 -20
- package/Backdrop/Backdrop.js +30 -21
- package/Badge/Badge.js +18 -17
- package/Banner/Banner.js +15 -12
- package/BottomAppBar/BottomAppBar.js +14 -14
- package/BottomSheet/BottomSheet.js +9 -11
- package/Box/Box.js +12 -12
- package/Breadcrumbs/Breadcrumbs.js +38 -34
- package/BubbleChart/BubbleChart.js +159 -134
- package/BubbleChartItem/BubbleChartItem.js +48 -43
- package/Button/Button.js +46 -39
- package/Buttons/Buttons.d.ts +1 -1
- package/Buttons/Buttons.js +34 -28
- package/Calendar/Calendar.js +357 -315
- package/CalendarAvailability/CalendarAvailability.js +351 -298
- package/CalendarMenu/CalendarMenu.js +93 -79
- package/CalendarMonth/CalendarMonth.js +113 -102
- package/CalendarViews/CalendarViews.js +138 -115
- package/CalendarWeek/CalendarWeek.js +180 -158
- package/Card/Card.js +16 -15
- package/CardButton/CardButton.js +11 -10
- package/CardFooter/CardFooter.js +12 -12
- package/CardHeader/CardHeader.js +13 -13
- package/CardImage/CardImage.js +10 -12
- package/CardMain/CardMain.js +12 -12
- package/Carousel/Carousel.js +140 -124
- package/Chart/Chart.js +438 -393
- package/Checkbox/Checkbox.js +46 -43
- package/Chip/Chip.js +12 -11
- package/Chips/Chips.js +20 -20
- package/ClickListener/ClickListener.js +19 -15
- package/Clock/Clock.js +38 -36
- package/ColorTextField/ColorTextField.js +33 -27
- package/ColumnChart/ColumnChart.js +16 -17
- package/ColumnChartItem/ColumnChartItem.js +35 -31
- package/Confirm/Confirm.js +51 -35
- package/Container/Container.js +9 -6
- package/CookieBanner/CookieBanner.js +55 -41
- package/Countdown/Countdown.js +163 -123
- package/DatePicker/DatePicker.js +236 -197
- package/DateRangePicker/DateRangePicker.js +9 -11
- package/DateTimePicker/DateTimePicker.js +127 -103
- package/DateTimeRangePicker/DateTimeRangePicker.js +9 -11
- package/Divider/Divider.js +25 -21
- package/DonutChart/DonutChart.js +9 -11
- package/DragAndDropList/DragAndDropList.js +8 -4
- package/Drawing/Drawing.js +369 -312
- package/DropZone/DropZone.js +20 -15
- package/Emojis/Emojis.js +95 -85
- package/Expand/Expand.js +78 -70
- package/Fab/Fab.js +4 -6
- package/Fade/Fade.js +64 -58
- package/FileChoose/FileChoose.js +69 -60
- package/Focus/Focus.js +19 -16
- package/Form/Form.js +69 -57
- package/FormRow/FormRow.js +49 -38
- package/Forms/Forms.js +13 -13
- package/Frame/Frame.js +62 -54
- package/Grid/Grid.js +15 -12
- package/Grow/Grow.js +60 -52
- package/HTMLCanvas/HTMLCanvas.js +88 -74
- package/IFrame/IFrame.js +33 -27
- package/Icon/Icon.js +14 -14
- package/IconButton/IconButton.js +12 -14
- package/Image/Image.js +19 -15
- package/ImageCrop/ImageCrop.js +96 -87
- package/ImageEdit/ImageEdit.js +355 -290
- package/ImageGallery/ImageGallery.js +104 -86
- package/ImageList/ImageList.js +16 -11
- package/ImageListItem/ImageListItem.js +9 -6
- package/ImageListItemBox/ImageListItemBox.js +12 -12
- package/Info/Info.js +38 -27
- package/Interaction/Interaction.js +57 -52
- package/Keyframes/Keyframes.js +11 -9
- package/Label/Label.js +59 -50
- package/Labels/Labels.js +30 -26
- package/Line/Line.js +10 -7
- package/LineChart/LineChart.js +16 -17
- package/LineChartItem/LineChartItem.js +30 -26
- package/LinearMeter/LinearMeter.js +92 -87
- package/LinearProgress/LinearProgress.js +27 -22
- package/Link/Link.js +7 -6
- package/Links/Links.js +128 -118
- package/List/List.js +23 -21
- package/ListItem/ListItem.js +68 -58
- package/ListSubheader/ListSubheader.js +9 -11
- package/MainProgress/MainProgress.js +14 -12
- package/MainProgressMaterial/MainProgressMaterial.js +16 -14
- package/Markdown/Markdown.js +6 -5
- package/Masonry/Masonry.js +26 -22
- package/Medias/Medias.js +95 -93
- package/Menu/Menu.js +51 -45
- package/MenuDesktop/MenuDesktop.js +141 -130
- package/MenuItem/MenuItem.js +75 -64
- package/Meta/Meta.js +21 -19
- package/Modal/Modal.js +52 -39
- package/ModalFooter/ModalFooter.js +12 -12
- package/ModalHeader/ModalHeader.js +12 -12
- package/ModalIcon/ModalIcon.js +55 -13
- package/ModalMain/ModalMain.js +12 -12
- package/ModalText/ModalText.js +12 -12
- package/ModalTitle/ModalTitle.js +12 -12
- package/MoreOptions/MoreOptions.js +14 -12
- package/Move/Move.js +9 -6
- package/NavigationBar/NavigationBar.js +7 -6
- package/NavigationDrawer/NavigationDrawer.js +7 -6
- package/NavigationItem/NavigationItem.js +58 -48
- package/NavigationRail/NavigationRail.js +25 -22
- package/NotFound/NotFound.js +21 -18
- package/NumericTextField/NumericTextField.js +14 -9
- package/Page/Page.js +50 -38
- package/PageTransition/PageTransition.js +8 -7
- package/Pagination/Pagination.js +41 -31
- package/PaginationItem/PaginationItem.js +20 -18
- package/Parallax/Parallax.js +4 -3
- package/Path/Path.js +9 -11
- package/PieChart/PieChart.js +96 -79
- package/Placeholder/Placeholder.js +15 -12
- package/Portal/Portal.js +41 -18
- package/Properties/Properties.js +17 -18
- package/Property/Property.js +24 -17
- package/Radio/Radio.js +25 -21
- package/Radios/Radios.js +30 -26
- package/Rating/Rating.js +36 -31
- package/Reset/Reset.js +4 -1
- package/Reveal/Reveal.js +17 -13
- package/RichTextEditor/RichTextEditor.js +1011 -824
- package/RoundMeter/RoundMeter.js +98 -93
- package/RoundProgress/RoundProgress.js +36 -32
- package/ScatterChart/ScatterChart.js +15 -17
- package/ScatterChartItem/ScatterChartItem.js +36 -34
- package/ScreenCapture/ScreenCapture.js +57 -43
- package/Section/Section.js +66 -56
- package/SectionAction/SectionAction.js +17 -13
- package/SectionBoxes/SectionBoxes.js +75 -67
- package/SectionCards/SectionCards.js +86 -76
- package/SectionCarousel/SectionCarousel.js +72 -65
- package/SectionContact/SectionContact.js +65 -58
- package/SectionImageGallery/SectionImageGallery.js +13 -10
- package/SectionLogos/SectionLogos.js +34 -30
- package/SectionMedia/SectionMedia.js +41 -34
- package/SectionReviews/SectionReviews.js +76 -67
- package/SectionTextMedia/SectionTextMedia.js +64 -57
- package/SectionTimeline/SectionTimeline.js +46 -43
- package/SectionWatch/SectionWatch.js +12 -9
- package/Select/Select.js +163 -151
- package/Share/Share.js +165 -151
- package/Slide/Slide.js +29 -26
- package/Slider/Slider.js +87 -81
- package/SmartTextField/SmartTextField.js +453 -361
- package/Snackbar/Snackbar.js +48 -38
- package/Snackbars/Snackbars.js +43 -40
- package/Space/Space.js +731 -630
- package/SpeechToText/SpeechToText.js +20 -14
- package/SpeedDial/SpeedDial.js +84 -65
- package/SpeedDialItem/SpeedDialItem.js +22 -19
- package/SpyScroll/SpyScroll.js +16 -12
- package/Step/Step.js +29 -27
- package/Stepper/Stepper.js +42 -41
- package/Surface/Surface.js +7 -7
- package/Switch/Switch.js +49 -41
- package/Tab/Tab.js +40 -35
- package/Table/Table.js +19 -16
- package/TableBody/TableBody.js +14 -14
- package/TableCell/TableCell.js +37 -30
- package/TableFooter/TableFooter.js +13 -13
- package/TableHead/TableHead.js +25 -21
- package/TableHeader/TableHeader.js +14 -14
- package/TablePagination/TablePagination.js +67 -49
- package/TableRow/TableRow.js +14 -14
- package/Tabs/Tabs.js +55 -49
- package/Text/Text.js +17 -13
- package/TextField/TextField.js +135 -111
- package/TextToSpeech/TextToSpeech.js +20 -14
- package/TimePicker/TimePicker.js +196 -160
- package/TimeRangePicker/TimeRangePicker.js +9 -11
- package/Timeline/Timeline.js +13 -13
- package/TimelineItem/TimelineItem.js +29 -24
- package/Timer/Timer.js +137 -94
- package/ToggleButton/ToggleButton.js +10 -12
- package/ToggleButtons/ToggleButtons.js +9 -11
- package/Tooltip/Tooltip.js +63 -54
- package/TopAppBar/TopAppBar.js +32 -25
- package/Transition/Transition.js +11 -9
- package/Tree/Tree.js +73 -61
- package/Type/Type.js +7 -6
- package/VideoPlayer/VideoPlayer.js +207 -170
- package/ViewSplit/ViewSplit.js +49 -40
- package/Watch/Watch.js +204 -187
- package/Weather/Weather.js +58 -49
- package/Whiteboard/Whiteboard.js +28 -24
- package/Widgets/Widgets.js +60 -54
- package/WindowSplit/WindowSplit.js +59 -52
- package/Zoom/Zoom.js +60 -52
- package/esm/Accordion/Accordion.js +93 -74
- package/esm/AdvancedTextField/AdvancedTextField.js +7 -6
- package/esm/Append/Append.js +24 -19
- package/esm/AreaChart/AreaChart.js +15 -17
- package/esm/AreaChartItem/AreaChartItem.js +63 -58
- package/esm/AudioPlayer/AudioPlayer.js +180 -148
- package/esm/AudioRecorder/AudioRecorder.js +104 -59
- package/esm/AutoComplete/AutoComplete.js +135 -125
- package/esm/AutoCompleteCountry/AutoCompleteCountry.js +10 -11
- package/esm/AutoCompleteCurrency/AutoCompleteCurrency.js +4 -5
- package/esm/Avatar/Avatar.js +11 -8
- package/esm/AvatarGroup/AvatarGroup.js +18 -17
- package/esm/Backdrop/Backdrop.js +30 -21
- package/esm/Badge/Badge.js +18 -17
- package/esm/Banner/Banner.js +15 -12
- package/esm/BottomAppBar/BottomAppBar.js +14 -14
- package/esm/BottomSheet/BottomSheet.js +9 -11
- package/esm/Box/Box.js +12 -12
- package/esm/Breadcrumbs/Breadcrumbs.js +37 -33
- package/esm/BubbleChart/BubbleChart.js +159 -134
- package/esm/BubbleChartItem/BubbleChartItem.js +48 -43
- package/esm/Button/Button.js +45 -38
- package/esm/Buttons/Buttons.js +33 -28
- package/esm/Calendar/Calendar.js +357 -315
- package/esm/CalendarAvailability/CalendarAvailability.js +348 -295
- package/esm/CalendarMenu/CalendarMenu.js +93 -79
- package/esm/CalendarMonth/CalendarMonth.js +113 -102
- package/esm/CalendarViews/CalendarViews.js +138 -115
- package/esm/CalendarWeek/CalendarWeek.js +177 -155
- package/esm/Card/Card.js +16 -15
- package/esm/CardButton/CardButton.js +11 -10
- package/esm/CardFooter/CardFooter.js +12 -12
- package/esm/CardHeader/CardHeader.js +13 -13
- package/esm/CardImage/CardImage.js +10 -12
- package/esm/CardMain/CardMain.js +12 -12
- package/esm/Carousel/Carousel.js +140 -124
- package/esm/Chart/Chart.js +433 -388
- package/esm/Checkbox/Checkbox.js +46 -43
- package/esm/Chip/Chip.js +12 -11
- package/esm/Chips/Chips.js +20 -20
- package/esm/ClickListener/ClickListener.js +19 -15
- package/esm/Clock/Clock.js +38 -36
- package/esm/ColorTextField/ColorTextField.js +33 -27
- package/esm/ColumnChart/ColumnChart.js +16 -17
- package/esm/ColumnChartItem/ColumnChartItem.js +35 -31
- package/esm/Confirm/Confirm.js +51 -35
- package/esm/Container/Container.js +9 -6
- package/esm/CookieBanner/CookieBanner.js +55 -41
- package/esm/Countdown/Countdown.js +163 -123
- package/esm/DatePicker/DatePicker.js +236 -197
- package/esm/DateRangePicker/DateRangePicker.js +9 -11
- package/esm/DateTimePicker/DateTimePicker.js +127 -103
- package/esm/DateTimeRangePicker/DateTimeRangePicker.js +9 -11
- package/esm/Divider/Divider.js +25 -21
- package/esm/DonutChart/DonutChart.js +9 -11
- package/esm/DragAndDropList/DragAndDropList.js +8 -4
- package/esm/Drawing/Drawing.js +368 -311
- package/esm/DropZone/DropZone.js +20 -15
- package/esm/Emojis/Emojis.js +95 -85
- package/esm/Expand/Expand.js +77 -69
- package/esm/Fab/Fab.js +4 -6
- package/esm/Fade/Fade.js +64 -58
- package/esm/FileChoose/FileChoose.js +69 -60
- package/esm/Focus/Focus.js +19 -16
- package/esm/Form/Form.js +69 -57
- package/esm/FormRow/FormRow.js +49 -38
- package/esm/Forms/Forms.js +13 -13
- package/esm/Frame/Frame.js +62 -54
- package/esm/Grid/Grid.js +13 -10
- package/esm/Grow/Grow.js +60 -52
- package/esm/HTMLCanvas/HTMLCanvas.js +88 -74
- package/esm/IFrame/IFrame.js +33 -27
- package/esm/Icon/Icon.js +14 -14
- package/esm/IconButton/IconButton.js +12 -14
- package/esm/Image/Image.js +19 -15
- package/esm/ImageCrop/ImageCrop.js +96 -87
- package/esm/ImageEdit/ImageEdit.js +355 -290
- package/esm/ImageGallery/ImageGallery.js +104 -86
- package/esm/ImageList/ImageList.js +16 -11
- package/esm/ImageListItem/ImageListItem.js +9 -6
- package/esm/ImageListItemBox/ImageListItemBox.js +12 -12
- package/esm/Info/Info.js +38 -27
- package/esm/Interaction/Interaction.js +57 -52
- package/esm/Keyframes/Keyframes.js +11 -9
- package/esm/Label/Label.js +59 -50
- package/esm/Labels/Labels.js +30 -26
- package/esm/Line/Line.js +10 -7
- package/esm/LineChart/LineChart.js +16 -17
- package/esm/LineChartItem/LineChartItem.js +30 -26
- package/esm/LinearMeter/LinearMeter.js +92 -87
- package/esm/LinearProgress/LinearProgress.js +27 -22
- package/esm/Link/Link.js +7 -6
- package/esm/Links/Links.js +125 -115
- package/esm/List/List.js +23 -21
- package/esm/ListItem/ListItem.js +68 -58
- package/esm/ListSubheader/ListSubheader.js +9 -11
- package/esm/MainProgress/MainProgress.js +14 -12
- package/esm/MainProgressMaterial/MainProgressMaterial.js +16 -14
- package/esm/Markdown/Markdown.js +6 -5
- package/esm/Masonry/Masonry.js +26 -22
- package/esm/Medias/Medias.js +95 -93
- package/esm/Menu/Menu.js +51 -45
- package/esm/MenuDesktop/MenuDesktop.js +139 -128
- package/esm/MenuItem/MenuItem.js +75 -64
- package/esm/Meta/Meta.js +21 -19
- package/esm/Modal/Modal.js +52 -39
- package/esm/ModalFooter/ModalFooter.js +12 -12
- package/esm/ModalHeader/ModalHeader.js +12 -12
- package/esm/ModalIcon/ModalIcon.js +55 -13
- package/esm/ModalMain/ModalMain.js +12 -12
- package/esm/ModalText/ModalText.js +12 -12
- package/esm/ModalTitle/ModalTitle.js +12 -12
- package/esm/MoreOptions/MoreOptions.js +14 -12
- package/esm/Move/Move.js +9 -6
- package/esm/NavigationBar/NavigationBar.js +7 -6
- package/esm/NavigationDrawer/NavigationDrawer.js +7 -6
- package/esm/NavigationItem/NavigationItem.js +58 -48
- package/esm/NavigationRail/NavigationRail.js +25 -22
- package/esm/NotFound/NotFound.js +21 -18
- package/esm/NumericTextField/NumericTextField.js +14 -9
- package/esm/Page/Page.js +50 -38
- package/esm/PageTransition/PageTransition.js +8 -7
- package/esm/Pagination/Pagination.js +41 -31
- package/esm/PaginationItem/PaginationItem.js +20 -18
- package/esm/Parallax/Parallax.js +4 -3
- package/esm/Path/Path.js +9 -11
- package/esm/PieChart/PieChart.js +96 -79
- package/esm/Placeholder/Placeholder.js +15 -12
- package/esm/Portal/Portal.js +41 -18
- package/esm/Properties/Properties.js +17 -18
- package/esm/Property/Property.js +24 -17
- package/esm/Radio/Radio.js +25 -21
- package/esm/Radios/Radios.js +30 -26
- package/esm/Rating/Rating.js +35 -30
- package/esm/Reset/Reset.js +4 -1
- package/esm/Reveal/Reveal.js +17 -13
- package/esm/RichTextEditor/RichTextEditor.js +1011 -824
- package/esm/RoundMeter/RoundMeter.js +98 -93
- package/esm/RoundProgress/RoundProgress.js +36 -32
- package/esm/ScatterChart/ScatterChart.js +15 -17
- package/esm/ScatterChartItem/ScatterChartItem.js +36 -34
- package/esm/ScreenCapture/ScreenCapture.js +57 -43
- package/esm/Section/Section.js +66 -56
- package/esm/SectionAction/SectionAction.js +17 -13
- package/esm/SectionBoxes/SectionBoxes.js +75 -67
- package/esm/SectionCards/SectionCards.js +86 -76
- package/esm/SectionCarousel/SectionCarousel.js +72 -65
- package/esm/SectionContact/SectionContact.js +65 -58
- package/esm/SectionImageGallery/SectionImageGallery.js +13 -10
- package/esm/SectionLogos/SectionLogos.js +34 -30
- package/esm/SectionMedia/SectionMedia.js +41 -34
- package/esm/SectionReviews/SectionReviews.js +74 -65
- package/esm/SectionTextMedia/SectionTextMedia.js +64 -57
- package/esm/SectionTimeline/SectionTimeline.js +46 -43
- package/esm/SectionWatch/SectionWatch.js +12 -9
- package/esm/Select/Select.js +161 -149
- package/esm/Share/Share.js +165 -151
- package/esm/Slide/Slide.js +28 -25
- package/esm/Slider/Slider.js +86 -80
- package/esm/SmartTextField/SmartTextField.js +450 -358
- package/esm/Snackbar/Snackbar.js +48 -38
- package/esm/Snackbars/Snackbars.js +40 -37
- package/esm/Space/Space.js +731 -630
- package/esm/SpeechToText/SpeechToText.js +20 -14
- package/esm/SpeedDial/SpeedDial.js +84 -65
- package/esm/SpeedDialItem/SpeedDialItem.js +22 -19
- package/esm/SpyScroll/SpyScroll.js +16 -12
- package/esm/Step/Step.js +29 -27
- package/esm/Stepper/Stepper.js +42 -41
- package/esm/Surface/Surface.js +7 -7
- package/esm/Switch/Switch.js +49 -41
- package/esm/Tab/Tab.js +40 -35
- package/esm/Table/Table.js +19 -16
- package/esm/TableBody/TableBody.js +14 -14
- package/esm/TableCell/TableCell.js +37 -30
- package/esm/TableFooter/TableFooter.js +13 -13
- package/esm/TableHead/TableHead.js +25 -21
- package/esm/TableHeader/TableHeader.js +14 -14
- package/esm/TablePagination/TablePagination.js +67 -49
- package/esm/TableRow/TableRow.js +14 -14
- package/esm/Tabs/Tabs.js +55 -49
- package/esm/Text/Text.js +17 -13
- package/esm/TextField/TextField.js +129 -105
- package/esm/TextToSpeech/TextToSpeech.js +20 -14
- package/esm/TimePicker/TimePicker.js +196 -160
- package/esm/TimeRangePicker/TimeRangePicker.js +9 -11
- package/esm/Timeline/Timeline.js +13 -13
- package/esm/TimelineItem/TimelineItem.js +29 -24
- package/esm/Timer/Timer.js +137 -94
- package/esm/ToggleButton/ToggleButton.js +10 -12
- package/esm/ToggleButtons/ToggleButtons.js +9 -11
- package/esm/Tooltip/Tooltip.js +62 -53
- package/esm/TopAppBar/TopAppBar.js +32 -25
- package/esm/Transition/Transition.js +11 -9
- package/esm/Tree/Tree.js +73 -61
- package/esm/Type/Type.js +7 -6
- package/esm/VideoPlayer/VideoPlayer.js +207 -170
- package/esm/ViewSplit/ViewSplit.js +49 -40
- package/esm/Watch/Watch.js +204 -187
- package/esm/Weather/Weather.js +58 -49
- package/esm/Whiteboard/Whiteboard.js +28 -24
- package/esm/Widgets/Widgets.js +57 -51
- package/esm/WindowSplit/WindowSplit.js +59 -52
- package/esm/Zoom/Zoom.js +60 -52
- package/esm/index.js +1 -1
- package/esm/useSubscription/useSubscription.js +25 -73
- package/index.js +1 -1
- package/package.json +3 -3
- package/useSubscription/useSubscription.js +25 -73
package/Drawing/Drawing.js
CHANGED
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
8
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
10
|
var _react = _interopRequireDefault(require("react"));
|
|
@@ -31,11 +30,12 @@ var _Append = _interopRequireDefault(require("../Append"));
|
|
|
31
30
|
var _Fade = _interopRequireDefault(require("../Fade"));
|
|
32
31
|
var _ClickListener = _interopRequireDefault(require("../ClickListener"));
|
|
33
32
|
var _utils2 = require("../utils");
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
34
|
+
const _excluded = ["ref", "tonal", "color", "version", "render", "updates", "actions", "exclude", "downloadName", "downloadType", "downloadQuality", "viewBox", "strokeColor", "strokeWidth", "svgRef", "valueDefault", "value", "onChange", "onMouseDown", "onClear", "onDownload", "IconClear", "IconDownload", "IconSize", "IconStrokeColor", "IconProps", "SizeProps", "AppendProps", "ToolbarProps", "ToolbarUpdatesProps", "ToolbarActionsProps", "ToggleButtonProps", "ToggleButtonsProps", "DividerProps", "SelectProps", "ListItemProps", "TooltipProps", "PaletteProps", "IconButtonProps", "ColorTextFieldProps", "Component", "className"],
|
|
35
|
+
_excluded2 = ["ref", "open", "label", "children"],
|
|
36
36
|
_excluded3 = ["open", "element", "anchorElement", "onClose", "children"],
|
|
37
37
|
_excluded4 = ["color"],
|
|
38
|
-
_excluded5 = ["version", "onUpdate", "onClose"];
|
|
38
|
+
_excluded5 = ["ref", "version", "onUpdate", "onClose"];
|
|
39
39
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
40
40
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
41
41
|
const useStyle = (0, _styleReact.style)(theme => ({
|
|
@@ -122,7 +122,7 @@ const useStyle = (0, _styleReact.style)(theme => ({
|
|
|
122
122
|
}), {
|
|
123
123
|
name: 'onesy-Drawing'
|
|
124
124
|
});
|
|
125
|
-
const Drawing =
|
|
125
|
+
const Drawing = props__ => {
|
|
126
126
|
var _theme$ui, _theme$ui2, _theme$elements, _theme$elements2, _theme$elements3, _theme$elements4, _theme$elements5, _theme$elements6, _theme$elements7, _theme$elements8, _theme$elements9, _theme$elements0, _theme$elements1, _theme$elements10, _theme$elements11, _theme$elements12, _theme$elements13;
|
|
127
127
|
const theme = (0, _styleReact.useOnesyTheme)();
|
|
128
128
|
const l = theme.l;
|
|
@@ -143,6 +143,7 @@ const Drawing = /*#__PURE__*/_react.default.forwardRef((props__, ref) => {
|
|
|
143
143
|
const Fade = (theme === null || theme === void 0 || (_theme$elements12 = theme.elements) === null || _theme$elements12 === void 0 ? void 0 : _theme$elements12.Fade) || _Fade.default;
|
|
144
144
|
const ClickListener = (theme === null || theme === void 0 || (_theme$elements13 = theme.elements) === null || _theme$elements13 === void 0 ? void 0 : _theme$elements13.ClickListener) || _ClickListener.default;
|
|
145
145
|
const {
|
|
146
|
+
ref,
|
|
146
147
|
tonal = true,
|
|
147
148
|
color = 'default',
|
|
148
149
|
version = 'filled',
|
|
@@ -425,19 +426,22 @@ const Drawing = /*#__PURE__*/_react.default.forwardRef((props__, ref) => {
|
|
|
425
426
|
const IconProps = _objectSpread({
|
|
426
427
|
size: 'small'
|
|
427
428
|
}, IconProps_);
|
|
428
|
-
const WrapperToggleButton =
|
|
429
|
+
const WrapperToggleButton = props_ => {
|
|
429
430
|
const {
|
|
431
|
+
ref: ref_,
|
|
430
432
|
open: open_,
|
|
431
433
|
label,
|
|
432
434
|
children
|
|
433
435
|
} = props_,
|
|
434
436
|
other_ = (0, _objectWithoutProperties2.default)(props_, _excluded2);
|
|
435
|
-
return /*#__PURE__*/
|
|
437
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, _objectSpread(_objectSpread({
|
|
436
438
|
ref: ref_,
|
|
437
439
|
open: open_ !== undefined ? open_ : undefined,
|
|
438
440
|
name: label
|
|
439
|
-
}, TooltipProps),
|
|
440
|
-
|
|
441
|
+
}, TooltipProps), {}, {
|
|
442
|
+
children: /*#__PURE__*/_react.default.cloneElement(children, _objectSpread(_objectSpread({}, other_), children.props))
|
|
443
|
+
}));
|
|
444
|
+
};
|
|
441
445
|
const WrapperAppend = props__0 => {
|
|
442
446
|
const {
|
|
443
447
|
open: open__0,
|
|
@@ -447,38 +451,44 @@ const Drawing = /*#__PURE__*/_react.default.forwardRef((props__, ref) => {
|
|
|
447
451
|
children: children_0
|
|
448
452
|
} = props__0,
|
|
449
453
|
other__0 = (0, _objectWithoutProperties2.default)(props__0, _excluded3);
|
|
450
|
-
return /*#__PURE__*/
|
|
454
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Append, _objectSpread(_objectSpread({
|
|
451
455
|
open: open__0,
|
|
452
|
-
element: /*#__PURE__*/
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
+
element: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
457
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Fade, {
|
|
458
|
+
in: open__0,
|
|
459
|
+
add: true,
|
|
460
|
+
children: /*#__PURE__*/_react.default.cloneElement(element)
|
|
461
|
+
})
|
|
462
|
+
}),
|
|
456
463
|
anchorElement: anchorElement,
|
|
457
464
|
portal: true,
|
|
458
465
|
alignment: "center",
|
|
459
466
|
position: "bottom"
|
|
460
|
-
}, AppendProps),
|
|
467
|
+
}, AppendProps), {}, {
|
|
468
|
+
children: /*#__PURE__*/_react.default.cloneElement(children_0, _objectSpread(_objectSpread({}, other__0), children_0.props))
|
|
469
|
+
}));
|
|
461
470
|
};
|
|
462
471
|
const PaletteItem = props__1 => {
|
|
463
472
|
const {
|
|
464
473
|
color: color_
|
|
465
474
|
} = props__1,
|
|
466
475
|
other__1 = (0, _objectWithoutProperties2.default)(props__1, _excluded4);
|
|
467
|
-
return /*#__PURE__*/
|
|
476
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", _objectSpread({
|
|
468
477
|
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Drawing', theme) && ['onesy-Drawing-palette-item'], classes.paletteItem]),
|
|
469
478
|
style: {
|
|
470
479
|
background: color_
|
|
471
480
|
}
|
|
472
481
|
}, other__1));
|
|
473
482
|
};
|
|
474
|
-
const Palette =
|
|
483
|
+
const Palette = props__2 => {
|
|
475
484
|
const {
|
|
485
|
+
ref: ref__0,
|
|
476
486
|
version: version_,
|
|
477
487
|
onUpdate,
|
|
478
488
|
onClose: onClose_0
|
|
479
489
|
} = props__2,
|
|
480
490
|
other__2 = (0, _objectWithoutProperties2.default)(props__2, _excluded5);
|
|
481
|
-
return /*#__PURE__*/
|
|
491
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, _objectSpread(_objectSpread({
|
|
482
492
|
ref: ref__0,
|
|
483
493
|
gap: 1,
|
|
484
494
|
direction: "column",
|
|
@@ -486,129 +496,142 @@ const Drawing = /*#__PURE__*/_react.default.forwardRef((props__, ref) => {
|
|
|
486
496
|
color: refs.props.current.color !== undefined ? refs.props.current.color : 'themed',
|
|
487
497
|
Component: Surface,
|
|
488
498
|
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Drawing', theme) && ['onesy-Drawing-palette'], classes.palette])
|
|
489
|
-
}, other__2),
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
499
|
+
}, other__2), {}, {
|
|
500
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
|
|
501
|
+
gap: 0.5,
|
|
502
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
|
|
503
|
+
gap: 0.5,
|
|
504
|
+
direction: "row",
|
|
505
|
+
style: {
|
|
506
|
+
width: '100%'
|
|
507
|
+
},
|
|
508
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(PaletteItem, {
|
|
509
|
+
color: "#000000",
|
|
510
|
+
onClick: () => {
|
|
511
|
+
onUpdate('#000000');
|
|
512
|
+
onClose_0();
|
|
513
|
+
}
|
|
514
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(PaletteItem, {
|
|
515
|
+
color: "#ffffff",
|
|
516
|
+
onClick: () => {
|
|
517
|
+
onUpdate('#ffffff');
|
|
518
|
+
onClose_0();
|
|
519
|
+
}
|
|
520
|
+
})]
|
|
521
|
+
}), Object.keys(_styleReact.colors).filter(item_0 => !['black', 'white'].includes(item_0)).map((item_1, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, {
|
|
522
|
+
gap: 0.5,
|
|
523
|
+
direction: "row",
|
|
524
|
+
style: {
|
|
525
|
+
width: '100%'
|
|
526
|
+
},
|
|
527
|
+
children: Object.keys(_styleReact.colors[item_1]).map((item_, index_) => /*#__PURE__*/(0, _jsxRuntime.jsx)(PaletteItem, {
|
|
528
|
+
color: _styleReact.colors[item_1][item_],
|
|
529
|
+
onClick: () => {
|
|
530
|
+
onUpdate(_styleReact.colors[item_1][item_]);
|
|
531
|
+
onClose_0();
|
|
532
|
+
}
|
|
533
|
+
}, index_))
|
|
534
|
+
}, index))]
|
|
535
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Divider, {}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
|
|
536
|
+
gap: 0.5,
|
|
537
|
+
direction: "row",
|
|
538
|
+
align: "center",
|
|
539
|
+
style: {
|
|
540
|
+
width: '100%'
|
|
541
|
+
},
|
|
542
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(ColorTextField, _objectSpread(_objectSpread({
|
|
543
|
+
tonal: tonal,
|
|
544
|
+
color: color,
|
|
545
|
+
name: l('Custom color'),
|
|
546
|
+
version: "outlined",
|
|
547
|
+
size: "small",
|
|
548
|
+
value: refs.inputValues.current[version_],
|
|
549
|
+
onChange: valueNew_1 => updateInputValues(version_, valueNew_1)
|
|
550
|
+
}, ColorTextFieldProps), {}, {
|
|
551
|
+
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Drawing', theme) && ['onesy-Drawing-text-field-color'], ColorTextFieldProps === null || ColorTextFieldProps === void 0 ? void 0 : ColorTextFieldProps.className, classes.textFieldColor])
|
|
552
|
+
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(Button, {
|
|
553
|
+
tonal: tonal,
|
|
554
|
+
color: "inherit",
|
|
555
|
+
version: "text",
|
|
556
|
+
size: "small",
|
|
557
|
+
onClick: () => {
|
|
558
|
+
onUpdate(refs.inputValues.current[version_]);
|
|
559
|
+
onClose_0();
|
|
560
|
+
},
|
|
561
|
+
children: l('Apply')
|
|
562
|
+
})]
|
|
563
|
+
})]
|
|
564
|
+
}));
|
|
565
|
+
};
|
|
551
566
|
const valueNew_ = ((0, _utils.is)('array', value) ? value : [value]).filter(Boolean);
|
|
552
567
|
const valueNewActive = mouseDown && valueNew_[valueNew_.length - 1];
|
|
553
568
|
const circleStrokeWidth = +(valueNewActive ? valueNewActive.strokeWidth : refs.inputValues.current.strokeWidth);
|
|
554
569
|
const stroke_width = [{
|
|
555
|
-
label: /*#__PURE__*/
|
|
570
|
+
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
|
|
556
571
|
direction: "row",
|
|
557
|
-
align: "center"
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
572
|
+
align: "center",
|
|
573
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
574
|
+
style: {
|
|
575
|
+
width: 14,
|
|
576
|
+
height: 1,
|
|
577
|
+
background: theme.palette.text.default.primary
|
|
578
|
+
}
|
|
579
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Type, {
|
|
580
|
+
version: "b2",
|
|
581
|
+
children: "1"
|
|
582
|
+
})]
|
|
583
|
+
}),
|
|
567
584
|
value: 1
|
|
568
585
|
}, {
|
|
569
|
-
label: /*#__PURE__*/
|
|
586
|
+
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
|
|
570
587
|
direction: "row",
|
|
571
|
-
align: "center"
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
588
|
+
align: "center",
|
|
589
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
590
|
+
style: {
|
|
591
|
+
width: 14,
|
|
592
|
+
height: 2,
|
|
593
|
+
background: theme.palette.text.default.primary
|
|
594
|
+
}
|
|
595
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Type, {
|
|
596
|
+
version: "b2",
|
|
597
|
+
children: "2"
|
|
598
|
+
})]
|
|
599
|
+
}),
|
|
581
600
|
value: 2
|
|
582
601
|
}, {
|
|
583
|
-
label: /*#__PURE__*/
|
|
602
|
+
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
|
|
584
603
|
direction: "row",
|
|
585
|
-
align: "center"
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
604
|
+
align: "center",
|
|
605
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
606
|
+
style: {
|
|
607
|
+
width: 14,
|
|
608
|
+
height: 4,
|
|
609
|
+
background: theme.palette.text.default.primary
|
|
610
|
+
}
|
|
611
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Type, {
|
|
612
|
+
version: "b2",
|
|
613
|
+
children: "4"
|
|
614
|
+
})]
|
|
615
|
+
}),
|
|
595
616
|
value: 4
|
|
596
617
|
}, {
|
|
597
|
-
label: /*#__PURE__*/
|
|
618
|
+
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
|
|
598
619
|
direction: "row",
|
|
599
|
-
align: "center"
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
620
|
+
align: "center",
|
|
621
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
622
|
+
style: {
|
|
623
|
+
width: 14,
|
|
624
|
+
height: 8,
|
|
625
|
+
background: theme.palette.text.default.primary
|
|
626
|
+
}
|
|
627
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Type, {
|
|
628
|
+
version: "b2",
|
|
629
|
+
children: "8"
|
|
630
|
+
})]
|
|
631
|
+
}),
|
|
609
632
|
value: 8
|
|
610
633
|
}];
|
|
611
|
-
return /*#__PURE__*/
|
|
634
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Surface, _objectSpread(_objectSpread({
|
|
612
635
|
ref: item_2 => {
|
|
613
636
|
if (ref) {
|
|
614
637
|
if ((0, _utils.is)('function', ref)) ref(item_2);else ref.current = item_2;
|
|
@@ -620,195 +643,229 @@ const Drawing = /*#__PURE__*/_react.default.forwardRef((props__, ref) => {
|
|
|
620
643
|
version: version,
|
|
621
644
|
Component: Component,
|
|
622
645
|
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Drawing', theme) && ['onesy-Drawing-root', updates && `onesy-Drawing-updates`, actions && `onesy-Drawing-actions`], className, classes.root])
|
|
623
|
-
}, other),
|
|
624
|
-
|
|
625
|
-
color: color,
|
|
626
|
-
version: version,
|
|
627
|
-
gap: 0,
|
|
628
|
-
direction: "column",
|
|
629
|
-
align: "unset",
|
|
630
|
-
justify: "unset",
|
|
631
|
-
Component: Surface
|
|
632
|
-
}, ToolbarProps, {
|
|
633
|
-
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Drawing', theme) && ['onesy-Drawing-toolbars'], ToolbarProps === null || ToolbarProps === void 0 ? void 0 : ToolbarProps.className, classes.toolbars])
|
|
634
|
-
}), updates_ && /*#__PURE__*/_react.default.createElement(Line, (0, _extends2.default)({
|
|
635
|
-
gap: 2,
|
|
636
|
-
direction: "row",
|
|
637
|
-
align: "center",
|
|
638
|
-
justify: "flex-start"
|
|
639
|
-
}, ToolbarUpdatesProps, {
|
|
640
|
-
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Drawing', theme) && ['onesy-Drawing-toolbar'], ToolbarUpdatesProps === null || ToolbarUpdatesProps === void 0 ? void 0 : ToolbarUpdatesProps.className, classes.toolbar, classes.toolbar_updates])
|
|
641
|
-
}), includes('stroke-width') && /*#__PURE__*/_react.default.createElement(Line, {
|
|
642
|
-
gap: 1,
|
|
643
|
-
direction: "row",
|
|
644
|
-
align: "center",
|
|
645
|
-
justify: "flex-start"
|
|
646
|
-
}, includes('stroke-width') && /*#__PURE__*/_react.default.createElement(Select, (0, _extends2.default)({
|
|
647
|
-
name: l('Stroke Width'),
|
|
648
|
-
valueDefault: stroke_width.find(item_3 => String(item_3.value).includes('1')).value,
|
|
649
|
-
value: inputValues['strokeWidth'],
|
|
650
|
-
onChange: valueNew_2 => updateInputValues('strokeWidth', valueNew_2)
|
|
651
|
-
}, SelectProps, {
|
|
652
|
-
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Drawing', theme) && ['onesy-Drawing-select'], SelectProps === null || SelectProps === void 0 ? void 0 : SelectProps.className, classes.select]),
|
|
653
|
-
style: {
|
|
654
|
-
minWidth: '90px'
|
|
655
|
-
}
|
|
656
|
-
}), stroke_width.map(item_4 => /*#__PURE__*/_react.default.createElement(ListItem, (0, _extends2.default)({
|
|
657
|
-
key: item_4.value,
|
|
658
|
-
primary: item_4.label,
|
|
659
|
-
value: item_4.value,
|
|
660
|
-
button: true
|
|
661
|
-
}, ListItemProps))))), includes('stroke-color') && /*#__PURE__*/_react.default.createElement(ToggleButtons, ToggleButtonsProps, includes('stroke-color') && /*#__PURE__*/_react.default.createElement(WrapperAppend, {
|
|
662
|
-
open: refs.open.current.strokeColor,
|
|
663
|
-
anchorElement: refs.elements.strokeColor.current,
|
|
664
|
-
element: /*#__PURE__*/_react.default.createElement(ClickListener, {
|
|
665
|
-
onClickOutside: () => updateOpen('strokeColor', false),
|
|
666
|
-
include: [refs.elements.strokeColor, refs.elements.strokeColor.current]
|
|
667
|
-
}, /*#__PURE__*/_react.default.createElement(Palette, (0, _extends2.default)({
|
|
668
|
-
onClose: () => updateOpen('strokeColor', false),
|
|
669
|
-
onUpdate: valueNew_3 => updateInputValues('strokeColor', valueNew_3)
|
|
670
|
-
}, PaletteProps)))
|
|
671
|
-
}, /*#__PURE__*/_react.default.createElement(WrapperToggleButton, {
|
|
672
|
-
name: l('Stroke Color'),
|
|
673
|
-
open: refs.open.current.strokeColor ? false : undefined
|
|
674
|
-
}, (0, _utils.is)('function', render) ? render('stroke-color', ToggleButtonProps, refs.value.current) : /*#__PURE__*/_react.default.createElement(ToggleButton, (0, _extends2.default)({
|
|
675
|
-
ref: refs.elements.strokeColor
|
|
676
|
-
}, ToggleButtonProps, {
|
|
677
|
-
selected: refs.open.current.strokeColor,
|
|
678
|
-
onClick: () => updateOpen('strokeColor', !refs.open.current.strokeColor)
|
|
679
|
-
}), /*#__PURE__*/_react.default.createElement(IconStrokeColor, IconProps))))), includes('size') && /*#__PURE__*/_react.default.createElement(ToggleButtons, ToggleButtonsProps, includes('size') && /*#__PURE__*/_react.default.createElement(WrapperAppend, {
|
|
680
|
-
open: refs.open.current.size,
|
|
681
|
-
anchorElement: refs.elements.size.current,
|
|
682
|
-
element: /*#__PURE__*/_react.default.createElement(ClickListener, {
|
|
683
|
-
onClickOutside: () => updateOpen('size', false),
|
|
684
|
-
include: [refs.elements.size]
|
|
685
|
-
}, /*#__PURE__*/_react.default.createElement(Line, (0, _extends2.default)({
|
|
686
|
-
gap: 1,
|
|
687
|
-
tonal: tonal,
|
|
688
|
-
color: refs.props.current.color !== undefined ? refs.props.current.color : 'themed',
|
|
689
|
-
Component: Surface,
|
|
690
|
-
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Drawing', theme) && ['onesy-Drawing-modal'], classes.modal])
|
|
691
|
-
}, SizeProps), /*#__PURE__*/_react.default.createElement(Line, {
|
|
692
|
-
gap: 1,
|
|
693
|
-
direction: "row",
|
|
694
|
-
align: "center",
|
|
695
|
-
justify: "center"
|
|
696
|
-
}, /*#__PURE__*/_react.default.createElement(NumericTextField, {
|
|
697
|
-
name: l('Width'),
|
|
698
|
-
tonal: tonal,
|
|
699
|
-
color: color,
|
|
700
|
-
size: "small",
|
|
701
|
-
version: "outlined",
|
|
702
|
-
min: 1,
|
|
703
|
-
increment: false,
|
|
704
|
-
decrement: false,
|
|
705
|
-
value: refs.inputValues.current.widthInput,
|
|
706
|
-
onChange: valueNew_4 => updateInputValues('widthInput', !valueNew_4 ? 1 : valueNew_4)
|
|
707
|
-
}), "\xD7", /*#__PURE__*/_react.default.createElement(NumericTextField, {
|
|
708
|
-
name: l('Height'),
|
|
646
|
+
}, other), {}, {
|
|
647
|
+
children: [(updates || actions_) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, _objectSpread(_objectSpread({
|
|
709
648
|
tonal: tonal,
|
|
710
649
|
color: color,
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
650
|
+
version: version,
|
|
651
|
+
gap: 0,
|
|
652
|
+
direction: "column",
|
|
653
|
+
align: "unset",
|
|
654
|
+
justify: "unset",
|
|
655
|
+
Component: Surface
|
|
656
|
+
}, ToolbarProps), {}, {
|
|
657
|
+
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Drawing', theme) && ['onesy-Drawing-toolbars'], ToolbarProps === null || ToolbarProps === void 0 ? void 0 : ToolbarProps.className, classes.toolbars]),
|
|
658
|
+
children: [updates_ && /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, _objectSpread(_objectSpread({
|
|
659
|
+
gap: 2,
|
|
660
|
+
direction: "row",
|
|
661
|
+
align: "center",
|
|
662
|
+
justify: "flex-start"
|
|
663
|
+
}, ToolbarUpdatesProps), {}, {
|
|
664
|
+
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Drawing', theme) && ['onesy-Drawing-toolbar'], ToolbarUpdatesProps === null || ToolbarUpdatesProps === void 0 ? void 0 : ToolbarUpdatesProps.className, classes.toolbar, classes.toolbar_updates]),
|
|
665
|
+
children: [includes('stroke-width') && /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, {
|
|
666
|
+
gap: 1,
|
|
667
|
+
direction: "row",
|
|
668
|
+
align: "center",
|
|
669
|
+
justify: "flex-start",
|
|
670
|
+
children: includes('stroke-width') && /*#__PURE__*/(0, _jsxRuntime.jsx)(Select, _objectSpread(_objectSpread({
|
|
671
|
+
name: l('Stroke Width'),
|
|
672
|
+
valueDefault: stroke_width.find(item_3 => String(item_3.value).includes('1')).value,
|
|
673
|
+
value: inputValues['strokeWidth'],
|
|
674
|
+
onChange: valueNew_2 => updateInputValues('strokeWidth', valueNew_2)
|
|
675
|
+
}, SelectProps), {}, {
|
|
676
|
+
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Drawing', theme) && ['onesy-Drawing-select'], SelectProps === null || SelectProps === void 0 ? void 0 : SelectProps.className, classes.select]),
|
|
677
|
+
style: {
|
|
678
|
+
minWidth: '90px'
|
|
679
|
+
},
|
|
680
|
+
children: stroke_width.map(item_4 => /*#__PURE__*/(0, _jsxRuntime.jsx)(ListItem, _objectSpread({
|
|
681
|
+
primary: item_4.label,
|
|
682
|
+
value: item_4.value,
|
|
683
|
+
button: true
|
|
684
|
+
}, ListItemProps), item_4.value))
|
|
685
|
+
}))
|
|
686
|
+
}), includes('stroke-color') && /*#__PURE__*/(0, _jsxRuntime.jsx)(ToggleButtons, _objectSpread(_objectSpread({}, ToggleButtonsProps), {}, {
|
|
687
|
+
children: includes('stroke-color') && /*#__PURE__*/(0, _jsxRuntime.jsx)(WrapperAppend, {
|
|
688
|
+
open: refs.open.current.strokeColor,
|
|
689
|
+
anchorElement: refs.elements.strokeColor.current,
|
|
690
|
+
element: /*#__PURE__*/(0, _jsxRuntime.jsx)(ClickListener, {
|
|
691
|
+
onClickOutside: () => updateOpen('strokeColor', false),
|
|
692
|
+
include: [refs.elements.strokeColor, refs.elements.strokeColor.current],
|
|
693
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Palette, _objectSpread({
|
|
694
|
+
onClose: () => updateOpen('strokeColor', false),
|
|
695
|
+
onUpdate: valueNew_3 => updateInputValues('strokeColor', valueNew_3)
|
|
696
|
+
}, PaletteProps))
|
|
697
|
+
}),
|
|
698
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(WrapperToggleButton, {
|
|
699
|
+
name: l('Stroke Color'),
|
|
700
|
+
open: refs.open.current.strokeColor ? false : undefined,
|
|
701
|
+
children: (0, _utils.is)('function', render) ? render('stroke-color', ToggleButtonProps, refs.value.current) : /*#__PURE__*/(0, _jsxRuntime.jsx)(ToggleButton, _objectSpread(_objectSpread({
|
|
702
|
+
ref: refs.elements.strokeColor
|
|
703
|
+
}, ToggleButtonProps), {}, {
|
|
704
|
+
selected: refs.open.current.strokeColor,
|
|
705
|
+
onClick: () => updateOpen('strokeColor', !refs.open.current.strokeColor),
|
|
706
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconStrokeColor, _objectSpread({}, IconProps))
|
|
707
|
+
}))
|
|
708
|
+
})
|
|
709
|
+
})
|
|
710
|
+
})), includes('size') && /*#__PURE__*/(0, _jsxRuntime.jsx)(ToggleButtons, _objectSpread(_objectSpread({}, ToggleButtonsProps), {}, {
|
|
711
|
+
children: includes('size') && /*#__PURE__*/(0, _jsxRuntime.jsx)(WrapperAppend, {
|
|
712
|
+
open: refs.open.current.size,
|
|
713
|
+
anchorElement: refs.elements.size.current,
|
|
714
|
+
element: /*#__PURE__*/(0, _jsxRuntime.jsx)(ClickListener, {
|
|
715
|
+
onClickOutside: () => updateOpen('size', false),
|
|
716
|
+
include: [refs.elements.size],
|
|
717
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, _objectSpread(_objectSpread({
|
|
718
|
+
gap: 1,
|
|
719
|
+
tonal: tonal,
|
|
720
|
+
color: refs.props.current.color !== undefined ? refs.props.current.color : 'themed',
|
|
721
|
+
Component: Surface,
|
|
722
|
+
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Drawing', theme) && ['onesy-Drawing-modal'], classes.modal])
|
|
723
|
+
}, SizeProps), {}, {
|
|
724
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
|
|
725
|
+
gap: 1,
|
|
726
|
+
direction: "row",
|
|
727
|
+
align: "center",
|
|
728
|
+
justify: "center",
|
|
729
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(NumericTextField, {
|
|
730
|
+
name: l('Width'),
|
|
731
|
+
tonal: tonal,
|
|
732
|
+
color: color,
|
|
733
|
+
size: "small",
|
|
734
|
+
version: "outlined",
|
|
735
|
+
min: 1,
|
|
736
|
+
increment: false,
|
|
737
|
+
decrement: false,
|
|
738
|
+
value: refs.inputValues.current.widthInput,
|
|
739
|
+
onChange: valueNew_4 => updateInputValues('widthInput', !valueNew_4 ? 1 : valueNew_4)
|
|
740
|
+
}), "\xD7", /*#__PURE__*/(0, _jsxRuntime.jsx)(NumericTextField, {
|
|
741
|
+
name: l('Height'),
|
|
742
|
+
tonal: tonal,
|
|
743
|
+
color: color,
|
|
744
|
+
size: "small",
|
|
745
|
+
version: "outlined",
|
|
746
|
+
min: 1,
|
|
747
|
+
increment: false,
|
|
748
|
+
decrement: false,
|
|
749
|
+
value: refs.inputValues.current.heightInput,
|
|
750
|
+
onChange: valueNew_5 => updateInputValues('heightInput', !valueNew_5 ? 1 : valueNew_5)
|
|
751
|
+
})]
|
|
752
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, {
|
|
753
|
+
gap: 1,
|
|
754
|
+
direction: "row",
|
|
755
|
+
align: "center",
|
|
756
|
+
justify: "flex-end",
|
|
757
|
+
style: {
|
|
758
|
+
width: '100%'
|
|
759
|
+
},
|
|
760
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Button, {
|
|
761
|
+
tonal: tonal,
|
|
762
|
+
color: "inherit",
|
|
763
|
+
version: "text",
|
|
764
|
+
size: "small",
|
|
765
|
+
onClick: () => {
|
|
766
|
+
var _refs$inputValues$cur;
|
|
767
|
+
const viewBox_ = (_refs$inputValues$cur = refs.inputValues.current.viewBox) === null || _refs$inputValues$cur === void 0 ? void 0 : _refs$inputValues$cur.split(' ');
|
|
768
|
+
if (viewBox_) {
|
|
769
|
+
viewBox_[2] = refs.inputValues.current.widthInput;
|
|
770
|
+
viewBox_[3] = refs.inputValues.current.heightInput;
|
|
771
|
+
}
|
|
772
|
+
updateInputValues('viewBox', viewBox_.join(' '));
|
|
773
|
+
updateInputValues('width', refs.inputValues.current.widthInput);
|
|
774
|
+
updateInputValues('height', refs.inputValues.current.heightInput);
|
|
775
|
+
updateOpen('size', false);
|
|
776
|
+
},
|
|
777
|
+
children: "Update"
|
|
778
|
+
})
|
|
779
|
+
})]
|
|
780
|
+
}))
|
|
781
|
+
}),
|
|
782
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(WrapperToggleButton, {
|
|
783
|
+
name: l('Size'),
|
|
784
|
+
open: refs.open.current.size ? false : undefined,
|
|
785
|
+
children: (0, _utils.is)('function', render) ? render('size', ToggleButtonProps, refs.value.current) : /*#__PURE__*/(0, _jsxRuntime.jsx)(ToggleButton, _objectSpread(_objectSpread({
|
|
786
|
+
ref: refs.elements.size
|
|
787
|
+
}, ToggleButtonProps), {}, {
|
|
788
|
+
selected: refs.open.current.size,
|
|
789
|
+
onClick: () => updateOpen('size', !refs.open.current.size),
|
|
790
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconSize, _objectSpread({}, IconProps))
|
|
791
|
+
}))
|
|
792
|
+
})
|
|
793
|
+
})
|
|
794
|
+
}))]
|
|
795
|
+
})), updates_ && actions_ && /*#__PURE__*/(0, _jsxRuntime.jsx)(Divider, _objectSpread(_objectSpread({}, DividerProps), {}, {
|
|
796
|
+
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Drawing', theme) && ['onesy-Drawing-divider'], DividerProps === null || DividerProps === void 0 ? void 0 : DividerProps.className, classes.divider, classes.divider_middle])
|
|
797
|
+
})), actions_ && /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, _objectSpread(_objectSpread({
|
|
798
|
+
gap: 2,
|
|
799
|
+
direction: "row",
|
|
800
|
+
align: "center",
|
|
801
|
+
justify: "flex-start"
|
|
802
|
+
}, ToolbarActionsProps), {}, {
|
|
803
|
+
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Drawing', theme) && ['onesy-Drawing-toolbar'], ToolbarActionsProps === null || ToolbarActionsProps === void 0 ? void 0 : ToolbarActionsProps.className, classes.toolbar, classes.toolbar_actions]),
|
|
804
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
|
|
805
|
+
direction: "row",
|
|
806
|
+
align: "center",
|
|
807
|
+
justify: "space-between",
|
|
808
|
+
style: {
|
|
809
|
+
width: '100%'
|
|
810
|
+
},
|
|
811
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Line, {
|
|
812
|
+
gap: 2,
|
|
813
|
+
direction: "row",
|
|
814
|
+
align: "center",
|
|
815
|
+
justify: "flex-start",
|
|
816
|
+
children: includes('clear') && /*#__PURE__*/(0, _jsxRuntime.jsx)(ToggleButtons, _objectSpread(_objectSpread({}, ToggleButtonsProps), {}, {
|
|
817
|
+
children: includes('clear') && /*#__PURE__*/(0, _jsxRuntime.jsx)(WrapperToggleButton, {
|
|
818
|
+
name: l('Clear'),
|
|
819
|
+
children: (0, _utils.is)('function', render) ? render('clear', ToggleButtonProps, refs.value.current) : /*#__PURE__*/(0, _jsxRuntime.jsx)(ToggleButton, _objectSpread(_objectSpread({}, ToggleButtonProps), {}, {
|
|
820
|
+
onClick: onClear,
|
|
821
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconClear, _objectSpread({}, IconProps))
|
|
822
|
+
}))
|
|
823
|
+
})
|
|
824
|
+
}))
|
|
825
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, {
|
|
826
|
+
gap: 2,
|
|
827
|
+
direction: "row",
|
|
828
|
+
align: "center",
|
|
829
|
+
justify: "flex-start",
|
|
830
|
+
children: includes('download') && /*#__PURE__*/(0, _jsxRuntime.jsx)(ToggleButtons, _objectSpread(_objectSpread({}, ToggleButtonsProps), {}, {
|
|
831
|
+
children: includes('download') && /*#__PURE__*/(0, _jsxRuntime.jsx)(WrapperToggleButton, {
|
|
832
|
+
name: l('Download'),
|
|
833
|
+
children: (0, _utils.is)('function', render) ? render('download', ToggleButtonProps, refs.value.current) : /*#__PURE__*/(0, _jsxRuntime.jsx)(ToggleButton, _objectSpread(_objectSpread({}, ToggleButtonProps), {}, {
|
|
834
|
+
loading: loading,
|
|
835
|
+
onClick: onDownload,
|
|
836
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconDownload, _objectSpread({}, IconProps))
|
|
837
|
+
}))
|
|
838
|
+
})
|
|
839
|
+
}))
|
|
840
|
+
})]
|
|
841
|
+
})
|
|
842
|
+
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(Divider, _objectSpread(_objectSpread({}, DividerProps), {}, {
|
|
843
|
+
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Drawing', theme) && ['onesy-Drawing-divider'], DividerProps === null || DividerProps === void 0 ? void 0 : DividerProps.className, classes.divider, classes.divider_end])
|
|
844
|
+
}))]
|
|
845
|
+
})), /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
|
|
846
|
+
ref: item_5 => {
|
|
847
|
+
if (svgRef) svgRef.current = item_5;
|
|
848
|
+
refs.svg.current = item_5;
|
|
849
|
+
},
|
|
850
|
+
viewBox: refs.inputValues.current.viewBox,
|
|
851
|
+
onMouseDown: onMouseDown,
|
|
852
|
+
onTouchStart: onMouseDown,
|
|
853
|
+
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Drawing', theme) && ['onesy-Drawing-svg'], classes.svg]),
|
|
723
854
|
style: {
|
|
724
|
-
width:
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
updateInputValues('width', refs.inputValues.current.widthInput);
|
|
740
|
-
updateInputValues('height', refs.inputValues.current.heightInput);
|
|
741
|
-
updateOpen('size', false);
|
|
742
|
-
}
|
|
743
|
-
}, "Update"))))
|
|
744
|
-
}, /*#__PURE__*/_react.default.createElement(WrapperToggleButton, {
|
|
745
|
-
name: l('Size'),
|
|
746
|
-
open: refs.open.current.size ? false : undefined
|
|
747
|
-
}, (0, _utils.is)('function', render) ? render('size', ToggleButtonProps, refs.value.current) : /*#__PURE__*/_react.default.createElement(ToggleButton, (0, _extends2.default)({
|
|
748
|
-
ref: refs.elements.size
|
|
749
|
-
}, ToggleButtonProps, {
|
|
750
|
-
selected: refs.open.current.size,
|
|
751
|
-
onClick: () => updateOpen('size', !refs.open.current.size)
|
|
752
|
-
}), /*#__PURE__*/_react.default.createElement(IconSize, IconProps)))))), updates_ && actions_ && /*#__PURE__*/_react.default.createElement(Divider, (0, _extends2.default)({}, DividerProps, {
|
|
753
|
-
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Drawing', theme) && ['onesy-Drawing-divider'], DividerProps === null || DividerProps === void 0 ? void 0 : DividerProps.className, classes.divider, classes.divider_middle])
|
|
754
|
-
})), actions_ && /*#__PURE__*/_react.default.createElement(Line, (0, _extends2.default)({
|
|
755
|
-
gap: 2,
|
|
756
|
-
direction: "row",
|
|
757
|
-
align: "center",
|
|
758
|
-
justify: "flex-start"
|
|
759
|
-
}, ToolbarActionsProps, {
|
|
760
|
-
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Drawing', theme) && ['onesy-Drawing-toolbar'], ToolbarActionsProps === null || ToolbarActionsProps === void 0 ? void 0 : ToolbarActionsProps.className, classes.toolbar, classes.toolbar_actions])
|
|
761
|
-
}), /*#__PURE__*/_react.default.createElement(Line, {
|
|
762
|
-
direction: "row",
|
|
763
|
-
align: "center",
|
|
764
|
-
justify: "space-between",
|
|
765
|
-
style: {
|
|
766
|
-
width: '100%'
|
|
767
|
-
}
|
|
768
|
-
}, /*#__PURE__*/_react.default.createElement(Line, {
|
|
769
|
-
gap: 2,
|
|
770
|
-
direction: "row",
|
|
771
|
-
align: "center",
|
|
772
|
-
justify: "flex-start"
|
|
773
|
-
}, includes('clear') && /*#__PURE__*/_react.default.createElement(ToggleButtons, ToggleButtonsProps, includes('clear') && /*#__PURE__*/_react.default.createElement(WrapperToggleButton, {
|
|
774
|
-
name: l('Clear')
|
|
775
|
-
}, (0, _utils.is)('function', render) ? render('clear', ToggleButtonProps, refs.value.current) : /*#__PURE__*/_react.default.createElement(ToggleButton, (0, _extends2.default)({}, ToggleButtonProps, {
|
|
776
|
-
onClick: onClear
|
|
777
|
-
}), /*#__PURE__*/_react.default.createElement(IconClear, IconProps))))), /*#__PURE__*/_react.default.createElement(Line, {
|
|
778
|
-
gap: 2,
|
|
779
|
-
direction: "row",
|
|
780
|
-
align: "center",
|
|
781
|
-
justify: "flex-start"
|
|
782
|
-
}, includes('download') && /*#__PURE__*/_react.default.createElement(ToggleButtons, ToggleButtonsProps, includes('download') && /*#__PURE__*/_react.default.createElement(WrapperToggleButton, {
|
|
783
|
-
name: l('Download')
|
|
784
|
-
}, (0, _utils.is)('function', render) ? render('download', ToggleButtonProps, refs.value.current) : /*#__PURE__*/_react.default.createElement(ToggleButton, (0, _extends2.default)({}, ToggleButtonProps, {
|
|
785
|
-
loading: loading,
|
|
786
|
-
onClick: onDownload
|
|
787
|
-
}), /*#__PURE__*/_react.default.createElement(IconDownload, IconProps))))))), /*#__PURE__*/_react.default.createElement(Divider, (0, _extends2.default)({}, DividerProps, {
|
|
788
|
-
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Drawing', theme) && ['onesy-Drawing-divider'], DividerProps === null || DividerProps === void 0 ? void 0 : DividerProps.className, classes.divider, classes.divider_end])
|
|
789
|
-
}))), /*#__PURE__*/_react.default.createElement("svg", {
|
|
790
|
-
ref: item_5 => {
|
|
791
|
-
if (svgRef) svgRef.current = item_5;
|
|
792
|
-
refs.svg.current = item_5;
|
|
793
|
-
},
|
|
794
|
-
viewBox: refs.inputValues.current.viewBox,
|
|
795
|
-
onMouseDown: onMouseDown,
|
|
796
|
-
onTouchStart: onMouseDown,
|
|
797
|
-
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Drawing', theme) && ['onesy-Drawing-svg'], classes.svg]),
|
|
798
|
-
style: {
|
|
799
|
-
width: refs.inputValues.current.width,
|
|
800
|
-
height: refs.inputValues.current.height
|
|
801
|
-
}
|
|
802
|
-
}, valueNew_.map((item_6, index_0) => /*#__PURE__*/_react.default.createElement("path", (0, _extends2.default)({
|
|
803
|
-
key: index_0,
|
|
804
|
-
fill: "none"
|
|
805
|
-
}, item_6))), /*#__PURE__*/_react.default.createElement("circle", {
|
|
806
|
-
className: "onesy-Drawing-pointer",
|
|
807
|
-
cx: move === null || move === void 0 ? void 0 : move.x,
|
|
808
|
-
cy: move === null || move === void 0 ? void 0 : move.y,
|
|
809
|
-
r: circleStrokeWidth + 1,
|
|
810
|
-
fill: refs.inputValues.current.strokeColor
|
|
811
|
-
})));
|
|
812
|
-
});
|
|
855
|
+
width: refs.inputValues.current.width,
|
|
856
|
+
height: refs.inputValues.current.height
|
|
857
|
+
},
|
|
858
|
+
children: [valueNew_.map((item_6, index_0) => /*#__PURE__*/(0, _jsxRuntime.jsx)("path", _objectSpread({
|
|
859
|
+
fill: "none"
|
|
860
|
+
}, item_6), index_0)), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
|
|
861
|
+
className: "onesy-Drawing-pointer",
|
|
862
|
+
cx: move === null || move === void 0 ? void 0 : move.x,
|
|
863
|
+
cy: move === null || move === void 0 ? void 0 : move.y,
|
|
864
|
+
r: circleStrokeWidth + 1,
|
|
865
|
+
fill: refs.inputValues.current.strokeColor
|
|
866
|
+
})]
|
|
867
|
+
})]
|
|
868
|
+
}));
|
|
869
|
+
};
|
|
813
870
|
Drawing.displayName = 'onesy-Drawing';
|
|
814
871
|
var _default = exports.default = Drawing;
|