@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
package/README.md
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
# App Studio Web Component Library
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+

|
|
7
|
+
|
|
8
|
+
A comprehensive, accessible, and customizable React component library built with TypeScript and App Studio. This library provides a wide range of UI components designed to help you build beautiful and functional web applications quickly and efficiently.
|
|
9
|
+
|
|
10
|
+
## Features
|
|
11
|
+
|
|
12
|
+
- **40+ UI Components**: From basic elements to complex interactive components
|
|
13
|
+
- **Fully Typed**: Built with TypeScript for better developer experience
|
|
14
|
+
- **Accessible**: Follows WCAG guidelines for accessibility
|
|
15
|
+
- **Customizable**: Easily theme and style components to match your brand
|
|
16
|
+
- **Responsive**: Works across all device sizes
|
|
17
|
+
- **Form Integration**: Seamless integration with Formik for form handling
|
|
18
|
+
- **Modern Design**: Clean, consistent design following best practices
|
|
19
|
+
|
|
20
|
+
## Installation
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm install @app-studio/web
|
|
24
|
+
# or
|
|
25
|
+
yarn add @app-studio/web
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Quick Start
|
|
29
|
+
|
|
30
|
+
```jsx
|
|
31
|
+
import React from 'react';
|
|
32
|
+
import { Button, Text } from '@app-studio/web';
|
|
33
|
+
|
|
34
|
+
function App() {
|
|
35
|
+
return (
|
|
36
|
+
<div>
|
|
37
|
+
<Text>Hello, world!</Text>
|
|
38
|
+
<Button onClick={() => alert('Clicked!')}>Click me</Button>
|
|
39
|
+
</div>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Component Categories
|
|
45
|
+
|
|
46
|
+
### Layout Components
|
|
47
|
+
- View
|
|
48
|
+
- Center
|
|
49
|
+
- Horizontal
|
|
50
|
+
- Vertical
|
|
51
|
+
- AspectRatio
|
|
52
|
+
- Separator
|
|
53
|
+
- Resizable
|
|
54
|
+
|
|
55
|
+
### Form Components
|
|
56
|
+
- Checkbox
|
|
57
|
+
- Radio
|
|
58
|
+
- Select
|
|
59
|
+
- Switch
|
|
60
|
+
- TextArea
|
|
61
|
+
- TextField
|
|
62
|
+
- OTPInput
|
|
63
|
+
|
|
64
|
+
### Navigation Components
|
|
65
|
+
- Accordion
|
|
66
|
+
- Menubar
|
|
67
|
+
- NavigationMenu
|
|
68
|
+
- Pagination
|
|
69
|
+
- Sidebar
|
|
70
|
+
- Tabs
|
|
71
|
+
|
|
72
|
+
### Feedback Components
|
|
73
|
+
- Alert
|
|
74
|
+
- Modal
|
|
75
|
+
- Toast
|
|
76
|
+
- Tooltip
|
|
77
|
+
|
|
78
|
+
### Data Display Components
|
|
79
|
+
- Avatar
|
|
80
|
+
- Badge
|
|
81
|
+
- Card
|
|
82
|
+
- Table
|
|
83
|
+
- Chart
|
|
84
|
+
|
|
85
|
+
### Utility Components
|
|
86
|
+
- Button
|
|
87
|
+
- Gradient
|
|
88
|
+
- Loader
|
|
89
|
+
- Text
|
|
90
|
+
|
|
91
|
+
### Interactive Components
|
|
92
|
+
- Carousel
|
|
93
|
+
- ContextMenu
|
|
94
|
+
- DropdownMenu
|
|
95
|
+
- HoverCard
|
|
96
|
+
- Slider
|
|
97
|
+
- Toggle
|
|
98
|
+
- ToggleGroup
|
|
99
|
+
|
|
100
|
+
## Design System
|
|
101
|
+
|
|
102
|
+
All components follow a consistent design system with:
|
|
103
|
+
|
|
104
|
+
- **Typography**: Inter/Geist font, specific sizes/weights
|
|
105
|
+
- **Spacing**: 4px grid system
|
|
106
|
+
- **Colors**: Neutral palette with semantic colors
|
|
107
|
+
- **Rounded corners**: Consistent border radius
|
|
108
|
+
- **Transitions**: Subtle animations
|
|
109
|
+
|
|
110
|
+
## Development
|
|
111
|
+
|
|
112
|
+
### Prerequisites
|
|
113
|
+
|
|
114
|
+
- Node.js (>= 10.x)
|
|
115
|
+
- npm or yarn
|
|
116
|
+
|
|
117
|
+
### Setup
|
|
118
|
+
|
|
119
|
+
1. Clone the repository
|
|
120
|
+
```bash
|
|
121
|
+
git clone https://github.com/your-org/app-studio-web.git
|
|
122
|
+
cd app-studio-web
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
2. Install dependencies
|
|
126
|
+
```bash
|
|
127
|
+
npm install
|
|
128
|
+
# or
|
|
129
|
+
yarn
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
3. Start the development server
|
|
133
|
+
```bash
|
|
134
|
+
npm start
|
|
135
|
+
# or
|
|
136
|
+
yarn start
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Available Scripts
|
|
140
|
+
|
|
141
|
+
- `npm start` - Start the development server
|
|
142
|
+
- `npm run build` - Build the library for production
|
|
143
|
+
- `npm test` - Run tests
|
|
144
|
+
- `npm run storybook` - Start Storybook for component development
|
|
145
|
+
- `npm run lint` - Run ESLint
|
|
146
|
+
- `npm run lint:fix` - Fix ESLint issues
|
|
147
|
+
- `npm run prettier` - Run Prettier
|
|
148
|
+
- `npm run prettier:fix` - Fix Prettier issues
|
|
149
|
+
|
|
150
|
+
## Contributing
|
|
151
|
+
|
|
152
|
+
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for more details.
|
|
153
|
+
|
|
154
|
+
### Creating New Components
|
|
155
|
+
|
|
156
|
+
Use our component creation script to scaffold new components:
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
npm run create-structure -- --name=YourComponentName
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
## License
|
|
163
|
+
|
|
164
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
165
|
+
|
|
166
|
+
## Acknowledgements
|
|
167
|
+
|
|
168
|
+
- Built with [React](https://reactjs.org/)
|
|
169
|
+
- Styled with [App Studio](https://app-studio.dev/)
|
|
170
|
+
- Form handling with [Formik](https://formik.org/)
|
|
171
|
+
- State management with [Zustand](https://github.com/pmndrs/zustand)
|
|
@@ -1,25 +1,41 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ViewProps } from 'app-studio';
|
|
3
|
-
import { AccordionStyles, Shape, Variant } from './Accordion.type';
|
|
4
|
-
export interface AccordionProps {
|
|
3
|
+
import { AccordionStyles, Shape, Variant, AccordionType } from './Accordion.type';
|
|
4
|
+
export interface AccordionProps extends Omit<ViewProps, 'value' | 'defaultValue' | 'onChange'> {
|
|
5
5
|
/**
|
|
6
6
|
* The content of the accordion (AccordionItem components)
|
|
7
7
|
*/
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Determines whether one or multiple items can be opened at the same time
|
|
11
|
+
* @default 'single'
|
|
11
12
|
*/
|
|
12
|
-
|
|
13
|
+
type?: AccordionType;
|
|
13
14
|
/**
|
|
14
|
-
*
|
|
15
|
+
* The value of the item(s) to be opened when initially rendered (uncontrolled)
|
|
15
16
|
*/
|
|
16
|
-
|
|
17
|
+
defaultValue?: string | string[];
|
|
18
|
+
/**
|
|
19
|
+
* The controlled value of the item(s) to be opened
|
|
20
|
+
*/
|
|
21
|
+
value?: string | string[];
|
|
22
|
+
/**
|
|
23
|
+
* Event handler called when the value changes
|
|
24
|
+
*/
|
|
25
|
+
onValueChange?: (value: string | string[] | undefined) => void;
|
|
26
|
+
/**
|
|
27
|
+
* When type is 'single', allows closing the currently open item
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
collapsible?: boolean;
|
|
17
31
|
/**
|
|
18
32
|
* The shape of the accordion items
|
|
33
|
+
* @default 'rounded'
|
|
19
34
|
*/
|
|
20
35
|
shape?: Shape;
|
|
21
36
|
/**
|
|
22
37
|
* The visual style variant of the accordion
|
|
38
|
+
* @default 'default'
|
|
23
39
|
*/
|
|
24
40
|
variant?: Variant;
|
|
25
41
|
/**
|
|
@@ -27,11 +43,11 @@ export interface AccordionProps {
|
|
|
27
43
|
*/
|
|
28
44
|
views?: AccordionStyles;
|
|
29
45
|
}
|
|
30
|
-
export interface AccordionItemProps {
|
|
46
|
+
export interface AccordionItemProps extends Omit<ViewProps, 'value'> {
|
|
31
47
|
/**
|
|
32
48
|
* Unique identifier for the accordion item
|
|
33
49
|
*/
|
|
34
|
-
|
|
50
|
+
value: string;
|
|
35
51
|
/**
|
|
36
52
|
* The content of the accordion item
|
|
37
53
|
*/
|
|
@@ -45,23 +61,28 @@ export interface AccordionItemProps {
|
|
|
45
61
|
*/
|
|
46
62
|
views?: {
|
|
47
63
|
item?: ViewProps;
|
|
48
|
-
|
|
64
|
+
trigger?: ViewProps;
|
|
49
65
|
content?: ViewProps;
|
|
50
66
|
icon?: ViewProps;
|
|
51
67
|
};
|
|
52
68
|
}
|
|
53
|
-
export interface
|
|
69
|
+
export interface AccordionTriggerProps extends ViewProps {
|
|
54
70
|
/**
|
|
55
|
-
* The content of the accordion
|
|
71
|
+
* The content of the accordion trigger
|
|
56
72
|
*/
|
|
57
73
|
children: React.ReactNode;
|
|
58
74
|
/**
|
|
59
|
-
* Custom styles for the
|
|
75
|
+
* Custom styles for the trigger
|
|
60
76
|
*/
|
|
61
77
|
views?: {
|
|
62
78
|
container?: ViewProps;
|
|
63
79
|
icon?: ViewProps;
|
|
64
80
|
};
|
|
81
|
+
/**
|
|
82
|
+
* If true, merges props onto the immediate child, useful for custom trigger elements
|
|
83
|
+
* @default false
|
|
84
|
+
*/
|
|
85
|
+
asChild?: boolean;
|
|
65
86
|
}
|
|
66
87
|
export interface AccordionContentProps {
|
|
67
88
|
/**
|
|
@@ -75,15 +96,15 @@ export interface AccordionContentProps {
|
|
|
75
96
|
container?: ViewProps;
|
|
76
97
|
};
|
|
77
98
|
}
|
|
78
|
-
export interface
|
|
99
|
+
export interface AccordionComponentType extends React.FC<AccordionProps> {
|
|
79
100
|
/**
|
|
80
101
|
* Individual accordion item component
|
|
81
102
|
*/
|
|
82
103
|
Item: React.FC<AccordionItemProps>;
|
|
83
104
|
/**
|
|
84
|
-
*
|
|
105
|
+
* Trigger component for accordion items
|
|
85
106
|
*/
|
|
86
|
-
|
|
107
|
+
Trigger: React.FC<AccordionTriggerProps>;
|
|
87
108
|
/**
|
|
88
109
|
* Content component for accordion items
|
|
89
110
|
*/
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { AccordionProps } from './Accordion.props';
|
|
2
|
+
export declare const useAccordionState: ({ type, value: controlledValue, defaultValue, onValueChange, collapsible, }: Pick<AccordionProps, 'type' | 'value' | 'defaultValue' | 'onValueChange' | 'collapsible'>) => {
|
|
2
3
|
expandedItems: string[];
|
|
3
|
-
toggleItem: (
|
|
4
|
-
isItemExpanded: (
|
|
4
|
+
toggleItem: (itemValue: string) => void;
|
|
5
|
+
isItemExpanded: (itemValue: string) => boolean;
|
|
6
|
+
type: import("./Accordion.type").AccordionType;
|
|
7
|
+
collapsible: boolean;
|
|
8
|
+
baseId: string;
|
|
5
9
|
};
|
|
@@ -1,15 +1,38 @@
|
|
|
1
1
|
import { ViewProps } from 'app-studio';
|
|
2
2
|
export declare type Shape = 'sharp' | 'rounded';
|
|
3
3
|
export declare type Variant = 'default' | 'outline' | 'filled';
|
|
4
|
+
export declare type AccordionType = 'single' | 'multiple';
|
|
4
5
|
export interface AccordionContextType {
|
|
6
|
+
/**
|
|
7
|
+
* The currently expanded item IDs
|
|
8
|
+
*/
|
|
5
9
|
expandedItems: string[];
|
|
10
|
+
/**
|
|
11
|
+
* Function to toggle an item's expanded state
|
|
12
|
+
*/
|
|
6
13
|
toggleItem: (itemId: string) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Function to check if an item is expanded
|
|
16
|
+
*/
|
|
7
17
|
isItemExpanded: (itemId: string) => boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Whether the accordion allows multiple items to be expanded
|
|
20
|
+
*/
|
|
21
|
+
type: AccordionType;
|
|
22
|
+
/**
|
|
23
|
+
* Whether the accordion allows all items to be collapsed in single mode
|
|
24
|
+
*/
|
|
25
|
+
collapsible: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Base ID for generating ARIA attributes
|
|
28
|
+
*/
|
|
29
|
+
baseId: string;
|
|
8
30
|
}
|
|
9
31
|
export interface AccordionStyles {
|
|
10
32
|
container?: ViewProps;
|
|
11
33
|
item?: ViewProps;
|
|
12
34
|
header?: ViewProps;
|
|
35
|
+
trigger?: ViewProps;
|
|
13
36
|
content?: ViewProps;
|
|
14
37
|
icon?: ViewProps;
|
|
15
38
|
}
|
|
@@ -1,22 +1,31 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AccordionContextType } from './Accordion.type';
|
|
3
|
-
import {
|
|
3
|
+
import { AccordionTriggerProps, AccordionContentProps, AccordionItemProps } from './Accordion.props';
|
|
4
4
|
export declare const AccordionProvider: React.FC<{
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
value: AccordionContextType;
|
|
7
7
|
}>;
|
|
8
8
|
export declare const useAccordionContext: () => AccordionContextType;
|
|
9
9
|
export declare const AccordionItem: React.FC<AccordionItemProps>;
|
|
10
|
-
export declare const
|
|
11
|
-
|
|
10
|
+
export declare const AccordionTrigger: React.FC<AccordionTriggerProps & {
|
|
11
|
+
value?: string;
|
|
12
12
|
isExpanded?: boolean;
|
|
13
|
+
isDisabled?: boolean;
|
|
14
|
+
triggerId?: string;
|
|
15
|
+
contentId?: string;
|
|
13
16
|
}>;
|
|
14
17
|
export declare const AccordionContent: React.FC<AccordionContentProps & {
|
|
15
18
|
isExpanded?: boolean;
|
|
19
|
+
isDisabled?: boolean;
|
|
20
|
+
triggerId?: string;
|
|
21
|
+
contentId?: string;
|
|
16
22
|
}>;
|
|
17
23
|
export declare const AccordionView: React.FC<{
|
|
18
24
|
children: React.ReactNode;
|
|
19
25
|
shape?: 'sharp' | 'rounded';
|
|
20
26
|
variant?: 'default' | 'outline' | 'filled';
|
|
21
27
|
views?: any;
|
|
28
|
+
baseId: string;
|
|
29
|
+
type: 'single' | 'multiple';
|
|
30
|
+
collapsible: boolean;
|
|
22
31
|
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const Accordion:
|
|
1
|
+
import { AccordionComponentType } from './Accordion/Accordion.props';
|
|
2
|
+
export declare const Accordion: AccordionComponentType;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { AlertStyles, Variant } from './Alert.type';
|
|
3
3
|
export interface AlertProps {
|
|
4
4
|
icon?: React.ReactNode;
|
|
5
5
|
title: string;
|
|
6
|
-
description: string;
|
|
6
|
+
description: string | React.ReactNode;
|
|
7
7
|
variant?: Variant;
|
|
8
8
|
views?: AlertStyles;
|
|
9
9
|
}
|
|
@@ -1,47 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
container: {
|
|
22
|
-
backgroundColor: string;
|
|
23
|
-
border: string;
|
|
24
|
-
};
|
|
25
|
-
content: {
|
|
26
|
-
color: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
error: {
|
|
30
|
-
container: {
|
|
31
|
-
backgroundColor: string;
|
|
32
|
-
border: string;
|
|
33
|
-
};
|
|
34
|
-
content: {
|
|
35
|
-
color: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
warning: {
|
|
39
|
-
container: {
|
|
40
|
-
backgroundColor: string;
|
|
41
|
-
border: string;
|
|
42
|
-
};
|
|
43
|
-
content: {
|
|
44
|
-
color: string;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* Alert Styles
|
|
3
|
+
*
|
|
4
|
+
* Defines the styles for the Alert 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
|
+
*/
|
|
11
|
+
import { ViewProps } from 'app-studio';
|
|
12
|
+
import { Variant } from './Alert.type';
|
|
13
|
+
/**
|
|
14
|
+
* Theme styles for different alert variants
|
|
15
|
+
*/
|
|
16
|
+
export declare const Themes: Record<Variant, {
|
|
17
|
+
container: ViewProps;
|
|
18
|
+
content: ViewProps;
|
|
19
|
+
icon: ViewProps;
|
|
20
|
+
}>;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alert View Component
|
|
3
|
+
*
|
|
4
|
+
* Renders an alert with various styles and states according to the design guidelines.
|
|
5
|
+
*/
|
|
1
6
|
import React from 'react';
|
|
2
7
|
import { AlertProps } from './Alert.props';
|
|
8
|
+
/**
|
|
9
|
+
* Alert component that displays important messages to users
|
|
10
|
+
*/
|
|
3
11
|
export declare const AlertView: ({ icon, title, views, description, variant, }: AlertProps) => React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alert Examples - Design System
|
|
3
|
+
*
|
|
4
|
+
* Showcases the Alert 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
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
export declare const DesignSystemAlerts: () => React.JSX.Element;
|
|
@@ -1,2 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Avatar Styles
|
|
3
|
+
*
|
|
4
|
+
* Defines the styles for the Avatar 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
|
+
*/
|
|
11
|
+
import { ViewProps } from 'app-studio';
|
|
1
12
|
import { Size } from './Avatar.type';
|
|
13
|
+
/**
|
|
14
|
+
* Avatar sizes following the 4px grid system
|
|
15
|
+
*/
|
|
2
16
|
export declare const AvatarSizeMap: Record<Size, number>;
|
|
17
|
+
/**
|
|
18
|
+
* Default styles for the Avatar component
|
|
19
|
+
*/
|
|
20
|
+
export declare const DefaultAvatarStyles: {
|
|
21
|
+
container: ViewProps;
|
|
22
|
+
fallback: ViewProps;
|
|
23
|
+
image: ViewProps;
|
|
24
|
+
};
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Avatar View Component
|
|
3
|
+
*
|
|
4
|
+
* Renders an avatar with various styles and states
|
|
5
|
+
* according to the design guidelines.
|
|
6
|
+
*/
|
|
1
7
|
import React from 'react';
|
|
2
8
|
import { AvatarViewProps } from './Avatar.props';
|
|
3
9
|
export declare const AvatarView: ({ src, size, fallback, views, imageError, setImageError, onClick, }: AvatarViewProps) => React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Avatar Examples - Design System
|
|
3
|
+
*
|
|
4
|
+
* Showcases the Avatar 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
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
export declare const DesignSystemAvatars: () => React.JSX.Element;
|
|
@@ -1,9 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Badge Styles
|
|
3
|
+
*
|
|
4
|
+
* Defines the styles for the Badge 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
|
/// <reference types="react" />
|
|
2
12
|
import { ViewProps } from 'app-studio';
|
|
3
|
-
import { Shape, Size } from './Badge.type';
|
|
4
|
-
|
|
13
|
+
import { Shape, Size, Variant } from './Badge.type';
|
|
14
|
+
/**
|
|
15
|
+
* Badge sizes following the 4px grid system
|
|
16
|
+
*/
|
|
5
17
|
export declare const BadgeSizes: Record<Size, ViewProps>;
|
|
18
|
+
/**
|
|
19
|
+
* Badge shapes with consistent border radius
|
|
20
|
+
*/
|
|
6
21
|
export declare const BadgeShapes: Record<Shape, number | string>;
|
|
22
|
+
/**
|
|
23
|
+
* Badge positions for absolute positioning
|
|
24
|
+
*/
|
|
7
25
|
export declare const PositionStyles: {
|
|
8
26
|
[key: string]: React.CSSProperties;
|
|
9
27
|
};
|
|
28
|
+
/**
|
|
29
|
+
* Badge variants with consistent styling
|
|
30
|
+
*/
|
|
31
|
+
export declare const BadgeVariants: Record<Variant, ViewProps>;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Badge View Component
|
|
3
|
+
*
|
|
4
|
+
* Renders a badge with various styles and states according to the design guidelines.
|
|
5
|
+
*/
|
|
1
6
|
import React from 'react';
|
|
2
7
|
import { BadgeProps } from './Badge.props';
|
|
8
|
+
/**
|
|
9
|
+
* Badge View Component
|
|
10
|
+
*/
|
|
3
11
|
declare const BadgeView: React.FC<BadgeProps>;
|
|
4
12
|
export default BadgeView;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Badge Examples - Design System
|
|
3
|
+
*
|
|
4
|
+
* Showcases the Badge 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
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
export declare const DesignSystemBadges: () => React.JSX.Element;
|
|
@@ -1,5 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Button Styles
|
|
3
|
+
*
|
|
4
|
+
* Defines the styles for the Button 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 { Shape, Size } from './Button.type';
|
|
12
|
+
import { Shape, Size, Variant } from './Button.type';
|
|
13
|
+
/**
|
|
14
|
+
* Button sizes following the 4px grid system
|
|
15
|
+
*/
|
|
3
16
|
export declare const ButtonSizes: Record<Size, ViewProps>;
|
|
17
|
+
/**
|
|
18
|
+
* Button shapes with consistent border radius
|
|
19
|
+
*/
|
|
4
20
|
export declare const ButtonShapes: Record<Shape, number | string>;
|
|
21
|
+
/**
|
|
22
|
+
* Icon sizes for different button sizes
|
|
23
|
+
*/
|
|
5
24
|
export declare const IconSizes: Record<Size, ViewProps>;
|
|
25
|
+
/**
|
|
26
|
+
* Button variants with consistent styling
|
|
27
|
+
*/
|
|
28
|
+
export declare const getButtonVariants: (color: string, isLight: boolean) => Record<Variant, ViewProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Button Examples - Design System
|
|
3
|
+
*
|
|
4
|
+
* Showcases the Button 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
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
export declare const DesignSystemButtons: () => React.JSX.Element;
|