@phillips/seldon 1.7.0 → 1.7.2
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/_commonjsHelpers.js +3 -5
- package/dist/components/Button/Button.d.ts +13 -19
- package/dist/components/Button/Button.js +10 -15
- package/dist/components/Header/Header.js +3 -21
- package/dist/components/HeroBanner/HeroBanner.d.ts +6 -6
- package/dist/components/HeroBanner/HeroBanner.js +1 -9
- package/dist/components/Input/Input.js +48 -51
- package/dist/components/Select/Select.js +45 -48
- package/dist/index.d.ts +0 -1
- package/dist/index.js +12 -14
- package/dist/scss/_reset.scss +20 -5
- package/dist/scss/_typography.scss +20 -11
- package/dist/scss/_utils.scss +2 -2
- package/dist/scss/_vars.scss +1 -4
- package/dist/scss/components/Button/_button.scss +35 -5
- package/dist/scss/components/DatePicker/_datePicker.scss +3 -4
- package/dist/scss/components/Header/_header.scss +1 -1
- package/dist/scss/components/HeroBanner/_heroBanner.scss +81 -81
- package/dist/scss/components/Input/_input.scss +2 -2
- package/dist/scss/components/Toggle/_toggle.scss +19 -13
- package/dist/scss/pages/_page.scss +1 -1
- package/dist/scss/styles.scss +1 -1
- package/dist/utils/index.d.ts +10 -0
- package/dist/utils/index.js +7 -23
- package/package.json +7 -4
- package/dist/_virtual/index2.js +0 -4
- package/dist/components/DatePicker/DatePicker.d.ts +0 -90
- package/dist/components/DatePicker/DatePicker.js +0 -92
- package/dist/node_modules/flatpickr/dist/esm/index.js +0 -947
- package/dist/node_modules/flatpickr/dist/esm/l10n/default.js +0 -75
- package/dist/node_modules/flatpickr/dist/esm/types/options.js +0 -80
- package/dist/node_modules/flatpickr/dist/esm/utils/dates.js +0 -90
- package/dist/node_modules/flatpickr/dist/esm/utils/dom.js +0 -45
- package/dist/node_modules/flatpickr/dist/esm/utils/formatting.js +0 -170
- package/dist/node_modules/flatpickr/dist/esm/utils/index.js +0 -23
- package/dist/node_modules/flatpickr/dist/esm/utils/polyfills.js +0 -15
- package/dist/node_modules/flatpickr/dist/l10n/index.js +0 -3471
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1
|
+
function e(t) {
|
|
2
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
4
3
|
}
|
|
5
4
|
export {
|
|
6
|
-
|
|
7
|
-
l as getDefaultExportFromCjs
|
|
5
|
+
e as getDefaultExportFromCjs
|
|
8
6
|
};
|
|
@@ -1,31 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
import { CommonProps } from '../../utils';
|
|
2
|
+
export interface ButtonProps extends CommonProps {
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
+
* Button contents
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
|
+
children: React.ReactNode;
|
|
6
7
|
/**
|
|
7
|
-
*
|
|
8
|
+
* True if button comes after text
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
|
+
iconLast?: boolean;
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
+
* Optional click handler
|
|
12
13
|
*/
|
|
13
|
-
|
|
14
|
+
onClick?: () => void;
|
|
14
15
|
/**
|
|
15
|
-
*
|
|
16
|
+
* Is this the principal call to action on the page?
|
|
16
17
|
*/
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Unique id for component
|
|
20
|
-
*/
|
|
21
|
-
id?: string;
|
|
18
|
+
primary?: boolean;
|
|
22
19
|
/**
|
|
23
|
-
*
|
|
20
|
+
* How large should the button be?
|
|
24
21
|
*/
|
|
25
|
-
|
|
22
|
+
size?: 'sm' | 'md' | 'lg';
|
|
26
23
|
}
|
|
27
|
-
|
|
28
|
-
* Primary UI component for user interaction
|
|
29
|
-
*/
|
|
30
|
-
declare const Button: ({ primary, size, backgroundColor, children, id, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare const Button: ({ primary, size, children, iconLast, id, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
25
|
export default Button;
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import m from "../../node_modules/classnames/index.js";
|
|
3
|
-
import { px as
|
|
4
|
-
const c = ({
|
|
5
|
-
primary: n = !0,
|
|
6
|
-
size: r = "md",
|
|
7
|
-
backgroundColor: s,
|
|
8
|
-
children: u,
|
|
9
|
-
id: t,
|
|
10
|
-
...e
|
|
11
|
-
}) => /* @__PURE__ */ a(
|
|
3
|
+
import { px as t } from "../../utils/index.js";
|
|
4
|
+
const c = ({ primary: n = !0, size: s = "md", children: u, iconLast: a = !1, id: o, ...r }) => /* @__PURE__ */ e(
|
|
12
5
|
"button",
|
|
13
6
|
{
|
|
14
|
-
"data-testid":
|
|
15
|
-
id:
|
|
7
|
+
"data-testid": o ? `button-${o}` : "button",
|
|
8
|
+
id: o,
|
|
16
9
|
type: "button",
|
|
17
|
-
className: m(`${
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
className: m(`${t}-button`, `${t}-button--${s}`, {
|
|
11
|
+
[`${t}-button--secondary`]: !n,
|
|
12
|
+
[`${t}-button--icon-last`]: a
|
|
13
|
+
}),
|
|
14
|
+
...r,
|
|
20
15
|
children: u
|
|
21
16
|
}
|
|
22
17
|
);
|
|
@@ -3,27 +3,9 @@ import i from "../Button/Button.js";
|
|
|
3
3
|
const a = ({ user: n, onLogin: r, onLogout: h, onCreateAccount: c }) => /* @__PURE__ */ e("header", { children: /* @__PURE__ */ l("div", { className: "storybook-header", children: [
|
|
4
4
|
/* @__PURE__ */ l("div", { children: [
|
|
5
5
|
/* @__PURE__ */ e("svg", { width: "32", height: "32", viewBox: "0 0 32 32", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l("g", { fill: "none", fillRule: "evenodd", children: [
|
|
6
|
-
/* @__PURE__ */ e(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
d: "M10 0h12a10 10 0 0110 10v12a10 10 0 01-10 10H10A10 10 0 010 22V10A10 10 0 0110 0z",
|
|
10
|
-
fill: "#FFF"
|
|
11
|
-
}
|
|
12
|
-
),
|
|
13
|
-
/* @__PURE__ */ e(
|
|
14
|
-
"path",
|
|
15
|
-
{
|
|
16
|
-
d: "M5.3 10.6l10.4 6v11.1l-10.4-6v-11zm11.4-6.2l9.7 5.5-9.7 5.6V4.4z",
|
|
17
|
-
fill: "#555AB9"
|
|
18
|
-
}
|
|
19
|
-
),
|
|
20
|
-
/* @__PURE__ */ e(
|
|
21
|
-
"path",
|
|
22
|
-
{
|
|
23
|
-
d: "M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z",
|
|
24
|
-
fill: "#91BAF8"
|
|
25
|
-
}
|
|
26
|
-
)
|
|
6
|
+
/* @__PURE__ */ e("path", { d: "M10 0h12a10 10 0 0110 10v12a10 10 0 01-10 10H10A10 10 0 010 22V10A10 10 0 0110 0z", fill: "#FFF" }),
|
|
7
|
+
/* @__PURE__ */ e("path", { d: "M5.3 10.6l10.4 6v11.1l-10.4-6v-11zm11.4-6.2l9.7 5.5-9.7 5.6V4.4z", fill: "#555AB9" }),
|
|
8
|
+
/* @__PURE__ */ e("path", { d: "M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z", fill: "#91BAF8" })
|
|
27
9
|
] }) }),
|
|
28
10
|
/* @__PURE__ */ e("h1", { children: "Acme" })
|
|
29
11
|
] }),
|
|
@@ -16,16 +16,16 @@ interface HeroBannerProps {
|
|
|
16
16
|
*/
|
|
17
17
|
subHeadText?: string;
|
|
18
18
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
* Is there an association related to this sale?
|
|
20
|
+
*/
|
|
21
21
|
association?: string;
|
|
22
22
|
/**
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
* What background image or color to use
|
|
24
|
+
*/
|
|
25
25
|
background?: string;
|
|
26
26
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
* Unique id for component testing
|
|
28
|
+
*/
|
|
29
29
|
id?: string;
|
|
30
30
|
}
|
|
31
31
|
declare const HeroBanner: ({ prehead, date, headerText, subHeadText, association, background, id }: HeroBannerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { jsx as n, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { px as t } from "../../utils/index.js";
|
|
3
|
-
const r = `${t}-hero-banner`, m = ({
|
|
4
|
-
prehead: e,
|
|
5
|
-
date: l,
|
|
6
|
-
headerText: o,
|
|
7
|
-
subHeadText: c,
|
|
8
|
-
association: h,
|
|
9
|
-
background: p,
|
|
10
|
-
id: a
|
|
11
|
-
}) => /* @__PURE__ */ n(
|
|
3
|
+
const r = `${t}-hero-banner`, m = ({ prehead: e, date: l, headerText: o, subHeadText: c, association: h, background: p, id: a }) => /* @__PURE__ */ n(
|
|
12
4
|
"header",
|
|
13
5
|
{
|
|
14
6
|
"data-testid": a ? `hero-banner-${a}` : "hero-banner",
|
|
@@ -2,63 +2,60 @@ import { jsxs as P, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import * as R from "react";
|
|
3
3
|
import e from "../../node_modules/classnames/index.js";
|
|
4
4
|
import { px as t, useNormalizedInputProps as y } from "../../utils/index.js";
|
|
5
|
-
const z = R.forwardRef(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
`${t}-${s}-input`,
|
|
28
|
-
`${t}-input`,
|
|
29
|
-
`${t}-input--${w}`,
|
|
30
|
-
{
|
|
5
|
+
const z = R.forwardRef(
|
|
6
|
+
({
|
|
7
|
+
className: p,
|
|
8
|
+
defaultValue: l,
|
|
9
|
+
disabled: u,
|
|
10
|
+
hideLabel: d,
|
|
11
|
+
id: n,
|
|
12
|
+
inline: o,
|
|
13
|
+
invalid: m,
|
|
14
|
+
invalidText: $,
|
|
15
|
+
labelText: c,
|
|
16
|
+
onChange: _,
|
|
17
|
+
onClick: b,
|
|
18
|
+
placeholder: f,
|
|
19
|
+
readOnly: a,
|
|
20
|
+
size: w = "md",
|
|
21
|
+
type: s = "text",
|
|
22
|
+
value: x,
|
|
23
|
+
warn: h,
|
|
24
|
+
warnText: v,
|
|
25
|
+
...I
|
|
26
|
+
}, N) => {
|
|
27
|
+
const i = y({ disabled: u, id: n, invalid: m, invalidText: $, readOnly: a, type: s, warn: h, warnText: v }), j = e(`${t}-${s}-input`, `${t}-input`, `${t}-input--${w}`, {
|
|
31
28
|
[`${t}-input--inline`]: o,
|
|
32
29
|
[`${t}-input--readonly`]: a,
|
|
33
30
|
[`${t}-input--disabled`]: i.disabled,
|
|
34
31
|
[`${t}-input--invalid`]: i.invalid,
|
|
35
32
|
[`${t}-input--warn`]: i.warn,
|
|
36
33
|
[`${p}__wrapper`]: p
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
34
|
+
});
|
|
35
|
+
return /* @__PURE__ */ P("div", { className: j, children: [
|
|
36
|
+
/* @__PURE__ */ r("label", { htmlFor: n, className: e(`${t}-input__label`, { [`${t}-input__label--hidden`]: d }), children: c }),
|
|
37
|
+
/* @__PURE__ */ r(
|
|
38
|
+
"input",
|
|
39
|
+
{
|
|
40
|
+
className: e(`${t}-input__input`, { className: p }),
|
|
41
|
+
"data-testid": n,
|
|
42
|
+
defaultValue: l,
|
|
43
|
+
disabled: i.disabled,
|
|
44
|
+
id: n,
|
|
45
|
+
onChange: _,
|
|
46
|
+
onClick: b,
|
|
47
|
+
placeholder: f,
|
|
48
|
+
readOnly: a,
|
|
49
|
+
ref: N,
|
|
50
|
+
type: i.type,
|
|
51
|
+
value: x,
|
|
52
|
+
...I
|
|
53
|
+
}
|
|
54
|
+
),
|
|
55
|
+
i.validation
|
|
56
|
+
] });
|
|
57
|
+
}
|
|
58
|
+
);
|
|
62
59
|
z.displayName = "Input";
|
|
63
60
|
export {
|
|
64
61
|
z as default
|
|
@@ -2,60 +2,57 @@ import { jsxs as R, jsx as l } from "react/jsx-runtime";
|
|
|
2
2
|
import * as y from "react";
|
|
3
3
|
import a from "../../node_modules/classnames/index.js";
|
|
4
4
|
import { px as t, useNormalizedInputProps as z } from "../../utils/index.js";
|
|
5
|
-
const S = y.forwardRef(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
`${t}-${s}-input`,
|
|
27
|
-
`${t}-input`,
|
|
28
|
-
`${t}-input--${w}`,
|
|
29
|
-
{
|
|
5
|
+
const S = y.forwardRef(
|
|
6
|
+
({
|
|
7
|
+
children: r,
|
|
8
|
+
className: n,
|
|
9
|
+
defaultValue: o,
|
|
10
|
+
disabled: d,
|
|
11
|
+
hideLabel: u,
|
|
12
|
+
id: e,
|
|
13
|
+
inline: m,
|
|
14
|
+
invalid: $,
|
|
15
|
+
invalidText: c,
|
|
16
|
+
labelText: _,
|
|
17
|
+
onChange: b,
|
|
18
|
+
onClick: f,
|
|
19
|
+
readOnly: p,
|
|
20
|
+
size: w = "md",
|
|
21
|
+
value: h,
|
|
22
|
+
warn: v,
|
|
23
|
+
warnText: x,
|
|
24
|
+
...j
|
|
25
|
+
}, N) => {
|
|
26
|
+
const s = "select", i = z({ disabled: d, id: e, invalid: $, invalidText: c, readOnly: p, type: s, warn: v, warnText: x }), P = a(`${t}-${s}-input`, `${t}-input`, `${t}-input--${w}`, {
|
|
30
27
|
[`${t}-input--inline`]: m,
|
|
31
28
|
[`${t}-input--readonly`]: p,
|
|
32
29
|
[`${t}-input--disabled`]: i.disabled,
|
|
33
30
|
[`${t}-input--invalid`]: i.invalid,
|
|
34
31
|
[`${t}-input--warn`]: i.warn,
|
|
35
32
|
[`${n}__wrapper`]: n
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
33
|
+
});
|
|
34
|
+
return /* @__PURE__ */ R("div", { className: P, children: [
|
|
35
|
+
/* @__PURE__ */ l("label", { htmlFor: e, className: a(`${t}-input__label`, { [`${t}-input__label--hidden`]: u }), children: _ }),
|
|
36
|
+
/* @__PURE__ */ l(
|
|
37
|
+
"select",
|
|
38
|
+
{
|
|
39
|
+
className: a(`${t}-input__input`, { className: n }),
|
|
40
|
+
"data-testid": e,
|
|
41
|
+
defaultValue: o,
|
|
42
|
+
disabled: i.disabled,
|
|
43
|
+
id: e,
|
|
44
|
+
onChange: b,
|
|
45
|
+
onClick: f,
|
|
46
|
+
ref: N,
|
|
47
|
+
value: h,
|
|
48
|
+
...j,
|
|
49
|
+
children: r
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
i.validation
|
|
53
|
+
] });
|
|
54
|
+
}
|
|
55
|
+
);
|
|
59
56
|
export {
|
|
60
57
|
S as default
|
|
61
58
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { default as Button } from './components/Button/Button';
|
|
2
2
|
export { default as ErrorBoundary } from './components/ErrorBoundary/ErrorBoundary';
|
|
3
|
-
export { default as DatePicker } from './components/DatePicker/DatePicker';
|
|
4
3
|
export { default as Header } from './components/Header/Header';
|
|
5
4
|
export { default as HeroBanner } from './components/HeroBanner/HeroBanner';
|
|
6
5
|
export { default as Input } from './components/Input/Input';
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { default as a } from "./components/Button/Button.js";
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as u } from "./components/
|
|
4
|
-
import { default as l } from "./components/
|
|
5
|
-
import { default as m } from "./components/
|
|
6
|
-
import { default as x } from "./components/
|
|
7
|
-
import { default as B } from "./
|
|
8
|
-
import { default as H } from "./pages/Page.js";
|
|
2
|
+
import { default as t } from "./components/ErrorBoundary/ErrorBoundary.js";
|
|
3
|
+
import { default as u } from "./components/Header/Header.js";
|
|
4
|
+
import { default as l } from "./components/HeroBanner/HeroBanner.js";
|
|
5
|
+
import { default as m } from "./components/Input/Input.js";
|
|
6
|
+
import { default as x } from "./components/Select/Select.js";
|
|
7
|
+
import { default as B } from "./pages/Page.js";
|
|
9
8
|
export {
|
|
10
9
|
a as Button,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
l as
|
|
14
|
-
m as
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
B as Select
|
|
10
|
+
t as ErrorBoundary,
|
|
11
|
+
u as Header,
|
|
12
|
+
l as HeroBanner,
|
|
13
|
+
m as Input,
|
|
14
|
+
B as Page,
|
|
15
|
+
x as Select
|
|
18
16
|
};
|
package/dist/scss/_reset.scss
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
*,
|
|
1
|
+
*,
|
|
2
|
+
*::before,
|
|
3
|
+
*::after {
|
|
2
4
|
box-sizing: border-box;
|
|
3
5
|
}
|
|
4
6
|
|
|
@@ -11,19 +13,32 @@ body {
|
|
|
11
13
|
-webkit-font-smoothing: antialiased;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
|
-
img,
|
|
16
|
+
img,
|
|
17
|
+
picture,
|
|
18
|
+
video,
|
|
19
|
+
canvas,
|
|
20
|
+
svg {
|
|
15
21
|
display: block;
|
|
16
22
|
max-width: 100%;
|
|
17
23
|
}
|
|
18
24
|
|
|
19
|
-
input,
|
|
25
|
+
input,
|
|
26
|
+
button,
|
|
27
|
+
textarea,
|
|
28
|
+
select {
|
|
20
29
|
font: inherit;
|
|
21
30
|
}
|
|
22
31
|
|
|
23
|
-
p,
|
|
32
|
+
p,
|
|
33
|
+
h1,
|
|
34
|
+
h2,
|
|
35
|
+
h3,
|
|
36
|
+
h4,
|
|
37
|
+
h5,
|
|
38
|
+
h6 {
|
|
24
39
|
overflow-wrap: break-word;
|
|
25
40
|
}
|
|
26
41
|
|
|
27
42
|
#root {
|
|
28
43
|
isolation: isolate;
|
|
29
|
-
}
|
|
44
|
+
}
|
|
@@ -1,17 +1,27 @@
|
|
|
1
1
|
@import './vars';
|
|
2
2
|
|
|
3
3
|
body {
|
|
4
|
-
font-family:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
|
|
4
|
+
font-family:
|
|
5
|
+
SeroWebPro,
|
|
6
|
+
'Helvetica Neue',
|
|
7
|
+
Helvetica,
|
|
8
|
+
-apple-system,
|
|
9
|
+
'.SFNSText-Regular',
|
|
10
|
+
'San Francisco',
|
|
11
|
+
BlinkMacSystemFont,
|
|
12
|
+
'Segoe UI',
|
|
13
|
+
'Helvetica Neue',
|
|
14
|
+
Helvetica,
|
|
15
|
+
Arial,
|
|
16
|
+
sans-serif;
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
margin: 0;
|
|
19
|
+
-webkit-font-smoothing: antialiased;
|
|
20
|
+
-moz-osx-font-smoothing: grayscale;
|
|
21
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
22
|
+
-webkit-overflow-scrolling: touch;
|
|
11
23
|
}
|
|
12
24
|
|
|
13
|
-
|
|
14
|
-
|
|
15
25
|
/** Fonts **/
|
|
16
26
|
@font-face {
|
|
17
27
|
font-family: 'DistinctDisplay';
|
|
@@ -56,7 +66,6 @@ body {
|
|
|
56
66
|
|
|
57
67
|
@mixin bodyText {
|
|
58
68
|
color: $soft-black;
|
|
59
|
-
@include DistinctText();
|
|
60
69
|
}
|
|
61
70
|
|
|
62
71
|
// @TODO: uncomment when site is able to be refactored
|
|
@@ -76,4 +85,4 @@ body {
|
|
|
76
85
|
// button {
|
|
77
86
|
// color: $soft-black;
|
|
78
87
|
// @include DistinctText();
|
|
79
|
-
// }
|
|
88
|
+
// }
|
package/dist/scss/_utils.scss
CHANGED
package/dist/scss/_vars.scss
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
1
|
// prefix
|
|
3
2
|
$px: phillips;
|
|
4
3
|
|
|
5
|
-
|
|
6
4
|
// Primary color palette
|
|
7
5
|
$pure-black: #000000;
|
|
8
6
|
$primary-black: #323232;
|
|
@@ -32,7 +30,6 @@ $articker-red: #fc1e2b;
|
|
|
32
30
|
$articker-orange: #ff8201;
|
|
33
31
|
$articker-red-orange-gradient: linear-gradient(90deg, #fc1e2b, #ff8201);
|
|
34
32
|
|
|
35
|
-
|
|
36
33
|
// Font-variables
|
|
37
34
|
$DistinctDisplay: 'DistinctDisplay';
|
|
38
35
|
$DistinctDisplayItalic: 'DistinctDisplayItalic';
|
|
@@ -43,4 +40,4 @@ $DistinctText: 'DistinctText';
|
|
|
43
40
|
$header-color: $pure-black;
|
|
44
41
|
$header-family: $DistinctDisplay;
|
|
45
42
|
$text-color: $soft-black;
|
|
46
|
-
$text-family: $DistinctText;
|
|
43
|
+
$text-family: $DistinctText;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@import '../../vars';
|
|
2
|
+
@import '../../_utils';
|
|
2
3
|
|
|
3
4
|
.#{$px}-button {
|
|
4
5
|
@include bodyText;
|
|
@@ -12,17 +13,48 @@
|
|
|
12
13
|
justify-content: center;
|
|
13
14
|
min-width: 9rem;
|
|
14
15
|
padding: 0.5em 1.75em;
|
|
15
|
-
transition:
|
|
16
|
+
transition:
|
|
17
|
+
color 0.25s,
|
|
18
|
+
background-color 0.25s,
|
|
19
|
+
font-weight 0.25s;
|
|
16
20
|
|
|
17
21
|
&:hover,
|
|
18
22
|
&:focus {
|
|
19
|
-
background-color: $
|
|
23
|
+
background-color: $primary-black;
|
|
24
|
+
|
|
25
|
+
svg {
|
|
26
|
+
fill: $pure-white;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
svg {
|
|
30
|
+
fill: $pure-white;
|
|
31
|
+
transition: fill 0.25s;
|
|
32
|
+
margin-inline-end: 0.5rem;
|
|
33
|
+
width: 1em;
|
|
20
34
|
}
|
|
21
35
|
|
|
22
36
|
&--secondary {
|
|
23
37
|
color: $text-color;
|
|
24
38
|
background-color: transparent;
|
|
25
39
|
box-shadow: rgba(0, 0, 0, 0.5) 0 0 0 1px inset;
|
|
40
|
+
|
|
41
|
+
&:hover,
|
|
42
|
+
&:focus {
|
|
43
|
+
color: $pure-white;
|
|
44
|
+
|
|
45
|
+
svg {
|
|
46
|
+
fill: $pure-white;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
svg {
|
|
51
|
+
fill: $text-color;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&.#{$px}-button--icon-last svg {
|
|
56
|
+
margin-inline-end: unset;
|
|
57
|
+
margin-inline-start: 0.5rem;
|
|
26
58
|
}
|
|
27
59
|
|
|
28
60
|
&--sm {
|
|
@@ -39,8 +71,6 @@
|
|
|
39
71
|
}
|
|
40
72
|
|
|
41
73
|
* {
|
|
42
|
-
margin: 0
|
|
74
|
+
margin: 0;
|
|
43
75
|
}
|
|
44
|
-
|
|
45
76
|
}
|
|
46
|
-
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
@import '../../vars';
|
|
3
3
|
@import '../../typography';
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
.flatpickr-calendar {
|
|
7
6
|
@include DistinctText;
|
|
8
7
|
|
|
@@ -67,9 +66,9 @@
|
|
|
67
66
|
padding: 0.65rem 0 0 0;
|
|
68
67
|
}
|
|
69
68
|
|
|
70
|
-
.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),
|
|
71
|
-
.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),
|
|
72
|
-
.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {
|
|
69
|
+
.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n + 1)),
|
|
70
|
+
.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n + 1)),
|
|
71
|
+
.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n + 1)) {
|
|
73
72
|
-webkit-box-shadow: -10px 0 0 #e6e6e6;
|
|
74
73
|
box-shadow: -10px 0 0 #e6e6e6;
|
|
75
74
|
}
|