react-core-ts 1.1.24 → 1.1.26

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,4 +1,4 @@
1
- import React from "react";
2
- import { TextFieldProps } from "./commontypes";
1
+ import React from 'react';
2
+ import { TextFieldProps } from './commontypes';
3
3
  declare const TextField: React.FC<TextFieldProps>;
4
4
  export default TextField;
@@ -16,14 +16,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  var jsx_runtime_1 = require("react/jsx-runtime");
18
18
  var react_1 = require("react");
19
+ var customIcons_1 = __importDefault(require("./components/customIcons"));
19
20
  var ReactAutoComplete_1 = __importDefault(require("./ReactAutoComplete"));
20
21
  var getPosition_1 = require("./utilities/getPosition");
21
- var customIcons_1 = __importDefault(require("./components/customIcons"));
22
22
  var TextField = function (_a) {
23
- var name = _a.name, id = _a.id, label = _a.label, _b = _a.type, type = _b === void 0 ? "text" : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, _d = _a.readOnly, readOnly = _d === void 0 ? false : _d, _e = _a.fullwidth, fullwidth = _e === void 0 ? true : _e, _f = _a.uppercase, uppercase = _f === void 0 ? false : _f, _g = _a.adorementPosition, adorementPosition = _g === void 0 ? "end" : _g, register = _a.register, adorement = _a.adorement, propsClassName = _a.className, value = _a.value, _h = _a.placeholder, placeholder = _h === void 0 ? "" : _h, min = _a.min, max = _a.max, _j = _a.size, size = _j === void 0 ? "md" : _j, _k = _a.required, required = _k === void 0 ? false : _k, _l = _a.autoComplete, autoComplete = _l === void 0 ? false : _l, isValid = _a.isValid, _m = _a.isTooltip, isTooltip = _m === void 0 ? true : _m, _o = _a.maxLength, maxLength = _o === void 0 ? 200 : _o, _p = _a.autoFocus, autoFocus = _p === void 0 ? false : _p, step = _a.step, //new requirement number steper
23
+ var name = _a.name, id = _a.id, label = _a.label, _b = _a.type, type = _b === void 0 ? 'text' : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, _d = _a.readOnly, readOnly = _d === void 0 ? false : _d, _e = _a.fullwidth, fullwidth = _e === void 0 ? true : _e, _f = _a.uppercase, uppercase = _f === void 0 ? false : _f, _g = _a.adorementPosition, adorementPosition = _g === void 0 ? 'end' : _g, register = _a.register, adorement = _a.adorement, propsClassName = _a.className, value = _a.value, _h = _a.placeholder, placeholder = _h === void 0 ? '' : _h, min = _a.min, max = _a.max, _j = _a.size, size = _j === void 0 ? 'md' : _j, _k = _a.required, required = _k === void 0 ? false : _k, _l = _a.autoComplete, autoComplete = _l === void 0 ? false : _l, isValid = _a.isValid, _m = _a.isTooltip, isTooltip = _m === void 0 ? true : _m, _o = _a.maxLength, maxLength = _o === void 0 ? 200 : _o, _p = _a.autoFocus, autoFocus = _p === void 0 ? false : _p, step = _a.step, //new requirement number steper
24
24
  onStepUp = _a.onStepUp, //new requirement number steper
25
25
  onStepDown = _a.onStepDown, //new requirement number steper
26
- onChange = _a.onChange, onBlur = _a.onBlur, errors = _a.errors, keyRegexPattern = _a.keyRegexPattern, backGround = _a.backGround, //added for set background colour according to the form
26
+ onChange = _a.onChange, infoTitle = _a.infoTitle, onBlur = _a.onBlur, showInfo = _a.showInfo, errors = _a.errors, keyRegexPattern = _a.keyRegexPattern, backGround = _a.backGround, //added for set background colour according to the form
27
27
  /// Provition to add Prefixes
28
28
  onPrefixChange = _a.onPrefixChange, prefixValue = _a.prefixValue, prefixes = _a.prefixes, width = _a.width, labelTitle = _a.labelTitle, _q = _a.hideLabel, hideLabel = _q === void 0 ? false : _q;
29
29
  // const [editState, setEditState] = useState<boolean>(false)
@@ -58,7 +58,7 @@ var TextField = function (_a) {
58
58
  setWidth(innerwidth);
59
59
  }, [adorement]);
60
60
  var getErrors = function (err) {
61
- var errMsg = "";
61
+ var errMsg = '';
62
62
  if (err === null || err === void 0 ? void 0 : err.message) {
63
63
  errMsg = err === null || err === void 0 ? void 0 : err.message;
64
64
  }
@@ -71,55 +71,55 @@ var TextField = function (_a) {
71
71
  }, [autoFocus]);
72
72
  var getHeight = function () {
73
73
  switch (size) {
74
- case "xs":
75
- return " h-10 ";
76
- case "xxs":
77
- return " h-[25px] ";
78
- case "sm":
79
- return " h-[34px] ";
80
- case "md":
81
- return " h-10 ";
82
- case "lg":
83
- return " h-10 ";
74
+ case 'xs':
75
+ return ' h-10 ';
76
+ case 'xxs':
77
+ return ' h-[25px] ';
78
+ case 'sm':
79
+ return ' h-[34px] ';
80
+ case 'md':
81
+ return ' h-10 ';
82
+ case 'lg':
83
+ return ' h-10 ';
84
84
  default:
85
- return " h-10 ";
85
+ return ' h-10 ';
86
86
  }
87
87
  };
88
- var getBg = function () { return backGround || "bg-transparent"; }; //added for set background colour according to the form
88
+ var getBg = function () { return backGround || 'bg-transparent'; }; //added for set background colour according to the form
89
89
  var generateClassName = function (from) {
90
- var className = propsClassName;
90
+ var className = "".concat(propsClassName, " ");
91
91
  switch (from) {
92
- case "input":
93
- className += "block ".concat(size === "xxs" ? " text-xxs" : "text-common", " text-input-text font-normal ").concat(step && adorement ? "px-2.5" : "px-3.5", " w-full text-sm text-gray-900 ").concat(getBg(), " border appearance-none peer rounded-[4px] disabled:text-input-disabled bg-white disabled:bg-disabled ").concat(hideLabel ? "" : "placeholder-transparent", " focus:placeholder-grey-secondary ").concat(adorementPosition === "start" && "pl-[45px]", " ").concat(getHeight());
92
+ case 'input':
93
+ className += "block ".concat(size === 'xxs' ? ' text-xxs' : 'text-common', " text-input-text font-normal ").concat(step && adorement ? 'px-2.5' : 'px-3.5', " w-full text-sm text-gray-900 ").concat(getBg(), " border appearance-none peer rounded-[4px] disabled:text-input-disabled bg-white disabled:bg-disabled ").concat(hideLabel ? '' : 'placeholder-transparent', " focus:placeholder-grey-secondary ").concat(adorementPosition === 'start' && ' !pl-[45px] ', " ").concat(getHeight());
94
94
  if (errors && errors[name]) {
95
95
  className +=
96
- " border-[#FDA29B] focus:border-error-[#FDA29B] focus:ring-[#FDA29B] focus:ring-3 focus:outline-[#FDA29B] input-outline";
96
+ ' border-[#FDA29B] focus:border-error-[#FDA29B] focus:ring-[#FDA29B] focus:ring-3 focus:outline-[#FDA29B] input-outline';
97
97
  }
98
98
  else {
99
99
  className +=
100
- " text-grey-dark border-input-light focus:border-blue-navy focus:outline-none focus:ring-0";
100
+ ' text-grey-dark border-input-light focus:border-blue-navy focus:outline-none focus:ring-0';
101
101
  }
102
102
  break;
103
- case "label": // changes made for remove bg-white from placeolder is field disable and or with data
104
- className += " modern-input-label peer-focus:modern-input-peer-focus-label-size absolute duration-300 transform -translate-y-4 top-2 z-1 origin-[0] px-0 \n peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 \n peer-focus:-translate-y-4 start-[14px] rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto ".concat(isDisabled ? "cursor-pointer" : "cursor-text peer-focus:cursor-pointer", " ").concat(!isDisabled || !checkIsEmptyField()
105
- ? "active-input-label-bg"
103
+ case 'label': // changes made for remove bg-white from placeolder is field disable and or with data
104
+ className += " modern-input-label peer-focus:modern-input-peer-focus-label-size absolute duration-300 transform -translate-y-4 top-2 z-1 origin-[0] px-0 \n peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 \n peer-focus:-translate-y-4 start-[14px] rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto ".concat(isDisabled ? 'cursor-pointer' : 'cursor-text peer-focus:cursor-pointer', " ").concat(!isDisabled || !checkIsEmptyField()
105
+ ? 'active-input-label-bg'
106
106
  : isDisabled && !checkIsEmptyField()
107
- ? "disabled-input-label-bg"
108
- : "", " ").concat(checkIsEmptyField()
109
- ? "modern-input-label-size"
110
- : "modern-input-peer-focus-label-size");
107
+ ? 'disabled-input-label-bg'
108
+ : '', " ").concat(checkIsEmptyField()
109
+ ? 'modern-input-label-size'
110
+ : 'modern-input-peer-focus-label-size');
111
111
  if (errors && errors[name]) {
112
- className += " text-error-light ";
112
+ className += ' text-error-light ';
113
113
  }
114
114
  else {
115
- className += " text-grey-dark peer-focus:text-blue-navy";
115
+ className += ' text-grey-dark peer-focus:text-blue-navy';
116
116
  }
117
117
  break;
118
- case "message":
119
- className = " text-error-icon ";
118
+ case 'message':
119
+ className = ' text-error-icon ';
120
120
  break;
121
- case "adorement":
122
- className += "".concat(isDisabled ? "bg-bodyBG" : "bg-white", " absolute right-0 adorement gap-1 flex items-center");
121
+ case 'adorement':
122
+ className += "".concat(isDisabled ? 'bg-bodyBG' : 'bg-white', " absolute right-0 adorement gap-1 flex items-center");
123
123
  break;
124
124
  default:
125
125
  break;
@@ -128,17 +128,17 @@ var TextField = function (_a) {
128
128
  };
129
129
  var handleError = function (data) {
130
130
  var _a;
131
- if (getErrors(data[name]) === "required" ||
132
- getErrors(data[name]) === "Required") {
131
+ if (getErrors(data[name]) === 'required' ||
132
+ getErrors(data[name]) === 'Required') {
133
133
  return "".concat(label !== null && label !== void 0 ? label : labelTitle, " is ").concat(getErrors(data[name]));
134
134
  }
135
135
  else {
136
- return (_a = getErrors(data[name])) !== null && _a !== void 0 ? _a : "";
136
+ return (_a = getErrors(data[name])) !== null && _a !== void 0 ? _a : '';
137
137
  }
138
138
  };
139
139
  // Added handle key press function on textfield to restrict typing letter 'e' on number type
140
140
  var handleKeyPress = function (e) {
141
- if (type === "number" && e.key === "e")
141
+ if (type === 'number' && e.key === 'e')
142
142
  e.preventDefault();
143
143
  };
144
144
  var handleChange = function (event) {
@@ -155,8 +155,8 @@ var TextField = function (_a) {
155
155
  var renderPrefix = function () {
156
156
  if (prefixes) {
157
157
  switch (prefixes === null || prefixes === void 0 ? void 0 : prefixes.type) {
158
- case "custom_select":
159
- return ((0, jsx_runtime_1.jsx)(ReactAutoComplete_1.default, { placeholder: prefixes.placeholder, onChange: function (e) { return onPrefixChange === null || onPrefixChange === void 0 ? void 0 : onPrefixChange(e); }, name: prefixes.name, value: prefixValue !== null && prefixValue !== void 0 ? prefixValue : { id: "", name: "" }, type: "custom_select", isCustomPlaceholder: true, fullWidth: false, width: prefixes.width, fromPrefix: true, isClose: false, hideClear: prefixes.hideClear, data: prefixes.data, hasParentError: Boolean(errors && errors[name]), errors: errors, disabled: prefixes.disabled, required: prefixes.required, autoFilter: prefixes.autoFilter ? prefixes.autoFilter : false }, prefixes.name));
158
+ case 'custom_select':
159
+ return ((0, jsx_runtime_1.jsx)(ReactAutoComplete_1.default, { placeholder: prefixes.placeholder, onChange: function (e) { return onPrefixChange === null || onPrefixChange === void 0 ? void 0 : onPrefixChange(e); }, name: prefixes.name, value: prefixValue !== null && prefixValue !== void 0 ? prefixValue : { id: '', name: '' }, type: "custom_select", isCustomPlaceholder: true, fullWidth: false, width: prefixes.width, fromPrefix: true, isClose: false, hideClear: prefixes.hideClear, data: prefixes.data, hasParentError: Boolean(errors && errors[name]), errors: errors, disabled: prefixes.disabled, required: prefixes.required, autoFilter: prefixes.autoFilter ? prefixes.autoFilter : false }, prefixes.name));
160
160
  default:
161
161
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
162
162
  }
@@ -182,7 +182,7 @@ var TextField = function (_a) {
182
182
  }
183
183
  };
184
184
  var handleAction = function (type) {
185
- if (type === "up")
185
+ if (type === 'up')
186
186
  onStepUp === null || onStepUp === void 0 ? void 0 : onStepUp();
187
187
  else
188
188
  onStepDown === null || onStepDown === void 0 ? void 0 : onStepDown();
@@ -204,7 +204,7 @@ var TextField = function (_a) {
204
204
  (0, react_1.useEffect)(function () {
205
205
  (0, getPosition_1.applyPositionClass)(textFieldRef);
206
206
  }, [isHovered]);
207
- return ((0, jsx_runtime_1.jsx)("div", __assign({ ref: textFieldRef, className: " ".concat(fullwidth ? "w-full" : "w-auto") }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: "tooltip-container " }, { children: [isHovered && errors && errors[name] && ((0, jsx_runtime_1.jsxs)("span", __assign({ className: "tooltip" }, { children: [handleError(errors), " "] }))), (0, jsx_runtime_1.jsxs)("div", __assign({ className: "w-full ".concat(prefixes ? "flex" : "") }, { children: [prefixes && renderPrefix(), (0, jsx_runtime_1.jsxs)("div", __assign({ className: "flex relative ".concat(fullwidth ? "w-full" : "w-auto"), style: { width: width } }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: "relative w-full " }, { children: [(0, jsx_runtime_1.jsx)("input", __assign({
207
+ return ((0, jsx_runtime_1.jsx)("div", __assign({ ref: textFieldRef, className: " ".concat(fullwidth ? 'w-full' : 'w-auto') }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: "tooltip-container " }, { children: [isHovered && errors && errors[name] && ((0, jsx_runtime_1.jsxs)("span", __assign({ className: "tooltip" }, { children: [handleError(errors), " "] }))), isHovered && infoTitle && ((0, jsx_runtime_1.jsxs)("span", __assign({ className: "tooltip-info" }, { children: [infoTitle, " "] }))), (0, jsx_runtime_1.jsxs)("div", __assign({ className: "w-full ".concat(prefixes ? "flex" : "") }, { children: [prefixes && renderPrefix(), (0, jsx_runtime_1.jsxs)("div", __assign({ className: "flex relative ".concat(fullwidth ? 'w-full' : 'w-auto'), style: { width: width } }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: "relative w-full " }, { children: [(0, jsx_runtime_1.jsx)("input", __assign({
208
208
  // key={updateKey}
209
209
  type: type,
210
210
  // id={frmid+id}
@@ -216,18 +216,18 @@ var TextField = function (_a) {
216
216
  borderTopLeftRadius: 0,
217
217
  borderBottomLeftRadius: 0,
218
218
  }
219
- : {})), className: " ".concat(generateClassName("input"), " ").concat(uppercase ? "uppercase placeholder:normal-case" : "", " ''}"), placeholder: placeholder, onChange: function (e) {
219
+ : {})), className: " ".concat(generateClassName('input'), " ").concat(uppercase ? 'uppercase placeholder:normal-case' : '', " ''}"), placeholder: placeholder, onChange: function (e) {
220
220
  handleChange(e);
221
- }, onKeyDown: handleKeyPress, autoComplete: autoComplete ? "on" : "off", onBlur: function (e) { return onBlur === null || onBlur === void 0 ? void 0 : onBlur(e); },
221
+ }, onKeyDown: handleKeyPress, autoComplete: autoComplete ? 'on' : 'off', onBlur: function (e) { return onBlur === null || onBlur === void 0 ? void 0 : onBlur(e); },
222
222
  // autoFocus={autoFocus}
223
- value: value })), !hideLabel && ((0, jsx_runtime_1.jsxs)("label", __assign({ htmlFor: id, onClick: function () { return onLabelClick(); }, className: generateClassName("label") }, { children: [label, required ? (0, jsx_runtime_1.jsx)("span", __assign({ className: "text-error" }, { children: " *" })) : (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {})] })))] })), (adorement ||
223
+ value: value })), !hideLabel && ((0, jsx_runtime_1.jsxs)("label", __assign({ htmlFor: id, onClick: function () { return onLabelClick(); }, className: generateClassName('label') }, { children: [label, required ? (0, jsx_runtime_1.jsx)("span", __assign({ className: "text-error" }, { children: " *" })) : (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {})] })))] })), (adorement ||
224
224
  step ||
225
225
  (!isValid && isTooltip && errors && errors[name]) ||
226
- isValid) && ((0, jsx_runtime_1.jsxs)("div", __assign({ className: "flex items-center justify-center gap-1 " }, { children: [adorement && adorementPosition === "start" && ((0, jsx_runtime_1.jsx)("div", __assign({ className: " ".concat(isDisabled ? "text-zinc-500" : "text-grey-medium", " absolute adorement left-0 ") }, { children: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: adorement }) }))), (0, jsx_runtime_1.jsxs)("div", __assign({ className: "".concat(generateClassName("adorement"), " h-[20px] right-[1px]"), ref: adorementRef }, { children: [adorement && adorementPosition === "end" && ((0, jsx_runtime_1.jsx)("div", __assign({ className: " ".concat(isDisabled ? "text-zinc-500" : "text-grey-medium", " ") }, { children: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: adorement }) }))), step && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: "ml-2" }, { children: [(0, jsx_runtime_1.jsx)(customIcons_1.default, { name: "TreeUp_Arrow", className: "text-gray-500 hover:text-dark cursor-pointer ".concat(isDisabled ? "hidden" : "block"), type: "medium", onClick: function () {
227
- handleClick("up");
228
- }, onMouseDown: function () { return handleMouseDown("up"); }, onMouseUp: handleMouseUp, onMouseLeave: handleMouseUp, viewBox: true }), (0, jsx_runtime_1.jsx)(customIcons_1.default, { name: "TreeDown_Arrow", className: "text-gray-500 hover:text-dark cursor-pointer ".concat(isDisabled ? "hidden" : "block"), type: "medium", onClick: function () {
229
- handleClick("down");
230
- }, onMouseDown: function () { return handleMouseDown("down"); }, onMouseUp: handleMouseUp, onMouseLeave: handleMouseUp, viewBox: true })] })) })), !isValid && isTooltip && errors && errors[name] && ((0, jsx_runtime_1.jsx)("div", __assign({ className: " text-error-label relative bg-white cursor-pointer ".concat(generateClassName("message")), onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); } }, { children: (0, jsx_runtime_1.jsx)(customIcons_1.default, { name: "alert", type: "medium" }) }))), isValid && ((0, jsx_runtime_1.jsx)("div", __assign({ className: "pl-2" }, { children: (0, jsx_runtime_1.jsx)(customIcons_1.default, { name: "check_mark", type: "medium", className: "text-[#28B440]" }) })))] }))] })))] }))] }))] })) })));
226
+ isValid) && ((0, jsx_runtime_1.jsxs)("div", __assign({ className: "flex items-center justify-center gap-1 " }, { children: [adorement && adorementPosition === 'start' && ((0, jsx_runtime_1.jsx)("div", __assign({ className: " ".concat(isDisabled ? 'text-zinc-500' : 'text-grey-medium', " absolute adorement left-0 ") }, { children: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: adorement }) }))), (0, jsx_runtime_1.jsxs)("div", __assign({ className: "".concat(generateClassName('adorement'), " h-[20px] right-[1px]"), ref: adorementRef }, { children: [adorement && adorementPosition === 'end' && ((0, jsx_runtime_1.jsx)("div", __assign({ className: " ".concat(isDisabled ? 'text-zinc-500' : 'text-grey-medium', " ") }, { children: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: adorement }) }))), step && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: "ml-2" }, { children: [(0, jsx_runtime_1.jsx)(customIcons_1.default, { name: "TreeUp_Arrow", className: "text-gray-500 hover:text-dark cursor-pointer ".concat(isDisabled ? 'hidden' : 'block'), type: "medium", onClick: function () {
227
+ handleClick('up');
228
+ }, onMouseDown: function () { return handleMouseDown('up'); }, onMouseUp: handleMouseUp, onMouseLeave: handleMouseUp, viewBox: true }), (0, jsx_runtime_1.jsx)(customIcons_1.default, { name: "TreeDown_Arrow", className: "text-gray-500 hover:text-dark cursor-pointer ".concat(isDisabled ? 'hidden' : 'block'), type: "medium", onClick: function () {
229
+ handleClick('down');
230
+ }, onMouseDown: function () { return handleMouseDown('down'); }, onMouseUp: handleMouseUp, onMouseLeave: handleMouseUp, viewBox: true })] })) })), !isValid && isTooltip && errors && errors[name] && ((0, jsx_runtime_1.jsx)("div", __assign({ className: " text-error-label relative bg-white cursor-pointer ".concat(generateClassName('message')), onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); } }, { children: (0, jsx_runtime_1.jsx)(customIcons_1.default, { name: "alert", type: "medium" }) }))), infoTitle && showInfo && ((0, jsx_runtime_1.jsx)("div", __assign({ className: " text-error-label relative bg-white cursor-pointer ".concat(generateClassName("message")), onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); } }, { children: (0, jsx_runtime_1.jsx)(customIcons_1.default, { name: "infoCircle", type: "medium" }) }))), isValid && ((0, jsx_runtime_1.jsx)("div", __assign({ className: "pl-2" }, { children: (0, jsx_runtime_1.jsx)(customIcons_1.default, { name: "check_mark", type: "medium", className: "text-[#28B440]" }) })))] }))] })))] }))] }))] })) })));
231
231
  };
232
232
  exports.default = TextField;
233
233
  //# sourceMappingURL=ReactTextField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReactTextField.js","sourceRoot":"","sources":["../src/ReactTextField.tsx"],"names":[],"mappings":";;;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AC,QAAQ,GAAG,IAC3C,CACP,EACA,OAAO,IAAI,CACV,yCAAK,SAAS,EAAC,MAAM,gBACnB,uBAAC,qBAAW,IACV,IAAI,EAAC,YAAY,EACjB,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,gBAAgB,GAC1B,IACE,CACP,KACG,KACF,CACP,KACG,KACF,KACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -122,6 +122,8 @@ export interface TextFieldProps {
122
122
  hideLabel?: boolean;
123
123
  defaultData?: string[];
124
124
  onCreatableChange?: (e: string[]) => void;
125
+ infoTitle?: string;
126
+ showInfo?: boolean;
125
127
  }
126
128
  export interface TextAreaProps {
127
129
  id: string;
@@ -1,10 +1,6 @@
1
1
  .tooltip-container {
2
2
  position: relative;
3
- transition:
4
- background-color 0.3s,
5
- width 0.3s,
6
- height 0.3s,
7
- color 0.3s;
3
+ transition: background-color 0.3s, width 0.3s, height 0.3s, color 0.3s;
8
4
  }
9
5
 
10
6
  .bottom {
@@ -46,7 +42,7 @@
46
42
 
47
43
  .tooltip::before {
48
44
  position: absolute;
49
- content: '';
45
+ content: "";
50
46
  height: 0.6em;
51
47
  width: 0.6em;
52
48
  right: 20px;
@@ -64,7 +60,7 @@
64
60
  background-color: #000000;
65
61
  right: 14px;
66
62
  position: absolute;
67
- content: '';
63
+ content: "";
68
64
  height: 0.6em;
69
65
  width: 0.6em;
70
66
  z-index: 999;
@@ -79,7 +75,7 @@
79
75
  background-color: #000000;
80
76
  right: 14px;
81
77
  position: absolute;
82
- content: '';
78
+ content: "";
83
79
  height: 0.6em;
84
80
  width: 0.6em;
85
81
  z-index: 999;
@@ -110,6 +106,50 @@
110
106
  }
111
107
  }
112
108
  .top-tool {
109
+ .tooltip-info {
110
+ position: absolute;
111
+ bottom: 45px !important;
112
+ left: 0;
113
+ top: auto !important;
114
+ transform: translateX(0%);
115
+ padding: 0.3em 0.6em;
116
+ opacity: 0;
117
+ width: max-content;
118
+ white-space: normal;
119
+ z-index: 999;
120
+ font-size: 12px;
121
+ max-width: 100%;
122
+ color: white !important;
123
+ pointer-events: none;
124
+ transition: all 0.3s;
125
+ border: 1px solid #475467;
126
+ background-color: #475467;
127
+ border-radius: 6px;
128
+ color: rgb(34, 34, 34);
129
+ }
130
+
131
+ .tooltip-info::before {
132
+ position: absolute;
133
+ content: "";
134
+ height: 0.6em;
135
+ width: 0.6em;
136
+ z-index: 999;
137
+ bottom: -4px;
138
+ border: 1px solid #475467;
139
+ border-left: none;
140
+ border-top: none;
141
+ transform: translate(50%) rotate(45deg);
142
+ background-color: #475467;
143
+ }
144
+
145
+ .tooltip-container:hover .tooltip-info {
146
+ bottom: 45px !important;
147
+ opacity: 1;
148
+ top: auto !important;
149
+ visibility: visible;
150
+ z-index: 999;
151
+ pointer-events: auto;
152
+ }
113
153
  .tooltip {
114
154
  position: absolute;
115
155
  bottom: 45px !important;
@@ -134,7 +174,7 @@
134
174
 
135
175
  .tooltip::before {
136
176
  position: absolute;
137
- content: '';
177
+ content: "";
138
178
  height: 0.6em;
139
179
  width: 0.6em;
140
180
  z-index: 999;
@@ -156,6 +196,47 @@
156
196
  }
157
197
  }
158
198
  .bottom-tool {
199
+ .tooltip-info {
200
+ position: absolute;
201
+ bottom: -40;
202
+ transform: translateX(0%);
203
+ padding: 0.3em 0.6em;
204
+ opacity: 0;
205
+ width: max-content;
206
+ max-width: 100%;
207
+ z-index: 999;
208
+ font-size: 12px;
209
+ color: white !important;
210
+ white-space: wrap;
211
+ pointer-events: none;
212
+ transition: background-color 0.3s, width 0.3s, height 0.3s, color 0.3s;
213
+ border: 1px solid #475467;
214
+ background-color: #475467;
215
+ border-radius: 6px;
216
+ color: rgb(34, 34, 34);
217
+ }
218
+
219
+ .tooltip-info::before {
220
+ position: absolute;
221
+ content: "";
222
+ height: 0.6em;
223
+ width: 0.6em;
224
+ z-index: 999;
225
+ top: -4px;
226
+ border: 1px solid #475467;
227
+ border-right: none;
228
+ border-bottom: none;
229
+ transform: translate(50%) rotate(45deg);
230
+ background-color: #475467;
231
+ }
232
+
233
+ .tooltip-container:hover .tooltip-info {
234
+ top: 46px;
235
+ opacity: 1;
236
+ visibility: visible;
237
+ z-index: 999;
238
+ pointer-events: auto;
239
+ }
159
240
  .tooltip {
160
241
  position: absolute;
161
242
  bottom: -40;
@@ -169,11 +250,7 @@
169
250
  color: #ff681d !important;
170
251
  white-space: wrap;
171
252
  pointer-events: none;
172
- transition:
173
- background-color 0.3s,
174
- width 0.3s,
175
- height 0.3s,
176
- color 0.3s;
253
+ transition: background-color 0.3s, width 0.3s, height 0.3s, color 0.3s;
177
254
  border: 1px solid #ff681d;
178
255
  background-color: #fff;
179
256
  border-radius: 6px;
@@ -182,7 +259,7 @@
182
259
 
183
260
  .tooltip::before {
184
261
  position: absolute;
185
- content: '';
262
+ content: "";
186
263
  height: 0.6em;
187
264
  width: 0.6em;
188
265
  z-index: 999;
@@ -219,11 +296,7 @@
219
296
  font-size: 12px;
220
297
  color: #fff !important;
221
298
  pointer-events: none;
222
- transition:
223
- background-color 0.3s,
224
- width 0.3s,
225
- height 0.3s,
226
- color 0.3s;
299
+ transition: background-color 0.3s, width 0.3s, height 0.3s, color 0.3s;
227
300
  border: 1px solid #e55353;
228
301
  background-color: #e55353;
229
302
  border-radius: 6px;
@@ -236,12 +309,11 @@
236
309
  min-width: 175px;
237
310
  background-color: #3d414a;
238
311
  border: 1px solid #3d414a;
239
-
240
312
  }
241
313
 
242
314
  .tooltip::before {
243
315
  position: absolute;
244
- content: '';
316
+ content: "";
245
317
  height: 0.6em;
246
318
  width: 0.6em;
247
319
  left: -8px;
@@ -291,11 +363,7 @@
291
363
  font-size: 12px;
292
364
  color: #fff !important;
293
365
  pointer-events: none;
294
- transition:
295
- background-color 0.3s,
296
- width 0.3s,
297
- height 0.3s,
298
- color 0.3s;
366
+ transition: background-color 0.3s, width 0.3s, height 0.3s, color 0.3s;
299
367
  border: 1px solid #e55353;
300
368
  background-color: #e55353;
301
369
  border-radius: 6px;
@@ -304,7 +372,7 @@
304
372
 
305
373
  .tooltip::before {
306
374
  position: absolute;
307
- content: '';
375
+ content: "";
308
376
  height: 0.6em;
309
377
  width: 0.6em;
310
378
  right: 0px;
@@ -340,11 +408,7 @@
340
408
  font-size: 12px;
341
409
  color: #fff !important;
342
410
  pointer-events: none;
343
- transition:
344
- background-color 0.3s,
345
- width 0.3s,
346
- height 0.3s,
347
- color 0.3s;
411
+ transition: background-color 0.3s, width 0.3s, height 0.3s, color 0.3s;
348
412
  border: 1px solid #e55353;
349
413
  background-color: #e55353;
350
414
  border-radius: 6px;
@@ -353,7 +417,7 @@
353
417
 
354
418
  .tooltip::before {
355
419
  position: absolute;
356
- content: '';
420
+ content: "";
357
421
  height: 0.6em;
358
422
  width: 0.6em;
359
423
  right: 20px;
@@ -396,16 +460,12 @@
396
460
  border-color: #bee0ff;
397
461
  padding: 5px;
398
462
  align-items: center;
399
- transition:
400
- opacity 0.3s,
401
- visibility 0.3s,
402
- top 0.3s,
403
- background 0.3s;
463
+ transition: opacity 0.3s, visibility 0.3s, top 0.3s, background 0.3s;
404
464
  z-index: 1;
405
465
  }
406
466
 
407
467
  .custom-tooltip::before {
408
- content: '';
468
+ content: "";
409
469
  position: absolute;
410
470
  bottom: 100%;
411
471
  left: 20%;
@@ -421,7 +481,7 @@
421
481
  }
422
482
 
423
483
  .custom-tooltip::after {
424
- content: '';
484
+ content: "";
425
485
  position: absolute;
426
486
  bottom: 100%;
427
487
  left: 20%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-core-ts",
3
- "version": "1.1.24",
3
+ "version": "1.1.26",
4
4
  "description": "React Components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,28 +1,28 @@
1
- import React, { useEffect, useRef, useState } from "react";
2
- import ModernAutoComplete from "./ReactAutoComplete";
3
- import { applyPositionClass } from "./utilities/getPosition";
1
+ import React, { useEffect, useRef, useState } from 'react';
4
2
 
5
- import { TextFieldProps } from "./commontypes";
6
- import CustomIcons from "./components/customIcons";
3
+ import { TextFieldProps } from './commontypes';
4
+ import CustomIcons from './components/customIcons';
5
+ import ModernAutoComplete from './ReactAutoComplete';
6
+ import { applyPositionClass } from './utilities/getPosition';
7
7
 
8
8
  const TextField: React.FC<TextFieldProps> = ({
9
9
  name,
10
10
  id,
11
11
  label,
12
- type = "text",
12
+ type = 'text',
13
13
  disabled = false,
14
14
  readOnly = false,
15
15
  fullwidth = true,
16
16
  uppercase = false,
17
- adorementPosition = "end",
17
+ adorementPosition = 'end',
18
18
  register,
19
19
  adorement,
20
20
  className: propsClassName,
21
21
  value,
22
- placeholder = "",
22
+ placeholder = '',
23
23
  min,
24
24
  max,
25
- size = "md",
25
+ size = 'md',
26
26
  required = false,
27
27
  autoComplete = false,
28
28
  isValid,
@@ -33,8 +33,9 @@ const TextField: React.FC<TextFieldProps> = ({
33
33
  onStepUp, //new requirement number steper
34
34
  onStepDown, //new requirement number steper
35
35
  onChange,
36
-
36
+ infoTitle,
37
37
  onBlur,
38
+ showInfo,
38
39
  errors,
39
40
  keyRegexPattern,
40
41
  backGround, //added for set background colour according to the form
@@ -78,7 +79,7 @@ const TextField: React.FC<TextFieldProps> = ({
78
79
  setWidth(innerwidth);
79
80
  }, [adorement]);
80
81
  const getErrors = (err?: any) => {
81
- let errMsg = "";
82
+ let errMsg = '';
82
83
  if (err?.message) {
83
84
  errMsg = err?.message;
84
85
  }
@@ -92,76 +93,76 @@ const TextField: React.FC<TextFieldProps> = ({
92
93
 
93
94
  const getHeight = () => {
94
95
  switch (size) {
95
- case "xs":
96
- return " h-10 ";
97
- case "xxs":
98
- return " h-[25px] ";
99
- case "sm":
100
- return " h-[34px] ";
101
- case "md":
102
- return " h-10 ";
103
- case "lg":
104
- return " h-10 ";
96
+ case 'xs':
97
+ return ' h-10 ';
98
+ case 'xxs':
99
+ return ' h-[25px] ';
100
+ case 'sm':
101
+ return ' h-[34px] ';
102
+ case 'md':
103
+ return ' h-10 ';
104
+ case 'lg':
105
+ return ' h-10 ';
105
106
  default:
106
- return " h-10 ";
107
+ return ' h-10 ';
107
108
  }
108
109
  };
109
- const getBg = () => backGround || "bg-transparent"; //added for set background colour according to the form
110
+ const getBg = () => backGround || 'bg-transparent'; //added for set background colour according to the form
110
111
  const generateClassName = (
111
- from: "input" | "label" | "message" | "adorement"
112
+ from: 'input' | 'label' | 'message' | 'adorement'
112
113
  ): string => {
113
- let className = propsClassName;
114
+ let className = `${propsClassName} `;
114
115
 
115
116
  switch (from) {
116
- case "input":
117
+ case 'input':
117
118
  className += `block ${
118
- size === "xxs" ? " text-xxs" : "text-common"
119
+ size === 'xxs' ? ' text-xxs' : 'text-common'
119
120
  } text-input-text font-normal ${
120
- step && adorement ? "px-2.5" : "px-3.5"
121
+ step && adorement ? 'px-2.5' : 'px-3.5'
121
122
  } w-full text-sm text-gray-900 ${getBg()} border appearance-none peer rounded-[4px] disabled:text-input-disabled bg-white disabled:bg-disabled ${
122
- hideLabel ? "" : "placeholder-transparent"
123
+ hideLabel ? '' : 'placeholder-transparent'
123
124
  } focus:placeholder-grey-secondary ${
124
- adorementPosition === "start" && "pl-[45px]"
125
+ adorementPosition === 'start' && ' !pl-[45px] '
125
126
  } ${getHeight()}`;
126
127
 
127
128
  if (errors && errors[name]) {
128
129
  className +=
129
- " border-[#FDA29B] focus:border-error-[#FDA29B] focus:ring-[#FDA29B] focus:ring-3 focus:outline-[#FDA29B] input-outline";
130
+ ' border-[#FDA29B] focus:border-error-[#FDA29B] focus:ring-[#FDA29B] focus:ring-3 focus:outline-[#FDA29B] input-outline';
130
131
  } else {
131
132
  className +=
132
- " text-grey-dark border-input-light focus:border-blue-navy focus:outline-none focus:ring-0";
133
+ ' text-grey-dark border-input-light focus:border-blue-navy focus:outline-none focus:ring-0';
133
134
  }
134
135
 
135
136
  break;
136
- case "label": // changes made for remove bg-white from placeolder is field disable and or with data
137
+ case 'label': // changes made for remove bg-white from placeolder is field disable and or with data
137
138
  className += ` modern-input-label peer-focus:modern-input-peer-focus-label-size absolute duration-300 transform -translate-y-4 top-2 z-1 origin-[0] px-0
138
139
  peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2
139
140
  peer-focus:-translate-y-4 start-[14px] rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto ${
140
- isDisabled ? "cursor-pointer" : "cursor-text peer-focus:cursor-pointer"
141
+ isDisabled ? 'cursor-pointer' : 'cursor-text peer-focus:cursor-pointer'
141
142
  } ${
142
143
  !isDisabled || !checkIsEmptyField()
143
- ? "active-input-label-bg"
144
+ ? 'active-input-label-bg'
144
145
  : isDisabled && !checkIsEmptyField()
145
- ? "disabled-input-label-bg"
146
- : ""
146
+ ? 'disabled-input-label-bg'
147
+ : ''
147
148
  } ${
148
149
  checkIsEmptyField()
149
- ? "modern-input-label-size"
150
- : "modern-input-peer-focus-label-size"
150
+ ? 'modern-input-label-size'
151
+ : 'modern-input-peer-focus-label-size'
151
152
  }`;
152
153
 
153
154
  if (errors && errors[name]) {
154
- className += " text-error-light ";
155
+ className += ' text-error-light ';
155
156
  } else {
156
- className += " text-grey-dark peer-focus:text-blue-navy";
157
+ className += ' text-grey-dark peer-focus:text-blue-navy';
157
158
  }
158
159
  break;
159
- case "message":
160
- className = " text-error-icon ";
160
+ case 'message':
161
+ className = ' text-error-icon ';
161
162
  break;
162
- case "adorement":
163
+ case 'adorement':
163
164
  className += `${
164
- isDisabled ? "bg-bodyBG" : "bg-white"
165
+ isDisabled ? 'bg-bodyBG' : 'bg-white'
165
166
  } absolute right-0 adorement gap-1 flex items-center`;
166
167
  break;
167
168
 
@@ -173,18 +174,18 @@ const TextField: React.FC<TextFieldProps> = ({
173
174
 
174
175
  const handleError = (data: any) => {
175
176
  if (
176
- getErrors(data[name]) === "required" ||
177
- getErrors(data[name]) === "Required"
177
+ getErrors(data[name]) === 'required' ||
178
+ getErrors(data[name]) === 'Required'
178
179
  ) {
179
180
  return `${label ?? labelTitle} is ${getErrors(data[name])}`;
180
181
  } else {
181
- return getErrors(data[name]) ?? "";
182
+ return getErrors(data[name]) ?? '';
182
183
  }
183
184
  };
184
185
 
185
186
  // Added handle key press function on textfield to restrict typing letter 'e' on number type
186
187
  const handleKeyPress = (e: any) => {
187
- if (type === "number" && e.key === "e") e.preventDefault();
188
+ if (type === 'number' && e.key === 'e') e.preventDefault();
188
189
  };
189
190
 
190
191
  const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
@@ -200,14 +201,14 @@ const TextField: React.FC<TextFieldProps> = ({
200
201
  const renderPrefix = () => {
201
202
  if (prefixes) {
202
203
  switch (prefixes?.type) {
203
- case "custom_select":
204
+ case 'custom_select':
204
205
  return (
205
206
  <ModernAutoComplete
206
207
  key={prefixes.name}
207
208
  placeholder={prefixes.placeholder}
208
209
  onChange={(e: any) => onPrefixChange?.(e)}
209
210
  name={prefixes.name}
210
- value={prefixValue ?? { id: "", name: "" }}
211
+ value={prefixValue ?? { id: '', name: '' }}
211
212
  type="custom_select"
212
213
  isCustomPlaceholder
213
214
  fullWidth={false}
@@ -239,7 +240,7 @@ const TextField: React.FC<TextFieldProps> = ({
239
240
  return undefined;
240
241
  };
241
242
 
242
- const handleMouseDown = (type: "up" | "down") => {
243
+ const handleMouseDown = (type: 'up' | 'down') => {
243
244
  setIsHolding(true);
244
245
  //handleAction(type)
245
246
  intervalRef.current = setInterval(() => handleAction(type), 100);
@@ -248,8 +249,8 @@ const TextField: React.FC<TextFieldProps> = ({
248
249
  }
249
250
  };
250
251
 
251
- const handleAction = (type: "up" | "down") => {
252
- if (type === "up") onStepUp?.();
252
+ const handleAction = (type: 'up' | 'down') => {
253
+ if (type === 'up') onStepUp?.();
253
254
  else onStepDown?.();
254
255
  };
255
256
 
@@ -260,7 +261,7 @@ const TextField: React.FC<TextFieldProps> = ({
260
261
  }
261
262
  }
262
263
 
263
- const handleClick = (type: "up" | "down") => {
264
+ const handleClick = (type: 'up' | 'down') => {
264
265
  if (!isHolding) {
265
266
  clickTimeoutRef.current = setTimeout(() => {
266
267
  handleAction(type);
@@ -273,15 +274,18 @@ const TextField: React.FC<TextFieldProps> = ({
273
274
  applyPositionClass(textFieldRef);
274
275
  }, [isHovered]);
275
276
  return (
276
- <div ref={textFieldRef} className={` ${fullwidth ? "w-full" : "w-auto"}`}>
277
+ <div ref={textFieldRef} className={` ${fullwidth ? 'w-full' : 'w-auto'}`}>
277
278
  <div className="tooltip-container ">
278
279
  {isHovered && errors && errors[name] && (
279
280
  <span className="tooltip">{handleError(errors)} </span>
280
281
  )}
282
+ {isHovered && infoTitle && (
283
+ <span className="tooltip-info">{infoTitle} </span>
284
+ )}
281
285
  <div className={`w-full ${prefixes ? "flex" : ""}`}>
282
286
  {prefixes && renderPrefix()}
283
287
  <div
284
- className={`flex relative ${fullwidth ? "w-full" : "w-auto"}`}
288
+ className={`flex relative ${fullwidth ? 'w-full' : 'w-auto'}`}
285
289
  style={{ width: width }}
286
290
  >
287
291
  <div className="relative w-full ">
@@ -308,15 +312,15 @@ const TextField: React.FC<TextFieldProps> = ({
308
312
  }
309
313
  : {}),
310
314
  }}
311
- className={` ${generateClassName("input")} ${
312
- uppercase ? "uppercase placeholder:normal-case" : ""
315
+ className={` ${generateClassName('input')} ${
316
+ uppercase ? 'uppercase placeholder:normal-case' : ''
313
317
  } ''}`}
314
318
  placeholder={placeholder}
315
319
  onChange={(e) => {
316
320
  handleChange(e);
317
321
  }}
318
322
  onKeyDown={handleKeyPress}
319
- autoComplete={autoComplete ? "on" : "off"}
323
+ autoComplete={autoComplete ? 'on' : 'off'}
320
324
  onBlur={(e) => onBlur?.(e)}
321
325
  // autoFocus={autoFocus}
322
326
  value={value}
@@ -325,7 +329,7 @@ const TextField: React.FC<TextFieldProps> = ({
325
329
  <label
326
330
  htmlFor={id}
327
331
  onClick={() => onLabelClick()}
328
- className={generateClassName("label")}
332
+ className={generateClassName('label')}
329
333
  >
330
334
  {label}
331
335
  {required ? <span className="text-error"> *</span> : <></>}
@@ -337,10 +341,10 @@ const TextField: React.FC<TextFieldProps> = ({
337
341
  (!isValid && isTooltip && errors && errors[name]) ||
338
342
  isValid) && (
339
343
  <div className="flex items-center justify-center gap-1 ">
340
- {adorement && adorementPosition === "start" && (
344
+ {adorement && adorementPosition === 'start' && (
341
345
  <div
342
346
  className={` ${
343
- isDisabled ? "text-zinc-500" : "text-grey-medium"
347
+ isDisabled ? 'text-zinc-500' : 'text-grey-medium'
344
348
  } absolute adorement left-0 `} // adorement position added for start
345
349
  >
346
350
  <>{adorement}</>
@@ -349,14 +353,14 @@ const TextField: React.FC<TextFieldProps> = ({
349
353
 
350
354
  <div
351
355
  className={`${generateClassName(
352
- "adorement"
356
+ 'adorement'
353
357
  )} h-[20px] right-[1px]`} //added adorment bg color
354
358
  ref={adorementRef}
355
359
  >
356
- {adorement && adorementPosition === "end" && (
360
+ {adorement && adorementPosition === 'end' && (
357
361
  <div
358
362
  className={` ${
359
- isDisabled ? "text-zinc-500" : "text-grey-medium"
363
+ isDisabled ? 'text-zinc-500' : 'text-grey-medium'
360
364
  } `} // changed for adorment text blurness while disabled
361
365
  >
362
366
  <>{adorement}</>
@@ -369,13 +373,13 @@ const TextField: React.FC<TextFieldProps> = ({
369
373
  <CustomIcons
370
374
  name="TreeUp_Arrow"
371
375
  className={`text-gray-500 hover:text-dark cursor-pointer ${
372
- isDisabled ? "hidden" : "block"
376
+ isDisabled ? 'hidden' : 'block'
373
377
  }`}
374
378
  type="medium"
375
379
  onClick={() => {
376
- handleClick("up");
380
+ handleClick('up');
377
381
  }}
378
- onMouseDown={() => handleMouseDown("up")}
382
+ onMouseDown={() => handleMouseDown('up')}
379
383
  onMouseUp={handleMouseUp}
380
384
  onMouseLeave={handleMouseUp}
381
385
  viewBox={true}
@@ -383,13 +387,13 @@ const TextField: React.FC<TextFieldProps> = ({
383
387
  <CustomIcons
384
388
  name="TreeDown_Arrow"
385
389
  className={`text-gray-500 hover:text-dark cursor-pointer ${
386
- isDisabled ? "hidden" : "block"
390
+ isDisabled ? 'hidden' : 'block'
387
391
  }`}
388
392
  type="medium"
389
393
  onClick={() => {
390
- handleClick("down");
394
+ handleClick('down');
391
395
  }}
392
- onMouseDown={() => handleMouseDown("down")}
396
+ onMouseDown={() => handleMouseDown('down')}
393
397
  onMouseUp={handleMouseUp}
394
398
  onMouseLeave={handleMouseUp}
395
399
  viewBox={true}
@@ -401,7 +405,7 @@ const TextField: React.FC<TextFieldProps> = ({
401
405
  {!isValid && isTooltip && errors && errors[name] && (
402
406
  <div
403
407
  className={` text-error-label relative bg-white cursor-pointer ${generateClassName(
404
- "message"
408
+ 'message'
405
409
  )}`}
406
410
  onMouseEnter={() => setIsHovered(true)}
407
411
  onMouseLeave={() => setIsHovered(false)}
@@ -409,6 +413,17 @@ const TextField: React.FC<TextFieldProps> = ({
409
413
  <CustomIcons name="alert" type="medium" />
410
414
  </div>
411
415
  )}
416
+ {infoTitle &&showInfo && (
417
+ <div
418
+ className={` text-error-label relative bg-white cursor-pointer ${generateClassName(
419
+ "message"
420
+ )}`}
421
+ onMouseEnter={() => setIsHovered(true)}
422
+ onMouseLeave={() => setIsHovered(false)}
423
+ >
424
+ <CustomIcons name="infoCircle" type="medium" />
425
+ </div>
426
+ )}
412
427
  {isValid && (
413
428
  <div className="pl-2">
414
429
  <CustomIcons
@@ -130,6 +130,8 @@ export interface TextFieldProps {
130
130
  hideLabel?: boolean;
131
131
  defaultData?: string[];
132
132
  onCreatableChange?: (e: string[]) => void;
133
+ infoTitle?: string;
134
+ showInfo?: boolean;
133
135
  }
134
136
 
135
137
  export interface TextAreaProps {
@@ -1,10 +1,6 @@
1
1
  .tooltip-container {
2
2
  position: relative;
3
- transition:
4
- background-color 0.3s,
5
- width 0.3s,
6
- height 0.3s,
7
- color 0.3s;
3
+ transition: background-color 0.3s, width 0.3s, height 0.3s, color 0.3s;
8
4
  }
9
5
 
10
6
  .bottom {
@@ -46,7 +42,7 @@
46
42
 
47
43
  .tooltip::before {
48
44
  position: absolute;
49
- content: '';
45
+ content: "";
50
46
  height: 0.6em;
51
47
  width: 0.6em;
52
48
  right: 20px;
@@ -64,7 +60,7 @@
64
60
  background-color: #000000;
65
61
  right: 14px;
66
62
  position: absolute;
67
- content: '';
63
+ content: "";
68
64
  height: 0.6em;
69
65
  width: 0.6em;
70
66
  z-index: 999;
@@ -79,7 +75,7 @@
79
75
  background-color: #000000;
80
76
  right: 14px;
81
77
  position: absolute;
82
- content: '';
78
+ content: "";
83
79
  height: 0.6em;
84
80
  width: 0.6em;
85
81
  z-index: 999;
@@ -110,6 +106,50 @@
110
106
  }
111
107
  }
112
108
  .top-tool {
109
+ .tooltip-info {
110
+ position: absolute;
111
+ bottom: 45px !important;
112
+ left: 0;
113
+ top: auto !important;
114
+ transform: translateX(0%);
115
+ padding: 0.3em 0.6em;
116
+ opacity: 0;
117
+ width: max-content;
118
+ white-space: normal;
119
+ z-index: 999;
120
+ font-size: 12px;
121
+ max-width: 100%;
122
+ color: white !important;
123
+ pointer-events: none;
124
+ transition: all 0.3s;
125
+ border: 1px solid #475467;
126
+ background-color: #475467;
127
+ border-radius: 6px;
128
+ color: rgb(34, 34, 34);
129
+ }
130
+
131
+ .tooltip-info::before {
132
+ position: absolute;
133
+ content: "";
134
+ height: 0.6em;
135
+ width: 0.6em;
136
+ z-index: 999;
137
+ bottom: -4px;
138
+ border: 1px solid #475467;
139
+ border-left: none;
140
+ border-top: none;
141
+ transform: translate(50%) rotate(45deg);
142
+ background-color: #475467;
143
+ }
144
+
145
+ .tooltip-container:hover .tooltip-info {
146
+ bottom: 45px !important;
147
+ opacity: 1;
148
+ top: auto !important;
149
+ visibility: visible;
150
+ z-index: 999;
151
+ pointer-events: auto;
152
+ }
113
153
  .tooltip {
114
154
  position: absolute;
115
155
  bottom: 45px !important;
@@ -134,7 +174,7 @@
134
174
 
135
175
  .tooltip::before {
136
176
  position: absolute;
137
- content: '';
177
+ content: "";
138
178
  height: 0.6em;
139
179
  width: 0.6em;
140
180
  z-index: 999;
@@ -156,6 +196,47 @@
156
196
  }
157
197
  }
158
198
  .bottom-tool {
199
+ .tooltip-info {
200
+ position: absolute;
201
+ bottom: -40;
202
+ transform: translateX(0%);
203
+ padding: 0.3em 0.6em;
204
+ opacity: 0;
205
+ width: max-content;
206
+ max-width: 100%;
207
+ z-index: 999;
208
+ font-size: 12px;
209
+ color: white !important;
210
+ white-space: wrap;
211
+ pointer-events: none;
212
+ transition: background-color 0.3s, width 0.3s, height 0.3s, color 0.3s;
213
+ border: 1px solid #475467;
214
+ background-color: #475467;
215
+ border-radius: 6px;
216
+ color: rgb(34, 34, 34);
217
+ }
218
+
219
+ .tooltip-info::before {
220
+ position: absolute;
221
+ content: "";
222
+ height: 0.6em;
223
+ width: 0.6em;
224
+ z-index: 999;
225
+ top: -4px;
226
+ border: 1px solid #475467;
227
+ border-right: none;
228
+ border-bottom: none;
229
+ transform: translate(50%) rotate(45deg);
230
+ background-color: #475467;
231
+ }
232
+
233
+ .tooltip-container:hover .tooltip-info {
234
+ top: 46px;
235
+ opacity: 1;
236
+ visibility: visible;
237
+ z-index: 999;
238
+ pointer-events: auto;
239
+ }
159
240
  .tooltip {
160
241
  position: absolute;
161
242
  bottom: -40;
@@ -169,11 +250,7 @@
169
250
  color: #ff681d !important;
170
251
  white-space: wrap;
171
252
  pointer-events: none;
172
- transition:
173
- background-color 0.3s,
174
- width 0.3s,
175
- height 0.3s,
176
- color 0.3s;
253
+ transition: background-color 0.3s, width 0.3s, height 0.3s, color 0.3s;
177
254
  border: 1px solid #ff681d;
178
255
  background-color: #fff;
179
256
  border-radius: 6px;
@@ -182,7 +259,7 @@
182
259
 
183
260
  .tooltip::before {
184
261
  position: absolute;
185
- content: '';
262
+ content: "";
186
263
  height: 0.6em;
187
264
  width: 0.6em;
188
265
  z-index: 999;
@@ -219,11 +296,7 @@
219
296
  font-size: 12px;
220
297
  color: #fff !important;
221
298
  pointer-events: none;
222
- transition:
223
- background-color 0.3s,
224
- width 0.3s,
225
- height 0.3s,
226
- color 0.3s;
299
+ transition: background-color 0.3s, width 0.3s, height 0.3s, color 0.3s;
227
300
  border: 1px solid #e55353;
228
301
  background-color: #e55353;
229
302
  border-radius: 6px;
@@ -236,12 +309,11 @@
236
309
  min-width: 175px;
237
310
  background-color: #3d414a;
238
311
  border: 1px solid #3d414a;
239
-
240
312
  }
241
313
 
242
314
  .tooltip::before {
243
315
  position: absolute;
244
- content: '';
316
+ content: "";
245
317
  height: 0.6em;
246
318
  width: 0.6em;
247
319
  left: -8px;
@@ -291,11 +363,7 @@
291
363
  font-size: 12px;
292
364
  color: #fff !important;
293
365
  pointer-events: none;
294
- transition:
295
- background-color 0.3s,
296
- width 0.3s,
297
- height 0.3s,
298
- color 0.3s;
366
+ transition: background-color 0.3s, width 0.3s, height 0.3s, color 0.3s;
299
367
  border: 1px solid #e55353;
300
368
  background-color: #e55353;
301
369
  border-radius: 6px;
@@ -304,7 +372,7 @@
304
372
 
305
373
  .tooltip::before {
306
374
  position: absolute;
307
- content: '';
375
+ content: "";
308
376
  height: 0.6em;
309
377
  width: 0.6em;
310
378
  right: 0px;
@@ -340,11 +408,7 @@
340
408
  font-size: 12px;
341
409
  color: #fff !important;
342
410
  pointer-events: none;
343
- transition:
344
- background-color 0.3s,
345
- width 0.3s,
346
- height 0.3s,
347
- color 0.3s;
411
+ transition: background-color 0.3s, width 0.3s, height 0.3s, color 0.3s;
348
412
  border: 1px solid #e55353;
349
413
  background-color: #e55353;
350
414
  border-radius: 6px;
@@ -353,7 +417,7 @@
353
417
 
354
418
  .tooltip::before {
355
419
  position: absolute;
356
- content: '';
420
+ content: "";
357
421
  height: 0.6em;
358
422
  width: 0.6em;
359
423
  right: 20px;
@@ -396,16 +460,12 @@
396
460
  border-color: #bee0ff;
397
461
  padding: 5px;
398
462
  align-items: center;
399
- transition:
400
- opacity 0.3s,
401
- visibility 0.3s,
402
- top 0.3s,
403
- background 0.3s;
463
+ transition: opacity 0.3s, visibility 0.3s, top 0.3s, background 0.3s;
404
464
  z-index: 1;
405
465
  }
406
466
 
407
467
  .custom-tooltip::before {
408
- content: '';
468
+ content: "";
409
469
  position: absolute;
410
470
  bottom: 100%;
411
471
  left: 20%;
@@ -421,7 +481,7 @@
421
481
  }
422
482
 
423
483
  .custom-tooltip::after {
424
- content: '';
484
+ content: "";
425
485
  position: absolute;
426
486
  bottom: 100%;
427
487
  left: 20%;