@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,17 +1,20 @@
1
1
  {
2
2
  "color": {
3
+ "$type": "color",
3
4
  "image": {
4
- "figure-caption": { "value": "{color.gray.500}", "type": "color", "source": "$figure-caption-color" },
5
+ "figure-caption": { "source": "$figure-caption-color", "$value": "{color.gray.500}" },
5
6
  "thumbnail": {
6
- "bg": { "value": "{color.body.bg}", "type": "color", "source": "$thumbnail-bg" },
7
- "border": { "value": "{color.gray.200}", "type": "color", "source": "$thumbnail-border-color" }
7
+ "bg": { "source": "$thumbnail-bg", "$value": "{color.body.bg}" },
8
+ "border": { "source": "$thumbnail-border-color", "$value": "{color.gray.200}"
9
+ }
8
10
  }
9
11
  }
10
12
  },
11
13
  "elevation": {
14
+ "$type": "shadow",
12
15
  "image": {
13
16
  "thumbnail": {
14
- "box-shadow": { "value": "none", "type": "shadow", "source": "$thumbnail-box-shadow" }
17
+ "box-shadow": { "source": "$thumbnail-box-shadow", "$value": "none" }
15
18
  }
16
19
  }
17
20
  }
@@ -1,28 +1,30 @@
1
1
  {
2
2
  "elevation": {
3
+ "$type": "shadow",
3
4
  "menu": {
4
- "box-shadow": { "value": "{elevation.box-shadow.base}", "type": "shadow", "source": "$menu-box-shadow" }
5
+ "box-shadow": { "source": "$menu-box-shadow", "$value": "{elevation.box-shadow.base}" }
5
6
  }
6
7
  },
7
8
  "color": {
9
+ "$type": "color",
8
10
  "menu": {
9
- "bg": { "value": "{color.white}", "type": "color", "source": "$menu-bg" },
11
+ "bg": { "source": "$menu-bg", "$value": "{color.white}" },
10
12
  "item": {
11
- "color": { "value": "{color.body.base}", "type": "color", "source": "$menu-item-color" },
12
- "bg": { "value": "transparent", "type": "color", "source": "$menu-item-bg" },
13
- "border": { "value": "{color.menu.item.bg}", "type": "color", "source": "$menu-item-border-color" },
13
+ "color": { "source": "$menu-item-color", "$value": "{color.body.base}" },
14
+ "bg": { "source": "$menu-item-bg", "$value": "transparent" },
15
+ "border": { "source": "$menu-item-border-color", "$value": "{color.menu.item.bg}" },
14
16
  "hover": {
15
- "color": { "value": "{color.btn.text.tertiary}", "type": "color", "source": "$menu-item-hover-color" },
16
- "bg": { "value": "{color.btn.hover.bg.tertiary}", "type": "color", "source": "$menu-item-hover-bg" },
17
- "border": { "value": "{color.menu.item.bg}", "type": "color", "source": "$menu-item-hover-border-color" }
17
+ "color": { "source": "$menu-item-hover-color", "$value": "{color.btn.text.tertiary}" },
18
+ "bg": { "source": "$menu-item-hover-bg", "$value": "{color.btn.hover.bg.tertiary}" },
19
+ "border": { "source": "$menu-item-hover-border-color", "$value": "{color.menu.item.bg}" }
18
20
  },
19
21
  "focus": {
20
- "bg": { "value": "{color.btn.active.bg.tertiary}", "type": "color", "source": "$menu-item-focus-bg" }
22
+ "bg": { "source": "$menu-item-focus-bg", "$value": "{color.btn.active.bg.tertiary}" }
21
23
  }
22
24
  },
23
25
  "select": {
24
26
  "btn-link": {
25
- "color": { "value": "{color.primary.500}", "type": "color", "source": "$menu-select-btn-link-color" }
27
+ "color": { "source": "$menu-select-btn-link-color", "$value": "{color.primary.500}" }
26
28
  }
27
29
  }
28
30
  }
@@ -1,29 +1,39 @@
1
1
  {
2
2
  "color": {
3
+ "$type": "color",
3
4
  "modal": {
4
5
  "content": {
5
- "bg": { "value": "{color.bg.base}", "type": "color", "source": "$modal-content-bg" },
6
+ "bg": { "source": "$modal-content-bg", "$value": "{color.bg.base}" },
6
7
  "border": {
7
- "value": "{color.black}",
8
- "type": "color",
9
8
  "source": "$modal-content-border-color",
10
- "modify": [{
11
- "type": "alpha",
12
- "amount": 0.2
13
- }]
9
+ "modify": [{ "type": "alpha", "amount": 0.2 }],
10
+ "$value": "{color.black}"
14
11
  }
15
12
  },
16
- "backdrop-bg": { "value": "{color.black}", "type": "color", "source": "$modal-backdrop-bg" }
13
+ "backdrop-bg": { "source": "$modal-backdrop-bg", "$value": "{color.black}" }
17
14
  }
18
15
  },
19
16
  "elevation": {
17
+ "$type": "shadow",
20
18
  "modal": {
21
19
  "content": {
22
20
  "box-shadow": {
23
21
  "sm-up": {
24
- "value": "0 10px 20px rgba(0, 0, 0, .15), 0 8px 20px rgba(0, 0, 0, .15)",
25
- "type": "shadow",
26
- "source": "$modal-content-box-shadow-sm-up"
22
+ "source": "$modal-content-box-shadow-sm-up",
23
+ "$value": [
24
+ {
25
+ "color": "rgba(0, 0, 0, .15)",
26
+ "offsetX": "0",
27
+ "offsetY": "10px",
28
+ "blur": "20px"
29
+ },
30
+ {
31
+ "color": "rgba(0, 0, 0, .15)",
32
+ "offsetX": "0",
33
+ "offsetY": "8px",
34
+ "blur": "20px"
35
+ }
36
+ ]
27
37
  }
28
38
  }
29
39
  }
@@ -31,7 +41,7 @@
31
41
  },
32
42
  "other": {
33
43
  "modal": {
34
- "opacity": { "value": ".5", "source": "$modal-backdrop-opacity" }
44
+ "opacity": { "source": "$modal-backdrop-opacity", "$value": ".5" }
35
45
  }
36
46
  }
37
47
  }
@@ -1,84 +1,99 @@
1
1
  {
2
2
  "border-color": {
3
+ "$type": "color",
3
4
  "nav": {
4
5
  "tabs-link": {
5
6
  "border": {
6
- "active": {
7
- "value": "{color.primary.500}",
8
- "type": "color",
9
- "source": "$nav-tabs-link-active-border-color"
10
- },
7
+ "active": { "source": "$nav-tabs-link-active-border-color", "$value": "{color.primary.500}" },
11
8
  "hover": {
12
- "value": "transparent transparent {color.nav.tabs.base.border.base}",
13
- "type": "color",
14
- "source": "$nav-tabs-link-hover-border-color"
9
+ "source": "$nav-tabs-link-hover-border-color",
10
+ "$value": {
11
+ "top": "transparent",
12
+ "right": "transparent",
13
+ "bottom": "{color.nav.tabs.base.border.base}",
14
+ "left": "transparent"
15
+ }
15
16
  },
16
17
  "focus": {
17
- "value": "{color.nav.tabs.base.link.active.text}",
18
- "type": "color",
19
- "source": "$nav-tabs-link-focus-border-color"
18
+ "source": "$nav-tabs-link-focus-border-color",
19
+ "$value": "{color.nav.tabs.base.link.active.text}"
20
20
  }
21
21
  }
22
22
  }
23
23
  }
24
24
  },
25
25
  "color": {
26
+ "$type": "color",
26
27
  "nav": {
27
28
  "link": {
28
29
  "text": {
29
- "base": { "value": "{color.gray.700}", "type": "color", "source": "$nav-link-color" },
30
- "disabled": { "value": "{color.gray.300}", "type": "color", "source": "$nav-link-disabled-color" }
30
+ "base": { "source": "$nav-link-color", "$value": "{color.gray.700}" },
31
+ "disabled": { "source": "$nav-link-disabled-color", "$value": "{color.gray.300}" }
31
32
  },
32
- "border": { "value": "transparent", "type": "color", "source": "$nav-tabs-link-border-color" }
33
+ "border": { "source": "$nav-tabs-link-border-color", "$value": "transparent" }
33
34
  },
34
35
  "tabs": {
35
36
  "base": {
36
37
  "text": {
37
- "disabled": { "value": "{color.nav.tabs.base.bg.hover}", "type": "color", "source": "$nav-tabs-disabled-bg" }
38
- },
39
- "bg": {
40
- "hover": { "value": "transparent", "type": "color", "source": "$nav-tabs-hover-bg" }
38
+ "disabled": { "source": "$nav-tabs-disabled-bg", "$value": "{color.nav.tabs.base.bg.hover}" }
41
39
  },
40
+ "bg": { "hover": { "source": "$nav-tabs-hover-bg", "$value": "transparent" } },
42
41
  "border": {
43
- "base": { "value": "{color.light.400}", "type": "color", "source": "$nav-tabs-border-color" },
44
- "focus": { "value": "{color.nav.tabs.base.bg.hover}", "type": "color", "source": "$nav-tabs-focus-border-color" }
42
+ "base": { "source": "$nav-tabs-border-color", "$value": "{color.light.400}" },
43
+ "focus": { "source": "$nav-tabs-focus-border-color", "$value": "{color.nav.tabs.base.bg.hover}" }
45
44
  },
46
45
  "link": {
47
- "hover": {
48
- "bg": { "value": "{color.light.400}", "type": "color", "source": "$nav-tabs-link-hover-bg" }
49
- },
46
+ "hover": { "bg": { "source": "$nav-tabs-link-hover-bg", "$value": "{color.light.400}" } },
50
47
  "active": {
51
- "text": { "value": "{color.primary.500}", "type": "color", "source": "$nav-tabs-link-active-color" },
52
- "bg": { "value": "transparent", "type": "color", "source": "$nav-tabs-link-active-bg" }
48
+ "text": { "source": "$nav-tabs-link-active-color", "$value": "{color.primary.500}" },
49
+ "bg": { "source": "$nav-tabs-link-active-bg", "$value": "transparent" }
53
50
  },
54
51
  "disabled": {
55
- "border": { "value": "{color.nav.link.border}", "type": "color", "source": "$nav-tabs-link-disabled-border-color" }
52
+ "border": { "source": "$nav-tabs-link-disabled-border-color", "$value": "{color.nav.link.border}" }
56
53
  }
57
54
  }
58
55
  },
59
56
  "inverse": {
60
57
  "link": {
61
- "text": {
62
- "base": { "value": "{color.white}", "type": "color", "source": "$nav-inverse-tabs-link-color" }
63
- },
58
+ "text": { "base": { "source": "$nav-inverse-tabs-link-color", "$value": "{color.white}" } },
64
59
  "border": {
65
- "bottom": { "value": "{color.dark.300}", "type": "color", "source": "$nav-inverse-tabs-link-border-bottom-color" },
66
- "active": { "value": "{color.nav.tabs.inverse.link.text.base}", "type": "color", "source": "$nav-inverse-tabs-link-active-border-color" }
60
+ "bottom": {
61
+ "source": "$nav-inverse-tabs-link-border-bottom-color",
62
+ "$value": "{color.dark.300}"
63
+ },
64
+ "active": {
65
+ "source": "$nav-inverse-tabs-link-active-border-color",
66
+ "$value": "{color.nav.tabs.inverse.link.text.base}"
67
+ }
67
68
  },
68
69
  "bg": {
69
- "hover": { "value": "{color.nav.tabs.inverse.link.border.bottom}", "type": "color", "source": "$nav-inverse-tabs-link-hover-bg" },
70
- "active": { "value": "{color.nav.tabs.inverse.link.bg.hover}", "type": "color", "source": "$nav-inverse-tabs-link-active-bg" },
71
- "focus": { "value": "{color.nav.tabs.inverse.link.text.base}", "type": "color", "source": "$nav-inverse-tabs-link-focus-bg" },
70
+ "hover": {
71
+ "source": "$nav-inverse-tabs-link-hover-bg",
72
+ "$value": "{color.nav.tabs.inverse.link.border.bottom}"
73
+ },
74
+ "active": {
75
+ "source": "$nav-inverse-tabs-link-active-bg",
76
+ "$value": "{color.nav.tabs.inverse.link.bg.hover}"
77
+ },
78
+ "focus": {
79
+ "source": "$nav-inverse-tabs-link-focus-bg",
80
+ "$value": "{color.nav.tabs.inverse.link.text.base}"
81
+ },
72
82
  "active-hover": {
73
- "value": "transparent",
74
- "type": "color",
75
- "source": "$nav-inverse-tabs-link-active-hover-bg"
83
+ "source": "$nav-inverse-tabs-link-active-hover-bg",
84
+ "$value": "transparent"
76
85
  }
77
86
  },
78
- "tab-content-color": { "value": "{color.nav.tabs.inverse.link.text.base}", "type": "color", "source": "$nav-inverse-tabs-tab-content-color" }
87
+ "tab-content-color": {
88
+ "source": "$nav-inverse-tabs-tab-content-color",
89
+ "$value": "{color.nav.tabs.inverse.link.text.base}"
90
+ }
79
91
  },
80
92
  "dropdown": {
81
- "border": { "value": "{color.nav.tabs.inverse.link.bg.active-hover}", "type": "color", "source": "$nav-inverse-tabs-dropdown-border-color" }
93
+ "border": {
94
+ "source": "$nav-inverse-tabs-dropdown-border-color",
95
+ "$value": "{color.nav.tabs.inverse.link.bg.active-hover}"
96
+ }
82
97
  }
83
98
  }
84
99
  },
@@ -86,80 +101,53 @@
86
101
  "base": {
87
102
  "link": {
88
103
  "active": {
89
- "text": { "value": "{color.active}", "type": "color", "source": "$nav-pills-link-active-color" },
90
- "bg": { "value": "{color.bg.active}", "type": "color", "source": "$nav-pills-link-active-bg" },
91
- "border": { "value": "{color.white}", "type": "color", "source": "$nav-pills-link-active-border-color" }
104
+ "text": { "source": "$nav-pills-link-active-color", "$value": "{color.active}" },
105
+ "bg": { "source": "$nav-pills-link-active-bg", "$value": "{color.bg.active}" },
106
+ "border": { "source": "$nav-pills-link-active-border-color", "$value": "{color.white}" }
92
107
  },
93
- "border": { "value": "{color.nav.tabs.base.border.base}", "type": "color", "source": "$nav-pills-link-border-color" }
108
+ "border": { "source": "$nav-pills-link-border-color", "$value": "{color.nav.tabs.base.border.base}" }
94
109
  }
95
110
  },
96
111
  "inverse": {
97
112
  "link": {
98
113
  "text": {
99
- "base": { "value": "{color.white}", "type": "color", "source": "$nav-inverse-pills-link-color" },
100
- "focus": { "value": "{color.nav.pills.inverse.link.text.base}", "type": "color", "source": "$nav-inverse-pills-link-focus-color" },
101
- "active": { "value": "{color.primary.500}", "type": "color", "source": "$nav-inverse-pills-link-active-color" },
102
- "hover": { "value": "{color.nav.pills.inverse.link.text.base}", "type": "color", "source": "$nav-inverse-pills-link-hover-color" },
103
- "active-focus": {
104
- "value": "{color.nav.pills.inverse.link.text.active}",
105
- "type": "color",
106
- "source": "$nav-inverse-pills-link-active-focus-color"
107
- },
108
- "active-hover": {
109
- "value": "{color.nav.pills.inverse.link.text.base}",
110
- "type": "color",
111
- "source": "$nav-inverse-pills-link-active-hover-color"
112
- }
114
+ "base": { "source": "$nav-inverse-pills-link-color", "$value": "{color.white}" },
115
+ "focus": { "source": "$nav-inverse-pills-link-focus-color", "$value": "{color.nav.pills.inverse.link.text.base}" },
116
+ "active": { "source": "$nav-inverse-pills-link-active-color", "$value": "{color.primary.500}" },
117
+ "hover": { "source": "$nav-inverse-pills-link-hover-color", "$value": "{color.nav.pills.inverse.link.text.base}" },
118
+ "active-focus": { "source": "$nav-inverse-pills-link-active-focus-color", "$value": "{color.nav.pills.inverse.link.text.active}" },
119
+ "active-hover": { "source": "$nav-inverse-pills-link-active-hover-color", "$value": "{color.nav.pills.inverse.link.text.base}" }
113
120
  },
114
121
  "border": {
115
- "base": { "value": "{color.dark.300}", "type": "color", "source": "$nav-inverse-pills-link-border-color" },
116
- "active": { "value": "{color.nav.pills.inverse.link.text.base}", "type": "color", "source": "$nav-inverse-pills-link-active-border-color" },
117
- "active-hover": {
118
- "value": "{color.nav.pills.inverse.link.border.base}",
119
- "type": "color",
120
- "source": "$nav-inverse-pills-link-active-hover-border-color"
121
- },
122
- "active-focus": {
123
- "value": "{color.primary.base}",
124
- "type": "color",
125
- "source": "$nav-inverse-pills-link-active-focus-border-color"
126
- },
127
- "focus-hover": {
128
- "value": "{color.nav.pills.inverse.link.border.active-focus}",
129
- "type": "color",
130
- "source": "$nav-inverse-pills-link-active-focus-hover-border-color"
131
- }
122
+ "base": { "source": "$nav-inverse-pills-link-border-color", "$value": "{color.dark.300}" },
123
+ "active": { "source": "$nav-inverse-pills-link-active-border-color", "$value": "{color.nav.pills.inverse.link.text.base}" },
124
+ "active-hover": { "source": "$nav-inverse-pills-link-active-hover-border-color", "$value": "{color.nav.pills.inverse.link.border.base}" },
125
+ "active-focus": { "source": "$nav-inverse-pills-link-active-focus-border-color", "$value": "{color.primary.base}" },
126
+ "focus-hover": { "source": "$nav-inverse-pills-link-active-focus-hover-border-color", "$value": "{color.nav.pills.inverse.link.border.active-focus}" }
132
127
  },
133
128
  "bg": {
134
- "hover": { "value": "{color.nav.pills.inverse.link.border.base}", "type": "color", "source": "$nav-inverse-pills-link-hover-bg" },
135
- "active": { "value": "{color.nav.pills.inverse.link.text.base}", "type": "color", "source": "$nav-inverse-pills-link-active-bg" },
136
- "active-hover": {
137
- "value": "{color.nav.pills.inverse.link.border.base}",
138
- "type": "color",
139
- "source": "$nav-inverse-pills-link-active-hover-bg"
140
- },
141
- "active-focus-hover": {
142
- "value": "{color.nav.pills.inverse.link.text.base}",
143
- "type": "color",
144
- "source": "$nav-inverse-pills-link-active-focus-hover-bg"
145
- }
129
+ "hover": { "source": "$nav-inverse-pills-link-hover-bg", "$value": "{color.nav.pills.inverse.link.border.base}" },
130
+ "active": { "source": "$nav-inverse-pills-link-active-bg", "$value": "{color.nav.pills.inverse.link.text.base}" },
131
+ "active-hover": { "source": "$nav-inverse-pills-link-active-hover-bg", "$value": "{color.nav.pills.inverse.link.border.base}" },
132
+ "active-focus-hover": { "source": "$nav-inverse-pills-link-active-focus-hover-bg", "$value": "{color.nav.pills.inverse.link.text.base}" }
146
133
  }
147
134
  },
148
- "tab-content-color": { "value": "{color.nav.pills.inverse.link.text.base}", "type": "color", "source": "$nav-inverse-pills-tab-content-color" }
135
+ "tab-content-color": {
136
+ "source": "$nav-inverse-pills-tab-content-color",
137
+ "$value": "{color.nav.pills.inverse.link.text.base}"
138
+ }
149
139
  }
150
140
  },
151
- "divider": { "value": "{color.gray.100}", "type": "color", "source": "$nav-divider-color" },
141
+ "divider": { "source": "$nav-divider-color", "$value": "{color.gray.100}" },
152
142
  "dark": {
153
- "value": "{color.white}",
154
- "type": "color",
155
143
  "source": "$navbar-dark-color",
156
- "modify": [{ "type": "alpha", "amount": 0.5 }]
144
+ "modify": [{ "type": "alpha", "amount": 0.5 }],
145
+ "$value": "{color.white}"
157
146
  },
158
147
  "light": {
159
- "value": "{color.black}",
160
- "type": "color",
161
148
  "source": "$navbar-light-color",
162
- "modify": [{ "type": "alpha", "amount": 0.5 }]
149
+ "modify": [{ "type": "alpha", "amount": 0.5 }],
150
+ "$value": "{color.black}"
163
151
  }
164
152
  }
165
153
  }
@@ -1,133 +1,89 @@
1
1
  {
2
2
  "color": {
3
+ "$type": "color",
3
4
  "navbar": {
4
5
  "dark": {
5
6
  "text": {
6
- "value": "{color.white}",
7
- "type": "color",
8
7
  "source": "$navbar-dark-color",
9
- "modify": [{
10
- "type": "alpha",
11
- "amount": 0.5
12
- }]
8
+ "modify": [{ "type": "alpha", "amount": 0.5 }],
9
+ "$value": "{color.white}"
13
10
  },
14
11
  "hover": {
15
- "value": "{color.white}",
16
- "type": "color",
17
12
  "source": "$navbar-dark-hover-color",
18
- "modify": [{
19
- "type": "alpha",
20
- "amount": 0.75
21
- }]
13
+ "modify": [{ "type": "alpha", "amount": 0.75 }],
14
+ "$value": "{color.white}"
22
15
  },
23
- "active": { "value": "{color.active}", "type": "color", "source": "$navbar-dark-active-color" },
16
+ "active": { "source": "$navbar-dark-active-color", "$value": "{color.active}" },
24
17
  "disabled": {
25
- "value": "{color.white}",
26
- "type": "color",
27
18
  "source": "$navbar-dark-disabled-color",
28
- "modify": [{
29
- "type": "alpha",
30
- "amount": 0.25
31
- }]
19
+ "modify": [{ "type": "alpha", "amount": 0.25 }],
20
+ "$value": "{color.white}"
32
21
  },
33
22
  "toggler": {
34
23
  "border": {
35
- "value": "{color.white}",
36
- "type": "color",
37
24
  "source": "$navbar-dark-toggler-border-color",
38
- "modify": [{
39
- "type": "alpha",
40
- "amount": 0.1
41
- }]
25
+ "modify": [{ "type": "alpha", "amount": 0.1 }],
26
+ "$value": "{color.white}"
42
27
  }
43
28
  },
44
29
  "brand": {
45
- "text": { "value": "{color.navbar.dark.active}", "type": "color", "source": "$navbar-dark-brand-color" },
46
- "hover": { "value": "{color.navbar.dark.active}", "type": "color", "source": "$navbar-dark-brand-hover-color" }
30
+ "text": { "source": "$navbar-dark-brand-color", "$value": "{color.navbar.dark.active}" },
31
+ "hover": { "source": "$navbar-dark-brand-hover-color", "$value": "{color.navbar.dark.active}" }
47
32
  }
48
33
  },
49
34
  "light": {
50
35
  "text": {
51
- "value": "{color.black}",
52
- "type": "color",
53
36
  "source": "$navbar-light-color",
54
- "modify": [{
55
- "type": "alpha",
56
- "amount": 0.5
57
- }]
37
+ "modify": [{ "type": "alpha", "amount": 0.5 }],
38
+ "$value": "{color.black}"
58
39
  },
59
- "hover": {
60
- "value": "{color.black}",
61
- "type": "color",
40
+ "hover": {
62
41
  "source": "$navbar-light-hover-color",
63
- "modify": [{
64
- "type": "alpha",
65
- "amount": 0.7
66
- }]
42
+ "modify": [{ "type": "alpha", "amount": 0.7 }],
43
+ "$value": "{color.black}"
67
44
  },
68
- "active": {
69
- "value": "{color.black}",
70
- "type": "color",
45
+ "active": {
71
46
  "source": "$navbar-light-active-color",
72
- "modify": [{
73
- "type": "alpha",
74
- "amount": 0.9
75
- }]
47
+ "modify": [{ "type": "alpha", "amount": 0.9 }],
48
+ "$value": "{color.black}"
76
49
  },
77
- "disabled": {
78
- "value": "{color.black}",
79
- "type": "color",
50
+ "disabled": {
80
51
  "source": "$navbar-light-disabled-color",
81
- "modify": [{
82
- "type": "alpha",
83
- "amount": 0.3
84
- }]
52
+ "modify": [{ "type": "alpha", "amount": 0.3 }],
53
+ "$value": "{color.black}"
85
54
  },
86
55
  "toggler": {
87
56
  "border": {
88
- "value": "{color.black}",
89
- "type": "color",
90
57
  "source": "$navbar-light-toggler-border-color",
91
- "modify": [{
92
- "type": "alpha",
93
- "amount": 0.1
94
- }]
58
+ "modify": [{ "type": "alpha", "amount": 0.1 }],
59
+ "$value": "{color.black}"
95
60
  }
96
61
  },
97
62
  "brand": {
98
- "text": { "value": "{color.navbar.light.active}", "type": "color", "source": "$navbar-light-brand-color" },
99
- "hover": { "value": "{color.navbar.light.active}", "type": "color", "source": "$navbar-light-brand-hover-color" }
63
+ "text": { "source": "$navbar-light-brand-color", "$value": "{color.navbar.light.active}" },
64
+ "hover": { "source": "$navbar-light-brand-hover-color", "$value": "{color.navbar.light.active}" }
100
65
  }
101
66
  }
102
67
  }
103
68
  },
104
69
  "content": {
70
+ "$type": "file",
105
71
  "navbar": {
106
72
  "toggler": {
107
73
  "dark": {
108
74
  "icon-bg": {
109
- "value": "url(\"data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='{color.navbar.dark.text}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e\")",
110
- "type": "file",
111
75
  "source": "$navbar-dark-toggler-icon-bg",
112
76
  "outputReferences": false,
113
- "modify": [{
114
- "type": "str-replace",
115
- "toReplace": "#",
116
- "replaceWith": "%23"
117
- }]
77
+ "modify": [{ "type": "str-replace", "toReplace": "#", "replaceWith": "%23" }],
78
+ "$value": "url(\"data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='{color.navbar.dark.text}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e\")"
118
79
  }
119
80
  },
120
81
  "light": {
121
82
  "icon-bg": {
122
- "value": "url(\"data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='{color.navbar.light.text}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e\")",
123
- "type": "file",
124
83
  "source": "$navbar-light-toggler-icon-bg",
125
84
  "outputReferences": false,
126
- "modify": [{
127
- "type": "str-replace",
128
- "toReplace": "#",
129
- "replaceWith": "%23"
130
- }]
85
+ "modify": [{ "type": "str-replace", "toReplace": "#", "replaceWith": "%23" }],
86
+ "$value": "url(\"data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='{color.navbar.light.text}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e\")"
131
87
  }
132
88
  }
133
89
  }
@@ -1,8 +1,10 @@
1
1
  {
2
2
  "color": {
3
+ "$type": "color",
3
4
  "overflow-scroll": {
4
5
  "opacity-mask-transparent": {
5
- "value": "rgba(0, 0, 0, .4)", "type": "color", "source": "$overflow-scroll-opacity-mask-transparent"
6
+ "source": "$overflow-scroll-opacity-mask-transparent",
7
+ "$value": "rgba(0, 0, 0, .4)"
6
8
  }
7
9
  }
8
10
  }
@@ -1,23 +1,24 @@
1
1
  {
2
2
  "color": {
3
+ "$type": "color",
3
4
  "page-banner": {
4
5
  "bg": {
5
- "dark": { "value": "{color.dark.500}", "type": "color" },
6
- "light": { "value": "{color.light.400}", "type": "color" },
6
+ "dark": { "$value": "{color.dark.500}" },
7
+ "light": { "$value": "{color.light.400}" },
7
8
  "accent": {
8
- "a": { "value": "{color.accent.a}", "type": "color" },
9
- "b": { "value": "{color.accent.b}", "type": "color" }
9
+ "a": { "$value": "{color.accent.a}" },
10
+ "b": { "$value": "{color.accent.b}" }
10
11
  },
11
- "warning": { "value": "{color.warning.100}", "type": "color" }
12
+ "warning": { "$value": "{color.warning.100}" }
12
13
  },
13
14
  "text": {
14
- "dark": { "value": "{color.white}", "type": "color" },
15
- "light": { "value": "{color.black}", "type": "color" },
15
+ "dark": { "$value": "{color.white}" },
16
+ "light": { "$value": "{color.black}" },
16
17
  "accent": {
17
- "a": { "value": "{color.black}", "type": "color" },
18
- "b": { "value": "{color.black}", "type": "color" }
18
+ "a": { "$value": "{color.black}" },
19
+ "b": { "$value": "{color.black}" }
19
20
  },
20
- "warning": { "value": "{color.black}", "type": "color" }
21
+ "warning": { "$value": "{color.black}" }
21
22
  }
22
23
  }
23
24
  }