@onesy/ui-react 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.d.ts +38 -0
- package/Accordion/Accordion.js +252 -0
- package/Accordion/index.d.ts +1 -0
- package/Accordion/index.js +8 -0
- package/Accordion/package.json +6 -0
- package/AdvancedTextField/AdvancedTextField.d.ts +13 -0
- package/AdvancedTextField/AdvancedTextField.js +164 -0
- package/AdvancedTextField/index.d.ts +1 -0
- package/AdvancedTextField/index.js +8 -0
- package/AdvancedTextField/package.json +6 -0
- package/Append/Append.d.ts +40 -0
- package/Append/Append.js +528 -0
- package/Append/index.d.ts +1 -0
- package/Append/index.js +8 -0
- package/Append/package.json +6 -0
- package/AreaChart/AreaChart.d.ts +9 -0
- package/AreaChart/AreaChart.js +43 -0
- package/AreaChart/index.d.ts +1 -0
- package/AreaChart/index.js +8 -0
- package/AreaChart/package.json +6 -0
- package/AreaChartItem/AreaChartItem.d.ts +22 -0
- package/AreaChartItem/AreaChartItem.js +249 -0
- package/AreaChartItem/index.d.ts +1 -0
- package/AreaChartItem/index.js +8 -0
- package/AreaChartItem/package.json +6 -0
- package/AudioPlayer/AudioPlayer.d.ts +53 -0
- package/AudioPlayer/AudioPlayer.js +494 -0
- package/AudioPlayer/index.d.ts +1 -0
- package/AudioPlayer/index.js +8 -0
- package/AudioPlayer/package.json +6 -0
- package/AudioRecorder/AudioRecorder.d.ts +31 -0
- package/AudioRecorder/AudioRecorder.js +242 -0
- package/AudioRecorder/index.d.ts +1 -0
- package/AudioRecorder/index.js +8 -0
- package/AudioRecorder/package.json +6 -0
- package/AutoComplete/AutoComplete.d.ts +62 -0
- package/AutoComplete/AutoComplete.js +586 -0
- package/AutoComplete/index.d.ts +1 -0
- package/AutoComplete/index.js +8 -0
- package/AutoComplete/package.json +6 -0
- package/AutoCompleteCountry/AutoCompleteCountry.d.ts +6 -0
- package/AutoCompleteCountry/AutoCompleteCountry.js +64 -0
- package/AutoCompleteCountry/index.d.ts +1 -0
- package/AutoCompleteCountry/index.js +8 -0
- package/AutoCompleteCountry/package.json +6 -0
- package/AutoCompleteCurrency/AutoCompleteCurrency.d.ts +6 -0
- package/AutoCompleteCurrency/AutoCompleteCurrency.js +63 -0
- package/AutoCompleteCurrency/index.d.ts +1 -0
- package/AutoCompleteCurrency/index.js +8 -0
- package/AutoCompleteCurrency/package.json +6 -0
- package/AutoCompleteGooglePlaces/AutoCompleteGooglePlaces.d.ts +6 -0
- package/AutoCompleteGooglePlaces/AutoCompleteGooglePlaces.js +85 -0
- package/AutoCompleteGooglePlaces/index.d.ts +1 -0
- package/AutoCompleteGooglePlaces/index.js +8 -0
- package/AutoCompleteGooglePlaces/package.json +6 -0
- package/Avatar/Avatar.d.ts +13 -0
- package/Avatar/Avatar.js +88 -0
- package/Avatar/index.d.ts +1 -0
- package/Avatar/index.js +8 -0
- package/Avatar/package.json +6 -0
- package/AvatarGroup/AvatarGroup.d.ts +15 -0
- package/AvatarGroup/AvatarGroup.js +91 -0
- package/AvatarGroup/index.d.ts +1 -0
- package/AvatarGroup/index.js +8 -0
- package/AvatarGroup/package.json +6 -0
- package/Backdrop/Backdrop.d.ts +17 -0
- package/Backdrop/Backdrop.js +145 -0
- package/Backdrop/index.d.ts +1 -0
- package/Backdrop/index.js +8 -0
- package/Backdrop/package.json +6 -0
- package/Badge/Badge.d.ts +14 -0
- package/Badge/Badge.js +99 -0
- package/Badge/index.d.ts +1 -0
- package/Badge/index.js +8 -0
- package/Badge/package.json +6 -0
- package/Banner/Banner.d.ts +11 -0
- package/Banner/Banner.js +89 -0
- package/Banner/index.d.ts +1 -0
- package/Banner/index.js +8 -0
- package/Banner/package.json +6 -0
- package/BottomAppBar/BottomAppBar.d.ts +11 -0
- package/BottomAppBar/BottomAppBar.js +202 -0
- package/BottomAppBar/index.d.ts +1 -0
- package/BottomAppBar/index.js +8 -0
- package/BottomAppBar/package.json +6 -0
- package/BottomSheet/BottomSheet.d.ts +6 -0
- package/BottomSheet/BottomSheet.js +63 -0
- package/BottomSheet/index.d.ts +1 -0
- package/BottomSheet/index.js +8 -0
- package/BottomSheet/package.json +6 -0
- package/Box/Box.d.ts +8 -0
- package/Box/Box.js +38 -0
- package/Box/index.d.ts +1 -0
- package/Box/index.js +8 -0
- package/Box/package.json +6 -0
- package/Breadcrumbs/Breadcrumbs.d.ts +10 -0
- package/Breadcrumbs/Breadcrumbs.js +149 -0
- package/Breadcrumbs/index.d.ts +1 -0
- package/Breadcrumbs/index.js +8 -0
- package/Breadcrumbs/package.json +6 -0
- package/BubbleChart/BubbleChart.d.ts +6 -0
- package/BubbleChart/BubbleChart.js +137 -0
- package/BubbleChart/index.d.ts +1 -0
- package/BubbleChart/index.js +8 -0
- package/BubbleChart/package.json +6 -0
- package/BubbleChartItem/BubbleChartItem.d.ts +21 -0
- package/BubbleChartItem/BubbleChartItem.js +165 -0
- package/BubbleChartItem/index.d.ts +1 -0
- package/BubbleChartItem/index.js +8 -0
- package/BubbleChartItem/package.json +6 -0
- package/Button/Button.d.ts +39 -0
- package/Button/Button.js +476 -0
- package/Button/index.d.ts +1 -0
- package/Button/index.js +8 -0
- package/Button/package.json +6 -0
- package/Buttons/Buttons.d.ts +26 -0
- package/Buttons/Buttons.js +302 -0
- package/Buttons/index.d.ts +1 -0
- package/Buttons/index.js +8 -0
- package/Buttons/package.json +6 -0
- package/Calendar/Calendar.d.ts +44 -0
- package/Calendar/Calendar.js +462 -0
- package/Calendar/index.d.ts +1 -0
- package/Calendar/index.js +8 -0
- package/Calendar/package.json +6 -0
- package/CalendarAvailability/CalendarAvailability.d.ts +46 -0
- package/CalendarAvailability/CalendarAvailability.js +400 -0
- package/CalendarAvailability/index.d.ts +1 -0
- package/CalendarAvailability/index.js +8 -0
- package/CalendarAvailability/package.json +6 -0
- package/CalendarMenu/CalendarMenu.d.ts +18 -0
- package/CalendarMenu/CalendarMenu.js +313 -0
- package/CalendarMenu/index.d.ts +1 -0
- package/CalendarMenu/index.js +8 -0
- package/CalendarMenu/package.json +6 -0
- package/CalendarMonth/CalendarMonth.d.ts +51 -0
- package/CalendarMonth/CalendarMonth.js +513 -0
- package/CalendarMonth/index.d.ts +1 -0
- package/CalendarMonth/index.js +8 -0
- package/CalendarMonth/package.json +6 -0
- package/CalendarViews/CalendarViews.d.ts +30 -0
- package/CalendarViews/CalendarViews.js +261 -0
- package/CalendarViews/index.d.ts +1 -0
- package/CalendarViews/index.js +8 -0
- package/CalendarViews/package.json +6 -0
- package/CalendarWeek/CalendarWeek.d.ts +18 -0
- package/CalendarWeek/CalendarWeek.js +392 -0
- package/CalendarWeek/index.d.ts +1 -0
- package/CalendarWeek/index.js +8 -0
- package/CalendarWeek/package.json +6 -0
- package/Card/Card.d.ts +15 -0
- package/Card/Card.js +106 -0
- package/Card/index.d.ts +1 -0
- package/Card/index.js +8 -0
- package/Card/package.json +6 -0
- package/CardButton/CardButton.d.ts +13 -0
- package/CardButton/CardButton.js +62 -0
- package/CardButton/index.d.ts +1 -0
- package/CardButton/index.js +8 -0
- package/CardButton/package.json +6 -0
- package/CardFooter/CardFooter.d.ts +11 -0
- package/CardFooter/CardFooter.js +42 -0
- package/CardFooter/index.d.ts +1 -0
- package/CardFooter/index.js +8 -0
- package/CardFooter/package.json +6 -0
- package/CardHeader/CardHeader.d.ts +11 -0
- package/CardHeader/CardHeader.js +47 -0
- package/CardHeader/index.d.ts +1 -0
- package/CardHeader/index.js +8 -0
- package/CardHeader/package.json +6 -0
- package/CardImage/CardImage.d.ts +14 -0
- package/CardImage/CardImage.js +69 -0
- package/CardImage/index.d.ts +1 -0
- package/CardImage/index.js +8 -0
- package/CardImage/package.json +6 -0
- package/CardMain/CardMain.d.ts +11 -0
- package/CardMain/CardMain.js +42 -0
- package/CardMain/index.d.ts +1 -0
- package/CardMain/index.js +8 -0
- package/CardMain/package.json +6 -0
- package/Carousel/Carousel.d.ts +84 -0
- package/Carousel/Carousel.js +935 -0
- package/Carousel/index.d.ts +1 -0
- package/Carousel/index.js +8 -0
- package/Carousel/package.json +6 -0
- package/Chart/Chart.d.ts +133 -0
- package/Chart/Chart.js +1190 -0
- package/Chart/index.d.ts +1 -0
- package/Chart/index.js +8 -0
- package/Chart/package.json +6 -0
- package/Checkbox/Checkbox.d.ts +17 -0
- package/Checkbox/Checkbox.js +320 -0
- package/Checkbox/index.d.ts +1 -0
- package/Checkbox/index.js +8 -0
- package/Checkbox/package.json +6 -0
- package/Chip/Chip.d.ts +13 -0
- package/Chip/Chip.js +109 -0
- package/Chip/index.d.ts +1 -0
- package/Chip/index.js +8 -0
- package/Chip/package.json +6 -0
- package/Chips/Chips.d.ts +11 -0
- package/Chips/Chips.js +104 -0
- package/Chips/index.d.ts +1 -0
- package/Chips/index.js +8 -0
- package/Chips/package.json +6 -0
- package/ClickListener/ClickListener.d.ts +14 -0
- package/ClickListener/ClickListener.js +94 -0
- package/ClickListener/index.d.ts +1 -0
- package/ClickListener/index.js +8 -0
- package/ClickListener/package.json +6 -0
- package/Clock/Clock.d.ts +35 -0
- package/Clock/Clock.js +428 -0
- package/Clock/index.d.ts +1 -0
- package/Clock/index.js +8 -0
- package/Clock/package.json +6 -0
- package/ColorTextField/ColorTextField.d.ts +12 -0
- package/ColorTextField/ColorTextField.js +180 -0
- package/ColorTextField/index.d.ts +1 -0
- package/ColorTextField/index.js +8 -0
- package/ColorTextField/package.json +6 -0
- package/ColumnChart/ColumnChart.d.ts +6 -0
- package/ColumnChart/ColumnChart.js +49 -0
- package/ColumnChart/index.d.ts +1 -0
- package/ColumnChart/index.js +8 -0
- package/ColumnChart/package.json +6 -0
- package/ColumnChartItem/ColumnChartItem.d.ts +20 -0
- package/ColumnChartItem/ColumnChartItem.js +153 -0
- package/ColumnChartItem/index.d.ts +1 -0
- package/ColumnChartItem/index.js +8 -0
- package/ColumnChartItem/package.json +6 -0
- package/Confirm/Confirm.d.ts +35 -0
- package/Confirm/Confirm.js +133 -0
- package/Confirm/Context.d.ts +2 -0
- package/Confirm/Context.js +8 -0
- package/Confirm/index.d.ts +4 -0
- package/Confirm/index.js +14 -0
- package/Confirm/package.json +6 -0
- package/Confirm/useConfirm.d.ts +2 -0
- package/Confirm/useConfirm.js +12 -0
- package/Container/Container.d.ts +12 -0
- package/Container/Container.js +137 -0
- package/Container/index.d.ts +1 -0
- package/Container/index.js +8 -0
- package/Container/package.json +6 -0
- package/Countdown/Countdown.d.ts +25 -0
- package/Countdown/Countdown.js +265 -0
- package/Countdown/index.d.ts +1 -0
- package/Countdown/index.js +8 -0
- package/Countdown/package.json +6 -0
- package/DatePicker/DatePicker.d.ts +72 -0
- package/DatePicker/DatePicker.js +559 -0
- package/DatePicker/index.d.ts +1 -0
- package/DatePicker/index.js +8 -0
- package/DatePicker/package.json +6 -0
- package/DateRangePicker/DateRangePicker.d.ts +6 -0
- package/DateRangePicker/DateRangePicker.js +40 -0
- package/DateRangePicker/index.d.ts +1 -0
- package/DateRangePicker/index.js +8 -0
- package/DateRangePicker/package.json +6 -0
- package/DateTimePicker/DateTimePicker.d.ts +61 -0
- package/DateTimePicker/DateTimePicker.js +476 -0
- package/DateTimePicker/index.d.ts +1 -0
- package/DateTimePicker/index.js +8 -0
- package/DateTimePicker/package.json +6 -0
- package/DateTimeRangePicker/DateTimeRangePicker.d.ts +6 -0
- package/DateTimeRangePicker/DateTimeRangePicker.js +40 -0
- package/DateTimeRangePicker/index.d.ts +1 -0
- package/DateTimeRangePicker/index.js +8 -0
- package/DateTimeRangePicker/package.json +6 -0
- package/Divider/Divider.d.ts +13 -0
- package/Divider/Divider.js +188 -0
- package/Divider/index.d.ts +1 -0
- package/Divider/index.js +8 -0
- package/Divider/package.json +6 -0
- package/DonutChart/DonutChart.d.ts +6 -0
- package/DonutChart/DonutChart.js +46 -0
- package/DonutChart/index.d.ts +1 -0
- package/DonutChart/index.js +8 -0
- package/DonutChart/package.json +6 -0
- package/DragAndDropList/DragAndDropList.d.ts +16 -0
- package/DragAndDropList/DragAndDropList.js +163 -0
- package/DragAndDropList/index.d.ts +1 -0
- package/DragAndDropList/index.js +8 -0
- package/DragAndDropList/package.json +6 -0
- package/Drawing/Drawing.d.ts +48 -0
- package/Drawing/Drawing.js +532 -0
- package/Drawing/index.d.ts +1 -0
- package/Drawing/index.js +8 -0
- package/Drawing/package.json +6 -0
- package/DropZone/DropZone.d.ts +15 -0
- package/DropZone/DropZone.js +205 -0
- package/DropZone/index.d.ts +1 -0
- package/DropZone/index.js +8 -0
- package/DropZone/package.json +6 -0
- package/Emojis/Emojis.d.ts +22 -0
- package/Emojis/Emojis.js +319 -0
- package/Emojis/emojis_list.d.ts +18 -0
- package/Emojis/emojis_list.js +9251 -0
- package/Emojis/index.d.ts +2 -0
- package/Emojis/index.js +10 -0
- package/Emojis/package.json +6 -0
- package/Expand/Expand.d.ts +12 -0
- package/Expand/Expand.js +156 -0
- package/Expand/index.d.ts +1 -0
- package/Expand/index.js +8 -0
- package/Expand/package.json +6 -0
- package/Fab/Fab.d.ts +6 -0
- package/Fab/Fab.js +29 -0
- package/Fab/index.d.ts +1 -0
- package/Fab/index.js +8 -0
- package/Fab/package.json +6 -0
- package/Fade/Fade.d.ts +6 -0
- package/Fade/Fade.js +106 -0
- package/Fade/index.d.ts +1 -0
- package/Fade/index.js +8 -0
- package/Fade/package.json +6 -0
- package/FileChoose/FileChoose.d.ts +28 -0
- package/FileChoose/FileChoose.js +154 -0
- package/FileChoose/index.d.ts +1 -0
- package/FileChoose/index.js +8 -0
- package/FileChoose/package.json +6 -0
- package/Focus/Focus.d.ts +8 -0
- package/Focus/Focus.js +96 -0
- package/Focus/index.d.ts +1 -0
- package/Focus/index.js +8 -0
- package/Focus/package.json +6 -0
- package/Form/Form.d.ts +25 -0
- package/Form/Form.js +125 -0
- package/Form/index.d.ts +1 -0
- package/Form/index.js +8 -0
- package/Form/package.json +6 -0
- package/FormRow/FormRow.d.ts +20 -0
- package/FormRow/FormRow.js +82 -0
- package/FormRow/index.d.ts +1 -0
- package/FormRow/index.js +8 -0
- package/FormRow/package.json +6 -0
- package/Forms/Forms.d.ts +7 -0
- package/Forms/Forms.js +44 -0
- package/Forms/index.d.ts +1 -0
- package/Forms/index.js +8 -0
- package/Forms/package.json +6 -0
- package/Frame/Frame.d.ts +21 -0
- package/Frame/Frame.js +154 -0
- package/Frame/index.d.ts +1 -0
- package/Frame/index.js +8 -0
- package/Frame/package.json +6 -0
- package/Grid/Grid.d.ts +14 -0
- package/Grid/Grid.js +169 -0
- package/Grid/index.d.ts +1 -0
- package/Grid/index.js +8 -0
- package/Grid/package.json +6 -0
- package/Grow/Grow.d.ts +6 -0
- package/Grow/Grow.js +114 -0
- package/Grow/index.d.ts +1 -0
- package/Grow/index.js +8 -0
- package/Grow/package.json +6 -0
- package/HTMLCanvas/HTMLCanvas.d.ts +43 -0
- package/HTMLCanvas/HTMLCanvas.js +549 -0
- package/HTMLCanvas/index.d.ts +2 -0
- package/HTMLCanvas/index.js +23 -0
- package/HTMLCanvas/package.json +6 -0
- package/IFrame/IFrame.d.ts +9 -0
- package/IFrame/IFrame.js +117 -0
- package/IFrame/index.d.ts +1 -0
- package/IFrame/index.js +8 -0
- package/IFrame/package.json +6 -0
- package/Icon/Icon.d.ts +17 -0
- package/Icon/Icon.js +98 -0
- package/Icon/index.d.ts +2 -0
- package/Icon/index.js +23 -0
- package/Icon/package.json +6 -0
- package/IconButton/IconButton.d.ts +6 -0
- package/IconButton/IconButton.js +40 -0
- package/IconButton/index.d.ts +1 -0
- package/IconButton/index.js +8 -0
- package/IconButton/package.json +6 -0
- package/Image/Image.d.ts +27 -0
- package/Image/Image.js +259 -0
- package/Image/index.d.ts +1 -0
- package/Image/index.js +8 -0
- package/Image/package.json +6 -0
- package/ImageCrop/ImageCrop.d.ts +28 -0
- package/ImageCrop/ImageCrop.js +1076 -0
- package/ImageCrop/index.d.ts +1 -0
- package/ImageCrop/index.js +8 -0
- package/ImageCrop/package.json +6 -0
- package/ImageEdit/ImageEdit.d.ts +68 -0
- package/ImageEdit/ImageEdit.js +789 -0
- package/ImageEdit/index.d.ts +1 -0
- package/ImageEdit/index.js +8 -0
- package/ImageEdit/package.json +6 -0
- package/ImageGallery/ImageGallery.d.ts +30 -0
- package/ImageGallery/ImageGallery.js +483 -0
- package/ImageGallery/index.d.ts +1 -0
- package/ImageGallery/index.js +8 -0
- package/ImageGallery/package.json +6 -0
- package/ImageList/ImageList.d.ts +11 -0
- package/ImageList/ImageList.js +134 -0
- package/ImageList/index.d.ts +1 -0
- package/ImageList/index.js +8 -0
- package/ImageList/package.json +6 -0
- package/ImageListItem/ImageListItem.d.ts +10 -0
- package/ImageListItem/ImageListItem.js +92 -0
- package/ImageListItem/index.d.ts +1 -0
- package/ImageListItem/index.js +8 -0
- package/ImageListItem/package.json +6 -0
- package/ImageListItemBox/ImageListItemBox.d.ts +8 -0
- package/ImageListItemBox/ImageListItemBox.js +53 -0
- package/ImageListItemBox/index.d.ts +1 -0
- package/ImageListItemBox/index.js +8 -0
- package/ImageListItemBox/package.json +6 -0
- package/Info/Info.d.ts +15 -0
- package/Info/Info.js +66 -0
- package/Info/index.d.ts +1 -0
- package/Info/index.js +8 -0
- package/Info/package.json +6 -0
- package/Interaction/Interaction.d.ts +21 -0
- package/Interaction/Interaction.js +349 -0
- package/Interaction/index.d.ts +1 -0
- package/Interaction/index.js +8 -0
- package/Interaction/package.json +6 -0
- package/Keyframes/Context.d.ts +3 -0
- package/Keyframes/Context.js +8 -0
- package/Keyframes/Keyframes.d.ts +32 -0
- package/Keyframes/Keyframes.js +177 -0
- package/Keyframes/index.d.ts +4 -0
- package/Keyframes/index.js +27 -0
- package/Keyframes/package.json +6 -0
- package/Keyframes/useKeyframes.d.ts +1 -0
- package/Keyframes/useKeyframes.js +12 -0
- package/LICENSE +21 -0
- package/Label/Label.d.ts +26 -0
- package/Label/Label.js +155 -0
- package/Label/index.d.ts +1 -0
- package/Label/index.js +8 -0
- package/Label/package.json +6 -0
- package/Labels/Labels.d.ts +22 -0
- package/Labels/Labels.js +102 -0
- package/Labels/index.d.ts +1 -0
- package/Labels/index.js +8 -0
- package/Labels/package.json +6 -0
- package/Line/Line.d.ts +24 -0
- package/Line/Line.js +178 -0
- package/Line/index.d.ts +1 -0
- package/Line/index.js +8 -0
- package/Line/package.json +6 -0
- package/LineChart/LineChart.d.ts +8 -0
- package/LineChart/LineChart.js +43 -0
- package/LineChart/index.d.ts +1 -0
- package/LineChart/index.js +8 -0
- package/LineChart/package.json +6 -0
- package/LineChartItem/LineChartItem.d.ts +21 -0
- package/LineChartItem/LineChartItem.js +188 -0
- package/LineChartItem/index.d.ts +1 -0
- package/LineChartItem/index.js +8 -0
- package/LineChartItem/package.json +6 -0
- package/LinearMeter/LinearMeter.d.ts +53 -0
- package/LinearMeter/LinearMeter.js +401 -0
- package/LinearMeter/index.d.ts +1 -0
- package/LinearMeter/index.js +8 -0
- package/LinearMeter/package.json +6 -0
- package/LinearProgress/LinearProgress.d.ts +15 -0
- package/LinearProgress/LinearProgress.js +274 -0
- package/LinearProgress/index.d.ts +1 -0
- package/LinearProgress/index.js +8 -0
- package/LinearProgress/package.json +6 -0
- package/Link/Link.d.ts +9 -0
- package/Link/Link.js +133 -0
- package/Link/index.d.ts +1 -0
- package/Link/index.js +8 -0
- package/Link/package.json +6 -0
- package/Links/Links.d.ts +32 -0
- package/Links/Links.js +159 -0
- package/Links/index.d.ts +1 -0
- package/Links/index.js +8 -0
- package/Links/package.json +6 -0
- package/List/List.d.ts +17 -0
- package/List/List.js +118 -0
- package/List/index.d.ts +1 -0
- package/List/index.js +8 -0
- package/List/package.json +6 -0
- package/ListItem/ListItem.d.ts +48 -0
- package/ListItem/ListItem.js +363 -0
- package/ListItem/index.d.ts +1 -0
- package/ListItem/index.js +8 -0
- package/ListItem/package.json +6 -0
- package/ListSubheader/ListSubheader.d.ts +6 -0
- package/ListSubheader/ListSubheader.js +48 -0
- package/ListSubheader/index.d.ts +1 -0
- package/ListSubheader/index.js +8 -0
- package/ListSubheader/package.json +6 -0
- package/MainProgress/Context.d.ts +2 -0
- package/MainProgress/Context.js +8 -0
- package/MainProgress/MainProgress.d.ts +33 -0
- package/MainProgress/MainProgress.js +166 -0
- package/MainProgress/index.d.ts +4 -0
- package/MainProgress/index.js +14 -0
- package/MainProgress/package.json +6 -0
- package/MainProgress/useMainProgress.d.ts +2 -0
- package/MainProgress/useMainProgress.js +12 -0
- package/Markdown/Markdown.d.ts +13 -0
- package/Markdown/Markdown.js +730 -0
- package/Markdown/index.d.ts +1 -0
- package/Markdown/index.js +8 -0
- package/Markdown/package.json +6 -0
- package/Masonry/Masonry.d.ts +11 -0
- package/Masonry/Masonry.js +189 -0
- package/Masonry/index.d.ts +1 -0
- package/Masonry/index.js +8 -0
- package/Masonry/package.json +6 -0
- package/Medias/Medias.d.ts +31 -0
- package/Medias/Medias.js +368 -0
- package/Medias/index.d.ts +1 -0
- package/Medias/index.js +8 -0
- package/Medias/package.json +6 -0
- package/Menu/Menu.d.ts +33 -0
- package/Menu/Menu.js +249 -0
- package/Menu/index.d.ts +1 -0
- package/Menu/index.js +8 -0
- package/Menu/package.json +6 -0
- package/MenuDesktop/MenuDesktop.d.ts +42 -0
- package/MenuDesktop/MenuDesktop.js +437 -0
- package/MenuDesktop/index.d.ts +1 -0
- package/MenuDesktop/index.js +8 -0
- package/MenuDesktop/package.json +6 -0
- package/MenuItem/MenuItem.d.ts +26 -0
- package/MenuItem/MenuItem.js +239 -0
- package/MenuItem/index.d.ts +1 -0
- package/MenuItem/index.js +8 -0
- package/MenuItem/package.json +6 -0
- package/Meta/Meta.d.ts +11 -0
- package/Meta/Meta.js +58 -0
- package/Meta/index.d.ts +1 -0
- package/Meta/index.js +8 -0
- package/Meta/package.json +6 -0
- package/Modal/Modal.d.ts +36 -0
- package/Modal/Modal.js +278 -0
- package/Modal/index.d.ts +1 -0
- package/Modal/index.js +8 -0
- package/Modal/package.json +6 -0
- package/ModalFooter/ModalFooter.d.ts +6 -0
- package/ModalFooter/ModalFooter.js +42 -0
- package/ModalFooter/index.d.ts +1 -0
- package/ModalFooter/index.js +8 -0
- package/ModalFooter/package.json +6 -0
- package/ModalHeader/ModalHeader.d.ts +7 -0
- package/ModalHeader/ModalHeader.js +42 -0
- package/ModalHeader/index.d.ts +1 -0
- package/ModalHeader/index.js +8 -0
- package/ModalHeader/package.json +6 -0
- package/ModalIcon/ModalIcon.d.ts +6 -0
- package/ModalIcon/ModalIcon.js +26 -0
- package/ModalIcon/index.d.ts +1 -0
- package/ModalIcon/index.js +8 -0
- package/ModalIcon/package.json +6 -0
- package/ModalMain/ModalMain.d.ts +6 -0
- package/ModalMain/ModalMain.js +49 -0
- package/ModalMain/index.d.ts +1 -0
- package/ModalMain/index.js +8 -0
- package/ModalMain/package.json +6 -0
- package/ModalText/ModalText.d.ts +6 -0
- package/ModalText/ModalText.js +40 -0
- package/ModalText/index.d.ts +1 -0
- package/ModalText/index.js +8 -0
- package/ModalText/package.json +6 -0
- package/ModalTitle/ModalTitle.d.ts +6 -0
- package/ModalTitle/ModalTitle.js +40 -0
- package/ModalTitle/index.d.ts +1 -0
- package/ModalTitle/index.js +8 -0
- package/ModalTitle/package.json +6 -0
- package/MoreOptions/MoreOptions.d.ts +9 -0
- package/MoreOptions/MoreOptions.js +55 -0
- package/MoreOptions/index.d.ts +1 -0
- package/MoreOptions/index.js +8 -0
- package/MoreOptions/package.json +6 -0
- package/Move/Move.d.ts +11 -0
- package/Move/Move.js +147 -0
- package/Move/index.d.ts +1 -0
- package/Move/index.js +8 -0
- package/Move/package.json +6 -0
- package/NavigationBar/NavigationBar.d.ts +13 -0
- package/NavigationBar/NavigationBar.js +114 -0
- package/NavigationBar/index.d.ts +1 -0
- package/NavigationBar/index.js +8 -0
- package/NavigationBar/package.json +6 -0
- package/NavigationDrawer/NavigationDrawer.d.ts +16 -0
- package/NavigationDrawer/NavigationDrawer.js +222 -0
- package/NavigationDrawer/index.d.ts +1 -0
- package/NavigationDrawer/index.js +8 -0
- package/NavigationDrawer/package.json +6 -0
- package/NavigationItem/NavigationItem.d.ts +29 -0
- package/NavigationItem/NavigationItem.js +294 -0
- package/NavigationItem/index.d.ts +1 -0
- package/NavigationItem/index.js +8 -0
- package/NavigationItem/package.json +6 -0
- package/NavigationRail/NavigationRail.d.ts +19 -0
- package/NavigationRail/NavigationRail.js +156 -0
- package/NavigationRail/index.d.ts +1 -0
- package/NavigationRail/index.js +8 -0
- package/NavigationRail/package.json +6 -0
- package/NotFound/NotFound.d.ts +15 -0
- package/NotFound/NotFound.js +68 -0
- package/NotFound/index.d.ts +1 -0
- package/NotFound/index.js +8 -0
- package/NotFound/package.json +6 -0
- package/NumericTextField/NumericTextField.d.ts +16 -0
- package/NumericTextField/NumericTextField.js +217 -0
- package/NumericTextField/index.d.ts +1 -0
- package/NumericTextField/index.js +8 -0
- package/NumericTextField/package.json +6 -0
- package/Page/Page.d.ts +18 -0
- package/Page/Page.js +70 -0
- package/Page/index.d.ts +1 -0
- package/Page/index.js +8 -0
- package/Page/package.json +6 -0
- package/PageTransition/PageTransition.d.ts +12 -0
- package/PageTransition/PageTransition.js +108 -0
- package/PageTransition/index.d.ts +1 -0
- package/PageTransition/index.js +8 -0
- package/PageTransition/package.json +6 -0
- package/Pagination/Pagination.d.ts +29 -0
- package/Pagination/Pagination.js +101 -0
- package/Pagination/index.d.ts +1 -0
- package/Pagination/index.js +8 -0
- package/Pagination/package.json +6 -0
- package/PaginationItem/PaginationItem.d.ts +8 -0
- package/PaginationItem/PaginationItem.js +69 -0
- package/PaginationItem/index.d.ts +1 -0
- package/PaginationItem/index.js +8 -0
- package/PaginationItem/package.json +6 -0
- package/Parallax/Parallax.d.ts +15 -0
- package/Parallax/Parallax.js +150 -0
- package/Parallax/index.d.ts +1 -0
- package/Parallax/index.js +8 -0
- package/Parallax/package.json +6 -0
- package/Path/Path.d.ts +7 -0
- package/Path/Path.js +38 -0
- package/Path/index.d.ts +1 -0
- package/Path/index.js +8 -0
- package/Path/package.json +6 -0
- package/PieChart/PieChart.d.ts +6 -0
- package/PieChart/PieChart.js +276 -0
- package/PieChart/index.d.ts +1 -0
- package/PieChart/index.js +8 -0
- package/PieChart/package.json +6 -0
- package/Placeholder/Placeholder.d.ts +12 -0
- package/Placeholder/Placeholder.js +125 -0
- package/Placeholder/index.d.ts +1 -0
- package/Placeholder/index.js +8 -0
- package/Placeholder/package.json +6 -0
- package/Portal/Portal.d.ts +7 -0
- package/Portal/Portal.js +41 -0
- package/Portal/index.d.ts +1 -0
- package/Portal/index.js +8 -0
- package/Portal/package.json +6 -0
- package/Properties/Properties.d.ts +18 -0
- package/Properties/Properties.js +67 -0
- package/Properties/index.d.ts +1 -0
- package/Properties/index.js +8 -0
- package/Properties/package.json +6 -0
- package/Property/Property.d.ts +18 -0
- package/Property/Property.js +113 -0
- package/Property/index.d.ts +1 -0
- package/Property/index.js +8 -0
- package/Property/package.json +6 -0
- package/README.MD +85 -0
- package/Radio/Radio.d.ts +16 -0
- package/Radio/Radio.js +187 -0
- package/Radio/index.d.ts +1 -0
- package/Radio/index.js +8 -0
- package/Radio/package.json +6 -0
- package/Radios/Radios.d.ts +23 -0
- package/Radios/Radios.js +96 -0
- package/Radios/index.d.ts +1 -0
- package/Radios/index.js +8 -0
- package/Radios/package.json +6 -0
- package/Rating/Rating.d.ts +31 -0
- package/Rating/Rating.js +372 -0
- package/Rating/index.d.ts +1 -0
- package/Rating/index.js +8 -0
- package/Rating/package.json +6 -0
- package/Reset/Reset.d.ts +6 -0
- package/Reset/Reset.js +27 -0
- package/Reset/index.d.ts +1 -0
- package/Reset/index.js +8 -0
- package/Reset/package.json +6 -0
- package/Reveal/Reveal.d.ts +22 -0
- package/Reveal/Reveal.js +92 -0
- package/Reveal/index.d.ts +1 -0
- package/Reveal/index.js +8 -0
- package/Reveal/package.json +6 -0
- package/RichTextEditor/RichTextEditor.d.ts +76 -0
- package/RichTextEditor/RichTextEditor.js +1011 -0
- package/RichTextEditor/index.d.ts +1 -0
- package/RichTextEditor/index.js +8 -0
- package/RichTextEditor/package.json +6 -0
- package/RoundMeter/RoundMeter.d.ts +50 -0
- package/RoundMeter/RoundMeter.js +554 -0
- package/RoundMeter/index.d.ts +1 -0
- package/RoundMeter/index.js +8 -0
- package/RoundMeter/package.json +6 -0
- package/RoundProgress/RoundProgress.d.ts +16 -0
- package/RoundProgress/RoundProgress.js +183 -0
- package/RoundProgress/index.d.ts +1 -0
- package/RoundProgress/index.js +8 -0
- package/RoundProgress/package.json +6 -0
- package/ScatterChart/ScatterChart.d.ts +6 -0
- package/ScatterChart/ScatterChart.js +43 -0
- package/ScatterChart/index.d.ts +1 -0
- package/ScatterChart/index.js +8 -0
- package/ScatterChart/package.json +6 -0
- package/ScatterChartItem/ScatterChartItem.d.ts +19 -0
- package/ScatterChartItem/ScatterChartItem.js +158 -0
- package/ScatterChartItem/index.d.ts +1 -0
- package/ScatterChartItem/index.js +8 -0
- package/ScatterChartItem/package.json +6 -0
- package/ScreenCapture/ScreenCapture.d.ts +30 -0
- package/ScreenCapture/ScreenCapture.js +343 -0
- package/ScreenCapture/index.d.ts +1 -0
- package/ScreenCapture/index.js +8 -0
- package/ScreenCapture/package.json +6 -0
- package/Section/Section.d.ts +33 -0
- package/Section/Section.js +357 -0
- package/Section/index.d.ts +1 -0
- package/Section/index.js +8 -0
- package/Section/package.json +6 -0
- package/SectionAction/SectionAction.d.ts +11 -0
- package/SectionAction/SectionAction.js +63 -0
- package/SectionAction/index.d.ts +1 -0
- package/SectionAction/index.js +8 -0
- package/SectionAction/package.json +6 -0
- package/SectionBoxes/SectionBoxes.d.ts +33 -0
- package/SectionBoxes/SectionBoxes.js +211 -0
- package/SectionBoxes/index.d.ts +1 -0
- package/SectionBoxes/index.js +8 -0
- package/SectionBoxes/package.json +6 -0
- package/SectionCards/SectionCards.d.ts +33 -0
- package/SectionCards/SectionCards.js +221 -0
- package/SectionCards/index.d.ts +1 -0
- package/SectionCards/index.js +8 -0
- package/SectionCards/package.json +6 -0
- package/SectionCarousel/SectionCarousel.d.ts +32 -0
- package/SectionCarousel/SectionCarousel.js +246 -0
- package/SectionCarousel/index.d.ts +1 -0
- package/SectionCarousel/index.js +8 -0
- package/SectionCarousel/package.json +6 -0
- package/SectionContact/SectionContact.d.ts +27 -0
- package/SectionContact/SectionContact.js +124 -0
- package/SectionContact/index.d.ts +1 -0
- package/SectionContact/index.js +8 -0
- package/SectionContact/package.json +6 -0
- package/SectionImageGallery/SectionImageGallery.d.ts +11 -0
- package/SectionImageGallery/SectionImageGallery.js +54 -0
- package/SectionImageGallery/index.d.ts +1 -0
- package/SectionImageGallery/index.js +8 -0
- package/SectionImageGallery/package.json +6 -0
- package/SectionLogos/SectionLogos.d.ts +14 -0
- package/SectionLogos/SectionLogos.js +115 -0
- package/SectionLogos/index.d.ts +1 -0
- package/SectionLogos/index.js +8 -0
- package/SectionLogos/package.json +6 -0
- package/SectionMedia/SectionMedia.d.ts +16 -0
- package/SectionMedia/SectionMedia.js +155 -0
- package/SectionMedia/index.d.ts +1 -0
- package/SectionMedia/index.js +8 -0
- package/SectionMedia/package.json +6 -0
- package/SectionReviews/SectionReviews.d.ts +23 -0
- package/SectionReviews/SectionReviews.js +134 -0
- package/SectionReviews/index.d.ts +1 -0
- package/SectionReviews/index.js +8 -0
- package/SectionReviews/package.json +6 -0
- package/SectionTextMedia/SectionTextMedia.d.ts +28 -0
- package/SectionTextMedia/SectionTextMedia.js +148 -0
- package/SectionTextMedia/index.d.ts +1 -0
- package/SectionTextMedia/index.js +8 -0
- package/SectionTextMedia/package.json +6 -0
- package/SectionTimeline/SectionTimeline.d.ts +21 -0
- package/SectionTimeline/SectionTimeline.js +100 -0
- package/SectionTimeline/index.d.ts +1 -0
- package/SectionTimeline/index.js +8 -0
- package/SectionTimeline/package.json +6 -0
- package/SectionWatch/SectionWatch.d.ts +14 -0
- package/SectionWatch/SectionWatch.js +56 -0
- package/SectionWatch/index.d.ts +1 -0
- package/SectionWatch/index.js +8 -0
- package/SectionWatch/package.json +6 -0
- package/Select/Select.d.ts +29 -0
- package/Select/Select.js +413 -0
- package/Select/index.d.ts +1 -0
- package/Select/index.js +8 -0
- package/Select/package.json +6 -0
- package/Share/Share.d.ts +37 -0
- package/Share/Share.js +338 -0
- package/Share/index.d.ts +1 -0
- package/Share/index.js +8 -0
- package/Share/package.json +6 -0
- package/Slide/Slide.d.ts +12 -0
- package/Slide/Slide.js +146 -0
- package/Slide/index.d.ts +1 -0
- package/Slide/index.js +8 -0
- package/Slide/package.json +6 -0
- package/Slider/Slider.d.ts +36 -0
- package/Slider/Slider.js +851 -0
- package/Slider/index.d.ts +1 -0
- package/Slider/index.js +8 -0
- package/Slider/package.json +6 -0
- package/SmartTextField/SmartTextField.d.ts +19 -0
- package/SmartTextField/SmartTextField.js +796 -0
- package/SmartTextField/index.d.ts +1 -0
- package/SmartTextField/index.js +8 -0
- package/SmartTextField/package.json +6 -0
- package/Snackbar/Snackbar.d.ts +26 -0
- package/Snackbar/Snackbar.js +191 -0
- package/Snackbar/index.d.ts +1 -0
- package/Snackbar/index.js +8 -0
- package/Snackbar/package.json +6 -0
- package/Snackbars/Context.d.ts +7 -0
- package/Snackbars/Context.js +8 -0
- package/Snackbars/Snackbars.d.ts +15 -0
- package/Snackbars/Snackbars.js +216 -0
- package/Snackbars/index.d.ts +4 -0
- package/Snackbars/index.js +14 -0
- package/Snackbars/package.json +6 -0
- package/Snackbars/useSnackbars.d.ts +2 -0
- package/Snackbars/useSnackbars.js +12 -0
- package/Space/Space.d.ts +36 -0
- package/Space/Space.js +1003 -0
- package/Space/index.d.ts +2 -0
- package/Space/index.js +23 -0
- package/Space/package.json +6 -0
- package/SpeechToText/SpeechToText.d.ts +29 -0
- package/SpeechToText/SpeechToText.js +177 -0
- package/SpeechToText/index.d.ts +1 -0
- package/SpeechToText/index.js +8 -0
- package/SpeechToText/package.json +6 -0
- package/SpeedDial/SpeedDial.d.ts +36 -0
- package/SpeedDial/SpeedDial.js +413 -0
- package/SpeedDial/index.d.ts +1 -0
- package/SpeedDial/index.js +8 -0
- package/SpeedDial/package.json +6 -0
- package/SpeedDialItem/SpeedDialItem.d.ts +22 -0
- package/SpeedDialItem/SpeedDialItem.js +69 -0
- package/SpeedDialItem/index.d.ts +1 -0
- package/SpeedDialItem/index.js +8 -0
- package/SpeedDialItem/package.json +6 -0
- package/SpyScroll/SpyScroll.d.ts +13 -0
- package/SpyScroll/SpyScroll.js +147 -0
- package/SpyScroll/index.d.ts +1 -0
- package/SpyScroll/index.js +8 -0
- package/SpyScroll/package.json +6 -0
- package/Step/Step.d.ts +27 -0
- package/Step/Step.js +131 -0
- package/Step/index.d.ts +1 -0
- package/Step/index.js +8 -0
- package/Step/package.json +6 -0
- package/Stepper/Stepper.d.ts +21 -0
- package/Stepper/Stepper.js +143 -0
- package/Stepper/index.d.ts +1 -0
- package/Stepper/index.js +8 -0
- package/Stepper/package.json +6 -0
- package/Surface/Surface.d.ts +15 -0
- package/Surface/Surface.js +809 -0
- package/Surface/index.d.ts +1 -0
- package/Surface/index.js +8 -0
- package/Surface/package.json +6 -0
- package/Switch/Switch.d.ts +18 -0
- package/Switch/Switch.js +544 -0
- package/Switch/index.d.ts +1 -0
- package/Switch/index.js +8 -0
- package/Switch/package.json +6 -0
- package/Tab/Tab.d.ts +22 -0
- package/Tab/Tab.js +149 -0
- package/Tab/index.d.ts +1 -0
- package/Tab/index.js +8 -0
- package/Tab/package.json +6 -0
- package/Table/Table.d.ts +13 -0
- package/Table/Table.js +81 -0
- package/Table/index.d.ts +1 -0
- package/Table/index.js +8 -0
- package/Table/package.json +6 -0
- package/TableBody/TableBody.d.ts +9 -0
- package/TableBody/TableBody.js +68 -0
- package/TableBody/index.d.ts +1 -0
- package/TableBody/index.js +8 -0
- package/TableBody/package.json +6 -0
- package/TableCell/TableCell.d.ts +27 -0
- package/TableCell/TableCell.js +226 -0
- package/TableCell/index.d.ts +1 -0
- package/TableCell/index.js +8 -0
- package/TableCell/package.json +6 -0
- package/TableFooter/TableFooter.d.ts +8 -0
- package/TableFooter/TableFooter.js +51 -0
- package/TableFooter/index.d.ts +1 -0
- package/TableFooter/index.js +8 -0
- package/TableFooter/package.json +6 -0
- package/TableHead/TableHead.d.ts +13 -0
- package/TableHead/TableHead.js +124 -0
- package/TableHead/index.d.ts +1 -0
- package/TableHead/index.js +8 -0
- package/TableHead/package.json +6 -0
- package/TableHeader/TableHeader.d.ts +8 -0
- package/TableHeader/TableHeader.js +53 -0
- package/TableHeader/index.d.ts +1 -0
- package/TableHeader/index.js +8 -0
- package/TableHeader/package.json +6 -0
- package/TablePagination/TablePagination.d.ts +29 -0
- package/TablePagination/TablePagination.js +100 -0
- package/TablePagination/index.d.ts +1 -0
- package/TablePagination/index.js +8 -0
- package/TablePagination/package.json +6 -0
- package/TableRow/TableRow.d.ts +11 -0
- package/TableRow/TableRow.js +68 -0
- package/TableRow/index.d.ts +1 -0
- package/TableRow/index.js +8 -0
- package/TableRow/package.json +6 -0
- package/Tabs/Tabs.d.ts +28 -0
- package/Tabs/Tabs.js +387 -0
- package/Tabs/index.d.ts +1 -0
- package/Tabs/index.js +8 -0
- package/Tabs/package.json +6 -0
- package/Text/Text.d.ts +16 -0
- package/Text/Text.js +118 -0
- package/Text/index.d.ts +1 -0
- package/Text/index.js +8 -0
- package/Text/package.json +6 -0
- package/TextField/TextField.d.ts +64 -0
- package/TextField/TextField.js +850 -0
- package/TextField/index.d.ts +1 -0
- package/TextField/index.js +8 -0
- package/TextField/package.json +6 -0
- package/TextToSpeech/TextToSpeech.d.ts +28 -0
- package/TextToSpeech/TextToSpeech.js +157 -0
- package/TextToSpeech/index.d.ts +1 -0
- package/TextToSpeech/index.js +8 -0
- package/TextToSpeech/package.json +6 -0
- package/TimePicker/TimePicker.d.ts +72 -0
- package/TimePicker/TimePicker.js +736 -0
- package/TimePicker/index.d.ts +1 -0
- package/TimePicker/index.js +8 -0
- package/TimePicker/package.json +6 -0
- package/TimeRangePicker/TimeRangePicker.d.ts +6 -0
- package/TimeRangePicker/TimeRangePicker.js +40 -0
- package/TimeRangePicker/index.d.ts +1 -0
- package/TimeRangePicker/index.js +8 -0
- package/TimeRangePicker/package.json +6 -0
- package/Timeline/Timeline.d.ts +7 -0
- package/Timeline/Timeline.js +43 -0
- package/Timeline/index.d.ts +1 -0
- package/Timeline/index.js +8 -0
- package/Timeline/package.json +6 -0
- package/TimelineItem/TimelineItem.d.ts +14 -0
- package/TimelineItem/TimelineItem.js +152 -0
- package/TimelineItem/index.d.ts +1 -0
- package/TimelineItem/index.js +8 -0
- package/TimelineItem/package.json +6 -0
- package/Timer/Timer.d.ts +23 -0
- package/Timer/Timer.js +208 -0
- package/Timer/index.d.ts +1 -0
- package/Timer/index.js +8 -0
- package/Timer/package.json +6 -0
- package/ToggleButton/ToggleButton.d.ts +6 -0
- package/ToggleButton/ToggleButton.js +61 -0
- package/ToggleButton/index.d.ts +1 -0
- package/ToggleButton/index.js +8 -0
- package/ToggleButton/package.json +6 -0
- package/ToggleButtons/ToggleButtons.d.ts +6 -0
- package/ToggleButtons/ToggleButtons.js +40 -0
- package/ToggleButtons/index.d.ts +1 -0
- package/ToggleButtons/index.js +8 -0
- package/ToggleButtons/package.json +6 -0
- package/Tooltip/Tooltip.d.ts +46 -0
- package/Tooltip/Tooltip.js +439 -0
- package/Tooltip/index.d.ts +1 -0
- package/Tooltip/index.js +8 -0
- package/Tooltip/package.json +6 -0
- package/TopAppBar/TopAppBar.d.ts +14 -0
- package/TopAppBar/TopAppBar.js +200 -0
- package/TopAppBar/index.d.ts +1 -0
- package/TopAppBar/index.js +8 -0
- package/TopAppBar/package.json +6 -0
- package/Transition/Context.d.ts +3 -0
- package/Transition/Context.js +8 -0
- package/Transition/Transition.d.ts +46 -0
- package/Transition/Transition.js +347 -0
- package/Transition/index.d.ts +4 -0
- package/Transition/index.js +27 -0
- package/Transition/package.json +6 -0
- package/Transition/useTransition.d.ts +1 -0
- package/Transition/useTransition.js +12 -0
- package/Transitions/Transitions.d.ts +12 -0
- package/Transitions/Transitions.js +186 -0
- package/Transitions/index.d.ts +1 -0
- package/Transitions/index.js +8 -0
- package/Transitions/package.json +6 -0
- package/Tree/Tree.d.ts +38 -0
- package/Tree/Tree.js +322 -0
- package/Tree/index.d.ts +1 -0
- package/Tree/index.js +8 -0
- package/Tree/package.json +6 -0
- package/Type/Type.d.ts +18 -0
- package/Type/Type.js +154 -0
- package/Type/index.d.ts +1 -0
- package/Type/index.js +8 -0
- package/Type/package.json +6 -0
- package/VideoPlayer/VideoPlayer.d.ts +61 -0
- package/VideoPlayer/VideoPlayer.js +670 -0
- package/VideoPlayer/index.d.ts +1 -0
- package/VideoPlayer/index.js +8 -0
- package/VideoPlayer/package.json +6 -0
- package/ViewSplit/ViewSplit.d.ts +24 -0
- package/ViewSplit/ViewSplit.js +407 -0
- package/ViewSplit/index.d.ts +1 -0
- package/ViewSplit/index.js +8 -0
- package/ViewSplit/package.json +6 -0
- package/Watch/Watch.d.ts +23 -0
- package/Watch/Watch.js +295 -0
- package/Watch/index.d.ts +1 -0
- package/Watch/index.js +8 -0
- package/Watch/package.json +6 -0
- package/Weather/Weather.d.ts +27 -0
- package/Weather/Weather.js +254 -0
- package/Weather/index.d.ts +1 -0
- package/Weather/index.js +8 -0
- package/Weather/package.json +6 -0
- package/Widgets/Context.d.ts +2 -0
- package/Widgets/Context.js +8 -0
- package/Widgets/Widgets.d.ts +24 -0
- package/Widgets/Widgets.js +176 -0
- package/Widgets/index.d.ts +4 -0
- package/Widgets/index.js +14 -0
- package/Widgets/package.json +6 -0
- package/Widgets/useWidgets.d.ts +2 -0
- package/Widgets/useWidgets.js +12 -0
- package/WindowSplit/WindowSplit.d.ts +29 -0
- package/WindowSplit/WindowSplit.js +346 -0
- package/WindowSplit/index.d.ts +1 -0
- package/WindowSplit/index.js +8 -0
- package/WindowSplit/package.json +6 -0
- package/Zoom/Zoom.d.ts +6 -0
- package/Zoom/Zoom.js +104 -0
- package/Zoom/index.d.ts +1 -0
- package/Zoom/index.js +8 -0
- package/Zoom/package.json +6 -0
- package/esm/Accordion/Accordion.js +321 -0
- package/esm/Accordion/index.js +1 -0
- package/esm/AdvancedTextField/AdvancedTextField.js +158 -0
- package/esm/AdvancedTextField/index.js +1 -0
- package/esm/Append/Append.js +495 -0
- package/esm/Append/index.js +1 -0
- package/esm/AreaChart/AreaChart.js +40 -0
- package/esm/AreaChart/index.js +1 -0
- package/esm/AreaChartItem/AreaChartItem.js +315 -0
- package/esm/AreaChartItem/index.js +1 -0
- package/esm/AudioPlayer/AudioPlayer.js +678 -0
- package/esm/AudioPlayer/index.js +1 -0
- package/esm/AudioRecorder/AudioRecorder.js +311 -0
- package/esm/AudioRecorder/index.js +1 -0
- package/esm/AutoComplete/AutoComplete.js +670 -0
- package/esm/AutoComplete/index.js +1 -0
- package/esm/AutoCompleteCountry/AutoCompleteCountry.js +80 -0
- package/esm/AutoCompleteCountry/index.js +1 -0
- package/esm/AutoCompleteCurrency/AutoCompleteCurrency.js +61 -0
- package/esm/AutoCompleteCurrency/index.js +1 -0
- package/esm/AutoCompleteGooglePlaces/AutoCompleteGooglePlaces.js +107 -0
- package/esm/AutoCompleteGooglePlaces/index.js +1 -0
- package/esm/Avatar/Avatar.js +103 -0
- package/esm/Avatar/index.js +1 -0
- package/esm/AvatarGroup/AvatarGroup.js +89 -0
- package/esm/AvatarGroup/index.js +1 -0
- package/esm/Backdrop/Backdrop.js +145 -0
- package/esm/Backdrop/index.js +1 -0
- package/esm/Badge/Badge.js +105 -0
- package/esm/Badge/index.js +1 -0
- package/esm/Banner/Banner.js +111 -0
- package/esm/Banner/index.js +1 -0
- package/esm/BottomAppBar/BottomAppBar.js +216 -0
- package/esm/BottomAppBar/index.js +1 -0
- package/esm/BottomSheet/BottomSheet.js +57 -0
- package/esm/BottomSheet/index.js +1 -0
- package/esm/Box/Box.js +36 -0
- package/esm/Box/index.js +1 -0
- package/esm/Breadcrumbs/Breadcrumbs.js +155 -0
- package/esm/Breadcrumbs/index.js +1 -0
- package/esm/BubbleChart/BubbleChart.js +231 -0
- package/esm/BubbleChart/index.js +1 -0
- package/esm/BubbleChartItem/BubbleChartItem.js +210 -0
- package/esm/BubbleChartItem/index.js +1 -0
- package/esm/Button/Button.js +473 -0
- package/esm/Button/index.js +1 -0
- package/esm/Buttons/Buttons.js +356 -0
- package/esm/Buttons/index.js +1 -0
- package/esm/Calendar/Calendar.js +667 -0
- package/esm/Calendar/index.js +1 -0
- package/esm/CalendarAvailability/CalendarAvailability.js +640 -0
- package/esm/CalendarAvailability/index.js +1 -0
- package/esm/CalendarMenu/CalendarMenu.js +388 -0
- package/esm/CalendarMenu/index.js +1 -0
- package/esm/CalendarMonth/CalendarMonth.js +520 -0
- package/esm/CalendarMonth/index.js +1 -0
- package/esm/CalendarViews/CalendarViews.js +360 -0
- package/esm/CalendarViews/index.js +1 -0
- package/esm/CalendarWeek/CalendarWeek.js +486 -0
- package/esm/CalendarWeek/index.js +1 -0
- package/esm/Card/Card.js +119 -0
- package/esm/Card/index.js +1 -0
- package/esm/CardButton/CardButton.js +69 -0
- package/esm/CardButton/index.js +1 -0
- package/esm/CardFooter/CardFooter.js +48 -0
- package/esm/CardFooter/index.js +1 -0
- package/esm/CardHeader/CardHeader.js +51 -0
- package/esm/CardHeader/index.js +1 -0
- package/esm/CardImage/CardImage.js +72 -0
- package/esm/CardImage/index.js +1 -0
- package/esm/CardMain/CardMain.js +43 -0
- package/esm/CardMain/index.js +1 -0
- package/esm/Carousel/Carousel.js +1008 -0
- package/esm/Carousel/index.js +1 -0
- package/esm/Chart/Chart.js +1295 -0
- package/esm/Chart/index.js +1 -0
- package/esm/Checkbox/Checkbox.js +334 -0
- package/esm/Checkbox/index.js +1 -0
- package/esm/Chip/Chip.js +125 -0
- package/esm/Chip/index.js +1 -0
- package/esm/Chips/Chips.js +115 -0
- package/esm/Chips/index.js +1 -0
- package/esm/ClickListener/ClickListener.js +77 -0
- package/esm/ClickListener/index.js +1 -0
- package/esm/Clock/Clock.js +466 -0
- package/esm/Clock/index.js +1 -0
- package/esm/ColorTextField/ColorTextField.js +214 -0
- package/esm/ColorTextField/index.js +1 -0
- package/esm/ColumnChart/ColumnChart.js +50 -0
- package/esm/ColumnChart/index.js +1 -0
- package/esm/ColumnChartItem/ColumnChartItem.js +190 -0
- package/esm/ColumnChartItem/index.js +1 -0
- package/esm/Confirm/Confirm.js +155 -0
- package/esm/Confirm/Context.js +3 -0
- package/esm/Confirm/index.js +4 -0
- package/esm/Confirm/useConfirm.js +6 -0
- package/esm/Container/Container.js +145 -0
- package/esm/Container/index.js +1 -0
- package/esm/Countdown/Countdown.js +376 -0
- package/esm/Countdown/index.js +1 -0
- package/esm/DatePicker/DatePicker.js +751 -0
- package/esm/DatePicker/index.js +1 -0
- package/esm/DateRangePicker/DateRangePicker.js +34 -0
- package/esm/DateRangePicker/index.js +1 -0
- package/esm/DateTimePicker/DateTimePicker.js +645 -0
- package/esm/DateTimePicker/index.js +1 -0
- package/esm/DateTimeRangePicker/DateTimeRangePicker.js +34 -0
- package/esm/DateTimeRangePicker/index.js +1 -0
- package/esm/Divider/Divider.js +183 -0
- package/esm/Divider/index.js +1 -0
- package/esm/DonutChart/DonutChart.js +40 -0
- package/esm/DonutChart/index.js +1 -0
- package/esm/DragAndDropList/DragAndDropList.js +153 -0
- package/esm/DragAndDropList/index.js +1 -0
- package/esm/Drawing/Drawing.js +803 -0
- package/esm/Drawing/index.js +1 -0
- package/esm/DropZone/DropZone.js +215 -0
- package/esm/DropZone/index.js +1 -0
- package/esm/Emojis/Emojis.js +368 -0
- package/esm/Emojis/emojis_list.js +7274 -0
- package/esm/Emojis/index.js +2 -0
- package/esm/Expand/Expand.js +196 -0
- package/esm/Expand/index.js +1 -0
- package/esm/Fab/Fab.js +36 -0
- package/esm/Fab/index.js +1 -0
- package/esm/Fade/Fade.js +125 -0
- package/esm/Fade/index.js +1 -0
- package/esm/FileChoose/FileChoose.js +197 -0
- package/esm/FileChoose/index.js +1 -0
- package/esm/Focus/Focus.js +84 -0
- package/esm/Focus/index.js +1 -0
- package/esm/Form/Form.js +180 -0
- package/esm/Form/index.js +1 -0
- package/esm/FormRow/FormRow.js +111 -0
- package/esm/FormRow/index.js +1 -0
- package/esm/Forms/Forms.js +45 -0
- package/esm/Forms/index.js +1 -0
- package/esm/Frame/Frame.js +194 -0
- package/esm/Frame/index.js +1 -0
- package/esm/Grid/Grid.js +218 -0
- package/esm/Grid/index.js +1 -0
- package/esm/Grow/Grow.js +131 -0
- package/esm/Grow/index.js +1 -0
- package/esm/HTMLCanvas/HTMLCanvas.js +723 -0
- package/esm/HTMLCanvas/index.js +2 -0
- package/esm/IFrame/IFrame.js +120 -0
- package/esm/IFrame/index.js +1 -0
- package/esm/Icon/Icon.js +104 -0
- package/esm/Icon/index.js +2 -0
- package/esm/IconButton/IconButton.js +39 -0
- package/esm/IconButton/index.js +1 -0
- package/esm/Image/Image.js +273 -0
- package/esm/Image/index.js +1 -0
- package/esm/ImageCrop/ImageCrop.js +1076 -0
- package/esm/ImageCrop/index.js +1 -0
- package/esm/ImageEdit/ImageEdit.js +1049 -0
- package/esm/ImageEdit/index.js +1 -0
- package/esm/ImageGallery/ImageGallery.js +500 -0
- package/esm/ImageGallery/index.js +1 -0
- package/esm/ImageList/ImageList.js +131 -0
- package/esm/ImageList/index.js +1 -0
- package/esm/ImageListItem/ImageListItem.js +93 -0
- package/esm/ImageListItem/index.js +1 -0
- package/esm/ImageListItemBox/ImageListItemBox.js +51 -0
- package/esm/ImageListItemBox/index.js +1 -0
- package/esm/Info/Info.js +77 -0
- package/esm/Info/index.js +1 -0
- package/esm/Interaction/Interaction.js +402 -0
- package/esm/Interaction/index.js +1 -0
- package/esm/Keyframes/Context.js +3 -0
- package/esm/Keyframes/Keyframes.js +183 -0
- package/esm/Keyframes/index.js +4 -0
- package/esm/Keyframes/useKeyframes.js +6 -0
- package/esm/Label/Label.js +161 -0
- package/esm/Label/index.js +1 -0
- package/esm/Labels/Labels.js +114 -0
- package/esm/Labels/index.js +1 -0
- package/esm/Line/Line.js +287 -0
- package/esm/Line/index.js +1 -0
- package/esm/LineChart/LineChart.js +44 -0
- package/esm/LineChart/index.js +1 -0
- package/esm/LineChartItem/LineChartItem.js +228 -0
- package/esm/LineChartItem/index.js +1 -0
- package/esm/LinearMeter/LinearMeter.js +465 -0
- package/esm/LinearMeter/index.js +1 -0
- package/esm/LinearProgress/LinearProgress.js +333 -0
- package/esm/LinearProgress/index.js +1 -0
- package/esm/Link/Link.js +175 -0
- package/esm/Link/index.js +1 -0
- package/esm/Links/Links.js +241 -0
- package/esm/Links/index.js +1 -0
- package/esm/List/List.js +137 -0
- package/esm/List/index.js +1 -0
- package/esm/ListItem/ListItem.js +369 -0
- package/esm/ListItem/index.js +1 -0
- package/esm/ListSubheader/ListSubheader.js +43 -0
- package/esm/ListSubheader/index.js +1 -0
- package/esm/MainProgress/Context.js +3 -0
- package/esm/MainProgress/MainProgress.js +182 -0
- package/esm/MainProgress/index.js +4 -0
- package/esm/MainProgress/useMainProgress.js +6 -0
- package/esm/Markdown/Markdown.js +795 -0
- package/esm/Markdown/index.js +1 -0
- package/esm/Masonry/Masonry.js +202 -0
- package/esm/Masonry/index.js +1 -0
- package/esm/Medias/Medias.js +379 -0
- package/esm/Medias/index.js +1 -0
- package/esm/Menu/Menu.js +251 -0
- package/esm/Menu/index.js +1 -0
- package/esm/MenuDesktop/MenuDesktop.js +475 -0
- package/esm/MenuDesktop/index.js +1 -0
- package/esm/MenuItem/MenuItem.js +265 -0
- package/esm/MenuItem/index.js +1 -0
- package/esm/Meta/Meta.js +65 -0
- package/esm/Meta/index.js +1 -0
- package/esm/Modal/Modal.js +312 -0
- package/esm/Modal/index.js +1 -0
- package/esm/ModalFooter/ModalFooter.js +40 -0
- package/esm/ModalFooter/index.js +1 -0
- package/esm/ModalHeader/ModalHeader.js +41 -0
- package/esm/ModalHeader/index.js +1 -0
- package/esm/ModalIcon/ModalIcon.js +22 -0
- package/esm/ModalIcon/index.js +1 -0
- package/esm/ModalMain/ModalMain.js +45 -0
- package/esm/ModalMain/index.js +1 -0
- package/esm/ModalText/ModalText.js +37 -0
- package/esm/ModalText/index.js +1 -0
- package/esm/ModalTitle/ModalTitle.js +37 -0
- package/esm/ModalTitle/index.js +1 -0
- package/esm/MoreOptions/MoreOptions.js +59 -0
- package/esm/MoreOptions/index.js +1 -0
- package/esm/Move/Move.js +161 -0
- package/esm/Move/index.js +1 -0
- package/esm/NavigationBar/NavigationBar.js +118 -0
- package/esm/NavigationBar/index.js +1 -0
- package/esm/NavigationDrawer/NavigationDrawer.js +235 -0
- package/esm/NavigationDrawer/index.js +1 -0
- package/esm/NavigationItem/NavigationItem.js +297 -0
- package/esm/NavigationItem/index.js +1 -0
- package/esm/NavigationRail/NavigationRail.js +165 -0
- package/esm/NavigationRail/index.js +1 -0
- package/esm/NotFound/NotFound.js +71 -0
- package/esm/NotFound/index.js +1 -0
- package/esm/NumericTextField/NumericTextField.js +205 -0
- package/esm/NumericTextField/index.js +1 -0
- package/esm/Page/Page.js +112 -0
- package/esm/Page/index.js +1 -0
- package/esm/PageTransition/PageTransition.js +105 -0
- package/esm/PageTransition/index.js +1 -0
- package/esm/Pagination/Pagination.js +134 -0
- package/esm/Pagination/index.js +1 -0
- package/esm/PaginationItem/PaginationItem.js +73 -0
- package/esm/PaginationItem/index.js +1 -0
- package/esm/Parallax/Parallax.js +133 -0
- package/esm/Parallax/index.js +1 -0
- package/esm/Path/Path.js +33 -0
- package/esm/Path/index.js +1 -0
- package/esm/PieChart/PieChart.js +364 -0
- package/esm/PieChart/index.js +1 -0
- package/esm/Placeholder/Placeholder.js +120 -0
- package/esm/Placeholder/index.js +1 -0
- package/esm/Portal/Portal.js +30 -0
- package/esm/Portal/index.js +1 -0
- package/esm/Properties/Properties.js +71 -0
- package/esm/Properties/index.js +1 -0
- package/esm/Property/Property.js +109 -0
- package/esm/Property/index.js +1 -0
- package/esm/Radio/Radio.js +204 -0
- package/esm/Radio/index.js +1 -0
- package/esm/Radios/Radios.js +112 -0
- package/esm/Radios/index.js +1 -0
- package/esm/Rating/Rating.js +353 -0
- package/esm/Rating/index.js +1 -0
- package/esm/Reset/Reset.js +15 -0
- package/esm/Reset/index.js +1 -0
- package/esm/Reveal/Reveal.js +87 -0
- package/esm/Reveal/index.js +1 -0
- package/esm/RichTextEditor/RichTextEditor.js +1748 -0
- package/esm/RichTextEditor/index.js +1 -0
- package/esm/RoundMeter/RoundMeter.js +634 -0
- package/esm/RoundMeter/index.js +1 -0
- package/esm/RoundProgress/RoundProgress.js +232 -0
- package/esm/RoundProgress/index.js +1 -0
- package/esm/ScatterChart/ScatterChart.js +40 -0
- package/esm/ScatterChart/index.js +1 -0
- package/esm/ScatterChartItem/ScatterChartItem.js +197 -0
- package/esm/ScatterChartItem/index.js +1 -0
- package/esm/ScreenCapture/ScreenCapture.js +402 -0
- package/esm/ScreenCapture/index.js +1 -0
- package/esm/Section/Section.js +399 -0
- package/esm/Section/index.js +1 -0
- package/esm/SectionAction/SectionAction.js +58 -0
- package/esm/SectionAction/index.js +1 -0
- package/esm/SectionBoxes/SectionBoxes.js +218 -0
- package/esm/SectionBoxes/index.js +1 -0
- package/esm/SectionCards/SectionCards.js +235 -0
- package/esm/SectionCards/index.js +1 -0
- package/esm/SectionCarousel/SectionCarousel.js +260 -0
- package/esm/SectionCarousel/index.js +1 -0
- package/esm/SectionContact/SectionContact.js +160 -0
- package/esm/SectionContact/index.js +1 -0
- package/esm/SectionImageGallery/SectionImageGallery.js +51 -0
- package/esm/SectionImageGallery/index.js +1 -0
- package/esm/SectionLogos/SectionLogos.js +110 -0
- package/esm/SectionLogos/index.js +1 -0
- package/esm/SectionMedia/SectionMedia.js +142 -0
- package/esm/SectionMedia/index.js +1 -0
- package/esm/SectionReviews/SectionReviews.js +145 -0
- package/esm/SectionReviews/index.js +1 -0
- package/esm/SectionTextMedia/SectionTextMedia.js +158 -0
- package/esm/SectionTextMedia/index.js +1 -0
- package/esm/SectionTimeline/SectionTimeline.js +106 -0
- package/esm/SectionTimeline/index.js +1 -0
- package/esm/SectionWatch/SectionWatch.js +52 -0
- package/esm/SectionWatch/index.js +1 -0
- package/esm/Select/Select.js +470 -0
- package/esm/Select/index.js +1 -0
- package/esm/Share/Share.js +442 -0
- package/esm/Share/index.js +1 -0
- package/esm/Slide/Slide.js +179 -0
- package/esm/Slide/index.js +1 -0
- package/esm/Slider/Slider.js +916 -0
- package/esm/Slider/index.js +1 -0
- package/esm/SmartTextField/SmartTextField.js +958 -0
- package/esm/SmartTextField/index.js +1 -0
- package/esm/Snackbar/Snackbar.js +208 -0
- package/esm/Snackbar/index.js +1 -0
- package/esm/Snackbars/Context.js +3 -0
- package/esm/Snackbars/Snackbars.js +213 -0
- package/esm/Snackbars/index.js +4 -0
- package/esm/Snackbars/useSnackbars.js +6 -0
- package/esm/Space/Space.js +1634 -0
- package/esm/Space/index.js +2 -0
- package/esm/SpeechToText/SpeechToText.js +190 -0
- package/esm/SpeechToText/index.js +1 -0
- package/esm/SpeedDial/SpeedDial.js +422 -0
- package/esm/SpeedDial/index.js +1 -0
- package/esm/SpeedDialItem/SpeedDialItem.js +79 -0
- package/esm/SpeedDialItem/index.js +1 -0
- package/esm/SpyScroll/SpyScroll.js +147 -0
- package/esm/SpyScroll/index.js +1 -0
- package/esm/Step/Step.js +157 -0
- package/esm/Step/index.js +1 -0
- package/esm/Stepper/Stepper.js +147 -0
- package/esm/Stepper/index.js +1 -0
- package/esm/Surface/Surface.js +761 -0
- package/esm/Surface/index.js +1 -0
- package/esm/Switch/Switch.js +685 -0
- package/esm/Switch/index.js +1 -0
- package/esm/Tab/Tab.js +155 -0
- package/esm/Tab/index.js +1 -0
- package/esm/Table/Table.js +88 -0
- package/esm/Table/index.js +1 -0
- package/esm/TableBody/TableBody.js +68 -0
- package/esm/TableBody/index.js +1 -0
- package/esm/TableCell/TableCell.js +241 -0
- package/esm/TableCell/index.js +1 -0
- package/esm/TableFooter/TableFooter.js +50 -0
- package/esm/TableFooter/index.js +1 -0
- package/esm/TableHead/TableHead.js +124 -0
- package/esm/TableHead/index.js +1 -0
- package/esm/TableHeader/TableHeader.js +52 -0
- package/esm/TableHeader/index.js +1 -0
- package/esm/TablePagination/TablePagination.js +148 -0
- package/esm/TablePagination/index.js +1 -0
- package/esm/TableRow/TableRow.js +68 -0
- package/esm/TableRow/index.js +1 -0
- package/esm/Tabs/Tabs.js +408 -0
- package/esm/Tabs/index.js +1 -0
- package/esm/Text/Text.js +120 -0
- package/esm/Text/index.js +1 -0
- package/esm/TextField/TextField.js +870 -0
- package/esm/TextField/index.js +1 -0
- package/esm/TextToSpeech/TextToSpeech.js +161 -0
- package/esm/TextToSpeech/index.js +1 -0
- package/esm/TimePicker/TimePicker.js +957 -0
- package/esm/TimePicker/index.js +1 -0
- package/esm/TimeRangePicker/TimeRangePicker.js +34 -0
- package/esm/TimeRangePicker/index.js +1 -0
- package/esm/Timeline/Timeline.js +42 -0
- package/esm/Timeline/index.js +1 -0
- package/esm/TimelineItem/TimelineItem.js +130 -0
- package/esm/TimelineItem/index.js +1 -0
- package/esm/Timer/Timer.js +292 -0
- package/esm/Timer/index.js +1 -0
- package/esm/ToggleButton/ToggleButton.js +57 -0
- package/esm/ToggleButton/index.js +1 -0
- package/esm/ToggleButtons/ToggleButtons.js +36 -0
- package/esm/ToggleButtons/index.js +1 -0
- package/esm/Tooltip/Tooltip.js +453 -0
- package/esm/Tooltip/index.js +1 -0
- package/esm/TopAppBar/TopAppBar.js +220 -0
- package/esm/TopAppBar/index.js +1 -0
- package/esm/Transition/Context.js +3 -0
- package/esm/Transition/Transition.js +315 -0
- package/esm/Transition/index.js +4 -0
- package/esm/Transition/useTransition.js +6 -0
- package/esm/Transitions/Transitions.js +207 -0
- package/esm/Transitions/index.js +1 -0
- package/esm/Tree/Tree.js +353 -0
- package/esm/Tree/index.js +1 -0
- package/esm/Type/Type.js +243 -0
- package/esm/Type/index.js +1 -0
- package/esm/VideoPlayer/VideoPlayer.js +834 -0
- package/esm/VideoPlayer/index.js +1 -0
- package/esm/ViewSplit/ViewSplit.js +414 -0
- package/esm/ViewSplit/index.js +1 -0
- package/esm/Watch/Watch.js +411 -0
- package/esm/Watch/index.js +1 -0
- package/esm/Weather/Weather.js +276 -0
- package/esm/Weather/index.js +1 -0
- package/esm/Widgets/Context.js +3 -0
- package/esm/Widgets/Widgets.js +200 -0
- package/esm/Widgets/index.js +4 -0
- package/esm/Widgets/useWidgets.js +6 -0
- package/esm/WindowSplit/WindowSplit.js +370 -0
- package/esm/WindowSplit/index.js +1 -0
- package/esm/Zoom/Zoom.js +120 -0
- package/esm/Zoom/index.js +1 -0
- package/esm/index.js +428 -0
- package/esm/types.js +1 -0
- package/esm/useForm/index.js +3 -0
- package/esm/useForm/useForm.js +197 -0
- package/esm/useForm/validate.js +204 -0
- package/esm/useLocation/index.js +1 -0
- package/esm/useLocation/useLocation.js +51 -0
- package/esm/useMediaQuery/index.js +1 -0
- package/esm/useMediaQuery/useMediaQuery.js +40 -0
- package/esm/useQuery/index.js +1 -0
- package/esm/useQuery/useQuery.js +11 -0
- package/esm/useScroll/index.js +1 -0
- package/esm/useScroll/useScroll.js +56 -0
- package/esm/useSubscription/index.js +1 -0
- package/esm/useSubscription/useSubscription.js +31 -0
- package/esm/useSwipe/index.js +1 -0
- package/esm/useSwipe/useSwipe.js +158 -0
- package/esm/useVisible/index.js +1 -0
- package/esm/useVisible/useVisible.js +81 -0
- package/esm/utils.js +1256 -0
- package/index.d.ts +423 -0
- package/index.js +658 -0
- package/package.json +55 -0
- package/types.d.ts +41 -0
- package/types.js +2 -0
- package/useForm/index.d.ts +3 -0
- package/useForm/index.js +12 -0
- package/useForm/package.json +6 -0
- package/useForm/useForm.d.ts +28 -0
- package/useForm/useForm.js +177 -0
- package/useForm/validate.d.ts +65 -0
- package/useForm/validate.js +219 -0
- package/useLocation/index.d.ts +1 -0
- package/useLocation/index.js +8 -0
- package/useLocation/package.json +6 -0
- package/useLocation/useLocation.d.ts +7 -0
- package/useLocation/useLocation.js +52 -0
- package/useMediaQuery/index.d.ts +1 -0
- package/useMediaQuery/index.js +8 -0
- package/useMediaQuery/package.json +6 -0
- package/useMediaQuery/useMediaQuery.d.ts +9 -0
- package/useMediaQuery/useMediaQuery.js +48 -0
- package/useQuery/index.d.ts +1 -0
- package/useQuery/index.js +8 -0
- package/useQuery/package.json +6 -0
- package/useQuery/useQuery.d.ts +5 -0
- package/useQuery/useQuery.js +14 -0
- package/useScroll/index.d.ts +1 -0
- package/useScroll/index.js +8 -0
- package/useScroll/package.json +6 -0
- package/useScroll/useScroll.d.ts +12 -0
- package/useScroll/useScroll.js +60 -0
- package/useSubscription/index.d.ts +1 -0
- package/useSubscription/index.js +8 -0
- package/useSubscription/package.json +6 -0
- package/useSubscription/useSubscription.d.ts +3 -0
- package/useSubscription/useSubscription.js +38 -0
- package/useSwipe/index.d.ts +1 -0
- package/useSwipe/index.js +8 -0
- package/useSwipe/package.json +6 -0
- package/useSwipe/useSwipe.d.ts +18 -0
- package/useSwipe/useSwipe.js +138 -0
- package/useVisible/index.d.ts +1 -0
- package/useVisible/index.js +8 -0
- package/useVisible/package.json +6 -0
- package/useVisible/useVisible.d.ts +23 -0
- package/useVisible/useVisible.js +80 -0
- package/utils.d.ts +48 -0
- package/utils.js +1422 -0
@@ -0,0 +1,736 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
3
|
+
var t = {};
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
5
|
+
t[p] = s[p];
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
9
|
+
t[p[i]] = s[p[i]];
|
10
|
+
}
|
11
|
+
return t;
|
12
|
+
};
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
18
|
+
const react_1 = __importDefault(require("react"));
|
19
|
+
const utils_1 = require("@onesy/utils");
|
20
|
+
const date_1 = require("@onesy/date");
|
21
|
+
const style_react_1 = require("@onesy/style-react");
|
22
|
+
const IconMaterialScheduleW100_1 = __importDefault(require("@amaui/icons-material-rounded-react/IconMaterialScheduleW100"));
|
23
|
+
const IconMaterialKeyboardAltW100_1 = __importDefault(require("@amaui/icons-material-rounded-react/IconMaterialKeyboardAltW100"));
|
24
|
+
const IconButton_1 = __importDefault(require("../IconButton"));
|
25
|
+
const AdvancedTextField_1 = __importDefault(require("../AdvancedTextField"));
|
26
|
+
const Modal_1 = __importDefault(require("../Modal"));
|
27
|
+
const ClickListener_1 = __importDefault(require("../ClickListener"));
|
28
|
+
const Tooltip_1 = __importDefault(require("../Tooltip"));
|
29
|
+
const Surface_1 = __importDefault(require("../Surface"));
|
30
|
+
const Line_1 = __importDefault(require("../Line"));
|
31
|
+
const Type_1 = __importDefault(require("../Type"));
|
32
|
+
const ToggleButtons_1 = __importDefault(require("../ToggleButtons"));
|
33
|
+
const ToggleButton_1 = __importDefault(require("../ToggleButton"));
|
34
|
+
const Button_1 = __importDefault(require("../Button"));
|
35
|
+
const Slide_1 = __importDefault(require("../Slide"));
|
36
|
+
const Clock_1 = __importDefault(require("../Clock"));
|
37
|
+
const Tabs_1 = __importDefault(require("../Tabs"));
|
38
|
+
const Tab_1 = __importDefault(require("../Tab"));
|
39
|
+
const useMediaQuery_1 = __importDefault(require("../useMediaQuery"));
|
40
|
+
const DatePicker_1 = require("../DatePicker/DatePicker");
|
41
|
+
const utils_2 = require("../utils");
|
42
|
+
const useStyle = (0, style_react_1.style)(theme => ({
|
43
|
+
root: {},
|
44
|
+
main: {},
|
45
|
+
main_size_small: {
|
46
|
+
borderRadius: theme.methods.shape.radius.value(2.5, 'px'),
|
47
|
+
},
|
48
|
+
main_size_regular: {
|
49
|
+
borderRadius: theme.methods.shape.radius.value(3.5, 'px')
|
50
|
+
},
|
51
|
+
main_size_large: {
|
52
|
+
borderRadius: theme.methods.shape.radius.value(4.5, 'px')
|
53
|
+
},
|
54
|
+
heading: {
|
55
|
+
width: '100%'
|
56
|
+
},
|
57
|
+
heading_size_small: {
|
58
|
+
padding: `${theme.methods.space.value(2, 'px')} ${theme.methods.space.value(2, 'px')} 0`
|
59
|
+
},
|
60
|
+
heading_size_regular: {
|
61
|
+
padding: `${theme.methods.space.value(3, 'px')} ${theme.methods.space.value(3, 'px')} 0`
|
62
|
+
},
|
63
|
+
heading_size_large: {
|
64
|
+
padding: `${theme.methods.space.value(4, 'px')} ${theme.methods.space.value(4, 'px')} 0`
|
65
|
+
},
|
66
|
+
inputs: {
|
67
|
+
width: '100%'
|
68
|
+
},
|
69
|
+
middle: {
|
70
|
+
width: '100%'
|
71
|
+
},
|
72
|
+
middle_size_small: {
|
73
|
+
padding: `0 ${theme.methods.space.value(2, 'px')}`,
|
74
|
+
marginTop: '16px'
|
75
|
+
},
|
76
|
+
middle_size_regular: {
|
77
|
+
padding: `0 ${theme.methods.space.value(3, 'px')}`,
|
78
|
+
marginTop: '24px'
|
79
|
+
},
|
80
|
+
middle_size_large: {
|
81
|
+
padding: `0 ${theme.methods.space.value(4, 'px')}`,
|
82
|
+
marginTop: '32px'
|
83
|
+
},
|
84
|
+
input: {
|
85
|
+
flex: '1 1 auto',
|
86
|
+
'& .onesy-TextField-helper-text': {
|
87
|
+
color: theme.palette.text.default.primary
|
88
|
+
}
|
89
|
+
},
|
90
|
+
input_size_small: {
|
91
|
+
maxWidth: '72px',
|
92
|
+
'& .onesy-TextField-input-wrapper': {
|
93
|
+
paddingInline: '0px',
|
94
|
+
paddingBlock: `${theme.methods.space.value(1, 'px')} ${theme.methods.space.value(0.5, 'px')}`,
|
95
|
+
height: '64px'
|
96
|
+
},
|
97
|
+
'& .onesy-TextField-input': Object.assign(Object.assign({}, theme.typography.values.d3), { lineHeight: '1', textAlign: 'center' }),
|
98
|
+
'& .onesy-TextField-footer': {
|
99
|
+
marginTop: '4px',
|
100
|
+
padding: '0px'
|
101
|
+
}
|
102
|
+
},
|
103
|
+
input_size_regular: {
|
104
|
+
maxWidth: '96px',
|
105
|
+
'& .onesy-TextField-input-wrapper': {
|
106
|
+
paddingInline: '0px',
|
107
|
+
paddingBlock: `${theme.methods.space.value(1.5, 'px')} ${theme.methods.space.value(1, 'px')}`,
|
108
|
+
height: '72px'
|
109
|
+
},
|
110
|
+
'& .onesy-TextField-input': Object.assign(Object.assign({}, theme.typography.values.d2), { lineHeight: '1', textAlign: 'center' }),
|
111
|
+
'& .onesy-TextField-footer': {
|
112
|
+
marginTop: '8px',
|
113
|
+
padding: '0px'
|
114
|
+
}
|
115
|
+
},
|
116
|
+
input_size_large: {
|
117
|
+
maxWidth: '120px',
|
118
|
+
'& .onesy-TextField-input-wrapper': {
|
119
|
+
paddingInline: '0px',
|
120
|
+
paddingBlock: `${theme.methods.space.value(2, 'px')} ${theme.methods.space.value(1.5, 'px')}`,
|
121
|
+
height: '80px'
|
122
|
+
},
|
123
|
+
'& .onesy-TextField-input': Object.assign(Object.assign({}, theme.typography.values.d1), { lineHeight: '1', textAlign: 'center' }),
|
124
|
+
'& .onesy-TextField-footer': {
|
125
|
+
marginTop: '12px',
|
126
|
+
padding: '0px'
|
127
|
+
}
|
128
|
+
},
|
129
|
+
button: {
|
130
|
+
padding: '0',
|
131
|
+
paddingTop: theme.methods.space.value(0.5, 'px'),
|
132
|
+
borderRadius: theme.methods.shape.radius.value('sm', 'px'),
|
133
|
+
cursor: 'pointer',
|
134
|
+
userSelect: 'none',
|
135
|
+
flex: '1 1'
|
136
|
+
},
|
137
|
+
button_size_small: {
|
138
|
+
height: '64px',
|
139
|
+
width: '82px',
|
140
|
+
'& .onesy-Button-label': Object.assign(Object.assign({}, theme.typography.values.d3), { lineHeight: '1' })
|
141
|
+
},
|
142
|
+
button_size_regular: {
|
143
|
+
height: '72px',
|
144
|
+
width: '96px',
|
145
|
+
'& .onesy-Button-label': Object.assign(Object.assign({}, theme.typography.values.d2), { lineHeight: '1' })
|
146
|
+
},
|
147
|
+
button_size_large: {
|
148
|
+
height: '96px',
|
149
|
+
width: '110px',
|
150
|
+
'& .onesy-Button-label': Object.assign(Object.assign({}, theme.typography.values.d1), { lineHeight: '1' })
|
151
|
+
},
|
152
|
+
inputSeparator: {
|
153
|
+
paddingInline: theme.methods.space.value(0.75, 'px'),
|
154
|
+
userSelect: 'none'
|
155
|
+
},
|
156
|
+
toggleButtons: {
|
157
|
+
'& > *': {
|
158
|
+
flex: '1 1 auto'
|
159
|
+
}
|
160
|
+
},
|
161
|
+
toggleButtons_orientation_vertical_size_small: {
|
162
|
+
minWidth: '48px',
|
163
|
+
height: '64px'
|
164
|
+
},
|
165
|
+
toggleButtons_orientation_vertical_size_regular: {
|
166
|
+
minWidth: '56px',
|
167
|
+
height: '72px'
|
168
|
+
},
|
169
|
+
toggleButtons_orientation_vertical_size_large: {
|
170
|
+
minWidth: '68px',
|
171
|
+
height: '80px'
|
172
|
+
},
|
173
|
+
toggleButtons_orientation_horizontal_size_small: {
|
174
|
+
height: '30px'
|
175
|
+
},
|
176
|
+
toggleButtons_orientation_horizontal_size_regular: {
|
177
|
+
height: '38px'
|
178
|
+
},
|
179
|
+
toggleButtons_orientation_horizontal_size_large: {
|
180
|
+
height: '46px'
|
181
|
+
},
|
182
|
+
toggleButton: {},
|
183
|
+
tabs: {},
|
184
|
+
tabs_padding: {
|
185
|
+
marginTop: 12
|
186
|
+
},
|
187
|
+
footer: {},
|
188
|
+
footer_size_small: {
|
189
|
+
padding: `0px ${theme.methods.space.value(1, 'px')} ${theme.methods.space.value(1, 'px')}`,
|
190
|
+
marginTop: '16px'
|
191
|
+
},
|
192
|
+
footer_size_regular: {
|
193
|
+
padding: `0px ${theme.methods.space.value(2, 'px')} ${theme.methods.space.value(2, 'px')}`,
|
194
|
+
marginTop: '24px'
|
195
|
+
},
|
196
|
+
footer_size_large: {
|
197
|
+
padding: `0px ${theme.methods.space.value(3, 'px')} ${theme.methods.space.value(3, 'px')}`,
|
198
|
+
marginTop: '32px'
|
199
|
+
}
|
200
|
+
}), { name: 'onesy-TimePicker' });
|
201
|
+
const TimePicker = react_1.default.forwardRef((props__, ref) => {
|
202
|
+
const theme = (0, style_react_1.useOnesyTheme)();
|
203
|
+
const props = react_1.default.useMemo(() => { var _a, _b, _c, _d, _e, _f, _g, _h; return (Object.assign(Object.assign(Object.assign({}, (_d = (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.ui) === null || _a === void 0 ? void 0 : _a.elements) === null || _b === void 0 ? void 0 : _b.all) === null || _c === void 0 ? void 0 : _c.props) === null || _d === void 0 ? void 0 : _d.default), (_h = (_g = (_f = (_e = theme === null || theme === void 0 ? void 0 : theme.ui) === null || _e === void 0 ? void 0 : _e.elements) === null || _f === void 0 ? void 0 : _f.onesyTimePicker) === null || _g === void 0 ? void 0 : _g.props) === null || _h === void 0 ? void 0 : _h.default), props__)); }, [props__]);
|
204
|
+
const Line = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Line) || Line_1.default; }, [theme]);
|
205
|
+
const IconButton = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.IconButton) || IconButton_1.default; }, [theme]);
|
206
|
+
const AdvancedTextField = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.AdvancedTextField) || AdvancedTextField_1.default; }, [theme]);
|
207
|
+
const Modal = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Modal) || Modal_1.default; }, [theme]);
|
208
|
+
const ClickListener = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.ClickListener) || ClickListener_1.default; }, [theme]);
|
209
|
+
const Tooltip = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Tooltip) || Tooltip_1.default; }, [theme]);
|
210
|
+
const Surface = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Surface) || Surface_1.default; }, [theme]);
|
211
|
+
const Type = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Type) || Type_1.default; }, [theme]);
|
212
|
+
const ToggleButton = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.ToggleButton) || ToggleButton_1.default; }, [theme]);
|
213
|
+
const ToggleButtons = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.ToggleButtons) || ToggleButtons_1.default; }, [theme]);
|
214
|
+
const Button = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Button) || Button_1.default; }, [theme]);
|
215
|
+
const Slide = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Slide) || Slide_1.default; }, [theme]);
|
216
|
+
const Clock = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Clock) || Clock_1.default; }, [theme]);
|
217
|
+
const Tab = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Tab) || Tab_1.default; }, [theme]);
|
218
|
+
const Tabs = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Tabs) || Tabs_1.default; }, [theme]);
|
219
|
+
const { tonal = true, color = 'primary', version: version_ = 'auto', value: value_, valueDefault, onChange, selecting: selecting_, selectingDefault, onChangeSelecting, size = 'regular', range, now, label, min, max, validate, autoNext: autoNext_, autoCloseOnLast: autoCloseOnLast_, openMobile = 'select', openDesktop = 'select', selectModalSubHeadingText = 'Select time', selectModalSubHeadingTextRange = `Select from${DatePicker_1.SEPARATOR}to time`, inputModalSubHeadingText = 'Enter time', inputModalSubHeadingTextRange = `Enter from${DatePicker_1.SEPARATOR}to time`, orientation: orientation_, format = '12', hour = true, minute = true, second = false, switch: switch__, static: static_, today, clear = true, placeholder: placeholder_, heading: heading_ = true, actions: actions_ = true, fullWidth, readOnly, disabled, valid: valid_, onClick: onClick_, onClose: onClose_, onCancel: onCancel_, onNow: onNow_, onToday: onToday_, onClear: onClear_, onOk: onOk_, renderValue, Icon: Icon_ = IconMaterialScheduleW100_1.default, IconEnter = IconMaterialKeyboardAltW100_1.default, WrapperProps, MainProps, ModalProps, MiddleProps, ButtonProps, TooltipProps, ToggleButtonsProps, ToggleButtonProps, IconButtonProps, InputProps, ClockProps, TabsProps, TabFromProps, TabToProps, AdvancedTextFieldProps, IconProps, className } = props, other = __rest(props, ["tonal", "color", "version", "value", "valueDefault", "onChange", "selecting", "selectingDefault", "onChangeSelecting", "size", "range", "now", "label", "min", "max", "validate", "autoNext", "autoCloseOnLast", "openMobile", "openDesktop", "selectModalSubHeadingText", "selectModalSubHeadingTextRange", "inputModalSubHeadingText", "inputModalSubHeadingTextRange", "orientation", "format", "hour", "minute", "second", "switch", "static", "today", "clear", "placeholder", "heading", "actions", "fullWidth", "readOnly", "disabled", "valid", "onClick", "onClose", "onCancel", "onNow", "onToday", "onClear", "onOk", "renderValue", "Icon", "IconEnter", "WrapperProps", "MainProps", "ModalProps", "MiddleProps", "ButtonProps", "TooltipProps", "ToggleButtonsProps", "ToggleButtonProps", "IconButtonProps", "InputProps", "ClockProps", "TabsProps", "TabFromProps", "TabToProps", "AdvancedTextFieldProps", "IconProps", "className"]);
|
220
|
+
const { classes } = useStyle();
|
221
|
+
const refs = {
|
222
|
+
root: react_1.default.useRef(undefined),
|
223
|
+
mode: react_1.default.useRef(undefined),
|
224
|
+
value: react_1.default.useRef(undefined),
|
225
|
+
dayTime: react_1.default.useRef(undefined)
|
226
|
+
};
|
227
|
+
const keys = react_1.default.useMemo(() => {
|
228
|
+
const result = [];
|
229
|
+
const items = [switch__, orientation_, autoNext_, autoCloseOnLast_];
|
230
|
+
items.forEach(item => {
|
231
|
+
if ((0, utils_1.is)('object', item))
|
232
|
+
Object.keys(item).filter(key => theme.breakpoints.media[key]).forEach(key => result.push(key));
|
233
|
+
});
|
234
|
+
return (0, utils_1.unique)(result);
|
235
|
+
}, [switch__, orientation_, autoNext_, autoCloseOnLast_]);
|
236
|
+
const breakpoints = {};
|
237
|
+
keys.forEach(key => {
|
238
|
+
breakpoints[key] = (0, useMediaQuery_1.default)(theme.breakpoints.media[key], { element: refs.root.current });
|
239
|
+
});
|
240
|
+
const switch_ = (0, utils_2.valueBreakpoints)(switch__, true, breakpoints, theme);
|
241
|
+
const orientation = (0, utils_2.valueBreakpoints)(orientation_, 'vertical', breakpoints, theme);
|
242
|
+
const autoNext = (0, utils_2.valueBreakpoints)(autoNext_, undefined, breakpoints, theme);
|
243
|
+
const autoCloseOnLast = (0, utils_2.valueBreakpoints)(autoCloseOnLast_, undefined, breakpoints, theme);
|
244
|
+
const touch = (0, useMediaQuery_1.default)('(pointer: coarse)', { element: refs.root.current });
|
245
|
+
const [value, setValue] = react_1.default.useState(() => {
|
246
|
+
const valueResult = (valueDefault !== undefined ? valueDefault : value_) || (now && (range ? [new date_1.OnesyDate(), new date_1.OnesyDate()] : [new date_1.OnesyDate()]));
|
247
|
+
return ((0, utils_1.is)('array', valueResult) ? valueResult : [valueResult]).filter(Boolean);
|
248
|
+
});
|
249
|
+
const [selecting, setSelecting] = react_1.default.useState(() => {
|
250
|
+
const valueResult = (selectingDefault !== undefined ? selectingDefault : selecting_) || ['hour', 'hour'];
|
251
|
+
return ((0, utils_1.is)('array', valueResult) ? valueResult : [valueResult]).filter(Boolean);
|
252
|
+
});
|
253
|
+
const [open, setOpen] = react_1.default.useState(false);
|
254
|
+
const [mode, setMode] = react_1.default.useState((touch ? openMobile : openDesktop) || 'select');
|
255
|
+
const [error, setError] = react_1.default.useState(false);
|
256
|
+
const [dayTime, setDayTime] = react_1.default.useState(Array.from({ length: 2 }).map(item => (0, date_1.format)(new date_1.OnesyDate(), 'a')));
|
257
|
+
const [tab, setTab] = react_1.default.useState(0);
|
258
|
+
refs.value.current = value;
|
259
|
+
refs.mode.current = mode;
|
260
|
+
refs.dayTime.current = dayTime;
|
261
|
+
const valueToInput = react_1.default.useCallback((valueNew = refs.value.current) => {
|
262
|
+
let result = '';
|
263
|
+
const [from, to] = (0, utils_1.is)('array', valueNew) ? valueNew : [valueNew];
|
264
|
+
if (!(from || to))
|
265
|
+
return '';
|
266
|
+
const method = (item) => {
|
267
|
+
let formatValue = '';
|
268
|
+
if (format === '12')
|
269
|
+
formatValue += `hh`;
|
270
|
+
else
|
271
|
+
formatValue += `HH`;
|
272
|
+
if (minute)
|
273
|
+
formatValue += `:mm`;
|
274
|
+
if (second)
|
275
|
+
formatValue += `:ss`;
|
276
|
+
if (format === '12')
|
277
|
+
formatValue += ` a`;
|
278
|
+
return (0, date_1.format)(item, formatValue);
|
279
|
+
};
|
280
|
+
result += `${method(from)}`;
|
281
|
+
if (range && to)
|
282
|
+
result += `${DatePicker_1.SEPARATOR}${method(to)}`;
|
283
|
+
return result;
|
284
|
+
}, [value, format, hour, minute, second, range]);
|
285
|
+
const [input, setInput] = react_1.default.useState(valueToInput());
|
286
|
+
let version = version_;
|
287
|
+
if (version === 'auto') {
|
288
|
+
if (touch)
|
289
|
+
version = 'mobile';
|
290
|
+
else
|
291
|
+
version = 'desktop';
|
292
|
+
}
|
293
|
+
const onUpdateValue = (valueNew_) => {
|
294
|
+
const valueNew = (0, utils_1.is)('array', valueNew_) ? valueNew_ : [valueNew_];
|
295
|
+
// Update value
|
296
|
+
setValue(valueNew);
|
297
|
+
// Update input
|
298
|
+
setInput(valueToInput(valueNew));
|
299
|
+
// Update dayTime
|
300
|
+
setDayTime(valueNew.map(item => (0, date_1.format)(item, 'a')));
|
301
|
+
};
|
302
|
+
const errorCheck = react_1.default.useCallback((valueNew = value) => {
|
303
|
+
// Error
|
304
|
+
setError((valueNew || []).some((item, index) => !valid(item)));
|
305
|
+
}, [value]);
|
306
|
+
// Init
|
307
|
+
react_1.default.useEffect(() => {
|
308
|
+
// Error
|
309
|
+
errorCheck();
|
310
|
+
}, []);
|
311
|
+
// Value
|
312
|
+
react_1.default.useEffect(() => {
|
313
|
+
if (value_ !== undefined && value_ !== value)
|
314
|
+
onUpdateValue((((0, utils_1.is)('array', value_) ? value_ : [value_]).filter(Boolean)));
|
315
|
+
}, [value_]);
|
316
|
+
const onUpdate = react_1.default.useCallback((valueNew_) => {
|
317
|
+
const valueNew = resolve(valueNew_);
|
318
|
+
// Inner update
|
319
|
+
if (!props.hasOwnProperty('value'))
|
320
|
+
setValue(valueNew);
|
321
|
+
if ((0, utils_1.is)('function', onChange))
|
322
|
+
onChange(!range ? valueNew[0] : valueNew);
|
323
|
+
}, [value, range, onChange]);
|
324
|
+
const onUpdateSelecting = react_1.default.useCallback((valueNew_, index) => {
|
325
|
+
const valueNew = [...selecting];
|
326
|
+
valueNew[index] = valueNew_;
|
327
|
+
// Inner update
|
328
|
+
if (!props.hasOwnProperty('selecting'))
|
329
|
+
setSelecting(valueNew);
|
330
|
+
if ((0, utils_1.is)('function', onChangeSelecting))
|
331
|
+
onChangeSelecting(valueNew);
|
332
|
+
}, [onChangeSelecting]);
|
333
|
+
const valid = react_1.default.useCallback((...args) => {
|
334
|
+
if ((0, utils_1.is)('function', valid_))
|
335
|
+
return valid_(...args);
|
336
|
+
const onesyDate = args[0];
|
337
|
+
if (min || max || validate) {
|
338
|
+
let response = true;
|
339
|
+
if ((0, utils_1.is)('function', validate))
|
340
|
+
response = validate(onesyDate);
|
341
|
+
if (min !== undefined)
|
342
|
+
response = response && (0, date_1.is)(onesyDate, 'after or same', min);
|
343
|
+
if (max !== undefined)
|
344
|
+
response = response && (0, date_1.is)(onesyDate, 'before or same', max);
|
345
|
+
return response;
|
346
|
+
}
|
347
|
+
return true;
|
348
|
+
}, [valid_, min, max, validate]);
|
349
|
+
const textToOnesyDate = react_1.default.useCallback((valueNew) => {
|
350
|
+
const [times, dayTime_] = (valueNew || '').split(' ');
|
351
|
+
const values = times.split(':');
|
352
|
+
let valueTime;
|
353
|
+
let onesyDate = new date_1.OnesyDate();
|
354
|
+
if (hour) {
|
355
|
+
valueTime = values[0];
|
356
|
+
if ((0, utils_1.is)('string', valueTime) && valueTime.startsWith('0'))
|
357
|
+
valueTime = valueTime.slice(1);
|
358
|
+
valueTime = +valueTime;
|
359
|
+
onesyDate = (0, date_1.set)((format === '12' && dayTime_ === 'pm') ? valueTime + 12 : valueTime, 'hour', onesyDate);
|
360
|
+
}
|
361
|
+
if (minute) {
|
362
|
+
valueTime = values[!hour ? 0 : 1];
|
363
|
+
if ((0, utils_1.is)('string', valueTime) && valueTime.startsWith('0'))
|
364
|
+
valueTime = valueTime.slice(1);
|
365
|
+
valueTime = +valueTime;
|
366
|
+
onesyDate = (0, date_1.set)(valueTime, 'minute', onesyDate);
|
367
|
+
}
|
368
|
+
if (second) {
|
369
|
+
valueTime = values[!(hour && minute) ? 0 : !hour ? 1 : 2];
|
370
|
+
if ((0, utils_1.is)('string', valueTime) && valueTime.startsWith('0'))
|
371
|
+
valueTime = valueTime.slice(1);
|
372
|
+
valueTime = +valueTime;
|
373
|
+
onesyDate = (0, date_1.set)(valueTime, 'second', onesyDate);
|
374
|
+
}
|
375
|
+
return onesyDate;
|
376
|
+
}, [format, hour, minute, second]);
|
377
|
+
const onInputModalChange = react_1.default.useCallback((valueNew, unit, index) => {
|
378
|
+
let valueTime = valueNew;
|
379
|
+
if ((0, utils_1.is)('string', valueTime) && valueTime.startsWith('0'))
|
380
|
+
valueTime = valueTime.slice(1);
|
381
|
+
valueTime = +valueTime;
|
382
|
+
value[index] = (0, date_1.set)(valueTime, unit || selecting[index], value[index]);
|
383
|
+
(!actions_ ? onUpdate : setValue)(resolve(value));
|
384
|
+
}, [value, actions_, selecting]);
|
385
|
+
const resolve = react_1.default.useCallback((valueNew = refs.value.current, dayTimeNew = refs.dayTime.current) => {
|
386
|
+
const values = valueNew.filter(Boolean).map((item, index) => {
|
387
|
+
// Resolve the range value
|
388
|
+
const valueHour = item.hour;
|
389
|
+
if (format === '12') {
|
390
|
+
if (dayTimeNew[index] === 'am' && valueHour > 12)
|
391
|
+
return (0, date_1.set)(valueHour - 12, 'hour', item);
|
392
|
+
if (dayTimeNew[index] === 'pm' && valueHour < 12)
|
393
|
+
return (0, date_1.set)(valueHour + 12, 'hour', item);
|
394
|
+
}
|
395
|
+
return item;
|
396
|
+
});
|
397
|
+
return values;
|
398
|
+
}, [value, dayTime, format]);
|
399
|
+
const updateDayTime = react_1.default.useCallback((valueNew_, index) => {
|
400
|
+
const valueNew = valueNew_[0];
|
401
|
+
// Update dayTime
|
402
|
+
const dayTimeNew = [...dayTime];
|
403
|
+
dayTimeNew[index] = valueNew;
|
404
|
+
refs.dayTime.current = dayTimeNew;
|
405
|
+
setDayTime(dayTimeNew);
|
406
|
+
(!actions_ ? onUpdate : setValue)(resolve(refs.value.current));
|
407
|
+
}, [value, actions_, dayTime, format]);
|
408
|
+
const inputToValue = react_1.default.useCallback((valueNew_ = input) => {
|
409
|
+
let valueNew = valueNew_;
|
410
|
+
let [from, to] = valueNew.split(DatePicker_1.SEPARATOR);
|
411
|
+
from = textToOnesyDate(from);
|
412
|
+
if (to)
|
413
|
+
to = textToOnesyDate(to);
|
414
|
+
valueNew = [from, to].filter(Boolean).filter((item) => item === null || item === void 0 ? void 0 : item.valid);
|
415
|
+
return valueNew;
|
416
|
+
}, [input]);
|
417
|
+
const onInputChange = react_1.default.useCallback((valueNew_) => {
|
418
|
+
const valueNew = inputToValue(valueNew_);
|
419
|
+
const validValues = valueNew.every(item => item.valid);
|
420
|
+
// Only update values if input is valid
|
421
|
+
// format used to make the value
|
422
|
+
if (validValues) {
|
423
|
+
// Error
|
424
|
+
errorCheck(valueNew);
|
425
|
+
// Update value
|
426
|
+
onUpdate(valueNew);
|
427
|
+
}
|
428
|
+
if (!valueNew_) {
|
429
|
+
onUpdate([null, null]);
|
430
|
+
}
|
431
|
+
// Update input for free typing
|
432
|
+
setInput(valueNew_);
|
433
|
+
}, []);
|
434
|
+
const onChangeClock = react_1.default.useCallback((valueNew_, index = 0) => {
|
435
|
+
const valueNew = [...value];
|
436
|
+
if (valueNew_ !== value[index]) {
|
437
|
+
valueNew[index] = valueNew_;
|
438
|
+
(!actions_ ? onUpdate : setValue)(resolve(valueNew));
|
439
|
+
// Error
|
440
|
+
errorCheck(valueNew);
|
441
|
+
}
|
442
|
+
}, [value, actions_]);
|
443
|
+
const onChangeSelectingClock = react_1.default.useCallback((valueNew, index = 0) => {
|
444
|
+
const selectingValue = selecting;
|
445
|
+
selectingValue[index] = valueNew;
|
446
|
+
if (valueNew !== selecting[0])
|
447
|
+
setSelecting([...selectingValue]);
|
448
|
+
}, [selecting]);
|
449
|
+
const onDoneSelecting = react_1.default.useCallback((valueNew, selectingNew) => {
|
450
|
+
// AutoCloseOnLast
|
451
|
+
if (autoCloseOnLast && refs.mode.current === 'select') {
|
452
|
+
if (['hour', 'minute', 'second'].includes(selectingNew)) {
|
453
|
+
if ((selectingNew === 'second') ||
|
454
|
+
(selectingNew === 'minute' && !second) ||
|
455
|
+
(selectingNew === 'hour' && !minute))
|
456
|
+
return onOk();
|
457
|
+
}
|
458
|
+
}
|
459
|
+
}, [mode, autoCloseOnLast, hour, minute, second]);
|
460
|
+
const onMode = react_1.default.useCallback(() => {
|
461
|
+
setMode((version === 'mobile' ? openMobile : openDesktop) || 'select');
|
462
|
+
}, [version, openMobile, openDesktop]);
|
463
|
+
const onModeSwitch = react_1.default.useCallback(() => {
|
464
|
+
setMode(refs.mode.current === 'select' ? 'input' : 'select');
|
465
|
+
}, []);
|
466
|
+
const onOpen = react_1.default.useCallback(() => {
|
467
|
+
onMode();
|
468
|
+
setOpen(previous => !previous);
|
469
|
+
}, [open, openMobile, version]);
|
470
|
+
const onClose = react_1.default.useCallback((event) => {
|
471
|
+
setOpen(false);
|
472
|
+
if ((0, utils_1.is)('function', onClose_))
|
473
|
+
onClose_(event);
|
474
|
+
}, [onClose_]);
|
475
|
+
const onReset = react_1.default.useCallback(() => {
|
476
|
+
const valueNew = inputToValue();
|
477
|
+
// Update value
|
478
|
+
onUpdate(valueNew);
|
479
|
+
// Update dayTime
|
480
|
+
setDayTime(valueNew.map(item => (0, date_1.format)(item, 'a')));
|
481
|
+
}, [input]);
|
482
|
+
const onToday = react_1.default.useCallback((event) => {
|
483
|
+
const valueNew = [new date_1.OnesyDate()];
|
484
|
+
if (range)
|
485
|
+
valueNew.push(new date_1.OnesyDate());
|
486
|
+
// Update value
|
487
|
+
onUpdate(valueNew);
|
488
|
+
// Update input
|
489
|
+
setInput(valueToInput(valueNew));
|
490
|
+
// Update dayTime
|
491
|
+
setDayTime(valueNew.map(item => (0, date_1.format)(item, 'a')));
|
492
|
+
onClose(event);
|
493
|
+
if ((0, utils_1.is)('function', onToday_))
|
494
|
+
onToday_(event);
|
495
|
+
}, [input, range, onToday_]);
|
496
|
+
const onClear = react_1.default.useCallback((event) => {
|
497
|
+
const valueNew = [];
|
498
|
+
// Update value
|
499
|
+
onUpdate(valueNew);
|
500
|
+
// Update input
|
501
|
+
setInput(valueToInput(valueNew));
|
502
|
+
// Update dayTime
|
503
|
+
setDayTime(valueNew.map(item => (0, date_1.format)(item, 'a')));
|
504
|
+
onClose(event);
|
505
|
+
if ((0, utils_1.is)('function', onClear_))
|
506
|
+
onClear_(event);
|
507
|
+
}, [onClear_]);
|
508
|
+
const onOk = react_1.default.useCallback((event) => {
|
509
|
+
// Error
|
510
|
+
errorCheck();
|
511
|
+
// Update value
|
512
|
+
onUpdate(refs.value.current);
|
513
|
+
// Update input
|
514
|
+
setInput(valueToInput(refs.value.current));
|
515
|
+
// Update dayTime
|
516
|
+
setDayTime(refs.value.current.map(item => (0, date_1.format)(item, 'a')));
|
517
|
+
onClose(event);
|
518
|
+
if ((0, utils_1.is)('function', onOk_))
|
519
|
+
onOk_(event);
|
520
|
+
}, [value, onOk_]);
|
521
|
+
const onCancel = react_1.default.useCallback((event) => {
|
522
|
+
onReset();
|
523
|
+
onClose(event);
|
524
|
+
if ((0, utils_1.is)('function', onCancel_))
|
525
|
+
onCancel_(event);
|
526
|
+
}, [input, onCancel_]);
|
527
|
+
const mask = [];
|
528
|
+
let placeholder = '';
|
529
|
+
if (hour) {
|
530
|
+
if (format === '12') {
|
531
|
+
mask.push({ pattern: '[0-1]' }, (item, result, valueInput) => /^([0][0-9]|1[0-2]).*/.test(valueInput));
|
532
|
+
}
|
533
|
+
if (format === '24') {
|
534
|
+
mask.push({ pattern: '[0-2]' }, (item, result, valueInput) => /^([01][0-9]|2[0-3]).*/.test(valueInput));
|
535
|
+
}
|
536
|
+
placeholder += 'hh';
|
537
|
+
if (minute || second) {
|
538
|
+
mask.push(':');
|
539
|
+
placeholder += ':';
|
540
|
+
}
|
541
|
+
}
|
542
|
+
if (minute) {
|
543
|
+
mask.push({ pattern: '[0-5]' }, { pattern: '[0-9]' });
|
544
|
+
placeholder += 'mm';
|
545
|
+
if (second) {
|
546
|
+
mask.push(':');
|
547
|
+
placeholder += ':';
|
548
|
+
}
|
549
|
+
}
|
550
|
+
if (second) {
|
551
|
+
mask.push({ pattern: '[0-5]' }, { pattern: '[0-9]' });
|
552
|
+
placeholder += 'ss';
|
553
|
+
}
|
554
|
+
if (format === '12') {
|
555
|
+
mask.push(' ', { pattern: '[ap]' }, 'm');
|
556
|
+
placeholder += ' (a|p)m';
|
557
|
+
}
|
558
|
+
// range
|
559
|
+
if (range) {
|
560
|
+
mask.push(' ', DatePicker_1.SEPARATOR_SYMBOL, ' ', ...mask);
|
561
|
+
placeholder += `${DatePicker_1.SEPARATOR}${placeholder}`;
|
562
|
+
}
|
563
|
+
placeholder = placeholder_ || placeholder;
|
564
|
+
const buttonProps = Object.assign({ color: 'inherit', version: 'text', size }, ButtonProps);
|
565
|
+
const iconButtonProps = Object.assign({ size }, IconButtonProps);
|
566
|
+
const clock = (index = 0) => ((0, jsx_runtime_1.jsx)(Clock, Object.assign({ size: size, format: format, value: value[index] || new date_1.OnesyDate(), dayTime: dayTime[index] || (0, date_1.format)(new date_1.OnesyDate(), 'a'), selecting: selecting[index], onChange: valueNew => onChangeClock(valueNew, index), onChangeSelecting: valueNew => onChangeSelectingClock(valueNew, index), onDoneSelecting: onDoneSelecting, renderValue: renderValue, valid: valid, hour: hour, minute: minute, second: second, autoNext: autoNext, disabled: disabled }, ClockProps)));
|
567
|
+
const moreProps = {};
|
568
|
+
if (version === 'desktop') {
|
569
|
+
moreProps.end = ((0, jsx_runtime_1.jsx)(IconButton, Object.assign({ tonal: tonal, color: color, size: size, version: 'text', onClick: onOpen, "aria-label": 'Choose time', disabled: disabled || readOnly }, iconButtonProps, { children: (0, jsx_runtime_1.jsx)(Icon_, Object.assign({}, IconProps)) })));
|
570
|
+
}
|
571
|
+
const makeInputs = (index = 0) => {
|
572
|
+
const inputProps = Object.assign({ tonal,
|
573
|
+
color, version: 'outlined', size, className: (0, style_react_1.classNames)([
|
574
|
+
(0, utils_2.staticClassName)('TimePicker', theme) && [
|
575
|
+
'onesy-TimePicker-input'
|
576
|
+
],
|
577
|
+
classes.input,
|
578
|
+
classes[`input_version_${version}`],
|
579
|
+
classes[`input_size_${size}`]
|
580
|
+
]), HelperTextProps: {
|
581
|
+
version: size === 'large' ? 'b2' : size === 'regular' ? 'b3' : 'b3'
|
582
|
+
} }, InputProps);
|
583
|
+
const buttonProps_ = {
|
584
|
+
tonal: 'secondary',
|
585
|
+
color: ['themed', 'inverted', 'default', 'inherit'].includes(color) ? 'default' : color,
|
586
|
+
version: 'filled',
|
587
|
+
backgroundOpacity: 0.44,
|
588
|
+
elevation: false,
|
589
|
+
size,
|
590
|
+
className: (0, style_react_1.classNames)([
|
591
|
+
(0, utils_2.staticClassName)('TimePicker', theme) && [
|
592
|
+
'onesy-TimePicker-button'
|
593
|
+
],
|
594
|
+
classes.button,
|
595
|
+
classes[`button_size_${size}`]
|
596
|
+
]),
|
597
|
+
style: {
|
598
|
+
color: theme.palette.text.default.primary
|
599
|
+
}
|
600
|
+
};
|
601
|
+
const separator = ((0, jsx_runtime_1.jsx)(Type, Object.assign({ version: size === 'large' ? 'd1' : size === 'regular' ? 'd2' : 'd3', className: (0, style_react_1.classNames)([
|
602
|
+
(0, utils_2.staticClassName)('TimePicker', theme) && [
|
603
|
+
'onesy-TimePicker-input-separator'
|
604
|
+
],
|
605
|
+
classes.inputSeparator
|
606
|
+
]), style: Object.assign({}, (mode !== 'select' && {
|
607
|
+
marginTop: -24
|
608
|
+
})) }, { children: ":" })));
|
609
|
+
const buttons = [];
|
610
|
+
const inputs = [];
|
611
|
+
if (hour) {
|
612
|
+
buttons.push((0, jsx_runtime_1.jsx)(Button, Object.assign({}, buttonProps_, { selected: selecting[index] === 'hour', onClick: () => onUpdateSelecting('hour', index) }, { children: (0, date_1.format)(value[index], format === '12' ? 'hh' : 'HH') })));
|
613
|
+
inputs.push((0, jsx_runtime_1.jsx)(AdvancedTextField, Object.assign({ helperText: 'Hour', value: (0, date_1.format)(value[index], format === '12' ? 'hh' : 'HH'), onChange: (valueNew) => onInputModalChange(valueNew, 'hour', index), placeholder: '00', mask: [
|
614
|
+
...(format === '12' ? [
|
615
|
+
{ pattern: '[0-1]' },
|
616
|
+
(item, result, valueInput) => /^([0][0-9]|1[0-2]).*/.test(valueInput)
|
617
|
+
] : [
|
618
|
+
{ pattern: '[0-2]' },
|
619
|
+
(item, result, valueInput) => /^([01][0-9]|2[0-3]).*/.test(valueInput)
|
620
|
+
])
|
621
|
+
] }, inputProps)));
|
622
|
+
}
|
623
|
+
if (minute) {
|
624
|
+
if (hour) {
|
625
|
+
buttons.push(separator);
|
626
|
+
inputs.push(separator);
|
627
|
+
}
|
628
|
+
buttons.push((0, jsx_runtime_1.jsx)(Button, Object.assign({}, buttonProps_, { selected: selecting[index] === 'minute', onClick: () => onUpdateSelecting('minute', index) }, { children: (0, date_1.format)(value[index], 'mm') })));
|
629
|
+
inputs.push((0, jsx_runtime_1.jsx)(AdvancedTextField, Object.assign({ helperText: 'Minute', value: (0, date_1.format)(value[index], 'mm'), onChange: (valueNew) => onInputModalChange(valueNew, 'minute', index), placeholder: '00', mask: [
|
630
|
+
{ pattern: '[0-5]' },
|
631
|
+
{ pattern: '[0-9]' }
|
632
|
+
] }, inputProps)));
|
633
|
+
}
|
634
|
+
if (second) {
|
635
|
+
if (hour || minute) {
|
636
|
+
buttons.push(separator);
|
637
|
+
inputs.push(separator);
|
638
|
+
}
|
639
|
+
buttons.push((0, jsx_runtime_1.jsx)(Button, Object.assign({}, buttonProps_, { selected: selecting[index] === 'second', onClick: () => onUpdateSelecting('second', index) }, { children: (0, date_1.format)(value[index], 'ss') })));
|
640
|
+
inputs.push((0, jsx_runtime_1.jsx)(AdvancedTextField, Object.assign({ helperText: 'Second', value: (0, date_1.format)(value[index], 'ss'), onChange: (valueNew) => onInputModalChange(valueNew, 'second', index), placeholder: '00', mask: [
|
641
|
+
{ pattern: '[0-5]' },
|
642
|
+
{ pattern: '[0-9]' }
|
643
|
+
] }, inputProps)));
|
644
|
+
}
|
645
|
+
return mode === 'select' ? buttons : inputs;
|
646
|
+
};
|
647
|
+
const toggleButtonProps = Object.assign(Object.assign({ size, icon: false }, ToggleButtonProps), { className: (0, style_react_1.classNames)([
|
648
|
+
(0, utils_2.staticClassName)('TimePicker', theme) && [
|
649
|
+
'onesy-TimePicker-toggle-button'
|
650
|
+
],
|
651
|
+
ToggleButtonProps === null || ToggleButtonProps === void 0 ? void 0 : ToggleButtonProps.className,
|
652
|
+
classes.toggleButton
|
653
|
+
]) });
|
654
|
+
const orientationValue = mode === 'select' ? orientation : 'vertical';
|
655
|
+
const timeValue = range ? [0, 1] : [0];
|
656
|
+
const elementValues = (timeValue.map((item, index) => ((0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 4.5, direction: orientationValue === 'vertical' ? 'column' : 'row', align: 'center', justify: 'unset', style: {
|
657
|
+
width: '100%'
|
658
|
+
} }, { children: [(0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: orientationValue === 'vertical' ? 1.5 : 2, direction: orientationValue === 'vertical' ? 'row' : 'column', justify: 'center', align: 'unset', className: (0, style_react_1.classNames)([
|
659
|
+
(0, utils_2.staticClassName)('TimePicker', theme) && [
|
660
|
+
'onesy-TimePicker-inputs'
|
661
|
+
],
|
662
|
+
classes.inputs
|
663
|
+
]) }, { children: [(0, jsx_runtime_1.jsx)(Line, Object.assign({ gap: 0, direction: 'row', align: 'center', justify: 'center' }, { children: makeInputs(index) })), format === '12' && ((0, jsx_runtime_1.jsxs)(ToggleButtons, Object.assign({ version: 'outlined', size: size, orientation: orientationValue, value: dayTime[index] || (0, date_1.format)(new date_1.OnesyDate(), 'a'), onChange: valueNew => updateDayTime(valueNew, index), select: 'single', unselect: false }, ToggleButtonsProps, { className: (0, style_react_1.classNames)([
|
664
|
+
(0, utils_2.staticClassName)('TimePicker', theme) && [
|
665
|
+
'onesy-TimePicker-toggle-buttons'
|
666
|
+
],
|
667
|
+
ToggleButtonsProps === null || ToggleButtonsProps === void 0 ? void 0 : ToggleButtonsProps.className,
|
668
|
+
classes.toggleButtons,
|
669
|
+
classes[`toggleButtons_orientation_${orientationValue}_size_${size}`]
|
670
|
+
]) }, { children: [(0, jsx_runtime_1.jsx)(ToggleButton, Object.assign({ value: 'am' }, toggleButtonProps, { children: "AM" })), (0, jsx_runtime_1.jsx)(ToggleButton, Object.assign({ value: 'pm' }, toggleButtonProps, { children: "PM" }))] })))] })), mode === 'select' && clock(index)] }), index))));
|
671
|
+
const heading = mode === 'select' ? !range ? selectModalSubHeadingText : selectModalSubHeadingTextRange : !range ? inputModalSubHeadingText : inputModalSubHeadingTextRange;
|
672
|
+
const actions = ((0, jsx_runtime_1.jsxs)(Line, Object.assign({ direction: 'row', align: 'center', justify: 'space-between', fullWidth: true, className: (0, style_react_1.classNames)([
|
673
|
+
(0, utils_2.staticClassName)('TimePicker', theme) && [
|
674
|
+
'onesy-TimePicker-footer'
|
675
|
+
],
|
676
|
+
classes.footer,
|
677
|
+
classes[`footer_size_${size}`]
|
678
|
+
]) }, { children: [(0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 0, direction: 'row', align: 'center' }, { children: [switch_ && ((0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ label: mode === 'select' ? 'Enter time' : 'Select time' }, { children: (0, jsx_runtime_1.jsx)(IconButton, Object.assign({ tonal: tonal, color: 'inherit', size: size, onClick: onModeSwitch, "aria-label": mode === 'select' ? 'Enter time' : 'Select time' }, iconButtonProps, { children: mode === 'select' ? (0, jsx_runtime_1.jsx)(IconEnter, Object.assign({}, IconProps)) : (0, jsx_runtime_1.jsx)(Icon_, Object.assign({}, IconProps)) })) }))), today && ((0, jsx_runtime_1.jsx)(Button, Object.assign({ onClick: onToday, version: 'text', size: size }, buttonProps, { children: "Now" }))), clear && ((0, jsx_runtime_1.jsx)(Button, Object.assign({ onClick: onClear, version: 'text', size: size }, buttonProps, { children: "Clear" })))] })), (0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 0, direction: 'row', align: 'center' }, { children: [(0, jsx_runtime_1.jsx)(Button, Object.assign({ tonal: tonal, color: color, version: 'text', size: size, onClick: onCancel }, buttonProps, { children: "Cancel" })), (0, jsx_runtime_1.jsx)(Button, Object.assign({ tonal: tonal, color: color, version: 'text', size: size, onClick: onOk }, buttonProps, { children: "Ok" }))] }))] })));
|
679
|
+
const element = ((0, jsx_runtime_1.jsxs)(Surface, Object.assign({ gap: 0, direction: 'column', align: 'center', Component: Line }, MainProps, { className: (0, style_react_1.classNames)([
|
680
|
+
(0, utils_2.staticClassName)('TimePicker', theme) && [
|
681
|
+
'onesy-TimePicker-main'
|
682
|
+
],
|
683
|
+
MainProps === null || MainProps === void 0 ? void 0 : MainProps.className,
|
684
|
+
classes.main,
|
685
|
+
classes[`main_size_${size}`]
|
686
|
+
]) }, { children: [heading_ && ((0, jsx_runtime_1.jsx)(Type, Object.assign({ version: size === 'large' ? 'l1' : size === 'regular' ? 'l2' : 'l3', className: (0, style_react_1.classNames)([
|
687
|
+
(0, utils_2.staticClassName)('TimePicker', theme) && [
|
688
|
+
'onesy-TimePicker-heading'
|
689
|
+
],
|
690
|
+
classes.heading,
|
691
|
+
classes[`heading_size_${size}`]
|
692
|
+
]) }, { children: heading }))), range && ((0, jsx_runtime_1.jsxs)(Tabs, Object.assign({ justify: 'center', initialLineUpdateTimeout: 340, value: tab, valueDefault: tab, onChange: setTab }, TabsProps, { className: (0, style_react_1.classNames)([
|
693
|
+
(0, utils_2.staticClassName)('TimePicker', theme) && [
|
694
|
+
'onesy-TimePicker-tabs'
|
695
|
+
],
|
696
|
+
TabsProps === null || TabsProps === void 0 ? void 0 : TabsProps.className,
|
697
|
+
classes.tabs,
|
698
|
+
heading_ && classes.tabs_padding
|
699
|
+
]) }, { children: [(0, jsx_runtime_1.jsx)(Tab, Object.assign({ value: 0, label: 'From' }, TabFromProps)), (0, jsx_runtime_1.jsx)(Tab, Object.assign({ value: 1, label: 'To' }, TabToProps))] }))), (0, jsx_runtime_1.jsx)(Line, Object.assign({ gap: 0, className: (0, style_react_1.classNames)([
|
700
|
+
(0, utils_2.staticClassName)('TimePicker', theme) && [
|
701
|
+
'onesy-TimePicker-middle'
|
702
|
+
],
|
703
|
+
MiddleProps === null || MiddleProps === void 0 ? void 0 : MiddleProps.className,
|
704
|
+
classes.middle,
|
705
|
+
classes[`middle_size_${size}`]
|
706
|
+
]) }, { children: elementValues[tab] })), actions_ && actions] })));
|
707
|
+
if (version === 'mobile') {
|
708
|
+
if (!(readOnly || disabled))
|
709
|
+
moreProps.onClick = onOpen;
|
710
|
+
}
|
711
|
+
if (static_)
|
712
|
+
return element;
|
713
|
+
return ((0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 0, direction: 'column', fullWidth: fullWidth }, WrapperProps, { className: (0, style_react_1.classNames)([
|
714
|
+
(0, utils_2.staticClassName)('TimePicker', theme) && [
|
715
|
+
'onesy-TimePicker-root',
|
716
|
+
`onesy-TimePicker-version-${version}`,
|
717
|
+
`onesy-TimePicker-size-${size}`,
|
718
|
+
WrapperProps === null || WrapperProps === void 0 ? void 0 : WrapperProps.className,
|
719
|
+
readOnly && `onesy-TimePicker-read-only`,
|
720
|
+
disabled && `onesy-TimePicker-disabled`,
|
721
|
+
fullWidth && 'onesy-full-width'
|
722
|
+
],
|
723
|
+
className,
|
724
|
+
classes.root
|
725
|
+
]) }, { children: [(0, jsx_runtime_1.jsx)(AdvancedTextField, Object.assign({ rootRef: item => {
|
726
|
+
if (ref) {
|
727
|
+
if ((0, utils_1.is)('function', ref))
|
728
|
+
ref(item);
|
729
|
+
else
|
730
|
+
ref.current = item;
|
731
|
+
}
|
732
|
+
refs.root.current = item;
|
733
|
+
}, tonal: tonal, color: color, version: 'outlined', size: size, label: label, mask: mask, placeholder: placeholder, value: input, onChange: onInputChange, endVerticalAlign: 'center', error: error, fullWidth: fullWidth, readOnly: readOnly, disabled: disabled }, moreProps, other, AdvancedTextFieldProps)), version === 'mobile' && ((0, jsx_runtime_1.jsx)(Modal, Object.assign({ open: open, modalWrapperSurface: false, TransitionComponent: Slide, onClose: onClose }, ModalProps, { children: element }))), version === 'desktop' && ((0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ open: open, portal: true, anchorElement: refs.root.current, alignment: 'center', position: 'bottom', hover: false, focus: false, longPress: false, maxWidth: 'unset', noMargin: true, label: ((0, jsx_runtime_1.jsx)(ClickListener, Object.assign({ onClickOutside: onCancel, includeParentQueries: ['.onesy-TimePicker-main'] }, { children: element }))) }, TooltipProps)))] })));
|
734
|
+
});
|
735
|
+
TimePicker.displayName = 'onesy-TimePicker';
|
736
|
+
exports.default = TimePicker;
|