@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/Move/Move.js
CHANGED
|
@@ -5,14 +5,14 @@ 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"));
|
|
12
11
|
var _utils = require("@onesy/utils");
|
|
13
12
|
var _styleReact = require("@onesy/style-react");
|
|
14
13
|
var _utils2 = require("../utils");
|
|
15
|
-
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
const _excluded = ["ref", "version", "manage", "manageLevel", "disabled", "onMouseDown", "onTouchStart", "Component", "className", "style", "children"];
|
|
16
16
|
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; }
|
|
17
17
|
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; }
|
|
18
18
|
const useStyle = (0, _styleReact.style)(theme => ({
|
|
@@ -23,7 +23,7 @@ const useStyle = (0, _styleReact.style)(theme => ({
|
|
|
23
23
|
}), {
|
|
24
24
|
name: 'onesy-Move'
|
|
25
25
|
});
|
|
26
|
-
const Move =
|
|
26
|
+
const Move = props_ => {
|
|
27
27
|
var _theme$ui, _theme$ui2;
|
|
28
28
|
const theme = (0, _styleReact.useOnesyTheme)();
|
|
29
29
|
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.onesyMove) === null || _theme$ui2 === void 0 || (_theme$ui2 = _theme$ui2.props) === null || _theme$ui2 === void 0 ? void 0 : _theme$ui2.default), props_);
|
|
@@ -31,6 +31,7 @@ const Move = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
31
31
|
classes
|
|
32
32
|
} = useStyle();
|
|
33
33
|
const {
|
|
34
|
+
ref,
|
|
34
35
|
version = 'regular',
|
|
35
36
|
manage = false,
|
|
36
37
|
manageLevel = 0,
|
|
@@ -153,7 +154,7 @@ const Move = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
153
154
|
rootDocument.removeEventListener('touchmove', onTouchMove);
|
|
154
155
|
};
|
|
155
156
|
}, []);
|
|
156
|
-
return /*#__PURE__*/
|
|
157
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, _objectSpread(_objectSpread({
|
|
157
158
|
ref: item_0 => {
|
|
158
159
|
if (ref) {
|
|
159
160
|
if ((0, _utils.is)('function', ref)) ref(item_0);else ref.current = item_0;
|
|
@@ -164,7 +165,9 @@ const Move = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
164
165
|
onTouchStart: onTouchStart,
|
|
165
166
|
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Move', theme) && ['onesy-Move-root'], className, classes.root]),
|
|
166
167
|
style: _objectSpread(_objectSpread({}, styles.root), style)
|
|
167
|
-
}, other),
|
|
168
|
-
|
|
168
|
+
}, other), {}, {
|
|
169
|
+
children: children
|
|
170
|
+
}));
|
|
171
|
+
};
|
|
169
172
|
Move.displayName = 'onesy-Move';
|
|
170
173
|
var _default = exports.default = Move;
|
|
@@ -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 _compilerRuntime = require("react/compiler-runtime");
|
|
@@ -15,6 +14,7 @@ var _styleReact = require("@onesy/style-react");
|
|
|
15
14
|
var _Line = _interopRequireDefault(require("../Line"));
|
|
16
15
|
var _Surface = _interopRequireDefault(require("../Surface"));
|
|
17
16
|
var _utils2 = require("../utils");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
18
|
const _excluded = ["color", "tonal", "version", "value", "valueDefault", "onChange", "fixed", "className", "style", "children"];
|
|
19
19
|
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; }
|
|
20
20
|
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; }
|
|
@@ -32,7 +32,7 @@ const useStyle = (0, _styleReact.style)(theme => ({
|
|
|
32
32
|
}), {
|
|
33
33
|
name: 'onesy-NavigationBar'
|
|
34
34
|
});
|
|
35
|
-
const NavigationBar =
|
|
35
|
+
const NavigationBar = props_ => {
|
|
36
36
|
var _theme$ui, _theme$ui2, _theme$elements, _theme$elements2;
|
|
37
37
|
const $ = (0, _compilerRuntime.c)(4);
|
|
38
38
|
const theme = (0, _styleReact.useOnesyTheme)();
|
|
@@ -146,8 +146,7 @@ const NavigationBar = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
146
146
|
}
|
|
147
147
|
}));
|
|
148
148
|
});
|
|
149
|
-
return /*#__PURE__*/
|
|
150
|
-
ref: ref,
|
|
149
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Surface, _objectSpread(_objectSpread({
|
|
151
150
|
Component: Line,
|
|
152
151
|
color: color,
|
|
153
152
|
tonal: tonal,
|
|
@@ -157,7 +156,9 @@ const NavigationBar = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
157
156
|
gap: 1,
|
|
158
157
|
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)("NavigationBar", theme) && ["onesy-NavigationBar-root"], className, classes.root, fixed && classes.fixed]),
|
|
159
158
|
style: _objectSpread(_objectSpread({}, style), styles.root)
|
|
160
|
-
}, other),
|
|
161
|
-
|
|
159
|
+
}, other), {}, {
|
|
160
|
+
children: children
|
|
161
|
+
}));
|
|
162
|
+
};
|
|
162
163
|
NavigationBar.displayName = 'onesy-NavigationBar';
|
|
163
164
|
var _default = exports.default = NavigationBar;
|
|
@@ -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"));
|
|
@@ -15,6 +14,7 @@ var _Modal = _interopRequireDefault(require("../Modal"));
|
|
|
15
14
|
var _Slide = _interopRequireDefault(require("../Slide"));
|
|
16
15
|
var _useSwipe = _interopRequireDefault(require("../useSwipe"));
|
|
17
16
|
var _utils2 = require("../utils");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
18
|
const _excluded = ["tonal", "color", "version", "open", "openDefault", "position", "direction", "swipe", "swipeTouchAnywhere", "swipeBackgroundFollow", "min", "removeOnExited", "onClose", "TransitionComponentProps", "Component", "className", "children"];
|
|
19
19
|
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; }
|
|
20
20
|
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; }
|
|
@@ -87,7 +87,7 @@ const useStyle = (0, _styleReact.style)(theme => ({
|
|
|
87
87
|
}), {
|
|
88
88
|
name: 'onesy-NavigationDrawer'
|
|
89
89
|
});
|
|
90
|
-
const NavigationDrawer =
|
|
90
|
+
const NavigationDrawer = props_ => {
|
|
91
91
|
var _theme$ui, _theme$ui2, _theme$elements, _theme$elements2, _swipeValue, _swipeValue2;
|
|
92
92
|
const theme = (0, _styleReact.useOnesyTheme)();
|
|
93
93
|
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.onesyNavigationDrawer) === null || _theme$ui2 === void 0 || (_theme$ui2 = _theme$ui2.props) === null || _theme$ui2 === void 0 ? void 0 : _theme$ui2.default), props_);
|
|
@@ -218,8 +218,7 @@ const NavigationDrawer = /*#__PURE__*/_react.default.forwardRef((props_, ref) =>
|
|
|
218
218
|
other.openDefault = false;
|
|
219
219
|
TransitionComponentProps.min = TransitionComponentProps.min !== undefined ? TransitionComponentProps.min : min;
|
|
220
220
|
}
|
|
221
|
-
return /*#__PURE__*/
|
|
222
|
-
ref: ref,
|
|
221
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Modal, _objectSpread(_objectSpread({
|
|
223
222
|
open: open,
|
|
224
223
|
mainRef: refs.modal,
|
|
225
224
|
backgroundRef: refs.background,
|
|
@@ -237,7 +236,9 @@ const NavigationDrawer = /*#__PURE__*/_react.default.forwardRef((props_, ref) =>
|
|
|
237
236
|
Component: Component,
|
|
238
237
|
portal: position === 'fixed',
|
|
239
238
|
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('NavigationDrawer', theme) && ['onesy-NavigationDrawer-root'], className, classes.root, classes[`position_${position}`], classes[`direction_${direction}`], classes[`version_${version}`], classes[`version_${version}_position_${position}`]])
|
|
240
|
-
}, other),
|
|
241
|
-
|
|
239
|
+
}, other), {}, {
|
|
240
|
+
children: children
|
|
241
|
+
}));
|
|
242
|
+
};
|
|
242
243
|
NavigationDrawer.displayName = 'onesy-NavigationDrawer';
|
|
243
244
|
var _default = exports.default = NavigationDrawer;
|
|
@@ -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"));
|
|
@@ -16,7 +15,8 @@ var _Line = _interopRequireDefault(require("../Line"));
|
|
|
16
15
|
var _Tooltip = _interopRequireDefault(require("../Tooltip"));
|
|
17
16
|
var _Transition = _interopRequireDefault(require("../Transition"));
|
|
18
17
|
var _utils2 = require("../utils");
|
|
19
|
-
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
+
const _excluded = ["ref", "tonal", "color", "version", "value", "name", "nameTooltip", "vertical", "icon", "iconSelected", "selected", "disabled", "IconWrapperComponent", "onFocus", "onBlur", "onKeyDown", "onMouseDown", "onMouseEnter", "onMouseLeave", "onTouchStart", "TooltipProps", "LabelProps", "IconWrapperProps", "className", "style", "children"];
|
|
20
20
|
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; }
|
|
21
21
|
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; }
|
|
22
22
|
const useStyle = (0, _styleReact.style)(theme => ({
|
|
@@ -109,7 +109,7 @@ const useStyle = (0, _styleReact.style)(theme => ({
|
|
|
109
109
|
}), {
|
|
110
110
|
name: 'onesy-NavigationItem'
|
|
111
111
|
});
|
|
112
|
-
const NavigationItem =
|
|
112
|
+
const NavigationItem = props_ => {
|
|
113
113
|
var _theme$ui, _theme$ui2, _theme$elements, _theme$elements2, _theme$elements3, _theme$elements4, _ref;
|
|
114
114
|
const theme = (0, _styleReact.useOnesyTheme)();
|
|
115
115
|
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.onesyNavigationItem) === null || _theme$ui2 === void 0 || (_theme$ui2 = _theme$ui2.props) === null || _theme$ui2 === void 0 ? void 0 : _theme$ui2.default), props_);
|
|
@@ -118,6 +118,7 @@ const NavigationItem = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
118
118
|
const Tooltip = (theme === null || theme === void 0 || (_theme$elements3 = theme.elements) === null || _theme$elements3 === void 0 ? void 0 : _theme$elements3.Tooltip) || _Tooltip.default;
|
|
119
119
|
const Transition = (theme === null || theme === void 0 || (_theme$elements4 = theme.elements) === null || _theme$elements4 === void 0 ? void 0 : _theme$elements4.Transition) || _Transition.default;
|
|
120
120
|
const {
|
|
121
|
+
ref,
|
|
121
122
|
tonal = true,
|
|
122
123
|
color = 'primary',
|
|
123
124
|
version = 'regular',
|
|
@@ -229,7 +230,7 @@ const NavigationItem = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
229
230
|
styles.icon.color = styles.label.color = theme.methods.palette.color.value(color, 5, true, palette);
|
|
230
231
|
}
|
|
231
232
|
const Icon = selected && iconSelected || icon;
|
|
232
|
-
return /*#__PURE__*/
|
|
233
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, _objectSpread(_objectSpread({
|
|
233
234
|
name: (_ref = nameTooltip !== null && nameTooltip !== void 0 ? nameTooltip : name) !== null && _ref !== void 0 ? _ref : value,
|
|
234
235
|
position: "top",
|
|
235
236
|
alignment: "center",
|
|
@@ -237,49 +238,58 @@ const NavigationItem = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
237
238
|
touch: false,
|
|
238
239
|
hover: false,
|
|
239
240
|
focus: false
|
|
240
|
-
}, TooltipProps),
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
241
|
+
}, TooltipProps), {}, {
|
|
242
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", _objectSpread(_objectSpread({
|
|
243
|
+
tabIndex: !disabled ? 0 : undefined,
|
|
244
|
+
onFocus: onFocus,
|
|
245
|
+
onBlur: onBlur,
|
|
246
|
+
onKeyDown: onKeyDown,
|
|
247
|
+
onTouchStart: onTouchStart,
|
|
248
|
+
onMouseDown: onMouseDown,
|
|
249
|
+
onMouseEnter: onMouseEnter,
|
|
250
|
+
onMouseLeave: onMouseLeave,
|
|
251
|
+
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('NavigationItem', theme) && ['onesy-NavigationItem-root', selected && 'onesy-NavigationItem-selected', hover && `onesy-NavigationItem-hover`, mouseDown && `onesy-NavigationItem-mouse-down`, focus && `onesy-NavigationItem-focus`, disabled && `onesy-NavigationItem-disabled`], className, classes.root, vertical && classes.vertical, disabled && classes.disabled]),
|
|
252
|
+
style: _objectSpread({}, style)
|
|
253
|
+
}, other), {}, {
|
|
254
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
|
|
255
|
+
ref: item => {
|
|
256
|
+
if (ref) {
|
|
257
|
+
if ((0, _utils.is)('function', ref)) ref(item);else ref.current = item;
|
|
258
|
+
}
|
|
259
|
+
refs.root.current = item;
|
|
260
|
+
},
|
|
261
|
+
direction: "column",
|
|
262
|
+
align: "center",
|
|
263
|
+
justify: "center",
|
|
264
|
+
gap: 0.25,
|
|
265
|
+
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('NavigationItem', theme) && ['onesy-NavigationItem-item'], classes.item]),
|
|
266
|
+
children: [Icon && /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
|
|
267
|
+
Component: "span",
|
|
268
|
+
align: "center",
|
|
269
|
+
justify: "center",
|
|
270
|
+
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('NavigationItem', theme) && ['onesy-NavigationItem-icon-wrapper'], classes.iconWrapper, ['none', 'auto'].includes(version) && classes.iconWrapper_center, ['auto'].includes(version) && selected && classes.iconWrapper_center_selected]),
|
|
271
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Transition, {
|
|
272
|
+
in: hover || focus || selected,
|
|
273
|
+
children: status => /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
274
|
+
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('NavigationItem', theme) && ['onesy-NavigationItem-indicator'], classes.indicator, classes[`indicator_${status}`], selected && classes.indicator_selected, hover && classes.indicator_hover, focus && classes.indicator_focus, mouseDown && classes.indicator_pressed]),
|
|
275
|
+
style: styles.indicator
|
|
276
|
+
})
|
|
277
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(IconWrapperComponent, _objectSpread(_objectSpread({}, IconWrapperProps), {}, {
|
|
278
|
+
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('NavigationItem', theme) && ['onesy-NavigationItem-icon'], IconWrapperProps === null || IconWrapperProps === void 0 ? void 0 : IconWrapperProps.className, classes.icon]),
|
|
279
|
+
children: /*#__PURE__*/_react.default.cloneElement(Icon, {
|
|
280
|
+
style: _objectSpread(_objectSpread({}, Icon.props.style), styles.icon)
|
|
281
|
+
})
|
|
282
|
+
}))]
|
|
283
|
+
}), (version === 'regular' || version === 'auto' && selected) && /*#__PURE__*/(0, _jsxRuntime.jsx)(Type, _objectSpread(_objectSpread({
|
|
284
|
+
version: "b3"
|
|
285
|
+
}, LabelProps), {}, {
|
|
286
|
+
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('NavigationItem', theme) && ['onesy-NavigationItem-label', LabelProps === null || LabelProps === void 0 ? void 0 : LabelProps.className]]),
|
|
287
|
+
style: _objectSpread(_objectSpread({}, styles.label), LabelProps === null || LabelProps === void 0 ? void 0 : LabelProps.style),
|
|
288
|
+
children: name
|
|
289
|
+
}))]
|
|
290
|
+
})
|
|
291
|
+
}))
|
|
292
|
+
}));
|
|
293
|
+
};
|
|
284
294
|
NavigationItem.displayName = 'onesy-NavigationItem';
|
|
285
295
|
var _default = exports.default = NavigationItem;
|
|
@@ -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 _compilerRuntime = require("react/compiler-runtime");
|
|
@@ -17,6 +16,7 @@ var _Surface = _interopRequireDefault(require("../Surface"));
|
|
|
17
16
|
var _Divider = _interopRequireDefault(require("../Divider"));
|
|
18
17
|
var _NavigationBar = _interopRequireDefault(require("../NavigationBar"));
|
|
19
18
|
var _utils2 = require("../utils");
|
|
19
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
20
|
const _excluded = ["tonal", "color", "version", "size", "value", "valueDefault", "onChange", "justify", "border", "header", "fixed", "NavigationBarProps", "DividerProps", "className", "style", "children"];
|
|
21
21
|
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
22
|
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; }
|
|
@@ -66,7 +66,7 @@ const useStyle = (0, _styleReact.style)(theme => ({
|
|
|
66
66
|
}), {
|
|
67
67
|
name: 'onesy-NavigationRail'
|
|
68
68
|
});
|
|
69
|
-
const NavigationRail =
|
|
69
|
+
const NavigationRail = props_ => {
|
|
70
70
|
var _theme$ui, _theme$ui2, _theme$elements, _theme$elements2, _theme$elements3, _theme$elements4;
|
|
71
71
|
const $ = (0, _compilerRuntime.c)(4);
|
|
72
72
|
const theme = (0, _styleReact.useOnesyTheme)();
|
|
@@ -175,8 +175,7 @@ const NavigationRail = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
175
175
|
}
|
|
176
176
|
}));
|
|
177
177
|
});
|
|
178
|
-
return /*#__PURE__*/
|
|
179
|
-
ref: ref,
|
|
178
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Surface, _objectSpread(_objectSpread({
|
|
180
179
|
Component: Line,
|
|
181
180
|
color: color,
|
|
182
181
|
tonal: tonal,
|
|
@@ -186,23 +185,27 @@ const NavigationRail = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
186
185
|
gap: 0,
|
|
187
186
|
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)("NavigationRail", theme) && ["onesy-NavigationRail-root", `onesy-NavigationRail-version-${version}`, `onesy-NavigationRail-size-${size}`], className, classes.root, classes[`size_${size}`], fixed && classes.fixed]),
|
|
188
187
|
style: _objectSpread(_objectSpread({}, style), styles.root)
|
|
189
|
-
}, other),
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
})
|
|
188
|
+
}, other), {}, {
|
|
189
|
+
children: [header && /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, {
|
|
190
|
+
align: "center",
|
|
191
|
+
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)("NavigationRail", theme) && ["onesy-NavigationRail-header"], classes.header]),
|
|
192
|
+
children: header
|
|
193
|
+
}), children && /*#__PURE__*/(0, _jsxRuntime.jsx)(NavigationBar, _objectSpread(_objectSpread({
|
|
194
|
+
version: version,
|
|
195
|
+
direction: "column",
|
|
196
|
+
justify: justify,
|
|
197
|
+
gap: 2,
|
|
198
|
+
color: color,
|
|
199
|
+
tonal: tonal
|
|
200
|
+
}, NavigationBarProps), {}, {
|
|
201
|
+
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)("NavigationRail", theme) && ["onesy-NavigationRail-main"], NavigationBarProps === null || NavigationBarProps === void 0 ? void 0 : NavigationBarProps.className, classes.main]),
|
|
202
|
+
children: children
|
|
203
|
+
})), border && /*#__PURE__*/(0, _jsxRuntime.jsx)(Divider, _objectSpread(_objectSpread({
|
|
204
|
+
orientation: "vertical"
|
|
205
|
+
}, DividerProps), {}, {
|
|
206
|
+
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)("NavigationRail", theme) && ["onesy-NavigationRail-divider"], DividerProps === null || DividerProps === void 0 ? void 0 : DividerProps.className, classes.divider])
|
|
207
|
+
}))]
|
|
208
|
+
}));
|
|
209
|
+
};
|
|
207
210
|
NavigationRail.displayName = 'onesy-NavigationRail';
|
|
208
211
|
var _default = exports.default = NavigationRail;
|
package/NotFound/NotFound.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"));
|
|
@@ -16,6 +15,7 @@ var _Section = _interopRequireDefault(require("../Section"));
|
|
|
16
15
|
var _Type = _interopRequireDefault(require("../Type"));
|
|
17
16
|
var _Button = _interopRequireDefault(require("../Button"));
|
|
18
17
|
var _utils2 = require("../utils");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
19
|
const _excluded = ["name", "to", "link", "renderButton", "fullHeight", "start", "end", "buttonText", "ButtonProps", "TypeProps", "className"];
|
|
20
20
|
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; }
|
|
21
21
|
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; }
|
|
@@ -27,7 +27,7 @@ const useStyle = (0, _styleReact.style)(theme => ({
|
|
|
27
27
|
}), {
|
|
28
28
|
name: 'onesy-NotFound'
|
|
29
29
|
});
|
|
30
|
-
const NotFound =
|
|
30
|
+
const NotFound = props_ => {
|
|
31
31
|
var _theme$ui, _theme$ui2, _theme$elements, _theme$elements2, _theme$elements3;
|
|
32
32
|
const theme = (0, _styleReact.useOnesyTheme)();
|
|
33
33
|
const l = theme.l;
|
|
@@ -56,26 +56,29 @@ const NotFound = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
56
56
|
const onTo = () => {
|
|
57
57
|
if (link) window.open(link, 'blank');else navigate(to);
|
|
58
58
|
};
|
|
59
|
-
return /*#__PURE__*/
|
|
60
|
-
ref: ref,
|
|
59
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Section, _objectSpread(_objectSpread({
|
|
61
60
|
flex: true,
|
|
62
61
|
fullWidth: true,
|
|
63
62
|
align: "center",
|
|
64
63
|
justify: "center",
|
|
65
64
|
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('NotFound', theme) && [`onesy-NotFound-root`], className, classes.root, fullHeight && classes.fullHeight])
|
|
66
|
-
}, other),
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
65
|
+
}, other), {}, {
|
|
66
|
+
children: [start, /*#__PURE__*/(0, _jsxRuntime.jsx)(Type, _objectSpread(_objectSpread({
|
|
67
|
+
version: "h3",
|
|
68
|
+
align: "center"
|
|
69
|
+
}, TypeProps), {}, {
|
|
70
|
+
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('NotFound', theme) && [`onesy-NotFound-type`], TypeProps === null || TypeProps === void 0 ? void 0 : TypeProps.className]),
|
|
71
|
+
children: name
|
|
72
|
+
})), (0, _utils.is)('function', renderButton) ? renderButton({}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(Button, _objectSpread(_objectSpread({
|
|
73
|
+
color: "default",
|
|
74
|
+
version: "outlined",
|
|
75
|
+
size: "small",
|
|
76
|
+
onClick: onTo
|
|
77
|
+
}, ButtonProps), {}, {
|
|
78
|
+
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('NotFound', theme) && [`onesy-NotFound-button`], ButtonProps === null || ButtonProps === void 0 ? void 0 : ButtonProps.className, classes.button]),
|
|
79
|
+
children: buttonText
|
|
80
|
+
})), end]
|
|
81
|
+
}));
|
|
82
|
+
};
|
|
80
83
|
NotFound.displayName = 'onesy-NotFound';
|
|
81
84
|
var _default = exports.default = NotFound;
|
|
@@ -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"));
|
|
@@ -16,7 +15,8 @@ var _IconMaterialKeyboardArrowDownW = _interopRequireDefault(require("@onesy/ico
|
|
|
16
15
|
var _AdvancedTextField = _interopRequireDefault(require("../AdvancedTextField"));
|
|
17
16
|
var _IconButton = _interopRequireDefault(require("../IconButton"));
|
|
18
17
|
var _utils2 = require("../utils");
|
|
19
|
-
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
+
const _excluded = ["ref", "valueDefault", "value", "onChange", "version", "size", "min", "max", "increment", "decrement", "incrementValue", "decrementValue", "onFocus", "onBlur", "IconIncrement", "IconDecrement", "IconButtonProps", "IconProps", "className"];
|
|
20
20
|
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; }
|
|
21
21
|
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; }
|
|
22
22
|
const useStyle = (0, _styleReact.style)(theme => ({
|
|
@@ -24,13 +24,14 @@ const useStyle = (0, _styleReact.style)(theme => ({
|
|
|
24
24
|
}), {
|
|
25
25
|
name: 'onesy-NumericTextField'
|
|
26
26
|
});
|
|
27
|
-
const NumericTextField =
|
|
27
|
+
const NumericTextField = props_ => {
|
|
28
28
|
var _theme$ui, _theme$ui2, _theme$elements, _theme$elements2;
|
|
29
29
|
const theme = (0, _styleReact.useOnesyTheme)();
|
|
30
30
|
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.onesyNumericTextField) === null || _theme$ui2 === void 0 || (_theme$ui2 = _theme$ui2.props) === null || _theme$ui2 === void 0 ? void 0 : _theme$ui2.default), props_);
|
|
31
31
|
const AdvancedTextField = (theme === null || theme === void 0 || (_theme$elements = theme.elements) === null || _theme$elements === void 0 ? void 0 : _theme$elements.AdvancedTextField) || _AdvancedTextField.default;
|
|
32
32
|
const IconButton = (theme === null || theme === void 0 || (_theme$elements2 = theme.elements) === null || _theme$elements2 === void 0 ? void 0 : _theme$elements2.IconButton) || _IconButton.default;
|
|
33
33
|
const {
|
|
34
|
+
ref,
|
|
34
35
|
valueDefault,
|
|
35
36
|
value: value_,
|
|
36
37
|
onChange: onChange_,
|
|
@@ -177,13 +178,17 @@ const NumericTextField = /*#__PURE__*/_react.default.forwardRef((props_, ref) =>
|
|
|
177
178
|
size: 24,
|
|
178
179
|
fontSize: '1.5rem'
|
|
179
180
|
};
|
|
180
|
-
if (decrement) end.push(/*#__PURE__*/
|
|
181
|
+
if (decrement) end.push(/*#__PURE__*/(0, _jsxRuntime.jsx)(IconButton, _objectSpread(_objectSpread(_objectSpread({
|
|
181
182
|
onClick: onDecrement
|
|
182
|
-
}, iconButtonProps, IconButtonProps),
|
|
183
|
-
|
|
183
|
+
}, iconButtonProps), IconButtonProps), {}, {
|
|
184
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconDecrement, _objectSpread({}, IconProps))
|
|
185
|
+
})));
|
|
186
|
+
if (increment) end.push(/*#__PURE__*/(0, _jsxRuntime.jsx)(IconButton, _objectSpread(_objectSpread(_objectSpread({
|
|
184
187
|
onClick: onIncrement
|
|
185
|
-
}, iconButtonProps, IconButtonProps),
|
|
186
|
-
|
|
188
|
+
}, iconButtonProps), IconButtonProps), {}, {
|
|
189
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(IconIncrement, _objectSpread({}, IconProps))
|
|
190
|
+
})));
|
|
191
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(AdvancedTextField, _objectSpread({
|
|
187
192
|
ref: item => {
|
|
188
193
|
if (ref) {
|
|
189
194
|
if ((0, _utils.is)('function', ref)) ref(item);else ref.current = item;
|
|
@@ -209,6 +214,6 @@ const NumericTextField = /*#__PURE__*/_react.default.forwardRef((props_, ref) =>
|
|
|
209
214
|
endVerticalAlign: "center",
|
|
210
215
|
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('NumericTextField', theme) && ['onesy-NumericTextField-root', `onesy-NumericTextField-version-${version}`, `onesy-NumericTextField-size-${size}`], className, classes.root])
|
|
211
216
|
}, other));
|
|
212
|
-
}
|
|
217
|
+
};
|
|
213
218
|
NumericTextField.displayName = 'onesy-NumericTextField';
|
|
214
219
|
var _default = exports.default = NumericTextField;
|