@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,1076 @@
|
|
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 style_react_1 = require("@onesy/style-react");
|
21
|
+
const Tooltip_1 = __importDefault(require("../Tooltip"));
|
22
|
+
const utils_2 = require("../utils");
|
23
|
+
const useStyle = (0, style_react_1.style)(theme => {
|
24
|
+
const dot = {
|
25
|
+
display: 'inline-block',
|
26
|
+
position: 'absolute',
|
27
|
+
width: '6px',
|
28
|
+
height: '6px',
|
29
|
+
borderRadius: '50%',
|
30
|
+
background: '#a4a4a4',
|
31
|
+
outline: '1px solid white'
|
32
|
+
};
|
33
|
+
return {
|
34
|
+
root: {
|
35
|
+
width: '100%',
|
36
|
+
minHeight: '1px',
|
37
|
+
lineHeight: '0',
|
38
|
+
userSelect: 'none',
|
39
|
+
overflow: 'hidden'
|
40
|
+
},
|
41
|
+
mouseDown_move: {
|
42
|
+
'& *': {
|
43
|
+
cursor: 'grab !important'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
mouseDown_top: {
|
47
|
+
'& *': {
|
48
|
+
cursor: 'ns-resize !important'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
mouseDown_left: {
|
52
|
+
'& *': {
|
53
|
+
cursor: 'ew-resize !important'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
mouseDown_right: {
|
57
|
+
'& *': {
|
58
|
+
cursor: 'ew-resize !important'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
mouseDown_bottom: {
|
62
|
+
'& *': {
|
63
|
+
cursor: 'ns-resize !important'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
mouseDown_top_left: {
|
67
|
+
'& *': {
|
68
|
+
cursor: 'nwse-resize !important'
|
69
|
+
}
|
70
|
+
},
|
71
|
+
mouseDown_top_right: {
|
72
|
+
'& *': {
|
73
|
+
cursor: 'nesw-resize !important'
|
74
|
+
}
|
75
|
+
},
|
76
|
+
mouseDown_bottom_left: {
|
77
|
+
'& *': {
|
78
|
+
cursor: 'nesw-resize !important'
|
79
|
+
}
|
80
|
+
},
|
81
|
+
mouseDown_bottom_right: {
|
82
|
+
'& *': {
|
83
|
+
cursor: 'nwse-resize !important'
|
84
|
+
}
|
85
|
+
},
|
86
|
+
canvas: {
|
87
|
+
position: 'absolute',
|
88
|
+
zIndex: '0'
|
89
|
+
},
|
90
|
+
canvas_main: {
|
91
|
+
position: 'relative',
|
92
|
+
width: '100%',
|
93
|
+
height: 'auto'
|
94
|
+
},
|
95
|
+
canvas_imageSelector: {
|
96
|
+
zIndex: -1
|
97
|
+
},
|
98
|
+
background: {
|
99
|
+
position: 'absolute',
|
100
|
+
inset: '0',
|
101
|
+
width: '100%',
|
102
|
+
height: '100%',
|
103
|
+
opacity: '0',
|
104
|
+
background: theme.methods.palette.color.colorToRgb(theme.palette.text.default.primary, 44),
|
105
|
+
transition: theme.methods.transitions.make('opacity', { duration: 'xxs' }),
|
106
|
+
zIndex: '1'
|
107
|
+
},
|
108
|
+
background_in: {
|
109
|
+
opacity: '1'
|
110
|
+
},
|
111
|
+
imageSelector_main: {
|
112
|
+
position: 'absolute',
|
113
|
+
top: '0',
|
114
|
+
left: '0',
|
115
|
+
width: '0',
|
116
|
+
height: '0',
|
117
|
+
outline: '2px dashed white',
|
118
|
+
background: 'transparent',
|
119
|
+
touchAction: 'none',
|
120
|
+
opacity: '0',
|
121
|
+
zIndex: '14',
|
122
|
+
userSelect: 'none',
|
123
|
+
transition: theme.methods.transitions.make('opacity'),
|
124
|
+
},
|
125
|
+
imageSelector_main_in: {
|
126
|
+
opacity: '1'
|
127
|
+
},
|
128
|
+
imageSelector: {
|
129
|
+
position: 'absolute',
|
130
|
+
top: '0',
|
131
|
+
left: '0',
|
132
|
+
width: '0',
|
133
|
+
height: '0',
|
134
|
+
touchAction: 'none',
|
135
|
+
overflow: 'hidden',
|
136
|
+
userSelect: 'none',
|
137
|
+
zIndex: '11'
|
138
|
+
},
|
139
|
+
move: {
|
140
|
+
position: 'absolute',
|
141
|
+
inset: '0',
|
142
|
+
width: '100%',
|
143
|
+
height: '100%',
|
144
|
+
cursor: 'grab',
|
145
|
+
'&:active': {
|
146
|
+
cursor: 'grabbing !important'
|
147
|
+
}
|
148
|
+
},
|
149
|
+
grid_line: {
|
150
|
+
position: 'absolute',
|
151
|
+
background: 'white',
|
152
|
+
mixBlendMode: 'difference'
|
153
|
+
},
|
154
|
+
grid_line_top_start: {
|
155
|
+
top: '33.3333%',
|
156
|
+
insetInline: '0',
|
157
|
+
width: '100%',
|
158
|
+
height: '1px'
|
159
|
+
},
|
160
|
+
grid_line_top_end: {
|
161
|
+
top: '66.6666%',
|
162
|
+
insetInline: '0',
|
163
|
+
width: '100%',
|
164
|
+
height: '1px'
|
165
|
+
},
|
166
|
+
grid_line_left_start: {
|
167
|
+
left: '33.3333%',
|
168
|
+
insetBlock: '0',
|
169
|
+
width: '1px',
|
170
|
+
height: '100%'
|
171
|
+
},
|
172
|
+
grid_line_left_end: {
|
173
|
+
left: '66.6666%',
|
174
|
+
insetBlock: '0',
|
175
|
+
width: '1px',
|
176
|
+
height: '100%'
|
177
|
+
},
|
178
|
+
dot: Object.assign({}, dot),
|
179
|
+
dot_top_left: {
|
180
|
+
top: '-1px',
|
181
|
+
left: '-1px',
|
182
|
+
transform: 'translate(-50%, -50%)',
|
183
|
+
cursor: 'nwse-resize'
|
184
|
+
},
|
185
|
+
dot_top_right: {
|
186
|
+
top: '-1px',
|
187
|
+
right: '-1px',
|
188
|
+
transform: 'translate(50%, -50%)',
|
189
|
+
cursor: 'nesw-resize'
|
190
|
+
},
|
191
|
+
dot_bottom_left: {
|
192
|
+
bottom: '-1px',
|
193
|
+
left: '-1px',
|
194
|
+
transform: 'translate(-50%, 50%)',
|
195
|
+
cursor: 'nesw-resize'
|
196
|
+
},
|
197
|
+
dot_bottom_right: {
|
198
|
+
bottom: '-1px',
|
199
|
+
right: '-1px',
|
200
|
+
transform: 'translate(50%, 50%)',
|
201
|
+
cursor: 'nwse-resize'
|
202
|
+
},
|
203
|
+
border: {
|
204
|
+
position: 'absolute'
|
205
|
+
},
|
206
|
+
border_top: {
|
207
|
+
top: '-2px',
|
208
|
+
height: '2px',
|
209
|
+
width: '100%',
|
210
|
+
cursor: 'ns-resize',
|
211
|
+
'&::before': Object.assign(Object.assign({}, dot), { content: '""', top: '50%', left: '50%', transform: 'translate(-50%, -50%)' })
|
212
|
+
},
|
213
|
+
border_left: {
|
214
|
+
left: '-2px',
|
215
|
+
height: '100%',
|
216
|
+
width: '2px',
|
217
|
+
cursor: 'ew-resize',
|
218
|
+
'&::before': Object.assign(Object.assign({}, dot), { content: '""', top: '50%', left: '50%', transform: 'translate(-50%, -50%)' })
|
219
|
+
},
|
220
|
+
border_right: {
|
221
|
+
right: '-2px',
|
222
|
+
height: '100%',
|
223
|
+
width: '2px',
|
224
|
+
cursor: 'ew-resize',
|
225
|
+
'&::before': Object.assign(Object.assign({}, dot), { content: '""', top: '50%', right: '50%', transform: 'translate(50%, -50%)' })
|
226
|
+
},
|
227
|
+
border_bottom: {
|
228
|
+
bottom: '-2px',
|
229
|
+
height: '2px',
|
230
|
+
width: '100%',
|
231
|
+
cursor: 'ns-resize',
|
232
|
+
'&::before': Object.assign(Object.assign({}, dot), { content: '""', bottom: '50%', left: '50%', transform: 'translate(-50%, 50%)' })
|
233
|
+
}
|
234
|
+
};
|
235
|
+
}, { name: 'onesy-ImageCrop' });
|
236
|
+
const ImageCrop = react_1.default.forwardRef((props_, ref) => {
|
237
|
+
var _a;
|
238
|
+
const theme = (0, style_react_1.useOnesyTheme)();
|
239
|
+
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.onesyImageCrop) === null || _g === void 0 ? void 0 : _g.props) === null || _h === void 0 ? void 0 : _h.default), props_)); }, [props_]);
|
240
|
+
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]);
|
241
|
+
const {
|
242
|
+
// url, datauri or canvas
|
243
|
+
image: image_, minWidth, minHeight, maxWidth, maxHeight, selectorDefault, selector: selector_, onSelectorChange: onSelectorChange_, type = `image/jpeg`, quality = 1, aspectRatio, gridLines, dynamicParent, onFocus: onFocus_, onBlur: onBlur_, TooltipProps, Component = 'div', className } = props, other = __rest(props, ["image", "minWidth", "minHeight", "maxWidth", "maxHeight", "selectorDefault", "selector", "onSelectorChange", "type", "quality", "aspectRatio", "gridLines", "dynamicParent", "onFocus", "onBlur", "TooltipProps", "Component", "className"]);
|
244
|
+
const { classes } = useStyle();
|
245
|
+
const [image, setImage] = react_1.default.useState();
|
246
|
+
const [focus, setFocus] = react_1.default.useState();
|
247
|
+
const [mouseDown, setMouseDown] = react_1.default.useState();
|
248
|
+
const [selector, setSelector] = react_1.default.useState(selectorDefault !== undefined ? selectorDefault : selector_);
|
249
|
+
const [selectorRelative, setSelectorRelative] = react_1.default.useState();
|
250
|
+
const refs = {
|
251
|
+
root: react_1.default.useRef(undefined),
|
252
|
+
image: react_1.default.useRef(undefined),
|
253
|
+
mouseDown: react_1.default.useRef(undefined),
|
254
|
+
selector: react_1.default.useRef(undefined),
|
255
|
+
imageSelectorMain: react_1.default.useRef(undefined),
|
256
|
+
imageSelector: react_1.default.useRef(undefined),
|
257
|
+
previousMouseEvent: react_1.default.useRef(undefined),
|
258
|
+
canvasMain: react_1.default.useRef(),
|
259
|
+
canvasImageSelector: react_1.default.useRef(),
|
260
|
+
move: react_1.default.useRef(undefined),
|
261
|
+
borderTop: react_1.default.useRef(undefined),
|
262
|
+
borderLeft: react_1.default.useRef(undefined),
|
263
|
+
borderRight: react_1.default.useRef(undefined),
|
264
|
+
borderBottom: react_1.default.useRef(undefined),
|
265
|
+
dotTopLeft: react_1.default.useRef(undefined),
|
266
|
+
dotTopRight: react_1.default.useRef(undefined),
|
267
|
+
dotBottomLeft: react_1.default.useRef(undefined),
|
268
|
+
dotBottomRight: react_1.default.useRef(undefined),
|
269
|
+
props: react_1.default.useRef(undefined),
|
270
|
+
dynamicParent: react_1.default.useRef(undefined),
|
271
|
+
focus: react_1.default.useRef(undefined),
|
272
|
+
aspectRatio: react_1.default.useRef(undefined)
|
273
|
+
};
|
274
|
+
refs.image.current = image;
|
275
|
+
refs.mouseDown.current = mouseDown;
|
276
|
+
refs.selector.current = selector;
|
277
|
+
refs.props.current = props;
|
278
|
+
refs.focus.current = focus;
|
279
|
+
refs.dynamicParent.current = dynamicParent;
|
280
|
+
refs.aspectRatio.current = aspectRatio;
|
281
|
+
const onSelectorChange = (valueNew) => {
|
282
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
283
|
+
// min, max for width, height
|
284
|
+
// + resolve it to max width and height for aspect ratio
|
285
|
+
if ((0, utils_1.is)('object', valueNew) && !!Object.keys(valueNew).length && refs.root.current) {
|
286
|
+
const rootRect = (_a = refs.root.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
287
|
+
const minWidth_ = refs.props.current.minWidth !== undefined ? refs.props.current.minWidth : Number.MIN_SAFE_INTEGER;
|
288
|
+
const minHeight_ = refs.props.current.minHeight !== undefined ? refs.props.current.minHeight : Number.MIN_SAFE_INTEGER;
|
289
|
+
const maxWidth_ = refs.props.current.maxWidth !== undefined ? refs.props.current.maxWidth : Number.MAX_SAFE_INTEGER;
|
290
|
+
const maxHeight_ = refs.props.current.maxHeight !== undefined ? refs.props.current.maxHeight : Number.MAX_SAFE_INTEGER;
|
291
|
+
valueNew.width = (0, utils_1.clamp)(valueNew.width, minWidth_, maxWidth_);
|
292
|
+
valueNew.height = (0, utils_1.clamp)(valueNew.height, minHeight_, maxHeight_);
|
293
|
+
if (refs.aspectRatio.current !== undefined) {
|
294
|
+
if (valueNew.width + (valueNew.width / refs.aspectRatio.current) >= valueNew.height + (valueNew.height * refs.aspectRatio.current)) {
|
295
|
+
valueNew.height = valueNew.width / refs.aspectRatio.current;
|
296
|
+
}
|
297
|
+
else {
|
298
|
+
valueNew.width = valueNew.height * refs.aspectRatio.current;
|
299
|
+
}
|
300
|
+
// Max width
|
301
|
+
if (valueNew.left + valueNew.width > rootRect.width) {
|
302
|
+
valueNew.width = rootRect.width - valueNew.left;
|
303
|
+
valueNew.height = valueNew.width / refs.aspectRatio.current;
|
304
|
+
}
|
305
|
+
// Max height
|
306
|
+
if (valueNew.top + valueNew.height > rootRect.height) {
|
307
|
+
valueNew.height = rootRect.height - valueNew.top;
|
308
|
+
valueNew.width = valueNew.height * refs.aspectRatio.current;
|
309
|
+
}
|
310
|
+
// Max width, height per maxWidth and maxHeight
|
311
|
+
if (valueNew.width < minWidth_ || valueNew.width > maxWidth_) {
|
312
|
+
valueNew.width = (0, utils_1.clamp)(valueNew.width, minWidth_, maxWidth_);
|
313
|
+
valueNew.height = valueNew.width / refs.aspectRatio.current;
|
314
|
+
}
|
315
|
+
if (valueNew.height < minHeight_ || valueNew.height > maxHeight_) {
|
316
|
+
valueNew.height = (0, utils_1.clamp)(valueNew.height, minHeight_, maxHeight_);
|
317
|
+
valueNew.width = valueNew.height / refs.aspectRatio.current;
|
318
|
+
}
|
319
|
+
}
|
320
|
+
// If previous values are within maxWidth and/or maxHeight
|
321
|
+
// and left or top are not same as before
|
322
|
+
// return
|
323
|
+
if (!['move'].includes((_b = refs.mouseDown.current) === null || _b === void 0 ? void 0 : _b.version)) {
|
324
|
+
if (maxWidth_ !== undefined || maxHeight_ !== undefined) {
|
325
|
+
if ((valueNew.top < ((_c = refs.selector.current) === null || _c === void 0 ? void 0 : _c.top) || valueNew.left < ((_d = refs.selector.current) === null || _d === void 0 ? void 0 : _d.left)) && (((_e = refs.selector.current) === null || _e === void 0 ? void 0 : _e.width) === maxWidth_ || ((_f = refs.selector.current) === null || _f === void 0 ? void 0 : _f.height) === maxHeight_))
|
326
|
+
return;
|
327
|
+
}
|
328
|
+
}
|
329
|
+
}
|
330
|
+
const rootRect_ = refs.root.current.getBoundingClientRect();
|
331
|
+
const selectorRelative_ = {
|
332
|
+
top: (valueNew.top / (rootRect_ === null || rootRect_ === void 0 ? void 0 : rootRect_.height)) * ((_g = refs.canvasMain.current) === null || _g === void 0 ? void 0 : _g.height),
|
333
|
+
left: (valueNew.left / (rootRect_ === null || rootRect_ === void 0 ? void 0 : rootRect_.width)) * ((_h = refs.canvasMain.current) === null || _h === void 0 ? void 0 : _h.width),
|
334
|
+
width: (valueNew.width / (rootRect_ === null || rootRect_ === void 0 ? void 0 : rootRect_.width)) * ((_j = refs.canvasMain.current) === null || _j === void 0 ? void 0 : _j.width),
|
335
|
+
height: (valueNew.height / (rootRect_ === null || rootRect_ === void 0 ? void 0 : rootRect_.height)) * ((_k = refs.canvasMain.current) === null || _k === void 0 ? void 0 : _k.height)
|
336
|
+
};
|
337
|
+
// Update inner or controlled
|
338
|
+
if (!props.hasOwnProperty('selector')) {
|
339
|
+
setSelector(valueNew);
|
340
|
+
setSelectorRelative(selectorRelative_);
|
341
|
+
}
|
342
|
+
if ((0, utils_1.is)('function', onSelectorChange_))
|
343
|
+
onSelectorChange_(selectorRelative_);
|
344
|
+
};
|
345
|
+
react_1.default.useEffect(() => {
|
346
|
+
var _a;
|
347
|
+
const method = (event) => {
|
348
|
+
switch (event.key) {
|
349
|
+
case 'Escape':
|
350
|
+
if (refs.focus.current)
|
351
|
+
setSelector({});
|
352
|
+
break;
|
353
|
+
default:
|
354
|
+
break;
|
355
|
+
}
|
356
|
+
};
|
357
|
+
const onMouseUp = (event) => {
|
358
|
+
setMouseDown(false);
|
359
|
+
refs.previousMouseEvent.current = undefined;
|
360
|
+
};
|
361
|
+
// Move
|
362
|
+
const onMove = (x, y) => {
|
363
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
364
|
+
if (refs.mouseDown.current && refs.previousMouseEvent.current) {
|
365
|
+
const { top: previousTop, left: previousLeft } = refs.mouseDown.current;
|
366
|
+
const rootRect = refs.root.current.getBoundingClientRect();
|
367
|
+
const selectorRect_ = refs.imageSelectorMain.current.getBoundingClientRect();
|
368
|
+
const selectorRect = {};
|
369
|
+
// Normalize relative to root
|
370
|
+
selectorRect.width = selectorRect_.width;
|
371
|
+
selectorRect.height = selectorRect_.height;
|
372
|
+
selectorRect.top = selectorRect_.top - rootRect.top;
|
373
|
+
selectorRect.left = selectorRect_.left - rootRect.left;
|
374
|
+
selectorRect.right = selectorRect.left + selectorRect_.width;
|
375
|
+
selectorRect.bottom = selectorRect.top + selectorRect_.height;
|
376
|
+
if (((_a = refs.mouseDown.current) === null || _a === void 0 ? void 0 : _a.version) === 'make') {
|
377
|
+
const top_ = (0, utils_1.clamp)(y - rootRect.top, 0, rootRect.height);
|
378
|
+
const left_ = (0, utils_1.clamp)(x - rootRect.left, 0, rootRect.width);
|
379
|
+
let top = (0, utils_1.clamp)(top_, 0, previousTop);
|
380
|
+
let left = (0, utils_1.clamp)(left_, 0, previousLeft);
|
381
|
+
let width = Math.abs(left_ - previousLeft);
|
382
|
+
let height = Math.abs(top_ - previousTop);
|
383
|
+
if (refs.aspectRatio.current !== undefined) {
|
384
|
+
if (left < previousLeft) {
|
385
|
+
if (((_b = refs.selector.current) === null || _b === void 0 ? void 0 : _b.left) < previousLeft && left < ((_c = refs.selector.current) === null || _c === void 0 ? void 0 : _c.left) && (top <= 0 || ((_d = refs.selector.current) === null || _d === void 0 ? void 0 : _d.top) + ((_e = refs.selector.current) === null || _e === void 0 ? void 0 : _e.height) >= rootRect.height))
|
386
|
+
return;
|
387
|
+
}
|
388
|
+
if (top < previousTop) {
|
389
|
+
if (((_f = refs.selector.current) === null || _f === void 0 ? void 0 : _f.top) < previousTop && top < ((_g = refs.selector.current) === null || _g === void 0 ? void 0 : _g.top) && (left <= 0 || ((_h = refs.selector.current) === null || _h === void 0 ? void 0 : _h.left) + ((_j = refs.selector.current) === null || _j === void 0 ? void 0 : _j.width) >= rootRect.width))
|
390
|
+
return;
|
391
|
+
}
|
392
|
+
// Max surface
|
393
|
+
if (width + (width / refs.aspectRatio.current) >= height + (height * refs.aspectRatio.current)) {
|
394
|
+
height = width / refs.aspectRatio.current;
|
395
|
+
}
|
396
|
+
else {
|
397
|
+
width = height * refs.aspectRatio.current;
|
398
|
+
}
|
399
|
+
// Moved left
|
400
|
+
if (left < previousLeft) {
|
401
|
+
left = (0, utils_1.clamp)(previousLeft - width, 0, previousLeft);
|
402
|
+
// Update width, height upto the previousLeft
|
403
|
+
width = (0, utils_1.clamp)(width, 0, previousLeft);
|
404
|
+
height = width / refs.aspectRatio.current;
|
405
|
+
}
|
406
|
+
// Moved top
|
407
|
+
if (top < previousTop) {
|
408
|
+
top = (0, utils_1.clamp)(previousTop - height, 0, previousTop);
|
409
|
+
// Update width, height upto the previousTop
|
410
|
+
height = (0, utils_1.clamp)(height, 0, previousTop);
|
411
|
+
width = height * refs.aspectRatio.current;
|
412
|
+
}
|
413
|
+
// Max width
|
414
|
+
if (left + width > rootRect.width) {
|
415
|
+
width = rootRect.width - left;
|
416
|
+
height = width / refs.aspectRatio.current;
|
417
|
+
}
|
418
|
+
// Max height
|
419
|
+
if (top + height > rootRect.height) {
|
420
|
+
height = rootRect.height - top;
|
421
|
+
width = height * refs.aspectRatio.current;
|
422
|
+
}
|
423
|
+
// Min left
|
424
|
+
if (left < previousLeft)
|
425
|
+
left = previousLeft - width;
|
426
|
+
// Min top
|
427
|
+
if (top < previousTop)
|
428
|
+
top = previousTop - height;
|
429
|
+
}
|
430
|
+
onSelectorChange(Object.assign(Object.assign({}, refs.selector.current), { top,
|
431
|
+
left,
|
432
|
+
width,
|
433
|
+
height }));
|
434
|
+
}
|
435
|
+
else if (((_k = refs.mouseDown.current) === null || _k === void 0 ? void 0 : _k.version) === 'move') {
|
436
|
+
const top = y - refs.previousMouseEvent.current.clientY;
|
437
|
+
const left = x - refs.previousMouseEvent.current.clientX;
|
438
|
+
onSelectorChange(Object.assign(Object.assign({}, refs.selector.current), { top: (0, utils_1.clamp)(refs.selector.current.top + top, 0, rootRect.height - selectorRect.height), left: (0, utils_1.clamp)(refs.selector.current.left + left, 0, rootRect.width - selectorRect.width) }));
|
439
|
+
}
|
440
|
+
else if (((_l = refs.mouseDown.current) === null || _l === void 0 ? void 0 : _l.version) === 'top_left') {
|
441
|
+
const incY = y - refs.previousMouseEvent.current.clientY;
|
442
|
+
const incX = x - refs.previousMouseEvent.current.clientX;
|
443
|
+
let top = (0, utils_1.clamp)(selectorRect.top + incY, 0);
|
444
|
+
let left = (0, utils_1.clamp)(selectorRect.left + incX, 0);
|
445
|
+
if ((selectorRect.bottom - top < 0) &&
|
446
|
+
(selectorRect.right - left < 0))
|
447
|
+
refs.mouseDown.current.version = 'bottom_right';
|
448
|
+
else if (selectorRect.bottom - top < 0)
|
449
|
+
refs.mouseDown.current.version = 'bottom_left';
|
450
|
+
else if (selectorRect.right - left < 0)
|
451
|
+
refs.mouseDown.current.version = 'top_right';
|
452
|
+
let width = (0, utils_1.clamp)(selectorRect.right - left, 0);
|
453
|
+
let height = (0, utils_1.clamp)(selectorRect.bottom - top, 0);
|
454
|
+
if (refs.aspectRatio.current !== undefined) {
|
455
|
+
// Left
|
456
|
+
if (left < refs.selector.current.left && refs.selector.current.left < previousLeft && ((_m = refs.selector.current) === null || _m === void 0 ? void 0 : _m.top) === 0)
|
457
|
+
return;
|
458
|
+
// Max surface
|
459
|
+
if (width + (width / refs.aspectRatio.current) >= height + (height * refs.aspectRatio.current)) {
|
460
|
+
height = width / refs.aspectRatio.current;
|
461
|
+
}
|
462
|
+
else {
|
463
|
+
width = height * refs.aspectRatio.current;
|
464
|
+
}
|
465
|
+
// Moved left
|
466
|
+
if (left < previousLeft) {
|
467
|
+
left = (0, utils_1.clamp)(previousLeft - width, 0, previousLeft);
|
468
|
+
// Update width, height upto the previousLeft
|
469
|
+
width = (0, utils_1.clamp)(width, 0, previousLeft);
|
470
|
+
height = width / refs.aspectRatio.current;
|
471
|
+
}
|
472
|
+
// Moved top
|
473
|
+
if (top < previousTop) {
|
474
|
+
top = (0, utils_1.clamp)(previousTop - height, 0, previousTop);
|
475
|
+
// Update width, height upto the previousTop
|
476
|
+
height = (0, utils_1.clamp)(height, 0, previousTop);
|
477
|
+
width = height * refs.aspectRatio.current;
|
478
|
+
}
|
479
|
+
// Max width
|
480
|
+
if (left + width > rootRect.width) {
|
481
|
+
width = rootRect.width - left;
|
482
|
+
height = width / refs.aspectRatio.current;
|
483
|
+
}
|
484
|
+
// Max height
|
485
|
+
if (top + height > rootRect.height) {
|
486
|
+
height = rootRect.height - top;
|
487
|
+
width = height * refs.aspectRatio.current;
|
488
|
+
}
|
489
|
+
// Min left
|
490
|
+
if (left < previousLeft)
|
491
|
+
left = previousLeft - width;
|
492
|
+
// Min top
|
493
|
+
if (top < previousTop)
|
494
|
+
top = previousTop - height;
|
495
|
+
}
|
496
|
+
onSelectorChange(Object.assign(Object.assign({}, refs.selector.current), { top,
|
497
|
+
left,
|
498
|
+
width,
|
499
|
+
height }));
|
500
|
+
}
|
501
|
+
else if (((_o = refs.mouseDown.current) === null || _o === void 0 ? void 0 : _o.version) === 'top_right') {
|
502
|
+
const incY = y - refs.previousMouseEvent.current.clientY;
|
503
|
+
const incX = x - refs.previousMouseEvent.current.clientX;
|
504
|
+
const top = (0, utils_1.clamp)(selectorRect.top + incY, 0);
|
505
|
+
if ((selectorRect.bottom - top < 0) &&
|
506
|
+
(selectorRect.width + incX < 0))
|
507
|
+
refs.mouseDown.current.version = 'bottom_left';
|
508
|
+
else if (selectorRect.bottom - top < 0)
|
509
|
+
refs.mouseDown.current.version = 'bottom_right';
|
510
|
+
else if (selectorRect.width + incX < 0)
|
511
|
+
refs.mouseDown.current.version = 'top_left';
|
512
|
+
let width = (0, utils_1.clamp)(Math.abs(selectorRect.width + incX), 0, rootRect.width - selectorRect.left);
|
513
|
+
let height = (0, utils_1.clamp)(selectorRect.bottom - top, 0);
|
514
|
+
// Top
|
515
|
+
if (refs.aspectRatio.current !== undefined) {
|
516
|
+
// Top
|
517
|
+
if (top < refs.selector.current.top && refs.selector.current.top < previousTop && refs.selector.current.left + refs.selector.current.width >= rootRect.width)
|
518
|
+
return;
|
519
|
+
width = height * refs.aspectRatio.current;
|
520
|
+
height = width / refs.aspectRatio.current;
|
521
|
+
// Max width
|
522
|
+
if (refs.selector.current.left + width > rootRect.width) {
|
523
|
+
width = rootRect.width - refs.selector.current.left;
|
524
|
+
height = width / refs.aspectRatio.current;
|
525
|
+
}
|
526
|
+
// Max height
|
527
|
+
if (refs.selector.current.top + height > rootRect.height) {
|
528
|
+
height = rootRect.height - refs.selector.current.top;
|
529
|
+
width = height * refs.aspectRatio.current;
|
530
|
+
}
|
531
|
+
}
|
532
|
+
onSelectorChange(Object.assign(Object.assign({}, refs.selector.current), { top,
|
533
|
+
width,
|
534
|
+
height }));
|
535
|
+
}
|
536
|
+
else if (((_p = refs.mouseDown.current) === null || _p === void 0 ? void 0 : _p.version) === 'bottom_right') {
|
537
|
+
const incY = y - refs.previousMouseEvent.current.clientY;
|
538
|
+
const incX = x - refs.previousMouseEvent.current.clientX;
|
539
|
+
if ((selectorRect.height + incY < 0) && (selectorRect.width + incX < 0))
|
540
|
+
refs.mouseDown.current.version = 'top_left';
|
541
|
+
else if (selectorRect.height + incY < 0)
|
542
|
+
refs.mouseDown.current.version = 'top_right';
|
543
|
+
else if (selectorRect.width + incX < 0)
|
544
|
+
refs.mouseDown.current.version = 'bottom_left';
|
545
|
+
let width = (0, utils_1.clamp)(Math.abs(selectorRect.width + incX), 0, rootRect.width - selectorRect.left);
|
546
|
+
let height = (0, utils_1.clamp)(Math.abs(selectorRect.height + incY), 0, rootRect.height - selectorRect.top);
|
547
|
+
// Right
|
548
|
+
if (refs.aspectRatio.current !== undefined) {
|
549
|
+
height = width / refs.aspectRatio.current;
|
550
|
+
// Max width
|
551
|
+
if (refs.selector.current.left + width > rootRect.width) {
|
552
|
+
width = rootRect.width - refs.selector.current.left;
|
553
|
+
height = width / refs.aspectRatio.current;
|
554
|
+
}
|
555
|
+
// Max height
|
556
|
+
if (refs.selector.current.top + height > rootRect.height) {
|
557
|
+
height = rootRect.height - refs.selector.current.top;
|
558
|
+
width = height * refs.aspectRatio.current;
|
559
|
+
}
|
560
|
+
width = height * refs.aspectRatio.current;
|
561
|
+
// Max width
|
562
|
+
if (refs.selector.current.left + width > rootRect.width) {
|
563
|
+
width = rootRect.width - refs.selector.current.left;
|
564
|
+
height = width / refs.aspectRatio.current;
|
565
|
+
}
|
566
|
+
// Max height
|
567
|
+
if (refs.selector.current.top + height > rootRect.height) {
|
568
|
+
height = rootRect.height - refs.selector.current.top;
|
569
|
+
width = height * refs.aspectRatio.current;
|
570
|
+
}
|
571
|
+
}
|
572
|
+
onSelectorChange(Object.assign(Object.assign({}, refs.selector.current), { width,
|
573
|
+
height }));
|
574
|
+
}
|
575
|
+
else if (((_q = refs.mouseDown.current) === null || _q === void 0 ? void 0 : _q.version) === 'bottom_left') {
|
576
|
+
const incY = y - refs.previousMouseEvent.current.clientY;
|
577
|
+
const incX = x - refs.previousMouseEvent.current.clientX;
|
578
|
+
const left = (0, utils_1.clamp)(selectorRect.left + incX, 0);
|
579
|
+
if ((selectorRect.height + incY < 0) && (selectorRect.right - left < 0))
|
580
|
+
refs.mouseDown.current.version = 'top_right';
|
581
|
+
else if (selectorRect.height + incY < 0)
|
582
|
+
refs.mouseDown.current.version = 'top_left';
|
583
|
+
else if (selectorRect.right - left < 0)
|
584
|
+
refs.mouseDown.current.version = 'bottom_right';
|
585
|
+
let width = (0, utils_1.clamp)(selectorRect.right - left, 0);
|
586
|
+
let height = (0, utils_1.clamp)(Math.abs(selectorRect.height + incY), 0, rootRect.height - selectorRect.top);
|
587
|
+
// Left
|
588
|
+
if (refs.aspectRatio.current !== undefined) {
|
589
|
+
// Left
|
590
|
+
if (left < refs.selector.current.left && ((_r = refs.selector.current) === null || _r === void 0 ? void 0 : _r.top) + ((_s = refs.selector.current) === null || _s === void 0 ? void 0 : _s.height) >= rootRect.height)
|
591
|
+
return;
|
592
|
+
height = width / refs.aspectRatio.current;
|
593
|
+
// Max width
|
594
|
+
if (refs.selector.current.left + width > rootRect.width) {
|
595
|
+
width = rootRect.width - refs.selector.current.left;
|
596
|
+
height = width / refs.aspectRatio.current;
|
597
|
+
}
|
598
|
+
// Max height
|
599
|
+
if (refs.selector.current.top + height > rootRect.height) {
|
600
|
+
height = rootRect.height - refs.selector.current.top;
|
601
|
+
width = height * refs.aspectRatio.current;
|
602
|
+
}
|
603
|
+
width = height * refs.aspectRatio.current;
|
604
|
+
// Max width
|
605
|
+
if (refs.selector.current.left + width > rootRect.width) {
|
606
|
+
width = rootRect.width - refs.selector.current.left;
|
607
|
+
height = width / refs.aspectRatio.current;
|
608
|
+
}
|
609
|
+
// Max height
|
610
|
+
if (refs.selector.current.top + height > rootRect.height) {
|
611
|
+
height = rootRect.height - refs.selector.current.top;
|
612
|
+
width = height * refs.aspectRatio.current;
|
613
|
+
}
|
614
|
+
}
|
615
|
+
onSelectorChange(Object.assign(Object.assign({}, refs.selector.current), { left,
|
616
|
+
width,
|
617
|
+
height }));
|
618
|
+
}
|
619
|
+
else if (((_t = refs.mouseDown.current) === null || _t === void 0 ? void 0 : _t.version) === 'top') {
|
620
|
+
const inc = y - refs.previousMouseEvent.current.clientY;
|
621
|
+
const top = (0, utils_1.clamp)(refs.selector.current.top + inc, 0);
|
622
|
+
if (refs.selector.current.top <= 0 && top <= 0)
|
623
|
+
return;
|
624
|
+
if (selectorRect.bottom - top < 0)
|
625
|
+
refs.mouseDown.current.version = 'bottom';
|
626
|
+
let width = refs.selector.current.width;
|
627
|
+
let height = (0, utils_1.clamp)(Math.abs(refs.selector.current.height - inc), 0, previousTop - top);
|
628
|
+
if (refs.aspectRatio.current !== undefined) {
|
629
|
+
// Top
|
630
|
+
if (top < refs.selector.current.top && refs.selector.current.top < previousTop && refs.selector.current.left + refs.selector.current.width >= rootRect.width)
|
631
|
+
return;
|
632
|
+
width = height * refs.aspectRatio.current;
|
633
|
+
// Max width
|
634
|
+
if (refs.selector.current.left + width > rootRect.width) {
|
635
|
+
width = rootRect.width - refs.selector.current.left;
|
636
|
+
height = width / refs.aspectRatio.current;
|
637
|
+
}
|
638
|
+
// Max height
|
639
|
+
if (top + height > rootRect.height) {
|
640
|
+
height = rootRect.height - top;
|
641
|
+
width = height * refs.aspectRatio.current;
|
642
|
+
}
|
643
|
+
}
|
644
|
+
onSelectorChange(Object.assign(Object.assign({}, refs.selector.current), { top,
|
645
|
+
width,
|
646
|
+
height }));
|
647
|
+
}
|
648
|
+
else if (((_u = refs.mouseDown.current) === null || _u === void 0 ? void 0 : _u.version) === 'bottom') {
|
649
|
+
const inc = y - refs.previousMouseEvent.current.clientY;
|
650
|
+
if (selectorRect.height + inc < 0)
|
651
|
+
refs.mouseDown.current.version = 'top';
|
652
|
+
let width = refs.selector.current.width;
|
653
|
+
let height = (0, utils_1.clamp)(Math.abs(selectorRect.height + inc), 0, rootRect.height - refs.selector.current.top);
|
654
|
+
if (refs.aspectRatio.current !== undefined) {
|
655
|
+
width = height * refs.aspectRatio.current;
|
656
|
+
// Max height
|
657
|
+
if (refs.selector.current.top + height > rootRect.height) {
|
658
|
+
height = rootRect.height - refs.selector.current.top;
|
659
|
+
width = height * refs.aspectRatio.current;
|
660
|
+
}
|
661
|
+
// Max width
|
662
|
+
if (refs.selector.current.left + width > rootRect.width) {
|
663
|
+
width = rootRect.width - refs.selector.current.left;
|
664
|
+
height = width / refs.aspectRatio.current;
|
665
|
+
}
|
666
|
+
}
|
667
|
+
onSelectorChange(Object.assign(Object.assign({}, refs.selector.current), { width,
|
668
|
+
height }));
|
669
|
+
}
|
670
|
+
else if (((_v = refs.mouseDown.current) === null || _v === void 0 ? void 0 : _v.version) === 'left') {
|
671
|
+
const inc = x - refs.previousMouseEvent.current.clientX;
|
672
|
+
const left = (0, utils_1.clamp)(selectorRect.left + inc, 0);
|
673
|
+
if (selectorRect.right - left < 0)
|
674
|
+
refs.mouseDown.current.version = 'right';
|
675
|
+
let width = (0, utils_1.clamp)(selectorRect.right - left, 0);
|
676
|
+
let height = refs.selector.current.height;
|
677
|
+
if (refs.aspectRatio.current !== undefined) {
|
678
|
+
if (left < refs.selector.current.left && ((_w = refs.selector.current) === null || _w === void 0 ? void 0 : _w.top) + ((_x = refs.selector.current) === null || _x === void 0 ? void 0 : _x.height) >= rootRect.height)
|
679
|
+
return;
|
680
|
+
height = width / refs.aspectRatio.current;
|
681
|
+
// Max width
|
682
|
+
if (refs.selector.current.left + width > rootRect.width) {
|
683
|
+
width = rootRect.width - refs.selector.current.left;
|
684
|
+
height = width / refs.aspectRatio.current;
|
685
|
+
}
|
686
|
+
// Max height
|
687
|
+
if (refs.selector.current.top + height > rootRect.height) {
|
688
|
+
height = rootRect.height - refs.selector.current.top;
|
689
|
+
width = height * refs.aspectRatio.current;
|
690
|
+
}
|
691
|
+
}
|
692
|
+
onSelectorChange(Object.assign(Object.assign({}, refs.selector.current), { left,
|
693
|
+
width,
|
694
|
+
height }));
|
695
|
+
}
|
696
|
+
else if (((_y = refs.mouseDown.current) === null || _y === void 0 ? void 0 : _y.version) === 'right') {
|
697
|
+
const inc = x - refs.previousMouseEvent.current.clientX;
|
698
|
+
if (selectorRect.width + inc < 0)
|
699
|
+
refs.mouseDown.current.version = 'left';
|
700
|
+
let width = (0, utils_1.clamp)(Math.abs(selectorRect.width + inc), 0, rootRect.width - selectorRect.left);
|
701
|
+
let height = refs.selector.current.height;
|
702
|
+
if (refs.aspectRatio.current !== undefined) {
|
703
|
+
height = width / refs.aspectRatio.current;
|
704
|
+
// Max width
|
705
|
+
if (refs.selector.current.left + width > rootRect.width) {
|
706
|
+
width = rootRect.width - refs.selector.current.left;
|
707
|
+
height = width / refs.aspectRatio.current;
|
708
|
+
}
|
709
|
+
// Max height
|
710
|
+
if (refs.selector.current.top + height > rootRect.height) {
|
711
|
+
height = rootRect.height - refs.selector.current.top;
|
712
|
+
width = height * refs.aspectRatio.current;
|
713
|
+
}
|
714
|
+
}
|
715
|
+
onSelectorChange(Object.assign(Object.assign({}, refs.selector.current), { width,
|
716
|
+
height }));
|
717
|
+
}
|
718
|
+
}
|
719
|
+
};
|
720
|
+
// Mouse move
|
721
|
+
const onMouseMove = (event) => {
|
722
|
+
if (refs.mouseDown.current) {
|
723
|
+
const { clientY, clientX } = event;
|
724
|
+
onMove(clientX, clientY);
|
725
|
+
refs.previousMouseEvent.current = event;
|
726
|
+
}
|
727
|
+
};
|
728
|
+
// Touch move
|
729
|
+
const onTouchMove = (event) => {
|
730
|
+
if (refs.mouseDown.current) {
|
731
|
+
const { clientY, clientX } = event.touches[0];
|
732
|
+
onMove(clientX, clientY);
|
733
|
+
refs.previousMouseEvent.current = event;
|
734
|
+
// Normalize for use as a mouseDown value
|
735
|
+
refs.previousMouseEvent.current.clientY = clientY;
|
736
|
+
refs.previousMouseEvent.current.clientX = clientX;
|
737
|
+
}
|
738
|
+
};
|
739
|
+
const rootDocument = (0, utils_1.isEnvironment)('browser') ? (((_a = refs.root.current) === null || _a === void 0 ? void 0 : _a.ownerDocument) || window.document) : undefined;
|
740
|
+
rootDocument.addEventListener('keydown', method);
|
741
|
+
rootDocument.addEventListener('mousemove', onMouseMove);
|
742
|
+
rootDocument.addEventListener('mouseup', onMouseUp);
|
743
|
+
rootDocument.addEventListener('touchmove', onTouchMove, { passive: true });
|
744
|
+
rootDocument.addEventListener('touchend', onMouseUp);
|
745
|
+
return () => {
|
746
|
+
// Clean up
|
747
|
+
rootDocument.removeEventListener('keydown', method);
|
748
|
+
rootDocument.removeEventListener('mousemove', onMouseMove);
|
749
|
+
rootDocument.removeEventListener('mouseup', onMouseUp);
|
750
|
+
rootDocument.removeEventListener('touchmove', onTouchMove);
|
751
|
+
rootDocument.removeEventListener('touchend', onMouseUp);
|
752
|
+
if (refs.image.current) {
|
753
|
+
setImage('');
|
754
|
+
if (rootDocument.body.style.overflow === 'hidden')
|
755
|
+
rootDocument.body.style.removeProperty('overflow');
|
756
|
+
}
|
757
|
+
};
|
758
|
+
}, []);
|
759
|
+
react_1.default.useEffect(() => {
|
760
|
+
if (image_ !== image) {
|
761
|
+
if (image_ instanceof HTMLCanvasElement)
|
762
|
+
setImage(image_);
|
763
|
+
else if ((0, utils_1.is)('string', image_))
|
764
|
+
!refs.dynamicParent.current ? makeImage(image_) : setTimeout(() => makeImage(image_), 140);
|
765
|
+
}
|
766
|
+
}, [image_]);
|
767
|
+
const updateSelector = (selector__ = refs.selector.current, image__ = refs.image.current) => {
|
768
|
+
var _a, _b, _c, _d;
|
769
|
+
if (selector__ !== undefined && image__ !== undefined) {
|
770
|
+
const rootRect = refs.root.current.getBoundingClientRect();
|
771
|
+
const selectorValue = {
|
772
|
+
top: (0, utils_1.clamp)(selector__.top, 0, image__.height),
|
773
|
+
left: (0, utils_1.clamp)(selector__.left, 0, image__.height)
|
774
|
+
};
|
775
|
+
selectorValue.width = (0, utils_1.clamp)((selector__.width || 0), 0, rootRect.width - selectorValue.left);
|
776
|
+
selectorValue.height = (0, utils_1.clamp)((selector__.height || 0), 0, rootRect.height - selectorValue.top);
|
777
|
+
// Aspect ratio
|
778
|
+
if (refs.aspectRatio.current !== undefined) {
|
779
|
+
// Max surface
|
780
|
+
if (selectorValue.width + (selectorValue.width / refs.aspectRatio.current) >= selectorValue.height + (selectorValue.height * refs.aspectRatio.current)) {
|
781
|
+
selectorValue.height = selectorValue.width / refs.aspectRatio.current;
|
782
|
+
}
|
783
|
+
else {
|
784
|
+
selectorValue.width = selectorValue.height * refs.aspectRatio.current;
|
785
|
+
}
|
786
|
+
// Max width
|
787
|
+
if (selectorValue.left + selectorValue.width > rootRect.width) {
|
788
|
+
selectorValue.width = rootRect.width - selectorValue.left;
|
789
|
+
selectorValue.height = selectorValue.width / refs.aspectRatio.current;
|
790
|
+
}
|
791
|
+
// Max height
|
792
|
+
if (selectorValue.top + selectorValue.height > rootRect.height) {
|
793
|
+
selectorValue.height = rootRect.height - selectorValue.top;
|
794
|
+
selectorValue.width = selectorValue.height * refs.aspectRatio.current;
|
795
|
+
}
|
796
|
+
}
|
797
|
+
// Update selector
|
798
|
+
setSelector(selectorValue);
|
799
|
+
// Update selector relative
|
800
|
+
setSelectorRelative({
|
801
|
+
top: (selectorValue.top / (rootRect === null || rootRect === void 0 ? void 0 : rootRect.height)) * ((_a = refs.canvasMain.current) === null || _a === void 0 ? void 0 : _a.height),
|
802
|
+
left: (selectorValue.left / (rootRect === null || rootRect === void 0 ? void 0 : rootRect.width)) * ((_b = refs.canvasMain.current) === null || _b === void 0 ? void 0 : _b.width),
|
803
|
+
width: (selectorValue.width / (rootRect === null || rootRect === void 0 ? void 0 : rootRect.width)) * ((_c = refs.canvasMain.current) === null || _c === void 0 ? void 0 : _c.width),
|
804
|
+
height: (selectorValue.height / (rootRect === null || rootRect === void 0 ? void 0 : rootRect.height)) * ((_d = refs.canvasMain.current) === null || _d === void 0 ? void 0 : _d.height)
|
805
|
+
});
|
806
|
+
}
|
807
|
+
};
|
808
|
+
react_1.default.useEffect(() => {
|
809
|
+
updateSelector();
|
810
|
+
}, [aspectRatio]);
|
811
|
+
react_1.default.useEffect(() => {
|
812
|
+
if (selector_ !== selector)
|
813
|
+
updateSelector(selector_);
|
814
|
+
}, [selector_]);
|
815
|
+
react_1.default.useEffect(() => {
|
816
|
+
if (image) {
|
817
|
+
refs.canvasMain.current.width = image.width;
|
818
|
+
refs.canvasMain.current.height = image.height;
|
819
|
+
refs.canvasMain.current.getContext('2d').drawImage(image, 0, 0), image.width, image.height;
|
820
|
+
refs.canvasImageSelector.current.width = image.width;
|
821
|
+
refs.canvasImageSelector.current.height = image.height;
|
822
|
+
refs.canvasImageSelector.current.getContext('2d').drawImage(image, 0, 0), image.width, image.height;
|
823
|
+
// Update selector
|
824
|
+
updateSelector();
|
825
|
+
}
|
826
|
+
}, [image]);
|
827
|
+
const makeImage = async (value = image) => {
|
828
|
+
var _a;
|
829
|
+
const img = await (0, utils_2.image)(value);
|
830
|
+
const rootDocument = (0, utils_1.isEnvironment)('browser') ? (((_a = refs.root.current) === null || _a === void 0 ? void 0 : _a.ownerDocument) || window.document) : undefined;
|
831
|
+
const canvas = rootDocument.createElement('canvas');
|
832
|
+
const rootRect = refs.root.current.getBoundingClientRect();
|
833
|
+
const aspectRatioImg = img.width / img.height;
|
834
|
+
// width being parent width
|
835
|
+
img.width = rootRect.width;
|
836
|
+
// height keep aspect ratio of the img for the height
|
837
|
+
img.height = img.width / aspectRatioImg;
|
838
|
+
canvas.width = img.width;
|
839
|
+
canvas.height = img.height;
|
840
|
+
canvas.getContext('2d').drawImage(img, 0, 0, img.width, img.height);
|
841
|
+
setImage(canvas);
|
842
|
+
};
|
843
|
+
const onFocus = react_1.default.useCallback((event) => {
|
844
|
+
setFocus(true);
|
845
|
+
if ((0, utils_1.is)('function', onFocus_))
|
846
|
+
onFocus_(event);
|
847
|
+
}, []);
|
848
|
+
const onBlur = react_1.default.useCallback((event) => {
|
849
|
+
setFocus(false);
|
850
|
+
if ((0, utils_1.is)('function', onBlur_))
|
851
|
+
onBlur_(event);
|
852
|
+
}, []);
|
853
|
+
const onTouchStart = react_1.default.useCallback((event) => {
|
854
|
+
if (![
|
855
|
+
refs.imageSelectorMain.current,
|
856
|
+
refs.imageSelector.current,
|
857
|
+
refs.move.current,
|
858
|
+
refs.borderTop.current,
|
859
|
+
refs.borderLeft.current,
|
860
|
+
refs.borderRight.current,
|
861
|
+
refs.borderBottom.current,
|
862
|
+
refs.dotTopLeft.current,
|
863
|
+
refs.dotTopRight.current,
|
864
|
+
refs.dotBottomLeft.current,
|
865
|
+
refs.dotBottomRight.current
|
866
|
+
].includes(event.target)) {
|
867
|
+
const { clientY, clientX } = event.touches[0];
|
868
|
+
const rootRect = refs.root.current.getBoundingClientRect();
|
869
|
+
setMouseDown({
|
870
|
+
version: 'make',
|
871
|
+
top: clientY - rootRect.top,
|
872
|
+
left: clientX - rootRect.left
|
873
|
+
});
|
874
|
+
}
|
875
|
+
}, []);
|
876
|
+
const onMouseDown = react_1.default.useCallback((event) => {
|
877
|
+
if (![
|
878
|
+
refs.imageSelectorMain.current,
|
879
|
+
refs.imageSelector.current,
|
880
|
+
refs.move.current,
|
881
|
+
refs.borderTop.current,
|
882
|
+
refs.borderLeft.current,
|
883
|
+
refs.borderRight.current,
|
884
|
+
refs.borderBottom.current,
|
885
|
+
refs.dotTopLeft.current,
|
886
|
+
refs.dotTopRight.current,
|
887
|
+
refs.dotBottomLeft.current,
|
888
|
+
refs.dotBottomRight.current
|
889
|
+
].includes(event.target)) {
|
890
|
+
const { clientY, clientX } = event;
|
891
|
+
const rootRect = refs.root.current.getBoundingClientRect();
|
892
|
+
setMouseDown({
|
893
|
+
version: 'make',
|
894
|
+
top: clientY - rootRect.top,
|
895
|
+
left: clientX - rootRect.left
|
896
|
+
});
|
897
|
+
}
|
898
|
+
}, []);
|
899
|
+
const onTouchStartSelector = react_1.default.useCallback((event) => {
|
900
|
+
const { clientY, clientX } = event.touches[0];
|
901
|
+
const rootRect = refs.root.current.getBoundingClientRect();
|
902
|
+
setMouseDown({
|
903
|
+
version: 'move',
|
904
|
+
top: clientY - rootRect.top,
|
905
|
+
left: clientX - rootRect.left
|
906
|
+
});
|
907
|
+
}, []);
|
908
|
+
const onMouseDownSelector = react_1.default.useCallback((event) => {
|
909
|
+
const { clientY, clientX } = event;
|
910
|
+
const rootRect = refs.root.current.getBoundingClientRect();
|
911
|
+
setMouseDown({
|
912
|
+
version: 'move',
|
913
|
+
top: clientY - rootRect.top,
|
914
|
+
left: clientX - rootRect.left
|
915
|
+
});
|
916
|
+
}, []);
|
917
|
+
const onTouchStartBorder = (version) => (event) => {
|
918
|
+
var _a, _b, _c, _d;
|
919
|
+
setMouseDown({
|
920
|
+
version,
|
921
|
+
top: ((_a = refs.selector.current) === null || _a === void 0 ? void 0 : _a.top) + ((_b = refs.selector.current) === null || _b === void 0 ? void 0 : _b.height),
|
922
|
+
left: ((_c = refs.selector.current) === null || _c === void 0 ? void 0 : _c.left) + ((_d = refs.selector.current) === null || _d === void 0 ? void 0 : _d.width)
|
923
|
+
});
|
924
|
+
};
|
925
|
+
const onMouseDownBorder = (version) => (event) => {
|
926
|
+
var _a, _b, _c, _d;
|
927
|
+
setMouseDown({
|
928
|
+
version,
|
929
|
+
top: ((_a = refs.selector.current) === null || _a === void 0 ? void 0 : _a.top) + ((_b = refs.selector.current) === null || _b === void 0 ? void 0 : _b.height),
|
930
|
+
left: ((_c = refs.selector.current) === null || _c === void 0 ? void 0 : _c.left) + ((_d = refs.selector.current) === null || _d === void 0 ? void 0 : _d.width)
|
931
|
+
});
|
932
|
+
};
|
933
|
+
const rect = (_a = refs.root.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
934
|
+
return ((0, jsx_runtime_1.jsxs)(Component, Object.assign({ ref: item => {
|
935
|
+
if (ref) {
|
936
|
+
if ((0, utils_1.is)('function', ref))
|
937
|
+
ref(item);
|
938
|
+
else
|
939
|
+
ref.current = item;
|
940
|
+
}
|
941
|
+
refs.root.current = item;
|
942
|
+
}, tabIndex: 0, onFocus: onFocus, onBlur: onBlur, onTouchStart: onTouchStart, onMouseDown: onMouseDown, className: (0, style_react_1.classNames)([
|
943
|
+
(0, utils_2.staticClassName)('ImageCrop', theme) && [
|
944
|
+
'onesy-ImageCrop-root'
|
945
|
+
],
|
946
|
+
className,
|
947
|
+
classes.root
|
948
|
+
]) }, other, { children: [(0, jsx_runtime_1.jsx)("canvas", { ref: refs.canvasMain, className: (0, style_react_1.classNames)([
|
949
|
+
(0, utils_2.staticClassName)('ImageCrop', theme) && [
|
950
|
+
'onesy-ImageCrop-canvas',
|
951
|
+
'onesy-ImageCrop-canvas-main'
|
952
|
+
],
|
953
|
+
classes.canvas,
|
954
|
+
classes.canvas_main
|
955
|
+
]) }), (0, jsx_runtime_1.jsx)("div", { className: (0, style_react_1.classNames)([
|
956
|
+
(0, utils_2.staticClassName)('ImageCrop', theme) && [
|
957
|
+
'onesy-ImageCrop-background'
|
958
|
+
],
|
959
|
+
classes.background,
|
960
|
+
image && classes.background_in
|
961
|
+
]) }), (0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ open: mouseDown && ((selector === null || selector === void 0 ? void 0 : selector.width) + (selector === null || selector === void 0 ? void 0 : selector.height) > 0), label: `${Math.round((selectorRelative === null || selectorRelative === void 0 ? void 0 : selectorRelative.width) || 0)} x ${Math.round((selectorRelative === null || selectorRelative === void 0 ? void 0 : selectorRelative.height) || 0)}`, position: 'bottom' }, TooltipProps, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ ref: refs.imageSelectorMain, className: (0, style_react_1.classNames)([
|
962
|
+
(0, utils_2.staticClassName)('ImageCrop', theme) && [
|
963
|
+
'onesy-ImageCrop-image-selector-main'
|
964
|
+
],
|
965
|
+
classes.imageSelector_main,
|
966
|
+
selector && classes.imageSelector_main_in
|
967
|
+
]), style: Object.assign({}, selector) }, { children: [(0, jsx_runtime_1.jsx)("div", { ref: refs.move, onTouchStart: onTouchStartSelector, onMouseDown: onMouseDownSelector, className: (0, style_react_1.classNames)([
|
968
|
+
(0, utils_2.staticClassName)('ImageCrop', theme) && [
|
969
|
+
'onesy-ImageCrop-move'
|
970
|
+
],
|
971
|
+
classes.move
|
972
|
+
]) }), gridLines && (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { className: (0, style_react_1.classNames)([
|
973
|
+
(0, utils_2.staticClassName)('ImageCrop', theme) && [
|
974
|
+
'onesy-ImageCrop-grid-line',
|
975
|
+
'onesy-ImageCrop-grid-line-top-start'
|
976
|
+
],
|
977
|
+
classes.grid_line,
|
978
|
+
classes.grid_line_top_start
|
979
|
+
]) }), (0, jsx_runtime_1.jsx)("div", { className: (0, style_react_1.classNames)([
|
980
|
+
(0, utils_2.staticClassName)('ImageCrop', theme) && [
|
981
|
+
'onesy-ImageCrop-grid-line',
|
982
|
+
'onesy-ImageCrop-grid-line-top-end'
|
983
|
+
],
|
984
|
+
classes.grid_line,
|
985
|
+
classes.grid_line_top_end
|
986
|
+
]) }), (0, jsx_runtime_1.jsx)("div", { className: (0, style_react_1.classNames)([
|
987
|
+
(0, utils_2.staticClassName)('ImageCrop', theme) && [
|
988
|
+
'onesy-ImageCrop-grid-line',
|
989
|
+
'onesy-ImageCrop-grid-line-left-start'
|
990
|
+
],
|
991
|
+
classes.grid_line,
|
992
|
+
classes.grid_line_left_start
|
993
|
+
]) }), (0, jsx_runtime_1.jsx)("div", { className: (0, style_react_1.classNames)([
|
994
|
+
(0, utils_2.staticClassName)('ImageCrop', theme) && [
|
995
|
+
'onesy-ImageCrop-grid-line',
|
996
|
+
'onesy-ImageCrop-grid-line-left-end'
|
997
|
+
],
|
998
|
+
classes.grid_line,
|
999
|
+
classes.grid_line_left_end
|
1000
|
+
]) })] }), (0, jsx_runtime_1.jsx)("div", { ref: refs.dotTopLeft, onTouchStart: onTouchStartBorder('top_left'), onMouseDown: onMouseDownBorder('top_left'), className: (0, style_react_1.classNames)([
|
1001
|
+
(0, utils_2.staticClassName)('ImageCrop', theme) && [
|
1002
|
+
'onesy-ImageCrop-dot',
|
1003
|
+
'onesy-ImageCrop-dot-top-left'
|
1004
|
+
],
|
1005
|
+
classes.dot,
|
1006
|
+
classes.dot_top_left
|
1007
|
+
]) }), (0, jsx_runtime_1.jsx)("div", { ref: refs.dotTopRight, onTouchStart: onTouchStartBorder('top_right'), onMouseDown: onMouseDownBorder('top_right'), className: (0, style_react_1.classNames)([
|
1008
|
+
(0, utils_2.staticClassName)('ImageCrop', theme) && [
|
1009
|
+
'onesy-ImageCrop-dot',
|
1010
|
+
'onesy-ImageCrop-dot-top-right'
|
1011
|
+
],
|
1012
|
+
classes.dot,
|
1013
|
+
classes.dot_top_right
|
1014
|
+
]) }), (0, jsx_runtime_1.jsx)("div", { ref: refs.dotBottomLeft, onTouchStart: onTouchStartBorder('bottom_left'), onMouseDown: onMouseDownBorder('bottom_left'), className: (0, style_react_1.classNames)([
|
1015
|
+
(0, utils_2.staticClassName)('ImageCrop', theme) && [
|
1016
|
+
'onesy-ImageCrop-dot',
|
1017
|
+
'onesy-ImageCrop-dot-bottom-left'
|
1018
|
+
],
|
1019
|
+
classes.dot,
|
1020
|
+
classes.dot_bottom_left
|
1021
|
+
]) }), (0, jsx_runtime_1.jsx)("div", { ref: refs.dotBottomRight, onTouchStart: onTouchStartBorder('bottom_right'), onMouseDown: onMouseDownBorder('bottom_right'), className: (0, style_react_1.classNames)([
|
1022
|
+
(0, utils_2.staticClassName)('ImageCrop', theme) && [
|
1023
|
+
'onesy-ImageCrop-dot',
|
1024
|
+
'onesy-ImageCrop-dot-bottom-right'
|
1025
|
+
],
|
1026
|
+
classes.dot,
|
1027
|
+
classes.dot_bottom_right
|
1028
|
+
]) }), (0, jsx_runtime_1.jsx)("div", { ref: refs.borderTop, onTouchStart: onTouchStartBorder('top'), onMouseDown: onMouseDownBorder('top'), className: (0, style_react_1.classNames)([
|
1029
|
+
(0, utils_2.staticClassName)('ImageCrop', theme) && [
|
1030
|
+
'onesy-ImageCrop-border',
|
1031
|
+
'onesy-ImageCrop-border-top'
|
1032
|
+
],
|
1033
|
+
classes.border,
|
1034
|
+
classes.border_top
|
1035
|
+
]) }), (0, jsx_runtime_1.jsx)("div", { ref: refs.borderLeft, onTouchStart: onTouchStartBorder('left'), onMouseDown: onMouseDownBorder('left'), className: (0, style_react_1.classNames)([
|
1036
|
+
(0, utils_2.staticClassName)('ImageCrop', theme) && [
|
1037
|
+
'onesy-ImageCrop-border',
|
1038
|
+
'onesy-ImageCrop-border-left'
|
1039
|
+
],
|
1040
|
+
classes.border,
|
1041
|
+
classes.border_left
|
1042
|
+
]) }), (0, jsx_runtime_1.jsx)("div", { ref: refs.borderRight, onTouchStart: onTouchStartBorder('right'), onMouseDown: onMouseDownBorder('right'), className: (0, style_react_1.classNames)([
|
1043
|
+
(0, utils_2.staticClassName)('ImageCrop', theme) && [
|
1044
|
+
'onesy-ImageCrop-border',
|
1045
|
+
'onesy-ImageCrop-border-right'
|
1046
|
+
],
|
1047
|
+
classes.border,
|
1048
|
+
classes.border_right
|
1049
|
+
]) }), (0, jsx_runtime_1.jsx)("div", { ref: refs.borderBottom, onTouchStart: onTouchStartBorder('bottom'), onMouseDown: onMouseDownBorder('bottom'), className: (0, style_react_1.classNames)([
|
1050
|
+
(0, utils_2.staticClassName)('ImageCrop', theme) && [
|
1051
|
+
'onesy-ImageCrop-border',
|
1052
|
+
'onesy-ImageCrop-border-bottom'
|
1053
|
+
],
|
1054
|
+
classes.border,
|
1055
|
+
classes.border_bottom
|
1056
|
+
]) })] })) })), (0, jsx_runtime_1.jsx)("div", Object.assign({ ref: refs.imageSelector, className: (0, style_react_1.classNames)([
|
1057
|
+
(0, utils_2.staticClassName)('ImageCrop', theme) && [
|
1058
|
+
'onesy-ImageCrop-image-selector'
|
1059
|
+
],
|
1060
|
+
classes.imageSelector
|
1061
|
+
]), style: Object.assign({}, selector) }, { children: (0, jsx_runtime_1.jsx)("canvas", { ref: refs.canvasImageSelector, className: (0, style_react_1.classNames)([
|
1062
|
+
(0, utils_2.staticClassName)('ImageCrop', theme) && [
|
1063
|
+
'onesy-ImageCrop-canvas',
|
1064
|
+
'onesy-ImageCrop-canvas-image-selector'
|
1065
|
+
],
|
1066
|
+
classes.canvas,
|
1067
|
+
classes.canvas_imageSelector
|
1068
|
+
]), width: (image === null || image === void 0 ? void 0 : image.width) || 0, height: (image === null || image === void 0 ? void 0 : image.height) || 0, style: {
|
1069
|
+
top: `${((selector === null || selector === void 0 ? void 0 : selector.top) || 0) * -1}px`,
|
1070
|
+
left: `${((selector === null || selector === void 0 ? void 0 : selector.left) || 0) * -1}px`,
|
1071
|
+
width: rect === null || rect === void 0 ? void 0 : rect.width,
|
1072
|
+
height: rect === null || rect === void 0 ? void 0 : rect.height
|
1073
|
+
} }) }))] })));
|
1074
|
+
});
|
1075
|
+
ImageCrop.displayName = 'onesy-ImageCrop';
|
1076
|
+
exports.default = ImageCrop;
|