@jobber/components-native 0.54.4-JOB-88641.9 → 0.54.4-fix-inline.6

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 (152) hide show
  1. package/dist/package.json +7 -7
  2. package/dist/src/ActionItem/ActionItem.js +1 -1
  3. package/dist/src/Banner/Banner.js +1 -1
  4. package/dist/src/Button/Button.js +2 -2
  5. package/dist/src/Button/Button.style.js +2 -2
  6. package/dist/src/Button/components/InternalButtonLoading/InternalButtonLoading.js +3 -0
  7. package/dist/src/ButtonGroup/ButtonGroup.js +1 -1
  8. package/dist/src/ButtonGroup/ButtonGroup.style.js +1 -1
  9. package/dist/src/Card/Card.js +7 -8
  10. package/dist/src/Disclosure/Disclosure.js +3 -3
  11. package/dist/src/Glimmer/Glimmer.js +42 -0
  12. package/dist/src/Glimmer/Glimmer.shape.style.js +16 -0
  13. package/dist/src/Glimmer/Glimmer.size.style.js +9 -0
  14. package/dist/src/Glimmer/Glimmer.style.js +20 -0
  15. package/dist/src/Glimmer/index.js +1 -0
  16. package/dist/src/InputCurrency/InputCurrency.js +16 -17
  17. package/dist/src/InputFieldWrapper/InputFieldWrapper.js +39 -18
  18. package/dist/src/InputFieldWrapper/InputFieldWrapper.style.js +38 -1
  19. package/dist/src/InputText/InputText.js +6 -3
  20. package/dist/src/Menu/Menu.js +20 -3
  21. package/dist/src/Menu/Menu.style.js +1 -1
  22. package/dist/src/Menu/utils.js +2 -7
  23. package/dist/src/index.js +6 -5
  24. package/dist/tsconfig.tsbuildinfo +1 -1
  25. package/dist/types/src/BottomSheet/components/BottomSheetOption/BottomSheetOption.d.ts +1 -1
  26. package/dist/types/src/ButtonGroup/ButtonGroup.style.d.ts +1 -1
  27. package/dist/types/src/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.d.ts +6 -6
  28. package/dist/types/src/Checkbox/CheckboxGroup.d.ts +2 -2
  29. package/dist/types/src/Form/components/FormBody/FormBody.d.ts +3 -3
  30. package/dist/types/src/Form/components/FormCache/FormCache.d.ts +4 -4
  31. package/dist/types/src/Form/components/FormMessageBanner/FormMessageBanner.d.ts +1 -1
  32. package/dist/types/src/FormField/FormField.d.ts +2 -2
  33. package/dist/types/src/FormatFile/FormatFile.d.ts +6 -6
  34. package/dist/types/src/FormatFile/components/FileView/FileView.d.ts +6 -6
  35. package/dist/types/src/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.d.ts +4 -4
  36. package/dist/types/src/FormatFile/components/MediaView/MediaView.d.ts +6 -6
  37. package/dist/types/src/FormatFile/components/ProgressBar/ProgressBar.d.ts +3 -3
  38. package/dist/types/src/Glimmer/Glimmer.d.ts +31 -0
  39. package/dist/types/src/Glimmer/Glimmer.shape.style.d.ts +14 -0
  40. package/dist/types/src/Glimmer/Glimmer.size.style.d.ts +17 -0
  41. package/dist/types/src/Glimmer/Glimmer.style.d.ts +18 -0
  42. package/dist/types/src/Glimmer/index.d.ts +1 -0
  43. package/dist/types/src/InputCurrency/InputCurrency.d.ts +3 -3
  44. package/dist/types/src/InputFieldWrapper/InputFieldWrapper.d.ts +19 -1
  45. package/dist/types/src/InputFieldWrapper/InputFieldWrapper.style.d.ts +34 -0
  46. package/dist/types/src/InputFieldWrapper/components/Prefix/Prefix.d.ts +12 -12
  47. package/dist/types/src/InputFieldWrapper/components/Suffix/Suffix.d.ts +14 -14
  48. package/dist/types/src/InputPassword/InputPassword.d.ts +1 -1
  49. package/dist/types/src/InputText/InputText.d.ts +6 -2
  50. package/dist/types/src/InputText/context/InputAccessoriesProvider.d.ts +1 -1
  51. package/dist/types/src/Toast/Toast.d.ts +1 -1
  52. package/dist/types/src/index.d.ts +6 -5
  53. package/dist/types/src/utils/test/MockSafeAreaProvider.d.ts +3 -3
  54. package/jestSetup.js +2 -0
  55. package/package.json +7 -7
  56. package/src/ActionItem/ActionItem.test.tsx +2 -2
  57. package/src/ActionItem/ActionItem.tsx +3 -1
  58. package/src/ActionItem/ActionItemGroup.tsx +1 -0
  59. package/src/AutoLink/hooks/useCreateLinkedText.ts +1 -0
  60. package/src/AutoLink/hooks/useTokenGenerator.ts +1 -0
  61. package/src/Banner/Banner.tsx +1 -1
  62. package/src/BottomSheet/BottomSheet.tsx +3 -3
  63. package/src/BottomSheet/components/BottomSheetOption/BottomSheetOption.tsx +3 -1
  64. package/src/Button/Button.style.ts +2 -2
  65. package/src/Button/Button.test.tsx +2 -2
  66. package/src/Button/Button.tsx +2 -2
  67. package/src/Button/components/InternalButtonLoading/InternalButtonLoading.tsx +4 -0
  68. package/src/ButtonGroup/ButtonGroup.style.ts +1 -1
  69. package/src/ButtonGroup/ButtonGroup.tsx +1 -0
  70. package/src/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.tsx +7 -6
  71. package/src/Card/Card.tsx +31 -32
  72. package/src/Card/components/InternalCardHeader.tsx +1 -0
  73. package/src/Checkbox/CheckboxGroup.tsx +12 -2
  74. package/src/Chip/Chip.tsx +2 -0
  75. package/src/Content/Content.test.tsx +1 -0
  76. package/src/Content/Content.tsx +1 -0
  77. package/src/ContentOverlay/ContentOverlay.test.tsx +1 -0
  78. package/src/Disclosure/Disclosure.tsx +3 -8
  79. package/src/Disclosure/__snapshots__/Disclosure.test.tsx.snap +18 -24
  80. package/src/Divider/Divider.tsx +1 -0
  81. package/src/EmptyState/EmptyState.tsx +2 -2
  82. package/src/Flex/Flex.styles.tsx +1 -0
  83. package/src/Flex/Flex.test.tsx +2 -0
  84. package/src/Form/Form.test.tsx +19 -14
  85. package/src/Form/components/FormBody/FormBody.tsx +4 -3
  86. package/src/Form/components/FormCache/FormCache.tsx +5 -4
  87. package/src/Form/components/FormMessage/FormMessage.tsx +1 -0
  88. package/src/Form/components/FormMessageBanner/FormMessageBanner.tsx +1 -1
  89. package/src/Form/components/FormSaveButton/FormSaveButton.test.tsx +5 -5
  90. package/src/Form/context/AtlantisFormContext.tsx +1 -0
  91. package/src/Form/hooks/useFormViewRefs.ts +1 -0
  92. package/src/Form/hooks/useOfflineHandler.ts +1 -0
  93. package/src/Form/hooks/useScrollToError/useScrollToError.ts +2 -0
  94. package/src/FormField/FormField.test.tsx +6 -8
  95. package/src/FormField/FormField.tsx +2 -2
  96. package/src/FormatFile/FormatFile.tsx +15 -14
  97. package/src/FormatFile/components/FileView/FileView.tsx +9 -6
  98. package/src/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.tsx +4 -4
  99. package/src/FormatFile/components/MediaView/MediaView.tsx +15 -14
  100. package/src/FormatFile/components/ProgressBar/ProgressBar.tsx +3 -3
  101. package/src/FormatFile/utils/createUseCreateThumbnail.ts +1 -0
  102. package/src/Glimmer/Glimmer.shape.style.ts +17 -0
  103. package/src/Glimmer/Glimmer.size.style.ts +10 -0
  104. package/src/Glimmer/Glimmer.style.ts +23 -0
  105. package/src/Glimmer/Glimmer.test.tsx +73 -0
  106. package/src/Glimmer/Glimmer.tsx +106 -0
  107. package/src/Glimmer/index.ts +1 -0
  108. package/src/Heading/__snapshots__/Heading.test.tsx.snap +7 -7
  109. package/src/Icon/Icon.tsx +1 -0
  110. package/src/Icon/__snapshots__/Icon.test.tsx.snap +96 -31
  111. package/src/InputCurrency/InputCurrency.tsx +40 -38
  112. package/src/InputCurrency/utils.ts +9 -0
  113. package/src/InputDate/InputDate.test.tsx +1 -0
  114. package/src/InputFieldWrapper/InputFieldWrapper.style.ts +46 -1
  115. package/src/InputFieldWrapper/InputFieldWrapper.test.tsx +74 -0
  116. package/src/InputFieldWrapper/InputFieldWrapper.tsx +131 -64
  117. package/src/InputFieldWrapper/components/ClearAction/ClearAction.tsx +1 -0
  118. package/src/InputFieldWrapper/components/Prefix/Prefix.tsx +12 -12
  119. package/src/InputFieldWrapper/components/Suffix/Suffix.tsx +14 -14
  120. package/src/InputNumber/InputNumber.tsx +8 -0
  121. package/src/InputPassword/InputPassword.test.tsx +1 -0
  122. package/src/InputPassword/InputPassword.tsx +2 -1
  123. package/src/InputPressable/InputPressable.test.tsx +1 -0
  124. package/src/InputSearch/InputSearch.tsx +1 -0
  125. package/src/InputText/InputText.test.tsx +11 -0
  126. package/src/InputText/InputText.tsx +27 -2
  127. package/src/InputText/context/InputAccessoriesProvider.test.tsx +6 -1
  128. package/src/InputText/context/InputAccessoriesProvider.tsx +1 -1
  129. package/src/InputTime/utils/index.ts +1 -0
  130. package/src/Menu/Menu.style.ts +1 -1
  131. package/src/Menu/Menu.tsx +23 -2
  132. package/src/Menu/components/MenuOption/MenuOption.tsx +1 -0
  133. package/src/Menu/utils.ts +3 -7
  134. package/src/ProgressBar/ProgressBarInner.tsx +1 -0
  135. package/src/ProgressBar/__snapshots__/ProgressBar.test.tsx.snap +4 -4
  136. package/src/Select/components/SelectInternalPicker/SelectInternalPicker.tsx +1 -0
  137. package/src/Select/components/SelectInternalPicker/utils.ts +1 -0
  138. package/src/StatusLabel/StatusLabel.tsx +1 -1
  139. package/src/StatusLabel/__snapshots__/StatusLabel.test.tsx.snap +20 -20
  140. package/src/Switch/components/BaseSwitch/BaseSwitch.tsx +1 -0
  141. package/src/Switch/components/BaseSwitch/__snapshots__/BaseSwitch.test.tsx.snap +18 -18
  142. package/src/Text/Text.tsx +1 -0
  143. package/src/Text/__snapshots__/Text.test.tsx.snap +9 -9
  144. package/src/ThumbnailList/__snapshots__/ThumbnailList.test.tsx.snap +3 -3
  145. package/src/Toast/Toast.tsx +2 -1
  146. package/src/Typography/Typography.tsx +5 -0
  147. package/src/Typography/__snapshots__/Typography.test.tsx.snap +3 -3
  148. package/src/hooks/useAtlantisI18n/utils/dateFormatter.ts +1 -0
  149. package/src/hooks/useFormController.ts +2 -0
  150. package/src/index.ts +6 -5
  151. package/src/utils/intl/capitalize.ts +1 -0
  152. package/src/utils/test/MockSafeAreaProvider.tsx +3 -3
package/src/Menu/utils.ts CHANGED
@@ -82,6 +82,7 @@ function getHorizontalPosition(
82
82
  if (menuPositionHorizontal === "menuRight") {
83
83
  getRightPosition(pos, activatorLayout, windowWidth, menuPadding, menuWidth);
84
84
  }
85
+
85
86
  if (menuPositionHorizontal === "menuLeft") {
86
87
  getLeftPosition(pos, activatorLayout, windowWidth, menuPadding, menuWidth);
87
88
  }
@@ -117,12 +118,7 @@ function getLeftPosition(
117
118
  } else if (overflowRight) {
118
119
  pos.right = 0;
119
120
  } else {
120
- pos.right =
121
- windowWidth -
122
- activatorLayout.x -
123
- activatorLayout.width +
124
- activatorLayout.width / 2 -
125
- menuHorizontalPadding;
121
+ pos.right = windowWidth - activatorLayout.x - activatorLayout.width;
126
122
  }
127
123
  }
128
124
 
@@ -146,6 +142,6 @@ function getRightPosition(
146
142
  } else if (overflowLeft) {
147
143
  pos.left = 0;
148
144
  } else {
149
- pos.left = activatorLayout.x + activatorLayout.width / 2 - menuPadding;
145
+ pos.left = activatorLayout.x;
150
146
  }
151
147
  }
@@ -43,5 +43,6 @@ export function calculateWidth(total: number, current: number): number {
43
43
  const curr = Math.max(0, current);
44
44
 
45
45
  if (curr >= total) return 100;
46
+
46
47
  return (curr / total) * 100;
47
48
  }
@@ -30,7 +30,7 @@ exports[`renders blue inProgress bar when 1 or more jobs is in progress 1`] = `
30
30
  "width": "100%",
31
31
  },
32
32
  {
33
- "backgroundColor": "rgb(238, 240, 242)",
33
+ "backgroundColor": "rgb(241, 239, 233)",
34
34
  "width": "100%",
35
35
  },
36
36
  ]
@@ -68,7 +68,7 @@ exports[`renders blue inProgress bar when 1 or more jobs is in progress 1`] = `
68
68
  "width": "100%",
69
69
  },
70
70
  {
71
- "backgroundColor": "rgb(125, 176, 14)",
71
+ "backgroundColor": "rgb(50, 130, 28)",
72
72
  "width": "0%",
73
73
  },
74
74
  ]
@@ -108,7 +108,7 @@ exports[`renders green CompletedProgress bar when 1 or more jobs is completed 1`
108
108
  "width": "100%",
109
109
  },
110
110
  {
111
- "backgroundColor": "rgb(238, 240, 242)",
111
+ "backgroundColor": "rgb(241, 239, 233)",
112
112
  "width": "100%",
113
113
  },
114
114
  ]
@@ -127,7 +127,7 @@ exports[`renders green CompletedProgress bar when 1 or more jobs is completed 1`
127
127
  "width": "100%",
128
128
  },
129
129
  {
130
- "backgroundColor": "rgb(125, 176, 14)",
130
+ "backgroundColor": "rgb(50, 130, 28)",
131
131
  "width": "50%",
132
132
  },
133
133
  ]
@@ -12,6 +12,7 @@ export function SelectInternalPicker({
12
12
  onChange,
13
13
  }: SelectInternalPickerProps): JSX.Element {
14
14
  if (disabled) return <>{children}</>;
15
+
15
16
  if (isIOS14AndUp()) {
16
17
  return (
17
18
  <SelectPressable>
@@ -13,6 +13,7 @@ export function handlePress(onChange: SelectInternalPickerProps["onChange"]) {
13
13
  export function isIOS14AndUp(): boolean {
14
14
  if (Platform.OS === "ios") {
15
15
  const majorVersionIOS = parseInt(Platform.Version, 10);
16
+
16
17
  return majorVersionIOS >= 14;
17
18
  }
18
19
 
@@ -57,7 +57,7 @@ export function StatusLabel({
57
57
  }
58
58
 
59
59
  interface StatusLabelIconProps {
60
- status: StatusType;
60
+ readonly status: StatusType;
61
61
  }
62
62
 
63
63
  function StatusLabelIcon({ status }: StatusLabelIconProps) {
@@ -34,7 +34,7 @@ exports[`StatusLabel alignment when alignment prop set to "end" should match sna
34
34
  "fontFamily": "inter-medium",
35
35
  },
36
36
  {
37
- "color": "rgb(77, 105, 116)",
37
+ "color": "rgb(78, 105, 116)",
38
38
  },
39
39
  {
40
40
  "textAlign": "right",
@@ -63,14 +63,14 @@ exports[`StatusLabel alignment when alignment prop set to "end" should match sna
63
63
  style={
64
64
  [
65
65
  {
66
- "backgroundColor": "rgb(125, 176, 14)",
66
+ "backgroundColor": "rgb(50, 130, 28)",
67
67
  "borderRadius": 3,
68
68
  "height": 12,
69
69
  "marginTop": 3,
70
70
  "width": 12,
71
71
  },
72
72
  {
73
- "backgroundColor": "rgb(125, 176, 14)",
73
+ "backgroundColor": "rgb(50, 130, 28)",
74
74
  },
75
75
  ]
76
76
  }
@@ -113,7 +113,7 @@ exports[`StatusLabel alignment when alignment prop set to default ("start") shou
113
113
  "fontFamily": "inter-medium",
114
114
  },
115
115
  {
116
- "color": "rgb(77, 105, 116)",
116
+ "color": "rgb(78, 105, 116)",
117
117
  },
118
118
  {
119
119
  "textAlign": "right",
@@ -142,14 +142,14 @@ exports[`StatusLabel alignment when alignment prop set to default ("start") shou
142
142
  style={
143
143
  [
144
144
  {
145
- "backgroundColor": "rgb(125, 176, 14)",
145
+ "backgroundColor": "rgb(50, 130, 28)",
146
146
  "borderRadius": 3,
147
147
  "height": 12,
148
148
  "marginTop": 3,
149
149
  "width": 12,
150
150
  },
151
151
  {
152
- "backgroundColor": "rgb(125, 176, 14)",
152
+ "backgroundColor": "rgb(50, 130, 28)",
153
153
  },
154
154
  ]
155
155
  }
@@ -192,7 +192,7 @@ exports[`StatusLabel status when status prop set to "critical" should match snap
192
192
  "fontFamily": "inter-medium",
193
193
  },
194
194
  {
195
- "color": "rgb(77, 105, 116)",
195
+ "color": "rgb(78, 105, 116)",
196
196
  },
197
197
  {
198
198
  "textAlign": "right",
@@ -221,14 +221,14 @@ exports[`StatusLabel status when status prop set to "critical" should match snap
221
221
  style={
222
222
  [
223
223
  {
224
- "backgroundColor": "rgb(125, 176, 14)",
224
+ "backgroundColor": "rgb(50, 130, 28)",
225
225
  "borderRadius": 3,
226
226
  "height": 12,
227
227
  "marginTop": 3,
228
228
  "width": 12,
229
229
  },
230
230
  {
231
- "backgroundColor": "rgb(201, 66, 33)",
231
+ "backgroundColor": "rgb(199, 20, 0)",
232
232
  },
233
233
  ]
234
234
  }
@@ -271,7 +271,7 @@ exports[`StatusLabel status when status prop set to "inactive" should match snap
271
271
  "fontFamily": "inter-medium",
272
272
  },
273
273
  {
274
- "color": "rgb(77, 105, 116)",
274
+ "color": "rgb(78, 105, 116)",
275
275
  },
276
276
  {
277
277
  "textAlign": "right",
@@ -300,14 +300,14 @@ exports[`StatusLabel status when status prop set to "inactive" should match snap
300
300
  style={
301
301
  [
302
302
  {
303
- "backgroundColor": "rgb(125, 176, 14)",
303
+ "backgroundColor": "rgb(50, 130, 28)",
304
304
  "borderRadius": 3,
305
305
  "height": 12,
306
306
  "marginTop": 3,
307
307
  "width": 12,
308
308
  },
309
309
  {
310
- "backgroundColor": "rgb(77, 105, 116)",
310
+ "backgroundColor": "rgb(1, 40, 55)",
311
311
  },
312
312
  ]
313
313
  }
@@ -350,7 +350,7 @@ exports[`StatusLabel status when status prop set to "informative" should match s
350
350
  "fontFamily": "inter-medium",
351
351
  },
352
352
  {
353
- "color": "rgb(77, 105, 116)",
353
+ "color": "rgb(78, 105, 116)",
354
354
  },
355
355
  {
356
356
  "textAlign": "right",
@@ -379,7 +379,7 @@ exports[`StatusLabel status when status prop set to "informative" should match s
379
379
  style={
380
380
  [
381
381
  {
382
- "backgroundColor": "rgb(125, 176, 14)",
382
+ "backgroundColor": "rgb(50, 130, 28)",
383
383
  "borderRadius": 3,
384
384
  "height": 12,
385
385
  "marginTop": 3,
@@ -429,7 +429,7 @@ exports[`StatusLabel status when status prop set to "warning" should match snaps
429
429
  "fontFamily": "inter-medium",
430
430
  },
431
431
  {
432
- "color": "rgb(77, 105, 116)",
432
+ "color": "rgb(78, 105, 116)",
433
433
  },
434
434
  {
435
435
  "textAlign": "right",
@@ -458,14 +458,14 @@ exports[`StatusLabel status when status prop set to "warning" should match snaps
458
458
  style={
459
459
  [
460
460
  {
461
- "backgroundColor": "rgb(125, 176, 14)",
461
+ "backgroundColor": "rgb(50, 130, 28)",
462
462
  "borderRadius": 3,
463
463
  "height": 12,
464
464
  "marginTop": 3,
465
465
  "width": 12,
466
466
  },
467
467
  {
468
- "backgroundColor": "rgb(221, 195, 15)",
468
+ "backgroundColor": "rgb(209, 185, 46)",
469
469
  },
470
470
  ]
471
471
  }
@@ -508,7 +508,7 @@ exports[`StatusLabel status when status prop set to default ("success") should m
508
508
  "fontFamily": "inter-medium",
509
509
  },
510
510
  {
511
- "color": "rgb(77, 105, 116)",
511
+ "color": "rgb(78, 105, 116)",
512
512
  },
513
513
  {
514
514
  "textAlign": "right",
@@ -537,14 +537,14 @@ exports[`StatusLabel status when status prop set to default ("success") should m
537
537
  style={
538
538
  [
539
539
  {
540
- "backgroundColor": "rgb(125, 176, 14)",
540
+ "backgroundColor": "rgb(50, 130, 28)",
541
541
  "borderRadius": 3,
542
542
  "height": 12,
543
543
  "marginTop": 3,
544
544
  "width": 12,
545
545
  },
546
546
  {
547
- "backgroundColor": "rgb(125, 176, 14)",
547
+ "backgroundColor": "rgb(50, 130, 28)",
548
548
  },
549
549
  ]
550
550
  }
@@ -61,6 +61,7 @@ export function BaseSwitch({
61
61
  return tokens["color-surface--background"];
62
62
  }
63
63
  }
64
+
64
65
  return undefined; //use default iOS
65
66
  }
66
67
 
@@ -18,7 +18,7 @@ exports[`renders a Switch with defaultValue false 1`] = `
18
18
  onGestureHandlerStateChange={[Function]}
19
19
  onResponderTerminationRequest={[Function]}
20
20
  onStartShouldSetResponder={[Function]}
21
- onTintColor="rgb(125, 176, 14)"
21
+ onTintColor="rgb(50, 130, 28)"
22
22
  style={
23
23
  [
24
24
  {
@@ -26,12 +26,12 @@ exports[`renders a Switch with defaultValue false 1`] = `
26
26
  "width": 51,
27
27
  },
28
28
  {
29
- "backgroundColor": "rgb(238, 240, 242)",
29
+ "backgroundColor": "rgb(241, 239, 233)",
30
30
  "borderRadius": 16,
31
31
  },
32
32
  ]
33
33
  }
34
- tintColor="rgb(238, 240, 242)"
34
+ tintColor="rgb(241, 239, 233)"
35
35
  value={false}
36
36
  />
37
37
  `;
@@ -54,7 +54,7 @@ exports[`renders a Switch with defaultValue true 1`] = `
54
54
  onGestureHandlerStateChange={[Function]}
55
55
  onResponderTerminationRequest={[Function]}
56
56
  onStartShouldSetResponder={[Function]}
57
- onTintColor="rgb(125, 176, 14)"
57
+ onTintColor="rgb(50, 130, 28)"
58
58
  style={
59
59
  [
60
60
  {
@@ -62,12 +62,12 @@ exports[`renders a Switch with defaultValue true 1`] = `
62
62
  "width": 51,
63
63
  },
64
64
  {
65
- "backgroundColor": "rgb(238, 240, 242)",
65
+ "backgroundColor": "rgb(241, 239, 233)",
66
66
  "borderRadius": 16,
67
67
  },
68
68
  ]
69
69
  }
70
- tintColor="rgb(238, 240, 242)"
70
+ tintColor="rgb(241, 239, 233)"
71
71
  value={true}
72
72
  />
73
73
  `;
@@ -90,7 +90,7 @@ exports[`renders a Switch with value false 1`] = `
90
90
  onGestureHandlerStateChange={[Function]}
91
91
  onResponderTerminationRequest={[Function]}
92
92
  onStartShouldSetResponder={[Function]}
93
- onTintColor="rgb(125, 176, 14)"
93
+ onTintColor="rgb(50, 130, 28)"
94
94
  style={
95
95
  [
96
96
  {
@@ -98,12 +98,12 @@ exports[`renders a Switch with value false 1`] = `
98
98
  "width": 51,
99
99
  },
100
100
  {
101
- "backgroundColor": "rgb(238, 240, 242)",
101
+ "backgroundColor": "rgb(241, 239, 233)",
102
102
  "borderRadius": 16,
103
103
  },
104
104
  ]
105
105
  }
106
- tintColor="rgb(238, 240, 242)"
106
+ tintColor="rgb(241, 239, 233)"
107
107
  value={false}
108
108
  />
109
109
  `;
@@ -126,7 +126,7 @@ exports[`renders a Switch with value true 1`] = `
126
126
  onGestureHandlerStateChange={[Function]}
127
127
  onResponderTerminationRequest={[Function]}
128
128
  onStartShouldSetResponder={[Function]}
129
- onTintColor="rgb(125, 176, 14)"
129
+ onTintColor="rgb(50, 130, 28)"
130
130
  style={
131
131
  [
132
132
  {
@@ -134,12 +134,12 @@ exports[`renders a Switch with value true 1`] = `
134
134
  "width": 51,
135
135
  },
136
136
  {
137
- "backgroundColor": "rgb(238, 240, 242)",
137
+ "backgroundColor": "rgb(241, 239, 233)",
138
138
  "borderRadius": 16,
139
139
  },
140
140
  ]
141
141
  }
142
- tintColor="rgb(238, 240, 242)"
142
+ tintColor="rgb(241, 239, 233)"
143
143
  value={true}
144
144
  />
145
145
  `;
@@ -162,7 +162,7 @@ exports[`renders a disabled Switch with value false 1`] = `
162
162
  onGestureHandlerStateChange={[Function]}
163
163
  onResponderTerminationRequest={[Function]}
164
164
  onStartShouldSetResponder={[Function]}
165
- onTintColor="rgb(125, 176, 14)"
165
+ onTintColor="rgb(50, 130, 28)"
166
166
  style={
167
167
  [
168
168
  {
@@ -170,12 +170,12 @@ exports[`renders a disabled Switch with value false 1`] = `
170
170
  "width": 51,
171
171
  },
172
172
  {
173
- "backgroundColor": "rgb(238, 240, 242)",
173
+ "backgroundColor": "rgb(241, 239, 233)",
174
174
  "borderRadius": 16,
175
175
  },
176
176
  ]
177
177
  }
178
- tintColor="rgb(238, 240, 242)"
178
+ tintColor="rgb(241, 239, 233)"
179
179
  value={false}
180
180
  />
181
181
  `;
@@ -198,7 +198,7 @@ exports[`renders a disabled Switch with value true 1`] = `
198
198
  onGestureHandlerStateChange={[Function]}
199
199
  onResponderTerminationRequest={[Function]}
200
200
  onStartShouldSetResponder={[Function]}
201
- onTintColor="rgb(125, 176, 14)"
201
+ onTintColor="rgb(50, 130, 28)"
202
202
  style={
203
203
  [
204
204
  {
@@ -206,12 +206,12 @@ exports[`renders a disabled Switch with value true 1`] = `
206
206
  "width": 51,
207
207
  },
208
208
  {
209
- "backgroundColor": "rgb(238, 240, 242)",
209
+ "backgroundColor": "rgb(241, 239, 233)",
210
210
  "borderRadius": 16,
211
211
  },
212
212
  ]
213
213
  }
214
- tintColor="rgb(238, 240, 242)"
214
+ tintColor="rgb(241, 239, 233)"
215
215
  value={true}
216
216
  />
217
217
  `;
package/src/Text/Text.tsx CHANGED
@@ -147,5 +147,6 @@ function getFontWeight({
147
147
  }: Pick<TextProps, "level" | "emphasis">): BaseWeight {
148
148
  if (emphasis === "strong") return "semiBold";
149
149
  if (level === "textSupporting") return "medium";
150
+
150
151
  return "regular";
151
152
  }
@@ -49,7 +49,7 @@ exports[`renders text supporting with variation success 1`] = `
49
49
  "fontFamily": "inter-medium",
50
50
  },
51
51
  {
52
- "color": "rgb(81, 114, 9)",
52
+ "color": "rgb(14, 78, 26)",
53
53
  },
54
54
  {
55
55
  "textAlign": "left",
@@ -83,7 +83,7 @@ exports[`renders text supporting with variation success reverseTheme true 1`] =
83
83
  "fontFamily": "inter-medium",
84
84
  },
85
85
  {
86
- "color": "rgb(125, 176, 14)",
86
+ "color": "rgb(50, 130, 28)",
87
87
  },
88
88
  {
89
89
  "textAlign": "left",
@@ -255,7 +255,7 @@ exports[`renders text with error variation 1`] = `
255
255
  "fontFamily": "inter-regular",
256
256
  },
257
257
  {
258
- "color": "rgb(201, 66, 33)",
258
+ "color": "rgb(199, 20, 0)",
259
259
  },
260
260
  {
261
261
  "textAlign": "left",
@@ -289,7 +289,7 @@ exports[`renders text with error variation reverseTheme true 1`] = `
289
289
  "fontFamily": "inter-regular",
290
290
  },
291
291
  {
292
- "color": "rgb(201, 66, 33)",
292
+ "color": "rgb(199, 20, 0)",
293
293
  },
294
294
  {
295
295
  "textAlign": "left",
@@ -323,7 +323,7 @@ exports[`renders text with info variation 1`] = `
323
323
  "fontFamily": "inter-regular",
324
324
  },
325
325
  {
326
- "color": "rgb(39, 105, 146)",
326
+ "color": "rgb(17, 66, 85)",
327
327
  },
328
328
  {
329
329
  "textAlign": "left",
@@ -459,7 +459,7 @@ exports[`renders text with subdued variation 1`] = `
459
459
  "fontFamily": "inter-regular",
460
460
  },
461
461
  {
462
- "color": "rgb(77, 105, 116)",
462
+ "color": "rgb(78, 105, 116)",
463
463
  },
464
464
  {
465
465
  "textAlign": "left",
@@ -493,7 +493,7 @@ exports[`renders text with success variation 1`] = `
493
493
  "fontFamily": "inter-regular",
494
494
  },
495
495
  {
496
- "color": "rgb(81, 114, 9)",
496
+ "color": "rgb(14, 78, 26)",
497
497
  },
498
498
  {
499
499
  "textAlign": "left",
@@ -527,7 +527,7 @@ exports[`renders text with success variation reverseTheme true 1`] = `
527
527
  "fontFamily": "inter-regular",
528
528
  },
529
529
  {
530
- "color": "rgb(125, 176, 14)",
530
+ "color": "rgb(50, 130, 28)",
531
531
  },
532
532
  {
533
533
  "textAlign": "left",
@@ -561,7 +561,7 @@ exports[`renders text with warn variation 1`] = `
561
561
  "fontFamily": "inter-regular",
562
562
  },
563
563
  {
564
- "color": "rgb(144, 127, 10)",
564
+ "color": "rgb(91, 79, 6)",
565
565
  },
566
566
  {
567
567
  "textAlign": "left",
@@ -70,9 +70,9 @@ exports[`renders a thumbnail component with attachments 1`] = `
70
70
  style={
71
71
  [
72
72
  {
73
- "backgroundColor": "rgb(238, 240, 242)",
74
- "borderColor": "rgb(217, 223, 225)",
75
- "borderRadius": 2,
73
+ "backgroundColor": "rgb(241, 239, 233)",
74
+ "borderColor": "rgb(218, 224, 226)",
75
+ "borderRadius": 8,
76
76
  "borderWidth": 1,
77
77
  "marginBottom": 8,
78
78
  },
@@ -19,6 +19,7 @@ function DefaultToast({ text1 }: ToastConfigParams<string>): JSX.Element {
19
19
  const { bottom } = useSafeAreaInsets();
20
20
  const { t } = useAtlantisI18n();
21
21
  const toastContainerStyles = [styles.container, { paddingBottom: bottom }];
22
+
22
23
  return (
23
24
  <View style={toastContainerStyles}>
24
25
  <View style={styles.toast}>
@@ -48,7 +49,7 @@ export interface JobberToastProps {
48
49
  * Has effect only when the position is "bottom".
49
50
  * @default 40
50
51
  */
51
- bottomOffset?: number;
52
+ readonly bottomOffset?: number;
52
53
  }
53
54
 
54
55
  export function JobberToast({ bottomOffset }: JobberToastProps): JSX.Element {
@@ -207,6 +207,7 @@ function getFontStyle(
207
207
  fontWeight,
208
208
  )}`;
209
209
  const fontStyling = styles[styleKey];
210
+
210
211
  if (fontStyling) {
211
212
  return fontStyling;
212
213
  } else {
@@ -234,6 +235,7 @@ function getColorStyle(color?: TextColor, reverseTheme?: boolean) {
234
235
  return styles.greyBlue;
235
236
  }
236
237
  const colorStyleKey = `${color}${reverseTheme ? "Reverse" : ""}`;
238
+
237
239
  return styles[`${colorStyleKey}`];
238
240
  }
239
241
 
@@ -248,10 +250,13 @@ function getSizeAndHeightStyle(
248
250
  lineHeightOverwrite?: LineHeight,
249
251
  ) {
250
252
  const fontSize = styles[`${textSize}Size`];
253
+
251
254
  if (lineHeightOverwrite) {
252
255
  const lineHeight = styles[`${lineHeightOverwrite}LineHeight`];
256
+
253
257
  return StyleSheet.flatten([fontSize, lineHeight]);
254
258
  }
259
+
255
260
  return fontSize;
256
261
  }
257
262
 
@@ -379,7 +379,7 @@ exports[`renders text with green color 1`] = `
379
379
  "fontFamily": "inter-regular",
380
380
  },
381
381
  {
382
- "color": "rgb(125, 176, 14)",
382
+ "color": "rgb(50, 130, 28)",
383
383
  },
384
384
  {
385
385
  "textAlign": "left",
@@ -676,7 +676,7 @@ exports[`renders text with reverseTheme false with reversible color 1`] = `
676
676
  "fontFamily": "inter-regular",
677
677
  },
678
678
  {
679
- "color": "rgb(81, 114, 9)",
679
+ "color": "rgb(14, 78, 26)",
680
680
  },
681
681
  {
682
682
  "textAlign": "left",
@@ -709,7 +709,7 @@ exports[`renders text with reverseTheme true with reversible color 1`] = `
709
709
  "fontFamily": "inter-regular",
710
710
  },
711
711
  {
712
- "color": "rgb(125, 176, 14)",
712
+ "color": "rgb(50, 130, 28)",
713
713
  },
714
714
  {
715
715
  "textAlign": "left",
@@ -13,6 +13,7 @@ export function dateFormatter(
13
13
  { locale, timeZone }: DateFormatterOptions,
14
14
  ): string {
15
15
  const zonedTime = utcToZonedTime(date, timeZone);
16
+
16
17
  return format(zonedTime, dateTimeFormat, {
17
18
  locale: getDateFnsLocale(locale),
18
19
  });
@@ -51,6 +51,7 @@ export function useFormController<T>({
51
51
  // TODO: Add support for two-part identifiers (e.g. "property.province")
52
52
  const fieldIdentifiers = fieldName.split(".");
53
53
  let error: FieldError | undefined;
54
+
54
55
  if (fieldIdentifiers.length === 3) {
55
56
  const [section, item, identifier] = fieldIdentifiers;
56
57
  error = errors[section]?.[item]?.[identifier];
@@ -64,5 +65,6 @@ export function useFormController<T>({
64
65
  function useControlName(name?: string): UseControllerReturn["field"]["name"] {
65
66
  const [identifier] = useState(v1());
66
67
  const prefix = `generatedName--${identifier}`;
68
+
67
69
  return `${name || prefix}` as const;
68
70
  }
package/src/index.ts CHANGED
@@ -17,29 +17,30 @@ export * from "./Divider";
17
17
  export * from "./EmptyState";
18
18
  export * from "./ErrorMessageWrapper";
19
19
  export * from "./Flex";
20
- export * from "./FormatFile";
21
20
  export * from "./Form";
21
+ export * from "./FormatFile";
22
22
  export * from "./FormField";
23
+ export * from "./Glimmer";
23
24
  export * from "./Heading";
24
25
  export * from "./Icon";
25
26
  export * from "./IconButton";
26
- export * from "./InputFieldWrapper";
27
27
  export * from "./InputCurrency";
28
28
  export * from "./InputDate";
29
29
  export * from "./InputEmail";
30
+ export * from "./InputFieldWrapper";
30
31
  export * from "./InputNumber";
31
32
  export * from "./InputPassword";
32
33
  export * from "./InputPressable";
33
34
  export * from "./InputSearch";
34
- export * from "./InputTime";
35
35
  export * from "./InputText";
36
+ export * from "./InputTime";
36
37
  export * from "./Menu";
37
- export * from "./TextList";
38
- export * from "./ThumbnailList";
39
38
  export * from "./ProgressBar";
40
39
  export * from "./Select";
41
40
  export * from "./StatusLabel";
42
41
  export * from "./Switch";
43
42
  export * from "./Text";
43
+ export * from "./TextList";
44
+ export * from "./ThumbnailList";
44
45
  export * from "./Toast";
45
46
  export * from "./Typography";
@@ -2,5 +2,6 @@ export function capitalize(text: string): string {
2
2
  if (!text) {
3
3
  return "";
4
4
  }
5
+
5
6
  return text.charAt(0).toLocaleUpperCase("en-US") + text.slice(1);
6
7
  }