@oxyhq/bloom 0.29.1 → 0.29.3

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 (40) hide show
  1. package/lib/commonjs/animated-check/AnimatedCheck.js +2 -2
  2. package/lib/commonjs/animated-check/AnimatedCheck.js.map +1 -1
  3. package/lib/commonjs/bottom-sheet/index.js +2 -2
  4. package/lib/commonjs/bottom-sheet/index.js.map +1 -1
  5. package/lib/commonjs/connection-dots/ConnectionDots.js +2 -2
  6. package/lib/commonjs/connection-dots/ConnectionDots.js.map +1 -1
  7. package/lib/commonjs/design-tokens/theme.css +81 -0
  8. package/lib/commonjs/dialog/Dialog.js +1 -1
  9. package/lib/commonjs/dialog/Dialog.js.map +1 -1
  10. package/lib/commonjs/loading/Loading.js +2 -2
  11. package/lib/commonjs/loading/Loading.js.map +1 -1
  12. package/lib/commonjs/loading/SpinnerIcon.js +1 -1
  13. package/lib/commonjs/loading/SpinnerIcon.js.map +1 -1
  14. package/lib/commonjs/pressable-scale/PressableScale.js +1 -1
  15. package/lib/commonjs/pressable-scale/PressableScale.js.map +1 -1
  16. package/lib/module/animated-check/AnimatedCheck.js +2 -2
  17. package/lib/module/animated-check/AnimatedCheck.js.map +1 -1
  18. package/lib/module/bottom-sheet/index.js +2 -2
  19. package/lib/module/bottom-sheet/index.js.map +1 -1
  20. package/lib/module/connection-dots/ConnectionDots.js +2 -2
  21. package/lib/module/connection-dots/ConnectionDots.js.map +1 -1
  22. package/lib/module/design-tokens/theme.css +81 -0
  23. package/lib/module/dialog/Dialog.js +1 -1
  24. package/lib/module/dialog/Dialog.js.map +1 -1
  25. package/lib/module/loading/Loading.js +2 -2
  26. package/lib/module/loading/Loading.js.map +1 -1
  27. package/lib/module/loading/SpinnerIcon.js +1 -1
  28. package/lib/module/loading/SpinnerIcon.js.map +1 -1
  29. package/lib/module/pressable-scale/PressableScale.js +1 -1
  30. package/lib/module/pressable-scale/PressableScale.js.map +1 -1
  31. package/package.json +4 -2
  32. package/src/__tests__/design-tokens.test.ts +23 -0
  33. package/src/animated-check/AnimatedCheck.tsx +2 -2
  34. package/src/bottom-sheet/index.tsx +2 -2
  35. package/src/connection-dots/ConnectionDots.tsx +2 -2
  36. package/src/design-tokens/theme.css +81 -0
  37. package/src/dialog/Dialog.tsx +1 -1
  38. package/src/loading/Loading.tsx +2 -2
  39. package/src/loading/SpinnerIcon.tsx +1 -1
  40. package/src/pressable-scale/PressableScale.tsx +1 -1
@@ -0,0 +1,81 @@
1
+ /*
2
+ * AUTO-GENERATED by scripts/generate-theme-css.ts — DO NOT EDIT.
3
+ * Source of truth: bloomThemeCss() in src/design-tokens/theme-css.ts.
4
+ * Re-run `bun run generate:theme-css` (or any `bun run build`) after
5
+ * changing any design token.
6
+ */
7
+
8
+ @theme {
9
+ --color-bg: var(--background);
10
+ --color-fill: var(--card);
11
+ --color-fill-secondary: var(--muted);
12
+ --color-fill-hover: var(--accent);
13
+ --color-fill-brand: var(--primary);
14
+ --color-fill-brand-hover: var(--ring);
15
+ --color-fill-inverse: var(--foreground);
16
+ --color-fill-inverse-hover: var(--muted-foreground);
17
+ --color-fill-placeholder: var(--muted);
18
+ --color-text: var(--foreground);
19
+ --color-text-secondary: var(--muted-foreground);
20
+ --color-text-tertiary: var(--muted-foreground);
21
+ --color-text-inverse: var(--primary-foreground);
22
+ --color-text-fixed-light: var(--primary-foreground);
23
+ --color-text-placeholder: var(--muted-foreground);
24
+ --color-border: var(--border);
25
+ --color-border-image: var(--border);
26
+ --color-border-secondary: var(--input);
27
+ --color-border-input: var(--input);
28
+ --color-border-input-active: var(--ring);
29
+ --spacing-space-2: 2px;
30
+ --spacing-space-4: 4px;
31
+ --spacing-space-8: 8px;
32
+ --spacing-space-12: 12px;
33
+ --spacing-space-16: 16px;
34
+ --spacing-space-20: 20px;
35
+ --spacing-space-24: 24px;
36
+ --spacing-space-32: 32px;
37
+ --spacing-screen-margin: 20px;
38
+ --radius-radius-8: 8px;
39
+ --radius-radius-12: 12px;
40
+ --radius-radius-20: 20px;
41
+ --radius-radius-28: 28px;
42
+ --radius-radius-max: 9999px;
43
+ --border-width-hairline: 0.5px;
44
+ --text-caption: 11px;
45
+ --text-caption--line-height: 14px;
46
+ --text-caption--font-weight: 400;
47
+ --font-caption: var(--bloom-font-sans);
48
+ --text-bodySmall: 13px;
49
+ --text-bodySmall--line-height: 18px;
50
+ --text-bodySmall--font-weight: 400;
51
+ --font-bodySmall: var(--bloom-font-sans);
52
+ --text-bodyTitleSmall: 13px;
53
+ --text-bodyTitleSmall--line-height: 18px;
54
+ --text-bodyTitleSmall--font-weight: 600;
55
+ --font-bodyTitleSmall: var(--bloom-font-sans);
56
+ --text-body: 15px;
57
+ --text-body--line-height: 22px;
58
+ --text-body--font-weight: 400;
59
+ --font-body: var(--bloom-font-sans);
60
+ --text-subtitle: 17px;
61
+ --text-subtitle--line-height: 24px;
62
+ --text-subtitle--font-weight: 500;
63
+ --font-subtitle: var(--bloom-font-sans);
64
+ --text-sectionTitle: 20px;
65
+ --text-sectionTitle--line-height: 26px;
66
+ --text-sectionTitle--font-weight: 600;
67
+ --font-sectionTitle: var(--bloom-font-sans);
68
+ --text-headerBold: 28px;
69
+ --text-headerBold--line-height: 34px;
70
+ --text-headerBold--font-weight: 700;
71
+ --font-headerBold: var(--bloom-font-display);
72
+ --text-buttonLarge: 17px;
73
+ --text-buttonLarge--line-height: 22px;
74
+ --text-buttonLarge--font-weight: 600;
75
+ --font-buttonLarge: var(--bloom-font-sans);
76
+ --font-bloom-sans: var(--bloom-font-sans);
77
+ --font-bloom-display: var(--bloom-font-display);
78
+ --font-bloom-mono: var(--bloom-font-mono);
79
+ --shadow-s: 0 1px 2px rgb(0 0 0 / 0.06), 0 1px 3px rgb(0 0 0 / 0.10);
80
+ --shadow-m: 0 4px 12px rgb(0 0 0 / 0.08), 0 2px 6px rgb(0 0 0 / 0.12);
81
+ }
@@ -398,7 +398,7 @@ function SideSheet({
398
398
 
399
399
  const backdropAnimatedStyle = useAnimatedStyle(() => ({
400
400
  opacity: progress.value * SHEET_BACKDROP_OPACITY,
401
- }));
401
+ }), []);
402
402
 
403
403
  const hiddenSign = side === 'left' ? -1 : 1;
404
404
  const panelAnimatedStyle = useAnimatedStyle(() => {
@@ -92,12 +92,12 @@ const TopLoading: React.FC<TopLoadingProps> = ({
92
92
 
93
93
  const containerAnimated = useAnimatedStyle(() => ({
94
94
  height: height.value,
95
- }));
95
+ }), []);
96
96
 
97
97
  const innerAnimated = useAnimatedStyle(() => ({
98
98
  opacity: opacity.value,
99
99
  transform: [{ translateY: translateY.value }],
100
- }));
100
+ }), []);
101
101
 
102
102
  return (
103
103
  <Animated.View style={[styles.topContainer, containerAnimated]} testID={testID}>
@@ -60,7 +60,7 @@ const AnimatedSpinner: React.FC<AnimatedSpinnerProps> = ({
60
60
 
61
61
  const animatedStyle = useAnimatedStyle(() => ({
62
62
  transform: [{ rotate: `${rotation.value}deg` }],
63
- }));
63
+ }), []);
64
64
 
65
65
  return (
66
66
  <Animated.View
@@ -65,7 +65,7 @@ export const PressableScale = forwardRef<View, PressableScaleProps>(
65
65
 
66
66
  const animatedStyle = useAnimatedStyle(() => ({
67
67
  transform: [{ scale: scale.value }],
68
- }));
68
+ }), []);
69
69
 
70
70
  return (
71
71
  <AnimatedPressable