@dxc-technology/halstack-react 0.0.0-1c4cbc0 → 0.0.0-1d5e7bf

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.
Files changed (72) hide show
  1. package/HalstackContext.js +15 -14
  2. package/accordion/Accordion.stories.tsx +1 -1
  3. package/accordion-group/AccordionGroup.js +1 -0
  4. package/badge/Badge.d.ts +1 -1
  5. package/badge/Badge.js +5 -3
  6. package/badge/types.d.ts +1 -0
  7. package/bleed/Bleed.js +1 -34
  8. package/bleed/Bleed.stories.tsx +62 -63
  9. package/bleed/types.d.ts +1 -1
  10. package/box/Box.js +22 -32
  11. package/card/Card.js +34 -36
  12. package/common/variables.js +19 -14
  13. package/dropdown/Dropdown.stories.tsx +1 -1
  14. package/footer/Icons.js +1 -1
  15. package/inline/Inline.d.ts +4 -0
  16. package/inline/Inline.js +60 -0
  17. package/inline/Inline.stories.tsx +319 -0
  18. package/inline/types.d.ts +36 -0
  19. package/{radio → inline}/types.js +0 -0
  20. package/inset/Inset.js +1 -34
  21. package/inset/Inset.stories.tsx +33 -33
  22. package/inset/types.d.ts +1 -1
  23. package/layout/ApplicationLayout.d.ts +4 -3
  24. package/layout/ApplicationLayout.js +83 -102
  25. package/layout/ApplicationLayout.stories.tsx +14 -59
  26. package/layout/Icons.d.ts +5 -0
  27. package/layout/Icons.js +13 -2
  28. package/layout/SidenavContext.d.ts +5 -0
  29. package/layout/SidenavContext.js +19 -0
  30. package/layout/types.d.ts +5 -10
  31. package/link/Link.d.ts +2 -2
  32. package/link/Link.js +23 -49
  33. package/link/Link.stories.tsx +1 -1
  34. package/link/types.d.ts +2 -3
  35. package/list/List.js +1 -1
  36. package/list/List.stories.tsx +16 -22
  37. package/list/types.d.ts +1 -1
  38. package/main.d.ts +3 -2
  39. package/main.js +16 -8
  40. package/package.json +2 -1
  41. package/paginator/Paginator.test.js +42 -0
  42. package/progress-bar/ProgressBar.js +1 -1
  43. package/progress-bar/ProgressBar.stories.jsx +11 -11
  44. package/quick-nav/QuickNav.js +65 -18
  45. package/quick-nav/QuickNav.stories.tsx +30 -3
  46. package/radio-group/RadioGroup.js +2 -1
  47. package/resultsetTable/ResultsetTable.test.js +42 -0
  48. package/select/Listbox.d.ts +1 -1
  49. package/select/Listbox.js +30 -7
  50. package/select/Select.js +73 -67
  51. package/select/Select.stories.tsx +130 -98
  52. package/select/Select.test.js +299 -194
  53. package/select/types.d.ts +3 -4
  54. package/sidenav/Sidenav.d.ts +1 -1
  55. package/sidenav/Sidenav.js +20 -9
  56. package/stack/Stack.d.ts +2 -1
  57. package/stack/Stack.js +29 -70
  58. package/stack/Stack.stories.tsx +189 -90
  59. package/stack/types.d.ts +15 -7
  60. package/tabs-nav/NavTabs.d.ts +8 -0
  61. package/tabs-nav/NavTabs.js +125 -0
  62. package/tabs-nav/NavTabs.stories.tsx +170 -0
  63. package/tabs-nav/NavTabs.test.js +82 -0
  64. package/tabs-nav/Tab.d.ts +4 -0
  65. package/tabs-nav/Tab.js +132 -0
  66. package/tabs-nav/types.d.ts +53 -0
  67. package/tabs-nav/types.js +5 -0
  68. package/radio/Radio.d.ts +0 -4
  69. package/radio/Radio.js +0 -173
  70. package/radio/Radio.stories.tsx +0 -192
  71. package/radio/Radio.test.js +0 -71
  72. package/radio/types.d.ts +0 -54
@@ -85,7 +85,7 @@ var parseAdvancedTheme = function parseAdvancedTheme(advancedTheme) {
85
85
  };
86
86
 
87
87
  var parseTheme = function parseTheme(theme) {
88
- var _theme$accordion$font, _theme$accordion, _theme$accordion$font2, _theme$accordion2, _theme$accordion$acce, _theme$accordion3, _theme$accordion$acce2, _theme$accordion4, _theme$accordion$acce3, _theme$accordion5, _setOpacity, _theme$accordion6, _theme$button$primary, _theme$button, _theme$button$baseCol, _theme$button2, _theme$button$baseCol2, _theme$button3, _theme$button$seconda, _theme$button4, _theme$button$baseCol3, _theme$button5, _theme$button$baseCol4, _theme$button6, _theme$button$baseCol5, _theme$button7, _subLightness, _theme$button8, _subLightness2, _theme$button9, _subLightness3, _theme$button10, _addLightness, _theme$button11, _addLightness2, _theme$button12, _theme$checkbox$baseC, _theme$checkbox, _theme$checkbox$baseC2, _theme$checkbox2, _theme$checkbox$check, _theme$checkbox3, _theme$checkbox$fontC, _theme$checkbox4, _subLightness4, _theme$checkbox5, _subLightness5, _theme$checkbox6, _theme$chip$baseColor, _theme$chip, _theme$chip$fontColor, _theme$chip2, _theme$chip$fontColor2, _theme$chip3, _theme$dateInput$sele, _theme$dateInput, _theme$dateInput$sele2, _theme$dateInput2, _setOpacity2, _theme$dateInput3, _theme$dropdown$baseC, _theme$dropdown, _theme$dropdown$fontC, _theme$dropdown2, _theme$dropdown$optio, _theme$dropdown3, _theme$dropdown$optio2, _theme$dropdown4, _setOpacity3, _theme$dropdown5, _setOpacity4, _theme$dropdown6, _setOpacity5, _theme$dropdown7, _setOpacity6, _theme$dropdown8, _theme$dropdown$fontC2, _theme$dropdown9, _theme$dropdown$fontC3, _theme$dropdown10, _theme$fileInput$font, _theme$fileInput, _theme$fileInput$font2, _theme$fileInput2, _theme$fileInput$font3, _theme$fileInput3, _theme$fileInput$font4, _theme$fileInput4, _theme$footer$baseCol, _theme$footer, _theme$footer$fontCol, _theme$footer2, _theme$footer$fontCol2, _theme$footer3, _theme$footer$fontCol3, _theme$footer4, _theme$footer$accentC, _theme$footer5, _theme$footer$logo, _theme$footer6, _theme$header$baseCol, _theme$header, _theme$header$accentC, _theme$header2, _theme$header$menuBas, _theme$header3, _theme$header$fontCol, _theme$header4, _theme$header$hamburg, _theme$header5, _setOpacity7, _theme$header6, _theme$header$logo, _theme$header7, _theme$header$logoRes, _theme$header8, _theme$header$content, _theme$header9, _theme$paginator$base, _theme$paginator, _theme$paginator$font, _theme$paginator2, _theme$progressBar$ac, _theme$progressBar, _theme$progressBar$ba, _theme$progressBar2, _theme$progressBar$fo, _theme$progressBar3, _theme$progressBar$fo2, _theme$progressBar4, _theme$progressBar$fo3, _theme$progressBar5, _theme$radio$baseColo, _theme$radio, _theme$radio$fontColo, _theme$radio2, _theme$radioGroup$bas, _theme$radioGroup, _theme$radioGroup$fon, _theme$radioGroup2, _theme$radioGroup$fon2, _theme$radioGroup3, _theme$radioGroup$fon3, _theme$radioGroup4, _theme$select$selecte, _theme$select, _theme$select$fontCol, _theme$select2, _theme$select$fontCol2, _theme$select3, _theme$select$fontCol3, _theme$select4, _theme$select$optionF, _theme$select5, _setOpacity8, _theme$select6, _theme$select$fontCol4, _theme$select7, _subLightness6, _theme$select8, _subLightness7, _theme$select9, _theme$sidenav$baseCo, _theme$sidenav, _theme$slider$fontCol, _theme$slider, _theme$slider$fontCol2, _theme$slider2, _theme$slider$fontCol3, _theme$slider3, _theme$slider$baseCol, _theme$slider4, _theme$slider$baseCol2, _theme$slider5, _theme$slider$baseCol3, _theme$slider6, _theme$slider$baseCol4, _theme$slider7, _subLightness8, _theme$slider8, _subLightness9, _theme$slider9, _setOpacity9, _theme$slider10, _theme$spinner$accent, _theme$spinner, _theme$spinner$baseCo, _theme$spinner2, _theme$spinner$fontCo, _theme$spinner3, _theme$spinner$fontCo2, _theme$spinner4, _theme$switch$checked, _theme$switch, _theme$switch$fontCol, _theme$switch2, _setOpacity10, _theme$switch3, _theme$table$baseColo, _theme$table, _theme$table$headerFo, _theme$table2, _theme$table$cellFont, _theme$table3, _theme$table$headerFo2, _theme$table4, _theme$tabs$baseColor, _theme$tabs, _theme$tabs$baseColor2, _theme$tabs2, _theme$tabs$baseColor3, _theme$tabs3, _theme$tabs$baseColor4, _theme$tabs4, _addLightness3, _theme$tabs5, _addLightness4, _theme$tabs6, _theme$textInput$font, _theme$textInput, _theme$textInput$font2, _theme$textInput2, _theme$textInput$font3, _theme$textInput3, _theme$textInput$font4, _theme$textInput4, _theme$textInput$font5, _theme$textInput5, _theme$textInput$font6, _theme$textInput6, _theme$textInput$font7, _theme$textInput7, _setOpacity11, _theme$textInput8, _setOpacity12, _theme$textInput9, _setOpacity13, _theme$textInput10, _theme$toggleGroup$se, _theme$toggleGroup, _theme$toggleGroup$se2, _theme$toggleGroup2, _theme$toggleGroup$un, _theme$toggleGroup3, _theme$toggleGroup$se3, _theme$toggleGroup4, _theme$toggleGroup$un2, _theme$toggleGroup5, _subLightness10, _theme$toggleGroup6, _subLightness11, _theme$toggleGroup7, _addLightness5, _theme$toggleGroup8, _addLightness6, _theme$toggleGroup9, _subLightness12, _theme$toggleGroup10, _theme$wizard$baseCol, _theme$wizard, _theme$wizard$fontCol, _theme$wizard2, _theme$wizard$baseCol2, _theme$wizard3, _theme$wizard$fontCol2, _theme$wizard4, _theme$wizard$fontCol3, _theme$wizard5, _theme$wizard$fontCol4, _theme$wizard6, _theme$wizard$fontCol5, _theme$wizard7, _setOpacity14, _theme$wizard8, _setOpacity15, _theme$wizard9, _setOpacity16, _theme$wizard10, _setOpacity17, _theme$wizard11;
88
+ var _theme$accordion$font, _theme$accordion, _theme$accordion$font2, _theme$accordion2, _theme$accordion$acce, _theme$accordion3, _theme$accordion$acce2, _theme$accordion4, _theme$accordion$acce3, _theme$accordion5, _setOpacity, _theme$accordion6, _theme$button$primary, _theme$button, _theme$button$baseCol, _theme$button2, _theme$button$baseCol2, _theme$button3, _theme$button$seconda, _theme$button4, _theme$button$baseCol3, _theme$button5, _theme$button$baseCol4, _theme$button6, _theme$button$baseCol5, _theme$button7, _subLightness, _theme$button8, _subLightness2, _theme$button9, _subLightness3, _theme$button10, _addLightness, _theme$button11, _addLightness2, _theme$button12, _theme$checkbox$baseC, _theme$checkbox, _theme$checkbox$baseC2, _theme$checkbox2, _theme$checkbox$check, _theme$checkbox3, _theme$checkbox$fontC, _theme$checkbox4, _subLightness4, _theme$checkbox5, _subLightness5, _theme$checkbox6, _theme$chip$baseColor, _theme$chip, _theme$chip$fontColor, _theme$chip2, _theme$chip$fontColor2, _theme$chip3, _theme$dateInput$sele, _theme$dateInput, _theme$dateInput$sele2, _theme$dateInput2, _setOpacity2, _theme$dateInput3, _theme$dropdown$baseC, _theme$dropdown, _theme$dropdown$fontC, _theme$dropdown2, _theme$dropdown$optio, _theme$dropdown3, _theme$dropdown$optio2, _theme$dropdown4, _setOpacity3, _theme$dropdown5, _setOpacity4, _theme$dropdown6, _setOpacity5, _theme$dropdown7, _setOpacity6, _theme$dropdown8, _theme$dropdown$fontC2, _theme$dropdown9, _theme$dropdown$fontC3, _theme$dropdown10, _theme$fileInput$font, _theme$fileInput, _theme$fileInput$font2, _theme$fileInput2, _theme$fileInput$font3, _theme$fileInput3, _theme$fileInput$font4, _theme$fileInput4, _theme$footer$baseCol, _theme$footer, _theme$footer$fontCol, _theme$footer2, _theme$footer$fontCol2, _theme$footer3, _theme$footer$fontCol3, _theme$footer4, _theme$footer$accentC, _theme$footer5, _theme$footer$logo, _theme$footer6, _theme$header$baseCol, _theme$header, _theme$header$accentC, _theme$header2, _theme$header$menuBas, _theme$header3, _theme$header$fontCol, _theme$header4, _theme$header$hamburg, _theme$header5, _setOpacity7, _theme$header6, _theme$header$logo, _theme$header7, _theme$header$logoRes, _theme$header8, _theme$header$content, _theme$header9, _theme$paginator$base, _theme$paginator, _theme$paginator$font, _theme$paginator2, _theme$progressBar$ac, _theme$progressBar, _theme$progressBar$ba, _theme$progressBar2, _theme$progressBar$fo, _theme$progressBar3, _theme$progressBar$fo2, _theme$progressBar4, _theme$progressBar$fo3, _theme$progressBar5, _theme$quickNav$fontC, _theme$quickNav, _theme$quickNav$accen, _theme$quickNav2, _setOpacity8, _theme$quickNav3, _theme$radioGroup$bas, _theme$radioGroup, _theme$radioGroup$fon, _theme$radioGroup2, _theme$radioGroup$fon2, _theme$radioGroup3, _theme$radioGroup$fon3, _theme$radioGroup4, _theme$select$selecte, _theme$select, _theme$select$fontCol, _theme$select2, _theme$select$fontCol2, _theme$select3, _theme$select$fontCol3, _theme$select4, _theme$select$optionF, _theme$select5, _setOpacity9, _theme$select6, _theme$select$fontCol4, _theme$select7, _subLightness6, _theme$select8, _subLightness7, _theme$select9, _theme$sidenav$baseCo, _theme$sidenav, _theme$slider$fontCol, _theme$slider, _theme$slider$fontCol2, _theme$slider2, _theme$slider$fontCol3, _theme$slider3, _theme$slider$baseCol, _theme$slider4, _theme$slider$baseCol2, _theme$slider5, _theme$slider$baseCol3, _theme$slider6, _theme$slider$baseCol4, _theme$slider7, _subLightness8, _theme$slider8, _subLightness9, _theme$slider9, _setOpacity10, _theme$slider10, _theme$spinner$accent, _theme$spinner, _theme$spinner$baseCo, _theme$spinner2, _theme$spinner$fontCo, _theme$spinner3, _theme$spinner$fontCo2, _theme$spinner4, _theme$switch$checked, _theme$switch, _theme$switch$fontCol, _theme$switch2, _setOpacity11, _theme$switch3, _theme$table$baseColo, _theme$table, _theme$table$headerFo, _theme$table2, _theme$table$cellFont, _theme$table3, _theme$table$headerFo2, _theme$table4, _theme$tabs$baseColor, _theme$tabs, _theme$tabs$baseColor2, _theme$tabs2, _theme$tabs$baseColor3, _theme$tabs3, _theme$tabs$baseColor4, _theme$tabs4, _addLightness3, _theme$tabs5, _addLightness4, _theme$tabs6, _theme$textInput$font, _theme$textInput, _theme$textInput$font2, _theme$textInput2, _theme$textInput$font3, _theme$textInput3, _theme$textInput$font4, _theme$textInput4, _theme$textInput$font5, _theme$textInput5, _theme$textInput$font6, _theme$textInput6, _theme$textInput$font7, _theme$textInput7, _setOpacity12, _theme$textInput8, _setOpacity13, _theme$textInput9, _setOpacity14, _theme$textInput10, _theme$toggleGroup$se, _theme$toggleGroup, _theme$toggleGroup$se2, _theme$toggleGroup2, _theme$toggleGroup$un, _theme$toggleGroup3, _theme$toggleGroup$se3, _theme$toggleGroup4, _theme$toggleGroup$un2, _theme$toggleGroup5, _subLightness10, _theme$toggleGroup6, _subLightness11, _theme$toggleGroup7, _addLightness5, _theme$toggleGroup8, _addLightness6, _theme$toggleGroup9, _subLightness12, _theme$toggleGroup10, _theme$wizard$baseCol, _theme$wizard, _theme$wizard$fontCol, _theme$wizard2, _theme$wizard$baseCol2, _theme$wizard3, _theme$wizard$fontCol2, _theme$wizard4, _theme$wizard$fontCol3, _theme$wizard5, _theme$wizard$fontCol4, _theme$wizard6, _theme$wizard$fontCol5, _theme$wizard7, _setOpacity15, _theme$wizard8, _setOpacity16, _theme$wizard9, _setOpacity17, _theme$wizard10, _setOpacity18, _theme$wizard11;
89
89
 
90
90
  var componentTokensCopy = JSON.parse(JSON.stringify(_variables.componentTokens));
91
91
  var accordionTokens = componentTokensCopy.accordion;
@@ -165,9 +165,10 @@ var parseTheme = function parseTheme(theme) {
165
165
  progressBarTokens.labelFontColor = (_theme$progressBar$fo = theme === null || theme === void 0 ? void 0 : (_theme$progressBar3 = theme.progressBar) === null || _theme$progressBar3 === void 0 ? void 0 : _theme$progressBar3.fontColor) !== null && _theme$progressBar$fo !== void 0 ? _theme$progressBar$fo : progressBarTokens.labelFontColor;
166
166
  progressBarTokens.valueFontColor = (_theme$progressBar$fo2 = theme === null || theme === void 0 ? void 0 : (_theme$progressBar4 = theme.progressBar) === null || _theme$progressBar4 === void 0 ? void 0 : _theme$progressBar4.fontColor) !== null && _theme$progressBar$fo2 !== void 0 ? _theme$progressBar$fo2 : progressBarTokens.valueFontColor;
167
167
  progressBarTokens.helperTextFontColor = (_theme$progressBar$fo3 = theme === null || theme === void 0 ? void 0 : (_theme$progressBar5 = theme.progressBar) === null || _theme$progressBar5 === void 0 ? void 0 : _theme$progressBar5.fontColor) !== null && _theme$progressBar$fo3 !== void 0 ? _theme$progressBar$fo3 : progressBarTokens.helperTextFontColor;
168
- var radioTokens = componentTokensCopy.radio;
169
- radioTokens.color = (_theme$radio$baseColo = theme === null || theme === void 0 ? void 0 : (_theme$radio = theme.radio) === null || _theme$radio === void 0 ? void 0 : _theme$radio.baseColor) !== null && _theme$radio$baseColo !== void 0 ? _theme$radio$baseColo : radioTokens.color;
170
- radioTokens.fontColor = (_theme$radio$fontColo = theme === null || theme === void 0 ? void 0 : (_theme$radio2 = theme.radio) === null || _theme$radio2 === void 0 ? void 0 : _theme$radio2.fontColor) !== null && _theme$radio$fontColo !== void 0 ? _theme$radio$fontColo : radioTokens.color;
168
+ var quickNavTokens = componentTokensCopy.quickNav;
169
+ quickNavTokens.fontColor = (_theme$quickNav$fontC = theme === null || theme === void 0 ? void 0 : (_theme$quickNav = theme.quickNav) === null || _theme$quickNav === void 0 ? void 0 : _theme$quickNav.fontColor) !== null && _theme$quickNav$fontC !== void 0 ? _theme$quickNav$fontC : quickNavTokens.fontColor;
170
+ quickNavTokens.selectedFontColor = (_theme$quickNav$accen = theme === null || theme === void 0 ? void 0 : (_theme$quickNav2 = theme.quickNav) === null || _theme$quickNav2 === void 0 ? void 0 : _theme$quickNav2.accentColor) !== null && _theme$quickNav$accen !== void 0 ? _theme$quickNav$accen : quickNavTokens.selectedFontColor;
171
+ quickNavTokens.hoverFontColor = (_setOpacity8 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$quickNav3 = theme.quickNav) === null || _theme$quickNav3 === void 0 ? void 0 : _theme$quickNav3.accentColor, 0.7)) !== null && _setOpacity8 !== void 0 ? _setOpacity8 : quickNavTokens.hoverFontColor;
171
172
  var radioGroupTokens = componentTokensCopy.radioGroup;
172
173
  radioGroupTokens.radioInputColor = (_theme$radioGroup$bas = theme === null || theme === void 0 ? void 0 : (_theme$radioGroup = theme.radioGroup) === null || _theme$radioGroup === void 0 ? void 0 : _theme$radioGroup.baseColor) !== null && _theme$radioGroup$bas !== void 0 ? _theme$radioGroup$bas : radioGroupTokens.radioInputColor;
173
174
  radioGroupTokens.labelFontColor = (_theme$radioGroup$fon = theme === null || theme === void 0 ? void 0 : (_theme$radioGroup2 = theme.radioGroup) === null || _theme$radioGroup2 === void 0 ? void 0 : _theme$radioGroup2.fontColor) !== null && _theme$radioGroup$fon !== void 0 ? _theme$radioGroup$fon : radioGroupTokens.labelFontColor;
@@ -179,7 +180,7 @@ var parseTheme = function parseTheme(theme) {
179
180
  selectTokens.labelFontColor = (_theme$select$fontCol2 = theme === null || theme === void 0 ? void 0 : (_theme$select3 = theme.select) === null || _theme$select3 === void 0 ? void 0 : _theme$select3.fontColor) !== null && _theme$select$fontCol2 !== void 0 ? _theme$select$fontCol2 : selectTokens.labelFontColor;
180
181
  selectTokens.helperTextFontColor = (_theme$select$fontCol3 = theme === null || theme === void 0 ? void 0 : (_theme$select4 = theme.select) === null || _theme$select4 === void 0 ? void 0 : _theme$select4.fontColor) !== null && _theme$select$fontCol3 !== void 0 ? _theme$select$fontCol3 : selectTokens.helperTextFontColor;
181
182
  selectTokens.listOptionFontColor = (_theme$select$optionF = theme === null || theme === void 0 ? void 0 : (_theme$select5 = theme.select) === null || _theme$select5 === void 0 ? void 0 : _theme$select5.optionFontColor) !== null && _theme$select$optionF !== void 0 ? _theme$select$optionF : selectTokens.optionFontColor;
182
- selectTokens.placeholderFontColor = (_setOpacity8 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$select6 = theme.select) === null || _theme$select6 === void 0 ? void 0 : _theme$select6.fontColor, 0.5)) !== null && _setOpacity8 !== void 0 ? _setOpacity8 : selectTokens.placeholderFontColor;
183
+ selectTokens.placeholderFontColor = (_setOpacity9 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$select6 = theme.select) === null || _theme$select6 === void 0 ? void 0 : _theme$select6.fontColor, 0.5)) !== null && _setOpacity9 !== void 0 ? _setOpacity9 : selectTokens.placeholderFontColor;
183
184
  selectTokens.collapseIndicatorColor = (_theme$select$fontCol4 = theme === null || theme === void 0 ? void 0 : (_theme$select7 = theme.select) === null || _theme$select7 === void 0 ? void 0 : _theme$select7.fontColor) !== null && _theme$select$fontCol4 !== void 0 ? _theme$select$fontCol4 : selectTokens.collapseIndicatorColor;
184
185
  selectTokens.selectedHoverListOptionBackgroundColor = (_subLightness6 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$select8 = theme.select) === null || _theme$select8 === void 0 ? void 0 : _theme$select8.selectedOptionBackgroundColor, 5)) !== null && _subLightness6 !== void 0 ? _subLightness6 : selectTokens.selectedHoverListOptionBackgroundColor;
185
186
  selectTokens.selectedActiveListOptionBackgroundColor = (_subLightness7 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$select9 = theme.select) === null || _theme$select9 === void 0 ? void 0 : _theme$select9.selectedOptionBackgroundColor, 10)) !== null && _subLightness7 !== void 0 ? _subLightness7 : selectTokens.selectedActiveListOptionBackgroundColor;
@@ -195,7 +196,7 @@ var parseTheme = function parseTheme(theme) {
195
196
  sliderTokens.trackLineColor = (_theme$slider$baseCol4 = theme === null || theme === void 0 ? void 0 : (_theme$slider7 = theme.slider) === null || _theme$slider7 === void 0 ? void 0 : _theme$slider7.baseColor) !== null && _theme$slider$baseCol4 !== void 0 ? _theme$slider$baseCol4 : sliderTokens.trackLineColor;
196
197
  sliderTokens.hoverThumbBackgroundColor = (_subLightness8 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$slider8 = theme.slider) === null || _theme$slider8 === void 0 ? void 0 : _theme$slider8.baseColor, 15)) !== null && _subLightness8 !== void 0 ? _subLightness8 : sliderTokens.thumbBackgroundColor;
197
198
  sliderTokens.activeThumbBackgroundColor = (_subLightness9 = subLightness(theme === null || theme === void 0 ? void 0 : (_theme$slider9 = theme.slider) === null || _theme$slider9 === void 0 ? void 0 : _theme$slider9.baseColor, 15)) !== null && _subLightness9 !== void 0 ? _subLightness9 : sliderTokens.thumbBackgroundColor;
198
- sliderTokens.totalLineColor = (_setOpacity9 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$slider10 = theme.slider) === null || _theme$slider10 === void 0 ? void 0 : _theme$slider10.baseColor, 0.34)) !== null && _setOpacity9 !== void 0 ? _setOpacity9 : sliderTokens.totalLineColor;
199
+ sliderTokens.totalLineColor = (_setOpacity10 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$slider10 = theme.slider) === null || _theme$slider10 === void 0 ? void 0 : _theme$slider10.baseColor, 0.34)) !== null && _setOpacity10 !== void 0 ? _setOpacity10 : sliderTokens.totalLineColor;
199
200
  var spinnerTokens = componentTokensCopy.spinner;
200
201
  spinnerTokens.trackCircleColor = (_theme$spinner$accent = theme === null || theme === void 0 ? void 0 : (_theme$spinner = theme.spinner) === null || _theme$spinner === void 0 ? void 0 : _theme$spinner.accentColor) !== null && _theme$spinner$accent !== void 0 ? _theme$spinner$accent : spinnerTokens.trackCircleColor;
201
202
  spinnerTokens.totalCircleColor = (_theme$spinner$baseCo = theme === null || theme === void 0 ? void 0 : (_theme$spinner2 = theme.spinner) === null || _theme$spinner2 === void 0 ? void 0 : _theme$spinner2.baseColor) !== null && _theme$spinner$baseCo !== void 0 ? _theme$spinner$baseCo : spinnerTokens.totalCircleColor;
@@ -204,7 +205,7 @@ var parseTheme = function parseTheme(theme) {
204
205
  var switchTokens = componentTokensCopy["switch"];
205
206
  switchTokens.checkedTrackBackgroundColor = (_theme$switch$checked = theme === null || theme === void 0 ? void 0 : (_theme$switch = theme["switch"]) === null || _theme$switch === void 0 ? void 0 : _theme$switch.checkedBaseColor) !== null && _theme$switch$checked !== void 0 ? _theme$switch$checked : switchTokens.checkedTrackBackgroundColor;
206
207
  switchTokens.labelFontColor = (_theme$switch$fontCol = theme === null || theme === void 0 ? void 0 : (_theme$switch2 = theme["switch"]) === null || _theme$switch2 === void 0 ? void 0 : _theme$switch2.fontColor) !== null && _theme$switch$fontCol !== void 0 ? _theme$switch$fontCol : switchTokens.labelFontColor;
207
- switchTokens.disabledCheckedTrackBackgroundColor = (_setOpacity10 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$switch3 = theme["switch"]) === null || _theme$switch3 === void 0 ? void 0 : _theme$switch3.checkedBaseColor, 0.34)) !== null && _setOpacity10 !== void 0 ? _setOpacity10 : switchTokens.disabledCheckedTrackBackgroundColor;
208
+ switchTokens.disabledCheckedTrackBackgroundColor = (_setOpacity11 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$switch3 = theme["switch"]) === null || _theme$switch3 === void 0 ? void 0 : _theme$switch3.checkedBaseColor, 0.34)) !== null && _setOpacity11 !== void 0 ? _setOpacity11 : switchTokens.disabledCheckedTrackBackgroundColor;
208
209
  var tableTokens = componentTokensCopy.table;
209
210
  tableTokens.headerBackgroundColor = (_theme$table$baseColo = theme === null || theme === void 0 ? void 0 : (_theme$table = theme.table) === null || _theme$table === void 0 ? void 0 : _theme$table.baseColor) !== null && _theme$table$baseColo !== void 0 ? _theme$table$baseColo : tableTokens.headerBackgroundColor;
210
211
  tableTokens.headerFontColor = (_theme$table$headerFo = theme === null || theme === void 0 ? void 0 : (_theme$table2 = theme.table) === null || _theme$table2 === void 0 ? void 0 : _theme$table2.headerFontColor) !== null && _theme$table$headerFo !== void 0 ? _theme$table$headerFo : tableTokens.headerFontColor;
@@ -225,9 +226,9 @@ var parseTheme = function parseTheme(theme) {
225
226
  textInputTokens.hoverActionIconColor = (_theme$textInput$font5 = theme === null || theme === void 0 ? void 0 : (_theme$textInput5 = theme.textInput) === null || _theme$textInput5 === void 0 ? void 0 : _theme$textInput5.fontColor) !== null && _theme$textInput$font5 !== void 0 ? _theme$textInput$font5 : textInputTokens.hoverActionIconColor;
226
227
  textInputTokens.focusActionIconColor = (_theme$textInput$font6 = theme === null || theme === void 0 ? void 0 : (_theme$textInput6 = theme.textInput) === null || _theme$textInput6 === void 0 ? void 0 : _theme$textInput6.fontColor) !== null && _theme$textInput$font6 !== void 0 ? _theme$textInput$font6 : textInputTokens.focusActionIconColor;
227
228
  textInputTokens.activeActionIconColor = (_theme$textInput$font7 = theme === null || theme === void 0 ? void 0 : (_theme$textInput7 = theme.textInput) === null || _theme$textInput7 === void 0 ? void 0 : _theme$textInput7.fontColor) !== null && _theme$textInput$font7 !== void 0 ? _theme$textInput$font7 : textInputTokens.activeActionIconColor;
228
- textInputTokens.suffixColor = (_setOpacity11 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$textInput8 = theme.textInput) === null || _theme$textInput8 === void 0 ? void 0 : _theme$textInput8.fontColor, 0.5)) !== null && _setOpacity11 !== void 0 ? _setOpacity11 : textInputTokens.suffixColor;
229
- textInputTokens.prefixColor = (_setOpacity12 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$textInput9 = theme.textInput) === null || _theme$textInput9 === void 0 ? void 0 : _theme$textInput9.fontColor, 0.5)) !== null && _setOpacity12 !== void 0 ? _setOpacity12 : textInputTokens.prefixColor;
230
- textInputTokens.placeholderFontColor = (_setOpacity13 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$textInput10 = theme.textInput) === null || _theme$textInput10 === void 0 ? void 0 : _theme$textInput10.fontColor, 0.5)) !== null && _setOpacity13 !== void 0 ? _setOpacity13 : textInputTokens.placeholderFontColor;
229
+ textInputTokens.suffixColor = (_setOpacity12 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$textInput8 = theme.textInput) === null || _theme$textInput8 === void 0 ? void 0 : _theme$textInput8.fontColor, 0.5)) !== null && _setOpacity12 !== void 0 ? _setOpacity12 : textInputTokens.suffixColor;
230
+ textInputTokens.prefixColor = (_setOpacity13 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$textInput9 = theme.textInput) === null || _theme$textInput9 === void 0 ? void 0 : _theme$textInput9.fontColor, 0.5)) !== null && _setOpacity13 !== void 0 ? _setOpacity13 : textInputTokens.prefixColor;
231
+ textInputTokens.placeholderFontColor = (_setOpacity14 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$textInput10 = theme.textInput) === null || _theme$textInput10 === void 0 ? void 0 : _theme$textInput10.fontColor, 0.5)) !== null && _setOpacity14 !== void 0 ? _setOpacity14 : textInputTokens.placeholderFontColor;
231
232
  var toggleGroupTokens = componentTokensCopy.toggleGroup;
232
233
  toggleGroupTokens.selectedBackgroundColor = (_theme$toggleGroup$se = theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup = theme.toggleGroup) === null || _theme$toggleGroup === void 0 ? void 0 : _theme$toggleGroup.selectedBaseColor) !== null && _theme$toggleGroup$se !== void 0 ? _theme$toggleGroup$se : buttonTokens.selectedBackgroundColor;
233
234
  toggleGroupTokens.selectedFontColor = (_theme$toggleGroup$se2 = theme === null || theme === void 0 ? void 0 : (_theme$toggleGroup2 = theme.toggleGroup) === null || _theme$toggleGroup2 === void 0 ? void 0 : _theme$toggleGroup2.selectedFontColor) !== null && _theme$toggleGroup$se2 !== void 0 ? _theme$toggleGroup$se2 : toggleGroupTokens.selectedFontColor;
@@ -247,10 +248,10 @@ var parseTheme = function parseTheme(theme) {
247
248
  wizardTokens.selectedLabelFontColor = (_theme$wizard$fontCol3 = theme === null || theme === void 0 ? void 0 : (_theme$wizard5 = theme.wizard) === null || _theme$wizard5 === void 0 ? void 0 : _theme$wizard5.fontColor) !== null && _theme$wizard$fontCol3 !== void 0 ? _theme$wizard$fontCol3 : wizardTokens.selectedLabelFontColor;
248
249
  wizardTokens.visitedHelperTextFontColor = (_theme$wizard$fontCol4 = theme === null || theme === void 0 ? void 0 : (_theme$wizard6 = theme.wizard) === null || _theme$wizard6 === void 0 ? void 0 : _theme$wizard6.fontColor) !== null && _theme$wizard$fontCol4 !== void 0 ? _theme$wizard$fontCol4 : wizardTokens.visitedHelperTextFontColor;
249
250
  wizardTokens.selectedHelperTextFontColor = (_theme$wizard$fontCol5 = theme === null || theme === void 0 ? void 0 : (_theme$wizard7 = theme.wizard) === null || _theme$wizard7 === void 0 ? void 0 : _theme$wizard7.fontColor) !== null && _theme$wizard$fontCol5 !== void 0 ? _theme$wizard$fontCol5 : wizardTokens.selectedHelperTextFontColor;
250
- wizardTokens.unvisitedStepBorderColor = (_setOpacity14 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$wizard8 = theme.wizard) === null || _theme$wizard8 === void 0 ? void 0 : _theme$wizard8.fontColor, 0.6)) !== null && _setOpacity14 !== void 0 ? _setOpacity14 : wizardTokens.unvisitedStepBorderColor;
251
- wizardTokens.unvisitedStepFontColor = (_setOpacity15 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$wizard9 = theme.wizard) === null || _theme$wizard9 === void 0 ? void 0 : _theme$wizard9.fontColor, 0.6)) !== null && _setOpacity15 !== void 0 ? _setOpacity15 : wizardTokens.unvisitedStepFontColor;
252
- wizardTokens.unvisitedLabelFontColor = (_setOpacity16 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$wizard10 = theme.wizard) === null || _theme$wizard10 === void 0 ? void 0 : _theme$wizard10.fontColor, 0.6)) !== null && _setOpacity16 !== void 0 ? _setOpacity16 : wizardTokens.unvisitedLabelFontColor;
253
- wizardTokens.unvisitedHelperTextFontColor = (_setOpacity17 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$wizard11 = theme.wizard) === null || _theme$wizard11 === void 0 ? void 0 : _theme$wizard11.fontColor, 0.6)) !== null && _setOpacity17 !== void 0 ? _setOpacity17 : wizardTokens.unvisitedHelperTextFontColor;
251
+ wizardTokens.unvisitedStepBorderColor = (_setOpacity15 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$wizard8 = theme.wizard) === null || _theme$wizard8 === void 0 ? void 0 : _theme$wizard8.fontColor, 0.6)) !== null && _setOpacity15 !== void 0 ? _setOpacity15 : wizardTokens.unvisitedStepBorderColor;
252
+ wizardTokens.unvisitedStepFontColor = (_setOpacity16 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$wizard9 = theme.wizard) === null || _theme$wizard9 === void 0 ? void 0 : _theme$wizard9.fontColor, 0.6)) !== null && _setOpacity16 !== void 0 ? _setOpacity16 : wizardTokens.unvisitedStepFontColor;
253
+ wizardTokens.unvisitedLabelFontColor = (_setOpacity17 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$wizard10 = theme.wizard) === null || _theme$wizard10 === void 0 ? void 0 : _theme$wizard10.fontColor, 0.6)) !== null && _setOpacity17 !== void 0 ? _setOpacity17 : wizardTokens.unvisitedLabelFontColor;
254
+ wizardTokens.unvisitedHelperTextFontColor = (_setOpacity18 = setOpacity(theme === null || theme === void 0 ? void 0 : (_theme$wizard11 = theme.wizard) === null || _theme$wizard11 === void 0 ? void 0 : _theme$wizard11.fontColor, 0.6)) !== null && _setOpacity18 !== void 0 ? _setOpacity18 : wizardTokens.unvisitedHelperTextFontColor;
254
255
  return componentTokensCopy;
255
256
  };
256
257
 
@@ -15,7 +15,7 @@ export default {
15
15
  const folderIcon = (
16
16
  <svg
17
17
  xmlns="http://www.w3.org/2000/svg"
18
- enable-background="new 0 0 24 24"
18
+ enableBackground="new 0 0 24 24"
19
19
  height="24px"
20
20
  viewBox="0 0 24 24"
21
21
  width="24px"
@@ -98,6 +98,7 @@ var DxcAccordionGroup = function DxcAccordionGroup(_ref2) {
98
98
  return child.type === AccordionGroupAccordion;
99
99
  }).map(function (accordion, index) {
100
100
  return /*#__PURE__*/_react["default"].createElement(AccordionGroupAccordionContext.Provider, {
101
+ key: "accordion-".concat(index),
101
102
  value: _objectSpread({
102
103
  index: index
103
104
  }, contextValue)
package/badge/Badge.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import BadgePropsType from "./types";
3
- declare const DxcBadge: ({ notificationText }: BadgePropsType) => JSX.Element;
3
+ declare const DxcBadge: ({ notificationText, disabled }: BadgePropsType) => JSX.Element;
4
4
  export default DxcBadge;
package/badge/Badge.js CHANGED
@@ -24,17 +24,19 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
24
24
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
25
 
26
26
  var DxcBadge = function DxcBadge(_ref) {
27
- var notificationText = _ref.notificationText;
27
+ var notificationText = _ref.notificationText,
28
+ disabled = _ref.disabled;
28
29
  var colorsTheme = (0, _useTheme["default"])();
29
30
  return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
30
31
  theme: colorsTheme.tabs
31
32
  }, /*#__PURE__*/_react["default"].createElement(StyledDxcBadge, {
32
- notificationText: notificationText
33
+ notificationText: notificationText,
34
+ disabled: disabled
33
35
  }, /*#__PURE__*/_react["default"].createElement("span", null, notificationText)));
34
36
  };
35
37
 
36
38
  var StyledDxcBadge = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n background-color: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n color: ", ";\n letter-spacing: ", ";\n width: ", ";\n height: ", ";\n border-radius: ", ";\n display: flex;\n padding-bottom: 1px;\n padding-right: 1px;\n flex-wrap: wrap;\n box-sizing: border-box;\n align-items: center;\n line-height: 1;\n align-content: center;\n flex-direction: row;\n justify-content: center;\n"])), function (props) {
37
- return props.theme.badgeBackgroundColor;
39
+ return props.disabled ? props.theme.disabledBadgeBackgroundColor : props.theme.badgeBackgroundColor;
38
40
  }, function (props) {
39
41
  return props.theme.badgeFontFamily;
40
42
  }, function (props) {
package/badge/types.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  declare type Props = {
2
2
  notificationText: boolean | number | string;
3
+ disabled?: boolean;
3
4
  };
4
5
  export default Props;
package/bleed/Bleed.js CHANGED
@@ -36,40 +36,7 @@ function Bleed(_ref) {
36
36
  }
37
37
 
38
38
  function getSpacingValue(spacingName) {
39
- switch (spacingName) {
40
- case "none":
41
- return "0rem";
42
-
43
- case "xxxsmall":
44
- return "0.125rem";
45
-
46
- case "xxsmall":
47
- return "0.25rem";
48
-
49
- case "xsmall":
50
- return "0.5rem";
51
-
52
- case "small":
53
- return "1rem";
54
-
55
- case "medium":
56
- return "1.5rem";
57
-
58
- case "large":
59
- return "2rem";
60
-
61
- case "xlarge":
62
- return "3rem";
63
-
64
- case "xxlarge":
65
- return "4rem";
66
-
67
- case "xxxlarge":
68
- return "5rem";
69
-
70
- default:
71
- return "0rem";
72
- }
39
+ return spacingName ? spacingName : "0rem";
73
40
  }
74
41
 
75
42
  var StyledBleed = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n ", "\n"])), function (_ref2) {
@@ -13,9 +13,9 @@ export const Chromatic = () => (
13
13
  <>
14
14
  <Title title="Space = none" theme="light" level={4} />
15
15
  <Container>
16
- <DxcStack gutter="medium">
16
+ <DxcStack gutter="1.5rem">
17
17
  <Placeholder></Placeholder>
18
- <DxcBleed space="none">
18
+ <DxcBleed space="0rem">
19
19
  <Placeholder></Placeholder>
20
20
  </DxcBleed>
21
21
  <Placeholder></Placeholder>
@@ -23,9 +23,9 @@ export const Chromatic = () => (
23
23
  </Container>
24
24
  <Title title="Space = xxxsmall" theme="light" level={4} />
25
25
  <Container>
26
- <DxcStack gutter="medium">
26
+ <DxcStack gutter="1.5rem">
27
27
  <Placeholder></Placeholder>
28
- <DxcBleed space="xxxsmall">
28
+ <DxcBleed space="0.125rem">
29
29
  <Placeholder></Placeholder>
30
30
  </DxcBleed>
31
31
  <Placeholder></Placeholder>
@@ -33,9 +33,9 @@ export const Chromatic = () => (
33
33
  </Container>
34
34
  <Title title="Space = xxsmall" theme="light" level={4} />
35
35
  <Container>
36
- <DxcStack gutter="medium">
36
+ <DxcStack gutter="1.5rem">
37
37
  <Placeholder></Placeholder>
38
- <DxcBleed space="xxsmall">
38
+ <DxcBleed space="0.25rem">
39
39
  <Placeholder></Placeholder>
40
40
  </DxcBleed>
41
41
  <Placeholder></Placeholder>
@@ -43,9 +43,9 @@ export const Chromatic = () => (
43
43
  </Container>
44
44
  <Title title="Space = xsmall" theme="light" level={4} />
45
45
  <Container>
46
- <DxcStack gutter="medium">
46
+ <DxcStack gutter="1.5rem">
47
47
  <Placeholder></Placeholder>
48
- <DxcBleed space="xsmall">
48
+ <DxcBleed space="0.5rem">
49
49
  <Placeholder></Placeholder>
50
50
  </DxcBleed>
51
51
  <Placeholder></Placeholder>
@@ -53,9 +53,9 @@ export const Chromatic = () => (
53
53
  </Container>
54
54
  <Title title="Space = small" theme="light" level={4} />
55
55
  <Container>
56
- <DxcStack gutter="medium">
56
+ <DxcStack gutter="1.5rem">
57
57
  <Placeholder></Placeholder>
58
- <DxcBleed space="small">
58
+ <DxcBleed space="1rem">
59
59
  <Placeholder></Placeholder>
60
60
  </DxcBleed>
61
61
  <Placeholder></Placeholder>
@@ -63,9 +63,9 @@ export const Chromatic = () => (
63
63
  </Container>
64
64
  <Title title="Space = medium" theme="light" level={4} />
65
65
  <Container>
66
- <DxcStack gutter="medium">
66
+ <DxcStack gutter="1.5rem">
67
67
  <Placeholder></Placeholder>
68
- <DxcBleed space="medium">
68
+ <DxcBleed space="1.5rem">
69
69
  <Placeholder></Placeholder>
70
70
  </DxcBleed>
71
71
  <Placeholder></Placeholder>
@@ -73,9 +73,9 @@ export const Chromatic = () => (
73
73
  </Container>
74
74
  <Title title="Space = large" theme="light" level={4} />
75
75
  <Container>
76
- <DxcStack gutter="medium">
76
+ <DxcStack gutter="1.5rem">
77
77
  <Placeholder></Placeholder>
78
- <DxcBleed space="large">
78
+ <DxcBleed space="2rem">
79
79
  <Placeholder></Placeholder>
80
80
  </DxcBleed>
81
81
  <Placeholder></Placeholder>
@@ -83,9 +83,9 @@ export const Chromatic = () => (
83
83
  </Container>
84
84
  <Title title="Space = xlarge" theme="light" level={4} />
85
85
  <Container>
86
- <DxcStack gutter="medium">
86
+ <DxcStack gutter="1.5rem">
87
87
  <Placeholder></Placeholder>
88
- <DxcBleed space="xlarge">
88
+ <DxcBleed space="3rem">
89
89
  <Placeholder></Placeholder>
90
90
  </DxcBleed>
91
91
  <Placeholder></Placeholder>
@@ -93,9 +93,9 @@ export const Chromatic = () => (
93
93
  </Container>
94
94
  <Title title="Space = xxlarge" theme="light" level={4} />
95
95
  <Container>
96
- <DxcStack gutter="medium">
96
+ <DxcStack gutter="1.5rem">
97
97
  <Placeholder></Placeholder>
98
- <DxcBleed space="xxlarge">
98
+ <DxcBleed space="4rem">
99
99
  <Placeholder></Placeholder>
100
100
  </DxcBleed>
101
101
  <Placeholder></Placeholder>
@@ -103,9 +103,9 @@ export const Chromatic = () => (
103
103
  </Container>
104
104
  <Title title="Space = xxxlarge" theme="light" level={4} />
105
105
  <Container>
106
- <DxcStack gutter="medium">
106
+ <DxcStack gutter="1.5rem">
107
107
  <Placeholder></Placeholder>
108
- <DxcBleed space="xxxlarge">
108
+ <DxcBleed space="5rem">
109
109
  <Placeholder></Placeholder>
110
110
  </DxcBleed>
111
111
  <Placeholder></Placeholder>
@@ -114,9 +114,9 @@ export const Chromatic = () => (
114
114
 
115
115
  <Title title="Horizontal = none" theme="light" level={4} />
116
116
  <Container>
117
- <DxcStack gutter="medium">
117
+ <DxcStack gutter="1.5rem">
118
118
  <Placeholder></Placeholder>
119
- <DxcBleed horizontal="none">
119
+ <DxcBleed horizontal="0rem">
120
120
  <Placeholder></Placeholder>
121
121
  </DxcBleed>
122
122
  <Placeholder></Placeholder>
@@ -124,9 +124,9 @@ export const Chromatic = () => (
124
124
  </Container>
125
125
  <Title title="Horizontal = xxxsmall" theme="light" level={4} />
126
126
  <Container>
127
- <DxcStack gutter="medium">
127
+ <DxcStack gutter="1.5rem">
128
128
  <Placeholder></Placeholder>
129
- <DxcBleed horizontal="xxxsmall">
129
+ <DxcBleed horizontal="0.125rem">
130
130
  <Placeholder></Placeholder>
131
131
  </DxcBleed>
132
132
  <Placeholder></Placeholder>
@@ -134,9 +134,9 @@ export const Chromatic = () => (
134
134
  </Container>
135
135
  <Title title="Horizontal = xxsmall" theme="light" level={4} />
136
136
  <Container>
137
- <DxcStack gutter="medium">
137
+ <DxcStack gutter="1.5rem">
138
138
  <Placeholder></Placeholder>
139
- <DxcBleed horizontal="xxsmall">
139
+ <DxcBleed horizontal="0.25rem">
140
140
  <Placeholder></Placeholder>
141
141
  </DxcBleed>
142
142
  <Placeholder></Placeholder>
@@ -144,9 +144,9 @@ export const Chromatic = () => (
144
144
  </Container>
145
145
  <Title title="Horizontal = xsmall" theme="light" level={4} />
146
146
  <Container>
147
- <DxcStack gutter="medium">
147
+ <DxcStack gutter="1.5rem">
148
148
  <Placeholder></Placeholder>
149
- <DxcBleed horizontal="xsmall">
149
+ <DxcBleed horizontal="0.5rem">
150
150
  <Placeholder></Placeholder>
151
151
  </DxcBleed>
152
152
  <Placeholder></Placeholder>
@@ -154,9 +154,9 @@ export const Chromatic = () => (
154
154
  </Container>
155
155
  <Title title="Horizontal = small" theme="light" level={4} />
156
156
  <Container>
157
- <DxcStack gutter="medium">
157
+ <DxcStack gutter="1.5rem">
158
158
  <Placeholder></Placeholder>
159
- <DxcBleed horizontal="small">
159
+ <DxcBleed horizontal="1rem">
160
160
  <Placeholder></Placeholder>
161
161
  </DxcBleed>
162
162
  <Placeholder></Placeholder>
@@ -164,9 +164,9 @@ export const Chromatic = () => (
164
164
  </Container>
165
165
  <Title title="Horizontal = medium" theme="light" level={4} />
166
166
  <Container>
167
- <DxcStack gutter="medium">
167
+ <DxcStack gutter="1.5rem">
168
168
  <Placeholder></Placeholder>
169
- <DxcBleed horizontal="medium">
169
+ <DxcBleed horizontal="1.5rem">
170
170
  <Placeholder></Placeholder>
171
171
  </DxcBleed>
172
172
  <Placeholder></Placeholder>
@@ -174,9 +174,9 @@ export const Chromatic = () => (
174
174
  </Container>
175
175
  <Title title="Horizontal = large" theme="light" level={4} />
176
176
  <Container>
177
- <DxcStack gutter="medium">
177
+ <DxcStack gutter="1.5rem">
178
178
  <Placeholder></Placeholder>
179
- <DxcBleed horizontal="large">
179
+ <DxcBleed horizontal="2rem">
180
180
  <Placeholder></Placeholder>
181
181
  </DxcBleed>
182
182
  <Placeholder></Placeholder>
@@ -184,9 +184,9 @@ export const Chromatic = () => (
184
184
  </Container>
185
185
  <Title title="Horizontal = xlarge" theme="light" level={4} />
186
186
  <Container>
187
- <DxcStack gutter="medium">
187
+ <DxcStack gutter="1.5rem">
188
188
  <Placeholder></Placeholder>
189
- <DxcBleed horizontal="xlarge">
189
+ <DxcBleed horizontal="3rem">
190
190
  <Placeholder></Placeholder>
191
191
  </DxcBleed>
192
192
  <Placeholder></Placeholder>
@@ -194,9 +194,9 @@ export const Chromatic = () => (
194
194
  </Container>
195
195
  <Title title="Horizontal = xxlarge" theme="light" level={4} />
196
196
  <Container>
197
- <DxcStack gutter="medium">
197
+ <DxcStack gutter="1.5rem">
198
198
  <Placeholder></Placeholder>
199
- <DxcBleed horizontal="xxlarge">
199
+ <DxcBleed horizontal="4rem">
200
200
  <Placeholder></Placeholder>
201
201
  </DxcBleed>
202
202
  <Placeholder></Placeholder>
@@ -204,9 +204,9 @@ export const Chromatic = () => (
204
204
  </Container>
205
205
  <Title title="Horizontal = xxxlarge" theme="light" level={4} />
206
206
  <Container>
207
- <DxcStack gutter="medium">
207
+ <DxcStack gutter="1.5rem">
208
208
  <Placeholder></Placeholder>
209
- <DxcBleed horizontal="xxxlarge">
209
+ <DxcBleed horizontal="5rem">
210
210
  <Placeholder></Placeholder>
211
211
  </DxcBleed>
212
212
  <Placeholder></Placeholder>
@@ -215,9 +215,9 @@ export const Chromatic = () => (
215
215
 
216
216
  <Title title="Vertical = none" theme="light" level={4} />
217
217
  <Container>
218
- <DxcStack gutter="medium">
218
+ <DxcStack gutter="1.5rem">
219
219
  <Placeholder></Placeholder>
220
- <DxcBleed vertical="none">
220
+ <DxcBleed vertical="0rem">
221
221
  <Placeholder></Placeholder>
222
222
  </DxcBleed>
223
223
  <Placeholder></Placeholder>
@@ -225,9 +225,9 @@ export const Chromatic = () => (
225
225
  </Container>
226
226
  <Title title="Vertical = xxxsmall" theme="light" level={4} />
227
227
  <Container>
228
- <DxcStack gutter="medium">
228
+ <DxcStack gutter="1.5rem">
229
229
  <Placeholder></Placeholder>
230
- <DxcBleed vertical="xxxsmall">
230
+ <DxcBleed vertical="0.125rem">
231
231
  <Placeholder></Placeholder>
232
232
  </DxcBleed>
233
233
  <Placeholder></Placeholder>
@@ -235,9 +235,9 @@ export const Chromatic = () => (
235
235
  </Container>
236
236
  <Title title="Vertical = xxsmall" theme="light" level={4} />
237
237
  <Container>
238
- <DxcStack gutter="medium">
238
+ <DxcStack gutter="1.5rem">
239
239
  <Placeholder></Placeholder>
240
- <DxcBleed vertical="xxsmall">
240
+ <DxcBleed vertical="0.25rem">
241
241
  <Placeholder></Placeholder>
242
242
  </DxcBleed>
243
243
  <Placeholder></Placeholder>
@@ -245,9 +245,9 @@ export const Chromatic = () => (
245
245
  </Container>
246
246
  <Title title="Vertical = xsmall" theme="light" level={4} />
247
247
  <Container>
248
- <DxcStack gutter="medium">
248
+ <DxcStack gutter="1.5rem">
249
249
  <Placeholder></Placeholder>
250
- <DxcBleed vertical="xsmall">
250
+ <DxcBleed vertical="0.5rem">
251
251
  <Placeholder></Placeholder>
252
252
  </DxcBleed>
253
253
  <Placeholder></Placeholder>
@@ -255,9 +255,9 @@ export const Chromatic = () => (
255
255
  </Container>
256
256
  <Title title="Vertical = small" theme="light" level={4} />
257
257
  <Container>
258
- <DxcStack gutter="medium">
258
+ <DxcStack gutter="1.5rem">
259
259
  <Placeholder></Placeholder>
260
- <DxcBleed vertical="small">
260
+ <DxcBleed vertical="1rem">
261
261
  <Placeholder></Placeholder>
262
262
  </DxcBleed>
263
263
  <Placeholder></Placeholder>
@@ -265,9 +265,9 @@ export const Chromatic = () => (
265
265
  </Container>
266
266
  <Title title="Vertical = medium" theme="light" level={4} />
267
267
  <Container>
268
- <DxcStack gutter="medium">
268
+ <DxcStack gutter="1.5rem">
269
269
  <Placeholder></Placeholder>
270
- <DxcBleed vertical="medium">
270
+ <DxcBleed vertical="1.5rem">
271
271
  <Placeholder></Placeholder>
272
272
  </DxcBleed>
273
273
  <Placeholder></Placeholder>
@@ -275,9 +275,9 @@ export const Chromatic = () => (
275
275
  </Container>
276
276
  <Title title="Vertical = large" theme="light" level={4} />
277
277
  <Container>
278
- <DxcStack gutter="medium">
278
+ <DxcStack gutter="1.5rem">
279
279
  <Placeholder></Placeholder>
280
- <DxcBleed vertical="large">
280
+ <DxcBleed vertical="2rem">
281
281
  <Placeholder></Placeholder>
282
282
  </DxcBleed>
283
283
  <Placeholder></Placeholder>
@@ -285,9 +285,9 @@ export const Chromatic = () => (
285
285
  </Container>
286
286
  <Title title="Vertical = xlarge" theme="light" level={4} />
287
287
  <Container>
288
- <DxcStack gutter="medium">
288
+ <DxcStack gutter="1.5rem">
289
289
  <Placeholder></Placeholder>
290
- <DxcBleed vertical="xlarge">
290
+ <DxcBleed vertical="3rem">
291
291
  <Placeholder></Placeholder>
292
292
  </DxcBleed>
293
293
  <Placeholder></Placeholder>
@@ -295,9 +295,9 @@ export const Chromatic = () => (
295
295
  </Container>
296
296
  <Title title="Vertical = xxlarge" theme="light" level={4} />
297
297
  <Container>
298
- <DxcStack gutter="medium">
298
+ <DxcStack gutter="1.5rem">
299
299
  <Placeholder></Placeholder>
300
- <DxcBleed vertical="xxlarge">
300
+ <DxcBleed vertical="4rem">
301
301
  <Placeholder></Placeholder>
302
302
  </DxcBleed>
303
303
  <Placeholder></Placeholder>
@@ -305,9 +305,9 @@ export const Chromatic = () => (
305
305
  </Container>
306
306
  <Title title="Vertical = xxxlarge" theme="light" level={4} />
307
307
  <Container>
308
- <DxcStack gutter="medium">
308
+ <DxcStack gutter="1.5rem">
309
309
  <Placeholder></Placeholder>
310
- <DxcBleed vertical="xxxlarge">
310
+ <DxcBleed vertical="5rem">
311
311
  <Placeholder></Placeholder>
312
312
  </DxcBleed>
313
313
  <Placeholder></Placeholder>
@@ -316,9 +316,9 @@ export const Chromatic = () => (
316
316
 
317
317
  <Title title="Top = xsmall, right = small, bottom = medium and left = large" theme="light" level={4} />
318
318
  <Container>
319
- <DxcStack gutter="medium">
319
+ <DxcStack gutter="1.5rem">
320
320
  <Placeholder></Placeholder>
321
- <DxcBleed top="xsmall" right="small" bottom="medium" left="large">
321
+ <DxcBleed top="0.5rem" right="1rem" bottom="1.5rem" left="2rem">
322
322
  <Placeholder></Placeholder>
323
323
  </DxcBleed>
324
324
  <Placeholder></Placeholder>
@@ -339,4 +339,3 @@ const Placeholder = styled.div`
339
339
  border: 1px solid #a46ede;
340
340
  background-color: #e5d5f6;
341
341
  `;
342
-
package/bleed/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Spacing = "none" | "xxxsmall" | "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge" | "xxxlarge";
2
+ declare type Spacing = "0rem" | "0.125rem" | "0.25rem" | "0.5rem" | "1rem" | "1.5rem" | "2rem" | "3rem" | "4rem" | "5rem";
3
3
  declare type Props = {
4
4
  /**
5
5
  * Applies the spacing scale to all sides.