@carbon/react 1.91.0-rc.0 → 1.91.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2023
2
+ * Copyright IBM Corp. 2016, 2025
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -11,14 +11,39 @@ export interface BreadcrumbSkeletonProps extends React.HTMLAttributes<HTMLDivEle
11
11
  * Specify an optional className to add.
12
12
  */
13
13
  className?: string;
14
+ /**
15
+ * Specify the number of items
16
+ */
17
+ items?: number;
18
+ /**
19
+ * Optional prop to omit the trailing slash for the breadcrumbs
20
+ */
21
+ noTrailingSlash?: boolean;
22
+ /**
23
+ * Specify the size of the Breadcrumb. Currently
24
+ * supports the following: `sm` & `md` (default: 'md')
25
+ */
26
+ size?: 'sm' | 'md';
14
27
  }
15
- declare function BreadcrumbSkeleton({ className, ...rest }: BreadcrumbSkeletonProps): import("react/jsx-runtime").JSX.Element;
28
+ declare function BreadcrumbSkeleton({ className, items, noTrailingSlash, size, ...rest }: BreadcrumbSkeletonProps): import("react/jsx-runtime").JSX.Element;
16
29
  declare namespace BreadcrumbSkeleton {
17
30
  var propTypes: {
18
31
  /**
19
32
  * Specify an optional className to add.
20
33
  */
21
34
  className: PropTypes.Requireable<string>;
35
+ /**
36
+ * Specify the number of items
37
+ */
38
+ items: PropTypes.Requireable<number>;
39
+ /**
40
+ * Optional prop to omit the trailing slash for the breadcrumbs
41
+ */
42
+ noTrailingSlash: PropTypes.Requireable<boolean>;
43
+ /**
44
+ * Specify the size of the Breadcrumb. Currently supports the following: `sm` & `md` (default: 'md')
45
+ */
46
+ size: PropTypes.Requireable<string>;
22
47
  };
23
48
  }
24
49
  export default BreadcrumbSkeleton;
@@ -11,7 +11,6 @@ import React from 'react';
11
11
  import cx from 'classnames';
12
12
  import { usePrefix } from '../../internal/usePrefix.js';
13
13
 
14
- var _Item, _Item2, _Item3;
15
14
  function Item() {
16
15
  const prefix = usePrefix();
17
16
  return /*#__PURE__*/React.createElement("div", {
@@ -22,19 +21,43 @@ function Item() {
22
21
  }
23
22
  function BreadcrumbSkeleton({
24
23
  className,
24
+ items = 3,
25
+ noTrailingSlash,
26
+ size,
25
27
  ...rest
26
28
  }) {
27
29
  const prefix = usePrefix();
28
- const classes = cx(`${prefix}--breadcrumb`, `${prefix}--skeleton`, className);
30
+ const classes = cx({
31
+ [`${prefix}--breadcrumb`]: true,
32
+ [`${prefix}--skeleton`]: true,
33
+ [`${prefix}--breadcrumb--no-trailing-slash`]: noTrailingSlash,
34
+ [`${prefix}--breadcrumb--sm`]: size === 'sm'
35
+ }, className);
29
36
  return /*#__PURE__*/React.createElement("div", _extends({
30
37
  className: classes
31
- }, rest), _Item || (_Item = /*#__PURE__*/React.createElement(Item, null)), _Item2 || (_Item2 = /*#__PURE__*/React.createElement(Item, null)), _Item3 || (_Item3 = /*#__PURE__*/React.createElement(Item, null)));
38
+ }, rest), Array.from({
39
+ length: items
40
+ }, (_, i) => /*#__PURE__*/React.createElement(Item, {
41
+ key: i
42
+ })));
32
43
  }
33
44
  BreadcrumbSkeleton.propTypes = {
34
45
  /**
35
46
  * Specify an optional className to add.
36
47
  */
37
- className: PropTypes.string
48
+ className: PropTypes.string,
49
+ /**
50
+ * Specify the number of items
51
+ */
52
+ items: PropTypes.number,
53
+ /**
54
+ * Optional prop to omit the trailing slash for the breadcrumbs
55
+ */
56
+ noTrailingSlash: PropTypes.bool,
57
+ /**
58
+ * Specify the size of the Breadcrumb. Currently supports the following: `sm` & `md` (default: 'md')
59
+ */
60
+ size: PropTypes.oneOf(['sm', 'md'])
38
61
  };
39
62
 
40
63
  export { BreadcrumbSkeleton, BreadcrumbSkeleton as default };
@@ -53,7 +53,8 @@ Breadcrumb.propTypes = {
53
53
  */
54
54
  noTrailingSlash: PropTypes.bool,
55
55
  /**
56
- * Specify the size of the Breadcrumb. Currently supports the following:
56
+ * Specify the size of the Breadcrumb. Currently
57
+ * supports the following: `sm` & `md` (default: 'md')
57
58
  */
58
59
  size: PropTypes.oneOf(['sm', 'md'])
59
60
  };
@@ -12,7 +12,7 @@ import cx from 'classnames';
12
12
  import { deprecate } from '../../prop-types/deprecate.js';
13
13
  import { LayoutConstraint } from '../Layout/index.js';
14
14
  import { composeEventHandlers } from '../../tools/events.js';
15
- import { ArrowRight, ArrowLeft } from '../../internal/keyboard/keys.js';
15
+ import { ArrowRight, ArrowLeft, Enter, Space } from '../../internal/keyboard/keys.js';
16
16
  import { matches } from '../../internal/keyboard/match.js';
17
17
  import { getNextIndex } from '../../internal/keyboard/navigation.js';
18
18
  import { PrefixContext } from '../../internal/usePrefix.js';
@@ -75,7 +75,7 @@ const ContentSwitcher = ({
75
75
  });
76
76
  }
77
77
  }
78
- } else if (selectedIndex !== index) {
78
+ } else if (selectedIndex !== index && (isKeyboardEvent(event) ? matches(event, [Enter, Space]) : true)) {
79
79
  setSelectedIndex(index);
80
80
  focusSwitch(index);
81
81
  onChange(event);
@@ -6,6 +6,8 @@
6
6
  */
7
7
  import React from 'react';
8
8
  import { TranslateWithId } from '../../types/common';
9
+ type TooltipAlignment = 'start' | 'center' | 'end';
10
+ type TooltipPosition = 'top' | 'right' | 'bottom' | 'left';
9
11
  declare const translationIds: {
10
12
  readonly 'carbon.pagination-nav.next': "Next";
11
13
  readonly 'carbon.pagination-nav.previous': "Previous";
@@ -34,6 +36,14 @@ export interface DirectionButtonProps {
34
36
  * The callback function called when the button is clicked.
35
37
  */
36
38
  onClick?: React.MouseEventHandler;
39
+ /**
40
+ * Specify the alignment of the tooltip for the icon-only next/prev buttons.
41
+ */
42
+ tooltipAlignment?: TooltipAlignment;
43
+ /**
44
+ * Specify the position of the tooltip for the icon-only next/prev buttons.
45
+ */
46
+ tooltipPosition?: TooltipPosition;
37
47
  }
38
48
  export interface PaginationItemProps extends TranslateWithId<'carbon.pagination-nav.item' | 'carbon.pagination-nav.active'> {
39
49
  /**
@@ -98,6 +108,16 @@ export interface PaginationNavProps extends Omit<React.HTMLAttributes<HTMLElemen
98
108
  * Specify the size of the PaginationNav.
99
109
  */
100
110
  size?: 'sm' | 'md' | 'lg';
111
+ /**
112
+ * Specify the alignment of the tooltip for the icon-only next/prev buttons.
113
+ * Can be one of: start, center, or end.
114
+ */
115
+ tooltipAlignment?: TooltipAlignment;
116
+ /**
117
+ * Specify the position of the tooltip for the icon-only next/prev buttons.
118
+ * Can be one of: top, right, bottom, or left.
119
+ */
120
+ tooltipPosition?: TooltipPosition;
101
121
  /**
102
122
  * The total number of items.
103
123
  */
@@ -68,13 +68,16 @@ function DirectionButton({
68
68
  direction,
69
69
  label,
70
70
  disabled,
71
- onClick
71
+ onClick,
72
+ tooltipAlignment = 'center',
73
+ tooltipPosition = 'bottom'
72
74
  }) {
73
75
  const prefix = usePrefix();
76
+ const align = tooltipAlignment === 'center' ? tooltipPosition : `${tooltipPosition}-${tooltipAlignment}`;
74
77
  return /*#__PURE__*/React.createElement("li", {
75
78
  className: `${prefix}--pagination-nav__list-item`
76
79
  }, /*#__PURE__*/React.createElement(IconButton, {
77
- align: "bottom",
80
+ align: align,
78
81
  disabled: disabled,
79
82
  kind: "ghost",
80
83
  label: label,
@@ -173,6 +176,8 @@ const PaginationNav = /*#__PURE__*/React.forwardRef(({
173
176
  page = 0,
174
177
  loop = false,
175
178
  size = 'lg',
179
+ tooltipAlignment,
180
+ tooltipPosition,
176
181
  translateWithId: t = translateWithId,
177
182
  ...rest
178
183
  }, ref) => {
@@ -276,7 +281,9 @@ const PaginationNav = /*#__PURE__*/React.forwardRef(({
276
281
  "aria-label": t('carbon.pagination-nav.previous'),
277
282
  label: t('carbon.pagination-nav.previous'),
278
283
  disabled: backwardButtonDisabled,
279
- onClick: jumpToPrevious
284
+ onClick: jumpToPrevious,
285
+ tooltipAlignment: tooltipAlignment,
286
+ tooltipPosition: tooltipPosition
280
287
  }),
281
288
  // render first item if at least 5 items can be displayed or
282
289
  // 4 items can be displayed and the current page is either 0 or 1
@@ -321,7 +328,9 @@ const PaginationNav = /*#__PURE__*/React.forwardRef(({
321
328
  "aria-label": t('carbon.pagination-nav.next'),
322
329
  label: t('carbon.pagination-nav.next'),
323
330
  disabled: forwardButtonDisabled,
324
- onClick: jumpToNext
331
+ onClick: jumpToNext,
332
+ tooltipAlignment: tooltipAlignment,
333
+ tooltipPosition: tooltipPosition
325
334
  })), /*#__PURE__*/React.createElement("div", {
326
335
  "aria-live": "polite",
327
336
  "aria-atomic": "true",
@@ -344,7 +353,17 @@ DirectionButton.propTypes = {
344
353
  /**
345
354
  * The callback function called when the button is clicked.
346
355
  */
347
- onClick: PropTypes.func
356
+ onClick: PropTypes.func,
357
+ /**
358
+ * Specify how the tooltip should align with the navigation button.
359
+ * Can be one of: start, center, or end.
360
+ */
361
+ tooltipAlignment: PropTypes.oneOf(['start', 'center', 'end']),
362
+ /**
363
+ * Specify the position of the tooltip relative to the navigation button.
364
+ * Can be one of: top, right, bottom, or left.
365
+ */
366
+ tooltipPosition: PropTypes.oneOf(['top', 'right', 'bottom', 'left'])
348
367
  };
349
368
  PaginationItem.propTypes = {
350
369
  /**
@@ -415,6 +434,16 @@ PaginationNav.propTypes = {
415
434
  * Specify the size of the PaginationNav.
416
435
  */
417
436
  size: PropTypes.oneOf(['sm', 'md', 'lg']),
437
+ /**
438
+ * Specify the alignment of the tooltip for the icon-only prev/next buttons.
439
+ * Can be one of: start, center, or end.
440
+ */
441
+ tooltipAlignment: PropTypes.oneOf(['start', 'center', 'end']),
442
+ /**
443
+ * Specify the position of the tooltip for the icon-only prev/next buttons.
444
+ * Can be one of: top, right, bottom, or left.
445
+ */
446
+ tooltipPosition: PropTypes.oneOf(['top', 'right', 'bottom', 'left']),
418
447
  /**
419
448
  * The total number of items.
420
449
  */
package/es/index.d.ts CHANGED
@@ -33,7 +33,10 @@ export * from './components/ErrorBoundary';
33
33
  export * from './components/ExpandableSearch';
34
34
  export { FeatureFlags, useFeatureFlag, useFeatureFlags, FeatureFlags as unstable_FeatureFlags, // this export can be removed in v12
35
35
  useFeatureFlag as unstable_useFeatureFlag, // this export can be removed in v12
36
- useFeatureFlags as unstable_useFeatureFlags, } from './components/FeatureFlags';
36
+ useFeatureFlags as unstable_useFeatureFlags, // this export can be removed in v12
37
+ FeatureFlags as preview_FeatureFlags, // this export can be removed in v12
38
+ useFeatureFlag as preview_useFeatureFlag, // this export can be removed in v12
39
+ useFeatureFlags as preview_useFeatureFlags, } from './components/FeatureFlags';
37
40
  export * from './components/FileUploader';
38
41
  export * from './components/FluidForm';
39
42
  export * from './components/Form';
@@ -58,6 +61,7 @@ export * from './components/OrderedList';
58
61
  export * from './components/OverflowMenu';
59
62
  export * from './components/OverflowMenuItem';
60
63
  export * as unstable__PageHeader from './components/PageHeader';
64
+ export * as preview__PageHeader from './components/PageHeader';
61
65
  export * as preview__Dialog from './components/Dialog';
62
66
  export * from './components/Pagination';
63
67
  export * from './components/Pagination/Pagination.Skeleton';
@@ -99,36 +103,36 @@ export * from './components/Toggletip';
99
103
  export * from './components/TreeView';
100
104
  export * from './components/UIShell';
101
105
  export * from './components/UnorderedList';
102
- export { FluidComboBox, FluidComboBoxSkeleton, FluidComboBox as unstable__FluidComboBox, FluidComboBoxSkeleton as unstable__FluidComboBoxSkeleton, } from './components/FluidComboBox';
103
- export { FluidDatePicker, FluidDatePickerSkeleton, FluidDatePicker as unstable__FluidDatePicker, FluidDatePickerSkeleton as unstable__FluidDatePickerSkeleton, } from './components/FluidDatePicker';
104
- export { FluidDatePickerInput, FluidDatePickerInput as unstable__FluidDatePickerInput, } from './components/FluidDatePickerInput';
105
- export { FluidDropdown, FluidDropdownSkeleton, FluidDropdown as unstable__FluidDropdown, FluidDropdownSkeleton as unstable__FluidDropdownSkeleton, } from './components/FluidDropdown';
106
- export { FluidMultiSelect, FluidMultiSelectSkeleton, FluidMultiSelect as unstable__FluidMultiSelect, FluidMultiSelectSkeleton as unstable__FluidMultiSelectSkeleton, } from './components/FluidMultiSelect';
107
- export { FluidSelect, FluidSelectSkeleton, FluidSelect as unstable__FluidSelect, FluidSelectSkeleton as unstable__FluidSelectSkeleton, } from './components/FluidSelect';
108
- export { FluidSearch, FluidSearchSkeleton, FluidSearch as unstable__FluidSearch, FluidSearchSkeleton as unstable__FluidSearchSkeleton, } from './components/FluidSearch';
109
- export { FluidTextArea, FluidTextAreaSkeleton, FluidTextArea as unstable__FluidTextArea, FluidTextAreaSkeleton as unstable__FluidTextAreaSkeleton, } from './components/FluidTextArea';
110
- export { FluidTextInput, FluidTextInputSkeleton, FluidTextInput as unstable__FluidTextInput, FluidTextInputSkeleton as unstable__FluidTextInputSkeleton, } from './components/FluidTextInput';
111
- export { FluidNumberInput, FluidNumberInputSkeleton, FluidNumberInput as unstable__FluidNumberInput, FluidNumberInputSkeleton as unstable__FluidNumberInputSkeleton, } from './components/FluidNumberInput';
112
- export { FluidTimePicker, FluidTimePickerSkeleton, FluidTimePicker as unstable__FluidTimePicker, FluidTimePickerSkeleton as unstable__FluidTimePickerSkeleton, } from './components/FluidTimePicker';
113
- export { FluidTimePickerSelect, FluidTimePickerSelect as unstable__FluidTimePickerSelect, } from './components/FluidTimePickerSelect';
106
+ export { FluidComboBox, FluidComboBoxSkeleton, FluidComboBox as unstable__FluidComboBox, FluidComboBoxSkeleton as unstable__FluidComboBoxSkeleton, FluidComboBox as preview__FluidComboBox, FluidComboBoxSkeleton as preview__FluidComboBoxSkeleton, } from './components/FluidComboBox';
107
+ export { FluidDatePicker, FluidDatePickerSkeleton, FluidDatePicker as unstable__FluidDatePicker, FluidDatePickerSkeleton as unstable__FluidDatePickerSkeleton, FluidDatePicker as preview__FluidDatePicker, FluidDatePickerSkeleton as preview__FluidDatePickerSkeleton, } from './components/FluidDatePicker';
108
+ export { FluidDatePickerInput, FluidDatePickerInput as unstable__FluidDatePickerInput, FluidDatePickerInput as preview__FluidDatePickerInput, } from './components/FluidDatePickerInput';
109
+ export { FluidDropdown, FluidDropdownSkeleton, FluidDropdown as unstable__FluidDropdown, FluidDropdownSkeleton as unstable__FluidDropdownSkeleton, FluidDropdown as preview__FluidDropdown, FluidDropdownSkeleton as preview__FluidDropdownSkeleton, } from './components/FluidDropdown';
110
+ export { FluidMultiSelect, FluidMultiSelectSkeleton, FluidMultiSelect as unstable__FluidMultiSelect, FluidMultiSelectSkeleton as unstable__FluidMultiSelectSkeleton, FluidMultiSelect as preview__FluidMultiSelect, FluidMultiSelectSkeleton as preview__FluidMultiSelectSkeleton, } from './components/FluidMultiSelect';
111
+ export { FluidSelect, FluidSelectSkeleton, FluidSelect as unstable__FluidSelect, FluidSelectSkeleton as unstable__FluidSelectSkeleton, FluidSelect as preview__FluidSelect, FluidSelectSkeleton as preview__FluidSelectSkeleton, } from './components/FluidSelect';
112
+ export { FluidSearch, FluidSearchSkeleton, FluidSearch as unstable__FluidSearch, FluidSearchSkeleton as unstable__FluidSearchSkeleton, FluidSearch as preview__FluidSearch, FluidSearchSkeleton as preview__FluidSearchSkeleton, } from './components/FluidSearch';
113
+ export { FluidTextArea, FluidTextAreaSkeleton, FluidTextArea as unstable__FluidTextArea, FluidTextAreaSkeleton as unstable__FluidTextAreaSkeleton, FluidTextArea as preview__FluidTextArea, FluidTextAreaSkeleton as preview__FluidTextAreaSkeleton, } from './components/FluidTextArea';
114
+ export { FluidTextInput, FluidTextInputSkeleton, FluidTextInput as unstable__FluidTextInput, FluidTextInputSkeleton as unstable__FluidTextInputSkeleton, FluidTextInput as preview__FluidTextInput, FluidTextInputSkeleton as preview__FluidTextInputSkeleton, } from './components/FluidTextInput';
115
+ export { FluidNumberInput, FluidNumberInputSkeleton, FluidNumberInput as unstable__FluidNumberInput, FluidNumberInputSkeleton as unstable__FluidNumberInputSkeleton, FluidNumberInput as preview__FluidNumberInput, FluidNumberInputSkeleton as preview__FluidNumberInputSkeleton, } from './components/FluidNumberInput';
116
+ export { FluidTimePicker, FluidTimePickerSkeleton, FluidTimePicker as unstable__FluidTimePicker, FluidTimePickerSkeleton as unstable__FluidTimePickerSkeleton, FluidTimePicker as preview__FluidTimePicker, FluidTimePickerSkeleton as preview__FluidTimePickerSkeleton, } from './components/FluidTimePicker';
117
+ export { FluidTimePickerSelect, FluidTimePickerSelect as unstable__FluidTimePickerSelect, FluidTimePickerSelect as preview__FluidTimePickerSelect, } from './components/FluidTimePickerSelect';
114
118
  export * from './components/Heading';
115
119
  export * from './components/IconButton';
116
120
  export * from './components/Layer';
117
- export { Layout as unstable_Layout } from './components/Layout';
118
- export { LayoutDirection as unstable_LayoutDirection, useLayoutDirection as unstable_useLayoutDirection, } from './components/LayoutDirection';
119
- export { OverflowMenuV2 as unstable_OverflowMenuV2 } from './components/OverflowMenuV2';
120
- export { PageSelector as unstable_PageSelector, Pagination as unstable_Pagination, } from './components/Pagination/experimental';
121
+ export { Layout as unstable_Layout, Layout as preview_Layout, } from './components/Layout';
122
+ export { LayoutDirection as unstable_LayoutDirection, useLayoutDirection as unstable_useLayoutDirection, LayoutDirection as preview_LayoutDirection, useLayoutDirection as preview_useLayoutDirection, } from './components/LayoutDirection';
123
+ export { OverflowMenuV2 as unstable_OverflowMenuV2, OverflowMenuV2 as preview_OverflowMenuV2, } from './components/OverflowMenuV2';
124
+ export { PageSelector as unstable_PageSelector, Pagination as unstable_Pagination, PageSelector as preview_PageSelector, Pagination as preview_Pagination, } from './components/Pagination/experimental';
121
125
  export * from './components/Popover';
122
126
  export * from './components/ProgressBar';
123
127
  export { AILabel, AILabelContent, AILabelActions } from './components/AILabel';
124
- export { IconIndicator as unstable__IconIndicator } from './components/IconIndicator';
125
- export { ShapeIndicator as unstable__ShapeIndicator } from './components/ShapeIndicator';
126
- export { AILabel as unstable__Slug, AILabelContent as unstable__SlugContent, AILabelActions as unstable__SlugActions, } from './components/AILabel';
127
- export { ChatButton as unstable__ChatButton, ChatButtonSkeleton as unstable__ChatButtonSkeleton, } from './components/ChatButton';
128
+ export { IconIndicator as unstable__IconIndicator, IconIndicator as preview__IconIndicator, } from './components/IconIndicator';
129
+ export { ShapeIndicator as unstable__ShapeIndicator, ShapeIndicator as preview__ShapeIndicator, } from './components/ShapeIndicator';
130
+ export { AILabel as unstable__Slug, AILabelContent as unstable__SlugContent, AILabelActions as unstable__SlugActions, AILabel as preview__Slug, AILabelContent as preview__SlugContent, AILabelActions as preview__SlugActions, } from './components/AILabel';
131
+ export { ChatButton as unstable__ChatButton, ChatButtonSkeleton as unstable__ChatButtonSkeleton, ChatButton as preview__ChatButton, ChatButtonSkeleton as preview__ChatButtonSkeleton, } from './components/ChatButton';
128
132
  export { AISkeletonText, AISkeletonIcon, AISkeletonPlaceholder, } from './components/AISkeleton';
129
- export { AISkeletonText as unstable__AiSkeletonText, AISkeletonIcon as unstable__AiSkeletonIcon, AISkeletonPlaceholder as unstable__AiSkeletonPlaceholder, } from './components/AISkeleton';
133
+ export { AISkeletonText as unstable__AiSkeletonText, AISkeletonIcon as unstable__AiSkeletonIcon, AISkeletonPlaceholder as unstable__AiSkeletonPlaceholder, AISkeletonText as preview__AiSkeletonText, AISkeletonIcon as preview__AiSkeletonIcon, AISkeletonPlaceholder as preview__AiSkeletonPlaceholder, } from './components/AISkeleton';
130
134
  export * from './components/Tooltip';
131
- export { Text as unstable_Text, TextDirection as unstable_TextDirection, } from './components/Text';
135
+ export { Text as unstable_Text, TextDirection as unstable_TextDirection, Text as preview_Text, TextDirection as preview_TextDirection, } from './components/Text';
132
136
  export * from './components/Tooltip/DefinitionTooltip';
133
137
  export * from './components/Theme';
134
138
  export * from './internal/usePrefix';
package/es/index.js CHANGED
@@ -66,7 +66,7 @@ export { default as DropdownSkeleton } from './components/Dropdown/Dropdown.Skel
66
66
  export { default as ErrorBoundary } from './components/ErrorBoundary/ErrorBoundary.js';
67
67
  export { ErrorBoundaryContext } from './components/ErrorBoundary/ErrorBoundaryContext.js';
68
68
  export { default as ExpandableSearch } from './components/ExpandableSearch/ExpandableSearch.js';
69
- export { FeatureFlags, FeatureFlags as unstable_FeatureFlags, useFeatureFlag as unstable_useFeatureFlag, useFeatureFlags as unstable_useFeatureFlags, useFeatureFlag, useFeatureFlags } from './components/FeatureFlags/index.js';
69
+ export { FeatureFlags, FeatureFlags as preview_FeatureFlags, useFeatureFlag as preview_useFeatureFlag, useFeatureFlags as preview_useFeatureFlags, FeatureFlags as unstable_FeatureFlags, useFeatureFlag as unstable_useFeatureFlag, useFeatureFlags as unstable_useFeatureFlags, useFeatureFlag, useFeatureFlags } from './components/FeatureFlags/index.js';
70
70
  export { default as FileUploader } from './components/FileUploader/FileUploader.js';
71
71
  export { default as Filename } from './components/FileUploader/Filename.js';
72
72
  export { default as FileUploaderSkeleton } from './components/FileUploader/FileUploader.Skeleton.js';
@@ -105,6 +105,7 @@ export { default as OrderedList } from './components/OrderedList/OrderedList.js'
105
105
  export { default as OverflowMenu } from './components/OverflowMenu/index.js';
106
106
  export { default as OverflowMenuItem } from './components/OverflowMenuItem/OverflowMenuItem.js';
107
107
  import * as index from './components/PageHeader/index.js';
108
+ export { index as preview__PageHeader };
108
109
  export { index as unstable__PageHeader };
109
110
  import * as index$1 from './components/Dialog/index.js';
110
111
  export { index$1 as preview__Dialog };
@@ -191,55 +192,55 @@ export { default as SideNavMenu } from './components/UIShell/SideNavMenu.js';
191
192
  export { default as SideNavMenuItem } from './components/UIShell/SideNavMenuItem.js';
192
193
  export { default as SideNavSwitcher } from './components/UIShell/SideNavSwitcher.js';
193
194
  export { default as UnorderedList } from './components/UnorderedList/UnorderedList.js';
194
- export { default as FluidComboBox, default as unstable__FluidComboBox } from './components/FluidComboBox/FluidComboBox.js';
195
- export { default as FluidComboBoxSkeleton, default as unstable__FluidComboBoxSkeleton } from './components/FluidComboBox/FluidComboBox.Skeleton.js';
196
- export { default as FluidDatePicker, default as unstable__FluidDatePicker } from './components/FluidDatePicker/FluidDatePicker.js';
197
- export { default as FluidDatePickerSkeleton, default as unstable__FluidDatePickerSkeleton } from './components/FluidDatePicker/FluidDatePicker.Skeleton.js';
198
- export { default as FluidDatePickerInput, default as unstable__FluidDatePickerInput } from './components/FluidDatePickerInput/FluidDatePickerInput.js';
199
- export { default as FluidDropdown, default as unstable__FluidDropdown } from './components/FluidDropdown/FluidDropdown.js';
200
- export { default as FluidDropdownSkeleton, default as unstable__FluidDropdownSkeleton } from './components/FluidDropdown/FluidDropdown.Skeleton.js';
201
- export { default as FluidMultiSelect, default as unstable__FluidMultiSelect } from './components/FluidMultiSelect/FluidMultiSelect.js';
202
- export { default as FluidMultiSelectSkeleton, default as unstable__FluidMultiSelectSkeleton } from './components/FluidMultiSelect/FluidMultiSelect.Skeleton.js';
203
- export { default as FluidSelect, default as unstable__FluidSelect } from './components/FluidSelect/FluidSelect.js';
204
- export { default as FluidSelectSkeleton, default as unstable__FluidSelectSkeleton } from './components/FluidSelect/FluidSelect.Skeleton.js';
205
- export { default as FluidSearch, default as unstable__FluidSearch } from './components/FluidSearch/FluidSearch.js';
206
- export { default as FluidSearchSkeleton, default as unstable__FluidSearchSkeleton } from './components/FluidSearch/FluidSearch.Skeleton.js';
207
- export { default as FluidTextArea, default as unstable__FluidTextArea } from './components/FluidTextArea/FluidTextArea.js';
208
- export { default as FluidTextAreaSkeleton, default as unstable__FluidTextAreaSkeleton } from './components/FluidTextArea/FluidTextArea.Skeleton.js';
209
- export { default as FluidTextInput, default as unstable__FluidTextInput } from './components/FluidTextInput/FluidTextInput.js';
195
+ export { default as FluidComboBox, default as preview__FluidComboBox, default as unstable__FluidComboBox } from './components/FluidComboBox/FluidComboBox.js';
196
+ export { default as FluidComboBoxSkeleton, default as preview__FluidComboBoxSkeleton, default as unstable__FluidComboBoxSkeleton } from './components/FluidComboBox/FluidComboBox.Skeleton.js';
197
+ export { default as FluidDatePicker, default as preview__FluidDatePicker, default as unstable__FluidDatePicker } from './components/FluidDatePicker/FluidDatePicker.js';
198
+ export { default as FluidDatePickerSkeleton, default as preview__FluidDatePickerSkeleton, default as unstable__FluidDatePickerSkeleton } from './components/FluidDatePicker/FluidDatePicker.Skeleton.js';
199
+ export { default as FluidDatePickerInput, default as preview__FluidDatePickerInput, default as unstable__FluidDatePickerInput } from './components/FluidDatePickerInput/FluidDatePickerInput.js';
200
+ export { default as FluidDropdown, default as preview__FluidDropdown, default as unstable__FluidDropdown } from './components/FluidDropdown/FluidDropdown.js';
201
+ export { default as FluidDropdownSkeleton, default as preview__FluidDropdownSkeleton, default as unstable__FluidDropdownSkeleton } from './components/FluidDropdown/FluidDropdown.Skeleton.js';
202
+ export { default as FluidMultiSelect, default as preview__FluidMultiSelect, default as unstable__FluidMultiSelect } from './components/FluidMultiSelect/FluidMultiSelect.js';
203
+ export { default as FluidMultiSelectSkeleton, default as preview__FluidMultiSelectSkeleton, default as unstable__FluidMultiSelectSkeleton } from './components/FluidMultiSelect/FluidMultiSelect.Skeleton.js';
204
+ export { default as FluidSelect, default as preview__FluidSelect, default as unstable__FluidSelect } from './components/FluidSelect/FluidSelect.js';
205
+ export { default as FluidSelectSkeleton, default as preview__FluidSelectSkeleton, default as unstable__FluidSelectSkeleton } from './components/FluidSelect/FluidSelect.Skeleton.js';
206
+ export { default as FluidSearch, default as preview__FluidSearch, default as unstable__FluidSearch } from './components/FluidSearch/FluidSearch.js';
207
+ export { default as FluidSearchSkeleton, default as preview__FluidSearchSkeleton, default as unstable__FluidSearchSkeleton } from './components/FluidSearch/FluidSearch.Skeleton.js';
208
+ export { default as FluidTextArea, default as preview__FluidTextArea, default as unstable__FluidTextArea } from './components/FluidTextArea/FluidTextArea.js';
209
+ export { default as FluidTextAreaSkeleton, default as preview__FluidTextAreaSkeleton, default as unstable__FluidTextAreaSkeleton } from './components/FluidTextArea/FluidTextArea.Skeleton.js';
210
+ export { default as FluidTextInput, default as preview__FluidTextInput, default as unstable__FluidTextInput } from './components/FluidTextInput/FluidTextInput.js';
210
211
  import './components/FluidTextInput/FluidPasswordInput.js';
211
- export { default as FluidTextInputSkeleton, default as unstable__FluidTextInputSkeleton } from './components/FluidTextInput/FluidTextInput.Skeleton.js';
212
- export { default as FluidNumberInput, default as unstable__FluidNumberInput } from './components/FluidNumberInput/FluidNumberInput.js';
213
- export { default as FluidNumberInputSkeleton, default as unstable__FluidNumberInputSkeleton } from './components/FluidNumberInput/FluidNumberInput.Skeleton.js';
214
- export { default as FluidTimePicker, default as unstable__FluidTimePicker } from './components/FluidTimePicker/FluidTimePicker.js';
215
- export { default as FluidTimePickerSkeleton, default as unstable__FluidTimePickerSkeleton } from './components/FluidTimePicker/FluidTimePicker.Skeleton.js';
216
- export { default as FluidTimePickerSelect, default as unstable__FluidTimePickerSelect } from './components/FluidTimePickerSelect/FluidTimePickerSelect.js';
212
+ export { default as FluidTextInputSkeleton, default as preview__FluidTextInputSkeleton, default as unstable__FluidTextInputSkeleton } from './components/FluidTextInput/FluidTextInput.Skeleton.js';
213
+ export { default as FluidNumberInput, default as preview__FluidNumberInput, default as unstable__FluidNumberInput } from './components/FluidNumberInput/FluidNumberInput.js';
214
+ export { default as FluidNumberInputSkeleton, default as preview__FluidNumberInputSkeleton, default as unstable__FluidNumberInputSkeleton } from './components/FluidNumberInput/FluidNumberInput.Skeleton.js';
215
+ export { default as FluidTimePicker, default as preview__FluidTimePicker, default as unstable__FluidTimePicker } from './components/FluidTimePicker/FluidTimePicker.js';
216
+ export { default as FluidTimePickerSkeleton, default as preview__FluidTimePickerSkeleton, default as unstable__FluidTimePickerSkeleton } from './components/FluidTimePicker/FluidTimePicker.Skeleton.js';
217
+ export { default as FluidTimePickerSelect, default as preview__FluidTimePickerSelect, default as unstable__FluidTimePickerSelect } from './components/FluidTimePickerSelect/FluidTimePickerSelect.js';
217
218
  export { Heading, Section } from './components/Heading/index.js';
218
219
  export { IconButton, IconButtonKinds } from './components/IconButton/index.js';
219
220
  export { Layer, useLayer } from './components/Layer/index.js';
220
- export { Layout as unstable_Layout } from './components/Layout/index.js';
221
- export { LayoutDirection as unstable_LayoutDirection } from './components/LayoutDirection/LayoutDirection.js';
222
- export { useLayoutDirection as unstable_useLayoutDirection } from './components/LayoutDirection/useLayoutDirection.js';
223
- export { OverflowMenuV2 as unstable_OverflowMenuV2 } from './components/OverflowMenuV2/index.js';
221
+ export { Layout as preview_Layout, Layout as unstable_Layout } from './components/Layout/index.js';
222
+ export { LayoutDirection as preview_LayoutDirection, LayoutDirection as unstable_LayoutDirection } from './components/LayoutDirection/LayoutDirection.js';
223
+ export { useLayoutDirection as preview_useLayoutDirection, useLayoutDirection as unstable_useLayoutDirection } from './components/LayoutDirection/useLayoutDirection.js';
224
+ export { OverflowMenuV2 as preview_OverflowMenuV2, OverflowMenuV2 as unstable_OverflowMenuV2 } from './components/OverflowMenuV2/index.js';
224
225
  export { Popover, PopoverContent } from './components/Popover/index.js';
225
226
  export { default as ProgressBar } from './components/ProgressBar/ProgressBar.js';
226
- export { AILabel, AILabelActions, AILabelContent, AILabel as unstable__Slug, AILabelActions as unstable__SlugActions, AILabelContent as unstable__SlugContent } from './components/AILabel/index.js';
227
- export { IconIndicator as unstable__IconIndicator } from './components/IconIndicator/index.js';
228
- export { ShapeIndicator as unstable__ShapeIndicator } from './components/ShapeIndicator/index.js';
229
- export { default as unstable__ChatButton } from './components/ChatButton/ChatButton.js';
230
- export { default as unstable__ChatButtonSkeleton } from './components/ChatButton/ChatButton.Skeleton.js';
231
- export { default as AISkeletonPlaceholder, default as unstable__AiSkeletonPlaceholder } from './components/AISkeleton/AISkeletonPlaceholder.js';
232
- export { default as AISkeletonIcon, default as unstable__AiSkeletonIcon } from './components/AISkeleton/AISkeletonIcon.js';
233
- export { default as AISkeletonText, default as unstable__AiSkeletonText } from './components/AISkeleton/AISkeletonText.js';
227
+ export { AILabel, AILabelActions, AILabelContent, AILabel as preview__Slug, AILabelActions as preview__SlugActions, AILabelContent as preview__SlugContent, AILabel as unstable__Slug, AILabelActions as unstable__SlugActions, AILabelContent as unstable__SlugContent } from './components/AILabel/index.js';
228
+ export { IconIndicator as preview__IconIndicator, IconIndicator as unstable__IconIndicator } from './components/IconIndicator/index.js';
229
+ export { ShapeIndicator as preview__ShapeIndicator, ShapeIndicator as unstable__ShapeIndicator } from './components/ShapeIndicator/index.js';
230
+ export { default as preview__ChatButton, default as unstable__ChatButton } from './components/ChatButton/ChatButton.js';
231
+ export { default as preview__ChatButtonSkeleton, default as unstable__ChatButtonSkeleton } from './components/ChatButton/ChatButton.Skeleton.js';
232
+ export { default as AISkeletonPlaceholder, default as preview__AiSkeletonPlaceholder, default as unstable__AiSkeletonPlaceholder } from './components/AISkeleton/AISkeletonPlaceholder.js';
233
+ export { default as AISkeletonIcon, default as preview__AiSkeletonIcon, default as unstable__AiSkeletonIcon } from './components/AISkeleton/AISkeletonIcon.js';
234
+ export { default as AISkeletonText, default as preview__AiSkeletonText, default as unstable__AiSkeletonText } from './components/AISkeleton/AISkeletonText.js';
234
235
  export { DefinitionTooltip } from './components/Tooltip/DefinitionTooltip.js';
235
236
  export { Tooltip } from './components/Tooltip/Tooltip.js';
236
237
  import './components/Text/index.js';
237
238
  export { GlobalTheme, Theme, ThemeContext, usePrefersDarkScheme, useTheme } from './components/Theme/index.js';
238
239
  export { PrefixContext, usePrefix } from './internal/usePrefix.js';
239
240
  export { useIdPrefix } from './internal/useIdPrefix.js';
240
- export { default as unstable_PageSelector } from './components/Pagination/experimental/PageSelector.js';
241
- export { default as unstable_Pagination } from './components/Pagination/experimental/Pagination.js';
241
+ export { default as preview_PageSelector, default as unstable_PageSelector } from './components/Pagination/experimental/PageSelector.js';
242
+ export { default as preview_Pagination, default as unstable_Pagination } from './components/Pagination/experimental/Pagination.js';
242
243
  export { default as ContainedListItem } from './components/ContainedList/ContainedListItem/ContainedListItem.js';
243
244
  export { default as ContainedList } from './components/ContainedList/ContainedList.js';
244
- export { Text as unstable_Text } from './components/Text/Text.js';
245
- export { TextDirection as unstable_TextDirection } from './components/Text/TextDirection.js';
245
+ export { Text as preview_Text, Text as unstable_Text } from './components/Text/Text.js';
246
+ export { TextDirection as preview_TextDirection, TextDirection as unstable_TextDirection } from './components/Text/TextDirection.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2023
2
+ * Copyright IBM Corp. 2016, 2025
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -11,14 +11,39 @@ export interface BreadcrumbSkeletonProps extends React.HTMLAttributes<HTMLDivEle
11
11
  * Specify an optional className to add.
12
12
  */
13
13
  className?: string;
14
+ /**
15
+ * Specify the number of items
16
+ */
17
+ items?: number;
18
+ /**
19
+ * Optional prop to omit the trailing slash for the breadcrumbs
20
+ */
21
+ noTrailingSlash?: boolean;
22
+ /**
23
+ * Specify the size of the Breadcrumb. Currently
24
+ * supports the following: `sm` & `md` (default: 'md')
25
+ */
26
+ size?: 'sm' | 'md';
14
27
  }
15
- declare function BreadcrumbSkeleton({ className, ...rest }: BreadcrumbSkeletonProps): import("react/jsx-runtime").JSX.Element;
28
+ declare function BreadcrumbSkeleton({ className, items, noTrailingSlash, size, ...rest }: BreadcrumbSkeletonProps): import("react/jsx-runtime").JSX.Element;
16
29
  declare namespace BreadcrumbSkeleton {
17
30
  var propTypes: {
18
31
  /**
19
32
  * Specify an optional className to add.
20
33
  */
21
34
  className: PropTypes.Requireable<string>;
35
+ /**
36
+ * Specify the number of items
37
+ */
38
+ items: PropTypes.Requireable<number>;
39
+ /**
40
+ * Optional prop to omit the trailing slash for the breadcrumbs
41
+ */
42
+ noTrailingSlash: PropTypes.Requireable<boolean>;
43
+ /**
44
+ * Specify the size of the Breadcrumb. Currently supports the following: `sm` & `md` (default: 'md')
45
+ */
46
+ size: PropTypes.Requireable<string>;
22
47
  };
23
48
  }
24
49
  export default BreadcrumbSkeleton;
@@ -15,7 +15,6 @@ var React = require('react');
15
15
  var cx = require('classnames');
16
16
  var usePrefix = require('../../internal/usePrefix.js');
17
17
 
18
- var _Item, _Item2, _Item3;
19
18
  function Item() {
20
19
  const prefix = usePrefix.usePrefix();
21
20
  return /*#__PURE__*/React.createElement("div", {
@@ -26,19 +25,43 @@ function Item() {
26
25
  }
27
26
  function BreadcrumbSkeleton({
28
27
  className,
28
+ items = 3,
29
+ noTrailingSlash,
30
+ size,
29
31
  ...rest
30
32
  }) {
31
33
  const prefix = usePrefix.usePrefix();
32
- const classes = cx(`${prefix}--breadcrumb`, `${prefix}--skeleton`, className);
34
+ const classes = cx({
35
+ [`${prefix}--breadcrumb`]: true,
36
+ [`${prefix}--skeleton`]: true,
37
+ [`${prefix}--breadcrumb--no-trailing-slash`]: noTrailingSlash,
38
+ [`${prefix}--breadcrumb--sm`]: size === 'sm'
39
+ }, className);
33
40
  return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({
34
41
  className: classes
35
- }, rest), _Item || (_Item = /*#__PURE__*/React.createElement(Item, null)), _Item2 || (_Item2 = /*#__PURE__*/React.createElement(Item, null)), _Item3 || (_Item3 = /*#__PURE__*/React.createElement(Item, null)));
42
+ }, rest), Array.from({
43
+ length: items
44
+ }, (_, i) => /*#__PURE__*/React.createElement(Item, {
45
+ key: i
46
+ })));
36
47
  }
37
48
  BreadcrumbSkeleton.propTypes = {
38
49
  /**
39
50
  * Specify an optional className to add.
40
51
  */
41
- className: PropTypes.string
52
+ className: PropTypes.string,
53
+ /**
54
+ * Specify the number of items
55
+ */
56
+ items: PropTypes.number,
57
+ /**
58
+ * Optional prop to omit the trailing slash for the breadcrumbs
59
+ */
60
+ noTrailingSlash: PropTypes.bool,
61
+ /**
62
+ * Specify the size of the Breadcrumb. Currently supports the following: `sm` & `md` (default: 'md')
63
+ */
64
+ size: PropTypes.oneOf(['sm', 'md'])
42
65
  };
43
66
 
44
67
  exports.BreadcrumbSkeleton = BreadcrumbSkeleton;
@@ -57,7 +57,8 @@ Breadcrumb.propTypes = {
57
57
  */
58
58
  noTrailingSlash: PropTypes.bool,
59
59
  /**
60
- * Specify the size of the Breadcrumb. Currently supports the following:
60
+ * Specify the size of the Breadcrumb. Currently
61
+ * supports the following: `sm` & `md` (default: 'md')
61
62
  */
62
63
  size: PropTypes.oneOf(['sm', 'md'])
63
64
  };
@@ -77,7 +77,7 @@ const ContentSwitcher = ({
77
77
  });
78
78
  }
79
79
  }
80
- } else if (selectedIndex !== index) {
80
+ } else if (selectedIndex !== index && (isKeyboardEvent(event) ? match.matches(event, [keys.Enter, keys.Space]) : true)) {
81
81
  setSelectedIndex(index);
82
82
  focusSwitch(index);
83
83
  onChange(event);
@@ -6,6 +6,8 @@
6
6
  */
7
7
  import React from 'react';
8
8
  import { TranslateWithId } from '../../types/common';
9
+ type TooltipAlignment = 'start' | 'center' | 'end';
10
+ type TooltipPosition = 'top' | 'right' | 'bottom' | 'left';
9
11
  declare const translationIds: {
10
12
  readonly 'carbon.pagination-nav.next': "Next";
11
13
  readonly 'carbon.pagination-nav.previous': "Previous";
@@ -34,6 +36,14 @@ export interface DirectionButtonProps {
34
36
  * The callback function called when the button is clicked.
35
37
  */
36
38
  onClick?: React.MouseEventHandler;
39
+ /**
40
+ * Specify the alignment of the tooltip for the icon-only next/prev buttons.
41
+ */
42
+ tooltipAlignment?: TooltipAlignment;
43
+ /**
44
+ * Specify the position of the tooltip for the icon-only next/prev buttons.
45
+ */
46
+ tooltipPosition?: TooltipPosition;
37
47
  }
38
48
  export interface PaginationItemProps extends TranslateWithId<'carbon.pagination-nav.item' | 'carbon.pagination-nav.active'> {
39
49
  /**
@@ -98,6 +108,16 @@ export interface PaginationNavProps extends Omit<React.HTMLAttributes<HTMLElemen
98
108
  * Specify the size of the PaginationNav.
99
109
  */
100
110
  size?: 'sm' | 'md' | 'lg';
111
+ /**
112
+ * Specify the alignment of the tooltip for the icon-only next/prev buttons.
113
+ * Can be one of: start, center, or end.
114
+ */
115
+ tooltipAlignment?: TooltipAlignment;
116
+ /**
117
+ * Specify the position of the tooltip for the icon-only next/prev buttons.
118
+ * Can be one of: top, right, bottom, or left.
119
+ */
120
+ tooltipPosition?: TooltipPosition;
101
121
  /**
102
122
  * The total number of items.
103
123
  */