@zauru-sdk/components 1.0.18 → 1.0.19

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,14 @@
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.19](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.18...v1.0.19) (2024-03-22)
7
+
8
+ **Note:** Version bump only for package @zauru-sdk/components
9
+
10
+
11
+
12
+
13
+
6
14
  ## [1.0.18](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.17...v1.0.18) (2024-03-22)
7
15
 
8
16
  **Note:** Version bump only for package @zauru-sdk/components
@@ -2,7 +2,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
2
2
  import { useRef, useState } from "react";
3
3
  import { TextField } from "../Form";
4
4
  import { Form } from "@remix-run/react";
5
- import { LoadingInputSkeleton } from "src";
5
+ import { LoadingInputSkeleton } from "./../index";
6
6
  import { AttachmentIconSVG, SendMessageIcon, SpinnerSvg, } from "@zauru-sdk/icons";
7
7
  const ChatLayout = ({ children, sendingMessage = false, formConfig = undefined, }) => {
8
8
  const refAttachment = useRef(null);
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React, { useEffect, useCallback, useState } from "react";
3
- import { TextFieldWithoutValidation } from "src";
4
- import { SelectFieldWithoutValidation } from "src";
3
+ import { TextFieldWithoutValidation } from "./../index";
4
+ import { SelectFieldWithoutValidation } from "./../index";
5
5
  import { useAppSelector } from "@zauru-sdk/redux";
6
6
  const errorAnimation = {
7
7
  hidden: { opacity: 0, y: -10 },
@@ -7,7 +7,7 @@ import { createModal } from "../Modal";
7
7
  import { Button } from "../Buttons/Button";
8
8
  import { useAppSelector } from "@zauru-sdk/redux";
9
9
  import { generateClientUUID } from "@zauru-sdk/common";
10
- import { LoadingInputSkeleton, WithTooltip } from "src";
10
+ import { LoadingInputSkeleton, WithTooltip } from "./../index";
11
11
  import { TrashSvg } from "@zauru-sdk/icons";
12
12
  const GenericDynamicTableErrorComponent = ({ name, formName, }) => {
13
13
  const { formValidations } = useAppSelector((state) => state.formValidation);
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useEffect, useState } from "react";
3
- import { LoadingInputSkeleton } from "src";
3
+ import { LoadingInputSkeleton } from "./../index";
4
4
  import ConnectionState from "src/ConnectionState/ConnectionState";
5
5
  const COLORS = {
6
6
  purple: "bg-purple-500",
@@ -8,7 +8,7 @@ import { SelectField } from "../SelectField";
8
8
  import { FileUploadField } from "../FileUpload";
9
9
  import { FormDatePicker } from "../DatePicker";
10
10
  import { FormTimePicker } from "../TimePicker";
11
- import { LineSeparator, StaticAlert, SubContainer } from "src";
11
+ import { LineSeparator, StaticAlert, SubContainer } from "./../../index";
12
12
  import { GenericDynamicTable } from "src/DynamicTable/GenericDynamicTable";
13
13
  import { getDepSelectOptions, getMunSelectOptions } from "@zauru-sdk/common";
14
14
  export function DynamicBaculoForm(props) {
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Form } from "@remix-run/react";
3
- import { ButtonSectionContainer } from "src";
3
+ import { ButtonSectionContainer } from "./../../index";
4
4
  export const FormLayout = (props) => {
5
5
  const { title, children, buttons, method, formId } = props;
6
6
  return (_jsxs(Form, { id: formId, name: formId, method: method ?? "post", children: [title && (_jsx("label", { className: "block text-sm font-medium text-gray-700 mb-3", children: title })), _jsxs("div", { className: "shadow sm:overflow-hidden sm:rounded-md", children: [_jsx("div", { className: "space-y-6 bg-white px-4 py-5 sm:p-6", children: children }), buttons && (_jsx(ButtonSectionContainer, { children: buttons }))] })] }, formId));
@@ -3,7 +3,7 @@ import { IdeaIconSVG } from "@zauru-sdk/icons";
3
3
  import { useAppSelector } from "@zauru-sdk/redux";
4
4
  import { useEffect, useState } from "react";
5
5
  import Select, { components } from "react-select";
6
- import { LoadingInputSkeleton } from "src";
6
+ import { LoadingInputSkeleton } from "./../../index";
7
7
  const Input = (props) => (_jsx(components.Input, { ...props, readOnly: props.selectProps.isReadOnly }));
8
8
  export const SelectFieldWithoutValidation = (props) => {
9
9
  const { id, name, title, defaultValue, defaultValueMulti = [], helpText, hint, options, onChange, onChangeMulti, isClearable = false, error = false, disabled = false, readOnly = false, isMulti = false, loading = false, className = "", onInputChange, } = props;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
- import { LoadingInputSkeleton } from "src";
3
+ import { LoadingInputSkeleton } from "./../index";
4
4
  export const StepWizardComponent = ({ steps, showStepName = false, loading = false, }) => {
5
5
  const [currentStep, setCurrentStep] = useState(0);
6
6
  if (loading) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/components",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "Componentes reutilizables en las WebApps de Zauru.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -33,8 +33,8 @@
33
33
  "@reduxjs/toolkit": "^2.2.1",
34
34
  "@remix-run/react": "^2.8.1",
35
35
  "@zauru-sdk/common": "^1.0.13",
36
- "@zauru-sdk/hooks": "^1.0.18",
37
- "@zauru-sdk/icons": "^1.0.13",
36
+ "@zauru-sdk/hooks": "^1.0.19",
37
+ "@zauru-sdk/icons": "^1.0.19",
38
38
  "@zauru-sdk/types": "^1.0.13",
39
39
  "@zauru-sdk/utils": "^1.0.18",
40
40
  "framer-motion": "^11.0.8",
@@ -48,5 +48,5 @@
48
48
  "engines": {
49
49
  "node": ">=18.0.0"
50
50
  },
51
- "gitHead": "bcd403ed2996283a6eed13ce56cc24b2ee824369"
51
+ "gitHead": "227f52a55db81dcb1c38fe7f413775496f292a26"
52
52
  }
@@ -2,7 +2,7 @@ import React, { useRef, useState } from "react";
2
2
  import { TextField } from "../Form";
3
3
  import { Form } from "@remix-run/react";
4
4
  import { FormDocumentType } from "@zauru-sdk/types";
5
- import { LoadingInputSkeleton } from "src";
5
+ import { LoadingInputSkeleton } from "./../index";
6
6
  import {
7
7
  AttachmentIconSVG,
8
8
  SendMessageIcon,
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useCallback, useState, type ReactNode } from "react";
2
- import { TextFieldWithoutValidation } from "src";
3
- import { SelectFieldWithoutValidation } from "src";
2
+ import { TextFieldWithoutValidation } from "./../index";
3
+ import { SelectFieldWithoutValidation } from "./../index";
4
4
  import type { SingleValue } from "react-select";
5
5
  import { useAppSelector } from "@zauru-sdk/redux";
6
6
  import { SelectFieldOption } from "@zauru-sdk/types";
@@ -11,7 +11,7 @@ import {
11
11
  } from "@zauru-sdk/types";
12
12
  import { useAppSelector } from "@zauru-sdk/redux";
13
13
  import { generateClientUUID } from "@zauru-sdk/common";
14
- import { LoadingInputSkeleton, WithTooltip } from "src";
14
+ import { LoadingInputSkeleton, WithTooltip } from "./../index";
15
15
  import { TrashSvg } from "@zauru-sdk/icons";
16
16
 
17
17
  type Props = {
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect, useState } from "react";
2
- import { LoadingInputSkeleton } from "src";
2
+ import { LoadingInputSkeleton } from "./../index";
3
3
  import ConnectionState from "src/ConnectionState/ConnectionState";
4
4
 
5
5
  type FooterProps = {
@@ -14,7 +14,7 @@ import {
14
14
  GenericDynamicTableColumn,
15
15
  SelectFieldOption,
16
16
  } from "@zauru-sdk/types";
17
- import { LineSeparator, StaticAlert, SubContainer } from "src";
17
+ import { LineSeparator, StaticAlert, SubContainer } from "./../../index";
18
18
  import { GenericDynamicTable } from "src/DynamicTable/GenericDynamicTable";
19
19
  import { getDepSelectOptions, getMunSelectOptions } from "@zauru-sdk/common";
20
20
 
@@ -1,6 +1,6 @@
1
1
  import { Form, type FormMethod } from "@remix-run/react";
2
2
  import { type ReactNode } from "react";
3
- import { ButtonSectionContainer } from "src";
3
+ import { ButtonSectionContainer } from "./../../index";
4
4
 
5
5
  type Props = {
6
6
  formId: string;
@@ -4,7 +4,7 @@ import { SelectFieldOption } from "@zauru-sdk/types";
4
4
  import { useEffect, useState } from "react";
5
5
  import type { SingleValue, InputActionMeta } from "react-select";
6
6
  import Select, { components } from "react-select";
7
- import { LoadingInputSkeleton } from "src";
7
+ import { LoadingInputSkeleton } from "./../../index";
8
8
 
9
9
  type Props = {
10
10
  id?: string;
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from "react";
2
2
  import React, { useState } from "react";
3
- import { LoadingInputSkeleton } from "src";
3
+ import { LoadingInputSkeleton } from "./../index";
4
4
 
5
5
  export type StepWizard = {
6
6
  index: number;