@metamask/design-system-react-native 0.1.0 → 0.3.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 (87) hide show
  1. package/CHANGELOG.md +39 -1
  2. package/dist/components/AvatarAccount/AvatarAccount.cjs +1 -1
  3. package/dist/components/AvatarAccount/AvatarAccount.cjs.map +1 -1
  4. package/dist/components/AvatarAccount/AvatarAccount.mjs +1 -1
  5. package/dist/components/AvatarAccount/AvatarAccount.mjs.map +1 -1
  6. package/dist/components/Box/Box.cjs +22 -5
  7. package/dist/components/Box/Box.cjs.map +1 -1
  8. package/dist/components/Box/Box.constants.cjs +218 -1
  9. package/dist/components/Box/Box.constants.cjs.map +1 -1
  10. package/dist/components/Box/Box.constants.d.cts +16 -1
  11. package/dist/components/Box/Box.constants.d.cts.map +1 -1
  12. package/dist/components/Box/Box.constants.d.mts +16 -1
  13. package/dist/components/Box/Box.constants.d.mts.map +1 -1
  14. package/dist/components/Box/Box.constants.mjs +217 -0
  15. package/dist/components/Box/Box.constants.mjs.map +1 -1
  16. package/dist/components/Box/Box.d.cts +1 -1
  17. package/dist/components/Box/Box.d.cts.map +1 -1
  18. package/dist/components/Box/Box.d.mts +1 -1
  19. package/dist/components/Box/Box.d.mts.map +1 -1
  20. package/dist/components/Box/Box.mjs +23 -6
  21. package/dist/components/Box/Box.mjs.map +1 -1
  22. package/dist/components/Box/Box.types.cjs.map +1 -1
  23. package/dist/components/Box/Box.types.d.cts +84 -1
  24. package/dist/components/Box/Box.types.d.cts.map +1 -1
  25. package/dist/components/Box/Box.types.d.mts +84 -1
  26. package/dist/components/Box/Box.types.d.mts.map +1 -1
  27. package/dist/components/Box/Box.types.mjs.map +1 -1
  28. package/dist/components/Box/index.cjs.map +1 -1
  29. package/dist/components/Box/index.d.cts +1 -1
  30. package/dist/components/Box/index.d.cts.map +1 -1
  31. package/dist/components/Box/index.d.mts +1 -1
  32. package/dist/components/Box/index.d.mts.map +1 -1
  33. package/dist/components/Box/index.mjs.map +1 -1
  34. package/dist/components/ButtonBase/ButtonBase.cjs +3 -4
  35. package/dist/components/ButtonBase/ButtonBase.cjs.map +1 -1
  36. package/dist/components/ButtonBase/ButtonBase.d.cts.map +1 -1
  37. package/dist/components/ButtonBase/ButtonBase.d.mts.map +1 -1
  38. package/dist/components/ButtonBase/ButtonBase.mjs +1 -2
  39. package/dist/components/ButtonBase/ButtonBase.mjs.map +1 -1
  40. package/dist/components/Checkbox/Checkbox.cjs +1 -1
  41. package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
  42. package/dist/components/Checkbox/Checkbox.mjs +1 -1
  43. package/dist/components/Checkbox/Checkbox.mjs.map +1 -1
  44. package/dist/components/Icon/Icon.assets.cjs +10 -0
  45. package/dist/components/Icon/Icon.assets.cjs.map +1 -1
  46. package/dist/components/Icon/Icon.assets.d.cts.map +1 -1
  47. package/dist/components/Icon/Icon.assets.d.mts.map +1 -1
  48. package/dist/components/Icon/Icon.assets.mjs +10 -0
  49. package/dist/components/Icon/Icon.assets.mjs.map +1 -1
  50. package/dist/components/Icon/assets/apple-logo.svg +1 -0
  51. package/dist/components/Icon/assets/backspace.svg +1 -0
  52. package/dist/components/Icon/assets/candlestick.svg +1 -0
  53. package/dist/components/Icon/assets/clear.svg +1 -0
  54. package/dist/components/Icon/assets/error.svg +1 -1
  55. package/dist/components/Icon/assets/hash-tag.svg +1 -1
  56. package/dist/components/Icon/assets/metamask-fox-outline.svg +1 -0
  57. package/dist/components/Text/Text.constants.cjs +9 -0
  58. package/dist/components/Text/Text.constants.cjs.map +1 -1
  59. package/dist/components/Text/Text.constants.d.cts.map +1 -1
  60. package/dist/components/Text/Text.constants.d.mts.map +1 -1
  61. package/dist/components/Text/Text.constants.mjs +9 -0
  62. package/dist/components/Text/Text.constants.mjs.map +1 -1
  63. package/dist/components/Text/Text.types.cjs.map +1 -1
  64. package/dist/components/Text/Text.types.d.cts +2 -2
  65. package/dist/components/Text/Text.types.d.mts +2 -2
  66. package/dist/components/Text/Text.types.mjs.map +1 -1
  67. package/dist/components/TextButton/TextButton.cjs +1 -0
  68. package/dist/components/TextButton/TextButton.cjs.map +1 -1
  69. package/dist/components/TextButton/TextButton.d.cts.map +1 -1
  70. package/dist/components/TextButton/TextButton.d.mts.map +1 -1
  71. package/dist/components/TextButton/TextButton.mjs +1 -0
  72. package/dist/components/TextButton/TextButton.mjs.map +1 -1
  73. package/dist/components/temp-components/Jazzicon/Jazzicon.cjs +4 -1
  74. package/dist/components/temp-components/Jazzicon/Jazzicon.cjs.map +1 -1
  75. package/dist/components/temp-components/Jazzicon/Jazzicon.d.cts.map +1 -1
  76. package/dist/components/temp-components/Jazzicon/Jazzicon.d.mts.map +1 -1
  77. package/dist/components/temp-components/Jazzicon/Jazzicon.mjs +4 -1
  78. package/dist/components/temp-components/Jazzicon/Jazzicon.mjs.map +1 -1
  79. package/dist/types/index.cjs +145 -1
  80. package/dist/types/index.cjs.map +1 -1
  81. package/dist/types/index.d.cts +143 -1
  82. package/dist/types/index.d.cts.map +1 -1
  83. package/dist/types/index.d.mts +143 -1
  84. package/dist/types/index.d.mts.map +1 -1
  85. package/dist/types/index.mjs +144 -0
  86. package/dist/types/index.mjs.map +1 -1
  87. package/package.json +8 -7
@@ -13,4 +13,221 @@ export const TWCLASSMAP_BOX_GAP = {
13
13
  11: 'gap-11',
14
14
  12: 'gap-12',
15
15
  };
16
+ export const TWCLASSMAP_BOX_MARGIN = {
17
+ 0: 'm-0',
18
+ 1: 'm-1',
19
+ 2: 'm-2',
20
+ 3: 'm-3',
21
+ 4: 'm-4',
22
+ 5: 'm-5',
23
+ 6: 'm-6',
24
+ 7: 'm-7',
25
+ 8: 'm-8',
26
+ 9: 'm-9',
27
+ 10: 'm-10',
28
+ 11: 'm-11',
29
+ 12: 'm-12',
30
+ };
31
+ export const TWCLASSMAP_BOX_MARGIN_TOP = {
32
+ 0: 'mt-0',
33
+ 1: 'mt-1',
34
+ 2: 'mt-2',
35
+ 3: 'mt-3',
36
+ 4: 'mt-4',
37
+ 5: 'mt-5',
38
+ 6: 'mt-6',
39
+ 7: 'mt-7',
40
+ 8: 'mt-8',
41
+ 9: 'mt-9',
42
+ 10: 'mt-10',
43
+ 11: 'mt-11',
44
+ 12: 'mt-12',
45
+ };
46
+ export const TWCLASSMAP_BOX_MARGIN_RIGHT = {
47
+ 0: 'mr-0',
48
+ 1: 'mr-1',
49
+ 2: 'mr-2',
50
+ 3: 'mr-3',
51
+ 4: 'mr-4',
52
+ 5: 'mr-5',
53
+ 6: 'mr-6',
54
+ 7: 'mr-7',
55
+ 8: 'mr-8',
56
+ 9: 'mr-9',
57
+ 10: 'mr-10',
58
+ 11: 'mr-11',
59
+ 12: 'mr-12',
60
+ };
61
+ export const TWCLASSMAP_BOX_MARGIN_BOTTOM = {
62
+ 0: 'mb-0',
63
+ 1: 'mb-1',
64
+ 2: 'mb-2',
65
+ 3: 'mb-3',
66
+ 4: 'mb-4',
67
+ 5: 'mb-5',
68
+ 6: 'mb-6',
69
+ 7: 'mb-7',
70
+ 8: 'mb-8',
71
+ 9: 'mb-9',
72
+ 10: 'mb-10',
73
+ 11: 'mb-11',
74
+ 12: 'mb-12',
75
+ };
76
+ export const TWCLASSMAP_BOX_MARGIN_LEFT = {
77
+ 0: 'ml-0',
78
+ 1: 'ml-1',
79
+ 2: 'ml-2',
80
+ 3: 'ml-3',
81
+ 4: 'ml-4',
82
+ 5: 'ml-5',
83
+ 6: 'ml-6',
84
+ 7: 'ml-7',
85
+ 8: 'ml-8',
86
+ 9: 'ml-9',
87
+ 10: 'ml-10',
88
+ 11: 'ml-11',
89
+ 12: 'ml-12',
90
+ };
91
+ export const TWCLASSMAP_BOX_MARGIN_HORIZONTAL = {
92
+ 0: 'mx-0',
93
+ 1: 'mx-1',
94
+ 2: 'mx-2',
95
+ 3: 'mx-3',
96
+ 4: 'mx-4',
97
+ 5: 'mx-5',
98
+ 6: 'mx-6',
99
+ 7: 'mx-7',
100
+ 8: 'mx-8',
101
+ 9: 'mx-9',
102
+ 10: 'mx-10',
103
+ 11: 'mx-11',
104
+ 12: 'mx-12',
105
+ };
106
+ export const TWCLASSMAP_BOX_MARGIN_VERTICAL = {
107
+ 0: 'my-0',
108
+ 1: 'my-1',
109
+ 2: 'my-2',
110
+ 3: 'my-3',
111
+ 4: 'my-4',
112
+ 5: 'my-5',
113
+ 6: 'my-6',
114
+ 7: 'my-7',
115
+ 8: 'my-8',
116
+ 9: 'my-9',
117
+ 10: 'my-10',
118
+ 11: 'my-11',
119
+ 12: 'my-12',
120
+ };
121
+ export const TWCLASSMAP_BOX_PADDING = {
122
+ 0: 'p-0',
123
+ 1: 'p-1',
124
+ 2: 'p-2',
125
+ 3: 'p-3',
126
+ 4: 'p-4',
127
+ 5: 'p-5',
128
+ 6: 'p-6',
129
+ 7: 'p-7',
130
+ 8: 'p-8',
131
+ 9: 'p-9',
132
+ 10: 'p-10',
133
+ 11: 'p-11',
134
+ 12: 'p-12',
135
+ };
136
+ export const TWCLASSMAP_BOX_PADDING_TOP = {
137
+ 0: 'pt-0',
138
+ 1: 'pt-1',
139
+ 2: 'pt-2',
140
+ 3: 'pt-3',
141
+ 4: 'pt-4',
142
+ 5: 'pt-5',
143
+ 6: 'pt-6',
144
+ 7: 'pt-7',
145
+ 8: 'pt-8',
146
+ 9: 'pt-9',
147
+ 10: 'pt-10',
148
+ 11: 'pt-11',
149
+ 12: 'pt-12',
150
+ };
151
+ export const TWCLASSMAP_BOX_PADDING_RIGHT = {
152
+ 0: 'pr-0',
153
+ 1: 'pr-1',
154
+ 2: 'pr-2',
155
+ 3: 'pr-3',
156
+ 4: 'pr-4',
157
+ 5: 'pr-5',
158
+ 6: 'pr-6',
159
+ 7: 'pr-7',
160
+ 8: 'pr-8',
161
+ 9: 'pr-9',
162
+ 10: 'pr-10',
163
+ 11: 'pr-11',
164
+ 12: 'pr-12',
165
+ };
166
+ export const TWCLASSMAP_BOX_PADDING_BOTTOM = {
167
+ 0: 'pb-0',
168
+ 1: 'pb-1',
169
+ 2: 'pb-2',
170
+ 3: 'pb-3',
171
+ 4: 'pb-4',
172
+ 5: 'pb-5',
173
+ 6: 'pb-6',
174
+ 7: 'pb-7',
175
+ 8: 'pb-8',
176
+ 9: 'pb-9',
177
+ 10: 'pb-10',
178
+ 11: 'pb-11',
179
+ 12: 'pb-12',
180
+ };
181
+ export const TWCLASSMAP_BOX_PADDING_LEFT = {
182
+ 0: 'pl-0',
183
+ 1: 'pl-1',
184
+ 2: 'pl-2',
185
+ 3: 'pl-3',
186
+ 4: 'pl-4',
187
+ 5: 'pl-5',
188
+ 6: 'pl-6',
189
+ 7: 'pl-7',
190
+ 8: 'pl-8',
191
+ 9: 'pl-9',
192
+ 10: 'pl-10',
193
+ 11: 'pl-11',
194
+ 12: 'pl-12',
195
+ };
196
+ export const TWCLASSMAP_BOX_PADDING_HORIZONTAL = {
197
+ 0: 'px-0',
198
+ 1: 'px-1',
199
+ 2: 'px-2',
200
+ 3: 'px-3',
201
+ 4: 'px-4',
202
+ 5: 'px-5',
203
+ 6: 'px-6',
204
+ 7: 'px-7',
205
+ 8: 'px-8',
206
+ 9: 'px-9',
207
+ 10: 'px-10',
208
+ 11: 'px-11',
209
+ 12: 'px-12',
210
+ };
211
+ export const TWCLASSMAP_BOX_PADDING_VERTICAL = {
212
+ 0: 'py-0',
213
+ 1: 'py-1',
214
+ 2: 'py-2',
215
+ 3: 'py-3',
216
+ 4: 'py-4',
217
+ 5: 'py-5',
218
+ 6: 'py-6',
219
+ 7: 'py-7',
220
+ 8: 'py-8',
221
+ 9: 'py-9',
222
+ 10: 'py-10',
223
+ 11: 'py-11',
224
+ 12: 'py-12',
225
+ };
226
+ export const TWCLASSMAP_BOX_BORDER_WIDTH = {
227
+ 0: 'border-0',
228
+ 1: 'border',
229
+ 2: 'border-2',
230
+ 4: 'border-4',
231
+ 8: 'border-8',
232
+ };
16
233
  //# sourceMappingURL=Box.constants.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Box.constants.mjs","sourceRoot":"","sources":["../../../src/components/Box/Box.constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAA+B;IAC5D,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;CACb,CAAC","sourcesContent":["import type { BoxSpacing } from '../../types';\n\nexport const TWCLASSMAP_BOX_GAP: Record<BoxSpacing, string> = {\n 0: 'gap-0',\n 1: 'gap-1',\n 2: 'gap-2',\n 3: 'gap-3',\n 4: 'gap-4',\n 5: 'gap-5',\n 6: 'gap-6',\n 7: 'gap-7',\n 8: 'gap-8',\n 9: 'gap-9',\n 10: 'gap-10',\n 11: 'gap-11',\n 12: 'gap-12',\n};\n"]}
1
+ {"version":3,"file":"Box.constants.mjs","sourceRoot":"","sources":["../../../src/components/Box/Box.constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAA+B;IAC5D,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAA+B;IAC/D,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,KAAK;IACR,CAAC,EAA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UAAU;IACb,CAAC,EAAE,UAAU;CACd,CAAC","sourcesContent":["import type { BoxSpacing, BoxBorderWidth } from '../../types';\n\nexport const TWCLASSMAP_BOX_GAP: Record<BoxSpacing, string> = {\n 0: 'gap-0',\n 1: 'gap-1',\n 2: 'gap-2',\n 3: 'gap-3',\n 4: 'gap-4',\n 5: 'gap-5',\n 6: 'gap-6',\n 7: 'gap-7',\n 8: 'gap-8',\n 9: 'gap-9',\n 10: 'gap-10',\n 11: 'gap-11',\n 12: 'gap-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN: Record<BoxSpacing, string> = {\n 0: 'm-0',\n 1: 'm-1',\n 2: 'm-2',\n 3: 'm-3',\n 4: 'm-4',\n 5: 'm-5',\n 6: 'm-6',\n 7: 'm-7',\n 8: 'm-8',\n 9: 'm-9',\n 10: 'm-10',\n 11: 'm-11',\n 12: 'm-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_TOP: Record<BoxSpacing, string> = {\n 0: 'mt-0',\n 1: 'mt-1',\n 2: 'mt-2',\n 3: 'mt-3',\n 4: 'mt-4',\n 5: 'mt-5',\n 6: 'mt-6',\n 7: 'mt-7',\n 8: 'mt-8',\n 9: 'mt-9',\n 10: 'mt-10',\n 11: 'mt-11',\n 12: 'mt-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_RIGHT: Record<BoxSpacing, string> = {\n 0: 'mr-0',\n 1: 'mr-1',\n 2: 'mr-2',\n 3: 'mr-3',\n 4: 'mr-4',\n 5: 'mr-5',\n 6: 'mr-6',\n 7: 'mr-7',\n 8: 'mr-8',\n 9: 'mr-9',\n 10: 'mr-10',\n 11: 'mr-11',\n 12: 'mr-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_BOTTOM: Record<BoxSpacing, string> = {\n 0: 'mb-0',\n 1: 'mb-1',\n 2: 'mb-2',\n 3: 'mb-3',\n 4: 'mb-4',\n 5: 'mb-5',\n 6: 'mb-6',\n 7: 'mb-7',\n 8: 'mb-8',\n 9: 'mb-9',\n 10: 'mb-10',\n 11: 'mb-11',\n 12: 'mb-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_LEFT: Record<BoxSpacing, string> = {\n 0: 'ml-0',\n 1: 'ml-1',\n 2: 'ml-2',\n 3: 'ml-3',\n 4: 'ml-4',\n 5: 'ml-5',\n 6: 'ml-6',\n 7: 'ml-7',\n 8: 'ml-8',\n 9: 'ml-9',\n 10: 'ml-10',\n 11: 'ml-11',\n 12: 'ml-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_HORIZONTAL: Record<BoxSpacing, string> = {\n 0: 'mx-0',\n 1: 'mx-1',\n 2: 'mx-2',\n 3: 'mx-3',\n 4: 'mx-4',\n 5: 'mx-5',\n 6: 'mx-6',\n 7: 'mx-7',\n 8: 'mx-8',\n 9: 'mx-9',\n 10: 'mx-10',\n 11: 'mx-11',\n 12: 'mx-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_VERTICAL: Record<BoxSpacing, string> = {\n 0: 'my-0',\n 1: 'my-1',\n 2: 'my-2',\n 3: 'my-3',\n 4: 'my-4',\n 5: 'my-5',\n 6: 'my-6',\n 7: 'my-7',\n 8: 'my-8',\n 9: 'my-9',\n 10: 'my-10',\n 11: 'my-11',\n 12: 'my-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING: Record<BoxSpacing, string> = {\n 0: 'p-0',\n 1: 'p-1',\n 2: 'p-2',\n 3: 'p-3',\n 4: 'p-4',\n 5: 'p-5',\n 6: 'p-6',\n 7: 'p-7',\n 8: 'p-8',\n 9: 'p-9',\n 10: 'p-10',\n 11: 'p-11',\n 12: 'p-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_TOP: Record<BoxSpacing, string> = {\n 0: 'pt-0',\n 1: 'pt-1',\n 2: 'pt-2',\n 3: 'pt-3',\n 4: 'pt-4',\n 5: 'pt-5',\n 6: 'pt-6',\n 7: 'pt-7',\n 8: 'pt-8',\n 9: 'pt-9',\n 10: 'pt-10',\n 11: 'pt-11',\n 12: 'pt-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_RIGHT: Record<BoxSpacing, string> = {\n 0: 'pr-0',\n 1: 'pr-1',\n 2: 'pr-2',\n 3: 'pr-3',\n 4: 'pr-4',\n 5: 'pr-5',\n 6: 'pr-6',\n 7: 'pr-7',\n 8: 'pr-8',\n 9: 'pr-9',\n 10: 'pr-10',\n 11: 'pr-11',\n 12: 'pr-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_BOTTOM: Record<BoxSpacing, string> = {\n 0: 'pb-0',\n 1: 'pb-1',\n 2: 'pb-2',\n 3: 'pb-3',\n 4: 'pb-4',\n 5: 'pb-5',\n 6: 'pb-6',\n 7: 'pb-7',\n 8: 'pb-8',\n 9: 'pb-9',\n 10: 'pb-10',\n 11: 'pb-11',\n 12: 'pb-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_LEFT: Record<BoxSpacing, string> = {\n 0: 'pl-0',\n 1: 'pl-1',\n 2: 'pl-2',\n 3: 'pl-3',\n 4: 'pl-4',\n 5: 'pl-5',\n 6: 'pl-6',\n 7: 'pl-7',\n 8: 'pl-8',\n 9: 'pl-9',\n 10: 'pl-10',\n 11: 'pl-11',\n 12: 'pl-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_HORIZONTAL: Record<BoxSpacing, string> = {\n 0: 'px-0',\n 1: 'px-1',\n 2: 'px-2',\n 3: 'px-3',\n 4: 'px-4',\n 5: 'px-5',\n 6: 'px-6',\n 7: 'px-7',\n 8: 'px-8',\n 9: 'px-9',\n 10: 'px-10',\n 11: 'px-11',\n 12: 'px-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_VERTICAL: Record<BoxSpacing, string> = {\n 0: 'py-0',\n 1: 'py-1',\n 2: 'py-2',\n 3: 'py-3',\n 4: 'py-4',\n 5: 'py-5',\n 6: 'py-6',\n 7: 'py-7',\n 8: 'py-8',\n 9: 'py-9',\n 10: 'py-10',\n 11: 'py-11',\n 12: 'py-12',\n};\n\nexport const TWCLASSMAP_BOX_BORDER_WIDTH: Record<BoxBorderWidth, string> = {\n 0: 'border-0',\n 1: 'border',\n 2: 'border-2',\n 4: 'border-4',\n 8: 'border-8',\n};\n"]}
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import type { BoxProps } from "./Box.types.cjs";
3
- export declare const Box: ({ flexDirection, flexWrap, gap, alignItems, justifyContent, twClassName, style, children, ...props }: BoxProps) => React.JSX.Element;
3
+ export declare const Box: ({ flexDirection, flexWrap, gap, alignItems, justifyContent, margin, marginTop, marginRight, marginBottom, marginLeft, marginHorizontal, marginVertical, padding, paddingTop, paddingRight, paddingBottom, paddingLeft, paddingHorizontal, paddingVertical, borderWidth, borderColor, backgroundColor, twClassName, style, children, ...props }: BoxProps) => React.JSX.Element;
4
4
  //# sourceMappingURL=Box.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Box.d.cts","sourceRoot":"","sources":["../../../src/components/Box/Box.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,QAAQ,EAAE,wBAAoB;AAE5C,eAAO,MAAM,GAAG,yGAUb,QAAQ,sBAgBV,CAAC"}
1
+ {"version":3,"file":"Box.d.cts","sourceRoot":"","sources":["../../../src/components/Box/Box.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAqB1B,OAAO,KAAK,EAAE,QAAQ,EAAE,wBAAoB;AAE5C,eAAO,MAAM,GAAG,mVA2Bb,QAAQ,sBAiCV,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import type { BoxProps } from "./Box.types.mjs";
3
- export declare const Box: ({ flexDirection, flexWrap, gap, alignItems, justifyContent, twClassName, style, children, ...props }: BoxProps) => React.JSX.Element;
3
+ export declare const Box: ({ flexDirection, flexWrap, gap, alignItems, justifyContent, margin, marginTop, marginRight, marginBottom, marginLeft, marginHorizontal, marginVertical, padding, paddingTop, paddingRight, paddingBottom, paddingLeft, paddingHorizontal, paddingVertical, borderWidth, borderColor, backgroundColor, twClassName, style, children, ...props }: BoxProps) => React.JSX.Element;
4
4
  //# sourceMappingURL=Box.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Box.d.mts","sourceRoot":"","sources":["../../../src/components/Box/Box.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,QAAQ,EAAE,wBAAoB;AAE5C,eAAO,MAAM,GAAG,yGAUb,QAAQ,sBAgBV,CAAC"}
1
+ {"version":3,"file":"Box.d.mts","sourceRoot":"","sources":["../../../src/components/Box/Box.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAqB1B,OAAO,KAAK,EAAE,QAAQ,EAAE,wBAAoB;AAE5C,eAAO,MAAM,GAAG,mVA2Bb,QAAQ,sBAiCV,CAAC"}
@@ -8,18 +8,35 @@ import { useTailwind } from "@metamask/design-system-twrnc-preset";
8
8
  import $React from "react";
9
9
  const React = $importDefault($React);
10
10
  import { View } from "react-native/index.js";
11
- import { TWCLASSMAP_BOX_GAP } from "./Box.constants.mjs";
12
- export const Box = ({ flexDirection, flexWrap, gap, alignItems, justifyContent, twClassName = '', style, children, ...props }) => {
11
+ import { TWCLASSMAP_BOX_GAP, TWCLASSMAP_BOX_MARGIN, TWCLASSMAP_BOX_MARGIN_TOP, TWCLASSMAP_BOX_MARGIN_RIGHT, TWCLASSMAP_BOX_MARGIN_BOTTOM, TWCLASSMAP_BOX_MARGIN_LEFT, TWCLASSMAP_BOX_MARGIN_HORIZONTAL, TWCLASSMAP_BOX_MARGIN_VERTICAL, TWCLASSMAP_BOX_PADDING, TWCLASSMAP_BOX_PADDING_TOP, TWCLASSMAP_BOX_PADDING_RIGHT, TWCLASSMAP_BOX_PADDING_BOTTOM, TWCLASSMAP_BOX_PADDING_LEFT, TWCLASSMAP_BOX_PADDING_HORIZONTAL, TWCLASSMAP_BOX_PADDING_VERTICAL, TWCLASSMAP_BOX_BORDER_WIDTH } from "./Box.constants.mjs";
12
+ export const Box = ({ flexDirection, flexWrap, gap, alignItems, justifyContent, margin, marginTop, marginRight, marginBottom, marginLeft, marginHorizontal, marginVertical, padding, paddingTop, paddingRight, paddingBottom, paddingLeft, paddingHorizontal, paddingVertical, borderWidth, borderColor, backgroundColor, twClassName = '', style, children, ...props }) => {
13
13
  const tw = useTailwind();
14
- const twContainerClassNames = `
14
+ const twContainerClassNames = tw `
15
15
  flex
16
16
  ${flexDirection ?? ''}
17
17
  ${flexWrap ?? ''}
18
18
  ${gap !== undefined ? TWCLASSMAP_BOX_GAP[gap] : ''}
19
19
  ${alignItems ?? ''}
20
- ${justifyContent ?? ''}
21
- ${twClassName}`.trim();
22
- return (<View style={[tw `${twContainerClassNames}`, style]} {...props}>
20
+ ${justifyContent ?? ''}
21
+ ${margin !== undefined ? TWCLASSMAP_BOX_MARGIN[margin] : ''}
22
+ ${marginTop !== undefined ? TWCLASSMAP_BOX_MARGIN_TOP[marginTop] : ''}
23
+ ${marginRight !== undefined ? TWCLASSMAP_BOX_MARGIN_RIGHT[marginRight] : ''}
24
+ ${marginBottom !== undefined ? TWCLASSMAP_BOX_MARGIN_BOTTOM[marginBottom] : ''}
25
+ ${marginLeft !== undefined ? TWCLASSMAP_BOX_MARGIN_LEFT[marginLeft] : ''}
26
+ ${marginHorizontal !== undefined ? TWCLASSMAP_BOX_MARGIN_HORIZONTAL[marginHorizontal] : ''}
27
+ ${marginVertical !== undefined ? TWCLASSMAP_BOX_MARGIN_VERTICAL[marginVertical] : ''}
28
+ ${padding !== undefined ? TWCLASSMAP_BOX_PADDING[padding] : ''}
29
+ ${paddingTop !== undefined ? TWCLASSMAP_BOX_PADDING_TOP[paddingTop] : ''}
30
+ ${paddingRight !== undefined ? TWCLASSMAP_BOX_PADDING_RIGHT[paddingRight] : ''}
31
+ ${paddingBottom !== undefined ? TWCLASSMAP_BOX_PADDING_BOTTOM[paddingBottom] : ''}
32
+ ${paddingLeft !== undefined ? TWCLASSMAP_BOX_PADDING_LEFT[paddingLeft] : ''}
33
+ ${paddingHorizontal !== undefined ? TWCLASSMAP_BOX_PADDING_HORIZONTAL[paddingHorizontal] : ''}
34
+ ${paddingVertical !== undefined ? TWCLASSMAP_BOX_PADDING_VERTICAL[paddingVertical] : ''}
35
+ ${borderWidth !== undefined ? TWCLASSMAP_BOX_BORDER_WIDTH[borderWidth] : ''}
36
+ ${borderColor ?? ''}
37
+ ${backgroundColor ?? ''}
38
+ ${twClassName}`;
39
+ return (<View style={[twContainerClassNames, style]} {...props}>
23
40
  {children}
24
41
  </View>);
25
42
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Box.mjs","sourceRoot":"","sources":["../../../src/components/Box/Box.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAEpC,OAAO,EAAE,kBAAkB,EAAE,4BAAwB;AAGrD,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,EAClB,aAAa,EACb,QAAQ,EACR,GAAG,EACH,UAAU,EACV,cAAc,EACd,WAAW,GAAG,EAAE,EAChB,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACC,EAAE,EAAE;IACb,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IACzB,MAAM,qBAAqB,GAAG;;MAE1B,aAAa,IAAI,EAAE;MACnB,QAAQ,IAAI,EAAE;MACd,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE;MAChD,UAAU,IAAI,EAAE;MAChB,cAAc,IAAI,EAAE;MACpB,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;IAEzB,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA,GAAG,qBAAqB,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAC5D;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { TWCLASSMAP_BOX_GAP } from './Box.constants';\nimport type { BoxProps } from './Box.types';\n\nexport const Box = ({\n flexDirection,\n flexWrap,\n gap,\n alignItems,\n justifyContent,\n twClassName = '',\n style,\n children,\n ...props\n}: BoxProps) => {\n const tw = useTailwind();\n const twContainerClassNames = `\n flex\n ${flexDirection ?? ''} \n ${flexWrap ?? ''} \n ${gap !== undefined ? TWCLASSMAP_BOX_GAP[gap] : ''} \n ${alignItems ?? ''} \n ${justifyContent ?? ''} \n ${twClassName}`.trim();\n\n return (\n <View style={[tw`${twContainerClassNames}`, style]} {...props}>\n {children}\n </View>\n );\n};\n"]}
1
+ {"version":3,"file":"Box.mjs","sourceRoot":"","sources":["../../../src/components/Box/Box.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAEpC,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,yBAAyB,EACzB,2BAA2B,EAC3B,4BAA4B,EAC5B,0BAA0B,EAC1B,gCAAgC,EAChC,8BAA8B,EAC9B,sBAAsB,EACtB,0BAA0B,EAC1B,4BAA4B,EAC5B,6BAA6B,EAC7B,2BAA2B,EAC3B,iCAAiC,EACjC,+BAA+B,EAC/B,2BAA2B,EAC5B,4BAAwB;AAGzB,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,EAClB,aAAa,EACb,QAAQ,EACR,GAAG,EACH,UAAU,EACV,cAAc,EACd,MAAM,EACN,SAAS,EACT,WAAW,EACX,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,OAAO,EACP,UAAU,EACV,YAAY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CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE;MACtE,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,4BAA4B,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE;MAC5E,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,6BAA6B,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAAE;MAC/E,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,2BAA2B,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE;MACzE,iBAAiB,KAAK,SAAS,CAAC,CAAC,CAAC,iCAAiC,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,EAAE;MAC3F,eAAe,KAAK,SAAS,CAAC,CAAC,CAAC,+BAA+B,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE;MACrF,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,2BAA2B,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE;MACzE,WAAW,IAAI,EAAE;MACjB,eAAe,IAAI,EAAE;MACrB,WAAW,EAAE,CAAC;IAElB,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CACrD;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport {\n TWCLASSMAP_BOX_GAP,\n TWCLASSMAP_BOX_MARGIN,\n TWCLASSMAP_BOX_MARGIN_TOP,\n TWCLASSMAP_BOX_MARGIN_RIGHT,\n TWCLASSMAP_BOX_MARGIN_BOTTOM,\n TWCLASSMAP_BOX_MARGIN_LEFT,\n TWCLASSMAP_BOX_MARGIN_HORIZONTAL,\n TWCLASSMAP_BOX_MARGIN_VERTICAL,\n TWCLASSMAP_BOX_PADDING,\n TWCLASSMAP_BOX_PADDING_TOP,\n TWCLASSMAP_BOX_PADDING_RIGHT,\n TWCLASSMAP_BOX_PADDING_BOTTOM,\n TWCLASSMAP_BOX_PADDING_LEFT,\n TWCLASSMAP_BOX_PADDING_HORIZONTAL,\n TWCLASSMAP_BOX_PADDING_VERTICAL,\n TWCLASSMAP_BOX_BORDER_WIDTH,\n} from './Box.constants';\nimport type { BoxProps } from './Box.types';\n\nexport const Box = ({\n flexDirection,\n flexWrap,\n gap,\n alignItems,\n justifyContent,\n margin,\n marginTop,\n marginRight,\n marginBottom,\n marginLeft,\n marginHorizontal,\n marginVertical,\n padding,\n paddingTop,\n paddingRight,\n paddingBottom,\n paddingLeft,\n paddingHorizontal,\n paddingVertical,\n borderWidth,\n borderColor,\n backgroundColor,\n twClassName = '',\n style,\n children,\n ...props\n}: BoxProps) => {\n const tw = useTailwind();\n const twContainerClassNames = tw`\n flex\n ${flexDirection ?? ''} \n ${flexWrap ?? ''} \n ${gap !== undefined ? TWCLASSMAP_BOX_GAP[gap] : ''} \n ${alignItems ?? ''} \n ${justifyContent ?? ''}\n ${margin !== undefined ? TWCLASSMAP_BOX_MARGIN[margin] : ''}\n ${marginTop !== undefined ? TWCLASSMAP_BOX_MARGIN_TOP[marginTop] : ''}\n ${marginRight !== undefined ? TWCLASSMAP_BOX_MARGIN_RIGHT[marginRight] : ''}\n ${marginBottom !== undefined ? TWCLASSMAP_BOX_MARGIN_BOTTOM[marginBottom] : ''}\n ${marginLeft !== undefined ? TWCLASSMAP_BOX_MARGIN_LEFT[marginLeft] : ''}\n ${marginHorizontal !== undefined ? TWCLASSMAP_BOX_MARGIN_HORIZONTAL[marginHorizontal] : ''}\n ${marginVertical !== undefined ? TWCLASSMAP_BOX_MARGIN_VERTICAL[marginVertical] : ''}\n ${padding !== undefined ? TWCLASSMAP_BOX_PADDING[padding] : ''}\n ${paddingTop !== undefined ? TWCLASSMAP_BOX_PADDING_TOP[paddingTop] : ''}\n ${paddingRight !== undefined ? TWCLASSMAP_BOX_PADDING_RIGHT[paddingRight] : ''}\n ${paddingBottom !== undefined ? TWCLASSMAP_BOX_PADDING_BOTTOM[paddingBottom] : ''}\n ${paddingLeft !== undefined ? TWCLASSMAP_BOX_PADDING_LEFT[paddingLeft] : ''}\n ${paddingHorizontal !== undefined ? TWCLASSMAP_BOX_PADDING_HORIZONTAL[paddingHorizontal] : ''}\n ${paddingVertical !== undefined ? TWCLASSMAP_BOX_PADDING_VERTICAL[paddingVertical] : ''}\n ${borderWidth !== undefined ? TWCLASSMAP_BOX_BORDER_WIDTH[borderWidth] : ''}\n ${borderColor ?? ''}\n ${backgroundColor ?? ''}\n ${twClassName}`;\n\n return (\n <View style={[twContainerClassNames, style]} {...props}>\n {children}\n </View>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Box.types.cjs","sourceRoot":"","sources":["../../../src/components/Box/Box.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ViewProps } from 'react-native';\n\nimport type {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxSpacing,\n BoxAlignItems,\n BoxJustifyContent,\n} from '../../types';\n\nexport type BoxProps = {\n /**\n * The flexDirection style of the component.\n */\n flexDirection?: BoxFlexDirection;\n /**\n * The flexWrap style of the component.\n */\n flexWrap?: BoxFlexWrap;\n /**\n * The gap between the component's children.\n * Use 1-12 for a gap of 4px-48px.\n */\n gap?: BoxSpacing;\n /**\n * The alignItems style of the component.\n */\n alignItems?: BoxAlignItems;\n /**\n * The justifyContent style of the component.\n */\n justifyContent?: BoxJustifyContent;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & ViewProps;\n"]}
1
+ {"version":3,"file":"Box.types.cjs","sourceRoot":"","sources":["../../../src/components/Box/Box.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ViewProps } from 'react-native';\n\nimport type {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxSpacing,\n BoxBorderWidth,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n BoxBorderColor,\n} from '../../types';\n\nexport type BoxProps = {\n /**\n * The flexDirection style of the component.\n */\n flexDirection?: BoxFlexDirection;\n /**\n * The flexWrap style of the component.\n */\n flexWrap?: BoxFlexWrap;\n /**\n * The gap between the component's children.\n * Use 1-12 for a gap of 4px-48px.\n */\n gap?: BoxSpacing;\n /**\n * The alignItems style of the component.\n */\n alignItems?: BoxAlignItems;\n /**\n * The justifyContent style of the component.\n */\n justifyContent?: BoxJustifyContent;\n /**\n * The margin of the component.\n * Use 1-12 for margin of 4px-48px.\n */\n margin?: BoxSpacing;\n /**\n * The top margin of the component.\n * Use 1-12 for margin of 4px-48px.\n */\n marginTop?: BoxSpacing;\n /**\n * The right margin of the component.\n * Use 1-12 for margin of 4px-48px.\n */\n marginRight?: BoxSpacing;\n /**\n * The bottom margin of the component.\n * Use 1-12 for margin of 4px-48px.\n */\n marginBottom?: BoxSpacing;\n /**\n * The left margin of the component.\n * Use 1-12 for margin of 4px-48px.\n */\n marginLeft?: BoxSpacing;\n /**\n * The horizontal margin of the component.\n * Use 1-12 for margin of 4px-48px.\n */\n marginHorizontal?: BoxSpacing;\n /**\n * The vertical margin of the component.\n * Use 1-12 for margin of 4px-48px.\n */\n marginVertical?: BoxSpacing;\n /**\n * The padding of the component.\n * Use 1-12 for padding of 4px-48px.\n */\n padding?: BoxSpacing;\n /**\n * The top padding of the component.\n * Use 1-12 for padding of 4px-48px.\n */\n paddingTop?: BoxSpacing;\n /**\n * The right padding of the component.\n * Use 1-12 for padding of 4px-48px.\n */\n paddingRight?: BoxSpacing;\n /**\n * The bottom padding of the component.\n * Use 1-12 for padding of 4px-48px.\n */\n paddingBottom?: BoxSpacing;\n /**\n * The left padding of the component.\n * Use 1-12 for padding of 4px-48px.\n */\n paddingLeft?: BoxSpacing;\n /**\n * The horizontal padding of the component.\n * Use 1-12 for padding of 4px-48px.\n */\n paddingHorizontal?: BoxSpacing;\n /**\n * The vertical padding of the component.\n * Use 1-12 for padding of 4px-48px.\n */\n paddingVertical?: BoxSpacing;\n /**\n * The border width of the component.\n * Use 0, 1, 2, 4, or 8 for border width of 0px, 1px, 2px, 4px, or 8px.\n */\n borderWidth?: BoxBorderWidth;\n /**\n * The border color of the component.\n */\n borderColor?: BoxBorderColor;\n /**\n * The background color of the component.\n */\n backgroundColor?: BoxBackgroundColor;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & ViewProps;\n"]}
@@ -1,5 +1,5 @@
1
1
  import type { ViewProps } from "react-native/index.js";
2
- import type { BoxFlexDirection, BoxFlexWrap, BoxSpacing, BoxAlignItems, BoxJustifyContent } from "../../types/index.cjs";
2
+ import type { BoxFlexDirection, BoxFlexWrap, BoxSpacing, BoxBorderWidth, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor } from "../../types/index.cjs";
3
3
  export type BoxProps = {
4
4
  /**
5
5
  * The flexDirection style of the component.
@@ -22,6 +22,89 @@ export type BoxProps = {
22
22
  * The justifyContent style of the component.
23
23
  */
24
24
  justifyContent?: BoxJustifyContent;
25
+ /**
26
+ * The margin of the component.
27
+ * Use 1-12 for margin of 4px-48px.
28
+ */
29
+ margin?: BoxSpacing;
30
+ /**
31
+ * The top margin of the component.
32
+ * Use 1-12 for margin of 4px-48px.
33
+ */
34
+ marginTop?: BoxSpacing;
35
+ /**
36
+ * The right margin of the component.
37
+ * Use 1-12 for margin of 4px-48px.
38
+ */
39
+ marginRight?: BoxSpacing;
40
+ /**
41
+ * The bottom margin of the component.
42
+ * Use 1-12 for margin of 4px-48px.
43
+ */
44
+ marginBottom?: BoxSpacing;
45
+ /**
46
+ * The left margin of the component.
47
+ * Use 1-12 for margin of 4px-48px.
48
+ */
49
+ marginLeft?: BoxSpacing;
50
+ /**
51
+ * The horizontal margin of the component.
52
+ * Use 1-12 for margin of 4px-48px.
53
+ */
54
+ marginHorizontal?: BoxSpacing;
55
+ /**
56
+ * The vertical margin of the component.
57
+ * Use 1-12 for margin of 4px-48px.
58
+ */
59
+ marginVertical?: BoxSpacing;
60
+ /**
61
+ * The padding of the component.
62
+ * Use 1-12 for padding of 4px-48px.
63
+ */
64
+ padding?: BoxSpacing;
65
+ /**
66
+ * The top padding of the component.
67
+ * Use 1-12 for padding of 4px-48px.
68
+ */
69
+ paddingTop?: BoxSpacing;
70
+ /**
71
+ * The right padding of the component.
72
+ * Use 1-12 for padding of 4px-48px.
73
+ */
74
+ paddingRight?: BoxSpacing;
75
+ /**
76
+ * The bottom padding of the component.
77
+ * Use 1-12 for padding of 4px-48px.
78
+ */
79
+ paddingBottom?: BoxSpacing;
80
+ /**
81
+ * The left padding of the component.
82
+ * Use 1-12 for padding of 4px-48px.
83
+ */
84
+ paddingLeft?: BoxSpacing;
85
+ /**
86
+ * The horizontal padding of the component.
87
+ * Use 1-12 for padding of 4px-48px.
88
+ */
89
+ paddingHorizontal?: BoxSpacing;
90
+ /**
91
+ * The vertical padding of the component.
92
+ * Use 1-12 for padding of 4px-48px.
93
+ */
94
+ paddingVertical?: BoxSpacing;
95
+ /**
96
+ * The border width of the component.
97
+ * Use 0, 1, 2, 4, or 8 for border width of 0px, 1px, 2px, 4px, or 8px.
98
+ */
99
+ borderWidth?: BoxBorderWidth;
100
+ /**
101
+ * The border color of the component.
102
+ */
103
+ borderColor?: BoxBorderColor;
104
+ /**
105
+ * The background color of the component.
106
+ */
107
+ backgroundColor?: BoxBackgroundColor;
25
108
  /**
26
109
  * Optional prop to add twrnc overriding classNames.
27
110
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Box.types.d.cts","sourceRoot":"","sources":["../../../src/components/Box/Box.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAE9C,OAAO,KAAK,EACV,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,aAAa,EACb,iBAAiB,EAClB,8BAAoB;AAErB,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB;;;OAGG;IACH,GAAG,CAAC,EAAE,UAAU,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B;;OAEG;IACH,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"Box.types.d.cts","sourceRoot":"","sources":["../../../src/components/Box/Box.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAE9C,OAAO,KAAK,EACV,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACf,8BAAoB;AAErB,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB;;;OAGG;IACH,GAAG,CAAC,EAAE,UAAU,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B;;OAEG;IACH,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC;;;OAGG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB;;;OAGG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB;;;OAGG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,UAAU,CAAC;IAC9B;;;OAGG;IACH,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B;;;OAGG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B;;;OAGG;IACH,aAAa,CAAC,EAAE,UAAU,CAAC;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B;;;OAGG;IACH,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B;;;OAGG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B;;OAEG;IACH,eAAe,CAAC,EAAE,kBAAkB,CAAC;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { ViewProps } from "react-native/index.js";
2
- import type { BoxFlexDirection, BoxFlexWrap, BoxSpacing, BoxAlignItems, BoxJustifyContent } from "../../types/index.mjs";
2
+ import type { BoxFlexDirection, BoxFlexWrap, BoxSpacing, BoxBorderWidth, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor } from "../../types/index.mjs";
3
3
  export type BoxProps = {
4
4
  /**
5
5
  * The flexDirection style of the component.
@@ -22,6 +22,89 @@ export type BoxProps = {
22
22
  * The justifyContent style of the component.
23
23
  */
24
24
  justifyContent?: BoxJustifyContent;
25
+ /**
26
+ * The margin of the component.
27
+ * Use 1-12 for margin of 4px-48px.
28
+ */
29
+ margin?: BoxSpacing;
30
+ /**
31
+ * The top margin of the component.
32
+ * Use 1-12 for margin of 4px-48px.
33
+ */
34
+ marginTop?: BoxSpacing;
35
+ /**
36
+ * The right margin of the component.
37
+ * Use 1-12 for margin of 4px-48px.
38
+ */
39
+ marginRight?: BoxSpacing;
40
+ /**
41
+ * The bottom margin of the component.
42
+ * Use 1-12 for margin of 4px-48px.
43
+ */
44
+ marginBottom?: BoxSpacing;
45
+ /**
46
+ * The left margin of the component.
47
+ * Use 1-12 for margin of 4px-48px.
48
+ */
49
+ marginLeft?: BoxSpacing;
50
+ /**
51
+ * The horizontal margin of the component.
52
+ * Use 1-12 for margin of 4px-48px.
53
+ */
54
+ marginHorizontal?: BoxSpacing;
55
+ /**
56
+ * The vertical margin of the component.
57
+ * Use 1-12 for margin of 4px-48px.
58
+ */
59
+ marginVertical?: BoxSpacing;
60
+ /**
61
+ * The padding of the component.
62
+ * Use 1-12 for padding of 4px-48px.
63
+ */
64
+ padding?: BoxSpacing;
65
+ /**
66
+ * The top padding of the component.
67
+ * Use 1-12 for padding of 4px-48px.
68
+ */
69
+ paddingTop?: BoxSpacing;
70
+ /**
71
+ * The right padding of the component.
72
+ * Use 1-12 for padding of 4px-48px.
73
+ */
74
+ paddingRight?: BoxSpacing;
75
+ /**
76
+ * The bottom padding of the component.
77
+ * Use 1-12 for padding of 4px-48px.
78
+ */
79
+ paddingBottom?: BoxSpacing;
80
+ /**
81
+ * The left padding of the component.
82
+ * Use 1-12 for padding of 4px-48px.
83
+ */
84
+ paddingLeft?: BoxSpacing;
85
+ /**
86
+ * The horizontal padding of the component.
87
+ * Use 1-12 for padding of 4px-48px.
88
+ */
89
+ paddingHorizontal?: BoxSpacing;
90
+ /**
91
+ * The vertical padding of the component.
92
+ * Use 1-12 for padding of 4px-48px.
93
+ */
94
+ paddingVertical?: BoxSpacing;
95
+ /**
96
+ * The border width of the component.
97
+ * Use 0, 1, 2, 4, or 8 for border width of 0px, 1px, 2px, 4px, or 8px.
98
+ */
99
+ borderWidth?: BoxBorderWidth;
100
+ /**
101
+ * The border color of the component.
102
+ */
103
+ borderColor?: BoxBorderColor;
104
+ /**
105
+ * The background color of the component.
106
+ */
107
+ backgroundColor?: BoxBackgroundColor;
25
108
  /**
26
109
  * Optional prop to add twrnc overriding classNames.
27
110
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Box.types.d.mts","sourceRoot":"","sources":["../../../src/components/Box/Box.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAE9C,OAAO,KAAK,EACV,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,aAAa,EACb,iBAAiB,EAClB,8BAAoB;AAErB,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB;;;OAGG;IACH,GAAG,CAAC,EAAE,UAAU,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B;;OAEG;IACH,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"Box.types.d.mts","sourceRoot":"","sources":["../../../src/components/Box/Box.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAE9C,OAAO,KAAK,EACV,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACf,8BAAoB;AAErB,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB;;;OAGG;IACH,GAAG,CAAC,EAAE,UAAU,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B;;OAEG;IACH,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC;;;OAGG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB;;;OAGG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB;;;OAGG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,UAAU,CAAC;IAC9B;;;OAGG;IACH,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B;;;OAGG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B;;;OAGG;IACH,aAAa,CAAC,EAAE,UAAU,CAAC;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B;;;OAGG;IACH,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B;;;OAGG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B;;OAEG;IACH,eAAe,CAAC,EAAE,kBAAkB,CAAC;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Box.types.mjs","sourceRoot":"","sources":["../../../src/components/Box/Box.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ViewProps } from 'react-native';\n\nimport type {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxSpacing,\n BoxAlignItems,\n BoxJustifyContent,\n} from '../../types';\n\nexport type BoxProps = {\n /**\n * The flexDirection style of the component.\n */\n flexDirection?: BoxFlexDirection;\n /**\n * The flexWrap style of the component.\n */\n flexWrap?: BoxFlexWrap;\n /**\n * The gap between the component's children.\n * Use 1-12 for a gap of 4px-48px.\n */\n gap?: BoxSpacing;\n /**\n * The alignItems style of the component.\n */\n alignItems?: BoxAlignItems;\n /**\n * The justifyContent style of the component.\n */\n justifyContent?: BoxJustifyContent;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & ViewProps;\n"]}
1
+ {"version":3,"file":"Box.types.mjs","sourceRoot":"","sources":["../../../src/components/Box/Box.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ViewProps } from 'react-native';\n\nimport type {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxSpacing,\n BoxBorderWidth,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n BoxBorderColor,\n} from '../../types';\n\nexport type BoxProps = {\n /**\n * The flexDirection style of the component.\n */\n flexDirection?: BoxFlexDirection;\n /**\n * The flexWrap style of the component.\n */\n flexWrap?: BoxFlexWrap;\n /**\n * The gap between the component's children.\n * Use 1-12 for a gap of 4px-48px.\n */\n gap?: BoxSpacing;\n /**\n * The alignItems style of the component.\n */\n alignItems?: BoxAlignItems;\n /**\n * The justifyContent style of the component.\n */\n justifyContent?: BoxJustifyContent;\n /**\n * The margin of the component.\n * Use 1-12 for margin of 4px-48px.\n */\n margin?: BoxSpacing;\n /**\n * The top margin of the component.\n * Use 1-12 for margin of 4px-48px.\n */\n marginTop?: BoxSpacing;\n /**\n * The right margin of the component.\n * Use 1-12 for margin of 4px-48px.\n */\n marginRight?: BoxSpacing;\n /**\n * The bottom margin of the component.\n * Use 1-12 for margin of 4px-48px.\n */\n marginBottom?: BoxSpacing;\n /**\n * The left margin of the component.\n * Use 1-12 for margin of 4px-48px.\n */\n marginLeft?: BoxSpacing;\n /**\n * The horizontal margin of the component.\n * Use 1-12 for margin of 4px-48px.\n */\n marginHorizontal?: BoxSpacing;\n /**\n * The vertical margin of the component.\n * Use 1-12 for margin of 4px-48px.\n */\n marginVertical?: BoxSpacing;\n /**\n * The padding of the component.\n * Use 1-12 for padding of 4px-48px.\n */\n padding?: BoxSpacing;\n /**\n * The top padding of the component.\n * Use 1-12 for padding of 4px-48px.\n */\n paddingTop?: BoxSpacing;\n /**\n * The right padding of the component.\n * Use 1-12 for padding of 4px-48px.\n */\n paddingRight?: BoxSpacing;\n /**\n * The bottom padding of the component.\n * Use 1-12 for padding of 4px-48px.\n */\n paddingBottom?: BoxSpacing;\n /**\n * The left padding of the component.\n * Use 1-12 for padding of 4px-48px.\n */\n paddingLeft?: BoxSpacing;\n /**\n * The horizontal padding of the component.\n * Use 1-12 for padding of 4px-48px.\n */\n paddingHorizontal?: BoxSpacing;\n /**\n * The vertical padding of the component.\n * Use 1-12 for padding of 4px-48px.\n */\n paddingVertical?: BoxSpacing;\n /**\n * The border width of the component.\n * Use 0, 1, 2, 4, or 8 for border width of 0px, 1px, 2px, 4px, or 8px.\n */\n borderWidth?: BoxBorderWidth;\n /**\n * The border color of the component.\n */\n borderColor?: BoxBorderColor;\n /**\n * The background color of the component.\n */\n backgroundColor?: BoxBackgroundColor;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & ViewProps;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":";;;AAAA,+CAKqB;AAJnB,yGAAA,gBAAgB,OAAA;AAChB,oGAAA,WAAW,OAAA;AACX,sGAAA,aAAa,OAAA;AACb,0GAAA,iBAAiB,OAAA;AAGnB,iCAA4B;AAAnB,0FAAA,GAAG,OAAA","sourcesContent":["export {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxAlignItems,\n BoxJustifyContent,\n} from '../../types';\nexport type { BoxSpacing } from '../../types';\nexport { Box } from './Box';\nexport type { BoxProps } from './Box.types';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":";;;AAAA,+CAKqB;AAJnB,yGAAA,gBAAgB,OAAA;AAChB,oGAAA,WAAW,OAAA;AACX,sGAAA,aAAa,OAAA;AACb,0GAAA,iBAAiB,OAAA;AAGnB,iCAA4B;AAAnB,0FAAA,GAAG,OAAA","sourcesContent":["export {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxAlignItems,\n BoxJustifyContent,\n} from '../../types';\nexport type { BoxSpacing, BoxBorderWidth } from '../../types';\nexport { Box } from './Box';\nexport type { BoxProps } from './Box.types';\n"]}
@@ -1,5 +1,5 @@
1
1
  export { BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, } from "../../types/index.cjs";
2
- export type { BoxSpacing } from "../../types/index.cjs";
2
+ export type { BoxSpacing, BoxBorderWidth } from "../../types/index.cjs";
3
3
  export { Box } from "./Box.cjs";
4
4
  export type { BoxProps } from "./Box.types.cjs";
5
5
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,GAClB,8BAAoB;AACrB,YAAY,EAAE,UAAU,EAAE,8BAAoB;AAC9C,OAAO,EAAE,GAAG,EAAE,kBAAc;AAC5B,YAAY,EAAE,QAAQ,EAAE,wBAAoB"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,GAClB,8BAAoB;AACrB,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,8BAAoB;AAC9D,OAAO,EAAE,GAAG,EAAE,kBAAc;AAC5B,YAAY,EAAE,QAAQ,EAAE,wBAAoB"}
@@ -1,5 +1,5 @@
1
1
  export { BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, } from "../../types/index.mjs";
2
- export type { BoxSpacing } from "../../types/index.mjs";
2
+ export type { BoxSpacing, BoxBorderWidth } from "../../types/index.mjs";
3
3
  export { Box } from "./Box.mjs";
4
4
  export type { BoxProps } from "./Box.types.mjs";
5
5
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,GAClB,8BAAoB;AACrB,YAAY,EAAE,UAAU,EAAE,8BAAoB;AAC9C,OAAO,EAAE,GAAG,EAAE,kBAAc;AAC5B,YAAY,EAAE,QAAQ,EAAE,wBAAoB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,GAClB,8BAAoB;AACrB,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,8BAAoB;AAC9D,OAAO,EAAE,GAAG,EAAE,kBAAc;AAC5B,YAAY,EAAE,QAAQ,EAAE,wBAAoB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,EAClB,8BAAoB;AAErB,OAAO,EAAE,GAAG,EAAE,kBAAc","sourcesContent":["export {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxAlignItems,\n BoxJustifyContent,\n} from '../../types';\nexport type { BoxSpacing } from '../../types';\nexport { Box } from './Box';\nexport type { BoxProps } from './Box.types';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,EAClB,8BAAoB;AAErB,OAAO,EAAE,GAAG,EAAE,kBAAc","sourcesContent":["export {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxAlignItems,\n BoxJustifyContent,\n} from '../../types';\nexport type { BoxSpacing, BoxBorderWidth } from '../../types';\nexport { Box } from './Box';\nexport type { BoxProps } from './Box.types';\n"]}
@@ -29,7 +29,6 @@ const react_1 = __importStar(require("react"));
29
29
  const react_native_1 = require("react-native/index.js");
30
30
  const types_1 = require("../../types/index.cjs");
31
31
  const Icon_1 = require("../Icon/index.cjs");
32
- const Icon_2 = require("../Icon/index.cjs");
33
32
  const ButtonAnimated_1 = require("../temp-components/ButtonAnimated/index.cjs");
34
33
  const Spinner_1 = require("../temp-components/Spinner/index.cjs");
35
34
  const TextOrChildren_1 = require("../temp-components/TextOrChildren/TextOrChildren.cjs");
@@ -104,14 +103,14 @@ const ButtonBase = ({ children, textProps, size = types_1.ButtonBaseSize.Lg, isL
104
103
  <react_native_1.View style={tw `absolute inset-0 flex items-center justify-center ${isLoading ? 'opacity-100' : 'opacity-0'}`} testID="spinner-container">
105
104
  <Spinner_1.Spinner color={textClassName
106
105
  ? textClassName(pressed)
107
- : Icon_2.IconColor.IconDefault} loadingText={loadingText} loadingTextProps={{
106
+ : Icon_1.IconColor.IconDefault} loadingText={loadingText} loadingTextProps={{
108
107
  numberOfLines: 1,
109
108
  twClassName: textClassName ? textClassName(pressed) : '',
110
109
  ...spinnerProps?.loadingTextProps,
111
110
  }} {...spinnerProps}/>
112
111
  </react_native_1.View>
113
112
  <react_native_1.View style={tw `flex-row items-center justify-center gap-x-2 ${isLoading ? 'opacity-0' : 'opacity-100'}`} testID="content-container">
114
- {finalStartIconName ? (<Icon_1.Icon name={finalStartIconName} size={Icon_2.IconSize.Sm} twClassName={`shrink-0 ${iconClassName ? iconClassName(pressed) : ''}`} {...startIconProps}/>) : (startAccessory)}
113
+ {finalStartIconName ? (<Icon_1.Icon name={finalStartIconName} size={Icon_1.IconSize.Sm} twClassName={`shrink-0 ${iconClassName ? iconClassName(pressed) : ''}`} {...startIconProps}/>) : (startAccessory)}
115
114
  <TextOrChildren_1.TextOrChildren textProps={{
116
115
  variant: Text_1.TextVariant.BodyMd,
117
116
  fontWeight: Text_1.FontWeight.Medium,
@@ -121,7 +120,7 @@ const ButtonBase = ({ children, textProps, size = types_1.ButtonBaseSize.Lg, isL
121
120
  }}>
122
121
  {children}
123
122
  </TextOrChildren_1.TextOrChildren>
124
- {finalEndIconName ? (<Icon_1.Icon name={finalEndIconName} size={Icon_2.IconSize.Sm} twClassName={`shrink-0 ${iconClassName ? iconClassName(pressed) : ''}`} {...endIconProps}/>) : (endAccessory)}
123
+ {finalEndIconName ? (<Icon_1.Icon name={finalEndIconName} size={Icon_1.IconSize.Sm} twClassName={`shrink-0 ${iconClassName ? iconClassName(pressed) : ''}`} {...endIconProps}/>) : (endAccessory)}
125
124
  </react_native_1.View>
126
125
  </>)}
127
126
  </ButtonAnimated_1.ButtonAnimated>);