@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/lib/index.js
CHANGED
|
@@ -1286,90 +1286,115 @@ Object.assign(Object.assign({}, palette$5), {
|
|
|
1286
1286
|
cornflowerBlue: cornflowerBlue.base,
|
|
1287
1287
|
paua: paua.base
|
|
1288
1288
|
});
|
|
1289
|
-
var gold$1 = colorScales.gold
|
|
1289
|
+
var gold$1 = colorScales.gold,
|
|
1290
|
+
violet$2 = colorScales.violet;
|
|
1290
1291
|
var palette = Object.assign(Object.assign({}, palette$5), {
|
|
1291
1292
|
goldLight20: gold$1.lighten20,
|
|
1292
1293
|
goldLight50: gold$1.lighten50,
|
|
1293
1294
|
goldLight70: gold$1.lighten70,
|
|
1294
1295
|
goldLight90: gold$1.lighten90,
|
|
1295
|
-
gold: gold$1.base
|
|
1296
|
+
gold: gold$1.base,
|
|
1297
|
+
violet: violet$2.base,
|
|
1298
|
+
violetLight50: violet$2.lighten50,
|
|
1299
|
+
violetLight80: violet$2.lighten80,
|
|
1300
|
+
violetLight90: violet$2.lighten90
|
|
1296
1301
|
});
|
|
1297
1302
|
|
|
1298
|
-
var
|
|
1303
|
+
var globalPalette = {
|
|
1299
1304
|
globalPrimary: palette$5.maasstrichtBlue,
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1305
|
+
mutedGlobalPrimary: palette$5.maasstrichtBlueLight30,
|
|
1306
|
+
onGlobalPrimary: palette$5.white,
|
|
1307
|
+
globalSecondary: palette$5.maasstrichtBlueLight30,
|
|
1308
|
+
globalPrimaryOutline: palette$5.maasstrichtBlue,
|
|
1309
|
+
globalSecondaryOutline: palette$5.greyLight75,
|
|
1310
|
+
defaultGlobalSurface: palette$5.white,
|
|
1311
|
+
onDefaultGlobalSurface: palette$5.maasstrichtBlue,
|
|
1312
|
+
neutralGlobalSurface: palette$5.greyLight90,
|
|
1313
|
+
disabledOnDefaultGlobalSurface: palette$5.greyLight30,
|
|
1314
|
+
error: palette$5.pastelRed,
|
|
1315
|
+
errorSurface: palette$5.linen,
|
|
1316
|
+
onErrorSurface: palette$5.vermilion,
|
|
1317
|
+
warning: palette$5.mellowApricot,
|
|
1318
|
+
warningSurface: palette$5.seashell,
|
|
1319
|
+
onWarningSurface: palette$5.deepSaffron,
|
|
1320
|
+
success: palette$5.emerald,
|
|
1321
|
+
successSurface: palette$5.honeydew,
|
|
1322
|
+
onSuccessSurface: palette$5.pineGreen,
|
|
1323
|
+
info: palette$5.vodka,
|
|
1324
|
+
infoSurface: palette$5.aliceBlue,
|
|
1325
|
+
onInfoSurface: palette$5.ultramarineBlue,
|
|
1326
|
+
archived: palette$5.greyLight45,
|
|
1327
|
+
archivedSurface: palette$5.antiFlashWhite,
|
|
1328
|
+
onArchivedSurface: palette$5.sonicSilver
|
|
1329
|
+
};
|
|
1330
|
+
|
|
1331
|
+
var swagSystemPalette = _objectSpread2(_objectSpread2({
|
|
1332
|
+
// Legacy
|
|
1333
|
+
globalPrimary: palette$2.maasstrichtBlue,
|
|
1334
|
+
globalPrimaryLight: palette$2.maasstrichtBlueLight50,
|
|
1335
|
+
globalPrimaryBackground: palette$2.maasstrichtBlueLight90,
|
|
1303
1336
|
primaryLight: palette$2.violetLight50,
|
|
1304
1337
|
primaryDark: palette$2.scarletGumLight30,
|
|
1305
1338
|
primaryBackground: palette$2.violetLight90,
|
|
1306
|
-
primaryBackgroundDark: palette$
|
|
1307
|
-
secondary: palette$2.ultramarineBlue,
|
|
1339
|
+
primaryBackgroundDark: palette$2.maasstrichtBlueLight30,
|
|
1308
1340
|
secondaryLight: palette$2.vodka,
|
|
1309
1341
|
secondaryBackground: palette$2.aliceBlue,
|
|
1310
|
-
info: palette$
|
|
1311
|
-
infoMediumLight: palette$
|
|
1312
|
-
infoLight: palette$
|
|
1313
|
-
infoBackground: palette$
|
|
1314
|
-
success: palette$
|
|
1315
|
-
successLight: palette$
|
|
1316
|
-
successDark: palette$
|
|
1317
|
-
successBackground: palette$
|
|
1318
|
-
danger: palette$
|
|
1319
|
-
dangerMediumLight: palette$
|
|
1320
|
-
dangerLight: palette$
|
|
1321
|
-
dangerBackground: palette$
|
|
1322
|
-
warning: palette$
|
|
1323
|
-
warningLight: palette$
|
|
1324
|
-
warningDark: palette$
|
|
1325
|
-
warningBackground: palette$
|
|
1326
|
-
platformBackground: palette$
|
|
1327
|
-
backgroundLight: palette$
|
|
1328
|
-
backgroundDark: palette$
|
|
1329
|
-
text: palette$
|
|
1330
|
-
subduedText: palette$
|
|
1331
|
-
disabledText: palette$
|
|
1332
|
-
disabledLightText: palette$
|
|
1333
|
-
invertedText: palette$
|
|
1334
|
-
outline: palette$
|
|
1335
|
-
archived: palette$
|
|
1336
|
-
archivedLight: palette$
|
|
1337
|
-
archivedDark: palette$
|
|
1338
|
-
archivedBackground: palette$
|
|
1339
|
-
black: palette$
|
|
1340
|
-
inactiveBackground: palette$
|
|
1341
|
-
shadow: palette$
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
__alpha__primary1: palette$2.scarletGum,
|
|
1356
|
-
__alpha__primary2: palette$2.mauve,
|
|
1357
|
-
__alpha__secondary1: palette$2.scarletGumLight30,
|
|
1358
|
-
__alpha__secondary2: palette$2.scarletGumLight50,
|
|
1359
|
-
__alpha__secondary3: palette$2.scarletGumLight80,
|
|
1360
|
-
__alpha__secondary4: palette$2.scarletGumLight90,
|
|
1361
|
-
__alpha__lightHighlightedSurface: '#ECE8EF'
|
|
1362
|
-
};
|
|
1342
|
+
info: palette$2.ultramarineBlue,
|
|
1343
|
+
infoMediumLight: palette$2.vodka,
|
|
1344
|
+
infoLight: palette$2.vodka,
|
|
1345
|
+
infoBackground: palette$2.aliceBlue,
|
|
1346
|
+
success: palette$2.emerald,
|
|
1347
|
+
successLight: palette$2.emerald,
|
|
1348
|
+
successDark: palette$2.pineGreen,
|
|
1349
|
+
successBackground: palette$2.honeydew,
|
|
1350
|
+
danger: palette$2.vermilion,
|
|
1351
|
+
dangerMediumLight: palette$2.apple,
|
|
1352
|
+
dangerLight: palette$2.pastelRed,
|
|
1353
|
+
dangerBackground: palette$2.linen,
|
|
1354
|
+
warning: palette$2.mellowApricot,
|
|
1355
|
+
warningLight: palette$2.mellowApricot,
|
|
1356
|
+
warningDark: palette$2.deepSaffron,
|
|
1357
|
+
warningBackground: palette$2.seashell,
|
|
1358
|
+
platformBackground: palette$2.white,
|
|
1359
|
+
backgroundLight: palette$2.greyLight90,
|
|
1360
|
+
backgroundDark: palette$2.maasstrichtBlue,
|
|
1361
|
+
text: palette$2.maasstrichtBlue,
|
|
1362
|
+
subduedText: palette$2.maasstrichtBlueLight30,
|
|
1363
|
+
disabledText: palette$2.maasstrichtBlueLight50,
|
|
1364
|
+
disabledLightText: palette$2.greyLight30,
|
|
1365
|
+
invertedText: palette$2.white,
|
|
1366
|
+
outline: palette$2.greyLight75,
|
|
1367
|
+
archived: palette$2.greyLight45,
|
|
1368
|
+
archivedLight: palette$2.greyLight30,
|
|
1369
|
+
archivedDark: palette$2.sonicSilver,
|
|
1370
|
+
archivedBackground: palette$2.greyLight90,
|
|
1371
|
+
black: palette$2.black,
|
|
1372
|
+
inactiveBackground: palette$2.maasstrichtBlueLight50,
|
|
1373
|
+
shadow: palette$2.greyLight45
|
|
1374
|
+
}, globalPalette), {}, {
|
|
1375
|
+
// Brand
|
|
1376
|
+
primary: palette$2.maasstrichtBlue,
|
|
1377
|
+
mutedPrimary: palette$2.maasstrichtBlueLight90,
|
|
1378
|
+
onPrimary: palette$2.white,
|
|
1379
|
+
secondary: palette$2.scarletGum,
|
|
1380
|
+
onSecondary: palette$2.white,
|
|
1381
|
+
mutedSecondary: palette$2.maasstrichtBlueLight50,
|
|
1382
|
+
disabledSecondary: palette$2.scarletGumLight50,
|
|
1383
|
+
highlightedSurface: palette$2.scarletGumLight80,
|
|
1384
|
+
highlightedSecondarySurface: palette$2.aliceBlue,
|
|
1385
|
+
lightHighlightedSurface: palette$2.scarletGumLight90
|
|
1386
|
+
});
|
|
1363
1387
|
|
|
1364
1388
|
var workSystemPalette = _objectSpread2(_objectSpread2({}, swagSystemPalette), {}, {
|
|
1365
1389
|
primary: palette.gold,
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1390
|
+
mutedPrimary: palette.goldLight90,
|
|
1391
|
+
onPrimary: palette.maasstrichtBlue,
|
|
1392
|
+
secondary: palette.violet,
|
|
1393
|
+
onSecondary: palette.white,
|
|
1394
|
+
mutedSecondary: palette.maasstrichtBlueLight50,
|
|
1395
|
+
disabledSecondary: palette.violetLight50,
|
|
1396
|
+
highlightedSurface: palette.violetLight80,
|
|
1397
|
+
lightHighlightedSurface: palette.violetLight90
|
|
1373
1398
|
});
|
|
1374
1399
|
|
|
1375
1400
|
var BASE_WIDTH = 390; // Based on iPhone 13's viewport size
|
|
@@ -1516,7 +1541,7 @@ var getGlobalTheme = function getGlobalTheme(scale, systemPalette) {
|
|
|
1516
1541
|
|
|
1517
1542
|
var getAccordionTheme = function getAccordionTheme(theme) {
|
|
1518
1543
|
var colors = {
|
|
1519
|
-
background: theme.colors.
|
|
1544
|
+
background: theme.colors.defaultGlobalSurface
|
|
1520
1545
|
};
|
|
1521
1546
|
var space = {
|
|
1522
1547
|
padding: theme.space.medium
|
|
@@ -1535,10 +1560,10 @@ var getAlertTheme = function getAlertTheme(theme) {
|
|
|
1535
1560
|
var colors = {
|
|
1536
1561
|
success: theme.colors.success,
|
|
1537
1562
|
warning: theme.colors.warning,
|
|
1538
|
-
error: theme.colors.
|
|
1539
|
-
info: theme.colors.
|
|
1540
|
-
notification: theme.colors.
|
|
1541
|
-
divider: theme.colors.
|
|
1563
|
+
error: theme.colors.error,
|
|
1564
|
+
info: theme.colors.info,
|
|
1565
|
+
notification: theme.colors.defaultGlobalSurface,
|
|
1566
|
+
divider: theme.colors.globalSecondaryOutline
|
|
1542
1567
|
};
|
|
1543
1568
|
var sizes = {
|
|
1544
1569
|
height: theme.sizes.xxxlarge
|
|
@@ -1566,9 +1591,9 @@ var getAlertTheme = function getAlertTheme(theme) {
|
|
|
1566
1591
|
|
|
1567
1592
|
var getAvatarTheme = function getAvatarTheme(theme) {
|
|
1568
1593
|
var colors = {
|
|
1569
|
-
primary: theme.colors.
|
|
1594
|
+
primary: theme.colors.globalPrimary,
|
|
1570
1595
|
info: theme.colors.info,
|
|
1571
|
-
danger: theme.colors.
|
|
1596
|
+
danger: theme.colors.error,
|
|
1572
1597
|
success: theme.colors.success,
|
|
1573
1598
|
warning: theme.colors.warning
|
|
1574
1599
|
};
|
|
@@ -1609,12 +1634,12 @@ var getAvatarTheme = function getAvatarTheme(theme) {
|
|
|
1609
1634
|
|
|
1610
1635
|
var getBadgeTheme = function getBadgeTheme(theme) {
|
|
1611
1636
|
var colors = {
|
|
1612
|
-
danger: theme.colors.
|
|
1613
|
-
info: theme.colors.
|
|
1614
|
-
success: theme.colors.
|
|
1615
|
-
warning: theme.colors.
|
|
1616
|
-
archived: theme.colors.
|
|
1617
|
-
text: theme.colors.
|
|
1637
|
+
danger: theme.colors.onErrorSurface,
|
|
1638
|
+
info: theme.colors.onInfoSurface,
|
|
1639
|
+
success: theme.colors.onSuccessSurface,
|
|
1640
|
+
warning: theme.colors.onWarningSurface,
|
|
1641
|
+
archived: theme.colors.onArchivedSurface,
|
|
1642
|
+
text: theme.colors.onGlobalPrimary
|
|
1618
1643
|
};
|
|
1619
1644
|
var fonts = {
|
|
1620
1645
|
"default": theme.fonts.semiBold
|
|
@@ -1644,8 +1669,8 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
1644
1669
|
|
|
1645
1670
|
var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
|
|
1646
1671
|
var colors = {
|
|
1647
|
-
shadow: theme.colors.
|
|
1648
|
-
background: theme.colors.
|
|
1672
|
+
shadow: theme.colors.globalPrimary,
|
|
1673
|
+
background: theme.colors.defaultGlobalSurface
|
|
1649
1674
|
};
|
|
1650
1675
|
var sizes = {
|
|
1651
1676
|
height: theme.sizes['6xlarge']
|
|
@@ -1672,9 +1697,9 @@ var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
|
|
|
1672
1697
|
|
|
1673
1698
|
var getBottomSheetTheme = function getBottomSheetTheme(theme) {
|
|
1674
1699
|
var colors = {
|
|
1675
|
-
shadow: theme.colors.
|
|
1676
|
-
background: theme.colors.
|
|
1677
|
-
backdrop: theme.colors.
|
|
1700
|
+
shadow: theme.colors.globalPrimary,
|
|
1701
|
+
background: theme.colors.defaultGlobalSurface,
|
|
1702
|
+
backdrop: theme.colors.globalPrimary
|
|
1678
1703
|
};
|
|
1679
1704
|
var sizes = {
|
|
1680
1705
|
sectionHeight: theme.sizes.xxxxxlarge,
|
|
@@ -1738,28 +1763,28 @@ var getButtonTheme = function getButtonTheme(theme) {
|
|
|
1738
1763
|
};
|
|
1739
1764
|
var colors = {
|
|
1740
1765
|
primary: theme.colors.globalPrimary,
|
|
1741
|
-
pressedPrimary: theme.colors.
|
|
1766
|
+
pressedPrimary: theme.colors.globalSecondary,
|
|
1742
1767
|
secondary: theme.colors.secondary,
|
|
1743
|
-
pressedSecondary: theme.colors.
|
|
1744
|
-
danger: theme.colors.
|
|
1745
|
-
pressedDanger: theme.colors.
|
|
1746
|
-
defaultText: theme.colors.
|
|
1747
|
-
disabledText: theme.colors.
|
|
1748
|
-
disabledBorder: theme.colors.
|
|
1749
|
-
disabledBackground: theme.colors.
|
|
1750
|
-
invertedText: theme.colors.
|
|
1751
|
-
utilityBackground: theme.colors.
|
|
1768
|
+
pressedSecondary: theme.colors.secondary,
|
|
1769
|
+
danger: theme.colors.onErrorSurface,
|
|
1770
|
+
pressedDanger: theme.colors.onErrorSurface,
|
|
1771
|
+
defaultText: theme.colors.onGlobalPrimary,
|
|
1772
|
+
disabledText: theme.colors.disabledOnDefaultGlobalSurface,
|
|
1773
|
+
disabledBorder: theme.colors.disabledOnDefaultGlobalSurface,
|
|
1774
|
+
disabledBackground: theme.colors.disabledOnDefaultGlobalSurface,
|
|
1775
|
+
invertedText: theme.colors.onGlobalPrimary,
|
|
1776
|
+
utilityBackground: theme.colors.neutralGlobalSurface,
|
|
1752
1777
|
underlayColors: {
|
|
1753
|
-
'filled-primary': theme.colors.
|
|
1754
|
-
'filled-secondary': theme.colors.
|
|
1755
|
-
'filled-danger': theme.colors.
|
|
1756
|
-
'outlined-primary': theme.colors.
|
|
1757
|
-
'outlined-secondary': theme.colors.
|
|
1758
|
-
'outlined-danger': theme.colors.
|
|
1759
|
-
'text-primary': theme.colors.
|
|
1760
|
-
'text-secondary': theme.colors.
|
|
1761
|
-
'text-danger': theme.colors.
|
|
1762
|
-
'basic-transparent': theme.colors.
|
|
1778
|
+
'filled-primary': theme.colors.mutedGlobalPrimary,
|
|
1779
|
+
'filled-secondary': theme.colors.mutedSecondary,
|
|
1780
|
+
'filled-danger': theme.colors.error,
|
|
1781
|
+
'outlined-primary': theme.colors.neutralGlobalSurface,
|
|
1782
|
+
'outlined-secondary': theme.colors.highlightedSecondarySurface,
|
|
1783
|
+
'outlined-danger': theme.colors.errorSurface,
|
|
1784
|
+
'text-primary': theme.colors.neutralGlobalSurface,
|
|
1785
|
+
'text-secondary': theme.colors.highlightedSecondarySurface,
|
|
1786
|
+
'text-danger': theme.colors.errorSurface,
|
|
1787
|
+
'basic-transparent': theme.colors.mutedGlobalPrimary
|
|
1763
1788
|
}
|
|
1764
1789
|
};
|
|
1765
1790
|
return {
|
|
@@ -1776,10 +1801,10 @@ var getButtonTheme = function getButtonTheme(theme) {
|
|
|
1776
1801
|
|
|
1777
1802
|
var getCalendarTheme = function getCalendarTheme(theme) {
|
|
1778
1803
|
var colors = {
|
|
1779
|
-
background: theme.colors.
|
|
1780
|
-
border: theme.colors.
|
|
1781
|
-
primary: theme.colors.
|
|
1782
|
-
inverted: theme.colors.
|
|
1804
|
+
background: theme.colors.defaultGlobalSurface,
|
|
1805
|
+
border: theme.colors.globalPrimaryOutline,
|
|
1806
|
+
primary: theme.colors.globalPrimary,
|
|
1807
|
+
inverted: theme.colors.onGlobalPrimary
|
|
1783
1808
|
};
|
|
1784
1809
|
var cellSize = theme.sizes.xxxlarge;
|
|
1785
1810
|
var markSize = theme.sizes.xsmall;
|
|
@@ -1809,13 +1834,13 @@ var getCalendarTheme = function getCalendarTheme(theme) {
|
|
|
1809
1834
|
|
|
1810
1835
|
var getCardTheme = function getCardTheme(theme) {
|
|
1811
1836
|
var colors = {
|
|
1812
|
-
dataCardIndicator: theme.colors.
|
|
1813
|
-
primary: theme.colors.
|
|
1814
|
-
info: theme.colors.
|
|
1837
|
+
dataCardIndicator: theme.colors.globalPrimary,
|
|
1838
|
+
primary: theme.colors.primary,
|
|
1839
|
+
info: theme.colors.info,
|
|
1815
1840
|
success: theme.colors.success,
|
|
1816
1841
|
warning: theme.colors.warning,
|
|
1817
|
-
danger: theme.colors.
|
|
1818
|
-
archived: theme.colors.
|
|
1842
|
+
danger: theme.colors.error,
|
|
1843
|
+
archived: theme.colors.archived
|
|
1819
1844
|
};
|
|
1820
1845
|
var sizes = {
|
|
1821
1846
|
indicatorWidth: theme.sizes.medium
|
|
@@ -1833,7 +1858,7 @@ var getCardTheme = function getCardTheme(theme) {
|
|
|
1833
1858
|
var getCheckboxTheme = function getCheckboxTheme(theme) {
|
|
1834
1859
|
var colors = {
|
|
1835
1860
|
"default": theme.colors.globalPrimary,
|
|
1836
|
-
disabledBorder: theme.colors.
|
|
1861
|
+
disabledBorder: theme.colors.mutedGlobalPrimary
|
|
1837
1862
|
};
|
|
1838
1863
|
var space = {
|
|
1839
1864
|
iconTop: 0,
|
|
@@ -1880,7 +1905,7 @@ var getDatePickerTheme = function getDatePickerTheme(theme) {
|
|
|
1880
1905
|
|
|
1881
1906
|
var getDividerTheme = function getDividerTheme(theme) {
|
|
1882
1907
|
var colors = {
|
|
1883
|
-
"default": theme.colors.
|
|
1908
|
+
"default": theme.colors.globalSecondaryOutline
|
|
1884
1909
|
};
|
|
1885
1910
|
var space = {
|
|
1886
1911
|
xsmall: theme.space.xsmall,
|
|
@@ -1901,10 +1926,10 @@ var getDividerTheme = function getDividerTheme(theme) {
|
|
|
1901
1926
|
|
|
1902
1927
|
var getDrawerTheme = function getDrawerTheme(theme) {
|
|
1903
1928
|
var colors = {
|
|
1904
|
-
shadow: theme.colors.
|
|
1905
|
-
background: theme.colors.
|
|
1906
|
-
backdrop: theme.colors.
|
|
1907
|
-
handler: theme.colors.
|
|
1929
|
+
shadow: theme.colors.globalPrimary,
|
|
1930
|
+
background: theme.colors.defaultGlobalSurface,
|
|
1931
|
+
backdrop: theme.colors.defaultGlobalSurface,
|
|
1932
|
+
handler: theme.colors.globalPrimary
|
|
1908
1933
|
};
|
|
1909
1934
|
var radii = {
|
|
1910
1935
|
"default": theme.radii.xlarge,
|
|
@@ -1945,10 +1970,9 @@ var getEmptyTheme = function getEmptyTheme(theme) {
|
|
|
1945
1970
|
image: theme.sizes['18xlarge']
|
|
1946
1971
|
};
|
|
1947
1972
|
var colors = {
|
|
1948
|
-
text: theme.colors.
|
|
1949
|
-
invertedText: theme.colors.
|
|
1950
|
-
subduedText: theme.colors.
|
|
1951
|
-
illustrationBackground: theme.colors.shadow
|
|
1973
|
+
text: theme.colors.globalPrimary,
|
|
1974
|
+
invertedText: theme.colors.onGlobalPrimary,
|
|
1975
|
+
subduedText: theme.colors.globalSecondary
|
|
1952
1976
|
};
|
|
1953
1977
|
var fontSizes = {
|
|
1954
1978
|
title: theme.fontSizes.xxxxlarge,
|
|
@@ -1969,13 +1993,13 @@ var getEmptyTheme = function getEmptyTheme(theme) {
|
|
|
1969
1993
|
|
|
1970
1994
|
var getFABTheme = function getFABTheme(theme) {
|
|
1971
1995
|
var colors = {
|
|
1972
|
-
buttonBackground: theme.colors.
|
|
1973
|
-
icon: theme.colors.
|
|
1974
|
-
headerText: theme.colors.
|
|
1975
|
-
actionItemBackground: theme.colors.
|
|
1976
|
-
backdropBackground: theme.colors.
|
|
1977
|
-
titleText: theme.colors.
|
|
1978
|
-
actionItemText: theme.colors.
|
|
1996
|
+
buttonBackground: theme.colors.globalPrimary,
|
|
1997
|
+
icon: theme.colors.onGlobalPrimary,
|
|
1998
|
+
headerText: theme.colors.onGlobalPrimary,
|
|
1999
|
+
actionItemBackground: theme.colors.globalPrimary,
|
|
2000
|
+
backdropBackground: theme.colors.globalPrimary,
|
|
2001
|
+
titleText: theme.colors.onGlobalPrimary,
|
|
2002
|
+
actionItemText: theme.colors.onGlobalPrimary
|
|
1979
2003
|
};
|
|
1980
2004
|
var sizes = {
|
|
1981
2005
|
width: theme.sizes.xxxxxlarge,
|
|
@@ -2029,14 +2053,15 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
2029
2053
|
|
|
2030
2054
|
var getIconTheme = function getIconTheme(theme) {
|
|
2031
2055
|
var colors = {
|
|
2032
|
-
text: theme.colors.
|
|
2056
|
+
text: theme.colors.globalPrimary,
|
|
2033
2057
|
primary: theme.colors.primary,
|
|
2058
|
+
secondary: theme.colors.secondary,
|
|
2034
2059
|
info: theme.colors.info,
|
|
2035
2060
|
danger: theme.colors.danger,
|
|
2036
2061
|
success: theme.colors.success,
|
|
2037
2062
|
warning: theme.colors.warning,
|
|
2038
|
-
disabledText: theme.colors.
|
|
2039
|
-
invertedText: theme.colors.
|
|
2063
|
+
disabledText: theme.colors.mutedGlobalPrimary,
|
|
2064
|
+
invertedText: theme.colors.defaultGlobalSurface
|
|
2040
2065
|
};
|
|
2041
2066
|
var sizes = {
|
|
2042
2067
|
xsmall: theme.fontSizes.large,
|
|
@@ -2063,15 +2088,15 @@ var getImageTheme = function getImageTheme(theme) {
|
|
|
2063
2088
|
|
|
2064
2089
|
var getListTheme = function getListTheme(theme) {
|
|
2065
2090
|
var colors = {
|
|
2066
|
-
checkedListItemContainerBackground: theme.colors.
|
|
2067
|
-
highlightedListItemContainerBackground: theme.colors.
|
|
2068
|
-
listItemContainerBackground: theme.colors.
|
|
2091
|
+
checkedListItemContainerBackground: theme.colors.highlightedSurface,
|
|
2092
|
+
highlightedListItemContainerBackground: theme.colors.lightHighlightedSurface,
|
|
2093
|
+
listItemContainerBackground: theme.colors.defaultGlobalSurface,
|
|
2069
2094
|
leadingStatus: {
|
|
2070
|
-
danger: theme.colors.
|
|
2071
|
-
info: theme.colors.
|
|
2095
|
+
danger: theme.colors.error,
|
|
2096
|
+
info: theme.colors.info,
|
|
2072
2097
|
success: theme.colors.success,
|
|
2073
2098
|
warning: theme.colors.warning,
|
|
2074
|
-
archived: theme.colors.
|
|
2099
|
+
archived: theme.colors.archived
|
|
2075
2100
|
}
|
|
2076
2101
|
};
|
|
2077
2102
|
var space = {
|
|
@@ -2117,10 +2142,10 @@ var getPinInputTheme = function getPinInputTheme(theme) {
|
|
|
2117
2142
|
focused: theme.borderWidths.medium
|
|
2118
2143
|
};
|
|
2119
2144
|
var colors = {
|
|
2120
|
-
"default": theme.colors.
|
|
2121
|
-
mask: theme.colors.
|
|
2122
|
-
error: theme.colors.
|
|
2123
|
-
disabled: theme.colors.
|
|
2145
|
+
"default": theme.colors.globalPrimary,
|
|
2146
|
+
mask: theme.colors.mutedGlobalPrimary,
|
|
2147
|
+
error: theme.colors.error,
|
|
2148
|
+
disabled: theme.colors.mutedGlobalPrimary
|
|
2124
2149
|
};
|
|
2125
2150
|
var fonts = {
|
|
2126
2151
|
cellText: theme.fonts.semiBold,
|
|
@@ -2158,11 +2183,11 @@ var getProgressTheme = function getProgressTheme(theme) {
|
|
|
2158
2183
|
var colors = {
|
|
2159
2184
|
primary: theme.colors.primary,
|
|
2160
2185
|
success: theme.colors.success,
|
|
2161
|
-
warning: theme.colors.
|
|
2186
|
+
warning: theme.colors.warning,
|
|
2162
2187
|
danger: theme.colors.danger,
|
|
2163
2188
|
info: theme.colors.info,
|
|
2164
|
-
background: theme.colors.
|
|
2165
|
-
innerBackground: theme.colors.
|
|
2189
|
+
background: theme.colors.globalSecondaryOutline,
|
|
2190
|
+
innerBackground: theme.colors.defaultGlobalSurface
|
|
2166
2191
|
};
|
|
2167
2192
|
var sizes = {
|
|
2168
2193
|
circleWidth: theme.sizes['6xlarge'],
|
|
@@ -2207,9 +2232,9 @@ var getRadioTheme = function getRadioTheme(theme) {
|
|
|
2207
2232
|
|
|
2208
2233
|
var getRichTextEditorTheme = function getRichTextEditorTheme(theme) {
|
|
2209
2234
|
var colors = {
|
|
2210
|
-
toolbarBorderColor: theme.colors.
|
|
2211
|
-
toolbarBackgroundColor: theme.colors.
|
|
2212
|
-
toolbarButtonSelectedBackground: theme.colors.
|
|
2235
|
+
toolbarBorderColor: theme.colors.globalSecondaryOutline,
|
|
2236
|
+
toolbarBackgroundColor: theme.colors.neutralGlobalSurface,
|
|
2237
|
+
toolbarButtonSelectedBackground: theme.colors.lightHighlightedSurface
|
|
2213
2238
|
};
|
|
2214
2239
|
var borderWidths = {
|
|
2215
2240
|
webViewBorderBottomWidth: 0.8
|
|
@@ -2239,7 +2264,7 @@ var getRichTextEditorTheme = function getRichTextEditorTheme(theme) {
|
|
|
2239
2264
|
|
|
2240
2265
|
var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
|
|
2241
2266
|
var colors = {
|
|
2242
|
-
background: theme.colors.
|
|
2267
|
+
background: theme.colors.neutralGlobalSurface
|
|
2243
2268
|
};
|
|
2244
2269
|
var space = {
|
|
2245
2270
|
headingVerticalPadding: theme.space.small,
|
|
@@ -2255,7 +2280,7 @@ var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
|
|
|
2255
2280
|
|
|
2256
2281
|
var getSelectTheme = function getSelectTheme(theme) {
|
|
2257
2282
|
var colors = {
|
|
2258
|
-
footerText: theme.colors.
|
|
2283
|
+
footerText: theme.colors.secondary
|
|
2259
2284
|
};
|
|
2260
2285
|
var space = {
|
|
2261
2286
|
minimumOptionListHeight: theme.space.xxxxlarge * 5,
|
|
@@ -2278,9 +2303,9 @@ var getSelectTheme = function getSelectTheme(theme) {
|
|
|
2278
2303
|
|
|
2279
2304
|
var getSliderTheme = function getSliderTheme(theme) {
|
|
2280
2305
|
var colors = {
|
|
2281
|
-
minimumTrackTint: theme.colors.
|
|
2282
|
-
thumbTint: theme.colors.
|
|
2283
|
-
maximumTrackTint: theme.colors.
|
|
2306
|
+
minimumTrackTint: theme.colors.secondary,
|
|
2307
|
+
thumbTint: theme.colors.neutralGlobalSurface,
|
|
2308
|
+
maximumTrackTint: theme.colors.lightHighlightedSurface
|
|
2284
2309
|
};
|
|
2285
2310
|
return {
|
|
2286
2311
|
colors: colors
|
|
@@ -2289,10 +2314,7 @@ var getSliderTheme = function getSliderTheme(theme) {
|
|
|
2289
2314
|
|
|
2290
2315
|
var getSpinnerTheme = function getSpinnerTheme(theme) {
|
|
2291
2316
|
var colors = {
|
|
2292
|
-
|
|
2293
|
-
dot2: theme.colors.__alpha__secondary2,
|
|
2294
|
-
dot3: theme.colors.__alpha__secondary3,
|
|
2295
|
-
dot4: theme.colors.__alpha__secondary4
|
|
2317
|
+
dot: theme.colors.primary
|
|
2296
2318
|
};
|
|
2297
2319
|
var space = {
|
|
2298
2320
|
spinnerDot: {
|
|
@@ -2321,15 +2343,15 @@ var getSpinnerTheme = function getSpinnerTheme(theme) {
|
|
|
2321
2343
|
var getSwitchTheme = function getSwitchTheme(theme) {
|
|
2322
2344
|
var colors = {
|
|
2323
2345
|
backgroundColors: {
|
|
2324
|
-
checked: theme.colors.
|
|
2325
|
-
unchecked: theme.colors.
|
|
2326
|
-
'disabled-checked': theme.colors.
|
|
2327
|
-
'disabled-unchecked': theme.colors.
|
|
2346
|
+
checked: theme.colors.secondary,
|
|
2347
|
+
unchecked: theme.colors.mutedSecondary,
|
|
2348
|
+
'disabled-checked': theme.colors.disabledSecondary,
|
|
2349
|
+
'disabled-unchecked': theme.colors.disabledOnDefaultGlobalSurface
|
|
2328
2350
|
},
|
|
2329
|
-
thumb: theme.colors.
|
|
2351
|
+
thumb: theme.colors.onSecondary,
|
|
2330
2352
|
selector: {
|
|
2331
|
-
background: theme.colors.
|
|
2332
|
-
textBackground: theme.colors.
|
|
2353
|
+
background: theme.colors.neutralGlobalSurface,
|
|
2354
|
+
textBackground: theme.colors.secondary
|
|
2333
2355
|
}
|
|
2334
2356
|
};
|
|
2335
2357
|
var sizes = {
|
|
@@ -2373,11 +2395,11 @@ var getSwitchTheme = function getSwitchTheme(theme) {
|
|
|
2373
2395
|
|
|
2374
2396
|
var getTabsTheme = function getTabsTheme(theme) {
|
|
2375
2397
|
var colors = {
|
|
2376
|
-
active: theme.colors.
|
|
2377
|
-
inactive: theme.colors.
|
|
2378
|
-
activeBackground: theme.colors.
|
|
2379
|
-
headerBottom: theme.colors.
|
|
2380
|
-
text: theme.colors.
|
|
2398
|
+
active: theme.colors.globalPrimary,
|
|
2399
|
+
inactive: theme.colors.globalPrimary,
|
|
2400
|
+
activeBackground: theme.colors.mutedPrimary,
|
|
2401
|
+
headerBottom: theme.colors.globalSecondaryOutline,
|
|
2402
|
+
text: theme.colors.globalPrimary
|
|
2381
2403
|
};
|
|
2382
2404
|
var space = {
|
|
2383
2405
|
flatListHorizontalPadding: theme.space.small,
|
|
@@ -2410,20 +2432,20 @@ var getTagTheme = function getTagTheme(theme) {
|
|
|
2410
2432
|
"default": theme.borderWidths.base
|
|
2411
2433
|
};
|
|
2412
2434
|
var colors = {
|
|
2413
|
-
"default": theme.colors.
|
|
2435
|
+
"default": theme.colors.globalPrimary,
|
|
2414
2436
|
defaultBackground: undefined,
|
|
2415
|
-
primary: theme.colors.
|
|
2437
|
+
primary: theme.colors.globalPrimary,
|
|
2416
2438
|
primaryBackground: undefined,
|
|
2417
|
-
info: theme.colors.
|
|
2418
|
-
infoBackground: theme.colors.
|
|
2419
|
-
success: theme.colors.
|
|
2420
|
-
successBackground: theme.colors.
|
|
2421
|
-
warning: theme.colors.
|
|
2422
|
-
warningBackground: theme.colors.
|
|
2423
|
-
danger: theme.colors.
|
|
2424
|
-
dangerBackground: theme.colors.
|
|
2425
|
-
archived: theme.colors.
|
|
2426
|
-
archivedBackground: theme.colors.
|
|
2439
|
+
info: theme.colors.onInfoSurface,
|
|
2440
|
+
infoBackground: theme.colors.infoSurface,
|
|
2441
|
+
success: theme.colors.onSuccessSurface,
|
|
2442
|
+
successBackground: theme.colors.successSurface,
|
|
2443
|
+
warning: theme.colors.onWarningSurface,
|
|
2444
|
+
warningBackground: theme.colors.warningSurface,
|
|
2445
|
+
danger: theme.colors.onErrorSurface,
|
|
2446
|
+
dangerBackground: theme.colors.errorSurface,
|
|
2447
|
+
archived: theme.colors.onArchivedSurface,
|
|
2448
|
+
archivedBackground: theme.colors.archivedSurface
|
|
2427
2449
|
};
|
|
2428
2450
|
var fonts = {
|
|
2429
2451
|
"default": theme.fonts.semiBold
|
|
@@ -2450,53 +2472,53 @@ var getTagTheme = function getTagTheme(theme) {
|
|
|
2450
2472
|
|
|
2451
2473
|
var getTextInputTheme = function getTextInputTheme(theme) {
|
|
2452
2474
|
var colors = {
|
|
2453
|
-
labelBackground: theme.colors.
|
|
2475
|
+
labelBackground: theme.colors.defaultGlobalSurface,
|
|
2454
2476
|
asterisks: {
|
|
2455
|
-
"default": theme.colors.
|
|
2456
|
-
error: theme.colors.
|
|
2457
|
-
disabled: theme.colors.
|
|
2458
|
-
readonly: theme.colors.
|
|
2459
|
-
filled: theme.colors.
|
|
2460
|
-
focused: theme.colors.
|
|
2477
|
+
"default": theme.colors.error,
|
|
2478
|
+
error: theme.colors.error,
|
|
2479
|
+
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
2480
|
+
readonly: theme.colors.mutedSecondary,
|
|
2481
|
+
filled: theme.colors.error,
|
|
2482
|
+
focused: theme.colors.error
|
|
2461
2483
|
},
|
|
2462
|
-
error: theme.colors.
|
|
2463
|
-
placeholderIfNotFocused: theme.colors.
|
|
2464
|
-
placeholderIfFocued: theme.colors.
|
|
2465
|
-
label: theme.colors.
|
|
2466
|
-
readonlyLabel: theme.colors.
|
|
2467
|
-
disabledLabel: theme.colors.
|
|
2468
|
-
text: theme.colors.
|
|
2484
|
+
error: theme.colors.error,
|
|
2485
|
+
placeholderIfNotFocused: theme.colors.globalPrimary,
|
|
2486
|
+
placeholderIfFocued: theme.colors.mutedSecondary,
|
|
2487
|
+
label: theme.colors.globalPrimary,
|
|
2488
|
+
readonlyLabel: theme.colors.mutedSecondary,
|
|
2489
|
+
disabledLabel: theme.colors.disabledOnDefaultGlobalSurface,
|
|
2490
|
+
text: theme.colors.globalPrimary,
|
|
2469
2491
|
borders: {
|
|
2470
|
-
"default": theme.colors.
|
|
2471
|
-
error: theme.colors.
|
|
2472
|
-
disabled: theme.colors.
|
|
2473
|
-
readonly: theme.colors.
|
|
2474
|
-
filled: theme.colors.
|
|
2475
|
-
focused: theme.colors.
|
|
2492
|
+
"default": theme.colors.globalPrimary,
|
|
2493
|
+
error: theme.colors.error,
|
|
2494
|
+
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
2495
|
+
readonly: theme.colors.mutedSecondary,
|
|
2496
|
+
filled: theme.colors.globalPrimary,
|
|
2497
|
+
focused: theme.colors.globalPrimary
|
|
2476
2498
|
},
|
|
2477
2499
|
labels: {
|
|
2478
|
-
"default": theme.colors.
|
|
2479
|
-
error: theme.colors.
|
|
2480
|
-
disabled: theme.colors.
|
|
2481
|
-
readonly: theme.colors.
|
|
2482
|
-
filled: theme.colors.
|
|
2483
|
-
focused: theme.colors.
|
|
2500
|
+
"default": theme.colors.globalPrimary,
|
|
2501
|
+
error: theme.colors.globalPrimary,
|
|
2502
|
+
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
2503
|
+
readonly: theme.colors.disabledOnDefaultGlobalSurface,
|
|
2504
|
+
filled: theme.colors.globalPrimary,
|
|
2505
|
+
focused: theme.colors.globalPrimary
|
|
2484
2506
|
},
|
|
2485
2507
|
labelsInsideTextInput: {
|
|
2486
|
-
"default": theme.colors.
|
|
2487
|
-
error: theme.colors.
|
|
2488
|
-
disabled: theme.colors.
|
|
2489
|
-
readonly: theme.colors.
|
|
2490
|
-
filled: theme.colors.
|
|
2491
|
-
focused: theme.colors.
|
|
2508
|
+
"default": theme.colors.globalPrimary,
|
|
2509
|
+
error: theme.colors.globalPrimary,
|
|
2510
|
+
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
2511
|
+
readonly: theme.colors.disabledOnDefaultGlobalSurface,
|
|
2512
|
+
filled: theme.colors.globalPrimary,
|
|
2513
|
+
focused: theme.colors.globalPrimary
|
|
2492
2514
|
},
|
|
2493
2515
|
maxLengthLabels: {
|
|
2494
|
-
"default": theme.colors.
|
|
2495
|
-
error: theme.colors.
|
|
2496
|
-
disabled: theme.colors.
|
|
2497
|
-
readonly: theme.colors.
|
|
2498
|
-
filled: theme.colors.
|
|
2499
|
-
focused: theme.colors.
|
|
2516
|
+
"default": theme.colors.globalPrimary,
|
|
2517
|
+
error: theme.colors.error,
|
|
2518
|
+
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
2519
|
+
readonly: theme.colors.disabledOnDefaultGlobalSurface,
|
|
2520
|
+
filled: theme.colors.globalPrimary,
|
|
2521
|
+
focused: theme.colors.globalPrimary
|
|
2500
2522
|
}
|
|
2501
2523
|
};
|
|
2502
2524
|
var space = {
|
|
@@ -2550,12 +2572,12 @@ var getToastTheme = function getToastTheme(theme) {
|
|
|
2550
2572
|
var colors = {
|
|
2551
2573
|
success: theme.colors.success,
|
|
2552
2574
|
warning: theme.colors.warning,
|
|
2553
|
-
error: theme.colors.
|
|
2554
|
-
info: theme.colors.
|
|
2555
|
-
notification: theme.colors.
|
|
2556
|
-
snackbar: theme.colors.
|
|
2557
|
-
divider: theme.colors.
|
|
2558
|
-
shadow: theme.colors.
|
|
2575
|
+
error: theme.colors.error,
|
|
2576
|
+
info: theme.colors.info,
|
|
2577
|
+
notification: theme.colors.defaultGlobalSurface,
|
|
2578
|
+
snackbar: theme.colors.globalPrimary,
|
|
2579
|
+
divider: theme.colors.globalSecondaryOutline,
|
|
2580
|
+
shadow: theme.colors.globalPrimary
|
|
2559
2581
|
};
|
|
2560
2582
|
var sizes = {
|
|
2561
2583
|
height: theme.sizes.xxxlarge
|
|
@@ -2595,9 +2617,10 @@ var getToastTheme = function getToastTheme(theme) {
|
|
|
2595
2617
|
|
|
2596
2618
|
var getToolbarTheme = function getToolbarTheme(theme) {
|
|
2597
2619
|
var colors = {
|
|
2598
|
-
background: theme.colors.
|
|
2599
|
-
border: theme.colors.
|
|
2620
|
+
background: theme.colors.defaultGlobalSurface,
|
|
2621
|
+
border: theme.colors.globalSecondaryOutline,
|
|
2600
2622
|
primary: theme.colors.primary,
|
|
2623
|
+
secondary: theme.colors.secondary,
|
|
2601
2624
|
info: theme.colors.info,
|
|
2602
2625
|
success: theme.colors.success,
|
|
2603
2626
|
danger: theme.colors.warning,
|
|
@@ -2620,14 +2643,15 @@ var getToolbarTheme = function getToolbarTheme(theme) {
|
|
|
2620
2643
|
|
|
2621
2644
|
var getTypographyTheme = function getTypographyTheme(theme) {
|
|
2622
2645
|
var colors = {
|
|
2623
|
-
body: theme.colors.
|
|
2624
|
-
subdued: theme.colors.
|
|
2646
|
+
body: theme.colors.globalPrimary,
|
|
2647
|
+
subdued: theme.colors.mutedGlobalPrimary,
|
|
2625
2648
|
primary: theme.colors.primary,
|
|
2649
|
+
secondary: theme.colors.secondary,
|
|
2626
2650
|
info: theme.colors.info,
|
|
2627
2651
|
danger: theme.colors.danger,
|
|
2628
2652
|
warning: theme.colors.warning,
|
|
2629
2653
|
success: theme.colors.success,
|
|
2630
|
-
inverted: theme.colors.
|
|
2654
|
+
inverted: theme.colors.onGlobalPrimary
|
|
2631
2655
|
};
|
|
2632
2656
|
var fonts = {
|
|
2633
2657
|
light: theme.fonts.light,
|
|
@@ -14603,6 +14627,7 @@ var HeroIcon = reactNativeVectorIcons.createIconSetFromIcoMoon(heroIconConfig, '
|
|
|
14603
14627
|
var COLOR_INTENTS = {
|
|
14604
14628
|
text: 'text',
|
|
14605
14629
|
primary: 'primary',
|
|
14630
|
+
secondary: 'secondary',
|
|
14606
14631
|
info: 'info',
|
|
14607
14632
|
danger: 'danger',
|
|
14608
14633
|
success: 'success',
|
|
@@ -14698,7 +14723,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
14698
14723
|
fontWeight: "semi-bold"
|
|
14699
14724
|
}, header) : header, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
14700
14725
|
icon: open ? 'arrow-up' : 'arrow-down',
|
|
14701
|
-
intent: "
|
|
14726
|
+
intent: "secondary",
|
|
14702
14727
|
size: "small"
|
|
14703
14728
|
})), /*#__PURE__*/React__default["default"].createElement(StyledCollapse, {
|
|
14704
14729
|
open: open
|
|
@@ -20999,24 +21024,28 @@ var StyledSpinnerDot = index$8(reactNative.View)(function (_ref2) {
|
|
|
20999
21024
|
switch (themePosition) {
|
|
21000
21025
|
case 'topLeft':
|
|
21001
21026
|
return {
|
|
21002
|
-
backgroundColor: theme.__hd__.spinner.colors.
|
|
21027
|
+
backgroundColor: theme.__hd__.spinner.colors.dot,
|
|
21028
|
+
opacity: 1
|
|
21003
21029
|
};
|
|
21004
21030
|
|
|
21005
21031
|
case 'topRight':
|
|
21006
21032
|
return {
|
|
21007
21033
|
marginLeft: theme.__hd__.spinner.space.spinnerDotPadding[themeSize],
|
|
21008
|
-
backgroundColor: theme.__hd__.spinner.colors.
|
|
21034
|
+
backgroundColor: theme.__hd__.spinner.colors.dot,
|
|
21035
|
+
opacity: 0.75
|
|
21009
21036
|
};
|
|
21010
21037
|
|
|
21011
21038
|
case 'bottomLeft':
|
|
21012
21039
|
return {
|
|
21013
|
-
backgroundColor: theme.__hd__.spinner.colors.
|
|
21040
|
+
backgroundColor: theme.__hd__.spinner.colors.dot,
|
|
21041
|
+
opacity: 0.5
|
|
21014
21042
|
};
|
|
21015
21043
|
|
|
21016
21044
|
case 'bottomRight':
|
|
21017
21045
|
return {
|
|
21018
21046
|
marginLeft: theme.__hd__.spinner.space.spinnerDotPadding[themeSize],
|
|
21019
|
-
backgroundColor: theme.__hd__.spinner.colors.
|
|
21047
|
+
backgroundColor: theme.__hd__.spinner.colors.dot,
|
|
21048
|
+
opacity: 0.25
|
|
21020
21049
|
};
|
|
21021
21050
|
}
|
|
21022
21051
|
};
|
|
@@ -22197,9 +22226,9 @@ var ScrollableTab = function ScrollableTab(_ref2) {
|
|
|
22197
22226
|
testID: componentTestID
|
|
22198
22227
|
}, /*#__PURE__*/React__default["default"].createElement(HeaderTabWrapper, {
|
|
22199
22228
|
themeInsets: insets,
|
|
22200
|
-
style: barStyle
|
|
22201
|
-
testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined
|
|
22229
|
+
style: barStyle
|
|
22202
22230
|
}, /*#__PURE__*/React__default["default"].createElement(reactNative.FlatList, {
|
|
22231
|
+
testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined,
|
|
22203
22232
|
ref: flatListRef,
|
|
22204
22233
|
horizontal: true,
|
|
22205
22234
|
data: tabs,
|
|
@@ -22906,7 +22935,7 @@ var ToastProvider = function ToastProvider(_ref) {
|
|
|
22906
22935
|
position = _ref$position === void 0 ? 'top' : _ref$position;
|
|
22907
22936
|
var toastRef = React.useRef(null);
|
|
22908
22937
|
|
|
22909
|
-
var _useState = React.useState(
|
|
22938
|
+
var _useState = React.useState(null),
|
|
22910
22939
|
_useState2 = _slicedToArray(_useState, 2),
|
|
22911
22940
|
refState = _useState2[0],
|
|
22912
22941
|
setRefState = _useState2[1];
|
|
@@ -22928,7 +22957,7 @@ var ToastProvider = function ToastProvider(_ref) {
|
|
|
22928
22957
|
style: {
|
|
22929
22958
|
flex: 1
|
|
22930
22959
|
}
|
|
22931
|
-
}, children, /*#__PURE__*/React__default["default"].createElement(ToastConfigContext.Provider, {
|
|
22960
|
+
}, refState ? children : null, /*#__PURE__*/React__default["default"].createElement(ToastConfigContext.Provider, {
|
|
22932
22961
|
value: config
|
|
22933
22962
|
}, /*#__PURE__*/React__default["default"].createElement(ToastContainer, {
|
|
22934
22963
|
ref: toastRef,
|