@oxyhq/bloom 0.1.28 → 0.1.30

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 (104) hide show
  1. package/README.theme.md +26 -0
  2. package/lib/commonjs/assets.d.js +2 -0
  3. package/lib/commonjs/assets.d.js.map +1 -0
  4. package/lib/commonjs/avatar/Avatar.js +10 -3
  5. package/lib/commonjs/avatar/Avatar.js.map +1 -1
  6. package/lib/commonjs/avatar/index.js +5 -1
  7. package/lib/commonjs/avatar/index.js.map +1 -1
  8. package/lib/commonjs/bottom-sheet/index.js +3 -3
  9. package/lib/commonjs/bottom-sheet/index.js.map +1 -1
  10. package/lib/commonjs/context-menu/index.web.js +1 -1
  11. package/lib/commonjs/context-menu/index.web.js.map +1 -1
  12. package/lib/commonjs/icons/index.js +1 -16
  13. package/lib/commonjs/icons/index.js.map +1 -1
  14. package/lib/commonjs/index.js +0 -15
  15. package/lib/commonjs/index.js.map +1 -1
  16. package/lib/commonjs/loading/Loading.js +5 -1
  17. package/lib/commonjs/loading/Loading.js.map +1 -1
  18. package/lib/commonjs/loading/SpinnerIcon.js +10 -2
  19. package/lib/commonjs/loading/SpinnerIcon.js.map +1 -1
  20. package/lib/commonjs/prompt-input/Textarea.web.js +1 -1
  21. package/lib/commonjs/prompt-input/Textarea.web.js.map +1 -1
  22. package/lib/commonjs/settings-list/SettingsList.js +27 -3
  23. package/lib/commonjs/settings-list/SettingsList.js.map +1 -1
  24. package/lib/commonjs/theme/adaptive-colors.js +6 -2
  25. package/lib/commonjs/theme/adaptive-colors.js.map +1 -1
  26. package/lib/commonjs/theme/color-presets.js +96 -2
  27. package/lib/commonjs/theme/color-presets.js.map +1 -1
  28. package/lib/module/assets.d.js +2 -0
  29. package/lib/module/assets.d.js.map +1 -0
  30. package/lib/module/avatar/Avatar.js +9 -3
  31. package/lib/module/avatar/Avatar.js.map +1 -1
  32. package/lib/module/avatar/index.js +4 -1
  33. package/lib/module/avatar/index.js.map +1 -1
  34. package/lib/module/bottom-sheet/index.js +3 -3
  35. package/lib/module/bottom-sheet/index.js.map +1 -1
  36. package/lib/module/context-menu/index.web.js +1 -1
  37. package/lib/module/context-menu/index.web.js.map +1 -1
  38. package/lib/module/icons/index.js +0 -1
  39. package/lib/module/icons/index.js.map +1 -1
  40. package/lib/module/index.js +0 -1
  41. package/lib/module/index.js.map +1 -1
  42. package/lib/module/loading/Loading.js +5 -1
  43. package/lib/module/loading/Loading.js.map +1 -1
  44. package/lib/module/loading/SpinnerIcon.js +10 -2
  45. package/lib/module/loading/SpinnerIcon.js.map +1 -1
  46. package/lib/module/prompt-input/Textarea.web.js +1 -1
  47. package/lib/module/prompt-input/Textarea.web.js.map +1 -1
  48. package/lib/module/settings-list/SettingsList.js +27 -3
  49. package/lib/module/settings-list/SettingsList.js.map +1 -1
  50. package/lib/module/theme/adaptive-colors.js +6 -2
  51. package/lib/module/theme/adaptive-colors.js.map +1 -1
  52. package/lib/module/theme/color-presets.js +96 -2
  53. package/lib/module/theme/color-presets.js.map +1 -1
  54. package/lib/typescript/commonjs/__tests__/SettingsList.test.d.ts +2 -0
  55. package/lib/typescript/commonjs/__tests__/SettingsList.test.d.ts.map +1 -0
  56. package/lib/typescript/commonjs/avatar/Avatar.d.ts.map +1 -1
  57. package/lib/typescript/commonjs/avatar/index.d.ts +1 -1
  58. package/lib/typescript/commonjs/avatar/index.d.ts.map +1 -1
  59. package/lib/typescript/commonjs/icons/index.d.ts +0 -1
  60. package/lib/typescript/commonjs/icons/index.d.ts.map +1 -1
  61. package/lib/typescript/commonjs/index.d.ts +0 -1
  62. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  63. package/lib/typescript/commonjs/loading/Loading.d.ts.map +1 -1
  64. package/lib/typescript/commonjs/loading/SpinnerIcon.d.ts.map +1 -1
  65. package/lib/typescript/commonjs/settings-list/SettingsList.d.ts.map +1 -1
  66. package/lib/typescript/commonjs/settings-list/types.d.ts +8 -0
  67. package/lib/typescript/commonjs/settings-list/types.d.ts.map +1 -1
  68. package/lib/typescript/commonjs/theme/adaptive-colors.d.ts.map +1 -1
  69. package/lib/typescript/commonjs/theme/color-presets.d.ts +1 -1
  70. package/lib/typescript/commonjs/theme/color-presets.d.ts.map +1 -1
  71. package/lib/typescript/module/__tests__/SettingsList.test.d.ts +2 -0
  72. package/lib/typescript/module/__tests__/SettingsList.test.d.ts.map +1 -0
  73. package/lib/typescript/module/avatar/Avatar.d.ts.map +1 -1
  74. package/lib/typescript/module/avatar/index.d.ts +1 -1
  75. package/lib/typescript/module/avatar/index.d.ts.map +1 -1
  76. package/lib/typescript/module/icons/index.d.ts +0 -1
  77. package/lib/typescript/module/icons/index.d.ts.map +1 -1
  78. package/lib/typescript/module/index.d.ts +0 -1
  79. package/lib/typescript/module/index.d.ts.map +1 -1
  80. package/lib/typescript/module/loading/Loading.d.ts.map +1 -1
  81. package/lib/typescript/module/loading/SpinnerIcon.d.ts.map +1 -1
  82. package/lib/typescript/module/settings-list/SettingsList.d.ts.map +1 -1
  83. package/lib/typescript/module/settings-list/types.d.ts +8 -0
  84. package/lib/typescript/module/settings-list/types.d.ts.map +1 -1
  85. package/lib/typescript/module/theme/adaptive-colors.d.ts.map +1 -1
  86. package/lib/typescript/module/theme/color-presets.d.ts +1 -1
  87. package/lib/typescript/module/theme/color-presets.d.ts.map +1 -1
  88. package/package.json +1 -1
  89. package/src/__tests__/BloomThemeProvider.test.tsx +2 -2
  90. package/src/__tests__/SettingsList.test.tsx +76 -0
  91. package/src/assets.d.ts +26 -0
  92. package/src/avatar/Avatar.tsx +8 -2
  93. package/src/avatar/index.ts +4 -1
  94. package/src/bottom-sheet/index.tsx +3 -3
  95. package/src/context-menu/index.web.tsx +1 -1
  96. package/src/icons/index.ts +0 -1
  97. package/src/index.ts +0 -1
  98. package/src/loading/Loading.tsx +5 -1
  99. package/src/loading/SpinnerIcon.tsx +10 -2
  100. package/src/prompt-input/Textarea.web.tsx +1 -1
  101. package/src/settings-list/SettingsList.tsx +30 -3
  102. package/src/settings-list/types.ts +8 -0
  103. package/src/theme/adaptive-colors.ts +6 -2
  104. package/src/theme/color-presets.ts +97 -2
@@ -1,4 +1,4 @@
1
- export type AppColorName = 'teal' | 'blue' | 'green' | 'amber' | 'red' | 'purple' | 'pink' | 'sky' | 'orange' | 'mint' | 'oxy';
1
+ export type AppColorName = 'teal' | 'blue' | 'green' | 'amber' | 'yellow' | 'red' | 'purple' | 'pink' | 'sky' | 'orange' | 'mint' | 'oxy' | 'faircoin';
2
2
 
3
3
  export interface AppColorPreset {
4
4
  name: AppColorName;
@@ -7,13 +7,14 @@ export interface AppColorPreset {
7
7
  dark: Record<string, string>;
8
8
  }
9
9
 
10
- export const APP_COLOR_NAMES: AppColorName[] = ['teal', 'blue', 'green', 'amber', 'red', 'purple', 'pink', 'sky', 'orange', 'mint'];
10
+ export const APP_COLOR_NAMES: AppColorName[] = ['teal', 'blue', 'green', 'amber', 'yellow', 'red', 'purple', 'pink', 'sky', 'orange', 'mint', 'oxy', 'faircoin'];
11
11
 
12
12
  export const HEX_TO_APP_COLOR: Record<string, AppColorName> = {
13
13
  '#005c67': 'teal',
14
14
  '#1d9bf0': 'blue',
15
15
  '#10b981': 'green',
16
16
  '#f59e0b': 'amber',
17
+ '#ffc300': 'yellow',
17
18
  '#ef4444': 'red',
18
19
  '#8b5cf6': 'purple',
19
20
  '#ec4899': 'pink',
@@ -21,6 +22,7 @@ export const HEX_TO_APP_COLOR: Record<string, AppColorName> = {
21
22
  '#f97316': 'orange',
22
23
  '#14b8a6': 'mint',
23
24
  '#c46ede': 'oxy',
25
+ '#9ffb50': 'faircoin',
24
26
  };
25
27
 
26
28
  export function hexToAppColorName(hex: string): AppColorName {
@@ -216,6 +218,53 @@ export const APP_COLOR_PRESETS: Record<AppColorName, AppColorPreset> = {
216
218
  },
217
219
  },
218
220
 
221
+ yellow: {
222
+ name: 'yellow',
223
+ hex: '#ffc300',
224
+ light: {
225
+ '--background': '0 0% 99%',
226
+ '--foreground': '0 0% 12%',
227
+ '--surface': '46 10% 97%',
228
+ '--surface-foreground': '0 0% 12%',
229
+ '--popover': '0 0% 100%',
230
+ '--popover-foreground': '0 0% 12%',
231
+ '--primary': '46 100% 50%',
232
+ '--primary-foreground': '0 0% 0%',
233
+ '--secondary': '46 8% 95%',
234
+ '--secondary-foreground': '0 0% 12%',
235
+ '--muted': '46 8% 95%',
236
+ '--muted-foreground': '46 5% 42%',
237
+ '--accent': '46 8% 95%',
238
+ '--accent-foreground': '0 0% 12%',
239
+ '--destructive': '0 84% 60%',
240
+ '--border': '46 8% 88%',
241
+ '--input': '46 8% 88%',
242
+ '--ring': '46 100% 50%',
243
+ '--sidebar': '46 10% 97%',
244
+ },
245
+ dark: {
246
+ '--background': '46 50% 5%',
247
+ '--foreground': '0 0% 93%',
248
+ '--surface': '46 20% 18%',
249
+ '--surface-foreground': '0 0% 93%',
250
+ '--popover': '46 20% 18%',
251
+ '--popover-foreground': '0 0% 93%',
252
+ '--primary': '46 100% 50%',
253
+ '--primary-foreground': '0 0% 0%',
254
+ '--secondary': '46 20% 18%',
255
+ '--secondary-foreground': '0 0% 93%',
256
+ '--muted': '46 18% 20%',
257
+ '--muted-foreground': '0 0% 70%',
258
+ '--accent': '46 18% 20%',
259
+ '--accent-foreground': '0 0% 93%',
260
+ '--destructive': '0 84% 60%',
261
+ '--border': '46 12% 20%',
262
+ '--input': '46 10% 23%',
263
+ '--ring': '46 100% 50%',
264
+ '--sidebar': '46 30% 8%',
265
+ },
266
+ },
267
+
219
268
  red: {
220
269
  name: 'red',
221
270
  hex: '#EF4444',
@@ -544,4 +593,50 @@ export const APP_COLOR_PRESETS: Record<AppColorName, AppColorPreset> = {
544
593
  '--sidebar': '277 30% 8%',
545
594
  },
546
595
  },
596
+ faircoin: {
597
+ name: 'faircoin',
598
+ hex: '#9ffb50',
599
+ light: {
600
+ '--background': '0 0% 99%',
601
+ '--foreground': '0 0% 12%',
602
+ '--surface': '92 10% 97%',
603
+ '--surface-foreground': '0 0% 12%',
604
+ '--popover': '0 0% 100%',
605
+ '--popover-foreground': '0 0% 12%',
606
+ '--primary': '92 96% 65%',
607
+ '--primary-foreground': '0 0% 0%',
608
+ '--secondary': '92 8% 95%',
609
+ '--secondary-foreground': '0 0% 12%',
610
+ '--muted': '92 8% 95%',
611
+ '--muted-foreground': '92 5% 42%',
612
+ '--accent': '92 8% 95%',
613
+ '--accent-foreground': '0 0% 12%',
614
+ '--destructive': '0 84% 60%',
615
+ '--border': '92 8% 88%',
616
+ '--input': '92 8% 88%',
617
+ '--ring': '92 96% 65%',
618
+ '--sidebar': '92 10% 97%',
619
+ },
620
+ dark: {
621
+ '--background': '69 54% 8%',
622
+ '--foreground': '0 0% 93%',
623
+ '--surface': '69 30% 13%',
624
+ '--surface-foreground': '0 0% 93%',
625
+ '--popover': '69 30% 13%',
626
+ '--popover-foreground': '0 0% 93%',
627
+ '--primary': '92 96% 65%',
628
+ '--primary-foreground': '0 0% 0%',
629
+ '--secondary': '69 20% 15%',
630
+ '--secondary-foreground': '0 0% 93%',
631
+ '--muted': '69 18% 16%',
632
+ '--muted-foreground': '0 0% 46%',
633
+ '--accent': '69 18% 16%',
634
+ '--accent-foreground': '0 0% 93%',
635
+ '--destructive': '0 84% 60%',
636
+ '--border': '69 20% 18%',
637
+ '--input': '69 15% 20%',
638
+ '--ring': '92 96% 65%',
639
+ '--sidebar': '69 40% 6%',
640
+ },
641
+ },
547
642
  };