@pismo/marola 1.0.0-beta.21 → 1.0.0-beta.23

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.
Files changed (44) hide show
  1. package/dist/{Button-DiLqcAJG.js → Button-BAljjMv3.js} +2 -2
  2. package/dist/{ClickAwayListener-BaJ-OV_7.js → ClickAwayListener-DbEYZpyh.js} +3 -3
  3. package/dist/{Popup-lLWZt2wk.js → Popup-Ck3XlWMq.js} +3 -3
  4. package/dist/{Portal-B_Es6eUL.js → Portal-oY3enyAm.js} +2 -2
  5. package/dist/SelectButton-oWzluvmj.js +63 -0
  6. package/dist/{Toggle-CRfZgFJp.js → Toggle-Buew6bzm.js} +8 -7
  7. package/dist/assets/Autocomplete.css +1 -1
  8. package/dist/assets/SelectButton.css +1 -1
  9. package/dist/{combineHooksSlotProps-BtBYUV_B.js → combineHooksSlotProps-C-zYvfnF.js} +1 -1
  10. package/dist/components/Autocomplete/Autocomplete.d.ts +8 -39
  11. package/dist/components/Autocomplete/Autocomplete.js +369 -400
  12. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +2 -1
  13. package/dist/components/Button/Button.js +1 -1
  14. package/dist/components/Chip/Chip.js +4 -3
  15. package/dist/components/Dialog/CloseIconButton.js +1 -1
  16. package/dist/components/Dialog/Dialog.js +4 -4
  17. package/dist/components/Dialog/Dialog.stories.d.ts +1 -1
  18. package/dist/components/IconButton/IconButton.js +1 -1
  19. package/dist/components/Input/Input.d.ts +41 -2
  20. package/dist/components/Input/Input.js +500 -100
  21. package/dist/components/Input/Input.stories.d.ts +3 -3
  22. package/dist/components/InputSearch/InputSearch.stories.d.ts +2 -2
  23. package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
  24. package/dist/components/RowItem/RowItem.js +4 -3
  25. package/dist/components/Select/Select.d.ts +6 -0
  26. package/dist/components/Select/Select.js +391 -358
  27. package/dist/components/Select/SelectButton.js +1 -1
  28. package/dist/components/Snackbar/Snackbar.js +3 -3
  29. package/dist/components/Tabs/Tab.js +3 -3
  30. package/dist/components/Tabs/TabPanel.js +1 -1
  31. package/dist/components/Tabs/Tabs.js +3 -3
  32. package/dist/components/Toggle/Toggle.js +1 -1
  33. package/dist/components/ToggleGroup/Toggle.js +3 -2
  34. package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
  35. package/dist/components/Tooltip/Tooltip.js +3 -3
  36. package/dist/{index-D3Wj0eid.js → index-bQFToy-I.js} +1 -1
  37. package/dist/main.js +1 -1
  38. package/dist/{ownerDocument-B61GUaFs.js → ownerDocument-YGhwAnr1.js} +1 -1
  39. package/dist/{useButton-Bn3MNH8I.js → useButton-DcihopJG.js} +1 -1
  40. package/dist/{useList-BpJT77u3.js → useList-B9C55YB7.js} +2 -2
  41. package/dist/{useSlotProps-kRhf7Gil.js → useSlotProps-C_I1kEHr.js} +73 -72
  42. package/package.json +1 -1
  43. package/dist/Input.module-ZTRZRcNt.js +0 -405
  44. package/dist/SelectButton-CoOT2txy.js +0 -61
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
5
- component: <T extends string | object>({ label, type, labelKey, options, infoMessage, errorMessage, leftIcon, rightIcon, id, disabled, maxLength, onChange, onInputChange, classNameLabel, classNameInput, classNameErrorMessage, classNameInfoMessage, "data-testid-label": testIdLabel, "data-testid-input": testIdInput, "data-testid-infoMessage": testIdInfoMessage, "data-testid-errorMessage": testIdErrorMessage, ...rest }: import('./Autocomplete.tsx').AutocompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
5
+ component: <T extends string | object>({ labelKey, valueKey, options, type, value, onChange, onInputChange, "data-testid-wrapper": dataTestId, ...props }: import('./Autocomplete.tsx').AutocompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
6
6
  tags: string[];
7
7
  parameters: {
8
8
  layout: string;
@@ -12,6 +12,7 @@ export default meta;
12
12
  type Story = StoryObj<typeof meta>;
13
13
  export declare const Simple: Story;
14
14
  export declare const WithObjectsOptions: Story;
15
+ export declare const WithAHugeList: Story;
15
16
  export declare const WithLabel: Story;
16
17
  export declare const WithSearch: Story;
17
18
  export declare const WithPlaceholder: Story;
@@ -3,7 +3,7 @@ import { jsx as p, jsxs as l } from "react/jsx-runtime";
3
3
  import { forwardRef as x, useMemo as c } from "react";
4
4
  import { c as v } from "../../clsx-DB4S2d7J.js";
5
5
  import { LoadingSpinner as m } from "../LoadingSpinner/LoadingSpinner.js";
6
- import { B as f } from "../../Button-DiLqcAJG.js";
6
+ import { B as f } from "../../Button-BAljjMv3.js";
7
7
  const k = "_button_dxo5v_57", t = {
8
8
  "u-typography-h1": "_u-typography-h1_dxo5v_1",
9
9
  "u-typography-h2": "_u-typography-h2_dxo5v_8",
@@ -4,8 +4,9 @@ import "../../clsx-DB4S2d7J.js";
4
4
  import "../Adornment/Adornment.js";
5
5
  import "../Icon/Icon.js";
6
6
  import "../Typography/Typography.js";
7
+ import "../Input/Input.js";
7
8
  import "../Button/Button.js";
8
- import { C as k } from "../../Toggle-CRfZgFJp.js";
9
+ import { C as l } from "../../Toggle-Buew6bzm.js";
9
10
  import "../Dialog/Dialog.js";
10
11
  import "../IconButton/IconButton.js";
11
12
  import "../Select/Select.js";
@@ -14,7 +15,7 @@ import "../Table/Table.js";
14
15
  import "../Tabs/Tabs.js";
15
16
  import "../../Group-B3p31ftp.js";
16
17
  import "../../contexts/SnackbarProvider/SnackbarProvider.js";
17
- import "../../Button-DiLqcAJG.js";
18
+ import "../../Button-BAljjMv3.js";
18
19
  export {
19
- k as Chip
20
+ l as Chip
20
21
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { Icon as t } from "../Icon/Icon.js";
3
3
  import { s as i } from "../../Dialog.module-D9e4RsKo.js";
4
- import { B as s } from "../../Button-DiLqcAJG.js";
4
+ import { B as s } from "../../Button-BAljjMv3.js";
5
5
  const n = ({ handleOnClose: r }) => /* @__PURE__ */ o(
6
6
  s,
7
7
  {
@@ -6,12 +6,12 @@ import le from "./CloseIconButton.js";
6
6
  import ce from "./Content.js";
7
7
  import { s as z } from "../../Dialog.module-D9e4RsKo.js";
8
8
  import ee from "./DialogTitle.js";
9
- import { u as te, P as i, f as de, b as C, g as ue, a as fe, _ as pe, c as G, d as be, e as he } from "../../useSlotProps-kRhf7Gil.js";
9
+ import { u as te, P as i, f as de, b as C, g as ue, a as fe, _ as pe, c as G, d as be, e as he } from "../../useSlotProps-C_I1kEHr.js";
10
10
  import * as f from "react";
11
- import { o as A, e as ne } from "../../ownerDocument-B61GUaFs.js";
11
+ import { o as A, e as ne } from "../../ownerDocument-YGhwAnr1.js";
12
12
  import { u as X } from "../../useEventCallback-BAQJJ3ye.js";
13
- import { P as me, H as ge } from "../../Portal-B_Es6eUL.js";
14
- import { e as Ee } from "../../index-D3Wj0eid.js";
13
+ import { P as me, H as ge } from "../../Portal-oY3enyAm.js";
14
+ import { e as Ee } from "../../index-bQFToy-I.js";
15
15
  function J(...e) {
16
16
  return e.reduce((t, o) => o == null ? t : function(...s) {
17
17
  t.apply(this, s), o.apply(this, s);
@@ -87,13 +87,13 @@ declare const meta: {
87
87
  content?: string | undefined;
88
88
  dir?: string | undefined;
89
89
  hidden?: boolean | undefined;
90
+ id?: string | undefined;
90
91
  onChange?: import('react').FormEventHandler<HTMLDivElement> | undefined;
91
92
  accessKey?: string | undefined;
92
93
  autoFocus?: boolean | undefined;
93
94
  contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
94
95
  contextMenu?: string | undefined;
95
96
  draggable?: (boolean | "true" | "false") | undefined;
96
- id?: string | undefined;
97
97
  lang?: string | undefined;
98
98
  nonce?: string | undefined;
99
99
  spellCheck?: (boolean | "true" | "false") | undefined;
@@ -3,7 +3,7 @@ import { jsx as r, jsxs as c } from "react/jsx-runtime";
3
3
  import { forwardRef as d, useMemo as l } from "react";
4
4
  import { c as j } from "../../clsx-DB4S2d7J.js";
5
5
  import { LoadingSpinner as m } from "../LoadingSpinner/LoadingSpinner.js";
6
- import { B as x } from "../../Button-DiLqcAJG.js";
6
+ import { B as x } from "../../Button-BAljjMv3.js";
7
7
  const o = {
8
8
  "u-typography-h1": "_u-typography-h1_gt5j9_1",
9
9
  "u-typography-h2": "_u-typography-h2_gt5j9_8",
@@ -2,7 +2,7 @@ import { HTMLInputTypeAttribute, InputHTMLAttributes, ReactNode } from 'react';
2
2
 
3
3
  type ExcludedInputTypes = 'checkbox' | 'radio' | 'submit';
4
4
  type CustomInputTypeAttribute = Exclude<HTMLInputTypeAttribute, ExcludedInputTypes>;
5
- type InputProps = InputHTMLAttributes<HTMLInputElement> & {
5
+ export type InputProps = InputHTMLAttributes<HTMLInputElement> & {
6
6
  /** Label text */
7
7
  label?: string;
8
8
  /** Info message text */
@@ -42,5 +42,44 @@ type InputProps = InputHTMLAttributes<HTMLInputElement> & {
42
42
  /** Id to be applied as `data-testid` on the chars counter element */
43
43
  'data-testid-charsCounter'?: string;
44
44
  };
45
- export declare const Input: ({ label, infoMessage, errorMessage, leftIcon, rightIcon, id, disabled, type, maxLength, hideCharsCounter, onChange, classNameWrapper, classNameLabel, classNameInput, classNameInfoMessage, classNameErrorMessage, classNameCharsCounter, "data-testid-wrapper": testIdWrapper, "data-testid-label": testIdLabel, "data-testid-input": testIdInput, "data-testid-infoMessage": testIdInfoMessage, "data-testid-errorMessage": testIdErrorMessage, "data-testid-charsCounter": testIdCharsCounter, ...rest }: InputProps) => import("react/jsx-runtime").JSX.Element;
45
+ export declare const Input: import('react').ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & {
46
+ /** Label text */
47
+ label?: string | undefined;
48
+ /** Info message text */
49
+ infoMessage?: string | undefined;
50
+ /** Error message text */
51
+ errorMessage?: string | undefined;
52
+ /** Left icon element */
53
+ leftIcon?: ReactNode;
54
+ /** Right icon element */
55
+ rightIcon?: ReactNode;
56
+ /** Input type. Default: text */
57
+ type?: CustomInputTypeAttribute | undefined;
58
+ /** Hide the chars counter */
59
+ hideCharsCounter?: boolean | undefined;
60
+ /** CSS classes to be applied on the container element */
61
+ classNameWrapper?: string | undefined;
62
+ /** CSS classes to be applied on the label element */
63
+ classNameLabel?: string | undefined;
64
+ /** CSS classes to be applied on the input element */
65
+ classNameInput?: string | undefined;
66
+ /** CSS classes to be applied on the info message element */
67
+ classNameInfoMessage?: string | undefined;
68
+ /** CSS classes to be applied on the error message element */
69
+ classNameErrorMessage?: string | undefined;
70
+ /** CSS classes to be applied on the chars counter element */
71
+ classNameCharsCounter?: string | undefined;
72
+ /** Id to be applied as `data-testid` on the container element */
73
+ 'data-testid-wrapper'?: string | undefined;
74
+ /** Id to be applied as `data-testid` on the label element */
75
+ 'data-testid-label'?: string | undefined;
76
+ /** Id to be applied as `data-testid` on the input element */
77
+ 'data-testid-input'?: string | undefined;
78
+ /** Id to be applied as `data-testid` on the info message element */
79
+ 'data-testid-infoMessage'?: string | undefined;
80
+ /** Id to be applied as `data-testid` on the error message element */
81
+ 'data-testid-errorMessage'?: string | undefined;
82
+ /** Id to be applied as `data-testid` on the chars counter element */
83
+ 'data-testid-charsCounter'?: string | undefined;
84
+ } & import('react').RefAttributes<HTMLInputElement>>;
46
85
  export {};