@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,44 +1,40 @@
1
1
  {
2
2
  "color": {
3
+ "$type": "color",
3
4
  "pagination": {
4
5
  "text": {
5
- "base": { "value": "{color.link.base}", "type": "color", "source": "$pagination-color" },
6
- "inverse": { "value": "{color.white}", "type": "color", "source": "$pagination-color-inverse" },
7
- "hover": { "value": "{color.link.hover}", "type": "color", "source": "$pagination-hover-color" },
8
- "active": { "value": "{color.active}", "type": "color", "source": "$pagination-active-color" },
9
- "disabled": { "value": "{color.disabled}", "type": "color", "source": "$pagination-disabled-color" }
6
+ "base": { "source": "$pagination-color", "$value": "{color.link.base}" },
7
+ "inverse": { "source": "$pagination-color-inverse", "$value": "{color.white}" },
8
+ "hover": { "source": "$pagination-hover-color", "$value": "{color.link.hover}" },
9
+ "active": { "source": "$pagination-active-color", "$value": "{color.active}" },
10
+ "disabled": { "source": "$pagination-disabled-color", "$value": "{color.disabled}" }
10
11
  },
11
12
  "bg": {
12
- "base": { "value": "{color.bg.base}", "type": "color", "source": "$pagination-bg" },
13
- "hover": { "value": "{color.gray.100}", "type": "color", "source": "$pagination-hover-bg" },
14
- "active": { "value": "{color.bg.active}", "type": "color", "source": "$pagination-active-bg" },
15
- "disabled": { "value": "{color.white}", "type": "color", "source": "$pagination-disabled-bg" }
13
+ "base": { "source": "$pagination-bg", "$value": "{color.bg.base}" },
14
+ "hover": { "source": "$pagination-hover-bg", "$value": "{color.gray.100}" },
15
+ "active": { "source": "$pagination-active-bg", "$value": "{color.bg.active}" },
16
+ "disabled": { "source": "$pagination-disabled-bg", "$value": "{color.white}" }
16
17
  },
17
18
  "border": {
18
- "base": { "value": "{color.gray.200}", "type": "color", "source": "$pagination-border-color" },
19
- "hover": { "value": "{color.gray.200}", "type": "color", "source": "$pagination-hover-border-color" },
20
- "active": { "value": "{color.pagination.bg.active}", "type": "color", "source": "$pagination-active-border-color" },
21
- "disabled": { "value": "{color.gray.100}", "type": "color", "source": "$pagination-disabled-border-color" }
19
+ "base": { "source": "$pagination-border-color", "$value": "{color.gray.200}" },
20
+ "hover": { "source": "$pagination-hover-border-color", "$value": "{color.gray.200}" },
21
+ "active": { "source": "$pagination-active-border-color", "$value": "{color.pagination.bg.active}" },
22
+ "disabled": { "source": "$pagination-disabled-border-color", "$value": "{color.gray.100}" }
22
23
  },
23
24
  "focus": {
24
- "base": { "value": "{color.primary.500}", "type": "color", "source": "$pagination-focus-color" },
25
- "text": { "value": "{color.black}", "type": "color", "source": "$pagination-focus-color-text" }
25
+ "base": { "source": "$pagination-focus-color", "$value": "{color.primary.500}" },
26
+ "text": { "source": "$pagination-focus-color-text", "$value": "{color.black}" }
26
27
  },
27
28
  "dropdown": {
28
- "text-inverse": {
29
- "value": "{color.white}", "type": "color", "source": "$pagination-dropdown-color-inverse"
30
- }
29
+ "text-inverse": { "source": "$pagination-dropdown-color-inverse", "$value": "{color.white}" }
31
30
  }
32
31
  }
33
32
  },
34
33
  "elevation": {
34
+ "$type": "shadow",
35
35
  "pagination": {
36
36
  "focus": {
37
- "box-shadow": {
38
- "value": "{elevation.input.btn-focus.box-shadow}",
39
- "type": "shadow",
40
- "source": "$pagination-focus-box-shadow"
41
- }
37
+ "box-shadow": { "source": "$pagination-focus-box-shadow", "$value": "{elevation.input.btn-focus.box-shadow}" }
42
38
  }
43
39
  }
44
40
  }
@@ -1,55 +1,50 @@
1
1
  {
2
2
  "color": {
3
+ "$type": "color",
3
4
  "popover": {
4
- "bg": { "value": "{color.bg.base}", "type": "color", "source": "$popover-bg" },
5
- "border": { "value": "rgba(0, 0, 0, .2)", "type": "color", "source": "$popover-border-color" },
5
+ "bg": { "source": "$popover-bg", "$value": "{color.bg.base}" },
6
+ "border": { "source": "$popover-border-color", "$value": "rgba(0, 0, 0, .2)" },
6
7
  "header": {
7
- "text": { "value": "{color.headings.base}", "type": "color", "source": "$popover-header-color" },
8
- "bg": { "value": "{color.white}", "type": "color", "source": "$popover-header-bg" },
8
+ "text": { "source": "$popover-header-color", "$value": "{color.headings.base}" },
9
+ "bg": { "source": "$popover-header-bg", "$value": "{color.white}" },
9
10
  "bg-dark": {
10
- "value": "{color.white}",
11
- "type": "color",
12
11
  "source": "$popover-header-bg-dark",
13
- "modify": [{ "type": "darken", "amount": 0.5 }]
12
+ "modify": [{ "type": "darken", "amount": 0.5 }],
13
+ "$value": "{color.white}"
14
14
  },
15
15
  "border-bottom-dark": {
16
- "value": "{color.white}",
17
- "type": "color",
18
16
  "source": "$popover-header-border-bottom-darken",
19
- "modify": [{ "type": "darken", "amount": 0.05 }]
17
+ "modify": [{ "type": "darken", "amount": 0.05 }],
18
+ "$value": "{color.white}"
20
19
  }
21
20
  },
22
- "body": { "value": "{color.body.base}", "type": "color", "source": "$popover-body-color" },
23
- "arrow": {
24
- "base": { "value": "{color.popover.bg}", "type": "color", "source": "$popover-arrow-color" },
21
+ "body": { "source": "$popover-body-color", "$value": "{color.body.base}" },
22
+ "arrow": {
23
+ "base": { "source": "$popover-arrow-color", "$value": "{color.popover.bg}" },
25
24
  "outer": {
26
- "value": "{color.popover.border}",
27
- "type": "color",
28
25
  "source": "$popover-arrow-outer-color",
29
- "modify": [{ "type": "alpha", "amount": 0.05 }]
26
+ "modify": [{ "type": "alpha", "amount": 0.05 }],
27
+ "$value": "{color.popover.border}"
30
28
  }
31
29
  },
32
30
  "success": {
33
- "bg": { "value": "{color.success.100}", "type": "color", "source": "$popover-success-bg" },
34
- "icon": { "value": "{color.success.500}", "type": "color", "source": "$popover-success-icon-color" }
31
+ "bg": { "source": "$popover-success-bg", "$value": "{color.success.100}" },
32
+ "icon": { "source": "$popover-success-icon-color", "$value": "{color.success.500}" }
35
33
  },
36
34
  "warning": {
37
- "bg": { "value": "{color.warning.100}", "type": "color", "source": "$popover-warning-bg" },
38
- "icon": { "value": "{color.warning.500}", "type": "color", "source": "$popover-warning-icon-color" }
35
+ "bg": { "source": "$popover-warning-bg", "$value": "{color.warning.100}" },
36
+ "icon": { "source": "$popover-warning-icon-color", "$value": "{color.warning.500}" }
39
37
  },
40
38
  "danger": {
41
- "bg": { "value": "{color.danger.100}", "type": "color", "source": "$popover-danger-bg" },
42
- "icon": { "value": "{color.danger.500}", "type": "color", "source": "$popover-danger-icon-color" }
39
+ "bg": { "source": "$popover-danger-bg", "$value": "{color.danger.100}" },
40
+ "icon": { "source": "$popover-danger-icon-color", "$value": "{color.danger.500}" }
43
41
  }
44
42
  }
45
43
  },
46
44
  "elevation": {
45
+ "$type": "shadow",
47
46
  "popover": {
48
- "box-shadow": {
49
- "value": "none",
50
- "type": "shadow",
51
- "source": "$popover-box-shadow"
52
- }
47
+ "box-shadow": { "source": "$popover-box-shadow", "$value": "none" }
53
48
  }
54
49
  }
55
50
  }
@@ -1,32 +1,21 @@
1
1
  {
2
2
  "color": {
3
+ "$type": "color",
3
4
  "product-tour": {
4
5
  "checkpoint": {
5
- "bg": { "value": "{color.light.300}", "type": "color", "source": "$checkpoint-background-color" },
6
- "body": { "value": "{color.gray.700}", "type": "color", "source": "$checkpoint-body-color" },
7
- "border": { "value": "{color.brand.base}", "type": "color", "source": "$checkpoint-border-color" },
8
- "breadcrumb": { "value": "{color.primary.base}", "type": "color", "source": "$checkpoint-breadcrumb-color" },
6
+ "bg": { "source": "$checkpoint-background-color", "$value": "{color.light.300}" },
7
+ "body": { "source": "$checkpoint-body-color", "$value": "{color.gray.700}" },
8
+ "border": { "source": "$checkpoint-border-color", "$value": "{color.brand.base}" },
9
+ "breadcrumb": { "source": "$checkpoint-breadcrumb-color", "$value": "{color.primary.base}" },
9
10
  "box-shadow": {
10
- "value": "{color.black}",
11
- "type": "color",
12
11
  "source": "$checkpoint-box-shadow-color",
13
- "modify": [{
14
- "type": "alpha",
15
- "amount": 0.3
16
- }]
12
+ "modify": [{ "type": "alpha", "amount": 0.3 }],
13
+ "$value": "{color.black}"
17
14
  },
18
15
  "arrow": {
19
16
  "border": {
20
- "top": {
21
- "value": "{color.product-tour.checkpoint.bg}",
22
- "type": "color",
23
- "source": "$checkpoint-arrow-border-top-color"
24
- },
25
- "transparent": {
26
- "value": "transparent",
27
- "type": "color",
28
- "source": "$checkpoint-arrow-border-color-transparent"
29
- }
17
+ "top": { "source": "$checkpoint-arrow-border-top-color", "$value": "{color.product-tour.checkpoint.bg}" },
18
+ "transparent": { "source": "$checkpoint-arrow-border-color-transparent", "$value": "transparent" }
30
19
  }
31
20
  }
32
21
  }
@@ -1,20 +1,22 @@
1
1
  {
2
2
  "color": {
3
+ "$type": "color",
3
4
  "progress-bar": {
4
- "bg": { "value": "transparent", "type": "color", "source": "$progress-bg" },
5
- "border": { "value": "{color.gray.500}", "type": "color", "source": "$progress-bar-border-color" },
6
- "bar": {
7
- "base": { "value": "{color.white}", "type": "color", "source": "$progress-bar-color" },
8
- "bg": {
9
- "base": { "value": "{color.accent.a}", "type": "color", "source": "$progress-bar-bg" },
10
- "annotated": { "value": "{color.dark.500}", "type": "color", "source": "$annotated-progress-bar-bg" }
11
- }
12
- }
5
+ "base": { "source": "$progress-bar-color", "$value": "{color.white}" },
6
+ "bg": {
7
+ "base": { "source": "$progress-bar-bg", "$value": "{color.accent.a}" },
8
+ "annotated": { "source": "$annotated-progress-bar-bg", "$value": "{color.dark.500}" }
9
+ },
10
+ "border": { "source": "$progress-bar-border-color", "$value": "{color.gray.500}" }
11
+ },
12
+ "progress": {
13
+ "bg": { "source": "$progress-bg", "$value": "transparent" }
13
14
  }
14
15
  },
15
16
  "elevation": {
17
+ "$type": "shadow",
16
18
  "progress-bar": {
17
- "box-shadow": { "value": "none", "type": "shadow", "source": "$progress-box-shadow" }
19
+ "box-shadow": { "source": "$progress-box-shadow", "$value": "none" }
18
20
  }
19
21
  }
20
22
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "elevation": {
3
+ "$type": "shadow",
3
4
  "scrollable": {
4
5
  "body": {
5
6
  "box-shadow": {
6
- "value": "{color.black}",
7
- "type": "shadow",
8
7
  "source": "$scrollable-body-box-shadow",
9
- "modify": [{ "type": "alpha", "amount": 0.55 }]
8
+ "modify": [{ "type": "alpha", "amount": 0.55 }],
9
+ "$value": "{color.black}"
10
10
  }
11
11
  }
12
12
  }
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "color": {
3
+ "$type": "color",
3
4
  "search-field": {
4
5
  "border": {
5
- "base": { "value": "{color.gray.500}", "type": "color", "source": "$search-border-color" },
6
- "interaction": { "value": "{color.black}", "type": "color", "source": "$search-border-color-interaction" },
7
- "focus": { "value": "{color.black}", "type": "color", "source": "$search-border-focus-color" }
6
+ "base": { "source": "$search-border-color", "$value": "{color.gray.500}" },
7
+ "interaction": { "source": "$search-border-color-interaction", "$value": "{color.black}" },
8
+ "focus": { "source": "$search-border-focus-color", "$value": "{color.black}" }
8
9
  },
9
10
  "button": {
10
11
  "bg": {
11
- "primary": { "value": "{color.primary.500}", "type": "color", "source": "$search-btn-primary-bg" },
12
- "brand": { "value": "{color.brand.500}", "type": "color", "source": "$search-btn-brand-bg" }
12
+ "primary": { "source": "$search-btn-primary-bg", "$value": "{color.primary.500}" },
13
+ "brand": { "source": "$search-btn-brand-bg", "$value": "{color.brand.500}" }
13
14
  }
14
15
  },
15
- "form-bg": {
16
- "value": "{color.white}", "type": "color", "source": "$search-form-background-color"
17
- }
16
+ "form-bg": { "source": "$search-form-background-color", "$value": "{color.white}" }
18
17
  }
19
18
  },
20
19
  "other": {
20
+ "$type": "number",
21
21
  "search-field": {
22
- "disabled-opacity": { "value": ".3", "type": "ratio", "source": "$search-disabled-opacity" }
22
+ "disabled-opacity": { "source": "$search-disabled-opacity", "$value": ".3" }
23
23
  }
24
24
  }
25
25
  }
@@ -1,19 +1,18 @@
1
1
  {
2
2
  "color": {
3
+ "$type": "color",
3
4
  "sheet": {
4
5
  "skrim": {
5
- "bg": {
6
- "value": "{color.gray.300}",
7
- "type": "color",
6
+ "bg": {
8
7
  "source": "$sheet-skrim-bg",
9
- "modify": [{ "type": "alpha", "amount": 0.5 }]
8
+ "modify": [{ "type": "alpha", "amount": 0.5 }],
9
+ "$value": "{color.gray.300}"
10
10
  },
11
11
  "component": {
12
12
  "box-shadow": {
13
- "value": "{color.black}",
14
- "type": "color",
15
13
  "source": "$sheet-skrim-component-box-shadow",
16
- "modify": [{ "type": "alpha", "amount": 0.15 }]
14
+ "modify": [{ "type": "alpha", "amount": 0.15 }],
15
+ "$value": "{color.black}"
17
16
  }
18
17
  }
19
18
  }
@@ -1,31 +1,26 @@
1
1
  {
2
2
  "color": {
3
+ "$type": "color",
3
4
  "stepper": {
4
5
  "header": {
5
- "bg": {
6
- "base": { "value": "transparent", "type": "color", "source": "$stepper-header-bg" },
7
- "line": { "value": "{color.light.base}", "type": "color", "source": "$stepper-header-line-bg" }
6
+ "bg": {
7
+ "base": { "source": "$stepper-header-bg", "$value": "transparent" },
8
+ "line": { "source": "$stepper-header-line-bg", "$value": "{color.light.base}" }
8
9
  },
9
10
  "step": {
10
- "base": {
11
- "value": "{color.primary.base}", "type": "color", "source": "$stepper-header-step-color"
12
- },
11
+ "base": { "source": "$stepper-header-step-color", "$value": "{color.primary.base}" },
13
12
  "bg": {
14
- "base": {
15
- "value": "{color.stepper.header.bg.base}", "type": "color", "source": "$stepper-header-step-bg"
16
- },
17
- "active": {
18
- "value": "{color.gray.500}", "type": "color", "source": "$stepper-header-active-step-bg"
19
- }
13
+ "base": { "source": "$stepper-header-step-bg", "$value": "{color.stepper.header.bg.base}" },
14
+ "active": { "source": "$stepper-header-active-step-bg", "$value": "{color.gray.500}" }
20
15
  },
21
- "border": { "value": "none", "type": "color", "source": "$stepper-header-step-border" },
16
+ "border": { "source": "$stepper-header-step-border", "$value": "none" },
22
17
  "bubble-error": {
23
- "value": "{color.danger.base}", "type": "color", "source": "$stepper-header-step-error-bubble-color"
18
+ "source": "$stepper-header-step-error-bubble-color",
19
+ "$value": "{color.danger.base}"
24
20
  },
25
21
  "description-error": {
26
- "value": "{color.stepper.header.step.bubble-error}",
27
- "type": "color",
28
- "source": "$stepper-header-step-error-description-color"
22
+ "source": "$stepper-header-step-error-description-color",
23
+ "$value": "{color.stepper.header.step.bubble-error}"
29
24
  }
30
25
  }
31
26
  }
@@ -1,16 +1,41 @@
1
1
  {
2
2
  "elevation": {
3
+ "$type": "shadow",
3
4
  "sticky": {
4
5
  "shadow": {
5
6
  "top": {
6
- "value": "0 -.5rem 1rem rgba(0, 0, 0, .15), 0 -.25rem .625rem rgba(0, 0, 0, .15)",
7
- "type": "shadow",
8
- "source": "$sticky-shadow-top"
7
+ "source": "$sticky-shadow-top",
8
+ "$value": [
9
+ {
10
+ "color": "rgba(0, 0, 0, .15)",
11
+ "offsetX": "0",
12
+ "offsetY": "-.5rem",
13
+ "blur": "1rem"
14
+ },
15
+ {
16
+ "color": "rgba(0, 0, 0, .15)",
17
+ "offsetX": "0",
18
+ "offsetY": "-.25rem",
19
+ "blur": ".625rem"
20
+ }
21
+ ]
9
22
  },
10
23
  "bottom": {
11
- "value": "0 .5rem 1rem rgba(0, 0, 0, .15), 0 .25rem .625rem rgba(0, 0, 0, .15)",
12
- "type": "shadow",
13
- "source": "$sticky-shadow-bottom"
24
+ "source": "$sticky-shadow-bottom",
25
+ "$value": [
26
+ {
27
+ "color": "rgba(0, 0, 0, .15)",
28
+ "offsetX": "0",
29
+ "offsetY": ".5rem",
30
+ "blur": "1rem"
31
+ },
32
+ {
33
+ "color": "rgba(0, 0, 0, .15)",
34
+ "offsetX": "0",
35
+ "offsetY": ".25rem",
36
+ "blur": ".625rem"
37
+ }
38
+ ]
14
39
  }
15
40
  }
16
41
  }
@@ -1,59 +1,82 @@
1
1
  {
2
2
  "color": {
3
+ "$type": "color",
3
4
  "tab": {
4
5
  "more-link-dropdown-toggle": {
5
6
  "btn": {
6
7
  "text": {
7
8
  "focus": {
8
- "value": "{color.tab.more-link-dropdown-toggle.text.focus}",
9
- "type": "color",
10
- "source": "$tab-more-link-dropdown-toggle-btn-focus-color"
9
+ "source": "$tab-more-link-dropdown-toggle-btn-focus-color",
10
+ "$value": "{color.tab.more-link-dropdown-toggle.text.focus}"
11
11
  }
12
12
  },
13
13
  "border": {
14
14
  "focus": {
15
- "value": "{color.tab.more-link-dropdown-toggle.bg.focus}",
16
- "type": "color",
17
- "source": "$tab-more-link-dropdown-toggle-btn-focus-border-color"
15
+ "source": "$tab-more-link-dropdown-toggle-btn-focus-border-color",
16
+ "$value": "{color.tab.more-link-dropdown-toggle.bg.focus}"
18
17
  }
19
18
  }
20
19
  },
21
20
  "text": {
22
- "focus": { "value": "{color.white}", "type": "color", "source": "$tab-more-link-dropdown-toggle-focus-color" },
23
- "active": { "value": "{color.tab.more-link-dropdown-toggle.text.focus}", "type": "color", "source": "$tab-more-link-dropdown-toggle-active-color" },
24
- "hover": { "value": "{color.tab.more-link-dropdown-toggle.bg.focus}", "type": "color", "source": "$tab-more-link-dropdown-toggle-hover-color" }
21
+ "focus": {
22
+ "source": "$tab-more-link-dropdown-toggle-focus-color",
23
+ "$value": "{color.white}"
24
+ },
25
+ "active": {
26
+ "source": "$tab-more-link-dropdown-toggle-active-color",
27
+ "$value": "{color.tab.more-link-dropdown-toggle.text.focus}"
28
+ },
29
+ "hover": {
30
+ "source": "$tab-more-link-dropdown-toggle-hover-color",
31
+ "$value": "{color.tab.more-link-dropdown-toggle.bg.focus}"
32
+ }
25
33
  },
26
34
  "bg": {
27
- "focus": { "value": "{color.primary.500}", "type": "color", "source": "$tab-more-link-dropdown-toggle-focus-bg" }
35
+ "focus": {
36
+ "source": "$tab-more-link-dropdown-toggle-focus-bg",
37
+ "$value": "{color.primary.500}"
38
+ }
28
39
  },
29
40
  "border": {
30
- "focus": { "value": "{color.tab.more-link-dropdown-toggle.bg.focus}", "type": "color", "source": "$tab-more-link-dropdown-toggle-focus-border-color" }
41
+ "focus": {
42
+ "source": "$tab-more-link-dropdown-toggle-focus-border-color",
43
+ "$value": "{color.tab.more-link-dropdown-toggle.bg.focus}"
44
+ }
31
45
  }
32
46
  },
33
47
  "inverse-pills-link-dropdown-toggle": {
34
48
  "text": {
35
- "focus": { "value": "{color.primary.500}", "type": "color", "source": "$tab-inverse-pills-link-dropdown-toggle-focus-color" },
36
- "active": { "value": "{color.tab.inverse-pills-link-dropdown-toggle.text.focus}", "type": "color", "source": "$tab-inverse-pills-link-dropdown-toggle-active-color" },
49
+ "focus": {
50
+ "source": "$tab-inverse-pills-link-dropdown-toggle-focus-color",
51
+ "$value": "{color.primary.500}"
52
+ },
53
+ "active": {
54
+ "source": "$tab-inverse-pills-link-dropdown-toggle-active-color",
55
+ "$value": "{color.tab.inverse-pills-link-dropdown-toggle.text.focus}"
56
+ },
37
57
  "active-hover": {
38
- "value": "{color.tab.inverse-pills-link-dropdown-toggle.bg.focus}",
39
- "type": "color",
40
- "source": "$tab-inverse-pills-link-dropdown-toggle-active-hover-color"
58
+ "source": "$tab-inverse-pills-link-dropdown-toggle-active-hover-color",
59
+ "$value": "{color.tab.inverse-pills-link-dropdown-toggle.bg.focus}"
41
60
  }
42
61
  },
43
62
  "bg": {
44
- "focus": { "value": "{color.white}", "type": "color", "source": "$tab-inverse-pills-link-dropdown-toggle-focus-bg" },
45
- "hover": { "value": "transparent", "type": "color", "source": "$tab-inverse-tabs-link-dropdown-toggle-hover-bg" },
63
+ "focus": {
64
+ "source": "$tab-inverse-pills-link-dropdown-toggle-focus-bg",
65
+ "$value": "{color.white}"
66
+ },
67
+ "hover": {
68
+ "source": "$tab-inverse-tabs-link-dropdown-toggle-hover-bg",
69
+ "$value": "transparent"
70
+ },
46
71
  "active-hover": {
47
- "value": "{color.primary.300}",
48
- "type": "color",
49
- "source": "$tab-inverse-pills-link-dropdown-toggle-active-hover-bg"
72
+ "source": "$tab-inverse-pills-link-dropdown-toggle-active-hover-bg",
73
+ "$value": "{color.primary.300}"
50
74
  }
51
75
  },
52
76
  "border": {
53
77
  "focus": {
54
- "value": "{color.tab.inverse-pills-link-dropdown-toggle.bg.focus}",
55
- "type": "color",
56
- "source": "$tab-inverse-pills-link-dropdown-toggle-focus-border-color"
78
+ "source": "$tab-inverse-pills-link-dropdown-toggle-focus-border-color",
79
+ "$value": "{color.tab.inverse-pills-link-dropdown-toggle.bg.focus}"
57
80
  }
58
81
  }
59
82
  }
@@ -1,32 +1,44 @@
1
1
  {
2
2
  "color": {
3
+ "$type": "color",
3
4
  "toast": {
4
- "base": { "value": "inherit", "type": "color", "source": "$toast-color" },
5
- "bg": { "value": "{color.gray.700}", "type": "color", "source": "$toast-background-color" },
5
+ "base": { "source": "$toast-color", "$value": "inherit" },
6
+ "bg": { "source": "$toast-background-color", "$value": "{color.gray.700}" },
6
7
  "border": {
7
- "value": "{color.black}",
8
- "type": "color",
9
8
  "source": "$toast-border-color",
10
- "modify": [{ "type": "alpha", "amount": 0.1 }]
9
+ "modify": [{ "type": "alpha", "amount": 0.1 }],
10
+ "$value": "{color.black}"
11
11
  },
12
12
  "header": {
13
- "text": { "value": "{color.white}", "type": "color", "source": "$toast-header-color" },
14
- "bg": { "value": "{color.gray.700}", "type": "color", "source": "$toast-header-background-color" },
15
- "border": {
16
- "value": "{color.black}",
17
- "type": "color",
13
+ "text": { "source": "$toast-header-color", "$value": "{color.white}" },
14
+ "bg": { "source": "$toast-header-background-color", "$value": "{color.gray.700}" },
15
+ "border": {
18
16
  "source": "$toast-header-border-color",
19
- "modify": [{ "type": "alpha", "amount": 0.5 }]
17
+ "modify": [{ "type": "alpha", "amount": 0.5 }],
18
+ "$value": "{color.black}"
20
19
  }
21
20
  }
22
21
  }
23
22
  },
24
23
  "elevation": {
24
+ "$type": "shadow",
25
25
  "toast": {
26
26
  "box-shadow": {
27
- "value": "0 1.25rem 2.5rem rgba(0, 0, 0, .15), 0 .5rem 3rem rgba(0, 0, 0, .15)",
28
- "type": "shadow",
29
- "source": "$toast-box-shadow"
27
+ "source": "$toast-box-shadow",
28
+ "$value": [
29
+ {
30
+ "color": "rgba(0, 0, 0, .15)",
31
+ "offsetX": "0",
32
+ "offsetY": "1.25rem",
33
+ "blur": "2.5rem"
34
+ },
35
+ {
36
+ "color": "rgba(0, 0, 0, .15)",
37
+ "offsetX": "0",
38
+ "offsetY": ".5rem",
39
+ "blur": "3rem"
40
+ }
41
+ ]
30
42
  }
31
43
  }
32
44
  }