@hero-design/rn 8.73.0 → 8.73.1

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.
@@ -1,8 +1,8 @@
1
- (node:2948) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
1
+ (node:2943) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
2
2
  (Use `node --trace-warnings ...` to show where the warning was created)
3
- (node:2948) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
3
+ (node:2943) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
4
4
  
5
5
  src/index.ts → lib/index.js, es/index.js...
6
6
  (!) [plugin replace] @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
7
7
  (!) [plugin node-resolve] preferring built-in module 'events' over local alternative at '/home/runner/work/hero-design/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning.or passing a function to 'preferBuiltins' to provide more fine-grained control over which built-in modules to prefer.
8
- created lib/index.js, es/index.js in 52.5s
8
+ created lib/index.js, es/index.js in 50.4s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @hero-design/rn
2
2
 
3
+ ## 8.73.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3447](https://github.com/Thinkei/hero-design/pull/3447) [`c64c609d963c33c72ad416c3833696a8c20f039c`](https://github.com/Thinkei/hero-design/commit/c64c609d963c33c72ad416c3833696a8c20f039c) Thanks [@phucdph](https://github.com/phucdph)! - [MapPin] Update Icon color
8
+
9
+ - [#3445](https://github.com/Thinkei/hero-design/pull/3445) [`7deae3d675374b98dc1d056a21a4e623db963bef`](https://github.com/Thinkei/hero-design/commit/7deae3d675374b98dc1d056a21a4e623db963bef) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [Chip] Reduce outlined border width
10
+
3
11
  ## 8.73.0
4
12
 
5
13
  ### Minor Changes
package/es/index.js CHANGED
@@ -2654,19 +2654,15 @@ var getChipTheme = function getChipTheme(theme) {
2654
2654
  wrapperVerticalPadding: theme.space.small,
2655
2655
  compactWrapperHorizontalPadding: theme.space.small,
2656
2656
  compactWrapperVerticalPadding: theme.space.xsmall,
2657
- iconWrapperHorizontalMargin: theme.space.small,
2658
- outlinedSelectedMarginTop: -theme.space.xxsmall
2659
- };
2660
- var sizes = {
2661
- outlinedDefaultBorder: theme.borderWidths.base,
2662
- outlinedSelectedBorder: theme.borderWidths.medium
2657
+ iconWrapperHorizontalMargin: theme.space.small
2663
2658
  };
2664
2659
  var radii = {
2665
2660
  wrapper: theme.radii.rounded
2666
2661
  };
2667
2662
  var borderWidths = {
2668
2663
  wrapper: theme.borderWidths.base,
2669
- icon: theme.borderWidths.medium
2664
+ icon: theme.borderWidths.medium,
2665
+ outlinedDefaultBorder: theme.borderWidths.base
2670
2666
  };
2671
2667
  var shadows = {
2672
2668
  filledWrapper: theme.shadows["default"]
@@ -2674,7 +2670,6 @@ var getChipTheme = function getChipTheme(theme) {
2674
2670
  return {
2675
2671
  colors: colors,
2676
2672
  space: space,
2677
- sizes: sizes,
2678
2673
  radii: radii,
2679
2674
  borderWidths: borderWidths,
2680
2675
  shadows: shadows
@@ -3929,8 +3924,7 @@ var getMapPinTheme = function getMapPinTheme(theme) {
3929
3924
  applied: theme.colors.secondary
3930
3925
  },
3931
3926
  badge: theme.colors.secondary,
3932
- background: theme.colors.defaultGlobalSurface,
3933
- iconBackground: theme.colors.mutedOnDefaultGlobalSurface
3927
+ background: theme.colors.defaultGlobalSurface
3934
3928
  };
3935
3929
  var radii = {
3936
3930
  "default": theme.radii.large
@@ -13009,7 +13003,7 @@ var StyledChipWrapper = index$a(TouchableOpacity)(function (_ref) {
13009
13003
  {
13010
13004
  return {
13011
13005
  borderColor: themeSelected ? theme.__hd__.chip.colors.outlinedSelectedBorder : theme.__hd__.chip.colors.outlinedDefaultBorder,
13012
- borderWidth: themeSelected ? theme.__hd__.chip.sizes.outlinedSelectedBorder : theme.__hd__.chip.sizes.outlinedDefaultBorder
13006
+ borderWidth: theme.__hd__.chip.borderWidths.outlinedDefaultBorder
13013
13007
  };
13014
13008
  }
13015
13009
  case 'compact':
@@ -13089,8 +13083,7 @@ var StyledChipWrapper = index$a(TouchableOpacity)(function (_ref) {
13089
13083
  flexDirection: 'row',
13090
13084
  alignItems: 'center',
13091
13085
  justifyContent: 'center',
13092
- borderRadius: theme.__hd__.chip.radii.wrapper,
13093
- marginTop: themeSelected && themeVariant === 'outlined' ? theme.__hd__.chip.space.outlinedSelectedMarginTop : undefined
13086
+ borderRadius: theme.__hd__.chip.radii.wrapper
13094
13087
  }, getShadowStyles()), getBorderStyles()), getPaddingStyles()), getBackgroundStyles());
13095
13088
  });
13096
13089
 
@@ -15749,10 +15742,9 @@ var StyledContainer$3 = index$a(View)(function (_ref) {
15749
15742
  });
15750
15743
  var StyledContent = index$a(View)(function (_ref2) {
15751
15744
  var theme = _ref2.theme,
15752
- themeState = _ref2.themeState,
15753
- themeIsIcon = _ref2.themeIsIcon;
15745
+ themeState = _ref2.themeState;
15754
15746
  return {
15755
- backgroundColor: themeIsIcon ? theme.__hd__.mapPin.colors.iconBackground : theme.__hd__.mapPin.colors.background,
15747
+ backgroundColor: theme.__hd__.mapPin.colors.background,
15756
15748
  borderRadius: theme.__hd__.mapPin.radii["default"],
15757
15749
  borderWidth: theme.__hd__.mapPin.borderWidths["default"],
15758
15750
  borderColor: theme.__hd__.mapPin.colors.border[themeState],
@@ -15844,14 +15836,13 @@ var MapPin = function MapPin(_ref) {
15844
15836
  style: style,
15845
15837
  testID: testID
15846
15838
  }), /*#__PURE__*/React__default.createElement(StyledContent, {
15847
- themeState: state,
15848
- themeIsIcon: !!icon
15839
+ themeState: state
15849
15840
  }, image && /*#__PURE__*/React__default.createElement(StyledImage, _extends$1({
15850
15841
  testID: testID ? "".concat(testID, "-image") : undefined
15851
15842
  }, image)), icon && /*#__PURE__*/React__default.createElement(Icon, {
15852
15843
  icon: icon,
15853
15844
  size: "xsmall",
15854
- intent: "text-inverted",
15845
+ intent: "text",
15855
15846
  testID: testID ? "".concat(testID, "-icon") : undefined
15856
15847
  })), badgeIcon && /*#__PURE__*/React__default.createElement(StyledBadge$1, {
15857
15848
  icon: badgeIcon,
package/lib/index.js CHANGED
@@ -2681,19 +2681,15 @@ var getChipTheme = function getChipTheme(theme) {
2681
2681
  wrapperVerticalPadding: theme.space.small,
2682
2682
  compactWrapperHorizontalPadding: theme.space.small,
2683
2683
  compactWrapperVerticalPadding: theme.space.xsmall,
2684
- iconWrapperHorizontalMargin: theme.space.small,
2685
- outlinedSelectedMarginTop: -theme.space.xxsmall
2686
- };
2687
- var sizes = {
2688
- outlinedDefaultBorder: theme.borderWidths.base,
2689
- outlinedSelectedBorder: theme.borderWidths.medium
2684
+ iconWrapperHorizontalMargin: theme.space.small
2690
2685
  };
2691
2686
  var radii = {
2692
2687
  wrapper: theme.radii.rounded
2693
2688
  };
2694
2689
  var borderWidths = {
2695
2690
  wrapper: theme.borderWidths.base,
2696
- icon: theme.borderWidths.medium
2691
+ icon: theme.borderWidths.medium,
2692
+ outlinedDefaultBorder: theme.borderWidths.base
2697
2693
  };
2698
2694
  var shadows = {
2699
2695
  filledWrapper: theme.shadows["default"]
@@ -2701,7 +2697,6 @@ var getChipTheme = function getChipTheme(theme) {
2701
2697
  return {
2702
2698
  colors: colors,
2703
2699
  space: space,
2704
- sizes: sizes,
2705
2700
  radii: radii,
2706
2701
  borderWidths: borderWidths,
2707
2702
  shadows: shadows
@@ -3956,8 +3951,7 @@ var getMapPinTheme = function getMapPinTheme(theme) {
3956
3951
  applied: theme.colors.secondary
3957
3952
  },
3958
3953
  badge: theme.colors.secondary,
3959
- background: theme.colors.defaultGlobalSurface,
3960
- iconBackground: theme.colors.mutedOnDefaultGlobalSurface
3954
+ background: theme.colors.defaultGlobalSurface
3961
3955
  };
3962
3956
  var radii = {
3963
3957
  "default": theme.radii.large
@@ -13036,7 +13030,7 @@ var StyledChipWrapper = index$a(reactNative.TouchableOpacity)(function (_ref) {
13036
13030
  {
13037
13031
  return {
13038
13032
  borderColor: themeSelected ? theme.__hd__.chip.colors.outlinedSelectedBorder : theme.__hd__.chip.colors.outlinedDefaultBorder,
13039
- borderWidth: themeSelected ? theme.__hd__.chip.sizes.outlinedSelectedBorder : theme.__hd__.chip.sizes.outlinedDefaultBorder
13033
+ borderWidth: theme.__hd__.chip.borderWidths.outlinedDefaultBorder
13040
13034
  };
13041
13035
  }
13042
13036
  case 'compact':
@@ -13116,8 +13110,7 @@ var StyledChipWrapper = index$a(reactNative.TouchableOpacity)(function (_ref) {
13116
13110
  flexDirection: 'row',
13117
13111
  alignItems: 'center',
13118
13112
  justifyContent: 'center',
13119
- borderRadius: theme.__hd__.chip.radii.wrapper,
13120
- marginTop: themeSelected && themeVariant === 'outlined' ? theme.__hd__.chip.space.outlinedSelectedMarginTop : undefined
13113
+ borderRadius: theme.__hd__.chip.radii.wrapper
13121
13114
  }, getShadowStyles()), getBorderStyles()), getPaddingStyles()), getBackgroundStyles());
13122
13115
  });
13123
13116
 
@@ -15776,10 +15769,9 @@ var StyledContainer$3 = index$a(reactNative.View)(function (_ref) {
15776
15769
  });
15777
15770
  var StyledContent = index$a(reactNative.View)(function (_ref2) {
15778
15771
  var theme = _ref2.theme,
15779
- themeState = _ref2.themeState,
15780
- themeIsIcon = _ref2.themeIsIcon;
15772
+ themeState = _ref2.themeState;
15781
15773
  return {
15782
- backgroundColor: themeIsIcon ? theme.__hd__.mapPin.colors.iconBackground : theme.__hd__.mapPin.colors.background,
15774
+ backgroundColor: theme.__hd__.mapPin.colors.background,
15783
15775
  borderRadius: theme.__hd__.mapPin.radii["default"],
15784
15776
  borderWidth: theme.__hd__.mapPin.borderWidths["default"],
15785
15777
  borderColor: theme.__hd__.mapPin.colors.border[themeState],
@@ -15871,14 +15863,13 @@ var MapPin = function MapPin(_ref) {
15871
15863
  style: style,
15872
15864
  testID: testID
15873
15865
  }), /*#__PURE__*/React__namespace.default.createElement(StyledContent, {
15874
- themeState: state,
15875
- themeIsIcon: !!icon
15866
+ themeState: state
15876
15867
  }, image && /*#__PURE__*/React__namespace.default.createElement(StyledImage, _extends$1({
15877
15868
  testID: testID ? "".concat(testID, "-image") : undefined
15878
15869
  }, image)), icon && /*#__PURE__*/React__namespace.default.createElement(Icon, {
15879
15870
  icon: icon,
15880
15871
  size: "xsmall",
15881
- intent: "text-inverted",
15872
+ intent: "text",
15882
15873
  testID: testID ? "".concat(testID, "-icon") : undefined
15883
15874
  })), badgeIcon && /*#__PURE__*/React__namespace.default.createElement(StyledBadge$1, {
15884
15875
  icon: badgeIcon,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.73.0",
3
+ "version": "8.73.1",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -27,9 +27,7 @@ const StyledChipWrapper = styled(TouchableOpacity)<StyledChipWrapperProps>(
27
27
  borderColor: themeSelected
28
28
  ? theme.__hd__.chip.colors.outlinedSelectedBorder
29
29
  : theme.__hd__.chip.colors.outlinedDefaultBorder,
30
- borderWidth: themeSelected
31
- ? theme.__hd__.chip.sizes.outlinedSelectedBorder
32
- : theme.__hd__.chip.sizes.outlinedDefaultBorder,
30
+ borderWidth: theme.__hd__.chip.borderWidths.outlinedDefaultBorder,
33
31
  };
34
32
  }
35
33
  case 'compact':
@@ -112,10 +110,6 @@ const StyledChipWrapper = styled(TouchableOpacity)<StyledChipWrapperProps>(
112
110
  alignItems: 'center',
113
111
  justifyContent: 'center',
114
112
  borderRadius: theme.__hd__.chip.radii.wrapper,
115
- marginTop:
116
- themeSelected && themeVariant === 'outlined'
117
- ? theme.__hd__.chip.space.outlinedSelectedMarginTop
118
- : undefined,
119
113
  ...getShadowStyles(),
120
114
  ...getBorderStyles(),
121
115
  ...getPaddingStyles(),
@@ -43,10 +43,9 @@ exports[`Chip does not render selected icon when showSelectedIcon is false 1`] =
43
43
  "backgroundColor": "#e8e9ea",
44
44
  "borderColor": "#001f23",
45
45
  "borderRadius": 999,
46
- "borderWidth": 2,
46
+ "borderWidth": 1,
47
47
  "flexDirection": "row",
48
48
  "justifyContent": "center",
49
- "marginTop": -2,
50
49
  "opacity": 1,
51
50
  "paddingHorizontal": 12,
52
51
  "paddingVertical": 8,
@@ -143,7 +142,6 @@ exports[`Chip renders correctly when selected is false 1`] = `
143
142
  "borderWidth": 1,
144
143
  "flexDirection": "row",
145
144
  "justifyContent": "center",
146
- "marginTop": undefined,
147
145
  "opacity": 1,
148
146
  "paddingHorizontal": 12,
149
147
  "paddingVertical": 8,
@@ -237,10 +235,9 @@ exports[`Chip renders correctly when selected is true 1`] = `
237
235
  "backgroundColor": "#e8e9ea",
238
236
  "borderColor": "#001f23",
239
237
  "borderRadius": 999,
240
- "borderWidth": 2,
238
+ "borderWidth": 1,
241
239
  "flexDirection": "row",
242
240
  "justifyContent": "center",
243
- "marginTop": -2,
244
241
  "opacity": 1,
245
242
  "paddingHorizontal": 12,
246
243
  "paddingVertical": 8,
@@ -364,7 +361,6 @@ exports[`Chip renders correctly with custom icon 1`] = `
364
361
  "elevation": 3,
365
362
  "flexDirection": "row",
366
363
  "justifyContent": "center",
367
- "marginTop": undefined,
368
364
  "opacity": 1,
369
365
  "paddingHorizontal": 12,
370
366
  "paddingVertical": 8,
@@ -496,7 +492,6 @@ exports[`Chip renders correctly with custom icon 2`] = `
496
492
  "elevation": 3,
497
493
  "flexDirection": "row",
498
494
  "justifyContent": "center",
499
- "marginTop": undefined,
500
495
  "opacity": 1,
501
496
  "paddingHorizontal": 12,
502
497
  "paddingVertical": 8,
@@ -628,7 +623,6 @@ exports[`Chip renders correctly with default icon 1`] = `
628
623
  "borderWidth": 1,
629
624
  "flexDirection": "row",
630
625
  "justifyContent": "center",
631
- "marginTop": undefined,
632
626
  "opacity": 1,
633
627
  "paddingHorizontal": 12,
634
628
  "paddingVertical": 8,
@@ -723,10 +717,9 @@ exports[`Chip renders correctly with default icon 2`] = `
723
717
  "backgroundColor": "#e8e9ea",
724
718
  "borderColor": "#001f23",
725
719
  "borderRadius": 999,
726
- "borderWidth": 2,
720
+ "borderWidth": 1,
727
721
  "flexDirection": "row",
728
722
  "justifyContent": "center",
729
- "marginTop": -2,
730
723
  "opacity": 1,
731
724
  "paddingHorizontal": 12,
732
725
  "paddingVertical": 8,
@@ -851,7 +844,6 @@ exports[`Chip renders correctly with variant compact and selected false 1`] = `
851
844
  "elevation": 3,
852
845
  "flexDirection": "row",
853
846
  "justifyContent": "center",
854
- "marginTop": undefined,
855
847
  "opacity": 1,
856
848
  "paddingHorizontal": 8,
857
849
  "paddingVertical": 4,
@@ -956,7 +948,6 @@ exports[`Chip renders correctly with variant compact and selected true 1`] = `
956
948
  "elevation": 3,
957
949
  "flexDirection": "row",
958
950
  "justifyContent": "center",
959
- "marginTop": undefined,
960
951
  "opacity": 1,
961
952
  "paddingHorizontal": 8,
962
953
  "paddingVertical": 4,
@@ -1061,7 +1052,6 @@ exports[`Chip renders correctly with variant filled and selected false 1`] = `
1061
1052
  "elevation": 3,
1062
1053
  "flexDirection": "row",
1063
1054
  "justifyContent": "center",
1064
- "marginTop": undefined,
1065
1055
  "opacity": 1,
1066
1056
  "paddingHorizontal": 12,
1067
1057
  "paddingVertical": 8,
@@ -1166,7 +1156,6 @@ exports[`Chip renders correctly with variant filled and selected true 1`] = `
1166
1156
  "elevation": 3,
1167
1157
  "flexDirection": "row",
1168
1158
  "justifyContent": "center",
1169
- "marginTop": undefined,
1170
1159
  "opacity": 1,
1171
1160
  "paddingHorizontal": 12,
1172
1161
  "paddingVertical": 8,
@@ -1271,7 +1260,6 @@ exports[`Chip renders correctly with variant outlined and selected false 1`] = `
1271
1260
  "borderWidth": 1,
1272
1261
  "flexDirection": "row",
1273
1262
  "justifyContent": "center",
1274
- "marginTop": undefined,
1275
1263
  "opacity": 1,
1276
1264
  "paddingHorizontal": 12,
1277
1265
  "paddingVertical": 8,
@@ -1366,10 +1354,9 @@ exports[`Chip renders correctly with variant outlined and selected true 1`] = `
1366
1354
  "backgroundColor": "#e8e9ea",
1367
1355
  "borderColor": "#001f23",
1368
1356
  "borderRadius": 999,
1369
- "borderWidth": 2,
1357
+ "borderWidth": 1,
1370
1358
  "flexDirection": "row",
1371
1359
  "justifyContent": "center",
1372
- "marginTop": -2,
1373
1360
  "opacity": 1,
1374
1361
  "paddingHorizontal": 12,
1375
1362
  "paddingVertical": 8,
@@ -15,11 +15,8 @@ export const StyledContainer = styled(View)(({ theme }) => ({
15
15
 
16
16
  export const StyledContent = styled(View)<{
17
17
  themeState: State;
18
- themeIsIcon: boolean;
19
- }>(({ theme, themeState, themeIsIcon }) => ({
20
- backgroundColor: themeIsIcon
21
- ? theme.__hd__.mapPin.colors.iconBackground
22
- : theme.__hd__.mapPin.colors.background,
18
+ }>(({ theme, themeState }) => ({
19
+ backgroundColor: theme.__hd__.mapPin.colors.background,
23
20
  borderRadius: theme.__hd__.mapPin.radii.default,
24
21
  borderWidth: theme.__hd__.mapPin.borderWidths.default,
25
22
  borderColor: theme.__hd__.mapPin.colors.border[themeState],
@@ -28,7 +28,7 @@ exports[`MapPin renders applied state correctly 1`] = `
28
28
  [
29
29
  {
30
30
  "alignItems": "center",
31
- "backgroundColor": "#4d6265",
31
+ "backgroundColor": "#ffffff",
32
32
  "borderColor": "#795e90",
33
33
  "borderRadius": 12,
34
34
  "borderWidth": 4,
@@ -48,7 +48,6 @@ exports[`MapPin renders applied state correctly 1`] = `
48
48
  undefined,
49
49
  ]
50
50
  }
51
- themeIsIcon={true}
52
51
  themeState="applied"
53
52
  >
54
53
  <HeroIcon
@@ -56,14 +55,14 @@ exports[`MapPin renders applied state correctly 1`] = `
56
55
  style={
57
56
  [
58
57
  {
59
- "color": "#ffffff",
58
+ "color": "#001f23",
60
59
  "fontSize": 16,
61
60
  },
62
61
  undefined,
63
62
  ]
64
63
  }
65
64
  testID="map-pin-icon"
66
- themeIntent="text-inverted"
65
+ themeIntent="text"
67
66
  themeSize="xsmall"
68
67
  />
69
68
  </View>
@@ -170,7 +169,7 @@ exports[`MapPin renders icon correctly 1`] = `
170
169
  [
171
170
  {
172
171
  "alignItems": "center",
173
- "backgroundColor": "#4d6265",
172
+ "backgroundColor": "#ffffff",
174
173
  "borderColor": "#ffffff",
175
174
  "borderRadius": 12,
176
175
  "borderWidth": 4,
@@ -190,7 +189,6 @@ exports[`MapPin renders icon correctly 1`] = `
190
189
  undefined,
191
190
  ]
192
191
  }
193
- themeIsIcon={true}
194
192
  themeState="idle"
195
193
  >
196
194
  <HeroIcon
@@ -198,14 +196,14 @@ exports[`MapPin renders icon correctly 1`] = `
198
196
  style={
199
197
  [
200
198
  {
201
- "color": "#ffffff",
199
+ "color": "#001f23",
202
200
  "fontSize": 16,
203
201
  },
204
202
  undefined,
205
203
  ]
206
204
  }
207
205
  testID="map-pin-icon"
208
- themeIntent="text-inverted"
206
+ themeIntent="text"
209
207
  themeSize="xsmall"
210
208
  />
211
209
  </View>
@@ -281,7 +279,6 @@ exports[`MapPin renders image correctly 1`] = `
281
279
  undefined,
282
280
  ]
283
281
  }
284
- themeIsIcon={false}
285
282
  themeState="idle"
286
283
  >
287
284
  <Image
@@ -355,7 +352,7 @@ exports[`MapPin renders selected state correctly 1`] = `
355
352
  [
356
353
  {
357
354
  "alignItems": "center",
358
- "backgroundColor": "#4d6265",
355
+ "backgroundColor": "#ffffff",
359
356
  "borderColor": "#795e90",
360
357
  "borderRadius": 12,
361
358
  "borderWidth": 4,
@@ -375,7 +372,6 @@ exports[`MapPin renders selected state correctly 1`] = `
375
372
  undefined,
376
373
  ]
377
374
  }
378
- themeIsIcon={true}
379
375
  themeState="selected"
380
376
  >
381
377
  <HeroIcon
@@ -383,14 +379,14 @@ exports[`MapPin renders selected state correctly 1`] = `
383
379
  style={
384
380
  [
385
381
  {
386
- "color": "#ffffff",
382
+ "color": "#001f23",
387
383
  "fontSize": 16,
388
384
  },
389
385
  undefined,
390
386
  ]
391
387
  }
392
388
  testID="map-pin-icon"
393
- themeIntent="text-inverted"
389
+ themeIntent="text"
394
390
  themeSize="xsmall"
395
391
  />
396
392
  </View>
@@ -32,7 +32,7 @@ const MapPin = ({
32
32
  const badgeIcon = getBadgeIconName(state);
33
33
  return (
34
34
  <StyledContainer {...nativeProps} style={style} testID={testID}>
35
- <StyledContent themeState={state} themeIsIcon={!!icon}>
35
+ <StyledContent themeState={state}>
36
36
  {image && (
37
37
  <StyledImage
38
38
  testID={testID ? `${testID}-image` : undefined}
@@ -43,7 +43,7 @@ const MapPin = ({
43
43
  <Icon
44
44
  icon={icon}
45
45
  size="xsmall"
46
- intent="text-inverted"
46
+ intent="text"
47
47
  testID={testID ? `${testID}-icon` : undefined}
48
48
  />
49
49
  )}
@@ -384,6 +384,7 @@ exports[`theme returns correct theme object 1`] = `
384
384
  "chip": {
385
385
  "borderWidths": {
386
386
  "icon": 2,
387
+ "outlinedDefaultBorder": 1,
387
388
  "wrapper": 1,
388
389
  },
389
390
  "colors": {
@@ -412,15 +413,10 @@ exports[`theme returns correct theme object 1`] = `
412
413
  "shadowRadius": 4,
413
414
  },
414
415
  },
415
- "sizes": {
416
- "outlinedDefaultBorder": 1,
417
- "outlinedSelectedBorder": 2,
418
- },
419
416
  "space": {
420
417
  "compactWrapperHorizontalPadding": 8,
421
418
  "compactWrapperVerticalPadding": 4,
422
419
  "iconWrapperHorizontalMargin": 8,
423
- "outlinedSelectedMarginTop": -2,
424
420
  "wrapperHorizontalPadding": 12,
425
421
  "wrapperVerticalPadding": 8,
426
422
  },
@@ -676,7 +672,6 @@ exports[`theme returns correct theme object 1`] = `
676
672
  "idle": "#ffffff",
677
673
  "selected": "#795e90",
678
674
  },
679
- "iconBackground": "#4d6265",
680
675
  },
681
676
  "fontSizes": {
682
677
  "icon": 42,
@@ -19,12 +19,6 @@ const getChipTheme = (theme: GlobalTheme) => {
19
19
  compactWrapperHorizontalPadding: theme.space.small,
20
20
  compactWrapperVerticalPadding: theme.space.xsmall,
21
21
  iconWrapperHorizontalMargin: theme.space.small,
22
- outlinedSelectedMarginTop: -theme.space.xxsmall,
23
- };
24
-
25
- const sizes = {
26
- outlinedDefaultBorder: theme.borderWidths.base,
27
- outlinedSelectedBorder: theme.borderWidths.medium,
28
22
  };
29
23
 
30
24
  const radii = {
@@ -34,6 +28,7 @@ const getChipTheme = (theme: GlobalTheme) => {
34
28
  const borderWidths = {
35
29
  wrapper: theme.borderWidths.base,
36
30
  icon: theme.borderWidths.medium,
31
+ outlinedDefaultBorder: theme.borderWidths.base,
37
32
  };
38
33
 
39
34
  const shadows = {
@@ -43,7 +38,6 @@ const getChipTheme = (theme: GlobalTheme) => {
43
38
  return {
44
39
  colors,
45
40
  space,
46
- sizes,
47
41
  radii,
48
42
  borderWidths,
49
43
  shadows,
@@ -21,7 +21,6 @@ const getMapPinTheme = (theme: GlobalTheme) => {
21
21
  },
22
22
  badge: theme.colors.secondary,
23
23
  background: theme.colors.defaultGlobalSurface,
24
- iconBackground: theme.colors.mutedOnDefaultGlobalSurface,
25
24
  };
26
25
 
27
26
  const radii = {