@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,95 +1,84 @@
1
1
  {
2
2
  "spacing": {
3
+ "$type": "dimension",
3
4
  "card": {
4
5
  "spacer": {
5
- "x": { "value": "1.25rem", "type": "dimension", "source": "$card-spacer-x" },
6
- "y": { "value": ".75rem", "type": "dimension", "source": "$card-spacer-y" }
6
+ "x": { "source": "$card-spacer-x", "$value": "1.25rem" },
7
+ "y": { "source": "$card-spacer-y", "$value": ".75rem" }
7
8
  },
8
9
  "margin": {
9
- "group": { "value": "12px", "type": "dimension", "source": "$card-group-margin" },
10
- "deck": { "value": "{spacing.card.margin.group}", "type": "dimension", "source": "$card-deck-margin" },
11
- "deck-bottom": { "value": "{spacing.spacer.3}", "type": "dimension", "source": "$card-deck-margin-bottom" },
12
- "grid": { "value": "{spacing.card.margin.group}", "type": "dimension", "source": "$card-grid-margin" },
13
- "grid-bottom": { "value": "{spacing.spacer.3}", "type": "dimension", "source": "$card-grid-margin-bottom" }
10
+ "group": { "source": "$card-group-margin", "$value": "12px" },
11
+ "deck": { "source": "$card-deck-margin", "$value": "{spacing.card.margin.group}" },
12
+ "deck-bottom": { "source": "$card-deck-margin-bottom", "$value": "{spacing.spacer.3}" },
13
+ "grid": { "source": "$card-grid-margin", "$value": "{spacing.card.margin.group}" },
14
+ "grid-bottom": { "source": "$card-grid-margin-bottom", "$value": "{spacing.spacer.3}" }
14
15
  },
15
16
  "columns": {
16
- "margin": { "value": "{spacing.card.spacer.y}", "type": "dimension", "source": "$card-columns-margin" },
17
- "count": { "value": "3", "type": "dimension", "source": "$card-columns-count" },
18
- "gap": { "value": "1.25rem", "type": "dimension", "source": "$card-columns-gap" }
17
+ "margin": { "source": "$card-columns-margin", "$value": "{spacing.card.spacer.y}" },
18
+ "count": { "source": "$card-columns-count", "$value": "3", "$type": "number" },
19
+ "gap": { "source": "$card-columns-gap", "$value": "1.25rem" }
19
20
  },
20
21
  "footer": {
21
- "action-gap": { "value": ".5rem", "type": "dimension", "source": "$card-footer-actions-gap" }
22
+ "action-gap": { "source": "$card-footer-actions-gap", "$value": ".5rem" }
22
23
  },
23
24
  "loading-skeleton": {
24
- "spacer": { "value": ".313rem", "type": "dimension", "source": "$loading-skeleton-spacer" }
25
+ "spacer": { "source": "$loading-skeleton-spacer", "$value": ".313rem" }
25
26
  },
26
27
  "logo": {
27
28
  "left-offset": {
28
- "base": { "value": "1.5rem", "type": "dimension", "source": "$card-logo-left-offset" },
29
- "horizontal": { "value": ".4375rem", "type": "dimension", "source": "$card-logo-left-offset-horizontal" }
29
+ "base": { "source": "$card-logo-left-offset", "$value": "1.5rem" },
30
+ "horizontal": { "source": "$card-logo-left-offset-horizontal", "$value": ".4375rem" }
30
31
  },
31
32
  "bottom-offset": {
32
- "base": { "value": "1rem", "type": "dimension", "source": "$card-logo-bottom-offset" },
33
- "horizontal": { "value": ".4375rem", "type": "dimension", "source": "$card-logo-bottom-offset-horizontal" }
33
+ "base": { "source": "$card-logo-bottom-offset", "$value": "1rem" },
34
+ "horizontal": { "source": "$card-logo-bottom-offset-horizontal", "$value": ".4375rem" }
34
35
  }
35
36
  },
36
37
  "focus": {
37
- "border-offset": { "value": "5px", "type": "dimension", "source": "$card-focus-border-offset" }
38
+ "border-offset": { "source": "$card-focus-border-offset", "$value": "5px" }
38
39
  }
39
40
  }
40
41
  },
41
42
  "size": {
43
+ "$type": "dimension",
42
44
  "card": {
43
45
  "border": {
44
- "width": { "value": "{size.border.width}", "type": "dimension", "source": "$card-border-width" },
46
+ "width": { "source": "$card-border-width", "$value": "{size.border.width}" },
45
47
  "radius": {
46
- "base": { "value": "{size.border.radius.base}", "type": "dimension", "source": "$card-border-radius" },
47
- "logo": { "value": ".25rem", "type": "dimension", "source": "$card-logo-border-radius" },
48
- "inner": {
49
- "value": "calc({size.card.border.radius.base} - {size.card.border.width})",
50
- "type": "dimension",
51
- "source": "$card-inner-border-radius"
52
- }
48
+ "base": { "source": "$card-border-radius", "$value": "{size.border.radius.base}" },
49
+ "logo": { "source": "$card-logo-border-radius", "$value": ".25rem" },
50
+ "inner": { "source": "$card-inner-border-radius", "$value": "calc({size.card.border.radius.base} - {size.card.border.width})" }
53
51
  }
54
52
  },
55
53
  "focus": {
56
54
  "border": {
57
- "width": { "value": "2px", "type": "dimension", "source": "$card-focus-border-width" },
58
- "radius": {
59
- "value": "calc({spacing.card.focus.border-offset} + {size.card.border.radius.base})",
60
- "type": "dimension",
61
- "source": "$card-focus-border-radius"
62
- }
55
+ "width": { "source": "$card-focus-border-width", "$value": "2px" },
56
+ "radius": { "source": "$card-focus-border-radius", "$value": "calc({spacing.card.focus.border-offset} + {size.card.border.radius.base})" }
63
57
  }
64
58
  },
65
59
  "image": {
66
60
  "horizontal": {
67
61
  "width": {
68
- "max": { "value": "240px", "type": "dimension", "source": "$card-image-horizontal-max-width" },
69
- "min": {
70
- "value": "{size.card.image.horizontal.width.max}",
71
- "type": "dimension",
72
- "source": "$card-image-horizontal-min-width"
73
- }
62
+ "max": { "source": "$card-image-horizontal-max-width", "$value": "240px" },
63
+ "min": { "source": "$card-image-horizontal-min-width", "$value": "{size.card.image.horizontal.width.max}" }
74
64
  }
75
65
  },
76
66
  "vertical": {
77
- "max-height": { "value": "140px", "type": "dimension", "source": "$card-image-vertical-max-height" }
67
+ "max-height": { "source": "$card-image-vertical-max-height", "$value": "140px" }
78
68
  },
79
- "border-radius": { "value": "{size.card.border.radius.base}", "type": "dimension", "source": "$card-image-border-radius" }
69
+ "border-radius": { "source": "$card-image-border-radius", "$value": "{size.card.border.radius.base}" }
80
70
  },
81
71
  "logo": {
82
- "width": { "value": "7.25rem", "type": "dimension", "source": "$card-logo-width" },
83
- "height": { "value": "4.125rem", "type": "dimension", "source": "$card-logo-height" }
72
+ "width": { "source": "$card-logo-width", "$value": "7.25rem" },
73
+ "height": { "source": "$card-logo-height", "$value": "4.125rem" }
84
74
  }
85
75
  }
86
76
  },
87
77
  "typography": {
78
+ "$type": "dimension",
88
79
  "footer": {
89
80
  "text": {
90
- "font-size": {
91
- "value": "{typography.font.size.small.x}", "type": "dimension", "source": "$card-footer-text-font-size"
92
- }
81
+ "font-size": { "source": "$card-footer-text-font-size", "$value": "{typography.font.size.xs}" }
93
82
  }
94
83
  }
95
84
  }
@@ -3,35 +3,61 @@
3
3
  "carousel": {
4
4
  "control": {
5
5
  "width": {
6
- "base": { "value": "15%", "type": "percentage", "source": "$carousel-control-width" },
7
- "icon": { "value": "20px", "type": "dimension", "source": "$carousel-control-icon-width" }
6
+ "base": { "source": "$carousel-control-width", "$value": "15%", "$type": "percentage" },
7
+ "icon": { "source": "$carousel-control-icon-width", "$value": "20px", "$type": "dimension" }
8
8
  }
9
9
  },
10
10
  "indicator": {
11
- "width": { "value": "30px", "type": "dimension", "source": "$carousel-indicator-width" },
11
+ "$type": "dimension",
12
+ "width": { "source": "$carousel-indicator-width", "$value": "30px" },
12
13
  "height": {
13
- "base": { "value": "3px", "type": "dimension", "source": "$carousel-indicator-height" },
14
- "area-hit": { "value": "10px", "type": "dimension", "source": "$carousel-indicator-hit-area-height" }
14
+ "base": { "source": "$carousel-indicator-height", "$value": "3px" },
15
+ "area-hit": { "source": "$carousel-indicator-hit-area-height", "$value": "10px" }
15
16
  }
16
17
  },
17
- "caption-width": { "value": "70%", "type": "percentage", "source": "$carousel-caption-width" }
18
+ "caption-width": { "source": "$carousel-caption-width", "$value": "70%", "$type": "percentage" }
18
19
  }
19
20
  },
20
21
  "spacing": {
22
+ "$type": "dimension",
21
23
  "carousel": {
22
- "indicator-spacer": { "value": "3px", "type": "dimension", "source": "$carousel-indicator-spacer" }
24
+ "indicator-spacer": { "source": "$carousel-indicator-spacer", "$value": "3px" }
23
25
  }
24
26
  },
25
27
  "transition": {
28
+ "$type": "transition",
26
29
  "carousel": {
27
30
  "base": {
28
- "value": "transform {transition.carousel.duration} ease-in-out",
29
- "type": "transition",
30
- "source": "$carousel-transition"
31
+ "source": "$carousel-transition",
32
+ "$value": {
33
+ "property": "transform",
34
+ "duration": "{transition.carousel.duration}",
35
+ "timingFunction": "ease-in-out",
36
+ "delay": "0ms",
37
+ "behavior": "normal"
38
+ }
39
+ },
40
+ "duration": { "source": "$carousel-transition-duration", "$value": ".6s", "$type": "duration" },
41
+ "indicator": {
42
+ "source": "$carousel-indicator-transition",
43
+ "$value": {
44
+ "property": "opacity",
45
+ "duration": "{transition.carousel.duration}",
46
+ "timingFunction": "ease",
47
+ "delay": "0ms",
48
+ "behavior": "normal"
49
+ }
31
50
  },
32
- "duration": { "value": ".6s", "type": "duration", "source": "$carousel-transition-duration" },
33
- "indicator": { "value": "opacity .6s ease", "type": "transition", "source": "$carousel-indicator-transition" },
34
- "control": { "value": "opacity .15s ease", "type": "transition", "source": "$carousel-control-transition" }
51
+ "control": {
52
+ "source": "$carousel-control-transition",
53
+ "$value": {
54
+ "property": "opacity",
55
+ "duration": ".15s",
56
+ "timingFunction": "ease",
57
+ "delay": "0ms",
58
+ "behavior": "normal"
59
+ }
60
+ }
35
61
  }
36
62
  }
37
63
  }
@@ -1,41 +1,33 @@
1
1
  {
2
2
  "spacing": {
3
+ "$type": "dimension",
3
4
  "chip": {
4
5
  "margin": {
5
- "base": {
6
- "value": ".125rem", "type": "dimension", "source": "$chip-margin"
7
- },
8
- "icon": { "value": ".25rem", "type": "dimension", "source": "$chip-icon-margin" }
6
+ "base": { "source": "$chip-margin", "$value": ".125rem" },
7
+ "icon": { "source": "$chip-icon-margin", "$value": ".25rem" }
9
8
  },
10
9
  "padding": {
11
- "y": { "value": "1px", "type": "dimension", "source": "$chip-padding-y" },
12
- "x": { "value": ".5rem", "type": "dimension", "source": "$chip-padding-x" }
10
+ "y": { "source": "$chip-padding-y", "$value": "1px" },
11
+ "x": { "source": "$chip-padding-x", "$value": ".5rem" }
13
12
  },
14
13
  "outline": {
15
14
  "selected-distance": {
16
- "light": {
17
- "value": "3px", "type": "dimension", "source": "$chip-light-selected-outline-distance"
18
- },
19
- "dark": {
20
- "value": "3px", "type": "dimension", "source": "$chip-dark-selected-outline-distance"
21
- }
15
+ "light": { "source": "$chip-light-selected-outline-distance", "$value": "3px" },
16
+ "dark": { "source": "$chip-dark-selected-outline-distance", "$value": "3px" }
22
17
  },
23
18
  "focus-distance": {
24
- "light": {
25
- "value": ".313rem", "type": "dimension", "source": "$chip-light-focus-outline-distance"
26
- },
27
- "dark": {
28
- "value": ".313rem", "type": "dimension", "source": "$chip-dark-focus-outline-distance"
29
- }
19
+ "light": { "source": "$chip-light-focus-outline-distance", "$value": ".313rem" },
20
+ "dark": { "source": "$chip-dark-focus-outline-distance", "$value": ".313rem" }
30
21
  },
31
- "width": { "value": "3px", "type": "dimension", "source": "$chip-outline-width" }
22
+ "width": { "source": "$chip-outline-width", "$value": "3px" }
32
23
  }
33
24
  }
34
25
  },
35
26
  "size": {
27
+ "$type": "dimension",
36
28
  "chip": {
37
- "border-radius": { "value": ".375rem", "type": "dimension", "source": "$chip-border-radius" },
38
- "icon": { "value": "1.5rem", "type": "dimension", "source": "$chip-icon-size" }
29
+ "border-radius": { "source": "$chip-border-radius", "$value": ".375rem" },
30
+ "icon": { "source": "$chip-icon-size", "$value": "1.5rem" }
39
31
  }
40
32
  }
41
33
  }
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "spacing": {
3
+ "$type": "dimension",
3
4
  "chip-carousel": {
4
- "controls-top-offset": {
5
- "value": ".375rem", "type": "dimension", "source": "$chip-carousel-controls-top-offset"
6
- },
5
+ "controls-top-offset": { "source": "$chip-carousel-controls-top-offset", "$value": ".375rem" },
7
6
  "container": {
8
7
  "padding": {
9
- "x": { "value": ".625rem", "type": "dimension", "source": "$chip-carousel-container-padding-x" },
10
- "y": { "value": ".313rem", "type": "dimension", "source": "$chip-carousel-container-padding-y" }
8
+ "x": { "source": "$chip-carousel-container-padding-x", "$value": ".625rem" },
9
+ "y": { "source": "$chip-carousel-container-padding-y", "$value": ".313rem" }
11
10
  }
12
11
  }
13
12
  }
@@ -2,12 +2,8 @@
2
2
  "typography": {
3
3
  "close-button": {
4
4
  "font": {
5
- "size": {
6
- "value": "calc({typography.font.size.base} * 1.5)", "type": "dimension", "source": "$close-font-size"
7
- },
8
- "weight": {
9
- "value": "{typography.font.weight.bold}", "type": "fontWeight", "source": "$close-font-weight"
10
- }
5
+ "size": { "source": "$close-font-size", "$value": "calc({typography.font.size.base} * 1.5)", "$type": "dimension" },
6
+ "weight": { "source": "$close-font-weight", "$value": "{typography.font.weight.bold}", "$type": "fontWeight" }
11
7
  }
12
8
  }
13
9
  }
@@ -1,32 +1,33 @@
1
1
  {
2
2
  "typography": {
3
3
  "code": {
4
- "font-size": { "value": "87.5%", "type": "percentage", "source": "$code-font-size" },
4
+ "font-size": { "source": "$code-font-size", "$value": "{typography.font.size.sm}", "$type": "percentage" },
5
5
  "kbd": {
6
- "font-size": { "value": "{typography.code.font-size}", "type": "dimension", "source": "$kbd-font-size" },
6
+ "font-size": { "source": "$kbd-font-size", "$value": "{typography.code.font-size}", "$type": "dimension" },
7
7
  "nested": {
8
- "font-weight": {
9
- "value": "{typography.font.weight.bold}", "type": "fontWeight", "source": "$nested-kbd-font-weight"
10
- }
8
+ "$type": "fontWeight",
9
+ "font-weight": { "source": "$nested-kbd-font-weight", "$value": "{typography.font.weight.bold}" }
11
10
  }
12
11
  }
13
12
  }
14
13
  },
15
14
  "spacing": {
15
+ "$type": "dimension",
16
16
  "code": {
17
17
  "kbd": {
18
18
  "padding": {
19
- "y": { "value": ".2rem", "type": "dimension", "source": "$kbd-padding-y" },
20
- "x": { "value": ".4rem", "type": "dimension", "source": "$kbd-padding-x" }
19
+ "y": { "source": "$kbd-padding-y", "$value": ".2rem" },
20
+ "x": { "source": "$kbd-padding-x", "$value": ".4rem" }
21
21
  }
22
22
  }
23
23
  }
24
24
  },
25
25
  "size": {
26
+ "$type": "dimension",
26
27
  "code": {
27
28
  "pre": {
28
29
  "scrollable": {
29
- "max-height": { "value": "340px", "type": "dimension", "source": "$pre-scrollable-max-height" }
30
+ "max-height": { "source": "$pre-scrollable-max-height", "$value": "340px" }
30
31
  }
31
32
  }
32
33
  }
@@ -1,26 +1,23 @@
1
1
  {
2
2
  "spacing": {
3
+ "$type": "dimension",
3
4
  "collapsible": {
4
5
  "card": {
5
6
  "spacer": {
6
7
  "y": {
7
- "base": { "value": ".5rem", "type": "dimension", "source": "$collapsible-card-spacer-y" },
8
- "lg": {
9
- "value": "{spacing.card.spacer.y}", "type": "dimension", "source": "$collapsible-card-spacer-y-lg"
10
- }
8
+ "base": { "source": "$collapsible-card-spacer-y", "$value": ".5rem" },
9
+ "lg": { "source": "$collapsible-card-spacer-y-lg", "$value": "{spacing.card.spacer.y}" }
11
10
  },
12
11
  "x": {
13
- "base": { "value": ".5rem", "type": "dimension", "source": "$collapsible-card-spacer-x" },
14
- "lg": {
15
- "value": "{spacing.card.spacer.x}", "type": "dimension", "source": "$collapsible-card-spacer-x-lg"
16
- }
12
+ "base": { "source": "$collapsible-card-spacer-x", "$value": ".5rem" },
13
+ "lg": { "source": "$collapsible-card-spacer-x-lg", "$value": "{spacing.card.spacer.x}" }
17
14
  },
18
- "left-body": { "value": ".75rem", "type": "dimension", "source": "$collapsible-card-body-spacer-left" },
19
- "icon": { "value": "2.5rem", "type": "dimension", "source": "$collapsible-card-spacer-icon" },
15
+ "left-body": { "source": "$collapsible-card-body-spacer-left", "$value": ".75rem" },
16
+ "icon": { "source": "$collapsible-card-spacer-icon", "$value": "2.5rem" },
20
17
  "basic": {
21
- "y": { "value": ".5rem", "type": "dimension", "source": "$collapsible-basic-spacer-y" },
22
- "x": { "value": ".5rem", "type": "dimension", "source": "$collapsible-basic-spacer-x" },
23
- "icon": { "value": ".625rem", "type": "dimension", "source": "$collapsible-basic-spacer-icon" }
18
+ "y": { "source": "$collapsible-basic-spacer-y", "$value": ".5rem" },
19
+ "x": { "source": "$collapsible-basic-spacer-x", "$value": ".5rem" },
20
+ "icon": { "source": "$collapsible-basic-spacer-icon", "$value": ".625rem" }
24
21
  }
25
22
  }
26
23
  }
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "size": {
3
+ "$type": "dimension",
3
4
  "color-picker": {
4
- "sm": { "value": "2rem", "type": "dimension", "source": "$picker-size-sm" },
5
- "md": { "value": "calc(1.3333em + 1.125rem + 2px)", "type": "dimension", "source": "$picker-size-md" }
5
+ "sm": { "source": "$picker-size-sm", "$value": "2rem" },
6
+ "md": { "source": "$picker-size-md", "$value": "calc(1.3333em + 1.125rem + 2px)" }
6
7
  }
7
8
  }
8
9
  }
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "size": {
3
+ "$type": "dimension",
3
4
  "container": {
4
5
  "max-width": {
5
- "xs": { "value": "464px", "type": "dimension", "source": "$max-width-xs" },
6
- "sm": { "value": "708px", "type": "dimension", "source": "$max-width-sm" },
7
- "md": { "value": "952px", "type": "dimension", "source": "$max-width-md" },
8
- "lg": { "value": "1192px", "type": "dimension", "source": "$max-width-lg" },
9
- "xl": { "value": "1440px", "type": "dimension", "source": "$max-width-xl" }
6
+ "xs": { "source": "$max-width-xs", "$value": "464px" },
7
+ "sm": { "source": "$max-width-sm", "$value": "708px" },
8
+ "md": { "source": "$max-width-md", "$value": "952px" },
9
+ "lg": { "source": "$max-width-lg", "$value": "1192px" },
10
+ "xl": { "source": "$max-width-xl", "$value": "1440px" }
10
11
  }
11
12
  }
12
13
  }
@@ -1,27 +1,35 @@
1
1
  {
2
2
  "size": {
3
+ "$type": "dimension",
3
4
  "data-table": {
4
- "border": { "value": "2px", "type": "dimension", "source": "$data-table-border" },
5
+ "border": { "source": "$data-table-border", "$value": "2px" },
5
6
  "dropdown": {
6
7
  "pagination": {
7
- "max-height": { "value": "60vh", "type": "dimension", "source": "$data-table-pagination-dropdown-max-height" },
8
- "min-width": { "value": "6rem", "type": "dimension", "source": "$data-table-pagination-dropdown-min-width" }
8
+ "max-height": { "source": "$data-table-pagination-dropdown-max-height", "$value": "60vh" },
9
+ "min-width": { "source": "$data-table-pagination-dropdown-min-width", "$value": "6rem" }
9
10
  }
10
11
  },
11
12
  "layout": {
12
- "sidebar-width": { "value": "12rem", "type": "dimension", "source": "$data-table-layout-sidebar-width" }
13
+ "sidebar-width": { "source": "$data-table-layout-sidebar-width", "$value": "12rem" }
13
14
  }
14
15
  }
15
16
  },
16
17
  "spacing": {
17
18
  "data-table": {
18
19
  "padding": {
19
- "x": { "value": ".75rem", "type": "dimension", "source": "$data-table-padding-x" },
20
- "y": { "value": ".75rem", "type": "dimension", "source": "$data-table-padding-y" },
21
- "small": { "value": ".5rem", "type": "dimension", "source": "$data-table-padding-small" },
22
- "cell": { "value": ".5rem .75rem", "type": "dimension", "source": "$data-table-cell-padding" }
20
+ "$type": "dimension",
21
+ "x": { "source": "$data-table-padding-x", "$value": ".75rem" },
22
+ "y": { "source": "$data-table-padding-y", "$value": ".75rem" },
23
+ "small": { "source": "$data-table-padding-small", "$value": ".5rem" },
24
+ "cell": {
25
+ "source": "$data-table-cell-padding",
26
+ "$value": {
27
+ "x": ".5rem",
28
+ "y": ".75rem"
29
+ }
30
+ }
23
31
  },
24
- "footer-position": { "value": "center", "type": "position", "source": "$data-table-footer-position" }
32
+ "footer-position": { "source": "$data-table-footer-position", "$value": "center", "$type": "position" }
25
33
  }
26
34
  }
27
35
  }
@@ -1,67 +1,62 @@
1
1
  {
2
2
  "typography": {
3
3
  "dropdown": {
4
- "font-size": {
5
- "value": "{typography.font.size.base}", "type": "dimension", "source": "$dropdown-font-size"
6
- },
4
+ "font-size": { "source": "$dropdown-font-size", "$value": "{typography.font.size.base}", "$type": "dimension" },
7
5
  "item": {
8
- "text-decoration": {
9
- "value": "none", "type": "textDecoration"
10
- }
6
+ "$type": "textDecoration",
7
+ "text-decoration": { "$value": "none" }
11
8
  }
12
9
  }
13
10
  },
14
11
  "size": {
12
+ "$type": "dimension",
15
13
  "dropdown": {
16
- "min-width": { "value": "18rem", "type": "dimension", "source": "$dropdown-min-width" },
14
+ "min-width": { "source": "$dropdown-min-width", "$value": "18rem" },
17
15
  "border": {
18
- "width": { "value": "{size.border.width}", "type": "dimension", "source": "$dropdown-border-width" },
16
+ "width": { "source": "$dropdown-border-width", "$value": "{size.border.width}" },
19
17
  "radius": {
20
- "base": {
21
- "value": "{size.border.radius.base}", "type": "dimension", "source": "$dropdown-border-radius"
22
- },
18
+ "base": { "source": "$dropdown-border-radius", "$value": "{size.border.radius.base}" },
23
19
  "inner": {
24
- "value": "calc({size.dropdown.border.radius.base} - {size.dropdown.border.width})",
25
- "type": "dimension",
26
- "source": "$dropdown-inner-border-radius"
20
+ "source": "$dropdown-inner-border-radius",
21
+ "$value": "calc({size.dropdown.border.radius.base} - {size.dropdown.border.width})"
27
22
  }
28
23
  }
29
24
  }
30
25
  }
31
26
  },
32
27
  "spacing": {
28
+ "$type": "dimension",
33
29
  "dropdown": {
34
- "spacer": { "value": ".125rem", "type": "dimension", "source": "$dropdown-spacer" },
30
+ "spacer": { "source": "$dropdown-spacer", "$value": ".125rem" },
35
31
  "padding": {
36
32
  "x": {
37
- "base": { "value": "0", "type": "dimension", "source": "$dropdown-padding-x" },
38
- "item": { "value": "1rem", "type": "dimension", "source": "$dropdown-item-padding-x" }
33
+ "base": { "source": "$dropdown-padding-x", "$value": "0" },
34
+ "item": { "source": "$dropdown-item-padding-x", "$value": "1rem" }
39
35
  },
40
36
  "y": {
41
- "base": { "value": ".5rem", "type": "dimension", "source": "$dropdown-padding-y" },
42
- "item": { "value": ".25rem", "type": "dimension", "source": "$dropdown-item-padding-y" }
37
+ "base": { "source": "$dropdown-padding-y", "$value": ".5rem" },
38
+ "item": { "source": "$dropdown-item-padding-y", "$value": ".25rem" }
43
39
  },
44
40
  "header": {
45
- "value": "{spacing.dropdown.padding.y.base} {spacing.dropdown.padding.x.item}",
46
- "type": "dimension",
47
- "source": "$dropdown-header-padding"
41
+ "source": "$dropdown-header-padding",
42
+ "$value": {
43
+ "x": "{spacing.dropdown.padding.x.item}",
44
+ "y": ".5rem"
45
+ }
48
46
  }
49
47
  },
50
48
  "divider": {
51
- "margin-y": {
52
- "value": "calc({spacing.spacer.base} / 2)",
53
- "type": "dimension",
54
- "source": "$dropdown-divider-margin-y"
55
- }
49
+ "margin-y": { "source": "$dropdown-divider-margin-y", "$value": "calc({spacing.spacer.base} / 2)" }
56
50
  },
57
51
  "close-container": {
58
- "top": { "value": ".625rem", "type": "dimension", "source": "$modal-close-container-top" }
52
+ "top": { "source": "$modal-close-container-top", "$value": ".625rem" }
59
53
  }
60
54
  }
61
55
  },
62
56
  "elevation": {
57
+ "$type": "number",
63
58
  "dropdown": {
64
- "zindex": { "value": "1000", "type": "ratio", "source": "$zindex-dropdown" }
59
+ "zindex": { "source": "$zindex-dropdown", "$value": "1000" }
65
60
  }
66
61
  }
67
62
  }
@@ -1,20 +1,18 @@
1
1
  {
2
2
  "typography": {
3
+ "$type": "dimension",
3
4
  "dropzone": {
4
5
  "restriction-msg": {
5
- "font-size": {
6
- "value": "{typography.font.size.small.x}",
7
- "type": "dimension",
8
- "source": "$dropzone-restriction-msg-font-size"
9
- }
6
+ "font-size": { "source": "$dropzone-restriction-msg-font-size", "$value": "{typography.font.size.xs}" }
10
7
  }
11
8
  }
12
9
  },
13
10
  "spacing": {
11
+ "$type": "dimension",
14
12
  "dropzone": {
15
- "padding": { "value": "1.5rem", "type": "dimension", "source": "$dropzone-padding" },
13
+ "padding": { "source": "$dropzone-padding", "$value": "1.5rem" },
16
14
  "border": {
17
- "base": { "value": "1px", "type": "dimension", "source": "$dropzone-border-default" }
15
+ "base": { "source": "$dropzone-border-default", "$value": "1px" }
18
16
  }
19
17
  }
20
18
  }
@@ -2,11 +2,12 @@
2
2
  "other": {
3
3
  "form": {
4
4
  "control": {
5
- "cursor": { "value": "auto", "type": "cursorStyle", "source": "$custom-control-cursor" },
6
- "range-track-cursor": { "value": "pointer", "type": "cursorStyle", "source": "$custom-range-track-cursor" },
5
+ "cursor": { "source": "$custom-control-cursor", "$value": "auto", "$type": "cursorStyle" },
6
+ "range-track-cursor": { "source": "$custom-range-track-cursor", "$value": "pointer", "$type": "cursorStyle" },
7
7
  "custom-file": {
8
- "lang": { "value": "en", "type": "text" },
9
- "content": { "value": "Browse", "type": "text" }
8
+ "$type": "text",
9
+ "lang": { "$value": "en" },
10
+ "content": { "$value": "Browse" }
10
11
  }
11
12
  }
12
13
  }