@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,796 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
3
|
+
var t = {};
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
5
|
+
t[p] = s[p];
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
9
|
+
t[p[i]] = s[p[i]];
|
10
|
+
}
|
11
|
+
return t;
|
12
|
+
};
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
18
|
+
const react_1 = __importDefault(require("react"));
|
19
|
+
const utils_1 = require("@onesy/utils");
|
20
|
+
const style_react_1 = require("@onesy/style-react");
|
21
|
+
const IconMaterialFormatItalicW100_1 = __importDefault(require("@amaui/icons-material-rounded-react/IconMaterialFormatItalicW100"));
|
22
|
+
const IconMaterialFormatUnderlinedW100_1 = __importDefault(require("@amaui/icons-material-rounded-react/IconMaterialFormatUnderlinedW100"));
|
23
|
+
const IconMaterialStrikethroughSW100_1 = __importDefault(require("@amaui/icons-material-rounded-react/IconMaterialStrikethroughSW100"));
|
24
|
+
const IconMaterialFormatBoldW100_1 = __importDefault(require("@amaui/icons-material-rounded-react/IconMaterialFormatBoldW100"));
|
25
|
+
const IconMaterialAddLinkW100_1 = __importDefault(require("@amaui/icons-material-rounded-react/IconMaterialAddLinkW100"));
|
26
|
+
const IconMaterialLinkOffW100_1 = __importDefault(require("@amaui/icons-material-rounded-react/IconMaterialLinkOffW100"));
|
27
|
+
const IconMaterialFormatClearW100_1 = __importDefault(require("@amaui/icons-material-rounded-react/IconMaterialFormatClearW100"));
|
28
|
+
const TextField_1 = __importDefault(require("../TextField/TextField"));
|
29
|
+
const Line_1 = __importDefault(require("../Line"));
|
30
|
+
const List_1 = __importDefault(require("../List"));
|
31
|
+
const ListItem_1 = __importDefault(require("../ListItem"));
|
32
|
+
const Avatar_1 = __importDefault(require("../Avatar"));
|
33
|
+
const Type_1 = __importDefault(require("../Type"));
|
34
|
+
const Surface_1 = __importDefault(require("../Surface"));
|
35
|
+
const Button_1 = __importDefault(require("../Button"));
|
36
|
+
const Append_1 = __importDefault(require("../Append"));
|
37
|
+
const Fade_1 = __importDefault(require("../Fade"));
|
38
|
+
const Tooltip_1 = __importDefault(require("../Tooltip"));
|
39
|
+
const ToggleButton_1 = __importDefault(require("../ToggleButton"));
|
40
|
+
const ClickListener_1 = __importDefault(require("../ClickListener"));
|
41
|
+
const ToggleButtons_1 = __importDefault(require("../ToggleButtons"));
|
42
|
+
const Menu_1 = __importDefault(require("../Menu"));
|
43
|
+
const utils_2 = require("../utils");
|
44
|
+
const useStyle = (0, style_react_1.style)(theme => ({
|
45
|
+
root: {
|
46
|
+
minHeight: '20px',
|
47
|
+
width: '100%',
|
48
|
+
'& .onesy-TextField-input': Object.assign({ wordBreak: 'break-word', color: theme.methods.palette.color.value('primary', 10) }, theme.typography.values.b2)
|
49
|
+
},
|
50
|
+
root_type: {
|
51
|
+
minHeight: '20px',
|
52
|
+
width: '100%',
|
53
|
+
cursor: 'text',
|
54
|
+
'& .onesy-TextField-input': Object.assign({ wordBreak: 'break-word', color: theme.methods.palette.color.value('primary', 10) }, theme.typography.values.b2)
|
55
|
+
},
|
56
|
+
menu: {
|
57
|
+
width: '100vw',
|
58
|
+
maxWidth: '240px',
|
59
|
+
borderRadius: theme.methods.shape.radius.value(2.5),
|
60
|
+
boxShadow: '0px 4px 32px 0px rgba(0, 0, 0, 0.04)',
|
61
|
+
background: theme.palette.light ? theme.palette.color.neutral[99] : theme.palette.color.neutral[20]
|
62
|
+
},
|
63
|
+
list: {
|
64
|
+
maxHeight: '240px',
|
65
|
+
overflow: 'hidden auto'
|
66
|
+
},
|
67
|
+
textMiniMenuWrapper: {
|
68
|
+
paddingBlock: theme.methods.space.value(1, 'px')
|
69
|
+
},
|
70
|
+
textMiniMenu: {
|
71
|
+
padding: theme.methods.space.value(1.5, 'px'),
|
72
|
+
borderRadius: theme.methods.shape.radius.value(140, 'px'),
|
73
|
+
boxShadow: theme.shadows.values.default[2]
|
74
|
+
},
|
75
|
+
textMiniMenuAdditionalMenu: {
|
76
|
+
width: 'clamp(140px, 90%, 250px)',
|
77
|
+
zIndex: '1514'
|
78
|
+
},
|
79
|
+
inputWrapper: {
|
80
|
+
padding: theme.methods.space.value(1, 'px'),
|
81
|
+
borderRadius: theme.methods.shape.radius.value(1, 'px'),
|
82
|
+
boxShadow: theme.shadows.values.default[2]
|
83
|
+
},
|
84
|
+
singleLine: {
|
85
|
+
whiteSpace: 'nowrap',
|
86
|
+
overflow: 'hidden'
|
87
|
+
},
|
88
|
+
inputLink: {
|
89
|
+
'&.onesy-TextField-root': {
|
90
|
+
flex: '1 1 auto !important'
|
91
|
+
}
|
92
|
+
},
|
93
|
+
helperText: {
|
94
|
+
display: 'inline-flex',
|
95
|
+
color: theme.palette.text.default.secondary,
|
96
|
+
userSelect: 'none'
|
97
|
+
},
|
98
|
+
error_color: {
|
99
|
+
color: [theme.palette.light ? theme.palette.color.error[40] : theme.palette.color.error[80], '!important']
|
100
|
+
},
|
101
|
+
error_hover_color: {
|
102
|
+
color: [theme.palette.light ? theme.palette.color.error[20] : theme.palette.color.error[90], '!important']
|
103
|
+
}
|
104
|
+
}), { name: 'onesy-SmartTextField' });
|
105
|
+
const SmartTextField = react_1.default.forwardRef((props_, ref) => {
|
106
|
+
var _a;
|
107
|
+
const theme = (0, style_react_1.useOnesyTheme)();
|
108
|
+
const props = react_1.default.useMemo(() => { var _a, _b, _c, _d, _e, _f, _g, _h; return (Object.assign(Object.assign(Object.assign({}, (_d = (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.ui) === null || _a === void 0 ? void 0 : _a.elements) === null || _b === void 0 ? void 0 : _b.all) === null || _c === void 0 ? void 0 : _c.props) === null || _d === void 0 ? void 0 : _d.default), (_h = (_g = (_f = (_e = theme === null || theme === void 0 ? void 0 : theme.ui) === null || _e === void 0 ? void 0 : _e.elements) === null || _f === void 0 ? void 0 : _f.onesySmartTextField) === null || _g === void 0 ? void 0 : _g.props) === null || _h === void 0 ? void 0 : _h.default), props_)); }, [props_]);
|
109
|
+
const Line = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Line) || Line_1.default; }, [theme]);
|
110
|
+
const TextField = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.TextField) || TextField_1.default; }, [theme]);
|
111
|
+
const List = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.List) || List_1.default; }, [theme]);
|
112
|
+
const ListItem = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.ListItem) || ListItem_1.default; }, [theme]);
|
113
|
+
const Avatar = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Avatar) || Avatar_1.default; }, [theme]);
|
114
|
+
const Type = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Type) || Type_1.default; }, [theme]);
|
115
|
+
const Surface = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Surface) || Surface_1.default; }, [theme]);
|
116
|
+
const Button = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Button) || Button_1.default; }, [theme]);
|
117
|
+
const Append = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Append) || Append_1.default; }, [theme]);
|
118
|
+
const Fade = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Fade) || Fade_1.default; }, [theme]);
|
119
|
+
const Tooltip = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Tooltip) || Tooltip_1.default; }, [theme]);
|
120
|
+
const ToggleButton = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.ToggleButton) || ToggleButton_1.default; }, [theme]);
|
121
|
+
const ClickListener = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.ClickListener) || ClickListener_1.default; }, [theme]);
|
122
|
+
const ToggleButtons = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.ToggleButtons) || ToggleButtons_1.default; }, [theme]);
|
123
|
+
const Menu = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Menu) || Menu_1.default; }, [theme]);
|
124
|
+
const { version = 'text', size = 'regular', valueDefault, value: value_, inputProps, onChange, error: error_, name, placeholder, edit, mention, multiline, onChangeMention, optionsMention: optionsMention_, error, helperText, mentionLabel, onKeyDown: onKeyDown_, pasteText = true, readOnly, additional, HelperTextProps, className } = props, other = __rest(props, ["version", "size", "valueDefault", "value", "inputProps", "onChange", "error", "name", "placeholder", "edit", "mention", "multiline", "onChangeMention", "optionsMention", "error", "helperText", "mentionLabel", "onKeyDown", "pasteText", "readOnly", "additional", "HelperTextProps", "className"]);
|
125
|
+
const { classes } = useStyle();
|
126
|
+
const [value, setValue] = react_1.default.useState(valueDefault || '');
|
127
|
+
const [openMenu, setOpenMenu] = react_1.default.useState(false);
|
128
|
+
const [offset, setOffset] = react_1.default.useState([0, 8]);
|
129
|
+
const [selectionMenu, setSelectionMenu] = react_1.default.useState();
|
130
|
+
const [optionsMention, setOptionsMention] = react_1.default.useState([]);
|
131
|
+
const [textSelection, setTextSelection] = react_1.default.useState();
|
132
|
+
const [textSelected, setTextSelected] = react_1.default.useState([]);
|
133
|
+
const [open, setOpen] = react_1.default.useState({});
|
134
|
+
const [inputValues, setInputValues] = react_1.default.useState({});
|
135
|
+
const refs = {
|
136
|
+
root: react_1.default.useRef(undefined),
|
137
|
+
input: react_1.default.useRef(undefined),
|
138
|
+
searchElement: react_1.default.useRef(undefined),
|
139
|
+
error: react_1.default.useRef(undefined),
|
140
|
+
search: react_1.default.useRef(undefined),
|
141
|
+
open: react_1.default.useRef(undefined),
|
142
|
+
openMenu: react_1.default.useRef(undefined),
|
143
|
+
selectionMenu: react_1.default.useRef(undefined),
|
144
|
+
caret: react_1.default.useRef(undefined),
|
145
|
+
value: react_1.default.useRef(undefined),
|
146
|
+
version: react_1.default.useRef(version),
|
147
|
+
optionsMention: react_1.default.useRef(optionsMention),
|
148
|
+
validateMeta: react_1.default.useRef({}),
|
149
|
+
range: react_1.default.useRef(undefined),
|
150
|
+
inputValues: react_1.default.useRef(undefined),
|
151
|
+
miniMenu: react_1.default.useRef(undefined),
|
152
|
+
miniMenuElements: {
|
153
|
+
color: react_1.default.useRef(undefined),
|
154
|
+
colorPalette: react_1.default.useRef(undefined),
|
155
|
+
background: react_1.default.useRef(undefined),
|
156
|
+
backgroundPalette: react_1.default.useRef(undefined),
|
157
|
+
linkAdd: react_1.default.useRef(undefined),
|
158
|
+
linkAddInput: react_1.default.useRef(undefined),
|
159
|
+
linkRemove: react_1.default.useRef(undefined)
|
160
|
+
},
|
161
|
+
textSelected: react_1.default.useRef(undefined),
|
162
|
+
textSelection: react_1.default.useRef(undefined),
|
163
|
+
rootDocument: react_1.default.useRef(),
|
164
|
+
rootWindow: react_1.default.useRef(),
|
165
|
+
edit: react_1.default.useRef(edit),
|
166
|
+
multiline: react_1.default.useRef(multiline),
|
167
|
+
readOnly: react_1.default.useRef(readOnly),
|
168
|
+
onChange: react_1.default.useRef(onChange)
|
169
|
+
};
|
170
|
+
refs.value.current = value;
|
171
|
+
refs.version.current = version;
|
172
|
+
refs.open.current = open;
|
173
|
+
refs.openMenu.current = openMenu;
|
174
|
+
refs.selectionMenu.current = selectionMenu;
|
175
|
+
refs.optionsMention.current = optionsMention;
|
176
|
+
refs.inputValues.current = inputValues;
|
177
|
+
refs.textSelected.current = textSelected;
|
178
|
+
refs.textSelection.current = textSelection;
|
179
|
+
refs.edit.current = edit;
|
180
|
+
refs.multiline.current = multiline;
|
181
|
+
refs.readOnly.current = readOnly;
|
182
|
+
refs.onChange.current = onChange;
|
183
|
+
const rootDocument = (0, utils_1.isEnvironment)('browser') && (((_a = refs.root.current) === null || _a === void 0 ? void 0 : _a.ownerDocument) || window.document);
|
184
|
+
const rootWindow = rootDocument && (rootDocument.defaultView || window);
|
185
|
+
refs.rootDocument.current = rootDocument;
|
186
|
+
refs.rootWindow.current = rootWindow;
|
187
|
+
const init = react_1.default.useCallback(() => {
|
188
|
+
if (version === 'text') {
|
189
|
+
const valueNew = valueDefault || value || '';
|
190
|
+
if (refs.root.current) {
|
191
|
+
refs.root.current.innerHTML = valueNew;
|
192
|
+
}
|
193
|
+
}
|
194
|
+
}, [version, value, valueDefault]);
|
195
|
+
react_1.default.useEffect(() => {
|
196
|
+
// init
|
197
|
+
init();
|
198
|
+
}, []);
|
199
|
+
react_1.default.useEffect(() => {
|
200
|
+
if (optionsMention !== optionsMention_)
|
201
|
+
setOptionsMention(optionsMention_);
|
202
|
+
}, [optionsMention_]);
|
203
|
+
react_1.default.useEffect(() => {
|
204
|
+
const valuePrevious = (refs.root.current.innerHTML || '').replaceAll(' ', ' ');
|
205
|
+
const valueNew = (0, utils_1.textToInnerHTML)(value_);
|
206
|
+
if (value_ !== undefined && valuePrevious !== valueNew)
|
207
|
+
validate(!value_ ? '' : (0, utils_2.sanitize)(value_));
|
208
|
+
}, [value_]);
|
209
|
+
// Save selection to revive, use it on execComand
|
210
|
+
react_1.default.useEffect(() => {
|
211
|
+
var _a, _b;
|
212
|
+
const selection_ = refs.rootWindow.current.getSelection();
|
213
|
+
if (selection_ &&
|
214
|
+
selection_.anchorNode &&
|
215
|
+
!((_b = (_a = selection_.anchorNode) === null || _a === void 0 ? void 0 : _a.className) === null || _b === void 0 ? void 0 : _b.includes('TextField')))
|
216
|
+
refs.range.current = selection_.getRangeAt(0);
|
217
|
+
}, [open]);
|
218
|
+
const updateInputValues = (property, itemValue) => {
|
219
|
+
setInputValues((values) => (Object.assign(Object.assign({}, values), { [property]: itemValue })));
|
220
|
+
};
|
221
|
+
const updateOpen = (property, itemValue) => {
|
222
|
+
setOpen((values) => (Object.assign(Object.assign({}, values), { [property]: itemValue })));
|
223
|
+
};
|
224
|
+
const validateElement = react_1.default.useCallback((element) => {
|
225
|
+
if (element === null || element === void 0 ? void 0 : element.children) {
|
226
|
+
Array.from(element === null || element === void 0 ? void 0 : element.children).forEach((child) => {
|
227
|
+
// Any tag
|
228
|
+
if (child.dataset.onesyVersion === 'mention-user') {
|
229
|
+
// Replace the child if label & textContent don't match
|
230
|
+
if (child.dataset.onesyLabel !== child.innerHTML) {
|
231
|
+
element.replaceChild(window.document.createTextNode(child.textContent), child);
|
232
|
+
refs.validateMeta.current.restore = true;
|
233
|
+
}
|
234
|
+
}
|
235
|
+
if (child === null || child === void 0 ? void 0 : child.children)
|
236
|
+
validateElement(child);
|
237
|
+
});
|
238
|
+
}
|
239
|
+
}, []);
|
240
|
+
const validate = react_1.default.useCallback((valueNew = undefined) => {
|
241
|
+
// Save caret position
|
242
|
+
refs.caret.current = utils_2.caret.save(refs.root.current);
|
243
|
+
// Update the root innerHTML
|
244
|
+
if (valueNew !== undefined)
|
245
|
+
refs.root.current.innerHTML = valueNew;
|
246
|
+
refs.validateMeta.current.restore = false;
|
247
|
+
// Find all span onesy-mention children
|
248
|
+
// if they aren't valid, replace them with text node of their textContent
|
249
|
+
validateElement(refs.root.current);
|
250
|
+
if (refs.validateMeta.current.restore)
|
251
|
+
utils_2.caret.restore(refs.root.current, refs.caret.current);
|
252
|
+
return refs.root.current.innerHTML;
|
253
|
+
}, []);
|
254
|
+
const getAtSearchData = react_1.default.useCallback(() => {
|
255
|
+
var _a, _b, _c, _d, _e;
|
256
|
+
if (refs.root.current) {
|
257
|
+
const windowSelection = window.document.getSelection();
|
258
|
+
if (!(windowSelection && windowSelection.rangeCount > 0))
|
259
|
+
return;
|
260
|
+
const range = windowSelection === null || windowSelection === void 0 ? void 0 : windowSelection.getRangeAt(0);
|
261
|
+
if (!range)
|
262
|
+
return;
|
263
|
+
// Only allow for text not in span user mention element
|
264
|
+
if (((_c = (_b = (_a = windowSelection.anchorNode) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.dataset) === null || _c === void 0 ? void 0 : _c.onesyVersion) === 'mention-user')
|
265
|
+
return '';
|
266
|
+
// Text
|
267
|
+
if (!['text', '#text'].includes((_d = range === null || range === void 0 ? void 0 : range.commonAncestorContainer) === null || _d === void 0 ? void 0 : _d.nodeName))
|
268
|
+
return '';
|
269
|
+
const text = ((_e = windowSelection.anchorNode) === null || _e === void 0 ? void 0 : _e.textContent) || '';
|
270
|
+
const start = text.slice(0, range.endOffset).split('').reverse().join('');
|
271
|
+
let result = [];
|
272
|
+
for (const valueText of start) {
|
273
|
+
// All characters other than space, numbers
|
274
|
+
if (!!valueText.match(/[^<>\\/\n\r\t]/))
|
275
|
+
result.unshift(valueText);
|
276
|
+
else
|
277
|
+
break;
|
278
|
+
if (['@'].includes(valueText))
|
279
|
+
break;
|
280
|
+
}
|
281
|
+
result = result.includes('@') ? result.join('') : '';
|
282
|
+
// Allow 1 space only
|
283
|
+
if (result && result.match(/\s{2}/g))
|
284
|
+
return '';
|
285
|
+
return result;
|
286
|
+
}
|
287
|
+
}, []);
|
288
|
+
refs.search.current = getAtSearchData();
|
289
|
+
const onInput = react_1.default.useCallback((event) => {
|
290
|
+
if (refs.root.current) {
|
291
|
+
let valueInput = refs.root.current.innerHTML || '';
|
292
|
+
if (refs.root.current.textContent === '') {
|
293
|
+
valueInput = '';
|
294
|
+
refs.root.current.innerHTML = '';
|
295
|
+
}
|
296
|
+
if (!refs.multiline.current) {
|
297
|
+
const previous = valueInput;
|
298
|
+
valueInput = valueInput.replace(/\r?\n|\r/gm, '');
|
299
|
+
if (previous !== valueInput)
|
300
|
+
refs.root.current.innerHTML = valueInput;
|
301
|
+
}
|
302
|
+
valueInput = (0, utils_1.innerHTMLToText)(valueInput);
|
303
|
+
setValue(valueInput);
|
304
|
+
if ((0, utils_1.is)('function', refs.onChange.current))
|
305
|
+
refs.onChange.current(valueInput, event);
|
306
|
+
}
|
307
|
+
}, []);
|
308
|
+
react_1.default.useEffect(() => {
|
309
|
+
if (mention && refs.search.current !== undefined)
|
310
|
+
onChangeMention === null || onChangeMention === void 0 ? void 0 : onChangeMention(refs.search.current, '@');
|
311
|
+
}, [mention, refs.search.current]);
|
312
|
+
react_1.default.useEffect(() => {
|
313
|
+
const method = () => {
|
314
|
+
if (window.document.activeElement === refs.input.current)
|
315
|
+
onInput();
|
316
|
+
};
|
317
|
+
window.document.addEventListener('selectionchange', method);
|
318
|
+
onChangeMention === null || onChangeMention === void 0 ? void 0 : onChangeMention(refs.search.current, '@');
|
319
|
+
return () => {
|
320
|
+
window.document.removeEventListener('selectionchange', method);
|
321
|
+
};
|
322
|
+
}, []);
|
323
|
+
const updateSelection = react_1.default.useCallback(() => {
|
324
|
+
const windowSelection = window.document.getSelection();
|
325
|
+
if (!(windowSelection && windowSelection.rangeCount > 0))
|
326
|
+
return;
|
327
|
+
const range = windowSelection === null || windowSelection === void 0 ? void 0 : windowSelection.getRangeAt(0);
|
328
|
+
if (range)
|
329
|
+
setSelectionMenu(range === null || range === void 0 ? void 0 : range.getBoundingClientRect());
|
330
|
+
}, []);
|
331
|
+
const onOpenSearch = react_1.default.useCallback(async () => {
|
332
|
+
if (!refs.openMenu.current && !!refs.optionsMention.current.length) {
|
333
|
+
// open
|
334
|
+
setOpenMenu(true);
|
335
|
+
// selection
|
336
|
+
updateSelection();
|
337
|
+
}
|
338
|
+
}, []);
|
339
|
+
const onCloseSearch = react_1.default.useCallback(() => {
|
340
|
+
if (refs.openMenu.current) {
|
341
|
+
setOpenMenu(false);
|
342
|
+
setSelectionMenu(null);
|
343
|
+
}
|
344
|
+
}, []);
|
345
|
+
const updateOffset = react_1.default.useCallback(() => {
|
346
|
+
var _a;
|
347
|
+
setOffset([-(((_a = refs.searchElement.current) === null || _a === void 0 ? void 0 : _a.clientWidth) || 0), 8]);
|
348
|
+
}, []);
|
349
|
+
const onFocus = react_1.default.useCallback(() => {
|
350
|
+
// setFocus(true);
|
351
|
+
}, []);
|
352
|
+
const onBlur = react_1.default.useCallback(() => {
|
353
|
+
// setFocus(false);
|
354
|
+
}, []);
|
355
|
+
const onKeyDown = react_1.default.useCallback((event) => {
|
356
|
+
var _a;
|
357
|
+
const windowSelection = window.getSelection();
|
358
|
+
if (windowSelection) {
|
359
|
+
// if (event.key === 'Enter') {
|
360
|
+
// event.preventDefault();
|
361
|
+
// const anchor = windowSelection.anchorNode as HTMLElement;
|
362
|
+
// const element = anchor.parentElement;
|
363
|
+
// const multiple = anchor.tagName === 'P' && anchor.children.length === 1 && anchor.children[0].tagName === 'BR';
|
364
|
+
// window.document.execCommand('insertHTML', false, `<p><br /></p>`.repeat(multiple ? 2 : 1));
|
365
|
+
// const range = new Range();
|
366
|
+
// const rangeStartElement = ((multiple ? anchor : element) as any)?.nextElementSibling;
|
367
|
+
// if (rangeStartElement) range.setStart(rangeStartElement, 0);
|
368
|
+
// windowSelection.removeAllRanges();
|
369
|
+
// windowSelection.addRange(range);
|
370
|
+
// }
|
371
|
+
if (event.key === 'ArrowRight') {
|
372
|
+
// If in user mention span
|
373
|
+
// move out of it with adding new empty space root node after the user mention span
|
374
|
+
// only if caret is at the end of the span, & span is last child of it's parent
|
375
|
+
if (!(windowSelection && windowSelection.rangeCount > 0))
|
376
|
+
return;
|
377
|
+
const range = windowSelection.getRangeAt(0);
|
378
|
+
const caretElement = windowSelection.anchorNode.parentElement;
|
379
|
+
const caretElementParent = caretElement.parentElement;
|
380
|
+
const caretElementParentChildNodes = Array.from(caretElementParent.childNodes);
|
381
|
+
if (((_a = caretElement === null || caretElement === void 0 ? void 0 : caretElement.dataset) === null || _a === void 0 ? void 0 : _a.onesyVersion) === 'mention-user' &&
|
382
|
+
range.endOffset === windowSelection.anchorNode.textContent.length &&
|
383
|
+
caretElementParentChildNodes[caretElementParentChildNodes.length - 1] === caretElement) {
|
384
|
+
caretElementParent.insertBefore(window.document.createTextNode('\u00A0'), caretElement.nextElementSibling);
|
385
|
+
}
|
386
|
+
}
|
387
|
+
}
|
388
|
+
if (!refs.multiline.current) {
|
389
|
+
if (event.key === 'Enter') {
|
390
|
+
event.preventDefault();
|
391
|
+
}
|
392
|
+
}
|
393
|
+
if (!refs.edit.current &&
|
394
|
+
((event.metaKey && (utils_2.keyboardStyleCommands.includes(event.key))) ||
|
395
|
+
(event.ctrlKey && (utils_2.keyboardStyleCommands.includes(event.key))))) {
|
396
|
+
event.preventDefault();
|
397
|
+
}
|
398
|
+
if ((0, utils_1.is)('function', onKeyDown_))
|
399
|
+
onKeyDown_(event);
|
400
|
+
}, [onKeyDown_]);
|
401
|
+
const onPaste = react_1.default.useCallback((event) => {
|
402
|
+
// event.preventDefault();
|
403
|
+
// const text = event.clipboardData?.getData('text/plain');
|
404
|
+
// window.document.execCommand('insertText', false, text);
|
405
|
+
}, []);
|
406
|
+
const onPasteText = react_1.default.useCallback((event) => {
|
407
|
+
var _a;
|
408
|
+
event.preventDefault();
|
409
|
+
const text = (_a = event.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text/plain');
|
410
|
+
window.document.execCommand('insertText', false, text);
|
411
|
+
}, []);
|
412
|
+
const onDrop = react_1.default.useCallback((event) => {
|
413
|
+
event.preventDefault();
|
414
|
+
}, []);
|
415
|
+
const addTag = react_1.default.useCallback((item, versionMention = 'user') => {
|
416
|
+
// Save caret position
|
417
|
+
refs.caret.current = utils_2.caret.save(refs.root.current);
|
418
|
+
const itemName = item.name;
|
419
|
+
const classesElement = ['onesy-mention'];
|
420
|
+
// Query text node that equals selection anchorNode
|
421
|
+
// and replace its textContent's search value with new span
|
422
|
+
const windowSelection = window.document.getSelection();
|
423
|
+
if (!(windowSelection && windowSelection.rangeCount > 0))
|
424
|
+
return;
|
425
|
+
const range = windowSelection === null || windowSelection === void 0 ? void 0 : windowSelection.getRangeAt(0);
|
426
|
+
if (!range)
|
427
|
+
return;
|
428
|
+
const textNode = windowSelection.anchorNode;
|
429
|
+
const textContent = textNode.textContent;
|
430
|
+
// Bug fix
|
431
|
+
// only be able to insert data within the input
|
432
|
+
// if by accident selection went outside the input
|
433
|
+
// basically do nothing with it
|
434
|
+
if (refs.root.current.contains(textNode.parentElement)) {
|
435
|
+
const end = range.endOffset;
|
436
|
+
const start = end - refs.search.current.length;
|
437
|
+
const pre = textContent.slice(0, start);
|
438
|
+
const post = textContent.slice(end);
|
439
|
+
// Insert before anchorNode pre, item mention, and post
|
440
|
+
if (pre)
|
441
|
+
textNode.parentElement.insertBefore(window.document.createTextNode(pre), windowSelection.anchorNode);
|
442
|
+
const span = window.document.createElement('span');
|
443
|
+
span.className = classesElement.join(' ');
|
444
|
+
span.dataset.onesyLabel = `@${itemName}`;
|
445
|
+
span.dataset.onesyVersion = `mention-${versionMention}`;
|
446
|
+
span.dataset.onesyObject = `${versionMention}`;
|
447
|
+
span.dataset.onesyId = item.id;
|
448
|
+
span.innerHTML = `@${itemName}`;
|
449
|
+
textNode.parentElement.insertBefore(span, windowSelection.anchorNode);
|
450
|
+
// 1 space only following the item mention
|
451
|
+
textNode.parentElement.insertBefore(window.document.createTextNode('\u00A0'), windowSelection.anchorNode);
|
452
|
+
if (post)
|
453
|
+
textNode.parentElement.insertBefore(window.document.createTextNode(post), windowSelection.anchorNode);
|
454
|
+
// Remove the text node
|
455
|
+
textNode.remove();
|
456
|
+
// Invoke onChange method with new value
|
457
|
+
const valueInput = (0, utils_1.innerHTMLToText)(refs.root.current.innerHTML);
|
458
|
+
if ((0, utils_1.is)('function', refs.onChange.current))
|
459
|
+
refs.onChange.current(valueInput, { target: refs.root.current });
|
460
|
+
// Update the caret position to be outside the span mention
|
461
|
+
// for amount of added characters + 1 space
|
462
|
+
const added = `@${itemName}`.length - refs.search.current.length + 1;
|
463
|
+
refs.caret.current.start = refs.caret.current.end += added;
|
464
|
+
utils_2.caret.restore(refs.root.current, refs.caret.current);
|
465
|
+
}
|
466
|
+
// Close the search
|
467
|
+
onCloseSearch();
|
468
|
+
}, [onChange]);
|
469
|
+
// If users response & not open, open
|
470
|
+
// else if no users response & opened, close the search
|
471
|
+
react_1.default.useEffect(() => {
|
472
|
+
if (mention) {
|
473
|
+
if (refs.openMenu.current && !optionsMention.length)
|
474
|
+
onCloseSearch();
|
475
|
+
else if (!refs.openMenu.current && refs.search.current && !!optionsMention.length)
|
476
|
+
onOpenSearch();
|
477
|
+
}
|
478
|
+
}, [mention, optionsMention]);
|
479
|
+
react_1.default.useEffect(() => {
|
480
|
+
if (mention) {
|
481
|
+
// Validate
|
482
|
+
validate();
|
483
|
+
// Update
|
484
|
+
// open, selection & offset
|
485
|
+
setTimeout(() => {
|
486
|
+
refs.search.current ? onOpenSearch() : onCloseSearch();
|
487
|
+
if (refs.openMenu.current)
|
488
|
+
updateSelection();
|
489
|
+
updateOffset();
|
490
|
+
});
|
491
|
+
}
|
492
|
+
}, [mention, value]);
|
493
|
+
react_1.default.useEffect(() => {
|
494
|
+
// setError(error_);
|
495
|
+
}, [error_]);
|
496
|
+
const label = react_1.default.useCallback(() => {
|
497
|
+
var _a;
|
498
|
+
return ((0, utils_1.is)('function', mentionLabel) ? mentionLabel(refs.optionsMention.current, { addTag }) :
|
499
|
+
(0, jsx_runtime_1.jsx)(Line, Object.assign({ className: classes.menu }, { children: (0, jsx_runtime_1.jsx)(List, Object.assign({ size: 'small', className: classes.list }, { children: (_a = refs.optionsMention.current) === null || _a === void 0 ? void 0 : _a.map((item, index) => {
|
500
|
+
var _a;
|
501
|
+
return ((0, jsx_runtime_1.jsx)(ListItem, { start: ((0, jsx_runtime_1.jsx)(Avatar, Object.assign({ color: (0, utils_1.stringToColor)(item.name), size: 'small' }, { children: (_a = item.name) === null || _a === void 0 ? void 0 : _a.slice(0, 1) }))), primary: ((0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'l3' }, { children: item.name }))), onClick: () => addTag(item), button: true }, index));
|
502
|
+
}) })) })));
|
503
|
+
}, []);
|
504
|
+
const paste = async () => {
|
505
|
+
const valueClipboard = await navigator.clipboard.read();
|
506
|
+
if (valueClipboard) {
|
507
|
+
let values = '';
|
508
|
+
for (const item of Array.from(valueClipboard)) {
|
509
|
+
const valueItem = await item.getType('text/html');
|
510
|
+
values += await valueItem.text();
|
511
|
+
}
|
512
|
+
rootDocument.execCommand('insertHTML', undefined, values);
|
513
|
+
}
|
514
|
+
};
|
515
|
+
const query = (command) => {
|
516
|
+
return (0, utils_1.parse)(refs.rootDocument.current.queryCommandValue(command));
|
517
|
+
};
|
518
|
+
const textQueryUpdate = () => {
|
519
|
+
const selected = [];
|
520
|
+
const updateOptionValues = [
|
521
|
+
{ name: 'italic', command: 'italic' },
|
522
|
+
{ name: 'underline', command: 'underline' },
|
523
|
+
{ name: 'bold', command: 'bold' },
|
524
|
+
{ name: 'strike-line', command: 'strikeThrough' }
|
525
|
+
];
|
526
|
+
updateOptionValues.forEach(item => {
|
527
|
+
if (query(item.command))
|
528
|
+
selected.push(item.name);
|
529
|
+
});
|
530
|
+
setTextSelected(selected);
|
531
|
+
};
|
532
|
+
const onMouseUp = react_1.default.useCallback(() => {
|
533
|
+
if (!refs.edit.current)
|
534
|
+
return;
|
535
|
+
const selection_ = refs.rootWindow.current.getSelection();
|
536
|
+
if (!selection_)
|
537
|
+
return;
|
538
|
+
if (!selection_.anchorNode || !refs.root.current.contains(selection_.anchorNode))
|
539
|
+
return setTextSelection(null);
|
540
|
+
setTimeout(() => {
|
541
|
+
var _a;
|
542
|
+
const rect = selection_.getRangeAt(0).getBoundingClientRect();
|
543
|
+
setTextSelection(Math.round(rect.width) ? { selection: rect, element: (_a = selection_.anchorNode) === null || _a === void 0 ? void 0 : _a.parentElement } : null);
|
544
|
+
textQueryUpdate();
|
545
|
+
}, 140);
|
546
|
+
}, []);
|
547
|
+
const onMouseDown = react_1.default.useCallback(() => {
|
548
|
+
if (!refs.edit.current)
|
549
|
+
return;
|
550
|
+
textQueryUpdate();
|
551
|
+
}, []);
|
552
|
+
const onKeyUp = react_1.default.useCallback(() => {
|
553
|
+
if (!refs.edit.current)
|
554
|
+
return;
|
555
|
+
textQueryUpdate();
|
556
|
+
}, []);
|
557
|
+
const textMethod = react_1.default.useCallback((command) => (argument) => {
|
558
|
+
var _a;
|
559
|
+
switch (command) {
|
560
|
+
// updates
|
561
|
+
case 'italic':
|
562
|
+
refs.rootDocument.current.execCommand('italic');
|
563
|
+
if (query('italic'))
|
564
|
+
setTextSelected((values) => [...values, 'italic']);
|
565
|
+
else
|
566
|
+
setTextSelected((values) => values.filter((item) => item !== 'italic'));
|
567
|
+
break;
|
568
|
+
case 'underline':
|
569
|
+
refs.rootDocument.current.execCommand('underline');
|
570
|
+
if (query('underline'))
|
571
|
+
setTextSelected((values) => [...values, 'underline']);
|
572
|
+
else
|
573
|
+
setTextSelected((values) => values.filter((item) => item !== 'underline'));
|
574
|
+
break;
|
575
|
+
case 'bold':
|
576
|
+
refs.rootDocument.current.execCommand('bold');
|
577
|
+
if (query('bold'))
|
578
|
+
setTextSelected((values) => [...values, 'bold']);
|
579
|
+
else
|
580
|
+
setTextSelected((values) => values.filter((item) => item !== 'bold'));
|
581
|
+
break;
|
582
|
+
case 'strike-line':
|
583
|
+
refs.rootDocument.current.execCommand('strikeThrough');
|
584
|
+
if (query('strikeThrough'))
|
585
|
+
setTextSelected((values) => [...values, 'strike-line']);
|
586
|
+
else
|
587
|
+
setTextSelected((values) => values.filter((item) => item !== 'strike-line'));
|
588
|
+
break;
|
589
|
+
case 'link-add':
|
590
|
+
refs.rootDocument.current.execCommand('createLink', undefined, argument);
|
591
|
+
break;
|
592
|
+
case 'link-remove':
|
593
|
+
refs.rootDocument.current.execCommand('unlink');
|
594
|
+
break;
|
595
|
+
// actions
|
596
|
+
case 'copy':
|
597
|
+
refs.rootDocument.current.execCommand('copy');
|
598
|
+
break;
|
599
|
+
case 'cut':
|
600
|
+
refs.rootDocument.current.execCommand('cut');
|
601
|
+
break;
|
602
|
+
case 'paste':
|
603
|
+
if (refs.rootDocument.current.queryCommandSupported('paste'))
|
604
|
+
refs.rootDocument.current.execCommand('paste');
|
605
|
+
else
|
606
|
+
paste();
|
607
|
+
break;
|
608
|
+
case 'delete':
|
609
|
+
refs.rootDocument.current.execCommand('delete');
|
610
|
+
break;
|
611
|
+
case 'clear':
|
612
|
+
refs.rootDocument.current.execCommand('removeFormat');
|
613
|
+
break;
|
614
|
+
case 'select-all':
|
615
|
+
refs.rootDocument.current.execCommand('selectAll');
|
616
|
+
break;
|
617
|
+
case 'undo':
|
618
|
+
refs.rootDocument.current.execCommand('undo');
|
619
|
+
break;
|
620
|
+
case 'redo':
|
621
|
+
refs.rootDocument.current.execCommand('redo');
|
622
|
+
break;
|
623
|
+
default:
|
624
|
+
break;
|
625
|
+
}
|
626
|
+
const element = (_a = refs.textSelection.current) === null || _a === void 0 ? void 0 : _a.element;
|
627
|
+
if (element) {
|
628
|
+
let valueElement = element.innerHTML || '';
|
629
|
+
if (element.textContent === '') {
|
630
|
+
valueElement = '';
|
631
|
+
element.innerHTML = '';
|
632
|
+
}
|
633
|
+
if (valueElement)
|
634
|
+
valueElement = (0, utils_1.innerHTMLToText)(valueElement);
|
635
|
+
}
|
636
|
+
textQueryUpdate();
|
637
|
+
}, []);
|
638
|
+
const AppendProps = {
|
639
|
+
padding: [14, 14]
|
640
|
+
};
|
641
|
+
const IconProps = {
|
642
|
+
size: 'small'
|
643
|
+
};
|
644
|
+
const TooltipProps = {
|
645
|
+
position: 'bottom',
|
646
|
+
interactive: false
|
647
|
+
};
|
648
|
+
const ToggleButtonsProps = {
|
649
|
+
tonal: false,
|
650
|
+
color: 'default',
|
651
|
+
version: 'text',
|
652
|
+
border: false
|
653
|
+
};
|
654
|
+
const ToggleButtonProps = {
|
655
|
+
size: 'small'
|
656
|
+
};
|
657
|
+
const Input = react_1.default.useCallback(react_1.default.forwardRef((propsInput, ref_) => {
|
658
|
+
const { label: labelInput, labelButton, value: value__, onChange: onChange__, onClick, InputComponent = TextField, InputProps } = propsInput, other_ = __rest(propsInput, ["label", "labelButton", "value", "onChange", "onClick", "InputComponent", "InputProps"]);
|
659
|
+
return ((0, jsx_runtime_1.jsx)(Line, Object.assign({ ref: ref_, gap: 1, direction: 'column', color: 'themed', Component: Surface }, other_, { className: (0, style_react_1.classNames)([
|
660
|
+
other_ === null || other_ === void 0 ? void 0 : other_.className,
|
661
|
+
classes.inputWrapper
|
662
|
+
]) }, { children: (0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 0.5, direction: 'row', align: 'center', style: {
|
663
|
+
width: '100%'
|
664
|
+
} }, { children: [(0, jsx_runtime_1.jsx)(InputComponent, Object.assign({ label: labelInput, version: 'outlined', size: 'small', valueDefault: value__, onChange: onChange__ }, InputProps, { style: {
|
665
|
+
width: 'unset',
|
666
|
+
flex: '1 1 auto'
|
667
|
+
} })), (0, jsx_runtime_1.jsx)(Button, Object.assign({ color: 'inherit', version: 'text', size: 'small', onClick: onClick }, { children: labelButton }))] })) })));
|
668
|
+
}), []);
|
669
|
+
const WrapperAppend = react_1.default.useCallback((propsWrapper) => {
|
670
|
+
const { open: open_, element, anchorElement, onClose, children: childrenWrapperAppend } = propsWrapper, other_ = __rest(propsWrapper, ["open", "element", "anchorElement", "onClose", "children"]);
|
671
|
+
return ((0, jsx_runtime_1.jsx)(Append, Object.assign({ open: open_, element: ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, style_react_1.classNames)([
|
672
|
+
(0, utils_2.staticClassName)('SmartTextField', theme) && [
|
673
|
+
'onesy-SmartTextField-mini-menu-additional'
|
674
|
+
],
|
675
|
+
classes.textMiniMenuAdditionalMenu
|
676
|
+
]) }, { children: (0, jsx_runtime_1.jsx)(Fade, Object.assign({ in: open_, add: true }, { children: react_1.default.cloneElement(element) })) }))), anchorElement: anchorElement, portal: true, alignment: 'center', position: 'bottom' }, AppendProps, { children: react_1.default.cloneElement(childrenWrapperAppend, Object.assign(Object.assign({}, other_), childrenWrapperAppend.props)) })));
|
677
|
+
}, []);
|
678
|
+
const WrapperToggleButton = react_1.default.useCallback(react_1.default.forwardRef((propsWrapperToggleButton, ref_) => {
|
679
|
+
const { open: open_, label: labelWrapperToogleButton, children: childrenWrapperToggleButton } = propsWrapperToggleButton, other_ = __rest(propsWrapperToggleButton, ["open", "label", "children"]);
|
680
|
+
return ((0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ open: open_ !== undefined ? open_ : undefined, label: labelWrapperToogleButton }, TooltipProps, { children: react_1.default.cloneElement(childrenWrapperToggleButton, Object.assign(Object.assign({}, other_), childrenWrapperToggleButton.props)) })));
|
681
|
+
}), []);
|
682
|
+
const updateElements = {
|
683
|
+
'italic': ((0, jsx_runtime_1.jsx)(WrapperToggleButton, Object.assign({ label: 'Italic' }, { children: (0, jsx_runtime_1.jsx)(ToggleButton, Object.assign({}, ToggleButtonProps, { selected: refs.textSelected.current.includes('italic'), onClick: textMethod('italic') }, { children: (0, jsx_runtime_1.jsx)(IconMaterialFormatItalicW100_1.default, Object.assign({}, IconProps)) })) }))),
|
684
|
+
'underline': ((0, jsx_runtime_1.jsx)(WrapperToggleButton, Object.assign({ label: 'Underline' }, { children: (0, jsx_runtime_1.jsx)(ToggleButton, Object.assign({}, ToggleButtonProps, { selected: refs.textSelected.current.includes('underline'), onClick: textMethod('underline') }, { children: (0, jsx_runtime_1.jsx)(IconMaterialFormatUnderlinedW100_1.default, Object.assign({}, IconProps)) })) }))),
|
685
|
+
'bold': ((0, jsx_runtime_1.jsx)(WrapperToggleButton, Object.assign({ label: 'Bold', onClick: textMethod('bold') }, { children: (0, jsx_runtime_1.jsx)(ToggleButton, Object.assign({}, ToggleButtonProps, { selected: refs.textSelected.current.includes('bold') }, { children: (0, jsx_runtime_1.jsx)(IconMaterialFormatBoldW100_1.default, Object.assign({}, IconProps)) })) }))),
|
686
|
+
'strike-line': ((0, jsx_runtime_1.jsx)(WrapperToggleButton, Object.assign({ label: 'Strike Line', onClick: textMethod('strike-line') }, { children: (0, jsx_runtime_1.jsx)(ToggleButton, Object.assign({}, ToggleButtonProps, { selected: refs.textSelected.current.includes('strike-line') }, { children: (0, jsx_runtime_1.jsx)(IconMaterialStrikethroughSW100_1.default, Object.assign({}, IconProps)) })) }))),
|
687
|
+
'link-add': ((0, jsx_runtime_1.jsx)(WrapperAppend, Object.assign({ open: refs.open.current.linkMiniMenu, anchorElement: refs.miniMenuElements.linkAdd, element: ((0, jsx_runtime_1.jsx)(ClickListener, Object.assign({ onClickOutside: () => updateOpen('linkMiniMenu', false), include: [refs.miniMenuElements.linkAdd] }, { children: (0, jsx_runtime_1.jsx)(Input, { ref: refs.miniMenuElements.linkAddInput, label: 'Link', labelButton: 'Add', value: refs.inputValues.current.link, onChange: (valueNew) => updateInputValues('link', valueNew), onClick: () => {
|
688
|
+
if (refs.range.current) {
|
689
|
+
const selection_ = refs.rootWindow.current.getSelection();
|
690
|
+
if (!selection_)
|
691
|
+
return;
|
692
|
+
selection_.removeAllRanges();
|
693
|
+
selection_.addRange(refs.range.current);
|
694
|
+
}
|
695
|
+
textMethod('link-add')(refs.inputValues.current.link);
|
696
|
+
updateOpen('linkMiniMenu', false);
|
697
|
+
updateInputValues('link', '');
|
698
|
+
}, className: classes.inputLink }) }))) }, { children: (0, jsx_runtime_1.jsx)(WrapperToggleButton, Object.assign({ label: 'Insert Link', open: refs.open.current.linkMiniMenu ? false : undefined }, { children: (0, jsx_runtime_1.jsx)(ToggleButton, Object.assign({ ref: refs.miniMenuElements.linkAdd }, ToggleButtonProps, { selected: refs.open.current.linkMiniMenu, onClick: () => updateOpen('linkMiniMenu', !refs.open.current.linkMiniMenu) }, { children: (0, jsx_runtime_1.jsx)(IconMaterialAddLinkW100_1.default, Object.assign({}, IconProps)) })) })) }))),
|
699
|
+
'link-remove': ((0, jsx_runtime_1.jsx)(WrapperToggleButton, Object.assign({ label: 'Remove Link' }, { children: (0, jsx_runtime_1.jsx)(ToggleButton, Object.assign({}, ToggleButtonProps, { onClick: textMethod('link-remove') }, { children: (0, jsx_runtime_1.jsx)(IconMaterialLinkOffW100_1.default, Object.assign({}, IconProps)) })) })))
|
700
|
+
};
|
701
|
+
const actionElements = {
|
702
|
+
'clear': ((0, jsx_runtime_1.jsx)(WrapperToggleButton, Object.assign({ label: 'Clear' }, { children: (0, jsx_runtime_1.jsx)(ToggleButton, Object.assign({}, ToggleButtonProps, { onClick: textMethod('clear') }, { children: (0, jsx_runtime_1.jsx)(IconMaterialFormatClearW100_1.default, Object.assign({}, IconProps)) })) })))
|
703
|
+
};
|
704
|
+
const miniMenu = react_1.default.useMemo(() => {
|
705
|
+
return ((0, jsx_runtime_1.jsx)(Append, Object.assign({ open: !!textSelection, element: (body) => {
|
706
|
+
const { ref: ref_, values, style: styleAppend } = body;
|
707
|
+
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ ref: item => {
|
708
|
+
if (ref_) {
|
709
|
+
if ((0, utils_1.is)('function', ref_))
|
710
|
+
ref_(item);
|
711
|
+
else
|
712
|
+
ref_.current = item;
|
713
|
+
refs.miniMenu.current = item;
|
714
|
+
}
|
715
|
+
}, style: Object.assign(Object.assign(Object.assign({}, (((values === null || values === void 0 ? void 0 : values.x) === 0 && (values === null || values === void 0 ? void 0 : values.y) === 0) ? {
|
716
|
+
visibility: 'hidden'
|
717
|
+
} : undefined)), styleAppend), { zIndex: 1500 }), className: (0, style_react_1.classNames)([
|
718
|
+
(0, utils_2.staticClassName)('SmartTextField', theme) && [
|
719
|
+
'onesy-SmartTextField-mini-menu-wrapper'
|
720
|
+
],
|
721
|
+
classes.textMiniMenuWrapper
|
722
|
+
]) }, { children: (0, jsx_runtime_1.jsx)(Fade, Object.assign({ in: !!textSelection, add: true }, { children: (0, jsx_runtime_1.jsx)(ClickListener, Object.assign({ onClickOutside: () => {
|
723
|
+
setTextSelection(null);
|
724
|
+
}, include: [refs.miniMenu, refs.miniMenu.current, refs.miniMenuElements.linkAddInput, refs.miniMenuElements.linkAddInput.current] }, { children: (0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 2, direction: 'row', align: 'center', justify: 'flex-start', role: 'toolbar', color: 'themed', "aria-label": 'Mini menu', Component: Surface, className: (0, style_react_1.classNames)([
|
725
|
+
classes.textMiniMenu
|
726
|
+
]) }, { children: [(0, jsx_runtime_1.jsxs)(ToggleButtons, Object.assign({}, ToggleButtonsProps, { children: [updateElements['italic'], updateElements['underline'], updateElements['bold'], updateElements['strike-line']] })), (0, jsx_runtime_1.jsxs)(ToggleButtons, Object.assign({}, ToggleButtonsProps, { children: [updateElements['link-add'], updateElements['link-remove']] })), (0, jsx_runtime_1.jsx)(ToggleButtons, Object.assign({}, ToggleButtonsProps, { children: actionElements['clear'] }))] })) })) })) })));
|
727
|
+
}, parent: refs.root.current, anchor: textSelection === null || textSelection === void 0 ? void 0 : textSelection.selection, portal: true, alignment: 'center', position: 'bottom', clearOnClose: true }, AppendProps)));
|
728
|
+
}, [open, textSelection, textSelected]);
|
729
|
+
const menu = react_1.default.useMemo(() => {
|
730
|
+
return ((0, jsx_runtime_1.jsx)(Menu, { open: openMenu, position: 'top', alignment: 'start', offset: offset, anchor: selectionMenu, onClose: onCloseSearch, label: label(), interactive: true }));
|
731
|
+
}, [openMenu, selectionMenu, label]);
|
732
|
+
let main = ((0, jsx_runtime_1.jsx)(TextField, Object.assign({ ref: (item) => {
|
733
|
+
if (ref) {
|
734
|
+
if ((0, utils_1.is)('function', ref))
|
735
|
+
ref(item);
|
736
|
+
else
|
737
|
+
ref.current = item;
|
738
|
+
}
|
739
|
+
refs.root.current = item;
|
740
|
+
}, version: 'text', size: size, minRows: 12, multiline: true, enabled: true, fullWidth: true, onInput: onInput, onKeyDown: onKeyDown, onKeyUp: onKeyUp, onFocus: onFocus, onBlur: onBlur, readOnly: readOnly, inputProps: Object.assign(Object.assign({ version: 'b2', contentEditable: true, spellCheck: false, onPaste: pasteText ? onPasteText : onPaste, onDrop,
|
741
|
+
onMouseUp,
|
742
|
+
onMouseDown, 'data-placeholder': placeholder !== undefined ? placeholder : name }, inputProps), { ref: (item) => {
|
743
|
+
refs.input.current = item;
|
744
|
+
if (inputProps === null || inputProps === void 0 ? void 0 : inputProps.ref) {
|
745
|
+
if ((0, utils_1.is)('function', inputProps.ref))
|
746
|
+
inputProps.ref(item);
|
747
|
+
else
|
748
|
+
inputProps.ref.current = item;
|
749
|
+
}
|
750
|
+
} }), InputComponent: Type, className: (0, style_react_1.classNames)([
|
751
|
+
(0, utils_2.staticClassName)('SmartTextField', theme) && [
|
752
|
+
'onesy-SmartTextField-root',
|
753
|
+
`onesy-SmartTextField-version-${version}`,
|
754
|
+
`onesy-SmartTextField-size-${size}`
|
755
|
+
],
|
756
|
+
className,
|
757
|
+
classes.root
|
758
|
+
]) }, additional, other)));
|
759
|
+
if (version === 'text')
|
760
|
+
main = ((0, jsx_runtime_1.jsx)(Type, Object.assign({ ref: (item) => {
|
761
|
+
if (ref) {
|
762
|
+
if ((0, utils_1.is)('function', ref))
|
763
|
+
ref(item);
|
764
|
+
else
|
765
|
+
ref.current = item;
|
766
|
+
}
|
767
|
+
if (inputProps === null || inputProps === void 0 ? void 0 : inputProps.ref) {
|
768
|
+
if ((0, utils_1.is)('function', inputProps.ref))
|
769
|
+
inputProps.ref(item);
|
770
|
+
else
|
771
|
+
inputProps.ref.current = item;
|
772
|
+
}
|
773
|
+
refs.root.current = item;
|
774
|
+
refs.input.current = item;
|
775
|
+
}, onInput: onInput, onKeyDown: onKeyDown, onKeyUp: onKeyUp, onFocus: onFocus, onBlur: onBlur, onPaste: pasteText ? onPasteText : onPaste, onDrop: onDrop, onMouseUp: onMouseUp, onMouseDown: onMouseDown, spellCheck: false, "data-placeholder": placeholder !== undefined ? placeholder : name }, inputProps, { contentEditable: !readOnly, className: (0, style_react_1.classNames)([
|
776
|
+
(0, utils_2.staticClassName)('SmartTextField', theme) && [
|
777
|
+
'onesy-SmartTextField-root',
|
778
|
+
`onesy-SmartTextField-version-${version}`,
|
779
|
+
`onesy-SmartTextField-size-${size}`
|
780
|
+
],
|
781
|
+
className,
|
782
|
+
classes.root_type,
|
783
|
+
!multiline && classes.singleLine
|
784
|
+
]) }, additional, other)));
|
785
|
+
return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [main, version === 'text' && (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: helperText && (0, utils_1.is)('string', helperText) ? ((0, jsx_runtime_1.jsx)(Type, Object.assign({ version: size === 'large' ? 'b1' : size === 'regular' ? 'b2' : 'b3' }, HelperTextProps, { className: (0, style_react_1.classNames)([
|
786
|
+
(0, utils_2.staticClassName)('SmartTextField', theme) && [
|
787
|
+
'onesy-SmartTextField-helper-text',
|
788
|
+
error && 'onesy-SmartTextField-error'
|
789
|
+
],
|
790
|
+
HelperTextProps === null || HelperTextProps === void 0 ? void 0 : HelperTextProps.className,
|
791
|
+
classes.helperText,
|
792
|
+
error && classes.error_color
|
793
|
+
]) }, { children: (0, utils_1.textToInnerHTML)(helperText) }))) : helperText }), miniMenu, menu] });
|
794
|
+
});
|
795
|
+
SmartTextField.displayName = 'onesy-SmartTextField';
|
796
|
+
exports.default = SmartTextField;
|