uikit 3.14.2-dev.e270e98f7 → 3.14.2-dev.f917389f5
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.
- package/CHANGELOG.md +15 -0
- package/build/util.js +8 -2
- package/dist/css/uikit-core-rtl.css +46 -19
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +46 -19
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +48 -31
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +48 -31
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +6 -1
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +6 -1
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +2 -2
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +1 -1
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +1 -1
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +1 -1
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +1 -1
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +25 -15
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +73 -50
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +74 -51
- package/dist/js/uikit.min.js +1 -1
- package/package.json +11 -11
- package/src/js/components/parallax.js +1 -1
- package/src/js/core/drop.js +16 -7
- package/src/js/core/height-viewport.js +1 -2
- package/src/js/core/toggle.js +4 -0
- package/src/js/mixin/position.js +18 -23
- package/src/js/mixin/togglable.js +5 -0
- package/src/js/util/position.js +24 -22
- package/src/js/util/viewport.js +6 -7
- package/src/less/components/drop.less +2 -0
- package/src/less/components/dropdown.less +2 -0
- package/src/less/components/modal.less +19 -4
- package/src/less/components/navbar.less +28 -8
- package/src/less/components/offcanvas.less +21 -21
- package/src/less/components/tooltip.less +1 -0
- package/src/less/theme/navbar.less +3 -10
- package/src/scss/components/drop.scss +2 -0
- package/src/scss/components/dropdown.scss +2 -0
- package/src/scss/components/modal.scss +19 -4
- package/src/scss/components/navbar.scss +28 -8
- package/src/scss/components/offcanvas.scss +21 -21
- package/src/scss/components/tooltip.scss +1 -0
- package/src/scss/mixins-theme.scss +0 -10
- package/src/scss/theme/navbar.scss +3 -0
- package/src/scss/variables-theme.scss +23 -11
- package/src/scss/variables.scss +23 -11
- package/tests/drop.html +20 -2
- package/tests/dropdown.html +6 -0
- package/tests/navbar.html +21 -59
- package/tests/offcanvas.html +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -2,9 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
## WIP
|
|
4
4
|
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Add gap variable to navbar items in Navbar component
|
|
8
|
+
- Add small breakpoint padding variables to Modal component
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Rename `@offcanvas-bar-width-m` to `@offcanvas-bar-width-s`
|
|
13
|
+
- Rename `@offcanvas-bar-padding-vertical-m` to `@offcanvas-bar-padding-vertical-s`
|
|
14
|
+
- Rename `@offcanvas-bar-padding-horizontal-m` to `@offcanvas-bar-padding-horizontal-s`
|
|
15
|
+
|
|
5
16
|
### Fixed
|
|
6
17
|
|
|
7
18
|
- Fix Scroll component on iOS 12
|
|
19
|
+
- Fix offset calculation in Drop component
|
|
20
|
+
- Fix `-justify` positioning in Drop component
|
|
21
|
+
- Fix Toggle component in `mode:media` default prevents click event
|
|
22
|
+
- Revert: Height Viewport component sets `uk-height-viewport` class to reduce initial layout shifts
|
|
8
23
|
|
|
9
24
|
## 3.14.1 (May 3, 2022)
|
|
10
25
|
|
package/build/util.js
CHANGED
|
@@ -14,7 +14,7 @@ import replace from '@rollup/plugin-replace';
|
|
|
14
14
|
import { basename, dirname, join } from 'path';
|
|
15
15
|
import { exec as execImport } from 'child_process';
|
|
16
16
|
import { rollup, watch as rollupWatch } from 'rollup';
|
|
17
|
-
import { minify as
|
|
17
|
+
import { minify as esbuildMinify } from 'rollup-plugin-esbuild';
|
|
18
18
|
|
|
19
19
|
const limit = pLimit(Number(process.env.cpus || 2));
|
|
20
20
|
|
|
@@ -148,7 +148,13 @@ export async function compile(file, dest, { external, globals, name, aliases, re
|
|
|
148
148
|
output.push({
|
|
149
149
|
...outputOptions,
|
|
150
150
|
file: `${dest}.min.js`,
|
|
151
|
-
plugins: [
|
|
151
|
+
plugins: [
|
|
152
|
+
debug
|
|
153
|
+
? undefined
|
|
154
|
+
: esbuildMinify({
|
|
155
|
+
target: 'safari12',
|
|
156
|
+
}),
|
|
157
|
+
],
|
|
152
158
|
});
|
|
153
159
|
}
|
|
154
160
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.14.2-dev.
|
|
1
|
+
/*! UIkit 3.14.2-dev.f917389f5 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
|
|
2
2
|
/* ========================================================================
|
|
3
3
|
Component: Base
|
|
4
4
|
========================================================================== */
|
|
@@ -3231,6 +3231,7 @@ select.uk-form-width-xsmall {
|
|
|
3231
3231
|
position: absolute;
|
|
3232
3232
|
z-index: 1020;
|
|
3233
3233
|
--uk-position-offset: 20px;
|
|
3234
|
+
--uk-position-viewport-offset: 15px;
|
|
3234
3235
|
/* 3 */
|
|
3235
3236
|
box-sizing: border-box;
|
|
3236
3237
|
width: 300px;
|
|
@@ -3260,6 +3261,7 @@ select.uk-form-width-xsmall {
|
|
|
3260
3261
|
position: absolute;
|
|
3261
3262
|
z-index: 1020;
|
|
3262
3263
|
--uk-position-offset: 10px;
|
|
3264
|
+
--uk-position-viewport-offset: 15px;
|
|
3263
3265
|
/* 3 */
|
|
3264
3266
|
box-sizing: border-box;
|
|
3265
3267
|
min-width: 200px;
|
|
@@ -3442,18 +3444,30 @@ select.uk-form-width-xsmall {
|
|
|
3442
3444
|
========================================================================== */
|
|
3443
3445
|
.uk-modal-body {
|
|
3444
3446
|
display: flow-root;
|
|
3445
|
-
padding:
|
|
3447
|
+
padding: 20px 20px;
|
|
3446
3448
|
}
|
|
3447
3449
|
.uk-modal-header {
|
|
3448
3450
|
display: flow-root;
|
|
3449
|
-
padding:
|
|
3451
|
+
padding: 10px 20px;
|
|
3450
3452
|
background: #f8f8f8;
|
|
3451
3453
|
}
|
|
3452
3454
|
.uk-modal-footer {
|
|
3453
3455
|
display: flow-root;
|
|
3454
|
-
padding:
|
|
3456
|
+
padding: 10px 20px;
|
|
3455
3457
|
background: #f8f8f8;
|
|
3456
3458
|
}
|
|
3459
|
+
/* Phone landscape and bigger */
|
|
3460
|
+
@media (min-width: 640px) {
|
|
3461
|
+
.uk-modal-body {
|
|
3462
|
+
padding: 30px 30px;
|
|
3463
|
+
}
|
|
3464
|
+
.uk-modal-header {
|
|
3465
|
+
padding: 15px 30px;
|
|
3466
|
+
}
|
|
3467
|
+
.uk-modal-footer {
|
|
3468
|
+
padding: 15px 30px;
|
|
3469
|
+
}
|
|
3470
|
+
}
|
|
3457
3471
|
/*
|
|
3458
3472
|
* Remove margin from the last-child
|
|
3459
3473
|
*/
|
|
@@ -3724,12 +3738,12 @@ select.uk-form-width-xsmall {
|
|
|
3724
3738
|
overflow-y: auto;
|
|
3725
3739
|
-webkit-overflow-scrolling: touch;
|
|
3726
3740
|
}
|
|
3727
|
-
/*
|
|
3728
|
-
@media (min-width:
|
|
3741
|
+
/* Phone landscape and bigger */
|
|
3742
|
+
@media (min-width: 640px) {
|
|
3729
3743
|
.uk-offcanvas-bar {
|
|
3730
3744
|
right: -350px;
|
|
3731
3745
|
width: 350px;
|
|
3732
|
-
padding:
|
|
3746
|
+
padding: 30px 30px;
|
|
3733
3747
|
}
|
|
3734
3748
|
}
|
|
3735
3749
|
/* Flip modifier */
|
|
@@ -3738,7 +3752,7 @@ select.uk-form-width-xsmall {
|
|
|
3738
3752
|
left: -270px;
|
|
3739
3753
|
}
|
|
3740
3754
|
/* Tablet landscape and bigger */
|
|
3741
|
-
@media (min-width:
|
|
3755
|
+
@media (min-width: 640px) {
|
|
3742
3756
|
.uk-offcanvas-flip .uk-offcanvas-bar {
|
|
3743
3757
|
left: -350px;
|
|
3744
3758
|
}
|
|
@@ -3794,7 +3808,7 @@ select.uk-form-width-xsmall {
|
|
|
3794
3808
|
width: 270px;
|
|
3795
3809
|
}
|
|
3796
3810
|
/* Tablet landscape and bigger */
|
|
3797
|
-
@media (min-width:
|
|
3811
|
+
@media (min-width: 640px) {
|
|
3798
3812
|
.uk-open > .uk-offcanvas-reveal {
|
|
3799
3813
|
width: 350px;
|
|
3800
3814
|
}
|
|
@@ -3817,10 +3831,10 @@ select.uk-form-width-xsmall {
|
|
|
3817
3831
|
padding: 5px;
|
|
3818
3832
|
}
|
|
3819
3833
|
/* Tablet landscape and bigger */
|
|
3820
|
-
@media (min-width:
|
|
3834
|
+
@media (min-width: 640px) {
|
|
3821
3835
|
.uk-offcanvas-close {
|
|
3822
|
-
top:
|
|
3823
|
-
left:
|
|
3836
|
+
top: 10px;
|
|
3837
|
+
left: 10px;
|
|
3824
3838
|
}
|
|
3825
3839
|
}
|
|
3826
3840
|
/*
|
|
@@ -3898,7 +3912,7 @@ select.uk-form-width-xsmall {
|
|
|
3898
3912
|
right: -270px;
|
|
3899
3913
|
}
|
|
3900
3914
|
/* Tablet landscape and bigger */
|
|
3901
|
-
@media (min-width:
|
|
3915
|
+
@media (min-width: 640px) {
|
|
3902
3916
|
:not(.uk-offcanvas-flip).uk-offcanvas-container-animation {
|
|
3903
3917
|
right: 350px;
|
|
3904
3918
|
}
|
|
@@ -4081,6 +4095,7 @@ select.uk-form-width-xsmall {
|
|
|
4081
4095
|
position: absolute;
|
|
4082
4096
|
z-index: 1030;
|
|
4083
4097
|
--uk-position-offset: 10px;
|
|
4098
|
+
--uk-position-viewport-offset: 10;
|
|
4084
4099
|
/* 3 */
|
|
4085
4100
|
top: 0;
|
|
4086
4101
|
/* 4 */
|
|
@@ -4769,6 +4784,7 @@ ul.uk-nav-sub {
|
|
|
4769
4784
|
*/
|
|
4770
4785
|
.uk-navbar {
|
|
4771
4786
|
display: flex;
|
|
4787
|
+
--uk-navbar-nav-item-gap: 0;
|
|
4772
4788
|
/* 1 */
|
|
4773
4789
|
position: relative;
|
|
4774
4790
|
}
|
|
@@ -4789,6 +4805,7 @@ ul.uk-nav-sub {
|
|
|
4789
4805
|
.uk-navbar-center-right > *,
|
|
4790
4806
|
.uk-navbar-center-left > * {
|
|
4791
4807
|
display: flex;
|
|
4808
|
+
gap: var(--uk-navbar-nav-item-gap);
|
|
4792
4809
|
/* 1 */
|
|
4793
4810
|
align-items: center;
|
|
4794
4811
|
}
|
|
@@ -4828,9 +4845,11 @@ ul.uk-nav-sub {
|
|
|
4828
4845
|
}
|
|
4829
4846
|
.uk-navbar-center-right {
|
|
4830
4847
|
left: 100%;
|
|
4848
|
+
left: calc(100% + var(--uk-navbar-nav-item-gap));
|
|
4831
4849
|
}
|
|
4832
4850
|
.uk-navbar-center-left {
|
|
4833
4851
|
right: 100%;
|
|
4852
|
+
right: calc(100% + var(--uk-navbar-nav-item-gap));
|
|
4834
4853
|
}
|
|
4835
4854
|
[class*='uk-navbar-center-'] {
|
|
4836
4855
|
width: max-content;
|
|
@@ -4843,6 +4862,7 @@ ul.uk-nav-sub {
|
|
|
4843
4862
|
*/
|
|
4844
4863
|
.uk-navbar-nav {
|
|
4845
4864
|
display: flex;
|
|
4865
|
+
gap: var(--uk-navbar-nav-item-gap);
|
|
4846
4866
|
/* 1 */
|
|
4847
4867
|
margin: 0;
|
|
4848
4868
|
padding: 0;
|
|
@@ -4909,6 +4929,7 @@ ul.uk-nav-sub {
|
|
|
4909
4929
|
/* Item
|
|
4910
4930
|
========================================================================== */
|
|
4911
4931
|
.uk-navbar-item {
|
|
4932
|
+
padding: 0 15px;
|
|
4912
4933
|
color: #666;
|
|
4913
4934
|
}
|
|
4914
4935
|
/*
|
|
@@ -4964,7 +4985,9 @@ ul.uk-nav-sub {
|
|
|
4964
4985
|
/* 2 */
|
|
4965
4986
|
position: absolute;
|
|
4966
4987
|
z-index: 1020;
|
|
4967
|
-
--uk-position-offset:
|
|
4988
|
+
--uk-position-offset: 0;
|
|
4989
|
+
--uk-position-shift-offset: 0;
|
|
4990
|
+
--uk-position-viewport-offset: 15px;
|
|
4968
4991
|
/* 3 */
|
|
4969
4992
|
box-sizing: border-box;
|
|
4970
4993
|
width: 200px;
|
|
@@ -5014,18 +5037,22 @@ ul.uk-nav-sub {
|
|
|
5014
5037
|
}
|
|
5015
5038
|
/*
|
|
5016
5039
|
* Dropbar modifier
|
|
5017
|
-
* 1.
|
|
5018
|
-
* 2.
|
|
5019
|
-
* 3.
|
|
5040
|
+
* 1. Reset dropdown width to prevent to early shifting
|
|
5041
|
+
* 2. Set position
|
|
5042
|
+
* 3. Bottom padding for dropbar
|
|
5043
|
+
* 4. Horizontal padding
|
|
5020
5044
|
*/
|
|
5021
5045
|
.uk-navbar-dropdown-dropbar {
|
|
5022
5046
|
/* 1 */
|
|
5023
|
-
|
|
5047
|
+
width: auto;
|
|
5024
5048
|
/* 2 */
|
|
5025
|
-
|
|
5049
|
+
--uk-position-offset: 0px;
|
|
5026
5050
|
/* 3 */
|
|
5051
|
+
margin-bottom: 0px;
|
|
5052
|
+
/* 4 */
|
|
5027
5053
|
padding-right: 15px;
|
|
5028
5054
|
padding-left: 15px;
|
|
5055
|
+
--uk-position-shift-offset: 0;
|
|
5029
5056
|
}
|
|
5030
5057
|
/* Dropdown Nav
|
|
5031
5058
|
* Adopts `uk-nav`
|