@apexcura/ui-components 0.0.13-Beta18 → 0.0.13-Beta20

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.d.mts CHANGED
@@ -61,17 +61,7 @@ interface ElementExecuterProps$3 extends ElementType {
61
61
  }
62
62
  declare const TextElement: (props: ElementExecuterProps$3) => React$1.JSX.Element;
63
63
 
64
- interface InputData {
65
- placeholder?: string;
66
- id?: string;
67
- prefix?: React$1.ReactNode;
68
- addonBefore?: React$1.ReactNode;
69
- type?: string;
70
- }
71
- interface PasswordProps {
72
- inputData: InputData;
73
- }
74
- declare const PasswordElement: React$1.FC<PasswordProps>;
64
+ declare const PasswordElement: (props: ElementType) => React$1.JSX.Element;
75
65
 
76
66
  interface ElementExecuterProps$2 extends ElementType {
77
67
  onChange: (value: string | number | object | boolean | any[] | undefined) => void;
package/dist/index.d.ts CHANGED
@@ -61,17 +61,7 @@ interface ElementExecuterProps$3 extends ElementType {
61
61
  }
62
62
  declare const TextElement: (props: ElementExecuterProps$3) => React$1.JSX.Element;
63
63
 
64
- interface InputData {
65
- placeholder?: string;
66
- id?: string;
67
- prefix?: React$1.ReactNode;
68
- addonBefore?: React$1.ReactNode;
69
- type?: string;
70
- }
71
- interface PasswordProps {
72
- inputData: InputData;
73
- }
74
- declare const PasswordElement: React$1.FC<PasswordProps>;
64
+ declare const PasswordElement: (props: ElementType) => React$1.JSX.Element;
75
65
 
76
66
  interface ElementExecuterProps$2 extends ElementType {
77
67
  onChange: (value: string | number | object | boolean | any[] | undefined) => void;
package/dist/index.js CHANGED
@@ -56,7 +56,7 @@ module.exports = __toCommonJS(src_exports);
56
56
  var import_react = __toESM(require("react"));
57
57
  var import_antd = require("antd");
58
58
  var TextElement = (props) => {
59
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, props.label && /* @__PURE__ */ import_react.default.createElement("label", { htmlFor: props.name }, props.label), /* @__PURE__ */ import_react.default.createElement(
59
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, props.label && /* @__PURE__ */ import_react.default.createElement("label", { htmlFor: props.name, style: { display: "flex", flexDirection: "row", justifyContent: "left" } }, props.label), /* @__PURE__ */ import_react.default.createElement(
60
60
  import_antd.Input,
61
61
  {
62
62
  placeholder: props.placeholder,
@@ -81,7 +81,7 @@ var TextElement = (props) => {
81
81
  var import_react2 = __toESM(require("react"));
82
82
  var import_icons = require("@ant-design/icons");
83
83
  var import_antd2 = require("antd");
84
- var PasswordElement = ({ inputData }) => {
84
+ var PasswordElement = (props) => {
85
85
  const [passwordVisible, setPasswordVisible] = (0, import_react2.useState)(false);
86
86
  const handleVisibilityToggle = () => {
87
87
  setPasswordVisible((prev) => !prev);
@@ -90,11 +90,10 @@ var PasswordElement = ({ inputData }) => {
90
90
  const renderPasswordInput = () => /* @__PURE__ */ import_react2.default.createElement(
91
91
  import_antd2.Input.Password,
92
92
  {
93
- placeholder: inputData.placeholder,
94
- id: inputData.id,
95
- prefix: inputData.prefix,
96
- addonBefore: inputData.addonBefore,
97
- type: inputData.type,
93
+ placeholder: props.placeholder,
94
+ prefix: props.prefix,
95
+ addonBefore: props.addonBefore,
96
+ type: props.type,
98
97
  iconRender: renderVisibilityIcon,
99
98
  visibilityToggle: { visible: passwordVisible, onVisibleChange: handleVisibilityToggle }
100
99
  }
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  import React from "react";
3
3
  import { Input as AntInput } from "antd";
4
4
  var TextElement = (props) => {
5
- return /* @__PURE__ */ React.createElement(React.Fragment, null, props.label && /* @__PURE__ */ React.createElement("label", { htmlFor: props.name }, props.label), /* @__PURE__ */ React.createElement(
5
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, props.label && /* @__PURE__ */ React.createElement("label", { htmlFor: props.name, style: { display: "flex", flexDirection: "row", justifyContent: "left" } }, props.label), /* @__PURE__ */ React.createElement(
6
6
  AntInput,
7
7
  {
8
8
  placeholder: props.placeholder,
@@ -27,7 +27,7 @@ var TextElement = (props) => {
27
27
  import React2, { useState } from "react";
28
28
  import { EyeInvisibleOutlined, EyeTwoTone } from "@ant-design/icons";
29
29
  import { Button, Input, Space } from "antd";
30
- var PasswordElement = ({ inputData }) => {
30
+ var PasswordElement = (props) => {
31
31
  const [passwordVisible, setPasswordVisible] = useState(false);
32
32
  const handleVisibilityToggle = () => {
33
33
  setPasswordVisible((prev) => !prev);
@@ -36,11 +36,10 @@ var PasswordElement = ({ inputData }) => {
36
36
  const renderPasswordInput = () => /* @__PURE__ */ React2.createElement(
37
37
  Input.Password,
38
38
  {
39
- placeholder: inputData.placeholder,
40
- id: inputData.id,
41
- prefix: inputData.prefix,
42
- addonBefore: inputData.addonBefore,
43
- type: inputData.type,
39
+ placeholder: props.placeholder,
40
+ prefix: props.prefix,
41
+ addonBefore: props.addonBefore,
42
+ type: props.type,
44
43
  iconRender: renderVisibilityIcon,
45
44
  visibilityToggle: { visible: passwordVisible, onVisibleChange: handleVisibilityToggle }
46
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.13-Beta18",
3
+ "version": "0.0.13-Beta20",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",