@sprawlify/primitives 0.0.97 → 0.0.99
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/{aria-hidden-UJAPt1aA.cjs → aria-hidden-BAGrxNHt.cjs} +1 -1
- package/dist/{aria-hidden-P3kaF8gG.mjs → aria-hidden-BX4SWNE_.mjs} +1 -1
- package/dist/aria-hidden.cjs +2 -2
- package/dist/aria-hidden.mjs +2 -2
- package/dist/{auto-resize-DzPXdyR-.cjs → auto-resize-B1BDDnp1.cjs} +1 -1
- package/dist/{auto-resize-Bjzuo5Lh.mjs → auto-resize-CN2vAzdj.mjs} +1 -1
- package/dist/auto-resize.cjs +2 -2
- package/dist/auto-resize.mjs +2 -2
- package/dist/{collection-DZeodezM.cjs → collection-BBgC8xCb.cjs} +22 -7
- package/dist/{collection-CcsrqDFY.mjs → collection-DgzidRvr.mjs} +22 -7
- package/dist/collection.cjs +1 -1
- package/dist/collection.d.cts +3 -3
- package/dist/collection.d.mts +3 -3
- package/dist/collection.mjs +1 -1
- package/dist/{core-DfVajPnu.mjs → core-BmIEKqtP.mjs} +1 -1
- package/dist/{core-BiGlJ-4W.cjs → core-nBg9RC_y.cjs} +1 -1
- package/dist/core.cjs +2 -2
- package/dist/core.mjs +2 -2
- package/dist/{dismissable-DPXx0m0m.cjs → dismissable-ChwcJMHk.cjs} +2 -2
- package/dist/{dismissable-BAYaXwxZ.mjs → dismissable-DWfZGIA7.mjs} +2 -2
- package/dist/dismissable.cjs +3 -3
- package/dist/dismissable.mjs +3 -3
- package/dist/{dom-query-6Wt-Tikf.cjs → dom-query-Bd63cRVF.cjs} +26 -6
- package/dist/{dom-query-dX8Dakb4.mjs → dom-query-s2ESLR2U.mjs} +15 -7
- package/dist/dom-query.cjs +3 -1
- package/dist/dom-query.d.cts +7 -1
- package/dist/dom-query.d.mts +7 -1
- package/dist/dom-query.mjs +2 -2
- package/dist/{focus-trap-Cd09JaUn.mjs → focus-trap-DzBvBlTH.mjs} +1 -1
- package/dist/{focus-trap-ClCNF7kY.cjs → focus-trap-fucc6OU_.cjs} +1 -1
- package/dist/focus-trap.cjs +2 -2
- package/dist/focus-trap.mjs +2 -2
- package/dist/{focus-visible-CqHoOOjw.cjs → focus-visible-75XTctXf.cjs} +1 -1
- package/dist/{focus-visible-CSuBQ5QZ.mjs → focus-visible-D5qBaAOn.mjs} +1 -1
- package/dist/focus-visible.cjs +2 -2
- package/dist/focus-visible.mjs +2 -2
- package/dist/{i18n-utils-Dm8cGCol.cjs → i18n-utils-DB-lUfrr.cjs} +58 -1
- package/dist/{i18n-utils-DHGN_KCY.mjs → i18n-utils-oWZyUib_.mjs} +53 -2
- package/dist/i18n-utils.cjs +3 -2
- package/dist/i18n-utils.d.cts +14 -1
- package/dist/i18n-utils.d.mts +14 -1
- package/dist/i18n-utils.mjs +3 -3
- package/dist/{interact-outside-C-8lOhpV.mjs → interact-outside-2qkUnl4N.mjs} +1 -1
- package/dist/{interact-outside-DRaFGdMg.cjs → interact-outside-Cx4J0EBf.cjs} +1 -1
- package/dist/interact-outside.cjs +2 -2
- package/dist/interact-outside.mjs +2 -2
- package/dist/{list-collection-B_8BN0XB.d.cts → list-collection-Cjgbx_9l.d.cts} +1 -1
- package/dist/{list-collection-DkRA5LOq.d.mts → list-collection-IF510iNl.d.mts} +1 -1
- package/dist/machines/accordion/index.cjs +2 -2
- package/dist/machines/accordion/index.mjs +2 -2
- package/dist/machines/angle-slider/index.cjs +2 -2
- package/dist/machines/angle-slider/index.d.cts +1 -1
- package/dist/machines/angle-slider/index.d.mts +1 -1
- package/dist/machines/angle-slider/index.mjs +2 -2
- package/dist/machines/aspect-ratio/index.cjs +2 -2
- package/dist/machines/aspect-ratio/index.mjs +2 -2
- package/dist/machines/async-list/index.cjs +2 -2
- package/dist/machines/async-list/index.mjs +2 -2
- package/dist/machines/avatar/index.cjs +2 -2
- package/dist/machines/avatar/index.mjs +2 -2
- package/dist/machines/bottom-sheet/index.cjs +7 -7
- package/dist/machines/bottom-sheet/index.d.cts +1 -1
- package/dist/machines/bottom-sheet/index.d.mts +1 -1
- package/dist/machines/bottom-sheet/index.mjs +7 -7
- package/dist/machines/carousel/index.cjs +3 -3
- package/dist/machines/carousel/index.d.cts +1 -1
- package/dist/machines/carousel/index.d.mts +1 -1
- package/dist/machines/carousel/index.mjs +3 -3
- package/dist/machines/cascade-select/index.cjs +1367 -0
- package/dist/machines/cascade-select/index.d.cts +164 -0
- package/dist/machines/cascade-select/index.d.mts +164 -0
- package/dist/machines/cascade-select/index.mjs +1360 -0
- package/dist/machines/checkbox/index.cjs +3 -3
- package/dist/machines/checkbox/index.mjs +3 -3
- package/dist/machines/clipboard/index.cjs +2 -2
- package/dist/machines/clipboard/index.d.cts +1 -1
- package/dist/machines/clipboard/index.d.mts +1 -1
- package/dist/machines/clipboard/index.mjs +2 -2
- package/dist/machines/collapsible/index.cjs +2 -2
- package/dist/machines/collapsible/index.d.cts +1 -1
- package/dist/machines/collapsible/index.d.mts +1 -1
- package/dist/machines/collapsible/index.mjs +2 -2
- package/dist/machines/color-picker/index.cjs +5 -5
- package/dist/machines/color-picker/index.d.cts +1 -1
- package/dist/machines/color-picker/index.d.mts +1 -1
- package/dist/machines/color-picker/index.mjs +5 -5
- package/dist/machines/combobox/index.cjs +7 -7
- package/dist/machines/combobox/index.d.cts +2 -2
- package/dist/machines/combobox/index.d.mts +2 -2
- package/dist/machines/combobox/index.mjs +7 -7
- package/dist/machines/date-picker/index.cjs +52 -16
- package/dist/machines/date-picker/index.d.cts +1 -1
- package/dist/machines/date-picker/index.d.mts +1 -1
- package/dist/machines/date-picker/index.mjs +53 -17
- package/dist/machines/dialog/index.cjs +7 -7
- package/dist/machines/dialog/index.d.cts +1 -1
- package/dist/machines/dialog/index.d.mts +1 -1
- package/dist/machines/dialog/index.mjs +7 -7
- package/dist/machines/dropdown-menu/index.cjs +5 -5
- package/dist/machines/dropdown-menu/index.d.cts +1 -1
- package/dist/machines/dropdown-menu/index.d.mts +1 -1
- package/dist/machines/dropdown-menu/index.mjs +5 -5
- package/dist/machines/editable/index.cjs +3 -3
- package/dist/machines/editable/index.d.cts +1 -1
- package/dist/machines/editable/index.d.mts +1 -1
- package/dist/machines/editable/index.mjs +3 -3
- package/dist/machines/file-upload/index.cjs +3 -3
- package/dist/machines/file-upload/index.d.cts +1 -1
- package/dist/machines/file-upload/index.d.mts +1 -1
- package/dist/machines/file-upload/index.mjs +3 -3
- package/dist/machines/floating-panel/index.cjs +2 -2
- package/dist/machines/floating-panel/index.d.cts +1 -1
- package/dist/machines/floating-panel/index.d.mts +1 -1
- package/dist/machines/floating-panel/index.mjs +2 -2
- package/dist/machines/hover-card/index.cjs +5 -5
- package/dist/machines/hover-card/index.d.cts +1 -1
- package/dist/machines/hover-card/index.d.mts +1 -1
- package/dist/machines/hover-card/index.mjs +5 -5
- package/dist/machines/image-cropper/index.cjs +2 -2
- package/dist/machines/image-cropper/index.mjs +2 -2
- package/dist/machines/listbox/index.cjs +4 -4
- package/dist/machines/listbox/index.d.cts +3 -3
- package/dist/machines/listbox/index.d.mts +3 -3
- package/dist/machines/listbox/index.mjs +4 -4
- package/dist/machines/marquee/index.cjs +2 -2
- package/dist/machines/marquee/index.d.cts +2 -2
- package/dist/machines/marquee/index.d.mts +2 -2
- package/dist/machines/marquee/index.mjs +2 -2
- package/dist/machines/navigation-menu/index.cjs +4 -4
- package/dist/machines/navigation-menu/index.d.cts +1 -1
- package/dist/machines/navigation-menu/index.d.mts +1 -1
- package/dist/machines/navigation-menu/index.mjs +4 -4
- package/dist/machines/number-input/index.cjs +2 -2
- package/dist/machines/number-input/index.d.cts +1 -1
- package/dist/machines/number-input/index.d.mts +1 -1
- package/dist/machines/number-input/index.mjs +2 -2
- package/dist/machines/pagination/index.cjs +2 -2
- package/dist/machines/pagination/index.mjs +2 -2
- package/dist/machines/password-input/index.cjs +2 -2
- package/dist/machines/password-input/index.d.cts +1 -1
- package/dist/machines/password-input/index.d.mts +1 -1
- package/dist/machines/password-input/index.mjs +2 -2
- package/dist/machines/pin-input/index.cjs +2 -2
- package/dist/machines/pin-input/index.d.cts +1 -1
- package/dist/machines/pin-input/index.d.mts +1 -1
- package/dist/machines/pin-input/index.mjs +2 -2
- package/dist/machines/popover/index.cjs +8 -8
- package/dist/machines/popover/index.d.cts +1 -1
- package/dist/machines/popover/index.d.mts +1 -1
- package/dist/machines/popover/index.mjs +8 -8
- package/dist/machines/presence/index.cjs +2 -2
- package/dist/machines/presence/index.mjs +2 -2
- package/dist/machines/progress/index.cjs +2 -2
- package/dist/machines/progress/index.d.cts +1 -1
- package/dist/machines/progress/index.d.mts +1 -1
- package/dist/machines/progress/index.mjs +2 -2
- package/dist/machines/qr-code/index.cjs +2 -2
- package/dist/machines/qr-code/index.mjs +2 -2
- package/dist/machines/radio-group/index.cjs +3 -3
- package/dist/machines/radio-group/index.mjs +3 -3
- package/dist/machines/rating-group/index.cjs +2 -2
- package/dist/machines/rating-group/index.mjs +2 -2
- package/dist/machines/scroll-area/index.cjs +2 -2
- package/dist/machines/scroll-area/index.mjs +2 -2
- package/dist/machines/select/index.cjs +23 -9
- package/dist/machines/select/index.d.cts +3 -2
- package/dist/machines/select/index.d.mts +3 -2
- package/dist/machines/select/index.mjs +23 -9
- package/dist/machines/separator/index.cjs +2 -2
- package/dist/machines/separator/index.mjs +2 -2
- package/dist/machines/signature-pad/index.cjs +2 -2
- package/dist/machines/signature-pad/index.mjs +2 -2
- package/dist/machines/slider/index.cjs +2 -2
- package/dist/machines/slider/index.d.cts +1 -1
- package/dist/machines/slider/index.d.mts +1 -1
- package/dist/machines/slider/index.mjs +2 -2
- package/dist/machines/splitter/index.cjs +2 -2
- package/dist/machines/splitter/index.mjs +2 -2
- package/dist/machines/steps/index.cjs +2 -2
- package/dist/machines/steps/index.d.cts +1 -1
- package/dist/machines/steps/index.d.mts +1 -1
- package/dist/machines/steps/index.mjs +2 -2
- package/dist/machines/switch/index.cjs +3 -3
- package/dist/machines/switch/index.mjs +3 -3
- package/dist/machines/tabs/index.cjs +2 -2
- package/dist/machines/tabs/index.d.cts +1 -1
- package/dist/machines/tabs/index.d.mts +1 -1
- package/dist/machines/tabs/index.mjs +2 -2
- package/dist/machines/tags-input/index.cjs +4 -4
- package/dist/machines/tags-input/index.d.cts +1 -1
- package/dist/machines/tags-input/index.d.mts +1 -1
- package/dist/machines/tags-input/index.mjs +4 -4
- package/dist/machines/timer/index.cjs +2 -2
- package/dist/machines/timer/index.d.cts +1 -1
- package/dist/machines/timer/index.d.mts +1 -1
- package/dist/machines/timer/index.mjs +2 -2
- package/dist/machines/toast/index.cjs +4 -4
- package/dist/machines/toast/index.d.cts +1 -1
- package/dist/machines/toast/index.d.mts +1 -1
- package/dist/machines/toast/index.mjs +4 -4
- package/dist/machines/toggle/index.cjs +2 -2
- package/dist/machines/toggle/index.mjs +2 -2
- package/dist/machines/toggle-group/index.cjs +2 -2
- package/dist/machines/toggle-group/index.mjs +2 -2
- package/dist/machines/tooltip/index.cjs +4 -4
- package/dist/machines/tooltip/index.d.cts +1 -1
- package/dist/machines/tooltip/index.d.mts +1 -1
- package/dist/machines/tooltip/index.mjs +4 -4
- package/dist/machines/tour/index.cjs +6 -6
- package/dist/machines/tour/index.d.cts +1 -1
- package/dist/machines/tour/index.d.mts +1 -1
- package/dist/machines/tour/index.mjs +6 -6
- package/dist/machines/tree-view/index.cjs +3 -3
- package/dist/machines/tree-view/index.d.cts +2 -2
- package/dist/machines/tree-view/index.d.mts +2 -2
- package/dist/machines/tree-view/index.mjs +3 -3
- package/dist/{popper-CfOHZlHP.mjs → popper-3Bdh0pfy.mjs} +1 -1
- package/dist/{popper-zq1F_iY8.cjs → popper-Bca_O70s.cjs} +1 -1
- package/dist/popper.cjs +2 -2
- package/dist/popper.mjs +2 -2
- package/dist/{remove-scroll-B8AJyezV.cjs → remove-scroll-D9FAOapi.cjs} +1 -1
- package/dist/{remove-scroll-DCUb1JPX.mjs → remove-scroll-HcSiTbd5.mjs} +1 -1
- package/dist/{scroll-snap-De0H9CWU.mjs → scroll-snap-DfSwN3As.mjs} +1 -1
- package/dist/{scroll-snap-voc0pMJd.cjs → scroll-snap-Dp_2adEa.cjs} +1 -1
- package/dist/scroll-snap.cjs +2 -2
- package/dist/scroll-snap.mjs +2 -2
- package/dist/{selection-DdNvrKbj.d.mts → selection-6urf-c8j.d.mts} +1 -1
- package/dist/{selection-Bb_ZSVxe.d.cts → selection-BmS2RDMq.d.cts} +1 -1
- package/dist/{tree-collection-DlBCued7.d.mts → tree-collection-Dlf9EUrT.d.mts} +2 -1
- package/dist/{tree-collection-DjtppzYh.d.cts → tree-collection-DlqV5kYO.d.cts} +2 -1
- package/package.json +11 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_dom_query = require("./dom-query-
|
|
1
|
+
const require_dom_query = require("./dom-query-Bd63cRVF.cjs");
|
|
2
2
|
//#region src/shared/i18n-utils/cache.ts
|
|
3
3
|
function i18nCache(Ins) {
|
|
4
4
|
const formatterCache = /* @__PURE__ */ new Map();
|
|
@@ -349,6 +349,57 @@ function getDistance(startDate, endDate) {
|
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
351
|
//#endregion
|
|
352
|
+
//#region src/shared/i18n-utils/format-time.ts
|
|
353
|
+
const getTimeFormatter = i18nCache(Intl.DateTimeFormat);
|
|
354
|
+
function splitTimeString(timeString) {
|
|
355
|
+
const [hours = null, minutes = null, seconds = null] = timeString.split(":");
|
|
356
|
+
const parsedHours = hours === null ? null : Number(hours);
|
|
357
|
+
const parsedMinutes = minutes === null ? null : Number(minutes);
|
|
358
|
+
const parsedSeconds = seconds === null ? null : Number(seconds);
|
|
359
|
+
return {
|
|
360
|
+
hours: Number.isNaN(parsedHours) ? null : parsedHours,
|
|
361
|
+
minutes: Number.isNaN(parsedMinutes) ? null : parsedMinutes,
|
|
362
|
+
seconds: Number.isNaN(parsedSeconds) ? null : parsedSeconds
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
function getTimeParts(value) {
|
|
366
|
+
if (value instanceof Date) {
|
|
367
|
+
if (Number.isNaN(value.getTime())) return null;
|
|
368
|
+
return {
|
|
369
|
+
date: value,
|
|
370
|
+
hours: value.getHours(),
|
|
371
|
+
minutes: value.getMinutes(),
|
|
372
|
+
seconds: value.getSeconds()
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
const { hours, minutes, seconds } = splitTimeString(value);
|
|
376
|
+
if (hours === null || minutes === null) return null;
|
|
377
|
+
if (hours < 0 || hours > 23 || minutes < 0 || minutes > 59) return null;
|
|
378
|
+
if (seconds !== null && (seconds < 0 || seconds > 59)) return null;
|
|
379
|
+
const date = /* @__PURE__ */ new Date(0);
|
|
380
|
+
date.setHours(hours, minutes, seconds ?? 0, 0);
|
|
381
|
+
return {
|
|
382
|
+
date,
|
|
383
|
+
hours,
|
|
384
|
+
minutes,
|
|
385
|
+
seconds: seconds ?? 0
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
function formatTime(value, locale, options = {}) {
|
|
389
|
+
const { format = "24h", amPmLabels, withSeconds = false } = options;
|
|
390
|
+
const parts = getTimeParts(value);
|
|
391
|
+
if (!parts) return null;
|
|
392
|
+
const formatter = getTimeFormatter(locale, {
|
|
393
|
+
hour: format === "24h" ? "2-digit" : "numeric",
|
|
394
|
+
minute: "2-digit",
|
|
395
|
+
second: withSeconds ? "2-digit" : void 0,
|
|
396
|
+
hour12: format === "12h"
|
|
397
|
+
});
|
|
398
|
+
if (format !== "12h" || !amPmLabels) return formatter.format(parts.date);
|
|
399
|
+
const isPm = parts.hours >= 12;
|
|
400
|
+
return formatter.formatToParts(parts.date).map((token) => token.type === "dayPeriod" ? isPm ? amPmLabels.pm : amPmLabels.am : token.value).join("");
|
|
401
|
+
}
|
|
402
|
+
//#endregion
|
|
352
403
|
//#region src/shared/i18n-utils/is-rtl.ts
|
|
353
404
|
const RTL_SCRIPTS = new Set([
|
|
354
405
|
"Avst",
|
|
@@ -467,6 +518,12 @@ Object.defineProperty(exports, "formatRelativeTime", {
|
|
|
467
518
|
return formatRelativeTime;
|
|
468
519
|
}
|
|
469
520
|
});
|
|
521
|
+
Object.defineProperty(exports, "formatTime", {
|
|
522
|
+
enumerable: true,
|
|
523
|
+
get: function() {
|
|
524
|
+
return formatTime;
|
|
525
|
+
}
|
|
526
|
+
});
|
|
470
527
|
Object.defineProperty(exports, "getDefaultLocale", {
|
|
471
528
|
enumerable: true,
|
|
472
529
|
get: function() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { on as getWindow } from "./dom-query-s2ESLR2U.mjs";
|
|
2
2
|
//#region src/shared/i18n-utils/cache.ts
|
|
3
3
|
function i18nCache(Ins) {
|
|
4
4
|
const formatterCache = /* @__PURE__ */ new Map();
|
|
@@ -349,6 +349,57 @@ function getDistance(startDate, endDate) {
|
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
351
|
//#endregion
|
|
352
|
+
//#region src/shared/i18n-utils/format-time.ts
|
|
353
|
+
const getTimeFormatter = i18nCache(Intl.DateTimeFormat);
|
|
354
|
+
function splitTimeString(timeString) {
|
|
355
|
+
const [hours = null, minutes = null, seconds = null] = timeString.split(":");
|
|
356
|
+
const parsedHours = hours === null ? null : Number(hours);
|
|
357
|
+
const parsedMinutes = minutes === null ? null : Number(minutes);
|
|
358
|
+
const parsedSeconds = seconds === null ? null : Number(seconds);
|
|
359
|
+
return {
|
|
360
|
+
hours: Number.isNaN(parsedHours) ? null : parsedHours,
|
|
361
|
+
minutes: Number.isNaN(parsedMinutes) ? null : parsedMinutes,
|
|
362
|
+
seconds: Number.isNaN(parsedSeconds) ? null : parsedSeconds
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
function getTimeParts(value) {
|
|
366
|
+
if (value instanceof Date) {
|
|
367
|
+
if (Number.isNaN(value.getTime())) return null;
|
|
368
|
+
return {
|
|
369
|
+
date: value,
|
|
370
|
+
hours: value.getHours(),
|
|
371
|
+
minutes: value.getMinutes(),
|
|
372
|
+
seconds: value.getSeconds()
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
const { hours, minutes, seconds } = splitTimeString(value);
|
|
376
|
+
if (hours === null || minutes === null) return null;
|
|
377
|
+
if (hours < 0 || hours > 23 || minutes < 0 || minutes > 59) return null;
|
|
378
|
+
if (seconds !== null && (seconds < 0 || seconds > 59)) return null;
|
|
379
|
+
const date = /* @__PURE__ */ new Date(0);
|
|
380
|
+
date.setHours(hours, minutes, seconds ?? 0, 0);
|
|
381
|
+
return {
|
|
382
|
+
date,
|
|
383
|
+
hours,
|
|
384
|
+
minutes,
|
|
385
|
+
seconds: seconds ?? 0
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
function formatTime(value, locale, options = {}) {
|
|
389
|
+
const { format = "24h", amPmLabels, withSeconds = false } = options;
|
|
390
|
+
const parts = getTimeParts(value);
|
|
391
|
+
if (!parts) return null;
|
|
392
|
+
const formatter = getTimeFormatter(locale, {
|
|
393
|
+
hour: format === "24h" ? "2-digit" : "numeric",
|
|
394
|
+
minute: "2-digit",
|
|
395
|
+
second: withSeconds ? "2-digit" : void 0,
|
|
396
|
+
hour12: format === "12h"
|
|
397
|
+
});
|
|
398
|
+
if (format !== "12h" || !amPmLabels) return formatter.format(parts.date);
|
|
399
|
+
const isPm = parts.hours >= 12;
|
|
400
|
+
return formatter.formatToParts(parts.date).map((token) => token.type === "dayPeriod" ? isPm ? amPmLabels.pm : amPmLabels.am : token.value).join("");
|
|
401
|
+
}
|
|
402
|
+
//#endregion
|
|
352
403
|
//#region src/shared/i18n-utils/is-rtl.ts
|
|
353
404
|
const RTL_SCRIPTS = new Set([
|
|
354
405
|
"Avst",
|
|
@@ -425,4 +476,4 @@ function trackLocale(options = {}) {
|
|
|
425
476
|
};
|
|
426
477
|
}
|
|
427
478
|
//#endregion
|
|
428
|
-
export {
|
|
479
|
+
export { formatTime as a, formatDate as c, createFilter as d, createCollator as f, isRTL as i, formatBytes as l, getDefaultLocale as n, formatRelativeTime as o, getLocaleDir as r, formatList as s, trackLocale as t, formatNumber as u };
|
package/dist/i18n-utils.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("./dom-query-
|
|
3
|
-
const require_i18n_utils = require("./i18n-utils-
|
|
2
|
+
require("./dom-query-Bd63cRVF.cjs");
|
|
3
|
+
const require_i18n_utils = require("./i18n-utils-DB-lUfrr.cjs");
|
|
4
4
|
exports.createCollator = require_i18n_utils.createCollator;
|
|
5
5
|
exports.createFilter = require_i18n_utils.createFilter;
|
|
6
6
|
exports.formatBytes = require_i18n_utils.formatBytes;
|
|
@@ -8,6 +8,7 @@ exports.formatDate = require_i18n_utils.formatDate;
|
|
|
8
8
|
exports.formatList = require_i18n_utils.formatList;
|
|
9
9
|
exports.formatNumber = require_i18n_utils.formatNumber;
|
|
10
10
|
exports.formatRelativeTime = require_i18n_utils.formatRelativeTime;
|
|
11
|
+
exports.formatTime = require_i18n_utils.formatTime;
|
|
11
12
|
exports.getDefaultLocale = require_i18n_utils.getDefaultLocale;
|
|
12
13
|
exports.getLocaleDir = require_i18n_utils.getLocaleDir;
|
|
13
14
|
exports.isRTL = require_i18n_utils.isRTL;
|
package/dist/i18n-utils.d.cts
CHANGED
|
@@ -33,6 +33,19 @@ declare function formatNumber(v: number, locale: string, options?: Intl.NumberFo
|
|
|
33
33
|
//#region src/shared/i18n-utils/format-relative-time.d.ts
|
|
34
34
|
declare function formatRelativeTime(value: Date, locale: string, options?: Intl.RelativeTimeFormatOptions): string;
|
|
35
35
|
//#endregion
|
|
36
|
+
//#region src/shared/i18n-utils/format-time.d.ts
|
|
37
|
+
type TimeFormat = "12h" | "24h";
|
|
38
|
+
interface AmPmLabels {
|
|
39
|
+
am: string;
|
|
40
|
+
pm: string;
|
|
41
|
+
}
|
|
42
|
+
interface FormatTimeOptions {
|
|
43
|
+
format?: TimeFormat;
|
|
44
|
+
amPmLabels?: AmPmLabels;
|
|
45
|
+
withSeconds?: boolean;
|
|
46
|
+
}
|
|
47
|
+
declare function formatTime(value: string | Date, locale: string, options?: FormatTimeOptions): string | null;
|
|
48
|
+
//#endregion
|
|
36
49
|
//#region src/shared/i18n-utils/is-rtl.d.ts
|
|
37
50
|
declare function isRTL(locale: string): boolean;
|
|
38
51
|
declare function getLocaleDir(locale: string): "ltr" | "rtl";
|
|
@@ -58,4 +71,4 @@ interface LocaleOptions {
|
|
|
58
71
|
}
|
|
59
72
|
declare function trackLocale(options?: LocaleOptions): () => void;
|
|
60
73
|
//#endregion
|
|
61
|
-
export { FilterOptions, FilterReturn, FormatBytesOptions, type Locale, type LocaleOptions, createCollator, createFilter, formatBytes, formatDate, formatList, formatNumber, formatRelativeTime, getDefaultLocale, getLocaleDir, isRTL, trackLocale };
|
|
74
|
+
export { AmPmLabels, FilterOptions, FilterReturn, FormatBytesOptions, FormatTimeOptions, type Locale, type LocaleOptions, TimeFormat, createCollator, createFilter, formatBytes, formatDate, formatList, formatNumber, formatRelativeTime, formatTime, getDefaultLocale, getLocaleDir, isRTL, trackLocale };
|
package/dist/i18n-utils.d.mts
CHANGED
|
@@ -33,6 +33,19 @@ declare function formatNumber(v: number, locale: string, options?: Intl.NumberFo
|
|
|
33
33
|
//#region src/shared/i18n-utils/format-relative-time.d.ts
|
|
34
34
|
declare function formatRelativeTime(value: Date, locale: string, options?: Intl.RelativeTimeFormatOptions): string;
|
|
35
35
|
//#endregion
|
|
36
|
+
//#region src/shared/i18n-utils/format-time.d.ts
|
|
37
|
+
type TimeFormat = "12h" | "24h";
|
|
38
|
+
interface AmPmLabels {
|
|
39
|
+
am: string;
|
|
40
|
+
pm: string;
|
|
41
|
+
}
|
|
42
|
+
interface FormatTimeOptions {
|
|
43
|
+
format?: TimeFormat;
|
|
44
|
+
amPmLabels?: AmPmLabels;
|
|
45
|
+
withSeconds?: boolean;
|
|
46
|
+
}
|
|
47
|
+
declare function formatTime(value: string | Date, locale: string, options?: FormatTimeOptions): string | null;
|
|
48
|
+
//#endregion
|
|
36
49
|
//#region src/shared/i18n-utils/is-rtl.d.ts
|
|
37
50
|
declare function isRTL(locale: string): boolean;
|
|
38
51
|
declare function getLocaleDir(locale: string): "ltr" | "rtl";
|
|
@@ -58,4 +71,4 @@ interface LocaleOptions {
|
|
|
58
71
|
}
|
|
59
72
|
declare function trackLocale(options?: LocaleOptions): () => void;
|
|
60
73
|
//#endregion
|
|
61
|
-
export { FilterOptions, FilterReturn, FormatBytesOptions, type Locale, type LocaleOptions, createCollator, createFilter, formatBytes, formatDate, formatList, formatNumber, formatRelativeTime, getDefaultLocale, getLocaleDir, isRTL, trackLocale };
|
|
74
|
+
export { AmPmLabels, FilterOptions, FilterReturn, FormatBytesOptions, FormatTimeOptions, type Locale, type LocaleOptions, TimeFormat, createCollator, createFilter, formatBytes, formatDate, formatList, formatNumber, formatRelativeTime, formatTime, getDefaultLocale, getLocaleDir, isRTL, trackLocale };
|
package/dist/i18n-utils.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./dom-query-
|
|
2
|
-
import { a as
|
|
3
|
-
export { createCollator, createFilter, formatBytes, formatDate, formatList, formatNumber, formatRelativeTime, getDefaultLocale, getLocaleDir, isRTL, trackLocale };
|
|
1
|
+
import "./dom-query-s2ESLR2U.mjs";
|
|
2
|
+
import { a as formatTime, c as formatDate, d as createFilter, f as createCollator, i as isRTL, l as formatBytes, n as getDefaultLocale, o as formatRelativeTime, r as getLocaleDir, s as formatList, t as trackLocale, u as formatNumber } from "./i18n-utils-oWZyUib_.mjs";
|
|
3
|
+
export { createCollator, createFilter, formatBytes, formatDate, formatList, formatNumber, formatRelativeTime, formatTime, getDefaultLocale, getLocaleDir, isRTL, trackLocale };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as
|
|
1
|
+
import { $t as contains, Ht as isTouchDevice, W as raf, Yt as isControlledElement, fn as isHTMLElement, gn as isShadowRoot, ht as getEventTarget, j as getNearestOverflowAncestor, on as getWindow, tn as getDocument, tt as isFocusable, ut as addDomEvent, vt as isContextMenuEvent } from "./dom-query-s2ESLR2U.mjs";
|
|
2
2
|
import { W as callAll } from "./utils-VVoZ_v29.mjs";
|
|
3
3
|
//#region src/shared/interact-outside/frame-utils.ts
|
|
4
4
|
function getWindowFrames(win) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_dom_query = require("./dom-query-
|
|
1
|
+
const require_dom_query = require("./dom-query-Bd63cRVF.cjs");
|
|
2
2
|
const require_utils = require("./utils-ByNiZU8f.cjs");
|
|
3
3
|
//#region src/shared/interact-outside/frame-utils.ts
|
|
4
4
|
function getWindowFrames(win) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("./dom-query-
|
|
2
|
+
require("./dom-query-Bd63cRVF.cjs");
|
|
3
3
|
require("./utils-ByNiZU8f.cjs");
|
|
4
|
-
const require_interact_outside = require("./interact-outside-
|
|
4
|
+
const require_interact_outside = require("./interact-outside-Cx4J0EBf.cjs");
|
|
5
5
|
exports.trackInteractOutside = require_interact_outside.trackInteractOutside;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./dom-query-
|
|
1
|
+
import "./dom-query-s2ESLR2U.mjs";
|
|
2
2
|
import "./utils-VVoZ_v29.mjs";
|
|
3
|
-
import { t as trackInteractOutside } from "./interact-outside-
|
|
3
|
+
import { t as trackInteractOutside } from "./interact-outside-2qkUnl4N.mjs";
|
|
4
4
|
export { trackInteractOutside };
|
|
@@ -46,7 +46,7 @@ declare class ListCollection<T extends CollectionItem = CollectionItem> {
|
|
|
46
46
|
moveBefore: (value: string, ...values: string[]) => ListCollection<T>;
|
|
47
47
|
moveAfter: (value: string, ...values: string[]) => ListCollection<T>;
|
|
48
48
|
reorder: (fromIndex: number, toIndex: number) => ListCollection<T>;
|
|
49
|
-
compareValue: (a: string, b: string) =>
|
|
49
|
+
compareValue: (a: string, b: string) => 1 | 0 | -1;
|
|
50
50
|
private range;
|
|
51
51
|
getValueRange: (from: string | null, to: string | null) => string[];
|
|
52
52
|
toString: () => string;
|
|
@@ -46,7 +46,7 @@ declare class ListCollection<T extends CollectionItem = CollectionItem> {
|
|
|
46
46
|
moveBefore: (value: string, ...values: string[]) => ListCollection<T>;
|
|
47
47
|
moveAfter: (value: string, ...values: string[]) => ListCollection<T>;
|
|
48
48
|
reorder: (fromIndex: number, toIndex: number) => ListCollection<T>;
|
|
49
|
-
compareValue: (a: string, b: string) =>
|
|
49
|
+
compareValue: (a: string, b: string) => 1 | 0 | -1;
|
|
50
50
|
private range;
|
|
51
51
|
getValueRange: (from: string | null, to: string | null) => string[];
|
|
52
52
|
toString: () => string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
|
|
3
|
-
const require_dom_query = require("../../dom-query-
|
|
3
|
+
const require_dom_query = require("../../dom-query-Bd63cRVF.cjs");
|
|
4
4
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
5
|
-
const require_core = require("../../core-
|
|
5
|
+
const require_core = require("../../core-nBg9RC_y.cjs");
|
|
6
6
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
7
7
|
//#region src/machines/accordion/accordion.anatomy.ts
|
|
8
8
|
const anatomy = require_create_anatomy.createAnatomy("accordion").parts("root", "item", "itemTrigger", "itemContent", "itemIndicator");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
-
import { C as queryAll, b as nextById,
|
|
2
|
+
import { C as queryAll, Vt as isSafari, b as nextById, ft as getEventKey, x as prevById, xn as dataAttr } from "../../dom-query-s2ESLR2U.mjs";
|
|
3
3
|
import { At as remove, i as warn, pt as add, u as createSplitProps, vt as first, wt as last } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
-
import { a as createMachine, i as createGuards } from "../../core-
|
|
4
|
+
import { a as createMachine, i as createGuards } from "../../core-BmIEKqtP.mjs";
|
|
5
5
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
6
6
|
//#region src/machines/accordion/accordion.anatomy.ts
|
|
7
7
|
const anatomy = createAnatomy("accordion").parts("root", "item", "itemTrigger", "itemContent", "itemIndicator");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
|
|
3
|
-
const require_dom_query = require("../../dom-query-
|
|
3
|
+
const require_dom_query = require("../../dom-query-Bd63cRVF.cjs");
|
|
4
4
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
5
|
-
const require_core = require("../../core-
|
|
5
|
+
const require_core = require("../../core-nBg9RC_y.cjs");
|
|
6
6
|
const require_rect_utils = require("../../rect-utils-D3RkAaHK.cjs");
|
|
7
7
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
8
8
|
//#region src/machines/angle-slider/angle-slider.anatomy.ts
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMT
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/angle-slider/angle-slider.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "track" | "thumb" | "valueText" | "markerGroup" | "marker">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/angle-slider/angle-slider.types.d.ts
|
|
9
9
|
interface ValueChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rz
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/angle-slider/angle-slider.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "track" | "thumb" | "valueText" | "markerGroup" | "marker">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/angle-slider/angle-slider.types.d.ts
|
|
9
9
|
interface ValueChangeDetails {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
-
import { E as trackPointerMove,
|
|
2
|
+
import { E as trackPointerMove, St as isLeftClick, W as raf, ct as setElementValue, gt as getNativeEvent, mt as getEventStep, pt as getEventPoint, xn as dataAttr } from "../../dom-query-s2ESLR2U.mjs";
|
|
3
3
|
import { B as snapValueToStep, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
-
import { a as createMachine } from "../../core-
|
|
4
|
+
import { a as createMachine } from "../../core-BmIEKqtP.mjs";
|
|
5
5
|
import { R as createRect, q as getPointAngle } from "../../rect-utils-B5xqFvKC.mjs";
|
|
6
6
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
7
7
|
//#region src/machines/angle-slider/angle-slider.anatomy.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
|
|
3
|
-
require("../../dom-query-
|
|
3
|
+
require("../../dom-query-Bd63cRVF.cjs");
|
|
4
4
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
5
|
-
const require_core = require("../../core-
|
|
5
|
+
const require_core = require("../../core-nBg9RC_y.cjs");
|
|
6
6
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
7
7
|
//#region src/machines/aspect-ratio/aspect-ratio.anatomy.ts
|
|
8
8
|
const anatomy = require_create_anatomy.createAnatomy("aspect-ratio").parts("root", "content");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
-
import "../../dom-query-
|
|
2
|
+
import "../../dom-query-s2ESLR2U.mjs";
|
|
3
3
|
import { u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
-
import { a as createMachine } from "../../core-
|
|
4
|
+
import { a as createMachine } from "../../core-BmIEKqtP.mjs";
|
|
5
5
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
6
6
|
//#region src/machines/aspect-ratio/aspect-ratio.anatomy.ts
|
|
7
7
|
const anatomy = createAnatomy("aspect-ratio").parts("root", "content");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../dom-query-
|
|
2
|
+
require("../../dom-query-Bd63cRVF.cjs");
|
|
3
3
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
4
|
-
const require_core = require("../../core-
|
|
4
|
+
const require_core = require("../../core-nBg9RC_y.cjs");
|
|
5
5
|
//#region src/machines/async-list/async-list.connect.ts
|
|
6
6
|
function connect(service) {
|
|
7
7
|
const { state, context, send } = service;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../dom-query-
|
|
1
|
+
import "../../dom-query-s2ESLR2U.mjs";
|
|
2
2
|
import { n as ensureProps, t as ensure } from "../../utils-VVoZ_v29.mjs";
|
|
3
|
-
import { a as createMachine } from "../../core-
|
|
3
|
+
import { a as createMachine } from "../../core-BmIEKqtP.mjs";
|
|
4
4
|
//#region src/machines/async-list/async-list.connect.ts
|
|
5
5
|
function connect(service) {
|
|
6
6
|
const { state, context, send } = service;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
|
|
3
|
-
const require_dom_query = require("../../dom-query-
|
|
3
|
+
const require_dom_query = require("../../dom-query-Bd63cRVF.cjs");
|
|
4
4
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
5
|
-
const require_core = require("../../core-
|
|
5
|
+
const require_core = require("../../core-nBg9RC_y.cjs");
|
|
6
6
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
7
7
|
//#region src/machines/avatar/avatar.anatomy.ts
|
|
8
8
|
const anatomy = require_create_anatomy.createAnatomy("avatar").parts("root", "image", "fallback");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
-
import { B as observeChildren, z as observeAttributes } from "../../dom-query-
|
|
2
|
+
import { B as observeChildren, z as observeAttributes } from "../../dom-query-s2ESLR2U.mjs";
|
|
3
3
|
import { u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
-
import { a as createMachine } from "../../core-
|
|
4
|
+
import { a as createMachine } from "../../core-BmIEKqtP.mjs";
|
|
5
5
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
6
6
|
//#region src/machines/avatar/avatar.anatomy.ts
|
|
7
7
|
const anatomy = createAnatomy("avatar").parts("root", "image", "fallback");
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
|
|
3
|
-
const require_dom_query = require("../../dom-query-
|
|
3
|
+
const require_dom_query = require("../../dom-query-Bd63cRVF.cjs");
|
|
4
4
|
const require_defineProperty = require("../../defineProperty-8IOBQ1i_.cjs");
|
|
5
|
-
const require_aria_hidden = require("../../aria-hidden-
|
|
5
|
+
const require_aria_hidden = require("../../aria-hidden-BAGrxNHt.cjs");
|
|
6
6
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
7
|
-
const require_core = require("../../core-
|
|
8
|
-
require("../../interact-outside-
|
|
9
|
-
const require_dismissable = require("../../dismissable-
|
|
10
|
-
const require_focus_trap = require("../../focus-trap-
|
|
7
|
+
const require_core = require("../../core-nBg9RC_y.cjs");
|
|
8
|
+
require("../../interact-outside-Cx4J0EBf.cjs");
|
|
9
|
+
const require_dismissable = require("../../dismissable-ChwcJMHk.cjs");
|
|
10
|
+
const require_focus_trap = require("../../focus-trap-fucc6OU_.cjs");
|
|
11
11
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
12
|
-
const require_remove_scroll = require("../../remove-scroll-
|
|
12
|
+
const require_remove_scroll = require("../../remove-scroll-D9FAOapi.cjs");
|
|
13
13
|
//#region src/machines/bottom-sheet/bottom-sheet.anatomy.ts
|
|
14
14
|
const anatomy = require_create_anatomy.createAnatomy("bottom-sheet").parts("content", "title", "trigger", "backdrop", "grabber", "grabberIndicator", "closeTrigger");
|
|
15
15
|
const parts = anatomy.build();
|
|
@@ -5,7 +5,7 @@ import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOuts
|
|
|
5
5
|
import { t as DismissableElementHandlers } from "../../dismissable-layer-ZgyqN8AD.cjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/bottom-sheet/bottom-sheet.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"
|
|
8
|
+
declare const anatomy: AnatomyInstance<"trigger" | "content" | "title" | "backdrop" | "closeTrigger" | "grabber" | "grabberIndicator">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/bottom-sheet/utils/drag-manager.d.ts
|
|
11
11
|
declare class DragManager {
|
|
@@ -5,7 +5,7 @@ import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOuts
|
|
|
5
5
|
import { t as DismissableElementHandlers } from "../../dismissable-layer-h14gHVbJ.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/bottom-sheet/bottom-sheet.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"
|
|
8
|
+
declare const anatomy: AnatomyInstance<"trigger" | "content" | "title" | "backdrop" | "closeTrigger" | "grabber" | "grabberIndicator">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/bottom-sheet/utils/drag-manager.d.ts
|
|
11
11
|
declare class DragManager {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { St as isLeftClick, W as raf, ht as getEventTarget, m as resizeObserverBorderBox, pt as getEventPoint, ut as addDomEvent } from "../../dom-query-s2ESLR2U.mjs";
|
|
3
3
|
import { t as _defineProperty } from "../../defineProperty-D5oW_HU_.mjs";
|
|
4
|
-
import { t as ariaHidden } from "../../aria-hidden-
|
|
4
|
+
import { t as ariaHidden } from "../../aria-hidden-BX4SWNE_.mjs";
|
|
5
5
|
import { H as toPx, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
6
|
-
import { a as createMachine } from "../../core-
|
|
7
|
-
import "../../interact-outside-
|
|
8
|
-
import { n as trackDismissableElement } from "../../dismissable-
|
|
9
|
-
import { t as trapFocus } from "../../focus-trap-
|
|
6
|
+
import { a as createMachine } from "../../core-BmIEKqtP.mjs";
|
|
7
|
+
import "../../interact-outside-2qkUnl4N.mjs";
|
|
8
|
+
import { n as trackDismissableElement } from "../../dismissable-DWfZGIA7.mjs";
|
|
9
|
+
import { t as trapFocus } from "../../focus-trap-DzBvBlTH.mjs";
|
|
10
10
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
11
|
-
import { t as preventBodyScroll } from "../../remove-scroll-
|
|
11
|
+
import { t as preventBodyScroll } from "../../remove-scroll-HcSiTbd5.mjs";
|
|
12
12
|
//#region src/machines/bottom-sheet/bottom-sheet.anatomy.ts
|
|
13
13
|
const anatomy = createAnatomy("bottom-sheet").parts("content", "title", "trigger", "backdrop", "grabber", "grabberIndicator", "closeTrigger");
|
|
14
14
|
const parts = anatomy.build();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
|
|
3
|
-
const require_dom_query = require("../../dom-query-
|
|
3
|
+
const require_dom_query = require("../../dom-query-Bd63cRVF.cjs");
|
|
4
4
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
5
|
-
const require_core = require("../../core-
|
|
6
|
-
const require_scroll_snap = require("../../scroll-snap-
|
|
5
|
+
const require_core = require("../../core-nBg9RC_y.cjs");
|
|
6
|
+
const require_scroll_snap = require("../../scroll-snap-Dp_2adEa.cjs");
|
|
7
7
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
8
8
|
//#region src/machines/carousel/carousel.anatomy.ts
|
|
9
9
|
const anatomy = require_create_anatomy.createAnatomy("carousel").parts("root", "itemGroup", "item", "control", "nextTrigger", "prevTrigger", "indicatorGroup", "indicator", "autoplayTrigger", "progressText");
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMT
|
|
|
3
3
|
import { b as NormalizeProps, d as Orientation, f as OrientationProperty, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/carousel/carousel.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "control" | "indicator" | "item" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "control" | "indicator" | "item" | "nextTrigger" | "prevTrigger" | "progressText" | "itemGroup" | "indicatorGroup" | "autoplayTrigger">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/carousel/carousel.types.d.ts
|
|
9
9
|
interface PageChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rz
|
|
|
3
3
|
import { b as NormalizeProps, d as Orientation, f as OrientationProperty, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/carousel/carousel.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "control" | "indicator" | "item" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "control" | "indicator" | "item" | "nextTrigger" | "prevTrigger" | "progressText" | "itemGroup" | "indicatorGroup" | "autoplayTrigger">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/carousel/carousel.types.d.ts
|
|
9
9
|
interface PageChangeDetails {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { $t as contains, C as queryAll, E as trackPointerMove, St as isLeftClick, W as raf, bn as ariaAttr, et as getTabbables, ft as getEventKey, ht as getEventTarget, m as resizeObserverBorderBox, tt as isFocusable, ut as addDomEvent, xn as dataAttr } from "../../dom-query-s2ESLR2U.mjs";
|
|
3
3
|
import { At as remove, Et as nextIndex, Nt as uniq, Q as throttle, W as callAll, ct as isObject, g as clampValue, kt as prevIndex, n as ensureProps, pt as add, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
-
import { a as createMachine } from "../../core-
|
|
5
|
-
import { n as getScrollSnapPositions, t as findSnapPoint } from "../../scroll-snap-
|
|
4
|
+
import { a as createMachine } from "../../core-BmIEKqtP.mjs";
|
|
5
|
+
import { n as getScrollSnapPositions, t as findSnapPoint } from "../../scroll-snap-DfSwN3As.mjs";
|
|
6
6
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
7
7
|
//#region src/machines/carousel/carousel.anatomy.ts
|
|
8
8
|
const anatomy = createAnatomy("carousel").parts("root", "itemGroup", "item", "control", "nextTrigger", "prevTrigger", "indicatorGroup", "indicator", "autoplayTrigger", "progressText");
|