react-native-atomic-ui 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.
Files changed (73) hide show
  1. package/CHANGELOG.md +145 -0
  2. package/README.md +485 -0
  3. package/dist/advanced/date-picker/index.d.ts +22 -0
  4. package/dist/advanced/date-picker/index.d.ts.map +1 -0
  5. package/dist/advanced/date-picker/index.js +31 -0
  6. package/dist/advanced/date-picker/index.js.map +7 -0
  7. package/dist/advanced/date-picker/index.mjs +10 -0
  8. package/dist/advanced/date-picker/index.mjs.map +7 -0
  9. package/dist/advanced/file-picker/index.d.ts +21 -0
  10. package/dist/advanced/file-picker/index.d.ts.map +1 -0
  11. package/dist/advanced/file-picker/index.js +31 -0
  12. package/dist/advanced/file-picker/index.js.map +7 -0
  13. package/dist/advanced/file-picker/index.mjs +10 -0
  14. package/dist/advanced/file-picker/index.mjs.map +7 -0
  15. package/dist/advanced/picker/index.d.ts +27 -0
  16. package/dist/advanced/picker/index.d.ts.map +1 -0
  17. package/dist/advanced/picker/index.js +37 -0
  18. package/dist/advanced/picker/index.js.map +7 -0
  19. package/dist/advanced/picker/index.mjs +16 -0
  20. package/dist/advanced/picker/index.mjs.map +7 -0
  21. package/dist/advanced/rich-text/index.d.ts +29 -0
  22. package/dist/advanced/rich-text/index.d.ts.map +1 -0
  23. package/dist/advanced/rich-text/index.js +37 -0
  24. package/dist/advanced/rich-text/index.js.map +7 -0
  25. package/dist/advanced/rich-text/index.mjs +16 -0
  26. package/dist/advanced/rich-text/index.mjs.map +7 -0
  27. package/dist/chunk-IOIXIQ2F.mjs +177 -0
  28. package/dist/chunk-IOIXIQ2F.mjs.map +7 -0
  29. package/dist/chunk-NUUZYCND.mjs +318 -0
  30. package/dist/chunk-NUUZYCND.mjs.map +7 -0
  31. package/dist/components/index.d.ts +4 -0
  32. package/dist/components/index.d.ts.map +1 -0
  33. package/dist/components/index.js +485 -0
  34. package/dist/components/index.js.map +7 -0
  35. package/dist/components/index.mjs +48 -0
  36. package/dist/components/index.mjs.map +7 -0
  37. package/dist/components/inputs/Button.d.ts +7 -0
  38. package/dist/components/inputs/Button.d.ts.map +1 -0
  39. package/dist/components/inputs/Button.js +105 -0
  40. package/dist/components/inputs/Button.js.map +1 -0
  41. package/dist/components/layouts/Box.d.ts +18 -0
  42. package/dist/components/layouts/Box.d.ts.map +1 -0
  43. package/dist/components/layouts/Box.js +72 -0
  44. package/dist/components/layouts/Box.js.map +1 -0
  45. package/dist/components/typography/Text.d.ts +26 -0
  46. package/dist/components/typography/Text.d.ts.map +1 -0
  47. package/dist/components/typography/Text.js +70 -0
  48. package/dist/components/typography/Text.js.map +1 -0
  49. package/dist/index.d.ts +4 -0
  50. package/dist/index.d.ts.map +1 -0
  51. package/dist/index.js +515 -0
  52. package/dist/index.js.map +7 -0
  53. package/dist/index.mjs +57 -0
  54. package/dist/index.mjs.map +7 -0
  55. package/dist/theme/index.d.ts +19 -0
  56. package/dist/theme/index.d.ts.map +1 -0
  57. package/dist/theme/index.js +207 -0
  58. package/dist/theme/index.js.map +7 -0
  59. package/dist/theme/index.mjs +13 -0
  60. package/dist/theme/index.mjs.map +7 -0
  61. package/dist/theme/themes.d.ts +4 -0
  62. package/dist/theme/themes.d.ts.map +1 -0
  63. package/dist/theme/themes.js +127 -0
  64. package/dist/theme/themes.js.map +1 -0
  65. package/dist/types/index.d.ts +117 -0
  66. package/dist/types/index.d.ts.map +1 -0
  67. package/dist/types/index.js +2 -0
  68. package/dist/types/index.js.map +1 -0
  69. package/dist/utilities/math.d.ts +13 -0
  70. package/dist/utilities/math.d.ts.map +1 -0
  71. package/dist/utilities/math.js +27 -0
  72. package/dist/utilities/math.js.map +1 -0
  73. package/package.json +132 -0
@@ -0,0 +1,318 @@
1
+ import {
2
+ useTheme
3
+ } from "./chunk-IOIXIQ2F.mjs";
4
+
5
+ // src/components/layouts/Box.tsx
6
+ import React from "react";
7
+ import { View } from "react-native";
8
+ function Box({
9
+ children,
10
+ padding,
11
+ paddingHorizontal,
12
+ paddingVertical,
13
+ margin,
14
+ marginHorizontal,
15
+ marginVertical,
16
+ gap,
17
+ backgroundColor,
18
+ borderRadius,
19
+ style,
20
+ testID
21
+ }) {
22
+ const { theme } = useTheme();
23
+ const boxStyle = [
24
+ padding && { padding: theme.spacing[padding] },
25
+ paddingHorizontal && { paddingHorizontal: theme.spacing[paddingHorizontal] },
26
+ paddingVertical && { paddingVertical: theme.spacing[paddingVertical] },
27
+ margin && { margin: theme.spacing[margin] },
28
+ marginHorizontal && { marginHorizontal: theme.spacing[marginHorizontal] },
29
+ marginVertical && { marginVertical: theme.spacing[marginVertical] },
30
+ gap && { gap: theme.spacing[gap] },
31
+ backgroundColor && { backgroundColor },
32
+ borderRadius && { borderRadius: theme.borderRadius[borderRadius] },
33
+ style
34
+ ];
35
+ return /* @__PURE__ */ React.createElement(View, { style: boxStyle, testID }, children);
36
+ }
37
+ function Row({
38
+ children,
39
+ padding,
40
+ paddingHorizontal,
41
+ paddingVertical,
42
+ margin,
43
+ marginHorizontal,
44
+ marginVertical,
45
+ gap,
46
+ backgroundColor,
47
+ borderRadius,
48
+ style,
49
+ testID
50
+ }) {
51
+ const { theme } = useTheme();
52
+ const rowStyle = [
53
+ { flexDirection: "row", alignItems: "center" },
54
+ padding && { padding: theme.spacing[padding] },
55
+ paddingHorizontal && { paddingHorizontal: theme.spacing[paddingHorizontal] },
56
+ paddingVertical && { paddingVertical: theme.spacing[paddingVertical] },
57
+ margin && { margin: theme.spacing[margin] },
58
+ marginHorizontal && { marginHorizontal: theme.spacing[marginHorizontal] },
59
+ marginVertical && { marginVertical: theme.spacing[marginVertical] },
60
+ gap && { gap: theme.spacing[gap] },
61
+ backgroundColor && { backgroundColor },
62
+ borderRadius && { borderRadius: theme.borderRadius[borderRadius] },
63
+ style
64
+ ];
65
+ return /* @__PURE__ */ React.createElement(View, { style: rowStyle, testID }, children);
66
+ }
67
+ function Column({
68
+ children,
69
+ padding,
70
+ paddingHorizontal,
71
+ paddingVertical,
72
+ margin,
73
+ marginHorizontal,
74
+ marginVertical,
75
+ gap,
76
+ backgroundColor,
77
+ borderRadius,
78
+ style,
79
+ testID
80
+ }) {
81
+ const { theme } = useTheme();
82
+ const columnStyle = [
83
+ { flexDirection: "column" },
84
+ padding && { padding: theme.spacing[padding] },
85
+ paddingHorizontal && { paddingHorizontal: theme.spacing[paddingHorizontal] },
86
+ paddingVertical && { paddingVertical: theme.spacing[paddingVertical] },
87
+ margin && { margin: theme.spacing[margin] },
88
+ marginHorizontal && { marginHorizontal: theme.spacing[marginHorizontal] },
89
+ marginVertical && { marginVertical: theme.spacing[marginVertical] },
90
+ gap && { gap: theme.spacing[gap] },
91
+ backgroundColor && { backgroundColor },
92
+ borderRadius && { borderRadius: theme.borderRadius[borderRadius] },
93
+ style
94
+ ];
95
+ return /* @__PURE__ */ React.createElement(View, { style: columnStyle, testID }, children);
96
+ }
97
+
98
+ // src/components/typography/Text.tsx
99
+ import React2 from "react";
100
+ import { Text as RNText } from "react-native";
101
+ function Text({
102
+ children,
103
+ variant = "body1",
104
+ color,
105
+ textAlign,
106
+ style,
107
+ testID
108
+ }) {
109
+ const { theme } = useTheme();
110
+ const textStyle = [
111
+ theme.typography[variant],
112
+ { color: color || theme.colors.text },
113
+ textAlign && { textAlign },
114
+ style
115
+ ];
116
+ return /* @__PURE__ */ React2.createElement(RNText, { style: textStyle, testID }, children);
117
+ }
118
+ function H1(props) {
119
+ return /* @__PURE__ */ React2.createElement(Text, { ...props, variant: "h1" });
120
+ }
121
+ function H2(props) {
122
+ return /* @__PURE__ */ React2.createElement(Text, { ...props, variant: "h2" });
123
+ }
124
+ function H3(props) {
125
+ return /* @__PURE__ */ React2.createElement(Text, { ...props, variant: "h3" });
126
+ }
127
+ function H4(props) {
128
+ return /* @__PURE__ */ React2.createElement(Text, { ...props, variant: "h4" });
129
+ }
130
+ function H5(props) {
131
+ return /* @__PURE__ */ React2.createElement(Text, { ...props, variant: "h5" });
132
+ }
133
+ function H6(props) {
134
+ return /* @__PURE__ */ React2.createElement(Text, { ...props, variant: "h6" });
135
+ }
136
+ function Body1(props) {
137
+ return /* @__PURE__ */ React2.createElement(Text, { ...props, variant: "body1" });
138
+ }
139
+ function Body2(props) {
140
+ return /* @__PURE__ */ React2.createElement(Text, { ...props, variant: "body2" });
141
+ }
142
+ function Body3(props) {
143
+ return /* @__PURE__ */ React2.createElement(Text, { ...props, variant: "body3" });
144
+ }
145
+ function Body4(props) {
146
+ return /* @__PURE__ */ React2.createElement(Text, { ...props, variant: "body4" });
147
+ }
148
+ function Body5(props) {
149
+ return /* @__PURE__ */ React2.createElement(Text, { ...props, variant: "body5" });
150
+ }
151
+ function Body6(props) {
152
+ return /* @__PURE__ */ React2.createElement(Text, { ...props, variant: "body6" });
153
+ }
154
+ function SubTitle1(props) {
155
+ return /* @__PURE__ */ React2.createElement(Text, { ...props, variant: "subtitle1" });
156
+ }
157
+ function SubTitle2(props) {
158
+ return /* @__PURE__ */ React2.createElement(Text, { ...props, variant: "subtitle2" });
159
+ }
160
+ function Caption(props) {
161
+ return /* @__PURE__ */ React2.createElement(Text, { ...props, variant: "caption" });
162
+ }
163
+ function Overline(props) {
164
+ return /* @__PURE__ */ React2.createElement(Text, { ...props, variant: "overline" });
165
+ }
166
+
167
+ // src/components/inputs/Button.tsx
168
+ import React3 from "react";
169
+ import {
170
+ TouchableOpacity,
171
+ View as View2,
172
+ StyleSheet,
173
+ ActivityIndicator
174
+ } from "react-native";
175
+ function Button({
176
+ label,
177
+ onPress,
178
+ variant = "primary",
179
+ size = "medium",
180
+ disabled = false,
181
+ loading = false,
182
+ icon,
183
+ style,
184
+ testID
185
+ }) {
186
+ const { theme } = useTheme();
187
+ const getVariantStyle = () => {
188
+ switch (variant) {
189
+ case "primary":
190
+ return {
191
+ backgroundColor: theme.colors.primary,
192
+ borderColor: theme.colors.primary
193
+ };
194
+ case "secondary":
195
+ return {
196
+ backgroundColor: theme.colors.secondary,
197
+ borderColor: theme.colors.secondary
198
+ };
199
+ case "danger":
200
+ return {
201
+ backgroundColor: theme.colors.error,
202
+ borderColor: theme.colors.error
203
+ };
204
+ case "ghost":
205
+ return {
206
+ backgroundColor: "transparent",
207
+ borderColor: theme.colors.primary,
208
+ borderWidth: 1
209
+ };
210
+ default:
211
+ return {
212
+ backgroundColor: theme.colors.primary,
213
+ borderColor: theme.colors.primary
214
+ };
215
+ }
216
+ };
217
+ const getSizeStyle = () => {
218
+ switch (size) {
219
+ case "small":
220
+ return {
221
+ paddingHorizontal: theme.spacing.md,
222
+ paddingVertical: theme.spacing.sm,
223
+ minHeight: 32
224
+ };
225
+ case "large":
226
+ return {
227
+ paddingHorizontal: theme.spacing.lg,
228
+ paddingVertical: theme.spacing.md,
229
+ minHeight: 56
230
+ };
231
+ case "medium":
232
+ default:
233
+ return {
234
+ paddingHorizontal: theme.spacing.lg,
235
+ paddingVertical: theme.spacing.md,
236
+ minHeight: 48
237
+ };
238
+ }
239
+ };
240
+ const buttonStyle = [
241
+ styles.button,
242
+ {
243
+ ...getVariantStyle(),
244
+ ...getSizeStyle(),
245
+ borderRadius: theme.borderRadius.md,
246
+ opacity: disabled || loading ? 0.5 : 1
247
+ },
248
+ style
249
+ ];
250
+ const textColor = variant === "ghost" ? theme.colors.primary : theme.colors.white;
251
+ return /* @__PURE__ */ React3.createElement(
252
+ TouchableOpacity,
253
+ {
254
+ style: buttonStyle,
255
+ onPress,
256
+ disabled: disabled || loading,
257
+ testID
258
+ },
259
+ /* @__PURE__ */ React3.createElement(View2, { style: styles.content }, loading ? /* @__PURE__ */ React3.createElement(
260
+ ActivityIndicator,
261
+ {
262
+ color: textColor,
263
+ size: size === "small" ? "small" : "large"
264
+ }
265
+ ) : /* @__PURE__ */ React3.createElement(React3.Fragment, null, icon && /* @__PURE__ */ React3.createElement(View2, { style: styles.icon }, icon), /* @__PURE__ */ React3.createElement(
266
+ Text,
267
+ {
268
+ variant: size === "small" ? "body3" : "body1",
269
+ color: textColor,
270
+ style: styles.label
271
+ },
272
+ label
273
+ )))
274
+ );
275
+ }
276
+ var styles = StyleSheet.create({
277
+ button: {
278
+ justifyContent: "center",
279
+ alignItems: "center",
280
+ flexDirection: "row"
281
+ },
282
+ content: {
283
+ flexDirection: "row",
284
+ alignItems: "center",
285
+ justifyContent: "center"
286
+ },
287
+ icon: {
288
+ marginRight: 8
289
+ },
290
+ label: {
291
+ fontWeight: "600"
292
+ }
293
+ });
294
+
295
+ export {
296
+ Box,
297
+ Row,
298
+ Column,
299
+ Text,
300
+ H1,
301
+ H2,
302
+ H3,
303
+ H4,
304
+ H5,
305
+ H6,
306
+ Body1,
307
+ Body2,
308
+ Body3,
309
+ Body4,
310
+ Body5,
311
+ Body6,
312
+ SubTitle1,
313
+ SubTitle2,
314
+ Caption,
315
+ Overline,
316
+ Button
317
+ };
318
+ //# sourceMappingURL=chunk-NUUZYCND.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/components/layouts/Box.tsx", "../src/components/typography/Text.tsx", "../src/components/inputs/Button.tsx"],
4
+ "sourcesContent": ["import React from 'react';\nimport { View, ViewProps } from 'react-native';\nimport { useTheme } from '@theme/index';\nimport type { BoxProps } from '../../types/index';\n\n/**\n * Box - Base layout component with flexbox support\n * Serves as the foundation for building custom layouts\n */\nexport function Box({\n children,\n padding,\n paddingHorizontal,\n paddingVertical,\n margin,\n marginHorizontal,\n marginVertical,\n gap,\n backgroundColor,\n borderRadius,\n style,\n testID,\n}: BoxProps) {\n const { theme } = useTheme();\n\n const boxStyle: ViewProps['style'] = [\n padding && { padding: theme.spacing[padding] },\n paddingHorizontal && { paddingHorizontal: theme.spacing[paddingHorizontal] },\n paddingVertical && { paddingVertical: theme.spacing[paddingVertical] },\n margin && { margin: theme.spacing[margin] },\n marginHorizontal && { marginHorizontal: theme.spacing[marginHorizontal] },\n marginVertical && { marginVertical: theme.spacing[marginVertical] },\n gap && { gap: theme.spacing[gap] },\n backgroundColor && { backgroundColor },\n borderRadius && { borderRadius: theme.borderRadius[borderRadius] },\n style,\n ];\n\n return (\n <View style={boxStyle} testID={testID}>\n {children}\n </View>\n );\n}\n\n/**\n * Row - Horizontal flex container\n * Equivalent to flexDirection: 'row'\n */\nexport function Row({\n children,\n padding,\n paddingHorizontal,\n paddingVertical,\n margin,\n marginHorizontal,\n marginVertical,\n gap,\n backgroundColor,\n borderRadius,\n style,\n testID,\n}: BoxProps) {\n const { theme } = useTheme();\n\n const rowStyle: ViewProps['style'] = [\n { flexDirection: 'row', alignItems: 'center' },\n padding && { padding: theme.spacing[padding] },\n paddingHorizontal && { paddingHorizontal: theme.spacing[paddingHorizontal] },\n paddingVertical && { paddingVertical: theme.spacing[paddingVertical] },\n margin && { margin: theme.spacing[margin] },\n marginHorizontal && { marginHorizontal: theme.spacing[marginHorizontal] },\n marginVertical && { marginVertical: theme.spacing[marginVertical] },\n gap && { gap: theme.spacing[gap] },\n backgroundColor && { backgroundColor },\n borderRadius && { borderRadius: theme.borderRadius[borderRadius] },\n style,\n ];\n\n return (\n <View style={rowStyle} testID={testID}>\n {children}\n </View>\n );\n}\n\n/**\n * Column - Vertical flex container\n * Equivalent to flexDirection: 'column'\n */\nexport function Column({\n children,\n padding,\n paddingHorizontal,\n paddingVertical,\n margin,\n marginHorizontal,\n marginVertical,\n gap,\n backgroundColor,\n borderRadius,\n style,\n testID,\n}: BoxProps) {\n const { theme } = useTheme();\n\n const columnStyle: ViewProps['style'] = [\n { flexDirection: 'column' },\n padding && { padding: theme.spacing[padding] },\n paddingHorizontal && { paddingHorizontal: theme.spacing[paddingHorizontal] },\n paddingVertical && { paddingVertical: theme.spacing[paddingVertical] },\n margin && { margin: theme.spacing[margin] },\n marginHorizontal && { marginHorizontal: theme.spacing[marginHorizontal] },\n marginVertical && { marginVertical: theme.spacing[marginVertical] },\n gap && { gap: theme.spacing[gap] },\n backgroundColor && { backgroundColor },\n borderRadius && { borderRadius: theme.borderRadius[borderRadius] },\n style,\n ];\n\n return (\n <View style={columnStyle} testID={testID}>\n {children}\n </View>\n );\n}\n", "import React from 'react';\nimport { Text as RNText, TextProps as RNTextProps } from 'react-native';\nimport { useTheme } from '@theme/index';\nimport type { TextProps } from '../../types/index';\n\n/**\n * Base Text component with theme support\n */\nexport function Text({\n children,\n variant = 'body1',\n color,\n textAlign,\n style,\n testID,\n}: TextProps) {\n const { theme } = useTheme();\n\n const textStyle: RNTextProps['style'] = [\n theme.typography[variant],\n { color: color || theme.colors.text },\n textAlign && { textAlign },\n style,\n ];\n\n return (\n <RNText style={textStyle} testID={testID}>\n {children}\n </RNText>\n );\n}\n\n/**\n * Typography components - Convenience components for common sizes\n */\n\nexport function H1(props: TextProps) {\n return <Text {...props} variant=\"h1\" />;\n}\n\nexport function H2(props: TextProps) {\n return <Text {...props} variant=\"h2\" />;\n}\n\nexport function H3(props: TextProps) {\n return <Text {...props} variant=\"h3\" />;\n}\n\nexport function H4(props: TextProps) {\n return <Text {...props} variant=\"h4\" />;\n}\n\nexport function H5(props: TextProps) {\n return <Text {...props} variant=\"h5\" />;\n}\n\nexport function H6(props: TextProps) {\n return <Text {...props} variant=\"h6\" />;\n}\n\nexport function Body1(props: TextProps) {\n return <Text {...props} variant=\"body1\" />;\n}\n\nexport function Body2(props: TextProps) {\n return <Text {...props} variant=\"body2\" />;\n}\n\nexport function Body3(props: TextProps) {\n return <Text {...props} variant=\"body3\" />;\n}\n\nexport function Body4(props: TextProps) {\n return <Text {...props} variant=\"body4\" />;\n}\n\nexport function Body5(props: TextProps) {\n return <Text {...props} variant=\"body5\" />;\n}\n\nexport function Body6(props: TextProps) {\n return <Text {...props} variant=\"body6\" />;\n}\n\nexport function SubTitle1(props: TextProps) {\n return <Text {...props} variant=\"subtitle1\" />;\n}\n\nexport function SubTitle2(props: TextProps) {\n return <Text {...props} variant=\"subtitle2\" />;\n}\n\nexport function Caption(props: TextProps) {\n return <Text {...props} variant=\"caption\" />;\n}\n\nexport function Overline(props: TextProps) {\n return <Text {...props} variant=\"overline\" />;\n}\n", "import React from 'react';\nimport {\n TouchableOpacity,\n View,\n StyleSheet,\n ActivityIndicator,\n} from 'react-native';\nimport { useTheme } from '@theme/index';\nimport type { ButtonProps } from '../../types/index';\nimport { Text } from '../typography/Text';\n\n/**\n * Button component with multiple variants and sizes\n */\nexport function Button({\n label,\n onPress,\n variant = 'primary',\n size = 'medium',\n disabled = false,\n loading = false,\n icon,\n style,\n testID,\n}: ButtonProps) {\n const { theme } = useTheme();\n\n // Get variant colors\n const getVariantStyle = () => {\n switch (variant) {\n case 'primary':\n return {\n backgroundColor: theme.colors.primary,\n borderColor: theme.colors.primary,\n };\n case 'secondary':\n return {\n backgroundColor: theme.colors.secondary,\n borderColor: theme.colors.secondary,\n };\n case 'danger':\n return {\n backgroundColor: theme.colors.error,\n borderColor: theme.colors.error,\n };\n case 'ghost':\n return {\n backgroundColor: 'transparent',\n borderColor: theme.colors.primary,\n borderWidth: 1,\n };\n default:\n return {\n backgroundColor: theme.colors.primary,\n borderColor: theme.colors.primary,\n };\n }\n };\n\n // Get size dimensions\n const getSizeStyle = () => {\n switch (size) {\n case 'small':\n return {\n paddingHorizontal: theme.spacing.md,\n paddingVertical: theme.spacing.sm,\n minHeight: 32,\n };\n case 'large':\n return {\n paddingHorizontal: theme.spacing.lg,\n paddingVertical: theme.spacing.md,\n minHeight: 56,\n };\n case 'medium':\n default:\n return {\n paddingHorizontal: theme.spacing.lg,\n paddingVertical: theme.spacing.md,\n minHeight: 48,\n };\n }\n };\n\n const buttonStyle = [\n styles.button,\n {\n ...getVariantStyle(),\n ...getSizeStyle(),\n borderRadius: theme.borderRadius.md,\n opacity: disabled || loading ? 0.5 : 1,\n },\n style,\n ];\n\n const textColor = variant === 'ghost' ? theme.colors.primary : theme.colors.white;\n\n return (\n <TouchableOpacity\n style={buttonStyle}\n onPress={onPress}\n disabled={disabled || loading}\n testID={testID}\n >\n <View style={styles.content}>\n {loading ? (\n <ActivityIndicator\n color={textColor}\n size={size === 'small' ? 'small' : 'large'}\n />\n ) : (\n <>\n {icon && <View style={styles.icon}>{icon}</View>}\n <Text\n variant={size === 'small' ? 'body3' : 'body1'}\n color={textColor}\n style={styles.label}\n >\n {label}\n </Text>\n </>\n )}\n </View>\n </TouchableOpacity>\n );\n}\n\nconst styles = StyleSheet.create({\n button: {\n justifyContent: 'center',\n alignItems: 'center',\n flexDirection: 'row',\n },\n content: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n },\n icon: {\n marginRight: 8,\n },\n label: {\n fontWeight: '600',\n },\n});\n"],
5
+ "mappings": ";;;;;AAAA,OAAO,WAAW;AAClB,SAAS,YAAuB;AAQzB,SAAS,IAAI;AAAA,EAClB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAa;AACX,QAAM,EAAE,MAAM,IAAI,SAAS;AAE3B,QAAM,WAA+B;AAAA,IACnC,WAAW,EAAE,SAAS,MAAM,QAAQ,OAAO,EAAE;AAAA,IAC7C,qBAAqB,EAAE,mBAAmB,MAAM,QAAQ,iBAAiB,EAAE;AAAA,IAC3E,mBAAmB,EAAE,iBAAiB,MAAM,QAAQ,eAAe,EAAE;AAAA,IACrE,UAAU,EAAE,QAAQ,MAAM,QAAQ,MAAM,EAAE;AAAA,IAC1C,oBAAoB,EAAE,kBAAkB,MAAM,QAAQ,gBAAgB,EAAE;AAAA,IACxE,kBAAkB,EAAE,gBAAgB,MAAM,QAAQ,cAAc,EAAE;AAAA,IAClE,OAAO,EAAE,KAAK,MAAM,QAAQ,GAAG,EAAE;AAAA,IACjC,mBAAmB,EAAE,gBAAgB;AAAA,IACrC,gBAAgB,EAAE,cAAc,MAAM,aAAa,YAAY,EAAE;AAAA,IACjE;AAAA,EACF;AAEA,SACE,oCAAC,QAAK,OAAO,UAAU,UACpB,QACH;AAEJ;AAMO,SAAS,IAAI;AAAA,EAClB;AAAA,EACA;A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AO;AAAA,IACP;AAAA,MACE,GAAG,gBAAgB;AAAA,MACnB,GAAG,aAAa;AAAA,MAChB,cAAc,MAAM,aAAa;AAAA,MACjC,SAAS,YAAY,UAAU,MAAM;AAAA,IACvC;AAAA,IACA;AAAA,EACF;AAEA,QAAM,YAAY,YAAY,UAAU,MAAM,OAAO,UAAU,MAAM,OAAO;AAE5E,SACE,gBAAAC,OAAA;AAAA,IAAC;AAAA;AAAA,MACC,OAAO;AAAA,MACP;AAAA,MACA,UAAU,YAAY;AAAA,MACtB;AAAA;AAAA,IAEA,gBAAAA,OAAA,cAACC,OAAA,EAAK,OAAO,OAAO,WACjB,UACC,gBAAAD,OAAA;AAAA,MAAC;AAAA;AAAA,QACC,OAAO;AAAA,QACP,MAAM,SAAS,UAAU,UAAU;AAAA;AAAA,IACrC,IAEA,gBAAAA,OAAA,cAAAA,OAAA,gBACG,QAAQ,gBAAAA,OAAA,cAACC,OAAA,EAAK,OAAO,OAAO,QAAO,IAAK,GACzC,gBAAAD,OAAA;AAAA,MAAC;AAAA;AAAA,QACC,SAAS,SAAS,UAAU,UAAU;AAAA,QACtC,OAAO;AAAA,QACP,OAAO,OAAO;AAAA;AAAA,MAEb;AAAA,IACH,CACF,CAEJ;AAAA,EACF;AAEJ;AAEA,IAAM,SAAS,WAAW,OAAO;AAAA,EAC/B,QAAQ;AAAA,IACN,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,eAAe;AAAA,EACjB;AAAA,EACA,SAAS;AAAA,IACP,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,gBAAgB;AAAA,EAClB;AAAA,EACA,MAAM;AAAA,IACJ,aAAa;AAAA,EACf;AAAA,EACA,OAAO;AAAA,IACL,YAAY;AAAA,EACd;AACF,CAAC;",
6
+ "names": ["React", "React", "React", "View", "React", "View"]
7
+ }
@@ -0,0 +1,4 @@
1
+ export { Box, Row, Column } from './layouts/Box';
2
+ export { Text, H1, H2, H3, H4, H5, H6, Body1, Body2, Body3, Body4, Body5, Body6, SubTitle1, SubTitle2, Caption, Overline, } from './typography/Text';
3
+ export { Button } from './inputs/Button';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAGjD,OAAO,EACL,IAAI,EACJ,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,SAAS,EACT,SAAS,EACT,OAAO,EACP,QAAQ,GACT,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC"}