@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.
- package/README.md +31 -22
- package/dist/Button/index.d.ts +35 -0
- package/dist/Button/index.js +37 -15
- package/dist/Button/index.js.map +1 -1
- package/dist/Button/index.scss +0 -2
- package/dist/Chip/ChipIcon.d.ts +13 -8
- package/dist/Chip/ChipIcon.js +0 -2
- package/dist/Chip/ChipIcon.js.map +1 -1
- package/dist/Chip/constants.d.ts +4 -0
- package/dist/Chip/constants.js +3 -2
- package/dist/Chip/constants.js.map +1 -0
- package/dist/Chip/index.d.ts +4 -3
- package/dist/Chip/index.js +2 -4
- package/dist/Chip/index.js.map +1 -1
- package/dist/Chip/index.scss +6 -5
- package/dist/Chip/mixins.scss +4 -4
- package/dist/ChipCarousel/index.js +0 -2
- package/dist/ChipCarousel/index.js.map +1 -1
- package/dist/Collapsible/index.scss +3 -3
- package/dist/Hyperlink/index.d.ts +24 -0
- package/dist/Hyperlink/index.js +20 -32
- package/dist/Hyperlink/index.js.map +1 -1
- package/dist/Icon/index.d.ts +4 -2
- package/dist/Icon/index.js +1 -1
- package/dist/Icon/index.js.map +1 -1
- package/dist/IconButton/index.d.ts +342 -0
- package/dist/IconButton/index.js +18 -26
- package/dist/IconButton/index.js.map +1 -1
- package/dist/Modal/ModalPopup.js +7 -1
- package/dist/Modal/ModalPopup.js.map +1 -1
- package/dist/Modal/_ModalDialog.scss +4 -0
- package/dist/Overlay/index.d.ts +128 -0
- package/dist/Overlay/index.js +8 -2
- package/dist/Overlay/index.js.map +1 -1
- package/dist/Stepper/index.scss +3 -2
- package/dist/Tabs/index.scss +9 -6
- package/dist/Tooltip/index.d.ts +7 -0
- package/dist/Tooltip/index.js.map +1 -1
- package/dist/core.css +22 -30
- package/dist/core.css.map +1 -1
- package/dist/core.min.css +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +7 -7
- package/dist/light.css +11 -11
- package/dist/light.css.map +1 -1
- package/dist/light.min.css +1 -1
- package/dist/setupTest.d.ts +2 -0
- package/dist/setupTest.js.map +1 -0
- package/dist/utils/types/bootstrap.d.ts +39 -0
- package/dist/utils/types/bootstrap.js +2 -0
- package/dist/utils/types/bootstrap.js.map +1 -0
- package/lib/build-tokens.js +18 -4
- package/package.json +6 -5
- package/src/Button/{Button.test.jsx → Button.test.tsx} +14 -2
- package/src/Button/__snapshots__/{Button.test.jsx.snap → Button.test.tsx.snap} +19 -2
- package/src/Button/index.scss +0 -2
- package/src/Button/{index.jsx → index.tsx} +58 -16
- package/src/Chip/{Chip.test.jsx → Chip.test.tsx} +5 -7
- package/src/Chip/ChipIcon.tsx +8 -8
- package/src/Chip/{constants.js → constants.ts} +1 -1
- package/src/Chip/index.scss +6 -5
- package/src/Chip/index.tsx +6 -8
- package/src/Chip/mixins.scss +4 -4
- package/src/ChipCarousel/index.tsx +0 -2
- package/src/Collapsible/index.scss +3 -3
- package/src/Hyperlink/{Hyperlink.test.jsx → Hyperlink.test.tsx} +21 -10
- package/src/Hyperlink/{index.jsx → index.tsx} +41 -37
- package/src/Icon/index.d.ts +4 -2
- package/src/Icon/index.jsx +1 -1
- package/src/IconButton/{IconButton.test.jsx → IconButton.test.tsx} +24 -3
- package/src/IconButton/__snapshots__/IconButton.test.tsx.snap +90 -0
- package/src/IconButton/{index.jsx → index.tsx} +66 -26
- package/src/Modal/ModalPopup.jsx +9 -1
- package/src/Modal/_ModalDialog.scss +4 -0
- package/src/Modal/tests/ModalPopupNoMock.test.jsx +29 -0
- package/src/Overlay/{index.jsx → index.tsx} +13 -8
- package/src/Stepper/index.scss +3 -2
- package/src/Tabs/index.scss +9 -6
- package/src/Tooltip/{index.jsx → index.tsx} +9 -3
- package/src/index.d.ts +5 -5
- package/src/index.js +7 -7
- package/src/{setupTest.js → setupTest.ts} +1 -0
- package/src/utils/types/bootstrap.test.tsx +86 -0
- package/src/utils/types/bootstrap.ts +43 -0
- package/styles/css/core/variables.css +11 -22
- package/styles/css/themes/light/variables.css +11 -11
- package/styles/scss/core/_variables.scss +4 -5
- package/styles/scss/core/core.scss +1 -1
- package/tokens/README.md +1 -2
- package/tokens/src/core/alias/size.json +3 -3
- package/tokens/src/core/components/Breadcrumb.json +0 -14
- package/tokens/src/core/components/Card.json +6 -1
- package/tokens/src/core/components/Chip.json +4 -6
- package/tokens/src/core/components/ColorPicker.json +2 -2
- package/tokens/src/core/components/DataTable.json +1 -1
- package/tokens/src/core/components/Form/size.json +3 -7
- package/tokens/src/core/components/Nav.json +0 -3
- package/tokens/src/core/components/Pagination.json +0 -4
- package/tokens/src/core/components/ProductTour.json +0 -5
- package/tokens/src/core/global/display.json +2 -1
- package/tokens/src/core/global/spacing.json +7 -5
- package/tokens/src/themes/light/alias/color.json +2 -2
- package/tokens/src/themes/light/components/Alert.json +0 -9
- package/tokens/src/themes/light/components/Annotation.json +11 -11
- package/tokens/src/themes/light/components/Avatar.json +1 -1
- package/tokens/src/themes/light/components/Breadcrumb.json +0 -1
- package/tokens/src/themes/light/components/Card.json +2 -6
- package/tokens/src/themes/light/components/DataTable.json +1 -1
- package/tokens/src/themes/light/components/Form/color.json +4 -4
- package/tokens/src/themes/light/components/Form/elevation.json +1 -1
- package/tokens/src/themes/light/components/Form/other.json +3 -3
- package/tokens/src/themes/light/components/general/input.json +1 -1
- package/tokens/src/themes/light/components/general/link.json +1 -1
- package/tokens/src/themes/light/components/general/list.json +1 -1
- package/tokens/src/themes/light/components/general/text.json +7 -1
- package/tokens/src/themes/light/global/color.json +2 -2
- package/tokens/style-dictionary.js +6 -0
- package/src/IconButton/__snapshots__/IconButton.test.jsx.snap +0 -20
- /package/src/Button/{ButtonGroup.test.jsx → ButtonGroup.test.tsx} +0 -0
- /package/src/Button/{ButtonToolbar.test.jsx → ButtonToolbar.test.tsx} +0 -0
- /package/src/Button/__snapshots__/{ButtonGroup.test.jsx.snap → ButtonGroup.test.tsx.snap} +0 -0
- /package/src/Button/__snapshots__/{ButtonToolbar.test.jsx.snap → ButtonToolbar.test.tsx.snap} +0 -0
- /package/src/Chip/__snapshots__/{Chip.test.jsx.snap → Chip.test.tsx.snap} +0 -0
- /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": "
|
|
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": ".
|
|
40
|
-
"icon": { "value": "1.
|
|
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"
|
|
5
|
-
"md": { "value": "calc(1.3333em + 1.125rem + 2px)", "source": "$picker-size-md"
|
|
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": "
|
|
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": {
|
|
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." },
|
|
@@ -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))
|
|
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,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}",
|
|
@@ -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": {
|
|
@@ -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
|
}
|
|
@@ -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.
|
|
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
|
-
`;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/Button/__snapshots__/{ButtonToolbar.test.jsx.snap → ButtonToolbar.test.tsx.snap}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|