@phillips/seldon 1.53.1 → 1.54.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 (38) 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/Header/Header.d.ts +1 -1
  12. package/dist/components/Header/Header.js +20 -20
  13. package/dist/components/LanguageSelector/LanguageSelector.js +38 -37
  14. package/dist/components/Navigation/Navigation.d.ts +1 -1
  15. package/dist/components/Navigation/Navigation.js +23 -23
  16. package/dist/index.d.ts +1 -0
  17. package/dist/index.js +27 -25
  18. package/dist/node_modules/@artsy/fresnel/dist/Breakpoints.js +281 -0
  19. package/dist/node_modules/@artsy/fresnel/dist/DynamicResponsive.js +151 -0
  20. package/dist/node_modules/@artsy/fresnel/dist/Interactions.js +138 -0
  21. package/dist/node_modules/@artsy/fresnel/dist/Media.js +167 -0
  22. package/dist/node_modules/@artsy/fresnel/dist/MediaQueries.js +130 -0
  23. package/dist/node_modules/@artsy/fresnel/dist/Utils.js +94 -0
  24. package/dist/node_modules/@artsy/fresnel/dist/index.js +21 -0
  25. package/dist/node_modules/exenv/index.js +1 -1
  26. package/dist/node_modules/prop-types/index.js +1 -1
  27. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  28. package/dist/node_modules/react-modal/lib/index.js +1 -1
  29. package/dist/providers/SeldonProvider.d.ts +7 -0
  30. package/dist/providers/SeldonProvider.js +9 -0
  31. package/dist/providers/utils.d.ts +5 -0
  32. package/dist/providers/utils.js +8 -0
  33. package/dist/scss/_vars.scss +1 -1
  34. package/dist/scss/components/Header/_header.scss +0 -9
  35. package/dist/scss/components/LanguageSelector/_languageSelector.scss +5 -22
  36. package/dist/utils/constants.d.ts +8 -0
  37. package/dist/utils/constants.js +10 -0
  38. package/package.json +2 -1
@@ -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) {
@@ -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
+ };
@@ -100,7 +100,7 @@ $text-tokens: $button, $link, $email, $label, $badge, $blockquote, $heading1, $h
100
100
  $snwHeaderLink;
101
101
 
102
102
  ////////////////////////
103
- /// Breakpoint TOKENS to be used for min-width comparisons
103
+ /// Breakpoint TOKENS to be used for min-width comparisons, make sure they match BREAKPOINTS in constants.ts
104
104
  ///////////////////////
105
105
  $breakpoint-sm: 361px;
106
106
  $breakpoint-md: 961px;
@@ -96,11 +96,6 @@
96
96
  justify-content: space-between;
97
97
  padding: $padding-sm $spacing-md;
98
98
  width: 100%;
99
-
100
- /** There are actually two language selectors in the DOM, show this one in desktop */
101
- .#{$px}-language-selector {
102
- display: none;
103
- }
104
99
  }
105
100
 
106
101
  &__nav {
@@ -130,10 +125,6 @@
130
125
  position: relative;
131
126
  top: 0;
132
127
  width: 100%;
133
-
134
- div.#{$px}-language-selector {
135
- display: none; // hide this one on mobile
136
- }
137
128
  }
138
129
 
139
130
  .#{$px}-nav__item {
@@ -13,35 +13,18 @@
13
13
  pointer-events: none;
14
14
  }
15
15
 
16
- @include isHeaderDesktop {
17
- &.#{$px}-accordion {
18
- display: none;
19
- }
20
- }
21
-
22
16
  &.#{$px}-dropdown {
23
- display: none;
24
- padding: $padding-lg 0 $padding-xxl;
17
+ display: flex;
18
+ padding: 0;
25
19
 
26
20
  button {
27
21
  border: none;
28
22
  box-shadow: unset;
29
- justify-content: space-between;
23
+ justify-content: center;
30
24
  outline: none;
31
- padding: 0.5rem 0.65rem;
32
- text-transform: unset;
33
- width: 100%;
34
- }
35
-
36
- @include isHeaderDesktop {
37
- display: flex;
38
25
  padding: 0;
39
-
40
- button {
41
- justify-content: center;
42
- padding: 0;
43
- width: fit-content;
44
- }
26
+ text-transform: unset;
27
+ width: fit-content;
45
28
  }
46
29
  }
47
30
  }
@@ -0,0 +1,8 @@
1
+ export declare const INCREASED_TEST_TIMEOUT: number;
2
+ export declare const BREAKPOINTS: {
3
+ xsm: number;
4
+ sm: number;
5
+ md: number;
6
+ lg: number;
7
+ xl: number;
8
+ };
@@ -0,0 +1,10 @@
1
+ const m = {
2
+ xsm: 0,
3
+ sm: 361,
4
+ md: 961,
5
+ lg: 1401,
6
+ xl: 1801
7
+ };
8
+ export {
9
+ m as BREAKPOINTS
10
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.53.1",
3
+ "version": "1.54.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"
@@ -40,6 +40,7 @@
40
40
  "prepare": "husky install"
41
41
  },
42
42
  "dependencies": {
43
+ "@artsy/fresnel": "^7.1.4",
43
44
  "@radix-ui/react-accordion": "^1.2.0",
44
45
  "@radix-ui/react-collapsible": "^1.1.0",
45
46
  "@radix-ui/react-dialog": "^1.1.1",