@terreno/ui 57.16.1 → 57.17.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 (44) hide show
  1. package/dist/Banner.d.ts +2 -1
  2. package/dist/Banner.d.ts.map +1 -1
  3. package/dist/Banner.js +2 -2
  4. package/dist/Banner.js.map +1 -1
  5. package/dist/Button.d.ts.map +1 -1
  6. package/dist/Button.js +2 -7
  7. package/dist/Button.js.map +1 -1
  8. package/dist/DataTable.d.ts.map +1 -1
  9. package/dist/DataTable.js +10 -7
  10. package/dist/DataTable.js.map +1 -1
  11. package/dist/GPTChat.d.ts +7 -1
  12. package/dist/GPTChat.d.ts.map +1 -1
  13. package/dist/GPTChat.js +2 -2
  14. package/dist/GPTChat.js.map +1 -1
  15. package/dist/WhatsNewBanner.d.ts +42 -0
  16. package/dist/WhatsNewBanner.d.ts.map +1 -0
  17. package/dist/WhatsNewBanner.js +68 -0
  18. package/dist/WhatsNewBanner.js.map +1 -0
  19. package/dist/index.d.ts +1 -0
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +1 -0
  22. package/dist/index.js.map +1 -1
  23. package/package.json +2 -2
  24. package/src/Banner.tsx +3 -0
  25. package/src/Button.test.tsx +13 -2
  26. package/src/Button.tsx +2 -9
  27. package/src/DataTable.tsx +11 -7
  28. package/src/GPTChat.test.tsx +18 -0
  29. package/src/GPTChat.tsx +71 -54
  30. package/src/WhatsNewBanner.test.tsx +186 -0
  31. package/src/WhatsNewBanner.tsx +191 -0
  32. package/src/__snapshots__/Button.test.tsx.snap +14 -14
  33. package/src/__snapshots__/DecimalRangeActionSheet.test.tsx.snap +2 -2
  34. package/src/__snapshots__/DropdownPanel.test.tsx.snap +2 -2
  35. package/src/__snapshots__/ErrorPage.test.tsx.snap +1 -1
  36. package/src/__snapshots__/HeightActionSheet.test.tsx.snap +2 -2
  37. package/src/__snapshots__/HeightField.test.tsx.snap +5 -5
  38. package/src/__snapshots__/InfoModalIcon.test.tsx.snap +1 -1
  39. package/src/__snapshots__/Modal.test.tsx.snap +2 -2
  40. package/src/__snapshots__/NumberPickerActionSheet.test.tsx.snap +2 -2
  41. package/src/bunSetup.ts +31 -0
  42. package/src/index.tsx +1 -0
  43. package/src/login/__snapshots__/LoginScreen.test.tsx.snap +2 -2
  44. package/src/signUp/__snapshots__/SignUpScreen.test.tsx.snap +2 -2
@@ -140,7 +140,7 @@ exports[`DecimalRangeActionSheet renders correctly 1`] = `
140
140
  ],
141
141
  "props": {
142
142
  "style": {
143
- "color": "#092E3A",
143
+ "color": "#FFFFFF",
144
144
  "fontSize": 16,
145
145
  "fontWeight": "700",
146
146
  },
@@ -819,7 +819,7 @@ exports[`DecimalRangeActionSheet renders with different min/max range 1`] = `
819
819
  ],
820
820
  "props": {
821
821
  "style": {
822
- "color": "#092E3A",
822
+ "color": "#FFFFFF",
823
823
  "fontSize": 16,
824
824
  "fontWeight": "700",
825
825
  },
@@ -60,7 +60,7 @@ exports[`DropdownPanel renders correctly with default props 1`] = `
60
60
  },
61
61
  ],
62
62
  "props": {
63
- "fill": "#092E3A",
63
+ "fill": "#FFFFFF",
64
64
  "height": 16,
65
65
  "testID": undefined,
66
66
  "viewBox": "0 0 512 512",
@@ -86,7 +86,7 @@ exports[`DropdownPanel renders correctly with default props 1`] = `
86
86
  ],
87
87
  "props": {
88
88
  "style": {
89
- "color": "#092E3A",
89
+ "color": "#FFFFFF",
90
90
  "fontSize": 16,
91
91
  "fontWeight": "700",
92
92
  },
@@ -125,7 +125,7 @@ exports[`ErrorPage renders correctly 1`] = `
125
125
  ],
126
126
  "props": {
127
127
  "style": {
128
- "color": "#092E3A",
128
+ "color": "#FFFFFF",
129
129
  "fontSize": 16,
130
130
  "fontWeight": "700",
131
131
  },
@@ -155,7 +155,7 @@ exports[`HeightActionSheet renders correctly 1`] = `
155
155
  ],
156
156
  "props": {
157
157
  "style": {
158
- "color": "#092E3A",
158
+ "color": "#FFFFFF",
159
159
  "fontSize": 16,
160
160
  "fontWeight": "700",
161
161
  },
@@ -846,7 +846,7 @@ exports[`HeightActionSheet renders with different height value 1`] = `
846
846
  ],
847
847
  "props": {
848
848
  "style": {
849
- "color": "#092E3A",
849
+ "color": "#FFFFFF",
850
850
  "fontSize": 16,
851
851
  "fontWeight": "700",
852
852
  },
@@ -216,7 +216,7 @@ exports[`HeightField snapshots should match snapshot with default props 1`] = `
216
216
  ],
217
217
  "props": {
218
218
  "style": {
219
- "color": "#092E3A",
219
+ "color": "#FFFFFF",
220
220
  "fontSize": 16,
221
221
  "fontWeight": "700",
222
222
  },
@@ -978,7 +978,7 @@ exports[`HeightField snapshots should match snapshot with value 1`] = `
978
978
  ],
979
979
  "props": {
980
980
  "style": {
981
- "color": "#092E3A",
981
+ "color": "#FFFFFF",
982
982
  "fontSize": 16,
983
983
  "fontWeight": "700",
984
984
  },
@@ -1840,7 +1840,7 @@ exports[`HeightField snapshots should match snapshot with all props 1`] = `
1840
1840
  ],
1841
1841
  "props": {
1842
1842
  "style": {
1843
- "color": "#092E3A",
1843
+ "color": "#FFFFFF",
1844
1844
  "fontSize": 16,
1845
1845
  "fontWeight": "700",
1846
1846
  },
@@ -2634,7 +2634,7 @@ exports[`HeightField snapshots should match snapshot when disabled 1`] = `
2634
2634
  ],
2635
2635
  "props": {
2636
2636
  "style": {
2637
- "color": "#092E3A",
2637
+ "color": "#FFFFFF",
2638
2638
  "fontSize": 16,
2639
2639
  "fontWeight": "700",
2640
2640
  },
@@ -3467,7 +3467,7 @@ exports[`HeightField snapshots should match snapshot with error state 1`] = `
3467
3467
  ],
3468
3468
  "props": {
3469
3469
  "style": {
3470
- "color": "#092E3A",
3470
+ "color": "#FFFFFF",
3471
3471
  "fontSize": 16,
3472
3472
  "fontWeight": "700",
3473
3473
  },
@@ -281,7 +281,7 @@ exports[`InfoModalIcon opens modal when pressed 1`] = `
281
281
  ],
282
282
  "props": {
283
283
  "style": {
284
- "color": "#092E3A",
284
+ "color": "#FFFFFF",
285
285
  "fontSize": 16,
286
286
  "fontWeight": "700",
287
287
  },
@@ -428,7 +428,7 @@ exports[`Modal renders with both buttons 1`] = `
428
428
  ],
429
429
  "props": {
430
430
  "style": {
431
- "color": "#092E3A",
431
+ "color": "#FFFFFF",
432
432
  "fontSize": 16,
433
433
  "fontWeight": "700",
434
434
  },
@@ -682,7 +682,7 @@ exports[`Modal renders with disabled primary button 1`] = `
682
682
  ],
683
683
  "props": {
684
684
  "style": {
685
- "color": "#092E3A",
685
+ "color": "#FFFFFF",
686
686
  "fontSize": 16,
687
687
  "fontWeight": "700",
688
688
  },
@@ -140,7 +140,7 @@ exports[`NumberPickerActionSheet renders correctly 1`] = `
140
140
  ],
141
141
  "props": {
142
142
  "style": {
143
- "color": "#092E3A",
143
+ "color": "#FFFFFF",
144
144
  "fontSize": 16,
145
145
  "fontWeight": "700",
146
146
  },
@@ -1469,7 +1469,7 @@ exports[`NumberPickerActionSheet renders with different range 1`] = `
1469
1469
  ],
1470
1470
  "props": {
1471
1471
  "style": {
1472
- "color": "#092E3A",
1472
+ "color": "#FFFFFF",
1473
1473
  "fontSize": 16,
1474
1474
  "fontWeight": "700",
1475
1475
  },
package/src/bunSetup.ts CHANGED
@@ -668,7 +668,37 @@ if (typeof globalThis.expo === "undefined") {
668
668
  }
669
669
 
670
670
  // Mock expo-router
671
+ const mockNavigationFonts = {
672
+ bold: {fontFamily: "System", fontWeight: "600"},
673
+ heavy: {fontFamily: "System", fontWeight: "700"},
674
+ medium: {fontFamily: "System", fontWeight: "500"},
675
+ regular: {fontFamily: "System", fontWeight: "400"},
676
+ };
671
677
  mock.module("expo-router", () => ({
678
+ DarkTheme: {
679
+ colors: {
680
+ background: "rgb(1, 1, 1)",
681
+ border: "rgb(39, 39, 41)",
682
+ card: "rgb(18, 18, 18)",
683
+ notification: "rgb(255, 69, 58)",
684
+ primary: "rgb(10, 132, 255)",
685
+ text: "rgb(229, 229, 231)",
686
+ },
687
+ dark: true,
688
+ fonts: mockNavigationFonts,
689
+ },
690
+ DefaultTheme: {
691
+ colors: {
692
+ background: "rgb(242, 242, 242)",
693
+ border: "rgb(216, 216, 216)",
694
+ card: "rgb(255, 255, 255)",
695
+ notification: "rgb(255, 59, 48)",
696
+ primary: "rgb(0, 122, 255)",
697
+ text: "rgb(28, 28, 30)",
698
+ },
699
+ dark: false,
700
+ fonts: mockNavigationFonts,
701
+ },
672
702
  Link: ({children, ...props}: MockComponentProps) => React.createElement("Link", props, children),
673
703
  Navigator: ({children, ...props}: MockComponentProps) =>
674
704
  React.createElement("Navigator", props, children),
@@ -684,6 +714,7 @@ mock.module("expo-router", () => ({
684
714
  Stack: ({children, ...props}: MockComponentProps) =>
685
715
  React.createElement("Stack", props, children),
686
716
  Tabs: ({children, ...props}: MockComponentProps) => React.createElement("Tabs", props, children),
717
+ ThemeProvider: ({children}: MockComponentProps) => children,
687
718
  useFocusEffect: mock(() => undefined),
688
719
  useGlobalSearchParams: mock(() => ({})),
689
720
  useLocalSearchParams: mock(() => ({})),
package/src/index.tsx CHANGED
@@ -191,6 +191,7 @@ export * from "./useConsentForms";
191
191
  export * from "./useStoredState";
192
192
  export * from "./useSubmitConsent";
193
193
  export * from "./WebAddressAutocomplete";
194
+ export * from "./WhatsNewBanner";
194
195
 
195
196
  // export * from "./Layout";
196
197
  // export * from "./Drawer";
@@ -327,7 +327,7 @@ exports[`LoginScreen renders correctly with all props 1`] = `
327
327
  ],
328
328
  "props": {
329
329
  "style": {
330
- "color": "#092E3A",
330
+ "color": "#FFFFFF",
331
331
  "fontSize": 16,
332
332
  "fontWeight": "700",
333
333
  },
@@ -350,7 +350,7 @@ exports[`LoginScreen renders correctly with all props 1`] = `
350
350
  "$$typeof": Symbol(react.test.json),
351
351
  "children": null,
352
352
  "props": {
353
- "color": "#092E3A",
353
+ "color": "#FFFFFF",
354
354
  "size": "small",
355
355
  },
356
356
  "type": "ActivityIndicator",
@@ -660,7 +660,7 @@ exports[`SignUpScreen renders correctly with all props 1`] = `
660
660
  ],
661
661
  "props": {
662
662
  "style": {
663
- "color": "#092E3A",
663
+ "color": "#FFFFFF",
664
664
  "fontSize": 16,
665
665
  "fontWeight": "700",
666
666
  },
@@ -683,7 +683,7 @@ exports[`SignUpScreen renders correctly with all props 1`] = `
683
683
  "$$typeof": Symbol(react.test.json),
684
684
  "children": null,
685
685
  "props": {
686
- "color": "#092E3A",
686
+ "color": "#FFFFFF",
687
687
  "size": "small",
688
688
  },
689
689
  "type": "ActivityIndicator",