@hero-design/rn 7.22.1 → 7.22.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.
- package/.turbo/turbo-build.log +2 -2
- package/es/index.js +309 -284
- package/lib/index.js +309 -284
- package/package.json +4 -4
- package/src/components/Accordion/AccordionItem.tsx +1 -1
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +8 -8
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- 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/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- 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/__tests__/__snapshots__/StyledButton.spec.tsx.snap +24 -24
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +6 -6
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +3 -3
- package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +2 -2
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +5 -5
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +4 -18
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +5 -19
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
- package/src/components/Icon/HeroIcon/index.tsx +2 -0
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Icon/index.tsx +1 -0
- package/src/components/List/StyledBasicListItem.tsx +1 -0
- package/src/components/List/__tests__/BasicListItem.spec.tsx +37 -13
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +163 -2
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +12 -12
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +6 -2
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +4 -4
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +6 -6
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +21 -21
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +5 -5
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +3 -1
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +4 -1
- package/src/components/RichTextEditor/RichTextEditor.tsx +1 -3
- package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +1 -1
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +10 -38
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +2 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +25 -9
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +66 -108
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +2 -1
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +24 -8
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +57 -99
- package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +1 -1
- package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Spinner/StyledSpinner.tsx +8 -4
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +8 -4
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +32 -16
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +8 -4
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +3 -3
- package/src/components/Tabs/ScrollableTabs.tsx +2 -5
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +1 -1
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +1 -1
- package/src/components/TextInput/StyledTextInput.tsx +11 -16
- package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +3 -3
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +28 -46
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +67 -249
- package/src/components/TextInput/index.tsx +27 -27
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +4 -18
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +5 -19
- package/src/components/Toast/ToastProvider.tsx +2 -4
- package/src/components/Toast/__tests__/index.spec.tsx +138 -0
- package/src/components/Toolbar/ToolbarItem.tsx +1 -1
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +6 -6
- package/src/components/Typography/Text/StyledText.tsx +1 -0
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +3 -3
- package/src/components/Typography/Text/index.tsx +1 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +93 -84
- package/src/theme/components/accordion.ts +1 -1
- package/src/theme/components/alert.ts +4 -4
- package/src/theme/components/avatar.ts +2 -2
- package/src/theme/components/badge.ts +6 -6
- package/src/theme/components/bottomNavigation.ts +2 -2
- package/src/theme/components/bottomSheet.ts +3 -3
- package/src/theme/components/button.ts +20 -20
- package/src/theme/components/calendar.ts +4 -4
- package/src/theme/components/card.ts +5 -5
- package/src/theme/components/checkbox.ts +1 -1
- package/src/theme/components/divider.ts +1 -1
- package/src/theme/components/drawer.ts +4 -4
- package/src/theme/components/empty.ts +3 -4
- package/src/theme/components/fab.ts +7 -7
- package/src/theme/components/icon.ts +4 -3
- package/src/theme/components/list.ts +8 -6
- package/src/theme/components/pinInput.ts +4 -4
- package/src/theme/components/progress.ts +3 -3
- package/src/theme/components/richTextEditor.ts +3 -3
- package/src/theme/components/sectionHeading.ts +1 -1
- package/src/theme/components/select.ts +1 -1
- package/src/theme/components/slider.ts +3 -3
- package/src/theme/components/spinner.ts +1 -4
- package/src/theme/components/switch.ts +7 -7
- package/src/theme/components/tabs.ts +5 -5
- package/src/theme/components/tag.ts +12 -12
- package/src/theme/components/textInput.ts +38 -38
- package/src/theme/components/toast.ts +6 -6
- package/src/theme/components/toolbar.ts +3 -2
- package/src/theme/components/typography.ts +4 -3
- package/src/theme/global/colors/global.ts +32 -0
- package/src/theme/global/colors/legacySystemPalette.ts +53 -0
- package/src/theme/global/colors/swag.ts +21 -34
- package/src/theme/global/colors/types.ts +46 -26
- package/src/theme/global/colors/work.ts +10 -9
- package/types/components/Icon/HeroIcon/index.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/TextInput/StyledTextInput.d.ts +3 -9
- package/types/components/TextInput/index.d.ts +4 -4
- package/types/components/Toast/__tests__/index.spec.d.ts +1 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +1 -1
- package/types/components/Typography/Text/StyledText.d.ts +1 -1
- package/types/components/Typography/Text/index.d.ts +1 -1
- package/types/theme/components/empty.d.ts +0 -1
- package/types/theme/components/icon.d.ts +1 -0
- package/types/theme/components/list.d.ts +1 -0
- package/types/theme/components/spinner.d.ts +1 -4
- package/types/theme/components/toolbar.d.ts +1 -0
- package/types/theme/components/typography.d.ts +1 -0
- package/types/theme/global/colors/global.d.ts +3 -0
- package/types/theme/global/colors/legacySystemPalette.d.ts +3 -0
- package/types/theme/global/colors/types.d.ts +41 -20
- package/types/theme/global/index.d.ts +28 -19
package/es/index.js
CHANGED
|
@@ -1257,89 +1257,115 @@ Object.assign(Object.assign({}, palette$5), {
|
|
|
1257
1257
|
cornflowerBlue: cornflowerBlue.base,
|
|
1258
1258
|
paua: paua.base
|
|
1259
1259
|
});
|
|
1260
|
-
var gold$1 = colorScales.gold
|
|
1260
|
+
var gold$1 = colorScales.gold,
|
|
1261
|
+
violet$2 = colorScales.violet;
|
|
1261
1262
|
var palette = Object.assign(Object.assign({}, palette$5), {
|
|
1262
1263
|
goldLight20: gold$1.lighten20,
|
|
1263
1264
|
goldLight50: gold$1.lighten50,
|
|
1264
1265
|
goldLight70: gold$1.lighten70,
|
|
1265
1266
|
goldLight90: gold$1.lighten90,
|
|
1266
|
-
gold: gold$1.base
|
|
1267
|
+
gold: gold$1.base,
|
|
1268
|
+
violet: violet$2.base,
|
|
1269
|
+
violetLight50: violet$2.lighten50,
|
|
1270
|
+
violetLight80: violet$2.lighten80,
|
|
1271
|
+
violetLight90: violet$2.lighten90
|
|
1267
1272
|
});
|
|
1268
1273
|
|
|
1269
|
-
var
|
|
1274
|
+
var globalPalette = {
|
|
1270
1275
|
globalPrimary: palette$5.maasstrichtBlue,
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1276
|
+
mutedGlobalPrimary: palette$5.maasstrichtBlueLight30,
|
|
1277
|
+
onGlobalPrimary: palette$5.white,
|
|
1278
|
+
globalSecondary: palette$5.maasstrichtBlueLight30,
|
|
1279
|
+
globalPrimaryOutline: palette$5.maasstrichtBlue,
|
|
1280
|
+
globalSecondaryOutline: palette$5.greyLight75,
|
|
1281
|
+
defaultGlobalSurface: palette$5.white,
|
|
1282
|
+
onDefaultGlobalSurface: palette$5.maasstrichtBlue,
|
|
1283
|
+
neutralGlobalSurface: palette$5.greyLight90,
|
|
1284
|
+
disabledOnDefaultGlobalSurface: palette$5.greyLight30,
|
|
1285
|
+
error: palette$5.pastelRed,
|
|
1286
|
+
errorSurface: palette$5.linen,
|
|
1287
|
+
onErrorSurface: palette$5.vermilion,
|
|
1288
|
+
warning: palette$5.mellowApricot,
|
|
1289
|
+
warningSurface: palette$5.seashell,
|
|
1290
|
+
onWarningSurface: palette$5.deepSaffron,
|
|
1291
|
+
success: palette$5.emerald,
|
|
1292
|
+
successSurface: palette$5.honeydew,
|
|
1293
|
+
onSuccessSurface: palette$5.pineGreen,
|
|
1294
|
+
info: palette$5.vodka,
|
|
1295
|
+
infoSurface: palette$5.aliceBlue,
|
|
1296
|
+
onInfoSurface: palette$5.ultramarineBlue,
|
|
1297
|
+
archived: palette$5.greyLight45,
|
|
1298
|
+
archivedSurface: palette$5.antiFlashWhite,
|
|
1299
|
+
onArchivedSurface: palette$5.sonicSilver
|
|
1300
|
+
};
|
|
1301
|
+
|
|
1302
|
+
var swagSystemPalette = _objectSpread2(_objectSpread2({
|
|
1303
|
+
// Legacy
|
|
1304
|
+
globalPrimary: palette$2.maasstrichtBlue,
|
|
1305
|
+
globalPrimaryLight: palette$2.maasstrichtBlueLight50,
|
|
1306
|
+
globalPrimaryBackground: palette$2.maasstrichtBlueLight90,
|
|
1274
1307
|
primaryLight: palette$2.violetLight50,
|
|
1275
1308
|
primaryDark: palette$2.scarletGumLight30,
|
|
1276
1309
|
primaryBackground: palette$2.violetLight90,
|
|
1277
|
-
primaryBackgroundDark: palette$
|
|
1278
|
-
secondary: palette$2.ultramarineBlue,
|
|
1310
|
+
primaryBackgroundDark: palette$2.maasstrichtBlueLight30,
|
|
1279
1311
|
secondaryLight: palette$2.vodka,
|
|
1280
1312
|
secondaryBackground: palette$2.aliceBlue,
|
|
1281
|
-
info: palette$
|
|
1282
|
-
infoMediumLight: palette$
|
|
1283
|
-
infoLight: palette$
|
|
1284
|
-
infoBackground: palette$
|
|
1285
|
-
success: palette$
|
|
1286
|
-
successLight: palette$
|
|
1287
|
-
successDark: palette$
|
|
1288
|
-
successBackground: palette$
|
|
1289
|
-
danger: palette$
|
|
1290
|
-
dangerMediumLight: palette$
|
|
1291
|
-
dangerLight: palette$
|
|
1292
|
-
dangerBackground: palette$
|
|
1293
|
-
warning: palette$
|
|
1294
|
-
warningLight: palette$
|
|
1295
|
-
warningDark: palette$
|
|
1296
|
-
warningBackground: palette$
|
|
1297
|
-
platformBackground: palette$
|
|
1298
|
-
backgroundLight: palette$
|
|
1299
|
-
backgroundDark: palette$
|
|
1300
|
-
text: palette$
|
|
1301
|
-
subduedText: palette$
|
|
1302
|
-
disabledText: palette$
|
|
1303
|
-
disabledLightText: palette$
|
|
1304
|
-
invertedText: palette$
|
|
1305
|
-
outline: palette$
|
|
1306
|
-
archived: palette$
|
|
1307
|
-
archivedLight: palette$
|
|
1308
|
-
archivedDark: palette$
|
|
1309
|
-
archivedBackground: palette$
|
|
1310
|
-
black: palette$
|
|
1311
|
-
inactiveBackground: palette$
|
|
1312
|
-
shadow: palette$
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
__alpha__primary1: palette$2.scarletGum,
|
|
1327
|
-
__alpha__primary2: palette$2.mauve,
|
|
1328
|
-
__alpha__secondary1: palette$2.scarletGumLight30,
|
|
1329
|
-
__alpha__secondary2: palette$2.scarletGumLight50,
|
|
1330
|
-
__alpha__secondary3: palette$2.scarletGumLight80,
|
|
1331
|
-
__alpha__secondary4: palette$2.scarletGumLight90
|
|
1332
|
-
};
|
|
1313
|
+
info: palette$2.ultramarineBlue,
|
|
1314
|
+
infoMediumLight: palette$2.vodka,
|
|
1315
|
+
infoLight: palette$2.vodka,
|
|
1316
|
+
infoBackground: palette$2.aliceBlue,
|
|
1317
|
+
success: palette$2.emerald,
|
|
1318
|
+
successLight: palette$2.emerald,
|
|
1319
|
+
successDark: palette$2.pineGreen,
|
|
1320
|
+
successBackground: palette$2.honeydew,
|
|
1321
|
+
danger: palette$2.vermilion,
|
|
1322
|
+
dangerMediumLight: palette$2.apple,
|
|
1323
|
+
dangerLight: palette$2.pastelRed,
|
|
1324
|
+
dangerBackground: palette$2.linen,
|
|
1325
|
+
warning: palette$2.mellowApricot,
|
|
1326
|
+
warningLight: palette$2.mellowApricot,
|
|
1327
|
+
warningDark: palette$2.deepSaffron,
|
|
1328
|
+
warningBackground: palette$2.seashell,
|
|
1329
|
+
platformBackground: palette$2.white,
|
|
1330
|
+
backgroundLight: palette$2.greyLight90,
|
|
1331
|
+
backgroundDark: palette$2.maasstrichtBlue,
|
|
1332
|
+
text: palette$2.maasstrichtBlue,
|
|
1333
|
+
subduedText: palette$2.maasstrichtBlueLight30,
|
|
1334
|
+
disabledText: palette$2.maasstrichtBlueLight50,
|
|
1335
|
+
disabledLightText: palette$2.greyLight30,
|
|
1336
|
+
invertedText: palette$2.white,
|
|
1337
|
+
outline: palette$2.greyLight75,
|
|
1338
|
+
archived: palette$2.greyLight45,
|
|
1339
|
+
archivedLight: palette$2.greyLight30,
|
|
1340
|
+
archivedDark: palette$2.sonicSilver,
|
|
1341
|
+
archivedBackground: palette$2.greyLight90,
|
|
1342
|
+
black: palette$2.black,
|
|
1343
|
+
inactiveBackground: palette$2.maasstrichtBlueLight50,
|
|
1344
|
+
shadow: palette$2.greyLight45
|
|
1345
|
+
}, globalPalette), {}, {
|
|
1346
|
+
// Brand
|
|
1347
|
+
primary: palette$2.maasstrichtBlue,
|
|
1348
|
+
mutedPrimary: palette$2.maasstrichtBlueLight90,
|
|
1349
|
+
onPrimary: palette$2.white,
|
|
1350
|
+
secondary: palette$2.scarletGum,
|
|
1351
|
+
onSecondary: palette$2.white,
|
|
1352
|
+
mutedSecondary: palette$2.maasstrichtBlueLight50,
|
|
1353
|
+
disabledSecondary: palette$2.scarletGumLight50,
|
|
1354
|
+
highlightedSurface: palette$2.scarletGumLight80,
|
|
1355
|
+
highlightedSecondarySurface: palette$2.aliceBlue,
|
|
1356
|
+
lightHighlightedSurface: palette$2.scarletGumLight90
|
|
1357
|
+
});
|
|
1333
1358
|
|
|
1334
1359
|
var workSystemPalette = _objectSpread2(_objectSpread2({}, swagSystemPalette), {}, {
|
|
1335
1360
|
primary: palette.gold,
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1361
|
+
mutedPrimary: palette.goldLight90,
|
|
1362
|
+
onPrimary: palette.maasstrichtBlue,
|
|
1363
|
+
secondary: palette.violet,
|
|
1364
|
+
onSecondary: palette.white,
|
|
1365
|
+
mutedSecondary: palette.maasstrichtBlueLight50,
|
|
1366
|
+
disabledSecondary: palette.violetLight50,
|
|
1367
|
+
highlightedSurface: palette.violetLight80,
|
|
1368
|
+
lightHighlightedSurface: palette.violetLight90
|
|
1343
1369
|
});
|
|
1344
1370
|
|
|
1345
1371
|
var BASE_WIDTH = 390; // Based on iPhone 13's viewport size
|
|
@@ -1486,7 +1512,7 @@ var getGlobalTheme = function getGlobalTheme(scale, systemPalette) {
|
|
|
1486
1512
|
|
|
1487
1513
|
var getAccordionTheme = function getAccordionTheme(theme) {
|
|
1488
1514
|
var colors = {
|
|
1489
|
-
background: theme.colors.
|
|
1515
|
+
background: theme.colors.defaultGlobalSurface
|
|
1490
1516
|
};
|
|
1491
1517
|
var space = {
|
|
1492
1518
|
padding: theme.space.medium
|
|
@@ -1505,10 +1531,10 @@ var getAlertTheme = function getAlertTheme(theme) {
|
|
|
1505
1531
|
var colors = {
|
|
1506
1532
|
success: theme.colors.success,
|
|
1507
1533
|
warning: theme.colors.warning,
|
|
1508
|
-
error: theme.colors.
|
|
1509
|
-
info: theme.colors.
|
|
1510
|
-
notification: theme.colors.
|
|
1511
|
-
divider: theme.colors.
|
|
1534
|
+
error: theme.colors.error,
|
|
1535
|
+
info: theme.colors.info,
|
|
1536
|
+
notification: theme.colors.defaultGlobalSurface,
|
|
1537
|
+
divider: theme.colors.globalSecondaryOutline
|
|
1512
1538
|
};
|
|
1513
1539
|
var sizes = {
|
|
1514
1540
|
height: theme.sizes.xxxlarge
|
|
@@ -1536,9 +1562,9 @@ var getAlertTheme = function getAlertTheme(theme) {
|
|
|
1536
1562
|
|
|
1537
1563
|
var getAvatarTheme = function getAvatarTheme(theme) {
|
|
1538
1564
|
var colors = {
|
|
1539
|
-
primary: theme.colors.
|
|
1565
|
+
primary: theme.colors.globalPrimary,
|
|
1540
1566
|
info: theme.colors.info,
|
|
1541
|
-
danger: theme.colors.
|
|
1567
|
+
danger: theme.colors.error,
|
|
1542
1568
|
success: theme.colors.success,
|
|
1543
1569
|
warning: theme.colors.warning
|
|
1544
1570
|
};
|
|
@@ -1579,12 +1605,12 @@ var getAvatarTheme = function getAvatarTheme(theme) {
|
|
|
1579
1605
|
|
|
1580
1606
|
var getBadgeTheme = function getBadgeTheme(theme) {
|
|
1581
1607
|
var colors = {
|
|
1582
|
-
danger: theme.colors.
|
|
1583
|
-
info: theme.colors.
|
|
1584
|
-
success: theme.colors.
|
|
1585
|
-
warning: theme.colors.
|
|
1586
|
-
archived: theme.colors.
|
|
1587
|
-
text: theme.colors.
|
|
1608
|
+
danger: theme.colors.onErrorSurface,
|
|
1609
|
+
info: theme.colors.onInfoSurface,
|
|
1610
|
+
success: theme.colors.onSuccessSurface,
|
|
1611
|
+
warning: theme.colors.onWarningSurface,
|
|
1612
|
+
archived: theme.colors.onArchivedSurface,
|
|
1613
|
+
text: theme.colors.onGlobalPrimary
|
|
1588
1614
|
};
|
|
1589
1615
|
var fonts = {
|
|
1590
1616
|
"default": theme.fonts.semiBold
|
|
@@ -1614,8 +1640,8 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
1614
1640
|
|
|
1615
1641
|
var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
|
|
1616
1642
|
var colors = {
|
|
1617
|
-
shadow: theme.colors.
|
|
1618
|
-
background: theme.colors.
|
|
1643
|
+
shadow: theme.colors.globalPrimary,
|
|
1644
|
+
background: theme.colors.defaultGlobalSurface
|
|
1619
1645
|
};
|
|
1620
1646
|
var sizes = {
|
|
1621
1647
|
height: theme.sizes['6xlarge']
|
|
@@ -1642,9 +1668,9 @@ var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
|
|
|
1642
1668
|
|
|
1643
1669
|
var getBottomSheetTheme = function getBottomSheetTheme(theme) {
|
|
1644
1670
|
var colors = {
|
|
1645
|
-
shadow: theme.colors.
|
|
1646
|
-
background: theme.colors.
|
|
1647
|
-
backdrop: theme.colors.
|
|
1671
|
+
shadow: theme.colors.globalPrimary,
|
|
1672
|
+
background: theme.colors.defaultGlobalSurface,
|
|
1673
|
+
backdrop: theme.colors.globalPrimary
|
|
1648
1674
|
};
|
|
1649
1675
|
var sizes = {
|
|
1650
1676
|
sectionHeight: theme.sizes.xxxxxlarge,
|
|
@@ -1708,28 +1734,28 @@ var getButtonTheme = function getButtonTheme(theme) {
|
|
|
1708
1734
|
};
|
|
1709
1735
|
var colors = {
|
|
1710
1736
|
primary: theme.colors.globalPrimary,
|
|
1711
|
-
pressedPrimary: theme.colors.
|
|
1737
|
+
pressedPrimary: theme.colors.globalSecondary,
|
|
1712
1738
|
secondary: theme.colors.secondary,
|
|
1713
|
-
pressedSecondary: theme.colors.
|
|
1714
|
-
danger: theme.colors.
|
|
1715
|
-
pressedDanger: theme.colors.
|
|
1716
|
-
defaultText: theme.colors.
|
|
1717
|
-
disabledText: theme.colors.
|
|
1718
|
-
disabledBorder: theme.colors.
|
|
1719
|
-
disabledBackground: theme.colors.
|
|
1720
|
-
invertedText: theme.colors.
|
|
1721
|
-
utilityBackground: theme.colors.
|
|
1739
|
+
pressedSecondary: theme.colors.secondary,
|
|
1740
|
+
danger: theme.colors.onErrorSurface,
|
|
1741
|
+
pressedDanger: theme.colors.onErrorSurface,
|
|
1742
|
+
defaultText: theme.colors.onGlobalPrimary,
|
|
1743
|
+
disabledText: theme.colors.disabledOnDefaultGlobalSurface,
|
|
1744
|
+
disabledBorder: theme.colors.disabledOnDefaultGlobalSurface,
|
|
1745
|
+
disabledBackground: theme.colors.disabledOnDefaultGlobalSurface,
|
|
1746
|
+
invertedText: theme.colors.onGlobalPrimary,
|
|
1747
|
+
utilityBackground: theme.colors.neutralGlobalSurface,
|
|
1722
1748
|
underlayColors: {
|
|
1723
|
-
'filled-primary': theme.colors.
|
|
1724
|
-
'filled-secondary': theme.colors.
|
|
1725
|
-
'filled-danger': theme.colors.
|
|
1726
|
-
'outlined-primary': theme.colors.
|
|
1727
|
-
'outlined-secondary': theme.colors.
|
|
1728
|
-
'outlined-danger': theme.colors.
|
|
1729
|
-
'text-primary': theme.colors.
|
|
1730
|
-
'text-secondary': theme.colors.
|
|
1731
|
-
'text-danger': theme.colors.
|
|
1732
|
-
'basic-transparent': theme.colors.
|
|
1749
|
+
'filled-primary': theme.colors.mutedGlobalPrimary,
|
|
1750
|
+
'filled-secondary': theme.colors.mutedSecondary,
|
|
1751
|
+
'filled-danger': theme.colors.error,
|
|
1752
|
+
'outlined-primary': theme.colors.neutralGlobalSurface,
|
|
1753
|
+
'outlined-secondary': theme.colors.highlightedSecondarySurface,
|
|
1754
|
+
'outlined-danger': theme.colors.errorSurface,
|
|
1755
|
+
'text-primary': theme.colors.neutralGlobalSurface,
|
|
1756
|
+
'text-secondary': theme.colors.highlightedSecondarySurface,
|
|
1757
|
+
'text-danger': theme.colors.errorSurface,
|
|
1758
|
+
'basic-transparent': theme.colors.mutedGlobalPrimary
|
|
1733
1759
|
}
|
|
1734
1760
|
};
|
|
1735
1761
|
return {
|
|
@@ -1746,10 +1772,10 @@ var getButtonTheme = function getButtonTheme(theme) {
|
|
|
1746
1772
|
|
|
1747
1773
|
var getCalendarTheme = function getCalendarTheme(theme) {
|
|
1748
1774
|
var colors = {
|
|
1749
|
-
background: theme.colors.
|
|
1750
|
-
border: theme.colors.
|
|
1751
|
-
primary: theme.colors.
|
|
1752
|
-
inverted: theme.colors.
|
|
1775
|
+
background: theme.colors.defaultGlobalSurface,
|
|
1776
|
+
border: theme.colors.globalPrimaryOutline,
|
|
1777
|
+
primary: theme.colors.globalPrimary,
|
|
1778
|
+
inverted: theme.colors.onGlobalPrimary
|
|
1753
1779
|
};
|
|
1754
1780
|
var cellSize = theme.sizes.xxxlarge;
|
|
1755
1781
|
var markSize = theme.sizes.xsmall;
|
|
@@ -1779,13 +1805,13 @@ var getCalendarTheme = function getCalendarTheme(theme) {
|
|
|
1779
1805
|
|
|
1780
1806
|
var getCardTheme = function getCardTheme(theme) {
|
|
1781
1807
|
var colors = {
|
|
1782
|
-
dataCardIndicator: theme.colors.
|
|
1783
|
-
primary: theme.colors.
|
|
1784
|
-
info: theme.colors.
|
|
1808
|
+
dataCardIndicator: theme.colors.globalPrimary,
|
|
1809
|
+
primary: theme.colors.primary,
|
|
1810
|
+
info: theme.colors.info,
|
|
1785
1811
|
success: theme.colors.success,
|
|
1786
1812
|
warning: theme.colors.warning,
|
|
1787
|
-
danger: theme.colors.
|
|
1788
|
-
archived: theme.colors.
|
|
1813
|
+
danger: theme.colors.error,
|
|
1814
|
+
archived: theme.colors.archived
|
|
1789
1815
|
};
|
|
1790
1816
|
var sizes = {
|
|
1791
1817
|
indicatorWidth: theme.sizes.medium
|
|
@@ -1803,7 +1829,7 @@ var getCardTheme = function getCardTheme(theme) {
|
|
|
1803
1829
|
var getCheckboxTheme = function getCheckboxTheme(theme) {
|
|
1804
1830
|
var colors = {
|
|
1805
1831
|
"default": theme.colors.globalPrimary,
|
|
1806
|
-
disabledBorder: theme.colors.
|
|
1832
|
+
disabledBorder: theme.colors.mutedGlobalPrimary
|
|
1807
1833
|
};
|
|
1808
1834
|
var space = {
|
|
1809
1835
|
iconTop: 0,
|
|
@@ -1850,7 +1876,7 @@ var getDatePickerTheme = function getDatePickerTheme(theme) {
|
|
|
1850
1876
|
|
|
1851
1877
|
var getDividerTheme = function getDividerTheme(theme) {
|
|
1852
1878
|
var colors = {
|
|
1853
|
-
"default": theme.colors.
|
|
1879
|
+
"default": theme.colors.globalSecondaryOutline
|
|
1854
1880
|
};
|
|
1855
1881
|
var space = {
|
|
1856
1882
|
xsmall: theme.space.xsmall,
|
|
@@ -1871,10 +1897,10 @@ var getDividerTheme = function getDividerTheme(theme) {
|
|
|
1871
1897
|
|
|
1872
1898
|
var getDrawerTheme = function getDrawerTheme(theme) {
|
|
1873
1899
|
var colors = {
|
|
1874
|
-
shadow: theme.colors.
|
|
1875
|
-
background: theme.colors.
|
|
1876
|
-
backdrop: theme.colors.
|
|
1877
|
-
handler: theme.colors.
|
|
1900
|
+
shadow: theme.colors.globalPrimary,
|
|
1901
|
+
background: theme.colors.defaultGlobalSurface,
|
|
1902
|
+
backdrop: theme.colors.defaultGlobalSurface,
|
|
1903
|
+
handler: theme.colors.globalPrimary
|
|
1878
1904
|
};
|
|
1879
1905
|
var radii = {
|
|
1880
1906
|
"default": theme.radii.xlarge,
|
|
@@ -1915,10 +1941,9 @@ var getEmptyTheme = function getEmptyTheme(theme) {
|
|
|
1915
1941
|
image: theme.sizes['18xlarge']
|
|
1916
1942
|
};
|
|
1917
1943
|
var colors = {
|
|
1918
|
-
text: theme.colors.
|
|
1919
|
-
invertedText: theme.colors.
|
|
1920
|
-
subduedText: theme.colors.
|
|
1921
|
-
illustrationBackground: theme.colors.shadow
|
|
1944
|
+
text: theme.colors.globalPrimary,
|
|
1945
|
+
invertedText: theme.colors.onGlobalPrimary,
|
|
1946
|
+
subduedText: theme.colors.globalSecondary
|
|
1922
1947
|
};
|
|
1923
1948
|
var fontSizes = {
|
|
1924
1949
|
title: theme.fontSizes.xxxxlarge,
|
|
@@ -1939,13 +1964,13 @@ var getEmptyTheme = function getEmptyTheme(theme) {
|
|
|
1939
1964
|
|
|
1940
1965
|
var getFABTheme = function getFABTheme(theme) {
|
|
1941
1966
|
var colors = {
|
|
1942
|
-
buttonBackground: theme.colors.
|
|
1943
|
-
icon: theme.colors.
|
|
1944
|
-
headerText: theme.colors.
|
|
1945
|
-
actionItemBackground: theme.colors.
|
|
1946
|
-
backdropBackground: theme.colors.
|
|
1947
|
-
titleText: theme.colors.
|
|
1948
|
-
actionItemText: theme.colors.
|
|
1967
|
+
buttonBackground: theme.colors.globalPrimary,
|
|
1968
|
+
icon: theme.colors.onGlobalPrimary,
|
|
1969
|
+
headerText: theme.colors.onGlobalPrimary,
|
|
1970
|
+
actionItemBackground: theme.colors.globalPrimary,
|
|
1971
|
+
backdropBackground: theme.colors.globalPrimary,
|
|
1972
|
+
titleText: theme.colors.onGlobalPrimary,
|
|
1973
|
+
actionItemText: theme.colors.onGlobalPrimary
|
|
1949
1974
|
};
|
|
1950
1975
|
var sizes = {
|
|
1951
1976
|
width: theme.sizes.xxxxxlarge,
|
|
@@ -1999,14 +2024,15 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
1999
2024
|
|
|
2000
2025
|
var getIconTheme = function getIconTheme(theme) {
|
|
2001
2026
|
var colors = {
|
|
2002
|
-
text: theme.colors.
|
|
2027
|
+
text: theme.colors.globalPrimary,
|
|
2003
2028
|
primary: theme.colors.primary,
|
|
2029
|
+
secondary: theme.colors.secondary,
|
|
2004
2030
|
info: theme.colors.info,
|
|
2005
2031
|
danger: theme.colors.danger,
|
|
2006
2032
|
success: theme.colors.success,
|
|
2007
2033
|
warning: theme.colors.warning,
|
|
2008
|
-
disabledText: theme.colors.
|
|
2009
|
-
invertedText: theme.colors.
|
|
2034
|
+
disabledText: theme.colors.mutedGlobalPrimary,
|
|
2035
|
+
invertedText: theme.colors.defaultGlobalSurface
|
|
2010
2036
|
};
|
|
2011
2037
|
var sizes = {
|
|
2012
2038
|
xsmall: theme.fontSizes.large,
|
|
@@ -2033,15 +2059,15 @@ var getImageTheme = function getImageTheme(theme) {
|
|
|
2033
2059
|
|
|
2034
2060
|
var getListTheme = function getListTheme(theme) {
|
|
2035
2061
|
var colors = {
|
|
2036
|
-
checkedListItemContainerBackground: theme.colors.
|
|
2037
|
-
highlightedListItemContainerBackground: theme.colors.
|
|
2038
|
-
listItemContainerBackground: theme.colors.
|
|
2062
|
+
checkedListItemContainerBackground: theme.colors.highlightedSurface,
|
|
2063
|
+
highlightedListItemContainerBackground: theme.colors.lightHighlightedSurface,
|
|
2064
|
+
listItemContainerBackground: theme.colors.defaultGlobalSurface,
|
|
2039
2065
|
leadingStatus: {
|
|
2040
|
-
danger: theme.colors.
|
|
2041
|
-
info: theme.colors.
|
|
2066
|
+
danger: theme.colors.error,
|
|
2067
|
+
info: theme.colors.info,
|
|
2042
2068
|
success: theme.colors.success,
|
|
2043
2069
|
warning: theme.colors.warning,
|
|
2044
|
-
archived: theme.colors.
|
|
2070
|
+
archived: theme.colors.archived
|
|
2045
2071
|
}
|
|
2046
2072
|
};
|
|
2047
2073
|
var space = {
|
|
@@ -2052,6 +2078,7 @@ var getListTheme = function getListTheme(theme) {
|
|
|
2052
2078
|
};
|
|
2053
2079
|
var radii = {
|
|
2054
2080
|
card: theme.radii.medium,
|
|
2081
|
+
basicItem: theme.radii.base,
|
|
2055
2082
|
cardShadow: theme.radii.base,
|
|
2056
2083
|
leadingStatus: theme.radii.rounded
|
|
2057
2084
|
};
|
|
@@ -2086,10 +2113,10 @@ var getPinInputTheme = function getPinInputTheme(theme) {
|
|
|
2086
2113
|
focused: theme.borderWidths.medium
|
|
2087
2114
|
};
|
|
2088
2115
|
var colors = {
|
|
2089
|
-
"default": theme.colors.
|
|
2090
|
-
mask: theme.colors.
|
|
2091
|
-
error: theme.colors.
|
|
2092
|
-
disabled: theme.colors.
|
|
2116
|
+
"default": theme.colors.globalPrimary,
|
|
2117
|
+
mask: theme.colors.mutedGlobalPrimary,
|
|
2118
|
+
error: theme.colors.error,
|
|
2119
|
+
disabled: theme.colors.mutedGlobalPrimary
|
|
2093
2120
|
};
|
|
2094
2121
|
var fonts = {
|
|
2095
2122
|
cellText: theme.fonts.semiBold,
|
|
@@ -2127,11 +2154,11 @@ var getProgressTheme = function getProgressTheme(theme) {
|
|
|
2127
2154
|
var colors = {
|
|
2128
2155
|
primary: theme.colors.primary,
|
|
2129
2156
|
success: theme.colors.success,
|
|
2130
|
-
warning: theme.colors.
|
|
2157
|
+
warning: theme.colors.warning,
|
|
2131
2158
|
danger: theme.colors.danger,
|
|
2132
2159
|
info: theme.colors.info,
|
|
2133
|
-
background: theme.colors.
|
|
2134
|
-
innerBackground: theme.colors.
|
|
2160
|
+
background: theme.colors.globalSecondaryOutline,
|
|
2161
|
+
innerBackground: theme.colors.defaultGlobalSurface
|
|
2135
2162
|
};
|
|
2136
2163
|
var sizes = {
|
|
2137
2164
|
circleWidth: theme.sizes['6xlarge'],
|
|
@@ -2176,9 +2203,9 @@ var getRadioTheme = function getRadioTheme(theme) {
|
|
|
2176
2203
|
|
|
2177
2204
|
var getRichTextEditorTheme = function getRichTextEditorTheme(theme) {
|
|
2178
2205
|
var colors = {
|
|
2179
|
-
toolbarBorderColor: theme.colors.
|
|
2180
|
-
toolbarBackgroundColor: theme.colors.
|
|
2181
|
-
toolbarButtonSelectedBackground: theme.colors.
|
|
2206
|
+
toolbarBorderColor: theme.colors.globalSecondaryOutline,
|
|
2207
|
+
toolbarBackgroundColor: theme.colors.neutralGlobalSurface,
|
|
2208
|
+
toolbarButtonSelectedBackground: theme.colors.lightHighlightedSurface
|
|
2182
2209
|
};
|
|
2183
2210
|
var borderWidths = {
|
|
2184
2211
|
webViewBorderBottomWidth: 0.8
|
|
@@ -2208,7 +2235,7 @@ var getRichTextEditorTheme = function getRichTextEditorTheme(theme) {
|
|
|
2208
2235
|
|
|
2209
2236
|
var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
|
|
2210
2237
|
var colors = {
|
|
2211
|
-
background: theme.colors.
|
|
2238
|
+
background: theme.colors.neutralGlobalSurface
|
|
2212
2239
|
};
|
|
2213
2240
|
var space = {
|
|
2214
2241
|
headingVerticalPadding: theme.space.small,
|
|
@@ -2224,7 +2251,7 @@ var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
|
|
|
2224
2251
|
|
|
2225
2252
|
var getSelectTheme = function getSelectTheme(theme) {
|
|
2226
2253
|
var colors = {
|
|
2227
|
-
footerText: theme.colors.
|
|
2254
|
+
footerText: theme.colors.secondary
|
|
2228
2255
|
};
|
|
2229
2256
|
var space = {
|
|
2230
2257
|
minimumOptionListHeight: theme.space.xxxxlarge * 5,
|
|
@@ -2247,9 +2274,9 @@ var getSelectTheme = function getSelectTheme(theme) {
|
|
|
2247
2274
|
|
|
2248
2275
|
var getSliderTheme = function getSliderTheme(theme) {
|
|
2249
2276
|
var colors = {
|
|
2250
|
-
minimumTrackTint: theme.colors.
|
|
2251
|
-
thumbTint: theme.colors.
|
|
2252
|
-
maximumTrackTint: theme.colors.
|
|
2277
|
+
minimumTrackTint: theme.colors.secondary,
|
|
2278
|
+
thumbTint: theme.colors.neutralGlobalSurface,
|
|
2279
|
+
maximumTrackTint: theme.colors.lightHighlightedSurface
|
|
2253
2280
|
};
|
|
2254
2281
|
return {
|
|
2255
2282
|
colors: colors
|
|
@@ -2258,10 +2285,7 @@ var getSliderTheme = function getSliderTheme(theme) {
|
|
|
2258
2285
|
|
|
2259
2286
|
var getSpinnerTheme = function getSpinnerTheme(theme) {
|
|
2260
2287
|
var colors = {
|
|
2261
|
-
|
|
2262
|
-
dot2: theme.colors.__alpha__secondary2,
|
|
2263
|
-
dot3: theme.colors.__alpha__secondary3,
|
|
2264
|
-
dot4: theme.colors.__alpha__secondary4
|
|
2288
|
+
dot: theme.colors.primary
|
|
2265
2289
|
};
|
|
2266
2290
|
var space = {
|
|
2267
2291
|
spinnerDot: {
|
|
@@ -2290,15 +2314,15 @@ var getSpinnerTheme = function getSpinnerTheme(theme) {
|
|
|
2290
2314
|
var getSwitchTheme = function getSwitchTheme(theme) {
|
|
2291
2315
|
var colors = {
|
|
2292
2316
|
backgroundColors: {
|
|
2293
|
-
checked: theme.colors.
|
|
2294
|
-
unchecked: theme.colors.
|
|
2295
|
-
'disabled-checked': theme.colors.
|
|
2296
|
-
'disabled-unchecked': theme.colors.
|
|
2317
|
+
checked: theme.colors.secondary,
|
|
2318
|
+
unchecked: theme.colors.mutedSecondary,
|
|
2319
|
+
'disabled-checked': theme.colors.disabledSecondary,
|
|
2320
|
+
'disabled-unchecked': theme.colors.disabledOnDefaultGlobalSurface
|
|
2297
2321
|
},
|
|
2298
|
-
thumb: theme.colors.
|
|
2322
|
+
thumb: theme.colors.onSecondary,
|
|
2299
2323
|
selector: {
|
|
2300
|
-
background: theme.colors.
|
|
2301
|
-
textBackground: theme.colors.
|
|
2324
|
+
background: theme.colors.neutralGlobalSurface,
|
|
2325
|
+
textBackground: theme.colors.secondary
|
|
2302
2326
|
}
|
|
2303
2327
|
};
|
|
2304
2328
|
var sizes = {
|
|
@@ -2342,11 +2366,11 @@ var getSwitchTheme = function getSwitchTheme(theme) {
|
|
|
2342
2366
|
|
|
2343
2367
|
var getTabsTheme = function getTabsTheme(theme) {
|
|
2344
2368
|
var colors = {
|
|
2345
|
-
active: theme.colors.
|
|
2346
|
-
inactive: theme.colors.
|
|
2347
|
-
activeBackground: theme.colors.
|
|
2348
|
-
headerBottom: theme.colors.
|
|
2349
|
-
text: theme.colors.
|
|
2369
|
+
active: theme.colors.globalPrimary,
|
|
2370
|
+
inactive: theme.colors.globalPrimary,
|
|
2371
|
+
activeBackground: theme.colors.mutedPrimary,
|
|
2372
|
+
headerBottom: theme.colors.globalSecondaryOutline,
|
|
2373
|
+
text: theme.colors.globalPrimary
|
|
2350
2374
|
};
|
|
2351
2375
|
var space = {
|
|
2352
2376
|
flatListHorizontalPadding: theme.space.small,
|
|
@@ -2379,20 +2403,20 @@ var getTagTheme = function getTagTheme(theme) {
|
|
|
2379
2403
|
"default": theme.borderWidths.base
|
|
2380
2404
|
};
|
|
2381
2405
|
var colors = {
|
|
2382
|
-
"default": theme.colors.
|
|
2406
|
+
"default": theme.colors.globalPrimary,
|
|
2383
2407
|
defaultBackground: undefined,
|
|
2384
|
-
primary: theme.colors.
|
|
2408
|
+
primary: theme.colors.globalPrimary,
|
|
2385
2409
|
primaryBackground: undefined,
|
|
2386
|
-
info: theme.colors.
|
|
2387
|
-
infoBackground: theme.colors.
|
|
2388
|
-
success: theme.colors.
|
|
2389
|
-
successBackground: theme.colors.
|
|
2390
|
-
warning: theme.colors.
|
|
2391
|
-
warningBackground: theme.colors.
|
|
2392
|
-
danger: theme.colors.
|
|
2393
|
-
dangerBackground: theme.colors.
|
|
2394
|
-
archived: theme.colors.
|
|
2395
|
-
archivedBackground: theme.colors.
|
|
2410
|
+
info: theme.colors.onInfoSurface,
|
|
2411
|
+
infoBackground: theme.colors.infoSurface,
|
|
2412
|
+
success: theme.colors.onSuccessSurface,
|
|
2413
|
+
successBackground: theme.colors.successSurface,
|
|
2414
|
+
warning: theme.colors.onWarningSurface,
|
|
2415
|
+
warningBackground: theme.colors.warningSurface,
|
|
2416
|
+
danger: theme.colors.onErrorSurface,
|
|
2417
|
+
dangerBackground: theme.colors.errorSurface,
|
|
2418
|
+
archived: theme.colors.onArchivedSurface,
|
|
2419
|
+
archivedBackground: theme.colors.archivedSurface
|
|
2396
2420
|
};
|
|
2397
2421
|
var fonts = {
|
|
2398
2422
|
"default": theme.fonts.semiBold
|
|
@@ -2419,53 +2443,53 @@ var getTagTheme = function getTagTheme(theme) {
|
|
|
2419
2443
|
|
|
2420
2444
|
var getTextInputTheme = function getTextInputTheme(theme) {
|
|
2421
2445
|
var colors = {
|
|
2422
|
-
labelBackground: theme.colors.
|
|
2446
|
+
labelBackground: theme.colors.defaultGlobalSurface,
|
|
2423
2447
|
asterisks: {
|
|
2424
|
-
"default": theme.colors.
|
|
2425
|
-
error: theme.colors.
|
|
2426
|
-
disabled: theme.colors.
|
|
2427
|
-
readonly: theme.colors.
|
|
2428
|
-
filled: theme.colors.
|
|
2429
|
-
focused: theme.colors.
|
|
2448
|
+
"default": theme.colors.error,
|
|
2449
|
+
error: theme.colors.error,
|
|
2450
|
+
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
2451
|
+
readonly: theme.colors.mutedSecondary,
|
|
2452
|
+
filled: theme.colors.error,
|
|
2453
|
+
focused: theme.colors.error
|
|
2430
2454
|
},
|
|
2431
|
-
error: theme.colors.
|
|
2432
|
-
placeholderIfNotFocused: theme.colors.
|
|
2433
|
-
placeholderIfFocued: theme.colors.
|
|
2434
|
-
label: theme.colors.
|
|
2435
|
-
readonlyLabel: theme.colors.
|
|
2436
|
-
disabledLabel: theme.colors.
|
|
2437
|
-
text: theme.colors.
|
|
2455
|
+
error: theme.colors.error,
|
|
2456
|
+
placeholderIfNotFocused: theme.colors.globalPrimary,
|
|
2457
|
+
placeholderIfFocued: theme.colors.mutedSecondary,
|
|
2458
|
+
label: theme.colors.globalPrimary,
|
|
2459
|
+
readonlyLabel: theme.colors.mutedSecondary,
|
|
2460
|
+
disabledLabel: theme.colors.disabledOnDefaultGlobalSurface,
|
|
2461
|
+
text: theme.colors.globalPrimary,
|
|
2438
2462
|
borders: {
|
|
2439
|
-
"default": theme.colors.
|
|
2440
|
-
error: theme.colors.
|
|
2441
|
-
disabled: theme.colors.
|
|
2442
|
-
readonly: theme.colors.
|
|
2443
|
-
filled: theme.colors.
|
|
2444
|
-
focused: theme.colors.
|
|
2463
|
+
"default": theme.colors.globalPrimary,
|
|
2464
|
+
error: theme.colors.error,
|
|
2465
|
+
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
2466
|
+
readonly: theme.colors.mutedSecondary,
|
|
2467
|
+
filled: theme.colors.globalPrimary,
|
|
2468
|
+
focused: theme.colors.globalPrimary
|
|
2445
2469
|
},
|
|
2446
2470
|
labels: {
|
|
2447
|
-
"default": theme.colors.
|
|
2448
|
-
error: theme.colors.
|
|
2449
|
-
disabled: theme.colors.
|
|
2450
|
-
readonly: theme.colors.
|
|
2451
|
-
filled: theme.colors.
|
|
2452
|
-
focused: theme.colors.
|
|
2471
|
+
"default": theme.colors.globalPrimary,
|
|
2472
|
+
error: theme.colors.globalPrimary,
|
|
2473
|
+
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
2474
|
+
readonly: theme.colors.disabledOnDefaultGlobalSurface,
|
|
2475
|
+
filled: theme.colors.globalPrimary,
|
|
2476
|
+
focused: theme.colors.globalPrimary
|
|
2453
2477
|
},
|
|
2454
2478
|
labelsInsideTextInput: {
|
|
2455
|
-
"default": theme.colors.
|
|
2456
|
-
error: theme.colors.
|
|
2457
|
-
disabled: theme.colors.
|
|
2458
|
-
readonly: theme.colors.
|
|
2459
|
-
filled: theme.colors.
|
|
2460
|
-
focused: theme.colors.
|
|
2479
|
+
"default": theme.colors.globalPrimary,
|
|
2480
|
+
error: theme.colors.globalPrimary,
|
|
2481
|
+
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
2482
|
+
readonly: theme.colors.disabledOnDefaultGlobalSurface,
|
|
2483
|
+
filled: theme.colors.globalPrimary,
|
|
2484
|
+
focused: theme.colors.globalPrimary
|
|
2461
2485
|
},
|
|
2462
2486
|
maxLengthLabels: {
|
|
2463
|
-
"default": theme.colors.
|
|
2464
|
-
error: theme.colors.
|
|
2465
|
-
disabled: theme.colors.
|
|
2466
|
-
readonly: theme.colors.
|
|
2467
|
-
filled: theme.colors.
|
|
2468
|
-
focused: theme.colors.
|
|
2487
|
+
"default": theme.colors.globalPrimary,
|
|
2488
|
+
error: theme.colors.error,
|
|
2489
|
+
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
2490
|
+
readonly: theme.colors.disabledOnDefaultGlobalSurface,
|
|
2491
|
+
filled: theme.colors.globalPrimary,
|
|
2492
|
+
focused: theme.colors.globalPrimary
|
|
2469
2493
|
}
|
|
2470
2494
|
};
|
|
2471
2495
|
var space = {
|
|
@@ -2519,12 +2543,12 @@ var getToastTheme = function getToastTheme(theme) {
|
|
|
2519
2543
|
var colors = {
|
|
2520
2544
|
success: theme.colors.success,
|
|
2521
2545
|
warning: theme.colors.warning,
|
|
2522
|
-
error: theme.colors.
|
|
2523
|
-
info: theme.colors.
|
|
2524
|
-
notification: theme.colors.
|
|
2525
|
-
snackbar: theme.colors.
|
|
2526
|
-
divider: theme.colors.
|
|
2527
|
-
shadow: theme.colors.
|
|
2546
|
+
error: theme.colors.error,
|
|
2547
|
+
info: theme.colors.info,
|
|
2548
|
+
notification: theme.colors.defaultGlobalSurface,
|
|
2549
|
+
snackbar: theme.colors.globalPrimary,
|
|
2550
|
+
divider: theme.colors.globalSecondaryOutline,
|
|
2551
|
+
shadow: theme.colors.globalPrimary
|
|
2528
2552
|
};
|
|
2529
2553
|
var sizes = {
|
|
2530
2554
|
height: theme.sizes.xxxlarge
|
|
@@ -2564,9 +2588,10 @@ var getToastTheme = function getToastTheme(theme) {
|
|
|
2564
2588
|
|
|
2565
2589
|
var getToolbarTheme = function getToolbarTheme(theme) {
|
|
2566
2590
|
var colors = {
|
|
2567
|
-
background: theme.colors.
|
|
2568
|
-
border: theme.colors.
|
|
2591
|
+
background: theme.colors.defaultGlobalSurface,
|
|
2592
|
+
border: theme.colors.globalSecondaryOutline,
|
|
2569
2593
|
primary: theme.colors.primary,
|
|
2594
|
+
secondary: theme.colors.secondary,
|
|
2570
2595
|
info: theme.colors.info,
|
|
2571
2596
|
success: theme.colors.success,
|
|
2572
2597
|
danger: theme.colors.warning,
|
|
@@ -2589,14 +2614,15 @@ var getToolbarTheme = function getToolbarTheme(theme) {
|
|
|
2589
2614
|
|
|
2590
2615
|
var getTypographyTheme = function getTypographyTheme(theme) {
|
|
2591
2616
|
var colors = {
|
|
2592
|
-
body: theme.colors.
|
|
2593
|
-
subdued: theme.colors.
|
|
2617
|
+
body: theme.colors.globalPrimary,
|
|
2618
|
+
subdued: theme.colors.mutedGlobalPrimary,
|
|
2594
2619
|
primary: theme.colors.primary,
|
|
2620
|
+
secondary: theme.colors.secondary,
|
|
2595
2621
|
info: theme.colors.info,
|
|
2596
2622
|
danger: theme.colors.danger,
|
|
2597
2623
|
warning: theme.colors.warning,
|
|
2598
2624
|
success: theme.colors.success,
|
|
2599
|
-
inverted: theme.colors.
|
|
2625
|
+
inverted: theme.colors.onGlobalPrimary
|
|
2600
2626
|
};
|
|
2601
2627
|
var fonts = {
|
|
2602
2628
|
light: theme.fonts.light,
|
|
@@ -14572,6 +14598,7 @@ var HeroIcon = createIconSetFromIcoMoon(heroIconConfig, 'hero-icons', 'hero-icon
|
|
|
14572
14598
|
var COLOR_INTENTS = {
|
|
14573
14599
|
text: 'text',
|
|
14574
14600
|
primary: 'primary',
|
|
14601
|
+
secondary: 'secondary',
|
|
14575
14602
|
info: 'info',
|
|
14576
14603
|
danger: 'danger',
|
|
14577
14604
|
success: 'success',
|
|
@@ -14667,7 +14694,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
14667
14694
|
fontWeight: "semi-bold"
|
|
14668
14695
|
}, header) : header, /*#__PURE__*/React.createElement(Icon, {
|
|
14669
14696
|
icon: open ? 'arrow-up' : 'arrow-down',
|
|
14670
|
-
intent: "
|
|
14697
|
+
intent: "secondary",
|
|
14671
14698
|
size: "small"
|
|
14672
14699
|
})), /*#__PURE__*/React.createElement(StyledCollapse, {
|
|
14673
14700
|
open: open
|
|
@@ -19107,10 +19134,16 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
19107
19134
|
};
|
|
19108
19135
|
|
|
19109
19136
|
var StyledContainer$3 = index$8(View)(function (_ref) {
|
|
19110
|
-
var
|
|
19137
|
+
var _theme$__hd__$textInp;
|
|
19138
|
+
|
|
19139
|
+
var theme = _ref.theme,
|
|
19140
|
+
themeVariant = _ref.themeVariant;
|
|
19111
19141
|
return {
|
|
19112
19142
|
width: '100%',
|
|
19113
|
-
marginVertical: theme.__hd__.textInput.space.containerMarginVertical
|
|
19143
|
+
marginVertical: theme.__hd__.textInput.space.containerMarginVertical,
|
|
19144
|
+
borderWidth: themeVariant === 'focused' ? theme.__hd__.textInput.borderWidths.container.focused : theme.__hd__.textInput.borderWidths.container.normal,
|
|
19145
|
+
borderRadius: theme.__hd__.textInput.radii.container,
|
|
19146
|
+
borderColor: (_theme$__hd__$textInp = theme.__hd__.textInput.colors.borders[themeVariant]) !== null && _theme$__hd__$textInp !== void 0 ? _theme$__hd__$textInp : theme.__hd__.textInput.colors.borders["default"]
|
|
19114
19147
|
};
|
|
19115
19148
|
});
|
|
19116
19149
|
var StyledLabelContainer = index$8(View)(function (_ref2) {
|
|
@@ -19212,19 +19245,8 @@ var StyledTextInput = index$8(TextInput$1)(function (_ref11) {
|
|
|
19212
19245
|
marginHorizontal: theme.__hd__.textInput.space.inputHorizontalMargin
|
|
19213
19246
|
};
|
|
19214
19247
|
});
|
|
19215
|
-
var
|
|
19216
|
-
var
|
|
19217
|
-
|
|
19218
|
-
var theme = _ref12.theme,
|
|
19219
|
-
themeVariant = _ref12.themeVariant;
|
|
19220
|
-
return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
19221
|
-
borderWidth: themeVariant === 'focused' ? theme.__hd__.textInput.borderWidths.container.focused : theme.__hd__.textInput.borderWidths.container.normal,
|
|
19222
|
-
borderRadius: theme.__hd__.textInput.radii.container,
|
|
19223
|
-
borderColor: (_theme$__hd__$textInp = theme.__hd__.textInput.colors.borders[themeVariant]) !== null && _theme$__hd__$textInp !== void 0 ? _theme$__hd__$textInp : theme.__hd__.textInput.colors.borders["default"]
|
|
19224
|
-
});
|
|
19225
|
-
});
|
|
19226
|
-
var StyledTextInputContainer = index$8(View)(function (_ref13) {
|
|
19227
|
-
var theme = _ref13.theme;
|
|
19248
|
+
var StyledTextInputContainer = index$8(View)(function (_ref12) {
|
|
19249
|
+
var theme = _ref12.theme;
|
|
19228
19250
|
return {
|
|
19229
19251
|
flexDirection: 'row',
|
|
19230
19252
|
alignItems: 'center',
|
|
@@ -19240,8 +19262,8 @@ var StyledTextInputAndLabelContainer = index$8(View)(function () {
|
|
|
19240
19262
|
flexShrink: 1
|
|
19241
19263
|
};
|
|
19242
19264
|
});
|
|
19243
|
-
var StyledErrorAndHelpTextContainer = index$8(View)(function (
|
|
19244
|
-
var theme =
|
|
19265
|
+
var StyledErrorAndHelpTextContainer = index$8(View)(function (_ref13) {
|
|
19266
|
+
var theme = _ref13.theme;
|
|
19245
19267
|
return {
|
|
19246
19268
|
paddingLeft: theme.__hd__.textInput.space.errorAndHelpTextContainerPaddingLeft
|
|
19247
19269
|
};
|
|
@@ -19263,26 +19285,26 @@ var getVariant$1 = function getVariant(_ref) {
|
|
|
19263
19285
|
isEmptyValue = _ref.isEmptyValue;
|
|
19264
19286
|
|
|
19265
19287
|
if (disabled) {
|
|
19266
|
-
return
|
|
19288
|
+
return 'disabled';
|
|
19267
19289
|
}
|
|
19268
19290
|
|
|
19269
19291
|
if (error) {
|
|
19270
|
-
return
|
|
19292
|
+
return 'error';
|
|
19271
19293
|
}
|
|
19272
19294
|
|
|
19273
19295
|
if (!editable || loading) {
|
|
19274
|
-
return
|
|
19296
|
+
return 'readonly';
|
|
19275
19297
|
}
|
|
19276
19298
|
|
|
19277
19299
|
if (isFocused) {
|
|
19278
|
-
return
|
|
19300
|
+
return 'focused';
|
|
19279
19301
|
}
|
|
19280
19302
|
|
|
19281
19303
|
if (!isEmptyValue) {
|
|
19282
|
-
return
|
|
19304
|
+
return 'filled';
|
|
19283
19305
|
}
|
|
19284
19306
|
|
|
19285
|
-
return
|
|
19307
|
+
return 'default';
|
|
19286
19308
|
};
|
|
19287
19309
|
|
|
19288
19310
|
var TextInput = function TextInput(_ref2) {
|
|
@@ -19310,9 +19332,9 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19310
19332
|
renderInputValue = _ref2.renderInputValue,
|
|
19311
19333
|
nativeProps = _objectWithoutProperties(_ref2, _excluded$6);
|
|
19312
19334
|
|
|
19313
|
-
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 :
|
|
19335
|
+
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
19314
19336
|
var isEmptyValue = displayText.length === 0;
|
|
19315
|
-
var actualSuffix = loading ?
|
|
19337
|
+
var actualSuffix = loading ? 'loading' : suffix;
|
|
19316
19338
|
|
|
19317
19339
|
var _React$useState = React.useState(false),
|
|
19318
19340
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -19334,9 +19356,9 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19334
19356
|
style: StyleSheet$1.flatten([{
|
|
19335
19357
|
color: theme.__hd__.textInput.colors.text
|
|
19336
19358
|
}, textStyle]),
|
|
19337
|
-
testID:
|
|
19359
|
+
testID: 'text-input',
|
|
19338
19360
|
accessibilityState: {
|
|
19339
|
-
disabled: variant ===
|
|
19361
|
+
disabled: variant === 'disabled' || variant === 'readonly'
|
|
19340
19362
|
},
|
|
19341
19363
|
// @ts-ignore
|
|
19342
19364
|
accessibilityLabelledBy: accessibilityLabelledBy
|
|
@@ -19362,16 +19384,15 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19362
19384
|
(_nativeProps$onChange = nativeProps.onChangeText) === null || _nativeProps$onChange === void 0 ? void 0 : _nativeProps$onChange.call(nativeProps, text);
|
|
19363
19385
|
},
|
|
19364
19386
|
defaultValue: defaultValue,
|
|
19365
|
-
placeholder: variant ===
|
|
19387
|
+
placeholder: variant === 'focused' ? nativeProps.placeholder : undefined
|
|
19366
19388
|
});
|
|
19367
19389
|
|
|
19368
19390
|
return /*#__PURE__*/React.createElement(StyledContainer$3, {
|
|
19369
|
-
pointerEvents: variant ===
|
|
19370
|
-
testID: testID
|
|
19371
|
-
|
|
19372
|
-
themeVariant: variant
|
|
19373
|
-
|
|
19374
|
-
}), (isFocused || label && !isEmptyValue) && /*#__PURE__*/React.createElement(StyledLabelContainer, {
|
|
19391
|
+
pointerEvents: variant === 'disabled' || variant === 'readonly' ? 'none' : 'auto',
|
|
19392
|
+
testID: testID,
|
|
19393
|
+
style: style,
|
|
19394
|
+
themeVariant: variant
|
|
19395
|
+
}, /*#__PURE__*/React.createElement(StyledTextInputContainer, null, (isFocused || label && !isEmptyValue) && /*#__PURE__*/React.createElement(StyledLabelContainer, {
|
|
19375
19396
|
pointerEvents: "none"
|
|
19376
19397
|
}, required && /*#__PURE__*/React.createElement(StyledAsteriskLabel, {
|
|
19377
19398
|
themeVariant: variant,
|
|
@@ -19381,8 +19402,8 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19381
19402
|
testID: "input-label",
|
|
19382
19403
|
fontSize: "small",
|
|
19383
19404
|
themeVariant: variant
|
|
19384
|
-
}, label)), typeof prefix ===
|
|
19385
|
-
intent: variant ===
|
|
19405
|
+
}, label)), typeof prefix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
|
|
19406
|
+
intent: variant === 'disabled' ? 'disabled-text' : 'text',
|
|
19386
19407
|
testID: "input-prefix",
|
|
19387
19408
|
icon: prefix,
|
|
19388
19409
|
size: "xsmall"
|
|
@@ -19395,11 +19416,11 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19395
19416
|
testID: "input-label",
|
|
19396
19417
|
fontSize: "medium",
|
|
19397
19418
|
themeVariant: variant
|
|
19398
|
-
}, label)), renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/React.createElement(StyledTextInput, nativeInputProps)), typeof actualSuffix ===
|
|
19399
|
-
intent: variant ===
|
|
19419
|
+
}, label)), renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/React.createElement(StyledTextInput, nativeInputProps)), typeof actualSuffix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
|
|
19420
|
+
intent: variant === 'disabled' ? 'disabled-text' : 'text',
|
|
19400
19421
|
testID: "input-suffix",
|
|
19401
19422
|
icon: actualSuffix,
|
|
19402
|
-
spin: actualSuffix ===
|
|
19423
|
+
spin: actualSuffix === 'loading',
|
|
19403
19424
|
size: "xsmall"
|
|
19404
19425
|
}) : suffix), /*#__PURE__*/React.createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React.createElement(StyledErrorAndMaxLengthContainer, null, !!error && /*#__PURE__*/React.createElement(StyledErrorContainer$1, null, /*#__PURE__*/React.createElement(Icon, {
|
|
19405
19426
|
testID: "input-error-icon",
|
|
@@ -20387,7 +20408,8 @@ var StyledListItemContainer = index$8(TouchableHighlight)(function (_ref3) {
|
|
|
20387
20408
|
flexDirection: 'row',
|
|
20388
20409
|
backgroundColor: themeSelected ? theme.__hd__.list.colors.checkedListItemContainerBackground : theme.__hd__.list.colors.listItemContainerBackground,
|
|
20389
20410
|
padding: theme.__hd__.list.space.listItemContainerPadding,
|
|
20390
|
-
opacity: themeDisabled ? theme.__hd__.list.opacity.disabled : theme.__hd__.list.opacity.enabled
|
|
20411
|
+
opacity: themeDisabled ? theme.__hd__.list.opacity.disabled : theme.__hd__.list.opacity.enabled,
|
|
20412
|
+
borderRadius: theme.__hd__.list.radii.basicItem
|
|
20391
20413
|
};
|
|
20392
20414
|
});
|
|
20393
20415
|
|
|
@@ -20973,24 +20995,28 @@ var StyledSpinnerDot = index$8(View)(function (_ref2) {
|
|
|
20973
20995
|
switch (themePosition) {
|
|
20974
20996
|
case 'topLeft':
|
|
20975
20997
|
return {
|
|
20976
|
-
backgroundColor: theme.__hd__.spinner.colors.
|
|
20998
|
+
backgroundColor: theme.__hd__.spinner.colors.dot,
|
|
20999
|
+
opacity: 1
|
|
20977
21000
|
};
|
|
20978
21001
|
|
|
20979
21002
|
case 'topRight':
|
|
20980
21003
|
return {
|
|
20981
21004
|
marginLeft: theme.__hd__.spinner.space.spinnerDotPadding[themeSize],
|
|
20982
|
-
backgroundColor: theme.__hd__.spinner.colors.
|
|
21005
|
+
backgroundColor: theme.__hd__.spinner.colors.dot,
|
|
21006
|
+
opacity: 0.75
|
|
20983
21007
|
};
|
|
20984
21008
|
|
|
20985
21009
|
case 'bottomLeft':
|
|
20986
21010
|
return {
|
|
20987
|
-
backgroundColor: theme.__hd__.spinner.colors.
|
|
21011
|
+
backgroundColor: theme.__hd__.spinner.colors.dot,
|
|
21012
|
+
opacity: 0.5
|
|
20988
21013
|
};
|
|
20989
21014
|
|
|
20990
21015
|
case 'bottomRight':
|
|
20991
21016
|
return {
|
|
20992
21017
|
marginLeft: theme.__hd__.spinner.space.spinnerDotPadding[themeSize],
|
|
20993
|
-
backgroundColor: theme.__hd__.spinner.colors.
|
|
21018
|
+
backgroundColor: theme.__hd__.spinner.colors.dot,
|
|
21019
|
+
opacity: 0.25
|
|
20994
21020
|
};
|
|
20995
21021
|
}
|
|
20996
21022
|
};
|
|
@@ -22171,9 +22197,9 @@ var ScrollableTab = function ScrollableTab(_ref2) {
|
|
|
22171
22197
|
testID: componentTestID
|
|
22172
22198
|
}, /*#__PURE__*/React.createElement(HeaderTabWrapper, {
|
|
22173
22199
|
themeInsets: insets,
|
|
22174
|
-
style: barStyle
|
|
22175
|
-
testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined
|
|
22200
|
+
style: barStyle
|
|
22176
22201
|
}, /*#__PURE__*/React.createElement(FlatList, {
|
|
22202
|
+
testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined,
|
|
22177
22203
|
ref: flatListRef,
|
|
22178
22204
|
horizontal: true,
|
|
22179
22205
|
data: tabs,
|
|
@@ -22880,7 +22906,7 @@ var ToastProvider = function ToastProvider(_ref) {
|
|
|
22880
22906
|
position = _ref$position === void 0 ? 'top' : _ref$position;
|
|
22881
22907
|
var toastRef = useRef(null);
|
|
22882
22908
|
|
|
22883
|
-
var _useState = useState(
|
|
22909
|
+
var _useState = useState(null),
|
|
22884
22910
|
_useState2 = _slicedToArray(_useState, 2),
|
|
22885
22911
|
refState = _useState2[0],
|
|
22886
22912
|
setRefState = _useState2[1];
|
|
@@ -22902,7 +22928,7 @@ var ToastProvider = function ToastProvider(_ref) {
|
|
|
22902
22928
|
style: {
|
|
22903
22929
|
flex: 1
|
|
22904
22930
|
}
|
|
22905
|
-
}, children, /*#__PURE__*/React.createElement(ToastConfigContext.Provider, {
|
|
22931
|
+
}, refState ? children : null, /*#__PURE__*/React.createElement(ToastConfigContext.Provider, {
|
|
22906
22932
|
value: config
|
|
22907
22933
|
}, /*#__PURE__*/React.createElement(ToastContainer, {
|
|
22908
22934
|
ref: toastRef,
|
|
@@ -41225,10 +41251,9 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
41225
41251
|
}
|
|
41226
41252
|
}, []);
|
|
41227
41253
|
return /*#__PURE__*/React.createElement(StyledContainer$3, {
|
|
41228
|
-
testID: testID
|
|
41229
|
-
}, /*#__PURE__*/React.createElement(StyledTextInputContainer, null, /*#__PURE__*/React.createElement(StyledBorderBackDrop, {
|
|
41254
|
+
testID: testID,
|
|
41230
41255
|
themeVariant: variant
|
|
41231
|
-
}
|
|
41256
|
+
}, /*#__PURE__*/React.createElement(StyledTextInputContainer, null, (isFocused || label && !isEmptyValue) && /*#__PURE__*/React.createElement(StyledLabelContainer, {
|
|
41232
41257
|
pointerEvents: "none"
|
|
41233
41258
|
}, required && /*#__PURE__*/React.createElement(StyledAsteriskLabel, {
|
|
41234
41259
|
themeVariant: variant,
|