@phillips/seldon 1.106.1 → 1.106.3

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.
Files changed (33) hide show
  1. package/dist/components/TextSymbol/TextSymbol.d.ts +6 -2
  2. package/dist/components/TextSymbol/TextSymbol.js +9 -8
  3. package/dist/components/TextSymbol/TextSymbol.stories.d.ts +2 -2
  4. package/dist/components/TextSymbol/types.d.ts +5 -0
  5. package/dist/components/TextSymbol/types.js +3 -2
  6. package/dist/components/TextSymbol/utils.d.ts +2 -0
  7. package/dist/components/TextSymbol/utils.js +29 -0
  8. package/dist/components/TextSymbol/utils.test.d.ts +1 -0
  9. package/dist/node_modules/@radix-ui/react-context/dist/index.js +35 -50
  10. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +11 -11
  11. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.js +9 -0
  12. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
  13. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.js +70 -0
  14. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +128 -0
  15. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-guards/dist/index.js +18 -0
  16. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-scope/dist/index.js +137 -0
  17. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.js +16 -0
  18. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.js +75 -0
  19. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.js +35 -0
  20. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.js +48 -0
  21. package/dist/node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
  22. package/dist/node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
  23. package/dist/node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
  24. package/dist/node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
  25. package/dist/node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +64 -0
  26. package/dist/node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
  27. package/dist/node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
  28. package/dist/node_modules/@radix-ui/react-dialog/node_modules/tslib/tslib.es6.js +27 -0
  29. package/dist/node_modules/exenv/index.js +1 -1
  30. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  31. package/dist/scss/components/TextSymbol/_textSymbol.scss +12 -1
  32. package/dist/scss/patterns/ObjectTile/_objectTile.scss +5 -0
  33. package/package.json +4 -4
@@ -1,9 +1,13 @@
1
1
  import { TextSymbolVariants } from './types';
2
2
  export interface TextSymbolProps extends React.HTMLAttributes<HTMLElement> {
3
3
  /**
4
- * The varian of the text symbol which will determine the position and spacing
4
+ * An array of string symbols to show
5
+ */
6
+ symbols?: string[];
7
+ /**
8
+ * The variant of the text symbol which will determine the position and spacing
5
9
  */
6
10
  variant?: TextSymbolVariants;
7
11
  }
8
- declare const TextSymbol: ({ children, variant, className, ...props }: TextSymbolProps) => import("react/jsx-runtime").JSX.Element;
12
+ declare const TextSymbol: ({ symbols, variant, className, ...props }: TextSymbolProps) => import("react/jsx-runtime").JSX.Element;
9
13
  export default TextSymbol;
@@ -1,11 +1,12 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import l from "../../node_modules/classnames/index.js";
3
- import { getCommonProps as n } from "../../utils/index.js";
4
- import { TextSymbolVariants as c } from "./types.js";
5
- const x = ({ children: s, variant: t = c.lotNumber, className: a, ...m }) => {
6
- const { className: o, ...r } = n(m, "TextSymbol");
7
- return /* @__PURE__ */ e("span", { ...r, className: l(o, a, `${o}--${t}`), ...m, children: s });
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import i from "../../node_modules/classnames/index.js";
3
+ import { getCommonProps as c } from "../../utils/index.js";
4
+ import { TextSymbolVariants as p } from "./types.js";
5
+ import { determineSymbolSize as b } from "./utils.js";
6
+ const y = ({ symbols: r = [], variant: a = p.lotNumber, className: t, ...o }) => {
7
+ const { className: m, ...l } = c(o, "TextSymbol");
8
+ return /* @__PURE__ */ s("span", { ...l, className: i(m, t, `${m}--${a}`), ...o, children: r.map((e, n) => /* @__PURE__ */ s("span", { className: `${m}--${b(e)}-symbol`, children: e }, n)) });
8
9
  };
9
10
  export {
10
- x as default
11
+ y as default
11
12
  };
@@ -2,13 +2,13 @@ import { TextSymbolProps } from './TextSymbol';
2
2
  import { TextSymbolVariants } from './types';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: ({ children, variant, className, ...props }: TextSymbolProps) => import("react/jsx-runtime").JSX.Element;
5
+ component: ({ symbols, variant, className, ...props }: TextSymbolProps) => import("react/jsx-runtime").JSX.Element;
6
6
  };
7
7
  export default meta;
8
8
  export declare const Playground: {
9
9
  (props: TextSymbolProps): import("react/jsx-runtime").JSX.Element;
10
10
  args: {
11
- children: string;
11
+ symbols: string[];
12
12
  variant: TextSymbolVariants;
13
13
  };
14
14
  argTypes: {
@@ -2,3 +2,8 @@ export declare enum TextSymbolVariants {
2
2
  estimation = "estimation",
3
3
  lotNumber = "lotNumber"
4
4
  }
5
+ export declare enum TextSymbolSize {
6
+ small = "small",
7
+ medium = "medium",
8
+ large = "large"
9
+ }
@@ -1,4 +1,5 @@
1
- var e = /* @__PURE__ */ ((t) => (t.estimation = "estimation", t.lotNumber = "lotNumber", t))(e || {});
1
+ var m = /* @__PURE__ */ ((r) => (r.estimation = "estimation", r.lotNumber = "lotNumber", r))(m || {}), a = /* @__PURE__ */ ((r) => (r.small = "small", r.medium = "medium", r.large = "large", r))(a || {});
2
2
  export {
3
- e as TextSymbolVariants
3
+ a as TextSymbolSize,
4
+ m as TextSymbolVariants
4
5
  };
@@ -0,0 +1,2 @@
1
+ import { TextSymbolSize } from './types';
2
+ export declare const determineSymbolSize: (symbol: string) => TextSymbolSize;
@@ -0,0 +1,29 @@
1
+ import { TextSymbolSize as e } from "./types.js";
2
+ const c = (a) => {
3
+ switch (a) {
4
+ case "≌":
5
+ case "܀":
6
+ case "•":
7
+ return e.small;
8
+ case "▼":
9
+ case "♠":
10
+ case "≠":
11
+ return e.medium;
12
+ case "∞":
13
+ case "Ω":
14
+ case "Δ":
15
+ case "†":
16
+ case "◆":
17
+ case "Σ":
18
+ case "✱":
19
+ case "Ж":
20
+ case "Ο":
21
+ case "‡":
22
+ case "Ø":
23
+ default:
24
+ return e.large;
25
+ }
26
+ };
27
+ export {
28
+ c as determineSymbolSize
29
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,67 +1,52 @@
1
- import * as u from "react";
2
- import { jsx as C } from "react/jsx-runtime";
3
- function $(e, c) {
4
- const o = u.createContext(c);
5
- function a(r) {
6
- const { children: t, ...n } = r, s = u.useMemo(() => n, Object.values(n));
7
- return /* @__PURE__ */ C(o.Provider, { value: s, children: t });
8
- }
9
- function i(r) {
10
- const t = u.useContext(o);
11
- if (t) return t;
12
- if (c !== void 0) return c;
13
- throw new Error(`\`${r}\` must be used within \`${e}\``);
14
- }
15
- return a.displayName = e + "Provider", [a, i];
16
- }
17
- function w(e, c = []) {
1
+ import * as i from "react";
2
+ import { jsx as _ } from "react/jsx-runtime";
3
+ function P(t, x = []) {
18
4
  let o = [];
19
- function a(r, t) {
20
- const n = u.createContext(t), s = o.length;
21
- o = [...o, t];
22
- function m(d) {
23
- const { scope: x, children: p, ...f } = d, S = (x == null ? void 0 : x[e][s]) || n, h = u.useMemo(() => f, Object.values(f));
24
- return /* @__PURE__ */ C(S.Provider, { value: h, children: p });
5
+ function f(u, e) {
6
+ const n = i.createContext(e), r = o.length;
7
+ o = [...o, e];
8
+ function m(a) {
9
+ const { scope: c, children: C, ...p } = a, d = (c == null ? void 0 : c[t][r]) || n, v = i.useMemo(() => p, Object.values(p));
10
+ return /* @__PURE__ */ _(d.Provider, { value: v, children: C });
25
11
  }
26
- function v(d, x) {
27
- const p = (x == null ? void 0 : x[e][s]) || n, f = u.useContext(p);
28
- if (f) return f;
29
- if (t !== void 0) return t;
30
- throw new Error(`\`${d}\` must be used within \`${r}\``);
12
+ function S(a, c) {
13
+ const C = (c == null ? void 0 : c[t][r]) || n, p = i.useContext(C);
14
+ if (p) return p;
15
+ if (e !== void 0) return e;
16
+ throw new Error(`\`${a}\` must be used within \`${u}\``);
31
17
  }
32
- return m.displayName = r + "Provider", [m, v];
18
+ return m.displayName = u + "Provider", [m, S];
33
19
  }
34
- const i = () => {
35
- const r = o.map((t) => u.createContext(t));
20
+ const s = () => {
21
+ const u = o.map((e) => i.createContext(e));
36
22
  return function(n) {
37
- const s = (n == null ? void 0 : n[e]) || r;
38
- return u.useMemo(
39
- () => ({ [`__scope${e}`]: { ...n, [e]: s } }),
40
- [n, s]
23
+ const r = (n == null ? void 0 : n[t]) || u;
24
+ return i.useMemo(
25
+ () => ({ [`__scope${t}`]: { ...n, [t]: r } }),
26
+ [n, r]
41
27
  );
42
28
  };
43
29
  };
44
- return i.scopeName = e, [a, P(i, ...c)];
30
+ return s.scopeName = t, [f, h(s, ...x)];
45
31
  }
46
- function P(...e) {
47
- const c = e[0];
48
- if (e.length === 1) return c;
32
+ function h(...t) {
33
+ const x = t[0];
34
+ if (t.length === 1) return x;
49
35
  const o = () => {
50
- const a = e.map((i) => ({
51
- useScope: i(),
52
- scopeName: i.scopeName
36
+ const f = t.map((s) => ({
37
+ useScope: s(),
38
+ scopeName: s.scopeName
53
39
  }));
54
- return function(r) {
55
- const t = a.reduce((n, { useScope: s, scopeName: m }) => {
56
- const d = s(r)[`__scope${m}`];
57
- return { ...n, ...d };
40
+ return function(u) {
41
+ const e = f.reduce((n, { useScope: r, scopeName: m }) => {
42
+ const a = r(u)[`__scope${m}`];
43
+ return { ...n, ...a };
58
44
  }, {});
59
- return u.useMemo(() => ({ [`__scope${c.scopeName}`]: t }), [t]);
45
+ return i.useMemo(() => ({ [`__scope${x.scopeName}`]: e }), [e]);
60
46
  };
61
47
  };
62
- return o.scopeName = c.scopeName, o;
48
+ return o.scopeName = x.scopeName, o;
63
49
  }
64
50
  export {
65
- $ as createContext,
66
- w as createContextScope
51
+ P as createContextScope
67
52
  };
@@ -1,18 +1,18 @@
1
1
  import * as s from "react";
2
- import { composeEventHandlers as p } from "../../primitive/dist/index.js";
3
- import { useComposedRefs as R } from "../../react-compose-refs/dist/index.js";
4
- import { createContextScope as H, createContext as V } from "../../react-context/dist/index.js";
2
+ import { composeEventHandlers as p } from "../node_modules/@radix-ui/primitive/dist/index.js";
3
+ import { useComposedRefs as R } from "../node_modules/@radix-ui/react-compose-refs/dist/index.js";
4
+ import { createContextScope as H, createContext as V } from "../node_modules/@radix-ui/react-context/dist/index.js";
5
5
  import { useId as C } from "../../react-id/dist/index.js";
6
6
  import { useControllableState as q } from "../../react-use-controllable-state/dist/index.js";
7
- import { DismissableLayer as K } from "../../react-dismissable-layer/dist/index.js";
8
- import { FocusScope as U } from "../../react-focus-scope/dist/index.js";
9
- import { Portal as Y } from "../../react-portal/dist/index.js";
10
- import { Presence as _ } from "../../react-presence/dist/index.js";
11
- import { Primitive as m } from "../../react-primitive/dist/index.js";
12
- import { useFocusGuards as Z } from "../../react-focus-guards/dist/index.js";
13
- import z from "../../../react-remove-scroll/dist/es2015/Combination.js";
7
+ import { DismissableLayer as K } from "../node_modules/@radix-ui/react-dismissable-layer/dist/index.js";
8
+ import { FocusScope as U } from "../node_modules/@radix-ui/react-focus-scope/dist/index.js";
9
+ import { Portal as Y } from "../node_modules/@radix-ui/react-portal/dist/index.js";
10
+ import { Presence as _ } from "../node_modules/@radix-ui/react-presence/dist/index.js";
11
+ import { Primitive as m } from "../node_modules/@radix-ui/react-primitive/dist/index.js";
12
+ import { useFocusGuards as Z } from "../node_modules/@radix-ui/react-focus-guards/dist/index.js";
13
+ import z from "../node_modules/react-remove-scroll/dist/es2015/Combination.js";
14
14
  import { hideOthers as J } from "../../../aria-hidden/dist/es2015/index.js";
15
- import { Slot as Q } from "../../react-slot/dist/index.js";
15
+ import { Slot as Q } from "../node_modules/@radix-ui/react-slot/dist/index.js";
16
16
  import { jsx as i, jsxs as y, Fragment as I } from "react/jsx-runtime";
17
17
  var h = "Dialog", [O, Ne] = H(h), [X, u] = O(h), x = (e) => {
18
18
  const {
@@ -0,0 +1,9 @@
1
+ function h(f, c, { checkForDefaultPrevented: p = !0 } = {}) {
2
+ return function(s) {
3
+ if (f == null || f(s), p === !1 || !s.defaultPrevented)
4
+ return c == null ? void 0 : c(s);
5
+ };
6
+ }
7
+ export {
8
+ h as composeEventHandlers
9
+ };
@@ -0,0 +1,29 @@
1
+ import * as f from "react";
2
+ function l(n, o) {
3
+ if (typeof n == "function")
4
+ return n(o);
5
+ n != null && (n.current = o);
6
+ }
7
+ function i(...n) {
8
+ return (o) => {
9
+ let u = !1;
10
+ const c = n.map((t) => {
11
+ const e = l(t, o);
12
+ return !u && typeof e == "function" && (u = !0), e;
13
+ });
14
+ if (u)
15
+ return () => {
16
+ for (let t = 0; t < c.length; t++) {
17
+ const e = c[t];
18
+ typeof e == "function" ? e() : l(n[t], null);
19
+ }
20
+ };
21
+ };
22
+ }
23
+ function s(...n) {
24
+ return f.useCallback(i(...n), n);
25
+ }
26
+ export {
27
+ i as composeRefs,
28
+ s as useComposedRefs
29
+ };
@@ -0,0 +1,70 @@
1
+ import * as u from "react";
2
+ import { jsx as h } from "react/jsx-runtime";
3
+ function w(e, c) {
4
+ const o = u.createContext(c), a = (r) => {
5
+ const { children: t, ...n } = r, s = u.useMemo(() => n, Object.values(n));
6
+ return /* @__PURE__ */ h(o.Provider, { value: s, children: t });
7
+ };
8
+ a.displayName = e + "Provider";
9
+ function i(r) {
10
+ const t = u.useContext(o);
11
+ if (t) return t;
12
+ if (c !== void 0) return c;
13
+ throw new Error(`\`${r}\` must be used within \`${e}\``);
14
+ }
15
+ return [a, i];
16
+ }
17
+ function _(e, c = []) {
18
+ let o = [];
19
+ function a(r, t) {
20
+ const n = u.createContext(t), s = o.length;
21
+ o = [...o, t];
22
+ const p = (d) => {
23
+ var S;
24
+ const { scope: x, children: C, ...m } = d, v = ((S = x == null ? void 0 : x[e]) == null ? void 0 : S[s]) || n, P = u.useMemo(() => m, Object.values(m));
25
+ return /* @__PURE__ */ h(v.Provider, { value: P, children: C });
26
+ };
27
+ p.displayName = r + "Provider";
28
+ function f(d, x) {
29
+ var v;
30
+ const C = ((v = x == null ? void 0 : x[e]) == null ? void 0 : v[s]) || n, m = u.useContext(C);
31
+ if (m) return m;
32
+ if (t !== void 0) return t;
33
+ throw new Error(`\`${d}\` must be used within \`${r}\``);
34
+ }
35
+ return [p, f];
36
+ }
37
+ const i = () => {
38
+ const r = o.map((t) => u.createContext(t));
39
+ return function(n) {
40
+ const s = (n == null ? void 0 : n[e]) || r;
41
+ return u.useMemo(
42
+ () => ({ [`__scope${e}`]: { ...n, [e]: s } }),
43
+ [n, s]
44
+ );
45
+ };
46
+ };
47
+ return i.scopeName = e, [a, l(i, ...c)];
48
+ }
49
+ function l(...e) {
50
+ const c = e[0];
51
+ if (e.length === 1) return c;
52
+ const o = () => {
53
+ const a = e.map((i) => ({
54
+ useScope: i(),
55
+ scopeName: i.scopeName
56
+ }));
57
+ return function(r) {
58
+ const t = a.reduce((n, { useScope: s, scopeName: p }) => {
59
+ const d = s(r)[`__scope${p}`];
60
+ return { ...n, ...d };
61
+ }, {});
62
+ return u.useMemo(() => ({ [`__scope${c.scopeName}`]: t }), [t]);
63
+ };
64
+ };
65
+ return o.scopeName = c.scopeName, o;
66
+ }
67
+ export {
68
+ w as createContext,
69
+ _ as createContextScope
70
+ };
@@ -0,0 +1,128 @@
1
+ import * as n from "react";
2
+ import { composeEventHandlers as m } from "../../primitive/dist/index.js";
3
+ import { Primitive as R, dispatchDiscreteCustomEvent as U } from "../../react-primitive/dist/index.js";
4
+ import { useComposedRefs as w } from "../../react-compose-refs/dist/index.js";
5
+ import { useCallbackRef as T } from "../../../../../react-use-callback-ref/dist/index.js";
6
+ import { useEscapeKeydown as z } from "../../../../../react-use-escape-keydown/dist/index.js";
7
+ import { jsx as B } from "react/jsx-runtime";
8
+ var H = "DismissableLayer", y = "dismissableLayer.update", M = "dismissableLayer.pointerDownOutside", j = "dismissableLayer.focusOutside", O, x = n.createContext({
9
+ layers: /* @__PURE__ */ new Set(),
10
+ layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
11
+ branches: /* @__PURE__ */ new Set()
12
+ }), X = n.forwardRef(
13
+ (r, e) => {
14
+ var C;
15
+ const {
16
+ disableOutsidePointerEvents: i = !1,
17
+ onEscapeKeyDown: o,
18
+ onPointerDownOutside: t,
19
+ onFocusOutside: a,
20
+ onInteractOutside: l,
21
+ onDismiss: d,
22
+ ...v
23
+ } = r, c = n.useContext(x), [u, F] = n.useState(null), f = (C = u == null ? void 0 : u.ownerDocument) != null ? C : globalThis == null ? void 0 : globalThis.document, [, W] = n.useState({}), A = w(e, (s) => F(s)), p = Array.from(c.layers), [N] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), I = p.indexOf(N), b = u ? p.indexOf(u) : -1, _ = c.layersWithOutsidePointerEventsDisabled.size > 0, P = b >= I, k = G((s) => {
24
+ const E = s.target, L = [...c.branches].some((h) => h.contains(E));
25
+ !P || L || (t == null || t(s), l == null || l(s), s.defaultPrevented || d == null || d());
26
+ }, f), D = J((s) => {
27
+ const E = s.target;
28
+ [...c.branches].some((h) => h.contains(E)) || (a == null || a(s), l == null || l(s), s.defaultPrevented || d == null || d());
29
+ }, f);
30
+ return z((s) => {
31
+ b === c.layers.size - 1 && (o == null || o(s), !s.defaultPrevented && d && (s.preventDefault(), d()));
32
+ }, f), n.useEffect(() => {
33
+ if (u)
34
+ return i && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (O = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(u)), c.layers.add(u), g(), () => {
35
+ i && c.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = O);
36
+ };
37
+ }, [u, f, i, c]), n.useEffect(() => () => {
38
+ u && (c.layers.delete(u), c.layersWithOutsidePointerEventsDisabled.delete(u), g());
39
+ }, [u, c]), n.useEffect(() => {
40
+ const s = () => W({});
41
+ return document.addEventListener(y, s), () => document.removeEventListener(y, s);
42
+ }, []), /* @__PURE__ */ B(
43
+ R.div,
44
+ {
45
+ ...v,
46
+ ref: A,
47
+ style: {
48
+ pointerEvents: _ ? P ? "auto" : "none" : void 0,
49
+ ...r.style
50
+ },
51
+ onFocusCapture: m(r.onFocusCapture, D.onFocusCapture),
52
+ onBlurCapture: m(r.onBlurCapture, D.onBlurCapture),
53
+ onPointerDownCapture: m(
54
+ r.onPointerDownCapture,
55
+ k.onPointerDownCapture
56
+ )
57
+ }
58
+ );
59
+ }
60
+ );
61
+ X.displayName = H;
62
+ var Y = "DismissableLayerBranch", q = n.forwardRef((r, e) => {
63
+ const i = n.useContext(x), o = n.useRef(null), t = w(e, o);
64
+ return n.useEffect(() => {
65
+ const a = o.current;
66
+ if (a)
67
+ return i.branches.add(a), () => {
68
+ i.branches.delete(a);
69
+ };
70
+ }, [i.branches]), /* @__PURE__ */ B(R.div, { ...r, ref: t });
71
+ });
72
+ q.displayName = Y;
73
+ function G(r, e = globalThis == null ? void 0 : globalThis.document) {
74
+ const i = T(r), o = n.useRef(!1), t = n.useRef(() => {
75
+ });
76
+ return n.useEffect(() => {
77
+ const a = (d) => {
78
+ if (d.target && !o.current) {
79
+ let v = function() {
80
+ S(
81
+ M,
82
+ i,
83
+ c,
84
+ { discrete: !0 }
85
+ );
86
+ };
87
+ const c = { originalEvent: d };
88
+ d.pointerType === "touch" ? (e.removeEventListener("click", t.current), t.current = v, e.addEventListener("click", t.current, { once: !0 })) : v();
89
+ } else
90
+ e.removeEventListener("click", t.current);
91
+ o.current = !1;
92
+ }, l = window.setTimeout(() => {
93
+ e.addEventListener("pointerdown", a);
94
+ }, 0);
95
+ return () => {
96
+ window.clearTimeout(l), e.removeEventListener("pointerdown", a), e.removeEventListener("click", t.current);
97
+ };
98
+ }, [e, i]), {
99
+ // ensures we check React component tree (not just DOM tree)
100
+ onPointerDownCapture: () => o.current = !0
101
+ };
102
+ }
103
+ function J(r, e = globalThis == null ? void 0 : globalThis.document) {
104
+ const i = T(r), o = n.useRef(!1);
105
+ return n.useEffect(() => {
106
+ const t = (a) => {
107
+ a.target && !o.current && S(j, i, { originalEvent: a }, {
108
+ discrete: !1
109
+ });
110
+ };
111
+ return e.addEventListener("focusin", t), () => e.removeEventListener("focusin", t);
112
+ }, [e, i]), {
113
+ onFocusCapture: () => o.current = !0,
114
+ onBlurCapture: () => o.current = !1
115
+ };
116
+ }
117
+ function g() {
118
+ const r = new CustomEvent(y);
119
+ document.dispatchEvent(r);
120
+ }
121
+ function S(r, e, i, { discrete: o }) {
122
+ const t = i.originalEvent.target, a = new CustomEvent(r, { bubbles: !1, cancelable: !0, detail: i });
123
+ e && t.addEventListener(r, e, { once: !0 }), o ? U(t, a) : t.dispatchEvent(a);
124
+ }
125
+ export {
126
+ X as DismissableLayer,
127
+ q as DismissableLayerBranch
128
+ };
@@ -0,0 +1,18 @@
1
+ import * as u from "react";
2
+ var t = 0;
3
+ function c() {
4
+ u.useEffect(() => {
5
+ var n, o;
6
+ const e = document.querySelectorAll("[data-radix-focus-guard]");
7
+ return document.body.insertAdjacentElement("afterbegin", (n = e[0]) != null ? n : r()), document.body.insertAdjacentElement("beforeend", (o = e[1]) != null ? o : r()), t++, () => {
8
+ t === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((a) => a.remove()), t--;
9
+ };
10
+ }, []);
11
+ }
12
+ function r() {
13
+ const e = document.createElement("span");
14
+ return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
15
+ }
16
+ export {
17
+ c as useFocusGuards
18
+ };
@@ -0,0 +1,137 @@
1
+ import * as d from "react";
2
+ import { useComposedRefs as R } from "../../react-compose-refs/dist/index.js";
3
+ import { Primitive as M } from "../../react-primitive/dist/index.js";
4
+ import { useCallbackRef as N } from "../../../../../react-use-callback-ref/dist/index.js";
5
+ import { jsx as _ } from "react/jsx-runtime";
6
+ var F = "focusScope.autoFocusOnMount", T = "focusScope.autoFocusOnUnmount", y = { bubbles: !1, cancelable: !0 }, K = "FocusScope", k = d.forwardRef((e, n) => {
7
+ const {
8
+ loop: t = !1,
9
+ trapped: u = !1,
10
+ onMountAutoFocus: p,
11
+ onUnmountAutoFocus: L,
12
+ ...g
13
+ } = e, [s, U] = d.useState(null), E = N(p), v = N(L), b = d.useRef(null), A = R(n, (o) => U(o)), a = d.useRef({
14
+ paused: !1,
15
+ pause() {
16
+ this.paused = !0;
17
+ },
18
+ resume() {
19
+ this.paused = !1;
20
+ }
21
+ }).current;
22
+ d.useEffect(() => {
23
+ if (u) {
24
+ let o = function(i) {
25
+ if (a.paused || !s) return;
26
+ const c = i.target;
27
+ s.contains(c) ? b.current = c : f(b.current, { select: !0 });
28
+ }, l = function(i) {
29
+ if (a.paused || !s) return;
30
+ const c = i.relatedTarget;
31
+ c !== null && (s.contains(c) || f(b.current, { select: !0 }));
32
+ }, r = function(i) {
33
+ if (document.activeElement === document.body)
34
+ for (const h of i)
35
+ h.removedNodes.length > 0 && f(s);
36
+ };
37
+ document.addEventListener("focusin", o), document.addEventListener("focusout", l);
38
+ const m = new MutationObserver(r);
39
+ return s && m.observe(s, { childList: !0, subtree: !0 }), () => {
40
+ document.removeEventListener("focusin", o), document.removeEventListener("focusout", l), m.disconnect();
41
+ };
42
+ }
43
+ }, [u, s, a.paused]), d.useEffect(() => {
44
+ if (s) {
45
+ S.add(a);
46
+ const o = document.activeElement;
47
+ if (!s.contains(o)) {
48
+ const r = new CustomEvent(F, y);
49
+ s.addEventListener(F, E), s.dispatchEvent(r), r.defaultPrevented || (w(W(I(s)), { select: !0 }), document.activeElement === o && f(s));
50
+ }
51
+ return () => {
52
+ s.removeEventListener(F, E), setTimeout(() => {
53
+ const r = new CustomEvent(T, y);
54
+ s.addEventListener(T, v), s.dispatchEvent(r), r.defaultPrevented || f(o != null ? o : document.body, { select: !0 }), s.removeEventListener(T, v), S.remove(a);
55
+ }, 0);
56
+ };
57
+ }
58
+ }, [s, E, v, a]);
59
+ const P = d.useCallback(
60
+ (o) => {
61
+ if (!t && !u || a.paused) return;
62
+ const l = o.key === "Tab" && !o.altKey && !o.ctrlKey && !o.metaKey, r = document.activeElement;
63
+ if (l && r) {
64
+ const m = o.currentTarget, [i, c] = x(m);
65
+ i && c ? !o.shiftKey && r === c ? (o.preventDefault(), t && f(i, { select: !0 })) : o.shiftKey && r === i && (o.preventDefault(), t && f(c, { select: !0 })) : r === m && o.preventDefault();
66
+ }
67
+ },
68
+ [t, u, a.paused]
69
+ );
70
+ return /* @__PURE__ */ _(M.div, { tabIndex: -1, ...g, ref: A, onKeyDown: P });
71
+ });
72
+ k.displayName = K;
73
+ function w(e, { select: n = !1 } = {}) {
74
+ const t = document.activeElement;
75
+ for (const u of e)
76
+ if (f(u, { select: n }), document.activeElement !== t) return;
77
+ }
78
+ function x(e) {
79
+ const n = I(e), t = O(n, e), u = O(n.reverse(), e);
80
+ return [t, u];
81
+ }
82
+ function I(e) {
83
+ const n = [], t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
84
+ acceptNode: (u) => {
85
+ const p = u.tagName === "INPUT" && u.type === "hidden";
86
+ return u.disabled || u.hidden || p ? NodeFilter.FILTER_SKIP : u.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
87
+ }
88
+ });
89
+ for (; t.nextNode(); ) n.push(t.currentNode);
90
+ return n;
91
+ }
92
+ function O(e, n) {
93
+ for (const t of e)
94
+ if (!D(t, { upTo: n })) return t;
95
+ }
96
+ function D(e, { upTo: n }) {
97
+ if (getComputedStyle(e).visibility === "hidden") return !0;
98
+ for (; e; ) {
99
+ if (n !== void 0 && e === n) return !1;
100
+ if (getComputedStyle(e).display === "none") return !0;
101
+ e = e.parentElement;
102
+ }
103
+ return !1;
104
+ }
105
+ function H(e) {
106
+ return e instanceof HTMLInputElement && "select" in e;
107
+ }
108
+ function f(e, { select: n = !1 } = {}) {
109
+ if (e && e.focus) {
110
+ const t = document.activeElement;
111
+ e.focus({ preventScroll: !0 }), e !== t && H(e) && n && e.select();
112
+ }
113
+ }
114
+ var S = V();
115
+ function V() {
116
+ let e = [];
117
+ return {
118
+ add(n) {
119
+ const t = e[0];
120
+ n !== t && (t == null || t.pause()), e = C(e, n), e.unshift(n);
121
+ },
122
+ remove(n) {
123
+ var t;
124
+ e = C(e, n), (t = e[0]) == null || t.resume();
125
+ }
126
+ };
127
+ }
128
+ function C(e, n) {
129
+ const t = [...e], u = t.indexOf(n);
130
+ return u !== -1 && t.splice(u, 1), t;
131
+ }
132
+ function W(e) {
133
+ return e.filter((n) => n.tagName !== "A");
134
+ }
135
+ export {
136
+ k as FocusScope
137
+ };
@@ -0,0 +1,16 @@
1
+ import * as r from "react";
2
+ import s from "react-dom";
3
+ import { Primitive as c } from "../../react-primitive/dist/index.js";
4
+ import { useLayoutEffect as u } from "../../../../../react-use-layout-effect/dist/index.js";
5
+ import { jsx as l } from "react/jsx-runtime";
6
+ var p = "Portal", d = r.forwardRef((e, a) => {
7
+ var o;
8
+ const { container: f, ...i } = e, [m, n] = r.useState(!1);
9
+ u(() => n(!0), []);
10
+ const t = f || m && ((o = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : o.body);
11
+ return t ? s.createPortal(/* @__PURE__ */ l(c.div, { ...i, ref: a }), t) : null;
12
+ });
13
+ d.displayName = p;
14
+ export {
15
+ d as Portal
16
+ };
@@ -0,0 +1,75 @@
1
+ import * as a from "react";
2
+ import { useComposedRefs as E } from "../../react-compose-refs/dist/index.js";
3
+ import { useLayoutEffect as M } from "../../../../../react-use-layout-effect/dist/index.js";
4
+ function T(n, e) {
5
+ return a.useReducer((r, t) => {
6
+ const o = e[r][t];
7
+ return o != null ? o : r;
8
+ }, n);
9
+ }
10
+ var R = (n) => {
11
+ const { present: e, children: r } = n, t = v(e), o = typeof r == "function" ? r({ present: t.isPresent }) : a.Children.only(r), c = E(t.ref, P(o));
12
+ return typeof r == "function" || t.isPresent ? a.cloneElement(o, { ref: c }) : null;
13
+ };
14
+ R.displayName = "Presence";
15
+ function v(n) {
16
+ const [e, r] = a.useState(), t = a.useRef({}), o = a.useRef(n), c = a.useRef("none"), A = n ? "mounted" : "unmounted", [N, s] = T(A, {
17
+ mounted: {
18
+ UNMOUNT: "unmounted",
19
+ ANIMATION_OUT: "unmountSuspended"
20
+ },
21
+ unmountSuspended: {
22
+ MOUNT: "mounted",
23
+ ANIMATION_END: "unmounted"
24
+ },
25
+ unmounted: {
26
+ MOUNT: "mounted"
27
+ }
28
+ });
29
+ return a.useEffect(() => {
30
+ const i = l(t.current);
31
+ c.current = N === "mounted" ? i : "none";
32
+ }, [N]), M(() => {
33
+ const i = t.current, m = o.current;
34
+ if (m !== n) {
35
+ const u = c.current, d = l(i);
36
+ n ? s("MOUNT") : d === "none" || (i == null ? void 0 : i.display) === "none" ? s("UNMOUNT") : s(m && u !== d ? "ANIMATION_OUT" : "UNMOUNT"), o.current = n;
37
+ }
38
+ }, [n, s]), M(() => {
39
+ var i;
40
+ if (e) {
41
+ let m;
42
+ const p = (i = e.ownerDocument.defaultView) != null ? i : window, u = (f) => {
43
+ const g = l(t.current).includes(f.animationName);
44
+ if (f.target === e && g && (s("ANIMATION_END"), !o.current)) {
45
+ const O = e.style.animationFillMode;
46
+ e.style.animationFillMode = "forwards", m = p.setTimeout(() => {
47
+ e.style.animationFillMode === "forwards" && (e.style.animationFillMode = O);
48
+ });
49
+ }
50
+ }, d = (f) => {
51
+ f.target === e && (c.current = l(t.current));
52
+ };
53
+ return e.addEventListener("animationstart", d), e.addEventListener("animationcancel", u), e.addEventListener("animationend", u), () => {
54
+ p.clearTimeout(m), e.removeEventListener("animationstart", d), e.removeEventListener("animationcancel", u), e.removeEventListener("animationend", u);
55
+ };
56
+ } else
57
+ s("ANIMATION_END");
58
+ }, [e, s]), {
59
+ isPresent: ["mounted", "unmountSuspended"].includes(N),
60
+ ref: a.useCallback((i) => {
61
+ i && (t.current = getComputedStyle(i)), r(i);
62
+ }, [])
63
+ };
64
+ }
65
+ function l(n) {
66
+ return (n == null ? void 0 : n.animationName) || "none";
67
+ }
68
+ function P(n) {
69
+ var t, o;
70
+ let e = (t = Object.getOwnPropertyDescriptor(n.props, "ref")) == null ? void 0 : t.get, r = e && "isReactWarning" in e && e.isReactWarning;
71
+ return r ? n.ref : (e = (o = Object.getOwnPropertyDescriptor(n, "ref")) == null ? void 0 : o.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? n.props.ref : n.props.ref || n.ref);
72
+ }
73
+ export {
74
+ R as Presence
75
+ };
@@ -0,0 +1,35 @@
1
+ import * as s from "react";
2
+ import * as f from "react-dom";
3
+ import { Slot as p } from "../../react-slot/dist/index.js";
4
+ import { jsx as u } from "react/jsx-runtime";
5
+ var c = [
6
+ "a",
7
+ "button",
8
+ "div",
9
+ "form",
10
+ "h2",
11
+ "h3",
12
+ "img",
13
+ "input",
14
+ "label",
15
+ "li",
16
+ "nav",
17
+ "ol",
18
+ "p",
19
+ "span",
20
+ "svg",
21
+ "ul"
22
+ ], v = c.reduce((r, i) => {
23
+ const t = s.forwardRef((o, e) => {
24
+ const { asChild: m, ...a } = o, n = m ? p : i;
25
+ return typeof window != "undefined" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(n, { ...a, ref: e });
26
+ });
27
+ return t.displayName = `Primitive.${i}`, { ...r, [i]: t };
28
+ }, {});
29
+ function h(r, i) {
30
+ r && f.flushSync(() => r.dispatchEvent(i));
31
+ }
32
+ export {
33
+ v as Primitive,
34
+ h as dispatchDiscreteCustomEvent
35
+ };
@@ -0,0 +1,48 @@
1
+ import * as l from "react";
2
+ import { composeRefs as u } from "../../react-compose-refs/dist/index.js";
3
+ import { jsx as c, Fragment as d } from "react/jsx-runtime";
4
+ var m = l.forwardRef((e, n) => {
5
+ const { children: r, ...t } = e, o = l.Children.toArray(r), i = o.find(y);
6
+ if (i) {
7
+ const s = i.props.children, a = o.map((p) => p === i ? l.Children.count(s) > 1 ? l.Children.only(null) : l.isValidElement(s) ? s.props.children : null : p);
8
+ return /* @__PURE__ */ c(f, { ...t, ref: n, children: l.isValidElement(s) ? l.cloneElement(s, void 0, a) : null });
9
+ }
10
+ return /* @__PURE__ */ c(f, { ...t, ref: n, children: r });
11
+ });
12
+ m.displayName = "Slot";
13
+ var f = l.forwardRef((e, n) => {
14
+ const { children: r, ...t } = e;
15
+ if (l.isValidElement(r)) {
16
+ const o = C(r);
17
+ return l.cloneElement(r, {
18
+ ...h(t, r.props),
19
+ // @ts-ignore
20
+ ref: n ? u(n, o) : o
21
+ });
22
+ }
23
+ return l.Children.count(r) > 1 ? l.Children.only(null) : null;
24
+ });
25
+ f.displayName = "SlotClone";
26
+ var g = ({ children: e }) => /* @__PURE__ */ c(d, { children: e });
27
+ function y(e) {
28
+ return l.isValidElement(e) && e.type === g;
29
+ }
30
+ function h(e, n) {
31
+ const r = { ...n };
32
+ for (const t in n) {
33
+ const o = e[t], i = n[t];
34
+ /^on[A-Z]/.test(t) ? o && i ? r[t] = (...a) => {
35
+ i(...a), o(...a);
36
+ } : o && (r[t] = o) : t === "style" ? r[t] = { ...o, ...i } : t === "className" && (r[t] = [o, i].filter(Boolean).join(" "));
37
+ }
38
+ return { ...e, ...r };
39
+ }
40
+ function C(e) {
41
+ var t, o;
42
+ let n = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, r = n && "isReactWarning" in n && n.isReactWarning;
43
+ return r ? e.ref : (n = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, r = n && "isReactWarning" in n && n.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
44
+ }
45
+ export {
46
+ m as Slot,
47
+ g as Slottable
48
+ };
@@ -0,0 +1,11 @@
1
+ import { __assign as m } from "../../../tslib/tslib.es6.js";
2
+ import * as r from "react";
3
+ import { RemoveScroll as e } from "./UI.js";
4
+ import t from "./sidecar.js";
5
+ var s = r.forwardRef(function(a, o) {
6
+ return r.createElement(e, m({}, a, { ref: o, sideCar: t }));
7
+ });
8
+ s.classNames = e.classNames;
9
+ export {
10
+ s as default
11
+ };
@@ -0,0 +1,112 @@
1
+ import { __spreadArray as x } from "../../../tslib/tslib.es6.js";
2
+ import * as n from "react";
3
+ import { RemoveScrollBar as A } from "../../../../../../react-remove-scroll-bar/dist/es2015/component.js";
4
+ import { styleSingleton as I } from "../../../../../../react-style-singleton/dist/es2015/component.js";
5
+ import { nonPassive as s } from "./aggresiveCapture.js";
6
+ import { locationCouldBeScrolled as T, handleScroll as W } from "./handleScroll.js";
7
+ var b = function(t) {
8
+ return "changedTouches" in t ? [t.changedTouches[0].clientX, t.changedTouches[0].clientY] : [0, 0];
9
+ }, Y = function(t) {
10
+ return [t.deltaX, t.deltaY];
11
+ }, B = function(t) {
12
+ return t && "current" in t ? t.current : t;
13
+ }, p = function(t, c) {
14
+ return t[0] === c[0] && t[1] === c[1];
15
+ }, F = function(t) {
16
+ return `
17
+ .block-interactivity-`.concat(t, ` {pointer-events: none;}
18
+ .allow-interactivity-`).concat(t, ` {pointer-events: all;}
19
+ `);
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
+ n.useEffect(function() {
24
+ g.current = t;
25
+ }, [t]), n.useEffect(function() {
26
+ if (t.inert) {
27
+ document.body.classList.add("block-interactivity-".concat(h));
28
+ var e = x([t.lockRef.current], (t.shards || []).map(B), !0).filter(Boolean);
29
+ return e.forEach(function(r) {
30
+ return r.classList.add("allow-interactivity-".concat(h));
31
+ }), function() {
32
+ document.body.classList.remove("block-interactivity-".concat(h)), e.forEach(function(r) {
33
+ return r.classList.remove("allow-interactivity-".concat(h));
34
+ });
35
+ };
36
+ }
37
+ }, [t.inert, t.lockRef.current, t.shards]);
38
+ var k = n.useCallback(function(e, r) {
39
+ if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey)
40
+ return !g.current.allowPinchZoom;
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
+ return !1;
44
+ var y = T(v, C);
45
+ if (!y)
46
+ return !0;
47
+ if (y ? a = v : (a = v === "v" ? "h" : "v", y = T(v, C)), !y)
48
+ return !1;
49
+ if (!d.current && "changedTouches" in e && (u || i) && (d.current = a), !a)
50
+ return !0;
51
+ var P = d.current || a;
52
+ return W(P, r, e, P === "h" ? u : i, !0);
53
+ }, []), S = n.useCallback(function(e) {
54
+ var r = e;
55
+ if (!(!f.length || f[f.length - 1] !== m)) {
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
+ })[0];
59
+ if (o && o.should) {
60
+ r.cancelable && r.preventDefault();
61
+ return;
62
+ }
63
+ if (!o) {
64
+ var u = (g.current.shards || []).map(B).filter(Boolean).filter(function(a) {
65
+ return a.contains(r.target);
66
+ }), i = u.length > 0 ? k(r, u[0]) : !g.current.noIsolation;
67
+ i && r.cancelable && r.preventDefault();
68
+ }
69
+ }
70
+ }, []), R = n.useCallback(function(e, r, l, o) {
71
+ var u = { name: e, delta: r, target: l, should: o, shadowParent: O(l) };
72
+ c.current.push(u), setTimeout(function() {
73
+ c.current = c.current.filter(function(i) {
74
+ return i !== u;
75
+ });
76
+ }, 1);
77
+ }, []), w = n.useCallback(function(e) {
78
+ E.current = b(e), d.current = void 0;
79
+ }, []), L = n.useCallback(function(e) {
80
+ R(e.type, Y(e), e.target, k(e, t.lockRef.current));
81
+ }, []), M = n.useCallback(function(e) {
82
+ R(e.type, b(e), e.target, k(e, t.lockRef.current));
83
+ }, []);
84
+ n.useEffect(function() {
85
+ return f.push(m), t.setCallbacks({
86
+ onScrollCapture: L,
87
+ onWheelCapture: L,
88
+ onTouchMoveCapture: M
89
+ }), document.addEventListener("wheel", S, s), document.addEventListener("touchmove", S, s), document.addEventListener("touchstart", w, s), function() {
90
+ f = f.filter(function(e) {
91
+ return e !== m;
92
+ }), document.removeEventListener("wheel", S, s), document.removeEventListener("touchmove", S, s), document.removeEventListener("touchstart", w, s);
93
+ };
94
+ }, []);
95
+ var X = t.removeScrollBar, D = t.inert;
96
+ return n.createElement(
97
+ n.Fragment,
98
+ null,
99
+ D ? n.createElement(m, { styles: F(h) }) : null,
100
+ X ? n.createElement(A, { gapMode: t.gapMode }) : null
101
+ );
102
+ }
103
+ function O(t) {
104
+ for (var c = null; t !== null; )
105
+ t instanceof ShadowRoot && (c = t.host, t = t.host), t = t.parentNode;
106
+ return c;
107
+ }
108
+ export {
109
+ z as RemoveScrollSideCar,
110
+ Y as getDeltaXY,
111
+ b as getTouchXY
112
+ };
@@ -0,0 +1,31 @@
1
+ import { __rest as k, __assign as r } from "../../../tslib/tslib.es6.js";
2
+ import * as a from "react";
3
+ import { fullWidthClassName as E, zeroRightClassName as I } from "../../../../../../react-remove-scroll-bar/dist/es2015/constants.js";
4
+ import { effectCar as Z } from "./medium.js";
5
+ import { useMergeRefs as W } from "../../../../../../use-callback-ref/dist/es2015/useMergeRef.js";
6
+ var o = function() {
7
+ }, m = a.forwardRef(function(e, d) {
8
+ var l = a.useRef(null), n = a.useState({
9
+ onScrollCapture: o,
10
+ onWheelCapture: o,
11
+ onTouchMoveCapture: o
12
+ }), f = n[0], h = n[1], u = e.forwardProps, t = e.children, v = e.className, C = e.removeScrollBar, g = e.enabled, P = e.shards, R = e.sideCar, S = e.noIsolation, b = e.inert, w = e.allowPinchZoom, s = e.as, N = s === void 0 ? "div" : s, M = e.gapMode, _ = k(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), B = R, i = W([l, d]), c = r(r({}, _), f);
13
+ return a.createElement(
14
+ a.Fragment,
15
+ null,
16
+ g && a.createElement(B, { sideCar: Z, removeScrollBar: C, shards: P, noIsolation: S, inert: b, setCallbacks: h, allowPinchZoom: !!w, lockRef: l, gapMode: M }),
17
+ u ? a.cloneElement(a.Children.only(t), r(r({}, c), { ref: i })) : a.createElement(N, r({}, c, { className: v, ref: i }), t)
18
+ );
19
+ });
20
+ m.defaultProps = {
21
+ enabled: !0,
22
+ removeScrollBar: !0,
23
+ inert: !1
24
+ };
25
+ m.classNames = {
26
+ fullWidth: E,
27
+ zeroRight: I
28
+ };
29
+ export {
30
+ m as RemoveScroll
31
+ };
@@ -0,0 +1,16 @@
1
+ var r = !1;
2
+ if (typeof window != "undefined")
3
+ try {
4
+ var e = Object.defineProperty({}, "passive", {
5
+ get: function() {
6
+ return r = !0, !0;
7
+ }
8
+ });
9
+ window.addEventListener("test", e, e), window.removeEventListener("test", e, e);
10
+ } catch {
11
+ r = !1;
12
+ }
13
+ var a = r ? { passive: !1 } : !1;
14
+ export {
15
+ a as nonPassive
16
+ };
@@ -0,0 +1,64 @@
1
+ var p = function(e) {
2
+ return e.tagName === "TEXTAREA";
3
+ }, w = function(e, r) {
4
+ if (!(e instanceof Element))
5
+ return !1;
6
+ var o = window.getComputedStyle(e);
7
+ return (
8
+ // not-not-scrollable
9
+ o[r] !== "hidden" && // contains scroll inside self
10
+ !(o.overflowY === o.overflowX && !p(e) && o[r] === "visible")
11
+ );
12
+ }, y = function(e) {
13
+ return w(e, "overflowY");
14
+ }, H = function(e) {
15
+ return w(e, "overflowX");
16
+ }, R = function(e, r) {
17
+ var o = r.ownerDocument, t = r;
18
+ do {
19
+ typeof ShadowRoot != "undefined" && t instanceof ShadowRoot && (t = t.host);
20
+ var a = g(e, t);
21
+ if (a) {
22
+ var n = b(e, t), i = n[1], l = n[2];
23
+ if (i > l)
24
+ return !0;
25
+ }
26
+ t = t.parentNode;
27
+ } while (t && t !== o.body);
28
+ return !1;
29
+ }, B = function(e) {
30
+ var r = e.scrollTop, o = e.scrollHeight, t = e.clientHeight;
31
+ return [
32
+ r,
33
+ o,
34
+ t
35
+ ];
36
+ }, V = function(e) {
37
+ var r = e.scrollLeft, o = e.scrollWidth, t = e.clientWidth;
38
+ return [
39
+ r,
40
+ o,
41
+ t
42
+ ];
43
+ }, g = function(e, r) {
44
+ return e === "v" ? y(r) : H(r);
45
+ }, b = function(e, r) {
46
+ return e === "v" ? B(r) : V(r);
47
+ }, D = function(e, r) {
48
+ return e === "h" && r === "rtl" ? -1 : 1;
49
+ }, W = function(e, r, o, t, a) {
50
+ var n = D(e, window.getComputedStyle(r).direction), i = n * t, l = o.target, f = r.contains(l), c = !1, d = i > 0, s = 0, h = 0;
51
+ do {
52
+ var u = b(e, l), v = u[0], m = u[1], C = u[2], S = m - C - n * v;
53
+ (v || S) && g(e, l) && (s += S, h += v), l instanceof ShadowRoot ? l = l.host : l = l.parentNode;
54
+ } while (
55
+ // portaled content
56
+ !f && l !== document.body || // self content
57
+ f && (r.contains(l) || r === l)
58
+ );
59
+ return (d && (Math.abs(s) < 1 || !a) || !d && (Math.abs(h) < 1 || !a)) && (c = !0), c;
60
+ };
61
+ export {
62
+ W as handleScroll,
63
+ R as locationCouldBeScrolled
64
+ };
@@ -0,0 +1,5 @@
1
+ import { createSidecarMedium as e } from "../../../../../../use-sidecar/dist/es2015/medium.js";
2
+ var a = e();
3
+ export {
4
+ a as effectCar
5
+ };
@@ -0,0 +1,7 @@
1
+ import { RemoveScrollSideCar as r } from "./SideEffect.js";
2
+ import { effectCar as o } from "./medium.js";
3
+ import { exportSidecar as e } from "../../../../../../use-sidecar/dist/es2015/exports.js";
4
+ const f = e(o, r);
5
+ export {
6
+ f as default
7
+ };
@@ -0,0 +1,27 @@
1
+ var p = function() {
2
+ return p = Object.assign || function(e) {
3
+ for (var n, r = 1, o = arguments.length; r < o; r++) {
4
+ n = arguments[r];
5
+ for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
6
+ }
7
+ return e;
8
+ }, p.apply(this, arguments);
9
+ };
10
+ function c(t, e) {
11
+ var n = {};
12
+ for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
13
+ if (t != null && typeof Object.getOwnPropertySymbols == "function")
14
+ for (var o = 0, r = Object.getOwnPropertySymbols(t); o < r.length; o++)
15
+ e.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o]) && (n[r[o]] = t[r[o]]);
16
+ return n;
17
+ }
18
+ function l(t, e, n) {
19
+ if (n || arguments.length === 2) for (var r = 0, o = e.length, a; r < o; r++)
20
+ (a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
21
+ return t.concat(a || Array.prototype.slice.call(e));
22
+ }
23
+ export {
24
+ p as __assign,
25
+ c as __rest,
26
+ l as __spreadArray
27
+ };
@@ -1,4 +1,4 @@
1
- import { __module as t } from "../../_virtual/index5.js";
1
+ import { __module as t } from "../../_virtual/index6.js";
2
2
  /*!
3
3
  Copyright (c) 2015 Jed Watson.
4
4
  Based on code that is Copyright 2013-2015, Facebook, Inc.
@@ -1,4 +1,4 @@
1
- import { __module as e } from "../../../../_virtual/index6.js";
1
+ import { __module as e } from "../../../../_virtual/index5.js";
2
2
  import { __require as o } from "./cjs/react-is.production.min.js";
3
3
  import { __require as t } from "./cjs/react-is.development.js";
4
4
  var r;
@@ -8,8 +8,19 @@
8
8
  }
9
9
 
10
10
  &--lotNumber {
11
- font-size: 65%;
12
11
  margin-left: $spacing-xsm;
13
12
  vertical-align: super;
14
13
  }
14
+
15
+ &--large-symbol {
16
+ font-size: 65%;
17
+ }
18
+
19
+ &--medium-symbol {
20
+ font-size: 85%;
21
+ }
22
+
23
+ &--small-symbol {
24
+ font-size: 100%;
25
+ }
15
26
  }
@@ -47,6 +47,11 @@
47
47
  margin-bottom: 0;
48
48
  }
49
49
 
50
+ &__reference-number,
51
+ &__model {
52
+ font-style: italic;
53
+ }
54
+
50
55
  &__meta {
51
56
  margin-bottom: $spacing-sm;
52
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.106.1",
3
+ "version": "1.106.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"
@@ -43,7 +43,7 @@
43
43
  "@artsy/fresnel": "^7.1.4",
44
44
  "@radix-ui/react-accordion": "^1.2.0",
45
45
  "@radix-ui/react-collapsible": "^1.1.0",
46
- "@radix-ui/react-dialog": "^1.1.1",
46
+ "@radix-ui/react-dialog": "^1.1.4",
47
47
  "@radix-ui/react-select": "^2.1.1",
48
48
  "@radix-ui/react-tabs": "^1.1.1",
49
49
  "@types/dompurify": "^3.0.5",
@@ -105,10 +105,10 @@
105
105
  "react": "^18.3.1",
106
106
  "react-docgen-typescript": "^2.2.2",
107
107
  "react-dom": "^18.2.0",
108
- "rimraf": "^5.0.8",
108
+ "rimraf": "^6.0.1",
109
109
  "rollup-plugin-copy": "^3.5.0",
110
110
  "rollup-plugin-peer-deps-external": "^2.2.4",
111
- "sass": "^1.77.8",
111
+ "sass": "^1.83.1",
112
112
  "semantic-release": "^23.1.1",
113
113
  "storybook": "^8.1.4",
114
114
  "stylelint": "^16.8.1",