@broxus/react-uikit 0.23.2 → 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 +324 -21
  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
@@ -1,94 +1,619 @@
1
- // Base
1
+ // ========================================================================
2
+ // Import (Full: Components + Utilities)
3
+ // Main entry point that conditionally generates both component and utility
4
+ // styles along with their CSS custom properties (tokens).
5
+ // Forwards base dependencies: custom-media, variables, utils, mixins, print.
6
+ //
7
+ // Usage:
8
+ // @use '@broxus/react-uikit/styles/import' with ($components: (all: true));
9
+ // @use '@broxus/react-uikit/styles/import' with ($components: (button: true, card: true));
10
+ // ========================================================================
11
+
12
+ @use 'sass:map';
13
+ @use 'sass:meta';
14
+
15
+ // Forward base dependencies (always needed)
16
+ @forward 'custom-media';
2
17
  @forward 'variables';
3
- @forward 'mixin';
4
- @forward 'base';
18
+ @forward 'utils';
19
+ @forward 'mixins';
20
+ @forward 'print';
21
+
22
+
23
+ // ========================================================================
24
+ // Configuration
25
+ // ========================================================================
26
+
27
+ // Default components configuration
28
+ $-components: (
29
+ all: false,
30
+
31
+ // Base
32
+ base: true,
33
+
34
+ // Elements
35
+ link: true,
36
+ heading: true,
37
+ divider: true,
38
+ list: true,
39
+ description-list: false,
40
+ icon: true,
41
+ form: true,
42
+ control: true,
43
+ input-password: true,
44
+ input-number: true,
45
+ checkbox: true,
46
+ radio: true,
47
+ datepicker: true,
48
+ button: true,
49
+ progress: false,
50
+ slider: true,
51
+ switch: true,
52
+ select: true,
53
+ textarea: true,
54
+
55
+ // Layout
56
+ section: true,
57
+ container: true,
58
+ grid: true,
59
+ tile: true,
60
+ card: true,
61
+
62
+ // Common
63
+ close: true,
64
+ spinner: true,
65
+ totop: false,
66
+ marker: false,
67
+ alert: true,
68
+ placeholder: false,
69
+ badge: true,
70
+ label: true,
71
+ overlay: false,
72
+ article: false,
73
+ search: false,
74
+
75
+ // Interaction
76
+ accordion: true,
77
+ drop: true,
78
+ dropdown: true,
79
+ modal: true,
80
+ drawer: true,
81
+ sticky: false,
82
+ leader: false,
83
+ tooltip: true,
84
+
85
+ // Navs
86
+ nav: true,
87
+ navbar: true,
88
+ subnav: true,
89
+ segmented: true,
90
+ breadcrumb: true,
91
+ tabs: true,
92
+ dotnav: false,
93
+ thumbnav: false,
94
+ iconnav: false,
95
+
96
+ // Utilities
97
+ animation: true,
98
+ motion: true,
99
+ width: true,
100
+ height: true,
101
+ text: true,
102
+ column: false,
103
+ cover: false,
104
+ background: false,
105
+ align: true,
106
+ svg: true,
107
+ utility: true,
108
+ flex: true,
109
+ margin: true,
110
+ padding: true,
111
+ position: true,
112
+ transition: true,
113
+ visibility: true,
114
+ inverse: false,
115
+ ) !default;
116
+
117
+ // External override for components configuration (e.g., from the project using the library)
118
+ $components: () !default;
119
+ $components: map.merge($-components, $components);
120
+
121
+ // Private variables for easier access
122
+ $-all: map.get($components, 'all') !default;
123
+ $-inverse: map.get($components, 'inverse') !default;
124
+
125
+
126
+ // ========================================================================
127
+ // Import component modules
128
+ // ========================================================================
129
+
130
+ @use 'globals' as globals;
131
+ @use 'base/base' as base-module;
132
+ @use 'link/link' as link-module;
133
+ @use 'heading/heading' as heading-module;
134
+ @use 'divider/divider' as divider-module;
135
+ @use 'list/list' as list-module;
136
+ @use 'description-list/description-list' as description-list-module;
137
+ @use 'icon/icon' as icon-module;
138
+ @use 'form/form' as form-module;
139
+ @use 'control/control' as control-module;
140
+ @use 'input-password/input-password' as input-password-module;
141
+ @use 'input-number/input-number' as input-number-module;
142
+ @use 'checkbox/checkbox' as checkbox-module;
143
+ @use 'radio/radio' as radio-module;
144
+ @use 'datepicker/datepicker' as datepicker-module;
145
+ @use 'button/button' as button-module;
146
+ @use 'progress/progress' as progress-module;
147
+ @use 'slider/slider' as slider-module;
148
+ @use 'switch/switch' as switch-module;
149
+ @use 'select/select' as select-module;
150
+ @use 'textarea/textarea' as textarea-module;
151
+ @use 'section/section' as section-module;
152
+ @use 'container/container' as container-module;
153
+ @use 'grid/grid' as grid-module;
154
+ @use 'tile/tile' as tile-module;
155
+ @use 'card/card' as card-module;
156
+ @use 'close/close' as close-module;
157
+ @use 'spinner/spinner' as spinner-module;
158
+ @use 'totop/totop' as totop-module;
159
+ @use 'marker/marker' as marker-module;
160
+ @use 'alert/alert' as alert-module;
161
+ @use 'placeholder/placeholder' as placeholder-module;
162
+ @use 'badge/badge' as badge-module;
163
+ @use 'label/label' as label-module;
164
+ @use 'overlay/overlay' as overlay-module;
165
+ @use 'article/article' as article-module;
166
+ @use 'search/search' as search-module;
167
+ @use 'accordion/accordion' as accordion-module;
168
+ @use 'drop/drop' as drop-module;
169
+ @use 'dropdown/dropdown' as dropdown-module;
170
+ @use 'modal/modal' as modal-module;
171
+ @use 'drawer/drawer' as drawer-module;
172
+ @use 'sticky/sticky' as sticky-module;
173
+ @use 'leader/leader' as leader-module;
174
+ @use 'tooltip/tooltip' as tooltip-module;
175
+ @use 'nav/nav' as nav-module;
176
+ @use 'navbar/navbar' as navbar-module;
177
+ @use 'subnav/subnav' as subnav-module;
178
+ @use 'segmented/segmented' as segmented-module;
179
+ @use 'breadcrumb/breadcrumb' as breadcrumb-module;
180
+ @use 'tabs/tabs' as tabs-module;
181
+ @use 'dotnav/dotnav' as dotnav-module;
182
+ @use 'thumbnav/thumbnav' as thumbnav-module;
183
+ @use 'iconnav/iconnav' as iconnav-module;
184
+ @use 'animation/animation' as animation-module;
185
+ @use 'motion/motion' as motion-module;
186
+ @use 'width/width' as width-module;
187
+ @use 'height/height' as height-module;
188
+ @use 'text/text' as text-module;
189
+ @use 'column/column' as column-module;
190
+ @use 'cover/cover' as cover-module;
191
+ @use 'background/background' as background-module;
192
+ @use 'align/align' as align-module;
193
+ @use 'svg/svg' as svg-module;
194
+ @use 'utility/utility' as utility-module;
195
+ @use 'flex/flex' as flex-module;
196
+ @use 'margin/margin' as margin-module;
197
+ @use 'padding/padding' as padding-module;
198
+ @use 'position/position' as position-module;
199
+ @use 'transition/transition' as transition-module;
200
+ @use 'visibility/visibility' as visibility-module;
201
+ @use 'inverse/inverse' as inverse-module;
202
+
203
+
204
+ // ========================================================================
205
+ // Conditional styles generation
206
+ // ========================================================================
207
+
208
+ // Base
209
+ @if map.get($components, 'base') or $-all { @include base-module.base-styles; }
5
210
 
6
211
  // Elements
7
- @forward 'link';
8
- @forward 'heading';
9
- @forward 'divider';
10
- @forward 'list';
11
- @forward 'description-list'; //
12
- // @forward 'table';
13
- @forward 'icon';
14
- @forward 'form'; // After: Icon
15
- @forward 'control'; // After: Icon
16
- @forward 'input-password';
17
- @forward 'input-number';
18
- @forward 'checkbox';
19
- @forward 'radio';
20
- @forward 'datepicker';
21
- @forward 'button';
22
- @forward 'progress';
23
- @forward 'slider';
24
- @forward 'switch';
212
+ @if map.get($components, 'link') or $-all { @include link-module.link-styles; }
213
+ @if map.get($components, 'heading') or $-all { @include heading-module.heading-styles; }
214
+ @if map.get($components, 'divider') or $-all { @include divider-module.divider-styles; }
215
+ @if map.get($components, 'list') or $-all { @include list-module.list-styles; }
216
+ @if map.get($components, 'description-list') or $-all { @include description-list-module.description-list-styles; }
217
+ @if map.get($components, 'icon') or $-all { @include icon-module.icon-styles; }
218
+ @if map.get($components, 'form') or $-all { @include form-module.form-styles; }
219
+ @if map.get($components, 'control') or $-all { @include control-module.control-styles; }
220
+ @if map.get($components, 'input-password') or $-all { @include input-password-module.input-password-styles; }
221
+ @if map.get($components, 'input-number') or $-all { @include input-number-module.input-number-styles; }
222
+ @if map.get($components, 'checkbox') or $-all { @include checkbox-module.checkbox-styles; }
223
+ @if map.get($components, 'radio') or $-all { @include radio-module.radio-styles; }
224
+ @if map.get($components, 'datepicker') or $-all { @include datepicker-module.datepicker-styles; }
225
+ @if map.get($components, 'button') or $-all { @include button-module.button-styles; }
226
+ @if map.get($components, 'progress') or $-all { @include progress-module.progress-styles; }
227
+ @if map.get($components, 'slider') or $-all { @include slider-module.slider-styles; }
228
+ @if map.get($components, 'switch') or $-all { @include switch-module.switch-styles; }
229
+ @if map.get($components, 'select') or $-all { @include select-module.select-styles; }
230
+ @if map.get($components, 'textarea') or $-all { @include textarea-module.textarea-styles; }
25
231
 
26
232
  // Layout
27
- @forward 'section';
28
- @forward 'container';
29
- @forward 'grid';
30
- @forward 'tile';
31
- @forward 'card';
233
+ @if map.get($components, 'section') or $-all {
234
+ @include section-module.section-styles {
235
+ @if $-inverse {
236
+ @include section-module.section-inverse-styles;
237
+ }
238
+ }
239
+ }
240
+ @if map.get($components, 'container') or $-all { @include container-module.container-styles; }
241
+ @if map.get($components, 'tile') or $-all {
242
+ @include tile-module.tile-styles {
243
+ @if $-inverse {
244
+ @include tile-module.tile-inverse-styles;
245
+ }
246
+ }
247
+ }
248
+ @if map.get($components, 'card') or $-all {
249
+ @include card-module.card-styles {
250
+ @if $-inverse {
251
+ @include card-module.card-inverse-styles
252
+ }
253
+ }
254
+ }
32
255
 
33
256
  // Common
34
- @forward 'close'; // After: Icon
35
- @forward 'spinner'; // After: Icon
36
- @forward 'totop'; // After: Icon
37
- @forward 'marker'; // After: Icon
38
- @forward 'alert'; // After: Close
39
- // @forward 'placeholder';
40
- @forward 'badge';
41
- @forward 'label';
42
- @forward 'overlay'; // After: Icon
43
- @forward 'article'; // After: Subnav
44
- // @forward 'comment';
45
- // @forward 'search'; // After: Icon
46
-
47
- // JavaScript
48
- @forward 'accordion'; // After: Card
49
- @forward 'drop'; // After: Card
50
- @forward 'dropdown'; // After: Card
51
- @forward 'modal'; // After: Close
52
- @forward 'drawer';
53
- @forward 'datepicker';
54
- @forward 'sticky'; //
55
- // @forward 'leader';
56
- @forward 'tooltip'; //
57
- // @forward 'sortable';
58
- // @forward 'countdown';
257
+ @if map.get($components, 'close') or $-all { @include close-module.close-styles; }
258
+ @if map.get($components, 'spinner') or $-all { @include spinner-module.spinner-styles; }
259
+ @if map.get($components, 'totop') or $-all { @include totop-module.totop-styles; }
260
+ @if map.get($components, 'marker') or $-all { @include marker-module.marker-styles; }
261
+ @if map.get($components, 'alert') or $-all { @include alert-module.alert-styles; }
262
+ @if map.get($components, 'placeholder') or $-all { @include placeholder-module.placeholder-styles; }
263
+ @if map.get($components, 'badge') or $-all { @include badge-module.badge-styles; }
264
+ @if map.get($components, 'label') or $-all { @include label-module.label-styles; }
265
+ @if map.get($components, 'overlay') or $-all {
266
+ @include overlay-module.overlay-styles {
267
+ @if $-inverse {
268
+ @include overlay-module.overlay-inverse-styles;
269
+ }
270
+ }
271
+ }
272
+ @if map.get($components, 'article') or $-all { @include article-module.article-styles; }
273
+ @if map.get($components, 'search') or $-all { @include search-module.search-styles; }
274
+
275
+ // Interaction
276
+ @if map.get($components, 'accordion') or $-all { @include accordion-module.accordion-styles; }
277
+ @if map.get($components, 'drop') or $-all { @include drop-module.drop-styles; }
278
+ @if map.get($components, 'dropdown') or $-all {
279
+ @include dropdown-module.dropdown-styles {
280
+ @if $-inverse {
281
+ @include dropdown-module.dropdown-inverse-styles;
282
+ }
283
+ }
284
+ }
285
+ @if map.get($components, 'modal') or $-all { @include modal-module.modal-styles; }
286
+ @if map.get($components, 'drawer') or $-all { @include drawer-module.drawer-styles; }
287
+ @if map.get($components, 'sticky') or $-all { @include sticky-module.sticky-styles; }
288
+ @if map.get($components, 'leader') or $-all { @include leader-module.leader-styles; }
289
+ @if map.get($components, 'tooltip') or $-all { @include tooltip-module.tooltip-styles; }
59
290
 
60
291
  // Navs
61
- @forward 'nav';
62
- @forward 'navbar'; // After: Card, Grid, Nav, Icon, Search
63
- @forward 'subnav';
64
- @forward 'segmented';
65
- @forward 'breadcrumb';
66
-
67
- // @forward 'pagination';
68
- @forward 'tabs';
69
- @forward 'dotnav';
70
- @forward 'thumbnav';
71
- @forward 'iconnav';
292
+ @if map.get($components, 'nav') or $-all { @include nav-module.nav-styles; }
293
+ @if map.get($components, 'navbar') or $-all {
294
+ @include navbar-module.navbar-styles {
295
+ @if $-inverse {
296
+ @include navbar-module.navbar-inverse-styles;
297
+ }
298
+ }
299
+ }
300
+ @if map.get($components, 'subnav') or $-all { @include subnav-module.subnav-styles; }
301
+ @if map.get($components, 'segmented') or $-all { @include segmented-module.segmented-styles; }
302
+ @if map.get($components, 'breadcrumb') or $-all { @include breadcrumb-module.breadcrumb-styles; }
303
+ @if map.get($components, 'tabs') or $-all { @include tabs-module.tabs-styles; }
304
+ @if map.get($components, 'dotnav') or $-all { @include dotnav-module.dotnav-styles; }
305
+ @if map.get($components, 'thumbnav') or $-all { @include thumbnav-module.thumbnav-styles; }
306
+ @if map.get($components, 'iconnav') or $-all { @include iconnav-module.iconnav-styles; }
307
+
308
+ @if map.get($components, 'grid') or $-all { @include grid-module.grid-styles; }
72
309
 
73
310
  // Utilities
74
- @forward 'animation';
75
- @forward 'motion';
76
- @forward 'width';
77
- @forward 'height';
78
- @forward 'text';
79
- @forward 'column';
80
- @forward 'cover';
81
- @forward 'background';
82
- @forward 'align';
83
- @forward 'svg';
84
- @forward 'utility';
85
- @forward 'flex'; // After: Utility
86
- @forward 'margin';
87
- @forward 'padding';
88
- @forward 'position';
89
- @forward 'transition';
90
- @forward 'visibility';
91
- @forward 'inverse';
92
-
93
- // Need to be loaded last
94
- @forward 'print';
311
+ @if map.get($components, 'animation') or $-all { @include animation-module.animation-styles; }
312
+ @if map.get($components, 'motion') or $-all { @include motion-module.motion-styles; }
313
+ @if map.get($components, 'width') or $-all { @include width-module.width-styles; }
314
+ @if map.get($components, 'height') or $-all { @include height-module.height-styles; }
315
+ @if map.get($components, 'text') or $-all { @include text-module.text-styles; }
316
+ @if map.get($components, 'column') or $-all { @include column-module.column-styles; }
317
+ @if map.get($components, 'cover') or $-all { @include cover-module.cover-styles; }
318
+ @if map.get($components, 'background') or $-all { @include background-module.background-styles; }
319
+ @if map.get($components, 'align') or $-all { @include align-module.align-styles; }
320
+ @if map.get($components, 'svg') or $-all { @include svg-module.svg-styles; }
321
+ @if map.get($components, 'utility') or $-all { @include utility-module.utility-styles; }
322
+ @if map.get($components, 'flex') or $-all { @include flex-module.flex-styles; }
323
+ @if map.get($components, 'margin') or $-all { @include margin-module.margin-styles; }
324
+ @if map.get($components, 'padding') or $-all { @include padding-module.padding-styles; }
325
+ @if map.get($components, 'position') or $-all { @include position-module.position-styles; }
326
+ @if map.get($components, 'transition') or $-all { @include transition-module.transition-styles; }
327
+ @if map.get($components, 'visibility') or $-all { @include visibility-module.visibility-styles; }
328
+
329
+ @if $-inverse or $-all { @include inverse-module.inverse-styles; }
330
+
331
+
332
+ // ========================================================================
333
+ // Conditional tokens generation (CSS custom properties)
334
+ // ========================================================================
335
+
336
+ // Whether to generate CSS tokens
337
+ $generate-tokens: true !default;
338
+ $tokens-selector: ':root' !default;
339
+
340
+ @if $generate-tokens {
341
+ #{$tokens-selector} {
342
+ // Globals
343
+ @include globals.global-tokens;
344
+
345
+ // Base
346
+ @if map.get($components, 'base') or $-all {
347
+ @include base-module.base-tokens {
348
+ @if $-inverse {
349
+ @include base-module.base-inverse-tokens;
350
+ }
351
+ }
352
+ }
353
+
354
+ // Elements
355
+ @if map.get($components, 'link') or $-all {
356
+ @include link-module.link-tokens {
357
+ @if $-inverse {
358
+ @include link-module.link-inverse-tokens;
359
+ }
360
+ }
361
+ }
362
+ @if map.get($components, 'heading') or $-all {
363
+ @include heading-module.heading-tokens {
364
+ @if $-inverse {
365
+ @include heading-module.heading-inverse-tokens;
366
+ }
367
+ }
368
+ }
369
+ @if map.get($components, 'divider') or $-all {
370
+ @include divider-module.divider-tokens {
371
+ @if $-inverse {
372
+ @include divider-module.divider-inverse-tokens;
373
+ }
374
+ }
375
+ }
376
+ @if map.get($components, 'list') or $-all {
377
+ @include list-module.list-tokens {
378
+ @if $-inverse {
379
+ @include list-module.list-inverse-tokens;
380
+ }
381
+ }
382
+ }
383
+ @if map.get($components, 'description-list') or $-all {
384
+ @include description-list-module.description-list-tokens {
385
+ @if $-inverse {
386
+ @include description-list-module.description-list-inverse-tokens;
387
+ }
388
+ }
389
+ }
390
+ @if map.get($components, 'icon') or $-all {
391
+ @include icon-module.icon-tokens {
392
+ @if $-inverse {
393
+ @include icon-module.icon-inverse-tokens;
394
+ }
395
+ }
396
+ }
397
+ @if map.get($components, 'form') or $-all {
398
+ @include form-module.form-tokens {
399
+ @if $-inverse {
400
+ @include form-module.form-inverse-tokens;
401
+ }
402
+ }
403
+ }
404
+ @if map.get($components, 'control') or $-all {
405
+ @include control-module.control-tokens {
406
+ @if $-inverse {
407
+ @include control-module.control-inverse-tokens;
408
+ }
409
+ }
410
+ }
411
+ @if map.get($components, 'input-password') or $-all { @include input-password-module.input-password-tokens; }
412
+ @if map.get($components, 'input-number') or $-all { @include input-number-module.input-number-tokens; }
413
+ @if map.get($components, 'checkbox') or $-all { @include checkbox-module.checkbox-tokens; }
414
+ @if map.get($components, 'radio') or $-all { @include radio-module.radio-tokens; }
415
+ @if map.get($components, 'datepicker') or $-all { @include datepicker-module.datepicker-tokens; }
416
+ @if map.get($components, 'button') or $-all {
417
+ @include button-module.button-tokens {
418
+ @if $-inverse {
419
+ @include button-module.button-inverse-tokens;
420
+ }
421
+ }
422
+ }
423
+ @if map.get($components, 'progress') or $-all { @include progress-module.progress-tokens; }
424
+ @if map.get($components, 'slider') or $-all { @include slider-module.slider-tokens; }
425
+ @if map.get($components, 'switch') or $-all { @include switch-module.switch-tokens; }
426
+ @if map.get($components, 'select') or $-all { @include select-module.select-tokens; }
427
+ @if map.get($components, 'textarea') or $-all { @include textarea-module.textarea-tokens; }
428
+
429
+ // Layout
430
+ @if map.get($components, 'section') or $-all { @include section-module.section-tokens; }
431
+ @if map.get($components, 'container') or $-all { @include container-module.container-tokens; }
432
+ @if map.get($components, 'tile') or $-all { @include tile-module.tile-tokens; }
433
+ @if map.get($components, 'card') or $-all {
434
+ @include card-module.card-tokens {
435
+ @if $-inverse {
436
+ @include card-module.card-inverse-tokens;
437
+ }
438
+ }
439
+ }
440
+
441
+ // Common
442
+ @if map.get($components, 'close') or $-all {
443
+ @include close-module.close-tokens {
444
+ @if $-inverse {
445
+ @include close-module.close-inverse-tokens;
446
+ }
447
+ }
448
+ }
449
+ @if map.get($components, 'spinner') or $-all { @include spinner-module.spinner-tokens; }
450
+ @if map.get($components, 'totop') or $-all {
451
+ @include totop-module.totop-tokens {
452
+ @if $-inverse {
453
+ @include totop-module.totop-inverse-tokens;
454
+ }
455
+ }
456
+ }
457
+ @if map.get($components, 'marker') or $-all {
458
+ @include marker-module.marker-tokens {
459
+ @if $-inverse {
460
+ @include marker-module.marker-inverse-tokens;
461
+ }
462
+ }
463
+ }
464
+ @if map.get($components, 'alert') or $-all { @include alert-module.alert-tokens; }
465
+ @if map.get($components, 'placeholder') or $-all { @include placeholder-module.placeholder-tokens; }
466
+ @if map.get($components, 'badge') or $-all {
467
+ @include badge-module.badge-tokens {
468
+ @if $-inverse {
469
+ @include badge-module.badge-inverse-tokens;
470
+ }
471
+ }
472
+ }
473
+ @if map.get($components, 'label') or $-all {
474
+ @include label-module.label-tokens {
475
+ @if $-inverse {
476
+ @include label-module.label-inverse-tokens;
477
+ }
478
+ }
479
+ }
480
+ @if map.get($components, 'overlay') or $-all { @include overlay-module.overlay-tokens; }
481
+ @if map.get($components, 'article') or $-all {
482
+ @include article-module.article-tokens {
483
+ @if $-inverse {
484
+ @include article-module.article-inverse-tokens;
485
+ }
486
+ }
487
+ }
488
+ @if map.get($components, 'search') or $-all {
489
+ @include search-module.search-tokens {
490
+ @if $-inverse {
491
+ @include search-module.search-inverse-tokens;
492
+ }
493
+ }
494
+ }
495
+
496
+ // Interaction
497
+ @if map.get($components, 'accordion') or $-all {
498
+ @include accordion-module.accordion-tokens {
499
+ @if $-inverse {
500
+ @include accordion-module.accordion-inverse-tokens;
501
+ }
502
+ }
503
+ }
504
+ @if map.get($components, 'drop') or $-all { @include drop-module.drop-tokens; }
505
+ @if map.get($components, 'dropdown') or $-all {
506
+ @include dropdown-module.dropdown-tokens {
507
+ @if $-inverse {
508
+ @include dropdown-module.dropdown-inverse-tokens;
509
+ }
510
+ }
511
+ }
512
+ @if map.get($components, 'modal') or $-all { @include modal-module.modal-tokens; }
513
+ @if map.get($components, 'drawer') or $-all { @include drawer-module.drawer-tokens; }
514
+ @if map.get($components, 'sticky') or $-all { @include sticky-module.sticky-tokens; }
515
+ @if map.get($components, 'leader') or $-all { @include leader-module.leader-tokens; }
516
+ @if map.get($components, 'tooltip') or $-all { @include tooltip-module.tooltip-tokens; }
517
+
518
+ // Navs
519
+ @if map.get($components, 'nav') or $-all {
520
+ @include nav-module.nav-tokens {
521
+ @if $-inverse {
522
+ @include nav-module.nav-inverse-tokens;
523
+ }
524
+ }
525
+ }
526
+ @if map.get($components, 'navbar') or $-all {
527
+ @include navbar-module.navbar-tokens {
528
+ @if $-inverse {
529
+ @include navbar-module.navbar-inverse-tokens;
530
+ }
531
+ }
532
+ }
533
+ @if map.get($components, 'subnav') or $-all {
534
+ @include subnav-module.subnav-tokens {
535
+ @if $-inverse {
536
+ @include subnav-module.subnav-inverse-tokens;
537
+ }
538
+ }
539
+ }
540
+ @if map.get($components, 'segmented') or $-all { @include segmented-module.segmented-tokens; }
541
+ @if map.get($components, 'breadcrumb') or $-all {
542
+ @include breadcrumb-module.breadcrumb-tokens {
543
+ @if $-inverse {
544
+ @include breadcrumb-module.breadcrumb-inverse-tokens;
545
+ }
546
+ }
547
+ }
548
+ @if map.get($components, 'tabs') or $-all {
549
+ @include tabs-module.tabs-tokens {
550
+ @if $-inverse {
551
+ @include tabs-module.tabs-inverse-tokens;
552
+ }
553
+ }
554
+ }
555
+ @if map.get($components, 'dotnav') or $-all {
556
+ @include dotnav-module.dotnav-tokens {
557
+ @if $-inverse {
558
+ @include dotnav-module.dotnav-inverse-tokens;
559
+ }
560
+ }
561
+ }
562
+ @if map.get($components, 'thumbnav') or $-all { @include thumbnav-module.thumbnav-tokens; }
563
+ @if map.get($components, 'iconnav') or $-all {
564
+ @include iconnav-module.iconnav-tokens {
565
+ @if $-inverse {
566
+ @include iconnav-module.iconnav-inverse-tokens;
567
+ }
568
+ }
569
+ }
570
+
571
+ @if map.get($components, 'grid') or $-all {
572
+ @include grid-module.grid-tokens {
573
+ @if $-inverse {
574
+ @include grid-module.grid-inverse-tokens;
575
+ }
576
+ }
577
+ }
578
+
579
+ // Utilities
580
+ @if map.get($components, 'animation') or $-all { @include animation-module.animation-tokens; }
581
+ @if map.get($components, 'motion') or $-all { @include motion-module.motion-tokens; }
582
+ @if map.get($components, 'width') or $-all { @include width-module.width-tokens; }
583
+ @if map.get($components, 'height') or $-all { @include height-module.height-tokens; }
584
+ @if map.get($components, 'text') or $-all {
585
+ @include text-module.text-tokens {
586
+ @if $-inverse {
587
+ @include text-module.text-inverse-tokens;
588
+ }
589
+ }
590
+ }
591
+ @if map.get($components, 'column') or $-all {
592
+ @include column-module.column-tokens {
593
+ @if $-inverse {
594
+ @include column-module.column-inverse-tokens;
595
+ }
596
+ }
597
+ }
598
+ @if map.get($components, 'cover') or $-all { @include cover-module.cover-tokens; }
599
+ @if map.get($components, 'background') or $-all { @include background-module.background-tokens; }
600
+ @if map.get($components, 'align') or $-all { @include align-module.align-tokens; }
601
+ @if map.get($components, 'svg') or $-all { @include svg-module.svg-tokens; }
602
+ @if map.get($components, 'utility') or $-all {
603
+ @include utility-module.utility-tokens {
604
+ @if $-inverse {
605
+ @include utility-module.utility-inverse-tokens;
606
+ }
607
+ }
608
+ }
609
+ @if map.get($components, 'flex') or $-all { @include flex-module.flex-tokens; }
610
+ @if map.get($components, 'margin') or $-all { @include margin-module.margin-tokens; }
611
+ @if map.get($components, 'padding') or $-all { @include padding-module.padding-tokens; }
612
+ @if map.get($components, 'position') or $-all { @include position-module.position-tokens; }
613
+ @if map.get($components, 'transition') or $-all { @include transition-module.transition-tokens; }
614
+ @if map.get($components, 'visibility') or $-all { @include visibility-module.visibility-tokens; }
615
+
616
+ @if $-inverse or $-all { @include inverse-module.inverse-tokens; }
617
+ }
618
+ }
619
+