@lukso/web-components 1.93.0 → 1.94.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.
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/lukso-card/index.cjs +1 -3
- package/dist/components/lukso-card/index.d.ts.map +1 -1
- package/dist/components/lukso-card/index.js +1 -3
- package/dist/components/lukso-dropdown/index.cjs +1 -1
- package/dist/components/lukso-dropdown/index.d.ts.map +1 -1
- package/dist/components/lukso-dropdown/index.js +1 -1
- package/dist/components/lukso-search/index.cjs +1 -1
- package/dist/components/lukso-search/index.js +1 -1
- package/dist/components/lukso-select/index.cjs +1 -1
- package/dist/components/lukso-select/index.js +1 -1
- package/dist/{index-6fb7dc60.js → index-68890bd1.js} +23 -11
- package/dist/{index-3e12bd24.cjs → index-fb4ea5c3.cjs} +23 -11
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/tailwind.config.cjs +8 -8
- package/tools/debounceFunction.d.ts +8 -0
- package/tools/debounceFunction.d.ts.map +1 -0
|
@@ -6,7 +6,7 @@ const components_luksoButton_index = require('./lukso-button/index.cjs');
|
|
|
6
6
|
const components_luksoCard_index = require('./lukso-card/index.cjs');
|
|
7
7
|
const components_luksoCheckbox_index = require('./lukso-checkbox/index.cjs');
|
|
8
8
|
const components_luksoColorPicker_index = require('./lukso-color-picker/index.cjs');
|
|
9
|
-
const components_luksoDropdown_index = require('../index-
|
|
9
|
+
const components_luksoDropdown_index = require('../index-fb4ea5c3.cjs');
|
|
10
10
|
const components_luksoDropdownOption_index = require('./lukso-dropdown-option/index.cjs');
|
|
11
11
|
const components_luksoFooter_index = require('./lukso-footer/index.cjs');
|
|
12
12
|
const components_luksoIcon_index = require('./lukso-icon/index.cjs');
|
package/dist/components/index.js
CHANGED
|
@@ -2,7 +2,7 @@ export { LuksoButton } from './lukso-button/index.js';
|
|
|
2
2
|
export { LuksoCard } from './lukso-card/index.js';
|
|
3
3
|
export { LuksoCheckbox } from './lukso-checkbox/index.js';
|
|
4
4
|
export { LuksoColorPicker } from './lukso-color-picker/index.js';
|
|
5
|
-
export { L as LuksoDropdown } from '../index-
|
|
5
|
+
export { L as LuksoDropdown } from '../index-68890bd1.js';
|
|
6
6
|
export { LuksoDropdownOption } from './lukso-dropdown-option/index.js';
|
|
7
7
|
export { LuksoFooter } from './lukso-footer/index.js';
|
|
8
8
|
export { LuksoIcon } from './lukso-icon/index.js';
|
|
@@ -346,9 +346,7 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
346
346
|
<slot name="header"></slot>
|
|
347
347
|
</div>
|
|
348
348
|
</div>
|
|
349
|
-
<div
|
|
350
|
-
class="bg-neutral-100 shadow-neutral-above-shadow-1xl rounded-t-0 rounded-b-[inherit] relative"
|
|
351
|
-
>
|
|
349
|
+
<div class="bg-neutral-100 rounded-t-0 rounded-b-[inherit] relative">
|
|
352
350
|
<slot name="content"></slot>
|
|
353
351
|
</div>
|
|
354
352
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-card/index.ts"],"names":[],"mappings":"AAYA,OAAO,4BAA4B,CAAA;AAGnC,OAAO,0BAA0B,CAAA;AAEjC,MAAM,MAAM,YAAY,GACpB,OAAO,GACP,aAAa,GACb,SAAS,GACT,WAAW,GACX,MAAM,GACN,MAAM,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;AAE1D,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;;AAEtD,qBACa,SAAU,SAAQ,cAA4B;IAEzD,OAAO,EAAE,YAAY,CAAU;IAG/B,aAAa,SAAK;IAGlB,UAAU,SAAK;IAGf,cAAc,SAAK;IAGnB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAY;IAGrC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAY;IAGtC,WAAW,SAAK;IAGhB,WAAW,SAAK;IAGhB,YAAY,EAAE,gBAAgB,CAAW;IAGzC,MAAM,EAAE,WAAW,CAAU;IAG7B,WAAW,UAAQ;IAGnB,UAAU,UAAQ;IAGlB,OAAO,CAAC,WAAW,CAAyB;IAG5C,OAAO,CAAC,SAAS,CAAQ;IAEzB,OAAO,CAAC,kBAAkB;IAI1B,OAAO,CAAC,kBAAkB;IAa1B,OAAO,CAAC,UAAU,CAqChB;IAEF,aAAa;IAsBb,kBAAkB;IA8BlB,eAAe;IAqEf,gBAAgB;IAwEhB,YAAY;IAyCZ,YAAY;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-card/index.ts"],"names":[],"mappings":"AAYA,OAAO,4BAA4B,CAAA;AAGnC,OAAO,0BAA0B,CAAA;AAEjC,MAAM,MAAM,YAAY,GACpB,OAAO,GACP,aAAa,GACb,SAAS,GACT,WAAW,GACX,MAAM,GACN,MAAM,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;AAE1D,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;;AAEtD,qBACa,SAAU,SAAQ,cAA4B;IAEzD,OAAO,EAAE,YAAY,CAAU;IAG/B,aAAa,SAAK;IAGlB,UAAU,SAAK;IAGf,cAAc,SAAK;IAGnB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAY;IAGrC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAY;IAGtC,WAAW,SAAK;IAGhB,WAAW,SAAK;IAGhB,YAAY,EAAE,gBAAgB,CAAW;IAGzC,MAAM,EAAE,WAAW,CAAU;IAG7B,WAAW,UAAQ;IAGnB,UAAU,UAAQ;IAGlB,OAAO,CAAC,WAAW,CAAyB;IAG5C,OAAO,CAAC,SAAS,CAAQ;IAEzB,OAAO,CAAC,kBAAkB;IAI1B,OAAO,CAAC,kBAAkB;IAa1B,OAAO,CAAC,UAAU,CAqChB;IAEF,aAAa;IAsBb,kBAAkB;IA8BlB,eAAe;IAqEf,gBAAgB;IAwEhB,YAAY;IAyCZ,YAAY;IAyCZ,MAAM;CAgBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAA;KACxB;CACF"}
|
|
@@ -342,9 +342,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
342
342
|
<slot name="header"></slot>
|
|
343
343
|
</div>
|
|
344
344
|
</div>
|
|
345
|
-
<div
|
|
346
|
-
class="bg-neutral-100 shadow-neutral-above-shadow-1xl rounded-t-0 rounded-b-[inherit] relative"
|
|
347
|
-
>
|
|
345
|
+
<div class="bg-neutral-100 rounded-t-0 rounded-b-[inherit] relative">
|
|
348
346
|
<slot name="content"></slot>
|
|
349
347
|
</div>
|
|
350
348
|
</div>
|
|
@@ -8,7 +8,7 @@ require('../../index-1d3f4a5a.cjs');
|
|
|
8
8
|
require('../lukso-icon/index.cjs');
|
|
9
9
|
require('../lukso-profile/index.cjs');
|
|
10
10
|
require('../lukso-username/index.cjs');
|
|
11
|
-
const components_luksoDropdown_index = require('../../index-
|
|
11
|
+
const components_luksoDropdown_index = require('../../index-fb4ea5c3.cjs');
|
|
12
12
|
require('../../bundle-mjs-d58a83c6.cjs');
|
|
13
13
|
require('../../style-map-77b74f74.cjs');
|
|
14
14
|
require('../../directive-8278ab14.cjs');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAA;AAKxD,OAAO,yBAAyB,CAAA;AAChC,OAAO,4BAA4B,CAAA;AACnC,OAAO,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAA;AAKxD,OAAO,yBAAyB,CAAA;AAChC,OAAO,4BAA4B,CAAA;AACnC,OAAO,6BAA6B,CAAA;AAKpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C,MAAM,MAAM,gCAAgC,GAAG;IAC7C,MAAM,EAAE,OAAO,CAAA;CAChB,CAAA;;AAED,qBACa,aAAc,SAAQ,kBAA4B;IAE7D,EAAE,SAAK;IAGP,SAAS,SAAK;IAGd,MAAM,UAAQ;IAGd,oBAAoB,UAAQ;IAG5B,OAAO,UAAQ;IAGf,OAAO,UAAQ;IAGf,WAAW,UAAQ;IAGnB,IAAI,EAAE,SAAS,CAAW;;IAU1B,OAAO,CAAC,MAAM,CA8BZ;IAEF,iBAAiB;IAKjB,oBAAoB;IAKd,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IAiBxD,OAAO,CAAC,WAAW,CAajB;IAEF,MAAM;CAgBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,aAAa,CAAA;KAChC;CACF"}
|
|
@@ -4,7 +4,7 @@ import '../../index-ca8e900d.js';
|
|
|
4
4
|
import '../lukso-icon/index.js';
|
|
5
5
|
import '../lukso-profile/index.js';
|
|
6
6
|
import '../lukso-username/index.js';
|
|
7
|
-
export { L as LuksoDropdown } from '../../index-
|
|
7
|
+
export { L as LuksoDropdown } from '../../index-68890bd1.js';
|
|
8
8
|
import '../../bundle-mjs-fbc6e2a8.js';
|
|
9
9
|
import '../../style-map-d5d85b80.js';
|
|
10
10
|
import '../../directive-2bb7789e.js';
|
|
@@ -10,7 +10,7 @@ require('../lukso-icon/index.cjs');
|
|
|
10
10
|
require('../lukso-profile/index.cjs');
|
|
11
11
|
require('../lukso-username/index.cjs');
|
|
12
12
|
require('../lukso-input/index.cjs');
|
|
13
|
-
require('../../index-
|
|
13
|
+
require('../../index-fb4ea5c3.cjs');
|
|
14
14
|
require('../lukso-dropdown-option/index.cjs');
|
|
15
15
|
require('../../bundle-mjs-d58a83c6.cjs');
|
|
16
16
|
require('../../style-map-77b74f74.cjs');
|
|
@@ -6,7 +6,7 @@ import '../lukso-icon/index.js';
|
|
|
6
6
|
import '../lukso-profile/index.js';
|
|
7
7
|
import '../lukso-username/index.js';
|
|
8
8
|
import '../lukso-input/index.js';
|
|
9
|
-
import '../../index-
|
|
9
|
+
import '../../index-68890bd1.js';
|
|
10
10
|
import '../lukso-dropdown-option/index.js';
|
|
11
11
|
import '../../bundle-mjs-fbc6e2a8.js';
|
|
12
12
|
import '../../style-map-d5d85b80.js';
|
|
@@ -9,7 +9,7 @@ const index = require('../../index-1d3f4a5a.cjs');
|
|
|
9
9
|
require('../lukso-icon/index.cjs');
|
|
10
10
|
require('../lukso-profile/index.cjs');
|
|
11
11
|
require('../lukso-username/index.cjs');
|
|
12
|
-
const components_luksoDropdown_index = require('../../index-
|
|
12
|
+
const components_luksoDropdown_index = require('../../index-fb4ea5c3.cjs');
|
|
13
13
|
require('../lukso-dropdown-option/index.cjs');
|
|
14
14
|
require('../../bundle-mjs-d58a83c6.cjs');
|
|
15
15
|
require('../../style-map-77b74f74.cjs');
|
|
@@ -5,7 +5,7 @@ import { c as ce } from '../../index-ca8e900d.js';
|
|
|
5
5
|
import '../lukso-icon/index.js';
|
|
6
6
|
import '../lukso-profile/index.js';
|
|
7
7
|
import '../lukso-username/index.js';
|
|
8
|
-
import { u as uniqId } from '../../index-
|
|
8
|
+
import { u as uniqId } from '../../index-68890bd1.js';
|
|
9
9
|
import '../lukso-dropdown-option/index.js';
|
|
10
10
|
import '../../bundle-mjs-fbc6e2a8.js';
|
|
11
11
|
import '../../style-map-d5d85b80.js';
|
|
@@ -12,6 +12,16 @@ const uniqId = () => {
|
|
|
12
12
|
return `${s4() + s4()}-${s4()}-${s4()}-${s4()}-${s4()}${s4()}${s4()}`;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
+
const debounceFunction = (func, timeout = 100) => {
|
|
16
|
+
let timer;
|
|
17
|
+
return (...args) => {
|
|
18
|
+
clearTimeout(timer);
|
|
19
|
+
timer = setTimeout(() => {
|
|
20
|
+
typeof func === "function" && func.apply(void 0, args);
|
|
21
|
+
}, timeout);
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
|
|
15
25
|
var __defProp = Object.defineProperty;
|
|
16
26
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
17
27
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -65,6 +75,16 @@ let LuksoDropdown = class extends TailwindStyledElement(style) {
|
|
|
65
75
|
}
|
|
66
76
|
]
|
|
67
77
|
});
|
|
78
|
+
this.handleClick = debounceFunction((event) => {
|
|
79
|
+
const element = event.target;
|
|
80
|
+
if (element.id === this.triggerId || this.id === element.id) {
|
|
81
|
+
this.isOpen = !this.isOpen;
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
if (!this.isOpenOnOutsideClick) {
|
|
85
|
+
this.isOpen = false;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
68
88
|
if (!this.id) {
|
|
69
89
|
this.id = uniqId();
|
|
70
90
|
}
|
|
@@ -93,16 +113,6 @@ let LuksoDropdown = class extends TailwindStyledElement(style) {
|
|
|
93
113
|
this.dispatchEvent(changeEvent);
|
|
94
114
|
}
|
|
95
115
|
}
|
|
96
|
-
handleClick(event) {
|
|
97
|
-
const element = event.target;
|
|
98
|
-
if (element.id === this.triggerId || this.id === element.id) {
|
|
99
|
-
this.isOpen = !this.isOpen;
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
if (!this.isOpenOnOutsideClick) {
|
|
103
|
-
this.isOpen = false;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
116
|
render() {
|
|
107
117
|
const styles = this.styles({
|
|
108
118
|
openTop: this.openTop,
|
|
@@ -113,7 +123,9 @@ let LuksoDropdown = class extends TailwindStyledElement(style) {
|
|
|
113
123
|
if (!this.isOpen) {
|
|
114
124
|
return A;
|
|
115
125
|
}
|
|
116
|
-
return x`<div class="${styles}"
|
|
126
|
+
return x`<div class="${styles} animate-fade-in animation-duration-200">
|
|
127
|
+
<slot></slot>
|
|
128
|
+
</div>`;
|
|
117
129
|
}
|
|
118
130
|
};
|
|
119
131
|
__decorateClass([
|
|
@@ -14,6 +14,16 @@ const uniqId = () => {
|
|
|
14
14
|
return `${s4() + s4()}-${s4()}-${s4()}-${s4()}-${s4()}${s4()}${s4()}`;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
+
const debounceFunction = (func, timeout = 100) => {
|
|
18
|
+
let timer;
|
|
19
|
+
return (...args) => {
|
|
20
|
+
clearTimeout(timer);
|
|
21
|
+
timer = setTimeout(() => {
|
|
22
|
+
typeof func === "function" && func.apply(void 0, args);
|
|
23
|
+
}, timeout);
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
|
|
17
27
|
var __defProp = Object.defineProperty;
|
|
18
28
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
19
29
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -67,6 +77,16 @@ exports.LuksoDropdown = class LuksoDropdown extends shared_tailwindElement_index
|
|
|
67
77
|
}
|
|
68
78
|
]
|
|
69
79
|
});
|
|
80
|
+
this.handleClick = debounceFunction((event) => {
|
|
81
|
+
const element = event.target;
|
|
82
|
+
if (element.id === this.triggerId || this.id === element.id) {
|
|
83
|
+
this.isOpen = !this.isOpen;
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
if (!this.isOpenOnOutsideClick) {
|
|
87
|
+
this.isOpen = false;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
70
90
|
if (!this.id) {
|
|
71
91
|
this.id = uniqId();
|
|
72
92
|
}
|
|
@@ -95,16 +115,6 @@ exports.LuksoDropdown = class LuksoDropdown extends shared_tailwindElement_index
|
|
|
95
115
|
this.dispatchEvent(changeEvent);
|
|
96
116
|
}
|
|
97
117
|
}
|
|
98
|
-
handleClick(event) {
|
|
99
|
-
const element = event.target;
|
|
100
|
-
if (element.id === this.triggerId || this.id === element.id) {
|
|
101
|
-
this.isOpen = !this.isOpen;
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
if (!this.isOpenOnOutsideClick) {
|
|
105
|
-
this.isOpen = false;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
118
|
render() {
|
|
109
119
|
const styles = this.styles({
|
|
110
120
|
openTop: this.openTop,
|
|
@@ -115,7 +125,9 @@ exports.LuksoDropdown = class LuksoDropdown extends shared_tailwindElement_index
|
|
|
115
125
|
if (!this.isOpen) {
|
|
116
126
|
return shared_tailwindElement_index.A;
|
|
117
127
|
}
|
|
118
|
-
return shared_tailwindElement_index.x`<div class="${styles}"
|
|
128
|
+
return shared_tailwindElement_index.x`<div class="${styles} animate-fade-in animation-duration-200">
|
|
129
|
+
<slot></slot>
|
|
130
|
+
</div>`;
|
|
119
131
|
}
|
|
120
132
|
};
|
|
121
133
|
__decorateClass([
|
package/dist/index.cjs
CHANGED
|
@@ -6,7 +6,7 @@ const components_luksoButton_index = require('./components/lukso-button/index.cj
|
|
|
6
6
|
const components_luksoCard_index = require('./components/lukso-card/index.cjs');
|
|
7
7
|
const components_luksoCheckbox_index = require('./components/lukso-checkbox/index.cjs');
|
|
8
8
|
const components_luksoColorPicker_index = require('./components/lukso-color-picker/index.cjs');
|
|
9
|
-
const components_luksoDropdown_index = require('./index-
|
|
9
|
+
const components_luksoDropdown_index = require('./index-fb4ea5c3.cjs');
|
|
10
10
|
const components_luksoDropdownOption_index = require('./components/lukso-dropdown-option/index.cjs');
|
|
11
11
|
const components_luksoFooter_index = require('./components/lukso-footer/index.cjs');
|
|
12
12
|
const components_luksoIcon_index = require('./components/lukso-icon/index.cjs');
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ export { LuksoButton } from './components/lukso-button/index.js';
|
|
|
2
2
|
export { LuksoCard } from './components/lukso-card/index.js';
|
|
3
3
|
export { LuksoCheckbox } from './components/lukso-checkbox/index.js';
|
|
4
4
|
export { LuksoColorPicker } from './components/lukso-color-picker/index.js';
|
|
5
|
-
export { L as LuksoDropdown } from './index-
|
|
5
|
+
export { L as LuksoDropdown } from './index-68890bd1.js';
|
|
6
6
|
export { LuksoDropdownOption } from './components/lukso-dropdown-option/index.js';
|
|
7
7
|
export { LuksoFooter } from './components/lukso-footer/index.js';
|
|
8
8
|
export { LuksoIcon } from './components/lukso-icon/index.js';
|
package/package.json
CHANGED
package/tailwind.config.cjs
CHANGED
|
@@ -5,9 +5,9 @@ const { colorPalette, boxShadows, fontWeights, fontSizes, lineHeights, scales, h
|
|
|
5
5
|
/**
|
|
6
6
|
* Add animation delay utilities. Example: .animation-delay-1000
|
|
7
7
|
*/
|
|
8
|
-
const animationDelayPlugin = plugin(
|
|
8
|
+
const animationDelayPlugin = plugin(({ addUtilities, theme, e }) => {
|
|
9
9
|
const values = theme('animationDelay')
|
|
10
|
-
|
|
10
|
+
const utilities = Object.entries(values).map(([key, value]) => {
|
|
11
11
|
return {
|
|
12
12
|
[`.${e(`animation-delay-${key}`)}`]: { animationDelay: `${value}` },
|
|
13
13
|
}
|
|
@@ -18,9 +18,9 @@ const animationDelayPlugin = plugin(function ({ addUtilities, theme, e }) {
|
|
|
18
18
|
/**
|
|
19
19
|
* Add animation iteration utilities. Example: .animation-iteration-infinite
|
|
20
20
|
*/
|
|
21
|
-
const animationIterationPlugin = plugin(
|
|
21
|
+
const animationIterationPlugin = plugin(({ addUtilities, theme, e }) => {
|
|
22
22
|
const values = theme('animationIteration')
|
|
23
|
-
|
|
23
|
+
const utilities = Object.entries(values).map(([key, value]) => {
|
|
24
24
|
return {
|
|
25
25
|
[`.${e(`animation-iteration-${key}`)}`]: {
|
|
26
26
|
animationIterationCount: `${value}`,
|
|
@@ -33,9 +33,9 @@ const animationIterationPlugin = plugin(function ({ addUtilities, theme, e }) {
|
|
|
33
33
|
/**
|
|
34
34
|
* Add animation duration utilities. Example: .animation-duration-1000
|
|
35
35
|
*/
|
|
36
|
-
const animationDuration = plugin(
|
|
36
|
+
const animationDuration = plugin(({ addUtilities, theme, e }) => {
|
|
37
37
|
const values = theme('animationDuration')
|
|
38
|
-
|
|
38
|
+
const utilities = Object.entries(values).map(([key, value]) => {
|
|
39
39
|
return {
|
|
40
40
|
[`.${e(`animation-duration-${key}`)}`]: {
|
|
41
41
|
animationDuration: `${value}`,
|
|
@@ -48,9 +48,9 @@ const animationDuration = plugin(function ({ addUtilities, theme, e }) {
|
|
|
48
48
|
/**
|
|
49
49
|
* Add animation fill mode utilities. Example: .animation-fill-forwards
|
|
50
50
|
*/
|
|
51
|
-
const animationFill = plugin(
|
|
51
|
+
const animationFill = plugin(({ addUtilities, theme, e }) => {
|
|
52
52
|
const values = theme('animationFill')
|
|
53
|
-
|
|
53
|
+
const utilities = Object.entries(values).map(([key, value]) => {
|
|
54
54
|
return {
|
|
55
55
|
[`.${e(`animation-fill-${key}`)}`]: {
|
|
56
56
|
animationFillMode: `${value}`,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Debounce function execution to prevent multiple calls in a short period of time.
|
|
3
|
+
*
|
|
4
|
+
* @param func
|
|
5
|
+
* @param timeout
|
|
6
|
+
*/
|
|
7
|
+
export declare const debounceFunction: (func: unknown, timeout?: number) => (...args: any[]) => void;
|
|
8
|
+
//# sourceMappingURL=debounceFunction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debounceFunction.d.ts","sourceRoot":"","sources":["../../src/shared/tools/debounceFunction.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,SAAU,OAAO,+CAU7C,CAAA"}
|