@broxus/react-uikit 0.3.0 → 0.3.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.
@@ -24,8 +24,8 @@ export function NavContextProvider(props) {
24
24
  const { children, locked, ...restProps } = props;
25
25
  const inheritableContext = useMemo(() => mergeProps({
26
26
  ...context,
27
- popupPrefixCls: `${config.prefixCls}-dropdown`,
28
- prefixCls: `${config.prefixCls}-nav`,
27
+ popupPrefixCls: context.popupPrefixCls ?? `${config.prefixCls}-dropdown`,
28
+ prefixCls: context.prefixCls ?? `${config.prefixCls}-nav`,
29
29
  }, restProps),
30
30
  // eslint-disable-next-line react-hooks/exhaustive-deps
31
31
  [context, restProps], (prev, next) => !locked && (prev[0] !== next[0] || !shallowEqual(prev[1], next[1])));
@@ -35,8 +35,8 @@
35
35
 
36
36
  [class*='uk-animation-'] {
37
37
  animation-duration: var(--animation-duration);
38
- animation-timing-function: var(--ease-out);
39
38
  animation-fill-mode: both;
39
+ animation-timing-function: var(--ease-out);
40
40
  }
41
41
 
42
42
 
@@ -48,8 +48,8 @@
48
48
  */
49
49
 
50
50
  .uk-animation-fade {
51
- animation-name: uk-fade;
52
51
  animation-duration: var(--animation-fade-duration);
52
+ animation-name: uk-fade;
53
53
  animation-timing-function: linear;
54
54
  }
55
55
 
@@ -102,8 +102,8 @@
102
102
  */
103
103
 
104
104
  .uk-animation-kenburns {
105
- animation-name: uk-scale-kenburns;
106
105
  animation-duration: var(--animation-kenburns-duration);
106
+ animation-name: uk-scale-kenburns;
107
107
  }
108
108
 
109
109
  /*
@@ -121,8 +121,8 @@
121
121
  */
122
122
 
123
123
  .uk-animation-stroke {
124
- animation-name: uk-stroke;
125
124
  animation-duration: var(--animation-stroke-duration);
125
+ animation-name: uk-stroke;
126
126
  stroke-dasharray: var(--uk-animation-stroke);
127
127
  }
128
128
 
@@ -131,8 +131,8 @@
131
131
  ========================================================================== */
132
132
 
133
133
  .uk-animation-reverse {
134
- animation-timing-function: var(--ease-in);
135
134
  animation-direction: reverse;
135
+ animation-timing-function: var(--ease-in);
136
136
  }
137
137
 
138
138
 
@@ -187,13 +187,13 @@
187
187
 
188
188
  @keyframes uk-fade-top {
189
189
  0% {
190
- transform: translateY(-100%);
191
190
  opacity: 0;
191
+ transform: translateY(-100%);
192
192
  }
193
193
 
194
194
  100% {
195
- transform: translateY(0);
196
195
  opacity: 1;
196
+ transform: translateY(0);
197
197
  }
198
198
  }
199
199
 
@@ -203,13 +203,13 @@
203
203
 
204
204
  @keyframes uk-fade-bottom {
205
205
  0% {
206
- transform: translateY(100%);
207
206
  opacity: 0;
207
+ transform: translateY(100%);
208
208
  }
209
209
 
210
210
  100% {
211
- transform: translateY(0);
212
211
  opacity: 1;
212
+ transform: translateY(0);
213
213
  }
214
214
  }
215
215
 
@@ -219,13 +219,13 @@
219
219
 
220
220
  @keyframes uk-fade-left {
221
221
  0% {
222
- transform: translateX(-100%);
223
222
  opacity: 0;
223
+ transform: translateX(-100%);
224
224
  }
225
225
 
226
226
  100% {
227
- transform: translateX(0);
228
227
  opacity: 1;
228
+ transform: translateX(0);
229
229
  }
230
230
  }
231
231
 
@@ -235,13 +235,13 @@
235
235
 
236
236
  @keyframes uk-fade-right {
237
237
  0% {
238
- transform: translateX(100%);
239
238
  opacity: 0;
239
+ transform: translateX(100%);
240
240
  }
241
241
 
242
242
  100% {
243
- transform: translateX(0);
244
243
  opacity: 1;
244
+ transform: translateX(0);
245
245
  }
246
246
  }
247
247
 
@@ -251,13 +251,13 @@
251
251
 
252
252
  @keyframes uk-fade-top-small {
253
253
  0% {
254
- transform: translateY(unquote('calc(var(--animation-slide-small-translate) * -1)'));
255
254
  opacity: 0;
255
+ transform: translateY(unquote('calc(var(--animation-slide-small-translate) * -1)'));
256
256
  }
257
257
 
258
258
  100% {
259
- transform: translateY(0);
260
259
  opacity: 1;
260
+ transform: translateY(0);
261
261
  }
262
262
  }
263
263
 
@@ -267,13 +267,13 @@
267
267
 
268
268
  @keyframes uk-fade-bottom-small {
269
269
  0% {
270
- transform: translateY(var(--animation-slide-small-translate));
271
270
  opacity: 0;
271
+ transform: translateY(var(--animation-slide-small-translate));
272
272
  }
273
273
 
274
274
  100% {
275
- transform: translateY(0);
276
275
  opacity: 1;
276
+ transform: translateY(0);
277
277
  }
278
278
  }
279
279
 
@@ -283,13 +283,13 @@
283
283
 
284
284
  @keyframes uk-fade-left-small {
285
285
  0% {
286
- transform: translateX(unquote('calc(var(--animation-slide-small-translate) * -1)'));
287
286
  opacity: 0;
287
+ transform: translateX(unquote('calc(var(--animation-slide-small-translate) * -1)'));
288
288
  }
289
289
 
290
290
  100% {
291
- transform: translateX(0);
292
291
  opacity: 1;
292
+ transform: translateX(0);
293
293
  }
294
294
  }
295
295
 
@@ -299,13 +299,13 @@
299
299
 
300
300
  @keyframes uk-fade-right-small {
301
301
  0% {
302
- transform: translateX(var(--animation-slide-small-translate));
303
302
  opacity: 0;
303
+ transform: translateX(var(--animation-slide-small-translate));
304
304
  }
305
305
 
306
306
  100% {
307
- transform: translateX(0);
308
307
  opacity: 1;
308
+ transform: translateX(0);
309
309
  }
310
310
  }
311
311
 
@@ -315,13 +315,13 @@
315
315
 
316
316
  @keyframes uk-fade-top-medium {
317
317
  0% {
318
- transform: translateY(unquote('calc(var(--animation-slide-medium-translate) * -1)'));
319
318
  opacity: 0;
319
+ transform: translateY(unquote('calc(var(--animation-slide-medium-translate) * -1)'));
320
320
  }
321
321
 
322
322
  100% {
323
- transform: translateY(0);
324
323
  opacity: 1;
324
+ transform: translateY(0);
325
325
  }
326
326
  }
327
327
 
@@ -331,13 +331,13 @@
331
331
 
332
332
  @keyframes uk-fade-bottom-medium {
333
333
  0% {
334
- transform: translateY(var(--animation-slide-medium-translate));
335
334
  opacity: 0;
335
+ transform: translateY(var(--animation-slide-medium-translate));
336
336
  }
337
337
 
338
338
  100% {
339
- transform: translateY(0);
340
339
  opacity: 1;
340
+ transform: translateY(0);
341
341
  }
342
342
  }
343
343
 
@@ -347,13 +347,13 @@
347
347
 
348
348
  @keyframes uk-fade-left-medium {
349
349
  0% {
350
- transform: translateX(unquote('calc(var(--animation-slide-medium-translate) * -1)'));
351
350
  opacity: 0;
351
+ transform: translateX(unquote('calc(var(--animation-slide-medium-translate) * -1)'));
352
352
  }
353
353
 
354
354
  100% {
355
- transform: translateX(0);
356
355
  opacity: 1;
356
+ transform: translateX(0);
357
357
  }
358
358
  }
359
359
 
@@ -363,13 +363,13 @@
363
363
 
364
364
  @keyframes uk-fade-right-medium {
365
365
  0% {
366
- transform: translateX(var(--animation-slide-medium-translate));
367
366
  opacity: 0;
367
+ transform: translateX(var(--animation-slide-medium-translate));
368
368
  }
369
369
 
370
370
  100% {
371
- transform: translateX(0);
372
371
  opacity: 1;
372
+ transform: translateX(0);
373
373
  }
374
374
  }
375
375
 
@@ -379,13 +379,13 @@
379
379
 
380
380
  @keyframes uk-fade-scale-02 {
381
381
  0% {
382
- transform: scale(0.2);
383
382
  opacity: 0;
383
+ transform: scale(0.2);
384
384
  }
385
385
 
386
386
  100% {
387
- transform: scale(1);
388
387
  opacity: 1;
388
+ transform: scale(1);
389
389
  }
390
390
  }
391
391
 
@@ -395,13 +395,13 @@
395
395
 
396
396
  @keyframes uk-fade-scale-18 {
397
397
  0% {
398
- transform: scale(1.8);
399
398
  opacity: 0;
399
+ transform: scale(1.8);
400
400
  }
401
401
 
402
402
  100% {
403
- transform: scale(1);
404
403
  opacity: 1;
404
+ transform: scale(1);
405
405
  }
406
406
  }
407
407
 
@@ -143,7 +143,7 @@
143
143
  --column-gutter: var(--global-gutter);
144
144
  --column-gutter-l: var(--global-medium-gutter);
145
145
  --column-divider-rule-color: var(--global-border);
146
- --column-divider-rule-width: $column-divider-rule-width;
146
+ --column-divider-rule-width: #{$column-divider-rule-width};
147
147
 
148
148
  // Inverse
149
149
  --inverse-column-divider-rule-color: var(--inverse-global-border);
@@ -46,41 +46,12 @@
46
46
  @include hook-marker-misc;
47
47
  }
48
48
 
49
- // @mixin hook-marker() {}
50
- // @mixin hook-marker-hover() {}
51
- // @mixin hook-marker-misc() {}
52
-
53
-
54
- // Inverse
55
- // ========================================================================
56
-
57
- @mixin hook-inverse() {
58
- .uk-marker {
59
- background: var(--inverse-marker-background);
60
- color: var(--inverse-marker-color);
61
- @if mixin-exists(hook-inverse-marker) {
62
- @include hook-inverse-marker;
63
- }
64
- }
65
-
66
- .uk-marker:hover,
67
- .uk-marker:focus {
68
- color: var(--inverse-marker-hover-color);
69
- @if mixin-exists(hook-inverse-marker-hover) {
70
- @include hook-inverse-marker-hover;
71
- }
72
- }
73
- }
74
-
75
- // @mixin hook-inverse-marker() {}
76
- // @mixin hook-inverse-marker-hover() {}
77
-
78
49
 
79
50
  // Vars
80
51
  // ========================================================================
81
52
 
82
53
  :root {
83
- --marker-padding: $marker-padding;
54
+ --marker-padding: #{$marker-padding};
84
55
  --marker-background: var(--global-secondary-background);
85
56
  --marker-color: var(--global-inverse-color);
86
57
  --marker-hover-color: var(--global-inverse-color);
@@ -959,7 +959,6 @@
959
959
  }
960
960
  }
961
961
 
962
-
963
962
  @mixin hook-control() {}
964
963
  @mixin hook-control-hover() {}
965
964
  @mixin hook-control-focus() {}
@@ -975,7 +974,6 @@
975
974
  @mixin hook-control-input() {}
976
975
  @mixin hook-control-prefix() {}
977
976
  @mixin hook-control-suffix() {}
978
-
979
977
  @mixin hook-inverse-control() {}
980
978
  @mixin hook-inverse-control-hover() {}
981
979
  @mixin hook-inverse-control-focus() {}
@@ -1757,6 +1755,12 @@
1757
1755
  }
1758
1756
  }
1759
1757
 
1758
+ @mixin hook-overlay() {}
1759
+ @mixin hook-overlay-icon() {}
1760
+ @mixin hook-overlay-default() {}
1761
+ @mixin hook-overlay-primary() {}
1762
+ @mixin hook-overlay-misc() {}
1763
+
1760
1764
  @mixin hook-position-misc() {}
1761
1765
 
1762
1766
  @mixin hook-print() {}
@@ -1854,6 +1858,29 @@
1854
1858
  }
1855
1859
  }
1856
1860
 
1861
+ @mixin hook-marker() {}
1862
+ @mixin hook-marker-hover() {}
1863
+ @mixin hook-marker-misc() {}
1864
+ @mixin hook-inverse-marker() {}
1865
+ @mixin hook-inverse-marker-hover() {}
1866
+ @mixin hook-inverse-component-marker() {
1867
+ .uk-marker {
1868
+ background: var(--inverse-marker-background);
1869
+ color: var(--inverse-marker-color);
1870
+ @if mixin-exists(hook-inverse-marker) {
1871
+ @include hook-inverse-marker;
1872
+ }
1873
+ }
1874
+
1875
+ .uk-marker:hover,
1876
+ .uk-marker:focus {
1877
+ color: var(--inverse-marker-hover-color);
1878
+ @if mixin-exists(hook-inverse-marker-hover) {
1879
+ @include hook-inverse-marker-hover;
1880
+ }
1881
+ }
1882
+ }
1883
+
1857
1884
  @mixin hook-modal() {}
1858
1885
  @mixin hook-modal-content() {}
1859
1886
  @mixin hook-modal-mask() {}
@@ -1877,6 +1904,109 @@
1877
1904
  @mixin hook-spinner() {}
1878
1905
  @mixin hook-spinner-misc() {}
1879
1906
 
1907
+ @mixin hook-subnav() {}
1908
+ @mixin hook-subnav-item() {}
1909
+ @mixin hook-subnav-item-hover() {}
1910
+ @mixin hook-subnav-item-active() {}
1911
+ @mixin hook-subnav-divider() {}
1912
+ @mixin hook-subnav-pill-item() {}
1913
+ @mixin hook-subnav-pill-item-hover() {}
1914
+ @mixin hook-subnav-pill-item-onclick() {}
1915
+ @mixin hook-subnav-pill-item-active() {}
1916
+ @mixin hook-subnav-item-disabled() {}
1917
+ @mixin hook-subnav-misc() {}
1918
+ @mixin hook-inverse-subnav-item() {}
1919
+ @mixin hook-inverse-subnav-item-hover() {}
1920
+ @mixin hook-inverse-subnav-item-active() {}
1921
+ @mixin hook-inverse-subnav-divider() {}
1922
+ @mixin hook-inverse-subnav-pill-item() {}
1923
+ @mixin hook-inverse-subnav-pill-item-hover() {}
1924
+ @mixin hook-inverse-subnav-pill-item-onclick() {}
1925
+ @mixin hook-inverse-subnav-pill-item-active() {}
1926
+ @mixin hook-inverse-subnav-item-disabled() {}
1927
+ @mixin hook-inverse-component-subnav() {
1928
+ .uk-subnav > * > :first-child {
1929
+ color: var(--inverse-subnav-item-color);
1930
+ @if mixin-exists(hook-inverse-subnav-item) {
1931
+ @include hook-inverse-subnav-item;
1932
+ }
1933
+ }
1934
+
1935
+ .uk-subnav > * > a:hover,
1936
+ .uk-subnav > * > a:focus {
1937
+ color: var(--inverse-subnav-item-hover-color);
1938
+ @if mixin-exists(hook-inverse-subnav-item-hover) {
1939
+ @include hook-inverse-subnav-item-hover;
1940
+ }
1941
+ }
1942
+
1943
+ .uk-subnav > .uk-active > a {
1944
+ color: var(--inverse-subnav-item-active-color);
1945
+ @if mixin-exists(hook-inverse-subnav-item-active) {
1946
+ @include hook-inverse-subnav-item-active;
1947
+ }
1948
+ }
1949
+
1950
+ //
1951
+ // Divider
1952
+ //
1953
+
1954
+ .uk-subnav-divider > :nth-child(n+2):not(.uk-first-column)::before {
1955
+ border-left-color: var(--inverse-subnav-divider-border);
1956
+ @if mixin-exists(hook-inverse-subnav-divider) {
1957
+ @include hook-inverse-subnav-divider;
1958
+ }
1959
+ }
1960
+
1961
+ //
1962
+ // Pill
1963
+ //
1964
+
1965
+ .uk-subnav-pill > * > :first-child {
1966
+ background-color: var(--inverse-subnav-pill-item-background);
1967
+ color: var(--inverse-subnav-pill-item-color);
1968
+ @if mixin-exists(hook-inverse-subnav-pill-item) {
1969
+ @include hook-inverse-subnav-pill-item;
1970
+ }
1971
+ }
1972
+
1973
+ .uk-subnav-pill > * > a:hover,
1974
+ .uk-subnav-pill > * > a:focus {
1975
+ background-color: var(--inverse-subnav-pill-item-hover-background);
1976
+ color: var(--inverse-subnav-pill-item-hover-color);
1977
+ @if mixin-exists(hook-inverse-subnav-pill-item-hover) {
1978
+ @include hook-inverse-subnav-pill-item-hover;
1979
+ }
1980
+ }
1981
+
1982
+ .uk-subnav-pill > * > a:active {
1983
+ background-color: var(--inverse-subnav-pill-item-onclick-background);
1984
+ color: var(--inverse-subnav-pill-item-onclick-color);
1985
+ @if mixin-exists(hook-inverse-subnav-pill-item-onclick) {
1986
+ @include hook-inverse-subnav-pill-item-onclick;
1987
+ }
1988
+ }
1989
+
1990
+ .uk-subnav-pill > .uk-active > a {
1991
+ background-color: var(--inverse-subnav-pill-item-active-background);
1992
+ color: var(--inverse-subnav-pill-item-active-color);
1993
+ @if mixin-exists(hook-inverse-subnav-pill-item-active) {
1994
+ @include hook-inverse-subnav-pill-item-active;
1995
+ }
1996
+ }
1997
+
1998
+ //
1999
+ // Disabled
2000
+ //
2001
+
2002
+ .uk-subnav > .uk-disabled > a {
2003
+ color: var(--inverse-subnav-item-disabled-color);
2004
+ @if mixin-exists(hook-inverse-subnav-item-disabled) {
2005
+ @include hook-inverse-subnav-item-disabled;
2006
+ }
2007
+ }
2008
+ }
2009
+
1880
2010
  @mixin hook-tabs() {}
1881
2011
  @mixin hook-tabs-tab() {}
1882
2012
  @mixin hook-tabs-tab-hover() {}
@@ -1934,6 +2064,73 @@
1934
2064
  }
1935
2065
  }
1936
2066
 
2067
+ @mixin hook-table() {}
2068
+ @mixin hook-table-header-cell() {}
2069
+ @mixin hook-table-cell() {}
2070
+ @mixin hook-table-footer() {}
2071
+ @mixin hook-table-caption() {}
2072
+ @mixin hook-table-row-active() {}
2073
+ @mixin hook-table-divider() {}
2074
+ @mixin hook-table-striped() {}
2075
+ @mixin hook-table-hover() {}
2076
+ @mixin hook-table-small() {}
2077
+ @mixin hook-table-large() {}
2078
+ @mixin hook-table-misc() {}
2079
+ @mixin hook-inverse-table-header-cell() { }
2080
+ @mixin hook-inverse-table-caption() { }
2081
+ @mixin hook-inverse-table-row-active() { }
2082
+ @mixin hook-inverse-table-divider() { }
2083
+ @mixin hook-inverse-table-striped() { }
2084
+ @mixin hook-inverse-table-hover() {}
2085
+ @mixin hook-inverse-component-table() {
2086
+ .uk-table th {
2087
+ color: var(--inverse-table-header-cell-color);
2088
+ @if mixin-exists(hook-inverse-table-header-cell) {
2089
+ @include hook-inverse-table-header-cell;
2090
+ }
2091
+ }
2092
+
2093
+ .uk-table caption {
2094
+ color: var(--inverse-table-caption-color);
2095
+ @if mixin-exists(hook-inverse-table-caption) {
2096
+ @include hook-inverse-table-caption;
2097
+ }
2098
+ }
2099
+
2100
+ .uk-table > tr.uk-active,
2101
+ .uk-table tbody tr.uk-active {
2102
+ background: var(--inverse-table-row-active-background);
2103
+ @if mixin-exists(hook-inverse-table-row-active) {
2104
+ @include hook-inverse-table-row-active;
2105
+ }
2106
+ }
2107
+
2108
+ .uk-table-divider > tr:not(:first-child),
2109
+ .uk-table-divider > :not(:first-child) > tr,
2110
+ .uk-table-divider > :first-child > tr:not(:first-child) {
2111
+ border-top-color: var(--inverse-table-divider-border);
2112
+ @if mixin-exists(hook-inverse-table-divider) {
2113
+ @include hook-inverse-table-divider;
2114
+ }
2115
+ }
2116
+
2117
+ .uk-table-striped > tr:nth-of-type(odd),
2118
+ .uk-table-striped tbody tr:nth-of-type(odd) {
2119
+ background: var(--inverse-table-striped-row-background);
2120
+ @if mixin-exists(hook-inverse-table-striped) {
2121
+ @include hook-inverse-table-striped;
2122
+ }
2123
+ }
2124
+
2125
+ .uk-table-hover > tr:hover,
2126
+ .uk-table-hover tbody tr:hover {
2127
+ background: var(--inverse-table-hover-row-background);
2128
+ @if mixin-exists(hook-inverse-table-hover) {
2129
+ @include hook-inverse-table-hover;
2130
+ }
2131
+ }
2132
+ }
2133
+
1937
2134
 
1938
2135
  @mixin hook-inverse() {
1939
2136
  @include hook-inverse-component-base;
@@ -1962,11 +2159,12 @@
1962
2159
  @include hook-inverse-component-nav;
1963
2160
  @include hook-inverse-component-navbar;
1964
2161
 
1965
- // @include hook-inverse-component-subnav;
2162
+ @include hook-inverse-component-subnav;
1966
2163
  @include hook-inverse-component-breadcrumb;
1967
2164
 
1968
2165
  // @include hook-inverse-component-pagination;
1969
2166
  @include hook-inverse-component-tabs;
2167
+ @include hook-inverse-component-table;
1970
2168
 
1971
2169
  // @include hook-inverse-component-slidenav;
1972
2170
  @include hook-inverse-component-dotnav;
@@ -1974,4 +2172,5 @@
1974
2172
  @include hook-inverse-component-text;
1975
2173
  @include hook-inverse-component-column;
1976
2174
  @include hook-inverse-component-utility;
2175
+ @include hook-inverse-component-marker;
1977
2176
  }
@@ -93,12 +93,6 @@
93
93
  @include hook-overlay-misc;
94
94
  }
95
95
 
96
- // @mixin hook-overlay(){}
97
- // @mixin hook-overlay-icon(){}
98
- // @mixin hook-overlay-default(){}
99
- // @mixin hook-overlay-primary(){}
100
- // @mixin hook-overlay-misc(){}
101
-
102
96
 
103
97
  // Vars
104
98
  // ========================================================================
@@ -106,6 +100,6 @@
106
100
  :root {
107
101
  --overlay-padding-horizontal: var(--global-gutter);
108
102
  --overlay-padding-vertical: var(--global-gutter);
109
- --overlay-default-background: fade($global-background, 80%);
110
- --overlay-primary-background: fade($global-secondary-background, 80%);
103
+ --overlay-default-background: #{$overlay-default-background};
104
+ --overlay-primary-background: #{$overlay-primary-background};
111
105
  }