@zauru-sdk/components 2.2.0 → 2.3.1

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 CHANGED
@@ -3,6 +3,22 @@
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.3.1](https://github.com/intuitiva/zauru-typescript-sdk/compare/v2.3.0...v2.3.1) (2025-06-27)
7
+
8
+ **Note:** Version bump only for package @zauru-sdk/components
9
+
10
+
11
+
12
+
13
+
14
+ # [2.3.0](https://github.com/intuitiva/zauru-typescript-sdk/compare/v2.2.0...v2.3.0) (2025-06-27)
15
+
16
+ **Note:** Version bump only for package @zauru-sdk/components
17
+
18
+
19
+
20
+
21
+
6
22
  # [2.2.0](https://github.com/intuitiva/zauru-typescript-sdk/compare/v2.1.1...v2.2.0) (2025-06-26)
7
23
 
8
24
 
@@ -2,5 +2,5 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
2
2
  export const Container = (props) => {
3
3
  const { title, description, children, className = "", rightContent } = props;
4
4
  const titleInfo = (_jsxs(_Fragment, { children: [title && (_jsx("h3", { className: "text-3xl font-bold leading-8 text-gray-900", children: title })), description && (_jsx("p", { className: "mt-1 text-md text-gray-600", children: description }))] }));
5
- return (_jsx(_Fragment, { children: _jsxs("div", { className: `mx-2 ${className}`, children: [rightContent && (_jsxs("div", { className: "flex justify-between items-center", children: [_jsx("div", { children: titleInfo }), _jsx("div", { children: rightContent })] })), !rightContent && titleInfo, _jsx("div", { className: "mt-5 space-y-5", children: children })] }) }));
5
+ return (_jsx(_Fragment, { children: _jsxs("div", { className: `mx-2 ${className}`, children: [rightContent && (_jsxs("div", { className: "flex flex-col sm:flex-row sm:justify-between sm:items-start gap-4", children: [_jsx("div", { className: "max-w-3xl", children: titleInfo }), _jsx("div", { className: "flex-shrink-0", children: rightContent })] })), !rightContent && titleInfo, _jsx("div", { className: "mt-5 space-y-5", children: children })] }) }));
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/components",
3
- "version": "2.2.0",
3
+ "version": "2.3.1",
4
4
  "description": "Componentes reutilizables en las WebApps de Zauru.",
5
5
  "main": "./dist/esm/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -35,11 +35,11 @@
35
35
  "@rails/activestorage": "^8.0.200",
36
36
  "@reduxjs/toolkit": "^2.2.1",
37
37
  "@remix-run/react": "^2.8.1",
38
- "@zauru-sdk/common": "^2.2.0",
39
- "@zauru-sdk/hooks": "^2.2.0",
38
+ "@zauru-sdk/common": "^2.3.1",
39
+ "@zauru-sdk/hooks": "^2.3.1",
40
40
  "@zauru-sdk/icons": "^2.0.188",
41
- "@zauru-sdk/types": "^2.2.0",
42
- "@zauru-sdk/utils": "^2.2.0",
41
+ "@zauru-sdk/types": "^2.3.1",
42
+ "@zauru-sdk/utils": "^2.3.1",
43
43
  "browser-image-compression": "^2.0.2",
44
44
  "framer-motion": "^11.7.0",
45
45
  "jsonwebtoken": "^9.0.2",
@@ -52,5 +52,5 @@
52
52
  "styled-components": "^5.3.5",
53
53
  "zod": "^3.23.8"
54
54
  },
55
- "gitHead": "eaa293691510bcff7233d44098944210bf109bdb"
55
+ "gitHead": "149a6e42d2a40f20a7714392e3ef17b6f24be360"
56
56
  }
@@ -26,9 +26,9 @@ export const Container = (props: Props) => {
26
26
  <>
27
27
  <div className={`mx-2 ${className}`}>
28
28
  {rightContent && (
29
- <div className="flex justify-between items-center">
30
- <div>{titleInfo}</div>
31
- <div>{rightContent}</div>
29
+ <div className="flex flex-col sm:flex-row sm:justify-between sm:items-start gap-4">
30
+ <div className="max-w-3xl">{titleInfo}</div>
31
+ <div className="flex-shrink-0">{rightContent}</div>
32
32
  </div>
33
33
  )}
34
34
  {!rightContent && titleInfo}