@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.
Files changed (274) hide show
  1. package/bin/paragon-scripts.js +10 -0
  2. package/dist/Annotation/index.scss +16 -0
  3. package/dist/Button/index.d.ts +35 -0
  4. package/dist/Button/index.js +37 -15
  5. package/dist/Button/index.js.map +1 -1
  6. package/dist/Card/CardDeck.js +0 -2
  7. package/dist/Card/CardDeck.js.map +1 -1
  8. package/dist/Card/index.scss +6 -6
  9. package/dist/Carousel/index.scss +24 -1
  10. package/dist/Chip/ChipIcon.d.ts +13 -8
  11. package/dist/Chip/ChipIcon.js +0 -2
  12. package/dist/Chip/ChipIcon.js.map +1 -1
  13. package/dist/Chip/constants.d.ts +4 -0
  14. package/dist/Chip/constants.js +3 -2
  15. package/dist/Chip/constants.js.map +1 -0
  16. package/dist/Chip/index.d.ts +4 -3
  17. package/dist/Chip/index.js +2 -4
  18. package/dist/Chip/index.js.map +1 -1
  19. package/dist/ChipCarousel/index.js +0 -2
  20. package/dist/ChipCarousel/index.js.map +1 -1
  21. package/dist/CloseButton/index.scss +8 -0
  22. package/dist/ColorPicker/index.scss +1 -1
  23. package/dist/DataTable/index.scss +12 -0
  24. package/dist/Dropdown/dropdown-bootstrap.scss +6 -0
  25. package/dist/Dropzone/index.scss +34 -0
  26. package/dist/Form/_FormText.scss +1 -1
  27. package/dist/Form/_bootstrap-custom-forms.scss +40 -0
  28. package/dist/Form/_index.scss +9 -0
  29. package/dist/Form/_mixins.scss +22 -0
  30. package/dist/Hyperlink/index.d.ts +24 -0
  31. package/dist/Hyperlink/index.js +20 -32
  32. package/dist/Hyperlink/index.js.map +1 -1
  33. package/dist/Icon/index.d.ts +4 -2
  34. package/dist/Icon/index.js +1 -1
  35. package/dist/Icon/index.js.map +1 -1
  36. package/dist/IconButton/index.d.ts +342 -0
  37. package/dist/IconButton/index.js +18 -26
  38. package/dist/IconButton/index.js.map +1 -1
  39. package/dist/IconButton/index.scss +146 -0
  40. package/dist/Menu/index.scss +8 -0
  41. package/dist/Modal/ModalDialog.js +8 -4
  42. package/dist/Modal/ModalDialog.js.map +1 -1
  43. package/dist/Modal/ModalPopup.js +7 -1
  44. package/dist/Modal/ModalPopup.js.map +1 -1
  45. package/dist/Modal/_ModalDialog.scss +26 -2
  46. package/dist/Nav/index.scss +8 -0
  47. package/dist/Overlay/index.d.ts +128 -0
  48. package/dist/Overlay/index.js +8 -2
  49. package/dist/Overlay/index.js.map +1 -1
  50. package/dist/PageBanner/index.scss +2 -2
  51. package/dist/Pagination/pagination-bootstrap.scss +9 -0
  52. package/dist/Popover/index.scss +1 -1
  53. package/dist/ProductTour/Checkpoint.scss +1 -1
  54. package/dist/ProgressBar/bootstrap-progress.scss +20 -5
  55. package/dist/ProgressBar/index.scss +3 -3
  56. package/dist/Stepper/index.scss +1 -1
  57. package/dist/Sticky/index.scss +12 -0
  58. package/dist/Toast/index.scss +13 -1
  59. package/dist/Tooltip/index.d.ts +7 -0
  60. package/dist/Tooltip/index.js.map +1 -1
  61. package/dist/Tooltip/index.scss +16 -0
  62. package/dist/core.css +914 -470
  63. package/dist/core.css.map +1 -1
  64. package/dist/core.min.css +1 -1
  65. package/dist/index.d.ts +5 -5
  66. package/dist/index.js +7 -7
  67. package/dist/light.css +2035 -1315
  68. package/dist/light.css.map +1 -1
  69. package/dist/light.min.css +1 -1
  70. package/dist/setupTest.d.ts +2 -0
  71. package/dist/setupTest.js.map +1 -0
  72. package/dist/utils/types/bootstrap.d.ts +39 -0
  73. package/dist/utils/types/bootstrap.js +2 -0
  74. package/dist/utils/types/bootstrap.js.map +1 -0
  75. package/lib/build-tokens.js +67 -31
  76. package/package.json +11 -8
  77. package/src/Annotation/index.scss +16 -0
  78. package/src/Button/{Button.test.jsx → Button.test.tsx} +14 -2
  79. package/src/Button/__snapshots__/{Button.test.jsx.snap → Button.test.tsx.snap} +19 -2
  80. package/src/Button/{index.jsx → index.tsx} +58 -16
  81. package/src/Card/CardDeck.jsx +0 -3
  82. package/src/Card/README.md +0 -31
  83. package/src/Card/index.scss +6 -6
  84. package/src/Carousel/index.scss +24 -1
  85. package/src/Chip/{Chip.test.jsx → Chip.test.tsx} +5 -7
  86. package/src/Chip/ChipIcon.tsx +8 -8
  87. package/src/Chip/{constants.js → constants.ts} +1 -1
  88. package/src/Chip/index.tsx +6 -8
  89. package/src/ChipCarousel/index.tsx +0 -2
  90. package/src/CloseButton/index.scss +8 -0
  91. package/src/ColorPicker/index.scss +1 -1
  92. package/src/DataTable/index.scss +12 -0
  93. package/src/Dropdown/dropdown-bootstrap.scss +6 -0
  94. package/src/Dropzone/index.scss +34 -0
  95. package/src/Form/_FormText.scss +1 -1
  96. package/src/Form/_bootstrap-custom-forms.scss +40 -0
  97. package/src/Form/_index.scss +9 -0
  98. package/src/Form/_mixins.scss +22 -0
  99. package/src/Hyperlink/{Hyperlink.test.jsx → Hyperlink.test.tsx} +21 -10
  100. package/src/Hyperlink/{index.jsx → index.tsx} +41 -37
  101. package/src/Icon/index.d.ts +4 -2
  102. package/src/Icon/index.jsx +1 -1
  103. package/src/IconButton/{IconButton.test.jsx → IconButton.test.tsx} +24 -3
  104. package/src/IconButton/__snapshots__/IconButton.test.tsx.snap +90 -0
  105. package/src/IconButton/index.scss +146 -0
  106. package/src/IconButton/{index.jsx → index.tsx} +66 -26
  107. package/src/Menu/index.scss +8 -0
  108. package/src/Modal/ModalDialog.jsx +7 -3
  109. package/src/Modal/ModalPopup.jsx +9 -1
  110. package/src/Modal/_ModalDialog.scss +26 -2
  111. package/src/Modal/modal-dialog.mdx +95 -6
  112. package/src/Modal/tests/ModalDialog.test.jsx +2 -0
  113. package/src/Modal/tests/ModalPopupNoMock.test.jsx +29 -0
  114. package/src/Nav/index.scss +8 -0
  115. package/src/Overlay/{index.jsx → index.tsx} +13 -8
  116. package/src/PageBanner/index.scss +2 -2
  117. package/src/Pagination/pagination-bootstrap.scss +9 -0
  118. package/src/Popover/index.scss +1 -1
  119. package/src/ProductTour/Checkpoint.scss +1 -1
  120. package/src/ProgressBar/bootstrap-progress.scss +20 -5
  121. package/src/ProgressBar/index.scss +3 -3
  122. package/src/Stepper/index.scss +1 -1
  123. package/src/Sticky/index.scss +12 -0
  124. package/src/Toast/index.scss +13 -1
  125. package/src/Tooltip/index.scss +16 -0
  126. package/src/Tooltip/{index.jsx → index.tsx} +9 -3
  127. package/src/index.d.ts +5 -5
  128. package/src/index.js +7 -7
  129. package/src/{setupTest.js → setupTest.ts} +1 -0
  130. package/src/utils/types/bootstrap.test.tsx +86 -0
  131. package/src/utils/types/bootstrap.ts +43 -0
  132. package/styles/css/core/abstraction-variables.css +44 -0
  133. package/styles/css/core/custom-media-breakpoints.css +3 -4
  134. package/styles/css/core/index.css +2 -1
  135. package/styles/css/core/variables.css +494 -430
  136. package/styles/css/themes/light/abstraction-variables.css +304 -0
  137. package/styles/css/themes/light/index.css +1 -0
  138. package/styles/css/themes/light/utility-classes.css +2 -3
  139. package/styles/css/themes/light/variables.css +1753 -1334
  140. package/styles/scss/core/_typography.scss +16 -4
  141. package/styles/scss/core/_utilities.scss +7 -3
  142. package/styles/scss/core/_variables.scss +43 -30
  143. package/styles/scss/core/core.scss +1 -0
  144. package/tokens/src/core/alias/size.json +6 -5
  145. package/tokens/src/core/components/ActionRow.json +3 -2
  146. package/tokens/src/core/components/Alert.json +12 -10
  147. package/tokens/src/core/components/Annotation.json +9 -7
  148. package/tokens/src/core/components/Avatar.json +9 -9
  149. package/tokens/src/core/components/AvatarButton.json +4 -3
  150. package/tokens/src/core/components/Badge.json +12 -9
  151. package/tokens/src/core/components/Breadcrumb.json +7 -5
  152. package/tokens/src/core/components/Bubble.json +4 -3
  153. package/tokens/src/core/components/Button/core.json +35 -59
  154. package/tokens/src/core/components/Card.json +33 -44
  155. package/tokens/src/core/components/Carousel.json +39 -13
  156. package/tokens/src/core/components/Chip.json +13 -21
  157. package/tokens/src/core/components/ChipCarousel.json +4 -5
  158. package/tokens/src/core/components/CloseButton.json +2 -6
  159. package/tokens/src/core/components/Code.json +9 -8
  160. package/tokens/src/core/components/Collapsible.json +10 -13
  161. package/tokens/src/core/components/ColorPicker.json +3 -2
  162. package/tokens/src/core/components/Container.json +6 -5
  163. package/tokens/src/core/components/DataTable.json +17 -9
  164. package/tokens/src/core/components/Dropdown.json +24 -29
  165. package/tokens/src/core/components/Dropzone.json +5 -7
  166. package/tokens/src/core/components/Form/other.json +5 -4
  167. package/tokens/src/core/components/Form/size.json +72 -119
  168. package/tokens/src/core/components/Form/spacing.json +39 -83
  169. package/tokens/src/core/components/Form/transition.json +43 -7
  170. package/tokens/src/core/components/Form/typography.json +24 -88
  171. package/tokens/src/core/components/Icon.json +6 -5
  172. package/tokens/src/core/components/IconButton.json +4 -7
  173. package/tokens/src/core/components/Image.json +7 -6
  174. package/tokens/src/core/components/Menu.json +14 -12
  175. package/tokens/src/core/components/Modal.json +26 -21
  176. package/tokens/src/core/components/Nav.json +14 -16
  177. package/tokens/src/core/components/Navbar.json +15 -30
  178. package/tokens/src/core/components/Pagination.json +23 -24
  179. package/tokens/src/core/components/Popover.json +18 -14
  180. package/tokens/src/core/components/ProductTour.json +8 -14
  181. package/tokens/src/core/components/ProgressBar.json +29 -14
  182. package/tokens/src/core/components/SearchField.json +7 -9
  183. package/tokens/src/core/components/SelectableBox.json +4 -3
  184. package/tokens/src/core/components/Sheet.json +3 -2
  185. package/tokens/src/core/components/Spinner.json +9 -7
  186. package/tokens/src/core/components/Stack.json +2 -1
  187. package/tokens/src/core/components/Stepper.json +12 -14
  188. package/tokens/src/core/components/Sticky.json +2 -1
  189. package/tokens/src/core/components/Tab.json +8 -7
  190. package/tokens/src/core/components/Tabs.json +5 -5
  191. package/tokens/src/core/components/Toast.json +11 -8
  192. package/tokens/src/core/components/Tooltip.json +13 -11
  193. package/tokens/src/core/components/general/caret.json +5 -3
  194. package/tokens/src/core/components/general/headings.json +5 -4
  195. package/tokens/src/core/components/general/hr.json +3 -2
  196. package/tokens/src/core/components/general/input.json +19 -19
  197. package/tokens/src/core/components/general/link.json +13 -12
  198. package/tokens/src/core/components/general/list.json +9 -6
  199. package/tokens/src/core/components/general/text.json +6 -12
  200. package/tokens/src/core/global/breakpoints.json +25 -6
  201. package/tokens/src/core/global/elevation.json +55 -13
  202. package/tokens/src/core/global/other.json +5 -1
  203. package/tokens/src/core/global/spacing.json +70 -17
  204. package/tokens/src/core/global/transition.json +41 -4
  205. package/tokens/src/core/global/typography.json +248 -53
  206. package/tokens/src/core/utilities/color.json +35 -4
  207. package/tokens/src/themes/light/alias/color.json +276 -75
  208. package/tokens/src/themes/light/components/Alert.json +15 -26
  209. package/tokens/src/themes/light/components/Annotation.json +27 -13
  210. package/tokens/src/themes/light/components/Avatar.json +2 -1
  211. package/tokens/src/themes/light/components/Badge.json +57 -122
  212. package/tokens/src/themes/light/components/Breadcrumb.json +6 -5
  213. package/tokens/src/themes/light/components/Bubble.json +9 -8
  214. package/tokens/src/themes/light/components/Button/brand.json +171 -119
  215. package/tokens/src/themes/light/components/Button/core.json +8 -9
  216. package/tokens/src/themes/light/components/Button/danger.json +171 -112
  217. package/tokens/src/themes/light/components/Button/dark.json +188 -106
  218. package/tokens/src/themes/light/components/Button/info.json +186 -112
  219. package/tokens/src/themes/light/components/Button/light.json +186 -110
  220. package/tokens/src/themes/light/components/Button/primary.json +178 -116
  221. package/tokens/src/themes/light/components/Button/secondary.json +166 -132
  222. package/tokens/src/themes/light/components/Button/success.json +176 -117
  223. package/tokens/src/themes/light/components/Button/tertiary.json +34 -60
  224. package/tokens/src/themes/light/components/Button/warning.json +164 -128
  225. package/tokens/src/themes/light/components/Card.json +10 -21
  226. package/tokens/src/themes/light/components/Carousel.json +12 -11
  227. package/tokens/src/themes/light/components/Chip.json +14 -26
  228. package/tokens/src/themes/light/components/CloseButton.json +12 -2
  229. package/tokens/src/themes/light/components/Code.json +7 -9
  230. package/tokens/src/themes/light/components/DataTable.json +7 -11
  231. package/tokens/src/themes/light/components/Dropdown.json +17 -20
  232. package/tokens/src/themes/light/components/Dropzone.json +49 -11
  233. package/tokens/src/themes/light/components/Form/color.json +101 -155
  234. package/tokens/src/themes/light/components/Form/elevation.json +38 -42
  235. package/tokens/src/themes/light/components/Form/other.json +44 -41
  236. package/tokens/src/themes/light/components/IconButton.json +408 -256
  237. package/tokens/src/themes/light/components/Image.json +7 -4
  238. package/tokens/src/themes/light/components/Menu.json +12 -10
  239. package/tokens/src/themes/light/components/Modal.json +22 -12
  240. package/tokens/src/themes/light/components/Nav.json +82 -94
  241. package/tokens/src/themes/light/components/Navbar.json +32 -76
  242. package/tokens/src/themes/light/components/OverflowScroll.json +3 -1
  243. package/tokens/src/themes/light/components/PageBanner.json +11 -10
  244. package/tokens/src/themes/light/components/Pagination.json +19 -23
  245. package/tokens/src/themes/light/components/Popover.json +22 -27
  246. package/tokens/src/themes/light/components/ProductTour.json +9 -20
  247. package/tokens/src/themes/light/components/ProgressBar.json +12 -10
  248. package/tokens/src/themes/light/components/Scrollable.json +3 -3
  249. package/tokens/src/themes/light/components/SearchField.json +9 -9
  250. package/tokens/src/themes/light/components/Sheet.json +6 -7
  251. package/tokens/src/themes/light/components/Stepper.json +12 -17
  252. package/tokens/src/themes/light/components/Sticky.json +31 -6
  253. package/tokens/src/themes/light/components/Tab.json +47 -24
  254. package/tokens/src/themes/light/components/Toast.json +26 -14
  255. package/tokens/src/themes/light/components/Tooltip.json +25 -10
  256. package/tokens/src/themes/light/components/general/body.json +3 -2
  257. package/tokens/src/themes/light/components/general/headings.json +2 -1
  258. package/tokens/src/themes/light/components/general/hr.json +3 -6
  259. package/tokens/src/themes/light/components/general/input.json +11 -4
  260. package/tokens/src/themes/light/components/general/link.json +34 -43
  261. package/tokens/src/themes/light/components/general/list.json +15 -19
  262. package/tokens/src/themes/light/components/general/text.json +5 -6
  263. package/tokens/src/themes/light/global/color.json +1592 -867
  264. package/tokens/src/themes/light/global/elevation.json +481 -93
  265. package/tokens/style-dictionary.js +342 -144
  266. package/tokens/utils.js +176 -6
  267. package/src/IconButton/__snapshots__/IconButton.test.jsx.snap +0 -20
  268. package/tokens/src/core/global/display.json +0 -22
  269. /package/src/Button/{ButtonGroup.test.jsx → ButtonGroup.test.tsx} +0 -0
  270. /package/src/Button/{ButtonToolbar.test.jsx → ButtonToolbar.test.tsx} +0 -0
  271. /package/src/Button/__snapshots__/{ButtonGroup.test.jsx.snap → ButtonGroup.test.tsx.snap} +0 -0
  272. /package/src/Button/__snapshots__/{ButtonToolbar.test.jsx.snap → ButtonToolbar.test.tsx.snap} +0 -0
  273. /package/src/Chip/__snapshots__/{Chip.test.jsx.snap → Chip.test.tsx.snap} +0 -0
  274. /package/src/Tooltip/{Tooltip.test.jsx → Tooltip.test.tsx} +0 -0
@@ -3,48 +3,48 @@
3
3
  "input": {
4
4
  "btn": {
5
5
  "font": {
6
- "family": { "value": "inherit", "type": "fontFamily", "source": "$input-btn-font-family" },
6
+ "family": { "source": "$input-btn-font-family", "$value": "inherit", "$type": "fontFamily" },
7
7
  "size": {
8
- "base": { "value": "1.125rem", "type": "dimension", "source": "$input-btn-font-size" },
9
- "sm": { "value": ".875rem", "type": "dimension", "source": "$input-btn-font-size-sm" },
10
- "lg": { "value": "1.325rem", "type": "dimension", "source": "$input-btn-font-size-lg" }
8
+ "$type": "dimension",
9
+ "base": { "source": "$input-btn-font-size", "$value": "1.125rem" },
10
+ "sm": { "source": "$input-btn-font-size-sm", "$value": ".875rem" },
11
+ "lg": { "source": "$input-btn-font-size-lg", "$value": "1.325rem" }
11
12
  }
12
13
  },
13
14
  "line-height": {
14
- "base": { "value": "1.3333", "type": "dimension", "source": "$input-btn-line-height" },
15
- "sm": { "value": "1.4286", "type": "dimension", "source": "$input-btn-line-height-sm" },
16
- "lg": {
17
- "value": "{typography.line-height.lg}", "type": "dimension", "source": "$input-btn-line-height-lg"
18
- }
15
+ "$type": "number",
16
+ "base": { "source": "$input-btn-line-height", "$value": "1.3333" },
17
+ "sm": { "source": "$input-btn-line-height-sm", "$value": "1.4286" },
18
+ "lg": { "source": "$input-btn-line-height-lg", "$value": "{typography.line-height.lg}" }
19
19
  }
20
20
  }
21
21
  }
22
22
  },
23
23
  "spacing": {
24
+ "$type": "dimension",
24
25
  "input": {
25
26
  "btn": {
26
27
  "padding": {
27
- "y": { "value": ".5625rem", "type": "dimension", "source": "$input-btn-padding-y" },
28
- "x": { "value": "1rem", "type": "dimension", "source": "$input-btn-padding-x" },
28
+ "y": { "source": "$input-btn-padding-y", "$value": ".5625rem" },
29
+ "x": { "source": "$input-btn-padding-x", "$value": "1rem" },
29
30
  "sm": {
30
- "y": { "value": ".4375rem", "type": "dimension", "source": "$input-btn-padding-y-sm" },
31
- "x": { "value": ".75rem", "type": "dimension", "source": "$input-btn-padding-x-sm" }
31
+ "y": { "source": "$input-btn-padding-y-sm", "$value": ".4375rem" },
32
+ "x": { "source": "$input-btn-padding-x-sm", "$value": ".75rem" }
32
33
  },
33
34
  "lg": {
34
- "y": { "value": ".6875rem", "type": "dimension", "source": "$input-btn-padding-y-lg" },
35
- "x": { "value": "1.25rem", "type": "dimension", "source": "$input-btn-padding-x-lg" }
35
+ "y": { "source": "$input-btn-padding-y-lg", "$value": ".6875rem" },
36
+ "x": { "source": "$input-btn-padding-x-lg", "$value": "1.25rem" }
36
37
  }
37
38
  }
38
39
  }
39
40
  }
40
41
  },
41
42
  "size": {
43
+ "$type": "dimension",
42
44
  "input": {
43
45
  "btn": {
44
- "border-width": {
45
- "value": "{size.border.width}", "type": "dimension", "source": "$input-btn-border-width"
46
- },
47
- "focus-width": { "value": "1px", "type": "dimension", "source": "$input-btn-focus-width" }
46
+ "border-width": { "source": "$input-btn-border-width", "$value": "{size.border.width}" },
47
+ "focus-width": { "source": "$input-btn-focus-width", "$value": "1px" }
48
48
  }
49
49
  }
50
50
  }
@@ -2,26 +2,27 @@
2
2
  "typography": {
3
3
  "link": {
4
4
  "decoration": {
5
- "base": { "value": "none", "type": "textDecoration", "source": "$link-decoration" },
6
- "hover": { "value": "underline", "type": "textDecoration", "source": "$link-hover-decoration" },
5
+ "$type": "textDecoration",
6
+ "base": { "source": "$link-decoration", "$value": "none" },
7
+ "hover": { "source": "$link-hover-decoration", "$value": "underline" },
7
8
  "inline": {
8
- "base": { "value": "underline", "type": "textDecoration", "source": "$inline-link-decoration" },
9
- "hover": { "value": "underline", "type": "textDecoration", "source": "$inline-link-hover-decoration" }
9
+ "base": { "source": "$inline-link-decoration", "$value": "underline" },
10
+ "hover": { "source": "$inline-link-hover-decoration", "$value": "underline" }
10
11
  },
11
12
  "muted": {
12
- "base": { "value": "none", "type": "textDecoration", "source": "$muted-link-decoration" },
13
- "hover": { "value": "underline", "type": "textDecoration", "source": "$muted-link-hover-decoration" },
13
+ "base": { "source": "$muted-link-decoration", "$value": "none" },
14
+ "hover": { "source": "$muted-link-hover-decoration", "$value": "underline" },
14
15
  "inline": {
15
- "base": { "value": "underline", "type": "textDecoration", "source": "$muted-inline-link-decoration" },
16
- "hover": { "value": "underline", "type": "textDecoration", "source": "$muted-inline-link-hover-decoration" }
16
+ "base": { "source": "$muted-inline-link-decoration", "$value": "underline" },
17
+ "hover": { "source": "$muted-inline-link-hover-decoration", "$value": "underline" }
17
18
  }
18
19
  },
19
20
  "brand": {
20
- "base": { "value": "none", "type": "textDecoration", "source": "$brand-link-decoration" },
21
- "hover": { "value": "underline", "type": "textDecoration", "source": "$brand-link-hover-decoration" },
21
+ "base": { "source": "$brand-link-decoration", "$value": "none" },
22
+ "hover": { "source": "$brand-link-hover-decoration", "$value": "underline" },
22
23
  "inline": {
23
- "base": { "value": "underline", "type": "textDecoration", "source": "$brand-inline-link-decoration" },
24
- "hover": { "value": "underline", "type": "textDecoration", "source": "$brand-inline-link-hover-decoration" }
24
+ "base": { "source": "$brand-inline-link-decoration", "$value": "underline" },
25
+ "hover": { "source": "$brand-inline-link-hover-decoration", "$value": "underline" }
25
26
  }
26
27
  }
27
28
  }
@@ -1,25 +1,28 @@
1
1
  {
2
2
  "typography": {
3
+ "$type": "fontWeight",
3
4
  "dt": {
4
- "font-weight": { "value": "{typography.font.weight.bold}", "type": "fontWeight", "source": "$dt-font-weight" }
5
+ "font-weight": { "source": "$dt-font-weight", "$value": "{typography.font.weight.bold}" }
5
6
  }
6
7
  },
7
8
  "spacing": {
9
+ "$type": "dimension",
8
10
  "list": {
9
- "inline-padding": { "value": ".5rem", "type": "dimension", "source": "$list-inline-padding" },
11
+ "inline-padding": { "source": "$list-inline-padding", "$value": ".5rem" },
10
12
  "group-item": {
11
13
  "padding": {
12
- "y": { "value": ".75rem", "type": "dimension", "source": "$list-group-item-padding-y" },
13
- "x": { "value": "1.25rem", "type": "dimension", "source": "$list-group-item-padding-x" }
14
+ "y": { "source": "$list-group-item-padding-y", "$value": ".75rem" },
15
+ "x": { "source": "$list-group-item-padding-x", "$value": "1.25rem" }
14
16
  }
15
17
  }
16
18
  }
17
19
  },
18
20
  "size": {
21
+ "$type": "dimension",
19
22
  "list-group": {
20
23
  "border": {
21
- "width": { "value": "{size.border.width}", "type": "dimension", "source": "$list-group-border-width" },
22
- "radius": { "value": "{size.border.radius.base}", "type": "dimension", "source": "$list-group-border-radius" }
24
+ "width": { "source": "$list-group-border-width", "$value": "{size.border.width}" },
25
+ "radius": { "source": "$list-group-border-radius", "$value": "{size.border.radius.base}" }
23
26
  }
24
27
  }
25
28
  }
@@ -1,24 +1,18 @@
1
1
  {
2
2
  "spacing": {
3
+ "$type": "dimension",
3
4
  "paragraph": {
4
- "margin-bottom": { "value": "1rem", "type": "dimension", "source": "$paragraph-margin-bottom" }
5
+ "margin-bottom": { "source": "$paragraph-margin-bottom", "$value": "1rem" }
5
6
  },
6
- "mark-padding": { "value": ".2em", "type": "dimension", "source": "$mark-padding" }
7
+ "mark-padding": { "source": "$mark-padding", "$value": ".2em" }
7
8
  },
8
9
  "typography": {
10
+ "$type": "dimension",
9
11
  "blockquote": {
10
12
  "small": {
11
- "font-size": {
12
- "value": "{typography.font.size.small.base}",
13
- "type": "dimension",
14
- "source": "$blockquote-small-font-size"
15
- }
13
+ "font-size": { "source": "$blockquote-small-font-size", "$value": "{typography.font.size.sm}" }
16
14
  },
17
- "font-size": {
18
- "value": "calc({typography.font.size.base} * 1.25)",
19
- "type": "dimension",
20
- "source": "$blockquote-font-size"
21
- }
15
+ "font-size": { "source": "$blockquote-font-size", "$value": "calc({typography.font.size.base} * 1.25)" }
22
16
  }
23
17
  }
24
18
  }
@@ -1,12 +1,31 @@
1
1
  {
2
2
  "size": {
3
+ "$type": "dimension",
3
4
  "breakpoint": {
4
- "xs": { "value": "0", "type": "dimension", "description": "Starting breakpoint for portrait phones." },
5
- "sm": { "value": "576px", "type": "dimension", "description": "Starting breakpoint for landscape phones." },
6
- "md": { "value": "768px", "type": "dimension", "description": "Starting breakpoint for tablets." },
7
- "lg": { "value": "992px", "type": "dimension", "description": "Starting breakpoint for desktops." },
8
- "xl": { "value": "1200px", "type": "dimension", "description": "Starting breakpoint for large desktops." },
9
- "xxl": { "value": "1400px", "type": "dimension", "description": "Starting breakpoint for large desktops, more than 1400px." }
5
+ "xs": {
6
+ "$value": "0px",
7
+ "$description": "Starting breakpoint for portrait phones."
8
+ },
9
+ "sm": {
10
+ "$value": "576px",
11
+ "$description": "Starting breakpoint for landscape phones."
12
+ },
13
+ "md": {
14
+ "$value": "768px",
15
+ "$description": "Starting breakpoint for tablets."
16
+ },
17
+ "lg": {
18
+ "$value": "992px",
19
+ "$description": "Starting breakpoint for desktops."
20
+ },
21
+ "xl": {
22
+ "$value": "1200px",
23
+ "$description": "Starting breakpoint for large desktops."
24
+ },
25
+ "xxl": {
26
+ "$value": "1400px",
27
+ "$description": "Starting breakpoint for large desktops, more than 1400px."
28
+ }
10
29
  }
11
30
  }
12
31
  }
@@ -1,19 +1,61 @@
1
1
  {
2
2
  "elevation": {
3
+ "$type": "number",
3
4
  "zindex": {
4
- "0": { "value": 0, "type": "ratio", "description": "z-index of level 0." },
5
- "200": { "value": 200, "type": "ratio", "description": "z-index of level 200." },
6
- "400": { "value": 400, "type": "ratio", "description": "z-index of level 400." },
7
- "600": { "value": 600, "type": "ratio", "description": "z-index of level 600." },
8
- "800": { "value": 800, "type": "ratio", "description": "z-index of level 800." },
9
- "1000": { "value": 1000, "type": "ratio", "description": "z-index of level 1000." },
10
- "1200": { "value": 1200, "type": "ratio", "description": "z-index of level 1200." },
11
- "1400": { "value": 1400, "type": "ratio", "description": "z-index of level 1400." },
12
- "1600": { "value": 1600, "type": "ratio", "description": "z-index of level 1600." },
13
- "1800": { "value": 1800, "type": "ratio", "description": "z-index of level 1800." },
14
- "2000": { "value": 2000, "type": "ratio", "description": "z-index of level 2000." },
15
- "sticky": { "value": 1020, "source": "$zindex-sticky", "type": "ratio", "description": "z-index for sticky element." },
16
- "fixed": { "value": 1030, "source": "$zindex-fixed", "type": "ratio", "description": "z-index of for fixed element." }
5
+ "0": {
6
+ "$value": 0,
7
+ "$description": "z-index of level 0."
8
+ },
9
+ "200": {
10
+ "$value": 200,
11
+ "$description": "z-index of level 200."
12
+ },
13
+ "400": {
14
+ "$value": 400,
15
+ "$description": "z-index of level 400."
16
+ },
17
+ "600": {
18
+ "$value": 600,
19
+ "$description": "z-index of level 600."
20
+ },
21
+ "800": {
22
+ "$value": 800,
23
+ "$description": "z-index of level 800."
24
+ },
25
+ "1000": {
26
+ "$value": 1000,
27
+ "$description": "z-index of level 1000."
28
+ },
29
+ "1200": {
30
+ "$value": 1200,
31
+ "$description": "z-index of level 1200."
32
+ },
33
+ "1400": {
34
+ "$value": 1400,
35
+ "$description": "z-index of level 1400."
36
+ },
37
+ "1600": {
38
+ "$value": 1600,
39
+ "$description": "z-index of level 1600."
40
+ },
41
+ "1800": {
42
+ "$value": 1800,
43
+ "$description": "z-index of level 1800."
44
+ },
45
+ "2000": {
46
+ "$value": 2000,
47
+ "$description": "z-index of level 2000."
48
+ },
49
+ "sticky": {
50
+ "source": "$zindex-sticky",
51
+ "$value": 1020,
52
+ "$description": "z-index for sticky element."
53
+ },
54
+ "fixed": {
55
+ "source": "$zindex-fixed",
56
+ "$value": 1030,
57
+ "$description": "z-index of for fixed element."
58
+ }
17
59
  }
18
60
  }
19
61
  }
@@ -1,4 +1,8 @@
1
1
  {
2
2
  "yiq-contrasted-threshold": 128,
3
- "theme-interval": { "value": "8%", "type": "percentage", "source": "$theme-color-interval" }
3
+ "theme-interval": {
4
+ "$type": "percentage",
5
+ "source": "$theme-color-interval",
6
+ "$value": "8%"
7
+ }
4
8
  }
@@ -1,36 +1,89 @@
1
1
  {
2
2
  "spacing": {
3
+ "$type": "dimension",
3
4
  "spacer": {
4
- "base": { "value": "1rem", "type": "dimension", "source": "$spacer", "description": "Basic space value" },
5
- "0": { "value": "0", "type": "dimension", "description": "Space value of level 0" },
6
- "1": { "value": "calc({spacing.spacer.base} * .25)", "type": "dimension", "description": "Space value of level 1" },
7
- "1,5": { "value": "calc({spacing.spacer.base} * .375)", "type": "dimension", "description": "Space value of level 1.5" },
8
- "2": { "value": "calc({spacing.spacer.base} * .5)", "type": "dimension", "description": "Space value of level 2" },
9
- "2,5": { "value": "calc({spacing.spacer.base} * .75)", "type": "dimension", "description": "Space value of level 2.5" },
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" },
12
- "4": { "value": "calc({spacing.spacer.base} * 1.5)", "type": "dimension", "description": "Space value of level 4" },
13
- "4,5": { "value": "calc({spacing.spacer.base} * 2)", "type": "dimension", "description": "Space value of level 4.5" },
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" },
16
- "6": { "value": "calc({spacing.spacer.base} * 5)", "type": "dimension", "description": "Space value of level 6" }
5
+ "0": {
6
+ "$value": "0",
7
+ "$description": "Space value of level 0"
8
+ },
9
+ "1": {
10
+ "$value": "calc({spacing.spacer.base} * .25)",
11
+ "$description": "Space value of level 1"
12
+ },
13
+ "2": {
14
+ "$value": "calc({spacing.spacer.base} * .5)",
15
+ "$description": "Space value of level 2"
16
+ },
17
+ "3": {
18
+ "$value": "{spacing.spacer.base}",
19
+ "$description": "Space value of level 3"
20
+ },
21
+ "4": {
22
+ "$value": "calc({spacing.spacer.base} * 1.5)",
23
+ "$description": "Space value of level 4"
24
+ },
25
+ "5": {
26
+ "$value": "calc({spacing.spacer.base} * 3)",
27
+ "$description": "Space value of level 5"
28
+ },
29
+ "6": {
30
+ "$value": "calc({spacing.spacer.base} * 5)",
31
+ "$description": "Space value of level 6"
32
+ },
33
+ "base": {
34
+ "source": "$spacer",
35
+ "$value": "1rem",
36
+ "$description": "Basic space value"
37
+ },
38
+ "1.5": {
39
+ "$value": "calc({spacing.spacer.base} * .375)",
40
+ "$description": "Space value of level 1.5"
41
+ },
42
+ "2.5": {
43
+ "$value": "calc({spacing.spacer.base} * .75)",
44
+ "$description": "Space value of level 2.5"
45
+ },
46
+ "3.5": {
47
+ "$value": "calc({spacing.spacer.base} * 1.25)",
48
+ "$description": "Space value of level 3.5"
49
+ },
50
+ "4.5": {
51
+ "$value": "calc({spacing.spacer.base} * 2)",
52
+ "$description": "Space value of level 4.5"
53
+ },
54
+ "5.5": {
55
+ "$value": "calc({spacing.spacer.base} * 4)",
56
+ "$description": "Space value of level 5.5"
57
+ }
17
58
  },
18
59
  "label": {
19
60
  "margin-bottom": {
20
- "value": ".5rem", "type": "dimension", "source": "$label-margin-bottom", "description": "Margin bottom for label."
61
+ "source": "$label-margin-bottom",
62
+ "$value": ".5rem",
63
+ "$description": "Margin bottom for label."
21
64
  }
22
65
  },
23
66
  "table": {
24
67
  "cell": {
25
68
  "padding": {
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." }
69
+ "base": {
70
+ "source": "$table-cell-padding",
71
+ "$value": ".75rem",
72
+ "$description": "Padding for tables."
73
+ },
74
+ "sm": {
75
+ "source": "$table-cell-padding-sm",
76
+ "$value": ".3rem",
77
+ "$description": "Padding sm for tables."
78
+ }
28
79
  }
29
80
  }
30
81
  },
31
82
  "grid": {
32
83
  "gutter-width": {
33
- "value": "24px", "type": "dimension", "source": "$grid-gutter-width", "description": "Grid gutter width value."
84
+ "source": "$grid-gutter-width",
85
+ "$value": "24px",
86
+ "$description": "Grid gutter width value."
34
87
  }
35
88
  }
36
89
  }
@@ -1,13 +1,50 @@
1
1
  {
2
2
  "transition": {
3
- "base": { "value": "all .2s ease-in-out", "type": "transition", "source": "$transition-base", "description": "Generic transition for any property change" },
4
- "fade": { "value": "opacity .15s linear", "type": "transition", "source": "$transition-fade", "description": "Opacity transition that takes 150ms" },
3
+ "$type": "transition",
4
+ "base": {
5
+ "source": "$transition-base",
6
+ "$value": {
7
+ "property": "all",
8
+ "duration": ".2s",
9
+ "timing-function": "ease-in-out",
10
+ "delay": "0s",
11
+ "behavior": "normal"
12
+ },
13
+ "$description": "Generic transition for any property change"
14
+ },
15
+ "fade": {
16
+ "source": "$transition-fade",
17
+ "$value": {
18
+ "property": "opacity",
19
+ "duration": ".15s",
20
+ "timing-function": "linear",
21
+ "delay": "0s",
22
+ "behavior": "normal"
23
+ },
24
+ "$description": "Opacity transition that takes 150ms"
25
+ },
5
26
  "collapse": {
6
27
  "height": {
7
- "value": "height .35s ease", "type": "transition", "source": "$transition-collapse", "description": "Collapse transition for height that takes 350ms"
28
+ "source": "$transition-collapse",
29
+ "$value": {
30
+ "property": "height",
31
+ "duration": ".35s",
32
+ "timing-function": "ease",
33
+ "delay": "0s",
34
+ "behavior": "normal"
35
+ },
36
+ "$description": "Collapse transition for height that takes 350ms"
8
37
  },
9
38
  "width": {
10
- "value": "width .35s ease", "type": "transition", "source": "$transition-collapse-width", "description": "Collapse transition for width that takes 350ms"
39
+ "source": "$transition-collapse-width",
40
+ "$value": {
41
+ "property": "width",
42
+ "duration": ".35s",
43
+ "timing-function": "ease",
44
+ "delay": "0s",
45
+ "behavior": "normal"
46
+ },
47
+ "$description": "Collapse transition for width that takes 350ms"
11
48
  }
12
49
  }
13
50
  }