@hero-design/rn 7.22.2 → 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 +271 -242
- package/lib/index.js +271 -242
- 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__/DatePickerIOS.spec.tsx.snap +1 -1
- 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/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +2 -2
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +12 -12
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +2 -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 +1 -1
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +1 -1
- package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +1 -1
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +4 -4
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +13 -9
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +18 -18
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -1
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -8
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- 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/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +10 -10
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +14 -14
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +1 -1
- 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 +92 -85
- 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 +6 -7
- 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 -35
- package/src/theme/global/colors/types.ts +46 -27
- 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/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/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 -21
- package/types/theme/global/index.d.ts +28 -20
package/es/index.js
CHANGED
|
@@ -1257,90 +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
|
-
__alpha__lightHighlightedSurface: '#ECE8EF'
|
|
1333
|
-
};
|
|
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
|
+
});
|
|
1334
1358
|
|
|
1335
1359
|
var workSystemPalette = _objectSpread2(_objectSpread2({}, swagSystemPalette), {}, {
|
|
1336
1360
|
primary: palette.gold,
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
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
|
|
1344
1369
|
});
|
|
1345
1370
|
|
|
1346
1371
|
var BASE_WIDTH = 390; // Based on iPhone 13's viewport size
|
|
@@ -1487,7 +1512,7 @@ var getGlobalTheme = function getGlobalTheme(scale, systemPalette) {
|
|
|
1487
1512
|
|
|
1488
1513
|
var getAccordionTheme = function getAccordionTheme(theme) {
|
|
1489
1514
|
var colors = {
|
|
1490
|
-
background: theme.colors.
|
|
1515
|
+
background: theme.colors.defaultGlobalSurface
|
|
1491
1516
|
};
|
|
1492
1517
|
var space = {
|
|
1493
1518
|
padding: theme.space.medium
|
|
@@ -1506,10 +1531,10 @@ var getAlertTheme = function getAlertTheme(theme) {
|
|
|
1506
1531
|
var colors = {
|
|
1507
1532
|
success: theme.colors.success,
|
|
1508
1533
|
warning: theme.colors.warning,
|
|
1509
|
-
error: theme.colors.
|
|
1510
|
-
info: theme.colors.
|
|
1511
|
-
notification: theme.colors.
|
|
1512
|
-
divider: theme.colors.
|
|
1534
|
+
error: theme.colors.error,
|
|
1535
|
+
info: theme.colors.info,
|
|
1536
|
+
notification: theme.colors.defaultGlobalSurface,
|
|
1537
|
+
divider: theme.colors.globalSecondaryOutline
|
|
1513
1538
|
};
|
|
1514
1539
|
var sizes = {
|
|
1515
1540
|
height: theme.sizes.xxxlarge
|
|
@@ -1537,9 +1562,9 @@ var getAlertTheme = function getAlertTheme(theme) {
|
|
|
1537
1562
|
|
|
1538
1563
|
var getAvatarTheme = function getAvatarTheme(theme) {
|
|
1539
1564
|
var colors = {
|
|
1540
|
-
primary: theme.colors.
|
|
1565
|
+
primary: theme.colors.globalPrimary,
|
|
1541
1566
|
info: theme.colors.info,
|
|
1542
|
-
danger: theme.colors.
|
|
1567
|
+
danger: theme.colors.error,
|
|
1543
1568
|
success: theme.colors.success,
|
|
1544
1569
|
warning: theme.colors.warning
|
|
1545
1570
|
};
|
|
@@ -1580,12 +1605,12 @@ var getAvatarTheme = function getAvatarTheme(theme) {
|
|
|
1580
1605
|
|
|
1581
1606
|
var getBadgeTheme = function getBadgeTheme(theme) {
|
|
1582
1607
|
var colors = {
|
|
1583
|
-
danger: theme.colors.
|
|
1584
|
-
info: theme.colors.
|
|
1585
|
-
success: theme.colors.
|
|
1586
|
-
warning: theme.colors.
|
|
1587
|
-
archived: theme.colors.
|
|
1588
|
-
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
|
|
1589
1614
|
};
|
|
1590
1615
|
var fonts = {
|
|
1591
1616
|
"default": theme.fonts.semiBold
|
|
@@ -1615,8 +1640,8 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
1615
1640
|
|
|
1616
1641
|
var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
|
|
1617
1642
|
var colors = {
|
|
1618
|
-
shadow: theme.colors.
|
|
1619
|
-
background: theme.colors.
|
|
1643
|
+
shadow: theme.colors.globalPrimary,
|
|
1644
|
+
background: theme.colors.defaultGlobalSurface
|
|
1620
1645
|
};
|
|
1621
1646
|
var sizes = {
|
|
1622
1647
|
height: theme.sizes['6xlarge']
|
|
@@ -1643,9 +1668,9 @@ var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
|
|
|
1643
1668
|
|
|
1644
1669
|
var getBottomSheetTheme = function getBottomSheetTheme(theme) {
|
|
1645
1670
|
var colors = {
|
|
1646
|
-
shadow: theme.colors.
|
|
1647
|
-
background: theme.colors.
|
|
1648
|
-
backdrop: theme.colors.
|
|
1671
|
+
shadow: theme.colors.globalPrimary,
|
|
1672
|
+
background: theme.colors.defaultGlobalSurface,
|
|
1673
|
+
backdrop: theme.colors.globalPrimary
|
|
1649
1674
|
};
|
|
1650
1675
|
var sizes = {
|
|
1651
1676
|
sectionHeight: theme.sizes.xxxxxlarge,
|
|
@@ -1709,28 +1734,28 @@ var getButtonTheme = function getButtonTheme(theme) {
|
|
|
1709
1734
|
};
|
|
1710
1735
|
var colors = {
|
|
1711
1736
|
primary: theme.colors.globalPrimary,
|
|
1712
|
-
pressedPrimary: theme.colors.
|
|
1737
|
+
pressedPrimary: theme.colors.globalSecondary,
|
|
1713
1738
|
secondary: theme.colors.secondary,
|
|
1714
|
-
pressedSecondary: theme.colors.
|
|
1715
|
-
danger: theme.colors.
|
|
1716
|
-
pressedDanger: theme.colors.
|
|
1717
|
-
defaultText: theme.colors.
|
|
1718
|
-
disabledText: theme.colors.
|
|
1719
|
-
disabledBorder: theme.colors.
|
|
1720
|
-
disabledBackground: theme.colors.
|
|
1721
|
-
invertedText: theme.colors.
|
|
1722
|
-
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,
|
|
1723
1748
|
underlayColors: {
|
|
1724
|
-
'filled-primary': theme.colors.
|
|
1725
|
-
'filled-secondary': theme.colors.
|
|
1726
|
-
'filled-danger': theme.colors.
|
|
1727
|
-
'outlined-primary': theme.colors.
|
|
1728
|
-
'outlined-secondary': theme.colors.
|
|
1729
|
-
'outlined-danger': theme.colors.
|
|
1730
|
-
'text-primary': theme.colors.
|
|
1731
|
-
'text-secondary': theme.colors.
|
|
1732
|
-
'text-danger': theme.colors.
|
|
1733
|
-
'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
|
|
1734
1759
|
}
|
|
1735
1760
|
};
|
|
1736
1761
|
return {
|
|
@@ -1747,10 +1772,10 @@ var getButtonTheme = function getButtonTheme(theme) {
|
|
|
1747
1772
|
|
|
1748
1773
|
var getCalendarTheme = function getCalendarTheme(theme) {
|
|
1749
1774
|
var colors = {
|
|
1750
|
-
background: theme.colors.
|
|
1751
|
-
border: theme.colors.
|
|
1752
|
-
primary: theme.colors.
|
|
1753
|
-
inverted: theme.colors.
|
|
1775
|
+
background: theme.colors.defaultGlobalSurface,
|
|
1776
|
+
border: theme.colors.globalPrimaryOutline,
|
|
1777
|
+
primary: theme.colors.globalPrimary,
|
|
1778
|
+
inverted: theme.colors.onGlobalPrimary
|
|
1754
1779
|
};
|
|
1755
1780
|
var cellSize = theme.sizes.xxxlarge;
|
|
1756
1781
|
var markSize = theme.sizes.xsmall;
|
|
@@ -1780,13 +1805,13 @@ var getCalendarTheme = function getCalendarTheme(theme) {
|
|
|
1780
1805
|
|
|
1781
1806
|
var getCardTheme = function getCardTheme(theme) {
|
|
1782
1807
|
var colors = {
|
|
1783
|
-
dataCardIndicator: theme.colors.
|
|
1784
|
-
primary: theme.colors.
|
|
1785
|
-
info: theme.colors.
|
|
1808
|
+
dataCardIndicator: theme.colors.globalPrimary,
|
|
1809
|
+
primary: theme.colors.primary,
|
|
1810
|
+
info: theme.colors.info,
|
|
1786
1811
|
success: theme.colors.success,
|
|
1787
1812
|
warning: theme.colors.warning,
|
|
1788
|
-
danger: theme.colors.
|
|
1789
|
-
archived: theme.colors.
|
|
1813
|
+
danger: theme.colors.error,
|
|
1814
|
+
archived: theme.colors.archived
|
|
1790
1815
|
};
|
|
1791
1816
|
var sizes = {
|
|
1792
1817
|
indicatorWidth: theme.sizes.medium
|
|
@@ -1804,7 +1829,7 @@ var getCardTheme = function getCardTheme(theme) {
|
|
|
1804
1829
|
var getCheckboxTheme = function getCheckboxTheme(theme) {
|
|
1805
1830
|
var colors = {
|
|
1806
1831
|
"default": theme.colors.globalPrimary,
|
|
1807
|
-
disabledBorder: theme.colors.
|
|
1832
|
+
disabledBorder: theme.colors.mutedGlobalPrimary
|
|
1808
1833
|
};
|
|
1809
1834
|
var space = {
|
|
1810
1835
|
iconTop: 0,
|
|
@@ -1851,7 +1876,7 @@ var getDatePickerTheme = function getDatePickerTheme(theme) {
|
|
|
1851
1876
|
|
|
1852
1877
|
var getDividerTheme = function getDividerTheme(theme) {
|
|
1853
1878
|
var colors = {
|
|
1854
|
-
"default": theme.colors.
|
|
1879
|
+
"default": theme.colors.globalSecondaryOutline
|
|
1855
1880
|
};
|
|
1856
1881
|
var space = {
|
|
1857
1882
|
xsmall: theme.space.xsmall,
|
|
@@ -1872,10 +1897,10 @@ var getDividerTheme = function getDividerTheme(theme) {
|
|
|
1872
1897
|
|
|
1873
1898
|
var getDrawerTheme = function getDrawerTheme(theme) {
|
|
1874
1899
|
var colors = {
|
|
1875
|
-
shadow: theme.colors.
|
|
1876
|
-
background: theme.colors.
|
|
1877
|
-
backdrop: theme.colors.
|
|
1878
|
-
handler: theme.colors.
|
|
1900
|
+
shadow: theme.colors.globalPrimary,
|
|
1901
|
+
background: theme.colors.defaultGlobalSurface,
|
|
1902
|
+
backdrop: theme.colors.defaultGlobalSurface,
|
|
1903
|
+
handler: theme.colors.globalPrimary
|
|
1879
1904
|
};
|
|
1880
1905
|
var radii = {
|
|
1881
1906
|
"default": theme.radii.xlarge,
|
|
@@ -1916,10 +1941,9 @@ var getEmptyTheme = function getEmptyTheme(theme) {
|
|
|
1916
1941
|
image: theme.sizes['18xlarge']
|
|
1917
1942
|
};
|
|
1918
1943
|
var colors = {
|
|
1919
|
-
text: theme.colors.
|
|
1920
|
-
invertedText: theme.colors.
|
|
1921
|
-
subduedText: theme.colors.
|
|
1922
|
-
illustrationBackground: theme.colors.shadow
|
|
1944
|
+
text: theme.colors.globalPrimary,
|
|
1945
|
+
invertedText: theme.colors.onGlobalPrimary,
|
|
1946
|
+
subduedText: theme.colors.globalSecondary
|
|
1923
1947
|
};
|
|
1924
1948
|
var fontSizes = {
|
|
1925
1949
|
title: theme.fontSizes.xxxxlarge,
|
|
@@ -1940,13 +1964,13 @@ var getEmptyTheme = function getEmptyTheme(theme) {
|
|
|
1940
1964
|
|
|
1941
1965
|
var getFABTheme = function getFABTheme(theme) {
|
|
1942
1966
|
var colors = {
|
|
1943
|
-
buttonBackground: theme.colors.
|
|
1944
|
-
icon: theme.colors.
|
|
1945
|
-
headerText: theme.colors.
|
|
1946
|
-
actionItemBackground: theme.colors.
|
|
1947
|
-
backdropBackground: theme.colors.
|
|
1948
|
-
titleText: theme.colors.
|
|
1949
|
-
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
|
|
1950
1974
|
};
|
|
1951
1975
|
var sizes = {
|
|
1952
1976
|
width: theme.sizes.xxxxxlarge,
|
|
@@ -2000,14 +2024,15 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
2000
2024
|
|
|
2001
2025
|
var getIconTheme = function getIconTheme(theme) {
|
|
2002
2026
|
var colors = {
|
|
2003
|
-
text: theme.colors.
|
|
2027
|
+
text: theme.colors.globalPrimary,
|
|
2004
2028
|
primary: theme.colors.primary,
|
|
2029
|
+
secondary: theme.colors.secondary,
|
|
2005
2030
|
info: theme.colors.info,
|
|
2006
2031
|
danger: theme.colors.danger,
|
|
2007
2032
|
success: theme.colors.success,
|
|
2008
2033
|
warning: theme.colors.warning,
|
|
2009
|
-
disabledText: theme.colors.
|
|
2010
|
-
invertedText: theme.colors.
|
|
2034
|
+
disabledText: theme.colors.mutedGlobalPrimary,
|
|
2035
|
+
invertedText: theme.colors.defaultGlobalSurface
|
|
2011
2036
|
};
|
|
2012
2037
|
var sizes = {
|
|
2013
2038
|
xsmall: theme.fontSizes.large,
|
|
@@ -2034,15 +2059,15 @@ var getImageTheme = function getImageTheme(theme) {
|
|
|
2034
2059
|
|
|
2035
2060
|
var getListTheme = function getListTheme(theme) {
|
|
2036
2061
|
var colors = {
|
|
2037
|
-
checkedListItemContainerBackground: theme.colors.
|
|
2038
|
-
highlightedListItemContainerBackground: theme.colors.
|
|
2039
|
-
listItemContainerBackground: theme.colors.
|
|
2062
|
+
checkedListItemContainerBackground: theme.colors.highlightedSurface,
|
|
2063
|
+
highlightedListItemContainerBackground: theme.colors.lightHighlightedSurface,
|
|
2064
|
+
listItemContainerBackground: theme.colors.defaultGlobalSurface,
|
|
2040
2065
|
leadingStatus: {
|
|
2041
|
-
danger: theme.colors.
|
|
2042
|
-
info: theme.colors.
|
|
2066
|
+
danger: theme.colors.error,
|
|
2067
|
+
info: theme.colors.info,
|
|
2043
2068
|
success: theme.colors.success,
|
|
2044
2069
|
warning: theme.colors.warning,
|
|
2045
|
-
archived: theme.colors.
|
|
2070
|
+
archived: theme.colors.archived
|
|
2046
2071
|
}
|
|
2047
2072
|
};
|
|
2048
2073
|
var space = {
|
|
@@ -2088,10 +2113,10 @@ var getPinInputTheme = function getPinInputTheme(theme) {
|
|
|
2088
2113
|
focused: theme.borderWidths.medium
|
|
2089
2114
|
};
|
|
2090
2115
|
var colors = {
|
|
2091
|
-
"default": theme.colors.
|
|
2092
|
-
mask: theme.colors.
|
|
2093
|
-
error: theme.colors.
|
|
2094
|
-
disabled: theme.colors.
|
|
2116
|
+
"default": theme.colors.globalPrimary,
|
|
2117
|
+
mask: theme.colors.mutedGlobalPrimary,
|
|
2118
|
+
error: theme.colors.error,
|
|
2119
|
+
disabled: theme.colors.mutedGlobalPrimary
|
|
2095
2120
|
};
|
|
2096
2121
|
var fonts = {
|
|
2097
2122
|
cellText: theme.fonts.semiBold,
|
|
@@ -2129,11 +2154,11 @@ var getProgressTheme = function getProgressTheme(theme) {
|
|
|
2129
2154
|
var colors = {
|
|
2130
2155
|
primary: theme.colors.primary,
|
|
2131
2156
|
success: theme.colors.success,
|
|
2132
|
-
warning: theme.colors.
|
|
2157
|
+
warning: theme.colors.warning,
|
|
2133
2158
|
danger: theme.colors.danger,
|
|
2134
2159
|
info: theme.colors.info,
|
|
2135
|
-
background: theme.colors.
|
|
2136
|
-
innerBackground: theme.colors.
|
|
2160
|
+
background: theme.colors.globalSecondaryOutline,
|
|
2161
|
+
innerBackground: theme.colors.defaultGlobalSurface
|
|
2137
2162
|
};
|
|
2138
2163
|
var sizes = {
|
|
2139
2164
|
circleWidth: theme.sizes['6xlarge'],
|
|
@@ -2178,9 +2203,9 @@ var getRadioTheme = function getRadioTheme(theme) {
|
|
|
2178
2203
|
|
|
2179
2204
|
var getRichTextEditorTheme = function getRichTextEditorTheme(theme) {
|
|
2180
2205
|
var colors = {
|
|
2181
|
-
toolbarBorderColor: theme.colors.
|
|
2182
|
-
toolbarBackgroundColor: theme.colors.
|
|
2183
|
-
toolbarButtonSelectedBackground: theme.colors.
|
|
2206
|
+
toolbarBorderColor: theme.colors.globalSecondaryOutline,
|
|
2207
|
+
toolbarBackgroundColor: theme.colors.neutralGlobalSurface,
|
|
2208
|
+
toolbarButtonSelectedBackground: theme.colors.lightHighlightedSurface
|
|
2184
2209
|
};
|
|
2185
2210
|
var borderWidths = {
|
|
2186
2211
|
webViewBorderBottomWidth: 0.8
|
|
@@ -2210,7 +2235,7 @@ var getRichTextEditorTheme = function getRichTextEditorTheme(theme) {
|
|
|
2210
2235
|
|
|
2211
2236
|
var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
|
|
2212
2237
|
var colors = {
|
|
2213
|
-
background: theme.colors.
|
|
2238
|
+
background: theme.colors.neutralGlobalSurface
|
|
2214
2239
|
};
|
|
2215
2240
|
var space = {
|
|
2216
2241
|
headingVerticalPadding: theme.space.small,
|
|
@@ -2226,7 +2251,7 @@ var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
|
|
|
2226
2251
|
|
|
2227
2252
|
var getSelectTheme = function getSelectTheme(theme) {
|
|
2228
2253
|
var colors = {
|
|
2229
|
-
footerText: theme.colors.
|
|
2254
|
+
footerText: theme.colors.secondary
|
|
2230
2255
|
};
|
|
2231
2256
|
var space = {
|
|
2232
2257
|
minimumOptionListHeight: theme.space.xxxxlarge * 5,
|
|
@@ -2249,9 +2274,9 @@ var getSelectTheme = function getSelectTheme(theme) {
|
|
|
2249
2274
|
|
|
2250
2275
|
var getSliderTheme = function getSliderTheme(theme) {
|
|
2251
2276
|
var colors = {
|
|
2252
|
-
minimumTrackTint: theme.colors.
|
|
2253
|
-
thumbTint: theme.colors.
|
|
2254
|
-
maximumTrackTint: theme.colors.
|
|
2277
|
+
minimumTrackTint: theme.colors.secondary,
|
|
2278
|
+
thumbTint: theme.colors.neutralGlobalSurface,
|
|
2279
|
+
maximumTrackTint: theme.colors.lightHighlightedSurface
|
|
2255
2280
|
};
|
|
2256
2281
|
return {
|
|
2257
2282
|
colors: colors
|
|
@@ -2260,10 +2285,7 @@ var getSliderTheme = function getSliderTheme(theme) {
|
|
|
2260
2285
|
|
|
2261
2286
|
var getSpinnerTheme = function getSpinnerTheme(theme) {
|
|
2262
2287
|
var colors = {
|
|
2263
|
-
|
|
2264
|
-
dot2: theme.colors.__alpha__secondary2,
|
|
2265
|
-
dot3: theme.colors.__alpha__secondary3,
|
|
2266
|
-
dot4: theme.colors.__alpha__secondary4
|
|
2288
|
+
dot: theme.colors.primary
|
|
2267
2289
|
};
|
|
2268
2290
|
var space = {
|
|
2269
2291
|
spinnerDot: {
|
|
@@ -2292,15 +2314,15 @@ var getSpinnerTheme = function getSpinnerTheme(theme) {
|
|
|
2292
2314
|
var getSwitchTheme = function getSwitchTheme(theme) {
|
|
2293
2315
|
var colors = {
|
|
2294
2316
|
backgroundColors: {
|
|
2295
|
-
checked: theme.colors.
|
|
2296
|
-
unchecked: theme.colors.
|
|
2297
|
-
'disabled-checked': theme.colors.
|
|
2298
|
-
'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
|
|
2299
2321
|
},
|
|
2300
|
-
thumb: theme.colors.
|
|
2322
|
+
thumb: theme.colors.onSecondary,
|
|
2301
2323
|
selector: {
|
|
2302
|
-
background: theme.colors.
|
|
2303
|
-
textBackground: theme.colors.
|
|
2324
|
+
background: theme.colors.neutralGlobalSurface,
|
|
2325
|
+
textBackground: theme.colors.secondary
|
|
2304
2326
|
}
|
|
2305
2327
|
};
|
|
2306
2328
|
var sizes = {
|
|
@@ -2344,11 +2366,11 @@ var getSwitchTheme = function getSwitchTheme(theme) {
|
|
|
2344
2366
|
|
|
2345
2367
|
var getTabsTheme = function getTabsTheme(theme) {
|
|
2346
2368
|
var colors = {
|
|
2347
|
-
active: theme.colors.
|
|
2348
|
-
inactive: theme.colors.
|
|
2349
|
-
activeBackground: theme.colors.
|
|
2350
|
-
headerBottom: theme.colors.
|
|
2351
|
-
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
|
|
2352
2374
|
};
|
|
2353
2375
|
var space = {
|
|
2354
2376
|
flatListHorizontalPadding: theme.space.small,
|
|
@@ -2381,20 +2403,20 @@ var getTagTheme = function getTagTheme(theme) {
|
|
|
2381
2403
|
"default": theme.borderWidths.base
|
|
2382
2404
|
};
|
|
2383
2405
|
var colors = {
|
|
2384
|
-
"default": theme.colors.
|
|
2406
|
+
"default": theme.colors.globalPrimary,
|
|
2385
2407
|
defaultBackground: undefined,
|
|
2386
|
-
primary: theme.colors.
|
|
2408
|
+
primary: theme.colors.globalPrimary,
|
|
2387
2409
|
primaryBackground: undefined,
|
|
2388
|
-
info: theme.colors.
|
|
2389
|
-
infoBackground: theme.colors.
|
|
2390
|
-
success: theme.colors.
|
|
2391
|
-
successBackground: theme.colors.
|
|
2392
|
-
warning: theme.colors.
|
|
2393
|
-
warningBackground: theme.colors.
|
|
2394
|
-
danger: theme.colors.
|
|
2395
|
-
dangerBackground: theme.colors.
|
|
2396
|
-
archived: theme.colors.
|
|
2397
|
-
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
|
|
2398
2420
|
};
|
|
2399
2421
|
var fonts = {
|
|
2400
2422
|
"default": theme.fonts.semiBold
|
|
@@ -2421,53 +2443,53 @@ var getTagTheme = function getTagTheme(theme) {
|
|
|
2421
2443
|
|
|
2422
2444
|
var getTextInputTheme = function getTextInputTheme(theme) {
|
|
2423
2445
|
var colors = {
|
|
2424
|
-
labelBackground: theme.colors.
|
|
2446
|
+
labelBackground: theme.colors.defaultGlobalSurface,
|
|
2425
2447
|
asterisks: {
|
|
2426
|
-
"default": theme.colors.
|
|
2427
|
-
error: theme.colors.
|
|
2428
|
-
disabled: theme.colors.
|
|
2429
|
-
readonly: theme.colors.
|
|
2430
|
-
filled: theme.colors.
|
|
2431
|
-
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
|
|
2432
2454
|
},
|
|
2433
|
-
error: theme.colors.
|
|
2434
|
-
placeholderIfNotFocused: theme.colors.
|
|
2435
|
-
placeholderIfFocued: theme.colors.
|
|
2436
|
-
label: theme.colors.
|
|
2437
|
-
readonlyLabel: theme.colors.
|
|
2438
|
-
disabledLabel: theme.colors.
|
|
2439
|
-
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,
|
|
2440
2462
|
borders: {
|
|
2441
|
-
"default": theme.colors.
|
|
2442
|
-
error: theme.colors.
|
|
2443
|
-
disabled: theme.colors.
|
|
2444
|
-
readonly: theme.colors.
|
|
2445
|
-
filled: theme.colors.
|
|
2446
|
-
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
|
|
2447
2469
|
},
|
|
2448
2470
|
labels: {
|
|
2449
|
-
"default": theme.colors.
|
|
2450
|
-
error: theme.colors.
|
|
2451
|
-
disabled: theme.colors.
|
|
2452
|
-
readonly: theme.colors.
|
|
2453
|
-
filled: theme.colors.
|
|
2454
|
-
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
|
|
2455
2477
|
},
|
|
2456
2478
|
labelsInsideTextInput: {
|
|
2457
|
-
"default": theme.colors.
|
|
2458
|
-
error: theme.colors.
|
|
2459
|
-
disabled: theme.colors.
|
|
2460
|
-
readonly: theme.colors.
|
|
2461
|
-
filled: theme.colors.
|
|
2462
|
-
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
|
|
2463
2485
|
},
|
|
2464
2486
|
maxLengthLabels: {
|
|
2465
|
-
"default": theme.colors.
|
|
2466
|
-
error: theme.colors.
|
|
2467
|
-
disabled: theme.colors.
|
|
2468
|
-
readonly: theme.colors.
|
|
2469
|
-
filled: theme.colors.
|
|
2470
|
-
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
|
|
2471
2493
|
}
|
|
2472
2494
|
};
|
|
2473
2495
|
var space = {
|
|
@@ -2521,12 +2543,12 @@ var getToastTheme = function getToastTheme(theme) {
|
|
|
2521
2543
|
var colors = {
|
|
2522
2544
|
success: theme.colors.success,
|
|
2523
2545
|
warning: theme.colors.warning,
|
|
2524
|
-
error: theme.colors.
|
|
2525
|
-
info: theme.colors.
|
|
2526
|
-
notification: theme.colors.
|
|
2527
|
-
snackbar: theme.colors.
|
|
2528
|
-
divider: theme.colors.
|
|
2529
|
-
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
|
|
2530
2552
|
};
|
|
2531
2553
|
var sizes = {
|
|
2532
2554
|
height: theme.sizes.xxxlarge
|
|
@@ -2566,9 +2588,10 @@ var getToastTheme = function getToastTheme(theme) {
|
|
|
2566
2588
|
|
|
2567
2589
|
var getToolbarTheme = function getToolbarTheme(theme) {
|
|
2568
2590
|
var colors = {
|
|
2569
|
-
background: theme.colors.
|
|
2570
|
-
border: theme.colors.
|
|
2591
|
+
background: theme.colors.defaultGlobalSurface,
|
|
2592
|
+
border: theme.colors.globalSecondaryOutline,
|
|
2571
2593
|
primary: theme.colors.primary,
|
|
2594
|
+
secondary: theme.colors.secondary,
|
|
2572
2595
|
info: theme.colors.info,
|
|
2573
2596
|
success: theme.colors.success,
|
|
2574
2597
|
danger: theme.colors.warning,
|
|
@@ -2591,14 +2614,15 @@ var getToolbarTheme = function getToolbarTheme(theme) {
|
|
|
2591
2614
|
|
|
2592
2615
|
var getTypographyTheme = function getTypographyTheme(theme) {
|
|
2593
2616
|
var colors = {
|
|
2594
|
-
body: theme.colors.
|
|
2595
|
-
subdued: theme.colors.
|
|
2617
|
+
body: theme.colors.globalPrimary,
|
|
2618
|
+
subdued: theme.colors.mutedGlobalPrimary,
|
|
2596
2619
|
primary: theme.colors.primary,
|
|
2620
|
+
secondary: theme.colors.secondary,
|
|
2597
2621
|
info: theme.colors.info,
|
|
2598
2622
|
danger: theme.colors.danger,
|
|
2599
2623
|
warning: theme.colors.warning,
|
|
2600
2624
|
success: theme.colors.success,
|
|
2601
|
-
inverted: theme.colors.
|
|
2625
|
+
inverted: theme.colors.onGlobalPrimary
|
|
2602
2626
|
};
|
|
2603
2627
|
var fonts = {
|
|
2604
2628
|
light: theme.fonts.light,
|
|
@@ -14574,6 +14598,7 @@ var HeroIcon = createIconSetFromIcoMoon(heroIconConfig, 'hero-icons', 'hero-icon
|
|
|
14574
14598
|
var COLOR_INTENTS = {
|
|
14575
14599
|
text: 'text',
|
|
14576
14600
|
primary: 'primary',
|
|
14601
|
+
secondary: 'secondary',
|
|
14577
14602
|
info: 'info',
|
|
14578
14603
|
danger: 'danger',
|
|
14579
14604
|
success: 'success',
|
|
@@ -14669,7 +14694,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
14669
14694
|
fontWeight: "semi-bold"
|
|
14670
14695
|
}, header) : header, /*#__PURE__*/React.createElement(Icon, {
|
|
14671
14696
|
icon: open ? 'arrow-up' : 'arrow-down',
|
|
14672
|
-
intent: "
|
|
14697
|
+
intent: "secondary",
|
|
14673
14698
|
size: "small"
|
|
14674
14699
|
})), /*#__PURE__*/React.createElement(StyledCollapse, {
|
|
14675
14700
|
open: open
|
|
@@ -20970,24 +20995,28 @@ var StyledSpinnerDot = index$8(View)(function (_ref2) {
|
|
|
20970
20995
|
switch (themePosition) {
|
|
20971
20996
|
case 'topLeft':
|
|
20972
20997
|
return {
|
|
20973
|
-
backgroundColor: theme.__hd__.spinner.colors.
|
|
20998
|
+
backgroundColor: theme.__hd__.spinner.colors.dot,
|
|
20999
|
+
opacity: 1
|
|
20974
21000
|
};
|
|
20975
21001
|
|
|
20976
21002
|
case 'topRight':
|
|
20977
21003
|
return {
|
|
20978
21004
|
marginLeft: theme.__hd__.spinner.space.spinnerDotPadding[themeSize],
|
|
20979
|
-
backgroundColor: theme.__hd__.spinner.colors.
|
|
21005
|
+
backgroundColor: theme.__hd__.spinner.colors.dot,
|
|
21006
|
+
opacity: 0.75
|
|
20980
21007
|
};
|
|
20981
21008
|
|
|
20982
21009
|
case 'bottomLeft':
|
|
20983
21010
|
return {
|
|
20984
|
-
backgroundColor: theme.__hd__.spinner.colors.
|
|
21011
|
+
backgroundColor: theme.__hd__.spinner.colors.dot,
|
|
21012
|
+
opacity: 0.5
|
|
20985
21013
|
};
|
|
20986
21014
|
|
|
20987
21015
|
case 'bottomRight':
|
|
20988
21016
|
return {
|
|
20989
21017
|
marginLeft: theme.__hd__.spinner.space.spinnerDotPadding[themeSize],
|
|
20990
|
-
backgroundColor: theme.__hd__.spinner.colors.
|
|
21018
|
+
backgroundColor: theme.__hd__.spinner.colors.dot,
|
|
21019
|
+
opacity: 0.25
|
|
20991
21020
|
};
|
|
20992
21021
|
}
|
|
20993
21022
|
};
|
|
@@ -22168,9 +22197,9 @@ var ScrollableTab = function ScrollableTab(_ref2) {
|
|
|
22168
22197
|
testID: componentTestID
|
|
22169
22198
|
}, /*#__PURE__*/React.createElement(HeaderTabWrapper, {
|
|
22170
22199
|
themeInsets: insets,
|
|
22171
|
-
style: barStyle
|
|
22172
|
-
testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined
|
|
22200
|
+
style: barStyle
|
|
22173
22201
|
}, /*#__PURE__*/React.createElement(FlatList, {
|
|
22202
|
+
testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined,
|
|
22174
22203
|
ref: flatListRef,
|
|
22175
22204
|
horizontal: true,
|
|
22176
22205
|
data: tabs,
|
|
@@ -22877,7 +22906,7 @@ var ToastProvider = function ToastProvider(_ref) {
|
|
|
22877
22906
|
position = _ref$position === void 0 ? 'top' : _ref$position;
|
|
22878
22907
|
var toastRef = useRef(null);
|
|
22879
22908
|
|
|
22880
|
-
var _useState = useState(
|
|
22909
|
+
var _useState = useState(null),
|
|
22881
22910
|
_useState2 = _slicedToArray(_useState, 2),
|
|
22882
22911
|
refState = _useState2[0],
|
|
22883
22912
|
setRefState = _useState2[1];
|
|
@@ -22899,7 +22928,7 @@ var ToastProvider = function ToastProvider(_ref) {
|
|
|
22899
22928
|
style: {
|
|
22900
22929
|
flex: 1
|
|
22901
22930
|
}
|
|
22902
|
-
}, children, /*#__PURE__*/React.createElement(ToastConfigContext.Provider, {
|
|
22931
|
+
}, refState ? children : null, /*#__PURE__*/React.createElement(ToastConfigContext.Provider, {
|
|
22903
22932
|
value: config
|
|
22904
22933
|
}, /*#__PURE__*/React.createElement(ToastContainer, {
|
|
22905
22934
|
ref: toastRef,
|