@hero-design/rn 7.17.0 → 7.17.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.
- package/.turbo/turbo-build.log +2 -2
- package/es/index.js +107 -99
- package/lib/index.js +107 -99
- package/package.json +2 -2
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +12 -12
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +18 -18
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +26 -26
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -3
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +1 -1
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -2
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +2 -2
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +1 -1
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +67 -67
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +12 -12
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +1 -1
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +1 -1
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +5 -5
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +12 -12
- package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +12 -12
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +28 -28
- package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +2 -2
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +3 -3
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +3 -3
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +20 -20
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +6 -6
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +12 -12
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +4 -4
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +22 -22
- package/src/components/Progress/ProgressCircle.tsx +25 -22
- package/src/components/Progress/StyledProgressCircle.tsx +33 -28
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +102 -92
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +5 -5
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +6 -6
- package/src/components/Radio/__tests__/__snapshots__/StyledRadio.spec.tsx.snap +3 -3
- package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +11 -11
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +6 -6
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +3 -3
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +42 -42
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +121 -121
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +2 -2
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +36 -36
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +94 -94
- package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +2 -2
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +4 -4
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +8 -8
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/Switch/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +6 -6
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +8 -8
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +50 -50
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +87 -87
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +5 -5
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +12 -12
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +22 -22
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +8 -8
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +13 -13
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +142 -143
- package/src/theme/components/alert.ts +3 -3
- package/src/theme/components/badge.ts +1 -1
- package/src/theme/components/card.ts +4 -4
- package/src/theme/components/list.ts +4 -4
- package/src/theme/components/pinInput.ts +2 -2
- package/src/theme/components/progress.ts +5 -5
- package/src/theme/components/toast.ts +3 -3
- package/src/theme/global/colors.ts +40 -39
- package/types/components/Progress/StyledProgressCircle.d.ts +12 -6
- package/types/theme/components/progress.d.ts +1 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
[32m@hero-design/rn:build[0m: cache hit, replaying output [
|
|
1
|
+
[32m@hero-design/rn:build[0m: cache hit, replaying output [2mb1fa1f4b1fd2532b[0m
|
|
2
2
|
[32m@hero-design/rn:build: [0m$ yarn build:js && yarn build:types
|
|
3
3
|
[32m@hero-design/rn:build: [0m$ rollup -c
|
|
4
4
|
[32m@hero-design/rn:build: [0m[36m
|
|
5
5
|
[32m@hero-design/rn:build: [0m[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
6
6
|
[32m@hero-design/rn:build: [0m[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
|
|
7
7
|
[32m@hero-design/rn:build: [0m[1m[33m(!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/root/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning[39m[22m
|
|
8
|
-
[32m@hero-design/rn:build: [0m[32mcreated [1mlib/index.js, es/index.js[22m in [
|
|
8
|
+
[32m@hero-design/rn:build: [0m[32mcreated [1mlib/index.js, es/index.js[22m in [1m22.6s[22m[39m
|
|
9
9
|
[32m@hero-design/rn:build: [0m$ tsc --noEmit false --emitDeclarationOnly
|
package/es/index.js
CHANGED
|
@@ -2360,7 +2360,7 @@ var blue$1 = colorScales.blue,
|
|
|
2360
2360
|
smalt = colorScales.smalt,
|
|
2361
2361
|
violet$1 = colorScales.violet,
|
|
2362
2362
|
yellow$1 = colorScales.yellow;
|
|
2363
|
-
|
|
2363
|
+
({
|
|
2364
2364
|
black: '#000000',
|
|
2365
2365
|
white: '#ffffff',
|
|
2366
2366
|
blue: blue$1.base,
|
|
@@ -2445,7 +2445,7 @@ var palette$6 = {
|
|
|
2445
2445
|
yellowDark75: yellow$1.darken75,
|
|
2446
2446
|
yellowLight60: yellow$1.lighten60,
|
|
2447
2447
|
yellowLight90: yellow$1.lighten90
|
|
2448
|
-
};
|
|
2448
|
+
});
|
|
2449
2449
|
var maasstrichtBlue = colorScales.maasstrichtBlue,
|
|
2450
2450
|
grey$1 = colorScales.grey,
|
|
2451
2451
|
pastelRed$1 = colorScales.pastelRed,
|
|
@@ -2535,7 +2535,7 @@ _objectSpread2(_objectSpread2({}, palette$5), {}, {
|
|
|
2535
2535
|
var scarletGum = colorScales.scarletGum,
|
|
2536
2536
|
violet1 = colorScales.violet1;
|
|
2537
2537
|
|
|
2538
|
-
_objectSpread2(_objectSpread2({}, palette$5), {}, {
|
|
2538
|
+
var palette$2 = _objectSpread2(_objectSpread2({}, palette$5), {}, {
|
|
2539
2539
|
scarletGumLight30: scarletGum.lighten30,
|
|
2540
2540
|
scarletGumLight50: scarletGum.lighten50,
|
|
2541
2541
|
scarletGumLight80: scarletGum.lighten80,
|
|
@@ -2573,46 +2573,47 @@ _objectSpread2(_objectSpread2({}, palette$5), {}, {
|
|
|
2573
2573
|
});
|
|
2574
2574
|
|
|
2575
2575
|
var systemPalette = {
|
|
2576
|
-
primary: palette$
|
|
2577
|
-
primaryLight: palette$
|
|
2578
|
-
primaryDark: palette$
|
|
2579
|
-
primaryBackground: palette$
|
|
2576
|
+
primary: palette$2.violet,
|
|
2577
|
+
primaryLight: palette$2.violetLight50,
|
|
2578
|
+
primaryDark: palette$2.scarletGumLight30,
|
|
2579
|
+
primaryBackground: palette$2.violetLight90,
|
|
2580
2580
|
primaryBackgroundDark: palette$5.maasstrichtBlueLight30,
|
|
2581
|
-
secondary: palette$
|
|
2582
|
-
secondaryLight: palette$
|
|
2583
|
-
secondaryBackground: palette$
|
|
2584
|
-
info: palette$
|
|
2581
|
+
secondary: palette$2.ultramarineBlue,
|
|
2582
|
+
secondaryLight: palette$2.vodka,
|
|
2583
|
+
secondaryBackground: palette$2.aliceBlue,
|
|
2584
|
+
info: palette$5.ultramarineBlue,
|
|
2585
2585
|
infoMediumLight: palette$5.vodka,
|
|
2586
|
-
infoLight: palette$
|
|
2587
|
-
infoBackground: palette$
|
|
2588
|
-
success: palette$
|
|
2586
|
+
infoLight: palette$5.vodka,
|
|
2587
|
+
infoBackground: palette$5.aliceBlue,
|
|
2588
|
+
success: palette$5.emerald,
|
|
2589
2589
|
successLight: palette$5.emerald,
|
|
2590
|
-
successDark: palette$
|
|
2591
|
-
successBackground: palette$
|
|
2592
|
-
danger: palette$
|
|
2590
|
+
successDark: palette$5.pineGreen,
|
|
2591
|
+
successBackground: palette$5.honeydew,
|
|
2592
|
+
danger: palette$5.vermilion,
|
|
2593
2593
|
dangerMediumLight: palette$5.apple,
|
|
2594
|
-
dangerLight: palette$
|
|
2595
|
-
dangerBackground: palette$
|
|
2596
|
-
warning: palette$
|
|
2594
|
+
dangerLight: palette$5.pastelRed,
|
|
2595
|
+
dangerBackground: palette$5.linen,
|
|
2596
|
+
warning: palette$5.mellowApricot,
|
|
2597
2597
|
warningLight: palette$5.mellowApricot,
|
|
2598
|
-
warningDark: palette$
|
|
2599
|
-
warningBackground: palette$
|
|
2600
|
-
platformBackground: palette$
|
|
2601
|
-
backgroundLight: palette$
|
|
2602
|
-
backgroundDark: palette$
|
|
2603
|
-
text: palette$
|
|
2604
|
-
subduedText: palette$
|
|
2605
|
-
disabledText: palette$
|
|
2606
|
-
disabledLightText: palette$
|
|
2607
|
-
invertedText: palette$
|
|
2608
|
-
outline: palette$
|
|
2609
|
-
archived: palette$
|
|
2598
|
+
warningDark: palette$5.deepSaffron,
|
|
2599
|
+
warningBackground: palette$5.seashell,
|
|
2600
|
+
platformBackground: palette$5.white,
|
|
2601
|
+
backgroundLight: palette$5.greyLight90,
|
|
2602
|
+
backgroundDark: palette$5.maasstrichtBlue,
|
|
2603
|
+
text: palette$5.maasstrichtBlue,
|
|
2604
|
+
subduedText: palette$5.maasstrichtBlueLight30,
|
|
2605
|
+
disabledText: palette$5.maasstrichtBlueLight50,
|
|
2606
|
+
disabledLightText: palette$5.greyLight30,
|
|
2607
|
+
invertedText: palette$5.white,
|
|
2608
|
+
outline: palette$5.greyLight75,
|
|
2609
|
+
archived: palette$5.greyLight45,
|
|
2610
2610
|
archivedLight: palette$5.greyLight30,
|
|
2611
2611
|
archivedDark: palette$5.sonicSilver,
|
|
2612
2612
|
archivedBackground: palette$5.antiFlashWhite,
|
|
2613
|
-
black: palette$
|
|
2614
|
-
inactiveBackground: palette$
|
|
2615
|
-
shadow: palette$
|
|
2613
|
+
black: palette$5.black,
|
|
2614
|
+
inactiveBackground: palette$5.maasstrichtBlueLight50,
|
|
2615
|
+
shadow: palette$5.greyLight45 // waiting for new color
|
|
2616
|
+
|
|
2616
2617
|
};
|
|
2617
2618
|
|
|
2618
2619
|
var BASE_WIDTH = 390; // Based on iPhone 13's viewport size
|
|
@@ -2758,9 +2759,9 @@ var getAlertTheme = function getAlertTheme(theme) {
|
|
|
2758
2759
|
var colors = {
|
|
2759
2760
|
success: theme.colors.success,
|
|
2760
2761
|
warning: theme.colors.warning,
|
|
2761
|
-
error: theme.colors.
|
|
2762
|
-
info: theme.colors.
|
|
2763
|
-
divider: theme.colors.
|
|
2762
|
+
error: theme.colors.dangerLight,
|
|
2763
|
+
info: theme.colors.infoLight,
|
|
2764
|
+
divider: theme.colors.outline
|
|
2764
2765
|
};
|
|
2765
2766
|
var sizes = {
|
|
2766
2767
|
height: scale(48)
|
|
@@ -2830,7 +2831,7 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
2830
2831
|
info: theme.colors.info,
|
|
2831
2832
|
success: theme.colors.successDark,
|
|
2832
2833
|
warning: theme.colors.warningDark,
|
|
2833
|
-
archived: theme.colors.
|
|
2834
|
+
archived: theme.colors.archivedDark,
|
|
2834
2835
|
text: theme.colors.invertedText
|
|
2835
2836
|
};
|
|
2836
2837
|
var fonts = {
|
|
@@ -3024,12 +3025,12 @@ var getCalendarTheme = function getCalendarTheme(theme) {
|
|
|
3024
3025
|
|
|
3025
3026
|
var getCardTheme = function getCardTheme(theme) {
|
|
3026
3027
|
var colors = {
|
|
3027
|
-
dataCardIndicator: theme.colors.
|
|
3028
|
+
dataCardIndicator: theme.colors.primary,
|
|
3028
3029
|
indicator: {
|
|
3029
3030
|
archived: theme.colors.archivedLight,
|
|
3030
|
-
info: theme.colors.
|
|
3031
|
-
success: theme.colors.
|
|
3032
|
-
warning: theme.colors.
|
|
3031
|
+
info: theme.colors.infoLight,
|
|
3032
|
+
success: theme.colors.success,
|
|
3033
|
+
warning: theme.colors.warning,
|
|
3033
3034
|
danger: theme.colors.dangerMediumLight
|
|
3034
3035
|
}
|
|
3035
3036
|
};
|
|
@@ -3264,11 +3265,11 @@ var getListTheme = function getListTheme(theme) {
|
|
|
3264
3265
|
highlightedListItemContainerBackground: theme.colors.primaryBackground,
|
|
3265
3266
|
listItemContainerBackground: theme.colors.platformBackground,
|
|
3266
3267
|
leadingStatus: {
|
|
3267
|
-
danger: theme.colors.
|
|
3268
|
+
danger: theme.colors.dangerMediumLight,
|
|
3268
3269
|
info: theme.colors.infoLight,
|
|
3269
|
-
success: theme.colors.
|
|
3270
|
-
warning: theme.colors.
|
|
3271
|
-
archived: theme.colors.
|
|
3270
|
+
success: theme.colors.success,
|
|
3271
|
+
warning: theme.colors.warning,
|
|
3272
|
+
archived: theme.colors.archivedLight
|
|
3272
3273
|
}
|
|
3273
3274
|
};
|
|
3274
3275
|
var space = {
|
|
@@ -3353,16 +3354,15 @@ var getProgressTheme = function getProgressTheme(theme) {
|
|
|
3353
3354
|
var colors = {
|
|
3354
3355
|
primary: theme.colors.primary,
|
|
3355
3356
|
success: theme.colors.success,
|
|
3356
|
-
warning: theme.colors.
|
|
3357
|
+
warning: theme.colors.warningDark,
|
|
3357
3358
|
danger: theme.colors.danger,
|
|
3358
3359
|
info: theme.colors.info,
|
|
3359
3360
|
background: theme.colors.outline,
|
|
3360
3361
|
innerBackground: theme.colors.platformBackground
|
|
3361
3362
|
};
|
|
3362
3363
|
var sizes = {
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
barHeight: theme.space.xsmall
|
|
3364
|
+
circleWidth: scale(76),
|
|
3365
|
+
barHeight: scale(4)
|
|
3366
3366
|
};
|
|
3367
3367
|
var radii = {
|
|
3368
3368
|
"default": theme.radii.rounded
|
|
@@ -3713,9 +3713,9 @@ var getToastTheme = function getToastTheme(theme) {
|
|
|
3713
3713
|
var colors = {
|
|
3714
3714
|
success: theme.colors.success,
|
|
3715
3715
|
warning: theme.colors.warning,
|
|
3716
|
-
error: theme.colors.
|
|
3717
|
-
info: theme.colors.
|
|
3718
|
-
divider: theme.colors.
|
|
3716
|
+
error: theme.colors.dangerLight,
|
|
3717
|
+
info: theme.colors.infoLight,
|
|
3718
|
+
divider: theme.colors.outline
|
|
3719
3719
|
};
|
|
3720
3720
|
var sizes = {
|
|
3721
3721
|
height: scale(48)
|
|
@@ -18330,7 +18330,7 @@ function ContentNavigator(_ref) {
|
|
|
18330
18330
|
}));
|
|
18331
18331
|
}
|
|
18332
18332
|
|
|
18333
|
-
var StyledContainer$
|
|
18333
|
+
var StyledContainer$4 = index$6(View)(function (_ref) {
|
|
18334
18334
|
var theme = _ref.theme;
|
|
18335
18335
|
return {
|
|
18336
18336
|
backgroundColor: theme.__hd__.calendar.colors.background
|
|
@@ -18519,7 +18519,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
18519
18519
|
var disableNextButton = maxDate === undefined ? false : !daysOfNextMonth.some(function (date) {
|
|
18520
18520
|
return date !== undefined;
|
|
18521
18521
|
}) || maxDate <= lastDateOfMonth;
|
|
18522
|
-
return /*#__PURE__*/React.createElement(StyledContainer$
|
|
18522
|
+
return /*#__PURE__*/React.createElement(StyledContainer$4, null, /*#__PURE__*/React.createElement(StyledCalendarHeader, null, /*#__PURE__*/React.createElement(ContentNavigator, {
|
|
18523
18523
|
value: formatTime('MMMM yyyy', visibleDate),
|
|
18524
18524
|
onPreviousPress: onPreviousPress,
|
|
18525
18525
|
onNextPress: onNextPress,
|
|
@@ -18694,7 +18694,7 @@ var CheckBox = function CheckBox(_ref) {
|
|
|
18694
18694
|
}));
|
|
18695
18695
|
};
|
|
18696
18696
|
|
|
18697
|
-
var StyledContainer$
|
|
18697
|
+
var StyledContainer$3 = index$6(View)(function (_ref) {
|
|
18698
18698
|
var theme = _ref.theme;
|
|
18699
18699
|
return {
|
|
18700
18700
|
width: '100%',
|
|
@@ -18916,7 +18916,7 @@ var TextInput = function TextInput(_ref2) {
|
|
|
18916
18916
|
});
|
|
18917
18917
|
var shouldShowMaxLength = maxLength !== undefined;
|
|
18918
18918
|
var theme = useTheme();
|
|
18919
|
-
return /*#__PURE__*/React.createElement(StyledContainer$
|
|
18919
|
+
return /*#__PURE__*/React.createElement(StyledContainer$3, {
|
|
18920
18920
|
style: style,
|
|
18921
18921
|
pointerEvents: variant === 'disabled' || variant === 'readonly' ? 'none' : 'auto',
|
|
18922
18922
|
testID: testID
|
|
@@ -19154,7 +19154,7 @@ var DatePicker = function DatePicker(props) {
|
|
|
19154
19154
|
};
|
|
19155
19155
|
|
|
19156
19156
|
var AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
19157
|
-
var StyledContainer$
|
|
19157
|
+
var StyledContainer$2 = index$6(View)(function (_ref) {
|
|
19158
19158
|
var theme = _ref.theme,
|
|
19159
19159
|
enableShadow = _ref.enableShadow;
|
|
19160
19160
|
return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
@@ -19219,7 +19219,7 @@ var Drawer = function Drawer(_ref) {
|
|
|
19219
19219
|
return animation.stop();
|
|
19220
19220
|
};
|
|
19221
19221
|
}, [visible]);
|
|
19222
|
-
return /*#__PURE__*/React.createElement(StyledContainer$
|
|
19222
|
+
return /*#__PURE__*/React.createElement(StyledContainer$2, {
|
|
19223
19223
|
testID: testID,
|
|
19224
19224
|
enableShadow: enableShadow,
|
|
19225
19225
|
pointerEvents: "box-none"
|
|
@@ -19470,7 +19470,7 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
19470
19470
|
}), /*#__PURE__*/React.createElement(StyledActionItemText, null, title));
|
|
19471
19471
|
};
|
|
19472
19472
|
|
|
19473
|
-
var StyledContainer = index$6(View)({
|
|
19473
|
+
var StyledContainer$1 = index$6(View)({
|
|
19474
19474
|
position: 'absolute',
|
|
19475
19475
|
left: 0,
|
|
19476
19476
|
right: 0,
|
|
@@ -19558,7 +19558,7 @@ var ActionGroup = function ActionGroup(_ref2) {
|
|
|
19558
19558
|
inputRange: [0, 1],
|
|
19559
19559
|
outputRange: [0, 1]
|
|
19560
19560
|
});
|
|
19561
|
-
return /*#__PURE__*/React.createElement(StyledContainer, {
|
|
19561
|
+
return /*#__PURE__*/React.createElement(StyledContainer$1, {
|
|
19562
19562
|
testID: testID,
|
|
19563
19563
|
pointerEvents: "box-none",
|
|
19564
19564
|
style: style
|
|
@@ -20008,41 +20008,52 @@ function PinInput(_ref2) {
|
|
|
20008
20008
|
}));
|
|
20009
20009
|
}
|
|
20010
20010
|
|
|
20011
|
-
var
|
|
20011
|
+
var INNER_CIRCLE_PERCENTAGE = 0.85; // 85% width according to design
|
|
20012
|
+
|
|
20013
|
+
var STROKE_WIDTH_PERCENTAGE = 0.075; // 7.5% width according to design
|
|
20014
|
+
|
|
20015
|
+
var StyledContainer = index$6(View)(function (_ref) {
|
|
20012
20016
|
var theme = _ref.theme;
|
|
20013
20017
|
return {
|
|
20014
|
-
|
|
20015
|
-
|
|
20018
|
+
flexDirection: 'row',
|
|
20019
|
+
borderRadius: theme.__hd__.progress.radii["default"]
|
|
20020
|
+
};
|
|
20021
|
+
});
|
|
20022
|
+
var StyledHalfCircleWrapper = index$6(View)(function (_ref2) {
|
|
20023
|
+
var theme = _ref2.theme;
|
|
20024
|
+
return {
|
|
20025
|
+
width: theme.__hd__.progress.sizes.circleWidth / 2,
|
|
20026
|
+
height: theme.__hd__.progress.sizes.circleWidth,
|
|
20016
20027
|
overflow: 'hidden'
|
|
20017
20028
|
};
|
|
20018
20029
|
});
|
|
20019
|
-
var
|
|
20020
|
-
var theme =
|
|
20021
|
-
themeIntent =
|
|
20030
|
+
var StyledHalfCircleInnerFG = index$6(View)(function (_ref3) {
|
|
20031
|
+
var theme = _ref3.theme,
|
|
20032
|
+
themeIntent = _ref3.themeIntent;
|
|
20022
20033
|
return {
|
|
20023
|
-
width: theme.__hd__.progress.sizes.
|
|
20024
|
-
height: theme.__hd__.progress.sizes.
|
|
20034
|
+
width: theme.__hd__.progress.sizes.circleWidth,
|
|
20035
|
+
height: theme.__hd__.progress.sizes.circleWidth,
|
|
20025
20036
|
backgroundColor: theme.__hd__.progress.colors[themeIntent],
|
|
20026
20037
|
borderRadius: theme.__hd__.progress.radii["default"]
|
|
20027
20038
|
};
|
|
20028
20039
|
});
|
|
20029
|
-
var
|
|
20030
|
-
var theme =
|
|
20040
|
+
var StyledHalfCircleInnerBG = index$6(View)(function (_ref4) {
|
|
20041
|
+
var theme = _ref4.theme;
|
|
20031
20042
|
return {
|
|
20032
|
-
width: theme.__hd__.progress.sizes.
|
|
20033
|
-
height: theme.__hd__.progress.sizes.
|
|
20043
|
+
width: theme.__hd__.progress.sizes.circleWidth,
|
|
20044
|
+
height: theme.__hd__.progress.sizes.circleWidth,
|
|
20034
20045
|
backgroundColor: theme.__hd__.progress.colors.background,
|
|
20035
20046
|
borderRadius: theme.__hd__.progress.radii["default"]
|
|
20036
20047
|
};
|
|
20037
20048
|
});
|
|
20038
|
-
var
|
|
20039
|
-
var theme =
|
|
20049
|
+
var StyledDonutCircle = index$6(View)(function (_ref5) {
|
|
20050
|
+
var theme = _ref5.theme;
|
|
20040
20051
|
return {
|
|
20041
20052
|
position: 'absolute',
|
|
20042
|
-
top: theme.__hd__.progress.sizes.
|
|
20043
|
-
left: theme.__hd__.progress.sizes.
|
|
20044
|
-
width: theme.__hd__.progress.sizes.
|
|
20045
|
-
height: theme.__hd__.progress.sizes.
|
|
20053
|
+
top: theme.__hd__.progress.sizes.circleWidth * STROKE_WIDTH_PERCENTAGE,
|
|
20054
|
+
left: theme.__hd__.progress.sizes.circleWidth * STROKE_WIDTH_PERCENTAGE,
|
|
20055
|
+
width: theme.__hd__.progress.sizes.circleWidth * INNER_CIRCLE_PERCENTAGE,
|
|
20056
|
+
height: theme.__hd__.progress.sizes.circleWidth * INNER_CIRCLE_PERCENTAGE,
|
|
20046
20057
|
zIndex: 3,
|
|
20047
20058
|
backgroundColor: theme.__hd__.progress.colors.innerBackground,
|
|
20048
20059
|
borderRadius: theme.__hd__.progress.radii["default"],
|
|
@@ -20050,15 +20061,15 @@ var DonutCircle = index$6(View)(function (_ref4) {
|
|
|
20050
20061
|
justifyContent: 'center'
|
|
20051
20062
|
};
|
|
20052
20063
|
});
|
|
20053
|
-
var
|
|
20054
|
-
var theme =
|
|
20055
|
-
themeIntent =
|
|
20064
|
+
var StyledStrokeEnd = index$6(View)(function (_ref6) {
|
|
20065
|
+
var theme = _ref6.theme,
|
|
20066
|
+
themeIntent = _ref6.themeIntent;
|
|
20056
20067
|
return {
|
|
20057
20068
|
position: 'absolute',
|
|
20058
20069
|
top: 0,
|
|
20059
|
-
left: theme.__hd__.progress.sizes.
|
|
20060
|
-
width: theme.__hd__.progress.sizes.
|
|
20061
|
-
height: theme.__hd__.progress.sizes.
|
|
20070
|
+
left: theme.__hd__.progress.sizes.circleWidth / 2 - theme.__hd__.progress.sizes.circleWidth * STROKE_WIDTH_PERCENTAGE / 2,
|
|
20071
|
+
width: theme.__hd__.progress.sizes.circleWidth * STROKE_WIDTH_PERCENTAGE,
|
|
20072
|
+
height: theme.__hd__.progress.sizes.circleWidth * STROKE_WIDTH_PERCENTAGE,
|
|
20062
20073
|
borderRadius: theme.__hd__.progress.radii["default"],
|
|
20063
20074
|
backgroundColor: theme.__hd__.progress.colors[themeIntent],
|
|
20064
20075
|
zIndex: 2
|
|
@@ -20071,7 +20082,7 @@ var HalfCircle = function HalfCircle(_ref) {
|
|
|
20071
20082
|
var type = _ref.type,
|
|
20072
20083
|
_ref$themeIntent = _ref.themeIntent,
|
|
20073
20084
|
themeIntent = _ref$themeIntent === void 0 ? 'primary' : _ref$themeIntent;
|
|
20074
|
-
return /*#__PURE__*/React.createElement(
|
|
20085
|
+
return /*#__PURE__*/React.createElement(StyledHalfCircleWrapper, null, type === 'background' ? /*#__PURE__*/React.createElement(StyledHalfCircleInnerBG, null) : /*#__PURE__*/React.createElement(StyledHalfCircleInnerFG, {
|
|
20075
20086
|
themeIntent: themeIntent
|
|
20076
20087
|
}));
|
|
20077
20088
|
};
|
|
@@ -20085,7 +20096,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
20085
20096
|
nativeProps = _objectWithoutProperties(_ref2, _excluded$3);
|
|
20086
20097
|
|
|
20087
20098
|
var theme = useTheme$1();
|
|
20088
|
-
var radius = theme.__hd__.progress.sizes.
|
|
20099
|
+
var radius = theme.__hd__.progress.sizes.circleWidth / 2;
|
|
20089
20100
|
var progressAnimatedValue = useRef(new Animated.Value(0));
|
|
20090
20101
|
useEffect(function () {
|
|
20091
20102
|
var animation = Animated.timing(progressAnimatedValue.current, {
|
|
@@ -20123,11 +20134,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
20123
20134
|
return /*#__PURE__*/React.createElement(View, _extends$1({}, nativeProps, {
|
|
20124
20135
|
testID: testID,
|
|
20125
20136
|
style: style
|
|
20126
|
-
}), /*#__PURE__*/React.createElement(View, {
|
|
20127
|
-
style: {
|
|
20128
|
-
flexDirection: 'row'
|
|
20129
|
-
}
|
|
20130
|
-
}, /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(HalfCircle, {
|
|
20137
|
+
}), /*#__PURE__*/React.createElement(StyledContainer, null, /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(HalfCircle, {
|
|
20131
20138
|
type: "foreground",
|
|
20132
20139
|
themeIntent: intent
|
|
20133
20140
|
}), /*#__PURE__*/React.createElement(Animated.View, {
|
|
@@ -20147,7 +20154,8 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
20147
20154
|
transform: [{
|
|
20148
20155
|
rotate: '180deg'
|
|
20149
20156
|
}],
|
|
20150
|
-
zIndex: 1
|
|
20157
|
+
zIndex: 1,
|
|
20158
|
+
marginLeft: -0.1
|
|
20151
20159
|
}
|
|
20152
20160
|
}, /*#__PURE__*/React.createElement(HalfCircle, {
|
|
20153
20161
|
type: "foreground",
|
|
@@ -20165,7 +20173,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
20165
20173
|
})
|
|
20166
20174
|
}, /*#__PURE__*/React.createElement(HalfCircle, {
|
|
20167
20175
|
type: "background"
|
|
20168
|
-
}))), /*#__PURE__*/React.createElement(
|
|
20176
|
+
}))), /*#__PURE__*/React.createElement(StyledStrokeEnd, {
|
|
20169
20177
|
themeIntent: intent
|
|
20170
20178
|
}), /*#__PURE__*/React.createElement(Animated.View, {
|
|
20171
20179
|
style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
@@ -20174,10 +20182,10 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
20174
20182
|
rotate: interpolateDotRotate
|
|
20175
20183
|
}]
|
|
20176
20184
|
})
|
|
20177
|
-
}, /*#__PURE__*/React.createElement(
|
|
20185
|
+
}, /*#__PURE__*/React.createElement(StyledStrokeEnd, {
|
|
20178
20186
|
themeIntent: intent
|
|
20179
|
-
})), /*#__PURE__*/React.createElement(
|
|
20180
|
-
fontSize: "
|
|
20187
|
+
})), /*#__PURE__*/React.createElement(StyledDonutCircle, null, /*#__PURE__*/React.createElement(Typography.Text, {
|
|
20188
|
+
fontSize: "large"
|
|
20181
20189
|
}, "".concat(value, "%")))));
|
|
20182
20190
|
};
|
|
20183
20191
|
|
|
@@ -40355,7 +40363,7 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
40355
40363
|
break;
|
|
40356
40364
|
}
|
|
40357
40365
|
}, []);
|
|
40358
|
-
return /*#__PURE__*/React.createElement(StyledContainer$
|
|
40366
|
+
return /*#__PURE__*/React.createElement(StyledContainer$3, {
|
|
40359
40367
|
style: style,
|
|
40360
40368
|
testID: testID
|
|
40361
40369
|
}, /*#__PURE__*/React.createElement(StyledTextInputContainer, null, /*#__PURE__*/React.createElement(StyledBorderBackDrop, {
|