uikit 3.16.6 → 3.16.7-dev.fcb5a4616

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 (64) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +2 -0
  3. package/dist/css/uikit-core-rtl.css +1 -1
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +1 -1
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +2 -2
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +2 -2
  10. package/dist/css/uikit.min.css +1 -1
  11. package/dist/js/components/countdown.js +1 -1
  12. package/dist/js/components/countdown.min.js +1 -1
  13. package/dist/js/components/filter.js +5 -414
  14. package/dist/js/components/filter.min.js +1 -1
  15. package/dist/js/components/lightbox-panel.js +194 -1996
  16. package/dist/js/components/lightbox-panel.min.js +1 -1
  17. package/dist/js/components/lightbox.js +205 -1993
  18. package/dist/js/components/lightbox.min.js +1 -1
  19. package/dist/js/components/notification.js +1 -1
  20. package/dist/js/components/notification.min.js +1 -1
  21. package/dist/js/components/parallax.js +3 -248
  22. package/dist/js/components/parallax.min.js +1 -1
  23. package/dist/js/components/slider-parallax.js +1 -1
  24. package/dist/js/components/slider-parallax.min.js +1 -1
  25. package/dist/js/components/slider.js +143 -2429
  26. package/dist/js/components/slider.min.js +1 -1
  27. package/dist/js/components/slideshow-parallax.js +1 -1
  28. package/dist/js/components/slideshow-parallax.min.js +1 -1
  29. package/dist/js/components/slideshow.js +97 -2383
  30. package/dist/js/components/slideshow.min.js +1 -1
  31. package/dist/js/components/sortable.js +3 -408
  32. package/dist/js/components/sortable.min.js +1 -1
  33. package/dist/js/components/tooltip.js +81 -2367
  34. package/dist/js/components/tooltip.min.js +1 -1
  35. package/dist/js/components/upload.js +1 -1
  36. package/dist/js/components/upload.min.js +1 -1
  37. package/dist/js/uikit-core.js +85 -78
  38. package/dist/js/uikit-core.min.js +1 -1
  39. package/dist/js/uikit-icons.js +1 -1
  40. package/dist/js/uikit-icons.min.js +1 -1
  41. package/dist/js/uikit.js +85 -78
  42. package/dist/js/uikit.min.js +1 -1
  43. package/package.json +9 -8
  44. package/src/js/api/app.js +1 -1
  45. package/src/js/api/boot.js +1 -1
  46. package/src/js/api/component.js +1 -1
  47. package/src/js/api/computed.js +1 -1
  48. package/src/js/api/events.js +1 -1
  49. package/src/js/api/global.js +43 -43
  50. package/src/js/api/index.js +5 -5
  51. package/src/js/api/instance.js +42 -41
  52. package/src/js/api/observables.js +1 -1
  53. package/src/js/api/observer.js +9 -1
  54. package/src/js/api/options.js +1 -1
  55. package/src/js/api/props.js +1 -1
  56. package/src/js/api/state.js +1 -1
  57. package/src/js/api/update.js +1 -1
  58. package/src/js/api/watch.js +1 -1
  59. package/src/less/components/dropdown.less +1 -1
  60. package/src/less/theme/dropdown.less +2 -0
  61. package/src/scss/components/dropdown.scss +1 -1
  62. package/src/scss/theme/dropdown.scss +2 -0
  63. package/src/scss/variables-theme.scss +2 -2
  64. package/src/scss/variables.scss +1 -1
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "uikit",
3
3
  "title": "UIkit",
4
4
  "description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.",
5
- "version": "3.16.6",
5
+ "version": "3.16.7-dev.fcb5a4616",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -19,6 +19,7 @@
19
19
  "url": "https://github.com/uikit/uikit/issues"
20
20
  },
21
21
  "homepage": "https://getuikit.com",
22
+ "packageManager": "pnpm@7.29.1",
22
23
  "devDependencies": {
23
24
  "@rollup/plugin-alias": "^4.0.3",
24
25
  "@rollup/plugin-replace": "^5.0.2",
@@ -26,9 +27,9 @@
26
27
  "camelcase": "^7.0.1",
27
28
  "clean-css": "^5.3.2",
28
29
  "dateformat": "^5.0.3",
29
- "esbuild": "^0.17.10",
30
- "eslint": "^8.35.0",
31
- "eslint-config-prettier": "^8.6.0",
30
+ "esbuild": "^0.17.11",
31
+ "eslint": "^8.36.0",
32
+ "eslint-config-prettier": "^8.7.0",
32
33
  "fs-extra": "^11.1.0",
33
34
  "glob": "^9.2.1",
34
35
  "inquirer": "^9.1.4",
@@ -37,7 +38,7 @@
37
38
  "number-precision": "^1.6.0",
38
39
  "p-limit": "^4.0.0",
39
40
  "prettier": "^2.8.4",
40
- "rollup": "^3.17.3",
41
+ "rollup": "^3.19.1",
41
42
  "rollup-plugin-esbuild": "^5.0.0",
42
43
  "rollup-plugin-html": "^0.2.1",
43
44
  "rollup-plugin-modify": "^3.0.0",
@@ -48,10 +49,10 @@
48
49
  },
49
50
  "scripts": {
50
51
  "build-scss": "node build/scss",
51
- "compile": "yarn compile-less && yarn compile-js",
52
+ "compile": "pnpm compile-less && pnpm compile-js",
52
53
  "compile-js": "node build/build",
53
- "compile-less": "yarn icons && node build/less",
54
- "compile-rtl": "yarn compile-less rtl",
54
+ "compile-less": "pnpm icons && node build/less",
55
+ "compile-rtl": "pnpm compile-less rtl",
55
56
  "icons": "node build/icons",
56
57
  "prefix": "node build/prefix",
57
58
  "scope": "node build/scope",
package/src/js/api/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { init } from './state';
2
- import * as util from '../util';
2
+ import * as util from 'uikit-util';
3
3
 
4
4
  const App = function (options) {
5
5
  init(this, options);
@@ -1,6 +1,6 @@
1
1
  import { callConnected, callDisconnected } from './hooks';
2
2
  import { components, createComponent, getComponent, getComponents } from './component';
3
- import { apply, hasAttr, inBrowser, isPlainObject, startsWith, trigger } from '../util';
3
+ import { apply, hasAttr, inBrowser, isPlainObject, startsWith, trigger } from 'uikit-util';
4
4
 
5
5
  export default function (App) {
6
6
  if (inBrowser && window.MutationObserver) {
@@ -1,5 +1,5 @@
1
1
  import App from './app';
2
- import { $$, camelize, hyphenate, isEmpty, isPlainObject } from '../util';
2
+ import { $$, camelize, hyphenate, isEmpty, isPlainObject } from 'uikit-util';
3
3
 
4
4
  const PREFIX = 'uk-';
5
5
  const DATA = '__uikit__';
@@ -1,4 +1,4 @@
1
- import { hasOwn, isUndefined } from '../util';
1
+ import { hasOwn, isUndefined } from 'uikit-util';
2
2
 
3
3
  export function initComputed(instance) {
4
4
  const { computed } = instance.$options;
@@ -1,4 +1,4 @@
1
- import { hasOwn, isArray, isFunction, isPlainObject, isString, on } from '../util';
1
+ import { hasOwn, isArray, isFunction, isPlainObject, isString, on } from 'uikit-util';
2
2
 
3
3
  export function initEvents(instance) {
4
4
  instance._events = [];
@@ -1,47 +1,60 @@
1
- import App from './app';
2
1
  import { init } from './state';
3
2
  import { callUpdate } from './update';
4
3
  import { mergeOptions } from './options';
5
4
  import { component, getComponent, getComponents } from './component';
6
- import { $, apply, isString, parents, toNode } from '../util';
5
+ import { $, apply, isString, parents, toNode } from 'uikit-util';
7
6
 
8
- App.component = component;
9
- App.getComponents = getComponents;
10
- App.getComponent = getComponent;
7
+ export default function (App) {
8
+ App.component = component;
9
+ App.getComponents = getComponents;
10
+ App.getComponent = getComponent;
11
+ App.update = update;
11
12
 
12
- App.use = function (plugin) {
13
- if (plugin.installed) {
14
- return;
15
- }
13
+ App.use = function (plugin) {
14
+ if (plugin.installed) {
15
+ return;
16
+ }
17
+
18
+ plugin.call(null, this);
19
+ plugin.installed = true;
16
20
 
17
- plugin.call(null, this);
18
- plugin.installed = true;
21
+ return this;
22
+ };
19
23
 
20
- return this;
21
- };
24
+ App.mixin = function (mixin, component) {
25
+ component = (isString(component) ? this.component(component) : component) || this;
26
+ component.options = mergeOptions(component.options, mixin);
27
+ };
22
28
 
23
- App.mixin = function (mixin, component) {
24
- component = (isString(component) ? this.component(component) : component) || this;
25
- component.options = mergeOptions(component.options, mixin);
26
- };
29
+ App.extend = function (options) {
30
+ options = options || {};
27
31
 
28
- App.extend = function (options) {
29
- options = options || {};
32
+ const Super = this;
33
+ const Sub = function UIkitComponent(options) {
34
+ init(this, options);
35
+ };
30
36
 
31
- const Super = this;
32
- const Sub = function UIkitComponent(options) {
33
- init(this, options);
34
- };
37
+ Sub.prototype = Object.create(Super.prototype);
38
+ Sub.prototype.constructor = Sub;
39
+ Sub.options = mergeOptions(Super.options, options);
35
40
 
36
- Sub.prototype = Object.create(Super.prototype);
37
- Sub.prototype.constructor = Sub;
38
- Sub.options = mergeOptions(Super.options, options);
41
+ Sub.super = Super;
42
+ Sub.extend = Super.extend;
39
43
 
40
- Sub.super = Super;
41
- Sub.extend = Super.extend;
44
+ return Sub;
45
+ };
42
46
 
43
- return Sub;
44
- };
47
+ let container;
48
+ Object.defineProperty(App, 'container', {
49
+ get() {
50
+ return container || document.body;
51
+ },
52
+
53
+ set(element) {
54
+ container = $(element);
55
+ },
56
+ });
57
+ }
45
58
 
46
59
  export function update(element, e) {
47
60
  element = element ? toNode(element) : document.body;
@@ -53,22 +66,9 @@ export function update(element, e) {
53
66
  apply(element, (element) => updateElement(element, e));
54
67
  }
55
68
 
56
- App.update = update;
57
-
58
69
  function updateElement(element, e) {
59
70
  const components = getComponents(element);
60
71
  for (const name in components) {
61
72
  callUpdate(components[name], e);
62
73
  }
63
74
  }
64
-
65
- let container;
66
- Object.defineProperty(App, 'container', {
67
- get() {
68
- return container || document.body;
69
- },
70
-
71
- set(element) {
72
- container = $(element);
73
- },
74
- });
@@ -1,8 +1,8 @@
1
1
  import App from './app';
2
- import './component';
3
- import './global';
4
- import './hooks';
5
- import './state';
6
- import './instance';
2
+ import globalApi from './global';
3
+ import instanceApi from './instance';
4
+
5
+ globalApi(App);
6
+ instanceApi(App);
7
7
 
8
8
  export default App;
@@ -1,63 +1,64 @@
1
- import App from './app';
2
1
  import { update } from './global';
3
2
  import { callUpdate } from './update';
4
- import { $, remove, within } from '../util';
3
+ import { $, remove, within } from 'uikit-util';
5
4
  import { callConnected, callDisconnected, callHook } from './hooks';
6
5
  import { attachToElement, createComponent, detachFromElement, getComponent } from './component';
7
6
 
8
- App.prototype.$mount = function (el) {
9
- const instance = this;
10
- attachToElement(el, instance);
7
+ export default function (App) {
8
+ App.prototype.$mount = function (el) {
9
+ const instance = this;
10
+ attachToElement(el, instance);
11
11
 
12
- instance.$options.el = el;
12
+ instance.$options.el = el;
13
13
 
14
- if (within(el, document)) {
15
- callConnected(instance);
16
- }
17
- };
14
+ if (within(el, document)) {
15
+ callConnected(instance);
16
+ }
17
+ };
18
18
 
19
- App.prototype.$destroy = function (removeEl = false) {
20
- const instance = this;
21
- const { el } = instance.$options;
19
+ App.prototype.$destroy = function (removeEl = false) {
20
+ const instance = this;
21
+ const { el } = instance.$options;
22
22
 
23
- if (el) {
24
- callDisconnected(instance);
25
- }
23
+ if (el) {
24
+ callDisconnected(instance);
25
+ }
26
26
 
27
- callHook(instance, 'destroy');
27
+ callHook(instance, 'destroy');
28
28
 
29
- detachFromElement(el, instance);
29
+ detachFromElement(el, instance);
30
30
 
31
- if (removeEl) {
32
- remove(instance.$el);
33
- }
34
- };
31
+ if (removeEl) {
32
+ remove(instance.$el);
33
+ }
34
+ };
35
35
 
36
- App.prototype.$create = createComponent;
37
- App.prototype.$emit = function (e) {
38
- callUpdate(this, e);
39
- };
36
+ App.prototype.$create = createComponent;
37
+ App.prototype.$emit = function (e) {
38
+ callUpdate(this, e);
39
+ };
40
40
 
41
- App.prototype.$update = function (element = this.$el, e) {
42
- update(element, e);
43
- };
41
+ App.prototype.$update = function (element = this.$el, e) {
42
+ update(element, e);
43
+ };
44
44
 
45
- App.prototype.$reset = function () {
46
- callDisconnected(this);
47
- callConnected(this);
48
- };
45
+ App.prototype.$reset = function () {
46
+ callDisconnected(this);
47
+ callConnected(this);
48
+ };
49
49
 
50
- App.prototype.$getComponent = getComponent;
50
+ App.prototype.$getComponent = getComponent;
51
51
 
52
- Object.defineProperties(App.prototype, {
53
- $el: {
54
- get() {
55
- return this.$options.el;
52
+ Object.defineProperties(App.prototype, {
53
+ $el: {
54
+ get() {
55
+ return this.$options.el;
56
+ },
56
57
  },
57
- },
58
58
 
59
- $container: Object.getOwnPropertyDescriptor(App, 'container'),
60
- });
59
+ $container: Object.getOwnPropertyDescriptor(App, 'container'),
60
+ });
61
+ }
61
62
 
62
63
  export function generateId(instance, el = instance.$el, postfix = '') {
63
64
  if (el.id) {
@@ -16,7 +16,7 @@ import {
16
16
  removeAttr,
17
17
  toNodes,
18
18
  trigger,
19
- } from '../util';
19
+ } from 'uikit-util';
20
20
 
21
21
  export function resize(options) {
22
22
  return observe(observeResize, options, 'resize');
@@ -1,4 +1,12 @@
1
- import { hasOwn, includes, isArray, isEqual, isFunction, isPlainObject, isString } from '../util';
1
+ import {
2
+ hasOwn,
3
+ includes,
4
+ isArray,
5
+ isEqual,
6
+ isFunction,
7
+ isPlainObject,
8
+ isString,
9
+ } from 'uikit-util';
2
10
 
3
11
  export function initObservers(instance) {
4
12
  instance._observers = [];
@@ -10,7 +10,7 @@ import {
10
10
  startsWith,
11
11
  toBoolean,
12
12
  toNumber,
13
- } from '../util';
13
+ } from 'uikit-util';
14
14
 
15
15
  const strats = {};
16
16
 
@@ -8,7 +8,7 @@ import {
8
8
  isArray,
9
9
  isUndefined,
10
10
  startsWith,
11
- } from '../util';
11
+ } from 'uikit-util';
12
12
 
13
13
  export function initProps(instance) {
14
14
  const props = getProps(instance.$options);
@@ -1,7 +1,7 @@
1
1
  import { callHook } from './hooks';
2
2
  import { initComputed } from './computed';
3
3
  import { coerce, mergeOptions } from './options';
4
- import { assign, isArray, isPlainObject, isUndefined } from '../util';
4
+ import { assign, isArray, isPlainObject, isUndefined } from 'uikit-util';
5
5
 
6
6
  let uid = 0;
7
7
 
@@ -1,6 +1,6 @@
1
1
  import { registerObserver } from './observer';
2
2
  import { callWatches } from './watch';
3
- import { assign, fastdom, isFunction, isPlainObject } from '../util';
3
+ import { assign, fastdom, isFunction, isPlainObject } from 'uikit-util';
4
4
 
5
5
  export function callUpdate(instance, e = 'update') {
6
6
  if (!instance._connected) {
@@ -1,4 +1,4 @@
1
- import { fastdom, hasOwn, isEqual } from '../util';
1
+ import { fastdom, hasOwn, isEqual } from 'uikit-util';
2
2
  import { callObserverUpdates } from './observer';
3
3
 
4
4
  export function callWatches(instance) {
@@ -26,7 +26,7 @@
26
26
  @dropdown-large-padding: 40px;
27
27
 
28
28
  @dropdown-dropbar-padding-top: @dropdown-padding;
29
- @dropdown-dropbar-padding-bottom: @dropdown-dropbar-padding-top;
29
+ @dropdown-dropbar-padding-bottom: @dropdown-padding;
30
30
  @dropdown-dropbar-viewport-margin: 15px;
31
31
  @dropdown-dropbar-viewport-margin-s: @global-gutter;
32
32
  @dropdown-dropbar-viewport-margin-m: @global-medium-gutter;
@@ -10,6 +10,8 @@
10
10
  @dropdown-padding: 25px;
11
11
  @dropdown-background: @global-background;
12
12
 
13
+ @dropdown-dropbar-padding-top: 5px;
14
+
13
15
  @dropdown-nav-subtitle-font-size: 12px;
14
16
 
15
17
  //
@@ -26,7 +26,7 @@ $dropdown-color-mode: none !default;
26
26
  $dropdown-large-padding: 40px !default;
27
27
 
28
28
  $dropdown-dropbar-padding-top: $dropdown-padding !default;
29
- $dropdown-dropbar-padding-bottom: $dropdown-dropbar-padding-top !default;
29
+ $dropdown-dropbar-padding-bottom: $dropdown-padding !default;
30
30
  $dropdown-dropbar-viewport-margin: 15px !default;
31
31
  $dropdown-dropbar-viewport-margin-s: $global-gutter !default;
32
32
  $dropdown-dropbar-viewport-margin-m: $global-medium-gutter !default;
@@ -10,6 +10,8 @@
10
10
  $dropdown-padding: 25px !default;
11
11
  $dropdown-background: $global-background !default;
12
12
 
13
+ $dropdown-dropbar-padding-top: 5px !default;
14
+
13
15
  $dropdown-nav-subtitle-font-size: 12px !default;
14
16
 
15
17
  //
@@ -389,8 +389,8 @@ $dropdown-background: $global-background !default;
389
389
  $dropdown-color: $global-color !default;
390
390
  $dropdown-color-mode: none !default;
391
391
  $dropdown-large-padding: 40px !default;
392
- $dropdown-dropbar-padding-top: $dropdown-padding !default;
393
- $dropdown-dropbar-padding-bottom: $dropdown-dropbar-padding-top !default;
392
+ $dropdown-dropbar-padding-top: 5px !default;
393
+ $dropdown-dropbar-padding-bottom: $dropdown-padding !default;
394
394
  $dropdown-dropbar-viewport-margin: 15px !default;
395
395
  $dropdown-dropbar-viewport-margin-s: $global-gutter !default;
396
396
  $dropdown-dropbar-viewport-margin-m: $global-medium-gutter !default;
@@ -389,7 +389,7 @@ $dropdown-color: $global-color !default;
389
389
  $dropdown-color-mode: none !default;
390
390
  $dropdown-large-padding: 40px !default;
391
391
  $dropdown-dropbar-padding-top: $dropdown-padding !default;
392
- $dropdown-dropbar-padding-bottom: $dropdown-dropbar-padding-top !default;
392
+ $dropdown-dropbar-padding-bottom: $dropdown-padding !default;
393
393
  $dropdown-dropbar-viewport-margin: 15px !default;
394
394
  $dropdown-dropbar-viewport-margin-s: $global-gutter !default;
395
395
  $dropdown-dropbar-viewport-margin-m: $global-medium-gutter !default;