@carbon/ibm-products 2.95.0 → 2.96.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/css/index-full-carbon.css +94 -89
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +1 -1
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +15 -11
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +1 -1
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +94 -89
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +1 -1
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +15 -11
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +1 -1
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/Card/next/Card.d.ts +6 -69
  18. package/es/components/Card/next/Card.d.ts.map +1 -1
  19. package/es/components/Card/next/Card.js +45 -24
  20. package/es/components/Card/next/Card.types.d.ts +12 -3
  21. package/es/components/Card/next/Card.types.d.ts.map +1 -1
  22. package/es/components/Card/next/CardAction.d.ts +7 -15
  23. package/es/components/Card/next/CardAction.d.ts.map +1 -1
  24. package/es/components/Card/next/CardAction.js +10 -4
  25. package/es/components/Card/next/CardActions.d.ts +1 -19
  26. package/es/components/Card/next/CardActions.d.ts.map +1 -1
  27. package/es/components/Card/next/CardActions.js +27 -22
  28. package/es/components/Card/next/CardBody.d.ts +1 -1
  29. package/es/components/Card/next/CardBody.d.ts.map +1 -1
  30. package/es/components/Card/next/CardBody.js +3 -2
  31. package/es/components/Card/next/CardFooter.d.ts +1 -1
  32. package/es/components/Card/next/CardFooter.d.ts.map +1 -1
  33. package/es/components/Card/next/CardFooter.js +3 -2
  34. package/es/components/Card/next/CardHeader.d.ts +8 -2
  35. package/es/components/Card/next/CardHeader.d.ts.map +1 -1
  36. package/es/components/Card/next/CardHeader.js +17 -24
  37. package/es/components/Card/next/CardHeaderMedia.d.ts +1 -15
  38. package/es/components/Card/next/CardHeaderMedia.d.ts.map +1 -1
  39. package/es/components/Card/next/CardHeaderMedia.js +5 -3
  40. package/es/components/Card/next/CardMedia.d.ts +12 -18
  41. package/es/components/Card/next/CardMedia.d.ts.map +1 -1
  42. package/es/components/Card/next/CardMedia.js +22 -13
  43. package/es/components/Card/next/CardTitle.d.ts +27 -33
  44. package/es/components/Card/next/CardTitle.d.ts.map +1 -1
  45. package/es/components/Card/next/CardTitle.js +62 -18
  46. package/es/components/Card/next/CardTitleMedia.d.ts +1 -1
  47. package/es/components/Card/next/CardTitleMedia.d.ts.map +1 -1
  48. package/es/components/Card/next/CardTitleMedia.js +3 -2
  49. package/es/components/Card/next/_story-assets/data.d.ts +7 -0
  50. package/es/components/Card/next/_story-assets/data.d.ts.map +1 -0
  51. package/es/components/Card/next/_story-assets/options.d.ts +48 -0
  52. package/es/components/Card/next/_story-assets/options.d.ts.map +1 -0
  53. package/es/components/Card/next/index.d.ts +2 -2
  54. package/es/components/Card/next/index.d.ts.map +1 -1
  55. package/es/components/Card/next/index.js +0 -4
  56. package/es/components/Tearsheet/next/Tearsheet.d.ts.map +1 -1
  57. package/es/components/Tearsheet/next/Tearsheet.js +5 -2
  58. package/es/components/Tearsheet/next/TearsheetBody.d.ts.map +1 -1
  59. package/es/components/Tearsheet/next/TearsheetBody.js +2 -1
  60. package/es/global/js/package-settings.d.ts +10 -0
  61. package/es/global/js/package-settings.d.ts.map +1 -1
  62. package/es/global/js/package-settings.js +10 -0
  63. package/es/settings.d.ts +10 -0
  64. package/es/settings.d.ts.map +1 -1
  65. package/lib/components/Card/next/Card.d.ts +6 -69
  66. package/lib/components/Card/next/Card.d.ts.map +1 -1
  67. package/lib/components/Card/next/Card.js +44 -23
  68. package/lib/components/Card/next/Card.types.d.ts +12 -3
  69. package/lib/components/Card/next/Card.types.d.ts.map +1 -1
  70. package/lib/components/Card/next/CardAction.d.ts +7 -15
  71. package/lib/components/Card/next/CardAction.d.ts.map +1 -1
  72. package/lib/components/Card/next/CardAction.js +15 -4
  73. package/lib/components/Card/next/CardActions.d.ts +1 -19
  74. package/lib/components/Card/next/CardActions.d.ts.map +1 -1
  75. package/lib/components/Card/next/CardActions.js +32 -22
  76. package/lib/components/Card/next/CardBody.d.ts +1 -1
  77. package/lib/components/Card/next/CardBody.d.ts.map +1 -1
  78. package/lib/components/Card/next/CardBody.js +9 -3
  79. package/lib/components/Card/next/CardFooter.d.ts +1 -1
  80. package/lib/components/Card/next/CardFooter.d.ts.map +1 -1
  81. package/lib/components/Card/next/CardFooter.js +9 -3
  82. package/lib/components/Card/next/CardHeader.d.ts +8 -2
  83. package/lib/components/Card/next/CardHeader.d.ts.map +1 -1
  84. package/lib/components/Card/next/CardHeader.js +22 -24
  85. package/lib/components/Card/next/CardHeaderMedia.d.ts +1 -15
  86. package/lib/components/Card/next/CardHeaderMedia.d.ts.map +1 -1
  87. package/lib/components/Card/next/CardHeaderMedia.js +10 -3
  88. package/lib/components/Card/next/CardMedia.d.ts +12 -18
  89. package/lib/components/Card/next/CardMedia.d.ts.map +1 -1
  90. package/lib/components/Card/next/CardMedia.js +27 -13
  91. package/lib/components/Card/next/CardTitle.d.ts +27 -33
  92. package/lib/components/Card/next/CardTitle.d.ts.map +1 -1
  93. package/lib/components/Card/next/CardTitle.js +67 -18
  94. package/lib/components/Card/next/CardTitleMedia.d.ts +1 -1
  95. package/lib/components/Card/next/CardTitleMedia.d.ts.map +1 -1
  96. package/lib/components/Card/next/CardTitleMedia.js +9 -3
  97. package/lib/components/Card/next/_story-assets/data.d.ts +7 -0
  98. package/lib/components/Card/next/_story-assets/data.d.ts.map +1 -0
  99. package/lib/components/Card/next/_story-assets/options.d.ts +48 -0
  100. package/lib/components/Card/next/_story-assets/options.d.ts.map +1 -0
  101. package/lib/components/Card/next/index.d.ts +2 -2
  102. package/lib/components/Card/next/index.d.ts.map +1 -1
  103. package/lib/components/Card/next/index.js +0 -4
  104. package/lib/components/Tearsheet/next/Tearsheet.d.ts.map +1 -1
  105. package/lib/components/Tearsheet/next/Tearsheet.js +5 -2
  106. package/lib/components/Tearsheet/next/TearsheetBody.d.ts.map +1 -1
  107. package/lib/components/Tearsheet/next/TearsheetBody.js +2 -1
  108. package/lib/global/js/package-settings.d.ts +10 -0
  109. package/lib/global/js/package-settings.d.ts.map +1 -1
  110. package/lib/global/js/package-settings.js +10 -0
  111. package/lib/settings.d.ts +10 -0
  112. package/lib/settings.d.ts.map +1 -1
  113. package/package.json +9 -8
  114. package/scss/components/AboutModal/_about-modal.scss +12 -12
  115. package/scss/components/Card/_card-next.scss +184 -157
  116. package/scss/components/PageHeader/_page-header.scss +1 -1
  117. package/scss/components/Tearsheet/_tearsheet_next.scss +1 -2
  118. package/telemetry.yml +9 -9
  119. package/es/components/Card/next/CardCaption.d.ts +0 -46
  120. package/es/components/Card/next/CardCaption.d.ts.map +0 -1
  121. package/es/components/Card/next/CardCaption.js +0 -52
  122. package/es/components/Card/next/CardLabel.d.ts +0 -46
  123. package/es/components/Card/next/CardLabel.d.ts.map +0 -1
  124. package/es/components/Card/next/CardLabel.js +0 -52
  125. package/es/components/Tearsheet/next/_story-assets/StepTearsheet.d.ts +0 -30
  126. package/es/components/Tearsheet/next/_story-assets/StepTearsheet.d.ts.map +0 -1
  127. package/lib/components/Card/next/CardCaption.d.ts +0 -46
  128. package/lib/components/Card/next/CardCaption.d.ts.map +0 -1
  129. package/lib/components/Card/next/CardCaption.js +0 -54
  130. package/lib/components/Card/next/CardLabel.d.ts +0 -46
  131. package/lib/components/Card/next/CardLabel.d.ts.map +0 -1
  132. package/lib/components/Card/next/CardLabel.js +0 -54
  133. package/lib/components/Tearsheet/next/_story-assets/StepTearsheet.d.ts +0 -30
  134. package/lib/components/Tearsheet/next/_story-assets/StepTearsheet.d.ts.map +0 -1
@@ -1,46 +0,0 @@
1
- /**
2
- * Copyright IBM Corp. 2026
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
- import React, { ReactNode } from 'react';
8
- import PropTypes from 'prop-types';
9
- export interface CardLabelProps {
10
- /**
11
- * Provide the contents of the CardLabel.
12
- */
13
- children?: ReactNode;
14
- /**
15
- * Provide an optional class to be applied to the containing node.
16
- */
17
- className?: string;
18
- /**
19
- * Enable text truncation with ellipsis.
20
- * @default false
21
- */
22
- truncate?: boolean;
23
- }
24
- /**
25
- * CardLabel displays secondary text above the title in the card header.
26
- * Uses $label-01 typography token and $text-secondary color.
27
- */
28
- export declare const CardLabel: {
29
- ({ children, className, truncate, ...rest }: CardLabelProps): React.JSX.Element;
30
- propTypes: {
31
- /**
32
- * Provide the contents of the CardLabel.
33
- */
34
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
35
- /**
36
- * Provide an optional class to be applied to the containing node.
37
- */
38
- className: PropTypes.Requireable<string>;
39
- /**
40
- * Enable text truncation with ellipsis.
41
- */
42
- truncate: PropTypes.Requireable<boolean>;
43
- };
44
- displayName: string;
45
- };
46
- //# sourceMappingURL=CardLabel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CardLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/next/CardLabel.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,SAAS,MAAM,YAAY,CAAC;AAQnC,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS;iDAKnB,cAAc;;QAiBf;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;;;CAfJ,CAAC"}
@@ -1,52 +0,0 @@
1
- /**
2
- * Copyright IBM Corp. 2020, 2026
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 { __toESM } from "../../../_virtual/_rolldown/runtime.js";
9
- import { require_classnames } from "../../../node_modules/classnames/index.js";
10
- import { pkg } from "../../../settings.js";
11
- import { getDevtoolsProps } from "../../../global/js/utils/devtools.js";
12
- import React from "react";
13
- import PropTypes from "prop-types";
14
- //#region src/components/Card/next/CardLabel.tsx
15
- /**
16
- * Copyright IBM Corp. 2026
17
- *
18
- * This source code is licensed under the Apache-2.0 license found in the
19
- * LICENSE file in the root directory of this source tree.
20
- */
21
- var import_classnames = /* @__PURE__ */ __toESM(require_classnames());
22
- const blockClass = `${pkg.prefix}--card-next`;
23
- const componentName = "CardLabel";
24
- /**
25
- * CardLabel displays secondary text above the title in the card header.
26
- * Uses $label-01 typography token and $text-secondary color.
27
- */
28
- const CardLabel = ({ children, className, truncate = false, ...rest }) => {
29
- const classes = (0, import_classnames.default)(`${blockClass}__label`, { [`${blockClass}__label--truncate`]: truncate }, className);
30
- return /* @__PURE__ */ React.createElement("div", {
31
- ...rest,
32
- className: classes,
33
- ...getDevtoolsProps(componentName)
34
- }, children);
35
- };
36
- CardLabel.propTypes = {
37
- /**
38
- * Provide the contents of the CardLabel.
39
- */
40
- children: PropTypes.node,
41
- /**
42
- * Provide an optional class to be applied to the containing node.
43
- */
44
- className: PropTypes.string,
45
- /**
46
- * Enable text truncation with ellipsis.
47
- */
48
- truncate: PropTypes.bool
49
- };
50
- CardLabel.displayName = componentName;
51
- //#endregion
52
- export { CardLabel };
@@ -1,30 +0,0 @@
1
- /**
2
- * Copyright IBM Corp. 2025, 2025
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
- import React, { ReactNode, RefObject } from 'react';
8
- import { StepContextType } from '@carbon/utilities-react';
9
- interface Props {
10
- children?: ReactNode;
11
- influencer?: ((a: StepContextType) => ReactNode) | null;
12
- open?: boolean;
13
- onClose?: () => void;
14
- title?: ReactNode;
15
- hasCloseIcon?: boolean;
16
- closeIconDescription?: string;
17
- selectorPrimaryFocus?: string;
18
- setOpen?: (open: boolean) => void;
19
- progressIndicator?: 'vertical' | 'horizontal';
20
- launcherButtonRef?: RefObject<HTMLButtonElement | null>;
21
- decorator?: ReactNode;
22
- variant?: 'wide' | 'narrow';
23
- hideCloseButton?: boolean;
24
- disableHeaderCollapse?: boolean;
25
- verticalGap?: string;
26
- keepMounted?: boolean;
27
- }
28
- export declare const TearsheetWithSteps: ({ children, open, setOpen, onClose, influencer, title, hasCloseIcon, closeIconDescription, selectorPrimaryFocus, progressIndicator, launcherButtonRef, decorator, variant, hideCloseButton, disableHeaderCollapse, verticalGap, keepMounted, ...rest }: Props) => React.JSX.Element;
29
- export {};
30
- //# sourceMappingURL=StepTearsheet.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StepTearsheet.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tearsheet/next/_story-assets/StepTearsheet.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAC;AACzE,OAAO,EAEL,eAAe,EAEhB,MAAM,yBAAyB,CAAC;AAcjC,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,eAAe,KAAK,SAAS,CAAC,GAAG,IAAI,CAAC;IACxD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,iBAAiB,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IAC9C,iBAAiB,CAAC,EAAE,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACxD,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,kBAAkB,GAAI,wPAmBhC,KAAK,sBA6LP,CAAC"}
@@ -1,46 +0,0 @@
1
- /**
2
- * Copyright IBM Corp. 2026
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
- import React, { ReactNode } from 'react';
8
- import PropTypes from 'prop-types';
9
- export interface CardCaptionProps {
10
- /**
11
- * Provide the contents of the CardCaption.
12
- */
13
- children?: ReactNode;
14
- /**
15
- * Provide an optional class to be applied to the containing node.
16
- */
17
- className?: string;
18
- /**
19
- * Enable text truncation with ellipsis.
20
- * @default false
21
- */
22
- truncate?: boolean;
23
- }
24
- /**
25
- * CardCaption displays secondary text below the title in the card header.
26
- * Uses $label-01 typography token and $text-secondary color.
27
- */
28
- export declare const CardCaption: {
29
- ({ children, className, truncate, ...rest }: CardCaptionProps): React.JSX.Element;
30
- propTypes: {
31
- /**
32
- * Provide the contents of the CardCaption.
33
- */
34
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
35
- /**
36
- * Provide an optional class to be applied to the containing node.
37
- */
38
- className: PropTypes.Requireable<string>;
39
- /**
40
- * Enable text truncation with ellipsis.
41
- */
42
- truncate: PropTypes.Requireable<boolean>;
43
- };
44
- displayName: string;
45
- };
46
- //# sourceMappingURL=CardCaption.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CardCaption.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/next/CardCaption.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,SAAS,MAAM,YAAY,CAAC;AAQnC,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW;iDAKrB,gBAAgB;;QAiBjB;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;;;CAfJ,CAAC"}
@@ -1,54 +0,0 @@
1
- /**
2
- * Copyright IBM Corp. 2020, 2026
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
- const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
9
- const require_index = require("../../../node_modules/classnames/index.js");
10
- const require_settings = require("../../../settings.js");
11
- const require_devtools = require("../../../global/js/utils/devtools.js");
12
- let react = require("react");
13
- react = require_runtime.__toESM(react);
14
- let prop_types = require("prop-types");
15
- prop_types = require_runtime.__toESM(prop_types);
16
- //#region src/components/Card/next/CardCaption.tsx
17
- /**
18
- * Copyright IBM Corp. 2026
19
- *
20
- * This source code is licensed under the Apache-2.0 license found in the
21
- * LICENSE file in the root directory of this source tree.
22
- */
23
- var import_classnames = /* @__PURE__ */ require_runtime.__toESM(require_index.default);
24
- const blockClass = `${require_settings.pkg.prefix}--card-next`;
25
- const componentName = "CardCaption";
26
- /**
27
- * CardCaption displays secondary text below the title in the card header.
28
- * Uses $label-01 typography token and $text-secondary color.
29
- */
30
- const CardCaption = ({ children, className, truncate = false, ...rest }) => {
31
- const classes = (0, import_classnames.default)(`${blockClass}__caption`, { [`${blockClass}__caption--truncate`]: truncate }, className);
32
- return /* @__PURE__ */ react.default.createElement("div", {
33
- ...rest,
34
- className: classes,
35
- ...require_devtools.getDevtoolsProps(componentName)
36
- }, children);
37
- };
38
- CardCaption.propTypes = {
39
- /**
40
- * Provide the contents of the CardCaption.
41
- */
42
- children: prop_types.default.node,
43
- /**
44
- * Provide an optional class to be applied to the containing node.
45
- */
46
- className: prop_types.default.string,
47
- /**
48
- * Enable text truncation with ellipsis.
49
- */
50
- truncate: prop_types.default.bool
51
- };
52
- CardCaption.displayName = componentName;
53
- //#endregion
54
- exports.CardCaption = CardCaption;
@@ -1,46 +0,0 @@
1
- /**
2
- * Copyright IBM Corp. 2026
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
- import React, { ReactNode } from 'react';
8
- import PropTypes from 'prop-types';
9
- export interface CardLabelProps {
10
- /**
11
- * Provide the contents of the CardLabel.
12
- */
13
- children?: ReactNode;
14
- /**
15
- * Provide an optional class to be applied to the containing node.
16
- */
17
- className?: string;
18
- /**
19
- * Enable text truncation with ellipsis.
20
- * @default false
21
- */
22
- truncate?: boolean;
23
- }
24
- /**
25
- * CardLabel displays secondary text above the title in the card header.
26
- * Uses $label-01 typography token and $text-secondary color.
27
- */
28
- export declare const CardLabel: {
29
- ({ children, className, truncate, ...rest }: CardLabelProps): React.JSX.Element;
30
- propTypes: {
31
- /**
32
- * Provide the contents of the CardLabel.
33
- */
34
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
35
- /**
36
- * Provide an optional class to be applied to the containing node.
37
- */
38
- className: PropTypes.Requireable<string>;
39
- /**
40
- * Enable text truncation with ellipsis.
41
- */
42
- truncate: PropTypes.Requireable<boolean>;
43
- };
44
- displayName: string;
45
- };
46
- //# sourceMappingURL=CardLabel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CardLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/next/CardLabel.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,SAAS,MAAM,YAAY,CAAC;AAQnC,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS;iDAKnB,cAAc;;QAiBf;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;;;CAfJ,CAAC"}
@@ -1,54 +0,0 @@
1
- /**
2
- * Copyright IBM Corp. 2020, 2026
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
- const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
9
- const require_index = require("../../../node_modules/classnames/index.js");
10
- const require_settings = require("../../../settings.js");
11
- const require_devtools = require("../../../global/js/utils/devtools.js");
12
- let react = require("react");
13
- react = require_runtime.__toESM(react);
14
- let prop_types = require("prop-types");
15
- prop_types = require_runtime.__toESM(prop_types);
16
- //#region src/components/Card/next/CardLabel.tsx
17
- /**
18
- * Copyright IBM Corp. 2026
19
- *
20
- * This source code is licensed under the Apache-2.0 license found in the
21
- * LICENSE file in the root directory of this source tree.
22
- */
23
- var import_classnames = /* @__PURE__ */ require_runtime.__toESM(require_index.default);
24
- const blockClass = `${require_settings.pkg.prefix}--card-next`;
25
- const componentName = "CardLabel";
26
- /**
27
- * CardLabel displays secondary text above the title in the card header.
28
- * Uses $label-01 typography token and $text-secondary color.
29
- */
30
- const CardLabel = ({ children, className, truncate = false, ...rest }) => {
31
- const classes = (0, import_classnames.default)(`${blockClass}__label`, { [`${blockClass}__label--truncate`]: truncate }, className);
32
- return /* @__PURE__ */ react.default.createElement("div", {
33
- ...rest,
34
- className: classes,
35
- ...require_devtools.getDevtoolsProps(componentName)
36
- }, children);
37
- };
38
- CardLabel.propTypes = {
39
- /**
40
- * Provide the contents of the CardLabel.
41
- */
42
- children: prop_types.default.node,
43
- /**
44
- * Provide an optional class to be applied to the containing node.
45
- */
46
- className: prop_types.default.string,
47
- /**
48
- * Enable text truncation with ellipsis.
49
- */
50
- truncate: prop_types.default.bool
51
- };
52
- CardLabel.displayName = componentName;
53
- //#endregion
54
- exports.CardLabel = CardLabel;
@@ -1,30 +0,0 @@
1
- /**
2
- * Copyright IBM Corp. 2025, 2025
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
- import React, { ReactNode, RefObject } from 'react';
8
- import { StepContextType } from '@carbon/utilities-react';
9
- interface Props {
10
- children?: ReactNode;
11
- influencer?: ((a: StepContextType) => ReactNode) | null;
12
- open?: boolean;
13
- onClose?: () => void;
14
- title?: ReactNode;
15
- hasCloseIcon?: boolean;
16
- closeIconDescription?: string;
17
- selectorPrimaryFocus?: string;
18
- setOpen?: (open: boolean) => void;
19
- progressIndicator?: 'vertical' | 'horizontal';
20
- launcherButtonRef?: RefObject<HTMLButtonElement | null>;
21
- decorator?: ReactNode;
22
- variant?: 'wide' | 'narrow';
23
- hideCloseButton?: boolean;
24
- disableHeaderCollapse?: boolean;
25
- verticalGap?: string;
26
- keepMounted?: boolean;
27
- }
28
- export declare const TearsheetWithSteps: ({ children, open, setOpen, onClose, influencer, title, hasCloseIcon, closeIconDescription, selectorPrimaryFocus, progressIndicator, launcherButtonRef, decorator, variant, hideCloseButton, disableHeaderCollapse, verticalGap, keepMounted, ...rest }: Props) => React.JSX.Element;
29
- export {};
30
- //# sourceMappingURL=StepTearsheet.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StepTearsheet.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tearsheet/next/_story-assets/StepTearsheet.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAC;AACzE,OAAO,EAEL,eAAe,EAEhB,MAAM,yBAAyB,CAAC;AAcjC,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,eAAe,KAAK,SAAS,CAAC,GAAG,IAAI,CAAC;IACxD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,iBAAiB,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IAC9C,iBAAiB,CAAC,EAAE,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACxD,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,kBAAkB,GAAI,wPAmBhC,KAAK,sBA6LP,CAAC"}