@pismo/marola 2.1.53 → 2.1.55

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,7 +1,5 @@
1
1
  import { ForwardedRef } from 'react';
2
2
  export declare const InputSearch: import('react').ForwardRefExoticComponent<(Omit<{
3
- /** How many milliseconds to wait before trigger the onChange event */
4
- triggerDelay?: number | undefined;
5
3
  ref?: ForwardedRef<HTMLInputElement> | undefined;
6
4
  } & import('react').InputHTMLAttributes<HTMLInputElement> & {
7
5
  label?: string | undefined;
@@ -12,6 +10,7 @@ export declare const InputSearch: import('react').ForwardRefExoticComponent<(Omi
12
10
  leftIcon?: import('react').ReactNode;
13
11
  rightIcon?: import('react').ReactNode;
14
12
  type?: ("number" | "url" | "file" | "color" | "search" | (string & {}) | "button" | "time" | "image" | "text" | "reset" | "tel" | "email" | "date" | "hidden" | "range" | "datetime-local" | "month" | "password" | "week") | "number-as-text" | undefined;
13
+ triggerDelay?: number | undefined;
15
14
  allowLeadingZeros?: boolean | undefined;
16
15
  isInteger?: boolean | undefined;
17
16
  useCommaInDecimal?: boolean | undefined;
@@ -31,8 +30,6 @@ export declare const InputSearch: import('react').ForwardRefExoticComponent<(Omi
31
30
  'data-testid-errorMessage'?: string | undefined;
32
31
  'data-testid-charsCounter'?: string | undefined;
33
32
  } & import('react').RefAttributes<HTMLInputElement>, "ref"> | Omit<{
34
- /** How many milliseconds to wait before trigger the onChange event */
35
- triggerDelay?: number | undefined;
36
33
  ref?: ForwardedRef<HTMLInputElement> | undefined;
37
34
  } & Omit<import('../Input/Input').SingleInputProps, "multiline"> & {
38
35
  multiline: true;
@@ -1,31 +1,13 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as p } from "react";
3
- import { c as u } from "../../clsx-OuTLNxxd.js";
4
- import { Icon as f } from "../Icon/Icon.js";
5
- import { Input as l } from "../Input/Input.js";
6
- import '../../assets/InputSearch.css';const h = "_inputSearch_114e1_1", g = {
7
- inputSearch: h
8
- };
9
- let r;
10
- const _ = p(
11
- ({ classNameWrapper: n, triggerDelay: o = 500, value: c, onChange: i = () => {
12
- }, ...a }, s) => {
13
- const m = (t) => {
14
- r && clearTimeout(r), r = setTimeout(() => i(t), o);
15
- };
16
- return /* @__PURE__ */ e("div", { className: u(g.inputSearch, n), children: /* @__PURE__ */ e(
17
- l,
18
- {
19
- type: "search",
20
- ref: s,
21
- ...a,
22
- leftIcon: /* @__PURE__ */ e(f, { icon: "magnifying-glass" }),
23
- defaultValue: c,
24
- onChange: (t) => m(t)
25
- }
26
- ) });
27
- }
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as n } from "react";
3
+ import { c as a } from "../../clsx-OuTLNxxd.js";
4
+ import { Icon as i } from "../Icon/Icon.js";
5
+ import { Input as p } from "../Input/Input.js";
6
+ import '../../assets/InputSearch.css';const s = "_inputSearch_114e1_1", m = {
7
+ inputSearch: s
8
+ }, d = n(
9
+ ({ classNameWrapper: t, value: o, ...e }, c) => /* @__PURE__ */ r("div", { className: a(m.inputSearch, t), children: /* @__PURE__ */ r(p, { type: "search", ref: c, ...e, leftIcon: /* @__PURE__ */ r(i, { icon: "magnifying-glass" }), defaultValue: o }) })
28
10
  );
29
11
  export {
30
- _ as InputSearch
12
+ d as InputSearch
31
13
  };
@@ -2,7 +2,6 @@ import { StoryObj } from '@storybook/react';
2
2
  declare const meta: {
3
3
  title: string;
4
4
  component: import('react').ForwardRefExoticComponent<(Omit<{
5
- triggerDelay?: number | undefined;
6
5
  ref?: import('react').ForwardedRef<HTMLInputElement> | undefined;
7
6
  } & import('react').InputHTMLAttributes<HTMLInputElement> & {
8
7
  label?: string | undefined;
@@ -13,6 +12,7 @@ declare const meta: {
13
12
  leftIcon?: import('react').ReactNode;
14
13
  rightIcon?: import('react').ReactNode;
15
14
  type?: ("number" | "url" | "file" | "color" | "search" | (string & {}) | "button" | "time" | "image" | "text" | "reset" | "tel" | "email" | "date" | "hidden" | "range" | "datetime-local" | "month" | "password" | "week") | "number-as-text" | undefined;
15
+ triggerDelay?: number | undefined;
16
16
  allowLeadingZeros?: boolean | undefined;
17
17
  isInteger?: boolean | undefined;
18
18
  useCommaInDecimal?: boolean | undefined;
@@ -32,7 +32,6 @@ declare const meta: {
32
32
  'data-testid-errorMessage'?: string | undefined;
33
33
  'data-testid-charsCounter'?: string | undefined;
34
34
  } & import('react').RefAttributes<HTMLInputElement>, "ref"> | Omit<{
35
- triggerDelay?: number | undefined;
36
35
  ref?: import('react').ForwardedRef<HTMLInputElement> | undefined;
37
36
  } & Omit<import('../Input/Input').SingleInputProps, "multiline"> & {
38
37
  multiline: true;