@ama-pt/agora-design-system 3.7.0 → 4.0.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 (105) hide show
  1. package/README.md +33 -76
  2. package/artifacts/dist/index.css +1 -0
  3. package/artifacts/dist/index.mjs +6673 -6956
  4. package/artifacts/dist/index.mjs.map +1 -1
  5. package/artifacts/dist/index.umd.js +1 -5
  6. package/artifacts/dist/index.umd.js.map +1 -1
  7. package/artifacts/dist/{solid-hand-heart-XS9tzo8e.mjs → solid-hand-heart-CmuM78yB.mjs} +4 -4
  8. package/artifacts/dist/{solid-hand-heart-XS9tzo8e.mjs.map → solid-hand-heart-CmuM78yB.mjs.map} +1 -1
  9. package/artifacts/dist/types/components/button/button.d.ts +1 -1
  10. package/artifacts/dist/types/components/cards/card-general/card-general.d.ts +23 -2
  11. package/artifacts/dist/types/components/cards/card-general/variants.d.ts +3 -0
  12. package/artifacts/dist/types/components/cards/card-general-v2/body-section/body-section-container.d.ts +7 -0
  13. package/artifacts/dist/types/components/cards/card-general-v2/card-general.d.ts +28 -0
  14. package/artifacts/dist/types/components/cards/card-general-v2/footer-section/footer-section-container.d.ts +7 -0
  15. package/artifacts/dist/types/components/cards/card-general-v2/header-section/header-section-container.d.ts +7 -0
  16. package/artifacts/dist/types/components/cards/card-general-v2/helpers.d.ts +32 -0
  17. package/artifacts/dist/types/components/cards/card-general-v2/image-section/image-section-container.d.ts +10 -0
  18. package/artifacts/dist/types/components/cards/card-general-v2/index.d.ts +31 -0
  19. package/artifacts/dist/types/components/cards/card-general-v2/shared/card-anchor/card-anchor.d.ts +6 -0
  20. package/artifacts/dist/types/components/cards/card-general-v2/shared/card-category/card-category.d.ts +6 -0
  21. package/artifacts/dist/types/components/cards/card-general-v2/shared/card-description/card-description.d.ts +6 -0
  22. package/artifacts/dist/types/components/cards/card-general-v2/shared/card-icon/card-icon.d.ts +8 -0
  23. package/artifacts/dist/types/components/cards/card-general-v2/shared/card-logo/card-logo.d.ts +8 -0
  24. package/artifacts/dist/types/components/cards/card-general-v2/shared/card-pills/card-pills.d.ts +14 -0
  25. package/artifacts/dist/types/components/cards/card-general-v2/shared/card-status/card-status.d.ts +14 -0
  26. package/artifacts/dist/types/components/cards/card-general-v2/shared/card-subtitle/card-subtitle.d.ts +6 -0
  27. package/artifacts/dist/types/components/cards/card-general-v2/shared/card-title/card-title.d.ts +10 -0
  28. package/artifacts/dist/types/components/cards/card-general-v2/shared/card-topics/card-topics.d.ts +9 -0
  29. package/artifacts/dist/types/components/cards/card-general-v2/variants.d.ts +20 -0
  30. package/artifacts/dist/types/components/cards/index.d.ts +2 -6
  31. package/artifacts/dist/types/components/header/general-bar/ecosystem-panel/ecosystem-panel-anchor.d.ts +5 -0
  32. package/artifacts/dist/types/components/header/general-bar/ecosystem-panel/ecosystem-panel-go-back.d.ts +5 -0
  33. package/artifacts/dist/types/components/header/general-bar/ecosystem-panel/ecosystem-panel-section-title.d.ts +5 -0
  34. package/artifacts/dist/types/components/header/general-bar/ecosystem-panel/ecosystem-panel-short-description.d.ts +5 -0
  35. package/artifacts/dist/types/components/header/general-bar/ecosystem-panel/ecosystem-panel-title.d.ts +5 -0
  36. package/artifacts/dist/types/components/header/general-bar/ecosystem-panel/ecosystem-panel.d.ts +5 -0
  37. package/artifacts/dist/types/components/header/header.d.ts +2 -2
  38. package/artifacts/dist/types/components/header/index.d.ts +40 -12
  39. package/artifacts/dist/types/components/header/internals/context/data-context/header-data-context.d.ts +7 -5
  40. package/artifacts/dist/types/components/header/internals/context/data-context/utils/areas-utils.d.ts +4 -3
  41. package/artifacts/dist/types/components/header/internals/context/data-context/utils/ecosystem-panel-utils.d.ts +15 -0
  42. package/artifacts/dist/types/components/header/internals/context/data-context/utils/navigation-bar-utils.d.ts +10 -0
  43. package/artifacts/dist/types/components/header/internals/context/data-context/utils/navigation-utils.d.ts +2 -2
  44. package/artifacts/dist/types/components/header/internals/context/external-context/header-external-controller.d.ts +2 -1
  45. package/artifacts/dist/types/components/header/internals/context/menu-context/header-menu-context.d.ts +2 -1
  46. package/artifacts/dist/types/components/header/internals/context/menu-context/menu-type.enum.d.ts +2 -1
  47. package/artifacts/dist/types/components/header/internals/general-bar/ecosystem-panel/internal-ecosystem-panel-anchor.d.ts +6 -0
  48. package/artifacts/dist/types/components/header/internals/general-bar/ecosystem-panel/internal-ecosystem-panel-go-back.d.ts +6 -0
  49. package/artifacts/dist/types/components/header/internals/general-bar/ecosystem-panel/internal-ecosystem-panel-section-title.d.ts +6 -0
  50. package/artifacts/dist/types/components/header/internals/general-bar/ecosystem-panel/internal-ecosystem-panel-short-description.d.ts +6 -0
  51. package/artifacts/dist/types/components/header/internals/general-bar/ecosystem-panel/internal-ecosystem-panel-title.d.ts +6 -0
  52. package/artifacts/dist/types/components/header/internals/general-bar/ecosystem-panel/internal-ecosystem-panel.d.ts +8 -0
  53. package/artifacts/dist/types/components/header/internals/navigation-bar/helper.d.ts +9 -0
  54. package/artifacts/dist/types/components/header/internals/navigation-bar/navigation-area/internal-navigation-area.d.ts +11 -0
  55. package/artifacts/dist/types/components/header/internals/navigation-bar/navigation-link/internal-navigation-link.d.ts +8 -0
  56. package/artifacts/dist/types/components/header/internals/navigation-bar/navigation-modal/internal-modal-content.d.ts +1 -1
  57. package/artifacts/dist/types/components/header/internals/navigation-bar/navigation-root/internal-navigation-root.d.ts +20 -0
  58. package/artifacts/dist/types/components/header/navigation-bar/navigation-area.d.ts +5 -0
  59. package/artifacts/dist/types/components/header/navigation-bar/navigation-bar.d.ts +3 -1
  60. package/artifacts/dist/types/components/header/navigation-bar/navigation-link.d.ts +2 -27
  61. package/artifacts/dist/types/components/header/navigation-bar/navigation-section.d.ts +5 -0
  62. package/artifacts/dist/types/components/input-search/input-search.d.ts +15 -1
  63. package/artifacts/dist/types/components/pill/pill.d.ts +2 -2
  64. package/artifacts/dist/types/components/progress-bar/index.d.ts +1 -1
  65. package/artifacts/dist/types/components/progress-bar/progress-bar.d.ts +37 -1
  66. package/artifacts/dist/types/components/progress-bar-group/progress-bar-group.d.ts +6 -1
  67. package/artifacts/dist/types/components/quiz/quiz-item-summary/quiz-item-summary.d.ts +0 -5
  68. package/artifacts/dist/types/components/timelines/timeline-horizontal/timeline-horizontal.d.ts +4 -0
  69. package/artifacts/dist/types/components/timelines/timeline-vertical/timeline-vertical.d.ts +4 -0
  70. package/artifacts/dist/types/components/toggle/toggle.d.ts +13 -1
  71. package/artifacts/dist/types/components/tooltip/tooltip.d.ts +8 -0
  72. package/artifacts/dist/types/configs/tailwind-config.d.ts +4 -385
  73. package/artifacts/dist/types/hooks/use-breakpoints-to-number.d.ts +3 -3
  74. package/artifacts/dist/types/index.d.ts +11 -1
  75. package/package.json +19 -8
  76. package/src/styles/theme.css +418 -0
  77. package/artifacts/dist/style.css +0 -1
  78. package/artifacts/dist/tailwind.css +0 -43719
  79. package/artifacts/dist/types/components/cards/card-article/card-article.d.ts +0 -49
  80. package/artifacts/dist/types/components/cards/card-article/index.d.ts +0 -2
  81. package/artifacts/dist/types/components/cards/card-collection/card-collection.d.ts +0 -27
  82. package/artifacts/dist/types/components/cards/card-collection/index.d.ts +0 -2
  83. package/artifacts/dist/types/components/cards/card-emphasize/card-emphasize.d.ts +0 -31
  84. package/artifacts/dist/types/components/cards/card-emphasize/index.d.ts +0 -2
  85. package/artifacts/dist/types/components/cards/card-highlight-single/card-highlight-single.d.ts +0 -23
  86. package/artifacts/dist/types/components/cards/card-highlight-single/index.d.ts +0 -2
  87. package/artifacts/dist/types/components/cards/card-single/card-single.d.ts +0 -40
  88. package/artifacts/dist/types/components/cards/card-single/index.d.ts +0 -2
  89. package/artifacts/dist/types/components/cards/card-topic/card-topic.d.ts +0 -56
  90. package/artifacts/dist/types/components/cards/card-topic/index.d.ts +0 -2
  91. package/artifacts/dist/types/components/header/general-bar/direct-link/direct-link-anchor.d.ts +0 -5
  92. package/artifacts/dist/types/components/header/general-bar/direct-link/direct-link-go-back.d.ts +0 -5
  93. package/artifacts/dist/types/components/header/general-bar/direct-link/direct-link-section-title.d.ts +0 -5
  94. package/artifacts/dist/types/components/header/general-bar/direct-link/direct-link-short-description.d.ts +0 -5
  95. package/artifacts/dist/types/components/header/general-bar/direct-link/direct-link-title.d.ts +0 -5
  96. package/artifacts/dist/types/components/header/general-bar/direct-link/direct-link.d.ts +0 -5
  97. package/artifacts/dist/types/components/header/internals/context/data-context/utils/direct-link-utils.d.ts +0 -15
  98. package/artifacts/dist/types/components/header/internals/general-bar/areas/internal-area.d.ts +0 -6
  99. package/artifacts/dist/types/components/header/internals/general-bar/areas/internal-areas.d.ts +0 -5
  100. package/artifacts/dist/types/components/header/internals/general-bar/direct-link/internal-direct-link-anchor.d.ts +0 -6
  101. package/artifacts/dist/types/components/header/internals/general-bar/direct-link/internal-direct-link-go-back.d.ts +0 -6
  102. package/artifacts/dist/types/components/header/internals/general-bar/direct-link/internal-direct-link-section-title.d.ts +0 -6
  103. package/artifacts/dist/types/components/header/internals/general-bar/direct-link/internal-direct-link-short-description.d.ts +0 -6
  104. package/artifacts/dist/types/components/header/internals/general-bar/direct-link/internal-direct-link-title.d.ts +0 -6
  105. package/artifacts/dist/types/components/header/internals/general-bar/direct-link/internal-direct-link.d.ts +0 -8
@@ -18,13 +18,13 @@ const o = (t) => {
18
18
  d: "M20.2289 3.79567C19.9846 3.54342 19.6944 3.34331 19.3751 3.20679C19.0558 3.07027 18.7136 3 18.3679 3C18.0223 3 17.6801 3.07027 17.3607 3.20679C17.0414 3.34331 16.7513 3.54342 16.507 3.79567L15.9999 4.31893L15.4928 3.79567C14.9992 3.28638 14.3298 3.00026 13.6318 3.00026C12.9338 3.00026 12.2644 3.28638 11.7708 3.79567C11.2773 4.30495 11 4.99569 11 5.71593C11 6.43617 11.2773 7.12692 11.7708 7.6362L12.2779 8.15946L15.9999 12L19.7218 8.15946L20.2289 7.6362C20.4734 7.38407 20.6673 7.08471 20.7996 6.75523C20.9319 6.42574 21 6.07258 21 5.71593C21 5.35928 20.9319 5.00613 20.7996 4.67664C20.6673 4.34716 20.4734 4.0478 20.2289 3.79567Z",
19
19
  fill: "#034AD8",
20
20
  stroke: "#034AD8",
21
- "stroke-width": "2",
22
- "stroke-linecap": "round",
23
- "stroke-linejoin": "round"
21
+ strokeWidth: "2",
22
+ strokeLinecap: "round",
23
+ strokeLinejoin: "round"
24
24
  }
25
25
  ));
26
26
  };
27
27
  export {
28
28
  o as default
29
29
  };
30
- //# sourceMappingURL=solid-hand-heart-XS9tzo8e.mjs.map
30
+ //# sourceMappingURL=solid-hand-heart-CmuM78yB.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"solid-hand-heart-XS9tzo8e.mjs","sources":["../../src/components/icon/assets/solid/solid-hand-heart.tsx"],"sourcesContent":["import React from 'react';\n\nimport { SVGIconProps } from '@/models/';\n\nexport default (props: SVGIconProps) => {\n const newProps = { ...props };\n delete newProps.alt;\n delete newProps.title;\n\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" {...newProps} role=\"img\">\n {props.title && <title>{props.title}</title>}\n <path\n fill=\"none\"\n stroke=\"var(--color-primary-600)\"\n strokeWidth={2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n d=\"M10.9879 14.0002H12.9852C13.5149 14.0002 14.023 13.7895 14.3975 13.4145C14.7721 13.0394 14.9825 12.5307 14.9825 12.0003C14.9825 11.4699 14.7721 10.9612 14.3975 10.5861C14.023 10.2111 13.5149 10.0004 12.9852 10.0004H9.98925C9.39006 10.0004 8.89073 10.2004 8.59113 10.6004L2.99866 16.0002M14.4333 13.3903L19.4765 8.69642C20.1715 8.00045 20.9745 6.85049 20.9745 5.75053C20.9746 5.1939 20.806 4.65033 20.491 4.19169C20.176 3.73305 19.7294 3.38092 19.2103 3.18186C18.6912 2.9828 18.1239 2.94617 17.5836 3.07682C17.0432 3.20748 16.5551 3.49926 16.1839 3.91359C16.1581 3.94165 16.1268 3.96404 16.0919 3.97936C16.057 3.99468 16.0193 4.00259 15.9812 4.00259C15.9431 4.00259 15.9054 3.99468 15.8705 3.97936C15.8356 3.96404 15.8043 3.94165 15.7785 3.91359C15.4072 3.49926 14.9192 3.20748 14.3788 3.07682C13.8385 2.94617 13.2712 2.9828 12.7521 3.18186C12.2329 3.38092 11.7864 3.73305 11.4714 4.19169C11.1564 4.65033 10.9878 5.1939 10.9879 5.75053C10.9879 6.95048 11.7888 7.99845 12.4859 8.69642L15.9812 11.9503M2 15.0002L7.99194 21M6.99328 20L8.59113 18.6001C8.89073 18.2001 9.39006 18.0001 9.98925 18.0001H13.9839C15.0824 18.0001 16.0811 17.6001 16.7801 16.8001L21.3739 12.4003C21.7593 12.0356 21.9842 11.5326 21.9992 11.0019C22.0142 10.4712 21.818 9.95627 21.4538 9.57039C21.0896 9.18452 20.5873 8.95931 20.0573 8.9443C19.5273 8.9293 19.013 9.12574 18.6276 9.4904\"\n />\n <path\n xmlns=\"http://www.w3.org/2000/svg\"\n d=\"M20.2289 3.79567C19.9846 3.54342 19.6944 3.34331 19.3751 3.20679C19.0558 3.07027 18.7136 3 18.3679 3C18.0223 3 17.6801 3.07027 17.3607 3.20679C17.0414 3.34331 16.7513 3.54342 16.507 3.79567L15.9999 4.31893L15.4928 3.79567C14.9992 3.28638 14.3298 3.00026 13.6318 3.00026C12.9338 3.00026 12.2644 3.28638 11.7708 3.79567C11.2773 4.30495 11 4.99569 11 5.71593C11 6.43617 11.2773 7.12692 11.7708 7.6362L12.2779 8.15946L15.9999 12L19.7218 8.15946L20.2289 7.6362C20.4734 7.38407 20.6673 7.08471 20.7996 6.75523C20.9319 6.42574 21 6.07258 21 5.71593C21 5.35928 20.9319 5.00613 20.7996 4.67664C20.6673 4.34716 20.4734 4.0478 20.2289 3.79567Z\"\n fill=\"#034AD8\"\n stroke=\"#034AD8\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n );\n};\n"],"names":["solidHandHeart","props","newProps","React"],"mappings":";AAIA,MAAAA,IAAe,CAACC,MAAwB;AACtC,QAAMC,IAAW,EAAE,GAAGD,EAAA;AACtB,gBAAOC,EAAS,KAChB,OAAOA,EAAS,OAGd,gBAAAC,EAAA,cAAC,SAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,OAAM,8BAA8B,GAAGD,GAAU,MAAK,SACnGD,EAAM,yCAAU,SAAA,MAAOA,EAAM,KAAM,GACpC,gBAAAE,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,QAAO;AAAA,MACP,aAAa;AAAA,MACb,eAAc;AAAA,MACd,gBAAe;AAAA,MACf,GAAE;AAAA,IAAA;AAAA,EAAA,GAEJ,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAM;AAAA,MACN,GAAE;AAAA,MACF,MAAK;AAAA,MACL,QAAO;AAAA,MACP,gBAAa;AAAA,MACb,kBAAe;AAAA,MACf,mBAAgB;AAAA,IAAA;AAAA,EAAA,CAEpB;AAEJ;"}
1
+ {"version":3,"file":"solid-hand-heart-CmuM78yB.mjs","sources":["../../src/components/icon/assets/solid/solid-hand-heart.tsx"],"sourcesContent":["import React from 'react';\n\nimport { SVGIconProps } from '@/models/';\n\nexport default (props: SVGIconProps) => {\n const newProps = { ...props };\n delete newProps.alt;\n delete newProps.title;\n\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" {...newProps} role=\"img\">\n {props.title && <title>{props.title}</title>}\n <path\n fill=\"none\"\n stroke=\"var(--color-primary-600)\"\n strokeWidth={2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n d=\"M10.9879 14.0002H12.9852C13.5149 14.0002 14.023 13.7895 14.3975 13.4145C14.7721 13.0394 14.9825 12.5307 14.9825 12.0003C14.9825 11.4699 14.7721 10.9612 14.3975 10.5861C14.023 10.2111 13.5149 10.0004 12.9852 10.0004H9.98925C9.39006 10.0004 8.89073 10.2004 8.59113 10.6004L2.99866 16.0002M14.4333 13.3903L19.4765 8.69642C20.1715 8.00045 20.9745 6.85049 20.9745 5.75053C20.9746 5.1939 20.806 4.65033 20.491 4.19169C20.176 3.73305 19.7294 3.38092 19.2103 3.18186C18.6912 2.9828 18.1239 2.94617 17.5836 3.07682C17.0432 3.20748 16.5551 3.49926 16.1839 3.91359C16.1581 3.94165 16.1268 3.96404 16.0919 3.97936C16.057 3.99468 16.0193 4.00259 15.9812 4.00259C15.9431 4.00259 15.9054 3.99468 15.8705 3.97936C15.8356 3.96404 15.8043 3.94165 15.7785 3.91359C15.4072 3.49926 14.9192 3.20748 14.3788 3.07682C13.8385 2.94617 13.2712 2.9828 12.7521 3.18186C12.2329 3.38092 11.7864 3.73305 11.4714 4.19169C11.1564 4.65033 10.9878 5.1939 10.9879 5.75053C10.9879 6.95048 11.7888 7.99845 12.4859 8.69642L15.9812 11.9503M2 15.0002L7.99194 21M6.99328 20L8.59113 18.6001C8.89073 18.2001 9.39006 18.0001 9.98925 18.0001H13.9839C15.0824 18.0001 16.0811 17.6001 16.7801 16.8001L21.3739 12.4003C21.7593 12.0356 21.9842 11.5326 21.9992 11.0019C22.0142 10.4712 21.818 9.95627 21.4538 9.57039C21.0896 9.18452 20.5873 8.95931 20.0573 8.9443C19.5273 8.9293 19.013 9.12574 18.6276 9.4904\"\n />\n <path\n xmlns=\"http://www.w3.org/2000/svg\"\n d=\"M20.2289 3.79567C19.9846 3.54342 19.6944 3.34331 19.3751 3.20679C19.0558 3.07027 18.7136 3 18.3679 3C18.0223 3 17.6801 3.07027 17.3607 3.20679C17.0414 3.34331 16.7513 3.54342 16.507 3.79567L15.9999 4.31893L15.4928 3.79567C14.9992 3.28638 14.3298 3.00026 13.6318 3.00026C12.9338 3.00026 12.2644 3.28638 11.7708 3.79567C11.2773 4.30495 11 4.99569 11 5.71593C11 6.43617 11.2773 7.12692 11.7708 7.6362L12.2779 8.15946L15.9999 12L19.7218 8.15946L20.2289 7.6362C20.4734 7.38407 20.6673 7.08471 20.7996 6.75523C20.9319 6.42574 21 6.07258 21 5.71593C21 5.35928 20.9319 5.00613 20.7996 4.67664C20.6673 4.34716 20.4734 4.0478 20.2289 3.79567Z\"\n fill=\"#034AD8\"\n stroke=\"#034AD8\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n};\n"],"names":["solidHandHeart","props","newProps","React"],"mappings":";AAIA,MAAAA,IAAe,CAACC,MAAwB;AACtC,QAAMC,IAAW,EAAE,GAAGD,EAAA;AACtB,gBAAOC,EAAS,KAChB,OAAOA,EAAS,OAGd,gBAAAC,EAAA,cAAC,SAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,OAAM,8BAA8B,GAAGD,GAAU,MAAK,SACnGD,EAAM,yCAAU,SAAA,MAAOA,EAAM,KAAM,GACpC,gBAAAE,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,QAAO;AAAA,MACP,aAAa;AAAA,MACb,eAAc;AAAA,MACd,gBAAe;AAAA,MACf,GAAE;AAAA,IAAA;AAAA,EAAA,GAEJ,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAM;AAAA,MACN,GAAE;AAAA,MACF,MAAK;AAAA,MACL,QAAO;AAAA,MACP,aAAY;AAAA,MACZ,eAAc;AAAA,MACd,gBAAe;AAAA,IAAA;AAAA,EAAA,CAEnB;AAEJ;"}
@@ -9,7 +9,7 @@ export type ButtonVariant = 'primary' | 'neutral' | 'success' | 'warning' | 'dan
9
9
  * The available button appearances. Defines the button shape.
10
10
  */
11
11
  export type ButtonAppearance = 'solid' | 'outline' | 'link';
12
- export interface ButtonProps extends ComponentProps<'button'> {
12
+ export interface ButtonProps extends Omit<ComponentProps<'button'>, 'appearance'> {
13
13
  /**
14
14
  * The flag to set Dark mode.
15
15
  */
@@ -1,7 +1,11 @@
1
- import React, { FC, ImgHTMLAttributes, ReactNode } from 'react';
2
- import './card-general.css';
3
1
  import { AnchorProps } from '../../../components/anchor/anchor';
2
+ import { PillProps } from '../../../components/pill/pill';
4
3
  import { IconSetState } from '../../../components/shared/icon-set/icon-set';
4
+ import React, { FC, ImgHTMLAttributes, ReactNode } from 'react';
5
+ import './card-general.css';
6
+ /**
7
+ * @deprecated Use Card v2 Instead.
8
+ */
5
9
  export type CardGeneralVariants = 'white' | 'neutral-100' | 'primary-100' | 'secondary-100' | 'primary-300' | 'secondary-300' | 'primary-500' | 'primary-700' | 'primary-900' | 'white-outline' | 'primary-outline';
6
10
  export interface CardGeneralProps {
7
11
  /**
@@ -26,8 +30,21 @@ export interface CardGeneralProps {
26
30
  iconActive?: string;
27
31
  /**
28
32
  * text to show within a pill
33
+ * @deprecated use upperPills or middlePills instead, which allow for multiple pills and more customization options.
29
34
  */
30
35
  pillText?: ReactNode;
36
+ /**
37
+ * to show pills in the upper part of the card, accepts an array of PillProps.
38
+ */
39
+ upperPills?: PillProps[];
40
+ /**
41
+ * to show pills in the middle part of the card, accepts an array of PillProps.
42
+ */
43
+ middlePills?: PillProps[];
44
+ /**
45
+ * text to show the category
46
+ */
47
+ categoryText?: ReactNode;
31
48
  /**
32
49
  * text to show the subtitle
33
50
  */
@@ -48,6 +65,10 @@ export interface CardGeneralProps {
48
65
  * text to show within the card
49
66
  */
50
67
  descriptionText: ReactNode;
68
+ /**
69
+ * topics list displayed at the bottom of the card
70
+ */
71
+ topics?: string[];
51
72
  /**
52
73
  * anchor props
53
74
  */
@@ -1,6 +1,9 @@
1
1
  import { PillAppearance } from '../../../components/pill';
2
2
  import { CardGeneralVariants } from './card-general';
3
3
  import { AnchorVariant } from '../../../components/anchor';
4
+ /**
5
+ * @deprecated Use Card v2 Instead.
6
+ */
4
7
  type pillVariantType = {
5
8
  appearance: PillAppearance;
6
9
  darkMode: boolean;
@@ -0,0 +1,7 @@
1
+ import './body-section-container.css';
2
+ import { FC, HTMLAttributes } from 'react';
3
+ import { BodySectionChildren } from '../helpers';
4
+ export interface BodySectionContainerProps extends HTMLAttributes<HTMLDivElement> {
5
+ children?: BodySectionChildren | BodySectionChildren[];
6
+ }
7
+ export declare const BodySectionContainer: FC<BodySectionContainerProps>;
@@ -0,0 +1,28 @@
1
+ import { FC, HTMLAttributes } from 'react';
2
+ import './card-general.css';
3
+ import { CardGeneralChildren, CardGeneralVariants, CardLayoutVariant, ImageAlignment } from './helpers';
4
+ import { CardAnchorProps } from './index';
5
+ export interface CardGeneralProps extends HTMLAttributes<HTMLDivElement> {
6
+ /**
7
+ * Background/style of the card.
8
+ */
9
+ variant?: CardGeneralVariants;
10
+ /**
11
+ * Layout variant, to render a image/image-indent a <ImageSectionContainer> should be provided as child of <CardGeneral> component.
12
+ */
13
+ layout?: CardLayoutVariant;
14
+ /**
15
+ * Where the image block sits relative to the content. Only meaningful when an `<ImageSectionContainer>` child is provided.
16
+ */
17
+ imageAlignment?: ImageAlignment;
18
+ /**
19
+ * Makes the whole card clickable. When the card is clicked, the inner anchor is activated.
20
+ */
21
+ isBlockedLink?: boolean;
22
+ /**
23
+ * Render an anchor on the side of the card.
24
+ */
25
+ sideAnchor?: CardAnchorProps;
26
+ children?: CardGeneralChildren | CardGeneralChildren[];
27
+ }
28
+ export declare const CardGeneral: FC<CardGeneralProps>;
@@ -0,0 +1,7 @@
1
+ import './footer-section-container.css';
2
+ import { FC, HTMLAttributes } from 'react';
3
+ import { FooterSectionChildren } from '../helpers';
4
+ export interface FooterSectionContainerProps extends HTMLAttributes<HTMLDivElement> {
5
+ children?: FooterSectionChildren | FooterSectionChildren[];
6
+ }
7
+ export declare const FooterSectionContainer: FC<FooterSectionContainerProps>;
@@ -0,0 +1,7 @@
1
+ import './header-section-container.css';
2
+ import { FC, HTMLAttributes } from 'react';
3
+ import { HeaderSectionChildren } from '../helpers';
4
+ export interface HeaderSectionContainerProps extends HTMLAttributes<HTMLDivElement> {
5
+ children?: HeaderSectionChildren | HeaderSectionChildren[];
6
+ }
7
+ export declare const HeaderSectionContainer: FC<HeaderSectionContainerProps>;
@@ -0,0 +1,32 @@
1
+ import { ReactElement, RefObject } from 'react';
2
+ import { BodySectionContainer, CardAnchor, CardAnchorProps, CardCategory, CardDescription, CardLogo, CardPills, CardStatus, CardSubtitle, CardTitle, CardTopics, FooterSectionContainer, HeaderSectionContainer, ImageSectionContainer } from './index';
3
+ import { CardIcon } from './shared/card-icon/card-icon';
4
+ type ChildType = ReactElement | ReactElement[] | undefined | null;
5
+ export type CardGeneralVariants = 'white' | 'neutral-100' | 'primary-100' | 'secondary-100' | 'primary-300' | 'secondary-300' | 'primary-500' | 'primary-700' | 'primary-900' | 'white-outline' | 'primary-500-outline' | 'neutral-900-outline';
6
+ export type ImageAlignment = 'top' | 'right' | 'bottom' | 'left';
7
+ export type CardLayoutVariant = 'text' | 'image' | 'image-indent';
8
+ export type CardStatusVariant = 'default' | 'success' | 'warning' | 'danger' | 'disabled';
9
+ export type CardGeneralChildren = ReactElement<typeof HeaderSectionContainer> | ReactElement<typeof BodySectionContainer> | ReactElement<typeof FooterSectionContainer> | ReactElement<typeof ImageSectionContainer>;
10
+ export type HeaderSectionChildren = ReactElement<typeof CardIcon> | ReactElement<typeof CardLogo> | ReactElement<typeof CardPills> | ReactElement<typeof CardCategory> | ReactElement<typeof CardSubtitle> | ReactElement<typeof CardTitle>;
11
+ export type BodySectionChildren = ReactElement<typeof CardStatus> | ReactElement<typeof CardPills> | ReactElement<typeof CardDescription> | ReactElement<typeof CardTopics>;
12
+ export type FooterSectionChildren = ReactElement<typeof CardAnchor> | ReactElement<typeof CardLogo>;
13
+ export declare const LIGHT_VARIANTS: ReadonlyArray<CardGeneralVariants>;
14
+ export type CardGeneralVariantsOutline = Extract<CardGeneralVariants, 'white-outline' | 'primary-500-outline' | 'neutral-900-outline'>;
15
+ export declare const OUTLINE_VARIANT_CLASSES: Readonly<Record<CardGeneralVariantsOutline, string>>;
16
+ export declare const isLightCardVariant: (variant: CardGeneralVariants) => boolean;
17
+ export interface ICardGeneralContext {
18
+ variant: CardGeneralVariants;
19
+ layout: CardLayoutVariant;
20
+ imageAlignment: ImageAlignment;
21
+ isLightVariant: boolean;
22
+ isBlockedLink: boolean;
23
+ hasImage: boolean;
24
+ imageIndent: boolean;
25
+ sideAnchor?: CardAnchorProps;
26
+ registerAnchorRef: (ref: RefObject<HTMLAnchorElement | null>) => void;
27
+ focusCard: () => void;
28
+ }
29
+ export declare const CardGeneralContext: import("react").Context<ICardGeneralContext>;
30
+ export declare function getChildrenOfType<T>(childType: T, children: ChildType): ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null;
31
+ export declare function getAllChildrenOfType<T>(childType: T, children: ChildType): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>[];
32
+ export {};
@@ -0,0 +1,10 @@
1
+ import { FC, ImgHTMLAttributes, ReactNode } from 'react';
2
+ import './image-section-container.css';
3
+ export interface ImageSectionContainerProps extends ImgHTMLAttributes<HTMLImageElement> {
4
+ /**
5
+ * Optional freestyle content rendered inside the image section instead of an `<img>`.
6
+ * When omitted, an `<img>` is rendered using the spread props.
7
+ */
8
+ children?: ReactNode;
9
+ }
10
+ export declare const ImageSectionContainer: FC<ImageSectionContainerProps>;
@@ -0,0 +1,31 @@
1
+ export { CardGeneral as CardGeneralV2 } from './card-general';
2
+ export type { CardGeneralProps as CardGeneralV2Props } from './card-general';
3
+ export type { CardGeneralVariants, CardGeneralChildren, CardLayoutVariant, CardStatusVariant, BodySectionChildren, FooterSectionChildren, HeaderSectionChildren, ICardGeneralContext, ImageAlignment } from './helpers';
4
+ export { CardGeneralContext, isLightCardVariant, getChildrenOfType, getAllChildrenOfType } from './helpers';
5
+ export { anchorVariant, pillVariant } from './variants';
6
+ export { HeaderSectionContainer } from './header-section/header-section-container';
7
+ export type { HeaderSectionContainerProps } from './header-section/header-section-container';
8
+ export { BodySectionContainer } from './body-section/body-section-container';
9
+ export type { BodySectionContainerProps } from './body-section/body-section-container';
10
+ export { FooterSectionContainer } from './footer-section/footer-section-container';
11
+ export type { FooterSectionContainerProps } from './footer-section/footer-section-container';
12
+ export { ImageSectionContainer } from './image-section/image-section-container';
13
+ export type { ImageSectionContainerProps } from './image-section/image-section-container';
14
+ export { CardLogo } from './shared/card-logo/card-logo';
15
+ export type { CardLogoProps } from './shared/card-logo/card-logo';
16
+ export { CardTitle } from './shared/card-title/card-title';
17
+ export type { CardTitleProps } from './shared/card-title/card-title';
18
+ export { CardSubtitle } from './shared/card-subtitle/card-subtitle';
19
+ export type { CardSubtitleProps } from './shared/card-subtitle/card-subtitle';
20
+ export { CardCategory } from './shared/card-category/card-category';
21
+ export type { CardCategoryProps } from './shared/card-category/card-category';
22
+ export { CardDescription } from './shared/card-description/card-description';
23
+ export type { CardDescriptionProps } from './shared/card-description/card-description';
24
+ export { CardStatus } from './shared/card-status/card-status';
25
+ export type { CardStatusProps } from './shared/card-status/card-status';
26
+ export { CardPills } from './shared/card-pills/card-pills';
27
+ export type { CardPillsProps } from './shared/card-pills/card-pills';
28
+ export { CardTopics } from './shared/card-topics/card-topics';
29
+ export type { CardTopicsProps } from './shared/card-topics/card-topics';
30
+ export { CardAnchor } from './shared/card-anchor/card-anchor';
31
+ export type { CardAnchorProps } from './shared/card-anchor/card-anchor';
@@ -0,0 +1,6 @@
1
+ import './card-anchor.css';
2
+ import { FC } from 'react';
3
+ import { AnchorProps } from '../../../../../components/anchor';
4
+ export interface CardAnchorProps extends AnchorProps {
5
+ }
6
+ export declare const CardAnchor: FC<CardAnchorProps>;
@@ -0,0 +1,6 @@
1
+ import './card-category.css';
2
+ import { FC, HTMLAttributes, ReactNode } from 'react';
3
+ export interface CardCategoryProps extends HTMLAttributes<HTMLDivElement> {
4
+ children: ReactNode;
5
+ }
6
+ export declare const CardCategory: FC<CardCategoryProps>;
@@ -0,0 +1,6 @@
1
+ import './card-description.css';
2
+ import { FC, HTMLAttributes, ReactNode } from 'react';
3
+ export interface CardDescriptionProps extends HTMLAttributes<HTMLParagraphElement> {
4
+ children: ReactNode;
5
+ }
6
+ export declare const CardDescription: FC<CardDescriptionProps>;
@@ -0,0 +1,8 @@
1
+ import { FC, HTMLAttributes, ReactNode } from 'react';
2
+ export interface CardIconProps extends HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * The icon to render inside the container.
5
+ */
6
+ children?: ReactNode;
7
+ }
8
+ export declare const CardIcon: FC<CardIconProps>;
@@ -0,0 +1,8 @@
1
+ import { FC, HTMLAttributes, ReactNode } from 'react';
2
+ export interface CardLogoProps extends HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * The logo to render in the card.
5
+ */
6
+ children?: ReactNode;
7
+ }
8
+ export declare const CardLogo: FC<CardLogoProps>;
@@ -0,0 +1,14 @@
1
+ import './card-pills.css';
2
+ import { FC, HTMLAttributes, ReactElement, ReactNode } from 'react';
3
+ import { Pill, PillProps } from '../../../../../components/pill';
4
+ export interface CardPillsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
5
+ /**
6
+ * Pill props array. Takes priority over `children` when both are provided.
7
+ */
8
+ pills?: PillProps[];
9
+ /**
10
+ * Content to render inside the pill
11
+ */
12
+ children?: ReactElement<typeof Pill> | ReactElement<typeof Pill>[] | ReactNode;
13
+ }
14
+ export declare const CardPills: FC<CardPillsProps>;
@@ -0,0 +1,14 @@
1
+ import { FC, HTMLAttributes, ReactNode } from 'react';
2
+ import { CardStatusVariant } from '../../helpers';
3
+ import './card-status.css';
4
+ export interface CardStatusProps extends HTMLAttributes<HTMLDivElement> {
5
+ /**
6
+ * Status of the card. Drives the dot color.
7
+ */
8
+ status?: CardStatusVariant;
9
+ /**
10
+ * Label rendered next to the status dot.
11
+ */
12
+ children: ReactNode;
13
+ }
14
+ export declare const CardStatus: FC<CardStatusProps>;
@@ -0,0 +1,6 @@
1
+ import './card-subtitle.css';
2
+ import { FC, HTMLAttributes, ReactNode } from 'react';
3
+ export interface CardSubtitleProps extends HTMLAttributes<HTMLDivElement> {
4
+ children: ReactNode;
5
+ }
6
+ export declare const CardSubtitle: FC<CardSubtitleProps>;
@@ -0,0 +1,10 @@
1
+ import './card-title.css';
2
+ import { FC, HTMLAttributes, ReactNode } from 'react';
3
+ export interface CardTitleProps extends HTMLAttributes<HTMLHeadingElement> {
4
+ children: ReactNode;
5
+ /**
6
+ * Heading level used to render the title. Defaults to `h3`.
7
+ */
8
+ as?: 'h2' | 'h3' | 'h4' | 'h5';
9
+ }
10
+ export declare const CardTitle: FC<CardTitleProps>;
@@ -0,0 +1,9 @@
1
+ import './card-topics.css';
2
+ import { FC, HTMLAttributes } from 'react';
3
+ export interface CardTopicsProps extends HTMLAttributes<HTMLUListElement> {
4
+ /**
5
+ * Bulleted topics list rendered at the bottom of the body area.
6
+ */
7
+ topics: string[];
8
+ }
9
+ export declare const CardTopics: FC<CardTopicsProps>;
@@ -0,0 +1,20 @@
1
+ import { PillAppearance, PillVariant } from '../../../components/pill';
2
+ import { AnchorVariant } from '../../../components/anchor';
3
+ import { CardGeneralVariants, CardStatusVariant } from './helpers';
4
+ type PillVariantConfig = {
5
+ appearance: PillAppearance;
6
+ variant?: PillVariant;
7
+ darkMode: boolean;
8
+ };
9
+ type AnchorVariantConfig = {
10
+ darkMode: boolean;
11
+ variant: AnchorVariant;
12
+ };
13
+ type CardStatusConfig = {
14
+ darkMode: boolean;
15
+ variant: CardStatusVariant;
16
+ };
17
+ export declare const pillVariant: Record<CardGeneralVariants, PillVariantConfig>;
18
+ export declare const anchorVariant: Record<CardGeneralVariants, AnchorVariantConfig>;
19
+ export declare const cardStatusVariant: Record<CardGeneralVariants, CardStatusConfig>;
20
+ export {};
@@ -1,6 +1,3 @@
1
- export * from './card-article';
2
- export * from './card-collection';
3
- export * from './card-emphasize';
4
1
  export * from './card-error';
5
2
  export * from './card-expandable';
6
3
  export * from './card-frame';
@@ -10,13 +7,12 @@ export * from './card-hero-index';
10
7
  export * from './card-hero-sitemap';
11
8
  export * from './card-highlight';
12
9
  export * from './card-highlight-newsletter';
13
- export * from './card-highlight-single';
14
10
  export * from './card-links';
15
11
  export * from './card-no-results';
16
- export * from './card-single';
17
- export * from './card-topic';
18
12
  export * from './card-action';
19
13
  export * from './card-illustrative';
20
14
  export * from './card-general';
21
15
  export * from './status-card';
22
16
  export * from './card-notification';
17
+ export * from './card-section';
18
+ export * from './card-general-v2';
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { InternalEcosystemPanelAnchorProps } from '../../internals/general-bar/ecosystem-panel/internal-ecosystem-panel-anchor';
3
+ export interface EcosystemPanelAnchorProps extends InternalEcosystemPanelAnchorProps {
4
+ }
5
+ export declare const EcosystemPanelAnchor: FC<EcosystemPanelAnchorProps>;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { InternalEcosystemPanelGoBackProps } from '../../internals/general-bar/ecosystem-panel/internal-ecosystem-panel-go-back';
3
+ export interface EcosystemPanelGoBackProps extends InternalEcosystemPanelGoBackProps {
4
+ }
5
+ export declare const EcosystemPanelGoBack: FC<EcosystemPanelGoBackProps>;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { InternalEcosystemPanelSectionTitleProps } from '../../internals/general-bar/ecosystem-panel/internal-ecosystem-panel-section-title';
3
+ export interface EcosystemPanelSectionTitleProps extends InternalEcosystemPanelSectionTitleProps {
4
+ }
5
+ export declare const EcosystemPanelSectionTitle: FC<EcosystemPanelSectionTitleProps>;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { InternalEcosystemPanelShortDescriptionProps } from '../../internals/general-bar/ecosystem-panel/internal-ecosystem-panel-short-description';
3
+ export interface EcosystemPanelShortDescriptionProps extends InternalEcosystemPanelShortDescriptionProps {
4
+ }
5
+ export declare const EcosystemPanelShortDescription: FC<EcosystemPanelShortDescriptionProps>;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { InternalEcosystemPanelTitleProps } from '../../internals/general-bar/ecosystem-panel/internal-ecosystem-panel-title';
3
+ export interface EcosystemPanelTitleProps extends InternalEcosystemPanelTitleProps {
4
+ }
5
+ export declare const EcosystemPanelTitle: FC<EcosystemPanelTitleProps>;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { InternalEcosystemPanelProps } from '../../internals/general-bar/ecosystem-panel/internal-ecosystem-panel';
3
+ export interface EcosystemPanelProps extends InternalEcosystemPanelProps {
4
+ }
5
+ export declare const EcosystemPanel: FC<EcosystemPanelProps>;
@@ -18,9 +18,9 @@ export interface HeaderElement extends ComponentProps<'div'> {
18
18
  openBurgerMenu: () => void;
19
19
  focusModalMenu: () => void;
20
20
  openModalMenu: () => void;
21
- focusNavigationMenuOption: (index: number) => void;
22
- openNavigationMenuOption: (index: number) => void;
23
21
  closeAll: () => void;
22
+ expandNavigationRoot: (id: string) => void;
23
+ collapseNavigationRoot: (id: string) => void;
24
24
  }
25
25
  export type HeaderChildrenComponents = ReactElement<BrandProps | GeneralBarProps | NavigationBarProps> | ReactElement<BrandProps | GeneralBarProps | NavigationBarProps>[];
26
26
  export interface HeaderProps {
@@ -50,20 +50,12 @@ export { SearchRelatedLink } from './general-bar/search/search-related-link';
50
50
  export type { SearchRelatedLinkProps } from './general-bar/search/search-related-link';
51
51
  export { CustomSearch } from './general-bar/search/custom-search';
52
52
  export type { CustomSearchProps } from './general-bar/search/custom-search';
53
- export { DirectLink } from './general-bar/direct-link/direct-link';
54
- export type { DirectLinkProps } from './general-bar/direct-link/direct-link';
55
- export { DirectLinkTitle } from './general-bar/direct-link/direct-link-title';
56
- export type { DirectLinkTitleProps } from './general-bar/direct-link/direct-link-title';
57
- export { DirectLinkShortDescription } from './general-bar/direct-link/direct-link-short-description';
58
- export type { DirectLinkShortDescriptionProps } from './general-bar/direct-link/direct-link-short-description';
59
- export { DirectLinkSectionTitle } from './general-bar/direct-link/direct-link-section-title';
60
- export type { DirectLinkSectionTitleProps } from './general-bar/direct-link/direct-link-section-title';
61
- export { DirectLinkAnchor } from './general-bar/direct-link/direct-link-anchor';
62
- export type { DirectLinkAnchorProps } from './general-bar/direct-link/direct-link-anchor';
63
- export { DirectLinkGoBack } from './general-bar/direct-link/direct-link-go-back';
64
- export type { DirectLinkGoBackProps } from './general-bar/direct-link/direct-link-go-back';
65
53
  export { NavigationBar } from './navigation-bar/navigation-bar';
66
54
  export type { NavigationBarProps } from './navigation-bar/navigation-bar';
55
+ export { NavigationSection } from './navigation-bar/navigation-section';
56
+ export type { NavigationSectionProps } from './navigation-bar/navigation-section';
57
+ export { NavigationArea } from './navigation-bar/navigation-area';
58
+ export type { NavigationAreaProps } from './navigation-bar/navigation-area';
67
59
  export { NavigationRoot } from './navigation-bar/navigation-root';
68
60
  export type { NavigationRootProps } from './navigation-bar/navigation-root';
69
61
  export { NavigationLink } from './navigation-bar/navigation-link';
@@ -72,3 +64,39 @@ export { RelatedNavigationLink } from './navigation-bar/related-navigation-link'
72
64
  export type { RelatedNavigationLinkProps } from './navigation-bar/related-navigation-link';
73
65
  export { NavigationFreestyle } from './navigation-bar/navigation-freestyle';
74
66
  export type { NavigationFreestyleProps } from './navigation-bar/navigation-freestyle';
67
+ export { EcosystemPanel } from './general-bar/ecosystem-panel/ecosystem-panel';
68
+ export type { EcosystemPanelProps } from './general-bar/ecosystem-panel/ecosystem-panel';
69
+ export { EcosystemPanelTitle } from './general-bar/ecosystem-panel/ecosystem-panel-title';
70
+ export type { EcosystemPanelTitleProps } from './general-bar/ecosystem-panel/ecosystem-panel-title';
71
+ export { EcosystemPanelShortDescription } from './general-bar/ecosystem-panel/ecosystem-panel-short-description';
72
+ export type { EcosystemPanelShortDescriptionProps } from './general-bar/ecosystem-panel/ecosystem-panel-short-description';
73
+ export { EcosystemPanelSectionTitle } from './general-bar/ecosystem-panel/ecosystem-panel-section-title';
74
+ export type { EcosystemPanelSectionTitleProps } from './general-bar/ecosystem-panel/ecosystem-panel-section-title';
75
+ export { EcosystemPanelAnchor } from './general-bar/ecosystem-panel/ecosystem-panel-anchor';
76
+ export type { EcosystemPanelAnchorProps } from './general-bar/ecosystem-panel/ecosystem-panel-anchor';
77
+ export { EcosystemPanelGoBack } from './general-bar/ecosystem-panel/ecosystem-panel-go-back';
78
+ export type { EcosystemPanelGoBackProps } from './general-bar/ecosystem-panel/ecosystem-panel-go-back';
79
+ /** @deprecated Use `EcosystemPanel` instead. */
80
+ export { EcosystemPanel as DirectLink } from './general-bar/ecosystem-panel/ecosystem-panel';
81
+ /** @deprecated Use `EcosystemPanelProps` instead. */
82
+ export type { EcosystemPanelProps as DirectLinkProps } from './general-bar/ecosystem-panel/ecosystem-panel';
83
+ /** @deprecated Use `EcosystemPanelTitle` instead. */
84
+ export { EcosystemPanelTitle as DirectLinkTitle } from './general-bar/ecosystem-panel/ecosystem-panel-title';
85
+ /** @deprecated Use `EcosystemPanelTitleProps` instead. */
86
+ export type { EcosystemPanelTitleProps as DirectLinkTitleProps } from './general-bar/ecosystem-panel/ecosystem-panel-title';
87
+ /** @deprecated Use `EcosystemPanelShortDescription` instead. */
88
+ export { EcosystemPanelShortDescription as DirectLinkShortDescription } from './general-bar/ecosystem-panel/ecosystem-panel-short-description';
89
+ /** @deprecated Use `EcosystemPanelShortDescriptionProps` instead. */
90
+ export type { EcosystemPanelShortDescriptionProps as DirectLinkShortDescriptionProps } from './general-bar/ecosystem-panel/ecosystem-panel-short-description';
91
+ /** @deprecated Use `EcosystemPanelSectionTitle` instead. */
92
+ export { EcosystemPanelSectionTitle as DirectLinkSectionTitle } from './general-bar/ecosystem-panel/ecosystem-panel-section-title';
93
+ /** @deprecated Use `EcosystemPanelSectionTitleProps` instead. */
94
+ export type { EcosystemPanelSectionTitleProps as DirectLinkSectionTitleProps } from './general-bar/ecosystem-panel/ecosystem-panel-section-title';
95
+ /** @deprecated Use `EcosystemPanelAnchor` instead. */
96
+ export { EcosystemPanelAnchor as DirectLinkAnchor } from './general-bar/ecosystem-panel/ecosystem-panel-anchor';
97
+ /** @deprecated Use `EcosystemPanelAnchorProps` instead. */
98
+ export type { EcosystemPanelAnchorProps as DirectLinkAnchorProps } from './general-bar/ecosystem-panel/ecosystem-panel-anchor';
99
+ /** @deprecated Use `EcosystemPanelGoBack` instead. */
100
+ export { EcosystemPanelGoBack as DirectLinkGoBack } from './general-bar/ecosystem-panel/ecosystem-panel-go-back';
101
+ /** @deprecated Use `EcosystemPanelGoBackProps` instead. */
102
+ export type { EcosystemPanelGoBackProps as DirectLinkGoBackProps } from './general-bar/ecosystem-panel/ecosystem-panel-go-back';
@@ -9,13 +9,14 @@ import { SearchRelatedLinksTitleProps } from '../../../../../components/header/g
9
9
  import { SearchTitleProps } from '../../../../../components/header/general-bar/search/search-title';
10
10
  import { UnauthenticatedProps } from '../../../../../components/header/general-bar/unauthenticated/unauthenticated';
11
11
  import { UnauthenticatedLinkProps } from '../../../../../components/header/general-bar/unauthenticated/unauthenticated-link';
12
- import { InternalAreaProps } from '../../../../../components/header/internals/general-bar/areas/internal-area';
13
12
  import { NavigationFreestyleProps } from '../../../../../components/header/navigation-bar/navigation-freestyle';
14
13
  import { NavigationLinkProps } from '../../../../../components/header/navigation-bar/navigation-link';
15
14
  import { NavigationRootProps } from '../../../../../components/header/navigation-bar/navigation-root';
15
+ import { NavigationBarSectionData } from './utils/navigation-bar-utils';
16
+ import type { InternalAreaProps } from './utils/areas-utils';
16
17
  import { InputSearchBarProps } from '../../../../../components/input-search-bar';
17
18
  import { ReactElement, ReactNode } from 'react';
18
- import { GetDirectLinksProps } from './utils/direct-link-utils';
19
+ import { GetEcosystemPanelProps } from './utils/ecosystem-panel-utils';
19
20
  export interface HeaderDataContextProps {
20
21
  getGeneralBarAriaLabel: () => string;
21
22
  getInstitutionalPhrase: () => ReactNode;
@@ -44,21 +45,22 @@ export interface HeaderDataContextProps {
44
45
  getCustomSearchInputBar: () => ReactNode;
45
46
  getDefaultSearchRelatedLinksTitle: () => SearchRelatedLinksTitleProps | null;
46
47
  getDefaultSearchRelatedLinks: () => SearchRelatedLinkProps[];
47
- hasDirectLinks: () => boolean;
48
- getDirectLinksProps: () => GetDirectLinksProps;
48
+ hasEcosystemPanel: () => boolean;
49
+ getEcosystemPanelProps: () => GetEcosystemPanelProps;
49
50
  hasCustomSearch: () => boolean;
50
51
  getCustomSearch: () => CustomSearchProps | null;
51
52
  countNavigationItems: () => number;
52
53
  maxNavigationItems: number;
53
- hasNavigationBar: () => boolean;
54
54
  getNavigationId: () => string;
55
55
  getNavigationItems: () => ReactElement<NavigationRootProps | NavigationLinkProps | NavigationFreestyleProps>[];
56
56
  getResponsiveMenuLabel: () => string;
57
+ getNavigationHelpText: () => string;
57
58
  getResponsiveMenuAriaLabel: () => string;
58
59
  getResponsiveMenuBackToRootLabel: () => string;
59
60
  getModalMenuLabel: () => string;
60
61
  getModalAriaLabel: () => string;
61
62
  getModalCloseLabel: () => string;
63
+ getNavigationBarSectionData: () => NavigationBarSectionData[];
62
64
  darkMode: boolean;
63
65
  }
64
66
  export declare const HeaderDataContext: import("react").Context<HeaderDataContextProps>;
@@ -1,7 +1,8 @@
1
+ import { AreaProps } from '../../../../../../components/header/general-bar/areas/area';
1
2
  import { HeaderChildrenComponents } from '../../../../../../components/header/header';
2
- import { InternalAreaProps } from '../../../../../../components/header/internals/general-bar/areas/internal-area';
3
+ export type InternalAreaProps = AreaProps;
3
4
  export declare const hasVisibleAreasProps: (children?: HeaderChildrenComponents) => boolean;
4
5
  export declare const getParseAreasAriaLabel: (children?: HeaderChildrenComponents) => string;
5
6
  export declare const getParsedOnAreaChange: (children?: HeaderChildrenComponents) => ((activeArea: string) => void) | null | undefined;
6
- export declare const getParsedAvailableAreaProps: (children?: HeaderChildrenComponents) => InternalAreaProps[];
7
- export declare const getParsedActiveAreaProps: (children?: HeaderChildrenComponents) => InternalAreaProps | undefined;
7
+ export declare const getParsedAvailableAreaProps: (children?: HeaderChildrenComponents, activeIndex?: number) => InternalAreaProps[];
8
+ export declare const getParsedActiveAreaProps: (children?: HeaderChildrenComponents, activeIndex?: number) => InternalAreaProps | undefined;
@@ -0,0 +1,15 @@
1
+ import { HeaderChildrenComponents } from '../../../../../../components/header/header';
2
+ import { ReactElement } from 'react';
3
+ import { InternalEcosystemPanelProps } from '../../../general-bar/ecosystem-panel/internal-ecosystem-panel';
4
+ export type EcosystemPanelChildren = {
5
+ internalEcosystemPanelGoBackElement: ReactElement | null;
6
+ internalEcosystemPanelTitleElement: ReactElement | null;
7
+ internalEcosystemPanelShortDescriptionElement: ReactElement | null;
8
+ internalEcosystemPanelSectionTitleElements: ReactElement | null;
9
+ internalEcosystemPanelAnchorElements: ReactElement[] | null;
10
+ };
11
+ export interface GetEcosystemPanelProps extends Omit<InternalEcosystemPanelProps, 'children'> {
12
+ ecosystemPanelChildren: EcosystemPanelChildren;
13
+ }
14
+ export declare function hasEcosystemPanelProps(children?: HeaderChildrenComponents): boolean;
15
+ export declare function getEcosystemPanelPropsInternal(children?: HeaderChildrenComponents): GetEcosystemPanelProps;
@@ -0,0 +1,10 @@
1
+ import type { HeaderChildrenComponents } from '../../../../../../components/header/header';
2
+ import { ReactElement } from 'react';
3
+ import { NavigationAreaProps, NavigationBarProps, NavigationLinkProps, NavigationRootProps, NavigationSectionProps } from '../../../../../../components/header';
4
+ export interface NavigationBarSectionData {
5
+ area: ReactElement<NavigationAreaProps> | null;
6
+ links: ReactElement<NavigationRootProps | NavigationLinkProps>[];
7
+ }
8
+ export declare function getNavigationBarInternal(children?: HeaderChildrenComponents): ReactElement<NavigationBarProps> | null;
9
+ export declare function getNavigationBarSectionsInternal(children?: HeaderChildrenComponents): ReactElement<NavigationSectionProps>[];
10
+ export declare function getNavigationBarSectionDataInternal(children?: HeaderChildrenComponents): NavigationBarSectionData[];