@onesy/ui-react 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.d.ts +38 -0
- package/Accordion/Accordion.js +252 -0
- package/Accordion/index.d.ts +1 -0
- package/Accordion/index.js +8 -0
- package/Accordion/package.json +6 -0
- package/AdvancedTextField/AdvancedTextField.d.ts +13 -0
- package/AdvancedTextField/AdvancedTextField.js +164 -0
- package/AdvancedTextField/index.d.ts +1 -0
- package/AdvancedTextField/index.js +8 -0
- package/AdvancedTextField/package.json +6 -0
- package/Append/Append.d.ts +40 -0
- package/Append/Append.js +528 -0
- package/Append/index.d.ts +1 -0
- package/Append/index.js +8 -0
- package/Append/package.json +6 -0
- package/AreaChart/AreaChart.d.ts +9 -0
- package/AreaChart/AreaChart.js +43 -0
- package/AreaChart/index.d.ts +1 -0
- package/AreaChart/index.js +8 -0
- package/AreaChart/package.json +6 -0
- package/AreaChartItem/AreaChartItem.d.ts +22 -0
- package/AreaChartItem/AreaChartItem.js +249 -0
- package/AreaChartItem/index.d.ts +1 -0
- package/AreaChartItem/index.js +8 -0
- package/AreaChartItem/package.json +6 -0
- package/AudioPlayer/AudioPlayer.d.ts +53 -0
- package/AudioPlayer/AudioPlayer.js +494 -0
- package/AudioPlayer/index.d.ts +1 -0
- package/AudioPlayer/index.js +8 -0
- package/AudioPlayer/package.json +6 -0
- package/AudioRecorder/AudioRecorder.d.ts +31 -0
- package/AudioRecorder/AudioRecorder.js +242 -0
- package/AudioRecorder/index.d.ts +1 -0
- package/AudioRecorder/index.js +8 -0
- package/AudioRecorder/package.json +6 -0
- package/AutoComplete/AutoComplete.d.ts +62 -0
- package/AutoComplete/AutoComplete.js +586 -0
- package/AutoComplete/index.d.ts +1 -0
- package/AutoComplete/index.js +8 -0
- package/AutoComplete/package.json +6 -0
- package/AutoCompleteCountry/AutoCompleteCountry.d.ts +6 -0
- package/AutoCompleteCountry/AutoCompleteCountry.js +64 -0
- package/AutoCompleteCountry/index.d.ts +1 -0
- package/AutoCompleteCountry/index.js +8 -0
- package/AutoCompleteCountry/package.json +6 -0
- package/AutoCompleteCurrency/AutoCompleteCurrency.d.ts +6 -0
- package/AutoCompleteCurrency/AutoCompleteCurrency.js +63 -0
- package/AutoCompleteCurrency/index.d.ts +1 -0
- package/AutoCompleteCurrency/index.js +8 -0
- package/AutoCompleteCurrency/package.json +6 -0
- package/AutoCompleteGooglePlaces/AutoCompleteGooglePlaces.d.ts +6 -0
- package/AutoCompleteGooglePlaces/AutoCompleteGooglePlaces.js +85 -0
- package/AutoCompleteGooglePlaces/index.d.ts +1 -0
- package/AutoCompleteGooglePlaces/index.js +8 -0
- package/AutoCompleteGooglePlaces/package.json +6 -0
- package/Avatar/Avatar.d.ts +13 -0
- package/Avatar/Avatar.js +88 -0
- package/Avatar/index.d.ts +1 -0
- package/Avatar/index.js +8 -0
- package/Avatar/package.json +6 -0
- package/AvatarGroup/AvatarGroup.d.ts +15 -0
- package/AvatarGroup/AvatarGroup.js +91 -0
- package/AvatarGroup/index.d.ts +1 -0
- package/AvatarGroup/index.js +8 -0
- package/AvatarGroup/package.json +6 -0
- package/Backdrop/Backdrop.d.ts +17 -0
- package/Backdrop/Backdrop.js +145 -0
- package/Backdrop/index.d.ts +1 -0
- package/Backdrop/index.js +8 -0
- package/Backdrop/package.json +6 -0
- package/Badge/Badge.d.ts +14 -0
- package/Badge/Badge.js +99 -0
- package/Badge/index.d.ts +1 -0
- package/Badge/index.js +8 -0
- package/Badge/package.json +6 -0
- package/Banner/Banner.d.ts +11 -0
- package/Banner/Banner.js +89 -0
- package/Banner/index.d.ts +1 -0
- package/Banner/index.js +8 -0
- package/Banner/package.json +6 -0
- package/BottomAppBar/BottomAppBar.d.ts +11 -0
- package/BottomAppBar/BottomAppBar.js +202 -0
- package/BottomAppBar/index.d.ts +1 -0
- package/BottomAppBar/index.js +8 -0
- package/BottomAppBar/package.json +6 -0
- package/BottomSheet/BottomSheet.d.ts +6 -0
- package/BottomSheet/BottomSheet.js +63 -0
- package/BottomSheet/index.d.ts +1 -0
- package/BottomSheet/index.js +8 -0
- package/BottomSheet/package.json +6 -0
- package/Box/Box.d.ts +8 -0
- package/Box/Box.js +38 -0
- package/Box/index.d.ts +1 -0
- package/Box/index.js +8 -0
- package/Box/package.json +6 -0
- package/Breadcrumbs/Breadcrumbs.d.ts +10 -0
- package/Breadcrumbs/Breadcrumbs.js +149 -0
- package/Breadcrumbs/index.d.ts +1 -0
- package/Breadcrumbs/index.js +8 -0
- package/Breadcrumbs/package.json +6 -0
- package/BubbleChart/BubbleChart.d.ts +6 -0
- package/BubbleChart/BubbleChart.js +137 -0
- package/BubbleChart/index.d.ts +1 -0
- package/BubbleChart/index.js +8 -0
- package/BubbleChart/package.json +6 -0
- package/BubbleChartItem/BubbleChartItem.d.ts +21 -0
- package/BubbleChartItem/BubbleChartItem.js +165 -0
- package/BubbleChartItem/index.d.ts +1 -0
- package/BubbleChartItem/index.js +8 -0
- package/BubbleChartItem/package.json +6 -0
- package/Button/Button.d.ts +39 -0
- package/Button/Button.js +476 -0
- package/Button/index.d.ts +1 -0
- package/Button/index.js +8 -0
- package/Button/package.json +6 -0
- package/Buttons/Buttons.d.ts +26 -0
- package/Buttons/Buttons.js +302 -0
- package/Buttons/index.d.ts +1 -0
- package/Buttons/index.js +8 -0
- package/Buttons/package.json +6 -0
- package/Calendar/Calendar.d.ts +44 -0
- package/Calendar/Calendar.js +462 -0
- package/Calendar/index.d.ts +1 -0
- package/Calendar/index.js +8 -0
- package/Calendar/package.json +6 -0
- package/CalendarAvailability/CalendarAvailability.d.ts +46 -0
- package/CalendarAvailability/CalendarAvailability.js +400 -0
- package/CalendarAvailability/index.d.ts +1 -0
- package/CalendarAvailability/index.js +8 -0
- package/CalendarAvailability/package.json +6 -0
- package/CalendarMenu/CalendarMenu.d.ts +18 -0
- package/CalendarMenu/CalendarMenu.js +313 -0
- package/CalendarMenu/index.d.ts +1 -0
- package/CalendarMenu/index.js +8 -0
- package/CalendarMenu/package.json +6 -0
- package/CalendarMonth/CalendarMonth.d.ts +51 -0
- package/CalendarMonth/CalendarMonth.js +513 -0
- package/CalendarMonth/index.d.ts +1 -0
- package/CalendarMonth/index.js +8 -0
- package/CalendarMonth/package.json +6 -0
- package/CalendarViews/CalendarViews.d.ts +30 -0
- package/CalendarViews/CalendarViews.js +261 -0
- package/CalendarViews/index.d.ts +1 -0
- package/CalendarViews/index.js +8 -0
- package/CalendarViews/package.json +6 -0
- package/CalendarWeek/CalendarWeek.d.ts +18 -0
- package/CalendarWeek/CalendarWeek.js +392 -0
- package/CalendarWeek/index.d.ts +1 -0
- package/CalendarWeek/index.js +8 -0
- package/CalendarWeek/package.json +6 -0
- package/Card/Card.d.ts +15 -0
- package/Card/Card.js +106 -0
- package/Card/index.d.ts +1 -0
- package/Card/index.js +8 -0
- package/Card/package.json +6 -0
- package/CardButton/CardButton.d.ts +13 -0
- package/CardButton/CardButton.js +62 -0
- package/CardButton/index.d.ts +1 -0
- package/CardButton/index.js +8 -0
- package/CardButton/package.json +6 -0
- package/CardFooter/CardFooter.d.ts +11 -0
- package/CardFooter/CardFooter.js +42 -0
- package/CardFooter/index.d.ts +1 -0
- package/CardFooter/index.js +8 -0
- package/CardFooter/package.json +6 -0
- package/CardHeader/CardHeader.d.ts +11 -0
- package/CardHeader/CardHeader.js +47 -0
- package/CardHeader/index.d.ts +1 -0
- package/CardHeader/index.js +8 -0
- package/CardHeader/package.json +6 -0
- package/CardImage/CardImage.d.ts +14 -0
- package/CardImage/CardImage.js +69 -0
- package/CardImage/index.d.ts +1 -0
- package/CardImage/index.js +8 -0
- package/CardImage/package.json +6 -0
- package/CardMain/CardMain.d.ts +11 -0
- package/CardMain/CardMain.js +42 -0
- package/CardMain/index.d.ts +1 -0
- package/CardMain/index.js +8 -0
- package/CardMain/package.json +6 -0
- package/Carousel/Carousel.d.ts +84 -0
- package/Carousel/Carousel.js +935 -0
- package/Carousel/index.d.ts +1 -0
- package/Carousel/index.js +8 -0
- package/Carousel/package.json +6 -0
- package/Chart/Chart.d.ts +133 -0
- package/Chart/Chart.js +1190 -0
- package/Chart/index.d.ts +1 -0
- package/Chart/index.js +8 -0
- package/Chart/package.json +6 -0
- package/Checkbox/Checkbox.d.ts +17 -0
- package/Checkbox/Checkbox.js +320 -0
- package/Checkbox/index.d.ts +1 -0
- package/Checkbox/index.js +8 -0
- package/Checkbox/package.json +6 -0
- package/Chip/Chip.d.ts +13 -0
- package/Chip/Chip.js +109 -0
- package/Chip/index.d.ts +1 -0
- package/Chip/index.js +8 -0
- package/Chip/package.json +6 -0
- package/Chips/Chips.d.ts +11 -0
- package/Chips/Chips.js +104 -0
- package/Chips/index.d.ts +1 -0
- package/Chips/index.js +8 -0
- package/Chips/package.json +6 -0
- package/ClickListener/ClickListener.d.ts +14 -0
- package/ClickListener/ClickListener.js +94 -0
- package/ClickListener/index.d.ts +1 -0
- package/ClickListener/index.js +8 -0
- package/ClickListener/package.json +6 -0
- package/Clock/Clock.d.ts +35 -0
- package/Clock/Clock.js +428 -0
- package/Clock/index.d.ts +1 -0
- package/Clock/index.js +8 -0
- package/Clock/package.json +6 -0
- package/ColorTextField/ColorTextField.d.ts +12 -0
- package/ColorTextField/ColorTextField.js +180 -0
- package/ColorTextField/index.d.ts +1 -0
- package/ColorTextField/index.js +8 -0
- package/ColorTextField/package.json +6 -0
- package/ColumnChart/ColumnChart.d.ts +6 -0
- package/ColumnChart/ColumnChart.js +49 -0
- package/ColumnChart/index.d.ts +1 -0
- package/ColumnChart/index.js +8 -0
- package/ColumnChart/package.json +6 -0
- package/ColumnChartItem/ColumnChartItem.d.ts +20 -0
- package/ColumnChartItem/ColumnChartItem.js +153 -0
- package/ColumnChartItem/index.d.ts +1 -0
- package/ColumnChartItem/index.js +8 -0
- package/ColumnChartItem/package.json +6 -0
- package/Confirm/Confirm.d.ts +35 -0
- package/Confirm/Confirm.js +133 -0
- package/Confirm/Context.d.ts +2 -0
- package/Confirm/Context.js +8 -0
- package/Confirm/index.d.ts +4 -0
- package/Confirm/index.js +14 -0
- package/Confirm/package.json +6 -0
- package/Confirm/useConfirm.d.ts +2 -0
- package/Confirm/useConfirm.js +12 -0
- package/Container/Container.d.ts +12 -0
- package/Container/Container.js +137 -0
- package/Container/index.d.ts +1 -0
- package/Container/index.js +8 -0
- package/Container/package.json +6 -0
- package/Countdown/Countdown.d.ts +25 -0
- package/Countdown/Countdown.js +265 -0
- package/Countdown/index.d.ts +1 -0
- package/Countdown/index.js +8 -0
- package/Countdown/package.json +6 -0
- package/DatePicker/DatePicker.d.ts +72 -0
- package/DatePicker/DatePicker.js +559 -0
- package/DatePicker/index.d.ts +1 -0
- package/DatePicker/index.js +8 -0
- package/DatePicker/package.json +6 -0
- package/DateRangePicker/DateRangePicker.d.ts +6 -0
- package/DateRangePicker/DateRangePicker.js +40 -0
- package/DateRangePicker/index.d.ts +1 -0
- package/DateRangePicker/index.js +8 -0
- package/DateRangePicker/package.json +6 -0
- package/DateTimePicker/DateTimePicker.d.ts +61 -0
- package/DateTimePicker/DateTimePicker.js +476 -0
- package/DateTimePicker/index.d.ts +1 -0
- package/DateTimePicker/index.js +8 -0
- package/DateTimePicker/package.json +6 -0
- package/DateTimeRangePicker/DateTimeRangePicker.d.ts +6 -0
- package/DateTimeRangePicker/DateTimeRangePicker.js +40 -0
- package/DateTimeRangePicker/index.d.ts +1 -0
- package/DateTimeRangePicker/index.js +8 -0
- package/DateTimeRangePicker/package.json +6 -0
- package/Divider/Divider.d.ts +13 -0
- package/Divider/Divider.js +188 -0
- package/Divider/index.d.ts +1 -0
- package/Divider/index.js +8 -0
- package/Divider/package.json +6 -0
- package/DonutChart/DonutChart.d.ts +6 -0
- package/DonutChart/DonutChart.js +46 -0
- package/DonutChart/index.d.ts +1 -0
- package/DonutChart/index.js +8 -0
- package/DonutChart/package.json +6 -0
- package/DragAndDropList/DragAndDropList.d.ts +16 -0
- package/DragAndDropList/DragAndDropList.js +163 -0
- package/DragAndDropList/index.d.ts +1 -0
- package/DragAndDropList/index.js +8 -0
- package/DragAndDropList/package.json +6 -0
- package/Drawing/Drawing.d.ts +48 -0
- package/Drawing/Drawing.js +532 -0
- package/Drawing/index.d.ts +1 -0
- package/Drawing/index.js +8 -0
- package/Drawing/package.json +6 -0
- package/DropZone/DropZone.d.ts +15 -0
- package/DropZone/DropZone.js +205 -0
- package/DropZone/index.d.ts +1 -0
- package/DropZone/index.js +8 -0
- package/DropZone/package.json +6 -0
- package/Emojis/Emojis.d.ts +22 -0
- package/Emojis/Emojis.js +319 -0
- package/Emojis/emojis_list.d.ts +18 -0
- package/Emojis/emojis_list.js +9251 -0
- package/Emojis/index.d.ts +2 -0
- package/Emojis/index.js +10 -0
- package/Emojis/package.json +6 -0
- package/Expand/Expand.d.ts +12 -0
- package/Expand/Expand.js +156 -0
- package/Expand/index.d.ts +1 -0
- package/Expand/index.js +8 -0
- package/Expand/package.json +6 -0
- package/Fab/Fab.d.ts +6 -0
- package/Fab/Fab.js +29 -0
- package/Fab/index.d.ts +1 -0
- package/Fab/index.js +8 -0
- package/Fab/package.json +6 -0
- package/Fade/Fade.d.ts +6 -0
- package/Fade/Fade.js +106 -0
- package/Fade/index.d.ts +1 -0
- package/Fade/index.js +8 -0
- package/Fade/package.json +6 -0
- package/FileChoose/FileChoose.d.ts +28 -0
- package/FileChoose/FileChoose.js +154 -0
- package/FileChoose/index.d.ts +1 -0
- package/FileChoose/index.js +8 -0
- package/FileChoose/package.json +6 -0
- package/Focus/Focus.d.ts +8 -0
- package/Focus/Focus.js +96 -0
- package/Focus/index.d.ts +1 -0
- package/Focus/index.js +8 -0
- package/Focus/package.json +6 -0
- package/Form/Form.d.ts +25 -0
- package/Form/Form.js +125 -0
- package/Form/index.d.ts +1 -0
- package/Form/index.js +8 -0
- package/Form/package.json +6 -0
- package/FormRow/FormRow.d.ts +20 -0
- package/FormRow/FormRow.js +82 -0
- package/FormRow/index.d.ts +1 -0
- package/FormRow/index.js +8 -0
- package/FormRow/package.json +6 -0
- package/Forms/Forms.d.ts +7 -0
- package/Forms/Forms.js +44 -0
- package/Forms/index.d.ts +1 -0
- package/Forms/index.js +8 -0
- package/Forms/package.json +6 -0
- package/Frame/Frame.d.ts +21 -0
- package/Frame/Frame.js +154 -0
- package/Frame/index.d.ts +1 -0
- package/Frame/index.js +8 -0
- package/Frame/package.json +6 -0
- package/Grid/Grid.d.ts +14 -0
- package/Grid/Grid.js +169 -0
- package/Grid/index.d.ts +1 -0
- package/Grid/index.js +8 -0
- package/Grid/package.json +6 -0
- package/Grow/Grow.d.ts +6 -0
- package/Grow/Grow.js +114 -0
- package/Grow/index.d.ts +1 -0
- package/Grow/index.js +8 -0
- package/Grow/package.json +6 -0
- package/HTMLCanvas/HTMLCanvas.d.ts +43 -0
- package/HTMLCanvas/HTMLCanvas.js +549 -0
- package/HTMLCanvas/index.d.ts +2 -0
- package/HTMLCanvas/index.js +23 -0
- package/HTMLCanvas/package.json +6 -0
- package/IFrame/IFrame.d.ts +9 -0
- package/IFrame/IFrame.js +117 -0
- package/IFrame/index.d.ts +1 -0
- package/IFrame/index.js +8 -0
- package/IFrame/package.json +6 -0
- package/Icon/Icon.d.ts +17 -0
- package/Icon/Icon.js +98 -0
- package/Icon/index.d.ts +2 -0
- package/Icon/index.js +23 -0
- package/Icon/package.json +6 -0
- package/IconButton/IconButton.d.ts +6 -0
- package/IconButton/IconButton.js +40 -0
- package/IconButton/index.d.ts +1 -0
- package/IconButton/index.js +8 -0
- package/IconButton/package.json +6 -0
- package/Image/Image.d.ts +27 -0
- package/Image/Image.js +259 -0
- package/Image/index.d.ts +1 -0
- package/Image/index.js +8 -0
- package/Image/package.json +6 -0
- package/ImageCrop/ImageCrop.d.ts +28 -0
- package/ImageCrop/ImageCrop.js +1076 -0
- package/ImageCrop/index.d.ts +1 -0
- package/ImageCrop/index.js +8 -0
- package/ImageCrop/package.json +6 -0
- package/ImageEdit/ImageEdit.d.ts +68 -0
- package/ImageEdit/ImageEdit.js +789 -0
- package/ImageEdit/index.d.ts +1 -0
- package/ImageEdit/index.js +8 -0
- package/ImageEdit/package.json +6 -0
- package/ImageGallery/ImageGallery.d.ts +30 -0
- package/ImageGallery/ImageGallery.js +483 -0
- package/ImageGallery/index.d.ts +1 -0
- package/ImageGallery/index.js +8 -0
- package/ImageGallery/package.json +6 -0
- package/ImageList/ImageList.d.ts +11 -0
- package/ImageList/ImageList.js +134 -0
- package/ImageList/index.d.ts +1 -0
- package/ImageList/index.js +8 -0
- package/ImageList/package.json +6 -0
- package/ImageListItem/ImageListItem.d.ts +10 -0
- package/ImageListItem/ImageListItem.js +92 -0
- package/ImageListItem/index.d.ts +1 -0
- package/ImageListItem/index.js +8 -0
- package/ImageListItem/package.json +6 -0
- package/ImageListItemBox/ImageListItemBox.d.ts +8 -0
- package/ImageListItemBox/ImageListItemBox.js +53 -0
- package/ImageListItemBox/index.d.ts +1 -0
- package/ImageListItemBox/index.js +8 -0
- package/ImageListItemBox/package.json +6 -0
- package/Info/Info.d.ts +15 -0
- package/Info/Info.js +66 -0
- package/Info/index.d.ts +1 -0
- package/Info/index.js +8 -0
- package/Info/package.json +6 -0
- package/Interaction/Interaction.d.ts +21 -0
- package/Interaction/Interaction.js +349 -0
- package/Interaction/index.d.ts +1 -0
- package/Interaction/index.js +8 -0
- package/Interaction/package.json +6 -0
- package/Keyframes/Context.d.ts +3 -0
- package/Keyframes/Context.js +8 -0
- package/Keyframes/Keyframes.d.ts +32 -0
- package/Keyframes/Keyframes.js +177 -0
- package/Keyframes/index.d.ts +4 -0
- package/Keyframes/index.js +27 -0
- package/Keyframes/package.json +6 -0
- package/Keyframes/useKeyframes.d.ts +1 -0
- package/Keyframes/useKeyframes.js +12 -0
- package/LICENSE +21 -0
- package/Label/Label.d.ts +26 -0
- package/Label/Label.js +155 -0
- package/Label/index.d.ts +1 -0
- package/Label/index.js +8 -0
- package/Label/package.json +6 -0
- package/Labels/Labels.d.ts +22 -0
- package/Labels/Labels.js +102 -0
- package/Labels/index.d.ts +1 -0
- package/Labels/index.js +8 -0
- package/Labels/package.json +6 -0
- package/Line/Line.d.ts +24 -0
- package/Line/Line.js +178 -0
- package/Line/index.d.ts +1 -0
- package/Line/index.js +8 -0
- package/Line/package.json +6 -0
- package/LineChart/LineChart.d.ts +8 -0
- package/LineChart/LineChart.js +43 -0
- package/LineChart/index.d.ts +1 -0
- package/LineChart/index.js +8 -0
- package/LineChart/package.json +6 -0
- package/LineChartItem/LineChartItem.d.ts +21 -0
- package/LineChartItem/LineChartItem.js +188 -0
- package/LineChartItem/index.d.ts +1 -0
- package/LineChartItem/index.js +8 -0
- package/LineChartItem/package.json +6 -0
- package/LinearMeter/LinearMeter.d.ts +53 -0
- package/LinearMeter/LinearMeter.js +401 -0
- package/LinearMeter/index.d.ts +1 -0
- package/LinearMeter/index.js +8 -0
- package/LinearMeter/package.json +6 -0
- package/LinearProgress/LinearProgress.d.ts +15 -0
- package/LinearProgress/LinearProgress.js +274 -0
- package/LinearProgress/index.d.ts +1 -0
- package/LinearProgress/index.js +8 -0
- package/LinearProgress/package.json +6 -0
- package/Link/Link.d.ts +9 -0
- package/Link/Link.js +133 -0
- package/Link/index.d.ts +1 -0
- package/Link/index.js +8 -0
- package/Link/package.json +6 -0
- package/Links/Links.d.ts +32 -0
- package/Links/Links.js +159 -0
- package/Links/index.d.ts +1 -0
- package/Links/index.js +8 -0
- package/Links/package.json +6 -0
- package/List/List.d.ts +17 -0
- package/List/List.js +118 -0
- package/List/index.d.ts +1 -0
- package/List/index.js +8 -0
- package/List/package.json +6 -0
- package/ListItem/ListItem.d.ts +48 -0
- package/ListItem/ListItem.js +363 -0
- package/ListItem/index.d.ts +1 -0
- package/ListItem/index.js +8 -0
- package/ListItem/package.json +6 -0
- package/ListSubheader/ListSubheader.d.ts +6 -0
- package/ListSubheader/ListSubheader.js +48 -0
- package/ListSubheader/index.d.ts +1 -0
- package/ListSubheader/index.js +8 -0
- package/ListSubheader/package.json +6 -0
- package/MainProgress/Context.d.ts +2 -0
- package/MainProgress/Context.js +8 -0
- package/MainProgress/MainProgress.d.ts +33 -0
- package/MainProgress/MainProgress.js +166 -0
- package/MainProgress/index.d.ts +4 -0
- package/MainProgress/index.js +14 -0
- package/MainProgress/package.json +6 -0
- package/MainProgress/useMainProgress.d.ts +2 -0
- package/MainProgress/useMainProgress.js +12 -0
- package/Markdown/Markdown.d.ts +13 -0
- package/Markdown/Markdown.js +730 -0
- package/Markdown/index.d.ts +1 -0
- package/Markdown/index.js +8 -0
- package/Markdown/package.json +6 -0
- package/Masonry/Masonry.d.ts +11 -0
- package/Masonry/Masonry.js +189 -0
- package/Masonry/index.d.ts +1 -0
- package/Masonry/index.js +8 -0
- package/Masonry/package.json +6 -0
- package/Medias/Medias.d.ts +31 -0
- package/Medias/Medias.js +368 -0
- package/Medias/index.d.ts +1 -0
- package/Medias/index.js +8 -0
- package/Medias/package.json +6 -0
- package/Menu/Menu.d.ts +33 -0
- package/Menu/Menu.js +249 -0
- package/Menu/index.d.ts +1 -0
- package/Menu/index.js +8 -0
- package/Menu/package.json +6 -0
- package/MenuDesktop/MenuDesktop.d.ts +42 -0
- package/MenuDesktop/MenuDesktop.js +437 -0
- package/MenuDesktop/index.d.ts +1 -0
- package/MenuDesktop/index.js +8 -0
- package/MenuDesktop/package.json +6 -0
- package/MenuItem/MenuItem.d.ts +26 -0
- package/MenuItem/MenuItem.js +239 -0
- package/MenuItem/index.d.ts +1 -0
- package/MenuItem/index.js +8 -0
- package/MenuItem/package.json +6 -0
- package/Meta/Meta.d.ts +11 -0
- package/Meta/Meta.js +58 -0
- package/Meta/index.d.ts +1 -0
- package/Meta/index.js +8 -0
- package/Meta/package.json +6 -0
- package/Modal/Modal.d.ts +36 -0
- package/Modal/Modal.js +278 -0
- package/Modal/index.d.ts +1 -0
- package/Modal/index.js +8 -0
- package/Modal/package.json +6 -0
- package/ModalFooter/ModalFooter.d.ts +6 -0
- package/ModalFooter/ModalFooter.js +42 -0
- package/ModalFooter/index.d.ts +1 -0
- package/ModalFooter/index.js +8 -0
- package/ModalFooter/package.json +6 -0
- package/ModalHeader/ModalHeader.d.ts +7 -0
- package/ModalHeader/ModalHeader.js +42 -0
- package/ModalHeader/index.d.ts +1 -0
- package/ModalHeader/index.js +8 -0
- package/ModalHeader/package.json +6 -0
- package/ModalIcon/ModalIcon.d.ts +6 -0
- package/ModalIcon/ModalIcon.js +26 -0
- package/ModalIcon/index.d.ts +1 -0
- package/ModalIcon/index.js +8 -0
- package/ModalIcon/package.json +6 -0
- package/ModalMain/ModalMain.d.ts +6 -0
- package/ModalMain/ModalMain.js +49 -0
- package/ModalMain/index.d.ts +1 -0
- package/ModalMain/index.js +8 -0
- package/ModalMain/package.json +6 -0
- package/ModalText/ModalText.d.ts +6 -0
- package/ModalText/ModalText.js +40 -0
- package/ModalText/index.d.ts +1 -0
- package/ModalText/index.js +8 -0
- package/ModalText/package.json +6 -0
- package/ModalTitle/ModalTitle.d.ts +6 -0
- package/ModalTitle/ModalTitle.js +40 -0
- package/ModalTitle/index.d.ts +1 -0
- package/ModalTitle/index.js +8 -0
- package/ModalTitle/package.json +6 -0
- package/MoreOptions/MoreOptions.d.ts +9 -0
- package/MoreOptions/MoreOptions.js +55 -0
- package/MoreOptions/index.d.ts +1 -0
- package/MoreOptions/index.js +8 -0
- package/MoreOptions/package.json +6 -0
- package/Move/Move.d.ts +11 -0
- package/Move/Move.js +147 -0
- package/Move/index.d.ts +1 -0
- package/Move/index.js +8 -0
- package/Move/package.json +6 -0
- package/NavigationBar/NavigationBar.d.ts +13 -0
- package/NavigationBar/NavigationBar.js +114 -0
- package/NavigationBar/index.d.ts +1 -0
- package/NavigationBar/index.js +8 -0
- package/NavigationBar/package.json +6 -0
- package/NavigationDrawer/NavigationDrawer.d.ts +16 -0
- package/NavigationDrawer/NavigationDrawer.js +222 -0
- package/NavigationDrawer/index.d.ts +1 -0
- package/NavigationDrawer/index.js +8 -0
- package/NavigationDrawer/package.json +6 -0
- package/NavigationItem/NavigationItem.d.ts +29 -0
- package/NavigationItem/NavigationItem.js +294 -0
- package/NavigationItem/index.d.ts +1 -0
- package/NavigationItem/index.js +8 -0
- package/NavigationItem/package.json +6 -0
- package/NavigationRail/NavigationRail.d.ts +19 -0
- package/NavigationRail/NavigationRail.js +156 -0
- package/NavigationRail/index.d.ts +1 -0
- package/NavigationRail/index.js +8 -0
- package/NavigationRail/package.json +6 -0
- package/NotFound/NotFound.d.ts +15 -0
- package/NotFound/NotFound.js +68 -0
- package/NotFound/index.d.ts +1 -0
- package/NotFound/index.js +8 -0
- package/NotFound/package.json +6 -0
- package/NumericTextField/NumericTextField.d.ts +16 -0
- package/NumericTextField/NumericTextField.js +217 -0
- package/NumericTextField/index.d.ts +1 -0
- package/NumericTextField/index.js +8 -0
- package/NumericTextField/package.json +6 -0
- package/Page/Page.d.ts +18 -0
- package/Page/Page.js +70 -0
- package/Page/index.d.ts +1 -0
- package/Page/index.js +8 -0
- package/Page/package.json +6 -0
- package/PageTransition/PageTransition.d.ts +12 -0
- package/PageTransition/PageTransition.js +108 -0
- package/PageTransition/index.d.ts +1 -0
- package/PageTransition/index.js +8 -0
- package/PageTransition/package.json +6 -0
- package/Pagination/Pagination.d.ts +29 -0
- package/Pagination/Pagination.js +101 -0
- package/Pagination/index.d.ts +1 -0
- package/Pagination/index.js +8 -0
- package/Pagination/package.json +6 -0
- package/PaginationItem/PaginationItem.d.ts +8 -0
- package/PaginationItem/PaginationItem.js +69 -0
- package/PaginationItem/index.d.ts +1 -0
- package/PaginationItem/index.js +8 -0
- package/PaginationItem/package.json +6 -0
- package/Parallax/Parallax.d.ts +15 -0
- package/Parallax/Parallax.js +150 -0
- package/Parallax/index.d.ts +1 -0
- package/Parallax/index.js +8 -0
- package/Parallax/package.json +6 -0
- package/Path/Path.d.ts +7 -0
- package/Path/Path.js +38 -0
- package/Path/index.d.ts +1 -0
- package/Path/index.js +8 -0
- package/Path/package.json +6 -0
- package/PieChart/PieChart.d.ts +6 -0
- package/PieChart/PieChart.js +276 -0
- package/PieChart/index.d.ts +1 -0
- package/PieChart/index.js +8 -0
- package/PieChart/package.json +6 -0
- package/Placeholder/Placeholder.d.ts +12 -0
- package/Placeholder/Placeholder.js +125 -0
- package/Placeholder/index.d.ts +1 -0
- package/Placeholder/index.js +8 -0
- package/Placeholder/package.json +6 -0
- package/Portal/Portal.d.ts +7 -0
- package/Portal/Portal.js +41 -0
- package/Portal/index.d.ts +1 -0
- package/Portal/index.js +8 -0
- package/Portal/package.json +6 -0
- package/Properties/Properties.d.ts +18 -0
- package/Properties/Properties.js +67 -0
- package/Properties/index.d.ts +1 -0
- package/Properties/index.js +8 -0
- package/Properties/package.json +6 -0
- package/Property/Property.d.ts +18 -0
- package/Property/Property.js +113 -0
- package/Property/index.d.ts +1 -0
- package/Property/index.js +8 -0
- package/Property/package.json +6 -0
- package/README.MD +85 -0
- package/Radio/Radio.d.ts +16 -0
- package/Radio/Radio.js +187 -0
- package/Radio/index.d.ts +1 -0
- package/Radio/index.js +8 -0
- package/Radio/package.json +6 -0
- package/Radios/Radios.d.ts +23 -0
- package/Radios/Radios.js +96 -0
- package/Radios/index.d.ts +1 -0
- package/Radios/index.js +8 -0
- package/Radios/package.json +6 -0
- package/Rating/Rating.d.ts +31 -0
- package/Rating/Rating.js +372 -0
- package/Rating/index.d.ts +1 -0
- package/Rating/index.js +8 -0
- package/Rating/package.json +6 -0
- package/Reset/Reset.d.ts +6 -0
- package/Reset/Reset.js +27 -0
- package/Reset/index.d.ts +1 -0
- package/Reset/index.js +8 -0
- package/Reset/package.json +6 -0
- package/Reveal/Reveal.d.ts +22 -0
- package/Reveal/Reveal.js +92 -0
- package/Reveal/index.d.ts +1 -0
- package/Reveal/index.js +8 -0
- package/Reveal/package.json +6 -0
- package/RichTextEditor/RichTextEditor.d.ts +76 -0
- package/RichTextEditor/RichTextEditor.js +1011 -0
- package/RichTextEditor/index.d.ts +1 -0
- package/RichTextEditor/index.js +8 -0
- package/RichTextEditor/package.json +6 -0
- package/RoundMeter/RoundMeter.d.ts +50 -0
- package/RoundMeter/RoundMeter.js +554 -0
- package/RoundMeter/index.d.ts +1 -0
- package/RoundMeter/index.js +8 -0
- package/RoundMeter/package.json +6 -0
- package/RoundProgress/RoundProgress.d.ts +16 -0
- package/RoundProgress/RoundProgress.js +183 -0
- package/RoundProgress/index.d.ts +1 -0
- package/RoundProgress/index.js +8 -0
- package/RoundProgress/package.json +6 -0
- package/ScatterChart/ScatterChart.d.ts +6 -0
- package/ScatterChart/ScatterChart.js +43 -0
- package/ScatterChart/index.d.ts +1 -0
- package/ScatterChart/index.js +8 -0
- package/ScatterChart/package.json +6 -0
- package/ScatterChartItem/ScatterChartItem.d.ts +19 -0
- package/ScatterChartItem/ScatterChartItem.js +158 -0
- package/ScatterChartItem/index.d.ts +1 -0
- package/ScatterChartItem/index.js +8 -0
- package/ScatterChartItem/package.json +6 -0
- package/ScreenCapture/ScreenCapture.d.ts +30 -0
- package/ScreenCapture/ScreenCapture.js +343 -0
- package/ScreenCapture/index.d.ts +1 -0
- package/ScreenCapture/index.js +8 -0
- package/ScreenCapture/package.json +6 -0
- package/Section/Section.d.ts +33 -0
- package/Section/Section.js +357 -0
- package/Section/index.d.ts +1 -0
- package/Section/index.js +8 -0
- package/Section/package.json +6 -0
- package/SectionAction/SectionAction.d.ts +11 -0
- package/SectionAction/SectionAction.js +63 -0
- package/SectionAction/index.d.ts +1 -0
- package/SectionAction/index.js +8 -0
- package/SectionAction/package.json +6 -0
- package/SectionBoxes/SectionBoxes.d.ts +33 -0
- package/SectionBoxes/SectionBoxes.js +211 -0
- package/SectionBoxes/index.d.ts +1 -0
- package/SectionBoxes/index.js +8 -0
- package/SectionBoxes/package.json +6 -0
- package/SectionCards/SectionCards.d.ts +33 -0
- package/SectionCards/SectionCards.js +221 -0
- package/SectionCards/index.d.ts +1 -0
- package/SectionCards/index.js +8 -0
- package/SectionCards/package.json +6 -0
- package/SectionCarousel/SectionCarousel.d.ts +32 -0
- package/SectionCarousel/SectionCarousel.js +246 -0
- package/SectionCarousel/index.d.ts +1 -0
- package/SectionCarousel/index.js +8 -0
- package/SectionCarousel/package.json +6 -0
- package/SectionContact/SectionContact.d.ts +27 -0
- package/SectionContact/SectionContact.js +124 -0
- package/SectionContact/index.d.ts +1 -0
- package/SectionContact/index.js +8 -0
- package/SectionContact/package.json +6 -0
- package/SectionImageGallery/SectionImageGallery.d.ts +11 -0
- package/SectionImageGallery/SectionImageGallery.js +54 -0
- package/SectionImageGallery/index.d.ts +1 -0
- package/SectionImageGallery/index.js +8 -0
- package/SectionImageGallery/package.json +6 -0
- package/SectionLogos/SectionLogos.d.ts +14 -0
- package/SectionLogos/SectionLogos.js +115 -0
- package/SectionLogos/index.d.ts +1 -0
- package/SectionLogos/index.js +8 -0
- package/SectionLogos/package.json +6 -0
- package/SectionMedia/SectionMedia.d.ts +16 -0
- package/SectionMedia/SectionMedia.js +155 -0
- package/SectionMedia/index.d.ts +1 -0
- package/SectionMedia/index.js +8 -0
- package/SectionMedia/package.json +6 -0
- package/SectionReviews/SectionReviews.d.ts +23 -0
- package/SectionReviews/SectionReviews.js +134 -0
- package/SectionReviews/index.d.ts +1 -0
- package/SectionReviews/index.js +8 -0
- package/SectionReviews/package.json +6 -0
- package/SectionTextMedia/SectionTextMedia.d.ts +28 -0
- package/SectionTextMedia/SectionTextMedia.js +148 -0
- package/SectionTextMedia/index.d.ts +1 -0
- package/SectionTextMedia/index.js +8 -0
- package/SectionTextMedia/package.json +6 -0
- package/SectionTimeline/SectionTimeline.d.ts +21 -0
- package/SectionTimeline/SectionTimeline.js +100 -0
- package/SectionTimeline/index.d.ts +1 -0
- package/SectionTimeline/index.js +8 -0
- package/SectionTimeline/package.json +6 -0
- package/SectionWatch/SectionWatch.d.ts +14 -0
- package/SectionWatch/SectionWatch.js +56 -0
- package/SectionWatch/index.d.ts +1 -0
- package/SectionWatch/index.js +8 -0
- package/SectionWatch/package.json +6 -0
- package/Select/Select.d.ts +29 -0
- package/Select/Select.js +413 -0
- package/Select/index.d.ts +1 -0
- package/Select/index.js +8 -0
- package/Select/package.json +6 -0
- package/Share/Share.d.ts +37 -0
- package/Share/Share.js +338 -0
- package/Share/index.d.ts +1 -0
- package/Share/index.js +8 -0
- package/Share/package.json +6 -0
- package/Slide/Slide.d.ts +12 -0
- package/Slide/Slide.js +146 -0
- package/Slide/index.d.ts +1 -0
- package/Slide/index.js +8 -0
- package/Slide/package.json +6 -0
- package/Slider/Slider.d.ts +36 -0
- package/Slider/Slider.js +851 -0
- package/Slider/index.d.ts +1 -0
- package/Slider/index.js +8 -0
- package/Slider/package.json +6 -0
- package/SmartTextField/SmartTextField.d.ts +19 -0
- package/SmartTextField/SmartTextField.js +796 -0
- package/SmartTextField/index.d.ts +1 -0
- package/SmartTextField/index.js +8 -0
- package/SmartTextField/package.json +6 -0
- package/Snackbar/Snackbar.d.ts +26 -0
- package/Snackbar/Snackbar.js +191 -0
- package/Snackbar/index.d.ts +1 -0
- package/Snackbar/index.js +8 -0
- package/Snackbar/package.json +6 -0
- package/Snackbars/Context.d.ts +7 -0
- package/Snackbars/Context.js +8 -0
- package/Snackbars/Snackbars.d.ts +15 -0
- package/Snackbars/Snackbars.js +216 -0
- package/Snackbars/index.d.ts +4 -0
- package/Snackbars/index.js +14 -0
- package/Snackbars/package.json +6 -0
- package/Snackbars/useSnackbars.d.ts +2 -0
- package/Snackbars/useSnackbars.js +12 -0
- package/Space/Space.d.ts +36 -0
- package/Space/Space.js +1003 -0
- package/Space/index.d.ts +2 -0
- package/Space/index.js +23 -0
- package/Space/package.json +6 -0
- package/SpeechToText/SpeechToText.d.ts +29 -0
- package/SpeechToText/SpeechToText.js +177 -0
- package/SpeechToText/index.d.ts +1 -0
- package/SpeechToText/index.js +8 -0
- package/SpeechToText/package.json +6 -0
- package/SpeedDial/SpeedDial.d.ts +36 -0
- package/SpeedDial/SpeedDial.js +413 -0
- package/SpeedDial/index.d.ts +1 -0
- package/SpeedDial/index.js +8 -0
- package/SpeedDial/package.json +6 -0
- package/SpeedDialItem/SpeedDialItem.d.ts +22 -0
- package/SpeedDialItem/SpeedDialItem.js +69 -0
- package/SpeedDialItem/index.d.ts +1 -0
- package/SpeedDialItem/index.js +8 -0
- package/SpeedDialItem/package.json +6 -0
- package/SpyScroll/SpyScroll.d.ts +13 -0
- package/SpyScroll/SpyScroll.js +147 -0
- package/SpyScroll/index.d.ts +1 -0
- package/SpyScroll/index.js +8 -0
- package/SpyScroll/package.json +6 -0
- package/Step/Step.d.ts +27 -0
- package/Step/Step.js +131 -0
- package/Step/index.d.ts +1 -0
- package/Step/index.js +8 -0
- package/Step/package.json +6 -0
- package/Stepper/Stepper.d.ts +21 -0
- package/Stepper/Stepper.js +143 -0
- package/Stepper/index.d.ts +1 -0
- package/Stepper/index.js +8 -0
- package/Stepper/package.json +6 -0
- package/Surface/Surface.d.ts +15 -0
- package/Surface/Surface.js +809 -0
- package/Surface/index.d.ts +1 -0
- package/Surface/index.js +8 -0
- package/Surface/package.json +6 -0
- package/Switch/Switch.d.ts +18 -0
- package/Switch/Switch.js +544 -0
- package/Switch/index.d.ts +1 -0
- package/Switch/index.js +8 -0
- package/Switch/package.json +6 -0
- package/Tab/Tab.d.ts +22 -0
- package/Tab/Tab.js +149 -0
- package/Tab/index.d.ts +1 -0
- package/Tab/index.js +8 -0
- package/Tab/package.json +6 -0
- package/Table/Table.d.ts +13 -0
- package/Table/Table.js +81 -0
- package/Table/index.d.ts +1 -0
- package/Table/index.js +8 -0
- package/Table/package.json +6 -0
- package/TableBody/TableBody.d.ts +9 -0
- package/TableBody/TableBody.js +68 -0
- package/TableBody/index.d.ts +1 -0
- package/TableBody/index.js +8 -0
- package/TableBody/package.json +6 -0
- package/TableCell/TableCell.d.ts +27 -0
- package/TableCell/TableCell.js +226 -0
- package/TableCell/index.d.ts +1 -0
- package/TableCell/index.js +8 -0
- package/TableCell/package.json +6 -0
- package/TableFooter/TableFooter.d.ts +8 -0
- package/TableFooter/TableFooter.js +51 -0
- package/TableFooter/index.d.ts +1 -0
- package/TableFooter/index.js +8 -0
- package/TableFooter/package.json +6 -0
- package/TableHead/TableHead.d.ts +13 -0
- package/TableHead/TableHead.js +124 -0
- package/TableHead/index.d.ts +1 -0
- package/TableHead/index.js +8 -0
- package/TableHead/package.json +6 -0
- package/TableHeader/TableHeader.d.ts +8 -0
- package/TableHeader/TableHeader.js +53 -0
- package/TableHeader/index.d.ts +1 -0
- package/TableHeader/index.js +8 -0
- package/TableHeader/package.json +6 -0
- package/TablePagination/TablePagination.d.ts +29 -0
- package/TablePagination/TablePagination.js +100 -0
- package/TablePagination/index.d.ts +1 -0
- package/TablePagination/index.js +8 -0
- package/TablePagination/package.json +6 -0
- package/TableRow/TableRow.d.ts +11 -0
- package/TableRow/TableRow.js +68 -0
- package/TableRow/index.d.ts +1 -0
- package/TableRow/index.js +8 -0
- package/TableRow/package.json +6 -0
- package/Tabs/Tabs.d.ts +28 -0
- package/Tabs/Tabs.js +387 -0
- package/Tabs/index.d.ts +1 -0
- package/Tabs/index.js +8 -0
- package/Tabs/package.json +6 -0
- package/Text/Text.d.ts +16 -0
- package/Text/Text.js +118 -0
- package/Text/index.d.ts +1 -0
- package/Text/index.js +8 -0
- package/Text/package.json +6 -0
- package/TextField/TextField.d.ts +64 -0
- package/TextField/TextField.js +850 -0
- package/TextField/index.d.ts +1 -0
- package/TextField/index.js +8 -0
- package/TextField/package.json +6 -0
- package/TextToSpeech/TextToSpeech.d.ts +28 -0
- package/TextToSpeech/TextToSpeech.js +157 -0
- package/TextToSpeech/index.d.ts +1 -0
- package/TextToSpeech/index.js +8 -0
- package/TextToSpeech/package.json +6 -0
- package/TimePicker/TimePicker.d.ts +72 -0
- package/TimePicker/TimePicker.js +736 -0
- package/TimePicker/index.d.ts +1 -0
- package/TimePicker/index.js +8 -0
- package/TimePicker/package.json +6 -0
- package/TimeRangePicker/TimeRangePicker.d.ts +6 -0
- package/TimeRangePicker/TimeRangePicker.js +40 -0
- package/TimeRangePicker/index.d.ts +1 -0
- package/TimeRangePicker/index.js +8 -0
- package/TimeRangePicker/package.json +6 -0
- package/Timeline/Timeline.d.ts +7 -0
- package/Timeline/Timeline.js +43 -0
- package/Timeline/index.d.ts +1 -0
- package/Timeline/index.js +8 -0
- package/Timeline/package.json +6 -0
- package/TimelineItem/TimelineItem.d.ts +14 -0
- package/TimelineItem/TimelineItem.js +152 -0
- package/TimelineItem/index.d.ts +1 -0
- package/TimelineItem/index.js +8 -0
- package/TimelineItem/package.json +6 -0
- package/Timer/Timer.d.ts +23 -0
- package/Timer/Timer.js +208 -0
- package/Timer/index.d.ts +1 -0
- package/Timer/index.js +8 -0
- package/Timer/package.json +6 -0
- package/ToggleButton/ToggleButton.d.ts +6 -0
- package/ToggleButton/ToggleButton.js +61 -0
- package/ToggleButton/index.d.ts +1 -0
- package/ToggleButton/index.js +8 -0
- package/ToggleButton/package.json +6 -0
- package/ToggleButtons/ToggleButtons.d.ts +6 -0
- package/ToggleButtons/ToggleButtons.js +40 -0
- package/ToggleButtons/index.d.ts +1 -0
- package/ToggleButtons/index.js +8 -0
- package/ToggleButtons/package.json +6 -0
- package/Tooltip/Tooltip.d.ts +46 -0
- package/Tooltip/Tooltip.js +439 -0
- package/Tooltip/index.d.ts +1 -0
- package/Tooltip/index.js +8 -0
- package/Tooltip/package.json +6 -0
- package/TopAppBar/TopAppBar.d.ts +14 -0
- package/TopAppBar/TopAppBar.js +200 -0
- package/TopAppBar/index.d.ts +1 -0
- package/TopAppBar/index.js +8 -0
- package/TopAppBar/package.json +6 -0
- package/Transition/Context.d.ts +3 -0
- package/Transition/Context.js +8 -0
- package/Transition/Transition.d.ts +46 -0
- package/Transition/Transition.js +347 -0
- package/Transition/index.d.ts +4 -0
- package/Transition/index.js +27 -0
- package/Transition/package.json +6 -0
- package/Transition/useTransition.d.ts +1 -0
- package/Transition/useTransition.js +12 -0
- package/Transitions/Transitions.d.ts +12 -0
- package/Transitions/Transitions.js +186 -0
- package/Transitions/index.d.ts +1 -0
- package/Transitions/index.js +8 -0
- package/Transitions/package.json +6 -0
- package/Tree/Tree.d.ts +38 -0
- package/Tree/Tree.js +322 -0
- package/Tree/index.d.ts +1 -0
- package/Tree/index.js +8 -0
- package/Tree/package.json +6 -0
- package/Type/Type.d.ts +18 -0
- package/Type/Type.js +154 -0
- package/Type/index.d.ts +1 -0
- package/Type/index.js +8 -0
- package/Type/package.json +6 -0
- package/VideoPlayer/VideoPlayer.d.ts +61 -0
- package/VideoPlayer/VideoPlayer.js +670 -0
- package/VideoPlayer/index.d.ts +1 -0
- package/VideoPlayer/index.js +8 -0
- package/VideoPlayer/package.json +6 -0
- package/ViewSplit/ViewSplit.d.ts +24 -0
- package/ViewSplit/ViewSplit.js +407 -0
- package/ViewSplit/index.d.ts +1 -0
- package/ViewSplit/index.js +8 -0
- package/ViewSplit/package.json +6 -0
- package/Watch/Watch.d.ts +23 -0
- package/Watch/Watch.js +295 -0
- package/Watch/index.d.ts +1 -0
- package/Watch/index.js +8 -0
- package/Watch/package.json +6 -0
- package/Weather/Weather.d.ts +27 -0
- package/Weather/Weather.js +254 -0
- package/Weather/index.d.ts +1 -0
- package/Weather/index.js +8 -0
- package/Weather/package.json +6 -0
- package/Widgets/Context.d.ts +2 -0
- package/Widgets/Context.js +8 -0
- package/Widgets/Widgets.d.ts +24 -0
- package/Widgets/Widgets.js +176 -0
- package/Widgets/index.d.ts +4 -0
- package/Widgets/index.js +14 -0
- package/Widgets/package.json +6 -0
- package/Widgets/useWidgets.d.ts +2 -0
- package/Widgets/useWidgets.js +12 -0
- package/WindowSplit/WindowSplit.d.ts +29 -0
- package/WindowSplit/WindowSplit.js +346 -0
- package/WindowSplit/index.d.ts +1 -0
- package/WindowSplit/index.js +8 -0
- package/WindowSplit/package.json +6 -0
- package/Zoom/Zoom.d.ts +6 -0
- package/Zoom/Zoom.js +104 -0
- package/Zoom/index.d.ts +1 -0
- package/Zoom/index.js +8 -0
- package/Zoom/package.json +6 -0
- package/esm/Accordion/Accordion.js +321 -0
- package/esm/Accordion/index.js +1 -0
- package/esm/AdvancedTextField/AdvancedTextField.js +158 -0
- package/esm/AdvancedTextField/index.js +1 -0
- package/esm/Append/Append.js +495 -0
- package/esm/Append/index.js +1 -0
- package/esm/AreaChart/AreaChart.js +40 -0
- package/esm/AreaChart/index.js +1 -0
- package/esm/AreaChartItem/AreaChartItem.js +315 -0
- package/esm/AreaChartItem/index.js +1 -0
- package/esm/AudioPlayer/AudioPlayer.js +678 -0
- package/esm/AudioPlayer/index.js +1 -0
- package/esm/AudioRecorder/AudioRecorder.js +311 -0
- package/esm/AudioRecorder/index.js +1 -0
- package/esm/AutoComplete/AutoComplete.js +670 -0
- package/esm/AutoComplete/index.js +1 -0
- package/esm/AutoCompleteCountry/AutoCompleteCountry.js +80 -0
- package/esm/AutoCompleteCountry/index.js +1 -0
- package/esm/AutoCompleteCurrency/AutoCompleteCurrency.js +61 -0
- package/esm/AutoCompleteCurrency/index.js +1 -0
- package/esm/AutoCompleteGooglePlaces/AutoCompleteGooglePlaces.js +107 -0
- package/esm/AutoCompleteGooglePlaces/index.js +1 -0
- package/esm/Avatar/Avatar.js +103 -0
- package/esm/Avatar/index.js +1 -0
- package/esm/AvatarGroup/AvatarGroup.js +89 -0
- package/esm/AvatarGroup/index.js +1 -0
- package/esm/Backdrop/Backdrop.js +145 -0
- package/esm/Backdrop/index.js +1 -0
- package/esm/Badge/Badge.js +105 -0
- package/esm/Badge/index.js +1 -0
- package/esm/Banner/Banner.js +111 -0
- package/esm/Banner/index.js +1 -0
- package/esm/BottomAppBar/BottomAppBar.js +216 -0
- package/esm/BottomAppBar/index.js +1 -0
- package/esm/BottomSheet/BottomSheet.js +57 -0
- package/esm/BottomSheet/index.js +1 -0
- package/esm/Box/Box.js +36 -0
- package/esm/Box/index.js +1 -0
- package/esm/Breadcrumbs/Breadcrumbs.js +155 -0
- package/esm/Breadcrumbs/index.js +1 -0
- package/esm/BubbleChart/BubbleChart.js +231 -0
- package/esm/BubbleChart/index.js +1 -0
- package/esm/BubbleChartItem/BubbleChartItem.js +210 -0
- package/esm/BubbleChartItem/index.js +1 -0
- package/esm/Button/Button.js +473 -0
- package/esm/Button/index.js +1 -0
- package/esm/Buttons/Buttons.js +356 -0
- package/esm/Buttons/index.js +1 -0
- package/esm/Calendar/Calendar.js +667 -0
- package/esm/Calendar/index.js +1 -0
- package/esm/CalendarAvailability/CalendarAvailability.js +640 -0
- package/esm/CalendarAvailability/index.js +1 -0
- package/esm/CalendarMenu/CalendarMenu.js +388 -0
- package/esm/CalendarMenu/index.js +1 -0
- package/esm/CalendarMonth/CalendarMonth.js +520 -0
- package/esm/CalendarMonth/index.js +1 -0
- package/esm/CalendarViews/CalendarViews.js +360 -0
- package/esm/CalendarViews/index.js +1 -0
- package/esm/CalendarWeek/CalendarWeek.js +486 -0
- package/esm/CalendarWeek/index.js +1 -0
- package/esm/Card/Card.js +119 -0
- package/esm/Card/index.js +1 -0
- package/esm/CardButton/CardButton.js +69 -0
- package/esm/CardButton/index.js +1 -0
- package/esm/CardFooter/CardFooter.js +48 -0
- package/esm/CardFooter/index.js +1 -0
- package/esm/CardHeader/CardHeader.js +51 -0
- package/esm/CardHeader/index.js +1 -0
- package/esm/CardImage/CardImage.js +72 -0
- package/esm/CardImage/index.js +1 -0
- package/esm/CardMain/CardMain.js +43 -0
- package/esm/CardMain/index.js +1 -0
- package/esm/Carousel/Carousel.js +1008 -0
- package/esm/Carousel/index.js +1 -0
- package/esm/Chart/Chart.js +1295 -0
- package/esm/Chart/index.js +1 -0
- package/esm/Checkbox/Checkbox.js +334 -0
- package/esm/Checkbox/index.js +1 -0
- package/esm/Chip/Chip.js +125 -0
- package/esm/Chip/index.js +1 -0
- package/esm/Chips/Chips.js +115 -0
- package/esm/Chips/index.js +1 -0
- package/esm/ClickListener/ClickListener.js +77 -0
- package/esm/ClickListener/index.js +1 -0
- package/esm/Clock/Clock.js +466 -0
- package/esm/Clock/index.js +1 -0
- package/esm/ColorTextField/ColorTextField.js +214 -0
- package/esm/ColorTextField/index.js +1 -0
- package/esm/ColumnChart/ColumnChart.js +50 -0
- package/esm/ColumnChart/index.js +1 -0
- package/esm/ColumnChartItem/ColumnChartItem.js +190 -0
- package/esm/ColumnChartItem/index.js +1 -0
- package/esm/Confirm/Confirm.js +155 -0
- package/esm/Confirm/Context.js +3 -0
- package/esm/Confirm/index.js +4 -0
- package/esm/Confirm/useConfirm.js +6 -0
- package/esm/Container/Container.js +145 -0
- package/esm/Container/index.js +1 -0
- package/esm/Countdown/Countdown.js +376 -0
- package/esm/Countdown/index.js +1 -0
- package/esm/DatePicker/DatePicker.js +751 -0
- package/esm/DatePicker/index.js +1 -0
- package/esm/DateRangePicker/DateRangePicker.js +34 -0
- package/esm/DateRangePicker/index.js +1 -0
- package/esm/DateTimePicker/DateTimePicker.js +645 -0
- package/esm/DateTimePicker/index.js +1 -0
- package/esm/DateTimeRangePicker/DateTimeRangePicker.js +34 -0
- package/esm/DateTimeRangePicker/index.js +1 -0
- package/esm/Divider/Divider.js +183 -0
- package/esm/Divider/index.js +1 -0
- package/esm/DonutChart/DonutChart.js +40 -0
- package/esm/DonutChart/index.js +1 -0
- package/esm/DragAndDropList/DragAndDropList.js +153 -0
- package/esm/DragAndDropList/index.js +1 -0
- package/esm/Drawing/Drawing.js +803 -0
- package/esm/Drawing/index.js +1 -0
- package/esm/DropZone/DropZone.js +215 -0
- package/esm/DropZone/index.js +1 -0
- package/esm/Emojis/Emojis.js +368 -0
- package/esm/Emojis/emojis_list.js +7274 -0
- package/esm/Emojis/index.js +2 -0
- package/esm/Expand/Expand.js +196 -0
- package/esm/Expand/index.js +1 -0
- package/esm/Fab/Fab.js +36 -0
- package/esm/Fab/index.js +1 -0
- package/esm/Fade/Fade.js +125 -0
- package/esm/Fade/index.js +1 -0
- package/esm/FileChoose/FileChoose.js +197 -0
- package/esm/FileChoose/index.js +1 -0
- package/esm/Focus/Focus.js +84 -0
- package/esm/Focus/index.js +1 -0
- package/esm/Form/Form.js +180 -0
- package/esm/Form/index.js +1 -0
- package/esm/FormRow/FormRow.js +111 -0
- package/esm/FormRow/index.js +1 -0
- package/esm/Forms/Forms.js +45 -0
- package/esm/Forms/index.js +1 -0
- package/esm/Frame/Frame.js +194 -0
- package/esm/Frame/index.js +1 -0
- package/esm/Grid/Grid.js +218 -0
- package/esm/Grid/index.js +1 -0
- package/esm/Grow/Grow.js +131 -0
- package/esm/Grow/index.js +1 -0
- package/esm/HTMLCanvas/HTMLCanvas.js +723 -0
- package/esm/HTMLCanvas/index.js +2 -0
- package/esm/IFrame/IFrame.js +120 -0
- package/esm/IFrame/index.js +1 -0
- package/esm/Icon/Icon.js +104 -0
- package/esm/Icon/index.js +2 -0
- package/esm/IconButton/IconButton.js +39 -0
- package/esm/IconButton/index.js +1 -0
- package/esm/Image/Image.js +273 -0
- package/esm/Image/index.js +1 -0
- package/esm/ImageCrop/ImageCrop.js +1076 -0
- package/esm/ImageCrop/index.js +1 -0
- package/esm/ImageEdit/ImageEdit.js +1049 -0
- package/esm/ImageEdit/index.js +1 -0
- package/esm/ImageGallery/ImageGallery.js +500 -0
- package/esm/ImageGallery/index.js +1 -0
- package/esm/ImageList/ImageList.js +131 -0
- package/esm/ImageList/index.js +1 -0
- package/esm/ImageListItem/ImageListItem.js +93 -0
- package/esm/ImageListItem/index.js +1 -0
- package/esm/ImageListItemBox/ImageListItemBox.js +51 -0
- package/esm/ImageListItemBox/index.js +1 -0
- package/esm/Info/Info.js +77 -0
- package/esm/Info/index.js +1 -0
- package/esm/Interaction/Interaction.js +402 -0
- package/esm/Interaction/index.js +1 -0
- package/esm/Keyframes/Context.js +3 -0
- package/esm/Keyframes/Keyframes.js +183 -0
- package/esm/Keyframes/index.js +4 -0
- package/esm/Keyframes/useKeyframes.js +6 -0
- package/esm/Label/Label.js +161 -0
- package/esm/Label/index.js +1 -0
- package/esm/Labels/Labels.js +114 -0
- package/esm/Labels/index.js +1 -0
- package/esm/Line/Line.js +287 -0
- package/esm/Line/index.js +1 -0
- package/esm/LineChart/LineChart.js +44 -0
- package/esm/LineChart/index.js +1 -0
- package/esm/LineChartItem/LineChartItem.js +228 -0
- package/esm/LineChartItem/index.js +1 -0
- package/esm/LinearMeter/LinearMeter.js +465 -0
- package/esm/LinearMeter/index.js +1 -0
- package/esm/LinearProgress/LinearProgress.js +333 -0
- package/esm/LinearProgress/index.js +1 -0
- package/esm/Link/Link.js +175 -0
- package/esm/Link/index.js +1 -0
- package/esm/Links/Links.js +241 -0
- package/esm/Links/index.js +1 -0
- package/esm/List/List.js +137 -0
- package/esm/List/index.js +1 -0
- package/esm/ListItem/ListItem.js +369 -0
- package/esm/ListItem/index.js +1 -0
- package/esm/ListSubheader/ListSubheader.js +43 -0
- package/esm/ListSubheader/index.js +1 -0
- package/esm/MainProgress/Context.js +3 -0
- package/esm/MainProgress/MainProgress.js +182 -0
- package/esm/MainProgress/index.js +4 -0
- package/esm/MainProgress/useMainProgress.js +6 -0
- package/esm/Markdown/Markdown.js +795 -0
- package/esm/Markdown/index.js +1 -0
- package/esm/Masonry/Masonry.js +202 -0
- package/esm/Masonry/index.js +1 -0
- package/esm/Medias/Medias.js +379 -0
- package/esm/Medias/index.js +1 -0
- package/esm/Menu/Menu.js +251 -0
- package/esm/Menu/index.js +1 -0
- package/esm/MenuDesktop/MenuDesktop.js +475 -0
- package/esm/MenuDesktop/index.js +1 -0
- package/esm/MenuItem/MenuItem.js +265 -0
- package/esm/MenuItem/index.js +1 -0
- package/esm/Meta/Meta.js +65 -0
- package/esm/Meta/index.js +1 -0
- package/esm/Modal/Modal.js +312 -0
- package/esm/Modal/index.js +1 -0
- package/esm/ModalFooter/ModalFooter.js +40 -0
- package/esm/ModalFooter/index.js +1 -0
- package/esm/ModalHeader/ModalHeader.js +41 -0
- package/esm/ModalHeader/index.js +1 -0
- package/esm/ModalIcon/ModalIcon.js +22 -0
- package/esm/ModalIcon/index.js +1 -0
- package/esm/ModalMain/ModalMain.js +45 -0
- package/esm/ModalMain/index.js +1 -0
- package/esm/ModalText/ModalText.js +37 -0
- package/esm/ModalText/index.js +1 -0
- package/esm/ModalTitle/ModalTitle.js +37 -0
- package/esm/ModalTitle/index.js +1 -0
- package/esm/MoreOptions/MoreOptions.js +59 -0
- package/esm/MoreOptions/index.js +1 -0
- package/esm/Move/Move.js +161 -0
- package/esm/Move/index.js +1 -0
- package/esm/NavigationBar/NavigationBar.js +118 -0
- package/esm/NavigationBar/index.js +1 -0
- package/esm/NavigationDrawer/NavigationDrawer.js +235 -0
- package/esm/NavigationDrawer/index.js +1 -0
- package/esm/NavigationItem/NavigationItem.js +297 -0
- package/esm/NavigationItem/index.js +1 -0
- package/esm/NavigationRail/NavigationRail.js +165 -0
- package/esm/NavigationRail/index.js +1 -0
- package/esm/NotFound/NotFound.js +71 -0
- package/esm/NotFound/index.js +1 -0
- package/esm/NumericTextField/NumericTextField.js +205 -0
- package/esm/NumericTextField/index.js +1 -0
- package/esm/Page/Page.js +112 -0
- package/esm/Page/index.js +1 -0
- package/esm/PageTransition/PageTransition.js +105 -0
- package/esm/PageTransition/index.js +1 -0
- package/esm/Pagination/Pagination.js +134 -0
- package/esm/Pagination/index.js +1 -0
- package/esm/PaginationItem/PaginationItem.js +73 -0
- package/esm/PaginationItem/index.js +1 -0
- package/esm/Parallax/Parallax.js +133 -0
- package/esm/Parallax/index.js +1 -0
- package/esm/Path/Path.js +33 -0
- package/esm/Path/index.js +1 -0
- package/esm/PieChart/PieChart.js +364 -0
- package/esm/PieChart/index.js +1 -0
- package/esm/Placeholder/Placeholder.js +120 -0
- package/esm/Placeholder/index.js +1 -0
- package/esm/Portal/Portal.js +30 -0
- package/esm/Portal/index.js +1 -0
- package/esm/Properties/Properties.js +71 -0
- package/esm/Properties/index.js +1 -0
- package/esm/Property/Property.js +109 -0
- package/esm/Property/index.js +1 -0
- package/esm/Radio/Radio.js +204 -0
- package/esm/Radio/index.js +1 -0
- package/esm/Radios/Radios.js +112 -0
- package/esm/Radios/index.js +1 -0
- package/esm/Rating/Rating.js +353 -0
- package/esm/Rating/index.js +1 -0
- package/esm/Reset/Reset.js +15 -0
- package/esm/Reset/index.js +1 -0
- package/esm/Reveal/Reveal.js +87 -0
- package/esm/Reveal/index.js +1 -0
- package/esm/RichTextEditor/RichTextEditor.js +1748 -0
- package/esm/RichTextEditor/index.js +1 -0
- package/esm/RoundMeter/RoundMeter.js +634 -0
- package/esm/RoundMeter/index.js +1 -0
- package/esm/RoundProgress/RoundProgress.js +232 -0
- package/esm/RoundProgress/index.js +1 -0
- package/esm/ScatterChart/ScatterChart.js +40 -0
- package/esm/ScatterChart/index.js +1 -0
- package/esm/ScatterChartItem/ScatterChartItem.js +197 -0
- package/esm/ScatterChartItem/index.js +1 -0
- package/esm/ScreenCapture/ScreenCapture.js +402 -0
- package/esm/ScreenCapture/index.js +1 -0
- package/esm/Section/Section.js +399 -0
- package/esm/Section/index.js +1 -0
- package/esm/SectionAction/SectionAction.js +58 -0
- package/esm/SectionAction/index.js +1 -0
- package/esm/SectionBoxes/SectionBoxes.js +218 -0
- package/esm/SectionBoxes/index.js +1 -0
- package/esm/SectionCards/SectionCards.js +235 -0
- package/esm/SectionCards/index.js +1 -0
- package/esm/SectionCarousel/SectionCarousel.js +260 -0
- package/esm/SectionCarousel/index.js +1 -0
- package/esm/SectionContact/SectionContact.js +160 -0
- package/esm/SectionContact/index.js +1 -0
- package/esm/SectionImageGallery/SectionImageGallery.js +51 -0
- package/esm/SectionImageGallery/index.js +1 -0
- package/esm/SectionLogos/SectionLogos.js +110 -0
- package/esm/SectionLogos/index.js +1 -0
- package/esm/SectionMedia/SectionMedia.js +142 -0
- package/esm/SectionMedia/index.js +1 -0
- package/esm/SectionReviews/SectionReviews.js +145 -0
- package/esm/SectionReviews/index.js +1 -0
- package/esm/SectionTextMedia/SectionTextMedia.js +158 -0
- package/esm/SectionTextMedia/index.js +1 -0
- package/esm/SectionTimeline/SectionTimeline.js +106 -0
- package/esm/SectionTimeline/index.js +1 -0
- package/esm/SectionWatch/SectionWatch.js +52 -0
- package/esm/SectionWatch/index.js +1 -0
- package/esm/Select/Select.js +470 -0
- package/esm/Select/index.js +1 -0
- package/esm/Share/Share.js +442 -0
- package/esm/Share/index.js +1 -0
- package/esm/Slide/Slide.js +179 -0
- package/esm/Slide/index.js +1 -0
- package/esm/Slider/Slider.js +916 -0
- package/esm/Slider/index.js +1 -0
- package/esm/SmartTextField/SmartTextField.js +958 -0
- package/esm/SmartTextField/index.js +1 -0
- package/esm/Snackbar/Snackbar.js +208 -0
- package/esm/Snackbar/index.js +1 -0
- package/esm/Snackbars/Context.js +3 -0
- package/esm/Snackbars/Snackbars.js +213 -0
- package/esm/Snackbars/index.js +4 -0
- package/esm/Snackbars/useSnackbars.js +6 -0
- package/esm/Space/Space.js +1634 -0
- package/esm/Space/index.js +2 -0
- package/esm/SpeechToText/SpeechToText.js +190 -0
- package/esm/SpeechToText/index.js +1 -0
- package/esm/SpeedDial/SpeedDial.js +422 -0
- package/esm/SpeedDial/index.js +1 -0
- package/esm/SpeedDialItem/SpeedDialItem.js +79 -0
- package/esm/SpeedDialItem/index.js +1 -0
- package/esm/SpyScroll/SpyScroll.js +147 -0
- package/esm/SpyScroll/index.js +1 -0
- package/esm/Step/Step.js +157 -0
- package/esm/Step/index.js +1 -0
- package/esm/Stepper/Stepper.js +147 -0
- package/esm/Stepper/index.js +1 -0
- package/esm/Surface/Surface.js +761 -0
- package/esm/Surface/index.js +1 -0
- package/esm/Switch/Switch.js +685 -0
- package/esm/Switch/index.js +1 -0
- package/esm/Tab/Tab.js +155 -0
- package/esm/Tab/index.js +1 -0
- package/esm/Table/Table.js +88 -0
- package/esm/Table/index.js +1 -0
- package/esm/TableBody/TableBody.js +68 -0
- package/esm/TableBody/index.js +1 -0
- package/esm/TableCell/TableCell.js +241 -0
- package/esm/TableCell/index.js +1 -0
- package/esm/TableFooter/TableFooter.js +50 -0
- package/esm/TableFooter/index.js +1 -0
- package/esm/TableHead/TableHead.js +124 -0
- package/esm/TableHead/index.js +1 -0
- package/esm/TableHeader/TableHeader.js +52 -0
- package/esm/TableHeader/index.js +1 -0
- package/esm/TablePagination/TablePagination.js +148 -0
- package/esm/TablePagination/index.js +1 -0
- package/esm/TableRow/TableRow.js +68 -0
- package/esm/TableRow/index.js +1 -0
- package/esm/Tabs/Tabs.js +408 -0
- package/esm/Tabs/index.js +1 -0
- package/esm/Text/Text.js +120 -0
- package/esm/Text/index.js +1 -0
- package/esm/TextField/TextField.js +870 -0
- package/esm/TextField/index.js +1 -0
- package/esm/TextToSpeech/TextToSpeech.js +161 -0
- package/esm/TextToSpeech/index.js +1 -0
- package/esm/TimePicker/TimePicker.js +957 -0
- package/esm/TimePicker/index.js +1 -0
- package/esm/TimeRangePicker/TimeRangePicker.js +34 -0
- package/esm/TimeRangePicker/index.js +1 -0
- package/esm/Timeline/Timeline.js +42 -0
- package/esm/Timeline/index.js +1 -0
- package/esm/TimelineItem/TimelineItem.js +130 -0
- package/esm/TimelineItem/index.js +1 -0
- package/esm/Timer/Timer.js +292 -0
- package/esm/Timer/index.js +1 -0
- package/esm/ToggleButton/ToggleButton.js +57 -0
- package/esm/ToggleButton/index.js +1 -0
- package/esm/ToggleButtons/ToggleButtons.js +36 -0
- package/esm/ToggleButtons/index.js +1 -0
- package/esm/Tooltip/Tooltip.js +453 -0
- package/esm/Tooltip/index.js +1 -0
- package/esm/TopAppBar/TopAppBar.js +220 -0
- package/esm/TopAppBar/index.js +1 -0
- package/esm/Transition/Context.js +3 -0
- package/esm/Transition/Transition.js +315 -0
- package/esm/Transition/index.js +4 -0
- package/esm/Transition/useTransition.js +6 -0
- package/esm/Transitions/Transitions.js +207 -0
- package/esm/Transitions/index.js +1 -0
- package/esm/Tree/Tree.js +353 -0
- package/esm/Tree/index.js +1 -0
- package/esm/Type/Type.js +243 -0
- package/esm/Type/index.js +1 -0
- package/esm/VideoPlayer/VideoPlayer.js +834 -0
- package/esm/VideoPlayer/index.js +1 -0
- package/esm/ViewSplit/ViewSplit.js +414 -0
- package/esm/ViewSplit/index.js +1 -0
- package/esm/Watch/Watch.js +411 -0
- package/esm/Watch/index.js +1 -0
- package/esm/Weather/Weather.js +276 -0
- package/esm/Weather/index.js +1 -0
- package/esm/Widgets/Context.js +3 -0
- package/esm/Widgets/Widgets.js +200 -0
- package/esm/Widgets/index.js +4 -0
- package/esm/Widgets/useWidgets.js +6 -0
- package/esm/WindowSplit/WindowSplit.js +370 -0
- package/esm/WindowSplit/index.js +1 -0
- package/esm/Zoom/Zoom.js +120 -0
- package/esm/Zoom/index.js +1 -0
- package/esm/index.js +428 -0
- package/esm/types.js +1 -0
- package/esm/useForm/index.js +3 -0
- package/esm/useForm/useForm.js +197 -0
- package/esm/useForm/validate.js +204 -0
- package/esm/useLocation/index.js +1 -0
- package/esm/useLocation/useLocation.js +51 -0
- package/esm/useMediaQuery/index.js +1 -0
- package/esm/useMediaQuery/useMediaQuery.js +40 -0
- package/esm/useQuery/index.js +1 -0
- package/esm/useQuery/useQuery.js +11 -0
- package/esm/useScroll/index.js +1 -0
- package/esm/useScroll/useScroll.js +56 -0
- package/esm/useSubscription/index.js +1 -0
- package/esm/useSubscription/useSubscription.js +31 -0
- package/esm/useSwipe/index.js +1 -0
- package/esm/useSwipe/useSwipe.js +158 -0
- package/esm/useVisible/index.js +1 -0
- package/esm/useVisible/useVisible.js +81 -0
- package/esm/utils.js +1256 -0
- package/index.d.ts +423 -0
- package/index.js +658 -0
- package/package.json +55 -0
- package/types.d.ts +41 -0
- package/types.js +2 -0
- package/useForm/index.d.ts +3 -0
- package/useForm/index.js +12 -0
- package/useForm/package.json +6 -0
- package/useForm/useForm.d.ts +28 -0
- package/useForm/useForm.js +177 -0
- package/useForm/validate.d.ts +65 -0
- package/useForm/validate.js +219 -0
- package/useLocation/index.d.ts +1 -0
- package/useLocation/index.js +8 -0
- package/useLocation/package.json +6 -0
- package/useLocation/useLocation.d.ts +7 -0
- package/useLocation/useLocation.js +52 -0
- package/useMediaQuery/index.d.ts +1 -0
- package/useMediaQuery/index.js +8 -0
- package/useMediaQuery/package.json +6 -0
- package/useMediaQuery/useMediaQuery.d.ts +9 -0
- package/useMediaQuery/useMediaQuery.js +48 -0
- package/useQuery/index.d.ts +1 -0
- package/useQuery/index.js +8 -0
- package/useQuery/package.json +6 -0
- package/useQuery/useQuery.d.ts +5 -0
- package/useQuery/useQuery.js +14 -0
- package/useScroll/index.d.ts +1 -0
- package/useScroll/index.js +8 -0
- package/useScroll/package.json +6 -0
- package/useScroll/useScroll.d.ts +12 -0
- package/useScroll/useScroll.js +60 -0
- package/useSubscription/index.d.ts +1 -0
- package/useSubscription/index.js +8 -0
- package/useSubscription/package.json +6 -0
- package/useSubscription/useSubscription.d.ts +3 -0
- package/useSubscription/useSubscription.js +38 -0
- package/useSwipe/index.d.ts +1 -0
- package/useSwipe/index.js +8 -0
- package/useSwipe/package.json +6 -0
- package/useSwipe/useSwipe.d.ts +18 -0
- package/useSwipe/useSwipe.js +138 -0
- package/useVisible/index.d.ts +1 -0
- package/useVisible/index.js +8 -0
- package/useVisible/package.json +6 -0
- package/useVisible/useVisible.d.ts +23 -0
- package/useVisible/useVisible.js +80 -0
- package/utils.d.ts +48 -0
- package/utils.js +1422 -0
@@ -0,0 +1,1295 @@
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
4
|
+
const _excluded = ["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"],
|
5
|
+
_excluded2 = ["item", "className"];
|
6
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
7
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
8
|
+
import React from 'react';
|
9
|
+
import { castParam, clamp, copy, is, isEnvironment, percentageFromValueWithinRange, unique, valueFromPercentageWithinRange } from '@onesy/utils';
|
10
|
+
import { classNames, style as styleMethod, useOnesyTheme } from '@onesy/style-react';
|
11
|
+
import SurfaceElement from '../Surface';
|
12
|
+
import LineElement from '../Line';
|
13
|
+
import TypeElement from '../Type';
|
14
|
+
import PathElement from '../Path';
|
15
|
+
import AppendElement from '../Append';
|
16
|
+
import GrowElement from '../Grow';
|
17
|
+
import useMediaQuery from '../useMediaQuery';
|
18
|
+
import { valueBreakpoints, staticClassName, minMaxBetweenNumbers } from '../utils';
|
19
|
+
const useStyle = styleMethod(theme => ({
|
20
|
+
root: {
|
21
|
+
width: '100%',
|
22
|
+
'&.onesy-Surface-root': {
|
23
|
+
background: 'transparent'
|
24
|
+
}
|
25
|
+
},
|
26
|
+
additionalLines: {
|
27
|
+
pointerEvents: 'none'
|
28
|
+
},
|
29
|
+
append_wrapper: {
|
30
|
+
userSelect: 'none',
|
31
|
+
pointerEvents: 'none',
|
32
|
+
zIndex: theme.z_index.tooltip
|
33
|
+
},
|
34
|
+
wrapper: {
|
35
|
+
position: 'relative',
|
36
|
+
height: '400px',
|
37
|
+
width: '100%',
|
38
|
+
maxWidth: '1000px'
|
39
|
+
},
|
40
|
+
wrapper_label_x: {
|
41
|
+
margin: '0 0 30px 0'
|
42
|
+
},
|
43
|
+
wrapper_label_y: {
|
44
|
+
margin: '0 0 0 40px'
|
45
|
+
},
|
46
|
+
wrapper_labels: {
|
47
|
+
margin: '0 0 30px 40px'
|
48
|
+
},
|
49
|
+
wrapper_name_x: {
|
50
|
+
margin: '0 0 60px 0'
|
51
|
+
},
|
52
|
+
wrapper_name_y: {
|
53
|
+
margin: '0 0 0 70px'
|
54
|
+
},
|
55
|
+
wrapper_names: {
|
56
|
+
margin: '0 0 60px 70px'
|
57
|
+
},
|
58
|
+
legend_offset_labels_y: {
|
59
|
+
paddingLeft: theme.methods.space.value(5, 'px')
|
60
|
+
},
|
61
|
+
legend_offset_names_y: {
|
62
|
+
paddingLeft: theme.methods.space.value(9, 'px')
|
63
|
+
},
|
64
|
+
svg: {
|
65
|
+
position: 'relative',
|
66
|
+
touchAction: 'none',
|
67
|
+
userSelect: 'none',
|
68
|
+
'& path, & circle, & rect, & g': {
|
69
|
+
transition: theme.methods.transitions.make('opacity', {
|
70
|
+
duration: 'xs'
|
71
|
+
})
|
72
|
+
}
|
73
|
+
},
|
74
|
+
header: {
|
75
|
+
width: '100%',
|
76
|
+
marginBottom: '24px'
|
77
|
+
},
|
78
|
+
subtitle: {
|
79
|
+
opacity: '0.74'
|
80
|
+
},
|
81
|
+
append: {
|
82
|
+
padding: `${theme.methods.space.value(1.5, 'px')} ${theme.methods.space.value(2.5, 'px')}`,
|
83
|
+
borderRadius: theme.methods.shape.radius.value(1.5, 'px')
|
84
|
+
},
|
85
|
+
name: {
|
86
|
+
position: 'absolute',
|
87
|
+
userSelect: 'none'
|
88
|
+
},
|
89
|
+
name_x: {
|
90
|
+
bottom: '-61px',
|
91
|
+
left: '50%',
|
92
|
+
transform: 'translateX(-50%)'
|
93
|
+
},
|
94
|
+
name_y: {
|
95
|
+
left: '-87px',
|
96
|
+
top: '50%',
|
97
|
+
transform: 'translateY(-50%) rotate(-90deg)'
|
98
|
+
},
|
99
|
+
labels: {
|
100
|
+
position: 'absolute',
|
101
|
+
userSelect: 'none'
|
102
|
+
},
|
103
|
+
labels_x: {
|
104
|
+
top: 'calc(100% + 12px)',
|
105
|
+
left: '0',
|
106
|
+
width: '100%'
|
107
|
+
},
|
108
|
+
labels_y: {
|
109
|
+
top: '0',
|
110
|
+
right: 'calc(100% + 12px)',
|
111
|
+
height: '100%'
|
112
|
+
},
|
113
|
+
label: {
|
114
|
+
position: 'absolute',
|
115
|
+
whiteSpace: 'nowrap'
|
116
|
+
},
|
117
|
+
label_x: {
|
118
|
+
transform: 'translateX(-50%)',
|
119
|
+
top: '0'
|
120
|
+
},
|
121
|
+
label_y: {
|
122
|
+
transform: 'translateY(50%)',
|
123
|
+
right: '0'
|
124
|
+
},
|
125
|
+
marks: {
|
126
|
+
position: 'absolute'
|
127
|
+
},
|
128
|
+
marks_x: {
|
129
|
+
top: 'calc(100% + 0px)',
|
130
|
+
left: '0',
|
131
|
+
width: '100%'
|
132
|
+
},
|
133
|
+
marks_y: {
|
134
|
+
top: '0',
|
135
|
+
right: 'calc(100% + 0px)',
|
136
|
+
height: '100%'
|
137
|
+
},
|
138
|
+
mark: {
|
139
|
+
position: 'absolute'
|
140
|
+
},
|
141
|
+
mark_x: {
|
142
|
+
width: '1px',
|
143
|
+
height: '7px',
|
144
|
+
top: '0',
|
145
|
+
background: 'currentColor'
|
146
|
+
},
|
147
|
+
mark_y: {
|
148
|
+
width: '7px',
|
149
|
+
height: '1px',
|
150
|
+
right: '0',
|
151
|
+
background: 'currentColor'
|
152
|
+
},
|
153
|
+
grids: {
|
154
|
+
position: 'absolute',
|
155
|
+
width: '100%',
|
156
|
+
height: '100%'
|
157
|
+
},
|
158
|
+
grids_x: {
|
159
|
+
top: '0',
|
160
|
+
left: '0'
|
161
|
+
},
|
162
|
+
grids_y: {
|
163
|
+
top: '0',
|
164
|
+
left: '0'
|
165
|
+
},
|
166
|
+
grid: {
|
167
|
+
position: 'absolute',
|
168
|
+
width: '100%',
|
169
|
+
height: '100%',
|
170
|
+
opacity: theme.palette.light ? '0.07' : '0.14'
|
171
|
+
},
|
172
|
+
grid_x: {
|
173
|
+
width: '1px',
|
174
|
+
background: 'currentColor'
|
175
|
+
},
|
176
|
+
grid_y: {
|
177
|
+
height: '1px',
|
178
|
+
background: 'currentColor'
|
179
|
+
},
|
180
|
+
border: {
|
181
|
+
position: 'absolute',
|
182
|
+
background: 'currentColor'
|
183
|
+
},
|
184
|
+
borderX: {
|
185
|
+
height: '1px',
|
186
|
+
width: 'calc(100% + 1px)',
|
187
|
+
left: '0'
|
188
|
+
},
|
189
|
+
borderTop: {
|
190
|
+
top: '0'
|
191
|
+
},
|
192
|
+
borderBottom: {
|
193
|
+
bottom: '0'
|
194
|
+
},
|
195
|
+
borderY: {
|
196
|
+
width: '1px',
|
197
|
+
height: 'calc(100% + 1px)',
|
198
|
+
top: '-1px'
|
199
|
+
},
|
200
|
+
borderStart: {
|
201
|
+
insetInlineStart: '0'
|
202
|
+
},
|
203
|
+
borderLeft: {
|
204
|
+
left: '0'
|
205
|
+
},
|
206
|
+
borderEnd: {
|
207
|
+
insetInlineEnd: '0'
|
208
|
+
},
|
209
|
+
borderRight: {
|
210
|
+
right: '0'
|
211
|
+
},
|
212
|
+
point_visibility_hover: {
|
213
|
+
opacity: '0',
|
214
|
+
transition: theme.methods.transitions.make('opacity', {
|
215
|
+
duration: 'xxs'
|
216
|
+
}),
|
217
|
+
'&:hover': {
|
218
|
+
opacity: '1'
|
219
|
+
}
|
220
|
+
},
|
221
|
+
point_visibility_visible: {
|
222
|
+
opacity: '1'
|
223
|
+
},
|
224
|
+
point_active: {
|
225
|
+
opacity: '1'
|
226
|
+
},
|
227
|
+
point_visibility_hidden: {
|
228
|
+
opacity: '0',
|
229
|
+
pointerEvents: 'none'
|
230
|
+
},
|
231
|
+
// Legend
|
232
|
+
legend: {},
|
233
|
+
legend_position_top: {
|
234
|
+
marginBottom: '16px'
|
235
|
+
},
|
236
|
+
legend_position_bottom: {
|
237
|
+
marginTop: '16px'
|
238
|
+
},
|
239
|
+
legend_item: {
|
240
|
+
userSelect: 'none'
|
241
|
+
},
|
242
|
+
legend_item_manage_visibility: {
|
243
|
+
cursor: 'pointer',
|
244
|
+
transition: theme.methods.transitions.make('opacity', {
|
245
|
+
duration: 'xs'
|
246
|
+
})
|
247
|
+
},
|
248
|
+
legend_item_hidden: {
|
249
|
+
opacity: '0.4'
|
250
|
+
},
|
251
|
+
legend_icon: {
|
252
|
+
width: '10px',
|
253
|
+
height: '10px',
|
254
|
+
borderRadius: theme.methods.shape.radius.value(40, 'px'),
|
255
|
+
boxSizing: 'border-box'
|
256
|
+
},
|
257
|
+
append_icon: {
|
258
|
+
width: '8px',
|
259
|
+
height: '8px',
|
260
|
+
borderRadius: theme.methods.shape.radius.value(40, 'px'),
|
261
|
+
boxSizing: 'border-box'
|
262
|
+
},
|
263
|
+
// Guideline
|
264
|
+
guidelines: {
|
265
|
+
stroke: 'currentColor',
|
266
|
+
strokeDasharray: '4',
|
267
|
+
opacity: '0.44',
|
268
|
+
pointerEvents: 'none'
|
269
|
+
}
|
270
|
+
}), {
|
271
|
+
name: 'onesy-Chart'
|
272
|
+
});
|
273
|
+
const Chart = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
274
|
+
const theme = useOnesyTheme();
|
275
|
+
const props = React.useMemo(() => _objectSpread(_objectSpread(_objectSpread({}, theme?.ui?.elements?.all?.props?.default), theme?.ui?.elements?.onesyChart?.props?.default), props_), [props_]);
|
276
|
+
const Line = React.useMemo(() => theme?.elements?.Line || LineElement, [theme]);
|
277
|
+
const Surface = React.useMemo(() => theme?.elements?.Surface || SurfaceElement, [theme]);
|
278
|
+
const Type = React.useMemo(() => theme?.elements?.Type || TypeElement, [theme]);
|
279
|
+
const Path = React.useMemo(() => theme?.elements?.Path || PathElement, [theme]);
|
280
|
+
const Append = React.useMemo(() => theme?.elements?.Append || AppendElement, [theme]);
|
281
|
+
const Grow = React.useMemo(() => theme?.elements?.Grow || GrowElement, [theme]);
|
282
|
+
const {
|
283
|
+
tonal = true,
|
284
|
+
color = 'primary',
|
285
|
+
title,
|
286
|
+
subtitle,
|
287
|
+
// Values
|
288
|
+
values,
|
289
|
+
// Pre
|
290
|
+
pre,
|
291
|
+
// Elements
|
292
|
+
elements,
|
293
|
+
// Names
|
294
|
+
names,
|
295
|
+
nameX: nameX_,
|
296
|
+
nameY: nameY_,
|
297
|
+
// Tooltip
|
298
|
+
tooltip: tooltip_,
|
299
|
+
tooltipIndividually: tooltipIndividually_,
|
300
|
+
tooltipCloseOnMouseLeave: tooltipCloseOnMouseLeave_,
|
301
|
+
elementTooltip: elementTooltip_,
|
302
|
+
// Guideline
|
303
|
+
guidelines: guidelines_,
|
304
|
+
guidelinesAppend: guidelinesAppend_,
|
305
|
+
guidelinesDisplayInactive: guidelinesDisplayInactive_,
|
306
|
+
// Additional lines
|
307
|
+
additionalLines: additionalLines__,
|
308
|
+
// Legend
|
309
|
+
legend: legend___,
|
310
|
+
legendManageVisibility = true,
|
311
|
+
legendPosition = 'bottom',
|
312
|
+
// Animation
|
313
|
+
animate: animate_,
|
314
|
+
animateTimeout: animateTimeout_,
|
315
|
+
// Labels
|
316
|
+
labels: labels___,
|
317
|
+
labelsX: labelsX_,
|
318
|
+
labelsY: labelsY_,
|
319
|
+
labelDecimalPlaces: labelDecimalPlaces_,
|
320
|
+
labelsAutoNumber: labelsAutoNumber_,
|
321
|
+
labelsYAutoNumber: labelsYAutoNumber_,
|
322
|
+
labelsXAutoNumber: labelsXAutoNumber_,
|
323
|
+
// Marks
|
324
|
+
marks: marks___,
|
325
|
+
marksX: marksX_,
|
326
|
+
marksY: marksY_,
|
327
|
+
marksAutoNumber: marksAutoNumber_,
|
328
|
+
marksYAutoNumber: marksYAutoNumber_,
|
329
|
+
marksXAutoNumber: marksXAutoNumber_,
|
330
|
+
// Grid
|
331
|
+
grid: grid___,
|
332
|
+
gridX: gridX_,
|
333
|
+
gridY: gridY_,
|
334
|
+
gridAutoNumber: gridAutoNumber_,
|
335
|
+
gridYAutoNumber: gridYAutoNumber_,
|
336
|
+
gridXAutoNumber: gridXAutoNumber_,
|
337
|
+
// Points
|
338
|
+
points: points___,
|
339
|
+
pointsVisibility: pointsVisibility_,
|
340
|
+
// Borders
|
341
|
+
borders: borders_ = true,
|
342
|
+
borderStart: borderStart_ = false,
|
343
|
+
borderLeft: borderLeft_ = true,
|
344
|
+
borderEnd: borderEnd_ = false,
|
345
|
+
borderRight: borderRight_ = false,
|
346
|
+
borderTop: borderTop_ = false,
|
347
|
+
borderBottom: borderBottom_ = true,
|
348
|
+
// Min, max
|
349
|
+
minX: minX_,
|
350
|
+
maxX: maxX_,
|
351
|
+
minY: minY_,
|
352
|
+
maxY: maxY_,
|
353
|
+
minMaxPadding: minMaxPadding__,
|
354
|
+
minPadding: minPadding__,
|
355
|
+
maxPadding: maxPadding__,
|
356
|
+
minPaddingX: minPaddingX__,
|
357
|
+
minPaddingY: minPaddingY__,
|
358
|
+
maxPaddingX: maxPaddingX__,
|
359
|
+
maxPaddingY: maxPaddingY__,
|
360
|
+
noMain,
|
361
|
+
tooltipRender,
|
362
|
+
tooltipGroupRender,
|
363
|
+
labelRender,
|
364
|
+
labelResolve,
|
365
|
+
onUpdateRects,
|
366
|
+
Component = 'div',
|
367
|
+
SvgProps,
|
368
|
+
TypeProps,
|
369
|
+
TitleProps,
|
370
|
+
SubtitleProps,
|
371
|
+
PointsProps,
|
372
|
+
PointProps,
|
373
|
+
HeaderProps,
|
374
|
+
AppendProps,
|
375
|
+
AdditionalLineProps,
|
376
|
+
AdditionalLinesProps,
|
377
|
+
LegendProps,
|
378
|
+
LegendItemProps,
|
379
|
+
GuidelineProps,
|
380
|
+
WrapperProps,
|
381
|
+
className,
|
382
|
+
children
|
383
|
+
} = props,
|
384
|
+
other = _objectWithoutProperties(props, _excluded);
|
385
|
+
const {
|
386
|
+
classes
|
387
|
+
} = useStyle();
|
388
|
+
const refs = {
|
389
|
+
root: React.useRef(undefined),
|
390
|
+
wrapper: React.useRef(undefined),
|
391
|
+
svg: React.useRef(undefined),
|
392
|
+
defs: React.useRef(undefined),
|
393
|
+
minMax: React.useRef(undefined),
|
394
|
+
rects: React.useRef(undefined),
|
395
|
+
guidelines: React.useRef(undefined),
|
396
|
+
guidelinesIn: React.useRef(undefined),
|
397
|
+
guidelinesPosition: React.useRef(undefined),
|
398
|
+
guidelinesAppend: React.useRef(undefined),
|
399
|
+
hover: React.useRef(undefined),
|
400
|
+
allValues: React.useRef([]),
|
401
|
+
values: React.useRef([]),
|
402
|
+
visible: React.useRef([]),
|
403
|
+
appendStyle: React.useRef({}),
|
404
|
+
theme: React.useRef([])
|
405
|
+
};
|
406
|
+
const keys = React.useMemo(() => {
|
407
|
+
const result = [];
|
408
|
+
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_];
|
409
|
+
items.forEach(item => {
|
410
|
+
if (is('object', item)) Object.keys(item).filter(key => theme.breakpoints.media[key]).forEach(key => result.push(key));
|
411
|
+
});
|
412
|
+
return unique(result);
|
413
|
+
}, [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__]);
|
414
|
+
const breakpoints = {};
|
415
|
+
keys.forEach(key => {
|
416
|
+
breakpoints[key] = useMediaQuery(theme.breakpoints.media[key], {
|
417
|
+
element: refs.root.current
|
418
|
+
});
|
419
|
+
});
|
420
|
+
const nameX = valueBreakpoints(nameX_, undefined, breakpoints, theme);
|
421
|
+
const nameY = valueBreakpoints(nameY_, undefined, breakpoints, theme);
|
422
|
+
const tooltip = valueBreakpoints(tooltip_, true, breakpoints, theme);
|
423
|
+
const tooltipIndividually = valueBreakpoints(tooltipIndividually_, true, breakpoints, theme);
|
424
|
+
const tooltipCloseOnMouseLeave = valueBreakpoints(tooltipCloseOnMouseLeave_, true, breakpoints, theme);
|
425
|
+
const elementTooltip = valueBreakpoints(elementTooltip_, undefined, breakpoints, theme);
|
426
|
+
const guidelines = valueBreakpoints(guidelines_, undefined, breakpoints, theme);
|
427
|
+
const guidelinesAppend = valueBreakpoints(guidelinesAppend_, true, breakpoints, theme);
|
428
|
+
const guidelinesDisplayInactive = valueBreakpoints(guidelinesDisplayInactive_, false, breakpoints, theme);
|
429
|
+
const animate = valueBreakpoints(animate_, true, breakpoints, theme);
|
430
|
+
const animateTimeout = valueBreakpoints(animateTimeout_, 140, breakpoints, theme);
|
431
|
+
const legend__ = valueBreakpoints(legend___, 'auto', breakpoints, theme);
|
432
|
+
const labels__ = valueBreakpoints(labels___, 'auto', breakpoints, theme);
|
433
|
+
const labelsX = valueBreakpoints(labelsX_, true, breakpoints, theme);
|
434
|
+
const labelsY = valueBreakpoints(labelsY_, true, breakpoints, theme);
|
435
|
+
const labelDecimalPlaces = valueBreakpoints(labelDecimalPlaces_, 0, breakpoints, theme);
|
436
|
+
const labelsAutoNumber = valueBreakpoints(labelsAutoNumber_, 10, breakpoints, theme);
|
437
|
+
const labelsYAutoNumber = valueBreakpoints(labelsYAutoNumber_, undefined, breakpoints, theme);
|
438
|
+
const labelsXAutoNumber = valueBreakpoints(labelsXAutoNumber_, undefined, breakpoints, theme);
|
439
|
+
const marks__ = valueBreakpoints(marks___, 'auto', breakpoints, theme);
|
440
|
+
const marksX = valueBreakpoints(marksX_, true, breakpoints, theme);
|
441
|
+
const marksY = valueBreakpoints(marksY_, true, breakpoints, theme);
|
442
|
+
const marksAutoNumber = valueBreakpoints(marksAutoNumber_, 10, breakpoints, theme);
|
443
|
+
const marksYAutoNumber = valueBreakpoints(marksYAutoNumber_, undefined, breakpoints, theme);
|
444
|
+
const marksXAutoNumber = valueBreakpoints(marksXAutoNumber_, undefined, breakpoints, theme);
|
445
|
+
const grid__ = valueBreakpoints(grid___, undefined, breakpoints, theme);
|
446
|
+
const gridX = valueBreakpoints(gridX_, true, breakpoints, theme);
|
447
|
+
const gridY = valueBreakpoints(gridY_, true, breakpoints, theme);
|
448
|
+
const gridAutoNumber = valueBreakpoints(gridAutoNumber_, 10, breakpoints, theme);
|
449
|
+
const gridYAutoNumber = valueBreakpoints(gridYAutoNumber_, undefined, breakpoints, theme);
|
450
|
+
const gridXAutoNumber = valueBreakpoints(gridXAutoNumber_, undefined, breakpoints, theme);
|
451
|
+
const points__ = valueBreakpoints(points___, true, breakpoints, theme);
|
452
|
+
const pointsVisibility = valueBreakpoints(pointsVisibility_, 'hover', breakpoints, theme);
|
453
|
+
const borders = valueBreakpoints(borders_, true, breakpoints, theme);
|
454
|
+
const borderStart = valueBreakpoints(borderStart_, false, breakpoints, theme);
|
455
|
+
const borderLeft = valueBreakpoints(borderLeft_, true, breakpoints, theme);
|
456
|
+
const borderEnd = valueBreakpoints(borderEnd_, false, breakpoints, theme);
|
457
|
+
const borderRight = valueBreakpoints(borderRight_, false, breakpoints, theme);
|
458
|
+
const borderTop = valueBreakpoints(borderTop_, false, breakpoints, theme);
|
459
|
+
const borderBottom = valueBreakpoints(borderBottom_, true, breakpoints, theme);
|
460
|
+
const minX = valueBreakpoints(minX_, undefined, breakpoints, theme);
|
461
|
+
const maxX = valueBreakpoints(maxX_, undefined, breakpoints, theme);
|
462
|
+
const minY = valueBreakpoints(minY_, undefined, breakpoints, theme);
|
463
|
+
const maxY = valueBreakpoints(maxY_, undefined, breakpoints, theme);
|
464
|
+
const minMaxPadding = valueBreakpoints(minMaxPadding__, undefined, breakpoints, theme);
|
465
|
+
const minPadding = valueBreakpoints(minPadding__, undefined, breakpoints, theme);
|
466
|
+
const maxPadding = valueBreakpoints(maxPadding__, undefined, breakpoints, theme);
|
467
|
+
const minPaddingX = valueBreakpoints(minPaddingX__, undefined, breakpoints, theme);
|
468
|
+
const minPaddingY = valueBreakpoints(minPaddingY__, undefined, breakpoints, theme);
|
469
|
+
const maxPaddingX = valueBreakpoints(maxPaddingX__, undefined, breakpoints, theme);
|
470
|
+
const maxPaddingY = valueBreakpoints(maxPaddingY__, undefined, breakpoints, theme);
|
471
|
+
const [rects, setRects] = React.useState();
|
472
|
+
const [points, setPoints] = React.useState();
|
473
|
+
const [labels, setLabels] = React.useState();
|
474
|
+
const [marks, setMarks] = React.useState();
|
475
|
+
const [grid, setGrid] = React.useState();
|
476
|
+
const [additionalLines, setAdditionalLines] = React.useState();
|
477
|
+
const [legend, setLegend] = React.useState([]);
|
478
|
+
const [defs, setDefs] = React.useState([]);
|
479
|
+
const [append, setAppend] = React.useState();
|
480
|
+
const [visible, setVisible] = React.useState({});
|
481
|
+
const [guidelinesIn, setGuidelineIn] = React.useState(false);
|
482
|
+
const [guidelinesPosition, setGuidelinePosition] = React.useState({});
|
483
|
+
const [hover, setHover] = React.useState(false);
|
484
|
+
refs.rects.current = rects;
|
485
|
+
refs.guidelines.current = guidelines;
|
486
|
+
refs.guidelinesIn.current = guidelinesIn;
|
487
|
+
refs.guidelinesPosition.current = guidelinesPosition;
|
488
|
+
refs.guidelinesAppend.current = guidelinesAppend;
|
489
|
+
refs.hover.current = hover;
|
490
|
+
refs.values.current = values;
|
491
|
+
refs.visible.current = visible;
|
492
|
+
refs.theme.current = theme;
|
493
|
+
const minMax = React.useMemo(() => {
|
494
|
+
const values_ = {
|
495
|
+
min: {
|
496
|
+
x: minX || Number.MAX_SAFE_INTEGER,
|
497
|
+
y: minY || Number.MAX_SAFE_INTEGER
|
498
|
+
},
|
499
|
+
max: {
|
500
|
+
x: maxX || Number.MIN_SAFE_INTEGER,
|
501
|
+
y: maxY || Number.MIN_SAFE_INTEGER
|
502
|
+
}
|
503
|
+
};
|
504
|
+
if (!noMain) {
|
505
|
+
const allItems = values.flatMap(item => is('array', item.values[0]) ? item.values : [item.values]);
|
506
|
+
if (is('array', values)) {
|
507
|
+
allItems.forEach(item => {
|
508
|
+
const [x, y] = item;
|
509
|
+
if (minX === undefined) values_.min.x = Math.min(values_.min.x, x);
|
510
|
+
if (maxX === undefined) values_.max.x = Math.max(values_.max.x, x);
|
511
|
+
if (minY === undefined) values_.min.y = Math.min(values_.min.y, y);
|
512
|
+
if (maxY === undefined) values_.max.y = Math.max(values_.max.y, y);
|
513
|
+
});
|
514
|
+
}
|
515
|
+
const minPaddingY_ = minPaddingY !== undefined ? minPaddingY : minPadding !== undefined ? minPadding : minMaxPadding;
|
516
|
+
const maxPaddingY_ = maxPaddingY !== undefined ? maxPaddingY : maxPadding !== undefined ? maxPadding : minMaxPadding;
|
517
|
+
const minPaddingX_ = minPaddingX !== undefined ? minPaddingX : minPadding !== undefined ? minPadding : minMaxPadding;
|
518
|
+
const maxPaddingX_ = maxPaddingX !== undefined ? maxPaddingX : maxPadding !== undefined ? maxPadding : minMaxPadding;
|
519
|
+
const totals = {
|
520
|
+
x: values_.max.x - values_.min.x,
|
521
|
+
y: values_.max.y - values_.min.y
|
522
|
+
};
|
523
|
+
if (minPaddingY_ !== undefined) values_.min.y -= totals.y * minPaddingY_;
|
524
|
+
if (maxPaddingY_ !== undefined) values_.max.y += totals.y * maxPaddingY_;
|
525
|
+
if (minPaddingX_ !== undefined) values_.min.x -= totals.x * minPaddingX_;
|
526
|
+
if (maxPaddingX_ !== undefined) values_.max.x += totals.x * maxPaddingX_;
|
527
|
+
}
|
528
|
+
return values_;
|
529
|
+
}, [values, minX, maxX, minY, maxY, minMaxPadding, minPadding, maxPadding, minPaddingX, minPaddingY, maxPaddingX, maxPaddingY, noMain]);
|
530
|
+
refs.minMax.current = minMax;
|
531
|
+
const onWrapperMouseEnter = React.useCallback(() => {
|
532
|
+
if (!refs.guidelinesIn.current) setGuidelineIn(true);
|
533
|
+
setHover(true);
|
534
|
+
}, []);
|
535
|
+
const onWrapperMouseLeave = React.useCallback(() => {
|
536
|
+
setHover(false);
|
537
|
+
setTimeout(() => {
|
538
|
+
if (tooltipCloseOnMouseLeave) setAppend(values_ => _objectSpread(_objectSpread({}, values_), {}, {
|
539
|
+
open: false
|
540
|
+
}));
|
541
|
+
if (!guidelinesDisplayInactive) setGuidelineIn(false);
|
542
|
+
setGuidelinePosition({});
|
543
|
+
});
|
544
|
+
}, [tooltipCloseOnMouseLeave, guidelinesDisplayInactive]);
|
545
|
+
const makeGroupTooltip = (x_, y_) => {
|
546
|
+
const items = refs.allValues.current.filter(item => item.normalized[0] === x_);
|
547
|
+
const itemsY = copy(items).sort((a, b) => a.normalized[1] - b.normalized[1]);
|
548
|
+
const x = x_;
|
549
|
+
const y = itemsY[0].normalized[1];
|
550
|
+
const groups = {};
|
551
|
+
items.forEach(item => {
|
552
|
+
const color_ = item.item?.color || 'primary';
|
553
|
+
if (!groups[color_]) groups[color_] = [];
|
554
|
+
groups[color_].push(item);
|
555
|
+
});
|
556
|
+
|
557
|
+
// Group sorted by y largest, to smallest
|
558
|
+
Object.keys(groups).forEach(group => groups[group].sort((a, b) => a.normalized?.[1] - b.normalized?.[1]));
|
559
|
+
|
560
|
+
// Groups sorted by y largest, to smallest
|
561
|
+
const groupsSorted = Object.keys(groups).sort((a, b) => groups[a][0]?.normalized?.[1] - groups[b][0]?.normalized?.[1]);
|
562
|
+
const element = is('function', tooltipGroupRender) ? tooltipGroupRender(groups, groupsSorted) : /*#__PURE__*/React.createElement(Line, {
|
563
|
+
tonal: tonal,
|
564
|
+
color: color,
|
565
|
+
elevation: 1,
|
566
|
+
gap: 0.25,
|
567
|
+
direction: "column",
|
568
|
+
Component: Surface,
|
569
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-append'], classes.append])
|
570
|
+
}, /*#__PURE__*/React.createElement(Line, {
|
571
|
+
gap: 1,
|
572
|
+
direction: "column",
|
573
|
+
style: {
|
574
|
+
width: '100%'
|
575
|
+
}
|
576
|
+
}, /*#__PURE__*/React.createElement(Line, {
|
577
|
+
gap: 1,
|
578
|
+
direction: "row",
|
579
|
+
align: "center"
|
580
|
+
}, /*#__PURE__*/React.createElement(Type, {
|
581
|
+
version: "b3",
|
582
|
+
style: {
|
583
|
+
fontWeight: 600
|
584
|
+
}
|
585
|
+
}, names?.y || 'y'), /*#__PURE__*/React.createElement(Type, {
|
586
|
+
version: "b3",
|
587
|
+
style: {
|
588
|
+
fontWeight: 600
|
589
|
+
}
|
590
|
+
}, names?.x || 'x')), /*#__PURE__*/React.createElement(Line, {
|
591
|
+
gap: 1,
|
592
|
+
direction: "column"
|
593
|
+
}, groupsSorted.map((group, index) => /*#__PURE__*/React.createElement(Line, {
|
594
|
+
key: index,
|
595
|
+
gap: 1,
|
596
|
+
direction: "column",
|
597
|
+
style: {
|
598
|
+
width: '100%'
|
599
|
+
}
|
600
|
+
}, /*#__PURE__*/React.createElement("span", {
|
601
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-append-icon'], classes.append_icon]),
|
602
|
+
style: {
|
603
|
+
background: !refs.theme.current.palette.color[group] ? group : refs.theme.current.palette.color[group][groups[group][0]?.item?.tone || 'main']
|
604
|
+
}
|
605
|
+
}), /*#__PURE__*/React.createElement(Line, {
|
606
|
+
gap: 0,
|
607
|
+
direction: "column",
|
608
|
+
style: {
|
609
|
+
width: '100%'
|
610
|
+
}
|
611
|
+
}, groups[group].map((item, index_) => /*#__PURE__*/React.createElement(Line, {
|
612
|
+
key: index_,
|
613
|
+
gap: 1,
|
614
|
+
direction: "row",
|
615
|
+
style: {
|
616
|
+
width: '100%'
|
617
|
+
}
|
618
|
+
}, /*#__PURE__*/React.createElement(Type, {
|
619
|
+
version: "b3"
|
620
|
+
}, is('function', labelResolve) ? labelResolve(item?.values?.[1], 'y', item, 'group') : item?.values?.[1]), /*#__PURE__*/React.createElement(Type, {
|
621
|
+
version: "b3"
|
622
|
+
}, is('function', labelResolve) ? labelResolve(item?.values?.[0], 'x', item, 'group') : item?.values?.[0])))))))));
|
623
|
+
const rectSvg = refs.svg.current.getBoundingClientRect();
|
624
|
+
const width = 8;
|
625
|
+
const height = 8;
|
626
|
+
const rect_ = {
|
627
|
+
x: x + rectSvg.x - width,
|
628
|
+
y: y + rectSvg.y - width,
|
629
|
+
width,
|
630
|
+
height
|
631
|
+
};
|
632
|
+
rect_.top = rect_.y;
|
633
|
+
rect_.bottom = rect_.y + height;
|
634
|
+
rect_.left = rect_.x;
|
635
|
+
rect_.right = rect_.x + width;
|
636
|
+
setAppend({
|
637
|
+
open: true,
|
638
|
+
element,
|
639
|
+
rect: rect_
|
640
|
+
});
|
641
|
+
};
|
642
|
+
React.useEffect(() => {
|
643
|
+
const onMove = (x_, y_) => {
|
644
|
+
// Only horizontal move at the moment
|
645
|
+
// ie. vertical guidelines
|
646
|
+
const rectWrapper = refs.rects.current.wrapper;
|
647
|
+
const rectSvg = refs.svg.current.getBoundingClientRect();
|
648
|
+
let x = clamp(x_ - rectSvg?.x, 0, rectWrapper?.width);
|
649
|
+
const y = clamp(y_ - rectSvg?.y, 0, rectWrapper?.height);
|
650
|
+
if (refs.guidelinesAppend.current && ['both', 'vertical'].includes(refs.guidelines.current)) {
|
651
|
+
const allValues = refs.allValues.current;
|
652
|
+
let index;
|
653
|
+
let previous;
|
654
|
+
let item;
|
655
|
+
for (let i = 0; i < allValues.length; i++) {
|
656
|
+
previous = allValues[i - 1];
|
657
|
+
item = allValues[i];
|
658
|
+
if (previous?.normalized?.[0] <= x && x <= item?.normalized?.[0]) {
|
659
|
+
index = i;
|
660
|
+
break;
|
661
|
+
}
|
662
|
+
}
|
663
|
+
if (index === undefined) {
|
664
|
+
index = x <= allValues[0]?.normalized?.[0] ? 0 : allValues.length - 1;
|
665
|
+
previous = allValues[index - 1];
|
666
|
+
item = allValues[index];
|
667
|
+
}
|
668
|
+
if (previous || item) {
|
669
|
+
if (!previous) x = item.normalized?.[0];else if (!item) x = previous.normalized?.[0];else {
|
670
|
+
const len = item.normalized[0] - previous.normalized[0];
|
671
|
+
const part = len / 2;
|
672
|
+
x = x < previous.normalized[0] + part ? previous.normalized[0] : item.normalized[0];
|
673
|
+
}
|
674
|
+
}
|
675
|
+
makeGroupTooltip(x, y);
|
676
|
+
}
|
677
|
+
setGuidelinePosition(value_ => _objectSpread(_objectSpread({}, value_), {}, {
|
678
|
+
x,
|
679
|
+
y
|
680
|
+
}));
|
681
|
+
};
|
682
|
+
const onMouseMove = event => {
|
683
|
+
if (refs.hover.current) {
|
684
|
+
const x = event.clientX;
|
685
|
+
const y = event.clientY;
|
686
|
+
onMove(x, y);
|
687
|
+
}
|
688
|
+
};
|
689
|
+
const onTouchMove = event => {
|
690
|
+
if (refs.hover.current) {
|
691
|
+
const x = event.touches[0].clientX;
|
692
|
+
const y = event.touches[0].clientY;
|
693
|
+
onMove(x, y);
|
694
|
+
}
|
695
|
+
};
|
696
|
+
const method = () => {
|
697
|
+
if (refs.wrapper.current) {
|
698
|
+
const rectWrapper = refs.wrapper.current.getBoundingClientRect();
|
699
|
+
const rectSvg = refs.svg.current.getBoundingClientRect();
|
700
|
+
const rects_ = {
|
701
|
+
wrapper: rectWrapper,
|
702
|
+
svg: rectSvg
|
703
|
+
};
|
704
|
+
setRects(rects_);
|
705
|
+
if (is('function', onUpdateRects)) onUpdateRects(rects_);
|
706
|
+
}
|
707
|
+
};
|
708
|
+
method();
|
709
|
+
const observer = new ResizeObserver(method);
|
710
|
+
observer.observe(refs.root.current);
|
711
|
+
const rootDocument = isEnvironment('browser') ? refs.root.current?.ownerDocument || window.document : undefined;
|
712
|
+
rootDocument.addEventListener('mousemove', onMouseMove);
|
713
|
+
rootDocument.addEventListener('touchmove', onTouchMove);
|
714
|
+
rootDocument.addEventListener('touchend', onWrapperMouseLeave);
|
715
|
+
return () => {
|
716
|
+
observer.disconnect();
|
717
|
+
rootDocument.removeEventListener('mousemove', onMouseMove);
|
718
|
+
rootDocument.removeEventListener('touchmove', onTouchMove);
|
719
|
+
rootDocument.removeEventListener('touchend', onWrapperMouseLeave);
|
720
|
+
};
|
721
|
+
}, []);
|
722
|
+
React.useEffect(() => {
|
723
|
+
make();
|
724
|
+
}, [values, labels__, marks__, grid__, additionalLines__, legend__, visible, guidelinesAppend && guidelinesPosition, rects, theme]);
|
725
|
+
const onPointMouseEnter = React.useCallback(values_ => {
|
726
|
+
if (tooltipIndividually) {
|
727
|
+
setAppend(_objectSpread(_objectSpread({}, is('function', tooltipRender) ? tooltipRender(values_) : values_), {}, {
|
728
|
+
rect: values_.rect,
|
729
|
+
open: true
|
730
|
+
}));
|
731
|
+
}
|
732
|
+
}, [tooltipRender, tooltipIndividually]);
|
733
|
+
const onPointMouseLeave = React.useCallback(() => {
|
734
|
+
setAppend(append_ => _objectSpread(_objectSpread({}, append_), {}, {
|
735
|
+
open: false
|
736
|
+
}));
|
737
|
+
}, []);
|
738
|
+
const onLegendClick = value => {
|
739
|
+
if (value !== undefined && legendManageVisibility) {
|
740
|
+
setVisible(visible_ => _objectSpread(_objectSpread({}, visible_), {}, {
|
741
|
+
[value]: ![undefined, true].includes(visible_[value])
|
742
|
+
}));
|
743
|
+
}
|
744
|
+
};
|
745
|
+
const LegendItem = React.useCallback(props__ => {
|
746
|
+
const {
|
747
|
+
item = {},
|
748
|
+
className: className_
|
749
|
+
} = props__,
|
750
|
+
other_ = _objectWithoutProperties(props__, _excluded2);
|
751
|
+
const {
|
752
|
+
color: color_,
|
753
|
+
tone = 'main',
|
754
|
+
name = 'No name'
|
755
|
+
} = item;
|
756
|
+
return /*#__PURE__*/React.createElement(Line, _extends({
|
757
|
+
gap: 1,
|
758
|
+
direction: "row",
|
759
|
+
align: "center"
|
760
|
+
}, LegendItemProps, {
|
761
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-legend-item'], className_, LegendItemProps?.className, classes.legend_item])
|
762
|
+
}, other_), /*#__PURE__*/React.createElement("span", {
|
763
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-legend-icon'], classes.legend_icon]),
|
764
|
+
style: {
|
765
|
+
color: !theme.palette.color[color_] ? color_ : theme.palette.color[color_][tone],
|
766
|
+
background: !theme.palette.color[color_] ? color_ : theme.palette.color[color_][tone]
|
767
|
+
}
|
768
|
+
}), /*#__PURE__*/React.createElement(Type, {
|
769
|
+
version: "b2"
|
770
|
+
}, name));
|
771
|
+
}, [theme]);
|
772
|
+
const make = function () {
|
773
|
+
let valueNew = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : refs.values.current;
|
774
|
+
// Make values into x, y, coordinates
|
775
|
+
// normalized in rect width, height values
|
776
|
+
|
777
|
+
// invert y so 0, 0 is at bottom left
|
778
|
+
if (refs.rects.current && valueNew && !noMain) {
|
779
|
+
const {
|
780
|
+
width,
|
781
|
+
height
|
782
|
+
} = refs.rects.current.wrapper;
|
783
|
+
|
784
|
+
// Labels
|
785
|
+
const labels_ = {
|
786
|
+
x: is('array', labels__?.x) ? labels__.x : minMaxBetweenNumbers(labelsXAutoNumber !== undefined ? labelsXAutoNumber : labelsAutoNumber !== undefined ? labelsAutoNumber : 10, refs.minMax.current.min.x, refs.minMax.current.max.x).map(item => ({
|
787
|
+
value: item,
|
788
|
+
label: castParam(item.toFixed(labelDecimalPlaces || 0))
|
789
|
+
})),
|
790
|
+
y: is('array', labels__?.y) ? labels__.y : minMaxBetweenNumbers(labelsYAutoNumber !== undefined ? labelsYAutoNumber : labelsAutoNumber !== undefined ? labelsAutoNumber : 10, refs.minMax.current.min.y, refs.minMax.current.max.y).map(item => ({
|
791
|
+
value: item,
|
792
|
+
label: castParam(item.toFixed(labelDecimalPlaces || 0))
|
793
|
+
}))
|
794
|
+
};
|
795
|
+
labels_.x = labels_.x.map(item => _objectSpread(_objectSpread({}, item), {}, {
|
796
|
+
percentage: percentageFromValueWithinRange(item.value, refs.minMax.current.min.x, refs.minMax.current.max.x)
|
797
|
+
}));
|
798
|
+
labels_.y = labels_.y.map(item => _objectSpread(_objectSpread({}, item), {}, {
|
799
|
+
percentage: percentageFromValueWithinRange(item.value, refs.minMax.current.min.y, refs.minMax.current.max.y)
|
800
|
+
}));
|
801
|
+
|
802
|
+
// Marks
|
803
|
+
const marks_ = {
|
804
|
+
x: is('array', marks__?.x) ? marks__.x : minMaxBetweenNumbers(marksXAutoNumber !== undefined ? marksXAutoNumber : marksAutoNumber !== undefined ? marksAutoNumber : 10, refs.minMax.current.min.x, refs.minMax.current.max.x).map(item => ({
|
805
|
+
value: item
|
806
|
+
})),
|
807
|
+
y: is('array', marks__?.y) ? marks__.y : minMaxBetweenNumbers(marksYAutoNumber !== undefined ? marksYAutoNumber : marksAutoNumber !== undefined ? marksAutoNumber : 10, refs.minMax.current.min.y, refs.minMax.current.max.y).map(item => ({
|
808
|
+
value: item
|
809
|
+
}))
|
810
|
+
};
|
811
|
+
marks_.x = marks_.x.map(item => _objectSpread(_objectSpread({}, item), {}, {
|
812
|
+
percentage: percentageFromValueWithinRange(item.value, refs.minMax.current.min.x, refs.minMax.current.max.x)
|
813
|
+
}));
|
814
|
+
marks_.y = marks_.y.map(item => _objectSpread(_objectSpread({}, item), {}, {
|
815
|
+
percentage: percentageFromValueWithinRange(item.value, refs.minMax.current.min.y, refs.minMax.current.max.y)
|
816
|
+
}));
|
817
|
+
|
818
|
+
// Grid
|
819
|
+
const grid_ = {
|
820
|
+
x: is('array', grid__?.x) ? grid__.x : minMaxBetweenNumbers(gridXAutoNumber !== undefined ? gridXAutoNumber : gridAutoNumber !== undefined ? gridAutoNumber : 10, refs.minMax.current.min.x, refs.minMax.current.max.x).map(item => ({
|
821
|
+
value: item
|
822
|
+
})),
|
823
|
+
y: is('array', grid__?.y) ? grid__.y : minMaxBetweenNumbers(gridYAutoNumber !== undefined ? gridYAutoNumber : gridAutoNumber !== undefined ? gridAutoNumber : 10, refs.minMax.current.min.y, refs.minMax.current.max.y).map(item => ({
|
824
|
+
value: item
|
825
|
+
}))
|
826
|
+
};
|
827
|
+
grid_.x = grid_.x.map(item => _objectSpread(_objectSpread({}, item), {}, {
|
828
|
+
percentage: percentageFromValueWithinRange(item.value, refs.minMax.current.min.x, refs.minMax.current.max.x)
|
829
|
+
}));
|
830
|
+
grid_.y = grid_.y.map(item => _objectSpread(_objectSpread({}, item), {}, {
|
831
|
+
percentage: percentageFromValueWithinRange(item.value, refs.minMax.current.min.y, refs.minMax.current.max.y)
|
832
|
+
}));
|
833
|
+
refs.allValues.current = [];
|
834
|
+
|
835
|
+
// Points
|
836
|
+
const points_ = copy(valueNew).flatMap(item => {
|
837
|
+
const {
|
838
|
+
color: color_,
|
839
|
+
tone = 'main',
|
840
|
+
name
|
841
|
+
} = item;
|
842
|
+
const itemValues = _ref => {
|
843
|
+
let [x, y, ...args] = _ref;
|
844
|
+
const values__ = {
|
845
|
+
x: percentageFromValueWithinRange(x, refs.minMax.current.min.x, refs.minMax.current.max.x),
|
846
|
+
y: percentageFromValueWithinRange(y, refs.minMax.current.min.y, refs.minMax.current.max.y)
|
847
|
+
};
|
848
|
+
values__.x = valueFromPercentageWithinRange(values__.x, 0, width);
|
849
|
+
values__.y = valueFromPercentageWithinRange(values__.y, 0, height);
|
850
|
+
if (refs.visible.current[name] !== false) {
|
851
|
+
refs.allValues.current.push({
|
852
|
+
item,
|
853
|
+
values: [x, y, ...args],
|
854
|
+
normalized: [values__.x, height - values__.y].map(item_ => Math.abs(item_))
|
855
|
+
});
|
856
|
+
}
|
857
|
+
return {
|
858
|
+
values: [x, y, ...args],
|
859
|
+
normalized: [values__.x, height - values__.y].map(item_ => Math.abs(item_))
|
860
|
+
};
|
861
|
+
};
|
862
|
+
const itemArrayNested = is('array', item.values?.[0]);
|
863
|
+
const values_ = itemArrayNested ? copy(item.values)
|
864
|
+
// Sort for x from smallest to largest
|
865
|
+
.sort((a, b) => a[0] - b[0]).map(itemValues) : [itemValues(item.values)];
|
866
|
+
return values_.map((item_, index) => /*#__PURE__*/React.createElement(Path, _extends({
|
867
|
+
key: index,
|
868
|
+
Component: "circle",
|
869
|
+
r: 4,
|
870
|
+
cx: item_.normalized[0],
|
871
|
+
cy: item_.normalized[1],
|
872
|
+
fill: !theme.palette.color[color_] ? color_ : theme.palette.color[color_][tone],
|
873
|
+
stroke: "none"
|
874
|
+
}, !elementTooltip ? {
|
875
|
+
onMouseEnter: event => {
|
876
|
+
const rect_ = event.target.getBoundingClientRect();
|
877
|
+
onPointMouseEnter({
|
878
|
+
values: item_.values,
|
879
|
+
rect: rect_
|
880
|
+
});
|
881
|
+
},
|
882
|
+
onMouseLeave: onPointMouseLeave
|
883
|
+
} : undefined, PointProps, {
|
884
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-point'], PointProps?.className, classes.point, classes[`point_visibility_${pointsVisibility}`], refs.guidelinesAppend.current && refs.guidelinesPosition.current.x === item_.normalized[0] && classes.point_active]),
|
885
|
+
style: _objectSpread(_objectSpread({}, refs.visible.current[name] === false ? {
|
886
|
+
opacity: 0,
|
887
|
+
pointerEvents: 'none'
|
888
|
+
} : undefined), PointProps?.style)
|
889
|
+
})));
|
890
|
+
});
|
891
|
+
refs.allValues.current.sort((a, b) => a?.normalized[0] - b?.normalized[0]);
|
892
|
+
|
893
|
+
// Guidelines
|
894
|
+
const additionalLines_ = additionalLines__ && additionalLines__.map((item, index) => {
|
895
|
+
const {
|
896
|
+
color: color_,
|
897
|
+
tone = 'main',
|
898
|
+
style
|
899
|
+
} = item;
|
900
|
+
const values_ = {
|
901
|
+
x1: percentageFromValueWithinRange(item.x1, refs.minMax.current.min.x, refs.minMax.current.max.x),
|
902
|
+
y1: percentageFromValueWithinRange(item.y1, refs.minMax.current.min.y, refs.minMax.current.max.y),
|
903
|
+
x2: percentageFromValueWithinRange(item.x2, refs.minMax.current.min.x, refs.minMax.current.max.x),
|
904
|
+
y2: percentageFromValueWithinRange(item.y2, refs.minMax.current.min.y, refs.minMax.current.max.y)
|
905
|
+
};
|
906
|
+
values_.x1 = valueFromPercentageWithinRange(values_.x1, 0, width);
|
907
|
+
values_.y1 = valueFromPercentageWithinRange(values_.y1, 0, height);
|
908
|
+
values_.x2 = valueFromPercentageWithinRange(values_.x2, 0, width);
|
909
|
+
values_.y2 = valueFromPercentageWithinRange(values_.y2, 0, height);
|
910
|
+
return /*#__PURE__*/React.createElement(Path, _extends({
|
911
|
+
key: index,
|
912
|
+
d: `M ${values_.x1} ${height - values_.y1} L ${values_.x2} ${height - values_.y2}`,
|
913
|
+
fill: "none",
|
914
|
+
stroke: !theme.palette.color[color_] ? color_ : theme.palette.color[color_][tone]
|
915
|
+
}, AdditionalLineProps, {
|
916
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-additional-lines'], AdditionalLineProps?.className, classes.additionalLines]),
|
917
|
+
style: _objectSpread(_objectSpread({}, style), AdditionalLineProps?.style)
|
918
|
+
}));
|
919
|
+
});
|
920
|
+
|
921
|
+
// Labels
|
922
|
+
setLabels(labels_);
|
923
|
+
|
924
|
+
// Marks
|
925
|
+
setMarks(marks_);
|
926
|
+
|
927
|
+
// Grid
|
928
|
+
setGrid(grid_);
|
929
|
+
|
930
|
+
// Guidelines
|
931
|
+
setAdditionalLines(additionalLines_);
|
932
|
+
|
933
|
+
// Update children value
|
934
|
+
setPoints(points_);
|
935
|
+
}
|
936
|
+
|
937
|
+
// Legend
|
938
|
+
const legend_ = legend__ !== 'auto' ? legend__ : [];
|
939
|
+
if (legend__ === 'auto') {
|
940
|
+
const map = {};
|
941
|
+
values.forEach(item => {
|
942
|
+
const name = item?.name || '';
|
943
|
+
if (!map[name]) {
|
944
|
+
legend_.push({
|
945
|
+
item,
|
946
|
+
element: /*#__PURE__*/React.createElement(LegendItem, {
|
947
|
+
item: item
|
948
|
+
})
|
949
|
+
});
|
950
|
+
map[name] = true;
|
951
|
+
}
|
952
|
+
});
|
953
|
+
}
|
954
|
+
|
955
|
+
// Legend
|
956
|
+
if (is('array', legend_)) setLegend(legend_);
|
957
|
+
};
|
958
|
+
return /*#__PURE__*/React.createElement(Surface, _extends({
|
959
|
+
ref: item => {
|
960
|
+
if (ref) {
|
961
|
+
if (is('function', ref)) ref(item);else ref.current = item;
|
962
|
+
}
|
963
|
+
refs.root.current = item;
|
964
|
+
},
|
965
|
+
tonal: tonal,
|
966
|
+
color: color,
|
967
|
+
gap: 0,
|
968
|
+
direction: "column",
|
969
|
+
align: "center",
|
970
|
+
Component: Line,
|
971
|
+
AdditionalProps: {
|
972
|
+
Component
|
973
|
+
},
|
974
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-root'], className, classes.root])
|
975
|
+
}, other), (title || subtitle) && /*#__PURE__*/React.createElement(Line, _extends({
|
976
|
+
gap: 0.5,
|
977
|
+
align: "center",
|
978
|
+
justify: "center"
|
979
|
+
}, HeaderProps, {
|
980
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-header'], HeaderProps?.className, classes.header, labels?.y && labelsY && classes.legend_offset_labels_y, names?.y && nameY && classes.legend_offset_names_y])
|
981
|
+
}), is('simple', title) ? /*#__PURE__*/React.createElement(Type, _extends({
|
982
|
+
version: "t2"
|
983
|
+
}, TypeProps, TitleProps, {
|
984
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-title'], TypeProps?.className, TitleProps?.className, classes.title])
|
985
|
+
}), title) : title, is('simple', subtitle) ? /*#__PURE__*/React.createElement(Type, _extends({
|
986
|
+
version: "b3"
|
987
|
+
}, TypeProps, SubtitleProps, {
|
988
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-title'], TypeProps?.className, SubtitleProps?.className, classes.subtitle])
|
989
|
+
}), subtitle) : subtitle), legend__ && legendPosition === 'top' && legend && /*#__PURE__*/React.createElement(Line, _extends({
|
990
|
+
gap: 2,
|
991
|
+
direction: "row",
|
992
|
+
align: "center",
|
993
|
+
justify: "center",
|
994
|
+
wrap: "wrap"
|
995
|
+
}, LegendProps, {
|
996
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-legend', `onesy-Chart-legend-position-${legendPosition}`], LegendProps?.className, classes.legend, classes[`legend_position_${legendPosition}`], labels?.y && labelsY && classes.legend_offset_labels_y, names?.y && nameY && classes.legend_offset_names_y])
|
997
|
+
}), legend.map(_ref2 => {
|
998
|
+
let {
|
999
|
+
item,
|
1000
|
+
element
|
1001
|
+
} = _ref2;
|
1002
|
+
return /*#__PURE__*/React.cloneElement(element, {
|
1003
|
+
onClick: () => onLegendClick(item.name),
|
1004
|
+
className: classNames([element?.props?.className, legendManageVisibility && classes.legend_item_manage_visibility, refs.visible.current[item.name] === false && classes.legend_item_hidden])
|
1005
|
+
});
|
1006
|
+
})), /*#__PURE__*/React.createElement(Line, _extends({
|
1007
|
+
ref: refs.wrapper
|
1008
|
+
}, WrapperProps, {
|
1009
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-wrapper'], WrapperProps?.className, classes.wrapper, labels?.x && labels?.y && labelsX && labelsY && classes.wrapper_labels, !(labels?.x && labels?.y && labelsX && labelsY) && labels?.x && labelsX && classes.wrapper_label_x, !(labels?.x && labels?.y && labelsX && labelsY) && labels?.y && labelsY && classes.wrapper_label_y, names?.x && names?.y && nameX && nameY && classes.wrapper_names, !(names?.x && names?.y && nameX && nameY) && names?.x && nameX && classes.wrapper_name_x, !(names?.x && names?.y && nameX && nameY) && names?.y && nameY && classes.wrapper_name_y])
|
1010
|
+
}), /*#__PURE__*/React.createElement(Surface, {
|
1011
|
+
tonal: tonal,
|
1012
|
+
color: color
|
1013
|
+
}, _ref3 => {
|
1014
|
+
let {
|
1015
|
+
color: color_,
|
1016
|
+
backgroundColor,
|
1017
|
+
palette
|
1018
|
+
} = _ref3;
|
1019
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, !!grid__ && gridX && grid?.x && /*#__PURE__*/React.createElement(Line, {
|
1020
|
+
gap: 0,
|
1021
|
+
direction: "row",
|
1022
|
+
align: "flex-start",
|
1023
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-grids', 'onesy-Chart-grids-x'], classes.grids, classes.grids_x])
|
1024
|
+
}, grid.x.map((item, index) => /*#__PURE__*/React.createElement("div", {
|
1025
|
+
key: index,
|
1026
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-grid', 'onesy-Chart-grid-x'], classes.grid, classes.grid_x]),
|
1027
|
+
style: {
|
1028
|
+
left: `${item.percentage}%`
|
1029
|
+
}
|
1030
|
+
}))), !!grid__ && gridY && grid?.y && /*#__PURE__*/React.createElement(Line, {
|
1031
|
+
gap: 0,
|
1032
|
+
direction: "column",
|
1033
|
+
align: "flex-end",
|
1034
|
+
justify: "center",
|
1035
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-grids', 'onesy-Chart-grids-y'], classes.grids, classes.grids_y])
|
1036
|
+
}, grid.y.map((item, index) => /*#__PURE__*/React.createElement("div", {
|
1037
|
+
key: index,
|
1038
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-grid', 'onesy-Chart-grid-y'], classes.grid, classes.grid_y]),
|
1039
|
+
style: {
|
1040
|
+
bottom: `${item.percentage}%`
|
1041
|
+
}
|
1042
|
+
}))), /*#__PURE__*/React.createElement("svg", _extends({
|
1043
|
+
ref: refs.svg,
|
1044
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1045
|
+
viewBox: `0 0 ${rects?.wrapper?.width || 0} ${rects?.wrapper?.height || 0}`
|
1046
|
+
}, guidelines ? {
|
1047
|
+
onMouseEnter: onWrapperMouseEnter,
|
1048
|
+
onTouchStart: onWrapperMouseEnter,
|
1049
|
+
onMouseLeave: onWrapperMouseLeave
|
1050
|
+
} : undefined, SvgProps, {
|
1051
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-svg'], SvgProps?.className, classes.svg])
|
1052
|
+
}), /*#__PURE__*/React.createElement("defs", {
|
1053
|
+
ref: refs.defs
|
1054
|
+
}, defs && defs.map((item, index) => (/*#__PURE__*/React.cloneElement(item, {
|
1055
|
+
key: index
|
1056
|
+
})))), pre, elements && elements.map((_ref4, index) => {
|
1057
|
+
let {
|
1058
|
+
item,
|
1059
|
+
element
|
1060
|
+
} = _ref4;
|
1061
|
+
const isVisible = visible[item?.name] === undefined || !!visible[item?.name];
|
1062
|
+
return /*#__PURE__*/React.cloneElement(element, _objectSpread(_objectSpread({
|
1063
|
+
key: index
|
1064
|
+
}, elementTooltip ? {
|
1065
|
+
onMouseEnter: event => {
|
1066
|
+
const rect_ = event.target.getBoundingClientRect();
|
1067
|
+
onPointMouseEnter(_objectSpread(_objectSpread({}, item), {}, {
|
1068
|
+
rect: rect_
|
1069
|
+
}));
|
1070
|
+
},
|
1071
|
+
onMouseLeave: onPointMouseLeave
|
1072
|
+
} : undefined), {}, {
|
1073
|
+
style: _objectSpread(_objectSpread({}, element?.props?.style), !isVisible ? {
|
1074
|
+
opacity: '0',
|
1075
|
+
pointerEvents: 'none'
|
1076
|
+
} : undefined)
|
1077
|
+
}));
|
1078
|
+
}), children && React.Children.toArray(children).map((element, index) => {
|
1079
|
+
const isVisible = visible[element.props?.name] === undefined || !!visible[element.props?.name];
|
1080
|
+
return /*#__PURE__*/React.cloneElement(element, _objectSpread(_objectSpread({
|
1081
|
+
key: index,
|
1082
|
+
refs: {
|
1083
|
+
wrapper: refs.wrapper.current,
|
1084
|
+
defs: refs.defs.current
|
1085
|
+
},
|
1086
|
+
rects,
|
1087
|
+
animate: element.props.animate !== undefined ? element.props.animate : animate,
|
1088
|
+
animateTimeout: element.props.animateTimeout !== undefined ? element.props.animateTimeout : animateTimeout,
|
1089
|
+
updateDefs: setDefs,
|
1090
|
+
updateLegend: setLegend
|
1091
|
+
}, elementTooltip ? {
|
1092
|
+
onMouseEnter: event => {
|
1093
|
+
const rect_ = event.target.getBoundingClientRect();
|
1094
|
+
onPointMouseEnter(_objectSpread(_objectSpread({}, element.props), {}, {
|
1095
|
+
rect: rect_
|
1096
|
+
}));
|
1097
|
+
},
|
1098
|
+
onMouseLeave: onPointMouseLeave
|
1099
|
+
} : undefined), {}, {
|
1100
|
+
minMax: element.props.minMax !== undefined ? element.props.minMax : minMax,
|
1101
|
+
minX: element.props.minX !== undefined ? element.props.minX : minX,
|
1102
|
+
maxX: element.props.maxX !== undefined ? element.props.maxX : maxX,
|
1103
|
+
minY: element.props.minY !== undefined ? element.props.minY : minY,
|
1104
|
+
maxY: element.props.maxY !== undefined ? element.props.maxY : maxY,
|
1105
|
+
minMaxPadding: element.props.minMaxPadding !== undefined ? element.props.minMaxPadding : minMaxPadding,
|
1106
|
+
minPadding: element.props.minPadding !== undefined ? element.props.minPadding : minPadding,
|
1107
|
+
maxPadding: element.props.maxPadding !== undefined ? element.props.maxPadding : maxPadding,
|
1108
|
+
minPaddingX: element.props.minPaddingX !== undefined ? element.props.minPaddingX : minPaddingX,
|
1109
|
+
minPaddingY: element.props.minPaddingY !== undefined ? element.props.minPaddingY : minPaddingY,
|
1110
|
+
maxPaddingX: element.props.maxPaddingX !== undefined ? element.props.maxPaddingX : maxPaddingX,
|
1111
|
+
maxPaddingY: element.props.maxPaddingY !== undefined ? element.props.maxPaddingY : maxPaddingY,
|
1112
|
+
style: _objectSpread(_objectSpread({}, element?.props?.style), !isVisible ? {
|
1113
|
+
opacity: '0',
|
1114
|
+
pointerEvents: 'none'
|
1115
|
+
} : undefined)
|
1116
|
+
}));
|
1117
|
+
}), additionalLines && /*#__PURE__*/React.createElement("g", _extends({}, AdditionalLinesProps, {
|
1118
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-additional-lines'], AdditionalLinesProps?.className, classes.additionalLines])
|
1119
|
+
}), additionalLines), guidelines && guidelinesIn && /*#__PURE__*/React.createElement(React.Fragment, null, ['both', 'vertical'].includes(guidelines) && /*#__PURE__*/React.createElement("path", _extends({
|
1120
|
+
d: `M ${guidelinesPosition?.x || 0} 0 ${guidelinesPosition?.x || 0} ${rects?.wrapper?.height || 0}`
|
1121
|
+
}, GuidelineProps, {
|
1122
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-guidelines', 'onesy-Chart-guidelines-vertical'], GuidelineProps?.className, classes.guidelines, classes.guidelines_vertical])
|
1123
|
+
})), ['both', 'horizontal'].includes(guidelines) && /*#__PURE__*/React.createElement("path", _extends({
|
1124
|
+
d: `M 0 ${guidelinesPosition?.y || 0} ${rects?.wrapper?.width || 0} ${guidelinesPosition?.y || 0}`
|
1125
|
+
}, GuidelineProps, {
|
1126
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-guidelines', 'onesy-Chart-guidelines-horizontal'], GuidelineProps?.className, classes.guidelines, classes.guidelines_horizontal])
|
1127
|
+
}))), points__ && points && /*#__PURE__*/React.createElement("g", _extends({}, PointsProps, {
|
1128
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-points'], PointsProps?.className, classes.points])
|
1129
|
+
}), points.map((item, index) => (/*#__PURE__*/React.cloneElement(item, {
|
1130
|
+
key: index
|
1131
|
+
}))))), borders && /*#__PURE__*/React.createElement(React.Fragment, null, borderTop && /*#__PURE__*/React.createElement("div", {
|
1132
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-border', 'onesy-Chart-border-x', 'onesy-Chart-border-top'], classes.border, classes.borderX, classes.borderTop])
|
1133
|
+
}), borderBottom && /*#__PURE__*/React.createElement("div", {
|
1134
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-border', 'onesy-Chart-border-x', 'onesy-Chart-border-bottom'], classes.border, classes.borderX, classes.borderBottom])
|
1135
|
+
}), borderStart && /*#__PURE__*/React.createElement("div", {
|
1136
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-border', 'onesy-Chart-border-y', 'onesy-Chart-border-start'], classes.border, classes.borderY, classes.boderStart])
|
1137
|
+
}), borderLeft && /*#__PURE__*/React.createElement("div", {
|
1138
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-border', 'onesy-Chart-border-y', 'onesy-Chart-border-left'], classes.border, classes.borderY, classes.borderLeft])
|
1139
|
+
}), borderEnd && /*#__PURE__*/React.createElement("div", {
|
1140
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-border', 'onesy-Chart-border-y', 'onesy-Chart-border-end'], classes.border, classes.borderY, classes.borderEnd])
|
1141
|
+
}), borderRight && /*#__PURE__*/React.createElement("div", {
|
1142
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-border', 'onesy-Chart-border-y', 'onesy-Chart-border-right'], classes.border, classes.borderY, classes.borderRight])
|
1143
|
+
})), !!labels__ && labelsX && labels?.x && /*#__PURE__*/React.createElement(Line, {
|
1144
|
+
gap: 0,
|
1145
|
+
direction: "row",
|
1146
|
+
align: "flex-start",
|
1147
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-labels', 'onesy-Chart-labels-x'], classes.labels, classes.labels_x])
|
1148
|
+
}, labels.x.map((item, index) => {
|
1149
|
+
const itemProps = {
|
1150
|
+
key: index,
|
1151
|
+
version: 'b3',
|
1152
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-label', 'onesy-Chart-label-x'], classes.label, classes.label_x]),
|
1153
|
+
style: {
|
1154
|
+
left: `${item.percentage}%`
|
1155
|
+
}
|
1156
|
+
};
|
1157
|
+
return is('function', labelRender) ? labelRender(_objectSpread(_objectSpread({}, item), {}, {
|
1158
|
+
axis: 'x',
|
1159
|
+
props: itemProps
|
1160
|
+
})) : /*#__PURE__*/React.createElement(Type, {
|
1161
|
+
key: index,
|
1162
|
+
version: "b3",
|
1163
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-label', 'onesy-Chart-label-x'], classes.label, classes.label_x]),
|
1164
|
+
style: {
|
1165
|
+
left: `${item.percentage}%`
|
1166
|
+
}
|
1167
|
+
}, is('function', labelResolve) ? labelResolve(item.label, 'x', item) : item.label);
|
1168
|
+
})), !!labels__ && labelsY && labels?.y && /*#__PURE__*/React.createElement(Line, {
|
1169
|
+
gap: 0,
|
1170
|
+
direction: "column",
|
1171
|
+
align: "flex-end",
|
1172
|
+
justify: "center",
|
1173
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-labels', 'onesy-Chart-labels-y'], classes.labels, classes.labels_y])
|
1174
|
+
}, labels.y.map((item, index) => is('function', labelRender) ? labelRender(_objectSpread(_objectSpread({}, item), {}, {
|
1175
|
+
axis: 'y'
|
1176
|
+
})) : /*#__PURE__*/React.createElement(Type, {
|
1177
|
+
key: index,
|
1178
|
+
version: "b3",
|
1179
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-label', 'onesy-Chart-label-y'], classes.label, classes.label_y]),
|
1180
|
+
style: {
|
1181
|
+
bottom: `${item.percentage}%`
|
1182
|
+
}
|
1183
|
+
}, is('function', labelResolve) ? labelResolve(item.label, 'y', item) : item.label))), !!marks__ && marksX && marks?.x && /*#__PURE__*/React.createElement(Line, {
|
1184
|
+
gap: 0,
|
1185
|
+
direction: "row",
|
1186
|
+
align: "flex-start",
|
1187
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-marks', 'onesy-Chart-marks-x'], classes.marks, classes.marks_x])
|
1188
|
+
}, marks.x.map((item, index) => /*#__PURE__*/React.createElement("span", {
|
1189
|
+
key: index,
|
1190
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-mark', 'onesy-Chart-mark-x'], classes.mark, classes.mark_x]),
|
1191
|
+
style: {
|
1192
|
+
left: `${item.percentage}%`
|
1193
|
+
}
|
1194
|
+
}, item.mark))), !!marks__ && marksY && marks?.y && /*#__PURE__*/React.createElement(Line, {
|
1195
|
+
gap: 0,
|
1196
|
+
direction: "column",
|
1197
|
+
align: "flex-end",
|
1198
|
+
justify: "center",
|
1199
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-marks', 'onesy-Chart-marks-y'], classes.marks, classes.marks_y])
|
1200
|
+
}, marks.y.map((item, index) => /*#__PURE__*/React.createElement("span", {
|
1201
|
+
key: index,
|
1202
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-mark', 'onesy-Chart-mark-y'], classes.mark, classes.mark_y]),
|
1203
|
+
style: {
|
1204
|
+
bottom: `${item.percentage}%`
|
1205
|
+
}
|
1206
|
+
}, item.mark))), names?.x && nameX && /*#__PURE__*/React.createElement(Type, {
|
1207
|
+
version: "b2",
|
1208
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-name', 'onesy-Chart-name-x'], classes.name, classes.name_x])
|
1209
|
+
}, names.x), names?.y && nameY && /*#__PURE__*/React.createElement(Type, {
|
1210
|
+
version: "b2",
|
1211
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-name', 'onesy-Chart-name-y'], classes.name, classes.name_y])
|
1212
|
+
}, names.y));
|
1213
|
+
})), legend__ && legendPosition === 'bottom' && legend && /*#__PURE__*/React.createElement(Line, _extends({
|
1214
|
+
gap: 2,
|
1215
|
+
direction: "row",
|
1216
|
+
align: "center",
|
1217
|
+
justify: "center",
|
1218
|
+
wrap: "wrap"
|
1219
|
+
}, LegendProps, {
|
1220
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-legend', `onesy-Chart-legend-position-${legendPosition}`], LegendProps?.className, classes.legend, classes[`legend_position_${legendPosition}`], labels?.y && labelsY && classes.legend_offset_labels_y, names?.y && nameY && classes.legend_offset_names_y])
|
1221
|
+
}), legend.map(_ref5 => {
|
1222
|
+
let {
|
1223
|
+
item,
|
1224
|
+
element
|
1225
|
+
} = _ref5;
|
1226
|
+
return /*#__PURE__*/React.cloneElement(element, {
|
1227
|
+
onClick: () => onLegendClick(item.name),
|
1228
|
+
className: classNames([element?.props?.className, legendManageVisibility && classes.legend_item_manage_visibility, refs.visible.current[item.name] === false && classes.legend_item_hidden])
|
1229
|
+
});
|
1230
|
+
})), tooltip && /*#__PURE__*/React.createElement(Append, _extends({
|
1231
|
+
open: true,
|
1232
|
+
offset: [16, 16],
|
1233
|
+
padding: [14, 14],
|
1234
|
+
element: /*#__PURE__*/React.createElement("div", {
|
1235
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-append-wrapper'], classes.append_wrapper]),
|
1236
|
+
style: _objectSpread({}, refs.appendStyle.current)
|
1237
|
+
}, /*#__PURE__*/React.createElement(Grow, {
|
1238
|
+
in: append?.open,
|
1239
|
+
onAdded: () => {
|
1240
|
+
refs.appendStyle.current = {
|
1241
|
+
transition: theme.methods.transitions.make('transform', {
|
1242
|
+
duration: 150
|
1243
|
+
})
|
1244
|
+
};
|
1245
|
+
},
|
1246
|
+
onEnter: () => {
|
1247
|
+
refs.appendStyle.current = {
|
1248
|
+
transition: theme.methods.transitions.make('transform', {
|
1249
|
+
duration: 150
|
1250
|
+
})
|
1251
|
+
};
|
1252
|
+
},
|
1253
|
+
onExited: () => {
|
1254
|
+
refs.appendStyle.current = {};
|
1255
|
+
},
|
1256
|
+
add: true
|
1257
|
+
}, append?.element || /*#__PURE__*/React.createElement(Line, {
|
1258
|
+
tonal: tonal,
|
1259
|
+
color: color,
|
1260
|
+
elevation: 1,
|
1261
|
+
gap: 0.4,
|
1262
|
+
direction: "column",
|
1263
|
+
Component: Surface,
|
1264
|
+
className: classNames([staticClassName('Chart', theme) && ['onesy-Chart-append'], classes.append])
|
1265
|
+
}, /*#__PURE__*/React.createElement(Line, {
|
1266
|
+
gap: 1,
|
1267
|
+
direction: "row",
|
1268
|
+
align: "center"
|
1269
|
+
}, /*#__PURE__*/React.createElement(Type, {
|
1270
|
+
version: "b3",
|
1271
|
+
style: {
|
1272
|
+
fontWeight: 600
|
1273
|
+
}
|
1274
|
+
}, names?.y || 'y'), /*#__PURE__*/React.createElement(Type, {
|
1275
|
+
version: "b3"
|
1276
|
+
}, is('function', labelResolve) ? labelResolve(append?.values?.[1], 'y', append, 'individual') : append?.values?.[1])), /*#__PURE__*/React.createElement(Line, {
|
1277
|
+
gap: 1,
|
1278
|
+
direction: "row",
|
1279
|
+
align: "center"
|
1280
|
+
}, /*#__PURE__*/React.createElement(Type, {
|
1281
|
+
version: "b3",
|
1282
|
+
style: {
|
1283
|
+
fontWeight: 600
|
1284
|
+
}
|
1285
|
+
}, names?.x || 'x'), /*#__PURE__*/React.createElement(Type, {
|
1286
|
+
version: "b3"
|
1287
|
+
}, is('function', labelResolve) ? labelResolve(append?.values?.[0], 'x', append, 'individual') : append?.values?.[0]))))),
|
1288
|
+
anchor: append?.rect,
|
1289
|
+
portal: true,
|
1290
|
+
alignment: "center",
|
1291
|
+
position: "top"
|
1292
|
+
}, AppendProps)));
|
1293
|
+
});
|
1294
|
+
Chart.displayName = 'onesy-Chart';
|
1295
|
+
export default Chart;
|