@razorpay/blade 8.1.0 → 8.2.3

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.
@@ -3531,124 +3531,13 @@ var useBreakpoint = function useBreakpoint(_ref) {
3531
3531
  return breakpointAndDevice;
3532
3532
  };
3533
3533
 
3534
- var breakpoints = {
3535
- base: 0,
3536
- xs: 320,
3537
- s: 480,
3538
- m: 768,
3539
- l: 1024,
3540
- xl: 1200
3541
- };
3542
-
3543
- /**
3544
- * When any of the values are changed here, do change the jsdoc comments in BaseBox/types/spacingTypes.ts as well
3545
- *
3546
- * {@link ../../components/Box/BaseBox/types/spacingTypes.ts}
3547
- */
3548
- var spacing = {
3549
- 0: 0,
3550
- 1: 2,
3551
- 2: 4,
3552
- 3: 8,
3553
- 4: 12,
3554
- 5: 16,
3555
- 6: 20,
3556
- 7: 24,
3557
- 8: 32,
3558
- 9: 40,
3559
- 10: 48,
3560
- 11: 56
3561
- };
3562
-
3563
- var fontFamily = {
3564
- text: 'Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
3565
- code: 'monospace'
3566
- };
3567
-
3568
- function ownKeys$5v(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3569
-
3570
- function _objectSpread$5u(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5v(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5v(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3571
- var fontWeight = {
3572
- regular: 400,
3573
- bold: 700
3574
- };
3575
- ({
3576
- onDesktop: {
3577
- fonts: {
3578
- family: _objectSpread$5u({}, fontFamily),
3579
- size: {
3580
- 10: 9,
3581
- 25: 10,
3582
- 50: 11,
3583
- 75: 12,
3584
- 100: 14,
3585
- 200: 16,
3586
- 300: 18,
3587
- 400: 20,
3588
- 500: 22,
3589
- 600: 24,
3590
- 700: 28,
3591
- 800: 32,
3592
- 900: 36,
3593
- 1000: 40
3594
- },
3595
- weight: _objectSpread$5u({}, fontWeight)
3596
- },
3597
- lineHeights: {
3598
- 0: 0,
3599
- 25: 14,
3600
- 50: 16,
3601
- 75: 18,
3602
- 100: 20,
3603
- 200: 24,
3604
- 300: 24,
3605
- 400: 28,
3606
- 500: 32,
3607
- 600: 40,
3608
- 700: 40,
3609
- 800: 48
3610
- } // letterSpacings: {},
3611
-
3612
- },
3613
- onMobile: {
3614
- fonts: {
3615
- family: _objectSpread$5u({}, fontFamily),
3616
- size: {
3617
- 10: 9,
3618
- 25: 10,
3619
- 50: 11,
3620
- 75: 12,
3621
- 100: 14,
3622
- 200: 16,
3623
- 300: 16,
3624
- 400: 18,
3625
- 500: 20,
3626
- 600: 20,
3627
- 700: 24,
3628
- 800: 28,
3629
- 900: 32,
3630
- 1000: 32
3631
- },
3632
- weight: _objectSpread$5u({}, fontWeight)
3633
- },
3634
- lineHeights: {
3635
- 0: 0,
3636
- 25: 14,
3637
- 50: 16,
3638
- 75: 18,
3639
- 100: 20,
3640
- 200: 20,
3641
- 300: 24,
3642
- 400: 24,
3643
- 500: 28,
3644
- 600: 32,
3645
- 700: 40,
3646
- 800: 40
3647
- } // letterSpacings: {},
3648
-
3649
- }
3650
- });
3651
-
3534
+ // @TODO: this shall rather be Surface = 'level1' | 'level2' | 'level3' to keep in sync with color tokens
3535
+ // export type ActionProperties = {
3536
+ // background: ActionVariants;
3537
+ // border: ActionVariants;
3538
+ // text: ActionVariants;
3539
+ // icon: ActionVariants;
3540
+ // };
3652
3541
  var colorSchemeNamesInput = ['light', 'dark', 'system'];
3653
3542
 
3654
3543
  var useColorScheme = function useColorScheme() {
@@ -3859,9 +3748,9 @@ var componentIds$1 = {
3859
3748
  ActionListSection: 'ActionListSection'
3860
3749
  };
3861
3750
 
3862
- function ownKeys$5u(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3751
+ function ownKeys$5v(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3863
3752
 
3864
- function _objectSpread$5t(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5u(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5u(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3753
+ function _objectSpread$5u(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5v(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5v(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3865
3754
 
3866
3755
  /**
3867
3756
  * Returns if there is ActionListItem after ActionListSection
@@ -3928,7 +3817,7 @@ var getActionListProperties = function getActionListProperties(children) {
3928
3817
  }); // push the item in the appropriate bucket
3929
3818
 
3930
3819
  if (foundSection) {
3931
- foundSection === null || foundSection === void 0 ? void 0 : foundSection.data.push(_objectSpread$5t(_objectSpread$5t({}, child.props), {}, {
3820
+ foundSection === null || foundSection === void 0 ? void 0 : foundSection.data.push(_objectSpread$5u(_objectSpread$5u({}, child.props), {}, {
3932
3821
  _index: currentIndex
3933
3822
  }));
3934
3823
  } else {
@@ -3936,7 +3825,7 @@ var getActionListProperties = function getActionListProperties(children) {
3936
3825
  sectionData.push({
3937
3826
  title: currentSection,
3938
3827
  hideDivider: hideDivider,
3939
- data: [_objectSpread$5t(_objectSpread$5t({}, child.props), {}, {
3828
+ data: [_objectSpread$5u(_objectSpread$5u({}, child.props), {}, {
3940
3829
  _index: currentIndex
3941
3830
  })]
3942
3831
  });
@@ -4050,19 +3939,211 @@ var getBaseActionListStyles = function getBaseActionListStyles(props) {
4050
3939
  _props$surfaceLevel = props.surfaceLevel,
4051
3940
  surfaceLevel = _props$surfaceLevel === void 0 ? 2 : _props$surfaceLevel,
4052
3941
  isInBottomSheet = props.isInBottomSheet;
4053
- var shadowColor = theme.shadows.color.level[1]; // @TODO: tokenize shadows and replace the logic here
4054
-
4055
- var elevation200 = "".concat(makeSize(theme.shadows.offsetX.level[1]), " ").concat(makeSize(0), " ").concat(makeSize(theme.shadows.blurRadius.level[1]), " 0px ").concat(shadowColor, ", ").concat(makeSize(theme.shadows.offsetX.level[1]), " ").concat(makeSize(theme.shadows.offsetY.level[2]), " ").concat(makeSize(theme.shadows.blurRadius.level[2]), " 0px ").concat(shadowColor);
4056
3942
  var backgroundColor = theme.colors.surface.background["level".concat(surfaceLevel)].lowContrast;
4057
3943
  return {
4058
3944
  backgroundColor: backgroundColor,
4059
3945
  borderWidth: isInBottomSheet ? undefined : theme.border.width.thin,
4060
3946
  borderColor: theme.colors.surface.border.normal.lowContrast,
4061
3947
  borderRadius: makeSize(theme.border.radius.medium),
4062
- boxShadow: isInBottomSheet || isReactNative$4() ? undefined : elevation200
3948
+ boxShadow: isInBottomSheet || isReactNative$4() ? undefined : castWebType(theme.elevation.midRaised)
4063
3949
  };
4064
3950
  };
4065
3951
 
3952
+ var breakpoints = {
3953
+ base: 0,
3954
+ xs: 320,
3955
+ s: 480,
3956
+ m: 768,
3957
+ l: 1024,
3958
+ xl: 1200
3959
+ };
3960
+
3961
+ var fontFamily = {
3962
+ text: 'Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
3963
+ code: 'monospace'
3964
+ };
3965
+
3966
+ function ownKeys$5u(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3967
+
3968
+ function _objectSpread$5t(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5u(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5u(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3969
+ var fontWeight = {
3970
+ regular: 400,
3971
+ bold: 700
3972
+ };
3973
+ ({
3974
+ onDesktop: {
3975
+ fonts: {
3976
+ family: _objectSpread$5t({}, fontFamily),
3977
+ size: {
3978
+ 10: 9,
3979
+ 25: 10,
3980
+ 50: 11,
3981
+ 75: 12,
3982
+ 100: 14,
3983
+ 200: 16,
3984
+ 300: 18,
3985
+ 400: 20,
3986
+ 500: 22,
3987
+ 600: 24,
3988
+ 700: 28,
3989
+ 800: 32,
3990
+ 900: 36,
3991
+ 1000: 40
3992
+ },
3993
+ weight: _objectSpread$5t({}, fontWeight)
3994
+ },
3995
+ lineHeights: {
3996
+ 0: 0,
3997
+ 25: 14,
3998
+ 50: 16,
3999
+ 75: 18,
4000
+ 100: 20,
4001
+ 200: 24,
4002
+ 300: 24,
4003
+ 400: 28,
4004
+ 500: 32,
4005
+ 600: 40,
4006
+ 700: 40,
4007
+ 800: 48
4008
+ } // letterSpacings: {},
4009
+
4010
+ },
4011
+ onMobile: {
4012
+ fonts: {
4013
+ family: _objectSpread$5t({}, fontFamily),
4014
+ size: {
4015
+ 10: 9,
4016
+ 25: 10,
4017
+ 50: 11,
4018
+ 75: 12,
4019
+ 100: 14,
4020
+ 200: 16,
4021
+ 300: 16,
4022
+ 400: 18,
4023
+ 500: 20,
4024
+ 600: 20,
4025
+ 700: 24,
4026
+ 800: 28,
4027
+ 900: 32,
4028
+ 1000: 32
4029
+ },
4030
+ weight: _objectSpread$5t({}, fontWeight)
4031
+ },
4032
+ lineHeights: {
4033
+ 0: 0,
4034
+ 25: 14,
4035
+ 50: 16,
4036
+ 75: 18,
4037
+ 100: 20,
4038
+ 200: 20,
4039
+ 300: 24,
4040
+ 400: 24,
4041
+ 500: 28,
4042
+ 600: 32,
4043
+ 700: 40,
4044
+ 800: 40
4045
+ } // letterSpacings: {},
4046
+
4047
+ }
4048
+ });
4049
+
4050
+ /**
4051
+ * When any of the values are changed here, do change the jsdoc comments in BaseBox/types/spacingTypes.ts as well
4052
+ *
4053
+ * {@link ../../components/Box/BaseBox/types/spacingTypes.ts}
4054
+ */
4055
+ var spacing = {
4056
+ 0: 0,
4057
+ 1: 2,
4058
+ 2: 4,
4059
+ 3: 8,
4060
+ 4: 12,
4061
+ 5: 16,
4062
+ 6: 20,
4063
+ 7: 24,
4064
+ 8: 32,
4065
+ 9: 40,
4066
+ 10: 48,
4067
+ 11: 56
4068
+ };
4069
+
4070
+ /**
4071
+ * Size tokens are currently not exposed for users (therefore not available in theme)
4072
+ */
4073
+ var size = {
4074
+ /** 0 px */
4075
+ 0: 0,
4076
+
4077
+ /** 1 px */
4078
+ 1: 1,
4079
+
4080
+ /** 2 px */
4081
+ 2: 2,
4082
+
4083
+ /** 3 px */
4084
+ 3: 3,
4085
+
4086
+ /** 4 px */
4087
+ 4: 4,
4088
+
4089
+ /** 5 px */
4090
+ 5: 5,
4091
+
4092
+ /** 6 px */
4093
+ 6: 6,
4094
+
4095
+ /** 8 px */
4096
+ 8: 8,
4097
+
4098
+ /** 10 px */
4099
+ 10: 10,
4100
+
4101
+ /** 12 px */
4102
+ 12: 12,
4103
+
4104
+ /** 16 px */
4105
+ 16: 16,
4106
+
4107
+ /** 18 px */
4108
+ 18: 18,
4109
+
4110
+ /** 20 px */
4111
+ 20: 20,
4112
+
4113
+ /** 24 px */
4114
+ 24: 24,
4115
+
4116
+ /** 28 px */
4117
+ 28: 28,
4118
+
4119
+ /** 32 px */
4120
+ 32: 32,
4121
+
4122
+ /** 36 px */
4123
+ 36: 36,
4124
+
4125
+ /** 40 px */
4126
+ 40: 40,
4127
+
4128
+ /** 48 px */
4129
+ 48: 48,
4130
+
4131
+ /** 60 px */
4132
+ 56: 56,
4133
+
4134
+ /** 100 px */
4135
+ 100: 100,
4136
+
4137
+ /** 120 px */
4138
+ 120: 120,
4139
+
4140
+ /** 300 px */
4141
+ 300: 300,
4142
+
4143
+ /** 584 px */
4144
+ 584: 584
4145
+ };
4146
+
4066
4147
  var _excluded$4Q = ["base"];
4067
4148
 
4068
4149
  function ownKeys$5t(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -4383,9 +4464,7 @@ var useBladeProvider = function useBladeProvider(_ref) {
4383
4464
 
4384
4465
  var theme = _objectSpread$5r(_objectSpread$5r({}, themeTokens), {}, {
4385
4466
  colors: themeTokens.colors[onColorMode],
4386
- shadows: _objectSpread$5r(_objectSpread$5r({}, themeTokens.shadows), {}, {
4387
- color: themeTokens.shadows.color[onColorMode]
4388
- }),
4467
+ elevation: themeTokens.elevation[onColorMode],
4389
4468
  typography: themeTokens.typography[onDeviceType]
4390
4469
  });
4391
4470
 
@@ -4562,83 +4641,6 @@ var StyledActionList = /*#__PURE__*/styled(BaseBox).withConfig({
4562
4641
  return _objectSpread$5p({}, getBaseActionListStyles(props));
4563
4642
  });
4564
4643
 
4565
- /**
4566
- * Size tokens are currently not exposed for users (therefore not available in theme)
4567
- */
4568
- var size = {
4569
- /** 0 px */
4570
- 0: 0,
4571
-
4572
- /** 1 px */
4573
- 1: 1,
4574
-
4575
- /** 2 px */
4576
- 2: 2,
4577
-
4578
- /** 3 px */
4579
- 3: 3,
4580
-
4581
- /** 4 px */
4582
- 4: 4,
4583
-
4584
- /** 5 px */
4585
- 5: 5,
4586
-
4587
- /** 6 px */
4588
- 6: 6,
4589
-
4590
- /** 8 px */
4591
- 8: 8,
4592
-
4593
- /** 10 px */
4594
- 10: 10,
4595
-
4596
- /** 12 px */
4597
- 12: 12,
4598
-
4599
- /** 16 px */
4600
- 16: 16,
4601
-
4602
- /** 18 px */
4603
- 18: 18,
4604
-
4605
- /** 20 px */
4606
- 20: 20,
4607
-
4608
- /** 24 px */
4609
- 24: 24,
4610
-
4611
- /** 28 px */
4612
- 28: 28,
4613
-
4614
- /** 32 px */
4615
- 32: 32,
4616
-
4617
- /** 36 px */
4618
- 36: 36,
4619
-
4620
- /** 40 px */
4621
- 40: 40,
4622
-
4623
- /** 48 px */
4624
- 48: 48,
4625
-
4626
- /** 60 px */
4627
- 56: 56,
4628
-
4629
- /** 100 px */
4630
- 100: 100,
4631
-
4632
- /** 120 px */
4633
- 120: 120,
4634
-
4635
- /** 300 px */
4636
- 300: 300,
4637
-
4638
- /** 584 px */
4639
- 584: 584
4640
- };
4641
-
4642
4644
  var getBaseListBoxWrapperStyles = function getBaseListBoxWrapperStyles(props) {
4643
4645
  return {
4644
4646
  maxHeight: props.isInBottomSheet ? undefined : makeSize(size[300]),
@@ -5421,9 +5423,6 @@ var _ActionList = function _ActionList(_ref) {
5421
5423
  dropdownTriggerer = _useDropdown.dropdownTriggerer,
5422
5424
  hasFooterAction = _useDropdown.hasFooterAction;
5423
5425
 
5424
- var _useTheme = useTheme(),
5425
- theme = _useTheme.theme;
5426
-
5427
5426
  var _useBottomSheetContex = useBottomSheetContext(),
5428
5427
  isInBottomSheet = _useBottomSheetContex.isInBottomSheet;
5429
5428
 
@@ -5464,7 +5463,6 @@ var _ActionList = function _ActionList(_ref) {
5464
5463
  }) : /*#__PURE__*/jsxs(StyledActionList, _objectSpread$5l(_objectSpread$5l(_objectSpread$5l({
5465
5464
  isInBottomSheet: isInBottomSheet,
5466
5465
  surfaceLevel: surfaceLevel,
5467
- elevation: isInBottomSheet ? undefined : theme.shadows.androidElevation.level[2],
5468
5466
  id: "".concat(dropdownBaseId, "-actionlist")
5469
5467
  }, makeAccessible({
5470
5468
  role: actionListContainerRole,
@@ -20072,19 +20070,17 @@ var CardSurface = /*#__PURE__*/styled(BaseBox).withConfig({
20072
20070
  componentId: "sc-1pgxikk-0"
20073
20071
  })(function (_ref) {
20074
20072
  var surfaceLevel = _ref.surfaceLevel,
20073
+ elevation = _ref.elevation,
20075
20074
  theme = _ref.theme;
20076
- var offsetX = theme.shadows.offsetX.level[1];
20077
- var offsetY = theme.shadows.offsetY.level[1];
20078
- var blur = theme.shadows.blurRadius.level[1];
20079
- var shadowColor = theme.shadows.color.level[1];
20080
- var shadow1 = "".concat(offsetX, "px ").concat(offsetY, "px ").concat(blur, "px 0px ").concat(shadowColor);
20081
- var shadow2 = "0px 0px 1px 0px ".concat(shadowColor);
20082
20075
  var backgroundColor = theme.colors.surface.background["level".concat(surfaceLevel)].lowContrast;
20083
20076
  return {
20084
20077
  width: '100%',
20085
20078
  display: 'flex',
20086
20079
  flexDirection: 'column',
20087
- boxShadow: "".concat(shadow1, ", ").concat(shadow2),
20080
+ boxShadow: castWebType(theme.elevation[elevation]),
20081
+ borderWidth: elevation === 'none' ? "".concat(theme.border.width.thin) : undefined,
20082
+ borderStyle: elevation === 'none' ? 'solid' : undefined,
20083
+ borderColor: elevation === 'none' ? "".concat(theme.colors.surface.border.normal.lowContrast) : undefined,
20088
20084
  backgroundColor: backgroundColor,
20089
20085
  boxSizing: 'border-box'
20090
20086
  };
@@ -20124,7 +20120,7 @@ var CardProvider = function CardProvider(_ref) {
20124
20120
  });
20125
20121
  };
20126
20122
 
20127
- var _excluded$l = ["children", "surfaceLevel", "testID"];
20123
+ var _excluded$l = ["children", "surfaceLevel", "elevation", "testID", "padding"];
20128
20124
 
20129
20125
  function ownKeys$F(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
20130
20126
 
@@ -20148,8 +20144,12 @@ var ComponentIds$2 = {
20148
20144
  var Card = function Card(_ref) {
20149
20145
  var children = _ref.children,
20150
20146
  _ref$surfaceLevel = _ref.surfaceLevel,
20151
- surfaceLevel = _ref$surfaceLevel === void 0 ? 3 : _ref$surfaceLevel,
20147
+ surfaceLevel = _ref$surfaceLevel === void 0 ? 2 : _ref$surfaceLevel,
20148
+ _ref$elevation = _ref.elevation,
20149
+ elevation = _ref$elevation === void 0 ? 'lowRaised' : _ref$elevation,
20152
20150
  testID = _ref.testID,
20151
+ _ref$padding = _ref.padding,
20152
+ padding = _ref$padding === void 0 ? 'spacing.7' : _ref$padding,
20153
20153
  styledProps = _objectWithoutProperties$1(_ref, _excluded$l);
20154
20154
 
20155
20155
  useVerifyAllowedComponents(children, 'Card', [ComponentIds$2.CardHeader, ComponentIds$2.CardBody, ComponentIds$2.CardFooter]);
@@ -20158,12 +20158,10 @@ var Card = function Card(_ref) {
20158
20158
  name: MetaConstants.Card,
20159
20159
  testID: testID
20160
20160
  })), {}, {
20161
- paddingLeft: "spacing.7",
20162
- paddingRight: "spacing.7",
20163
- paddingTop: "spacing.6",
20164
- paddingBottom: "spacing.6",
20161
+ padding: padding,
20165
20162
  borderRadius: "medium",
20166
- surfaceLevel: surfaceLevel
20163
+ surfaceLevel: surfaceLevel,
20164
+ elevation: elevation
20167
20165
  }, getStyledProps(styledProps)), {}, {
20168
20166
  children: children
20169
20167
  }))
@@ -24228,13 +24226,13 @@ var ListItemContentChildren = function ListItemContentChildren(_ref2) {
24228
24226
  display: "flex",
24229
24227
  flexDirection: "row",
24230
24228
  flexWrap: "wrap",
24231
- children: children.map(function (child) {
24229
+ children: children.map(function (child, index) {
24232
24230
  if (typeof child === 'string') {
24233
24231
  return /*#__PURE__*/jsx(Text, {
24234
24232
  variant: "body",
24235
24233
  size: size,
24236
24234
  children: child
24237
- });
24235
+ }, index);
24238
24236
  }
24239
24237
 
24240
24238
  return child;
@@ -28055,18 +28053,13 @@ var BottomSheetSurface = /*#__PURE__*/styled.div.withConfig({
28055
28053
  var theme = _ref.theme,
28056
28054
  windowHeight = _ref.windowHeight,
28057
28055
  isDragging = _ref.isDragging;
28058
- var offsetX = theme.shadows.offsetX.level[1];
28059
- var offsetY = theme.shadows.offsetY.level[1];
28060
- var blur = theme.shadows.blurRadius.level[1];
28061
- var shadowColor = theme.shadows.color.level[1];
28062
- var shadowLayer1 = "".concat(offsetX, "px ").concat(offsetY, "px ").concat(blur, "px 0px ").concat(shadowColor);
28063
- var shadowLayer2 = "0px 0px 1px 0px ".concat(shadowColor);
28064
28056
  return {
28065
28057
  background: theme.colors.surface.background.level2.lowContrast,
28066
28058
  borderTopLeftRadius: makeSize(size[16]),
28067
28059
  borderTopRightRadius: makeSize(size[16]),
28068
28060
  borderColor: theme.colors.surface.border.normal.lowContrast,
28069
- boxShadow: "".concat(shadowLayer1, ", ").concat(shadowLayer2),
28061
+ // this is reverse top elevation of highRaised elevation token
28062
+ boxShadow: '0px -24px 48px -12px hsla(217, 56%, 17%, 0.18)',
28070
28063
  opacity: 0,
28071
28064
  pointerEvents: 'none',
28072
28065
  transitionDuration: isDragging ? undefined : "".concat(makeMotionTime(theme.motion.duration.moderate)),