@carbon-labs/react-animated-header 0.30.0 → 0.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/assets/animated/{header_1312x738_data_fabric_dark_06.json → header_animated_data_fabric_dark_06.json} +1 -1
  2. package/assets/animated/{header_1312x738_data_fabric_light_03.json → header_animated_data_fabric_light_03.json} +1 -1
  3. package/assets/animated/header_animated_watsonx_a_dark_06.json +1 -0
  4. package/assets/animated/header_animated_watsonx_a_light_06.json +1 -0
  5. package/assets/animated/header_animated_watsonx_data_dark_03.json +1 -0
  6. package/assets/animated/header_animated_watsonx_data_light_04.json +1 -0
  7. package/assets/animated/header_animated_wxbia_dark_06.json +1 -0
  8. package/assets/animated/header_animated_wxbia_light_09.json +1 -0
  9. package/assets/index.js +44 -14
  10. package/assets/static/{illustration_data_fabric_dark_05.svg → header_static_data_fabric_dark_06.svg} +3 -3
  11. package/assets/static/{illustration_data_fabric_light_04.svg → header_static_data_fabric_light_06.svg} +9 -13
  12. package/assets/static/header_static_db2_dark_02.svg +88 -0
  13. package/assets/static/header_static_db2_light_02.svg +44 -0
  14. package/assets/static/header_static_watsonx_a_dark_01.svg +99 -0
  15. package/assets/static/header_static_watsonx_a_light_01.svg +99 -0
  16. package/assets/static/header_static_watsonx_data_dark_05.svg +43 -0
  17. package/assets/static/header_static_watsonx_data_light_06.svg +46 -0
  18. package/assets/static/header_static_wxbia_dark_01.svg +69 -0
  19. package/assets/static/header_static_wxbia_light_01.svg +69 -0
  20. package/es/__stories__/AnimatedHeader.stories.d.ts +4024 -2752
  21. package/es/__stories__/data/index.d.ts +52 -225
  22. package/es/_virtual/lottie.js +1 -1
  23. package/es/assets/animated/{header_1312x738_data_fabric_dark_06.json.js → header_animated_data_fabric_dark_06.json.js} +2 -2
  24. package/es/assets/animated/{header_1312x738_data_fabric_light_03.json.js → header_animated_data_fabric_light_03.json.js} +2 -2
  25. package/es/assets/animated/header_animated_watsonx_a_dark_06.json.js +10 -0
  26. package/es/assets/animated/header_animated_watsonx_a_light_06.json.js +10 -0
  27. package/es/assets/animated/header_animated_watsonx_data_dark_03.json.js +10 -0
  28. package/es/assets/animated/header_animated_watsonx_data_light_04.json.js +10 -0
  29. package/es/assets/animated/header_animated_wxbia_dark_06.json.js +10 -0
  30. package/es/assets/animated/header_animated_wxbia_light_09.json.js +10 -0
  31. package/es/assets/index.d.ts +9 -7
  32. package/es/assets/static/header_static_data_fabric_dark_06.svg.js +10 -0
  33. package/es/assets/static/header_static_data_fabric_light_06.svg.js +10 -0
  34. package/es/assets/static/header_static_db2_dark_02.svg.js +10 -0
  35. package/es/assets/static/header_static_db2_light_02.svg.js +10 -0
  36. package/es/assets/static/header_static_watsonx_a_dark_01.svg.js +10 -0
  37. package/es/assets/static/header_static_watsonx_a_light_01.svg.js +10 -0
  38. package/es/assets/static/header_static_watsonx_data_dark_05.svg.js +10 -0
  39. package/es/assets/static/header_static_watsonx_data_light_06.svg.js +10 -0
  40. package/es/assets/static/header_static_wxbia_dark_01.svg.js +10 -0
  41. package/es/assets/static/header_static_wxbia_light_01.svg.js +10 -0
  42. package/es/components/AnimatedHeader/AnimatedHeader.d.ts +11 -27
  43. package/es/components/AnimatedHeader/AnimatedHeader.js +61 -44
  44. package/es/components/AnimatedHeader/types.d.ts +24 -0
  45. package/es/components/HeaderTitle/HeaderTitle.d.ts +1 -1
  46. package/es/components/TasksController/TasksController.d.ts +1 -1
  47. package/es/components/Tiles/AIPromptTile/AIPromptTile.d.ts +10 -11
  48. package/es/components/Tiles/AIPromptTile/AIPromptTile.js +12 -14
  49. package/es/components/Tiles/AITile/AITile.d.ts +26 -0
  50. package/es/components/Tiles/AITile/AITile.js +65 -0
  51. package/es/components/Tiles/AITile/AITileBody.d.ts +19 -0
  52. package/es/components/Tiles/AITile/AITileBody.js +59 -0
  53. package/es/components/Tiles/BaseTile/BaseTile.d.ts +15 -18
  54. package/es/components/Tiles/BaseTile/BaseTile.js +34 -4
  55. package/es/components/Tiles/GlassTile/GlassTile.d.ts +13 -9
  56. package/es/components/Tiles/GlassTile/GlassTile.js +13 -15
  57. package/es/components/Tiles/GlassTile/GlassTileBody.d.ts +4 -4
  58. package/es/components/Tiles/GlassTile/GlassTileBody.js +4 -4
  59. package/es/components/Tiles/index.d.ts +2 -1
  60. package/es/index.d.ts +3 -2
  61. package/es/index.js +18 -10
  62. package/es/node_modules/lottie-web/build/player/lottie.js +194 -193
  63. package/lib/__stories__/AnimatedHeader.stories.d.ts +4024 -2752
  64. package/lib/__stories__/data/index.d.ts +52 -225
  65. package/lib/_virtual/lottie.js +1 -1
  66. package/lib/assets/animated/{header_1312x738_data_fabric_dark_06.json.js → header_animated_data_fabric_dark_06.json.js} +2 -2
  67. package/lib/assets/animated/{header_1312x738_data_fabric_light_03.json.js → header_animated_data_fabric_light_03.json.js} +2 -2
  68. package/lib/assets/animated/header_animated_watsonx_a_dark_06.json.js +26 -0
  69. package/lib/assets/animated/header_animated_watsonx_a_light_06.json.js +26 -0
  70. package/lib/assets/animated/header_animated_watsonx_data_dark_03.json.js +26 -0
  71. package/lib/assets/animated/header_animated_watsonx_data_light_04.json.js +26 -0
  72. package/lib/assets/animated/header_animated_wxbia_dark_06.json.js +26 -0
  73. package/lib/assets/animated/header_animated_wxbia_light_09.json.js +26 -0
  74. package/lib/assets/index.d.ts +9 -7
  75. package/lib/assets/static/header_static_data_fabric_dark_06.svg.js +14 -0
  76. package/lib/assets/static/header_static_data_fabric_light_06.svg.js +14 -0
  77. package/lib/assets/static/header_static_db2_dark_02.svg.js +14 -0
  78. package/lib/assets/static/header_static_db2_light_02.svg.js +14 -0
  79. package/lib/assets/static/header_static_watsonx_a_dark_01.svg.js +14 -0
  80. package/lib/assets/static/header_static_watsonx_a_light_01.svg.js +14 -0
  81. package/lib/assets/static/header_static_watsonx_data_dark_05.svg.js +14 -0
  82. package/lib/assets/static/header_static_watsonx_data_light_06.svg.js +14 -0
  83. package/lib/assets/static/header_static_wxbia_dark_01.svg.js +14 -0
  84. package/lib/assets/static/header_static_wxbia_light_01.svg.js +14 -0
  85. package/lib/components/AnimatedHeader/AnimatedHeader.d.ts +11 -27
  86. package/lib/components/AnimatedHeader/AnimatedHeader.js +61 -44
  87. package/lib/components/AnimatedHeader/types.d.ts +24 -0
  88. package/lib/components/HeaderTitle/HeaderTitle.d.ts +1 -1
  89. package/lib/components/TasksController/TasksController.d.ts +1 -1
  90. package/lib/components/Tiles/AIPromptTile/AIPromptTile.d.ts +10 -11
  91. package/lib/components/Tiles/AIPromptTile/AIPromptTile.js +12 -14
  92. package/lib/components/Tiles/AITile/AITile.d.ts +26 -0
  93. package/lib/components/Tiles/AITile/AITile.js +70 -0
  94. package/lib/components/Tiles/AITile/AITileBody.d.ts +19 -0
  95. package/lib/components/Tiles/AITile/AITileBody.js +61 -0
  96. package/lib/components/Tiles/BaseTile/BaseTile.d.ts +15 -18
  97. package/lib/components/Tiles/BaseTile/BaseTile.js +34 -4
  98. package/lib/components/Tiles/GlassTile/GlassTile.d.ts +13 -9
  99. package/lib/components/Tiles/GlassTile/GlassTile.js +13 -15
  100. package/lib/components/Tiles/GlassTile/GlassTileBody.d.ts +4 -4
  101. package/lib/components/Tiles/GlassTile/GlassTileBody.js +4 -4
  102. package/lib/components/Tiles/index.d.ts +2 -1
  103. package/lib/index.d.ts +3 -2
  104. package/lib/index.js +36 -20
  105. package/lib/node_modules/lottie-web/build/player/lottie.js +194 -193
  106. package/package.json +2 -2
  107. package/scss/Tiles/AITile/ai-tile.scss +222 -0
  108. package/scss/animated-header.scss +1 -0
  109. package/assets/animated/header_1312x738_watsonx_data_dark_02.json +0 -1
  110. package/assets/animated/header_1312x738_watsonx_data_light_03.json +0 -1
  111. package/assets/animated/header_illustration_container_watsonx_a_dark_06.json +0 -1
  112. package/assets/animated/header_illustration_container_watsonx_a_light_06.json +0 -1
  113. package/assets/animated/header_illustration_container_wxbia_dark_05.json +0 -1
  114. package/assets/animated/header_illustration_container_wxbia_light_08.json +0 -1
  115. package/assets/static/illustration_data_fabric_dark_03.svg +0 -199
  116. package/assets/static/illustration_data_fabric_light_03.svg +0 -200
  117. package/assets/static/illustration_watson_x_data_dark_03.svg +0 -72
  118. package/assets/static/illustration_watson_x_data_light_03.svg +0 -57
  119. package/es/assets/animated/header_1312x738_watsonx_data_dark_02.json.js +0 -10
  120. package/es/assets/animated/header_1312x738_watsonx_data_light_03.json.js +0 -10
  121. package/es/assets/animated/header_illustration_container_wxbia_dark_05.json.js +0 -10
  122. package/es/assets/animated/header_illustration_container_wxbia_light_08.json.js +0 -10
  123. package/es/assets/static/illustration_data_fabric_dark_05.svg.js +0 -10
  124. package/es/assets/static/illustration_data_fabric_light_04.svg.js +0 -10
  125. package/es/assets/static/illustration_watson_x_data_dark_03.svg.js +0 -10
  126. package/es/assets/static/illustration_watson_x_data_light_03.svg.js +0 -10
  127. package/lib/assets/animated/header_1312x738_watsonx_data_dark_02.json.js +0 -26
  128. package/lib/assets/animated/header_1312x738_watsonx_data_light_03.json.js +0 -26
  129. package/lib/assets/animated/header_illustration_container_wxbia_dark_05.json.js +0 -26
  130. package/lib/assets/animated/header_illustration_container_wxbia_light_08.json.js +0 -26
  131. package/lib/assets/static/illustration_data_fabric_dark_05.svg.js +0 -14
  132. package/lib/assets/static/illustration_data_fabric_light_04.svg.js +0 -14
  133. package/lib/assets/static/illustration_watson_x_data_dark_03.svg.js +0 -14
  134. package/lib/assets/static/illustration_watson_x_data_light_03.svg.js +0 -14
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2025
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ import { ElementType, ReactNode } from 'react';
10
+ export type AITileBodyProps = {
11
+ open?: boolean;
12
+ title?: string | null;
13
+ subtitle?: string | null;
14
+ customContent?: ReactNode;
15
+ primaryIcon?: ElementType | null;
16
+ secondaryIcon?: ElementType | null;
17
+ isLoading?: boolean;
18
+ };
19
+ export declare const AITileBody: ({ open, title, subtitle, customContent, primaryIcon: PrimaryIcon, secondaryIcon: SecondaryIcon, isLoading, }: AITileBodyProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Copyright IBM Corp. 2024
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import React from 'react';
9
+ import { usePrefix } from '../../../node_modules/@carbon-labs/utilities/es/usePrefix.js';
10
+ import { SkeletonPlaceholder, AILabel } from '@carbon/react';
11
+
12
+ var _AILabel;
13
+ const AITileBody = ({
14
+ open,
15
+ title,
16
+ subtitle,
17
+ customContent,
18
+ primaryIcon: PrimaryIcon,
19
+ secondaryIcon: SecondaryIcon,
20
+ isLoading
21
+ }) => {
22
+ const prefix = usePrefix();
23
+ const blockClass = `${prefix}--animated-header__ai-tile`;
24
+ if (isLoading) {
25
+ return /*#__PURE__*/React.createElement(SkeletonPlaceholder, {
26
+ className: `${blockClass}--loading-skeleton`
27
+ });
28
+ }
29
+ return /*#__PURE__*/React.createElement("div", {
30
+ className: `${blockClass}--body`,
31
+ "data-expanded": open
32
+ }, /*#__PURE__*/React.createElement("div", {
33
+ className: `${blockClass}--body-background`
34
+ }), /*#__PURE__*/React.createElement("div", {
35
+ className: `${blockClass}--body-gradient`
36
+ }), customContent ? /*#__PURE__*/React.createElement("div", {
37
+ className: `${blockClass}--custom-content`
38
+ }, customContent) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
39
+ className: `${blockClass}--icons`
40
+ }, PrimaryIcon && /*#__PURE__*/React.createElement(PrimaryIcon, {
41
+ fill: `var(--cds-icon-secondary)`,
42
+ size: 24
43
+ }), _AILabel || (_AILabel = /*#__PURE__*/React.createElement(AILabel, {
44
+ autoAlign: true,
45
+ aiText: "AI",
46
+ size: "xs"
47
+ }))), /*#__PURE__*/React.createElement("div", {
48
+ className: `${blockClass}--title`
49
+ }, title), /*#__PURE__*/React.createElement("div", {
50
+ className: `${blockClass}--footer`
51
+ }, subtitle && /*#__PURE__*/React.createElement("div", {
52
+ className: `${blockClass}--subtitle`
53
+ }, subtitle), SecondaryIcon && /*#__PURE__*/React.createElement(SecondaryIcon, {
54
+ size: 16,
55
+ fill: `var(--cds-icon-secondary)`
56
+ }))));
57
+ };
58
+
59
+ export { AITileBody };
@@ -6,23 +6,20 @@
6
6
  * This source code is licensed under the Apache-2.0 license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- import React, { ElementType, ReactNode } from 'react';
10
- /** Base Tile */
11
- interface BaseTileProps {
9
+ import React from 'react';
10
+ import { type AITileProps } from '../AITile/AITile';
11
+ import { type AIPromptTileProps } from '../AIPromptTile/AIPromptTile';
12
+ import { type GlassTileProps } from '../GlassTile/GlassTile';
13
+ /** Base Tile router */
14
+ export type TileVariant = 'glass' | 'aiPrompt' | 'ai';
15
+ export type BaseTileProps = ({
16
+ variant?: 'glass';
17
+ } & GlassTileProps) | ({
18
+ variant: 'aiPrompt';
19
+ } & AIPromptTileProps) | (({
20
+ variant: 'ai';
21
+ } & AITileProps) & {
12
22
  id?: string;
13
- open?: boolean;
14
- href?: string | null;
15
- mainIcon?: ElementType | null;
16
- secondaryIcon?: ElementType | null;
17
- title?: string | null;
18
- subtitle?: string | null;
19
- productName?: string;
20
- customContent?: ReactNode;
21
- isLoading?: boolean;
22
- isDisabled?: boolean;
23
- disabledTaskLabel?: string;
24
- onClick?: (() => void) | null;
25
- ariaLabel?: string;
26
- }
23
+ tileId?: string | null;
24
+ });
27
25
  export declare const BaseTile: React.FC<BaseTileProps>;
28
- export {};
@@ -6,16 +6,46 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
+ import { AITile } from '../AITile/AITile.js';
9
10
  import { AIPromptTile } from '../AIPromptTile/AIPromptTile.js';
10
11
  import { GlassTile } from '../GlassTile/GlassTile.js';
11
12
 
12
- /** Base Tile */
13
+ /** Base Tile router */
13
14
 
14
- const BaseTile = props => {
15
+ function inferVariant(props) {
16
+ if (props.variant) {
17
+ return props.variant;
18
+ }
15
19
  if (props.id === 'ai-tile') {
16
- return /*#__PURE__*/React.createElement(AIPromptTile, props);
20
+ return 'aiPrompt';
21
+ }
22
+ return 'glass';
23
+ }
24
+ const BaseTile = props => {
25
+ // Back-compat: alias legacy icon prop to the new name
26
+ const normalizedProps = {
27
+ ...props,
28
+ primaryIcon: props.primaryIcon ?? props.mainIcon // ← fallback
29
+ };
30
+
31
+ // strip legacy id, but flow it into tileId if needed
32
+ const {
33
+ id: legacyId,
34
+ ...rest
35
+ } = normalizedProps;
36
+ const forward = {
37
+ ...rest,
38
+ tileId: rest.tileId ?? legacyId
39
+ };
40
+ switch (inferVariant(props)) {
41
+ case 'ai':
42
+ return /*#__PURE__*/React.createElement(AITile, forward);
43
+ case 'aiPrompt':
44
+ return /*#__PURE__*/React.createElement(AIPromptTile, forward);
45
+ case 'glass':
46
+ default:
47
+ return /*#__PURE__*/React.createElement(GlassTile, forward);
17
48
  }
18
- return /*#__PURE__*/React.createElement(GlassTile, props);
19
49
  };
20
50
 
21
51
  export { BaseTile };
@@ -6,16 +6,20 @@
6
6
  * This source code is licensed under the Apache-2.0 license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- import React from 'react';
10
- /** Primary UI component for user interaction */
11
- interface GlassTileProps {
9
+ import React, { ElementType } from 'react';
10
+ export type GlassTileProps = {
11
+ tileId: string | null;
12
12
  href?: string | null;
13
- id?: string;
14
- isLoading?: boolean;
15
- isDisabled?: boolean;
16
- disabledTaskLabel?: string;
13
+ title?: string | null;
14
+ subtitle?: string | null;
15
+ disabledTaskLabel?: string | null;
16
+ customContent?: React.ReactNode | null;
17
+ primaryIcon?: ElementType | null;
18
+ secondaryIcon?: ElementType | null;
17
19
  onClick?: (() => void) | null;
18
20
  ariaLabel?: string;
19
- }
21
+ open?: boolean;
22
+ isLoading?: boolean;
23
+ isDisabled?: boolean;
24
+ } & Record<string, unknown>;
20
25
  export declare const GlassTile: React.FC<GlassTileProps>;
21
- export {};
@@ -10,29 +10,27 @@ import { Link } from '@carbon/react';
10
10
  import { usePrefix } from '../../../node_modules/@carbon-labs/utilities/es/usePrefix.js';
11
11
  import { GlassTileBody } from './GlassTileBody.js';
12
12
 
13
- /** Primary UI component for user interaction */
14
-
15
13
  const GlassTile = ({
14
+ tileId,
16
15
  href,
17
- id,
18
- mainIcon,
19
- open,
20
- secondaryIcon,
21
- subtitle,
22
16
  title,
23
- customContent,
24
- isLoading,
25
- isDisabled,
17
+ subtitle,
26
18
  disabledTaskLabel,
19
+ customContent,
20
+ primaryIcon: PrimaryIcon,
21
+ secondaryIcon: SecondaryIcon,
27
22
  onClick: glassTileClickHandler,
28
- ariaLabel
23
+ ariaLabel,
24
+ open,
25
+ isLoading,
26
+ isDisabled
29
27
  }) => {
30
28
  const prefix = usePrefix();
31
29
  const blockClass = `${prefix}--animated-header__glass-tile`;
32
30
  const body = /*#__PURE__*/React.createElement(GlassTileBody, {
33
- mainIcon: mainIcon,
34
31
  open: open,
35
- secondaryIcon: secondaryIcon,
32
+ primaryIcon: PrimaryIcon,
33
+ secondaryIcon: SecondaryIcon,
36
34
  title: title,
37
35
  subtitle: subtitle,
38
36
  customContent: customContent,
@@ -43,7 +41,7 @@ const GlassTile = ({
43
41
  if (!href && !glassTileClickHandler) {
44
42
  return /*#__PURE__*/React.createElement("div", {
45
43
  className: `${prefix}--animated-header__tile ${blockClass}`,
46
- key: id,
44
+ key: tileId,
47
45
  "aria-label": ariaLabel ?? title ?? 'Glass Tile',
48
46
  title: isDisabled ? disabledTaskLabel ?? '' : '',
49
47
  tabIndex: -1
@@ -57,7 +55,7 @@ const GlassTile = ({
57
55
  "aria-label": ariaLabel ?? title ?? 'Glass Tile',
58
56
  role: "listitem",
59
57
  tabIndex: isDisabled || isLoading ? -1 : 0,
60
- key: id,
58
+ key: tileId,
61
59
  href: href ?? undefined,
62
60
  disabled: isDisabled || isLoading,
63
61
  title: isDisabled ? disabledTaskLabel ?? '' : ''
@@ -8,12 +8,12 @@
8
8
  */
9
9
  import { ElementType, ReactNode } from 'react';
10
10
  export type GlassTileBodyProps = {
11
- mainIcon?: ElementType | null;
12
11
  open?: boolean;
13
- secondaryIcon?: ElementType | null;
14
- subtitle?: string | null;
15
12
  title?: string | null;
13
+ subtitle?: string | null;
16
14
  customContent?: ReactNode;
15
+ primaryIcon?: ElementType | null;
16
+ secondaryIcon?: ElementType | null;
17
17
  isLoading?: boolean;
18
18
  };
19
- export declare const GlassTileBody: ({ mainIcon: MainIcon, open, secondaryIcon: SecondaryIcon, subtitle, title, customContent, isLoading, }: GlassTileBodyProps) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const GlassTileBody: ({ open, title, subtitle, customContent, primaryIcon: PrimaryIcon, secondaryIcon: SecondaryIcon, isLoading, }: GlassTileBodyProps) => import("react/jsx-runtime").JSX.Element;
@@ -10,12 +10,12 @@ import { usePrefix } from '../../../node_modules/@carbon-labs/utilities/es/usePr
10
10
  import { SkeletonPlaceholder } from '@carbon/react';
11
11
 
12
12
  const GlassTileBody = ({
13
- mainIcon: MainIcon,
14
13
  open,
15
- secondaryIcon: SecondaryIcon,
16
- subtitle,
17
14
  title,
15
+ subtitle,
18
16
  customContent,
17
+ primaryIcon: PrimaryIcon,
18
+ secondaryIcon: SecondaryIcon,
19
19
  isLoading
20
20
  }) => {
21
21
  const prefix = usePrefix();
@@ -34,7 +34,7 @@ const GlassTileBody = ({
34
34
  className: `${blockClass}--custom-content`
35
35
  }, customContent) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
36
36
  className: `${blockClass}--icons`
37
- }, MainIcon && /*#__PURE__*/React.createElement(MainIcon, {
37
+ }, PrimaryIcon && /*#__PURE__*/React.createElement(PrimaryIcon, {
38
38
  fill: `var(--cds-icon-secondary)`,
39
39
  size: 24
40
40
  })), /*#__PURE__*/React.createElement("div", {
@@ -6,7 +6,8 @@
6
6
  * This source code is licensed under the Apache-2.0 license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
+ import { AITile } from './AITile/AITile';
9
10
  import { AIPromptTile } from './AIPromptTile/AIPromptTile';
10
11
  import { BaseTile } from './BaseTile/BaseTile';
11
12
  import { GlassTile } from './GlassTile/GlassTile';
12
- export { AIPromptTile, BaseTile, GlassTile };
13
+ export { AITile, AIPromptTile, BaseTile, GlassTile };
package/es/index.d.ts CHANGED
@@ -6,9 +6,10 @@
6
6
  * This source code is licensed under the Apache-2.0 license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- import AnimatedHeader, { AriaLabels, TileGroup } from './components/AnimatedHeader/AnimatedHeader';
9
+ import AnimatedHeader from './components/AnimatedHeader/AnimatedHeader';
10
+ import { AriaLabels, TileGroup } from './components/AnimatedHeader/types';
10
11
  import HeaderTitle from './components/HeaderTitle/HeaderTitle';
11
- import { BaseTile } from './components/Tiles/index.js';
12
+ import { BaseTile } from './components/Tiles/index';
12
13
  export * from './assets';
13
14
  export type { Workspace, WorkspaceSelectorConfig, } from './components/WorkspaceSelector/WorkspaceSelector';
14
15
  export type { TasksControllerConfig } from './components/TasksController/TasksController';
package/es/index.js CHANGED
@@ -11,13 +11,21 @@ import 'react';
11
11
  import '@carbon/react';
12
12
  import '@carbon/react/icons';
13
13
  export { BaseTile } from './components/Tiles/BaseTile/BaseTile.js';
14
- export { default as dataFabricAnimatedLight } from './assets/animated/header_1312x738_data_fabric_light_03.json.js';
15
- export { default as dataFabricAnimatedDark } from './assets/animated/header_1312x738_data_fabric_dark_06.json.js';
16
- export { default as dataFabricStaticLight } from './assets/static/illustration_data_fabric_light_04.svg.js';
17
- export { default as dataFabricStaticDark } from './assets/static/illustration_data_fabric_dark_05.svg.js';
18
- export { default as watsonXAnimatedLight } from './assets/animated/header_1312x738_watsonx_data_light_03.json.js';
19
- export { default as watsonXAnimatedDark } from './assets/animated/header_1312x738_watsonx_data_dark_02.json.js';
20
- export { default as watsonXStaticLight } from './assets/static/illustration_watson_x_data_light_03.svg.js';
21
- export { default as watsonXStaticDark } from './assets/static/illustration_watson_x_data_dark_03.svg.js';
22
- export { default as wxbiaAnimatedLight } from './assets/animated/header_illustration_container_wxbia_light_08.json.js';
23
- export { default as wxbiaAnimatedDark } from './assets/animated/header_illustration_container_wxbia_dark_05.json.js';
14
+ export { default as dataFabricStaticLight } from './assets/static/header_static_data_fabric_light_06.svg.js';
15
+ export { default as dataFabricStaticDark } from './assets/static/header_static_data_fabric_dark_06.svg.js';
16
+ export { default as db2StaticLight } from './assets/static/header_static_db2_light_02.svg.js';
17
+ export { default as db2StaticDark } from './assets/static/header_static_db2_dark_02.svg.js';
18
+ export { default as watsonXStaticLight } from './assets/static/header_static_watsonx_data_light_06.svg.js';
19
+ export { default as watsonXStaticDark } from './assets/static/header_static_watsonx_data_dark_05.svg.js';
20
+ export { default as watsonXAStaticLight } from './assets/static/header_static_watsonx_a_light_01.svg.js';
21
+ export { default as watsonXAStaticDark } from './assets/static/header_static_watsonx_a_dark_01.svg.js';
22
+ export { default as wxbiaStaticLight } from './assets/static/header_static_wxbia_light_01.svg.js';
23
+ export { default as wxbiaStaticDark } from './assets/static/header_static_wxbia_dark_01.svg.js';
24
+ export { default as dataFabricAnimatedLight } from './assets/animated/header_animated_data_fabric_light_03.json.js';
25
+ export { default as dataFabricAnimatedDark } from './assets/animated/header_animated_data_fabric_dark_06.json.js';
26
+ export { default as watsonXAnimatedLight } from './assets/animated/header_animated_watsonx_data_light_04.json.js';
27
+ export { default as watsonXAnimatedDark } from './assets/animated/header_animated_watsonx_data_dark_03.json.js';
28
+ export { default as watsonXAAnimatedLight } from './assets/animated/header_animated_watsonx_a_light_06.json.js';
29
+ export { default as watsonXAAnimatedDark } from './assets/animated/header_animated_watsonx_a_dark_06.json.js';
30
+ export { default as wxbiaAnimatedLight } from './assets/animated/header_animated_wxbia_light_09.json.js';
31
+ export { default as wxbiaAnimatedDark } from './assets/animated/header_animated_wxbia_dark_06.json.js';