@ilo-org/react 0.18.0 → 0.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) 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/{Button-chunk-0TEubQS1.js → Button-chunk-yGkEAzI3.js} +1 -1
  4. package/lib/cjs/_store/{Button-entry-BogzX4pv.js → Button-entry-CFKrMKO7.js} +1 -1
  5. package/lib/cjs/_store/{Callout-chunk-B_3FQTvs.js → Callout-chunk-5KDr9zD6.js} +1 -1
  6. package/lib/cjs/_store/{Callout-entry-DJsjlWxc.js → Callout-entry-vBBI312g.js} +1 -1
  7. package/lib/cjs/_store/CardGroup-chunk-BN6pkvcW.js +1 -0
  8. package/lib/cjs/_store/Footer-chunk-x0-hQ6OJ.js +1 -0
  9. package/lib/cjs/_store/{Footer-entry-D3GYBVpj.js → Footer-entry-XMrNYM_p.js} +1 -1
  10. package/lib/cjs/_store/{Hero-chunk-ZP6tCFz5.js → Hero-chunk-BmAL9GMT.js} +1 -1
  11. package/lib/cjs/_store/{Hero-entry-CVMagWvL.js → Hero-entry-6U1647te.js} +1 -1
  12. package/lib/cjs/_store/Icon-chunk-BuN3LIv8.js +1 -0
  13. package/lib/cjs/_store/{Icon-entry-DHj_qd8u.js → Icon-entry-Bk5k6jbS.js} +1 -1
  14. package/lib/cjs/_store/LogoGrid-entry-DFwMU9Hk.js +1 -0
  15. package/lib/cjs/_store/{Navigation-chunk-CPzyVK7B.js → Navigation-chunk-Cd2_nKBa.js} +1 -1
  16. package/lib/cjs/_store/{Navigation-entry-D07Y4pkR.js → Navigation-entry-D2GGdiL3.js} +1 -1
  17. package/lib/cjs/_store/{Notification-chunk-DXIs6h5e.js → Notification-chunk-CdXNLoc4.js} +1 -1
  18. package/lib/cjs/_store/{Notification-entry-C9D2mAvD.js → Notification-entry-xJwdmUff.js} +1 -1
  19. package/lib/cjs/_store/Radio-chunk-EK2nKEND.js +1 -0
  20. package/lib/cjs/_store/{Radio-entry-DhWQjZuV.js → Radio-entry-M4dL4mjL.js} +1 -1
  21. package/lib/cjs/_store/SearchField-chunk-B1dvh9Ra.js +1 -0
  22. package/lib/cjs/_store/{SearchField-entry-CgnoJz0d.js → SearchField-entry-6JDMx3qT.js} +1 -1
  23. package/lib/cjs/_store/{SocialMedia-chunk-fLjmpXNC.js → SocialMedia-chunk-DrxlykT6.js} +1 -1
  24. package/lib/cjs/_store/{SocialMedia-entry-meZdo-EU.js → SocialMedia-entry-BQyxJpTO.js} +1 -1
  25. package/lib/cjs/_store/{Tabs-chunk-DDQr8q_Q.js → Tabs-chunk-CvNhDGjJ.js} +1 -1
  26. package/lib/cjs/_store/{Tabs-entry-iq_o_CtL.js → Tabs-entry-BYCRe16t.js} +1 -1
  27. package/lib/cjs/_store/{Tag-chunk-B4ZPZsMt.js → Tag-chunk-D7MU0DS1.js} +1 -1
  28. package/lib/cjs/_store/{Tag-entry-5_lz5glY.js → Tag-entry-j9LvFNEy.js} +1 -1
  29. package/lib/cjs/_store/{components-entry-DEwUb_oq.js → components-entry-D1S6zRgk.js} +1 -1
  30. package/lib/cjs/index.js +1 -1
  31. package/lib/esm/_store/{Accordion-chunk-B6FAPUyi.js → Accordion-chunk-BawBOKZz.js} +14 -14
  32. package/lib/esm/_store/{Accordion-entry-oAYQPeGr.js → Accordion-entry-C8JFNFFn.js} +1 -1
  33. package/lib/esm/_store/{Button-chunk-Crzq2FAv.js → Button-chunk-D3gTmmqF.js} +1 -1
  34. package/lib/esm/_store/{Button-entry-DQ9yLTsk.js → Button-entry-BTrJYspO.js} +5 -5
  35. package/lib/esm/_store/{Callout-chunk-BYTLkWbG.js → Callout-chunk-CQS0gd8t.js} +1 -1
  36. package/lib/esm/_store/{Callout-entry-C-llb6Kt.js → Callout-entry-BP20dlG4.js} +1 -1
  37. package/lib/esm/_store/{CardGroup-chunk-BTx2ukOX.js → CardGroup-chunk-CTMjL89C.js} +127 -125
  38. package/lib/esm/_store/{Collapse-chunk-BVSI_9Dd.js → Collapse-chunk-CyOyOA2s.js} +1 -0
  39. package/lib/esm/_store/Collapse-entry-C1uibEt8.js +4 -0
  40. package/lib/esm/_store/Footer-chunk-jMQtAGbS.js +53 -0
  41. package/lib/esm/_store/Footer-entry-BRJx_i2O.js +4 -0
  42. package/lib/esm/_store/{Hero-chunk-HJvXvclG.js → Hero-chunk-AgDdKsJ4.js} +1 -1
  43. package/lib/esm/_store/Hero-entry-CcnVmzHx.js +5 -0
  44. package/lib/esm/_store/Icon-chunk-SeRwWcV9.js +4142 -0
  45. package/lib/esm/_store/Icon-entry-DVmHvnYh.js +4 -0
  46. package/lib/esm/_store/{LogoGrid-entry-BEUN3M_d.js → LogoGrid-entry-DN-ZIG91.js} +8 -8
  47. package/lib/esm/_store/{Navigation-chunk-BL9t1Aze.js → Navigation-chunk-DOX-uYIu.js} +1 -1
  48. package/lib/esm/_store/Navigation-entry-h17tpQEV.js +4 -0
  49. package/lib/esm/_store/{Notification-chunk-CdTKN1sq.js → Notification-chunk-CTgFDa_7.js} +1 -1
  50. package/lib/esm/_store/Notification-entry-DscPkMfo.js +4 -0
  51. package/lib/esm/_store/{Radio-chunk-GaPnCNx4.js → Radio-chunk-CZnGQoYJ.js} +20 -20
  52. package/lib/esm/_store/{Radio-entry-CFuTolt7.js → Radio-entry-DhmJk5Et.js} +1 -1
  53. package/lib/esm/_store/{SearchField-chunk-BF-yCtvV.js → SearchField-chunk-CZCT1mJ4.js} +19 -11
  54. package/lib/esm/_store/SearchField-entry-D8GdI4NP.js +4 -0
  55. package/lib/esm/_store/SocialMedia-chunk-DdOAr_Gj.js +32 -0
  56. package/lib/esm/_store/{SocialMedia-entry-ZTNn-vUB.js → SocialMedia-entry-BllaQbO-.js} +1 -1
  57. package/lib/esm/_store/{Tabs-chunk-D2k0m68V.js → Tabs-chunk-tzegLak-.js} +1 -1
  58. package/lib/esm/_store/Tabs-entry-KkVJWKrD.js +4 -0
  59. package/lib/esm/_store/{Tag-chunk-BxCaTFBz.js → Tag-chunk-CKCrKm54.js} +1 -1
  60. package/lib/esm/_store/{Tag-entry-Cr5XkVR9.js → Tag-entry-DtON5ly2.js} +2 -2
  61. package/lib/esm/_store/{Video-chunk-CDl9BbxW.js → Video-chunk-DAqwWSGg.js} +1 -3
  62. package/lib/esm/_store/Video-entry-11ar9TYk.js +4 -0
  63. package/lib/esm/_store/{components-entry-Er-smibI.js → components-entry-B0qNGD2m.js} +15 -15
  64. package/lib/esm/index.js +15 -15
  65. package/lib/styles/components/accordion.css +1 -1
  66. package/lib/styles/components/blockquote.css +0 -0
  67. package/lib/styles/components/breadcrumb.css +1 -1
  68. package/lib/styles/components/button.css +1 -1
  69. package/lib/styles/components/callout.css +1 -1
  70. package/lib/styles/components/card.css +1 -1
  71. package/lib/styles/components/cardgroup.css +1 -1
  72. package/lib/styles/components/checkbox.css +1 -1
  73. package/lib/styles/components/container.css +1 -1
  74. package/lib/styles/components/contextmenu.css +1 -1
  75. package/lib/styles/components/credit.css +1 -1
  76. package/lib/styles/components/datacard.css +1 -1
  77. package/lib/styles/components/datepicker.css +1 -1
  78. package/lib/styles/components/detailcard.css +1 -1
  79. package/lib/styles/components/dropdown.css +1 -1
  80. package/lib/styles/components/empty.css +1 -1
  81. package/lib/styles/components/factlistcard.css +1 -1
  82. package/lib/styles/components/featurecard.css +1 -1
  83. package/lib/styles/components/fieldset.css +1 -1
  84. package/lib/styles/components/file-upload.css +1 -1
  85. package/lib/styles/components/footer.css +1 -1
  86. package/lib/styles/components/form.css +1 -1
  87. package/lib/styles/components/formcontrol.css +1 -1
  88. package/lib/styles/components/hero.css +1 -1
  89. package/lib/styles/components/herocard.css +1 -1
  90. package/lib/styles/components/image.css +1 -1
  91. package/lib/styles/components/input.css +1 -1
  92. package/lib/styles/components/link.css +1 -1
  93. package/lib/styles/components/linklist.css +1 -1
  94. package/lib/styles/components/list.css +1 -1
  95. package/lib/styles/components/loading.css +1 -1
  96. package/lib/styles/components/logo.css +1 -1
  97. package/lib/styles/components/logogrid.css +1 -1
  98. package/lib/styles/components/modal.css +1 -1
  99. package/lib/styles/components/multilinkcard.css +1 -1
  100. package/lib/styles/components/navigation.css +1 -1
  101. package/lib/styles/components/notification.css +1 -1
  102. package/lib/styles/components/pagination.css +1 -1
  103. package/lib/styles/components/profile.css +1 -1
  104. package/lib/styles/components/promocard.css +1 -1
  105. package/lib/styles/components/radio.css +1 -1
  106. package/lib/styles/components/readmore.css +1 -1
  107. package/lib/styles/components/richtext.css +1 -1
  108. package/lib/styles/components/searchfield.css +1 -1
  109. package/lib/styles/components/socialmedia.css +1 -1
  110. package/lib/styles/components/statcard.css +1 -1
  111. package/lib/styles/components/table.css +1 -1
  112. package/lib/styles/components/tableofcontents.css +1 -1
  113. package/lib/styles/components/tabs.css +1 -1
  114. package/lib/styles/components/tag.css +1 -1
  115. package/lib/styles/components/textarea.css +1 -1
  116. package/lib/styles/components/textcard.css +1 -1
  117. package/lib/styles/components/textinput.css +1 -1
  118. package/lib/styles/components/toggle.css +1 -1
  119. package/lib/styles/components/tooltip.css +1 -1
  120. package/lib/styles/components/video.css +1 -1
  121. package/lib/styles/global.css +1 -1
  122. package/lib/styles/global.css.map +1 -1
  123. package/lib/styles/index.css +2 -2
  124. package/lib/styles/index.css.map +1 -1
  125. package/lib/styles/monorepo.css +2 -2
  126. package/lib/styles/monorepo.css.map +1 -1
  127. package/lib/types/components/Accordion/Accordion.props.d.ts +2 -2
  128. package/lib/types/components/Button/Button.props.d.ts +1 -1
  129. package/lib/types/components/Cards/DataCard/DataCard.props.d.ts +2 -2
  130. package/lib/types/components/Cards/DetailCard/DetailCard.props.d.ts +2 -2
  131. package/lib/types/components/Cards/FactlistCard/FactListCard.props.d.ts +2 -2
  132. package/lib/types/components/Cards/FeatureCard/FeatureCard.props.d.ts +2 -2
  133. package/lib/types/components/Cards/MultilinkCard/MultilinkCard.props.d.ts +2 -2
  134. package/lib/types/components/Cards/PromoCard/PromoCard.props.d.ts +2 -2
  135. package/lib/types/components/Cards/StatCard/StatCard.props.d.ts +2 -2
  136. package/lib/types/components/Cards/TextCard/TextCard.props.d.ts +2 -2
  137. package/lib/types/components/Input/Input.props.d.ts +1 -1
  138. package/lib/types/components/Pagination/Pagination.props.d.ts +1 -1
  139. package/lib/types/components/SearchField/SearchField.props.d.ts +1 -1
  140. package/lib/types/components/Tag/Tag.props.d.ts +1 -1
  141. package/lib/types/components/Tag/TagSet.props.d.ts +1 -1
  142. package/lib/types/components/Textarea/Textarea.props.d.ts +1 -1
  143. package/lib/types/components/Toggle/Toggle.props.d.ts +1 -1
  144. package/lib/types/types/index.d.ts +4 -4
  145. package/package.json +7 -9
  146. package/lib/cjs/_store/Accordion-chunk-C0MtnZLX.js +0 -1
  147. package/lib/cjs/_store/CardGroup-chunk-DhFE-J5O.js +0 -1
  148. package/lib/cjs/_store/Footer-chunk-9dkCoi0B.js +0 -1
  149. package/lib/cjs/_store/Icon-chunk-C3UyVBv5.js +0 -1
  150. package/lib/cjs/_store/LogoGrid-entry-DfTqIeGY.js +0 -1
  151. package/lib/cjs/_store/Radio-chunk-RnNWzYgj.js +0 -1
  152. package/lib/cjs/_store/SearchField-chunk-DsxlWr7d.js +0 -1
  153. package/lib/esm/_store/Collapse-entry-DH89iy1Y.js +0 -4
  154. package/lib/esm/_store/Footer-chunk-D6ig8l3Y.js +0 -61
  155. package/lib/esm/_store/Footer-entry-B885hcUe.js +0 -4
  156. package/lib/esm/_store/Hero-entry-gNTc6gUC.js +0 -5
  157. package/lib/esm/_store/Icon-chunk-x0E_KQyQ.js +0 -3482
  158. package/lib/esm/_store/Icon-entry-d1Lq52eV.js +0 -4
  159. package/lib/esm/_store/Navigation-entry-Ch7YqW5b.js +0 -4
  160. package/lib/esm/_store/Notification-entry--uWc9jEM.js +0 -4
  161. package/lib/esm/_store/SearchField-entry-DCMFJrVP.js +0 -4
  162. package/lib/esm/_store/SocialMedia-chunk-CP4gdUdi.js +0 -32
  163. package/lib/esm/_store/Tabs-entry-B3sg3VMU.js +0 -4
  164. 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.2",
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",
76
- "@ilo-org/icons-react": "1.0.1",
77
- "@ilo-org/styles": "1.2.2",
75
+ "@ilo-org/fonts": "1.0.0",
76
+ "@ilo-org/icons-react": "1.0.2",
77
+ "@ilo-org/styles": "1.3.0",
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;