nexaas-ui-components 1.0.13 → 1.0.14

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.cjs CHANGED
@@ -2277,61 +2277,6 @@ var MaskedInput = ({
2277
2277
  }
2278
2278
  );
2279
2279
  };
2280
- function InputTest({
2281
- label,
2282
- name,
2283
- control,
2284
- error,
2285
- required,
2286
- placeholder,
2287
- disabled,
2288
- defaultValue
2289
- }) {
2290
- const fieldValidationMessages = [error == null ? void 0 : error.message];
2291
- const hasError = fieldValidationMessages.some((item) => item !== void 0);
2292
- const styles = {
2293
- input: `text-p-md pl-2 peer shadow-input border rounded-lg outline-none block pb-[10px] h-[46px] w-full disabled:bg-neutral-100 focus-visible:border-1 ${label ? "pt-[22px]" : "pt-[10px]"} ${hasError ? "border-dangerous-500 text-dangerous-500" : "border-neutral-300 focus-visible:border-blue-500"}`,
2294
- label: "absolute text-label top-[0.80rem] z-10 origin-[0] transform -translate-y-3 scale-75 duration-300 text-sm peer-focus:text-blue-500 peer-focus:scale-75 peer-focus:-translate-y-3 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 left-2.5 cursor-text"
2295
- };
2296
- return /* @__PURE__ */ jsxRuntime.jsx(
2297
- reactHookForm.Controller,
2298
- {
2299
- control,
2300
- name,
2301
- defaultValue,
2302
- render: ({ field }) => {
2303
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
2304
- /* @__PURE__ */ jsxRuntime.jsx(
2305
- "input",
2306
- {
2307
- ...field,
2308
- type: "text",
2309
- id: name,
2310
- className: clsx7__default.default(styles.input),
2311
- placeholder: !label && placeholder ? placeholder : " ",
2312
- disabled
2313
- }
2314
- ),
2315
- /* @__PURE__ */ jsxRuntime.jsxs("label", { className: clsx7__default.default(styles.label), children: [
2316
- label,
2317
- required && label && /* @__PURE__ */ jsxRuntime.jsx("strong", { className: "text-dangerous-500", children: "\xA0*" })
2318
- ] }),
2319
- fieldValidationMessages.map((message, index) => /* @__PURE__ */ jsxRuntime.jsx(
2320
- "div",
2321
- {
2322
- className: "text-dangerous-500 text-xs mt-1 ml-[2px]",
2323
- role: "alert",
2324
- "aria-label": message,
2325
- children: message
2326
- },
2327
- index
2328
- ))
2329
- ] });
2330
- }
2331
- }
2332
- );
2333
- }
2334
- InputTest.displayName = "InputTest";
2335
2280
  var Modal = ReactModalNamespace__namespace.default || ReactModalNamespace__namespace;
2336
2281
  var alertTypes = {
2337
2282
  success: "text-success-500",
@@ -3799,7 +3744,6 @@ exports.Input = Input;
3799
3744
  exports.InputMoney = InputMoney;
3800
3745
  exports.InputNumber = InputNumber;
3801
3746
  exports.InputPercentage = InputPercentage;
3802
- exports.InputTest = InputTest;
3803
3747
  exports.Logo = Logo;
3804
3748
  exports.MaskedInput = MaskedInput;
3805
3749
  exports.ModalDialog = ModalDialog;