@app-studio/web 0.8.73 → 0.8.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion/Accordion.props.d.ts +112 -0
- package/dist/components/Accordion/Accordion/Accordion.state.d.ts +9 -0
- package/dist/components/Accordion/Accordion/Accordion.style.d.ts +4 -0
- package/dist/components/Accordion/Accordion/Accordion.type.d.ts +38 -0
- package/dist/components/Accordion/Accordion/Accordion.view.d.ts +31 -0
- package/dist/components/Accordion/Accordion.d.ts +2 -0
- package/dist/components/Accordion/examples/collapsible.d.ts +2 -0
- package/dist/components/Accordion/examples/default.d.ts +2 -0
- package/dist/components/Accordion/examples/disabled.d.ts +2 -0
- package/dist/components/Accordion/examples/index.d.ts +5 -0
- package/dist/components/Accordion/examples/multiple.d.ts +2 -0
- package/dist/components/Accordion/examples/variants.d.ts +2 -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/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 +163 -0
- package/dist/components/ContextMenu/ContextMenu/ContextMenu.state.d.ts +26 -0
- package/dist/components/ContextMenu/ContextMenu/ContextMenu.style.d.ts +20 -0
- package/dist/components/ContextMenu/ContextMenu/ContextMenu.type.d.ts +52 -0
- package/dist/components/ContextMenu/ContextMenu/ContextMenu.view.d.ts +21 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts +2 -0
- package/dist/components/ContextMenu/examples/compound.d.ts +2 -0
- package/dist/components/ContextMenu/examples/custom.d.ts +2 -0
- package/dist/components/ContextMenu/examples/default.d.ts +2 -0
- package/dist/components/ContextMenu/examples/index.d.ts +5 -0
- package/dist/components/ContextMenu/examples/sizes.d.ts +2 -0
- package/dist/components/ContextMenu/examples/variants.d.ts +2 -0
- package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.props.d.ts +117 -0
- package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.state.d.ts +7 -0
- package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.style.d.ts +17 -0
- package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.type.d.ts +34 -0
- package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.view.d.ts +19 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +2 -0
- package/dist/components/DropdownMenu/examples/custom.d.ts +2 -0
- package/dist/components/DropdownMenu/examples/default.d.ts +2 -0
- package/dist/components/DropdownMenu/examples/index.d.ts +5 -0
- package/dist/components/DropdownMenu/examples/positions.d.ts +2 -0
- package/dist/components/DropdownMenu/examples/sizes.d.ts +2 -0
- package/dist/components/DropdownMenu/examples/variants.d.ts +2 -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/Formik.Slider.d.ts +7 -0
- package/dist/components/Formik/examples/FormikOTPInput.d.ts +5 -0
- package/dist/components/Formik/examples/FormikSlider.d.ts +2 -0
- package/dist/components/Formik/examples/index.d.ts +2 -0
- package/dist/components/Formik/index.d.ts +2 -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 +5 -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 +164 -0
- package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.state.d.ts +8 -0
- package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.style.d.ts +59 -0
- package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.type.d.ts +34 -0
- package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.view.d.ts +25 -0
- package/dist/components/NavigationMenu/NavigationMenu.d.ts +2 -0
- package/dist/components/NavigationMenu/examples/compound.d.ts +2 -0
- package/dist/components/NavigationMenu/examples/default.d.ts +2 -0
- package/dist/components/NavigationMenu/examples/designSystem.d.ts +12 -0
- package/dist/components/NavigationMenu/examples/horizontal.d.ts +2 -0
- package/dist/components/NavigationMenu/examples/index.d.ts +6 -0
- package/dist/components/NavigationMenu/examples/sizes.d.ts +2 -0
- package/dist/components/NavigationMenu/examples/variants.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 +3 -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 +32 -7
- package/dist/hooks/useRect.d.ts +7 -0
- package/dist/pages/accordion.page.d.ts +3 -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/components.page.d.ts +5 -0
- package/dist/pages/contextMenu.page.d.ts +3 -0
- package/dist/pages/dropdownMenu.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/navigationMenu.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 +13438 -4789
- 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 +13396 -4759
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +13294 -4656
- 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/components/Slider/SliderDemo.d.ts +0 -3
- 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/utils/componentsPageImports.d.ts +0 -6
- /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,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input Styles
|
|
3
|
+
*
|
|
4
|
+
* Defines the styles for input components 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 { Shape, Size, Variant } from './Input.type';
|
|
13
|
+
/**
|
|
14
|
+
* Shape styles for input components with consistent border radius
|
|
15
|
+
*/
|
|
16
|
+
export declare const Shapes: Record<Shape, ViewProps>;
|
|
17
|
+
/**
|
|
18
|
+
* Label sizes following the 4px grid system
|
|
19
|
+
*/
|
|
20
|
+
export declare const LabelSizes: Record<Size, string>;
|
|
21
|
+
/**
|
|
22
|
+
* Input variants with consistent styling
|
|
23
|
+
*/
|
|
24
|
+
export declare const InputVariants: Record<Variant, ViewProps>;
|
|
25
|
+
/**
|
|
26
|
+
* Padding for input with label following the 4px grid system
|
|
27
|
+
*/
|
|
28
|
+
export declare const PadddingWithLabel: {
|
|
29
|
+
paddingTop: string;
|
|
30
|
+
paddingBottom: string;
|
|
31
|
+
paddingLeft: string;
|
|
32
|
+
paddingRight: string;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Padding for input without label following the 4px grid system
|
|
36
|
+
*/
|
|
37
|
+
export declare const PaddingWithoutLabel: {
|
|
38
|
+
paddingTop: string;
|
|
39
|
+
paddingBottom: string;
|
|
40
|
+
paddingLeft: string;
|
|
41
|
+
paddingRight: string;
|
|
42
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './FieldContainer/FieldContainer';
|
|
2
|
+
export * from './FieldContent/FieldContent';
|
|
3
|
+
export * from './FieldIcons/FieldIcons';
|
|
4
|
+
export * from './FieldLabel/FieldLabel';
|
|
5
|
+
export * from './FieldLayout/FieldLayout';
|
|
6
|
+
export * from './FieldWrapper/FieldWrapper';
|
|
7
|
+
export * from './HelperText/HelperText';
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ViewProps } from 'app-studio';
|
|
3
|
+
import { MenubarItem, MenubarStyles, Orientation, Size, Variant } from './Menubar.type';
|
|
4
|
+
export interface MenubarProps {
|
|
5
|
+
/**
|
|
6
|
+
* The items to display in the menubar
|
|
7
|
+
*/
|
|
8
|
+
items: MenubarItem[];
|
|
9
|
+
/**
|
|
10
|
+
* The orientation of the menubar
|
|
11
|
+
*/
|
|
12
|
+
orientation?: Orientation;
|
|
13
|
+
/**
|
|
14
|
+
* The size of the menubar items
|
|
15
|
+
*/
|
|
16
|
+
size?: Size;
|
|
17
|
+
/**
|
|
18
|
+
* The visual style variant of the menubar
|
|
19
|
+
*/
|
|
20
|
+
variant?: Variant;
|
|
21
|
+
/**
|
|
22
|
+
* The ID of the initially active menu
|
|
23
|
+
*/
|
|
24
|
+
defaultActiveMenuId?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* The ID of the initially open menu
|
|
27
|
+
*/
|
|
28
|
+
defaultOpenMenuId?: string | null;
|
|
29
|
+
/**
|
|
30
|
+
* Custom styles for different parts of the menubar
|
|
31
|
+
*/
|
|
32
|
+
views?: MenubarStyles;
|
|
33
|
+
/**
|
|
34
|
+
* Additional props to be spread to the container element
|
|
35
|
+
*/
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}
|
|
38
|
+
export interface MenubarRootProps {
|
|
39
|
+
/**
|
|
40
|
+
* The content of the menubar
|
|
41
|
+
*/
|
|
42
|
+
children: React.ReactNode;
|
|
43
|
+
/**
|
|
44
|
+
* The orientation of the menubar
|
|
45
|
+
*/
|
|
46
|
+
orientation?: Orientation;
|
|
47
|
+
/**
|
|
48
|
+
* The size of the menubar items
|
|
49
|
+
*/
|
|
50
|
+
size?: Size;
|
|
51
|
+
/**
|
|
52
|
+
* The visual style variant of the menubar
|
|
53
|
+
*/
|
|
54
|
+
variant?: Variant;
|
|
55
|
+
/**
|
|
56
|
+
* Custom styles for the menubar container
|
|
57
|
+
*/
|
|
58
|
+
views?: {
|
|
59
|
+
container?: ViewProps;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Additional props to be spread to the container element
|
|
63
|
+
*/
|
|
64
|
+
[key: string]: any;
|
|
65
|
+
}
|
|
66
|
+
export interface MenubarMenuProps {
|
|
67
|
+
/**
|
|
68
|
+
* The content of the menubar menu
|
|
69
|
+
*/
|
|
70
|
+
children: React.ReactNode;
|
|
71
|
+
/**
|
|
72
|
+
* The ID of the menu
|
|
73
|
+
*/
|
|
74
|
+
id: string;
|
|
75
|
+
/**
|
|
76
|
+
* Whether the menu is disabled
|
|
77
|
+
*/
|
|
78
|
+
disabled?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Custom styles for the menu
|
|
81
|
+
*/
|
|
82
|
+
views?: {
|
|
83
|
+
menu?: ViewProps;
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
export interface MenubarTriggerProps {
|
|
87
|
+
/**
|
|
88
|
+
* The content of the menubar trigger
|
|
89
|
+
*/
|
|
90
|
+
children: React.ReactNode;
|
|
91
|
+
/**
|
|
92
|
+
* The ID of the menu this trigger belongs to
|
|
93
|
+
*/
|
|
94
|
+
menuId: string;
|
|
95
|
+
/**
|
|
96
|
+
* Whether the trigger is disabled
|
|
97
|
+
*/
|
|
98
|
+
disabled?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Custom styles for the trigger
|
|
101
|
+
*/
|
|
102
|
+
views?: {
|
|
103
|
+
trigger?: ViewProps;
|
|
104
|
+
icon?: ViewProps;
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
export interface MenubarContentProps {
|
|
108
|
+
/**
|
|
109
|
+
* The content of the menubar dropdown
|
|
110
|
+
*/
|
|
111
|
+
children: React.ReactNode;
|
|
112
|
+
/**
|
|
113
|
+
* The ID of the menu this content belongs to
|
|
114
|
+
*/
|
|
115
|
+
menuId: string;
|
|
116
|
+
/**
|
|
117
|
+
* Custom styles for the content
|
|
118
|
+
*/
|
|
119
|
+
views?: {
|
|
120
|
+
content?: ViewProps;
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
export interface MenubarItemProps {
|
|
124
|
+
/**
|
|
125
|
+
* The content of the menubar item
|
|
126
|
+
*/
|
|
127
|
+
children: React.ReactNode;
|
|
128
|
+
/**
|
|
129
|
+
* The ID of the item
|
|
130
|
+
*/
|
|
131
|
+
id: string;
|
|
132
|
+
/**
|
|
133
|
+
* The icon to display next to the item
|
|
134
|
+
*/
|
|
135
|
+
icon?: React.ReactNode;
|
|
136
|
+
/**
|
|
137
|
+
* Whether the item is disabled
|
|
138
|
+
*/
|
|
139
|
+
disabled?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Callback when the item is clicked
|
|
142
|
+
*/
|
|
143
|
+
onClick?: () => void;
|
|
144
|
+
/**
|
|
145
|
+
* Custom styles for the item
|
|
146
|
+
*/
|
|
147
|
+
views?: {
|
|
148
|
+
item?: ViewProps;
|
|
149
|
+
icon?: ViewProps;
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
export interface MenubarSeparatorProps {
|
|
153
|
+
/**
|
|
154
|
+
* Custom styles for the separator
|
|
155
|
+
*/
|
|
156
|
+
views?: {
|
|
157
|
+
separator?: ViewProps;
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
export interface MenubarType extends React.FC<MenubarProps> {
|
|
161
|
+
/**
|
|
162
|
+
* The root component for the menubar
|
|
163
|
+
*/
|
|
164
|
+
Root: React.FC<MenubarRootProps>;
|
|
165
|
+
/**
|
|
166
|
+
* The menu component for the menubar
|
|
167
|
+
*/
|
|
168
|
+
Menu: React.FC<MenubarMenuProps>;
|
|
169
|
+
/**
|
|
170
|
+
* The trigger component for menubar menus
|
|
171
|
+
*/
|
|
172
|
+
Trigger: React.FC<MenubarTriggerProps>;
|
|
173
|
+
/**
|
|
174
|
+
* The content component for menubar menus
|
|
175
|
+
*/
|
|
176
|
+
Content: React.FC<MenubarContentProps>;
|
|
177
|
+
/**
|
|
178
|
+
* The item component for menubar content
|
|
179
|
+
*/
|
|
180
|
+
Item: React.FC<MenubarItemProps>;
|
|
181
|
+
/**
|
|
182
|
+
* The separator component for menubar content
|
|
183
|
+
*/
|
|
184
|
+
Separator: React.FC<MenubarSeparatorProps>;
|
|
185
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const useMenubarState: (defaultActiveMenuId?: string | null, defaultOpenMenuId?: string | null) => {
|
|
3
|
+
activeMenuId: string | null;
|
|
4
|
+
setActiveMenuId: import("react").Dispatch<import("react").SetStateAction<string | null>>;
|
|
5
|
+
openMenuId: string | null;
|
|
6
|
+
setOpenMenuId: import("react").Dispatch<import("react").SetStateAction<string | null>>;
|
|
7
|
+
isMenuOpen: (menuId: string) => boolean;
|
|
8
|
+
toggleMenu: (menuId: string) => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
|
+
import { Orientation, Size, Variant } from './Menubar.type';
|
|
3
|
+
export declare const MenubarSizes: Record<Size, ViewProps>;
|
|
4
|
+
export declare const MenubarVariants: Record<Variant, ViewProps>;
|
|
5
|
+
export declare const MenubarOrientations: Record<Orientation, ViewProps>;
|
|
6
|
+
export declare const MenubarItemStates: {
|
|
7
|
+
active: {
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
fontWeight: string;
|
|
10
|
+
};
|
|
11
|
+
hover: {
|
|
12
|
+
backgroundColor: string;
|
|
13
|
+
};
|
|
14
|
+
disabled: {
|
|
15
|
+
opacity: number;
|
|
16
|
+
cursor: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare const getMenubarContentPosition: (orientation: Orientation) => ViewProps;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare type Size = 'sm' | 'md' | 'lg';
|
|
4
|
+
export declare type Variant = 'default' | 'filled' | 'outline';
|
|
5
|
+
export declare type Orientation = 'horizontal' | 'vertical';
|
|
6
|
+
export interface MenubarItem {
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
icon?: React.ReactNode;
|
|
10
|
+
items?: MenubarItem[];
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
separator?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface MenubarContextType {
|
|
16
|
+
activeMenuId: string | null;
|
|
17
|
+
setActiveMenuId: (id: string | null) => void;
|
|
18
|
+
openMenuId: string | null;
|
|
19
|
+
setOpenMenuId: (id: string | null) => void;
|
|
20
|
+
isMenuOpen: (id: string) => boolean;
|
|
21
|
+
toggleMenu: (id: string) => void;
|
|
22
|
+
orientation: Orientation;
|
|
23
|
+
size: Size;
|
|
24
|
+
variant: Variant;
|
|
25
|
+
}
|
|
26
|
+
export interface MenubarStyles {
|
|
27
|
+
container?: ViewProps;
|
|
28
|
+
menu?: ViewProps;
|
|
29
|
+
trigger?: ViewProps;
|
|
30
|
+
content?: ViewProps;
|
|
31
|
+
item?: ViewProps;
|
|
32
|
+
activeItem?: ViewProps;
|
|
33
|
+
separator?: ViewProps;
|
|
34
|
+
icon?: ViewProps;
|
|
35
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MenubarContextType, MenubarItem as MenubarItemType, Orientation, Size, Variant } from './Menubar.type';
|
|
3
|
+
import { MenubarRootProps, MenubarMenuProps, MenubarTriggerProps, MenubarContentProps, MenubarItemProps, MenubarSeparatorProps } from './Menubar.props';
|
|
4
|
+
export declare const useMenubarContext: () => MenubarContextType;
|
|
5
|
+
export declare const MenubarProvider: React.FC<{
|
|
6
|
+
value: MenubarContextType;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const MenubarRoot: React.FC<MenubarRootProps>;
|
|
10
|
+
export declare const MenubarMenu: React.FC<MenubarMenuProps>;
|
|
11
|
+
export declare const MenubarTrigger: React.FC<MenubarTriggerProps>;
|
|
12
|
+
export declare const MenubarContent: React.FC<MenubarContentProps>;
|
|
13
|
+
export declare const MenubarItem: React.FC<MenubarItemProps>;
|
|
14
|
+
export declare const MenubarSeparator: React.FC<MenubarSeparatorProps>;
|
|
15
|
+
export declare const MenubarView: React.FC<{
|
|
16
|
+
items: MenubarItemType[];
|
|
17
|
+
orientation: Orientation;
|
|
18
|
+
size: Size;
|
|
19
|
+
variant: Variant;
|
|
20
|
+
views?: any;
|
|
21
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Menubar';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modal Examples - Design System
|
|
3
|
+
*
|
|
4
|
+
* Showcases the Modal 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 DesignSystemModal: () => React.JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from '../../Modal/Examples/BlurModal';
|
|
2
2
|
export * from '../../Modal/Examples/CloseButtonModal';
|
|
3
3
|
export * from '../../Modal/Examples/DefaultModal';
|
|
4
|
+
export * from './designSystem';
|
|
4
5
|
export * from '../../Modal/Examples/FullScreenModal';
|
|
5
6
|
export * from '../../Modal/Examples/ModalPosition';
|
|
6
7
|
export * from '../../Modal/Examples/PreventCloseModal';
|
|
@@ -1,5 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modal Styles
|
|
3
|
+
*
|
|
4
|
+
* Defines the styles for the Modal component following the design guidelines:
|
|
5
|
+
* - Typography: Inter/Geist font, specific sizes/weights
|
|
6
|
+
* - Spacing: 4px grid system
|
|
7
|
+
* - Colors: Neutral palette with semantic colors
|
|
8
|
+
* - Rounded corners: Consistent border radius
|
|
9
|
+
* - Transitions: Subtle animations
|
|
10
|
+
*/
|
|
1
11
|
import { ViewProps } from 'app-studio';
|
|
2
12
|
import { Shape, Size } from './Modal.type';
|
|
13
|
+
/**
|
|
14
|
+
* Container shape configurations for the Modal component
|
|
15
|
+
* Following the 4px grid system
|
|
16
|
+
*/
|
|
3
17
|
export declare const ContainerShapes: Record<Shape, ViewProps>;
|
|
18
|
+
/**
|
|
19
|
+
* Overlay alignment configurations for the Modal component
|
|
20
|
+
*/
|
|
4
21
|
export declare const OverlayAlignments: Record<string, ViewProps>;
|
|
22
|
+
/**
|
|
23
|
+
* Header icon size configurations for the Modal component
|
|
24
|
+
* Following the 4px grid system
|
|
25
|
+
*/
|
|
5
26
|
export declare const HeaderIconSizes: Record<Size, number>;
|
|
27
|
+
/**
|
|
28
|
+
* Animation configurations for the Modal component
|
|
29
|
+
*/
|
|
30
|
+
export declare const ModalAnimations: {
|
|
31
|
+
enter: {
|
|
32
|
+
opacity: number[];
|
|
33
|
+
transform: string[];
|
|
34
|
+
transition: string;
|
|
35
|
+
};
|
|
36
|
+
exit: {
|
|
37
|
+
opacity: number[];
|
|
38
|
+
transform: string[];
|
|
39
|
+
transition: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Typography configurations for the Modal component
|
|
44
|
+
*/
|
|
45
|
+
export declare const ModalTypography: {
|
|
46
|
+
title: {
|
|
47
|
+
fontSize: string;
|
|
48
|
+
fontWeight: string;
|
|
49
|
+
lineHeight: string;
|
|
50
|
+
color: string;
|
|
51
|
+
};
|
|
52
|
+
body: {
|
|
53
|
+
fontSize: string;
|
|
54
|
+
fontWeight: string;
|
|
55
|
+
lineHeight: string;
|
|
56
|
+
color: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modal View Component
|
|
3
|
+
*
|
|
4
|
+
* Renders a modal dialog with various styles and states
|
|
5
|
+
* according to the design guidelines.
|
|
6
|
+
*/
|
|
1
7
|
import React from 'react';
|
|
2
8
|
import { ViewProps } from 'app-studio';
|
|
3
9
|
import { BodyProps, ContainerProps, FooterProps, HeaderProps } from '../Modal/Modal.props';
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ViewProps } from 'app-studio';
|
|
3
|
+
import { LinkProps } from '../../Link/Link/Link.props';
|
|
4
|
+
import { NavigationItem, NavigationMenuStyles, Orientation, Size, Variant } from './NavigationMenu.type';
|
|
5
|
+
export interface NavigationMenuProps {
|
|
6
|
+
/**
|
|
7
|
+
* The items to display in the navigation menu (for data-driven approach)
|
|
8
|
+
*/
|
|
9
|
+
items?: NavigationItem[];
|
|
10
|
+
/**
|
|
11
|
+
* The content of the navigation menu (for compound component pattern)
|
|
12
|
+
*/
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* The orientation of the navigation menu
|
|
16
|
+
*/
|
|
17
|
+
orientation?: Orientation;
|
|
18
|
+
/**
|
|
19
|
+
* The size of the navigation menu items
|
|
20
|
+
*/
|
|
21
|
+
size?: Size;
|
|
22
|
+
/**
|
|
23
|
+
* The visual style variant of the navigation menu
|
|
24
|
+
*/
|
|
25
|
+
variant?: Variant;
|
|
26
|
+
/**
|
|
27
|
+
* The ID of the initially active item
|
|
28
|
+
*/
|
|
29
|
+
defaultActiveItemId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The IDs of the initially expanded items (for items with sub-items)
|
|
32
|
+
*/
|
|
33
|
+
defaultExpandedItemIds?: string[];
|
|
34
|
+
/**
|
|
35
|
+
* Callback when an item is activated
|
|
36
|
+
*/
|
|
37
|
+
onItemActivate?: (itemId: string) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Custom styles for different parts of the navigation menu
|
|
40
|
+
*/
|
|
41
|
+
views?: NavigationMenuStyles;
|
|
42
|
+
/**
|
|
43
|
+
* Additional props to be spread to the container element
|
|
44
|
+
*/
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
}
|
|
47
|
+
export interface NavigationMenuListProps {
|
|
48
|
+
/**
|
|
49
|
+
* The content of the navigation menu list
|
|
50
|
+
*/
|
|
51
|
+
children: React.ReactNode;
|
|
52
|
+
/**
|
|
53
|
+
* Custom styles for the list
|
|
54
|
+
*/
|
|
55
|
+
views?: {
|
|
56
|
+
container?: ViewProps;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export interface NavigationMenuItemProps {
|
|
60
|
+
/**
|
|
61
|
+
* The navigation item data
|
|
62
|
+
*/
|
|
63
|
+
item?: NavigationItem;
|
|
64
|
+
/**
|
|
65
|
+
* The unique value for the item (used for compound component pattern)
|
|
66
|
+
*/
|
|
67
|
+
value?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Whether the item is disabled
|
|
70
|
+
*/
|
|
71
|
+
isDisabled?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* The content of the item (used for compound component pattern)
|
|
74
|
+
*/
|
|
75
|
+
children?: React.ReactNode;
|
|
76
|
+
/**
|
|
77
|
+
* Custom styles for the item
|
|
78
|
+
*/
|
|
79
|
+
views?: {
|
|
80
|
+
item?: ViewProps;
|
|
81
|
+
trigger?: ViewProps;
|
|
82
|
+
content?: ViewProps;
|
|
83
|
+
icon?: ViewProps;
|
|
84
|
+
indicator?: ViewProps;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
export interface NavigationMenuTriggerProps {
|
|
88
|
+
/**
|
|
89
|
+
* The content of the navigation menu trigger
|
|
90
|
+
*/
|
|
91
|
+
children: React.ReactNode | React.ReactElement;
|
|
92
|
+
/**
|
|
93
|
+
* The ID of the item this trigger belongs to
|
|
94
|
+
*/
|
|
95
|
+
itemId: string;
|
|
96
|
+
/**
|
|
97
|
+
* Whether the item is disabled
|
|
98
|
+
*/
|
|
99
|
+
disabled?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Custom styles for the trigger
|
|
102
|
+
*/
|
|
103
|
+
views?: {
|
|
104
|
+
container?: ViewProps;
|
|
105
|
+
icon?: ViewProps;
|
|
106
|
+
trigger?: ViewProps;
|
|
107
|
+
indicator?: ViewProps;
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
export interface NavigationMenuContentProps {
|
|
111
|
+
/**
|
|
112
|
+
* The content to be displayed
|
|
113
|
+
*/
|
|
114
|
+
children: React.ReactNode;
|
|
115
|
+
/**
|
|
116
|
+
* The ID of the item this content belongs to
|
|
117
|
+
*/
|
|
118
|
+
itemId: string;
|
|
119
|
+
/**
|
|
120
|
+
* Custom styles for the content
|
|
121
|
+
*/
|
|
122
|
+
views?: {
|
|
123
|
+
container?: ViewProps;
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
export interface NavigationMenuLinkProps extends Omit<LinkProps, 'to'> {
|
|
127
|
+
/**
|
|
128
|
+
* The URL the link points to
|
|
129
|
+
*/
|
|
130
|
+
href?: string;
|
|
131
|
+
/**
|
|
132
|
+
* The content of the link
|
|
133
|
+
*/
|
|
134
|
+
children: React.ReactNode;
|
|
135
|
+
/**
|
|
136
|
+
* Custom styles for the link
|
|
137
|
+
*/
|
|
138
|
+
views?: {
|
|
139
|
+
container?: ViewProps;
|
|
140
|
+
icon?: ViewProps;
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
export interface NavigationMenuType extends React.FC<NavigationMenuProps> {
|
|
144
|
+
/**
|
|
145
|
+
* The list component for the navigation menu
|
|
146
|
+
*/
|
|
147
|
+
List: React.FC<NavigationMenuListProps>;
|
|
148
|
+
/**
|
|
149
|
+
* The item component for the navigation menu
|
|
150
|
+
*/
|
|
151
|
+
Item: React.FC<NavigationMenuItemProps>;
|
|
152
|
+
/**
|
|
153
|
+
* The trigger component for navigation menu items with sub-items
|
|
154
|
+
*/
|
|
155
|
+
Trigger: React.FC<NavigationMenuTriggerProps>;
|
|
156
|
+
/**
|
|
157
|
+
* The content component for navigation menu items with sub-items
|
|
158
|
+
*/
|
|
159
|
+
Content: React.FC<NavigationMenuContentProps>;
|
|
160
|
+
/**
|
|
161
|
+
* The link component for navigation menu items
|
|
162
|
+
*/
|
|
163
|
+
Link: React.FC<NavigationMenuLinkProps>;
|
|
164
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const useNavigationMenuState: (defaultActiveItemId?: string | null, defaultExpandedItemIds?: string[]) => {
|
|
3
|
+
activeItemId: string | null;
|
|
4
|
+
setActiveItemId: import("react").Dispatch<import("react").SetStateAction<string | null>>;
|
|
5
|
+
expandedItemIds: string[];
|
|
6
|
+
toggleExpandedItem: (itemId: string) => void;
|
|
7
|
+
isItemExpanded: (itemId: string) => boolean;
|
|
8
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NavigationMenu Styles
|
|
3
|
+
*
|
|
4
|
+
* Defines the styles for the NavigationMenu 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 { Orientation, Size, Variant } from './NavigationMenu.type';
|
|
13
|
+
/**
|
|
14
|
+
* Size configurations for the NavigationMenu component
|
|
15
|
+
* Following the 4px grid system
|
|
16
|
+
*/
|
|
17
|
+
export declare const NavigationMenuSizes: Record<Size, ViewProps>;
|
|
18
|
+
/**
|
|
19
|
+
* Variant styles for the NavigationMenu component
|
|
20
|
+
*/
|
|
21
|
+
export declare const NavigationMenuVariants: Record<Variant, ViewProps>;
|
|
22
|
+
/**
|
|
23
|
+
* Orientation styles for the NavigationMenu component
|
|
24
|
+
*/
|
|
25
|
+
export declare const NavigationMenuOrientations: Record<Orientation, ViewProps>;
|
|
26
|
+
/**
|
|
27
|
+
* State styles for the NavigationMenu items
|
|
28
|
+
*/
|
|
29
|
+
export declare const NavigationMenuItemStates: {
|
|
30
|
+
active: {
|
|
31
|
+
backgroundColor: string;
|
|
32
|
+
color: string;
|
|
33
|
+
fontWeight: string;
|
|
34
|
+
borderLeftWidth: number;
|
|
35
|
+
borderLeftStyle: "solid";
|
|
36
|
+
borderLeftColor: string;
|
|
37
|
+
};
|
|
38
|
+
hover: {
|
|
39
|
+
backgroundColor: string;
|
|
40
|
+
transition: string;
|
|
41
|
+
};
|
|
42
|
+
disabled: {
|
|
43
|
+
opacity: number;
|
|
44
|
+
cursor: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Icon styles for the NavigationMenu component
|
|
49
|
+
*/
|
|
50
|
+
export declare const NavigationMenuIconStyles: {
|
|
51
|
+
default: {
|
|
52
|
+
color: string;
|
|
53
|
+
transition: string;
|
|
54
|
+
};
|
|
55
|
+
active: {
|
|
56
|
+
color: string;
|
|
57
|
+
transition: string;
|
|
58
|
+
};
|
|
59
|
+
};
|