@phillips/seldon 1.32.0 → 1.33.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.
Files changed (66) hide show
  1. package/dist/components/Button/Button.d.ts +1 -1
  2. package/dist/components/Button/Button.js +39 -34
  3. package/dist/components/Drawer/Drawer.d.ts +23 -0
  4. package/dist/components/Drawer/Drawer.js +46 -0
  5. package/dist/index.d.ts +1 -0
  6. package/dist/index.js +34 -32
  7. package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +6 -6
  8. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +8 -8
  9. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +3 -3
  10. package/dist/node_modules/@radix-ui/react-context/dist/index.js +67 -0
  11. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +260 -0
  12. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +128 -0
  13. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +18 -0
  14. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +137 -0
  15. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +16 -0
  16. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +35 -0
  17. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
  18. package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
  19. package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
  20. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
  21. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
  22. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
  23. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
  24. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +62 -0
  25. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
  26. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
  27. package/dist/node_modules/react-remove-scroll/node_modules/tslib/tslib.es6.js +27 -0
  28. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
  29. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
  30. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
  31. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
  32. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
  33. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
  34. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
  35. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
  36. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
  37. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
  38. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
  39. package/dist/node_modules/use-sidecar/node_modules/tslib/tslib.es6.js +21 -0
  40. package/dist/scss/_vars.scss +2 -0
  41. package/dist/scss/components/Drawer/_drawer.scss +66 -0
  42. package/dist/scss/components/Subscribe/_subscribe.scss +1 -0
  43. package/dist/scss/styles.scss +1 -0
  44. package/package.json +7 -6
  45. package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-context/dist/index.js +0 -52
  46. package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-primitive/dist/index.js +0 -31
  47. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/primitive/dist/index.js +0 -9
  48. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -14
  49. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-context/dist/index.js +0 -52
  50. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-id/dist/index.js +0 -13
  51. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-primitive/dist/index.js +0 -31
  52. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-slot/dist/index.js +0 -48
  53. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -13
  54. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -32
  55. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
  56. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -14
  57. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-context/dist/index.js +0 -52
  58. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.js +0 -48
  59. /package/dist/node_modules/@radix-ui/{react-accordion/node_modules/@radix-ui/primitive → primitive}/dist/index.js +0 -0
  60. /package/dist/node_modules/@radix-ui/{react-accordion/node_modules/@radix-ui/react-compose-refs → react-compose-refs}/dist/index.js +0 -0
  61. /package/dist/node_modules/@radix-ui/{react-accordion/node_modules/@radix-ui/react-id → react-id}/dist/index.js +0 -0
  62. /package/dist/node_modules/@radix-ui/{react-collapsible/node_modules/@radix-ui/react-presence → react-presence}/dist/index.js +0 -0
  63. /package/dist/node_modules/@radix-ui/{react-accordion/node_modules/@radix-ui/react-slot → react-slot}/dist/index.js +0 -0
  64. /package/dist/node_modules/@radix-ui/{react-accordion/node_modules/@radix-ui/react-use-callback-ref → react-use-callback-ref}/dist/index.js +0 -0
  65. /package/dist/node_modules/@radix-ui/{react-accordion/node_modules/@radix-ui/react-use-controllable-state → react-use-controllable-state}/dist/index.js +0 -0
  66. /package/dist/node_modules/@radix-ui/{react-accordion/node_modules/@radix-ui/react-use-layout-effect → react-use-layout-effect}/dist/index.js +0 -0
@@ -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
+ };
@@ -0,0 +1,71 @@
1
+ import * as d from "react";
2
+ import { styleSingleton as f } from "../../../react-style-singleton/dist/es2015/component.js";
3
+ import { noScrollbarsClassName as p, zeroRightClassName as g, fullWidthClassName as l, removedBarSizeVariable as v } from "./constants.js";
4
+ import { getGapWidth as m } from "./utils.js";
5
+ var b = f(), e = "data-scroll-locked", h = function(n, a, o, t) {
6
+ var r = n.left, i = n.top, s = n.right, c = n.gap;
7
+ return o === void 0 && (o = "margin"), `
8
+ .`.concat(p, ` {
9
+ overflow: hidden `).concat(t, `;
10
+ padding-right: `).concat(c, "px ").concat(t, `;
11
+ }
12
+ body[`).concat(e, `] {
13
+ overflow: hidden `).concat(t, `;
14
+ overscroll-behavior: contain;
15
+ `).concat([
16
+ a && "position: relative ".concat(t, ";"),
17
+ o === "margin" && `
18
+ padding-left: `.concat(r, `px;
19
+ padding-top: `).concat(i, `px;
20
+ padding-right: `).concat(s, `px;
21
+ margin-left:0;
22
+ margin-top:0;
23
+ margin-right: `).concat(c, "px ").concat(t, `;
24
+ `),
25
+ o === "padding" && "padding-right: ".concat(c, "px ").concat(t, ";")
26
+ ].filter(Boolean).join(""), `
27
+ }
28
+
29
+ .`).concat(g, ` {
30
+ right: `).concat(c, "px ").concat(t, `;
31
+ }
32
+
33
+ .`).concat(l, ` {
34
+ margin-right: `).concat(c, "px ").concat(t, `;
35
+ }
36
+
37
+ .`).concat(g, " .").concat(g, ` {
38
+ right: 0 `).concat(t, `;
39
+ }
40
+
41
+ .`).concat(l, " .").concat(l, ` {
42
+ margin-right: 0 `).concat(t, `;
43
+ }
44
+
45
+ body[`).concat(e, `] {
46
+ `).concat(v, ": ").concat(c, `px;
47
+ }
48
+ `);
49
+ }, u = function() {
50
+ var n = parseInt(document.body.getAttribute(e) || "0", 10);
51
+ return isFinite(n) ? n : 0;
52
+ }, x = function() {
53
+ d.useEffect(function() {
54
+ return document.body.setAttribute(e, (u() + 1).toString()), function() {
55
+ var n = u() - 1;
56
+ n <= 0 ? document.body.removeAttribute(e) : document.body.setAttribute(e, n.toString());
57
+ };
58
+ }, []);
59
+ }, C = function(n) {
60
+ var a = n.noRelative, o = n.noImportant, t = n.gapMode, r = t === void 0 ? "margin" : t;
61
+ x();
62
+ var i = d.useMemo(function() {
63
+ return m(r);
64
+ }, [r]);
65
+ return d.createElement(b, { styles: h(i, !a, r, o ? "" : "!important") });
66
+ };
67
+ export {
68
+ C as RemoveScrollBar,
69
+ e as lockAttribute,
70
+ x as useLockAttribute
71
+ };
@@ -0,0 +1,7 @@
1
+ var r = "right-scroll-bar-position", a = "width-before-scroll-bar", l = "with-scroll-bars-hidden", e = "--removed-body-scroll-bar-size";
2
+ export {
3
+ a as fullWidthClassName,
4
+ l as noScrollbarsClassName,
5
+ e as removedBarSizeVariable,
6
+ r as zeroRightClassName
7
+ };
@@ -0,0 +1,25 @@
1
+ var a = {
2
+ left: 0,
3
+ top: 0,
4
+ right: 0,
5
+ gap: 0
6
+ }, e = function(t) {
7
+ return parseInt(t || "", 10) || 0;
8
+ }, o = function(t) {
9
+ var n = window.getComputedStyle(document.body), i = n[t === "padding" ? "paddingLeft" : "marginLeft"], r = n[t === "padding" ? "paddingTop" : "marginTop"], d = n[t === "padding" ? "paddingRight" : "marginRight"];
10
+ return [e(i), e(r), e(d)];
11
+ }, f = function(t) {
12
+ if (t === void 0 && (t = "margin"), typeof window == "undefined")
13
+ return a;
14
+ var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
15
+ return {
16
+ left: n[0],
17
+ top: n[1],
18
+ right: n[2],
19
+ gap: Math.max(0, r - i + n[2] - n[0])
20
+ };
21
+ };
22
+ export {
23
+ f as getGapWidth,
24
+ a as zeroGap
25
+ };
@@ -0,0 +1,11 @@
1
+ import { styleHookSingleton as o } from "./hook.js";
2
+ var s = function() {
3
+ var e = o(), n = function(t) {
4
+ var r = t.styles, l = t.dynamic;
5
+ return e(r, l), null;
6
+ };
7
+ return n;
8
+ };
9
+ export {
10
+ s as styleSingleton
11
+ };
@@ -0,0 +1,15 @@
1
+ import * as o from "react";
2
+ import { stylesheetSingleton as r } from "./singleton.js";
3
+ var i = function() {
4
+ var t = r();
5
+ return function(e, n) {
6
+ o.useEffect(function() {
7
+ return t.add(e), function() {
8
+ t.remove();
9
+ };
10
+ }, [e && n]);
11
+ };
12
+ };
13
+ export {
14
+ i as styleHookSingleton
15
+ };
@@ -0,0 +1,30 @@
1
+ import { getNonce as o } from "../../../get-nonce/dist/es2015/index.js";
2
+ function r() {
3
+ if (!document)
4
+ return null;
5
+ var t = document.createElement("style");
6
+ t.type = "text/css";
7
+ var e = o();
8
+ return e && t.setAttribute("nonce", e), t;
9
+ }
10
+ function l(t, e) {
11
+ t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
12
+ }
13
+ function a(t) {
14
+ var e = document.head || document.getElementsByTagName("head")[0];
15
+ e.appendChild(t);
16
+ }
17
+ var c = function() {
18
+ var t = 0, e = null;
19
+ return {
20
+ add: function(n) {
21
+ t == 0 && (e = r()) && (l(e, n), a(e)), t++;
22
+ },
23
+ remove: function() {
24
+ t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
25
+ }
26
+ };
27
+ };
28
+ export {
29
+ c as stylesheetSingleton
30
+ };
@@ -0,0 +1,6 @@
1
+ function i(n, t) {
2
+ return typeof n == "function" ? n(t) : n && (n.current = t), n;
3
+ }
4
+ export {
5
+ i as assignRef
6
+ };
@@ -0,0 +1,26 @@
1
+ import * as f from "react";
2
+ import { assignRef as o } from "./assignRef.js";
3
+ import { useCallbackRef as l } from "./useRef.js";
4
+ var s = typeof window != "undefined" ? f.useLayoutEffect : f.useEffect, c = /* @__PURE__ */ new WeakMap();
5
+ function v(e, m) {
6
+ var t = l(null, function(n) {
7
+ return e.forEach(function(u) {
8
+ return o(u, n);
9
+ });
10
+ });
11
+ return s(function() {
12
+ var n = c.get(t);
13
+ if (n) {
14
+ var u = new Set(n), r = new Set(e), i = t.current;
15
+ u.forEach(function(a) {
16
+ r.has(a) || o(a, null);
17
+ }), r.forEach(function(a) {
18
+ u.has(a) || o(a, i);
19
+ });
20
+ }
21
+ c.set(t, e);
22
+ }, [e]), t;
23
+ }
24
+ export {
25
+ v as useMergeRefs
26
+ };
@@ -0,0 +1,25 @@
1
+ import { useState as u } from "react";
2
+ function n(c, r) {
3
+ var e = u(function() {
4
+ return {
5
+ // value
6
+ value: c,
7
+ // last callback
8
+ callback: r,
9
+ // "memoized" public interface
10
+ facade: {
11
+ get current() {
12
+ return e.value;
13
+ },
14
+ set current(a) {
15
+ var t = e.value;
16
+ t !== a && (e.value = a, e.callback(a, t));
17
+ }
18
+ }
19
+ };
20
+ })[0];
21
+ return e.callback = r, e.facade;
22
+ }
23
+ export {
24
+ n as useCallbackRef
25
+ };
@@ -0,0 +1,18 @@
1
+ import { __rest as o, __assign as d } from "../../node_modules/tslib/tslib.es6.js";
2
+ import * as n from "react";
3
+ var i = function(r) {
4
+ var e = r.sideCar, a = o(r, ["sideCar"]);
5
+ if (!e)
6
+ throw new Error("Sidecar: please provide `sideCar` property to import the right car");
7
+ var t = e.read();
8
+ if (!t)
9
+ throw new Error("Sidecar medium not found");
10
+ return n.createElement(t, d({}, a));
11
+ };
12
+ i.isSideCarExport = !0;
13
+ function p(r, e) {
14
+ return r.useMedium(e), i;
15
+ }
16
+ export {
17
+ p as exportSidecar
18
+ };
@@ -0,0 +1,67 @@
1
+ import { __assign as d } from "../../node_modules/tslib/tslib.es6.js";
2
+ function l(r) {
3
+ return r;
4
+ }
5
+ function h(r, t) {
6
+ t === void 0 && (t = l);
7
+ var e = [], o = !1, c = {
8
+ read: function() {
9
+ if (o)
10
+ throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
11
+ return e.length ? e[e.length - 1] : r;
12
+ },
13
+ useMedium: function(u) {
14
+ var n = t(u, o);
15
+ return e.push(n), function() {
16
+ e = e.filter(function(i) {
17
+ return i !== n;
18
+ });
19
+ };
20
+ },
21
+ assignSyncMedium: function(u) {
22
+ for (o = !0; e.length; ) {
23
+ var n = e;
24
+ e = [], n.forEach(u);
25
+ }
26
+ e = {
27
+ push: function(i) {
28
+ return u(i);
29
+ },
30
+ filter: function() {
31
+ return e;
32
+ }
33
+ };
34
+ },
35
+ assignMedium: function(u) {
36
+ o = !0;
37
+ var n = [];
38
+ if (e.length) {
39
+ var i = e;
40
+ e = [], i.forEach(u), n = e;
41
+ }
42
+ var s = function() {
43
+ var f = n;
44
+ n = [], f.forEach(u);
45
+ }, a = function() {
46
+ return Promise.resolve().then(s);
47
+ };
48
+ a(), e = {
49
+ push: function(f) {
50
+ n.push(f), a();
51
+ },
52
+ filter: function(f) {
53
+ return n = n.filter(f), e;
54
+ }
55
+ };
56
+ }
57
+ };
58
+ return c;
59
+ }
60
+ function v(r) {
61
+ r === void 0 && (r = {});
62
+ var t = h(null);
63
+ return t.options = d({ async: !0, ssr: !1 }, r), t;
64
+ }
65
+ export {
66
+ v as createSidecarMedium
67
+ };
@@ -0,0 +1,21 @@
1
+ var p = function() {
2
+ return p = Object.assign || function(o) {
3
+ for (var t, r = 1, n = arguments.length; r < n; r++) {
4
+ t = arguments[r];
5
+ for (var a in t) Object.prototype.hasOwnProperty.call(t, a) && (o[a] = t[a]);
6
+ }
7
+ return o;
8
+ }, p.apply(this, arguments);
9
+ };
10
+ function u(e, o) {
11
+ var t = {};
12
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && o.indexOf(r) < 0 && (t[r] = e[r]);
13
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
14
+ for (var n = 0, r = Object.getOwnPropertySymbols(e); n < r.length; n++)
15
+ o.indexOf(r[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[n]) && (t[r[n]] = e[r[n]]);
16
+ return t;
17
+ }
18
+ export {
19
+ p as __assign,
20
+ u as __rest
21
+ };
@@ -42,6 +42,7 @@ $clock-widget-red: $widget-red;
42
42
  $articker-red: #fc1e2b;
43
43
  $articker-orange: #ff8201;
44
44
  $articker-red-orange-gradient: linear-gradient(90deg, #fc1e2b, #ff8201);
45
+ $overlay-black: rgba(0, 0, 0, 80%);
45
46
 
46
47
  // Legacy mapping
47
48
  $pure-white: $white;
@@ -242,3 +243,4 @@ $size-sm: 'sm';
242
243
  $size-md: 'md';
243
244
  $size-lg: 'lg';
244
245
  $size-xl: 'xl';
246
+ $default-transition: 150ms cubic-bezier(0.16, 1, 0.3, 1);
@@ -0,0 +1,66 @@
1
+ @import '../../_vars';
2
+
3
+ .#{$px}-drawer {
4
+ align-items: center;
5
+ animation: content-show $default-transition;
6
+ background-color: $white;
7
+ display: flex;
8
+ flex-direction: column;
9
+ height: 100vh;
10
+ max-width: 600px;
11
+ padding: $padding-md;
12
+ position: fixed;
13
+ right: 0;
14
+ top: 0;
15
+ width: 100%;
16
+ z-index: 10;
17
+
18
+ &:focus {
19
+ outline: none;
20
+ }
21
+
22
+ @media (max-width: $breakpoint-sm) {
23
+ max-width: 100%;
24
+ }
25
+
26
+ &__overlay {
27
+ animation: overlay-show $default-transition;
28
+ background-color: $overlay-black;
29
+ inset: 0;
30
+ position: fixed;
31
+ z-index: 10;
32
+ }
33
+
34
+ &__close {
35
+ align-items: center;
36
+ border-radius: 100%;
37
+ color: $pure-black;
38
+ display: inline-flex;
39
+ justify-content: center;
40
+ position: absolute;
41
+ right: 10px;
42
+ top: 10px;
43
+ }
44
+
45
+ @keyframes overlay-show {
46
+ from {
47
+ opacity: 0;
48
+ }
49
+
50
+ to {
51
+ opacity: 1;
52
+ }
53
+ }
54
+
55
+ @keyframes content-show {
56
+ from {
57
+ opacity: 0;
58
+ transform: translateX(12rem);
59
+ }
60
+
61
+ to {
62
+ opacity: 1;
63
+ transform: translateX(0);
64
+ }
65
+ }
66
+ }
@@ -5,6 +5,7 @@
5
5
 
6
6
  .#{$px}-subscribe {
7
7
  max-width: 30rem;
8
+ width: 100%;
8
9
 
9
10
  &__title {
10
11
  @include text($heading3);
@@ -38,3 +38,4 @@
38
38
  @import 'components/Modal/modal';
39
39
  @import 'components/Accordion/accordion';
40
40
  @import 'components/Breadcrumb/breadcrumb';
41
+ @import 'components/Drawer/drawer';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.32.0",
3
+ "version": "1.33.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"
@@ -40,6 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@radix-ui/react-accordion": "^1.2.0",
43
+ "@radix-ui/react-dialog": "^1.1.1",
43
44
  "change-case": "^5.4.4",
44
45
  "classnames": "^2.5.1",
45
46
  "flatpickr": "^4.6.13",
@@ -77,10 +78,10 @@
77
78
  "eslint": "^8.57.0",
78
79
  "eslint-plugin-react": "^7.34.3",
79
80
  "eslint-plugin-react-hooks": "^4.6.2",
80
- "eslint-plugin-react-refresh": "^0.4.8",
81
+ "eslint-plugin-react-refresh": "^0.4.9",
81
82
  "eslint-plugin-storybook": "^0.8.0",
82
- "husky": "^9.1.2",
83
- "prettier": "3.3.2",
83
+ "husky": "^9.1.4",
84
+ "prettier": "3.3.3",
84
85
  "react": "^18.3.1",
85
86
  "react-docgen-typescript": "^2.2.2",
86
87
  "react-dom": "^18.2.0",
@@ -90,14 +91,14 @@
90
91
  "sass": "^1.77.8",
91
92
  "semantic-release": "^23.1.1",
92
93
  "storybook": "^8.1.4",
93
- "stylelint": "^16.6.1",
94
+ "stylelint": "^16.8.1",
94
95
  "stylelint-config-standard": "^36.0.1",
95
96
  "stylelint-config-standard-scss": "^13.1.0",
96
97
  "stylelint-order": "^6.0.4",
97
98
  "stylelint-scss": "^6.4.1",
98
99
  "ts-node": "^10.9.2",
99
100
  "typescript": "^5.5.4",
100
- "vite": "^5.3.3",
101
+ "vite": "^5.3.5",
101
102
  "vite-plugin-dts": "^2.3.0",
102
103
  "vite-plugin-svgr": "^4.2.0",
103
104
  "vite-tsconfig-paths": "^4.3.2",
@@ -1,52 +0,0 @@
1
- import * as i from "react";
2
- import { jsx as _ } from "react/jsx-runtime";
3
- function P(t, x = []) {
4
- let o = [];
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 });
11
- }
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}\``);
17
- }
18
- return m.displayName = u + "Provider", [m, S];
19
- }
20
- const s = () => {
21
- const u = o.map((e) => i.createContext(e));
22
- return function(n) {
23
- const r = (n == null ? void 0 : n[t]) || u;
24
- return i.useMemo(
25
- () => ({ [`__scope${t}`]: { ...n, [t]: r } }),
26
- [n, r]
27
- );
28
- };
29
- };
30
- return s.scopeName = t, [f, h(s, ...x)];
31
- }
32
- function h(...t) {
33
- const x = t[0];
34
- if (t.length === 1) return x;
35
- const o = () => {
36
- const f = t.map((s) => ({
37
- useScope: s(),
38
- scopeName: s.scopeName
39
- }));
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 };
44
- }, {});
45
- return i.useMemo(() => ({ [`__scope${x.scopeName}`]: e }), [e]);
46
- };
47
- };
48
- return o.scopeName = x.scopeName, o;
49
- }
50
- export {
51
- P as createContextScope
52
- };
@@ -1,31 +0,0 @@
1
- import * as f from "react";
2
- import "react-dom";
3
- import { Slot as n } from "../../react-slot/dist/index.js";
4
- import { jsx as s } from "react/jsx-runtime";
5
- var d = [
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
- ], c = d.reduce((o, r) => {
23
- const i = f.forwardRef((t, e) => {
24
- const { asChild: m, ...a } = t, p = m ? n : r;
25
- return typeof window != "undefined" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(p, { ...a, ref: e });
26
- });
27
- return i.displayName = `Primitive.${r}`, { ...o, [r]: i };
28
- }, {});
29
- export {
30
- c as Primitive
31
- };
@@ -1,9 +0,0 @@
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
- };
@@ -1,14 +0,0 @@
1
- import * as e from "react";
2
- function c(o, n) {
3
- typeof o == "function" ? o(n) : o != null && (o.current = n);
4
- }
5
- function u(...o) {
6
- return (n) => o.forEach((t) => c(t, n));
7
- }
8
- function i(...o) {
9
- return e.useCallback(u(...o), o);
10
- }
11
- export {
12
- u as composeRefs,
13
- i as useComposedRefs
14
- };
@@ -1,52 +0,0 @@
1
- import * as i from "react";
2
- import { jsx as _ } from "react/jsx-runtime";
3
- function P(t, x = []) {
4
- let o = [];
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 });
11
- }
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}\``);
17
- }
18
- return m.displayName = u + "Provider", [m, S];
19
- }
20
- const s = () => {
21
- const u = o.map((e) => i.createContext(e));
22
- return function(n) {
23
- const r = (n == null ? void 0 : n[t]) || u;
24
- return i.useMemo(
25
- () => ({ [`__scope${t}`]: { ...n, [t]: r } }),
26
- [n, r]
27
- );
28
- };
29
- };
30
- return s.scopeName = t, [f, h(s, ...x)];
31
- }
32
- function h(...t) {
33
- const x = t[0];
34
- if (t.length === 1) return x;
35
- const o = () => {
36
- const f = t.map((s) => ({
37
- useScope: s(),
38
- scopeName: s.scopeName
39
- }));
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 };
44
- }, {});
45
- return i.useMemo(() => ({ [`__scope${x.scopeName}`]: e }), [e]);
46
- };
47
- };
48
- return o.scopeName = x.scopeName, o;
49
- }
50
- export {
51
- P as createContextScope
52
- };
@@ -1,13 +0,0 @@
1
- import * as f from "react";
2
- import { useLayoutEffect as a } from "../../react-use-layout-effect/dist/index.js";
3
- var e = f.useId || (() => {
4
- }), r = 0;
5
- function i(o) {
6
- const [u, s] = f.useState(e());
7
- return a(() => {
8
- o || s((t) => t != null ? t : String(r++));
9
- }, [o]), o || (u ? `radix-${u}` : "");
10
- }
11
- export {
12
- i as useId
13
- };