@pismo/marola 1.0.0-beta.5 → 1.0.0-beta.51
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/{Button-2b1peDFT.js → Button-BAljjMv3.js} +2 -2
- package/dist/{ClickAwayListener-BSW-Nd-y.js → ClickAwayListener-DbEYZpyh.js} +4 -3
- package/dist/Dialog.module-D9e4RsKo.js +30 -0
- package/dist/Group-DspH8hyO.js +30 -0
- package/dist/Popover.module-B4boCutS.js +10 -0
- package/dist/{Popup-B6ZSGIEI.js → Popup-Ck3XlWMq.js} +3 -3
- package/dist/{Portal-DIeBsWdL.js → Portal-oY3enyAm.js} +2 -2
- package/dist/SelectButton-B38avP9u.js +75 -0
- package/dist/{Tabs.module-jkH1Qjn7.js → Tabs.module-BGGTkDc5.js} +7 -7
- package/dist/Toggle-CzkXi3_R.js +189 -0
- package/dist/assets/Adornment.css +1 -0
- package/dist/assets/Advice.css +1 -1
- package/dist/assets/Autocomplete.css +1 -0
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/Dialog.css +1 -1
- package/dist/assets/EllipsisTooltip.css +1 -1
- package/dist/assets/Group.css +1 -1
- package/dist/assets/IconButton.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/PageHeader.css +1 -1
- package/dist/assets/Pagination.css +1 -1
- package/dist/assets/Popover.css +1 -0
- package/dist/assets/ResultWithChips.css +1 -0
- package/dist/assets/SelectButton.css +1 -1
- package/dist/assets/Skeleton.css +1 -1
- package/dist/assets/Snackbar.css +1 -1
- package/dist/assets/SortTooltip.css +1 -1
- package/dist/assets/Stepper.css +1 -1
- package/dist/assets/StepperNavigator.css +1 -0
- package/dist/assets/Table.css +1 -1
- package/dist/assets/Tabs.css +1 -1
- package/dist/assets/TextDisplay.css +1 -1
- package/dist/assets/Toggle.css +1 -1
- package/dist/assets/Toggle2.css +1 -1
- package/dist/assets/Typography.css +1 -1
- package/dist/{combineHooksSlotProps-DVjg9PRh.js → combineHooksSlotProps-C-zYvfnF.js} +1 -1
- package/dist/components/Adornment/Adornment.d.ts +20 -0
- package/dist/components/Adornment/Adornment.js +13 -0
- package/dist/components/Adornment/Adornment.stories.d.ts +14 -0
- package/dist/components/Adornment/adornment.test.d.ts +1 -0
- package/dist/components/Advice/Advice.d.ts +32 -17
- package/dist/components/Advice/Advice.js +39 -40
- package/dist/components/Advice/Advice.stories.d.ts +4 -3
- package/dist/components/Autocomplete/Autocomplete.d.ts +20 -0
- package/dist/components/Autocomplete/Autocomplete.js +679 -0
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +23 -0
- package/dist/components/Button/Button.d.ts +2 -0
- package/dist/components/Button/Button.js +51 -49
- package/dist/components/Checkbox/Checkbox.js +52 -52
- package/dist/components/Chip/Chip.d.ts +6 -12
- package/dist/components/Chip/Chip.js +10 -6
- package/dist/components/Chip/Chip.stories.d.ts +6 -15
- package/dist/components/Dialog/Actions.js +1 -1
- package/dist/components/Dialog/Backdrop.d.ts +3 -3
- package/dist/components/Dialog/Backdrop.js +8 -7
- package/dist/components/Dialog/CloseIconButton.d.ts +1 -2
- package/dist/components/Dialog/CloseIconButton.js +15 -18
- package/dist/components/Dialog/Dialog.d.ts +9 -6
- package/dist/components/Dialog/Dialog.js +139 -139
- package/dist/components/Dialog/Dialog.stories.d.ts +51 -47
- package/dist/components/Dialog/DialogTitle.js +1 -1
- package/dist/components/EllipsisTooltip/EllipsisTooltip.js +30 -17
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +3 -2
- package/dist/components/Icon/Icon.js +177 -52
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/IconButton/IconButton.js +42 -42
- package/dist/components/Input/Input.d.ts +26 -5
- package/dist/components/Input/Input.js +319 -304
- package/dist/components/Input/Input.stories.d.ts +2 -21
- package/dist/components/InputSearch/InputSearch.d.ts +37 -7
- package/dist/components/InputSearch/InputSearch.js +27 -29
- package/dist/components/InputSearch/InputSearch.stories.d.ts +15 -3
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.d.ts +1 -1
- package/dist/components/PageHeader/PageHeader.js +57 -57
- package/dist/components/Pagination/Pagination.d.ts +5 -1
- package/dist/components/Pagination/Pagination.js +87 -185
- package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
- package/dist/components/Pagination/usePagination.d.ts +90 -0
- package/dist/components/Pagination/usePagination.js +79 -0
- package/dist/components/Popover/Popover.d.ts +32 -0
- package/dist/components/Popover/Popover.js +24 -0
- package/dist/components/Popover/Popover.stories.d.ts +34 -0
- package/dist/components/Popover/PopoverBody.d.ts +6 -0
- package/dist/components/Popover/PopoverBody.js +6 -0
- package/dist/components/Popover/PopoverFooter.d.ts +6 -0
- package/dist/components/Popover/PopoverFooter.js +6 -0
- package/dist/components/Popover/PopoverHeader.d.ts +6 -0
- package/dist/components/Popover/PopoverHeader.js +6 -0
- package/dist/components/ResultWithChips/ResultWithChips.d.ts +12 -0
- package/dist/components/ResultWithChips/ResultWithChips.js +33 -0
- package/dist/components/RowItem/RowItem.d.ts +25 -0
- package/dist/components/RowItem/RowItem.js +22 -0
- package/dist/components/RowItem/RowItem.stories.d.ts +17 -0
- package/dist/components/RowItem/rowItem.test.d.ts +1 -0
- package/dist/components/Select/Select.d.ts +21 -0
- package/dist/components/Select/Select.js +476 -413
- package/dist/components/Select/SelectButton.d.ts +2 -0
- package/dist/components/Select/SelectButton.js +3 -2
- package/dist/components/Skeleton/Skeleton.d.ts +3 -1
- package/dist/components/Skeleton/Skeleton.js +20 -14
- package/dist/components/Skeleton/SkeletonTable.stories.d.ts +1 -1
- package/dist/components/Snackbar/Snackbar.js +94 -94
- package/dist/components/Snackbar/Snackbar.stories.d.ts +4 -4
- package/dist/components/SortTooltip/SortTooltip.js +46 -46
- package/dist/components/Stepper/Stepper.js +35 -35
- package/dist/components/StepperNavigator/StepperNavigator.d.ts +58 -0
- package/dist/components/StepperNavigator/StepperNavigator.js +115 -0
- package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +18 -0
- package/dist/components/StepperNavigator/StepperNavigator.test.d.ts +1 -0
- package/dist/components/Table/Table.d.ts +3 -1
- package/dist/components/Table/Table.js +87 -99
- package/dist/components/Table/Table.stories.d.ts +1 -1
- package/dist/components/Tabs/Tab.d.ts +5 -3
- package/dist/components/Tabs/Tab.js +38 -36
- package/dist/components/Tabs/TabPanel.d.ts +4 -2
- package/dist/components/Tabs/TabPanel.js +51 -40
- package/dist/components/Tabs/Tabs.d.ts +6 -4
- package/dist/components/Tabs/Tabs.js +131 -128
- package/dist/components/TextDisplay/TextDisplay.d.ts +9 -3
- package/dist/components/TextDisplay/TextDisplay.js +45 -31
- package/dist/components/TextDisplay/TextDisplay.stories.d.ts +2 -1
- package/dist/components/Toggle/Toggle.js +56 -56
- package/dist/components/ToggleGroup/Group.d.ts +2 -0
- package/dist/components/ToggleGroup/Group.js +4 -2
- package/dist/components/ToggleGroup/Toggle.d.ts +2 -0
- package/dist/components/ToggleGroup/Toggle.js +8 -5
- package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +3 -1
- package/dist/components/Tooltip/Tooltip.d.ts +3 -1
- package/dist/components/Tooltip/Tooltip.js +4 -4
- package/dist/components/Tooltip/Tooltip.stories.d.ts +2 -1
- package/dist/components/Typography/Typography.js +47 -47
- package/dist/components/Typography/Typography.stories.d.ts +1 -1
- package/dist/contexts/SnackbarProvider/SnackbarProvider.stories.d.ts +1 -1
- package/dist/{index-CjW42-M-.js → index-bQFToy-I.js} +1 -1
- package/dist/main.d.ts +6 -0
- package/dist/main.js +87 -76
- package/dist/ownerDocument-YGhwAnr1.js +33 -0
- package/dist/{useButton-DNk3wrQp.js → useButton-DcihopJG.js} +1 -1
- package/dist/useCompoundItem-B7Eo_qZk.js +68 -0
- package/dist/useEventCallback-BAQJJ3ye.js +14 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/{useList-B0hog_3-.js → useList-B9C55YB7.js} +2 -2
- package/dist/{index-CH45lKw7.js → useSlotProps-C_I1kEHr.js} +99 -99
- package/package.json +21 -12
- package/dist/Dialog.module-DFEmFdYT.js +0 -30
- package/dist/Group-B3p31ftp.js +0 -26
- package/dist/SelectButton-K3OIfR5m.js +0 -61
- package/dist/Toggle-BCgIItCc.js +0 -142
- package/dist/useCompoundItem-D1iRfg8D.js +0 -84
- package/dist/useEventCallback-xTG9piMa.js +0 -45
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file is automatically generated. Any changes will be lost.
|
|
3
3
|
* run "yarn generate-icon-types" or "yarn build" to regenerate it.
|
|
4
4
|
*/
|
|
5
|
-
export type IconName = 'arrow-down-arrow-up' | 'arrow-left' | 'calendar-days' | 'chevron-down' | 'chevron-up' | 'circle-arrow-right' | 'circle-check' | 'circle-exclamation' | 'circle-xmark' | 'eye-slash' | 'folder-magnifying-glass' | 'lock-keyhole' | 'magnifying-glass' | 'money-bill-trend-up' | 'pen-to-square' | 'piggy-bank' | 'rectangle-history' | 'trash' | 'user-group' | 'warehouse-full' | 'xmark' | 'logo';
|
|
5
|
+
export type IconName = 'arrow-down-arrow-up' | 'arrow-down-z-a' | 'arrow-left' | 'arrows-rotate' | 'badge-check' | 'bell' | 'building-columns' | 'calendar-days' | 'check-double' | 'chevron-down' | 'chevron-up' | 'circle-arrow-right' | 'circle-check' | 'circle-exclamation' | 'circle-info' | 'circle-xmark' | 'coins' | 'empty-set' | 'eye-slash' | 'eye' | 'filter-list' | 'folder-magnifying-glass' | 'grid-horizontal' | 'house-blank' | 'list' | 'loader' | 'lock-keyhole' | 'magnifying-glass' | 'money-bill-trend-up' | 'money-bills' | 'paste' | 'pen-to-square' | 'piggy-bank' | 'rectangle-history' | 'trash-can' | 'trash' | 'upload' | 'user-group' | 'user' | 'wallet' | 'warehouse-full' | 'xmark' | 'logo';
|
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
import '../../assets/IconButton.css';
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { c as
|
|
5
|
-
import { LoadingSpinner as
|
|
6
|
-
import { B as
|
|
2
|
+
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as d, useMemo as l } from "react";
|
|
4
|
+
import { c as j } from "../../clsx-DB4S2d7J.js";
|
|
5
|
+
import { LoadingSpinner as m } from "../LoadingSpinner/LoadingSpinner.js";
|
|
6
|
+
import { B as x } from "../../Button-BAljjMv3.js";
|
|
7
7
|
const o = {
|
|
8
|
-
"u-typography-h1": "_u-typography-
|
|
9
|
-
"u-typography-h2": "_u-typography-
|
|
10
|
-
"u-typography-h3": "_u-typography-
|
|
11
|
-
"u-typography-h4": "_u-typography-
|
|
12
|
-
"u-typography-h5": "_u-typography-
|
|
13
|
-
"u-typography-h6": "_u-typography-
|
|
14
|
-
"u-typography-base": "_u-typography-
|
|
15
|
-
"icon-button": "_icon-
|
|
16
|
-
"u-typography-base--xxl": "_u-typography-base--
|
|
17
|
-
"u-typography-base--xl": "_u-typography-base--
|
|
18
|
-
"u-typography-base--lg": "_u-typography-base--
|
|
19
|
-
"u-typography-base--sm": "_u-typography-base--
|
|
20
|
-
"u-typography-base--bold": "_u-typography-base--
|
|
21
|
-
"u-typography-base--strikethrough": "_u-typography-base--
|
|
22
|
-
"u-typography-base--underlined": "_u-typography-base--
|
|
23
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-
|
|
24
|
-
"icon-button--primary": "_icon-button--
|
|
25
|
-
"icon-button--square": "_icon-button--
|
|
26
|
-
"icon-button__container": "_icon-
|
|
27
|
-
}, B =
|
|
8
|
+
"u-typography-h1": "_u-typography-h1_gt5j9_1",
|
|
9
|
+
"u-typography-h2": "_u-typography-h2_gt5j9_8",
|
|
10
|
+
"u-typography-h3": "_u-typography-h3_gt5j9_15",
|
|
11
|
+
"u-typography-h4": "_u-typography-h4_gt5j9_22",
|
|
12
|
+
"u-typography-h5": "_u-typography-h5_gt5j9_29",
|
|
13
|
+
"u-typography-h6": "_u-typography-h6_gt5j9_36",
|
|
14
|
+
"u-typography-base": "_u-typography-base_gt5j9_43",
|
|
15
|
+
"icon-button": "_icon-button_gt5j9_43",
|
|
16
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_gt5j9_49",
|
|
17
|
+
"u-typography-base--xl": "_u-typography-base--xl_gt5j9_53",
|
|
18
|
+
"u-typography-base--lg": "_u-typography-base--lg_gt5j9_57",
|
|
19
|
+
"u-typography-base--sm": "_u-typography-base--sm_gt5j9_61",
|
|
20
|
+
"u-typography-base--bold": "_u-typography-base--bold_gt5j9_65",
|
|
21
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_gt5j9_68",
|
|
22
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_gt5j9_71",
|
|
23
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_gt5j9_74",
|
|
24
|
+
"icon-button--primary": "_icon-button--primary_gt5j9_87",
|
|
25
|
+
"icon-button--square": "_icon-button--square_gt5j9_109",
|
|
26
|
+
"icon-button__container": "_icon-button__container_gt5j9_125"
|
|
27
|
+
}, B = d((p, y) => {
|
|
28
28
|
const {
|
|
29
29
|
onClick: _,
|
|
30
30
|
icon: e,
|
|
31
31
|
link: u,
|
|
32
|
-
loading:
|
|
33
|
-
children:
|
|
34
|
-
type:
|
|
35
|
-
disabled:
|
|
36
|
-
className:
|
|
32
|
+
loading: g,
|
|
33
|
+
children: n,
|
|
34
|
+
type: h = "button",
|
|
35
|
+
disabled: s,
|
|
36
|
+
className: a,
|
|
37
37
|
variant: t = "primary",
|
|
38
|
-
"data-testid":
|
|
39
|
-
} =
|
|
40
|
-
() =>
|
|
41
|
-
[
|
|
38
|
+
"data-testid": i
|
|
39
|
+
} = p, b = l(
|
|
40
|
+
() => j([o["icon-button"], o[`icon-button--${t}`], a]),
|
|
41
|
+
[a, t]
|
|
42
42
|
);
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
-
|
|
43
|
+
return /* @__PURE__ */ r(
|
|
44
|
+
x,
|
|
45
45
|
{
|
|
46
|
-
type:
|
|
46
|
+
type: h,
|
|
47
47
|
href: u,
|
|
48
48
|
onClick: _,
|
|
49
|
-
disabled:
|
|
49
|
+
disabled: s,
|
|
50
50
|
className: b,
|
|
51
|
-
ref:
|
|
52
|
-
"data-testid":
|
|
51
|
+
ref: y,
|
|
52
|
+
"data-testid": i,
|
|
53
53
|
children: /* @__PURE__ */ c("div", { className: o["icon-button__container"], children: [
|
|
54
|
-
|
|
55
|
-
t !== "square" &&
|
|
54
|
+
g ? /* @__PURE__ */ r(m, { invert: !0 }) : e,
|
|
55
|
+
t !== "square" && n
|
|
56
56
|
] })
|
|
57
57
|
}
|
|
58
58
|
);
|
|
@@ -1,18 +1,26 @@
|
|
|
1
|
-
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
1
|
+
import { HTMLInputTypeAttribute, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type
|
|
3
|
+
type ExcludedInputTypes = 'checkbox' | 'radio' | 'submit';
|
|
4
|
+
type CustomInputTypeAttribute = Exclude<HTMLInputTypeAttribute, ExcludedInputTypes>;
|
|
5
|
+
export type SingleInputProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
4
6
|
/** Label text */
|
|
5
7
|
label?: string;
|
|
6
8
|
/** Info message text */
|
|
7
9
|
infoMessage?: string;
|
|
8
|
-
/**
|
|
10
|
+
/** Show the field layout as an error */
|
|
11
|
+
error?: boolean;
|
|
12
|
+
/** Error message text, if has "errorMessage", the "error" props will be "true" */
|
|
9
13
|
errorMessage?: string;
|
|
14
|
+
/** If "true", a "textarea" element is rendered. */
|
|
15
|
+
multiline?: false;
|
|
10
16
|
/** Left icon element */
|
|
11
17
|
leftIcon?: ReactNode;
|
|
12
18
|
/** Right icon element */
|
|
13
19
|
rightIcon?: ReactNode;
|
|
14
20
|
/** Input type. Default: text */
|
|
15
|
-
type?:
|
|
21
|
+
type?: CustomInputTypeAttribute;
|
|
22
|
+
/** Decimal length when the input type is 'number' */
|
|
23
|
+
decimalLength?: number;
|
|
16
24
|
/** Hide the chars counter */
|
|
17
25
|
hideCharsCounter?: boolean;
|
|
18
26
|
/** CSS classes to be applied on the container element */
|
|
@@ -40,5 +48,18 @@ type InputProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
40
48
|
/** Id to be applied as `data-testid` on the chars counter element */
|
|
41
49
|
'data-testid-charsCounter'?: string;
|
|
42
50
|
};
|
|
43
|
-
|
|
51
|
+
type MultilineInputProps = Omit<SingleInputProps, 'multiline'> & {
|
|
52
|
+
/** If "true", a "textarea" element is rendered. */
|
|
53
|
+
multiline: true;
|
|
54
|
+
/** Minimum number of rows to display when multiline option is set to true. */
|
|
55
|
+
minRows?: number;
|
|
56
|
+
/** Maximum number of rows to display when multiline option is set to true. */
|
|
57
|
+
maxRows?: number;
|
|
58
|
+
/** Number of rows to display when multiline option is set to true.
|
|
59
|
+
* The prop defaults to the value (5)
|
|
60
|
+
*/
|
|
61
|
+
rows?: number;
|
|
62
|
+
};
|
|
63
|
+
export type InputProps = SingleInputProps | MultilineInputProps;
|
|
64
|
+
export declare const Input: import('react').ForwardRefExoticComponent<InputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
44
65
|
export {};
|