@zauru-sdk/components 1.0.40 → 1.0.42

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
+ ## [1.0.42](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.41...v1.0.42) (2024-03-31)
7
+
8
+ **Note:** Version bump only for package @zauru-sdk/components
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.0.41](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.40...v1.0.41) (2024-03-26)
15
+
16
+ **Note:** Version bump only for package @zauru-sdk/components
17
+
18
+
19
+
20
+
21
+
6
22
  ## [1.0.40](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.39...v1.0.40) (2024-03-26)
7
23
 
8
24
  **Note:** Version bump only for package @zauru-sdk/components
@@ -54,7 +54,7 @@ export function DynamicBaculoForm(props) {
54
54
  case "number":
55
55
  return (_jsx(TextField, { title: `${field.required ? "*" : ""}${field.name}`, name: `${namesStr}${field.form_id}_${field.id}`, hint: field.hint, defaultValue: defaultValue?.value ?? field.default_value, type: "number", disabled: readOnly }, field.id));
56
56
  case "yes_no":
57
- return (_jsx(YesNo, { title: `${field.required ? "*" : ""}${field.name}`, name: `${namesStr}${field.form_id}_${field.id}`, disabled: readOnly, defaultValue: defaultValue?.value === "true" ?? field.default_value === "true" }, field.id));
57
+ return (_jsx(YesNo, { title: `${field.required ? "*" : ""}${field.name}`, name: `${namesStr}${field.form_id}_${field.id}`, disabled: readOnly, defaultValue: field.default_value === "true" || defaultValue?.value === "true" }, field.id));
58
58
  case "section":
59
59
  return (_jsxs("div", { children: [_jsx(LineSeparator, {}), _jsx("h3", { className: "mb-10 text-3xl font-bold leading-8 text-gray-900", children: field.name })] }, field.id));
60
60
  case "multi_line_text":
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ module.exports = {
2
+ content: ["./app/**/*.{ts,tsx,jsx,js}"],
3
+ theme: {
4
+ extend: {},
5
+ },
6
+ plugins: [require("@tailwindcss/forms")],
7
+ };
8
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/components",
3
- "version": "1.0.40",
3
+ "version": "1.0.42",
4
4
  "description": "Componentes reutilizables en las WebApps de Zauru.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,9 +12,13 @@
12
12
  "build": "tsc",
13
13
  "test": "echo \"Error: no test specified\" && exit 1"
14
14
  },
15
- "author": "Oscar Cuéllar",
15
+ "author": {
16
+ "name": "Oscar Cuellar",
17
+ "email": "usackoka@gmail.com"
18
+ },
16
19
  "license": "MIT",
17
20
  "devDependencies": {
21
+ "@tailwindcss/forms": "^0.5.7",
18
22
  "@types/jsonwebtoken": "^9.0.2",
19
23
  "@types/react": "^18.2.20",
20
24
  "@types/react-dom": "^18.2.7",
@@ -25,6 +29,7 @@
25
29
  "eslint-plugin-jsx-a11y": "^6.7.1",
26
30
  "eslint-plugin-react": "^7.33.2",
27
31
  "eslint-plugin-react-hooks": "^4.6.0",
32
+ "postcss": "^8.4.35",
28
33
  "tailwindcss": "^3.4.1",
29
34
  "typescript": "^5.1.6"
30
35
  },
@@ -32,7 +37,7 @@
32
37
  "@reduxjs/toolkit": "^2.2.1",
33
38
  "@remix-run/react": "^2.8.1",
34
39
  "@zauru-sdk/common": "^1.0.33",
35
- "@zauru-sdk/hooks": "^1.0.40",
40
+ "@zauru-sdk/hooks": "^1.0.41",
36
41
  "@zauru-sdk/icons": "^1.0.39",
37
42
  "@zauru-sdk/types": "^1.0.33",
38
43
  "@zauru-sdk/utils": "^1.0.33",
@@ -46,7 +51,7 @@
46
51
  "styled-components": "^5.3.5"
47
52
  },
48
53
  "engines": {
49
- "node": ">=18.0.0"
54
+ "node": ">=20"
50
55
  },
51
- "gitHead": "d119347011231cdb5151be974176ec81ed8363ac"
56
+ "gitHead": "3db027cc98f6a58508c209d795e4e12997e1315b"
52
57
  }
@@ -179,7 +179,7 @@ export function DynamicBaculoForm(props: Props) {
179
179
  name={`${namesStr}${field.form_id}_${field.id}`}
180
180
  disabled={readOnly}
181
181
  defaultValue={
182
- defaultValue?.value === "true" ?? field.default_value === "true"
182
+ field.default_value === "true" || defaultValue?.value === "true"
183
183
  }
184
184
  />
185
185
  );
@@ -0,0 +1,5 @@
1
+ export default {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ },
5
+ };
@@ -0,0 +1,10 @@
1
+ /** @type {import('tailwindcss').Config} */
2
+ import type { Config } from "tailwindcss";
3
+
4
+ module.exports = {
5
+ content: ["./app/**/*.{ts,tsx,jsx,js}"],
6
+ theme: {
7
+ extend: {},
8
+ },
9
+ plugins: [require("@tailwindcss/forms")],
10
+ } satisfies Config;
@@ -0,0 +1,3 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;