@openedx/paragon 23.0.0-alpha.2 → 23.0.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/bin/paragon-scripts.js +10 -0
  2. package/dist/Annotation/index.scss +16 -0
  3. package/dist/Button/index.d.ts +35 -0
  4. package/dist/Button/index.js +37 -15
  5. package/dist/Button/index.js.map +1 -1
  6. package/dist/Card/CardDeck.js +0 -2
  7. package/dist/Card/CardDeck.js.map +1 -1
  8. package/dist/Card/index.scss +6 -6
  9. package/dist/Carousel/index.scss +24 -1
  10. package/dist/Chip/ChipIcon.d.ts +13 -8
  11. package/dist/Chip/ChipIcon.js +0 -2
  12. package/dist/Chip/ChipIcon.js.map +1 -1
  13. package/dist/Chip/constants.d.ts +4 -0
  14. package/dist/Chip/constants.js +3 -2
  15. package/dist/Chip/constants.js.map +1 -0
  16. package/dist/Chip/index.d.ts +4 -3
  17. package/dist/Chip/index.js +2 -4
  18. package/dist/Chip/index.js.map +1 -1
  19. package/dist/ChipCarousel/index.js +0 -2
  20. package/dist/ChipCarousel/index.js.map +1 -1
  21. package/dist/CloseButton/index.scss +8 -0
  22. package/dist/ColorPicker/index.scss +1 -1
  23. package/dist/DataTable/index.scss +12 -0
  24. package/dist/Dropdown/dropdown-bootstrap.scss +6 -0
  25. package/dist/Dropzone/index.scss +34 -0
  26. package/dist/Form/_FormText.scss +1 -1
  27. package/dist/Form/_bootstrap-custom-forms.scss +40 -0
  28. package/dist/Form/_index.scss +9 -0
  29. package/dist/Form/_mixins.scss +22 -0
  30. package/dist/Hyperlink/index.d.ts +24 -0
  31. package/dist/Hyperlink/index.js +20 -32
  32. package/dist/Hyperlink/index.js.map +1 -1
  33. package/dist/Icon/index.d.ts +4 -2
  34. package/dist/Icon/index.js +1 -1
  35. package/dist/Icon/index.js.map +1 -1
  36. package/dist/IconButton/index.d.ts +342 -0
  37. package/dist/IconButton/index.js +18 -26
  38. package/dist/IconButton/index.js.map +1 -1
  39. package/dist/IconButton/index.scss +146 -0
  40. package/dist/Menu/index.scss +8 -0
  41. package/dist/Modal/ModalDialog.js +8 -4
  42. package/dist/Modal/ModalDialog.js.map +1 -1
  43. package/dist/Modal/ModalPopup.js +7 -1
  44. package/dist/Modal/ModalPopup.js.map +1 -1
  45. package/dist/Modal/_ModalDialog.scss +26 -2
  46. package/dist/Nav/index.scss +8 -0
  47. package/dist/Overlay/index.d.ts +128 -0
  48. package/dist/Overlay/index.js +8 -2
  49. package/dist/Overlay/index.js.map +1 -1
  50. package/dist/PageBanner/index.scss +2 -2
  51. package/dist/Pagination/pagination-bootstrap.scss +9 -0
  52. package/dist/Popover/index.scss +1 -1
  53. package/dist/ProductTour/Checkpoint.scss +1 -1
  54. package/dist/ProgressBar/bootstrap-progress.scss +20 -5
  55. package/dist/ProgressBar/index.scss +3 -3
  56. package/dist/Stepper/index.scss +1 -1
  57. package/dist/Sticky/index.scss +12 -0
  58. package/dist/Toast/index.scss +13 -1
  59. package/dist/Tooltip/index.d.ts +7 -0
  60. package/dist/Tooltip/index.js.map +1 -1
  61. package/dist/Tooltip/index.scss +16 -0
  62. package/dist/core.css +914 -470
  63. package/dist/core.css.map +1 -1
  64. package/dist/core.min.css +1 -1
  65. package/dist/index.d.ts +5 -5
  66. package/dist/index.js +7 -7
  67. package/dist/light.css +2035 -1315
  68. package/dist/light.css.map +1 -1
  69. package/dist/light.min.css +1 -1
  70. package/dist/setupTest.d.ts +2 -0
  71. package/dist/setupTest.js.map +1 -0
  72. package/dist/utils/types/bootstrap.d.ts +39 -0
  73. package/dist/utils/types/bootstrap.js +2 -0
  74. package/dist/utils/types/bootstrap.js.map +1 -0
  75. package/lib/build-tokens.js +67 -31
  76. package/package.json +11 -8
  77. package/src/Annotation/index.scss +16 -0
  78. package/src/Button/{Button.test.jsx → Button.test.tsx} +14 -2
  79. package/src/Button/__snapshots__/{Button.test.jsx.snap → Button.test.tsx.snap} +19 -2
  80. package/src/Button/{index.jsx → index.tsx} +58 -16
  81. package/src/Card/CardDeck.jsx +0 -3
  82. package/src/Card/README.md +0 -31
  83. package/src/Card/index.scss +6 -6
  84. package/src/Carousel/index.scss +24 -1
  85. package/src/Chip/{Chip.test.jsx → Chip.test.tsx} +5 -7
  86. package/src/Chip/ChipIcon.tsx +8 -8
  87. package/src/Chip/{constants.js → constants.ts} +1 -1
  88. package/src/Chip/index.tsx +6 -8
  89. package/src/ChipCarousel/index.tsx +0 -2
  90. package/src/CloseButton/index.scss +8 -0
  91. package/src/ColorPicker/index.scss +1 -1
  92. package/src/DataTable/index.scss +12 -0
  93. package/src/Dropdown/dropdown-bootstrap.scss +6 -0
  94. package/src/Dropzone/index.scss +34 -0
  95. package/src/Form/_FormText.scss +1 -1
  96. package/src/Form/_bootstrap-custom-forms.scss +40 -0
  97. package/src/Form/_index.scss +9 -0
  98. package/src/Form/_mixins.scss +22 -0
  99. package/src/Hyperlink/{Hyperlink.test.jsx → Hyperlink.test.tsx} +21 -10
  100. package/src/Hyperlink/{index.jsx → index.tsx} +41 -37
  101. package/src/Icon/index.d.ts +4 -2
  102. package/src/Icon/index.jsx +1 -1
  103. package/src/IconButton/{IconButton.test.jsx → IconButton.test.tsx} +24 -3
  104. package/src/IconButton/__snapshots__/IconButton.test.tsx.snap +90 -0
  105. package/src/IconButton/index.scss +146 -0
  106. package/src/IconButton/{index.jsx → index.tsx} +66 -26
  107. package/src/Menu/index.scss +8 -0
  108. package/src/Modal/ModalDialog.jsx +7 -3
  109. package/src/Modal/ModalPopup.jsx +9 -1
  110. package/src/Modal/_ModalDialog.scss +26 -2
  111. package/src/Modal/modal-dialog.mdx +95 -6
  112. package/src/Modal/tests/ModalDialog.test.jsx +2 -0
  113. package/src/Modal/tests/ModalPopupNoMock.test.jsx +29 -0
  114. package/src/Nav/index.scss +8 -0
  115. package/src/Overlay/{index.jsx → index.tsx} +13 -8
  116. package/src/PageBanner/index.scss +2 -2
  117. package/src/Pagination/pagination-bootstrap.scss +9 -0
  118. package/src/Popover/index.scss +1 -1
  119. package/src/ProductTour/Checkpoint.scss +1 -1
  120. package/src/ProgressBar/bootstrap-progress.scss +20 -5
  121. package/src/ProgressBar/index.scss +3 -3
  122. package/src/Stepper/index.scss +1 -1
  123. package/src/Sticky/index.scss +12 -0
  124. package/src/Toast/index.scss +13 -1
  125. package/src/Tooltip/index.scss +16 -0
  126. package/src/Tooltip/{index.jsx → index.tsx} +9 -3
  127. package/src/index.d.ts +5 -5
  128. package/src/index.js +7 -7
  129. package/src/{setupTest.js → setupTest.ts} +1 -0
  130. package/src/utils/types/bootstrap.test.tsx +86 -0
  131. package/src/utils/types/bootstrap.ts +43 -0
  132. package/styles/css/core/abstraction-variables.css +44 -0
  133. package/styles/css/core/custom-media-breakpoints.css +3 -4
  134. package/styles/css/core/index.css +2 -1
  135. package/styles/css/core/variables.css +494 -430
  136. package/styles/css/themes/light/abstraction-variables.css +304 -0
  137. package/styles/css/themes/light/index.css +1 -0
  138. package/styles/css/themes/light/utility-classes.css +2 -3
  139. package/styles/css/themes/light/variables.css +1753 -1334
  140. package/styles/scss/core/_typography.scss +16 -4
  141. package/styles/scss/core/_utilities.scss +7 -3
  142. package/styles/scss/core/_variables.scss +43 -30
  143. package/styles/scss/core/core.scss +1 -0
  144. package/tokens/src/core/alias/size.json +6 -5
  145. package/tokens/src/core/components/ActionRow.json +3 -2
  146. package/tokens/src/core/components/Alert.json +12 -10
  147. package/tokens/src/core/components/Annotation.json +9 -7
  148. package/tokens/src/core/components/Avatar.json +9 -9
  149. package/tokens/src/core/components/AvatarButton.json +4 -3
  150. package/tokens/src/core/components/Badge.json +12 -9
  151. package/tokens/src/core/components/Breadcrumb.json +7 -5
  152. package/tokens/src/core/components/Bubble.json +4 -3
  153. package/tokens/src/core/components/Button/core.json +35 -59
  154. package/tokens/src/core/components/Card.json +33 -44
  155. package/tokens/src/core/components/Carousel.json +39 -13
  156. package/tokens/src/core/components/Chip.json +13 -21
  157. package/tokens/src/core/components/ChipCarousel.json +4 -5
  158. package/tokens/src/core/components/CloseButton.json +2 -6
  159. package/tokens/src/core/components/Code.json +9 -8
  160. package/tokens/src/core/components/Collapsible.json +10 -13
  161. package/tokens/src/core/components/ColorPicker.json +3 -2
  162. package/tokens/src/core/components/Container.json +6 -5
  163. package/tokens/src/core/components/DataTable.json +17 -9
  164. package/tokens/src/core/components/Dropdown.json +24 -29
  165. package/tokens/src/core/components/Dropzone.json +5 -7
  166. package/tokens/src/core/components/Form/other.json +5 -4
  167. package/tokens/src/core/components/Form/size.json +72 -119
  168. package/tokens/src/core/components/Form/spacing.json +39 -83
  169. package/tokens/src/core/components/Form/transition.json +43 -7
  170. package/tokens/src/core/components/Form/typography.json +24 -88
  171. package/tokens/src/core/components/Icon.json +6 -5
  172. package/tokens/src/core/components/IconButton.json +4 -7
  173. package/tokens/src/core/components/Image.json +7 -6
  174. package/tokens/src/core/components/Menu.json +14 -12
  175. package/tokens/src/core/components/Modal.json +26 -21
  176. package/tokens/src/core/components/Nav.json +14 -16
  177. package/tokens/src/core/components/Navbar.json +15 -30
  178. package/tokens/src/core/components/Pagination.json +23 -24
  179. package/tokens/src/core/components/Popover.json +18 -14
  180. package/tokens/src/core/components/ProductTour.json +8 -14
  181. package/tokens/src/core/components/ProgressBar.json +29 -14
  182. package/tokens/src/core/components/SearchField.json +7 -9
  183. package/tokens/src/core/components/SelectableBox.json +4 -3
  184. package/tokens/src/core/components/Sheet.json +3 -2
  185. package/tokens/src/core/components/Spinner.json +9 -7
  186. package/tokens/src/core/components/Stack.json +2 -1
  187. package/tokens/src/core/components/Stepper.json +12 -14
  188. package/tokens/src/core/components/Sticky.json +2 -1
  189. package/tokens/src/core/components/Tab.json +8 -7
  190. package/tokens/src/core/components/Tabs.json +5 -5
  191. package/tokens/src/core/components/Toast.json +11 -8
  192. package/tokens/src/core/components/Tooltip.json +13 -11
  193. package/tokens/src/core/components/general/caret.json +5 -3
  194. package/tokens/src/core/components/general/headings.json +5 -4
  195. package/tokens/src/core/components/general/hr.json +3 -2
  196. package/tokens/src/core/components/general/input.json +19 -19
  197. package/tokens/src/core/components/general/link.json +13 -12
  198. package/tokens/src/core/components/general/list.json +9 -6
  199. package/tokens/src/core/components/general/text.json +6 -12
  200. package/tokens/src/core/global/breakpoints.json +25 -6
  201. package/tokens/src/core/global/elevation.json +55 -13
  202. package/tokens/src/core/global/other.json +5 -1
  203. package/tokens/src/core/global/spacing.json +70 -17
  204. package/tokens/src/core/global/transition.json +41 -4
  205. package/tokens/src/core/global/typography.json +248 -53
  206. package/tokens/src/core/utilities/color.json +35 -4
  207. package/tokens/src/themes/light/alias/color.json +276 -75
  208. package/tokens/src/themes/light/components/Alert.json +15 -26
  209. package/tokens/src/themes/light/components/Annotation.json +27 -13
  210. package/tokens/src/themes/light/components/Avatar.json +2 -1
  211. package/tokens/src/themes/light/components/Badge.json +57 -122
  212. package/tokens/src/themes/light/components/Breadcrumb.json +6 -5
  213. package/tokens/src/themes/light/components/Bubble.json +9 -8
  214. package/tokens/src/themes/light/components/Button/brand.json +171 -119
  215. package/tokens/src/themes/light/components/Button/core.json +8 -9
  216. package/tokens/src/themes/light/components/Button/danger.json +171 -112
  217. package/tokens/src/themes/light/components/Button/dark.json +188 -106
  218. package/tokens/src/themes/light/components/Button/info.json +186 -112
  219. package/tokens/src/themes/light/components/Button/light.json +186 -110
  220. package/tokens/src/themes/light/components/Button/primary.json +178 -116
  221. package/tokens/src/themes/light/components/Button/secondary.json +166 -132
  222. package/tokens/src/themes/light/components/Button/success.json +176 -117
  223. package/tokens/src/themes/light/components/Button/tertiary.json +34 -60
  224. package/tokens/src/themes/light/components/Button/warning.json +164 -128
  225. package/tokens/src/themes/light/components/Card.json +10 -21
  226. package/tokens/src/themes/light/components/Carousel.json +12 -11
  227. package/tokens/src/themes/light/components/Chip.json +14 -26
  228. package/tokens/src/themes/light/components/CloseButton.json +12 -2
  229. package/tokens/src/themes/light/components/Code.json +7 -9
  230. package/tokens/src/themes/light/components/DataTable.json +7 -11
  231. package/tokens/src/themes/light/components/Dropdown.json +17 -20
  232. package/tokens/src/themes/light/components/Dropzone.json +49 -11
  233. package/tokens/src/themes/light/components/Form/color.json +101 -155
  234. package/tokens/src/themes/light/components/Form/elevation.json +38 -42
  235. package/tokens/src/themes/light/components/Form/other.json +44 -41
  236. package/tokens/src/themes/light/components/IconButton.json +408 -256
  237. package/tokens/src/themes/light/components/Image.json +7 -4
  238. package/tokens/src/themes/light/components/Menu.json +12 -10
  239. package/tokens/src/themes/light/components/Modal.json +22 -12
  240. package/tokens/src/themes/light/components/Nav.json +82 -94
  241. package/tokens/src/themes/light/components/Navbar.json +32 -76
  242. package/tokens/src/themes/light/components/OverflowScroll.json +3 -1
  243. package/tokens/src/themes/light/components/PageBanner.json +11 -10
  244. package/tokens/src/themes/light/components/Pagination.json +19 -23
  245. package/tokens/src/themes/light/components/Popover.json +22 -27
  246. package/tokens/src/themes/light/components/ProductTour.json +9 -20
  247. package/tokens/src/themes/light/components/ProgressBar.json +12 -10
  248. package/tokens/src/themes/light/components/Scrollable.json +3 -3
  249. package/tokens/src/themes/light/components/SearchField.json +9 -9
  250. package/tokens/src/themes/light/components/Sheet.json +6 -7
  251. package/tokens/src/themes/light/components/Stepper.json +12 -17
  252. package/tokens/src/themes/light/components/Sticky.json +31 -6
  253. package/tokens/src/themes/light/components/Tab.json +47 -24
  254. package/tokens/src/themes/light/components/Toast.json +26 -14
  255. package/tokens/src/themes/light/components/Tooltip.json +25 -10
  256. package/tokens/src/themes/light/components/general/body.json +3 -2
  257. package/tokens/src/themes/light/components/general/headings.json +2 -1
  258. package/tokens/src/themes/light/components/general/hr.json +3 -6
  259. package/tokens/src/themes/light/components/general/input.json +11 -4
  260. package/tokens/src/themes/light/components/general/link.json +34 -43
  261. package/tokens/src/themes/light/components/general/list.json +15 -19
  262. package/tokens/src/themes/light/components/general/text.json +5 -6
  263. package/tokens/src/themes/light/global/color.json +1592 -867
  264. package/tokens/src/themes/light/global/elevation.json +481 -93
  265. package/tokens/style-dictionary.js +342 -144
  266. package/tokens/utils.js +176 -6
  267. package/src/IconButton/__snapshots__/IconButton.test.jsx.snap +0 -20
  268. package/tokens/src/core/global/display.json +0 -22
  269. /package/src/Button/{ButtonGroup.test.jsx → ButtonGroup.test.tsx} +0 -0
  270. /package/src/Button/{ButtonToolbar.test.jsx → ButtonToolbar.test.tsx} +0 -0
  271. /package/src/Button/__snapshots__/{ButtonGroup.test.jsx.snap → ButtonGroup.test.tsx.snap} +0 -0
  272. /package/src/Button/__snapshots__/{ButtonToolbar.test.jsx.snap → ButtonToolbar.test.tsx.snap} +0 -0
  273. /package/src/Chip/__snapshots__/{Chip.test.jsx.snap → Chip.test.tsx.snap} +0 -0
  274. /package/src/Tooltip/{Tooltip.test.jsx → Tooltip.test.tsx} +0 -0
@@ -1,233 +1,309 @@
1
1
  {
2
2
  "color": {
3
+ "$type": "color",
3
4
  "btn": {
4
5
  "text": {
5
6
  "light": {
6
- "value": "{color.btn.bg.light}",
7
- "type": "color",
8
7
  "source": "$btn-light-color",
9
- "modify": [{ "type": "color-yiq" }]
8
+ "modify": [{ "type": "color-yiq" }],
9
+ "$value": "{color.btn.bg.light}"
10
+ },
11
+ "outline-light": {
12
+ "source": "$btn-light-outline-color",
13
+ "$value": "{color.light.base}"
14
+ },
15
+ "inverse-light": {
16
+ "source": "$btn-light-inverse-color",
17
+ "$value": "{color.light.base}"
10
18
  },
11
- "outline-light": { "value": "{color.light.base}", "type": "color", "source": "$btn-light-outline-color" },
12
- "inverse-light": { "value": "{color.light.base}", "type": "color", "source": "$btn-light-inverse-color" },
13
19
  "inverse-outline-light": {
14
- "value": "{color.white}", "type": "color", "source": "$btn-light-inverse-outline-color"
20
+ "source": "$btn-light-inverse-outline-color",
21
+ "$value": "{color.white}"
15
22
  }
16
23
  },
17
24
  "bg": {
18
- "light": { "value": "{color.light.base}", "type": "color", "source": "$btn-light-bg" },
25
+ "light": {
26
+ "source": "$btn-light-bg",
27
+ "$value": "{color.light.base}"
28
+ },
19
29
  "inverse-light": {
20
- "value": "{color.btn.text.inverse-light}",
21
- "type": "color",
22
30
  "source": "$btn-light-inverse-bg",
23
- "modify": [{ "type": "color-yiq" }]
31
+ "modify": [{ "type": "color-yiq" }],
32
+ "$value": "{color.btn.text.inverse-light}"
33
+ },
34
+ "outline-light": {
35
+ "source": "$btn-light-outline-bg",
36
+ "$value": "inherit"
24
37
  },
25
- "outline-light": { "value": "inherit", "type": "color", "source": "$btn-light-outline-bg" },
26
- "inverse-outline-light": { "value": "inherit", "type": "color", "source": "$btn-light-inverse-outline-bg" }
38
+ "inverse-outline-light": {
39
+ "source": "$btn-light-inverse-outline-bg",
40
+ "$value": "inherit"
41
+ }
27
42
  },
28
43
  "border": {
29
- "light": { "value": "{color.btn.bg.light}", "type": "color", "source": "$btn-light-border-color" },
44
+ "light": {
45
+ "source": "$btn-light-border-color",
46
+ "$value": "{color.btn.bg.light}"
47
+ },
30
48
  "outline-light": {
31
- "value": "{color.light.base}", "type": "color", "source": "$btn-light-outline-border-color"
49
+ "source": "$btn-light-outline-border-color",
50
+ "$value": "{color.light.base}"
51
+ },
52
+ "inverse-light": {
53
+ "source": "$btn-light-inverse-border-color",
54
+ "$value": "transparent"
32
55
  },
33
- "inverse-light": { "value": "transparent", "type": "color", "source": "$btn-light-inverse-border-color" },
34
56
  "inverse-outline-light": {
35
- "value": "{color.white}", "type": "color", "source": "$btn-light-inverse-outline-border-color"
57
+ "source": "$btn-light-inverse-outline-border-color",
58
+ "$value": "{color.white}"
36
59
  }
37
60
  },
38
61
  "hover": {
39
62
  "text": {
40
63
  "light": {
41
- "value": "{color.btn.hover.bg.light}",
42
- "type": "color",
43
64
  "source": "$btn-light-hover-color",
44
- "modify": [{ "type": "color-yiq" }]
65
+ "modify": [{ "type": "color-yiq" }],
66
+ "$value": "{color.btn.hover.bg.light}"
45
67
  },
46
68
  "outline-light": {
47
- "value": "{color.theme.hover.light}", "type": "color", "source": "$btn-light-outline-hover-color"
69
+ "source": "$btn-light-outline-hover-color",
70
+ "$value": "{color.theme.hover.light}"
48
71
  },
49
72
  "inverse-light": {
50
- "value": "{color.btn.text.inverse-light}",
51
- "type": "color",
52
73
  "source": "$btn-light-inverse-hover-color",
53
- "modify": [{ "type": "darken", "amount": 0.075 }]
74
+ "modify": [{ "type": "darken", "amount": 0.075 }],
75
+ "$value": "{color.btn.text.inverse-light}"
54
76
  },
55
77
  "inverse-outline-light": {
56
- "value": "{color.theme.hover.light}",
57
- "type": "color",
58
- "source": "$btn-light-inverse-outline-hover-color"
78
+ "source": "$btn-light-inverse-outline-hover-color",
79
+ "$value": "{color.theme.hover.light}"
59
80
  }
60
81
  },
61
82
  "bg": {
62
- "light": { "value": "{color.theme.hover.light}", "type": "color", "source": "$btn-light-hover-bg" },
83
+ "light": {
84
+ "source": "$btn-light-hover-bg",
85
+ "$value": "{color.theme.hover.light}"
86
+ },
63
87
  "outline-light": {
64
- "value": "{color.light.100}", "type": "color", "source": "$btn-light-outline-hover-bg"
88
+ "source": "$btn-light-outline-hover-bg",
89
+ "$value": "{color.light.100}"
65
90
  },
66
91
  "inverse-light": {
67
- "value": "{color.btn.bg.inverse-light}",
68
- "type": "color",
69
92
  "source": "$btn-light-inverse-hover-bg",
70
- "modify": [{ "type": "darken", "amount": 0.075 }]
93
+ "modify": [{ "type": "darken", "amount": 0.075 }],
94
+ "$value": "{color.btn.bg.inverse-light}"
71
95
  },
72
96
  "inverse-outline-light": {
73
- "value": "{color.light.100}", "type": "color", "source": "$btn-light-inverse-outline-hover-bg"
97
+ "source": "$btn-light-inverse-outline-hover-bg",
98
+ "$value": "{color.light.100}"
74
99
  }
75
100
  },
76
101
  "border": {
77
102
  "light": {
78
- "value": "{color.theme.hover.light}", "type": "color", "source": "$btn-light-hover-border-color"
103
+ "source": "$btn-light-hover-border-color",
104
+ "$value": "{color.theme.hover.light}"
79
105
  },
80
106
  "outline-light": {
81
- "value": "{color.light.900}", "type": "color", "source": "$btn-light-outline-hover-border-color"
107
+ "source": "$btn-light-outline-hover-border-color",
108
+ "$value": "{color.light.900}"
109
+ },
110
+ "inverse-light": {
111
+ "source": "$btn-light-inverse-hover-border-color",
112
+ "$value": "transparent"
82
113
  },
83
- "inverse-light": { "value": "transparent", "type": "color", "source": "$btn-light-inverse-hover-border-color" },
84
114
  "inverse-outline-light": {
85
- "value": "transparent", "type": "color", "source": "$btn-light-inverse-outline-hover-border-color"
115
+ "source": "$btn-light-inverse-outline-hover-border-color",
116
+ "$value": "transparent"
86
117
  }
87
118
  }
88
119
  },
89
120
  "active": {
90
121
  "text": {
91
122
  "light": {
92
- "value": "{color.btn.active.bg.light}",
93
- "type": "color",
94
123
  "source": "$btn-light-active-color",
95
- "modify": [{ "type": "color-yiq" }]
124
+ "modify": [{ "type": "color-yiq" }],
125
+ "$value": "{color.btn.active.bg.light}"
96
126
  },
97
127
  "outline-light": {
98
- "value": "{color.btn.active.bg.outline-light}",
99
- "type": "color",
100
128
  "source": "$btn-light-outline-active-color",
101
- "modify": [{ "type": "color-yiq" }]
129
+ "modify": [{ "type": "color-yiq" }],
130
+ "$value": "{color.btn.active.bg.outline-light}"
102
131
  },
103
132
  "inverse-light": {
104
- "value": "{color.btn.text.inverse-light}",
105
- "type": "color",
106
133
  "source": "$btn-light-inverse-active-color",
107
- "modify": [{ "type": "darken", "amount": 0.1 }]
134
+ "modify": [{ "type": "darken", "amount": 0.1 }],
135
+ "$value": "{color.btn.text.inverse-light}"
108
136
  },
109
137
  "inverse-outline-light": {
110
- "value": "{color.btn.active.bg.inverse-outline-light}",
111
- "type": "color",
112
138
  "source": "$btn-light-inverse-outline-active-color",
113
- "modify": [{ "type": "color-yiq" }] }
139
+ "modify": [{ "type": "color-yiq" }],
140
+ "$value": "{color.btn.active.bg.inverse-outline-light}"
141
+ }
114
142
  },
115
143
  "bg": {
116
- "light": { "value": "{color.theme.active.light}", "type": "color", "source": "$btn-light-active-bg" },
144
+ "light": {
145
+ "source": "$btn-light-active-bg",
146
+ "$value": "{color.theme.active.light}"
147
+ },
117
148
  "outline-light": {
118
- "value": "{color.theme.bg.light}", "type": "color", "source": "$btn-light-outline-active-bg"
149
+ "source": "$btn-light-outline-active-bg",
150
+ "$value": "{color.theme.bg.light}"
151
+ },
152
+ "inverse-light": {
153
+ "source": "$btn-light-inverse-active-bg",
154
+ "$value": "{color.gray.100}"
119
155
  },
120
- "inverse-light": { "value": "{color.gray.100}", "type": "color", "source": "$btn-light-inverse-active-bg" },
121
156
  "inverse-outline-light": {
122
- "value": "{color.theme.bg.light}", "type": "color", "source": "$btn-light-inverse-outline-active-bg"
157
+ "source": "$btn-light-inverse-outline-active-bg",
158
+ "$value": "{color.theme.bg.light}"
123
159
  }
124
160
  },
125
161
  "border": {
126
162
  "light": {
127
- "value": "{color.theme.active.light}", "type": "color", "source": "$btn-light-active-border-color"
163
+ "source": "$btn-light-active-border-color",
164
+ "$value": "{color.theme.active.light}"
128
165
  },
129
166
  "outline-light": {
130
- "value": "{color.theme.active.light}",
131
- "type": "color",
132
- "source": "$btn-light-outline-active-border-color"
167
+ "source": "$btn-light-outline-active-border-color",
168
+ "$value": "{color.theme.active.light}"
169
+ },
170
+ "inverse-light": {
171
+ "source": "$btn-light-inverse-active-border-color",
172
+ "$value": "inherit"
133
173
  },
134
- "inverse-light": { "value": "inherit", "type": "color", "source": "$btn-light-inverse-active-border-color" },
135
174
  "inverse-outline-light": {
136
- "value": "transparent", "type": "color", "source": "$btn-light-inverse-outline-active-border-color"
175
+ "source": "$btn-light-inverse-outline-active-border-color",
176
+ "$value": "transparent"
137
177
  }
138
178
  }
139
179
  },
140
180
  "focus": {
141
181
  "text": {
142
- "light": { "value": "{color.btn.text.light}", "type": "color", "source": "$btn-light-focus-color" },
182
+ "light": {
183
+ "source": "$btn-light-focus-color",
184
+ "$value": "{color.btn.text.light}"
185
+ },
143
186
  "outline-light": {
144
- "value": "{color.btn.text.outline-light}",
145
- "type": "color",
146
- "source": "$btn-light-outline-focus-color"
187
+ "source": "$btn-light-outline-focus-color",
188
+ "$value": "{color.btn.text.outline-light}"
147
189
  },
148
190
  "inverse-light": {
149
- "value": "{color.btn.text.inverse-light}",
150
- "type": "color",
151
- "source": "$btn-light-inverse-focus-color"
191
+ "source": "$btn-light-inverse-focus-color",
192
+ "$value": "{color.btn.text.inverse-light}"
152
193
  },
153
194
  "inverse-outline-light": {
154
- "value": "{color.btn.text.inverse-outline-light}",
155
- "type": "color",
156
- "source": "$btn-light-inverse-outline-focus-color"
195
+ "source": "$btn-light-inverse-outline-focus-color",
196
+ "$value": "{color.btn.text.inverse-outline-light}"
157
197
  }
158
198
  },
159
199
  "border": {
160
- "light": { "value": "{color.btn.border.light}", "type": "color", "source": "$btn-light-focus-border-color" },
200
+ "light": {
201
+ "source": "$btn-light-focus-border-color",
202
+ "$value": "{color.btn.border.light}"
203
+ },
161
204
  "outline-light": {
162
- "value": "{color.btn.border.outline-light}",
163
- "type": "color",
164
- "source": "$btn-light-outline-focus-border-color"
205
+ "source": "$btn-light-outline-focus-border-color",
206
+ "$value": "{color.btn.border.outline-light}"
165
207
  },
166
208
  "inverse-light": {
167
- "value": "{color.btn.border.inverse-light}",
168
- "type": "color",
169
- "source": "$btn-light-inverse-focus-border-color"
209
+ "source": "$btn-light-inverse-focus-border-color",
210
+ "$value": "{color.btn.border.inverse-light}"
170
211
  },
171
212
  "inverse-outline-light": {
172
- "value": "{color.btn.border.inverse-outline-light}",
173
- "type": "color",
174
- "source": "$btn-light-inverse-outline-focus-border-color"
213
+ "source": "$btn-light-inverse-outline-focus-border-color",
214
+ "$value": "{color.btn.border.inverse-outline-light}"
175
215
  }
176
216
  },
177
217
  "bg": {
178
- "light": { "value": "{color.btn.bg.light}", "type": "color", "source": "$btn-light-focus-bg" },
179
- "outline-light": { "value": "transparent", "type": "color", "source": "$btn-light-outline-focus-bg" },
180
- "inverse-light": { "value": "{color.btn.bg.inverse-light}", "type": "color", "source": "$btn-light-inverse-focus-bg" },
181
- "inverse-outline-light": { "value": "inherit", "type": "color", "source": "$btn-light-inverse-outline-focus-bg" }
218
+ "light": {
219
+ "source": "$btn-light-focus-bg",
220
+ "$value": "{color.btn.bg.light}"
221
+ },
222
+ "outline-light": {
223
+ "source": "$btn-light-outline-focus-bg",
224
+ "$value": "transparent"
225
+ },
226
+ "inverse-light": {
227
+ "source": "$btn-light-inverse-focus-bg",
228
+ "$value": "{color.btn.bg.inverse-light}"
229
+ },
230
+ "inverse-outline-light": {
231
+ "source": "$btn-light-inverse-outline-focus-bg",
232
+ "$value": "inherit"
233
+ }
182
234
  },
183
235
  "outline": {
184
- "light": { "value": "{color.primary.300}", "type": "color", "source": "$btn-light-focus-outline-color" },
185
- "outline-light": { "value": "{color.theme.focus.light}", "type": "color", "source": "$btn-light-outline-focus-outline-color" },
186
- "inverse-light": { "value": "{color.white}", "type": "color", "source": "$btn-light-inverse-focus-outline-color" },
236
+ "light": {
237
+ "source": "$btn-light-focus-outline-color",
238
+ "$value": "{color.primary.300}"
239
+ },
240
+ "outline-light": {
241
+ "source": "$btn-light-outline-focus-outline-color",
242
+ "$value": "{color.theme.focus.light}"
243
+ },
244
+ "inverse-light": {
245
+ "source": "$btn-light-inverse-focus-outline-color",
246
+ "$value": "{color.white}"
247
+ },
187
248
  "inverse-outline-light": {
188
- "value": "{color.btn.focus.border.inverse-outline-light}",
189
- "type": "color",
190
- "source": "$btn-light-inverse-outline-focus-outline-color"
249
+ "source": "$btn-light-inverse-outline-focus-outline-color",
250
+ "$value": "{color.btn.focus.border.inverse-outline-light}"
191
251
  }
192
252
  }
193
253
  },
194
254
  "disabled": {
195
255
  "text": {
196
- "light": { "value": "{color.btn.text.light}", "type": "color", "source": "$btn-light-disabled-color" },
256
+ "light": {
257
+ "source": "$btn-light-disabled-color",
258
+ "$value": "{color.btn.text.light}"
259
+ },
197
260
  "outline-light": {
198
- "value": "{color.btn.hover.text.outline-light}",
199
- "type": "color",
200
- "source": "$btn-light-outline-disabled-color"
261
+ "source": "$btn-light-outline-disabled-color",
262
+ "$value": "{color.btn.hover.text.outline-light}"
201
263
  },
202
264
  "inverse-light": {
203
- "value": "{color.btn.text.inverse-light}",
204
- "type": "color",
205
- "source": "$btn-light-inverse-disabled-color"
265
+ "source": "$btn-light-inverse-disabled-color",
266
+ "$value": "{color.btn.text.inverse-light}"
206
267
  },
207
268
  "inverse-outline-light": {
208
- "value": "{color.btn.text.inverse-outline-light}",
209
- "type": "color",
210
- "source": "$btn-light-inverse-outline-disabled-color"
269
+ "source": "$btn-light-inverse-outline-disabled-color",
270
+ "$value": "{color.btn.text.inverse-outline-light}"
211
271
  }
212
272
  },
213
273
  "bg": {
214
- "light": { "value": "{color.btn.bg.light}", "type": "color", "source": "$btn-light-disabled-bg" },
215
- "outline-light": { "value": "inherit", "type": "color", "source": "$btn-light-outline-disabled-bg" },
216
- "inverse-light": { "value": "inherit", "type": "color", "source": "$btn-light-inverse-disabled-bg" },
217
- "inverse-outline-light": { "value": "inherit", "type": "color", "source": "$btn-light-inverse-outline-disabled-bg" }
274
+ "light": {
275
+ "source": "$btn-light-disabled-bg",
276
+ "$value": "{color.btn.bg.light}"
277
+ },
278
+ "outline-light": {
279
+ "source": "$btn-light-outline-disabled-bg",
280
+ "$value": "inherit"
281
+ },
282
+ "inverse-light": {
283
+ "source": "$btn-light-inverse-disabled-bg",
284
+ "$value": "inherit"
285
+ },
286
+ "inverse-outline-light": {
287
+ "source": "$btn-light-inverse-outline-disabled-bg",
288
+ "$value": "inherit"
289
+ }
218
290
  },
219
291
  "border": {
220
- "light": { "value": "{color.btn.border.light}", "type": "color", "source": "$btn-light-disabled-border-color" },
292
+ "light": {
293
+ "source": "$btn-light-disabled-border-color",
294
+ "$value": "{color.btn.border.light}"
295
+ },
221
296
  "outline-light": {
222
- "value": "{color.btn.hover.text.outline-light}",
223
- "type": "color",
224
- "source": "$btn-light-outline-disabled-border-color"
297
+ "source": "$btn-light-outline-disabled-border-color",
298
+ "$value": "{color.btn.hover.text.outline-light}"
299
+ },
300
+ "inverse-light": {
301
+ "source": "$btn-light-inverse-disabled-border-color",
302
+ "$value": "transparent"
225
303
  },
226
- "inverse-light": { "value": "transparent", "type": "color", "source": "$btn-light-inverse-disabled-border-color" },
227
304
  "inverse-outline-light": {
228
- "value": "{color.btn.border.inverse-outline-light}",
229
- "type": "color",
230
- "source": "$btn-light-inverse-outline-disabled-border-color"
305
+ "source": "$btn-light-inverse-outline-disabled-border-color",
306
+ "$value": "{color.btn.border.inverse-outline-light}"
231
307
  }
232
308
  }
233
309
  }