@rnative/ui 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -3
- package/dist/components/accordion/Accordion.d.ts +31 -0
- package/dist/components/accordion/Accordion.d.ts.map +1 -0
- package/dist/components/accordion/Accordion.js +121 -0
- package/dist/components/accordion/Accordion.js.map +1 -0
- package/dist/components/accordion/Accordion.styles.d.ts +8 -0
- package/dist/components/accordion/Accordion.styles.d.ts.map +1 -0
- package/dist/components/accordion/Accordion.styles.js +48 -0
- package/dist/components/accordion/Accordion.styles.js.map +1 -0
- package/dist/components/accordion/Accordion.types.d.ts +45 -0
- package/dist/components/accordion/Accordion.types.d.ts.map +1 -0
- package/dist/components/accordion/Accordion.types.js +9 -0
- package/dist/components/accordion/Accordion.types.js.map +1 -0
- package/dist/components/accordion/index.d.ts +6 -0
- package/dist/components/accordion/index.d.ts.map +1 -0
- package/dist/components/accordion/index.js +12 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/alert/Alert.d.ts +16 -0
- package/dist/components/alert/Alert.d.ts.map +1 -0
- package/dist/components/alert/Alert.js +28 -0
- package/dist/components/alert/Alert.js.map +1 -0
- package/dist/components/alert/Alert.styles.d.ts +8 -0
- package/dist/components/alert/Alert.styles.d.ts.map +1 -0
- package/dist/components/alert/Alert.styles.js +36 -0
- package/dist/components/alert/Alert.styles.js.map +1 -0
- package/dist/components/alert/Alert.types.d.ts +22 -0
- package/dist/components/alert/Alert.types.d.ts.map +1 -0
- package/dist/components/alert/Alert.types.js +9 -0
- package/dist/components/alert/Alert.types.js.map +1 -0
- package/dist/components/alert/Alert.variants.d.ts +19 -0
- package/dist/components/alert/Alert.variants.d.ts.map +1 -0
- package/dist/components/alert/Alert.variants.js +51 -0
- package/dist/components/alert/Alert.variants.js.map +1 -0
- package/dist/components/alert/index.d.ts +6 -0
- package/dist/components/alert/index.d.ts.map +1 -0
- package/dist/components/alert/index.js +9 -0
- package/dist/components/alert/index.js.map +1 -0
- package/dist/components/avatar/Avatar.d.ts +13 -0
- package/dist/components/avatar/Avatar.d.ts.map +1 -0
- package/dist/components/avatar/Avatar.js +31 -0
- package/dist/components/avatar/Avatar.js.map +1 -0
- package/dist/components/avatar/Avatar.styles.d.ts +8 -0
- package/dist/components/avatar/Avatar.styles.d.ts.map +1 -0
- package/dist/components/avatar/Avatar.styles.js +22 -0
- package/dist/components/avatar/Avatar.styles.js.map +1 -0
- package/dist/components/avatar/Avatar.types.d.ts +21 -0
- package/dist/components/avatar/Avatar.types.d.ts.map +1 -0
- package/dist/components/avatar/Avatar.types.js +9 -0
- package/dist/components/avatar/Avatar.types.js.map +1 -0
- package/dist/components/avatar/Avatar.variants.d.ts +23 -0
- package/dist/components/avatar/Avatar.variants.d.ts.map +1 -0
- package/dist/components/avatar/Avatar.variants.js +48 -0
- package/dist/components/avatar/Avatar.variants.js.map +1 -0
- package/dist/components/avatar/index.d.ts +6 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/avatar/index.js +9 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/badge/Badge.d.ts +12 -0
- package/dist/components/badge/Badge.d.ts.map +1 -0
- package/dist/components/badge/Badge.js +25 -0
- package/dist/components/badge/Badge.js.map +1 -0
- package/dist/components/badge/Badge.styles.d.ts +8 -0
- package/dist/components/badge/Badge.styles.d.ts.map +1 -0
- package/dist/components/badge/Badge.styles.js +32 -0
- package/dist/components/badge/Badge.styles.js.map +1 -0
- package/dist/components/badge/Badge.types.d.ts +16 -0
- package/dist/components/badge/Badge.types.d.ts.map +1 -0
- package/dist/components/badge/Badge.types.js +8 -0
- package/dist/components/badge/Badge.types.js.map +1 -0
- package/dist/components/badge/Badge.variants.d.ts +23 -0
- package/dist/components/badge/Badge.variants.d.ts.map +1 -0
- package/dist/components/badge/Badge.variants.js +48 -0
- package/dist/components/badge/Badge.variants.js.map +1 -0
- package/dist/components/badge/index.d.ts +6 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/badge/index.js +9 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/button/Button.d.ts +16 -0
- package/dist/components/button/Button.d.ts.map +1 -0
- package/dist/components/button/Button.js +61 -0
- package/dist/components/button/Button.js.map +1 -0
- package/dist/components/button/Button.styles.d.ts +8 -0
- package/dist/components/button/Button.styles.d.ts.map +1 -0
- package/dist/components/button/Button.styles.js +18 -0
- package/dist/components/button/Button.styles.js.map +1 -0
- package/dist/components/button/Button.types.d.ts +23 -0
- package/dist/components/button/Button.types.d.ts.map +1 -0
- package/dist/components/button/Button.types.js +6 -0
- package/dist/components/button/Button.types.js.map +1 -0
- package/dist/components/button/Button.variants.d.ts +11 -0
- package/dist/components/button/Button.variants.d.ts.map +1 -0
- package/dist/components/button/Button.variants.js +65 -0
- package/dist/components/button/Button.variants.js.map +1 -0
- package/dist/components/button/index.d.ts +6 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +9 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/card/Card.d.ts +36 -0
- package/dist/components/card/Card.d.ts.map +1 -0
- package/dist/components/card/Card.js +53 -0
- package/dist/components/card/Card.js.map +1 -0
- package/dist/components/card/Card.styles.d.ts +8 -0
- package/dist/components/card/Card.styles.d.ts.map +1 -0
- package/dist/components/card/Card.styles.js +30 -0
- package/dist/components/card/Card.styles.js.map +1 -0
- package/dist/components/card/Card.types.d.ts +22 -0
- package/dist/components/card/Card.types.d.ts.map +1 -0
- package/dist/components/card/Card.types.js +9 -0
- package/dist/components/card/Card.types.js.map +1 -0
- package/dist/components/card/Card.variants.d.ts +14 -0
- package/dist/components/card/Card.variants.d.ts.map +1 -0
- package/dist/components/card/Card.variants.js +32 -0
- package/dist/components/card/Card.variants.js.map +1 -0
- package/dist/components/card/index.d.ts +6 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/card/index.js +14 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/checkbox/CheckBox.d.ts +14 -0
- package/dist/components/checkbox/CheckBox.d.ts.map +1 -0
- package/dist/components/checkbox/CheckBox.js +40 -0
- package/dist/components/checkbox/CheckBox.js.map +1 -0
- package/dist/components/checkbox/CheckBox.styles.d.ts +8 -0
- package/dist/components/checkbox/CheckBox.styles.d.ts.map +1 -0
- package/dist/components/checkbox/CheckBox.styles.js +32 -0
- package/dist/components/checkbox/CheckBox.styles.js.map +1 -0
- package/dist/components/checkbox/CheckBox.types.d.ts +24 -0
- package/dist/components/checkbox/CheckBox.types.d.ts.map +1 -0
- package/dist/components/checkbox/CheckBox.types.js +9 -0
- package/dist/components/checkbox/CheckBox.types.js.map +1 -0
- package/dist/components/checkbox/CheckBox.variants.d.ts +14 -0
- package/dist/components/checkbox/CheckBox.variants.d.ts.map +1 -0
- package/dist/components/checkbox/CheckBox.variants.js +19 -0
- package/dist/components/checkbox/CheckBox.variants.js.map +1 -0
- package/dist/components/checkbox/index.d.ts +6 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/index.js +9 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/combobox/ComboBox.d.ts +16 -0
- package/dist/components/combobox/ComboBox.d.ts.map +1 -0
- package/dist/components/combobox/ComboBox.js +79 -0
- package/dist/components/combobox/ComboBox.js.map +1 -0
- package/dist/components/combobox/ComboBox.styles.d.ts +8 -0
- package/dist/components/combobox/ComboBox.styles.d.ts.map +1 -0
- package/dist/components/combobox/ComboBox.styles.js +57 -0
- package/dist/components/combobox/ComboBox.styles.js.map +1 -0
- package/dist/components/combobox/ComboBox.types.d.ts +46 -0
- package/dist/components/combobox/ComboBox.types.d.ts.map +1 -0
- package/dist/components/combobox/ComboBox.types.js +9 -0
- package/dist/components/combobox/ComboBox.types.js.map +1 -0
- package/dist/components/combobox/ComboBox.variants.d.ts +22 -0
- package/dist/components/combobox/ComboBox.variants.d.ts.map +1 -0
- package/dist/components/combobox/ComboBox.variants.js +68 -0
- package/dist/components/combobox/ComboBox.variants.js.map +1 -0
- package/dist/components/combobox/index.d.ts +6 -0
- package/dist/components/combobox/index.d.ts.map +1 -0
- package/dist/components/combobox/index.js +9 -0
- package/dist/components/combobox/index.js.map +1 -0
- package/dist/components/dialog/Dialog.d.ts +36 -0
- package/dist/components/dialog/Dialog.d.ts.map +1 -0
- package/dist/components/dialog/Dialog.js +84 -0
- package/dist/components/dialog/Dialog.js.map +1 -0
- package/dist/components/dialog/Dialog.styles.d.ts +8 -0
- package/dist/components/dialog/Dialog.styles.d.ts.map +1 -0
- package/dist/components/dialog/Dialog.styles.js +52 -0
- package/dist/components/dialog/Dialog.styles.js.map +1 -0
- package/dist/components/dialog/Dialog.types.d.ts +48 -0
- package/dist/components/dialog/Dialog.types.d.ts.map +1 -0
- package/dist/components/dialog/Dialog.types.js +10 -0
- package/dist/components/dialog/Dialog.types.js.map +1 -0
- package/dist/components/dialog/Dialog.variants.d.ts +13 -0
- package/dist/components/dialog/Dialog.variants.d.ts.map +1 -0
- package/dist/components/dialog/Dialog.variants.js +19 -0
- package/dist/components/dialog/Dialog.variants.js.map +1 -0
- package/dist/components/dialog/index.d.ts +6 -0
- package/dist/components/dialog/index.d.ts.map +1 -0
- package/dist/components/dialog/index.js +14 -0
- package/dist/components/dialog/index.js.map +1 -0
- package/dist/components/fab/FAB.d.ts +14 -0
- package/dist/components/fab/FAB.d.ts.map +1 -0
- package/dist/components/fab/FAB.js +46 -0
- package/dist/components/fab/FAB.js.map +1 -0
- package/dist/components/fab/FAB.styles.d.ts +8 -0
- package/dist/components/fab/FAB.styles.d.ts.map +1 -0
- package/dist/components/fab/FAB.styles.js +51 -0
- package/dist/components/fab/FAB.styles.js.map +1 -0
- package/dist/components/fab/FAB.types.d.ts +23 -0
- package/dist/components/fab/FAB.types.d.ts.map +1 -0
- package/dist/components/fab/FAB.types.js +8 -0
- package/dist/components/fab/FAB.types.js.map +1 -0
- package/dist/components/fab/FAB.variants.d.ts +48 -0
- package/dist/components/fab/FAB.variants.d.ts.map +1 -0
- package/dist/components/fab/FAB.variants.js +43 -0
- package/dist/components/fab/FAB.variants.js.map +1 -0
- package/dist/components/fab/index.d.ts +6 -0
- package/dist/components/fab/index.d.ts.map +1 -0
- package/dist/components/fab/index.js +9 -0
- package/dist/components/fab/index.js.map +1 -0
- package/dist/components/index.d.ts +30 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +46 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/input/Input.d.ts +17 -0
- package/dist/components/input/Input.d.ts.map +1 -0
- package/dist/components/input/Input.js +59 -0
- package/dist/components/input/Input.js.map +1 -0
- package/dist/components/input/Input.styles.d.ts +8 -0
- package/dist/components/input/Input.styles.d.ts.map +1 -0
- package/dist/components/input/Input.styles.js +25 -0
- package/dist/components/input/Input.styles.js.map +1 -0
- package/dist/components/input/Input.types.d.ts +25 -0
- package/dist/components/input/Input.types.d.ts.map +1 -0
- package/dist/components/input/Input.types.js +9 -0
- package/dist/components/input/Input.types.js.map +1 -0
- package/dist/components/input/Input.variants.d.ts +23 -0
- package/dist/components/input/Input.variants.d.ts.map +1 -0
- package/dist/components/input/Input.variants.js +61 -0
- package/dist/components/input/Input.variants.js.map +1 -0
- package/dist/components/input/index.d.ts +6 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.js +9 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/separator/Separator.d.ts +17 -0
- package/dist/components/separator/Separator.d.ts.map +1 -0
- package/dist/components/separator/Separator.js +46 -0
- package/dist/components/separator/Separator.js.map +1 -0
- package/dist/components/separator/Separator.styles.d.ts +8 -0
- package/dist/components/separator/Separator.styles.d.ts.map +1 -0
- package/dist/components/separator/Separator.styles.js +25 -0
- package/dist/components/separator/Separator.styles.js.map +1 -0
- package/dist/components/separator/Separator.types.d.ts +25 -0
- package/dist/components/separator/Separator.types.d.ts.map +1 -0
- package/dist/components/separator/Separator.types.js +8 -0
- package/dist/components/separator/Separator.types.js.map +1 -0
- package/dist/components/separator/index.d.ts +6 -0
- package/dist/components/separator/index.d.ts.map +1 -0
- package/dist/components/separator/index.js +9 -0
- package/dist/components/separator/index.js.map +1 -0
- package/dist/components/text/Text.d.ts +18 -0
- package/dist/components/text/Text.d.ts.map +1 -0
- package/dist/components/text/Text.js +45 -0
- package/dist/components/text/Text.js.map +1 -0
- package/dist/components/text/Text.types.d.ts +14 -0
- package/dist/components/text/Text.types.d.ts.map +1 -0
- package/dist/components/text/Text.types.js +10 -0
- package/dist/components/text/Text.types.js.map +1 -0
- package/dist/components/text/Text.variants.d.ts +23 -0
- package/dist/components/text/Text.variants.d.ts.map +1 -0
- package/dist/components/text/Text.variants.js +32 -0
- package/dist/components/text/Text.variants.js.map +1 -0
- package/dist/components/text/index.d.ts +6 -0
- package/dist/components/text/index.d.ts.map +1 -0
- package/dist/components/text/index.js +9 -0
- package/dist/components/text/index.js.map +1 -0
- package/dist/design-tokens/animation.d.ts +22 -0
- package/dist/design-tokens/animation.d.ts.map +1 -0
- package/dist/design-tokens/animation.js +23 -0
- package/dist/design-tokens/animation.js.map +1 -0
- package/dist/design-tokens/border-radius.d.ts +15 -0
- package/dist/design-tokens/border-radius.d.ts.map +1 -0
- package/dist/design-tokens/border-radius.js +17 -0
- package/dist/design-tokens/border-radius.js.map +1 -0
- package/dist/design-tokens/colors.d.ts +179 -0
- package/dist/design-tokens/colors.d.ts.map +1 -0
- package/dist/design-tokens/colors.js +109 -0
- package/dist/design-tokens/colors.js.map +1 -0
- package/dist/design-tokens/index.d.ts +16 -0
- package/dist/design-tokens/index.d.ts.map +1 -0
- package/dist/design-tokens/index.js +32 -0
- package/dist/design-tokens/index.js.map +1 -0
- package/dist/design-tokens/shadows.d.ts +103 -0
- package/dist/design-tokens/shadows.d.ts.map +1 -0
- package/dist/design-tokens/shadows.js +75 -0
- package/dist/design-tokens/shadows.js.map +1 -0
- package/dist/design-tokens/spacing.d.ts +30 -0
- package/dist/design-tokens/spacing.d.ts.map +1 -0
- package/dist/design-tokens/spacing.js +32 -0
- package/dist/design-tokens/spacing.js.map +1 -0
- package/dist/design-tokens/typography.d.ts +40 -0
- package/dist/design-tokens/typography.d.ts.map +1 -0
- package/dist/design-tokens/typography.js +40 -0
- package/dist/design-tokens/typography.js.map +1 -0
- package/dist/primitives/Box.d.ts +38 -0
- package/dist/primitives/Box.d.ts.map +1 -0
- package/dist/primitives/Box.js +70 -0
- package/dist/primitives/Box.js.map +1 -0
- package/dist/primitives/Pressable.d.ts +30 -0
- package/dist/primitives/Pressable.d.ts.map +1 -0
- package/dist/primitives/Pressable.js +48 -0
- package/dist/primitives/Pressable.js.map +1 -0
- package/dist/primitives/Text.d.ts +23 -0
- package/dist/primitives/Text.d.ts.map +1 -0
- package/dist/primitives/Text.js +42 -0
- package/dist/primitives/Text.js.map +1 -0
- package/dist/primitives/index.d.ts +14 -0
- package/dist/primitives/index.d.ts.map +1 -0
- package/dist/primitives/index.js +16 -0
- package/dist/primitives/index.js.map +1 -0
- package/dist/theme/ThemeContext.d.ts +10 -0
- package/dist/theme/ThemeContext.d.ts.map +1 -0
- package/dist/theme/ThemeContext.js +19 -0
- package/dist/theme/ThemeContext.js.map +1 -0
- package/dist/theme/ThemeProvider.d.ts +23 -0
- package/dist/theme/ThemeProvider.d.ts.map +1 -0
- package/dist/theme/ThemeProvider.js +87 -0
- package/dist/theme/ThemeProvider.js.map +1 -0
- package/dist/theme/index.d.ts +9 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +14 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/theme/themes.d.ts +20 -0
- package/dist/theme/themes.d.ts.map +1 -0
- package/dist/theme/themes.js +65 -0
- package/dist/theme/themes.js.map +1 -0
- package/dist/theme/types.d.ts +92 -0
- package/dist/theme/types.d.ts.map +1 -0
- package/dist/theme/types.js +9 -0
- package/dist/theme/types.js.map +1 -0
- package/dist/theme/useTheme.d.ts +7 -0
- package/dist/theme/useTheme.d.ts.map +1 -0
- package/dist/theme/useTheme.js +9 -0
- package/dist/theme/useTheme.js.map +1 -0
- package/dist/utils/cn.d.ts +16 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/cn.js +33 -0
- package/dist/utils/cn.js.map +1 -0
- package/dist/utils/createVariants.d.ts +32 -0
- package/dist/utils/createVariants.d.ts.map +1 -0
- package/dist/utils/createVariants.js +26 -0
- package/dist/utils/createVariants.js.map +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +13 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/mergeProps.d.ts +10 -0
- package/dist/utils/mergeProps.d.ts.map +1 -0
- package/dist/utils/mergeProps.js +31 -0
- package/dist/utils/mergeProps.js.map +1 -0
- package/package.json +46 -3
- package/src/components/accordion/Accordion.styles.ts +46 -0
- package/src/components/accordion/Accordion.tsx +247 -0
- package/src/components/accordion/Accordion.types.ts +52 -0
- package/src/components/accordion/index.ts +17 -0
- package/src/components/alert/Alert.styles.ts +34 -0
- package/src/components/alert/Alert.tsx +87 -0
- package/src/components/alert/Alert.types.ts +24 -0
- package/src/components/alert/Alert.variants.ts +57 -0
- package/src/components/alert/index.ts +6 -0
- package/src/components/avatar/Avatar.styles.ts +20 -0
- package/src/components/avatar/Avatar.tsx +74 -0
- package/src/components/avatar/Avatar.types.ts +24 -0
- package/src/components/avatar/Avatar.variants.ts +55 -0
- package/src/components/avatar/index.ts +6 -0
- package/src/components/badge/Badge.styles.ts +30 -0
- package/src/components/badge/Badge.tsx +47 -0
- package/src/components/badge/Badge.types.ts +24 -0
- package/src/components/badge/Badge.variants.ts +62 -0
- package/src/components/badge/index.ts +6 -0
- package/src/components/button/Button.styles.ts +16 -0
- package/src/components/button/Button.tsx +108 -0
- package/src/components/button/Button.types.ts +30 -0
- package/src/components/button/Button.variants.ts +68 -0
- package/src/components/button/index.ts +6 -0
- package/src/components/card/Card.styles.ts +28 -0
- package/src/components/card/Card.tsx +112 -0
- package/src/components/card/Card.types.ts +26 -0
- package/src/components/card/Card.variants.ts +38 -0
- package/src/components/card/index.ts +18 -0
- package/src/components/checkbox/CheckBox.styles.ts +30 -0
- package/src/components/checkbox/CheckBox.tsx +98 -0
- package/src/components/checkbox/CheckBox.types.ts +26 -0
- package/src/components/checkbox/CheckBox.variants.ts +25 -0
- package/src/components/checkbox/index.ts +6 -0
- package/src/components/combobox/ComboBox.styles.ts +55 -0
- package/src/components/combobox/ComboBox.tsx +224 -0
- package/src/components/combobox/ComboBox.types.ts +51 -0
- package/src/components/combobox/ComboBox.variants.ts +82 -0
- package/src/components/combobox/index.ts +6 -0
- package/src/components/dialog/Dialog.styles.ts +50 -0
- package/src/components/dialog/Dialog.tsx +221 -0
- package/src/components/dialog/Dialog.types.ts +55 -0
- package/src/components/dialog/Dialog.variants.ts +24 -0
- package/src/components/dialog/index.ts +20 -0
- package/src/components/fab/FAB.styles.ts +49 -0
- package/src/components/fab/FAB.tsx +84 -0
- package/src/components/fab/FAB.types.ts +31 -0
- package/src/components/fab/FAB.variants.ts +55 -0
- package/src/components/fab/index.ts +6 -0
- package/src/components/index.ts +88 -0
- package/src/components/input/Input.styles.ts +23 -0
- package/src/components/input/Input.tsx +139 -0
- package/src/components/input/Input.types.ts +28 -0
- package/src/components/input/Input.variants.ts +71 -0
- package/src/components/input/index.ts +6 -0
- package/src/components/separator/Separator.styles.ts +23 -0
- package/src/components/separator/Separator.tsx +70 -0
- package/src/components/separator/Separator.types.ts +28 -0
- package/src/components/separator/index.ts +10 -0
- package/src/components/text/Text.tsx +75 -0
- package/src/components/text/Text.types.ts +27 -0
- package/src/components/text/Text.variants.ts +44 -0
- package/src/components/text/index.ts +6 -0
- package/src/design-tokens/animation.ts +23 -0
- package/src/design-tokens/border-radius.ts +16 -0
- package/src/design-tokens/colors.ts +120 -0
- package/src/design-tokens/index.ts +21 -0
- package/src/design-tokens/shadows.ts +78 -0
- package/src/design-tokens/spacing.ts +31 -0
- package/src/design-tokens/typography.ts +45 -0
- package/src/primitives/Box.tsx +121 -0
- package/src/primitives/Pressable.tsx +106 -0
- package/src/primitives/Text.tsx +84 -0
- package/src/primitives/index.ts +15 -0
- package/src/theme/ThemeContext.ts +20 -0
- package/src/theme/ThemeProvider.tsx +152 -0
- package/src/theme/index.ts +9 -0
- package/src/theme/themes.ts +71 -0
- package/src/theme/types.ts +89 -0
- package/src/theme/useTheme.ts +7 -0
- package/src/utils/cn.ts +37 -0
- package/src/utils/createVariants.ts +47 -0
- package/src/utils/index.ts +7 -0
- package/src/utils/mergeProps.ts +35 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ANAN-UI — Design Tokens: Animation
|
|
3
|
+
*/
|
|
4
|
+
export declare const animation: {
|
|
5
|
+
readonly duration: {
|
|
6
|
+
readonly instant: 0;
|
|
7
|
+
readonly fast: 150;
|
|
8
|
+
readonly normal: 300;
|
|
9
|
+
readonly slow: 500;
|
|
10
|
+
readonly slower: 750;
|
|
11
|
+
};
|
|
12
|
+
readonly easing: {
|
|
13
|
+
readonly linear: "linear";
|
|
14
|
+
readonly easeIn: "ease-in";
|
|
15
|
+
readonly easeOut: "ease-out";
|
|
16
|
+
readonly easeInOut: "ease-in-out";
|
|
17
|
+
readonly bounce: "ease-in-out";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export type AnimationDuration = keyof typeof animation.duration;
|
|
21
|
+
export type AnimationEasing = keyof typeof animation.easing;
|
|
22
|
+
//# sourceMappingURL=animation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../src/design-tokens/animation.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;CAeZ,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,SAAS,CAAC,QAAQ,CAAC;AAChE,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,SAAS,CAAC,MAAM,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* ANAN-UI — Design Tokens: Animation
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.animation = void 0;
|
|
7
|
+
exports.animation = {
|
|
8
|
+
duration: {
|
|
9
|
+
instant: 0,
|
|
10
|
+
fast: 150,
|
|
11
|
+
normal: 300,
|
|
12
|
+
slow: 500,
|
|
13
|
+
slower: 750,
|
|
14
|
+
},
|
|
15
|
+
easing: {
|
|
16
|
+
linear: 'linear',
|
|
17
|
+
easeIn: 'ease-in',
|
|
18
|
+
easeOut: 'ease-out',
|
|
19
|
+
easeInOut: 'ease-in-out',
|
|
20
|
+
bounce: 'ease-in-out',
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=animation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation.js","sourceRoot":"","sources":["../../src/design-tokens/animation.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEU,QAAA,SAAS,GAAG;IACvB,QAAQ,EAAE;QACR,OAAO,EAAE,CAAC;QACV,IAAI,EAAE,GAAG;QACT,MAAM,EAAE,GAAG;QACX,IAAI,EAAE,GAAG;QACT,MAAM,EAAE,GAAG;KACH;IACV,MAAM,EAAE;QACN,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,UAAU;QACnB,SAAS,EAAE,aAAa;QACxB,MAAM,EAAE,aAAa;KACb;CACF,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ANAN-UI — Design Tokens: Border Radius
|
|
3
|
+
*/
|
|
4
|
+
export declare const borderRadius: {
|
|
5
|
+
readonly none: 0;
|
|
6
|
+
readonly sm: 4;
|
|
7
|
+
readonly md: 6;
|
|
8
|
+
readonly lg: 8;
|
|
9
|
+
readonly xl: 12;
|
|
10
|
+
readonly '2xl': 16;
|
|
11
|
+
readonly '3xl': 24;
|
|
12
|
+
readonly full: 9999;
|
|
13
|
+
};
|
|
14
|
+
export type BorderRadius = keyof typeof borderRadius;
|
|
15
|
+
//# sourceMappingURL=border-radius.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"border-radius.d.ts","sourceRoot":"","sources":["../../src/design-tokens/border-radius.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,YAAY;;;;;;;;;CASf,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* ANAN-UI — Design Tokens: Border Radius
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.borderRadius = void 0;
|
|
7
|
+
exports.borderRadius = {
|
|
8
|
+
none: 0,
|
|
9
|
+
sm: 4,
|
|
10
|
+
md: 6,
|
|
11
|
+
lg: 8,
|
|
12
|
+
xl: 12,
|
|
13
|
+
'2xl': 16,
|
|
14
|
+
'3xl': 24,
|
|
15
|
+
full: 9999,
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=border-radius.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"border-radius.js","sourceRoot":"","sources":["../../src/design-tokens/border-radius.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEU,QAAA,YAAY,GAAG;IAC1B,IAAI,EAAE,CAAC;IACP,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,EAAE;IACN,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,IAAI;CACF,CAAC"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ANAN-UI — Design Tokens: Colors
|
|
3
|
+
*
|
|
4
|
+
* Raw color palette + semantic color roles.
|
|
5
|
+
* Themes map semantic roles to raw palette values.
|
|
6
|
+
*/
|
|
7
|
+
export declare const slate: {
|
|
8
|
+
readonly 50: "#f8fafc";
|
|
9
|
+
readonly 100: "#f1f5f9";
|
|
10
|
+
readonly 200: "#e2e8f0";
|
|
11
|
+
readonly 300: "#cbd5e1";
|
|
12
|
+
readonly 400: "#94a3b8";
|
|
13
|
+
readonly 500: "#64748b";
|
|
14
|
+
readonly 600: "#475569";
|
|
15
|
+
readonly 700: "#334155";
|
|
16
|
+
readonly 800: "#1e293b";
|
|
17
|
+
readonly 900: "#0f172a";
|
|
18
|
+
readonly 950: "#020617";
|
|
19
|
+
};
|
|
20
|
+
export declare const primary: {
|
|
21
|
+
readonly 50: "#eff6ff";
|
|
22
|
+
readonly 100: "#dbeafe";
|
|
23
|
+
readonly 200: "#bfdbfe";
|
|
24
|
+
readonly 300: "#93c5fd";
|
|
25
|
+
readonly 400: "#60a5fa";
|
|
26
|
+
readonly 500: "#3b82f6";
|
|
27
|
+
readonly 600: "#2563eb";
|
|
28
|
+
readonly 700: "#1d4ed8";
|
|
29
|
+
readonly 800: "#1e40af";
|
|
30
|
+
readonly 900: "#1e3a8a";
|
|
31
|
+
readonly 950: "#172554";
|
|
32
|
+
};
|
|
33
|
+
export declare const destructive: {
|
|
34
|
+
readonly 50: "#fef2f2";
|
|
35
|
+
readonly 100: "#fee2e2";
|
|
36
|
+
readonly 200: "#fecaca";
|
|
37
|
+
readonly 300: "#fca5a5";
|
|
38
|
+
readonly 400: "#f87171";
|
|
39
|
+
readonly 500: "#ef4444";
|
|
40
|
+
readonly 600: "#dc2626";
|
|
41
|
+
readonly 700: "#b91c1c";
|
|
42
|
+
readonly 800: "#991b1b";
|
|
43
|
+
readonly 900: "#7f1d1d";
|
|
44
|
+
readonly 950: "#450a0a";
|
|
45
|
+
};
|
|
46
|
+
export declare const secondary: {
|
|
47
|
+
readonly 50: "#f8fafc";
|
|
48
|
+
readonly 100: "#f1f5f9";
|
|
49
|
+
readonly 200: "#e2e8f0";
|
|
50
|
+
readonly 300: "#cbd5e1";
|
|
51
|
+
readonly 400: "#94a3b8";
|
|
52
|
+
readonly 500: "#64748b";
|
|
53
|
+
readonly 600: "#475569";
|
|
54
|
+
readonly 700: "#334155";
|
|
55
|
+
readonly 800: "#1e293b";
|
|
56
|
+
readonly 900: "#0f172a";
|
|
57
|
+
readonly 950: "#020617";
|
|
58
|
+
};
|
|
59
|
+
export declare const muted: {
|
|
60
|
+
readonly 50: "#f8fafc";
|
|
61
|
+
readonly 100: "#f1f5f9";
|
|
62
|
+
readonly 200: "#e2e8f0";
|
|
63
|
+
readonly 300: "#cbd5e1";
|
|
64
|
+
readonly 400: "#94a3b8";
|
|
65
|
+
readonly 500: "#64748b";
|
|
66
|
+
readonly 600: "#475569";
|
|
67
|
+
readonly 700: "#334155";
|
|
68
|
+
readonly 800: "#1e293b";
|
|
69
|
+
readonly 900: "#0f172a";
|
|
70
|
+
readonly 950: "#020617";
|
|
71
|
+
};
|
|
72
|
+
export declare const accent: {
|
|
73
|
+
readonly 50: "#f0fdf4";
|
|
74
|
+
readonly 100: "#dcfce7";
|
|
75
|
+
readonly 200: "#bbf7d0";
|
|
76
|
+
readonly 300: "#86efac";
|
|
77
|
+
readonly 400: "#4ade80";
|
|
78
|
+
readonly 500: "#22c55e";
|
|
79
|
+
readonly 600: "#16a34a";
|
|
80
|
+
readonly 700: "#15803d";
|
|
81
|
+
readonly 800: "#166534";
|
|
82
|
+
readonly 900: "#14532d";
|
|
83
|
+
readonly 950: "#052e16";
|
|
84
|
+
};
|
|
85
|
+
export declare const border: {
|
|
86
|
+
readonly light: "#e2e8f0";
|
|
87
|
+
readonly dark: "#334155";
|
|
88
|
+
};
|
|
89
|
+
export type Slate = (typeof slate)[keyof typeof slate];
|
|
90
|
+
export type Primary = (typeof primary)[keyof typeof primary];
|
|
91
|
+
export type Destructive = (typeof destructive)[keyof typeof destructive];
|
|
92
|
+
export type Secondary = (typeof secondary)[keyof typeof secondary];
|
|
93
|
+
export type Muted = (typeof muted)[keyof typeof muted];
|
|
94
|
+
export type Accent = (typeof accent)[keyof typeof accent];
|
|
95
|
+
export declare const colors: {
|
|
96
|
+
readonly slate: {
|
|
97
|
+
readonly 50: "#f8fafc";
|
|
98
|
+
readonly 100: "#f1f5f9";
|
|
99
|
+
readonly 200: "#e2e8f0";
|
|
100
|
+
readonly 300: "#cbd5e1";
|
|
101
|
+
readonly 400: "#94a3b8";
|
|
102
|
+
readonly 500: "#64748b";
|
|
103
|
+
readonly 600: "#475569";
|
|
104
|
+
readonly 700: "#334155";
|
|
105
|
+
readonly 800: "#1e293b";
|
|
106
|
+
readonly 900: "#0f172a";
|
|
107
|
+
readonly 950: "#020617";
|
|
108
|
+
};
|
|
109
|
+
readonly primary: {
|
|
110
|
+
readonly 50: "#eff6ff";
|
|
111
|
+
readonly 100: "#dbeafe";
|
|
112
|
+
readonly 200: "#bfdbfe";
|
|
113
|
+
readonly 300: "#93c5fd";
|
|
114
|
+
readonly 400: "#60a5fa";
|
|
115
|
+
readonly 500: "#3b82f6";
|
|
116
|
+
readonly 600: "#2563eb";
|
|
117
|
+
readonly 700: "#1d4ed8";
|
|
118
|
+
readonly 800: "#1e40af";
|
|
119
|
+
readonly 900: "#1e3a8a";
|
|
120
|
+
readonly 950: "#172554";
|
|
121
|
+
};
|
|
122
|
+
readonly destructive: {
|
|
123
|
+
readonly 50: "#fef2f2";
|
|
124
|
+
readonly 100: "#fee2e2";
|
|
125
|
+
readonly 200: "#fecaca";
|
|
126
|
+
readonly 300: "#fca5a5";
|
|
127
|
+
readonly 400: "#f87171";
|
|
128
|
+
readonly 500: "#ef4444";
|
|
129
|
+
readonly 600: "#dc2626";
|
|
130
|
+
readonly 700: "#b91c1c";
|
|
131
|
+
readonly 800: "#991b1b";
|
|
132
|
+
readonly 900: "#7f1d1d";
|
|
133
|
+
readonly 950: "#450a0a";
|
|
134
|
+
};
|
|
135
|
+
readonly secondary: {
|
|
136
|
+
readonly 50: "#f8fafc";
|
|
137
|
+
readonly 100: "#f1f5f9";
|
|
138
|
+
readonly 200: "#e2e8f0";
|
|
139
|
+
readonly 300: "#cbd5e1";
|
|
140
|
+
readonly 400: "#94a3b8";
|
|
141
|
+
readonly 500: "#64748b";
|
|
142
|
+
readonly 600: "#475569";
|
|
143
|
+
readonly 700: "#334155";
|
|
144
|
+
readonly 800: "#1e293b";
|
|
145
|
+
readonly 900: "#0f172a";
|
|
146
|
+
readonly 950: "#020617";
|
|
147
|
+
};
|
|
148
|
+
readonly muted: {
|
|
149
|
+
readonly 50: "#f8fafc";
|
|
150
|
+
readonly 100: "#f1f5f9";
|
|
151
|
+
readonly 200: "#e2e8f0";
|
|
152
|
+
readonly 300: "#cbd5e1";
|
|
153
|
+
readonly 400: "#94a3b8";
|
|
154
|
+
readonly 500: "#64748b";
|
|
155
|
+
readonly 600: "#475569";
|
|
156
|
+
readonly 700: "#334155";
|
|
157
|
+
readonly 800: "#1e293b";
|
|
158
|
+
readonly 900: "#0f172a";
|
|
159
|
+
readonly 950: "#020617";
|
|
160
|
+
};
|
|
161
|
+
readonly accent: {
|
|
162
|
+
readonly 50: "#f0fdf4";
|
|
163
|
+
readonly 100: "#dcfce7";
|
|
164
|
+
readonly 200: "#bbf7d0";
|
|
165
|
+
readonly 300: "#86efac";
|
|
166
|
+
readonly 400: "#4ade80";
|
|
167
|
+
readonly 500: "#22c55e";
|
|
168
|
+
readonly 600: "#16a34a";
|
|
169
|
+
readonly 700: "#15803d";
|
|
170
|
+
readonly 800: "#166534";
|
|
171
|
+
readonly 900: "#14532d";
|
|
172
|
+
readonly 950: "#052e16";
|
|
173
|
+
};
|
|
174
|
+
readonly border: {
|
|
175
|
+
readonly light: "#e2e8f0";
|
|
176
|
+
readonly dark: "#334155";
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/design-tokens/colors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,eAAO,MAAM,KAAK;;;;;;;;;;;;CAYR,CAAC;AAGX,eAAO,MAAM,OAAO;;;;;;;;;;;;CAYV,CAAC;AAGX,eAAO,MAAM,WAAW;;;;;;;;;;;;CAYd,CAAC;AAGX,eAAO,MAAM,SAAS;;;;;;;;;;;;CAYZ,CAAC;AAGX,eAAO,MAAM,KAAK;;;;;;;;;;;;CAYR,CAAC;AAGX,eAAO,MAAM,MAAM;;;;;;;;;;;;CAYT,CAAC;AAGX,eAAO,MAAM,MAAM;;;CAGT,CAAC;AAEX,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,OAAO,KAAK,CAAC,CAAC;AACvD,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC;AAC7D,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AACzE,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AACnE,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,OAAO,KAAK,CAAC,CAAC;AACvD,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC;AAG1D,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQT,CAAC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* ANAN-UI — Design Tokens: Colors
|
|
4
|
+
*
|
|
5
|
+
* Raw color palette + semantic color roles.
|
|
6
|
+
* Themes map semantic roles to raw palette values.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.colors = exports.border = exports.accent = exports.muted = exports.secondary = exports.destructive = exports.primary = exports.slate = void 0;
|
|
10
|
+
// Raw palette — Slate (neutral)
|
|
11
|
+
exports.slate = {
|
|
12
|
+
50: '#f8fafc',
|
|
13
|
+
100: '#f1f5f9',
|
|
14
|
+
200: '#e2e8f0',
|
|
15
|
+
300: '#cbd5e1',
|
|
16
|
+
400: '#94a3b8',
|
|
17
|
+
500: '#64748b',
|
|
18
|
+
600: '#475569',
|
|
19
|
+
700: '#334155',
|
|
20
|
+
800: '#1e293b',
|
|
21
|
+
900: '#0f172a',
|
|
22
|
+
950: '#020617',
|
|
23
|
+
};
|
|
24
|
+
// Raw palette — Primary (blue)
|
|
25
|
+
exports.primary = {
|
|
26
|
+
50: '#eff6ff',
|
|
27
|
+
100: '#dbeafe',
|
|
28
|
+
200: '#bfdbfe',
|
|
29
|
+
300: '#93c5fd',
|
|
30
|
+
400: '#60a5fa',
|
|
31
|
+
500: '#3b82f6',
|
|
32
|
+
600: '#2563eb',
|
|
33
|
+
700: '#1d4ed8',
|
|
34
|
+
800: '#1e40af',
|
|
35
|
+
900: '#1e3a8a',
|
|
36
|
+
950: '#172554',
|
|
37
|
+
};
|
|
38
|
+
// Raw palette — Destructive (red)
|
|
39
|
+
exports.destructive = {
|
|
40
|
+
50: '#fef2f2',
|
|
41
|
+
100: '#fee2e2',
|
|
42
|
+
200: '#fecaca',
|
|
43
|
+
300: '#fca5a5',
|
|
44
|
+
400: '#f87171',
|
|
45
|
+
500: '#ef4444',
|
|
46
|
+
600: '#dc2626',
|
|
47
|
+
700: '#b91c1c',
|
|
48
|
+
800: '#991b1b',
|
|
49
|
+
900: '#7f1d1d',
|
|
50
|
+
950: '#450a0a',
|
|
51
|
+
};
|
|
52
|
+
// Raw palette — Secondary (muted)
|
|
53
|
+
exports.secondary = {
|
|
54
|
+
50: '#f8fafc',
|
|
55
|
+
100: '#f1f5f9',
|
|
56
|
+
200: '#e2e8f0',
|
|
57
|
+
300: '#cbd5e1',
|
|
58
|
+
400: '#94a3b8',
|
|
59
|
+
500: '#64748b',
|
|
60
|
+
600: '#475569',
|
|
61
|
+
700: '#334155',
|
|
62
|
+
800: '#1e293b',
|
|
63
|
+
900: '#0f172a',
|
|
64
|
+
950: '#020617',
|
|
65
|
+
};
|
|
66
|
+
// Raw palette — Muted (background accents)
|
|
67
|
+
exports.muted = {
|
|
68
|
+
50: '#f8fafc',
|
|
69
|
+
100: '#f1f5f9',
|
|
70
|
+
200: '#e2e8f0',
|
|
71
|
+
300: '#cbd5e1',
|
|
72
|
+
400: '#94a3b8',
|
|
73
|
+
500: '#64748b',
|
|
74
|
+
600: '#475569',
|
|
75
|
+
700: '#334155',
|
|
76
|
+
800: '#1e293b',
|
|
77
|
+
900: '#0f172a',
|
|
78
|
+
950: '#020617',
|
|
79
|
+
};
|
|
80
|
+
// Raw palette — Accent (green)
|
|
81
|
+
exports.accent = {
|
|
82
|
+
50: '#f0fdf4',
|
|
83
|
+
100: '#dcfce7',
|
|
84
|
+
200: '#bbf7d0',
|
|
85
|
+
300: '#86efac',
|
|
86
|
+
400: '#4ade80',
|
|
87
|
+
500: '#22c55e',
|
|
88
|
+
600: '#16a34a',
|
|
89
|
+
700: '#15803d',
|
|
90
|
+
800: '#166534',
|
|
91
|
+
900: '#14532d',
|
|
92
|
+
950: '#052e16',
|
|
93
|
+
};
|
|
94
|
+
// Raw palette — Popover / border / input
|
|
95
|
+
exports.border = {
|
|
96
|
+
light: '#e2e8f0',
|
|
97
|
+
dark: '#334155',
|
|
98
|
+
};
|
|
99
|
+
// Grouped palette namespace — lets consumers do `colors.slate[900]`, etc.
|
|
100
|
+
exports.colors = {
|
|
101
|
+
slate: exports.slate,
|
|
102
|
+
primary: exports.primary,
|
|
103
|
+
destructive: exports.destructive,
|
|
104
|
+
secondary: exports.secondary,
|
|
105
|
+
muted: exports.muted,
|
|
106
|
+
accent: exports.accent,
|
|
107
|
+
border: exports.border,
|
|
108
|
+
};
|
|
109
|
+
//# sourceMappingURL=colors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.js","sourceRoot":"","sources":["../../src/design-tokens/colors.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,gCAAgC;AACnB,QAAA,KAAK,GAAG;IACnB,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;CACN,CAAC;AAEX,+BAA+B;AAClB,QAAA,OAAO,GAAG;IACrB,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;CACN,CAAC;AAEX,kCAAkC;AACrB,QAAA,WAAW,GAAG;IACzB,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;CACN,CAAC;AAEX,kCAAkC;AACrB,QAAA,SAAS,GAAG;IACvB,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;CACN,CAAC;AAEX,2CAA2C;AAC9B,QAAA,KAAK,GAAG;IACnB,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;CACN,CAAC;AAEX,+BAA+B;AAClB,QAAA,MAAM,GAAG;IACpB,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;CACN,CAAC;AAEX,yCAAyC;AAC5B,QAAA,MAAM,GAAG;IACpB,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,SAAS;CACP,CAAC;AASX,0EAA0E;AAC7D,QAAA,MAAM,GAAG;IACpB,KAAK,EAAL,aAAK;IACL,OAAO,EAAP,eAAO;IACP,WAAW,EAAX,mBAAW;IACX,SAAS,EAAT,iBAAS;IACT,KAAK,EAAL,aAAK;IACL,MAAM,EAAN,cAAM;IACN,MAAM,EAAN,cAAM;CACE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ANAN-UI — Design Tokens: Barrel Export
|
|
3
|
+
*/
|
|
4
|
+
export { slate, primary, destructive, secondary, muted, accent, border, colors } from './colors';
|
|
5
|
+
export type { Slate, Primary, Destructive, Secondary, Muted, Accent } from './colors';
|
|
6
|
+
export { fontFamily, fontSize, fontWeight, lineHeight, letterSpacing } from './typography';
|
|
7
|
+
export type { FontSize, FontWeight, LineHeight } from './typography';
|
|
8
|
+
export { spacing } from './spacing';
|
|
9
|
+
export type { Spacing } from './spacing';
|
|
10
|
+
export { borderRadius } from './border-radius';
|
|
11
|
+
export type { BorderRadius } from './border-radius';
|
|
12
|
+
export { shadow, elevation, resolveShadow } from './shadows';
|
|
13
|
+
export type { ShadowKey, Elevation, ElevationKey } from './shadows';
|
|
14
|
+
export { animation } from './animation';
|
|
15
|
+
export type { AnimationDuration, AnimationEasing } from './animation';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/design-tokens/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACjG,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEtF,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC3F,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAErE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC7D,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* ANAN-UI — Design Tokens: Barrel Export
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.animation = exports.resolveShadow = exports.elevation = exports.shadow = exports.borderRadius = exports.spacing = exports.letterSpacing = exports.lineHeight = exports.fontWeight = exports.fontSize = exports.fontFamily = exports.colors = exports.border = exports.accent = exports.muted = exports.secondary = exports.destructive = exports.primary = exports.slate = void 0;
|
|
7
|
+
var colors_1 = require("./colors");
|
|
8
|
+
Object.defineProperty(exports, "slate", { enumerable: true, get: function () { return colors_1.slate; } });
|
|
9
|
+
Object.defineProperty(exports, "primary", { enumerable: true, get: function () { return colors_1.primary; } });
|
|
10
|
+
Object.defineProperty(exports, "destructive", { enumerable: true, get: function () { return colors_1.destructive; } });
|
|
11
|
+
Object.defineProperty(exports, "secondary", { enumerable: true, get: function () { return colors_1.secondary; } });
|
|
12
|
+
Object.defineProperty(exports, "muted", { enumerable: true, get: function () { return colors_1.muted; } });
|
|
13
|
+
Object.defineProperty(exports, "accent", { enumerable: true, get: function () { return colors_1.accent; } });
|
|
14
|
+
Object.defineProperty(exports, "border", { enumerable: true, get: function () { return colors_1.border; } });
|
|
15
|
+
Object.defineProperty(exports, "colors", { enumerable: true, get: function () { return colors_1.colors; } });
|
|
16
|
+
var typography_1 = require("./typography");
|
|
17
|
+
Object.defineProperty(exports, "fontFamily", { enumerable: true, get: function () { return typography_1.fontFamily; } });
|
|
18
|
+
Object.defineProperty(exports, "fontSize", { enumerable: true, get: function () { return typography_1.fontSize; } });
|
|
19
|
+
Object.defineProperty(exports, "fontWeight", { enumerable: true, get: function () { return typography_1.fontWeight; } });
|
|
20
|
+
Object.defineProperty(exports, "lineHeight", { enumerable: true, get: function () { return typography_1.lineHeight; } });
|
|
21
|
+
Object.defineProperty(exports, "letterSpacing", { enumerable: true, get: function () { return typography_1.letterSpacing; } });
|
|
22
|
+
var spacing_1 = require("./spacing");
|
|
23
|
+
Object.defineProperty(exports, "spacing", { enumerable: true, get: function () { return spacing_1.spacing; } });
|
|
24
|
+
var border_radius_1 = require("./border-radius");
|
|
25
|
+
Object.defineProperty(exports, "borderRadius", { enumerable: true, get: function () { return border_radius_1.borderRadius; } });
|
|
26
|
+
var shadows_1 = require("./shadows");
|
|
27
|
+
Object.defineProperty(exports, "shadow", { enumerable: true, get: function () { return shadows_1.shadow; } });
|
|
28
|
+
Object.defineProperty(exports, "elevation", { enumerable: true, get: function () { return shadows_1.elevation; } });
|
|
29
|
+
Object.defineProperty(exports, "resolveShadow", { enumerable: true, get: function () { return shadows_1.resolveShadow; } });
|
|
30
|
+
var animation_1 = require("./animation");
|
|
31
|
+
Object.defineProperty(exports, "animation", { enumerable: true, get: function () { return animation_1.animation; } });
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/design-tokens/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,mCAAiG;AAAxF,+FAAA,KAAK,OAAA;AAAE,iGAAA,OAAO,OAAA;AAAE,qGAAA,WAAW,OAAA;AAAE,mGAAA,SAAS,OAAA;AAAE,+FAAA,KAAK,OAAA;AAAE,gGAAA,MAAM,OAAA;AAAE,gGAAA,MAAM,OAAA;AAAE,gGAAA,MAAM,OAAA;AAG9E,2CAA2F;AAAlF,wGAAA,UAAU,OAAA;AAAE,sGAAA,QAAQ,OAAA;AAAE,wGAAA,UAAU,OAAA;AAAE,wGAAA,UAAU,OAAA;AAAE,2GAAA,aAAa,OAAA;AAGpE,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAGhB,iDAA+C;AAAtC,6GAAA,YAAY,OAAA;AAGrB,qCAA6D;AAApD,iGAAA,MAAM,OAAA;AAAE,oGAAA,SAAS,OAAA;AAAE,wGAAA,aAAa,OAAA;AAGzC,yCAAwC;AAA/B,sGAAA,SAAS,OAAA"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ANAN-UI — Design Tokens: Shadows & Elevation
|
|
3
|
+
*
|
|
4
|
+
* iOS uses shadowColor/shadowOffset/shadowOpacity/shadowRadius.
|
|
5
|
+
* Android uses elevation.
|
|
6
|
+
* Platform-specific resolution is centralized here.
|
|
7
|
+
*/
|
|
8
|
+
export declare const shadow: {
|
|
9
|
+
readonly xs: {
|
|
10
|
+
readonly shadowColor: "#000";
|
|
11
|
+
readonly shadowOffset: {
|
|
12
|
+
readonly width: 0;
|
|
13
|
+
readonly height: 1;
|
|
14
|
+
};
|
|
15
|
+
readonly shadowOpacity: 0.05;
|
|
16
|
+
readonly shadowRadius: 2;
|
|
17
|
+
readonly elevation: 1;
|
|
18
|
+
};
|
|
19
|
+
readonly sm: {
|
|
20
|
+
readonly shadowColor: "#000";
|
|
21
|
+
readonly shadowOffset: {
|
|
22
|
+
readonly width: 0;
|
|
23
|
+
readonly height: 1;
|
|
24
|
+
};
|
|
25
|
+
readonly shadowOpacity: 0.1;
|
|
26
|
+
readonly shadowRadius: 2;
|
|
27
|
+
readonly elevation: 2;
|
|
28
|
+
};
|
|
29
|
+
readonly md: {
|
|
30
|
+
readonly shadowColor: "#000";
|
|
31
|
+
readonly shadowOffset: {
|
|
32
|
+
readonly width: 0;
|
|
33
|
+
readonly height: 2;
|
|
34
|
+
};
|
|
35
|
+
readonly shadowOpacity: 0.1;
|
|
36
|
+
readonly shadowRadius: 4;
|
|
37
|
+
readonly elevation: 4;
|
|
38
|
+
};
|
|
39
|
+
readonly lg: {
|
|
40
|
+
readonly shadowColor: "#000";
|
|
41
|
+
readonly shadowOffset: {
|
|
42
|
+
readonly width: 0;
|
|
43
|
+
readonly height: 4;
|
|
44
|
+
};
|
|
45
|
+
readonly shadowOpacity: 0.15;
|
|
46
|
+
readonly shadowRadius: 6;
|
|
47
|
+
readonly elevation: 8;
|
|
48
|
+
};
|
|
49
|
+
readonly xl: {
|
|
50
|
+
readonly shadowColor: "#000";
|
|
51
|
+
readonly shadowOffset: {
|
|
52
|
+
readonly width: 0;
|
|
53
|
+
readonly height: 8;
|
|
54
|
+
};
|
|
55
|
+
readonly shadowOpacity: 0.2;
|
|
56
|
+
readonly shadowRadius: 12;
|
|
57
|
+
readonly elevation: 16;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export declare const elevation: {
|
|
61
|
+
readonly none: 0;
|
|
62
|
+
readonly sm: 1;
|
|
63
|
+
readonly md: 4;
|
|
64
|
+
readonly lg: 8;
|
|
65
|
+
readonly xl: 16;
|
|
66
|
+
readonly '2xl': 24;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Resolves a shadow token to platform-appropriate styles.
|
|
70
|
+
* iOS: shadow props; Android: elevation.
|
|
71
|
+
*/
|
|
72
|
+
export declare function resolveShadow(key: keyof typeof shadow): {
|
|
73
|
+
elevation: 16 | 1 | 4 | 8 | 2;
|
|
74
|
+
shadowColor?: undefined;
|
|
75
|
+
shadowOffset?: undefined;
|
|
76
|
+
shadowOpacity?: undefined;
|
|
77
|
+
shadowRadius?: undefined;
|
|
78
|
+
} | {
|
|
79
|
+
shadowColor: "#000";
|
|
80
|
+
shadowOffset: {
|
|
81
|
+
readonly width: 0;
|
|
82
|
+
readonly height: 1;
|
|
83
|
+
} | {
|
|
84
|
+
readonly width: 0;
|
|
85
|
+
readonly height: 1;
|
|
86
|
+
} | {
|
|
87
|
+
readonly width: 0;
|
|
88
|
+
readonly height: 2;
|
|
89
|
+
} | {
|
|
90
|
+
readonly width: 0;
|
|
91
|
+
readonly height: 4;
|
|
92
|
+
} | {
|
|
93
|
+
readonly width: 0;
|
|
94
|
+
readonly height: 8;
|
|
95
|
+
};
|
|
96
|
+
shadowOpacity: 0.05 | 0.1 | 0.15 | 0.2;
|
|
97
|
+
shadowRadius: 12 | 4 | 6 | 2;
|
|
98
|
+
elevation: 16 | 1 | 4 | 8 | 2;
|
|
99
|
+
};
|
|
100
|
+
export type ShadowKey = keyof typeof shadow;
|
|
101
|
+
export type Elevation = (typeof elevation)[keyof typeof elevation];
|
|
102
|
+
export type ElevationKey = keyof typeof elevation;
|
|
103
|
+
//# sourceMappingURL=shadows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shadows.d.ts","sourceRoot":"","sources":["../../src/design-tokens/shadows.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCT,CAAC;AAEX,eAAO,MAAM,SAAS;;;;;;;CAOZ,CAAC;AAEX;;;GAGG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,OAAO,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYrD;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,MAAM,CAAC;AAC5C,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AACnE,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,SAAS,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* ANAN-UI — Design Tokens: Shadows & Elevation
|
|
4
|
+
*
|
|
5
|
+
* iOS uses shadowColor/shadowOffset/shadowOpacity/shadowRadius.
|
|
6
|
+
* Android uses elevation.
|
|
7
|
+
* Platform-specific resolution is centralized here.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.elevation = exports.shadow = void 0;
|
|
11
|
+
exports.resolveShadow = resolveShadow;
|
|
12
|
+
const react_native_1 = require("react-native");
|
|
13
|
+
exports.shadow = {
|
|
14
|
+
xs: {
|
|
15
|
+
shadowColor: '#000',
|
|
16
|
+
shadowOffset: { width: 0, height: 1 },
|
|
17
|
+
shadowOpacity: 0.05,
|
|
18
|
+
shadowRadius: 2,
|
|
19
|
+
elevation: 1,
|
|
20
|
+
},
|
|
21
|
+
sm: {
|
|
22
|
+
shadowColor: '#000',
|
|
23
|
+
shadowOffset: { width: 0, height: 1 },
|
|
24
|
+
shadowOpacity: 0.1,
|
|
25
|
+
shadowRadius: 2,
|
|
26
|
+
elevation: 2,
|
|
27
|
+
},
|
|
28
|
+
md: {
|
|
29
|
+
shadowColor: '#000',
|
|
30
|
+
shadowOffset: { width: 0, height: 2 },
|
|
31
|
+
shadowOpacity: 0.1,
|
|
32
|
+
shadowRadius: 4,
|
|
33
|
+
elevation: 4,
|
|
34
|
+
},
|
|
35
|
+
lg: {
|
|
36
|
+
shadowColor: '#000',
|
|
37
|
+
shadowOffset: { width: 0, height: 4 },
|
|
38
|
+
shadowOpacity: 0.15,
|
|
39
|
+
shadowRadius: 6,
|
|
40
|
+
elevation: 8,
|
|
41
|
+
},
|
|
42
|
+
xl: {
|
|
43
|
+
shadowColor: '#000',
|
|
44
|
+
shadowOffset: { width: 0, height: 8 },
|
|
45
|
+
shadowOpacity: 0.2,
|
|
46
|
+
shadowRadius: 12,
|
|
47
|
+
elevation: 16,
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
exports.elevation = {
|
|
51
|
+
none: 0,
|
|
52
|
+
sm: 1,
|
|
53
|
+
md: 4,
|
|
54
|
+
lg: 8,
|
|
55
|
+
xl: 16,
|
|
56
|
+
'2xl': 24,
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Resolves a shadow token to platform-appropriate styles.
|
|
60
|
+
* iOS: shadow props; Android: elevation.
|
|
61
|
+
*/
|
|
62
|
+
function resolveShadow(key) {
|
|
63
|
+
const token = exports.shadow[key];
|
|
64
|
+
if (react_native_1.Platform.OS === 'android') {
|
|
65
|
+
return { elevation: token.elevation };
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
shadowColor: token.shadowColor,
|
|
69
|
+
shadowOffset: token.shadowOffset,
|
|
70
|
+
shadowOpacity: token.shadowOpacity,
|
|
71
|
+
shadowRadius: token.shadowRadius,
|
|
72
|
+
elevation: token.elevation,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=shadows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shadows.js","sourceRoot":"","sources":["../../src/design-tokens/shadows.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAuDH,sCAYC;AAjED,+CAAwC;AAE3B,QAAA,MAAM,GAAG;IACpB,EAAE,EAAE;QACF,WAAW,EAAE,MAAM;QACnB,YAAY,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE;QACrC,aAAa,EAAE,IAAI;QACnB,YAAY,EAAE,CAAC;QACf,SAAS,EAAE,CAAC;KACb;IACD,EAAE,EAAE;QACF,WAAW,EAAE,MAAM;QACnB,YAAY,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE;QACrC,aAAa,EAAE,GAAG;QAClB,YAAY,EAAE,CAAC;QACf,SAAS,EAAE,CAAC;KACb;IACD,EAAE,EAAE;QACF,WAAW,EAAE,MAAM;QACnB,YAAY,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE;QACrC,aAAa,EAAE,GAAG;QAClB,YAAY,EAAE,CAAC;QACf,SAAS,EAAE,CAAC;KACb;IACD,EAAE,EAAE;QACF,WAAW,EAAE,MAAM;QACnB,YAAY,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE;QACrC,aAAa,EAAE,IAAI;QACnB,YAAY,EAAE,CAAC;QACf,SAAS,EAAE,CAAC;KACb;IACD,EAAE,EAAE;QACF,WAAW,EAAE,MAAM;QACnB,YAAY,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE;QACrC,aAAa,EAAE,GAAG;QAClB,YAAY,EAAE,EAAE;QAChB,SAAS,EAAE,EAAE;KACd;CACO,CAAC;AAEE,QAAA,SAAS,GAAG;IACvB,IAAI,EAAE,CAAC;IACP,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,EAAE;IACN,KAAK,EAAE,EAAE;CACD,CAAC;AAEX;;;GAGG;AACH,SAAgB,aAAa,CAAC,GAAwB;IACpD,MAAM,KAAK,GAAG,cAAM,CAAC,GAAG,CAAC,CAAC;IAC1B,IAAI,uBAAQ,CAAC,EAAE,KAAK,SAAS,EAAE,CAAC;QAC9B,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;IACxC,CAAC;IACD,OAAO;QACL,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,YAAY,EAAE,KAAK,CAAC,YAAY;QAChC,aAAa,EAAE,KAAK,CAAC,aAAa;QAClC,YAAY,EAAE,KAAK,CAAC,YAAY;QAChC,SAAS,EAAE,KAAK,CAAC,SAAS;KAC3B,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ANAN-UI — Design Tokens: Spacing
|
|
3
|
+
*
|
|
4
|
+
* Based on a 4px grid.
|
|
5
|
+
*/
|
|
6
|
+
export declare const spacing: {
|
|
7
|
+
readonly 0: 0;
|
|
8
|
+
readonly 1: 4;
|
|
9
|
+
readonly 2: 8;
|
|
10
|
+
readonly 3: 12;
|
|
11
|
+
readonly 4: 16;
|
|
12
|
+
readonly 5: 20;
|
|
13
|
+
readonly 6: 24;
|
|
14
|
+
readonly 7: 28;
|
|
15
|
+
readonly 8: 32;
|
|
16
|
+
readonly 9: 36;
|
|
17
|
+
readonly 10: 40;
|
|
18
|
+
readonly 11: 44;
|
|
19
|
+
readonly 12: 48;
|
|
20
|
+
readonly 14: 56;
|
|
21
|
+
readonly 16: 64;
|
|
22
|
+
readonly 20: 80;
|
|
23
|
+
readonly 24: 96;
|
|
24
|
+
readonly 28: 112;
|
|
25
|
+
readonly 32: 128;
|
|
26
|
+
readonly 36: 144;
|
|
27
|
+
readonly 40: 160;
|
|
28
|
+
};
|
|
29
|
+
export type Spacing = keyof typeof spacing;
|
|
30
|
+
//# sourceMappingURL=spacing.d.ts.map
|