@carbon/themes 10.44.0 → 10.46.0
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/es/index.js +19 -7
- package/lib/index.js +18 -5
- package/package.json +7 -7
- package/scss/compat/generated/_themes.scss +2 -2
- package/scss/generated/_mixins.scss +9 -0
- package/scss/generated/_themes.scss +16 -6
- package/scss/generated/_tokens.scss +10 -0
- package/scss/modules/generated/_themes.scss +6 -2
- package/scss/modules/generated/_tokens.scss +3 -0
- package/src/g10.js +2 -0
- package/src/g100.js +3 -1
- package/src/g80.js +3 -1
- package/src/g90.js +3 -1
- package/src/next/g10.js +1 -0
- package/src/next/g100.js +6 -1
- package/src/next/g90.js +6 -1
- package/src/next/tokens/v11TokenGroup.js +3 -0
- package/src/next/white.js +1 -0
- package/src/tokens.js +2 -0
- package/src/v9.js +2 -1
- package/src/white.js +2 -0
- package/umd/index.js +18 -5
package/es/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Color from 'color';
|
|
2
|
-
import { blue60, gray80, white as white$1, gray10, gray20, gray50, gray100, gray70, gray40, gray60, red60, blue70, blue40, green60, yellow, red50, green40, blue50, rgba, blue80, gray30, red80, purple60, blue20, gray90, red40, blue30, green50, purple40, red30, yellow30 } from '@carbon/colors';
|
|
2
|
+
import { blue60, gray80, white as white$1, gray10, gray20, gray50, gray100, gray70, gray40, gray60, red60, blue70, blue40, green60, yellow, red50, green40, blue50, rgba, blue80, gray30, red80, purple60, blue20, black, gray90, red40, blue30, green50, purple40, red30, yellow30 } from '@carbon/colors';
|
|
3
3
|
import { caption01, caption02, label01, label02, helperText01, helperText02, bodyShort01, bodyLong01, bodyShort02, bodyLong02, code01, code02, heading01, productiveHeading01, heading02, productiveHeading02, productiveHeading03, productiveHeading04, productiveHeading05, productiveHeading06, productiveHeading07, expressiveHeading01, expressiveHeading02, expressiveHeading03, expressiveHeading04, expressiveHeading05, expressiveHeading06, expressiveParagraph01, quotation01, quotation02, display01, display02, display03, display04, legal01, legal02, bodyCompact01, bodyCompact02, body01, body02, headingCompact01, headingCompact02, heading03, heading04, heading05, heading06, heading07, fluidHeading03, fluidHeading04, fluidHeading05, fluidHeading06, fluidParagraph01, fluidQuotation01, fluidQuotation02, fluidDisplay01, fluidDisplay02, fluidDisplay03, fluidDisplay04, unstable_tokens } from '@carbon/type';
|
|
4
4
|
export { body01, body02, bodyCompact01, bodyCompact02, bodyLong01, bodyLong02, bodyShort01, bodyShort02, caption01, caption02, code01, code02, display01, display02, display03, display04, expressiveHeading01, expressiveHeading02, expressiveHeading03, expressiveHeading04, expressiveHeading05, expressiveHeading06, expressiveParagraph01, fluidDisplay01, fluidDisplay02, fluidDisplay03, fluidDisplay04, fluidHeading03, fluidHeading04, fluidHeading05, fluidHeading06, fluidParagraph01, fluidQuotation01, fluidQuotation02, heading01, heading02, heading03, heading04, heading05, heading06, heading07, headingCompact01, headingCompact02, helperText01, helperText02, label01, label02, legal01, legal02, productiveHeading01, productiveHeading02, productiveHeading03, productiveHeading04, productiveHeading05, productiveHeading06, productiveHeading07, quotation01, quotation02 } from '@carbon/type';
|
|
5
5
|
import { spacing01, spacing02, spacing03, spacing04, spacing05, spacing06, spacing07, spacing08, spacing09, spacing10, spacing11, spacing12, spacing13, fluidSpacing01, fluidSpacing02, fluidSpacing03, fluidSpacing04, layout01, layout02, layout03, layout04, layout05, layout06, layout07, container01, container02, container03, container04, container05, sizeXSmall, sizeSmall, sizeMedium, sizeLarge, sizeXLarge, size2XLarge, iconSize01, iconSize02, unstable_tokens as unstable_tokens$1 } from '@carbon/layout';
|
|
@@ -187,6 +187,7 @@ var supportWarningInverse$5 = inverseSupport03$5;
|
|
|
187
187
|
var supportInfoInverse$5 = inverseSupport04$5;
|
|
188
188
|
var overlay$5 = overlay01$5;
|
|
189
189
|
var toggleOff$5 = ui04$5;
|
|
190
|
+
var shadow$5 = rgba(black, 0.3);
|
|
190
191
|
var buttonPrimary$5 = interactive01$5;
|
|
191
192
|
var buttonSecondary$5 = interactive02$5;
|
|
192
193
|
var buttonTertiary$5 = interactive03$5;
|
|
@@ -339,6 +340,7 @@ var white = /*#__PURE__*/Object.freeze({
|
|
|
339
340
|
supportInfoInverse: supportInfoInverse$5,
|
|
340
341
|
overlay: overlay$5,
|
|
341
342
|
toggleOff: toggleOff$5,
|
|
343
|
+
shadow: shadow$5,
|
|
342
344
|
buttonPrimary: buttonPrimary$5,
|
|
343
345
|
buttonSecondary: buttonSecondary$5,
|
|
344
346
|
buttonTertiary: buttonTertiary$5,
|
|
@@ -593,6 +595,7 @@ var supportWarningInverse$4 = inverseSupport03$4;
|
|
|
593
595
|
var supportInfoInverse$4 = inverseSupport04$4;
|
|
594
596
|
var overlay$4 = overlay01$4;
|
|
595
597
|
var toggleOff$4 = ui04$4;
|
|
598
|
+
var shadow$4 = rgba(black, 0.3);
|
|
596
599
|
var buttonPrimary$4 = interactive01$4;
|
|
597
600
|
var buttonSecondary$4 = interactive02$4;
|
|
598
601
|
var buttonTertiary$4 = interactive03$4;
|
|
@@ -745,6 +748,7 @@ var g10 = /*#__PURE__*/Object.freeze({
|
|
|
745
748
|
supportInfoInverse: supportInfoInverse$4,
|
|
746
749
|
overlay: overlay$4,
|
|
747
750
|
toggleOff: toggleOff$4,
|
|
751
|
+
shadow: shadow$4,
|
|
748
752
|
buttonPrimary: buttonPrimary$4,
|
|
749
753
|
buttonSecondary: buttonSecondary$4,
|
|
750
754
|
buttonTertiary: buttonTertiary$4,
|
|
@@ -927,7 +931,7 @@ var inverseSupport01$3 = red60;
|
|
|
927
931
|
var inverseSupport02$3 = green50;
|
|
928
932
|
var inverseSupport03$3 = yellow;
|
|
929
933
|
var inverseSupport04$3 = blue60;
|
|
930
|
-
var overlay01$3 = rgba(
|
|
934
|
+
var overlay01$3 = rgba(black, 0.65);
|
|
931
935
|
var danger01$3 = red60;
|
|
932
936
|
var danger02$3 = red50; // Interaction states
|
|
933
937
|
|
|
@@ -999,6 +1003,7 @@ var supportWarningInverse$3 = inverseSupport03$3;
|
|
|
999
1003
|
var supportInfoInverse$3 = inverseSupport04$3;
|
|
1000
1004
|
var overlay$3 = overlay01$3;
|
|
1001
1005
|
var toggleOff$3 = ui04$3;
|
|
1006
|
+
var shadow$3 = rgba(black, 0.8);
|
|
1002
1007
|
var buttonPrimary$3 = interactive01$3;
|
|
1003
1008
|
var buttonSecondary$3 = interactive02$3;
|
|
1004
1009
|
var buttonTertiary$3 = interactive03$3;
|
|
@@ -1151,6 +1156,7 @@ var g100 = /*#__PURE__*/Object.freeze({
|
|
|
1151
1156
|
supportInfoInverse: supportInfoInverse$3,
|
|
1152
1157
|
overlay: overlay$3,
|
|
1153
1158
|
toggleOff: toggleOff$3,
|
|
1159
|
+
shadow: shadow$3,
|
|
1154
1160
|
buttonPrimary: buttonPrimary$3,
|
|
1155
1161
|
buttonSecondary: buttonSecondary$3,
|
|
1156
1162
|
buttonTertiary: buttonTertiary$3,
|
|
@@ -1337,8 +1343,9 @@ var supportErrorInverse$2 = red60;
|
|
|
1337
1343
|
var supportSuccessInverse$2 = green50;
|
|
1338
1344
|
var supportWarningInverse$2 = yellow30;
|
|
1339
1345
|
var supportInfoInverse$2 = blue60;
|
|
1340
|
-
var overlay$2 = rgba(
|
|
1346
|
+
var overlay$2 = rgba(black, 0.65);
|
|
1341
1347
|
var toggleOff$2 = gray50;
|
|
1348
|
+
var shadow$2 = rgba(black, 0.8);
|
|
1342
1349
|
var buttonPrimary$2 = blue60;
|
|
1343
1350
|
var buttonSecondary$2 = gray60;
|
|
1344
1351
|
var buttonTertiary$2 = white$1;
|
|
@@ -1495,6 +1502,7 @@ var g80 = /*#__PURE__*/Object.freeze({
|
|
|
1495
1502
|
supportInfoInverse: supportInfoInverse$2,
|
|
1496
1503
|
overlay: overlay$2,
|
|
1497
1504
|
toggleOff: toggleOff$2,
|
|
1505
|
+
shadow: shadow$2,
|
|
1498
1506
|
buttonPrimary: buttonPrimary$2,
|
|
1499
1507
|
buttonSecondary: buttonSecondary$2,
|
|
1500
1508
|
buttonTertiary: buttonTertiary$2,
|
|
@@ -1742,7 +1750,7 @@ var inverseSupport01$1 = red60;
|
|
|
1742
1750
|
var inverseSupport02$1 = green50;
|
|
1743
1751
|
var inverseSupport03$1 = yellow;
|
|
1744
1752
|
var inverseSupport04$1 = blue60;
|
|
1745
|
-
var overlay01$1 = rgba(
|
|
1753
|
+
var overlay01$1 = rgba(black, 0.65);
|
|
1746
1754
|
var danger01$1 = red60;
|
|
1747
1755
|
var danger02$1 = red40; // Interaction states
|
|
1748
1756
|
|
|
@@ -1814,6 +1822,7 @@ var supportWarningInverse$1 = inverseSupport03$1;
|
|
|
1814
1822
|
var supportInfoInverse$1 = inverseSupport04$1;
|
|
1815
1823
|
var overlay$1 = overlay01$1;
|
|
1816
1824
|
var toggleOff$1 = ui04$1;
|
|
1825
|
+
var shadow$1 = rgba(black, 0.8);
|
|
1817
1826
|
var buttonPrimary$1 = interactive01$1;
|
|
1818
1827
|
var buttonSecondary$1 = interactive02$1;
|
|
1819
1828
|
var buttonTertiary$1 = interactive03$1;
|
|
@@ -1966,6 +1975,7 @@ var g90 = /*#__PURE__*/Object.freeze({
|
|
|
1966
1975
|
supportInfoInverse: supportInfoInverse$1,
|
|
1967
1976
|
overlay: overlay$1,
|
|
1968
1977
|
toggleOff: toggleOff$1,
|
|
1978
|
+
shadow: shadow$1,
|
|
1969
1979
|
buttonPrimary: buttonPrimary$1,
|
|
1970
1980
|
buttonSecondary: buttonSecondary$1,
|
|
1971
1981
|
buttonTertiary: buttonTertiary$1,
|
|
@@ -2220,6 +2230,7 @@ var supportWarningInverse = inverseSupport03;
|
|
|
2220
2230
|
var supportInfoInverse = inverseSupport04;
|
|
2221
2231
|
var overlay = overlay01;
|
|
2222
2232
|
var toggleOff = ui04;
|
|
2233
|
+
var shadow = rgba(black, 0.3);
|
|
2223
2234
|
var buttonPrimary = interactive01;
|
|
2224
2235
|
var buttonSecondary = interactive02;
|
|
2225
2236
|
var buttonTertiary = interactive03;
|
|
@@ -2372,6 +2383,7 @@ var v9 = /*#__PURE__*/Object.freeze({
|
|
|
2372
2383
|
supportInfoInverse: supportInfoInverse,
|
|
2373
2384
|
overlay: overlay,
|
|
2374
2385
|
toggleOff: toggleOff,
|
|
2386
|
+
shadow: shadow,
|
|
2375
2387
|
buttonPrimary: buttonPrimary,
|
|
2376
2388
|
buttonSecondary: buttonSecondary,
|
|
2377
2389
|
buttonTertiary: buttonTertiary,
|
|
@@ -2526,7 +2538,7 @@ var colors = [// Core
|
|
|
2526
2538
|
'interactive01', 'interactive02', 'interactive03', 'interactive04', 'uiBackground', 'ui01', 'ui02', 'ui03', 'ui04', 'ui05', 'text01', 'text02', 'text03', 'text04', 'text05', 'textError', 'icon01', 'icon02', 'icon03', 'link01', 'link02', 'inverseLink', 'field01', 'field02', 'inverse01', 'inverse02', 'support01', 'support02', 'support03', 'support04', 'inverseSupport01', 'inverseSupport02', 'inverseSupport03', 'inverseSupport04', 'overlay01', 'danger01', 'danger02', // Interactive states
|
|
2527
2539
|
'focus', 'inverseFocusUi', 'hoverPrimary', 'activePrimary', 'hoverPrimaryText', 'hoverSecondary', 'activeSecondary', 'hoverTertiary', 'activeTertiary', 'hoverUI', 'hoverLightUI', 'hoverSelectedUI', 'activeUI', 'activeLightUI', 'selectedUI', 'selectedLightUI', 'inverseHoverUI', 'hoverDanger', 'activeDanger', 'hoverRow', 'visitedLink', 'disabled01', 'disabled02', 'disabled03', 'highlight', 'decorative01', 'buttonSeparator', 'skeleton01', 'skeleton02', // New color tokens
|
|
2528
2540
|
// TO-DO: remove fallback color when v11 is released and assign carbon colors to new tokens
|
|
2529
|
-
'background', 'layer', 'layerAccent', 'layerAccentHover', 'layerAccentActive', 'field', 'backgroundInverse', 'backgroundBrand', 'interactive', 'borderSubtle', 'borderStrong', 'borderInverse', 'borderInteractive', 'textPrimary', 'textSecondary', 'textPlaceholder', 'textHelper', 'textOnColor', 'textInverse', 'linkPrimary', 'linkSecondary', 'linkVisited', 'linkInverse', 'iconPrimary', 'iconSecondary', 'iconOnColor', 'iconInverse', 'supportError', 'supportSuccess', 'supportWarning', 'supportInfo', 'supportErrorInverse', 'supportSuccessInverse', 'supportWarningInverse', 'supportInfoInverse', 'overlay', 'toggleOff', 'buttonPrimary', 'buttonSecondary', 'buttonTertiary', 'buttonDangerPrimary', 'buttonDangerSecondary', 'backgroundActive', 'layerActive', 'buttonDangerActive', 'buttonPrimaryActive', 'buttonSecondaryActive', 'buttonTertiaryActive', 'focusInset', 'focusInverse', 'backgroundHover', 'layerHover', 'fieldHover', 'backgroundInverseHover', 'linkPrimaryHover', 'buttonDangerHover', 'buttonPrimaryHover', 'buttonSecondaryHover', 'buttonTertiaryHover', 'backgroundSelected', 'backgroundSelectedHover', 'layerSelected', 'layerSelectedHover', 'layerSelectedInverse', 'borderSubtleSelected', 'layerDisabled', 'fieldDisabled', 'borderDisabled', 'textDisabled', 'buttonDisabled', 'iconDisabled', 'textOnColorDisabled', 'iconOnColorDisabled', 'layerSelectedDisabled', 'skeletonBackground', 'skeletonElement', // Deprecated
|
|
2541
|
+
'background', 'layer', 'layerAccent', 'layerAccentHover', 'layerAccentActive', 'field', 'backgroundInverse', 'backgroundBrand', 'interactive', 'borderSubtle', 'borderStrong', 'borderInverse', 'borderInteractive', 'textPrimary', 'textSecondary', 'textPlaceholder', 'textHelper', 'textOnColor', 'textInverse', 'linkPrimary', 'linkSecondary', 'linkVisited', 'linkInverse', 'iconPrimary', 'iconSecondary', 'iconOnColor', 'iconInverse', 'supportError', 'supportSuccess', 'supportWarning', 'supportInfo', 'supportErrorInverse', 'supportSuccessInverse', 'supportWarningInverse', 'supportInfoInverse', 'overlay', 'toggleOff', 'shadow', 'buttonPrimary', 'buttonSecondary', 'buttonTertiary', 'buttonDangerPrimary', 'buttonDangerSecondary', 'backgroundActive', 'layerActive', 'buttonDangerActive', 'buttonPrimaryActive', 'buttonSecondaryActive', 'buttonTertiaryActive', 'focusInset', 'focusInverse', 'backgroundHover', 'layerHover', 'fieldHover', 'backgroundInverseHover', 'linkPrimaryHover', 'buttonDangerHover', 'buttonPrimaryHover', 'buttonSecondaryHover', 'buttonTertiaryHover', 'backgroundSelected', 'backgroundSelectedHover', 'layerSelected', 'layerSelectedHover', 'layerSelectedInverse', 'borderSubtleSelected', 'layerDisabled', 'fieldDisabled', 'borderDisabled', 'textDisabled', 'buttonDisabled', 'iconDisabled', 'textOnColorDisabled', 'iconOnColorDisabled', 'layerSelectedDisabled', 'skeletonBackground', 'skeletonElement', // Deprecated
|
|
2530
2542
|
'brand01', 'brand02', 'brand03', 'active01', 'hoverField', 'danger'];
|
|
2531
2543
|
var numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
|
|
2532
2544
|
/**
|
|
@@ -2576,7 +2588,7 @@ var unstable__meta = {
|
|
|
2576
2588
|
colors: [{
|
|
2577
2589
|
type: 'core',
|
|
2578
2590
|
tokens: ['uiBackground', 'interactive01', 'interactive02', 'interactive03', 'interactive04', 'brand01', 'brand02', 'brand03', 'danger', 'danger01', 'danger02', 'ui01', 'ui02', 'ui03', 'ui04', 'ui05', 'text01', 'text02', 'text03', 'text04', 'text05', 'textError', 'link01', 'link02', 'icon01', 'icon02', 'icon03', 'field01', 'field02', 'inverse01', 'inverse02', 'inverseLink', 'support01', 'support02', 'support03', 'support04', 'inverseSupport01', 'inverseSupport02', 'inverseSupport03', 'inverseSupport04', 'overlay01', //new tokens
|
|
2579
|
-
'background', 'layer', 'layerAccent', 'layerAccentHover', 'layerAccentActive', 'field', 'backgroundInverse', 'backgroundBrand', 'interactive', 'borderSubtle', 'borderStrong', 'borderInverse', 'borderInteractive', 'textPrimary', 'textSecondary', 'textPlaceholder', 'textHelper', 'textOnColor', 'textInverse', 'linkPrimary', 'linkSecondary', 'linkVisited', 'linkInverse', 'iconPrimary', 'iconSecondary', 'iconOnColor', 'iconInverse', 'supportError', 'supportSuccess', 'supportWarning', 'supportInfo', 'supportErrorInverse', 'supportSuccessInverse', 'supportWarningInverse', 'supportInfoInverse', 'overlay', 'toggleOff', 'buttonPrimary', 'buttonSecondary', 'buttonTertiary', 'buttonDangerPrimary', 'buttonDangerSecondary']
|
|
2591
|
+
'background', 'layer', 'layerAccent', 'layerAccentHover', 'layerAccentActive', 'field', 'backgroundInverse', 'backgroundBrand', 'interactive', 'borderSubtle', 'borderStrong', 'borderInverse', 'borderInteractive', 'textPrimary', 'textSecondary', 'textPlaceholder', 'textHelper', 'textOnColor', 'textInverse', 'linkPrimary', 'linkSecondary', 'linkVisited', 'linkInverse', 'iconPrimary', 'iconSecondary', 'iconOnColor', 'iconInverse', 'supportError', 'supportSuccess', 'supportWarning', 'supportInfo', 'supportErrorInverse', 'supportSuccessInverse', 'supportWarningInverse', 'supportInfoInverse', 'overlay', 'toggleOff', 'shadow', 'buttonPrimary', 'buttonSecondary', 'buttonTertiary', 'buttonDangerPrimary', 'buttonDangerSecondary']
|
|
2580
2592
|
}, {
|
|
2581
2593
|
type: 'interactive',
|
|
2582
2594
|
tokens: ['focus', 'inverseFocusUi', 'hoverPrimary', 'hoverPrimaryText', 'hoverSecondary', 'hoverTertiary', 'hoverUI', 'hoverLightUI', 'hoverSelectedUI', 'hoverDanger', 'hoverRow', 'activePrimary', 'activeSecondary', 'activeTertiary', 'activeUI', 'activeLightUI', 'activeDanger', 'selectedUI', 'selectedLightUI', 'highlight', 'skeleton01', 'skeleton02', 'visitedLink', 'disabled01', 'disabled02', 'disabled03', 'inverseHoverUI', 'active01', 'hoverField', 'decorative01', 'buttonSeparator', // new tokens
|
|
@@ -2600,4 +2612,4 @@ var themes = {
|
|
|
2600
2612
|
v9: v9
|
|
2601
2613
|
};
|
|
2602
2614
|
|
|
2603
|
-
export { active01$5 as active01, activeDanger$5 as activeDanger, activeLightUI$5 as activeLightUI, activePrimary$5 as activePrimary, activeSecondary$5 as activeSecondary, activeTertiary$5 as activeTertiary, activeUI$5 as activeUI, background$5 as background, backgroundActive$5 as backgroundActive, backgroundBrand$5 as backgroundBrand, backgroundHover$5 as backgroundHover, backgroundInverse$5 as backgroundInverse, backgroundInverseHover$5 as backgroundInverseHover, backgroundSelected$5 as backgroundSelected, backgroundSelectedHover$5 as backgroundSelectedHover, borderDisabled$5 as borderDisabled, borderInteractive$5 as borderInteractive, borderInverse$5 as borderInverse, borderStrong$5 as borderStrong, borderSubtle$5 as borderSubtle, borderSubtleSelected$5 as borderSubtleSelected, brand01$5 as brand01, brand02$5 as brand02, brand03$5 as brand03, buttonDangerActive$5 as buttonDangerActive, buttonDangerHover$5 as buttonDangerHover, buttonDangerPrimary$5 as buttonDangerPrimary, buttonDangerSecondary$5 as buttonDangerSecondary, buttonDisabled$5 as buttonDisabled, buttonPrimary$5 as buttonPrimary, buttonPrimaryActive$5 as buttonPrimaryActive, buttonPrimaryHover$5 as buttonPrimaryHover, buttonSecondary$5 as buttonSecondary, buttonSecondaryActive$5 as buttonSecondaryActive, buttonSecondaryHover$5 as buttonSecondaryHover, buttonSeparator$5 as buttonSeparator, buttonTertiary$5 as buttonTertiary, buttonTertiaryActive$5 as buttonTertiaryActive, buttonTertiaryHover$5 as buttonTertiaryHover, danger$5 as danger, danger01$5 as danger01, danger02$5 as danger02, decorative01$5 as decorative01, disabled01$5 as disabled01, disabled02$5 as disabled02, disabled03$5 as disabled03, field$5 as field, field01$5 as field01, field02$5 as field02, fieldDisabled$5 as fieldDisabled, fieldHover$5 as fieldHover, focus$5 as focus, focusInset$5 as focusInset, focusInverse$5 as focusInverse, formatTokenName, g10, g100, g80, g90, highlight$5 as highlight, hoverDanger$5 as hoverDanger, hoverField$5 as hoverField, hoverLightUI$5 as hoverLightUI, hoverPrimary$5 as hoverPrimary, hoverPrimaryText$5 as hoverPrimaryText, hoverRow$5 as hoverRow, hoverSecondary$5 as hoverSecondary, hoverSelectedUI$5 as hoverSelectedUI, hoverTertiary$5 as hoverTertiary, hoverUI$5 as hoverUI, icon01$5 as icon01, icon02$5 as icon02, icon03$5 as icon03, iconDisabled$5 as iconDisabled, iconInverse$5 as iconInverse, iconOnColor$5 as iconOnColor, iconOnColorDisabled$5 as iconOnColorDisabled, iconPrimary$5 as iconPrimary, iconSecondary$5 as iconSecondary, interactive$5 as interactive, interactive01$5 as interactive01, interactive02$5 as interactive02, interactive03$5 as interactive03, interactive04$5 as interactive04, inverse01$5 as inverse01, inverse02$5 as inverse02, inverseFocusUi$5 as inverseFocusUi, inverseHoverUI$5 as inverseHoverUI, inverseLink$5 as inverseLink, inverseSupport01$5 as inverseSupport01, inverseSupport02$5 as inverseSupport02, inverseSupport03$5 as inverseSupport03, inverseSupport04$5 as inverseSupport04, layer$5 as layer, layerAccent$5 as layerAccent, layerAccentActive$5 as layerAccentActive, layerAccentHover$5 as layerAccentHover, layerActive$5 as layerActive, layerDisabled$5 as layerDisabled, layerHover$5 as layerHover, layerSelected$5 as layerSelected, layerSelectedDisabled$5 as layerSelectedDisabled, layerSelectedHover$5 as layerSelectedHover, layerSelectedInverse$5 as layerSelectedInverse, link01$5 as link01, link02$5 as link02, linkInverse$5 as linkInverse, linkPrimary$5 as linkPrimary, linkPrimaryHover$5 as linkPrimaryHover, linkSecondary$5 as linkSecondary, linkVisited$5 as linkVisited, overlay$5 as overlay, overlay01$5 as overlay01, selectedLightUI$5 as selectedLightUI, selectedUI$5 as selectedUI, skeleton01$5 as skeleton01, skeleton02$5 as skeleton02, skeletonBackground$5 as skeletonBackground, skeletonElement$5 as skeletonElement, support01$5 as support01, support02$5 as support02, support03$5 as support03, support04$5 as support04, supportError$5 as supportError, supportErrorInverse$5 as supportErrorInverse, supportInfo$5 as supportInfo, supportInfoInverse$5 as supportInfoInverse, supportSuccess$5 as supportSuccess, supportSuccessInverse$5 as supportSuccessInverse, supportWarning$5 as supportWarning, supportWarningInverse$5 as supportWarningInverse, text01$5 as text01, text02$5 as text02, text03$5 as text03, text04$5 as text04, text05$5 as text05, textDisabled$5 as textDisabled, textError$5 as textError, textHelper$5 as textHelper, textInverse$5 as textInverse, textOnColor$5 as textOnColor, textOnColorDisabled$5 as textOnColorDisabled, textPlaceholder$5 as textPlaceholder, textPrimary$5 as textPrimary, textSecondary$5 as textSecondary, themes, toggleOff$5 as toggleOff, tokens, ui01$5 as ui01, ui02$5 as ui02, ui03$5 as ui03, ui04$5 as ui04, ui05$5 as ui05, uiBackground$5 as uiBackground, unstable__meta, v9, visitedLink$5 as visitedLink, white };
|
|
2615
|
+
export { active01$5 as active01, activeDanger$5 as activeDanger, activeLightUI$5 as activeLightUI, activePrimary$5 as activePrimary, activeSecondary$5 as activeSecondary, activeTertiary$5 as activeTertiary, activeUI$5 as activeUI, background$5 as background, backgroundActive$5 as backgroundActive, backgroundBrand$5 as backgroundBrand, backgroundHover$5 as backgroundHover, backgroundInverse$5 as backgroundInverse, backgroundInverseHover$5 as backgroundInverseHover, backgroundSelected$5 as backgroundSelected, backgroundSelectedHover$5 as backgroundSelectedHover, borderDisabled$5 as borderDisabled, borderInteractive$5 as borderInteractive, borderInverse$5 as borderInverse, borderStrong$5 as borderStrong, borderSubtle$5 as borderSubtle, borderSubtleSelected$5 as borderSubtleSelected, brand01$5 as brand01, brand02$5 as brand02, brand03$5 as brand03, buttonDangerActive$5 as buttonDangerActive, buttonDangerHover$5 as buttonDangerHover, buttonDangerPrimary$5 as buttonDangerPrimary, buttonDangerSecondary$5 as buttonDangerSecondary, buttonDisabled$5 as buttonDisabled, buttonPrimary$5 as buttonPrimary, buttonPrimaryActive$5 as buttonPrimaryActive, buttonPrimaryHover$5 as buttonPrimaryHover, buttonSecondary$5 as buttonSecondary, buttonSecondaryActive$5 as buttonSecondaryActive, buttonSecondaryHover$5 as buttonSecondaryHover, buttonSeparator$5 as buttonSeparator, buttonTertiary$5 as buttonTertiary, buttonTertiaryActive$5 as buttonTertiaryActive, buttonTertiaryHover$5 as buttonTertiaryHover, danger$5 as danger, danger01$5 as danger01, danger02$5 as danger02, decorative01$5 as decorative01, disabled01$5 as disabled01, disabled02$5 as disabled02, disabled03$5 as disabled03, field$5 as field, field01$5 as field01, field02$5 as field02, fieldDisabled$5 as fieldDisabled, fieldHover$5 as fieldHover, focus$5 as focus, focusInset$5 as focusInset, focusInverse$5 as focusInverse, formatTokenName, g10, g100, g80, g90, highlight$5 as highlight, hoverDanger$5 as hoverDanger, hoverField$5 as hoverField, hoverLightUI$5 as hoverLightUI, hoverPrimary$5 as hoverPrimary, hoverPrimaryText$5 as hoverPrimaryText, hoverRow$5 as hoverRow, hoverSecondary$5 as hoverSecondary, hoverSelectedUI$5 as hoverSelectedUI, hoverTertiary$5 as hoverTertiary, hoverUI$5 as hoverUI, icon01$5 as icon01, icon02$5 as icon02, icon03$5 as icon03, iconDisabled$5 as iconDisabled, iconInverse$5 as iconInverse, iconOnColor$5 as iconOnColor, iconOnColorDisabled$5 as iconOnColorDisabled, iconPrimary$5 as iconPrimary, iconSecondary$5 as iconSecondary, interactive$5 as interactive, interactive01$5 as interactive01, interactive02$5 as interactive02, interactive03$5 as interactive03, interactive04$5 as interactive04, inverse01$5 as inverse01, inverse02$5 as inverse02, inverseFocusUi$5 as inverseFocusUi, inverseHoverUI$5 as inverseHoverUI, inverseLink$5 as inverseLink, inverseSupport01$5 as inverseSupport01, inverseSupport02$5 as inverseSupport02, inverseSupport03$5 as inverseSupport03, inverseSupport04$5 as inverseSupport04, layer$5 as layer, layerAccent$5 as layerAccent, layerAccentActive$5 as layerAccentActive, layerAccentHover$5 as layerAccentHover, layerActive$5 as layerActive, layerDisabled$5 as layerDisabled, layerHover$5 as layerHover, layerSelected$5 as layerSelected, layerSelectedDisabled$5 as layerSelectedDisabled, layerSelectedHover$5 as layerSelectedHover, layerSelectedInverse$5 as layerSelectedInverse, link01$5 as link01, link02$5 as link02, linkInverse$5 as linkInverse, linkPrimary$5 as linkPrimary, linkPrimaryHover$5 as linkPrimaryHover, linkSecondary$5 as linkSecondary, linkVisited$5 as linkVisited, overlay$5 as overlay, overlay01$5 as overlay01, selectedLightUI$5 as selectedLightUI, selectedUI$5 as selectedUI, shadow$5 as shadow, skeleton01$5 as skeleton01, skeleton02$5 as skeleton02, skeletonBackground$5 as skeletonBackground, skeletonElement$5 as skeletonElement, support01$5 as support01, support02$5 as support02, support03$5 as support03, support04$5 as support04, supportError$5 as supportError, supportErrorInverse$5 as supportErrorInverse, supportInfo$5 as supportInfo, supportInfoInverse$5 as supportInfoInverse, supportSuccess$5 as supportSuccess, supportSuccessInverse$5 as supportSuccessInverse, supportWarning$5 as supportWarning, supportWarningInverse$5 as supportWarningInverse, text01$5 as text01, text02$5 as text02, text03$5 as text03, text04$5 as text04, text05$5 as text05, textDisabled$5 as textDisabled, textError$5 as textError, textHelper$5 as textHelper, textInverse$5 as textInverse, textOnColor$5 as textOnColor, textOnColorDisabled$5 as textOnColorDisabled, textPlaceholder$5 as textPlaceholder, textPrimary$5 as textPrimary, textSecondary$5 as textSecondary, themes, toggleOff$5 as toggleOff, tokens, ui01$5 as ui01, ui02$5 as ui02, ui03$5 as ui03, ui04$5 as ui04, ui05$5 as ui05, uiBackground$5 as uiBackground, unstable__meta, v9, visitedLink$5 as visitedLink, white };
|
package/lib/index.js
CHANGED
|
@@ -193,6 +193,7 @@ var supportWarningInverse$5 = inverseSupport03$5;
|
|
|
193
193
|
var supportInfoInverse$5 = inverseSupport04$5;
|
|
194
194
|
var overlay$5 = overlay01$5;
|
|
195
195
|
var toggleOff$5 = ui04$5;
|
|
196
|
+
var shadow$5 = colors$1.rgba(colors$1.black, 0.3);
|
|
196
197
|
var buttonPrimary$5 = interactive01$5;
|
|
197
198
|
var buttonSecondary$5 = interactive02$5;
|
|
198
199
|
var buttonTertiary$5 = interactive03$5;
|
|
@@ -345,6 +346,7 @@ var white = /*#__PURE__*/Object.freeze({
|
|
|
345
346
|
supportInfoInverse: supportInfoInverse$5,
|
|
346
347
|
overlay: overlay$5,
|
|
347
348
|
toggleOff: toggleOff$5,
|
|
349
|
+
shadow: shadow$5,
|
|
348
350
|
buttonPrimary: buttonPrimary$5,
|
|
349
351
|
buttonSecondary: buttonSecondary$5,
|
|
350
352
|
buttonTertiary: buttonTertiary$5,
|
|
@@ -599,6 +601,7 @@ var supportWarningInverse$4 = inverseSupport03$4;
|
|
|
599
601
|
var supportInfoInverse$4 = inverseSupport04$4;
|
|
600
602
|
var overlay$4 = overlay01$4;
|
|
601
603
|
var toggleOff$4 = ui04$4;
|
|
604
|
+
var shadow$4 = colors$1.rgba(colors$1.black, 0.3);
|
|
602
605
|
var buttonPrimary$4 = interactive01$4;
|
|
603
606
|
var buttonSecondary$4 = interactive02$4;
|
|
604
607
|
var buttonTertiary$4 = interactive03$4;
|
|
@@ -751,6 +754,7 @@ var g10 = /*#__PURE__*/Object.freeze({
|
|
|
751
754
|
supportInfoInverse: supportInfoInverse$4,
|
|
752
755
|
overlay: overlay$4,
|
|
753
756
|
toggleOff: toggleOff$4,
|
|
757
|
+
shadow: shadow$4,
|
|
754
758
|
buttonPrimary: buttonPrimary$4,
|
|
755
759
|
buttonSecondary: buttonSecondary$4,
|
|
756
760
|
buttonTertiary: buttonTertiary$4,
|
|
@@ -933,7 +937,7 @@ var inverseSupport01$3 = colors$1.red60;
|
|
|
933
937
|
var inverseSupport02$3 = colors$1.green50;
|
|
934
938
|
var inverseSupport03$3 = colors$1.yellow;
|
|
935
939
|
var inverseSupport04$3 = colors$1.blue60;
|
|
936
|
-
var overlay01$3 = colors$1.rgba(colors$1.
|
|
940
|
+
var overlay01$3 = colors$1.rgba(colors$1.black, 0.65);
|
|
937
941
|
var danger01$3 = colors$1.red60;
|
|
938
942
|
var danger02$3 = colors$1.red50; // Interaction states
|
|
939
943
|
|
|
@@ -1005,6 +1009,7 @@ var supportWarningInverse$3 = inverseSupport03$3;
|
|
|
1005
1009
|
var supportInfoInverse$3 = inverseSupport04$3;
|
|
1006
1010
|
var overlay$3 = overlay01$3;
|
|
1007
1011
|
var toggleOff$3 = ui04$3;
|
|
1012
|
+
var shadow$3 = colors$1.rgba(colors$1.black, 0.8);
|
|
1008
1013
|
var buttonPrimary$3 = interactive01$3;
|
|
1009
1014
|
var buttonSecondary$3 = interactive02$3;
|
|
1010
1015
|
var buttonTertiary$3 = interactive03$3;
|
|
@@ -1157,6 +1162,7 @@ var g100 = /*#__PURE__*/Object.freeze({
|
|
|
1157
1162
|
supportInfoInverse: supportInfoInverse$3,
|
|
1158
1163
|
overlay: overlay$3,
|
|
1159
1164
|
toggleOff: toggleOff$3,
|
|
1165
|
+
shadow: shadow$3,
|
|
1160
1166
|
buttonPrimary: buttonPrimary$3,
|
|
1161
1167
|
buttonSecondary: buttonSecondary$3,
|
|
1162
1168
|
buttonTertiary: buttonTertiary$3,
|
|
@@ -1343,8 +1349,9 @@ var supportErrorInverse$2 = colors$1.red60;
|
|
|
1343
1349
|
var supportSuccessInverse$2 = colors$1.green50;
|
|
1344
1350
|
var supportWarningInverse$2 = colors$1.yellow30;
|
|
1345
1351
|
var supportInfoInverse$2 = colors$1.blue60;
|
|
1346
|
-
var overlay$2 = colors$1.rgba(colors$1.
|
|
1352
|
+
var overlay$2 = colors$1.rgba(colors$1.black, 0.65);
|
|
1347
1353
|
var toggleOff$2 = colors$1.gray50;
|
|
1354
|
+
var shadow$2 = colors$1.rgba(colors$1.black, 0.8);
|
|
1348
1355
|
var buttonPrimary$2 = colors$1.blue60;
|
|
1349
1356
|
var buttonSecondary$2 = colors$1.gray60;
|
|
1350
1357
|
var buttonTertiary$2 = colors$1.white;
|
|
@@ -1501,6 +1508,7 @@ var g80 = /*#__PURE__*/Object.freeze({
|
|
|
1501
1508
|
supportInfoInverse: supportInfoInverse$2,
|
|
1502
1509
|
overlay: overlay$2,
|
|
1503
1510
|
toggleOff: toggleOff$2,
|
|
1511
|
+
shadow: shadow$2,
|
|
1504
1512
|
buttonPrimary: buttonPrimary$2,
|
|
1505
1513
|
buttonSecondary: buttonSecondary$2,
|
|
1506
1514
|
buttonTertiary: buttonTertiary$2,
|
|
@@ -1748,7 +1756,7 @@ var inverseSupport01$1 = colors$1.red60;
|
|
|
1748
1756
|
var inverseSupport02$1 = colors$1.green50;
|
|
1749
1757
|
var inverseSupport03$1 = colors$1.yellow;
|
|
1750
1758
|
var inverseSupport04$1 = colors$1.blue60;
|
|
1751
|
-
var overlay01$1 = colors$1.rgba(colors$1.
|
|
1759
|
+
var overlay01$1 = colors$1.rgba(colors$1.black, 0.65);
|
|
1752
1760
|
var danger01$1 = colors$1.red60;
|
|
1753
1761
|
var danger02$1 = colors$1.red40; // Interaction states
|
|
1754
1762
|
|
|
@@ -1820,6 +1828,7 @@ var supportWarningInverse$1 = inverseSupport03$1;
|
|
|
1820
1828
|
var supportInfoInverse$1 = inverseSupport04$1;
|
|
1821
1829
|
var overlay$1 = overlay01$1;
|
|
1822
1830
|
var toggleOff$1 = ui04$1;
|
|
1831
|
+
var shadow$1 = colors$1.rgba(colors$1.black, 0.8);
|
|
1823
1832
|
var buttonPrimary$1 = interactive01$1;
|
|
1824
1833
|
var buttonSecondary$1 = interactive02$1;
|
|
1825
1834
|
var buttonTertiary$1 = interactive03$1;
|
|
@@ -1972,6 +1981,7 @@ var g90 = /*#__PURE__*/Object.freeze({
|
|
|
1972
1981
|
supportInfoInverse: supportInfoInverse$1,
|
|
1973
1982
|
overlay: overlay$1,
|
|
1974
1983
|
toggleOff: toggleOff$1,
|
|
1984
|
+
shadow: shadow$1,
|
|
1975
1985
|
buttonPrimary: buttonPrimary$1,
|
|
1976
1986
|
buttonSecondary: buttonSecondary$1,
|
|
1977
1987
|
buttonTertiary: buttonTertiary$1,
|
|
@@ -2226,6 +2236,7 @@ var supportWarningInverse = inverseSupport03;
|
|
|
2226
2236
|
var supportInfoInverse = inverseSupport04;
|
|
2227
2237
|
var overlay = overlay01;
|
|
2228
2238
|
var toggleOff = ui04;
|
|
2239
|
+
var shadow = colors$1.rgba(colors$1.black, 0.3);
|
|
2229
2240
|
var buttonPrimary = interactive01;
|
|
2230
2241
|
var buttonSecondary = interactive02;
|
|
2231
2242
|
var buttonTertiary = interactive03;
|
|
@@ -2378,6 +2389,7 @@ var v9 = /*#__PURE__*/Object.freeze({
|
|
|
2378
2389
|
supportInfoInverse: supportInfoInverse,
|
|
2379
2390
|
overlay: overlay,
|
|
2380
2391
|
toggleOff: toggleOff,
|
|
2392
|
+
shadow: shadow,
|
|
2381
2393
|
buttonPrimary: buttonPrimary,
|
|
2382
2394
|
buttonSecondary: buttonSecondary,
|
|
2383
2395
|
buttonTertiary: buttonTertiary,
|
|
@@ -2532,7 +2544,7 @@ var colors = [// Core
|
|
|
2532
2544
|
'interactive01', 'interactive02', 'interactive03', 'interactive04', 'uiBackground', 'ui01', 'ui02', 'ui03', 'ui04', 'ui05', 'text01', 'text02', 'text03', 'text04', 'text05', 'textError', 'icon01', 'icon02', 'icon03', 'link01', 'link02', 'inverseLink', 'field01', 'field02', 'inverse01', 'inverse02', 'support01', 'support02', 'support03', 'support04', 'inverseSupport01', 'inverseSupport02', 'inverseSupport03', 'inverseSupport04', 'overlay01', 'danger01', 'danger02', // Interactive states
|
|
2533
2545
|
'focus', 'inverseFocusUi', 'hoverPrimary', 'activePrimary', 'hoverPrimaryText', 'hoverSecondary', 'activeSecondary', 'hoverTertiary', 'activeTertiary', 'hoverUI', 'hoverLightUI', 'hoverSelectedUI', 'activeUI', 'activeLightUI', 'selectedUI', 'selectedLightUI', 'inverseHoverUI', 'hoverDanger', 'activeDanger', 'hoverRow', 'visitedLink', 'disabled01', 'disabled02', 'disabled03', 'highlight', 'decorative01', 'buttonSeparator', 'skeleton01', 'skeleton02', // New color tokens
|
|
2534
2546
|
// TO-DO: remove fallback color when v11 is released and assign carbon colors to new tokens
|
|
2535
|
-
'background', 'layer', 'layerAccent', 'layerAccentHover', 'layerAccentActive', 'field', 'backgroundInverse', 'backgroundBrand', 'interactive', 'borderSubtle', 'borderStrong', 'borderInverse', 'borderInteractive', 'textPrimary', 'textSecondary', 'textPlaceholder', 'textHelper', 'textOnColor', 'textInverse', 'linkPrimary', 'linkSecondary', 'linkVisited', 'linkInverse', 'iconPrimary', 'iconSecondary', 'iconOnColor', 'iconInverse', 'supportError', 'supportSuccess', 'supportWarning', 'supportInfo', 'supportErrorInverse', 'supportSuccessInverse', 'supportWarningInverse', 'supportInfoInverse', 'overlay', 'toggleOff', 'buttonPrimary', 'buttonSecondary', 'buttonTertiary', 'buttonDangerPrimary', 'buttonDangerSecondary', 'backgroundActive', 'layerActive', 'buttonDangerActive', 'buttonPrimaryActive', 'buttonSecondaryActive', 'buttonTertiaryActive', 'focusInset', 'focusInverse', 'backgroundHover', 'layerHover', 'fieldHover', 'backgroundInverseHover', 'linkPrimaryHover', 'buttonDangerHover', 'buttonPrimaryHover', 'buttonSecondaryHover', 'buttonTertiaryHover', 'backgroundSelected', 'backgroundSelectedHover', 'layerSelected', 'layerSelectedHover', 'layerSelectedInverse', 'borderSubtleSelected', 'layerDisabled', 'fieldDisabled', 'borderDisabled', 'textDisabled', 'buttonDisabled', 'iconDisabled', 'textOnColorDisabled', 'iconOnColorDisabled', 'layerSelectedDisabled', 'skeletonBackground', 'skeletonElement', // Deprecated
|
|
2547
|
+
'background', 'layer', 'layerAccent', 'layerAccentHover', 'layerAccentActive', 'field', 'backgroundInverse', 'backgroundBrand', 'interactive', 'borderSubtle', 'borderStrong', 'borderInverse', 'borderInteractive', 'textPrimary', 'textSecondary', 'textPlaceholder', 'textHelper', 'textOnColor', 'textInverse', 'linkPrimary', 'linkSecondary', 'linkVisited', 'linkInverse', 'iconPrimary', 'iconSecondary', 'iconOnColor', 'iconInverse', 'supportError', 'supportSuccess', 'supportWarning', 'supportInfo', 'supportErrorInverse', 'supportSuccessInverse', 'supportWarningInverse', 'supportInfoInverse', 'overlay', 'toggleOff', 'shadow', 'buttonPrimary', 'buttonSecondary', 'buttonTertiary', 'buttonDangerPrimary', 'buttonDangerSecondary', 'backgroundActive', 'layerActive', 'buttonDangerActive', 'buttonPrimaryActive', 'buttonSecondaryActive', 'buttonTertiaryActive', 'focusInset', 'focusInverse', 'backgroundHover', 'layerHover', 'fieldHover', 'backgroundInverseHover', 'linkPrimaryHover', 'buttonDangerHover', 'buttonPrimaryHover', 'buttonSecondaryHover', 'buttonTertiaryHover', 'backgroundSelected', 'backgroundSelectedHover', 'layerSelected', 'layerSelectedHover', 'layerSelectedInverse', 'borderSubtleSelected', 'layerDisabled', 'fieldDisabled', 'borderDisabled', 'textDisabled', 'buttonDisabled', 'iconDisabled', 'textOnColorDisabled', 'iconOnColorDisabled', 'layerSelectedDisabled', 'skeletonBackground', 'skeletonElement', // Deprecated
|
|
2536
2548
|
'brand01', 'brand02', 'brand03', 'active01', 'hoverField', 'danger'];
|
|
2537
2549
|
var numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
|
|
2538
2550
|
/**
|
|
@@ -2582,7 +2594,7 @@ var unstable__meta = {
|
|
|
2582
2594
|
colors: [{
|
|
2583
2595
|
type: 'core',
|
|
2584
2596
|
tokens: ['uiBackground', 'interactive01', 'interactive02', 'interactive03', 'interactive04', 'brand01', 'brand02', 'brand03', 'danger', 'danger01', 'danger02', 'ui01', 'ui02', 'ui03', 'ui04', 'ui05', 'text01', 'text02', 'text03', 'text04', 'text05', 'textError', 'link01', 'link02', 'icon01', 'icon02', 'icon03', 'field01', 'field02', 'inverse01', 'inverse02', 'inverseLink', 'support01', 'support02', 'support03', 'support04', 'inverseSupport01', 'inverseSupport02', 'inverseSupport03', 'inverseSupport04', 'overlay01', //new tokens
|
|
2585
|
-
'background', 'layer', 'layerAccent', 'layerAccentHover', 'layerAccentActive', 'field', 'backgroundInverse', 'backgroundBrand', 'interactive', 'borderSubtle', 'borderStrong', 'borderInverse', 'borderInteractive', 'textPrimary', 'textSecondary', 'textPlaceholder', 'textHelper', 'textOnColor', 'textInverse', 'linkPrimary', 'linkSecondary', 'linkVisited', 'linkInverse', 'iconPrimary', 'iconSecondary', 'iconOnColor', 'iconInverse', 'supportError', 'supportSuccess', 'supportWarning', 'supportInfo', 'supportErrorInverse', 'supportSuccessInverse', 'supportWarningInverse', 'supportInfoInverse', 'overlay', 'toggleOff', 'buttonPrimary', 'buttonSecondary', 'buttonTertiary', 'buttonDangerPrimary', 'buttonDangerSecondary']
|
|
2597
|
+
'background', 'layer', 'layerAccent', 'layerAccentHover', 'layerAccentActive', 'field', 'backgroundInverse', 'backgroundBrand', 'interactive', 'borderSubtle', 'borderStrong', 'borderInverse', 'borderInteractive', 'textPrimary', 'textSecondary', 'textPlaceholder', 'textHelper', 'textOnColor', 'textInverse', 'linkPrimary', 'linkSecondary', 'linkVisited', 'linkInverse', 'iconPrimary', 'iconSecondary', 'iconOnColor', 'iconInverse', 'supportError', 'supportSuccess', 'supportWarning', 'supportInfo', 'supportErrorInverse', 'supportSuccessInverse', 'supportWarningInverse', 'supportInfoInverse', 'overlay', 'toggleOff', 'shadow', 'buttonPrimary', 'buttonSecondary', 'buttonTertiary', 'buttonDangerPrimary', 'buttonDangerSecondary']
|
|
2586
2598
|
}, {
|
|
2587
2599
|
type: 'interactive',
|
|
2588
2600
|
tokens: ['focus', 'inverseFocusUi', 'hoverPrimary', 'hoverPrimaryText', 'hoverSecondary', 'hoverTertiary', 'hoverUI', 'hoverLightUI', 'hoverSelectedUI', 'hoverDanger', 'hoverRow', 'activePrimary', 'activeSecondary', 'activeTertiary', 'activeUI', 'activeLightUI', 'activeDanger', 'selectedUI', 'selectedLightUI', 'highlight', 'skeleton01', 'skeleton02', 'visitedLink', 'disabled01', 'disabled02', 'disabled03', 'inverseHoverUI', 'active01', 'hoverField', 'decorative01', 'buttonSeparator', // new tokens
|
|
@@ -3291,6 +3303,7 @@ exports.overlay = overlay$5;
|
|
|
3291
3303
|
exports.overlay01 = overlay01$5;
|
|
3292
3304
|
exports.selectedLightUI = selectedLightUI$5;
|
|
3293
3305
|
exports.selectedUI = selectedUI$5;
|
|
3306
|
+
exports.shadow = shadow$5;
|
|
3294
3307
|
exports.skeleton01 = skeleton01$5;
|
|
3295
3308
|
exports.skeleton02 = skeleton02$5;
|
|
3296
3309
|
exports.skeletonBackground = skeletonBackground$5;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/themes",
|
|
3
3
|
"description": "Themes for applying color in the Carbon Design System",
|
|
4
|
-
"version": "10.
|
|
4
|
+
"version": "10.46.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -29,18 +29,18 @@
|
|
|
29
29
|
"build": "yarn clean && carbon-cli bundle src/index.js --name CarbonThemes && babel-node --presets '@babel/preset-env' tasks/build.js && carbon-cli check \"scss/*.scss\""
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@carbon/colors": "^10.
|
|
33
|
-
"@carbon/layout": "^10.
|
|
34
|
-
"@carbon/type": "^10.
|
|
32
|
+
"@carbon/colors": "^10.34.0",
|
|
33
|
+
"@carbon/layout": "^10.34.0",
|
|
34
|
+
"@carbon/type": "^10.38.0",
|
|
35
35
|
"color": "^3.1.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@babel/node": "^7.14.2",
|
|
39
39
|
"@babel/preset-env": "^7.14.2",
|
|
40
|
-
"@carbon/cli": "^10.
|
|
40
|
+
"@carbon/cli": "^10.31.0",
|
|
41
41
|
"@carbon/cli-reporter": "^10.5.0",
|
|
42
42
|
"@carbon/scss-generator": "^10.13.0",
|
|
43
|
-
"@carbon/test-utils": "^10.
|
|
43
|
+
"@carbon/test-utils": "^10.20.0",
|
|
44
44
|
"change-case": "^4.1.1",
|
|
45
45
|
"core-js": "^3.16.0",
|
|
46
46
|
"fs-extra": "^8.1.0",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"rimraf": "^3.0.0"
|
|
50
50
|
},
|
|
51
51
|
"sideEffects": false,
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "f6352a1010117000ce4ca9f71315b67b1ec8e396"
|
|
53
53
|
}
|
|
@@ -171,7 +171,7 @@ $g90: (
|
|
|
171
171
|
inverse-support-02: #24a148,
|
|
172
172
|
inverse-support-03: #f1c21b,
|
|
173
173
|
inverse-support-04: #0f62fe,
|
|
174
|
-
overlay-01: rgba(
|
|
174
|
+
overlay-01: rgba(0, 0, 0, 0.65),
|
|
175
175
|
danger-01: #da1e28,
|
|
176
176
|
danger-02: #ff8389,
|
|
177
177
|
inverse-focus-ui: #0f62fe,
|
|
@@ -237,7 +237,7 @@ $g100: (
|
|
|
237
237
|
inverse-support-02: #24a148,
|
|
238
238
|
inverse-support-03: #f1c21b,
|
|
239
239
|
inverse-support-04: #0f62fe,
|
|
240
|
-
overlay-01: rgba(
|
|
240
|
+
overlay-01: rgba(0, 0, 0, 0.65),
|
|
241
241
|
danger-01: #da1e28,
|
|
242
242
|
danger-02: #fa4d56,
|
|
243
243
|
inverse-focus-ui: #0f62fe,
|
|
@@ -141,6 +141,7 @@
|
|
|
141
141
|
$support-info-inverse: map-get($theme, 'support-info-inverse') !global;
|
|
142
142
|
$overlay: map-get($theme, 'overlay') !global;
|
|
143
143
|
$toggle-off: map-get($theme, 'toggle-off') !global;
|
|
144
|
+
$shadow: map-get($theme, 'shadow') !global;
|
|
144
145
|
$button-primary: map-get($theme, 'button-primary') !global;
|
|
145
146
|
$button-secondary: map-get($theme, 'button-secondary') !global;
|
|
146
147
|
$button-tertiary: map-get($theme, 'button-tertiary') !global;
|
|
@@ -784,6 +785,10 @@
|
|
|
784
785
|
--#{$custom-property-prefix}-toggle-off,
|
|
785
786
|
map-get($theme, 'toggle-off')
|
|
786
787
|
) !global;
|
|
788
|
+
$shadow: var(
|
|
789
|
+
--#{$custom-property-prefix}-shadow,
|
|
790
|
+
map-get($theme, 'shadow')
|
|
791
|
+
) !global;
|
|
787
792
|
$button-primary: var(
|
|
788
793
|
--#{$custom-property-prefix}-button-primary,
|
|
789
794
|
map-get($theme, 'button-primary')
|
|
@@ -2128,6 +2133,10 @@
|
|
|
2128
2133
|
@include custom-property('toggle-off', map-get($theme, 'toggle-off'));
|
|
2129
2134
|
}
|
|
2130
2135
|
|
|
2136
|
+
@if should-emit($theme, $parent-carbon-theme, 'shadow', $emit-difference) {
|
|
2137
|
+
@include custom-property('shadow', map-get($theme, 'shadow'));
|
|
2138
|
+
}
|
|
2139
|
+
|
|
2131
2140
|
@if should-emit(
|
|
2132
2141
|
$theme,
|
|
2133
2142
|
$parent-carbon-theme,
|
|
@@ -110,6 +110,7 @@ $carbon--theme--white: (
|
|
|
110
110
|
support-info-inverse: #4589ff,
|
|
111
111
|
overlay: rgba(22, 22, 22, 0.5),
|
|
112
112
|
toggle-off: #8d8d8d,
|
|
113
|
+
shadow: rgba(0, 0, 0, 0.3),
|
|
113
114
|
button-primary: #0f62fe,
|
|
114
115
|
button-secondary: #393939,
|
|
115
116
|
button-tertiary: #0f62fe,
|
|
@@ -1000,7 +1001,8 @@ $carbon--theme--g80: map-merge(
|
|
|
1000
1001
|
support-error-inverse: #da1e28,
|
|
1001
1002
|
support-success-inverse: #24a148,
|
|
1002
1003
|
support-info-inverse: #0f62fe,
|
|
1003
|
-
overlay: rgba(
|
|
1004
|
+
overlay: rgba(0, 0, 0, 0.65),
|
|
1005
|
+
shadow: rgba(0, 0, 0, 0.8),
|
|
1004
1006
|
button-secondary: #6f6f6f,
|
|
1005
1007
|
button-tertiary: #ffffff,
|
|
1006
1008
|
button-danger-secondary: #ff8389,
|
|
@@ -1066,7 +1068,7 @@ $carbon--theme--g80: map-merge(
|
|
|
1066
1068
|
inverse-support-01: #da1e28,
|
|
1067
1069
|
inverse-support-02: #24a148,
|
|
1068
1070
|
inverse-support-04: #0f62fe,
|
|
1069
|
-
overlay-01: rgba(
|
|
1071
|
+
overlay-01: rgba(0, 0, 0, 0.65),
|
|
1070
1072
|
danger-02: #ff8389,
|
|
1071
1073
|
inverse-focus-ui: #0f62fe,
|
|
1072
1074
|
hover-primary: #0151e4,
|
|
@@ -1133,7 +1135,7 @@ $carbon--theme--g90: map-merge(
|
|
|
1133
1135
|
inverse-support-01: #da1e28,
|
|
1134
1136
|
inverse-support-02: #24a148,
|
|
1135
1137
|
inverse-support-04: #0f62fe,
|
|
1136
|
-
overlay-01: rgba(
|
|
1138
|
+
overlay-01: rgba(0, 0, 0, 0.65),
|
|
1137
1139
|
danger-02: #ff8389,
|
|
1138
1140
|
focus: #ffffff,
|
|
1139
1141
|
inverse-focus-ui: #0f62fe,
|
|
@@ -1189,7 +1191,8 @@ $carbon--theme--g90: map-merge(
|
|
|
1189
1191
|
support-error-inverse: #da1e28,
|
|
1190
1192
|
support-success-inverse: #24a148,
|
|
1191
1193
|
support-info-inverse: #0f62fe,
|
|
1192
|
-
overlay: rgba(
|
|
1194
|
+
overlay: rgba(0, 0, 0, 0.65),
|
|
1195
|
+
shadow: rgba(0, 0, 0, 0.8),
|
|
1193
1196
|
button-secondary: #6f6f6f,
|
|
1194
1197
|
button-tertiary: #ffffff,
|
|
1195
1198
|
button-danger-secondary: #ff8389,
|
|
@@ -1266,7 +1269,7 @@ $carbon--theme--g100: map-merge(
|
|
|
1266
1269
|
inverse-support-01: #da1e28,
|
|
1267
1270
|
inverse-support-02: #24a148,
|
|
1268
1271
|
inverse-support-04: #0f62fe,
|
|
1269
|
-
overlay-01: rgba(
|
|
1272
|
+
overlay-01: rgba(0, 0, 0, 0.65),
|
|
1270
1273
|
danger-02: #fa4d56,
|
|
1271
1274
|
focus: #ffffff,
|
|
1272
1275
|
inverse-focus-ui: #0f62fe,
|
|
@@ -1322,8 +1325,9 @@ $carbon--theme--g100: map-merge(
|
|
|
1322
1325
|
support-error-inverse: #da1e28,
|
|
1323
1326
|
support-success-inverse: #24a148,
|
|
1324
1327
|
support-info-inverse: #0f62fe,
|
|
1325
|
-
overlay: rgba(
|
|
1328
|
+
overlay: rgba(0, 0, 0, 0.65),
|
|
1326
1329
|
toggle-off: #6f6f6f,
|
|
1330
|
+
shadow: rgba(0, 0, 0, 0.8),
|
|
1327
1331
|
button-secondary: #6f6f6f,
|
|
1328
1332
|
button-tertiary: #ffffff,
|
|
1329
1333
|
button-danger-secondary: #fa4d56,
|
|
@@ -2126,6 +2130,12 @@ $carbon--theme: (
|
|
|
2126
2130
|
$toggle-off,
|
|
2127
2131
|
map-get($carbon--theme--white, 'toggle-off')
|
|
2128
2132
|
),
|
|
2133
|
+
shadow:
|
|
2134
|
+
if(
|
|
2135
|
+
global-variable-exists('shadow'),
|
|
2136
|
+
$shadow,
|
|
2137
|
+
map-get($carbon--theme--white, 'shadow')
|
|
2138
|
+
),
|
|
2129
2139
|
button-primary:
|
|
2130
2140
|
if(
|
|
2131
2141
|
global-variable-exists('button-primary'),
|
|
@@ -1090,6 +1090,16 @@ $toggle-off: if(
|
|
|
1090
1090
|
#8d8d8d
|
|
1091
1091
|
) !default;
|
|
1092
1092
|
|
|
1093
|
+
/// @type {undefined}
|
|
1094
|
+
/// @access public
|
|
1095
|
+
/// @group @carbon/themes
|
|
1096
|
+
$shadow: if(
|
|
1097
|
+
global-variable-exists('carbon--theme') and
|
|
1098
|
+
map-has-key($carbon--theme, 'shadow'),
|
|
1099
|
+
map-get($carbon--theme, 'shadow'),
|
|
1100
|
+
rgba(0, 0, 0, 0.3)
|
|
1101
|
+
) !default;
|
|
1102
|
+
|
|
1093
1103
|
/// @type {undefined}
|
|
1094
1104
|
/// @access public
|
|
1095
1105
|
/// @group @carbon/themes
|
|
@@ -107,6 +107,7 @@ $white: (
|
|
|
107
107
|
highlight: #d0e2ff,
|
|
108
108
|
overlay: rgba(22, 22, 22, 0.5),
|
|
109
109
|
toggle-off: #8d8d8d,
|
|
110
|
+
shadow: rgba(0, 0, 0, 0.3),
|
|
110
111
|
) !default;
|
|
111
112
|
$white: utilities.merge(
|
|
112
113
|
$white,
|
|
@@ -211,6 +212,7 @@ $g10: (
|
|
|
211
212
|
highlight: #d0e2ff,
|
|
212
213
|
overlay: rgba(22, 22, 22, 0.5),
|
|
213
214
|
toggle-off: #8d8d8d,
|
|
215
|
+
shadow: rgba(0, 0, 0, 0.3),
|
|
214
216
|
) !default;
|
|
215
217
|
$g10: utilities.merge(
|
|
216
218
|
$g10,
|
|
@@ -313,8 +315,9 @@ $g90: (
|
|
|
313
315
|
skeleton-element: #525252,
|
|
314
316
|
interactive: #4589ff,
|
|
315
317
|
highlight: #0043ce,
|
|
316
|
-
overlay: rgba(
|
|
318
|
+
overlay: rgba(0, 0, 0, 0.65),
|
|
317
319
|
toggle-off: #8d8d8d,
|
|
320
|
+
shadow: rgba(0, 0, 0, 0.8),
|
|
318
321
|
) !default;
|
|
319
322
|
$g90: utilities.merge(
|
|
320
323
|
$g90,
|
|
@@ -417,8 +420,9 @@ $g100: (
|
|
|
417
420
|
skeleton-element: #393939,
|
|
418
421
|
interactive: #4589ff,
|
|
419
422
|
highlight: #d0e2ff,
|
|
420
|
-
overlay: rgba(
|
|
423
|
+
overlay: rgba(0, 0, 0, 0.65),
|
|
421
424
|
toggle-off: #8d8d8d,
|
|
425
|
+
shadow: rgba(0, 0, 0, 0.8),
|
|
422
426
|
) !default;
|
|
423
427
|
$g100: utilities.merge(
|
|
424
428
|
$g100,
|
|
@@ -289,6 +289,9 @@ $overlay: _get('overlay') !default;
|
|
|
289
289
|
/// The CSS Custom Property for the `toggle-off` token
|
|
290
290
|
$toggle-off: _get('toggle-off') !default;
|
|
291
291
|
|
|
292
|
+
/// The CSS Custom Property for the `shadow` token
|
|
293
|
+
$shadow: _get('shadow') !default;
|
|
294
|
+
|
|
292
295
|
/// The CSS Custom Property for the `focus` token
|
|
293
296
|
$focus: _get('focus') !default;
|
|
294
297
|
|
package/src/g10.js
CHANGED
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
|
|
38
38
|
// Constants
|
|
39
39
|
white,
|
|
40
|
+
black,
|
|
40
41
|
|
|
41
42
|
// Tools
|
|
42
43
|
rgba,
|
|
@@ -182,6 +183,7 @@ export const supportInfoInverse = inverseSupport04;
|
|
|
182
183
|
|
|
183
184
|
export const overlay = overlay01;
|
|
184
185
|
export const toggleOff = ui04;
|
|
186
|
+
export const shadow = rgba(black, 0.3);
|
|
185
187
|
|
|
186
188
|
export const buttonPrimary = interactive01;
|
|
187
189
|
export const buttonSecondary = interactive02;
|
package/src/g100.js
CHANGED
|
@@ -36,6 +36,7 @@ import {
|
|
|
36
36
|
|
|
37
37
|
// Constants
|
|
38
38
|
white,
|
|
39
|
+
black,
|
|
39
40
|
|
|
40
41
|
// Tools
|
|
41
42
|
rgba,
|
|
@@ -86,7 +87,7 @@ export const inverseSupport02 = green50;
|
|
|
86
87
|
export const inverseSupport03 = yellow;
|
|
87
88
|
export const inverseSupport04 = blue60;
|
|
88
89
|
|
|
89
|
-
export const overlay01 = rgba(
|
|
90
|
+
export const overlay01 = rgba(black, 0.65);
|
|
90
91
|
|
|
91
92
|
export const danger01 = red60;
|
|
92
93
|
export const danger02 = red50;
|
|
@@ -181,6 +182,7 @@ export const supportInfoInverse = inverseSupport04;
|
|
|
181
182
|
|
|
182
183
|
export const overlay = overlay01;
|
|
183
184
|
export const toggleOff = ui04;
|
|
185
|
+
export const shadow = rgba(black, 0.8);
|
|
184
186
|
|
|
185
187
|
export const buttonPrimary = interactive01;
|
|
186
188
|
export const buttonSecondary = interactive02;
|
package/src/g80.js
CHANGED
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
|
|
38
38
|
// Constants
|
|
39
39
|
white,
|
|
40
|
+
black,
|
|
40
41
|
|
|
41
42
|
// Tools
|
|
42
43
|
rgba,
|
|
@@ -86,8 +87,9 @@ export const supportSuccessInverse = green50;
|
|
|
86
87
|
export const supportWarningInverse = yellow30;
|
|
87
88
|
export const supportInfoInverse = blue60;
|
|
88
89
|
|
|
89
|
-
export const overlay = rgba(
|
|
90
|
+
export const overlay = rgba(black, 0.65);
|
|
90
91
|
export const toggleOff = gray50;
|
|
92
|
+
export const shadow = rgba(black, 0.8);
|
|
91
93
|
|
|
92
94
|
export const buttonPrimary = blue60;
|
|
93
95
|
export const buttonSecondary = gray60;
|
package/src/g90.js
CHANGED
|
@@ -38,6 +38,7 @@ import {
|
|
|
38
38
|
|
|
39
39
|
// Constants
|
|
40
40
|
white,
|
|
41
|
+
black,
|
|
41
42
|
|
|
42
43
|
// Tools
|
|
43
44
|
rgba,
|
|
@@ -88,7 +89,7 @@ export const inverseSupport02 = green50;
|
|
|
88
89
|
export const inverseSupport03 = yellow;
|
|
89
90
|
export const inverseSupport04 = blue60;
|
|
90
91
|
|
|
91
|
-
export const overlay01 = rgba(
|
|
92
|
+
export const overlay01 = rgba(black, 0.65);
|
|
92
93
|
|
|
93
94
|
export const danger01 = red60;
|
|
94
95
|
export const danger02 = red40;
|
|
@@ -183,6 +184,7 @@ export const supportInfoInverse = inverseSupport04;
|
|
|
183
184
|
|
|
184
185
|
export const overlay = overlay01;
|
|
185
186
|
export const toggleOff = ui04;
|
|
187
|
+
export const shadow = rgba(black, 0.8);
|
|
186
188
|
|
|
187
189
|
export const buttonPrimary = interactive01;
|
|
188
190
|
export const buttonSecondary = interactive02;
|
package/src/next/g10.js
CHANGED
package/src/next/g100.js
CHANGED
|
@@ -41,6 +41,10 @@ import {
|
|
|
41
41
|
|
|
42
42
|
// Constants
|
|
43
43
|
white,
|
|
44
|
+
black,
|
|
45
|
+
|
|
46
|
+
// Tools
|
|
47
|
+
rgba,
|
|
44
48
|
} from '@carbon/colors';
|
|
45
49
|
import { adjustLightness } from '../tools';
|
|
46
50
|
|
|
@@ -193,8 +197,9 @@ export const skeletonElement = gray80;
|
|
|
193
197
|
// Misc
|
|
194
198
|
export const interactive = blue50;
|
|
195
199
|
export const highlight = blue20;
|
|
196
|
-
export const overlay =
|
|
200
|
+
export const overlay = rgba(black, 0.65);
|
|
197
201
|
export const toggleOff = gray50;
|
|
202
|
+
export const shadow = rgba(black, 0.8);
|
|
198
203
|
|
|
199
204
|
export {
|
|
200
205
|
// Type
|
package/src/next/g90.js
CHANGED
|
@@ -40,6 +40,10 @@ import {
|
|
|
40
40
|
|
|
41
41
|
// Constants
|
|
42
42
|
white,
|
|
43
|
+
black,
|
|
44
|
+
|
|
45
|
+
// Tools
|
|
46
|
+
rgba,
|
|
43
47
|
} from '@carbon/colors';
|
|
44
48
|
import { adjustLightness } from '../tools';
|
|
45
49
|
|
|
@@ -192,8 +196,9 @@ export const skeletonElement = gray70;
|
|
|
192
196
|
// Misc
|
|
193
197
|
export const interactive = blue50;
|
|
194
198
|
export const highlight = blue70;
|
|
195
|
-
export const overlay =
|
|
199
|
+
export const overlay = rgba(black, 0.65);
|
|
196
200
|
export const toggleOff = gray50;
|
|
201
|
+
export const shadow = rgba(black, 0.8);
|
|
197
202
|
|
|
198
203
|
export {
|
|
199
204
|
// Type
|
package/src/next/white.js
CHANGED
package/src/tokens.js
CHANGED
|
@@ -150,6 +150,7 @@ const colors = [
|
|
|
150
150
|
|
|
151
151
|
'overlay',
|
|
152
152
|
'toggleOff',
|
|
153
|
+
'shadow',
|
|
153
154
|
|
|
154
155
|
'buttonPrimary',
|
|
155
156
|
'buttonSecondary',
|
|
@@ -346,6 +347,7 @@ export const unstable__meta = {
|
|
|
346
347
|
|
|
347
348
|
'overlay',
|
|
348
349
|
'toggleOff',
|
|
350
|
+
'shadow',
|
|
349
351
|
|
|
350
352
|
'buttonPrimary',
|
|
351
353
|
'buttonSecondary',
|
package/src/v9.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { adjustLightness } from './tools';
|
|
9
|
-
import { white, red60, gray40 } from '@carbon/colors';
|
|
9
|
+
import { white, red60, gray40, black, rgba } from '@carbon/colors';
|
|
10
10
|
|
|
11
11
|
export const interactive01 = '#3d70b2';
|
|
12
12
|
export const interactive02 = '#4d5358';
|
|
@@ -147,6 +147,7 @@ export const supportInfoInverse = inverseSupport04;
|
|
|
147
147
|
|
|
148
148
|
export const overlay = overlay01;
|
|
149
149
|
export const toggleOff = ui04;
|
|
150
|
+
export const shadow = rgba(black, 0.3);
|
|
150
151
|
|
|
151
152
|
export const buttonPrimary = interactive01;
|
|
152
153
|
export const buttonSecondary = interactive02;
|
package/src/white.js
CHANGED
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
|
|
38
38
|
// Constants
|
|
39
39
|
white,
|
|
40
|
+
black,
|
|
40
41
|
|
|
41
42
|
// Tools
|
|
42
43
|
rgba,
|
|
@@ -182,6 +183,7 @@ export const supportInfoInverse = inverseSupport04;
|
|
|
182
183
|
|
|
183
184
|
export const overlay = overlay01;
|
|
184
185
|
export const toggleOff = ui04;
|
|
186
|
+
export const shadow = rgba(black, 0.3);
|
|
185
187
|
|
|
186
188
|
export const buttonPrimary = interactive01;
|
|
187
189
|
export const buttonSecondary = interactive02;
|
package/umd/index.js
CHANGED
|
@@ -190,6 +190,7 @@
|
|
|
190
190
|
var supportInfoInverse$5 = inverseSupport04$5;
|
|
191
191
|
var overlay$5 = overlay01$5;
|
|
192
192
|
var toggleOff$5 = ui04$5;
|
|
193
|
+
var shadow$5 = colors$1.rgba(colors$1.black, 0.3);
|
|
193
194
|
var buttonPrimary$5 = interactive01$5;
|
|
194
195
|
var buttonSecondary$5 = interactive02$5;
|
|
195
196
|
var buttonTertiary$5 = interactive03$5;
|
|
@@ -342,6 +343,7 @@
|
|
|
342
343
|
supportInfoInverse: supportInfoInverse$5,
|
|
343
344
|
overlay: overlay$5,
|
|
344
345
|
toggleOff: toggleOff$5,
|
|
346
|
+
shadow: shadow$5,
|
|
345
347
|
buttonPrimary: buttonPrimary$5,
|
|
346
348
|
buttonSecondary: buttonSecondary$5,
|
|
347
349
|
buttonTertiary: buttonTertiary$5,
|
|
@@ -596,6 +598,7 @@
|
|
|
596
598
|
var supportInfoInverse$4 = inverseSupport04$4;
|
|
597
599
|
var overlay$4 = overlay01$4;
|
|
598
600
|
var toggleOff$4 = ui04$4;
|
|
601
|
+
var shadow$4 = colors$1.rgba(colors$1.black, 0.3);
|
|
599
602
|
var buttonPrimary$4 = interactive01$4;
|
|
600
603
|
var buttonSecondary$4 = interactive02$4;
|
|
601
604
|
var buttonTertiary$4 = interactive03$4;
|
|
@@ -748,6 +751,7 @@
|
|
|
748
751
|
supportInfoInverse: supportInfoInverse$4,
|
|
749
752
|
overlay: overlay$4,
|
|
750
753
|
toggleOff: toggleOff$4,
|
|
754
|
+
shadow: shadow$4,
|
|
751
755
|
buttonPrimary: buttonPrimary$4,
|
|
752
756
|
buttonSecondary: buttonSecondary$4,
|
|
753
757
|
buttonTertiary: buttonTertiary$4,
|
|
@@ -930,7 +934,7 @@
|
|
|
930
934
|
var inverseSupport02$3 = colors$1.green50;
|
|
931
935
|
var inverseSupport03$3 = colors$1.yellow;
|
|
932
936
|
var inverseSupport04$3 = colors$1.blue60;
|
|
933
|
-
var overlay01$3 = colors$1.rgba(colors$1.
|
|
937
|
+
var overlay01$3 = colors$1.rgba(colors$1.black, 0.65);
|
|
934
938
|
var danger01$3 = colors$1.red60;
|
|
935
939
|
var danger02$3 = colors$1.red50; // Interaction states
|
|
936
940
|
|
|
@@ -1002,6 +1006,7 @@
|
|
|
1002
1006
|
var supportInfoInverse$3 = inverseSupport04$3;
|
|
1003
1007
|
var overlay$3 = overlay01$3;
|
|
1004
1008
|
var toggleOff$3 = ui04$3;
|
|
1009
|
+
var shadow$3 = colors$1.rgba(colors$1.black, 0.8);
|
|
1005
1010
|
var buttonPrimary$3 = interactive01$3;
|
|
1006
1011
|
var buttonSecondary$3 = interactive02$3;
|
|
1007
1012
|
var buttonTertiary$3 = interactive03$3;
|
|
@@ -1154,6 +1159,7 @@
|
|
|
1154
1159
|
supportInfoInverse: supportInfoInverse$3,
|
|
1155
1160
|
overlay: overlay$3,
|
|
1156
1161
|
toggleOff: toggleOff$3,
|
|
1162
|
+
shadow: shadow$3,
|
|
1157
1163
|
buttonPrimary: buttonPrimary$3,
|
|
1158
1164
|
buttonSecondary: buttonSecondary$3,
|
|
1159
1165
|
buttonTertiary: buttonTertiary$3,
|
|
@@ -1340,8 +1346,9 @@
|
|
|
1340
1346
|
var supportSuccessInverse$2 = colors$1.green50;
|
|
1341
1347
|
var supportWarningInverse$2 = colors$1.yellow30;
|
|
1342
1348
|
var supportInfoInverse$2 = colors$1.blue60;
|
|
1343
|
-
var overlay$2 = colors$1.rgba(colors$1.
|
|
1349
|
+
var overlay$2 = colors$1.rgba(colors$1.black, 0.65);
|
|
1344
1350
|
var toggleOff$2 = colors$1.gray50;
|
|
1351
|
+
var shadow$2 = colors$1.rgba(colors$1.black, 0.8);
|
|
1345
1352
|
var buttonPrimary$2 = colors$1.blue60;
|
|
1346
1353
|
var buttonSecondary$2 = colors$1.gray60;
|
|
1347
1354
|
var buttonTertiary$2 = colors$1.white;
|
|
@@ -1498,6 +1505,7 @@
|
|
|
1498
1505
|
supportInfoInverse: supportInfoInverse$2,
|
|
1499
1506
|
overlay: overlay$2,
|
|
1500
1507
|
toggleOff: toggleOff$2,
|
|
1508
|
+
shadow: shadow$2,
|
|
1501
1509
|
buttonPrimary: buttonPrimary$2,
|
|
1502
1510
|
buttonSecondary: buttonSecondary$2,
|
|
1503
1511
|
buttonTertiary: buttonTertiary$2,
|
|
@@ -1745,7 +1753,7 @@
|
|
|
1745
1753
|
var inverseSupport02$1 = colors$1.green50;
|
|
1746
1754
|
var inverseSupport03$1 = colors$1.yellow;
|
|
1747
1755
|
var inverseSupport04$1 = colors$1.blue60;
|
|
1748
|
-
var overlay01$1 = colors$1.rgba(colors$1.
|
|
1756
|
+
var overlay01$1 = colors$1.rgba(colors$1.black, 0.65);
|
|
1749
1757
|
var danger01$1 = colors$1.red60;
|
|
1750
1758
|
var danger02$1 = colors$1.red40; // Interaction states
|
|
1751
1759
|
|
|
@@ -1817,6 +1825,7 @@
|
|
|
1817
1825
|
var supportInfoInverse$1 = inverseSupport04$1;
|
|
1818
1826
|
var overlay$1 = overlay01$1;
|
|
1819
1827
|
var toggleOff$1 = ui04$1;
|
|
1828
|
+
var shadow$1 = colors$1.rgba(colors$1.black, 0.8);
|
|
1820
1829
|
var buttonPrimary$1 = interactive01$1;
|
|
1821
1830
|
var buttonSecondary$1 = interactive02$1;
|
|
1822
1831
|
var buttonTertiary$1 = interactive03$1;
|
|
@@ -1969,6 +1978,7 @@
|
|
|
1969
1978
|
supportInfoInverse: supportInfoInverse$1,
|
|
1970
1979
|
overlay: overlay$1,
|
|
1971
1980
|
toggleOff: toggleOff$1,
|
|
1981
|
+
shadow: shadow$1,
|
|
1972
1982
|
buttonPrimary: buttonPrimary$1,
|
|
1973
1983
|
buttonSecondary: buttonSecondary$1,
|
|
1974
1984
|
buttonTertiary: buttonTertiary$1,
|
|
@@ -2223,6 +2233,7 @@
|
|
|
2223
2233
|
var supportInfoInverse = inverseSupport04;
|
|
2224
2234
|
var overlay = overlay01;
|
|
2225
2235
|
var toggleOff = ui04;
|
|
2236
|
+
var shadow = colors$1.rgba(colors$1.black, 0.3);
|
|
2226
2237
|
var buttonPrimary = interactive01;
|
|
2227
2238
|
var buttonSecondary = interactive02;
|
|
2228
2239
|
var buttonTertiary = interactive03;
|
|
@@ -2375,6 +2386,7 @@
|
|
|
2375
2386
|
supportInfoInverse: supportInfoInverse,
|
|
2376
2387
|
overlay: overlay,
|
|
2377
2388
|
toggleOff: toggleOff,
|
|
2389
|
+
shadow: shadow,
|
|
2378
2390
|
buttonPrimary: buttonPrimary,
|
|
2379
2391
|
buttonSecondary: buttonSecondary,
|
|
2380
2392
|
buttonTertiary: buttonTertiary,
|
|
@@ -2529,7 +2541,7 @@
|
|
|
2529
2541
|
'interactive01', 'interactive02', 'interactive03', 'interactive04', 'uiBackground', 'ui01', 'ui02', 'ui03', 'ui04', 'ui05', 'text01', 'text02', 'text03', 'text04', 'text05', 'textError', 'icon01', 'icon02', 'icon03', 'link01', 'link02', 'inverseLink', 'field01', 'field02', 'inverse01', 'inverse02', 'support01', 'support02', 'support03', 'support04', 'inverseSupport01', 'inverseSupport02', 'inverseSupport03', 'inverseSupport04', 'overlay01', 'danger01', 'danger02', // Interactive states
|
|
2530
2542
|
'focus', 'inverseFocusUi', 'hoverPrimary', 'activePrimary', 'hoverPrimaryText', 'hoverSecondary', 'activeSecondary', 'hoverTertiary', 'activeTertiary', 'hoverUI', 'hoverLightUI', 'hoverSelectedUI', 'activeUI', 'activeLightUI', 'selectedUI', 'selectedLightUI', 'inverseHoverUI', 'hoverDanger', 'activeDanger', 'hoverRow', 'visitedLink', 'disabled01', 'disabled02', 'disabled03', 'highlight', 'decorative01', 'buttonSeparator', 'skeleton01', 'skeleton02', // New color tokens
|
|
2531
2543
|
// TO-DO: remove fallback color when v11 is released and assign carbon colors to new tokens
|
|
2532
|
-
'background', 'layer', 'layerAccent', 'layerAccentHover', 'layerAccentActive', 'field', 'backgroundInverse', 'backgroundBrand', 'interactive', 'borderSubtle', 'borderStrong', 'borderInverse', 'borderInteractive', 'textPrimary', 'textSecondary', 'textPlaceholder', 'textHelper', 'textOnColor', 'textInverse', 'linkPrimary', 'linkSecondary', 'linkVisited', 'linkInverse', 'iconPrimary', 'iconSecondary', 'iconOnColor', 'iconInverse', 'supportError', 'supportSuccess', 'supportWarning', 'supportInfo', 'supportErrorInverse', 'supportSuccessInverse', 'supportWarningInverse', 'supportInfoInverse', 'overlay', 'toggleOff', 'buttonPrimary', 'buttonSecondary', 'buttonTertiary', 'buttonDangerPrimary', 'buttonDangerSecondary', 'backgroundActive', 'layerActive', 'buttonDangerActive', 'buttonPrimaryActive', 'buttonSecondaryActive', 'buttonTertiaryActive', 'focusInset', 'focusInverse', 'backgroundHover', 'layerHover', 'fieldHover', 'backgroundInverseHover', 'linkPrimaryHover', 'buttonDangerHover', 'buttonPrimaryHover', 'buttonSecondaryHover', 'buttonTertiaryHover', 'backgroundSelected', 'backgroundSelectedHover', 'layerSelected', 'layerSelectedHover', 'layerSelectedInverse', 'borderSubtleSelected', 'layerDisabled', 'fieldDisabled', 'borderDisabled', 'textDisabled', 'buttonDisabled', 'iconDisabled', 'textOnColorDisabled', 'iconOnColorDisabled', 'layerSelectedDisabled', 'skeletonBackground', 'skeletonElement', // Deprecated
|
|
2544
|
+
'background', 'layer', 'layerAccent', 'layerAccentHover', 'layerAccentActive', 'field', 'backgroundInverse', 'backgroundBrand', 'interactive', 'borderSubtle', 'borderStrong', 'borderInverse', 'borderInteractive', 'textPrimary', 'textSecondary', 'textPlaceholder', 'textHelper', 'textOnColor', 'textInverse', 'linkPrimary', 'linkSecondary', 'linkVisited', 'linkInverse', 'iconPrimary', 'iconSecondary', 'iconOnColor', 'iconInverse', 'supportError', 'supportSuccess', 'supportWarning', 'supportInfo', 'supportErrorInverse', 'supportSuccessInverse', 'supportWarningInverse', 'supportInfoInverse', 'overlay', 'toggleOff', 'shadow', 'buttonPrimary', 'buttonSecondary', 'buttonTertiary', 'buttonDangerPrimary', 'buttonDangerSecondary', 'backgroundActive', 'layerActive', 'buttonDangerActive', 'buttonPrimaryActive', 'buttonSecondaryActive', 'buttonTertiaryActive', 'focusInset', 'focusInverse', 'backgroundHover', 'layerHover', 'fieldHover', 'backgroundInverseHover', 'linkPrimaryHover', 'buttonDangerHover', 'buttonPrimaryHover', 'buttonSecondaryHover', 'buttonTertiaryHover', 'backgroundSelected', 'backgroundSelectedHover', 'layerSelected', 'layerSelectedHover', 'layerSelectedInverse', 'borderSubtleSelected', 'layerDisabled', 'fieldDisabled', 'borderDisabled', 'textDisabled', 'buttonDisabled', 'iconDisabled', 'textOnColorDisabled', 'iconOnColorDisabled', 'layerSelectedDisabled', 'skeletonBackground', 'skeletonElement', // Deprecated
|
|
2533
2545
|
'brand01', 'brand02', 'brand03', 'active01', 'hoverField', 'danger'];
|
|
2534
2546
|
var numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
|
|
2535
2547
|
/**
|
|
@@ -2579,7 +2591,7 @@
|
|
|
2579
2591
|
colors: [{
|
|
2580
2592
|
type: 'core',
|
|
2581
2593
|
tokens: ['uiBackground', 'interactive01', 'interactive02', 'interactive03', 'interactive04', 'brand01', 'brand02', 'brand03', 'danger', 'danger01', 'danger02', 'ui01', 'ui02', 'ui03', 'ui04', 'ui05', 'text01', 'text02', 'text03', 'text04', 'text05', 'textError', 'link01', 'link02', 'icon01', 'icon02', 'icon03', 'field01', 'field02', 'inverse01', 'inverse02', 'inverseLink', 'support01', 'support02', 'support03', 'support04', 'inverseSupport01', 'inverseSupport02', 'inverseSupport03', 'inverseSupport04', 'overlay01', //new tokens
|
|
2582
|
-
'background', 'layer', 'layerAccent', 'layerAccentHover', 'layerAccentActive', 'field', 'backgroundInverse', 'backgroundBrand', 'interactive', 'borderSubtle', 'borderStrong', 'borderInverse', 'borderInteractive', 'textPrimary', 'textSecondary', 'textPlaceholder', 'textHelper', 'textOnColor', 'textInverse', 'linkPrimary', 'linkSecondary', 'linkVisited', 'linkInverse', 'iconPrimary', 'iconSecondary', 'iconOnColor', 'iconInverse', 'supportError', 'supportSuccess', 'supportWarning', 'supportInfo', 'supportErrorInverse', 'supportSuccessInverse', 'supportWarningInverse', 'supportInfoInverse', 'overlay', 'toggleOff', 'buttonPrimary', 'buttonSecondary', 'buttonTertiary', 'buttonDangerPrimary', 'buttonDangerSecondary']
|
|
2594
|
+
'background', 'layer', 'layerAccent', 'layerAccentHover', 'layerAccentActive', 'field', 'backgroundInverse', 'backgroundBrand', 'interactive', 'borderSubtle', 'borderStrong', 'borderInverse', 'borderInteractive', 'textPrimary', 'textSecondary', 'textPlaceholder', 'textHelper', 'textOnColor', 'textInverse', 'linkPrimary', 'linkSecondary', 'linkVisited', 'linkInverse', 'iconPrimary', 'iconSecondary', 'iconOnColor', 'iconInverse', 'supportError', 'supportSuccess', 'supportWarning', 'supportInfo', 'supportErrorInverse', 'supportSuccessInverse', 'supportWarningInverse', 'supportInfoInverse', 'overlay', 'toggleOff', 'shadow', 'buttonPrimary', 'buttonSecondary', 'buttonTertiary', 'buttonDangerPrimary', 'buttonDangerSecondary']
|
|
2583
2595
|
}, {
|
|
2584
2596
|
type: 'interactive',
|
|
2585
2597
|
tokens: ['focus', 'inverseFocusUi', 'hoverPrimary', 'hoverPrimaryText', 'hoverSecondary', 'hoverTertiary', 'hoverUI', 'hoverLightUI', 'hoverSelectedUI', 'hoverDanger', 'hoverRow', 'activePrimary', 'activeSecondary', 'activeTertiary', 'activeUI', 'activeLightUI', 'activeDanger', 'selectedUI', 'selectedLightUI', 'highlight', 'skeleton01', 'skeleton02', 'visitedLink', 'disabled01', 'disabled02', 'disabled03', 'inverseHoverUI', 'active01', 'hoverField', 'decorative01', 'buttonSeparator', // new tokens
|
|
@@ -3288,6 +3300,7 @@
|
|
|
3288
3300
|
exports.overlay01 = overlay01$5;
|
|
3289
3301
|
exports.selectedLightUI = selectedLightUI$5;
|
|
3290
3302
|
exports.selectedUI = selectedUI$5;
|
|
3303
|
+
exports.shadow = shadow$5;
|
|
3291
3304
|
exports.skeleton01 = skeleton01$5;
|
|
3292
3305
|
exports.skeleton02 = skeleton02$5;
|
|
3293
3306
|
exports.skeletonBackground = skeletonBackground$5;
|