@broxus/react-uikit 0.23.3 → 0.24.0

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 (319) hide show
  1. package/README.md +328 -1
  2. package/dist/assets/accordion.css +1 -4
  3. package/dist/assets/alert.css +28 -1
  4. package/dist/assets/align.css +5 -5
  5. package/dist/assets/animation.css +1 -1
  6. package/dist/assets/article.css +2 -3
  7. package/dist/assets/background.css +5 -5
  8. package/dist/assets/badge.css +1 -4
  9. package/dist/assets/base.css +2 -12
  10. package/dist/assets/breadcrumb.css +1 -5
  11. package/dist/assets/button.css +12 -37
  12. package/dist/assets/card.css +3 -5
  13. package/dist/assets/checkbox.css +1 -1
  14. package/dist/assets/close.css +1 -3
  15. package/dist/assets/column.css +7 -8
  16. package/dist/assets/comment.css +2 -2
  17. package/dist/assets/container.css +7 -7
  18. package/dist/assets/control.css +1 -16
  19. package/dist/assets/cover.css +1 -1
  20. package/dist/assets/custom-media.css +15 -0
  21. package/dist/assets/datepicker.css +5 -3
  22. package/dist/assets/description-list.css +1 -2
  23. package/dist/assets/divider.css +2 -5
  24. package/dist/assets/dotnav.css +1 -5
  25. package/dist/assets/drawer.css +1 -1
  26. package/dist/assets/drop.css +1 -1
  27. package/dist/assets/dropdown.css +1 -9
  28. package/dist/assets/flex.css +9 -9
  29. package/dist/assets/form.css +3 -11
  30. package/dist/assets/grid.css +7 -8
  31. package/dist/assets/heading.css +3 -6
  32. package/dist/assets/height.css +1 -1
  33. package/dist/assets/icon.css +1 -10
  34. package/dist/assets/iconnav.css +1 -4
  35. package/dist/assets/input-number.css +1 -1
  36. package/dist/assets/input-password.css +1 -1
  37. package/dist/assets/inverse.css +1 -1
  38. package/dist/assets/label.css +1 -3
  39. package/dist/assets/leader.css +1 -1
  40. package/dist/assets/link.css +1 -5
  41. package/dist/assets/list.css +1 -8
  42. package/dist/assets/margin.css +11 -11
  43. package/dist/assets/marker.css +1 -4
  44. package/dist/assets/modal.css +4 -4
  45. package/dist/assets/motion.css +3 -2
  46. package/dist/assets/nav.css +1 -18
  47. package/dist/assets/navbar.css +5 -23
  48. package/dist/assets/overlay.css +1 -1
  49. package/dist/assets/padding.css +3 -3
  50. package/dist/assets/pagination.css +1 -5
  51. package/dist/assets/placeholder.css +1 -1
  52. package/dist/assets/position.css +2 -2
  53. package/dist/assets/print.css +4 -4
  54. package/dist/assets/progress.css +1 -1
  55. package/dist/assets/radio.css +1 -1
  56. package/dist/assets/search.css +1 -10
  57. package/dist/assets/section.css +4 -4
  58. package/dist/assets/segmented.css +1 -1
  59. package/dist/assets/select.css +1 -1
  60. package/dist/assets/slider.css +1 -1
  61. package/dist/assets/spinner.css +1 -1
  62. package/dist/assets/sticky.css +1 -1
  63. package/dist/assets/subnav.css +1 -14
  64. package/dist/assets/svg.css +1 -1
  65. package/dist/assets/switch.css +1 -1
  66. package/dist/assets/table.css +2 -8
  67. package/dist/assets/tabs.css +1 -6
  68. package/dist/assets/text.css +5 -12
  69. package/dist/assets/textarea.css +1 -1
  70. package/dist/assets/thumbnav.css +1 -1
  71. package/dist/assets/tile.css +5 -5
  72. package/dist/assets/tooltip.css +1 -1
  73. package/dist/assets/totop.css +1 -4
  74. package/dist/assets/transition.css +1 -1
  75. package/dist/assets/uikit.min.css +1 -1
  76. package/dist/assets/utility.css +1 -3
  77. package/dist/assets/vars.css +72 -4
  78. package/dist/assets/visibility.css +9 -9
  79. package/dist/assets/width.css +9 -9
  80. package/dist/esm/components/Navbar/Nav.d.ts +1 -1
  81. package/package.json +321 -18
  82. package/styles/_components.scss +85 -0
  83. package/styles/_globals.scss +151 -0
  84. package/styles/_import.components.scss +508 -58
  85. package/styles/_import.scss +608 -83
  86. package/styles/_import.utilities.scss +162 -17
  87. package/styles/_mixins.scss +1865 -0
  88. package/styles/_tokens.scss +85 -0
  89. package/styles/{mixin.scss → _utils.scss} +8 -2
  90. package/styles/{variables.scss → _variables.scss} +40 -26
  91. package/styles/accordion/_accordion.scss +231 -0
  92. package/styles/accordion/_index.scss +11 -0
  93. package/styles/alert/_alert.scss +201 -0
  94. package/styles/alert/_index.scss +11 -0
  95. package/styles/align/_align.scss +153 -0
  96. package/styles/align/_index.scss +11 -0
  97. package/styles/animation/_animation.scss +353 -0
  98. package/styles/animation/_index.scss +11 -0
  99. package/styles/article/_article.scss +112 -0
  100. package/styles/article/_index.scss +11 -0
  101. package/styles/background/_background.scss +170 -0
  102. package/styles/background/_index.scss +11 -0
  103. package/styles/badge/_badge.scss +92 -0
  104. package/styles/badge/_index.scss +11 -0
  105. package/styles/base/_base.scss +661 -0
  106. package/styles/base/_index.scss +11 -0
  107. package/styles/breadcrumb/_breadcrumb.scss +133 -0
  108. package/styles/breadcrumb/_index.scss +11 -0
  109. package/styles/button/_button.scss +707 -0
  110. package/styles/button/_index.scss +11 -0
  111. package/styles/card/_card.scss +544 -0
  112. package/styles/card/_index.scss +11 -0
  113. package/styles/checkbox/_checkbox.scss +329 -0
  114. package/styles/checkbox/_index.scss +11 -0
  115. package/styles/close/_close.scss +69 -0
  116. package/styles/close/_index.scss +11 -0
  117. package/styles/column/_column.scss +159 -0
  118. package/styles/column/_index.scss +11 -0
  119. package/styles/comment/_comment.scss +195 -0
  120. package/styles/comment/_index.scss +11 -0
  121. package/styles/container/_container.scss +240 -0
  122. package/styles/container/_index.scss +11 -0
  123. package/styles/control/_control.scss +364 -0
  124. package/styles/control/_index.scss +11 -0
  125. package/styles/cover/_cover.scss +99 -0
  126. package/styles/cover/_index.scss +8 -0
  127. package/styles/custom-media.scss +17 -0
  128. package/styles/datepicker/_datepicker.scss +841 -0
  129. package/styles/datepicker/_index.scss +11 -0
  130. package/styles/description-list/_description-list.scss +96 -0
  131. package/styles/description-list/_index.scss +11 -0
  132. package/styles/divider/_divider.scss +168 -0
  133. package/styles/divider/_index.scss +11 -0
  134. package/styles/dotnav/_dotnav.scss +171 -0
  135. package/styles/dotnav/_index.scss +11 -0
  136. package/styles/drawer/_drawer.scss +588 -0
  137. package/styles/drawer/_index.scss +11 -0
  138. package/styles/drop/_drop.scss +97 -0
  139. package/styles/drop/_index.scss +11 -0
  140. package/styles/dropdown/_dropdown.scss +218 -0
  141. package/styles/dropdown/_index.scss +11 -0
  142. package/styles/flex/_flex.scss +338 -0
  143. package/styles/flex/_index.scss +8 -0
  144. package/styles/form/_form.scss +665 -0
  145. package/styles/form/_index.scss +11 -0
  146. package/styles/grid/_grid.scss +657 -0
  147. package/styles/grid/_index.scss +11 -0
  148. package/styles/heading/_heading.scss +265 -0
  149. package/styles/heading/_index.scss +11 -0
  150. package/styles/height/_height.scss +77 -0
  151. package/styles/height/_index.scss +11 -0
  152. package/styles/icon/_icon.scss +274 -0
  153. package/styles/icon/_index.scss +11 -0
  154. package/styles/iconnav/_iconnav.scss +149 -0
  155. package/styles/iconnav/_index.scss +11 -0
  156. package/styles/input-number/_index.scss +8 -0
  157. package/styles/input-number/_input-number.scss +115 -0
  158. package/styles/input-password/_index.scss +8 -0
  159. package/styles/input-password/_input-password.scss +52 -0
  160. package/styles/inverse/_index.scss +11 -0
  161. package/styles/inverse/_inverse.scss +68 -0
  162. package/styles/label/_index.scss +11 -0
  163. package/styles/label/_label.scss +132 -0
  164. package/styles/leader/_index.scss +11 -0
  165. package/styles/leader/_leader.scss +80 -0
  166. package/styles/link/_index.scss +11 -0
  167. package/styles/link/_link.scss +158 -0
  168. package/styles/list/_index.scss +11 -0
  169. package/styles/list/_list.scss +288 -0
  170. package/styles/margin/_index.scss +11 -0
  171. package/styles/margin/_margin.scss +312 -0
  172. package/styles/marker/_index.scss +11 -0
  173. package/styles/marker/_marker.scss +73 -0
  174. package/styles/modal/_index.scss +11 -0
  175. package/styles/modal/_modal.scss +374 -0
  176. package/styles/motion/_index.scss +8 -0
  177. package/styles/motion/_motion.scss +640 -0
  178. package/styles/nav/_index.scss +11 -0
  179. package/styles/nav/_nav.scss +583 -0
  180. package/styles/navbar/_index.scss +11 -0
  181. package/styles/navbar/_navbar.scss +694 -0
  182. package/styles/overlay/_index.scss +11 -0
  183. package/styles/overlay/_overlay.scss +115 -0
  184. package/styles/padding/_index.scss +11 -0
  185. package/styles/padding/_padding.scss +93 -0
  186. package/styles/pagination/_index.scss +11 -0
  187. package/styles/pagination/_pagination.scss +149 -0
  188. package/styles/placeholder/_index.scss +11 -0
  189. package/styles/placeholder/_placeholder.scss +60 -0
  190. package/styles/position/_index.scss +11 -0
  191. package/styles/position/_position.scss +257 -0
  192. package/styles/print.scss +8 -5
  193. package/styles/progress/_index.scss +11 -0
  194. package/styles/progress/_progress.scss +131 -0
  195. package/styles/radio/_index.scss +11 -0
  196. package/styles/radio/_radio.scss +272 -0
  197. package/styles/search/_index.scss +11 -0
  198. package/styles/search/_search.scss +353 -0
  199. package/styles/section/_index.scss +11 -0
  200. package/styles/section/_section.scss +293 -0
  201. package/styles/segmented/_index.scss +11 -0
  202. package/styles/segmented/_segmented.scss +275 -0
  203. package/styles/select/_index.scss +11 -0
  204. package/styles/select/_select.scss +641 -0
  205. package/styles/slider/_index.scss +11 -0
  206. package/styles/slider/_slider.scss +525 -0
  207. package/styles/spinner/_index.scss +11 -0
  208. package/styles/spinner/_spinner.scss +90 -0
  209. package/styles/sticky/_index.scss +11 -0
  210. package/styles/sticky/_sticky.scss +66 -0
  211. package/styles/subnav/_index.scss +11 -0
  212. package/styles/subnav/_subnav.scss +267 -0
  213. package/styles/svg/_index.scss +8 -0
  214. package/styles/svg/_svg.scss +64 -0
  215. package/styles/switch/_index.scss +11 -0
  216. package/styles/switch/_switch.scss +226 -0
  217. package/styles/table/_index.scss +11 -0
  218. package/styles/table/_table.scss +337 -0
  219. package/styles/tabs/_index.scss +11 -0
  220. package/styles/tabs/_tabs.scss +809 -0
  221. package/styles/text/_index.scss +11 -0
  222. package/styles/text/_text.scss +432 -0
  223. package/styles/textarea/_index.scss +11 -0
  224. package/styles/textarea/_textarea.scss +98 -0
  225. package/styles/thumbnav/_index.scss +11 -0
  226. package/styles/thumbnav/_thumbnav.scss +130 -0
  227. package/styles/tile/_index.scss +11 -0
  228. package/styles/tile/_tile.scss +313 -0
  229. package/styles/tooltip/_index.scss +11 -0
  230. package/styles/tooltip/_tooltip.scss +101 -0
  231. package/styles/totop/_index.scss +11 -0
  232. package/styles/totop/_totop.scss +80 -0
  233. package/styles/transition/_index.scss +11 -0
  234. package/styles/transition/_transition.scss +197 -0
  235. package/styles/utility/_index.scss +11 -0
  236. package/styles/utility/_utility.scss +642 -0
  237. package/styles/vars.scss +474 -139
  238. package/styles/visibility/_index.scss +8 -0
  239. package/styles/visibility/_visibility.scss +196 -0
  240. package/styles/width/_index.scss +11 -0
  241. package/styles/width/_width.scss +698 -0
  242. package/dist/assets/mixin.css +0 -1
  243. package/dist/assets/mixins.css +0 -1
  244. package/dist/assets/variables.css +0 -1
  245. package/styles/accordion.scss +0 -224
  246. package/styles/alert.scss +0 -197
  247. package/styles/align.scss +0 -149
  248. package/styles/animation.scss +0 -349
  249. package/styles/article.scss +0 -105
  250. package/styles/background.scss +0 -167
  251. package/styles/badge.scss +0 -85
  252. package/styles/base.scss +0 -656
  253. package/styles/breadcrumb.scss +0 -126
  254. package/styles/button.scss +0 -700
  255. package/styles/card.scss +0 -534
  256. package/styles/checkbox.scss +0 -325
  257. package/styles/close.scss +0 -62
  258. package/styles/column.scss +0 -152
  259. package/styles/comment.scss +0 -191
  260. package/styles/container.scss +0 -236
  261. package/styles/control.scss +0 -357
  262. package/styles/cover.scss +0 -81
  263. package/styles/datepicker.scss +0 -834
  264. package/styles/description-list.scss +0 -89
  265. package/styles/divider.scss +0 -161
  266. package/styles/dotnav.scss +0 -164
  267. package/styles/drawer.scss +0 -584
  268. package/styles/drop.scss +0 -93
  269. package/styles/dropdown.scss +0 -207
  270. package/styles/flex.scss +0 -326
  271. package/styles/form.scss +0 -658
  272. package/styles/grid.scss +0 -650
  273. package/styles/heading.scss +0 -258
  274. package/styles/height.scss +0 -73
  275. package/styles/icon.scss +0 -267
  276. package/styles/iconnav.scss +0 -142
  277. package/styles/input-number.scss +0 -98
  278. package/styles/input-password.scss +0 -35
  279. package/styles/inverse.scss +0 -65
  280. package/styles/label.scss +0 -125
  281. package/styles/leader.scss +0 -76
  282. package/styles/link.scss +0 -151
  283. package/styles/list.scss +0 -281
  284. package/styles/margin.scss +0 -308
  285. package/styles/marker.scss +0 -66
  286. package/styles/mixins.scss +0 -2555
  287. package/styles/modal.scss +0 -370
  288. package/styles/motion.scss +0 -627
  289. package/styles/nav.scss +0 -576
  290. package/styles/navbar.scss +0 -682
  291. package/styles/overlay.scss +0 -107
  292. package/styles/padding.scss +0 -89
  293. package/styles/pagination.scss +0 -142
  294. package/styles/placeholder.scss +0 -56
  295. package/styles/position.scss +0 -253
  296. package/styles/progress.scss +0 -127
  297. package/styles/radio.scss +0 -268
  298. package/styles/search.scss +0 -346
  299. package/styles/section.scss +0 -285
  300. package/styles/segmented.scss +0 -271
  301. package/styles/select.scss +0 -644
  302. package/styles/slider.scss +0 -521
  303. package/styles/spinner.scss +0 -86
  304. package/styles/sticky.scss +0 -62
  305. package/styles/subnav.scss +0 -260
  306. package/styles/svg.scss +0 -46
  307. package/styles/switch.scss +0 -218
  308. package/styles/table.scss +0 -330
  309. package/styles/tabs.scss +0 -802
  310. package/styles/text.scss +0 -425
  311. package/styles/textarea.scss +0 -94
  312. package/styles/thumbnav.scss +0 -126
  313. package/styles/tile.scss +0 -309
  314. package/styles/tooltip.scss +0 -94
  315. package/styles/totop.scss +0 -73
  316. package/styles/transition.scss +0 -193
  317. package/styles/utility.scss +0 -635
  318. package/styles/visibility.scss +0 -184
  319. package/styles/width.scss +0 -694
package/styles/vars.scss CHANGED
@@ -1,143 +1,478 @@
1
- // Name: Vars
2
- // Description: Define variables via the `var()` CSS function
1
+ // ========================================================================
2
+ // Vars (Conditional Tokens Output)
3
+ // Generates `:root` CSS custom properties for enabled components.
4
+ // Unlike `_tokens.scss` (which only re-exports mixins), this file
5
+ // actually outputs CSS — use it as the main entry point for theming.
3
6
  //
7
+ // Usage:
8
+ // @use '@broxus/react-uikit/styles/vars' with ($components: (all: true));
9
+ // @use '@broxus/react-uikit/styles/vars' with ($components: (button: true, card: true));
10
+ // ========================================================================
11
+
12
+ @use 'sass:map';
13
+
14
+
4
15
  // ========================================================================
16
+ // Configuration
17
+ // ========================================================================
18
+
19
+ // Default components configuration
20
+ $-components: (
21
+ all: false,
22
+
23
+ // Base
24
+ base: true,
25
+
26
+ // Elements
27
+ link: false,
28
+ heading: false,
29
+ divider: false,
30
+ list: false,
31
+ description-list: false,
32
+ icon: false,
33
+ form: false,
34
+ control: false,
35
+ input-password: false,
36
+ input-number: false,
37
+ checkbox: false,
38
+ radio: false,
39
+ datepicker: false,
40
+ button: false,
41
+ progress: false,
42
+ slider: false,
43
+ switch: false,
44
+ select: false,
45
+ textarea: false,
46
+
47
+ // Layout
48
+ section: false,
49
+ container: false,
50
+ grid: false,
51
+ tile: false,
52
+ card: false,
53
+
54
+ // Common
55
+ close: false,
56
+ spinner: false,
57
+ totop: false,
58
+ marker: false,
59
+ alert: false,
60
+ placeholder: false,
61
+ badge: false,
62
+ label: false,
63
+ overlay: false,
64
+ article: false,
65
+ search: false,
66
+
67
+ // Interaction
68
+ accordion: false,
69
+ drop: false,
70
+ dropdown: false,
71
+ modal: false,
72
+ drawer: false,
73
+ sticky: false,
74
+ leader: false,
75
+ tooltip: false,
76
+
77
+ // Navs
78
+ nav: false,
79
+ navbar: false,
80
+ subnav: false,
81
+ segmented: false,
82
+ breadcrumb: false,
83
+ tabs: false,
84
+ dotnav: false,
85
+ thumbnav: false,
86
+ iconnav: false,
87
+
88
+ // Utilities
89
+ animation: false,
90
+ motion: false,
91
+ width: false,
92
+ height: false,
93
+ text: false,
94
+ column: false,
95
+ cover: false,
96
+ background: false,
97
+ align: false,
98
+ svg: false,
99
+ utility: false,
100
+ flex: false,
101
+ margin: false,
102
+ padding: false,
103
+ position: false,
104
+ transition: false,
105
+ visibility: false,
106
+ inverse: false,
107
+ ) !default;
108
+
109
+ // External override for components configuration (e.g., from the project using the library)
110
+ $components: () !default;
111
+ $components: map.merge($-components, $components);
112
+
113
+ // Private variables for easier access
114
+ $-all: map.get($components, 'all') !default;
115
+ $-inverse: map.get($components, 'inverse') !default;
116
+
117
+
118
+ // ========================================================================
119
+ // Import component modules
120
+ // ========================================================================
121
+
122
+ @use 'globals' as globals;
123
+ @use 'base/base' as base-module;
124
+ @use 'link/link' as link-module;
125
+ @use 'heading/heading' as heading-module;
126
+ @use 'divider/divider' as divider-module;
127
+ @use 'list/list' as list-module;
128
+ @use 'description-list/description-list' as description-list-module;
129
+ @use 'icon/icon' as icon-module;
130
+ @use 'form/form' as form-module;
131
+ @use 'control/control' as control-module;
132
+ @use 'input-password/input-password' as input-password-module;
133
+ @use 'input-number/input-number' as input-number-module;
134
+ @use 'checkbox/checkbox' as checkbox-module;
135
+ @use 'radio/radio' as radio-module;
136
+ @use 'datepicker/datepicker' as datepicker-module;
137
+ @use 'button/button' as button-module;
138
+ @use 'progress/progress' as progress-module;
139
+ @use 'slider/slider' as slider-module;
140
+ @use 'switch/switch' as switch-module;
141
+ @use 'select/select' as select-module;
142
+ @use 'textarea/textarea' as textarea-module;
143
+ @use 'section/section' as section-module;
144
+ @use 'container/container' as container-module;
145
+ @use 'grid/grid' as grid-module;
146
+ @use 'tile/tile' as tile-module;
147
+ @use 'card/card' as card-module;
148
+ @use 'close/close' as close-module;
149
+ @use 'spinner/spinner' as spinner-module;
150
+ @use 'totop/totop' as totop-module;
151
+ @use 'marker/marker' as marker-module;
152
+ @use 'alert/alert' as alert-module;
153
+ @use 'placeholder/placeholder' as placeholder-module;
154
+ @use 'badge/badge' as badge-module;
155
+ @use 'label/label' as label-module;
156
+ @use 'overlay/overlay' as overlay-module;
157
+ @use 'article/article' as article-module;
158
+ @use 'search/search' as search-module;
159
+ @use 'accordion/accordion' as accordion-module;
160
+ @use 'drop/drop' as drop-module;
161
+ @use 'dropdown/dropdown' as dropdown-module;
162
+ @use 'modal/modal' as modal-module;
163
+ @use 'drawer/drawer' as drawer-module;
164
+ @use 'sticky/sticky' as sticky-module;
165
+ @use 'leader/leader' as leader-module;
166
+ @use 'tooltip/tooltip' as tooltip-module;
167
+ @use 'nav/nav' as nav-module;
168
+ @use 'navbar/navbar' as navbar-module;
169
+ @use 'subnav/subnav' as subnav-module;
170
+ @use 'segmented/segmented' as segmented-module;
171
+ @use 'breadcrumb/breadcrumb' as breadcrumb-module;
172
+ @use 'tabs/tabs' as tabs-module;
173
+ @use 'dotnav/dotnav' as dotnav-module;
174
+ @use 'thumbnav/thumbnav' as thumbnav-module;
175
+ @use 'iconnav/iconnav' as iconnav-module;
176
+ @use 'animation/animation' as animation-module;
177
+ @use 'motion/motion' as motion-module;
178
+ @use 'width/width' as width-module;
179
+ @use 'height/height' as height-module;
180
+ @use 'text/text' as text-module;
181
+ @use 'column/column' as column-module;
182
+ @use 'cover/cover' as cover-module;
183
+ @use 'background/background' as background-module;
184
+ @use 'align/align' as align-module;
185
+ @use 'svg/svg' as svg-module;
186
+ @use 'utility/utility' as utility-module;
187
+ @use 'flex/flex' as flex-module;
188
+ @use 'margin/margin' as margin-module;
189
+ @use 'padding/padding' as padding-module;
190
+ @use 'position/position' as position-module;
191
+ @use 'transition/transition' as transition-module;
192
+ @use 'visibility/visibility' as visibility-module;
193
+ @use 'inverse/inverse' as inverse-module;
194
+
195
+
196
+ // ========================================================================
197
+ // Conditional tokens generation (CSS custom properties)
198
+ // ========================================================================
199
+
200
+ $selector: ':root' !default;
201
+
202
+ #{$selector} {
203
+ // Globals
204
+ @include globals.global-tokens;
205
+
206
+ // Base
207
+ @if map.get($components, 'base') or $-all {
208
+ @include base-module.base-tokens {
209
+ @if $-inverse {
210
+ @include base-module.base-inverse-tokens;
211
+ }
212
+ }
213
+ }
214
+
215
+ // Elements
216
+ @if map.get($components, 'link') or $-all {
217
+ @include link-module.link-tokens {
218
+ @if $-inverse {
219
+ @include link-module.link-inverse-tokens;
220
+ }
221
+ }
222
+ }
223
+ @if map.get($components, 'heading') or $-all {
224
+ @include heading-module.heading-tokens {
225
+ @if $-inverse {
226
+ @include heading-module.heading-inverse-tokens;
227
+ }
228
+ }
229
+ }
230
+ @if map.get($components, 'divider') or $-all {
231
+ @include divider-module.divider-tokens {
232
+ @if $-inverse {
233
+ @include divider-module.divider-inverse-tokens;
234
+ }
235
+ }
236
+ }
237
+ @if map.get($components, 'list') or $-all {
238
+ @include list-module.list-tokens {
239
+ @if $-inverse {
240
+ @include list-module.list-inverse-tokens;
241
+ }
242
+ }
243
+ }
244
+ @if map.get($components, 'description-list') or $-all {
245
+ @include description-list-module.description-list-tokens {
246
+ @if $-inverse {
247
+ @include description-list-module.description-list-inverse-tokens;
248
+ }
249
+ }
250
+ }
251
+ @if map.get($components, 'icon') or $-all {
252
+ @include icon-module.icon-tokens {
253
+ @if $-inverse {
254
+ @include icon-module.icon-inverse-tokens;
255
+ }
256
+ }
257
+ }
258
+ @if map.get($components, 'form') or $-all {
259
+ @include form-module.form-tokens {
260
+ @if $-inverse {
261
+ @include form-module.form-inverse-tokens;
262
+ }
263
+ }
264
+ }
265
+ @if map.get($components, 'control') or $-all {
266
+ @include control-module.control-tokens {
267
+ @if $-inverse {
268
+ @include control-module.control-inverse-tokens;
269
+ }
270
+ }
271
+ }
272
+ @if map.get($components, 'input-password') or $-all { @include input-password-module.input-password-tokens; }
273
+ @if map.get($components, 'input-number') or $-all { @include input-number-module.input-number-tokens; }
274
+ @if map.get($components, 'checkbox') or $-all { @include checkbox-module.checkbox-tokens; }
275
+ @if map.get($components, 'radio') or $-all { @include radio-module.radio-tokens; }
276
+ @if map.get($components, 'datepicker') or $-all { @include datepicker-module.datepicker-tokens; }
277
+ @if map.get($components, 'button') or $-all {
278
+ @include button-module.button-tokens {
279
+ @if $-inverse {
280
+ @include button-module.button-inverse-tokens;
281
+ }
282
+ }
283
+ }
284
+ @if map.get($components, 'progress') or $-all { @include progress-module.progress-tokens; }
285
+ @if map.get($components, 'slider') or $-all { @include slider-module.slider-tokens; }
286
+ @if map.get($components, 'switch') or $-all { @include switch-module.switch-tokens; }
287
+ @if map.get($components, 'select') or $-all { @include select-module.select-tokens; }
288
+ @if map.get($components, 'textarea') or $-all { @include textarea-module.textarea-tokens; }
289
+
290
+ // Layout
291
+ @if map.get($components, 'section') or $-all { @include section-module.section-tokens; }
292
+ @if map.get($components, 'container') or $-all { @include container-module.container-tokens; }
293
+ @if map.get($components, 'tile') or $-all { @include tile-module.tile-tokens; }
294
+ @if map.get($components, 'card') or $-all {
295
+ @include card-module.card-tokens {
296
+ @if $-inverse {
297
+ @include card-module.card-inverse-tokens;
298
+ }
299
+ }
300
+ }
301
+
302
+ // Common
303
+ @if map.get($components, 'close') or $-all {
304
+ @include close-module.close-tokens {
305
+ @if $-inverse {
306
+ @include close-module.close-inverse-tokens;
307
+ }
308
+ }
309
+ }
310
+ @if map.get($components, 'spinner') or $-all { @include spinner-module.spinner-tokens; }
311
+ @if map.get($components, 'totop') or $-all {
312
+ @include totop-module.totop-tokens {
313
+ @if $-inverse {
314
+ @include totop-module.totop-inverse-tokens;
315
+ }
316
+ }
317
+ }
318
+ @if map.get($components, 'marker') or $-all {
319
+ @include marker-module.marker-tokens {
320
+ @if $-inverse {
321
+ @include marker-module.marker-inverse-tokens;
322
+ }
323
+ }
324
+ }
325
+ @if map.get($components, 'alert') or $-all { @include alert-module.alert-tokens; }
326
+ @if map.get($components, 'placeholder') or $-all { @include placeholder-module.placeholder-tokens; }
327
+ @if map.get($components, 'badge') or $-all {
328
+ @include badge-module.badge-tokens {
329
+ @if $-inverse {
330
+ @include badge-module.badge-inverse-tokens;
331
+ }
332
+ }
333
+ }
334
+ @if map.get($components, 'label') or $-all {
335
+ @include label-module.label-tokens {
336
+ @if $-inverse {
337
+ @include label-module.label-inverse-tokens;
338
+ }
339
+ }
340
+ }
341
+ @if map.get($components, 'overlay') or $-all { @include overlay-module.overlay-tokens; }
342
+ @if map.get($components, 'article') or $-all {
343
+ @include article-module.article-tokens {
344
+ @if $-inverse {
345
+ @include article-module.article-inverse-tokens;
346
+ }
347
+ }
348
+ }
349
+ @if map.get($components, 'search') or $-all {
350
+ @include search-module.search-tokens {
351
+ @if $-inverse {
352
+ @include search-module.search-inverse-tokens;
353
+ }
354
+ }
355
+ }
356
+
357
+ // Interaction
358
+ @if map.get($components, 'accordion') or $-all {
359
+ @include accordion-module.accordion-tokens {
360
+ @if $-inverse {
361
+ @include accordion-module.accordion-inverse-tokens;
362
+ }
363
+ }
364
+ }
365
+ @if map.get($components, 'drop') or $-all { @include drop-module.drop-tokens; }
366
+ @if map.get($components, 'dropdown') or $-all {
367
+ @include dropdown-module.dropdown-tokens {
368
+ @if $-inverse {
369
+ @include dropdown-module.dropdown-inverse-tokens;
370
+ }
371
+ }
372
+ }
373
+ @if map.get($components, 'modal') or $-all { @include modal-module.modal-tokens; }
374
+ @if map.get($components, 'drawer') or $-all { @include drawer-module.drawer-tokens; }
375
+ @if map.get($components, 'sticky') or $-all { @include sticky-module.sticky-tokens; }
376
+ @if map.get($components, 'leader') or $-all { @include leader-module.leader-tokens; }
377
+ @if map.get($components, 'tooltip') or $-all { @include tooltip-module.tooltip-tokens; }
378
+
379
+ // Navs
380
+ @if map.get($components, 'nav') or $-all {
381
+ @include nav-module.nav-tokens {
382
+ @if $-inverse {
383
+ @include nav-module.nav-inverse-tokens;
384
+ }
385
+ }
386
+ }
387
+ @if map.get($components, 'navbar') or $-all {
388
+ @include navbar-module.navbar-tokens {
389
+ @if $-inverse {
390
+ @include navbar-module.navbar-inverse-tokens;
391
+ }
392
+ }
393
+ }
394
+ @if map.get($components, 'subnav') or $-all {
395
+ @include subnav-module.subnav-tokens {
396
+ @if $-inverse {
397
+ @include subnav-module.subnav-inverse-tokens;
398
+ }
399
+ }
400
+ }
401
+ @if map.get($components, 'segmented') or $-all { @include segmented-module.segmented-tokens; }
402
+ @if map.get($components, 'breadcrumb') or $-all {
403
+ @include breadcrumb-module.breadcrumb-tokens {
404
+ @if $-inverse {
405
+ @include breadcrumb-module.breadcrumb-inverse-tokens;
406
+ }
407
+ }
408
+ }
409
+ @if map.get($components, 'tabs') or $-all {
410
+ @include tabs-module.tabs-tokens {
411
+ @if $-inverse {
412
+ @include tabs-module.tabs-inverse-tokens;
413
+ }
414
+ }
415
+ }
416
+ @if map.get($components, 'dotnav') or $-all {
417
+ @include dotnav-module.dotnav-tokens {
418
+ @if $-inverse {
419
+ @include dotnav-module.dotnav-inverse-tokens;
420
+ }
421
+ }
422
+ }
423
+ @if map.get($components, 'thumbnav') or $-all { @include thumbnav-module.thumbnav-tokens; }
424
+ @if map.get($components, 'iconnav') or $-all {
425
+ @include iconnav-module.iconnav-tokens {
426
+ @if $-inverse {
427
+ @include iconnav-module.iconnav-inverse-tokens;
428
+ }
429
+ }
430
+ }
431
+
432
+ @if map.get($components, 'grid') or $-all {
433
+ @include grid-module.grid-tokens {
434
+ @if $-inverse {
435
+ @include grid-module.grid-inverse-tokens;
436
+ }
437
+ }
438
+ }
439
+
440
+ // Utilities
441
+ @if map.get($components, 'animation') or $-all { @include animation-module.animation-tokens; }
442
+ @if map.get($components, 'motion') or $-all { @include motion-module.motion-tokens; }
443
+ @if map.get($components, 'width') or $-all { @include width-module.width-tokens; }
444
+ @if map.get($components, 'height') or $-all { @include height-module.height-tokens; }
445
+ @if map.get($components, 'text') or $-all {
446
+ @include text-module.text-tokens {
447
+ @if $-inverse {
448
+ @include text-module.text-inverse-tokens;
449
+ }
450
+ }
451
+ }
452
+ @if map.get($components, 'column') or $-all {
453
+ @include column-module.column-tokens {
454
+ @if $-inverse {
455
+ @include column-module.column-inverse-tokens;
456
+ }
457
+ }
458
+ }
459
+ @if map.get($components, 'cover') or $-all { @include cover-module.cover-tokens; }
460
+ @if map.get($components, 'background') or $-all { @include background-module.background-tokens; }
461
+ @if map.get($components, 'align') or $-all { @include align-module.align-tokens; }
462
+ @if map.get($components, 'svg') or $-all { @include svg-module.svg-tokens; }
463
+ @if map.get($components, 'utility') or $-all {
464
+ @include utility-module.utility-tokens {
465
+ @if $-inverse {
466
+ @include utility-module.utility-inverse-tokens;
467
+ }
468
+ }
469
+ }
470
+ @if map.get($components, 'flex') or $-all { @include flex-module.flex-tokens; }
471
+ @if map.get($components, 'margin') or $-all { @include margin-module.margin-tokens; }
472
+ @if map.get($components, 'padding') or $-all { @include padding-module.padding-tokens; }
473
+ @if map.get($components, 'position') or $-all { @include position-module.position-tokens; }
474
+ @if map.get($components, 'transition') or $-all { @include transition-module.transition-tokens; }
475
+ @if map.get($components, 'visibility') or $-all { @include visibility-module.visibility-tokens; }
5
476
 
6
- @use 'variables' as *;
7
-
8
- :root,
9
- ::after,
10
- ::before {
11
- // Breakpoints
12
- // ========================================================================
13
-
14
- --breakpoint-2xsmall: #{$breakpoint-2xsmall};
15
- --breakpoint-xsmall: #{$breakpoint-xsmall};
16
- --breakpoint-small: #{$breakpoint-small};
17
- --breakpoint-medium: #{$breakpoint-medium};
18
- --breakpoint-large: #{$breakpoint-large};
19
- --breakpoint-xlarge: #{$breakpoint-xlarge};
20
- --breakpoint-2xlarge: #{$breakpoint-2xlarge};
21
- --breakpoint-3xlarge: #{$breakpoint-3xlarge};
22
- --breakpoint-2xsmall-max: #{$breakpoint-2xsmall-max};
23
- --breakpoint-xsmall-max: #{$breakpoint-xsmall-max};
24
- --breakpoint-small-max: #{$breakpoint-small-max};
25
- --breakpoint-medium-max: #{$breakpoint-medium-max};
26
- --breakpoint-large-max: #{$breakpoint-large-max};
27
- --breakpoint-xlarge-max: #{$breakpoint-xlarge-max};
28
- --breakpoint-2xlarge-max: #{$breakpoint-2xlarge-max};
29
-
30
-
31
- // Global variables
32
- // ========================================================================
33
-
34
- //
35
- // Typography
36
- //
37
-
38
- --global-font-family: #{$global-font-family};
39
- --global-font-size: #{$global-font-size};
40
- --global-font-weight: #{$global-font-weight};
41
- --global-bold-font-weight: #{$global-bold-font-weight};
42
- --global-line-height: #{$global-line-height};
43
- --global-2xlarge-font-size: #{$global-2xlarge-font-size};
44
- --global-xlarge-font-size: #{$global-xlarge-font-size};
45
- --global-large-font-size: #{$global-large-font-size};
46
- --global-medium-font-size: #{$global-medium-font-size};
47
- --global-small-font-size: #{$global-small-font-size};
48
- --global-xsmall-font-size: #{$global-xsmall-font-size};
49
- --global-2xsmall-font-size: #{$global-2xsmall-font-size};
50
-
51
- //
52
- // Colors
53
- //
54
-
55
- --global-color: #{$global-color};
56
- --global-emphasis-color: #{$global-emphasis-color};
57
- --global-muted-color: #{$global-muted-color};
58
- --global-link-color: #{$global-link-color};
59
- --global-link-hover-color: #{$global-link-hover-color};
60
- --global-inverse-color: #{$global-inverse-color};
61
- --global-primary-color: #{$global-primary-color};
62
- --global-secondary-color: #{$global-secondary-color};
63
- --global-tertiary-color: #{$global-tertiary-color};
64
- --global-success-color: #{$global-success-color};
65
- --global-warning-color: #{$global-warning-color};
66
- --global-danger-color: #{$global-danger-color};
67
-
68
- //
69
- // Backgrounds
70
- //
71
-
72
- --global-background: #{$global-background};
73
- --global-default-background: #{$global-default-background};
74
- --global-muted-background: #{$global-muted-background};
75
- --global-primary-background: #{$global-primary-background};
76
- --global-secondary-background: #{$global-secondary-background};
77
- --global-tertiary-background: #{$global-tertiary-background};
78
- --global-success-background: #{$global-success-background};
79
- --global-warning-background: #{$global-warning-background};
80
- --global-danger-background: #{$global-danger-background};
81
-
82
- //
83
- // Borders
84
- //
85
-
86
- --global-border-width: #{$global-border-width};
87
- --global-border-style: #{$global-border-style};
88
- --global-border: #{$global-border};
89
- --global-muted-border: #{$global-muted-border};
90
- --global-primary-border: #{$global-primary-border};
91
- --global-secondary-border: #{$global-secondary-border};
92
- --global-tertiary-border: #{$global-tertiary-border};
93
- --global-success-border: #{$global-success-border};
94
- --global-warning-border: #{$global-warning-border};
95
- --global-danger-border: #{$global-danger-border};
96
- --global-border-radius: #{$global-border-radius};
97
- --global-small-border-radius: #{$global-small-border-radius};
98
- --global-xsmall-border-radius: #{$global-xsmall-border-radius};
99
-
100
- //
101
- // Box-Shadows
102
- //
103
-
104
- --global-small-box-shadow: #{$global-small-box-shadow};
105
- --global-medium-box-shadow: #{$global-medium-box-shadow};
106
- --global-large-box-shadow: #{$global-large-box-shadow};
107
- --global-xlarge-box-shadow: #{$global-xlarge-box-shadow};
108
-
109
- //
110
- // Spacings
111
- //
112
-
113
- --global-margin: #{$global-margin};
114
- --global-xsmall-margin: #{$global-xsmall-margin};
115
- --global-small-margin: #{$global-small-margin};
116
- --global-medium-margin: #{$global-medium-margin};
117
- --global-large-margin: #{$global-large-margin};
118
- --global-xlarge-margin: #{$global-xlarge-margin};
119
- --global-gutter: #{$global-gutter};
120
- --global-xsmall-gutter: #{$global-xsmall-gutter};
121
- --global-small-gutter: #{$global-small-gutter};
122
- --global-medium-gutter: #{$global-medium-gutter};
123
- --global-large-gutter: #{$global-large-gutter};
124
- --global-xlarge-gutter: #{$global-xlarge-gutter};
125
- --global-2xlarge-gutter: #{$global-2xlarge-gutter};
126
-
127
- //
128
- // Controls
129
- //
130
-
131
- --global-control-height: #{$global-control-height};
132
- --global-control-xsmall-height: #{$global-control-xsmall-height};
133
- --global-control-small-height: #{$global-control-small-height};
134
- --global-control-medium-height: #{$global-control-medium-height};
135
- --global-control-large-height: #{$global-control-large-height};
136
- --global-control-xlarge-height: #{$global-control-xlarge-height};
137
-
138
- //
139
- // Z-index
140
- //
141
-
142
- --global-z-index: #{$global-z-index};
477
+ @if $-inverse or $-all { @include inverse-module.inverse-tokens; }
143
478
  }
@@ -0,0 +1,8 @@
1
+ @use 'visibility' as *;
2
+
3
+ $generate-tokens: true !default;
4
+
5
+ @include visibility-styles;
6
+
7
+ // No tokens for this component
8
+ // :root { @include visibility-tokens; }