@ilo-org/react 0.24.0 → 0.24.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 (170) hide show
  1. package/lib/cjs/_store/Breadcrumb-chunk-BFveDqpn.js +1 -0
  2. package/lib/cjs/_store/{Breadcrumb-entry-BroW68u4.js → Breadcrumb-entry-Cf-EAu2Z.js} +1 -1
  3. package/lib/cjs/_store/{Button-chunk-B65FgSLG.js → Button-chunk-BPxitLjn.js} +1 -1
  4. package/lib/cjs/_store/{Button-entry-Ddk5OCD-.js → Button-entry-C7Z6wido.js} +1 -1
  5. package/lib/cjs/_store/{Callout-chunk-CS-b8vev.js → Callout-chunk-Cmnm5uzu.js} +1 -1
  6. package/lib/cjs/_store/{Callout-entry-Ddp2XRRc.js → Callout-entry-CE3NvW4J.js} +1 -1
  7. package/lib/cjs/_store/{Cards-entry-D_M0rUf1.js → Cards-entry-obHzo6Lq.js} +1 -1
  8. package/lib/cjs/_store/{Checkbox-chunk-C0TreicR.js → Checkbox-chunk-CDFIXTn9.js} +1 -1
  9. package/lib/cjs/_store/{Checkbox-entry-DSo6zQ9X.js → Checkbox-entry-DNbcaLP7.js} +1 -1
  10. package/lib/cjs/_store/{DatePicker-chunk-Dl0GaODr.js → DatePicker-chunk-DouvjE3X.js} +1 -1
  11. package/lib/cjs/_store/{DatePicker-entry-D0ZGNOBa.js → DatePicker-entry-Ci2NFgfR.js} +1 -1
  12. package/lib/cjs/_store/{Dropdown-chunk-DyCHTZMD.js → Dropdown-chunk-BjeJjYZD.js} +1 -1
  13. package/lib/cjs/_store/{Dropdown-entry-BaMzO6Kv.js → Dropdown-entry-BpdKN773.js} +1 -1
  14. package/lib/cjs/_store/Fieldset-chunk-Dykzn_3y.js +1 -0
  15. package/lib/cjs/_store/{Fieldset-entry-BXHX9lh2.js → Fieldset-entry-CgUV-ElS.js} +1 -1
  16. package/lib/cjs/_store/{FileUpload-chunk-DASUCDJs.js → FileUpload-chunk-CC1oePLc.js} +1 -1
  17. package/lib/cjs/_store/{FileUpload-entry-DohgXShA.js → FileUpload-entry-DwKrIcA0.js} +1 -1
  18. package/lib/cjs/_store/{Footer-chunk-BUjFj4bf.js → Footer-chunk-CGR-tiim.js} +1 -1
  19. package/lib/cjs/_store/{Footer-entry-D55F4ET9.js → Footer-entry-BTlHhSKi.js} +1 -1
  20. package/lib/cjs/_store/Form-chunk-Bhz_CsMf.js +1 -0
  21. package/lib/cjs/_store/{Form-entry-BAkn3BkW.js → Form-entry-DkAB5Wzc.js} +1 -1
  22. package/lib/cjs/_store/FormControl-chunk-Bv623HDr.js +1 -0
  23. package/lib/cjs/_store/{FormControl-entry-B3EdY4s4.js → FormControl-entry-Bu1yj8yC.js} +1 -1
  24. package/lib/cjs/_store/{Hero-chunk-Blm775AV.js → Hero-chunk-BgeQPg_6.js} +1 -1
  25. package/lib/cjs/_store/{Hero-entry-Dym2gQ5h.js → Hero-entry-BDFK6TqZ.js} +1 -1
  26. package/lib/cjs/_store/{Input-chunk-sjstsyZQ.js → Input-chunk-DUdxvEKw.js} +1 -1
  27. package/lib/cjs/_store/{Input-entry-CHQay_-X.js → Input-entry-C3vOeYic.js} +1 -1
  28. package/lib/cjs/_store/Link-chunk-BcVWiDXw.js +1 -0
  29. package/lib/cjs/_store/{Link-entry-Ds4pg91u.js → Link-entry-70094UjI.js} +1 -1
  30. package/lib/cjs/_store/{Notification-chunk-DkfLXJhu.js → Notification-chunk-BDC2i-2V.js} +1 -1
  31. package/lib/cjs/_store/{Notification-entry-D9KwV5qV.js → Notification-entry-BQ1Dbfgd.js} +1 -1
  32. package/lib/cjs/_store/{NumberPicker-chunk-BuYxdQBu.js → NumberPicker-chunk-kaW8wv3h.js} +1 -1
  33. package/lib/cjs/_store/{NumberPicker-entry-CP8qKRH4.js → NumberPicker-entry-CwXGzUsE.js} +1 -1
  34. package/lib/cjs/_store/Pagination-chunk-D3Ve2ASf.js +1 -0
  35. package/lib/cjs/_store/{Pagination-entry-578nR00W.js → Pagination-entry-B-PLD6Os.js} +1 -1
  36. package/lib/cjs/_store/{Radio-chunk-U-ZyTPH7.js → Radio-chunk-DoLctty-.js} +1 -1
  37. package/lib/cjs/_store/{Radio-entry-hNkJLhk7.js → Radio-entry-rG2UfQcr.js} +1 -1
  38. package/lib/cjs/_store/{ReadMore-chunk-D36Ibsoy.js → ReadMore-chunk-Cz3Dc9Cz.js} +1 -1
  39. package/lib/cjs/_store/{ReadMore-entry-o6NAV4k0.js → ReadMore-entry-DoeHMibd.js} +1 -1
  40. package/lib/cjs/_store/RichText-chunk-CLfo33Pr.js +1 -0
  41. package/lib/cjs/_store/{RichText-entry-BAqZEwbl.js → RichText-entry-BMEaokVO.js} +1 -1
  42. package/lib/cjs/_store/ScoreCard-chunk-B9OFfe4F.js +1 -0
  43. package/lib/cjs/_store/{SearchField-chunk-CUGa67lu.js → SearchField-chunk-BuB-C9aK.js} +1 -1
  44. package/lib/cjs/_store/{SearchField-entry-Bo7Zww4C.js → SearchField-entry-CZ0XwZwr.js} +1 -1
  45. package/lib/cjs/_store/{TextInput-entry-kwL7qsH7.js → TextInput-entry-D5kHzQCt.js} +1 -1
  46. package/lib/cjs/_store/{TextInput.args-chunk-DIxsZT_y.js → TextInput.args-chunk-Bs7YIRuJ.js} +1 -1
  47. package/lib/cjs/_store/{Textarea-chunk-Gr_D4IfG.js → Textarea-chunk-XYsrIeDn.js} +1 -1
  48. package/lib/cjs/_store/{Textarea-entry-ChgzYZSz.js → Textarea-entry-rsUP7-OD.js} +1 -1
  49. package/lib/cjs/_store/{Toggle-entry-BuFM2YXY.js → Toggle-entry-CrF6OlKl.js} +1 -1
  50. package/lib/cjs/_store/{Tooltip-chunk-Dk0E60Nc.js → Tooltip-chunk-CQu5vz01.js} +1 -1
  51. package/lib/cjs/_store/{Tooltip-entry-D5w7X3z_.js → Tooltip-entry-B52nIoTe.js} +1 -1
  52. package/lib/cjs/_store/{components-entry-SC5Q2qUz.js → components-entry-BV3j4LPg.js} +1 -1
  53. package/lib/cjs/index.js +1 -1
  54. package/lib/esm/_store/Breadcrumb-chunk-DjN2sOwo.js +132 -0
  55. package/lib/esm/_store/Breadcrumb-entry-BdsMn8X1.js +4 -0
  56. package/lib/esm/_store/{Button-chunk-DG7cL6tj.js → Button-chunk-3RMfjmYT.js} +1 -1
  57. package/lib/esm/_store/Button-entry-BMva-FAn.js +4 -0
  58. package/lib/esm/_store/{Callout-chunk-D3zivwvj.js → Callout-chunk-Com68klk.js} +1 -1
  59. package/lib/esm/_store/Callout-entry-Cy0_T9cE.js +4 -0
  60. package/lib/esm/_store/{Cards-entry-BsTiPrJs.js → Cards-entry-BsJZAO89.js} +1 -1
  61. package/lib/esm/_store/{Checkbox-chunk-OsF35mGH.js → Checkbox-chunk-lwnCSzbU.js} +2 -2
  62. package/lib/esm/_store/{Checkbox-entry-fyDheYn3.js → Checkbox-entry-iDYW3mII.js} +1 -1
  63. package/lib/esm/_store/{DatePicker-chunk-BUOrwC0Y.js → DatePicker-chunk-Dh48mMAP.js} +1 -1
  64. package/lib/esm/_store/DatePicker-entry-DA2mnr5y.js +4 -0
  65. package/lib/esm/_store/{Dropdown-chunk-fpN7RweM.js → Dropdown-chunk-DaOJI8GU.js} +1 -1
  66. package/lib/esm/_store/Dropdown-entry-yIppvxFB.js +4 -0
  67. package/lib/esm/_store/Fieldset-chunk-JT4tXIzJ.js +61 -0
  68. package/lib/esm/_store/Fieldset-entry-BU1iTqO6.js +4 -0
  69. package/lib/esm/_store/{FileUpload-chunk-Dw6vDrtN.js → FileUpload-chunk-Cfr5vOip.js} +1 -1
  70. package/lib/esm/_store/FileUpload-entry-B_cQHX8H.js +4 -0
  71. package/lib/esm/_store/{Footer-chunk-BI6r73Bm.js → Footer-chunk-DcFDdukr.js} +1 -1
  72. package/lib/esm/_store/Footer-entry-DR2tq2kQ.js +4 -0
  73. package/lib/esm/_store/Form-chunk-BUqXdVaD.js +14 -0
  74. package/lib/esm/_store/{Form-entry-z2FiIQ-u.js → Form-entry-D0WjXxpC.js} +1 -1
  75. package/lib/esm/_store/FormControl-chunk-CJhnDujX.js +81 -0
  76. package/lib/esm/_store/FormControl-entry-ShYwA_1H.js +4 -0
  77. package/lib/esm/_store/{Hero-chunk-CqARzKwt.js → Hero-chunk-rnL21UKu.js} +2 -2
  78. package/lib/esm/_store/Hero-entry-prlmncq4.js +4 -0
  79. package/lib/esm/_store/{Input-chunk-CCDILCqo.js → Input-chunk-XCiBTjUt.js} +1 -1
  80. package/lib/esm/_store/Input-entry-hEad-fr1.js +4 -0
  81. package/lib/esm/_store/Link-chunk-5QxYwhDk.js +34 -0
  82. package/lib/esm/_store/Link-entry-B7IbEhwb.js +4 -0
  83. package/lib/esm/_store/{Notification-chunk-CQvSf6dK.js → Notification-chunk-BHNEwEo8.js} +1 -1
  84. package/lib/esm/_store/Notification-entry-cjXsm4yI.js +4 -0
  85. package/lib/esm/_store/{NumberPicker-chunk-CaNDffBy.js → NumberPicker-chunk-j6uKlj6R.js} +1 -1
  86. package/lib/esm/_store/NumberPicker-entry-DLV6zbka.js +4 -0
  87. package/lib/esm/_store/{Pagination-chunk-B5541Ksz.js → Pagination-chunk-CRESCE8P.js} +37 -38
  88. package/lib/esm/_store/Pagination-entry-DDD4AfVJ.js +4 -0
  89. package/lib/esm/_store/{Radio-chunk-DE_LEr18.js → Radio-chunk-6JgiY5AT.js} +2 -2
  90. package/lib/esm/_store/{Radio-entry-g1635wr3.js → Radio-entry-CEkjEsjC.js} +1 -1
  91. package/lib/esm/_store/{ReadMore-chunk-pjNnS8Ji.js → ReadMore-chunk-CyCJMFw8.js} +1 -1
  92. package/lib/esm/_store/ReadMore-entry-D7Qpu2o4.js +4 -0
  93. package/lib/esm/_store/RichText-chunk-BWOoOlCR.js +20 -0
  94. package/lib/esm/_store/RichText-entry-BjufLWsb.js +4 -0
  95. package/lib/esm/_store/ScoreCard-chunk-BzQ8y5d7.js +491 -0
  96. package/lib/esm/_store/{SearchField-chunk-C1BKjgFA.js → SearchField-chunk-C7r7Ectd.js} +1 -1
  97. package/lib/esm/_store/SearchField-entry-MVIyW8fs.js +4 -0
  98. package/lib/esm/_store/TextInput-entry-CpSwj1ey.js +5 -0
  99. package/lib/esm/_store/{TextInput.args-chunk-gw5WCsYI.js → TextInput.args-chunk-DCwrQ9lS.js} +1 -1
  100. package/lib/esm/_store/{Textarea-chunk-BjZncFjh.js → Textarea-chunk-CEAOC4yE.js} +1 -1
  101. package/lib/esm/_store/{Textarea-entry-DVlbgKTT.js → Textarea-entry-Bh6ZxG82.js} +1 -1
  102. package/lib/esm/_store/{Toggle-entry-RwBHvx2w.js → Toggle-entry-BdxawvoW.js} +1 -1
  103. package/lib/esm/_store/{Tooltip-chunk-BIPZucx0.js → Tooltip-chunk-CC5huzaB.js} +49 -50
  104. package/lib/esm/_store/Tooltip-entry-DyEW_ai7.js +4 -0
  105. package/lib/esm/_store/{components-entry-DmqFkNrv.js → components-entry-C3_1dWKW.js} +23 -23
  106. package/lib/esm/index.js +23 -23
  107. package/lib/styles/components/breadcrumb.css +1 -1
  108. package/lib/styles/components/card.css +1 -1
  109. package/lib/styles/components/datacard.css +1 -1
  110. package/lib/styles/components/detailcard.css +1 -1
  111. package/lib/styles/components/featurecard.css +1 -1
  112. package/lib/styles/components/fieldset.css +1 -1
  113. package/lib/styles/components/form.css +1 -1
  114. package/lib/styles/components/formcontrol.css +1 -1
  115. package/lib/styles/components/link.css +1 -1
  116. package/lib/styles/components/multilinkcard.css +1 -1
  117. package/lib/styles/components/pagination.css +1 -1
  118. package/lib/styles/components/richtext.css +1 -1
  119. package/lib/styles/components/table.css +1 -1
  120. package/lib/styles/global.css +1 -1
  121. package/lib/styles/global.css.map +1 -1
  122. package/lib/styles/index.css +2 -2
  123. package/lib/styles/index.css.map +1 -1
  124. package/lib/styles/monorepo.css +2 -2
  125. package/lib/styles/monorepo.css.map +1 -1
  126. package/lib/types/components/Breadcrumb/Breadcrumb.d.ts +5 -0
  127. package/lib/types/components/Fieldset/Fieldset.props.d.ts +4 -0
  128. package/lib/types/components/Form/Form.d.ts +5 -0
  129. package/lib/types/components/Form/Form.props.d.ts +1 -1
  130. package/lib/types/components/FormControl/FormControl.props.d.ts +5 -0
  131. package/lib/types/components/Link/Link.d.ts +3 -3
  132. package/lib/types/components/Pagination/Pagination.props.d.ts +4 -0
  133. package/lib/types/components/RichText/RichText.props.d.ts +7 -0
  134. package/lib/types/types/index.d.ts +0 -1
  135. package/package.json +4 -4
  136. package/lib/cjs/_store/Breadcrumb-chunk-BV3TmRn5.js +0 -1
  137. package/lib/cjs/_store/Fieldset-chunk-ChX_vSBT.js +0 -1
  138. package/lib/cjs/_store/Form-chunk-BJA6abAs.js +0 -1
  139. package/lib/cjs/_store/FormControl-chunk-CTRPINwt.js +0 -1
  140. package/lib/cjs/_store/Link-chunk-DuZiglb_.js +0 -1
  141. package/lib/cjs/_store/Pagination-chunk-DYcRUXLg.js +0 -1
  142. package/lib/cjs/_store/RichText-chunk-B8HoKl_2.js +0 -1
  143. package/lib/cjs/_store/ScoreCard-chunk-CdqvfjmP.js +0 -1
  144. package/lib/esm/_store/Breadcrumb-chunk-DxH8m_ti.js +0 -126
  145. package/lib/esm/_store/Breadcrumb-entry-DCWVKCJk.js +0 -4
  146. package/lib/esm/_store/Button-entry-BYzboMV8.js +0 -4
  147. package/lib/esm/_store/Callout-entry-B0N_qxJ-.js +0 -4
  148. package/lib/esm/_store/DatePicker-entry-iTkl-QSl.js +0 -4
  149. package/lib/esm/_store/Dropdown-entry-cEgUhErA.js +0 -4
  150. package/lib/esm/_store/Fieldset-chunk-BYqbIcGY.js +0 -57
  151. package/lib/esm/_store/Fieldset-entry-BuAubc6Z.js +0 -4
  152. package/lib/esm/_store/FileUpload-entry-BS-_F8ZK.js +0 -4
  153. package/lib/esm/_store/Footer-entry-Db7ByESM.js +0 -4
  154. package/lib/esm/_store/Form-chunk-CnI3CSpO.js +0 -13
  155. package/lib/esm/_store/FormControl-chunk-k6iX88xc.js +0 -77
  156. package/lib/esm/_store/FormControl-entry-DxxbHspw.js +0 -4
  157. package/lib/esm/_store/Hero-entry-xdofG0qk.js +0 -4
  158. package/lib/esm/_store/Input-entry-DZN_IP5o.js +0 -4
  159. package/lib/esm/_store/Link-chunk-DNHgQ3lF.js +0 -33
  160. package/lib/esm/_store/Link-entry-sY9wid1q.js +0 -4
  161. package/lib/esm/_store/Notification-entry-D9sUbaSJ.js +0 -4
  162. package/lib/esm/_store/NumberPicker-entry-gJSmumaB.js +0 -4
  163. package/lib/esm/_store/Pagination-entry-CTafIaXw.js +0 -4
  164. package/lib/esm/_store/ReadMore-entry-Be7_PncI.js +0 -4
  165. package/lib/esm/_store/RichText-chunk-BQLMR58V.js +0 -18
  166. package/lib/esm/_store/RichText-entry-B5WFlH5n.js +0 -4
  167. package/lib/esm/_store/ScoreCard-chunk-T3fANZpV.js +0 -480
  168. package/lib/esm/_store/SearchField-entry-HNmMCvOI.js +0 -4
  169. package/lib/esm/_store/TextInput-entry-C1VYOhZw.js +0 -5
  170. package/lib/esm/_store/Tooltip-entry-BdZs-1tq.js +0 -4
@@ -1,4 +1,5 @@
1
1
  import { BreadcrumbItemProps } from './BreadcrumbItem';
2
+ import { ThemeTypes } from '../../types';
2
3
 
3
4
  export type BreadcrumbProps = {
4
5
  /**
@@ -13,6 +14,10 @@ export type BreadcrumbProps = {
13
14
  * Specify the links to be displayed in the Breadcrumb
14
15
  */
15
16
  links: BreadcrumbItemProps[];
17
+ /**
18
+ * Specify the theme of the Breadcrumb
19
+ */
20
+ theme?: ThemeTypes;
16
21
  };
17
22
  declare const Breadcrumb: import('react').ForwardRefExoticComponent<BreadcrumbProps & import('react').RefAttributes<HTMLElement>>;
18
23
  export { Breadcrumb };
@@ -25,4 +25,8 @@ export interface FieldsetProps extends HTMLProps<HTMLFieldSetElement> {
25
25
  * How the Fieldset children will wrap
26
26
  */
27
27
  wrap?: "reverse" | "nowrap" | "wrap" | "wrap-reverse";
28
+ /**
29
+ * The theme of the Fieldset. This will be overridden by the theme of the Form.
30
+ */
31
+ theme?: "light" | "dark";
28
32
  }
@@ -1,4 +1,9 @@
1
1
  import { FormProps } from './Form.props';
2
+ import { ThemeTypes } from '../../types';
2
3
 
4
+ interface FormContextValue {
5
+ theme: ThemeTypes | null;
6
+ }
7
+ export declare const useFormContext: () => FormContextValue;
3
8
  declare const Form: import('react').ForwardRefExoticComponent<FormProps & import('react').RefAttributes<HTMLFormElement>>;
4
9
  export default Form;
@@ -1,7 +1,7 @@
1
1
  export interface FormProps extends React.FormHTMLAttributes<HTMLFormElement> {
2
2
  children?: React.ReactNode;
3
3
  /**
4
- * The theme of the form. Also sets the theme of the form's children.
4
+ * The theme of the form. Also sets the theme of the form's children. Defaults to "light".
5
5
  */
6
6
  theme?: "light" | "dark";
7
7
  }
@@ -3,6 +3,7 @@ import { DropdownProps } from '../Dropdown/Dropdown.props';
3
3
  import { InputProps } from '../Input/Input.props';
4
4
  import { TextareaProps } from '../Textarea';
5
5
  import { ToggleProps } from '../Toggle';
6
+ import { ThemeTypes } from '../../types';
6
7
 
7
8
  export interface FormControlPublicProps {
8
9
  /**
@@ -45,6 +46,10 @@ export interface FormControlPublicProps {
45
46
  * Optional text to render in a tooltip
46
47
  */
47
48
  tooltip?: string;
49
+ /**
50
+ * Theme to use for the FormControl. This will be overridden by the theme of the Form.
51
+ */
52
+ theme?: ThemeTypes;
48
53
  }
49
54
  export interface FormControlPrivateProps {
50
55
  /**
@@ -1,5 +1,5 @@
1
1
  import { AnchorHTMLAttributes, ReactNode } from 'react';
2
- import { LinkTypes } from '../../types';
2
+ import { ThemeTypes } from '../../types';
3
3
 
4
4
  export type LinkProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
5
5
  /**
@@ -21,7 +21,7 @@ export type LinkProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
21
21
  /**
22
22
  * Specify an optional className to be added to your Link.
23
23
  */
24
- theme?: LinkTypes;
24
+ theme?: ThemeTypes;
25
25
  /**
26
26
  * Specify an optional className to be added to your Link.
27
27
  */
@@ -47,7 +47,7 @@ declare const Link: import('react').ForwardRefExoticComponent<AnchorHTMLAttribut
47
47
  /**
48
48
  * Specify an optional className to be added to your Link.
49
49
  */
50
- theme?: LinkTypes | undefined;
50
+ theme?: ThemeTypes | undefined;
51
51
  /**
52
52
  * Specify an optional className to be added to your Link.
53
53
  */
@@ -51,4 +51,8 @@ export interface PaginationProps {
51
51
  * total number of pages that are available
52
52
  */
53
53
  totalPages: number;
54
+ /**
55
+ * theme of the pagination
56
+ */
57
+ theme?: "dark" | "light";
54
58
  }
@@ -1,3 +1,5 @@
1
+ import { ThemeTypes } from '../../types';
2
+
1
3
  export interface RichTextProps {
2
4
  /**
3
5
  * Specify an optional className to be added to your RichText.
@@ -7,4 +9,9 @@ export interface RichTextProps {
7
9
  * Specify the html content
8
10
  */
9
11
  content: string;
12
+ /**
13
+ * Specify the theme to be used for the RichText component.
14
+ * @default "light"
15
+ */
16
+ theme?: ThemeTypes;
10
17
  }
@@ -12,7 +12,6 @@ export type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
12
12
  export type TextInputTypes = "email" | "hidden" | "password" | "search" | "tel" | "text" | "url";
13
13
  export type Language = "en" | "fr" | "es";
14
14
  export type LabelTypes = "default" | "actionable" | "light";
15
- export type LinkTypes = "light" | "dark" | "footer" | "button";
16
15
  export type LinkListThemes = "light" | "dark";
17
16
  export type TooltipThemes = "light" | "dark";
18
17
  export type TooltipIconThemes = "light" | "dark";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ilo-org/react",
3
- "version": "0.24.0",
3
+ "version": "0.24.2",
4
4
  "description": "React components for the ILO's Design System",
5
5
  "keywords": [
6
6
  "ui_patterns",
@@ -72,10 +72,10 @@
72
72
  "use-breakpoint": "^4.0.6",
73
73
  "video.js": "^7.21.2",
74
74
  "videojs-youtube": "^3.0.1",
75
- "@ilo-org/brand-assets": "1.0.0",
76
75
  "@ilo-org/fonts": "1.0.0",
77
76
  "@ilo-org/icons-react": "1.0.3",
78
- "@ilo-org/styles": "1.8.0",
77
+ "@ilo-org/brand-assets": "1.0.0",
78
+ "@ilo-org/styles": "1.8.2",
79
79
  "@ilo-org/themes": "0.9.1",
80
80
  "@ilo-org/utils": "0.1.1"
81
81
  },
@@ -112,8 +112,8 @@
112
112
  "vite-plugin-dts": "^3.9.1",
113
113
  "vite-plugin-static-copy": "^1.0.6",
114
114
  "vitest": "^2.0.5",
115
- "@ilo-org/prettier-config": "2.0.0",
116
115
  "@ilo-org/eslint-config": "2.0.0",
116
+ "@ilo-org/prettier-config": "2.0.0",
117
117
  "@ilo-org/typescript-config": "2.0.0"
118
118
  },
119
119
  "peerDependencies": {
@@ -1 +0,0 @@
1
- "use strict";const t=require("react/jsx-runtime"),r=require("react"),x=require("./index-chunk-D921N0ug.js"),p=require("./useGlobalSettings-chunk-DEacV16j.js"),q=require("./ContextMenu-chunk-LNOPuIui.js"),E=({component:o,componentProps:c,first:i,label:u,url:e})=>{const{prefix:l}=p.useGlobalSettings(),s=t.jsx("span",{className:`${l}--breadcrumb--link--label`,children:u}),b={href:e,className:`${l}--breadcrumb--link`,"aria-label":u};return o?t.jsx(o,{...b,...c,children:!i&&s}):t.jsx("a",{...b,children:!i&&s})},R=r.forwardRef(({url:o,label:c,className:i,first:u,...e},l)=>{const{prefix:s}=p.useGlobalSettings();return t.jsx("li",{className:x.classnames({[`${s}--breadcrumb--item`]:!0,[`${s}--breadcrumb--item__first`]:u,className:i}),ref:l,children:t.jsx(E,{label:c,url:o,first:u,...e})})}),S=r.forwardRef(({className:o,links:c,buttonLabel:i},u)=>{const{prefix:e}=p.useGlobalSettings(),l=r.useId(),[s,b]=r.useState(!1),[B,M]=r.useState(!1),C=r.useRef(0),m=r.useRef(null),a=r.useRef(null),g=r.useRef(null);if(r.useEffect(()=>{C.current=g.current.offsetWidth},[]),r.useEffect(()=>{function n(d){m.current&&a.current&&!m.current.contains(d.target)&&!a.current.contains(d.target)&&b(!1)}const $=new ResizeObserver(d=>{const j=d.at(0),f=C.current>=j.contentRect.width/1.5;M(v=>v!==f?f:v)});return document.addEventListener("mousedown",n),$.observe(document.body),()=>{document.removeEventListener("mousedown",n),$.disconnect()}},[l,e]),r.useEffect(()=>{if(!(!m.current||!a.current)&&s){const n=m.current.getBoundingClientRect(),d=a.current.firstChild.getBoundingClientRect(),j=n.left+n.width/2-d.width/2-5,f=n.bottom+16;a.current.style.left=`${j}px`,a.current.style.top=`${f}px`}},[s]),c.length<2)throw new Error(`Breadcrumb component requires at least two links, but received ${c.length}`);const w=c.at(0),h=c.slice(1,-1),N=c.at(-1);return t.jsxs("nav",{className:x.classnames(`${e}--breadcrumb`,o),ref:u,children:[t.jsx("div",{className:`${e}--breadcrumb--inner`,children:t.jsxs("ol",{className:`${e}--breadcrumb--items`,id:`${e}--breadcrumb--items-${l}`,ref:g,children:[t.jsx(R,{first:!0,url:w.url,label:w.label}),h.length>0&&t.jsxs("li",{className:x.classnames(`${e}--breadcrumb--context`,{[`${e}--breadcrumb--context__collapse`]:B}),children:[t.jsx("ol",{className:`${e}--breadcrumb--items`,children:h.map(n=>t.jsx(R,{url:n.url,label:n.label},`${n.label}-${n.url}`))}),t.jsx("button",{onClick:()=>b(!s),"aria-label":i,"aria-expanded":s,"aria-controls":`${e}--breadcrumb--menu-${l}`,className:`${e}--breadcrumb--context--button`,ref:m})]}),t.jsx(R,{url:N.url,label:N.label})]})}),t.jsx("div",{className:x.classnames(`${e}--breadcrumb--context--menu`,{[`${e}--breadcrumb--context--menu__visible`]:s}),id:`${e}--breadcrumb--menu-${l}`,ref:a,children:t.jsx(q.ContextMenu,{links:h})})]})});exports.Breadcrumb=S;
@@ -1 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),n=require("react"),c=require("./index-chunk-D921N0ug.js"),v=require("./useGlobalSettings-chunk-DEacV16j.js"),H=require("./Tooltip-chunk-Dk0E60Nc.js"),i=n.createContext({hasError:!1,setHasError:t=>t}),S=()=>n.useContext(i),G=({children:t,className:d,legend:l,helper:a,tooltip:o,errorMessage:u,disabled:x=!1,wrap:$="nowrap",direction:m="column",...p})=>{const{prefix:h}=v.useGlobalSettings(),[r,C]=n.useState(!1),s=`${h}--fieldset`,j=`${s}--wrap__${$}`,_=`${s}--direction__${m}`,f=`${s}--helper`,E=`${s}__error`,b=`${s}__disabled`,F=c.classnames(d,s,j,_,{[b]:x}),N=c.classnames(f,{[E]:r}),g={hasError:r,setHasError:C},q=!!a||r,w=r?u:a;return e.jsxs("fieldset",{className:F,...p,children:[l||a?e.jsxs("div",{className:`${s}--legend-wrapper`,children:[l&&e.jsxs("legend",{className:`${s}--legend`,children:[l,o&&e.jsx(H.Tooltip,{className:`${s}--legend--tooltip`,icon:!0,label:o,theme:"dark"})]}),q&&e.jsx("span",{className:N,children:w})]}):null,e.jsx("div",{className:`${s}--elements`,children:e.jsx(i.Provider,{value:g,children:t})})]})},R=G;exports.Fieldset=R;exports.useFieldsetError=S;
@@ -1 +0,0 @@
1
- "use strict";const i=require("react/jsx-runtime"),m=require("react"),l=require("./useGlobalSettings-chunk-DEacV16j.js"),u=require("./index-chunk-D921N0ug.js"),f=m.forwardRef(({children:e,theme:t="light",...r},o)=>{const{prefix:n}=l.useGlobalSettings(),s=`${n}--form`,c=`${s}__theme__${t}`,a=u.classnames(s,c);return i.jsx("form",{ref:o,className:a,...r,children:e})}),q=f;exports.Form=q;
@@ -1 +0,0 @@
1
- "use strict";const r=require("react/jsx-runtime"),C=require("./index-chunk-D921N0ug.js"),a=require("react"),G=require("./useGlobalSettings-chunk-DEacV16j.js"),P=require("./Tooltip-chunk-Dk0E60Nc.js");let $=(o=21)=>crypto.getRandomValues(new Uint8Array(o)).reduce((e,s)=>(s&=63,s<36?e+=s.toString(36):s<62?e+=(s-26).toString(36).toUpperCase():s>62?e+="-":e+="_",e),"");function T(o="",{tooltip:e,helper:s,errorMessage:n}={}){return{tooltipId:e&&`${o}--tooltip--${$()}`,helperId:s&&`${o}--helper--${$()}`,errorId:n&&`${o}--error--${$()}`}}function U(o,e){const{tooltipId:s,helperId:n,errorId:c}=o,l=C.classnames(s,{[`${n}`]:!e,[`${c}`]:e});if(!(!l||l==="undefined"))return l}const f=a.createContext({}),V=()=>a.useContext(f),k=({children:o,className:e,label:s,helper:n,errorMessage:c,tooltip:l,style:h,error:i,disabled:b,fieldId:F,labelSize:I="medium",labelPlacement:j="top"})=>{const{prefix:v}=G.useGlobalSettings(),t=`${v}--form-control`,S=a.useMemo(()=>T(t,{helper:n,errorMessage:c,tooltip:l}),[t,n,c,l]),{tooltipId:d,helperId:u,errorId:m}=S,[g,q]=a.useState(void 0);a.useEffect(()=>{q(U({tooltipId:d,helperId:u,errorId:m},i))},[d,u,m,i]);const B={ariaDescribedBy:g},N=`${t}__error`,A=`${t}__disabled`,D=`${t}__label-placement__${j}`,w=C.classnames(t,e,D,[{[N]:i},{[A]:b}]),p=`${t}--label`,y=`${p}__size__${I}`,R=C.classnames(p,y),x=`${t}--helper`,_=!!i&&!!c,z=!_&&!!n;return r.jsx(f.Provider,{value:B,children:r.jsxs("div",{className:w,style:h,children:[r.jsxs("span",{className:R,children:[r.jsx("label",{htmlFor:F,children:s}),l&&r.jsx(P.Tooltip,{id:d,className:`${t}--legend--tooltip`,icon:!0,label:l,theme:"dark"})]}),o,z&&r.jsx("span",{id:u,className:x,children:n}),_&&r.jsx("span",{id:m,className:x,"aria-live":"assertive",children:c})]})})},E=k;exports.FormControl=E;exports.useFormControl=V;
@@ -1 +0,0 @@
1
- "use strict";const t=require("react/jsx-runtime"),k=require("react"),x=require("./index-chunk-D921N0ug.js"),a=require("./useGlobalSettings-chunk-DEacV16j.js"),b=k.forwardRef(({children:o,className:e,label:r,target:s,theme:i="light",url:l,...u},c)=>{const{prefix:d}=a.useGlobalSettings();let n=`${d}--link`;e!=null&&e.includes("button")&&(n="");const f=x.classnames(e,{[n]:!0,[`${n}--${i}`]:n&&i});return t.jsxs("a",{ref:c,className:f,href:l,target:s,rel:s?"noopener noreferrer":void 0,...u,children:[r&&t.jsx("span",{className:"link__label",children:r}),o]})});exports.Link=b;
@@ -1 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),a=require("./index-chunk-D921N0ug.js"),F=require("./useGlobalSettings-chunk-DEacV16j.js"),G=({className:i,callback:c,currentPage:l,firstPageUrl:h,firstPageTitle:r="First page",lastPageUrl:j,lastPageTitle:o="Last page",nextPageUrl:C,nextPageTitle:d="Next page",pageCountPreposition:m="of",prevPageUrl:g,prevPageTitle:p="Previous page",totalPages:u})=>{const{prefix:f}=F.useGlobalSettings(),s=`${f}--pagination`,k=a.classnames(i,{[s]:!0}),x=l===0,$=l+1===u,b=a.classnames(i,{[`${s}--first-page`]:!0,[`${s}--link`]:!0,[`${s}--disable`]:x}),v=a.classnames(i,{[`${s}--prev-page`]:!0,[`${s}--link`]:!0,[`${s}--disable`]:x}),N=a.classnames(i,{[`${s}--next-page`]:!0,[`${s}--link`]:!0,[`${s}--disable`]:$}),q=a.classnames(i,{[`${s}--last-page`]:!0,[`${s}--link`]:!0,[`${s}--disable`]:$}),t=n=>{c&&c(n)};return e.jsxs("div",{className:k,children:[e.jsxs("div",{className:`${s}--previous-set`,children:[e.jsx("a",{className:b,onClick:n=>t(n),href:h,title:r,children:r}),e.jsx("a",{className:v,onClick:n=>t(n),href:g,title:p,children:p})]}),e.jsxs("p",{className:`${s}--page`,children:[e.jsx("span",{children:l+1}),e.jsx("span",{children:m}),e.jsx("span",{children:u})]}),e.jsxs("div",{className:`${s}--next-set`,children:[e.jsx("a",{className:N,onClick:n=>t(n),href:C,title:d,children:d}),e.jsx("a",{className:q,onClick:n=>t(n),href:j,title:o,children:o})]})]})},L=G;exports.Pagination=L;
@@ -1 +0,0 @@
1
- "use strict";const i=require("react/jsx-runtime"),r=require("./index-chunk-D921N0ug.js"),o=require("./useGlobalSettings-chunk-DEacV16j.js"),a=({className:e,content:s})=>{const{prefix:t}=o.useGlobalSettings(),n=`${t}--richtext`,c=r.classnames(e,{[n]:!0});return i.jsx("div",{className:c,dangerouslySetInnerHTML:{__html:s}})},l=a;exports.RichText=l;
@@ -1 +0,0 @@
1
- "use strict";const s=require("react/jsx-runtime"),N=require("react"),u=require("./index-chunk-D921N0ug.js"),v=require("./useGlobalSettings-chunk-DEacV16j.js"),C=require("./Button-chunk-B65FgSLG.js"),y=require("./Link-chunk-DuZiglb_.js"),L=require("./LinkList-chunk-AT26ZVEG.js"),E=require("./Profile-chunk-Du8HEAQA.js"),k=require("./List-entry-DRGsrQZi.js"),I=require("./Picture-chunk-CK6tJPnd.js"),M=require("./Status-chunk-3GZXo15N.js"),z=require("./Icon-chunk-QFryHTpy.js"),S=N.forwardRef(({className:p,title:c,theme:r="light",size:e="standard",color:o,intro:$,source:m,titleLevel:x="p"},n)=>{const{prefix:a}=v.useGlobalSettings(),i=`${a}--card`,_=u.classnames(`${i}--wrapper`,p),t=u.classnames(i,`${i}__type__stat`,{[`${i}__size__${String(e)}`]:e,[`${i}__theme__${r}`]:r,[`${i}__color__${o}`]:o});return s.jsx("div",{className:_,ref:n,children:s.jsx("div",{className:t,children:s.jsx("div",{className:`${i}--wrap`,children:s.jsxs("div",{className:`${i}--content`,children:[s.jsx(x,{className:`${i}--title`,children:c}),$&&s.jsx("p",{className:`${i}--intro`,children:$}),m&&s.jsx(y.Link,{className:`${i}--source`,url:m.url,label:m.label})]})})})})}),G=N.forwardRef(({className:p,title:c,size:r="standard",alignment:e,intro:o,link:$,linklist:m,image:x,titleLevel:n="p",eyebrow:a,isVideo:i,theme:_="light"},t)=>{const{prefix:l}=v.useGlobalSettings(),d=`${l}--card`,h=u.classnames(d,p,`${d}__type__multilink`,{[`${d}__align__${e}`]:e,[`${d}__size__${r}`]:r,[`${d}__isvideo`]:i,[`${d}--no-image`]:!x,[`${d}__theme__${_}`]:_});return s.jsxs("div",{className:h,ref:t,children:[$&&s.jsx("a",{className:`${d}--link`,href:$,title:c,children:s.jsx("span",{className:`${d}--link--text`,children:c})}),s.jsxs("div",{className:`${d}--wrap`,children:[x&&s.jsx("div",{className:`${d}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{src:x,alt:c,className:`${d}--picture`})})}),s.jsxs("div",{className:`${d}--content`,children:[a&&s.jsx("p",{className:`${d}--eyebrow`,children:a}),s.jsx(n,{className:`${d}--title`,children:c}),x&&s.jsx("div",{className:`${d}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{src:x,alt:c,className:`${d}--picture`})})}),o&&(N.isValidElement(o)?s.jsx("div",{className:`${d}--intro`,children:o}):s.jsx("p",{className:`${d}--intro`,children:o})),m&&s.jsx(L.LinkList,{...m})]})]})]})}),q=N.forwardRef(({className:p,title:c,theme:r="light",size:e="narrow",date:o,profile:$,link:m,titleLevel:x="p",eyebrow:n},a)=>{const{prefix:i}=v.useGlobalSettings(),_=`${i}--card`,t=u.classnames(`${_}--wrapper`,p),l=u.classnames(_,`${_}__type__text`,{[`${_}__size__${String(e)}`]:e,[`${_}__theme__${r}`]:r});return s.jsx("div",{className:t,ref:a,children:s.jsxs("div",{className:l,children:[s.jsx("a",{className:`${_}--link`,href:m,title:c,children:s.jsx("span",{className:`${_}--link--text`,children:c})}),s.jsx("div",{className:`${_}--wrap`,children:s.jsxs("div",{className:`${_}--content`,children:[n&&s.jsx("p",{className:`${_}--eyebrow`,children:n}),s.jsx(x,{className:`${_}--title`,children:c}),o&&s.jsx("time",{className:`${_}--date`,dateTime:o.unix,children:o.human}),$&&s.jsx(E.Profile,{avatar:$.avatar,description:$.description,link:$.link,name:$.name,role:$.role,theme:r})]})})]})})}),R=N.forwardRef(({className:p,title:c,theme:r="light",size:e="narrow",cornercut:o,intro:$,link:m,cta:x,titleLevel:n="p",eyebrow:a},i)=>{const{prefix:_}=v.useGlobalSettings(),t=`${_}--card`,l=u.classnames(`${t}--wrapper`,p,`${t}--wrapper__type__promo`,`${t}--wrapper__type__promo__size__${e}`),d=u.classnames(t,`${t}__type__promo`,{[`${t}__size__${String(e)}`]:e,[`${t}__theme__${r}`]:r,[`${t}__cornercut`]:o});return s.jsx("div",{className:l,ref:i,children:s.jsxs("div",{className:d,children:[s.jsx("a",{className:`${t}--link`,href:m,title:c,children:s.jsx("span",{className:`${t}--link--text`,children:c})}),s.jsx("div",{className:`${t}--wrap`,children:s.jsxs("div",{className:`${t}--content`,children:[a&&s.jsx("p",{className:`${t}--eyebrow`,children:a}),s.jsx(n,{className:`${t}--title`,children:c}),$&&s.jsx("p",{className:`${t}--intro`,children:$}),(x==null?void 0:x.label)&&s.jsx("div",{className:`${t}--cta`,children:s.jsx(C.Button,{link:{url:x.url,label:x.label},size:"medium",type:"primary"})})]})})]})})}),T=N.forwardRef(({className:p,title:c,theme:r="light",size:e="narrow",date:o,link:$,linklist:m,image:x,titleLevel:n="p",eyebrow:a,isVideo:i},_)=>{const{prefix:t}=v.useGlobalSettings(),l=`${t}--card`,d=u.classnames(l,p,`${l}__type__feature`,{[`${l}__size__${String(e)}`]:e,[`${l}__theme__${r}`]:r,[`${l}__isvideo`]:i,[`${l}__linklist`]:m});return s.jsxs("div",{className:d,ref:_,children:[$&&s.jsx("a",{className:`${l}--link`,href:$,title:c,children:s.jsx("span",{className:`${l}--link--text`,children:c})}),s.jsxs("div",{className:`${l}--wrap`,children:[x&&s.jsx("div",{className:`${l}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{src:x,alt:c,className:`${l}--picture`})})}),s.jsxs("div",{className:`${l}--content`,children:[a&&s.jsx("p",{className:`${l}--eyebrow`,children:a}),s.jsx(n,{className:`${l}--title`,children:c}),o&&s.jsx("time",{className:`${l}--date`,dateTime:o.unix,children:o.human}),m&&s.jsx(L.LinkList,{headline:m.headline,linkgroup:m.linkgroup,theme:r})]})]})]})}),P=N.forwardRef(({className:p,title:c,theme:r="light",size:e="narrow",date:o,details:$,link:m,titleLevel:x="p",eyebrow:n,intro:a,image:i,isVideo:_=!1,linkComponent:t},l)=>{const{prefix:d}=v.useGlobalSettings(),h=`${d}--card`,j=u.classnames(h,`${h}__type__detail`,p,{[`${h}__size__${String(e)}`]:e,[`${h}__theme__${r}`]:r,[`${h}__isvideo`]:_}),b=N.createElement(t||"a",{className:`${h}--link`,href:m,title:c},s.jsx("span",{className:`${h}--link--text`,children:c}));return s.jsxs("div",{className:j,ref:l,children:[m&&b,s.jsxs("div",{className:`${h}--wrap`,children:[i&&s.jsx("div",{className:`${h}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{className:`${h}--picture`,src:i,alt:c})})}),s.jsxs("div",{className:`${h}--content`,children:[n&&s.jsx("p",{className:`${h}--eyebrow`,children:n}),c&&s.jsx(x,{className:`${h}--title`,children:c}),a&&(N.isValidElement(a)?s.jsx("div",{className:`${h}--intro`,children:a}):s.jsx("p",{className:`${h}--intro`,children:a})),o&&s.jsx("time",{className:`${h}--date`,dateTime:o.unix,children:o.human}),$&&s.jsx("p",{className:`${h}--date-extra`,children:$})]})]})]})}),B=N.forwardRef(({title:p,theme:c="light",size:r="narrow",list:e,titleLevel:o="p",className:$},m)=>{const{prefix:x}=v.useGlobalSettings(),n=`${x}--card`,a=u.classnames(n,`${n}__type__factlist`,$,{[`${n}__size__${r}`]:r,[`${n}__theme__${c}`]:c});return s.jsx("div",{className:a,ref:m,children:s.jsx("div",{className:`${n}--wrap`,children:s.jsxs("div",{className:`${n}--content`,children:[p&&s.jsx(o,{className:`${x}--card--title`,children:p}),s.jsx(k.List,{alignment:"default",ordered:"unordered",theme:c,children:e.map(i=>s.jsx(k.List.Item,{children:s.jsx("p",{children:i})},i))})]})})})}),F=N.forwardRef(({eyebrow:p,size:c="narrow",image:r,dataset:e,columns:o="one",className:$},m)=>{var t;const{prefix:x}=v.useGlobalSettings(),n=c==="narrow"?"one":o,a=`${x}--card`,i=u.classnames(a,`${a}__type__data`,$,{[`${a}__size__${String(c)}`]:c,[`${a}__type__data__columns__${n}`]:n}),_=u.classnames(`${a}--content`,{[`${a}--content__with-image`]:r,[`${a}--content__no-image-with-links`]:!r&&(e==null?void 0:e.links),[`${a}--content__default`]:!r&&!(e!=null&&e.links)});return s.jsx("div",{className:i,ref:m,children:s.jsxs("div",{className:`${a}--wrap`,children:[!r&&p&&s.jsx("div",{className:`${a}--eyebrow`,children:p}),s.jsxs("div",{className:_,children:[r&&s.jsxs("div",{className:`${a}--area--image`,children:[p&&s.jsx("div",{className:`${a}--eyebrow`,children:p}),s.jsx("div",{className:`${a}--image`,children:s.jsx("picture",{children:s.jsx("img",{className:`${a}--picture`,src:r,alt:p})})})]}),(t=e==null?void 0:e.content)==null?void 0:t.items.map((l,d)=>s.jsxs("div",{className:`${a}--area--content`,children:[s.jsx("p",{className:`${a}__type__data--content-label`,children:l.label}),s.jsx("p",{className:`${a}__type__data--content-copy`,children:l.copy})]},d)),(e==null?void 0:e.files)&&s.jsx("div",{className:`${a}--area--files`,children:s.jsxs("div",{className:`${a}__type__data--content-files`,children:[s.jsx("p",{className:`${a}__type__data--content-label`,children:e.files.headline}),e.files.items.map((l,d)=>s.jsx(C.Button,{link:{url:l.url,label:l.label,target:l.target||"_self"},size:"small"},d))]})}),(e==null?void 0:e.cta)&&s.jsx("div",{className:`${a}--area--cta`,children:s.jsxs("div",{className:`${a}__type__data--content-cta`,children:[s.jsx("p",{className:`${a}__type__data--content-label`,children:e.cta.headline}),e.cta.items.map(l=>s.jsx(C.Button,{type:"secondary",size:"small",link:{url:l.url,label:l.label,target:l.target}},l.label))]})}),(e==null?void 0:e.links)&&s.jsx("div",{className:`${a}--area--links`,children:s.jsxs("div",{className:`${a}__type__data--content-links`,children:[s.jsx("p",{className:`${a}__type__data--content-label`,children:e.links.headline}),s.jsx("div",{className:`${a}__type__data--content-links-list`,children:e.links.items.map(l=>s.jsx(N.Fragment,{children:s.jsx(y.Link,{url:l.url,label:l.label,className:`${a}__type__data--content-link`})},l.label+l.url))})]})})]})]})})}),V={stat:S,multilink:G,text:q,promo:R,feature:T,detail:P,factlist:B,data:F},A=N.forwardRef(({type:p,group:c,cardCount:r="one",cta:e,collapsed:o=!1},$)=>{const m=V[p],{prefix:x}=v.useGlobalSettings(),n=`${x}--cardgroup`,a=u.classnames(n,`${n}__count__${r}`,{[`${n}__collapsed`]:o});return s.jsxs("div",{className:a,ref:$,children:[s.jsx("div",{className:`${n}--inner`,children:c.map((i,_)=>s.jsx(m,{...i},_))}),e&&s.jsx("div",{className:`${n}--button-wrap`,children:s.jsx(C.Button,{link:{url:e.url,label:e.label},type:"secondary",size:"medium"})})]})}),H=N.forwardRef(({className:p,theme:c="light",titleLevel:r="p",size:e="narrow",link:o,linkComponent:$,title:m,isVideo:x=!1,image:n,status:a,eyebrow:i,content:_,cta:t},l)=>{var g;const{prefix:d}=v.useGlobalSettings(),h=c==="dark"?"var(--ilo-color-white)":"var(--ilo-color-gray-accessible)",j=`${d}--card`,b=u.classnames(j,`${j}__type__score`,{[`${j}__theme__${c}`]:c,[`${j}__size__${e}`]:e,[`${j}__isvideo`]:x}),D=N.createElement($||"a",{href:o,title:m,className:`${j}--link`},s.jsx("span",{className:`${j}--link--text`,children:m}));return s.jsxs("div",{className:u.classnames(b,p),ref:l,children:[D,s.jsxs("div",{className:`${j}--wrap`,children:[n&&e!=="simple"&&s.jsx("div",{className:`${j}--image--wrapper`,children:s.jsx(I.Picture,{...n})}),s.jsxs("div",{className:`${j}--content`,children:[a&&s.jsx(M.Status,{content:a.content,statusType:a.statusType}),i&&e!=="simple"&&s.jsx("p",{className:`${j}--eyebrow`,children:i}),m&&s.jsx(r,{className:`${j}--title`,children:m}),_&&s.jsx("div",{className:`${j}--area--content`,children:(g=_.items)==null?void 0:g.map((f,w)=>s.jsxs("div",{className:`${j}--content--item`,children:[s.jsx(z.Icon,{name:f.icon,size:20,color:h}),s.jsx("span",{children:f.label})]},w))}),t&&s.jsx("div",{className:`${j}--area--cta`,children:t.items.map((f,w)=>s.jsx("div",{className:`${j}--cta`,children:f},w))})]})]})]})});exports.CardGroup=A;exports.DataCard=F;exports.DetailCard=P;exports.FactListCard=B;exports.FeatureCard=T;exports.MultiLinkCard=G;exports.PromoCard=R;exports.ScoreCard=H;exports.StatCard=S;exports.TextCard=q;
@@ -1,126 +0,0 @@
1
- import { jsx as t, jsxs as C } from "react/jsx-runtime";
2
- import { forwardRef as E, useId as k, useState as y, useRef as f, useEffect as R } from "react";
3
- import { c as h } from "./index-chunk-CY3PQDr4.js";
4
- import { u as w } from "./useGlobalSettings-chunk-Bu2lRvQa.js";
5
- import { C as L } from "./ContextMenu-chunk-Dk-ifDZI.js";
6
- const j = ({
7
- component: o,
8
- componentProps: c,
9
- first: u,
10
- label: l,
11
- url: e
12
- }) => {
13
- const { prefix: s } = w(), r = /* @__PURE__ */ t("span", { className: `${s}--breadcrumb--link--label`, children: l }), d = {
14
- href: e,
15
- className: `${s}--breadcrumb--link`,
16
- "aria-label": l
17
- };
18
- return o ? /* @__PURE__ */ t(o, { ...d, ...c, children: !u && r }) : /* @__PURE__ */ t("a", { ...d, children: !u && r });
19
- }, g = E(
20
- ({ url: o, label: c, className: u, first: l, ...e }, s) => {
21
- const { prefix: r } = w();
22
- return /* @__PURE__ */ t(
23
- "li",
24
- {
25
- className: h({
26
- [`${r}--breadcrumb--item`]: !0,
27
- [`${r}--breadcrumb--item__first`]: l,
28
- className: u
29
- }),
30
- ref: s,
31
- children: /* @__PURE__ */ t(j, { label: c, url: o, first: l, ...e })
32
- }
33
- );
34
- }
35
- ), G = E(
36
- ({ className: o, links: c, buttonLabel: u }, l) => {
37
- const { prefix: e } = w(), s = k(), [r, d] = y(!1), [I, O] = y(!1), N = f(0), m = f(null), a = f(null), v = f(null);
38
- if (R(() => {
39
- N.current = v.current.offsetWidth;
40
- }, []), R(() => {
41
- function n(i) {
42
- m.current && a.current && !m.current.contains(i.target) && !a.current.contains(i.target) && d(!1);
43
- }
44
- const p = new ResizeObserver((i) => {
45
- const x = i.at(0), b = N.current >= x.contentRect.width / 1.5;
46
- O((_) => _ !== b ? b : _);
47
- });
48
- return document.addEventListener("mousedown", n), p.observe(document.body), () => {
49
- document.removeEventListener("mousedown", n), p.disconnect();
50
- };
51
- }, [s, e]), R(() => {
52
- if (!(!m.current || !a.current) && r) {
53
- const n = m.current.getBoundingClientRect(), i = a.current.firstChild.getBoundingClientRect(), x = n.left + n.width / 2 - i.width / 2 - 5, b = n.bottom + 16;
54
- a.current.style.left = `${x}px`, a.current.style.top = `${b}px`;
55
- }
56
- }, [r]), c.length < 2)
57
- throw new Error(
58
- `Breadcrumb component requires at least two links, but received ${c.length}`
59
- );
60
- const B = c.at(0), $ = c.slice(1, -1), M = c.at(-1);
61
- return /* @__PURE__ */ C("nav", { className: h(`${e}--breadcrumb`, o), ref: l, children: [
62
- /* @__PURE__ */ t("div", { className: `${e}--breadcrumb--inner`, children: /* @__PURE__ */ C(
63
- "ol",
64
- {
65
- className: `${e}--breadcrumb--items`,
66
- id: `${e}--breadcrumb--items-${s}`,
67
- ref: v,
68
- children: [
69
- /* @__PURE__ */ t(
70
- g,
71
- {
72
- first: !0,
73
- url: B.url,
74
- label: B.label
75
- }
76
- ),
77
- $.length > 0 && /* @__PURE__ */ C(
78
- "li",
79
- {
80
- className: h(`${e}--breadcrumb--context`, {
81
- [`${e}--breadcrumb--context__collapse`]: I
82
- }),
83
- children: [
84
- /* @__PURE__ */ t("ol", { className: `${e}--breadcrumb--items`, children: $.map((n) => /* @__PURE__ */ t(
85
- g,
86
- {
87
- url: n.url,
88
- label: n.label
89
- },
90
- `${n.label}-${n.url}`
91
- )) }),
92
- /* @__PURE__ */ t(
93
- "button",
94
- {
95
- onClick: () => d(!r),
96
- "aria-label": u,
97
- "aria-expanded": r,
98
- "aria-controls": `${e}--breadcrumb--menu-${s}`,
99
- className: `${e}--breadcrumb--context--button`,
100
- ref: m
101
- }
102
- )
103
- ]
104
- }
105
- ),
106
- /* @__PURE__ */ t(g, { url: M.url, label: M.label })
107
- ]
108
- }
109
- ) }),
110
- /* @__PURE__ */ t(
111
- "div",
112
- {
113
- className: h(`${e}--breadcrumb--context--menu`, {
114
- [`${e}--breadcrumb--context--menu__visible`]: r
115
- }),
116
- id: `${e}--breadcrumb--menu-${s}`,
117
- ref: a,
118
- children: /* @__PURE__ */ t(L, { links: $ })
119
- }
120
- )
121
- ] });
122
- }
123
- );
124
- export {
125
- G as B
126
- };
@@ -1,4 +0,0 @@
1
- import { B as e } from "./Breadcrumb-chunk-DxH8m_ti.js";
2
- export {
3
- e as Breadcrumb
4
- };
@@ -1,4 +0,0 @@
1
- import { B as r } from "./Button-chunk-DG7cL6tj.js";
2
- export {
3
- r as Button
4
- };
@@ -1,4 +0,0 @@
1
- import { C as l } from "./Callout-chunk-D3zivwvj.js";
2
- export {
3
- l as Callout
4
- };
@@ -1,4 +0,0 @@
1
- import { L as a } from "./DatePicker-chunk-BUOrwC0Y.js";
2
- export {
3
- a as DatePicker
4
- };
@@ -1,4 +0,0 @@
1
- import { L as p } from "./Dropdown-chunk-fpN7RweM.js";
2
- export {
3
- p as Dropdown
4
- };
@@ -1,57 +0,0 @@
1
- import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
- import { createContext as j, useState as S, useContext as T } from "react";
3
- import { c } from "./index-chunk-CY3PQDr4.js";
4
- import { u as k } from "./useGlobalSettings-chunk-Bu2lRvQa.js";
5
- import { T as G } from "./Tooltip-chunk-BIPZucx0.js";
6
- const i = j({
7
- hasError: !1,
8
- setHasError: (t) => t
9
- }), A = () => T(i), M = ({
10
- children: t,
11
- className: d,
12
- legend: a,
13
- helper: o,
14
- tooltip: n,
15
- errorMessage: m,
16
- disabled: p = !1,
17
- wrap: $ = "nowrap",
18
- direction: f = "column",
19
- ...u
20
- }) => {
21
- const { prefix: h } = k(), [e, C] = S(!1), s = `${h}--fieldset`, x = `${s}--wrap__${$}`, _ = `${s}--direction__${f}`, E = `${s}--helper`, N = `${s}__error`, b = `${s}__disabled`, w = c(
22
- d,
23
- s,
24
- x,
25
- _,
26
- {
27
- [b]: p
28
- }
29
- ), F = c(E, {
30
- [N]: e
31
- }), g = {
32
- hasError: e,
33
- setHasError: C
34
- }, v = !!o || e, H = e ? m : o;
35
- return /* @__PURE__ */ l("fieldset", { className: w, ...u, children: [
36
- a || o ? /* @__PURE__ */ l("div", { className: `${s}--legend-wrapper`, children: [
37
- a && /* @__PURE__ */ l("legend", { className: `${s}--legend`, children: [
38
- a,
39
- n && /* @__PURE__ */ r(
40
- G,
41
- {
42
- className: `${s}--legend--tooltip`,
43
- icon: !0,
44
- label: n,
45
- theme: "dark"
46
- }
47
- )
48
- ] }),
49
- v && /* @__PURE__ */ r("span", { className: F, children: H })
50
- ] }) : null,
51
- /* @__PURE__ */ r("div", { className: `${s}--elements`, children: /* @__PURE__ */ r(i.Provider, { value: g, children: t }) })
52
- ] });
53
- }, B = M;
54
- export {
55
- B as F,
56
- A as u
57
- };
@@ -1,4 +0,0 @@
1
- import { F as r } from "./Fieldset-chunk-BYqbIcGY.js";
2
- export {
3
- r as Fieldset
4
- };
@@ -1,4 +0,0 @@
1
- import { L as e } from "./FileUpload-chunk-Dw6vDrtN.js";
2
- export {
3
- e as FileUpload
4
- };
@@ -1,4 +0,0 @@
1
- import { F as e } from "./Footer-chunk-BI6r73Bm.js";
2
- export {
3
- e as Footer
4
- };
@@ -1,13 +0,0 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import { forwardRef as n } from "react";
3
- import { u as l } from "./useGlobalSettings-chunk-Bu2lRvQa.js";
4
- import { c as i } from "./index-chunk-CY3PQDr4.js";
5
- const p = n(
6
- ({ children: o, theme: r = "light", ...m }, t) => {
7
- const { prefix: e } = l(), s = `${e}--form`, a = `${s}__theme__${r}`, f = i(s, a);
8
- return /* @__PURE__ */ c("form", { ref: t, className: f, ...m, children: o });
9
- }
10
- ), x = p;
11
- export {
12
- x as F
13
- };
@@ -1,77 +0,0 @@
1
- import { jsx as a, jsxs as _ } from "react/jsx-runtime";
2
- import { c as u } from "./index-chunk-CY3PQDr4.js";
3
- import { createContext as U, useMemo as V, useState as k, useEffect as E, useContext as G } from "react";
4
- import { u as H } from "./useGlobalSettings-chunk-Bu2lRvQa.js";
5
- import { T as R } from "./Tooltip-chunk-BIPZucx0.js";
6
- let p = (s = 21) => crypto.getRandomValues(new Uint8Array(s)).reduce((e, o) => (o &= 63, o < 36 ? e += o.toString(36) : o < 62 ? e += (o - 26).toString(36).toUpperCase() : o > 62 ? e += "-" : e += "_", e), "");
7
- function q(s = "", { tooltip: e, helper: o, errorMessage: r } = {}) {
8
- return {
9
- tooltipId: e && `${s}--tooltip--${p()}`,
10
- helperId: o && `${s}--helper--${p()}`,
11
- errorId: r && `${s}--error--${p()}`
12
- };
13
- }
14
- function J(s, e) {
15
- const { tooltipId: o, helperId: r, errorId: n } = s, l = u(o, {
16
- [`${r}`]: !e,
17
- [`${n}`]: e
18
- });
19
- if (!(!l || l === "undefined"))
20
- return l;
21
- }
22
- const h = U({}), Y = () => G(h), K = ({
23
- children: s,
24
- className: e,
25
- label: o,
26
- helper: r,
27
- errorMessage: n,
28
- tooltip: l,
29
- style: b,
30
- error: c,
31
- disabled: I,
32
- fieldId: x,
33
- labelSize: F = "medium",
34
- labelPlacement: v = "top"
35
- }) => {
36
- const { prefix: B } = H(), t = `${B}--form-control`, N = V(
37
- () => q(t, { helper: r, errorMessage: n, tooltip: l }),
38
- [t, r, n, l]
39
- ), { tooltipId: i, helperId: d, errorId: m } = N, [S, g] = k(
40
- void 0
41
- );
42
- E(() => {
43
- g(
44
- J({ tooltipId: i, helperId: d, errorId: m }, c)
45
- );
46
- }, [i, d, m, c]);
47
- const A = {
48
- ariaDescribedBy: S
49
- }, D = `${t}__error`, w = `${t}__disabled`, y = `${t}__label-placement__${v}`, j = u(
50
- t,
51
- e,
52
- y,
53
- [{ [D]: c }, { [w]: I }]
54
- ), $ = `${t}--label`, z = `${$}__size__${F}`, P = u($, z), f = `${t}--helper`, C = !!c && !!n, T = !C && !!r;
55
- return /* @__PURE__ */ a(h.Provider, { value: A, children: /* @__PURE__ */ _("div", { className: j, style: b, children: [
56
- /* @__PURE__ */ _("span", { className: P, children: [
57
- /* @__PURE__ */ a("label", { htmlFor: x, children: o }),
58
- l && /* @__PURE__ */ a(
59
- R,
60
- {
61
- id: i,
62
- className: `${t}--legend--tooltip`,
63
- icon: !0,
64
- label: l,
65
- theme: "dark"
66
- }
67
- )
68
- ] }),
69
- s,
70
- T && /* @__PURE__ */ a("span", { id: d, className: f, children: r }),
71
- C && /* @__PURE__ */ a("span", { id: m, className: f, "aria-live": "assertive", children: n })
72
- ] }) });
73
- }, Z = K;
74
- export {
75
- Z as F,
76
- Y as u
77
- };
@@ -1,4 +0,0 @@
1
- import { F as m } from "./FormControl-chunk-k6iX88xc.js";
2
- export {
3
- m as FormControl
4
- };
@@ -1,4 +0,0 @@
1
- import { H as e } from "./Hero-chunk-CqARzKwt.js";
2
- export {
3
- e as Hero
4
- };
@@ -1,4 +0,0 @@
1
- import { I as r } from "./Input-chunk-CCDILCqo.js";
2
- export {
3
- r as Input
4
- };
@@ -1,33 +0,0 @@
1
- import { jsxs as a, jsx as c } from "react/jsx-runtime";
2
- import { forwardRef as d } from "react";
3
- import { c as m } from "./index-chunk-CY3PQDr4.js";
4
- import { u as k } from "./useGlobalSettings-chunk-Bu2lRvQa.js";
5
- const j = d(
6
- ({ children: e, className: r, label: n, target: i, theme: s = "light", url: t, ...l }, f) => {
7
- const { prefix: p } = k();
8
- let o = `${p}--link`;
9
- r != null && r.includes("button") && (o = "");
10
- const u = m(r, {
11
- [o]: !0,
12
- [`${o}--${s}`]: o && s
13
- });
14
- return /* @__PURE__ */ a(
15
- "a",
16
- {
17
- ref: f,
18
- className: u,
19
- href: t,
20
- target: i,
21
- rel: i ? "noopener noreferrer" : void 0,
22
- ...l,
23
- children: [
24
- n && /* @__PURE__ */ c("span", { className: "link__label", children: n }),
25
- e
26
- ]
27
- }
28
- );
29
- }
30
- );
31
- export {
32
- j as L
33
- };
@@ -1,4 +0,0 @@
1
- import { L } from "./Link-chunk-DNHgQ3lF.js";
2
- export {
3
- L as Link
4
- };
@@ -1,4 +0,0 @@
1
- import { N as t } from "./Notification-chunk-CQvSf6dK.js";
2
- export {
3
- t as Notification
4
- };
@@ -1,4 +0,0 @@
1
- import { L as m } from "./NumberPicker-chunk-CaNDffBy.js";
2
- export {
3
- m as NumberPicker
4
- };
@@ -1,4 +0,0 @@
1
- import { P as i } from "./Pagination-chunk-B5541Ksz.js";
2
- export {
3
- i as Pagination
4
- };
@@ -1,4 +0,0 @@
1
- import { R as r } from "./ReadMore-chunk-pjNnS8Ji.js";
2
- export {
3
- r as ReadMore
4
- };