@onesy/ui-react 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.d.ts +38 -0
- package/Accordion/Accordion.js +252 -0
- package/Accordion/index.d.ts +1 -0
- package/Accordion/index.js +8 -0
- package/Accordion/package.json +6 -0
- package/AdvancedTextField/AdvancedTextField.d.ts +13 -0
- package/AdvancedTextField/AdvancedTextField.js +164 -0
- package/AdvancedTextField/index.d.ts +1 -0
- package/AdvancedTextField/index.js +8 -0
- package/AdvancedTextField/package.json +6 -0
- package/Append/Append.d.ts +40 -0
- package/Append/Append.js +528 -0
- package/Append/index.d.ts +1 -0
- package/Append/index.js +8 -0
- package/Append/package.json +6 -0
- package/AreaChart/AreaChart.d.ts +9 -0
- package/AreaChart/AreaChart.js +43 -0
- package/AreaChart/index.d.ts +1 -0
- package/AreaChart/index.js +8 -0
- package/AreaChart/package.json +6 -0
- package/AreaChartItem/AreaChartItem.d.ts +22 -0
- package/AreaChartItem/AreaChartItem.js +249 -0
- package/AreaChartItem/index.d.ts +1 -0
- package/AreaChartItem/index.js +8 -0
- package/AreaChartItem/package.json +6 -0
- package/AudioPlayer/AudioPlayer.d.ts +53 -0
- package/AudioPlayer/AudioPlayer.js +494 -0
- package/AudioPlayer/index.d.ts +1 -0
- package/AudioPlayer/index.js +8 -0
- package/AudioPlayer/package.json +6 -0
- package/AudioRecorder/AudioRecorder.d.ts +31 -0
- package/AudioRecorder/AudioRecorder.js +242 -0
- package/AudioRecorder/index.d.ts +1 -0
- package/AudioRecorder/index.js +8 -0
- package/AudioRecorder/package.json +6 -0
- package/AutoComplete/AutoComplete.d.ts +62 -0
- package/AutoComplete/AutoComplete.js +586 -0
- package/AutoComplete/index.d.ts +1 -0
- package/AutoComplete/index.js +8 -0
- package/AutoComplete/package.json +6 -0
- package/AutoCompleteCountry/AutoCompleteCountry.d.ts +6 -0
- package/AutoCompleteCountry/AutoCompleteCountry.js +64 -0
- package/AutoCompleteCountry/index.d.ts +1 -0
- package/AutoCompleteCountry/index.js +8 -0
- package/AutoCompleteCountry/package.json +6 -0
- package/AutoCompleteCurrency/AutoCompleteCurrency.d.ts +6 -0
- package/AutoCompleteCurrency/AutoCompleteCurrency.js +63 -0
- package/AutoCompleteCurrency/index.d.ts +1 -0
- package/AutoCompleteCurrency/index.js +8 -0
- package/AutoCompleteCurrency/package.json +6 -0
- package/AutoCompleteGooglePlaces/AutoCompleteGooglePlaces.d.ts +6 -0
- package/AutoCompleteGooglePlaces/AutoCompleteGooglePlaces.js +85 -0
- package/AutoCompleteGooglePlaces/index.d.ts +1 -0
- package/AutoCompleteGooglePlaces/index.js +8 -0
- package/AutoCompleteGooglePlaces/package.json +6 -0
- package/Avatar/Avatar.d.ts +13 -0
- package/Avatar/Avatar.js +88 -0
- package/Avatar/index.d.ts +1 -0
- package/Avatar/index.js +8 -0
- package/Avatar/package.json +6 -0
- package/AvatarGroup/AvatarGroup.d.ts +15 -0
- package/AvatarGroup/AvatarGroup.js +91 -0
- package/AvatarGroup/index.d.ts +1 -0
- package/AvatarGroup/index.js +8 -0
- package/AvatarGroup/package.json +6 -0
- package/Backdrop/Backdrop.d.ts +17 -0
- package/Backdrop/Backdrop.js +145 -0
- package/Backdrop/index.d.ts +1 -0
- package/Backdrop/index.js +8 -0
- package/Backdrop/package.json +6 -0
- package/Badge/Badge.d.ts +14 -0
- package/Badge/Badge.js +99 -0
- package/Badge/index.d.ts +1 -0
- package/Badge/index.js +8 -0
- package/Badge/package.json +6 -0
- package/Banner/Banner.d.ts +11 -0
- package/Banner/Banner.js +89 -0
- package/Banner/index.d.ts +1 -0
- package/Banner/index.js +8 -0
- package/Banner/package.json +6 -0
- package/BottomAppBar/BottomAppBar.d.ts +11 -0
- package/BottomAppBar/BottomAppBar.js +202 -0
- package/BottomAppBar/index.d.ts +1 -0
- package/BottomAppBar/index.js +8 -0
- package/BottomAppBar/package.json +6 -0
- package/BottomSheet/BottomSheet.d.ts +6 -0
- package/BottomSheet/BottomSheet.js +63 -0
- package/BottomSheet/index.d.ts +1 -0
- package/BottomSheet/index.js +8 -0
- package/BottomSheet/package.json +6 -0
- package/Box/Box.d.ts +8 -0
- package/Box/Box.js +38 -0
- package/Box/index.d.ts +1 -0
- package/Box/index.js +8 -0
- package/Box/package.json +6 -0
- package/Breadcrumbs/Breadcrumbs.d.ts +10 -0
- package/Breadcrumbs/Breadcrumbs.js +149 -0
- package/Breadcrumbs/index.d.ts +1 -0
- package/Breadcrumbs/index.js +8 -0
- package/Breadcrumbs/package.json +6 -0
- package/BubbleChart/BubbleChart.d.ts +6 -0
- package/BubbleChart/BubbleChart.js +137 -0
- package/BubbleChart/index.d.ts +1 -0
- package/BubbleChart/index.js +8 -0
- package/BubbleChart/package.json +6 -0
- package/BubbleChartItem/BubbleChartItem.d.ts +21 -0
- package/BubbleChartItem/BubbleChartItem.js +165 -0
- package/BubbleChartItem/index.d.ts +1 -0
- package/BubbleChartItem/index.js +8 -0
- package/BubbleChartItem/package.json +6 -0
- package/Button/Button.d.ts +39 -0
- package/Button/Button.js +476 -0
- package/Button/index.d.ts +1 -0
- package/Button/index.js +8 -0
- package/Button/package.json +6 -0
- package/Buttons/Buttons.d.ts +26 -0
- package/Buttons/Buttons.js +302 -0
- package/Buttons/index.d.ts +1 -0
- package/Buttons/index.js +8 -0
- package/Buttons/package.json +6 -0
- package/Calendar/Calendar.d.ts +44 -0
- package/Calendar/Calendar.js +462 -0
- package/Calendar/index.d.ts +1 -0
- package/Calendar/index.js +8 -0
- package/Calendar/package.json +6 -0
- package/CalendarAvailability/CalendarAvailability.d.ts +46 -0
- package/CalendarAvailability/CalendarAvailability.js +400 -0
- package/CalendarAvailability/index.d.ts +1 -0
- package/CalendarAvailability/index.js +8 -0
- package/CalendarAvailability/package.json +6 -0
- package/CalendarMenu/CalendarMenu.d.ts +18 -0
- package/CalendarMenu/CalendarMenu.js +313 -0
- package/CalendarMenu/index.d.ts +1 -0
- package/CalendarMenu/index.js +8 -0
- package/CalendarMenu/package.json +6 -0
- package/CalendarMonth/CalendarMonth.d.ts +51 -0
- package/CalendarMonth/CalendarMonth.js +513 -0
- package/CalendarMonth/index.d.ts +1 -0
- package/CalendarMonth/index.js +8 -0
- package/CalendarMonth/package.json +6 -0
- package/CalendarViews/CalendarViews.d.ts +30 -0
- package/CalendarViews/CalendarViews.js +261 -0
- package/CalendarViews/index.d.ts +1 -0
- package/CalendarViews/index.js +8 -0
- package/CalendarViews/package.json +6 -0
- package/CalendarWeek/CalendarWeek.d.ts +18 -0
- package/CalendarWeek/CalendarWeek.js +392 -0
- package/CalendarWeek/index.d.ts +1 -0
- package/CalendarWeek/index.js +8 -0
- package/CalendarWeek/package.json +6 -0
- package/Card/Card.d.ts +15 -0
- package/Card/Card.js +106 -0
- package/Card/index.d.ts +1 -0
- package/Card/index.js +8 -0
- package/Card/package.json +6 -0
- package/CardButton/CardButton.d.ts +13 -0
- package/CardButton/CardButton.js +62 -0
- package/CardButton/index.d.ts +1 -0
- package/CardButton/index.js +8 -0
- package/CardButton/package.json +6 -0
- package/CardFooter/CardFooter.d.ts +11 -0
- package/CardFooter/CardFooter.js +42 -0
- package/CardFooter/index.d.ts +1 -0
- package/CardFooter/index.js +8 -0
- package/CardFooter/package.json +6 -0
- package/CardHeader/CardHeader.d.ts +11 -0
- package/CardHeader/CardHeader.js +47 -0
- package/CardHeader/index.d.ts +1 -0
- package/CardHeader/index.js +8 -0
- package/CardHeader/package.json +6 -0
- package/CardImage/CardImage.d.ts +14 -0
- package/CardImage/CardImage.js +69 -0
- package/CardImage/index.d.ts +1 -0
- package/CardImage/index.js +8 -0
- package/CardImage/package.json +6 -0
- package/CardMain/CardMain.d.ts +11 -0
- package/CardMain/CardMain.js +42 -0
- package/CardMain/index.d.ts +1 -0
- package/CardMain/index.js +8 -0
- package/CardMain/package.json +6 -0
- package/Carousel/Carousel.d.ts +84 -0
- package/Carousel/Carousel.js +935 -0
- package/Carousel/index.d.ts +1 -0
- package/Carousel/index.js +8 -0
- package/Carousel/package.json +6 -0
- package/Chart/Chart.d.ts +133 -0
- package/Chart/Chart.js +1190 -0
- package/Chart/index.d.ts +1 -0
- package/Chart/index.js +8 -0
- package/Chart/package.json +6 -0
- package/Checkbox/Checkbox.d.ts +17 -0
- package/Checkbox/Checkbox.js +320 -0
- package/Checkbox/index.d.ts +1 -0
- package/Checkbox/index.js +8 -0
- package/Checkbox/package.json +6 -0
- package/Chip/Chip.d.ts +13 -0
- package/Chip/Chip.js +109 -0
- package/Chip/index.d.ts +1 -0
- package/Chip/index.js +8 -0
- package/Chip/package.json +6 -0
- package/Chips/Chips.d.ts +11 -0
- package/Chips/Chips.js +104 -0
- package/Chips/index.d.ts +1 -0
- package/Chips/index.js +8 -0
- package/Chips/package.json +6 -0
- package/ClickListener/ClickListener.d.ts +14 -0
- package/ClickListener/ClickListener.js +94 -0
- package/ClickListener/index.d.ts +1 -0
- package/ClickListener/index.js +8 -0
- package/ClickListener/package.json +6 -0
- package/Clock/Clock.d.ts +35 -0
- package/Clock/Clock.js +428 -0
- package/Clock/index.d.ts +1 -0
- package/Clock/index.js +8 -0
- package/Clock/package.json +6 -0
- package/ColorTextField/ColorTextField.d.ts +12 -0
- package/ColorTextField/ColorTextField.js +180 -0
- package/ColorTextField/index.d.ts +1 -0
- package/ColorTextField/index.js +8 -0
- package/ColorTextField/package.json +6 -0
- package/ColumnChart/ColumnChart.d.ts +6 -0
- package/ColumnChart/ColumnChart.js +49 -0
- package/ColumnChart/index.d.ts +1 -0
- package/ColumnChart/index.js +8 -0
- package/ColumnChart/package.json +6 -0
- package/ColumnChartItem/ColumnChartItem.d.ts +20 -0
- package/ColumnChartItem/ColumnChartItem.js +153 -0
- package/ColumnChartItem/index.d.ts +1 -0
- package/ColumnChartItem/index.js +8 -0
- package/ColumnChartItem/package.json +6 -0
- package/Confirm/Confirm.d.ts +35 -0
- package/Confirm/Confirm.js +133 -0
- package/Confirm/Context.d.ts +2 -0
- package/Confirm/Context.js +8 -0
- package/Confirm/index.d.ts +4 -0
- package/Confirm/index.js +14 -0
- package/Confirm/package.json +6 -0
- package/Confirm/useConfirm.d.ts +2 -0
- package/Confirm/useConfirm.js +12 -0
- package/Container/Container.d.ts +12 -0
- package/Container/Container.js +137 -0
- package/Container/index.d.ts +1 -0
- package/Container/index.js +8 -0
- package/Container/package.json +6 -0
- package/Countdown/Countdown.d.ts +25 -0
- package/Countdown/Countdown.js +265 -0
- package/Countdown/index.d.ts +1 -0
- package/Countdown/index.js +8 -0
- package/Countdown/package.json +6 -0
- package/DatePicker/DatePicker.d.ts +72 -0
- package/DatePicker/DatePicker.js +559 -0
- package/DatePicker/index.d.ts +1 -0
- package/DatePicker/index.js +8 -0
- package/DatePicker/package.json +6 -0
- package/DateRangePicker/DateRangePicker.d.ts +6 -0
- package/DateRangePicker/DateRangePicker.js +40 -0
- package/DateRangePicker/index.d.ts +1 -0
- package/DateRangePicker/index.js +8 -0
- package/DateRangePicker/package.json +6 -0
- package/DateTimePicker/DateTimePicker.d.ts +61 -0
- package/DateTimePicker/DateTimePicker.js +476 -0
- package/DateTimePicker/index.d.ts +1 -0
- package/DateTimePicker/index.js +8 -0
- package/DateTimePicker/package.json +6 -0
- package/DateTimeRangePicker/DateTimeRangePicker.d.ts +6 -0
- package/DateTimeRangePicker/DateTimeRangePicker.js +40 -0
- package/DateTimeRangePicker/index.d.ts +1 -0
- package/DateTimeRangePicker/index.js +8 -0
- package/DateTimeRangePicker/package.json +6 -0
- package/Divider/Divider.d.ts +13 -0
- package/Divider/Divider.js +188 -0
- package/Divider/index.d.ts +1 -0
- package/Divider/index.js +8 -0
- package/Divider/package.json +6 -0
- package/DonutChart/DonutChart.d.ts +6 -0
- package/DonutChart/DonutChart.js +46 -0
- package/DonutChart/index.d.ts +1 -0
- package/DonutChart/index.js +8 -0
- package/DonutChart/package.json +6 -0
- package/DragAndDropList/DragAndDropList.d.ts +16 -0
- package/DragAndDropList/DragAndDropList.js +163 -0
- package/DragAndDropList/index.d.ts +1 -0
- package/DragAndDropList/index.js +8 -0
- package/DragAndDropList/package.json +6 -0
- package/Drawing/Drawing.d.ts +48 -0
- package/Drawing/Drawing.js +532 -0
- package/Drawing/index.d.ts +1 -0
- package/Drawing/index.js +8 -0
- package/Drawing/package.json +6 -0
- package/DropZone/DropZone.d.ts +15 -0
- package/DropZone/DropZone.js +205 -0
- package/DropZone/index.d.ts +1 -0
- package/DropZone/index.js +8 -0
- package/DropZone/package.json +6 -0
- package/Emojis/Emojis.d.ts +22 -0
- package/Emojis/Emojis.js +319 -0
- package/Emojis/emojis_list.d.ts +18 -0
- package/Emojis/emojis_list.js +9251 -0
- package/Emojis/index.d.ts +2 -0
- package/Emojis/index.js +10 -0
- package/Emojis/package.json +6 -0
- package/Expand/Expand.d.ts +12 -0
- package/Expand/Expand.js +156 -0
- package/Expand/index.d.ts +1 -0
- package/Expand/index.js +8 -0
- package/Expand/package.json +6 -0
- package/Fab/Fab.d.ts +6 -0
- package/Fab/Fab.js +29 -0
- package/Fab/index.d.ts +1 -0
- package/Fab/index.js +8 -0
- package/Fab/package.json +6 -0
- package/Fade/Fade.d.ts +6 -0
- package/Fade/Fade.js +106 -0
- package/Fade/index.d.ts +1 -0
- package/Fade/index.js +8 -0
- package/Fade/package.json +6 -0
- package/FileChoose/FileChoose.d.ts +28 -0
- package/FileChoose/FileChoose.js +154 -0
- package/FileChoose/index.d.ts +1 -0
- package/FileChoose/index.js +8 -0
- package/FileChoose/package.json +6 -0
- package/Focus/Focus.d.ts +8 -0
- package/Focus/Focus.js +96 -0
- package/Focus/index.d.ts +1 -0
- package/Focus/index.js +8 -0
- package/Focus/package.json +6 -0
- package/Form/Form.d.ts +25 -0
- package/Form/Form.js +125 -0
- package/Form/index.d.ts +1 -0
- package/Form/index.js +8 -0
- package/Form/package.json +6 -0
- package/FormRow/FormRow.d.ts +20 -0
- package/FormRow/FormRow.js +82 -0
- package/FormRow/index.d.ts +1 -0
- package/FormRow/index.js +8 -0
- package/FormRow/package.json +6 -0
- package/Forms/Forms.d.ts +7 -0
- package/Forms/Forms.js +44 -0
- package/Forms/index.d.ts +1 -0
- package/Forms/index.js +8 -0
- package/Forms/package.json +6 -0
- package/Frame/Frame.d.ts +21 -0
- package/Frame/Frame.js +154 -0
- package/Frame/index.d.ts +1 -0
- package/Frame/index.js +8 -0
- package/Frame/package.json +6 -0
- package/Grid/Grid.d.ts +14 -0
- package/Grid/Grid.js +169 -0
- package/Grid/index.d.ts +1 -0
- package/Grid/index.js +8 -0
- package/Grid/package.json +6 -0
- package/Grow/Grow.d.ts +6 -0
- package/Grow/Grow.js +114 -0
- package/Grow/index.d.ts +1 -0
- package/Grow/index.js +8 -0
- package/Grow/package.json +6 -0
- package/HTMLCanvas/HTMLCanvas.d.ts +43 -0
- package/HTMLCanvas/HTMLCanvas.js +549 -0
- package/HTMLCanvas/index.d.ts +2 -0
- package/HTMLCanvas/index.js +23 -0
- package/HTMLCanvas/package.json +6 -0
- package/IFrame/IFrame.d.ts +9 -0
- package/IFrame/IFrame.js +117 -0
- package/IFrame/index.d.ts +1 -0
- package/IFrame/index.js +8 -0
- package/IFrame/package.json +6 -0
- package/Icon/Icon.d.ts +17 -0
- package/Icon/Icon.js +98 -0
- package/Icon/index.d.ts +2 -0
- package/Icon/index.js +23 -0
- package/Icon/package.json +6 -0
- package/IconButton/IconButton.d.ts +6 -0
- package/IconButton/IconButton.js +40 -0
- package/IconButton/index.d.ts +1 -0
- package/IconButton/index.js +8 -0
- package/IconButton/package.json +6 -0
- package/Image/Image.d.ts +27 -0
- package/Image/Image.js +259 -0
- package/Image/index.d.ts +1 -0
- package/Image/index.js +8 -0
- package/Image/package.json +6 -0
- package/ImageCrop/ImageCrop.d.ts +28 -0
- package/ImageCrop/ImageCrop.js +1076 -0
- package/ImageCrop/index.d.ts +1 -0
- package/ImageCrop/index.js +8 -0
- package/ImageCrop/package.json +6 -0
- package/ImageEdit/ImageEdit.d.ts +68 -0
- package/ImageEdit/ImageEdit.js +789 -0
- package/ImageEdit/index.d.ts +1 -0
- package/ImageEdit/index.js +8 -0
- package/ImageEdit/package.json +6 -0
- package/ImageGallery/ImageGallery.d.ts +30 -0
- package/ImageGallery/ImageGallery.js +483 -0
- package/ImageGallery/index.d.ts +1 -0
- package/ImageGallery/index.js +8 -0
- package/ImageGallery/package.json +6 -0
- package/ImageList/ImageList.d.ts +11 -0
- package/ImageList/ImageList.js +134 -0
- package/ImageList/index.d.ts +1 -0
- package/ImageList/index.js +8 -0
- package/ImageList/package.json +6 -0
- package/ImageListItem/ImageListItem.d.ts +10 -0
- package/ImageListItem/ImageListItem.js +92 -0
- package/ImageListItem/index.d.ts +1 -0
- package/ImageListItem/index.js +8 -0
- package/ImageListItem/package.json +6 -0
- package/ImageListItemBox/ImageListItemBox.d.ts +8 -0
- package/ImageListItemBox/ImageListItemBox.js +53 -0
- package/ImageListItemBox/index.d.ts +1 -0
- package/ImageListItemBox/index.js +8 -0
- package/ImageListItemBox/package.json +6 -0
- package/Info/Info.d.ts +15 -0
- package/Info/Info.js +66 -0
- package/Info/index.d.ts +1 -0
- package/Info/index.js +8 -0
- package/Info/package.json +6 -0
- package/Interaction/Interaction.d.ts +21 -0
- package/Interaction/Interaction.js +349 -0
- package/Interaction/index.d.ts +1 -0
- package/Interaction/index.js +8 -0
- package/Interaction/package.json +6 -0
- package/Keyframes/Context.d.ts +3 -0
- package/Keyframes/Context.js +8 -0
- package/Keyframes/Keyframes.d.ts +32 -0
- package/Keyframes/Keyframes.js +177 -0
- package/Keyframes/index.d.ts +4 -0
- package/Keyframes/index.js +27 -0
- package/Keyframes/package.json +6 -0
- package/Keyframes/useKeyframes.d.ts +1 -0
- package/Keyframes/useKeyframes.js +12 -0
- package/LICENSE +21 -0
- package/Label/Label.d.ts +26 -0
- package/Label/Label.js +155 -0
- package/Label/index.d.ts +1 -0
- package/Label/index.js +8 -0
- package/Label/package.json +6 -0
- package/Labels/Labels.d.ts +22 -0
- package/Labels/Labels.js +102 -0
- package/Labels/index.d.ts +1 -0
- package/Labels/index.js +8 -0
- package/Labels/package.json +6 -0
- package/Line/Line.d.ts +24 -0
- package/Line/Line.js +178 -0
- package/Line/index.d.ts +1 -0
- package/Line/index.js +8 -0
- package/Line/package.json +6 -0
- package/LineChart/LineChart.d.ts +8 -0
- package/LineChart/LineChart.js +43 -0
- package/LineChart/index.d.ts +1 -0
- package/LineChart/index.js +8 -0
- package/LineChart/package.json +6 -0
- package/LineChartItem/LineChartItem.d.ts +21 -0
- package/LineChartItem/LineChartItem.js +188 -0
- package/LineChartItem/index.d.ts +1 -0
- package/LineChartItem/index.js +8 -0
- package/LineChartItem/package.json +6 -0
- package/LinearMeter/LinearMeter.d.ts +53 -0
- package/LinearMeter/LinearMeter.js +401 -0
- package/LinearMeter/index.d.ts +1 -0
- package/LinearMeter/index.js +8 -0
- package/LinearMeter/package.json +6 -0
- package/LinearProgress/LinearProgress.d.ts +15 -0
- package/LinearProgress/LinearProgress.js +274 -0
- package/LinearProgress/index.d.ts +1 -0
- package/LinearProgress/index.js +8 -0
- package/LinearProgress/package.json +6 -0
- package/Link/Link.d.ts +9 -0
- package/Link/Link.js +133 -0
- package/Link/index.d.ts +1 -0
- package/Link/index.js +8 -0
- package/Link/package.json +6 -0
- package/Links/Links.d.ts +32 -0
- package/Links/Links.js +159 -0
- package/Links/index.d.ts +1 -0
- package/Links/index.js +8 -0
- package/Links/package.json +6 -0
- package/List/List.d.ts +17 -0
- package/List/List.js +118 -0
- package/List/index.d.ts +1 -0
- package/List/index.js +8 -0
- package/List/package.json +6 -0
- package/ListItem/ListItem.d.ts +48 -0
- package/ListItem/ListItem.js +363 -0
- package/ListItem/index.d.ts +1 -0
- package/ListItem/index.js +8 -0
- package/ListItem/package.json +6 -0
- package/ListSubheader/ListSubheader.d.ts +6 -0
- package/ListSubheader/ListSubheader.js +48 -0
- package/ListSubheader/index.d.ts +1 -0
- package/ListSubheader/index.js +8 -0
- package/ListSubheader/package.json +6 -0
- package/MainProgress/Context.d.ts +2 -0
- package/MainProgress/Context.js +8 -0
- package/MainProgress/MainProgress.d.ts +33 -0
- package/MainProgress/MainProgress.js +166 -0
- package/MainProgress/index.d.ts +4 -0
- package/MainProgress/index.js +14 -0
- package/MainProgress/package.json +6 -0
- package/MainProgress/useMainProgress.d.ts +2 -0
- package/MainProgress/useMainProgress.js +12 -0
- package/Markdown/Markdown.d.ts +13 -0
- package/Markdown/Markdown.js +730 -0
- package/Markdown/index.d.ts +1 -0
- package/Markdown/index.js +8 -0
- package/Markdown/package.json +6 -0
- package/Masonry/Masonry.d.ts +11 -0
- package/Masonry/Masonry.js +189 -0
- package/Masonry/index.d.ts +1 -0
- package/Masonry/index.js +8 -0
- package/Masonry/package.json +6 -0
- package/Medias/Medias.d.ts +31 -0
- package/Medias/Medias.js +368 -0
- package/Medias/index.d.ts +1 -0
- package/Medias/index.js +8 -0
- package/Medias/package.json +6 -0
- package/Menu/Menu.d.ts +33 -0
- package/Menu/Menu.js +249 -0
- package/Menu/index.d.ts +1 -0
- package/Menu/index.js +8 -0
- package/Menu/package.json +6 -0
- package/MenuDesktop/MenuDesktop.d.ts +42 -0
- package/MenuDesktop/MenuDesktop.js +437 -0
- package/MenuDesktop/index.d.ts +1 -0
- package/MenuDesktop/index.js +8 -0
- package/MenuDesktop/package.json +6 -0
- package/MenuItem/MenuItem.d.ts +26 -0
- package/MenuItem/MenuItem.js +239 -0
- package/MenuItem/index.d.ts +1 -0
- package/MenuItem/index.js +8 -0
- package/MenuItem/package.json +6 -0
- package/Meta/Meta.d.ts +11 -0
- package/Meta/Meta.js +58 -0
- package/Meta/index.d.ts +1 -0
- package/Meta/index.js +8 -0
- package/Meta/package.json +6 -0
- package/Modal/Modal.d.ts +36 -0
- package/Modal/Modal.js +278 -0
- package/Modal/index.d.ts +1 -0
- package/Modal/index.js +8 -0
- package/Modal/package.json +6 -0
- package/ModalFooter/ModalFooter.d.ts +6 -0
- package/ModalFooter/ModalFooter.js +42 -0
- package/ModalFooter/index.d.ts +1 -0
- package/ModalFooter/index.js +8 -0
- package/ModalFooter/package.json +6 -0
- package/ModalHeader/ModalHeader.d.ts +7 -0
- package/ModalHeader/ModalHeader.js +42 -0
- package/ModalHeader/index.d.ts +1 -0
- package/ModalHeader/index.js +8 -0
- package/ModalHeader/package.json +6 -0
- package/ModalIcon/ModalIcon.d.ts +6 -0
- package/ModalIcon/ModalIcon.js +26 -0
- package/ModalIcon/index.d.ts +1 -0
- package/ModalIcon/index.js +8 -0
- package/ModalIcon/package.json +6 -0
- package/ModalMain/ModalMain.d.ts +6 -0
- package/ModalMain/ModalMain.js +49 -0
- package/ModalMain/index.d.ts +1 -0
- package/ModalMain/index.js +8 -0
- package/ModalMain/package.json +6 -0
- package/ModalText/ModalText.d.ts +6 -0
- package/ModalText/ModalText.js +40 -0
- package/ModalText/index.d.ts +1 -0
- package/ModalText/index.js +8 -0
- package/ModalText/package.json +6 -0
- package/ModalTitle/ModalTitle.d.ts +6 -0
- package/ModalTitle/ModalTitle.js +40 -0
- package/ModalTitle/index.d.ts +1 -0
- package/ModalTitle/index.js +8 -0
- package/ModalTitle/package.json +6 -0
- package/MoreOptions/MoreOptions.d.ts +9 -0
- package/MoreOptions/MoreOptions.js +55 -0
- package/MoreOptions/index.d.ts +1 -0
- package/MoreOptions/index.js +8 -0
- package/MoreOptions/package.json +6 -0
- package/Move/Move.d.ts +11 -0
- package/Move/Move.js +147 -0
- package/Move/index.d.ts +1 -0
- package/Move/index.js +8 -0
- package/Move/package.json +6 -0
- package/NavigationBar/NavigationBar.d.ts +13 -0
- package/NavigationBar/NavigationBar.js +114 -0
- package/NavigationBar/index.d.ts +1 -0
- package/NavigationBar/index.js +8 -0
- package/NavigationBar/package.json +6 -0
- package/NavigationDrawer/NavigationDrawer.d.ts +16 -0
- package/NavigationDrawer/NavigationDrawer.js +222 -0
- package/NavigationDrawer/index.d.ts +1 -0
- package/NavigationDrawer/index.js +8 -0
- package/NavigationDrawer/package.json +6 -0
- package/NavigationItem/NavigationItem.d.ts +29 -0
- package/NavigationItem/NavigationItem.js +294 -0
- package/NavigationItem/index.d.ts +1 -0
- package/NavigationItem/index.js +8 -0
- package/NavigationItem/package.json +6 -0
- package/NavigationRail/NavigationRail.d.ts +19 -0
- package/NavigationRail/NavigationRail.js +156 -0
- package/NavigationRail/index.d.ts +1 -0
- package/NavigationRail/index.js +8 -0
- package/NavigationRail/package.json +6 -0
- package/NotFound/NotFound.d.ts +15 -0
- package/NotFound/NotFound.js +68 -0
- package/NotFound/index.d.ts +1 -0
- package/NotFound/index.js +8 -0
- package/NotFound/package.json +6 -0
- package/NumericTextField/NumericTextField.d.ts +16 -0
- package/NumericTextField/NumericTextField.js +217 -0
- package/NumericTextField/index.d.ts +1 -0
- package/NumericTextField/index.js +8 -0
- package/NumericTextField/package.json +6 -0
- package/Page/Page.d.ts +18 -0
- package/Page/Page.js +70 -0
- package/Page/index.d.ts +1 -0
- package/Page/index.js +8 -0
- package/Page/package.json +6 -0
- package/PageTransition/PageTransition.d.ts +12 -0
- package/PageTransition/PageTransition.js +108 -0
- package/PageTransition/index.d.ts +1 -0
- package/PageTransition/index.js +8 -0
- package/PageTransition/package.json +6 -0
- package/Pagination/Pagination.d.ts +29 -0
- package/Pagination/Pagination.js +101 -0
- package/Pagination/index.d.ts +1 -0
- package/Pagination/index.js +8 -0
- package/Pagination/package.json +6 -0
- package/PaginationItem/PaginationItem.d.ts +8 -0
- package/PaginationItem/PaginationItem.js +69 -0
- package/PaginationItem/index.d.ts +1 -0
- package/PaginationItem/index.js +8 -0
- package/PaginationItem/package.json +6 -0
- package/Parallax/Parallax.d.ts +15 -0
- package/Parallax/Parallax.js +150 -0
- package/Parallax/index.d.ts +1 -0
- package/Parallax/index.js +8 -0
- package/Parallax/package.json +6 -0
- package/Path/Path.d.ts +7 -0
- package/Path/Path.js +38 -0
- package/Path/index.d.ts +1 -0
- package/Path/index.js +8 -0
- package/Path/package.json +6 -0
- package/PieChart/PieChart.d.ts +6 -0
- package/PieChart/PieChart.js +276 -0
- package/PieChart/index.d.ts +1 -0
- package/PieChart/index.js +8 -0
- package/PieChart/package.json +6 -0
- package/Placeholder/Placeholder.d.ts +12 -0
- package/Placeholder/Placeholder.js +125 -0
- package/Placeholder/index.d.ts +1 -0
- package/Placeholder/index.js +8 -0
- package/Placeholder/package.json +6 -0
- package/Portal/Portal.d.ts +7 -0
- package/Portal/Portal.js +41 -0
- package/Portal/index.d.ts +1 -0
- package/Portal/index.js +8 -0
- package/Portal/package.json +6 -0
- package/Properties/Properties.d.ts +18 -0
- package/Properties/Properties.js +67 -0
- package/Properties/index.d.ts +1 -0
- package/Properties/index.js +8 -0
- package/Properties/package.json +6 -0
- package/Property/Property.d.ts +18 -0
- package/Property/Property.js +113 -0
- package/Property/index.d.ts +1 -0
- package/Property/index.js +8 -0
- package/Property/package.json +6 -0
- package/README.MD +85 -0
- package/Radio/Radio.d.ts +16 -0
- package/Radio/Radio.js +187 -0
- package/Radio/index.d.ts +1 -0
- package/Radio/index.js +8 -0
- package/Radio/package.json +6 -0
- package/Radios/Radios.d.ts +23 -0
- package/Radios/Radios.js +96 -0
- package/Radios/index.d.ts +1 -0
- package/Radios/index.js +8 -0
- package/Radios/package.json +6 -0
- package/Rating/Rating.d.ts +31 -0
- package/Rating/Rating.js +372 -0
- package/Rating/index.d.ts +1 -0
- package/Rating/index.js +8 -0
- package/Rating/package.json +6 -0
- package/Reset/Reset.d.ts +6 -0
- package/Reset/Reset.js +27 -0
- package/Reset/index.d.ts +1 -0
- package/Reset/index.js +8 -0
- package/Reset/package.json +6 -0
- package/Reveal/Reveal.d.ts +22 -0
- package/Reveal/Reveal.js +92 -0
- package/Reveal/index.d.ts +1 -0
- package/Reveal/index.js +8 -0
- package/Reveal/package.json +6 -0
- package/RichTextEditor/RichTextEditor.d.ts +76 -0
- package/RichTextEditor/RichTextEditor.js +1011 -0
- package/RichTextEditor/index.d.ts +1 -0
- package/RichTextEditor/index.js +8 -0
- package/RichTextEditor/package.json +6 -0
- package/RoundMeter/RoundMeter.d.ts +50 -0
- package/RoundMeter/RoundMeter.js +554 -0
- package/RoundMeter/index.d.ts +1 -0
- package/RoundMeter/index.js +8 -0
- package/RoundMeter/package.json +6 -0
- package/RoundProgress/RoundProgress.d.ts +16 -0
- package/RoundProgress/RoundProgress.js +183 -0
- package/RoundProgress/index.d.ts +1 -0
- package/RoundProgress/index.js +8 -0
- package/RoundProgress/package.json +6 -0
- package/ScatterChart/ScatterChart.d.ts +6 -0
- package/ScatterChart/ScatterChart.js +43 -0
- package/ScatterChart/index.d.ts +1 -0
- package/ScatterChart/index.js +8 -0
- package/ScatterChart/package.json +6 -0
- package/ScatterChartItem/ScatterChartItem.d.ts +19 -0
- package/ScatterChartItem/ScatterChartItem.js +158 -0
- package/ScatterChartItem/index.d.ts +1 -0
- package/ScatterChartItem/index.js +8 -0
- package/ScatterChartItem/package.json +6 -0
- package/ScreenCapture/ScreenCapture.d.ts +30 -0
- package/ScreenCapture/ScreenCapture.js +343 -0
- package/ScreenCapture/index.d.ts +1 -0
- package/ScreenCapture/index.js +8 -0
- package/ScreenCapture/package.json +6 -0
- package/Section/Section.d.ts +33 -0
- package/Section/Section.js +357 -0
- package/Section/index.d.ts +1 -0
- package/Section/index.js +8 -0
- package/Section/package.json +6 -0
- package/SectionAction/SectionAction.d.ts +11 -0
- package/SectionAction/SectionAction.js +63 -0
- package/SectionAction/index.d.ts +1 -0
- package/SectionAction/index.js +8 -0
- package/SectionAction/package.json +6 -0
- package/SectionBoxes/SectionBoxes.d.ts +33 -0
- package/SectionBoxes/SectionBoxes.js +211 -0
- package/SectionBoxes/index.d.ts +1 -0
- package/SectionBoxes/index.js +8 -0
- package/SectionBoxes/package.json +6 -0
- package/SectionCards/SectionCards.d.ts +33 -0
- package/SectionCards/SectionCards.js +221 -0
- package/SectionCards/index.d.ts +1 -0
- package/SectionCards/index.js +8 -0
- package/SectionCards/package.json +6 -0
- package/SectionCarousel/SectionCarousel.d.ts +32 -0
- package/SectionCarousel/SectionCarousel.js +246 -0
- package/SectionCarousel/index.d.ts +1 -0
- package/SectionCarousel/index.js +8 -0
- package/SectionCarousel/package.json +6 -0
- package/SectionContact/SectionContact.d.ts +27 -0
- package/SectionContact/SectionContact.js +124 -0
- package/SectionContact/index.d.ts +1 -0
- package/SectionContact/index.js +8 -0
- package/SectionContact/package.json +6 -0
- package/SectionImageGallery/SectionImageGallery.d.ts +11 -0
- package/SectionImageGallery/SectionImageGallery.js +54 -0
- package/SectionImageGallery/index.d.ts +1 -0
- package/SectionImageGallery/index.js +8 -0
- package/SectionImageGallery/package.json +6 -0
- package/SectionLogos/SectionLogos.d.ts +14 -0
- package/SectionLogos/SectionLogos.js +115 -0
- package/SectionLogos/index.d.ts +1 -0
- package/SectionLogos/index.js +8 -0
- package/SectionLogos/package.json +6 -0
- package/SectionMedia/SectionMedia.d.ts +16 -0
- package/SectionMedia/SectionMedia.js +155 -0
- package/SectionMedia/index.d.ts +1 -0
- package/SectionMedia/index.js +8 -0
- package/SectionMedia/package.json +6 -0
- package/SectionReviews/SectionReviews.d.ts +23 -0
- package/SectionReviews/SectionReviews.js +134 -0
- package/SectionReviews/index.d.ts +1 -0
- package/SectionReviews/index.js +8 -0
- package/SectionReviews/package.json +6 -0
- package/SectionTextMedia/SectionTextMedia.d.ts +28 -0
- package/SectionTextMedia/SectionTextMedia.js +148 -0
- package/SectionTextMedia/index.d.ts +1 -0
- package/SectionTextMedia/index.js +8 -0
- package/SectionTextMedia/package.json +6 -0
- package/SectionTimeline/SectionTimeline.d.ts +21 -0
- package/SectionTimeline/SectionTimeline.js +100 -0
- package/SectionTimeline/index.d.ts +1 -0
- package/SectionTimeline/index.js +8 -0
- package/SectionTimeline/package.json +6 -0
- package/SectionWatch/SectionWatch.d.ts +14 -0
- package/SectionWatch/SectionWatch.js +56 -0
- package/SectionWatch/index.d.ts +1 -0
- package/SectionWatch/index.js +8 -0
- package/SectionWatch/package.json +6 -0
- package/Select/Select.d.ts +29 -0
- package/Select/Select.js +413 -0
- package/Select/index.d.ts +1 -0
- package/Select/index.js +8 -0
- package/Select/package.json +6 -0
- package/Share/Share.d.ts +37 -0
- package/Share/Share.js +338 -0
- package/Share/index.d.ts +1 -0
- package/Share/index.js +8 -0
- package/Share/package.json +6 -0
- package/Slide/Slide.d.ts +12 -0
- package/Slide/Slide.js +146 -0
- package/Slide/index.d.ts +1 -0
- package/Slide/index.js +8 -0
- package/Slide/package.json +6 -0
- package/Slider/Slider.d.ts +36 -0
- package/Slider/Slider.js +851 -0
- package/Slider/index.d.ts +1 -0
- package/Slider/index.js +8 -0
- package/Slider/package.json +6 -0
- package/SmartTextField/SmartTextField.d.ts +19 -0
- package/SmartTextField/SmartTextField.js +796 -0
- package/SmartTextField/index.d.ts +1 -0
- package/SmartTextField/index.js +8 -0
- package/SmartTextField/package.json +6 -0
- package/Snackbar/Snackbar.d.ts +26 -0
- package/Snackbar/Snackbar.js +191 -0
- package/Snackbar/index.d.ts +1 -0
- package/Snackbar/index.js +8 -0
- package/Snackbar/package.json +6 -0
- package/Snackbars/Context.d.ts +7 -0
- package/Snackbars/Context.js +8 -0
- package/Snackbars/Snackbars.d.ts +15 -0
- package/Snackbars/Snackbars.js +216 -0
- package/Snackbars/index.d.ts +4 -0
- package/Snackbars/index.js +14 -0
- package/Snackbars/package.json +6 -0
- package/Snackbars/useSnackbars.d.ts +2 -0
- package/Snackbars/useSnackbars.js +12 -0
- package/Space/Space.d.ts +36 -0
- package/Space/Space.js +1003 -0
- package/Space/index.d.ts +2 -0
- package/Space/index.js +23 -0
- package/Space/package.json +6 -0
- package/SpeechToText/SpeechToText.d.ts +29 -0
- package/SpeechToText/SpeechToText.js +177 -0
- package/SpeechToText/index.d.ts +1 -0
- package/SpeechToText/index.js +8 -0
- package/SpeechToText/package.json +6 -0
- package/SpeedDial/SpeedDial.d.ts +36 -0
- package/SpeedDial/SpeedDial.js +413 -0
- package/SpeedDial/index.d.ts +1 -0
- package/SpeedDial/index.js +8 -0
- package/SpeedDial/package.json +6 -0
- package/SpeedDialItem/SpeedDialItem.d.ts +22 -0
- package/SpeedDialItem/SpeedDialItem.js +69 -0
- package/SpeedDialItem/index.d.ts +1 -0
- package/SpeedDialItem/index.js +8 -0
- package/SpeedDialItem/package.json +6 -0
- package/SpyScroll/SpyScroll.d.ts +13 -0
- package/SpyScroll/SpyScroll.js +147 -0
- package/SpyScroll/index.d.ts +1 -0
- package/SpyScroll/index.js +8 -0
- package/SpyScroll/package.json +6 -0
- package/Step/Step.d.ts +27 -0
- package/Step/Step.js +131 -0
- package/Step/index.d.ts +1 -0
- package/Step/index.js +8 -0
- package/Step/package.json +6 -0
- package/Stepper/Stepper.d.ts +21 -0
- package/Stepper/Stepper.js +143 -0
- package/Stepper/index.d.ts +1 -0
- package/Stepper/index.js +8 -0
- package/Stepper/package.json +6 -0
- package/Surface/Surface.d.ts +15 -0
- package/Surface/Surface.js +809 -0
- package/Surface/index.d.ts +1 -0
- package/Surface/index.js +8 -0
- package/Surface/package.json +6 -0
- package/Switch/Switch.d.ts +18 -0
- package/Switch/Switch.js +544 -0
- package/Switch/index.d.ts +1 -0
- package/Switch/index.js +8 -0
- package/Switch/package.json +6 -0
- package/Tab/Tab.d.ts +22 -0
- package/Tab/Tab.js +149 -0
- package/Tab/index.d.ts +1 -0
- package/Tab/index.js +8 -0
- package/Tab/package.json +6 -0
- package/Table/Table.d.ts +13 -0
- package/Table/Table.js +81 -0
- package/Table/index.d.ts +1 -0
- package/Table/index.js +8 -0
- package/Table/package.json +6 -0
- package/TableBody/TableBody.d.ts +9 -0
- package/TableBody/TableBody.js +68 -0
- package/TableBody/index.d.ts +1 -0
- package/TableBody/index.js +8 -0
- package/TableBody/package.json +6 -0
- package/TableCell/TableCell.d.ts +27 -0
- package/TableCell/TableCell.js +226 -0
- package/TableCell/index.d.ts +1 -0
- package/TableCell/index.js +8 -0
- package/TableCell/package.json +6 -0
- package/TableFooter/TableFooter.d.ts +8 -0
- package/TableFooter/TableFooter.js +51 -0
- package/TableFooter/index.d.ts +1 -0
- package/TableFooter/index.js +8 -0
- package/TableFooter/package.json +6 -0
- package/TableHead/TableHead.d.ts +13 -0
- package/TableHead/TableHead.js +124 -0
- package/TableHead/index.d.ts +1 -0
- package/TableHead/index.js +8 -0
- package/TableHead/package.json +6 -0
- package/TableHeader/TableHeader.d.ts +8 -0
- package/TableHeader/TableHeader.js +53 -0
- package/TableHeader/index.d.ts +1 -0
- package/TableHeader/index.js +8 -0
- package/TableHeader/package.json +6 -0
- package/TablePagination/TablePagination.d.ts +29 -0
- package/TablePagination/TablePagination.js +100 -0
- package/TablePagination/index.d.ts +1 -0
- package/TablePagination/index.js +8 -0
- package/TablePagination/package.json +6 -0
- package/TableRow/TableRow.d.ts +11 -0
- package/TableRow/TableRow.js +68 -0
- package/TableRow/index.d.ts +1 -0
- package/TableRow/index.js +8 -0
- package/TableRow/package.json +6 -0
- package/Tabs/Tabs.d.ts +28 -0
- package/Tabs/Tabs.js +387 -0
- package/Tabs/index.d.ts +1 -0
- package/Tabs/index.js +8 -0
- package/Tabs/package.json +6 -0
- package/Text/Text.d.ts +16 -0
- package/Text/Text.js +118 -0
- package/Text/index.d.ts +1 -0
- package/Text/index.js +8 -0
- package/Text/package.json +6 -0
- package/TextField/TextField.d.ts +64 -0
- package/TextField/TextField.js +850 -0
- package/TextField/index.d.ts +1 -0
- package/TextField/index.js +8 -0
- package/TextField/package.json +6 -0
- package/TextToSpeech/TextToSpeech.d.ts +28 -0
- package/TextToSpeech/TextToSpeech.js +157 -0
- package/TextToSpeech/index.d.ts +1 -0
- package/TextToSpeech/index.js +8 -0
- package/TextToSpeech/package.json +6 -0
- package/TimePicker/TimePicker.d.ts +72 -0
- package/TimePicker/TimePicker.js +736 -0
- package/TimePicker/index.d.ts +1 -0
- package/TimePicker/index.js +8 -0
- package/TimePicker/package.json +6 -0
- package/TimeRangePicker/TimeRangePicker.d.ts +6 -0
- package/TimeRangePicker/TimeRangePicker.js +40 -0
- package/TimeRangePicker/index.d.ts +1 -0
- package/TimeRangePicker/index.js +8 -0
- package/TimeRangePicker/package.json +6 -0
- package/Timeline/Timeline.d.ts +7 -0
- package/Timeline/Timeline.js +43 -0
- package/Timeline/index.d.ts +1 -0
- package/Timeline/index.js +8 -0
- package/Timeline/package.json +6 -0
- package/TimelineItem/TimelineItem.d.ts +14 -0
- package/TimelineItem/TimelineItem.js +152 -0
- package/TimelineItem/index.d.ts +1 -0
- package/TimelineItem/index.js +8 -0
- package/TimelineItem/package.json +6 -0
- package/Timer/Timer.d.ts +23 -0
- package/Timer/Timer.js +208 -0
- package/Timer/index.d.ts +1 -0
- package/Timer/index.js +8 -0
- package/Timer/package.json +6 -0
- package/ToggleButton/ToggleButton.d.ts +6 -0
- package/ToggleButton/ToggleButton.js +61 -0
- package/ToggleButton/index.d.ts +1 -0
- package/ToggleButton/index.js +8 -0
- package/ToggleButton/package.json +6 -0
- package/ToggleButtons/ToggleButtons.d.ts +6 -0
- package/ToggleButtons/ToggleButtons.js +40 -0
- package/ToggleButtons/index.d.ts +1 -0
- package/ToggleButtons/index.js +8 -0
- package/ToggleButtons/package.json +6 -0
- package/Tooltip/Tooltip.d.ts +46 -0
- package/Tooltip/Tooltip.js +439 -0
- package/Tooltip/index.d.ts +1 -0
- package/Tooltip/index.js +8 -0
- package/Tooltip/package.json +6 -0
- package/TopAppBar/TopAppBar.d.ts +14 -0
- package/TopAppBar/TopAppBar.js +200 -0
- package/TopAppBar/index.d.ts +1 -0
- package/TopAppBar/index.js +8 -0
- package/TopAppBar/package.json +6 -0
- package/Transition/Context.d.ts +3 -0
- package/Transition/Context.js +8 -0
- package/Transition/Transition.d.ts +46 -0
- package/Transition/Transition.js +347 -0
- package/Transition/index.d.ts +4 -0
- package/Transition/index.js +27 -0
- package/Transition/package.json +6 -0
- package/Transition/useTransition.d.ts +1 -0
- package/Transition/useTransition.js +12 -0
- package/Transitions/Transitions.d.ts +12 -0
- package/Transitions/Transitions.js +186 -0
- package/Transitions/index.d.ts +1 -0
- package/Transitions/index.js +8 -0
- package/Transitions/package.json +6 -0
- package/Tree/Tree.d.ts +38 -0
- package/Tree/Tree.js +322 -0
- package/Tree/index.d.ts +1 -0
- package/Tree/index.js +8 -0
- package/Tree/package.json +6 -0
- package/Type/Type.d.ts +18 -0
- package/Type/Type.js +154 -0
- package/Type/index.d.ts +1 -0
- package/Type/index.js +8 -0
- package/Type/package.json +6 -0
- package/VideoPlayer/VideoPlayer.d.ts +61 -0
- package/VideoPlayer/VideoPlayer.js +670 -0
- package/VideoPlayer/index.d.ts +1 -0
- package/VideoPlayer/index.js +8 -0
- package/VideoPlayer/package.json +6 -0
- package/ViewSplit/ViewSplit.d.ts +24 -0
- package/ViewSplit/ViewSplit.js +407 -0
- package/ViewSplit/index.d.ts +1 -0
- package/ViewSplit/index.js +8 -0
- package/ViewSplit/package.json +6 -0
- package/Watch/Watch.d.ts +23 -0
- package/Watch/Watch.js +295 -0
- package/Watch/index.d.ts +1 -0
- package/Watch/index.js +8 -0
- package/Watch/package.json +6 -0
- package/Weather/Weather.d.ts +27 -0
- package/Weather/Weather.js +254 -0
- package/Weather/index.d.ts +1 -0
- package/Weather/index.js +8 -0
- package/Weather/package.json +6 -0
- package/Widgets/Context.d.ts +2 -0
- package/Widgets/Context.js +8 -0
- package/Widgets/Widgets.d.ts +24 -0
- package/Widgets/Widgets.js +176 -0
- package/Widgets/index.d.ts +4 -0
- package/Widgets/index.js +14 -0
- package/Widgets/package.json +6 -0
- package/Widgets/useWidgets.d.ts +2 -0
- package/Widgets/useWidgets.js +12 -0
- package/WindowSplit/WindowSplit.d.ts +29 -0
- package/WindowSplit/WindowSplit.js +346 -0
- package/WindowSplit/index.d.ts +1 -0
- package/WindowSplit/index.js +8 -0
- package/WindowSplit/package.json +6 -0
- package/Zoom/Zoom.d.ts +6 -0
- package/Zoom/Zoom.js +104 -0
- package/Zoom/index.d.ts +1 -0
- package/Zoom/index.js +8 -0
- package/Zoom/package.json +6 -0
- package/esm/Accordion/Accordion.js +321 -0
- package/esm/Accordion/index.js +1 -0
- package/esm/AdvancedTextField/AdvancedTextField.js +158 -0
- package/esm/AdvancedTextField/index.js +1 -0
- package/esm/Append/Append.js +495 -0
- package/esm/Append/index.js +1 -0
- package/esm/AreaChart/AreaChart.js +40 -0
- package/esm/AreaChart/index.js +1 -0
- package/esm/AreaChartItem/AreaChartItem.js +315 -0
- package/esm/AreaChartItem/index.js +1 -0
- package/esm/AudioPlayer/AudioPlayer.js +678 -0
- package/esm/AudioPlayer/index.js +1 -0
- package/esm/AudioRecorder/AudioRecorder.js +311 -0
- package/esm/AudioRecorder/index.js +1 -0
- package/esm/AutoComplete/AutoComplete.js +670 -0
- package/esm/AutoComplete/index.js +1 -0
- package/esm/AutoCompleteCountry/AutoCompleteCountry.js +80 -0
- package/esm/AutoCompleteCountry/index.js +1 -0
- package/esm/AutoCompleteCurrency/AutoCompleteCurrency.js +61 -0
- package/esm/AutoCompleteCurrency/index.js +1 -0
- package/esm/AutoCompleteGooglePlaces/AutoCompleteGooglePlaces.js +107 -0
- package/esm/AutoCompleteGooglePlaces/index.js +1 -0
- package/esm/Avatar/Avatar.js +103 -0
- package/esm/Avatar/index.js +1 -0
- package/esm/AvatarGroup/AvatarGroup.js +89 -0
- package/esm/AvatarGroup/index.js +1 -0
- package/esm/Backdrop/Backdrop.js +145 -0
- package/esm/Backdrop/index.js +1 -0
- package/esm/Badge/Badge.js +105 -0
- package/esm/Badge/index.js +1 -0
- package/esm/Banner/Banner.js +111 -0
- package/esm/Banner/index.js +1 -0
- package/esm/BottomAppBar/BottomAppBar.js +216 -0
- package/esm/BottomAppBar/index.js +1 -0
- package/esm/BottomSheet/BottomSheet.js +57 -0
- package/esm/BottomSheet/index.js +1 -0
- package/esm/Box/Box.js +36 -0
- package/esm/Box/index.js +1 -0
- package/esm/Breadcrumbs/Breadcrumbs.js +155 -0
- package/esm/Breadcrumbs/index.js +1 -0
- package/esm/BubbleChart/BubbleChart.js +231 -0
- package/esm/BubbleChart/index.js +1 -0
- package/esm/BubbleChartItem/BubbleChartItem.js +210 -0
- package/esm/BubbleChartItem/index.js +1 -0
- package/esm/Button/Button.js +473 -0
- package/esm/Button/index.js +1 -0
- package/esm/Buttons/Buttons.js +356 -0
- package/esm/Buttons/index.js +1 -0
- package/esm/Calendar/Calendar.js +667 -0
- package/esm/Calendar/index.js +1 -0
- package/esm/CalendarAvailability/CalendarAvailability.js +640 -0
- package/esm/CalendarAvailability/index.js +1 -0
- package/esm/CalendarMenu/CalendarMenu.js +388 -0
- package/esm/CalendarMenu/index.js +1 -0
- package/esm/CalendarMonth/CalendarMonth.js +520 -0
- package/esm/CalendarMonth/index.js +1 -0
- package/esm/CalendarViews/CalendarViews.js +360 -0
- package/esm/CalendarViews/index.js +1 -0
- package/esm/CalendarWeek/CalendarWeek.js +486 -0
- package/esm/CalendarWeek/index.js +1 -0
- package/esm/Card/Card.js +119 -0
- package/esm/Card/index.js +1 -0
- package/esm/CardButton/CardButton.js +69 -0
- package/esm/CardButton/index.js +1 -0
- package/esm/CardFooter/CardFooter.js +48 -0
- package/esm/CardFooter/index.js +1 -0
- package/esm/CardHeader/CardHeader.js +51 -0
- package/esm/CardHeader/index.js +1 -0
- package/esm/CardImage/CardImage.js +72 -0
- package/esm/CardImage/index.js +1 -0
- package/esm/CardMain/CardMain.js +43 -0
- package/esm/CardMain/index.js +1 -0
- package/esm/Carousel/Carousel.js +1008 -0
- package/esm/Carousel/index.js +1 -0
- package/esm/Chart/Chart.js +1295 -0
- package/esm/Chart/index.js +1 -0
- package/esm/Checkbox/Checkbox.js +334 -0
- package/esm/Checkbox/index.js +1 -0
- package/esm/Chip/Chip.js +125 -0
- package/esm/Chip/index.js +1 -0
- package/esm/Chips/Chips.js +115 -0
- package/esm/Chips/index.js +1 -0
- package/esm/ClickListener/ClickListener.js +77 -0
- package/esm/ClickListener/index.js +1 -0
- package/esm/Clock/Clock.js +466 -0
- package/esm/Clock/index.js +1 -0
- package/esm/ColorTextField/ColorTextField.js +214 -0
- package/esm/ColorTextField/index.js +1 -0
- package/esm/ColumnChart/ColumnChart.js +50 -0
- package/esm/ColumnChart/index.js +1 -0
- package/esm/ColumnChartItem/ColumnChartItem.js +190 -0
- package/esm/ColumnChartItem/index.js +1 -0
- package/esm/Confirm/Confirm.js +155 -0
- package/esm/Confirm/Context.js +3 -0
- package/esm/Confirm/index.js +4 -0
- package/esm/Confirm/useConfirm.js +6 -0
- package/esm/Container/Container.js +145 -0
- package/esm/Container/index.js +1 -0
- package/esm/Countdown/Countdown.js +376 -0
- package/esm/Countdown/index.js +1 -0
- package/esm/DatePicker/DatePicker.js +751 -0
- package/esm/DatePicker/index.js +1 -0
- package/esm/DateRangePicker/DateRangePicker.js +34 -0
- package/esm/DateRangePicker/index.js +1 -0
- package/esm/DateTimePicker/DateTimePicker.js +645 -0
- package/esm/DateTimePicker/index.js +1 -0
- package/esm/DateTimeRangePicker/DateTimeRangePicker.js +34 -0
- package/esm/DateTimeRangePicker/index.js +1 -0
- package/esm/Divider/Divider.js +183 -0
- package/esm/Divider/index.js +1 -0
- package/esm/DonutChart/DonutChart.js +40 -0
- package/esm/DonutChart/index.js +1 -0
- package/esm/DragAndDropList/DragAndDropList.js +153 -0
- package/esm/DragAndDropList/index.js +1 -0
- package/esm/Drawing/Drawing.js +803 -0
- package/esm/Drawing/index.js +1 -0
- package/esm/DropZone/DropZone.js +215 -0
- package/esm/DropZone/index.js +1 -0
- package/esm/Emojis/Emojis.js +368 -0
- package/esm/Emojis/emojis_list.js +7274 -0
- package/esm/Emojis/index.js +2 -0
- package/esm/Expand/Expand.js +196 -0
- package/esm/Expand/index.js +1 -0
- package/esm/Fab/Fab.js +36 -0
- package/esm/Fab/index.js +1 -0
- package/esm/Fade/Fade.js +125 -0
- package/esm/Fade/index.js +1 -0
- package/esm/FileChoose/FileChoose.js +197 -0
- package/esm/FileChoose/index.js +1 -0
- package/esm/Focus/Focus.js +84 -0
- package/esm/Focus/index.js +1 -0
- package/esm/Form/Form.js +180 -0
- package/esm/Form/index.js +1 -0
- package/esm/FormRow/FormRow.js +111 -0
- package/esm/FormRow/index.js +1 -0
- package/esm/Forms/Forms.js +45 -0
- package/esm/Forms/index.js +1 -0
- package/esm/Frame/Frame.js +194 -0
- package/esm/Frame/index.js +1 -0
- package/esm/Grid/Grid.js +218 -0
- package/esm/Grid/index.js +1 -0
- package/esm/Grow/Grow.js +131 -0
- package/esm/Grow/index.js +1 -0
- package/esm/HTMLCanvas/HTMLCanvas.js +723 -0
- package/esm/HTMLCanvas/index.js +2 -0
- package/esm/IFrame/IFrame.js +120 -0
- package/esm/IFrame/index.js +1 -0
- package/esm/Icon/Icon.js +104 -0
- package/esm/Icon/index.js +2 -0
- package/esm/IconButton/IconButton.js +39 -0
- package/esm/IconButton/index.js +1 -0
- package/esm/Image/Image.js +273 -0
- package/esm/Image/index.js +1 -0
- package/esm/ImageCrop/ImageCrop.js +1076 -0
- package/esm/ImageCrop/index.js +1 -0
- package/esm/ImageEdit/ImageEdit.js +1049 -0
- package/esm/ImageEdit/index.js +1 -0
- package/esm/ImageGallery/ImageGallery.js +500 -0
- package/esm/ImageGallery/index.js +1 -0
- package/esm/ImageList/ImageList.js +131 -0
- package/esm/ImageList/index.js +1 -0
- package/esm/ImageListItem/ImageListItem.js +93 -0
- package/esm/ImageListItem/index.js +1 -0
- package/esm/ImageListItemBox/ImageListItemBox.js +51 -0
- package/esm/ImageListItemBox/index.js +1 -0
- package/esm/Info/Info.js +77 -0
- package/esm/Info/index.js +1 -0
- package/esm/Interaction/Interaction.js +402 -0
- package/esm/Interaction/index.js +1 -0
- package/esm/Keyframes/Context.js +3 -0
- package/esm/Keyframes/Keyframes.js +183 -0
- package/esm/Keyframes/index.js +4 -0
- package/esm/Keyframes/useKeyframes.js +6 -0
- package/esm/Label/Label.js +161 -0
- package/esm/Label/index.js +1 -0
- package/esm/Labels/Labels.js +114 -0
- package/esm/Labels/index.js +1 -0
- package/esm/Line/Line.js +287 -0
- package/esm/Line/index.js +1 -0
- package/esm/LineChart/LineChart.js +44 -0
- package/esm/LineChart/index.js +1 -0
- package/esm/LineChartItem/LineChartItem.js +228 -0
- package/esm/LineChartItem/index.js +1 -0
- package/esm/LinearMeter/LinearMeter.js +465 -0
- package/esm/LinearMeter/index.js +1 -0
- package/esm/LinearProgress/LinearProgress.js +333 -0
- package/esm/LinearProgress/index.js +1 -0
- package/esm/Link/Link.js +175 -0
- package/esm/Link/index.js +1 -0
- package/esm/Links/Links.js +241 -0
- package/esm/Links/index.js +1 -0
- package/esm/List/List.js +137 -0
- package/esm/List/index.js +1 -0
- package/esm/ListItem/ListItem.js +369 -0
- package/esm/ListItem/index.js +1 -0
- package/esm/ListSubheader/ListSubheader.js +43 -0
- package/esm/ListSubheader/index.js +1 -0
- package/esm/MainProgress/Context.js +3 -0
- package/esm/MainProgress/MainProgress.js +182 -0
- package/esm/MainProgress/index.js +4 -0
- package/esm/MainProgress/useMainProgress.js +6 -0
- package/esm/Markdown/Markdown.js +795 -0
- package/esm/Markdown/index.js +1 -0
- package/esm/Masonry/Masonry.js +202 -0
- package/esm/Masonry/index.js +1 -0
- package/esm/Medias/Medias.js +379 -0
- package/esm/Medias/index.js +1 -0
- package/esm/Menu/Menu.js +251 -0
- package/esm/Menu/index.js +1 -0
- package/esm/MenuDesktop/MenuDesktop.js +475 -0
- package/esm/MenuDesktop/index.js +1 -0
- package/esm/MenuItem/MenuItem.js +265 -0
- package/esm/MenuItem/index.js +1 -0
- package/esm/Meta/Meta.js +65 -0
- package/esm/Meta/index.js +1 -0
- package/esm/Modal/Modal.js +312 -0
- package/esm/Modal/index.js +1 -0
- package/esm/ModalFooter/ModalFooter.js +40 -0
- package/esm/ModalFooter/index.js +1 -0
- package/esm/ModalHeader/ModalHeader.js +41 -0
- package/esm/ModalHeader/index.js +1 -0
- package/esm/ModalIcon/ModalIcon.js +22 -0
- package/esm/ModalIcon/index.js +1 -0
- package/esm/ModalMain/ModalMain.js +45 -0
- package/esm/ModalMain/index.js +1 -0
- package/esm/ModalText/ModalText.js +37 -0
- package/esm/ModalText/index.js +1 -0
- package/esm/ModalTitle/ModalTitle.js +37 -0
- package/esm/ModalTitle/index.js +1 -0
- package/esm/MoreOptions/MoreOptions.js +59 -0
- package/esm/MoreOptions/index.js +1 -0
- package/esm/Move/Move.js +161 -0
- package/esm/Move/index.js +1 -0
- package/esm/NavigationBar/NavigationBar.js +118 -0
- package/esm/NavigationBar/index.js +1 -0
- package/esm/NavigationDrawer/NavigationDrawer.js +235 -0
- package/esm/NavigationDrawer/index.js +1 -0
- package/esm/NavigationItem/NavigationItem.js +297 -0
- package/esm/NavigationItem/index.js +1 -0
- package/esm/NavigationRail/NavigationRail.js +165 -0
- package/esm/NavigationRail/index.js +1 -0
- package/esm/NotFound/NotFound.js +71 -0
- package/esm/NotFound/index.js +1 -0
- package/esm/NumericTextField/NumericTextField.js +205 -0
- package/esm/NumericTextField/index.js +1 -0
- package/esm/Page/Page.js +112 -0
- package/esm/Page/index.js +1 -0
- package/esm/PageTransition/PageTransition.js +105 -0
- package/esm/PageTransition/index.js +1 -0
- package/esm/Pagination/Pagination.js +134 -0
- package/esm/Pagination/index.js +1 -0
- package/esm/PaginationItem/PaginationItem.js +73 -0
- package/esm/PaginationItem/index.js +1 -0
- package/esm/Parallax/Parallax.js +133 -0
- package/esm/Parallax/index.js +1 -0
- package/esm/Path/Path.js +33 -0
- package/esm/Path/index.js +1 -0
- package/esm/PieChart/PieChart.js +364 -0
- package/esm/PieChart/index.js +1 -0
- package/esm/Placeholder/Placeholder.js +120 -0
- package/esm/Placeholder/index.js +1 -0
- package/esm/Portal/Portal.js +30 -0
- package/esm/Portal/index.js +1 -0
- package/esm/Properties/Properties.js +71 -0
- package/esm/Properties/index.js +1 -0
- package/esm/Property/Property.js +109 -0
- package/esm/Property/index.js +1 -0
- package/esm/Radio/Radio.js +204 -0
- package/esm/Radio/index.js +1 -0
- package/esm/Radios/Radios.js +112 -0
- package/esm/Radios/index.js +1 -0
- package/esm/Rating/Rating.js +353 -0
- package/esm/Rating/index.js +1 -0
- package/esm/Reset/Reset.js +15 -0
- package/esm/Reset/index.js +1 -0
- package/esm/Reveal/Reveal.js +87 -0
- package/esm/Reveal/index.js +1 -0
- package/esm/RichTextEditor/RichTextEditor.js +1748 -0
- package/esm/RichTextEditor/index.js +1 -0
- package/esm/RoundMeter/RoundMeter.js +634 -0
- package/esm/RoundMeter/index.js +1 -0
- package/esm/RoundProgress/RoundProgress.js +232 -0
- package/esm/RoundProgress/index.js +1 -0
- package/esm/ScatterChart/ScatterChart.js +40 -0
- package/esm/ScatterChart/index.js +1 -0
- package/esm/ScatterChartItem/ScatterChartItem.js +197 -0
- package/esm/ScatterChartItem/index.js +1 -0
- package/esm/ScreenCapture/ScreenCapture.js +402 -0
- package/esm/ScreenCapture/index.js +1 -0
- package/esm/Section/Section.js +399 -0
- package/esm/Section/index.js +1 -0
- package/esm/SectionAction/SectionAction.js +58 -0
- package/esm/SectionAction/index.js +1 -0
- package/esm/SectionBoxes/SectionBoxes.js +218 -0
- package/esm/SectionBoxes/index.js +1 -0
- package/esm/SectionCards/SectionCards.js +235 -0
- package/esm/SectionCards/index.js +1 -0
- package/esm/SectionCarousel/SectionCarousel.js +260 -0
- package/esm/SectionCarousel/index.js +1 -0
- package/esm/SectionContact/SectionContact.js +160 -0
- package/esm/SectionContact/index.js +1 -0
- package/esm/SectionImageGallery/SectionImageGallery.js +51 -0
- package/esm/SectionImageGallery/index.js +1 -0
- package/esm/SectionLogos/SectionLogos.js +110 -0
- package/esm/SectionLogos/index.js +1 -0
- package/esm/SectionMedia/SectionMedia.js +142 -0
- package/esm/SectionMedia/index.js +1 -0
- package/esm/SectionReviews/SectionReviews.js +145 -0
- package/esm/SectionReviews/index.js +1 -0
- package/esm/SectionTextMedia/SectionTextMedia.js +158 -0
- package/esm/SectionTextMedia/index.js +1 -0
- package/esm/SectionTimeline/SectionTimeline.js +106 -0
- package/esm/SectionTimeline/index.js +1 -0
- package/esm/SectionWatch/SectionWatch.js +52 -0
- package/esm/SectionWatch/index.js +1 -0
- package/esm/Select/Select.js +470 -0
- package/esm/Select/index.js +1 -0
- package/esm/Share/Share.js +442 -0
- package/esm/Share/index.js +1 -0
- package/esm/Slide/Slide.js +179 -0
- package/esm/Slide/index.js +1 -0
- package/esm/Slider/Slider.js +916 -0
- package/esm/Slider/index.js +1 -0
- package/esm/SmartTextField/SmartTextField.js +958 -0
- package/esm/SmartTextField/index.js +1 -0
- package/esm/Snackbar/Snackbar.js +208 -0
- package/esm/Snackbar/index.js +1 -0
- package/esm/Snackbars/Context.js +3 -0
- package/esm/Snackbars/Snackbars.js +213 -0
- package/esm/Snackbars/index.js +4 -0
- package/esm/Snackbars/useSnackbars.js +6 -0
- package/esm/Space/Space.js +1634 -0
- package/esm/Space/index.js +2 -0
- package/esm/SpeechToText/SpeechToText.js +190 -0
- package/esm/SpeechToText/index.js +1 -0
- package/esm/SpeedDial/SpeedDial.js +422 -0
- package/esm/SpeedDial/index.js +1 -0
- package/esm/SpeedDialItem/SpeedDialItem.js +79 -0
- package/esm/SpeedDialItem/index.js +1 -0
- package/esm/SpyScroll/SpyScroll.js +147 -0
- package/esm/SpyScroll/index.js +1 -0
- package/esm/Step/Step.js +157 -0
- package/esm/Step/index.js +1 -0
- package/esm/Stepper/Stepper.js +147 -0
- package/esm/Stepper/index.js +1 -0
- package/esm/Surface/Surface.js +761 -0
- package/esm/Surface/index.js +1 -0
- package/esm/Switch/Switch.js +685 -0
- package/esm/Switch/index.js +1 -0
- package/esm/Tab/Tab.js +155 -0
- package/esm/Tab/index.js +1 -0
- package/esm/Table/Table.js +88 -0
- package/esm/Table/index.js +1 -0
- package/esm/TableBody/TableBody.js +68 -0
- package/esm/TableBody/index.js +1 -0
- package/esm/TableCell/TableCell.js +241 -0
- package/esm/TableCell/index.js +1 -0
- package/esm/TableFooter/TableFooter.js +50 -0
- package/esm/TableFooter/index.js +1 -0
- package/esm/TableHead/TableHead.js +124 -0
- package/esm/TableHead/index.js +1 -0
- package/esm/TableHeader/TableHeader.js +52 -0
- package/esm/TableHeader/index.js +1 -0
- package/esm/TablePagination/TablePagination.js +148 -0
- package/esm/TablePagination/index.js +1 -0
- package/esm/TableRow/TableRow.js +68 -0
- package/esm/TableRow/index.js +1 -0
- package/esm/Tabs/Tabs.js +408 -0
- package/esm/Tabs/index.js +1 -0
- package/esm/Text/Text.js +120 -0
- package/esm/Text/index.js +1 -0
- package/esm/TextField/TextField.js +870 -0
- package/esm/TextField/index.js +1 -0
- package/esm/TextToSpeech/TextToSpeech.js +161 -0
- package/esm/TextToSpeech/index.js +1 -0
- package/esm/TimePicker/TimePicker.js +957 -0
- package/esm/TimePicker/index.js +1 -0
- package/esm/TimeRangePicker/TimeRangePicker.js +34 -0
- package/esm/TimeRangePicker/index.js +1 -0
- package/esm/Timeline/Timeline.js +42 -0
- package/esm/Timeline/index.js +1 -0
- package/esm/TimelineItem/TimelineItem.js +130 -0
- package/esm/TimelineItem/index.js +1 -0
- package/esm/Timer/Timer.js +292 -0
- package/esm/Timer/index.js +1 -0
- package/esm/ToggleButton/ToggleButton.js +57 -0
- package/esm/ToggleButton/index.js +1 -0
- package/esm/ToggleButtons/ToggleButtons.js +36 -0
- package/esm/ToggleButtons/index.js +1 -0
- package/esm/Tooltip/Tooltip.js +453 -0
- package/esm/Tooltip/index.js +1 -0
- package/esm/TopAppBar/TopAppBar.js +220 -0
- package/esm/TopAppBar/index.js +1 -0
- package/esm/Transition/Context.js +3 -0
- package/esm/Transition/Transition.js +315 -0
- package/esm/Transition/index.js +4 -0
- package/esm/Transition/useTransition.js +6 -0
- package/esm/Transitions/Transitions.js +207 -0
- package/esm/Transitions/index.js +1 -0
- package/esm/Tree/Tree.js +353 -0
- package/esm/Tree/index.js +1 -0
- package/esm/Type/Type.js +243 -0
- package/esm/Type/index.js +1 -0
- package/esm/VideoPlayer/VideoPlayer.js +834 -0
- package/esm/VideoPlayer/index.js +1 -0
- package/esm/ViewSplit/ViewSplit.js +414 -0
- package/esm/ViewSplit/index.js +1 -0
- package/esm/Watch/Watch.js +411 -0
- package/esm/Watch/index.js +1 -0
- package/esm/Weather/Weather.js +276 -0
- package/esm/Weather/index.js +1 -0
- package/esm/Widgets/Context.js +3 -0
- package/esm/Widgets/Widgets.js +200 -0
- package/esm/Widgets/index.js +4 -0
- package/esm/Widgets/useWidgets.js +6 -0
- package/esm/WindowSplit/WindowSplit.js +370 -0
- package/esm/WindowSplit/index.js +1 -0
- package/esm/Zoom/Zoom.js +120 -0
- package/esm/Zoom/index.js +1 -0
- package/esm/index.js +428 -0
- package/esm/types.js +1 -0
- package/esm/useForm/index.js +3 -0
- package/esm/useForm/useForm.js +197 -0
- package/esm/useForm/validate.js +204 -0
- package/esm/useLocation/index.js +1 -0
- package/esm/useLocation/useLocation.js +51 -0
- package/esm/useMediaQuery/index.js +1 -0
- package/esm/useMediaQuery/useMediaQuery.js +40 -0
- package/esm/useQuery/index.js +1 -0
- package/esm/useQuery/useQuery.js +11 -0
- package/esm/useScroll/index.js +1 -0
- package/esm/useScroll/useScroll.js +56 -0
- package/esm/useSubscription/index.js +1 -0
- package/esm/useSubscription/useSubscription.js +31 -0
- package/esm/useSwipe/index.js +1 -0
- package/esm/useSwipe/useSwipe.js +158 -0
- package/esm/useVisible/index.js +1 -0
- package/esm/useVisible/useVisible.js +81 -0
- package/esm/utils.js +1256 -0
- package/index.d.ts +423 -0
- package/index.js +658 -0
- package/package.json +55 -0
- package/types.d.ts +41 -0
- package/types.js +2 -0
- package/useForm/index.d.ts +3 -0
- package/useForm/index.js +12 -0
- package/useForm/package.json +6 -0
- package/useForm/useForm.d.ts +28 -0
- package/useForm/useForm.js +177 -0
- package/useForm/validate.d.ts +65 -0
- package/useForm/validate.js +219 -0
- package/useLocation/index.d.ts +1 -0
- package/useLocation/index.js +8 -0
- package/useLocation/package.json +6 -0
- package/useLocation/useLocation.d.ts +7 -0
- package/useLocation/useLocation.js +52 -0
- package/useMediaQuery/index.d.ts +1 -0
- package/useMediaQuery/index.js +8 -0
- package/useMediaQuery/package.json +6 -0
- package/useMediaQuery/useMediaQuery.d.ts +9 -0
- package/useMediaQuery/useMediaQuery.js +48 -0
- package/useQuery/index.d.ts +1 -0
- package/useQuery/index.js +8 -0
- package/useQuery/package.json +6 -0
- package/useQuery/useQuery.d.ts +5 -0
- package/useQuery/useQuery.js +14 -0
- package/useScroll/index.d.ts +1 -0
- package/useScroll/index.js +8 -0
- package/useScroll/package.json +6 -0
- package/useScroll/useScroll.d.ts +12 -0
- package/useScroll/useScroll.js +60 -0
- package/useSubscription/index.d.ts +1 -0
- package/useSubscription/index.js +8 -0
- package/useSubscription/package.json +6 -0
- package/useSubscription/useSubscription.d.ts +3 -0
- package/useSubscription/useSubscription.js +38 -0
- package/useSwipe/index.d.ts +1 -0
- package/useSwipe/index.js +8 -0
- package/useSwipe/package.json +6 -0
- package/useSwipe/useSwipe.d.ts +18 -0
- package/useSwipe/useSwipe.js +138 -0
- package/useVisible/index.d.ts +1 -0
- package/useVisible/index.js +8 -0
- package/useVisible/package.json +6 -0
- package/useVisible/useVisible.d.ts +23 -0
- package/useVisible/useVisible.js +80 -0
- package/utils.d.ts +48 -0
- package/utils.js +1422 -0
package/Space/Space.js
ADDED
@@ -0,0 +1,1003 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
3
|
+
var t = {};
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
5
|
+
t[p] = s[p];
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
9
|
+
t[p[i]] = s[p[i]];
|
10
|
+
}
|
11
|
+
return t;
|
12
|
+
};
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
18
|
+
const react_1 = __importDefault(require("react"));
|
19
|
+
const utils_1 = require("@onesy/utils");
|
20
|
+
const style_react_1 = require("@onesy/style-react");
|
21
|
+
const IconMaterialCheckCircleW100_1 = __importDefault(require("@amaui/icons-material-rounded-react/IconMaterialCheckCircleW100"));
|
22
|
+
const IconMaterialUngroupW100_1 = __importDefault(require("@amaui/icons-material-rounded-react/IconMaterialUngroupW100"));
|
23
|
+
const IconMaterialAdGroupW100_1 = __importDefault(require("@amaui/icons-material-rounded-react/IconMaterialAdGroupW100"));
|
24
|
+
const IconMaterialContentCopyW100_1 = __importDefault(require("@amaui/icons-material-rounded-react/IconMaterialContentCopyW100"));
|
25
|
+
const IconMaterialFlipToFrontW100_1 = __importDefault(require("@amaui/icons-material-rounded-react/IconMaterialFlipToFrontW100"));
|
26
|
+
const IconMaterialFlipToBackW100_1 = __importDefault(require("@amaui/icons-material-rounded-react/IconMaterialFlipToBackW100"));
|
27
|
+
const IconMaterialKeyboardArrowDownW100_1 = __importDefault(require("@amaui/icons-material-rounded-react/IconMaterialKeyboardArrowDownW100"));
|
28
|
+
const IconMaterialKeyboardArrowUpW100_1 = __importDefault(require("@amaui/icons-material-rounded-react/IconMaterialKeyboardArrowUpW100"));
|
29
|
+
const IconMaterialSettingsW100_1 = __importDefault(require("@amaui/icons-material-rounded-react/IconMaterialSettingsW100"));
|
30
|
+
const IconMaterialKeyboardArrowLeftW100_1 = __importDefault(require("@amaui/icons-material-rounded-react/IconMaterialKeyboardArrowLeftW100"));
|
31
|
+
const IconMaterialMenuOpenW100_1 = __importDefault(require("@amaui/icons-material-rounded-react/IconMaterialMenuOpenW100"));
|
32
|
+
const IconMaterialAddW100_1 = __importDefault(require("@amaui/icons-material-rounded-react/IconMaterialAddW100"));
|
33
|
+
const IconMaterialCloseW100_1 = __importDefault(require("@amaui/icons-material-rounded-react/IconMaterialCloseW100"));
|
34
|
+
const Icon_1 = __importDefault(require("../Icon"));
|
35
|
+
const Line_1 = __importDefault(require("../Line"));
|
36
|
+
const Checkbox_1 = __importDefault(require("../Checkbox"));
|
37
|
+
const ColorTextField_1 = __importDefault(require("../ColorTextField"));
|
38
|
+
const Divider_1 = __importDefault(require("../Divider"));
|
39
|
+
const Fab_1 = __importDefault(require("../Fab"));
|
40
|
+
const Form_1 = __importDefault(require("../Form"));
|
41
|
+
const FormRow_1 = __importDefault(require("../FormRow"));
|
42
|
+
const IconButton_1 = __importDefault(require("../IconButton"));
|
43
|
+
const Label_1 = __importDefault(require("../Label"));
|
44
|
+
const List_1 = __importDefault(require("../List"));
|
45
|
+
const ListItem_1 = __importDefault(require("../ListItem"));
|
46
|
+
const NavigationDrawer_1 = __importDefault(require("../NavigationDrawer"));
|
47
|
+
const NumericTextField_1 = __importDefault(require("../NumericTextField"));
|
48
|
+
const Select_1 = __importDefault(require("../Select"));
|
49
|
+
const Slider_1 = __importDefault(require("../Slider"));
|
50
|
+
const SmartTextField_1 = __importDefault(require("../SmartTextField"));
|
51
|
+
const Switch_1 = __importDefault(require("../Switch"));
|
52
|
+
const TextField_1 = __importDefault(require("../TextField"));
|
53
|
+
const Tooltip_1 = __importDefault(require("../Tooltip"));
|
54
|
+
const Type_1 = __importDefault(require("../Type"));
|
55
|
+
const Surface_1 = __importDefault(require("../Surface"));
|
56
|
+
const HTMLCanvas_1 = __importDefault(require("../HTMLCanvas"));
|
57
|
+
const utils_2 = require("../utils");
|
58
|
+
// items
|
59
|
+
// furniture
|
60
|
+
// table
|
61
|
+
// oval
|
62
|
+
const IconFurnitureTableOvalSeat4Version1 = react_1.default.forwardRef((props, ref) => {
|
63
|
+
const { color = '#F5EED6' } = props, other = __rest(props, ["color"]);
|
64
|
+
const styles = {
|
65
|
+
table: {
|
66
|
+
color
|
67
|
+
},
|
68
|
+
chair: {
|
69
|
+
fill: (0, utils_1.lighten)(color, 0.4)
|
70
|
+
}
|
71
|
+
};
|
72
|
+
return ((0, jsx_runtime_1.jsxs)(Icon_1.default, Object.assign({ ref: ref, name: 'FurnitureTableOvalSeat41', short_name: 'FurnitureTableOvalSeat41', viewBox: '0 0 321 321' }, other, { children: [(0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M288.424 160.654L288.224 167.754L287.634 174.834L286.644 181.874L285.274 188.844L283.514 195.724L281.034 203.464L278.864 209.144L275.984 215.644L272.754 221.974L269.174 228.104L265.254 234.034L261.014 239.734L256.464 245.194L251.614 250.394L246.484 255.314L241.094 259.934L235.454 264.254L229.574 268.254L223.494 271.924L217.214 275.244L210.754 278.214L203.434 281.074L197.394 283.044L190.544 284.904L183.584 286.374L176.564 287.454L169.494 288.144L162.394 288.444L155.294 288.344L148.204 287.854L141.154 286.964L134.164 285.684L127.254 284.024L117.804 281.074L107.234 276.774L100.864 273.624L94.6744 270.124L88.6944 266.294L82.9344 262.134L77.4144 257.664L72.1544 252.884L67.1644 247.824L62.4644 242.494L58.0644 236.914L53.9844 231.104L50.2344 225.064L46.8244 218.834L43.7644 212.414L40.1944 203.464L36.7944 192.294L35.2244 185.364L34.0444 178.354L33.2544 171.294L32.8644 164.204V157.094L33.2544 150.004L34.0444 142.944L35.2244 135.934L36.7944 129.004L40.1944 117.834L43.7644 108.884L46.8244 102.474L50.2344 96.2341L53.9844 90.2041L58.0644 84.3841L62.4644 78.8042L67.1644 73.4742L72.1544 68.4141L77.4144 63.6441L82.9344 59.1641L88.6944 55.0042L94.6744 51.1741L100.864 47.6741L107.234 44.5341L117.804 40.2341L127.254 37.2741L134.164 35.6142L141.154 34.3342L148.204 33.4541L155.294 32.9541L162.394 32.8541L169.494 33.1541L176.564 33.8441L183.584 34.9241L190.544 36.3941L197.394 38.2542L203.434 40.2341L210.754 43.0941L217.214 46.0542L223.494 49.3841L229.574 53.0441L235.454 57.0441L241.094 61.3642L246.484 65.9941L251.614 70.9141L256.464 76.1041L261.014 81.5641L265.254 87.2641L269.174 93.1942L272.754 99.3342L275.984 105.654L278.864 112.154L281.034 117.834L283.514 125.574L285.274 132.454L286.644 139.434L287.634 146.464L288.224 153.544L288.424 160.654Z" }, styles.table)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M100.044 18.9641C88.8856 10.6124 75.0903 6.56285 61.1878 7.55784C47.2853 8.55282 34.2073 14.5257 24.3517 24.3814C14.496 34.2371 8.52305 47.3151 7.52807 61.2176C6.53308 75.1201 10.5827 88.9154 18.9344 100.074L13.8144 103.904C4.54858 91.5146 0.057821 76.201 1.16506 60.7696C2.27229 45.3382 8.90336 30.8226 19.8431 19.8828C30.7828 8.94313 45.2984 2.31206 60.7298 1.20482C76.1613 0.0975854 91.4749 4.58834 103.864 13.8541L100.044 18.9641Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M302.304 100.074C310.656 88.9154 314.706 75.1201 313.711 61.2176C312.716 47.3151 306.743 34.2371 296.887 24.3814C287.031 14.5257 273.953 8.55282 260.051 7.55784C246.148 6.56285 232.353 10.6124 221.194 18.9641L217.364 13.8441C229.754 4.56366 245.074 0.0613957 260.514 1.16328C275.954 2.26517 290.48 8.89732 301.425 19.8431C312.371 30.7888 319.003 45.3142 320.105 60.7546C321.207 76.195 316.705 91.515 307.424 103.904L302.304 100.074Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M18.9344 221.224C10.5827 232.383 6.53308 246.178 7.52807 260.081C8.52305 273.983 14.496 287.061 24.3517 296.917C34.2073 306.773 47.2853 312.745 61.1878 313.74C75.0903 314.735 88.8856 310.686 100.044 302.334L103.864 307.454C91.4749 316.72 76.1613 321.211 60.7298 320.103C45.2984 318.996 30.7828 312.365 19.8431 301.425C8.90336 290.486 2.27229 275.97 1.16506 260.539C0.057821 245.107 4.54858 229.794 13.8144 217.404L18.9344 221.224Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M221.194 302.334C232.353 310.686 246.148 314.735 260.051 313.74C273.953 312.745 287.031 306.773 296.887 296.917C306.743 287.061 312.716 273.983 313.711 260.081C314.706 246.178 310.656 232.383 302.304 221.224L307.424 217.404C316.697 229.794 321.192 245.111 320.087 260.547C318.982 275.983 312.349 290.503 301.406 301.445C290.463 312.387 275.942 319.018 260.506 320.122C245.07 321.225 229.753 316.728 217.364 307.454L221.194 302.334Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M281.034 203.464L278.864 209.144L275.984 215.644L272.754 221.974L269.174 228.104L265.254 234.034L261.014 239.734L256.464 245.194L251.614 250.394L246.484 255.314L241.094 259.934L235.454 264.254L229.574 268.254L223.494 271.924L217.214 275.244L210.754 278.214L203.434 281.074L225.024 297.214C234.953 304.637 247.223 308.234 259.588 307.346C271.953 306.458 283.583 301.144 292.349 292.379C301.115 283.613 306.428 271.982 307.316 259.618C308.204 247.253 304.607 234.983 297.184 225.054L281.034 203.464Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M203.434 40.2341L210.754 43.0941L217.214 46.0542L223.494 49.3841L229.574 53.0441L235.454 57.0441L241.094 61.3642L246.484 65.9941L251.614 70.9141L256.464 76.1041L261.014 81.5641L265.254 87.2641L269.174 93.1942L272.754 99.3342L275.984 105.654L278.864 112.154L281.034 117.834L297.184 96.2441C304.607 86.3158 308.204 74.0452 307.316 61.6805C306.428 49.3159 301.115 37.6853 292.349 28.9197C283.583 20.154 271.953 14.8404 259.588 13.9523C247.223 13.0642 234.953 16.6612 225.024 24.0842L203.434 40.2341Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M117.804 281.074L107.234 276.774L100.864 273.624L94.6744 270.124L88.6944 266.294L82.9344 262.134L77.4144 257.664L72.1544 252.884L67.1644 247.824L62.4644 242.494L58.0644 236.914L53.9844 231.104L50.2344 225.064L46.8244 218.834L43.7644 212.414L40.1944 203.464L24.0544 225.054C16.6314 234.983 13.0345 247.253 13.9225 259.618C14.8106 271.982 20.1243 283.613 28.8899 292.379C37.6555 301.144 49.2862 306.458 61.6508 307.346C74.0154 308.234 86.286 304.637 96.2144 297.214L117.804 281.074Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M40.1944 117.834L43.7644 108.884L46.8244 102.474L50.2344 96.2341L53.9844 90.2041L58.0644 84.3841L62.4644 78.8042L67.1644 73.4742L72.1544 68.4141L77.4144 63.6441L82.9344 59.1641L88.6944 55.0042L94.6744 51.1741L100.864 47.6741L107.234 44.5341L117.804 40.2341L96.2144 24.0841C86.286 16.6612 74.0154 13.0642 61.6508 13.9523C49.2862 14.8404 37.6555 20.154 28.8899 28.9197C20.1243 37.6853 14.8106 49.3159 13.9225 61.6805C13.0345 74.0452 16.6314 86.3158 24.0544 96.2441L40.1944 117.834Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", { d: "M281.034 203.464L283.514 195.724L285.274 188.844L286.644 181.874L287.634 174.834L288.224 167.754L288.424 160.654L288.224 153.544L287.634 146.464L286.644 139.434L285.274 132.454L283.514 125.574L281.034 117.834M281.034 203.464L278.864 209.144L275.984 215.644L272.754 221.974L269.174 228.104L265.254 234.034L261.014 239.734L256.464 245.194L251.614 250.394L246.484 255.314L241.094 259.934L235.454 264.254L229.574 268.254L223.494 271.924L217.214 275.244L210.754 278.214L203.434 281.074M281.034 203.464L297.184 225.054C304.607 234.983 308.204 247.253 307.316 259.618C306.428 271.982 301.115 283.613 292.349 292.379C283.583 301.144 271.953 306.458 259.588 307.346C247.223 308.234 234.953 304.637 225.024 297.214L203.434 281.074M203.434 281.074L197.394 283.044L190.544 284.904L183.584 286.374L176.564 287.454L169.494 288.144L162.394 288.444L155.294 288.344L148.204 287.854L141.154 286.964L134.164 285.684L127.254 284.024L117.804 281.074M117.804 281.074L107.234 276.774L100.864 273.624L94.6744 270.124L88.6944 266.294L82.9344 262.134L77.4144 257.664L72.1544 252.884L67.1644 247.824L62.4644 242.494L58.0644 236.914L53.9844 231.104L50.2344 225.064L46.8244 218.834L43.7644 212.414L40.1944 203.464M117.804 281.074L96.2144 297.214C86.286 304.637 74.0154 308.234 61.6508 307.346C49.2862 306.458 37.6555 301.144 28.8899 292.379C20.1243 283.613 14.8106 271.982 13.9225 259.618C13.0345 247.253 16.6314 234.983 24.0544 225.054L40.1944 203.464M40.1944 203.464L36.7944 192.294L35.2244 185.364L34.0444 178.354L33.2544 171.294L32.8644 164.204V157.094L33.2544 150.004L34.0444 142.944L35.2244 135.934L36.7944 129.004L40.1944 117.834M40.1944 117.834L43.7644 108.884L46.8244 102.474L50.2344 96.2341L53.9844 90.2041L58.0644 84.3841L62.4644 78.8042L67.1644 73.4742L72.1544 68.4141L77.4144 63.6441L82.9344 59.1641L88.6944 55.0042L94.6744 51.1741L100.864 47.6741L107.234 44.5341L117.804 40.2341M40.1944 117.834L24.0544 96.2441C16.6314 86.3158 13.0345 74.0452 13.9225 61.6805C14.8106 49.3159 20.1243 37.6853 28.8899 28.9197C37.6555 20.154 49.2862 14.8404 61.6508 13.9523C74.0154 13.0642 86.286 16.6612 96.2144 24.0841M117.804 40.2341L127.254 37.2741L134.164 35.6142L141.154 34.3342L148.204 33.4541L155.294 32.9541L162.394 32.8541L169.494 33.1541L176.564 33.8441L183.584 34.9241L190.544 36.3941L197.394 38.2542L203.434 40.2341M117.804 40.2341C109.373 33.9272 104.646 30.3911 96.2144 24.0841M117.804 40.2341L96.2144 24.0841M203.434 40.2341L210.754 43.0941L217.214 46.0542L223.494 49.3841L229.574 53.0441L235.454 57.0441L241.094 61.3642L246.484 65.9941L251.614 70.9141L256.464 76.1041L261.014 81.5641L265.254 87.2641L269.174 93.1942L272.754 99.3342L275.984 105.654L278.864 112.154L281.034 117.834M203.434 40.2341L225.024 24.0842C234.953 16.6612 247.223 13.0642 259.588 13.9523C271.953 14.8404 283.583 20.154 292.349 28.9197C301.115 37.6853 306.428 49.3159 307.316 61.6805C308.204 74.0452 304.607 86.3158 297.184 96.2441L281.034 117.834M302.304 100.074C310.656 88.9154 314.706 75.1201 313.711 61.2176C312.716 47.3151 306.743 34.2371 296.887 24.3814C287.031 14.5257 273.953 8.55282 260.051 7.55784C246.148 6.56285 232.353 10.6124 221.194 18.9641L217.364 13.8441C229.754 4.56366 245.074 0.0613957 260.514 1.16328C275.954 2.26517 290.48 8.89732 301.425 19.8431C312.371 30.7888 319.003 45.3142 320.105 60.7546C321.207 76.195 316.705 91.515 307.424 103.904L302.304 100.074ZM100.044 18.9641C88.8856 10.6124 75.0903 6.56285 61.1878 7.55784C47.2853 8.55282 34.2073 14.5257 24.3517 24.3814C14.496 34.2371 8.52305 47.3151 7.52807 61.2176C6.53308 75.1201 10.5827 88.9154 18.9344 100.074L13.8144 103.904C4.54858 91.5146 0.057821 76.201 1.16506 60.7696C2.27229 45.3382 8.90336 30.8226 19.8431 19.8828C30.7828 8.94313 45.2984 2.31206 60.7298 1.20482C76.1613 0.0975854 91.4749 4.58834 103.864 13.8541L100.044 18.9641ZM221.194 302.334C232.353 310.686 246.148 314.735 260.051 313.74C273.953 312.745 287.031 306.773 296.887 296.917C306.743 287.061 312.716 273.983 313.711 260.081C314.706 246.178 310.656 232.383 302.304 221.224L307.424 217.404C316.697 229.794 321.192 245.111 320.087 260.547C318.982 275.983 312.349 290.503 301.406 301.445C290.463 312.387 275.942 319.018 260.506 320.122C245.07 321.225 229.753 316.728 217.364 307.454L221.194 302.334ZM18.9344 221.224C10.5827 232.383 6.53308 246.178 7.52807 260.081C8.52305 273.983 14.496 287.061 24.3517 296.917C34.2073 306.773 47.2853 312.745 61.1878 313.74C75.0903 314.735 88.8856 310.686 100.044 302.334L103.864 307.454C91.4749 316.72 76.1613 321.211 60.7298 320.103C45.2984 318.996 30.7828 312.365 19.8431 301.425C8.90336 290.486 2.27229 275.97 1.16506 260.539C0.057821 245.107 4.54858 229.794 13.8144 217.404L18.9344 221.224Z", fill: "none", stroke: "black" })] })));
|
73
|
+
});
|
74
|
+
// rectangle
|
75
|
+
const IconFurnitureTableRectangleSeat6Version1 = react_1.default.forwardRef((props, ref) => {
|
76
|
+
const { color = '#F5EED6' } = props, other = __rest(props, ["color"]);
|
77
|
+
const styles = {
|
78
|
+
table: {
|
79
|
+
color
|
80
|
+
},
|
81
|
+
chair: {
|
82
|
+
fill: (0, utils_1.lighten)(color, 0.4)
|
83
|
+
}
|
84
|
+
};
|
85
|
+
return ((0, jsx_runtime_1.jsxs)(Icon_1.default, Object.assign({ ref: ref, name: 'FurnitureTableRectangleSeat6Version1', short_name: 'FurnitureTableRectangleSeat6Version1', viewBox: '0 0 402 287' }, other, { children: [(0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M91.598 62.5698H62.5364V107.031V179.709V224.17H91.598H164.247H237.753H310.402H339.464V179.709V107.031V62.5609L237.753 62.5641L164.247 62.5665L91.598 62.5698Z" }, styles.table)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M237.111 4.85146L242.877 16.3969H305.269L311.044 4.85146H237.111Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M237.111 1V4.85146H311.044V1H237.111Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M164.889 4.85146V1H90.9563V4.85146H164.889Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M159.114 16.3969L164.889 4.85146H90.9563L96.7223 16.3969H159.114Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M385.618 112.157L339.464 107.031V179.709L385.618 174.574V112.157Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M397.15 106.389L385.618 112.157V174.574L397.15 180.342V106.389Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M401 106.389H397.15V180.342H401V106.389Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M16.3819 112.157L4.84101 106.389V180.351L16.3819 174.574V112.157Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M4.84101 106.389H1V180.351H4.84101V106.389Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M62.5364 107.031L16.3819 112.157V174.574L62.5364 179.709V107.031Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M159.123 270.343L164.247 224.17H91.598L96.7223 270.343H159.123Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M164.889 281.88L159.123 270.343H96.7223L90.9563 281.88H164.889Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M164.889 285.731V281.88H90.9563V285.731H164.889Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M237.753 224.17L242.877 270.343H305.269L310.402 224.17H237.753Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M242.877 270.343L237.111 281.88H311.044L305.269 270.343H242.877Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M237.111 281.88V285.731H311.044V281.88H237.111Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M96.7223 16.3969L91.598 62.5698L164.247 62.5665L159.114 16.3969H96.7223Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", Object.assign({ d: "M242.877 16.3913L237.753 62.5641L310.402 62.5609L305.269 16.3913H242.877Z" }, styles.chair)), (0, jsx_runtime_1.jsx)("path", { d: "M339.464 107.031L385.618 112.157M339.464 107.031V179.709M339.464 107.031V62.5609M385.618 112.157L397.15 106.389M385.618 112.157V174.574M397.15 106.389H401V180.342H397.15M397.15 106.389V180.342M397.15 180.342L385.618 174.574M385.618 174.574L339.464 179.709M339.464 179.709V224.17M164.247 224.17L159.123 270.343M164.247 224.17H91.598M164.247 224.17H237.753M159.123 270.343L164.889 281.88M159.123 270.343H96.7223M164.889 281.88V285.731H90.9563V281.88M164.889 281.88H90.9563M90.9563 281.88L96.7223 270.343M96.7223 270.343L91.598 224.17M91.598 224.17H62.5364M62.5364 107.031L16.3819 112.157M62.5364 107.031V62.5698M62.5364 107.031V179.709M16.3819 112.157L4.84101 106.389M16.3819 112.157V174.574M4.84101 106.389H1V180.351H4.84101M4.84101 106.389V180.351M4.84101 180.351L16.3819 174.574M16.3819 174.574L62.5364 179.709M62.5364 179.709V224.17M164.247 62.5698L164.247 62.5665M159.114 16.3969L164.889 4.85146M159.114 16.3969H96.7223M159.114 16.3969L164.247 62.5665M164.889 4.85146V1H90.9563V4.85146M164.889 4.85146H90.9563M90.9563 4.85146L96.7223 16.3969M96.7223 16.3969L91.598 62.5698M91.598 62.5698H62.5364M91.598 62.5698L164.247 62.5665M237.753 224.17L242.877 270.343M237.753 224.17H310.402M242.877 270.343L237.111 281.88M242.877 270.343H305.269M237.111 281.88V285.731H311.044V281.88M237.111 281.88H311.044M311.044 281.88L305.269 270.343M305.269 270.343L310.402 224.17M310.402 224.17H339.464M62.5364 62.5698V224.17M62.5364 62.5698L164.247 62.5665M339.464 62.5609V224.17M339.464 62.5609L237.753 62.5641M339.464 224.17H62.5364M237.753 62.5698L237.753 62.5641M242.877 16.3969L237.111 4.85146M242.877 16.3969H305.269M242.877 16.3969L237.753 62.5641M237.111 4.85146V1H311.044V4.85146M237.111 4.85146H311.044M311.044 4.85146L305.269 16.3969M305.269 16.3969L310.402 62.5609M310.402 62.5609L237.753 62.5641M310.402 62.5609L305.269 16.3913H242.877L237.753 62.5641M237.753 62.5641L164.247 62.5665", fill: "none", stroke: "black" })] })));
|
86
|
+
});
|
87
|
+
const useStyle = (0, style_react_1.style)(theme => ({
|
88
|
+
root: {
|
89
|
+
position: 'relative',
|
90
|
+
width: '100%',
|
91
|
+
height: '100%',
|
92
|
+
overflow: 'hidden',
|
93
|
+
border: '1px solid #ccc'
|
94
|
+
},
|
95
|
+
actionsStart: {
|
96
|
+
position: 'absolute',
|
97
|
+
top: '12px',
|
98
|
+
left: '12px',
|
99
|
+
zIndex: 14
|
100
|
+
},
|
101
|
+
actionsEnd: {
|
102
|
+
position: 'absolute',
|
103
|
+
bottom: '12px',
|
104
|
+
right: '12px',
|
105
|
+
zIndex: 14
|
106
|
+
},
|
107
|
+
item: {
|
108
|
+
position: 'absolute',
|
109
|
+
width: 'auto'
|
110
|
+
},
|
111
|
+
itemSelected: {
|
112
|
+
outline: `3px solid ${theme.methods.palette.color.alpha(theme.palette.color.info.main, 0.7)}`
|
113
|
+
},
|
114
|
+
metaName: {
|
115
|
+
position: 'absolute',
|
116
|
+
top: '-26px',
|
117
|
+
background: theme.palette.background.default.primary,
|
118
|
+
padding: '0px 4px',
|
119
|
+
borderRadius: 2,
|
120
|
+
transformOrigin: 'bottom left',
|
121
|
+
whiteSpace: 'nowrap',
|
122
|
+
cursor: 'default',
|
123
|
+
userSelect: 'none'
|
124
|
+
},
|
125
|
+
meteSize: {
|
126
|
+
position: 'absolute',
|
127
|
+
bottom: '-26px',
|
128
|
+
background: theme.palette.background.default.primary,
|
129
|
+
padding: '0px 4px',
|
130
|
+
borderRadius: 2,
|
131
|
+
transformOrigin: 'top left',
|
132
|
+
whiteSpace: 'nowrap',
|
133
|
+
cursor: 'default',
|
134
|
+
userSelect: 'none'
|
135
|
+
},
|
136
|
+
navigation: {
|
137
|
+
width: '100vw',
|
138
|
+
maxWidth: 270
|
139
|
+
},
|
140
|
+
navigationHeader: {
|
141
|
+
padding: '8px 16px'
|
142
|
+
},
|
143
|
+
navigationHeaderItemOpen: {
|
144
|
+
padding: '8px 8px'
|
145
|
+
},
|
146
|
+
menu: {
|
147
|
+
height: '100vw',
|
148
|
+
maxHeight: 340
|
149
|
+
},
|
150
|
+
menuHeader: {
|
151
|
+
padding: '8px 16px'
|
152
|
+
},
|
153
|
+
menuMain: {
|
154
|
+
padding: '0px 16px'
|
155
|
+
},
|
156
|
+
list: {
|
157
|
+
height: 0,
|
158
|
+
flex: '1 1 auto',
|
159
|
+
overflow: 'hidden auto'
|
160
|
+
},
|
161
|
+
mainSidebar: {
|
162
|
+
padding: '0px 16px',
|
163
|
+
flex: '1 1 auto',
|
164
|
+
height: 0,
|
165
|
+
overflow: 'hidden auto',
|
166
|
+
userSelect: 'none'
|
167
|
+
},
|
168
|
+
navigationDrawerNavigation: {
|
169
|
+
'& .onesy-Modal-surface': {
|
170
|
+
boxShadow: '4px 0px 24px rgba(0, 0, 0, 0.04)'
|
171
|
+
}
|
172
|
+
},
|
173
|
+
navigationDrawerMenu: {
|
174
|
+
'& .onesy-Modal-surface': {
|
175
|
+
boxShadow: '0px 4px 24px rgba(0, 0, 0, 0.04)'
|
176
|
+
}
|
177
|
+
},
|
178
|
+
main: {
|
179
|
+
minHeight: 154,
|
180
|
+
overflowY: 'hidden',
|
181
|
+
overflowX: 'auto'
|
182
|
+
},
|
183
|
+
element: {
|
184
|
+
width: 114,
|
185
|
+
overflow: 'hidden',
|
186
|
+
cursor: 'pointer',
|
187
|
+
userSelect: 'none',
|
188
|
+
transition: theme.methods.transitions.make('transform'),
|
189
|
+
'& > .onesy-thumb': {
|
190
|
+
boxShadow: '0px 2px 4px rgba(0, 0, 0, 0.07)',
|
191
|
+
borderRadius: 24,
|
192
|
+
width: 114,
|
193
|
+
height: 'auto'
|
194
|
+
},
|
195
|
+
'& > p': {},
|
196
|
+
'&:active': {
|
197
|
+
transform: 'scale(0.94)'
|
198
|
+
}
|
199
|
+
},
|
200
|
+
elementImage: {
|
201
|
+
width: 114,
|
202
|
+
height: 114
|
203
|
+
},
|
204
|
+
accordion: {
|
205
|
+
'&.onesy-Accordion-root': {
|
206
|
+
'& .onesy-Accordion-wrapper-header': {
|
207
|
+
paddingInline: 16
|
208
|
+
},
|
209
|
+
'& .onesy-Accordion-header': {
|
210
|
+
'& .onesy-Type-root': Object.assign({}, theme.typography.values.l2)
|
211
|
+
},
|
212
|
+
'& .onesy-Accordion-main': {
|
213
|
+
'& > *': {
|
214
|
+
margin: 0,
|
215
|
+
gap: 0,
|
216
|
+
paddingInlineStart: 16
|
217
|
+
}
|
218
|
+
}
|
219
|
+
}
|
220
|
+
},
|
221
|
+
select: {
|
222
|
+
'& .onesy-Select-input': {
|
223
|
+
borderRadius: 0
|
224
|
+
}
|
225
|
+
},
|
226
|
+
disabled: {
|
227
|
+
pointerEvents: 'none',
|
228
|
+
opacity: 0.54,
|
229
|
+
cursor: 'default'
|
230
|
+
}
|
231
|
+
}), { name: 'onesy-Space' });
|
232
|
+
// info
|
233
|
+
// 1. icons (freecads.com)
|
234
|
+
const Space = react_1.default.forwardRef((props_, ref) => {
|
235
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
236
|
+
const theme = (0, style_react_1.useOnesyTheme)();
|
237
|
+
const props = react_1.default.useMemo(() => { var _a, _b, _c, _d, _e, _f, _g, _h; return (Object.assign(Object.assign(Object.assign({}, (_d = (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.ui) === null || _a === void 0 ? void 0 : _a.elements) === null || _b === void 0 ? void 0 : _b.all) === null || _c === void 0 ? void 0 : _c.props) === null || _d === void 0 ? void 0 : _d.default), (_h = (_g = (_f = (_e = theme === null || theme === void 0 ? void 0 : theme.ui) === null || _e === void 0 ? void 0 : _e.elements) === null || _f === void 0 ? void 0 : _f.onesySpace) === null || _g === void 0 ? void 0 : _g.props) === null || _h === void 0 ? void 0 : _h.default), props_)); }, [props_]);
|
238
|
+
const Line = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Line) || Line_1.default; }, [theme]);
|
239
|
+
const Checkbox = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Checkbox) || Checkbox_1.default; }, [theme]);
|
240
|
+
const ColorTextField = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.ColorTextField) || ColorTextField_1.default; }, [theme]);
|
241
|
+
const Divider = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Divider) || Divider_1.default; }, [theme]);
|
242
|
+
const Fab = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Fab) || Fab_1.default; }, [theme]);
|
243
|
+
const Form = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Form) || Form_1.default; }, [theme]);
|
244
|
+
const FormRow = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.FormRow) || FormRow_1.default; }, [theme]);
|
245
|
+
const IconButton = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.IconButton) || IconButton_1.default; }, [theme]);
|
246
|
+
const Label = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Label) || Label_1.default; }, [theme]);
|
247
|
+
const List = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.List) || List_1.default; }, [theme]);
|
248
|
+
const ListItem = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.ListItem) || ListItem_1.default; }, [theme]);
|
249
|
+
const NavigationDrawer = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.NavigationDrawer) || NavigationDrawer_1.default; }, [theme]);
|
250
|
+
const NumericTextField = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.NumericTextField) || NumericTextField_1.default; }, [theme]);
|
251
|
+
const Select = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Select) || Select_1.default; }, [theme]);
|
252
|
+
const Slider = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Slider) || Slider_1.default; }, [theme]);
|
253
|
+
const SmartTextField = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.SmartTextField) || SmartTextField_1.default; }, [theme]);
|
254
|
+
const Switch = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Switch) || Switch_1.default; }, [theme]);
|
255
|
+
const TextField = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.TextField) || TextField_1.default; }, [theme]);
|
256
|
+
const Tooltip = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Tooltip) || Tooltip_1.default; }, [theme]);
|
257
|
+
const Type = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Type) || Type_1.default; }, [theme]);
|
258
|
+
const Surface = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Surface) || Surface_1.default; }, [theme]);
|
259
|
+
const HTMLCanvas = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.HTMLCanvas) || HTMLCanvas_1.default; }, [theme]);
|
260
|
+
const { size = 'regular', minSize = 0.0001, maxSize = 240000, unitDefault = 'px', floors = [
|
261
|
+
{ name: 'Floor 1', value: 'floor-1', url: '/assets/svg/space/floor/floor-1.svg' },
|
262
|
+
{ name: 'Floor 2', value: 'floor-2', url: '/assets/svg/space/floor/floor-2.svg' },
|
263
|
+
{ name: 'Floor 3', value: 'floor-3', url: '/assets/svg/space/floor/floor-3.svg' },
|
264
|
+
{ name: 'Floor 4', value: 'floor-4', url: '/assets/svg/space/floor/floor-4.svg' }
|
265
|
+
], defaults = {
|
266
|
+
color: {
|
267
|
+
table: '#F5EED6'
|
268
|
+
}
|
269
|
+
}, disabled, IconAdd = IconMaterialAddW100_1.default, IconMenu = IconMaterialMenuOpenW100_1.default, IconCloseNavigation = IconMaterialCloseW100_1.default, IconCloseMenu = IconMaterialKeyboardArrowDownW100_1.default, IconArrowBack = IconMaterialKeyboardArrowLeftW100_1.default, IconSettings = IconMaterialSettingsW100_1.default, IconArrowUp = IconMaterialKeyboardArrowUpW100_1.default, IconArrowDown = IconMaterialKeyboardArrowDownW100_1.default, IconToFront = IconMaterialFlipToFrontW100_1.default, IconToBack = IconMaterialFlipToBackW100_1.default, IconMakeCopy = IconMaterialContentCopyW100_1.default, IconGroup = IconMaterialAdGroupW100_1.default, IconUngroup = IconMaterialUngroupW100_1.default, IconGroupSelect = IconMaterialCheckCircleW100_1.default, Component = Line, className } = props, other = __rest(props, ["size", "minSize", "maxSize", "unitDefault", "floors", "defaults", "disabled", "IconAdd", "IconMenu", "IconCloseNavigation", "IconCloseMenu", "IconArrowBack", "IconSettings", "IconArrowUp", "IconArrowDown", "IconToFront", "IconToBack", "IconMakeCopy", "IconGroup", "IconUngroup", "IconGroupSelect", "Component", "className"]);
|
270
|
+
const { classes } = useStyle();
|
271
|
+
const [openNavigation, setOpenNavigation] = react_1.default.useState(false);
|
272
|
+
const [openMenu, setOpenMenu] = react_1.default.useState(false);
|
273
|
+
const [items, setItems] = react_1.default.useState([]);
|
274
|
+
const [elementSearch, setElementSearch] = react_1.default.useState('');
|
275
|
+
const [selected, setSelected] = react_1.default.useState();
|
276
|
+
const [selectedGroup, setSelectedGroup] = react_1.default.useState();
|
277
|
+
const [positions, setPositions] = react_1.default.useState({});
|
278
|
+
const [itemOpen, setItemOpen] = react_1.default.useState();
|
279
|
+
const [keepAspectRatio, setKeepAspectRatio] = react_1.default.useState(true);
|
280
|
+
const [openOptions, setOpenOptions] = react_1.default.useState(false);
|
281
|
+
const [unit, setUnit] = react_1.default.useState(unitDefault || 'px');
|
282
|
+
const [guidelines, setGuidelines] = react_1.default.useState('dots');
|
283
|
+
const [itemsSelected, setItemsSelected] = react_1.default.useState({});
|
284
|
+
const refs = {
|
285
|
+
root: react_1.default.useRef(undefined),
|
286
|
+
container: react_1.default.useRef(undefined),
|
287
|
+
items: react_1.default.useRef(items),
|
288
|
+
unit: react_1.default.useRef(unit),
|
289
|
+
itemOpen: react_1.default.useRef(itemOpen),
|
290
|
+
itemsSelected: react_1.default.useRef(itemsSelected),
|
291
|
+
positions: react_1.default.useRef(positions),
|
292
|
+
selected: react_1.default.useRef(selected),
|
293
|
+
selectedGroup: react_1.default.useRef(selectedGroup),
|
294
|
+
mouseDown: react_1.default.useRef(undefined),
|
295
|
+
keyDown: react_1.default.useRef(undefined),
|
296
|
+
previousMouseEvent: react_1.default.useRef(undefined),
|
297
|
+
methods: react_1.default.useRef({}),
|
298
|
+
keepAspectRatio: react_1.default.useRef(keepAspectRatio),
|
299
|
+
units: react_1.default.useRef({
|
300
|
+
px: 1,
|
301
|
+
m: 40
|
302
|
+
}),
|
303
|
+
groupCounter: react_1.default.useRef(1),
|
304
|
+
minSize: react_1.default.useRef(minSize),
|
305
|
+
maxSize: react_1.default.useRef(maxSize),
|
306
|
+
floors: react_1.default.useRef(floors),
|
307
|
+
defaults: react_1.default.useRef(defaults),
|
308
|
+
disabled: react_1.default.useRef(disabled)
|
309
|
+
};
|
310
|
+
refs.items.current = items;
|
311
|
+
refs.unit.current = unit;
|
312
|
+
refs.itemOpen.current = itemOpen;
|
313
|
+
refs.itemsSelected.current = itemsSelected;
|
314
|
+
refs.positions.current = positions;
|
315
|
+
refs.selected.current = selected;
|
316
|
+
refs.selectedGroup.current = selectedGroup;
|
317
|
+
refs.keepAspectRatio.current = keepAspectRatio;
|
318
|
+
refs.minSize.current = minSize;
|
319
|
+
refs.maxSize.current = maxSize;
|
320
|
+
refs.floors.current = floors;
|
321
|
+
refs.defaults.current = defaults;
|
322
|
+
refs.disabled.current = disabled;
|
323
|
+
const onItemsResolve = react_1.default.useCallback((items_) => {
|
324
|
+
// sort
|
325
|
+
items_.sort((a, b) => a.order - b.order);
|
326
|
+
return items_;
|
327
|
+
}, []);
|
328
|
+
const onGroupSelect = react_1.default.useCallback((item, event) => {
|
329
|
+
event.stopPropagation();
|
330
|
+
setSelectedGroup(item === refs.selectedGroup.current ? null : item);
|
331
|
+
// reset
|
332
|
+
setSelected(null);
|
333
|
+
}, []);
|
334
|
+
const onItemSelect = react_1.default.useCallback((item) => {
|
335
|
+
const itemsSelectedNew = Object.assign({}, refs.itemsSelected.current);
|
336
|
+
const exists = itemsSelectedNew[item.id];
|
337
|
+
if (exists)
|
338
|
+
delete itemsSelectedNew[item.id];
|
339
|
+
else
|
340
|
+
itemsSelectedNew[item.id] = item;
|
341
|
+
setItemsSelected(itemsSelectedNew);
|
342
|
+
}, []);
|
343
|
+
const onItemsGroup = react_1.default.useCallback(() => {
|
344
|
+
let itemsNew = [...refs.items.current];
|
345
|
+
const group = `Group ${refs.groupCounter.current++}`;
|
346
|
+
let minOrder = Number.MAX_SAFE_INTEGER;
|
347
|
+
const itemsGroup = [];
|
348
|
+
const ordersGroup = [];
|
349
|
+
itemsNew.forEach(item => {
|
350
|
+
if (refs.itemsSelected.current[item.id]) {
|
351
|
+
item.group = group;
|
352
|
+
itemsGroup.push(item);
|
353
|
+
ordersGroup.push(item.order);
|
354
|
+
minOrder = Math.min(minOrder, item.order);
|
355
|
+
}
|
356
|
+
});
|
357
|
+
const start = itemsNew.filter((item_) => item_.order < minOrder);
|
358
|
+
const end = itemsNew.filter((item_) => item_.order > minOrder && !ordersGroup.includes(item_.order));
|
359
|
+
itemsNew = [...start, ...itemsGroup, ...end].map((item_, index) => {
|
360
|
+
item_.order = index + 1;
|
361
|
+
return item_;
|
362
|
+
});
|
363
|
+
setItems(onItemsResolve(itemsNew));
|
364
|
+
setItemsSelected([]);
|
365
|
+
}, []);
|
366
|
+
const onItemsUngroup = react_1.default.useCallback((group) => {
|
367
|
+
const itemsNew = [...refs.items.current];
|
368
|
+
itemsNew.forEach(item => {
|
369
|
+
if (item.group === group)
|
370
|
+
delete item.group;
|
371
|
+
});
|
372
|
+
setItems(itemsNew);
|
373
|
+
}, []);
|
374
|
+
const onItemMakeCopy = react_1.default.useCallback((item = refs.itemOpen.current) => {
|
375
|
+
const itemNew = Object.assign(Object.assign({}, (0, utils_1.copy)(item)), { id: (0, utils_1.getID)(), name: `${item.name} copy` });
|
376
|
+
itemNew.props['data-element'] = true;
|
377
|
+
itemNew.props['data-id'] = itemNew.id;
|
378
|
+
itemNew.props['data-name'] = itemNew.name;
|
379
|
+
itemNew.props.style.left -= itemNew.props.style.width + 40;
|
380
|
+
const itemsNew = [...refs.items.current];
|
381
|
+
itemsNew.push(itemNew);
|
382
|
+
setItems(onItemsResolve(itemsNew));
|
383
|
+
}, []);
|
384
|
+
const onItemMove = react_1.default.useCallback((item, orderPrevious, orderNew, event) => {
|
385
|
+
event === null || event === void 0 ? void 0 : event.preventDefault();
|
386
|
+
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
387
|
+
const itemsPrevious = refs.items.current;
|
388
|
+
let itemsNew = [];
|
389
|
+
let itemNew = itemsPrevious.find((item_) => item_.order === orderNew);
|
390
|
+
const up = orderNew < orderPrevious;
|
391
|
+
if (itemNew.group || item.isGroup) {
|
392
|
+
const partTo = itemNew.group ? itemsPrevious.filter((item_) => item_.group === itemNew.group) : [itemNew];
|
393
|
+
const partFrom = item.isGroup ? itemsPrevious.filter((item_) => item_.group === item.group) : [item];
|
394
|
+
if (up)
|
395
|
+
itemsNew.push(...partFrom, ...partTo);
|
396
|
+
else
|
397
|
+
itemsNew.push(...partTo, ...partFrom);
|
398
|
+
// start, end order
|
399
|
+
const orderSmallest = Math.min(...itemsNew.map((item_) => item_.order));
|
400
|
+
const orderLargest = Math.max(...itemsNew.map((item_) => item_.order));
|
401
|
+
const start = itemsPrevious.filter((item_) => item_.order < orderSmallest);
|
402
|
+
const end = itemsPrevious.filter((item_) => item_.order > orderLargest);
|
403
|
+
itemsNew = [...start, ...itemsNew, ...end].map((item_, index) => {
|
404
|
+
item_.order = index + 1;
|
405
|
+
return item_;
|
406
|
+
});
|
407
|
+
}
|
408
|
+
else {
|
409
|
+
let itemPrevious;
|
410
|
+
itemsPrevious.forEach((item_) => {
|
411
|
+
if (item_.order === orderPrevious)
|
412
|
+
itemPrevious = item_;
|
413
|
+
if (item_.order === orderNew)
|
414
|
+
itemNew = item_;
|
415
|
+
});
|
416
|
+
itemPrevious.order = orderNew;
|
417
|
+
itemNew.order = orderPrevious;
|
418
|
+
itemsNew = [...itemsPrevious];
|
419
|
+
}
|
420
|
+
setItems(onItemsResolve(itemsNew));
|
421
|
+
}, []);
|
422
|
+
const onUpdateGuidelines = react_1.default.useCallback((valueNew) => {
|
423
|
+
setGuidelines(valueNew);
|
424
|
+
}, []);
|
425
|
+
const onUpdateUnit = react_1.default.useCallback((valueNew) => {
|
426
|
+
setUnit(valueNew);
|
427
|
+
}, []);
|
428
|
+
const onOpenOpenOptions = react_1.default.useCallback(() => {
|
429
|
+
setItemOpen(false);
|
430
|
+
setOpenOptions(true);
|
431
|
+
}, []);
|
432
|
+
const onCloseOpenOptions = react_1.default.useCallback(() => {
|
433
|
+
setOpenOptions(false);
|
434
|
+
}, []);
|
435
|
+
const onChangeKeepAspectRatio = react_1.default.useCallback((valueNew) => {
|
436
|
+
setKeepAspectRatio(valueNew);
|
437
|
+
}, []);
|
438
|
+
const getUnitValue = react_1.default.useCallback((valueNew_) => {
|
439
|
+
if (['', ' ', '+', '-', 'e', 'e+', 'e-', undefined, null].includes(valueNew_))
|
440
|
+
return valueNew_;
|
441
|
+
let valueNew = +valueNew_;
|
442
|
+
const unit_ = refs.unit.current;
|
443
|
+
if (!valueNew)
|
444
|
+
valueNew = (0, utils_1.clamp)(+valueNew_, refs.minSize.current, refs.maxSize.current);
|
445
|
+
valueNew = unit_ === 'px' ? +valueNew : +valueNew / refs.units.current.m;
|
446
|
+
valueNew = (0, utils_1.clamp)(+valueNew % 1 > 0 ? +(valueNew).toFixed(4) : valueNew, refs.minSize.current, refs.maxSize.current);
|
447
|
+
if ((String(valueNew_).startsWith('-0') || String(valueNew_).includes('.')) && (0, utils_1.clamp)(+valueNew_, refs.minSize.current, refs.maxSize.current) === +valueNew_)
|
448
|
+
return valueNew_;
|
449
|
+
return !valueNew ? (0, utils_1.clamp)(+valueNew, refs.minSize.current, refs.maxSize.current) : valueNew;
|
450
|
+
}, []);
|
451
|
+
const toUnitValue = react_1.default.useCallback((valueNew_, raw = false) => {
|
452
|
+
if (['', ' ', '+', '-', 'e', 'e+', 'e-', undefined, null].includes(valueNew_))
|
453
|
+
return valueNew_;
|
454
|
+
let valueNew = valueNew_;
|
455
|
+
const unit_ = refs.unit.current;
|
456
|
+
if (!valueNew)
|
457
|
+
valueNew = (0, utils_1.clamp)(+valueNew_, refs.minSize.current, refs.maxSize.current);
|
458
|
+
valueNew = unit_ === 'px' ? +valueNew : +valueNew * refs.units.current.m;
|
459
|
+
valueNew = (0, utils_1.clamp)(+valueNew % 1 > 0 ? +(valueNew).toFixed(4) : valueNew, refs.minSize.current, refs.maxSize.current);
|
460
|
+
if (raw && (String(valueNew_).startsWith('-0') || String(valueNew_).includes('.')) && (0, utils_1.clamp)(+valueNew_, refs.minSize.current, refs.maxSize.current) === +valueNew_)
|
461
|
+
return valueNew_;
|
462
|
+
return valueNew;
|
463
|
+
}, []);
|
464
|
+
const onItemCenter = react_1.default.useCallback((item) => {
|
465
|
+
const root = refs.root.current;
|
466
|
+
const positions_ = refs.positions.current;
|
467
|
+
const style_ = item.props.style;
|
468
|
+
const { left, top, width, height } = style_;
|
469
|
+
const valueNew = Object.assign(Object.assign({}, refs.positions.current), { left: (left * positions_.zoom * -1) + (root.clientWidth / 2) - ((width * positions_.zoom) / 2), top: (top * positions_.zoom * -1) + (root.clientHeight / 2) - ((height * positions_.zoom) / 2) });
|
470
|
+
refs.methods.current.updatePositions(valueNew);
|
471
|
+
}, []);
|
472
|
+
const onItemOpen = react_1.default.useCallback((item) => {
|
473
|
+
setSelected(item === null || item === void 0 ? void 0 : item.id);
|
474
|
+
setItemOpen(item);
|
475
|
+
// center
|
476
|
+
onItemCenter(item);
|
477
|
+
// reset
|
478
|
+
setSelectedGroup(null);
|
479
|
+
}, []);
|
480
|
+
const onItemClose = react_1.default.useCallback(() => {
|
481
|
+
setItemOpen(null);
|
482
|
+
}, []);
|
483
|
+
const onElementSearch = react_1.default.useCallback((value) => {
|
484
|
+
setElementSearch(value);
|
485
|
+
}, []);
|
486
|
+
const onElementSearchClear = react_1.default.useCallback(() => {
|
487
|
+
setElementSearch('');
|
488
|
+
}, []);
|
489
|
+
const onItemRemove = react_1.default.useCallback((id) => {
|
490
|
+
var _a;
|
491
|
+
const item = refs.items.current.find((item_) => item_.id === id);
|
492
|
+
if (item)
|
493
|
+
setItems((previous) => onItemsResolve(previous.filter((item_) => !(item_.id === id || (refs.selectedGroup.current && refs.selectedGroup.current === item.group && item.group && item_.group === item.group)))));
|
494
|
+
if (((_a = refs.itemOpen.current) === null || _a === void 0 ? void 0 : _a.id) === id) {
|
495
|
+
setItemOpen(null);
|
496
|
+
}
|
497
|
+
}, []);
|
498
|
+
const onKeyUp = react_1.default.useCallback(() => {
|
499
|
+
refs.keyDown.current = null;
|
500
|
+
refs.previousMouseEvent.current = undefined;
|
501
|
+
}, []);
|
502
|
+
const onKeyDown = react_1.default.useCallback((event) => {
|
503
|
+
var _a;
|
504
|
+
if (event.key === 'Backspace') {
|
505
|
+
const activeElement = (_a = window.document.activeElement) === null || _a === void 0 ? void 0 : _a.nodeName;
|
506
|
+
if (refs.selected.current &&
|
507
|
+
!(activeElement && ['input', 'h4'].includes(activeElement.toLowerCase())))
|
508
|
+
onItemRemove(refs.selected.current);
|
509
|
+
}
|
510
|
+
refs.keyDown.current = event.key;
|
511
|
+
}, []);
|
512
|
+
const onMouseUp = react_1.default.useCallback(() => {
|
513
|
+
refs.mouseDown.current = null;
|
514
|
+
refs.previousMouseEvent.current = undefined;
|
515
|
+
}, []);
|
516
|
+
const onMouseDown = react_1.default.useCallback((event) => {
|
517
|
+
const target = event.target;
|
518
|
+
const element = target.closest('[data-element]');
|
519
|
+
if (element) {
|
520
|
+
const item = refs.items.current.find((item_) => item_.id === element.dataset.id);
|
521
|
+
if (item) {
|
522
|
+
refs.mouseDown.current = {
|
523
|
+
id: item.id,
|
524
|
+
item,
|
525
|
+
element
|
526
|
+
};
|
527
|
+
}
|
528
|
+
}
|
529
|
+
}, []);
|
530
|
+
const onTouchStart = react_1.default.useCallback((event) => {
|
531
|
+
const target = event.target;
|
532
|
+
const element = target.closest('[data-element]');
|
533
|
+
if (element) {
|
534
|
+
refs.mouseDown.current = {
|
535
|
+
id: element.dataset.id,
|
536
|
+
element
|
537
|
+
};
|
538
|
+
}
|
539
|
+
}, []);
|
540
|
+
const onMoveItem = react_1.default.useCallback((x, y) => {
|
541
|
+
const mouseDown = refs.mouseDown.current;
|
542
|
+
if (mouseDown) {
|
543
|
+
setItems((previous) => {
|
544
|
+
const id = mouseDown.id;
|
545
|
+
const item = previous.find((item_) => item_.id === id);
|
546
|
+
let updated = 0;
|
547
|
+
const itemsNew = [...previous].map((item_) => {
|
548
|
+
if ((item_.id === id || (refs.selectedGroup.current && refs.selectedGroup.current === item.group && item.group && item_.group === item.group))) {
|
549
|
+
item_.props.style.left += x;
|
550
|
+
item_.props.style.top += y;
|
551
|
+
updated++;
|
552
|
+
}
|
553
|
+
return item_;
|
554
|
+
});
|
555
|
+
if (!!updated)
|
556
|
+
return itemsNew;
|
557
|
+
return previous;
|
558
|
+
});
|
559
|
+
}
|
560
|
+
}, []);
|
561
|
+
const onMove = react_1.default.useCallback((x_, y_, event) => {
|
562
|
+
if (refs.mouseDown.current && refs.previousMouseEvent.current && !refs.disabled.current) {
|
563
|
+
const { clientX: xPrevious, clientY: yPrevious } = refs.previousMouseEvent.current;
|
564
|
+
const zoomAdjusted = (1 / refs.positions.current.zoom);
|
565
|
+
const x = (x_ - xPrevious) * zoomAdjusted;
|
566
|
+
const y = (y_ - yPrevious) * zoomAdjusted;
|
567
|
+
onMoveItem(x, y);
|
568
|
+
}
|
569
|
+
}, []);
|
570
|
+
const onMouseMove = react_1.default.useCallback((event) => {
|
571
|
+
if (!refs.keyDown.current && refs.mouseDown.current && !refs.disabled.current) {
|
572
|
+
const { clientY, clientX } = event;
|
573
|
+
onMove(clientX, clientY, event);
|
574
|
+
refs.previousMouseEvent.current = event;
|
575
|
+
}
|
576
|
+
}, []);
|
577
|
+
const onTouchMove = react_1.default.useCallback((event) => {
|
578
|
+
if (!refs.keyDown.current && refs.mouseDown.current && !refs.disabled.current) {
|
579
|
+
const { clientY, clientX } = event.touches[0];
|
580
|
+
onMove(clientX, clientY, event);
|
581
|
+
refs.previousMouseEvent.current = event;
|
582
|
+
// Normalize for use as a mouseDown value
|
583
|
+
refs.previousMouseEvent.current.clientY = clientY;
|
584
|
+
refs.previousMouseEvent.current.clientX = clientX;
|
585
|
+
}
|
586
|
+
}, []);
|
587
|
+
react_1.default.useEffect(() => {
|
588
|
+
var _a;
|
589
|
+
onElementSearchClear();
|
590
|
+
const rootDocument = (0, utils_1.isEnvironment)('browser') ? (((_a = refs.root.current) === null || _a === void 0 ? void 0 : _a.ownerDocument) || window.document) : undefined;
|
591
|
+
rootDocument === null || rootDocument === void 0 ? void 0 : rootDocument.addEventListener('keyup', onKeyUp);
|
592
|
+
rootDocument === null || rootDocument === void 0 ? void 0 : rootDocument.addEventListener('keydown', onKeyDown);
|
593
|
+
rootDocument.addEventListener('mousemove', onMouseMove);
|
594
|
+
rootDocument.addEventListener('touchmove', onTouchMove, { passive: true });
|
595
|
+
rootDocument.addEventListener('mouseup', onMouseUp);
|
596
|
+
rootDocument.addEventListener('touchend', onMouseUp);
|
597
|
+
return () => {
|
598
|
+
rootDocument.removeEventListener('keyup', onKeyUp);
|
599
|
+
rootDocument.removeEventListener('keydown', onKeyDown);
|
600
|
+
rootDocument.removeEventListener('mousemove', onMouseMove);
|
601
|
+
rootDocument.removeEventListener('touchmove', onTouchMove);
|
602
|
+
rootDocument.removeEventListener('mouseup', onMouseUp);
|
603
|
+
rootDocument.removeEventListener('touchend', onMouseUp);
|
604
|
+
};
|
605
|
+
}, []);
|
606
|
+
const onOpenNavigation = react_1.default.useCallback(() => {
|
607
|
+
setOpenOptions(false);
|
608
|
+
setItemOpen(false);
|
609
|
+
setOpenNavigation(true);
|
610
|
+
}, []);
|
611
|
+
const onCloseNavigation = react_1.default.useCallback(() => {
|
612
|
+
setOpenNavigation(false);
|
613
|
+
setTimeout(() => {
|
614
|
+
setItemOpen(null);
|
615
|
+
}, 140);
|
616
|
+
}, []);
|
617
|
+
const onOpenMenu = react_1.default.useCallback(() => {
|
618
|
+
setOpenMenu(true);
|
619
|
+
}, []);
|
620
|
+
const onCloseMenu = react_1.default.useCallback(() => {
|
621
|
+
setOpenMenu(false);
|
622
|
+
}, []);
|
623
|
+
const onChangeHTMLCanvas = react_1.default.useCallback((valueNew) => {
|
624
|
+
setPositions(valueNew);
|
625
|
+
refs.positions.current = valueNew;
|
626
|
+
}, []);
|
627
|
+
const onClickSpace = react_1.default.useCallback((event) => {
|
628
|
+
const target = event.target;
|
629
|
+
const element = target.closest('[data-element]');
|
630
|
+
if (element) {
|
631
|
+
const id = element.dataset.id;
|
632
|
+
if (refs.selected.current !== id) {
|
633
|
+
const item = refs.items.current.find((item_) => item_.id === id);
|
634
|
+
setSelected(id);
|
635
|
+
if (refs.itemOpen.current)
|
636
|
+
setItemOpen(item);
|
637
|
+
// reset
|
638
|
+
if (item.group !== refs.selectedGroup.current)
|
639
|
+
setSelectedGroup(null);
|
640
|
+
}
|
641
|
+
}
|
642
|
+
else {
|
643
|
+
setSelected(null);
|
644
|
+
setSelectedGroup(null);
|
645
|
+
}
|
646
|
+
}, []);
|
647
|
+
const onItemClick = react_1.default.useCallback((item, event) => {
|
648
|
+
if (event.detail === 2) {
|
649
|
+
setSelected(item.id);
|
650
|
+
setItemOpen(item);
|
651
|
+
setOpenNavigation(true);
|
652
|
+
setOpenMenu(false);
|
653
|
+
// reset
|
654
|
+
if (item.group !== refs.selectedGroup.current)
|
655
|
+
setSelectedGroup(null);
|
656
|
+
}
|
657
|
+
}, []);
|
658
|
+
const onItemUpdate = react_1.default.useCallback((valueNew, item = refs.itemOpen.current) => {
|
659
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
660
|
+
const itemsNew = [...refs.items.current];
|
661
|
+
const index = itemsNew.findIndex(item_ => item_.id === item.id);
|
662
|
+
if (index > -1) {
|
663
|
+
const itemToUpdate = itemsNew[index];
|
664
|
+
const ratio = itemToUpdate.props.style.width / itemToUpdate.props.style.height;
|
665
|
+
if (valueNew.name !== undefined)
|
666
|
+
itemToUpdate.name = valueNew.name;
|
667
|
+
if (valueNew.id_custom !== undefined)
|
668
|
+
itemToUpdate.id_custom = valueNew.id_custom;
|
669
|
+
if (valueNew.selectable !== undefined)
|
670
|
+
itemToUpdate.selectable = valueNew.selectable;
|
671
|
+
if (valueNew.description !== undefined)
|
672
|
+
itemToUpdate.description = valueNew.description;
|
673
|
+
if (valueNew.width !== undefined)
|
674
|
+
itemToUpdate.width = valueNew.width;
|
675
|
+
if (valueNew.height !== undefined)
|
676
|
+
itemToUpdate.height = valueNew.height;
|
677
|
+
if (valueNew.backgroundImage !== undefined)
|
678
|
+
itemToUpdate.backgroundImage = valueNew.backgroundImage;
|
679
|
+
if (((_a = valueNew.props) === null || _a === void 0 ? void 0 : _a.color) !== undefined)
|
680
|
+
itemToUpdate.props.color = valueNew.props.color;
|
681
|
+
const backgroundImage = valueNew.backgroundImage !== undefined ? valueNew.backgroundImage : item.backgroundImage !== undefined ? item.backgroundImage : null;
|
682
|
+
if (backgroundImage) {
|
683
|
+
itemToUpdate.props.style.backgroundImage = `url(/assets/svg/space/floor/${backgroundImage}.svg)`;
|
684
|
+
itemToUpdate.props.style.backgroundSize = 70;
|
685
|
+
}
|
686
|
+
else {
|
687
|
+
itemToUpdate.props.style.backgroundImage = itemToUpdate.props.style.backgroundSize = null;
|
688
|
+
}
|
689
|
+
if (valueNew.rotate !== undefined)
|
690
|
+
itemToUpdate.rotate = valueNew.rotate;
|
691
|
+
itemToUpdate.props.style.transform = `rotate(${valueNew.rotate !== undefined ? valueNew.rotate : item.rotate !== undefined ? item.rotate : 0}deg)`;
|
692
|
+
itemToUpdate.props.style = Object.assign(Object.assign({}, itemToUpdate.props.style), (_b = valueNew.props) === null || _b === void 0 ? void 0 : _b.style);
|
693
|
+
if (!['icon'].includes(item.type) && refs.keepAspectRatio.current) {
|
694
|
+
if ((_d = (_c = valueNew.props) === null || _c === void 0 ? void 0 : _c.style) === null || _d === void 0 ? void 0 : _d.width) {
|
695
|
+
let valueHeight = ((_f = (_e = valueNew.props) === null || _e === void 0 ? void 0 : _e.style) === null || _f === void 0 ? void 0 : _f.width) / ratio;
|
696
|
+
valueHeight = (0, utils_1.clamp)(+valueHeight, refs.minSize.current, refs.maxSize.current);
|
697
|
+
itemToUpdate.props.style.height = itemToUpdate.height = valueHeight % 1 > 0 ? +(valueHeight).toFixed(4) : valueHeight;
|
698
|
+
if (Number.isNaN(itemToUpdate.props.style.height))
|
699
|
+
itemToUpdate.props.style.height = itemToUpdate.height = (_h = (_g = valueNew.props) === null || _g === void 0 ? void 0 : _g.style) === null || _h === void 0 ? void 0 : _h.width;
|
700
|
+
}
|
701
|
+
if ((_k = (_j = valueNew.props) === null || _j === void 0 ? void 0 : _j.style) === null || _k === void 0 ? void 0 : _k.height) {
|
702
|
+
let valueWidth = ((_m = (_l = valueNew.props) === null || _l === void 0 ? void 0 : _l.style) === null || _m === void 0 ? void 0 : _m.height) * ratio;
|
703
|
+
valueWidth = (0, utils_1.clamp)(+valueWidth, refs.minSize.current, refs.maxSize.current);
|
704
|
+
itemToUpdate.props.style.width = itemToUpdate.width = valueWidth % 1 > 0 ? +(valueWidth).toFixed(4) : valueWidth;
|
705
|
+
if (Number.isNaN(itemToUpdate.props.style.width))
|
706
|
+
itemToUpdate.props.style.width = itemToUpdate.width = (_p = (_o = valueNew.props) === null || _o === void 0 ? void 0 : _o.style) === null || _p === void 0 ? void 0 : _p.height;
|
707
|
+
}
|
708
|
+
}
|
709
|
+
setItems(onItemsResolve(itemsNew));
|
710
|
+
}
|
711
|
+
}, []);
|
712
|
+
const optionsMenu = react_1.default.useMemo(() => {
|
713
|
+
var _a, _b, _c, _d;
|
714
|
+
return [
|
715
|
+
// 1) furniture
|
716
|
+
// 1.1) table
|
717
|
+
// 1.1.1) oval
|
718
|
+
{
|
719
|
+
version: 'table-oval-seat-4-1',
|
720
|
+
type: 'icon',
|
721
|
+
name: 'Table oval seat 4, 1',
|
722
|
+
tags: ['inside', 'furniture', 'oval', 'table', 'seats-4'],
|
723
|
+
props: {
|
724
|
+
color: (_b = (_a = refs.defaults.current) === null || _a === void 0 ? void 0 : _a.color) === null || _b === void 0 ? void 0 : _b.table,
|
725
|
+
style: {
|
726
|
+
width: 120,
|
727
|
+
height: 'auto'
|
728
|
+
}
|
729
|
+
}
|
730
|
+
},
|
731
|
+
// 1.1.2) rectangle
|
732
|
+
{
|
733
|
+
version: 'table-rectangle-seat-6-1',
|
734
|
+
type: 'icon',
|
735
|
+
name: 'Table rectangle seat 6, 1',
|
736
|
+
tags: ['inside', 'furniture', 'rectangle', 'table', 'seats-6'],
|
737
|
+
props: {
|
738
|
+
color: (_d = (_c = refs.defaults.current) === null || _c === void 0 ? void 0 : _c.color) === null || _d === void 0 ? void 0 : _d.table,
|
739
|
+
style: {
|
740
|
+
width: 160,
|
741
|
+
height: 'auto'
|
742
|
+
}
|
743
|
+
}
|
744
|
+
},
|
745
|
+
// simple
|
746
|
+
// shape
|
747
|
+
// rectangle
|
748
|
+
{
|
749
|
+
version: 'rectangle',
|
750
|
+
type: 'shape',
|
751
|
+
name: 'Rectangle',
|
752
|
+
tags: ['simple', 'rectangle'],
|
753
|
+
props: {
|
754
|
+
style: {
|
755
|
+
width: 240,
|
756
|
+
height: 240,
|
757
|
+
borderWidth: 1.5,
|
758
|
+
borderStyle: 'solid',
|
759
|
+
borderColor: 'rgb(255, 195, 66)',
|
760
|
+
backgroundColor: 'rgba(245, 245, 220, 0.54)'
|
761
|
+
}
|
762
|
+
}
|
763
|
+
},
|
764
|
+
// oval
|
765
|
+
{
|
766
|
+
version: 'oval',
|
767
|
+
type: 'shape',
|
768
|
+
name: 'Oval',
|
769
|
+
tags: ['simple', 'oval'],
|
770
|
+
props: {
|
771
|
+
style: {
|
772
|
+
width: 240,
|
773
|
+
height: 240,
|
774
|
+
borderWidth: 1.5,
|
775
|
+
borderStyle: 'solid',
|
776
|
+
borderColor: 'rgb(255, 195, 66)',
|
777
|
+
backgroundColor: 'rgba(245, 245, 220, 0.54)',
|
778
|
+
borderRadius: 240000
|
779
|
+
}
|
780
|
+
}
|
781
|
+
}
|
782
|
+
];
|
783
|
+
}, []);
|
784
|
+
const elementsMenu = react_1.default.useMemo(() => {
|
785
|
+
const valueNew = [...optionsMenu].filter(item => item.name.toLowerCase().includes(elementSearch.toLowerCase()));
|
786
|
+
return valueNew;
|
787
|
+
}, [optionsMenu, elementSearch]);
|
788
|
+
const getElement = react_1.default.useCallback((item) => {
|
789
|
+
var _a, _b;
|
790
|
+
const otherElementProps = {
|
791
|
+
onMouseDown,
|
792
|
+
onTouchStart,
|
793
|
+
onClick: (event) => onItemClick(item, event)
|
794
|
+
};
|
795
|
+
const positions_ = refs.positions.current;
|
796
|
+
const textZoomAdjusted = 1 / positions_.zoom;
|
797
|
+
const isSelected = selected === item.id || (refs.selectedGroup.current && (refs.selectedGroup.current === item.group));
|
798
|
+
const textOtherProps = {
|
799
|
+
style: {
|
800
|
+
transform: `scale(${textZoomAdjusted})`,
|
801
|
+
// transform: `scale(${textZoomAdjusted}) rotate(-${item.rotate}deg)`
|
802
|
+
}
|
803
|
+
};
|
804
|
+
const rootStyle = Object.assign({}, (_a = item.props) === null || _a === void 0 ? void 0 : _a.style);
|
805
|
+
let rootElement = null;
|
806
|
+
const styleIcon = {
|
807
|
+
transform: 'unset'
|
808
|
+
};
|
809
|
+
if (item.version === 'table-oval-seat-4-1') {
|
810
|
+
rootElement = ((0, jsx_runtime_1.jsx)(IconFurnitureTableOvalSeat4Version1, { color: item.props.color, style: Object.assign(Object.assign({}, item.props.style), styleIcon) }));
|
811
|
+
}
|
812
|
+
if (item.version === 'table-rectangle-seat-6-1') {
|
813
|
+
rootElement = ((0, jsx_runtime_1.jsx)(IconFurnitureTableRectangleSeat6Version1, { color: item.props.color, style: Object.assign(Object.assign({}, item.props.style), styleIcon) }));
|
814
|
+
}
|
815
|
+
if (['icon'].includes(item.type)) {
|
816
|
+
delete rootStyle.width;
|
817
|
+
delete rootStyle.height;
|
818
|
+
}
|
819
|
+
const widthText = `${item.props.style.width % 1 > 0 ? getUnitValue(item.props.style.width) : (0, utils_1.numberWithCommas)(getUnitValue(item.props.style.width))}${refs.unit.current}`;
|
820
|
+
const heightText = `${item.props.style.height % 1 > 0 ? getUnitValue(item.props.style.height) : (0, utils_1.numberWithCommas)(getUnitValue(item.props.style.height))}${refs.unit.current}`;
|
821
|
+
return ((0, jsx_runtime_1.jsxs)(Line, Object.assign({}, item.props, otherElementProps, { className: (0, style_react_1.classNames)([
|
822
|
+
(_b = item.props) === null || _b === void 0 ? void 0 : _b.className,
|
823
|
+
isSelected && classes.itemSelected
|
824
|
+
]), style: Object.assign({}, rootStyle) }, { children: [rootElement, isSelected && (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'b3', align: 'center', color: 'info', className: classes.metaName }, textOtherProps, { dangerouslySetInnerHTML: {
|
825
|
+
__html: (0, utils_1.textToInnerHTML)(item.name)
|
826
|
+
} })), (0, jsx_runtime_1.jsxs)(Type, Object.assign({ version: 'b3', align: 'center', color: 'info', className: classes.meteSize }, textOtherProps, { children: [['shape'].includes(item.type) && (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [widthText, " x ", heightText] }), ['icon'].includes(item.type) && (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Width: ", widthText] })] }))] })] }), item.id));
|
827
|
+
}, [selected, onMouseDown, onTouchStart]);
|
828
|
+
const getThumbnail = react_1.default.useCallback((item) => {
|
829
|
+
let element = null;
|
830
|
+
if (['rectangle', 'oval'].includes(item.version)) {
|
831
|
+
element = ((0, jsx_runtime_1.jsx)(Line, { style: Object.assign(Object.assign({}, item.props.style), { width: '100%', height: '100%' }) }));
|
832
|
+
}
|
833
|
+
const styleIcon = {
|
834
|
+
maxWidth: '100%',
|
835
|
+
maxHeight: '100%',
|
836
|
+
height: '100%',
|
837
|
+
width: '100%'
|
838
|
+
};
|
839
|
+
if (item.version === 'table-oval-seat-4-1') {
|
840
|
+
element = ((0, jsx_runtime_1.jsx)(IconFurnitureTableOvalSeat4Version1, { style: Object.assign(Object.assign({}, item.props.style), styleIcon) }));
|
841
|
+
}
|
842
|
+
if (item.version === 'table-rectangle-seat-6-1') {
|
843
|
+
element = ((0, jsx_runtime_1.jsx)(IconFurnitureTableRectangleSeat6Version1, { style: Object.assign(Object.assign({}, item.props.style), styleIcon) }));
|
844
|
+
}
|
845
|
+
return ((0, jsx_runtime_1.jsx)(Line, Object.assign({ align: 'center', justify: 'center', className: classes.elementImage }, { children: element })));
|
846
|
+
}, []);
|
847
|
+
const onAdd = react_1.default.useCallback((item) => {
|
848
|
+
const itemToAdd = (0, utils_1.copy)(item);
|
849
|
+
itemToAdd.name = `${itemToAdd.name} ${refs.items.current.length ? refs.items.current.length + 1 : ''}`.trim();
|
850
|
+
const { zoom = 1, left = 0, top = 0 } = refs.positions.current;
|
851
|
+
setItems((previous) => {
|
852
|
+
var _a, _b;
|
853
|
+
const id = (0, utils_1.getID)();
|
854
|
+
const width = itemToAdd.props.style.width;
|
855
|
+
const height = itemToAdd.props.style.height;
|
856
|
+
const object = Object.assign(Object.assign({ id }, itemToAdd), { width,
|
857
|
+
height, rotate: 0, order: (((_a = previous[previous.length - 1]) === null || _a === void 0 ? void 0 : _a.order) || 0) + 1, props: Object.assign(Object.assign({}, itemToAdd.props), { 'data-onesy': true, 'data-element': true, 'data-id': id, 'data-name': itemToAdd.name, className: (0, style_react_1.classNames)([
|
858
|
+
(_b = itemToAdd.props) === null || _b === void 0 ? void 0 : _b.className,
|
859
|
+
classes.item
|
860
|
+
]), style: Object.assign(Object.assign({}, itemToAdd.props.style), { width,
|
861
|
+
height, left: Math.abs(left) / zoom, top: Math.abs(top) / zoom }) }) });
|
862
|
+
return onItemsResolve([
|
863
|
+
...previous,
|
864
|
+
object
|
865
|
+
]);
|
866
|
+
});
|
867
|
+
}, []);
|
868
|
+
const optionsBackgroundImage = react_1.default.useMemo(() => {
|
869
|
+
const options = refs.floors.current;
|
870
|
+
return options.map(item => (Object.assign(Object.assign({}, item), { name: ((0, jsx_runtime_1.jsx)("div", { style: {
|
871
|
+
width: 20,
|
872
|
+
height: 20,
|
873
|
+
backgroundImage: `url(${item.url})`,
|
874
|
+
bacgkroundSize: '17px'
|
875
|
+
} })) })));
|
876
|
+
}, []);
|
877
|
+
const onStopPropagation = react_1.default.useCallback((event) => {
|
878
|
+
event.stopPropagation();
|
879
|
+
}, []);
|
880
|
+
const indexItemOpen = itemOpen && items.findIndex((item_) => item_ === itemOpen);
|
881
|
+
const formRowProps = {
|
882
|
+
fullWidth: true,
|
883
|
+
MainProps: {
|
884
|
+
gap: 1.5
|
885
|
+
}
|
886
|
+
};
|
887
|
+
const itemsPrepared = react_1.default.useMemo(() => {
|
888
|
+
const result = {
|
889
|
+
'': {
|
890
|
+
index: Number.MAX_SAFE_INTEGER,
|
891
|
+
items: []
|
892
|
+
}
|
893
|
+
};
|
894
|
+
items.forEach((item) => {
|
895
|
+
const group = item.group || '';
|
896
|
+
if (!result[group])
|
897
|
+
result[group] = {
|
898
|
+
index: Number.MAX_SAFE_INTEGER,
|
899
|
+
items: []
|
900
|
+
};
|
901
|
+
result[group].items.push(item);
|
902
|
+
});
|
903
|
+
Object.values(result).forEach((item) => {
|
904
|
+
item.index = Math.min(...item.items.map((item_) => item_.index));
|
905
|
+
item.items.sort((a, b) => b.index - a.index);
|
906
|
+
});
|
907
|
+
const mainItems = [...result[''].items];
|
908
|
+
Object.keys(result).forEach(key => {
|
909
|
+
if (key) {
|
910
|
+
mainItems.push(Object.assign({ isGroup: true, group: key, order: result[key].items[0].order }, result[key]));
|
911
|
+
}
|
912
|
+
});
|
913
|
+
mainItems.sort((a, b) => a.order - b.order);
|
914
|
+
return mainItems;
|
915
|
+
}, [items, selectedGroup, selected]);
|
916
|
+
const itemOpenType = itemOpen === null || itemOpen === void 0 ? void 0 : itemOpen.type;
|
917
|
+
const elements = {
|
918
|
+
list: ((0, jsx_runtime_1.jsx)(List, Object.assign({ size: 'small', paddingVertical: 'none', noBackground: true, className: classes.list }, { children: itemsPrepared.map((item, index) => {
|
919
|
+
const groupSelected = refs.selectedGroup.current === item.group;
|
920
|
+
const someSelected = groupSelected || (item.isGroup && item.items.some((item_) => item_.id === refs.selected.current));
|
921
|
+
let orderStart = index;
|
922
|
+
let orderEnd = index;
|
923
|
+
if (item.isGroup) {
|
924
|
+
orderStart = item.items[0].order;
|
925
|
+
orderEnd = item.items[item.items.length - 1].order;
|
926
|
+
}
|
927
|
+
return item.isGroup ? ((0, jsx_runtime_1.jsx)(Form, Object.assign({ name: item.group, openDefault: someSelected, end: ((0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 0, direction: 'row', align: 'center' }, { children: [(0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ name: 'Move in front' }, { children: (0, jsx_runtime_1.jsx)(IconButton, Object.assign({ onClick: (event) => onItemMove(item, orderEnd, orderEnd + 1, event), size: 'small', disabled: orderEnd >= items.length }, { children: (0, jsx_runtime_1.jsx)(IconArrowDown, {}) })) })), (0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ name: 'Move behind' }, { children: (0, jsx_runtime_1.jsx)(IconButton, Object.assign({ onClick: (event) => onItemMove(item, orderStart, orderStart - 1, event), size: 'small', disabled: orderStart <= 1 }, { children: (0, jsx_runtime_1.jsx)(IconArrowUp, {}) })) })), (0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ name: 'Ungroup' }, { children: (0, jsx_runtime_1.jsx)(IconButton, Object.assign({ size: 'small', onClick: () => onItemsUngroup(item.group) }, { children: (0, jsx_runtime_1.jsx)(IconUngroup, {}) })) })), (0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ name: `${groupSelected ? 'Unselect' : 'Select'} group` }, { children: (0, jsx_runtime_1.jsx)(IconButton, Object.assign({ size: 'small', onClick: (event) => onGroupSelect(item.group, event), color: groupSelected ? 'success' : 'default', selected: groupSelected }, { children: (0, jsx_runtime_1.jsx)(IconGroupSelect, {}) })) }))] }))), AccordionProps: {
|
928
|
+
noExpandButton: true
|
929
|
+
}, size: 'small', wrapper: true, accordion: true, className: classes.accordion }, { children: item.items.map((itemGroup, indexItemGroup) => {
|
930
|
+
return ((0, jsx_runtime_1.jsx)(ListItem, { primary: ((0, jsx_runtime_1.jsx)(Type, { version: 'b2', dangerouslySetInnerHTML: {
|
931
|
+
__html: (0, utils_1.textToInnerHTML)(itemGroup.name)
|
932
|
+
} })), end: ((0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 0, direction: 'row', align: 'center' }, { children: [(0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ name: 'Move in front' }, { children: (0, jsx_runtime_1.jsx)(IconButton, Object.assign({ onClick: (event) => onItemMove(itemGroup, itemGroup.order, itemGroup.order + 1, event), size: 'small', disabled: indexItemGroup >= item.items.length - 1 }, { children: (0, jsx_runtime_1.jsx)(IconArrowDown, {}) })) })), (0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ name: 'Move behind' }, { children: (0, jsx_runtime_1.jsx)(IconButton, Object.assign({ onClick: (event) => onItemMove(itemGroup, itemGroup.order, itemGroup.order - 1, event), size: 'small', disabled: !indexItemGroup }, { children: (0, jsx_runtime_1.jsx)(IconArrowUp, {}) })) }))] }))), onClick: () => onItemOpen(itemGroup), selected: itemGroup.id === refs.selected.current, size: 'small', button: true, noBackground: true }, itemGroup.id));
|
933
|
+
}) }), index)) : ((0, jsx_runtime_1.jsx)(ListItem, { start: !item.group && !item.isGroup && ((0, jsx_runtime_1.jsx)(Checkbox, { value: !!itemsSelected[item.id], onChange: () => onItemSelect(item), onClick: onStopPropagation, size: 'small' })), primary: ((0, jsx_runtime_1.jsx)(Type, { version: 'b2', dangerouslySetInnerHTML: {
|
934
|
+
__html: (0, utils_1.textToInnerHTML)(item.name)
|
935
|
+
} })), end: ((0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 0, direction: 'row', align: 'center' }, { children: [(0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ name: 'Move in front' }, { children: (0, jsx_runtime_1.jsx)(IconButton, Object.assign({ onClick: (event) => onItemMove(item, item.order, item.order + 1, event), size: 'small', disabled: index >= items.length - 1 }, { children: (0, jsx_runtime_1.jsx)(IconArrowDown, {}) })) })), (0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ name: 'Move behind' }, { children: (0, jsx_runtime_1.jsx)(IconButton, Object.assign({ onClick: (event) => onItemMove(item, item.order, item.order - 1, event), size: 'small', disabled: !index }, { children: (0, jsx_runtime_1.jsx)(IconArrowUp, {}) })) }))] }))), onClick: () => onItemOpen(item), selected: item.id === refs.selected.current, size: 'small', button: true, noBackground: true }, item.id));
|
936
|
+
}) }))),
|
937
|
+
itemOpen: itemOpen && ((0, jsx_runtime_1.jsx)(Line, Object.assign({ gap: 2, flex: true, fullWidth: true, className: (0, style_react_1.classNames)([
|
938
|
+
classes.mainSidebar
|
939
|
+
]) }, { children: (0, jsx_runtime_1.jsxs)(FormRow, Object.assign({ name: (0, utils_1.cleanValue)(itemOpen.version, { capitalize: true }), fullWidth: true, end: ((0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 0, direction: 'row', align: 'center' }, { children: [(0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ name: 'Make a copy' }, { children: (0, jsx_runtime_1.jsx)(IconButton, Object.assign({ onClick: () => onItemMakeCopy() }, { children: (0, jsx_runtime_1.jsx)(IconMakeCopy, {}) })) })), (0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ name: 'Move to front' }, { children: (0, jsx_runtime_1.jsx)(IconButton, Object.assign({ onClick: () => onItemMove(itemOpen, itemOpen.order, items.length), disabled: indexItemOpen >= items.length - 1 }, { children: (0, jsx_runtime_1.jsx)(IconToFront, {}) })) })), (0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ name: 'Move to back' }, { children: (0, jsx_runtime_1.jsx)(IconButton, Object.assign({ onClick: () => onItemMove(itemOpen, itemOpen.order, 1), disabled: !indexItemOpen }, { children: (0, jsx_runtime_1.jsx)(IconToBack, {}) })) }))] }))), MainProps: {
|
940
|
+
gap: 1.5,
|
941
|
+
style: {
|
942
|
+
paddingBottom: 40
|
943
|
+
}
|
944
|
+
} }, { children: [(0, jsx_runtime_1.jsxs)(FormRow, Object.assign({}, formRowProps, { children: [itemOpen.group && ((0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'b2', priority: 'secondary' }, { children: itemOpen.group }))), (0, jsx_runtime_1.jsxs)(Label, Object.assign({ value: itemOpen === null || itemOpen === void 0 ? void 0 : itemOpen.selectable, onChange: (valueNew) => onItemUpdate({ selectable: valueNew }) }, { children: [(0, jsx_runtime_1.jsx)(Checkbox, {}), "Selectable"] })), (0, jsx_runtime_1.jsx)(TextField, { name: 'Custom ID', value: (itemOpen === null || itemOpen === void 0 ? void 0 : itemOpen.id_custom) || '', onChange: (valueNew) => onItemUpdate({ id_custom: valueNew }), size: 'small', fullWidth: true }), (0, jsx_runtime_1.jsx)(SmartTextField, { name: 'Description', valueDefault: (0, utils_1.textToInnerHTML)(itemOpen === null || itemOpen === void 0 ? void 0 : itemOpen.description) || '', onChange: (valueNew) => onItemUpdate({ description: valueNew }), minRows: 4, multiline: true, edit: true, style: {
|
945
|
+
marginTop: 0
|
946
|
+
} })] })), (0, jsx_runtime_1.jsx)(Divider, {}), (0, jsx_runtime_1.jsxs)(FormRow, Object.assign({ name: 'Size' }, formRowProps, { children: [(0, jsx_runtime_1.jsx)(NumericTextField, { name: 'Width', value: getUnitValue(itemOpen.width), onChange: (valueNew) => onItemUpdate({ width: toUnitValue(valueNew, true), props: { style: { width: toUnitValue(valueNew) } } }), min: minSize, max: maxSize, sufix: refs.unit.current, size: 'small' }), ['shape'].includes(itemOpenType) && (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(NumericTextField, { name: 'Height', value: getUnitValue(itemOpen.height), onChange: (valueNew) => onItemUpdate({ height: toUnitValue(valueNew, true), props: { style: { height: toUnitValue(valueNew) } } }), min: minSize, max: maxSize, sufix: refs.unit.current, size: 'small' }), (0, jsx_runtime_1.jsxs)(Label, Object.assign({ value: keepAspectRatio, onChange: onChangeKeepAspectRatio, size: 'small' }, { children: [(0, jsx_runtime_1.jsx)(Switch, {}), "Keep aspect ratio"] }))] })] })), (0, jsx_runtime_1.jsx)(Divider, {}), (0, jsx_runtime_1.jsx)(FormRow, Object.assign({ name: 'Rotate', description: `${(itemOpen.rotate || 0).toFixed(0)} deg`, style: {
|
947
|
+
paddingBottom: 16
|
948
|
+
} }, formRowProps, { children: (0, jsx_runtime_1.jsx)(Slider, { value: itemOpen.rotate || 0, onChange: (valueNew) => onItemUpdate({ rotate: valueNew }), min: 0, max: 360, marks: [
|
949
|
+
{ value: 0, label: '0' },
|
950
|
+
{ value: 360, label: '360' }
|
951
|
+
], labels: true, tooltip: true, style: {
|
952
|
+
maxWidth: 'unset',
|
953
|
+
width: 'calc(100% - 8px)',
|
954
|
+
margin: '12px 4px 16px'
|
955
|
+
} }) })), (0, jsx_runtime_1.jsx)(Divider, {}), (0, jsx_runtime_1.jsxs)(FormRow, Object.assign({ name: 'Style', size: 'regular' }, formRowProps, { MainProps: {
|
956
|
+
gap: 2.5
|
957
|
+
} }, { children: [['icon'].includes(itemOpenType) && (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(FormRow, Object.assign({ name: 'Color', size: 'small' }, formRowProps, { children: (0, jsx_runtime_1.jsx)(ColorTextField, { name: 'Color', value: (_a = itemOpen === null || itemOpen === void 0 ? void 0 : itemOpen.props) === null || _a === void 0 ? void 0 : _a.color, onChange: (valueNew) => onItemUpdate({ props: { color: valueNew } }) }) })) }), ['shape'].includes(itemOpenType) && (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(FormRow, Object.assign({ name: 'Background', size: 'small' }, formRowProps, { children: [(0, jsx_runtime_1.jsx)(Select, Object.assign({ name: 'Texture', value: itemOpen === null || itemOpen === void 0 ? void 0 : itemOpen.backgroundImage, onChange: (valueNew) => onItemUpdate({ backgroundImage: valueNew }), fullWidth: true, className: classes.select }, { children: optionsBackgroundImage.map(item => ((0, jsx_runtime_1.jsx)(ListItem, { primary: item.name, value: item.value, button: true, size: 'small' }, item.value))) })), (0, jsx_runtime_1.jsx)(ColorTextField, { name: 'Color', value: (_c = (_b = itemOpen === null || itemOpen === void 0 ? void 0 : itemOpen.props) === null || _b === void 0 ? void 0 : _b.style) === null || _c === void 0 ? void 0 : _c.backgroundColor, onChange: (valueNew) => onItemUpdate({ props: { style: { backgroundColor: valueNew } } }), opacity: true })] })), (0, jsx_runtime_1.jsxs)(FormRow, Object.assign({ name: 'Border', size: 'small' }, formRowProps, { children: [(0, jsx_runtime_1.jsx)(NumericTextField, { name: 'Width', value: getUnitValue((_e = (_d = itemOpen === null || itemOpen === void 0 ? void 0 : itemOpen.props) === null || _d === void 0 ? void 0 : _d.style) === null || _e === void 0 ? void 0 : _e.borderWidth), onChange: (valueNew) => onItemUpdate({ props: { style: { borderWidth: toUnitValue(valueNew) } } }), min: 0, max: 1e4, sufix: refs.unit.current, size: 'small' }), (0, jsx_runtime_1.jsx)(Select, { name: 'Style', value: (_g = (_f = itemOpen === null || itemOpen === void 0 ? void 0 : itemOpen.props) === null || _f === void 0 ? void 0 : _f.style) === null || _g === void 0 ? void 0 : _g.borderStyle, onChange: (valueNew) => onItemUpdate({ props: { style: { borderStyle: valueNew } } }), options: ['solid', 'dashed', 'dotted', 'double', 'groove', 'inset', 'outset', 'ridge', 'none'].map(item => ({
|
958
|
+
name: (0, utils_1.cleanValue)(item, { capitalize: true }),
|
959
|
+
value: item
|
960
|
+
})), fullWidth: true }), (0, jsx_runtime_1.jsx)(ColorTextField, { name: 'Color', value: (_j = (_h = itemOpen === null || itemOpen === void 0 ? void 0 : itemOpen.props) === null || _h === void 0 ? void 0 : _h.style) === null || _j === void 0 ? void 0 : _j.borderColor, onChange: (valueNew) => onItemUpdate({ props: { style: { borderColor: valueNew } } }), opacity: true })] }))] })] }))] })) }))),
|
961
|
+
options: ((0, jsx_runtime_1.jsxs)(Line, Object.assign({ flex: true, fullWidth: true, className: (0, style_react_1.classNames)([
|
962
|
+
classes.mainSidebar
|
963
|
+
]) }, { children: [(0, jsx_runtime_1.jsx)(FormRow, Object.assign({ name: 'Unit', description: 'Unit that equals some amount of pixels on the screen' }, formRowProps, { children: (0, jsx_runtime_1.jsxs)(Select, Object.assign({ name: 'Unit', value: unit, onChange: onUpdateUnit, fullWidth: true }, { children: [(0, jsx_runtime_1.jsx)(ListItem, { primary: ((0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'b2' }, { children: "Pixels" }))), secondary: ((0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'b3' }, { children: "1 pixel equals 1 pixel" }))), value: 'px', button: true }), (0, jsx_runtime_1.jsx)(ListItem, { primary: ((0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'b2' }, { children: "Meters" }))), secondary: ((0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'b3' }, { children: "1 meter equals 40 pixels" }))), value: 'm', button: true })] })) })), (0, jsx_runtime_1.jsx)(FormRow, Object.assign({ name: 'Guidelines' }, formRowProps, { children: (0, jsx_runtime_1.jsx)(Select, { name: 'Guidelines', value: guidelines, onChange: onUpdateGuidelines, options: [
|
964
|
+
{ name: 'Dots', value: 'dots' },
|
965
|
+
{ name: 'Lines', value: 'lines' }
|
966
|
+
], fullWidth: true }) }))] })))
|
967
|
+
};
|
968
|
+
return ((0, jsx_runtime_1.jsxs)(Surface, Object.assign({ ref: (item) => {
|
969
|
+
if (ref) {
|
970
|
+
if ((0, utils_1.is)('function', ref))
|
971
|
+
ref(item);
|
972
|
+
ref.current = item;
|
973
|
+
}
|
974
|
+
refs.root.current = item;
|
975
|
+
}, color: 'default', gap: 0, align: 'unset', justify: 'unset', flex: true, fullWidth: true, Component: Component, className: (0, style_react_1.classNames)([
|
976
|
+
(0, utils_2.staticClassName)('Space', theme) && [
|
977
|
+
'onesy-Space-root'
|
978
|
+
],
|
979
|
+
className,
|
980
|
+
classes.root,
|
981
|
+
disabled && classes.disabled
|
982
|
+
]) }, other, { children: [(0, jsx_runtime_1.jsx)(Line, Object.assign({ direction: 'row', justify: 'flex-start', className: classes.actionsStart }, { children: (0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ name: 'Open navigation' }, { children: (0, jsx_runtime_1.jsx)(IconButton, Object.assign({ version: 'filled', color: 'default', elevation: false, size: size, onClick: onOpenNavigation }, { children: (0, jsx_runtime_1.jsx)(IconMenu, {}) })) })) })), (0, jsx_runtime_1.jsx)(HTMLCanvas, Object.assign({ size: size, onChange: onChangeHTMLCanvas, guidelines: guidelines, showGuidelinesDefault: true, methods: refs.methods.current, ContainerProps: {
|
983
|
+
ref: refs.container,
|
984
|
+
onClick: onClickSpace
|
985
|
+
} }, { children: items.map((item) => getElement(item)) })), (0, jsx_runtime_1.jsx)(Line, Object.assign({ direction: 'row', justify: 'flex-end', className: classes.actionsEnd }, { children: (0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ name: 'Add room' }, { children: (0, jsx_runtime_1.jsx)(Fab, Object.assign({ tonal: true, color: 'primary', size: size, onClick: onOpenMenu }, { children: (0, jsx_runtime_1.jsx)(IconAdd, {}) })) })) })), (0, jsx_runtime_1.jsx)(NavigationDrawer, Object.assign({ open: openNavigation, onClose: onCloseNavigation, position: 'absolute', direction: 'left', background: false, className: classes.navigationDrawerNavigation }, { children: (0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 0, flex: true, fullWidth: true, className: classes.navigation }, { children: [(0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 1, direction: 'row', align: 'center', justify: 'space-between', className: (0, style_react_1.classNames)([
|
986
|
+
classes.navigationHeader
|
987
|
+
]), fullWidth: true }, { children: [(0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 0.5, direction: 'row', align: 'center' }, { children: [(itemOpen || openOptions) && ((0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ name: 'Back' }, { children: (0, jsx_runtime_1.jsx)(IconButton, Object.assign({ size: size, onClick: itemOpen ? onItemClose : onCloseOpenOptions }, { children: (0, jsx_runtime_1.jsx)(IconArrowBack, {}) })) }))), itemOpen ? ((0, jsx_runtime_1.jsx)(SmartTextField, { placeholder: 'Name', value: (0, utils_1.textToInnerHTML)(itemOpen.name), onChange: (valueNew) => onItemUpdate({ name: valueNew }), additional: {
|
988
|
+
version: 't3'
|
989
|
+
}, style: {
|
990
|
+
whiteSpace: 'normal'
|
991
|
+
} })) : ((0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 't3' }, { children: openOptions ? 'Options' : 'Navigation' })))] })), (0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 0.25, direction: 'row', align: 'center' }, { children: [!(itemOpen || openOptions) && Object.keys(itemsSelected).length > 1 && ((0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ name: 'Group' }, { children: (0, jsx_runtime_1.jsx)(IconButton, Object.assign({ size: size, onClick: onItemsGroup }, { children: (0, jsx_runtime_1.jsx)(IconGroup, {}) })) }))), !(itemOpen || openOptions) && ((0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ name: 'Settings' }, { children: (0, jsx_runtime_1.jsx)(IconButton, Object.assign({ size: size, onClick: onOpenOpenOptions }, { children: (0, jsx_runtime_1.jsx)(IconSettings, {}) })) }))), (0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ name: 'Close' }, { children: (0, jsx_runtime_1.jsx)(IconButton, Object.assign({ size: size, onClick: onCloseNavigation }, { children: (0, jsx_runtime_1.jsx)(IconCloseNavigation, {}) })) }))] }))] })), (0, jsx_runtime_1.jsx)(Line, Object.assign({ flex: true, fullWidth: true }, { children: itemOpen ? elements.itemOpen : openOptions ? elements.options : elements.list }))] })) })), (0, jsx_runtime_1.jsx)(NavigationDrawer, Object.assign({ open: openMenu, onClose: onCloseMenu, position: 'absolute', direction: 'bottom', background: false, className: classes.navigationDrawerMenu }, { children: (0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 0, fullWidth: true, className: classes.menu }, { children: [(0, jsx_runtime_1.jsxs)(Line, Object.assign({ direction: 'row', align: 'center', justify: 'space-between', className: classes.menuHeader, fullWidth: true }, { children: [(0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 't3' }, { children: "Menu" })), (0, jsx_runtime_1.jsx)(Tooltip, Object.assign({ name: 'Close' }, { children: (0, jsx_runtime_1.jsx)(IconButton, Object.assign({ size: size, onClick: onCloseMenu }, { children: (0, jsx_runtime_1.jsx)(IconCloseMenu, {}) })) }))] })), (0, jsx_runtime_1.jsx)(Line, Object.assign({ fullWidth: true, className: classes.menuMain }, { children: (0, jsx_runtime_1.jsx)(FormRow, Object.assign({ gap: 3.5, start: ((0, jsx_runtime_1.jsx)(TextField, { placeholder: 'Search', value: elementSearch, onChange: onElementSearch, clear: true })), className: classes.elements, HeaderProps: {
|
992
|
+
align: 'center',
|
993
|
+
style: {
|
994
|
+
marginBottom: -4
|
995
|
+
}
|
996
|
+
}, MainProps: {
|
997
|
+
direction: 'row',
|
998
|
+
align: 'flex-start',
|
999
|
+
className: classes.main
|
1000
|
+
}, fullWidth: true }, { children: elementsMenu === null || elementsMenu === void 0 ? void 0 : elementsMenu.map((item, index) => ((0, jsx_runtime_1.jsxs)(Line, Object.assign({ gap: 1.4, align: 'center', onClick: () => onAdd(item), className: classes.element }, { children: [getThumbnail(item), (0, jsx_runtime_1.jsx)(Type, Object.assign({ version: 'b3', align: 'center' }, { children: item.name }))] }), index))) })) }))] })) }))] })));
|
1001
|
+
});
|
1002
|
+
Space.displayName = 'onesy-Space';
|
1003
|
+
exports.default = Space;
|