@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,870 @@
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
4
|
+
const _excluded = ["tonal", "color", "version", "size", "rootRef", "valueDefault", "value", "onChange", "name", "label", "align", "start", "startVerticalAlign", "end", "endVerticalAlign", "placeholder", "fullWidth", "helperText", "counter", "prefix", "sufix", "noPrefixMargin", "noSufixMargin", "enabled", "autoFocus", "autoComplete", "type", "required", "optional", "optionalText", "error", "multiline", "rows", "minRows", "maxRows", "clear", "focus", "footer", "subscription", "controlled", "minimal", "restoreSelection", "minWidth", "readOnly", "disabled", "onInput", "onFocus", "onBlur", "onMouseEnter", "onMouseLeave", "inputProps", "InputWrapperProps", "HelperTextProps", "IconProps", "IconClear", "InputComponent", "WrapperComponent", "Component", "className", "style", "children", "colorUnchecked"];
|
5
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
6
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
7
|
+
import React from 'react';
|
8
|
+
import { clamp, is, isEnvironment, unique } from '@onesy/utils';
|
9
|
+
import { classNames, style as styleMethod, useOnesyTheme } from '@onesy/style-react';
|
10
|
+
import IconMaterialClose from '@amaui/icons-material-rounded-react/IconMaterialCloseW100';
|
11
|
+
import TypeElement from '../Type';
|
12
|
+
import LineElement from '../Line';
|
13
|
+
import useMediaQuery from '../useMediaQuery';
|
14
|
+
import { valueBreakpoints, staticClassName } from '../utils';
|
15
|
+
const useStyle = styleMethod(theme => {
|
16
|
+
const other = {
|
17
|
+
pointerEvents: 'none',
|
18
|
+
borderRadius: 'inherit',
|
19
|
+
boxSizing: 'border-box',
|
20
|
+
position: 'absolute',
|
21
|
+
inset: '0',
|
22
|
+
width: '100%',
|
23
|
+
height: '100%'
|
24
|
+
};
|
25
|
+
const overflow = {
|
26
|
+
width: '100%',
|
27
|
+
overflow: 'hidden',
|
28
|
+
whiteSpace: 'nowrap',
|
29
|
+
textOverflow: 'ellipsis'
|
30
|
+
};
|
31
|
+
return {
|
32
|
+
wrapper: {
|
33
|
+
position: 'relative',
|
34
|
+
display: 'inline-flex',
|
35
|
+
flexDirection: 'column'
|
36
|
+
},
|
37
|
+
root: {
|
38
|
+
display: 'inline-flex',
|
39
|
+
alignItems: 'center',
|
40
|
+
position: 'relative',
|
41
|
+
borderRadius: `${theme.shape.radius.unit}px ${theme.shape.radius.unit}px 0 0`,
|
42
|
+
'& > *': {
|
43
|
+
'&::-webkit-scrollbar': {
|
44
|
+
width: '0px',
|
45
|
+
height: '0px'
|
46
|
+
}
|
47
|
+
}
|
48
|
+
},
|
49
|
+
// Color
|
50
|
+
color_default: {
|
51
|
+
color: theme.palette.text.default.primary
|
52
|
+
},
|
53
|
+
color_neutral: {
|
54
|
+
color: theme.palette.color.neutral.main
|
55
|
+
},
|
56
|
+
color_primary: {
|
57
|
+
color: theme.palette.color.primary.main
|
58
|
+
},
|
59
|
+
color_secondary: {
|
60
|
+
color: theme.palette.color.secondary.main
|
61
|
+
},
|
62
|
+
color_tertiary: {
|
63
|
+
color: theme.palette.color.tertiary.main
|
64
|
+
},
|
65
|
+
color_quaternary: {
|
66
|
+
color: theme.palette.color.quaternary.main
|
67
|
+
},
|
68
|
+
color_info: {
|
69
|
+
color: theme.palette.color.info.main
|
70
|
+
},
|
71
|
+
color_success: {
|
72
|
+
color: theme.palette.color.success.main
|
73
|
+
},
|
74
|
+
color_warning: {
|
75
|
+
color: theme.palette.color.warning.main
|
76
|
+
},
|
77
|
+
color_error: {
|
78
|
+
color: theme.palette.color.error.main
|
79
|
+
},
|
80
|
+
error_color: {
|
81
|
+
color: [theme.palette.light ? theme.palette.color.error[40] : theme.palette.color.error[80], '!important']
|
82
|
+
},
|
83
|
+
error_hover_color: {
|
84
|
+
color: [theme.palette.light ? theme.palette.color.error[20] : theme.palette.color.error[90], '!important']
|
85
|
+
},
|
86
|
+
inputWrapper: _objectSpread({
|
87
|
+
// Reset
|
88
|
+
margin: '0',
|
89
|
+
border: '0',
|
90
|
+
fontFamily: 'inherit',
|
91
|
+
fontSize: '100%',
|
92
|
+
lineHeight: '1.15',
|
93
|
+
overflow: 'visible',
|
94
|
+
boxSizing: 'border-box',
|
95
|
+
display: 'flex',
|
96
|
+
flexDirection: 'row',
|
97
|
+
flexWrap: 'wrap',
|
98
|
+
alignItems: 'center',
|
99
|
+
opacity: '0',
|
100
|
+
transition: theme.methods.transitions.make('opacity'),
|
101
|
+
borderRadius: `${theme.shape.radius.unit}px ${theme.shape.radius.unit}px 0 0`,
|
102
|
+
cursor: 'text',
|
103
|
+
width: '0',
|
104
|
+
flex: '1 1 auto'
|
105
|
+
}, theme.typography.values.b2),
|
106
|
+
inputWrapper_focus: {
|
107
|
+
opacity: '1'
|
108
|
+
},
|
109
|
+
input: _objectSpread(_objectSpread({
|
110
|
+
// Reset
|
111
|
+
margin: '0',
|
112
|
+
border: '0',
|
113
|
+
outline: 'none',
|
114
|
+
color: theme.palette.text.default.primary,
|
115
|
+
background: 'transparent',
|
116
|
+
'-webkit-tap-highlight-color': 'transparent',
|
117
|
+
textAlign: 'start'
|
118
|
+
}, theme.typography.values.b2), overflow),
|
119
|
+
multiline: {
|
120
|
+
resize: 'none',
|
121
|
+
overflow: 'auto',
|
122
|
+
whiteSpace: 'normal'
|
123
|
+
},
|
124
|
+
input_size_small: {
|
125
|
+
// height: '48px',
|
126
|
+
padding: `${theme.methods.space.value(1, 'px')} ${theme.methods.space.value(2, 'px')}`,
|
127
|
+
paddingTop: theme.methods.space.value(2.5, 'px')
|
128
|
+
},
|
129
|
+
input_size_regular: {
|
130
|
+
// height: '56px',
|
131
|
+
padding: `11px ${theme.methods.space.value(2, 'px')}`,
|
132
|
+
paddingTop: theme.methods.space.value(3, 'px')
|
133
|
+
},
|
134
|
+
input_size_large: {
|
135
|
+
// height: '64px',
|
136
|
+
padding: theme.methods.space.value(2, 'px'),
|
137
|
+
paddingTop: theme.methods.space.value(3.5, 'px')
|
138
|
+
},
|
139
|
+
inputWrapper_without_label_size_small: {
|
140
|
+
paddingTop: `${theme.methods.space.value(1, 'px')}`
|
141
|
+
},
|
142
|
+
inputWrapper_without_label_size_regular: {
|
143
|
+
paddingTop: `${theme.methods.space.value(2, 'px')}`
|
144
|
+
},
|
145
|
+
inputWrapper_without_label_size_large: {
|
146
|
+
paddingTop: `${theme.methods.space.value(2, 'px')}`
|
147
|
+
},
|
148
|
+
input_version_text: {
|
149
|
+
'&:not($input_start_icon)': {
|
150
|
+
paddingInline: '0'
|
151
|
+
}
|
152
|
+
},
|
153
|
+
input_start_icon: {
|
154
|
+
paddingInlineStart: '0'
|
155
|
+
},
|
156
|
+
input_end_icon: {
|
157
|
+
paddingInlineEnd: '0'
|
158
|
+
},
|
159
|
+
input_version_outlined_size_small: {
|
160
|
+
paddingTop: theme.methods.space.value(1.75, 'px'),
|
161
|
+
paddingBottom: theme.methods.space.value(1.75, 'px')
|
162
|
+
},
|
163
|
+
input_version_outlined_size_regular: {
|
164
|
+
paddingTop: theme.methods.space.value(2.25, 'px'),
|
165
|
+
paddingBottom: theme.methods.space.value(2.25, 'px')
|
166
|
+
},
|
167
|
+
input_version_outlined_size_large: {
|
168
|
+
paddingTop: theme.methods.space.value(2.75, 'px'),
|
169
|
+
paddingBottom: theme.methods.space.value(2.75, 'px')
|
170
|
+
},
|
171
|
+
input_align_start: {
|
172
|
+
textAlign: 'start'
|
173
|
+
},
|
174
|
+
input_align_center: {
|
175
|
+
textAlign: 'center'
|
176
|
+
},
|
177
|
+
input_align_end: {
|
178
|
+
textAlign: 'end'
|
179
|
+
},
|
180
|
+
label: _objectSpread(_objectSpread({
|
181
|
+
position: 'absolute',
|
182
|
+
insetInlineStart: '16px',
|
183
|
+
transformOrigin: 'top left',
|
184
|
+
transition: theme.methods.transitions.make(['color', 'inset', 'margin', 'transform']),
|
185
|
+
pointerEvents: 'none',
|
186
|
+
userSelect: 'none'
|
187
|
+
}, overflow), {}, {
|
188
|
+
width: 'auto'
|
189
|
+
}),
|
190
|
+
label_regular: {
|
191
|
+
top: '50%',
|
192
|
+
transform: 'translate(0px, -50%) scale(1)'
|
193
|
+
},
|
194
|
+
label_multiline: {
|
195
|
+
top: '0px'
|
196
|
+
},
|
197
|
+
label_rtl: {
|
198
|
+
transformOrigin: 'top right'
|
199
|
+
},
|
200
|
+
label_version_text: {
|
201
|
+
insetInlineStart: '0px'
|
202
|
+
},
|
203
|
+
label_icon_start: {
|
204
|
+
insetInlineStart: theme.methods.space.value(6.5, 'px')
|
205
|
+
},
|
206
|
+
label_size_small_multiline: {
|
207
|
+
transform: 'translate(4px, 14px) scale(1)'
|
208
|
+
},
|
209
|
+
label_size_regular_multiline: {
|
210
|
+
transform: 'translate(4px, 18px) scale(1)'
|
211
|
+
},
|
212
|
+
label_size_large_multiline: {
|
213
|
+
transform: 'translate(4px, 22px) scale(1)'
|
214
|
+
},
|
215
|
+
// Focus
|
216
|
+
label_version_text_focus: {
|
217
|
+
top: '0px',
|
218
|
+
insetInlineStart: '0px',
|
219
|
+
transform: 'translate(0, 6px) scale(0.667)'
|
220
|
+
},
|
221
|
+
label_version_outlined_focus: {
|
222
|
+
top: '0px',
|
223
|
+
insetInlineStart: '15px',
|
224
|
+
marginInlineStart: '4px',
|
225
|
+
transform: 'translate(0, -6px) scale(0.667)'
|
226
|
+
},
|
227
|
+
label_version_filled_focus: {
|
228
|
+
top: '0px',
|
229
|
+
insetInlineStart: '15px',
|
230
|
+
transform: 'translate(0, 6px) scale(0.667)'
|
231
|
+
},
|
232
|
+
background: _objectSpread(_objectSpread({}, other), {}, {
|
233
|
+
background: 'currentColor',
|
234
|
+
borderRadius: `${theme.shape.radius.unit}px ${theme.shape.radius.unit}px 0 0`,
|
235
|
+
opacity: theme.palette.light ? theme.palette.visual_contrast.default.opacity.hover : theme.palette.visual_contrast.default.opacity.selected,
|
236
|
+
transition: theme.methods.transitions.make(['opacity'])
|
237
|
+
}),
|
238
|
+
background_hover: {
|
239
|
+
opacity: theme.palette.visual_contrast.default.opacity.focus
|
240
|
+
},
|
241
|
+
background_focus: {
|
242
|
+
opacity: theme.palette.light ? theme.palette.visual_contrast.default.opacity.hover : theme.palette.visual_contrast.default.opacity.selected
|
243
|
+
},
|
244
|
+
border: _objectSpread(_objectSpread({}, other), {}, {
|
245
|
+
borderRadius: `${theme.shape.radius.unit}px ${theme.shape.radius.unit}px 0 0`,
|
246
|
+
boxShadow: 'inset 0px -1px 0px 0px currentColor',
|
247
|
+
transition: theme.methods.transitions.make(['box-shadow'])
|
248
|
+
}),
|
249
|
+
border_focus: {
|
250
|
+
boxShadow: 'inset 0px -2px 0px 0px currentColor'
|
251
|
+
},
|
252
|
+
fieldset: _objectSpread(_objectSpread({}, other), {}, {
|
253
|
+
top: '-5px',
|
254
|
+
height: 'calc(100% + 5px)',
|
255
|
+
borderRadius: `${theme.shape.radius.unit}px`,
|
256
|
+
border: '1px solid currentColor',
|
257
|
+
padding: '0',
|
258
|
+
paddingInline: `${theme.methods.space.value(1.5, 'px')} ${theme.methods.space.value(2, 'px')}`,
|
259
|
+
transition: theme.methods.transitions.make(['border', 'padding'])
|
260
|
+
}),
|
261
|
+
fieldset_focus: {
|
262
|
+
borderWidth: '2px',
|
263
|
+
paddingInline: `${theme.methods.space.value(1.5, 'px')} ${theme.methods.space.value(2, 'px')}`
|
264
|
+
},
|
265
|
+
legend: _objectSpread(_objectSpread({
|
266
|
+
display: 'inline-flex',
|
267
|
+
height: '11px',
|
268
|
+
width: 'auto',
|
269
|
+
padding: '0px',
|
270
|
+
maxWidth: '0.001px',
|
271
|
+
whiteSpace: 'nowrap',
|
272
|
+
visibility: 'hidden',
|
273
|
+
overflow: 'hidden',
|
274
|
+
transition: theme.methods.transitions.make(['max-width', 'padding'], {
|
275
|
+
duration: 'xxs'
|
276
|
+
})
|
277
|
+
}, theme.typography.values.b2), {}, {
|
278
|
+
fontSize: '0.64rem',
|
279
|
+
letterSpacing: 'normal'
|
280
|
+
}),
|
281
|
+
legend_focus: {
|
282
|
+
maxWidth: '100%',
|
283
|
+
padding: `0 ${theme.methods.space.value(0.5, 'px')}`,
|
284
|
+
transition: theme.methods.transitions.make(['max-width', 'padding'], {
|
285
|
+
duration: 'xs'
|
286
|
+
})
|
287
|
+
},
|
288
|
+
footer: {
|
289
|
+
marginTop: '4px',
|
290
|
+
paddingInline: theme.methods.space.value(2, 'px')
|
291
|
+
},
|
292
|
+
footer_version_text: {
|
293
|
+
paddingInline: '0'
|
294
|
+
},
|
295
|
+
helperText: {
|
296
|
+
display: 'inline-flex',
|
297
|
+
color: theme.palette.text.default.secondary,
|
298
|
+
userSelect: 'none'
|
299
|
+
},
|
300
|
+
counterText: {
|
301
|
+
display: 'inline-flex',
|
302
|
+
justifyContent: 'flex-end',
|
303
|
+
color: theme.palette.text.default.secondary,
|
304
|
+
userSelect: 'none',
|
305
|
+
flex: '1 0 auto'
|
306
|
+
},
|
307
|
+
// Start and end icon
|
308
|
+
icon: {
|
309
|
+
display: 'inline-flex',
|
310
|
+
alignItems: 'center',
|
311
|
+
flex: '0 0 auto'
|
312
|
+
},
|
313
|
+
icon_size_small: {
|
314
|
+
paddingBlock: '12px'
|
315
|
+
},
|
316
|
+
icon_size_regular: {
|
317
|
+
paddingBlock: '16px'
|
318
|
+
},
|
319
|
+
icon_size_large: {
|
320
|
+
paddingBlock: '24px'
|
321
|
+
},
|
322
|
+
icon_button_size_small: {
|
323
|
+
paddingBlock: '4px'
|
324
|
+
},
|
325
|
+
icon_button_size_regular: {
|
326
|
+
paddingBlock: '8px'
|
327
|
+
},
|
328
|
+
icon_button_size_large: {
|
329
|
+
paddingBlock: '12px'
|
330
|
+
},
|
331
|
+
icon_start: {
|
332
|
+
maxWidth: '40%',
|
333
|
+
overflow: 'auto hidden',
|
334
|
+
paddingInlineEnd: '16px',
|
335
|
+
paddingInlineStart: '12px'
|
336
|
+
},
|
337
|
+
icon_vertical_align_start: {
|
338
|
+
alignSelf: 'flex-start'
|
339
|
+
},
|
340
|
+
icon_vertical_align_center: {
|
341
|
+
alignSelf: 'center',
|
342
|
+
paddingBlock: '0px !important'
|
343
|
+
},
|
344
|
+
icon_vertical_align_end: {
|
345
|
+
alignSelf: 'flex-end'
|
346
|
+
},
|
347
|
+
icon_end: {
|
348
|
+
maxWidth: '40%',
|
349
|
+
overflow: 'auto hidden',
|
350
|
+
paddingInlineStart: theme.methods.space.value(2, 'px'),
|
351
|
+
paddingInlineEnd: theme.methods.space.value(1.5, 'px')
|
352
|
+
},
|
353
|
+
addition: {
|
354
|
+
color: theme.palette.text.default.secondary
|
355
|
+
},
|
356
|
+
addition_size_small: {
|
357
|
+
paddingBottom: theme.methods.space.value(1, 'px'),
|
358
|
+
paddingTop: theme.methods.space.value(2.5, 'px')
|
359
|
+
},
|
360
|
+
addition_size_regular: {
|
361
|
+
paddingBottom: theme.methods.space.value(2, 'px'),
|
362
|
+
paddingTop: theme.methods.space.value(3, 'px')
|
363
|
+
},
|
364
|
+
addition_size_large: {
|
365
|
+
paddingBottom: theme.methods.space.value(2, 'px'),
|
366
|
+
paddingTop: theme.methods.space.value(3.5, 'px')
|
367
|
+
},
|
368
|
+
addition_version_outlined_size_small: {
|
369
|
+
paddingTop: theme.methods.space.value(1.75, 'px'),
|
370
|
+
paddingBottom: theme.methods.space.value(1.75, 'px')
|
371
|
+
},
|
372
|
+
addition_version_outlined_size_regular: {
|
373
|
+
paddingTop: theme.methods.space.value(2.25, 'px'),
|
374
|
+
paddingBottom: theme.methods.space.value(2.25, 'px')
|
375
|
+
},
|
376
|
+
addition_version_outlined_size_large: {
|
377
|
+
paddingTop: theme.methods.space.value(2.75, 'px'),
|
378
|
+
paddingBottom: theme.methods.space.value(2.75, 'px')
|
379
|
+
},
|
380
|
+
addition_without_label_size_small: {
|
381
|
+
paddingTop: `${theme.methods.space.value(1, 'px')}`
|
382
|
+
},
|
383
|
+
addition_without_label_size_regular: {
|
384
|
+
paddingTop: `${theme.methods.space.value(2, 'px')}`
|
385
|
+
},
|
386
|
+
addition_without_label_size_large: {
|
387
|
+
paddingTop: `${theme.methods.space.value(2, 'px')}`
|
388
|
+
},
|
389
|
+
prefix: {
|
390
|
+
flex: '0 0 auto',
|
391
|
+
marginInlineStart: '16px',
|
392
|
+
marginInlineEnd: '8px',
|
393
|
+
opacity: '0',
|
394
|
+
transition: theme.methods.transitions.make('opacity')
|
395
|
+
},
|
396
|
+
prefix_noStartMargin: {
|
397
|
+
marginInlineStart: '0px'
|
398
|
+
},
|
399
|
+
prefix_focus: {
|
400
|
+
opacity: '1'
|
401
|
+
},
|
402
|
+
noPrefixMargin: {
|
403
|
+
marginInlineEnd: '0'
|
404
|
+
},
|
405
|
+
sufix: {
|
406
|
+
flex: '0 0 auto',
|
407
|
+
marginInlineEnd: '16px',
|
408
|
+
marginInlineStart: '8px',
|
409
|
+
opacity: '0',
|
410
|
+
transition: theme.methods.transitions.make('opacity')
|
411
|
+
},
|
412
|
+
sufix_focus: {
|
413
|
+
opacity: '1'
|
414
|
+
},
|
415
|
+
sufix_noEndMargin: {
|
416
|
+
marginInlineEnd: '0px'
|
417
|
+
},
|
418
|
+
noSufixMargin: {
|
419
|
+
marginInlineStart: '0'
|
420
|
+
},
|
421
|
+
fullWidth: {
|
422
|
+
width: '100%'
|
423
|
+
},
|
424
|
+
clear: {
|
425
|
+
cursor: 'pointer',
|
426
|
+
pointerEvents: 'all !important',
|
427
|
+
userSelect: 'none',
|
428
|
+
transition: theme.methods.transitions.make('transform', {
|
429
|
+
duration: 'xs'
|
430
|
+
}),
|
431
|
+
'&:active': {
|
432
|
+
transform: 'scale(0.87)'
|
433
|
+
}
|
434
|
+
},
|
435
|
+
disabled: {
|
436
|
+
opacity: '0.54',
|
437
|
+
pointerEvents: 'none',
|
438
|
+
cursor: 'default'
|
439
|
+
}
|
440
|
+
};
|
441
|
+
}, {
|
442
|
+
name: 'onesy-TextField'
|
443
|
+
});
|
444
|
+
const TextField = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
445
|
+
const theme = useOnesyTheme();
|
446
|
+
const props = React.useMemo(() => _objectSpread(_objectSpread(_objectSpread({}, theme?.ui?.elements?.all?.props?.default), theme?.ui?.elements?.onesyTextField?.props?.default), props_), [props_]);
|
447
|
+
const Line = React.useMemo(() => theme?.elements?.Line || LineElement, [theme]);
|
448
|
+
const Type = React.useMemo(() => theme?.elements?.Type || TypeElement, [theme]);
|
449
|
+
const {
|
450
|
+
tonal = true,
|
451
|
+
color = 'primary',
|
452
|
+
version = 'filled',
|
453
|
+
size = 'regular',
|
454
|
+
rootRef,
|
455
|
+
valueDefault,
|
456
|
+
value: value_,
|
457
|
+
onChange,
|
458
|
+
name,
|
459
|
+
label: label_,
|
460
|
+
align,
|
461
|
+
start,
|
462
|
+
startVerticalAlign = 'start',
|
463
|
+
end: end_,
|
464
|
+
endVerticalAlign: endVerticalAlign_ = 'start',
|
465
|
+
placeholder,
|
466
|
+
fullWidth: fullWidth_,
|
467
|
+
helperText,
|
468
|
+
counter,
|
469
|
+
prefix,
|
470
|
+
sufix,
|
471
|
+
noPrefixMargin,
|
472
|
+
noSufixMargin,
|
473
|
+
enabled,
|
474
|
+
autoFocus,
|
475
|
+
autoComplete,
|
476
|
+
type: type_ = 'text',
|
477
|
+
required,
|
478
|
+
optional,
|
479
|
+
optionalText = 'optional',
|
480
|
+
error,
|
481
|
+
multiline,
|
482
|
+
rows: rows_,
|
483
|
+
minRows = 1,
|
484
|
+
maxRows,
|
485
|
+
clear,
|
486
|
+
focus: focus_,
|
487
|
+
footer: footer_,
|
488
|
+
subscription,
|
489
|
+
controlled,
|
490
|
+
minimal,
|
491
|
+
restoreSelection = false,
|
492
|
+
minWidth,
|
493
|
+
readOnly,
|
494
|
+
disabled,
|
495
|
+
onInput: onInput_,
|
496
|
+
onFocus: onFocus_,
|
497
|
+
onBlur: onBlur_,
|
498
|
+
onMouseEnter: onMouseEnter_,
|
499
|
+
onMouseLeave: onMouseLeave_,
|
500
|
+
inputProps = {},
|
501
|
+
InputWrapperProps = {},
|
502
|
+
HelperTextProps,
|
503
|
+
IconProps,
|
504
|
+
IconClear = IconMaterialClose,
|
505
|
+
InputComponent: InputComponent_,
|
506
|
+
WrapperComponent = 'div',
|
507
|
+
Component = 'div',
|
508
|
+
className,
|
509
|
+
style,
|
510
|
+
children,
|
511
|
+
// Other
|
512
|
+
colorUnchecked
|
513
|
+
} = props,
|
514
|
+
other = _objectWithoutProperties(props, _excluded);
|
515
|
+
const {
|
516
|
+
classes
|
517
|
+
} = useStyle();
|
518
|
+
const refs = {
|
519
|
+
root: React.useRef(undefined),
|
520
|
+
input: React.useRef(undefined),
|
521
|
+
carret: React.useRef(undefined),
|
522
|
+
restoreSelection: React.useRef(restoreSelection),
|
523
|
+
controlled: React.useRef(controlled),
|
524
|
+
ids: {
|
525
|
+
label: React.useId(),
|
526
|
+
clear: React.useId()
|
527
|
+
}
|
528
|
+
};
|
529
|
+
refs.controlled.current = controlled;
|
530
|
+
const keys = React.useMemo(() => {
|
531
|
+
const result = [];
|
532
|
+
const items = [fullWidth_];
|
533
|
+
items.forEach(item => {
|
534
|
+
if (is('object', item)) Object.keys(item).filter(key => theme.breakpoints.media[key]).forEach(key => result.push(key));
|
535
|
+
});
|
536
|
+
return unique(result);
|
537
|
+
}, [fullWidth_]);
|
538
|
+
const breakpoints = {};
|
539
|
+
keys.forEach(key => {
|
540
|
+
breakpoints[key] = useMediaQuery(theme.breakpoints.media[key], {
|
541
|
+
element: refs.root.current
|
542
|
+
});
|
543
|
+
});
|
544
|
+
const label = name !== undefined ? name : label_;
|
545
|
+
let endVerticalAlign = endVerticalAlign_;
|
546
|
+
const fullWidth = valueBreakpoints(fullWidth_, undefined, breakpoints, theme);
|
547
|
+
const rowValue = () => {
|
548
|
+
const rootDocument = isEnvironment('browser') ? refs.root.current?.ownerDocument || window.document : undefined;
|
549
|
+
const htmlFontSize = isEnvironment('browser') ? +window.getComputedStyle(rootDocument.documentElement).fontSize.slice(0, -2) : 16;
|
550
|
+
const padding = size === 'small' ? 28 : size === 'regular' ? 36 : 44;
|
551
|
+
const row_ = Math.round(htmlFontSize * 0.875 * 1.4285714285714286);
|
552
|
+
return {
|
553
|
+
height: row_,
|
554
|
+
padding
|
555
|
+
};
|
556
|
+
};
|
557
|
+
const [value, setValue] = React.useState(valueDefault !== undefined ? valueDefault : value_);
|
558
|
+
const [focus, setFocus] = React.useState(focus_);
|
559
|
+
const [mouseDown, setMouseDown] = React.useState(false);
|
560
|
+
const [hover, setHover] = React.useState(false);
|
561
|
+
const [row, setRow] = React.useState(rowValue);
|
562
|
+
const [rows, setRows] = React.useState(1);
|
563
|
+
let end = end_;
|
564
|
+
let type = type_;
|
565
|
+
const styles = {
|
566
|
+
root: {},
|
567
|
+
input: {},
|
568
|
+
inputWrapper: {},
|
569
|
+
background: {
|
570
|
+
color: theme.palette.text.default.secondary
|
571
|
+
}
|
572
|
+
};
|
573
|
+
refs.restoreSelection.current = restoreSelection;
|
574
|
+
React.useEffect(() => {
|
575
|
+
const rootDocument = isEnvironment('browser') ? refs.root.current?.ownerDocument || window.document : undefined;
|
576
|
+
const htmlObserver = new MutationObserver(() => setRow(rowValue));
|
577
|
+
htmlObserver.observe(rootDocument.documentElement, {
|
578
|
+
attributes: true,
|
579
|
+
attributeFilter: ['style']
|
580
|
+
});
|
581
|
+
rootDocument.addEventListener('mouseup', onInputWrapperMouseUp);
|
582
|
+
return () => {
|
583
|
+
// Clean up
|
584
|
+
rootDocument.removeEventListener('mouseup', onInputWrapperMouseUp);
|
585
|
+
htmlObserver.disconnect();
|
586
|
+
};
|
587
|
+
}, []);
|
588
|
+
React.useEffect(() => {
|
589
|
+
setTimeout(() => {
|
590
|
+
if (refs.restoreSelection.current && refs.carret.current) {
|
591
|
+
// Carret restore previous value
|
592
|
+
try {
|
593
|
+
refs.input.current.selectionStart = refs.carret.current.start;
|
594
|
+
refs.input.current.selectionEnd = refs.carret.current.end;
|
595
|
+
} catch (error) {}
|
596
|
+
}
|
597
|
+
});
|
598
|
+
}, [value]);
|
599
|
+
React.useEffect(() => {
|
600
|
+
if (value_ !== undefined && value_ !== value) {
|
601
|
+
setValue(value_);
|
602
|
+
}
|
603
|
+
}, [value_]);
|
604
|
+
React.useEffect(() => {
|
605
|
+
if (focus_ !== focus && focus_ !== undefined) setFocus(focus_);
|
606
|
+
}, [focus_]);
|
607
|
+
React.useEffect(() => {
|
608
|
+
const method = event => {
|
609
|
+
if (event === 'clear') onClear();
|
610
|
+
};
|
611
|
+
if (subscription) subscription.subscribe(method);
|
612
|
+
return () => {
|
613
|
+
if (subscription) subscription.unsubscribe(method);
|
614
|
+
};
|
615
|
+
}, [subscription]);
|
616
|
+
const onUpdateRows = () => {
|
617
|
+
if (multiline && row !== undefined) {
|
618
|
+
const heightValue = refs.input.current.style.height;
|
619
|
+
|
620
|
+
// Get actual height with auto
|
621
|
+
refs.input.current.style.height = 'auto';
|
622
|
+
const scrollHeight = refs.input.current.scrollHeight;
|
623
|
+
|
624
|
+
// Revert back to previous value
|
625
|
+
refs.input.current.style.height = heightValue;
|
626
|
+
const newRows = Math.floor(scrollHeight / row.height);
|
627
|
+
setRows(newRows);
|
628
|
+
}
|
629
|
+
};
|
630
|
+
const onUpdate = event => {
|
631
|
+
const inputValue = event.target.value;
|
632
|
+
|
633
|
+
// Carret save previous value
|
634
|
+
refs.carret.current = {
|
635
|
+
start: refs.input.current.selectionStart,
|
636
|
+
end: refs.input.current.selectionEnd
|
637
|
+
};
|
638
|
+
|
639
|
+
// Only restore if it's not regular carret value
|
640
|
+
if (refs.carret.current.start === inputValue.length) refs.carret.current = undefined;
|
641
|
+
onUpdateRows();
|
642
|
+
|
643
|
+
// Inner controlled value
|
644
|
+
if (!refs.controlled.current) setValue(inputValue);
|
645
|
+
if (is('function', onChange)) onChange(inputValue, event);
|
646
|
+
};
|
647
|
+
const onInput = event => {
|
648
|
+
onUpdateRows();
|
649
|
+
if (is('function', onInput_)) onInput_(event);
|
650
|
+
};
|
651
|
+
const onClear = React.useCallback(() => {
|
652
|
+
if (!disabled) {
|
653
|
+
const valueNew = '';
|
654
|
+
|
655
|
+
// Inner controlled value
|
656
|
+
if (!refs.controlled.current) setValue(valueNew);
|
657
|
+
if (is('function', onChange)) onChange(valueNew);
|
658
|
+
}
|
659
|
+
}, [disabled, onChange]);
|
660
|
+
const onInputWrapperMouseDown = React.useCallback(event => {
|
661
|
+
if (!disabled) {
|
662
|
+
setMouseDown(true);
|
663
|
+
refs.input.current.focus();
|
664
|
+
if (is('function', InputWrapperProps.onMouseDown)) InputWrapperProps.onMouseDown(event);
|
665
|
+
}
|
666
|
+
}, []);
|
667
|
+
const onInputWrapperMouseUp = React.useCallback(event => {
|
668
|
+
if (!disabled) {
|
669
|
+
setMouseDown(false);
|
670
|
+
if (is('function', InputWrapperProps.onMouseUp)) InputWrapperProps.onMouseUp(event);
|
671
|
+
}
|
672
|
+
}, []);
|
673
|
+
const onInputWrapperClick = React.useCallback(event => {
|
674
|
+
if (!disabled) {
|
675
|
+
if (event.target === event.currentTarget) refs.input.current?.focus();
|
676
|
+
if (is('function', InputWrapperProps?.onClick)) InputWrapperProps.onClick(event);
|
677
|
+
}
|
678
|
+
}, []);
|
679
|
+
const onFocus = event => {
|
680
|
+
if (!disabled) {
|
681
|
+
setFocus(focus_ !== undefined ? focus_ : true);
|
682
|
+
if (is('function', onFocus_)) onFocus_(event);
|
683
|
+
}
|
684
|
+
};
|
685
|
+
const onBlur = event => {
|
686
|
+
if (!disabled) {
|
687
|
+
setFocus(focus_ !== undefined ? focus_ : false);
|
688
|
+
if (is('function', onBlur_)) onBlur_(event);
|
689
|
+
}
|
690
|
+
};
|
691
|
+
const onMouseEnter = React.useCallback(event => {
|
692
|
+
if (!disabled) {
|
693
|
+
setHover(true);
|
694
|
+
if (is('function', onMouseEnter_)) onMouseEnter_(event);
|
695
|
+
}
|
696
|
+
}, []);
|
697
|
+
const onMouseLeave = React.useCallback(event => {
|
698
|
+
if (!disabled) {
|
699
|
+
setHover(false);
|
700
|
+
if (is('function', onMouseLeave_)) onMouseLeave_(event);
|
701
|
+
}
|
702
|
+
}, []);
|
703
|
+
const palette = color === 'default' ? theme.palette.color.neutral : !theme.palette.color[color] ? theme.methods.color(color) : theme.palette.color[color];
|
704
|
+
if (!focus) {
|
705
|
+
styles.root.color = theme.palette.text.default.secondary;
|
706
|
+
} else {
|
707
|
+
styles.root.color = styles.input.caretColor = tonal ? theme.methods.palette.color.value(color, 30, true, palette) : color === 'default' ? theme.palette.text.default.primary : theme.palette.color[color]?.main || color;
|
708
|
+
}
|
709
|
+
if (error) {
|
710
|
+
styles.input.caretColor = theme.palette.light ? theme.palette.color.error[40] : theme.palette.color.error[80];
|
711
|
+
}
|
712
|
+
if (tonal) styles.background.color = theme.methods.palette.color.value(color, 20, true, palette);
|
713
|
+
const footer = footer_ || !!helperText || counter !== undefined || required;
|
714
|
+
const Wrapper = footer ? WrapperComponent : React.Fragment;
|
715
|
+
let ComponentProps = {};
|
716
|
+
let WrapperProps = {};
|
717
|
+
if (value && clear) {
|
718
|
+
if (!Array.isArray(end)) end = [end].filter(Boolean);
|
719
|
+
const exists = end?.find(item => item.key === refs.ids.clear);
|
720
|
+
if (!exists) {
|
721
|
+
if (props.endVerticalAlign === undefined) endVerticalAlign = 'center';
|
722
|
+
end.push(/*#__PURE__*/React.createElement(IconClear, _extends({
|
723
|
+
key: refs.ids.clear,
|
724
|
+
color: "inherit",
|
725
|
+
onClick: onClear
|
726
|
+
}, IconProps, {
|
727
|
+
className: classNames([IconProps?.className, classes.clear])
|
728
|
+
})));
|
729
|
+
}
|
730
|
+
}
|
731
|
+
if (footer) {
|
732
|
+
WrapperProps = _objectSpread({}, other);
|
733
|
+
WrapperProps.ref = item => {
|
734
|
+
if (rootRef) {
|
735
|
+
if (is('function', rootRef)) rootRef(item);else rootRef.current = item;
|
736
|
+
}
|
737
|
+
refs.root.current = item;
|
738
|
+
};
|
739
|
+
WrapperProps['className'] = classNames([staticClassName('TextField', theme) && ['onesy-TextField-wrapper', fullWidth && 'onesy-TextField-full-width', disabled && 'onesy-TextField-disabled', fullWidth && 'onesy-full-width'], className, classes.wrapper, fullWidth && classes.fullWidth, disabled && classes.disabled]);
|
740
|
+
WrapperProps.style = _objectSpread({}, style);
|
741
|
+
} else {
|
742
|
+
ComponentProps = _objectSpread({}, other);
|
743
|
+
ComponentProps.ref = item => {
|
744
|
+
if (rootRef) {
|
745
|
+
if (is('function', rootRef)) rootRef(item);else rootRef.current = item;
|
746
|
+
}
|
747
|
+
refs.root.current = item;
|
748
|
+
};
|
749
|
+
ComponentProps.className = className;
|
750
|
+
ComponentProps.style = _objectSpread({}, style);
|
751
|
+
}
|
752
|
+
ComponentProps.style = _objectSpread(_objectSpread({}, ComponentProps.style), styles.root);
|
753
|
+
let InputComponent = 'input';
|
754
|
+
if (multiline) {
|
755
|
+
InputComponent = 'textarea';
|
756
|
+
inputProps.rows = 1;
|
757
|
+
type = undefined;
|
758
|
+
if (row) {
|
759
|
+
if (rows_) {
|
760
|
+
styles.input.height = rows_ * row.height;
|
761
|
+
styles.inputWrapper.height = rows_ * row.height + row.padding;
|
762
|
+
} else {
|
763
|
+
styles.input.height = row.height * clamp(rows, minRows, maxRows);
|
764
|
+
styles.inputWrapper.height = row.height * clamp(rows, minRows, maxRows) + row.padding;
|
765
|
+
}
|
766
|
+
}
|
767
|
+
}
|
768
|
+
|
769
|
+
// override the input element
|
770
|
+
// with a custom value
|
771
|
+
if (InputComponent_) InputComponent = InputComponent_;
|
772
|
+
|
773
|
+
// onInput
|
774
|
+
if (!['input', 'textarea'].includes(InputComponent)) {
|
775
|
+
inputProps.onInput = onInput;
|
776
|
+
}
|
777
|
+
const valueWithData = value !== undefined && String(value);
|
778
|
+
return /*#__PURE__*/React.createElement(Wrapper, WrapperProps, /*#__PURE__*/React.createElement(Component, _extends({
|
779
|
+
onMouseEnter: onMouseEnter,
|
780
|
+
onMouseLeave: onMouseLeave,
|
781
|
+
onTouchStart: onMouseEnter,
|
782
|
+
onTouchEnd: onMouseLeave,
|
783
|
+
role: "textbox",
|
784
|
+
"aria-multiline": multiline,
|
785
|
+
"aria-labelledby": refs.ids.label
|
786
|
+
}, ComponentProps, {
|
787
|
+
className: classNames([staticClassName('TextField', theme) && ['onesy-TextField-root',, `onesy-TextField-version-${version}`, `onesy-TextField-size-${size}`, multiline && `onesy-TextField-multiline`, valueWithData && 'onesy-TextField-value', error && `onesy-TextField-error`, required && 'onesy-TextField-required', enabled && 'onesy-TextField-enabled', hover && `onesy-TextField-hover`, mouseDown && `onesy-TextField-mouse-down`, focus && `onesy-TextField-focus`, readOnly && `onesy-TextField-read-only`, disabled && 'onesy-TextField-disabled', fullWidth && 'onesy-full-width'], ComponentProps.className, classes.root, classes[`color_${color}`], fullWidth && classes.fullWidth, error && (hover ? classes.error_hover_color : classes.error_color), !footer && disabled && classes.disabled]),
|
788
|
+
style: _objectSpread({
|
789
|
+
minWidth
|
790
|
+
}, ComponentProps?.style)
|
791
|
+
}), !minimal && /*#__PURE__*/React.createElement(React.Fragment, null, ['filled'].includes(version) && /*#__PURE__*/React.createElement("span", {
|
792
|
+
className: classNames([staticClassName('TextField', theme) && ['onesy-TextField-background'], classes.background, (enabled || valueWithData || focus) && classes.background_focus, hover && classes.background_hover]),
|
793
|
+
style: styles.background
|
794
|
+
}), ['text', 'filled'].includes(version) && /*#__PURE__*/React.createElement("span", {
|
795
|
+
className: classNames([staticClassName('TextField', theme) && ['onesy-TextField-border'], classes.border, focus && classes.border_focus]),
|
796
|
+
style: styles.border
|
797
|
+
}), ['outlined'].includes(version) && /*#__PURE__*/React.createElement("fieldset", {
|
798
|
+
className: classNames([staticClassName('TextField', theme) && ['onesy-TextField-fieldset'], classes.fieldset, focus && classes.fieldset_focus]),
|
799
|
+
style: styles.fieldset
|
800
|
+
}, /*#__PURE__*/React.createElement("legend", {
|
801
|
+
className: classNames([staticClassName('TextField', theme) && ['onesy-TextField-legend'], classes.legend, (enabled || valueWithData || focus) && label !== undefined && classes.legend_focus])
|
802
|
+
}, label, required ? '*' : '', optional ? ` (${optionalText})` : ''))), label && /*#__PURE__*/React.createElement(Type, {
|
803
|
+
version: "b2",
|
804
|
+
id: refs.ids.label,
|
805
|
+
Component: "label",
|
806
|
+
className: classNames([staticClassName('TextField', theme) && ['onesy-TextField-label'], classes.label, classes[`label_${multiline ? 'multiline' : 'regular'}`], classes[`label_version_${version}`], classes[`label_size_${size}`], multiline && classes[`label_size_${size}_multiline`], classes[`label_version_${version}_size_${size}`], (enabled || valueWithData || focus) && [classes[`label_focus`], classes[`label_version_${version}_focus`], classes[`label_version_${version}_size_${size}${multiline ? '_multiline' : ''}_focus`], multiline && classes.label_multiline_focus], theme.direction === 'rtl' && classes.label_rtl, start && [classes.label_icon_start, classes[`label_version_${version}_icon_start`]]])
|
807
|
+
}, label, required ? '*' : '', optional ? ` (${optionalText})` : ''), !minimal && /*#__PURE__*/React.createElement(React.Fragment, null, !!React.Children.toArray(start).length && /*#__PURE__*/React.createElement("span", {
|
808
|
+
className: classNames([staticClassName('TextField', theme) && ['onesy-TextField-icon', 'onesy-TextField-icon-start'], classes.icon, classes.icon_start, classes[`icon${start?.type?.displayName?.includes('IconButton') ? '_button' : ''}_size_${size}`], classes[`icon_version_${version}`], classes[`icon_vertical_align_${startVerticalAlign}`]])
|
809
|
+
}, React.Children.toArray(start).map((item, index) => (/*#__PURE__*/React.cloneElement(item, {
|
810
|
+
key: index,
|
811
|
+
size: item.props?.size !== undefined ? item.props?.size : 'regular',
|
812
|
+
color: item.props?.color !== undefined ? item.props?.color : theme.palette.text.default.secondary,
|
813
|
+
style: _objectSpread(_objectSpread({}, item.props.style), styles.icon)
|
814
|
+
}))))), prefix !== undefined && /*#__PURE__*/React.createElement(Type, {
|
815
|
+
className: classNames([staticClassName('TextField', theme) && ['onesy-TextField-addition', 'onesy-TextField-prefix'], classes.addition, classes.prefix, (start || version === 'text') && classes.prefix_noStartMargin, classes[`addition_size_${size}`], classes[`addition_version_${version}_size_${size}`], (enabled || valueWithData || focus) && classes.prefix_focus, noPrefixMargin && classes.noPrefixMargin, minimal && !label && classes[`addition_without_label_size_${size}`]]),
|
816
|
+
version: "b2"
|
817
|
+
}, prefix), /*#__PURE__*/React.createElement("div", _extends({}, InputWrapperProps, {
|
818
|
+
className: classNames([staticClassName('TextField', theme) && ['onesy-TextField-input-wrapper'], classes.inputWrapper, InputWrapperProps?.className, (enabled || label === undefined || valueWithData || focus) && classes.inputWrapper_focus, classes[`input_version_${version}`], classes[`input_size_${size}`], classes[`input_version_${version}_size_${size}`], (prefix || start) && classes.input_start_icon, (sufix || end) && classes.input_end_icon, minimal && !label && classes[`inputWrapper_without_label_size_${size}`]]),
|
819
|
+
onClick: onInputWrapperClick,
|
820
|
+
onMouseUp: onInputWrapperMouseUp,
|
821
|
+
onMouseDown: onInputWrapperMouseDown,
|
822
|
+
style: _objectSpread(_objectSpread({}, styles.inputWrapper), InputWrapperProps.style)
|
823
|
+
}), children, /*#__PURE__*/React.createElement(InputComponent, _extends({}, inputProps, {
|
824
|
+
ref: item => {
|
825
|
+
if (ref) {
|
826
|
+
if (is('function', ref)) ref(item);else ref.current = item;
|
827
|
+
}
|
828
|
+
refs.input.current = item;
|
829
|
+
if (inputProps.ref) {
|
830
|
+
if (is('function', inputProps.ref)) inputProps.ref(item);else inputProps.ref.current = item;
|
831
|
+
}
|
832
|
+
},
|
833
|
+
className: classNames([staticClassName('TextField', theme) && ['onesy-TextField-input'], classes.input, inputProps?.className, multiline && classes.multiline, align && classes[`input_align_${align}`]]),
|
834
|
+
onFocus: onFocus,
|
835
|
+
onBlur: onBlur,
|
836
|
+
placeholder: placeholder,
|
837
|
+
onChange: onUpdate,
|
838
|
+
value: value !== undefined ? value : '',
|
839
|
+
type: type,
|
840
|
+
autoFocus: autoFocus,
|
841
|
+
autoComplete: autoComplete,
|
842
|
+
readOnly: readOnly,
|
843
|
+
disabled: disabled,
|
844
|
+
style: _objectSpread(_objectSpread({}, styles.input), inputProps.style)
|
845
|
+
}))), sufix !== undefined && /*#__PURE__*/React.createElement(Type, {
|
846
|
+
className: classNames([staticClassName('TextField', theme) && ['onesy-TextField-addition', 'onesy-TextField-sufix'], classes.addition, classes.sufix, (end || version === 'text') && classes.sufix_noEndMargin, classes[`addition_size_${size}`], classes[`addition_version_${version}_size_${size}`], (enabled || valueWithData || focus) && classes.sufix_focus, noSufixMargin && classes.noSufixMargin]),
|
847
|
+
version: "b2"
|
848
|
+
}, sufix), !minimal && /*#__PURE__*/React.createElement(React.Fragment, null, !!React.Children.toArray(end).length && /*#__PURE__*/React.createElement("span", {
|
849
|
+
className: classNames([staticClassName('TextField', theme) && ['onesy-TextField-icon', 'onesy-TextField-icon-end'], classes.icon, classes.icon_end, classes[`icon${end?.type?.displayName?.includes('IconButton') ? '_button' : ''}_size_${size}`], classes[`icon_version_${version}`], classes[`icon_vertical_align_${endVerticalAlign}`]])
|
850
|
+
}, React.Children.toArray(end).map((item, index) => (/*#__PURE__*/React.cloneElement(item, {
|
851
|
+
key: index,
|
852
|
+
size: item.props?.size !== undefined ? item.props?.size : size,
|
853
|
+
color: item.props?.color !== undefined ? item.props?.color : error ? theme.palette.light ? theme.palette.color.error[hover ? 20 : 40] : theme.palette.color.error[hover ? 90 : 80] : theme.palette.text.default.secondary,
|
854
|
+
style: _objectSpread(_objectSpread({}, item.props.style), styles.icon)
|
855
|
+
})))))), footer && /*#__PURE__*/React.createElement(React.Fragment, null, (!!helperText || counter !== undefined || required) && /*#__PURE__*/React.createElement(Line, {
|
856
|
+
gap: 2,
|
857
|
+
direction: "row",
|
858
|
+
justify: "space-between",
|
859
|
+
className: classNames([staticClassName('TextField', theme) && ['onesy-TextField-footer'], classes.footer, classes[`footer_version_${version}`]])
|
860
|
+
}, (helperText || required) && /*#__PURE__*/React.createElement(Type, _extends({
|
861
|
+
version: "b3"
|
862
|
+
}, HelperTextProps, {
|
863
|
+
className: classNames([staticClassName('TextField', theme) && ['onesy-TextField-helper-text', error && 'onesy-TextField-error'], HelperTextProps?.className, classes.helperText, error && classes.error_color])
|
864
|
+
}), helperText !== undefined ? helperText : required ? '*required' : ''), counter && /*#__PURE__*/React.createElement(Type, {
|
865
|
+
version: "b3",
|
866
|
+
className: classNames([staticClassName('TextField', theme) && ['onesy-TextField-counter'], classes.counterText, error && classes.error_color])
|
867
|
+
}, String(value)?.length || 0, "/", counter)), footer_));
|
868
|
+
});
|
869
|
+
TextField.displayName = 'onesy-TextField';
|
870
|
+
export default TextField;
|