@ttoss/components 2.2.28 → 2.2.30
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
|
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
|
-
import { Icon, NotificationCard } from "../chunk-
|
|
2
|
+
import { Icon, NotificationCard } from "../chunk-6FMJ6F7R.js";
|
|
3
3
|
|
|
4
4
|
// src/components/NotificationsMenu/NotificationsMenu.tsx
|
|
5
5
|
import { Box, Button, Card, Flex, IconButton, Text } from "@ttoss/ui";
|
|
@@ -2112,7 +2112,8 @@ var NotificationCard = props => {
|
|
|
2112
2112
|
const hasCaption = Boolean(props.caption);
|
|
2113
2113
|
const hasActions = Boolean(props.actions && props.actions.length > 0);
|
|
2114
2114
|
const hasTitle = Boolean(props.title);
|
|
2115
|
-
const
|
|
2115
|
+
const shouldCenterVerticallyWithoutTitle = !hasCaption && !hasActions && !hasTitle;
|
|
2116
|
+
const shouldCenterVerticallyWithTitle = !hasCaption && !hasActions && hasTitle;
|
|
2116
2117
|
const shouldAddMinHeight = !hasCaption && !hasActions;
|
|
2117
2118
|
return /* @__PURE__ */jsxs(Card, {
|
|
2118
2119
|
sx: {
|
|
@@ -2165,7 +2166,7 @@ var NotificationCard = props => {
|
|
|
2165
2166
|
flex: 1,
|
|
2166
2167
|
minHeight: shouldAddMinHeight ? "40px" : "auto",
|
|
2167
2168
|
display: "flex",
|
|
2168
|
-
alignItems:
|
|
2169
|
+
alignItems: shouldCenterVerticallyWithoutTitle ? "center" : shouldCenterVerticallyWithTitle ? "center" : "flex-start",
|
|
2169
2170
|
textAlign: "left"
|
|
2170
2171
|
},
|
|
2171
2172
|
children: props.message
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/components",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.30",
|
|
4
4
|
"description": "React components for ttoss ecosystem.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
99
|
"react": ">=16.8.0",
|
|
100
|
-
"@ttoss/
|
|
101
|
-
"@ttoss/
|
|
100
|
+
"@ttoss/ui": "^5.9.3",
|
|
101
|
+
"@ttoss/react-hooks": "^2.1.2"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
104
|
"@types/jest": "^30.0.0",
|
|
@@ -107,11 +107,11 @@
|
|
|
107
107
|
"react": "^19.1.0",
|
|
108
108
|
"tsup": "^8.5.0",
|
|
109
109
|
"tsx": "^4.19.2",
|
|
110
|
-
"@ttoss/react-hooks": "^2.1.2",
|
|
111
|
-
"@ttoss/react-icons": "^0.4.15",
|
|
112
110
|
"@ttoss/config": "^1.35.6",
|
|
111
|
+
"@ttoss/react-icons": "^0.4.15",
|
|
113
112
|
"@ttoss/test-utils": "^2.1.26",
|
|
114
|
-
"@ttoss/
|
|
113
|
+
"@ttoss/react-hooks": "^2.1.2",
|
|
114
|
+
"@ttoss/ui": "^5.9.3"
|
|
115
115
|
},
|
|
116
116
|
"keywords": [
|
|
117
117
|
"React",
|