@phillips/seldon 1.28.0 → 1.29.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.
- package/dist/components/Subscribe/Subscribe.d.ts +5 -1
- package/dist/components/Subscribe/Subscribe.js +38 -36
- package/dist/components/Subscribe/types.d.ts +1 -0
- package/dist/components/Subscribe/types.js +2 -2
- package/dist/scss/components/Button/_button.scss +3 -3
- package/dist/scss/components/DatePicker/_datePicker.scss +2 -2
- package/dist/scss/components/Footer/_footer.scss +4 -4
- package/dist/scss/components/Grid/_grid.scss +2 -2
- package/dist/scss/components/GridItem/_gridItem.scss +1 -1
- package/dist/scss/components/Header/_header.scss +1 -1
- package/dist/scss/components/HeroBanner/_heroBanner.scss +1 -1
- package/dist/scss/components/Input/_input.scss +2 -2
- package/dist/scss/components/Link/_link.scss +1 -1
- package/dist/scss/components/LinkBlock/_linkBlock.scss +2 -2
- package/dist/scss/components/LinkList/_linkList.scss +1 -1
- package/dist/scss/components/Modal/_modal.scss +2 -2
- package/dist/scss/components/Navigation/NavigationItem/_navigationItem.scss +2 -10
- package/dist/scss/components/Navigation/NavigationItemTrigger/_navigationItemTrigger.scss +1 -1
- package/dist/scss/components/Navigation/NavigationList/_navigationList.scss +1 -1
- package/dist/scss/components/Navigation/_navigation.scss +1 -1
- package/dist/scss/components/Row/_row.scss +1 -1
- package/dist/scss/components/Search/_search.scss +2 -2
- package/dist/scss/components/Social/_social.scss +3 -3
- package/dist/scss/components/SplitPanel/_splitPanel.scss +2 -2
- package/dist/scss/components/SplitPanel/_splitPanel.stories.scss +1 -1
- package/dist/scss/components/Subscribe/_subscribe.scss +4 -4
- package/dist/scss/components/Text/_text.scss +1 -1
- package/dist/scss/components/Toggle/_toggle.scss +2 -2
- package/dist/scss/components/UserManagement/_userManagement.scss +1 -1
- package/dist/scss/components/ViewingsList/_viewingsList.scss +3 -3
- package/package.json +2 -2
|
@@ -37,6 +37,10 @@ export interface SubscribeProps extends React.HTMLAttributes<HTMLFormElement> {
|
|
|
37
37
|
* Subscribe error text
|
|
38
38
|
*/
|
|
39
39
|
invalidText?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Subscribe invalid text
|
|
42
|
+
*/
|
|
43
|
+
errorText?: string;
|
|
40
44
|
/**
|
|
41
45
|
* Subscribe success text
|
|
42
46
|
*/
|
|
@@ -55,5 +59,5 @@ export interface SubscribeProps extends React.HTMLAttributes<HTMLFormElement> {
|
|
|
55
59
|
*
|
|
56
60
|
* [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-subscribe--overview)
|
|
57
61
|
*/
|
|
58
|
-
declare const Subscribe: ({ blurb, buttonText, buttonProps, className, element: Element, inputLabelText, inputPlaceholder, title, loadingText, invalidText, successText, subscriptionState, ...props }: SubscribeProps) => import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
declare const Subscribe: ({ blurb, buttonText, buttonProps, className, element: Element, inputLabelText, inputPlaceholder, title, loadingText, invalidText, errorText, successText, subscriptionState, ...props }: SubscribeProps) => import("react/jsx-runtime").JSX.Element;
|
|
59
63
|
export default Subscribe;
|
|
@@ -1,50 +1,52 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { getCommonProps as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { SubscriptionState as
|
|
7
|
-
const
|
|
8
|
-
blurb:
|
|
1
|
+
import { jsxs as C, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import E from "../../node_modules/classnames/index.js";
|
|
3
|
+
import { getCommonProps as I } from "../../utils/index.js";
|
|
4
|
+
import L from "../Input/Input.js";
|
|
5
|
+
import P from "../Button/Button.js";
|
|
6
|
+
import { SubscriptionState as o } from "./types.js";
|
|
7
|
+
const U = ({
|
|
8
|
+
blurb: a,
|
|
9
9
|
buttonText: i = "Sign Up",
|
|
10
10
|
buttonProps: m,
|
|
11
11
|
className: n,
|
|
12
|
-
element:
|
|
13
|
-
inputLabelText:
|
|
14
|
-
inputPlaceholder:
|
|
15
|
-
title:
|
|
16
|
-
loadingText:
|
|
17
|
-
invalidText:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
element: c = "form",
|
|
13
|
+
inputLabelText: d = "Email*",
|
|
14
|
+
inputPlaceholder: u = "example@email.com",
|
|
15
|
+
title: p = "Subscribe to Newsletter",
|
|
16
|
+
loadingText: f = "Loading...",
|
|
17
|
+
invalidText: x = "",
|
|
18
|
+
errorText: _ = "An error occurred. Please try again.",
|
|
19
|
+
successText: b,
|
|
20
|
+
subscriptionState: e = o.Default,
|
|
21
|
+
...t
|
|
21
22
|
}) => {
|
|
22
|
-
const { className:
|
|
23
|
-
invalid:
|
|
24
|
-
success:
|
|
25
|
-
loading:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
|
|
23
|
+
const { className: r, ...g } = I(t, "Subscribe"), N = e === o.Invalid, h = e === o.Loading, v = e === o.Success, y = e === o.Error, $ = {
|
|
24
|
+
invalid: x,
|
|
25
|
+
success: b,
|
|
26
|
+
loading: f,
|
|
27
|
+
error: _
|
|
28
|
+
}, l = e !== o.Default ? $[e] : "", T = v || h, w = N || y;
|
|
29
|
+
return /* @__PURE__ */ C(c, { ...g, className: E(r, n), noValidate: !0, ...t, children: [
|
|
30
|
+
/* @__PURE__ */ s("h3", { className: `${r}__title`, children: p }),
|
|
31
|
+
a ? /* @__PURE__ */ s("p", { className: `${r}__blurb`, children: a }) : null,
|
|
32
|
+
/* @__PURE__ */ s(
|
|
33
|
+
L,
|
|
32
34
|
{
|
|
33
|
-
className: `${
|
|
35
|
+
className: `${r}__input`,
|
|
34
36
|
type: "email",
|
|
35
37
|
name: "email",
|
|
36
|
-
placeholder:
|
|
37
|
-
labelText:
|
|
38
|
-
invalid:
|
|
39
|
-
invalidText:
|
|
40
|
-
warn:
|
|
41
|
-
warnText:
|
|
38
|
+
placeholder: u,
|
|
39
|
+
labelText: d,
|
|
40
|
+
invalid: w,
|
|
41
|
+
invalidText: l,
|
|
42
|
+
warn: T,
|
|
43
|
+
warnText: l,
|
|
42
44
|
required: !0
|
|
43
45
|
}
|
|
44
46
|
),
|
|
45
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ s(P, { className: `${r}__button ${n}`, buttonType: "secondary", type: "submit", ...m, children: i })
|
|
46
48
|
] });
|
|
47
49
|
};
|
|
48
50
|
export {
|
|
49
|
-
|
|
51
|
+
U as default
|
|
50
52
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var d = /* @__PURE__ */ ((r) => (r.Default = "default", r.Loading = "loading", r.Invalid = "invalid", r.Error = "error", r.Success = "success", r))(d || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
d as SubscriptionState
|
|
4
4
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* stylelint-disable selector-class-pattern */
|
|
2
2
|
@import 'flatpickr/dist/flatpickr.css';
|
|
3
|
-
@import '
|
|
4
|
-
@import '
|
|
3
|
+
@import '../../vars';
|
|
4
|
+
@import '../../typography';
|
|
5
5
|
|
|
6
6
|
.flatpickr-calendar {
|
|
7
7
|
@include DistinctText;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@import '
|
|
2
|
-
@import '
|
|
3
|
-
@import '
|
|
4
|
-
@import '
|
|
1
|
+
@import '../../vars';
|
|
2
|
+
@import '../../utils';
|
|
3
|
+
@import '../../type';
|
|
4
|
+
@import '../../typography';
|
|
5
5
|
|
|
6
6
|
.#{$px}-footer {
|
|
7
7
|
background-color: $off-white;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@import '
|
|
2
|
-
@import '
|
|
1
|
+
@import '../../vars';
|
|
2
|
+
@import '../../typography';
|
|
3
3
|
|
|
4
4
|
.#{$px}-nav__item {
|
|
5
5
|
@media (max-width: #{$breakpoint-md - 1}) {
|
|
@@ -173,14 +173,6 @@
|
|
|
173
173
|
@media (min-width: $breakpoint-md) {
|
|
174
174
|
position: relative;
|
|
175
175
|
|
|
176
|
-
&:not(ul ul li):hover::before {
|
|
177
|
-
content: '';
|
|
178
|
-
height: 100%;
|
|
179
|
-
position: absolute;
|
|
180
|
-
top: 0;
|
|
181
|
-
width: 100%;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
176
|
&:not(ul ul li) a:focus,
|
|
185
177
|
&:not(ul ul li) button:focus,
|
|
186
178
|
&:not(ul ul li) p:focus {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@import '
|
|
1
|
+
@import '../../vars';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@import '
|
|
2
|
-
@import '
|
|
3
|
-
@import '
|
|
4
|
-
@import '
|
|
1
|
+
@import '../../vars';
|
|
2
|
+
@import '../../utils';
|
|
3
|
+
@import '../../type';
|
|
4
|
+
@import '../../typography';
|
|
5
5
|
|
|
6
6
|
.#{$px}-subscribe {
|
|
7
7
|
max-width: 30rem;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import '
|
|
2
|
-
@import '
|
|
3
|
-
@import '
|
|
1
|
+
@import '../../vars';
|
|
2
|
+
@import '../../utils';
|
|
3
|
+
@import '../../typography';
|
|
4
4
|
|
|
5
5
|
.#{$px}-viewings-list {
|
|
6
6
|
align-items: center;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phillips/seldon",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.29.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/PhillipsAuctionHouse/seldon"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@semantic-release/changelog": "^6.0.3",
|
|
53
53
|
"@semantic-release/git": "^10.0.1",
|
|
54
54
|
"@semantic-release/github": "^10.1.0",
|
|
55
|
-
"@storybook/addon-essentials": "^8.1
|
|
55
|
+
"@storybook/addon-essentials": "^8.2.1",
|
|
56
56
|
"@storybook/addon-interactions": "^8.1.4",
|
|
57
57
|
"@storybook/addon-links": "^8.1.4",
|
|
58
58
|
"@storybook/addon-mdx-gfm": "^8.1.11",
|