@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,9 @@
|
|
|
1
|
+
export * from './default';
|
|
2
|
+
export * from './vertical';
|
|
3
|
+
export * from './nested';
|
|
4
|
+
export * from './variants';
|
|
5
|
+
export * from './sizes';
|
|
6
|
+
export * from './codeEditor';
|
|
7
|
+
export * from './controlled';
|
|
8
|
+
export * from './collapsible';
|
|
9
|
+
export * from './test';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Resizable';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ViewProps } from 'app-studio';
|
|
3
|
+
import { Orientation, Variant, Thickness, SeparatorStyles } from './Separator.type';
|
|
4
|
+
export interface SeparatorProps extends ViewProps {
|
|
5
|
+
/**
|
|
6
|
+
* The orientation of the separator
|
|
7
|
+
*/
|
|
8
|
+
orientation?: Orientation;
|
|
9
|
+
/**
|
|
10
|
+
* The visual style variant of the separator
|
|
11
|
+
*/
|
|
12
|
+
variant?: Variant;
|
|
13
|
+
/**
|
|
14
|
+
* The thickness of the separator
|
|
15
|
+
*/
|
|
16
|
+
thickness?: Thickness;
|
|
17
|
+
/**
|
|
18
|
+
* The color of the separator
|
|
19
|
+
*/
|
|
20
|
+
color?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The spacing around the separator
|
|
23
|
+
*/
|
|
24
|
+
spacing?: number | string;
|
|
25
|
+
/**
|
|
26
|
+
* Optional label to display in the middle of the separator
|
|
27
|
+
*/
|
|
28
|
+
label?: React.ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the separator has decorative purpose only
|
|
31
|
+
* If true, the separator will be hidden from screen readers
|
|
32
|
+
*/
|
|
33
|
+
decorative?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Custom styles for different parts of the separator
|
|
36
|
+
*/
|
|
37
|
+
views?: SeparatorStyles;
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Separator Styles
|
|
3
|
+
*
|
|
4
|
+
* Defines the styles for the Separator 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
|
+
* - Transitions: Subtle animations
|
|
9
|
+
*/
|
|
10
|
+
import { ViewProps } from 'app-studio';
|
|
11
|
+
import { Orientation, Variant, Thickness } from './Separator.type';
|
|
12
|
+
/**
|
|
13
|
+
* Orientation configurations for the Separator component
|
|
14
|
+
*/
|
|
15
|
+
export declare const SeparatorOrientations: Record<Orientation, ViewProps>;
|
|
16
|
+
/**
|
|
17
|
+
* Variant configurations for the Separator component
|
|
18
|
+
*/
|
|
19
|
+
export declare const SeparatorVariants: Record<Variant, string>;
|
|
20
|
+
/**
|
|
21
|
+
* Thickness configurations for the Separator component
|
|
22
|
+
* Following the 4px grid system
|
|
23
|
+
*/
|
|
24
|
+
export declare const SeparatorThicknesses: Record<Thickness, string>;
|
|
25
|
+
/**
|
|
26
|
+
* Default styles for the Separator component
|
|
27
|
+
*/
|
|
28
|
+
export declare const DefaultSeparatorStyles: {
|
|
29
|
+
container: {
|
|
30
|
+
transition: string;
|
|
31
|
+
};
|
|
32
|
+
label: {
|
|
33
|
+
fontSize: string;
|
|
34
|
+
color: string;
|
|
35
|
+
paddingHorizontal: string;
|
|
36
|
+
transition: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
|
+
export declare type Orientation = 'horizontal' | 'vertical';
|
|
3
|
+
export declare type Variant = 'solid' | 'dashed' | 'dotted';
|
|
4
|
+
export declare type Thickness = 'thin' | 'medium' | 'thick';
|
|
5
|
+
export interface SeparatorStyles {
|
|
6
|
+
container?: ViewProps;
|
|
7
|
+
label?: ViewProps;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Separator View Component
|
|
3
|
+
*
|
|
4
|
+
* Renders a separator with various styles and states
|
|
5
|
+
* according to the design guidelines.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { SeparatorProps } from './Separator.props';
|
|
9
|
+
export declare const SeparatorView: React.FC<SeparatorProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Separator Examples - Design System
|
|
3
|
+
*
|
|
4
|
+
* Showcases the Separator 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 DesignSystemSeparator: () => React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './default';
|
|
2
|
+
export * from './designSystem';
|
|
3
|
+
export * from './variants';
|
|
4
|
+
export * from './thicknesses';
|
|
5
|
+
export * from './orientations';
|
|
6
|
+
export * from './colors';
|
|
7
|
+
export * from './withLabel';
|
|
8
|
+
export * from './inCard';
|
|
9
|
+
export * from './customized';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Separator';
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Position, Size, Variant, BreakpointBehavior, SidebarStyles, Elevation, TransitionPreset, SidebarContextType } from './Sidebar.type';
|
|
4
|
+
export interface SidebarProps {
|
|
5
|
+
/**
|
|
6
|
+
* The content of the sidebar
|
|
7
|
+
*/
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* The position of the sidebar
|
|
11
|
+
*/
|
|
12
|
+
position?: Position;
|
|
13
|
+
/**
|
|
14
|
+
* The size of the sidebar
|
|
15
|
+
*/
|
|
16
|
+
size?: Size;
|
|
17
|
+
/**
|
|
18
|
+
* The visual style variant of the sidebar
|
|
19
|
+
*/
|
|
20
|
+
variant?: Variant;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the sidebar is initially expanded
|
|
23
|
+
*/
|
|
24
|
+
defaultExpanded?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Whether the sidebar is expanded (controlled)
|
|
27
|
+
*/
|
|
28
|
+
expanded?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Callback when the expanded state changes
|
|
31
|
+
*/
|
|
32
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Whether the sidebar is fixed (always visible) or floating
|
|
35
|
+
*/
|
|
36
|
+
fixed?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Whether to show a backdrop when the sidebar is expanded in mobile view
|
|
39
|
+
*/
|
|
40
|
+
hasBackdrop?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Whether to show a toggle button
|
|
43
|
+
*/
|
|
44
|
+
showToggleButton?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* The width of the sidebar when expanded
|
|
47
|
+
*/
|
|
48
|
+
expandedWidth?: string | number;
|
|
49
|
+
/**
|
|
50
|
+
* The width of the sidebar when collapsed
|
|
51
|
+
*/
|
|
52
|
+
collapsedWidth?: string | number;
|
|
53
|
+
/**
|
|
54
|
+
* The breakpoint at which the sidebar changes behavior
|
|
55
|
+
*/
|
|
56
|
+
breakpoint?: number;
|
|
57
|
+
/**
|
|
58
|
+
* The behavior of the sidebar at the breakpoint
|
|
59
|
+
*/
|
|
60
|
+
breakpointBehavior?: BreakpointBehavior;
|
|
61
|
+
/**
|
|
62
|
+
* The elevation level of the sidebar (shadow depth)
|
|
63
|
+
*/
|
|
64
|
+
elevation?: Elevation;
|
|
65
|
+
/**
|
|
66
|
+
* The transition preset for the sidebar animations
|
|
67
|
+
*/
|
|
68
|
+
transitionPreset?: TransitionPreset;
|
|
69
|
+
/**
|
|
70
|
+
* ARIA label for the sidebar for accessibility
|
|
71
|
+
*/
|
|
72
|
+
ariaLabel?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Custom styles for different parts of the sidebar
|
|
75
|
+
*/
|
|
76
|
+
views?: SidebarStyles;
|
|
77
|
+
/**
|
|
78
|
+
* Additional props to be spread to the container element
|
|
79
|
+
*/
|
|
80
|
+
[key: string]: any;
|
|
81
|
+
}
|
|
82
|
+
export interface SidebarHeaderProps {
|
|
83
|
+
/**
|
|
84
|
+
* The content of the sidebar header
|
|
85
|
+
*/
|
|
86
|
+
children: React.ReactNode;
|
|
87
|
+
/**
|
|
88
|
+
* Whether to show the toggle button in the header
|
|
89
|
+
*/
|
|
90
|
+
showToggleButton?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Custom styles for the header
|
|
93
|
+
*/
|
|
94
|
+
views?: {
|
|
95
|
+
header?: ViewProps;
|
|
96
|
+
toggleButton?: ViewProps;
|
|
97
|
+
toggleButtonIcon?: ViewProps;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Additional props to be spread to the header element
|
|
101
|
+
*/
|
|
102
|
+
[key: string]: any;
|
|
103
|
+
}
|
|
104
|
+
export interface SidebarContentProps {
|
|
105
|
+
/**
|
|
106
|
+
* The content of the sidebar content area
|
|
107
|
+
*/
|
|
108
|
+
children: React.ReactNode;
|
|
109
|
+
/**
|
|
110
|
+
* Custom styles for the content area
|
|
111
|
+
*/
|
|
112
|
+
views?: {
|
|
113
|
+
content?: ViewProps;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Additional props to be spread to the content element
|
|
117
|
+
*/
|
|
118
|
+
[key: string]: any;
|
|
119
|
+
}
|
|
120
|
+
export interface SidebarFooterProps {
|
|
121
|
+
/**
|
|
122
|
+
* The content of the sidebar footer
|
|
123
|
+
*/
|
|
124
|
+
children: React.ReactNode;
|
|
125
|
+
/**
|
|
126
|
+
* Custom styles for the footer
|
|
127
|
+
*/
|
|
128
|
+
views?: {
|
|
129
|
+
footer?: ViewProps;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* Additional props to be spread to the footer element
|
|
133
|
+
*/
|
|
134
|
+
[key: string]: any;
|
|
135
|
+
}
|
|
136
|
+
export interface SidebarType extends React.FC<SidebarProps> {
|
|
137
|
+
/**
|
|
138
|
+
* The header component for the sidebar
|
|
139
|
+
*/
|
|
140
|
+
Header: React.FC<SidebarHeaderProps>;
|
|
141
|
+
/**
|
|
142
|
+
* The content component for the sidebar
|
|
143
|
+
*/
|
|
144
|
+
Content: React.FC<SidebarContentProps>;
|
|
145
|
+
/**
|
|
146
|
+
* The footer component for the sidebar
|
|
147
|
+
*/
|
|
148
|
+
Footer: React.FC<SidebarFooterProps>;
|
|
149
|
+
/**
|
|
150
|
+
* Hook to access the sidebar context
|
|
151
|
+
*/
|
|
152
|
+
useContext: () => SidebarContextType;
|
|
153
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const useSidebarState: (defaultExpanded?: boolean, expanded?: boolean | undefined, onExpandedChange?: ((expanded: boolean) => void) | undefined, breakpoint?: number | undefined) => {
|
|
2
|
+
isExpanded: boolean;
|
|
3
|
+
toggleExpanded: () => void;
|
|
4
|
+
expand: () => void;
|
|
5
|
+
collapse: () => void;
|
|
6
|
+
isMobile: boolean;
|
|
7
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sidebar Styles
|
|
3
|
+
*
|
|
4
|
+
* Defines the styles for the Sidebar 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 { Position, Size, Variant, Elevation, TransitionPreset } from './Sidebar.type';
|
|
13
|
+
/**
|
|
14
|
+
* Size configurations for the Sidebar component
|
|
15
|
+
* Following the 4px grid system
|
|
16
|
+
*/
|
|
17
|
+
export declare const SidebarSizes: Record<Size, {
|
|
18
|
+
expandedWidth: string;
|
|
19
|
+
collapsedWidth: string;
|
|
20
|
+
}>;
|
|
21
|
+
/**
|
|
22
|
+
* Variant styles for the Sidebar component
|
|
23
|
+
*/
|
|
24
|
+
export declare const SidebarVariants: Record<Variant, ViewProps>;
|
|
25
|
+
/**
|
|
26
|
+
* Position styles for the Sidebar component
|
|
27
|
+
*/
|
|
28
|
+
export declare const SidebarPositions: Record<Position, ViewProps>;
|
|
29
|
+
/**
|
|
30
|
+
* Elevation styles for the Sidebar component
|
|
31
|
+
*/
|
|
32
|
+
export declare const SidebarElevations: Record<Elevation, ViewProps>;
|
|
33
|
+
/**
|
|
34
|
+
* Transition presets for the Sidebar component
|
|
35
|
+
*/
|
|
36
|
+
export declare const SidebarTransitions: Record<TransitionPreset, string>;
|
|
37
|
+
/**
|
|
38
|
+
* Active item styles for the Sidebar navigation items
|
|
39
|
+
*/
|
|
40
|
+
export declare const SidebarItemActive: ViewProps;
|
|
41
|
+
/**
|
|
42
|
+
* Hover styles for the Sidebar navigation items
|
|
43
|
+
*/
|
|
44
|
+
export declare const SidebarItemHover: ViewProps;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
|
+
export declare type Position = 'left' | 'right';
|
|
3
|
+
export declare type Size = 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
export declare type Variant = 'default' | 'filled' | 'outline' | 'subtle' | 'elevated';
|
|
5
|
+
export declare type BreakpointBehavior = 'collapse' | 'overlay' | 'hide';
|
|
6
|
+
export declare type Elevation = 'none' | 'low' | 'medium' | 'high';
|
|
7
|
+
export declare type TransitionPreset = 'fast' | 'normal' | 'slow' | 'bounce';
|
|
8
|
+
export interface SidebarContextType {
|
|
9
|
+
isExpanded: boolean;
|
|
10
|
+
toggleExpanded: () => void;
|
|
11
|
+
expand: () => void;
|
|
12
|
+
collapse: () => void;
|
|
13
|
+
position: Position;
|
|
14
|
+
size: Size;
|
|
15
|
+
variant: Variant;
|
|
16
|
+
views?: SidebarStyles;
|
|
17
|
+
}
|
|
18
|
+
export interface SidebarStyles {
|
|
19
|
+
container?: ViewProps;
|
|
20
|
+
header?: ViewProps;
|
|
21
|
+
content?: ViewProps;
|
|
22
|
+
footer?: ViewProps;
|
|
23
|
+
backdrop?: ViewProps;
|
|
24
|
+
toggleButton?: ViewProps;
|
|
25
|
+
toggleButtonIcon?: ViewProps;
|
|
26
|
+
divider?: ViewProps;
|
|
27
|
+
navItem?: ViewProps;
|
|
28
|
+
navItemActive?: ViewProps;
|
|
29
|
+
navItemIcon?: ViewProps;
|
|
30
|
+
navItemText?: ViewProps;
|
|
31
|
+
navItemBagde?: ViewProps;
|
|
32
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SidebarProps, SidebarHeaderProps, SidebarContentProps, SidebarFooterProps } from './Sidebar.props';
|
|
3
|
+
import { SidebarContextType } from './Sidebar.type';
|
|
4
|
+
export declare const useSidebarContext: () => SidebarContextType;
|
|
5
|
+
export declare const SidebarProvider: React.FC<{
|
|
6
|
+
value: SidebarContextType;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const SidebarHeader: React.FC<SidebarHeaderProps>;
|
|
10
|
+
export declare const SidebarContent: React.FC<SidebarContentProps>;
|
|
11
|
+
export declare const SidebarFooter: React.FC<SidebarFooterProps>;
|
|
12
|
+
export declare const SidebarView: React.FC<SidebarProps>;
|
|
13
|
+
interface SideBarNavItemProps {
|
|
14
|
+
icon: React.ReactNode;
|
|
15
|
+
label: string;
|
|
16
|
+
isActive?: boolean;
|
|
17
|
+
ariaLabel?: string;
|
|
18
|
+
badge?: number;
|
|
19
|
+
}
|
|
20
|
+
export declare const SideBarNavItem: ({ icon, label, isActive, badge, views, ...props }: SideBarNavItemProps & any) => React.JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sidebar Examples - Design System
|
|
3
|
+
*
|
|
4
|
+
* Showcases the Sidebar 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 DesignSystemSidebar: () => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Sidebar';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './default';
|
|
2
|
+
export * from './sizes';
|
|
3
|
+
export * from './variants';
|
|
4
|
+
export * from './disabled';
|
|
5
|
+
export * from './custom';
|
|
6
|
+
export * from './range';
|
|
7
|
+
export * from './stepValues';
|
|
8
|
+
export * from './vertical';
|
|
9
|
+
export * from './tooltip';
|
|
10
|
+
export * from './controlled';
|
|
11
|
+
export * from './shapes';
|
|
12
|
+
export * from './tooltipIntegration';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Table Styles
|
|
3
|
+
*
|
|
4
|
+
* Defines the styles for the Table 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 { TableViewStyles } from './Table.type';
|
|
12
|
+
/**
|
|
13
|
+
* Default table styles following the design system
|
|
14
|
+
*/
|
|
15
|
+
export declare const DefaultTableStyles: TableViewStyles;
|
|
16
|
+
/**
|
|
17
|
+
* Compact table styles
|
|
18
|
+
*/
|
|
19
|
+
export declare const CompactTableStyles: TableViewStyles;
|
|
20
|
+
/**
|
|
21
|
+
* Striped table styles
|
|
22
|
+
*/
|
|
23
|
+
export declare const StripedTableStyles: TableViewStyles;
|
|
24
|
+
/**
|
|
25
|
+
* Bordered table styles
|
|
26
|
+
*/
|
|
27
|
+
export declare const BorderedTableStyles: TableViewStyles;
|
|
28
|
+
/**
|
|
29
|
+
* Dark theme table styles
|
|
30
|
+
*/
|
|
31
|
+
export declare const DarkTableStyles: TableViewStyles;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Table Examples - Design System
|
|
3
|
+
*
|
|
4
|
+
* Showcases the Table 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 DesignSystemTable: () => React.JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ViewProps } from 'app-studio';
|
|
3
|
+
import { Tab } from './Tabs.type';
|
|
4
|
+
export interface TabHeaderProps {
|
|
5
|
+
/** The tab data */
|
|
6
|
+
tab: Tab;
|
|
7
|
+
/** Whether this tab is currently active */
|
|
8
|
+
isActive: boolean;
|
|
9
|
+
/** Handler for when the tab is clicked */
|
|
10
|
+
onClick: () => void;
|
|
11
|
+
/** Position of the icon relative to the text */
|
|
12
|
+
iconPosition?: 'left' | 'right' | 'top' | 'bottom';
|
|
13
|
+
/** Custom styles for the tab header */
|
|
14
|
+
tabStyles?: ViewProps;
|
|
15
|
+
/** Custom styles for the tab text */
|
|
16
|
+
textStyles?: ViewProps;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* TabHeader component renders a single tab in the tab navigation.
|
|
20
|
+
* It's designed to be a lightweight alternative to using Button components.
|
|
21
|
+
*/
|
|
22
|
+
export declare const TabHeader: React.FC<TabHeaderProps>;
|
|
@@ -10,10 +10,12 @@ export interface TabsProps {
|
|
|
10
10
|
initialTabValue?: string | number;
|
|
11
11
|
/** Optional callback function triggered when the active tab changes. Receives the newly active tab object. */
|
|
12
12
|
onTabChange?: (activeTab: Tab) => void;
|
|
13
|
-
/** Optional styles object to customize the appearance of the tabs container, headers,
|
|
13
|
+
/** Optional styles object to customize the appearance of the tabs container, headers, text, and content area. */
|
|
14
14
|
views?: TabsStyles;
|
|
15
|
+
/** Optional position of the icon relative to the text in tab headers. */
|
|
16
|
+
iconPosition?: 'left' | 'right' | 'top' | 'bottom';
|
|
15
17
|
/**
|
|
16
|
-
* Optional custom renderer for a single tab
|
|
18
|
+
* Optional custom renderer for a single tab header.
|
|
17
19
|
* Receives the tab data, whether it's currently active, and an onClick handler to activate the tab.
|
|
18
20
|
*/
|
|
19
21
|
renderTab?: (tab: Tab, isActive: boolean, onClick: () => void) => React.ReactNode;
|