@masumdev/rn-ui 0.1.0 → 0.1.2
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 +88 -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 +82 -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 +44 -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,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export { ThemeProvider } from "./ThemeProvider.js";
|
|
4
|
+
export { createTheme, mergeTheme } from "./createTheme.js";
|
|
5
|
+
export { useTheme } from "./useTheme.js";
|
|
6
|
+
export { useThemeStyles } from "./useThemeStyles.js";
|
|
7
|
+
export { darkTheme, defaultThemes, fonts, lightTheme, radii, spacing, typography } from "./tokens.js";
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ThemeProvider","createTheme","mergeTheme","useTheme","useThemeStyles","darkTheme","defaultThemes","fonts","lightTheme","radii","spacing","typography"],"sourceRoot":"../../../src","sources":["theme/index.ts"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,oBAAiB;AAC/C,SAASC,WAAW,EAAEC,UAAU,QAAQ,kBAAe;AACvD,SAASC,QAAQ,QAAQ,eAAY;AACrC,SAASC,cAAc,QAAQ,qBAAkB;AACjD,SACEC,SAAS,EACTC,aAAa,EACbC,KAAK,EACLC,UAAU,EACVC,KAAK,EACLC,OAAO,EACPC,UAAU,QACL,aAAU","ignoreList":[]}
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export const fonts = {
|
|
4
|
+
regular: undefined,
|
|
5
|
+
medium: undefined,
|
|
6
|
+
semibold: undefined,
|
|
7
|
+
bold: undefined,
|
|
8
|
+
mono: undefined
|
|
9
|
+
};
|
|
10
|
+
export const spacing = {
|
|
11
|
+
none: 0,
|
|
12
|
+
xxs: 2,
|
|
13
|
+
xs: 4,
|
|
14
|
+
sm: 8,
|
|
15
|
+
md: 12,
|
|
16
|
+
lg: 16,
|
|
17
|
+
xl: 20,
|
|
18
|
+
xxl: 24,
|
|
19
|
+
xxxl: 32
|
|
20
|
+
};
|
|
21
|
+
export const radii = {
|
|
22
|
+
none: 0,
|
|
23
|
+
xs: 4,
|
|
24
|
+
sm: 8,
|
|
25
|
+
md: 12,
|
|
26
|
+
lg: 16,
|
|
27
|
+
xl: 20,
|
|
28
|
+
xxl: 28,
|
|
29
|
+
full: 9999
|
|
30
|
+
};
|
|
31
|
+
export const typography = {
|
|
32
|
+
display: {
|
|
33
|
+
fontSize: 44,
|
|
34
|
+
lineHeight: 52,
|
|
35
|
+
fontWeight: "700"
|
|
36
|
+
},
|
|
37
|
+
h1: {
|
|
38
|
+
fontSize: 32,
|
|
39
|
+
lineHeight: 40,
|
|
40
|
+
fontWeight: "700"
|
|
41
|
+
},
|
|
42
|
+
h2: {
|
|
43
|
+
fontSize: 28,
|
|
44
|
+
lineHeight: 36,
|
|
45
|
+
fontWeight: "700"
|
|
46
|
+
},
|
|
47
|
+
h3: {
|
|
48
|
+
fontSize: 24,
|
|
49
|
+
lineHeight: 32,
|
|
50
|
+
fontWeight: "600"
|
|
51
|
+
},
|
|
52
|
+
title: {
|
|
53
|
+
fontSize: 20,
|
|
54
|
+
lineHeight: 28,
|
|
55
|
+
fontWeight: "600"
|
|
56
|
+
},
|
|
57
|
+
subtitle: {
|
|
58
|
+
fontSize: 16,
|
|
59
|
+
lineHeight: 24,
|
|
60
|
+
fontWeight: "600"
|
|
61
|
+
},
|
|
62
|
+
body: {
|
|
63
|
+
fontSize: 16,
|
|
64
|
+
lineHeight: 24,
|
|
65
|
+
fontWeight: "400"
|
|
66
|
+
},
|
|
67
|
+
bodySmall: {
|
|
68
|
+
fontSize: 14,
|
|
69
|
+
lineHeight: 20,
|
|
70
|
+
fontWeight: "400"
|
|
71
|
+
},
|
|
72
|
+
label: {
|
|
73
|
+
fontSize: 14,
|
|
74
|
+
lineHeight: 20,
|
|
75
|
+
fontWeight: "600"
|
|
76
|
+
},
|
|
77
|
+
labelSmall: {
|
|
78
|
+
fontSize: 12,
|
|
79
|
+
lineHeight: 16,
|
|
80
|
+
fontWeight: "600"
|
|
81
|
+
},
|
|
82
|
+
caption: {
|
|
83
|
+
fontSize: 12,
|
|
84
|
+
lineHeight: 16,
|
|
85
|
+
fontWeight: "400"
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
const shadows = {
|
|
89
|
+
none: {
|
|
90
|
+
shadowColor: "#000000",
|
|
91
|
+
shadowOffset: {
|
|
92
|
+
width: 0,
|
|
93
|
+
height: 0
|
|
94
|
+
},
|
|
95
|
+
shadowOpacity: 0,
|
|
96
|
+
shadowRadius: 0,
|
|
97
|
+
elevation: 0
|
|
98
|
+
},
|
|
99
|
+
sm: {
|
|
100
|
+
shadowColor: "#000000",
|
|
101
|
+
shadowOffset: {
|
|
102
|
+
width: 0,
|
|
103
|
+
height: 0
|
|
104
|
+
},
|
|
105
|
+
shadowOpacity: 0,
|
|
106
|
+
shadowRadius: 0,
|
|
107
|
+
elevation: 0
|
|
108
|
+
},
|
|
109
|
+
md: {
|
|
110
|
+
shadowColor: "#000000",
|
|
111
|
+
shadowOffset: {
|
|
112
|
+
width: 0,
|
|
113
|
+
height: 0
|
|
114
|
+
},
|
|
115
|
+
shadowOpacity: 0,
|
|
116
|
+
shadowRadius: 0,
|
|
117
|
+
elevation: 0
|
|
118
|
+
},
|
|
119
|
+
lg: {
|
|
120
|
+
shadowColor: "#000000",
|
|
121
|
+
shadowOffset: {
|
|
122
|
+
width: 0,
|
|
123
|
+
height: 0
|
|
124
|
+
},
|
|
125
|
+
shadowOpacity: 0,
|
|
126
|
+
shadowRadius: 0,
|
|
127
|
+
elevation: 0
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
const components = {
|
|
131
|
+
borderWidth: {
|
|
132
|
+
default: 1,
|
|
133
|
+
strong: 1.25,
|
|
134
|
+
focus: 1.5,
|
|
135
|
+
ring: 2,
|
|
136
|
+
hairline: 0.5
|
|
137
|
+
},
|
|
138
|
+
button: {
|
|
139
|
+
height: {
|
|
140
|
+
xs: 30,
|
|
141
|
+
sm: 36,
|
|
142
|
+
md: 44,
|
|
143
|
+
lg: 52,
|
|
144
|
+
xl: 56
|
|
145
|
+
},
|
|
146
|
+
paddingX: {
|
|
147
|
+
xs: 10,
|
|
148
|
+
sm: 12,
|
|
149
|
+
md: 16,
|
|
150
|
+
lg: 20,
|
|
151
|
+
xl: 24
|
|
152
|
+
},
|
|
153
|
+
iconSize: {
|
|
154
|
+
xs: 14,
|
|
155
|
+
sm: 16,
|
|
156
|
+
md: 18,
|
|
157
|
+
lg: 20,
|
|
158
|
+
xl: 20
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
iconButton: {
|
|
162
|
+
size: {
|
|
163
|
+
sm: 32,
|
|
164
|
+
md: 40,
|
|
165
|
+
lg: 44
|
|
166
|
+
},
|
|
167
|
+
iconSize: {
|
|
168
|
+
sm: 16,
|
|
169
|
+
md: 20,
|
|
170
|
+
lg: 22
|
|
171
|
+
},
|
|
172
|
+
badge: {
|
|
173
|
+
size: 16,
|
|
174
|
+
minWidth: 16,
|
|
175
|
+
offset: -2,
|
|
176
|
+
paddingX: 4,
|
|
177
|
+
borderWidth: 1.5,
|
|
178
|
+
fontSize: 8,
|
|
179
|
+
lineHeight: 10
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
timeline: {
|
|
183
|
+
indicatorSize: 12,
|
|
184
|
+
connectorWidth: 1.25,
|
|
185
|
+
connectorMinHeight: 32
|
|
186
|
+
},
|
|
187
|
+
table: {
|
|
188
|
+
minColumnWidth: 120
|
|
189
|
+
},
|
|
190
|
+
metricCard: {
|
|
191
|
+
iconSize: 20
|
|
192
|
+
},
|
|
193
|
+
floatingActionButton: {
|
|
194
|
+
size: {
|
|
195
|
+
sm: 44,
|
|
196
|
+
md: 52,
|
|
197
|
+
lg: 60
|
|
198
|
+
},
|
|
199
|
+
iconSize: {
|
|
200
|
+
sm: 18,
|
|
201
|
+
md: 22,
|
|
202
|
+
lg: 24
|
|
203
|
+
},
|
|
204
|
+
paddingX: {
|
|
205
|
+
sm: 14,
|
|
206
|
+
md: 18,
|
|
207
|
+
lg: 22
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
switch: {
|
|
211
|
+
width: {
|
|
212
|
+
sm: 42,
|
|
213
|
+
md: 50,
|
|
214
|
+
lg: 58
|
|
215
|
+
},
|
|
216
|
+
height: {
|
|
217
|
+
sm: 24,
|
|
218
|
+
md: 30,
|
|
219
|
+
lg: 34
|
|
220
|
+
},
|
|
221
|
+
thumbSize: {
|
|
222
|
+
sm: 18,
|
|
223
|
+
md: 22,
|
|
224
|
+
lg: 26
|
|
225
|
+
},
|
|
226
|
+
iconSize: {
|
|
227
|
+
sm: 10,
|
|
228
|
+
md: 12,
|
|
229
|
+
lg: 14
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
slider: {
|
|
233
|
+
height: 36,
|
|
234
|
+
trackHeight: 8,
|
|
235
|
+
thumbSize: 22,
|
|
236
|
+
activeThumbSize: 28,
|
|
237
|
+
hitSlop: 12
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
const lightColors = {
|
|
241
|
+
background: "#F8FAFC",
|
|
242
|
+
backgroundMuted: "#F1F5F9",
|
|
243
|
+
backgroundSubtle: "#E2E8F0",
|
|
244
|
+
surface: "#FFFFFF",
|
|
245
|
+
surfaceRaised: "#FFFFFF",
|
|
246
|
+
surfaceMuted: "#F8FAFC",
|
|
247
|
+
text: "#0F172A",
|
|
248
|
+
textMuted: "#475569",
|
|
249
|
+
textSubtle: "#94A3B8",
|
|
250
|
+
textInverse: "#FFFFFF",
|
|
251
|
+
primary: "#4F46E5",
|
|
252
|
+
primarySoft: "#EEF2FF",
|
|
253
|
+
primaryStrong: "#3730A3",
|
|
254
|
+
onPrimary: "#FFFFFF",
|
|
255
|
+
secondary: "#334155",
|
|
256
|
+
secondarySoft: "#E2E8F0",
|
|
257
|
+
onSecondary: "#FFFFFF",
|
|
258
|
+
accent: "#F97316",
|
|
259
|
+
accentSoft: "#FFEDD5",
|
|
260
|
+
onAccent: "#FFFFFF",
|
|
261
|
+
success: "#10B981",
|
|
262
|
+
successSoft: "#D1FAE5",
|
|
263
|
+
onSuccess: "#FFFFFF",
|
|
264
|
+
warning: "#F59E0B",
|
|
265
|
+
warningSoft: "#FEF3C7",
|
|
266
|
+
onWarning: "#111827",
|
|
267
|
+
danger: "#EF4444",
|
|
268
|
+
dangerSoft: "#FEE2E2",
|
|
269
|
+
onDanger: "#FFFFFF",
|
|
270
|
+
info: "#0EA5E9",
|
|
271
|
+
infoSoft: "#E0F2FE",
|
|
272
|
+
onInfo: "#FFFFFF",
|
|
273
|
+
border: "#CBD5E1",
|
|
274
|
+
borderMuted: "#E2E8F0",
|
|
275
|
+
divider: "#CBD5E1",
|
|
276
|
+
input: "#FFFFFF",
|
|
277
|
+
placeholder: "#94A3B8",
|
|
278
|
+
disabled: "#E2E8F0",
|
|
279
|
+
disabledText: "#94A3B8",
|
|
280
|
+
overlay: "rgba(15, 23, 42, 0.48)",
|
|
281
|
+
transparent: "transparent"
|
|
282
|
+
};
|
|
283
|
+
const darkColors = {
|
|
284
|
+
background: "#08111F",
|
|
285
|
+
backgroundMuted: "#0F1B2D",
|
|
286
|
+
backgroundSubtle: "#17243A",
|
|
287
|
+
surface: "#0F1B2D",
|
|
288
|
+
surfaceRaised: "#17243A",
|
|
289
|
+
surfaceMuted: "#111827",
|
|
290
|
+
text: "#F8FAFC",
|
|
291
|
+
textMuted: "#CBD5E1",
|
|
292
|
+
textSubtle: "#94A3B8",
|
|
293
|
+
textInverse: "#0F172A",
|
|
294
|
+
primary: "#818CF8",
|
|
295
|
+
primarySoft: "#312E81",
|
|
296
|
+
primaryStrong: "#A5B4FC",
|
|
297
|
+
onPrimary: "#111827",
|
|
298
|
+
secondary: "#CBD5E1",
|
|
299
|
+
secondarySoft: "#334155",
|
|
300
|
+
onSecondary: "#0F172A",
|
|
301
|
+
accent: "#FB923C",
|
|
302
|
+
accentSoft: "#431407",
|
|
303
|
+
onAccent: "#111827",
|
|
304
|
+
success: "#34D399",
|
|
305
|
+
successSoft: "#064E3B",
|
|
306
|
+
onSuccess: "#052E16",
|
|
307
|
+
warning: "#FBBF24",
|
|
308
|
+
warningSoft: "#451A03",
|
|
309
|
+
onWarning: "#111827",
|
|
310
|
+
danger: "#F87171",
|
|
311
|
+
dangerSoft: "#450A0A",
|
|
312
|
+
onDanger: "#111827",
|
|
313
|
+
info: "#38BDF8",
|
|
314
|
+
infoSoft: "#0C4A6E",
|
|
315
|
+
onInfo: "#082F49",
|
|
316
|
+
border: "#334155",
|
|
317
|
+
borderMuted: "#1E293B",
|
|
318
|
+
divider: "#334155",
|
|
319
|
+
input: "#0F1B2D",
|
|
320
|
+
placeholder: "#64748B",
|
|
321
|
+
disabled: "#1E293B",
|
|
322
|
+
disabledText: "#64748B",
|
|
323
|
+
overlay: "rgba(0, 0, 0, 0.72)",
|
|
324
|
+
transparent: "transparent"
|
|
325
|
+
};
|
|
326
|
+
export const lightTheme = {
|
|
327
|
+
mode: "light",
|
|
328
|
+
dark: false,
|
|
329
|
+
colors: lightColors,
|
|
330
|
+
fonts,
|
|
331
|
+
typography,
|
|
332
|
+
spacing,
|
|
333
|
+
radii,
|
|
334
|
+
shadows,
|
|
335
|
+
components
|
|
336
|
+
};
|
|
337
|
+
export const darkTheme = {
|
|
338
|
+
mode: "dark",
|
|
339
|
+
dark: true,
|
|
340
|
+
colors: darkColors,
|
|
341
|
+
fonts,
|
|
342
|
+
typography,
|
|
343
|
+
spacing,
|
|
344
|
+
radii,
|
|
345
|
+
shadows,
|
|
346
|
+
components
|
|
347
|
+
};
|
|
348
|
+
export const defaultThemes = {
|
|
349
|
+
light: lightTheme,
|
|
350
|
+
dark: darkTheme
|
|
351
|
+
};
|
|
352
|
+
//# sourceMappingURL=tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["fonts","regular","undefined","medium","semibold","bold","mono","spacing","none","xxs","xs","sm","md","lg","xl","xxl","xxxl","radii","full","typography","display","fontSize","lineHeight","fontWeight","h1","h2","h3","title","subtitle","body","bodySmall","label","labelSmall","caption","shadows","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","components","borderWidth","default","strong","focus","ring","hairline","button","paddingX","iconSize","iconButton","size","badge","minWidth","offset","timeline","indicatorSize","connectorWidth","connectorMinHeight","table","minColumnWidth","metricCard","floatingActionButton","switch","thumbSize","slider","trackHeight","activeThumbSize","hitSlop","lightColors","background","backgroundMuted","backgroundSubtle","surface","surfaceRaised","surfaceMuted","text","textMuted","textSubtle","textInverse","primary","primarySoft","primaryStrong","onPrimary","secondary","secondarySoft","onSecondary","accent","accentSoft","onAccent","success","successSoft","onSuccess","warning","warningSoft","onWarning","danger","dangerSoft","onDanger","info","infoSoft","onInfo","border","borderMuted","divider","input","placeholder","disabled","disabledText","overlay","transparent","darkColors","lightTheme","mode","dark","colors","darkTheme","defaultThemes","light"],"sourceRoot":"../../../src","sources":["theme/tokens.ts"],"mappings":";;AAWA,OAAO,MAAMA,KAAiB,GAAG;EAC/BC,OAAO,EAAEC,SAAS;EAClBC,MAAM,EAAED,SAAS;EACjBE,QAAQ,EAAEF,SAAS;EACnBG,IAAI,EAAEH,SAAS;EACfI,IAAI,EAAEJ;AACR,CAAC;AAED,OAAO,MAAMK,OAAqB,GAAG;EACnCC,IAAI,EAAE,CAAC;EACPC,GAAG,EAAE,CAAC;EACNC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,GAAG,EAAE,EAAE;EACPC,IAAI,EAAE;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ACpBC,OAAO,EAAE,SAAS;EAClBC,WAAW,EAAE,SAAS;EACtBC,SAAS,EAAE,SAAS;EACpBC,MAAM,EAAE,SAAS;EACjBC,UAAU,EAAE,SAAS;EACrBC,QAAQ,EAAE,SAAS;EACnBC,IAAI,EAAE,SAAS;EACfC,QAAQ,EAAE,SAAS;EACnBC,MAAM,EAAE,SAAS;EACjBC,MAAM,EAAE,SAAS;EACjBC,WAAW,EAAE,SAAS;EACtBC,OAAO,EAAE,SAAS;EAClBC,KAAK,EAAE,SAAS;EAChBC,WAAW,EAAE,SAAS;EACtBC,QAAQ,EAAE,SAAS;EACnBC,YAAY,EAAE,SAAS;EACvBC,OAAO,EAAE,qBAAqB;EAC9BC,WAAW,EAAE;AACf,CAAC;AAED,OAAO,MAAME,UAAiB,GAAG;EAC/BC,IAAI,EAAE,OAAO;EACbC,IAAI,EAAE,KAAK;EACXC,MAAM,EAAE9C,WAAW;EACnBvE,KAAK;EACLmB,UAAU;EACVZ,OAAO;EACPU,KAAK;EACLiB,OAAO;EACPQ;AACF,CAAC;AAED,OAAO,MAAM4E,SAAgB,GAAG;EAC9BH,IAAI,EAAE,MAAM;EACZC,IAAI,EAAE,IAAI;EACVC,MAAM,EAAEJ,UAAU;EAClBjH,KAAK;EACLmB,UAAU;EACVZ,OAAO;EACPU,KAAK;EACLiB,OAAO;EACPQ;AACF,CAAC;AAED,OAAO,MAAM6E,aAAa,GAAG;EAC3BC,KAAK,EAAEN,UAAU;EACjBE,IAAI,EAAEE;AACR,CAAU","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["theme/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useContext } from "react";
|
|
4
|
+
import { ThemeContext } from "./ThemeProvider.js";
|
|
5
|
+
export function useTheme() {
|
|
6
|
+
const value = useContext(ThemeContext);
|
|
7
|
+
if (!value) {
|
|
8
|
+
throw new Error("useTheme must be used inside <ThemeProvider>.");
|
|
9
|
+
}
|
|
10
|
+
return value;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=useTheme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useContext","ThemeContext","useTheme","value","Error"],"sourceRoot":"../../../src","sources":["theme/useTheme.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,OAAO;AAElC,SAASC,YAAY,QAAQ,oBAAiB;AAE9C,OAAO,SAASC,QAAQA,CAAA,EAAG;EACzB,MAAMC,KAAK,GAAGH,UAAU,CAACC,YAAY,CAAC;EAEtC,IAAI,CAACE,KAAK,EAAE;IACV,MAAM,IAAIC,KAAK,CAAC,+CAA+C,CAAC;EAClE;EAEA,OAAOD,KAAK;AACd","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
import { StyleSheet } from "react-native";
|
|
5
|
+
import { useTheme } from "./useTheme.js";
|
|
6
|
+
export function useThemeStyles(factory) {
|
|
7
|
+
const {
|
|
8
|
+
theme
|
|
9
|
+
} = useTheme();
|
|
10
|
+
return useMemo(() => StyleSheet.create(factory(theme)), [factory, theme]);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=useThemeStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useMemo","StyleSheet","useTheme","useThemeStyles","factory","theme","create"],"sourceRoot":"../../../src","sources":["theme/useThemeStyles.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAC/B,SAASC,UAAU,QAAQ,cAAc;AAEzC,SAASC,QAAQ,QAAQ,eAAY;AAGrC,OAAO,SAASC,cAAcA,CAC5BC,OAA6B,EAC1B;EACH,MAAM;IAAEC;EAAM,CAAC,GAAGH,QAAQ,CAAC,CAAC;EAE5B,OAAOF,OAAO,CAAC,MAAMC,UAAU,CAACK,MAAM,CAACF,OAAO,CAACC,KAAK,CAAC,CAAC,EAAE,CAACD,OAAO,EAAEC,KAAK,CAAC,CAAC;AAC3E","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export function withAlpha(color, alpha) {
|
|
4
|
+
const safeAlpha = Math.max(0, Math.min(1, alpha));
|
|
5
|
+
if (color.startsWith("rgba(")) {
|
|
6
|
+
return color.replace(/rgba\((.*),\s*[\d.]+\)/, `rgba($1, ${safeAlpha})`);
|
|
7
|
+
}
|
|
8
|
+
if (color.startsWith("rgb(")) {
|
|
9
|
+
return color.replace("rgb(", "rgba(").replace(")", `, ${safeAlpha})`);
|
|
10
|
+
}
|
|
11
|
+
const hex = color.replace("#", "");
|
|
12
|
+
if (hex.length !== 6) return color;
|
|
13
|
+
const red = parseInt(hex.slice(0, 2), 16);
|
|
14
|
+
const green = parseInt(hex.slice(2, 4), 16);
|
|
15
|
+
const blue = parseInt(hex.slice(4, 6), 16);
|
|
16
|
+
return `rgba(${red}, ${green}, ${blue}, ${safeAlpha})`;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=color.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["withAlpha","color","alpha","safeAlpha","Math","max","min","startsWith","replace","hex","length","red","parseInt","slice","green","blue"],"sourceRoot":"../../../src","sources":["utils/color.ts"],"mappings":";;AAAA,OAAO,SAASA,SAASA,CAACC,KAAa,EAAEC,KAAa,EAAU;EAC9D,MAAMC,SAAS,GAAGC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,GAAG,CAAC,CAAC,EAAEJ,KAAK,CAAC,CAAC;EAEjD,IAAID,KAAK,CAACM,UAAU,CAAC,OAAO,CAAC,EAAE;IAC7B,OAAON,KAAK,CAACO,OAAO,CAAC,wBAAwB,EAAE,YAAYL,SAAS,GAAG,CAAC;EAC1E;EAEA,IAAIF,KAAK,CAACM,UAAU,CAAC,MAAM,CAAC,EAAE;IAC5B,OAAON,KAAK,CAACO,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,CAACA,OAAO,CAAC,GAAG,EAAE,KAAKL,SAAS,GAAG,CAAC;EACvE;EAEA,MAAMM,GAAG,GAAGR,KAAK,CAACO,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;EAElC,IAAIC,GAAG,CAACC,MAAM,KAAK,CAAC,EAAE,OAAOT,KAAK;EAElC,MAAMU,GAAG,GAAGC,QAAQ,CAACH,GAAG,CAACI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;EACzC,MAAMC,KAAK,GAAGF,QAAQ,CAACH,GAAG,CAACI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;EAC3C,MAAME,IAAI,GAAGH,QAAQ,CAACH,GAAG,CAACI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;EAE1C,OAAO,QAAQF,GAAG,KAAKG,KAAK,KAAKC,IAAI,KAAKZ,SAAS,GAAG;AACxD","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["withAlpha"],"sourceRoot":"../../../src","sources":["utils/index.ts"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,YAAS","ignoreList":[]}
|
|
@@ -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";
|
|
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,SAAS,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;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,4BAA4B;IAC3C,OAAO,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,6BAA6B,CAAC,CAAC;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|
|
@@ -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";
|
|
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,SAAS,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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";
|
|
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
|
+
{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AAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACpC,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,gBAAgB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACzC;AA+BD,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,KAAK,EACL,WAAW,EACX,QAAQ,EACR,IAAgB,EAChB,IAAI,EACJ,SAAS,EACT,WAAuB,EACvB,UAAqB,EACrB,SAAS,EACT,QAAQ,EACR,OAAO,EACP,cAAsB,EACtB,eAAuB,EACvB,cAAsB,EACtB,sBAA6B,EAC7B,QAAe,EACf,iBAAuB,EACvB,UAAU,EACV,YAAY,EACZ,KAAK,EACL,YAAY,EACZ,UAAU,EACV,gBAAgB,GACjB,EAAE,gBAAgB,4BA0NlB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type ViewProps } from "react-native";
|
|
3
|
+
import { useTheme } from "../theme";
|
|
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,UAAU,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"}
|