@flipova/foundation 1.8.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.
Files changed (101) hide show
  1. package/CHANGELOG.md +107 -0
  2. package/LICENSE +21 -0
  3. package/README.md +268 -0
  4. package/dist/config/index.d.mts +128 -0
  5. package/dist/config/index.d.ts +128 -0
  6. package/dist/config/index.js +1104 -0
  7. package/dist/config/index.js.map +1 -0
  8. package/dist/config/index.mjs +1098 -0
  9. package/dist/config/index.mjs.map +1 -0
  10. package/dist/index-D4qJw_Et.d.mts +55 -0
  11. package/dist/index-D4qJw_Et.d.ts +55 -0
  12. package/dist/index.d.mts +9 -0
  13. package/dist/index.d.ts +9 -0
  14. package/dist/index.js +9563 -0
  15. package/dist/index.js.map +1 -0
  16. package/dist/index.mjs +9381 -0
  17. package/dist/index.mjs.map +1 -0
  18. package/dist/layout/index.d.mts +2340 -0
  19. package/dist/layout/index.d.ts +2340 -0
  20. package/dist/layout/index.js +9275 -0
  21. package/dist/layout/index.js.map +1 -0
  22. package/dist/layout/index.mjs +9124 -0
  23. package/dist/layout/index.mjs.map +1 -0
  24. package/dist/primitives-DVX2q5St.d.mts +195 -0
  25. package/dist/primitives-nj-4at-g.d.ts +195 -0
  26. package/dist/spacing-CXUulLF9.d.mts +128 -0
  27. package/dist/spacing-CXUulLF9.d.ts +128 -0
  28. package/dist/studio/cli/index.d.mts +1 -0
  29. package/dist/studio/cli/index.d.ts +1 -0
  30. package/dist/studio/cli/index.js +4823 -0
  31. package/dist/studio/cli/index.js.map +1 -0
  32. package/dist/studio/cli/index.mjs +4798 -0
  33. package/dist/studio/cli/index.mjs.map +1 -0
  34. package/dist/studio/index.d.mts +441 -0
  35. package/dist/studio/index.d.ts +441 -0
  36. package/dist/studio/index.js +4919 -0
  37. package/dist/studio/index.js.map +1 -0
  38. package/dist/studio/index.mjs +4876 -0
  39. package/dist/studio/index.mjs.map +1 -0
  40. package/dist/theme/index.d.mts +122 -0
  41. package/dist/theme/index.d.ts +122 -0
  42. package/dist/theme/index.js +840 -0
  43. package/dist/theme/index.js.map +1 -0
  44. package/dist/theme/index.mjs +826 -0
  45. package/dist/theme/index.mjs.map +1 -0
  46. package/dist/tokens/index.d.mts +288 -0
  47. package/dist/tokens/index.d.ts +288 -0
  48. package/dist/tokens/index.js +404 -0
  49. package/dist/tokens/index.js.map +1 -0
  50. package/dist/tokens/index.mjs +390 -0
  51. package/dist/tokens/index.mjs.map +1 -0
  52. package/dist/web/index.d.mts +778 -0
  53. package/dist/web/index.d.ts +778 -0
  54. package/dist/web/index.js +5813 -0
  55. package/dist/web/index.js.map +1 -0
  56. package/dist/web/index.mjs +5708 -0
  57. package/dist/web/index.mjs.map +1 -0
  58. package/package.json +196 -0
  59. package/studio/README.md +154 -0
  60. package/studio/app/dist/_expo/static/js/web/entry-39d36897d2758a1d36b9ce16995ecc83.js +15379 -0
  61. package/studio/app/dist/_expo/static/js/web/index-f0c66517963047bf2c0bdd371afb8d31.js +4 -0
  62. package/studio/app/dist/_expo/static/js/web/index-fb59148d0b266219e66b19aeca8e2086.js +3 -0
  63. package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/AntDesign.3f78af31cca60105799838a1a7a59fbd.ttf +0 -0
  64. package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Entypo.31b5ffea3daddc69dd01a1f3d6cf63c5.ttf +0 -0
  65. package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/EvilIcons.140c53a7643ea949007aa9a282153849.ttf +0 -0
  66. package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Feather.ca4b48e04dc1ce10bfbddb262c8b835f.ttf +0 -0
  67. package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome.b06871f281fee6b241d60582ae9369b9.ttf +0 -0
  68. package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome5_Brands.3b89dd103490708d19a95adcae52210e.ttf +0 -0
  69. package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome5_Regular.1f77739ca9ff2188b539c36f30ffa2be.ttf +0 -0
  70. package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome5_Solid.605ed7926cf39a2ad5ec2d1f9d391d3d.ttf +0 -0
  71. package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome6_Brands.56c8d80832e37783f12c05db7c8849e2.ttf +0 -0
  72. package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome6_Regular.370dd5af19f8364907b6e2c41f45dbbf.ttf +0 -0
  73. package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome6_Solid.adec7d6f310bc577f05e8fe06a5daccf.ttf +0 -0
  74. package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Fontisto.b49ae8ab2dbccb02c4d11caaacf09eab.ttf +0 -0
  75. package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Foundation.e20945d7c929279ef7a6f1db184a4470.ttf +0 -0
  76. package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Ionicons.b4eb097d35f44ed943676fd56f6bdc51.ttf +0 -0
  77. package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/MaterialCommunityIcons.6e435534bd35da5fef04168860a9b8fa.ttf +0 -0
  78. package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/MaterialIcons.4e85bc9ebe07e0340c9c4fc2f6c38908.ttf +0 -0
  79. package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Octicons.871378c6eab492a3e689a9385dc45a12.ttf +0 -0
  80. package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/SimpleLineIcons.d2285965fe34b05465047401b8595dd0.ttf +0 -0
  81. package/studio/app/dist/assets/__node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Zocial.1681f34aaca71b8dfb70756bca331eb2.ttf +0 -0
  82. package/studio/app/dist/assets/__node_modules/expo-router/assets/arrow_down.017bc6ba3fc25503e5eb5e53826d48a8.png +0 -0
  83. package/studio/app/dist/assets/__node_modules/expo-router/assets/error.d1ea1496f9057eb392d5bbf3732a61b7.png +0 -0
  84. package/studio/app/dist/assets/__node_modules/expo-router/assets/file.19eeb73b9593a38f8e9f418337fc7d10.png +0 -0
  85. package/studio/app/dist/assets/__node_modules/expo-router/assets/forward.d8b800c443b8972542883e0b9de2bdc6.png +0 -0
  86. package/studio/app/dist/assets/__node_modules/expo-router/assets/pkg.ab19f4cbc543357183a20571f68380a3.png +0 -0
  87. package/studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements/back-icon-mask.0a328cd9c1afd0afe8e3b1ec5165b1b4.png +0 -0
  88. package/studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements/back-icon.35ba0eaec5a4f5ed12ca16fabeae451d.png +0 -0
  89. package/studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55.png +0 -0
  90. package/studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@2x.png +0 -0
  91. package/studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@3x.png +0 -0
  92. package/studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@4x.png +0 -0
  93. package/studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7.png +0 -0
  94. package/studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@2x.png +0 -0
  95. package/studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@3x.png +0 -0
  96. package/studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@4x.png +0 -0
  97. package/studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements/search-icon.286d67d3f74808a60a78d3ebf1a5fb57.png +0 -0
  98. package/studio/app/dist/assets/__node_modules/expo-router/assets/sitemap.412dd9275b6b48ad28f5e3d81bb1f626.png +0 -0
  99. package/studio/app/dist/assets/__node_modules/expo-router/assets/unmatched.20e71bdf79e3a97bf55fd9e164041578.png +0 -0
  100. package/studio/app/dist/index.html +37 -0
  101. package/studio/app/dist/metadata.json +1 -0
@@ -0,0 +1,122 @@
1
+ import React from 'react';
2
+ import { b as ThemeMode, a as CustomThemeMode, c as ThemeRegistry, C as ColorScheme } from '../index-D4qJw_Et.mjs';
3
+ export { T as ThemeGradients } from '../index-D4qJw_Et.mjs';
4
+
5
+ /**
6
+ * Defines the shape of the theme context value.
7
+ * Provides access to the current theme, mode, theme setter, and available themes.
8
+ */
9
+ interface ThemeContextType {
10
+ /** The current active color scheme object */
11
+ theme: ColorScheme;
12
+ /** The current theme mode (built-in or custom) */
13
+ mode: ThemeMode | CustomThemeMode;
14
+ /** Function to change the current theme */
15
+ setTheme: (theme: ThemeMode | CustomThemeMode) => void;
16
+ /** Registry of all available themes */
17
+ availableThemes: ThemeRegistry;
18
+ }
19
+ /**
20
+ * Hook for accessing the theme context.
21
+ *
22
+ * @param customTheme - Optional custom theme mode to use instead of the current context theme
23
+ * @returns The theme context value with current theme, mode, setter, and available themes
24
+ * @throws Error if used outside of a ThemeProvider
25
+ *
26
+ * @example
27
+ * ```tsx
28
+ * // Basic usage
29
+ * const { theme, mode, setTheme } = useTheme();
30
+ *
31
+ * // With custom theme
32
+ * const { theme } = useTheme('neon');
33
+ * ```
34
+ */
35
+ declare const useTheme: (customTheme?: ThemeMode | CustomThemeMode) => ThemeContextType;
36
+ /**
37
+ * Props for the ThemeProvider component.
38
+ */
39
+ interface ThemeProviderProps {
40
+ /** Child components that will have access to the theme context */
41
+ children: React.ReactNode;
42
+ /** Default theme to use when no theme is stored in state */
43
+ defaultTheme?: ThemeMode | CustomThemeMode;
44
+ /** Additional custom themes to merge with built-in themes */
45
+ customThemes?: Partial<ThemeRegistry>;
46
+ }
47
+ /**
48
+ * Provides theme context to child components.
49
+ *
50
+ * Manages the current theme state and provides access to theme switching functionality.
51
+ * Supports built-in themes (light, dark, neon) and custom themes.
52
+ *
53
+ * @param props - The theme provider props
54
+ * @returns A context provider component
55
+ *
56
+ * @example
57
+ * ```tsx
58
+ * // Basic usage
59
+ * <ThemeProvider>
60
+ * <App />
61
+ * </ThemeProvider>
62
+ *
63
+ * // With default theme and custom themes
64
+ * <ThemeProvider defaultTheme="dark" customThemes={{ myTheme: customThemeConfig }}>
65
+ * <App />
66
+ * </ThemeProvider>
67
+ * ```
68
+ */
69
+ declare const ThemeProvider: React.FC<ThemeProviderProps>;
70
+
71
+ declare const createTheme: (overrides?: Partial<ColorScheme>) => ColorScheme;
72
+
73
+ declare const autumnTheme: ColorScheme;
74
+
75
+ declare const christmasTheme: ColorScheme;
76
+
77
+ declare const darkTheme: ColorScheme;
78
+
79
+ declare const halloweenTheme: ColorScheme;
80
+
81
+ declare const lightTheme: ColorScheme;
82
+
83
+ declare const neonTheme: ColorScheme;
84
+
85
+ declare const springTheme: ColorScheme;
86
+
87
+ declare const summerTheme: ColorScheme;
88
+
89
+ declare const winterTheme: ColorScheme;
90
+
91
+ /**
92
+ * Hook for managing theme color scheme in the application.
93
+ *
94
+ * This hook provides a unified way to handle theme selection by:
95
+ * - Using the explicitly provided theme mode if specified
96
+ * - Falling back to the device's native color scheme (light/dark) when no theme is provided
97
+ * - Defaulting to 'light' theme when the native scheme is unavailable
98
+ *
99
+ * @param theme - Optional explicit theme mode to use instead of device preference
100
+ * @returns The resolved theme mode ('light' | 'dark')
101
+ *
102
+ * @example
103
+ * ```typescript
104
+ * // Use device's native color scheme
105
+ * const theme = useColorScheme();
106
+ *
107
+ * // Force light theme regardless of device preference
108
+ * const lightTheme = useColorScheme('light');
109
+ *
110
+ * // Force dark theme regardless of device preference
111
+ * const darkTheme = useColorScheme('dark');
112
+ * ```
113
+ *
114
+ * @remarks
115
+ * - The hook leverages React Native's built-in `useColorScheme` hook
116
+ * - On platforms where color scheme detection is not available, defaults to 'light'
117
+ * - This is typically used in conjunction with the ThemeProvider to ensure
118
+ * consistent theming across the entire application
119
+ */
120
+ declare function useColorScheme(theme?: 'light' | 'dark'): 'light' | 'dark';
121
+
122
+ export { ColorScheme, CustomThemeMode, ThemeMode, ThemeProvider, ThemeRegistry, autumnTheme, christmasTheme, createTheme, darkTheme, halloweenTheme, lightTheme, neonTheme, springTheme, summerTheme, useColorScheme, useTheme, winterTheme };
@@ -0,0 +1,122 @@
1
+ import React from 'react';
2
+ import { b as ThemeMode, a as CustomThemeMode, c as ThemeRegistry, C as ColorScheme } from '../index-D4qJw_Et.js';
3
+ export { T as ThemeGradients } from '../index-D4qJw_Et.js';
4
+
5
+ /**
6
+ * Defines the shape of the theme context value.
7
+ * Provides access to the current theme, mode, theme setter, and available themes.
8
+ */
9
+ interface ThemeContextType {
10
+ /** The current active color scheme object */
11
+ theme: ColorScheme;
12
+ /** The current theme mode (built-in or custom) */
13
+ mode: ThemeMode | CustomThemeMode;
14
+ /** Function to change the current theme */
15
+ setTheme: (theme: ThemeMode | CustomThemeMode) => void;
16
+ /** Registry of all available themes */
17
+ availableThemes: ThemeRegistry;
18
+ }
19
+ /**
20
+ * Hook for accessing the theme context.
21
+ *
22
+ * @param customTheme - Optional custom theme mode to use instead of the current context theme
23
+ * @returns The theme context value with current theme, mode, setter, and available themes
24
+ * @throws Error if used outside of a ThemeProvider
25
+ *
26
+ * @example
27
+ * ```tsx
28
+ * // Basic usage
29
+ * const { theme, mode, setTheme } = useTheme();
30
+ *
31
+ * // With custom theme
32
+ * const { theme } = useTheme('neon');
33
+ * ```
34
+ */
35
+ declare const useTheme: (customTheme?: ThemeMode | CustomThemeMode) => ThemeContextType;
36
+ /**
37
+ * Props for the ThemeProvider component.
38
+ */
39
+ interface ThemeProviderProps {
40
+ /** Child components that will have access to the theme context */
41
+ children: React.ReactNode;
42
+ /** Default theme to use when no theme is stored in state */
43
+ defaultTheme?: ThemeMode | CustomThemeMode;
44
+ /** Additional custom themes to merge with built-in themes */
45
+ customThemes?: Partial<ThemeRegistry>;
46
+ }
47
+ /**
48
+ * Provides theme context to child components.
49
+ *
50
+ * Manages the current theme state and provides access to theme switching functionality.
51
+ * Supports built-in themes (light, dark, neon) and custom themes.
52
+ *
53
+ * @param props - The theme provider props
54
+ * @returns A context provider component
55
+ *
56
+ * @example
57
+ * ```tsx
58
+ * // Basic usage
59
+ * <ThemeProvider>
60
+ * <App />
61
+ * </ThemeProvider>
62
+ *
63
+ * // With default theme and custom themes
64
+ * <ThemeProvider defaultTheme="dark" customThemes={{ myTheme: customThemeConfig }}>
65
+ * <App />
66
+ * </ThemeProvider>
67
+ * ```
68
+ */
69
+ declare const ThemeProvider: React.FC<ThemeProviderProps>;
70
+
71
+ declare const createTheme: (overrides?: Partial<ColorScheme>) => ColorScheme;
72
+
73
+ declare const autumnTheme: ColorScheme;
74
+
75
+ declare const christmasTheme: ColorScheme;
76
+
77
+ declare const darkTheme: ColorScheme;
78
+
79
+ declare const halloweenTheme: ColorScheme;
80
+
81
+ declare const lightTheme: ColorScheme;
82
+
83
+ declare const neonTheme: ColorScheme;
84
+
85
+ declare const springTheme: ColorScheme;
86
+
87
+ declare const summerTheme: ColorScheme;
88
+
89
+ declare const winterTheme: ColorScheme;
90
+
91
+ /**
92
+ * Hook for managing theme color scheme in the application.
93
+ *
94
+ * This hook provides a unified way to handle theme selection by:
95
+ * - Using the explicitly provided theme mode if specified
96
+ * - Falling back to the device's native color scheme (light/dark) when no theme is provided
97
+ * - Defaulting to 'light' theme when the native scheme is unavailable
98
+ *
99
+ * @param theme - Optional explicit theme mode to use instead of device preference
100
+ * @returns The resolved theme mode ('light' | 'dark')
101
+ *
102
+ * @example
103
+ * ```typescript
104
+ * // Use device's native color scheme
105
+ * const theme = useColorScheme();
106
+ *
107
+ * // Force light theme regardless of device preference
108
+ * const lightTheme = useColorScheme('light');
109
+ *
110
+ * // Force dark theme regardless of device preference
111
+ * const darkTheme = useColorScheme('dark');
112
+ * ```
113
+ *
114
+ * @remarks
115
+ * - The hook leverages React Native's built-in `useColorScheme` hook
116
+ * - On platforms where color scheme detection is not available, defaults to 'light'
117
+ * - This is typically used in conjunction with the ThemeProvider to ensure
118
+ * consistent theming across the entire application
119
+ */
120
+ declare function useColorScheme(theme?: 'light' | 'dark'): 'light' | 'dark';
121
+
122
+ export { ColorScheme, CustomThemeMode, ThemeMode, ThemeProvider, ThemeRegistry, autumnTheme, christmasTheme, createTheme, darkTheme, halloweenTheme, lightTheme, neonTheme, springTheme, summerTheme, useColorScheme, useTheme, winterTheme };