solace-ui-components 16.1.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 (171) hide show
  1. package/LICENSE +200 -0
  2. package/NOTICE +35 -0
  3. package/README.md +60 -0
  4. package/THIRD_PARTY_LICENSES.txt +1144 -0
  5. package/dist/components/NoAccess.d.ts +4 -0
  6. package/dist/components/SolaceAccordion.d.ts +61 -0
  7. package/dist/components/SolaceAttributeBadge.d.ts +68 -0
  8. package/dist/components/SolaceBackDrop.d.ts +3 -0
  9. package/dist/components/SolaceBreadcrumb.d.ts +50 -0
  10. package/dist/components/SolaceCard.d.ts +10 -0
  11. package/dist/components/SolaceCardHeader.d.ts +10 -0
  12. package/dist/components/SolaceCategorizedSearch.d.ts +4 -0
  13. package/dist/components/SolaceChip.d.ts +91 -0
  14. package/dist/components/SolaceCircularProgress.d.ts +37 -0
  15. package/dist/components/SolaceComponentProps.d.ts +14 -0
  16. package/dist/components/SolaceDatePicker.d.ts +46 -0
  17. package/dist/components/SolaceDetailMessage.d.ts +22 -0
  18. package/dist/components/SolaceDonutChart.d.ts +40 -0
  19. package/dist/components/SolaceDrawer.d.ts +49 -0
  20. package/dist/components/SolaceEmptyStateBanner.d.ts +3 -0
  21. package/dist/components/SolaceEnvironmentChip.d.ts +33 -0
  22. package/dist/components/SolaceEnvironmentLabel.d.ts +11 -0
  23. package/dist/components/SolaceEnvironmentSelectChip.d.ts +56 -0
  24. package/dist/components/SolaceErrorBox.d.ts +22 -0
  25. package/dist/components/SolaceFeatureTag.d.ts +13 -0
  26. package/dist/components/SolaceHTMLAttributesProps.d.ts +4 -0
  27. package/dist/components/SolaceLearningBanner.d.ts +26 -0
  28. package/dist/components/SolaceLinearProgress.d.ts +3 -0
  29. package/dist/components/SolaceMenu.d.ts +60 -0
  30. package/dist/components/SolaceMenuItem.d.ts +78 -0
  31. package/dist/components/SolaceMessageBox.d.ts +38 -0
  32. package/dist/components/SolaceNotificationCounter.d.ts +38 -0
  33. package/dist/components/SolacePagination.d.ts +38 -0
  34. package/dist/components/SolacePopover.d.ts +7 -0
  35. package/dist/components/SolaceResponsiveItemList.d.ts +80 -0
  36. package/dist/components/SolaceSearchAndFilter.d.ts +69 -0
  37. package/dist/components/SolaceTag.d.ts +39 -0
  38. package/dist/components/SolaceTextDiff.d.ts +40 -0
  39. package/dist/components/SolaceToasts.d.ts +19 -0
  40. package/dist/components/SolaceToolTip.d.ts +63 -0
  41. package/dist/components/SolaceTree.d.ts +45 -0
  42. package/dist/components/SolaceTruncatableLink.d.ts +29 -0
  43. package/dist/components/SolaceTypography.d.ts +3 -0
  44. package/dist/components/dialog/SolaceConfirmationDialog.d.ts +36 -0
  45. package/dist/components/fileuploader/SolaceFileUploader.d.ts +30 -0
  46. package/dist/components/fileuploader/fileUploaderUtils.d.ts +17 -0
  47. package/dist/components/form/Button/SolaceLearningButton.d.ts +4 -0
  48. package/dist/components/form/ErrorText.d.ts +7 -0
  49. package/dist/components/form/FormChildBase.d.ts +68 -0
  50. package/dist/components/form/HelperText.d.ts +7 -0
  51. package/dist/components/form/SolaceAttributeValuePair.d.ts +87 -0
  52. package/dist/components/form/SolaceAttributeValuePairForm.d.ts +109 -0
  53. package/dist/components/form/SolaceAutoCompleteTextField.d.ts +11 -0
  54. package/dist/components/form/SolaceButton.d.ts +23 -0
  55. package/dist/components/form/SolaceCheckBox.d.ts +73 -0
  56. package/dist/components/form/SolaceChipTextArea/SolaceChipTextArea.d.ts +4 -0
  57. package/dist/components/form/SolaceChipTextArea/SolaceChipTextArea.styles.d.ts +9 -0
  58. package/dist/components/form/SolaceCodeEditor.d.ts +56 -0
  59. package/dist/components/form/SolaceLabel.d.ts +33 -0
  60. package/dist/components/form/SolacePicker.d.ts +146 -0
  61. package/dist/components/form/SolaceRadio.d.ts +62 -0
  62. package/dist/components/form/SolaceRadioGroup.d.ts +75 -0
  63. package/dist/components/form/SolaceSelect.d.ts +99 -0
  64. package/dist/components/form/SolaceSelectAutocomplete.d.ts +188 -0
  65. package/dist/components/form/SolaceSelectAutocompleteItem.d.ts +45 -0
  66. package/dist/components/form/SolaceSelectAutocompleteResponsiveTags.d.ts +20 -0
  67. package/dist/components/form/SolaceStackLabel.d.ts +41 -0
  68. package/dist/components/form/SolaceStepper/SolaceStepIcon.d.ts +14 -0
  69. package/dist/components/form/SolaceStepper/SolaceStepper.d.ts +10 -0
  70. package/dist/components/form/SolaceStepper/SolaceStepperFooter.d.ts +3 -0
  71. package/dist/components/form/SolaceTextArea.d.ts +108 -0
  72. package/dist/components/form/SolaceTextField.d.ts +126 -0
  73. package/dist/components/form/SolaceToggle.d.ts +58 -0
  74. package/dist/components/form/SolaceToggleButtonGroup.d.ts +15 -0
  75. package/dist/components/form/WarningText.d.ts +7 -0
  76. package/dist/components/jsonschemaform/SolaceJsonSchemaForm.d.ts +79 -0
  77. package/dist/components/jsonschemaform/jsonSchemaFormUtils.d.ts +11 -0
  78. package/dist/components/layout/SolaceGrid.d.ts +8 -0
  79. package/dist/components/layout/SolaceGridList.d.ts +26 -0
  80. package/dist/components/layout/SolaceGridListMultiSelect.d.ts +26 -0
  81. package/dist/components/layout/SolaceIconTabs.d.ts +30 -0
  82. package/dist/components/layout/SolaceList.d.ts +4 -0
  83. package/dist/components/layout/SolaceListItem.d.ts +4 -0
  84. package/dist/components/layout/SolaceListItemButton.d.ts +4 -0
  85. package/dist/components/layout/SolacePageHeader.d.ts +60 -0
  86. package/dist/components/layout/SolaceSidePanelLayout.d.ts +64 -0
  87. package/dist/components/layout/SolaceSplitPane.d.ts +13 -0
  88. package/dist/components/layout/SolaceStack.d.ts +3 -0
  89. package/dist/components/layout/SolaceTabs.d.ts +53 -0
  90. package/dist/components/table/SolaceTable.d.ts +187 -0
  91. package/dist/components/table/components/ContentControlMenu.d.ts +15 -0
  92. package/dist/components/table/hooks/useClickedOutside.d.ts +1 -0
  93. package/dist/components/table/hooks/useExpandableRows.d.ts +28 -0
  94. package/dist/components/table/hooks/useSolaceTable.d.ts +35 -0
  95. package/dist/components/table/hooks/useTableBodyRenderHelper.d.ts +24 -0
  96. package/dist/components/table/hooks/useTableHeaderRenderHelper.d.ts +28 -0
  97. package/dist/components/table/table-utils.d.ts +51 -0
  98. package/dist/constants.d.ts +10 -0
  99. package/dist/hooks/useScrollIndicator.d.ts +6 -0
  100. package/dist/index.d.ts +141 -0
  101. package/dist/index.js +6 -0
  102. package/dist/index.js.map +1 -0
  103. package/dist/index.modern.mjs +37 -0
  104. package/dist/index.modern.mjs.map +1 -0
  105. package/dist/index.test.d.ts +1 -0
  106. package/dist/resources/icons/ArrowLeft.d.ts +4 -0
  107. package/dist/resources/icons/ArrowRight.d.ts +4 -0
  108. package/dist/resources/icons/CheckBoxIcons.d.ts +4 -0
  109. package/dist/resources/icons/CheckCircleIcon.d.ts +5 -0
  110. package/dist/resources/icons/CheckFilled16Icon.d.ts +3 -0
  111. package/dist/resources/icons/CloseIcon.d.ts +5 -0
  112. package/dist/resources/icons/CollapseIcon.d.ts +4 -0
  113. package/dist/resources/icons/DeleteIcon.d.ts +6 -0
  114. package/dist/resources/icons/EllipsisIcon.d.ts +4 -0
  115. package/dist/resources/icons/Error16Icon.d.ts +3 -0
  116. package/dist/resources/icons/ErrorIcon.d.ts +3 -0
  117. package/dist/resources/icons/ExpandIcon.d.ts +4 -0
  118. package/dist/resources/icons/FilterIcon.d.ts +5 -0
  119. package/dist/resources/icons/IconProps.d.ts +4 -0
  120. package/dist/resources/icons/InfoIcon.d.ts +3 -0
  121. package/dist/resources/icons/MoreHorizOutlinedIcon.d.ts +2 -0
  122. package/dist/resources/icons/MoveIcon.d.ts +6 -0
  123. package/dist/resources/icons/OpenExternalIcon.d.ts +2 -0
  124. package/dist/resources/icons/RadioIcons.d.ts +3 -0
  125. package/dist/resources/icons/SearchIcon.d.ts +5 -0
  126. package/dist/resources/icons/SelectIcons.d.ts +3 -0
  127. package/dist/resources/icons/SortIcons.d.ts +7 -0
  128. package/dist/resources/icons/SuccessIcon.d.ts +3 -0
  129. package/dist/resources/icons/UploadIcon.d.ts +3 -0
  130. package/dist/resources/icons/VerticalDotsIcon.d.ts +4 -0
  131. package/dist/resources/icons/VisibilityHideIcon.d.ts +5 -0
  132. package/dist/resources/icons/VisibilityShowIcon.d.ts +5 -0
  133. package/dist/resources/icons/WarnIcon.d.ts +3 -0
  134. package/dist/resources/theme.d.ts +68 -0
  135. package/dist/resources/trackingapi.d.ts +8 -0
  136. package/dist/resources/typography.d.ts +12 -0
  137. package/dist/theming/base/themeMapping.d.ts +6 -0
  138. package/dist/theming/boomi/themeMapping.d.ts +5 -0
  139. package/dist/theming/sap/themeMapping.d.ts +5 -0
  140. package/dist/theming/solace/themeMapping.d.ts +5 -0
  141. package/dist/theming/themeUtils.d.ts +10 -0
  142. package/dist/types/ThemeMapping.d.ts +224 -0
  143. package/dist/types/fieldTypes.d.ts +5 -0
  144. package/dist/types/index.d.ts +25 -0
  145. package/dist/types/modes.d.ts +4 -0
  146. package/dist/types/numericTypes.d.ts +6 -0
  147. package/dist/types/sizing.d.ts +13 -0
  148. package/dist/types/solaceCard.d.ts +87 -0
  149. package/dist/types/solaceCardHeader.d.ts +36 -0
  150. package/dist/types/solaceCategorizedSearch.d.ts +87 -0
  151. package/dist/types/solaceChip.d.ts +26 -0
  152. package/dist/types/solaceChipTextArea.d.ts +89 -0
  153. package/dist/types/solaceDatePicker.d.ts +16 -0
  154. package/dist/types/solaceEmptyStateBanner.d.ts +18 -0
  155. package/dist/types/solaceGrid.d.ts +9 -0
  156. package/dist/types/solaceLearningButton.d.ts +4 -0
  157. package/dist/types/solaceList.d.ts +130 -0
  158. package/dist/types/solacePageHeader.d.ts +62 -0
  159. package/dist/types/solacePopover.d.ts +71 -0
  160. package/dist/types/solaceProgress.d.ts +22 -0
  161. package/dist/types/solaceStack.d.ts +8 -0
  162. package/dist/types/solaceStepper.d.ts +81 -0
  163. package/dist/types/solaceTooltip.d.ts +8 -0
  164. package/dist/types/solaceTypography.d.ts +10 -0
  165. package/dist/types/solacefileUploader.d.ts +60 -0
  166. package/dist/types/states.d.ts +4 -0
  167. package/dist/types/statuses.d.ts +7 -0
  168. package/dist/types/supportedThemes.d.ts +6 -0
  169. package/dist/types/sx.d.ts +16 -0
  170. package/dist/utils.d.ts +4 -0
  171. package/package.json +113 -0
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export default interface SolaceHTMLAttributeProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ "data-qa"?: string;
4
+ }
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ import SolaceComponentProps from "./SolaceComponentProps";
3
+ interface SolaceLearningBannerProps extends SolaceComponentProps {
4
+ /**
5
+ * The title of the banner.
6
+ */
7
+ title?: string | JSX.Element;
8
+ /**
9
+ * The content of the banner.
10
+ */
11
+ children: JSX.Element;
12
+ /**
13
+ * Boolean flag to control whether to show a close button in the end of the banner
14
+ */
15
+ showCloseButton?: boolean;
16
+ /**
17
+ * Callback function after the banner is closed
18
+ */
19
+ onClose?: () => void;
20
+ /**
21
+ * Background color of the banner
22
+ */
23
+ backgroundColor?: string;
24
+ }
25
+ declare function SolaceLearningBanner({ title, children, showCloseButton, onClose, backgroundColor, dataQa, dataTags }: SolaceLearningBannerProps): JSX.Element | null;
26
+ export default SolaceLearningBanner;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { SolaceLinearProgressProps } from "../types/solaceProgress";
3
+ export default function SolaceLinearProgress(props: SolaceLinearProgressProps): JSX.Element;
@@ -0,0 +1,60 @@
1
+ import React from "react";
2
+ import SolaceComponentProps from "./SolaceComponentProps";
3
+ import { SolaceButtonProps } from "./form/SolaceButton";
4
+ import { SolaceMenuItemProps } from "./SolaceMenuItem";
5
+ interface SolaceMenuProps extends SolaceComponentProps {
6
+ id?: string;
7
+ /**
8
+ * Attributes to customize menu button
9
+ */
10
+ buttonProps: SolaceButtonProps;
11
+ /**
12
+ * An array of options when using default menu
13
+ */
14
+ items?: SolaceMenuItemProps[];
15
+ /**
16
+ * Header of menu when using default menu
17
+ */
18
+ header?: string;
19
+ /**
20
+ * optional attribute to change the position of menu popper only for default menu
21
+ */
22
+ anchorOrigin?: {
23
+ vertical: "top" | "center" | "bottom";
24
+ horizontal: "left" | "center" | "right";
25
+ };
26
+ /**
27
+ * optional attribute to change the position of menu popper only for default menu
28
+ */
29
+ transformOrigin?: {
30
+ vertical: "top" | "center" | "bottom";
31
+ horizontal: "left" | "center" | "right";
32
+ };
33
+ /**
34
+ * optional boolean flag to adjust the maxHeight of menu default is set to false
35
+ */
36
+ multiline?: boolean;
37
+ /**
38
+ * optional attribute to propagate menu button click event to parent
39
+ */
40
+ propagateMenuClick?: boolean;
41
+ /**
42
+ * Optional flag to close the menu on menuItemClick, the default is set to true.
43
+ */
44
+ closeOnSelect?: boolean;
45
+ /**
46
+ * The callback function runs when the user clicks on a menu item
47
+ */
48
+ onMenuItemClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
49
+ /**
50
+ * optional flag to specify the number of menu items to be displayed, the number is currently default to 9.
51
+ * Note: the total number of items exceeding this number will make the list scrollable with fade style applied based on the scroll positions.
52
+ */
53
+ numOfMenuItemDisplayed?: number;
54
+ /**
55
+ * Optional attribute to define the maximum width of menu popper
56
+ */
57
+ maxWidth?: number;
58
+ }
59
+ export default function SolaceMenu(props: SolaceMenuProps): JSX.Element;
60
+ export {};
@@ -0,0 +1,78 @@
1
+ import React from "react";
2
+ import SolaceComponentProps from "./SolaceComponentProps";
3
+ export interface SolaceMenuItemProps extends SolaceComponentProps {
4
+ id?: string;
5
+ /**
6
+ * Name attribute to show as menu item label for default menuItems,for custom menu items JSX.Element type is passed.
7
+ */
8
+ name: string | JSX.Element;
9
+ /**
10
+ * Content to display as supportive/explanitory text
11
+ */
12
+ subText?: string;
13
+ /**
14
+ * Content to display as supportive/explanitory text
15
+ */
16
+ supplementalText?: string;
17
+ /**
18
+ * Adds an Icon to left handside of the menu item label for Supporting visuals and helping differentiate between menu options
19
+ */
20
+ icon?: JSX.Element | HTMLElement;
21
+ /**
22
+ * Adds a secondary action (ex. more info icon button) to the right end of menu item
23
+ */
24
+ secondaryAction?: JSX.Element | HTMLElement;
25
+ /**
26
+ * The callback function runs when the user clicks on a menu item
27
+ */
28
+ onMenuItemClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
29
+ /**
30
+ * callback function on menu close action
31
+ */
32
+ onMenuClose?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
33
+ /**
34
+ * Adds a divider to the bottom of menuItem
35
+ */
36
+ divider?: boolean;
37
+ /**
38
+ * Boolean flag to disable the menuItem
39
+ */
40
+ disabled?: boolean;
41
+ /**
42
+ * Optional attribute to group Menu items and show categoryHeading
43
+ */
44
+ categoryHeading?: string;
45
+ /**
46
+ * Optional flag to close the menu on menuItemClick, the default is set to true.
47
+ */
48
+ closeOnSelect?: boolean;
49
+ /**
50
+ * Optional flag for subMenu items
51
+ */
52
+ subMenuItems?: SolaceMenuItemProps[];
53
+ /**
54
+ * Optional flag for the height of menu items
55
+ */
56
+ itemHeight?: number;
57
+ /**
58
+ * Optional flag for identify the selected menu item
59
+ */
60
+ selected?: boolean;
61
+ /**
62
+ * Content to display in a tooltip when the menuItem is disabled
63
+ */
64
+ disabledMenuItemTooltipContent?: string;
65
+ /**
66
+ * Optional attribute to define the maximum width of submenu popper
67
+ */
68
+ subMenuMaxWidth?: number;
69
+ /**
70
+ * Optional attribute to set the initial directional preference for nested submenus.
71
+ * Each submenu level will attempt to open in this direction, but will flip if there's insufficient space.
72
+ * This ensures directional consistency across nested levels while preventing off-screen rendering.
73
+ * "left" or "right". If not provided, defaults to "right".
74
+ */
75
+ subMenuDirection?: "left" | "right";
76
+ }
77
+ declare const SolaceMenuItem: ({ id, name, subText, supplementalText, icon, secondaryAction, onMenuItemClick, onMenuClose, divider, disabled, subMenuItems, closeOnSelect, itemHeight, selected, subMenuMaxWidth, subMenuDirection, dataQa, dataTags }: SolaceMenuItemProps) => JSX.Element;
78
+ export default SolaceMenuItem;
@@ -0,0 +1,38 @@
1
+ /// <reference types="react" />
2
+ import SolaceComponentProps from "./SolaceComponentProps";
3
+ interface SolaceInfoBoxProps extends SolaceComponentProps {
4
+ /**
5
+ * the info message to display in the info box
6
+ */
7
+ message: string | JSX.Element;
8
+ /**
9
+ * Boolean flag to control whether to show an info icon in front of the info message
10
+ */
11
+ showIcon?: boolean;
12
+ /**
13
+ * Boolean flag to control whether to show a close button in the end of the info box
14
+ */
15
+ showCloseButton?: boolean;
16
+ /**
17
+ * Callback function after the message box is closed
18
+ */
19
+ onClose?: () => void;
20
+ /**
21
+ * Variants, currently supports error, info, warn and success, default to info, can be expanded as needed
22
+ */
23
+ variant: "info" | "error" | "warn" | "success";
24
+ /**
25
+ * message text color
26
+ */
27
+ color?: string;
28
+ /**
29
+ * If true, compact vertical padding is used
30
+ */
31
+ dense?: boolean;
32
+ /**
33
+ * To display further details about the message
34
+ */
35
+ details?: string | JSX.Element;
36
+ }
37
+ declare function SolaceMessageBox({ message, showIcon, showCloseButton, onClose, variant, color, dense, details, dataQa, dataTags }: SolaceInfoBoxProps): JSX.Element | null;
38
+ export default SolaceMessageBox;
@@ -0,0 +1,38 @@
1
+ /// <reference types="react" />
2
+ import SolaceComponentProps from "./SolaceComponentProps";
3
+ export interface SolaceNotificationCounterProps extends SolaceComponentProps {
4
+ /**
5
+ * Text inside the badge
6
+ */
7
+ value: string | number;
8
+ /**
9
+ * Whether to show text inside the badge
10
+ */
11
+ show?: boolean;
12
+ /**
13
+ * Size of the badge
14
+ */
15
+ size?: number;
16
+ /**
17
+ * Font size of the text value
18
+ */
19
+ fontSize?: number;
20
+ /**
21
+ * Tooltip
22
+ */
23
+ title?: string;
24
+ /**
25
+ * Badge animation duration in milliseconds. If set to 0, then no animation.
26
+ */
27
+ animationDuration?: number;
28
+ /**
29
+ * The number of animation repeats when making the text visible
30
+ */
31
+ animationRepeatsInitialCount?: number;
32
+ /**
33
+ * The number of animation repeats when the text is updated
34
+ */
35
+ animationRepeatsUpdateCount?: number;
36
+ }
37
+ declare function SolaceNotificationCounter({ value, show, size, fontSize, title, animationDuration, animationRepeatsInitialCount, animationRepeatsUpdateCount, dataQa, dataTags }: SolaceNotificationCounterProps): JSX.Element;
38
+ export default SolaceNotificationCounter;
@@ -0,0 +1,38 @@
1
+ /// <reference types="react" />
2
+ export interface SolacePaginationProps {
3
+ /**
4
+ * Flag signifying if the side panel is expanded or collapsed
5
+ */
6
+ activePage?: number;
7
+ /**
8
+ * The desired width of the side panel
9
+ */
10
+ pageSize?: number;
11
+ /**
12
+ * property to control which side of the main content the side panel is rendered on
13
+ */
14
+ totalResults: number;
15
+ /**
16
+ * The string template to use for communicating pagination details. Use the following placeholders
17
+ * to substitute values if and where needed
18
+ * - firstItemIndex: index of the first item being displayed
19
+ * - lastItemIndex: index of the last item being displayed
20
+ * - totalResults: total number of items that are paginated
21
+ * - pageSize: the number of items currently rendered
22
+ * - activePage: the currently selected page number
23
+ *
24
+ * Ex: "Showing ${firstItemIndex}-${lastItemIndex} of ${totalResults} results" would result in:
25
+ * -> Showing 1-10 of 156 results
26
+ */
27
+ displayText?: string;
28
+ /**
29
+ * Callback function to notify which page was clicked/selected by the end user
30
+ */
31
+ onPageSelection?: (selectedPage: number) => void;
32
+ /**
33
+ * loading state (renders a half transparent overlay on top of the pagination component, currently is designed to use along with table component's loading state)
34
+ */
35
+ loading?: boolean;
36
+ }
37
+ declare function SolacePagination({ activePage, pageSize, displayText, totalResults, loading, onPageSelection }: SolacePaginationProps): JSX.Element;
38
+ export default SolacePagination;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { SolacePopoverProps } from "../types/solacePopover";
3
+ declare const SolacePopover: {
4
+ (props: SolacePopoverProps): JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default SolacePopover;
@@ -0,0 +1,80 @@
1
+ import React from "react";
2
+ import SolaceComponentProps from "./SolaceComponentProps";
3
+ export interface SolaceResponsiveItem {
4
+ /**
5
+ * Uniquely identify the itme in the list
6
+ */
7
+ id: string;
8
+ content: JSX.Element;
9
+ }
10
+ export interface SolaceResponsiveItemListProps extends SolaceComponentProps {
11
+ /**
12
+ * A list of items to display in a row
13
+ */
14
+ items: SolaceResponsiveItem[];
15
+ /**
16
+ * When showAll is true, all the items will be displayed inside the container wrapped around; when it is false,
17
+ * show items whose total width <= container's width, display "+ N more" and show remaining items in a popover when "+ N more" is hovered.
18
+ * Default is true.
19
+ */
20
+ showAll?: boolean;
21
+ /**
22
+ * Spacing between items, default is 12px
23
+ */
24
+ columnGap?: number;
25
+ /**
26
+ * Space between rows, default is 8px
27
+ * */
28
+ rowGap?: number;
29
+ /**
30
+ * Width of the container of the component.
31
+ *
32
+ * If containerWidth is undefined and showAll is false, then all items will be rendered in one row which can overflow the container.
33
+ * The container should have resize listener configured to properly update the value if its width is changing dynamically.
34
+ */
35
+ containerWidth: number | undefined;
36
+ /**
37
+ * Which component to use to display hidden items. Default is popover.
38
+ */
39
+ componentToShowOverflowItems?: "popover" | null;
40
+ /**
41
+ * Overflow component's placement
42
+ */
43
+ overflowItemsPlacement?: "bottom-end" | "bottom-start" | "bottom" | "left-end" | "left-start" | "left" | "right-end" | "right-start" | "right" | "top-end" | "top-start" | "top";
44
+ /**
45
+ * Overflow indicator label. Default value is "more".
46
+ */
47
+ overflowIndicatorLabel?: string;
48
+ /**
49
+ * Overflow indicator label when number of filters is 1.
50
+ */
51
+ overflowIndicatorLabelSingular?: string;
52
+ /**
53
+ * Overflow indicator label width.
54
+ */
55
+ overflowIndicatorLabelWidth?: number;
56
+ /**
57
+ * Number of rows to show before hiding items. Default is 1.
58
+ * */
59
+ numOfRowsToShow?: number;
60
+ /**
61
+ * Number of menu items to be displayed (defaulting to 9) before scrolling is applied.
62
+ */
63
+ numOfMenuItemsToDisplay?: number;
64
+ /**
65
+ * Callback to notify items rendered
66
+ */
67
+ onItemsRendered?: () => void;
68
+ /**
69
+ * Callback to notify items that are hidden
70
+ */
71
+ onItemsOverflow?: (overflowedItems: SolaceResponsiveItem[]) => void;
72
+ /**
73
+ * Callback when "+ N more" indicator is clicked. If the callback is defined and componentToShowOverflowItems is not null, then "+ N more" is a hyperlink.
74
+ */
75
+ onItemsOverflowIndicatorClick?: () => void;
76
+ }
77
+ declare function SolaceResponsiveItemList({ items, showAll, columnGap, rowGap, containerWidth, componentToShowOverflowItems, overflowItemsPlacement, overflowIndicatorLabel, overflowIndicatorLabelSingular, overflowIndicatorLabelWidth, numOfRowsToShow, numOfMenuItemsToDisplay, // matches menu overflow default
78
+ onItemsRendered, onItemsOverflow, onItemsOverflowIndicatorClick, dataQa }: SolaceResponsiveItemListProps): JSX.Element | null;
79
+ declare const _default: React.MemoExoticComponent<typeof SolaceResponsiveItemList>;
80
+ export default _default;
@@ -0,0 +1,69 @@
1
+ /// <reference types="react" />
2
+ import { FIELD_TYPES } from "../types/fieldTypes";
3
+ import SolaceComponentProps from "./SolaceComponentProps";
4
+ import { SolaceTextFieldChangeEvent } from "./form/SolaceTextField";
5
+ export interface SolaceSearchAndFilterProps extends SolaceComponentProps {
6
+ /**
7
+ * Unique identifier ... if `id` is not specified, `name` value will be used in order to make `label` and `helperText` accessible for screen readers
8
+ */
9
+ id?: string;
10
+ /**
11
+ * Name attribute to assign to the `input` element
12
+ */
13
+ name: string;
14
+ /**
15
+ * the label content to display on the screen
16
+ */
17
+ label?: string | JSX.Element;
18
+ /**
19
+ * Content to display as supportive/explanitory text
20
+ */
21
+ helperText?: string | JSX.Element;
22
+ /**
23
+ * The value of the `input` element, required for controlled component
24
+ */
25
+ value?: string;
26
+ /**
27
+ * Short hint displayed in the `input` before user enters a value
28
+ */
29
+ placeholder?: string;
30
+ /**
31
+ * Custom Width of the component.
32
+ */
33
+ width?: string;
34
+ /**
35
+ * Boolean flag to disable the `input`
36
+ */
37
+ disabled?: boolean;
38
+ /**
39
+ * Boolean flag to keep the `input` focused
40
+ */
41
+ autoFocus?: boolean;
42
+ /**
43
+ * Indicates whether this is a "search" or "filter" field (appropriate icon will show as the adornment)
44
+ */
45
+ type?: FIELD_TYPES;
46
+ /**
47
+ * Boolean flag to mark the field in error state
48
+ */
49
+ hasErrors?: boolean;
50
+ /**
51
+ * Callback function to trigger whenever the value of the `input` is changed
52
+ */
53
+ onChange: (event: SolaceTextFieldChangeEvent) => void;
54
+ /**
55
+ * Callback function to notify the callee when the `input` is focused
56
+ */
57
+ onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
58
+ /**
59
+ * Callback function to notify the callee when the `input` is blurred
60
+ */
61
+ onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
62
+ /**
63
+ * Callback function to notify the callee when the clear (x) button is clicked (in case
64
+ * the callee wishes to perform any additional operations other than clearing the search/filter text)
65
+ */
66
+ onClearAll?: () => void;
67
+ }
68
+ declare function SolaceSearchAndFilter({ id, name, label, helperText, value, placeholder, width, disabled, autoFocus, type, hasErrors, onChange, onFocus, onBlur, onClearAll }: SolaceSearchAndFilterProps): JSX.Element;
69
+ export default SolaceSearchAndFilter;
@@ -0,0 +1,39 @@
1
+ /// <reference types="react" />
2
+ import { CHIP_COLORS, CHIP_VARIANT } from "../types/solaceChip";
3
+ import SolaceComponentProps from "./SolaceComponentProps";
4
+ export interface SolaceTagProps extends SolaceComponentProps {
5
+ /**
6
+ * The content of the component.
7
+ */
8
+ label?: string | JSX.Element;
9
+ /**
10
+ * The variant to use ... filled vs outlined
11
+ */
12
+ variant?: CHIP_VARIANT;
13
+ /**
14
+ * If the label is of type string and exceeds the maxWidth (in px), ellipsis will be
15
+ * shown within the component
16
+ */
17
+ maxWidth?: string | number;
18
+ /**
19
+ * Sets the fill color of the component
20
+ */
21
+ fillColor?: CHIP_COLORS;
22
+ /**
23
+ * Sets the border color of the component
24
+ */
25
+ borderColor?: CHIP_COLORS;
26
+ /**
27
+ * Sets the text color of the label
28
+ */
29
+ labelColor?: CHIP_COLORS;
30
+ /**
31
+ * If true, hover and click effects will be applied to the component
32
+ */
33
+ clickable?: boolean;
34
+ /**
35
+ * Add a leading icon ... ensure the size of the icon is 14x14 pixels
36
+ */
37
+ icon?: JSX.Element;
38
+ }
39
+ export default function SolaceTag({ label, variant, maxWidth, fillColor, borderColor, labelColor, clickable, icon, dataQa }: SolaceTagProps): JSX.Element;
@@ -0,0 +1,40 @@
1
+ /// <reference types="react" />
2
+ import SolaceComponentProps from "./SolaceComponentProps";
3
+ export interface SolaceTextDiffProps extends SolaceComponentProps {
4
+ /**
5
+ * unique identifier
6
+ */
7
+ id: string;
8
+ /**
9
+ * Text 1 for comparison
10
+ */
11
+ text1: string;
12
+ /**
13
+ * Text 2 for comparison
14
+ */
15
+ text2: string;
16
+ /**
17
+ * Header content to display above the old text pane.
18
+ */
19
+ text1Header?: string | JSX.Element;
20
+ /**
21
+ * Header content to display above the new text pane.
22
+ */
23
+ text2Header?: string | JSX.Element;
24
+ /**
25
+ * Text to display when there is no content to compare.
26
+ * @default 'No content to compare'
27
+ */
28
+ noContentText?: string;
29
+ /**
30
+ * Text to display when there are no differences.
31
+ * @default 'No Differences'
32
+ */
33
+ noDifferencesText?: string;
34
+ /**
35
+ * Whether to hide the diff and show the noDifferencesText when there are no differences.
36
+ * @default false
37
+ */
38
+ hideWhenNoDifferences?: boolean;
39
+ }
40
+ export default function SolaceTextDiff(props: SolaceTextDiffProps): JSX.Element;
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ export declare type SolaceToastsProps = {
3
+ /** @deprecated This prop will be removed in a future version. Target: August 2025 */
4
+ severity?: "success" | "info" | "warning" | "error";
5
+ message: React.ReactNode;
6
+ open?: boolean;
7
+ action?: React.ReactNode;
8
+ autoDismiss?: boolean;
9
+ onClose: (event: React.SyntheticEvent<Element> | Event) => void;
10
+ };
11
+ /**
12
+ * Provides toasts that match solace ui guidelines.
13
+ * If severity is not passed in no icon would be shown.
14
+ * Default action button is close icon, but can be overwritten by any react element.
15
+ * @type SolaceToasts
16
+ * @param props
17
+ * @returns JSX.Element
18
+ */
19
+ export default function SolaceToasts(props: SolaceToastsProps): JSX.Element;
@@ -0,0 +1,63 @@
1
+ /// <reference types="react" />
2
+ import SolaceComponentProps from "./SolaceComponentProps";
3
+ import { TooltipVariantTypes } from "../types/solaceTooltip";
4
+ export interface SolaceTooltipProps extends SolaceComponentProps {
5
+ /**
6
+ * Unique identifier ... if `id` is not specified, a randomly generated value will be used in order to make it accessible for screen readers
7
+ */
8
+ id?: string;
9
+ /**
10
+ * Tooltip title
11
+ */
12
+ title?: string | JSX.Element;
13
+ /**
14
+ * Different type of tooltip, default to `text`
15
+ */
16
+ variant?: TooltipVariantTypes;
17
+ /**
18
+ * Tooltip referenced element.
19
+ */
20
+ children: string | JSX.Element;
21
+ /**
22
+ * Tooltip placement, default to `bottom`
23
+ */
24
+ placement?: "bottom-end" | "bottom-start" | "bottom" | "left-end" | "left-start" | "left" | "right-end" | "right-start" | "right" | "top-end" | "top-start" | "top";
25
+ /**
26
+ * Tooltip maximum width, default to small
27
+ */
28
+ maxWidth?: "small" | "medium" | "full";
29
+ /**
30
+ * Disable listener to show tooltip when referenced element is focused, default to false
31
+ */
32
+ disableFocusListener?: boolean;
33
+ /**
34
+ * Disable listener to show tooltip when referenced element is hovered, default to false
35
+ */
36
+ disableHoverListener?: boolean;
37
+ /**
38
+ * The number of milliseconds to wait before showing the tooltip. Default is 500ms
39
+ */
40
+ enterDelay?: number;
41
+ /**
42
+ * The number of milliseconds to wait before showing the tooltip when one was already recently opened. Default is 0ms
43
+ */
44
+ enterNextDelay?: number;
45
+ /**
46
+ * The number of milliseconds to wait before hiding the tooltip. Default is 0ms
47
+ */
48
+ leaveDelay?: number;
49
+ /**
50
+ * Controlled open state for tooltip. If `true`, the component is shown
51
+ */
52
+ open?: boolean;
53
+ /**
54
+ * Callback fired when the component requests to be open. Used in conjunction with `open` and `onClose`
55
+ */
56
+ onOpen?: (event: React.SyntheticEvent) => void;
57
+ /**
58
+ * Callback fired when the component requests to be closed. Used in conjunction with `open` and `onOpen`
59
+ */
60
+ onClose?: (event: Event | React.SyntheticEvent<Element, Event>) => void;
61
+ }
62
+ declare function SolaceTooltip({ id, title, variant, children, placement, maxWidth, disableFocusListener, disableHoverListener, enterDelay, enterNextDelay, leaveDelay, open, onOpen, onClose, dataQa, dataTags }: SolaceTooltipProps): JSX.Element;
63
+ export default SolaceTooltip;
@@ -0,0 +1,45 @@
1
+ /// <reference types="react" />
2
+ import SolaceComponentProps from "./SolaceComponentProps";
3
+ export interface TreeNode {
4
+ children?: TreeNode[];
5
+ component: JSX.Element;
6
+ }
7
+ export declare const createHeightCalculation: (node: TreeNode | undefined, rowHeight: number, connectorOffset: number, index: number) => number;
8
+ interface SolaceTreeProps extends SolaceComponentProps {
9
+ components: TreeNode[];
10
+ rowHeight: number;
11
+ connectorOffset: number;
12
+ connectorWidth: number;
13
+ leftOffset: number;
14
+ connectorBorderRadius: number;
15
+ connectorStroke: number;
16
+ connectorColor?: string;
17
+ }
18
+ /**
19
+ * SolaceDataTree Component
20
+ * Displays a series of components arranged to look like a tree of any height
21
+ *
22
+ * The "connector" is the part that connects the children to the parent component.
23
+ *
24
+ * The components passed into this component should all have a uniform height
25
+ *
26
+ * @interface SolaceTree
27
+ * @param props
28
+ * @returns JSX.Element
29
+ *
30
+ */
31
+ /**
32
+ * @deprecated This component is deprecated and should not be used in new code.
33
+ */
34
+ declare function SolaceTree(props: SolaceTreeProps): JSX.Element;
35
+ declare namespace SolaceTree {
36
+ var defaultProps: {
37
+ rowHeight: number;
38
+ connectorOffset: number;
39
+ connectorWidth: number;
40
+ leftOffset: number;
41
+ connectorBorderRadius: number;
42
+ connectorStroke: number;
43
+ };
44
+ }
45
+ export default SolaceTree;