@openedx/paragon 23.0.0-alpha.3 → 23.0.0-alpha.4
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/bin/paragon-scripts.js +10 -0
- package/dist/Annotation/index.scss +16 -0
- package/dist/Card/CardDeck.js +0 -2
- package/dist/Card/CardDeck.js.map +1 -1
- package/dist/Card/index.scss +6 -6
- package/dist/Carousel/index.scss +24 -1
- package/dist/Chip/ChipIcon.d.ts +1 -1
- package/dist/CloseButton/index.scss +8 -0
- package/dist/ColorPicker/index.scss +1 -1
- package/dist/DataTable/index.scss +12 -0
- package/dist/Dropdown/dropdown-bootstrap.scss +6 -0
- package/dist/Dropzone/index.scss +34 -0
- package/dist/Form/_FormText.scss +1 -1
- package/dist/Form/_bootstrap-custom-forms.scss +40 -0
- package/dist/Form/_index.scss +9 -0
- package/dist/Form/_mixins.scss +22 -0
- package/dist/IconButton/index.d.ts +1 -1
- package/dist/IconButton/index.scss +146 -0
- package/dist/Menu/index.scss +8 -0
- package/dist/Modal/ModalDialog.js +8 -4
- package/dist/Modal/ModalDialog.js.map +1 -1
- package/dist/Modal/_ModalDialog.scss +22 -2
- package/dist/Nav/index.scss +8 -0
- package/dist/Overlay/index.d.ts +2 -2
- package/dist/PageBanner/index.scss +2 -2
- package/dist/Pagination/pagination-bootstrap.scss +9 -0
- package/dist/Popover/index.scss +1 -1
- package/dist/ProductTour/Checkpoint.scss +1 -1
- package/dist/ProgressBar/bootstrap-progress.scss +20 -5
- package/dist/ProgressBar/index.scss +3 -3
- package/dist/Stepper/index.scss +1 -1
- package/dist/Sticky/index.scss +12 -0
- package/dist/Toast/index.scss +13 -1
- package/dist/Tooltip/index.scss +16 -0
- package/dist/core.css +911 -470
- package/dist/core.css.map +1 -1
- package/dist/core.min.css +1 -1
- package/dist/light.css +2035 -1315
- package/dist/light.css.map +1 -1
- package/dist/light.min.css +1 -1
- package/lib/build-tokens.js +67 -31
- package/package.json +7 -4
- package/src/Annotation/index.scss +16 -0
- package/src/Card/CardDeck.jsx +0 -3
- package/src/Card/README.md +0 -31
- package/src/Card/index.scss +6 -6
- package/src/Carousel/index.scss +24 -1
- package/src/CloseButton/index.scss +8 -0
- package/src/ColorPicker/index.scss +1 -1
- package/src/DataTable/index.scss +12 -0
- package/src/Dropdown/dropdown-bootstrap.scss +6 -0
- package/src/Dropzone/index.scss +34 -0
- package/src/Form/_FormText.scss +1 -1
- package/src/Form/_bootstrap-custom-forms.scss +40 -0
- package/src/Form/_index.scss +9 -0
- package/src/Form/_mixins.scss +22 -0
- package/src/IconButton/index.scss +146 -0
- package/src/Menu/index.scss +8 -0
- package/src/Modal/ModalDialog.jsx +7 -3
- package/src/Modal/_ModalDialog.scss +22 -2
- package/src/Modal/modal-dialog.mdx +95 -6
- package/src/Modal/tests/ModalDialog.test.jsx +2 -0
- package/src/Nav/index.scss +8 -0
- package/src/PageBanner/index.scss +2 -2
- package/src/Pagination/pagination-bootstrap.scss +9 -0
- package/src/Popover/index.scss +1 -1
- package/src/ProductTour/Checkpoint.scss +1 -1
- package/src/ProgressBar/bootstrap-progress.scss +20 -5
- package/src/ProgressBar/index.scss +3 -3
- package/src/Stepper/index.scss +1 -1
- package/src/Sticky/index.scss +12 -0
- package/src/Toast/index.scss +13 -1
- package/src/Tooltip/index.scss +16 -0
- package/styles/css/core/abstraction-variables.css +44 -0
- package/styles/css/core/custom-media-breakpoints.css +3 -4
- package/styles/css/core/index.css +2 -1
- package/styles/css/core/variables.css +494 -430
- package/styles/css/themes/light/abstraction-variables.css +304 -0
- package/styles/css/themes/light/index.css +1 -0
- package/styles/css/themes/light/utility-classes.css +2 -3
- package/styles/css/themes/light/variables.css +1753 -1334
- package/styles/scss/core/_typography.scss +16 -4
- package/styles/scss/core/_utilities.scss +7 -3
- package/styles/scss/core/_variables.scss +43 -30
- package/styles/scss/core/core.scss +1 -0
- package/tokens/src/core/alias/size.json +6 -5
- package/tokens/src/core/components/ActionRow.json +3 -2
- package/tokens/src/core/components/Alert.json +12 -10
- package/tokens/src/core/components/Annotation.json +9 -7
- package/tokens/src/core/components/Avatar.json +9 -9
- package/tokens/src/core/components/AvatarButton.json +4 -3
- package/tokens/src/core/components/Badge.json +12 -9
- package/tokens/src/core/components/Breadcrumb.json +7 -5
- package/tokens/src/core/components/Bubble.json +4 -3
- package/tokens/src/core/components/Button/core.json +35 -59
- package/tokens/src/core/components/Card.json +33 -44
- package/tokens/src/core/components/Carousel.json +39 -13
- package/tokens/src/core/components/Chip.json +13 -21
- package/tokens/src/core/components/ChipCarousel.json +4 -5
- package/tokens/src/core/components/CloseButton.json +2 -6
- package/tokens/src/core/components/Code.json +9 -8
- package/tokens/src/core/components/Collapsible.json +10 -13
- package/tokens/src/core/components/ColorPicker.json +3 -2
- package/tokens/src/core/components/Container.json +6 -5
- package/tokens/src/core/components/DataTable.json +17 -9
- package/tokens/src/core/components/Dropdown.json +24 -29
- package/tokens/src/core/components/Dropzone.json +5 -7
- package/tokens/src/core/components/Form/other.json +5 -4
- package/tokens/src/core/components/Form/size.json +72 -119
- package/tokens/src/core/components/Form/spacing.json +39 -83
- package/tokens/src/core/components/Form/transition.json +43 -7
- package/tokens/src/core/components/Form/typography.json +24 -88
- package/tokens/src/core/components/Icon.json +6 -5
- package/tokens/src/core/components/IconButton.json +4 -7
- package/tokens/src/core/components/Image.json +7 -6
- package/tokens/src/core/components/Menu.json +14 -12
- package/tokens/src/core/components/Modal.json +26 -21
- package/tokens/src/core/components/Nav.json +14 -16
- package/tokens/src/core/components/Navbar.json +15 -30
- package/tokens/src/core/components/Pagination.json +23 -24
- package/tokens/src/core/components/Popover.json +18 -14
- package/tokens/src/core/components/ProductTour.json +8 -14
- package/tokens/src/core/components/ProgressBar.json +29 -14
- package/tokens/src/core/components/SearchField.json +7 -9
- package/tokens/src/core/components/SelectableBox.json +4 -3
- package/tokens/src/core/components/Sheet.json +3 -2
- package/tokens/src/core/components/Spinner.json +9 -7
- package/tokens/src/core/components/Stack.json +2 -1
- package/tokens/src/core/components/Stepper.json +12 -14
- package/tokens/src/core/components/Sticky.json +2 -1
- package/tokens/src/core/components/Tab.json +8 -7
- package/tokens/src/core/components/Tabs.json +5 -5
- package/tokens/src/core/components/Toast.json +11 -8
- package/tokens/src/core/components/Tooltip.json +13 -11
- package/tokens/src/core/components/general/caret.json +5 -3
- package/tokens/src/core/components/general/headings.json +5 -4
- package/tokens/src/core/components/general/hr.json +3 -2
- package/tokens/src/core/components/general/input.json +19 -19
- package/tokens/src/core/components/general/link.json +13 -12
- package/tokens/src/core/components/general/list.json +9 -6
- package/tokens/src/core/components/general/text.json +6 -12
- package/tokens/src/core/global/breakpoints.json +25 -6
- package/tokens/src/core/global/elevation.json +55 -13
- package/tokens/src/core/global/other.json +5 -1
- package/tokens/src/core/global/spacing.json +70 -17
- package/tokens/src/core/global/transition.json +41 -4
- package/tokens/src/core/global/typography.json +248 -53
- package/tokens/src/core/utilities/color.json +35 -4
- package/tokens/src/themes/light/alias/color.json +276 -75
- package/tokens/src/themes/light/components/Alert.json +15 -26
- package/tokens/src/themes/light/components/Annotation.json +27 -13
- package/tokens/src/themes/light/components/Avatar.json +2 -1
- package/tokens/src/themes/light/components/Badge.json +57 -122
- package/tokens/src/themes/light/components/Breadcrumb.json +6 -5
- package/tokens/src/themes/light/components/Bubble.json +9 -8
- package/tokens/src/themes/light/components/Button/brand.json +171 -119
- package/tokens/src/themes/light/components/Button/core.json +8 -9
- package/tokens/src/themes/light/components/Button/danger.json +171 -112
- package/tokens/src/themes/light/components/Button/dark.json +188 -106
- package/tokens/src/themes/light/components/Button/info.json +186 -112
- package/tokens/src/themes/light/components/Button/light.json +186 -110
- package/tokens/src/themes/light/components/Button/primary.json +178 -116
- package/tokens/src/themes/light/components/Button/secondary.json +166 -132
- package/tokens/src/themes/light/components/Button/success.json +176 -117
- package/tokens/src/themes/light/components/Button/tertiary.json +34 -60
- package/tokens/src/themes/light/components/Button/warning.json +164 -128
- package/tokens/src/themes/light/components/Card.json +10 -21
- package/tokens/src/themes/light/components/Carousel.json +12 -11
- package/tokens/src/themes/light/components/Chip.json +14 -26
- package/tokens/src/themes/light/components/CloseButton.json +12 -2
- package/tokens/src/themes/light/components/Code.json +7 -9
- package/tokens/src/themes/light/components/DataTable.json +7 -11
- package/tokens/src/themes/light/components/Dropdown.json +17 -20
- package/tokens/src/themes/light/components/Dropzone.json +49 -11
- package/tokens/src/themes/light/components/Form/color.json +101 -155
- package/tokens/src/themes/light/components/Form/elevation.json +38 -42
- package/tokens/src/themes/light/components/Form/other.json +44 -41
- package/tokens/src/themes/light/components/IconButton.json +408 -256
- package/tokens/src/themes/light/components/Image.json +7 -4
- package/tokens/src/themes/light/components/Menu.json +12 -10
- package/tokens/src/themes/light/components/Modal.json +22 -12
- package/tokens/src/themes/light/components/Nav.json +82 -94
- package/tokens/src/themes/light/components/Navbar.json +32 -76
- package/tokens/src/themes/light/components/OverflowScroll.json +3 -1
- package/tokens/src/themes/light/components/PageBanner.json +11 -10
- package/tokens/src/themes/light/components/Pagination.json +19 -23
- package/tokens/src/themes/light/components/Popover.json +22 -27
- package/tokens/src/themes/light/components/ProductTour.json +9 -20
- package/tokens/src/themes/light/components/ProgressBar.json +12 -10
- package/tokens/src/themes/light/components/Scrollable.json +3 -3
- package/tokens/src/themes/light/components/SearchField.json +9 -9
- package/tokens/src/themes/light/components/Sheet.json +6 -7
- package/tokens/src/themes/light/components/Stepper.json +12 -17
- package/tokens/src/themes/light/components/Sticky.json +31 -6
- package/tokens/src/themes/light/components/Tab.json +47 -24
- package/tokens/src/themes/light/components/Toast.json +26 -14
- package/tokens/src/themes/light/components/Tooltip.json +25 -10
- package/tokens/src/themes/light/components/general/body.json +3 -2
- package/tokens/src/themes/light/components/general/headings.json +2 -1
- package/tokens/src/themes/light/components/general/hr.json +3 -6
- package/tokens/src/themes/light/components/general/input.json +11 -4
- package/tokens/src/themes/light/components/general/link.json +34 -43
- package/tokens/src/themes/light/components/general/list.json +15 -19
- package/tokens/src/themes/light/components/general/text.json +5 -6
- package/tokens/src/themes/light/global/color.json +1592 -867
- package/tokens/src/themes/light/global/elevation.json +481 -93
- package/tokens/style-dictionary.js +342 -144
- package/tokens/utils.js +176 -6
- package/tokens/src/core/global/display.json +0 -22
|
@@ -1,95 +1,84 @@
|
|
|
1
1
|
{
|
|
2
2
|
"spacing": {
|
|
3
|
+
"$type": "dimension",
|
|
3
4
|
"card": {
|
|
4
5
|
"spacer": {
|
|
5
|
-
"x": { "
|
|
6
|
-
"y": { "
|
|
6
|
+
"x": { "source": "$card-spacer-x", "$value": "1.25rem" },
|
|
7
|
+
"y": { "source": "$card-spacer-y", "$value": ".75rem" }
|
|
7
8
|
},
|
|
8
9
|
"margin": {
|
|
9
|
-
"group": { "
|
|
10
|
-
"deck": { "
|
|
11
|
-
"deck-bottom": { "
|
|
12
|
-
"grid": { "
|
|
13
|
-
"grid-bottom": { "
|
|
10
|
+
"group": { "source": "$card-group-margin", "$value": "12px" },
|
|
11
|
+
"deck": { "source": "$card-deck-margin", "$value": "{spacing.card.margin.group}" },
|
|
12
|
+
"deck-bottom": { "source": "$card-deck-margin-bottom", "$value": "{spacing.spacer.3}" },
|
|
13
|
+
"grid": { "source": "$card-grid-margin", "$value": "{spacing.card.margin.group}" },
|
|
14
|
+
"grid-bottom": { "source": "$card-grid-margin-bottom", "$value": "{spacing.spacer.3}" }
|
|
14
15
|
},
|
|
15
16
|
"columns": {
|
|
16
|
-
"margin": { "value": "{spacing.card.spacer.y}"
|
|
17
|
-
"count": { "
|
|
18
|
-
"gap": { "
|
|
17
|
+
"margin": { "source": "$card-columns-margin", "$value": "{spacing.card.spacer.y}" },
|
|
18
|
+
"count": { "source": "$card-columns-count", "$value": "3", "$type": "number" },
|
|
19
|
+
"gap": { "source": "$card-columns-gap", "$value": "1.25rem" }
|
|
19
20
|
},
|
|
20
21
|
"footer": {
|
|
21
|
-
"action-gap": { "
|
|
22
|
+
"action-gap": { "source": "$card-footer-actions-gap", "$value": ".5rem" }
|
|
22
23
|
},
|
|
23
24
|
"loading-skeleton": {
|
|
24
|
-
"spacer": { "
|
|
25
|
+
"spacer": { "source": "$loading-skeleton-spacer", "$value": ".313rem" }
|
|
25
26
|
},
|
|
26
27
|
"logo": {
|
|
27
28
|
"left-offset": {
|
|
28
|
-
"base": { "
|
|
29
|
-
"horizontal": { "
|
|
29
|
+
"base": { "source": "$card-logo-left-offset", "$value": "1.5rem" },
|
|
30
|
+
"horizontal": { "source": "$card-logo-left-offset-horizontal", "$value": ".4375rem" }
|
|
30
31
|
},
|
|
31
32
|
"bottom-offset": {
|
|
32
|
-
"base": { "
|
|
33
|
-
"horizontal": { "
|
|
33
|
+
"base": { "source": "$card-logo-bottom-offset", "$value": "1rem" },
|
|
34
|
+
"horizontal": { "source": "$card-logo-bottom-offset-horizontal", "$value": ".4375rem" }
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
37
|
"focus": {
|
|
37
|
-
"border-offset": { "
|
|
38
|
+
"border-offset": { "source": "$card-focus-border-offset", "$value": "5px" }
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
},
|
|
41
42
|
"size": {
|
|
43
|
+
"$type": "dimension",
|
|
42
44
|
"card": {
|
|
43
45
|
"border": {
|
|
44
|
-
"width": { "
|
|
46
|
+
"width": { "source": "$card-border-width", "$value": "{size.border.width}" },
|
|
45
47
|
"radius": {
|
|
46
|
-
"base": { "
|
|
47
|
-
"logo": { "
|
|
48
|
-
"inner": {
|
|
49
|
-
"value": "calc({size.card.border.radius.base} - {size.card.border.width})",
|
|
50
|
-
"type": "dimension",
|
|
51
|
-
"source": "$card-inner-border-radius"
|
|
52
|
-
}
|
|
48
|
+
"base": { "source": "$card-border-radius", "$value": "{size.border.radius.base}" },
|
|
49
|
+
"logo": { "source": "$card-logo-border-radius", "$value": ".25rem" },
|
|
50
|
+
"inner": { "source": "$card-inner-border-radius", "$value": "calc({size.card.border.radius.base} - {size.card.border.width})" }
|
|
53
51
|
}
|
|
54
52
|
},
|
|
55
53
|
"focus": {
|
|
56
54
|
"border": {
|
|
57
|
-
"width": { "
|
|
58
|
-
"radius": {
|
|
59
|
-
"value": "calc({spacing.card.focus.border-offset} + {size.card.border.radius.base})",
|
|
60
|
-
"type": "dimension",
|
|
61
|
-
"source": "$card-focus-border-radius"
|
|
62
|
-
}
|
|
55
|
+
"width": { "source": "$card-focus-border-width", "$value": "2px" },
|
|
56
|
+
"radius": { "source": "$card-focus-border-radius", "$value": "calc({spacing.card.focus.border-offset} + {size.card.border.radius.base})" }
|
|
63
57
|
}
|
|
64
58
|
},
|
|
65
59
|
"image": {
|
|
66
60
|
"horizontal": {
|
|
67
61
|
"width": {
|
|
68
|
-
"max": { "
|
|
69
|
-
"min": {
|
|
70
|
-
"value": "{size.card.image.horizontal.width.max}",
|
|
71
|
-
"type": "dimension",
|
|
72
|
-
"source": "$card-image-horizontal-min-width"
|
|
73
|
-
}
|
|
62
|
+
"max": { "source": "$card-image-horizontal-max-width", "$value": "240px" },
|
|
63
|
+
"min": { "source": "$card-image-horizontal-min-width", "$value": "{size.card.image.horizontal.width.max}" }
|
|
74
64
|
}
|
|
75
65
|
},
|
|
76
66
|
"vertical": {
|
|
77
|
-
"max-height": { "
|
|
67
|
+
"max-height": { "source": "$card-image-vertical-max-height", "$value": "140px" }
|
|
78
68
|
},
|
|
79
|
-
"border-radius": { "
|
|
69
|
+
"border-radius": { "source": "$card-image-border-radius", "$value": "{size.card.border.radius.base}" }
|
|
80
70
|
},
|
|
81
71
|
"logo": {
|
|
82
|
-
"width": { "
|
|
83
|
-
"height": { "
|
|
72
|
+
"width": { "source": "$card-logo-width", "$value": "7.25rem" },
|
|
73
|
+
"height": { "source": "$card-logo-height", "$value": "4.125rem" }
|
|
84
74
|
}
|
|
85
75
|
}
|
|
86
76
|
},
|
|
87
77
|
"typography": {
|
|
78
|
+
"$type": "dimension",
|
|
88
79
|
"footer": {
|
|
89
80
|
"text": {
|
|
90
|
-
"font-size": {
|
|
91
|
-
"value": "{typography.font.size.small.x}", "type": "dimension", "source": "$card-footer-text-font-size"
|
|
92
|
-
}
|
|
81
|
+
"font-size": { "source": "$card-footer-text-font-size", "$value": "{typography.font.size.xs}" }
|
|
93
82
|
}
|
|
94
83
|
}
|
|
95
84
|
}
|
|
@@ -3,35 +3,61 @@
|
|
|
3
3
|
"carousel": {
|
|
4
4
|
"control": {
|
|
5
5
|
"width": {
|
|
6
|
-
"base": { "
|
|
7
|
-
"icon": { "
|
|
6
|
+
"base": { "source": "$carousel-control-width", "$value": "15%", "$type": "percentage" },
|
|
7
|
+
"icon": { "source": "$carousel-control-icon-width", "$value": "20px", "$type": "dimension" }
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
"indicator": {
|
|
11
|
-
"
|
|
11
|
+
"$type": "dimension",
|
|
12
|
+
"width": { "source": "$carousel-indicator-width", "$value": "30px" },
|
|
12
13
|
"height": {
|
|
13
|
-
"base": { "
|
|
14
|
-
"area-hit": { "
|
|
14
|
+
"base": { "source": "$carousel-indicator-height", "$value": "3px" },
|
|
15
|
+
"area-hit": { "source": "$carousel-indicator-hit-area-height", "$value": "10px" }
|
|
15
16
|
}
|
|
16
17
|
},
|
|
17
|
-
"caption-width": { "
|
|
18
|
+
"caption-width": { "source": "$carousel-caption-width", "$value": "70%", "$type": "percentage" }
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
21
|
"spacing": {
|
|
22
|
+
"$type": "dimension",
|
|
21
23
|
"carousel": {
|
|
22
|
-
"indicator-spacer": { "
|
|
24
|
+
"indicator-spacer": { "source": "$carousel-indicator-spacer", "$value": "3px" }
|
|
23
25
|
}
|
|
24
26
|
},
|
|
25
27
|
"transition": {
|
|
28
|
+
"$type": "transition",
|
|
26
29
|
"carousel": {
|
|
27
30
|
"base": {
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
+
"source": "$carousel-transition",
|
|
32
|
+
"$value": {
|
|
33
|
+
"property": "transform",
|
|
34
|
+
"duration": "{transition.carousel.duration}",
|
|
35
|
+
"timingFunction": "ease-in-out",
|
|
36
|
+
"delay": "0ms",
|
|
37
|
+
"behavior": "normal"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"duration": { "source": "$carousel-transition-duration", "$value": ".6s", "$type": "duration" },
|
|
41
|
+
"indicator": {
|
|
42
|
+
"source": "$carousel-indicator-transition",
|
|
43
|
+
"$value": {
|
|
44
|
+
"property": "opacity",
|
|
45
|
+
"duration": "{transition.carousel.duration}",
|
|
46
|
+
"timingFunction": "ease",
|
|
47
|
+
"delay": "0ms",
|
|
48
|
+
"behavior": "normal"
|
|
49
|
+
}
|
|
31
50
|
},
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
51
|
+
"control": {
|
|
52
|
+
"source": "$carousel-control-transition",
|
|
53
|
+
"$value": {
|
|
54
|
+
"property": "opacity",
|
|
55
|
+
"duration": ".15s",
|
|
56
|
+
"timingFunction": "ease",
|
|
57
|
+
"delay": "0ms",
|
|
58
|
+
"behavior": "normal"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
35
61
|
}
|
|
36
62
|
}
|
|
37
63
|
}
|
|
@@ -1,41 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"spacing": {
|
|
3
|
+
"$type": "dimension",
|
|
3
4
|
"chip": {
|
|
4
5
|
"margin": {
|
|
5
|
-
"base": {
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
"icon": { "value": ".25rem", "type": "dimension", "source": "$chip-icon-margin" }
|
|
6
|
+
"base": { "source": "$chip-margin", "$value": ".125rem" },
|
|
7
|
+
"icon": { "source": "$chip-icon-margin", "$value": ".25rem" }
|
|
9
8
|
},
|
|
10
9
|
"padding": {
|
|
11
|
-
"y": { "
|
|
12
|
-
"x": { "
|
|
10
|
+
"y": { "source": "$chip-padding-y", "$value": "1px" },
|
|
11
|
+
"x": { "source": "$chip-padding-x", "$value": ".5rem" }
|
|
13
12
|
},
|
|
14
13
|
"outline": {
|
|
15
14
|
"selected-distance": {
|
|
16
|
-
"light": {
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
"dark": {
|
|
20
|
-
"value": "3px", "type": "dimension", "source": "$chip-dark-selected-outline-distance"
|
|
21
|
-
}
|
|
15
|
+
"light": { "source": "$chip-light-selected-outline-distance", "$value": "3px" },
|
|
16
|
+
"dark": { "source": "$chip-dark-selected-outline-distance", "$value": "3px" }
|
|
22
17
|
},
|
|
23
18
|
"focus-distance": {
|
|
24
|
-
"light": {
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
"dark": {
|
|
28
|
-
"value": ".313rem", "type": "dimension", "source": "$chip-dark-focus-outline-distance"
|
|
29
|
-
}
|
|
19
|
+
"light": { "source": "$chip-light-focus-outline-distance", "$value": ".313rem" },
|
|
20
|
+
"dark": { "source": "$chip-dark-focus-outline-distance", "$value": ".313rem" }
|
|
30
21
|
},
|
|
31
|
-
"width": { "
|
|
22
|
+
"width": { "source": "$chip-outline-width", "$value": "3px" }
|
|
32
23
|
}
|
|
33
24
|
}
|
|
34
25
|
},
|
|
35
26
|
"size": {
|
|
27
|
+
"$type": "dimension",
|
|
36
28
|
"chip": {
|
|
37
|
-
"border-radius": { "
|
|
38
|
-
"icon": { "
|
|
29
|
+
"border-radius": { "source": "$chip-border-radius", "$value": ".375rem" },
|
|
30
|
+
"icon": { "source": "$chip-icon-size", "$value": "1.5rem" }
|
|
39
31
|
}
|
|
40
32
|
}
|
|
41
33
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"spacing": {
|
|
3
|
+
"$type": "dimension",
|
|
3
4
|
"chip-carousel": {
|
|
4
|
-
"controls-top-offset": {
|
|
5
|
-
"value": ".375rem", "type": "dimension", "source": "$chip-carousel-controls-top-offset"
|
|
6
|
-
},
|
|
5
|
+
"controls-top-offset": { "source": "$chip-carousel-controls-top-offset", "$value": ".375rem" },
|
|
7
6
|
"container": {
|
|
8
7
|
"padding": {
|
|
9
|
-
"x": { "
|
|
10
|
-
"y": { "
|
|
8
|
+
"x": { "source": "$chip-carousel-container-padding-x", "$value": ".625rem" },
|
|
9
|
+
"y": { "source": "$chip-carousel-container-padding-y", "$value": ".313rem" }
|
|
11
10
|
}
|
|
12
11
|
}
|
|
13
12
|
}
|
|
@@ -2,12 +2,8 @@
|
|
|
2
2
|
"typography": {
|
|
3
3
|
"close-button": {
|
|
4
4
|
"font": {
|
|
5
|
-
"size": {
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
"weight": {
|
|
9
|
-
"value": "{typography.font.weight.bold}", "type": "fontWeight", "source": "$close-font-weight"
|
|
10
|
-
}
|
|
5
|
+
"size": { "source": "$close-font-size", "$value": "calc({typography.font.size.base} * 1.5)", "$type": "dimension" },
|
|
6
|
+
"weight": { "source": "$close-font-weight", "$value": "{typography.font.weight.bold}", "$type": "fontWeight" }
|
|
11
7
|
}
|
|
12
8
|
}
|
|
13
9
|
}
|
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"typography": {
|
|
3
3
|
"code": {
|
|
4
|
-
"font-size": { "
|
|
4
|
+
"font-size": { "source": "$code-font-size", "$value": "{typography.font.size.sm}", "$type": "percentage" },
|
|
5
5
|
"kbd": {
|
|
6
|
-
"font-size": { "value": "{typography.code.font-size}", "type": "dimension"
|
|
6
|
+
"font-size": { "source": "$kbd-font-size", "$value": "{typography.code.font-size}", "$type": "dimension" },
|
|
7
7
|
"nested": {
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
}
|
|
8
|
+
"$type": "fontWeight",
|
|
9
|
+
"font-weight": { "source": "$nested-kbd-font-weight", "$value": "{typography.font.weight.bold}" }
|
|
11
10
|
}
|
|
12
11
|
}
|
|
13
12
|
}
|
|
14
13
|
},
|
|
15
14
|
"spacing": {
|
|
15
|
+
"$type": "dimension",
|
|
16
16
|
"code": {
|
|
17
17
|
"kbd": {
|
|
18
18
|
"padding": {
|
|
19
|
-
"y": { "
|
|
20
|
-
"x": { "
|
|
19
|
+
"y": { "source": "$kbd-padding-y", "$value": ".2rem" },
|
|
20
|
+
"x": { "source": "$kbd-padding-x", "$value": ".4rem" }
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"size": {
|
|
26
|
+
"$type": "dimension",
|
|
26
27
|
"code": {
|
|
27
28
|
"pre": {
|
|
28
29
|
"scrollable": {
|
|
29
|
-
"max-height": { "
|
|
30
|
+
"max-height": { "source": "$pre-scrollable-max-height", "$value": "340px" }
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
}
|
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"spacing": {
|
|
3
|
+
"$type": "dimension",
|
|
3
4
|
"collapsible": {
|
|
4
5
|
"card": {
|
|
5
6
|
"spacer": {
|
|
6
7
|
"y": {
|
|
7
|
-
"base": { "
|
|
8
|
-
"lg": {
|
|
9
|
-
"value": "{spacing.card.spacer.y}", "type": "dimension", "source": "$collapsible-card-spacer-y-lg"
|
|
10
|
-
}
|
|
8
|
+
"base": { "source": "$collapsible-card-spacer-y", "$value": ".5rem" },
|
|
9
|
+
"lg": { "source": "$collapsible-card-spacer-y-lg", "$value": "{spacing.card.spacer.y}" }
|
|
11
10
|
},
|
|
12
11
|
"x": {
|
|
13
|
-
"base": { "
|
|
14
|
-
"lg": {
|
|
15
|
-
"value": "{spacing.card.spacer.x}", "type": "dimension", "source": "$collapsible-card-spacer-x-lg"
|
|
16
|
-
}
|
|
12
|
+
"base": { "source": "$collapsible-card-spacer-x", "$value": ".5rem" },
|
|
13
|
+
"lg": { "source": "$collapsible-card-spacer-x-lg", "$value": "{spacing.card.spacer.x}" }
|
|
17
14
|
},
|
|
18
|
-
"left-body": { "
|
|
19
|
-
"icon": { "
|
|
15
|
+
"left-body": { "source": "$collapsible-card-body-spacer-left", "$value": ".75rem" },
|
|
16
|
+
"icon": { "source": "$collapsible-card-spacer-icon", "$value": "2.5rem" },
|
|
20
17
|
"basic": {
|
|
21
|
-
"y": { "
|
|
22
|
-
"x": { "
|
|
23
|
-
"icon": { "
|
|
18
|
+
"y": { "source": "$collapsible-basic-spacer-y", "$value": ".5rem" },
|
|
19
|
+
"x": { "source": "$collapsible-basic-spacer-x", "$value": ".5rem" },
|
|
20
|
+
"icon": { "source": "$collapsible-basic-spacer-icon", "$value": ".625rem" }
|
|
24
21
|
}
|
|
25
22
|
}
|
|
26
23
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"size": {
|
|
3
|
+
"$type": "dimension",
|
|
3
4
|
"color-picker": {
|
|
4
|
-
"sm": { "
|
|
5
|
-
"md": { "value": "calc(1.3333em + 1.125rem + 2px)"
|
|
5
|
+
"sm": { "source": "$picker-size-sm", "$value": "2rem" },
|
|
6
|
+
"md": { "source": "$picker-size-md", "$value": "calc(1.3333em + 1.125rem + 2px)" }
|
|
6
7
|
}
|
|
7
8
|
}
|
|
8
9
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"size": {
|
|
3
|
+
"$type": "dimension",
|
|
3
4
|
"container": {
|
|
4
5
|
"max-width": {
|
|
5
|
-
"xs": { "
|
|
6
|
-
"sm": { "
|
|
7
|
-
"md": { "
|
|
8
|
-
"lg": { "
|
|
9
|
-
"xl": { "
|
|
6
|
+
"xs": { "source": "$max-width-xs", "$value": "464px" },
|
|
7
|
+
"sm": { "source": "$max-width-sm", "$value": "708px" },
|
|
8
|
+
"md": { "source": "$max-width-md", "$value": "952px" },
|
|
9
|
+
"lg": { "source": "$max-width-lg", "$value": "1192px" },
|
|
10
|
+
"xl": { "source": "$max-width-xl", "$value": "1440px" }
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
13
|
}
|
|
@@ -1,27 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"size": {
|
|
3
|
+
"$type": "dimension",
|
|
3
4
|
"data-table": {
|
|
4
|
-
"border": { "
|
|
5
|
+
"border": { "source": "$data-table-border", "$value": "2px" },
|
|
5
6
|
"dropdown": {
|
|
6
7
|
"pagination": {
|
|
7
|
-
"max-height": { "
|
|
8
|
-
"min-width": { "
|
|
8
|
+
"max-height": { "source": "$data-table-pagination-dropdown-max-height", "$value": "60vh" },
|
|
9
|
+
"min-width": { "source": "$data-table-pagination-dropdown-min-width", "$value": "6rem" }
|
|
9
10
|
}
|
|
10
11
|
},
|
|
11
12
|
"layout": {
|
|
12
|
-
"sidebar-width": { "
|
|
13
|
+
"sidebar-width": { "source": "$data-table-layout-sidebar-width", "$value": "12rem" }
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
},
|
|
16
17
|
"spacing": {
|
|
17
18
|
"data-table": {
|
|
18
19
|
"padding": {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
20
|
+
"$type": "dimension",
|
|
21
|
+
"x": { "source": "$data-table-padding-x", "$value": ".75rem" },
|
|
22
|
+
"y": { "source": "$data-table-padding-y", "$value": ".75rem" },
|
|
23
|
+
"small": { "source": "$data-table-padding-small", "$value": ".5rem" },
|
|
24
|
+
"cell": {
|
|
25
|
+
"source": "$data-table-cell-padding",
|
|
26
|
+
"$value": {
|
|
27
|
+
"x": ".5rem",
|
|
28
|
+
"y": ".75rem"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
23
31
|
},
|
|
24
|
-
"footer-position": { "
|
|
32
|
+
"footer-position": { "source": "$data-table-footer-position", "$value": "center", "$type": "position" }
|
|
25
33
|
}
|
|
26
34
|
}
|
|
27
35
|
}
|
|
@@ -1,67 +1,62 @@
|
|
|
1
1
|
{
|
|
2
2
|
"typography": {
|
|
3
3
|
"dropdown": {
|
|
4
|
-
"font-size": {
|
|
5
|
-
"value": "{typography.font.size.base}", "type": "dimension", "source": "$dropdown-font-size"
|
|
6
|
-
},
|
|
4
|
+
"font-size": { "source": "$dropdown-font-size", "$value": "{typography.font.size.base}", "$type": "dimension" },
|
|
7
5
|
"item": {
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
}
|
|
6
|
+
"$type": "textDecoration",
|
|
7
|
+
"text-decoration": { "$value": "none" }
|
|
11
8
|
}
|
|
12
9
|
}
|
|
13
10
|
},
|
|
14
11
|
"size": {
|
|
12
|
+
"$type": "dimension",
|
|
15
13
|
"dropdown": {
|
|
16
|
-
"min-width": { "
|
|
14
|
+
"min-width": { "source": "$dropdown-min-width", "$value": "18rem" },
|
|
17
15
|
"border": {
|
|
18
|
-
"width": { "
|
|
16
|
+
"width": { "source": "$dropdown-border-width", "$value": "{size.border.width}" },
|
|
19
17
|
"radius": {
|
|
20
|
-
"base": {
|
|
21
|
-
"value": "{size.border.radius.base}", "type": "dimension", "source": "$dropdown-border-radius"
|
|
22
|
-
},
|
|
18
|
+
"base": { "source": "$dropdown-border-radius", "$value": "{size.border.radius.base}" },
|
|
23
19
|
"inner": {
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"source": "$dropdown-inner-border-radius"
|
|
20
|
+
"source": "$dropdown-inner-border-radius",
|
|
21
|
+
"$value": "calc({size.dropdown.border.radius.base} - {size.dropdown.border.width})"
|
|
27
22
|
}
|
|
28
23
|
}
|
|
29
24
|
}
|
|
30
25
|
}
|
|
31
26
|
},
|
|
32
27
|
"spacing": {
|
|
28
|
+
"$type": "dimension",
|
|
33
29
|
"dropdown": {
|
|
34
|
-
"spacer": { "
|
|
30
|
+
"spacer": { "source": "$dropdown-spacer", "$value": ".125rem" },
|
|
35
31
|
"padding": {
|
|
36
32
|
"x": {
|
|
37
|
-
"base": { "
|
|
38
|
-
"item": { "
|
|
33
|
+
"base": { "source": "$dropdown-padding-x", "$value": "0" },
|
|
34
|
+
"item": { "source": "$dropdown-item-padding-x", "$value": "1rem" }
|
|
39
35
|
},
|
|
40
36
|
"y": {
|
|
41
|
-
"base": { "
|
|
42
|
-
"item": { "
|
|
37
|
+
"base": { "source": "$dropdown-padding-y", "$value": ".5rem" },
|
|
38
|
+
"item": { "source": "$dropdown-item-padding-y", "$value": ".25rem" }
|
|
43
39
|
},
|
|
44
40
|
"header": {
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
41
|
+
"source": "$dropdown-header-padding",
|
|
42
|
+
"$value": {
|
|
43
|
+
"x": "{spacing.dropdown.padding.x.item}",
|
|
44
|
+
"y": ".5rem"
|
|
45
|
+
}
|
|
48
46
|
}
|
|
49
47
|
},
|
|
50
48
|
"divider": {
|
|
51
|
-
"margin-y": {
|
|
52
|
-
"value": "calc({spacing.spacer.base} / 2)",
|
|
53
|
-
"type": "dimension",
|
|
54
|
-
"source": "$dropdown-divider-margin-y"
|
|
55
|
-
}
|
|
49
|
+
"margin-y": { "source": "$dropdown-divider-margin-y", "$value": "calc({spacing.spacer.base} / 2)" }
|
|
56
50
|
},
|
|
57
51
|
"close-container": {
|
|
58
|
-
"top": { "
|
|
52
|
+
"top": { "source": "$modal-close-container-top", "$value": ".625rem" }
|
|
59
53
|
}
|
|
60
54
|
}
|
|
61
55
|
},
|
|
62
56
|
"elevation": {
|
|
57
|
+
"$type": "number",
|
|
63
58
|
"dropdown": {
|
|
64
|
-
"zindex": { "
|
|
59
|
+
"zindex": { "source": "$zindex-dropdown", "$value": "1000" }
|
|
65
60
|
}
|
|
66
61
|
}
|
|
67
62
|
}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"typography": {
|
|
3
|
+
"$type": "dimension",
|
|
3
4
|
"dropzone": {
|
|
4
5
|
"restriction-msg": {
|
|
5
|
-
"font-size": {
|
|
6
|
-
"value": "{typography.font.size.small.x}",
|
|
7
|
-
"type": "dimension",
|
|
8
|
-
"source": "$dropzone-restriction-msg-font-size"
|
|
9
|
-
}
|
|
6
|
+
"font-size": { "source": "$dropzone-restriction-msg-font-size", "$value": "{typography.font.size.xs}" }
|
|
10
7
|
}
|
|
11
8
|
}
|
|
12
9
|
},
|
|
13
10
|
"spacing": {
|
|
11
|
+
"$type": "dimension",
|
|
14
12
|
"dropzone": {
|
|
15
|
-
"padding": { "
|
|
13
|
+
"padding": { "source": "$dropzone-padding", "$value": "1.5rem" },
|
|
16
14
|
"border": {
|
|
17
|
-
"base": { "
|
|
15
|
+
"base": { "source": "$dropzone-border-default", "$value": "1px" }
|
|
18
16
|
}
|
|
19
17
|
}
|
|
20
18
|
}
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
"other": {
|
|
3
3
|
"form": {
|
|
4
4
|
"control": {
|
|
5
|
-
"cursor": { "
|
|
6
|
-
"range-track-cursor": { "
|
|
5
|
+
"cursor": { "source": "$custom-control-cursor", "$value": "auto", "$type": "cursorStyle" },
|
|
6
|
+
"range-track-cursor": { "source": "$custom-range-track-cursor", "$value": "pointer", "$type": "cursorStyle" },
|
|
7
7
|
"custom-file": {
|
|
8
|
-
"
|
|
9
|
-
"
|
|
8
|
+
"$type": "text",
|
|
9
|
+
"lang": { "$value": "en" },
|
|
10
|
+
"content": { "$value": "Browse" }
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
13
|
}
|