@app-studio/components 0.11.8 → 0.11.11
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/dist/apple-touch-icon.png +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/favicon.svg +4 -0
- package/dist/icon-512.png +0 -0
- package/dist/index.d.ts +474 -416
- package/dist/indexnow-key.txt +1 -0
- package/dist/manifest.json +9 -9
- package/dist/native/components/Accordion/Accordion/Accordion.props.d.ts +1 -1
- package/dist/native/components/Accordion/Accordion/Accordion.state.js +1 -1
- package/dist/native/components/Accordion/Accordion/Accordion.view.d.ts +1 -1
- package/dist/native/components/Accordion/Accordion/Accordion.view.js +1 -1
- package/dist/native/components/Accordion/Accordion/Accordion.view.native.d.ts +1 -1
- package/dist/native/components/Accordion/Accordion/Accordion.view.native.js +1 -1
- package/dist/native/components/Accordion/Accordion.js +1 -1
- package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.props.d.ts +1 -1
- package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.state.js +1 -1
- package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.type.d.ts +1 -1
- package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.d.ts +1 -1
- package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.js +1 -1
- package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.native.d.ts +1 -1
- package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.native.js +1 -1
- package/dist/native/components/ActionSheet/ActionSheet.d.ts +1 -1
- package/dist/native/components/ActionSheet/ActionSheet.js +1 -1
- package/dist/native/components/Alert/Alert/Alert.props.d.ts +1 -1
- package/dist/native/components/Alert/Alert/Alert.state.d.ts +1 -1
- package/dist/native/components/Alert/Alert/Alert.state.js +1 -1
- package/dist/native/components/Alert/Alert/Alert.view.d.ts +1 -1
- package/dist/native/components/Alert/Alert/Alert.view.js +1 -1
- package/dist/native/components/Alert/Alert/Alert.view.native.d.ts +1 -1
- package/dist/native/components/Alert/Alert/Alert.view.native.js +1 -1
- package/dist/native/components/Alert/Alert.d.ts +1 -1
- package/dist/native/components/Alert/Alert.js +1 -1
- package/dist/native/components/AppRoot/AppRoot.d.ts +1 -1
- package/dist/native/components/AppRoot/AppRoot.js +1 -1
- package/dist/native/components/AppRoot/AppRoot.native.d.ts +1 -1
- package/dist/native/components/AppRoot/AppRoot.native.js +1 -1
- package/dist/native/components/AppRoot/AppRoot.types.d.ts +1 -1
- package/dist/native/components/AspectRatio/AspectRatio/AspectRatio.view.d.ts +1 -1
- package/dist/native/components/AspectRatio/AspectRatio/AspectRatio.view.js +1 -1
- package/dist/native/components/AspectRatio/AspectRatio.d.ts +1 -1
- package/dist/native/components/AspectRatio/AspectRatio.js +1 -1
- package/dist/native/components/AttachmentGroup/AttachmentGroup/AttachmentGroup.d.ts +1 -1
- package/dist/native/components/AttachmentGroup/AttachmentGroup/AttachmentGroup.js +1 -1
- package/dist/native/components/AudioInput/AudioInput/AudioInput.state.js +1 -1
- package/dist/native/components/AudioInput/AudioInput/AudioInput.view.d.ts +1 -1
- package/dist/native/components/AudioInput/AudioInput/AudioInput.view.js +1 -1
- package/dist/native/components/AudioInput/AudioInput.d.ts +1 -1
- package/dist/native/components/AudioInput/AudioInput.js +1 -1
- package/dist/native/components/AudioInput/AudioWaveform/AudioWaveform.d.ts +1 -1
- package/dist/native/components/AudioInput/AudioWaveform/AudioWaveform.js +1 -1
- package/dist/native/components/AudioInput/AudioWaveform/AudioWaveform.view.d.ts +1 -1
- package/dist/native/components/AudioInput/AudioWaveform/AudioWaveform.view.js +1 -1
- package/dist/native/components/AudioInput/useAudioRecording.js +1 -1
- package/dist/native/components/AudioInput/useAudioRecording.native.js +1 -1
- package/dist/native/components/Avatar/Avatar/Avatar.props.d.ts +1 -1
- package/dist/native/components/Avatar/Avatar/Avatar.state.d.ts +1 -1
- package/dist/native/components/Avatar/Avatar/Avatar.state.js +1 -1
- package/dist/native/components/Avatar/Avatar/Avatar.view.d.ts +1 -1
- package/dist/native/components/Avatar/Avatar/Avatar.view.js +1 -1
- package/dist/native/components/Avatar/Avatar.d.ts +1 -1
- package/dist/native/components/Avatar/Avatar.js +1 -1
- package/dist/native/components/Background/Background/Background.props.d.ts +1 -1
- package/dist/native/components/Background/Background/Background.view.d.ts +1 -1
- package/dist/native/components/Background/Background/Background.view.js +1 -1
- package/dist/native/components/Background/Background/Background.view.native.d.ts +1 -1
- package/dist/native/components/Background/Background/Background.view.native.js +1 -1
- package/dist/native/components/Background/Background.d.ts +1 -1
- package/dist/native/components/Background/Background.js +1 -1
- package/dist/native/components/Badge/Badge/Badge.view.d.ts +1 -1
- package/dist/native/components/Badge/Badge/Badge.view.js +1 -1
- package/dist/native/components/Badge/Badge.d.ts +1 -1
- package/dist/native/components/Badge/Badge.js +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.content.d.ts +10 -7
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.content.js +98 -13
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.content.js.map +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.controls.d.ts +3 -2
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.controls.js +48 -4
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.controls.js.map +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.keyboard.d.ts +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.keyboard.js +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.model.d.ts +14 -3
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.model.js +100 -13
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.model.js.map +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.props.d.ts +32 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.props.js +13 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.props.js.map +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.selection.d.ts +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.selection.js +58 -17
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.selection.js.map +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.state.d.ts +42 -10
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.state.js +214 -6
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.state.js.map +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.upload.d.ts +6 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.upload.js +17 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.upload.js.map +1 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.upload.native.d.ts +6 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.upload.native.js +8 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.upload.native.js.map +1 -0
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.d.ts +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.js +10 -10
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.js.map +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.native.d.ts +1 -1
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.native.js +6 -4
- package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.native.js.map +1 -1
- package/dist/native/components/BlockEditor/BlockEditor.d.ts +1 -1
- package/dist/native/components/BlockEditor/BlockEditor.js +1 -1
- package/dist/native/components/Button/Button/Button.props.d.ts +1 -1
- package/dist/native/components/Button/Button/Button.state.d.ts +1 -1
- package/dist/native/components/Button/Button/Button.state.js +1 -1
- package/dist/native/components/Button/Button/Button.view.d.ts +1 -1
- package/dist/native/components/Button/Button/Button.view.js +1 -1
- package/dist/native/components/Button/Button/Button.view.native.d.ts +1 -1
- package/dist/native/components/Button/Button/Button.view.native.js +1 -1
- package/dist/native/components/Button/Button.d.ts +1 -1
- package/dist/native/components/Button/Button.js +1 -1
- package/dist/native/components/Card/Card/Card.context.d.ts +1 -1
- package/dist/native/components/Card/Card/Card.context.js +1 -1
- package/dist/native/components/Card/Card/Card.state.d.ts +1 -1
- package/dist/native/components/Card/Card/Card.state.js +1 -1
- package/dist/native/components/Card/Card/Card.view.d.ts +1 -1
- package/dist/native/components/Card/Card/Card.view.js +1 -1
- package/dist/native/components/Card/Card.js +1 -1
- package/dist/native/components/Carousel/Carousel/Carousel.context.d.ts +1 -1
- package/dist/native/components/Carousel/Carousel/Carousel.context.js +1 -1
- package/dist/native/components/Carousel/Carousel/Carousel.state.js +1 -1
- package/dist/native/components/Carousel/Carousel/Carousel.view.d.ts +1 -1
- package/dist/native/components/Carousel/Carousel/Carousel.view.js +1 -1
- package/dist/native/components/Carousel/Carousel/Carousel.view.native.d.ts +1 -1
- package/dist/native/components/Carousel/Carousel/Carousel.view.native.js +1 -1
- package/dist/native/components/Carousel/Carousel.js +1 -1
- package/dist/native/components/Chart/Chart/BarChart.d.ts +1 -1
- package/dist/native/components/Chart/Chart/BarChart.js +1 -1
- package/dist/native/components/Chart/Chart/BarChart.native.d.ts +1 -1
- package/dist/native/components/Chart/Chart/BarChart.native.js +1 -1
- package/dist/native/components/Chart/Chart/Chart.state.d.ts +2 -2
- package/dist/native/components/Chart/Chart/Chart.state.js +1 -1
- package/dist/native/components/Chart/Chart/Chart.view.d.ts +1 -1
- package/dist/native/components/Chart/Chart/Chart.view.js +1 -1
- package/dist/native/components/Chart/Chart/ChartTooltip.d.ts +1 -1
- package/dist/native/components/Chart/Chart/ChartTooltip.js +1 -1
- package/dist/native/components/Chart/Chart/LineChart.d.ts +1 -1
- package/dist/native/components/Chart/Chart/LineChart.js +1 -1
- package/dist/native/components/Chart/Chart/LineChart.native.d.ts +1 -1
- package/dist/native/components/Chart/Chart/LineChart.native.js +1 -1
- package/dist/native/components/Chart/Chart/PieChart.d.ts +1 -1
- package/dist/native/components/Chart/Chart/PieChart.js +1 -1
- package/dist/native/components/Chart/Chart/PieChart.native.d.ts +1 -1
- package/dist/native/components/Chart/Chart/PieChart.native.js +1 -1
- package/dist/native/components/Chart/Chart.d.ts +1 -1
- package/dist/native/components/Chart/Chart.js +1 -1
- package/dist/native/components/ChatInput/AttachmentGroup.d.ts +1 -1
- package/dist/native/components/ChatInput/AttachmentGroup.js +1 -1
- package/dist/native/components/ChatInput/AudioRecorder.d.ts +1 -1
- package/dist/native/components/ChatInput/AudioRecorder.js +1 -1
- package/dist/native/components/ChatInput/ChatInput/ChatInput.state.d.ts +7 -7
- package/dist/native/components/ChatInput/ChatInput/ChatInput.state.js +1 -1
- package/dist/native/components/ChatInput/ChatInput/ChatInput.view.d.ts +1 -1
- package/dist/native/components/ChatInput/ChatInput/ChatInput.view.js +1 -1
- package/dist/native/components/ChatInput/ChatInput.d.ts +1 -1
- package/dist/native/components/ChatInput/ChatInput.js +1 -1
- package/dist/native/components/ChatInput/ChatUploader.d.ts +1 -1
- package/dist/native/components/ChatInput/ChatUploader.js +1 -1
- package/dist/native/components/ChatInput/EditableInput.d.ts +1 -1
- package/dist/native/components/ChatInput/EditableInput.js +1 -1
- package/dist/native/components/ChatInput/EditableInput.native.d.ts +1 -1
- package/dist/native/components/ChatInput/EditableInput.native.js +1 -1
- package/dist/native/components/ChatInput/GuideTip.d.ts +1 -1
- package/dist/native/components/ChatInput/GuideTip.js +1 -1
- package/dist/native/components/ChatInput/MessageInput.d.ts +1 -1
- package/dist/native/components/ChatInput/MessageInput.js +1 -1
- package/dist/native/components/ChatInput/MessageInput.native.d.ts +1 -1
- package/dist/native/components/ChatInput/MessageInput.native.js +1 -1
- package/dist/native/components/ChatInput/PromptExamples.d.ts +1 -1
- package/dist/native/components/ChatInput/PromptExamples.js +1 -1
- package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.state.d.ts +2 -2
- package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.state.js +1 -1
- package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.style.d.ts +1 -1
- package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.view.d.ts +1 -1
- package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.view.js +1 -1
- package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.view.native.d.ts +1 -1
- package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.view.native.js +1 -1
- package/dist/native/components/ChatWidget/ChatWidget.d.ts +1 -1
- package/dist/native/components/ChatWidget/ChatWidget.js +1 -1
- package/dist/native/components/ChatWidget/Widget/ChatWidgetWidget.d.ts +1 -1
- package/dist/native/components/ChatWidget/Widget/ChatWidgetWidget.js +1 -1
- package/dist/native/components/ChatWidget/Widget/ChatWidgetWidget.native.d.ts +1 -1
- package/dist/native/components/ChatWidget/Widget/ChatWidgetWidget.native.js +1 -1
- package/dist/native/components/ChatWidget/Widget/useContextSelector.d.ts +1 -1
- package/dist/native/components/ChatWidget/Widget/useContextSelector.js +1 -1
- package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.state.d.ts +2 -2
- package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.state.js +1 -1
- package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.view.d.ts +1 -1
- package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.view.js +1 -1
- package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.view.native.d.ts +1 -1
- package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.view.native.js +1 -1
- package/dist/native/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/dist/native/components/ColorPicker/ColorPicker.js +1 -1
- package/dist/native/components/Command/Command/Command.props.d.ts +1 -1
- package/dist/native/components/Command/Command/Command.state.d.ts +3 -3
- package/dist/native/components/Command/Command/Command.state.js +1 -1
- package/dist/native/components/Command/Command/Command.type.d.ts +1 -1
- package/dist/native/components/Command/Command/Command.view.d.ts +1 -1
- package/dist/native/components/Command/Command/Command.view.js +1 -1
- package/dist/native/components/Command/Command/Command.view.native.d.ts +1 -1
- package/dist/native/components/Command/Command/Command.view.native.js +1 -1
- package/dist/native/components/Command/Command/CommandOverlay.d.ts +1 -1
- package/dist/native/components/Command/Command/CommandOverlay.js +1 -1
- package/dist/native/components/Command/Command/CommandOverlay.native.d.ts +1 -1
- package/dist/native/components/Command/Command/CommandOverlay.native.js +1 -1
- package/dist/native/components/Command/Command/CommandTextInput.d.ts +1 -1
- package/dist/native/components/Command/Command/CommandTextInput.js +1 -1
- package/dist/native/components/Command/Command/CommandTextInput.native.d.ts +1 -1
- package/dist/native/components/Command/Command/CommandTextInput.native.js +1 -1
- package/dist/native/components/Command/Command.js +1 -1
- package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.props.d.ts +1 -1
- package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.state.d.ts +1 -1
- package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.state.js +1 -1
- package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.type.d.ts +1 -1
- package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.view.d.ts +1 -1
- package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.view.js +1 -1
- package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.view.native.d.ts +1 -1
- package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.view.native.js +1 -1
- package/dist/native/components/ContextMenu/ContextMenu.js +1 -1
- package/dist/native/components/CookieConsent/CookieConsent/CookieConsent.state.d.ts +1 -1
- package/dist/native/components/CookieConsent/CookieConsent/CookieConsent.state.js +1 -1
- package/dist/native/components/CookieConsent/CookieConsent/CookieConsent.view.d.ts +1 -1
- package/dist/native/components/CookieConsent/CookieConsent/CookieConsent.view.js +1 -1
- package/dist/native/components/CookieConsent/CookieConsent.d.ts +1 -1
- package/dist/native/components/CookieConsent/CookieConsent.js +1 -1
- package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.state.d.ts +1 -1
- package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.state.js +1 -1
- package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.state.native.d.ts +1 -1
- package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.state.native.js +1 -1
- package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.view.d.ts +1 -1
- package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.view.js +1 -1
- package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.view.native.d.ts +1 -1
- package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.view.native.js +1 -1
- package/dist/native/components/DragAndDrop/DragAndDrop.d.ts +1 -1
- package/dist/native/components/DragAndDrop/DragAndDrop.js +1 -1
- package/dist/native/components/Drawer/Drawer/Drawer.layout.d.ts +1 -1
- package/dist/native/components/Drawer/Drawer/Drawer.layout.js +1 -1
- package/dist/native/components/Drawer/Drawer/Drawer.props.d.ts +1 -1
- package/dist/native/components/Drawer/Drawer/Drawer.view.d.ts +1 -1
- package/dist/native/components/Drawer/Drawer/Drawer.view.js +1 -1
- package/dist/native/components/Drawer/Drawer/Drawer.view.native.d.ts +1 -1
- package/dist/native/components/Drawer/Drawer/Drawer.view.native.js +1 -1
- package/dist/native/components/Drawer/Drawer.js +1 -1
- package/dist/native/components/DropZone/DropZone/DropZone.state.js +1 -1
- package/dist/native/components/DropZone/DropZone/DropZone.view.d.ts +1 -1
- package/dist/native/components/DropZone/DropZone/DropZone.view.js +1 -1
- package/dist/native/components/DropZone/DropZone/DropZone.view.native.d.ts +1 -1
- package/dist/native/components/DropZone/DropZone/DropZone.view.native.js +1 -1
- package/dist/native/components/DropZone/DropZone.d.ts +1 -1
- package/dist/native/components/DropZone/DropZone.js +1 -1
- package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.props.d.ts +1 -1
- package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.state.d.ts +2 -2
- package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.state.js +1 -1
- package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.type.d.ts +1 -1
- package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.view.d.ts +1 -1
- package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.view.js +1 -1
- package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.view.native.d.ts +1 -1
- package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.view.native.js +1 -1
- package/dist/native/components/DropdownMenu/DropdownMenu.js +1 -1
- package/dist/native/components/EditComponent/EditComponent.d.ts +1 -1
- package/dist/native/components/EditComponent/EditComponent.js +1 -1
- package/dist/native/components/EditComponent/EditPanel.d.ts +1 -1
- package/dist/native/components/EditComponent/EditPanel.js +1 -1
- package/dist/native/components/EditComponent/EditToolbar.d.ts +1 -1
- package/dist/native/components/EditComponent/EditToolbar.js +1 -1
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.state.d.ts +4 -4
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.state.js +1 -1
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.view.d.ts +1 -1
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.view.js +1 -1
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.view.native.d.ts +1 -1
- package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.view.native.js +1 -1
- package/dist/native/components/EmojiPicker/EmojiPicker.d.ts +1 -1
- package/dist/native/components/EmojiPicker/EmojiPicker.js +1 -1
- package/dist/native/components/File/File.d.ts +1 -1
- package/dist/native/components/File/File.js +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.props.d.ts +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.state.d.ts +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.state.js +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.d.ts +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.js +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.native.d.ts +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.native.js +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox.d.ts +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox.js +1 -1
- package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.props.d.ts +1 -1
- package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.state.d.ts +4 -4
- package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.state.js +1 -1
- package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.view.d.ts +1 -1
- package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.view.js +1 -1
- package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.view.native.d.ts +1 -1
- package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.view.native.js +1 -1
- package/dist/native/components/Form/ColorInput/ColorInput.d.ts +1 -1
- package/dist/native/components/Form/ColorInput/ColorInput.js +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.context.d.ts +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.context.js +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.props.d.ts +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.provider.d.ts +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.provider.js +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.state.js +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.view.d.ts +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.view.js +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.view.native.d.ts +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.view.native.js +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox.d.ts +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox.js +1 -1
- package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.state.d.ts +1 -1
- package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.state.js +1 -1
- package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.view.d.ts +1 -1
- package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.view.js +1 -1
- package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.view.native.d.ts +1 -1
- package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.view.native.js +1 -1
- package/dist/native/components/Form/CountryPicker/CountryPicker.d.ts +1 -1
- package/dist/native/components/Form/CountryPicker/CountryPicker.js +1 -1
- package/dist/native/components/Form/DatePicker/DatePicker/DatePicker.state.d.ts +1 -1
- package/dist/native/components/Form/DatePicker/DatePicker/DatePicker.state.js +1 -1
- package/dist/native/components/Form/DatePicker/DatePicker/DatePicker.view.d.ts +1 -1
- package/dist/native/components/Form/DatePicker/DatePicker/DatePicker.view.js +1 -1
- package/dist/native/components/Form/DatePicker/DatePicker.d.ts +1 -1
- package/dist/native/components/Form/DatePicker/DatePicker.js +1 -1
- package/dist/native/components/Form/Label/Label/Label.view.d.ts +1 -1
- package/dist/native/components/Form/Label/Label/Label.view.js +1 -1
- package/dist/native/components/Form/Label/Label/Label.view.native.d.ts +1 -1
- package/dist/native/components/Form/Label/Label/Label.view.native.js +1 -1
- package/dist/native/components/Form/Label/Label.d.ts +1 -1
- package/dist/native/components/Form/Label/Label.js +1 -1
- package/dist/native/components/Form/Password/Password/Password.props.d.ts +1 -1
- package/dist/native/components/Form/Password/Password/Password.state.d.ts +1 -1
- package/dist/native/components/Form/Password/Password/Password.state.js +1 -1
- package/dist/native/components/Form/Password/Password/Password.type.d.ts +1 -1
- package/dist/native/components/Form/Password/Password.d.ts +1 -1
- package/dist/native/components/Form/Password/Password.js +1 -1
- package/dist/native/components/Form/Password/example/Default.d.ts +1 -1
- package/dist/native/components/Form/Password/example/Default.js +1 -1
- package/dist/native/components/Form/Password/example/DisabledInput.d.ts +1 -1
- package/dist/native/components/Form/Password/example/DisabledInput.js +1 -1
- package/dist/native/components/Form/Password/example/ErrorInput.d.ts +1 -1
- package/dist/native/components/Form/Password/example/ErrorInput.js +2 -2
- package/dist/native/components/Form/Password/example/HelperText.d.ts +1 -1
- package/dist/native/components/Form/Password/example/HelperText.js +1 -1
- package/dist/native/components/Form/Radio/Radio/Radio.props.d.ts +1 -1
- package/dist/native/components/Form/Radio/Radio/Radio.state.d.ts +1 -1
- package/dist/native/components/Form/Radio/Radio/Radio.state.js +1 -1
- package/dist/native/components/Form/Radio/Radio/Radio.view.d.ts +1 -1
- package/dist/native/components/Form/Radio/Radio/Radio.view.js +1 -1
- package/dist/native/components/Form/Radio/Radio/Radio.view.native.d.ts +1 -1
- package/dist/native/components/Form/Radio/Radio/Radio.view.native.js +1 -1
- package/dist/native/components/Form/Radio/Radio.d.ts +1 -1
- package/dist/native/components/Form/Radio/Radio.js +1 -1
- package/dist/native/components/Form/Radio/RadioGroup/RadioGroup.props.d.ts +1 -1
- package/dist/native/components/Form/Radio/RadioGroup/RadioGroup.state.js +1 -1
- package/dist/native/components/Form/Radio/RadioGroup/RadioGroup.view.d.ts +1 -1
- package/dist/native/components/Form/Radio/RadioGroup/RadioGroup.view.js +1 -1
- package/dist/native/components/Form/Radio/RadioGroup.d.ts +1 -1
- package/dist/native/components/Form/Radio/RadioGroup.js +1 -1
- package/dist/native/components/Form/Select/Select/Select.state.d.ts +1 -1
- package/dist/native/components/Form/Select/Select/Select.state.js +1 -1
- package/dist/native/components/Form/Select/Select/Select.view.d.ts +1 -1
- package/dist/native/components/Form/Select/Select/Select.view.js +1 -1
- package/dist/native/components/Form/Select/Select/Select.view.native.d.ts +1 -1
- package/dist/native/components/Form/Select/Select/Select.view.native.js +1 -1
- package/dist/native/components/Form/Select/Select.d.ts +1 -1
- package/dist/native/components/Form/Select/Select.js +1 -1
- package/dist/native/components/Form/Selector/Selector/Selector.state.d.ts +1 -1
- package/dist/native/components/Form/Selector/Selector/Selector.state.js +1 -1
- package/dist/native/components/Form/Selector/Selector/Selector.view.d.ts +1 -1
- package/dist/native/components/Form/Selector/Selector/Selector.view.js +1 -1
- package/dist/native/components/Form/Selector/Selector/Selector.view.native.d.ts +1 -1
- package/dist/native/components/Form/Selector/Selector/Selector.view.native.js +1 -1
- package/dist/native/components/Form/Selector/Selector.d.ts +1 -1
- package/dist/native/components/Form/Selector/Selector.js +1 -1
- package/dist/native/components/Form/Switch/Switch/Switch.state.d.ts +1 -1
- package/dist/native/components/Form/Switch/Switch/Switch.state.js +1 -1
- package/dist/native/components/Form/Switch/Switch/Switch.view.d.ts +1 -1
- package/dist/native/components/Form/Switch/Switch/Switch.view.js +1 -1
- package/dist/native/components/Form/Switch/Switch/Switch.view.native.d.ts +1 -1
- package/dist/native/components/Form/Switch/Switch/Switch.view.native.js +1 -1
- package/dist/native/components/Form/Switch/Switch.d.ts +1 -1
- package/dist/native/components/Form/Switch/Switch.js +1 -1
- package/dist/native/components/Form/TagInput/TagInput/TagInput.props.d.ts +1 -1
- package/dist/native/components/Form/TagInput/TagInput/TagInput.state.d.ts +4 -4
- package/dist/native/components/Form/TagInput/TagInput/TagInput.state.js +1 -1
- package/dist/native/components/Form/TagInput/TagInput/TagInput.view.d.ts +1 -1
- package/dist/native/components/Form/TagInput/TagInput/TagInput.view.js +1 -1
- package/dist/native/components/Form/TagInput/TagInput.d.ts +1 -1
- package/dist/native/components/Form/TagInput/TagInput.js +1 -1
- package/dist/native/components/Form/TextArea/TextArea/TextArea.state.d.ts +4 -4
- package/dist/native/components/Form/TextArea/TextArea/TextArea.state.js +1 -1
- package/dist/native/components/Form/TextArea/TextArea/TextArea.view.d.ts +1 -1
- package/dist/native/components/Form/TextArea/TextArea/TextArea.view.js +1 -1
- package/dist/native/components/Form/TextArea/TextArea/TextArea.view.native.d.ts +1 -1
- package/dist/native/components/Form/TextArea/TextArea/TextArea.view.native.js +1 -1
- package/dist/native/components/Form/TextArea/TextArea.d.ts +1 -1
- package/dist/native/components/Form/TextArea/TextArea.js +1 -1
- package/dist/native/components/Form/TextField/TextField/TextField.props.d.ts +1 -1
- package/dist/native/components/Form/TextField/TextField/TextField.state.d.ts +4 -4
- package/dist/native/components/Form/TextField/TextField/TextField.state.js +1 -1
- package/dist/native/components/Form/TextField/TextField/TextField.view.d.ts +1 -1
- package/dist/native/components/Form/TextField/TextField/TextField.view.js +1 -1
- package/dist/native/components/Form/TextField/TextField/TextField.view.native.d.ts +1 -1
- package/dist/native/components/Form/TextField/TextField/TextField.view.native.js +1 -1
- package/dist/native/components/Form/TextField/TextField.d.ts +1 -1
- package/dist/native/components/Form/TextField/TextField.js +1 -1
- package/dist/native/components/Formik/AttachmentPreview.d.ts +1 -1
- package/dist/native/components/Formik/AttachmentPreview.js +1 -1
- package/dist/native/components/Formik/Formik.ChatInput.d.ts +1 -1
- package/dist/native/components/Formik/Formik.ChatInput.js +1 -1
- package/dist/native/components/Formik/Formik.Checkbox.d.ts +1 -1
- package/dist/native/components/Formik/Formik.Checkbox.js +1 -1
- package/dist/native/components/Formik/Formik.ColorInput.d.ts +1 -1
- package/dist/native/components/Formik/Formik.ColorInput.js +1 -1
- package/dist/native/components/Formik/Formik.ComboBox.d.ts +1 -1
- package/dist/native/components/Formik/Formik.ComboBox.js +1 -1
- package/dist/native/components/Formik/Formik.CountryPicker.d.ts +1 -1
- package/dist/native/components/Formik/Formik.CountryPicker.js +1 -1
- package/dist/native/components/Formik/Formik.DatePicker.d.ts +1 -1
- package/dist/native/components/Formik/Formik.DatePicker.js +1 -1
- package/dist/native/components/Formik/Formik.EmojiPicker.d.ts +1 -1
- package/dist/native/components/Formik/Formik.EmojiPicker.js +1 -1
- package/dist/native/components/Formik/Formik.Form.d.ts +1 -1
- package/dist/native/components/Formik/Formik.Form.js +1 -1
- package/dist/native/components/Formik/Formik.IconPicker.d.ts +1 -1
- package/dist/native/components/Formik/Formik.IconPicker.js +1 -1
- package/dist/native/components/Formik/Formik.OTPInput.d.ts +1 -1
- package/dist/native/components/Formik/Formik.OTPInput.js +1 -1
- package/dist/native/components/Formik/Formik.Password.d.ts +1 -1
- package/dist/native/components/Formik/Formik.Password.js +1 -1
- package/dist/native/components/Formik/Formik.Radio.d.ts +1 -1
- package/dist/native/components/Formik/Formik.Radio.js +1 -1
- package/dist/native/components/Formik/Formik.Select.d.ts +1 -1
- package/dist/native/components/Formik/Formik.Select.js +1 -1
- package/dist/native/components/Formik/Formik.Selector.d.ts +1 -1
- package/dist/native/components/Formik/Formik.Selector.js +1 -1
- package/dist/native/components/Formik/Formik.Slider.d.ts +1 -1
- package/dist/native/components/Formik/Formik.Slider.js +1 -1
- package/dist/native/components/Formik/Formik.Switch.d.ts +1 -1
- package/dist/native/components/Formik/Formik.Switch.js +1 -1
- package/dist/native/components/Formik/Formik.TagInput.d.ts +1 -1
- package/dist/native/components/Formik/Formik.TagInput.js +1 -1
- package/dist/native/components/Formik/Formik.TextArea.d.ts +1 -1
- package/dist/native/components/Formik/Formik.TextArea.js +1 -1
- package/dist/native/components/Formik/Formik.TextField.d.ts +1 -1
- package/dist/native/components/Formik/Formik.TextField.js +1 -1
- package/dist/native/components/Formik/Formik.Toggle.d.ts +1 -1
- package/dist/native/components/Formik/Formik.Toggle.js +1 -1
- package/dist/native/components/Formik/Formik.ToggleGroup.d.ts +1 -1
- package/dist/native/components/Formik/Formik.ToggleGroup.js +1 -1
- package/dist/native/components/Formik/Formik.Uploader.d.ts +1 -1
- package/dist/native/components/Formik/Formik.Uploader.js +1 -1
- package/dist/native/components/Gradient/Gradient/Gradient.view.d.ts +1 -1
- package/dist/native/components/Gradient/Gradient/Gradient.view.js +1 -1
- package/dist/native/components/Gradient/Gradient/Gradient.view.native.d.ts +1 -1
- package/dist/native/components/Gradient/Gradient/Gradient.view.native.js +1 -1
- package/dist/native/components/Gradient/Gradient.d.ts +1 -1
- package/dist/native/components/Gradient/Gradient.js +1 -1
- package/dist/native/components/HoverCard/HoverCard/HoverCard.props.d.ts +1 -1
- package/dist/native/components/HoverCard/HoverCard/HoverCard.state.d.ts +2 -2
- package/dist/native/components/HoverCard/HoverCard/HoverCard.state.js +1 -1
- package/dist/native/components/HoverCard/HoverCard/HoverCard.style.d.ts +1 -1
- package/dist/native/components/HoverCard/HoverCard/HoverCard.view.d.ts +1 -1
- package/dist/native/components/HoverCard/HoverCard/HoverCard.view.js +1 -1
- package/dist/native/components/HoverCard/HoverCard/HoverCard.view.native.d.ts +1 -1
- package/dist/native/components/HoverCard/HoverCard/HoverCard.view.native.js +1 -1
- package/dist/native/components/HoverCard/HoverCard.js +1 -1
- package/dist/native/components/Icon/Icon.d.ts +1 -1
- package/dist/native/components/Icon/Icon.js +1 -1
- package/dist/native/components/Icon/Icon.native.d.ts +1 -1
- package/dist/native/components/Icon/Icon.native.js +1 -1
- package/dist/native/components/IconPicker/IconPicker/IconPicker.state.d.ts +2 -2
- package/dist/native/components/IconPicker/IconPicker/IconPicker.state.js +1 -1
- package/dist/native/components/IconPicker/IconPicker/IconPicker.view.d.ts +1 -1
- package/dist/native/components/IconPicker/IconPicker/IconPicker.view.js +1 -1
- package/dist/native/components/IconPicker/IconPicker/IconPicker.view.native.d.ts +1 -1
- package/dist/native/components/IconPicker/IconPicker/IconPicker.view.native.js +1 -1
- package/dist/native/components/IconPicker/IconPicker.d.ts +1 -1
- package/dist/native/components/IconPicker/IconPicker.js +1 -1
- package/dist/native/components/Input/FieldContainer/FieldContainer/FieldContainer.props.d.ts +1 -1
- package/dist/native/components/Input/FieldContainer/FieldContainer.d.ts +1 -1
- package/dist/native/components/Input/FieldContainer/FieldContainer.js +1 -1
- package/dist/native/components/Input/FieldContent/FieldContent/FieldContent.props.d.ts +1 -1
- package/dist/native/components/Input/FieldContent/FieldContent.d.ts +1 -1
- package/dist/native/components/Input/FieldContent/FieldContent.js +1 -1
- package/dist/native/components/Input/FieldIcons/FieldIcons.d.ts +1 -1
- package/dist/native/components/Input/FieldIcons/FieldIcons.js +1 -1
- package/dist/native/components/Input/FieldLabel/FieldLabel/FieldLabel.props.d.ts +1 -1
- package/dist/native/components/Input/FieldLabel/FieldLabel.d.ts +1 -1
- package/dist/native/components/Input/FieldLabel/FieldLabel.js +1 -1
- package/dist/native/components/Input/FieldLayout/FieldLayout/FieldLayout.props.d.ts +1 -1
- package/dist/native/components/Input/FieldLayout/FieldLayout.d.ts +1 -1
- package/dist/native/components/Input/FieldLayout/FieldLayout.js +1 -1
- package/dist/native/components/Input/FieldWrapper/FieldWrapper.d.ts +1 -1
- package/dist/native/components/Input/FieldWrapper/FieldWrapper.js +1 -1
- package/dist/native/components/Input/HelperText/HelperText.d.ts +1 -1
- package/dist/native/components/Input/HelperText/HelperText.js +1 -1
- package/dist/native/components/Input/HelperText/HelperText.props.d.ts +1 -1
- package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.d.ts +1 -1
- package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.js +1 -1
- package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.native.d.ts +1 -1
- package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.native.js +1 -1
- package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.types.d.ts +1 -1
- package/dist/native/components/Link/Link/Link.props.d.ts +1 -1
- package/dist/native/components/Link/Link/Link.state.d.ts +1 -1
- package/dist/native/components/Link/Link/Link.state.js +1 -1
- package/dist/native/components/Link/Link/Link.view.d.ts +1 -1
- package/dist/native/components/Link/Link/Link.view.js +1 -1
- package/dist/native/components/Link/Link/Link.view.native.d.ts +1 -1
- package/dist/native/components/Link/Link/Link.view.native.js +1 -1
- package/dist/native/components/Link/Link.d.ts +1 -1
- package/dist/native/components/Link/Link.js +1 -1
- package/dist/native/components/Loader/Loader/Loader.props.d.ts +1 -1
- package/dist/native/components/Loader/Loader/Loader.view.d.ts +1 -1
- package/dist/native/components/Loader/Loader/Loader.view.js +1 -1
- package/dist/native/components/Loader/Loader/Loader.view.native.d.ts +1 -1
- package/dist/native/components/Loader/Loader/Loader.view.native.js +1 -1
- package/dist/native/components/Loader/Loader.d.ts +1 -1
- package/dist/native/components/Loader/Loader.js +1 -1
- package/dist/native/components/Markdown/Markdown/Markdown.content.d.ts +2 -2
- package/dist/native/components/Markdown/Markdown/Markdown.content.js +26 -7
- package/dist/native/components/Markdown/Markdown/Markdown.content.js.map +1 -1
- package/dist/native/components/Markdown/Markdown/Markdown.motion.d.ts +1 -0
- package/dist/native/components/Markdown/Markdown/Markdown.motion.js +16 -0
- package/dist/native/components/Markdown/Markdown/Markdown.motion.js.map +1 -0
- package/dist/native/components/Markdown/Markdown/Markdown.motion.native.d.ts +1 -0
- package/dist/native/components/Markdown/Markdown/Markdown.motion.native.js +21 -0
- package/dist/native/components/Markdown/Markdown/Markdown.motion.native.js.map +1 -0
- package/dist/native/components/Markdown/Markdown/Markdown.props.d.ts +19 -1
- package/dist/native/components/Markdown/Markdown/Markdown.view.native.d.ts +1 -1
- package/dist/native/components/Markdown/Markdown/Markdown.view.native.js +1 -1
- package/dist/native/components/Markdown/Markdown/useMarkdownTyping.d.ts +6 -0
- package/dist/native/components/Markdown/Markdown/useMarkdownTyping.js +81 -0
- package/dist/native/components/Markdown/Markdown/useMarkdownTyping.js.map +1 -0
- package/dist/native/components/Markdown/Markdown.d.ts +1 -1
- package/dist/native/components/Markdown/Markdown.js +1 -1
- package/dist/native/components/MediaPreview.d.ts +1 -1
- package/dist/native/components/MediaPreview.js +1 -1
- package/dist/native/components/Menubar/Menubar/Menubar.props.d.ts +1 -1
- package/dist/native/components/Menubar/Menubar/Menubar.state.d.ts +2 -2
- package/dist/native/components/Menubar/Menubar/Menubar.state.js +1 -1
- package/dist/native/components/Menubar/Menubar/Menubar.type.d.ts +1 -1
- package/dist/native/components/Menubar/Menubar/Menubar.view.d.ts +1 -1
- package/dist/native/components/Menubar/Menubar/Menubar.view.js +1 -1
- package/dist/native/components/Menubar/Menubar/Menubar.view.native.d.ts +1 -1
- package/dist/native/components/Menubar/Menubar/Menubar.view.native.js +1 -1
- package/dist/native/components/Menubar/Menubar.js +1 -1
- package/dist/native/components/Message/Message/Message.layout.d.ts +1 -1
- package/dist/native/components/Message/Message/Message.layout.js +1 -1
- package/dist/native/components/Message/Message/Message.layout.native.d.ts +1 -1
- package/dist/native/components/Message/Message/Message.layout.native.js +1 -1
- package/dist/native/components/Message/Message/Message.view.d.ts +1 -1
- package/dist/native/components/Message/Message/Message.view.js +1 -1
- package/dist/native/components/Modal/Modal/Modal.layout.d.ts +1 -1
- package/dist/native/components/Modal/Modal/Modal.layout.js +1 -1
- package/dist/native/components/Modal/Modal/Modal.props.d.ts +3 -1
- package/dist/native/components/Modal/Modal/Modal.view.d.ts +1 -1
- package/dist/native/components/Modal/Modal/Modal.view.js +1 -1
- package/dist/native/components/Modal/Modal/Modal.view.native.d.ts +1 -1
- package/dist/native/components/Modal/Modal/Modal.view.native.js +1 -1
- package/dist/native/components/Modal/Modal.js +1 -1
- package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.props.d.ts +1 -1
- package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.state.d.ts +2 -2
- package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.state.js +1 -1
- package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.type.d.ts +1 -1
- package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.view.d.ts +1 -1
- package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.view.js +1 -1
- package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.view.native.d.ts +1 -1
- package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.view.native.js +1 -1
- package/dist/native/components/NavigationMenu/NavigationMenu.js +1 -1
- package/dist/native/components/OTPInput/OTPInput/OTPInput.state.d.ts +7 -7
- package/dist/native/components/OTPInput/OTPInput/OTPInput.state.js +1 -1
- package/dist/native/components/OTPInput/OTPInput/OTPInput.view.d.ts +1 -1
- package/dist/native/components/OTPInput/OTPInput/OTPInput.view.js +1 -1
- package/dist/native/components/OTPInput/OTPInput/OTPInput.view.native.d.ts +1 -1
- package/dist/native/components/OTPInput/OTPInput/OTPInput.view.native.js +1 -1
- package/dist/native/components/OTPInput/OTPInput.d.ts +1 -1
- package/dist/native/components/OTPInput/OTPInput.js +1 -1
- package/dist/native/components/PageLayout/PageLayout.d.ts +1 -1
- package/dist/native/components/PageLayout/PageLayout.js +1 -1
- package/dist/native/components/PageLayout/PageLayout.types.d.ts +1 -1
- package/dist/native/components/Pagination/Pagination/Pagination.state.js +1 -1
- package/dist/native/components/Pagination/Pagination/Pagination.view.d.ts +1 -1
- package/dist/native/components/Pagination/Pagination/Pagination.view.js +1 -1
- package/dist/native/components/Pagination/Pagination/Pagination.view.native.d.ts +1 -1
- package/dist/native/components/Pagination/Pagination/Pagination.view.native.js +1 -1
- package/dist/native/components/Pagination/Pagination.d.ts +1 -1
- package/dist/native/components/Pagination/Pagination.js +1 -1
- package/dist/native/components/Portal/Portal.d.ts +1 -1
- package/dist/native/components/Portal/Portal.js +1 -1
- package/dist/native/components/Portal/Portal.native.d.ts +1 -1
- package/dist/native/components/Portal/Portal.native.js +1 -1
- package/dist/native/components/ProgressBar/ProgressBar/ProgressBar.view.d.ts +1 -1
- package/dist/native/components/ProgressBar/ProgressBar/ProgressBar.view.js +1 -1
- package/dist/native/components/ProgressBar/ProgressBar/ProgressBar.view.native.d.ts +1 -1
- package/dist/native/components/ProgressBar/ProgressBar/ProgressBar.view.native.js +1 -1
- package/dist/native/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/native/components/ProgressBar/ProgressBar.js +1 -1
- package/dist/native/components/Resizable/Resizable/Resizable.props.d.ts +1 -1
- package/dist/native/components/Resizable/Resizable/Resizable.state.d.ts +2 -2
- package/dist/native/components/Resizable/Resizable/Resizable.state.js +1 -1
- package/dist/native/components/Resizable/Resizable/Resizable.view.d.ts +1 -1
- package/dist/native/components/Resizable/Resizable/Resizable.view.js +1 -1
- package/dist/native/components/Resizable/Resizable/Resizable.view.native.d.ts +1 -1
- package/dist/native/components/Resizable/Resizable/Resizable.view.native.js +1 -1
- package/dist/native/components/Resizable/Resizable.js +1 -1
- package/dist/native/components/Router/Router.d.ts +1 -1
- package/dist/native/components/Router/Router.js +1 -1
- package/dist/native/components/Router/Router.match.d.ts +1 -1
- package/dist/native/components/Router/Router.match.js +1 -1
- package/dist/native/components/Router/Router.native.d.ts +1 -1
- package/dist/native/components/Router/Router.native.js +1 -1
- package/dist/native/components/Router/Router.types.d.ts +1 -1
- package/dist/native/components/Separator/Separator/Separator.view.d.ts +1 -1
- package/dist/native/components/Separator/Separator/Separator.view.js +1 -1
- package/dist/native/components/Separator/Separator/Separator.view.native.d.ts +1 -1
- package/dist/native/components/Separator/Separator/Separator.view.native.js +1 -1
- package/dist/native/components/Separator/Separator.d.ts +1 -1
- package/dist/native/components/Separator/Separator.js +1 -1
- package/dist/native/components/ShareButton/ShareButton/ShareButton.props.d.ts +1 -1
- package/dist/native/components/ShareButton/ShareButton/ShareButton.state.js +1 -1
- package/dist/native/components/ShareButton/ShareButton/ShareButton.state.native.js +1 -1
- package/dist/native/components/ShareButton/ShareButton/ShareButton.view.d.ts +1 -1
- package/dist/native/components/ShareButton/ShareButton/ShareButton.view.js +1 -1
- package/dist/native/components/ShareButton/ShareButton.d.ts +1 -1
- package/dist/native/components/ShareButton/ShareButton.js +1 -1
- package/dist/native/components/Sidebar/Sidebar/Sidebar.props.d.ts +1 -1
- package/dist/native/components/Sidebar/Sidebar/Sidebar.state.js +1 -1
- package/dist/native/components/Sidebar/Sidebar/Sidebar.view.d.ts +1 -1
- package/dist/native/components/Sidebar/Sidebar/Sidebar.view.js +1 -1
- package/dist/native/components/Sidebar/Sidebar/Sidebar.view.native.d.ts +1 -1
- package/dist/native/components/Sidebar/Sidebar/Sidebar.view.native.js +1 -1
- package/dist/native/components/Sidebar/Sidebar.js +1 -1
- package/dist/native/components/Slider/Slider/Slider.state.d.ts +1 -1
- package/dist/native/components/Slider/Slider/Slider.state.js +1 -1
- package/dist/native/components/Slider/Slider/Slider.view.d.ts +1 -1
- package/dist/native/components/Slider/Slider/Slider.view.js +1 -1
- package/dist/native/components/Slider/Slider/Slider.view.native.d.ts +1 -1
- package/dist/native/components/Slider/Slider/Slider.view.native.js +1 -1
- package/dist/native/components/Slider/Slider.d.ts +1 -1
- package/dist/native/components/Slider/Slider.js +1 -1
- package/dist/native/components/SplashScreen/SplashScreen.d.ts +1 -1
- package/dist/native/components/SplashScreen/SplashScreen.js +1 -1
- package/dist/native/components/SplashScreen/SplashScreen.types.d.ts +1 -1
- package/dist/native/components/StatusIndicator/StatusIndicator/StatusIndicator.view.d.ts +1 -1
- package/dist/native/components/StatusIndicator/StatusIndicator/StatusIndicator.view.js +1 -1
- package/dist/native/components/StatusIndicator/StatusIndicator.d.ts +1 -1
- package/dist/native/components/StatusIndicator/StatusIndicator.js +1 -1
- package/dist/native/components/Table/Table/Table.context.d.ts +1 -1
- package/dist/native/components/Table/Table/Table.context.js +1 -1
- package/dist/native/components/Table/Table/Table.props.d.ts +1 -1
- package/dist/native/components/Table/Table/Table.state.d.ts +1 -1
- package/dist/native/components/Table/Table/Table.state.js +1 -1
- package/dist/native/components/Table/Table/Table.view.d.ts +1 -1
- package/dist/native/components/Table/Table/Table.view.js +1 -1
- package/dist/native/components/Table/Table/TableScroll.d.ts +1 -1
- package/dist/native/components/Table/Table/TableScroll.js +1 -1
- package/dist/native/components/Table/Table/TableScroll.native.d.ts +1 -1
- package/dist/native/components/Table/Table/TableScroll.native.js +1 -1
- package/dist/native/components/Table/Table.d.ts +1 -1
- package/dist/native/components/Table/Table.js +1 -1
- package/dist/native/components/Tabs/Tabs/TabHeader.d.ts +1 -1
- package/dist/native/components/Tabs/Tabs/TabHeader.js +1 -1
- package/dist/native/components/Tabs/Tabs/Tabs.props.d.ts +1 -1
- package/dist/native/components/Tabs/Tabs/Tabs.state.js +1 -1
- package/dist/native/components/Tabs/Tabs/Tabs.type.d.ts +1 -1
- package/dist/native/components/Tabs/Tabs/Tabs.view.d.ts +1 -1
- package/dist/native/components/Tabs/Tabs/Tabs.view.js +1 -1
- package/dist/native/components/Tabs/Tabs/Tabs.view.native.d.ts +1 -1
- package/dist/native/components/Tabs/Tabs/Tabs.view.native.js +1 -1
- package/dist/native/components/Tabs/Tabs.d.ts +1 -1
- package/dist/native/components/Tabs/Tabs.js +1 -1
- package/dist/native/components/TextArea/TextArea.d.ts +1 -1
- package/dist/native/components/TextArea/TextArea.js +1 -1
- package/dist/native/components/TextArea/TextArea.native.d.ts +1 -1
- package/dist/native/components/TextArea/TextArea.native.js +1 -1
- package/dist/native/components/Title/Title/SlideEffect.d.ts +1 -1
- package/dist/native/components/Title/Title/SlideEffect.js +1 -1
- package/dist/native/components/Title/Title/SlideEffect.native.d.ts +1 -1
- package/dist/native/components/Title/Title/SlideEffect.native.js +1 -1
- package/dist/native/components/Title/Title/Title.state.d.ts +1 -1
- package/dist/native/components/Title/Title/Title.state.js +1 -1
- package/dist/native/components/Title/Title/Title.view.d.ts +1 -1
- package/dist/native/components/Title/Title/Title.view.js +1 -1
- package/dist/native/components/Title/Title/Title.view.native.d.ts +1 -1
- package/dist/native/components/Title/Title/Title.view.native.js +1 -1
- package/dist/native/components/Title/Title/TypewriterEffect.d.ts +1 -1
- package/dist/native/components/Title/Title/TypewriterEffect.js +1 -1
- package/dist/native/components/Title/Title/TypewriterEffect.native.d.ts +1 -1
- package/dist/native/components/Title/Title/TypewriterEffect.native.js +1 -1
- package/dist/native/components/Title/Title.d.ts +1 -1
- package/dist/native/components/Title/Title.js +1 -1
- package/dist/native/components/Toast/Toast/Toast.view.d.ts +1 -1
- package/dist/native/components/Toast/Toast/Toast.view.js +1 -1
- package/dist/native/components/Toast/Toast/Toast.view.native.d.ts +1 -1
- package/dist/native/components/Toast/Toast/Toast.view.native.js +1 -1
- package/dist/native/components/Toast/Toast.d.ts +1 -1
- package/dist/native/components/Toast/Toast.js +1 -1
- package/dist/native/components/Toggle/Toggle/Toggle.state.d.ts +2 -2
- package/dist/native/components/Toggle/Toggle/Toggle.state.js +1 -1
- package/dist/native/components/Toggle/Toggle/Toggle.view.d.ts +1 -1
- package/dist/native/components/Toggle/Toggle/Toggle.view.js +1 -1
- package/dist/native/components/Toggle/Toggle/Toggle.view.native.d.ts +1 -1
- package/dist/native/components/Toggle/Toggle/Toggle.view.native.js +1 -1
- package/dist/native/components/Toggle/Toggle.d.ts +1 -1
- package/dist/native/components/Toggle/Toggle.js +1 -1
- package/dist/native/components/ToggleGroup/ToggleGroup/ToggleGroup.state.d.ts +1 -1
- package/dist/native/components/ToggleGroup/ToggleGroup/ToggleGroup.state.js +1 -1
- package/dist/native/components/ToggleGroup/ToggleGroup/ToggleGroup.view.d.ts +1 -1
- package/dist/native/components/ToggleGroup/ToggleGroup/ToggleGroup.view.js +1 -1
- package/dist/native/components/ToggleGroup/ToggleGroup.d.ts +1 -1
- package/dist/native/components/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/native/components/Tooltip/Tooltip/Tooltip.props.d.ts +1 -1
- package/dist/native/components/Tooltip/Tooltip/Tooltip.state.d.ts +2 -2
- package/dist/native/components/Tooltip/Tooltip/Tooltip.state.js +1 -1
- package/dist/native/components/Tooltip/Tooltip/Tooltip.view.d.ts +1 -1
- package/dist/native/components/Tooltip/Tooltip/Tooltip.view.js +1 -1
- package/dist/native/components/Tooltip/Tooltip/Tooltip.view.native.d.ts +1 -1
- package/dist/native/components/Tooltip/Tooltip/Tooltip.view.native.js +1 -1
- package/dist/native/components/Tooltip/Tooltip.js +1 -1
- package/dist/native/components/Uploader/Uploader/Uploader.state.d.ts +1 -1
- package/dist/native/components/Uploader/Uploader/Uploader.state.js +1 -1
- package/dist/native/components/Uploader/Uploader/Uploader.view.d.ts +1 -1
- package/dist/native/components/Uploader/Uploader/Uploader.view.js +1 -1
- package/dist/native/components/Uploader/Uploader.d.ts +1 -1
- package/dist/native/components/Uploader/Uploader.js +1 -1
- package/dist/native/components/index.d.ts +1 -0
- package/dist/native/components/index.js +1 -0
- package/dist/native/components/index.js.map +1 -1
- package/dist/native/design-system/DesignSystemProvider.d.ts +3 -1
- package/dist/native/design-system/DesignSystemProvider.js +3 -3
- package/dist/native/design-system/DesignSystemProvider.js.map +1 -1
- package/dist/native/pages/designSystem.page.d.ts +1 -1
- package/dist/native/pages/designSystem.page.js +1 -1
- package/dist/robots.txt +7 -2
- package/dist/web.cjs.js +52 -40
- package/dist/web.cjs.js.map +1 -1
- package/dist/web.esm.js +10653 -10005
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.js +45 -33
- package/dist/web.umd.js.map +1 -1
- package/docs/README.md +81 -3
- package/docs/components/BlockEditor.mdx +32 -1
- package/docs/components/Markdown.mdx +77 -16
- package/docs/guides/accessibility.mdx +51 -0
- package/docs/guides/ai-assistants.mdx +43 -0
- package/docs/guides/animation.mdx +58 -0
- package/docs/guides/core.mdx +68 -0
- package/docs/guides/forms.mdx +79 -0
- package/docs/guides/hooks.mdx +92 -0
- package/docs/guides/installation.mdx +96 -0
- package/docs/guides/overview.mdx +53 -0
- package/docs/guides/providers.mdx +51 -0
- package/docs/guides/quick-start.mdx +71 -0
- package/docs/guides/react-native.mdx +53 -0
- package/docs/guides/responsive.mdx +65 -0
- package/docs/guides/styling.mdx +115 -0
- package/docs/guides/theming.mdx +70 -0
- package/docs/guides/troubleshooting.mdx +45 -0
- package/docs/seo-geo.md +53 -0
- package/package.json +8 -1
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# Hooks
|
|
2
|
+
|
|
3
|
+
Use framework hooks when React needs to know about the environment or an interaction. Prefer style props for visual changes that do not need application logic.
|
|
4
|
+
|
|
5
|
+
## Read the current theme
|
|
6
|
+
|
|
7
|
+
`useTheme()` exposes `themeMode`, `setThemeMode`, `theme`, and color helpers. The provider accepts `mode`; the hook's state is named `themeMode`.
|
|
8
|
+
|
|
9
|
+
```tsx
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { useTheme, Text } from 'app-studio';
|
|
12
|
+
|
|
13
|
+
export function CurrentTheme() {
|
|
14
|
+
const { themeMode } = useTheme();
|
|
15
|
+
return <Text color="theme-primary">Current theme: {themeMode}</Text>;
|
|
16
|
+
}
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Components resolve color tokens automatically. Use `getColor` for a CSS value or `getColorHex` when an external tool requires a literal color. See [Colors & theming](/docs/theming).
|
|
20
|
+
|
|
21
|
+
## Respond to device state
|
|
22
|
+
|
|
23
|
+
`useResponsive()` reads the configuration from `ResponsiveProvider`. Use `on('mobile')` for device-aware logic. A hook-driven decision re-renders when its state changes; use the `media` prop for purely visual overrides.
|
|
24
|
+
|
|
25
|
+
```tsx
|
|
26
|
+
import React from 'react';
|
|
27
|
+
import { useResponsive, Text } from 'app-studio';
|
|
28
|
+
|
|
29
|
+
export function DeviceHint() {
|
|
30
|
+
const { on } = useResponsive();
|
|
31
|
+
return <Text>{on('mobile') ? 'Compact viewport' : 'Larger viewport'}</Text>;
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Avoid removing essential content just because a viewport is smaller. See [Responsive layouts](/docs/responsive).
|
|
36
|
+
|
|
37
|
+
## Track hover for a visual detail
|
|
38
|
+
|
|
39
|
+
```tsx
|
|
40
|
+
import React from 'react';
|
|
41
|
+
import { useHover, View, Text } from 'app-studio';
|
|
42
|
+
|
|
43
|
+
export function HoverDetail() {
|
|
44
|
+
const [ref, hovered] = useHover<HTMLDivElement>();
|
|
45
|
+
return (
|
|
46
|
+
<View
|
|
47
|
+
ref={ref}
|
|
48
|
+
padding={24}
|
|
49
|
+
borderRadius={12}
|
|
50
|
+
backgroundColor={hovered ? 'color-violet-100' : 'color-blue-50'}
|
|
51
|
+
>
|
|
52
|
+
<Text>
|
|
53
|
+
Hover changes this surface; the information is always available.
|
|
54
|
+
</Text>
|
|
55
|
+
</View>
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Hover is a browser interaction, not a native touch interaction. Keep actions and information available to keyboard, touch, and assistive-technology users.
|
|
61
|
+
|
|
62
|
+
## Read window dimensions
|
|
63
|
+
|
|
64
|
+
Wrap consumers of `useWindowSize()` in `WindowSizeProvider`:
|
|
65
|
+
|
|
66
|
+
```tsx
|
|
67
|
+
import React from 'react';
|
|
68
|
+
import { WindowSizeProvider, useWindowSize, Text } from 'app-studio';
|
|
69
|
+
|
|
70
|
+
function Dimensions() {
|
|
71
|
+
const { width, height } = useWindowSize();
|
|
72
|
+
return (
|
|
73
|
+
<Text>
|
|
74
|
+
Window: {width} × {height}
|
|
75
|
+
</Text>
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function WindowExample() {
|
|
80
|
+
return (
|
|
81
|
+
<WindowSizeProvider>
|
|
82
|
+
<Dimensions />
|
|
83
|
+
</WindowSizeProvider>
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Window dimensions describe the window, not necessarily a component's available width. On native, verify rotation and split-screen behavior on the target platform.
|
|
89
|
+
|
|
90
|
+
## Further hooks
|
|
91
|
+
|
|
92
|
+
The framework also exposes hooks for focus, visibility, scrolling, and element position. Consult the [hook reference](https://github.com/rize-network/app-studio/blob/main/docs/Hooks.md) and current TypeScript signatures for their options and platform differences.
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Installation
|
|
2
|
+
|
|
3
|
+
Start with an existing React project. Choose the component library for ready-made controls, or the framework alone for your own component system.
|
|
4
|
+
|
|
5
|
+
## Requirements
|
|
6
|
+
|
|
7
|
+
- React 18 or newer. Keep `react` and `react-dom` on matching versions in a web app.
|
|
8
|
+
- A React build setup that resolves package exports, such as Vite or your existing framework.
|
|
9
|
+
- TypeScript is supported; JavaScript projects can use the same components.
|
|
10
|
+
- For React Native, follow [native setup](/docs/react-native). The core package declares React Native 0.79 or newer.
|
|
11
|
+
|
|
12
|
+
## Install the component library
|
|
13
|
+
|
|
14
|
+
The library depends on App Studio for styling. Install both:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install @app-studio/components app-studio
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Install the web peer dependencies you do not already have:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm install react react-dom react-router-dom formik zustand lucide-react
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Keep existing compatible versions. React Router supports router-dependent components, Formik powers its form wrappers, and Zustand and the icon package support components that use them. Do not use `--force` to hide incompatible peer versions in a consuming application.
|
|
27
|
+
|
|
28
|
+
With another package manager, use the same package names with `pnpm add` or `yarn add`.
|
|
29
|
+
|
|
30
|
+
## Use the framework on its own
|
|
31
|
+
|
|
32
|
+
If you only need layout primitives, style props, tokens, and motion:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm install app-studio
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
You do not need the component library or its Formik, Zustand, and icon peers for this starting point. A web app still needs React and React DOM.
|
|
39
|
+
|
|
40
|
+
## Configure the providers
|
|
41
|
+
|
|
42
|
+
`ThemeProvider` defines the color variables behind `theme-*` and `color-*` tokens. `ResponsiveProvider` supplies the device and breakpoint configuration used by `media` and responsive hooks.
|
|
43
|
+
|
|
44
|
+
```tsx
|
|
45
|
+
import React from 'react';
|
|
46
|
+
import { ThemeProvider, ResponsiveProvider, Vertical, Text } from 'app-studio';
|
|
47
|
+
|
|
48
|
+
export default function App() {
|
|
49
|
+
return (
|
|
50
|
+
<ThemeProvider theme={{ primary: 'color-blue-900' }}>
|
|
51
|
+
<ResponsiveProvider>
|
|
52
|
+
<Vertical padding={24} gap={12}>
|
|
53
|
+
<Text fontSize={24} color="theme-primary">
|
|
54
|
+
App Studio is ready.
|
|
55
|
+
</Text>
|
|
56
|
+
<Text>Add your application's components here.</Text>
|
|
57
|
+
</Vertical>
|
|
58
|
+
</ResponsiveProvider>
|
|
59
|
+
</ThemeProvider>
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Mount providers near the root. Keep your existing router, data fetching, and state providers; App Studio does not replace them.
|
|
65
|
+
|
|
66
|
+
## Add document defaults
|
|
67
|
+
|
|
68
|
+
The library styles components, not the browser document. Add these defaults to your application's stylesheet:
|
|
69
|
+
|
|
70
|
+
```css
|
|
71
|
+
* {
|
|
72
|
+
box-sizing: border-box;
|
|
73
|
+
}
|
|
74
|
+
body {
|
|
75
|
+
margin: 0;
|
|
76
|
+
font-family: system-ui, sans-serif;
|
|
77
|
+
}
|
|
78
|
+
button,
|
|
79
|
+
input,
|
|
80
|
+
textarea,
|
|
81
|
+
select {
|
|
82
|
+
font: inherit;
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
There is no separate component stylesheet to import for these examples.
|
|
87
|
+
|
|
88
|
+
## When routing is needed
|
|
89
|
+
|
|
90
|
+
Router-dependent components need your app's React Router context. A simple `Button` with `onClick` does not need a router. Internal routing links and navigation components can require one.
|
|
91
|
+
|
|
92
|
+
## Verify your setup
|
|
93
|
+
|
|
94
|
+
Start your development server. Confirm that the example renders, `theme-primary` has a color, and changing the viewport affects a component with `media` rules.
|
|
95
|
+
|
|
96
|
+
Continue with the [Quick start](/docs/quick-start). If colors or imports are missing, use [Troubleshooting](/docs/troubleshooting).
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Build with App Studio
|
|
2
|
+
|
|
3
|
+
A shared foundation for React and React Native. Start with ready-made UI, or build your own components with the styling framework underneath it.
|
|
4
|
+
|
|
5
|
+
<div className="docs-start-grid">
|
|
6
|
+
<a href="/docs/installation">
|
|
7
|
+
<span className="docs-label">START HERE</span>
|
|
8
|
+
<strong>Install the packages</strong>
|
|
9
|
+
<span>Requirements, peer dependencies, and provider setup.</span>
|
|
10
|
+
</a>
|
|
11
|
+
<a href="/docs/components">
|
|
12
|
+
<span className="docs-label">EXPLORE THE LIBRARY</span>
|
|
13
|
+
<strong>Find a component</strong>
|
|
14
|
+
<span>Browse categories, try controls, and open working examples.</span>
|
|
15
|
+
</a>
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
## Two packages, one foundation
|
|
19
|
+
|
|
20
|
+
**`app-studio`** is the framework: layout primitives such as `View`, `Horizontal`, and `Vertical`, typed style props, theme tokens, responsive rules, hooks, and animation presets.
|
|
21
|
+
|
|
22
|
+
**`@app-studio/components`** is the component library built on that framework: buttons, inputs, navigation, feedback, overlays, and other interface controls.
|
|
23
|
+
|
|
24
|
+
Use the framework on its own when you want to create your own controls. Install both packages when you want ready-made components. You do not need to replace your existing React state management or application architecture.
|
|
25
|
+
|
|
26
|
+
## Your path to a first interface
|
|
27
|
+
|
|
28
|
+
1. **Install:** choose your platform and add compatible dependencies in [Installation](/docs/installation).
|
|
29
|
+
2. **Configure:** wrap the app in `ThemeProvider` and `ResponsiveProvider`.
|
|
30
|
+
3. **Build:** follow the [Quick start](/docs/quick-start) to connect real state to your first controls.
|
|
31
|
+
4. **Customize:** learn [styling](/docs/styling), [themes](/docs/theming), and [responsive layouts](/docs/responsive).
|
|
32
|
+
5. **Explore:** use the [component browser](/docs/components) to find reference material and existing examples.
|
|
33
|
+
|
|
34
|
+
## Conventions to know
|
|
35
|
+
|
|
36
|
+
- Import layout primitives and providers from `app-studio`.
|
|
37
|
+
- Import ready-made controls from `@app-studio/components`.
|
|
38
|
+
- Pass familiar styling properties directly as props.
|
|
39
|
+
- Resolve `theme-*` and `color-*` tokens through `ThemeProvider`.
|
|
40
|
+
- Input callbacks use values: `TextField` returns a string; `Checkbox` and `Switch` return booleans.
|
|
41
|
+
- Platform support depends on the component. Read [React Native](/docs/react-native) before sharing a screen.
|
|
42
|
+
|
|
43
|
+
## How to use this documentation
|
|
44
|
+
|
|
45
|
+
**Getting started** takes you from installation to your first working interface. **Foundations** explains the styling model. **Guides** covers common implementation decisions.
|
|
46
|
+
|
|
47
|
+
The **component library** is grouped by category. A component's **Reference** page contains its existing documentation, while **Examples** opens its interactive demonstration page. The component browser exposes both, so you can inspect behavior before using it.
|
|
48
|
+
|
|
49
|
+
Component references include import instructions, interactive examples with copyable source, and searchable props tables. Required props, literal implementation defaults, and compound parts are listed together. Shared styling props link back to the foundations guides.
|
|
50
|
+
|
|
51
|
+
## Build in the open
|
|
52
|
+
|
|
53
|
+
Explore [the component source](https://github.com/rize-network/app-studio-components) and [the framework source](https://github.com/rize-network/app-studio). Refer to each package's included `LICENSE` for its terms of use.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Providers
|
|
2
|
+
|
|
3
|
+
Providers share configuration through React context. Start with the theme and responsive providers; add optional contexts only when your app consumes them.
|
|
4
|
+
|
|
5
|
+
## The usual starting point
|
|
6
|
+
|
|
7
|
+
```tsx
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { ThemeProvider, ResponsiveProvider, Vertical, Text } from 'app-studio';
|
|
10
|
+
|
|
11
|
+
export function ProviderSetup() {
|
|
12
|
+
return (
|
|
13
|
+
<ThemeProvider mode="light" theme={{ primary: 'color-blue-900' }}>
|
|
14
|
+
<ResponsiveProvider>
|
|
15
|
+
<Vertical padding={24} gap={12}>
|
|
16
|
+
<Text color="theme-primary" fontWeight="bold">
|
|
17
|
+
Shared configuration
|
|
18
|
+
</Text>
|
|
19
|
+
<Text>Your application's screens belong inside these providers.</Text>
|
|
20
|
+
</Vertical>
|
|
21
|
+
</ResponsiveProvider>
|
|
22
|
+
</ThemeProvider>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Keep this setup near your app's root. Your router, state, and data providers remain ordinary React providers alongside it.
|
|
28
|
+
|
|
29
|
+
## ThemeProvider
|
|
30
|
+
|
|
31
|
+
`theme` maps semantic tokens such as `primary` to colors. `mode` selects `light` or `dark`. The optional `light` and `dark` props customize palette configuration.
|
|
32
|
+
|
|
33
|
+
The hook API uses different names: `useTheme()` returns `themeMode` and `setThemeMode`, as well as color resolution helpers. See [Colors & theming](/docs/theming) and [Hooks](/docs/hooks).
|
|
34
|
+
|
|
35
|
+
## ResponsiveProvider
|
|
36
|
+
|
|
37
|
+
`breakpoints` defines screen sizes and `devices` groups them into names such as `mobile`. Descendants use that configuration through `media` or `useResponsive()`.
|
|
38
|
+
|
|
39
|
+
Keep device names consistent with the rules in your components. See [Responsive layouts](/docs/responsive).
|
|
40
|
+
|
|
41
|
+
## Optional providers
|
|
42
|
+
|
|
43
|
+
**`WindowSizeProvider`** supplies dimensions to `useWindowSize()`. Add it around the consumers that need window measurements. Responsive styling does not require you to add window measurements to every component.
|
|
44
|
+
|
|
45
|
+
**`AnalyticsProvider`** accepts a `trackEvent` callback. Wire it only if your application needs event tracking; it is not required for basic styling or component rendering.
|
|
46
|
+
|
|
47
|
+
## Scope configuration deliberately
|
|
48
|
+
|
|
49
|
+
React context follows the component tree. Keep shared configuration at the root and use nested providers for a deliberate local variation. Test portaled controls, such as dialogs, when a local theme differs from the surrounding app.
|
|
50
|
+
|
|
51
|
+
The native build exposes the corresponding providers with platform-specific dimension tracking. See [React Native](/docs/react-native).
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Quick start
|
|
2
|
+
|
|
3
|
+
Build a small interface with real React state. Complete [Installation](/docs/installation) first; this example needs both packages and their web peers.
|
|
4
|
+
|
|
5
|
+
## Start with a working screen
|
|
6
|
+
|
|
7
|
+
Copy this into your app's entry component. Edit the name, toggle notifications, and press the button. This example updates local state only; it does not save data to a server.
|
|
8
|
+
|
|
9
|
+
```tsx
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { ThemeProvider, ResponsiveProvider, Vertical, Text } from 'app-studio';
|
|
12
|
+
import { Button, TextField, Switch } from '@app-studio/components';
|
|
13
|
+
|
|
14
|
+
export default function App() {
|
|
15
|
+
const [name, setName] = React.useState('My project');
|
|
16
|
+
const [notifications, setNotifications] = React.useState(true);
|
|
17
|
+
const [message, setMessage] = React.useState('');
|
|
18
|
+
return (
|
|
19
|
+
<ThemeProvider theme={{ primary: 'color-blue-900' }}>
|
|
20
|
+
<ResponsiveProvider>
|
|
21
|
+
<Vertical
|
|
22
|
+
gap={16}
|
|
23
|
+
padding={32}
|
|
24
|
+
maxWidth={480}
|
|
25
|
+
media={{ mobile: { padding: 16 } }}
|
|
26
|
+
>
|
|
27
|
+
<Text as="h2" fontSize={28} fontWeight="bold">
|
|
28
|
+
Your first interface
|
|
29
|
+
</Text>
|
|
30
|
+
<TextField label="Project name" value={name} onChange={setName} />
|
|
31
|
+
<Switch
|
|
32
|
+
label="Enable notifications"
|
|
33
|
+
isChecked={notifications}
|
|
34
|
+
onChange={setNotifications}
|
|
35
|
+
/>
|
|
36
|
+
<Button
|
|
37
|
+
isDisabled={!name.trim()}
|
|
38
|
+
onClick={() =>
|
|
39
|
+
setMessage(
|
|
40
|
+
`${name.trim()}: notifications ${notifications ? 'on' : 'off'}.`
|
|
41
|
+
)
|
|
42
|
+
}
|
|
43
|
+
>
|
|
44
|
+
Preview settings
|
|
45
|
+
</Button>
|
|
46
|
+
<Text role="status">{message}</Text>
|
|
47
|
+
</Vertical>
|
|
48
|
+
</ResponsiveProvider>
|
|
49
|
+
</ThemeProvider>
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Understand the imports
|
|
55
|
+
|
|
56
|
+
`ThemeProvider`, `ResponsiveProvider`, `Vertical`, and `Text` come from the framework. `Button`, `TextField`, and `Switch` come from the ready-made component library.
|
|
57
|
+
|
|
58
|
+
`Vertical` stacks children. `gap` sets space between them. `padding` and the `media` override describe the layout alongside its structure.
|
|
59
|
+
|
|
60
|
+
## Connect state with values
|
|
61
|
+
|
|
62
|
+
`TextField` calls `onChange` with the new string. `Switch` and `Checkbox` call it with a boolean. Pass your setter directly, or transform the value in your callback. These callbacks do not pass a DOM change event.
|
|
63
|
+
|
|
64
|
+
The empty-name check disables the button. Your app remains responsible for validation and persistence; a styled control does not save data automatically.
|
|
65
|
+
|
|
66
|
+
## Make one change at a time
|
|
67
|
+
|
|
68
|
+
- Change `theme.primary` in [Colors & theming](/docs/theming).
|
|
69
|
+
- Choose variants or customize internal views in [Styling & composition](/docs/styling).
|
|
70
|
+
- Connect a complete form in [Forms & validation](/docs/forms).
|
|
71
|
+
- Use the [component browser](/docs/components) to find your next building block.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# React Native
|
|
2
|
+
|
|
3
|
+
Both packages ship dedicated native builds. Sharing an API reduces repetition, but each platform still needs its own setup and verification.
|
|
4
|
+
|
|
5
|
+
## Requirements and installation
|
|
6
|
+
|
|
7
|
+
Use an existing React Native project with package exports enabled. The current core package declares React Native 0.79 or newer. Keep the React version required by your native project.
|
|
8
|
+
|
|
9
|
+
For the framework alone:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install app-studio
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
For the ready-made component library:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install app-studio @app-studio/components lucide-react-native
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
The native app provides `react` and `react-native`. Do not add React DOM or React Router just to use native primitives.
|
|
22
|
+
|
|
23
|
+
## Package resolution
|
|
24
|
+
|
|
25
|
+
Import from `app-studio` and `@app-studio/components` as usual. Metro uses the `react-native` export condition to choose native implementations. Do not import browser bundle paths into a native screen.
|
|
26
|
+
|
|
27
|
+
For a native TypeScript consumer, follow your framework's configuration and the libraries' native guide. If the wrong typings are selected, check package-export support and the `react-native` custom condition rather than suppressing errors.
|
|
28
|
+
|
|
29
|
+
## Providers
|
|
30
|
+
|
|
31
|
+
Use `ThemeProvider` for tokens and `ResponsiveProvider` for responsive rules, as on web. Put them near your native app's root. Text content should use the library's text components rather than assuming a DOM container can render text.
|
|
32
|
+
|
|
33
|
+
## Optional native features
|
|
34
|
+
|
|
35
|
+
- `react-native-reanimated` enables supported animation presets.
|
|
36
|
+
- `react-native-svg` is used by components that render SVG.
|
|
37
|
+
- `react-native-linear-gradient` supports native gradients.
|
|
38
|
+
- `lucide-react-native` supplies native icons where used.
|
|
39
|
+
|
|
40
|
+
Install only the peers required by the components you use. Follow their version-specific setup and run pod installation when your iOS project requires it.
|
|
41
|
+
|
|
42
|
+
## Differences to plan for
|
|
43
|
+
|
|
44
|
+
- **Availability:** some components are web-only. Check the compatibility matrix before importing a screen's controls.
|
|
45
|
+
- **Layout:** CSS Grid maps to supported fixed-column native layouts, not the entire CSS Grid feature set.
|
|
46
|
+
- **Interaction:** browser hover selectors and pseudo-elements do not apply to touch interfaces.
|
|
47
|
+
- **Forms:** submission, return keys, and focus need explicit native wiring.
|
|
48
|
+
- **Navigation:** use your native navigation setup; browser link behavior is not a native route model.
|
|
49
|
+
- **Accessibility:** test native labels, roles, focus, and screen-reader behavior separately.
|
|
50
|
+
|
|
51
|
+
## Compatibility reference
|
|
52
|
+
|
|
53
|
+
Use the [component compatibility matrix and setup guide](https://github.com/rize-network/app-studio-components/blob/main/docs/getting-started/react-native.md) and the [framework native mappings](https://github.com/rize-network/app-studio/blob/main/docs/Native.md). The previews on this documentation site run in a browser and do not prove native compatibility.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Responsive layouts
|
|
2
|
+
|
|
3
|
+
Use the `media` prop for layout and style changes. Use responsive hooks when the rendered behavior or content must change. Configure both through `ResponsiveProvider`.
|
|
4
|
+
|
|
5
|
+
## Adapt a layout with media
|
|
6
|
+
|
|
7
|
+
```tsx
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { Horizontal, Vertical, Text } from 'app-studio';
|
|
10
|
+
import { Button } from '@app-studio/components';
|
|
11
|
+
|
|
12
|
+
export function ResponsiveActions() {
|
|
13
|
+
return (
|
|
14
|
+
<Horizontal
|
|
15
|
+
gap={24}
|
|
16
|
+
padding={24}
|
|
17
|
+
alignItems="center"
|
|
18
|
+
justifyContent="space-between"
|
|
19
|
+
media={{
|
|
20
|
+
mobile: { flexDirection: 'column', alignItems: 'stretch', padding: 16 },
|
|
21
|
+
}}
|
|
22
|
+
>
|
|
23
|
+
<Vertical gap={8}>
|
|
24
|
+
<Text fontSize={22} fontWeight="bold">
|
|
25
|
+
Ready for any screen
|
|
26
|
+
</Text>
|
|
27
|
+
<Text>Resize the viewport to change the layout.</Text>
|
|
28
|
+
</Vertical>
|
|
29
|
+
<Button>Continue</Button>
|
|
30
|
+
</Horizontal>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Named devices such as `mobile` depend on your provider configuration. They are not independent magic widths. On web, style overrides use media queries rather than requiring a hook-driven render.
|
|
36
|
+
|
|
37
|
+
## Configure breakpoints
|
|
38
|
+
|
|
39
|
+
The shipped defaults use `xs: 0`, `sm: 340`, `md: 560`, `lg: 1080`, and `xl: 1300`. You can supply explicit project breakpoints and device groups:
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
const breakpoints = { xs: 0, sm: 480, md: 768, lg: 1024, xl: 1440 };
|
|
43
|
+
const devices = {
|
|
44
|
+
mobile: ['xs', 'sm'],
|
|
45
|
+
tablet: ['md'],
|
|
46
|
+
desktop: ['lg', 'xl'],
|
|
47
|
+
};
|
|
48
|
+
// Pass both objects to ResponsiveProvider near the root.
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Keep this configuration shared across screens. Changing it changes every named-device rule beneath that provider.
|
|
52
|
+
|
|
53
|
+
## When to use a hook
|
|
54
|
+
|
|
55
|
+
`useResponsive()` exposes helpers such as `on('mobile')` for device-aware logic. Hook-driven decisions re-render when the responsive state changes. Prefer `media` for purely visual changes and avoid hiding essential content on small screens.
|
|
56
|
+
|
|
57
|
+
## Native and constrained layouts
|
|
58
|
+
|
|
59
|
+
Native responsive state follows window dimensions, including rotation and split-screen. CSS Grid does not exist on native: use a fixed integer column count for the supported mapping or explicit Flexbox layouts.
|
|
60
|
+
|
|
61
|
+
A browser-window breakpoint is not the same as the width of a narrow panel. The framework's [responsive reference](https://github.com/rize-network/app-studio/blob/main/docs/Responsive.md) also covers container-scoped responsiveness.
|
|
62
|
+
|
|
63
|
+
## Verify the result
|
|
64
|
+
|
|
65
|
+
Test a narrow phone, a tablet-sized viewport, a wide screen, and enlarged text. Check focus visibility and code overflow as well as visual alignment.
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Styling & composition
|
|
2
|
+
|
|
3
|
+
Use the same styling foundation across your own primitives and the ready-made library. Keep layout close to the component and customize only what you need.
|
|
4
|
+
|
|
5
|
+
## Start with style props
|
|
6
|
+
|
|
7
|
+
```tsx
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { View, Text } from 'app-studio';
|
|
10
|
+
|
|
11
|
+
export function Callout() {
|
|
12
|
+
return (
|
|
13
|
+
<View
|
|
14
|
+
padding={24}
|
|
15
|
+
borderRadius={12}
|
|
16
|
+
backgroundColor="color-blue-50"
|
|
17
|
+
borderWidth={1}
|
|
18
|
+
borderStyle="solid"
|
|
19
|
+
borderColor="color-blue-200"
|
|
20
|
+
>
|
|
21
|
+
<Text color="color-blue-900">
|
|
22
|
+
A consistent foundation, with room for your design.
|
|
23
|
+
</Text>
|
|
24
|
+
</View>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Resolve tokens through `ThemeProvider`. Numeric spacing values represent pixels on web and native layout units on React Native.
|
|
30
|
+
|
|
31
|
+
## Choose a built-in variant
|
|
32
|
+
|
|
33
|
+
Before overriding internal styles, check the component's `variant`, `size`, and other documented props.
|
|
34
|
+
|
|
35
|
+
```tsx
|
|
36
|
+
import React from 'react';
|
|
37
|
+
import { Horizontal } from 'app-studio';
|
|
38
|
+
import { Button } from '@app-studio/components';
|
|
39
|
+
|
|
40
|
+
export function Actions() {
|
|
41
|
+
return (
|
|
42
|
+
<Horizontal gap={12} flexWrap="wrap">
|
|
43
|
+
<Button variant="filled" size="sm">
|
|
44
|
+
Save
|
|
45
|
+
</Button>
|
|
46
|
+
<Button variant="outline" size="sm">
|
|
47
|
+
Cancel
|
|
48
|
+
</Button>
|
|
49
|
+
<Button variant="ghost" size="sm">
|
|
50
|
+
More options
|
|
51
|
+
</Button>
|
|
52
|
+
</Horizontal>
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Variant names differ between components. Use each component's TypeScript props and examples rather than assuming every control accepts the same names.
|
|
58
|
+
|
|
59
|
+
## Customize internal views
|
|
60
|
+
|
|
61
|
+
`views` exposes named internal parts. Button exposes `container`, `content`, and icon and loader parts. The available names are component-specific.
|
|
62
|
+
|
|
63
|
+
```tsx
|
|
64
|
+
import React from 'react';
|
|
65
|
+
import { Button } from '@app-studio/components';
|
|
66
|
+
|
|
67
|
+
export function CustomButton() {
|
|
68
|
+
return (
|
|
69
|
+
<Button
|
|
70
|
+
variant="outline"
|
|
71
|
+
views={{
|
|
72
|
+
container: { borderRadius: 12 },
|
|
73
|
+
content: { letterSpacing: 0.5 },
|
|
74
|
+
}}
|
|
75
|
+
>
|
|
76
|
+
Your brand
|
|
77
|
+
</Button>
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Preserve labels, focus indicators, disabled behavior, and hit areas when overriding views.
|
|
83
|
+
|
|
84
|
+
## Interaction states on the web
|
|
85
|
+
|
|
86
|
+
Primitives support state styles such as `_hover`, `_active`, and `_focus`. Use a semantic interactive element and keep keyboard focus visible.
|
|
87
|
+
|
|
88
|
+
```tsx
|
|
89
|
+
import React from 'react';
|
|
90
|
+
import { View } from 'app-studio';
|
|
91
|
+
|
|
92
|
+
export function StateExample() {
|
|
93
|
+
return (
|
|
94
|
+
<View
|
|
95
|
+
as="button"
|
|
96
|
+
padding={12}
|
|
97
|
+
borderRadius={8}
|
|
98
|
+
backgroundColor="color-blue-900"
|
|
99
|
+
color="color-white"
|
|
100
|
+
_hover={{ backgroundColor: 'color-blue-800' }}
|
|
101
|
+
_focus={{ outline: '3px solid #93c5fd', outlineOffset: 3 }}
|
|
102
|
+
>
|
|
103
|
+
Focus or hover me
|
|
104
|
+
</View>
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Browser selectors and pseudo-elements are web-only. On native, use supported platform events and accessibility behavior. See [platform differences](/docs/react-native).
|
|
110
|
+
|
|
111
|
+
## Compose ordinary React components
|
|
112
|
+
|
|
113
|
+
Extract a component when layout or behavior repeats. A single visual adjustment can stay as props at the call site. Configure [theme tokens](/docs/theming) before copying raw colors across your app.
|
|
114
|
+
|
|
115
|
+
The [framework styling reference](https://github.com/rize-network/app-studio/blob/main/docs/Styling.md) documents more states and selectors.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Colors & theming
|
|
2
|
+
|
|
3
|
+
Connect your interface to shared color tokens. Put `ThemeProvider` near the root so primitives and ready-made components resolve the same palette.
|
|
4
|
+
|
|
5
|
+
## Theme tokens and palette tokens
|
|
6
|
+
|
|
7
|
+
`theme-primary` is a semantic role. You decide which palette entry it points to. `color-blue-900` is a specific palette entry. Both are resolved through the provider.
|
|
8
|
+
|
|
9
|
+
```tsx
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { ThemeProvider, Vertical, Text } from 'app-studio';
|
|
12
|
+
import { Button } from '@app-studio/components';
|
|
13
|
+
|
|
14
|
+
export function BrandExample() {
|
|
15
|
+
return (
|
|
16
|
+
<ThemeProvider theme={{ primary: 'color-violet-700' }}>
|
|
17
|
+
<Vertical gap={16} padding={24}>
|
|
18
|
+
<Text color="theme-primary" fontWeight="bold">
|
|
19
|
+
Your brand, shared.
|
|
20
|
+
</Text>
|
|
21
|
+
<Button>Primary action</Button>
|
|
22
|
+
<Button variant="outline">Secondary action</Button>
|
|
23
|
+
</Vertical>
|
|
24
|
+
</ThemeProvider>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Use semantic tokens for roles that should change together. Use palette tokens when a deliberate fixed color is appropriate.
|
|
30
|
+
|
|
31
|
+
## Light and dark mode
|
|
32
|
+
|
|
33
|
+
Control the provider's `mode` prop with React state. It selects the light or dark palette; it does not automatically redesign every custom color or browser document style in your application.
|
|
34
|
+
|
|
35
|
+
```tsx
|
|
36
|
+
import React from 'react';
|
|
37
|
+
import { ThemeProvider, Vertical, Text } from 'app-studio';
|
|
38
|
+
import { Button } from '@app-studio/components';
|
|
39
|
+
|
|
40
|
+
export function ThemeExample() {
|
|
41
|
+
const [dark, setDark] = React.useState(false);
|
|
42
|
+
return (
|
|
43
|
+
<ThemeProvider mode={dark ? 'dark' : 'light'}>
|
|
44
|
+
<Vertical
|
|
45
|
+
padding={24}
|
|
46
|
+
gap={16}
|
|
47
|
+
backgroundColor="color-white"
|
|
48
|
+
borderRadius={12}
|
|
49
|
+
>
|
|
50
|
+
<Text color="color-gray-900">A shared color system.</Text>
|
|
51
|
+
<Button onClick={() => setDark(!dark)}>
|
|
52
|
+
Switch to {dark ? 'light' : 'dark'} mode
|
|
53
|
+
</Button>
|
|
54
|
+
</Vertical>
|
|
55
|
+
</ThemeProvider>
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Check text contrast, surfaces, borders, disabled states, and focus rings in each mode. Raw hex colors keep their literal value rather than following the palette.
|
|
61
|
+
|
|
62
|
+
## Per-component colors
|
|
63
|
+
|
|
64
|
+
Button supports `backgroundColor` for its surface and `textColor` for explicit content color. Other components have their own color props and internal `views` parts. Check the current TypeScript props before copying an override across components.
|
|
65
|
+
|
|
66
|
+
## Custom palettes and external tools
|
|
67
|
+
|
|
68
|
+
The provider also accepts `light` and `dark` palette configurations. `useTheme` exposes helpers such as `getColor` for CSS variables and `getColorHex` when another library needs a literal color.
|
|
69
|
+
|
|
70
|
+
See the [full theming reference](https://github.com/rize-network/app-studio/blob/main/docs/Theming.md) for palette structure and resolution rules. Start with a few semantic tokens before replacing the entire palette.
|