@phillips/seldon 1.53.1 → 1.54.1

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 (79) hide show
  1. package/dist/_virtual/Breakpoints.js +4 -0
  2. package/dist/_virtual/DynamicResponsive.js +4 -0
  3. package/dist/_virtual/Interactions.js +4 -0
  4. package/dist/_virtual/Media.js +4 -0
  5. package/dist/_virtual/MediaQueries.js +4 -0
  6. package/dist/_virtual/Utils.js +4 -0
  7. package/dist/_virtual/index2.js +2 -2
  8. package/dist/_virtual/index3.js +2 -2
  9. package/dist/_virtual/index4.js +2 -2
  10. package/dist/_virtual/index6.js +4 -0
  11. package/dist/components/{ReadMore/ReadMore.d.ts → ContentPeek/ContentPeek.d.ts} +8 -8
  12. package/dist/components/ContentPeek/ContentPeek.js +64 -0
  13. package/dist/components/ContentPeek/index.d.ts +1 -0
  14. package/dist/components/Navigation/Navigation.d.ts +1 -1
  15. package/dist/components/Navigation/Navigation.js +24 -24
  16. package/dist/components/Search/Search.js +1 -1
  17. package/dist/index.d.ts +13 -12
  18. package/dist/index.js +52 -50
  19. package/dist/node_modules/@artsy/fresnel/dist/Breakpoints.js +281 -0
  20. package/dist/node_modules/@artsy/fresnel/dist/DynamicResponsive.js +151 -0
  21. package/dist/node_modules/@artsy/fresnel/dist/Interactions.js +138 -0
  22. package/dist/node_modules/@artsy/fresnel/dist/Media.js +167 -0
  23. package/dist/node_modules/@artsy/fresnel/dist/MediaQueries.js +130 -0
  24. package/dist/node_modules/@artsy/fresnel/dist/Utils.js +94 -0
  25. package/dist/node_modules/@artsy/fresnel/dist/index.js +21 -0
  26. package/dist/node_modules/exenv/index.js +1 -1
  27. package/dist/node_modules/prop-types/index.js +1 -1
  28. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  29. package/dist/node_modules/react-modal/lib/index.js +1 -1
  30. package/dist/{components → patterns}/HeroBanner/HeroBanner.js +2 -2
  31. package/dist/patterns/LanguageSelector/LanguageSelector.js +74 -0
  32. package/dist/{components → patterns}/Social/Social.js +4 -4
  33. package/dist/{components → patterns}/Subscribe/Subscribe.d.ts +1 -1
  34. package/dist/{components → patterns}/Subscribe/Subscribe.js +3 -3
  35. package/dist/{components → patterns}/UserManagement/UserManagement.d.ts +1 -1
  36. package/dist/{components → patterns}/UserManagement/UserManagement.js +2 -2
  37. package/dist/{components → patterns}/ViewingsList/ViewingsList.js +1 -1
  38. package/dist/{components → patterns}/ViewingsList/ViewingsListCard.js +3 -3
  39. package/dist/{components → patterns}/ViewingsList/ViewingsListCardForm.js +1 -1
  40. package/dist/providers/SeldonProvider.d.ts +7 -0
  41. package/dist/providers/SeldonProvider.js +9 -0
  42. package/dist/providers/utils.d.ts +5 -0
  43. package/dist/providers/utils.js +8 -0
  44. package/dist/scss/_vars.scss +1 -1
  45. package/dist/scss/componentStyles.scss +13 -9
  46. package/dist/scss/components/{ReadMore/_readMore.scss → ContentPeek/_contentPeek.scss} +2 -2
  47. package/dist/scss/{components → patterns}/LanguageSelector/_languageSelector.scss +5 -22
  48. package/dist/scss/{components → site-furniture}/Header/_header.scss +0 -9
  49. package/dist/{components → site-furniture}/Footer/Footer.js +2 -2
  50. package/dist/{components → site-furniture}/Header/Header.d.ts +1 -1
  51. package/dist/{components → site-furniture}/Header/Header.js +23 -23
  52. package/dist/utils/constants.d.ts +8 -0
  53. package/dist/utils/constants.js +10 -0
  54. package/package.json +2 -1
  55. package/dist/components/LanguageSelector/LanguageSelector.js +0 -73
  56. package/dist/components/ReadMore/ReadMore.js +0 -57
  57. package/dist/components/ReadMore/index.d.ts +0 -1
  58. /package/dist/{components → patterns}/HeroBanner/HeroBanner.d.ts +0 -0
  59. /package/dist/{components → patterns}/LanguageSelector/LanguageSelector.d.ts +0 -0
  60. /package/dist/{components → patterns}/LanguageSelector/index.d.ts +0 -0
  61. /package/dist/{components → patterns}/Social/Social.d.ts +0 -0
  62. /package/dist/{components → patterns}/Subscribe/types.d.ts +0 -0
  63. /package/dist/{components → patterns}/Subscribe/types.js +0 -0
  64. /package/dist/{components → patterns}/UserManagement/types.d.ts +0 -0
  65. /package/dist/{components → patterns}/UserManagement/types.js +0 -0
  66. /package/dist/{components → patterns}/ViewingsList/StatefulViewingsList.d.ts +0 -0
  67. /package/dist/{components → patterns}/ViewingsList/StatefulViewingsList.js +0 -0
  68. /package/dist/{components → patterns}/ViewingsList/ViewingsList.d.ts +0 -0
  69. /package/dist/{components → patterns}/ViewingsList/ViewingsListCard.d.ts +0 -0
  70. /package/dist/{components → patterns}/ViewingsList/ViewingsListCardForm.d.ts +0 -0
  71. /package/dist/scss/{components → patterns}/HeroBanner/_heroBanner.scss +0 -0
  72. /package/dist/scss/{components → patterns}/Social/_social.scss +0 -0
  73. /package/dist/scss/{components → patterns}/Subscribe/_subscribe.scss +0 -0
  74. /package/dist/scss/{components → patterns}/UserManagement/_userManagement.scss +0 -0
  75. /package/dist/scss/{components → patterns}/ViewingsList/_viewingsList.scss +0 -0
  76. /package/dist/scss/{components → site-furniture}/Footer/_footer.scss +0 -0
  77. /package/dist/{components → site-furniture}/Footer/Footer.d.ts +0 -0
  78. /package/dist/{components → site-furniture}/Header/utils.d.ts +0 -0
  79. /package/dist/{components → site-furniture}/Header/utils.js +0 -0
@@ -0,0 +1,167 @@
1
+ import { __exports as j } from "../../../../_virtual/Media.js";
2
+ import T from "react";
3
+ import "./DynamicResponsive.js";
4
+ import "./MediaQueries.js";
5
+ import "./Utils.js";
6
+ import { __exports as D } from "../../../../_virtual/DynamicResponsive.js";
7
+ import { __exports as F } from "../../../../_virtual/MediaQueries.js";
8
+ import { __exports as V } from "../../../../_virtual/Utils.js";
9
+ Object.defineProperty(j, "__esModule", {
10
+ value: !0
11
+ });
12
+ j.createMedia = Z;
13
+ var o = H(T), q = D, A = F, u = V;
14
+ function H(e) {
15
+ return e && e.__esModule ? e : { default: e };
16
+ }
17
+ function U(e) {
18
+ return G(e) || $(e) || L(e) || z();
19
+ }
20
+ function z() {
21
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
22
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
23
+ }
24
+ function L(e, r) {
25
+ if (e) {
26
+ if (typeof e == "string") return g(e, r);
27
+ var t = Object.prototype.toString.call(e).slice(8, -1);
28
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
29
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return g(e, r);
30
+ }
31
+ }
32
+ function $(e) {
33
+ if (typeof Symbol != "undefined" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
34
+ }
35
+ function G(e) {
36
+ if (Array.isArray(e)) return g(e);
37
+ }
38
+ function g(e, r) {
39
+ (r == null || r > e.length) && (r = e.length);
40
+ for (var t = 0, a = new Array(r); t < r; t++)
41
+ a[t] = e[t];
42
+ return a;
43
+ }
44
+ function J(e) {
45
+ for (var r = 1; r < arguments.length; r++) {
46
+ var t = arguments[r] != null ? Object(arguments[r]) : {}, a = Object.keys(t);
47
+ typeof Object.getOwnPropertySymbols == "function" && a.push.apply(a, Object.getOwnPropertySymbols(t).filter(function(n) {
48
+ return Object.getOwnPropertyDescriptor(t, n).enumerable;
49
+ })), a.forEach(function(n) {
50
+ K(e, n, t[n]);
51
+ });
52
+ }
53
+ return e;
54
+ }
55
+ function K(e, r, t) {
56
+ return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
57
+ }
58
+ function X(e, r) {
59
+ if (e == null) return {};
60
+ var t = Y(e, r), a, n;
61
+ if (Object.getOwnPropertySymbols) {
62
+ var s = Object.getOwnPropertySymbols(e);
63
+ for (n = 0; n < s.length; n++)
64
+ a = s[n], !(r.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(e, a) && (t[a] = e[a]);
65
+ }
66
+ return t;
67
+ }
68
+ function Y(e, r) {
69
+ if (e == null) return {};
70
+ var t = {}, a = Object.keys(e), n, s;
71
+ for (s = 0; s < a.length; s++)
72
+ n = a[s], !(r.indexOf(n) >= 0) && (t[n] = e[n]);
73
+ return t;
74
+ }
75
+ function Z(e) {
76
+ var r = (0, u.castBreakpointsToIntegers)(e.breakpoints), t = new A.MediaQueries(r, e.interactions || {}), a = (0, q.createResponsiveComponents)(), n = o.default.createContext({});
77
+ n.displayName = "Media.Context";
78
+ var s = o.default.createContext({
79
+ hasParentMedia: !1,
80
+ breakpointProps: {}
81
+ });
82
+ n.displayName = "MediaParent.Context";
83
+ var k = (0, u.memoize)(function(v) {
84
+ return {
85
+ onlyMatch: v
86
+ };
87
+ }), E = function(i) {
88
+ var y = i.disableDynamicMediaQueries, d = i.onlyMatch, f = i.children;
89
+ if (y) {
90
+ var l = k(d);
91
+ return o.default.createElement(n.Provider, {
92
+ value: l
93
+ }, f);
94
+ } else
95
+ return o.default.createElement(a.Provider, {
96
+ mediaQueries: t.dynamicResponsiveMediaQueries,
97
+ initialMatchingMediaQueries: (0, u.intersection)(t.mediaQueryTypes, d)
98
+ }, o.default.createElement(a.Consumer, null, function(p) {
99
+ var m = Object.keys(p).filter(function(h) {
100
+ return p[h];
101
+ }), b = k((0, u.intersection)(m, d));
102
+ return o.default.createElement(n.Provider, {
103
+ value: b
104
+ }, f);
105
+ }));
106
+ }, S = function(i) {
107
+ ee(i), i.children;
108
+ var y = i.className, d = i.style, f = i.interaction, l = X(i, ["children", "className", "style", "interaction"]), p = o.default.useMemo(function() {
109
+ return (0, u.memoize)(function(P) {
110
+ return {
111
+ hasParentMedia: !0,
112
+ breakpointProps: P
113
+ };
114
+ });
115
+ }, []), m = o.default.useContext(s), b = p(l), h = o.default.useContext(n), C = h.onlyMatch, B = o.default.useId(), Q = typeof window != "undefined", R = (0, u.useIsFirstRender)(), c;
116
+ if (i.interaction)
117
+ c = (0, u.createClassName)("interaction", i.interaction);
118
+ else {
119
+ if (i.at) {
120
+ var _ = t.breakpoints.largestBreakpoint;
121
+ i.at === _ && console.warn("[@artsy/fresnel] `at` is being used with the largest breakpoint. Consider using `<Media greaterThanOrEqual=" + '"'.concat(_, '">` to account for future ') + "breakpoint definitions outside of this range.");
122
+ }
123
+ var x = (0, u.propKey)(l), I = l[x];
124
+ c = (0, u.createClassName)(x, I);
125
+ }
126
+ var N = !m.hasParentMedia || (0, u.intersection)(t.breakpoints.toVisibleAtBreakpointSet(m.breakpointProps), t.breakpoints.toVisibleAtBreakpointSet(l)).length > 0, M = N && (C === void 0 || t.shouldRenderMediaQuery(J({}, l, {
127
+ interaction: f
128
+ }), C)), O = " fresnel-".concat(B);
129
+ if (c += O, Q && R && !M) {
130
+ var W = document.getElementsByClassName(O);
131
+ Array.from(W).forEach(function(P) {
132
+ return P.innerHTML = "";
133
+ });
134
+ }
135
+ return o.default.createElement(s.Provider, {
136
+ value: b
137
+ }, function() {
138
+ return i.children instanceof Function ? i.children(c, M) : o.default.createElement("div", {
139
+ className: ["fresnel-container", c, y].filter(Boolean).join(" "),
140
+ style: d,
141
+ suppressHydrationWarning: !0
142
+ }, M ? i.children : null);
143
+ }());
144
+ };
145
+ return {
146
+ Media: S,
147
+ MediaContextProvider: E,
148
+ createMediaStyle: t.toStyle,
149
+ SortedBreakpoints: U(t.breakpoints.sortedBreakpoints),
150
+ findBreakpointAtWidth: t.breakpoints.findBreakpointAtWidth,
151
+ findBreakpointsForWidths: t.breakpoints.findBreakpointsForWidths,
152
+ valuesWithBreakpointProps: t.breakpoints.valuesWithBreakpointProps
153
+ };
154
+ }
155
+ var w = A.MediaQueries.validKeys();
156
+ function ee(e) {
157
+ var r = Object.keys(e).filter(function(t) {
158
+ return w.includes(t);
159
+ });
160
+ if (r.length < 1)
161
+ throw new Error("1 of ".concat(w.join(", "), " is required."));
162
+ if (r.length > 1)
163
+ throw new Error("Only 1 of ".concat(r.join(", "), " is allowed at a time."));
164
+ }
165
+ export {
166
+ j as default
167
+ };
@@ -0,0 +1,130 @@
1
+ import { __exports as f } from "../../../../_virtual/MediaQueries.js";
2
+ import "./Breakpoints.js";
3
+ import "./Interactions.js";
4
+ import "./Utils.js";
5
+ import { __exports as d } from "../../../../_virtual/Breakpoints.js";
6
+ import { __exports as _ } from "../../../../_virtual/Interactions.js";
7
+ import { __exports as m } from "../../../../_virtual/Utils.js";
8
+ Object.defineProperty(f, "__esModule", {
9
+ value: !0
10
+ });
11
+ f.MediaQueries = void 0;
12
+ var l = d, c = _, h = m;
13
+ function v(e) {
14
+ for (var t = 1; t < arguments.length; t++) {
15
+ var r = arguments[t] != null ? Object(arguments[t]) : {}, n = Object.keys(r);
16
+ typeof Object.getOwnPropertySymbols == "function" && n.push.apply(n, Object.getOwnPropertySymbols(r).filter(function(i) {
17
+ return Object.getOwnPropertyDescriptor(r, i).enumerable;
18
+ })), n.forEach(function(i) {
19
+ s(e, i, r[i]);
20
+ });
21
+ }
22
+ return e;
23
+ }
24
+ function g(e, t) {
25
+ if (e == null) return {};
26
+ var r = k(e, t), n, i;
27
+ if (Object.getOwnPropertySymbols) {
28
+ var a = Object.getOwnPropertySymbols(e);
29
+ for (i = 0; i < a.length; i++)
30
+ n = a[i], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
31
+ }
32
+ return r;
33
+ }
34
+ function k(e, t) {
35
+ if (e == null) return {};
36
+ var r = {}, n = Object.keys(e), i, a;
37
+ for (a = 0; a < n.length; a++)
38
+ i = n[a], !(t.indexOf(i) >= 0) && (r[i] = e[i]);
39
+ return r;
40
+ }
41
+ function o(e) {
42
+ return S(e) || M(e) || j(e) || O();
43
+ }
44
+ function O() {
45
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
46
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
47
+ }
48
+ function j(e, t) {
49
+ if (e) {
50
+ if (typeof e == "string") return u(e, t);
51
+ var r = Object.prototype.toString.call(e).slice(8, -1);
52
+ if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
53
+ if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return u(e, t);
54
+ }
55
+ }
56
+ function M(e) {
57
+ if (typeof Symbol != "undefined" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
58
+ }
59
+ function S(e) {
60
+ if (Array.isArray(e)) return u(e);
61
+ }
62
+ function u(e, t) {
63
+ (t == null || t > e.length) && (t = e.length);
64
+ for (var r = 0, n = new Array(t); r < t; r++)
65
+ n[r] = e[r];
66
+ return n;
67
+ }
68
+ function w(e, t) {
69
+ if (!(e instanceof t))
70
+ throw new TypeError("Cannot call a class as a function");
71
+ }
72
+ function p(e, t) {
73
+ for (var r = 0; r < t.length; r++) {
74
+ var n = t[r];
75
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
76
+ }
77
+ }
78
+ function y(e, t, r) {
79
+ return t && p(e.prototype, t), r && p(e, r), e;
80
+ }
81
+ function s(e, t, r) {
82
+ return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
83
+ }
84
+ var Q = /* @__PURE__ */ function() {
85
+ y(e, null, [{
86
+ key: "validKeys",
87
+ value: function() {
88
+ return o(l.Breakpoints.validKeys()).concat(o(c.Interactions.validKeys()));
89
+ }
90
+ }]);
91
+ function e(t, r) {
92
+ var n = this;
93
+ w(this, e), s(this, "_breakpoints", void 0), s(this, "_interactions", void 0), s(this, "toStyle", function(i) {
94
+ return [
95
+ // Don’t add any size to the layout
96
+ ".fresnel-container{margin:0;padding:0;}"
97
+ ].concat(o(n._breakpoints.toRuleSets(i)), o(n._interactions.toRuleSets())).join(`
98
+ `);
99
+ }), this._breakpoints = new l.Breakpoints(t), this._interactions = new c.Interactions(r || {});
100
+ }
101
+ return y(e, [{
102
+ key: "shouldRenderMediaQuery",
103
+ value: function(r, n) {
104
+ var i = r.interaction, a = g(r, ["interaction"]);
105
+ if (i)
106
+ return this._interactions.shouldRenderMediaQuery(i, n);
107
+ var b = (0, h.intersection)(n, this._breakpoints.sortedBreakpoints);
108
+ return this._breakpoints.shouldRenderMediaQuery(a, b);
109
+ }
110
+ }, {
111
+ key: "breakpoints",
112
+ get: function() {
113
+ return this._breakpoints;
114
+ }
115
+ }, {
116
+ key: "mediaQueryTypes",
117
+ get: function() {
118
+ return o(this._breakpoints.sortedBreakpoints).concat(o(this._interactions.interactions));
119
+ }
120
+ }, {
121
+ key: "dynamicResponsiveMediaQueries",
122
+ get: function() {
123
+ return v({}, this._breakpoints.dynamicResponsiveMediaQueries, this._interactions.dynamicResponsiveMediaQueries);
124
+ }
125
+ }]), e;
126
+ }();
127
+ f.MediaQueries = Q;
128
+ export {
129
+ f as default
130
+ };
@@ -0,0 +1,94 @@
1
+ import { __exports as a } from "../../../../_virtual/Utils.js";
2
+ import s from "react";
3
+ Object.defineProperty(a, "__esModule", {
4
+ value: !0
5
+ });
6
+ a.propKey = g;
7
+ a.intersection = v;
8
+ a.createRuleSet = O;
9
+ a.createClassName = A;
10
+ a.castBreakpointsToIntegers = h;
11
+ a.memoize = S;
12
+ a.useIsFirstRender = j;
13
+ var l = s;
14
+ function m(r) {
15
+ for (var e = 1; e < arguments.length; e++) {
16
+ var t = arguments[e] != null ? Object(arguments[e]) : {}, n = Object.keys(t);
17
+ typeof Object.getOwnPropertySymbols == "function" && n.push.apply(n, Object.getOwnPropertySymbols(t).filter(function(u) {
18
+ return Object.getOwnPropertyDescriptor(t, u).enumerable;
19
+ })), n.forEach(function(u) {
20
+ f(r, u, t[u]);
21
+ });
22
+ }
23
+ return r;
24
+ }
25
+ function f(r, e, t) {
26
+ return e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
27
+ }
28
+ function o(r) {
29
+ return b(r) || d(r) || y(r) || p();
30
+ }
31
+ function p() {
32
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
33
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
34
+ }
35
+ function y(r, e) {
36
+ if (r) {
37
+ if (typeof r == "string") return c(r, e);
38
+ var t = Object.prototype.toString.call(r).slice(8, -1);
39
+ if (t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set") return Array.from(r);
40
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return c(r, e);
41
+ }
42
+ }
43
+ function d(r) {
44
+ if (typeof Symbol != "undefined" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r);
45
+ }
46
+ function b(r) {
47
+ if (Array.isArray(r)) return c(r);
48
+ }
49
+ function c(r, e) {
50
+ (e == null || e > r.length) && (e = r.length);
51
+ for (var t = 0, n = new Array(e); t < e; t++)
52
+ n[t] = r[t];
53
+ return n;
54
+ }
55
+ function g(r) {
56
+ return Object.keys(r)[0];
57
+ }
58
+ function v(r, e) {
59
+ return e ? r.filter(function(t) {
60
+ return e.indexOf(t) >= 0;
61
+ }) : o(r);
62
+ }
63
+ function O(r, e) {
64
+ return "@media ".concat(e, "{.").concat(r, "{display:none!important;}}");
65
+ }
66
+ function A() {
67
+ for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++)
68
+ e[t] = arguments[t];
69
+ return ["fresnel"].concat(o(e.reduce(function(n, u) {
70
+ return Array.isArray(u) ? o(n).concat(o(u)) : o(n).concat([u]);
71
+ }, []))).join("-");
72
+ }
73
+ function h(r) {
74
+ var e = Object.keys(r);
75
+ return e.reduce(function(t, n, u) {
76
+ return m({}, t, f({}, e[u], Math.round(Number(r[n]))));
77
+ }, {});
78
+ }
79
+ function S(r) {
80
+ var e = {};
81
+ return function() {
82
+ for (var t = arguments.length, n = new Array(t), u = 0; u < t; u++)
83
+ n[u] = arguments[u];
84
+ var i = JSON.stringify(n);
85
+ return e[i] || (e[i] = r.apply(void 0, n)), e[i];
86
+ };
87
+ }
88
+ function j() {
89
+ var r = (0, l.useRef)(!0);
90
+ return r.current ? (r.current = !1, !0) : !1;
91
+ }
92
+ export {
93
+ a as default
94
+ };
@@ -0,0 +1,21 @@
1
+ import { __exports as o } from "../../../../_virtual/index2.js";
2
+ import "./Media.js";
3
+ import "./Breakpoints.js";
4
+ import { __exports as a } from "../../../../_virtual/Media.js";
5
+ import { __exports as n } from "../../../../_virtual/Breakpoints.js";
6
+ (function(e) {
7
+ Object.defineProperty(e, "__esModule", {
8
+ value: !0
9
+ }), Object.defineProperty(e, "createMedia", {
10
+ enumerable: !0,
11
+ get: function() {
12
+ return r.createMedia;
13
+ }
14
+ }), Object.defineProperty(e, "BreakpointKey", {
15
+ enumerable: !0,
16
+ get: function() {
17
+ return t.BreakpointConstraint;
18
+ }
19
+ });
20
+ var r = a, t = n;
21
+ })(o);
@@ -1,4 +1,4 @@
1
- import { __module as t } from "../../_virtual/index4.js";
1
+ import { __module as t } from "../../_virtual/index5.js";
2
2
  /*!
3
3
  Copyright (c) 2015 Jed Watson.
4
4
  Based on code that is Copyright 2013-2015, Facebook, Inc.
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs as e } from "../../_virtual/_commonjsHelpers.js";
2
- import { __module as r } from "../../_virtual/index3.js";
2
+ import { __module as r } from "../../_virtual/index4.js";
3
3
  import { __require as o } from "./node_modules/react-is/index.js";
4
4
  import { __require as p } from "./factoryWithTypeCheckers.js";
5
5
  import { __require as t } from "./factoryWithThrowingShims.js";
@@ -1,4 +1,4 @@
1
- import { __module as e } from "../../../../_virtual/index5.js";
1
+ import { __module as e } from "../../../../_virtual/index6.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;
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs as d } from "../../../_virtual/_commonjsHelpers.js";
2
- import { __module as r } from "../../../_virtual/index2.js";
2
+ import { __module as r } from "../../../_virtual/index3.js";
3
3
  import "./components/Modal.js";
4
4
  import { __exports as f } from "../../../_virtual/Modal.js";
5
5
  (function(o, t) {
@@ -1,8 +1,8 @@
1
1
  import { jsx as n, jsxs as m } from "react/jsx-runtime";
2
2
  import { getCommonProps as u } from "../../utils/index.js";
3
3
  import f from "../../node_modules/classnames/index.js";
4
- import { TextVariants as c } from "../Text/types.js";
5
- import i from "../Text/Text.js";
4
+ import { TextVariants as c } from "../../components/Text/types.js";
5
+ import i from "../../components/Text/Text.js";
6
6
  const v = ({
7
7
  prehead: r,
8
8
  date: l,
@@ -0,0 +1,74 @@
1
+ import { jsxs as b, Fragment as L, jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as S } from "react";
3
+ import { getCommonProps as N, noOp as x } from "../../utils/index.js";
4
+ import C from "../../node_modules/classnames/index.js";
5
+ import { SupportedLanguages as s } from "../../types/commonTypes.js";
6
+ import T from "../../components/Dropdown/Dropdown.js";
7
+ import k from "../../components/Accordion/Accordion.js";
8
+ import w from "../../components/Accordion/AccordionItem.js";
9
+ import y from "../../components/Navigation/NavigationItem/NavigationItem.js";
10
+ import { LinkVariants as M } from "../../components/Link/types.js";
11
+ import { TextVariants as E } from "../../components/Text/types.js";
12
+ import P from "../../components/Text/Text.js";
13
+ import V from "../../components/Navigation/NavigationList/NavigationList.js";
14
+ import { SSRMediaQuery as f } from "../../providers/utils.js";
15
+ const j = ({
16
+ id: a,
17
+ value: n,
18
+ // can't be passed to the accordion
19
+ onValueChange: r,
20
+ label: m,
21
+ options: l,
22
+ ...t
23
+ }) => /* @__PURE__ */ e(k, { ...t, children: /* @__PURE__ */ e(
24
+ w,
25
+ {
26
+ variation: "sm",
27
+ id: a != null ? a : "language-selector-accordion",
28
+ label: /* @__PURE__ */ e(P, { variant: E.snwHeaderLink, children: m }),
29
+ children: /* @__PURE__ */ e(V, { id: `${a}-navlist`, children: l.map((o) => /* @__PURE__ */ e(
30
+ y,
31
+ {
32
+ label: o.label,
33
+ onClick: () => r(o.value),
34
+ navType: M.snwFlyoutLink
35
+ },
36
+ o.value
37
+ )) })
38
+ }
39
+ ) }), A = S(
40
+ ({
41
+ className: a,
42
+ currentLanguage: n = s.en,
43
+ languageOptions: r = [
44
+ { label: "English", value: s.en },
45
+ { label: "中文", value: s.zh }
46
+ ],
47
+ onLanguageChange: m = x,
48
+ id: l,
49
+ isHidden: t,
50
+ ...o
51
+ }, c) => {
52
+ var u, g;
53
+ const { className: p, ...h } = N({ id: l }, "LanguageSelector"), v = (g = (u = r.find((i) => i.value === n)) == null ? void 0 : u.label) != null ? g : "English", d = {
54
+ ...h,
55
+ ...o,
56
+ id: l,
57
+ className: C(p, a, {
58
+ [`${p}--hidden`]: t
59
+ }),
60
+ options: r,
61
+ value: n,
62
+ onValueChange: (i) => m(i),
63
+ label: v
64
+ };
65
+ return /* @__PURE__ */ b(L, { children: [
66
+ /* @__PURE__ */ e(f.Media, { greaterThanOrEqual: "md", children: /* @__PURE__ */ e(T, { ...d, ref: c }) }),
67
+ /* @__PURE__ */ e(f.Media, { lessThan: "md", children: /* @__PURE__ */ e(j, { ...d, ref: c }) })
68
+ ] });
69
+ }
70
+ );
71
+ A.displayName = "LanguageSelector";
72
+ export {
73
+ A as default
74
+ };
@@ -1,10 +1,10 @@
1
1
  import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
2
  import l from "../../node_modules/classnames/index.js";
3
3
  import { getCommonProps as f } from "../../utils/index.js";
4
- import p from "../Button/Button.js";
5
- import { ButtonVariants as d } from "../Button/types.js";
6
- import { TextVariants as u } from "../Text/types.js";
7
- import N from "../Text/Text.js";
4
+ import p from "../../components/Button/Button.js";
5
+ import { ButtonVariants as d } from "../../components/Button/types.js";
6
+ import { TextVariants as u } from "../../components/Text/types.js";
7
+ import N from "../../components/Text/Text.js";
8
8
  const S = ({
9
9
  className: s,
10
10
  children: a,
@@ -1,4 +1,4 @@
1
- import { ButtonProps } from '../Button/Button';
1
+ import { ButtonProps } from '../../components/Button/Button';
2
2
  import { SubscriptionState } from './types';
3
3
  export interface SubscribeProps extends React.HTMLAttributes<HTMLFormElement> {
4
4
  /**
@@ -1,10 +1,10 @@
1
1
  import { jsxs as B, jsx as n } from "react/jsx-runtime";
2
2
  import C from "../../node_modules/classnames/index.js";
3
3
  import { getCommonProps as I } from "../../utils/index.js";
4
- import L from "../Input/Input.js";
5
- import S from "../Button/Button.js";
4
+ import L from "../../components/Input/Input.js";
5
+ import S from "../../components/Button/Button.js";
6
6
  import { SubscriptionState as o } from "./types.js";
7
- import { ButtonVariants as T } from "../Button/types.js";
7
+ import { ButtonVariants as T } from "../../components/Button/types.js";
8
8
  const Y = ({
9
9
  blurb: a,
10
10
  buttonText: m = "Sign Up",
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps, ElementType, ReactNode } from 'react';
2
- import { LinkProps } from '../Link/Link';
2
+ import { LinkProps } from '../../components/Link/Link';
3
3
  import { AuthState } from './types';
4
4
  export interface UserManagementProps extends ComponentProps<'div'> {
5
5
  /**
@@ -4,8 +4,8 @@ import { getCommonProps as C, noOp as b } from "../../utils/index.js";
4
4
  import r from "../../assets/account_circle.svg.js";
5
5
  import v from "../../node_modules/classnames/index.js";
6
6
  import { AuthState as a } from "./types.js";
7
- import { TextVariants as s } from "../Text/types.js";
8
- import m from "../Text/Text.js";
7
+ import { TextVariants as s } from "../../components/Text/types.js";
8
+ import m from "../../components/Text/Text.js";
9
9
  const A = x(
10
10
  ({
11
11
  accountDetailsLinkComponent: i = "a",
@@ -4,7 +4,7 @@ import { createElement as L } from "react";
4
4
  import S from "../../node_modules/classnames/index.js";
5
5
  import { getCommonProps as M } from "../../utils/index.js";
6
6
  import P from "./ViewingsListCard.js";
7
- import R from "../Button/Button.js";
7
+ import R from "../../components/Button/Button.js";
8
8
  const $ = () => Math.floor(Math.random() * 100) + Date.now(), G = ({
9
9
  cardTitle: C = "Viewing Details",
10
10
  className: E,
@@ -2,9 +2,9 @@ import { jsxs as m, jsx as t, Fragment as $ } from "react/jsx-runtime";
2
2
  import * as a from "react";
3
3
  import mt from "../../node_modules/classnames/index.js";
4
4
  import { px as u } from "../../utils/index.js";
5
- import y from "../Input/Input.js";
6
- import c from "../Button/Button.js";
7
- import { ButtonVariants as l } from "../Button/types.js";
5
+ import y from "../../components/Input/Input.js";
6
+ import c from "../../components/Button/Button.js";
7
+ import { ButtonVariants as l } from "../../components/Button/types.js";
8
8
  import ft from "./ViewingsListCardForm.js";
9
9
  const i = `${u}-viewings-list-card`, dt = ({
10
10
  address1: d,
@@ -2,7 +2,7 @@ import { jsxs as a, Fragment as W, jsx as t } from "react/jsx-runtime";
2
2
  import b from "../../node_modules/classnames/index.js";
3
3
  import * as T from "react";
4
4
  import { px as X } from "../../utils/index.js";
5
- import u from "../Input/Input.js";
5
+ import u from "../../components/Input/Input.js";
6
6
  const o = `${X}-viewings-list-card-form`, l = ({
7
7
  address1: g,
8
8
  address1Label: H = "Address ('432 Park Ave', ETC)",
@@ -0,0 +1,7 @@
1
+ import { PropsWithChildren } from 'react';
2
+ /**
3
+ * The SeldonProvider currently provides the ability for our components to render differently based on different media queries, but in the future it may provide other kinds of context data like common internationalization (i18n) data.
4
+ *
5
+ * It is recommended to wrap this provider once around your entire application to ensure that all Seldon components can access the same context.
6
+ */
7
+ export declare const SeldonProvider: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { jsxs as r, jsx as o } from "react/jsx-runtime";
2
+ import { SSRMediaQuery as i, ssrMediaQueryStyle as d } from "./utils.js";
3
+ const l = ({ children: e }) => /* @__PURE__ */ r(i.MediaContextProvider, { children: [
4
+ /* @__PURE__ */ o("style", { children: d }),
5
+ e
6
+ ] });
7
+ export {
8
+ l as SeldonProvider
9
+ };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Used to hide or show components based on the current breakpoint in a SSR friendly way
3
+ */
4
+ export declare const SSRMediaQuery: import("@artsy/fresnel/dist/Media").CreateMediaResults<"xsm" | "sm" | "md" | "lg" | "xl", never>;
5
+ export declare const ssrMediaQueryStyle: string;
@@ -0,0 +1,8 @@
1
+ import "../node_modules/@artsy/fresnel/dist/index.js";
2
+ import { BREAKPOINTS as e } from "../utils/constants.js";
3
+ import { __exports as r } from "../_virtual/index2.js";
4
+ const t = r.createMedia({ breakpoints: e }), s = t.createMediaStyle();
5
+ export {
6
+ t as SSRMediaQuery,
7
+ s as ssrMediaQueryStyle
8
+ };