@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,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CardStyles } from './Card.type';
|
|
3
|
+
export interface CardContextValue {
|
|
4
|
+
styles?: CardStyles;
|
|
5
|
+
}
|
|
6
|
+
export declare const CardContext: import("react").Context<CardContextValue>;
|
|
7
|
+
export declare const useCardContext: () => CardContextValue;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ViewProps } from 'app-studio';
|
|
3
|
+
import { CardStyles, Shape, Size, Variant } from './Card.type';
|
|
4
|
+
export interface CardProps extends ViewProps {
|
|
5
|
+
/**
|
|
6
|
+
* The visual style variant of the card
|
|
7
|
+
*/
|
|
8
|
+
variant?: Variant;
|
|
9
|
+
/**
|
|
10
|
+
* The size of the card, affecting padding
|
|
11
|
+
*/
|
|
12
|
+
size?: Size;
|
|
13
|
+
/**
|
|
14
|
+
* The shape of the card's corners
|
|
15
|
+
*/
|
|
16
|
+
shape?: Shape;
|
|
17
|
+
/**
|
|
18
|
+
* The content to be displayed inside the card
|
|
19
|
+
*/
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Optional header content for the card
|
|
23
|
+
*/
|
|
24
|
+
header?: React.ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Optional footer content for the card
|
|
27
|
+
*/
|
|
28
|
+
footer?: React.ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the card should take up the full width of its container
|
|
31
|
+
*/
|
|
32
|
+
isFullWidth?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Custom styles for different parts of the card
|
|
35
|
+
*/
|
|
36
|
+
views?: CardStyles;
|
|
37
|
+
}
|
|
38
|
+
export interface CardHeaderProps extends ViewProps {
|
|
39
|
+
/**
|
|
40
|
+
* The content to be displayed in the card header
|
|
41
|
+
*/
|
|
42
|
+
children: React.ReactNode;
|
|
43
|
+
/**
|
|
44
|
+
* Custom styles for the header
|
|
45
|
+
*/
|
|
46
|
+
views?: ViewProps;
|
|
47
|
+
}
|
|
48
|
+
export interface CardContentProps extends ViewProps {
|
|
49
|
+
/**
|
|
50
|
+
* The content to be displayed in the card body
|
|
51
|
+
*/
|
|
52
|
+
children: React.ReactNode;
|
|
53
|
+
/**
|
|
54
|
+
* Custom styles for the content
|
|
55
|
+
*/
|
|
56
|
+
views?: ViewProps;
|
|
57
|
+
}
|
|
58
|
+
export interface CardFooterProps extends ViewProps {
|
|
59
|
+
/**
|
|
60
|
+
* The content to be displayed in the card footer
|
|
61
|
+
*/
|
|
62
|
+
children: React.ReactNode;
|
|
63
|
+
/**
|
|
64
|
+
* Custom styles for the footer
|
|
65
|
+
*/
|
|
66
|
+
views?: ViewProps;
|
|
67
|
+
}
|
|
68
|
+
export interface CardType extends React.FC<CardProps> {
|
|
69
|
+
/**
|
|
70
|
+
* Card header component
|
|
71
|
+
*/
|
|
72
|
+
Header: React.FC<CardHeaderProps>;
|
|
73
|
+
/**
|
|
74
|
+
* Card content component
|
|
75
|
+
*/
|
|
76
|
+
Content: React.FC<CardContentProps>;
|
|
77
|
+
/**
|
|
78
|
+
* Card footer component
|
|
79
|
+
*/
|
|
80
|
+
Footer: React.FC<CardFooterProps>;
|
|
81
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Card Styles
|
|
3
|
+
*
|
|
4
|
+
* Defines the styles for the Card 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 { CardStyles, Shape, Size, Variant } from './Card.type';
|
|
13
|
+
/**
|
|
14
|
+
* Card sizes following the 4px grid system
|
|
15
|
+
*/
|
|
16
|
+
export declare const CardSizes: Record<Size, ViewProps>;
|
|
17
|
+
/**
|
|
18
|
+
* Card shapes with consistent border radius
|
|
19
|
+
*/
|
|
20
|
+
export declare const CardShapes: Record<Shape, number | string>;
|
|
21
|
+
/**
|
|
22
|
+
* Card variants with consistent styling
|
|
23
|
+
*/
|
|
24
|
+
export declare const CardVariants: Record<Variant, ViewProps>;
|
|
25
|
+
/**
|
|
26
|
+
* Function to get default styles for Card components
|
|
27
|
+
* @param theme - Theme object (not used directly but kept for compatibility)
|
|
28
|
+
*/
|
|
29
|
+
export declare const getDefaultCardStyles: (_theme: any) => CardStyles;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
|
+
export declare type Variant = 'default' | 'outlined' | 'elevated';
|
|
3
|
+
export declare type Size = 'sm' | 'md' | 'lg';
|
|
4
|
+
export declare type Shape = 'sharp' | 'rounded' | 'pillShaped';
|
|
5
|
+
export interface CardStyles {
|
|
6
|
+
container?: ViewProps;
|
|
7
|
+
header?: ViewProps;
|
|
8
|
+
content?: ViewProps;
|
|
9
|
+
footer?: ViewProps;
|
|
10
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CardProps, CardHeaderProps, CardContentProps, CardFooterProps } from './Card.props';
|
|
3
|
+
export declare const CardHeader: React.FC<CardHeaderProps>;
|
|
4
|
+
export declare const CardContent: React.FC<CardContentProps>;
|
|
5
|
+
export declare const CardFooter: React.FC<CardFooterProps>;
|
|
6
|
+
export declare const CardView: React.FC<CardProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Card Examples - Design System
|
|
3
|
+
*
|
|
4
|
+
* Showcases the Card 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 DesignSystemCards: () => React.JSX.Element;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ViewProps } from 'app-studio';
|
|
3
|
+
import { ButtonProps } from '../../Button/Button/Button.props';
|
|
4
|
+
import { CarouselStyles, IndicatorPosition, IndicatorVariant, NavigationPosition, SlideDirection } from './Carousel.type';
|
|
5
|
+
export interface CarouselProps extends Omit<ViewProps, 'position'> {
|
|
6
|
+
/**
|
|
7
|
+
* The slides to be displayed in the carousel
|
|
8
|
+
*/
|
|
9
|
+
children: React.ReactNode[];
|
|
10
|
+
/**
|
|
11
|
+
* The index of the initially active slide
|
|
12
|
+
*/
|
|
13
|
+
defaultActiveIndex?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Controlled active index
|
|
16
|
+
*/
|
|
17
|
+
activeIndex?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Callback when the active slide changes
|
|
20
|
+
*/
|
|
21
|
+
onChange?: (index: number) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Whether to show navigation buttons
|
|
24
|
+
*/
|
|
25
|
+
showNavigation?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Position of the navigation buttons
|
|
28
|
+
*/
|
|
29
|
+
navigationPosition?: NavigationPosition;
|
|
30
|
+
/**
|
|
31
|
+
* Custom previous button element
|
|
32
|
+
*/
|
|
33
|
+
prevButton?: React.ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* Custom next button element
|
|
36
|
+
*/
|
|
37
|
+
nextButton?: React.ReactNode;
|
|
38
|
+
/**
|
|
39
|
+
* Whether to show slide indicators
|
|
40
|
+
*/
|
|
41
|
+
showIndicators?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Position of the indicators
|
|
44
|
+
*/
|
|
45
|
+
indicatorPosition?: IndicatorPosition;
|
|
46
|
+
/**
|
|
47
|
+
* Visual style of the indicators
|
|
48
|
+
*/
|
|
49
|
+
indicatorVariant?: IndicatorVariant;
|
|
50
|
+
/**
|
|
51
|
+
* Whether to enable auto-play
|
|
52
|
+
*/
|
|
53
|
+
autoPlay?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Interval for auto-play in milliseconds
|
|
56
|
+
*/
|
|
57
|
+
autoPlayInterval?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Whether to pause auto-play on hover
|
|
60
|
+
*/
|
|
61
|
+
pauseOnHover?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Whether to loop the carousel
|
|
64
|
+
*/
|
|
65
|
+
infinite?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Direction of slide movement
|
|
68
|
+
*/
|
|
69
|
+
direction?: SlideDirection;
|
|
70
|
+
/**
|
|
71
|
+
* Duration of the slide transition in milliseconds
|
|
72
|
+
*/
|
|
73
|
+
transitionDuration?: number;
|
|
74
|
+
/**
|
|
75
|
+
* Array of specific slide indices to use as steps
|
|
76
|
+
* When provided, the carousel will only navigate to these indices
|
|
77
|
+
*/
|
|
78
|
+
stepIndices?: number[];
|
|
79
|
+
/**
|
|
80
|
+
* Custom styles for different parts of the carousel
|
|
81
|
+
*/
|
|
82
|
+
views?: CarouselStyles;
|
|
83
|
+
}
|
|
84
|
+
export interface CarouselSlideProps extends ViewProps {
|
|
85
|
+
/**
|
|
86
|
+
* The content of the slide
|
|
87
|
+
*/
|
|
88
|
+
children: React.ReactNode;
|
|
89
|
+
/**
|
|
90
|
+
* Whether the slide is currently active
|
|
91
|
+
*/
|
|
92
|
+
isActive?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Index of the slide
|
|
95
|
+
*/
|
|
96
|
+
index?: number;
|
|
97
|
+
/**
|
|
98
|
+
* Custom styles for the slide
|
|
99
|
+
*/
|
|
100
|
+
views?: ViewProps;
|
|
101
|
+
}
|
|
102
|
+
export interface CarouselContentProps extends ViewProps {
|
|
103
|
+
/**
|
|
104
|
+
* The slides, expected to be CarouselItem components
|
|
105
|
+
*/
|
|
106
|
+
children: React.ReactNode;
|
|
107
|
+
/**
|
|
108
|
+
* Custom styling for the content wrapper
|
|
109
|
+
*/
|
|
110
|
+
views?: Pick<CarouselStyles, 'content' | 'innerContainer'>;
|
|
111
|
+
}
|
|
112
|
+
export interface CarouselItemProps extends ViewProps {
|
|
113
|
+
/**
|
|
114
|
+
* The content of the slide
|
|
115
|
+
*/
|
|
116
|
+
children: React.ReactNode;
|
|
117
|
+
/**
|
|
118
|
+
* Custom styling for the item
|
|
119
|
+
*/
|
|
120
|
+
views?: Pick<CarouselStyles, 'item'>;
|
|
121
|
+
}
|
|
122
|
+
export interface CarouselPreviousProps extends Omit<ButtonProps, 'views'> {
|
|
123
|
+
/**
|
|
124
|
+
* Custom styling for the button
|
|
125
|
+
*/
|
|
126
|
+
views?: Pick<CarouselStyles, 'prevButton'>;
|
|
127
|
+
}
|
|
128
|
+
export interface CarouselNextProps extends Omit<ButtonProps, 'views'> {
|
|
129
|
+
/**
|
|
130
|
+
* Custom styling for the button
|
|
131
|
+
*/
|
|
132
|
+
views?: Pick<CarouselStyles, 'nextButton'>;
|
|
133
|
+
}
|
|
134
|
+
export interface CarouselType extends React.FC<CarouselProps> {
|
|
135
|
+
/**
|
|
136
|
+
* Individual slide component (legacy)
|
|
137
|
+
*/
|
|
138
|
+
Slide: React.FC<CarouselSlideProps>;
|
|
139
|
+
/**
|
|
140
|
+
* Container for carousel items (compound pattern)
|
|
141
|
+
*/
|
|
142
|
+
Content: React.FC<CarouselContentProps>;
|
|
143
|
+
/**
|
|
144
|
+
* Individual carousel item (compound pattern)
|
|
145
|
+
*/
|
|
146
|
+
Item: React.FC<CarouselItemProps>;
|
|
147
|
+
/**
|
|
148
|
+
* Previous navigation button (compound pattern)
|
|
149
|
+
*/
|
|
150
|
+
Previous: React.FC<CarouselPreviousProps>;
|
|
151
|
+
/**
|
|
152
|
+
* Next navigation button (compound pattern)
|
|
153
|
+
*/
|
|
154
|
+
Next: React.FC<CarouselNextProps>;
|
|
155
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface CarouselStateProps {
|
|
2
|
+
defaultActiveIndex?: number;
|
|
3
|
+
activeIndex?: number;
|
|
4
|
+
onChange?: (index: number) => void;
|
|
5
|
+
autoPlay?: boolean;
|
|
6
|
+
autoPlayInterval?: number;
|
|
7
|
+
pauseOnHover?: boolean;
|
|
8
|
+
infinite?: boolean;
|
|
9
|
+
totalSlides?: number;
|
|
10
|
+
stepIndices?: number[];
|
|
11
|
+
}
|
|
12
|
+
export declare const useCarouselState: ({ defaultActiveIndex, activeIndex: controlledActiveIndex, onChange, autoPlay, autoPlayInterval, pauseOnHover, infinite, totalSlides: initialTotalSlides, stepIndices, }: CarouselStateProps) => {
|
|
13
|
+
activeIndex: number;
|
|
14
|
+
totalSlides: number;
|
|
15
|
+
goToSlide: (index: number) => void;
|
|
16
|
+
nextSlide: () => void;
|
|
17
|
+
prevSlide: () => void;
|
|
18
|
+
canGoNext: boolean;
|
|
19
|
+
canGoPrevious: boolean;
|
|
20
|
+
handleMouseEnter: () => void;
|
|
21
|
+
handleMouseLeave: () => void;
|
|
22
|
+
handleDragStart: (e: React.MouseEvent | React.TouchEvent) => void;
|
|
23
|
+
handleDragMove: (e: React.MouseEvent | React.TouchEvent) => void;
|
|
24
|
+
handleDragEnd: () => void;
|
|
25
|
+
registerSlide: () => number;
|
|
26
|
+
unregisterSlide: (id: number) => void;
|
|
27
|
+
contentId: string;
|
|
28
|
+
infinite: boolean;
|
|
29
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
|
+
import { IndicatorVariant, CarouselStyles } from './Carousel.type';
|
|
3
|
+
export declare const IndicatorStyles: Record<IndicatorVariant, ViewProps>;
|
|
4
|
+
export declare const ActiveIndicatorStyles: Record<IndicatorVariant, ViewProps>;
|
|
5
|
+
export declare const NavigationButtonStyles: ViewProps;
|
|
6
|
+
export declare const getDefaultCarouselStyles: () => CarouselStyles;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
|
+
export declare type NavigationPosition = 'inside' | 'outside';
|
|
3
|
+
export declare type IndicatorPosition = 'top' | 'bottom';
|
|
4
|
+
export declare type IndicatorVariant = 'dot' | 'line' | 'number';
|
|
5
|
+
export declare type SlideDirection = 'horizontal' | 'vertical';
|
|
6
|
+
export interface CarouselStyles {
|
|
7
|
+
container?: ViewProps;
|
|
8
|
+
slide?: ViewProps;
|
|
9
|
+
slideWrapper?: ViewProps;
|
|
10
|
+
prevButton?: ViewProps;
|
|
11
|
+
nextButton?: ViewProps;
|
|
12
|
+
indicators?: ViewProps;
|
|
13
|
+
indicator?: ViewProps;
|
|
14
|
+
activeIndicator?: ViewProps;
|
|
15
|
+
content?: ViewProps;
|
|
16
|
+
innerContainer?: ViewProps;
|
|
17
|
+
item?: ViewProps;
|
|
18
|
+
}
|
|
19
|
+
export interface CarouselContextValue {
|
|
20
|
+
currentIndex: number;
|
|
21
|
+
totalSlides: number;
|
|
22
|
+
goToSlide: (index: number) => void;
|
|
23
|
+
goToNext: () => void;
|
|
24
|
+
goToPrevious: () => void;
|
|
25
|
+
canGoNext: boolean;
|
|
26
|
+
canGoPrevious: boolean;
|
|
27
|
+
registerSlide: () => number;
|
|
28
|
+
unregisterSlide: (id: number) => void;
|
|
29
|
+
styles?: CarouselStyles;
|
|
30
|
+
contentId: string;
|
|
31
|
+
infinite: boolean;
|
|
32
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CarouselProps, CarouselSlideProps, CarouselContentProps, CarouselItemProps, CarouselPreviousProps, CarouselNextProps } from './Carousel.props';
|
|
3
|
+
export declare const CarouselSlide: React.FC<CarouselSlideProps>;
|
|
4
|
+
export declare const CarouselPreviousComponent: React.FC<CarouselPreviousProps>;
|
|
5
|
+
export declare const CarouselNextComponent: React.FC<CarouselNextProps>;
|
|
6
|
+
export declare const CarouselItemComponent: React.FC<CarouselItemProps>;
|
|
7
|
+
export declare const CarouselContentComponent: React.FC<CarouselContentProps>;
|
|
8
|
+
export declare const CarouselView: React.FC<CarouselProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ChartData } from './Chart.type';
|
|
3
|
+
interface BarChartProps {
|
|
4
|
+
data: ChartData;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
animationProgress: number;
|
|
8
|
+
showGrid?: boolean;
|
|
9
|
+
onBarClick?: (seriesName: string, index: number) => void;
|
|
10
|
+
showTooltip: (x: number, y: number, content: string) => void;
|
|
11
|
+
hideTooltip: () => void;
|
|
12
|
+
views?: any;
|
|
13
|
+
}
|
|
14
|
+
export declare const BarChart: React.FC<BarChartProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ViewProps } from 'app-studio';
|
|
3
|
+
import { ChartType, ChartData, ChartDataPoint, ChartStyles } from './Chart.type';
|
|
4
|
+
export interface ChartProps extends Omit<ViewProps, 'animationDuration'> {
|
|
5
|
+
/**
|
|
6
|
+
* The type of chart to render
|
|
7
|
+
*/
|
|
8
|
+
type: ChartType;
|
|
9
|
+
/**
|
|
10
|
+
* Data for the chart (for multi-series charts like bar, line, area)
|
|
11
|
+
*/
|
|
12
|
+
data?: ChartData;
|
|
13
|
+
/**
|
|
14
|
+
* Data points for single series charts (like pie, donut)
|
|
15
|
+
*/
|
|
16
|
+
dataPoints?: ChartDataPoint[];
|
|
17
|
+
/**
|
|
18
|
+
* The title of the chart
|
|
19
|
+
*/
|
|
20
|
+
title?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Whether to show the legend
|
|
23
|
+
*/
|
|
24
|
+
showLegend?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Position of the legend
|
|
27
|
+
*/
|
|
28
|
+
legendPosition?: 'top' | 'right' | 'bottom' | 'left';
|
|
29
|
+
/**
|
|
30
|
+
* Whether to show grid lines
|
|
31
|
+
*/
|
|
32
|
+
showGrid?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Whether to show tooltips on hover
|
|
35
|
+
*/
|
|
36
|
+
showTooltips?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the chart is animated
|
|
39
|
+
*/
|
|
40
|
+
animated?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Duration of the animation in milliseconds
|
|
43
|
+
*/
|
|
44
|
+
animationDuration?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Whether the chart is responsive
|
|
47
|
+
*/
|
|
48
|
+
responsive?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* The aspect ratio of the chart (width/height)
|
|
51
|
+
*/
|
|
52
|
+
aspectRatio?: number;
|
|
53
|
+
/**
|
|
54
|
+
* The width of the chart
|
|
55
|
+
*/
|
|
56
|
+
width?: number | string;
|
|
57
|
+
/**
|
|
58
|
+
* The height of the chart
|
|
59
|
+
*/
|
|
60
|
+
height?: number | string;
|
|
61
|
+
/**
|
|
62
|
+
* Custom styles for different parts of the chart
|
|
63
|
+
*/
|
|
64
|
+
views?: ChartStyles;
|
|
65
|
+
/**
|
|
66
|
+
* Callback when a data point is clicked
|
|
67
|
+
*/
|
|
68
|
+
onDataPointClick?: (dataPoint: ChartDataPoint | null, index: number) => void;
|
|
69
|
+
/**
|
|
70
|
+
* Callback when a series is clicked
|
|
71
|
+
*/
|
|
72
|
+
onSeriesClick?: (seriesName: string, index: number) => void;
|
|
73
|
+
/**
|
|
74
|
+
* If true, displays a loading indicator overlay
|
|
75
|
+
*/
|
|
76
|
+
isLoading?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* If provided, displays an error message overlay. Takes precedence over isLoading.
|
|
79
|
+
*/
|
|
80
|
+
error?: React.ReactNode;
|
|
81
|
+
/**
|
|
82
|
+
* If true and not loading/error, displays a "no data" message. Can also be custom content.
|
|
83
|
+
*/
|
|
84
|
+
noData?: boolean | React.ReactNode;
|
|
85
|
+
/**
|
|
86
|
+
* Custom placeholder for the loading state
|
|
87
|
+
*/
|
|
88
|
+
loadingIndicator?: React.ReactNode;
|
|
89
|
+
/**
|
|
90
|
+
* Custom placeholder for the error state
|
|
91
|
+
*/
|
|
92
|
+
errorIndicator?: React.ReactNode;
|
|
93
|
+
/**
|
|
94
|
+
* Custom placeholder for the no data state
|
|
95
|
+
*/
|
|
96
|
+
noDataIndicator?: React.ReactNode;
|
|
97
|
+
/**
|
|
98
|
+
* Aria-label for the chart region. Defaults to the title if provided.
|
|
99
|
+
*/
|
|
100
|
+
'aria-label'?: string;
|
|
101
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartData, ChartDataPoint } from './Chart.type';
|
|
3
|
+
export interface ChartStateProps {
|
|
4
|
+
data?: ChartData;
|
|
5
|
+
dataPoints?: ChartDataPoint[];
|
|
6
|
+
animated?: boolean;
|
|
7
|
+
animationDuration?: number;
|
|
8
|
+
showTooltips?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const useChartState: ({ data, dataPoints, animated, animationDuration, showTooltips, }: ChartStateProps) => {
|
|
11
|
+
animationProgress: number;
|
|
12
|
+
tooltip: {
|
|
13
|
+
visible: boolean;
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
content: string;
|
|
17
|
+
};
|
|
18
|
+
containerRef: import("react").RefObject<HTMLDivElement>;
|
|
19
|
+
processedData: () => {
|
|
20
|
+
color: string;
|
|
21
|
+
label: string;
|
|
22
|
+
value: number;
|
|
23
|
+
}[] | {
|
|
24
|
+
series: {
|
|
25
|
+
color: string;
|
|
26
|
+
name: string;
|
|
27
|
+
data: number[];
|
|
28
|
+
}[];
|
|
29
|
+
labels: string[];
|
|
30
|
+
} | null;
|
|
31
|
+
showTooltip: (x: number, y: number, content: string) => void;
|
|
32
|
+
hideTooltip: () => void;
|
|
33
|
+
getChartDimensions: () => {
|
|
34
|
+
width: number;
|
|
35
|
+
height: number;
|
|
36
|
+
};
|
|
37
|
+
};
|