lizaui 9.0.44 → 9.0.46
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/autocomplete/index.cjs.js +2 -2
- package/dist/autocomplete/index.cjs.js.map +1 -1
- package/dist/autocomplete/index.es.js +2 -2
- package/dist/autocomplete/index.es.js.map +1 -1
- package/dist/button/index.cjs.js +1 -1
- package/dist/button/index.es.js +1 -1
- package/dist/chip/index.cjs.js +3 -3
- package/dist/chip/index.cjs.js.map +1 -1
- package/dist/chip/index.es.js +3 -3
- package/dist/chip/index.es.js.map +1 -1
- package/dist/chunks/{button-Dzqe0Scp.js → button-CBPwzm2F.js} +4 -4
- package/dist/chunks/{button-Dzqe0Scp.js.map → button-CBPwzm2F.js.map} +1 -1
- package/dist/chunks/{button-CsVgdTK2.js → button-c2tqObmX.js} +4 -4
- package/dist/chunks/{button-CsVgdTK2.js.map → button-c2tqObmX.js.map} +1 -1
- package/dist/chunks/createLucideIcon-Bxsl-Fn_.js.map +1 -1
- package/dist/chunks/createLucideIcon-C5oU6LEj.js.map +1 -1
- package/dist/chunks/index--Lp5VMoT.js.map +1 -1
- package/dist/chunks/index-xVewW5kR.js.map +1 -1
- package/dist/chunks/{scroll-area-A7wLpIdN.js → scroll-area-C-TOj3zQ.js} +2 -2
- package/dist/chunks/{scroll-area-A7wLpIdN.js.map → scroll-area-C-TOj3zQ.js.map} +1 -1
- package/dist/chunks/{scroll-area-BU8EXoIt.js → scroll-area-CLk54_91.js} +2 -2
- package/dist/chunks/{scroll-area-BU8EXoIt.js.map → scroll-area-CLk54_91.js.map} +1 -1
- package/dist/chunks/{select-D12sBtA8.js → select-B6phC9mi.js} +2 -2
- package/dist/chunks/{select-D12sBtA8.js.map → select-B6phC9mi.js.map} +1 -1
- package/dist/chunks/{select-dQq0NQ64.js → select-DVjRpYfX.js} +2 -2
- package/dist/chunks/{select-dQq0NQ64.js.map → select-DVjRpYfX.js.map} +1 -1
- package/dist/chunks/{textarea-CE8ScH_j.js → textarea-BKtuQhzG.js} +2 -2
- package/dist/chunks/{textarea-CE8ScH_j.js.map → textarea-BKtuQhzG.js.map} +1 -1
- package/dist/chunks/{textarea-DatQsnr3.js → textarea-C3AwF8SJ.js} +2 -2
- package/dist/chunks/{textarea-DatQsnr3.js.map → textarea-C3AwF8SJ.js.map} +1 -1
- package/dist/chunks/{tooltip-BVHPsFJx.js → tooltip-BVafMD5T.js} +37 -17
- package/dist/chunks/tooltip-BVafMD5T.js.map +1 -0
- package/dist/chunks/{tooltip-BT4TzSeu.js → tooltip-hhxclHkr.js} +37 -17
- package/dist/chunks/tooltip-hhxclHkr.js.map +1 -0
- package/dist/form-tabs/index.cjs.js.map +1 -1
- package/dist/form-tabs/index.es.js.map +1 -1
- package/dist/modal/index.cjs.js +1 -1
- package/dist/modal/index.es.js +1 -1
- package/dist/pagination/index.cjs.js +3 -3
- package/dist/pagination/index.es.js +3 -3
- package/dist/phone-input/index.cjs.js +3 -3
- package/dist/phone-input/index.es.js +3 -3
- package/dist/table/index.cjs.js +1 -1
- package/dist/table/index.es.js +1 -1
- package/dist/time-input/index.cjs.js +36 -11
- package/dist/time-input/index.cjs.js.map +1 -1
- package/dist/time-input/index.es.js +36 -11
- package/dist/time-input/index.es.js.map +1 -1
- package/dist/tooltip/index.cjs.js +1 -1
- package/dist/tooltip/index.es.js +1 -1
- package/dist/travel-calendar/index.cjs.js +2 -2
- package/dist/travel-calendar/index.es.js +2 -2
- package/dist/ui/index.cjs.js +4 -4
- package/dist/ui/index.cjs.js.map +1 -1
- package/dist/ui/index.es.js +7 -7
- package/dist/ui/index.es.js.map +1 -1
- package/package.json +10 -10
- package/dist/chunks/tooltip-BT4TzSeu.js.map +0 -1
- package/dist/chunks/tooltip-BVHPsFJx.js.map +0 -1
|
@@ -7,9 +7,9 @@ const ReactDOM = require("react-dom");
|
|
|
7
7
|
const clsx = require("clsx");
|
|
8
8
|
const styledComponents_browser_esm = require("../chunks/styled-components.browser.esm-unTTqt86.js");
|
|
9
9
|
const utils = require("../chunks/utils-ij3i9zTT.js");
|
|
10
|
-
require("../chunks/textarea-
|
|
10
|
+
require("../chunks/textarea-C3AwF8SJ.js");
|
|
11
11
|
const labelError = require("../chunks/label-error-CIjSuoR3.js");
|
|
12
|
-
require("../chunks/button-
|
|
12
|
+
require("../chunks/button-c2tqObmX.js");
|
|
13
13
|
function getHours(date) {
|
|
14
14
|
if (date instanceof Date) {
|
|
15
15
|
return date.getHours();
|
|
@@ -168,16 +168,28 @@ function mimicFunction(to, from, { ignoreNonConfigurable = false } = {}) {
|
|
|
168
168
|
changeToString(to, from, name);
|
|
169
169
|
return to;
|
|
170
170
|
}
|
|
171
|
+
const maxTimeoutValue = 2147483647;
|
|
171
172
|
const cacheStore = /* @__PURE__ */ new WeakMap();
|
|
172
173
|
const cacheTimerStore = /* @__PURE__ */ new WeakMap();
|
|
174
|
+
const cacheKeyStore = /* @__PURE__ */ new WeakMap();
|
|
175
|
+
function getValidCacheItem(cache, key) {
|
|
176
|
+
const item = cache.get(key);
|
|
177
|
+
if (!item) {
|
|
178
|
+
return void 0;
|
|
179
|
+
}
|
|
180
|
+
if (item.maxAge <= Date.now()) {
|
|
181
|
+
cache.delete(key);
|
|
182
|
+
return void 0;
|
|
183
|
+
}
|
|
184
|
+
return item;
|
|
185
|
+
}
|
|
173
186
|
function memoize(function_, { cacheKey, cache = /* @__PURE__ */ new Map(), maxAge } = {}) {
|
|
174
187
|
if (maxAge === 0) {
|
|
175
188
|
return function_;
|
|
176
189
|
}
|
|
177
|
-
if (typeof maxAge === "number") {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
throw new TypeError(`The \`maxAge\` option cannot exceed ${maxSetIntervalValue}.`);
|
|
190
|
+
if (typeof maxAge === "number" && Number.isFinite(maxAge)) {
|
|
191
|
+
if (maxAge > maxTimeoutValue) {
|
|
192
|
+
throw new TypeError(`The \`maxAge\` option cannot exceed ${maxTimeoutValue}.`);
|
|
181
193
|
}
|
|
182
194
|
if (maxAge < 0) {
|
|
183
195
|
throw new TypeError("The `maxAge` option should not be a negative number.");
|
|
@@ -185,24 +197,36 @@ function memoize(function_, { cacheKey, cache = /* @__PURE__ */ new Map(), maxAg
|
|
|
185
197
|
}
|
|
186
198
|
const memoized = function(...arguments_) {
|
|
187
199
|
const key = cacheKey ? cacheKey(arguments_) : arguments_[0];
|
|
188
|
-
const cacheItem = cache
|
|
200
|
+
const cacheItem = getValidCacheItem(cache, key);
|
|
189
201
|
if (cacheItem) {
|
|
190
202
|
return cacheItem.data;
|
|
191
203
|
}
|
|
192
204
|
const result = function_.apply(this, arguments_);
|
|
193
205
|
const computedMaxAge = typeof maxAge === "function" ? maxAge(...arguments_) : maxAge;
|
|
206
|
+
if (computedMaxAge !== void 0 && computedMaxAge !== Number.POSITIVE_INFINITY) {
|
|
207
|
+
if (!Number.isFinite(computedMaxAge)) {
|
|
208
|
+
throw new TypeError("The `maxAge` function must return a finite number, `0`, or `Infinity`.");
|
|
209
|
+
}
|
|
210
|
+
if (computedMaxAge <= 0) {
|
|
211
|
+
return result;
|
|
212
|
+
}
|
|
213
|
+
if (computedMaxAge > maxTimeoutValue) {
|
|
214
|
+
throw new TypeError(`The \`maxAge\` function result cannot exceed ${maxTimeoutValue}.`);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
194
217
|
cache.set(key, {
|
|
195
218
|
data: result,
|
|
196
|
-
maxAge: computedMaxAge ? Date.now() + computedMaxAge
|
|
219
|
+
maxAge: computedMaxAge === void 0 || computedMaxAge === Number.POSITIVE_INFINITY ? Number.POSITIVE_INFINITY : Date.now() + computedMaxAge
|
|
197
220
|
});
|
|
198
|
-
if (computedMaxAge
|
|
221
|
+
if (computedMaxAge !== void 0 && computedMaxAge !== Number.POSITIVE_INFINITY) {
|
|
199
222
|
const timer = setTimeout(() => {
|
|
200
223
|
cache.delete(key);
|
|
224
|
+
cacheTimerStore.get(memoized)?.delete(timer);
|
|
201
225
|
}, computedMaxAge);
|
|
202
226
|
timer.unref?.();
|
|
203
|
-
const timers = cacheTimerStore.get(
|
|
227
|
+
const timers = cacheTimerStore.get(memoized) ?? /* @__PURE__ */ new Set();
|
|
204
228
|
timers.add(timer);
|
|
205
|
-
cacheTimerStore.set(
|
|
229
|
+
cacheTimerStore.set(memoized, timers);
|
|
206
230
|
}
|
|
207
231
|
return result;
|
|
208
232
|
};
|
|
@@ -210,6 +234,7 @@ function memoize(function_, { cacheKey, cache = /* @__PURE__ */ new Map(), maxAg
|
|
|
210
234
|
ignoreNonConfigurable: true
|
|
211
235
|
});
|
|
212
236
|
cacheStore.set(memoized, cache);
|
|
237
|
+
cacheKeyStore.set(memoized, cacheKey ?? ((arguments_) => arguments_[0]));
|
|
213
238
|
return memoized;
|
|
214
239
|
}
|
|
215
240
|
function isString(el) {
|