@onesy/ui-react 1.0.172 → 1.0.174
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 -68
- 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 -8
- 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 -68
- 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 -8
- 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/index.js +1 -1
- package/package.json +3 -3
package/DropZone/DropZone.js
CHANGED
|
@@ -17,7 +17,8 @@ var _Type = _interopRequireDefault(require("../Type"));
|
|
|
17
17
|
var _Line = _interopRequireDefault(require("../Line"));
|
|
18
18
|
var _Interaction = _interopRequireDefault(require("../Interaction"));
|
|
19
19
|
var _utils2 = require("../utils");
|
|
20
|
-
|
|
20
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
+
const _excluded = ["ref", "tonal", "color", "version", "start", "files", "multiple", "max", "allowedTypes", "dropText", "valueDefault", "value", "onChange", "IconStart", "onFocus", "onBlur", "onDrop", "onDragOver", "onDragEnter", "onDragLeave", "disabled", "children", "className"];
|
|
21
22
|
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; }
|
|
22
23
|
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; }
|
|
23
24
|
const useStyle = (0, _styleReact.style)(theme => ({
|
|
@@ -50,7 +51,7 @@ const useStyle = (0, _styleReact.style)(theme => ({
|
|
|
50
51
|
}), {
|
|
51
52
|
name: 'onesy-DropZone'
|
|
52
53
|
});
|
|
53
|
-
const DropZone =
|
|
54
|
+
const DropZone = props_ => {
|
|
54
55
|
var _theme$ui, _theme$ui2, _theme$elements, _theme$elements2, _theme$elements3, _theme$elements4, _theme$elements5, _ComponentProps, _WrapperProps;
|
|
55
56
|
const theme = (0, _styleReact.useOnesyTheme)();
|
|
56
57
|
const l = theme.l;
|
|
@@ -61,6 +62,7 @@ const DropZone = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
61
62
|
const Type = (theme === null || theme === void 0 || (_theme$elements4 = theme.elements) === null || _theme$elements4 === void 0 ? void 0 : _theme$elements4.Type) || _Type.default;
|
|
62
63
|
const Interaction = (theme === null || theme === void 0 || (_theme$elements5 = theme.elements) === null || _theme$elements5 === void 0 ? void 0 : _theme$elements5.Interaction) || _Interaction.default;
|
|
63
64
|
const {
|
|
65
|
+
ref,
|
|
64
66
|
tonal = true,
|
|
65
67
|
color = 'default',
|
|
66
68
|
version,
|
|
@@ -181,7 +183,7 @@ const DropZone = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
181
183
|
} else {
|
|
182
184
|
ComponentProps = _objectSpread(_objectSpread({}, ComponentProps), other);
|
|
183
185
|
}
|
|
184
|
-
return /*#__PURE__*/
|
|
186
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(FileChoose, {
|
|
185
187
|
ref: item_0 => {
|
|
186
188
|
if (ref) {
|
|
187
189
|
if ((0, _utils.is)('function', ref)) ref(item_0);else ref.current = item_0;
|
|
@@ -211,17 +213,20 @@ const DropZone = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
211
213
|
}),
|
|
212
214
|
WrapperProps: _objectSpread(_objectSpread({}, WrapperProps), {}, {
|
|
213
215
|
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('DropZone', theme) && ['onesy-DropZone-wrapper'], (_WrapperProps = WrapperProps) === null || _WrapperProps === void 0 ? void 0 : _WrapperProps.className, classes.wrapper])
|
|
214
|
-
})
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
})
|
|
216
|
+
}),
|
|
217
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Interaction, {
|
|
218
|
+
pulse: focus || dragOver
|
|
219
|
+
}), children, !custom && /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
|
|
220
|
+
direction: "row",
|
|
221
|
+
align: "center",
|
|
222
|
+
justify: "center",
|
|
223
|
+
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('DropZone', theme) && ['onesy-DropZone-wrapper-text'], classes.wrapperText]),
|
|
224
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(IconStart, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Type, {
|
|
225
|
+
version: "t1",
|
|
226
|
+
children: dropText
|
|
227
|
+
})]
|
|
228
|
+
})]
|
|
229
|
+
});
|
|
230
|
+
};
|
|
226
231
|
DropZone.displayName = 'onesy-DropZone';
|
|
227
232
|
var _default = exports.default = DropZone;
|
package/Emojis/Emojis.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,6 +30,7 @@ var _Type = _interopRequireDefault(require("../Type"));
|
|
|
31
30
|
var _Surface = _interopRequireDefault(require("../Surface"));
|
|
32
31
|
var _emojis_list = _interopRequireDefault(require("./emojis_list"));
|
|
33
32
|
var _utils2 = require("../utils");
|
|
33
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
34
34
|
const _excluded = ["tonal", "color", "label", "onSelect", "emojis", "categories", "selected", "size", "search", "tabs", "className"];
|
|
35
35
|
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; }
|
|
36
36
|
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; }
|
|
@@ -149,7 +149,7 @@ const useStyle = (0, _styleReact.style)(theme => ({
|
|
|
149
149
|
}), {
|
|
150
150
|
name: 'onesy-Emojis'
|
|
151
151
|
});
|
|
152
|
-
const Emojis =
|
|
152
|
+
const Emojis = props_ => {
|
|
153
153
|
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;
|
|
154
154
|
const theme = (0, _styleReact.useOnesyTheme)();
|
|
155
155
|
const l = theme.l;
|
|
@@ -168,35 +168,35 @@ const Emojis = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
168
168
|
return [{
|
|
169
169
|
"name": l("Smileys and People"),
|
|
170
170
|
"groups": ["Smiley", "Gesture", "Person", "Clothing"],
|
|
171
|
-
"icon": /*#__PURE__*/
|
|
171
|
+
"icon": /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconMaterialMoodW.default, {})
|
|
172
172
|
}, {
|
|
173
173
|
"name": l("Animals and Nature"),
|
|
174
174
|
"groups": ["Animal", "Nature"],
|
|
175
|
-
"icon": /*#__PURE__*/
|
|
175
|
+
"icon": /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconMaterialEmojiNatureW.default, {})
|
|
176
176
|
}, {
|
|
177
177
|
"name": l("Food and Drink"),
|
|
178
178
|
"groups": ["Food"],
|
|
179
|
-
"icon": /*#__PURE__*/
|
|
179
|
+
"icon": /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconMaterialEmojiFoodBeverageW.default, {})
|
|
180
180
|
}, {
|
|
181
181
|
"name": l("Activity"),
|
|
182
182
|
"groups": ["Activity"],
|
|
183
|
-
"icon": /*#__PURE__*/
|
|
183
|
+
"icon": /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconMaterialHikingW.default, {})
|
|
184
184
|
}, {
|
|
185
185
|
"name": l("Travel and Places"),
|
|
186
186
|
"groups": ["Travel"],
|
|
187
|
-
"icon": /*#__PURE__*/
|
|
187
|
+
"icon": /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconMaterialEmojiTransportationW.default, {})
|
|
188
188
|
}, {
|
|
189
189
|
"name": l("Objects"),
|
|
190
190
|
"groups": ["Object"],
|
|
191
|
-
"icon": /*#__PURE__*/
|
|
191
|
+
"icon": /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconMaterialEmojiObjectsW.default, {})
|
|
192
192
|
}, {
|
|
193
193
|
"name": l("Symbols"),
|
|
194
194
|
"groups": ["Symbol"],
|
|
195
|
-
"icon": /*#__PURE__*/
|
|
195
|
+
"icon": /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconMaterialEmojiSymbolsW.default, {})
|
|
196
196
|
}, {
|
|
197
197
|
"name": l("Flags and Countries"),
|
|
198
198
|
"groups": ["Flag", "Country"],
|
|
199
|
-
"icon": /*#__PURE__*/
|
|
199
|
+
"icon": /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconMaterialEmojiFlagsW.default, {})
|
|
200
200
|
}];
|
|
201
201
|
}, []);
|
|
202
202
|
const {
|
|
@@ -295,89 +295,99 @@ const Emojis = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
295
295
|
name: item_4.icon,
|
|
296
296
|
value: item_4.name
|
|
297
297
|
}));
|
|
298
|
-
const label = /*#__PURE__*/
|
|
298
|
+
const label = /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, {
|
|
299
299
|
tonal: tonal,
|
|
300
300
|
color: color,
|
|
301
301
|
Component: Surface,
|
|
302
|
-
className: (0, _styleReact.classNames)([classes.wrapper, classes[`size_${size}`]])
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
302
|
+
className: (0, _styleReact.classNames)([classes.wrapper, classes[`size_${size}`]]),
|
|
303
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(SpyScroll, {
|
|
304
|
+
ids: categoriesUsedIDs,
|
|
305
|
+
parent: openElement,
|
|
306
|
+
onActive: onActiveTab,
|
|
307
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
|
|
308
|
+
gap: 0,
|
|
309
|
+
align: "unset",
|
|
310
|
+
justify: "unset",
|
|
311
|
+
fullWidth: true,
|
|
312
|
+
className: classes.categories,
|
|
313
|
+
children: [(search_ || tabs_) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
|
|
314
|
+
gap: 1,
|
|
315
|
+
fullWidth: true,
|
|
316
|
+
className: classes.header,
|
|
317
|
+
children: [search_ && /*#__PURE__*/(0, _jsxRuntime.jsx)(TextField, {
|
|
318
|
+
name: l('Search'),
|
|
319
|
+
version: "outlined",
|
|
320
|
+
value: search || '',
|
|
321
|
+
onChange: onChangeSearch,
|
|
322
|
+
size: ['small', 'regular'].includes(size) ? 'small' : 'regular',
|
|
323
|
+
fullWidth: true,
|
|
324
|
+
clear: true
|
|
325
|
+
}), tabs_ && !!categoriesUsed.length && /*#__PURE__*/(0, _jsxRuntime.jsx)(Tabs, {
|
|
326
|
+
valueDefault: tab,
|
|
327
|
+
value: tab,
|
|
328
|
+
onChange: onChangeTabs,
|
|
329
|
+
size: "small",
|
|
330
|
+
initialLineUpdateTimeout: 440,
|
|
331
|
+
noDivider: true,
|
|
332
|
+
className: classes.tabs,
|
|
333
|
+
children: tabs.map((item_5, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Tab, {
|
|
334
|
+
value: item_5.value,
|
|
335
|
+
onClick: () => onTabClick(item_5.value),
|
|
336
|
+
"data-onesy-spy-scroll": categoryToID(item_5.value),
|
|
337
|
+
className: (0, _styleReact.classNames)([classes.tab, classes[`tab_size_${size}`]]),
|
|
338
|
+
children: /*#__PURE__*/_react.default.cloneElement(item_5.name, {
|
|
339
|
+
size: ['small', 'regular'].includes(size) ? 'small' : 'regular'
|
|
340
|
+
})
|
|
341
|
+
}, index))
|
|
342
|
+
})]
|
|
343
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, {
|
|
344
|
+
ref: refs.main,
|
|
345
|
+
gap: 0,
|
|
346
|
+
flex: true,
|
|
347
|
+
fullWidth: true,
|
|
348
|
+
className: classes.main,
|
|
349
|
+
children: categoriesUsed.map((item_6, index_0) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(List, {
|
|
350
|
+
gap: 1,
|
|
351
|
+
fullWidth: true,
|
|
352
|
+
SurfaceProps: {
|
|
353
|
+
id: categoryToID(item_6),
|
|
354
|
+
'data-onesy-category': item_6
|
|
355
|
+
},
|
|
356
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(ListSubheader, {
|
|
357
|
+
className: classes.subheader,
|
|
358
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Type, {
|
|
359
|
+
version: size === 'large' ? 'b1' : size === 'regular' ? 'b2' : 'b3',
|
|
360
|
+
children: item_6
|
|
361
|
+
})
|
|
362
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, {
|
|
363
|
+
gap: 1,
|
|
364
|
+
direction: "row",
|
|
365
|
+
align: "center",
|
|
366
|
+
wrap: "wrap",
|
|
367
|
+
Component: "li",
|
|
368
|
+
className: classes.category,
|
|
369
|
+
children: emojisPerCategory[item_6].map((emoji_0, index_) => /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
370
|
+
onClick: () => onSelect(emoji_0),
|
|
371
|
+
title: (0, _utils.capitalize)(((0, _utils.is)('array', emoji_0.alias) ? emoji_0.alias.join(', ') : emoji_0.alias).replace(/_/g, ' ')),
|
|
372
|
+
className: (0, _styleReact.classNames)([classes.emoji, classes[`emoji_size_${size}`], (selected === null || selected === void 0 ? void 0 : selected.includes(emoji_0.unicode)) && classes.emoji_selected]),
|
|
373
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
374
|
+
className: classes.unicode,
|
|
375
|
+
children: emoji_0.unicode
|
|
376
|
+
})
|
|
377
|
+
}, index_))
|
|
378
|
+
})]
|
|
379
|
+
}, index_0))
|
|
380
|
+
})]
|
|
381
|
+
})
|
|
382
|
+
})
|
|
383
|
+
});
|
|
384
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Menu, _objectSpread({
|
|
375
385
|
open: open,
|
|
376
386
|
onOpen: onOpen,
|
|
377
387
|
onClose: onClose,
|
|
378
388
|
label: label,
|
|
379
389
|
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Emojis', theme) && ['onesy-Emojis-root', `onesy-Emojis-size-${size}`], className, classes.root])
|
|
380
390
|
}, other));
|
|
381
|
-
}
|
|
391
|
+
};
|
|
382
392
|
Emojis.displayName = 'onesy-Emojis';
|
|
383
393
|
var _default = exports.default = Emojis;
|
package/Expand/Expand.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 _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
10
|
var _compilerRuntime = require("react/compiler-runtime");
|
|
@@ -13,12 +12,13 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
13
12
|
var _utils = require("@onesy/utils");
|
|
14
13
|
var _styleReact = require("@onesy/style-react");
|
|
15
14
|
var _ = require("..");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
const _excluded = ["children", "style"],
|
|
17
|
-
_excluded2 = ["in", "value", "prefix", "run", "append", "add", "enter", "exit", "enterOnAdd", "exitOnAdd", "noAbruption", "removeOnExited", "delay", "duration", "timing_function", "addTransition", "onTransition", "onAppended", "onAdd", "onAdding", "onAdded", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "onRemoved", "expandSize", "orientation", "WrapperProps", "className", "style", "children"];
|
|
17
|
+
_excluded2 = ["ref", "in", "value", "prefix", "run", "append", "add", "enter", "exit", "enterOnAdd", "exitOnAdd", "noAbruption", "removeOnExited", "delay", "duration", "timing_function", "addTransition", "onTransition", "onAppended", "onAdd", "onAdding", "onAdded", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "onRemoved", "expandSize", "orientation", "WrapperProps", "className", "style", "children"];
|
|
18
18
|
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; }
|
|
19
19
|
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; }
|
|
20
|
-
const Wrapper =
|
|
21
|
-
const $ = (0, _compilerRuntime.c)(
|
|
20
|
+
const Wrapper = props => {
|
|
21
|
+
const $ = (0, _compilerRuntime.c)(10);
|
|
22
22
|
let children;
|
|
23
23
|
let other;
|
|
24
24
|
let style;
|
|
@@ -50,27 +50,26 @@ const Wrapper = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
50
50
|
t0 = $[5];
|
|
51
51
|
}
|
|
52
52
|
let t1;
|
|
53
|
-
if ($[6] !== children || $[7] !== other || $[8] !==
|
|
54
|
-
t1 = /*#__PURE__*/
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}), children);
|
|
53
|
+
if ($[6] !== children || $[7] !== other || $[8] !== t0) {
|
|
54
|
+
t1 = /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread({}, other), {}, {
|
|
55
|
+
style: t0,
|
|
56
|
+
children: children
|
|
57
|
+
}));
|
|
59
58
|
$[6] = children;
|
|
60
59
|
$[7] = other;
|
|
61
|
-
$[8] =
|
|
62
|
-
$[9] =
|
|
63
|
-
$[10] = t1;
|
|
60
|
+
$[8] = t0;
|
|
61
|
+
$[9] = t1;
|
|
64
62
|
} else {
|
|
65
|
-
t1 = $[
|
|
63
|
+
t1 = $[9];
|
|
66
64
|
}
|
|
67
65
|
return t1;
|
|
68
|
-
}
|
|
69
|
-
const Expand =
|
|
66
|
+
};
|
|
67
|
+
const Expand = props_ => {
|
|
70
68
|
var _theme$ui, _theme$ui2, _children$type;
|
|
71
69
|
const theme = (0, _styleReact.useOnesyTheme)();
|
|
72
70
|
const props = _objectSpread(_objectSpread(_objectSpread({}, theme === null || theme === void 0 || (_theme$ui = theme.ui) === null || _theme$ui === void 0 || (_theme$ui = _theme$ui.elements) === null || _theme$ui === void 0 || (_theme$ui = _theme$ui.all) === null || _theme$ui === void 0 || (_theme$ui = _theme$ui.props) === null || _theme$ui === void 0 ? void 0 : _theme$ui.default), theme === null || theme === void 0 || (_theme$ui2 = theme.ui) === null || _theme$ui2 === void 0 || (_theme$ui2 = _theme$ui2.elements) === null || _theme$ui2 === void 0 || (_theme$ui2 = _theme$ui2.onesyExpand) === null || _theme$ui2 === void 0 || (_theme$ui2 = _theme$ui2.props) === null || _theme$ui2 === void 0 ? void 0 : _theme$ui2.default), props_);
|
|
73
71
|
const {
|
|
72
|
+
ref,
|
|
74
73
|
in: inProp,
|
|
75
74
|
value: valueProvided,
|
|
76
75
|
prefix,
|
|
@@ -181,61 +180,70 @@ const Expand = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
181
180
|
return `${((0, _utils.is)('simple', duration) ? duration : duration[status_0]) || properties[property]}ms`;
|
|
182
181
|
};
|
|
183
182
|
const timingFunction = status_1 => ((0, _utils.is)('simple', timing_function) ? timing_function : timing_function[status_1]) || theme.transitions.timing_function.standard;
|
|
184
|
-
const children_ = /*#__PURE__*/
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
if (WrapperProps !== null && WrapperProps !== void 0 && WrapperProps.ref) {
|
|
194
|
-
if ((0, _utils.is)('function', WrapperProps.ref)) WrapperProps === null || WrapperProps === void 0 || WrapperProps.ref(item_1);else WrapperProps.ref.current = item_1;
|
|
195
|
-
}
|
|
196
|
-
if (refs.value.current === null) {
|
|
197
|
-
setValue(item_1.getBoundingClientRect()[prop] || 0);
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
style: _objectSpread({
|
|
201
|
-
position: 'fixed',
|
|
202
|
-
left: '1114%',
|
|
203
|
-
visibility: 'hidden',
|
|
204
|
-
width: parent.offsetWidth
|
|
205
|
-
}, WrapperProps === null || WrapperProps === void 0 ? void 0 : WrapperProps.style)
|
|
206
|
-
}), /*#__PURE__*/_react.default.cloneElement(children, _objectSpread({}, childrenWithTransition && {
|
|
207
|
-
in: true
|
|
208
|
-
})))), value !== null && /*#__PURE__*/_react.default.createElement(_.Transition, (0, _extends2.default)({
|
|
209
|
-
removeOnExited: true
|
|
210
|
-
}, props), (status_2, ref_) => {
|
|
211
|
-
// If children update
|
|
212
|
-
// & value is updated
|
|
213
|
-
if (['appending', 'appended', 'adding', 'added', 'entering', 'entered'].includes(status_2)) {
|
|
214
|
-
var _refs$root$current;
|
|
215
|
-
const value_ = (((_refs$root$current = refs.root.current) === null || _refs$root$current === void 0 ? void 0 : _refs$root$current.getBoundingClientRect()) || {})[prop];
|
|
216
|
-
if (value_ > 0 && value_ !== refs.value.current) setValue(value_);
|
|
217
|
-
}
|
|
218
|
-
return /*#__PURE__*/_react.default.cloneElement(children_, _objectSpread(_objectSpread({}, other), {}, {
|
|
219
|
-
className,
|
|
220
|
-
ref: item_2 => {
|
|
221
|
-
refs.root.current = item_2;
|
|
222
|
-
if (ref) {
|
|
223
|
-
if ((0, _utils.is)('function', ref)) ref(item_2);else ref.current = item_2;
|
|
224
|
-
}
|
|
225
|
-
if (ref_) {
|
|
226
|
-
if ((0, _utils.is)('function', ref_)) ref_(item_2);else ref_.current = item_2;
|
|
183
|
+
const children_ = /*#__PURE__*/(0, _jsxRuntime.jsx)(Wrapper, _objectSpread(_objectSpread({}, WrapperProps), {}, {
|
|
184
|
+
children: children
|
|
185
|
+
}));
|
|
186
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
187
|
+
children: [value === null && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
188
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
189
|
+
ref: item_0 => {
|
|
190
|
+
if (!item_0) return;
|
|
191
|
+
if (!parent) setParent(item_0.parentElement);
|
|
227
192
|
}
|
|
228
|
-
|
|
229
|
-
|
|
193
|
+
}), parent && /*#__PURE__*/(0, _jsxRuntime.jsx)(Wrapper, _objectSpread(_objectSpread({}, WrapperProps), {}, {
|
|
194
|
+
ref: item_1 => {
|
|
195
|
+
if (!item_1) return;
|
|
196
|
+
if (WrapperProps !== null && WrapperProps !== void 0 && WrapperProps.ref) {
|
|
197
|
+
if ((0, _utils.is)('function', WrapperProps.ref)) WrapperProps === null || WrapperProps === void 0 || WrapperProps.ref(item_1);else WrapperProps.ref.current = item_1;
|
|
198
|
+
}
|
|
199
|
+
if (refs.value.current === null) {
|
|
200
|
+
setValue(item_1.getBoundingClientRect()[prop] || 0);
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
style: _objectSpread({
|
|
204
|
+
position: 'fixed',
|
|
205
|
+
left: '1114%',
|
|
206
|
+
visibility: 'hidden',
|
|
207
|
+
width: parent.offsetWidth
|
|
208
|
+
}, WrapperProps === null || WrapperProps === void 0 ? void 0 : WrapperProps.style),
|
|
209
|
+
children: /*#__PURE__*/_react.default.cloneElement(children, _objectSpread({}, childrenWithTransition && {
|
|
210
|
+
in: true
|
|
211
|
+
}))
|
|
212
|
+
}))]
|
|
213
|
+
}), value !== null && /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Transition, _objectSpread(_objectSpread({
|
|
214
|
+
removeOnExited: true
|
|
215
|
+
}, props), {}, {
|
|
216
|
+
children: (status_2, ref_) => {
|
|
217
|
+
// If children update
|
|
218
|
+
// & value is updated
|
|
219
|
+
if (['appending', 'appended', 'adding', 'added', 'entering', 'entered'].includes(status_2)) {
|
|
220
|
+
var _refs$root$current;
|
|
221
|
+
const value_ = (((_refs$root$current = refs.root.current) === null || _refs$root$current === void 0 ? void 0 : _refs$root$current.getBoundingClientRect()) || {})[prop];
|
|
222
|
+
if (value_ > 0 && value_ !== refs.value.current) setValue(value_);
|
|
230
223
|
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
224
|
+
return /*#__PURE__*/_react.default.cloneElement(children_, _objectSpread(_objectSpread({}, other), {}, {
|
|
225
|
+
className,
|
|
226
|
+
ref: item_2 => {
|
|
227
|
+
refs.root.current = item_2;
|
|
228
|
+
if (ref) {
|
|
229
|
+
if ((0, _utils.is)('function', ref)) ref(item_2);else ref.current = item_2;
|
|
230
|
+
}
|
|
231
|
+
if (ref_) {
|
|
232
|
+
if ((0, _utils.is)('function', ref_)) ref_(item_2);else ref_.current = item_2;
|
|
233
|
+
}
|
|
234
|
+
if (children_.ref) {
|
|
235
|
+
if ((0, _utils.is)('function', children_.ref)) children_.ref(item_2);else children_.ref.current = item_2;
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
style: _objectSpread(_objectSpread(_objectSpread({
|
|
239
|
+
position: 'relative',
|
|
240
|
+
transition: `${prop} ${duration(status_2, prop)} ${timingFunction(status_2)} ${addTransition ? `, ${addTransition}` : ''}`,
|
|
241
|
+
visibility: status_2 === 'exited' && !inProp && expandSize === undefined ? 'hidden' : undefined
|
|
242
|
+
}, styles(status_2)), style), children_ === null || children_ === void 0 ? void 0 : children_.style)
|
|
243
|
+
}));
|
|
244
|
+
}
|
|
245
|
+
}))]
|
|
246
|
+
});
|
|
247
|
+
};
|
|
240
248
|
Expand.displayName = 'onesy-Expand';
|
|
241
249
|
var _default = exports.default = Expand;
|
package/Fab/Fab.js
CHANGED
|
@@ -5,12 +5,12 @@ 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 _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
9
|
var _react = _interopRequireDefault(require("react"));
|
|
11
10
|
var _styleReact = require("@onesy/style-react");
|
|
12
11
|
var _Button = _interopRequireDefault(require("../Button"));
|
|
13
12
|
var _utils = require("../utils");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
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; }
|
|
15
15
|
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; }
|
|
16
16
|
const useStyle = (0, _styleReact.style)(theme => ({
|
|
@@ -18,7 +18,7 @@ const useStyle = (0, _styleReact.style)(theme => ({
|
|
|
18
18
|
}), {
|
|
19
19
|
name: 'onesy-Fab'
|
|
20
20
|
});
|
|
21
|
-
const Fab =
|
|
21
|
+
const Fab = props_ => {
|
|
22
22
|
var _theme$ui, _theme$ui2, _theme$elements;
|
|
23
23
|
const theme = (0, _styleReact.useOnesyTheme)();
|
|
24
24
|
const props = _objectSpread(_objectSpread(_objectSpread({}, theme === null || theme === void 0 || (_theme$ui = theme.ui) === null || _theme$ui === void 0 || (_theme$ui = _theme$ui.elements) === null || _theme$ui === void 0 || (_theme$ui = _theme$ui.all) === null || _theme$ui === void 0 || (_theme$ui = _theme$ui.props) === null || _theme$ui === void 0 ? void 0 : _theme$ui.default), theme === null || theme === void 0 || (_theme$ui2 = theme.ui) === null || _theme$ui2 === void 0 || (_theme$ui2 = _theme$ui2.elements) === null || _theme$ui2 === void 0 || (_theme$ui2 = _theme$ui2.onesyFab) === null || _theme$ui2 === void 0 || (_theme$ui2 = _theme$ui2.props) === null || _theme$ui2 === void 0 ? void 0 : _theme$ui2.default), props_);
|
|
@@ -33,14 +33,12 @@ const Fab = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
33
33
|
const {
|
|
34
34
|
classes
|
|
35
35
|
} = useStyle();
|
|
36
|
-
return /*#__PURE__*/
|
|
37
|
-
ref: ref
|
|
38
|
-
}, props, {
|
|
36
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Button, _objectSpread(_objectSpread({}, props), {}, {
|
|
39
37
|
className: (0, _styleReact.classNames)([(0, _utils.staticClassName)("Fab", theme) && ["onesy-Fab-root"], className, classes.root]),
|
|
40
38
|
version: version,
|
|
41
39
|
tonal: tonal,
|
|
42
40
|
fab: true
|
|
43
41
|
}));
|
|
44
|
-
}
|
|
42
|
+
};
|
|
45
43
|
Fab.displayName = 'onesy-Fab';
|
|
46
44
|
var _default = exports.default = Fab;
|