@masumdev/rn-ui 0.1.0 → 0.1.1
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/lib/commonjs/components/Accordion.js +239 -0
- package/lib/commonjs/components/Accordion.js.map +1 -0
- package/lib/commonjs/components/Alert.js +183 -0
- package/lib/commonjs/components/Alert.js.map +1 -0
- package/lib/commonjs/components/AlertDialog.js +223 -0
- package/lib/commonjs/components/AlertDialog.js.map +1 -0
- package/lib/commonjs/components/AspectRatio.js +44 -0
- package/lib/commonjs/components/AspectRatio.js.map +1 -0
- package/lib/commonjs/components/Attachment.js +236 -0
- package/lib/commonjs/components/Attachment.js.map +1 -0
- package/lib/commonjs/components/Avatar.js +268 -0
- package/lib/commonjs/components/Avatar.js.map +1 -0
- package/lib/commonjs/components/Badge.js +94 -0
- package/lib/commonjs/components/Badge.js.map +1 -0
- package/lib/commonjs/components/BottomSheet.js +127 -0
- package/lib/commonjs/components/BottomSheet.js.map +1 -0
- package/lib/commonjs/components/Box.js +55 -0
- package/lib/commonjs/components/Box.js.map +1 -0
- package/lib/commonjs/components/Breadcrumb.js +84 -0
- package/lib/commonjs/components/Breadcrumb.js.map +1 -0
- package/lib/commonjs/components/Bubble.js +236 -0
- package/lib/commonjs/components/Bubble.js.map +1 -0
- package/lib/commonjs/components/Button.js +117 -0
- package/lib/commonjs/components/Button.js.map +1 -0
- package/lib/commonjs/components/ButtonGroup.js +143 -0
- package/lib/commonjs/components/ButtonGroup.js.map +1 -0
- package/lib/commonjs/components/Calendar.js +495 -0
- package/lib/commonjs/components/Calendar.js.map +1 -0
- package/lib/commonjs/components/Card.js +39 -0
- package/lib/commonjs/components/Card.js.map +1 -0
- package/lib/commonjs/components/Carousel.js +345 -0
- package/lib/commonjs/components/Carousel.js.map +1 -0
- package/lib/commonjs/components/Checkbox.js +105 -0
- package/lib/commonjs/components/Checkbox.js.map +1 -0
- package/lib/commonjs/components/Collapsible.js +121 -0
- package/lib/commonjs/components/Collapsible.js.map +1 -0
- package/lib/commonjs/components/Combobox.js +374 -0
- package/lib/commonjs/components/Combobox.js.map +1 -0
- package/lib/commonjs/components/Command.js +118 -0
- package/lib/commonjs/components/Command.js.map +1 -0
- package/lib/commonjs/components/ContextMenu.js +348 -0
- package/lib/commonjs/components/ContextMenu.js.map +1 -0
- package/lib/commonjs/components/DataList.js +76 -0
- package/lib/commonjs/components/DataList.js.map +1 -0
- package/lib/commonjs/components/Divider.js +31 -0
- package/lib/commonjs/components/Divider.js.map +1 -0
- package/lib/commonjs/components/DropdownMenu.js +368 -0
- package/lib/commonjs/components/DropdownMenu.js.map +1 -0
- package/lib/commonjs/components/Empty.js +129 -0
- package/lib/commonjs/components/Empty.js.map +1 -0
- package/lib/commonjs/components/FloatingActionButton.js +184 -0
- package/lib/commonjs/components/FloatingActionButton.js.map +1 -0
- package/lib/commonjs/components/FormField.js +93 -0
- package/lib/commonjs/components/FormField.js.map +1 -0
- package/lib/commonjs/components/HoverCard.js +212 -0
- package/lib/commonjs/components/HoverCard.js.map +1 -0
- package/lib/commonjs/components/IconButton.js +98 -0
- package/lib/commonjs/components/IconButton.js.map +1 -0
- package/lib/commonjs/components/Input.js +94 -0
- package/lib/commonjs/components/Input.js.map +1 -0
- package/lib/commonjs/components/InputGroup.js +216 -0
- package/lib/commonjs/components/InputGroup.js.map +1 -0
- package/lib/commonjs/components/InputOTP.js +231 -0
- package/lib/commonjs/components/InputOTP.js.map +1 -0
- package/lib/commonjs/components/Item.js +226 -0
- package/lib/commonjs/components/Item.js.map +1 -0
- package/lib/commonjs/components/KeyboardAvoiding.js +69 -0
- package/lib/commonjs/components/KeyboardAvoiding.js.map +1 -0
- package/lib/commonjs/components/Label.js +39 -0
- package/lib/commonjs/components/Label.js.map +1 -0
- package/lib/commonjs/components/MetricCard.js +60 -0
- package/lib/commonjs/components/MetricCard.js.map +1 -0
- package/lib/commonjs/components/Pagination.js +60 -0
- package/lib/commonjs/components/Pagination.js.map +1 -0
- package/lib/commonjs/components/Popover.js +96 -0
- package/lib/commonjs/components/Popover.js.map +1 -0
- package/lib/commonjs/components/Progress.js +64 -0
- package/lib/commonjs/components/Progress.js.map +1 -0
- package/lib/commonjs/components/RadioGroup.js +127 -0
- package/lib/commonjs/components/RadioGroup.js.map +1 -0
- package/lib/commonjs/components/Select.js +147 -0
- package/lib/commonjs/components/Select.js.map +1 -0
- package/lib/commonjs/components/Sheet.js +89 -0
- package/lib/commonjs/components/Sheet.js.map +1 -0
- package/lib/commonjs/components/Skeleton.js +52 -0
- package/lib/commonjs/components/Skeleton.js.map +1 -0
- package/lib/commonjs/components/Slider.js +209 -0
- package/lib/commonjs/components/Slider.js.map +1 -0
- package/lib/commonjs/components/Stepper.js +95 -0
- package/lib/commonjs/components/Stepper.js.map +1 -0
- package/lib/commonjs/components/Switch.js +153 -0
- package/lib/commonjs/components/Switch.js.map +1 -0
- package/lib/commonjs/components/Table.js +102 -0
- package/lib/commonjs/components/Table.js.map +1 -0
- package/lib/commonjs/components/Tabs.js +133 -0
- package/lib/commonjs/components/Tabs.js.map +1 -0
- package/lib/commonjs/components/Text.js +33 -0
- package/lib/commonjs/components/Text.js.map +1 -0
- package/lib/commonjs/components/Textarea.js +30 -0
- package/lib/commonjs/components/Textarea.js.map +1 -0
- package/lib/commonjs/components/Timeline.js +97 -0
- package/lib/commonjs/components/Timeline.js.map +1 -0
- package/lib/commonjs/components/Toast.js +374 -0
- package/lib/commonjs/components/Toast.js.map +1 -0
- package/lib/commonjs/components/index.js +1048 -0
- package/lib/commonjs/components/index.js.map +1 -0
- package/lib/commonjs/components/types.js +14 -0
- package/lib/commonjs/components/types.js.map +1 -0
- package/lib/commonjs/index.js +39 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/theme/ThemeProvider.js +101 -0
- package/lib/commonjs/theme/ThemeProvider.js.map +1 -0
- package/lib/commonjs/theme/createTheme.js +62 -0
- package/lib/commonjs/theme/createTheme.js.map +1 -0
- package/lib/commonjs/theme/index.js +83 -0
- package/lib/commonjs/theme/index.js.map +1 -0
- package/lib/commonjs/theme/tokens.js +356 -0
- package/lib/commonjs/theme/tokens.js.map +1 -0
- package/lib/commonjs/theme/types.js +6 -0
- package/lib/commonjs/theme/types.js.map +1 -0
- package/lib/commonjs/theme/useTheme.js +16 -0
- package/lib/commonjs/theme/useTheme.js.map +1 -0
- package/lib/commonjs/theme/useThemeStyles.js +16 -0
- package/lib/commonjs/theme/useThemeStyles.js.map +1 -0
- package/lib/commonjs/utils/color.js +22 -0
- package/lib/commonjs/utils/color.js.map +1 -0
- package/lib/commonjs/utils/index.js +13 -0
- package/lib/commonjs/utils/index.js.map +1 -0
- package/lib/module/components/Accordion.js +234 -0
- package/lib/module/components/Accordion.js.map +1 -0
- package/lib/module/components/Alert.js +177 -0
- package/lib/module/components/Alert.js.map +1 -0
- package/lib/module/components/AlertDialog.js +218 -0
- package/lib/module/components/AlertDialog.js.map +1 -0
- package/lib/module/components/AspectRatio.js +39 -0
- package/lib/module/components/AspectRatio.js.map +1 -0
- package/lib/module/components/Attachment.js +231 -0
- package/lib/module/components/Attachment.js.map +1 -0
- package/lib/module/components/Avatar.js +258 -0
- package/lib/module/components/Avatar.js.map +1 -0
- package/lib/module/components/Badge.js +89 -0
- package/lib/module/components/Badge.js.map +1 -0
- package/lib/module/components/BottomSheet.js +68 -0
- package/lib/module/components/BottomSheet.js.map +1 -0
- package/lib/module/components/Box.js +50 -0
- package/lib/module/components/Box.js.map +1 -0
- package/lib/module/components/Breadcrumb.js +75 -0
- package/lib/module/components/Breadcrumb.js.map +1 -0
- package/lib/module/components/Bubble.js +228 -0
- package/lib/module/components/Bubble.js.map +1 -0
- package/lib/module/components/Button.js +112 -0
- package/lib/module/components/Button.js.map +1 -0
- package/lib/module/components/ButtonGroup.js +136 -0
- package/lib/module/components/ButtonGroup.js.map +1 -0
- package/lib/module/components/Calendar.js +489 -0
- package/lib/module/components/Calendar.js.map +1 -0
- package/lib/module/components/Card.js +34 -0
- package/lib/module/components/Card.js.map +1 -0
- package/lib/module/components/Carousel.js +334 -0
- package/lib/module/components/Carousel.js.map +1 -0
- package/lib/module/components/Checkbox.js +99 -0
- package/lib/module/components/Checkbox.js.map +1 -0
- package/lib/module/components/Collapsible.js +112 -0
- package/lib/module/components/Collapsible.js.map +1 -0
- package/lib/module/components/Combobox.js +362 -0
- package/lib/module/components/Combobox.js.map +1 -0
- package/lib/module/components/Command.js +113 -0
- package/lib/module/components/Command.js.map +1 -0
- package/lib/module/components/ContextMenu.js +334 -0
- package/lib/module/components/ContextMenu.js.map +1 -0
- package/lib/module/components/DataList.js +68 -0
- package/lib/module/components/DataList.js.map +1 -0
- package/lib/module/components/Divider.js +26 -0
- package/lib/module/components/Divider.js.map +1 -0
- package/lib/module/components/DropdownMenu.js +354 -0
- package/lib/module/components/DropdownMenu.js.map +1 -0
- package/lib/module/components/Empty.js +119 -0
- package/lib/module/components/Empty.js.map +1 -0
- package/lib/module/components/FloatingActionButton.js +178 -0
- package/lib/module/components/FloatingActionButton.js.map +1 -0
- package/lib/module/components/FormField.js +83 -0
- package/lib/module/components/FormField.js.map +1 -0
- package/lib/module/components/HoverCard.js +203 -0
- package/lib/module/components/HoverCard.js.map +1 -0
- package/lib/module/components/IconButton.js +93 -0
- package/lib/module/components/IconButton.js.map +1 -0
- package/lib/module/components/Input.js +89 -0
- package/lib/module/components/Input.js.map +1 -0
- package/lib/module/components/InputGroup.js +206 -0
- package/lib/module/components/InputGroup.js.map +1 -0
- package/lib/module/components/InputOTP.js +221 -0
- package/lib/module/components/InputOTP.js.map +1 -0
- package/lib/module/components/Item.js +212 -0
- package/lib/module/components/Item.js.map +1 -0
- package/lib/module/components/KeyboardAvoiding.js +64 -0
- package/lib/module/components/KeyboardAvoiding.js.map +1 -0
- package/lib/module/components/Label.js +34 -0
- package/lib/module/components/Label.js.map +1 -0
- package/lib/module/components/MetricCard.js +55 -0
- package/lib/module/components/MetricCard.js.map +1 -0
- package/lib/module/components/Pagination.js +55 -0
- package/lib/module/components/Pagination.js.map +1 -0
- package/lib/module/components/Popover.js +89 -0
- package/lib/module/components/Popover.js.map +1 -0
- package/lib/module/components/Progress.js +58 -0
- package/lib/module/components/Progress.js.map +1 -0
- package/lib/module/components/RadioGroup.js +121 -0
- package/lib/module/components/RadioGroup.js.map +1 -0
- package/lib/module/components/Select.js +142 -0
- package/lib/module/components/Select.js.map +1 -0
- package/lib/module/components/Sheet.js +75 -0
- package/lib/module/components/Sheet.js.map +1 -0
- package/lib/module/components/Skeleton.js +46 -0
- package/lib/module/components/Skeleton.js.map +1 -0
- package/lib/module/components/Slider.js +203 -0
- package/lib/module/components/Slider.js.map +1 -0
- package/lib/module/components/Stepper.js +90 -0
- package/lib/module/components/Stepper.js.map +1 -0
- package/lib/module/components/Switch.js +147 -0
- package/lib/module/components/Switch.js.map +1 -0
- package/lib/module/components/Table.js +94 -0
- package/lib/module/components/Table.js.map +1 -0
- package/lib/module/components/Tabs.js +125 -0
- package/lib/module/components/Tabs.js.map +1 -0
- package/lib/module/components/Text.js +28 -0
- package/lib/module/components/Text.js.map +1 -0
- package/lib/module/components/Textarea.js +25 -0
- package/lib/module/components/Textarea.js.map +1 -0
- package/lib/module/components/Timeline.js +89 -0
- package/lib/module/components/Timeline.js.map +1 -0
- package/lib/module/components/Toast.js +359 -0
- package/lib/module/components/Toast.js.map +1 -0
- package/lib/module/components/index.js +55 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/components/types.js +10 -0
- package/lib/module/components/types.js.map +1 -0
- package/lib/module/index.js +6 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/theme/ThemeProvider.js +95 -0
- package/lib/module/theme/ThemeProvider.js.map +1 -0
- package/lib/module/theme/createTheme.js +57 -0
- package/lib/module/theme/createTheme.js.map +1 -0
- package/lib/module/theme/index.js +8 -0
- package/lib/module/theme/index.js.map +1 -0
- package/lib/module/theme/tokens.js +352 -0
- package/lib/module/theme/tokens.js.map +1 -0
- package/lib/module/theme/types.js +4 -0
- package/lib/module/theme/types.js.map +1 -0
- package/lib/module/theme/useTheme.js +12 -0
- package/lib/module/theme/useTheme.js.map +1 -0
- package/lib/module/theme/useThemeStyles.js +12 -0
- package/lib/module/theme/useThemeStyles.js.map +1 -0
- package/lib/module/utils/color.js +18 -0
- package/lib/module/utils/color.js.map +1 -0
- package/lib/module/utils/index.js +4 -0
- package/lib/module/utils/index.js.map +1 -0
- package/lib/typescript/commonjs/components/Accordion.d.ts +53 -0
- package/lib/typescript/commonjs/components/Accordion.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Alert.d.ts +29 -0
- package/lib/typescript/commonjs/components/Alert.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/AlertDialog.d.ts +32 -0
- package/lib/typescript/commonjs/components/AlertDialog.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/AspectRatio.d.ts +20 -0
- package/lib/typescript/commonjs/components/AspectRatio.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Attachment.d.ts +66 -0
- package/lib/typescript/commonjs/components/Attachment.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Avatar.d.ts +37 -0
- package/lib/typescript/commonjs/components/Avatar.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Badge.d.ts +16 -0
- package/lib/typescript/commonjs/components/Badge.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/BottomSheet.d.ts +17 -0
- package/lib/typescript/commonjs/components/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Box.d.ts +23 -0
- package/lib/typescript/commonjs/components/Box.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Breadcrumb.d.ts +23 -0
- package/lib/typescript/commonjs/components/Breadcrumb.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Bubble.d.ts +31 -0
- package/lib/typescript/commonjs/components/Bubble.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Button.d.ts +22 -0
- package/lib/typescript/commonjs/components/Button.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/ButtonGroup.d.ts +21 -0
- package/lib/typescript/commonjs/components/ButtonGroup.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Calendar.d.ts +26 -0
- package/lib/typescript/commonjs/components/Calendar.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Card.d.ts +9 -0
- package/lib/typescript/commonjs/components/Card.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Carousel.d.ts +44 -0
- package/lib/typescript/commonjs/components/Carousel.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Checkbox.d.ts +13 -0
- package/lib/typescript/commonjs/components/Checkbox.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Collapsible.d.ts +26 -0
- package/lib/typescript/commonjs/components/Collapsible.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Combobox.d.ts +64 -0
- package/lib/typescript/commonjs/components/Combobox.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Command.d.ts +22 -0
- package/lib/typescript/commonjs/components/Command.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/ContextMenu.d.ts +67 -0
- package/lib/typescript/commonjs/components/ContextMenu.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/DataList.d.ts +19 -0
- package/lib/typescript/commonjs/components/DataList.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Divider.d.ts +9 -0
- package/lib/typescript/commonjs/components/Divider.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/DropdownMenu.d.ts +77 -0
- package/lib/typescript/commonjs/components/DropdownMenu.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Empty.d.ts +32 -0
- package/lib/typescript/commonjs/components/Empty.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/FloatingActionButton.d.ts +24 -0
- package/lib/typescript/commonjs/components/FloatingActionButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/FormField.d.ts +34 -0
- package/lib/typescript/commonjs/components/FormField.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/HoverCard.d.ts +51 -0
- package/lib/typescript/commonjs/components/HoverCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/IconButton.d.ts +18 -0
- package/lib/typescript/commonjs/components/IconButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Input.d.ts +14 -0
- package/lib/typescript/commonjs/components/Input.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/InputGroup.d.ts +36 -0
- package/lib/typescript/commonjs/components/InputGroup.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/InputOTP.d.ts +42 -0
- package/lib/typescript/commonjs/components/InputOTP.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Item.d.ts +53 -0
- package/lib/typescript/commonjs/components/Item.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/KeyboardAvoiding.d.ts +20 -0
- package/lib/typescript/commonjs/components/KeyboardAvoiding.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Label.d.ts +12 -0
- package/lib/typescript/commonjs/components/Label.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/MetricCard.d.ts +12 -0
- package/lib/typescript/commonjs/components/MetricCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Pagination.d.ts +12 -0
- package/lib/typescript/commonjs/components/Pagination.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Popover.d.ts +20 -0
- package/lib/typescript/commonjs/components/Popover.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Progress.d.ts +11 -0
- package/lib/typescript/commonjs/components/Progress.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/RadioGroup.d.ts +24 -0
- package/lib/typescript/commonjs/components/RadioGroup.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Select.d.ts +23 -0
- package/lib/typescript/commonjs/components/Select.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Sheet.d.ts +24 -0
- package/lib/typescript/commonjs/components/Sheet.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Skeleton.d.ts +10 -0
- package/lib/typescript/commonjs/components/Skeleton.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Slider.d.ts +21 -0
- package/lib/typescript/commonjs/components/Slider.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Stepper.d.ts +17 -0
- package/lib/typescript/commonjs/components/Stepper.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Switch.d.ts +34 -0
- package/lib/typescript/commonjs/components/Switch.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Table.d.ts +22 -0
- package/lib/typescript/commonjs/components/Table.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Tabs.d.ts +30 -0
- package/lib/typescript/commonjs/components/Tabs.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Text.d.ts +12 -0
- package/lib/typescript/commonjs/components/Text.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Textarea.d.ts +8 -0
- package/lib/typescript/commonjs/components/Textarea.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Timeline.d.ts +20 -0
- package/lib/typescript/commonjs/components/Timeline.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Toast.d.ts +87 -0
- package/lib/typescript/commonjs/components/Toast.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/index.d.ts +106 -0
- package/lib/typescript/commonjs/components/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/types.d.ts +9 -0
- package/lib/typescript/commonjs/components/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +4 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/theme/ThemeProvider.d.ts +5 -0
- package/lib/typescript/commonjs/theme/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/theme/createTheme.d.ts +4 -0
- package/lib/typescript/commonjs/theme/createTheme.d.ts.map +1 -0
- package/lib/typescript/commonjs/theme/index.d.ts +7 -0
- package/lib/typescript/commonjs/theme/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/theme/tokens.d.ts +12 -0
- package/lib/typescript/commonjs/theme/tokens.d.ts.map +1 -0
- package/lib/typescript/commonjs/theme/types.d.ts +219 -0
- package/lib/typescript/commonjs/theme/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/theme/useTheme.d.ts +2 -0
- package/lib/typescript/commonjs/theme/useTheme.d.ts.map +1 -0
- package/lib/typescript/commonjs/theme/useThemeStyles.d.ts +3 -0
- package/lib/typescript/commonjs/theme/useThemeStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/color.d.ts +2 -0
- package/lib/typescript/commonjs/utils/color.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/index.d.ts +2 -0
- package/lib/typescript/commonjs/utils/index.d.ts.map +1 -0
- package/lib/typescript/module/components/Accordion.d.ts +53 -0
- package/lib/typescript/module/components/Accordion.d.ts.map +1 -0
- package/lib/typescript/module/components/Alert.d.ts +29 -0
- package/lib/typescript/module/components/Alert.d.ts.map +1 -0
- package/lib/typescript/module/components/AlertDialog.d.ts +32 -0
- package/lib/typescript/module/components/AlertDialog.d.ts.map +1 -0
- package/lib/typescript/module/components/AspectRatio.d.ts +20 -0
- package/lib/typescript/module/components/AspectRatio.d.ts.map +1 -0
- package/lib/typescript/module/components/Attachment.d.ts +66 -0
- package/lib/typescript/module/components/Attachment.d.ts.map +1 -0
- package/lib/typescript/module/components/Avatar.d.ts +37 -0
- package/lib/typescript/module/components/Avatar.d.ts.map +1 -0
- package/lib/typescript/module/components/Badge.d.ts +16 -0
- package/lib/typescript/module/components/Badge.d.ts.map +1 -0
- package/lib/typescript/module/components/BottomSheet.d.ts +17 -0
- package/lib/typescript/module/components/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/module/components/Box.d.ts +23 -0
- package/lib/typescript/module/components/Box.d.ts.map +1 -0
- package/lib/typescript/module/components/Breadcrumb.d.ts +23 -0
- package/lib/typescript/module/components/Breadcrumb.d.ts.map +1 -0
- package/lib/typescript/module/components/Bubble.d.ts +31 -0
- package/lib/typescript/module/components/Bubble.d.ts.map +1 -0
- package/lib/typescript/module/components/Button.d.ts +22 -0
- package/lib/typescript/module/components/Button.d.ts.map +1 -0
- package/lib/typescript/module/components/ButtonGroup.d.ts +21 -0
- package/lib/typescript/module/components/ButtonGroup.d.ts.map +1 -0
- package/lib/typescript/module/components/Calendar.d.ts +26 -0
- package/lib/typescript/module/components/Calendar.d.ts.map +1 -0
- package/lib/typescript/module/components/Card.d.ts +9 -0
- package/lib/typescript/module/components/Card.d.ts.map +1 -0
- package/lib/typescript/module/components/Carousel.d.ts +44 -0
- package/lib/typescript/module/components/Carousel.d.ts.map +1 -0
- package/lib/typescript/module/components/Checkbox.d.ts +13 -0
- package/lib/typescript/module/components/Checkbox.d.ts.map +1 -0
- package/lib/typescript/module/components/Collapsible.d.ts +26 -0
- package/lib/typescript/module/components/Collapsible.d.ts.map +1 -0
- package/lib/typescript/module/components/Combobox.d.ts +64 -0
- package/lib/typescript/module/components/Combobox.d.ts.map +1 -0
- package/lib/typescript/module/components/Command.d.ts +22 -0
- package/lib/typescript/module/components/Command.d.ts.map +1 -0
- package/lib/typescript/module/components/ContextMenu.d.ts +67 -0
- package/lib/typescript/module/components/ContextMenu.d.ts.map +1 -0
- package/lib/typescript/module/components/DataList.d.ts +19 -0
- package/lib/typescript/module/components/DataList.d.ts.map +1 -0
- package/lib/typescript/module/components/Divider.d.ts +9 -0
- package/lib/typescript/module/components/Divider.d.ts.map +1 -0
- package/lib/typescript/module/components/DropdownMenu.d.ts +77 -0
- package/lib/typescript/module/components/DropdownMenu.d.ts.map +1 -0
- package/lib/typescript/module/components/Empty.d.ts +32 -0
- package/lib/typescript/module/components/Empty.d.ts.map +1 -0
- package/lib/typescript/module/components/FloatingActionButton.d.ts +24 -0
- package/lib/typescript/module/components/FloatingActionButton.d.ts.map +1 -0
- package/lib/typescript/module/components/FormField.d.ts +34 -0
- package/lib/typescript/module/components/FormField.d.ts.map +1 -0
- package/lib/typescript/module/components/HoverCard.d.ts +51 -0
- package/lib/typescript/module/components/HoverCard.d.ts.map +1 -0
- package/lib/typescript/module/components/IconButton.d.ts +18 -0
- package/lib/typescript/module/components/IconButton.d.ts.map +1 -0
- package/lib/typescript/module/components/Input.d.ts +14 -0
- package/lib/typescript/module/components/Input.d.ts.map +1 -0
- package/lib/typescript/module/components/InputGroup.d.ts +36 -0
- package/lib/typescript/module/components/InputGroup.d.ts.map +1 -0
- package/lib/typescript/module/components/InputOTP.d.ts +42 -0
- package/lib/typescript/module/components/InputOTP.d.ts.map +1 -0
- package/lib/typescript/module/components/Item.d.ts +53 -0
- package/lib/typescript/module/components/Item.d.ts.map +1 -0
- package/lib/typescript/module/components/KeyboardAvoiding.d.ts +20 -0
- package/lib/typescript/module/components/KeyboardAvoiding.d.ts.map +1 -0
- package/lib/typescript/module/components/Label.d.ts +12 -0
- package/lib/typescript/module/components/Label.d.ts.map +1 -0
- package/lib/typescript/module/components/MetricCard.d.ts +12 -0
- package/lib/typescript/module/components/MetricCard.d.ts.map +1 -0
- package/lib/typescript/module/components/Pagination.d.ts +12 -0
- package/lib/typescript/module/components/Pagination.d.ts.map +1 -0
- package/lib/typescript/module/components/Popover.d.ts +20 -0
- package/lib/typescript/module/components/Popover.d.ts.map +1 -0
- package/lib/typescript/module/components/Progress.d.ts +11 -0
- package/lib/typescript/module/components/Progress.d.ts.map +1 -0
- package/lib/typescript/module/components/RadioGroup.d.ts +24 -0
- package/lib/typescript/module/components/RadioGroup.d.ts.map +1 -0
- package/lib/typescript/module/components/Select.d.ts +23 -0
- package/lib/typescript/module/components/Select.d.ts.map +1 -0
- package/lib/typescript/module/components/Sheet.d.ts +24 -0
- package/lib/typescript/module/components/Sheet.d.ts.map +1 -0
- package/lib/typescript/module/components/Skeleton.d.ts +10 -0
- package/lib/typescript/module/components/Skeleton.d.ts.map +1 -0
- package/lib/typescript/module/components/Slider.d.ts +21 -0
- package/lib/typescript/module/components/Slider.d.ts.map +1 -0
- package/lib/typescript/module/components/Stepper.d.ts +17 -0
- package/lib/typescript/module/components/Stepper.d.ts.map +1 -0
- package/lib/typescript/module/components/Switch.d.ts +34 -0
- package/lib/typescript/module/components/Switch.d.ts.map +1 -0
- package/lib/typescript/module/components/Table.d.ts +22 -0
- package/lib/typescript/module/components/Table.d.ts.map +1 -0
- package/lib/typescript/module/components/Tabs.d.ts +30 -0
- package/lib/typescript/module/components/Tabs.d.ts.map +1 -0
- package/lib/typescript/module/components/Text.d.ts +12 -0
- package/lib/typescript/module/components/Text.d.ts.map +1 -0
- package/lib/typescript/module/components/Textarea.d.ts +8 -0
- package/lib/typescript/module/components/Textarea.d.ts.map +1 -0
- package/lib/typescript/module/components/Timeline.d.ts +20 -0
- package/lib/typescript/module/components/Timeline.d.ts.map +1 -0
- package/lib/typescript/module/components/Toast.d.ts +87 -0
- package/lib/typescript/module/components/Toast.d.ts.map +1 -0
- package/lib/typescript/module/components/index.d.ts +106 -0
- package/lib/typescript/module/components/index.d.ts.map +1 -0
- package/lib/typescript/module/components/types.d.ts +9 -0
- package/lib/typescript/module/components/types.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +4 -0
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/theme/ThemeProvider.d.ts +5 -0
- package/lib/typescript/module/theme/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/module/theme/createTheme.d.ts +4 -0
- package/lib/typescript/module/theme/createTheme.d.ts.map +1 -0
- package/lib/typescript/module/theme/index.d.ts +7 -0
- package/lib/typescript/module/theme/index.d.ts.map +1 -0
- package/lib/typescript/module/theme/tokens.d.ts +12 -0
- package/lib/typescript/module/theme/tokens.d.ts.map +1 -0
- package/lib/typescript/module/theme/types.d.ts +219 -0
- package/lib/typescript/module/theme/types.d.ts.map +1 -0
- package/lib/typescript/module/theme/useTheme.d.ts +2 -0
- package/lib/typescript/module/theme/useTheme.d.ts.map +1 -0
- package/lib/typescript/module/theme/useThemeStyles.d.ts +3 -0
- package/lib/typescript/module/theme/useThemeStyles.d.ts.map +1 -0
- package/lib/typescript/module/utils/color.d.ts +2 -0
- package/lib/typescript/module/utils/color.d.ts.map +1 -0
- package/lib/typescript/module/utils/index.d.ts +2 -0
- package/lib/typescript/module/utils/index.d.ts.map +1 -0
- package/package.json +39 -18
- package/dist/index.d.mts +0 -1593
- package/dist/index.d.ts +0 -1593
- package/dist/index.js +0 -7979
- package/dist/index.mjs +0 -8025
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { ThemeColors } from "../theme";
|
|
3
|
+
export type ThemeColorName = keyof ThemeColors;
|
|
4
|
+
export type RenderIcon = ReactNode | ((props: {
|
|
5
|
+
color: string;
|
|
6
|
+
size: number;
|
|
7
|
+
}) => ReactNode);
|
|
8
|
+
export declare function renderIcon(icon: RenderIcon | undefined, color: string, size: number): ReactNode;
|
|
9
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,MAAM,cAAc,GAAG,MAAM,WAAW,CAAC;AAC/C,MAAM,MAAM,UAAU,GAClB,SAAS,GACT,CAAC,CAAC,KAAK,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,KAAK,SAAS,CAAC,CAAC;AAE5D,wBAAgB,UAAU,CACxB,IAAI,EAAE,UAAU,GAAG,SAAS,EAC5B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,aAIb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ThemeContextValue, ThemeProviderProps } from "./types";
|
|
3
|
+
export declare const ThemeContext: React.Context<ThemeContextValue | null>;
|
|
4
|
+
export declare function ThemeProvider({ children, colorScheme, defaultColorScheme, themes, storage, storageKey, waitForStorage, fallback, onColorSchemeChange, }: ThemeProviderProps): React.JSX.Element;
|
|
5
|
+
//# sourceMappingURL=ThemeProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../../src/theme/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAEV,iBAAiB,EAEjB,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,YAAY,yCAAgD,CAAC;AAuB1E,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,WAAW,EACX,kBAA6B,EAC7B,MAAM,EACN,OAAO,EACP,UAAgC,EAChC,cAAqB,EACrB,QAAe,EACf,mBAAmB,GACpB,EAAE,kBAAkB,qBAkGpB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DeepPartial, Theme, ThemeInput, ThemeMode } from "./types";
|
|
2
|
+
export declare function mergeTheme<T extends object>(base: T, override?: DeepPartial<T>): T;
|
|
3
|
+
export declare function createTheme(mode: ThemeMode, override?: ThemeInput): Theme;
|
|
4
|
+
//# sourceMappingURL=createTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTheme.d.ts","sourceRoot":"","sources":["../../../../src/theme/createTheme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,EACX,KAAK,EACL,UAAU,EACV,SAAS,EAEV,MAAM,SAAS,CAAC;AAMjB,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,EACzC,IAAI,EAAE,CAAC,EACP,QAAQ,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,GACxB,CAAC,CAoBH;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,UAAU,GAAG,KAAK,CAUzE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { ThemeProvider } from "./ThemeProvider";
|
|
2
|
+
export { createTheme, mergeTheme } from "./createTheme";
|
|
3
|
+
export { useTheme } from "./useTheme";
|
|
4
|
+
export { useThemeStyles } from "./useThemeStyles";
|
|
5
|
+
export { darkTheme, defaultThemes, fonts, lightTheme, radii, spacing, typography, } from "./tokens";
|
|
6
|
+
export type { ColorSchemePreference, DeepPartial, Theme, ThemeColors, ThemeComponents, ThemeContextValue, ThemeFonts, ThemeInput, ThemeMode, ThemeNamedStyles, ThemeProviderProps, ThemeRadii, ThemeShadow, ThemeShadows, ThemeSpacing, ThemeStorage, ThemeStyleFactory, TypographyVariant, } from "./types";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EACL,SAAS,EACT,aAAa,EACb,KAAK,EACL,UAAU,EACV,KAAK,EACL,OAAO,EACP,UAAU,GACX,MAAM,UAAU,CAAC;AAClB,YAAY,EACV,qBAAqB,EACrB,WAAW,EACX,KAAK,EACL,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Theme, ThemeFonts, ThemeRadii, ThemeSpacing, ThemeTypography } from "./types";
|
|
2
|
+
export declare const fonts: ThemeFonts;
|
|
3
|
+
export declare const spacing: ThemeSpacing;
|
|
4
|
+
export declare const radii: ThemeRadii;
|
|
5
|
+
export declare const typography: ThemeTypography;
|
|
6
|
+
export declare const lightTheme: Theme;
|
|
7
|
+
export declare const darkTheme: Theme;
|
|
8
|
+
export declare const defaultThemes: {
|
|
9
|
+
readonly light: Theme;
|
|
10
|
+
readonly dark: Theme;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../src/theme/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EAGL,UAAU,EACV,UAAU,EAEV,YAAY,EACZ,eAAe,EAChB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,KAAK,EAAE,UAMnB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,YAUrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,UASnB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAYxB,CAAC;AAkLF,eAAO,MAAM,UAAU,EAAE,KAUxB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC;AAEF,eAAO,MAAM,aAAa;;;CAGhB,CAAC"}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { ImageStyle, TextStyle, ViewStyle } from "react-native";
|
|
3
|
+
export type ThemeMode = "light" | "dark";
|
|
4
|
+
export type ColorSchemePreference = ThemeMode | "system";
|
|
5
|
+
export type ThemeStyle = ViewStyle | TextStyle | ImageStyle;
|
|
6
|
+
export type ThemeNamedStyles<T> = {
|
|
7
|
+
[P in keyof T]: ThemeStyle;
|
|
8
|
+
};
|
|
9
|
+
export type ThemeStyleFactory<T extends ThemeNamedStyles<T>> = (theme: Theme) => T;
|
|
10
|
+
export type DeepPartial<T> = {
|
|
11
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
12
|
+
};
|
|
13
|
+
export interface ThemeColors {
|
|
14
|
+
background: string;
|
|
15
|
+
backgroundMuted: string;
|
|
16
|
+
backgroundSubtle: string;
|
|
17
|
+
surface: string;
|
|
18
|
+
surfaceRaised: string;
|
|
19
|
+
surfaceMuted: string;
|
|
20
|
+
text: string;
|
|
21
|
+
textMuted: string;
|
|
22
|
+
textSubtle: string;
|
|
23
|
+
textInverse: string;
|
|
24
|
+
primary: string;
|
|
25
|
+
primarySoft: string;
|
|
26
|
+
primaryStrong: string;
|
|
27
|
+
onPrimary: string;
|
|
28
|
+
secondary: string;
|
|
29
|
+
secondarySoft: string;
|
|
30
|
+
onSecondary: string;
|
|
31
|
+
accent: string;
|
|
32
|
+
accentSoft: string;
|
|
33
|
+
onAccent: string;
|
|
34
|
+
success: string;
|
|
35
|
+
successSoft: string;
|
|
36
|
+
onSuccess: string;
|
|
37
|
+
warning: string;
|
|
38
|
+
warningSoft: string;
|
|
39
|
+
onWarning: string;
|
|
40
|
+
danger: string;
|
|
41
|
+
dangerSoft: string;
|
|
42
|
+
onDanger: string;
|
|
43
|
+
info: string;
|
|
44
|
+
infoSoft: string;
|
|
45
|
+
onInfo: string;
|
|
46
|
+
border: string;
|
|
47
|
+
borderMuted: string;
|
|
48
|
+
divider: string;
|
|
49
|
+
input: string;
|
|
50
|
+
placeholder: string;
|
|
51
|
+
disabled: string;
|
|
52
|
+
disabledText: string;
|
|
53
|
+
overlay: string;
|
|
54
|
+
transparent: string;
|
|
55
|
+
}
|
|
56
|
+
export interface TypographyVariant {
|
|
57
|
+
fontFamily?: string;
|
|
58
|
+
fontSize: number;
|
|
59
|
+
lineHeight: number;
|
|
60
|
+
fontWeight?: TextStyle["fontWeight"];
|
|
61
|
+
letterSpacing?: number;
|
|
62
|
+
}
|
|
63
|
+
export interface ThemeTypography {
|
|
64
|
+
display: TypographyVariant;
|
|
65
|
+
h1: TypographyVariant;
|
|
66
|
+
h2: TypographyVariant;
|
|
67
|
+
h3: TypographyVariant;
|
|
68
|
+
title: TypographyVariant;
|
|
69
|
+
subtitle: TypographyVariant;
|
|
70
|
+
body: TypographyVariant;
|
|
71
|
+
bodySmall: TypographyVariant;
|
|
72
|
+
label: TypographyVariant;
|
|
73
|
+
labelSmall: TypographyVariant;
|
|
74
|
+
caption: TypographyVariant;
|
|
75
|
+
}
|
|
76
|
+
export interface ThemeFonts {
|
|
77
|
+
regular?: string;
|
|
78
|
+
medium?: string;
|
|
79
|
+
semibold?: string;
|
|
80
|
+
bold?: string;
|
|
81
|
+
mono?: string;
|
|
82
|
+
}
|
|
83
|
+
export interface ThemeSpacing {
|
|
84
|
+
none: number;
|
|
85
|
+
xxs: number;
|
|
86
|
+
xs: number;
|
|
87
|
+
sm: number;
|
|
88
|
+
md: number;
|
|
89
|
+
lg: number;
|
|
90
|
+
xl: number;
|
|
91
|
+
xxl: number;
|
|
92
|
+
xxxl: number;
|
|
93
|
+
}
|
|
94
|
+
export interface ThemeRadii {
|
|
95
|
+
none: number;
|
|
96
|
+
xs: number;
|
|
97
|
+
sm: number;
|
|
98
|
+
md: number;
|
|
99
|
+
lg: number;
|
|
100
|
+
xl: number;
|
|
101
|
+
xxl: number;
|
|
102
|
+
full: number;
|
|
103
|
+
}
|
|
104
|
+
export interface ThemeShadow {
|
|
105
|
+
shadowColor: string;
|
|
106
|
+
shadowOffset: {
|
|
107
|
+
width: number;
|
|
108
|
+
height: number;
|
|
109
|
+
};
|
|
110
|
+
shadowOpacity: number;
|
|
111
|
+
shadowRadius: number;
|
|
112
|
+
elevation: number;
|
|
113
|
+
}
|
|
114
|
+
export interface ThemeShadows {
|
|
115
|
+
none: ThemeShadow;
|
|
116
|
+
sm: ThemeShadow;
|
|
117
|
+
md: ThemeShadow;
|
|
118
|
+
lg: ThemeShadow;
|
|
119
|
+
}
|
|
120
|
+
export interface ThemeComponents {
|
|
121
|
+
borderWidth: {
|
|
122
|
+
default: number;
|
|
123
|
+
strong: number;
|
|
124
|
+
focus: number;
|
|
125
|
+
ring: number;
|
|
126
|
+
hairline: number;
|
|
127
|
+
};
|
|
128
|
+
button: {
|
|
129
|
+
height: Record<"xs" | "sm" | "md" | "lg" | "xl", number>;
|
|
130
|
+
paddingX: Record<"xs" | "sm" | "md" | "lg" | "xl", number>;
|
|
131
|
+
iconSize: Record<"xs" | "sm" | "md" | "lg" | "xl", number>;
|
|
132
|
+
};
|
|
133
|
+
iconButton: {
|
|
134
|
+
size: Record<"sm" | "md" | "lg", number>;
|
|
135
|
+
iconSize: Record<"sm" | "md" | "lg", number>;
|
|
136
|
+
badge: {
|
|
137
|
+
size: number;
|
|
138
|
+
minWidth: number;
|
|
139
|
+
offset: number;
|
|
140
|
+
paddingX: number;
|
|
141
|
+
borderWidth: number;
|
|
142
|
+
fontSize: number;
|
|
143
|
+
lineHeight: number;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
timeline: {
|
|
147
|
+
indicatorSize: number;
|
|
148
|
+
connectorWidth: number;
|
|
149
|
+
connectorMinHeight: number;
|
|
150
|
+
};
|
|
151
|
+
table: {
|
|
152
|
+
minColumnWidth: number;
|
|
153
|
+
};
|
|
154
|
+
metricCard: {
|
|
155
|
+
iconSize: number;
|
|
156
|
+
};
|
|
157
|
+
floatingActionButton: {
|
|
158
|
+
size: Record<"sm" | "md" | "lg", number>;
|
|
159
|
+
iconSize: Record<"sm" | "md" | "lg", number>;
|
|
160
|
+
paddingX: Record<"sm" | "md" | "lg", number>;
|
|
161
|
+
};
|
|
162
|
+
switch: {
|
|
163
|
+
width: Record<"sm" | "md" | "lg", number>;
|
|
164
|
+
height: Record<"sm" | "md" | "lg", number>;
|
|
165
|
+
thumbSize: Record<"sm" | "md" | "lg", number>;
|
|
166
|
+
iconSize: Record<"sm" | "md" | "lg", number>;
|
|
167
|
+
};
|
|
168
|
+
slider: {
|
|
169
|
+
height: number;
|
|
170
|
+
trackHeight: number;
|
|
171
|
+
thumbSize: number;
|
|
172
|
+
activeThumbSize: number;
|
|
173
|
+
hitSlop: number;
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
export interface Theme {
|
|
177
|
+
mode: ThemeMode;
|
|
178
|
+
dark: boolean;
|
|
179
|
+
colors: ThemeColors;
|
|
180
|
+
fonts: ThemeFonts;
|
|
181
|
+
typography: ThemeTypography;
|
|
182
|
+
spacing: ThemeSpacing;
|
|
183
|
+
radii: ThemeRadii;
|
|
184
|
+
shadows: ThemeShadows;
|
|
185
|
+
components: ThemeComponents;
|
|
186
|
+
}
|
|
187
|
+
export type ThemeInput = DeepPartial<Omit<Theme, "mode" | "dark">>;
|
|
188
|
+
export interface ThemeStorage {
|
|
189
|
+
getItem: (key: string) => string | null | Promise<string | null>;
|
|
190
|
+
setItem: (key: string, value: string) => void | Promise<void>;
|
|
191
|
+
}
|
|
192
|
+
export interface ThemeProviderProps {
|
|
193
|
+
children: ReactNode;
|
|
194
|
+
colorScheme?: ColorSchemePreference;
|
|
195
|
+
defaultColorScheme?: ColorSchemePreference;
|
|
196
|
+
themes?: Partial<Record<ThemeMode, ThemeInput>>;
|
|
197
|
+
storage?: ThemeStorage;
|
|
198
|
+
storageKey?: string;
|
|
199
|
+
waitForStorage?: boolean;
|
|
200
|
+
fallback?: ReactNode;
|
|
201
|
+
onColorSchemeChange?: (scheme: ColorSchemePreference) => void;
|
|
202
|
+
}
|
|
203
|
+
export interface ThemeContextValue {
|
|
204
|
+
theme: Theme;
|
|
205
|
+
colors: ThemeColors;
|
|
206
|
+
fonts: ThemeFonts;
|
|
207
|
+
typography: ThemeTypography;
|
|
208
|
+
spacing: ThemeSpacing;
|
|
209
|
+
radii: ThemeRadii;
|
|
210
|
+
shadows: ThemeShadows;
|
|
211
|
+
components: ThemeComponents;
|
|
212
|
+
colorScheme: ColorSchemePreference;
|
|
213
|
+
resolvedColorScheme: ThemeMode;
|
|
214
|
+
isDark: boolean;
|
|
215
|
+
isHydrated: boolean;
|
|
216
|
+
setColorScheme: (scheme: ColorSchemePreference) => void;
|
|
217
|
+
toggleColorScheme: () => void;
|
|
218
|
+
}
|
|
219
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/theme/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAErE,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AACzC,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEzD,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAC5D,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,UAAU;CAAE,CAAC;AACjE,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAC7D,KAAK,EAAE,KAAK,KACT,CAAC,CAAC;AAEP,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,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,SAAS,CAAC;IACrB,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,IAAI,CAAC;CAC/D;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,UAAU,CAAC;IAClB,UAAU,EAAE,eAAe,CAAC;IAC5B,OAAO,EAAE,YAAY,CAAC;IACtB,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE,YAAY,CAAC;IACtB,UAAU,EAAE,eAAe,CAAC;IAC5B,WAAW,EAAE,qBAAqB,CAAC;IACnC,mBAAmB,EAAE,SAAS,CAAC;IAC/B,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACxD,iBAAiB,EAAE,MAAM,IAAI,CAAC;CAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../../src/theme/useTheme.ts"],"names":[],"mappings":"AAIA,wBAAgB,QAAQ,wCAQvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThemeStyles.d.ts","sourceRoot":"","sources":["../../../../src/theme/useThemeStyles.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEnE,wBAAgB,cAAc,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,CAAC,EAC1D,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAC5B,CAAC,CAIH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../../src/utils/color.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAoB9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type StyleProp, type TextStyle, type ViewStyle } from "react-native";
|
|
3
|
+
import { type RenderIcon } from "./types.js";
|
|
4
|
+
export interface AccordionItem {
|
|
5
|
+
id: string;
|
|
6
|
+
title: React.ReactNode;
|
|
7
|
+
content: React.ReactNode;
|
|
8
|
+
subtitle?: React.ReactNode;
|
|
9
|
+
icon?: RenderIcon;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface AccordionIndicatorProps {
|
|
13
|
+
expanded: boolean;
|
|
14
|
+
color: string;
|
|
15
|
+
size: number;
|
|
16
|
+
}
|
|
17
|
+
export interface AccordionAnimatedContentProps {
|
|
18
|
+
expanded: boolean;
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
duration: number;
|
|
21
|
+
style?: StyleProp<ViewStyle>;
|
|
22
|
+
}
|
|
23
|
+
export interface AccordionAnimatedIndicatorProps {
|
|
24
|
+
expanded: boolean;
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
duration: number;
|
|
27
|
+
style?: StyleProp<ViewStyle>;
|
|
28
|
+
}
|
|
29
|
+
export interface AccordionAnimationComponents {
|
|
30
|
+
Content?: React.ComponentType<AccordionAnimatedContentProps>;
|
|
31
|
+
Indicator?: React.ComponentType<AccordionAnimatedIndicatorProps>;
|
|
32
|
+
}
|
|
33
|
+
export type AccordionIndicator = React.ReactNode | ((props: AccordionIndicatorProps) => React.ReactNode);
|
|
34
|
+
export interface AccordionProps {
|
|
35
|
+
items: AccordionItem[];
|
|
36
|
+
allowMultiple?: boolean;
|
|
37
|
+
defaultOpenIds?: string[];
|
|
38
|
+
openIds?: string[];
|
|
39
|
+
onOpenChange?: (openIds: string[]) => void;
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
animated?: boolean;
|
|
42
|
+
animationDuration?: number;
|
|
43
|
+
animationComponents?: AccordionAnimationComponents;
|
|
44
|
+
indicator?: AccordionIndicator;
|
|
45
|
+
itemStyle?: StyleProp<ViewStyle>;
|
|
46
|
+
headerStyle?: StyleProp<ViewStyle>;
|
|
47
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
48
|
+
subtitleStyle?: StyleProp<TextStyle>;
|
|
49
|
+
contentStyle?: StyleProp<ViewStyle>;
|
|
50
|
+
style?: StyleProp<ViewStyle>;
|
|
51
|
+
}
|
|
52
|
+
export declare function Accordion({ items, allowMultiple, defaultOpenIds, openIds, onOpenChange, disabled, animated, animationDuration, animationComponents, indicator, itemStyle, headerStyle, titleStyle, subtitleStyle, contentStyle, style, }: AccordionProps): React.JSX.Element;
|
|
53
|
+
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../../src/components/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AACzE,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAStB,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,YAAS,CAAC;AAEtD,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,OAAO,CAAC;I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AC,SAAS,CAAC,CAAC;IACjC,WAAW,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACnC,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,aAAa,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACrC,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACpC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAgGD,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,aAAqB,EACrB,cAAmB,EACnB,OAAO,EACP,YAAY,EACZ,QAAgB,EAChB,QAAe,EACf,iBAAuB,EACvB,mBAAmB,EACnB,SAAS,EACT,SAAS,EACT,WAAW,EACX,UAAU,EACV,aAAa,EACb,YAAY,EACZ,KAAK,GACN,EAAE,cAAc,qBAwMhB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type StyleProp, type TextStyle, type ViewStyle } from "react-native";
|
|
3
|
+
import { type RenderIcon } from "./types.js";
|
|
4
|
+
export type AlertTone = "primary" | "success" | "warning" | "danger" | "info" | "secondary";
|
|
5
|
+
export type AlertVariant = "soft" | "outline" | "solid";
|
|
6
|
+
export interface AlertAction {
|
|
7
|
+
label: string;
|
|
8
|
+
onPress: () => void;
|
|
9
|
+
icon?: RenderIcon;
|
|
10
|
+
}
|
|
11
|
+
export interface AlertProps {
|
|
12
|
+
title?: React.ReactNode;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
tone?: AlertTone;
|
|
15
|
+
variant?: AlertVariant;
|
|
16
|
+
icon?: RenderIcon;
|
|
17
|
+
action?: AlertAction;
|
|
18
|
+
dismissible?: boolean;
|
|
19
|
+
animated?: boolean;
|
|
20
|
+
animationDuration?: number;
|
|
21
|
+
onClose?: () => void;
|
|
22
|
+
closeIcon?: RenderIcon;
|
|
23
|
+
style?: StyleProp<ViewStyle>;
|
|
24
|
+
contentStyle?: StyleProp<ViewStyle>;
|
|
25
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
26
|
+
textStyle?: StyleProp<TextStyle>;
|
|
27
|
+
}
|
|
28
|
+
export declare function Alert({ title, children, tone, variant, icon, action, dismissible, animated, animationDuration, onClose, closeIcon, style, contentStyle, titleStyle, textStyle, }: AlertProps): React.JSX.Element | null;
|
|
29
|
+
//# sourceMappingURL=Alert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../../src/components/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAStB,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,YAAS,CAAC;AAGtD,MAAM,MAAM,SAAS,GACjB,SAAS,GACT,SAAS,GACT,SAAS,GACT,QAAQ,GACR,MAAM,GACN,WAAW,CAAC;AAChB,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAExD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACpC,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAClC;AAkDD,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,QAAQ,EACR,IAAa,EACb,OAAgB,EAChB,IAAI,EACJ,MAAM,EACN,WAAmB,EACnB,QAAe,EACf,iBAAuB,EACvB,OAAO,EACP,SAAS,EACT,KAAK,EACL,YAAY,EACZ,UAAU,EACV,SAAS,GACV,EAAE,UAAU,4BA6HZ"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type ModalProps, type StyleProp, type TextStyle, type ViewStyle } from "react-native";
|
|
3
|
+
import { type RenderIcon } from "./types.js";
|
|
4
|
+
export type AlertDialogTone = "primary" | "success" | "warning" | "danger" | "info" | "secondary";
|
|
5
|
+
export interface AlertDialogProps {
|
|
6
|
+
visible: boolean;
|
|
7
|
+
title?: React.ReactNode;
|
|
8
|
+
description?: React.ReactNode;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
tone?: AlertDialogTone;
|
|
11
|
+
icon?: RenderIcon;
|
|
12
|
+
closeIcon?: RenderIcon;
|
|
13
|
+
confirmText?: string;
|
|
14
|
+
cancelText?: string;
|
|
15
|
+
onConfirm?: () => void;
|
|
16
|
+
onCancel?: () => void;
|
|
17
|
+
onClose?: () => void;
|
|
18
|
+
confirmLoading?: boolean;
|
|
19
|
+
confirmDisabled?: boolean;
|
|
20
|
+
cancelDisabled?: boolean;
|
|
21
|
+
dismissOnBackdropPress?: boolean;
|
|
22
|
+
animated?: boolean;
|
|
23
|
+
animationDuration?: number;
|
|
24
|
+
modalProps?: Omit<ModalProps, "visible" | "transparent" | "animationType" | "onRequestClose">;
|
|
25
|
+
overlayStyle?: StyleProp<ViewStyle>;
|
|
26
|
+
style?: StyleProp<ViewStyle>;
|
|
27
|
+
contentStyle?: StyleProp<ViewStyle>;
|
|
28
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
29
|
+
descriptionStyle?: StyleProp<TextStyle>;
|
|
30
|
+
}
|
|
31
|
+
export declare function AlertDialog({ visible, title, description, children, tone, icon, closeIcon, confirmText, cancelText, onConfirm, onCancel, onClose, confirmLoading, confirmDisabled, cancelDisabled, dismissOnBackdropPress, animated, animationDuration, modalProps, overlayStyle, style, contentStyle, titleStyle, descriptionStyle, }: AlertDialogProps): React.JSX.Element | null;
|
|
32
|
+
//# sourceMappingURL=AlertDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/AlertDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAIL,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAStB,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,YAAS,CAAC;AAItD,MAAM,MAAM,eAAe,GACvB,SAAS,GACT,SAAS,GACT,SAAS,GACT,QAAQ,GACR,MAAM,GACN,WAAW,CAAC;AAEhB,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,SAAS,CAAC,EAAE,UAAU,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ewProps } from "react-native";
|
|
3
|
+
import { useTheme } from "../theme/index.js";
|
|
4
|
+
export interface AspectRatioProps extends ViewProps {
|
|
5
|
+
/**
|
|
6
|
+
* The aspect ratio of the container, e.g., 16/9, 4/3, 1.
|
|
7
|
+
* Defaults to 1.
|
|
8
|
+
*/
|
|
9
|
+
ratio?: number;
|
|
10
|
+
/**
|
|
11
|
+
* The border radius token from the theme.
|
|
12
|
+
*/
|
|
13
|
+
radius?: keyof ReturnType<typeof useTheme>["radii"];
|
|
14
|
+
/**
|
|
15
|
+
* The content to render inside the AspectRatio container.
|
|
16
|
+
*/
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare function AspectRatio({ ratio, radius, children, style, ...props }: AspectRatioProps): React.JSX.Element;
|
|
20
|
+
//# sourceMappingURL=AspectRatio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AspectRatio.d.ts","sourceRoot":"","sources":["../../../../src/components/AspectRatio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAoB,KAAK,SAAS,EAAkB,MAAM,cAAc,CAAC;AAEhF,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAU,CAAC;AAEpC,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC;IACpD;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,wBAAgB,WAAW,CAAC,EAC1B,KAAS,EACT,MAAM,EACN,QAAQ,EACR,KAAK,EACL,GAAG,KAAK,EACT,EAAE,gBAAgB,qBAwBlB"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type StyleProp, type TextStyle, type ViewStyle } from "react-native";
|
|
3
|
+
import { type RenderIcon } from "./types.js";
|
|
4
|
+
export type AttachmentLayout = "card" | "row";
|
|
5
|
+
export type AttachmentDescriptionTone = "default" | "info" | "success" | "warning" | "danger";
|
|
6
|
+
export interface AttachmentProps {
|
|
7
|
+
/**
|
|
8
|
+
* Layout style of the attachment.
|
|
9
|
+
* - 'card': A square card layout, ideal for grid-like previews of images.
|
|
10
|
+
* - 'row': A full-width horizontal row, ideal for document/file listings.
|
|
11
|
+
* Defaults to 'row'.
|
|
12
|
+
*/
|
|
13
|
+
layout?: AttachmentLayout;
|
|
14
|
+
/**
|
|
15
|
+
* Name of the file, e.g., 'workspace.png'.
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
/**
|
|
19
|
+
* Description or metadata, e.g., 'PNG • 820 KB' or 'Uploading • 64%'.
|
|
20
|
+
*/
|
|
21
|
+
description?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Pluggable icon/thumbnail for the attachment.
|
|
24
|
+
* Can be a URI string (rendered as Image), a ReactNode, or a RenderIcon function.
|
|
25
|
+
*/
|
|
26
|
+
thumbnail?: string | RenderIcon;
|
|
27
|
+
/**
|
|
28
|
+
* Pluggable fallback file icon when no thumbnail is provided.
|
|
29
|
+
*/
|
|
30
|
+
fileIcon?: RenderIcon;
|
|
31
|
+
/**
|
|
32
|
+
* Tone for the description text. Use this instead of deriving visual state from copy.
|
|
33
|
+
*/
|
|
34
|
+
descriptionTone?: AttachmentDescriptionTone;
|
|
35
|
+
/**
|
|
36
|
+
* If true, shows a loading spinner in the thumbnail slot.
|
|
37
|
+
*/
|
|
38
|
+
loading?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Callback triggered when the remove button is pressed.
|
|
41
|
+
* Shows a close button on the right side if defined.
|
|
42
|
+
*/
|
|
43
|
+
onRemove?: () => void;
|
|
44
|
+
/**
|
|
45
|
+
* Pluggable close/remove icon.
|
|
46
|
+
*/
|
|
47
|
+
closeIcon?: RenderIcon;
|
|
48
|
+
/**
|
|
49
|
+
* Callback triggered when pressing the entire attachment card/row.
|
|
50
|
+
*/
|
|
51
|
+
onPress?: () => void;
|
|
52
|
+
/**
|
|
53
|
+
* Style overrides for the root container.
|
|
54
|
+
*/
|
|
55
|
+
style?: StyleProp<ViewStyle>;
|
|
56
|
+
/**
|
|
57
|
+
* Style overrides for the name text.
|
|
58
|
+
*/
|
|
59
|
+
nameStyle?: StyleProp<TextStyle>;
|
|
60
|
+
/**
|
|
61
|
+
* Style overrides for the description text.
|
|
62
|
+
*/
|
|
63
|
+
descriptionStyle?: StyleProp<TextStyle>;
|
|
64
|
+
}
|
|
65
|
+
export declare function Attachment({ layout, name, description, thumbnail, loading, onRemove, closeIcon, fileIcon, descriptionTone, onPress, style, nameStyle, descriptionStyle, ...props }: AttachmentProps): React.JSX.Element;
|
|
66
|
+
//# sourceMappingURL=Attachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Attachment.d.ts","sourceRoot":"","sources":["../../../../src/components/Attachment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAML,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,OAAO,EAAc,KAAK,UAAU,EAAuB,MAAM,YAAS,CAAC;AAG3E,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,KAAK,CAAC;AAC9C,MAAM,MAAM,yBAAyB,GACjC,SAAS,GACT,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,CAAC;AAEb,MAAM,WAAW,eAAe;IAC9B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB;;OAEG;IACH,eAAe,CAAC,EAAE,yBAAyB,CAAC;IAC5C;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACjC;;OAEG;IACH,gBAAgB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACzC;AAED,wBAAgB,UAAU,CAAC,EACzB,MAAc,EACd,IAAI,EACJ,WAAW,EACX,SAAS,EACT,OAAe,EACf,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,eAA2B,EAC3B,OAAO,EACP,KAAK,EACL,SAAS,EACT,gBAAgB,EAChB,GAAG,KAAK,EACT,EAAE,eAAe,qBAyOjB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { View, type ImageProps, type ImageStyle, type StyleProp, type TextStyle, type ViewStyle } from "react-native";
|
|
3
|
+
export type AvatarSize = "default" | "sm" | "lg";
|
|
4
|
+
export interface AvatarProps extends React.ComponentPropsWithoutRef<typeof View> {
|
|
5
|
+
size?: AvatarSize;
|
|
6
|
+
style?: StyleProp<ViewStyle>;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare function Avatar({ size, style, children, ...props }: AvatarProps): React.JSX.Element;
|
|
10
|
+
export interface AvatarImageProps extends Omit<ImageProps, "style"> {
|
|
11
|
+
style?: StyleProp<ImageStyle>;
|
|
12
|
+
}
|
|
13
|
+
export declare function AvatarImage({ source, style, onLoad, onError, ...props }: AvatarImageProps): React.JSX.Element | null;
|
|
14
|
+
export interface AvatarFallbackProps extends React.ComponentPropsWithoutRef<typeof View> {
|
|
15
|
+
style?: StyleProp<ViewStyle>;
|
|
16
|
+
textStyle?: StyleProp<TextStyle>;
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare function AvatarFallback({ style, textStyle, children, ...props }: AvatarFallbackProps): React.JSX.Element | null;
|
|
20
|
+
export interface AvatarBadgeProps extends React.ComponentPropsWithoutRef<typeof View> {
|
|
21
|
+
style?: StyleProp<ViewStyle>;
|
|
22
|
+
bg?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare function AvatarBadge({ style, bg, ...props }: AvatarBadgeProps): React.JSX.Element;
|
|
25
|
+
export interface AvatarGroupProps extends React.ComponentPropsWithoutRef<typeof View> {
|
|
26
|
+
size?: AvatarSize;
|
|
27
|
+
style?: StyleProp<ViewStyle>;
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
}
|
|
30
|
+
export declare function AvatarGroup({ size, style, children, ...props }: AvatarGroupProps): React.JSX.Element;
|
|
31
|
+
export interface AvatarGroupCountProps extends React.ComponentPropsWithoutRef<typeof View> {
|
|
32
|
+
count: number;
|
|
33
|
+
style?: StyleProp<ViewStyle>;
|
|
34
|
+
textStyle?: StyleProp<TextStyle>;
|
|
35
|
+
}
|
|
36
|
+
export declare function AvatarGroupCount({ count, style, textStyle, ...props }: AvatarGroupCountProps): React.JSX.Element;
|
|
37
|
+
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAC9E,OAAO,EAGL,IAAI,EACJ,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,S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AE,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,qBAsBpE;AAED,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,wBAAwB,CACtE,OAAO,IAAI,CACZ;IACC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,wBAAgB,WAAW,CAAC,EAC1B,IAAgB,EAChB,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,gBAAgB,qBA2BlB;AAED,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,wBAAwB,CAC3E,OAAO,IAAI,CACZ;IACC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAClC;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EACT,EAAE,qBAAqB,qBAiCvB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type StyleProp, type ViewStyle } from "react-native";
|
|
3
|
+
import { type RenderIcon } from "./types.js";
|
|
4
|
+
export type BadgeTone = "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "info";
|
|
5
|
+
export type BadgeVariant = "solid" | "soft" | "outline";
|
|
6
|
+
export type BadgeSize = "sm" | "md" | "lg";
|
|
7
|
+
export interface BadgeProps {
|
|
8
|
+
children: string;
|
|
9
|
+
tone?: BadgeTone;
|
|
10
|
+
variant?: BadgeVariant;
|
|
11
|
+
size?: BadgeSize;
|
|
12
|
+
icon?: RenderIcon;
|
|
13
|
+
style?: StyleProp<ViewStyle>;
|
|
14
|
+
}
|
|
15
|
+
export declare function Badge({ children, tone, variant, size, icon, style, }: BadgeProps): React.JSX.Element;
|
|
16
|
+
//# sourceMappingURL=Badge.d.ts.map
|