@phillips/seldon 1.118.2 → 1.120.0
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/_virtual/_commonjsHelpers.js +1 -1
- package/dist/components/Accordion/Accordion.js +18 -18
- package/dist/components/Accordion/AccordionItem.js +67 -68
- package/dist/components/Carousel/Carousel.js +49 -51
- package/dist/components/Carousel/CarouselDots.js +46 -47
- package/dist/components/ContentPeek/ContentPeek.js +47 -47
- package/dist/components/ErrorBoundary/ErrorBoundary.js +11 -12
- package/dist/components/Filter/Filter.js +40 -41
- package/dist/components/Filter/FilterHeader.js +24 -24
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.js +21 -20
- package/dist/components/Input/Input.stories.d.ts +7 -0
- package/dist/components/Link/utils.js +2 -2
- package/dist/components/LinkBlock/LinkBlock.js +12 -13
- package/dist/components/LinkList/LinkList.js +8 -11
- package/dist/components/Navigation/Navigation.js +21 -22
- package/dist/components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js +49 -50
- package/dist/components/Navigation/NavigationList/NavigationList.js +33 -35
- package/dist/components/Pagination/Pagination.js +7 -7
- package/dist/components/Pagination/utils.js +1 -1
- package/dist/components/PinchZoom/PinchZoom.js +40 -43
- package/dist/components/Search/Search.js +93 -96
- package/dist/components/Search/SearchButton.js +19 -19
- package/dist/components/SeldonImage/SeldonImage.js +1 -1
- package/dist/components/Select/Select.js +22 -14
- package/dist/components/Select/Select.stories.d.ts +15 -0
- package/dist/components/Tabs/TabTrigger.js +13 -13
- package/dist/node_modules/@artsy/fresnel/dist/Breakpoints.js +2 -2
- package/dist/node_modules/@artsy/fresnel/dist/DynamicResponsive.js +1 -1
- package/dist/node_modules/@artsy/fresnel/dist/Interactions.js +2 -2
- package/dist/node_modules/@artsy/fresnel/dist/Media.js +2 -2
- package/dist/node_modules/@artsy/fresnel/dist/MediaQueries.js +1 -1
- package/dist/node_modules/@artsy/fresnel/dist/Utils.js +1 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -1
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +2 -2
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +2 -2
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +5 -5
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +63 -67
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +35 -35
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +80 -84
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.js +5 -5
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.js +43 -45
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +86 -87
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-guards/dist/index.js +7 -8
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-scope/dist/index.js +56 -57
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.js +12 -13
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.js +37 -42
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.js +18 -19
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +86 -87
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +7 -8
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +56 -57
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +10 -10
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +113 -115
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +12 -13
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +33 -37
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +423 -440
- package/dist/node_modules/@radix-ui/{react-dialog → react-select}/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +28 -28
- package/dist/node_modules/@radix-ui/{react-dialog → react-select}/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +1 -1
- package/dist/node_modules/@radix-ui/react-select/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +62 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +18 -19
- package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-context/dist/index.js +39 -41
- package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-presence/dist/index.js +37 -42
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +7 -10
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +1 -1
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +1 -1
- package/dist/node_modules/change-case/dist/index.js +41 -44
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +11 -11
- package/dist/node_modules/date-fns/differenceInDays.js +9 -9
- package/dist/node_modules/date-fns/differenceInHours.js +11 -11
- package/dist/node_modules/date-fns/differenceInMinutes.js +8 -8
- package/dist/node_modules/date-fns/differenceInSeconds.js +7 -7
- package/dist/node_modules/date-fns/formatDuration.js +11 -12
- package/dist/node_modules/date-fns/isSameWeek.js +8 -8
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +12 -12
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +3 -3
- package/dist/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.js +5 -5
- package/dist/node_modules/date-fns/locale/zh-CN/_lib/localize.js +10 -10
- package/dist/node_modules/date-fns/startOfDay.js +6 -6
- package/dist/node_modules/date-fns/startOfWeek.js +7 -8
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +1 -1
- package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +1 -1
- package/dist/node_modules/exenv/index.js +2 -2
- package/dist/node_modules/get-nonce/dist/es2015/index.js +1 -1
- package/dist/node_modules/prop-types/checkPropTypes.js +2 -2
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +3 -3
- package/dist/node_modules/react-intersection-observer/dist/index.js +2 -2
- package/dist/node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js +1 -1
- package/dist/node_modules/react-modal/lib/components/ModalPortal.js +1 -1
- package/dist/node_modules/react-modal/lib/helpers/scopeTab.js +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +28 -28
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +34 -32
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +1 -1
- package/dist/node_modules/react-transition-group/esm/Transition.js +1 -1
- package/dist/node_modules/react-zoom-pan-pinch/dist/index.esm.js +14 -14
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +1 -1
- package/dist/node_modules/usehooks-ts/dist/index.js +1 -1
- package/dist/node_modules/warning/warning.js +1 -1
- package/dist/node_modules/wheel-gestures/dist/wheel-gestures.esm.js +1 -1
- package/dist/patterns/BidSnapshot/BidSnapshot.js +58 -58
- package/dist/patterns/DetailList/DetailList.js +22 -22
- package/dist/patterns/FilterMenu/FilterMenu.js +15 -15
- package/dist/patterns/LanguageSelector/LanguageSelector.js +23 -23
- package/dist/patterns/LanguageSelector/utils.js +2 -5
- package/dist/patterns/ObjectTile/ObjectTile.js +46 -46
- package/dist/patterns/ViewingsList/StatefulViewingsList.js +16 -16
- package/dist/patterns/ViewingsList/ViewingsList.js +42 -42
- package/dist/patterns/ViewingsList/ViewingsListCard.js +122 -123
- package/dist/patterns/ViewingsList/ViewingsListCardForm.js +170 -170
- package/dist/scss/components/Search/SearchResults/_searchResults.scss +8 -0
- package/dist/site-furniture/Header/Header.js +32 -32
- package/package.json +3 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -64
- /package/dist/node_modules/@radix-ui/{react-dialog → react-select}/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -0
- /package/dist/node_modules/@radix-ui/{react-dialog → react-select}/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -0
- /package/dist/node_modules/@radix-ui/{react-dialog → react-select}/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -0
- /package/dist/node_modules/@radix-ui/{react-dialog → react-select}/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -0
- /package/dist/node_modules/@radix-ui/{react-dialog → react-select}/node_modules/tslib/tslib.es6.js +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { getTimezoneOffsetInMilliseconds as
|
|
1
|
+
import { getTimezoneOffsetInMilliseconds as r } from "./_lib/getTimezoneOffsetInMilliseconds.js";
|
|
2
2
|
import { normalizeDates as c } from "./_lib/normalizeDates.js";
|
|
3
3
|
import { millisecondsInDay as D } from "./constants.js";
|
|
4
|
-
import { startOfDay as
|
|
5
|
-
function
|
|
6
|
-
const [
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
),
|
|
11
|
-
return Math.round((
|
|
4
|
+
import { startOfDay as a } from "./startOfDay.js";
|
|
5
|
+
function O(o, n, i) {
|
|
6
|
+
const [s, m] = c(
|
|
7
|
+
i?.in,
|
|
8
|
+
o,
|
|
9
|
+
n
|
|
10
|
+
), t = a(s), e = a(m), f = +t - r(t), l = +e - r(e);
|
|
11
|
+
return Math.round((f - l) / D);
|
|
12
12
|
}
|
|
13
13
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
O as default,
|
|
15
|
+
O as differenceInCalendarDays
|
|
16
16
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { normalizeDates as d } from "./_lib/normalizeDates.js";
|
|
2
2
|
import { differenceInCalendarDays as r } from "./differenceInCalendarDays.js";
|
|
3
|
-
function l(n, t,
|
|
4
|
-
const [
|
|
5
|
-
|
|
3
|
+
function l(n, t, s) {
|
|
4
|
+
const [o, e] = d(
|
|
5
|
+
s?.in,
|
|
6
6
|
n,
|
|
7
7
|
t
|
|
8
|
-
),
|
|
9
|
-
r(
|
|
8
|
+
), c = f(o, e), g = Math.abs(
|
|
9
|
+
r(o, e)
|
|
10
10
|
);
|
|
11
|
-
|
|
12
|
-
const i = +(f(
|
|
11
|
+
o.setDate(o.getDate() - c * g);
|
|
12
|
+
const i = +(f(o, e) === -c), u = c * (g - i);
|
|
13
13
|
return u === 0 ? 0 : u;
|
|
14
14
|
}
|
|
15
15
|
function f(n, t) {
|
|
16
|
-
const
|
|
17
|
-
return
|
|
16
|
+
const s = n.getFullYear() - t.getFullYear() || n.getMonth() - t.getMonth() || n.getDate() - t.getDate() || n.getHours() - t.getHours() || n.getMinutes() - t.getMinutes() || n.getSeconds() - t.getSeconds() || n.getMilliseconds() - t.getMilliseconds();
|
|
17
|
+
return s < 0 ? -1 : s > 0 ? 1 : s;
|
|
18
18
|
}
|
|
19
19
|
export {
|
|
20
20
|
l as default,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { getRoundingMethod as
|
|
2
|
-
import { normalizeDates as
|
|
3
|
-
import { millisecondsInHour as
|
|
4
|
-
function
|
|
5
|
-
const [
|
|
6
|
-
e
|
|
1
|
+
import { getRoundingMethod as f } from "./_lib/getRoundingMethod.js";
|
|
2
|
+
import { normalizeDates as a } from "./_lib/normalizeDates.js";
|
|
3
|
+
import { millisecondsInHour as d } from "./constants.js";
|
|
4
|
+
function s(r, o, e) {
|
|
5
|
+
const [t, n] = a(
|
|
6
|
+
e?.in,
|
|
7
7
|
r,
|
|
8
|
-
|
|
9
|
-
),
|
|
10
|
-
return
|
|
8
|
+
o
|
|
9
|
+
), i = (+t - +n) / d;
|
|
10
|
+
return f(e?.roundingMethod)(i);
|
|
11
11
|
}
|
|
12
12
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
s as default,
|
|
14
|
+
s as differenceInHours
|
|
15
15
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { getRoundingMethod as
|
|
2
|
-
import { millisecondsInMinute as
|
|
3
|
-
import { differenceInMilliseconds as
|
|
4
|
-
function
|
|
5
|
-
const
|
|
6
|
-
return i
|
|
1
|
+
import { getRoundingMethod as t } from "./_lib/getRoundingMethod.js";
|
|
2
|
+
import { millisecondsInMinute as r } from "./constants.js";
|
|
3
|
+
import { differenceInMilliseconds as f } from "./differenceInMilliseconds.js";
|
|
4
|
+
function u(n, e, i) {
|
|
5
|
+
const o = f(n, e) / r;
|
|
6
|
+
return t(i?.roundingMethod)(o);
|
|
7
7
|
}
|
|
8
8
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
u as default,
|
|
10
|
+
u as differenceInMinutes
|
|
11
11
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { getRoundingMethod as
|
|
2
|
-
import { differenceInMilliseconds as
|
|
3
|
-
function
|
|
4
|
-
const
|
|
5
|
-
return
|
|
1
|
+
import { getRoundingMethod as f } from "./_lib/getRoundingMethod.js";
|
|
2
|
+
import { differenceInMilliseconds as i } from "./differenceInMilliseconds.js";
|
|
3
|
+
function c(e, n, o) {
|
|
4
|
+
const d = i(e, n) / 1e3;
|
|
5
|
+
return f(o?.roundingMethod)(d);
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
c as default,
|
|
9
|
+
c as differenceInSeconds
|
|
10
10
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getDefaultOptions as
|
|
2
|
-
import { enUS as
|
|
3
|
-
const
|
|
1
|
+
import { getDefaultOptions as i } from "./_lib/defaultOptions.js";
|
|
2
|
+
import { enUS as d } from "./locale/en-US.js";
|
|
3
|
+
const p = [
|
|
4
4
|
"years",
|
|
5
5
|
"months",
|
|
6
6
|
"weeks",
|
|
@@ -9,15 +9,14 @@ const U = [
|
|
|
9
9
|
"minutes",
|
|
10
10
|
"seconds"
|
|
11
11
|
];
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}, []).join(k) : "";
|
|
12
|
+
function x(r, e) {
|
|
13
|
+
const a = i(), o = e?.locale ?? a.locale ?? d, c = e?.format ?? p, l = e?.zero ?? !1, f = e?.delimiter ?? " ";
|
|
14
|
+
return o.formatDistance ? c.reduce((n, t) => {
|
|
15
|
+
const m = `x${t.replace(/(^.)/, (u) => u.toUpperCase())}`, s = r[t];
|
|
16
|
+
return s !== void 0 && (l || r[t]) ? n.concat(o.formatDistance(m, s)) : n;
|
|
17
|
+
}, []).join(f) : "";
|
|
19
18
|
}
|
|
20
19
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
x as default,
|
|
21
|
+
x as formatDuration
|
|
23
22
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { normalizeDates as
|
|
1
|
+
import { normalizeDates as i } from "./_lib/normalizeDates.js";
|
|
2
2
|
import { startOfWeek as r } from "./startOfWeek.js";
|
|
3
|
-
function
|
|
4
|
-
const [m, f] =
|
|
5
|
-
e
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
function o(t, a, e) {
|
|
4
|
+
const [m, f] = i(
|
|
5
|
+
e?.in,
|
|
6
|
+
t,
|
|
7
|
+
a
|
|
8
8
|
);
|
|
9
9
|
return +r(m, e) == +r(f, e);
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
o as default,
|
|
13
|
+
o as isSameWeek
|
|
14
14
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
function
|
|
2
|
-
return (
|
|
3
|
-
const
|
|
4
|
-
let
|
|
5
|
-
if (
|
|
6
|
-
const
|
|
7
|
-
|
|
1
|
+
function c(t) {
|
|
2
|
+
return (l, e) => {
|
|
3
|
+
const u = e?.context ? String(e.context) : "standalone";
|
|
4
|
+
let d;
|
|
5
|
+
if (u === "formatting" && t.formattingValues) {
|
|
6
|
+
const n = t.defaultFormattingWidth || t.defaultWidth, i = e?.width ? String(e.width) : n;
|
|
7
|
+
d = t.formattingValues[i] || t.formattingValues[n];
|
|
8
8
|
} else {
|
|
9
|
-
const
|
|
10
|
-
|
|
9
|
+
const n = t.defaultWidth, i = e?.width ? String(e.width) : t.defaultWidth;
|
|
10
|
+
d = t.values[i] || t.values[n];
|
|
11
11
|
}
|
|
12
|
-
const
|
|
13
|
-
return
|
|
12
|
+
const a = t.argumentCallback ? t.argumentCallback(l) : l;
|
|
13
|
+
return d[a];
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
c as buildLocalizeFn
|
|
18
18
|
};
|
|
@@ -60,10 +60,10 @@ const a = {
|
|
|
60
60
|
one: "almost 1 year",
|
|
61
61
|
other: "almost {{count}} years"
|
|
62
62
|
}
|
|
63
|
-
}, r = (s, n,
|
|
63
|
+
}, r = (s, n, t) => {
|
|
64
64
|
let e;
|
|
65
|
-
const
|
|
66
|
-
return typeof
|
|
65
|
+
const o = a[s];
|
|
66
|
+
return typeof o == "string" ? e = o : n === 1 ? e = o.one : e = o.other.replace("{{count}}", n.toString()), t?.addSuffix ? t.comparison && t.comparison > 0 ? "in " + e : e + " ago" : e;
|
|
67
67
|
};
|
|
68
68
|
export {
|
|
69
69
|
r as formatDistance
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const s = {
|
|
2
2
|
lessThanXSeconds: {
|
|
3
3
|
one: "不到 1 秒",
|
|
4
4
|
other: "不到 {{count}} 秒"
|
|
@@ -60,11 +60,11 @@ const u = {
|
|
|
60
60
|
one: "将近 1 年",
|
|
61
61
|
other: "将近 {{count}} 年"
|
|
62
62
|
}
|
|
63
|
-
},
|
|
63
|
+
}, u = (r, n, t) => {
|
|
64
64
|
let e;
|
|
65
|
-
const
|
|
66
|
-
return typeof
|
|
65
|
+
const o = s[r];
|
|
66
|
+
return typeof o == "string" ? e = o : n === 1 ? e = o.one : e = o.other.replace("{{count}}", String(n)), t?.addSuffix ? t.comparison && t.comparison > 0 ? e + "内" : e + "前" : e;
|
|
67
67
|
};
|
|
68
68
|
export {
|
|
69
|
-
|
|
69
|
+
u as formatDistance
|
|
70
70
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { buildLocalizeFn as e } from "../../_lib/buildLocalizeFn.js";
|
|
2
|
-
const
|
|
2
|
+
const a = {
|
|
3
3
|
narrow: ["前", "公元"],
|
|
4
4
|
abbreviated: ["前", "公元"],
|
|
5
5
|
wide: ["公元前", "公元"]
|
|
6
|
-
},
|
|
6
|
+
}, o = {
|
|
7
7
|
narrow: ["1", "2", "3", "4"],
|
|
8
8
|
abbreviated: ["第一季", "第二季", "第三季", "第四季"],
|
|
9
9
|
wide: ["第一季度", "第二季度", "第三季度", "第四季度"]
|
|
10
|
-
},
|
|
10
|
+
}, r = {
|
|
11
11
|
narrow: [
|
|
12
12
|
"一",
|
|
13
13
|
"二",
|
|
@@ -117,9 +117,9 @@ const i = {
|
|
|
117
117
|
evening: "晚上",
|
|
118
118
|
night: "夜间"
|
|
119
119
|
}
|
|
120
|
-
}, g = (t,
|
|
120
|
+
}, g = (t, i) => {
|
|
121
121
|
const n = Number(t);
|
|
122
|
-
switch (
|
|
122
|
+
switch (i?.unit) {
|
|
123
123
|
case "date":
|
|
124
124
|
return n.toString() + "日";
|
|
125
125
|
case "hour":
|
|
@@ -131,19 +131,19 @@ const i = {
|
|
|
131
131
|
default:
|
|
132
132
|
return "第 " + n.toString();
|
|
133
133
|
}
|
|
134
|
-
},
|
|
134
|
+
}, l = {
|
|
135
135
|
ordinalNumber: g,
|
|
136
136
|
era: e({
|
|
137
|
-
values:
|
|
137
|
+
values: a,
|
|
138
138
|
defaultWidth: "wide"
|
|
139
139
|
}),
|
|
140
140
|
quarter: e({
|
|
141
|
-
values:
|
|
141
|
+
values: o,
|
|
142
142
|
defaultWidth: "wide",
|
|
143
143
|
argumentCallback: (t) => t - 1
|
|
144
144
|
}),
|
|
145
145
|
month: e({
|
|
146
|
-
values:
|
|
146
|
+
values: r,
|
|
147
147
|
defaultWidth: "wide"
|
|
148
148
|
}),
|
|
149
149
|
day: e({
|
|
@@ -158,5 +158,5 @@ const i = {
|
|
|
158
158
|
})
|
|
159
159
|
};
|
|
160
160
|
export {
|
|
161
|
-
|
|
161
|
+
l as localize
|
|
162
162
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { toDate as
|
|
2
|
-
function
|
|
3
|
-
const
|
|
4
|
-
return
|
|
1
|
+
import { toDate as a } from "./toDate.js";
|
|
2
|
+
function n(o, r) {
|
|
3
|
+
const t = a(o, r?.in);
|
|
4
|
+
return t.setHours(0, 0, 0, 0), t;
|
|
5
5
|
}
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
n as default,
|
|
8
|
+
n as startOfDay
|
|
9
9
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { getDefaultOptions as
|
|
2
|
-
import { toDate as
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return t.setDate(t.getDate() - S), t.setHours(0, 0, 0, 0), t;
|
|
1
|
+
import { getDefaultOptions as f } from "./_lib/defaultOptions.js";
|
|
2
|
+
import { toDate as c } from "./toDate.js";
|
|
3
|
+
function l(n, e) {
|
|
4
|
+
const a = f(), o = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, t = c(n, e?.in), s = t.getDay(), r = (s < o ? 7 : 0) + s - o;
|
|
5
|
+
return t.setDate(t.getDate() - r), t.setHours(0, 0, 0, 0), t;
|
|
7
6
|
}
|
|
8
7
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
l as default,
|
|
9
|
+
l as startOfWeek
|
|
11
10
|
};
|
package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ function a(n) {
|
|
|
5
5
|
return y(n) || Array.isArray(n);
|
|
6
6
|
}
|
|
7
7
|
function p() {
|
|
8
|
-
return !!(typeof window
|
|
8
|
+
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
9
9
|
}
|
|
10
10
|
function l(n, t) {
|
|
11
11
|
const e = Object.keys(n), c = Object.keys(t);
|
|
@@ -6,9 +6,9 @@ import { __module as t } from "../../_virtual/index5.js";
|
|
|
6
6
|
*/
|
|
7
7
|
(function(n) {
|
|
8
8
|
(function() {
|
|
9
|
-
var e = !!(typeof window
|
|
9
|
+
var e = !!(typeof window < "u" && window.document && window.document.createElement), o = {
|
|
10
10
|
canUseDOM: e,
|
|
11
|
-
canUseWorkers: typeof Worker
|
|
11
|
+
canUseWorkers: typeof Worker < "u",
|
|
12
12
|
canUseEventListeners: e && !!(window.addEventListener || window.attachEvent),
|
|
13
13
|
canUseViewport: e && !!window.screen
|
|
14
14
|
};
|
|
@@ -10,7 +10,7 @@ function P() {
|
|
|
10
10
|
var y = E(), t = {}, d = _();
|
|
11
11
|
o = function(n) {
|
|
12
12
|
var a = "Warning: " + n;
|
|
13
|
-
typeof console
|
|
13
|
+
typeof console < "u" && console.error(a);
|
|
14
14
|
try {
|
|
15
15
|
throw new Error(a);
|
|
16
16
|
} catch {
|
|
@@ -39,7 +39,7 @@ function P() {
|
|
|
39
39
|
t[r.message] = !0;
|
|
40
40
|
var p = c ? c() : "";
|
|
41
41
|
o(
|
|
42
|
-
"Failed " + i + " type: " + r.message + (p
|
|
42
|
+
"Failed " + i + " type: " + r.message + (p ?? "")
|
|
43
43
|
);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -11,7 +11,7 @@ function oe() {
|
|
|
11
11
|
};
|
|
12
12
|
process.env.NODE_ENV !== "production" && (T = function(x) {
|
|
13
13
|
var S = "Warning: " + x;
|
|
14
|
-
typeof console
|
|
14
|
+
typeof console < "u" && console.error(S);
|
|
15
15
|
try {
|
|
16
16
|
throw new Error(S);
|
|
17
17
|
} catch {
|
|
@@ -65,7 +65,7 @@ function oe() {
|
|
|
65
65
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
66
66
|
);
|
|
67
67
|
throw l.name = "Invariant Violation", l;
|
|
68
|
-
} else if (process.env.NODE_ENV !== "production" && typeof console
|
|
68
|
+
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
69
69
|
var b = o + ":" + a;
|
|
70
70
|
!r[b] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
71
71
|
u < 3 && (T(
|
|
@@ -293,7 +293,7 @@ Valid keys: ` + JSON.stringify(Object.keys(e), null, " ")
|
|
|
293
293
|
return Array.isArray(e) ? "array" : e instanceof RegExp ? "object" : Z(r, e) ? "symbol" : r;
|
|
294
294
|
}
|
|
295
295
|
function O(e) {
|
|
296
|
-
if (typeof e
|
|
296
|
+
if (typeof e > "u" || e === null)
|
|
297
297
|
return "" + e;
|
|
298
298
|
var r = g(e);
|
|
299
299
|
if (r === "object") {
|
|
@@ -18,7 +18,7 @@ function _(e) {
|
|
|
18
18
|
s.forEach((r) => {
|
|
19
19
|
var o;
|
|
20
20
|
const g = r.isIntersecting && c.some((d) => r.intersectionRatio >= d);
|
|
21
|
-
e.trackVisibility && typeof r.isVisible
|
|
21
|
+
e.trackVisibility && typeof r.isVisible > "u" && (r.isVisible = g), (o = u.get(r.target)) == null || o.forEach((d) => {
|
|
22
22
|
d(g, r);
|
|
23
23
|
});
|
|
24
24
|
});
|
|
@@ -32,7 +32,7 @@ function _(e) {
|
|
|
32
32
|
return n;
|
|
33
33
|
}
|
|
34
34
|
function x(e, t, n = {}, u = M) {
|
|
35
|
-
if (typeof window.IntersectionObserver
|
|
35
|
+
if (typeof window.IntersectionObserver > "u" && u !== void 0) {
|
|
36
36
|
const o = e.getBoundingClientRect();
|
|
37
37
|
return t(u, {
|
|
38
38
|
isIntersecting: u,
|
|
@@ -130,7 +130,7 @@ import { __exports as Y } from "../../../../_virtual/portalOpenInstances.js";
|
|
|
130
130
|
}, e.contentHasFocus = function() {
|
|
131
131
|
return document.activeElement === e.content || e.content.contains(document.activeElement);
|
|
132
132
|
}, e.buildClassName = function(t, l) {
|
|
133
|
-
var i = (typeof l
|
|
133
|
+
var i = (typeof l > "u" ? "undefined" : A(l)) === "object" ? l : {
|
|
134
134
|
base: b[t],
|
|
135
135
|
afterOpen: b[t] + "--after-open",
|
|
136
136
|
beforeClose: b[t] + "--before-close"
|
|
@@ -30,7 +30,7 @@ import { t as _ } from "./tabbable.js";
|
|
|
30
30
|
var b = /(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent), h = b != null && b[1] != "Chrome" && /\biPod\b|\biPad\b/g.exec(navigator.userAgent) == null;
|
|
31
31
|
if (h) {
|
|
32
32
|
var l = a.indexOf(i);
|
|
33
|
-
if (l > -1 && (l += n ? -1 : 1), t = a[l], typeof t
|
|
33
|
+
if (l > -1 && (l += n ? -1 : 1), t = a[l], typeof t > "u") {
|
|
34
34
|
r.preventDefault(), t = n ? u : o, t.focus();
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
@@ -4,47 +4,47 @@ import { RemoveScrollBar as A } from "../../../react-remove-scroll-bar/dist/es20
|
|
|
4
4
|
import { styleSingleton as I } from "../../../react-style-singleton/dist/es2015/component.js";
|
|
5
5
|
import { nonPassive as s } from "./aggresiveCapture.js";
|
|
6
6
|
import { locationCouldBeScrolled as T, handleScroll as W } from "./handleScroll.js";
|
|
7
|
-
var
|
|
7
|
+
var b = function(t) {
|
|
8
8
|
return "changedTouches" in t ? [t.changedTouches[0].clientX, t.changedTouches[0].clientY] : [0, 0];
|
|
9
9
|
}, Y = function(t) {
|
|
10
10
|
return [t.deltaX, t.deltaY];
|
|
11
11
|
}, B = function(t) {
|
|
12
12
|
return t && "current" in t ? t.current : t;
|
|
13
|
-
},
|
|
13
|
+
}, p = function(t, c) {
|
|
14
14
|
return t[0] === c[0] && t[1] === c[1];
|
|
15
|
-
},
|
|
15
|
+
}, F = function(t) {
|
|
16
16
|
return `
|
|
17
17
|
.block-interactivity-`.concat(t, ` {pointer-events: none;}
|
|
18
18
|
.allow-interactivity-`).concat(t, ` {pointer-events: all;}
|
|
19
19
|
`);
|
|
20
|
-
},
|
|
21
|
-
function
|
|
22
|
-
var c = n.useRef([]), E = n.useRef([0, 0]), d = n.useRef(),
|
|
20
|
+
}, K = 0, f = [];
|
|
21
|
+
function z(t) {
|
|
22
|
+
var c = n.useRef([]), E = n.useRef([0, 0]), d = n.useRef(), h = n.useState(K++)[0], m = n.useState(I)[0], g = n.useRef(t);
|
|
23
23
|
n.useEffect(function() {
|
|
24
24
|
g.current = t;
|
|
25
25
|
}, [t]), n.useEffect(function() {
|
|
26
26
|
if (t.inert) {
|
|
27
|
-
document.body.classList.add("block-interactivity-".concat(
|
|
27
|
+
document.body.classList.add("block-interactivity-".concat(h));
|
|
28
28
|
var e = x([t.lockRef.current], (t.shards || []).map(B), !0).filter(Boolean);
|
|
29
29
|
return e.forEach(function(r) {
|
|
30
|
-
return r.classList.add("allow-interactivity-".concat(
|
|
30
|
+
return r.classList.add("allow-interactivity-".concat(h));
|
|
31
31
|
}), function() {
|
|
32
|
-
document.body.classList.remove("block-interactivity-".concat(
|
|
33
|
-
return r.classList.remove("allow-interactivity-".concat(
|
|
32
|
+
document.body.classList.remove("block-interactivity-".concat(h)), e.forEach(function(r) {
|
|
33
|
+
return r.classList.remove("allow-interactivity-".concat(h));
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
}, [t.inert, t.lockRef.current, t.shards]);
|
|
38
|
-
var
|
|
39
|
-
if ("touches" in e && e.touches.length === 2)
|
|
38
|
+
var k = n.useCallback(function(e, r) {
|
|
39
|
+
if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey)
|
|
40
40
|
return !g.current.allowPinchZoom;
|
|
41
|
-
var l =
|
|
42
|
-
if ("touches" in e &&
|
|
41
|
+
var l = b(e), o = E.current, u = "deltaX" in e ? e.deltaX : o[0] - l[0], i = "deltaY" in e ? e.deltaY : o[1] - l[1], a, C = e.target, v = Math.abs(u) > Math.abs(i) ? "h" : "v";
|
|
42
|
+
if ("touches" in e && v === "h" && C.type === "range")
|
|
43
43
|
return !1;
|
|
44
|
-
var
|
|
45
|
-
if (!
|
|
44
|
+
var y = T(v, C);
|
|
45
|
+
if (!y)
|
|
46
46
|
return !0;
|
|
47
|
-
if (
|
|
47
|
+
if (y ? a = v : (a = v === "v" ? "h" : "v", y = T(v, C)), !y)
|
|
48
48
|
return !1;
|
|
49
49
|
if (!d.current && "changedTouches" in e && (u || i) && (d.current = a), !a)
|
|
50
50
|
return !0;
|
|
@@ -53,8 +53,8 @@ function G(t) {
|
|
|
53
53
|
}, []), S = n.useCallback(function(e) {
|
|
54
54
|
var r = e;
|
|
55
55
|
if (!(!f.length || f[f.length - 1] !== m)) {
|
|
56
|
-
var l = "deltaY" in r ? Y(r) :
|
|
57
|
-
return a.name === r.type && (a.target === r.target || r.target === a.shadowParent) &&
|
|
56
|
+
var l = "deltaY" in r ? Y(r) : b(r), o = c.current.filter(function(a) {
|
|
57
|
+
return a.name === r.type && (a.target === r.target || r.target === a.shadowParent) && p(a.delta, l);
|
|
58
58
|
})[0];
|
|
59
59
|
if (o && o.should) {
|
|
60
60
|
r.cancelable && r.preventDefault();
|
|
@@ -63,23 +63,23 @@ function G(t) {
|
|
|
63
63
|
if (!o) {
|
|
64
64
|
var u = (g.current.shards || []).map(B).filter(Boolean).filter(function(a) {
|
|
65
65
|
return a.contains(r.target);
|
|
66
|
-
}), i = u.length > 0 ?
|
|
66
|
+
}), i = u.length > 0 ? k(r, u[0]) : !g.current.noIsolation;
|
|
67
67
|
i && r.cancelable && r.preventDefault();
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
}, []), R = n.useCallback(function(e, r, l, o) {
|
|
71
|
-
var u = { name: e, delta: r, target: l, should: o, shadowParent:
|
|
71
|
+
var u = { name: e, delta: r, target: l, should: o, shadowParent: O(l) };
|
|
72
72
|
c.current.push(u), setTimeout(function() {
|
|
73
73
|
c.current = c.current.filter(function(i) {
|
|
74
74
|
return i !== u;
|
|
75
75
|
});
|
|
76
76
|
}, 1);
|
|
77
77
|
}, []), w = n.useCallback(function(e) {
|
|
78
|
-
E.current =
|
|
78
|
+
E.current = b(e), d.current = void 0;
|
|
79
79
|
}, []), L = n.useCallback(function(e) {
|
|
80
|
-
R(e.type, Y(e), e.target,
|
|
80
|
+
R(e.type, Y(e), e.target, k(e, t.lockRef.current));
|
|
81
81
|
}, []), M = n.useCallback(function(e) {
|
|
82
|
-
R(e.type,
|
|
82
|
+
R(e.type, b(e), e.target, k(e, t.lockRef.current));
|
|
83
83
|
}, []);
|
|
84
84
|
n.useEffect(function() {
|
|
85
85
|
return f.push(m), t.setCallbacks({
|
|
@@ -96,17 +96,17 @@ function G(t) {
|
|
|
96
96
|
return n.createElement(
|
|
97
97
|
n.Fragment,
|
|
98
98
|
null,
|
|
99
|
-
D ? n.createElement(m, { styles:
|
|
99
|
+
D ? n.createElement(m, { styles: F(h) }) : null,
|
|
100
100
|
X ? n.createElement(A, { gapMode: t.gapMode }) : null
|
|
101
101
|
);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function O(t) {
|
|
104
104
|
for (var c = null; t !== null; )
|
|
105
105
|
t instanceof ShadowRoot && (c = t.host, t = t.host), t = t.parentNode;
|
|
106
106
|
return c;
|
|
107
107
|
}
|
|
108
108
|
export {
|
|
109
|
-
|
|
109
|
+
z as RemoveScrollSideCar,
|
|
110
110
|
Y as getDeltaXY,
|
|
111
|
-
|
|
111
|
+
b as getTouchXY
|
|
112
112
|
};
|