@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.
Files changed (83) hide show
  1. package/dist/_virtual/Modal.js +4 -0
  2. package/dist/_virtual/ModalPortal.js +4 -0
  3. package/dist/_virtual/_commonjsHelpers.js +25 -3
  4. package/dist/_virtual/ariaAppHider.js +4 -0
  5. package/dist/_virtual/bodyTrap.js +4 -0
  6. package/dist/_virtual/classList.js +4 -0
  7. package/dist/_virtual/focusManager.js +4 -0
  8. package/dist/_virtual/index2.js +4 -0
  9. package/dist/_virtual/index3.js +4 -0
  10. package/dist/_virtual/index4.js +4 -0
  11. package/dist/_virtual/index5.js +4 -0
  12. package/dist/_virtual/portalOpenInstances.js +4 -0
  13. package/dist/_virtual/react-is.development.js +4 -0
  14. package/dist/_virtual/react-is.production.min.js +4 -0
  15. package/dist/_virtual/react-lifecycles-compat.es.js +6 -0
  16. package/dist/_virtual/safeHTMLElement.js +4 -0
  17. package/dist/_virtual/scopeTab.js +4 -0
  18. package/dist/_virtual/tabbable.js +4 -0
  19. package/dist/assets/close.svg.js +5 -0
  20. package/dist/components/Button/Button.d.ts +9 -0
  21. package/dist/components/Footer/Footer.d.ts +3 -1
  22. package/dist/components/Grid/Grid.d.ts +9 -0
  23. package/dist/components/GridItem/GridItem.d.ts +3 -1
  24. package/dist/components/HeroBanner/HeroBanner.d.ts +9 -0
  25. package/dist/components/IconButton/IconButton.d.ts +12 -0
  26. package/dist/components/IconButton/IconButton.js +16 -0
  27. package/dist/components/Input/Input.d.ts +13 -0
  28. package/dist/components/Link/Link.d.ts +3 -1
  29. package/dist/components/Link/Link.js +21 -19
  30. package/dist/components/LinkBlock/LinkBlock.d.ts +3 -1
  31. package/dist/components/LinkList/LinkList.d.ts +3 -1
  32. package/dist/components/Modal/Modal.d.ts +23 -0
  33. package/dist/components/Modal/Modal.js +45 -0
  34. package/dist/components/Row/Row.d.ts +3 -1
  35. package/dist/components/Select/Select.d.ts +9 -0
  36. package/dist/components/Social/Social.d.ts +3 -1
  37. package/dist/components/Subscribe/Subscribe.d.ts +3 -1
  38. package/dist/components/Text/Text.d.ts +3 -1
  39. package/dist/components/Text/types.d.ts +2 -2
  40. package/dist/components/Text/types.js +1 -1
  41. package/dist/components/Text/utils.js +8 -8
  42. package/dist/index.d.ts +2 -0
  43. package/dist/index.js +54 -50
  44. package/dist/node_modules/exenv/index.js +21 -0
  45. package/dist/node_modules/object-assign/index.js +55 -0
  46. package/dist/node_modules/prop-types/checkPropTypes.js +55 -0
  47. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +53 -0
  48. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +330 -0
  49. package/dist/node_modules/prop-types/index.js +13 -0
  50. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +11 -0
  51. package/dist/node_modules/prop-types/lib/has.js +7 -0
  52. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +95 -0
  53. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +79 -0
  54. package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
  55. package/dist/node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js +63 -0
  56. package/dist/node_modules/react-modal/lib/components/Modal.js +237 -0
  57. package/dist/node_modules/react-modal/lib/components/ModalPortal.js +249 -0
  58. package/dist/node_modules/react-modal/lib/helpers/ariaAppHider.js +91 -0
  59. package/dist/node_modules/react-modal/lib/helpers/bodyTrap.js +42 -0
  60. package/dist/node_modules/react-modal/lib/helpers/classList.js +62 -0
  61. package/dist/node_modules/react-modal/lib/helpers/focusManager.js +67 -0
  62. package/dist/node_modules/react-modal/lib/helpers/portalOpenInstances.js +46 -0
  63. package/dist/node_modules/react-modal/lib/helpers/safeHTMLElement.js +15 -0
  64. package/dist/node_modules/react-modal/lib/helpers/scopeTab.js +46 -0
  65. package/dist/node_modules/react-modal/lib/helpers/tabbable.js +62 -0
  66. package/dist/node_modules/react-modal/lib/index.js +19 -0
  67. package/dist/node_modules/warning/warning.js +33 -0
  68. package/dist/scss/_type.scss +6 -6
  69. package/dist/scss/_utils.scss +16 -16
  70. package/dist/scss/_vars.scss +17 -19
  71. package/dist/scss/components/Footer/_footer.scss +7 -7
  72. package/dist/scss/components/GridItem/_gridItem.scss +3 -3
  73. package/dist/scss/components/HeroBanner/_heroBanner.scss +4 -4
  74. package/dist/scss/components/IconButton/_iconButton.scss +47 -0
  75. package/dist/scss/components/Link/_link.scss +0 -6
  76. package/dist/scss/components/LinkList/_linkList.scss +1 -1
  77. package/dist/scss/components/Modal/_modal.scss +29 -0
  78. package/dist/scss/components/Modal/_modal.stories.scss +5 -0
  79. package/dist/scss/components/Social/_social.scss +2 -2
  80. package/dist/scss/components/SplitPanel/_splitPanel.scss +1 -1
  81. package/dist/scss/components/Subscribe/_subscribe.scss +1 -1
  82. package/dist/scss/styles.scss +2 -0
  83. package/package.json +7 -5
@@ -0,0 +1,4 @@
1
+ var a = {};
2
+ export {
3
+ a as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var o = { exports: {} };
2
+ export {
3
+ o as __module
4
+ };
@@ -1,6 +1,28 @@
1
- function e(t) {
2
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1
+ function n(e) {
2
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3
+ }
4
+ function c(e) {
5
+ if (e.__esModule)
6
+ return e;
7
+ var o = e.default;
8
+ if (typeof o == "function") {
9
+ var t = function r() {
10
+ return this instanceof r ? Reflect.construct(o, arguments, this.constructor) : o.apply(this, arguments);
11
+ };
12
+ t.prototype = o.prototype;
13
+ } else
14
+ t = {};
15
+ return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
16
+ var u = Object.getOwnPropertyDescriptor(e, r);
17
+ Object.defineProperty(t, r, u.get ? u : {
18
+ enumerable: !0,
19
+ get: function() {
20
+ return e[r];
21
+ }
22
+ });
23
+ }), t;
3
24
  }
4
25
  export {
5
- e as getDefaultExportFromCjs
26
+ c as getAugmentedNamespace,
27
+ n as getDefaultExportFromCjs
6
28
  };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var s = {};
2
+ export {
3
+ s as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var a = {};
2
+ export {
3
+ a as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = { exports: {} };
2
+ export {
3
+ e as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var p = { exports: {} };
2
+ export {
3
+ p as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = { exports: {} };
2
+ export {
3
+ e as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = { exports: {} };
2
+ export {
3
+ e as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var a = {};
2
+ export {
3
+ a as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,6 @@
1
+ import { getAugmentedNamespace as e } from "./_commonjsHelpers.js";
2
+ import * as t from "../node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js";
3
+ const a = /* @__PURE__ */ e(t);
4
+ export {
5
+ a as default
6
+ };
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = { exports: {} };
2
+ export {
3
+ e as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var a = { exports: {} };
2
+ export {
3
+ a as __module
4
+ };
@@ -0,0 +1,5 @@
1
+ import * as e from "react";
2
+ const t = (l) => /* @__PURE__ */ e.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...l }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.28261 7.93223C8.72892 7.48592 9.44554 7.47892 9.88322 7.9166L24.1481 22.1814C24.5857 22.6191 24.5787 23.3357 24.1324 23.782C23.6861 24.2284 22.9695 24.2354 22.5318 23.7977L8.26698 9.53285C7.8293 9.09517 7.8363 8.37855 8.28261 7.93223Z", fill: "#323232" }), /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M24.1324 7.93222C24.5787 8.37854 24.5857 9.09515 24.148 9.53283L9.8832 23.7977C9.44552 24.2353 8.7289 24.2284 8.28259 23.782C7.83627 23.3357 7.82928 22.6191 8.26696 22.1814L22.5318 7.91659C22.9695 7.47891 23.6861 7.48591 24.1324 7.93222Z", fill: "#323232" }));
3
+ export {
4
+ t as default
5
+ };
@@ -24,5 +24,14 @@ export interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
24
24
  */
25
25
  type?: 'button' | 'submit' | 'reset';
26
26
  }
27
+ /**
28
+ * ## Overview
29
+ *
30
+ * A component for adding a button component.
31
+ *
32
+ * [Figma Link](https://www.figma.com/design/xMuOXOAKVt5HC7hgYjF3ot/Components-v2.0?node-id=4433-163014&m=dev)
33
+ *
34
+ * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-button--overview)
35
+ */
27
36
  declare const Button: ({ buttonType, size, children, className, iconLast, id, type, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
28
37
  export default Button;
@@ -13,7 +13,9 @@ export interface FooterProps extends React.HTMLAttributes<HTMLElement> {
13
13
  *
14
14
  * A component for adding a footer to the bottom of the site.
15
15
  *
16
- * [Figma Link](https://www.figma.com/file/npS5ECbNut8hevUkGWSzUN/Site-Furniture-(Navigation)---SP24?type=design&node-id=4346-1981&mode=design&t=D7PpghvLOEpBYd3n-0)
16
+ * [Figma Link](https://www.figma.com/design/xMuOXOAKVt5HC7hgYjF3ot/Components-v2.0?node-id=6651-2641&m=dev)
17
+ *
18
+ * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-footer--overview)
17
19
  */
18
20
  declare const Footer: ({ children, className, copyright, id, navigationComponent, }: FooterProps) => import("react/jsx-runtime").JSX.Element;
19
21
  export default Footer;
@@ -8,5 +8,14 @@ export interface GridProps extends React.HTMLAttributes<HTMLElement> {
8
8
  */
9
9
  element?: React.ElementType<GridProps>;
10
10
  }
11
+ /**
12
+ * ## Overview
13
+ *
14
+ * A wrapper component for adding a 12-column grid layout.
15
+ *
16
+ * [Figma Link](https://www.figma.com/design/xMuOXOAKVt5HC7hgYjF3ot/Components-v2.0?node-id=6226-1330&m=dev)
17
+ *
18
+ * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-layouts-grid--overview)
19
+ */
11
20
  export declare function Grid({ children, className, element: Element, id, ...props }: GridProps): import("react/jsx-runtime").JSX.Element;
12
21
  export default Grid;
@@ -23,7 +23,9 @@ export interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {
23
23
  * This item can be placed in a Grid and appropriately sized for the current breakpoint. It can also be aligned within the grid cell.
24
24
  * If you center multiple GridItems in a Grid, they will wrap to the next line and be centered on that line.
25
25
  *
26
- * [Figma Link](https://www.figma.com/design/Hp2FyltbOmRxTuw9kSwBAd/EPIC-About-Us?node-id=912-5904&t=WzvEYp5zbnGnRFUf-4)
26
+ * [Figma Link](https://www.figma.com/design/xMuOXOAKVt5HC7hgYjF3ot/Components-v2.0?node-id=6226-1330&m=dev)
27
+ *
28
+ * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-layouts-griditem--overview)
27
29
  */
28
30
  declare const GridItem: ({ children, xs, sm, md, lg, align, id, element: Element, className, ...props }: GridItemProps) => import("react/jsx-runtime").JSX.Element | null;
29
31
  export default GridItem;
@@ -28,5 +28,14 @@ export interface HeroBannerProps {
28
28
  */
29
29
  id?: string;
30
30
  }
31
+ /**
32
+ * ## Overview
33
+ *
34
+ * Hero Banner UI component
35
+ *
36
+ * [Figma Link](https://www.figma.com/design/xMuOXOAKVt5HC7hgYjF3ot/Components-v2.0?node-id=6532-691&m=dev)
37
+ *
38
+ * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-herobanner--overview)
39
+ */
31
40
  declare const HeroBanner: ({ prehead, date, headerText, subHeadText, association, background, id }: HeroBannerProps) => import("react/jsx-runtime").JSX.Element;
32
41
  export default HeroBanner;
@@ -0,0 +1,12 @@
1
+ export interface IconButtonProps extends Omit<React.HTMLAttributes<HTMLButtonElement>, 'children'> {
2
+ /**
3
+ * Button contents
4
+ */
5
+ children?: React.ReactElement<SVGElement>;
6
+ /**
7
+ * How large should the button be?
8
+ */
9
+ size?: 'sm' | 'md' | 'lg';
10
+ }
11
+ declare const IconButton: ({ children, size, className, ...props }: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
12
+ export default IconButton;
@@ -0,0 +1,16 @@
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import s from "../../node_modules/classnames/index.js";
3
+ import a from "../Button/Button.js";
4
+ import { px as o } from "../../utils/index.js";
5
+ const f = ({ children: t, size: r = "md", className: m, ...n }) => /* @__PURE__ */ p(
6
+ a,
7
+ {
8
+ buttonType: "primary",
9
+ className: s(`${o}-icon-button`, `${o}-icon-button--${r}`, m),
10
+ ...n,
11
+ children: t
12
+ }
13
+ );
14
+ export {
15
+ f as default
16
+ };
@@ -73,5 +73,18 @@ export interface InputProps extends Record<string, unknown> {
73
73
  */
74
74
  warnText?: React.ReactNode;
75
75
  }
76
+ /**
77
+ * ## Overview
78
+ *
79
+ * A page will usually contain multiple Rows. The Row component will apply paddings to the contents within it. Usually a Grid will be rendered within a Row to align to the grid, but other elements are supported.
80
+ *
81
+ * [Figma Input Link](https://www.figma.com/design/xMuOXOAKVt5HC7hgYjF3ot/Components-v2.0?node-id=4433-163016&m=dev)
82
+ *
83
+ * [Figma Toggle Link](https://www.figma.com/design/xMuOXOAKVt5HC7hgYjF3ot/Components-v2.0?node-id=4612-77490&m=dev)
84
+ *
85
+ * [Storybook Input Link](https://phillips-seldon.netlify.app/?path=/docs/components-input--overview)
86
+ *
87
+ * [Storybook Toggle Link](https://phillips-seldon.netlify.app/?path=/docs/components-toggle--overview)
88
+ */
76
89
  declare const Input: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
77
90
  export default Input;
@@ -29,7 +29,9 @@ export interface LinkProps extends HTMLAttributes<HTMLAnchorElement> {
29
29
  *
30
30
  * A component that can be used to navigate to different pages or external websites. Renders a standard anchor tag by default.
31
31
  *
32
- * [Figma Link](https://www.figma.com/file/xMuOXOAKVt5HC7hgYjF3ot/Components-v2.0?node-id=5736%3A13364&mode=dev)
32
+ * [Figma Link](https://www.figma.com/design/xMuOXOAKVt5HC7hgYjF3ot/Components-v2.0?node-id=4612-79026&m=dev)
33
+ *
34
+ * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-links-link--overview)
33
35
  */
34
36
  declare const Link: ({ children, id, className, element: Element, variant, href, ...props }: LinkProps) => import("react/jsx-runtime").JSX.Element;
35
37
  export default Link;
@@ -1,30 +1,32 @@
1
- import { jsx as k } from "react/jsx-runtime";
2
- import c from "../../node_modules/classnames/index.js";
3
- import { px as p } from "../../utils/index.js";
4
- import { getLinkVariantClassName as f, isLinkExternal as x, LinkVariants as d } from "./utils.js";
5
- const V = ({
6
- children: s,
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import f from "../../node_modules/classnames/index.js";
3
+ import { px as x } from "../../utils/index.js";
4
+ import { getLinkVariantClassName as d, isLinkExternal as L, LinkVariants as s } from "./utils.js";
5
+ import { TextVariants as o } from "../Text/types.js";
6
+ import N from "../Text/Text.js";
7
+ const j = ({
8
+ children: i,
7
9
  id: a,
8
- className: r,
10
+ className: m,
9
11
  element: t = "a",
10
- variant: e = d.standalone,
11
- href: n,
12
- ...o
12
+ variant: r = s.standalone,
13
+ href: e,
14
+ ...l
13
15
  }) => {
14
- const i = c(`${p}-link`, f(e), r), l = a ? `link-${a}` : "link", m = x(n);
15
- return /* @__PURE__ */ k(
16
+ const c = f(`${x}-link`, d(r), m), p = a ? `link-${a}` : "link", k = L(e);
17
+ return /* @__PURE__ */ n(
16
18
  t,
17
19
  {
18
- ...o,
19
- href: n,
20
- "data-testid": l,
20
+ ...l,
21
+ href: e,
22
+ "data-testid": p,
21
23
  id: a,
22
- className: i,
23
- ...m && t === "a" ? { rel: "noopener noreferrer", target: "_blank" } : {},
24
- children: s
24
+ className: c,
25
+ ...k && t === "a" ? { rel: "noopener noreferrer", target: "_blank" } : {},
26
+ children: /* @__PURE__ */ n(N, { variant: r === s.email ? o.email : o.ctaSm, children: i })
25
27
  }
26
28
  );
27
29
  };
28
30
  export {
29
- V as default
31
+ j as default
30
32
  };
@@ -10,7 +10,9 @@ export interface LinkBlockProps extends React.HTMLAttributes<HTMLDivElement> {
10
10
  *
11
11
  * The LinkBlock component is used to render a link with a description underneath it. Usually this is used in a list of links.
12
12
  *
13
- * [Figma Link](https://www.figma.com/file/xMuOXOAKVt5HC7hgYjF3ot/Components-v2.0?type=design&node-id=5709-8035&mode=design&t=CTNssP89Nrnt6Jkw-0)
13
+ * [Figma Link](https://www.figma.com/design/xMuOXOAKVt5HC7hgYjF3ot/Components-v2.0?node-id=4612-79026&m=dev)
14
+ *
15
+ * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-links-linkblock--overview)
14
16
  *
15
17
  */
16
18
  declare const LinkBlock: ({ linkProps, description, className: classNameProp, id, ...props }: LinkBlockProps) => import("react/jsx-runtime").JSX.Element;
@@ -9,7 +9,9 @@ export interface LinkListProps extends React.HTMLAttributes<HTMLUListElement> {
9
9
  *
10
10
  * The LinkList component is used to display a list of LinkBlocks in a 3 column list on some breakpoints and 1 column list on others.
11
11
  *
12
- * [Figma Link](https://www.figma.com/file/xMuOXOAKVt5HC7hgYjF3ot/Components-v2.0?type=design&node-id=5709-8035&mode=design&t=jOnrmrqnE8lCQvGR-4)
12
+ * [Figma Link](https://www.figma.com/design/xMuOXOAKVt5HC7hgYjF3ot/Components-v2.0?node-id=4612-79026&m=dev)
13
+ *
14
+ * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-links-linklist--overview)
13
15
  */
14
16
  declare const LinkList: ({ children, id, ...props }: LinkListProps) => import("react/jsx-runtime").JSX.Element;
15
17
  export default LinkList;
@@ -0,0 +1,23 @@
1
+ import ReactModal from 'react-modal';
2
+ export interface ModalProps extends ReactModal.Props {
3
+ /**
4
+ * Boolean to determine if the modal is open
5
+ */
6
+ isOpen: boolean;
7
+ /**
8
+ * Function to close the modal
9
+ */
10
+ onClose?: () => void;
11
+ /**
12
+ * The selector for aria-hide
13
+ */
14
+ appElementSelector?: string;
15
+ }
16
+ /**
17
+ * ## Overview
18
+ *
19
+ * A component for displaying a modal.
20
+ *
21
+ */
22
+ declare const Modal: ({ children, className, isOpen, onClose, appElementSelector, ...props }: ModalProps) => import("react/jsx-runtime").JSX.Element | null;
23
+ export default Modal;
@@ -0,0 +1,45 @@
1
+ import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
+ import a from "../../node_modules/classnames/index.js";
3
+ import { px as r, noOp as c } from "../../utils/index.js";
4
+ import u from "../../assets/close.svg.js";
5
+ import f from "../../node_modules/react-modal/lib/index.js";
6
+ import p from "../IconButton/IconButton.js";
7
+ import { useMemo as v } from "react";
8
+ const b = ({
9
+ children: s,
10
+ className: i,
11
+ isOpen: e = !1,
12
+ onClose: l = c,
13
+ appElementSelector: m = "main",
14
+ ...d
15
+ }) => {
16
+ const o = v(() => document.querySelector(m), [m]);
17
+ return !e || !o ? null : /* @__PURE__ */ n(
18
+ f,
19
+ {
20
+ isOpen: e,
21
+ onRequestClose: l,
22
+ className: a(`${r}-modal`, i),
23
+ overlayClassName: a(`${r}-modal__overlay`),
24
+ appElement: o != null ? o : void 0,
25
+ ariaHideApp: !o,
26
+ ...d,
27
+ children: [
28
+ /* @__PURE__ */ t(
29
+ p,
30
+ {
31
+ "data-testid": "modal-button",
32
+ onClick: l,
33
+ "aria-label": "Close Modal",
34
+ className: a(`${r}-modal__close`),
35
+ children: /* @__PURE__ */ t(u, {})
36
+ }
37
+ ),
38
+ s
39
+ ]
40
+ }
41
+ );
42
+ };
43
+ export {
44
+ b as default
45
+ };
@@ -21,7 +21,9 @@ export interface RowProps extends React.HTMLAttributes<HTMLElement> {
21
21
  *
22
22
  * A page will usually contain multiple Rows. The Row component will apply paddings to the contents within it. Usually a Grid will be rendered within a Row to align to the grid, but other elements are supported.
23
23
  *
24
- * [Figma Link](https://www.figma.com/design/Hp2FyltbOmRxTuw9kSwBAd/EPIC-About-Us?node-id=912-5904&t=WzvEYp5zbnGnRFUf-4)
24
+ * [Figma Link](https://www.figma.com/design/xMuOXOAKVt5HC7hgYjF3ot/Components-v2.0?node-id=6741-6223&m=dev)
25
+ *
26
+ * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-layouts-row--overview)
25
27
  */
26
28
  declare const Row: ({ children, id, element: CustomElement, padding, className, ...props }: RowProps) => import("react/jsx-runtime").JSX.Element;
27
29
  export default Row;
@@ -6,5 +6,14 @@ export interface SelectProps extends InputProps {
6
6
  */
7
7
  children: React.ReactNode;
8
8
  }
9
+ /**
10
+ * ## Overview
11
+ *
12
+ * A component for adding a Select component.
13
+ *
14
+ * [Figma Link](https://www.figma.com/design/xMuOXOAKVt5HC7hgYjF3ot/Components-v2.0?node-id=5608-57898&m=dev)
15
+ *
16
+ * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-select--overview)
17
+ */
9
18
  declare const Select: React.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & React.RefAttributes<HTMLSelectElement>>;
10
19
  export default Select;
@@ -9,7 +9,9 @@ export interface SocialProps extends React.HTMLAttributes<HTMLElement> {
9
9
  *
10
10
  * A component for displaying our social icons. Expects children to be an unordered list of social icons.
11
11
  *
12
- * [Figma Link](https://www.figma.com/file/npS5ECbNut8hevUkGWSzUN/Site-Furniture-(Navigation)---SP24?type=design&node-id=4357-7418&mode=design&t=D7PpghvLOEpBYd3n-0)
12
+ * [Figma Link](https://www.figma.com/design/xMuOXOAKVt5HC7hgYjF3ot/Components-v2.0?node-id=6651-2641&m=dev)
13
+ *
14
+ * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-social--overview)
13
15
  */
14
16
  declare const Social: ({ className, children, id, titleText }: SocialProps) => import("react/jsx-runtime").JSX.Element;
15
17
  export default Social;
@@ -51,7 +51,9 @@ export interface SubscribeProps extends React.HTMLAttributes<HTMLFormElement> {
51
51
  *
52
52
  * A component for adding an email signup form.
53
53
  *
54
- * [Figma Link](https://www.figma.com/file/npS5ECbNut8hevUkGWSzUN/Site-Furniture-(Navigation)---SP24?node-id=4347%3A4194&mode=dev)
54
+ * [Figma Link](https://www.figma.com/design/xMuOXOAKVt5HC7hgYjF3ot/Components-v2.0?node-id=6651-2641&m=dev)
55
+ *
56
+ * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-subscribe--overview)
55
57
  */
56
58
  declare const Subscribe: ({ blurb, buttonText, buttonProps, className, element: Element, id, inputLabelText, inputPlaceholder, title, loadingText, invalidText, successText, subscriptionState, ...props }: SubscribeProps) => import("react/jsx-runtime").JSX.Element;
57
59
  export default Subscribe;
@@ -15,7 +15,9 @@ export interface TextProps extends React.HTMLAttributes<HTMLElement> {
15
15
  *
16
16
  * All text rendered in the UI can be wrapped in this component to enforce consistent styling and semantic HTML.
17
17
  *
18
- * [Figma Link](https://www.figma.com/design/xMuOXOAKVt5HC7hgYjF3ot/Components-v2.0?node-id=6344-139&t=BUiWETQbkkWoDZ5V-4)
18
+ * [Figma Link](https://www.figma.com/design/xMuOXOAKVt5HC7hgYjF3ot/Components-v2.0?node-id=7263-1361&m=dev)
19
+ *
20
+ * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-text--overview)
19
21
  */
20
22
  declare const Text: ({ children, id, element: CustomElement, variant, className, ...props }: TextProps) => import("react/jsx-runtime").JSX.Element;
21
23
  export default Text;
@@ -4,7 +4,7 @@ export declare enum TextVariants {
4
4
  display2 = "display2",
5
5
  display3 = "display3",
6
6
  display4 = "display4",
7
- heading1 = "heading1",
7
+ blockquote = "blockquote",
8
8
  heading2 = "heading2",
9
9
  heading3 = "heading3",
10
10
  heading4 = "heading4",
@@ -16,5 +16,5 @@ export declare enum TextVariants {
16
16
  ctaSm = "ctaSm",
17
17
  email = "email",
18
18
  label = "label",
19
- textBadge = "textBadge"
19
+ badge = "badge"
20
20
  }
@@ -1,4 +1,4 @@
1
- var l = /* @__PURE__ */ ((d) => (d.display0 = "display0", d.display1 = "display1", d.display2 = "display2", d.display3 = "display3", d.display4 = "display4", d.heading1 = "heading1", d.heading2 = "heading2", d.heading3 = "heading3", d.heading4 = "heading4", d.body1 = "body1", d.body2 = "body2", d.body3 = "body3", d.button = "button", d.ctaLg = "ctaLg", d.ctaSm = "ctaSm", d.email = "email", d.label = "label", d.textBadge = "textBadge", d))(l || {});
1
+ var l = /* @__PURE__ */ ((d) => (d.display0 = "display0", d.display1 = "display1", d.display2 = "display2", d.display3 = "display3", d.display4 = "display4", d.blockquote = "blockquote", d.heading2 = "heading2", d.heading3 = "heading3", d.heading4 = "heading4", d.body1 = "body1", d.body2 = "body2", d.body3 = "body3", d.button = "button", d.ctaLg = "ctaLg", d.ctaSm = "ctaSm", d.email = "email", d.label = "label", d.badge = "badge", d))(l || {});
2
2
  export {
3
3
  l as TextVariants
4
4
  };
@@ -1,10 +1,10 @@
1
- import { px as a } from "../../utils/index.js";
2
- import { TextVariants as r } from "./types.js";
3
- const c = (e = r.body1) => {
4
- const t = e.replace("labelText", "label-text").replace("textBadge", "text-badge").replace("ctaSm", "cta-sm").replace("ctaLg", "cta-lg");
5
- return `${a}-text--${t.charAt(0).toLowerCase() + t.slice(1)}`;
6
- }, s = (e = r.body1) => e.includes("body") ? "p" : e === r.label ? "label" : e.includes("heading") ? `h${isNaN(parseInt(e.slice(-1))) ? 3 : parseInt(e.slice(-1))}` : "span";
1
+ import { px as s } from "../../utils/index.js";
2
+ import { TextVariants as t } from "./types.js";
3
+ const n = (e = t.body1) => {
4
+ const r = e.replace("ctaSm", "cta-sm").replace("ctaLg", "cta-lg");
5
+ return `${s}-text--${r.charAt(0).toLowerCase() + r.slice(1)}`;
6
+ }, c = (e = t.body1) => [t.display0, t.display1].includes(e) ? "h1" : [t.display2, t.display3, t.display4].includes(e) ? "h3" : e === t.blockquote ? "blockquote" : e.includes("body") ? "p" : e === t.label ? "label" : e.includes("heading") ? `h${isNaN(parseInt(e.slice(-1))) ? 3 : parseInt(e.slice(-1))}` : "span";
7
7
  export {
8
- s as determineDefaultTextElement,
9
- c as determineTextClassName
8
+ c as determineDefaultTextElement,
9
+ n as determineTextClassName
10
10
  };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { default as Button, type ButtonProps } from './components/Button/Button';
2
+ export { default as IconButton } from './components/IconButton/IconButton';
2
3
  export { default as ErrorBoundary, type ErrorBoundaryProps } from './components/ErrorBoundary/ErrorBoundary';
3
4
  export { default as Footer, type FooterProps } from './components/Footer/Footer';
4
5
  export { default as Grid, type GridProps } from './components/Grid/Grid';
@@ -17,6 +18,7 @@ export { default as SplitPanel, type SplitPanelProps } from './components/SplitP
17
18
  export { default as Subscribe, type SubscribeProps } from './components/Subscribe/Subscribe';
18
19
  export { default as Social, type SocialProps } from './components/Social/Social';
19
20
  export { default as ViewingsList, type ViewingsListProps } from './components/ViewingsList/ViewingsList';
21
+ export { default as Modal, type ModalProps } from './components/Modal/Modal';
20
22
  export { default as StatefulViewingsList, type StatefulViewingsListProps, } from './components/ViewingsList/StatefulViewingsList';
21
23
  export * from './components/Text';
22
24
  export * from './utils';