@pismo/marola 1.0.0-beta.49 → 1.0.0-beta.50

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.
@@ -9,6 +9,7 @@ import "./components/Button/Button.js";
9
9
  import { Adornment as v } from "./components/Adornment/Adornment.js";
10
10
  import "./components/Dialog/Dialog.js";
11
11
  import "./components/IconButton/IconButton.js";
12
+ import "./components/InputSearch/InputSearch.js";
12
13
  import "./components/Select/Select.js";
13
14
  import "./components/Popover/Popover.js";
14
15
  import "./components/Table/Table.js";
@@ -60,7 +61,7 @@ const I = "_chip_1wvod_61", P = "_chip__adornment_1wvod_116", z = "_chip__remove
60
61
  children: _
61
62
  }
62
63
  )) : /* @__PURE__ */ i("span", { "data-testid": t["data-testid"], ref: d, className: e, children: _ });
63
- }), Q = u((t, d) => {
64
+ }), V = u((t, d) => {
64
65
  const {
65
66
  label: _,
66
67
  className: o,
@@ -114,7 +115,7 @@ const I = "_chip_1wvod_61", P = "_chip__adornment_1wvod_116", z = "_chip__remove
114
115
  "row-item--clickable": "_row-item--clickable_8z1a0_13",
115
116
  "row-item--disabled": "_row-item--disabled_8z1a0_19",
116
117
  "row-item__content": "_row-item__content_8z1a0_22"
117
- }, V = u((t, d) => {
118
+ }, X = u((t, d) => {
118
119
  const { children: _, leftAdornment: o, disabled: r, onClick: a, buttons: s, ariaLabel: e, className: g } = t, m = l(o == null ? void 0 : o.className, h["row-item__adornment"]), w = {
119
120
  onClick: (p) => {
120
121
  r || a && a(p);
@@ -150,7 +151,7 @@ const I = "_chip_1wvod_61", P = "_chip__adornment_1wvod_116", z = "_chip__remove
150
151
  ]
151
152
  }
152
153
  );
153
- }), X = u((t, d) => {
154
+ }), Y = u((t, d) => {
154
155
  const { text: _, isSelected: o = !1, value: r, onChange: a, disabled: s } = t;
155
156
  return /* @__PURE__ */ k(
156
157
  "label",
@@ -182,7 +183,7 @@ const I = "_chip_1wvod_61", P = "_chip__adornment_1wvod_116", z = "_chip__remove
182
183
  );
183
184
  });
184
185
  export {
185
- Q as C,
186
- V as R,
187
- X as T
186
+ V as C,
187
+ X as R,
188
+ Y as T
188
189
  };
@@ -6,9 +6,10 @@ import "../Icon/Icon.js";
6
6
  import "../Typography/Typography.js";
7
7
  import "../Input/Input.js";
8
8
  import "../Button/Button.js";
9
- import { C as n } from "../../Toggle-BbmXeuJd.js";
9
+ import { C as q } from "../../Toggle-CzkXi3_R.js";
10
10
  import "../Dialog/Dialog.js";
11
11
  import "../IconButton/IconButton.js";
12
+ import "../InputSearch/InputSearch.js";
12
13
  import "../Select/Select.js";
13
14
  import "../Popover/Popover.js";
14
15
  import "../Skeleton/Skeleton.js";
@@ -18,5 +19,5 @@ import "../../Group-DspH8hyO.js";
18
19
  import "../../contexts/SnackbarProvider/SnackbarProvider.js";
19
20
  import "../../Button-BAljjMv3.js";
20
21
  export {
21
- n as Chip
22
+ q as Chip
22
23
  };
@@ -4,7 +4,7 @@ declare const meta: {
4
4
  title: string;
5
5
  component: import('react').ForwardRefExoticComponent<import('./Chip').ChipProps & import('react').RefAttributes<unknown>>;
6
6
  tags: string[];
7
- decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
7
+ decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
8
8
  label: import('react').ReactNode;
9
9
  loading?: boolean | undefined;
10
10
  leftAdornment?: import('../Adornment/Adornment').AdornmentProps | undefined;
@@ -10,7 +10,7 @@ declare const meta: {
10
10
  Actions: import('react').FunctionComponent<import('./Actions').DialogActionProps>;
11
11
  };
12
12
  tags: string[];
13
- decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
13
+ decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
14
14
  children: import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<unknown>>;
15
15
  dialogTitle: import('react').ReactNode;
16
16
  dialogSubtitle?: import('react').ReactNode;
@@ -8,7 +8,7 @@ declare const meta: {
8
8
  parameters: {
9
9
  layout: string;
10
10
  };
11
- decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
11
+ decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
12
12
  children: import('react').ReactNode;
13
13
  title: import('react').ReactNode;
14
14
  style?: import('react').CSSProperties | undefined;
@@ -1,9 +1,38 @@
1
- import { Input } from '../Input/Input';
2
- import { ComponentProps } from 'react';
1
+ import { ForwardedRef } from 'react';
3
2
 
4
- type InputSearchProps = {
3
+ export declare const InputSearch: import('react').ForwardRefExoticComponent<(Omit<{
5
4
  /** How many milliseconds to wait before trigger the onChange event */
6
- triggerDelay?: number;
7
- } & ComponentProps<typeof Input>;
8
- export declare const InputSearch: ({ classNameWrapper, triggerDelay, value, onChange, ...rest }: InputSearchProps) => import("react/jsx-runtime").JSX.Element;
9
- export {};
5
+ triggerDelay?: number | undefined;
6
+ ref?: ForwardedRef<HTMLInputElement> | undefined;
7
+ } & import('react').InputHTMLAttributes<HTMLInputElement> & {
8
+ label?: string | undefined;
9
+ infoMessage?: string | undefined;
10
+ error?: boolean | undefined;
11
+ errorMessage?: string | undefined;
12
+ multiline?: false | undefined;
13
+ leftIcon?: import('react').ReactNode;
14
+ rightIcon?: import('react').ReactNode;
15
+ type?: ("number" | "url" | "file" | "color" | "search" | (string & {}) | "button" | "time" | "image" | "text" | "reset" | "tel" | "email" | "date" | "hidden" | "range" | "datetime-local" | "month" | "password" | "week") | undefined;
16
+ hideCharsCounter?: boolean | undefined;
17
+ classNameWrapper?: string | undefined;
18
+ classNameLabel?: string | undefined;
19
+ classNameInput?: string | undefined;
20
+ classNameInfoMessage?: string | undefined;
21
+ classNameErrorMessage?: string | undefined;
22
+ classNameCharsCounter?: string | undefined;
23
+ 'data-testid-wrapper'?: string | undefined;
24
+ 'data-testid-label'?: string | undefined;
25
+ 'data-testid-input'?: string | undefined;
26
+ 'data-testid-infoMessage'?: string | undefined;
27
+ 'data-testid-errorMessage'?: string | undefined;
28
+ 'data-testid-charsCounter'?: string | undefined;
29
+ } & import('react').RefAttributes<HTMLInputElement>, "ref"> | Omit<{
30
+ /** How many milliseconds to wait before trigger the onChange event */
31
+ triggerDelay?: number | undefined;
32
+ ref?: ForwardedRef<HTMLInputElement> | undefined;
33
+ } & Omit<import('../Input/Input').SingleInputProps, "multiline"> & {
34
+ multiline: true;
35
+ minRows?: number | undefined;
36
+ maxRows?: number | undefined;
37
+ rows?: number | undefined;
38
+ } & import('react').RefAttributes<HTMLInputElement>, "ref">) & import('react').RefAttributes<HTMLInputElement>>;
@@ -1,34 +1,32 @@
1
1
  import '../../assets/InputSearch.css';
2
2
  import { jsx as e } from "react/jsx-runtime";
3
- import { c as m } from "../../clsx-DB4S2d7J.js";
4
- import { Icon as p } from "../Icon/Icon.js";
5
- import { Input as u } from "../Input/Input.js";
6
- const l = "_inputSearch_114e1_1", h = {
7
- inputSearch: l
8
- };
9
- let n;
10
- const d = ({
11
- classNameWrapper: r,
12
- triggerDelay: o = 500,
13
- value: c,
14
- onChange: i = () => {
15
- },
16
- ...a
17
- }) => {
18
- const s = (t) => {
19
- n && clearTimeout(n), n = setTimeout(() => i(t), o);
20
- };
21
- return /* @__PURE__ */ e("div", { className: m(h.inputSearch, r), children: /* @__PURE__ */ e(
22
- u,
23
- {
24
- type: "search",
25
- ...a,
26
- leftIcon: /* @__PURE__ */ e(p, { icon: "magnifying-glass" }),
27
- defaultValue: c,
28
- onChange: (t) => s(t)
29
- }
30
- ) });
3
+ import { forwardRef as p } from "react";
4
+ import { c as u } from "../../clsx-DB4S2d7J.js";
5
+ import { Icon as f } from "../Icon/Icon.js";
6
+ import { Input as l } from "../Input/Input.js";
7
+ const h = "_inputSearch_114e1_1", g = {
8
+ inputSearch: h
31
9
  };
10
+ let r;
11
+ const _ = p(
12
+ ({ classNameWrapper: n, triggerDelay: o = 500, value: c, onChange: i = () => {
13
+ }, ...a }, s) => {
14
+ const m = (t) => {
15
+ r && clearTimeout(r), r = setTimeout(() => i(t), o);
16
+ };
17
+ return /* @__PURE__ */ e("div", { className: u(g.inputSearch, n), children: /* @__PURE__ */ e(
18
+ l,
19
+ {
20
+ type: "search",
21
+ ref: s,
22
+ ...a,
23
+ leftIcon: /* @__PURE__ */ e(f, { icon: "magnifying-glass" }),
24
+ defaultValue: c,
25
+ onChange: (t) => m(t)
26
+ }
27
+ ) });
28
+ }
29
+ );
32
30
  export {
33
- d as InputSearch
31
+ _ as InputSearch
34
32
  };
@@ -2,9 +2,40 @@ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
5
- component: ({ classNameWrapper, triggerDelay, value, onChange, ...rest }: {
5
+ component: import('react').ForwardRefExoticComponent<(Omit<{
6
6
  triggerDelay?: number | undefined;
7
- } & (import('../Input/Input').InputProps & import('react').RefAttributes<HTMLInputElement>)) => import("react/jsx-runtime").JSX.Element;
7
+ ref?: import('react').ForwardedRef<HTMLInputElement> | undefined;
8
+ } & import('react').InputHTMLAttributes<HTMLInputElement> & {
9
+ label?: string | undefined;
10
+ infoMessage?: string | undefined;
11
+ error?: boolean | undefined;
12
+ errorMessage?: string | undefined;
13
+ multiline?: false | undefined;
14
+ leftIcon?: import('react').ReactNode;
15
+ rightIcon?: import('react').ReactNode;
16
+ type?: ("number" | "url" | "file" | "color" | "search" | (string & {}) | "button" | "time" | "image" | "text" | "reset" | "tel" | "email" | "date" | "hidden" | "range" | "datetime-local" | "month" | "password" | "week") | undefined;
17
+ hideCharsCounter?: boolean | undefined;
18
+ classNameWrapper?: string | undefined;
19
+ classNameLabel?: string | undefined;
20
+ classNameInput?: string | undefined;
21
+ classNameInfoMessage?: string | undefined;
22
+ classNameErrorMessage?: string | undefined;
23
+ classNameCharsCounter?: string | undefined;
24
+ 'data-testid-wrapper'?: string | undefined;
25
+ 'data-testid-label'?: string | undefined;
26
+ 'data-testid-input'?: string | undefined;
27
+ 'data-testid-infoMessage'?: string | undefined;
28
+ 'data-testid-errorMessage'?: string | undefined;
29
+ 'data-testid-charsCounter'?: string | undefined;
30
+ } & import('react').RefAttributes<HTMLInputElement>, "ref"> | Omit<{
31
+ triggerDelay?: number | undefined;
32
+ ref?: import('react').ForwardedRef<HTMLInputElement> | undefined;
33
+ } & Omit<import('../Input/Input').SingleInputProps, "multiline"> & {
34
+ multiline: true;
35
+ minRows?: number | undefined;
36
+ maxRows?: number | undefined;
37
+ rows?: number | undefined;
38
+ } & import('react').RefAttributes<HTMLInputElement>, "ref">) & import('react').RefAttributes<HTMLInputElement>>;
8
39
  tags: string[];
9
40
  parameters: {
10
41
  layout: string;
@@ -4,7 +4,7 @@ declare const meta: {
4
4
  title: string;
5
5
  component: ({ invert, classNames }: import('./LoadingSpinner').LoadingSpinnerProps) => import("react/jsx-runtime").JSX.Element;
6
6
  tags: string[];
7
- decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
7
+ decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
8
8
  invert?: boolean | undefined;
9
9
  classNames?: string | undefined;
10
10
  }>) => import("react/jsx-runtime").JSX.Element)[];
@@ -25,7 +25,7 @@ declare const meta: {
25
25
  };
26
26
  };
27
27
  tags: string[];
28
- decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
28
+ decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
29
29
  [x: string]: any;
30
30
  }>) => import("react/jsx-runtime").JSX.Element)[];
31
31
  };
@@ -1,6 +1,6 @@
1
1
  import '../../assets/ResultWithChips.css';
2
2
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
3
- import { C as t } from "../../Toggle-BbmXeuJd.js";
3
+ import { C as t } from "../../Toggle-CzkXi3_R.js";
4
4
  const r = "_container_hgp0p_1", o = "_label_hgp0p_17", a = {
5
5
  container: r,
6
6
  "chip-item-wrapper": "_chip-item-wrapper_hgp0p_8",
@@ -6,9 +6,10 @@ import "../Icon/Icon.js";
6
6
  import "../Typography/Typography.js";
7
7
  import "../Input/Input.js";
8
8
  import "../Button/Button.js";
9
- import { R as c, R as g } from "../../Toggle-BbmXeuJd.js";
9
+ import { R as g, R as h } from "../../Toggle-CzkXi3_R.js";
10
10
  import "../Dialog/Dialog.js";
11
11
  import "../IconButton/IconButton.js";
12
+ import "../InputSearch/InputSearch.js";
12
13
  import "../Select/Select.js";
13
14
  import "../Popover/Popover.js";
14
15
  import "../Table/Table.js";
@@ -16,6 +17,6 @@ import "../Tabs/Tabs.js";
16
17
  import "../../Group-DspH8hyO.js";
17
18
  import "../../contexts/SnackbarProvider/SnackbarProvider.js";
18
19
  export {
19
- c as RowItem,
20
- g as default
20
+ g as RowItem,
21
+ h as default
21
22
  };
@@ -5,7 +5,7 @@ declare const meta: {
5
5
  title: string;
6
6
  component: ({ snackbarMessage, variant, autoHideDuration, open, onClose, onClosed, classNameWrapper, "data-testid": dataTestId, }: SnackbarProps) => import("react/jsx-runtime").JSX.Element;
7
7
  tags: string[];
8
- decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
8
+ decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
9
9
  accept?: string | undefined;
10
10
  alt?: string | undefined;
11
11
  autoComplete?: import('react').HTMLInputAutoCompleteAttribute | undefined;
@@ -5,9 +5,10 @@ import "../Icon/Icon.js";
5
5
  import "../Typography/Typography.js";
6
6
  import "../Input/Input.js";
7
7
  import "../Button/Button.js";
8
- import { T as g } from "../../Toggle-BbmXeuJd.js";
8
+ import { T as h } from "../../Toggle-CzkXi3_R.js";
9
9
  import "../Dialog/Dialog.js";
10
10
  import "../IconButton/IconButton.js";
11
+ import "../InputSearch/InputSearch.js";
11
12
  import "../Select/Select.js";
12
13
  import "../Popover/Popover.js";
13
14
  import "../Table/Table.js";
@@ -15,5 +16,5 @@ import "../Tabs/Tabs.js";
15
16
  import "../../Group-DspH8hyO.js";
16
17
  import "../../contexts/SnackbarProvider/SnackbarProvider.js";
17
18
  export {
18
- g as default
19
+ h as default
19
20
  };
@@ -1,4 +1,4 @@
1
- import { T as e } from "../../Toggle-BbmXeuJd.js";
1
+ import { T as e } from "../../Toggle-CzkXi3_R.js";
2
2
  import { G as p } from "../../Group-DspH8hyO.js";
3
3
  export {
4
4
  p as ToggleGroup,
@@ -6,7 +6,7 @@ declare const meta: {
6
6
  title: string;
7
7
  component: import('react').ForwardRefExoticComponent<ToggleGroupProps & import('react').RefAttributes<HTMLFieldSetElement>>;
8
8
  tags: string[];
9
- decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
9
+ decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
10
10
  legend?: import('react').ReactNode;
11
11
  error?: import('react').ReactNode;
12
12
  children: import('react').ReactElement<import('./Toggle.tsx').ToggleGroupItemProps<string | number>, string | import('react').JSXElementConstructor<any>>[];
@@ -8,7 +8,7 @@ declare const meta: {
8
8
  parameters: {
9
9
  layout: string;
10
10
  };
11
- decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
11
+ decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
12
12
  children: import('react').ReactNode;
13
13
  title: import('react').ReactNode;
14
14
  open?: boolean | undefined;
@@ -12,7 +12,7 @@ declare const meta: {
12
12
  };
13
13
  };
14
14
  };
15
- decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
15
+ decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
16
16
  children: import('react').ReactNode;
17
17
  element?: import('react').ElementType | undefined;
18
18
  variant?: import('./Typography').VariantType | undefined;
@@ -12,7 +12,7 @@ declare const meta: {
12
12
  };
13
13
  };
14
14
  tags: string[];
15
- decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
15
+ decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
16
16
  [x: string]: any;
17
17
  }>) => import("react/jsx-runtime").JSX.Element)[];
18
18
  };
package/dist/main.js CHANGED
@@ -3,7 +3,7 @@ import { Advice as p } from "./components/Advice/Advice.js";
3
3
  import { Autocomplete as f } from "./components/Autocomplete/Autocomplete.js";
4
4
  import { Button as x } from "./components/Button/Button.js";
5
5
  import { Checkbox as l } from "./components/Checkbox/Checkbox.js";
6
- import { C as T, R as s, T as c } from "./Toggle-BbmXeuJd.js";
6
+ import { C as T, R as s, T as c } from "./Toggle-CzkXi3_R.js";
7
7
  import { Dialog as u } from "./components/Dialog/Dialog.js";
8
8
  import { EllipsisTooltip as d } from "./components/EllipsisTooltip/EllipsisTooltip.js";
9
9
  import { Icon as k } from "./components/Icon/Icon.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pismo/marola",
3
3
  "description": "CDX tribe component library",
4
- "version": "1.0.0-beta.49",
4
+ "version": "1.0.0-beta.50",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",