@phillips/seldon 1.171.0 → 1.172.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 (71) hide show
  1. package/dist/components/Carousel/CarouselDot.d.ts +2 -3
  2. package/dist/components/Carousel/CarouselDot.test.d.ts +0 -0
  3. package/dist/components/Carousel/CarouselDots.test.d.ts +0 -0
  4. package/dist/components/Carousel/CarouselKeyboardNavigation.test.d.ts +1 -0
  5. package/dist/components/ComposedModal/ComposedModal.js +21 -20
  6. package/dist/components/Drawer/Drawer.d.ts +22 -3
  7. package/dist/components/Drawer/Drawer.js +80 -73
  8. package/dist/components/Drawer/Drawer.stories.d.ts +97 -2
  9. package/dist/components/Drawer/DrawerHeader.d.ts +12 -0
  10. package/dist/components/Drawer/DrawerHeader.js +34 -0
  11. package/dist/components/Drawer/DrawerHeader.test.d.ts +1 -0
  12. package/dist/components/Dropdown/Dropdown.d.ts +2 -2
  13. package/dist/components/Dropdown/Dropdown.js +19 -19
  14. package/dist/components/Grid/Grid.d.ts +6 -3
  15. package/dist/components/Grid/Grid.js +20 -18
  16. package/dist/components/GridItem/GridItem.d.ts +1 -2
  17. package/dist/components/GridItem/GridItem.js +29 -26
  18. package/dist/components/GridItem/GridItem.stories.d.ts +1 -1
  19. package/dist/components/Link/Link.d.ts +1 -1
  20. package/dist/components/Link/Link.js +24 -26
  21. package/dist/components/Link/Link.stories.d.ts +1 -1
  22. package/dist/components/Link/types.js +1 -3
  23. package/dist/components/LinkBlock/LinkBlock.d.ts +1 -1
  24. package/dist/components/LinkBlock/LinkBlock.js +16 -12
  25. package/dist/components/LinkBlock/LinkBlock.stories.d.ts +1 -1
  26. package/dist/components/LinkList/LinkList.d.ts +1 -2
  27. package/dist/components/LinkList/LinkList.js +21 -8
  28. package/dist/components/LinkList/LinkList.stories.d.ts +2 -2
  29. package/dist/components/Pagination/Pagination.d.ts +2 -2
  30. package/dist/components/Pagination/Pagination.js +98 -94
  31. package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
  32. package/dist/components/PinchZoom/PinchZoom.d.ts +1 -2
  33. package/dist/components/PinchZoom/PinchZoom.js +54 -58
  34. package/dist/components/PinchZoom/PinchZoom.stories.d.ts +1 -1
  35. package/dist/components/Row/Row.d.ts +1 -2
  36. package/dist/components/Row/Row.js +31 -26
  37. package/dist/components/Row/Row.stories.d.ts +1 -1
  38. package/dist/components/Search/Search.d.ts +3 -2
  39. package/dist/components/Search/Search.js +160 -157
  40. package/dist/components/SplitPanel/SplitPanel.d.ts +1 -1
  41. package/dist/components/SplitPanel/SplitPanel.js +20 -21
  42. package/dist/components/SplitPanel/SplitPanel.stories.d.ts +1 -1
  43. package/dist/components/Text/Text.d.ts +1 -2
  44. package/dist/components/Text/Text.js +31 -34
  45. package/dist/components/Text/Text.stories.d.ts +1 -1
  46. package/dist/components/TextSymbol/TextSymbol.d.ts +1 -1
  47. package/dist/components/TextSymbol/TextSymbol.js +20 -7
  48. package/dist/components/TextSymbol/TextSymbol.stories.d.ts +1 -1
  49. package/dist/index.js +1 -1
  50. package/dist/patterns/FiltersInline/MainFilterDropdown.js +23 -22
  51. package/dist/patterns/FiltersInline/SubFilterDropdown.js +67 -66
  52. package/dist/patterns/HeroBanner/HeroBanner.d.ts +1 -1
  53. package/dist/patterns/HeroBanner/HeroBanner.js +30 -34
  54. package/dist/patterns/HeroBanner/HeroBanner.stories.d.ts +1 -1
  55. package/dist/patterns/LanguageSelector/LanguageSelector.js +66 -61
  56. package/dist/patterns/Social/Social.d.ts +1 -1
  57. package/dist/patterns/Social/Social.js +27 -23
  58. package/dist/patterns/Social/Social.stories.d.ts +1 -1
  59. package/dist/patterns/Subscribe/Subscribe.d.ts +2 -1
  60. package/dist/patterns/Subscribe/Subscribe.js +77 -62
  61. package/dist/patterns/Subscribe/Subscribe.stories.d.ts +1 -1
  62. package/dist/patterns/ViewingsList/StatefulViewingsList.d.ts +1 -1
  63. package/dist/patterns/ViewingsList/StatefulViewingsList.js +28 -31
  64. package/dist/patterns/ViewingsList/ViewingsList.d.ts +1 -1
  65. package/dist/patterns/ViewingsList/ViewingsList.js +40 -39
  66. package/dist/patterns/ViewingsList/ViewingsList.stories.d.ts +1 -1
  67. package/dist/scss/componentStyles.scss +1 -0
  68. package/dist/scss/components/Drawer/_drawer.scss +43 -16
  69. package/dist/scss/components/Drawer/_drawerHeader.scss +45 -0
  70. package/dist/utils/testUtils.d.ts +3 -0
  71. package/package.json +1 -1
@@ -1,63 +1,59 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { useState as X, useRef as h, useEffect as w, useCallback as C, isValidElement as E, cloneElement as $ } from "react";
3
- import { getCommonProps as k } from "../../utils/index.js";
4
- import { TransformWrapper as z, TransformComponent as M } from "../../node_modules/react-zoom-pan-pinch/dist/index.esm.js";
2
+ import { forwardRef as X, useState as h, useRef as C, useEffect as E, useCallback as $, isValidElement as k, cloneElement as z } from "react";
3
+ import { getCommonProps as M } from "../../utils/index.js";
4
+ import { TransformWrapper as R, TransformComponent as g } from "../../node_modules/react-zoom-pan-pinch/dist/index.esm.js";
5
5
  import d from "../../node_modules/classnames/index.js";
6
- const g = ({
7
- onZoomChange: s,
8
- onAtLeftEdge: m,
9
- onAtRightEdge: l,
10
- children: e,
11
- maxZoom: u = 10,
12
- className: b,
13
- isZoomReset: n = !1,
14
- ...i
15
- }) => {
16
- const { className: o, ...P } = k(i, "PinchZoom"), [t, r] = X(!1), c = h(null);
17
- w(() => {
18
- n && (c.current?.resetTransform(), r(!1), s?.(!1));
19
- }, [n, s]);
20
- const N = C(
21
- (x) => {
22
- const { state: a, instance: f } = x;
23
- a.scale > 0.99 && a.scale < 1.01 ? (r(!1), s?.(!1)) : (r(!0), s?.(!0));
24
- const S = Math.abs(a.positionX - (f.bounds?.maxPositionX ?? 0)) < 0.01, T = Math.abs(a.positionX - (f.bounds?.minPositionX ?? 0)) < 0.01;
25
- m?.(S), l?.(T);
26
- },
27
- [s, m, l]
28
- );
29
- return /* @__PURE__ */ p(
30
- z,
31
- {
32
- maxScale: u,
33
- onTransformed: N,
34
- minScale: 1,
35
- disablePadding: !0,
36
- doubleClick: {
37
- mode: t ? "reset" : "toggle"
6
+ const j = X(
7
+ ({ onZoomChange: s, onAtLeftEdge: m, onAtRightEdge: l, children: e, maxZoom: u = 10, className: b, isZoomReset: n = !1, ...i }, P) => {
8
+ const { className: o, ...N } = M(i, "PinchZoom"), [t, r] = h(!1), c = C(null);
9
+ E(() => {
10
+ n && (c.current?.resetTransform(), r(!1), s?.(!1));
11
+ }, [n, s]);
12
+ const w = $(
13
+ (x) => {
14
+ const { state: a, instance: f } = x;
15
+ a.scale > 0.99 && a.scale < 1.01 ? (r(!1), s?.(!1)) : (r(!0), s?.(!0));
16
+ const S = Math.abs(a.positionX - (f.bounds?.maxPositionX ?? 0)) < 0.01, T = Math.abs(a.positionX - (f.bounds?.minPositionX ?? 0)) < 0.01;
17
+ m?.(S), l?.(T);
38
18
  },
39
- wheel: {
40
- smoothStep: 0.01
41
- },
42
- panning: {
43
- disabled: !t
44
- },
45
- ref: c,
46
- children: /* @__PURE__ */ p(
47
- M,
48
- {
49
- wrapperProps: { ...P, ...i },
50
- wrapperClass: d(o, b, {
51
- [`${o}-zoomed`]: t
52
- }),
53
- contentClass: `${o}-content`,
54
- children: E(e) ? $(e, { className: d(`${o}-child`, e?.props?.className) }) : e
55
- }
56
- )
57
- }
58
- );
59
- };
60
- g.displayName = "PinchZoom";
19
+ [s, m, l]
20
+ );
21
+ return /* @__PURE__ */ p(
22
+ R,
23
+ {
24
+ maxScale: u,
25
+ onTransformed: w,
26
+ minScale: 1,
27
+ disablePadding: !0,
28
+ doubleClick: {
29
+ mode: t ? "reset" : "toggle"
30
+ },
31
+ wheel: {
32
+ smoothStep: 0.01
33
+ },
34
+ panning: {
35
+ disabled: !t
36
+ },
37
+ ref: c,
38
+ children: /* @__PURE__ */ p(
39
+ g,
40
+ {
41
+ wrapperProps: { ...N, ...i },
42
+ wrapperClass: d(o, b, {
43
+ [`${o}-zoomed`]: t
44
+ }),
45
+ contentClass: `${o}-content`,
46
+ children: k(e) ? z(e, {
47
+ className: d(`${o}-child`, e?.props?.className),
48
+ ref: P
49
+ }) : e
50
+ }
51
+ )
52
+ }
53
+ );
54
+ }
55
+ );
56
+ j.displayName = "PinchZoom";
61
57
  export {
62
- g as default
58
+ j as default
63
59
  };
@@ -1,7 +1,7 @@
1
1
  import { PinchZoomProps } from './PinchZoom';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: import('react').FC<PinchZoomProps>;
4
+ component: import('react').ForwardRefExoticComponent<PinchZoomProps & import('react').RefAttributes<HTMLElement>>;
5
5
  };
6
6
  export default meta;
7
7
  export declare const Playground: {
@@ -1,4 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import { PaddingTokens } from '../../utils';
3
2
  export interface RowProps extends React.HTMLAttributes<HTMLElement> {
4
3
  /**
@@ -22,5 +21,5 @@ export interface RowProps extends React.HTMLAttributes<HTMLElement> {
22
21
  *
23
22
  * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-layouts-row--overview)
24
23
  */
25
- declare const Row: ({ children, element: CustomElement, padding, className, ...props }: RowProps) => import("react/jsx-runtime").JSX.Element;
24
+ declare const Row: import('react').ForwardRefExoticComponent<RowProps & import('react').RefAttributes<HTMLElement>>;
26
25
  export default Row;
@@ -1,29 +1,34 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import { getCommonProps as p, generatePaddingClassName as e, PaddingTokens as m } from "../../utils/index.js";
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { forwardRef as f } from "react";
3
+ import { getCommonProps as i, generatePaddingClassName as m, PaddingTokens as e } from "../../utils/index.js";
3
4
  import C from "../../node_modules/classnames/index.js";
4
- const g = ({
5
- children: s,
6
- element: n,
7
- padding: o = { top: m.lg, bottom: m.lg },
8
- className: a,
9
- ...t
10
- }) => {
11
- const { className: r, ...l } = p(t, "Row");
12
- return /* @__PURE__ */ c(
13
- n || "section",
14
- {
15
- ...l,
16
- className: C(
17
- r,
18
- o.top && e(o.top, "start"),
19
- o.bottom && e(o.bottom, "end"),
20
- a
21
- ),
22
- ...t,
23
- children: s
24
- }
25
- );
26
- };
5
+ const N = f(
6
+ ({
7
+ children: s,
8
+ element: a,
9
+ padding: o = { top: e.lg, bottom: e.lg },
10
+ className: r,
11
+ ...t
12
+ }, n) => {
13
+ const { className: l, ...c } = i(t, "Row");
14
+ return /* @__PURE__ */ p(
15
+ a || "section",
16
+ {
17
+ ref: n,
18
+ ...c,
19
+ className: C(
20
+ l,
21
+ o.top && m(o.top, "start"),
22
+ o.bottom && m(o.bottom, "end"),
23
+ r
24
+ ),
25
+ ...t,
26
+ children: s
27
+ }
28
+ );
29
+ }
30
+ );
31
+ N.displayName = "Row";
27
32
  export {
28
- g as default
33
+ N as default
29
34
  };
@@ -1,7 +1,7 @@
1
1
  import { RowProps } from './Row';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ children, element: CustomElement, padding, className, ...props }: RowProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: import('react').ForwardRefExoticComponent<RowProps & import('react').RefAttributes<HTMLElement>>;
5
5
  };
6
6
  export default meta;
7
7
  export declare const Playground: {
@@ -1,4 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import { SearchResultsProps } from './SearchResults/SearchResults';
3
2
  export interface SearchProps extends React.HTMLAttributes<HTMLDivElement> {
4
3
  /**
@@ -44,5 +43,7 @@ export interface SearchProps extends React.HTMLAttributes<HTMLDivElement> {
44
43
  */
45
44
  invalidText?: string;
46
45
  }
47
- declare const Search: ({ onSearch, onCancel, searchResults, state, defaultValue, className, placeholder, searchButtonText, loadingText, invalidText, getAllResultsText, getAllResultsLink, ...props }: React.PropsWithChildren<SearchProps>) => import("react/jsx-runtime").JSX.Element;
46
+ declare const Search: import('react').ForwardRefExoticComponent<SearchProps & {
47
+ children?: import('react').ReactNode | undefined;
48
+ } & import('react').RefAttributes<HTMLDivElement>>;
48
49
  export default Search;
@@ -1,162 +1,165 @@
1
- import { jsx as t, jsxs as f } from "react/jsx-runtime";
2
- import n, { useEffect as V } from "react";
3
- import { getCommonProps as j, px as D, encodeURLSearchParams as $ } from "../../utils/index.js";
4
- import p from "../../node_modules/classnames/index.js";
5
- import H from "../Input/Input.js";
6
- import O from "../Link/Link.js";
7
- import A from "./SearchResults/SearchResults.js";
8
- import { TextVariants as F } from "../Text/types.js";
9
- import K from "../Text/Text.js";
10
- import { useOnClickOutside as M } from "../../node_modules/usehooks-ts/dist/index.js";
11
- import { HeaderContext as U } from "../../site-furniture/Header/Header.js";
12
- import { SearchButton as Z } from "./SearchButton.js";
13
- import q from "../../node_modules/react-remove-scroll/dist/es2015/Combination.js";
14
- import z from "../../node_modules/react-transition-group/esm/CSSTransition.js";
15
- const ie = ({
16
- onSearch: _,
17
- onCancel: S,
18
- searchResults: N = [],
19
- state: o = "idle",
20
- defaultValue: w = "",
21
- className: C,
22
- placeholder: I = "",
23
- searchButtonText: i = "Search",
24
- loadingText: E = "Search In Progress...",
25
- invalidText: b = "Invalid search",
26
- getAllResultsText: P = (e) => `View all results for ${e}`,
27
- getAllResultsLink: v = (e) => `/Search?Search=${e}`,
28
- ...x
29
- }) => {
30
- const { className: e, "data-testid": c, ...k } = j(x, "Search"), l = n.useContext(U), d = n.useRef(null), m = n.useRef(null), R = n.useRef(null), a = l.isSearchExpanded, s = d.current?.value, [L, u] = n.useState(!0), T = _ ? (r) => {
31
- _(r.target.value);
32
- } : void 0;
33
- M(R, (r) => {
34
- S?.(), h(!1), r.stopPropagation();
35
- });
36
- const g = (r) => {
37
- if (r.stopPropagation(), r.key === "Enter") {
38
- if (r.preventDefault(), s && s.length > 2) {
39
- const y = $(v(s));
40
- u(!1), window.location.href = y;
1
+ import { jsx as t, jsxs as u } from "react/jsx-runtime";
2
+ import { forwardRef as j, useContext as D, useRef as p, useState as H, useEffect as O } from "react";
3
+ import { getCommonProps as A, px as F, encodeURLSearchParams as N } from "../../utils/index.js";
4
+ import f from "../../node_modules/classnames/index.js";
5
+ import K from "../Input/Input.js";
6
+ import M from "../Link/Link.js";
7
+ import U from "./SearchResults/SearchResults.js";
8
+ import { TextVariants as Z } from "../Text/types.js";
9
+ import q from "../Text/Text.js";
10
+ import { useOnClickOutside as z } from "../../node_modules/usehooks-ts/dist/index.js";
11
+ import { HeaderContext as B } from "../../site-furniture/Header/Header.js";
12
+ import { SearchButton as G } from "./SearchButton.js";
13
+ import J from "../../node_modules/react-remove-scroll/dist/es2015/Combination.js";
14
+ import Q from "../../node_modules/react-transition-group/esm/CSSTransition.js";
15
+ const W = j(
16
+ ({
17
+ onSearch: S,
18
+ onCancel: _,
19
+ searchResults: R = [],
20
+ state: n = "idle",
21
+ defaultValue: w = "",
22
+ className: C,
23
+ placeholder: I = "",
24
+ searchButtonText: o = "Search",
25
+ loadingText: E = "Search In Progress...",
26
+ invalidText: b = "Invalid search",
27
+ getAllResultsText: P = (e) => `View all results for ${e}`,
28
+ getAllResultsLink: v = (e) => `/Search?Search=${e}`,
29
+ ...x
30
+ }, k) => {
31
+ const { className: e, "data-testid": i, ...L } = A(x, "Search"), c = D(B), l = p(null), d = p(null), g = p(null), a = c.isSearchExpanded, s = l.current?.value, [T, m] = H(!0), y = S ? (r) => {
32
+ S(r.target.value);
33
+ } : void 0;
34
+ z(g, (r) => {
35
+ _?.(), h(!1), r.stopPropagation();
36
+ });
37
+ const $ = (r) => {
38
+ if (r.stopPropagation(), r.key === "Enter") {
39
+ if (r.preventDefault(), s && s.length > 2) {
40
+ const V = N(v(s));
41
+ m(!1), window.location.href = V;
42
+ }
43
+ r.currentTarget instanceof HTMLAnchorElement && (m(!1), r.currentTarget.click());
41
44
  }
42
- r.currentTarget instanceof HTMLAnchorElement && (u(!1), r.currentTarget.click());
43
- }
44
- r.key === "Escape" && (m.current?.reset(), l.setIsSearchExpanded(!1));
45
- };
46
- V(() => {
47
- if (a) {
48
- d.current?.focus();
49
- return;
50
- }
51
- }, [a]);
52
- const h = (r) => {
53
- m.current?.reset(), l.setIsSearchExpanded(r);
54
- };
55
- return /* @__PURE__ */ t(q, { enabled: a, allowPinchZoom: !0, removeScrollBar: !1, children: /* @__PURE__ */ t("div", { className: `${e}__container`, children: /* @__PURE__ */ f(
56
- "div",
57
- {
58
- className: `${e}__container__inner`,
59
- ref: R,
60
- onClick: (r) => {
61
- a || (h(!0), r.stopPropagation());
62
- },
63
- children: [
64
- /* @__PURE__ */ t(K, { variant: F.heading4, className: `${e}__container__inner__label`, children: i }),
65
- /* @__PURE__ */ t(
66
- "div",
67
- {
68
- ...k,
69
- className: p(e, C, { [`${e}--active`]: a }),
70
- "data-testid": c,
71
- role: "search",
72
- ...x,
73
- children: /* @__PURE__ */ f(
74
- "form",
75
- {
76
- "data-testid": `${c}-form`,
77
- className: p(`${e}__form`, {
78
- [`${e}__form--active`]: a
79
- }),
80
- ref: m,
81
- children: [
82
- /* @__PURE__ */ f(
83
- "div",
84
- {
85
- className: p(`${e}__content-wrapper`, {
86
- [`${e}__content-wrapper--active`]: a
87
- }),
88
- role: "combobox",
89
- "aria-haspopup": "listbox",
90
- children: [
91
- /* @__PURE__ */ t(
92
- z,
93
- {
94
- in: a,
95
- classNames: `${D}-input`,
96
- addEndListener: () => {
97
- },
98
- children: /* @__PURE__ */ t(
99
- H,
100
- {
101
- "aria-hidden": !a,
102
- className: `${e}__input`,
103
- id: "search-input",
104
- hideLabel: !0,
105
- labelText: i,
106
- placeholder: a ? I : "",
107
- type: "text",
108
- defaultValue: w,
109
- invalid: o === "invalid",
110
- invalidText: b,
111
- onKeyDown: g,
112
- onChange: T,
113
- ref: d
114
- }
115
- )
116
- }
117
- ),
118
- /* @__PURE__ */ t(
119
- Z,
45
+ r.key === "Escape" && (d.current?.reset(), c.setIsSearchExpanded(!1));
46
+ };
47
+ O(() => {
48
+ if (a) {
49
+ l.current?.focus();
50
+ return;
51
+ }
52
+ }, [a]);
53
+ const h = (r) => {
54
+ d.current?.reset(), c.setIsSearchExpanded(r);
55
+ };
56
+ return /* @__PURE__ */ t(J, { enabled: a, allowPinchZoom: !0, removeScrollBar: !1, children: /* @__PURE__ */ t("div", { className: `${e}__container`, ref: k, children: /* @__PURE__ */ u(
57
+ "div",
58
+ {
59
+ className: `${e}__container__inner`,
60
+ ref: g,
61
+ onClick: (r) => {
62
+ a || (h(!0), r.stopPropagation());
63
+ },
64
+ children: [
65
+ /* @__PURE__ */ t(q, { variant: Z.heading4, className: `${e}__container__inner__label`, children: o }),
66
+ /* @__PURE__ */ t(
67
+ "div",
68
+ {
69
+ ...L,
70
+ className: f(e, C, { [`${e}--active`]: a }),
71
+ "data-testid": i,
72
+ role: "search",
73
+ ...x,
74
+ children: /* @__PURE__ */ u(
75
+ "form",
76
+ {
77
+ "data-testid": `${i}-form`,
78
+ className: f(`${e}__form`, {
79
+ [`${e}__form--active`]: a
80
+ }),
81
+ ref: d,
82
+ children: [
83
+ /* @__PURE__ */ u(
84
+ "div",
85
+ {
86
+ className: f(`${e}__content-wrapper`, {
87
+ [`${e}__content-wrapper--active`]: a
88
+ }),
89
+ role: "combobox",
90
+ "aria-haspopup": "listbox",
91
+ children: [
92
+ /* @__PURE__ */ t(
93
+ Q,
94
+ {
95
+ in: a,
96
+ classNames: `${F}-input`,
97
+ addEndListener: () => {
98
+ },
99
+ children: /* @__PURE__ */ t(
100
+ K,
101
+ {
102
+ "aria-hidden": !a,
103
+ className: `${e}__input`,
104
+ id: "search-input",
105
+ hideLabel: !0,
106
+ labelText: o,
107
+ placeholder: a ? I : "",
108
+ type: "text",
109
+ defaultValue: w,
110
+ invalid: n === "invalid",
111
+ invalidText: b,
112
+ onKeyDown: $,
113
+ onChange: y,
114
+ ref: l
115
+ }
116
+ )
117
+ }
118
+ ),
119
+ /* @__PURE__ */ t(
120
+ G,
121
+ {
122
+ className: e,
123
+ searchButtonText: o,
124
+ state: n,
125
+ testId: i,
126
+ isSearchExpanded: a,
127
+ setIsSearchExpanded: h,
128
+ onCancel: _
129
+ }
130
+ )
131
+ ]
132
+ }
133
+ ),
134
+ a && T && s && s.length > 2 ? /* @__PURE__ */ t(
135
+ U,
136
+ {
137
+ autoCompleteResults: R,
138
+ isLoading: n === "loading",
139
+ loadingText: E,
140
+ onKeyDown: $,
141
+ userInputValue: s,
142
+ closeSearch: m,
143
+ children: /* @__PURE__ */ t("li", { className: `${e}__result`, children: /* @__PURE__ */ t(
144
+ M,
120
145
  {
121
- className: e,
122
- searchButtonText: i,
123
- state: o,
124
- testId: c,
125
- isSearchExpanded: a,
126
- setIsSearchExpanded: h,
127
- onCancel: S
146
+ href: ((r) => N(v(r)))(s),
147
+ children: /* @__PURE__ */ t("p", { children: P(s) })
128
148
  }
129
- )
130
- ]
131
- }
132
- ),
133
- a && L && s && s.length > 2 ? /* @__PURE__ */ t(
134
- A,
135
- {
136
- autoCompleteResults: N,
137
- isLoading: o === "loading",
138
- loadingText: E,
139
- onKeyDown: g,
140
- userInputValue: s,
141
- closeSearch: u,
142
- children: /* @__PURE__ */ t("li", { className: `${e}__result`, children: /* @__PURE__ */ t(
143
- O,
144
- {
145
- href: ((r) => $(v(r)))(s),
146
- children: /* @__PURE__ */ t("p", { children: P(s) })
147
- }
148
- ) }, "viewAllSearchResults")
149
- }
150
- ) : null
151
- ]
152
- }
153
- )
154
- }
155
- )
156
- ]
157
- }
158
- ) }) });
159
- };
149
+ ) }, "viewAllSearchResults")
150
+ }
151
+ ) : null
152
+ ]
153
+ }
154
+ )
155
+ }
156
+ )
157
+ ]
158
+ }
159
+ ) }) });
160
+ }
161
+ );
162
+ W.displayName = "Search";
160
163
  export {
161
- ie as default
164
+ W as default
162
165
  };
@@ -15,5 +15,5 @@ export interface SplitPanelProps extends React.HTMLAttributes<HTMLElement> {
15
15
  *
16
16
  * [Figma Link](https://www.figma.com/file/Hp2FyltbOmRxTuw9kSwBAd/EPIC-About-Us?type=design&node-id=635-34713&mode=design&t=wKZW1vKP8WePUjrH-0)
17
17
  */
18
- declare const SplitPanel: ({ children, className, element: Element, hasBorder, ...props }: SplitPanelProps) => import("react/jsx-runtime").JSX.Element;
18
+ declare const SplitPanel: import('react').ForwardRefExoticComponent<SplitPanelProps & import('react').RefAttributes<HTMLElement>>;
19
19
  export default SplitPanel;
@@ -1,24 +1,23 @@
1
- import { jsx as l } from "react/jsx-runtime";
2
- import n from "../../node_modules/classnames/index.js";
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import i from "../../node_modules/classnames/index.js";
3
+ import { forwardRef as p } from "react";
3
4
  import { getCommonProps as c } from "../../utils/index.js";
4
- const P = ({
5
- children: o,
6
- className: m,
7
- element: t = "section",
8
- hasBorder: a = !0,
9
- ...e
10
- }) => {
11
- const { className: s, ...r } = c(e, "SplitPanel");
12
- return /* @__PURE__ */ l(
13
- t,
14
- {
15
- ...r,
16
- className: n(s, m, { [`${s}--borderless`]: !a }),
17
- ...e,
18
- children: o
19
- }
20
- );
21
- };
5
+ const f = p(
6
+ ({ children: s, className: m, element: a = "section", hasBorder: r = !0, ...e }, t) => {
7
+ const { className: o, ...l } = c(e, "SplitPanel");
8
+ return /* @__PURE__ */ n(
9
+ a,
10
+ {
11
+ ...l,
12
+ className: i(o, m, { [`${o}--borderless`]: !r }),
13
+ ref: t,
14
+ ...e,
15
+ children: s
16
+ }
17
+ );
18
+ }
19
+ );
20
+ f.displayName = "SplitPanel";
22
21
  export {
23
- P as default
22
+ f as default
24
23
  };
@@ -1,7 +1,7 @@
1
1
  import { SplitPanelProps } from './SplitPanel';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ children, className, element: Element, hasBorder, ...props }: SplitPanelProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: import('react').ForwardRefExoticComponent<SplitPanelProps & import('react').RefAttributes<HTMLElement>>;
5
5
  };
6
6
  export default meta;
7
7
  export declare const Playground: {
@@ -1,4 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import { TextAlignments, TextVariants } from './types';
3
2
  export interface TextProps extends React.HTMLAttributes<HTMLElement> {
4
3
  /**
@@ -27,5 +26,5 @@ export interface TextProps extends React.HTMLAttributes<HTMLElement> {
27
26
  *
28
27
  * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-text--overview)
29
28
  */
30
- declare const Text: ({ children, className, element: CustomElement, variant, align, isSkeletonLoading, ...props }: TextProps) => import("react/jsx-runtime").JSX.Element;
29
+ declare const Text: import('react').ForwardRefExoticComponent<TextProps & import('react').RefAttributes<HTMLElement>>;
31
30
  export default Text;