@innovaccer/design-system 2.38.1 → 2.40.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 (56) hide show
  1. package/CHANGELOG.md +93 -0
  2. package/css/dist/index.css +19 -5
  3. package/css/dist/index.css.map +1 -1
  4. package/css/src/components/message.css +4 -4
  5. package/css/src/components/select.css +1 -0
  6. package/css/src/components/tabs.css +14 -1
  7. package/dist/.lib/tsconfig.type.tsbuildinfo +714 -2614
  8. package/dist/core/common.type.d.ts +1 -0
  9. package/dist/core/components/atoms/popperWrapper/PopperWrapper.d.ts +2 -0
  10. package/dist/core/components/molecules/keyValuePair/KeyElement.d.ts +18 -0
  11. package/dist/core/components/molecules/keyValuePair/KeyValuePair.d.ts +16 -0
  12. package/dist/core/components/molecules/keyValuePair/ValueElement.d.ts +8 -0
  13. package/dist/core/components/molecules/keyValuePair/index.d.ts +2 -0
  14. package/dist/core/components/molecules/popover/Popover.d.ts +1 -0
  15. package/dist/core/components/molecules/tabs/Tabs.d.ts +5 -1
  16. package/dist/core/components/molecules/tabs/TabsWrapper.d.ts +5 -0
  17. package/dist/core/index.d.ts +1 -0
  18. package/dist/core/index.type.d.ts +1 -0
  19. package/dist/figma/ActionCard.figma.d.ts +1 -0
  20. package/dist/figma/Avatar.figma.d.ts +1 -0
  21. package/dist/figma/Backdrop.figma.d.ts +1 -0
  22. package/dist/figma/Badge.figma.d.ts +1 -0
  23. package/dist/figma/Breadcrumbs.figma.d.ts +1 -0
  24. package/dist/figma/Button.figma.d.ts +1 -0
  25. package/dist/figma/Card.figma.d.ts +1 -0
  26. package/dist/figma/Checkbox.figma.d.ts +1 -0
  27. package/dist/figma/Chip.figma.d.ts +1 -0
  28. package/dist/figma/Divider.figma.d.ts +1 -0
  29. package/dist/figma/HelpText.figma.d.ts +1 -0
  30. package/dist/figma/Icon.figma.d.ts +1 -0
  31. package/dist/figma/Input.figma.d.ts +1 -0
  32. package/dist/figma/Label.figma.d.ts +1 -0
  33. package/dist/figma/Link.figma.d.ts +1 -0
  34. package/dist/figma/LinkButton.figma.d.ts +1 -0
  35. package/dist/figma/Message.figma.d.ts +1 -0
  36. package/dist/figma/MetaList.figma.d.ts +1 -0
  37. package/dist/figma/MetricInput.figma.d.ts +1 -0
  38. package/dist/figma/Pill.figma.d.ts +1 -0
  39. package/dist/figma/PlaceholderImage.figma.d.ts +1 -0
  40. package/dist/figma/ProgressBar.figma.d.ts +1 -0
  41. package/dist/figma/ProgressRing.figma.d.ts +1 -0
  42. package/dist/figma/Radio.figma.d.ts +1 -0
  43. package/dist/figma/RangeSlider.figma.d.ts +1 -0
  44. package/dist/figma/SelectionCard.figma.d.ts +1 -0
  45. package/dist/figma/Slider.figma.d.ts +1 -0
  46. package/dist/figma/Spinner.figma.d.ts +1 -0
  47. package/dist/figma/StatusHint.figma.d.ts +1 -0
  48. package/dist/figma/Switch.figma.d.ts +1 -0
  49. package/dist/figma/Toast.figma.d.ts +1 -0
  50. package/dist/index.esm.js +140 -26
  51. package/dist/index.js +137 -31
  52. package/dist/index.js.map +1 -1
  53. package/dist/index.umd.js +1 -1
  54. package/dist/index.umd.js.br +0 -0
  55. package/dist/index.umd.js.gz +0 -0
  56. package/package.json +2 -1
@@ -22,3 +22,4 @@ export declare type OptionType = {
22
22
  };
23
23
  export declare type TListboxSize = 'standard' | 'compressed' | 'tight';
24
24
  export declare type TEmptyStateSize = 'standard' | 'compressed' | 'tight' | 'large' | 'small';
25
+ export declare type TTabSize = 'regular' | 'small';
@@ -34,6 +34,7 @@ export interface PopperWrapperProps {
34
34
  y: number;
35
35
  };
36
36
  computeStyles?: object;
37
+ disabled?: boolean;
37
38
  }
38
39
  interface PopperWrapperState {
39
40
  zIndex?: number;
@@ -55,6 +56,7 @@ export declare class PopperWrapper extends React.Component<PopperWrapperProps, P
55
56
  hoverable: boolean;
56
57
  appendToBody: boolean;
57
58
  style: {};
59
+ disabled: boolean;
58
60
  };
59
61
  constructor(props: PopperWrapperProps);
60
62
  componentDidMount(): void;
@@ -0,0 +1,18 @@
1
+ import * as React from 'react';
2
+ import { IconProps } from "../../../index.type";
3
+ import { BaseProps } from "../../../utils/types";
4
+ declare type IconPosition = 'left' | 'right';
5
+ export interface KeyElementProps extends BaseProps {
6
+ children?: React.ReactNode;
7
+ label?: React.ReactText;
8
+ icon?: string;
9
+ iconOptions?: IconProps;
10
+ iconAlign?: IconPosition;
11
+ }
12
+ export declare const KeyElement: {
13
+ (props: KeyElementProps): JSX.Element;
14
+ defaultProps: {
15
+ iconAlign: string;
16
+ };
17
+ };
18
+ export default KeyElement;
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import { BaseProps } from "../../../utils/types";
3
+ export interface KeyValuePairProps extends BaseProps {
4
+ children: React.ReactNode;
5
+ }
6
+ export declare const KeyValuePair: {
7
+ (props: KeyValuePairProps): JSX.Element;
8
+ Key: {
9
+ (props: import("./KeyElement").KeyElementProps): JSX.Element;
10
+ defaultProps: {
11
+ iconAlign: string;
12
+ };
13
+ };
14
+ Value: (props: import("./ValueElement").ValueElementProps) => JSX.Element;
15
+ };
16
+ export default KeyValuePair;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { BaseProps } from "../../../utils/types";
3
+ export interface ValueElementProps extends BaseProps {
4
+ children?: React.ReactNode;
5
+ value?: React.ReactText;
6
+ }
7
+ export declare const ValueElement: (props: ValueElementProps) => JSX.Element;
8
+ export default ValueElement;
@@ -0,0 +1,2 @@
1
+ export { default } from "./KeyValuePair";
2
+ export * from "./KeyValuePair";
@@ -31,6 +31,7 @@ export interface PopoverProps extends Pick<PopperWrapperProps, PopperProps>, Bas
31
31
  y: number;
32
32
  };
33
33
  computeStyles?: object;
34
+ disabled?: boolean;
34
35
  }
35
36
  export declare const Popover: {
36
37
  (props: PopoverProps): JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { BaseProps, SingleOrArray } from "../../../utils/types";
3
- import { IconType } from "../../../common.type";
3
+ import { IconType, TTabSize } from "../../../common.type";
4
4
  interface TabInfo {
5
5
  label: string;
6
6
  activeIndex: number;
@@ -23,6 +23,8 @@ export interface TabsProps extends BaseProps {
23
23
  children?: SingleOrArray<React.ReactElement>;
24
24
  onTabChange?: (tabIndex: number) => void;
25
25
  headerClassName?: string;
26
+ size?: TTabSize;
27
+ maxWidth?: string | number;
26
28
  }
27
29
  export declare const Tabs: {
28
30
  (props: TabsProps): JSX.Element;
@@ -30,6 +32,8 @@ export declare const Tabs: {
30
32
  defaultProps: {
31
33
  withSeparator: boolean;
32
34
  tabs: never[];
35
+ size: string;
36
+ maxWidth: string;
33
37
  };
34
38
  };
35
39
  export default Tabs;
@@ -1,12 +1,17 @@
1
1
  import * as React from 'react';
2
2
  import { BaseProps, SingleOrArray } from "../../../utils/types";
3
+ import { TTabSize } from "../../../common.type";
3
4
  export interface TabsWrapperProps extends BaseProps {
4
5
  active?: number;
5
6
  children: SingleOrArray<React.ReactElement>;
6
7
  onTabChange?: (tabIndex: number) => void;
8
+ size?: TTabSize;
7
9
  }
8
10
  export declare const TabsWrapper: {
9
11
  (props: TabsWrapperProps): JSX.Element;
10
12
  displayName: string;
13
+ defaultProps: {
14
+ size: string;
15
+ };
11
16
  };
12
17
  export default TabsWrapper;
@@ -92,6 +92,7 @@ export { AvatarSelection } from "./components/atoms/avatarSelection";
92
92
  export { Combobox } from "./components/organisms/combobox";
93
93
  export { Select } from "./components/organisms/select";
94
94
  export { Menu } from "./components/organisms/menu";
95
+ export { KeyValuePair } from "./components/molecules/keyValuePair";
95
96
  export { AIButton } from "./ai-components/AIButton";
96
97
  export { SaraSparkle } from "./ai-components/SaraSparkle";
97
98
  export { Sara } from "./ai-components/Sara";
@@ -92,6 +92,7 @@ export { AvatarSelectionProps } from "./components/atoms/avatarSelection";
92
92
  export { ComboboxProps } from "./components/organisms/combobox";
93
93
  export { SelectProps } from "./components/organisms/select";
94
94
  export { MenuProps } from "./components/organisms/menu";
95
+ export { KeyValuePairProps } from "./components/molecules/keyValuePair";
95
96
  export { SaraSparkleProps } from "./ai-components/SaraSparkle";
96
97
  export { AIButtonProps } from "./ai-components/AIButton";
97
98
  export { SaraProps } from "./ai-components/Sara";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.esm.js CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  /**
3
- * Generated on: 1720783452575
3
+ * Generated on: 1722261465684
4
4
  * Package: @innovaccer/design-system
5
- * Version: v2.38.1
5
+ * Version: v2.40.0
6
6
  * License: MIT
7
7
  * Docs: https://mds.innovaccer.com
8
8
  */
@@ -3142,7 +3142,9 @@ var GenericChip = function GenericChip(props) {
3142
3142
  return labelText;
3143
3143
  };
3144
3144
 
3145
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Tooltip, {
3145
+ return /*#__PURE__*/React.createElement("div", {
3146
+ className: "d-inline-flex"
3147
+ }, /*#__PURE__*/React.createElement(Tooltip, {
3146
3148
  showTooltip: isTextTruncated,
3147
3149
  "data-test": "DesignSystem-GenericChip--Tooltip",
3148
3150
  tooltip: getTooltipText()
@@ -7185,10 +7187,12 @@ var InputMask = /*#__PURE__*/React.forwardRef(function (props, forwardRef) {
7185
7187
  }
7186
7188
  }, [ref.current]);
7187
7189
  var setCursorPosition = React.useCallback(function (val) {
7188
- return setSelectionPos({
7189
- start: val,
7190
- end: val
7191
- });
7190
+ if (document && document.activeElement === ref.current) {
7191
+ setSelectionPos({
7192
+ start: val,
7193
+ end: val
7194
+ });
7195
+ }
7192
7196
  }, [setSelectionPos]);
7193
7197
  var insertAtIndex = React.useCallback(function (currValue, index) {
7194
7198
  var iterator = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
@@ -7676,6 +7680,13 @@ EditableDropdown.defaultProps = {
7676
7680
  };
7677
7681
 
7678
7682
  var _excluded$Q = ["children", "className", "appearance", "size", "disabled"];
7683
+
7684
+ /**
7685
+ *
7686
+ * The choice to use the appearance `subtle` property for the **Link** component, while using the `subtle` boolean prop for the **LinkButton** component, is based on the different roles of typography and action components.
7687
+ * - The **Link** component is primarily a typography element. Typography components use the "appearance" property to define their visual style, ensuring consistency and predictability when styling text-based elements.
7688
+ * - In contrast, the **LinkButton** component is an action component. Action components use "boolean props" to indicate variations in their behavior and appearance. Therefore, the **LinkButton** uses the `subtle` boolean prop to signify a specific visual style that aligns with other button components.
7689
+ */
7679
7690
  var Link = function Link(props) {
7680
7691
  var _classNames;
7681
7692
 
@@ -13840,7 +13851,7 @@ var PopperWrapper = /*#__PURE__*/function (_React$Component) {
13840
13851
 
13841
13852
  _this.state = {
13842
13853
  animationKeyframe: '',
13843
- isOpen: _this.props.open || false,
13854
+ isOpen: _this.props.open && !_this.props.disabled || false,
13844
13855
  uniqueKey: ''
13845
13856
  };
13846
13857
  _this.hoverableDelay = 100;
@@ -13883,7 +13894,7 @@ var PopperWrapper = /*#__PURE__*/function (_React$Component) {
13883
13894
  animationKeyframe: ''
13884
13895
  });
13885
13896
 
13886
- if (this.props.open) {
13897
+ if (this.props.open && !this.props.disabled) {
13887
13898
  var triggerElement = this.triggerRef.current;
13888
13899
  var zIndex = this.getZIndexForLayer(triggerElement);
13889
13900
  this.setState({
@@ -13999,8 +14010,9 @@ var PopperWrapper = /*#__PURE__*/function (_React$Component) {
13999
14010
  var _this$props4 = this.props,
14000
14011
  trigger = _this$props4.trigger,
14001
14012
  on = _this$props4.on,
14002
- triggerClass = _this$props4.triggerClass;
14003
- var options = on === 'hover' ? {
14013
+ triggerClass = _this$props4.triggerClass,
14014
+ disabled = _this$props4.disabled;
14015
+ var options = on === 'hover' && !disabled ? {
14004
14016
  ref: ref,
14005
14017
  onMouseEnter: this.handleMouseEnter,
14006
14018
  onMouseLeave: this.handleMouseLeave,
@@ -14010,8 +14022,7 @@ var PopperWrapper = /*#__PURE__*/function (_React$Component) {
14010
14022
  ref: ref,
14011
14023
  onClick: function onClick(ev) {
14012
14024
  ev.stopPropagation();
14013
-
14014
- _this3.togglePopper('onClick');
14025
+ !disabled && _this3.togglePopper('onClick');
14015
14026
  }
14016
14027
  };
14017
14028
  var classes = classnames('PopperWrapper-trigger', triggerClass);
@@ -14204,7 +14215,8 @@ _defineProperty$1(PopperWrapper, "defaultProps", {
14204
14215
  closeOnBackdropClick: true,
14205
14216
  hoverable: true,
14206
14217
  appendToBody: true,
14207
- style: {}
14218
+ style: {},
14219
+ disabled: false
14208
14220
  });
14209
14221
 
14210
14222
  var _excluded$G = ["position", "customStyle", "dark", "children", "onToggle", "className", "hideOnReferenceEscape", "boundaryElement", "name"];
@@ -18012,7 +18024,8 @@ _defineProperty$1(DateRangePicker, "defaultProps", _objectSpread2(_objectSpread2
18012
18024
  var TabsWrapper = function TabsWrapper(props) {
18013
18025
  var children = props.children,
18014
18026
  onTabChange = props.onTabChange,
18015
- className = props.className;
18027
+ className = props.className,
18028
+ size = props.size;
18016
18029
  var baseProps = extractBaseProps(props);
18017
18030
  var tabs = Array.isArray(children) ? children : [children];
18018
18031
  var totalTabs = tabs.length;
@@ -18038,7 +18051,7 @@ var TabsWrapper = function TabsWrapper(props) {
18038
18051
  var _child$props = child.props,
18039
18052
  label = _child$props.label,
18040
18053
  disabled = _child$props.disabled;
18041
- var tabHeaderClass = classnames((_classNames2 = {}, _defineProperty$1(_classNames2, 'Tab', true), _defineProperty$1(_classNames2, 'Tab--disabled', disabled), _defineProperty$1(_classNames2, 'Tab--active', !disabled && active === index), _classNames2));
18054
+ var tabHeaderClass = classnames((_classNames2 = {}, _defineProperty$1(_classNames2, 'Tab', true), _defineProperty$1(_classNames2, 'Tab--disabled', disabled), _defineProperty$1(_classNames2, 'Tab--active', !disabled && active === index), _defineProperty$1(_classNames2, 'Tab--regular', size === 'regular'), _defineProperty$1(_classNames2, 'Tab--small', size === 'small'), _classNames2));
18042
18055
  return (
18043
18056
  /*#__PURE__*/
18044
18057
  // TODO(a11y)
@@ -18065,6 +18078,9 @@ var TabsWrapper = function TabsWrapper(props) {
18065
18078
  }, tabs[active]));
18066
18079
  };
18067
18080
  TabsWrapper.displayName = 'TabsWrapper';
18081
+ TabsWrapper.defaultProps = {
18082
+ size: 'regular'
18083
+ };
18068
18084
 
18069
18085
  var Tab = function Tab(props) {
18070
18086
  var children = props.children;
@@ -18099,7 +18115,9 @@ var Tabs = function Tabs(props) {
18099
18115
  withSeparator = props.withSeparator,
18100
18116
  onTabChange = props.onTabChange,
18101
18117
  className = props.className,
18102
- headerClassName = props.headerClassName;
18118
+ headerClassName = props.headerClassName,
18119
+ size = props.size,
18120
+ maxWidth = props.maxWidth;
18103
18121
  var baseProps = extractBaseProps(props);
18104
18122
  var tabRefs = [];
18105
18123
  var tabs = children ? filterTabs(children) : props.tabs;
@@ -18237,6 +18255,9 @@ var Tabs = function Tabs(props) {
18237
18255
  };
18238
18256
 
18239
18257
  var renderTab = function renderTab(tab, index) {
18258
+ var _classNames7, _classNames8;
18259
+
18260
+ var elementRef = /*#__PURE__*/React.createRef();
18240
18261
  var _ref3 = tab,
18241
18262
  _ref3$label = _ref3.label,
18242
18263
  label = _ref3$label === void 0 ? '' : _ref3$label,
@@ -18250,20 +18271,33 @@ var Tabs = function Tabs(props) {
18250
18271
  }
18251
18272
 
18252
18273
  var textAppearance = activeIndex === index ? 'link' : disabled ? 'disabled' : 'subtle';
18253
- var tabTextClass = classnames(_defineProperty$1({}, 'Tab-selected', !disabled && activeIndex === index));
18254
- return /*#__PURE__*/React.createElement(React.Fragment, null, renderInfo(tab, index), /*#__PURE__*/React.createElement(Text, {
18274
+ var tabTextClass = classnames((_classNames7 = {}, _defineProperty$1(_classNames7, 'ellipsis--noWrap', true), _defineProperty$1(_classNames7, 'Tab-selected', !disabled && activeIndex === index), _classNames7));
18275
+ var tabClass = classnames((_classNames8 = {}, _defineProperty$1(_classNames8, 'Tab--regular', size === 'regular'), _defineProperty$1(_classNames8, 'Tab--small', size === 'small'), _defineProperty$1(_classNames8, 'Tab--overflow', true), _classNames8));
18276
+ return /*#__PURE__*/React.createElement(Tooltip, {
18277
+ showOnTruncation: true,
18278
+ tooltip: label,
18279
+ elementRef: elementRef,
18280
+ triggerClass: "ellipsis--noWrap flex-grow-0"
18281
+ }, /*#__PURE__*/React.createElement("span", {
18282
+ className: tabClass,
18283
+ "data-test": "DesignSystem-Tabs--TextWrapper",
18284
+ style: {
18285
+ maxWidth: maxWidth
18286
+ }
18287
+ }, renderInfo(tab, index), /*#__PURE__*/React.createElement(Text, {
18255
18288
  "data-test": "DesignSystem-Tabs--Text",
18256
18289
  appearance: textAppearance,
18257
- className: tabTextClass
18258
- }, label), isDismissible && renderDismissIcon(tab, index, onDismiss));
18290
+ className: tabTextClass,
18291
+ ref: elementRef
18292
+ }, label), isDismissible && renderDismissIcon(tab, index, onDismiss)));
18259
18293
  };
18260
18294
 
18261
18295
  var renderTabs = tabs.map(function (tab, index) {
18262
- var _classNames8;
18296
+ var _classNames9;
18263
18297
 
18264
18298
  var currentTabProp = children && 'props' in tab ? tab.props : tab;
18265
18299
  var disabled = currentTabProp.disabled;
18266
- var tabHeaderClass = classnames((_classNames8 = {}, _defineProperty$1(_classNames8, 'Tab', true), _defineProperty$1(_classNames8, 'Tab--disabled', disabled), _defineProperty$1(_classNames8, 'Tab--active', !disabled && activeIndex === index), _defineProperty$1(_classNames8, 'Tab-selected', !disabled && activeIndex === index), _defineProperty$1(_classNames8, 'align-items-center', true), _classNames8));
18300
+ var tabHeaderClass = classnames((_classNames9 = {}, _defineProperty$1(_classNames9, 'Tab', true), _defineProperty$1(_classNames9, 'Tab--disabled', disabled), _defineProperty$1(_classNames9, 'Tab--active', !disabled && activeIndex === index), _defineProperty$1(_classNames9, 'Tab-selected', !disabled && activeIndex === index), _defineProperty$1(_classNames9, 'align-items-center', true), _classNames9));
18267
18301
  return (
18268
18302
  /*#__PURE__*/
18269
18303
  // TODO(a11y)
@@ -18300,7 +18334,9 @@ var Tabs = function Tabs(props) {
18300
18334
  Tabs.displayName = 'Tabs';
18301
18335
  Tabs.defaultProps = {
18302
18336
  withSeparator: true,
18303
- tabs: []
18337
+ tabs: [],
18338
+ size: 'regular',
18339
+ maxWidth: 'var(--spacing-9)'
18304
18340
  };
18305
18341
 
18306
18342
  var accepts = function accepts(file, acceptedFiles) {
@@ -26958,6 +26994,84 @@ Menu.defaultProps = {
26958
26994
  position: 'bottom-start'
26959
26995
  };
26960
26996
 
26997
+ var KeyElement = function KeyElement(props) {
26998
+ var children = props.children,
26999
+ icon = props.icon,
27000
+ iconOptions = props.iconOptions,
27001
+ iconAlign = props.iconAlign,
27002
+ label = props.label,
27003
+ className = props.className;
27004
+ var baseProps = extractBaseProps(props);
27005
+ var iconClassNames = classnames('py-2', {
27006
+ 'mr-3': iconAlign === 'left',
27007
+ 'ml-3': iconAlign === 'right'
27008
+ });
27009
+ var keyClassNames = classnames('d-flex', 'align-items-center', className);
27010
+
27011
+ if (children) {
27012
+ return /*#__PURE__*/React.createElement("dt", _extends$2({
27013
+ "data-test": "DesignSystem-KeyValuePair-KeyElement"
27014
+ }, baseProps), children);
27015
+ }
27016
+
27017
+ return /*#__PURE__*/React.createElement("dt", _extends$2({
27018
+ "data-test": "DesignSystem-KeyValuePair-KeyElement"
27019
+ }, baseProps, {
27020
+ className: keyClassNames
27021
+ }), icon && iconAlign === 'left' && /*#__PURE__*/React.createElement(Icon, _extends$2({
27022
+ appearance: "subtle",
27023
+ name: icon,
27024
+ className: iconClassNames,
27025
+ "data-test": "DesignSystem-KeyValuePair-Icon--Left"
27026
+ }, iconOptions)), label && /*#__PURE__*/React.createElement(Text, {
27027
+ weight: "medium",
27028
+ appearance: "subtle"
27029
+ }, label), icon && iconAlign === 'right' && /*#__PURE__*/React.createElement(Icon, _extends$2({
27030
+ appearance: "subtle",
27031
+ name: icon,
27032
+ className: iconClassNames,
27033
+ "data-test": "DesignSystem-KeyValuePair-Icon--Right"
27034
+ }, iconOptions)));
27035
+ };
27036
+ KeyElement.defaultProps = {
27037
+ iconAlign: 'left'
27038
+ };
27039
+
27040
+ var ValueElement = function ValueElement(props) {
27041
+ var children = props.children,
27042
+ value = props.value,
27043
+ className = props.className;
27044
+ var baseProps = extractBaseProps(props);
27045
+ var valueClassNames = classnames('m-0', className);
27046
+
27047
+ if (children) {
27048
+ return /*#__PURE__*/React.createElement("dd", _extends$2({
27049
+ "data-test": "DesignSystem-KeyValuePair-ValueElement"
27050
+ }, baseProps, {
27051
+ className: valueClassNames
27052
+ }), children);
27053
+ }
27054
+
27055
+ return /*#__PURE__*/React.createElement("dd", _extends$2({
27056
+ "data-test": "DesignSystem-KeyValuePair-ValueElement"
27057
+ }, baseProps, {
27058
+ className: valueClassNames
27059
+ }), value && /*#__PURE__*/React.createElement(Text, null, value));
27060
+ };
27061
+
27062
+ var KeyValuePair = function KeyValuePair(props) {
27063
+ var children = props.children,
27064
+ className = props.className;
27065
+ var pairClassNames = classnames('m-0', className);
27066
+ return /*#__PURE__*/React.createElement("dl", _extends$2({
27067
+ "data-test": "DesignSystem-KeyValuePair"
27068
+ }, props, {
27069
+ className: pairClassNames
27070
+ }), children);
27071
+ };
27072
+ KeyValuePair.Key = KeyElement;
27073
+ KeyValuePair.Value = ValueElement;
27074
+
26961
27075
  var img$4 = "data:image/svg+xml,%3csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0C10 5.52285 5.52285 10 0 10C5.52285 10 10 14.4772 10 20C10 14.4772 14.4772 10 20 10C14.4772 10 10 5.52285 10 0ZM20 14C20 17.3137 17.3137 20 14 20C17.3137 20 20 22.6863 20 26C20 22.6863 22.6863 20 26 20C22.6863 20 20 17.3137 20 14Z' fill='%231f1f1f'/%3e%3c/svg%3e";
26962
27076
 
26963
27077
  var img$3 = "data:image/svg+xml,%3csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0C10 5.52285 5.52285 10 0 10C5.52285 10 10 14.4772 10 20C10 14.4772 14.4772 10 20 10C14.4772 10 10 5.52285 10 0ZM20 14C20 17.3137 17.3137 20 14 20C17.3137 20 20 22.6863 20 26C20 22.6863 22.6863 20 26 20C22.6863 20 20 17.3137 20 14Z' fill='%23A6A6A6'/%3e%3c/svg%3e";
@@ -31354,6 +31468,6 @@ AIResponse.Button = ChatButton;
31354
31468
  AIResponse.ActionBar = ChatActionBar;
31355
31469
  AIResponse.Body = ChatBody;
31356
31470
 
31357
- var version = "2.38.1";
31471
+ var version = "2.40.0";
31358
31472
 
31359
- export { AIButton, AIChip, AIIconButton, AIResponse, ActionCard, Avatar, AvatarGroup, AvatarSelection, Backdrop, Badge, Breadcrumbs, Button, Calendar, Caption, Card, CardBody, CardFooter, CardHeader, CardSubdued, ChatMessage, Checkbox, Chip, ChipGroup, ChipInput, ChoiceList, Collapsible, Column, Combobox, DatePicker, DateRangePicker, Dialog, Divider, Dropdown, Dropzone, EditableChipInput, EditableDropdown, EditableInput, EmptyState, FileList, FileUploader, FileUploaderList, FullscreenModal, Grid, GridCell, Heading, HelpText, HorizontalNav, Icon, InlineMessage, Input, X as InputMask, Label, Legend, Link, LinkButton, List, Listbox, Menu, Message, MetaList, MetricInput, Modal, ModalBody, ModalDescription, ModalFooter, ModalHeader, MultiSlider, Navigation, OutsideClick, PageHeader, Pagination, Paragraph, Pills, Placeholder, PlaceholderImage, PlaceholderParagraph, Popover, ProgressBar, ProgressRing, Radio, RangeSlider, Row, Sara, SaraSparkle, Select, SelectionCard, Sidesheet, Slider, Spinner, StatusHint, Stepper, Subheading, Switch, Tab, Table, Tabs, TabsWrapper, Text, TextField, Textarea, TimePicker, Toast, Tooltip, index as Utils, VerificationCodeInput, VerticalNav, version };
31473
+ export { AIButton, AIChip, AIIconButton, AIResponse, ActionCard, Avatar, AvatarGroup, AvatarSelection, Backdrop, Badge, Breadcrumbs, Button, Calendar, Caption, Card, CardBody, CardFooter, CardHeader, CardSubdued, ChatMessage, Checkbox, Chip, ChipGroup, ChipInput, ChoiceList, Collapsible, Column, Combobox, DatePicker, DateRangePicker, Dialog, Divider, Dropdown, Dropzone, EditableChipInput, EditableDropdown, EditableInput, EmptyState, FileList, FileUploader, FileUploaderList, FullscreenModal, Grid, GridCell, Heading, HelpText, HorizontalNav, Icon, InlineMessage, Input, X as InputMask, KeyValuePair, Label, Legend, Link, LinkButton, List, Listbox, Menu, Message, MetaList, MetricInput, Modal, ModalBody, ModalDescription, ModalFooter, ModalHeader, MultiSlider, Navigation, OutsideClick, PageHeader, Pagination, Paragraph, Pills, Placeholder, PlaceholderImage, PlaceholderParagraph, Popover, ProgressBar, ProgressRing, Radio, RangeSlider, Row, Sara, SaraSparkle, Select, SelectionCard, Sidesheet, Slider, Spinner, StatusHint, Stepper, Subheading, Switch, Tab, Table, Tabs, TabsWrapper, Text, TextField, Textarea, TimePicker, Toast, Tooltip, index as Utils, VerificationCodeInput, VerticalNav, version };