@streamplace/components 0.7.0 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/dist/components/chat/chat-box.js +46 -43
  2. package/dist/components/chat/chat-message.js +36 -33
  3. package/dist/components/chat/chat.js +31 -27
  4. package/dist/components/chat/mention-suggestions.js +16 -13
  5. package/dist/components/chat/mod-view.js +20 -17
  6. package/dist/components/mobile-player/fullscreen.js +21 -17
  7. package/dist/components/mobile-player/fullscreen.native.js +39 -35
  8. package/dist/components/mobile-player/player.js +38 -32
  9. package/dist/components/mobile-player/props.js +2 -1
  10. package/dist/components/mobile-player/shared.js +16 -13
  11. package/dist/components/mobile-player/ui/countdown.js +23 -19
  12. package/dist/components/mobile-player/ui/index.js +9 -5
  13. package/dist/components/mobile-player/ui/input.js +16 -12
  14. package/dist/components/mobile-player/ui/metrics.js +20 -16
  15. package/dist/components/mobile-player/ui/streamer-context-menu.js +6 -3
  16. package/dist/components/mobile-player/ui/viewer-context-menu.js +19 -16
  17. package/dist/components/mobile-player/ui/viewers.js +23 -0
  18. package/dist/components/mobile-player/use-webrtc.js +29 -24
  19. package/dist/components/mobile-player/video.js +109 -99
  20. package/dist/components/mobile-player/video.native.js +108 -84
  21. package/dist/components/mobile-player/webrtc-diagnostics.js +9 -5
  22. package/dist/components/mobile-player/webrtc-primitives.js +8 -6
  23. package/dist/components/mobile-player/webrtc-primitives.native.js +8 -1
  24. package/dist/components/ui/button.js +26 -23
  25. package/dist/components/ui/dialog.js +43 -40
  26. package/dist/components/ui/dropdown.js +121 -116
  27. package/dist/components/ui/icons.js +8 -5
  28. package/dist/components/ui/index.js +27 -19
  29. package/dist/components/ui/input.js +31 -28
  30. package/dist/components/ui/loader.js +9 -6
  31. package/dist/components/ui/primitives/button.js +33 -29
  32. package/dist/components/ui/primitives/input.js +44 -40
  33. package/dist/components/ui/primitives/modal.js +45 -41
  34. package/dist/components/ui/primitives/text.js +35 -29
  35. package/dist/components/ui/resizeable.js +54 -43
  36. package/dist/components/ui/text.js +50 -48
  37. package/dist/components/ui/textarea.js +13 -11
  38. package/dist/components/ui/toast.js +26 -23
  39. package/dist/components/ui/view.js +41 -39
  40. package/dist/hooks/index.js +12 -8
  41. package/dist/hooks/useAvatars.js +11 -8
  42. package/dist/hooks/useCameraToggle.js +7 -4
  43. package/dist/hooks/useKeyboard.js +13 -10
  44. package/dist/hooks/useKeyboardSlide.js +8 -5
  45. package/dist/hooks/useLivestreamInfo.js +17 -14
  46. package/dist/hooks/useOuterAndInnerDimensions.js +9 -6
  47. package/dist/hooks/usePlayerDimensions.js +9 -6
  48. package/dist/hooks/useSegmentDimensions.js +17 -0
  49. package/dist/hooks/useSegmentTiming.js +13 -10
  50. package/dist/index.js +24 -15
  51. package/dist/lib/facet.js +5 -1
  52. package/dist/lib/theme/atoms.js +153 -148
  53. package/dist/lib/theme/atoms.types.js +2 -1
  54. package/dist/lib/theme/index.js +31 -5
  55. package/dist/lib/theme/theme.js +91 -83
  56. package/dist/lib/theme/tokens.js +15 -12
  57. package/dist/lib/utils.js +22 -11
  58. package/dist/livestream-provider/index.js +19 -14
  59. package/dist/livestream-provider/websocket.js +14 -10
  60. package/dist/livestream-store/chat.js +26 -19
  61. package/dist/livestream-store/context.js +5 -2
  62. package/dist/livestream-store/index.js +7 -4
  63. package/dist/livestream-store/livestream-state.js +2 -1
  64. package/dist/livestream-store/livestream-store.js +31 -18
  65. package/dist/livestream-store/stream-key.js +22 -18
  66. package/dist/livestream-store/websocket-consumer.js +18 -14
  67. package/dist/player-store/context.js +5 -2
  68. package/dist/player-store/index.js +8 -5
  69. package/dist/player-store/player-provider.js +20 -15
  70. package/dist/player-store/player-state.js +9 -6
  71. package/dist/player-store/player-store.js +32 -21
  72. package/dist/player-store/single-player-provider.js +35 -23
  73. package/dist/streamplace-provider/context.js +5 -2
  74. package/dist/streamplace-provider/index.js +14 -10
  75. package/dist/streamplace-provider/poller.js +20 -17
  76. package/dist/streamplace-store/block.js +6 -3
  77. package/dist/streamplace-store/index.js +6 -3
  78. package/dist/streamplace-store/stream.js +14 -10
  79. package/dist/streamplace-store/streamplace-store.js +23 -13
  80. package/dist/streamplace-store/user.js +19 -14
  81. package/dist/streamplace-store/xrpc.js +10 -7
  82. package/node-compile-cache/v22.15.0-x64-92db9086-0/37be0eec +0 -0
  83. package/node-compile-cache/v22.15.0-x64-92db9086-0/56540125 +0 -0
  84. package/node-compile-cache/{v22.15.0-x64-efe9a9df-0 → v22.15.0-x64-92db9086-0}/67b1eb60 +0 -0
  85. package/node-compile-cache/{v22.15.0-x64-efe9a9df-0 → v22.15.0-x64-92db9086-0}/7c275f90 +0 -0
  86. package/package.json +6 -7
  87. package/src/components/mobile-player/ui/index.ts +1 -0
  88. package/src/components/mobile-player/ui/viewer-context-menu.tsx +5 -4
  89. package/src/components/mobile-player/ui/viewers.tsx +32 -0
  90. package/src/components/mobile-player/video.native.tsx +50 -5
  91. package/src/components/ui/resizeable.tsx +15 -3
  92. package/src/hooks/index.ts +1 -0
  93. package/src/hooks/useSegmentDimensions.tsx +18 -0
  94. package/tsconfig.json +2 -1
  95. package/tsconfig.tsbuildinfo +1 -1
  96. package/node-compile-cache/v22.15.0-x64-efe9a9df-0/37be0eec +0 -0
  97. package/node-compile-cache/v22.15.0-x64-efe9a9df-0/56540125 +0 -0
@@ -1,9 +1,18 @@
1
+ "use strict";
1
2
  /**
2
3
  * Theme atoms - Enhanced exports with pairify function for array-style syntax
3
4
  * These provide direct access to static design tokens and support composition
4
5
  */
5
- import { Platform } from "react-native";
6
- import { animations, borderRadius, colors as rawColors, shadows, spacing, touchTargets, typography, } from "./tokens";
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.px = exports.pl = exports.pb = exports.pr = exports.pt = exports.p = exports.my = exports.mx = exports.ml = exports.mb = exports.mr = exports.mt = exports.m = exports.text = exports.bg = exports.a = exports.atoms = exports.layouts = exports.gap = exports.aspectRatio = exports.position = exports.transforms = exports.textAlignVertical = exports.textDecoration = exports.textTransform = exports.letterSpacing = exports.lineHeight = exports.fontSize = exports.fontWeight = exports.textAlign = exports.overflow = exports.zIndex = exports.opacity = exports.flex = exports.sizes = exports.textColors = exports.backgrounds = exports.radiusAtoms = exports.spacingAtoms = exports.borders = exports.layout = exports.iconSizes = exports.typographyAtoms = exports.getPlatformTypography = exports.colors = exports.touchTargets = exports.spacing = exports.shadows = exports.borderRadius = exports.animations = void 0;
8
+ exports.translateY = exports.translateX = exports.scale = exports.rotate = exports.left = exports.bottom = exports.right = exports.top = exports.r = exports.h = exports.w = exports.py = void 0;
9
+ const react_native_1 = require("react-native");
10
+ const tokens_1 = require("./tokens");
11
+ Object.defineProperty(exports, "animations", { enumerable: true, get: function () { return tokens_1.animations; } });
12
+ Object.defineProperty(exports, "borderRadius", { enumerable: true, get: function () { return tokens_1.borderRadius; } });
13
+ Object.defineProperty(exports, "shadows", { enumerable: true, get: function () { return tokens_1.shadows; } });
14
+ Object.defineProperty(exports, "spacing", { enumerable: true, get: function () { return tokens_1.spacing; } });
15
+ Object.defineProperty(exports, "touchTargets", { enumerable: true, get: function () { return tokens_1.touchTargets; } });
7
16
  /**
8
17
  * Pairify function - converts nested objects into key-value pairs that return style objects
9
18
  * This allows for array-style syntax like style={[a.borders.green[300], a.shadows.xl]}
@@ -25,39 +34,35 @@ function pairify(obj, styleKeyPrefix) {
25
34
  }
26
35
  return result;
27
36
  }
28
- /**
29
- * Create pairified style atoms for easy composition
30
- */
31
- // Re-export static design tokens that don't change with theme
32
- export { animations, borderRadius, shadows, spacing, touchTargets };
33
37
  // Export raw color tokens for advanced use cases
34
- export const colors = rawColors;
38
+ exports.colors = tokens_1.colors;
35
39
  // Platform-aware typography helper
36
- export const getPlatformTypography = () => {
37
- if (Platform.OS === "ios") {
38
- return typography.ios;
40
+ const getPlatformTypography = () => {
41
+ if (react_native_1.Platform.OS === "ios") {
42
+ return tokens_1.typography.ios;
39
43
  }
40
- else if (Platform.OS === "android") {
41
- return typography.android;
44
+ else if (react_native_1.Platform.OS === "android") {
45
+ return tokens_1.typography.android;
42
46
  }
43
- return typography.universal;
47
+ return tokens_1.typography.universal;
44
48
  };
49
+ exports.getPlatformTypography = getPlatformTypography;
45
50
  // Export all typography scales
46
- export const typographyAtoms = {
47
- platform: getPlatformTypography(),
48
- universal: typography.universal,
49
- ios: typography.ios,
50
- android: typography.android,
51
+ exports.typographyAtoms = {
52
+ platform: (0, exports.getPlatformTypography)(),
53
+ universal: tokens_1.typography.universal,
54
+ ios: tokens_1.typography.ios,
55
+ android: tokens_1.typography.android,
51
56
  };
52
57
  // Static icon sizes (colors are handled by theme)
53
- export const iconSizes = {
58
+ exports.iconSizes = {
54
59
  sm: 16,
55
60
  md: 20,
56
61
  lg: 24,
57
62
  xl: 32,
58
63
  };
59
64
  // Common layout utilities
60
- export const layout = {
65
+ exports.layout = {
61
66
  flex: {
62
67
  center: {
63
68
  justifyContent: "center",
@@ -95,7 +100,7 @@ export const layout = {
95
100
  },
96
101
  };
97
102
  // Enhanced border utilities with pairified colors and widths
98
- export const borders = {
103
+ exports.borders = {
99
104
  width: pairify({
100
105
  thin: 1,
101
106
  medium: 2,
@@ -107,7 +112,7 @@ export const borders = {
107
112
  dotted: { borderStyle: "dotted" },
108
113
  },
109
114
  // Pairified color borders
110
- color: pairify(rawColors, "borderColor"),
115
+ color: pairify(tokens_1.colors, "borderColor"),
111
116
  // Top border utilities
112
117
  top: {
113
118
  width: pairify({
@@ -115,7 +120,7 @@ export const borders = {
115
120
  medium: 2,
116
121
  thick: 4,
117
122
  }, "borderTopWidth"),
118
- color: pairify(rawColors, "borderTopColor"),
123
+ color: pairify(tokens_1.colors, "borderTopColor"),
119
124
  },
120
125
  // Bottom border utilities
121
126
  bottom: {
@@ -124,7 +129,7 @@ export const borders = {
124
129
  medium: 2,
125
130
  thick: 4,
126
131
  }, "borderBottomWidth"),
127
- color: pairify(rawColors, "borderBottomColor"),
132
+ color: pairify(tokens_1.colors, "borderBottomColor"),
128
133
  },
129
134
  // Left border utilities
130
135
  left: {
@@ -133,7 +138,7 @@ export const borders = {
133
138
  medium: 2,
134
139
  thick: 4,
135
140
  }, "borderLeftWidth"),
136
- color: pairify(rawColors, "borderLeftColor"),
141
+ color: pairify(tokens_1.colors, "borderLeftColor"),
137
142
  },
138
143
  // Right border utilities
139
144
  right: {
@@ -142,40 +147,40 @@ export const borders = {
142
147
  medium: 2,
143
148
  thick: 4,
144
149
  }, "borderRightWidth"),
145
- color: pairify(rawColors, "borderRightColor"),
150
+ color: pairify(tokens_1.colors, "borderRightColor"),
146
151
  },
147
152
  };
148
153
  // Pairified spacing utilities
149
- export const spacingAtoms = {
150
- margin: pairify(spacing, "margin"),
151
- marginTop: pairify(spacing, "marginTop"),
152
- marginRight: pairify(spacing, "marginRight"),
153
- marginBottom: pairify(spacing, "marginBottom"),
154
- marginLeft: pairify(spacing, "marginLeft"),
155
- marginHorizontal: pairify(spacing, "marginHorizontal"),
156
- marginVertical: pairify(spacing, "marginVertical"),
157
- padding: pairify(spacing, "padding"),
158
- paddingTop: pairify(spacing, "paddingTop"),
159
- paddingRight: pairify(spacing, "paddingRight"),
160
- paddingBottom: pairify(spacing, "paddingBottom"),
161
- paddingLeft: pairify(spacing, "paddingLeft"),
162
- paddingHorizontal: pairify(spacing, "paddingHorizontal"),
163
- paddingVertical: pairify(spacing, "paddingVertical"),
154
+ exports.spacingAtoms = {
155
+ margin: pairify(tokens_1.spacing, "margin"),
156
+ marginTop: pairify(tokens_1.spacing, "marginTop"),
157
+ marginRight: pairify(tokens_1.spacing, "marginRight"),
158
+ marginBottom: pairify(tokens_1.spacing, "marginBottom"),
159
+ marginLeft: pairify(tokens_1.spacing, "marginLeft"),
160
+ marginHorizontal: pairify(tokens_1.spacing, "marginHorizontal"),
161
+ marginVertical: pairify(tokens_1.spacing, "marginVertical"),
162
+ padding: pairify(tokens_1.spacing, "padding"),
163
+ paddingTop: pairify(tokens_1.spacing, "paddingTop"),
164
+ paddingRight: pairify(tokens_1.spacing, "paddingRight"),
165
+ paddingBottom: pairify(tokens_1.spacing, "paddingBottom"),
166
+ paddingLeft: pairify(tokens_1.spacing, "paddingLeft"),
167
+ paddingHorizontal: pairify(tokens_1.spacing, "paddingHorizontal"),
168
+ paddingVertical: pairify(tokens_1.spacing, "paddingVertical"),
164
169
  };
165
170
  // Pairified border radius utilities
166
- export const radiusAtoms = {
167
- all: pairify(borderRadius, "borderRadius"),
168
- top: pairify(borderRadius, "borderTopLeftRadius"),
169
- topRight: pairify(borderRadius, "borderTopRightRadius"),
170
- bottom: pairify(borderRadius, "borderBottomLeftRadius"),
171
- bottomRight: pairify(borderRadius, "borderBottomRightRadius"),
172
- left: pairify(borderRadius, "borderTopLeftRadius"),
173
- right: pairify(borderRadius, "borderTopRightRadius"),
171
+ exports.radiusAtoms = {
172
+ all: pairify(tokens_1.borderRadius, "borderRadius"),
173
+ top: pairify(tokens_1.borderRadius, "borderTopLeftRadius"),
174
+ topRight: pairify(tokens_1.borderRadius, "borderTopRightRadius"),
175
+ bottom: pairify(tokens_1.borderRadius, "borderBottomLeftRadius"),
176
+ bottomRight: pairify(tokens_1.borderRadius, "borderBottomRightRadius"),
177
+ left: pairify(tokens_1.borderRadius, "borderTopLeftRadius"),
178
+ right: pairify(tokens_1.borderRadius, "borderTopRightRadius"),
174
179
  };
175
180
  // Background color utilities
176
- export const backgrounds = pairify(rawColors, "backgroundColor");
181
+ exports.backgrounds = pairify(tokens_1.colors, "backgroundColor");
177
182
  // Text color utilities
178
- export const textColors = pairify(rawColors, "color");
183
+ exports.textColors = pairify(tokens_1.colors, "color");
179
184
  // Percentage-based sizes
180
185
  const percentageSizes = {
181
186
  "10": "10%",
@@ -194,34 +199,34 @@ const percentageSizes = {
194
199
  "100": "100%",
195
200
  };
196
201
  // Size utilities (width and height)
197
- export const sizes = {
202
+ exports.sizes = {
198
203
  width: {
199
- ...pairify(spacing, "width"),
204
+ ...pairify(tokens_1.spacing, "width"),
200
205
  percent: pairify(percentageSizes, "width"),
201
206
  },
202
207
  height: {
203
- ...pairify(spacing, "height"),
208
+ ...pairify(tokens_1.spacing, "height"),
204
209
  percent: pairify(percentageSizes, "height"),
205
210
  },
206
211
  minWidth: {
207
- ...pairify(spacing, "minWidth"),
212
+ ...pairify(tokens_1.spacing, "minWidth"),
208
213
  percent: pairify(percentageSizes, "minWidth"),
209
214
  },
210
215
  minHeight: {
211
- ...pairify(spacing, "minHeight"),
216
+ ...pairify(tokens_1.spacing, "minHeight"),
212
217
  percent: pairify(percentageSizes, "minHeight"),
213
218
  },
214
219
  maxWidth: {
215
- ...pairify(spacing, "maxWidth"),
220
+ ...pairify(tokens_1.spacing, "maxWidth"),
216
221
  percent: pairify(percentageSizes, "maxWidth"),
217
222
  },
218
223
  maxHeight: {
219
- ...pairify(spacing, "maxHeight"),
224
+ ...pairify(tokens_1.spacing, "maxHeight"),
220
225
  percent: pairify(percentageSizes, "maxHeight"),
221
226
  },
222
227
  };
223
228
  // Flex utilities
224
- export const flex = {
229
+ exports.flex = {
225
230
  values: pairify({
226
231
  0: 0,
227
232
  1: 1,
@@ -239,13 +244,13 @@ export const flex = {
239
244
  1: 1,
240
245
  }, "flexShrink"),
241
246
  basis: {
242
- ...pairify(spacing, "flexBasis"),
247
+ ...pairify(tokens_1.spacing, "flexBasis"),
243
248
  ...pairify(percentageSizes, "flexBasis"),
244
249
  auto: { flexBasis: "auto" },
245
250
  },
246
251
  };
247
252
  // Opacity utilities
248
- export const opacity = pairify({
253
+ exports.opacity = pairify({
249
254
  0: 0,
250
255
  5: 0.05,
251
256
  10: 0.1,
@@ -263,7 +268,7 @@ export const opacity = pairify({
263
268
  100: 1,
264
269
  }, "opacity");
265
270
  // Z-index utilities
266
- export const zIndex = pairify({
271
+ exports.zIndex = pairify({
267
272
  0: 0,
268
273
  10: 10,
269
274
  20: 20,
@@ -273,13 +278,13 @@ export const zIndex = pairify({
273
278
  auto: "auto",
274
279
  }, "zIndex");
275
280
  // Overflow utilities
276
- export const overflow = {
281
+ exports.overflow = {
277
282
  visible: { overflow: "visible" },
278
283
  hidden: { overflow: "hidden" },
279
284
  scroll: { overflow: "scroll" },
280
285
  };
281
286
  // Text alignment utilities
282
- export const textAlign = {
287
+ exports.textAlign = {
283
288
  left: { textAlign: "left" },
284
289
  center: { textAlign: "center" },
285
290
  right: { textAlign: "right" },
@@ -287,7 +292,7 @@ export const textAlign = {
287
292
  auto: { textAlign: "auto" },
288
293
  };
289
294
  // Font weight utilities
290
- export const fontWeight = pairify({
295
+ exports.fontWeight = pairify({
291
296
  thin: "100",
292
297
  extralight: "200",
293
298
  light: "300",
@@ -299,7 +304,7 @@ export const fontWeight = pairify({
299
304
  black: "900",
300
305
  }, "fontWeight");
301
306
  // Font size utilities (separate from typography for quick access)
302
- export const fontSize = pairify({
307
+ exports.fontSize = pairify({
303
308
  xs: 12,
304
309
  sm: 14,
305
310
  base: 16,
@@ -315,7 +320,7 @@ export const fontSize = pairify({
315
320
  "9xl": 128,
316
321
  }, "fontSize");
317
322
  // Line height utilities
318
- export const lineHeight = pairify({
323
+ exports.lineHeight = pairify({
319
324
  none: 1,
320
325
  tight: 1.25,
321
326
  snug: 1.375,
@@ -332,7 +337,7 @@ export const lineHeight = pairify({
332
337
  10: 40,
333
338
  }, "lineHeight");
334
339
  // Letter spacing utilities
335
- export const letterSpacing = pairify({
340
+ exports.letterSpacing = pairify({
336
341
  tighter: -0.5,
337
342
  tight: -0.25,
338
343
  normal: 0,
@@ -341,14 +346,14 @@ export const letterSpacing = pairify({
341
346
  widest: 1,
342
347
  }, "letterSpacing");
343
348
  // Text transform utilities
344
- export const textTransform = {
349
+ exports.textTransform = {
345
350
  uppercase: { textTransform: "uppercase" },
346
351
  lowercase: { textTransform: "lowercase" },
347
352
  capitalize: { textTransform: "capitalize" },
348
353
  none: { textTransform: "none" },
349
354
  };
350
355
  // Text decoration utilities
351
- export const textDecoration = {
356
+ exports.textDecoration = {
352
357
  none: { textDecorationLine: "none" },
353
358
  underline: { textDecorationLine: "underline" },
354
359
  lineThrough: { textDecorationLine: "line-through" },
@@ -357,14 +362,14 @@ export const textDecoration = {
357
362
  },
358
363
  };
359
364
  // Text align vertical utilities (React Native specific)
360
- export const textAlignVertical = {
365
+ exports.textAlignVertical = {
361
366
  auto: { textAlignVertical: "auto" },
362
367
  top: { textAlignVertical: "top" },
363
368
  bottom: { textAlignVertical: "bottom" },
364
369
  center: { textAlignVertical: "center" },
365
370
  };
366
371
  // Transform utilities
367
- export const transforms = {
372
+ exports.transforms = {
368
373
  rotate: pairify({
369
374
  0: 0,
370
375
  1: 1,
@@ -416,15 +421,15 @@ export const transforms = {
416
421
  150: 1.5,
417
422
  200: 2,
418
423
  }, "scaleY"),
419
- translateX: pairify(spacing, "translateX"),
420
- translateY: pairify(spacing, "translateY"),
424
+ translateX: pairify(tokens_1.spacing, "translateX"),
425
+ translateY: pairify(tokens_1.spacing, "translateY"),
421
426
  };
422
427
  // Absolute positioning utilities
423
- export const position = {
424
- top: pairify(spacing, "top"),
425
- right: pairify(spacing, "right"),
426
- bottom: pairify(spacing, "bottom"),
427
- left: pairify(spacing, "left"),
428
+ exports.position = {
429
+ top: pairify(tokens_1.spacing, "top"),
430
+ right: pairify(tokens_1.spacing, "right"),
431
+ bottom: pairify(tokens_1.spacing, "bottom"),
432
+ left: pairify(tokens_1.spacing, "left"),
428
433
  // Common position combinations
429
434
  topLeft: (top, left) => ({
430
435
  position: "absolute",
@@ -479,7 +484,7 @@ export const position = {
479
484
  },
480
485
  };
481
486
  // Aspect ratio utilities (React Native 0.71+)
482
- export const aspectRatio = pairify({
487
+ exports.aspectRatio = pairify({
483
488
  square: 1,
484
489
  video: 16 / 9,
485
490
  photo: 4 / 3,
@@ -493,13 +498,13 @@ export const aspectRatio = pairify({
493
498
  "21/9": 21 / 9,
494
499
  }, "aspectRatio");
495
500
  // Gap utilities (React Native 0.71+)
496
- export const gap = {
497
- row: pairify(spacing, "rowGap"),
498
- column: pairify(spacing, "columnGap"),
499
- all: pairify(spacing, "gap"),
501
+ exports.gap = {
502
+ row: pairify(tokens_1.spacing, "rowGap"),
503
+ column: pairify(tokens_1.spacing, "columnGap"),
504
+ all: pairify(tokens_1.spacing, "gap"),
500
505
  };
501
506
  // Common layout patterns
502
- export const layouts = {
507
+ exports.layouts = {
503
508
  // Full screen
504
509
  fullScreen: {
505
510
  position: "absolute",
@@ -528,7 +533,7 @@ export const layouts = {
528
533
  // Safe area friendly
529
534
  safeContainer: {
530
535
  flex: 1,
531
- paddingTop: Platform.OS === "ios" ? 44 : 0, // Status bar height
536
+ paddingTop: react_native_1.Platform.OS === "ios" ? 44 : 0, // Status bar height
532
537
  },
533
538
  // Row with space between
534
539
  spaceBetweenRow: {
@@ -555,66 +560,66 @@ export const layouts = {
555
560
  },
556
561
  };
557
562
  // Export everything as a combined atoms object for convenience
558
- export const atoms = {
559
- colors: rawColors,
560
- spacing,
561
- borderRadius,
562
- radius: radiusAtoms,
563
- typography: typographyAtoms,
564
- shadows,
565
- touchTargets,
566
- animations,
567
- iconSizes,
568
- layout,
569
- borders,
570
- backgrounds,
571
- textColors,
572
- spacingAtoms,
573
- sizes,
574
- flex,
575
- opacity,
576
- zIndex,
577
- overflow,
578
- textAlign,
579
- fontWeight,
580
- fontSize,
581
- lineHeight,
582
- letterSpacing,
583
- textTransform,
584
- textDecoration,
585
- textAlignVertical,
586
- transforms,
587
- position,
588
- aspectRatio,
589
- gap,
590
- layouts,
563
+ exports.atoms = {
564
+ colors: tokens_1.colors,
565
+ spacing: tokens_1.spacing,
566
+ borderRadius: tokens_1.borderRadius,
567
+ radius: exports.radiusAtoms,
568
+ typography: exports.typographyAtoms,
569
+ shadows: tokens_1.shadows,
570
+ touchTargets: tokens_1.touchTargets,
571
+ animations: tokens_1.animations,
572
+ iconSizes: exports.iconSizes,
573
+ layout: exports.layout,
574
+ borders: exports.borders,
575
+ backgrounds: exports.backgrounds,
576
+ textColors: exports.textColors,
577
+ spacingAtoms: exports.spacingAtoms,
578
+ sizes: exports.sizes,
579
+ flex: exports.flex,
580
+ opacity: exports.opacity,
581
+ zIndex: exports.zIndex,
582
+ overflow: exports.overflow,
583
+ textAlign: exports.textAlign,
584
+ fontWeight: exports.fontWeight,
585
+ fontSize: exports.fontSize,
586
+ lineHeight: exports.lineHeight,
587
+ letterSpacing: exports.letterSpacing,
588
+ textTransform: exports.textTransform,
589
+ textDecoration: exports.textDecoration,
590
+ textAlignVertical: exports.textAlignVertical,
591
+ transforms: exports.transforms,
592
+ position: exports.position,
593
+ aspectRatio: exports.aspectRatio,
594
+ gap: exports.gap,
595
+ layouts: exports.layouts,
591
596
  };
592
597
  // Convenient shorthand aliases
593
- export const a = atoms;
594
- export const bg = backgrounds;
595
- export const text = textColors;
596
- export const m = spacingAtoms.margin;
597
- export const mt = spacingAtoms.marginTop;
598
- export const mr = spacingAtoms.marginRight;
599
- export const mb = spacingAtoms.marginBottom;
600
- export const ml = spacingAtoms.marginLeft;
601
- export const mx = spacingAtoms.marginHorizontal;
602
- export const my = spacingAtoms.marginVertical;
603
- export const p = spacingAtoms.padding;
604
- export const pt = spacingAtoms.paddingTop;
605
- export const pr = spacingAtoms.paddingRight;
606
- export const pb = spacingAtoms.paddingBottom;
607
- export const pl = spacingAtoms.paddingLeft;
608
- export const px = spacingAtoms.paddingHorizontal;
609
- export const py = spacingAtoms.paddingVertical;
610
- export const w = sizes.width;
611
- export const h = sizes.height;
612
- export const r = radiusAtoms.all;
613
- export const top = position.top;
614
- export const right = position.right;
615
- export const bottom = position.bottom;
616
- export const left = position.left;
617
- export const rotate = transforms.rotate;
618
- export const scale = transforms.scale;
619
- export const translateX = transforms.translateX;
620
- export const translateY = transforms.translateY;
598
+ exports.a = exports.atoms;
599
+ exports.bg = exports.backgrounds;
600
+ exports.text = exports.textColors;
601
+ exports.m = exports.spacingAtoms.margin;
602
+ exports.mt = exports.spacingAtoms.marginTop;
603
+ exports.mr = exports.spacingAtoms.marginRight;
604
+ exports.mb = exports.spacingAtoms.marginBottom;
605
+ exports.ml = exports.spacingAtoms.marginLeft;
606
+ exports.mx = exports.spacingAtoms.marginHorizontal;
607
+ exports.my = exports.spacingAtoms.marginVertical;
608
+ exports.p = exports.spacingAtoms.padding;
609
+ exports.pt = exports.spacingAtoms.paddingTop;
610
+ exports.pr = exports.spacingAtoms.paddingRight;
611
+ exports.pb = exports.spacingAtoms.paddingBottom;
612
+ exports.pl = exports.spacingAtoms.paddingLeft;
613
+ exports.px = exports.spacingAtoms.paddingHorizontal;
614
+ exports.py = exports.spacingAtoms.paddingVertical;
615
+ exports.w = exports.sizes.width;
616
+ exports.h = exports.sizes.height;
617
+ exports.r = exports.radiusAtoms.all;
618
+ exports.top = exports.position.top;
619
+ exports.right = exports.position.right;
620
+ exports.bottom = exports.position.bottom;
621
+ exports.left = exports.position.left;
622
+ exports.rotate = exports.transforms.rotate;
623
+ exports.scale = exports.transforms.scale;
624
+ exports.translateX = exports.transforms.translateX;
625
+ exports.translateY = exports.transforms.translateY;
@@ -1,5 +1,6 @@
1
+ "use strict";
1
2
  /**
2
3
  * Type definitions for enhanced atoms with pairify function
3
4
  * Provides comprehensive type safety for array-style syntax
4
5
  */
5
- export {};
6
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tokens = exports.atoms = exports.typographyAtoms = exports.layout = exports.iconSizes = exports.getPlatformTypography = exports.borders = exports.typography = exports.touchTargets = exports.spacing = exports.shadows = exports.colors = exports.breakpoints = exports.borderRadius = exports.animations = exports.useTheme = exports.usePlatformTypography = exports.lightTheme = exports.darkTheme = exports.createThemedStyles = exports.createThemeStyles = exports.createThemeIcons = exports.createThemeColors = exports.ThemeProvider = void 0;
4
+ const tslib_1 = require("tslib");
1
5
  // Main theme system exports
2
- export { ThemeProvider, createThemeColors, createThemeIcons, createThemeStyles, createThemedStyles, darkTheme, lightTheme, usePlatformTypography, useTheme, } from "./theme";
6
+ var theme_1 = require("./theme");
7
+ Object.defineProperty(exports, "ThemeProvider", { enumerable: true, get: function () { return theme_1.ThemeProvider; } });
8
+ Object.defineProperty(exports, "createThemeColors", { enumerable: true, get: function () { return theme_1.createThemeColors; } });
9
+ Object.defineProperty(exports, "createThemeIcons", { enumerable: true, get: function () { return theme_1.createThemeIcons; } });
10
+ Object.defineProperty(exports, "createThemeStyles", { enumerable: true, get: function () { return theme_1.createThemeStyles; } });
11
+ Object.defineProperty(exports, "createThemedStyles", { enumerable: true, get: function () { return theme_1.createThemedStyles; } });
12
+ Object.defineProperty(exports, "darkTheme", { enumerable: true, get: function () { return theme_1.darkTheme; } });
13
+ Object.defineProperty(exports, "lightTheme", { enumerable: true, get: function () { return theme_1.lightTheme; } });
14
+ Object.defineProperty(exports, "usePlatformTypography", { enumerable: true, get: function () { return theme_1.usePlatformTypography; } });
15
+ Object.defineProperty(exports, "useTheme", { enumerable: true, get: function () { return theme_1.useTheme; } });
3
16
  // Design tokens
4
- export { animations, borderRadius, breakpoints, colors, shadows, spacing, touchTargets, typography, } from "./tokens";
17
+ var tokens_1 = require("./tokens");
18
+ Object.defineProperty(exports, "animations", { enumerable: true, get: function () { return tokens_1.animations; } });
19
+ Object.defineProperty(exports, "borderRadius", { enumerable: true, get: function () { return tokens_1.borderRadius; } });
20
+ Object.defineProperty(exports, "breakpoints", { enumerable: true, get: function () { return tokens_1.breakpoints; } });
21
+ Object.defineProperty(exports, "colors", { enumerable: true, get: function () { return tokens_1.colors; } });
22
+ Object.defineProperty(exports, "shadows", { enumerable: true, get: function () { return tokens_1.shadows; } });
23
+ Object.defineProperty(exports, "spacing", { enumerable: true, get: function () { return tokens_1.spacing; } });
24
+ Object.defineProperty(exports, "touchTargets", { enumerable: true, get: function () { return tokens_1.touchTargets; } });
25
+ Object.defineProperty(exports, "typography", { enumerable: true, get: function () { return tokens_1.typography; } });
5
26
  // Utility atoms
6
- export { borders, getPlatformTypography, iconSizes, layout, typographyAtoms, } from "./atoms";
27
+ var atoms_1 = require("./atoms");
28
+ Object.defineProperty(exports, "borders", { enumerable: true, get: function () { return atoms_1.borders; } });
29
+ Object.defineProperty(exports, "getPlatformTypography", { enumerable: true, get: function () { return atoms_1.getPlatformTypography; } });
30
+ Object.defineProperty(exports, "iconSizes", { enumerable: true, get: function () { return atoms_1.iconSizes; } });
31
+ Object.defineProperty(exports, "layout", { enumerable: true, get: function () { return atoms_1.layout; } });
32
+ Object.defineProperty(exports, "typographyAtoms", { enumerable: true, get: function () { return atoms_1.typographyAtoms; } });
7
33
  // Convenience re-exports
8
- export * as atoms from "./atoms";
9
- export * as tokens from "./tokens";
34
+ exports.atoms = tslib_1.__importStar(require("./atoms"));
35
+ exports.tokens = tslib_1.__importStar(require("./tokens"));