@phillips/seldon 1.31.1 → 1.32.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 (42) hide show
  1. package/dist/assets/lock.svg.js +4 -0
  2. package/dist/assets/minus.svg.js +4 -0
  3. package/dist/assets/plus.svg.js +4 -0
  4. package/dist/components/Accordion/Accordion.d.ts +26 -0
  5. package/dist/components/Accordion/Accordion.js +21 -0
  6. package/dist/components/Accordion/AccordionItem.d.ts +37 -0
  7. package/dist/components/Accordion/AccordionItem.js +114 -0
  8. package/dist/components/Accordion/index.d.ts +2 -0
  9. package/dist/components/Accordion/types.d.ts +44 -0
  10. package/dist/components/LinkList/LinkList.js +10 -12
  11. package/dist/index.d.ts +1 -0
  12. package/dist/index.js +26 -22
  13. package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +237 -0
  14. package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/primitive/dist/index.js +9 -0
  15. package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-compose-refs/dist/index.js +14 -0
  16. package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-context/dist/index.js +52 -0
  17. package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-id/dist/index.js +13 -0
  18. package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-primitive/dist/index.js +31 -0
  19. package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-slot/dist/index.js +48 -0
  20. package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +13 -0
  21. package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +32 -0
  22. package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
  23. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +119 -0
  24. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/primitive/dist/index.js +9 -0
  25. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-compose-refs/dist/index.js +14 -0
  26. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-context/dist/index.js +52 -0
  27. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-id/dist/index.js +13 -0
  28. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-presence/dist/index.js +69 -0
  29. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-primitive/dist/index.js +31 -0
  30. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-slot/dist/index.js +48 -0
  31. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +13 -0
  32. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +32 -0
  33. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
  34. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +48 -0
  35. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-compose-refs/dist/index.js +14 -0
  36. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-context/dist/index.js +52 -0
  37. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.js +48 -0
  38. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
  39. package/dist/node_modules/react-modal/lib/components/Modal.js +6 -6
  40. package/dist/scss/components/Accordion/_accordion.scss +104 -0
  41. package/dist/scss/styles.scss +1 -0
  42. package/package.json +2 -1
@@ -0,0 +1,4 @@
1
+ const C = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.4%209.7H15.6571V8.21429C15.6571%206.164%2013.9931%204.5%2011.9429%204.5C9.89257%204.5%208.22857%206.164%208.22857%208.21429V9.7H7.48571C6.66857%209.7%206%2010.3686%206%2011.1857V18.6143C6%2019.4314%206.66857%2020.1%207.48571%2020.1H16.4C17.2171%2020.1%2017.8857%2019.4314%2017.8857%2018.6143V11.1857C17.8857%2010.3686%2017.2171%209.7%2016.4%209.7ZM12%2017.175C11.1829%2017.175%2010.5%2014.9921%2010.5%2014.175C10.5%2013.3579%2011.1829%2013.05%2012%2013.05C12.8171%2013.05%2013.5%2013.3579%2013.5%2014.175C13.5%2014.9921%2012.8171%2017.175%2012%2017.175ZM9.375%209.7V7.8C9.375%206.56685%2010.7669%205.55%2012%205.55C13.2331%205.55%2014.625%206.56685%2014.625%207.8V9.7H9.375Z'%20fill='%23545454'/%3e%3c/svg%3e";
2
+ export {
3
+ C as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const e = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.5%2011.8929C4.5%2011.4195%204.83579%2011.0357%205.25%2011.0357L18.75%2011.0357C19.1642%2011.0357%2019.5%2011.4195%2019.5%2011.8929C19.5%2012.3662%2019.1642%2012.75%2018.75%2012.75L5.25%2012.75C4.83579%2012.75%204.5%2012.3662%204.5%2011.8929Z'%20fill='%23323232'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.5%2011.8929C4.5%2011.4195%204.83579%2011.0357%205.25%2011.0357L18.75%2011.0357C19.1642%2011.0357%2019.5%2011.4195%2019.5%2011.8929C19.5%2012.3662%2019.1642%2012.75%2018.75%2012.75L5.25%2012.75C4.83579%2012.75%204.5%2012.3662%204.5%2011.8929Z'%20fill='%23323232'/%3e%3c/svg%3e";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const e = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.5%2011.8929C4.5%2011.4195%204.83579%2011.0357%205.25%2011.0357L18.75%2011.0357C19.1642%2011.0357%2019.5%2011.4195%2019.5%2011.8929C19.5%2012.3662%2019.1642%2012.75%2018.75%2012.75L5.25%2012.75C4.83579%2012.75%204.5%2012.3662%204.5%2011.8929Z'%20fill='%23323232'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.1071%204.5C12.5805%204.5%2012.9643%204.83579%2012.9643%205.25L12.9643%2018.75C12.9643%2019.1642%2012.5805%2019.5%2012.1071%2019.5C11.6338%2019.5%2011.25%2019.1642%2011.25%2018.75L11.25%205.25C11.25%204.83579%2011.6338%204.5%2012.1071%204.5Z'%20fill='%23323232'/%3e%3c/svg%3e";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ export interface AccordionProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * Unique id for component testing
5
+ */
6
+ id?: string;
7
+ /**
8
+ * Determines whether one or multiple items can be opened at the same time. Default as single.
9
+ */
10
+ type?: 'single' | 'multiple';
11
+ /**
12
+ * Child element pass in to display as item content.
13
+ */
14
+ children?: React.ReactNode;
15
+ }
16
+ /**
17
+ * ## Overview
18
+ *
19
+ * Overview of this component
20
+ *
21
+ * [Figma Link](https://www.figma.com/design/xMuOXOAKVt5HC7hgYjF3ot/Components-v2.0?node-id=4433-163013&t=lhB2YjBptvQ97UWF-0)
22
+ *
23
+ * [Storybook Link](Point back to yourself here)
24
+ */
25
+ declare const AccordionComponent: ({ className, type, children, ...props }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
26
+ export default AccordionComponent;
@@ -0,0 +1,21 @@
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import n from "../../node_modules/classnames/index.js";
3
+ import { getCommonProps as r } from "../../utils/index.js";
4
+ import { Root as i } from "../../node_modules/@radix-ui/react-accordion/dist/index.js";
5
+ const C = ({ className: m, type: s = "single", children: t, ...o }) => {
6
+ const { className: a, ...e } = r(o, "Accordion");
7
+ return /* @__PURE__ */ c(
8
+ i,
9
+ {
10
+ className: n(`${a}`, m),
11
+ type: s,
12
+ ...e,
13
+ id: o == null ? void 0 : o.id,
14
+ collapsible: !0,
15
+ children: t
16
+ }
17
+ );
18
+ };
19
+ export {
20
+ C as default
21
+ };
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ export interface AccordionItemProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * When true, prevents border bottom style from being applied to the item.
5
+ */
6
+ isLastItem?: boolean;
7
+ /**
8
+ * When true, prevents the user from interacting with the item.
9
+ */
10
+ isLocked: boolean;
11
+ /**
12
+ * When true applied the lock variation icon.
13
+ */
14
+ isLockedVariation?: boolean;
15
+ /**
16
+ * Determines whether the variation on text style is large or small.
17
+ */
18
+ variation: string;
19
+ /**
20
+ * Text string for the Accordion header for label.
21
+ */
22
+ label: string;
23
+ /**
24
+ * Child element pass in to display as item content.
25
+ */
26
+ children?: React.ReactNode;
27
+ /**
28
+ * Determines whether one or multiple items can be opened at the same time. Default as single.
29
+ */
30
+ type?: 'single' | 'multiple';
31
+ /**
32
+ * When true applied the transition keyframe animation on item expand. Default as false.
33
+ */
34
+ hasTransition?: boolean;
35
+ }
36
+ declare const AccordionItem: ({ isLocked, isLockedVariation, variation, label, isLastItem, hasTransition, children, type, ...props }: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
37
+ export default AccordionItem;
@@ -0,0 +1,114 @@
1
+ import { jsxs as f, jsx as e, Fragment as h } from "react/jsx-runtime";
2
+ import { useState as v } from "react";
3
+ import { getCommonProps as x } from "../../utils/index.js";
4
+ import p from "../../assets/plus.svg.js";
5
+ import C from "../../assets/minus.svg.js";
6
+ import A from "../../assets/lock.svg.js";
7
+ import m from "../../node_modules/classnames/index.js";
8
+ import { Item as T, Trigger as j, Content as k } from "../../node_modules/@radix-ui/react-accordion/dist/index.js";
9
+ const N = ({
10
+ children: o,
11
+ className: c,
12
+ baseClassName: t,
13
+ disable: n,
14
+ isCollapsed: i,
15
+ setIsCollapsed: d,
16
+ isLargeVariation: l,
17
+ isLockedVariation: s,
18
+ id: r
19
+ }) => {
20
+ const a = () => !n && d((I) => !I), u = n ? A : i ? p : C, $ = `${r}-` + (n ? "lockedIcon" : s ? "lockBlueIcon" : i ? "plusIcon" : "minusIcon");
21
+ return /* @__PURE__ */ e(
22
+ j,
23
+ {
24
+ "data-disabled": n,
25
+ asChild: !0,
26
+ className: m(t, { [`${t}--hoverable`]: !n }, c),
27
+ children: /* @__PURE__ */ f("div", { onClick: a, "data-testid": `${r}-trigger`, children: [
28
+ /* @__PURE__ */ e("div", { className: m(`${t}__text`, { [`${t}__text--lg`]: l }), children: o }),
29
+ /* @__PURE__ */ e(
30
+ "img",
31
+ {
32
+ className: m(
33
+ `${t}__icon`,
34
+ { [`${t}__icon--lg`]: l },
35
+ s && `${t}--blue-fill`
36
+ ),
37
+ src: u,
38
+ "data-testid": $,
39
+ "aria-hidden": !0
40
+ }
41
+ )
42
+ ] })
43
+ }
44
+ );
45
+ }, P = ({
46
+ children: o,
47
+ baseClassName: c,
48
+ disable: t,
49
+ hasTransition: n,
50
+ isLargeVariation: i,
51
+ isCollapsed: d,
52
+ className: l
53
+ }) => /* @__PURE__ */ e(h, { children: t && o ? /* @__PURE__ */ e("div", { children: o }) : /* @__PURE__ */ e(
54
+ k,
55
+ {
56
+ asChild: !0,
57
+ className: m(
58
+ { [`${c}__content--lg`]: i },
59
+ { [`${c}--transition`]: n },
60
+ { [`${c}--expanded`]: !d },
61
+ l
62
+ ),
63
+ children: o
64
+ }
65
+ ) }), z = ({
66
+ isLocked: o,
67
+ isLockedVariation: c,
68
+ variation: t,
69
+ label: n,
70
+ isLastItem: i,
71
+ hasTransition: d = !1,
72
+ children: l,
73
+ type: s = "single",
74
+ ...r
75
+ }) => {
76
+ const [a, u] = v(!0), { className: $, ...I } = x(r, "Accordion"), _ = t === "lg", g = `${$}-item`;
77
+ return /* @__PURE__ */ f(
78
+ T,
79
+ {
80
+ disabled: o,
81
+ value: I["data-testid"],
82
+ className: m(g, { [`${g}__border-bottom`]: !i }),
83
+ children: [
84
+ /* @__PURE__ */ e(
85
+ N,
86
+ {
87
+ disable: o,
88
+ isLargeVariation: _,
89
+ isLockedVariation: c,
90
+ isCollapsed: a,
91
+ setIsCollapsed: u,
92
+ id: s === "single" ? r == null ? void 0 : r.id : void 0,
93
+ baseClassName: `${g}-label`,
94
+ children: n
95
+ }
96
+ ),
97
+ /* @__PURE__ */ e(
98
+ P,
99
+ {
100
+ disable: o,
101
+ hasTransition: d,
102
+ isLargeVariation: _,
103
+ isCollapsed: a,
104
+ baseClassName: g,
105
+ children: l
106
+ }
107
+ )
108
+ ]
109
+ }
110
+ );
111
+ };
112
+ export {
113
+ z as default
114
+ };
@@ -0,0 +1,2 @@
1
+ export { default as Accordion, type AccordionProps } from './Accordion';
2
+ export { default as AccordionItem, type AccordionItemProps } from './AccordionItem';
@@ -0,0 +1,44 @@
1
+ export interface AccordionHeaderType {
2
+ /**
3
+ * Child element pass in to display as header label.
4
+ */
5
+ children?: React.ReactNode;
6
+ /**
7
+ * Option class user may set to header.
8
+ */
9
+ className?: string;
10
+ /**
11
+ * Base class for header component.
12
+ */
13
+ baseClassName: string;
14
+ disable: boolean;
15
+ isCollapsed: boolean;
16
+ setIsCollapsed: React.Dispatch<React.SetStateAction<boolean>>;
17
+ isLargeVariation: boolean;
18
+ isLockedVariation?: boolean;
19
+ /**
20
+ * Unique id for icon component testing
21
+ */
22
+ id?: string;
23
+ }
24
+ export interface AccordionContentType {
25
+ /**
26
+ * Child element pass in to display as content.
27
+ */
28
+ children?: React.ReactNode;
29
+ /**
30
+ * Option class user may set to header.
31
+ */
32
+ className?: string;
33
+ /**
34
+ * Base class for content component.
35
+ */
36
+ baseClassName: string;
37
+ disable: boolean;
38
+ /**
39
+ * When true applied the transition keyframe animation on item expand. Default as false.
40
+ */
41
+ hasTransition?: boolean;
42
+ isLargeVariation: boolean;
43
+ isCollapsed: boolean;
44
+ }
@@ -1,16 +1,14 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import c from "../LinkBlock/LinkBlock.js";
3
- import d from "react";
4
- import { getCommonProps as o } from "../../utils/index.js";
5
- import u from "../../node_modules/classnames/index.js";
6
- import { Grid as p } from "../Grid/Grid.js";
7
- const _ = ({ children: t, className: l, ...s }) => {
8
- const { className: e, ...f } = o(s, "LinkList");
9
- return /* @__PURE__ */ m(p, { ...f, className: u(e, l), element: "ul", role: "list", ...s, children: t.map((r) => {
10
- var a, i;
11
- return d.isValidElement(r) && r.type !== c ? (console.warn("LinkList only accepts LinkBlock children"), null) : /* @__PURE__ */ m("li", { className: `${e}--item`, children: r }, (i = (a = r == null ? void 0 : r.props) == null ? void 0 : a.linkProps) == null ? void 0 : i.href);
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { getCommonProps as c } from "../../utils/index.js";
3
+ import d from "../../node_modules/classnames/index.js";
4
+ import { Grid as o } from "../Grid/Grid.js";
5
+ const P = ({ children: i, className: l, ...r }) => {
6
+ const { className: m, ...f } = c(r, "LinkList");
7
+ return /* @__PURE__ */ t(o, { ...f, className: d(m, l), element: "ul", role: "list", ...r, children: i.map((s) => {
8
+ var a, e;
9
+ return /* @__PURE__ */ t("li", { className: `${m}--item`, children: s }, (e = (a = s == null ? void 0 : s.props) == null ? void 0 : a.linkProps) == null ? void 0 : e.href);
12
10
  }) });
13
11
  };
14
12
  export {
15
- _ as default
13
+ P as default
16
14
  };
package/dist/index.d.ts CHANGED
@@ -29,6 +29,7 @@ export { default as ViewingsList, type ViewingsListProps } from './components/Vi
29
29
  export { default as Modal, type ModalProps } from './components/Modal/Modal';
30
30
  export { default as StatefulViewingsList, type StatefulViewingsListProps, } from './components/ViewingsList/StatefulViewingsList';
31
31
  export * from './components/Text';
32
+ export * from './components/Accordion';
32
33
  export { default as UserManagement, type UserManagementProps } from './components/UserManagement/UserManagement';
33
34
  export * from './types/commonTypes';
34
35
  export { Breadcrumb, type BreadcrumbProps } from './components/Breadcrumb';
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import { PaddingTokens as a, defaultYear as f, emailValidation as m, generatePaddingClassName as p, getCommonProps as s, noOp as d, px as l, useNormalizedInputProps as u } from "./utils/index.js";
2
2
  import { default as x } from "./pages/Page.js";
3
3
  import { default as g } from "./components/Button/Button.js";
4
- import { default as S } from "./components/IconButton/IconButton.js";
4
+ import { default as L } from "./components/IconButton/IconButton.js";
5
5
  import { default as I } from "./components/ErrorBoundary/ErrorBoundary.js";
6
6
  import { default as B } from "./components/Footer/Footer.js";
7
7
  import { Grid as P } from "./components/Grid/Grid.js";
8
8
  import { default as b } from "./components/Header/Header.js";
9
9
  import { default as T } from "./components/Navigation/Navigation.js";
10
- import { default as G } from "./components/Navigation/NavigationItem/NavigationItem.js";
11
- import { default as H } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
12
- import { default as h } from "./components/Navigation/NavigationList/NavigationList.js";
13
- import { default as z } from "./components/HeroBanner/HeroBanner.js";
10
+ import { default as A } from "./components/Navigation/NavigationItem/NavigationItem.js";
11
+ import { default as C } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
12
+ import { default as M } from "./components/Navigation/NavigationList/NavigationList.js";
13
+ import { default as y } from "./components/HeroBanner/HeroBanner.js";
14
14
  import { default as E } from "./components/Input/Input.js";
15
15
  import { default as O } from "./components/Link/Link.js";
16
16
  import { LinkVariants as U } from "./components/Link/utils.js";
@@ -20,23 +20,27 @@ import { default as K } from "./components/Row/Row.js";
20
20
  import { default as W } from "./components/GridItem/GridItem.js";
21
21
  import { GridItemAlign as Z } from "./components/GridItem/types.js";
22
22
  import { default as $ } from "./components/Search/Search.js";
23
- import { default as te } from "./components/Select/Select.js";
24
- import { default as oe } from "./components/SplitPanel/SplitPanel.js";
23
+ import { default as oe } from "./components/Select/Select.js";
24
+ import { default as re } from "./components/SplitPanel/SplitPanel.js";
25
25
  import { default as fe } from "./components/Subscribe/Subscribe.js";
26
26
  import { SubscriptionState as pe } from "./components/Subscribe/types.js";
27
27
  import { default as de } from "./components/Social/Social.js";
28
28
  import { default as ue } from "./components/ViewingsList/ViewingsList.js";
29
29
  import { default as xe } from "./components/Modal/Modal.js";
30
30
  import { default as ge } from "./components/ViewingsList/StatefulViewingsList.js";
31
- import { TextVariants as Se } from "./components/Text/types.js";
31
+ import { TextVariants as Le } from "./components/Text/types.js";
32
32
  import { default as Ie } from "./components/Text/Text.js";
33
- import { default as Be } from "./components/UserManagement/UserManagement.js";
34
- import { SupportedLanguages as Pe } from "./types/commonTypes.js";
35
- import { default as be } from "./components/Breadcrumb/Breadcrumb.js";
33
+ import { default as Be } from "./components/Accordion/Accordion.js";
34
+ import { default as Pe } from "./components/Accordion/AccordionItem.js";
35
+ import { default as be } from "./components/UserManagement/UserManagement.js";
36
+ import { SupportedLanguages as Te } from "./types/commonTypes.js";
37
+ import { default as Ae } from "./components/Breadcrumb/Breadcrumb.js";
36
38
  import "react/jsx-runtime";
37
39
  import "./node_modules/classnames/index.js";
38
40
  export {
39
- be as Breadcrumb,
41
+ Be as Accordion,
42
+ Pe as AccordionItem,
43
+ Ae as Breadcrumb,
40
44
  g as Button,
41
45
  I as ErrorBoundary,
42
46
  B as Footer,
@@ -44,8 +48,8 @@ export {
44
48
  W as GridItem,
45
49
  Z as GridItemAlign,
46
50
  b as Header,
47
- z as HeroBanner,
48
- S as IconButton,
51
+ y as HeroBanner,
52
+ L as IconButton,
49
53
  E as Input,
50
54
  O as Link,
51
55
  j as LinkBlock,
@@ -53,23 +57,23 @@ export {
53
57
  U as LinkVariants,
54
58
  xe as Modal,
55
59
  T as Navigation,
56
- G as NavigationItem,
57
- H as NavigationItemTrigger,
58
- h as NavigationList,
60
+ A as NavigationItem,
61
+ C as NavigationItemTrigger,
62
+ M as NavigationList,
59
63
  a as PaddingTokens,
60
64
  x as Page,
61
65
  K as Row,
62
66
  $ as Search,
63
- te as Select,
67
+ oe as Select,
64
68
  de as Social,
65
- oe as SplitPanel,
69
+ re as SplitPanel,
66
70
  ge as StatefulViewingsList,
67
71
  fe as Subscribe,
68
72
  pe as SubscriptionState,
69
- Pe as SupportedLanguages,
73
+ Te as SupportedLanguages,
70
74
  Ie as Text,
71
- Se as TextVariants,
72
- Be as UserManagement,
75
+ Le as TextVariants,
76
+ be as UserManagement,
73
77
  ue as ViewingsList,
74
78
  f as defaultYear,
75
79
  m as emailValidation,
@@ -0,0 +1,237 @@
1
+ import s from "react";
2
+ import { createContextScope as W } from "../node_modules/@radix-ui/react-context/dist/index.js";
3
+ import { createCollection as X } from "../../react-collection/dist/index.js";
4
+ import { useComposedRefs as Z } from "../node_modules/@radix-ui/react-compose-refs/dist/index.js";
5
+ import { composeEventHandlers as $ } from "../node_modules/@radix-ui/primitive/dist/index.js";
6
+ import { useControllableState as M } from "../node_modules/@radix-ui/react-use-controllable-state/dist/index.js";
7
+ import { Primitive as V } from "../node_modules/@radix-ui/react-primitive/dist/index.js";
8
+ import { createCollapsibleScope as H, Root as oo, Trigger as eo, Content as ro } from "../../react-collapsible/dist/index.js";
9
+ import { useId as to } from "../node_modules/@radix-ui/react-id/dist/index.js";
10
+ import { useDirection as no } from "../../react-direction/dist/index.js";
11
+ import { jsx as n } from "react/jsx-runtime";
12
+ var f = "Accordion", co = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [y, io, ao] = X(f), [b, No] = W(f, [
13
+ ao,
14
+ H
15
+ ]), E = H(), K = s.forwardRef(
16
+ (e, c) => {
17
+ const { type: o, ...t } = e, i = t, r = t;
18
+ return /* @__PURE__ */ n(y.Provider, { scope: e.__scopeAccordion, children: o === "multiple" ? /* @__PURE__ */ n(fo, { ...r, ref: c }) : /* @__PURE__ */ n(po, { ...i, ref: c }) });
19
+ }
20
+ );
21
+ K.displayName = f;
22
+ var [L, lo] = b(f), [z, so] = b(
23
+ f,
24
+ { collapsible: !1 }
25
+ ), po = s.forwardRef(
26
+ (e, c) => {
27
+ const {
28
+ value: o,
29
+ defaultValue: t,
30
+ onValueChange: i = () => {
31
+ },
32
+ collapsible: r = !1,
33
+ ...a
34
+ } = e, [l, d] = M({
35
+ prop: o,
36
+ defaultProp: t,
37
+ onChange: i
38
+ });
39
+ return /* @__PURE__ */ n(
40
+ L,
41
+ {
42
+ scope: e.__scopeAccordion,
43
+ value: l ? [l] : [],
44
+ onItemOpen: d,
45
+ onItemClose: s.useCallback(() => r && d(""), [r, d]),
46
+ children: /* @__PURE__ */ n(z, { scope: e.__scopeAccordion, collapsible: r, children: /* @__PURE__ */ n(G, { ...a, ref: c }) })
47
+ }
48
+ );
49
+ }
50
+ ), fo = s.forwardRef((e, c) => {
51
+ const {
52
+ value: o,
53
+ defaultValue: t,
54
+ onValueChange: i = () => {
55
+ },
56
+ ...r
57
+ } = e, [a = [], l] = M({
58
+ prop: o,
59
+ defaultProp: t,
60
+ onChange: i
61
+ }), d = s.useCallback(
62
+ (v) => l((u = []) => [...u, v]),
63
+ [l]
64
+ ), m = s.useCallback(
65
+ (v) => l((u = []) => u.filter((h) => h !== v)),
66
+ [l]
67
+ );
68
+ return /* @__PURE__ */ n(
69
+ L,
70
+ {
71
+ scope: e.__scopeAccordion,
72
+ value: a,
73
+ onItemOpen: d,
74
+ onItemClose: m,
75
+ children: /* @__PURE__ */ n(z, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ n(G, { ...r, ref: c }) })
76
+ }
77
+ );
78
+ }), [uo, I] = b(f), G = s.forwardRef(
79
+ (e, c) => {
80
+ const { __scopeAccordion: o, disabled: t, dir: i, orientation: r = "vertical", ...a } = e, l = s.useRef(null), d = Z(l, c), m = io(o), u = no(i) === "ltr", h = $(e.onKeyDown, (A) => {
81
+ var O;
82
+ if (!co.includes(A.key)) return;
83
+ const J = A.target, x = m().filter((N) => {
84
+ var T;
85
+ return !((T = N.ref.current) != null && T.disabled);
86
+ }), C = x.findIndex((N) => N.ref.current === J), D = x.length;
87
+ if (C === -1) return;
88
+ A.preventDefault();
89
+ let p = C;
90
+ const _ = 0, w = D - 1, R = () => {
91
+ p = C + 1, p > w && (p = _);
92
+ }, P = () => {
93
+ p = C - 1, p < _ && (p = w);
94
+ };
95
+ switch (A.key) {
96
+ case "Home":
97
+ p = _;
98
+ break;
99
+ case "End":
100
+ p = w;
101
+ break;
102
+ case "ArrowRight":
103
+ r === "horizontal" && (u ? R() : P());
104
+ break;
105
+ case "ArrowDown":
106
+ r === "vertical" && R();
107
+ break;
108
+ case "ArrowLeft":
109
+ r === "horizontal" && (u ? P() : R());
110
+ break;
111
+ case "ArrowUp":
112
+ r === "vertical" && P();
113
+ break;
114
+ }
115
+ const Q = p % D;
116
+ (O = x[Q].ref.current) == null || O.focus();
117
+ });
118
+ return /* @__PURE__ */ n(
119
+ uo,
120
+ {
121
+ scope: o,
122
+ disabled: t,
123
+ direction: i,
124
+ orientation: r,
125
+ children: /* @__PURE__ */ n(y.Slot, { scope: o, children: /* @__PURE__ */ n(
126
+ V.div,
127
+ {
128
+ ...a,
129
+ "data-orientation": r,
130
+ ref: d,
131
+ onKeyDown: t ? void 0 : h
132
+ }
133
+ ) })
134
+ }
135
+ );
136
+ }
137
+ ), g = "AccordionItem", [mo, k] = b(g), U = s.forwardRef(
138
+ (e, c) => {
139
+ const { __scopeAccordion: o, value: t, ...i } = e, r = I(g, o), a = lo(g, o), l = E(o), d = to(), m = t && a.value.includes(t) || !1, v = r.disabled || e.disabled;
140
+ return /* @__PURE__ */ n(
141
+ mo,
142
+ {
143
+ scope: o,
144
+ open: m,
145
+ disabled: v,
146
+ triggerId: d,
147
+ children: /* @__PURE__ */ n(
148
+ oo,
149
+ {
150
+ "data-orientation": r.orientation,
151
+ "data-state": F(m),
152
+ ...l,
153
+ ...i,
154
+ ref: c,
155
+ disabled: v,
156
+ open: m,
157
+ onOpenChange: (u) => {
158
+ u ? a.onItemOpen(t) : a.onItemClose(t);
159
+ }
160
+ }
161
+ )
162
+ }
163
+ );
164
+ }
165
+ );
166
+ U.displayName = g;
167
+ var j = "AccordionHeader", vo = s.forwardRef(
168
+ (e, c) => {
169
+ const { __scopeAccordion: o, ...t } = e, i = I(f, o), r = k(j, o);
170
+ return /* @__PURE__ */ n(
171
+ V.h3,
172
+ {
173
+ "data-orientation": i.orientation,
174
+ "data-state": F(r.open),
175
+ "data-disabled": r.disabled ? "" : void 0,
176
+ ...t,
177
+ ref: c
178
+ }
179
+ );
180
+ }
181
+ );
182
+ vo.displayName = j;
183
+ var S = "AccordionTrigger", Y = s.forwardRef(
184
+ (e, c) => {
185
+ const { __scopeAccordion: o, ...t } = e, i = I(f, o), r = k(S, o), a = so(S, o), l = E(o);
186
+ return /* @__PURE__ */ n(y.ItemSlot, { scope: o, children: /* @__PURE__ */ n(
187
+ eo,
188
+ {
189
+ "aria-disabled": r.open && !a.collapsible || void 0,
190
+ "data-orientation": i.orientation,
191
+ id: r.triggerId,
192
+ ...l,
193
+ ...t,
194
+ ref: c
195
+ }
196
+ ) });
197
+ }
198
+ );
199
+ Y.displayName = S;
200
+ var q = "AccordionContent", B = s.forwardRef(
201
+ (e, c) => {
202
+ const { __scopeAccordion: o, ...t } = e, i = I(f, o), r = k(q, o), a = E(o);
203
+ return /* @__PURE__ */ n(
204
+ ro,
205
+ {
206
+ role: "region",
207
+ "aria-labelledby": r.triggerId,
208
+ "data-orientation": i.orientation,
209
+ ...a,
210
+ ...t,
211
+ ref: c,
212
+ style: {
213
+ "--radix-accordion-content-height": "var(--radix-collapsible-content-height)",
214
+ "--radix-accordion-content-width": "var(--radix-collapsible-content-width)",
215
+ ...e.style
216
+ }
217
+ }
218
+ );
219
+ }
220
+ );
221
+ B.displayName = q;
222
+ function F(e) {
223
+ return e ? "open" : "closed";
224
+ }
225
+ var So = K, yo = U, Eo = Y, ko = B;
226
+ export {
227
+ K as Accordion,
228
+ B as AccordionContent,
229
+ vo as AccordionHeader,
230
+ U as AccordionItem,
231
+ Y as AccordionTrigger,
232
+ ko as Content,
233
+ yo as Item,
234
+ So as Root,
235
+ Eo as Trigger,
236
+ No as createAccordionScope
237
+ };
@@ -0,0 +1,9 @@
1
+ function h(f, c, { checkForDefaultPrevented: p = !0 } = {}) {
2
+ return function(s) {
3
+ if (f == null || f(s), p === !1 || !s.defaultPrevented)
4
+ return c == null ? void 0 : c(s);
5
+ };
6
+ }
7
+ export {
8
+ h as composeEventHandlers
9
+ };
@@ -0,0 +1,14 @@
1
+ import * as e from "react";
2
+ function c(o, n) {
3
+ typeof o == "function" ? o(n) : o != null && (o.current = n);
4
+ }
5
+ function u(...o) {
6
+ return (n) => o.forEach((t) => c(t, n));
7
+ }
8
+ function i(...o) {
9
+ return e.useCallback(u(...o), o);
10
+ }
11
+ export {
12
+ u as composeRefs,
13
+ i as useComposedRefs
14
+ };