@synerise/ds-information-card 1.7.13 → 2.0.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.
- package/CHANGELOG.md +4 -0
- package/README.md +1 -2
- package/dist/InformationCard.d.ts +1 -1
- package/dist/InformationCard.utils.d.ts +1 -1
- package/dist/InformationCard.utils.js +2 -2
- package/dist/InformationCardActions/InformationCardActions.d.ts +1 -1
- package/dist/InformationCardActions/InformationCardActions.js +2 -3
- package/dist/InformationCardActions/InformationCardActions.types.d.ts +2 -3
- package/dist/InformationCardTooltip/InformationCardTooltip.d.ts +1 -1
- package/package.json +21 -21
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [2.0.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-information-card@1.7.13...@synerise/ds-information-card@2.0.0) (2026-08-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-information-card
|
|
9
|
+
|
|
6
10
|
## [1.7.13](https://github.com/Synerise/synerise-design/compare/@synerise/ds-information-card@1.7.12...@synerise/ds-information-card@1.7.13) (2026-08-18)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @synerise/ds-information-card
|
package/README.md
CHANGED
|
@@ -92,8 +92,7 @@ Quick actions menu
|
|
|
92
92
|
|
|
93
93
|
| Property | Description | Type | Default |
|
|
94
94
|
| --------------- | ----------------------------------- | -------------------- | --------------- |
|
|
95
|
-
| items | Array of
|
|
96
|
-
| menuProps | Menu props. See ds-menu | `Partial<MenuProps>` | - |
|
|
95
|
+
| items | Array of list items. See ds-list-item | `ListItemProps[]` | - |
|
|
97
96
|
| buttonLabel | footer button label that shows menu | `ReactNode` | 'Quick actions' |
|
|
98
97
|
| navigationLabel | Back to content navigation label | `ReactNode` | 'Quick actions' |
|
|
99
98
|
|
|
@@ -22,5 +22,5 @@ declare const InformationCard: React.ForwardRefExoticComponent<{
|
|
|
22
22
|
renderAdditionalDescription?: () => React.ReactNode;
|
|
23
23
|
propertyListItems?: import('.').InformationCardPropertyListProps["items"];
|
|
24
24
|
summaryItems?: import('./InformationCardSummary/InformationCardSummary.types').InformationCardSummaryProps["items"];
|
|
25
|
-
} & Omit<React.HTMLAttributes<HTMLDivElement>, "title" | "className" | "icon" | "footerText" | "asTooltip" | "actionButton" | "actionButtonCallback" | "actionButtonTooltipText" | "actionsMenu" | "avatarTooltipText" | "
|
|
25
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement>, "title" | "className" | "icon" | "footerText" | "asTooltip" | "copyTooltip" | "actionButton" | "actionButtonCallback" | "actionButtonTooltipText" | "actionsMenu" | "avatarTooltipText" | "copiedTooltip" | "descriptionConfig" | "renderFooter" | "iconColor" | "notice" | "renderBadge" | "subtitle" | "isLoading" | "renderAdditionalDescription" | "propertyListItems" | "summaryItems"> & import('@synerise/ds-utils').DataAttributes & React.RefAttributes<HTMLDivElement>>;
|
|
26
26
|
export default InformationCard;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React, PropsWithChildren } from 'react';
|
|
2
|
-
import { InlineAlertType } from '@synerise/ds-alert';
|
|
2
|
+
import { InlineAlertType } from '@synerise/ds-inline-alert';
|
|
3
3
|
import { BadgeData } from './InformationCard.types';
|
|
4
4
|
export declare function buildInitialsBadge(name: string): React.JSX.Element;
|
|
5
5
|
export declare function buildExtraInfo(message: string, level?: InlineAlertType): React.JSX.Element;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import Alert from "@synerise/ds-alert";
|
|
3
2
|
import Avatar, { ObjectAvatar } from "@synerise/ds-avatar";
|
|
4
3
|
import Badge from "@synerise/ds-badge";
|
|
5
4
|
import Icon from "@synerise/ds-icon";
|
|
5
|
+
import InlineAlert from "@synerise/ds-inline-alert";
|
|
6
6
|
import { ExtraInfo } from "./InformationCard.styles.js";
|
|
7
7
|
function buildInitialsBadge(name) {
|
|
8
8
|
return /* @__PURE__ */ jsx(Initials, { name });
|
|
9
9
|
}
|
|
10
10
|
function buildExtraInfo(message, level) {
|
|
11
|
-
return /* @__PURE__ */ jsx(ExtraInfo, { children: /* @__PURE__ */ jsx(
|
|
11
|
+
return /* @__PURE__ */ jsx(ExtraInfo, { children: /* @__PURE__ */ jsx(InlineAlert, { type: level || "warning", message }) });
|
|
12
12
|
}
|
|
13
13
|
function getInitials(name) {
|
|
14
14
|
const hasTokens = name.indexOf(" ") !== -1;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { InformationCardActionsProps } from './InformationCardActions.types';
|
|
3
|
-
export declare const InformationCardActions: ({ onHeaderClick, navigationLabel, items,
|
|
3
|
+
export declare const InformationCardActions: ({ onHeaderClick, navigationLabel, items, maxHeight, }: InformationCardActionsProps) => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { FormattedMessage } from "react-intl";
|
|
3
3
|
import Dropdown from "@synerise/ds-dropdown";
|
|
4
|
-
import
|
|
4
|
+
import ListItem, { ListWrapper } from "@synerise/ds-list-item";
|
|
5
5
|
import Scrollbar from "@synerise/ds-scrollbar";
|
|
6
6
|
import { InformationCardActionsWrapper } from "../InformationCard.styles.js";
|
|
7
7
|
const NAV_HEIGHT = 61;
|
|
@@ -9,12 +9,11 @@ const InformationCardActions = ({
|
|
|
9
9
|
onHeaderClick,
|
|
10
10
|
navigationLabel,
|
|
11
11
|
items,
|
|
12
|
-
menuProps,
|
|
13
12
|
maxHeight
|
|
14
13
|
}) => {
|
|
15
14
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
16
15
|
/* @__PURE__ */ jsx(Dropdown.BackAction, { label: navigationLabel || /* @__PURE__ */ jsx(FormattedMessage, { id: "DS.INFORMATION-CARD.QUICK-ACTIONS", defaultMessage: "Quick actions" }), onClick: onHeaderClick }),
|
|
17
|
-
/* @__PURE__ */ jsx(InformationCardActionsWrapper, { children: /* @__PURE__ */ jsx(Scrollbar, { maxHeight: maxHeight ? maxHeight - NAV_HEIGHT : void 0, children: /* @__PURE__ */ jsx(
|
|
16
|
+
/* @__PURE__ */ jsx(InformationCardActionsWrapper, { children: /* @__PURE__ */ jsx(Scrollbar, { maxHeight: maxHeight ? maxHeight - NAV_HEIGHT : void 0, children: /* @__PURE__ */ jsx(ListWrapper, { children: items.map((item, index) => /* @__PURE__ */ jsx(ListItem, { ...item }, item.itemKey ?? item.key ?? index)) }) }) })
|
|
18
17
|
] });
|
|
19
18
|
};
|
|
20
19
|
export {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ListItemProps } from '@synerise/ds-list-item';
|
|
3
3
|
export type InformationCardActionsProps = {
|
|
4
|
-
items:
|
|
5
|
-
menuProps?: Partial<AntdMenuProps>;
|
|
4
|
+
items: ListItemProps[];
|
|
6
5
|
buttonLabel?: ReactNode;
|
|
7
6
|
navigationLabel?: ReactNode;
|
|
8
7
|
onHeaderClick: () => void;
|
|
@@ -5,4 +5,4 @@ export declare const InformationCardTooltip: React.ForwardRefExoticComponent<{
|
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
popoverProps?: Omit<import('@synerise/ds-popover').PopoverOptions, "listNavigationConfig" | "arrowConfig" | "returnFocus" | "modal">;
|
|
7
7
|
asChild?: boolean;
|
|
8
|
-
} & Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "content" | "
|
|
8
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "content" | "popoverProps" | "asChild" | "informationCardProps"> & import('@synerise/ds-utils').DataAttributes & React.RefAttributes<HTMLDivElement>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-information-card",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "InformationCard UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -44,25 +44,25 @@
|
|
|
44
44
|
"types": "dist/index.d.ts",
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@floating-ui/react": "^0.27.16",
|
|
47
|
-
"@synerise/ds-
|
|
48
|
-
"@synerise/ds-
|
|
49
|
-
"@synerise/ds-
|
|
50
|
-
"@synerise/ds-
|
|
51
|
-
"@synerise/ds-
|
|
52
|
-
"@synerise/ds-
|
|
53
|
-
"@synerise/ds-
|
|
54
|
-
"@synerise/ds-
|
|
55
|
-
"@synerise/ds-
|
|
56
|
-
"@synerise/ds-
|
|
57
|
-
"@synerise/ds-
|
|
58
|
-
"@synerise/ds-popover": "^
|
|
59
|
-
"@synerise/ds-scrollbar": "^
|
|
60
|
-
"@synerise/ds-skeleton": "^
|
|
61
|
-
"@synerise/ds-status": "^
|
|
62
|
-
"@synerise/ds-subtle-form": "^
|
|
63
|
-
"@synerise/ds-tooltip": "^
|
|
64
|
-
"@synerise/ds-typography": "^
|
|
65
|
-
"@synerise/ds-utils": "^
|
|
47
|
+
"@synerise/ds-avatar": "^2.0.0",
|
|
48
|
+
"@synerise/ds-badge": "^2.0.0",
|
|
49
|
+
"@synerise/ds-button": "^2.0.0",
|
|
50
|
+
"@synerise/ds-card": "^2.0.0",
|
|
51
|
+
"@synerise/ds-copy-icon": "^2.0.0",
|
|
52
|
+
"@synerise/ds-description": "^2.0.0",
|
|
53
|
+
"@synerise/ds-divider": "^2.0.0",
|
|
54
|
+
"@synerise/ds-dropdown": "^2.0.0",
|
|
55
|
+
"@synerise/ds-icon": "^2.0.0",
|
|
56
|
+
"@synerise/ds-inline-alert": "^2.0.0",
|
|
57
|
+
"@synerise/ds-list-item": "^2.0.0",
|
|
58
|
+
"@synerise/ds-popover": "^2.0.0",
|
|
59
|
+
"@synerise/ds-scrollbar": "^2.0.0",
|
|
60
|
+
"@synerise/ds-skeleton": "^2.0.0",
|
|
61
|
+
"@synerise/ds-status": "^2.0.0",
|
|
62
|
+
"@synerise/ds-subtle-form": "^2.0.0",
|
|
63
|
+
"@synerise/ds-tooltip": "^2.0.0",
|
|
64
|
+
"@synerise/ds-typography": "^2.0.0",
|
|
65
|
+
"@synerise/ds-utils": "^2.0.0",
|
|
66
66
|
"uuid": "^8.3.2"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"styled-components": "^5.3.3",
|
|
73
73
|
"vitest": "4"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "033854a18f038079e9a16b0ff250f8401a2287c2"
|
|
76
76
|
}
|