@app-studio/web 0.8.74 → 0.8.77
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/README.md +171 -0
- package/dist/components/Accordion/Accordion/Accordion.props.d.ts +36 -15
- package/dist/components/Accordion/Accordion/Accordion.state.d.ts +7 -3
- package/dist/components/Accordion/Accordion/Accordion.type.d.ts +23 -0
- package/dist/components/Accordion/Accordion/Accordion.view.d.ts +12 -3
- package/dist/components/Accordion/Accordion.d.ts +2 -2
- package/dist/components/Accordion/examples/collapsible.d.ts +2 -0
- package/dist/components/Accordion/examples/index.d.ts +1 -0
- package/dist/components/Alert/Alert/Alert.props.d.ts +2 -2
- package/dist/components/Alert/Alert/Alert.style.d.ts +20 -47
- package/dist/components/Alert/Alert/Alert.view.d.ts +8 -0
- package/dist/components/Alert/examples/designSystem.d.ts +12 -0
- package/dist/components/Avatar/Avatar/Avatar.style.d.ts +22 -0
- package/dist/components/Avatar/Avatar/Avatar.view.d.ts +6 -0
- package/dist/components/Avatar/examples/designSystem.d.ts +12 -0
- package/dist/components/Avatar/examples/index.d.ts +1 -0
- package/dist/components/Badge/Badge/Badge.style.d.ts +24 -2
- package/dist/components/Badge/Badge/Badge.view.d.ts +8 -0
- package/dist/components/Badge/examples/designSystem.d.ts +12 -0
- package/dist/components/Badge/examples/index.d.ts +1 -0
- package/dist/components/Button/Button/Button.style.d.ts +24 -1
- package/dist/components/Button/Button/Button.view.d.ts +5 -0
- package/dist/components/Button/examples/designSystem.d.ts +12 -0
- package/dist/components/Button/examples/index.d.ts +1 -0
- package/dist/components/Card/Card/Card.context.d.ts +7 -0
- package/dist/components/Card/Card/Card.props.d.ts +81 -0
- package/dist/components/Card/Card/Card.state.d.ts +5 -0
- package/dist/components/Card/Card/Card.style.d.ts +29 -0
- package/dist/components/Card/Card/Card.type.d.ts +10 -0
- package/dist/components/Card/Card/Card.view.d.ts +6 -0
- package/dist/components/Card/Card.d.ts +2 -0
- package/dist/components/Card/examples/contextStyling.d.ts +2 -0
- package/dist/components/Card/examples/custom.d.ts +2 -0
- package/dist/components/Card/examples/default.d.ts +2 -0
- package/dist/components/Card/examples/designSystem.d.ts +12 -0
- package/dist/components/Card/examples/index.d.ts +8 -0
- package/dist/components/Card/examples/shapes.d.ts +2 -0
- package/dist/components/Card/examples/sizes.d.ts +2 -0
- package/dist/components/Card/examples/structured.d.ts +2 -0
- package/dist/components/Card/examples/variants.d.ts +2 -0
- package/dist/components/Carousel/Carousel/Carousel.context.d.ts +4 -0
- package/dist/components/Carousel/Carousel/Carousel.props.d.ts +155 -0
- package/dist/components/Carousel/Carousel/Carousel.state.d.ts +29 -0
- package/dist/components/Carousel/Carousel/Carousel.style.d.ts +6 -0
- package/dist/components/Carousel/Carousel/Carousel.type.d.ts +32 -0
- package/dist/components/Carousel/Carousel/Carousel.view.d.ts +8 -0
- package/dist/components/Carousel/Carousel.d.ts +2 -0
- package/dist/components/Carousel/examples/autoplay.d.ts +2 -0
- package/dist/components/Carousel/examples/compound.d.ts +3 -0
- package/dist/components/Carousel/examples/custom.d.ts +2 -0
- package/dist/components/Carousel/examples/default.d.ts +2 -0
- package/dist/components/Carousel/examples/index.d.ts +7 -0
- package/dist/components/Carousel/examples/indicators.d.ts +2 -0
- package/dist/components/Carousel/examples/navigation.d.ts +2 -0
- package/dist/components/Carousel/examples/stepIndices.d.ts +2 -0
- package/dist/components/Chart/Chart/BarChart.d.ts +15 -0
- package/dist/components/Chart/Chart/Chart.props.d.ts +101 -0
- package/dist/components/Chart/Chart/Chart.state.d.ts +37 -0
- package/dist/components/Chart/Chart/Chart.style.d.ts +20 -0
- package/dist/components/Chart/Chart/Chart.type.d.ts +36 -0
- package/dist/components/Chart/Chart/Chart.view.d.ts +3 -0
- package/dist/components/Chart/Chart/ChartColors.d.ts +20 -0
- package/dist/components/Chart/Chart/LineChart.d.ts +15 -0
- package/dist/components/Chart/Chart/PieChart.d.ts +15 -0
- package/dist/components/Chart/Chart.d.ts +3 -0
- package/dist/components/Chart/examples/area.d.ts +2 -0
- package/dist/components/Chart/examples/bar.d.ts +2 -0
- package/dist/components/Chart/examples/custom.d.ts +2 -0
- package/dist/components/Chart/examples/designSystem.d.ts +12 -0
- package/dist/components/Chart/examples/donut.d.ts +2 -0
- package/dist/components/Chart/examples/index.d.ts +8 -0
- package/dist/components/Chart/examples/line.d.ts +2 -0
- package/dist/components/Chart/examples/pie.d.ts +2 -0
- package/dist/components/Chart/examples/states.d.ts +2 -0
- package/dist/components/Chat/AIResponseDisplay/AIResponseDisplay/AIResponseDisplay.props.d.ts +40 -0
- package/dist/components/Chat/AIResponseDisplay/AIResponseDisplay/AIResponseDisplay.style.d.ts +10 -0
- package/dist/components/Chat/AIResponseDisplay/AIResponseDisplay/AIResponseDisplay.type.d.ts +23 -0
- package/dist/components/Chat/AIResponseDisplay/AIResponseDisplay/AIResponseDisplay.view.d.ts +9 -0
- package/dist/components/Chat/AIResponseDisplay/AIResponseDisplay.d.ts +10 -0
- package/dist/components/Chat/AIResponseDisplay/examples/basic.d.ts +5 -0
- package/dist/components/Chat/AIResponseDisplay/examples/index.d.ts +4 -0
- package/dist/components/Chat/ChatInterface/ChatInterface/ChatInterface.props.d.ts +56 -0
- package/dist/components/Chat/ChatInterface/ChatInterface/ChatInterface.state.d.ts +12 -0
- package/dist/components/Chat/ChatInterface/ChatInterface/ChatInterface.style.d.ts +10 -0
- package/dist/components/Chat/ChatInterface/ChatInterface/ChatInterface.type.d.ts +19 -0
- package/dist/components/Chat/ChatInterface/ChatInterface/ChatInterface.view.d.ts +14 -0
- package/dist/components/Chat/ChatInterface/ChatInterface.d.ts +11 -0
- package/dist/components/Chat/CodeBlock/CodeBlock/CodeBlock.props.d.ts +35 -0
- package/dist/components/Chat/CodeBlock/CodeBlock/CodeBlock.state.d.ts +7 -0
- package/dist/components/Chat/CodeBlock/CodeBlock/CodeBlock.style.d.ts +12 -0
- package/dist/components/Chat/CodeBlock/CodeBlock/CodeBlock.type.d.ts +11 -0
- package/dist/components/Chat/CodeBlock/CodeBlock/CodeBlock.view.d.ts +11 -0
- package/dist/components/Chat/CodeBlock/CodeBlock.d.ts +10 -0
- package/dist/components/Chat/FileUploader/FileUploader/FileUploader.props.d.ts +47 -0
- package/dist/components/Chat/FileUploader/FileUploader/FileUploader.state.d.ts +15 -0
- package/dist/components/Chat/FileUploader/FileUploader/FileUploader.style.d.ts +15 -0
- package/dist/components/Chat/FileUploader/FileUploader/FileUploader.type.d.ts +24 -0
- package/dist/components/Chat/FileUploader/FileUploader/FileUploader.view.d.ts +18 -0
- package/dist/components/Chat/FileUploader/FileUploader.d.ts +11 -0
- package/dist/components/Chat/LoadingIndicator/LoadingIndicator/LoadingIndicator.props.d.ts +27 -0
- package/dist/components/Chat/LoadingIndicator/LoadingIndicator/LoadingIndicator.style.d.ts +13 -0
- package/dist/components/Chat/LoadingIndicator/LoadingIndicator/LoadingIndicator.type.d.ts +11 -0
- package/dist/components/Chat/LoadingIndicator/LoadingIndicator/LoadingIndicator.view.d.ts +6 -0
- package/dist/components/Chat/LoadingIndicator/LoadingIndicator.d.ts +10 -0
- package/dist/components/Chat/MessageBubble/MessageBubble/MessageBubble.props.d.ts +36 -0
- package/dist/components/Chat/MessageBubble/MessageBubble/MessageBubble.state.d.ts +14 -0
- package/dist/components/Chat/MessageBubble/MessageBubble/MessageBubble.style.d.ts +10 -0
- package/dist/components/Chat/MessageBubble/MessageBubble/MessageBubble.type.d.ts +11 -0
- package/dist/components/Chat/MessageBubble/MessageBubble/MessageBubble.view.d.ts +17 -0
- package/dist/components/Chat/MessageBubble/MessageBubble.d.ts +10 -0
- package/dist/components/Chat/ModelSelector/ModelSelector/ModelSelector.props.d.ts +39 -0
- package/dist/components/Chat/ModelSelector/ModelSelector/ModelSelector.state.d.ts +12 -0
- package/dist/components/Chat/ModelSelector/ModelSelector/ModelSelector.style.d.ts +11 -0
- package/dist/components/Chat/ModelSelector/ModelSelector/ModelSelector.type.d.ts +21 -0
- package/dist/components/Chat/ModelSelector/ModelSelector/ModelSelector.view.d.ts +16 -0
- package/dist/components/Chat/ModelSelector/ModelSelector.d.ts +10 -0
- package/dist/components/Chat/PromptInput/PromptInput/PromptInput.props.d.ts +59 -0
- package/dist/components/Chat/PromptInput/PromptInput/PromptInput.state.d.ts +13 -0
- package/dist/components/Chat/PromptInput/PromptInput/PromptInput.style.d.ts +10 -0
- package/dist/components/Chat/PromptInput/PromptInput/PromptInput.type.d.ts +11 -0
- package/dist/components/Chat/PromptInput/PromptInput/PromptInput.view.d.ts +16 -0
- package/dist/components/Chat/PromptInput/PromptInput.d.ts +10 -0
- package/dist/components/Chat/SettingsPanel/SettingsPanel/SettingsPanel.props.d.ts +31 -0
- package/dist/components/Chat/SettingsPanel/SettingsPanel/SettingsPanel.style.d.ts +11 -0
- package/dist/components/Chat/SettingsPanel/SettingsPanel/SettingsPanel.type.d.ts +30 -0
- package/dist/components/Chat/SettingsPanel/SettingsPanel/SettingsPanel.view.d.ts +6 -0
- package/dist/components/Chat/SettingsPanel/SettingsPanel.d.ts +10 -0
- package/dist/components/Chat/ToolSelector/ToolSelector/ToolSelector.props.d.ts +39 -0
- package/dist/components/Chat/ToolSelector/ToolSelector/ToolSelector.style.d.ts +10 -0
- package/dist/components/Chat/ToolSelector/ToolSelector/ToolSelector.type.d.ts +20 -0
- package/dist/components/Chat/ToolSelector/ToolSelector/ToolSelector.view.d.ts +6 -0
- package/dist/components/Chat/ToolSelector/ToolSelector.d.ts +10 -0
- package/dist/components/Chat/index.d.ts +16 -0
- package/dist/components/Command/Command/Command.props.d.ts +162 -0
- package/dist/components/Command/Command/Command.state.d.ts +18 -0
- package/dist/components/Command/Command/Command.style.d.ts +18 -0
- package/dist/components/Command/Command/Command.type.d.ts +114 -0
- package/dist/components/Command/Command/Command.view.d.ts +31 -0
- package/dist/components/Command/Command.d.ts +2 -0
- package/dist/components/Command/examples/customized.d.ts +2 -0
- package/dist/components/Command/examples/default.d.ts +2 -0
- package/dist/components/Command/examples/groups.d.ts +2 -0
- package/dist/components/Command/examples/index.d.ts +5 -0
- package/dist/components/Command/examples/sizes.d.ts +2 -0
- package/dist/components/Command/examples/variants.d.ts +2 -0
- package/dist/components/Command/index.d.ts +1 -0
- package/dist/components/ContextMenu/ContextMenu/ContextMenu.props.d.ts +51 -8
- package/dist/components/ContextMenu/ContextMenu/ContextMenu.state.d.ts +16 -5
- package/dist/components/ContextMenu/ContextMenu/ContextMenu.type.d.ts +12 -1
- package/dist/components/ContextMenu/ContextMenu/ContextMenu.view.d.ts +5 -4
- package/dist/components/ContextMenu/examples/compound.d.ts +2 -0
- package/dist/components/ContextMenu/examples/index.d.ts +1 -0
- package/dist/components/Form/Checkbox/Checkbox/Checkbox.style.d.ts +70 -1
- package/dist/components/Form/Checkbox/Checkbox/Checkbox.view.d.ts +6 -0
- package/dist/components/Form/Checkbox/examples/designSystem.d.ts +12 -0
- package/dist/components/Form/Checkbox/examples/index.d.ts +1 -0
- package/dist/components/Form/Radio/Radio/Radio.props.d.ts +104 -0
- package/dist/components/Form/Radio/Radio/Radio.state.d.ts +16 -0
- package/dist/components/Form/Radio/Radio/Radio.style.d.ts +92 -0
- package/dist/components/Form/Radio/Radio/Radio.view.d.ts +10 -0
- package/dist/components/Form/Radio/Radio.d.ts +11 -0
- package/dist/components/Form/Radio/RadioGroup/RadioGroup.props.d.ts +78 -0
- package/dist/components/Form/Radio/RadioGroup/RadioGroup.state.d.ts +13 -0
- package/dist/components/Form/Radio/RadioGroup/RadioGroup.view.d.ts +10 -0
- package/dist/components/Form/Radio/RadioGroup.d.ts +11 -0
- package/dist/components/Form/Radio/examples/Default.d.ts +5 -0
- package/dist/components/Form/Radio/examples/DefaultGroup.d.ts +5 -0
- package/dist/components/Form/Radio/examples/designSystem.d.ts +12 -0
- package/dist/components/Form/Radio/examples/index.d.ts +3 -0
- package/dist/components/Form/Radio/index.d.ts +2 -0
- package/dist/components/Form/Select/Select/Select.style.d.ts +22 -0
- package/dist/components/Form/Select/Select/Select.view.d.ts +5 -0
- package/dist/components/Form/Select/examples/designSystem.d.ts +12 -0
- package/dist/components/Form/Select/examples/index.d.ts +1 -0
- package/dist/components/Form/Switch/Switch/Switch.style.d.ts +44 -0
- package/dist/components/Form/Switch/Switch/Switch.view.d.ts +6 -0
- package/dist/components/Form/Switch/examples/designSystem.d.ts +12 -0
- package/dist/components/Form/Switch/examples/index.d.ts +1 -0
- package/dist/components/Form/TextArea/TextArea/TextArea.view.d.ts +6 -0
- package/dist/components/Form/TextArea/examples/designSystem.d.ts +12 -0
- package/dist/components/Form/TextArea/examples/index.d.ts +1 -0
- package/dist/components/Form/TextField/TextField/TextField.view.d.ts +6 -0
- package/dist/components/Form/TextField/examples/designSystem.d.ts +12 -0
- package/dist/components/Form/TextField/examples/index.d.ts +1 -0
- package/dist/components/Formik/Formik.OTPInput.d.ts +8 -0
- package/dist/components/Formik/examples/FormikOTPInput.d.ts +5 -0
- package/dist/components/Formik/examples/index.d.ts +1 -0
- package/dist/components/Formik/index.d.ts +1 -0
- package/dist/components/Gradient/Gradient/Gradient.props.d.ts +64 -0
- package/dist/components/Gradient/Gradient/Gradient.style.d.ts +82 -0
- package/dist/components/Gradient/Gradient/Gradient.type.d.ts +37 -0
- package/dist/components/Gradient/Gradient/Gradient.view.d.ts +9 -0
- package/dist/components/Gradient/Gradient.d.ts +30 -0
- package/dist/components/Gradient/examples/animated.d.ts +2 -0
- package/dist/components/Gradient/examples/default.d.ts +2 -0
- package/dist/components/Gradient/examples/designSystem.d.ts +12 -0
- package/dist/components/Gradient/examples/directions.d.ts +2 -0
- package/dist/components/Gradient/examples/index.d.ts +7 -0
- package/dist/components/Gradient/examples/multicolor.d.ts +2 -0
- package/dist/components/Gradient/examples/types.d.ts +2 -0
- package/dist/components/Gradient/examples/withContent.d.ts +2 -0
- package/dist/components/Gradient/index.d.ts +1 -0
- package/dist/components/HoverCard/HoverCard/HoverCard.props.d.ts +21 -0
- package/dist/components/HoverCard/HoverCard/HoverCard.state.d.ts +9 -2
- package/dist/components/HoverCard/HoverCard/HoverCard.style.d.ts +3 -1
- package/dist/components/HoverCard/HoverCard/HoverCard.type.d.ts +8 -1
- package/dist/components/HoverCard/examples/delays.d.ts +2 -0
- package/dist/components/HoverCard/examples/index.d.ts +1 -0
- package/dist/components/Icon/Icon.d.ts +2 -0
- package/dist/components/{Layout/Input → Input}/FieldContainer/FieldContainer/FieldContainer.props.d.ts +1 -1
- package/dist/components/Input/FieldContainer/FieldContainer.d.ts +9 -0
- package/dist/components/{Layout/Input → Input}/FieldContent/FieldContent/FieldContent.props.d.ts +3 -8
- package/dist/components/Input/FieldContent/FieldContent.d.ts +9 -0
- package/dist/components/{Layout/Input → Input}/FieldLabel/FieldLabel/FieldLabel.props.d.ts +1 -1
- package/dist/components/Input/FieldLabel/FieldLabel.d.ts +9 -0
- package/dist/components/{Layout/Input → Input}/FieldLayout/FieldLayout/FieldLayout.props.d.ts +1 -1
- package/dist/components/Input/FieldWrapper/FieldWrapper.d.ts +9 -0
- package/dist/components/Input/HelperText/HelperText.d.ts +9 -0
- package/dist/components/{Layout/Input → Input}/HelperText/HelperText.props.d.ts +1 -1
- package/dist/components/Input/Input.style.d.ts +42 -0
- package/dist/components/Input/index.d.ts +7 -0
- package/dist/components/Menubar/Menubar/Menubar.props.d.ts +185 -0
- package/dist/components/Menubar/Menubar/Menubar.state.d.ts +9 -0
- package/dist/components/Menubar/Menubar/Menubar.style.d.ts +19 -0
- package/dist/components/Menubar/Menubar/Menubar.type.d.ts +35 -0
- package/dist/components/Menubar/Menubar/Menubar.view.d.ts +21 -0
- package/dist/components/Menubar/Menubar.d.ts +2 -0
- package/dist/components/Menubar/examples/composite.d.ts +2 -0
- package/dist/components/Menubar/examples/default.d.ts +2 -0
- package/dist/components/Menubar/examples/index.d.ts +5 -0
- package/dist/components/Menubar/examples/sizes.d.ts +2 -0
- package/dist/components/Menubar/examples/variants.d.ts +2 -0
- package/dist/components/Menubar/examples/vertical.d.ts +2 -0
- package/dist/components/Menubar/index.d.ts +1 -0
- package/dist/components/Modal/Examples/designSystem.d.ts +12 -0
- package/dist/components/Modal/Examples/index.d.ts +1 -0
- package/dist/components/Modal/Modal/Modal.style.d.ts +53 -0
- package/dist/components/Modal/Modal/Modal.view.d.ts +6 -0
- package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.props.d.ts +42 -4
- package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.style.d.ts +41 -0
- package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.view.d.ts +7 -1
- package/dist/components/NavigationMenu/examples/compound.d.ts +2 -0
- package/dist/components/NavigationMenu/examples/designSystem.d.ts +12 -0
- package/dist/components/NavigationMenu/examples/index.d.ts +2 -0
- package/dist/components/OTPInput/OTPInput/OTPInput.props.d.ts +142 -0
- package/dist/components/OTPInput/OTPInput/OTPInput.state.d.ts +22 -0
- package/dist/components/OTPInput/OTPInput/OTPInput.type.d.ts +16 -0
- package/dist/components/OTPInput/OTPInput/OTPInput.view.d.ts +28 -0
- package/dist/components/OTPInput/OTPInput/sync-timeouts.d.ts +1 -0
- package/dist/components/OTPInput/OTPInput.d.ts +3 -0
- package/dist/components/OTPInput/examples/Default.d.ts +4 -0
- package/dist/components/OTPInput/examples/OnComplete.d.ts +2 -0
- package/dist/components/OTPInput/examples/PasswordOTP.d.ts +3 -0
- package/dist/components/OTPInput/examples/StepValues.d.ts +3 -0
- package/dist/components/OTPInput/examples/index.d.ts +4 -0
- package/dist/components/Pagination/Pagination/Pagination.props.d.ts +60 -0
- package/dist/components/Pagination/Pagination/Pagination.state.d.ts +3 -0
- package/dist/components/Pagination/Pagination/Pagination.style.d.ts +7 -0
- package/dist/components/Pagination/Pagination/Pagination.type.d.ts +17 -0
- package/dist/components/Pagination/Pagination/Pagination.view.d.ts +3 -0
- package/dist/components/Pagination/Pagination.d.ts +3 -0
- package/dist/components/Pagination/examples/advanced.d.ts +2 -0
- package/dist/components/Pagination/examples/default.d.ts +2 -0
- package/dist/components/Pagination/examples/index.d.ts +6 -0
- package/dist/components/Pagination/examples/shapes.d.ts +2 -0
- package/dist/components/Pagination/examples/sizes.d.ts +2 -0
- package/dist/components/Pagination/examples/table.d.ts +2 -0
- package/dist/components/Pagination/examples/variants.d.ts +2 -0
- package/dist/components/Pagination/index.d.ts +1 -0
- package/dist/components/Resizable/Resizable/Resizable.props.d.ts +160 -0
- package/dist/components/Resizable/Resizable/Resizable.state.d.ts +17 -0
- package/dist/components/Resizable/Resizable/Resizable.style.d.ts +6 -0
- package/dist/components/Resizable/Resizable/Resizable.type.d.ts +56 -0
- package/dist/components/Resizable/Resizable/Resizable.view.d.ts +13 -0
- package/dist/components/Resizable/Resizable.d.ts +2 -0
- package/dist/components/Resizable/examples/codeEditor.d.ts +2 -0
- package/dist/components/Resizable/examples/collapsible.d.ts +2 -0
- package/dist/components/Resizable/examples/controlled.d.ts +2 -0
- package/dist/components/Resizable/examples/default.d.ts +2 -0
- package/dist/components/Resizable/examples/index.d.ts +9 -0
- package/dist/components/Resizable/examples/nested.d.ts +2 -0
- package/dist/components/Resizable/examples/sizes.d.ts +2 -0
- package/dist/components/Resizable/examples/test.d.ts +2 -0
- package/dist/components/Resizable/examples/variants.d.ts +2 -0
- package/dist/components/Resizable/examples/vertical.d.ts +2 -0
- package/dist/components/Resizable/index.d.ts +1 -0
- package/dist/components/Separator/Separator/Separator.props.d.ts +38 -0
- package/dist/components/Separator/Separator/Separator.style.d.ts +38 -0
- package/dist/components/Separator/Separator/Separator.type.d.ts +8 -0
- package/dist/components/Separator/Separator/Separator.view.d.ts +9 -0
- package/dist/components/Separator/Separator.d.ts +4 -0
- package/dist/components/Separator/examples/colors.d.ts +2 -0
- package/dist/components/Separator/examples/customized.d.ts +2 -0
- package/dist/components/Separator/examples/default.d.ts +2 -0
- package/dist/components/Separator/examples/designSystem.d.ts +12 -0
- package/dist/components/Separator/examples/inCard.d.ts +2 -0
- package/dist/components/Separator/examples/index.d.ts +9 -0
- package/dist/components/Separator/examples/orientations.d.ts +2 -0
- package/dist/components/Separator/examples/thicknesses.d.ts +2 -0
- package/dist/components/Separator/examples/variants.d.ts +2 -0
- package/dist/components/Separator/examples/withLabel.d.ts +2 -0
- package/dist/components/Separator/index.d.ts +1 -0
- package/dist/components/Sidebar/Sidebar/Sidebar.props.d.ts +153 -0
- package/dist/components/Sidebar/Sidebar/Sidebar.state.d.ts +7 -0
- package/dist/components/Sidebar/Sidebar/Sidebar.style.d.ts +44 -0
- package/dist/components/Sidebar/Sidebar/Sidebar.type.d.ts +32 -0
- package/dist/components/Sidebar/Sidebar/Sidebar.view.d.ts +21 -0
- package/dist/components/Sidebar/Sidebar.d.ts +2 -0
- package/dist/components/Sidebar/examples/accessibleSidebar.d.ts +2 -0
- package/dist/components/Sidebar/examples/controlled.d.ts +2 -0
- package/dist/components/Sidebar/examples/customized.d.ts +2 -0
- package/dist/components/Sidebar/examples/default.d.ts +2 -0
- package/dist/components/Sidebar/examples/designSystem.d.ts +12 -0
- package/dist/components/Sidebar/examples/index.d.ts +8 -0
- package/dist/components/Sidebar/examples/positions.d.ts +2 -0
- package/dist/components/Sidebar/examples/sizes.d.ts +2 -0
- package/dist/components/Sidebar/examples/variants.d.ts +2 -0
- package/dist/components/Sidebar/index.d.ts +1 -0
- package/dist/components/Slider/examples/index.d.ts +12 -0
- package/dist/components/Slider/examples/tooltipIntegration.d.ts +2 -0
- package/dist/components/Table/Table/Table.style.d.ts +31 -0
- package/dist/components/Table/Table/Table.view.d.ts +6 -0
- package/dist/components/Table/examples/designSystem.d.ts +12 -0
- package/dist/components/Table/examples/index.d.ts +1 -0
- package/dist/components/Tabs/Tabs/TabHeader.d.ts +22 -0
- package/dist/components/Tabs/Tabs/Tabs.props.d.ts +4 -2
- package/dist/components/Tabs/examples/customHeader.d.ts +2 -0
- package/dist/components/Tabs/examples/index.d.ts +1 -0
- package/dist/components/Text/Text/Text.style.d.ts +26 -2
- package/dist/components/Text/Text/Text.view.d.ts +8 -0
- package/dist/components/Text/examples/designSystem.d.ts +10 -0
- package/dist/components/Text/examples/index.d.ts +1 -0
- package/dist/components/Toast/Toast/Toast.hook.d.ts +35 -0
- package/dist/components/Toast/Toast/Toast.props.d.ts +91 -0
- package/dist/components/Toast/Toast/Toast.store.d.ts +9 -0
- package/dist/components/Toast/Toast/Toast.style.d.ts +37 -0
- package/dist/components/Toast/Toast/Toast.type.d.ts +63 -0
- package/dist/components/Toast/Toast/Toast.view.d.ts +4 -0
- package/dist/components/Toast/Toast.d.ts +22 -0
- package/dist/components/Toast/examples/actions.d.ts +2 -0
- package/dist/components/Toast/examples/customization.d.ts +2 -0
- package/dist/components/Toast/examples/default.d.ts +2 -0
- package/dist/components/Toast/examples/designSystem.d.ts +12 -0
- package/dist/components/Toast/examples/duration.d.ts +2 -0
- package/dist/components/Toast/examples/hookUsage.d.ts +2 -0
- package/dist/components/Toast/examples/index.d.ts +8 -0
- package/dist/components/Toast/examples/positions.d.ts +2 -0
- package/dist/components/Toast/examples/variants.d.ts +2 -0
- package/dist/components/Toast/index.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip/Tooltip.props.d.ts +108 -0
- package/dist/components/Tooltip/Tooltip/Tooltip.state.d.ts +18 -0
- package/dist/components/Tooltip/Tooltip/Tooltip.style.d.ts +6 -0
- package/dist/components/Tooltip/Tooltip/Tooltip.type.d.ts +21 -0
- package/dist/components/Tooltip/Tooltip/Tooltip.view.d.ts +20 -0
- package/dist/components/Tooltip/Tooltip.d.ts +2 -0
- package/dist/components/Tooltip/examples/custom.d.ts +2 -0
- package/dist/components/Tooltip/examples/default.d.ts +2 -0
- package/dist/components/Tooltip/examples/index.d.ts +6 -0
- package/dist/components/Tooltip/examples/integration.d.ts +2 -0
- package/dist/components/Tooltip/examples/positions.d.ts +2 -0
- package/dist/components/Tooltip/examples/sizes.d.ts +2 -0
- package/dist/components/Tooltip/examples/variants.d.ts +2 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/index.d.ts +24 -7
- package/dist/hooks/useRect.d.ts +7 -0
- package/dist/pages/card.page.d.ts +3 -0
- package/dist/pages/carousel.page.d.ts +3 -0
- package/dist/pages/chart.page.d.ts +3 -0
- package/dist/pages/chat.page.d.ts +3 -0
- package/dist/pages/command.page.d.ts +3 -0
- package/dist/pages/gradient.page.d.ts +3 -0
- package/dist/pages/menubar.page.d.ts +3 -0
- package/dist/pages/otpInput.page.d.ts +3 -0
- package/dist/pages/pagination.page.d.ts +3 -0
- package/dist/pages/radio.page.d.ts +2 -0
- package/dist/pages/resizable.page.d.ts +3 -0
- package/dist/pages/separator.page.d.ts +3 -0
- package/dist/pages/sidebar.page.d.ts +3 -0
- package/dist/pages/slider.page.d.ts +2 -2
- package/dist/pages/toast.page.d.ts +3 -0
- package/dist/pages/tooltip.page.d.ts +3 -0
- package/dist/utils/generateId.d.ts +5 -0
- package/dist/utils/id.d.ts +6 -0
- package/dist/web.cjs.development.js +12815 -5597
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +12790 -5577
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +12824 -5616
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +6 -5
- package/dist/components/Alert/examples/index.d.ts +0 -4
- package/dist/components/Layout/Center/Center.d.ts +0 -4
- package/dist/components/Layout/Center/Center.props.d.ts +0 -3
- package/dist/components/Layout/Horizontal/Horizontal.d.ts +0 -4
- package/dist/components/Layout/Horizontal/Horizontal.props.d.ts +0 -4
- package/dist/components/Layout/Horizontal/examples/Default.d.ts +0 -2
- package/dist/components/Layout/Horizontal/examples/Justify.d.ts +0 -2
- package/dist/components/Layout/Horizontal/examples/Reversed.d.ts +0 -2
- package/dist/components/Layout/Horizontal/examples/Wrap.d.ts +0 -2
- package/dist/components/Layout/Horizontal/examples/index.d.ts +0 -4
- package/dist/components/Layout/Input/FieldContainer/FieldContainer.d.ts +0 -3
- package/dist/components/Layout/Input/FieldContent/FieldContent.d.ts +0 -3
- package/dist/components/Layout/Input/FieldLabel/FieldLabel.d.ts +0 -3
- package/dist/components/Layout/Input/FieldWrapper/FieldWrapper.d.ts +0 -3
- package/dist/components/Layout/Input/HelperText/HelperText.d.ts +0 -3
- package/dist/components/Layout/Input/index.d.ts +0 -7
- package/dist/components/Layout/Vertical/Vertical.d.ts +0 -4
- package/dist/components/Layout/Vertical/Vertical.props.d.ts +0 -4
- package/dist/components/Layout/Vertical/examples/Default.d.ts +0 -2
- package/dist/components/Layout/Vertical/examples/Justify.d.ts +0 -2
- package/dist/components/Layout/Vertical/examples/Reversed.d.ts +0 -2
- package/dist/components/Layout/Vertical/examples/Wrap.d.ts +0 -2
- package/dist/components/Layout/Vertical/examples/index.d.ts +0 -5
- package/dist/components/Layout/View/View.d.ts +0 -9
- package/dist/components/Layout/configs/Input.style.d.ts +0 -17
- package/dist/components/Layout/index.d.ts +0 -4
- package/dist/pages/center.page.d.ts +0 -3
- package/dist/pages/horizontal.page.d.ts +0 -3
- package/dist/pages/vertical.page.d.ts +0 -3
- /package/dist/components/{Layout/Input → Input}/FieldIcons/FieldIcons/FieldIcons.props.d.ts +0 -0
- /package/dist/components/{Layout/Input → Input}/FieldIcons/FieldIcons.d.ts +0 -0
- /package/dist/components/{Layout/Input → Input}/FieldLayout/FieldLayout.d.ts +0 -0
- /package/dist/components/{Layout/Input → Input}/FieldWrapper/FieldWrapper.props.d.ts +0 -0
- /package/dist/components/{Layout/configs → Input}/Input.type.d.ts +0 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { CommandGroup, CommandItem, CommandSize, CommandStyles, CommandVariant } from './Command.type';
|
|
4
|
+
export interface CommandProps {
|
|
5
|
+
/**
|
|
6
|
+
* Whether the command palette is open
|
|
7
|
+
*/
|
|
8
|
+
open: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Callback when the open state changes
|
|
11
|
+
*/
|
|
12
|
+
onOpenChange: (open: boolean) => void;
|
|
13
|
+
/**
|
|
14
|
+
* Command groups to display
|
|
15
|
+
*/
|
|
16
|
+
groups?: CommandGroup[];
|
|
17
|
+
/**
|
|
18
|
+
* Flat list of commands (alternative to groups)
|
|
19
|
+
*/
|
|
20
|
+
commands?: CommandItem[];
|
|
21
|
+
/**
|
|
22
|
+
* Placeholder text for the search input
|
|
23
|
+
*/
|
|
24
|
+
placeholder?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Size of the command palette
|
|
27
|
+
*/
|
|
28
|
+
size?: CommandSize;
|
|
29
|
+
/**
|
|
30
|
+
* Visual variant of the command palette
|
|
31
|
+
*/
|
|
32
|
+
variant?: CommandVariant;
|
|
33
|
+
/**
|
|
34
|
+
* Custom filter function for searching commands
|
|
35
|
+
*/
|
|
36
|
+
filter?: (value: string, item: CommandItem) => boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Custom empty state when no commands match the search
|
|
39
|
+
*/
|
|
40
|
+
emptyState?: React.ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* Custom footer content
|
|
43
|
+
*/
|
|
44
|
+
footer?: React.ReactNode;
|
|
45
|
+
/**
|
|
46
|
+
* Custom styles for different parts of the command palette
|
|
47
|
+
*/
|
|
48
|
+
views?: CommandStyles;
|
|
49
|
+
/**
|
|
50
|
+
* Additional props to be spread to the container element
|
|
51
|
+
*/
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
}
|
|
54
|
+
export interface CommandInputProps {
|
|
55
|
+
/**
|
|
56
|
+
* Value of the search input
|
|
57
|
+
*/
|
|
58
|
+
value: string;
|
|
59
|
+
/**
|
|
60
|
+
* Callback when the value changes
|
|
61
|
+
*/
|
|
62
|
+
onValueChange: (value: string) => void;
|
|
63
|
+
/**
|
|
64
|
+
* Placeholder text for the search input
|
|
65
|
+
*/
|
|
66
|
+
placeholder?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Custom styles for the input
|
|
69
|
+
*/
|
|
70
|
+
views?: {
|
|
71
|
+
container?: ViewProps;
|
|
72
|
+
input?: ViewProps;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export interface CommandListProps {
|
|
76
|
+
/**
|
|
77
|
+
* Children to render in the list
|
|
78
|
+
*/
|
|
79
|
+
children: React.ReactNode;
|
|
80
|
+
/**
|
|
81
|
+
* Custom styles for the list
|
|
82
|
+
*/
|
|
83
|
+
views?: {
|
|
84
|
+
container?: ViewProps;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
export interface CommandGroupProps {
|
|
88
|
+
/**
|
|
89
|
+
* Heading for the group
|
|
90
|
+
*/
|
|
91
|
+
heading: string;
|
|
92
|
+
/**
|
|
93
|
+
* Children to render in the group
|
|
94
|
+
*/
|
|
95
|
+
children: React.ReactNode;
|
|
96
|
+
/**
|
|
97
|
+
* Custom styles for the group
|
|
98
|
+
*/
|
|
99
|
+
views?: {
|
|
100
|
+
container?: ViewProps;
|
|
101
|
+
heading?: ViewProps;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
export interface CommandItemProps {
|
|
105
|
+
/**
|
|
106
|
+
* Command item data
|
|
107
|
+
*/
|
|
108
|
+
item: CommandItem;
|
|
109
|
+
/**
|
|
110
|
+
* Whether the item is selected
|
|
111
|
+
*/
|
|
112
|
+
selected?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Callback when the item is selected
|
|
115
|
+
*/
|
|
116
|
+
onSelect?: () => void;
|
|
117
|
+
/**
|
|
118
|
+
* Custom styles for the item
|
|
119
|
+
*/
|
|
120
|
+
views?: {
|
|
121
|
+
container?: ViewProps;
|
|
122
|
+
icon?: ViewProps;
|
|
123
|
+
content?: ViewProps;
|
|
124
|
+
name?: ViewProps;
|
|
125
|
+
description?: ViewProps;
|
|
126
|
+
shortcut?: ViewProps;
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
export interface CommandEmptyProps {
|
|
130
|
+
/**
|
|
131
|
+
* Children to render in the empty state
|
|
132
|
+
*/
|
|
133
|
+
children?: React.ReactNode;
|
|
134
|
+
/**
|
|
135
|
+
* Custom styles for the empty state
|
|
136
|
+
*/
|
|
137
|
+
views?: {
|
|
138
|
+
container?: ViewProps;
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
export interface CommandType extends React.FC<CommandProps> {
|
|
142
|
+
/**
|
|
143
|
+
* Input component for the command palette
|
|
144
|
+
*/
|
|
145
|
+
Input: React.FC<CommandInputProps>;
|
|
146
|
+
/**
|
|
147
|
+
* List component for the command palette
|
|
148
|
+
*/
|
|
149
|
+
List: React.FC<CommandListProps>;
|
|
150
|
+
/**
|
|
151
|
+
* Group component for the command palette
|
|
152
|
+
*/
|
|
153
|
+
Group: React.FC<CommandGroupProps>;
|
|
154
|
+
/**
|
|
155
|
+
* Item component for the command palette
|
|
156
|
+
*/
|
|
157
|
+
Item: React.FC<CommandItemProps>;
|
|
158
|
+
/**
|
|
159
|
+
* Empty component for the command palette
|
|
160
|
+
*/
|
|
161
|
+
Empty: React.FC<CommandEmptyProps>;
|
|
162
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CommandGroup, CommandItem } from './Command.type';
|
|
3
|
+
export interface CommandStateProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onOpenChange: (open: boolean) => void;
|
|
6
|
+
groups?: CommandGroup[];
|
|
7
|
+
commands?: CommandItem[];
|
|
8
|
+
filter?: (value: string, item: CommandItem) => boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const useCommandState: ({ open, onOpenChange, groups, commands, filter, }: CommandStateProps) => {
|
|
11
|
+
search: string;
|
|
12
|
+
setSearch: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
13
|
+
selectedIndex: number;
|
|
14
|
+
setSelectedIndex: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
15
|
+
filteredCommands: CommandItem[];
|
|
16
|
+
filteredGroups: CommandGroup[];
|
|
17
|
+
listRef: import("react").RefObject<HTMLDivElement>;
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
|
+
import { CommandSize, CommandVariant } from './Command.type';
|
|
3
|
+
export declare const CommandSizes: Record<CommandSize, ViewProps>;
|
|
4
|
+
export declare const CommandVariants: Record<CommandVariant, ViewProps>;
|
|
5
|
+
export declare const CommandInputStyles: ViewProps;
|
|
6
|
+
export declare const CommandListStyles: ViewProps;
|
|
7
|
+
export declare const CommandGroupStyles: ViewProps;
|
|
8
|
+
export declare const CommandGroupHeadingStyles: ViewProps;
|
|
9
|
+
export declare const CommandItemStyles: ViewProps;
|
|
10
|
+
export declare const CommandItemSelectedStyles: ViewProps;
|
|
11
|
+
export declare const CommandItemDisabledStyles: ViewProps;
|
|
12
|
+
export declare const CommandItemIconStyles: ViewProps;
|
|
13
|
+
export declare const CommandItemContentStyles: ViewProps;
|
|
14
|
+
export declare const CommandItemNameStyles: ViewProps;
|
|
15
|
+
export declare const CommandItemDescriptionStyles: ViewProps;
|
|
16
|
+
export declare const CommandItemShortcutStyles: ViewProps;
|
|
17
|
+
export declare const CommandEmptyStyles: ViewProps;
|
|
18
|
+
export declare const CommandFooterStyles: ViewProps;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare type CommandSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export declare type CommandVariant = 'default' | 'filled' | 'outline';
|
|
5
|
+
export interface CommandItem {
|
|
6
|
+
/**
|
|
7
|
+
* Unique identifier for the command
|
|
8
|
+
*/
|
|
9
|
+
id: string;
|
|
10
|
+
/**
|
|
11
|
+
* Display name for the command
|
|
12
|
+
*/
|
|
13
|
+
name: string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional description for the command
|
|
16
|
+
*/
|
|
17
|
+
description?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Optional icon to display with the command
|
|
20
|
+
*/
|
|
21
|
+
icon?: React.ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Optional keyboard shortcut for the command (e.g., "⌘K", "Ctrl+P")
|
|
24
|
+
*/
|
|
25
|
+
shortcut?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Function to execute when the command is selected
|
|
28
|
+
*/
|
|
29
|
+
onSelect: () => void;
|
|
30
|
+
/**
|
|
31
|
+
* Optional keywords for improved search
|
|
32
|
+
*/
|
|
33
|
+
keywords?: string[];
|
|
34
|
+
/**
|
|
35
|
+
* Optional disabled state
|
|
36
|
+
*/
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface CommandGroup {
|
|
40
|
+
/**
|
|
41
|
+
* Unique identifier for the group
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
/**
|
|
45
|
+
* Display name for the group
|
|
46
|
+
*/
|
|
47
|
+
name: string;
|
|
48
|
+
/**
|
|
49
|
+
* Commands in this group
|
|
50
|
+
*/
|
|
51
|
+
commands: CommandItem[];
|
|
52
|
+
}
|
|
53
|
+
export interface CommandStyles {
|
|
54
|
+
/**
|
|
55
|
+
* Styles for the command dialog container
|
|
56
|
+
*/
|
|
57
|
+
container?: ViewProps;
|
|
58
|
+
/**
|
|
59
|
+
* Styles for the search input
|
|
60
|
+
*/
|
|
61
|
+
searchInput?: {
|
|
62
|
+
container?: ViewProps;
|
|
63
|
+
input?: ViewProps;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Styles for the command list container
|
|
67
|
+
*/
|
|
68
|
+
list?: ViewProps;
|
|
69
|
+
/**
|
|
70
|
+
* Styles for the command group heading
|
|
71
|
+
*/
|
|
72
|
+
groupHeading?: {
|
|
73
|
+
container?: ViewProps;
|
|
74
|
+
heading?: ViewProps;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Styles for each command item
|
|
78
|
+
*/
|
|
79
|
+
item?: ViewProps;
|
|
80
|
+
/**
|
|
81
|
+
* Styles for the selected command item
|
|
82
|
+
*/
|
|
83
|
+
selectedItem?: ViewProps;
|
|
84
|
+
/**
|
|
85
|
+
* Styles for the command item icon
|
|
86
|
+
*/
|
|
87
|
+
icon?: ViewProps;
|
|
88
|
+
/**
|
|
89
|
+
* Styles for the command item content (name and description)
|
|
90
|
+
*/
|
|
91
|
+
content?: ViewProps;
|
|
92
|
+
/**
|
|
93
|
+
* Styles for the command item name
|
|
94
|
+
*/
|
|
95
|
+
name?: ViewProps;
|
|
96
|
+
/**
|
|
97
|
+
* Styles for the command item description
|
|
98
|
+
*/
|
|
99
|
+
description?: ViewProps;
|
|
100
|
+
/**
|
|
101
|
+
* Styles for the command item shortcut
|
|
102
|
+
*/
|
|
103
|
+
shortcut?: ViewProps;
|
|
104
|
+
/**
|
|
105
|
+
* Styles for the empty state
|
|
106
|
+
*/
|
|
107
|
+
empty?: {
|
|
108
|
+
container?: ViewProps;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Styles for the footer
|
|
112
|
+
*/
|
|
113
|
+
footer?: ViewProps;
|
|
114
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CommandProps, CommandInputProps, CommandListProps, CommandGroupProps, CommandItemProps, CommandEmptyProps } from './Command.props';
|
|
3
|
+
import { CommandItem as CommandItemInterface } from './Command.type';
|
|
4
|
+
interface CommandContextType {
|
|
5
|
+
search: string;
|
|
6
|
+
setSearch: (value: string) => void;
|
|
7
|
+
selectedIndex: number;
|
|
8
|
+
setSelectedIndex: (index: number) => void;
|
|
9
|
+
filteredCommands: CommandItemInterface[];
|
|
10
|
+
onSelect: (item: CommandItemInterface) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const useCommandContext: () => CommandContextType;
|
|
13
|
+
export declare const CommandProvider: React.FC<{
|
|
14
|
+
value: CommandContextType;
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const CommandInput: React.FC<CommandInputProps>;
|
|
18
|
+
export declare const CommandList: React.FC<CommandListProps>;
|
|
19
|
+
export declare const CommandGroup: React.FC<CommandGroupProps>;
|
|
20
|
+
export declare const CommandItem: React.FC<CommandItemProps>;
|
|
21
|
+
export declare const CommandEmpty: React.FC<CommandEmptyProps>;
|
|
22
|
+
export declare const CommandView: React.FC<CommandProps & {
|
|
23
|
+
search: string;
|
|
24
|
+
setSearch: (value: string) => void;
|
|
25
|
+
selectedIndex: number;
|
|
26
|
+
setSelectedIndex: (index: number) => void;
|
|
27
|
+
filteredCommands: CommandItemInterface[];
|
|
28
|
+
filteredGroups: any[];
|
|
29
|
+
listRef: React.RefObject<HTMLDivElement>;
|
|
30
|
+
}>;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Command';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ViewProps } from 'app-studio';
|
|
3
|
+
import { ButtonProps } from '../../Button/Button/Button.props';
|
|
3
4
|
import { ContextMenuItem, ContextMenuStyles, Size, Variant, Position, Alignment } from './ContextMenu.type';
|
|
4
5
|
export interface ContextMenuProps {
|
|
5
6
|
/**
|
|
@@ -7,9 +8,9 @@ export interface ContextMenuProps {
|
|
|
7
8
|
*/
|
|
8
9
|
children: React.ReactNode;
|
|
9
10
|
/**
|
|
10
|
-
* The items to display in the context menu
|
|
11
|
+
* The items to display in the context menu (for data-driven approach)
|
|
11
12
|
*/
|
|
12
|
-
items
|
|
13
|
+
items?: ContextMenuItem[];
|
|
13
14
|
/**
|
|
14
15
|
* The size of the context menu items
|
|
15
16
|
*/
|
|
@@ -22,6 +23,10 @@ export interface ContextMenuProps {
|
|
|
22
23
|
* Whether to disable the default browser context menu
|
|
23
24
|
*/
|
|
24
25
|
disableNativeContextMenu?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Callback fired when the menu open state changes
|
|
28
|
+
*/
|
|
29
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
25
30
|
/**
|
|
26
31
|
* Custom styles for different parts of the context menu
|
|
27
32
|
*/
|
|
@@ -40,6 +45,14 @@ export interface ContextMenuTriggerProps {
|
|
|
40
45
|
* Whether to disable the default browser context menu
|
|
41
46
|
*/
|
|
42
47
|
disableNativeContextMenu?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* If true, merges props onto the immediate child
|
|
50
|
+
*/
|
|
51
|
+
asChild?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Disables the trigger
|
|
54
|
+
*/
|
|
55
|
+
isDisabled?: boolean;
|
|
43
56
|
/**
|
|
44
57
|
* Custom styles for the trigger container
|
|
45
58
|
*/
|
|
@@ -47,11 +60,15 @@ export interface ContextMenuTriggerProps {
|
|
|
47
60
|
container?: ViewProps;
|
|
48
61
|
};
|
|
49
62
|
}
|
|
50
|
-
export interface ContextMenuContentProps {
|
|
63
|
+
export interface ContextMenuContentProps extends Omit<ViewProps, 'position'> {
|
|
51
64
|
/**
|
|
52
|
-
* The items to display in the context menu
|
|
65
|
+
* The items to display in the context menu (for data-driven approach)
|
|
53
66
|
*/
|
|
54
|
-
items
|
|
67
|
+
items?: ContextMenuItem[];
|
|
68
|
+
/**
|
|
69
|
+
* The content of the menu (for compound component pattern)
|
|
70
|
+
*/
|
|
71
|
+
children?: React.ReactNode;
|
|
55
72
|
/**
|
|
56
73
|
* The position of the context menu
|
|
57
74
|
*/
|
|
@@ -72,17 +89,31 @@ export interface ContextMenuContentProps {
|
|
|
72
89
|
*/
|
|
73
90
|
views?: {
|
|
74
91
|
menu?: ViewProps;
|
|
92
|
+
content?: ViewProps;
|
|
75
93
|
item?: ViewProps;
|
|
76
94
|
divider?: ViewProps;
|
|
95
|
+
separator?: ViewProps;
|
|
77
96
|
icon?: ViewProps;
|
|
78
97
|
submenuIndicator?: ViewProps;
|
|
79
98
|
};
|
|
80
99
|
}
|
|
81
|
-
export interface ContextMenuItemProps {
|
|
100
|
+
export interface ContextMenuItemProps extends Omit<ButtonProps, 'onPress' | 'onClick'> {
|
|
82
101
|
/**
|
|
83
|
-
* The item data
|
|
102
|
+
* The item data (for data-driven approach)
|
|
84
103
|
*/
|
|
85
|
-
item
|
|
104
|
+
item?: ContextMenuItem;
|
|
105
|
+
/**
|
|
106
|
+
* The content of the menu item (for compound component pattern)
|
|
107
|
+
*/
|
|
108
|
+
children?: React.ReactNode;
|
|
109
|
+
/**
|
|
110
|
+
* Callback fired when the item is selected (clicked)
|
|
111
|
+
*/
|
|
112
|
+
onSelect?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
113
|
+
/**
|
|
114
|
+
* Disables interaction with the item
|
|
115
|
+
*/
|
|
116
|
+
isDisabled?: boolean;
|
|
86
117
|
/**
|
|
87
118
|
* Custom styles for the item
|
|
88
119
|
*/
|
|
@@ -100,6 +131,14 @@ export interface ContextMenuDividerProps {
|
|
|
100
131
|
divider?: ViewProps;
|
|
101
132
|
};
|
|
102
133
|
}
|
|
134
|
+
export interface ContextMenuSeparatorProps extends ViewProps {
|
|
135
|
+
/**
|
|
136
|
+
* Custom styling for the separator
|
|
137
|
+
*/
|
|
138
|
+
views?: {
|
|
139
|
+
separator?: ViewProps;
|
|
140
|
+
};
|
|
141
|
+
}
|
|
103
142
|
export interface ContextMenuType extends React.FC<ContextMenuProps> {
|
|
104
143
|
/**
|
|
105
144
|
* The trigger component for the context menu
|
|
@@ -117,4 +156,8 @@ export interface ContextMenuType extends React.FC<ContextMenuProps> {
|
|
|
117
156
|
* The divider component for the context menu
|
|
118
157
|
*/
|
|
119
158
|
Divider: React.FC<ContextMenuDividerProps>;
|
|
159
|
+
/**
|
|
160
|
+
* The separator component for the context menu (alias for Divider)
|
|
161
|
+
*/
|
|
162
|
+
Separator: React.FC<ContextMenuSeparatorProps>;
|
|
120
163
|
}
|
|
@@ -1,15 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const useContextMenuState: (
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const useContextMenuState: (props?: {
|
|
3
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
4
|
+
variant?: "default" | "filled" | "outline" | undefined;
|
|
5
|
+
onOpenChange?: ((isOpen: boolean) => void) | undefined;
|
|
6
|
+
} | undefined) => {
|
|
3
7
|
isOpen: boolean;
|
|
4
|
-
setIsOpen:
|
|
8
|
+
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
9
|
position: {
|
|
6
10
|
x: number;
|
|
7
11
|
y: number;
|
|
8
12
|
};
|
|
9
|
-
setPosition:
|
|
13
|
+
setPosition: React.Dispatch<React.SetStateAction<{
|
|
10
14
|
x: number;
|
|
11
15
|
y: number;
|
|
12
16
|
}>>;
|
|
13
17
|
activeSubmenuId: string | null;
|
|
14
|
-
setActiveSubmenuId:
|
|
18
|
+
setActiveSubmenuId: React.Dispatch<React.SetStateAction<string | null>>;
|
|
19
|
+
size: "sm" | "md" | "lg" | undefined;
|
|
20
|
+
variant: "default" | "filled" | "outline" | undefined;
|
|
21
|
+
triggerRef: React.RefObject<HTMLElement>;
|
|
22
|
+
contentRef: React.RefObject<HTMLDivElement>;
|
|
23
|
+
contentId: string;
|
|
24
|
+
openMenu: (event: React.MouseEvent) => void;
|
|
25
|
+
closeMenu: () => void;
|
|
15
26
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ViewProps } from 'app-studio';
|
|
2
|
+
import { ButtonProps } from '../../Button/Button/Button.props';
|
|
2
3
|
import React from 'react';
|
|
3
4
|
export declare type Size = 'sm' | 'md' | 'lg';
|
|
4
5
|
export declare type Variant = 'default' | 'filled' | 'outline';
|
|
@@ -28,13 +29,23 @@ export interface ContextMenuContextType {
|
|
|
28
29
|
setActiveSubmenuId: (id: string | null) => void;
|
|
29
30
|
size: Size;
|
|
30
31
|
variant: Variant;
|
|
32
|
+
triggerRef?: React.RefObject<HTMLElement>;
|
|
33
|
+
contentRef?: React.RefObject<HTMLDivElement>;
|
|
34
|
+
contentId?: string;
|
|
35
|
+
closeMenu?: () => void;
|
|
36
|
+
openMenu?: (event: React.MouseEvent) => void;
|
|
37
|
+
styles?: ContextMenuStyles;
|
|
31
38
|
}
|
|
32
39
|
export interface ContextMenuStyles {
|
|
33
40
|
container?: ViewProps;
|
|
34
41
|
menu?: ViewProps;
|
|
35
|
-
|
|
42
|
+
content?: ViewProps;
|
|
43
|
+
item?: ButtonProps & {
|
|
44
|
+
_disabled?: ButtonProps;
|
|
45
|
+
};
|
|
36
46
|
activeItem?: ViewProps;
|
|
37
47
|
divider?: ViewProps;
|
|
48
|
+
separator?: ViewProps;
|
|
38
49
|
icon?: ViewProps;
|
|
39
50
|
submenuIndicator?: ViewProps;
|
|
40
51
|
submenu?: ViewProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ContextMenuContextType, Size, Variant, ContextMenuItem as ContextMenuItemType } from './ContextMenu.type';
|
|
3
|
-
import { ContextMenuTriggerProps, ContextMenuContentProps, ContextMenuItemProps, ContextMenuDividerProps } from './ContextMenu.props';
|
|
3
|
+
import { ContextMenuTriggerProps, ContextMenuContentProps, ContextMenuItemProps, ContextMenuDividerProps, ContextMenuSeparatorProps } from './ContextMenu.props';
|
|
4
4
|
export declare const ContextMenuProvider: React.FC<{
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
value: ContextMenuContextType;
|
|
@@ -10,11 +10,12 @@ export declare const ContextMenuTrigger: React.FC<ContextMenuTriggerProps>;
|
|
|
10
10
|
export declare const ContextMenuContent: React.FC<ContextMenuContentProps>;
|
|
11
11
|
export declare const ContextMenuItem: React.FC<ContextMenuItemProps>;
|
|
12
12
|
export declare const ContextMenuDivider: React.FC<ContextMenuDividerProps>;
|
|
13
|
+
export declare const ContextMenuSeparator: React.FC<ContextMenuSeparatorProps>;
|
|
13
14
|
export declare const ContextMenuView: React.FC<{
|
|
14
15
|
children: React.ReactNode;
|
|
15
|
-
items
|
|
16
|
-
size
|
|
17
|
-
variant
|
|
16
|
+
items?: ContextMenuItemType[];
|
|
17
|
+
size?: Size;
|
|
18
|
+
variant?: Variant;
|
|
18
19
|
disableNativeContextMenu?: boolean;
|
|
19
20
|
views?: any;
|
|
20
21
|
}>;
|
|
@@ -1,4 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checkbox Styles
|
|
3
|
+
*
|
|
4
|
+
* Defines the styles for the Checkbox component following the design guidelines:
|
|
5
|
+
* - Typography: Inter/Geist font, specific sizes/weights
|
|
6
|
+
* - Spacing: 4px grid system
|
|
7
|
+
* - Colors: Neutral palette with semantic colors
|
|
8
|
+
* - Rounded corners: Consistent border radius
|
|
9
|
+
* - Transitions: Subtle animations
|
|
10
|
+
*/
|
|
1
11
|
import { ViewProps } from 'app-studio';
|
|
2
|
-
import { Size } from './Checkbox.type';
|
|
12
|
+
import { Size, Variant } from './Checkbox.type';
|
|
13
|
+
/**
|
|
14
|
+
* Size configurations for the Checkbox component
|
|
15
|
+
* Following the 4px grid system
|
|
16
|
+
*/
|
|
3
17
|
export declare const Sizes: Record<Size, ViewProps>;
|
|
18
|
+
/**
|
|
19
|
+
* Icon sizes for the Checkbox component
|
|
20
|
+
* Proportional to the component size
|
|
21
|
+
*/
|
|
4
22
|
export declare const IconSizes: Record<Size, number>;
|
|
23
|
+
/**
|
|
24
|
+
* Variant styles for the Checkbox component
|
|
25
|
+
*/
|
|
26
|
+
export declare const VariantStyles: Record<Variant, ViewProps>;
|
|
27
|
+
/**
|
|
28
|
+
* State styles for the Checkbox component
|
|
29
|
+
*/
|
|
30
|
+
export declare const StateStyles: {
|
|
31
|
+
hover: {
|
|
32
|
+
selected: {
|
|
33
|
+
backgroundColor: string;
|
|
34
|
+
borderColor: string;
|
|
35
|
+
};
|
|
36
|
+
unselected: {
|
|
37
|
+
borderColor: string;
|
|
38
|
+
};
|
|
39
|
+
indeterminate: {
|
|
40
|
+
backgroundColor: string;
|
|
41
|
+
borderColor: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
disabled: {
|
|
45
|
+
selected: {
|
|
46
|
+
backgroundColor: string;
|
|
47
|
+
borderColor: string;
|
|
48
|
+
opacity: number;
|
|
49
|
+
};
|
|
50
|
+
unselected: {
|
|
51
|
+
borderColor: string;
|
|
52
|
+
opacity: number;
|
|
53
|
+
};
|
|
54
|
+
indeterminate: {
|
|
55
|
+
backgroundColor: string;
|
|
56
|
+
borderColor: string;
|
|
57
|
+
opacity: number;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
error: {
|
|
61
|
+
selected: {
|
|
62
|
+
backgroundColor: string;
|
|
63
|
+
borderColor: string;
|
|
64
|
+
};
|
|
65
|
+
unselected: {
|
|
66
|
+
borderColor: string;
|
|
67
|
+
};
|
|
68
|
+
indeterminate: {
|
|
69
|
+
backgroundColor: string;
|
|
70
|
+
borderColor: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checkbox View Component
|
|
3
|
+
*
|
|
4
|
+
* Renders a checkbox with various styles and states
|
|
5
|
+
* according to the design guidelines.
|
|
6
|
+
*/
|
|
1
7
|
import React from 'react';
|
|
2
8
|
import { CheckboxViewProps } from './Checkbox.props';
|
|
3
9
|
declare const CheckboxView: React.FC<CheckboxViewProps>;
|