@kumori/aurora-wui-components 0.0.310-dev4563 → 0.0.310-dev4563.2
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/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14708,7 +14708,7 @@ function getCtaDescription(notification) {
|
|
|
14708
14708
|
return notification.info_content?.message ?? "";
|
|
14709
14709
|
}
|
|
14710
14710
|
function getCtaBadgeLabel(notification) {
|
|
14711
|
-
return notification.criticality.
|
|
14711
|
+
return notification.criticality.toUpperCase();
|
|
14712
14712
|
}
|
|
14713
14713
|
function groupCallToActionNotifications(notifications) {
|
|
14714
14714
|
const groups = /* @__PURE__ */ new Map();
|
|
@@ -14724,10 +14724,10 @@ function groupCallToActionNotifications(notifications) {
|
|
|
14724
14724
|
return [...groups.values()];
|
|
14725
14725
|
}
|
|
14726
14726
|
function buildCtaButtons(notification, dispatch) {
|
|
14727
|
-
return (notification.actions ?? []).map((action) => ({
|
|
14727
|
+
return (notification.actions ?? []).map((action, index) => ({
|
|
14728
14728
|
label: action.label,
|
|
14729
|
-
variant: BUTTON_TYPE_TO_VARIANT[action.buttonType] ?? "primary",
|
|
14730
|
-
outline: action.outlined,
|
|
14729
|
+
variant: index === 0 ? BUTTON_TYPE_TO_VARIANT[action.buttonType] ?? "primary" : "primary",
|
|
14730
|
+
outline: index === 0 ? action.outlined : true,
|
|
14731
14731
|
iconName: action.icon,
|
|
14732
14732
|
iconColor: action.iconColor,
|
|
14733
14733
|
onClick: () => dispatch({
|