@hero-design/rn 8.91.6 → 8.91.8

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 (32) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/CHANGELOG.md +17 -0
  3. package/es/index.js +63 -54
  4. package/lib/index.js +63 -54
  5. package/package.json +1 -1
  6. package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +12 -2
  7. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +33 -15
  8. package/src/components/FAB/ActionGroup/index.tsx +14 -3
  9. package/src/components/MapPin/__tests__/__snapshots__/Focussed.spec.tsx.snap +3 -3
  10. package/src/components/MapPin/__tests__/__snapshots__/index.spec.tsx.snap +20 -20
  11. package/src/components/Slider/__tests__/__snapshots__/RangeSlider.spec.tsx.snap +6 -6
  12. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +17 -17
  13. package/src/theme/components/alert.ts +1 -1
  14. package/src/theme/components/bottomNavigation.ts +1 -1
  15. package/src/theme/components/chip.ts +1 -1
  16. package/src/theme/components/fab.ts +1 -1
  17. package/src/theme/components/floatingIsland.ts +1 -1
  18. package/src/theme/components/list.ts +1 -1
  19. package/src/theme/components/mapPin.ts +5 -5
  20. package/src/theme/components/search.ts +1 -1
  21. package/src/theme/components/toast.ts +1 -1
  22. package/src/theme/global/shadows/__tests__/__snapshots__/ehWorkDark.spec.ts.snap +10 -10
  23. package/src/theme/global/shadows/__tests__/__snapshots__/swagLight.spec.ts.snap +9 -9
  24. package/src/theme/global/shadows/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +6 -6
  25. package/src/theme/global/shadows/ehWorkDark.ts +11 -12
  26. package/src/theme/global/shadows/swagLight.ts +11 -12
  27. package/src/theme/global/shadows/swagLightJobs.ts +9 -9
  28. package/src/theme/global/shadows/types.ts +2 -2
  29. package/stats/8.91.7/rn-stats.html +4842 -0
  30. package/stats/8.91.8/rn-stats.html +4842 -0
  31. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +6 -2
  32. package/types/theme/global/shadows/types.d.ts +2 -2
@@ -1,4 +1,4 @@
1
- (node:3010) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
1
+ (node:3034) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
2
2
  (Use `node --trace-warnings ...` to show where the warning was created)
3
3
  
4
4
  src/index.ts → lib/index.js, es/index.js...
@@ -10,4 +10,4 @@
10
10
     ~~~~~~~~~~~~~~~~~~~
11
11
  
12
12
  (!) [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.
13
- created lib/index.js, es/index.js in 53.8s
13
+ created lib/index.js, es/index.js in 52.7s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @hero-design/rn
2
2
 
3
+ ## 8.91.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3725](https://github.com/Thinkei/hero-design/pull/3725) [`a3106d46950f6e5008ff8a75608a738d64e1f028`](https://github.com/Thinkei/hero-design/commit/a3106d46950f6e5008ff8a75608a738d64e1f028) Thanks [@quang-dx](https://github.com/quang-dx)! - [Icon] Add new outlined icons: desktop-computer-outlined, mobile-phone-1-outlined, tablet-outlined
8
+
9
+ - [#3722](https://github.com/Thinkei/hero-design/pull/3722) [`655027fd13f8d2008db326a81aafc946cc558a1d`](https://github.com/Thinkei/hero-design/commit/655027fd13f8d2008db326a81aafc946cc558a1d) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [FAB.ActionGroup] Update styling:
10
+
11
+ - Resolve unexpected children margin change when passing margin
12
+ - Update backdrop to cover full screen
13
+
14
+ ## 8.91.7
15
+
16
+ ### Patch Changes
17
+
18
+ - [#3720](https://github.com/Thinkei/hero-design/pull/3720) [`c6acaedafaa8d246f2882a72234db93b3fff93d3`](https://github.com/Thinkei/hero-design/commit/c6acaedafaa8d246f2882a72234db93b3fff93d3) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [Mobile] Update shadow naming
19
+
3
20
  ## 8.91.6
4
21
 
5
22
  ### Patch Changes
package/es/index.js CHANGED
@@ -2316,16 +2316,6 @@ var getRadii = function getRadii(baseRadius) {
2316
2316
 
2317
2317
  var swagLightShadowPalette = {
2318
2318
  "default": {
2319
- shadowOffset: {
2320
- width: 0,
2321
- height: 2
2322
- },
2323
- shadowColor: swagSystemPalette.primaryOutline,
2324
- shadowOpacity: 0.12,
2325
- shadowRadius: 4,
2326
- elevation: 3
2327
- },
2328
- cardDrawer: {
2329
2319
  shadowOffset: {
2330
2320
  width: 0,
2331
2321
  height: 2
@@ -2335,7 +2325,7 @@ var swagLightShadowPalette = {
2335
2325
  shadowRadius: 2,
2336
2326
  elevation: 6
2337
2327
  },
2338
- tabBar: {
2328
+ medium: {
2339
2329
  shadowOffset: {
2340
2330
  width: 0,
2341
2331
  height: -4
@@ -2344,6 +2334,16 @@ var swagLightShadowPalette = {
2344
2334
  shadowOpacity: 0.04,
2345
2335
  shadowRadius: 6,
2346
2336
  elevation: 10
2337
+ },
2338
+ deep: {
2339
+ shadowOffset: {
2340
+ width: 0,
2341
+ height: 4
2342
+ },
2343
+ shadowColor: '#001f23',
2344
+ shadowOpacity: 0.28,
2345
+ shadowRadius: 8,
2346
+ elevation: 10
2347
2347
  }
2348
2348
  };
2349
2349
 
@@ -2358,40 +2358,30 @@ var swagLightJobsShadowPalette = {
2358
2358
  shadowRadius: 4,
2359
2359
  elevation: 3
2360
2360
  },
2361
- cardDrawer: {
2361
+ medium: {
2362
2362
  shadowOffset: {
2363
2363
  width: 0,
2364
- height: 2
2364
+ height: -4
2365
2365
  },
2366
2366
  shadowColor: '#001f23',
2367
- shadowOpacity: 0.12,
2368
- shadowRadius: 2,
2369
- elevation: 6
2367
+ shadowOpacity: 0.04,
2368
+ shadowRadius: 6,
2369
+ elevation: 10
2370
2370
  },
2371
- tabBar: {
2371
+ deep: {
2372
2372
  shadowOffset: {
2373
2373
  width: 0,
2374
- height: -4
2374
+ height: 4
2375
2375
  },
2376
2376
  shadowColor: '#001f23',
2377
- shadowOpacity: 0.04,
2378
- shadowRadius: 6,
2377
+ shadowOpacity: 0.28,
2378
+ shadowRadius: 8,
2379
2379
  elevation: 10
2380
2380
  }
2381
2381
  };
2382
2382
 
2383
2383
  var ehWorkDarkShadowPalette = {
2384
2384
  "default": {
2385
- shadowOffset: {
2386
- width: 0,
2387
- height: 2
2388
- },
2389
- shadowColor: ehWorkDarkSystemPalette.primaryOutline,
2390
- shadowOpacity: 0.12,
2391
- shadowRadius: 4,
2392
- elevation: 3
2393
- },
2394
- cardDrawer: {
2395
2385
  shadowOffset: {
2396
2386
  width: 0,
2397
2387
  height: 2
@@ -2401,7 +2391,7 @@ var ehWorkDarkShadowPalette = {
2401
2391
  shadowRadius: 2,
2402
2392
  elevation: 6
2403
2393
  },
2404
- tabBar: {
2394
+ medium: {
2405
2395
  shadowOffset: {
2406
2396
  width: 0,
2407
2397
  height: -4
@@ -2410,6 +2400,16 @@ var ehWorkDarkShadowPalette = {
2410
2400
  shadowOpacity: 0.24,
2411
2401
  shadowRadius: 6,
2412
2402
  elevation: 10
2403
+ },
2404
+ deep: {
2405
+ shadowOffset: {
2406
+ width: 0,
2407
+ height: 4
2408
+ },
2409
+ shadowColor: '#000000',
2410
+ shadowOpacity: 0.64,
2411
+ shadowRadius: 8,
2412
+ elevation: 10
2413
2413
  }
2414
2414
  };
2415
2415
 
@@ -2499,7 +2499,7 @@ var getAlertTheme = function getAlertTheme(theme) {
2499
2499
  base: theme.borderWidths.base
2500
2500
  };
2501
2501
  var shadows = {
2502
- wrapper: theme.shadows.cardDrawer
2502
+ wrapper: theme.shadows["default"]
2503
2503
  };
2504
2504
  return {
2505
2505
  colors: colors,
@@ -2670,7 +2670,7 @@ var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
2670
2670
  height: theme.sizes['6xlarge']
2671
2671
  };
2672
2672
  var shadows = {
2673
- wrapper: theme.shadows.tabBar
2673
+ wrapper: theme.shadows.medium
2674
2674
  };
2675
2675
  var space = {
2676
2676
  titleMarginTop: theme.space.xsmall
@@ -2985,7 +2985,7 @@ var getChipTheme = function getChipTheme(theme) {
2985
2985
  outlinedDefaultBorder: theme.borderWidths.base
2986
2986
  };
2987
2987
  var shadows = {
2988
- filledWrapper: theme.shadows.cardDrawer
2988
+ filledWrapper: theme.shadows["default"]
2989
2989
  };
2990
2990
  var fontSizes = {
2991
2991
  icon: theme.fontSizes.small
@@ -3184,7 +3184,7 @@ var getFABTheme = function getFABTheme(theme) {
3184
3184
  icon: theme.lineHeights.large
3185
3185
  };
3186
3186
  var shadows = {
3187
- "default": theme.shadows.cardDrawer
3187
+ "default": theme.shadows["default"]
3188
3188
  };
3189
3189
  var space = {
3190
3190
  actionItemPadding: theme.space.smallMedium,
@@ -3274,7 +3274,7 @@ var getListTheme = function getListTheme(theme) {
3274
3274
  leadingStatus: theme.radii.rounded
3275
3275
  };
3276
3276
  var shadows = {
3277
- card: theme.shadows.cardDrawer
3277
+ card: theme.shadows["default"]
3278
3278
  };
3279
3279
  var widths = {
3280
3280
  leadingStatus: 8
@@ -3961,7 +3961,7 @@ var getToastTheme = function getToastTheme(theme) {
3961
3961
  base: theme.borderWidths.base
3962
3962
  };
3963
3963
  var shadows = {
3964
- wrapper: theme.shadows.cardDrawer
3964
+ wrapper: theme.shadows["default"]
3965
3965
  };
3966
3966
  return {
3967
3967
  colors: colors,
@@ -4215,7 +4215,7 @@ var getSearchTheme = function getSearchTheme(theme) {
4215
4215
  shadow: theme.colors.primaryOutline
4216
4216
  };
4217
4217
  var shadows = {
4218
- container: theme.shadows.cardDrawer
4218
+ container: theme.shadows["default"]
4219
4219
  };
4220
4220
  var space = {
4221
4221
  containerHorizontalPadding: theme.space.small,
@@ -4295,11 +4295,11 @@ var getMapPinTheme = function getMapPinTheme(theme) {
4295
4295
  iconRight: -theme.space.small
4296
4296
  };
4297
4297
  var shadows = {
4298
- offset: theme.shadows["default"].shadowOffset,
4299
- opacity: theme.shadows["default"].shadowOpacity,
4300
- radius: theme.shadows["default"].shadowRadius,
4301
- elevation: theme.shadows["default"].elevation,
4302
- color: theme.shadows["default"].shadowColor
4298
+ offset: theme.shadows.deep.shadowOffset,
4299
+ opacity: theme.shadows.deep.shadowOpacity,
4300
+ radius: theme.shadows.deep.shadowRadius,
4301
+ elevation: theme.shadows.deep.elevation,
4302
+ color: theme.shadows.deep.shadowColor
4303
4303
  };
4304
4304
  return {
4305
4305
  sizes: sizes,
@@ -4320,7 +4320,7 @@ var getFloatingIslandTheme = function getFloatingIslandTheme(theme) {
4320
4320
  wrapper: theme.radii.rounded
4321
4321
  };
4322
4322
  var shadows = {
4323
- wrapper: theme.shadows.cardDrawer
4323
+ wrapper: theme.shadows["default"]
4324
4324
  };
4325
4325
  var space = {
4326
4326
  wrapperPadding: theme.space.small,
@@ -9776,7 +9776,7 @@ var Divider = function Divider(_ref) {
9776
9776
  }));
9777
9777
  };
9778
9778
 
9779
- var AnimatedPressable$2 = Animated.createAnimatedComponent(Pressable);
9779
+ var AnimatedPressable$1 = Animated.createAnimatedComponent(Pressable);
9780
9780
  var AnimatedSafeAreaView = Animated.createAnimatedComponent(SafeAreaView);
9781
9781
  var StyledWrapper$a = index$a(View)(_objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
9782
9782
  flexDirection: 'column-reverse'
@@ -9813,7 +9813,7 @@ var StyledBottomSheet = index$a(AnimatedSafeAreaView)(function (_ref3) {
9813
9813
  maxHeight: '94%'
9814
9814
  };
9815
9815
  });
9816
- var StyledBackdrop$2 = index$a(AnimatedPressable$2)(function (_ref4) {
9816
+ var StyledBackdrop$2 = index$a(AnimatedPressable$1)(function (_ref4) {
9817
9817
  var theme = _ref4.theme;
9818
9818
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
9819
9819
  backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
@@ -15336,7 +15336,7 @@ var DatePicker = function DatePicker(_ref) {
15336
15336
  }));
15337
15337
  };
15338
15338
 
15339
- var AnimatedPressable$1 = Animated.createAnimatedComponent(Pressable);
15339
+ var AnimatedPressable = Animated.createAnimatedComponent(Pressable);
15340
15340
  var StyledContainer$5 = index$a(View)(function (_ref) {
15341
15341
  var theme = _ref.theme,
15342
15342
  enableShadow = _ref.enableShadow;
@@ -15364,7 +15364,7 @@ var StyledDragableContainer = index$a(View)(function (_ref2) {
15364
15364
  flexDirection: 'column-reverse'
15365
15365
  });
15366
15366
  });
15367
- var StyledBackdrop$1 = index$a(AnimatedPressable$1)(function (_ref3) {
15367
+ var StyledBackdrop$1 = index$a(AnimatedPressable)(function (_ref3) {
15368
15368
  var theme = _ref3.theme;
15369
15369
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
15370
15370
  backgroundColor: theme.__hd__.drawer.colors.backdrop
@@ -16554,8 +16554,17 @@ var StyledFAB$1 = index$a(FAB$1)(function (_ref) {
16554
16554
  alignSelf: 'flex-end'
16555
16555
  };
16556
16556
  });
16557
- var AnimatedPressable = Animated.createAnimatedComponent(Pressable);
16558
- var StyledBackdrop = index$a(AnimatedPressable)(function (_ref2) {
16557
+ var StyledBackdropPressable = index$a(Pressable)(function () {
16558
+ return {
16559
+ position: 'absolute',
16560
+ left: 0,
16561
+ right: 0,
16562
+ top: 0,
16563
+ bottom: 0,
16564
+ backgroundColor: 'transparent'
16565
+ };
16566
+ });
16567
+ var StyledBackdrop = index$a(Box)(function (_ref2) {
16559
16568
  var theme = _ref2.theme;
16560
16569
  return {
16561
16570
  position: 'absolute',
@@ -16641,19 +16650,19 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
16641
16650
  }, /*#__PURE__*/React__default.createElement(StyledContainerInModal, {
16642
16651
  testID: testID,
16643
16652
  style: [style]
16644
- }, /*#__PURE__*/React__default.createElement(StyledBackdrop, {
16653
+ }, /*#__PURE__*/React__default.createElement(StyledBackdropPressable, {
16645
16654
  testID: "back-drop",
16646
16655
  onPress: onBackdropPress
16647
- }), /*#__PURE__*/React__default.createElement(StyledActionGroupContainer, {
16656
+ }, active && /*#__PURE__*/React__default.createElement(Portal$1, null, /*#__PURE__*/React__default.createElement(StyledBackdrop, null))), /*#__PURE__*/React__default.createElement(StyledActionGroupContainer, {
16648
16657
  testID: "action-group",
16649
16658
  pointerEvents: "box-none",
16650
16659
  style: {
16651
16660
  opacity: actionGroupOpacity
16652
16661
  }
16653
16662
  }, /*#__PURE__*/React__default.createElement(Box, {
16654
- style: [style, {
16663
+ style: {
16655
16664
  paddingBottom: 0
16656
- }]
16665
+ }
16657
16666
  }, items === null || items === void 0 ? void 0 : items.map(function (itemProp, index) {
16658
16667
  return /*#__PURE__*/React__default.createElement(ActionItem, _extends$1({
16659
16668
  key: itemProp.key || "".concat(itemProp.icon, "_").concat(itemProp.title)
package/lib/index.js CHANGED
@@ -2344,16 +2344,6 @@ var getRadii = function getRadii(baseRadius) {
2344
2344
 
2345
2345
  var swagLightShadowPalette = {
2346
2346
  "default": {
2347
- shadowOffset: {
2348
- width: 0,
2349
- height: 2
2350
- },
2351
- shadowColor: swagSystemPalette.primaryOutline,
2352
- shadowOpacity: 0.12,
2353
- shadowRadius: 4,
2354
- elevation: 3
2355
- },
2356
- cardDrawer: {
2357
2347
  shadowOffset: {
2358
2348
  width: 0,
2359
2349
  height: 2
@@ -2363,7 +2353,7 @@ var swagLightShadowPalette = {
2363
2353
  shadowRadius: 2,
2364
2354
  elevation: 6
2365
2355
  },
2366
- tabBar: {
2356
+ medium: {
2367
2357
  shadowOffset: {
2368
2358
  width: 0,
2369
2359
  height: -4
@@ -2372,6 +2362,16 @@ var swagLightShadowPalette = {
2372
2362
  shadowOpacity: 0.04,
2373
2363
  shadowRadius: 6,
2374
2364
  elevation: 10
2365
+ },
2366
+ deep: {
2367
+ shadowOffset: {
2368
+ width: 0,
2369
+ height: 4
2370
+ },
2371
+ shadowColor: '#001f23',
2372
+ shadowOpacity: 0.28,
2373
+ shadowRadius: 8,
2374
+ elevation: 10
2375
2375
  }
2376
2376
  };
2377
2377
 
@@ -2386,40 +2386,30 @@ var swagLightJobsShadowPalette = {
2386
2386
  shadowRadius: 4,
2387
2387
  elevation: 3
2388
2388
  },
2389
- cardDrawer: {
2389
+ medium: {
2390
2390
  shadowOffset: {
2391
2391
  width: 0,
2392
- height: 2
2392
+ height: -4
2393
2393
  },
2394
2394
  shadowColor: '#001f23',
2395
- shadowOpacity: 0.12,
2396
- shadowRadius: 2,
2397
- elevation: 6
2395
+ shadowOpacity: 0.04,
2396
+ shadowRadius: 6,
2397
+ elevation: 10
2398
2398
  },
2399
- tabBar: {
2399
+ deep: {
2400
2400
  shadowOffset: {
2401
2401
  width: 0,
2402
- height: -4
2402
+ height: 4
2403
2403
  },
2404
2404
  shadowColor: '#001f23',
2405
- shadowOpacity: 0.04,
2406
- shadowRadius: 6,
2405
+ shadowOpacity: 0.28,
2406
+ shadowRadius: 8,
2407
2407
  elevation: 10
2408
2408
  }
2409
2409
  };
2410
2410
 
2411
2411
  var ehWorkDarkShadowPalette = {
2412
2412
  "default": {
2413
- shadowOffset: {
2414
- width: 0,
2415
- height: 2
2416
- },
2417
- shadowColor: ehWorkDarkSystemPalette.primaryOutline,
2418
- shadowOpacity: 0.12,
2419
- shadowRadius: 4,
2420
- elevation: 3
2421
- },
2422
- cardDrawer: {
2423
2413
  shadowOffset: {
2424
2414
  width: 0,
2425
2415
  height: 2
@@ -2429,7 +2419,7 @@ var ehWorkDarkShadowPalette = {
2429
2419
  shadowRadius: 2,
2430
2420
  elevation: 6
2431
2421
  },
2432
- tabBar: {
2422
+ medium: {
2433
2423
  shadowOffset: {
2434
2424
  width: 0,
2435
2425
  height: -4
@@ -2438,6 +2428,16 @@ var ehWorkDarkShadowPalette = {
2438
2428
  shadowOpacity: 0.24,
2439
2429
  shadowRadius: 6,
2440
2430
  elevation: 10
2431
+ },
2432
+ deep: {
2433
+ shadowOffset: {
2434
+ width: 0,
2435
+ height: 4
2436
+ },
2437
+ shadowColor: '#000000',
2438
+ shadowOpacity: 0.64,
2439
+ shadowRadius: 8,
2440
+ elevation: 10
2441
2441
  }
2442
2442
  };
2443
2443
 
@@ -2527,7 +2527,7 @@ var getAlertTheme = function getAlertTheme(theme) {
2527
2527
  base: theme.borderWidths.base
2528
2528
  };
2529
2529
  var shadows = {
2530
- wrapper: theme.shadows.cardDrawer
2530
+ wrapper: theme.shadows["default"]
2531
2531
  };
2532
2532
  return {
2533
2533
  colors: colors,
@@ -2698,7 +2698,7 @@ var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
2698
2698
  height: theme.sizes['6xlarge']
2699
2699
  };
2700
2700
  var shadows = {
2701
- wrapper: theme.shadows.tabBar
2701
+ wrapper: theme.shadows.medium
2702
2702
  };
2703
2703
  var space = {
2704
2704
  titleMarginTop: theme.space.xsmall
@@ -3013,7 +3013,7 @@ var getChipTheme = function getChipTheme(theme) {
3013
3013
  outlinedDefaultBorder: theme.borderWidths.base
3014
3014
  };
3015
3015
  var shadows = {
3016
- filledWrapper: theme.shadows.cardDrawer
3016
+ filledWrapper: theme.shadows["default"]
3017
3017
  };
3018
3018
  var fontSizes = {
3019
3019
  icon: theme.fontSizes.small
@@ -3212,7 +3212,7 @@ var getFABTheme = function getFABTheme(theme) {
3212
3212
  icon: theme.lineHeights.large
3213
3213
  };
3214
3214
  var shadows = {
3215
- "default": theme.shadows.cardDrawer
3215
+ "default": theme.shadows["default"]
3216
3216
  };
3217
3217
  var space = {
3218
3218
  actionItemPadding: theme.space.smallMedium,
@@ -3302,7 +3302,7 @@ var getListTheme = function getListTheme(theme) {
3302
3302
  leadingStatus: theme.radii.rounded
3303
3303
  };
3304
3304
  var shadows = {
3305
- card: theme.shadows.cardDrawer
3305
+ card: theme.shadows["default"]
3306
3306
  };
3307
3307
  var widths = {
3308
3308
  leadingStatus: 8
@@ -3989,7 +3989,7 @@ var getToastTheme = function getToastTheme(theme) {
3989
3989
  base: theme.borderWidths.base
3990
3990
  };
3991
3991
  var shadows = {
3992
- wrapper: theme.shadows.cardDrawer
3992
+ wrapper: theme.shadows["default"]
3993
3993
  };
3994
3994
  return {
3995
3995
  colors: colors,
@@ -4243,7 +4243,7 @@ var getSearchTheme = function getSearchTheme(theme) {
4243
4243
  shadow: theme.colors.primaryOutline
4244
4244
  };
4245
4245
  var shadows = {
4246
- container: theme.shadows.cardDrawer
4246
+ container: theme.shadows["default"]
4247
4247
  };
4248
4248
  var space = {
4249
4249
  containerHorizontalPadding: theme.space.small,
@@ -4323,11 +4323,11 @@ var getMapPinTheme = function getMapPinTheme(theme) {
4323
4323
  iconRight: -theme.space.small
4324
4324
  };
4325
4325
  var shadows = {
4326
- offset: theme.shadows["default"].shadowOffset,
4327
- opacity: theme.shadows["default"].shadowOpacity,
4328
- radius: theme.shadows["default"].shadowRadius,
4329
- elevation: theme.shadows["default"].elevation,
4330
- color: theme.shadows["default"].shadowColor
4326
+ offset: theme.shadows.deep.shadowOffset,
4327
+ opacity: theme.shadows.deep.shadowOpacity,
4328
+ radius: theme.shadows.deep.shadowRadius,
4329
+ elevation: theme.shadows.deep.elevation,
4330
+ color: theme.shadows.deep.shadowColor
4331
4331
  };
4332
4332
  return {
4333
4333
  sizes: sizes,
@@ -4348,7 +4348,7 @@ var getFloatingIslandTheme = function getFloatingIslandTheme(theme) {
4348
4348
  wrapper: theme.radii.rounded
4349
4349
  };
4350
4350
  var shadows = {
4351
- wrapper: theme.shadows.cardDrawer
4351
+ wrapper: theme.shadows["default"]
4352
4352
  };
4353
4353
  var space = {
4354
4354
  wrapperPadding: theme.space.small,
@@ -9804,7 +9804,7 @@ var Divider = function Divider(_ref) {
9804
9804
  }));
9805
9805
  };
9806
9806
 
9807
- var AnimatedPressable$2 = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
9807
+ var AnimatedPressable$1 = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
9808
9808
  var AnimatedSafeAreaView = reactNative.Animated.createAnimatedComponent(reactNative.SafeAreaView);
9809
9809
  var StyledWrapper$a = index$a(reactNative.View)(_objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
9810
9810
  flexDirection: 'column-reverse'
@@ -9841,7 +9841,7 @@ var StyledBottomSheet = index$a(AnimatedSafeAreaView)(function (_ref3) {
9841
9841
  maxHeight: '94%'
9842
9842
  };
9843
9843
  });
9844
- var StyledBackdrop$2 = index$a(AnimatedPressable$2)(function (_ref4) {
9844
+ var StyledBackdrop$2 = index$a(AnimatedPressable$1)(function (_ref4) {
9845
9845
  var theme = _ref4.theme;
9846
9846
  return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
9847
9847
  backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
@@ -15364,7 +15364,7 @@ var DatePicker = function DatePicker(_ref) {
15364
15364
  }));
15365
15365
  };
15366
15366
 
15367
- var AnimatedPressable$1 = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
15367
+ var AnimatedPressable = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
15368
15368
  var StyledContainer$5 = index$a(reactNative.View)(function (_ref) {
15369
15369
  var theme = _ref.theme,
15370
15370
  enableShadow = _ref.enableShadow;
@@ -15392,7 +15392,7 @@ var StyledDragableContainer = index$a(reactNative.View)(function (_ref2) {
15392
15392
  flexDirection: 'column-reverse'
15393
15393
  });
15394
15394
  });
15395
- var StyledBackdrop$1 = index$a(AnimatedPressable$1)(function (_ref3) {
15395
+ var StyledBackdrop$1 = index$a(AnimatedPressable)(function (_ref3) {
15396
15396
  var theme = _ref3.theme;
15397
15397
  return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
15398
15398
  backgroundColor: theme.__hd__.drawer.colors.backdrop
@@ -16582,8 +16582,17 @@ var StyledFAB$1 = index$a(FAB$1)(function (_ref) {
16582
16582
  alignSelf: 'flex-end'
16583
16583
  };
16584
16584
  });
16585
- var AnimatedPressable = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
16586
- var StyledBackdrop = index$a(AnimatedPressable)(function (_ref2) {
16585
+ var StyledBackdropPressable = index$a(reactNative.Pressable)(function () {
16586
+ return {
16587
+ position: 'absolute',
16588
+ left: 0,
16589
+ right: 0,
16590
+ top: 0,
16591
+ bottom: 0,
16592
+ backgroundColor: 'transparent'
16593
+ };
16594
+ });
16595
+ var StyledBackdrop = index$a(Box)(function (_ref2) {
16587
16596
  var theme = _ref2.theme;
16588
16597
  return {
16589
16598
  position: 'absolute',
@@ -16669,19 +16678,19 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
16669
16678
  }, /*#__PURE__*/React__namespace.default.createElement(StyledContainerInModal, {
16670
16679
  testID: testID,
16671
16680
  style: [style]
16672
- }, /*#__PURE__*/React__namespace.default.createElement(StyledBackdrop, {
16681
+ }, /*#__PURE__*/React__namespace.default.createElement(StyledBackdropPressable, {
16673
16682
  testID: "back-drop",
16674
16683
  onPress: onBackdropPress
16675
- }), /*#__PURE__*/React__namespace.default.createElement(StyledActionGroupContainer, {
16684
+ }, active && /*#__PURE__*/React__namespace.default.createElement(Portal$1, null, /*#__PURE__*/React__namespace.default.createElement(StyledBackdrop, null))), /*#__PURE__*/React__namespace.default.createElement(StyledActionGroupContainer, {
16676
16685
  testID: "action-group",
16677
16686
  pointerEvents: "box-none",
16678
16687
  style: {
16679
16688
  opacity: actionGroupOpacity
16680
16689
  }
16681
16690
  }, /*#__PURE__*/React__namespace.default.createElement(Box, {
16682
- style: [style, {
16691
+ style: {
16683
16692
  paddingBottom: 0
16684
- }]
16693
+ }
16685
16694
  }, items === null || items === void 0 ? void 0 : items.map(function (itemProp, index) {
16686
16695
  return /*#__PURE__*/React__namespace.default.createElement(ActionItem, _extends$1({
16687
16696
  key: itemProp.key || "".concat(itemProp.icon, "_").concat(itemProp.title)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.91.6",
3
+ "version": "8.91.8",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -3,6 +3,7 @@ import styled from '@emotion/native';
3
3
  import type { ComponentProps } from 'react';
4
4
  import type { ViewProps } from 'react-native';
5
5
  import FAB from '../FAB';
6
+ import Box from '../../Box';
6
7
 
7
8
  const StyledContainer = styled(View)<ViewProps>({
8
9
  position: 'absolute',
@@ -38,8 +39,16 @@ const StyledFAB = styled(FAB)(({ theme }) => ({
38
39
  alignSelf: 'flex-end',
39
40
  }));
40
41
 
41
- const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
42
- const StyledBackdrop = styled(AnimatedPressable)(({ theme }) => ({
42
+ const StyledBackdropPressable = styled(Pressable)(() => ({
43
+ position: 'absolute',
44
+ left: 0,
45
+ right: 0,
46
+ top: 0,
47
+ bottom: 0,
48
+ backgroundColor: 'transparent',
49
+ }));
50
+
51
+ const StyledBackdrop = styled(Box)(({ theme }) => ({
43
52
  position: 'absolute',
44
53
  left: 0,
45
54
  right: 0,
@@ -52,6 +61,7 @@ const StyledBackdrop = styled(AnimatedPressable)(({ theme }) => ({
52
61
  export {
53
62
  StyledActionGroupContainer,
54
63
  StyledBackdrop,
64
+ StyledBackdropPressable,
55
65
  StyledContainer,
56
66
  StyledContainerInModal,
57
67
  StyledFAB,