@openedx/paragon 23.0.0-alpha.2 → 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/Button/index.d.ts +35 -0
- package/dist/Button/index.js +37 -15
- package/dist/Button/index.js.map +1 -1
- 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 +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/ChipCarousel/index.js +0 -2
- package/dist/ChipCarousel/index.js.map +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/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/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/ModalPopup.js +7 -1
- package/dist/Modal/ModalPopup.js.map +1 -1
- package/dist/Modal/_ModalDialog.scss +26 -2
- package/dist/Nav/index.scss +8 -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/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.d.ts +7 -0
- package/dist/Tooltip/index.js.map +1 -1
- package/dist/Tooltip/index.scss +16 -0
- package/dist/core.css +914 -470
- 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 +2035 -1315
- 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 +67 -31
- package/package.json +11 -8
- package/src/Annotation/index.scss +16 -0
- 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.jsx → index.tsx} +58 -16
- 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/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.tsx +6 -8
- package/src/ChipCarousel/index.tsx +0 -2
- 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/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.scss +146 -0
- package/src/IconButton/{index.jsx → index.tsx} +66 -26
- package/src/Menu/index.scss +8 -0
- package/src/Modal/ModalDialog.jsx +7 -3
- package/src/Modal/ModalPopup.jsx +9 -1
- package/src/Modal/_ModalDialog.scss +26 -2
- package/src/Modal/modal-dialog.mdx +95 -6
- package/src/Modal/tests/ModalDialog.test.jsx +2 -0
- package/src/Modal/tests/ModalPopupNoMock.test.jsx +29 -0
- package/src/Nav/index.scss +8 -0
- package/src/Overlay/{index.jsx → index.tsx} +13 -8
- 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/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/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/src/IconButton/__snapshots__/IconButton.test.jsx.snap +0 -20
- package/tokens/src/core/global/display.json +0 -22
- /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
|
@@ -2,225 +2,178 @@
|
|
|
2
2
|
"size": {
|
|
3
3
|
"form": {
|
|
4
4
|
"input": {
|
|
5
|
+
"$type": "dimension",
|
|
5
6
|
"height": {
|
|
6
7
|
"base": {
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"source": "$input-height"
|
|
8
|
+
"source": "$input-height",
|
|
9
|
+
"$value": "calc({typography.form.input.line-height.base} * 1em + {spacing.form.input.padding.y.base} * 2 + {size.form.input.height.border})"
|
|
10
10
|
},
|
|
11
11
|
"sm": {
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"source": "$input-height-sm"
|
|
12
|
+
"source": "$input-height-sm",
|
|
13
|
+
"$value": "calc({typography.form.input.line-height.sm} * 1em + {spacing.input.btn.padding.sm.y} * 2 + {size.form.input.height.border})"
|
|
15
14
|
},
|
|
16
15
|
"lg": {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"source": "$input-height-lg"
|
|
16
|
+
"source": "$input-height-lg",
|
|
17
|
+
"$value": "calc({typography.form.input.line-height.lg} * 1em + {spacing.input.btn.padding.lg.y} * 2 + {size.form.input.height.border})"
|
|
20
18
|
},
|
|
21
19
|
"inner": {
|
|
22
20
|
"base": {
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"source": "$input-height-inner"
|
|
21
|
+
"source": "$input-height-inner",
|
|
22
|
+
"$value": "calc({typography.form.input.line-height.base} * 1em + {spacing.form.input.padding.y.base} * 2)"
|
|
26
23
|
},
|
|
27
24
|
"half": {
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"source": "$input-height-inner-half"
|
|
25
|
+
"source": "$input-height-inner-half",
|
|
26
|
+
"$value": "calc({typography.form.input.line-height.base} * .5em + {spacing.form.input.padding.y.base})"
|
|
31
27
|
},
|
|
32
28
|
"quarter": {
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"source": "$input-height-inner-quarter"
|
|
29
|
+
"source": "$input-height-inner-quarter",
|
|
30
|
+
"$value": "calc({typography.form.input.line-height.base} * .25em + calc({spacing.form.input.padding.y.base} / 2))"
|
|
36
31
|
}
|
|
37
32
|
},
|
|
38
|
-
"border": {
|
|
39
|
-
"value": "calc({size.form.input.width.border} * 2)",
|
|
40
|
-
"type": "dimension",
|
|
41
|
-
"source": "$input-height-border"
|
|
42
|
-
}
|
|
33
|
+
"border": { "source": "$input-height-border", "$value": "calc({size.form.input.width.border} * 2)" }
|
|
43
34
|
},
|
|
44
35
|
"width": {
|
|
45
|
-
"hover": { "
|
|
46
|
-
"focus": { "
|
|
47
|
-
"border": {
|
|
48
|
-
"value": "{size.input.btn.border-width}", "type": "dimension", "source": "$input-border-width"
|
|
49
|
-
}
|
|
36
|
+
"hover": { "source": "$input-hover-width", "$value": "0.063rem" },
|
|
37
|
+
"focus": { "source": "$input-focus-width", "$value": "0.063rem" },
|
|
38
|
+
"border": { "source": "$input-border-width", "$value": "{size.input.btn.border-width}" }
|
|
50
39
|
},
|
|
51
40
|
"radius": {
|
|
52
41
|
"border": {
|
|
53
|
-
"base": { "
|
|
54
|
-
"lg": { "
|
|
55
|
-
"sm": { "
|
|
42
|
+
"base": { "source": "$input-border-radius", "$value": "{size.border.radius.base}" },
|
|
43
|
+
"lg": { "source": "$input-border-radius-lg", "$value": "{size.border.radius.lg}" },
|
|
44
|
+
"sm": { "source": "$input-border-radius-sm", "$value": "{size.border.radius.sm}" }
|
|
56
45
|
}
|
|
57
46
|
}
|
|
58
47
|
},
|
|
59
48
|
"control": {
|
|
60
49
|
"indicator": {
|
|
61
|
-
"base": { "
|
|
62
|
-
"bg": { "
|
|
50
|
+
"base": { "source": "$custom-control-indicator-size", "$value": "1.25rem", "$type": "dimension" },
|
|
51
|
+
"bg": { "source": "$custom-control-indicator-bg-size", "$value": "100%", "$type": "percentage" },
|
|
63
52
|
"border": {
|
|
64
|
-
"
|
|
53
|
+
"$type": "dimension",
|
|
54
|
+
"width": { "source": "$custom-control-indicator-border-width", "$value": "0.125rem" }
|
|
65
55
|
}
|
|
66
56
|
},
|
|
67
57
|
"switch": {
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
"type": "dimension",
|
|
71
|
-
"source": "$custom-switch-width"
|
|
72
|
-
},
|
|
58
|
+
"$type": "dimension",
|
|
59
|
+
"width": { "source": "$custom-switch-width", "$value": "calc({size.form.control.indicator.base} * 1.75)" },
|
|
73
60
|
"indicator": {
|
|
74
61
|
"base": {
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"source": "$custom-switch-indicator-size"
|
|
62
|
+
"source": "$custom-switch-indicator-size",
|
|
63
|
+
"$value": "calc({size.form.control.indicator.base} - {size.form.control.indicator.border.width} * 4)"
|
|
78
64
|
},
|
|
79
65
|
"border": {
|
|
80
66
|
"radius": {
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"source": "$custom-switch-indicator-border-radius"
|
|
67
|
+
"source": "$custom-switch-indicator-border-radius",
|
|
68
|
+
"$value": "calc({size.form.control.indicator.base} / 2)"
|
|
84
69
|
}
|
|
85
70
|
}
|
|
86
71
|
}
|
|
87
72
|
},
|
|
88
73
|
"select": {
|
|
74
|
+
"$type": "dimension",
|
|
89
75
|
"height": {
|
|
90
|
-
"base": {
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
"lg": {
|
|
94
|
-
"value": "{size.form.input.height.lg}", "type": "dimension", "source": "$custom-select-height-lg"
|
|
95
|
-
},
|
|
96
|
-
"sm": {
|
|
97
|
-
"value": "{size.form.input.height.sm}", "type": "dimension", "source": "$custom-select-height-sm"
|
|
98
|
-
}
|
|
76
|
+
"base": { "source": "$custom-select-height", "$value": "{size.form.input.height.base}" },
|
|
77
|
+
"lg": { "source": "$custom-select-height-lg", "$value": "{size.form.input.height.lg}" },
|
|
78
|
+
"sm": { "source": "$custom-select-height-sm", "$value": "{size.form.input.height.sm}" }
|
|
99
79
|
},
|
|
100
80
|
"feedback": {
|
|
101
81
|
"icon": {
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"source": "$custom-select-feedback-icon-size"
|
|
82
|
+
"source": "$custom-select-feedback-icon-size",
|
|
83
|
+
"$value": "{size.form.input.height.inner.half} {size.form.input.height.inner.half}"
|
|
105
84
|
}
|
|
106
85
|
},
|
|
107
86
|
"border": {
|
|
108
87
|
"width": {
|
|
109
|
-
"base": {
|
|
110
|
-
"value": "{size.form.input.width.border}",
|
|
111
|
-
"type": "dimension",
|
|
112
|
-
"source": "$custom-select-border-width"
|
|
113
|
-
}
|
|
88
|
+
"base": { "source": "$custom-select-border-width", "$value": "{size.form.input.width.border}" }
|
|
114
89
|
},
|
|
115
|
-
"radius": {
|
|
116
|
-
"value": "{size.border.radius.base}", "type": "dimension", "source": "$custom-select-border-radius"
|
|
117
|
-
}
|
|
90
|
+
"radius": { "source": "$custom-select-border-radius", "$value": "{size.border.radius.base}" }
|
|
118
91
|
}
|
|
119
92
|
},
|
|
120
93
|
"range": {
|
|
121
94
|
"track": {
|
|
122
|
-
"width": { "
|
|
123
|
-
"height": { "
|
|
95
|
+
"width": { "source": "$custom-range-track-width", "$value": "100%", "$type": "percentage" },
|
|
96
|
+
"height": { "source": "$custom-range-track-height", "$value": ".5rem", "$type": "dimension" },
|
|
124
97
|
"border": {
|
|
125
|
-
"
|
|
98
|
+
"$type": "dimension",
|
|
99
|
+
"radius": { "source": "$custom-range-track-border-radius", "$value": "1rem" }
|
|
126
100
|
}
|
|
127
101
|
},
|
|
128
102
|
"thumb": {
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
|
|
132
|
-
"type": "dimension",
|
|
133
|
-
"source": "$custom-range-thumb-height"
|
|
134
|
-
},
|
|
103
|
+
"$type": "dimension",
|
|
104
|
+
"width": { "source": "$custom-range-thumb-width", "$value": "1rem" },
|
|
105
|
+
"height": { "source": "$custom-range-thumb-height", "$value": "{size.form.control.range.thumb.width}" },
|
|
135
106
|
"border": {
|
|
136
|
-
"base": { "
|
|
137
|
-
"radius": { "
|
|
107
|
+
"base": { "source": "$custom-range-thumb-border", "$value": "0" },
|
|
108
|
+
"radius": { "source": "$custom-range-thumb-border-radius", "$value": "1rem" }
|
|
138
109
|
},
|
|
139
110
|
"focus": {
|
|
140
|
-
"width": {
|
|
141
|
-
"value": "{size.form.input.width.focus}",
|
|
142
|
-
"type": "dimension",
|
|
143
|
-
"source": "$custom-range-thumb-focus-box-shadow-width"
|
|
144
|
-
}
|
|
111
|
+
"width": { "source": "$custom-range-thumb-focus-box-shadow-width", "$value": "{size.form.input.width.focus}" }
|
|
145
112
|
}
|
|
146
113
|
}
|
|
147
114
|
},
|
|
148
115
|
"file": {
|
|
149
|
-
"
|
|
150
|
-
|
|
151
|
-
},
|
|
116
|
+
"$type": "dimension",
|
|
117
|
+
"width": { "source": "$custom-file-border-width", "$value": "{size.form.input.width.border}" },
|
|
152
118
|
"height": {
|
|
153
|
-
"base": {
|
|
154
|
-
|
|
155
|
-
},
|
|
156
|
-
"inner": {
|
|
157
|
-
"value": "{size.form.input.height.inner.base}",
|
|
158
|
-
"type": "dimension",
|
|
159
|
-
"source": "$custom-file-height-inner"
|
|
160
|
-
}
|
|
119
|
+
"base": { "source": "$custom-file-height", "$value": "{size.form.input.height.base}" },
|
|
120
|
+
"inner": { "source": "$custom-file-height-inner", "$value": "{size.form.input.height.inner.base}" }
|
|
161
121
|
},
|
|
162
122
|
"border": {
|
|
163
|
-
"radius": {
|
|
164
|
-
"value": "{size.form.input.radius.border.base}",
|
|
165
|
-
"type": "dimension",
|
|
166
|
-
"source": "$custom-file-border-radius"
|
|
167
|
-
}
|
|
123
|
+
"radius": { "source": "$custom-file-border-radius", "$value": "{size.form.input.radius.border.base}" }
|
|
168
124
|
}
|
|
169
125
|
},
|
|
170
126
|
"icon": {
|
|
171
|
-
"
|
|
127
|
+
"$type": "dimension",
|
|
128
|
+
"width": { "source": "$form-control-icon-width", "$value": "2rem" }
|
|
172
129
|
},
|
|
173
130
|
"border": {
|
|
174
131
|
"checkbox": {
|
|
132
|
+
"$type": "dimension",
|
|
175
133
|
"indicator": {
|
|
176
|
-
"radius": { "
|
|
134
|
+
"radius": { "source": "$custom-checkbox-indicator-border-radius", "$value": "0" }
|
|
177
135
|
}
|
|
178
136
|
},
|
|
179
137
|
"radio": {
|
|
138
|
+
"$type": "percentage",
|
|
180
139
|
"indicator": {
|
|
181
|
-
"radius": { "
|
|
140
|
+
"radius": { "source": "$custom-radio-indicator-border-radius", "$value": "50%" }
|
|
182
141
|
}
|
|
183
142
|
}
|
|
184
143
|
}
|
|
185
144
|
},
|
|
186
145
|
"grid": {
|
|
187
|
-
"
|
|
146
|
+
"$type": "dimension",
|
|
147
|
+
"gutter-width": { "source": "$form-grid-gutter-width", "$value": "0.625rem" }
|
|
188
148
|
},
|
|
189
149
|
"autosuggest": {
|
|
150
|
+
"$type": "dimension",
|
|
190
151
|
"icon": {
|
|
191
|
-
"width": { "
|
|
192
|
-
"height": {
|
|
193
|
-
"value": "{size.form.autosuggest.icon.width}", "type": "dimension", "source": "$form-autosuggest-icon-height"
|
|
194
|
-
}
|
|
152
|
+
"width": { "source": "$form-autosuggest-icon-width", "$value": "2.4rem" },
|
|
153
|
+
"height": { "source": "$form-autosuggest-icon-height", "$value": "{size.form.autosuggest.icon.width}" }
|
|
195
154
|
},
|
|
196
155
|
"spinner": {
|
|
197
|
-
"width": { "
|
|
198
|
-
"height": {
|
|
199
|
-
"value": "{size.form.autosuggest.spinner.width}",
|
|
200
|
-
"type": "dimension",
|
|
201
|
-
"source": "$form-autosuggest-spinner-height"
|
|
202
|
-
}
|
|
156
|
+
"width": { "source": "$form-autosuggest-spinner-width", "$value": "1.25rem" },
|
|
157
|
+
"height": { "source": "$form-autosuggest-spinner-height", "$value": "{size.form.autosuggest.spinner.width}" }
|
|
203
158
|
},
|
|
204
159
|
"border": {
|
|
205
|
-
"width": { "
|
|
160
|
+
"width": { "source": "$form-autosuggest-border-width", "$value": ".125rem" }
|
|
206
161
|
}
|
|
207
162
|
},
|
|
208
163
|
"border": {
|
|
164
|
+
"$type": "dimension",
|
|
209
165
|
"radius": {
|
|
210
166
|
"check": {
|
|
211
|
-
"focus": { "
|
|
167
|
+
"focus": { "source": "$form-check-focus-border-radius", "$value": ".0625rem" }
|
|
212
168
|
},
|
|
213
|
-
"width": { "
|
|
169
|
+
"width": { "source": "$form-check-border-width", "$value": ".125rem" }
|
|
214
170
|
}
|
|
215
171
|
},
|
|
216
172
|
"feedback": {
|
|
173
|
+
"$type": "dimension",
|
|
217
174
|
"tooltip": {
|
|
218
175
|
"border": {
|
|
219
|
-
"radius": {
|
|
220
|
-
"value": "{size.border.radius.base}",
|
|
221
|
-
"type": "dimension",
|
|
222
|
-
"source": "$form-feedback-tooltip-border-radius"
|
|
223
|
-
}
|
|
176
|
+
"radius": { "source": "$form-feedback-tooltip-border-radius", "$value": "{size.border.radius.base}" }
|
|
224
177
|
}
|
|
225
178
|
}
|
|
226
179
|
}
|
|
@@ -1,152 +1,108 @@
|
|
|
1
1
|
{
|
|
2
2
|
"spacing": {
|
|
3
|
+
"$type": "dimension",
|
|
3
4
|
"form": {
|
|
4
5
|
"input": {
|
|
5
6
|
"padding": {
|
|
6
7
|
"y": {
|
|
7
|
-
"base": {
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
"sm": {
|
|
11
|
-
"value": "{spacing.input.btn.padding.sm.y}", "type": "dimension", "source": "$input-padding-y-sm"
|
|
12
|
-
},
|
|
13
|
-
"lg": {
|
|
14
|
-
"value": "{spacing.input.btn.padding.lg.y}", "type": "dimension", "source": "$input-padding-y-lg"
|
|
15
|
-
}
|
|
8
|
+
"base": { "source": "$input-padding-y", "$value": "{spacing.input.btn.padding.y}" },
|
|
9
|
+
"sm": { "source": "$input-padding-y-sm", "$value": "{spacing.input.btn.padding.sm.y}" },
|
|
10
|
+
"lg": { "source": "$input-padding-y-lg", "$value": "{spacing.input.btn.padding.lg.y}" }
|
|
16
11
|
},
|
|
17
12
|
"x": {
|
|
18
|
-
"base": {
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
"sm": {
|
|
22
|
-
"value": "{spacing.input.btn.padding.sm.x}", "type": "dimension", "source": "$input-padding-x-sm"
|
|
23
|
-
},
|
|
24
|
-
"lg": {
|
|
25
|
-
"value": "{spacing.input.btn.padding.lg.x}", "type": "dimension", "source": "$input-padding-x-lg"
|
|
26
|
-
}
|
|
13
|
+
"base": { "source": "$input-padding-x", "$value": "{spacing.input.btn.padding.x}" },
|
|
14
|
+
"sm": { "source": "$input-padding-x-sm", "$value": "{spacing.input.btn.padding.sm.x}" },
|
|
15
|
+
"lg": { "source": "$input-padding-x-lg", "$value": "{spacing.input.btn.padding.lg.x}" }
|
|
27
16
|
}
|
|
28
17
|
},
|
|
29
18
|
"check": {
|
|
30
|
-
"gutter"
|
|
19
|
+
"gutter": { "source": "$form-check-input-gutter", "$value": "1.25rem" },
|
|
31
20
|
"margin": {
|
|
32
21
|
"x": {
|
|
33
|
-
"base": { "
|
|
34
|
-
"inline": { "
|
|
22
|
+
"base": { "source": "$form-check-input-margin-x", "$value": ".25rem" },
|
|
23
|
+
"inline": { "source": "$form-check-inline-input-margin-x", "$value": ".3125rem" }
|
|
35
24
|
},
|
|
36
|
-
"y": { "
|
|
25
|
+
"y": { "source": "$form-check-input-margin-y", "$value": ".3rem" }
|
|
37
26
|
}
|
|
38
27
|
}
|
|
39
28
|
},
|
|
40
29
|
"text": {
|
|
41
30
|
"margin": {
|
|
42
|
-
"top": { "
|
|
31
|
+
"top": { "source": "$form-text-margin-top", "$value": ".25rem" }
|
|
43
32
|
}
|
|
44
33
|
},
|
|
45
34
|
"check": {
|
|
46
35
|
"inline": {
|
|
47
36
|
"margin": {
|
|
48
|
-
"x": { "
|
|
37
|
+
"x": { "source": "$form-check-inline-margin-x", "$value": ".75rem" }
|
|
49
38
|
}
|
|
50
39
|
},
|
|
51
40
|
"position": {
|
|
52
|
-
"axis": { "
|
|
41
|
+
"axis": { "source": "$form-check-position-axis", "$value": ".375rem" }
|
|
53
42
|
}
|
|
54
43
|
},
|
|
55
44
|
"group": {
|
|
56
45
|
"margin": {
|
|
57
|
-
"bottom": { "
|
|
46
|
+
"bottom": { "source": "$form-group-margin-bottom", "$value": "1rem" }
|
|
58
47
|
}
|
|
59
48
|
},
|
|
60
49
|
"control": {
|
|
61
|
-
"gutter": { "
|
|
50
|
+
"gutter": { "source": "$custom-control-gutter", "$value": ".5rem" },
|
|
62
51
|
"spacer": {
|
|
63
|
-
"x": { "
|
|
52
|
+
"x": { "source": "$custom-control-spacer-x", "$value": "1rem" }
|
|
64
53
|
},
|
|
65
54
|
"select": {
|
|
66
55
|
"padding": {
|
|
67
56
|
"y": {
|
|
68
|
-
"base": {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"source": "$custom-select-padding-y"
|
|
72
|
-
},
|
|
73
|
-
"sm": {
|
|
74
|
-
"value": "{spacing.form.input.padding.y.sm}",
|
|
75
|
-
"type": "dimension",
|
|
76
|
-
"source": "$custom-select-padding-y-sm"
|
|
77
|
-
},
|
|
78
|
-
"lg": {
|
|
79
|
-
"value": "{spacing.form.input.padding.y.lg}",
|
|
80
|
-
"type": "dimension",
|
|
81
|
-
"source": "$custom-select-padding-y-lg"
|
|
82
|
-
}
|
|
57
|
+
"base": { "source": "$custom-select-padding-y", "$value": "{spacing.form.input.padding.y.base}" },
|
|
58
|
+
"sm": { "source": "$custom-select-padding-y-sm", "$value": "{spacing.form.input.padding.y.sm}" },
|
|
59
|
+
"lg": { "source": "$custom-select-padding-y-lg", "$value": "{spacing.form.input.padding.y.lg}" }
|
|
83
60
|
},
|
|
84
61
|
"x": {
|
|
85
|
-
"base": {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"source": "$custom-select-padding-x"
|
|
89
|
-
},
|
|
90
|
-
"sm": {
|
|
91
|
-
"value": "{spacing.form.input.padding.x.sm}",
|
|
92
|
-
"type": "dimension",
|
|
93
|
-
"source": "$custom-select-padding-x-sm"
|
|
94
|
-
},
|
|
95
|
-
"lg": {
|
|
96
|
-
"value": "{spacing.form.input.padding.x.lg}",
|
|
97
|
-
"type": "dimension",
|
|
98
|
-
"source": "$custom-select-padding-x-lg"
|
|
99
|
-
}
|
|
62
|
+
"base": { "source": "$custom-select-padding-x", "$value": "{spacing.form.input.padding.x.base}" },
|
|
63
|
+
"sm": { "source": "$custom-select-padding-x-sm", "$value": "{spacing.form.input.padding.x.sm}" },
|
|
64
|
+
"lg": { "source": "$custom-select-padding-x-lg", "$value": "{spacing.form.input.padding.x.lg}" }
|
|
100
65
|
}
|
|
101
66
|
},
|
|
102
67
|
"indicator": {
|
|
103
|
-
"padding": { "
|
|
68
|
+
"padding": { "source": "$custom-select-indicator-padding", "$value": "1rem" }
|
|
104
69
|
},
|
|
105
70
|
"feedback": {
|
|
106
71
|
"icon": {
|
|
107
72
|
"padding": {
|
|
108
73
|
"right": {
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"source": "$custom-select-feedback-icon-padding-right"
|
|
74
|
+
"source": "$custom-select-feedback-icon-padding-right",
|
|
75
|
+
"$value": "calc((1em + 2 * {spacing.form.control.select.padding.y.base}) * 3 / 4 + {spacing.form.control.select.padding.x.base} + {spacing.form.control.select.indicator.padding})"
|
|
112
76
|
}
|
|
113
77
|
},
|
|
114
78
|
"position": {
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
|
|
79
|
+
"source": "$custom-select-feedback-icon-position",
|
|
80
|
+
"$value": {
|
|
81
|
+
"position-y": "center",
|
|
82
|
+
"position-x": "right",
|
|
83
|
+
"offset-x": "calc({spacing.form.control.select.padding.x.base} + {spacing.form.control.select.indicator.padding})",
|
|
84
|
+
"offset-y": "0"
|
|
85
|
+
}
|
|
118
86
|
}
|
|
119
87
|
},
|
|
120
88
|
"margin": {
|
|
121
|
-
"top": {
|
|
122
|
-
"value": "{spacing.form.text.margin.top}",
|
|
123
|
-
"type": "dimension",
|
|
124
|
-
"source": "$form-feedback-margin-top"
|
|
125
|
-
}
|
|
89
|
+
"top": { "source": "$form-feedback-margin-top", "$value": "{spacing.form.text.margin.top}" }
|
|
126
90
|
},
|
|
127
91
|
"tooltip": {
|
|
128
92
|
"padding": {
|
|
129
|
-
"y": { "
|
|
130
|
-
"x": { "
|
|
93
|
+
"y": { "source": "$form-feedback-tooltip-padding-y", "$value": ".25rem" },
|
|
94
|
+
"x": { "source": "$form-feedback-tooltip-padding-x", "$value": ".5rem" }
|
|
131
95
|
}
|
|
132
96
|
}
|
|
133
97
|
},
|
|
134
98
|
"icon": {
|
|
135
|
-
"padding": { "
|
|
99
|
+
"padding": { "source": "$select-icon-padding", "$value": ".5625rem" }
|
|
136
100
|
}
|
|
137
101
|
},
|
|
138
102
|
"file": {
|
|
139
103
|
"padding": {
|
|
140
|
-
"y": {
|
|
141
|
-
|
|
142
|
-
"type": "dimension",
|
|
143
|
-
"source": "$custom-file-padding-y"
|
|
144
|
-
},
|
|
145
|
-
"x": {
|
|
146
|
-
"value": "{spacing.form.input.padding.x.base}",
|
|
147
|
-
"type": "dimension",
|
|
148
|
-
"source": "$custom-file-padding-x"
|
|
149
|
-
}
|
|
104
|
+
"y": { "source": "$custom-file-padding-y", "$value": "{spacing.form.input.padding.y.base}" },
|
|
105
|
+
"x": { "source": "$custom-file-padding-x", "$value": "{spacing.form.input.padding.x.base}" }
|
|
150
106
|
}
|
|
151
107
|
}
|
|
152
108
|
}
|
|
@@ -1,15 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"transition": {
|
|
3
|
+
"$type": "transition",
|
|
3
4
|
"form": {
|
|
4
5
|
"input": {
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
6
|
+
"source": "$input-transition",
|
|
7
|
+
"$value": [
|
|
8
|
+
{
|
|
9
|
+
"property": "border-color",
|
|
10
|
+
"duration": ".15s",
|
|
11
|
+
"timing-function": "ease-in-out",
|
|
12
|
+
"delay": "0s",
|
|
13
|
+
"behavior": "normal"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"property": "box-shadow",
|
|
17
|
+
"duration": ".15s",
|
|
18
|
+
"timing-function": "ease-in-out",
|
|
19
|
+
"delay": "0s",
|
|
20
|
+
"behavior": "normal"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
8
23
|
},
|
|
9
|
-
"control": {
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
24
|
+
"control": {
|
|
25
|
+
"source": "$custom-forms-transition",
|
|
26
|
+
"$value": [
|
|
27
|
+
{
|
|
28
|
+
"property": "background-color",
|
|
29
|
+
"duration": ".15s",
|
|
30
|
+
"timing-function": "ease-in-out",
|
|
31
|
+
"delay": "0s",
|
|
32
|
+
"behavior": "normal"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"property": "border-color",
|
|
36
|
+
"duration": ".15s",
|
|
37
|
+
"timing-function": "ease-in-out",
|
|
38
|
+
"delay": "0s",
|
|
39
|
+
"behavior": "normal"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"property": "box-shadow",
|
|
43
|
+
"duration": ".15s",
|
|
44
|
+
"timing-function": "ease-in-out",
|
|
45
|
+
"delay": "0s",
|
|
46
|
+
"behavior": "normal"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
13
49
|
}
|
|
14
50
|
}
|
|
15
51
|
}
|