@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
package/Chart/Chart.js
ADDED
@@ -0,0 +1,1190 @@
|
|
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 Surface_1 = __importDefault(require("../Surface"));
|
22
|
+
const Line_1 = __importDefault(require("../Line"));
|
23
|
+
const Type_1 = __importDefault(require("../Type"));
|
24
|
+
const Path_1 = __importDefault(require("../Path"));
|
25
|
+
const Append_1 = __importDefault(require("../Append"));
|
26
|
+
const Grow_1 = __importDefault(require("../Grow"));
|
27
|
+
const useMediaQuery_1 = __importDefault(require("../useMediaQuery"));
|
28
|
+
const utils_2 = require("../utils");
|
29
|
+
const useStyle = (0, style_react_1.style)(theme => ({
|
30
|
+
root: {
|
31
|
+
width: '100%',
|
32
|
+
'&.onesy-Surface-root': {
|
33
|
+
background: 'transparent'
|
34
|
+
}
|
35
|
+
},
|
36
|
+
additionalLines: {
|
37
|
+
pointerEvents: 'none'
|
38
|
+
},
|
39
|
+
append_wrapper: {
|
40
|
+
userSelect: 'none',
|
41
|
+
pointerEvents: 'none',
|
42
|
+
zIndex: theme.z_index.tooltip
|
43
|
+
},
|
44
|
+
wrapper: {
|
45
|
+
position: 'relative',
|
46
|
+
height: '400px',
|
47
|
+
width: '100%',
|
48
|
+
maxWidth: '1000px'
|
49
|
+
},
|
50
|
+
wrapper_label_x: {
|
51
|
+
margin: '0 0 30px 0'
|
52
|
+
},
|
53
|
+
wrapper_label_y: {
|
54
|
+
margin: '0 0 0 40px'
|
55
|
+
},
|
56
|
+
wrapper_labels: {
|
57
|
+
margin: '0 0 30px 40px'
|
58
|
+
},
|
59
|
+
wrapper_name_x: {
|
60
|
+
margin: '0 0 60px 0'
|
61
|
+
},
|
62
|
+
wrapper_name_y: {
|
63
|
+
margin: '0 0 0 70px'
|
64
|
+
},
|
65
|
+
wrapper_names: {
|
66
|
+
margin: '0 0 60px 70px'
|
67
|
+
},
|
68
|
+
legend_offset_labels_y: {
|
69
|
+
paddingLeft: theme.methods.space.value(5, 'px')
|
70
|
+
},
|
71
|
+
legend_offset_names_y: {
|
72
|
+
paddingLeft: theme.methods.space.value(9, 'px')
|
73
|
+
},
|
74
|
+
svg: {
|
75
|
+
position: 'relative',
|
76
|
+
touchAction: 'none',
|
77
|
+
userSelect: 'none',
|
78
|
+
'& path, & circle, & rect, & g': {
|
79
|
+
transition: theme.methods.transitions.make('opacity', { duration: 'xs' })
|
80
|
+
}
|
81
|
+
},
|
82
|
+
header: {
|
83
|
+
width: '100%',
|
84
|
+
marginBottom: '24px'
|
85
|
+
},
|
86
|
+
subtitle: {
|
87
|
+
opacity: '0.74'
|
88
|
+
},
|
89
|
+
append: {
|
90
|
+
padding: `${theme.methods.space.value(1.5, 'px')} ${theme.methods.space.value(2.5, 'px')}`,
|
91
|
+
borderRadius: theme.methods.shape.radius.value(1.5, 'px')
|
92
|
+
},
|
93
|
+
name: {
|
94
|
+
position: 'absolute',
|
95
|
+
userSelect: 'none'
|
96
|
+
},
|
97
|
+
name_x: {
|
98
|
+
bottom: '-61px',
|
99
|
+
left: '50%',
|
100
|
+
transform: 'translateX(-50%)'
|
101
|
+
},
|
102
|
+
name_y: {
|
103
|
+
left: '-87px',
|
104
|
+
top: '50%',
|
105
|
+
transform: 'translateY(-50%) rotate(-90deg)'
|
106
|
+
},
|
107
|
+
labels: {
|
108
|
+
position: 'absolute',
|
109
|
+
userSelect: 'none'
|
110
|
+
},
|
111
|
+
labels_x: {
|
112
|
+
top: 'calc(100% + 12px)',
|
113
|
+
left: '0',
|
114
|
+
width: '100%'
|
115
|
+
},
|
116
|
+
labels_y: {
|
117
|
+
top: '0',
|
118
|
+
right: 'calc(100% + 12px)',
|
119
|
+
height: '100%'
|
120
|
+
},
|
121
|
+
label: {
|
122
|
+
position: 'absolute',
|
123
|
+
whiteSpace: 'nowrap'
|
124
|
+
},
|
125
|
+
label_x: {
|
126
|
+
transform: 'translateX(-50%)',
|
127
|
+
top: '0'
|
128
|
+
},
|
129
|
+
label_y: {
|
130
|
+
transform: 'translateY(50%)',
|
131
|
+
right: '0'
|
132
|
+
},
|
133
|
+
marks: {
|
134
|
+
position: 'absolute'
|
135
|
+
},
|
136
|
+
marks_x: {
|
137
|
+
top: 'calc(100% + 0px)',
|
138
|
+
left: '0',
|
139
|
+
width: '100%'
|
140
|
+
},
|
141
|
+
marks_y: {
|
142
|
+
top: '0',
|
143
|
+
right: 'calc(100% + 0px)',
|
144
|
+
height: '100%'
|
145
|
+
},
|
146
|
+
mark: {
|
147
|
+
position: 'absolute'
|
148
|
+
},
|
149
|
+
mark_x: {
|
150
|
+
width: '1px',
|
151
|
+
height: '7px',
|
152
|
+
top: '0',
|
153
|
+
background: 'currentColor'
|
154
|
+
},
|
155
|
+
mark_y: {
|
156
|
+
width: '7px',
|
157
|
+
height: '1px',
|
158
|
+
right: '0',
|
159
|
+
background: 'currentColor'
|
160
|
+
},
|
161
|
+
grids: {
|
162
|
+
position: 'absolute',
|
163
|
+
width: '100%',
|
164
|
+
height: '100%'
|
165
|
+
},
|
166
|
+
grids_x: {
|
167
|
+
top: '0',
|
168
|
+
left: '0'
|
169
|
+
},
|
170
|
+
grids_y: {
|
171
|
+
top: '0',
|
172
|
+
left: '0'
|
173
|
+
},
|
174
|
+
grid: {
|
175
|
+
position: 'absolute',
|
176
|
+
width: '100%',
|
177
|
+
height: '100%',
|
178
|
+
opacity: theme.palette.light ? '0.07' : '0.14'
|
179
|
+
},
|
180
|
+
grid_x: {
|
181
|
+
width: '1px',
|
182
|
+
background: 'currentColor'
|
183
|
+
},
|
184
|
+
grid_y: {
|
185
|
+
height: '1px',
|
186
|
+
background: 'currentColor'
|
187
|
+
},
|
188
|
+
border: {
|
189
|
+
position: 'absolute',
|
190
|
+
background: 'currentColor'
|
191
|
+
},
|
192
|
+
borderX: {
|
193
|
+
height: '1px',
|
194
|
+
width: 'calc(100% + 1px)',
|
195
|
+
left: '0'
|
196
|
+
},
|
197
|
+
borderTop: {
|
198
|
+
top: '0'
|
199
|
+
},
|
200
|
+
borderBottom: {
|
201
|
+
bottom: '0'
|
202
|
+
},
|
203
|
+
borderY: {
|
204
|
+
width: '1px',
|
205
|
+
height: 'calc(100% + 1px)',
|
206
|
+
top: '-1px'
|
207
|
+
},
|
208
|
+
borderStart: {
|
209
|
+
insetInlineStart: '0'
|
210
|
+
},
|
211
|
+
borderLeft: {
|
212
|
+
left: '0'
|
213
|
+
},
|
214
|
+
borderEnd: {
|
215
|
+
insetInlineEnd: '0'
|
216
|
+
},
|
217
|
+
borderRight: {
|
218
|
+
right: '0'
|
219
|
+
},
|
220
|
+
point_visibility_hover: {
|
221
|
+
opacity: '0',
|
222
|
+
transition: theme.methods.transitions.make('opacity', { duration: 'xxs' }),
|
223
|
+
'&:hover': {
|
224
|
+
opacity: '1'
|
225
|
+
}
|
226
|
+
},
|
227
|
+
point_visibility_visible: {
|
228
|
+
opacity: '1'
|
229
|
+
},
|
230
|
+
point_active: {
|
231
|
+
opacity: '1'
|
232
|
+
},
|
233
|
+
point_visibility_hidden: {
|
234
|
+
opacity: '0',
|
235
|
+
pointerEvents: 'none'
|
236
|
+
},
|
237
|
+
// Legend
|
238
|
+
legend: {},
|
239
|
+
legend_position_top: {
|
240
|
+
marginBottom: '16px'
|
241
|
+
},
|
242
|
+
legend_position_bottom: {
|
243
|
+
marginTop: '16px'
|
244
|
+
},
|
245
|
+
legend_item: {
|
246
|
+
userSelect: 'none'
|
247
|
+
},
|
248
|
+
legend_item_manage_visibility: {
|
249
|
+
cursor: 'pointer',
|
250
|
+
transition: theme.methods.transitions.make('opacity', { duration: 'xs' })
|
251
|
+
},
|
252
|
+
legend_item_hidden: {
|
253
|
+
opacity: '0.4'
|
254
|
+
},
|
255
|
+
legend_icon: {
|
256
|
+
width: '10px',
|
257
|
+
height: '10px',
|
258
|
+
borderRadius: theme.methods.shape.radius.value(40, 'px'),
|
259
|
+
boxSizing: 'border-box'
|
260
|
+
},
|
261
|
+
append_icon: {
|
262
|
+
width: '8px',
|
263
|
+
height: '8px',
|
264
|
+
borderRadius: theme.methods.shape.radius.value(40, 'px'),
|
265
|
+
boxSizing: 'border-box'
|
266
|
+
},
|
267
|
+
// Guideline
|
268
|
+
guidelines: {
|
269
|
+
stroke: 'currentColor',
|
270
|
+
strokeDasharray: '4',
|
271
|
+
opacity: '0.44',
|
272
|
+
pointerEvents: 'none'
|
273
|
+
}
|
274
|
+
}), { name: 'onesy-Chart' });
|
275
|
+
const Chart = react_1.default.forwardRef((props_, ref) => {
|
276
|
+
var _a, _b, _c, _d;
|
277
|
+
const theme = (0, style_react_1.useOnesyTheme)();
|
278
|
+
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.onesyChart) === null || _g === void 0 ? void 0 : _g.props) === null || _h === void 0 ? void 0 : _h.default), props_)); }, [props_]);
|
279
|
+
const Line = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Line) || Line_1.default; }, [theme]);
|
280
|
+
const Surface = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Surface) || Surface_1.default; }, [theme]);
|
281
|
+
const Type = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Type) || Type_1.default; }, [theme]);
|
282
|
+
const Path = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Path) || Path_1.default; }, [theme]);
|
283
|
+
const Append = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Append) || Append_1.default; }, [theme]);
|
284
|
+
const Grow = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Grow) || Grow_1.default; }, [theme]);
|
285
|
+
const { tonal = true, color = 'primary', title, subtitle,
|
286
|
+
// Values
|
287
|
+
values,
|
288
|
+
// Pre
|
289
|
+
pre,
|
290
|
+
// Elements
|
291
|
+
elements,
|
292
|
+
// Names
|
293
|
+
names, nameX: nameX_, nameY: nameY_,
|
294
|
+
// Tooltip
|
295
|
+
tooltip: tooltip_, tooltipIndividually: tooltipIndividually_, tooltipCloseOnMouseLeave: tooltipCloseOnMouseLeave_, elementTooltip: elementTooltip_,
|
296
|
+
// Guideline
|
297
|
+
guidelines: guidelines_, guidelinesAppend: guidelinesAppend_, guidelinesDisplayInactive: guidelinesDisplayInactive_,
|
298
|
+
// Additional lines
|
299
|
+
additionalLines: additionalLines__,
|
300
|
+
// Legend
|
301
|
+
legend: legend___, legendManageVisibility = true, legendPosition = 'bottom',
|
302
|
+
// Animation
|
303
|
+
animate: animate_, animateTimeout: animateTimeout_,
|
304
|
+
// Labels
|
305
|
+
labels: labels___, labelsX: labelsX_, labelsY: labelsY_, labelDecimalPlaces: labelDecimalPlaces_, labelsAutoNumber: labelsAutoNumber_, labelsYAutoNumber: labelsYAutoNumber_, labelsXAutoNumber: labelsXAutoNumber_,
|
306
|
+
// Marks
|
307
|
+
marks: marks___, marksX: marksX_, marksY: marksY_, marksAutoNumber: marksAutoNumber_, marksYAutoNumber: marksYAutoNumber_, marksXAutoNumber: marksXAutoNumber_,
|
308
|
+
// Grid
|
309
|
+
grid: grid___, gridX: gridX_, gridY: gridY_, gridAutoNumber: gridAutoNumber_, gridYAutoNumber: gridYAutoNumber_, gridXAutoNumber: gridXAutoNumber_,
|
310
|
+
// Points
|
311
|
+
points: points___, pointsVisibility: pointsVisibility_,
|
312
|
+
// Borders
|
313
|
+
borders: borders_ = true, borderStart: borderStart_ = false, borderLeft: borderLeft_ = true, borderEnd: borderEnd_ = false, borderRight: borderRight_ = false, borderTop: borderTop_ = false, borderBottom: borderBottom_ = true,
|
314
|
+
// Min, max
|
315
|
+
minX: minX_, maxX: maxX_, minY: minY_, maxY: maxY_, minMaxPadding: minMaxPadding__, minPadding: minPadding__, maxPadding: maxPadding__, minPaddingX: minPaddingX__, minPaddingY: minPaddingY__, maxPaddingX: maxPaddingX__, maxPaddingY: maxPaddingY__, noMain, tooltipRender, tooltipGroupRender, labelRender, labelResolve, onUpdateRects, Component = 'div', SvgProps, TypeProps, TitleProps, SubtitleProps, PointsProps, PointProps, HeaderProps, AppendProps, AdditionalLineProps, AdditionalLinesProps, LegendProps, LegendItemProps, GuidelineProps, WrapperProps, className, children } = props, other = __rest(props, ["tonal", "color", "title", "subtitle", "values", "pre", "elements", "names", "nameX", "nameY", "tooltip", "tooltipIndividually", "tooltipCloseOnMouseLeave", "elementTooltip", "guidelines", "guidelinesAppend", "guidelinesDisplayInactive", "additionalLines", "legend", "legendManageVisibility", "legendPosition", "animate", "animateTimeout", "labels", "labelsX", "labelsY", "labelDecimalPlaces", "labelsAutoNumber", "labelsYAutoNumber", "labelsXAutoNumber", "marks", "marksX", "marksY", "marksAutoNumber", "marksYAutoNumber", "marksXAutoNumber", "grid", "gridX", "gridY", "gridAutoNumber", "gridYAutoNumber", "gridXAutoNumber", "points", "pointsVisibility", "borders", "borderStart", "borderLeft", "borderEnd", "borderRight", "borderTop", "borderBottom", "minX", "maxX", "minY", "maxY", "minMaxPadding", "minPadding", "maxPadding", "minPaddingX", "minPaddingY", "maxPaddingX", "maxPaddingY", "noMain", "tooltipRender", "tooltipGroupRender", "labelRender", "labelResolve", "onUpdateRects", "Component", "SvgProps", "TypeProps", "TitleProps", "SubtitleProps", "PointsProps", "PointProps", "HeaderProps", "AppendProps", "AdditionalLineProps", "AdditionalLinesProps", "LegendProps", "LegendItemProps", "GuidelineProps", "WrapperProps", "className", "children"]);
|
316
|
+
const { classes } = useStyle();
|
317
|
+
const refs = {
|
318
|
+
root: react_1.default.useRef(undefined),
|
319
|
+
wrapper: react_1.default.useRef(undefined),
|
320
|
+
svg: react_1.default.useRef(undefined),
|
321
|
+
defs: react_1.default.useRef(undefined),
|
322
|
+
minMax: react_1.default.useRef(undefined),
|
323
|
+
rects: react_1.default.useRef(undefined),
|
324
|
+
guidelines: react_1.default.useRef(undefined),
|
325
|
+
guidelinesIn: react_1.default.useRef(undefined),
|
326
|
+
guidelinesPosition: react_1.default.useRef(undefined),
|
327
|
+
guidelinesAppend: react_1.default.useRef(undefined),
|
328
|
+
hover: react_1.default.useRef(undefined),
|
329
|
+
allValues: react_1.default.useRef([]),
|
330
|
+
values: react_1.default.useRef([]),
|
331
|
+
visible: react_1.default.useRef([]),
|
332
|
+
appendStyle: react_1.default.useRef({}),
|
333
|
+
theme: react_1.default.useRef([])
|
334
|
+
};
|
335
|
+
const keys = react_1.default.useMemo(() => {
|
336
|
+
const result = [];
|
337
|
+
const items = [nameX_, nameY_, tooltip_, tooltipIndividually_, tooltipCloseOnMouseLeave_, elementTooltip_, guidelines_, guidelinesAppend_, guidelinesDisplayInactive_, animate_, animateTimeout_, legend___, labels___, labelsX_, labelsY_, labelDecimalPlaces_, labelsAutoNumber_, labelsYAutoNumber_, labelsXAutoNumber_, marks___, marksX_, marksY_, marksAutoNumber_, marksYAutoNumber_, marksXAutoNumber_, grid___, gridX_, gridY_, gridAutoNumber_, gridYAutoNumber_, gridXAutoNumber_, points___, pointsVisibility_,];
|
338
|
+
items.forEach(item => {
|
339
|
+
if ((0, utils_1.is)('object', item))
|
340
|
+
Object.keys(item).filter(key => theme.breakpoints.media[key]).forEach(key => result.push(key));
|
341
|
+
});
|
342
|
+
return (0, utils_1.unique)(result);
|
343
|
+
}, [nameX_, nameY_, tooltip_, tooltipIndividually_, tooltipCloseOnMouseLeave_, elementTooltip_, guidelines_, guidelinesAppend_, guidelinesDisplayInactive_, animate_, animateTimeout_, legend___, labels___, labelsX_, labelsY_, labelDecimalPlaces_, labelsAutoNumber_, labelsYAutoNumber_, labelsXAutoNumber_, marks___, marksX_, marksY_, marksAutoNumber_, marksYAutoNumber_, marksXAutoNumber_, grid___, gridX_, gridY_, gridAutoNumber_, gridYAutoNumber_, gridXAutoNumber_, points___, pointsVisibility_, borders_, borderStart_, borderLeft_, borderEnd_, borderRight_, borderTop_, borderBottom_, minX_, maxX_, minY_, maxY_, minMaxPadding__, minPadding__, maxPadding__, minPaddingX__, minPaddingY__, maxPaddingX__, maxPaddingY__]);
|
344
|
+
const breakpoints = {};
|
345
|
+
keys.forEach(key => {
|
346
|
+
breakpoints[key] = (0, useMediaQuery_1.default)(theme.breakpoints.media[key], { element: refs.root.current });
|
347
|
+
});
|
348
|
+
const nameX = (0, utils_2.valueBreakpoints)(nameX_, undefined, breakpoints, theme);
|
349
|
+
const nameY = (0, utils_2.valueBreakpoints)(nameY_, undefined, breakpoints, theme);
|
350
|
+
const tooltip = (0, utils_2.valueBreakpoints)(tooltip_, true, breakpoints, theme);
|
351
|
+
const tooltipIndividually = (0, utils_2.valueBreakpoints)(tooltipIndividually_, true, breakpoints, theme);
|
352
|
+
const tooltipCloseOnMouseLeave = (0, utils_2.valueBreakpoints)(tooltipCloseOnMouseLeave_, true, breakpoints, theme);
|
353
|
+
const elementTooltip = (0, utils_2.valueBreakpoints)(elementTooltip_, undefined, breakpoints, theme);
|
354
|
+
const guidelines = (0, utils_2.valueBreakpoints)(guidelines_, undefined, breakpoints, theme);
|
355
|
+
const guidelinesAppend = (0, utils_2.valueBreakpoints)(guidelinesAppend_, true, breakpoints, theme);
|
356
|
+
const guidelinesDisplayInactive = (0, utils_2.valueBreakpoints)(guidelinesDisplayInactive_, false, breakpoints, theme);
|
357
|
+
const animate = (0, utils_2.valueBreakpoints)(animate_, true, breakpoints, theme);
|
358
|
+
const animateTimeout = (0, utils_2.valueBreakpoints)(animateTimeout_, 140, breakpoints, theme);
|
359
|
+
const legend__ = (0, utils_2.valueBreakpoints)(legend___, 'auto', breakpoints, theme);
|
360
|
+
const labels__ = (0, utils_2.valueBreakpoints)(labels___, 'auto', breakpoints, theme);
|
361
|
+
const labelsX = (0, utils_2.valueBreakpoints)(labelsX_, true, breakpoints, theme);
|
362
|
+
const labelsY = (0, utils_2.valueBreakpoints)(labelsY_, true, breakpoints, theme);
|
363
|
+
const labelDecimalPlaces = (0, utils_2.valueBreakpoints)(labelDecimalPlaces_, 0, breakpoints, theme);
|
364
|
+
const labelsAutoNumber = (0, utils_2.valueBreakpoints)(labelsAutoNumber_, 10, breakpoints, theme);
|
365
|
+
const labelsYAutoNumber = (0, utils_2.valueBreakpoints)(labelsYAutoNumber_, undefined, breakpoints, theme);
|
366
|
+
const labelsXAutoNumber = (0, utils_2.valueBreakpoints)(labelsXAutoNumber_, undefined, breakpoints, theme);
|
367
|
+
const marks__ = (0, utils_2.valueBreakpoints)(marks___, 'auto', breakpoints, theme);
|
368
|
+
const marksX = (0, utils_2.valueBreakpoints)(marksX_, true, breakpoints, theme);
|
369
|
+
const marksY = (0, utils_2.valueBreakpoints)(marksY_, true, breakpoints, theme);
|
370
|
+
const marksAutoNumber = (0, utils_2.valueBreakpoints)(marksAutoNumber_, 10, breakpoints, theme);
|
371
|
+
const marksYAutoNumber = (0, utils_2.valueBreakpoints)(marksYAutoNumber_, undefined, breakpoints, theme);
|
372
|
+
const marksXAutoNumber = (0, utils_2.valueBreakpoints)(marksXAutoNumber_, undefined, breakpoints, theme);
|
373
|
+
const grid__ = (0, utils_2.valueBreakpoints)(grid___, undefined, breakpoints, theme);
|
374
|
+
const gridX = (0, utils_2.valueBreakpoints)(gridX_, true, breakpoints, theme);
|
375
|
+
const gridY = (0, utils_2.valueBreakpoints)(gridY_, true, breakpoints, theme);
|
376
|
+
const gridAutoNumber = (0, utils_2.valueBreakpoints)(gridAutoNumber_, 10, breakpoints, theme);
|
377
|
+
const gridYAutoNumber = (0, utils_2.valueBreakpoints)(gridYAutoNumber_, undefined, breakpoints, theme);
|
378
|
+
const gridXAutoNumber = (0, utils_2.valueBreakpoints)(gridXAutoNumber_, undefined, breakpoints, theme);
|
379
|
+
const points__ = (0, utils_2.valueBreakpoints)(points___, true, breakpoints, theme);
|
380
|
+
const pointsVisibility = (0, utils_2.valueBreakpoints)(pointsVisibility_, 'hover', breakpoints, theme);
|
381
|
+
const borders = (0, utils_2.valueBreakpoints)(borders_, true, breakpoints, theme);
|
382
|
+
const borderStart = (0, utils_2.valueBreakpoints)(borderStart_, false, breakpoints, theme);
|
383
|
+
const borderLeft = (0, utils_2.valueBreakpoints)(borderLeft_, true, breakpoints, theme);
|
384
|
+
const borderEnd = (0, utils_2.valueBreakpoints)(borderEnd_, false, breakpoints, theme);
|
385
|
+
const borderRight = (0, utils_2.valueBreakpoints)(borderRight_, false, breakpoints, theme);
|
386
|
+
const borderTop = (0, utils_2.valueBreakpoints)(borderTop_, false, breakpoints, theme);
|
387
|
+
const borderBottom = (0, utils_2.valueBreakpoints)(borderBottom_, true, breakpoints, theme);
|
388
|
+
const minX = (0, utils_2.valueBreakpoints)(minX_, undefined, breakpoints, theme);
|
389
|
+
const maxX = (0, utils_2.valueBreakpoints)(maxX_, undefined, breakpoints, theme);
|
390
|
+
const minY = (0, utils_2.valueBreakpoints)(minY_, undefined, breakpoints, theme);
|
391
|
+
const maxY = (0, utils_2.valueBreakpoints)(maxY_, undefined, breakpoints, theme);
|
392
|
+
const minMaxPadding = (0, utils_2.valueBreakpoints)(minMaxPadding__, undefined, breakpoints, theme);
|
393
|
+
const minPadding = (0, utils_2.valueBreakpoints)(minPadding__, undefined, breakpoints, theme);
|
394
|
+
const maxPadding = (0, utils_2.valueBreakpoints)(maxPadding__, undefined, breakpoints, theme);
|
395
|
+
const minPaddingX = (0, utils_2.valueBreakpoints)(minPaddingX__, undefined, breakpoints, theme);
|
396
|
+
const minPaddingY = (0, utils_2.valueBreakpoints)(minPaddingY__, undefined, breakpoints, theme);
|
397
|
+
const maxPaddingX = (0, utils_2.valueBreakpoints)(maxPaddingX__, undefined, breakpoints, theme);
|
398
|
+
const maxPaddingY = (0, utils_2.valueBreakpoints)(maxPaddingY__, undefined, breakpoints, theme);
|
399
|
+
const [rects, setRects] = react_1.default.useState();
|
400
|
+
const [points, setPoints] = react_1.default.useState();
|
401
|
+
const [labels, setLabels] = react_1.default.useState();
|
402
|
+
const [marks, setMarks] = react_1.default.useState();
|
403
|
+
const [grid, setGrid] = react_1.default.useState();
|
404
|
+
const [additionalLines, setAdditionalLines] = react_1.default.useState();
|
405
|
+
const [legend, setLegend] = react_1.default.useState([]);
|
406
|
+
const [defs, setDefs] = react_1.default.useState([]);
|
407
|
+
const [append, setAppend] = react_1.default.useState();
|
408
|
+
const [visible, setVisible] = react_1.default.useState({});
|
409
|
+
const [guidelinesIn, setGuidelineIn] = react_1.default.useState(false);
|
410
|
+
const [guidelinesPosition, setGuidelinePosition] = react_1.default.useState({});
|
411
|
+
const [hover, setHover] = react_1.default.useState(false);
|
412
|
+
refs.rects.current = rects;
|
413
|
+
refs.guidelines.current = guidelines;
|
414
|
+
refs.guidelinesIn.current = guidelinesIn;
|
415
|
+
refs.guidelinesPosition.current = guidelinesPosition;
|
416
|
+
refs.guidelinesAppend.current = guidelinesAppend;
|
417
|
+
refs.hover.current = hover;
|
418
|
+
refs.values.current = values;
|
419
|
+
refs.visible.current = visible;
|
420
|
+
refs.theme.current = theme;
|
421
|
+
const minMax = react_1.default.useMemo(() => {
|
422
|
+
const values_ = {
|
423
|
+
min: {
|
424
|
+
x: minX || Number.MAX_SAFE_INTEGER,
|
425
|
+
y: minY || Number.MAX_SAFE_INTEGER
|
426
|
+
},
|
427
|
+
max: {
|
428
|
+
x: maxX || Number.MIN_SAFE_INTEGER,
|
429
|
+
y: maxY || Number.MIN_SAFE_INTEGER
|
430
|
+
}
|
431
|
+
};
|
432
|
+
if (!noMain) {
|
433
|
+
const allItems = values.flatMap(item => (0, utils_1.is)('array', item.values[0]) ? item.values : [item.values]);
|
434
|
+
if ((0, utils_1.is)('array', values)) {
|
435
|
+
allItems.forEach((item) => {
|
436
|
+
const [x, y] = item;
|
437
|
+
if (minX === undefined)
|
438
|
+
values_.min.x = Math.min(values_.min.x, x);
|
439
|
+
if (maxX === undefined)
|
440
|
+
values_.max.x = Math.max(values_.max.x, x);
|
441
|
+
if (minY === undefined)
|
442
|
+
values_.min.y = Math.min(values_.min.y, y);
|
443
|
+
if (maxY === undefined)
|
444
|
+
values_.max.y = Math.max(values_.max.y, y);
|
445
|
+
});
|
446
|
+
}
|
447
|
+
const minPaddingY_ = minPaddingY !== undefined ? minPaddingY : minPadding !== undefined ? minPadding : minMaxPadding;
|
448
|
+
const maxPaddingY_ = maxPaddingY !== undefined ? maxPaddingY : maxPadding !== undefined ? maxPadding : minMaxPadding;
|
449
|
+
const minPaddingX_ = minPaddingX !== undefined ? minPaddingX : minPadding !== undefined ? minPadding : minMaxPadding;
|
450
|
+
const maxPaddingX_ = maxPaddingX !== undefined ? maxPaddingX : maxPadding !== undefined ? maxPadding : minMaxPadding;
|
451
|
+
const totals = {
|
452
|
+
x: values_.max.x - values_.min.x,
|
453
|
+
y: values_.max.y - values_.min.y
|
454
|
+
};
|
455
|
+
if (minPaddingY_ !== undefined)
|
456
|
+
values_.min.y -= totals.y * minPaddingY_;
|
457
|
+
if (maxPaddingY_ !== undefined)
|
458
|
+
values_.max.y += totals.y * maxPaddingY_;
|
459
|
+
if (minPaddingX_ !== undefined)
|
460
|
+
values_.min.x -= totals.x * minPaddingX_;
|
461
|
+
if (maxPaddingX_ !== undefined)
|
462
|
+
values_.max.x += totals.x * maxPaddingX_;
|
463
|
+
}
|
464
|
+
return values_;
|
465
|
+
}, [values, minX, maxX, minY, maxY, minMaxPadding, minPadding, maxPadding, minPaddingX, minPaddingY, maxPaddingX, maxPaddingY, noMain]);
|
466
|
+
refs.minMax.current = minMax;
|
467
|
+
const onWrapperMouseEnter = react_1.default.useCallback(() => {
|
468
|
+
if (!refs.guidelinesIn.current)
|
469
|
+
setGuidelineIn(true);
|
470
|
+
setHover(true);
|
471
|
+
}, []);
|
472
|
+
const onWrapperMouseLeave = react_1.default.useCallback(() => {
|
473
|
+
setHover(false);
|
474
|
+
setTimeout(() => {
|
475
|
+
if (tooltipCloseOnMouseLeave)
|
476
|
+
setAppend(values_ => (Object.assign(Object.assign({}, values_), { open: false })));
|
477
|
+
if (!guidelinesDisplayInactive)
|
478
|
+
setGuidelineIn(false);
|
479
|
+
setGuidelinePosition({});
|
480
|
+
});
|
481
|
+
}, [tooltipCloseOnMouseLeave, guidelinesDisplayInactive]);
|
482
|
+
const makeGroupTooltip = (x_, y_) => {
|
483
|
+
const items = refs.allValues.current.filter(item => item.normalized[0] === x_);
|
484
|
+
const itemsY = (0, utils_1.copy)(items).sort((a, b) => a.normalized[1] - b.normalized[1]);
|
485
|
+
const x = x_;
|
486
|
+
const y = itemsY[0].normalized[1];
|
487
|
+
const groups = {};
|
488
|
+
items.forEach(item => {
|
489
|
+
var _a;
|
490
|
+
const color_ = ((_a = item.item) === null || _a === void 0 ? void 0 : _a.color) || 'primary';
|
491
|
+
if (!groups[color_])
|
492
|
+
groups[color_] = [];
|
493
|
+
groups[color_].push(item);
|
494
|
+
});
|
495
|
+
// Group sorted by y largest, to smallest
|
496
|
+
Object.keys(groups).forEach(group => groups[group].sort((a, b) => { var _a, _b; return ((_a = a.normalized) === null || _a === void 0 ? void 0 : _a[1]) - ((_b = b.normalized) === null || _b === void 0 ? void 0 : _b[1]); }));
|
497
|
+
// Groups sorted by y largest, to smallest
|
498
|
+
const groupsSorted = Object.keys(groups).sort((a, b) => { var _a, _b, _c, _d; return ((_b = (_a = groups[a][0]) === null || _a === void 0 ? void 0 : _a.normalized) === null || _b === void 0 ? void 0 : _b[1]) - ((_d = (_c = groups[b][0]) === null || _c === void 0 ? void 0 : _c.normalized) === null || _d === void 0 ? void 0 : _d[1]); });
|
499
|
+
const element = (0, utils_1.is)('function', tooltipGroupRender) ? tooltipGroupRender(groups, groupsSorted) : ((0, jsx_runtime_1.jsx)(Line, Object.assign({ tonal: tonal, color: color, elevation: 1, gap: 0.25, direction: 'column', Component: Surface, className: (0, style_react_1.classNames)([
|
500
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
501
|
+
'onesy-Chart-append'
|
502
|
+
],
|
503
|
+
classes.append
|
504
|
+
]) }, { children: (0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 1, direction: 'column', style: {
|
505
|
+
width: '100%'
|
506
|
+
} }, { children: [(0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 1, direction: 'row', align: 'center' }, { children: [(0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'b3', style: {
|
507
|
+
fontWeight: 600
|
508
|
+
} }, { children: (names === null || names === void 0 ? void 0 : names.y) || 'y' })), (0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'b3', style: {
|
509
|
+
fontWeight: 600
|
510
|
+
} }, { children: (names === null || names === void 0 ? void 0 : names.x) || 'x' }))] })), (0, jsx_runtime_1.jsx)(Line, Object.assign({ gap: 1, direction: 'column' }, { children: groupsSorted.map((group, index) => {
|
511
|
+
var _a, _b;
|
512
|
+
return ((0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 1, direction: 'column', style: {
|
513
|
+
width: '100%'
|
514
|
+
} }, { children: [(0, jsx_runtime_1.jsx)("span", { className: (0, style_react_1.classNames)([
|
515
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
516
|
+
'onesy-Chart-append-icon'
|
517
|
+
],
|
518
|
+
classes.append_icon
|
519
|
+
]), style: {
|
520
|
+
background: !refs.theme.current.palette.color[group] ? group : refs.theme.current.palette.color[group][((_b = (_a = groups[group][0]) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.tone) || 'main']
|
521
|
+
} }), (0, jsx_runtime_1.jsx)(Line, Object.assign({ gap: 0, direction: 'column', style: {
|
522
|
+
width: '100%'
|
523
|
+
} }, { children: groups[group].map((item, index_) => {
|
524
|
+
var _a, _b, _c, _d;
|
525
|
+
return ((0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 1, direction: 'row', style: {
|
526
|
+
width: '100%'
|
527
|
+
} }, { children: [(0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'b3' }, { children: (0, utils_1.is)('function', labelResolve) ? labelResolve((_a = item === null || item === void 0 ? void 0 : item.values) === null || _a === void 0 ? void 0 : _a[1], 'y', item, 'group') : (_b = item === null || item === void 0 ? void 0 : item.values) === null || _b === void 0 ? void 0 : _b[1] })), (0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'b3' }, { children: (0, utils_1.is)('function', labelResolve) ? labelResolve((_c = item === null || item === void 0 ? void 0 : item.values) === null || _c === void 0 ? void 0 : _c[0], 'x', item, 'group') : (_d = item === null || item === void 0 ? void 0 : item.values) === null || _d === void 0 ? void 0 : _d[0] }))] }), index_));
|
528
|
+
}) }))] }), index));
|
529
|
+
}) }))] })) })));
|
530
|
+
const rectSvg = refs.svg.current.getBoundingClientRect();
|
531
|
+
const width = 8;
|
532
|
+
const height = 8;
|
533
|
+
const rect_ = {
|
534
|
+
x: (x + rectSvg.x) - width,
|
535
|
+
y: (y + rectSvg.y) - width,
|
536
|
+
width,
|
537
|
+
height
|
538
|
+
};
|
539
|
+
rect_.top = rect_.y;
|
540
|
+
rect_.bottom = rect_.y + height;
|
541
|
+
rect_.left = rect_.x;
|
542
|
+
rect_.right = rect_.x + width;
|
543
|
+
setAppend({
|
544
|
+
open: true,
|
545
|
+
element,
|
546
|
+
rect: rect_
|
547
|
+
});
|
548
|
+
};
|
549
|
+
react_1.default.useEffect(() => {
|
550
|
+
var _a;
|
551
|
+
const onMove = (x_, y_) => {
|
552
|
+
var _a, _b, _c, _d, _e, _f;
|
553
|
+
// Only horizontal move at the moment
|
554
|
+
// ie. vertical guidelines
|
555
|
+
const rectWrapper = refs.rects.current.wrapper;
|
556
|
+
const rectSvg = refs.svg.current.getBoundingClientRect();
|
557
|
+
let x = (0, utils_1.clamp)(x_ - (rectSvg === null || rectSvg === void 0 ? void 0 : rectSvg.x), 0, rectWrapper === null || rectWrapper === void 0 ? void 0 : rectWrapper.width);
|
558
|
+
const y = (0, utils_1.clamp)(y_ - (rectSvg === null || rectSvg === void 0 ? void 0 : rectSvg.y), 0, rectWrapper === null || rectWrapper === void 0 ? void 0 : rectWrapper.height);
|
559
|
+
if (refs.guidelinesAppend.current && ['both', 'vertical'].includes(refs.guidelines.current)) {
|
560
|
+
const allValues = refs.allValues.current;
|
561
|
+
let index;
|
562
|
+
let previous;
|
563
|
+
let item;
|
564
|
+
for (let i = 0; i < allValues.length; i++) {
|
565
|
+
previous = allValues[i - 1];
|
566
|
+
item = allValues[i];
|
567
|
+
if (((_a = previous === null || previous === void 0 ? void 0 : previous.normalized) === null || _a === void 0 ? void 0 : _a[0]) <= x && x <= ((_b = item === null || item === void 0 ? void 0 : item.normalized) === null || _b === void 0 ? void 0 : _b[0])) {
|
568
|
+
index = i;
|
569
|
+
break;
|
570
|
+
}
|
571
|
+
}
|
572
|
+
if (index === undefined) {
|
573
|
+
index = x <= ((_d = (_c = allValues[0]) === null || _c === void 0 ? void 0 : _c.normalized) === null || _d === void 0 ? void 0 : _d[0]) ? 0 : allValues.length - 1;
|
574
|
+
previous = allValues[index - 1];
|
575
|
+
item = allValues[index];
|
576
|
+
}
|
577
|
+
if (previous || item) {
|
578
|
+
if (!previous)
|
579
|
+
x = (_e = item.normalized) === null || _e === void 0 ? void 0 : _e[0];
|
580
|
+
else if (!item)
|
581
|
+
x = (_f = previous.normalized) === null || _f === void 0 ? void 0 : _f[0];
|
582
|
+
else {
|
583
|
+
const len = item.normalized[0] - previous.normalized[0];
|
584
|
+
const part = len / 2;
|
585
|
+
x = x < (previous.normalized[0] + part) ? previous.normalized[0] : item.normalized[0];
|
586
|
+
}
|
587
|
+
}
|
588
|
+
makeGroupTooltip(x, y);
|
589
|
+
}
|
590
|
+
setGuidelinePosition(value_ => (Object.assign(Object.assign({}, value_), { x,
|
591
|
+
y })));
|
592
|
+
};
|
593
|
+
const onMouseMove = (event) => {
|
594
|
+
if (refs.hover.current) {
|
595
|
+
const x = event.clientX;
|
596
|
+
const y = event.clientY;
|
597
|
+
onMove(x, y);
|
598
|
+
}
|
599
|
+
};
|
600
|
+
const onTouchMove = (event) => {
|
601
|
+
if (refs.hover.current) {
|
602
|
+
const x = event.touches[0].clientX;
|
603
|
+
const y = event.touches[0].clientY;
|
604
|
+
onMove(x, y);
|
605
|
+
}
|
606
|
+
};
|
607
|
+
const method = () => {
|
608
|
+
if (refs.wrapper.current) {
|
609
|
+
const rectWrapper = refs.wrapper.current.getBoundingClientRect();
|
610
|
+
const rectSvg = refs.svg.current.getBoundingClientRect();
|
611
|
+
const rects_ = {
|
612
|
+
wrapper: rectWrapper,
|
613
|
+
svg: rectSvg
|
614
|
+
};
|
615
|
+
setRects(rects_);
|
616
|
+
if ((0, utils_1.is)('function', onUpdateRects))
|
617
|
+
onUpdateRects(rects_);
|
618
|
+
}
|
619
|
+
};
|
620
|
+
method();
|
621
|
+
const observer = new ResizeObserver(method);
|
622
|
+
observer.observe(refs.root.current);
|
623
|
+
const rootDocument = (0, utils_1.isEnvironment)('browser') ? (((_a = refs.root.current) === null || _a === void 0 ? void 0 : _a.ownerDocument) || window.document) : undefined;
|
624
|
+
rootDocument.addEventListener('mousemove', onMouseMove);
|
625
|
+
rootDocument.addEventListener('touchmove', onTouchMove);
|
626
|
+
rootDocument.addEventListener('touchend', onWrapperMouseLeave);
|
627
|
+
return () => {
|
628
|
+
observer.disconnect();
|
629
|
+
rootDocument.removeEventListener('mousemove', onMouseMove);
|
630
|
+
rootDocument.removeEventListener('touchmove', onTouchMove);
|
631
|
+
rootDocument.removeEventListener('touchend', onWrapperMouseLeave);
|
632
|
+
};
|
633
|
+
}, []);
|
634
|
+
react_1.default.useEffect(() => {
|
635
|
+
make();
|
636
|
+
}, [values, labels__, marks__, grid__, additionalLines__, legend__, visible, (guidelinesAppend && guidelinesPosition), rects, theme]);
|
637
|
+
const onPointMouseEnter = react_1.default.useCallback((values_) => {
|
638
|
+
if (tooltipIndividually) {
|
639
|
+
setAppend(Object.assign(Object.assign({}, ((0, utils_1.is)('function', tooltipRender) ? tooltipRender(values_) : values_)), { rect: values_.rect, open: true }));
|
640
|
+
}
|
641
|
+
}, [tooltipRender, tooltipIndividually]);
|
642
|
+
const onPointMouseLeave = react_1.default.useCallback(() => {
|
643
|
+
setAppend(append_ => (Object.assign(Object.assign({}, append_), { open: false })));
|
644
|
+
}, []);
|
645
|
+
const onLegendClick = (value) => {
|
646
|
+
if (value !== undefined && legendManageVisibility) {
|
647
|
+
setVisible((visible_) => (Object.assign(Object.assign({}, visible_), { [value]: ![undefined, true].includes(visible_[value]) })));
|
648
|
+
}
|
649
|
+
};
|
650
|
+
const LegendItem = react_1.default.useCallback((props__) => {
|
651
|
+
const { item = {}, className: className_ } = props__, other_ = __rest(props__, ["item", "className"]);
|
652
|
+
const { color: color_, tone = 'main', name = 'No name' } = item;
|
653
|
+
return ((0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 1, direction: 'row', align: 'center' }, LegendItemProps, { className: (0, style_react_1.classNames)([
|
654
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
655
|
+
'onesy-Chart-legend-item'
|
656
|
+
],
|
657
|
+
className_,
|
658
|
+
LegendItemProps === null || LegendItemProps === void 0 ? void 0 : LegendItemProps.className,
|
659
|
+
classes.legend_item
|
660
|
+
]) }, other_, { children: [(0, jsx_runtime_1.jsx)("span", { className: (0, style_react_1.classNames)([
|
661
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
662
|
+
'onesy-Chart-legend-icon'
|
663
|
+
],
|
664
|
+
classes.legend_icon
|
665
|
+
]), style: {
|
666
|
+
color: !theme.palette.color[color_] ? color_ : theme.palette.color[color_][tone],
|
667
|
+
background: !theme.palette.color[color_] ? color_ : theme.palette.color[color_][tone]
|
668
|
+
} }), (0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'b2' }, { children: name }))] })));
|
669
|
+
}, [theme]);
|
670
|
+
const make = (valueNew = refs.values.current) => {
|
671
|
+
// Make values into x, y, coordinates
|
672
|
+
// normalized in rect width, height values
|
673
|
+
// invert y so 0, 0 is at bottom left
|
674
|
+
if (refs.rects.current && valueNew && !noMain) {
|
675
|
+
const { width, height } = refs.rects.current.wrapper;
|
676
|
+
// Labels
|
677
|
+
const labels_ = {
|
678
|
+
x: (0, utils_1.is)('array', labels__ === null || labels__ === void 0 ? void 0 : labels__.x) ? labels__.x : (0, utils_2.minMaxBetweenNumbers)(labelsXAutoNumber !== undefined ? labelsXAutoNumber : labelsAutoNumber !== undefined ? labelsAutoNumber : 10, refs.minMax.current.min.x, refs.minMax.current.max.x).map(item => ({
|
679
|
+
value: item,
|
680
|
+
label: (0, utils_1.castParam)((item).toFixed(labelDecimalPlaces || 0))
|
681
|
+
})),
|
682
|
+
y: (0, utils_1.is)('array', labels__ === null || labels__ === void 0 ? void 0 : labels__.y) ? labels__.y : (0, utils_2.minMaxBetweenNumbers)(labelsYAutoNumber !== undefined ? labelsYAutoNumber : labelsAutoNumber !== undefined ? labelsAutoNumber : 10, refs.minMax.current.min.y, refs.minMax.current.max.y).map(item => ({
|
683
|
+
value: item,
|
684
|
+
label: (0, utils_1.castParam)((item).toFixed(labelDecimalPlaces || 0))
|
685
|
+
}))
|
686
|
+
};
|
687
|
+
labels_.x = labels_.x.map(item => (Object.assign(Object.assign({}, item), { percentage: (0, utils_1.percentageFromValueWithinRange)(item.value, refs.minMax.current.min.x, refs.minMax.current.max.x) })));
|
688
|
+
labels_.y = labels_.y.map(item => (Object.assign(Object.assign({}, item), { percentage: (0, utils_1.percentageFromValueWithinRange)(item.value, refs.minMax.current.min.y, refs.minMax.current.max.y) })));
|
689
|
+
// Marks
|
690
|
+
const marks_ = {
|
691
|
+
x: (0, utils_1.is)('array', marks__ === null || marks__ === void 0 ? void 0 : marks__.x) ? marks__.x : (0, utils_2.minMaxBetweenNumbers)(marksXAutoNumber !== undefined ? marksXAutoNumber : marksAutoNumber !== undefined ? marksAutoNumber : 10, refs.minMax.current.min.x, refs.minMax.current.max.x).map(item => ({
|
692
|
+
value: item
|
693
|
+
})),
|
694
|
+
y: (0, utils_1.is)('array', marks__ === null || marks__ === void 0 ? void 0 : marks__.y) ? marks__.y : (0, utils_2.minMaxBetweenNumbers)(marksYAutoNumber !== undefined ? marksYAutoNumber : marksAutoNumber !== undefined ? marksAutoNumber : 10, refs.minMax.current.min.y, refs.minMax.current.max.y).map(item => ({
|
695
|
+
value: item
|
696
|
+
}))
|
697
|
+
};
|
698
|
+
marks_.x = marks_.x.map(item => (Object.assign(Object.assign({}, item), { percentage: (0, utils_1.percentageFromValueWithinRange)(item.value, refs.minMax.current.min.x, refs.minMax.current.max.x) })));
|
699
|
+
marks_.y = marks_.y.map(item => (Object.assign(Object.assign({}, item), { percentage: (0, utils_1.percentageFromValueWithinRange)(item.value, refs.minMax.current.min.y, refs.minMax.current.max.y) })));
|
700
|
+
// Grid
|
701
|
+
const grid_ = {
|
702
|
+
x: (0, utils_1.is)('array', grid__ === null || grid__ === void 0 ? void 0 : grid__.x) ? grid__.x : (0, utils_2.minMaxBetweenNumbers)(gridXAutoNumber !== undefined ? gridXAutoNumber : gridAutoNumber !== undefined ? gridAutoNumber : 10, refs.minMax.current.min.x, refs.minMax.current.max.x).map(item => ({
|
703
|
+
value: item
|
704
|
+
})),
|
705
|
+
y: (0, utils_1.is)('array', grid__ === null || grid__ === void 0 ? void 0 : grid__.y) ? grid__.y : (0, utils_2.minMaxBetweenNumbers)(gridYAutoNumber !== undefined ? gridYAutoNumber : gridAutoNumber !== undefined ? gridAutoNumber : 10, refs.minMax.current.min.y, refs.minMax.current.max.y).map(item => ({
|
706
|
+
value: item
|
707
|
+
}))
|
708
|
+
};
|
709
|
+
grid_.x = grid_.x.map(item => (Object.assign(Object.assign({}, item), { percentage: (0, utils_1.percentageFromValueWithinRange)(item.value, refs.minMax.current.min.x, refs.minMax.current.max.x) })));
|
710
|
+
grid_.y = grid_.y.map(item => (Object.assign(Object.assign({}, item), { percentage: (0, utils_1.percentageFromValueWithinRange)(item.value, refs.minMax.current.min.y, refs.minMax.current.max.y) })));
|
711
|
+
refs.allValues.current = [];
|
712
|
+
// Points
|
713
|
+
const points_ = (0, utils_1.copy)(valueNew).flatMap(item => {
|
714
|
+
var _a;
|
715
|
+
const { color: color_, tone = 'main', name } = item;
|
716
|
+
const itemValues = ([x, y, ...args]) => {
|
717
|
+
const values__ = {
|
718
|
+
x: (0, utils_1.percentageFromValueWithinRange)(x, refs.minMax.current.min.x, refs.minMax.current.max.x),
|
719
|
+
y: (0, utils_1.percentageFromValueWithinRange)(y, refs.minMax.current.min.y, refs.minMax.current.max.y)
|
720
|
+
};
|
721
|
+
values__.x = (0, utils_1.valueFromPercentageWithinRange)(values__.x, 0, width);
|
722
|
+
values__.y = (0, utils_1.valueFromPercentageWithinRange)(values__.y, 0, height);
|
723
|
+
if (refs.visible.current[name] !== false) {
|
724
|
+
refs.allValues.current.push({
|
725
|
+
item,
|
726
|
+
values: [x, y, ...args],
|
727
|
+
normalized: [values__.x, height - values__.y].map(item_ => Math.abs(item_))
|
728
|
+
});
|
729
|
+
}
|
730
|
+
return {
|
731
|
+
values: [x, y, ...args],
|
732
|
+
normalized: [values__.x, height - values__.y].map(item_ => Math.abs(item_))
|
733
|
+
};
|
734
|
+
};
|
735
|
+
const itemArrayNested = (0, utils_1.is)('array', (_a = item.values) === null || _a === void 0 ? void 0 : _a[0]);
|
736
|
+
const values_ = itemArrayNested ? (0, utils_1.copy)(item.values)
|
737
|
+
// Sort for x from smallest to largest
|
738
|
+
.sort((a, b) => a[0] - b[0])
|
739
|
+
.map(itemValues) : [itemValues(item.values)];
|
740
|
+
return values_.map((item_, index) => ((0, jsx_runtime_1.jsx)(Path, Object.assign({ Component: 'circle', r: 4, cx: item_.normalized[0], cy: item_.normalized[1], fill: !theme.palette.color[color_] ? color_ : theme.palette.color[color_][tone], stroke: 'none' }, (!elementTooltip ? {
|
741
|
+
onMouseEnter: event => {
|
742
|
+
const rect_ = event.target.getBoundingClientRect();
|
743
|
+
onPointMouseEnter({
|
744
|
+
values: item_.values,
|
745
|
+
rect: rect_
|
746
|
+
});
|
747
|
+
},
|
748
|
+
onMouseLeave: onPointMouseLeave
|
749
|
+
} : undefined), PointProps, { className: (0, style_react_1.classNames)([
|
750
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
751
|
+
'onesy-Chart-point'
|
752
|
+
],
|
753
|
+
PointProps === null || PointProps === void 0 ? void 0 : PointProps.className,
|
754
|
+
classes.point,
|
755
|
+
classes[`point_visibility_${pointsVisibility}`],
|
756
|
+
(refs.guidelinesAppend.current && refs.guidelinesPosition.current.x === item_.normalized[0]) && classes.point_active
|
757
|
+
]), style: Object.assign(Object.assign({}, (refs.visible.current[name] === false ? {
|
758
|
+
opacity: 0,
|
759
|
+
pointerEvents: 'none'
|
760
|
+
} : undefined)), PointProps === null || PointProps === void 0 ? void 0 : PointProps.style) }), index)));
|
761
|
+
});
|
762
|
+
refs.allValues.current.sort((a, b) => (a === null || a === void 0 ? void 0 : a.normalized[0]) - (b === null || b === void 0 ? void 0 : b.normalized[0]));
|
763
|
+
// Guidelines
|
764
|
+
const additionalLines_ = additionalLines__ && additionalLines__.map((item, index) => {
|
765
|
+
const { color: color_, tone = 'main', style } = item;
|
766
|
+
const values_ = {
|
767
|
+
x1: (0, utils_1.percentageFromValueWithinRange)(item.x1, refs.minMax.current.min.x, refs.minMax.current.max.x),
|
768
|
+
y1: (0, utils_1.percentageFromValueWithinRange)(item.y1, refs.minMax.current.min.y, refs.minMax.current.max.y),
|
769
|
+
x2: (0, utils_1.percentageFromValueWithinRange)(item.x2, refs.minMax.current.min.x, refs.minMax.current.max.x),
|
770
|
+
y2: (0, utils_1.percentageFromValueWithinRange)(item.y2, refs.minMax.current.min.y, refs.minMax.current.max.y),
|
771
|
+
};
|
772
|
+
values_.x1 = (0, utils_1.valueFromPercentageWithinRange)(values_.x1, 0, width);
|
773
|
+
values_.y1 = (0, utils_1.valueFromPercentageWithinRange)(values_.y1, 0, height);
|
774
|
+
values_.x2 = (0, utils_1.valueFromPercentageWithinRange)(values_.x2, 0, width);
|
775
|
+
values_.y2 = (0, utils_1.valueFromPercentageWithinRange)(values_.y2, 0, height);
|
776
|
+
return ((0, jsx_runtime_1.jsx)(Path, Object.assign({ d: `M ${values_.x1} ${height - values_.y1} L ${values_.x2} ${height - values_.y2}`, fill: 'none', stroke: !theme.palette.color[color_] ? color_ : theme.palette.color[color_][tone] }, AdditionalLineProps, { className: (0, style_react_1.classNames)([
|
777
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
778
|
+
'onesy-Chart-additional-lines'
|
779
|
+
],
|
780
|
+
AdditionalLineProps === null || AdditionalLineProps === void 0 ? void 0 : AdditionalLineProps.className,
|
781
|
+
classes.additionalLines
|
782
|
+
]), style: Object.assign(Object.assign({}, style), AdditionalLineProps === null || AdditionalLineProps === void 0 ? void 0 : AdditionalLineProps.style) }), index));
|
783
|
+
});
|
784
|
+
// Labels
|
785
|
+
setLabels(labels_);
|
786
|
+
// Marks
|
787
|
+
setMarks(marks_);
|
788
|
+
// Grid
|
789
|
+
setGrid(grid_);
|
790
|
+
// Guidelines
|
791
|
+
setAdditionalLines(additionalLines_);
|
792
|
+
// Update children value
|
793
|
+
setPoints(points_);
|
794
|
+
}
|
795
|
+
// Legend
|
796
|
+
const legend_ = legend__ !== 'auto' ? legend__ : [];
|
797
|
+
if (legend__ === 'auto') {
|
798
|
+
const map = {};
|
799
|
+
values.forEach((item) => {
|
800
|
+
const name = (item === null || item === void 0 ? void 0 : item.name) || '';
|
801
|
+
if (!map[name]) {
|
802
|
+
legend_.push({
|
803
|
+
item,
|
804
|
+
element: ((0, jsx_runtime_1.jsx)(LegendItem, { item: item }))
|
805
|
+
});
|
806
|
+
map[name] = true;
|
807
|
+
}
|
808
|
+
});
|
809
|
+
}
|
810
|
+
// Legend
|
811
|
+
if ((0, utils_1.is)('array', legend_))
|
812
|
+
setLegend(legend_);
|
813
|
+
};
|
814
|
+
return ((0, jsx_runtime_1.jsxs)(Surface, Object.assign({ ref: item => {
|
815
|
+
if (ref) {
|
816
|
+
if ((0, utils_1.is)('function', ref))
|
817
|
+
ref(item);
|
818
|
+
else
|
819
|
+
ref.current = item;
|
820
|
+
}
|
821
|
+
refs.root.current = item;
|
822
|
+
}, tonal: tonal, color: color, gap: 0, direction: 'column', align: 'center', Component: Line, AdditionalProps: {
|
823
|
+
Component
|
824
|
+
}, className: (0, style_react_1.classNames)([
|
825
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
826
|
+
'onesy-Chart-root'
|
827
|
+
],
|
828
|
+
className,
|
829
|
+
classes.root
|
830
|
+
]) }, other, { children: [(title || subtitle) && ((0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 0.5, align: 'center', justify: 'center' }, HeaderProps, { className: (0, style_react_1.classNames)([
|
831
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
832
|
+
'onesy-Chart-header'
|
833
|
+
],
|
834
|
+
HeaderProps === null || HeaderProps === void 0 ? void 0 : HeaderProps.className,
|
835
|
+
classes.header,
|
836
|
+
((labels === null || labels === void 0 ? void 0 : labels.y) && labelsY) && classes.legend_offset_labels_y,
|
837
|
+
((names === null || names === void 0 ? void 0 : names.y) && nameY) && classes.legend_offset_names_y
|
838
|
+
]) }, { children: [(0, utils_1.is)('simple', title) ? ((0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 't2' }, TypeProps, TitleProps, { className: (0, style_react_1.classNames)([
|
839
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
840
|
+
'onesy-Chart-title'
|
841
|
+
],
|
842
|
+
TypeProps === null || TypeProps === void 0 ? void 0 : TypeProps.className,
|
843
|
+
TitleProps === null || TitleProps === void 0 ? void 0 : TitleProps.className,
|
844
|
+
classes.title
|
845
|
+
]) }, { children: title }))) : title, (0, utils_1.is)('simple', subtitle) ? ((0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'b3' }, TypeProps, SubtitleProps, { className: (0, style_react_1.classNames)([
|
846
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
847
|
+
'onesy-Chart-title'
|
848
|
+
],
|
849
|
+
TypeProps === null || TypeProps === void 0 ? void 0 : TypeProps.className,
|
850
|
+
SubtitleProps === null || SubtitleProps === void 0 ? void 0 : SubtitleProps.className,
|
851
|
+
classes.subtitle
|
852
|
+
]) }, { children: subtitle }))) : subtitle] }))), (legend__ && legendPosition === 'top' && legend) && ((0, jsx_runtime_1.jsx)(Line, Object.assign({ gap: 2, direction: 'row', align: 'center', justify: 'center', wrap: 'wrap' }, LegendProps, { className: (0, style_react_1.classNames)([
|
853
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
854
|
+
'onesy-Chart-legend',
|
855
|
+
`onesy-Chart-legend-position-${legendPosition}`
|
856
|
+
],
|
857
|
+
LegendProps === null || LegendProps === void 0 ? void 0 : LegendProps.className,
|
858
|
+
classes.legend,
|
859
|
+
classes[`legend_position_${legendPosition}`],
|
860
|
+
((labels === null || labels === void 0 ? void 0 : labels.y) && labelsY) && classes.legend_offset_labels_y,
|
861
|
+
((names === null || names === void 0 ? void 0 : names.y) && nameY) && classes.legend_offset_names_y
|
862
|
+
]) }, { children: legend.map(({ item, element }) => {
|
863
|
+
var _a;
|
864
|
+
return (react_1.default.cloneElement(element, {
|
865
|
+
onClick: () => onLegendClick(item.name),
|
866
|
+
className: (0, style_react_1.classNames)([
|
867
|
+
(_a = element === null || element === void 0 ? void 0 : element.props) === null || _a === void 0 ? void 0 : _a.className,
|
868
|
+
legendManageVisibility && classes.legend_item_manage_visibility,
|
869
|
+
refs.visible.current[item.name] === false && classes.legend_item_hidden
|
870
|
+
])
|
871
|
+
}));
|
872
|
+
}) }))), (0, jsx_runtime_1.jsx)(Line, Object.assign({ ref: refs.wrapper }, WrapperProps, { className: (0, style_react_1.classNames)([
|
873
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
874
|
+
'onesy-Chart-wrapper'
|
875
|
+
],
|
876
|
+
WrapperProps === null || WrapperProps === void 0 ? void 0 : WrapperProps.className,
|
877
|
+
classes.wrapper,
|
878
|
+
((labels === null || labels === void 0 ? void 0 : labels.x) && (labels === null || labels === void 0 ? void 0 : labels.y) && labelsX && labelsY) && classes.wrapper_labels,
|
879
|
+
(!((labels === null || labels === void 0 ? void 0 : labels.x) && (labels === null || labels === void 0 ? void 0 : labels.y) && labelsX && labelsY) && (labels === null || labels === void 0 ? void 0 : labels.x) && labelsX) && classes.wrapper_label_x,
|
880
|
+
(!((labels === null || labels === void 0 ? void 0 : labels.x) && (labels === null || labels === void 0 ? void 0 : labels.y) && labelsX && labelsY) && (labels === null || labels === void 0 ? void 0 : labels.y) && labelsY) && classes.wrapper_label_y,
|
881
|
+
((names === null || names === void 0 ? void 0 : names.x) && (names === null || names === void 0 ? void 0 : names.y) && nameX && nameY) && classes.wrapper_names,
|
882
|
+
(!((names === null || names === void 0 ? void 0 : names.x) && (names === null || names === void 0 ? void 0 : names.y) && nameX && nameY) && (names === null || names === void 0 ? void 0 : names.x) && nameX) && classes.wrapper_name_x,
|
883
|
+
(!((names === null || names === void 0 ? void 0 : names.x) && (names === null || names === void 0 ? void 0 : names.y) && nameX && nameY) && (names === null || names === void 0 ? void 0 : names.y) && nameY) && classes.wrapper_name_y
|
884
|
+
]) }, { children: (0, jsx_runtime_1.jsx)(Surface, Object.assign({ tonal: tonal, color: color }, { children: ({ color: color_, backgroundColor, palette }) => {
|
885
|
+
var _a, _b, _c, _d;
|
886
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [!!grid__ && gridX && (grid === null || grid === void 0 ? void 0 : grid.x) && ((0, jsx_runtime_1.jsx)(Line, Object.assign({ gap: 0, direction: 'row', align: 'flex-start', className: (0, style_react_1.classNames)([
|
887
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
888
|
+
'onesy-Chart-grids',
|
889
|
+
'onesy-Chart-grids-x'
|
890
|
+
],
|
891
|
+
classes.grids,
|
892
|
+
classes.grids_x
|
893
|
+
]) }, { children: grid.x.map((item, index) => ((0, jsx_runtime_1.jsx)("div", { className: (0, style_react_1.classNames)([
|
894
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
895
|
+
'onesy-Chart-grid',
|
896
|
+
'onesy-Chart-grid-x'
|
897
|
+
],
|
898
|
+
classes.grid,
|
899
|
+
classes.grid_x
|
900
|
+
]), style: {
|
901
|
+
left: `${item.percentage}%`
|
902
|
+
} }, index))) }))), !!grid__ && gridY && (grid === null || grid === void 0 ? void 0 : grid.y) && ((0, jsx_runtime_1.jsx)(Line, Object.assign({ gap: 0, direction: 'column', align: 'flex-end', justify: 'center', className: (0, style_react_1.classNames)([
|
903
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
904
|
+
'onesy-Chart-grids',
|
905
|
+
'onesy-Chart-grids-y'
|
906
|
+
],
|
907
|
+
classes.grids,
|
908
|
+
classes.grids_y
|
909
|
+
]) }, { children: grid.y.map((item, index) => ((0, jsx_runtime_1.jsx)("div", { className: (0, style_react_1.classNames)([
|
910
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
911
|
+
'onesy-Chart-grid',
|
912
|
+
'onesy-Chart-grid-y'
|
913
|
+
],
|
914
|
+
classes.grid,
|
915
|
+
classes.grid_y
|
916
|
+
]), style: {
|
917
|
+
bottom: `${item.percentage}%`
|
918
|
+
} }, index))) }))), (0, jsx_runtime_1.jsxs)("svg", Object.assign({ ref: refs.svg, xmlns: 'http://www.w3.org/2000/svg', viewBox: `0 0 ${((_a = rects === null || rects === void 0 ? void 0 : rects.wrapper) === null || _a === void 0 ? void 0 : _a.width) || 0} ${((_b = rects === null || rects === void 0 ? void 0 : rects.wrapper) === null || _b === void 0 ? void 0 : _b.height) || 0}` }, (guidelines ? {
|
919
|
+
onMouseEnter: onWrapperMouseEnter,
|
920
|
+
onTouchStart: onWrapperMouseEnter,
|
921
|
+
onMouseLeave: onWrapperMouseLeave
|
922
|
+
} : undefined), SvgProps, { className: (0, style_react_1.classNames)([
|
923
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
924
|
+
'onesy-Chart-svg'
|
925
|
+
],
|
926
|
+
SvgProps === null || SvgProps === void 0 ? void 0 : SvgProps.className,
|
927
|
+
classes.svg
|
928
|
+
]) }, { children: [(0, jsx_runtime_1.jsx)("defs", Object.assign({ ref: refs.defs }, { children: defs && defs.map((item, index) => (react_1.default.cloneElement(item, {
|
929
|
+
key: index
|
930
|
+
}))) })), pre, elements && elements.map(({ item, element }, index) => {
|
931
|
+
var _a;
|
932
|
+
const isVisible = (visible[item === null || item === void 0 ? void 0 : item.name] === undefined || !!visible[item === null || item === void 0 ? void 0 : item.name]);
|
933
|
+
return (react_1.default.cloneElement(element, Object.assign(Object.assign({ key: index }, (elementTooltip ? {
|
934
|
+
onMouseEnter: event => {
|
935
|
+
const rect_ = event.target.getBoundingClientRect();
|
936
|
+
onPointMouseEnter(Object.assign(Object.assign({}, item), { rect: rect_ }));
|
937
|
+
},
|
938
|
+
onMouseLeave: onPointMouseLeave
|
939
|
+
} : undefined)), { style: Object.assign(Object.assign({}, (_a = element === null || element === void 0 ? void 0 : element.props) === null || _a === void 0 ? void 0 : _a.style), (!isVisible ? {
|
940
|
+
opacity: '0',
|
941
|
+
pointerEvents: 'none'
|
942
|
+
} : undefined)) })));
|
943
|
+
}), children && react_1.default.Children.toArray(children).map((element, index) => {
|
944
|
+
var _a, _b, _c;
|
945
|
+
const isVisible = (visible[(_a = element.props) === null || _a === void 0 ? void 0 : _a.name] === undefined || !!visible[(_b = element.props) === null || _b === void 0 ? void 0 : _b.name]);
|
946
|
+
return (react_1.default.cloneElement(element, Object.assign(Object.assign({ key: index, refs: {
|
947
|
+
wrapper: refs.wrapper.current,
|
948
|
+
defs: refs.defs.current
|
949
|
+
}, rects, animate: element.props.animate !== undefined ? element.props.animate : animate, animateTimeout: element.props.animateTimeout !== undefined ? element.props.animateTimeout : animateTimeout, updateDefs: setDefs, updateLegend: setLegend }, (elementTooltip ? {
|
950
|
+
onMouseEnter: event => {
|
951
|
+
const rect_ = event.target.getBoundingClientRect();
|
952
|
+
onPointMouseEnter(Object.assign(Object.assign({}, element.props), { rect: rect_ }));
|
953
|
+
},
|
954
|
+
onMouseLeave: onPointMouseLeave
|
955
|
+
} : undefined)), { minMax: element.props.minMax !== undefined ? element.props.minMax : minMax, minX: element.props.minX !== undefined ? element.props.minX : minX, maxX: element.props.maxX !== undefined ? element.props.maxX : maxX, minY: element.props.minY !== undefined ? element.props.minY : minY, maxY: element.props.maxY !== undefined ? element.props.maxY : maxY, minMaxPadding: element.props.minMaxPadding !== undefined ? element.props.minMaxPadding : minMaxPadding, minPadding: element.props.minPadding !== undefined ? element.props.minPadding : minPadding, maxPadding: element.props.maxPadding !== undefined ? element.props.maxPadding : maxPadding, minPaddingX: element.props.minPaddingX !== undefined ? element.props.minPaddingX : minPaddingX, minPaddingY: element.props.minPaddingY !== undefined ? element.props.minPaddingY : minPaddingY, maxPaddingX: element.props.maxPaddingX !== undefined ? element.props.maxPaddingX : maxPaddingX, maxPaddingY: element.props.maxPaddingY !== undefined ? element.props.maxPaddingY : maxPaddingY, style: Object.assign(Object.assign({}, (_c = element === null || element === void 0 ? void 0 : element.props) === null || _c === void 0 ? void 0 : _c.style), (!isVisible ? {
|
956
|
+
opacity: '0',
|
957
|
+
pointerEvents: 'none'
|
958
|
+
} : undefined)) })));
|
959
|
+
}), additionalLines && ((0, jsx_runtime_1.jsx)("g", Object.assign({}, AdditionalLinesProps, { className: (0, style_react_1.classNames)([
|
960
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
961
|
+
'onesy-Chart-additional-lines'
|
962
|
+
],
|
963
|
+
AdditionalLinesProps === null || AdditionalLinesProps === void 0 ? void 0 : AdditionalLinesProps.className,
|
964
|
+
classes.additionalLines
|
965
|
+
]) }, { children: additionalLines }))), guidelines && guidelinesIn && (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [['both', 'vertical'].includes(guidelines) && ((0, jsx_runtime_1.jsx)("path", Object.assign({ d: `M ${(guidelinesPosition === null || guidelinesPosition === void 0 ? void 0 : guidelinesPosition.x) || 0} 0 ${(guidelinesPosition === null || guidelinesPosition === void 0 ? void 0 : guidelinesPosition.x) || 0} ${((_c = rects === null || rects === void 0 ? void 0 : rects.wrapper) === null || _c === void 0 ? void 0 : _c.height) || 0}` }, GuidelineProps, { className: (0, style_react_1.classNames)([
|
966
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
967
|
+
'onesy-Chart-guidelines',
|
968
|
+
'onesy-Chart-guidelines-vertical'
|
969
|
+
],
|
970
|
+
GuidelineProps === null || GuidelineProps === void 0 ? void 0 : GuidelineProps.className,
|
971
|
+
classes.guidelines,
|
972
|
+
classes.guidelines_vertical
|
973
|
+
]) }))), ['both', 'horizontal'].includes(guidelines) && ((0, jsx_runtime_1.jsx)("path", Object.assign({ d: `M 0 ${(guidelinesPosition === null || guidelinesPosition === void 0 ? void 0 : guidelinesPosition.y) || 0} ${((_d = rects === null || rects === void 0 ? void 0 : rects.wrapper) === null || _d === void 0 ? void 0 : _d.width) || 0} ${(guidelinesPosition === null || guidelinesPosition === void 0 ? void 0 : guidelinesPosition.y) || 0}` }, GuidelineProps, { className: (0, style_react_1.classNames)([
|
974
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
975
|
+
'onesy-Chart-guidelines',
|
976
|
+
'onesy-Chart-guidelines-horizontal'
|
977
|
+
],
|
978
|
+
GuidelineProps === null || GuidelineProps === void 0 ? void 0 : GuidelineProps.className,
|
979
|
+
classes.guidelines,
|
980
|
+
classes.guidelines_horizontal
|
981
|
+
]) })))] }), points__ && points && ((0, jsx_runtime_1.jsx)("g", Object.assign({}, PointsProps, { className: (0, style_react_1.classNames)([
|
982
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
983
|
+
'onesy-Chart-points'
|
984
|
+
],
|
985
|
+
PointsProps === null || PointsProps === void 0 ? void 0 : PointsProps.className,
|
986
|
+
classes.points
|
987
|
+
]) }, { children: points.map((item, index) => (react_1.default.cloneElement(item, {
|
988
|
+
key: index
|
989
|
+
}))) })))] })), borders && (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [borderTop && ((0, jsx_runtime_1.jsx)("div", { className: (0, style_react_1.classNames)([
|
990
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
991
|
+
'onesy-Chart-border',
|
992
|
+
'onesy-Chart-border-x',
|
993
|
+
'onesy-Chart-border-top'
|
994
|
+
],
|
995
|
+
classes.border,
|
996
|
+
classes.borderX,
|
997
|
+
classes.borderTop
|
998
|
+
]) })), borderBottom && ((0, jsx_runtime_1.jsx)("div", { className: (0, style_react_1.classNames)([
|
999
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
1000
|
+
'onesy-Chart-border',
|
1001
|
+
'onesy-Chart-border-x',
|
1002
|
+
'onesy-Chart-border-bottom'
|
1003
|
+
],
|
1004
|
+
classes.border,
|
1005
|
+
classes.borderX,
|
1006
|
+
classes.borderBottom
|
1007
|
+
]) })), borderStart && ((0, jsx_runtime_1.jsx)("div", { className: (0, style_react_1.classNames)([
|
1008
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
1009
|
+
'onesy-Chart-border',
|
1010
|
+
'onesy-Chart-border-y',
|
1011
|
+
'onesy-Chart-border-start'
|
1012
|
+
],
|
1013
|
+
classes.border,
|
1014
|
+
classes.borderY,
|
1015
|
+
classes.boderStart
|
1016
|
+
]) })), borderLeft && ((0, jsx_runtime_1.jsx)("div", { className: (0, style_react_1.classNames)([
|
1017
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
1018
|
+
'onesy-Chart-border',
|
1019
|
+
'onesy-Chart-border-y',
|
1020
|
+
'onesy-Chart-border-left'
|
1021
|
+
],
|
1022
|
+
classes.border,
|
1023
|
+
classes.borderY,
|
1024
|
+
classes.borderLeft
|
1025
|
+
]) })), borderEnd && ((0, jsx_runtime_1.jsx)("div", { className: (0, style_react_1.classNames)([
|
1026
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
1027
|
+
'onesy-Chart-border',
|
1028
|
+
'onesy-Chart-border-y',
|
1029
|
+
'onesy-Chart-border-end'
|
1030
|
+
],
|
1031
|
+
classes.border,
|
1032
|
+
classes.borderY,
|
1033
|
+
classes.borderEnd
|
1034
|
+
]) })), borderRight && ((0, jsx_runtime_1.jsx)("div", { className: (0, style_react_1.classNames)([
|
1035
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
1036
|
+
'onesy-Chart-border',
|
1037
|
+
'onesy-Chart-border-y',
|
1038
|
+
'onesy-Chart-border-right'
|
1039
|
+
],
|
1040
|
+
classes.border,
|
1041
|
+
classes.borderY,
|
1042
|
+
classes.borderRight
|
1043
|
+
]) }))] }), !!labels__ && labelsX && (labels === null || labels === void 0 ? void 0 : labels.x) && ((0, jsx_runtime_1.jsx)(Line, Object.assign({ gap: 0, direction: 'row', align: 'flex-start', className: (0, style_react_1.classNames)([
|
1044
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
1045
|
+
'onesy-Chart-labels',
|
1046
|
+
'onesy-Chart-labels-x'
|
1047
|
+
],
|
1048
|
+
classes.labels,
|
1049
|
+
classes.labels_x
|
1050
|
+
]) }, { children: labels.x.map((item, index) => {
|
1051
|
+
const itemProps = {
|
1052
|
+
key: index,
|
1053
|
+
version: 'b3',
|
1054
|
+
className: (0, style_react_1.classNames)([
|
1055
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
1056
|
+
'onesy-Chart-label',
|
1057
|
+
'onesy-Chart-label-x'
|
1058
|
+
],
|
1059
|
+
classes.label,
|
1060
|
+
classes.label_x
|
1061
|
+
]),
|
1062
|
+
style: {
|
1063
|
+
left: `${item.percentage}%`
|
1064
|
+
}
|
1065
|
+
};
|
1066
|
+
return ((0, utils_1.is)('function', labelRender) ?
|
1067
|
+
labelRender(Object.assign(Object.assign({}, item), { axis: 'x', props: itemProps })) :
|
1068
|
+
(0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'b3', className: (0, style_react_1.classNames)([
|
1069
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
1070
|
+
'onesy-Chart-label',
|
1071
|
+
'onesy-Chart-label-x'
|
1072
|
+
],
|
1073
|
+
classes.label,
|
1074
|
+
classes.label_x
|
1075
|
+
]), style: {
|
1076
|
+
left: `${item.percentage}%`
|
1077
|
+
} }, { children: (0, utils_1.is)('function', labelResolve) ? labelResolve(item.label, 'x', item) : item.label }), index));
|
1078
|
+
}) }))), !!labels__ && labelsY && (labels === null || labels === void 0 ? void 0 : labels.y) && ((0, jsx_runtime_1.jsx)(Line, Object.assign({ gap: 0, direction: 'column', align: 'flex-end', justify: 'center', className: (0, style_react_1.classNames)([
|
1079
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
1080
|
+
'onesy-Chart-labels',
|
1081
|
+
'onesy-Chart-labels-y'
|
1082
|
+
],
|
1083
|
+
classes.labels,
|
1084
|
+
classes.labels_y
|
1085
|
+
]) }, { children: labels.y.map((item, index) => ((0, utils_1.is)('function', labelRender) ?
|
1086
|
+
labelRender(Object.assign(Object.assign({}, item), { axis: 'y' })) :
|
1087
|
+
(0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'b3', className: (0, style_react_1.classNames)([
|
1088
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
1089
|
+
'onesy-Chart-label',
|
1090
|
+
'onesy-Chart-label-y'
|
1091
|
+
],
|
1092
|
+
classes.label,
|
1093
|
+
classes.label_y
|
1094
|
+
]), style: {
|
1095
|
+
bottom: `${item.percentage}%`
|
1096
|
+
} }, { children: (0, utils_1.is)('function', labelResolve) ? labelResolve(item.label, 'y', item) : item.label }), index))) }))), !!marks__ && marksX && (marks === null || marks === void 0 ? void 0 : marks.x) && ((0, jsx_runtime_1.jsx)(Line, Object.assign({ gap: 0, direction: 'row', align: 'flex-start', className: (0, style_react_1.classNames)([
|
1097
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
1098
|
+
'onesy-Chart-marks',
|
1099
|
+
'onesy-Chart-marks-x'
|
1100
|
+
],
|
1101
|
+
classes.marks,
|
1102
|
+
classes.marks_x
|
1103
|
+
]) }, { children: marks.x.map((item, index) => ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: (0, style_react_1.classNames)([
|
1104
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
1105
|
+
'onesy-Chart-mark',
|
1106
|
+
'onesy-Chart-mark-x'
|
1107
|
+
],
|
1108
|
+
classes.mark,
|
1109
|
+
classes.mark_x
|
1110
|
+
]), style: {
|
1111
|
+
left: `${item.percentage}%`
|
1112
|
+
} }, { children: item.mark }), index))) }))), !!marks__ && marksY && (marks === null || marks === void 0 ? void 0 : marks.y) && ((0, jsx_runtime_1.jsx)(Line, Object.assign({ gap: 0, direction: 'column', align: 'flex-end', justify: 'center', className: (0, style_react_1.classNames)([
|
1113
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
1114
|
+
'onesy-Chart-marks',
|
1115
|
+
'onesy-Chart-marks-y'
|
1116
|
+
],
|
1117
|
+
classes.marks,
|
1118
|
+
classes.marks_y
|
1119
|
+
]) }, { children: marks.y.map((item, index) => ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: (0, style_react_1.classNames)([
|
1120
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
1121
|
+
'onesy-Chart-mark',
|
1122
|
+
'onesy-Chart-mark-y'
|
1123
|
+
],
|
1124
|
+
classes.mark,
|
1125
|
+
classes.mark_y
|
1126
|
+
]), style: {
|
1127
|
+
bottom: `${item.percentage}%`
|
1128
|
+
} }, { children: item.mark }), index))) }))), (names === null || names === void 0 ? void 0 : names.x) && nameX && ((0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'b2', className: (0, style_react_1.classNames)([
|
1129
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
1130
|
+
'onesy-Chart-name',
|
1131
|
+
'onesy-Chart-name-x'
|
1132
|
+
],
|
1133
|
+
classes.name,
|
1134
|
+
classes.name_x
|
1135
|
+
]) }, { children: names.x }))), (names === null || names === void 0 ? void 0 : names.y) && nameY && ((0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'b2', className: (0, style_react_1.classNames)([
|
1136
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
1137
|
+
'onesy-Chart-name',
|
1138
|
+
'onesy-Chart-name-y'
|
1139
|
+
],
|
1140
|
+
classes.name,
|
1141
|
+
classes.name_y
|
1142
|
+
]) }, { children: names.y })))] }));
|
1143
|
+
} })) })), (legend__ && legendPosition === 'bottom' && legend) && ((0, jsx_runtime_1.jsx)(Line, Object.assign({ gap: 2, direction: 'row', align: 'center', justify: 'center', wrap: 'wrap' }, LegendProps, { className: (0, style_react_1.classNames)([
|
1144
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
1145
|
+
'onesy-Chart-legend',
|
1146
|
+
`onesy-Chart-legend-position-${legendPosition}`
|
1147
|
+
],
|
1148
|
+
LegendProps === null || LegendProps === void 0 ? void 0 : LegendProps.className,
|
1149
|
+
classes.legend,
|
1150
|
+
classes[`legend_position_${legendPosition}`],
|
1151
|
+
((labels === null || labels === void 0 ? void 0 : labels.y) && labelsY) && classes.legend_offset_labels_y,
|
1152
|
+
((names === null || names === void 0 ? void 0 : names.y) && nameY) && classes.legend_offset_names_y
|
1153
|
+
]) }, { children: legend.map(({ item, element }) => {
|
1154
|
+
var _a;
|
1155
|
+
return (react_1.default.cloneElement(element, {
|
1156
|
+
onClick: () => onLegendClick(item.name),
|
1157
|
+
className: (0, style_react_1.classNames)([
|
1158
|
+
(_a = element === null || element === void 0 ? void 0 : element.props) === null || _a === void 0 ? void 0 : _a.className,
|
1159
|
+
legendManageVisibility && classes.legend_item_manage_visibility,
|
1160
|
+
refs.visible.current[item.name] === false && classes.legend_item_hidden
|
1161
|
+
])
|
1162
|
+
}));
|
1163
|
+
}) }))), tooltip && ((0, jsx_runtime_1.jsx)(Append, Object.assign({ open: true, offset: [16, 16], padding: [14, 14], element: ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, style_react_1.classNames)([
|
1164
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
1165
|
+
'onesy-Chart-append-wrapper'
|
1166
|
+
],
|
1167
|
+
classes.append_wrapper
|
1168
|
+
]), style: Object.assign({}, refs.appendStyle.current) }, { children: (0, jsx_runtime_1.jsx)(Grow, Object.assign({ in: append === null || append === void 0 ? void 0 : append.open, onAdded: () => {
|
1169
|
+
refs.appendStyle.current = {
|
1170
|
+
transition: theme.methods.transitions.make('transform', { duration: 150 })
|
1171
|
+
};
|
1172
|
+
}, onEnter: () => {
|
1173
|
+
refs.appendStyle.current = {
|
1174
|
+
transition: theme.methods.transitions.make('transform', { duration: 150 })
|
1175
|
+
};
|
1176
|
+
}, onExited: () => {
|
1177
|
+
refs.appendStyle.current = {};
|
1178
|
+
}, add: true }, { children: (append === null || append === void 0 ? void 0 : append.element) || ((0, jsx_runtime_1.jsxs)(Line, Object.assign({ tonal: tonal, color: color, elevation: 1, gap: 0.4, direction: 'column', Component: Surface, className: (0, style_react_1.classNames)([
|
1179
|
+
(0, utils_2.staticClassName)('Chart', theme) && [
|
1180
|
+
'onesy-Chart-append'
|
1181
|
+
],
|
1182
|
+
classes.append
|
1183
|
+
]) }, { children: [(0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 1, direction: 'row', align: 'center' }, { children: [(0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'b3', style: {
|
1184
|
+
fontWeight: 600
|
1185
|
+
} }, { children: (names === null || names === void 0 ? void 0 : names.y) || 'y' })), (0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'b3' }, { children: (0, utils_1.is)('function', labelResolve) ? labelResolve((_a = append === null || append === void 0 ? void 0 : append.values) === null || _a === void 0 ? void 0 : _a[1], 'y', append, 'individual') : (_b = append === null || append === void 0 ? void 0 : append.values) === null || _b === void 0 ? void 0 : _b[1] }))] })), (0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 1, direction: 'row', align: 'center' }, { children: [(0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'b3', style: {
|
1186
|
+
fontWeight: 600
|
1187
|
+
} }, { children: (names === null || names === void 0 ? void 0 : names.x) || 'x' })), (0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'b3' }, { children: (0, utils_1.is)('function', labelResolve) ? labelResolve((_c = append === null || append === void 0 ? void 0 : append.values) === null || _c === void 0 ? void 0 : _c[0], 'x', append, 'individual') : (_d = append === null || append === void 0 ? void 0 : append.values) === null || _d === void 0 ? void 0 : _d[0] }))] }))] }))) })) }))), anchor: append === null || append === void 0 ? void 0 : append.rect, portal: true, alignment: 'center', position: 'top' }, AppendProps)))] })));
|
1188
|
+
});
|
1189
|
+
Chart.displayName = 'onesy-Chart';
|
1190
|
+
exports.default = Chart;
|