@phillips/seldon 1.22.2 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/Modal.js +4 -0
- package/dist/_virtual/ModalPortal.js +4 -0
- package/dist/_virtual/_commonjsHelpers.js +25 -3
- package/dist/_virtual/ariaAppHider.js +4 -0
- package/dist/_virtual/bodyTrap.js +4 -0
- package/dist/_virtual/classList.js +4 -0
- package/dist/_virtual/focusManager.js +4 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/index4.js +4 -0
- package/dist/_virtual/index5.js +4 -0
- package/dist/_virtual/portalOpenInstances.js +4 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/_virtual/react-lifecycles-compat.es.js +6 -0
- package/dist/_virtual/safeHTMLElement.js +4 -0
- package/dist/_virtual/scopeTab.js +4 -0
- package/dist/_virtual/tabbable.js +4 -0
- package/dist/assets/close.svg.js +5 -0
- package/dist/components/Button/Button.d.ts +9 -0
- package/dist/components/Footer/Footer.d.ts +3 -1
- package/dist/components/Grid/Grid.d.ts +9 -0
- package/dist/components/GridItem/GridItem.d.ts +3 -1
- package/dist/components/HeroBanner/HeroBanner.d.ts +9 -0
- package/dist/components/IconButton/IconButton.d.ts +12 -0
- package/dist/components/IconButton/IconButton.js +16 -0
- package/dist/components/Input/Input.d.ts +13 -0
- package/dist/components/Link/Link.d.ts +3 -1
- package/dist/components/Link/Link.js +21 -19
- package/dist/components/LinkBlock/LinkBlock.d.ts +3 -1
- package/dist/components/LinkList/LinkList.d.ts +3 -1
- package/dist/components/Modal/Modal.d.ts +23 -0
- package/dist/components/Modal/Modal.js +45 -0
- package/dist/components/Row/Row.d.ts +3 -1
- package/dist/components/Select/Select.d.ts +9 -0
- package/dist/components/Social/Social.d.ts +3 -1
- package/dist/components/Subscribe/Subscribe.d.ts +3 -1
- package/dist/components/Text/Text.d.ts +3 -1
- package/dist/components/Text/types.d.ts +2 -2
- package/dist/components/Text/types.js +1 -1
- package/dist/components/Text/utils.js +8 -8
- package/dist/index.d.ts +2 -0
- package/dist/index.js +54 -50
- package/dist/node_modules/exenv/index.js +21 -0
- package/dist/node_modules/object-assign/index.js +55 -0
- package/dist/node_modules/prop-types/checkPropTypes.js +55 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +53 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +330 -0
- package/dist/node_modules/prop-types/index.js +13 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +11 -0
- package/dist/node_modules/prop-types/lib/has.js +7 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +95 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +79 -0
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js +63 -0
- package/dist/node_modules/react-modal/lib/components/Modal.js +237 -0
- package/dist/node_modules/react-modal/lib/components/ModalPortal.js +249 -0
- package/dist/node_modules/react-modal/lib/helpers/ariaAppHider.js +91 -0
- package/dist/node_modules/react-modal/lib/helpers/bodyTrap.js +42 -0
- package/dist/node_modules/react-modal/lib/helpers/classList.js +62 -0
- package/dist/node_modules/react-modal/lib/helpers/focusManager.js +67 -0
- package/dist/node_modules/react-modal/lib/helpers/portalOpenInstances.js +46 -0
- package/dist/node_modules/react-modal/lib/helpers/safeHTMLElement.js +15 -0
- package/dist/node_modules/react-modal/lib/helpers/scopeTab.js +46 -0
- package/dist/node_modules/react-modal/lib/helpers/tabbable.js +62 -0
- package/dist/node_modules/react-modal/lib/index.js +19 -0
- package/dist/node_modules/warning/warning.js +33 -0
- package/dist/scss/_type.scss +6 -6
- package/dist/scss/_utils.scss +16 -16
- package/dist/scss/_vars.scss +17 -19
- package/dist/scss/components/Footer/_footer.scss +7 -7
- package/dist/scss/components/GridItem/_gridItem.scss +3 -3
- package/dist/scss/components/HeroBanner/_heroBanner.scss +4 -4
- package/dist/scss/components/IconButton/_iconButton.scss +47 -0
- package/dist/scss/components/Link/_link.scss +0 -6
- package/dist/scss/components/LinkList/_linkList.scss +1 -1
- package/dist/scss/components/Modal/_modal.scss +29 -0
- package/dist/scss/components/Modal/_modal.stories.scss +5 -0
- package/dist/scss/components/Social/_social.scss +2 -2
- package/dist/scss/components/SplitPanel/_splitPanel.scss +1 -1
- package/dist/scss/components/Subscribe/_subscribe.scss +1 -1
- package/dist/scss/styles.scss +2 -0
- package/package.json +7 -5
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { getDefaultExportFromCjs as d } from "../../../_virtual/_commonjsHelpers.js";
|
|
2
|
+
import { __module as r } from "../../../_virtual/index2.js";
|
|
3
|
+
import "./components/Modal.js";
|
|
4
|
+
import { __exports as f } from "../../../_virtual/Modal.js";
|
|
5
|
+
(function(o, t) {
|
|
6
|
+
Object.defineProperty(t, "__esModule", {
|
|
7
|
+
value: !0
|
|
8
|
+
});
|
|
9
|
+
var a = f, l = u(a);
|
|
10
|
+
function u(e) {
|
|
11
|
+
return e && e.__esModule ? e : { default: e };
|
|
12
|
+
}
|
|
13
|
+
t.default = l.default, o.exports = t.default;
|
|
14
|
+
})(r, r.exports);
|
|
15
|
+
var i = r.exports;
|
|
16
|
+
const n = /* @__PURE__ */ d(i);
|
|
17
|
+
export {
|
|
18
|
+
n as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var c = process.env.NODE_ENV !== "production", i = function() {
|
|
2
|
+
};
|
|
3
|
+
if (c) {
|
|
4
|
+
var g = function(e, r) {
|
|
5
|
+
var a = arguments.length;
|
|
6
|
+
r = new Array(a > 1 ? a - 1 : 0);
|
|
7
|
+
for (var n = 1; n < a; n++)
|
|
8
|
+
r[n - 1] = arguments[n];
|
|
9
|
+
var u = 0, t = "Warning: " + e.replace(/%s/g, function() {
|
|
10
|
+
return r[u++];
|
|
11
|
+
});
|
|
12
|
+
typeof console != "undefined" && console.error(t);
|
|
13
|
+
try {
|
|
14
|
+
throw new Error(t);
|
|
15
|
+
} catch {
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
i = function(o, e, r) {
|
|
19
|
+
var a = arguments.length;
|
|
20
|
+
r = new Array(a > 2 ? a - 2 : 0);
|
|
21
|
+
for (var n = 2; n < a; n++)
|
|
22
|
+
r[n - 2] = arguments[n];
|
|
23
|
+
if (e === void 0)
|
|
24
|
+
throw new Error(
|
|
25
|
+
"`warning(condition, format, ...args)` requires a warning message argument"
|
|
26
|
+
);
|
|
27
|
+
o || g.apply(null, [e].concat(r));
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
var s = i;
|
|
31
|
+
export {
|
|
32
|
+
s as w
|
|
33
|
+
};
|
package/dist/scss/_type.scss
CHANGED
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
line-height: 1.25;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
@if $label == '
|
|
67
|
-
font-size: $
|
|
66
|
+
@if $label == 'badge' {
|
|
67
|
+
font-size: $badge-label-size;
|
|
68
68
|
font-weight: 500;
|
|
69
69
|
letter-spacing: 0.1875rem;
|
|
70
70
|
line-height: 1.25;
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
@include labelText($label);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
@if $token == '
|
|
98
|
-
@include labelText($
|
|
97
|
+
@if $token == 'badge' {
|
|
98
|
+
@include labelText($badge);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
// Displays
|
|
@@ -120,8 +120,8 @@
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
// Headings
|
|
123
|
-
@if $token == '
|
|
124
|
-
@include hText($heading-size1);
|
|
123
|
+
@if $token == 'blockquote' {
|
|
124
|
+
@include hText($heading-size1, $color: $primary-black, $transform-style: initial);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
@if $token == 'heading2' {
|
package/dist/scss/_utils.scss
CHANGED
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
@mixin gridMargins {
|
|
44
44
|
margin: 0 $spacing-md;
|
|
45
45
|
|
|
46
|
-
@media (min-width: $
|
|
46
|
+
@media (min-width: $breakpoint-lg) {
|
|
47
47
|
margin: 0 $spacing-lg;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
@media (min-width: $
|
|
50
|
+
@media (min-width: $breakpoint-xl) {
|
|
51
51
|
margin: 0 $spacing-xl;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -67,11 +67,11 @@
|
|
|
67
67
|
gap: $spacing-md;
|
|
68
68
|
grid-template-columns: repeat(2, 1fr);
|
|
69
69
|
|
|
70
|
-
@media (min-width: $
|
|
70
|
+
@media (min-width: $breakpoint-md) {
|
|
71
71
|
grid-template-columns: repeat(4, 1fr);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
@media (min-width: $
|
|
74
|
+
@media (min-width: $breakpoint-lg) {
|
|
75
75
|
grid-template-columns: repeat(12, 1fr);
|
|
76
76
|
}
|
|
77
77
|
|
|
@@ -81,47 +81,47 @@
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
@mixin media($breakpoint, $type: 'min') {
|
|
84
|
-
@if $breakpoint == $
|
|
85
|
-
// $
|
|
84
|
+
@if $breakpoint == $size-sm {
|
|
85
|
+
// $breakpoint-md: 961px;
|
|
86
86
|
@if $type == 'min' {
|
|
87
|
-
@media (min-width: $
|
|
87
|
+
@media (min-width: $breakpoint-md) {
|
|
88
88
|
@content;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
@if $type == 'max' {
|
|
93
|
-
@media (max-width: $
|
|
93
|
+
@media (max-width: $breakpoint-md) {
|
|
94
94
|
@content;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
@if $breakpoint == $
|
|
100
|
-
// $
|
|
99
|
+
@if $breakpoint == $size-md {
|
|
100
|
+
// $breakpoint-lg: 1401px;
|
|
101
101
|
|
|
102
102
|
@if $type == 'min' {
|
|
103
|
-
@media (min-width: $
|
|
103
|
+
@media (min-width: $breakpoint-lg) {
|
|
104
104
|
@content;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
@if type == 'max' {
|
|
109
|
-
@media (max-width: $
|
|
109
|
+
@media (max-width: $breakpoint-lg) {
|
|
110
110
|
@content;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
@if $breakpoint == $
|
|
116
|
-
// $
|
|
115
|
+
@if $breakpoint == $size-lg {
|
|
116
|
+
// $breakpoint-xl: 1801px;
|
|
117
117
|
@if type == 'min' {
|
|
118
|
-
@media (min-width: $
|
|
118
|
+
@media (min-width: $breakpoint-xl) {
|
|
119
119
|
@content;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
@if type == 'max' {
|
|
124
|
-
@media (max-width: $
|
|
124
|
+
@media (max-width: $breakpoint-xl) {
|
|
125
125
|
@content;
|
|
126
126
|
}
|
|
127
127
|
}
|
package/dist/scss/_vars.scss
CHANGED
|
@@ -73,21 +73,21 @@ $cta-sm: 'cta-sm';
|
|
|
73
73
|
$cta-lg: 'cta-lg';
|
|
74
74
|
$email: 'email';
|
|
75
75
|
$label: 'label';
|
|
76
|
-
$
|
|
76
|
+
$badge: 'badge';
|
|
77
77
|
$display0: 'display0';
|
|
78
78
|
$display1: 'display1';
|
|
79
79
|
$display2: 'display2';
|
|
80
80
|
$display3: 'display3';
|
|
81
81
|
$display4: 'display4';
|
|
82
|
-
$
|
|
82
|
+
$blockquote: 'blockquote';
|
|
83
83
|
$heading2: 'heading2';
|
|
84
84
|
$heading3: 'heading3';
|
|
85
85
|
$heading4: 'heading4';
|
|
86
86
|
$body1: 'body1';
|
|
87
87
|
$body2: 'body2';
|
|
88
88
|
$body3: 'body3';
|
|
89
|
-
$text-tokens: $button, $cta-sm, $cta-lg, $email, $label, $
|
|
90
|
-
$
|
|
89
|
+
$text-tokens: $button, $cta-sm, $cta-lg, $email, $label, $badge, $display0, $display1, $display2, $display3, $display4,
|
|
90
|
+
$blockquote, $heading2, $heading3, $heading4, $body1, $body2, $body3;
|
|
91
91
|
|
|
92
92
|
////////////////////////
|
|
93
93
|
/// FONT SIZE TOKENS:
|
|
@@ -158,7 +158,7 @@ $cta-sm-label-size: var(--label-size2);
|
|
|
158
158
|
$email-label-size: var(--label-size2);
|
|
159
159
|
$cta-lg-label-size: var(--label-size1);
|
|
160
160
|
$text-label-size: var(--label-size3);
|
|
161
|
-
$
|
|
161
|
+
$badge-label-size: var(--label-size3);
|
|
162
162
|
|
|
163
163
|
////////////////////////
|
|
164
164
|
/// SPACING TOKENS:
|
|
@@ -216,24 +216,22 @@ $margin-lg: var(--spacing-lg);
|
|
|
216
216
|
$margin-xl: var(--spacing-xl);
|
|
217
217
|
|
|
218
218
|
////////////////////////
|
|
219
|
-
/// Breakpoint TOKENS
|
|
219
|
+
/// Breakpoint TOKENS that map to minimum pixels
|
|
220
220
|
///////////////////////
|
|
221
|
-
|
|
222
|
-
$
|
|
223
|
-
$
|
|
224
|
-
$
|
|
221
|
+
$breakpoint-sm: 461px;
|
|
222
|
+
$breakpoint-md: 961px;
|
|
223
|
+
$breakpoint-lg: 1401px;
|
|
224
|
+
$breakpoint-xl: 1801px;
|
|
225
225
|
|
|
226
226
|
////////////////////////
|
|
227
227
|
/// max-site-width TOKEN:
|
|
228
228
|
///////////////////////
|
|
229
229
|
$max-site-width: 1560px;
|
|
230
230
|
|
|
231
|
-
|
|
232
|
-
///
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
$
|
|
236
|
-
$
|
|
237
|
-
$
|
|
238
|
-
$breakpoint-lg: 'lg';
|
|
239
|
-
$breakpoint-xl: 'xl';
|
|
231
|
+
////////////////////////
|
|
232
|
+
/// Our tokens usually support at least 4 sizes.
|
|
233
|
+
///////////////////////
|
|
234
|
+
$size-sm: 'sm';
|
|
235
|
+
$size-md: 'md';
|
|
236
|
+
$size-lg: 'lg';
|
|
237
|
+
$size-xl: 'xl';
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
padding: $spacing-md $spacing-md $spacing-sm;
|
|
19
19
|
text-align: right;
|
|
20
20
|
|
|
21
|
-
@include media($
|
|
21
|
+
@include media($size-md) {
|
|
22
22
|
padding: $spacing-md $spacing-lg $spacing-sm;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
@include media($
|
|
25
|
+
@include media($size-lg) {
|
|
26
26
|
padding: $spacing-md $spacing-xl $spacing-sm;
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -50,17 +50,17 @@
|
|
|
50
50
|
flex-direction: column;
|
|
51
51
|
padding: $spacing-lg $spacing-md 0;
|
|
52
52
|
|
|
53
|
-
@include media($
|
|
53
|
+
@include media($size-sm) {
|
|
54
54
|
align-items: flex-start;
|
|
55
55
|
flex-direction: row;
|
|
56
56
|
justify-content: space-between;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
@include media($
|
|
59
|
+
@include media($size-md) {
|
|
60
60
|
padding: 3.75rem $spacing-lg;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
@include media($
|
|
63
|
+
@include media($size-lg) {
|
|
64
64
|
padding: 3.75rem $spacing-xl;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
&__content-split-panel__left {
|
|
69
69
|
margin-bottom: $spacing-md;
|
|
70
70
|
|
|
71
|
-
@include media($
|
|
71
|
+
@include media($size-sm) {
|
|
72
72
|
margin-bottom: 0;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
&__content-split-panel__right {
|
|
77
77
|
display: flex;
|
|
78
78
|
|
|
79
|
-
@include media($
|
|
79
|
+
@include media($size-sm) {
|
|
80
80
|
justify-content: flex-end;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
@include media($
|
|
29
|
+
@include media($size-sm) {
|
|
30
30
|
@for $i from 1 through 4 {
|
|
31
31
|
&--span-sm-#{$i} {
|
|
32
32
|
@include gridItemColumnSpan($i, 4);
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
@include media($
|
|
37
|
+
@include media($size-md) {
|
|
38
38
|
@for $i from 1 through 12 {
|
|
39
39
|
&--span-md-#{$i} {
|
|
40
40
|
@include gridItemColumnSpan($i, 12);
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
@include media($
|
|
45
|
+
@include media($size-lg) {
|
|
46
46
|
@for $i from 1 through 12 {
|
|
47
47
|
&--span-lg-#{$i} {
|
|
48
48
|
@include gridItemColumnSpan($i, 12);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
padding: 1rem;
|
|
15
15
|
width: 100%;
|
|
16
16
|
|
|
17
|
-
@media (max-width:
|
|
17
|
+
@media (max-width: $breakpoint-sm) {
|
|
18
18
|
align-items: center;
|
|
19
19
|
align-self: stretch;
|
|
20
20
|
background: $pure-black;
|
|
@@ -71,11 +71,11 @@
|
|
|
71
71
|
font-size: 0.75rem;
|
|
72
72
|
gap: 1.875rem;
|
|
73
73
|
|
|
74
|
-
@media (min-width:
|
|
74
|
+
@media (min-width: $breakpoint-sm) {
|
|
75
75
|
font-size: 0.875rem;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
@media (max-width:
|
|
78
|
+
@media (max-width: $breakpoint-sm) {
|
|
79
79
|
align-items: center;
|
|
80
80
|
flex-direction: column;
|
|
81
81
|
gap: 1rem;
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
margin: 1.875rem 0;
|
|
92
92
|
text-align: center;
|
|
93
93
|
|
|
94
|
-
@media (min-width:
|
|
94
|
+
@media (min-width: $breakpoint-sm) {
|
|
95
95
|
font-size: 2.375rem;
|
|
96
96
|
}
|
|
97
97
|
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.#{$px}-icon-button {
|
|
2
|
+
background-color: unset;
|
|
3
|
+
border: unset;
|
|
4
|
+
color: $text-color;
|
|
5
|
+
min-width: unset;
|
|
6
|
+
padding: unset;
|
|
7
|
+
|
|
8
|
+
& > svg {
|
|
9
|
+
fill: $pure-black;
|
|
10
|
+
height: 100%;
|
|
11
|
+
margin-inline-end: unset;
|
|
12
|
+
width: 100%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&:hover {
|
|
16
|
+
background-color: unset;
|
|
17
|
+
opacity: 0.75;
|
|
18
|
+
|
|
19
|
+
& > svg {
|
|
20
|
+
fill: $pure-black;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:focus {
|
|
25
|
+
background-color: unset;
|
|
26
|
+
fill: $pure-black;
|
|
27
|
+
|
|
28
|
+
& > svg {
|
|
29
|
+
fill: $pure-black;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&--sm {
|
|
34
|
+
height: 1rem;
|
|
35
|
+
width: 1rem;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&--md {
|
|
39
|
+
height: 1.5rem;
|
|
40
|
+
width: 1.5rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&--lg {
|
|
44
|
+
height: 2rem;
|
|
45
|
+
width: 2rem;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
@import '../../type';
|
|
2
2
|
|
|
3
3
|
.#{$px}-link {
|
|
4
|
-
@include text($cta-sm);
|
|
5
|
-
|
|
6
4
|
color: $cta-blue;
|
|
7
5
|
text-decoration: none;
|
|
8
6
|
white-space: nowrap;
|
|
@@ -27,8 +25,4 @@
|
|
|
27
25
|
&--list {
|
|
28
26
|
color: $soft-black;
|
|
29
27
|
}
|
|
30
|
-
|
|
31
|
-
&--email {
|
|
32
|
-
@include text($email);
|
|
33
|
-
}
|
|
34
28
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@import '../../vars';
|
|
2
|
+
@import '../../utils';
|
|
3
|
+
|
|
4
|
+
.#{$px}-modal {
|
|
5
|
+
background-color: white;
|
|
6
|
+
left: 50%;
|
|
7
|
+
max-height: 100%;
|
|
8
|
+
max-width: 100%;
|
|
9
|
+
overflow: auto;
|
|
10
|
+
padding: 2rem;
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: 50%;
|
|
13
|
+
transform: translate(-50%, -50%);
|
|
14
|
+
|
|
15
|
+
&__overlay {
|
|
16
|
+
background-color: rgba(0, 0, 0, 75%);
|
|
17
|
+
height: 100%;
|
|
18
|
+
left: 0;
|
|
19
|
+
position: fixed;
|
|
20
|
+
top: 0;
|
|
21
|
+
width: 100%;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__close {
|
|
25
|
+
position: absolute;
|
|
26
|
+
right: 0.4rem;
|
|
27
|
+
top: 0.4rem;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
display: inline-flex;
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
|
|
10
|
-
@include media($
|
|
10
|
+
@include media($size-sm) {
|
|
11
11
|
align-items: flex-end;
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
margin: 0 0 $spacing-md;
|
|
26
26
|
padding: 0;
|
|
27
27
|
|
|
28
|
-
@include media($
|
|
28
|
+
@include media($size-sm) {
|
|
29
29
|
gap: 0 1rem;
|
|
30
30
|
}
|
|
31
31
|
|
package/dist/scss/styles.scss
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
// ⚛️ Components
|
|
11
11
|
@import 'components/Button/button';
|
|
12
|
+
@import 'components/IconButton/iconButton';
|
|
12
13
|
|
|
13
14
|
// @import 'components/DatePicker/datePicker';
|
|
14
15
|
@import 'components/Footer/footer';
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
@import 'components/LinkBlock/linkBlock';
|
|
28
29
|
@import 'components/LinkList/linkList';
|
|
29
30
|
@import 'components/Text/text';
|
|
31
|
+
@import 'components/Modal/modal';
|
|
30
32
|
|
|
31
33
|
// 📑 Pages
|
|
32
34
|
@import 'pages/page';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phillips/seldon",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.24.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/PhillipsAuctionHouse/seldon"
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"classnames": "^2.5.1",
|
|
42
|
-
"flatpickr": "^4.6.13"
|
|
42
|
+
"flatpickr": "^4.6.13",
|
|
43
|
+
"react-modal": "^3.16.1"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
46
|
"@chromatic-com/storybook": "^1.5.0",
|
|
@@ -49,7 +50,7 @@
|
|
|
49
50
|
"@semantic-release/changelog": "^6.0.3",
|
|
50
51
|
"@semantic-release/git": "^10.0.1",
|
|
51
52
|
"@semantic-release/github": "^10.0.5",
|
|
52
|
-
"@storybook/addon-essentials": "^8.1.
|
|
53
|
+
"@storybook/addon-essentials": "^8.1.5",
|
|
53
54
|
"@storybook/addon-interactions": "^8.1.4",
|
|
54
55
|
"@storybook/addon-links": "^8.1.4",
|
|
55
56
|
"@storybook/addon-mdx-gfm": "^8.1.5",
|
|
@@ -63,6 +64,7 @@
|
|
|
63
64
|
"@types/color": "^3.0.6",
|
|
64
65
|
"@types/react": "^18.3.3",
|
|
65
66
|
"@types/react-dom": "^18.0.11",
|
|
67
|
+
"@types/react-modal": "^3.16.3",
|
|
66
68
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
67
69
|
"@typescript-eslint/parser": "^5.62.0",
|
|
68
70
|
"@vitejs/plugin-react": "^4.3.0",
|
|
@@ -73,14 +75,14 @@
|
|
|
73
75
|
"eslint-plugin-react-refresh": "^0.4.7",
|
|
74
76
|
"eslint-plugin-storybook": "^0.8.0",
|
|
75
77
|
"husky": "^9.0.11",
|
|
76
|
-
"prettier": "3.
|
|
78
|
+
"prettier": "3.3.0",
|
|
77
79
|
"react": "^18.3.1",
|
|
78
80
|
"react-docgen-typescript": "^2.2.2",
|
|
79
81
|
"react-dom": "^18.2.0",
|
|
80
82
|
"rimraf": "^5.0.7",
|
|
81
83
|
"rollup-plugin-copy": "^3.5.0",
|
|
82
84
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
83
|
-
"sass": "^1.77.
|
|
85
|
+
"sass": "^1.77.4",
|
|
84
86
|
"semantic-release": "^23.1.1",
|
|
85
87
|
"storybook": "^8.1.4",
|
|
86
88
|
"stylelint": "^16.6.1",
|