@hero-design/rn 8.91.6-alpha.0 → 8.91.7
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.
- package/.turbo/turbo-build.log +13 -0
- package/CHANGELOG.md +15 -0
- package/es/index.js +57 -63
- package/lib/index.js +57 -63
- package/package.json +2 -2
- package/src/components/Error/StyledError.tsx +1 -0
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +2 -12
- package/src/components/FAB/ActionGroup/index.tsx +2 -13
- package/src/components/MapPin/__tests__/__snapshots__/Focussed.spec.tsx.snap +3 -3
- package/src/components/MapPin/__tests__/__snapshots__/index.spec.tsx.snap +20 -20
- package/src/components/Slider/__tests__/__snapshots__/RangeSlider.spec.tsx.snap +6 -6
- package/src/components/Success/StyledSuccess.tsx +1 -0
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +17 -17
- package/src/theme/components/alert.ts +1 -1
- package/src/theme/components/bottomNavigation.ts +1 -1
- package/src/theme/components/chip.ts +1 -1
- package/src/theme/components/fab.ts +1 -1
- package/src/theme/components/floatingIsland.ts +1 -1
- package/src/theme/components/list.ts +1 -1
- package/src/theme/components/mapPin.ts +5 -5
- package/src/theme/components/search.ts +1 -1
- package/src/theme/components/toast.ts +1 -1
- package/src/theme/global/shadows/__tests__/__snapshots__/ehWorkDark.spec.ts.snap +10 -10
- package/src/theme/global/shadows/__tests__/__snapshots__/swagLight.spec.ts.snap +9 -9
- package/src/theme/global/shadows/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +6 -6
- package/src/theme/global/shadows/ehWorkDark.ts +11 -12
- package/src/theme/global/shadows/swagLight.ts +11 -12
- package/src/theme/global/shadows/swagLightJobs.ts +9 -9
- package/src/theme/global/shadows/types.ts +2 -2
- package/stats/8.91.6/rn-stats.html +4842 -0
- package/stats/8.91.7/rn-stats.html +4842 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +2 -6
- package/types/theme/global/shadows/types.d.ts +2 -2
- package/types/theme/global/shadows/shadows.d.ts +0 -9
- package/types/theme/global/shadows.d.ts +0 -16
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
(node:3034) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
|
|
2
|
+
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
3
|
+
[36m
|
|
4
|
+
[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
5
|
+
[1m[33m(!) [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`.[39m[22m
|
|
6
|
+
[1m[33m(!) [plugin typescript] src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx (61:35): @rollup/plugin-typescript TS2307: Cannot find module '../../../../types' or its corresponding type declarations.[39m[22m
|
|
7
|
+
[1m/home/runner/work/hero-design/hero-design/packages/rn/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx:61:35[22m
|
|
8
|
+
[90m
|
|
9
|
+
[7m61[0m import { RichTextEditorRef } from "../../../../types";
|
|
10
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~[0m
|
|
11
|
+
[39m
|
|
12
|
+
[1m[33m(!) [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.[39m[22m
|
|
13
|
+
[32mcreated [1mlib/index.js, es/index.js[22m in [1m51.9s[22m[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @hero-design/rn
|
|
2
2
|
|
|
3
|
+
## 8.91.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#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
|
|
8
|
+
|
|
9
|
+
## 8.91.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#3713](https://github.com/Thinkei/hero-design/pull/3713) [`b7507e15becc17873237f8fee829149399a0641b`](https://github.com/Thinkei/hero-design/commit/b7507e15becc17873237f8fee829149399a0641b) Thanks [@ttkien](https://github.com/ttkien)! - [Error] make image center
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`4f07a745f50ba5470df6a3b16eb57fcdf52f755c`](https://github.com/Thinkei/hero-design/commit/4f07a745f50ba5470df6a3b16eb57fcdf52f755c)]:
|
|
16
|
+
- @hero-design/colors@8.45.3
|
|
17
|
+
|
|
3
18
|
## 8.91.5
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/es/index.js
CHANGED
|
@@ -1530,6 +1530,7 @@ var palette$c = {
|
|
|
1530
1530
|
purpleLight30: purple$1.lighten30,
|
|
1531
1531
|
purpleLight45: purple$1.lighten45,
|
|
1532
1532
|
purpleLight75: purple$1.lighten75,
|
|
1533
|
+
purpleLight90: purple$1.lighten90,
|
|
1533
1534
|
red: vermilion$2.base,
|
|
1534
1535
|
redDark15: vermilion$2.darken15,
|
|
1535
1536
|
redDark30: vermilion$2.darken30,
|
|
@@ -2315,16 +2316,6 @@ var getRadii = function getRadii(baseRadius) {
|
|
|
2315
2316
|
|
|
2316
2317
|
var swagLightShadowPalette = {
|
|
2317
2318
|
"default": {
|
|
2318
|
-
shadowOffset: {
|
|
2319
|
-
width: 0,
|
|
2320
|
-
height: 2
|
|
2321
|
-
},
|
|
2322
|
-
shadowColor: swagSystemPalette.primaryOutline,
|
|
2323
|
-
shadowOpacity: 0.12,
|
|
2324
|
-
shadowRadius: 4,
|
|
2325
|
-
elevation: 3
|
|
2326
|
-
},
|
|
2327
|
-
cardDrawer: {
|
|
2328
2319
|
shadowOffset: {
|
|
2329
2320
|
width: 0,
|
|
2330
2321
|
height: 2
|
|
@@ -2334,7 +2325,7 @@ var swagLightShadowPalette = {
|
|
|
2334
2325
|
shadowRadius: 2,
|
|
2335
2326
|
elevation: 6
|
|
2336
2327
|
},
|
|
2337
|
-
|
|
2328
|
+
medium: {
|
|
2338
2329
|
shadowOffset: {
|
|
2339
2330
|
width: 0,
|
|
2340
2331
|
height: -4
|
|
@@ -2343,6 +2334,16 @@ var swagLightShadowPalette = {
|
|
|
2343
2334
|
shadowOpacity: 0.04,
|
|
2344
2335
|
shadowRadius: 6,
|
|
2345
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
|
|
2346
2347
|
}
|
|
2347
2348
|
};
|
|
2348
2349
|
|
|
@@ -2357,40 +2358,30 @@ var swagLightJobsShadowPalette = {
|
|
|
2357
2358
|
shadowRadius: 4,
|
|
2358
2359
|
elevation: 3
|
|
2359
2360
|
},
|
|
2360
|
-
|
|
2361
|
+
medium: {
|
|
2361
2362
|
shadowOffset: {
|
|
2362
2363
|
width: 0,
|
|
2363
|
-
height:
|
|
2364
|
+
height: -4
|
|
2364
2365
|
},
|
|
2365
2366
|
shadowColor: '#001f23',
|
|
2366
|
-
shadowOpacity: 0.
|
|
2367
|
-
shadowRadius:
|
|
2368
|
-
elevation:
|
|
2367
|
+
shadowOpacity: 0.04,
|
|
2368
|
+
shadowRadius: 6,
|
|
2369
|
+
elevation: 10
|
|
2369
2370
|
},
|
|
2370
|
-
|
|
2371
|
+
deep: {
|
|
2371
2372
|
shadowOffset: {
|
|
2372
2373
|
width: 0,
|
|
2373
|
-
height:
|
|
2374
|
+
height: 4
|
|
2374
2375
|
},
|
|
2375
2376
|
shadowColor: '#001f23',
|
|
2376
|
-
shadowOpacity: 0.
|
|
2377
|
-
shadowRadius:
|
|
2377
|
+
shadowOpacity: 0.28,
|
|
2378
|
+
shadowRadius: 8,
|
|
2378
2379
|
elevation: 10
|
|
2379
2380
|
}
|
|
2380
2381
|
};
|
|
2381
2382
|
|
|
2382
2383
|
var ehWorkDarkShadowPalette = {
|
|
2383
2384
|
"default": {
|
|
2384
|
-
shadowOffset: {
|
|
2385
|
-
width: 0,
|
|
2386
|
-
height: 2
|
|
2387
|
-
},
|
|
2388
|
-
shadowColor: ehWorkDarkSystemPalette.primaryOutline,
|
|
2389
|
-
shadowOpacity: 0.12,
|
|
2390
|
-
shadowRadius: 4,
|
|
2391
|
-
elevation: 3
|
|
2392
|
-
},
|
|
2393
|
-
cardDrawer: {
|
|
2394
2385
|
shadowOffset: {
|
|
2395
2386
|
width: 0,
|
|
2396
2387
|
height: 2
|
|
@@ -2400,7 +2391,7 @@ var ehWorkDarkShadowPalette = {
|
|
|
2400
2391
|
shadowRadius: 2,
|
|
2401
2392
|
elevation: 6
|
|
2402
2393
|
},
|
|
2403
|
-
|
|
2394
|
+
medium: {
|
|
2404
2395
|
shadowOffset: {
|
|
2405
2396
|
width: 0,
|
|
2406
2397
|
height: -4
|
|
@@ -2409,6 +2400,16 @@ var ehWorkDarkShadowPalette = {
|
|
|
2409
2400
|
shadowOpacity: 0.24,
|
|
2410
2401
|
shadowRadius: 6,
|
|
2411
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
|
|
2412
2413
|
}
|
|
2413
2414
|
};
|
|
2414
2415
|
|
|
@@ -2498,7 +2499,7 @@ var getAlertTheme = function getAlertTheme(theme) {
|
|
|
2498
2499
|
base: theme.borderWidths.base
|
|
2499
2500
|
};
|
|
2500
2501
|
var shadows = {
|
|
2501
|
-
wrapper: theme.shadows
|
|
2502
|
+
wrapper: theme.shadows["default"]
|
|
2502
2503
|
};
|
|
2503
2504
|
return {
|
|
2504
2505
|
colors: colors,
|
|
@@ -2669,7 +2670,7 @@ var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
|
|
|
2669
2670
|
height: theme.sizes['6xlarge']
|
|
2670
2671
|
};
|
|
2671
2672
|
var shadows = {
|
|
2672
|
-
wrapper: theme.shadows.
|
|
2673
|
+
wrapper: theme.shadows.medium
|
|
2673
2674
|
};
|
|
2674
2675
|
var space = {
|
|
2675
2676
|
titleMarginTop: theme.space.xsmall
|
|
@@ -2984,7 +2985,7 @@ var getChipTheme = function getChipTheme(theme) {
|
|
|
2984
2985
|
outlinedDefaultBorder: theme.borderWidths.base
|
|
2985
2986
|
};
|
|
2986
2987
|
var shadows = {
|
|
2987
|
-
filledWrapper: theme.shadows
|
|
2988
|
+
filledWrapper: theme.shadows["default"]
|
|
2988
2989
|
};
|
|
2989
2990
|
var fontSizes = {
|
|
2990
2991
|
icon: theme.fontSizes.small
|
|
@@ -3183,7 +3184,7 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
3183
3184
|
icon: theme.lineHeights.large
|
|
3184
3185
|
};
|
|
3185
3186
|
var shadows = {
|
|
3186
|
-
"default": theme.shadows
|
|
3187
|
+
"default": theme.shadows["default"]
|
|
3187
3188
|
};
|
|
3188
3189
|
var space = {
|
|
3189
3190
|
actionItemPadding: theme.space.smallMedium,
|
|
@@ -3273,7 +3274,7 @@ var getListTheme = function getListTheme(theme) {
|
|
|
3273
3274
|
leadingStatus: theme.radii.rounded
|
|
3274
3275
|
};
|
|
3275
3276
|
var shadows = {
|
|
3276
|
-
card: theme.shadows
|
|
3277
|
+
card: theme.shadows["default"]
|
|
3277
3278
|
};
|
|
3278
3279
|
var widths = {
|
|
3279
3280
|
leadingStatus: 8
|
|
@@ -3960,7 +3961,7 @@ var getToastTheme = function getToastTheme(theme) {
|
|
|
3960
3961
|
base: theme.borderWidths.base
|
|
3961
3962
|
};
|
|
3962
3963
|
var shadows = {
|
|
3963
|
-
wrapper: theme.shadows
|
|
3964
|
+
wrapper: theme.shadows["default"]
|
|
3964
3965
|
};
|
|
3965
3966
|
return {
|
|
3966
3967
|
colors: colors,
|
|
@@ -4214,7 +4215,7 @@ var getSearchTheme = function getSearchTheme(theme) {
|
|
|
4214
4215
|
shadow: theme.colors.primaryOutline
|
|
4215
4216
|
};
|
|
4216
4217
|
var shadows = {
|
|
4217
|
-
container: theme.shadows
|
|
4218
|
+
container: theme.shadows["default"]
|
|
4218
4219
|
};
|
|
4219
4220
|
var space = {
|
|
4220
4221
|
containerHorizontalPadding: theme.space.small,
|
|
@@ -4294,11 +4295,11 @@ var getMapPinTheme = function getMapPinTheme(theme) {
|
|
|
4294
4295
|
iconRight: -theme.space.small
|
|
4295
4296
|
};
|
|
4296
4297
|
var shadows = {
|
|
4297
|
-
offset: theme.shadows
|
|
4298
|
-
opacity: theme.shadows
|
|
4299
|
-
radius: theme.shadows
|
|
4300
|
-
elevation: theme.shadows
|
|
4301
|
-
color: theme.shadows
|
|
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
|
|
4302
4303
|
};
|
|
4303
4304
|
return {
|
|
4304
4305
|
sizes: sizes,
|
|
@@ -4319,7 +4320,7 @@ var getFloatingIslandTheme = function getFloatingIslandTheme(theme) {
|
|
|
4319
4320
|
wrapper: theme.radii.rounded
|
|
4320
4321
|
};
|
|
4321
4322
|
var shadows = {
|
|
4322
|
-
wrapper: theme.shadows
|
|
4323
|
+
wrapper: theme.shadows["default"]
|
|
4323
4324
|
};
|
|
4324
4325
|
var space = {
|
|
4325
4326
|
wrapperPadding: theme.space.small,
|
|
@@ -9775,7 +9776,7 @@ var Divider = function Divider(_ref) {
|
|
|
9775
9776
|
}));
|
|
9776
9777
|
};
|
|
9777
9778
|
|
|
9778
|
-
var AnimatedPressable$
|
|
9779
|
+
var AnimatedPressable$2 = Animated.createAnimatedComponent(Pressable);
|
|
9779
9780
|
var AnimatedSafeAreaView = Animated.createAnimatedComponent(SafeAreaView);
|
|
9780
9781
|
var StyledWrapper$a = index$a(View)(_objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
9781
9782
|
flexDirection: 'column-reverse'
|
|
@@ -9812,7 +9813,7 @@ var StyledBottomSheet = index$a(AnimatedSafeAreaView)(function (_ref3) {
|
|
|
9812
9813
|
maxHeight: '94%'
|
|
9813
9814
|
};
|
|
9814
9815
|
});
|
|
9815
|
-
var StyledBackdrop$2 = index$a(AnimatedPressable$
|
|
9816
|
+
var StyledBackdrop$2 = index$a(AnimatedPressable$2)(function (_ref4) {
|
|
9816
9817
|
var theme = _ref4.theme;
|
|
9817
9818
|
return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
9818
9819
|
backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
|
|
@@ -15335,7 +15336,7 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
15335
15336
|
}));
|
|
15336
15337
|
};
|
|
15337
15338
|
|
|
15338
|
-
var AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
15339
|
+
var AnimatedPressable$1 = Animated.createAnimatedComponent(Pressable);
|
|
15339
15340
|
var StyledContainer$5 = index$a(View)(function (_ref) {
|
|
15340
15341
|
var theme = _ref.theme,
|
|
15341
15342
|
enableShadow = _ref.enableShadow;
|
|
@@ -15363,7 +15364,7 @@ var StyledDragableContainer = index$a(View)(function (_ref2) {
|
|
|
15363
15364
|
flexDirection: 'column-reverse'
|
|
15364
15365
|
});
|
|
15365
15366
|
});
|
|
15366
|
-
var StyledBackdrop$1 = index$a(AnimatedPressable)(function (_ref3) {
|
|
15367
|
+
var StyledBackdrop$1 = index$a(AnimatedPressable$1)(function (_ref3) {
|
|
15367
15368
|
var theme = _ref3.theme;
|
|
15368
15369
|
return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
15369
15370
|
backgroundColor: theme.__hd__.drawer.colors.backdrop
|
|
@@ -16058,7 +16059,8 @@ var StyledErrorImageContainer = index$a(View)(function (_ref6) {
|
|
|
16058
16059
|
return {
|
|
16059
16060
|
marginBottom: theme.__hd__.error.space.imageMarginBottom,
|
|
16060
16061
|
width: theme.__hd__.error.sizes.image,
|
|
16061
|
-
height: theme.__hd__.error.sizes.image
|
|
16062
|
+
height: theme.__hd__.error.sizes.image,
|
|
16063
|
+
alignItems: 'center'
|
|
16062
16064
|
};
|
|
16063
16065
|
});
|
|
16064
16066
|
var StyledErrorImage = index$a(Image)(function (_ref7) {
|
|
@@ -16552,17 +16554,8 @@ var StyledFAB$1 = index$a(FAB$1)(function (_ref) {
|
|
|
16552
16554
|
alignSelf: 'flex-end'
|
|
16553
16555
|
};
|
|
16554
16556
|
});
|
|
16555
|
-
var
|
|
16556
|
-
|
|
16557
|
-
position: 'absolute',
|
|
16558
|
-
left: 0,
|
|
16559
|
-
right: 0,
|
|
16560
|
-
top: 0,
|
|
16561
|
-
bottom: 0,
|
|
16562
|
-
backgroundColor: 'transparent'
|
|
16563
|
-
};
|
|
16564
|
-
});
|
|
16565
|
-
var StyledBackdrop = index$a(Box)(function (_ref2) {
|
|
16557
|
+
var AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
16558
|
+
var StyledBackdrop = index$a(AnimatedPressable)(function (_ref2) {
|
|
16566
16559
|
var theme = _ref2.theme;
|
|
16567
16560
|
return {
|
|
16568
16561
|
position: 'absolute',
|
|
@@ -16648,10 +16641,10 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
16648
16641
|
}, /*#__PURE__*/React__default.createElement(StyledContainerInModal, {
|
|
16649
16642
|
testID: testID,
|
|
16650
16643
|
style: [style]
|
|
16651
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
16644
|
+
}, /*#__PURE__*/React__default.createElement(StyledBackdrop, {
|
|
16652
16645
|
testID: "back-drop",
|
|
16653
16646
|
onPress: onBackdropPress
|
|
16654
|
-
}
|
|
16647
|
+
}), /*#__PURE__*/React__default.createElement(StyledActionGroupContainer, {
|
|
16655
16648
|
testID: "action-group",
|
|
16656
16649
|
pointerEvents: "box-none",
|
|
16657
16650
|
style: {
|
|
@@ -19293,7 +19286,8 @@ var StyledSuccessImageContainer = index$a(View)(function (_ref4) {
|
|
|
19293
19286
|
return {
|
|
19294
19287
|
marginBottom: theme.__hd__.success.space.imageMarginBottom,
|
|
19295
19288
|
width: theme.__hd__.success.sizes.image,
|
|
19296
|
-
height: theme.__hd__.success.sizes.image
|
|
19289
|
+
height: theme.__hd__.success.sizes.image,
|
|
19290
|
+
alignItems: 'center'
|
|
19297
19291
|
};
|
|
19298
19292
|
});
|
|
19299
19293
|
var StyledSuccessTitle = index$a(Typography.Title)(function (_ref5) {
|
package/lib/index.js
CHANGED
|
@@ -1558,6 +1558,7 @@ var palette$c = {
|
|
|
1558
1558
|
purpleLight30: purple$1.lighten30,
|
|
1559
1559
|
purpleLight45: purple$1.lighten45,
|
|
1560
1560
|
purpleLight75: purple$1.lighten75,
|
|
1561
|
+
purpleLight90: purple$1.lighten90,
|
|
1561
1562
|
red: vermilion$2.base,
|
|
1562
1563
|
redDark15: vermilion$2.darken15,
|
|
1563
1564
|
redDark30: vermilion$2.darken30,
|
|
@@ -2343,16 +2344,6 @@ var getRadii = function getRadii(baseRadius) {
|
|
|
2343
2344
|
|
|
2344
2345
|
var swagLightShadowPalette = {
|
|
2345
2346
|
"default": {
|
|
2346
|
-
shadowOffset: {
|
|
2347
|
-
width: 0,
|
|
2348
|
-
height: 2
|
|
2349
|
-
},
|
|
2350
|
-
shadowColor: swagSystemPalette.primaryOutline,
|
|
2351
|
-
shadowOpacity: 0.12,
|
|
2352
|
-
shadowRadius: 4,
|
|
2353
|
-
elevation: 3
|
|
2354
|
-
},
|
|
2355
|
-
cardDrawer: {
|
|
2356
2347
|
shadowOffset: {
|
|
2357
2348
|
width: 0,
|
|
2358
2349
|
height: 2
|
|
@@ -2362,7 +2353,7 @@ var swagLightShadowPalette = {
|
|
|
2362
2353
|
shadowRadius: 2,
|
|
2363
2354
|
elevation: 6
|
|
2364
2355
|
},
|
|
2365
|
-
|
|
2356
|
+
medium: {
|
|
2366
2357
|
shadowOffset: {
|
|
2367
2358
|
width: 0,
|
|
2368
2359
|
height: -4
|
|
@@ -2371,6 +2362,16 @@ var swagLightShadowPalette = {
|
|
|
2371
2362
|
shadowOpacity: 0.04,
|
|
2372
2363
|
shadowRadius: 6,
|
|
2373
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
|
|
2374
2375
|
}
|
|
2375
2376
|
};
|
|
2376
2377
|
|
|
@@ -2385,40 +2386,30 @@ var swagLightJobsShadowPalette = {
|
|
|
2385
2386
|
shadowRadius: 4,
|
|
2386
2387
|
elevation: 3
|
|
2387
2388
|
},
|
|
2388
|
-
|
|
2389
|
+
medium: {
|
|
2389
2390
|
shadowOffset: {
|
|
2390
2391
|
width: 0,
|
|
2391
|
-
height:
|
|
2392
|
+
height: -4
|
|
2392
2393
|
},
|
|
2393
2394
|
shadowColor: '#001f23',
|
|
2394
|
-
shadowOpacity: 0.
|
|
2395
|
-
shadowRadius:
|
|
2396
|
-
elevation:
|
|
2395
|
+
shadowOpacity: 0.04,
|
|
2396
|
+
shadowRadius: 6,
|
|
2397
|
+
elevation: 10
|
|
2397
2398
|
},
|
|
2398
|
-
|
|
2399
|
+
deep: {
|
|
2399
2400
|
shadowOffset: {
|
|
2400
2401
|
width: 0,
|
|
2401
|
-
height:
|
|
2402
|
+
height: 4
|
|
2402
2403
|
},
|
|
2403
2404
|
shadowColor: '#001f23',
|
|
2404
|
-
shadowOpacity: 0.
|
|
2405
|
-
shadowRadius:
|
|
2405
|
+
shadowOpacity: 0.28,
|
|
2406
|
+
shadowRadius: 8,
|
|
2406
2407
|
elevation: 10
|
|
2407
2408
|
}
|
|
2408
2409
|
};
|
|
2409
2410
|
|
|
2410
2411
|
var ehWorkDarkShadowPalette = {
|
|
2411
2412
|
"default": {
|
|
2412
|
-
shadowOffset: {
|
|
2413
|
-
width: 0,
|
|
2414
|
-
height: 2
|
|
2415
|
-
},
|
|
2416
|
-
shadowColor: ehWorkDarkSystemPalette.primaryOutline,
|
|
2417
|
-
shadowOpacity: 0.12,
|
|
2418
|
-
shadowRadius: 4,
|
|
2419
|
-
elevation: 3
|
|
2420
|
-
},
|
|
2421
|
-
cardDrawer: {
|
|
2422
2413
|
shadowOffset: {
|
|
2423
2414
|
width: 0,
|
|
2424
2415
|
height: 2
|
|
@@ -2428,7 +2419,7 @@ var ehWorkDarkShadowPalette = {
|
|
|
2428
2419
|
shadowRadius: 2,
|
|
2429
2420
|
elevation: 6
|
|
2430
2421
|
},
|
|
2431
|
-
|
|
2422
|
+
medium: {
|
|
2432
2423
|
shadowOffset: {
|
|
2433
2424
|
width: 0,
|
|
2434
2425
|
height: -4
|
|
@@ -2437,6 +2428,16 @@ var ehWorkDarkShadowPalette = {
|
|
|
2437
2428
|
shadowOpacity: 0.24,
|
|
2438
2429
|
shadowRadius: 6,
|
|
2439
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
|
|
2440
2441
|
}
|
|
2441
2442
|
};
|
|
2442
2443
|
|
|
@@ -2526,7 +2527,7 @@ var getAlertTheme = function getAlertTheme(theme) {
|
|
|
2526
2527
|
base: theme.borderWidths.base
|
|
2527
2528
|
};
|
|
2528
2529
|
var shadows = {
|
|
2529
|
-
wrapper: theme.shadows
|
|
2530
|
+
wrapper: theme.shadows["default"]
|
|
2530
2531
|
};
|
|
2531
2532
|
return {
|
|
2532
2533
|
colors: colors,
|
|
@@ -2697,7 +2698,7 @@ var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
|
|
|
2697
2698
|
height: theme.sizes['6xlarge']
|
|
2698
2699
|
};
|
|
2699
2700
|
var shadows = {
|
|
2700
|
-
wrapper: theme.shadows.
|
|
2701
|
+
wrapper: theme.shadows.medium
|
|
2701
2702
|
};
|
|
2702
2703
|
var space = {
|
|
2703
2704
|
titleMarginTop: theme.space.xsmall
|
|
@@ -3012,7 +3013,7 @@ var getChipTheme = function getChipTheme(theme) {
|
|
|
3012
3013
|
outlinedDefaultBorder: theme.borderWidths.base
|
|
3013
3014
|
};
|
|
3014
3015
|
var shadows = {
|
|
3015
|
-
filledWrapper: theme.shadows
|
|
3016
|
+
filledWrapper: theme.shadows["default"]
|
|
3016
3017
|
};
|
|
3017
3018
|
var fontSizes = {
|
|
3018
3019
|
icon: theme.fontSizes.small
|
|
@@ -3211,7 +3212,7 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
3211
3212
|
icon: theme.lineHeights.large
|
|
3212
3213
|
};
|
|
3213
3214
|
var shadows = {
|
|
3214
|
-
"default": theme.shadows
|
|
3215
|
+
"default": theme.shadows["default"]
|
|
3215
3216
|
};
|
|
3216
3217
|
var space = {
|
|
3217
3218
|
actionItemPadding: theme.space.smallMedium,
|
|
@@ -3301,7 +3302,7 @@ var getListTheme = function getListTheme(theme) {
|
|
|
3301
3302
|
leadingStatus: theme.radii.rounded
|
|
3302
3303
|
};
|
|
3303
3304
|
var shadows = {
|
|
3304
|
-
card: theme.shadows
|
|
3305
|
+
card: theme.shadows["default"]
|
|
3305
3306
|
};
|
|
3306
3307
|
var widths = {
|
|
3307
3308
|
leadingStatus: 8
|
|
@@ -3988,7 +3989,7 @@ var getToastTheme = function getToastTheme(theme) {
|
|
|
3988
3989
|
base: theme.borderWidths.base
|
|
3989
3990
|
};
|
|
3990
3991
|
var shadows = {
|
|
3991
|
-
wrapper: theme.shadows
|
|
3992
|
+
wrapper: theme.shadows["default"]
|
|
3992
3993
|
};
|
|
3993
3994
|
return {
|
|
3994
3995
|
colors: colors,
|
|
@@ -4242,7 +4243,7 @@ var getSearchTheme = function getSearchTheme(theme) {
|
|
|
4242
4243
|
shadow: theme.colors.primaryOutline
|
|
4243
4244
|
};
|
|
4244
4245
|
var shadows = {
|
|
4245
|
-
container: theme.shadows
|
|
4246
|
+
container: theme.shadows["default"]
|
|
4246
4247
|
};
|
|
4247
4248
|
var space = {
|
|
4248
4249
|
containerHorizontalPadding: theme.space.small,
|
|
@@ -4322,11 +4323,11 @@ var getMapPinTheme = function getMapPinTheme(theme) {
|
|
|
4322
4323
|
iconRight: -theme.space.small
|
|
4323
4324
|
};
|
|
4324
4325
|
var shadows = {
|
|
4325
|
-
offset: theme.shadows
|
|
4326
|
-
opacity: theme.shadows
|
|
4327
|
-
radius: theme.shadows
|
|
4328
|
-
elevation: theme.shadows
|
|
4329
|
-
color: theme.shadows
|
|
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
|
|
4330
4331
|
};
|
|
4331
4332
|
return {
|
|
4332
4333
|
sizes: sizes,
|
|
@@ -4347,7 +4348,7 @@ var getFloatingIslandTheme = function getFloatingIslandTheme(theme) {
|
|
|
4347
4348
|
wrapper: theme.radii.rounded
|
|
4348
4349
|
};
|
|
4349
4350
|
var shadows = {
|
|
4350
|
-
wrapper: theme.shadows
|
|
4351
|
+
wrapper: theme.shadows["default"]
|
|
4351
4352
|
};
|
|
4352
4353
|
var space = {
|
|
4353
4354
|
wrapperPadding: theme.space.small,
|
|
@@ -9803,7 +9804,7 @@ var Divider = function Divider(_ref) {
|
|
|
9803
9804
|
}));
|
|
9804
9805
|
};
|
|
9805
9806
|
|
|
9806
|
-
var AnimatedPressable$
|
|
9807
|
+
var AnimatedPressable$2 = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
|
|
9807
9808
|
var AnimatedSafeAreaView = reactNative.Animated.createAnimatedComponent(reactNative.SafeAreaView);
|
|
9808
9809
|
var StyledWrapper$a = index$a(reactNative.View)(_objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
9809
9810
|
flexDirection: 'column-reverse'
|
|
@@ -9840,7 +9841,7 @@ var StyledBottomSheet = index$a(AnimatedSafeAreaView)(function (_ref3) {
|
|
|
9840
9841
|
maxHeight: '94%'
|
|
9841
9842
|
};
|
|
9842
9843
|
});
|
|
9843
|
-
var StyledBackdrop$2 = index$a(AnimatedPressable$
|
|
9844
|
+
var StyledBackdrop$2 = index$a(AnimatedPressable$2)(function (_ref4) {
|
|
9844
9845
|
var theme = _ref4.theme;
|
|
9845
9846
|
return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
9846
9847
|
backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
|
|
@@ -15363,7 +15364,7 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
15363
15364
|
}));
|
|
15364
15365
|
};
|
|
15365
15366
|
|
|
15366
|
-
var AnimatedPressable = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
|
|
15367
|
+
var AnimatedPressable$1 = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
|
|
15367
15368
|
var StyledContainer$5 = index$a(reactNative.View)(function (_ref) {
|
|
15368
15369
|
var theme = _ref.theme,
|
|
15369
15370
|
enableShadow = _ref.enableShadow;
|
|
@@ -15391,7 +15392,7 @@ var StyledDragableContainer = index$a(reactNative.View)(function (_ref2) {
|
|
|
15391
15392
|
flexDirection: 'column-reverse'
|
|
15392
15393
|
});
|
|
15393
15394
|
});
|
|
15394
|
-
var StyledBackdrop$1 = index$a(AnimatedPressable)(function (_ref3) {
|
|
15395
|
+
var StyledBackdrop$1 = index$a(AnimatedPressable$1)(function (_ref3) {
|
|
15395
15396
|
var theme = _ref3.theme;
|
|
15396
15397
|
return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
15397
15398
|
backgroundColor: theme.__hd__.drawer.colors.backdrop
|
|
@@ -16086,7 +16087,8 @@ var StyledErrorImageContainer = index$a(reactNative.View)(function (_ref6) {
|
|
|
16086
16087
|
return {
|
|
16087
16088
|
marginBottom: theme.__hd__.error.space.imageMarginBottom,
|
|
16088
16089
|
width: theme.__hd__.error.sizes.image,
|
|
16089
|
-
height: theme.__hd__.error.sizes.image
|
|
16090
|
+
height: theme.__hd__.error.sizes.image,
|
|
16091
|
+
alignItems: 'center'
|
|
16090
16092
|
};
|
|
16091
16093
|
});
|
|
16092
16094
|
var StyledErrorImage = index$a(Image)(function (_ref7) {
|
|
@@ -16580,17 +16582,8 @@ var StyledFAB$1 = index$a(FAB$1)(function (_ref) {
|
|
|
16580
16582
|
alignSelf: 'flex-end'
|
|
16581
16583
|
};
|
|
16582
16584
|
});
|
|
16583
|
-
var
|
|
16584
|
-
|
|
16585
|
-
position: 'absolute',
|
|
16586
|
-
left: 0,
|
|
16587
|
-
right: 0,
|
|
16588
|
-
top: 0,
|
|
16589
|
-
bottom: 0,
|
|
16590
|
-
backgroundColor: 'transparent'
|
|
16591
|
-
};
|
|
16592
|
-
});
|
|
16593
|
-
var StyledBackdrop = index$a(Box)(function (_ref2) {
|
|
16585
|
+
var AnimatedPressable = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
|
|
16586
|
+
var StyledBackdrop = index$a(AnimatedPressable)(function (_ref2) {
|
|
16594
16587
|
var theme = _ref2.theme;
|
|
16595
16588
|
return {
|
|
16596
16589
|
position: 'absolute',
|
|
@@ -16676,10 +16669,10 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
16676
16669
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledContainerInModal, {
|
|
16677
16670
|
testID: testID,
|
|
16678
16671
|
style: [style]
|
|
16679
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
16672
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledBackdrop, {
|
|
16680
16673
|
testID: "back-drop",
|
|
16681
16674
|
onPress: onBackdropPress
|
|
16682
|
-
}
|
|
16675
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledActionGroupContainer, {
|
|
16683
16676
|
testID: "action-group",
|
|
16684
16677
|
pointerEvents: "box-none",
|
|
16685
16678
|
style: {
|
|
@@ -19321,7 +19314,8 @@ var StyledSuccessImageContainer = index$a(reactNative.View)(function (_ref4) {
|
|
|
19321
19314
|
return {
|
|
19322
19315
|
marginBottom: theme.__hd__.success.space.imageMarginBottom,
|
|
19323
19316
|
width: theme.__hd__.success.sizes.image,
|
|
19324
|
-
height: theme.__hd__.success.sizes.image
|
|
19317
|
+
height: theme.__hd__.success.sizes.image,
|
|
19318
|
+
alignItems: 'center'
|
|
19325
19319
|
};
|
|
19326
19320
|
});
|
|
19327
19321
|
var StyledSuccessTitle = index$a(Typography.Title)(function (_ref5) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "8.91.
|
|
3
|
+
"version": "8.91.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@emotion/native": "^11.9.3",
|
|
23
23
|
"@emotion/primitives-core": "11.0.0",
|
|
24
24
|
"@emotion/react": "^11.9.3",
|
|
25
|
-
"@hero-design/colors": "8.45.
|
|
25
|
+
"@hero-design/colors": "8.45.3",
|
|
26
26
|
"date-fns": "^2.16.1",
|
|
27
27
|
"hero-editor": "^1.15.5",
|
|
28
28
|
"nanoid": "^5.0.9"
|
|
@@ -55,6 +55,7 @@ const StyledErrorImageContainer = styled(View)(({ theme }) => ({
|
|
|
55
55
|
marginBottom: theme.__hd__.error.space.imageMarginBottom,
|
|
56
56
|
width: theme.__hd__.error.sizes.image,
|
|
57
57
|
height: theme.__hd__.error.sizes.image,
|
|
58
|
+
alignItems: 'center',
|
|
58
59
|
}));
|
|
59
60
|
const StyledErrorImage = styled(Image)(({ theme }) => ({
|
|
60
61
|
marginBottom: theme.__hd__.error.space.imageMarginBottom,
|
|
@@ -41,6 +41,7 @@ exports[`Error renders error screen with custom image element correctly 1`] = `
|
|
|
41
41
|
style={
|
|
42
42
|
[
|
|
43
43
|
{
|
|
44
|
+
"alignItems": "center",
|
|
44
45
|
"height": 176,
|
|
45
46
|
"marginBottom": 24,
|
|
46
47
|
"width": 176,
|
|
@@ -187,6 +188,7 @@ exports[`Error renders error screen with image correctly 1`] = `
|
|
|
187
188
|
style={
|
|
188
189
|
[
|
|
189
190
|
{
|
|
191
|
+
"alignItems": "center",
|
|
190
192
|
"height": 176,
|
|
191
193
|
"marginBottom": 24,
|
|
192
194
|
"width": 176,
|
|
@@ -373,6 +375,7 @@ exports[`Error renders full screen error page correctly 1`] = `
|
|
|
373
375
|
style={
|
|
374
376
|
[
|
|
375
377
|
{
|
|
378
|
+
"alignItems": "center",
|
|
376
379
|
"height": 176,
|
|
377
380
|
"marginBottom": 24,
|
|
378
381
|
"width": 176,
|