@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
@@ -2,225 +2,178 @@
2
2
  "size": {
3
3
  "form": {
4
4
  "input": {
5
+ "$type": "dimension",
5
6
  "height": {
6
7
  "base": {
7
- "value": "calc({typography.form.input.line-height.base} * 1em + {spacing.form.input.padding.y.base} * 2 + {size.form.input.height.border})",
8
- "type": "dimension",
9
- "source": "$input-height"
8
+ "source": "$input-height",
9
+ "$value": "calc({typography.form.input.line-height.base} * 1em + {spacing.form.input.padding.y.base} * 2 + {size.form.input.height.border})"
10
10
  },
11
11
  "sm": {
12
- "value": "calc({typography.form.input.line-height.sm} * 1em + {spacing.input.btn.padding.sm.y} * 2 + {size.form.input.height.border})",
13
- "type": "dimension",
14
- "source": "$input-height-sm"
12
+ "source": "$input-height-sm",
13
+ "$value": "calc({typography.form.input.line-height.sm} * 1em + {spacing.input.btn.padding.sm.y} * 2 + {size.form.input.height.border})"
15
14
  },
16
15
  "lg": {
17
- "value": "calc({typography.form.input.line-height.lg} * 1em + {spacing.input.btn.padding.lg.y} * 2 + {size.form.input.height.border})",
18
- "type": "dimension",
19
- "source": "$input-height-lg"
16
+ "source": "$input-height-lg",
17
+ "$value": "calc({typography.form.input.line-height.lg} * 1em + {spacing.input.btn.padding.lg.y} * 2 + {size.form.input.height.border})"
20
18
  },
21
19
  "inner": {
22
20
  "base": {
23
- "value": "calc({typography.form.input.line-height.base} * 1em + {spacing.form.input.padding.y.base} * 2)",
24
- "type": "dimension",
25
- "source": "$input-height-inner"
21
+ "source": "$input-height-inner",
22
+ "$value": "calc({typography.form.input.line-height.base} * 1em + {spacing.form.input.padding.y.base} * 2)"
26
23
  },
27
24
  "half": {
28
- "value": "calc({typography.form.input.line-height.base} * .5em + {spacing.form.input.padding.y.base})",
29
- "type": "dimension",
30
- "source": "$input-height-inner-half"
25
+ "source": "$input-height-inner-half",
26
+ "$value": "calc({typography.form.input.line-height.base} * .5em + {spacing.form.input.padding.y.base})"
31
27
  },
32
28
  "quarter": {
33
- "value": "calc({typography.form.input.line-height.base} * .25em + calc({spacing.form.input.padding.y.base} / 2))",
34
- "type": "dimension",
35
- "source": "$input-height-inner-quarter"
29
+ "source": "$input-height-inner-quarter",
30
+ "$value": "calc({typography.form.input.line-height.base} * .25em + calc({spacing.form.input.padding.y.base} / 2))"
36
31
  }
37
32
  },
38
- "border": {
39
- "value": "calc({size.form.input.width.border} * 2)",
40
- "type": "dimension",
41
- "source": "$input-height-border"
42
- }
33
+ "border": { "source": "$input-height-border", "$value": "calc({size.form.input.width.border} * 2)" }
43
34
  },
44
35
  "width": {
45
- "hover": { "value": "0.063rem", "type": "dimension", "source": "$input-hover-width" },
46
- "focus": { "value": "0.063rem", "type": "dimension", "source": "$input-focus-width" },
47
- "border": {
48
- "value": "{size.input.btn.border-width}", "type": "dimension", "source": "$input-border-width"
49
- }
36
+ "hover": { "source": "$input-hover-width", "$value": "0.063rem" },
37
+ "focus": { "source": "$input-focus-width", "$value": "0.063rem" },
38
+ "border": { "source": "$input-border-width", "$value": "{size.input.btn.border-width}" }
50
39
  },
51
40
  "radius": {
52
41
  "border": {
53
- "base": { "value": "{size.border.radius.base}", "type": "dimension", "source": "$input-border-radius" },
54
- "lg": { "value": "{size.border.radius.lg}", "type": "dimension", "source": "$input-border-radius-lg" },
55
- "sm": { "value": "{size.border.radius.sm}", "type": "dimension", "source": "$input-border-radius-sm" }
42
+ "base": { "source": "$input-border-radius", "$value": "{size.border.radius.base}" },
43
+ "lg": { "source": "$input-border-radius-lg", "$value": "{size.border.radius.lg}" },
44
+ "sm": { "source": "$input-border-radius-sm", "$value": "{size.border.radius.sm}" }
56
45
  }
57
46
  }
58
47
  },
59
48
  "control": {
60
49
  "indicator": {
61
- "base": { "value": "1.25rem", "type": "dimension", "source": "$custom-control-indicator-size" },
62
- "bg": { "value": "100%", "type": "percentage", "source": "$custom-control-indicator-bg-size" },
50
+ "base": { "source": "$custom-control-indicator-size", "$value": "1.25rem", "$type": "dimension" },
51
+ "bg": { "source": "$custom-control-indicator-bg-size", "$value": "100%", "$type": "percentage" },
63
52
  "border": {
64
- "width": { "value": "0.125rem", "type": "dimension", "source": "$custom-control-indicator-border-width" }
53
+ "$type": "dimension",
54
+ "width": { "source": "$custom-control-indicator-border-width", "$value": "0.125rem" }
65
55
  }
66
56
  },
67
57
  "switch": {
68
- "width": {
69
- "value": "calc({size.form.control.indicator.base} * 1.75)",
70
- "type": "dimension",
71
- "source": "$custom-switch-width"
72
- },
58
+ "$type": "dimension",
59
+ "width": { "source": "$custom-switch-width", "$value": "calc({size.form.control.indicator.base} * 1.75)" },
73
60
  "indicator": {
74
61
  "base": {
75
- "value": "calc({size.form.control.indicator.base} - {size.form.control.indicator.border.width} * 4)",
76
- "type": "dimension",
77
- "source": "$custom-switch-indicator-size"
62
+ "source": "$custom-switch-indicator-size",
63
+ "$value": "calc({size.form.control.indicator.base} - {size.form.control.indicator.border.width} * 4)"
78
64
  },
79
65
  "border": {
80
66
  "radius": {
81
- "value": "calc({size.form.control.indicator.base} / 2)",
82
- "type": "dimension",
83
- "source": "$custom-switch-indicator-border-radius"
67
+ "source": "$custom-switch-indicator-border-radius",
68
+ "$value": "calc({size.form.control.indicator.base} / 2)"
84
69
  }
85
70
  }
86
71
  }
87
72
  },
88
73
  "select": {
74
+ "$type": "dimension",
89
75
  "height": {
90
- "base": {
91
- "value": "{size.form.input.height.base}", "type": "dimension", "source": "$custom-select-height"
92
- },
93
- "lg": {
94
- "value": "{size.form.input.height.lg}", "type": "dimension", "source": "$custom-select-height-lg"
95
- },
96
- "sm": {
97
- "value": "{size.form.input.height.sm}", "type": "dimension", "source": "$custom-select-height-sm"
98
- }
76
+ "base": { "source": "$custom-select-height", "$value": "{size.form.input.height.base}" },
77
+ "lg": { "source": "$custom-select-height-lg", "$value": "{size.form.input.height.lg}" },
78
+ "sm": { "source": "$custom-select-height-sm", "$value": "{size.form.input.height.sm}" }
99
79
  },
100
80
  "feedback": {
101
81
  "icon": {
102
- "value": "{size.form.input.height.inner.half} {size.form.input.height.inner.half}",
103
- "type": "dimension",
104
- "source": "$custom-select-feedback-icon-size"
82
+ "source": "$custom-select-feedback-icon-size",
83
+ "$value": "{size.form.input.height.inner.half} {size.form.input.height.inner.half}"
105
84
  }
106
85
  },
107
86
  "border": {
108
87
  "width": {
109
- "base": {
110
- "value": "{size.form.input.width.border}",
111
- "type": "dimension",
112
- "source": "$custom-select-border-width"
113
- }
88
+ "base": { "source": "$custom-select-border-width", "$value": "{size.form.input.width.border}" }
114
89
  },
115
- "radius": {
116
- "value": "{size.border.radius.base}", "type": "dimension", "source": "$custom-select-border-radius"
117
- }
90
+ "radius": { "source": "$custom-select-border-radius", "$value": "{size.border.radius.base}" }
118
91
  }
119
92
  },
120
93
  "range": {
121
94
  "track": {
122
- "width": { "value": "100%", "type": "percentage", "source": "$custom-range-track-width" },
123
- "height": { "value": ".5rem", "type": "dimension", "source": "$custom-range-track-height" },
95
+ "width": { "source": "$custom-range-track-width", "$value": "100%", "$type": "percentage" },
96
+ "height": { "source": "$custom-range-track-height", "$value": ".5rem", "$type": "dimension" },
124
97
  "border": {
125
- "radius": { "value": "1rem", "type": "dimension", "source": "$custom-range-track-border-radius" }
98
+ "$type": "dimension",
99
+ "radius": { "source": "$custom-range-track-border-radius", "$value": "1rem" }
126
100
  }
127
101
  },
128
102
  "thumb": {
129
- "width": { "value": "1rem", "type": "dimension", "source": "$custom-range-thumb-width" },
130
- "height": {
131
- "value": "{size.form.control.range.thumb.width}",
132
- "type": "dimension",
133
- "source": "$custom-range-thumb-height"
134
- },
103
+ "$type": "dimension",
104
+ "width": { "source": "$custom-range-thumb-width", "$value": "1rem" },
105
+ "height": { "source": "$custom-range-thumb-height", "$value": "{size.form.control.range.thumb.width}" },
135
106
  "border": {
136
- "base": { "value": "0", "type": "dimension", "source": "$custom-range-thumb-border" },
137
- "radius": { "value": "1rem", "type": "dimension", "source": "$custom-range-thumb-border-radius" }
107
+ "base": { "source": "$custom-range-thumb-border", "$value": "0" },
108
+ "radius": { "source": "$custom-range-thumb-border-radius", "$value": "1rem" }
138
109
  },
139
110
  "focus": {
140
- "width": {
141
- "value": "{size.form.input.width.focus}",
142
- "type": "dimension",
143
- "source": "$custom-range-thumb-focus-box-shadow-width"
144
- }
111
+ "width": { "source": "$custom-range-thumb-focus-box-shadow-width", "$value": "{size.form.input.width.focus}" }
145
112
  }
146
113
  }
147
114
  },
148
115
  "file": {
149
- "width": {
150
- "value": "{size.form.input.width.border}", "type": "dimension", "source": "$custom-file-border-width"
151
- },
116
+ "$type": "dimension",
117
+ "width": { "source": "$custom-file-border-width", "$value": "{size.form.input.width.border}" },
152
118
  "height": {
153
- "base": {
154
- "value": "{size.form.input.height.base}", "type": "dimension", "source": "$custom-file-height"
155
- },
156
- "inner": {
157
- "value": "{size.form.input.height.inner.base}",
158
- "type": "dimension",
159
- "source": "$custom-file-height-inner"
160
- }
119
+ "base": { "source": "$custom-file-height", "$value": "{size.form.input.height.base}" },
120
+ "inner": { "source": "$custom-file-height-inner", "$value": "{size.form.input.height.inner.base}" }
161
121
  },
162
122
  "border": {
163
- "radius": {
164
- "value": "{size.form.input.radius.border.base}",
165
- "type": "dimension",
166
- "source": "$custom-file-border-radius"
167
- }
123
+ "radius": { "source": "$custom-file-border-radius", "$value": "{size.form.input.radius.border.base}" }
168
124
  }
169
125
  },
170
126
  "icon": {
171
- "width": { "value": "2rem", "type": "dimension", "source": "$form-control-icon-width" }
127
+ "$type": "dimension",
128
+ "width": { "source": "$form-control-icon-width", "$value": "2rem" }
172
129
  },
173
130
  "border": {
174
131
  "checkbox": {
132
+ "$type": "dimension",
175
133
  "indicator": {
176
- "radius": { "value": "0", "type": "dimension", "source": "$custom-checkbox-indicator-border-radius" }
134
+ "radius": { "source": "$custom-checkbox-indicator-border-radius", "$value": "0" }
177
135
  }
178
136
  },
179
137
  "radio": {
138
+ "$type": "percentage",
180
139
  "indicator": {
181
- "radius": { "value": "50%", "type": "percentage", "source": "$custom-radio-indicator-border-radius" }
140
+ "radius": { "source": "$custom-radio-indicator-border-radius", "$value": "50%" }
182
141
  }
183
142
  }
184
143
  }
185
144
  },
186
145
  "grid": {
187
- "gutter-width": { "value": "0.625rem", "type": "dimension", "source": "$form-grid-gutter-width" }
146
+ "$type": "dimension",
147
+ "gutter-width": { "source": "$form-grid-gutter-width", "$value": "0.625rem" }
188
148
  },
189
149
  "autosuggest": {
150
+ "$type": "dimension",
190
151
  "icon": {
191
- "width": { "value": "2.4rem", "type": "dimension", "source": "$form-autosuggest-icon-width" },
192
- "height": {
193
- "value": "{size.form.autosuggest.icon.width}", "type": "dimension", "source": "$form-autosuggest-icon-height"
194
- }
152
+ "width": { "source": "$form-autosuggest-icon-width", "$value": "2.4rem" },
153
+ "height": { "source": "$form-autosuggest-icon-height", "$value": "{size.form.autosuggest.icon.width}" }
195
154
  },
196
155
  "spinner": {
197
- "width": { "value": "1.25rem", "type": "dimension", "source": "$form-autosuggest-spinner-width" },
198
- "height": {
199
- "value": "{size.form.autosuggest.spinner.width}",
200
- "type": "dimension",
201
- "source": "$form-autosuggest-spinner-height"
202
- }
156
+ "width": { "source": "$form-autosuggest-spinner-width", "$value": "1.25rem" },
157
+ "height": { "source": "$form-autosuggest-spinner-height", "$value": "{size.form.autosuggest.spinner.width}" }
203
158
  },
204
159
  "border": {
205
- "width": { "value": ".125rem", "type": "dimension", "source": "$form-autosuggest-border-width" }
160
+ "width": { "source": "$form-autosuggest-border-width", "$value": ".125rem" }
206
161
  }
207
162
  },
208
163
  "border": {
164
+ "$type": "dimension",
209
165
  "radius": {
210
166
  "check": {
211
- "focus": { "value": ".0625rem", "type": "dimension", "source": "$form-check-focus-border-radius" }
167
+ "focus": { "source": "$form-check-focus-border-radius", "$value": ".0625rem" }
212
168
  },
213
- "width": { "value": ".125rem", "type": "dimension", "source": "$form-check-border-width" }
169
+ "width": { "source": "$form-check-border-width", "$value": ".125rem" }
214
170
  }
215
171
  },
216
172
  "feedback": {
173
+ "$type": "dimension",
217
174
  "tooltip": {
218
175
  "border": {
219
- "radius": {
220
- "value": "{size.border.radius.base}",
221
- "type": "dimension",
222
- "source": "$form-feedback-tooltip-border-radius"
223
- }
176
+ "radius": { "source": "$form-feedback-tooltip-border-radius", "$value": "{size.border.radius.base}" }
224
177
  }
225
178
  }
226
179
  }
@@ -1,152 +1,108 @@
1
1
  {
2
2
  "spacing": {
3
+ "$type": "dimension",
3
4
  "form": {
4
5
  "input": {
5
6
  "padding": {
6
7
  "y": {
7
- "base": {
8
- "value": "{spacing.input.btn.padding.y}", "type": "dimension", "source": "$input-padding-y"
9
- },
10
- "sm": {
11
- "value": "{spacing.input.btn.padding.sm.y}", "type": "dimension", "source": "$input-padding-y-sm"
12
- },
13
- "lg": {
14
- "value": "{spacing.input.btn.padding.lg.y}", "type": "dimension", "source": "$input-padding-y-lg"
15
- }
8
+ "base": { "source": "$input-padding-y", "$value": "{spacing.input.btn.padding.y}" },
9
+ "sm": { "source": "$input-padding-y-sm", "$value": "{spacing.input.btn.padding.sm.y}" },
10
+ "lg": { "source": "$input-padding-y-lg", "$value": "{spacing.input.btn.padding.lg.y}" }
16
11
  },
17
12
  "x": {
18
- "base": {
19
- "value": "{spacing.input.btn.padding.x}", "type": "dimension", "source": "$input-padding-x"
20
- },
21
- "sm": {
22
- "value": "{spacing.input.btn.padding.sm.x}", "type": "dimension", "source": "$input-padding-x-sm"
23
- },
24
- "lg": {
25
- "value": "{spacing.input.btn.padding.lg.x}", "type": "dimension", "source": "$input-padding-x-lg"
26
- }
13
+ "base": { "source": "$input-padding-x", "$value": "{spacing.input.btn.padding.x}" },
14
+ "sm": { "source": "$input-padding-x-sm", "$value": "{spacing.input.btn.padding.sm.x}" },
15
+ "lg": { "source": "$input-padding-x-lg", "$value": "{spacing.input.btn.padding.lg.x}" }
27
16
  }
28
17
  },
29
18
  "check": {
30
- "gutter" : { "value": "1.25rem", "type": "dimension", "source": "$form-check-input-gutter" },
19
+ "gutter": { "source": "$form-check-input-gutter", "$value": "1.25rem" },
31
20
  "margin": {
32
21
  "x": {
33
- "base": { "value": ".25rem", "type": "dimension", "source": "$form-check-input-margin-x" },
34
- "inline": { "value": ".3125rem", "type": "dimension", "source": "$form-check-inline-input-margin-x" }
22
+ "base": { "source": "$form-check-input-margin-x", "$value": ".25rem" },
23
+ "inline": { "source": "$form-check-inline-input-margin-x", "$value": ".3125rem" }
35
24
  },
36
- "y": { "value": ".3rem", "type": "dimension", "source": "$form-check-input-margin-y" }
25
+ "y": { "source": "$form-check-input-margin-y", "$value": ".3rem" }
37
26
  }
38
27
  }
39
28
  },
40
29
  "text": {
41
30
  "margin": {
42
- "top": { "value": ".25rem", "type": "dimension", "source": "$form-text-margin-top" }
31
+ "top": { "source": "$form-text-margin-top", "$value": ".25rem" }
43
32
  }
44
33
  },
45
34
  "check": {
46
35
  "inline": {
47
36
  "margin": {
48
- "x": { "value": ".75rem", "type": "dimension", "source": "$form-check-inline-margin-x" }
37
+ "x": { "source": "$form-check-inline-margin-x", "$value": ".75rem" }
49
38
  }
50
39
  },
51
40
  "position": {
52
- "axis": { "value": ".375rem", "type": "dimension", "source": "$form-check-position-axis" }
41
+ "axis": { "source": "$form-check-position-axis", "$value": ".375rem" }
53
42
  }
54
43
  },
55
44
  "group": {
56
45
  "margin": {
57
- "bottom": { "value": "1rem", "type": "dimension", "source": "$form-group-margin-bottom" }
46
+ "bottom": { "source": "$form-group-margin-bottom", "$value": "1rem" }
58
47
  }
59
48
  },
60
49
  "control": {
61
- "gutter": { "value": ".5rem", "type": "dimension", "source": "$custom-control-gutter" },
50
+ "gutter": { "source": "$custom-control-gutter", "$value": ".5rem" },
62
51
  "spacer": {
63
- "x": { "value": "1rem", "type": "dimension", "source": "$custom-control-spacer-x" }
52
+ "x": { "source": "$custom-control-spacer-x", "$value": "1rem" }
64
53
  },
65
54
  "select": {
66
55
  "padding": {
67
56
  "y": {
68
- "base": {
69
- "value": "{spacing.form.input.padding.y.base}",
70
- "type": "dimension",
71
- "source": "$custom-select-padding-y"
72
- },
73
- "sm": {
74
- "value": "{spacing.form.input.padding.y.sm}",
75
- "type": "dimension",
76
- "source": "$custom-select-padding-y-sm"
77
- },
78
- "lg": {
79
- "value": "{spacing.form.input.padding.y.lg}",
80
- "type": "dimension",
81
- "source": "$custom-select-padding-y-lg"
82
- }
57
+ "base": { "source": "$custom-select-padding-y", "$value": "{spacing.form.input.padding.y.base}" },
58
+ "sm": { "source": "$custom-select-padding-y-sm", "$value": "{spacing.form.input.padding.y.sm}" },
59
+ "lg": { "source": "$custom-select-padding-y-lg", "$value": "{spacing.form.input.padding.y.lg}" }
83
60
  },
84
61
  "x": {
85
- "base": {
86
- "value": "{spacing.form.input.padding.x.base}",
87
- "type": "dimension",
88
- "source": "$custom-select-padding-x"
89
- },
90
- "sm": {
91
- "value": "{spacing.form.input.padding.x.sm}",
92
- "type": "dimension",
93
- "source": "$custom-select-padding-x-sm"
94
- },
95
- "lg": {
96
- "value": "{spacing.form.input.padding.x.lg}",
97
- "type": "dimension",
98
- "source": "$custom-select-padding-x-lg"
99
- }
62
+ "base": { "source": "$custom-select-padding-x", "$value": "{spacing.form.input.padding.x.base}" },
63
+ "sm": { "source": "$custom-select-padding-x-sm", "$value": "{spacing.form.input.padding.x.sm}" },
64
+ "lg": { "source": "$custom-select-padding-x-lg", "$value": "{spacing.form.input.padding.x.lg}" }
100
65
  }
101
66
  },
102
67
  "indicator": {
103
- "padding": { "value": "1rem", "type": "dimension", "source": "$custom-select-indicator-padding" }
68
+ "padding": { "source": "$custom-select-indicator-padding", "$value": "1rem" }
104
69
  },
105
70
  "feedback": {
106
71
  "icon": {
107
72
  "padding": {
108
73
  "right": {
109
- "value": "calc((1em + 2 * {spacing.form.control.select.padding.y.base}) * 3 / 4 + {spacing.form.control.select.padding.x.base} + {spacing.form.control.select.indicator.padding})",
110
- "type": "dimension",
111
- "source": "$custom-select-feedback-icon-padding-right"
74
+ "source": "$custom-select-feedback-icon-padding-right",
75
+ "$value": "calc((1em + 2 * {spacing.form.control.select.padding.y.base}) * 3 / 4 + {spacing.form.control.select.padding.x.base} + {spacing.form.control.select.indicator.padding})"
112
76
  }
113
77
  },
114
78
  "position": {
115
- "value": "center right calc({spacing.form.control.select.padding.x.base} + {spacing.form.control.select.indicator.padding})",
116
- "type": "dimension",
117
- "source": "$custom-select-feedback-icon-position"
79
+ "source": "$custom-select-feedback-icon-position",
80
+ "$value": {
81
+ "position-y": "center",
82
+ "position-x": "right",
83
+ "offset-x": "calc({spacing.form.control.select.padding.x.base} + {spacing.form.control.select.indicator.padding})",
84
+ "offset-y": "0"
85
+ }
118
86
  }
119
87
  },
120
88
  "margin": {
121
- "top": {
122
- "value": "{spacing.form.text.margin.top}",
123
- "type": "dimension",
124
- "source": "$form-feedback-margin-top"
125
- }
89
+ "top": { "source": "$form-feedback-margin-top", "$value": "{spacing.form.text.margin.top}" }
126
90
  },
127
91
  "tooltip": {
128
92
  "padding": {
129
- "y": { "value": ".25rem", "type": "dimension", "source": "$form-feedback-tooltip-padding-y" },
130
- "x": { "value": ".5rem", "type": "dimension", "source": "$form-feedback-tooltip-padding-x" }
93
+ "y": { "source": "$form-feedback-tooltip-padding-y", "$value": ".25rem" },
94
+ "x": { "source": "$form-feedback-tooltip-padding-x", "$value": ".5rem" }
131
95
  }
132
96
  }
133
97
  },
134
98
  "icon": {
135
- "padding": { "value": ".5625rem", "type": "dimension", "source": "$select-icon-padding" }
99
+ "padding": { "source": "$select-icon-padding", "$value": ".5625rem" }
136
100
  }
137
101
  },
138
102
  "file": {
139
103
  "padding": {
140
- "y": {
141
- "value": "{spacing.form.input.padding.y.base}",
142
- "type": "dimension",
143
- "source": "$custom-file-padding-y"
144
- },
145
- "x": {
146
- "value": "{spacing.form.input.padding.x.base}",
147
- "type": "dimension",
148
- "source": "$custom-file-padding-x"
149
- }
104
+ "y": { "source": "$custom-file-padding-y", "$value": "{spacing.form.input.padding.y.base}" },
105
+ "x": { "source": "$custom-file-padding-x", "$value": "{spacing.form.input.padding.x.base}" }
150
106
  }
151
107
  }
152
108
  }
@@ -1,15 +1,51 @@
1
1
  {
2
2
  "transition": {
3
+ "$type": "transition",
3
4
  "form": {
4
5
  "input": {
5
- "value": "border-color .15s ease-in-out, box-shadow .15s ease-in-out",
6
- "type": "transition",
7
- "source": "$input-transition"
6
+ "source": "$input-transition",
7
+ "$value": [
8
+ {
9
+ "property": "border-color",
10
+ "duration": ".15s",
11
+ "timing-function": "ease-in-out",
12
+ "delay": "0s",
13
+ "behavior": "normal"
14
+ },
15
+ {
16
+ "property": "box-shadow",
17
+ "duration": ".15s",
18
+ "timing-function": "ease-in-out",
19
+ "delay": "0s",
20
+ "behavior": "normal"
21
+ }
22
+ ]
8
23
  },
9
- "control": {
10
- "value": "background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out",
11
- "type": "transition",
12
- "source": "$custom-forms-transition"
24
+ "control": {
25
+ "source": "$custom-forms-transition",
26
+ "$value": [
27
+ {
28
+ "property": "background-color",
29
+ "duration": ".15s",
30
+ "timing-function": "ease-in-out",
31
+ "delay": "0s",
32
+ "behavior": "normal"
33
+ },
34
+ {
35
+ "property": "border-color",
36
+ "duration": ".15s",
37
+ "timing-function": "ease-in-out",
38
+ "delay": "0s",
39
+ "behavior": "normal"
40
+ },
41
+ {
42
+ "property": "box-shadow",
43
+ "duration": ".15s",
44
+ "timing-function": "ease-in-out",
45
+ "delay": "0s",
46
+ "behavior": "normal"
47
+ }
48
+ ]
13
49
  }
14
50
  }
15
51
  }