@ilo-org/react 0.18.0 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/lib/cjs/_store/Accordion-chunk-Dj1LluWV.js +1 -0
  2. package/lib/cjs/_store/{Accordion-entry-BZxhUG2Q.js → Accordion-entry-BNfPKFuj.js} +1 -1
  3. package/lib/cjs/_store/CardGroup-chunk-BmaM_mHh.js +1 -0
  4. package/lib/cjs/_store/Footer-chunk-CiwzbdZ2.js +1 -0
  5. package/lib/cjs/_store/{Footer-entry-D3GYBVpj.js → Footer-entry-B1rBtRLX.js} +1 -1
  6. package/lib/cjs/_store/{Hero-chunk-ZP6tCFz5.js → Hero-chunk-BmAL9GMT.js} +1 -1
  7. package/lib/cjs/_store/{Hero-entry-CVMagWvL.js → Hero-entry-6U1647te.js} +1 -1
  8. package/lib/cjs/_store/LogoGrid-entry-DFwMU9Hk.js +1 -0
  9. package/lib/cjs/_store/{Navigation-chunk-CPzyVK7B.js → Navigation-chunk-AOXMwnyq.js} +1 -1
  10. package/lib/cjs/_store/{Navigation-entry-D07Y4pkR.js → Navigation-entry-5gihGqMU.js} +1 -1
  11. package/lib/cjs/_store/Radio-chunk-EK2nKEND.js +1 -0
  12. package/lib/cjs/_store/{Radio-entry-DhWQjZuV.js → Radio-entry-M4dL4mjL.js} +1 -1
  13. package/lib/cjs/_store/{SearchField-chunk-DsxlWr7d.js → SearchField-chunk-DB7TI2Wf.js} +1 -1
  14. package/lib/cjs/_store/{SearchField-entry-CgnoJz0d.js → SearchField-entry-Da40fejI.js} +1 -1
  15. package/lib/cjs/_store/{SocialMedia-chunk-fLjmpXNC.js → SocialMedia-chunk-DrxlykT6.js} +1 -1
  16. package/lib/cjs/_store/{SocialMedia-entry-meZdo-EU.js → SocialMedia-entry-BQyxJpTO.js} +1 -1
  17. package/lib/cjs/_store/{components-entry-DEwUb_oq.js → components-entry-BIOjX8mX.js} +1 -1
  18. package/lib/cjs/index.js +1 -1
  19. package/lib/esm/_store/{Accordion-chunk-B6FAPUyi.js → Accordion-chunk-BawBOKZz.js} +14 -14
  20. package/lib/esm/_store/{Accordion-entry-oAYQPeGr.js → Accordion-entry-C8JFNFFn.js} +1 -1
  21. package/lib/esm/_store/{CardGroup-chunk-BTx2ukOX.js → CardGroup-chunk-9JS7kymR.js} +126 -124
  22. package/lib/esm/_store/{Collapse-chunk-BVSI_9Dd.js → Collapse-chunk-CyOyOA2s.js} +1 -0
  23. package/lib/esm/_store/Collapse-entry-C1uibEt8.js +4 -0
  24. package/lib/esm/_store/{Footer-chunk-D6ig8l3Y.js → Footer-chunk-DFBqsEOy.js} +24 -32
  25. package/lib/esm/_store/Footer-entry-CUWPNrZn.js +4 -0
  26. package/lib/esm/_store/{Hero-chunk-HJvXvclG.js → Hero-chunk-AgDdKsJ4.js} +1 -1
  27. package/lib/esm/_store/Hero-entry-CcnVmzHx.js +5 -0
  28. package/lib/esm/_store/{LogoGrid-entry-BEUN3M_d.js → LogoGrid-entry-DN-ZIG91.js} +8 -8
  29. package/lib/esm/_store/{Navigation-chunk-BL9t1Aze.js → Navigation-chunk-DRHCDZ3Y.js} +1 -1
  30. package/lib/esm/_store/Navigation-entry-0vRUHS6d.js +4 -0
  31. package/lib/esm/_store/{Radio-chunk-GaPnCNx4.js → Radio-chunk-CZnGQoYJ.js} +20 -20
  32. package/lib/esm/_store/{Radio-entry-CFuTolt7.js → Radio-entry-DhmJk5Et.js} +1 -1
  33. package/lib/esm/_store/{SearchField-chunk-BF-yCtvV.js → SearchField-chunk-D3wlTvCH.js} +19 -11
  34. package/lib/esm/_store/SearchField-entry-BhsVXKLn.js +4 -0
  35. package/lib/esm/_store/SocialMedia-chunk-DdOAr_Gj.js +32 -0
  36. package/lib/esm/_store/{SocialMedia-entry-ZTNn-vUB.js → SocialMedia-entry-BllaQbO-.js} +1 -1
  37. package/lib/esm/_store/{Video-chunk-CDl9BbxW.js → Video-chunk-DAqwWSGg.js} +1 -3
  38. package/lib/esm/_store/Video-entry-11ar9TYk.js +4 -0
  39. package/lib/esm/_store/{components-entry-Er-smibI.js → components-entry-BWmvm5XJ.js} +9 -9
  40. package/lib/esm/index.js +9 -9
  41. package/lib/styles/components/accordion.css +1 -1
  42. package/lib/styles/components/breadcrumb.css +1 -1
  43. package/lib/styles/components/button.css +1 -1
  44. package/lib/styles/components/callout.css +1 -1
  45. package/lib/styles/components/card.css +1 -1
  46. package/lib/styles/components/cardgroup.css +1 -1
  47. package/lib/styles/components/checkbox.css +1 -1
  48. package/lib/styles/components/container.css +1 -1
  49. package/lib/styles/components/contextmenu.css +1 -1
  50. package/lib/styles/components/credit.css +1 -1
  51. package/lib/styles/components/datacard.css +1 -1
  52. package/lib/styles/components/datepicker.css +1 -1
  53. package/lib/styles/components/detailcard.css +1 -1
  54. package/lib/styles/components/dropdown.css +1 -1
  55. package/lib/styles/components/empty.css +1 -1
  56. package/lib/styles/components/factlistcard.css +1 -1
  57. package/lib/styles/components/featurecard.css +1 -1
  58. package/lib/styles/components/fieldset.css +1 -1
  59. package/lib/styles/components/file-upload.css +1 -1
  60. package/lib/styles/components/footer.css +1 -1
  61. package/lib/styles/components/form.css +1 -1
  62. package/lib/styles/components/formcontrol.css +1 -1
  63. package/lib/styles/components/hero.css +1 -1
  64. package/lib/styles/components/herocard.css +1 -1
  65. package/lib/styles/components/image.css +1 -1
  66. package/lib/styles/components/input.css +1 -1
  67. package/lib/styles/components/link.css +1 -1
  68. package/lib/styles/components/linklist.css +1 -1
  69. package/lib/styles/components/list.css +1 -1
  70. package/lib/styles/components/loading.css +1 -1
  71. package/lib/styles/components/logo.css +1 -1
  72. package/lib/styles/components/logogrid.css +1 -1
  73. package/lib/styles/components/modal.css +1 -1
  74. package/lib/styles/components/multilinkcard.css +1 -1
  75. package/lib/styles/components/navigation.css +1 -1
  76. package/lib/styles/components/notification.css +1 -1
  77. package/lib/styles/components/pagination.css +1 -1
  78. package/lib/styles/components/profile.css +1 -1
  79. package/lib/styles/components/promocard.css +1 -1
  80. package/lib/styles/components/radio.css +1 -1
  81. package/lib/styles/components/readmore.css +1 -1
  82. package/lib/styles/components/richtext.css +1 -1
  83. package/lib/styles/components/searchfield.css +1 -1
  84. package/lib/styles/components/socialmedia.css +1 -1
  85. package/lib/styles/components/statcard.css +1 -1
  86. package/lib/styles/components/table.css +1 -1
  87. package/lib/styles/components/tableofcontents.css +1 -1
  88. package/lib/styles/components/tabs.css +1 -1
  89. package/lib/styles/components/tag.css +1 -1
  90. package/lib/styles/components/textarea.css +1 -1
  91. package/lib/styles/components/textcard.css +1 -1
  92. package/lib/styles/components/textinput.css +1 -1
  93. package/lib/styles/components/toggle.css +1 -1
  94. package/lib/styles/components/tooltip.css +1 -1
  95. package/lib/styles/components/video.css +1 -1
  96. package/lib/styles/global.css.map +1 -1
  97. package/lib/styles/index.css +1 -1
  98. package/lib/styles/index.css.map +1 -1
  99. package/lib/styles/monorepo.css +1 -1
  100. package/lib/styles/monorepo.css.map +1 -1
  101. package/lib/types/components/Accordion/Accordion.props.d.ts +2 -2
  102. package/lib/types/components/Button/Button.props.d.ts +1 -1
  103. package/lib/types/components/Cards/DataCard/DataCard.props.d.ts +2 -2
  104. package/lib/types/components/Cards/DetailCard/DetailCard.props.d.ts +2 -2
  105. package/lib/types/components/Cards/FactlistCard/FactListCard.props.d.ts +2 -2
  106. package/lib/types/components/Cards/FeatureCard/FeatureCard.props.d.ts +2 -2
  107. package/lib/types/components/Cards/MultilinkCard/MultilinkCard.props.d.ts +2 -2
  108. package/lib/types/components/Cards/PromoCard/PromoCard.props.d.ts +2 -2
  109. package/lib/types/components/Cards/StatCard/StatCard.props.d.ts +2 -2
  110. package/lib/types/components/Cards/TextCard/TextCard.props.d.ts +2 -2
  111. package/lib/types/components/Input/Input.props.d.ts +1 -1
  112. package/lib/types/components/Pagination/Pagination.props.d.ts +1 -1
  113. package/lib/types/components/SearchField/SearchField.props.d.ts +1 -1
  114. package/lib/types/components/Tag/Tag.props.d.ts +1 -1
  115. package/lib/types/components/Tag/TagSet.props.d.ts +1 -1
  116. package/lib/types/components/Textarea/Textarea.props.d.ts +1 -1
  117. package/lib/types/components/Toggle/Toggle.props.d.ts +1 -1
  118. package/lib/types/types/index.d.ts +4 -4
  119. package/package.json +6 -8
  120. package/lib/cjs/_store/Accordion-chunk-C0MtnZLX.js +0 -1
  121. package/lib/cjs/_store/CardGroup-chunk-DhFE-J5O.js +0 -1
  122. package/lib/cjs/_store/Footer-chunk-9dkCoi0B.js +0 -1
  123. package/lib/cjs/_store/LogoGrid-entry-DfTqIeGY.js +0 -1
  124. package/lib/cjs/_store/Radio-chunk-RnNWzYgj.js +0 -1
  125. package/lib/esm/_store/Collapse-entry-DH89iy1Y.js +0 -4
  126. package/lib/esm/_store/Footer-entry-B885hcUe.js +0 -4
  127. package/lib/esm/_store/Hero-entry-gNTc6gUC.js +0 -5
  128. package/lib/esm/_store/Navigation-entry-Ch7YqW5b.js +0 -4
  129. package/lib/esm/_store/SearchField-entry-DCMFJrVP.js +0 -4
  130. package/lib/esm/_store/SocialMedia-chunk-CP4gdUdi.js +0 -32
  131. package/lib/esm/_store/Video-entry-DNXjIczI.js +0 -4
@@ -11,7 +11,7 @@ export interface AccordionProps {
11
11
  /**
12
12
  * Callback to onButtonClick event;
13
13
  */
14
- onButtonClick?: (e: MouseEvent<HTMLButtonElement>, i: any) => void;
14
+ onButtonClick?: (e: MouseEvent<HTMLButtonElement>, i: unknown) => void;
15
15
  /**
16
16
  * Allow multiple accordions to be expanded at once, default value is false
17
17
  */
@@ -30,5 +30,5 @@ export interface AccordionContextProps {
30
30
  getUpdatedItems: typeof getUpdatedItems;
31
31
  setActiveItems: Dispatch<SetStateAction<string[]>>;
32
32
  allowMultipleExpanded: boolean;
33
- onButtonClick?: (e: MouseEvent<HTMLButtonElement>, i: any) => void;
33
+ onButtonClick?: (e: MouseEvent<HTMLButtonElement>, i: unknown) => void;
34
34
  }
@@ -5,7 +5,7 @@ export interface ButtonProps {
5
5
  /**
6
6
  * Specify the callback of your Button.
7
7
  */
8
- callback?: (e: React.MouseEvent<Element, MouseEvent>) => any;
8
+ callback?: (e: React.MouseEvent<Element, MouseEvent>) => unknown;
9
9
  /**
10
10
  * Specify the content of your Button.
11
11
  */
@@ -1,7 +1,7 @@
1
1
  import { CardSize } from '../../../types';
2
2
  import { LinkProps } from '../../LinkList/LinkList.props';
3
3
 
4
- export type DataCardProps = {
4
+ export interface DataCardProps {
5
5
  /**
6
6
  * A line of text that appears as a small heading at the top of the card
7
7
  */
@@ -22,7 +22,7 @@ export type DataCardProps = {
22
22
  * Make the content appear in one or two columns. Only applies when the size is set to `wide` or `fluid`
23
23
  */
24
24
  columns?: string;
25
- };
25
+ }
26
26
  interface CardDataset {
27
27
  content?: DataContent;
28
28
  files?: DataFile;
@@ -1,6 +1,6 @@
1
1
  import { CardSize, EventDate, HeadingTypes } from '../../../types';
2
2
 
3
- export type DetailCardProps = {
3
+ export interface DetailCardProps {
4
4
  /**
5
5
  * A line of text that appears as a small heading above the title of the card
6
6
  */
@@ -37,4 +37,4 @@ export type DetailCardProps = {
37
37
  * How big should the card be
38
38
  */
39
39
  size?: Omit<CardSize, "standard">;
40
- };
40
+ }
@@ -1,6 +1,6 @@
1
1
  import { ThemeTypes, CardSize, HeadingTypes } from '../../../types';
2
2
 
3
- export type FactlistCardProps = {
3
+ export interface FactlistCardProps {
4
4
  /**
5
5
  * The title of the card
6
6
  */
@@ -18,4 +18,4 @@ export type FactlistCardProps = {
18
18
  */
19
19
  size?: Omit<CardSize, "standard">;
20
20
  list?: string[];
21
- };
21
+ }
@@ -1,7 +1,7 @@
1
1
  import { ThemeTypes, CardSize, EventDate, HeadingTypes } from '../../../types';
2
2
  import { LinkListProps } from '../../LinkList/LinkList.props';
3
3
 
4
- export type FeatureCardProps = {
4
+ export interface FeatureCardProps {
5
5
  isvideo?: boolean;
6
6
  /**
7
7
  * A line of text that appears as a small heading above the title of the card
@@ -33,4 +33,4 @@ export type FeatureCardProps = {
33
33
  * The image to show in the card
34
34
  */
35
35
  image?: string;
36
- };
36
+ }
@@ -1,7 +1,7 @@
1
1
  import { CardAlignment, CardSize, HeadingTypes } from '../../../types';
2
2
  import { LinkListProps } from '../../LinkList/LinkList.props';
3
3
 
4
- export type MultilinkCardProps = {
4
+ export interface MultilinkCardProps {
5
5
  isvideo?: boolean;
6
6
  /**
7
7
  * A line of text that appears as a small heading above the title of the card
@@ -27,4 +27,4 @@ export type MultilinkCardProps = {
27
27
  * The image to show in the card
28
28
  */
29
29
  image?: string;
30
- };
30
+ }
@@ -1,7 +1,7 @@
1
1
  import { ThemeTypes, CardCornerType, CardSize, HeadingTypes } from '../../../types';
2
2
  import { LinkProps } from '../../LinkList/LinkList.props';
3
3
 
4
- export type PromoCardProps = {
4
+ export interface PromoCardProps {
5
5
  /**
6
6
  * A line of text that appears as a small heading above the title of the card
7
7
  */
@@ -32,4 +32,4 @@ export type PromoCardProps = {
32
32
  intro?: string;
33
33
  link?: string;
34
34
  cta?: LinkProps;
35
- };
35
+ }
@@ -1,7 +1,7 @@
1
1
  import { CardColor, CardSize, HeadingTypes } from '../../../types';
2
2
  import { LinkProps } from '../../LinkList/LinkList.props';
3
3
 
4
- export type StatCardProps = {
4
+ export interface StatCardProps {
5
5
  /**
6
6
  * The title of the card
7
7
  */
@@ -23,4 +23,4 @@ export type StatCardProps = {
23
23
  */
24
24
  intro?: string;
25
25
  source?: LinkProps;
26
- };
26
+ }
@@ -1,7 +1,7 @@
1
1
  import { ThemeTypes, CardSize, EventDate, HeadingTypes } from '../../../types';
2
2
  import { ProfileProps } from '../../Profile/Profile.props';
3
3
 
4
- export type TextCardProps = {
4
+ export interface TextCardProps {
5
5
  /**
6
6
  * A line of text that appears as a small heading above the title of the card
7
7
  */
@@ -28,4 +28,4 @@ export type TextCardProps = {
28
28
  date?: EventDate;
29
29
  profile: ProfileProps;
30
30
  link?: string;
31
- };
31
+ }
@@ -4,7 +4,7 @@ export interface InputProps {
4
4
  /**
5
5
  * The input's onChange callback.
6
6
  */
7
- callback?: (e: React.ChangeEvent<HTMLInputElement>) => any;
7
+ callback?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
8
8
  /**
9
9
  * Specify an optional className to be added to your input.
10
10
  */
@@ -2,7 +2,7 @@ export interface PaginationProps {
2
2
  /**
3
3
  * Specify the callback of your Button.
4
4
  */
5
- callback: (e: React.MouseEvent<Element, MouseEvent>) => any;
5
+ callback: (e: React.MouseEvent<Element, MouseEvent>) => unknown;
6
6
  /**
7
7
  * Specify an optional className to be added to your Pagination component.
8
8
  */
@@ -18,7 +18,7 @@ export interface SearchFieldProps {
18
18
  /**
19
19
  * The search field submit button's click function.
20
20
  */
21
- callback?: (e: React.MouseEvent<HTMLInputElement, MouseEvent>) => any;
21
+ callback?: (e: React.MouseEvent<HTMLInputElement, MouseEvent>) => unknown;
22
22
  /**
23
23
  * Specify an optional className to be added to your Button.
24
24
  */
@@ -5,7 +5,7 @@ export interface TagProps {
5
5
  /**
6
6
  * Callback to event;
7
7
  */
8
- callback?: (e: React.MouseEvent<HTMLButtonElement>) => any;
8
+ callback?: (e: React.MouseEvent<HTMLButtonElement>) => unknown;
9
9
  /**
10
10
  * Specify the label for the tag
11
11
  */
@@ -9,7 +9,7 @@ export interface TagSetProps {
9
9
  /**
10
10
  * Callback to onButtonClick event;
11
11
  */
12
- onButtonClick?: (e: React.MouseEvent<HTMLButtonElement>, i: number) => any;
12
+ onButtonClick?: (e: React.MouseEvent<HTMLButtonElement>, i: number) => unknown;
13
13
  /**
14
14
  * Specify the content of your Tag.
15
15
  */
@@ -4,7 +4,7 @@ export interface TextareaProps extends FormFieldProps<HTMLTextAreaElement> {
4
4
  /**
5
5
  * The Textarea's onChange callback.
6
6
  */
7
- onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => any;
7
+ onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => unknown;
8
8
  /**
9
9
  * Activate automatic spelling correction and processing of text substitutions
10
10
  **/
@@ -17,6 +17,6 @@ export interface ToggleProps extends FormFieldProps<HTMLInputElement> {
17
17
  /**
18
18
  * OnClick handler for the input element.
19
19
  */
20
- onClick?: (event: React.MouseEvent<HTMLInputElement>) => any;
20
+ onClick?: (event: React.MouseEvent<HTMLInputElement>) => unknown;
21
21
  }
22
22
  export type LabelledToggleProps = LabelledFormFieldProps<ToggleProps>;
@@ -31,19 +31,19 @@ export type CardCornerType = boolean;
31
31
  export type CardAlignment = "left" | "right";
32
32
  export type CardTypes = "stat" | "multilink" | "text" | "promo" | "feature" | "detail" | "factlist" | "data";
33
33
  export type HeadingTypes = "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
34
- export type EventDate = {
34
+ export interface EventDate {
35
35
  unix?: string;
36
36
  human?: string;
37
- };
37
+ }
38
38
  export interface FormFieldProps<T> {
39
39
  /**
40
40
  * The input's onChange callback.
41
41
  */
42
- onChange?: (e: React.ChangeEvent<T>) => any;
42
+ onChange?: (e: React.ChangeEvent<T>) => unknown;
43
43
  /**
44
44
  * The input's onBlur callback.
45
45
  */
46
- onBlur?: (e: React.FocusEvent<T>) => any;
46
+ onBlur?: (e: React.FocusEvent<T>) => unknown;
47
47
  /**
48
48
  * Specify an optional className to be added to your input.
49
49
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ilo-org/react",
3
- "version": "0.18.0",
3
+ "version": "0.18.1",
4
4
  "description": "React components for the ILO's Design System",
5
5
  "keywords": [
6
6
  "ui_patterns",
@@ -71,10 +71,10 @@
71
71
  "react-transition-group": "^4.4.1",
72
72
  "video.js": "^7.21.2",
73
73
  "videojs-youtube": "^3.0.1",
74
- "@ilo-org/fonts": "1.0.0",
75
74
  "@ilo-org/brand-assets": "1.0.0",
75
+ "@ilo-org/fonts": "1.0.0",
76
76
  "@ilo-org/icons-react": "1.0.1",
77
- "@ilo-org/styles": "1.2.2",
77
+ "@ilo-org/styles": "1.2.3",
78
78
  "@ilo-org/themes": "0.9.1",
79
79
  "@ilo-org/utils": "0.1.1"
80
80
  },
@@ -111,9 +111,9 @@
111
111
  "vite-plugin-dts": "^3.9.1",
112
112
  "vite-plugin-static-copy": "^1.0.6",
113
113
  "vitest": "^2.0.5",
114
- "@ilo-org/eslint-config": "1.0.0",
115
- "@ilo-org/typescript-config": "1.0.0",
116
- "@ilo-org/prettier-config": "1.0.0"
114
+ "@ilo-org/eslint-config": "2.0.0",
115
+ "@ilo-org/prettier-config": "2.0.0",
116
+ "@ilo-org/typescript-config": "2.0.0"
117
117
  },
118
118
  "peerDependencies": {
119
119
  "react": "18",
@@ -128,8 +128,6 @@
128
128
  "build:docs": "storybook build",
129
129
  "check": "tsc --noEmit --p tsconfig.build.json",
130
130
  "dev:lib": "vite build --watch",
131
- "format": "prettier --check . --ignore-path ../../.prettierignore",
132
- "format:fix": "prettier --write . --ignore-path ../../.prettierignore",
133
131
  "lint": "eslint .",
134
132
  "lint:fix": "eslint . --fix",
135
133
  "storybook": "storybook dev -p 6006",
@@ -1 +0,0 @@
1
- "use strict";const a=require("react/jsx-runtime"),p=require("./index-chunk-DCI82Tmm.js"),t=require("react"),$=require("./useGlobalSettings-chunk-Pa38w6VS.js"),f=require("./checkArrayDuplicates-chunk-Bqxwhc1q.js"),b=t.createContext({}),h=t.createContext({}),I=({children:c,className:o,...r})=>{const{prefix:e}=$.useGlobalSettings(),l=`${e}--accordion--button`,{activeItems:s,setActiveItems:u,getUpdatedItems:C,allowMultipleExpanded:x,onButtonClick:d}=t.useContext(b),{id:n}=t.useContext(h),i=s.indexOf(n)>-1,m=p.classnames(o,{[l]:!0}),v=(g,A)=>{u(C({id:A,itemStatuses:s,allowMultipleExpanded:x})),d&&d(g,A),g.currentTarget.blur()};return a.jsx("div",{className:`${e}--h3`,children:a.jsx("button",{className:m,"aria-expanded":i,onClick:g=>v(g,n),"aria-controls":`panel-${n}`,id:`button-${n}`,...r,children:c})})},S=I,j=({children:c,className:o,scroll:r,...e})=>{const{activeItems:l}=t.useContext(b),{id:s}=t.useContext(h),[u,C]=t.useState(0),x=l.indexOf(s)>-1,{prefix:d}=$.useGlobalSettings(),n=`${d}--accordion--panel`,i=p.classnames(o,n,{[`${n}__scroll`]:r,[`${n}--open`]:x}),m=t.useRef();return t.useLayoutEffect(()=>{m.current&&C(m.current.scrollHeight)}),a.jsx("div",{className:i,id:`panel-${s}`,"aria-labelledby":`button-${s}`,role:"region",ref:m,style:{"--height":`${u}px`},...e,children:a.jsx("div",{className:`${d}--accordion--innerpanel`,children:c})})},N=j,P=({children:c,id:o,className:r,...e})=>{const{prefix:l}=$.useGlobalSettings(),s=`${l}--accordion--item`,u=p.classnames(r,{[s]:!0});return a.jsx(h.Provider,{value:{id:o},children:a.jsx("li",{className:u,...e,children:c})})},q=P,y=({children:c,allowMultipleExpanded:o=!1,onButtonClick:r,defaultAccordionsExpanded:e=[],className:l})=>{const{prefix:s}=$.useGlobalSettings(),u=`${s}--accordion`,[C,x]=t.useState([]),d=p.classnames(l,{[u]:!0}),n=JSON.stringify(e);if(t.useEffect(()=>{const i=o?e:e.length>0?[e[0]]:e;x(i)},[n,o]),c){const i=[];t.Children.forEach(c,m=>{i.push(m.props.id)}),f.checkArrayDuplicates(i)&&console.warn("Warning: Accordion items must have unique ids.")}return a.jsx(b.Provider,{value:{activeItems:C,setActiveItems:x,getUpdatedItems:f.e,allowMultipleExpanded:o,onButtonClick:r},children:a.jsx("ul",{className:d,children:c})})},k=y;exports.Accordion=k;exports.AccordionButton=S;exports.AccordionItem=q;exports.AccordionPanel=N;
@@ -1 +0,0 @@
1
- "use strict";const s=require("react/jsx-runtime"),o=require("./index-chunk-DCI82Tmm.js"),x=require("./useGlobalSettings-chunk-Pa38w6VS.js"),b=require("./Button-chunk-0TEubQS1.js"),j=require("./Link-chunk-B_ZIovS2.js"),N=require("./LinkList-chunk-Dv-cNPfH.js"),C=require("./Profile-chunk-BH98cR85.js"),h=require("./ListItem-chunk-CHb4_N2-.js"),f=({eyebrow:$,size:r="narrow",image:i,dataset:c,columns:m="one"})=>{const{prefix:t}=x.useGlobalSettings(),a=`${t}--card`,n=o.classnames(a,`${a}__type__data`,{[`${a}__size__${r}`]:r,[`${a}__type__data__columns__${m}`]:m});return s.jsx("div",{className:n,children:s.jsxs("div",{className:`${a}--wrap`,children:[$&&s.jsx("p",{className:`${a}--eyebrow`,children:$}),s.jsxs("div",{className:`${a}--content`,children:[i&&s.jsx("div",{className:`${a}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{className:`${a}--picture`,src:i,alt:$})})}),c&&c.content&&c.content.items&&c.content.items.map(d=>s.jsxs("div",{className:`${a}--area--content`,children:[s.jsx("p",{className:`${a}__type__data--content-label`,children:d.label}),s.jsx("p",{className:`${a}__type__data--content-copy`,children:d.copy})]})),c&&c.files&&s.jsxs("div",{className:`${a}--data--content-files`,children:[s.jsx("p",{className:`${a}__type__data--content-label`,children:c.files.headline}),c.files.items&&c.files.items.map(d=>s.jsx("a",{className:`${a}--data--file ${t}--button ${t}--button--primary ${t}--button--small`,href:d.url,download:!0,children:s.jsx("span",{className:"button__label",children:d.label})}))]}),c&&c.cta&&s.jsx("div",{className:`${a}--area--cta`,children:s.jsxs("div",{className:`${a}--data--content-cta`,children:[s.jsx("p",{className:`${a}__type__data--content-label`,children:c.cta.headline}),c.cta.items&&c.cta.items.map(d=>s.jsx("a",{className:`${a}--cta ${t}--button ${t}--button--medium ${t}--button--secondary`,href:d.url,children:s.jsx("span",{className:"link__label",children:d.label})}))]})}),c&&c.links&&s.jsxs("div",{className:`${a}--data--content-links`,children:[s.jsx("p",{className:`${a}__type__data--content-label`,children:c.links.headline}),c.links.items&&c.links.items.map(d=>s.jsxs(s.Fragment,{children:[s.jsx(j.Link,{url:d.url,children:d.label}),s.jsx("span",{children:"  "})]}))]})]})]})})},w=({eyebrow:$,title:r,size:i="narrow",intro:c,date:m,eventdetails:t,link:a,image:n,titleLevel:d})=>{const{prefix:_}=x.useGlobalSettings(),l=`${_}--card`,e=o.classnames(l,`${l}__type__detail`,{[`${l}__action`]:a,[`${l}__size__${i}`]:i});return s.jsxs("div",{className:e,children:[a&&s.jsx("a",{className:`${l}--link`,href:a,title:r,children:s.jsx("span",{className:`${l}--link--text`,children:r})}),s.jsxs("div",{className:`${l}--wrap`,children:[n&&s.jsx("div",{className:`${l}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{className:`${l}--picture`,src:n,alt:r})})}),s.jsxs("div",{className:`${l}--content`,children:[$&&s.jsx("p",{className:`${l}--eyebrow`,children:$}),r&&d?s.jsx(d,{className:`${l}--title`,children:r}):s.jsx("p",{className:`${l}--title`,children:r}),c&&s.jsx("p",{className:`${l}--intro`,children:c}),m&&s.jsx("time",{className:`${l}--date`,dateTime:m.unix,children:m.human}),t&&s.jsx("p",{className:`${l}--date-extra`,children:t})]})]})]})},y=({title:$,theme:r,size:i="narrow",list:c,titleLevel:m})=>{const{prefix:t}=x.useGlobalSettings(),a=`${t}--card`,n=o.classnames(a,`${a}__type__factlist`,{[`${a}__size__${i}`]:i,[`${a}__theme__${r}`]:r});return s.jsx("div",{className:n,children:s.jsx("div",{className:`${a}--wrap`,children:s.jsxs("div",{className:`${a}--content`,children:[$&&m?s.jsx(m,{className:`${a}--title`,children:$}):s.jsx("p",{className:`${a}--title`,children:$}),c&&s.jsx(h.List,{alignment:"default",ordered:"unordered",children:c.map((d,_)=>s.jsx(h.ListItem,{id:`list${_}`,children:s.jsx("p",{children:d})}))})]})})})},g=({isvideo:$,eyebrow:r,title:i,theme:c,size:m="narrow",date:t,link:a,linklist:n,image:d,titleLevel:_})=>{const{prefix:l}=x.useGlobalSettings(),e=`${l}--card`,p=o.classnames(e,`${e}__type__feature`,{[`${e}__action`]:a,[`${e}__size__${m}`]:m,[`${e}__isvideo`]:$,[`${e}__linklist`]:n,[`${e}__theme__${c}`]:c});return s.jsxs("div",{className:p,children:[a&&s.jsx("a",{className:`${e}--link`,href:a,title:i,children:s.jsx("span",{className:`${e}--link--text`,children:i})}),s.jsxs("div",{className:`${e}--wrap`,children:[d&&s.jsx("div",{className:`${e}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{className:`${e}--picture`,src:d,alt:i})})}),s.jsxs("div",{className:`${e}--content`,children:[r&&s.jsx("p",{className:`${e}--eyebrow`,children:r}),i&&_?s.jsx(_,{className:`${e}--title`,children:i}):s.jsx("p",{className:`${e}--title`,children:i}),t&&s.jsx("time",{className:`${e}--date`,dateTime:t.unix,children:t.human}),n&&s.jsx(N.LinkList,{headline:n.headline,linkgroup:n.linkgroup})]})]})]})},k=({isvideo:$,eyebrow:r,title:i,size:c="standard",alignment:m,intro:t,link:a,linklist:n,image:d,titleLevel:_})=>{const{prefix:l}=x.useGlobalSettings(),e=`${l}--card`,p=o.classnames(e,`${e}__type__multilink`,{[`${e}__align__${m}`]:m,[`${e}__action`]:a,[`${e}__size__${c}`]:c,[`${e}__isvideo`]:$,[`${e}__linklist`]:n,[`${e}__no-image`]:!d});return s.jsxs("div",{className:p,children:[a&&s.jsx("a",{className:`${e}--link`,href:a,title:i,children:s.jsx("span",{className:`${e}--link--text`,children:i})}),s.jsxs("div",{className:`${e}--wrap`,children:[d&&s.jsx("div",{className:`${e}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{className:`${e}--picture`,src:d,alt:i})})}),s.jsxs("div",{className:`${e}--content`,children:[r&&s.jsx("p",{className:`${e}--eyebrow`,children:r}),i&&_?s.jsx(_,{className:`${e}--title`,children:i}):s.jsx("p",{className:`${e}--title`,children:i}),d&&s.jsx("div",{className:`${e}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{className:`${e}--picture`,src:d,alt:i})})}),t&&s.jsx("p",{className:`${e}--intro`,children:t}),n&&s.jsx(N.LinkList,{headline:n.headline,linkgroup:n.linkgroup})]})]})]})},L=({eyebrow:$,title:r,theme:i,size:c="narrow",cornercut:m,intro:t,link:a,cta:n,titleLevel:d})=>{const{prefix:_}=x.useGlobalSettings(),l=`${_}--card`,e=o.classnames(`${l}--wrapper`,`${l}--wrapper__type__promo ${l}--wrapper__type__promo__size__${c}`),p=o.classnames(l,`${l}__type__promo`,{[`${l}__cornercut`]:m,[`${l}__action`]:a,[`${l}__size__${c}`]:c,[`${l}__theme__${i}`]:i});return s.jsx("div",{className:e,children:s.jsxs("div",{className:p,children:[a&&s.jsx("a",{className:`${l}--link`,href:a,title:r,children:s.jsx("span",{className:`${l}--link--text`,children:r})}),s.jsx("div",{className:`${l}--wrap`,children:s.jsxs("div",{className:`${l}--content`,children:[$&&s.jsx("p",{className:`${l}--eyebrow`,children:$}),r&&d?s.jsx(d,{className:`${l}--title`,children:r}):s.jsx("p",{className:`${l}--title`,children:r}),t&&s.jsx("p",{className:`${l}--intro`,children:t}),n&&n.label&&s.jsx("a",{className:`${l}--cta ${_}--button ${_}--button--medium ${_}--button--primary`,href:n.url,children:s.jsx("span",{className:"link__label",children:n.label})})]})})]})})},G=({title:$,color:r,size:i="standard",intro:c,source:m,titleLevel:t})=>{const{prefix:a}=x.useGlobalSettings(),n=`${a}--card`,d=o.classnames(n,`${n}__type__stat`,{[`${n}__color__${r}`]:r,[`${n}__size__${i}`]:i});return s.jsx("div",{className:d,children:s.jsx("div",{className:`${n}--wrap`,children:s.jsxs("div",{className:`${n}--content`,children:[$&&t?s.jsx(t,{className:`${n}--title`,children:$}):s.jsx("p",{className:`${n}--title`,children:$}),c&&s.jsx("p",{className:`${n}--intro`,children:c}),m&&s.jsx(j.Link,{url:m.url,children:m.label})]})})})},S=({eyebrow:$,title:r,theme:i,size:c,date:m,profile:t,link:a,titleLevel:n})=>{const{prefix:d}=x.useGlobalSettings(),_=`${d}--card`,l=o.classnames(`${_}--wrapper`),e=o.classnames(_,`${_}__type__text`,{[`${_}__action`]:a,[`${_}__size__${c}`]:c,[`${_}__theme__${i}`]:i});return s.jsx("div",{className:l,children:s.jsxs("div",{className:e,children:[a&&s.jsx("a",{className:`${_}--link`,href:a,title:r,children:s.jsx("span",{className:`${_}--link--text`,children:r})}),s.jsx("div",{className:`${_}--wrap`,children:s.jsxs("div",{className:`${_}--content`,children:[$&&s.jsx("p",{className:`${_}--eyebrow`,children:$}),r&&n?s.jsx(n,{className:`${_}--title`,children:r}):s.jsx("p",{className:`${_}--title`,children:r}),m&&s.jsx("time",{className:`${_}--date`,dateTime:m.unix,children:m.human}),t&&t.avatar&&s.jsx(C.Profile,{avatar:t.avatar,description:t.description,link:t.link,name:t.name,role:t.role,className:`${d}--profile__theme__${i}`})]})})]})})},q={stat:G,multilink:k,text:S,promo:L,feature:g,detail:w,factlist:y,data:f},F=({cards:$,titleLevel:r="p",cardCount:i,cta:c,type:m,alignment:t,size:a,theme:n,collapsed:d=!1})=>{const _=q[m],{prefix:l}=x.useGlobalSettings(),e=`${l}--cardgroup`,p=o.classnames(e,`${e}__count__${i}`,{[`${e}__collapsed`]:d});return s.jsxs("div",{className:p,children:[s.jsx("div",{className:`${e}--inner`,children:$&&$.map((u,v)=>s.jsx(_,{...u,size:a,theme:n,alignment:t,titleLevel:r},v))}),c&&s.jsx("div",{className:`${e}--button-wrap`,children:s.jsx(b.Button,{kind:"button",type:"secondary",size:"medium",label:c.label,url:c.url})})]})},P=F;exports.CardGroup=P;
@@ -1 +0,0 @@
1
- "use strict";const s=require("react/jsx-runtime"),$=require("./useGlobalSettings-chunk-Pa38w6VS.js"),u=require("./index-chunk-DCI82Tmm.js"),f=require("./LinkList-chunk-Dv-cNPfH.js"),g=require("./Button-chunk-0TEubQS1.js"),y=require("./SocialMedia-chunk-fLjmpXNC.js"),q=({className:m,logo:x,tagline:j,subtagline:N,address:r,linkgroup:d,socialmedia:n,subscribe:e,legal:h,secondarylinks:o,anchorlink:l})=>{const{prefix:i}=$.useGlobalSettings(),a=`${i}--footer`,v=u.classnames(m,a);return s.jsxs("footer",{className:v,children:[s.jsxs("div",{className:`${a}--main ${i}--container`,children:[s.jsxs("div",{className:"site--info",children:[s.jsx("img",{className:`${a}--logo`,src:x,alt:"ILO Logo"}),s.jsx("h3",{className:`${a}--headline`,children:j}),s.jsx("h4",{className:`${a}--subhead`,children:N})]}),r&&s.jsx("div",{className:"address",children:r.map((c,t)=>s.jsx("p",{className:"address--line",children:c},t))}),d&&s.jsx("nav",{className:"links",children:s.jsx(f.LinkList,{linkgroup:d,theme:"dark"})}),n&&s.jsx("div",{className:"connect",children:s.jsx("div",{className:"social--links",children:s.jsx(y.SocialMedia,{...n,theme:"dark"})})}),e&&s.jsx("div",{className:"subscribe",children:s.jsx(g.Button,{label:e==null?void 0:e.label,url:e==null?void 0:e.url,type:"primary",size:"large",target:"_blank"})})]}),s.jsx("div",{className:`${a}--secondary`,children:s.jsxs("div",{className:`${i}--container`,children:[s.jsxs("div",{className:`${a}--secondary--details`,children:[s.jsx("div",{className:"legal",children:h}),o&&s.jsx("nav",{className:"secondarylinks",children:s.jsx("ul",{className:"secondarylinks--list",children:o.map((c,t)=>s.jsx("li",{className:"secondarylinks--list--item",children:s.jsx("a",{href:c.url,className:"secondarylinks--list--link",children:c==null?void 0:c.label},t)}))})})]}),s.jsx("a",{href:l==null?void 0:l.url,className:"anchorlink",children:l==null?void 0:l.label})]})})]})},L=q;exports.Footer=L;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-chunk-DCI82Tmm.js"),c=require("./useGlobalSettings-chunk-Pa38w6VS.js"),g=({url:o,label:t,src:i})=>{const{prefix:e}=c.useGlobalSettings(),r=`${e}--logo-grid--item`,l=`${e}--logo-grid--link`,n=a.classnames(r,{[l]:!!o});return o?s.jsx("a",{className:n,href:o,target:"_blank",rel:"noopener noreferrer",children:s.jsx("img",{alt:t,src:i})}):s.jsx("div",{className:n,children:s.jsx("img",{alt:t,src:i})})},d=({logos:o,theme:t="light"})=>{const{prefix:i}=c.useGlobalSettings(),e=`${i}--logo-grid`,r=`${e}__theme__${t}`,l=a.classnames(e,r);return s.jsx("div",{className:l,children:s.jsx("div",{className:`${e}--logos`,children:o.map(n=>s.jsx(g,{...n}))})})},m=d;exports.LogoGrid=m;
@@ -1 +0,0 @@
1
- "use strict";const t=require("react/jsx-runtime"),u=require("react"),E=require("./index-chunk-DCI82Tmm.js"),S=require("./useGlobalSettings-chunk-Pa38w6VS.js"),$=require("./usePrevious-chunk-DENrwKF1.js"),L=require("./Fieldset-chunk-BsOPbe_a.js"),C=require("./FormControl-chunk-08fp5TeU.js"),N=u.forwardRef(({onChange:e,onBlur:n,disabled:a=!1,error:s,id:o,name:r,required:i,checked:l,defaultChecked:c=!1,value:x},R)=>{const{prefix:q}=S.useGlobalSettings(),{setHasError:f}=L.useFieldsetError(),j=C.useFormControl(),b=$.usePrevious(s);u.useEffect(()=>{s!==b&&f(!!s)},[s,b,f]);const{ariaDescribedBy:y}=j,g=m=>{console.log(m.target.value),e&&e(m)},d=`${q}--radio`,v=`${d}--control`,F=`${d}__error`,h=E.classnames(d,{[F]:s});return t.jsxs("div",{className:h,children:[t.jsx("input",{ref:R,id:o||r,name:r,onChange:g,onBlur:n,disabled:a,required:i,type:"radio",defaultChecked:c,"aria-describedby":y,checked:l,value:x}),t.jsx("span",{className:v})]})}),P=u.forwardRef((e,n)=>{const{style:a,inputStyle:s,className:o,labelPlacement:r="end",labelSize:i="small",...l}=e,c=e.id?e.id:e.name;return t.jsx(C.FormControl,{fieldId:c,style:a,className:o,labelPlacement:r,labelSize:i,...l,children:t.jsx(N,{ref:n,style:s,...l})})}),w=P;exports.LabelledRadio=w;
@@ -1,4 +0,0 @@
1
- import { C as e } from "./Collapse-chunk-BVSI_9Dd.js";
2
- export {
3
- e as Collapse
4
- };
@@ -1,4 +0,0 @@
1
- import { F as e } from "./Footer-chunk-D6ig8l3Y.js";
2
- export {
3
- e as Footer
4
- };
@@ -1,5 +0,0 @@
1
- import { H as o, a as e } from "./Hero-chunk-HJvXvclG.js";
2
- export {
3
- o as Hero,
4
- e as HeroCard
5
- };
@@ -1,4 +0,0 @@
1
- import { N as i } from "./Navigation-chunk-BL9t1Aze.js";
2
- export {
3
- i as Navigation
4
- };
@@ -1,4 +0,0 @@
1
- import { S as a } from "./SearchField-chunk-BF-yCtvV.js";
2
- export {
3
- a as SearchField
4
- };
@@ -1,32 +0,0 @@
1
- import { jsxs as N, jsx as l } from "react/jsx-runtime";
2
- import { c as o } from "./index-chunk-0LeqwHm8.js";
3
- import { u as S } from "./useGlobalSettings-chunk-gkijV3S1.js";
4
- const b = ({
5
- className: n,
6
- theme: r = "light",
7
- justify: m = "start",
8
- headline: e,
9
- icons: $,
10
- iconSize: _ = "normal"
11
- }) => {
12
- const { prefix: h } = S(), s = `${h}--social-media`, d = `${s}__theme__${r}`, C = `${s}__justify__${m}`, f = o(s, d, C, n), u = `${s}--headline`, i = `${s}--list`, c = `${i}--item`, t = `${c}--icon`, p = `${c}--icon__${_}`;
13
- return /* @__PURE__ */ N("div", { className: f, children: [
14
- e && /* @__PURE__ */ l("h5", { className: u, children: e }),
15
- /* @__PURE__ */ l("ul", { className: i, children: $.map((a) => /* @__PURE__ */ l("li", { className: c, children: /* @__PURE__ */ l(
16
- "a",
17
- {
18
- title: a.label,
19
- className: o(
20
- t,
21
- p,
22
- `${t}__${a.icon}`
23
- ),
24
- href: a.url,
25
- children: a.label
26
- }
27
- ) })) })
28
- ] });
29
- }, y = b;
30
- export {
31
- y as S
32
- };
@@ -1,4 +0,0 @@
1
- import { V as r } from "./Video-chunk-CDl9BbxW.js";
2
- export {
3
- r as Video
4
- };