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
|
@@ -5,9 +5,9 @@ import { createPortal } from "react-dom";
|
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import { m as makeEventProps, F as Fit, d as dt } from "../chunks/styled-components.browser.esm-BkLVnEq9.js";
|
|
7
7
|
import { c as cn } from "../chunks/utils-H80jjgLf.js";
|
|
8
|
-
import "../chunks/textarea-
|
|
8
|
+
import "../chunks/textarea-BKtuQhzG.js";
|
|
9
9
|
import { L as LabelError } from "../chunks/label-error-1e6fNdg-.js";
|
|
10
|
-
import "../chunks/button-
|
|
10
|
+
import "../chunks/button-CBPwzm2F.js";
|
|
11
11
|
function getHours(date) {
|
|
12
12
|
if (date instanceof Date) {
|
|
13
13
|
return date.getHours();
|
|
@@ -166,16 +166,28 @@ function mimicFunction(to, from, { ignoreNonConfigurable = false } = {}) {
|
|
|
166
166
|
changeToString(to, from, name);
|
|
167
167
|
return to;
|
|
168
168
|
}
|
|
169
|
+
const maxTimeoutValue = 2147483647;
|
|
169
170
|
const cacheStore = /* @__PURE__ */ new WeakMap();
|
|
170
171
|
const cacheTimerStore = /* @__PURE__ */ new WeakMap();
|
|
172
|
+
const cacheKeyStore = /* @__PURE__ */ new WeakMap();
|
|
173
|
+
function getValidCacheItem(cache, key) {
|
|
174
|
+
const item = cache.get(key);
|
|
175
|
+
if (!item) {
|
|
176
|
+
return void 0;
|
|
177
|
+
}
|
|
178
|
+
if (item.maxAge <= Date.now()) {
|
|
179
|
+
cache.delete(key);
|
|
180
|
+
return void 0;
|
|
181
|
+
}
|
|
182
|
+
return item;
|
|
183
|
+
}
|
|
171
184
|
function memoize(function_, { cacheKey, cache = /* @__PURE__ */ new Map(), maxAge } = {}) {
|
|
172
185
|
if (maxAge === 0) {
|
|
173
186
|
return function_;
|
|
174
187
|
}
|
|
175
|
-
if (typeof maxAge === "number") {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
throw new TypeError(`The \`maxAge\` option cannot exceed ${maxSetIntervalValue}.`);
|
|
188
|
+
if (typeof maxAge === "number" && Number.isFinite(maxAge)) {
|
|
189
|
+
if (maxAge > maxTimeoutValue) {
|
|
190
|
+
throw new TypeError(`The \`maxAge\` option cannot exceed ${maxTimeoutValue}.`);
|
|
179
191
|
}
|
|
180
192
|
if (maxAge < 0) {
|
|
181
193
|
throw new TypeError("The `maxAge` option should not be a negative number.");
|
|
@@ -183,24 +195,36 @@ function memoize(function_, { cacheKey, cache = /* @__PURE__ */ new Map(), maxAg
|
|
|
183
195
|
}
|
|
184
196
|
const memoized = function(...arguments_) {
|
|
185
197
|
const key = cacheKey ? cacheKey(arguments_) : arguments_[0];
|
|
186
|
-
const cacheItem = cache
|
|
198
|
+
const cacheItem = getValidCacheItem(cache, key);
|
|
187
199
|
if (cacheItem) {
|
|
188
200
|
return cacheItem.data;
|
|
189
201
|
}
|
|
190
202
|
const result = function_.apply(this, arguments_);
|
|
191
203
|
const computedMaxAge = typeof maxAge === "function" ? maxAge(...arguments_) : maxAge;
|
|
204
|
+
if (computedMaxAge !== void 0 && computedMaxAge !== Number.POSITIVE_INFINITY) {
|
|
205
|
+
if (!Number.isFinite(computedMaxAge)) {
|
|
206
|
+
throw new TypeError("The `maxAge` function must return a finite number, `0`, or `Infinity`.");
|
|
207
|
+
}
|
|
208
|
+
if (computedMaxAge <= 0) {
|
|
209
|
+
return result;
|
|
210
|
+
}
|
|
211
|
+
if (computedMaxAge > maxTimeoutValue) {
|
|
212
|
+
throw new TypeError(`The \`maxAge\` function result cannot exceed ${maxTimeoutValue}.`);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
192
215
|
cache.set(key, {
|
|
193
216
|
data: result,
|
|
194
|
-
maxAge: computedMaxAge ? Date.now() + computedMaxAge
|
|
217
|
+
maxAge: computedMaxAge === void 0 || computedMaxAge === Number.POSITIVE_INFINITY ? Number.POSITIVE_INFINITY : Date.now() + computedMaxAge
|
|
195
218
|
});
|
|
196
|
-
if (computedMaxAge
|
|
219
|
+
if (computedMaxAge !== void 0 && computedMaxAge !== Number.POSITIVE_INFINITY) {
|
|
197
220
|
const timer = setTimeout(() => {
|
|
198
221
|
cache.delete(key);
|
|
222
|
+
cacheTimerStore.get(memoized)?.delete(timer);
|
|
199
223
|
}, computedMaxAge);
|
|
200
224
|
timer.unref?.();
|
|
201
|
-
const timers = cacheTimerStore.get(
|
|
225
|
+
const timers = cacheTimerStore.get(memoized) ?? /* @__PURE__ */ new Set();
|
|
202
226
|
timers.add(timer);
|
|
203
|
-
cacheTimerStore.set(
|
|
227
|
+
cacheTimerStore.set(memoized, timers);
|
|
204
228
|
}
|
|
205
229
|
return result;
|
|
206
230
|
};
|
|
@@ -208,6 +232,7 @@ function memoize(function_, { cacheKey, cache = /* @__PURE__ */ new Map(), maxAg
|
|
|
208
232
|
ignoreNonConfigurable: true
|
|
209
233
|
});
|
|
210
234
|
cacheStore.set(memoized, cache);
|
|
235
|
+
cacheKeyStore.set(memoized, cacheKey ?? ((arguments_) => arguments_[0]));
|
|
211
236
|
return memoized;
|
|
212
237
|
}
|
|
213
238
|
function isString(el) {
|