@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
|
@@ -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 _Line = _interopRequireDefault(require("../Line"));
|
|
|
16
15
|
var _Type = _interopRequireDefault(require("../Type"));
|
|
17
16
|
var _Tooltip = _interopRequireDefault(require("../Tooltip"));
|
|
18
17
|
var _utils2 = require("../utils");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
19
|
const _excluded = ["date", "times", "events", "onOpen", "onTimeClick", "render", "statuses", "displayTime", "day", "className", "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; }
|
|
@@ -131,7 +131,7 @@ const useStyle = (0, _styleReact.style)(theme => ({
|
|
|
131
131
|
}), {
|
|
132
132
|
name: 'onesy-CalendarWeek'
|
|
133
133
|
});
|
|
134
|
-
const CalendarWeek =
|
|
134
|
+
const CalendarWeek = props_ => {
|
|
135
135
|
var _theme$ui, _theme$ui2, _theme$elements, _theme$elements2, _theme$elements3;
|
|
136
136
|
const theme = (0, _styleReact.useOnesyTheme)();
|
|
137
137
|
const l = theme.l;
|
|
@@ -336,37 +336,41 @@ const CalendarWeek = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
336
336
|
}, top === 0 && bottom === 0 && {
|
|
337
337
|
border: 'none'
|
|
338
338
|
});
|
|
339
|
-
const elementRendered = (0, _utils.is)('function', render) ? render(item_3, dayProp ? 'day' : 'week') : /*#__PURE__*/
|
|
340
|
-
key: index,
|
|
339
|
+
const elementRendered = (0, _utils.is)('function', render) ? render(item_3, dayProp ? 'day' : 'week') : /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, _objectSpread(_objectSpread({
|
|
341
340
|
gap: 0.5,
|
|
342
341
|
align: "center",
|
|
343
342
|
justify: "center"
|
|
344
|
-
}, itemProps),
|
|
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
|
-
})
|
|
343
|
+
}, itemProps), {}, {
|
|
344
|
+
children: [!minimal && refs.displayTime.current && /*#__PURE__*/(0, _jsxRuntime.jsxs)(Type, {
|
|
345
|
+
version: "l2",
|
|
346
|
+
weight: 300,
|
|
347
|
+
align: "center",
|
|
348
|
+
className: classes.time,
|
|
349
|
+
style: {
|
|
350
|
+
background: getColor(item_3)
|
|
351
|
+
},
|
|
352
|
+
children: [(0, _date.format)(from_1, 'hh:mm a', {
|
|
353
|
+
l
|
|
354
|
+
}), " - ", renderTo((0, _date.format)(to_1, 'hh:mm a', {
|
|
355
|
+
l
|
|
356
|
+
}))]
|
|
357
|
+
}), item_3.description && /*#__PURE__*/(0, _jsxRuntime.jsx)(Type, {
|
|
358
|
+
version: "b2",
|
|
359
|
+
dangerouslySetInnerHTML: {
|
|
360
|
+
__html: (0, _utils.textToInnerHTML)(item_3.description)
|
|
361
|
+
},
|
|
362
|
+
style: {
|
|
363
|
+
maxHeight: 24,
|
|
364
|
+
maxWidth: '90%'
|
|
365
|
+
}
|
|
366
|
+
})]
|
|
367
|
+
}), index);
|
|
368
|
+
elements.push(/*#__PURE__*/(0, _jsxRuntime.jsx)(WrapperElement, _objectSpread(_objectSpread({}, WrapperElementProps), {}, {
|
|
369
|
+
children: /*#__PURE__*/_react.default.cloneElement(elementRendered, _objectSpread(_objectSpread({}, itemProps), {}, {
|
|
370
|
+
className: (0, _styleReact.classNames)([itemProps.className, (_elementRendered$prop = elementRendered.props) === null || _elementRendered$prop === void 0 ? void 0 : _elementRendered$prop.className]),
|
|
371
|
+
style: _objectSpread(_objectSpread({}, style), (_elementRendered$prop2 = elementRendered.props) === null || _elementRendered$prop2 === void 0 ? void 0 : _elementRendered$prop2.style)
|
|
372
|
+
}))
|
|
373
|
+
})));
|
|
370
374
|
});
|
|
371
375
|
return elements;
|
|
372
376
|
};
|
|
@@ -385,10 +389,14 @@ const CalendarWeek = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
385
389
|
refs.days.current = {};
|
|
386
390
|
refs.overlaping.current = {};
|
|
387
391
|
const day_0 = dayDate_0.dayWeek === 0 ? 7 : dayDate_0.dayWeek;
|
|
388
|
-
return /*#__PURE__*/
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
393
|
+
children: times.map(item_4 => {
|
|
394
|
+
var _day_;
|
|
395
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
396
|
+
children: [item_4.weekly && renderTimes(dayDate_0, (_day_ = item_4.weekly.days[day_0]) === null || _day_ === void 0 ? void 0 : _day_.values, true, item_4.weekly.days[day_0]), item_4.dates && renderTimes(dayDate_0, getDates(item_4), false)]
|
|
397
|
+
});
|
|
398
|
+
})
|
|
399
|
+
});
|
|
392
400
|
};
|
|
393
401
|
const hours = _react.default.useMemo(() => {
|
|
394
402
|
return Array.from({
|
|
@@ -401,136 +409,150 @@ const CalendarWeek = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
401
409
|
length: 7
|
|
402
410
|
}).map((_, index_1) => (0, _date.add)(index_1, 'day', weekStartDate));
|
|
403
411
|
}, [date]);
|
|
404
|
-
return /*#__PURE__*/
|
|
405
|
-
ref: ref,
|
|
412
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, _objectSpread(_objectSpread({
|
|
406
413
|
gap: 1.5,
|
|
407
414
|
flex: true,
|
|
408
415
|
fullWidth: true,
|
|
409
416
|
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('CalendarWeek', theme) && ['onesy-CalendarWeek-root', dayProp && 'onesy-CalendarWeek-prop-day'], className, classes.root])
|
|
410
|
-
}, other),
|
|
411
|
-
|
|
412
|
-
direction: "row",
|
|
413
|
-
align: "stretch",
|
|
414
|
-
flex: true,
|
|
415
|
-
fullWidth: true,
|
|
416
|
-
className: classes.days
|
|
417
|
-
}, /*#__PURE__*/_react.default.createElement(Line, {
|
|
418
|
-
gap: 0,
|
|
419
|
-
align: "center",
|
|
420
|
-
fullWidth: true,
|
|
421
|
-
className: (0, _styleReact.classNames)(['onesy-hours', classes.hours])
|
|
422
|
-
}, /*#__PURE__*/_react.default.createElement(Line, {
|
|
423
|
-
className: classes.dayHeader
|
|
424
|
-
}), /*#__PURE__*/_react.default.createElement(Line, {
|
|
425
|
-
gap: 0,
|
|
426
|
-
flex: true,
|
|
427
|
-
fullWidth: true,
|
|
428
|
-
className: classes.hourWrapper
|
|
429
|
-
}, hours.map((itemHour, index_2) => /*#__PURE__*/_react.default.createElement(Line, {
|
|
430
|
-
key: index_2,
|
|
431
|
-
gap: 1,
|
|
432
|
-
align: "unset",
|
|
433
|
-
className: classes.hour,
|
|
434
|
-
style: {
|
|
435
|
-
top: `${100 / 24 * index_2}%`
|
|
436
|
-
}
|
|
437
|
-
}, /*#__PURE__*/_react.default.createElement(Type, {
|
|
438
|
-
version: "b3",
|
|
439
|
-
whiteSpace: "nowrap"
|
|
440
|
-
}, (0, _date.format)(itemHour, 'h A', {
|
|
441
|
-
l
|
|
442
|
-
})))))), dayProp && /*#__PURE__*/_react.default.createElement(Line, {
|
|
443
|
-
gap: 0,
|
|
444
|
-
direction: "column",
|
|
445
|
-
align: "center",
|
|
446
|
-
flex: true,
|
|
447
|
-
className: (0, _styleReact.classNames)(['onesy-day', classes.day])
|
|
448
|
-
}, /*#__PURE__*/_react.default.createElement(Line, {
|
|
449
|
-
gap: 0,
|
|
450
|
-
align: "center",
|
|
451
|
-
fullWidth: true,
|
|
452
|
-
className: classes.dayHeader
|
|
453
|
-
}, /*#__PURE__*/_react.default.createElement(Type, {
|
|
454
|
-
version: "l1",
|
|
455
|
-
weight: 200
|
|
456
|
-
}, (0, _date.format)(date, 'd', {
|
|
457
|
-
l
|
|
458
|
-
})), /*#__PURE__*/_react.default.createElement(Line, {
|
|
459
|
-
align: "center",
|
|
460
|
-
justify: "center",
|
|
461
|
-
className: (0, _styleReact.classNames)([classes.weekDay, date.year === now.year && date.dayYear === now.dayYear && classes.today])
|
|
462
|
-
}, /*#__PURE__*/_react.default.createElement(Type, {
|
|
463
|
-
version: "h3",
|
|
464
|
-
weight: 400,
|
|
465
|
-
align: "center"
|
|
466
|
-
}, (0, _date.format)(date, 'D', {
|
|
467
|
-
l
|
|
468
|
-
})))), /*#__PURE__*/_react.default.createElement(Line, {
|
|
469
|
-
className: classes.dayBody,
|
|
470
|
-
flex: true,
|
|
471
|
-
fullWidth: true,
|
|
472
|
-
onClick: event_1 => onTimeClickMethod(date, event_1)
|
|
473
|
-
}, timesUI(date), hours.map((itemGuide, indexGuide) => /*#__PURE__*/_react.default.createElement(Line, {
|
|
474
|
-
key: indexGuide,
|
|
475
|
-
className: classes.guide,
|
|
476
|
-
fullWidth: true,
|
|
477
|
-
style: {
|
|
478
|
-
top: `${100 / 24 * indexGuide}%`
|
|
479
|
-
}
|
|
480
|
-
})), (0, _date.format)(now, _utils2.formats.date) === (0, _date.format)(date, _utils2.formats.date) && /*#__PURE__*/_react.default.createElement(Line, {
|
|
481
|
-
className: classes.guidelineHour,
|
|
482
|
-
fullWidth: true,
|
|
483
|
-
style: {
|
|
484
|
-
top: `${(now.hour * 60 + now.minute) / (24 * 60) * 100}%`
|
|
485
|
-
}
|
|
486
|
-
}))), !dayProp && days.map((itemDay_1, index_3) => {
|
|
487
|
-
return /*#__PURE__*/_react.default.createElement(Line, {
|
|
488
|
-
key: index_3,
|
|
417
|
+
}, other), {}, {
|
|
418
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
|
|
489
419
|
gap: 0,
|
|
490
|
-
direction: "
|
|
491
|
-
align: "
|
|
492
|
-
flex: true,
|
|
493
|
-
className: (0, _styleReact.classNames)(['onesy-day', classes.day])
|
|
494
|
-
}, /*#__PURE__*/_react.default.createElement(Line, {
|
|
495
|
-
gap: 0,
|
|
496
|
-
align: "center",
|
|
497
|
-
fullWidth: true,
|
|
498
|
-
className: classes.dayHeader
|
|
499
|
-
}, /*#__PURE__*/_react.default.createElement(Type, {
|
|
500
|
-
version: "l1",
|
|
501
|
-
weight: 200
|
|
502
|
-
}, (0, _date.format)(itemDay_1, 'd', {
|
|
503
|
-
l
|
|
504
|
-
})), /*#__PURE__*/_react.default.createElement(Line, {
|
|
505
|
-
align: "center",
|
|
506
|
-
justify: "center",
|
|
507
|
-
className: (0, _styleReact.classNames)([classes.weekDay, itemDay_1.year === now.year && itemDay_1.dayYear === now.dayYear && classes.today])
|
|
508
|
-
}, /*#__PURE__*/_react.default.createElement(Type, {
|
|
509
|
-
version: "h3",
|
|
510
|
-
weight: 400,
|
|
511
|
-
align: "center"
|
|
512
|
-
}, (0, _date.format)(itemDay_1, 'D', {
|
|
513
|
-
l
|
|
514
|
-
})))), /*#__PURE__*/_react.default.createElement(Line, {
|
|
515
|
-
className: classes.dayBody,
|
|
420
|
+
direction: "row",
|
|
421
|
+
align: "stretch",
|
|
516
422
|
flex: true,
|
|
517
423
|
fullWidth: true,
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
424
|
+
className: classes.days,
|
|
425
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
|
|
426
|
+
gap: 0,
|
|
427
|
+
align: "center",
|
|
428
|
+
fullWidth: true,
|
|
429
|
+
className: (0, _styleReact.classNames)(['onesy-hours', classes.hours]),
|
|
430
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Line, {
|
|
431
|
+
className: classes.dayHeader
|
|
432
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, {
|
|
433
|
+
gap: 0,
|
|
434
|
+
flex: true,
|
|
435
|
+
fullWidth: true,
|
|
436
|
+
className: classes.hourWrapper,
|
|
437
|
+
children: hours.map((itemHour, index_2) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, {
|
|
438
|
+
gap: 1,
|
|
439
|
+
align: "unset",
|
|
440
|
+
className: classes.hour,
|
|
441
|
+
style: {
|
|
442
|
+
top: `${100 / 24 * index_2}%`
|
|
443
|
+
},
|
|
444
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Type, {
|
|
445
|
+
version: "b3",
|
|
446
|
+
whiteSpace: "nowrap",
|
|
447
|
+
children: (0, _date.format)(itemHour, 'h A', {
|
|
448
|
+
l
|
|
449
|
+
})
|
|
450
|
+
})
|
|
451
|
+
}, index_2))
|
|
452
|
+
})]
|
|
453
|
+
}), dayProp && /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
|
|
454
|
+
gap: 0,
|
|
455
|
+
direction: "column",
|
|
456
|
+
align: "center",
|
|
457
|
+
flex: true,
|
|
458
|
+
className: (0, _styleReact.classNames)(['onesy-day', classes.day]),
|
|
459
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
|
|
460
|
+
gap: 0,
|
|
461
|
+
align: "center",
|
|
462
|
+
fullWidth: true,
|
|
463
|
+
className: classes.dayHeader,
|
|
464
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Type, {
|
|
465
|
+
version: "l1",
|
|
466
|
+
weight: 200,
|
|
467
|
+
children: (0, _date.format)(date, 'd', {
|
|
468
|
+
l
|
|
469
|
+
})
|
|
470
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, {
|
|
471
|
+
align: "center",
|
|
472
|
+
justify: "center",
|
|
473
|
+
className: (0, _styleReact.classNames)([classes.weekDay, date.year === now.year && date.dayYear === now.dayYear && classes.today]),
|
|
474
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Type, {
|
|
475
|
+
version: "h3",
|
|
476
|
+
weight: 400,
|
|
477
|
+
align: "center",
|
|
478
|
+
children: (0, _date.format)(date, 'D', {
|
|
479
|
+
l
|
|
480
|
+
})
|
|
481
|
+
})
|
|
482
|
+
})]
|
|
483
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
|
|
484
|
+
className: classes.dayBody,
|
|
485
|
+
flex: true,
|
|
486
|
+
fullWidth: true,
|
|
487
|
+
onClick: event_1 => onTimeClickMethod(date, event_1),
|
|
488
|
+
children: [timesUI(date), hours.map((itemGuide, indexGuide) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, {
|
|
489
|
+
className: classes.guide,
|
|
490
|
+
fullWidth: true,
|
|
491
|
+
style: {
|
|
492
|
+
top: `${100 / 24 * indexGuide}%`
|
|
493
|
+
}
|
|
494
|
+
}, indexGuide)), (0, _date.format)(now, _utils2.formats.date) === (0, _date.format)(date, _utils2.formats.date) && /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, {
|
|
495
|
+
className: classes.guidelineHour,
|
|
496
|
+
fullWidth: true,
|
|
497
|
+
style: {
|
|
498
|
+
top: `${(now.hour * 60 + now.minute) / (24 * 60) * 100}%`
|
|
499
|
+
}
|
|
500
|
+
})]
|
|
501
|
+
})]
|
|
502
|
+
}), !dayProp && days.map((itemDay_1, index_3) => {
|
|
503
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
|
|
504
|
+
gap: 0,
|
|
505
|
+
direction: "column",
|
|
506
|
+
align: "center",
|
|
507
|
+
flex: true,
|
|
508
|
+
className: (0, _styleReact.classNames)(['onesy-day', classes.day]),
|
|
509
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
|
|
510
|
+
gap: 0,
|
|
511
|
+
align: "center",
|
|
512
|
+
fullWidth: true,
|
|
513
|
+
className: classes.dayHeader,
|
|
514
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Type, {
|
|
515
|
+
version: "l1",
|
|
516
|
+
weight: 200,
|
|
517
|
+
children: (0, _date.format)(itemDay_1, 'd', {
|
|
518
|
+
l
|
|
519
|
+
})
|
|
520
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, {
|
|
521
|
+
align: "center",
|
|
522
|
+
justify: "center",
|
|
523
|
+
className: (0, _styleReact.classNames)([classes.weekDay, itemDay_1.year === now.year && itemDay_1.dayYear === now.dayYear && classes.today]),
|
|
524
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Type, {
|
|
525
|
+
version: "h3",
|
|
526
|
+
weight: 400,
|
|
527
|
+
align: "center",
|
|
528
|
+
children: (0, _date.format)(itemDay_1, 'D', {
|
|
529
|
+
l
|
|
530
|
+
})
|
|
531
|
+
})
|
|
532
|
+
})]
|
|
533
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(Line, {
|
|
534
|
+
className: classes.dayBody,
|
|
535
|
+
flex: true,
|
|
536
|
+
fullWidth: true,
|
|
537
|
+
onClick: event_2 => onTimeClickMethod(itemDay_1, event_2),
|
|
538
|
+
children: [timesUI(itemDay_1), hours.map((itemGuide_0, indexGuide_0) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, {
|
|
539
|
+
className: classes.guide,
|
|
540
|
+
fullWidth: true,
|
|
541
|
+
style: {
|
|
542
|
+
top: `${100 / 24 * indexGuide_0}%`
|
|
543
|
+
}
|
|
544
|
+
}, indexGuide_0)), (0, _date.format)(now, _utils2.formats.date) === (0, _date.format)(itemDay_1, _utils2.formats.date) && /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, {
|
|
545
|
+
className: classes.guidelineHour,
|
|
546
|
+
fullWidth: true,
|
|
547
|
+
style: {
|
|
548
|
+
top: `${(now.hour * 60 + now.minute) / (24 * 60) * 100}%`
|
|
549
|
+
}
|
|
550
|
+
})]
|
|
551
|
+
})]
|
|
552
|
+
}, index_3);
|
|
553
|
+
})]
|
|
554
|
+
})
|
|
555
|
+
}));
|
|
556
|
+
};
|
|
535
557
|
CalendarWeek.displayName = 'onesy-CalendarWeek';
|
|
536
558
|
var _default = exports.default = CalendarWeek;
|
package/Card/Card.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"));
|
|
@@ -15,6 +14,7 @@ var _Surface = _interopRequireDefault(require("../Surface"));
|
|
|
15
14
|
var _Interaction = _interopRequireDefault(require("../Interaction"));
|
|
16
15
|
var _Line = _interopRequireDefault(require("../Line"));
|
|
17
16
|
var _utils2 = require("../utils");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
18
|
const _excluded = ["tonal", "color", "version", "elevation", "focus", "selected", "button", "href", "disabled", "onFocus", "onBlur", "InteractionProps", "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; }
|
|
@@ -48,7 +48,7 @@ const useStyle = (0, _styleReact.style)(theme => ({
|
|
|
48
48
|
}), {
|
|
49
49
|
name: 'onesy-Card'
|
|
50
50
|
});
|
|
51
|
-
const Card =
|
|
51
|
+
const Card = props_ => {
|
|
52
52
|
var _theme$ui, _theme$ui2, _theme$elements, _theme$elements2, _theme$elements3;
|
|
53
53
|
const theme = (0, _styleReact.useOnesyTheme)();
|
|
54
54
|
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.onesyCard) === null || _theme$ui2 === void 0 || (_theme$ui2 = _theme$ui2.props) === null || _theme$ui2 === void 0 ? void 0 : _theme$ui2.default), props_);
|
|
@@ -95,8 +95,7 @@ const Card = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
95
95
|
if ((0, _utils.is)('function', onBlur_)) onBlur_(event_0);
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
|
-
return /*#__PURE__*/
|
|
99
|
-
ref: ref,
|
|
98
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Surface, _objectSpread(_objectSpread({
|
|
100
99
|
gap: 0,
|
|
101
100
|
tabIndex: (href || button) && !disabled ? 0 : undefined,
|
|
102
101
|
color: color,
|
|
@@ -112,16 +111,18 @@ const Card = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
112
111
|
},
|
|
113
112
|
Component: Line,
|
|
114
113
|
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('Card', theme) && [`onesy-Card-root`, focus && `onesy-Card-focus`, disabled && `onesy-Card-disabled`], className, classes.root, href && classes.href, button && classes.button, disabled && [classes.disabled, classes[`disabled_version_${version}`]]])
|
|
115
|
-
}, other),
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
})
|
|
114
|
+
}, other), {}, {
|
|
115
|
+
children: [(href || button) && /*#__PURE__*/(0, _jsxRuntime.jsx)(Interaction, _objectSpread({
|
|
116
|
+
border: false,
|
|
117
|
+
pulse: focus,
|
|
118
|
+
selected: selected
|
|
119
|
+
}, InteractionProps)), _react.default.Children.toArray(children).map(item => (/*#__PURE__*/_react.default.cloneElement(item, {
|
|
120
|
+
tonal: item.props.tonal !== undefined ? item.props.tonal : tonal,
|
|
121
|
+
version: item.props.version !== undefined ? item.props.version : version,
|
|
122
|
+
elevation: item.props.elevation !== undefined ? item.props.elevation : elevation,
|
|
123
|
+
color: item.props.color !== undefined ? item.props.color : color
|
|
124
|
+
})))]
|
|
125
|
+
}));
|
|
126
|
+
};
|
|
126
127
|
Card.displayName = 'onesy-Card';
|
|
127
128
|
var _default = exports.default = Card;
|
package/CardButton/CardButton.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"));
|
|
@@ -13,6 +12,7 @@ var _utils = require("@onesy/utils");
|
|
|
13
12
|
var _styleReact = require("@onesy/style-react");
|
|
14
13
|
var _Interaction = _interopRequireDefault(require("../Interaction"));
|
|
15
14
|
var _utils2 = require("../utils");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
const _excluded = ["focus", "selected", "href", "disabled", "onFocus", "onBlur", "InteractionProps", "Component", "className", "children"];
|
|
17
17
|
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; }
|
|
18
18
|
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; }
|
|
@@ -24,7 +24,7 @@ const useStyle = (0, _styleReact.style)(theme => ({
|
|
|
24
24
|
}), {
|
|
25
25
|
name: 'onesy-CardButton'
|
|
26
26
|
});
|
|
27
|
-
const CardButton =
|
|
27
|
+
const CardButton = props_ => {
|
|
28
28
|
var _theme$ui, _theme$ui2, _theme$elements;
|
|
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.onesyCardButton) === null || _theme$ui2 === void 0 || (_theme$ui2 = _theme$ui2.props) === null || _theme$ui2 === void 0 ? void 0 : _theme$ui2.default), props_);
|
|
@@ -59,19 +59,20 @@ const CardButton = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
const Component = Component_;
|
|
62
|
-
return /*#__PURE__*/
|
|
63
|
-
ref: ref,
|
|
62
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, _objectSpread(_objectSpread({
|
|
64
63
|
tabIndex: !disabled ? 0 : -1,
|
|
65
64
|
Component: Component,
|
|
66
65
|
onFocus: onFocus,
|
|
67
66
|
onBlur: onBlur,
|
|
68
67
|
href: href,
|
|
69
68
|
className: (0, _styleReact.classNames)([(0, _utils2.staticClassName)('CardButton', theme) && [`onesy-CardButton-root`, focus && `onesy-CardButton-focus`, disabled && `onesy-CardButton-disabled`], className, classes.root])
|
|
70
|
-
}, other),
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
})
|
|
69
|
+
}, other), {}, {
|
|
70
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Interaction, _objectSpread({
|
|
71
|
+
border: false,
|
|
72
|
+
pulse: focus,
|
|
73
|
+
selected: selected
|
|
74
|
+
}, InteractionProps)), children]
|
|
75
|
+
}));
|
|
76
|
+
};
|
|
76
77
|
CardButton.displayName = 'onesy-CardButton';
|
|
77
78
|
var _default = exports.default = CardButton;
|
package/CardFooter/CardFooter.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 _compilerRuntime = require("react/compiler-runtime");
|
|
@@ -13,6 +12,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
13
12
|
var _styleReact = require("@onesy/style-react");
|
|
14
13
|
var _Line = _interopRequireDefault(require("../Line"));
|
|
15
14
|
var _utils = require("../utils");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
const _excluded = ["tonal", "color", "version", "elevation", "Component", "className", "children"];
|
|
17
17
|
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; }
|
|
18
18
|
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,9 +23,9 @@ const useStyle = (0, _styleReact.style)(theme => ({
|
|
|
23
23
|
}), {
|
|
24
24
|
name: 'onesy-CardFooter'
|
|
25
25
|
});
|
|
26
|
-
const CardFooter =
|
|
26
|
+
const CardFooter = props_ => {
|
|
27
27
|
var _theme$ui, _theme$ui2, _theme$elements;
|
|
28
|
-
const $ = (0, _compilerRuntime.c)(
|
|
28
|
+
const $ = (0, _compilerRuntime.c)(6);
|
|
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.onesyCardFooter) === null || _theme$ui2 === void 0 || (_theme$ui2 = _theme$ui2.props) === null || _theme$ui2 === void 0 ? void 0 : _theme$ui2.default), props_);
|
|
31
31
|
const Line = (theme === null || theme === void 0 || (_theme$elements = theme.elements) === null || _theme$elements === void 0 ? void 0 : _theme$elements.Line) || _Line.default;
|
|
@@ -52,9 +52,8 @@ const CardFooter = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
52
52
|
const t7 = true;
|
|
53
53
|
const t8 = (0, _styleReact.classNames)([(0, _utils.staticClassName)("CardFooter", theme) && ["onesy-CardFooter-root"], className, classes.root]);
|
|
54
54
|
let t9;
|
|
55
|
-
if ($[0] !== Component || $[1] !== Line || $[2] !== children || $[3] !== other || $[4] !==
|
|
56
|
-
t9 = /*#__PURE__*/
|
|
57
|
-
ref: ref,
|
|
55
|
+
if ($[0] !== Component || $[1] !== Line || $[2] !== children || $[3] !== other || $[4] !== t8) {
|
|
56
|
+
t9 = /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, _objectSpread(_objectSpread({
|
|
58
57
|
gap: t2,
|
|
59
58
|
direction: t3,
|
|
60
59
|
wrap: t4,
|
|
@@ -63,18 +62,19 @@ const CardFooter = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
63
62
|
fullWidth: t7,
|
|
64
63
|
Component: Component,
|
|
65
64
|
className: t8
|
|
66
|
-
}, other),
|
|
65
|
+
}, other), {}, {
|
|
66
|
+
children: children
|
|
67
|
+
}));
|
|
67
68
|
$[0] = Component;
|
|
68
69
|
$[1] = Line;
|
|
69
70
|
$[2] = children;
|
|
70
71
|
$[3] = other;
|
|
71
|
-
$[4] =
|
|
72
|
-
$[5] =
|
|
73
|
-
$[6] = t9;
|
|
72
|
+
$[4] = t8;
|
|
73
|
+
$[5] = t9;
|
|
74
74
|
} else {
|
|
75
|
-
t9 = $[
|
|
75
|
+
t9 = $[5];
|
|
76
76
|
}
|
|
77
77
|
return t9;
|
|
78
|
-
}
|
|
78
|
+
};
|
|
79
79
|
CardFooter.displayName = 'onesy-CardFooter';
|
|
80
80
|
var _default = exports.default = CardFooter;
|
package/CardHeader/CardHeader.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 _compilerRuntime = require("react/compiler-runtime");
|
|
@@ -13,6 +12,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
13
12
|
var _styleReact = require("@onesy/style-react");
|
|
14
13
|
var _Line = _interopRequireDefault(require("../Line"));
|
|
15
14
|
var _utils = require("../utils");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
const _excluded = ["tonal", "color", "version", "elevation", "Component", "className", "children"];
|
|
17
17
|
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; }
|
|
18
18
|
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,9 +23,9 @@ const useStyle = (0, _styleReact.style)(theme => ({
|
|
|
23
23
|
}), {
|
|
24
24
|
name: 'onesy-CardHeader'
|
|
25
25
|
});
|
|
26
|
-
const CardHeader =
|
|
26
|
+
const CardHeader = props_ => {
|
|
27
27
|
var _theme$ui, _theme$ui2, _theme$elements;
|
|
28
|
-
const $ = (0, _compilerRuntime.c)(
|
|
28
|
+
const $ = (0, _compilerRuntime.c)(17);
|
|
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.onesyCardHeader) === null || _theme$ui2 === void 0 || (_theme$ui2 = _theme$ui2.props) === null || _theme$ui2 === void 0 ? void 0 : _theme$ui2.default), props_);
|
|
31
31
|
const Line = (theme === null || theme === void 0 || (_theme$elements = theme.elements) === null || _theme$elements === void 0 ? void 0 : _theme$elements.Line) || _Line.default;
|
|
@@ -82,27 +82,27 @@ const CardHeader = /*#__PURE__*/_react.default.forwardRef((props_, ref) => {
|
|
|
82
82
|
t7 = $[5];
|
|
83
83
|
}
|
|
84
84
|
let t8;
|
|
85
|
-
if ($[11] !== Component || $[12] !== Line || $[13] !== other || $[14] !==
|
|
86
|
-
t8 = /*#__PURE__*/
|
|
87
|
-
ref: ref,
|
|
85
|
+
if ($[11] !== Component || $[12] !== Line || $[13] !== other || $[14] !== t6 || $[15] !== t7) {
|
|
86
|
+
t8 = /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, _objectSpread(_objectSpread({
|
|
88
87
|
direction: t2,
|
|
89
88
|
align: t3,
|
|
90
89
|
justify: t4,
|
|
91
90
|
fullWidth: t5,
|
|
92
91
|
Component: Component,
|
|
93
92
|
className: t6
|
|
94
|
-
}, other),
|
|
93
|
+
}, other), {}, {
|
|
94
|
+
children: t7
|
|
95
|
+
}));
|
|
95
96
|
$[11] = Component;
|
|
96
97
|
$[12] = Line;
|
|
97
98
|
$[13] = other;
|
|
98
|
-
$[14] =
|
|
99
|
-
$[15] =
|
|
100
|
-
$[16] =
|
|
101
|
-
$[17] = t8;
|
|
99
|
+
$[14] = t6;
|
|
100
|
+
$[15] = t7;
|
|
101
|
+
$[16] = t8;
|
|
102
102
|
} else {
|
|
103
|
-
t8 = $[
|
|
103
|
+
t8 = $[16];
|
|
104
104
|
}
|
|
105
105
|
return t8;
|
|
106
|
-
}
|
|
106
|
+
};
|
|
107
107
|
CardHeader.displayName = 'onesy-CardHeader';
|
|
108
108
|
var _default = exports.default = CardHeader;
|