@broxus/react-uikit 0.23.3 → 0.24.1

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 +3 -5
  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} +41 -27
  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 +639 -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,584 +0,0 @@
1
- // Name: Drawer
2
- // Description: Component to create an drawer sidebar
3
- //
4
- // Component: `uk-drawer`
5
- //
6
- // Sub-objects: `uk-drawer-bar`
7
- // `uk-drawer-container`
8
- // `uk-drawer-page`
9
- //
10
- // Adopted: `uk-drawer-close`
11
- //
12
- // Modifiers: `uk-drawer-flip`
13
- // `uk-drawer-bar-animation`
14
- // `uk-drawer-reveal`
15
- // `uk-drawer-overlay`
16
- // `uk-drawer-container-animation`
17
- //
18
- // States: `uk-open`
19
- //
20
- // ========================================================================
21
-
22
- @use 'sass:meta';
23
-
24
-
25
- // Variables
26
- // ========================================================================
27
-
28
- @use 'variables' as *;
29
-
30
-
31
- /* ========================================================================
32
- Component: Drawer
33
- ========================================================================== */
34
-
35
- .uk-drawer {
36
- display: none;
37
- inset: 0;
38
- position: fixed;
39
- z-index: var(--drawer-z-index);
40
- @if meta.mixin-exists('hook-drawer') {
41
- @include hook-drawer;
42
- }
43
- }
44
-
45
- .uk-drawer-open {
46
- touch-action: none;
47
- width: 100vw;
48
- }
49
-
50
-
51
- // Page & Container
52
- // ========================================================================
53
-
54
- .uk-drawer-page,
55
- .uk-drawer-container {
56
- overflow-x: clip;
57
- touch-action: none;
58
- }
59
-
60
- .uk-drawer-page {
61
- overflow-y: clip;
62
- }
63
-
64
- .uk-drawer-container {
65
- position: relative;
66
- touch-action: pan-y pinch-zoom;
67
- transform: none !important;
68
- transition-duration: var(--drawer-transition-duration);
69
- transition-timing-function: var(--ease-in-out);
70
- }
71
-
72
-
73
- // Content
74
- // ========================================================================
75
-
76
- .uk-drawer-content-wrapper {
77
- position: absolute;
78
- transition: var(--drawer-transition-duration) var(--ease-in-out);
79
- @if meta.mixin-exists('hook-drawer-content-wrapper') {
80
- @include hook-drawer-content-wrapper;
81
- }
82
- }
83
-
84
- .uk-drawer-content {
85
- background-clip: padding-box;
86
- background-color: var(--drawer-content-background);
87
- border: 0 none;
88
- box-sizing: border-box;
89
- height: 100%;
90
- outline: 0 none;
91
- overflow: visible;
92
- padding: var(--drawer-content-padding);
93
- pointer-events: auto;
94
- position: relative;
95
- width: 100%;
96
- z-index: 1;
97
- @if meta.mixin-exists('hook-drawer-content') {
98
- @include hook-drawer-content;
99
- }
100
- }
101
-
102
-
103
- // Placement
104
- // ========================================================================
105
-
106
- .uk-drawer-left .uk-drawer-content-wrapper {
107
- bottom: 0;
108
- left: 0;
109
- top: 0;
110
- }
111
-
112
- .uk-drawer-right .uk-drawer-content-wrapper {
113
- bottom: 0;
114
- right: 0;
115
- top: 0;
116
- }
117
-
118
- .uk-drawer-left,
119
- .uk-drawer-right {
120
- &:not(.uk-drawer-reveal) .uk-drawer-content-wrapper {
121
- width: var(--drawer-width);
122
- }
123
-
124
- .uk-drawer-content-wrapper {
125
- max-width: 100vw;
126
- }
127
- }
128
-
129
- .uk-drawer-top .uk-drawer-content-wrapper {
130
- left: 0;
131
- right: 0;
132
- top: 0;
133
- }
134
-
135
- .uk-drawer-bottom .uk-drawer-content-wrapper {
136
- bottom: 0;
137
- left: 0;
138
- right: 0;
139
- }
140
-
141
- .uk-drawer-top,
142
- .uk-drawer-bottom {
143
- &:not(.uk-drawer-reveal) .uk-drawer-content-wrapper {
144
- height: var(--drawer-height);
145
- }
146
-
147
- .uk-drawer-content-wrapper {
148
- max-height: 100vh;
149
- }
150
- }
151
-
152
-
153
- // Size
154
- // ========================================================================
155
-
156
- /* Large */
157
- .uk-drawer-large.uk-drawer-left .uk-drawer-content-wrapper,
158
- .uk-drawer-large.uk-drawer-right .uk-drawer-content-wrapper {
159
- width: var(--drawer-large-width);
160
- }
161
-
162
- .uk-drawer-large.uk-drawer-top .uk-drawer-content-wrapper,
163
- .uk-drawer-large.uk-drawer-bottom .uk-drawer-content-wrapper {
164
- height: var(--drawer-large-height);
165
- }
166
-
167
-
168
- // Animation & Transition
169
- // ========================================================================
170
-
171
- .uk-drawer-container-push-left,
172
- .uk-drawer-container-reveal-left {
173
- left: 0;
174
- transition-property: left;
175
- will-change: left;
176
-
177
- &.uk-drawer-container-animation {
178
- left: var(--drawer-width);
179
-
180
- &.uk-drawer-container-large {
181
- left: var(--drawer-large-width);
182
- }
183
- }
184
- }
185
-
186
- .uk-drawer-container-push-right,
187
- .uk-drawer-container-reveal-right {
188
- right: 0;
189
- transition-property: right;
190
- will-change: right;
191
-
192
- &.uk-drawer-container-animation {
193
- right: var(--drawer-width);
194
-
195
- &.uk-drawer-container-large {
196
- right: var(--drawer-large-width);
197
- }
198
- }
199
- }
200
-
201
- .uk-drawer-container-push-top,
202
- .uk-drawer-container-reveal-top {
203
- top: 0;
204
- transition-property: top;
205
- will-change: top;
206
-
207
- &.uk-drawer-container-animation {
208
- top: var(--drawer-height);
209
-
210
- &.uk-drawer-container-large {
211
- top: var(--drawer-height);
212
- }
213
- }
214
- }
215
-
216
- .uk-drawer-container-push-bottom,
217
- .uk-drawer-container-reveal-bottom {
218
- bottom: 0;
219
- transition-property: bottom;
220
- will-change: bottom;
221
-
222
- &.uk-drawer-container-animation {
223
- bottom: var(--drawer-height);
224
-
225
- &.uk-drawer-container-large {
226
- bottom: var(--drawer-height);
227
- }
228
- }
229
- }
230
-
231
- /* Reveal animation */
232
- .uk-drawer-reveal .uk-drawer-content-wrapper { overflow: hidden; }
233
-
234
- .uk-drawer-left.uk-drawer-reveal,
235
- .uk-drawer-right.uk-drawer-reveal {
236
- &:not(.uk-drawer-large) {
237
- .uk-drawer-content-wrapper {
238
- width: 0;
239
-
240
- .uk-drawer-content { width: var(--drawer-width); }
241
- }
242
-
243
- &.uk-drawer-open .uk-drawer-content-wrapper { width: var(--drawer-width); }
244
- }
245
-
246
- &.uk-drawer-large {
247
- .uk-drawer-content-wrapper {
248
- .uk-drawer-content { width: var(--drawer-large-width); }
249
- }
250
-
251
- &.uk-drawer-open .uk-drawer-content-wrapper { width: var(--drawer-large-width); }
252
- }
253
- }
254
-
255
- .uk-drawer-top.uk-drawer-reveal,
256
- .uk-drawer-bottom.uk-drawer-reveal {
257
- &:not(.uk-drawer-large) {
258
- .uk-drawer-content-wrapper {
259
- height: 0;
260
-
261
- .uk-drawer-content { height: var(--drawer-height); }
262
- }
263
-
264
- &.uk-drawer-open .uk-drawer-content-wrapper { height: var(--drawer-height); }
265
- }
266
-
267
- &.uk-drawer-large {
268
- .uk-drawer-content-wrapper {
269
- .uk-drawer-content { height: var(--drawer-large-height); }
270
- }
271
-
272
- &.uk-drawer-open .uk-drawer-content-wrapper { height: var(--drawer-large-height); }
273
- }
274
- }
275
-
276
-
277
- // Motion
278
- // ========================================================================
279
-
280
- /* Fade */
281
- .uk-motion-drawer-fade {
282
- &-appear,
283
- &-enter,
284
- &-leave {
285
- &-active { transition: all var(--drawer-transition-duration) linear; }
286
- }
287
-
288
- &-appear,
289
- &-enter {
290
- opacity: 0;
291
-
292
- &-active { opacity: 1; }
293
- }
294
-
295
- &-leave {
296
- opacity: 1;
297
-
298
- &-active { opacity: 0; }
299
- }
300
- }
301
-
302
- /* Slide Left */
303
- .uk-motion-drawer-push-left,
304
- .uk-motion-drawer-slide-left {
305
- will-change: transform;
306
-
307
- &-appear,
308
- &-enter,
309
- &-leave {
310
- &-active { transition: all var(--drawer-transition-duration); }
311
- &-prepare { transition: none !important; }
312
- }
313
-
314
- &-appear,
315
- &-enter {
316
- transform: translateX(-100%);
317
-
318
- &-active { transform: translateX(0); }
319
- }
320
-
321
- &-leave {
322
- transform: translateX(0);
323
-
324
- &-active { transform: translateX(-100%) !important; }
325
- }
326
- }
327
-
328
- /* Slide Right */
329
- .uk-motion-drawer-push-right,
330
- .uk-motion-drawer-slide-right {
331
- will-change: transform;
332
-
333
- &-appear,
334
- &-enter,
335
- &-leave {
336
- &-active { transition: all var(--drawer-transition-duration); }
337
- &-prepare { transition: none !important; }
338
- }
339
-
340
- &-appear,
341
- &-enter {
342
- transform: translateX(100%);
343
-
344
- &-active { transform: translateX(0); }
345
- }
346
-
347
- &-leave {
348
- transform: translateX(0);
349
-
350
- &-active { transform: translateX(100%) !important; }
351
- }
352
- }
353
-
354
- /* Slide Top */
355
- .uk-motion-drawer-push-top,
356
- .uk-motion-drawer-slide-top {
357
- will-change: transform;
358
-
359
- &-appear,
360
- &-enter,
361
- &-leave {
362
- &-active { transition: all var(--drawer-transition-duration); }
363
- &-prepare { transition: none !important; }
364
- }
365
-
366
- &-appear,
367
- &-enter {
368
- transform: translateY(-100%);
369
-
370
- &-active { transform: translateY(0); }
371
- }
372
-
373
- &-leave {
374
- transform: translateX(0);
375
-
376
- &-active { transform: translateY(-100%) !important; }
377
- }
378
- }
379
-
380
- /* Slide Bottom */
381
- .uk-motion-drawer-push-bottom,
382
- .uk-motion-drawer-slide-bottom {
383
- will-change: transform;
384
-
385
- &-appear,
386
- &-enter,
387
- &-leave {
388
- &-active { transition: all var(--drawer-transition-duration); }
389
- &-prepare { transition: none !important; }
390
- }
391
-
392
- &-appear,
393
- &-enter {
394
- transform: translateY(100%);
395
-
396
- &-active { transform: translateY(0); }
397
- }
398
-
399
- &-leave {
400
- transform: translateX(0);
401
-
402
- &-active { transform: translateY(100%) !important; }
403
- }
404
- }
405
-
406
- /* Reveal Horizontal */
407
- .uk-motion-drawer-reveal-left,
408
- .uk-motion-drawer-reveal-right {
409
- will-change: width;
410
-
411
- &-appear,
412
- &-enter,
413
- &-leave {
414
- &-active { transition: all var(--drawer-transition-duration); }
415
- &-prepare { transition: none !important; }
416
- }
417
-
418
- &-appear,
419
- &-enter {
420
- width: 0 !important;
421
-
422
- &-active { width: var(--drawer-width) !important; }
423
- }
424
-
425
- &-leave {
426
- width: var(--drawer-width) !important;
427
-
428
- &-active { width: 0 !important; }
429
- }
430
- }
431
-
432
- /* Reveal Vertical */
433
- .uk-motion-drawer-reveal-top,
434
- .uk-motion-drawer-reveal-bottom {
435
- will-change: height;
436
-
437
- &-appear,
438
- &-enter,
439
- &-leave {
440
- &-active { transition: all var(--drawer-transition-duration); }
441
- &-prepare { transition: none !important; }
442
- }
443
-
444
- &-appear,
445
- &-enter {
446
- height: 0 !important;
447
-
448
- &-active { height: var(--drawer-height) !important; }
449
- }
450
-
451
- &-leave {
452
- height: var(--drawer-height) !important;
453
-
454
- &-active { height: 0 !important; }
455
- }
456
- }
457
-
458
- .uk-drawer-large {
459
- .uk-motion-drawer-reveal-left,
460
- .uk-motion-drawer-reveal-right {
461
- will-change: width;
462
-
463
- &-appear,
464
- &-enter,
465
- &-leave {
466
- &-active { transition: all var(--drawer-transition-duration); }
467
- &-prepare { transition: none !important; }
468
- }
469
-
470
- &-appear,
471
- &-enter {
472
- width: 0 !important;
473
-
474
- &-active { width: var(--drawer-large-width) !important; }
475
- }
476
-
477
- &-leave {
478
- width: var(--drawer-large-width) !important;
479
-
480
- &-active { width: 0 !important; }
481
- }
482
- }
483
-
484
- .uk-motion-drawer-reveal-top,
485
- .uk-motion-drawer-reveal-bottom {
486
- will-change: height;
487
-
488
- &-appear,
489
- &-enter,
490
- &-leave {
491
- &-active { transition: all var(--drawer-transition-duration); }
492
- &-prepare { transition: none !important; }
493
- }
494
-
495
- &-appear,
496
- &-enter {
497
- height: 0 !important;
498
-
499
- &-active { height: var(--drawer-large-height) !important; }
500
- }
501
-
502
- &-leave {
503
- height: var(--drawer-large-height) !important;
504
-
505
- &-active { height: 0 !important; }
506
- }
507
- }
508
- }
509
-
510
-
511
- // Mask
512
- // ========================================================================
513
-
514
- .uk-drawer-mask {
515
- background-color: var(--drawer-mask-background);
516
- inset: 0;
517
- pointer-events: none;
518
- position: absolute;
519
- @if meta.mixin-exists('hook-drawer-mask') {
520
- @include hook-drawer-mask;
521
- }
522
- }
523
-
524
- .uk-drawer-animation .uk-drawer-mask {
525
- pointer-events: auto;
526
- @if meta.mixin-exists('hook-drawer-mask-open') {
527
- @include hook-drawer-mask-open;
528
- }
529
- }
530
-
531
-
532
- /* Close
533
- * Adopts `uk-close`
534
- ========================================================================== */
535
-
536
- .uk-drawer-close {
537
- --icon-size: 24px;
538
-
539
- box-sizing: content-box;
540
- padding: var(--drawer-close-padding);
541
- position: absolute;
542
- right: var(--drawer-close-position);
543
- top: var(--drawer-close-position);
544
- z-index: var(--drawer-z-index);
545
- @if meta.mixin-exists('hook-drawer-close') {
546
- @include hook-drawer-close;
547
- }
548
- }
549
-
550
- /*
551
- * Remove margin from adjacent element
552
- */
553
-
554
- .uk-drawer-close:first-child + * {
555
- margin-top: 0;
556
- }
557
-
558
- /*
559
- * Hover
560
- */
561
-
562
- .uk-drawer-close:hover {
563
- @if meta.mixin-exists('hook-drawer-close-hover') {
564
- @include hook-drawer-close-hover;
565
- }
566
- }
567
-
568
-
569
- // Vars
570
- // ========================================================================
571
-
572
- :root {
573
- --drawer-content-background: var(--global-background);
574
- --drawer-content-padding: var(--global-gutter);
575
- --drawer-height: 360px;
576
- --drawer-large-height: 768px;
577
- --drawer-width: 360px;
578
- --drawer-large-width: 768px;
579
- --drawer-mask-background: #{$drawer-mask-background};
580
- --drawer-z-index: calc(var(--global-z-index) + 30);
581
- --drawer-transition-duration: var(--transition-medium-fast-duration);
582
- --drawer-close-position: var(--global-small-margin);
583
- --drawer-close-padding: #{$drawer-close-padding};
584
- }
package/styles/drop.scss DELETED
@@ -1,93 +0,0 @@
1
- // Name: Drop
2
- // Description: Component to position any element next to any other element.
3
- //
4
- // Component: `uk-drop`
5
- //
6
- // Modifiers: `uk-drop-placement-top-*`
7
- // `uk-drop-placement-bottom-*`
8
- // `uk-drop-stack`
9
- // `uk-drop-grid`
10
- //
11
- // States: `uk-drop-hidden`
12
- //
13
- // Uses: Animation
14
- //
15
- // ========================================================================
16
-
17
- @use 'sass:meta';
18
-
19
-
20
- // Variables
21
- // ========================================================================
22
-
23
- @use 'variables' as *;
24
-
25
-
26
- /* ========================================================================
27
- Component: Drop
28
- ========================================================================== */
29
-
30
- /*
31
- * 1. Set a default width
32
- * 2. Set position
33
- */
34
-
35
- .uk-drop {
36
- /* 1 */
37
- box-sizing: border-box;
38
-
39
- /* 2 */
40
- position: absolute;
41
- width: var(--drop-width);
42
- z-index: var(--drop-z-index);
43
- }
44
-
45
- /* Hide */
46
- .uk-drop-hidden { display: none; }
47
-
48
-
49
- /* Drop mask
50
- ========================================================================== */
51
-
52
- .uk-drop-mask {
53
- background-color: var(--drop-mask-background);
54
- inset: 0;
55
- opacity: 0;
56
- pointer-events: none;
57
- position: fixed;
58
- @if meta.mixin-exists('hook-drop-mask') {
59
- @include hook-drop-mask;
60
- }
61
- }
62
-
63
- .uk-drop-mask.uk-active {
64
- opacity: 1;
65
- @if meta.mixin-exists('hook-drop-mask-active') {
66
- @include hook-drop-mask-active;
67
- }
68
- }
69
-
70
-
71
- /* Grid modifiers
72
- ========================================================================== */
73
-
74
- .uk-drop-stack .uk-drop-grid > * { width: 100% !important; }
75
-
76
-
77
- // Hooks
78
- // ========================================================================
79
-
80
- @if meta.mixin-exists('hook-drop-misc') {
81
- @include hook-drop-misc;
82
- }
83
-
84
-
85
- // Vars
86
- // ========================================================================
87
-
88
- :root {
89
- --drop-mask-background: #{$drop-mask-background};
90
- --drop-margin: var(--global-margin);
91
- --drop-width: #{$drop-width};
92
- --drop-z-index: calc(var(--global-z-index) + 20);
93
- }