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

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 (258) hide show
  1. package/bin/paragon-scripts.js +10 -0
  2. package/dist/Annotation/index.scss +16 -0
  3. package/dist/Card/CardDeck.js +0 -2
  4. package/dist/Card/CardDeck.js.map +1 -1
  5. package/dist/Card/index.scss +8 -6
  6. package/dist/Carousel/index.scss +24 -1
  7. package/dist/Chip/ChipIcon.d.ts +1 -1
  8. package/dist/CloseButton/index.scss +8 -0
  9. package/dist/ColorPicker/index.scss +1 -1
  10. package/dist/Container/index.d.ts +16 -0
  11. package/dist/Container/index.js +15 -13
  12. package/dist/Container/index.js.map +1 -1
  13. package/dist/DataTable/index.scss +12 -0
  14. package/dist/Dropdown/dropdown-bootstrap.scss +6 -0
  15. package/dist/Dropzone/index.scss +34 -0
  16. package/dist/Form/_FormText.scss +1 -1
  17. package/dist/Form/_bootstrap-custom-forms.scss +40 -0
  18. package/dist/Form/_index.scss +9 -0
  19. package/dist/Form/_mixins.scss +22 -0
  20. package/dist/IconButton/index.d.ts +1 -1
  21. package/dist/IconButton/index.js +1 -1
  22. package/dist/IconButton/index.js.map +1 -1
  23. package/dist/IconButton/index.scss +146 -0
  24. package/dist/Menu/SelectMenu.js +9 -4
  25. package/dist/Menu/SelectMenu.js.map +1 -1
  26. package/dist/Menu/index.scss +8 -0
  27. package/dist/Modal/ModalContext.d.ts +15 -0
  28. package/dist/Modal/ModalContext.js +7 -14
  29. package/dist/Modal/ModalContext.js.map +1 -1
  30. package/dist/Modal/ModalDialog.d.ts +110 -0
  31. package/dist/Modal/ModalDialog.js +30 -24
  32. package/dist/Modal/ModalDialog.js.map +1 -1
  33. package/dist/Modal/ModalDialogHeader.d.ts +10 -0
  34. package/dist/Modal/ModalDialogHeader.js +6 -7
  35. package/dist/Modal/ModalDialogHeader.js.map +1 -1
  36. package/dist/Modal/ModalLayer.d.ts +53 -0
  37. package/dist/Modal/ModalLayer.js +5 -14
  38. package/dist/Modal/ModalLayer.js.map +1 -1
  39. package/dist/Modal/Portal.d.ts +11 -0
  40. package/dist/Modal/Portal.js +5 -6
  41. package/dist/Modal/Portal.js.map +1 -1
  42. package/dist/Modal/_ModalDialog.scss +22 -2
  43. package/dist/Nav/index.scss +8 -0
  44. package/dist/Overlay/index.d.ts +2 -2
  45. package/dist/PageBanner/index.scss +2 -2
  46. package/dist/Pagination/pagination-bootstrap.scss +9 -0
  47. package/dist/Popover/index.scss +1 -1
  48. package/dist/ProductTour/Checkpoint.scss +1 -1
  49. package/dist/ProgressBar/bootstrap-progress.scss +20 -5
  50. package/dist/ProgressBar/index.scss +3 -3
  51. package/dist/Stepper/index.scss +1 -1
  52. package/dist/Sticky/index.scss +12 -0
  53. package/dist/Toast/index.scss +13 -1
  54. package/dist/Tooltip/index.scss +16 -0
  55. package/dist/core.css +913 -470
  56. package/dist/core.css.map +1 -1
  57. package/dist/core.min.css +1 -1
  58. package/dist/hooks/useArrowKeyNavigation.js +2 -3
  59. package/dist/hooks/useArrowKeyNavigation.js.map +1 -1
  60. package/dist/index.d.ts +19 -5
  61. package/dist/index.js +5 -5
  62. package/dist/light.css +2035 -1315
  63. package/dist/light.css.map +1 -1
  64. package/dist/light.min.css +1 -1
  65. package/icons/es5/Newsstand.js +15 -0
  66. package/icons/es5/index.js +1 -0
  67. package/icons/es5/index.ts +1 -0
  68. package/icons/jsx/Newsstand.jsx +17 -0
  69. package/icons/jsx/index.jsx +1 -0
  70. package/icons/svg/newsstand.svg +1 -0
  71. package/lib/build-tokens.js +67 -31
  72. package/package.json +8 -5
  73. package/src/Annotation/index.scss +16 -0
  74. package/src/Card/CardDeck.jsx +0 -3
  75. package/src/Card/README.md +0 -31
  76. package/src/Card/index.scss +8 -6
  77. package/src/Carousel/index.scss +24 -1
  78. package/src/CloseButton/index.scss +8 -0
  79. package/src/ColorPicker/index.scss +1 -1
  80. package/src/Container/{Container.test.jsx → Container.test.tsx} +14 -8
  81. package/src/Container/README.md +4 -0
  82. package/src/Container/index.tsx +64 -0
  83. package/src/DataTable/index.scss +12 -0
  84. package/src/DataTable/selection/tests/ControlledSelectHeader.test.jsx +7 -7
  85. package/src/Dropdown/dropdown-bootstrap.scss +6 -0
  86. package/src/Dropzone/index.scss +34 -0
  87. package/src/Form/_FormText.scss +1 -1
  88. package/src/Form/_bootstrap-custom-forms.scss +40 -0
  89. package/src/Form/_index.scss +9 -0
  90. package/src/Form/_mixins.scss +22 -0
  91. package/src/IconButton/index.scss +146 -0
  92. package/src/IconButton/index.tsx +1 -1
  93. package/src/Menu/SelectMenu.jsx +5 -0
  94. package/src/Menu/SelectMenu.test.jsx +6 -0
  95. package/src/Menu/index.scss +8 -0
  96. package/src/Menu/select-menu.md +8 -0
  97. package/src/Modal/{ModalContext.jsx → ModalContext.tsx} +19 -16
  98. package/src/Modal/{ModalDialog.jsx → ModalDialog.tsx} +57 -26
  99. package/src/Modal/{ModalDialogHeader.jsx → ModalDialogHeader.tsx} +17 -11
  100. package/src/Modal/{ModalLayer.jsx → ModalLayer.tsx} +17 -17
  101. package/src/Modal/{Portal.jsx → Portal.tsx} +10 -7
  102. package/src/Modal/_ModalDialog.scss +22 -2
  103. package/src/Modal/modal-dialog.mdx +95 -6
  104. package/src/Modal/tests/{ModalDialog.test.jsx → ModalDialog.test.tsx} +18 -10
  105. package/src/Modal/tests/{ModalLayer.test.jsx → ModalLayer.test.tsx} +5 -5
  106. package/src/Modal/tests/{Portal.test.jsx → Portal.test.tsx} +3 -3
  107. package/src/Nav/index.scss +8 -0
  108. package/src/PageBanner/index.scss +2 -2
  109. package/src/Pagination/pagination-bootstrap.scss +9 -0
  110. package/src/Popover/index.scss +1 -1
  111. package/src/ProductTour/Checkpoint.scss +1 -1
  112. package/src/ProgressBar/bootstrap-progress.scss +20 -5
  113. package/src/ProgressBar/index.scss +3 -3
  114. package/src/Stepper/index.scss +1 -1
  115. package/src/Sticky/index.scss +12 -0
  116. package/src/Toast/index.scss +13 -1
  117. package/src/Tooltip/index.scss +16 -0
  118. package/src/hooks/useArrowKeyNavigation.jsx +1 -2
  119. package/src/index.d.ts +19 -5
  120. package/src/index.js +5 -5
  121. package/styles/css/core/abstraction-variables.css +44 -0
  122. package/styles/css/core/custom-media-breakpoints.css +3 -4
  123. package/styles/css/core/index.css +2 -1
  124. package/styles/css/core/variables.css +494 -430
  125. package/styles/css/themes/light/abstraction-variables.css +304 -0
  126. package/styles/css/themes/light/index.css +1 -0
  127. package/styles/css/themes/light/utility-classes.css +2 -3
  128. package/styles/css/themes/light/variables.css +1753 -1334
  129. package/styles/scss/core/_typography.scss +16 -4
  130. package/styles/scss/core/_utilities.scss +7 -3
  131. package/styles/scss/core/_variables.scss +43 -30
  132. package/styles/scss/core/core.scss +1 -0
  133. package/tokens/src/core/alias/size.json +6 -5
  134. package/tokens/src/core/components/ActionRow.json +3 -2
  135. package/tokens/src/core/components/Alert.json +12 -10
  136. package/tokens/src/core/components/Annotation.json +9 -7
  137. package/tokens/src/core/components/Avatar.json +9 -9
  138. package/tokens/src/core/components/AvatarButton.json +4 -3
  139. package/tokens/src/core/components/Badge.json +12 -9
  140. package/tokens/src/core/components/Breadcrumb.json +7 -5
  141. package/tokens/src/core/components/Bubble.json +4 -3
  142. package/tokens/src/core/components/Button/core.json +35 -59
  143. package/tokens/src/core/components/Card.json +33 -44
  144. package/tokens/src/core/components/Carousel.json +39 -13
  145. package/tokens/src/core/components/Chip.json +13 -21
  146. package/tokens/src/core/components/ChipCarousel.json +4 -5
  147. package/tokens/src/core/components/CloseButton.json +2 -6
  148. package/tokens/src/core/components/Code.json +9 -8
  149. package/tokens/src/core/components/Collapsible.json +10 -13
  150. package/tokens/src/core/components/ColorPicker.json +3 -2
  151. package/tokens/src/core/components/Container.json +6 -5
  152. package/tokens/src/core/components/DataTable.json +17 -9
  153. package/tokens/src/core/components/Dropdown.json +24 -29
  154. package/tokens/src/core/components/Dropzone.json +5 -7
  155. package/tokens/src/core/components/Form/other.json +5 -4
  156. package/tokens/src/core/components/Form/size.json +72 -119
  157. package/tokens/src/core/components/Form/spacing.json +39 -83
  158. package/tokens/src/core/components/Form/transition.json +43 -7
  159. package/tokens/src/core/components/Form/typography.json +24 -88
  160. package/tokens/src/core/components/Icon.json +6 -5
  161. package/tokens/src/core/components/IconButton.json +4 -7
  162. package/tokens/src/core/components/Image.json +7 -6
  163. package/tokens/src/core/components/Menu.json +14 -12
  164. package/tokens/src/core/components/Modal.json +26 -21
  165. package/tokens/src/core/components/Nav.json +14 -16
  166. package/tokens/src/core/components/Navbar.json +15 -30
  167. package/tokens/src/core/components/Pagination.json +23 -24
  168. package/tokens/src/core/components/Popover.json +18 -14
  169. package/tokens/src/core/components/ProductTour.json +8 -14
  170. package/tokens/src/core/components/ProgressBar.json +29 -14
  171. package/tokens/src/core/components/SearchField.json +7 -9
  172. package/tokens/src/core/components/SelectableBox.json +4 -3
  173. package/tokens/src/core/components/Sheet.json +3 -2
  174. package/tokens/src/core/components/Spinner.json +9 -7
  175. package/tokens/src/core/components/Stack.json +2 -1
  176. package/tokens/src/core/components/Stepper.json +12 -14
  177. package/tokens/src/core/components/Sticky.json +2 -1
  178. package/tokens/src/core/components/Tab.json +8 -7
  179. package/tokens/src/core/components/Tabs.json +5 -5
  180. package/tokens/src/core/components/Toast.json +11 -8
  181. package/tokens/src/core/components/Tooltip.json +13 -11
  182. package/tokens/src/core/components/general/caret.json +5 -3
  183. package/tokens/src/core/components/general/headings.json +5 -4
  184. package/tokens/src/core/components/general/hr.json +3 -2
  185. package/tokens/src/core/components/general/input.json +19 -19
  186. package/tokens/src/core/components/general/link.json +13 -12
  187. package/tokens/src/core/components/general/list.json +9 -6
  188. package/tokens/src/core/components/general/text.json +6 -12
  189. package/tokens/src/core/global/breakpoints.json +25 -6
  190. package/tokens/src/core/global/elevation.json +55 -13
  191. package/tokens/src/core/global/other.json +5 -1
  192. package/tokens/src/core/global/spacing.json +70 -17
  193. package/tokens/src/core/global/transition.json +41 -4
  194. package/tokens/src/core/global/typography.json +248 -53
  195. package/tokens/src/core/utilities/color.json +35 -4
  196. package/tokens/src/themes/light/alias/color.json +276 -75
  197. package/tokens/src/themes/light/components/Alert.json +15 -26
  198. package/tokens/src/themes/light/components/Annotation.json +27 -13
  199. package/tokens/src/themes/light/components/Avatar.json +2 -1
  200. package/tokens/src/themes/light/components/Badge.json +57 -122
  201. package/tokens/src/themes/light/components/Breadcrumb.json +6 -5
  202. package/tokens/src/themes/light/components/Bubble.json +9 -8
  203. package/tokens/src/themes/light/components/Button/brand.json +171 -119
  204. package/tokens/src/themes/light/components/Button/core.json +8 -9
  205. package/tokens/src/themes/light/components/Button/danger.json +171 -112
  206. package/tokens/src/themes/light/components/Button/dark.json +188 -106
  207. package/tokens/src/themes/light/components/Button/info.json +186 -112
  208. package/tokens/src/themes/light/components/Button/light.json +186 -110
  209. package/tokens/src/themes/light/components/Button/primary.json +178 -116
  210. package/tokens/src/themes/light/components/Button/secondary.json +166 -132
  211. package/tokens/src/themes/light/components/Button/success.json +176 -117
  212. package/tokens/src/themes/light/components/Button/tertiary.json +34 -60
  213. package/tokens/src/themes/light/components/Button/warning.json +164 -128
  214. package/tokens/src/themes/light/components/Card.json +10 -21
  215. package/tokens/src/themes/light/components/Carousel.json +12 -11
  216. package/tokens/src/themes/light/components/Chip.json +14 -26
  217. package/tokens/src/themes/light/components/CloseButton.json +12 -2
  218. package/tokens/src/themes/light/components/Code.json +7 -9
  219. package/tokens/src/themes/light/components/DataTable.json +7 -11
  220. package/tokens/src/themes/light/components/Dropdown.json +17 -20
  221. package/tokens/src/themes/light/components/Dropzone.json +49 -11
  222. package/tokens/src/themes/light/components/Form/color.json +101 -155
  223. package/tokens/src/themes/light/components/Form/elevation.json +38 -42
  224. package/tokens/src/themes/light/components/Form/other.json +44 -41
  225. package/tokens/src/themes/light/components/IconButton.json +408 -256
  226. package/tokens/src/themes/light/components/Image.json +7 -4
  227. package/tokens/src/themes/light/components/Menu.json +12 -10
  228. package/tokens/src/themes/light/components/Modal.json +22 -12
  229. package/tokens/src/themes/light/components/Nav.json +82 -94
  230. package/tokens/src/themes/light/components/Navbar.json +32 -76
  231. package/tokens/src/themes/light/components/OverflowScroll.json +3 -1
  232. package/tokens/src/themes/light/components/PageBanner.json +11 -10
  233. package/tokens/src/themes/light/components/Pagination.json +19 -23
  234. package/tokens/src/themes/light/components/Popover.json +22 -27
  235. package/tokens/src/themes/light/components/ProductTour.json +9 -20
  236. package/tokens/src/themes/light/components/ProgressBar.json +12 -10
  237. package/tokens/src/themes/light/components/Scrollable.json +3 -3
  238. package/tokens/src/themes/light/components/SearchField.json +9 -9
  239. package/tokens/src/themes/light/components/Sheet.json +6 -7
  240. package/tokens/src/themes/light/components/Stepper.json +12 -17
  241. package/tokens/src/themes/light/components/Sticky.json +31 -6
  242. package/tokens/src/themes/light/components/Tab.json +47 -24
  243. package/tokens/src/themes/light/components/Toast.json +26 -14
  244. package/tokens/src/themes/light/components/Tooltip.json +25 -10
  245. package/tokens/src/themes/light/components/general/body.json +3 -2
  246. package/tokens/src/themes/light/components/general/headings.json +2 -1
  247. package/tokens/src/themes/light/components/general/hr.json +3 -6
  248. package/tokens/src/themes/light/components/general/input.json +11 -4
  249. package/tokens/src/themes/light/components/general/link.json +34 -43
  250. package/tokens/src/themes/light/components/general/list.json +15 -19
  251. package/tokens/src/themes/light/components/general/text.json +5 -6
  252. package/tokens/src/themes/light/global/color.json +1592 -867
  253. package/tokens/src/themes/light/global/elevation.json +481 -93
  254. package/tokens/style-dictionary.js +342 -144
  255. package/tokens/utils.js +176 -6
  256. package/src/Container/index.jsx +0 -49
  257. package/tokens/src/core/global/display.json +0 -22
  258. /package/src/Truncate/{Truncate.test.js → utils.test.js} +0 -0
@@ -1,47 +1,51 @@
1
1
  {
2
2
  "typography": {
3
+ "$type": "dimension",
3
4
  "popover": {
4
- "font-size": { "value": "{typography.font.size.sm}", "type": "dimension", "source": "$popover-font-size" }
5
+ "font-size": { "source": "$popover-font-size", "$value": "{typography.font.size.sm}" }
5
6
  }
6
7
  },
7
8
  "size": {
9
+ "$type": "dimension",
8
10
  "popover": {
9
- "max-width": { "value": "480px", "type": "dimension", "source": "$popover-max-width" },
11
+ "max-width": { "source": "$popover-max-width", "$value": "480px" },
10
12
  "border": {
11
- "width": { "value": "{size.border.width}", "type": "dimension", "source": "$popover-border-width" },
12
- "radius": { "value": "{size.border.radius.sm}", "type": "dimension", "source": "$popover-border-radius" }
13
+ "width": { "source": "$popover-border-width", "$value": "{size.border.width}" },
14
+ "radius": { "source": "$popover-border-radius", "$value": "{size.border.radius.sm}" }
13
15
  },
14
16
  "icon": {
15
- "height": { "value": "1rem", "type": "dimension", "source": "$popover-icon-height" },
16
- "width": { "value": "1rem", "type": "dimension", "source": "$popover-icon-width" }
17
+ "height": { "source": "$popover-icon-height", "$value": "1rem" },
18
+ "width": { "source": "$popover-icon-width", "$value": "1rem" }
17
19
  },
18
20
  "arrow": {
19
- "width": { "value": "1rem", "type": "dimension", "source": "$popover-arrow-width" },
20
- "height": { "value": ".5rem", "type": "dimension", "source": "$popover-arrow-height" }
21
+ "width": { "source": "$popover-arrow-width", "$value": "1rem" },
22
+ "height": { "source": "$popover-arrow-height", "$value": ".5rem" }
21
23
  }
22
24
  }
23
25
  },
24
26
  "elevation": {
27
+ "$type": "number",
25
28
  "popover": {
26
- "zindex": { "value": "1060", "type": "ratio", "source": "$zindex-popover" }
29
+ "zindex": { "source": "$zindex-popover", "$value": "1060" }
27
30
  }
28
31
  },
29
32
  "spacing": {
33
+ "$type": "dimension",
30
34
  "popover": {
31
35
  "header": {
32
36
  "padding": {
33
- "y": { "value": ".5rem", "type": "dimension", "source": "$popover-header-padding-y" },
34
- "x": { "value": "1rem", "type": "dimension", "source": "$popover-header-padding-x" }
37
+ "y": { "source": "$popover-header-padding-y", "$value": ".5rem" },
38
+ "x": { "source": "$popover-header-padding-x", "$value": "1rem" }
35
39
  }
36
40
  },
37
41
  "body": {
38
42
  "padding": {
39
- "y": { "value": "{spacing.popover.header.padding.y}", "type": "dimension", "source": "$popover-body-padding-y" },
40
- "x": { "value": "{spacing.popover.header.padding.x}", "type": "dimension", "source": "$popover-body-padding-x" }
43
+ "y": { "source": "$popover-body-padding-y", "$value": "{spacing.popover.header.padding.y}" },
44
+ "x": { "source": "$popover-body-padding-x", "$value": "{spacing.popover.header.padding.x}" }
41
45
  }
42
46
  },
43
47
  "icon": {
44
- "margin-right": { "value": ".5rem", "type": "dimension", "source": "$popover-icon-margin-right" }
48
+ "margin-right": { "source": "$popover-icon-margin-right", "$value": ".5rem" }
45
49
  }
46
50
  }
47
51
  }
@@ -1,31 +1,25 @@
1
1
  {
2
2
  "size": {
3
+ "$type": "dimension",
3
4
  "product-tour": {
4
5
  "checkpoint": {
5
6
  "width": {
6
- "border": { "value": "8px", "type": "dimension", "source": "$checkpoint-border-width" },
7
- "arrow": { "value": "15px", "type": "dimension", "source": "$checkpoint-arrow-width" },
8
- "max": { "value": "480px", "type": "dimension", "source": "$checkpoint-max-width" }
7
+ "border": { "source": "$checkpoint-border-width", "$value": "8px" },
8
+ "arrow": { "source": "$checkpoint-arrow-width", "$value": "15px" },
9
+ "max": { "source": "$checkpoint-max-width", "$value": "480px" }
9
10
  },
10
11
  "arrow": {
11
- "top": {
12
- "value": "{size.product-tour.checkpoint.width.arrow}",
13
- "type": "dimension",
14
- "source": "$checkpoint-arrow-border-top"
15
- },
16
- "transparent": {
17
- "value": "{size.product-tour.checkpoint.width.arrow}",
18
- "type": "dimension",
19
- "source": "$checkpoint-arrow-border-transparent"
20
- }
12
+ "top": { "source": "$checkpoint-arrow-border-top", "$value": "{size.product-tour.checkpoint.width.arrow}" },
13
+ "transparent": { "source": "$checkpoint-arrow-border-transparent", "$value": "{size.product-tour.checkpoint.width.arrow}" }
21
14
  }
22
15
  }
23
16
  }
24
17
  },
25
18
  "elevation": {
19
+ "$type": "number",
26
20
  "product-tour": {
27
21
  "checkpoint": {
28
- "zindex": { "value": "1060", "type": "ratio", "source": "$checkpoint-z-index" }
22
+ "zindex": { "source": "$checkpoint-z-index", "$value": "1060" }
29
23
  }
30
24
  }
31
25
  }
@@ -1,38 +1,53 @@
1
1
  {
2
2
  "typography": {
3
+ "$type": "dimension",
3
4
  "progress-bar": {
4
- "font-size": {
5
- "value": "calc({typography.font.size.base} * .75)", "type": "dimension", "source": "$progress-font-size"
6
- }
5
+ "font-size": { "source": "$progress-font-size", "$value": "calc({typography.font.size.base} * .75)" }
7
6
  }
8
7
  },
9
8
  "size": {
9
+ "$type": "dimension",
10
10
  "progress-bar": {
11
11
  "height": {
12
- "base": { "value": "1rem", "type": "dimension", "source": "$progress-height" },
13
- "annotated": { "value": ".3125rem", "type": "dimension", "source": "$annotated-progress-height" }
12
+ "base": { "source": "$progress-height", "$value": "1rem" },
13
+ "annotated": { "source": "$annotated-progress-height", "$value": ".3125rem" }
14
14
  },
15
15
  "border": {
16
- "width": { "value": "1px", "type": "dimension", "source": "$progress-bar-border-width" },
17
- "radius": { "value": "0", "type": "dimension", "source": "$progress-border-radius" }
16
+ "width": { "source": "$progress-bar-border-width", "$value": "1px" },
17
+ "radius": { "source": "$progress-border-radius", "$value": "0" }
18
18
  },
19
- "threshold-circle": { "value": ".5625rem", "type": "dimension", "source": "$progress-threshold-circle" }
19
+ "threshold-circle": { "source": "$progress-threshold-circle", "$value": ".5625rem" }
20
20
  }
21
21
  },
22
22
  "spacing": {
23
+ "$type": "dimension",
23
24
  "progress-bar": {
24
25
  "hint": {
25
- "annotation-gap": { "value": ".5rem", "type": "dimension", "source": "$progress-hint-annotation-gap" }
26
+ "annotation-gap": { "source": "$progress-hint-annotation-gap", "$value": ".5rem" }
26
27
  }
27
28
  }
28
29
  },
29
30
  "transition": {
31
+ "$type": "transition",
30
32
  "progress-bar": {
31
- "bar": {
32
- "animation-timing": {
33
- "value": "1s linear infinite", "type": "transition", "source": "$progress-bar-animation-timing"
34
- },
35
- "transition": { "value": "width .6s ease", "type": "transition", "source": "$progress-bar-transition" }
33
+ "animation-timing": {
34
+ "source": "$progress-bar-animation-timing",
35
+ "$value": {
36
+ "duration": "1s",
37
+ "timing-function": "linear",
38
+ "delay": "0s",
39
+ "iteration-count": "infinite"
40
+ }
41
+ },
42
+ "transition": {
43
+ "source": "$progress-bar-transition",
44
+ "$value": {
45
+ "property": "width",
46
+ "duration": ".6s",
47
+ "timing-function": "ease",
48
+ "delay": "0s",
49
+ "behavior": "normal"
50
+ }
36
51
  }
37
52
  }
38
53
  }
@@ -1,23 +1,21 @@
1
1
  {
2
2
  "size": {
3
+ "$type": "dimension",
3
4
  "search-field": {
4
5
  "border": {
5
6
  "width": {
6
- "base": { "value": ".0625rem", "type": "dimension", "source": "$search-border-width" },
7
- "focus": { "value": ".3125rem", "type": "dimension", "source": "$search-border-focus-width" }
7
+ "base": { "source": "$search-border-width", "$value": ".0625rem" },
8
+ "focus": { "source": "$search-border-focus-width", "$value": ".3125rem" }
8
9
  },
9
- "radius": { "value": "0", "type": "dimension", "source": "$search-border-radius" }
10
+ "radius": { "source": "$search-border-radius", "$value": "0" }
10
11
  },
11
- "search-input-height": {
12
- "value": "calc({typography.form.input.line-height.base} * 1em + {spacing.form.input.padding.y.base} * 2)",
13
- "type": "dimension",
14
- "source": "$input-height-search"
15
- }
12
+ "search-input-height": { "source": "$input-height-search", "$value": "calc({typography.form.input.line-height.base} * 1em + {spacing.form.input.padding.y.base} * 2)" }
16
13
  }
17
14
  },
18
15
  "spacing": {
16
+ "$type": "dimension",
19
17
  "search-field": {
20
- "margin-button": { "value": ".5rem", "type": "dimension", "source": "$search-button-margin" }
18
+ "margin-button": { "source": "$search-button-margin", "$value": ".5rem" }
21
19
  }
22
20
  }
23
21
  }
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "spacing": {
3
+ "$type": "dimension",
3
4
  "selectable-box": {
4
- "padding": { "value": "1rem", "type": "dimension", "source": "$selectable-box-padding" },
5
- "border-radius": { "value": ".25rem", "type": "dimension", "source": "$selectable-box-border-radius" },
6
- "box-space": { "value": ".75rem", "type": "dimension", "source": "$selectable-box-space" }
5
+ "padding": { "source": "$selectable-box-padding", "$value": "1rem" },
6
+ "border-radius": { "source": "$selectable-box-border-radius", "$value": ".25rem" },
7
+ "box-space": { "source": "$selectable-box-space", "$value": ".75rem" }
7
8
  }
8
9
  }
9
10
  }
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "elevation": {
3
+ "$type": "number",
3
4
  "sheet": {
4
5
  "zindex": {
5
- "backdrop": { "value": "1031", "type": "ratio", "source": "$zindex-sheet-backdrop" },
6
- "main": { "value": "1032", "type": "ratio", "source": "$zindex-sheet" }
6
+ "backdrop": { "source": "$zindex-sheet-backdrop", "$value": "1031" },
7
+ "main": { "source": "$zindex-sheet", "$value": "1032" }
7
8
  }
8
9
  }
9
10
  }
@@ -1,19 +1,21 @@
1
1
  {
2
2
  "size": {
3
+ "$type": "dimension",
3
4
  "spinner": {
4
5
  "base": {
5
- "width": { "value": "2rem", "type": "dimension", "source": "$spinner-width" },
6
- "height": { "value": "{size.spinner.base.width}", "type": "dimension", "source": "$spinner-height" },
7
- "border-width": { "value": ".25em", "type": "dimension", "source": "$spinner-border-width" }
6
+ "width": { "source": "$spinner-width", "$value": "2rem" },
7
+ "height": { "source": "$spinner-height", "$value": "{size.spinner.base.width}" },
8
+ "border-width": { "source": "$spinner-border-width", "$value": ".25em" }
8
9
  },
9
10
  "sm": {
10
- "width": { "value": "1rem", "type": "dimension", "source": "$spinner-width-sm" },
11
- "height": { "value": "{size.spinner.sm.width}", "type": "dimension", "source": "$spinner-height-sm" },
12
- "border-width": { "value": ".2em", "type": "dimension", "source": "$spinner-border-width-sm" }
11
+ "width": { "source": "$spinner-width-sm", "$value": "1rem" },
12
+ "height": { "source": "$spinner-height-sm", "$value": "{size.spinner.sm.width}" },
13
+ "border-width": { "source": "$spinner-border-width-sm", "$value": ".2em" }
13
14
  }
14
15
  }
15
16
  },
16
17
  "spacing": {
17
- "vertical-align": { "value": ".125em", "type": "dimension", "source": "$spinner-vertical-align" }
18
+ "$type": "dimension",
19
+ "vertical-align": { "source": "$spinner-vertical-align", "$value": ".125em" }
18
20
  }
19
21
  }
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "size": {
3
+ "$type": "dimension",
3
4
  "stack": {
4
- "gap": { "value": "0", "type": "dimension", "source": "$stack-gap" }
5
+ "gap": { "source": "$stack-gap", "$value": "0" }
5
6
  }
6
7
  }
7
8
  }
@@ -1,42 +1,40 @@
1
1
  {
2
2
  "spacing": {
3
+ "$type": "dimension",
3
4
  "stepper": {
4
5
  "header": {
5
6
  "padding": {
6
- "y": { "value": ".75rem", "type": "dimension", "source": "$stepper-header-padding-y" },
7
- "x": { "value": "{spacing.spacer.base}", "type": "dimension", "source": "$stepper-header-padding-x" }
7
+ "y": { "source": "$stepper-header-padding-y", "$value": ".75rem" },
8
+ "x": { "source": "$stepper-header-padding-x", "$value": "{spacing.spacer.base}" }
8
9
  },
9
10
  "step": {
10
- "padding": {
11
- "value": ".25rem", "type": "dimension", "source": "$stepper-header-step-padding"
12
- },
11
+ "padding": { "source": "$stepper-header-step-padding", "$value": ".25rem" },
13
12
  "list": {
14
13
  "padding": {
15
- "y": { "value": ".25rem", "type": "dimension", "source": "$stepper-header-step-list-padding-y" },
16
- "x": { "value": "0", "type": "dimension", "source": "$stepper-header-step-list-padding-x" }
14
+ "y": { "source": "$stepper-header-step-list-padding-y", "$value": ".25rem" },
15
+ "x": { "source": "$stepper-header-step-list-padding-x", "$value": "0" }
17
16
  },
18
- "margin": { "value": "0", "type": "dimension", "source": "$stepper-header-step-list-margin" }
17
+ "margin": { "source": "$stepper-header-step-list-margin", "$value": "0" }
19
18
  }
20
19
  }
21
20
  }
22
21
  }
23
22
  },
24
23
  "size": {
24
+ "$type": "dimension",
25
25
  "stepper": {
26
26
  "header": {
27
- "height-min": { "value": "5.13rem", "type": "dimension", "source": "$stepper-header-min-height" }
27
+ "height-min": { "source": "$stepper-header-min-height", "$value": "5.13rem" }
28
28
  },
29
29
  "step": {
30
- "width-min": { "value": "0", "type": "dimension", "source": "$stepper-header-step-min-width" },
31
- "bubble-error-shadow-width": {
32
- "value": "3px", "type": "dimension", "source": "$stepper-header-step-error-bubble-shadow-width"
33
- }
30
+ "width-min": { "source": "$stepper-header-step-min-width", "$value": "0" },
31
+ "bubble-error-shadow-width": { "source": "$stepper-header-step-error-bubble-shadow-width", "$value": "3px" }
34
32
  }
35
33
  }
36
34
  },
37
35
  "typography": {
38
36
  "spacer": {
39
- "line-height": { "value": "1px", "type": "dimension", "source": "$stepper-header-line-height" }
37
+ "line-height": { "source": "$stepper-header-line-height", "$value": "1px", "$type": "number" }
40
38
  }
41
39
  }
42
40
  }
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "spacing": {
3
+ "$type": "dimension",
3
4
  "sticky": {
4
- "offset": { "value": "0", "type": "dimension", "source": "$sticky-offset" }
5
+ "offset": { "source": "$sticky-offset", "$value": "0" }
5
6
  }
6
7
  }
7
8
  }
@@ -1,18 +1,19 @@
1
1
  {
2
2
  "spacing": {
3
+ "$type": "dimension",
3
4
  "tab": {
4
5
  "more-link-dropdown-toggle": {
5
- "padding-x": { "value": ".7rem", "type": "dimension", "source": "$tab-more-link-dropdown-toggle-padding-x" },
6
- "padding-y": { "value": "{spacing.spacer.base}", "type": "dimension", "source": "$tab-more-link-dropdown-toggle-padding-y" }
6
+ "padding-x": { "source": "$tab-more-link-dropdown-toggle-padding-x", "$value": ".7rem" },
7
+ "padding-y": { "source": "$tab-more-link-dropdown-toggle-padding-y", "$value": "{spacing.spacer.base}" }
7
8
  },
8
9
  "inverse-pills-link-dropdown-toggle": {
9
- "padding-x": { "value": ".625rem", "type": "dimension", "source": "$tab-inverse-pills-link-dropdown-toggle-padding-x" },
10
- "padding-y": { "value": "{spacing.spacer.base}", "type": "dimension", "source": "$tab-inverse-pills-link-dropdown-toggle-padding-y" }
10
+ "padding-x": { "source": "$tab-inverse-pills-link-dropdown-toggle-padding-x", "$value": ".625rem" },
11
+ "padding-y": { "source": "$tab-inverse-pills-link-dropdown-toggle-padding-y", "$value": "{spacing.spacer.base}" }
11
12
  },
12
13
  "inverse-tabs-link-dropdown-toggle": {
13
- "padding-x": { "value": ".625rem", "type": "dimension", "source": "$tab-inverse-tabs-link-dropdown-toggle-padding-x" },
14
- "padding-y": { "value": "{spacing.spacer.base}", "type": "dimension", "source": "$tab-inverse-tabs-link-dropdown-toggle-padding-y" },
15
- "distance": { "value": "5px", "type": "dimension", "source": "$tab-inverse-pills-link-dropdown-distance" }
14
+ "padding-x": { "source": "$tab-inverse-tabs-link-dropdown-toggle-padding-x", "$value": ".625rem" },
15
+ "padding-y": { "source": "$tab-inverse-tabs-link-dropdown-toggle-padding-y", "$value": "{spacing.spacer.base}" },
16
+ "distance": { "source": "$tab-inverse-pills-link-dropdown-distance", "$value": "5px" }
16
17
  }
17
18
  }
18
19
  }
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "size": {
3
+ "$type": "dimension",
3
4
  "tabs": {
4
5
  "notification": {
5
- "height": { "value": "1rem", "type": "dimension", "source": "$tab-notification-height" },
6
- "width": { "value": "1rem", "type": "dimension", "source": "$tab-notification-width" }
6
+ "height": { "source": "$tab-notification-height", "$value": "1rem" },
7
+ "width": { "source": "$tab-notification-width", "$value": "1rem" }
7
8
  }
8
9
  }
9
10
  },
10
11
  "typography": {
12
+ "$type": "dimension",
11
13
  "tabs": {
12
14
  "notification": {
13
- "font-size": {
14
- "value": "{typography.font.size.xs}", "type": "dimension", "source": "$tab-notification-font-size"
15
- }
15
+ "font-size": { "source": "$tab-notification-font-size", "$value": "{typography.font.size.xs}" }
16
16
  }
17
17
  }
18
18
  }
@@ -1,28 +1,31 @@
1
1
  {
2
2
  "typography": {
3
+ "$type": "dimension",
3
4
  "toast": {
4
- "font-size": { "value": ".875rem", "type": "dimension", "source": "$toast-font-size" }
5
+ "font-size": { "source": "$toast-font-size", "$value": ".875rem" }
5
6
  }
6
7
  },
7
8
  "size": {
9
+ "$type": "dimension",
8
10
  "toast": {
9
- "max-width": { "value": "400px", "type": "dimension", "source": "$toast-max-width" },
11
+ "max-width": { "source": "$toast-max-width", "$value": "400px" },
10
12
  "border": {
11
- "width": { "value": "1px", "type": "dimension", "source": "$toast-border-width" },
12
- "radius": { "value": ".25rem", "type": "dimension", "source": "$toast-border-radius" }
13
+ "width": { "source": "$toast-border-width", "$value": "1px" },
14
+ "radius": { "source": "$toast-border-radius", "$value": ".25rem" }
13
15
  }
14
16
  }
15
17
  },
16
18
  "spacing": {
19
+ "$type": "dimension",
17
20
  "toast": {
18
21
  "padding": {
19
- "x": { "value": ".75rem", "type": "dimension", "source": "$toast-padding-x" },
20
- "y": { "value": ".25rem", "type": "dimension", "source": "$toast-padding-y" }
22
+ "x": { "source": "$toast-padding-x", "$value": ".75rem" },
23
+ "y": { "source": "$toast-padding-y", "$value": ".25rem" }
21
24
  },
22
25
  "container": {
23
26
  "gutter": {
24
- "lg": { "value": "1.25rem", "type": "dimension", "source": "$toast-container-gutter-lg" },
25
- "sm": { "value": ".625rem", "type": "dimension", "source": "$toast-container-gutter-sm" }
27
+ "lg": { "source": "$toast-container-gutter-lg", "$value": "1.25rem" },
28
+ "sm": { "source": "$toast-container-gutter-sm", "$value": ".625rem" }
26
29
  }
27
30
  }
28
31
  }
@@ -1,33 +1,35 @@
1
1
  {
2
2
  "typography": {
3
+ "$type": "dimension",
3
4
  "tooltip": {
4
- "font-size": { "value": "{typography.font.size.sm}", "type": "dimension", "source": "$tooltip-font-size" }
5
+ "font-size": { "source": "$tooltip-font-size", "$value": "{typography.font.size.sm}" }
5
6
  }
6
7
  },
7
8
  "spacing": {
9
+ "$type": "dimension",
8
10
  "tooltip": {
9
11
  "padding": {
10
- "y": { "value": ".5rem", "type": "dimension", "source": "$tooltip-padding-y" },
11
- "x": { "value": ".5rem", "type": "dimension", "source": "$tooltip-padding-x" }
12
+ "y": { "source": "$tooltip-padding-y", "$value": ".5rem" },
13
+ "x": { "source": "$tooltip-padding-x", "$value": ".5rem" }
12
14
  },
13
- "margin": { "value": "0", "type": "dimension", "source": "$tooltip-margin" }
15
+ "margin": { "source": "$tooltip-margin", "$value": "0" }
14
16
  }
15
17
  },
16
18
  "elevation": {
19
+ "$type": "number",
17
20
  "tooltip": {
18
- "zindex": { "value": "1070", "type": "ratio", "source": "$zindex-tooltip" }
21
+ "zindex": { "source": "$zindex-tooltip", "$value": "1070" }
19
22
  }
20
23
  },
21
24
  "size": {
25
+ "$type": "dimension",
22
26
  "tooltip": {
23
- "max-width": { "value": "200px", "type": "dimension", "source": "$tooltip-max-width" },
27
+ "max-width": { "source": "$tooltip-max-width", "$value": "200px" },
24
28
  "arrow": {
25
- "height": { "value": ".4rem", "type": "dimension", "source": "$tooltip-arrow-height" },
26
- "width": { "value": ".8rem", "type": "dimension", "source": "$tooltip-arrow-width" }
29
+ "height": { "source": "$tooltip-arrow-height", "$value": ".4rem" },
30
+ "width": { "source": "$tooltip-arrow-width", "$value": ".8rem" }
27
31
  },
28
- "border-radius": {
29
- "value": "{size.border.radius.base}", "type": "dimension", "source": "$tooltip-border-radius"
30
- }
32
+ "border-radius": { "source": "$tooltip-border-radius", "$value": "{size.border.radius.base}" }
31
33
  }
32
34
  }
33
35
  }
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "size": {
3
+ "$type": "dimension",
3
4
  "caret": {
4
- "width": { "value": ".3em", "type": "dimension", "source": "$caret-width" }
5
+ "width": { "source": "$caret-width", "$value": ".3em" }
5
6
  }
6
7
  },
7
8
  "spacing": {
9
+ "$type": "dimension",
8
10
  "caret": {
9
- "base": { "value": ".255em", "type": "dimension", "source": "$caret-spacing" },
10
- "vertical-align": { "value": ".255em", "type": "dimension", "source": "$caret-vertical-align" }
11
+ "base": { "source": "$caret-spacing", "$value": ".255em" },
12
+ "vertical-align": { "source": "$caret-vertical-align", "$value": ".255em" }
11
13
  }
12
14
  }
13
15
  }
@@ -2,15 +2,16 @@
2
2
  "typography": {
3
3
  "headings": {
4
4
  "font": {
5
- "family": { "value": "inherit", "type": "fontFamily", "source": "$headings-font-family" },
6
- "weight": { "value": "{typography.font.weight.bold}", "type": "fontWeight", "source": "$headings-font-weight" }
5
+ "family": { "source": "$headings-font-family", "$value": "inherit", "$type": "fontFamily" },
6
+ "weight": { "source": "$headings-font-weight", "$value": "{typography.font.weight.bold}", "$type": "fontWeight" }
7
7
  },
8
- "line-height": { "value": "1.25", "type": "dimension", "source": "$headings-line-height" }
8
+ "line-height": { "source": "$headings-line-height", "$value": "1.25", "$type": "number" }
9
9
  }
10
10
  },
11
11
  "spacing": {
12
+ "$type": "dimension",
12
13
  "headings": {
13
- "margin-bottom": { "value": ".5rem", "type": "dimension", "source": "$headings-margin-bottom" }
14
+ "margin-bottom": { "source": "$headings-margin-bottom", "$value": ".5rem" }
14
15
  }
15
16
  }
16
17
  }
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "size": {
3
+ "$type": "dimension",
3
4
  "hr": {
4
5
  "border": {
5
- "width": { "value": "{size.border.width}", "type": "dimension", "source": "$hr-border-width" },
6
- "margin-y": { "value": "{spacing.spacer.base}", "type": "dimension", "source": "$hr-margin-y" }
6
+ "width": { "source": "$hr-border-width", "$value": "{size.border.width}" },
7
+ "margin-y": { "source": "$hr-margin-y", "$value": "{spacing.spacer.base}" }
7
8
  }
8
9
  }
9
10
  }