@openedx/paragon 23.0.0-alpha.1 → 23.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/README.md +31 -22
  2. package/dist/Button/index.d.ts +35 -0
  3. package/dist/Button/index.js +37 -15
  4. package/dist/Button/index.js.map +1 -1
  5. package/dist/Button/index.scss +0 -2
  6. package/dist/Chip/ChipIcon.d.ts +13 -8
  7. package/dist/Chip/ChipIcon.js +0 -2
  8. package/dist/Chip/ChipIcon.js.map +1 -1
  9. package/dist/Chip/constants.d.ts +4 -0
  10. package/dist/Chip/constants.js +3 -2
  11. package/dist/Chip/constants.js.map +1 -0
  12. package/dist/Chip/index.d.ts +4 -3
  13. package/dist/Chip/index.js +2 -4
  14. package/dist/Chip/index.js.map +1 -1
  15. package/dist/Chip/index.scss +6 -5
  16. package/dist/Chip/mixins.scss +4 -4
  17. package/dist/ChipCarousel/index.js +0 -2
  18. package/dist/ChipCarousel/index.js.map +1 -1
  19. package/dist/Collapsible/index.scss +3 -3
  20. package/dist/Hyperlink/index.d.ts +24 -0
  21. package/dist/Hyperlink/index.js +20 -32
  22. package/dist/Hyperlink/index.js.map +1 -1
  23. package/dist/Icon/index.d.ts +4 -2
  24. package/dist/Icon/index.js +1 -1
  25. package/dist/Icon/index.js.map +1 -1
  26. package/dist/IconButton/index.d.ts +342 -0
  27. package/dist/IconButton/index.js +18 -26
  28. package/dist/IconButton/index.js.map +1 -1
  29. package/dist/Modal/ModalPopup.js +7 -1
  30. package/dist/Modal/ModalPopup.js.map +1 -1
  31. package/dist/Modal/_ModalDialog.scss +4 -0
  32. package/dist/Overlay/index.d.ts +128 -0
  33. package/dist/Overlay/index.js +8 -2
  34. package/dist/Overlay/index.js.map +1 -1
  35. package/dist/Stepper/index.scss +3 -2
  36. package/dist/Tabs/index.scss +9 -6
  37. package/dist/Tooltip/index.d.ts +7 -0
  38. package/dist/Tooltip/index.js.map +1 -1
  39. package/dist/core.css +22 -30
  40. package/dist/core.css.map +1 -1
  41. package/dist/core.min.css +1 -1
  42. package/dist/index.d.ts +5 -5
  43. package/dist/index.js +7 -7
  44. package/dist/light.css +11 -11
  45. package/dist/light.css.map +1 -1
  46. package/dist/light.min.css +1 -1
  47. package/dist/setupTest.d.ts +2 -0
  48. package/dist/setupTest.js.map +1 -0
  49. package/dist/utils/types/bootstrap.d.ts +39 -0
  50. package/dist/utils/types/bootstrap.js +2 -0
  51. package/dist/utils/types/bootstrap.js.map +1 -0
  52. package/lib/build-tokens.js +18 -4
  53. package/package.json +6 -5
  54. package/src/Button/{Button.test.jsx → Button.test.tsx} +14 -2
  55. package/src/Button/__snapshots__/{Button.test.jsx.snap → Button.test.tsx.snap} +19 -2
  56. package/src/Button/index.scss +0 -2
  57. package/src/Button/{index.jsx → index.tsx} +58 -16
  58. package/src/Chip/{Chip.test.jsx → Chip.test.tsx} +5 -7
  59. package/src/Chip/ChipIcon.tsx +8 -8
  60. package/src/Chip/{constants.js → constants.ts} +1 -1
  61. package/src/Chip/index.scss +6 -5
  62. package/src/Chip/index.tsx +6 -8
  63. package/src/Chip/mixins.scss +4 -4
  64. package/src/ChipCarousel/index.tsx +0 -2
  65. package/src/Collapsible/index.scss +3 -3
  66. package/src/Hyperlink/{Hyperlink.test.jsx → Hyperlink.test.tsx} +21 -10
  67. package/src/Hyperlink/{index.jsx → index.tsx} +41 -37
  68. package/src/Icon/index.d.ts +4 -2
  69. package/src/Icon/index.jsx +1 -1
  70. package/src/IconButton/{IconButton.test.jsx → IconButton.test.tsx} +24 -3
  71. package/src/IconButton/__snapshots__/IconButton.test.tsx.snap +90 -0
  72. package/src/IconButton/{index.jsx → index.tsx} +66 -26
  73. package/src/Modal/ModalPopup.jsx +9 -1
  74. package/src/Modal/_ModalDialog.scss +4 -0
  75. package/src/Modal/tests/ModalPopupNoMock.test.jsx +29 -0
  76. package/src/Overlay/{index.jsx → index.tsx} +13 -8
  77. package/src/Stepper/index.scss +3 -2
  78. package/src/Tabs/index.scss +9 -6
  79. package/src/Tooltip/{index.jsx → index.tsx} +9 -3
  80. package/src/index.d.ts +5 -5
  81. package/src/index.js +7 -7
  82. package/src/{setupTest.js → setupTest.ts} +1 -0
  83. package/src/utils/types/bootstrap.test.tsx +86 -0
  84. package/src/utils/types/bootstrap.ts +43 -0
  85. package/styles/css/core/variables.css +11 -22
  86. package/styles/css/themes/light/variables.css +11 -11
  87. package/styles/scss/core/_variables.scss +4 -5
  88. package/styles/scss/core/core.scss +1 -1
  89. package/tokens/README.md +1 -2
  90. package/tokens/src/core/alias/size.json +3 -3
  91. package/tokens/src/core/components/Breadcrumb.json +0 -14
  92. package/tokens/src/core/components/Card.json +6 -1
  93. package/tokens/src/core/components/Chip.json +4 -6
  94. package/tokens/src/core/components/ColorPicker.json +2 -2
  95. package/tokens/src/core/components/DataTable.json +1 -1
  96. package/tokens/src/core/components/Form/size.json +3 -7
  97. package/tokens/src/core/components/Nav.json +0 -3
  98. package/tokens/src/core/components/Pagination.json +0 -4
  99. package/tokens/src/core/components/ProductTour.json +0 -5
  100. package/tokens/src/core/global/display.json +2 -1
  101. package/tokens/src/core/global/spacing.json +7 -5
  102. package/tokens/src/themes/light/alias/color.json +2 -2
  103. package/tokens/src/themes/light/components/Alert.json +0 -9
  104. package/tokens/src/themes/light/components/Annotation.json +11 -11
  105. package/tokens/src/themes/light/components/Avatar.json +1 -1
  106. package/tokens/src/themes/light/components/Breadcrumb.json +0 -1
  107. package/tokens/src/themes/light/components/Card.json +2 -6
  108. package/tokens/src/themes/light/components/DataTable.json +1 -1
  109. package/tokens/src/themes/light/components/Form/color.json +4 -4
  110. package/tokens/src/themes/light/components/Form/elevation.json +1 -1
  111. package/tokens/src/themes/light/components/Form/other.json +3 -3
  112. package/tokens/src/themes/light/components/general/input.json +1 -1
  113. package/tokens/src/themes/light/components/general/link.json +1 -1
  114. package/tokens/src/themes/light/components/general/list.json +1 -1
  115. package/tokens/src/themes/light/components/general/text.json +7 -1
  116. package/tokens/src/themes/light/global/color.json +2 -2
  117. package/tokens/style-dictionary.js +6 -0
  118. package/src/IconButton/__snapshots__/IconButton.test.jsx.snap +0 -20
  119. /package/src/Button/{ButtonGroup.test.jsx → ButtonGroup.test.tsx} +0 -0
  120. /package/src/Button/{ButtonToolbar.test.jsx → ButtonToolbar.test.tsx} +0 -0
  121. /package/src/Button/__snapshots__/{ButtonGroup.test.jsx.snap → ButtonGroup.test.tsx.snap} +0 -0
  122. /package/src/Button/__snapshots__/{ButtonToolbar.test.jsx.snap → ButtonToolbar.test.tsx.snap} +0 -0
  123. /package/src/Chip/__snapshots__/{Chip.test.jsx.snap → Chip.test.tsx.snap} +0 -0
  124. /package/src/Tooltip/{Tooltip.test.jsx → Tooltip.test.tsx} +0 -0
@@ -8,10 +8,8 @@
8
8
  "icon": { "value": ".25rem", "type": "dimension", "source": "$chip-icon-margin" }
9
9
  },
10
10
  "padding": {
11
- "y": { "value": ".125rem", "type": "dimension", "source": "$chip-padding-y" },
12
- "x": { "value": ".5rem", "type": "dimension", "source": "$chip-padding-x" },
13
- "icon": { "value": ".25rem", "type": "dimension", "source": "$chip-icon-padding" },
14
- "to-icon": { "value": "3px", "type": "dimension", "source": "$chip-padding-to-icon" }
11
+ "y": { "value": "1px", "type": "dimension", "source": "$chip-padding-y" },
12
+ "x": { "value": ".5rem", "type": "dimension", "source": "$chip-padding-x" }
15
13
  },
16
14
  "outline": {
17
15
  "selected-distance": {
@@ -36,8 +34,8 @@
36
34
  },
37
35
  "size": {
38
36
  "chip": {
39
- "border-radius": { "value": ".25rem", "type": "dimension", "source": "$chip-border-radius" },
40
- "icon": { "value": "1.25rem", "type": "dimension", "source": "$chip-icon-size" }
37
+ "border-radius": { "value": ".375rem", "type": "dimension", "source": "$chip-border-radius" },
38
+ "icon": { "value": "1.5rem", "type": "dimension", "source": "$chip-icon-size" }
41
39
  }
42
40
  }
43
41
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "size": {
3
3
  "color-picker": {
4
- "sm": { "value": "2rem", "source": "$picker-size-sm", "type": "dimension"},
5
- "md": { "value": "calc(1.3333em + 1.125rem + 2px)", "source": "$picker-size-md", "type": "dimension"}
4
+ "sm": { "value": "2rem", "type": "dimension", "source": "$picker-size-sm" },
5
+ "md": { "value": "calc(1.3333em + 1.125rem + 2px)", "type": "dimension", "source": "$picker-size-md" }
6
6
  }
7
7
  }
8
8
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "size": {
3
3
  "data-table": {
4
- "border": { "value": "1px", "type": "dimension", "source": "$data-table-border" },
4
+ "border": { "value": "2px", "type": "dimension", "source": "$data-table-border" },
5
5
  "dropdown": {
6
6
  "pagination": {
7
7
  "max-height": { "value": "60vh", "type": "dimension", "source": "$data-table-pagination-dropdown-max-height" },
@@ -57,7 +57,7 @@
57
57
  }
58
58
  },
59
59
  "control": {
60
- "indicator": {
60
+ "indicator": {
61
61
  "base": { "value": "1.25rem", "type": "dimension", "source": "$custom-control-indicator-size" },
62
62
  "bg": { "value": "100%", "type": "percentage", "source": "$custom-control-indicator-bg-size" },
63
63
  "border": {
@@ -101,7 +101,8 @@
101
101
  "icon": {
102
102
  "value": "{size.form.input.height.inner.half} {size.form.input.height.inner.half}",
103
103
  "type": "dimension",
104
- "source": "$custom-select-feedback-icon-size" }
104
+ "source": "$custom-select-feedback-icon-size"
105
+ }
105
106
  },
106
107
  "border": {
107
108
  "width": {
@@ -109,11 +110,6 @@
109
110
  "value": "{size.form.input.width.border}",
110
111
  "type": "dimension",
111
112
  "source": "$custom-select-border-width"
112
- },
113
- "focus": {
114
- "value": "{size.form.input.width.focus}",
115
- "type": "dimension",
116
- "source": "$custom-select-focus-width"
117
113
  }
118
114
  },
119
115
  "radius": {
@@ -46,9 +46,6 @@
46
46
  "x": { "value": "1rem", "type": "dimension", "source": "$nav-link-padding-x" }
47
47
  },
48
48
  "distance-to-border": { "value": "4px", "type": "dimension", "source": "$nav-tabs-link-distance-to-border" }
49
- },
50
- "divider": {
51
- "margin-y": { "value": "calc({spacing.spacer.base} / 2)", "type": "dimension", "source": "$nav-divider-margin-y" }
52
49
  }
53
50
  }
54
51
  }
@@ -20,9 +20,6 @@
20
20
  "sm": { "value": ".6rem", "type": "dimension", "source": "$pagination-padding-x-sm" },
21
21
  "lg": { "value": "1.5rem", "type": "dimension", "source": "$pagination-padding-x-lg" }
22
22
  }
23
- },
24
- "margin": {
25
- "x": { "value": ".5rem", "type": "dimension", "source": "$pagination-margin-x" }
26
23
  }
27
24
  }
28
25
  },
@@ -62,7 +59,6 @@
62
59
  }
63
60
  },
64
61
  "focus": {
65
- "border-width": { "value": ".125rem", "type": "dimension", "source": "$pagination-focus-border-width" },
66
62
  "outline": { "value": "0", "type": "dimension", "source": "$pagination-focus-outline" }
67
63
  }
68
64
  }
@@ -8,11 +8,6 @@
8
8
  "max": { "value": "480px", "type": "dimension", "source": "$checkpoint-max-width" }
9
9
  },
10
10
  "arrow": {
11
- "bottom": {
12
- "value": "{size.product-tour.checkpoint.width.arrow} {size.product-tour.checkpoint.width.border}",
13
- "type": "dimension",
14
- "source": "$checkpoint-arrow-border-bottom"
15
- },
16
11
  "top": {
17
12
  "value": "{size.product-tour.checkpoint.width.arrow}",
18
13
  "type": "dimension",
@@ -16,6 +16,7 @@
16
16
  "3": { "value": "{typography.font.weight.bold}", "type": "fontWeight", "source": "$display3-weight", "description": "Font weight of level 3." },
17
17
  "4": { "value": "{typography.font.weight.bold}", "type": "fontWeight", "source": "$display4-weight", "description": "Font weight of level 4." }
18
18
  }
19
- }
19
+ },
20
+ "print-page-size": { "value": "a3", "type": "dimension", "source": "$print-page-size" }
20
21
  }
21
22
  }
@@ -8,21 +8,23 @@
8
8
  "2": { "value": "calc({spacing.spacer.base} * .5)", "type": "dimension", "description": "Space value of level 2" },
9
9
  "2,5": { "value": "calc({spacing.spacer.base} * .75)", "type": "dimension", "description": "Space value of level 2.5" },
10
10
  "3": { "value": "{spacing.spacer.base}", "type": "dimension", "description": "Space value of level 3" },
11
- "3,5": { "value": "calc({spacing.spacer.base} * 1.25)", "type": "dimension", "description": "Space value of level 3.5"},
11
+ "3,5": { "value": "calc({spacing.spacer.base} * 1.25)", "type": "dimension", "description": "Space value of level 3.5" },
12
12
  "4": { "value": "calc({spacing.spacer.base} * 1.5)", "type": "dimension", "description": "Space value of level 4" },
13
13
  "4,5": { "value": "calc({spacing.spacer.base} * 2)", "type": "dimension", "description": "Space value of level 4.5" },
14
14
  "5": { "value": "calc({spacing.spacer.base} * 3)", "type": "dimension", "description": "Space value of level 5" },
15
- "5,5": { "value": "calc({spacing.spacer.base} * 4)", "type": "dimension", "description": "Space value of level 5.5"},
15
+ "5,5": { "value": "calc({spacing.spacer.base} * 4)", "type": "dimension", "description": "Space value of level 5.5" },
16
16
  "6": { "value": "calc({spacing.spacer.base} * 5)", "type": "dimension", "description": "Space value of level 6" }
17
17
  },
18
18
  "label": {
19
- "margin-bottom": { "value": ".5rem", "type": "dimension", "description": "Margin bottom for label." }
19
+ "margin-bottom": {
20
+ "value": ".5rem", "type": "dimension", "source": "$label-margin-bottom", "description": "Margin bottom for label."
21
+ }
20
22
  },
21
23
  "table": {
22
24
  "cell": {
23
25
  "padding": {
24
- "base": { "value": "75rem", "type": "dimension", "description": "Padding for tables." },
25
- "sm": { "value": ".3rem", "type": "dimension", "description": "Padding sm for tables." }
26
+ "base": { "value": ".75rem", "type": "dimension", "source": "$table-cell-padding", "description": "Padding for tables." },
27
+ "sm": { "value": ".3rem", "type": "dimension", "source": "$table-cell-padding-sm", "description": "Padding sm for tables." }
26
28
  }
27
29
  }
28
30
  },
@@ -29,10 +29,10 @@
29
29
  },
30
30
  "table": {
31
31
  "caption": {
32
- "value": "{color.text-muted}", "type": "color", "description": "Table caption color."
32
+ "value": "{color.text-muted}", "type": "color", "source": "$table-caption-color", "description": "Table caption color."
33
33
  },
34
34
  "border": {
35
- "value": "{color.border}", "type": "color", "description": "Table border color."
35
+ "value": "{color.border}", "type": "color", "source": "$table-border-color", "description": "Table border color."
36
36
  }
37
37
  },
38
38
  "border": { "value": "{color.gray.200}", "type": "color", "source": "$border-color", "description": "Border color." },
@@ -34,14 +34,5 @@
34
34
  }
35
35
  }
36
36
  }
37
- },
38
- "elevation": {
39
- "alert": {
40
- "box-shadow": {
41
- "value": "0 1px 2px rgba(0, 0, 0, .15), 0 1px 4px rgba(0, 0, 0, .15)",
42
- "type": "shadow",
43
- "source": "$alert-box-shadow"
44
- }
45
- }
46
37
  }
47
38
  }
@@ -2,7 +2,7 @@
2
2
  "elevation": {
3
3
  "annotation": {
4
4
  "box-shadow": {
5
- "value": "drop-shadow(0 2px 4px rgba(0, 0, 0, .15)) drop-shadow(0 2px 8px rgba(0, 0, 0, .15))",
5
+ "value": "drop-shadow(0 2px 4px rgba(0, 0, 0, .15)) drop-shadow(0 2px 8px rgba(0, 0, 0, .15))",
6
6
  "type": "shadow",
7
7
  "source": "$annotation-box-shadow"
8
8
  }
@@ -11,18 +11,18 @@
11
11
  "color": {
12
12
  "annotation": {
13
13
  "text": {
14
- "success": { "value": "{color.white}", "type": "color", "source": "$annotation-success-color"},
15
- "warning": { "value": "{color.black}", "type": "color", "source": "$annotation-warning-color"},
16
- "error": { "value": "{color.white}", "type": "color", "source": "$annotation-error-color"},
17
- "light": { "value": "{color.primary.500}", "type": "color", "source": "$annotation-light-color"},
18
- "dark": { "value": "{color.white}", "type": "color", "source": "$annotation-dark-color"}
14
+ "success": { "value": "{color.white}", "type": "color", "source": "$annotation-success-color" },
15
+ "warning": { "value": "{color.black}", "type": "color", "source": "$annotation-warning-color" },
16
+ "error": { "value": "{color.white}", "type": "color", "source": "$annotation-error-color" },
17
+ "light": { "value": "{color.primary.500}", "type": "color", "source": "$annotation-light-color" },
18
+ "dark": { "value": "{color.white}", "type": "color", "source": "$annotation-dark-color" }
19
19
  },
20
20
  "bg": {
21
- "success": { "value": "{color.success.base}", "type": "color", "source": "$annotation-success-bg"},
22
- "warning": { "value": "{color.accent.b}", "type": "color", "source": "$annotation-warning-bg"},
23
- "error": { "value": "{color.danger.base}", "type": "color", "source": "$annotation-error-bg"},
24
- "light": { "value": "{color.white}", "type": "color", "source": "$annotation-light-bg"},
25
- "dark": { "value": "{color.dark.base}", "type": "color", "source": "$annotation-dark-bg"}
21
+ "success": { "value": "{color.success.base}", "type": "color", "source": "$annotation-success-bg" },
22
+ "warning": { "value": "{color.accent.b}", "type": "color", "source": "$annotation-warning-bg" },
23
+ "error": { "value": "{color.danger.base}", "type": "color", "source": "$annotation-error-bg" },
24
+ "light": { "value": "{color.white}", "type": "color", "source": "$annotation-light-bg" },
25
+ "dark": { "value": "{color.dark.base}", "type": "color", "source": "$annotation-dark-bg" }
26
26
  }
27
27
  }
28
28
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "color": {
3
3
  "avatar": {
4
- "border": { "value": "{color.light.300}", "type": "color", "source": "$avatar-color-border" }
4
+ "border": { "value": "{color.light.300}", "type": "color" }
5
5
  }
6
6
  }
7
7
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "color": {
3
3
  "breadcrumb": {
4
- "bg": { "value": "{color.gray.200}", "type": "color", "source": "$breadcrumb-bg" },
5
4
  "base": { "value": "{color.primary.500}", "type": "color", "source": "$breadcrumb-color" },
6
5
  "active": { "value": "{color.gray.500}", "type": "color", "source": "$breadcrumb-active-color" },
7
6
  "inverse": {
@@ -8,7 +8,7 @@
8
8
  "muted": { "value": "{color.light.200}", "type": "color", "source": "$card-bg-muted" }
9
9
  },
10
10
  "border": {
11
- "base": {
11
+ "base": {
12
12
  "value": "{color.black}",
13
13
  "type": "color",
14
14
  "source": "$card-border-color",
@@ -21,11 +21,7 @@
21
21
  "base": {
22
22
  "value": "{color.primary.500}",
23
23
  "type": "color",
24
- "source": "$card-border-focus-color",
25
- "modify": [{
26
- "type": "alpha",
27
- "amount": 0.5
28
- }]
24
+ "source": "$card-border-focus-color"
29
25
  },
30
26
  "dark": {
31
27
  "value": "{color.theme.focus.primary}",
@@ -15,7 +15,7 @@
15
15
  ]
16
16
  }
17
17
  },
18
- "border": { "value": "{color.gray.200}", "type": "color", "source": "$data-table-border-color" }
18
+ "border": { "value": "{color.light.300}", "type": "color", "source": "$data-table-border-color" }
19
19
  }
20
20
  },
21
21
  "elevation": {
@@ -30,7 +30,7 @@
30
30
  "border": {
31
31
  "value": "{color.gray.700}", "type": "color", "source": "$custom-control-indicator-border-color"
32
32
  },
33
- "bg": {
33
+ "bg": {
34
34
  "base": {
35
35
  "value": "{color.form.input.bg.base}", "type": "color", "source": "$custom-control-indicator-bg"
36
36
  },
@@ -68,7 +68,7 @@
68
68
  }
69
69
  }
70
70
  },
71
- "active": {
71
+ "active": {
72
72
  "base": {
73
73
  "value": "{color.active}", "type": "color", "source": "$custom-control-indicator-active-color"
74
74
  },
@@ -88,7 +88,7 @@
88
88
  "value": "{color.disabled}", "type": "color", "source": "$custom-control-label-disabled-color"
89
89
  },
90
90
  "floating": {
91
- "text": {
91
+ "text": {
92
92
  "value": "{color.form.input.bg.base}",
93
93
  "type": "color",
94
94
  "source": "$form-control-floating-label-text-bg",
@@ -217,7 +217,7 @@
217
217
  "value": "{color.form.feedback.valid}",
218
218
  "type": "color",
219
219
  "source": "$form-feedback-tooltip-valid-color",
220
- "modify": [{"type": "color-yiq"}]
220
+ "modify": [{ "type": "color-yiq" }]
221
221
  },
222
222
  "bg": {
223
223
  "valid": {
@@ -4,7 +4,7 @@
4
4
  "input": {
5
5
  "base": { "value": "none", "type": "shadow", "source": "$input-box-shadow" },
6
6
  "focus": {
7
- "value": "none",
7
+ "value": "0 0 0 1px {color.primary.500}",
8
8
  "type": "shadow",
9
9
  "source": "$input-focus-box-shadow"
10
10
  }
@@ -52,21 +52,21 @@
52
52
  "type": "file",
53
53
  "source": "$custom-radio-indicator-icon-checked",
54
54
  "outputReferences": false,
55
- "modify": [{ "type": "str-replace", "toReplace": "#", "replaceWith": "%23"}]
55
+ "modify": [{ "type": "str-replace", "toReplace": "#", "replaceWith": "%23" }]
56
56
  },
57
57
  "valid": {
58
58
  "value": "url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='{color.form.control.indicator.checked.valid}'/%3e%3c/svg%3e\")",
59
59
  "type": "file",
60
60
  "source": "$custom-radio-indicator-icon-valid-checked",
61
61
  "outputReferences": false,
62
- "modify": [{ "type": "str-replace", "toReplace": "#", "replaceWith": "%23"}]
62
+ "modify": [{ "type": "str-replace", "toReplace": "#", "replaceWith": "%23" }]
63
63
  },
64
64
  "invalid": {
65
65
  "value": "url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='{color.form.control.indicator.checked.invalid}'/%3e%3c/svg%3e\")",
66
66
  "type": "file",
67
67
  "source": "$custom-radio-indicator-icon-invalid-checked",
68
68
  "outputReferences": false,
69
- "modify": [{ "type": "str-replace", "toReplace": "#", "replaceWith": "%23"}]
69
+ "modify": [{ "type": "str-replace", "toReplace": "#", "replaceWith": "%23" }]
70
70
  }
71
71
  }
72
72
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "color": {
3
3
  "input": {
4
- "btn-focus": { "value": "{color.input.focus}", "type": "color", "source": "$input-btn-focus-color" }
4
+ "btn-focus": { "value": "{color.bg.active}", "type": "color", "source": "$input-btn-focus-color" }
5
5
  }
6
6
  },
7
7
  "elevation": {
@@ -37,7 +37,7 @@
37
37
  "value": "{color.link.muted.base}",
38
38
  "type": "color",
39
39
  "source": "$muted-link-hover-color",
40
- "modify": [{ "type": "darken", "amount": 0.15}]
40
+ "modify": [{ "type": "darken", "amount": 0.15 }]
41
41
  },
42
42
  "inline": {
43
43
  "base": { "value": "{color.primary.500}", "type": "color", "source": "$muted-inline-link-color" },
@@ -3,7 +3,7 @@
3
3
  "list-group": {
4
4
  "base": { "value": "inherit", "type": "color", "source": "$list-group-color" },
5
5
  "bg": {
6
- "base": { "value": "{color.bg.base}", "type": "color", "source": "$list-group-bg" },
6
+ "base": { "value": "{color.white}", "type": "color", "source": "$list-group-bg" },
7
7
  "hover": { "value": "{color.gray.100}", "type": "color", "source": "$list-group-hover-bg" }
8
8
  },
9
9
  "border": {
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "color": {
3
3
  "text-muted": { "value": "{color.gray.500}", "type": "color", "source": "$text-muted" },
4
- "mark-bg": { "value": "#FFF243", "type": "color", "source": "$mark-bg" }
4
+ "mark-bg": { "value": "#FFF243", "type": "color", "source": "$mark-bg" },
5
+ "blockquote": {
6
+ "small": {
7
+ "value": "{color.gray.500}", "type": "color", "source": "$blockquote-small-color"
8
+ }
9
+ },
10
+ "yiq-light": { "value": "{color.white}", "type": "color", "source": "$yiq-text-light" }
5
11
  }
6
12
  }
@@ -153,7 +153,7 @@
153
153
  "value": "{color.primary.base}",
154
154
  "type": "color",
155
155
  "source": "$primary-300",
156
- "modify": [{ "type": "mix", "otherColor": "white", "amount": "0.50"}],
156
+ "modify": [{ "type": "mix", "otherColor": "white", "amount": "0.50" }],
157
157
  "description": "Primary color of level 300.",
158
158
  "actions": {
159
159
  "default": "{color.action.default.primary.300}"
@@ -602,7 +602,7 @@
602
602
  "value": "{color.info.base}",
603
603
  "type": "color",
604
604
  "source": "$info-800",
605
- "modify": [{ "type": "mix", "otherColor": "black", "amount": "0.25"}],
605
+ "modify": [{ "type": "mix", "otherColor": "black", "amount": "0.25" }],
606
606
  "description": "Info color of level 800.",
607
607
  "actions": {
608
608
  "default": "{color.action.default.info.800}"
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This module creates and exports custom StyleDictionary instance for Paragon.
3
3
  */
4
+ const toml = require('js-toml');
4
5
  const StyleDictionary = require('style-dictionary');
5
6
  const chroma = require('chroma-js');
6
7
  const { colorYiq, darken, lighten } = require('./sass-helpers');
@@ -216,6 +217,11 @@ StyleDictionary.registerFilter({
216
217
  matcher: token => token?.isSource === true,
217
218
  });
218
219
 
220
+ StyleDictionary.registerParser({
221
+ pattern: /\.toml$/,
222
+ parse: ({ contents }) => toml.load(contents),
223
+ });
224
+
219
225
  module.exports = {
220
226
  StyleDictionary,
221
227
  createCustomCSSVariables,
@@ -1,20 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`<IconButton /> renders with required props 1`] = `
4
- <button
5
- aria-label="alternative"
6
- className="btn-icon btn-icon-primary btn-icon-md"
7
- onClick={[Function]}
8
- type="button"
9
- >
10
- <span
11
- className="btn-icon__icon-container"
12
- >
13
- <span
14
- aria-hidden={true}
15
- className="btn-icon__icon"
16
- id="Icon1"
17
- />
18
- </span>
19
- </button>
20
- `;