@pismo/marola 1.0.0-beta.69 → 1.0.0-beta.7
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-BAljjMv3.js → Button-2b1peDFT.js} +2 -2
- package/dist/{ClickAwayListener-DbEYZpyh.js → ClickAwayListener-BSW-Nd-y.js} +3 -4
- package/dist/Dialog.module-DFEmFdYT.js +30 -0
- package/dist/Group-B3p31ftp.js +26 -0
- package/dist/{Popup-Ck3XlWMq.js → Popup-B6ZSGIEI.js} +3 -3
- package/dist/{Portal-oY3enyAm.js → Portal-DIeBsWdL.js} +2 -2
- package/dist/SelectButton-K3OIfR5m.js +61 -0
- package/dist/{Tabs.module-BGGTkDc5.js → Tabs.module-jkH1Qjn7.js} +7 -7
- package/dist/Toggle-BWF0-SPB.js +175 -0
- package/dist/assets/Advice.css +1 -1
- 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/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/Table.css +1 -1
- package/dist/assets/Tabs.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-C-zYvfnF.js → combineHooksSlotProps-DVjg9PRh.js} +1 -1
- package/dist/components/Adornment/Adornment.d.ts +2 -11
- package/dist/components/Adornment/Adornment.js +6 -6
- package/dist/components/Advice/Advice.d.ts +17 -32
- package/dist/components/Advice/Advice.js +40 -39
- package/dist/components/Advice/Advice.stories.d.ts +3 -4
- package/dist/components/Button/Button.d.ts +0 -2
- package/dist/components/Button/Button.js +49 -51
- package/dist/components/Checkbox/Checkbox.js +52 -52
- package/dist/components/Chip/Chip.d.ts +4 -6
- package/dist/components/Chip/Chip.js +7 -11
- package/dist/components/Chip/Chip.stories.d.ts +15 -6
- package/dist/components/Dialog/Actions.js +1 -1
- package/dist/components/Dialog/Backdrop.d.ts +3 -3
- package/dist/components/Dialog/Backdrop.js +7 -8
- package/dist/components/Dialog/CloseIconButton.d.ts +2 -1
- package/dist/components/Dialog/CloseIconButton.js +18 -15
- package/dist/components/Dialog/Dialog.d.ts +10 -16
- package/dist/components/Dialog/Dialog.js +166 -167
- package/dist/components/Dialog/Dialog.stories.d.ts +108 -114
- package/dist/components/Dialog/DialogTitle.d.ts +2 -5
- package/dist/components/Dialog/DialogTitle.js +16 -22
- package/dist/components/EllipsisTooltip/EllipsisTooltip.js +17 -30
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +2 -3
- package/dist/components/Icon/Icon.js +51 -331
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/IconButton/IconButton.js +42 -42
- package/dist/components/Input/Input.d.ts +5 -26
- package/dist/components/Input/Input.js +304 -319
- package/dist/components/Input/Input.stories.d.ts +21 -2
- package/dist/components/InputSearch/InputSearch.d.ts +7 -37
- package/dist/components/InputSearch/InputSearch.js +29 -27
- package/dist/components/InputSearch/InputSearch.stories.d.ts +3 -15
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.d.ts +1 -1
- package/dist/components/PageHeader/PageHeader.d.ts +2 -6
- package/dist/components/PageHeader/PageHeader.js +71 -78
- package/dist/components/PageHeader/PageHeader.stories.d.ts +1 -3
- package/dist/components/Pagination/Pagination.d.ts +1 -5
- package/dist/components/Pagination/Pagination.js +91 -90
- package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
- package/dist/components/RowItem/RowItem.d.ts +2 -2
- package/dist/components/RowItem/RowItem.js +6 -10
- package/dist/components/Select/Select.d.ts +0 -22
- package/dist/components/Select/Select.js +413 -476
- package/dist/components/Select/SelectButton.d.ts +0 -2
- package/dist/components/Select/SelectButton.js +2 -3
- package/dist/components/Skeleton/Skeleton.d.ts +1 -3
- package/dist/components/Skeleton/Skeleton.js +14 -20
- 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/Table/Table.d.ts +1 -3
- package/dist/components/Table/Table.js +99 -87
- package/dist/components/Table/Table.stories.d.ts +1 -1
- package/dist/components/Tabs/Tab.d.ts +3 -5
- package/dist/components/Tabs/Tab.js +36 -38
- package/dist/components/Tabs/TabPanel.d.ts +2 -4
- package/dist/components/Tabs/TabPanel.js +40 -51
- package/dist/components/Tabs/Tabs.d.ts +4 -6
- package/dist/components/Tabs/Tabs.js +128 -131
- package/dist/components/TextDisplay/TextDisplay.d.ts +3 -7
- package/dist/components/TextDisplay/TextDisplay.js +37 -44
- package/dist/components/TextDisplay/TextDisplay.stories.d.ts +1 -2
- package/dist/components/Toggle/Toggle.js +55 -55
- package/dist/components/ToggleGroup/Group.d.ts +0 -2
- package/dist/components/ToggleGroup/Group.js +2 -4
- package/dist/components/ToggleGroup/Toggle.d.ts +0 -2
- package/dist/components/ToggleGroup/Toggle.js +5 -9
- package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -3
- package/dist/components/Tooltip/Tooltip.d.ts +1 -3
- package/dist/components/Tooltip/Tooltip.js +4 -4
- package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -2
- package/dist/components/Typography/Typography.js +47 -47
- package/dist/components/Typography/Typography.stories.d.ts +1 -1
- package/dist/contexts/SnackbarProvider/SnackbarProvider.js +30 -34
- package/dist/contexts/SnackbarProvider/SnackbarProvider.stories.d.ts +1 -1
- package/dist/{useSlotProps-C_I1kEHr.js → index-CH45lKw7.js} +99 -99
- package/dist/{index-bQFToy-I.js → index-CjW42-M-.js} +1 -1
- package/dist/main.d.ts +0 -9
- package/dist/main.js +77 -95
- package/dist/marola.css +1 -1
- package/dist/test-utils/assertStyles.d.ts +1 -1
- package/dist/{useButton-DcihopJG.js → useButton-DNk3wrQp.js} +1 -1
- package/dist/useCompoundItem-D1iRfg8D.js +84 -0
- package/dist/useEventCallback-xTG9piMa.js +45 -0
- package/dist/{useList-B9C55YB7.js → useList-B0hog_3-.js} +2 -2
- package/package.json +13 -22
- package/dist/Dialog.module-W7UCXlf3.js +0 -29
- package/dist/Group-DspH8hyO.js +0 -30
- package/dist/Popover.module-B4boCutS.js +0 -10
- package/dist/SelectButton-B38avP9u.js +0 -75
- package/dist/Toggle-MfR7l8Wn.js +0 -190
- package/dist/assets/Alert.css +0 -1
- package/dist/assets/Autocomplete.css +0 -1
- package/dist/assets/Avatar.css +0 -1
- package/dist/assets/Description.css +0 -1
- package/dist/assets/Popover.css +0 -1
- package/dist/assets/RadioButton.css +0 -1
- package/dist/assets/ResultWithChips.css +0 -1
- package/dist/assets/StepperNavigator.css +0 -1
- package/dist/components/Adornment/Adornment.stories.d.ts +0 -14
- package/dist/components/Adornment/adornment.test.d.ts +0 -1
- package/dist/components/Alert/Alert.d.ts +0 -11
- package/dist/components/Alert/Alert.js +0 -46
- package/dist/components/Alert/Alert.stories.d.ts +0 -24
- package/dist/components/Alert/Alert.test.d.ts +0 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +0 -20
- package/dist/components/Autocomplete/Autocomplete.js +0 -679
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +0 -23
- package/dist/components/Avatar/Avatar.d.ts +0 -15
- package/dist/components/Avatar/Avatar.js +0 -51
- package/dist/components/Avatar/Avatar.stories.d.ts +0 -25
- package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +0 -14
- package/dist/components/ConfirmationDialog/ConfirmationDialog.js +0 -37
- package/dist/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +0 -23
- package/dist/components/ConfirmationDialog/ConfirmationModal.test.d.ts +0 -1
- package/dist/components/Description/Description.d.ts +0 -21
- package/dist/components/Description/Description.js +0 -66
- package/dist/components/Description/Description.stories.d.ts +0 -22
- package/dist/components/Description/Description.test.d.ts +0 -1
- package/dist/components/PageHeader/PageHeader.test.d.ts +0 -1
- package/dist/components/Popover/Popover.d.ts +0 -32
- package/dist/components/Popover/Popover.js +0 -24
- package/dist/components/Popover/Popover.stories.d.ts +0 -34
- package/dist/components/Popover/PopoverBody.d.ts +0 -6
- package/dist/components/Popover/PopoverBody.js +0 -6
- package/dist/components/Popover/PopoverFooter.d.ts +0 -6
- package/dist/components/Popover/PopoverFooter.js +0 -6
- package/dist/components/Popover/PopoverHeader.d.ts +0 -6
- package/dist/components/Popover/PopoverHeader.js +0 -6
- package/dist/components/RadioButton/RadioButton.d.ts +0 -19
- package/dist/components/RadioButton/RadioButton.js +0 -37
- package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -24
- package/dist/components/RadioButton/RadioButton.test.d.ts +0 -1
- package/dist/components/ResultWithChips/ResultWithChips.d.ts +0 -12
- package/dist/components/ResultWithChips/ResultWithChips.js +0 -33
- package/dist/components/RowItem/RowItem.stories.d.ts +0 -17
- package/dist/components/RowItem/rowItem.test.d.ts +0 -1
- package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -58
- package/dist/components/StepperNavigator/StepperNavigator.js +0 -115
- package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +0 -18
- package/dist/components/StepperNavigator/StepperNavigator.test.d.ts +0 -1
- package/dist/ownerDocument-YGhwAnr1.js +0 -33
- package/dist/useCompoundItem-B7Eo_qZk.js +0 -68
- package/dist/useEventCallback-BAQJJ3ye.js +0 -14
- package/dist/useId-BW-oWmul.js +0 -19
|
@@ -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-
|
|
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';
|
|
@@ -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 a, jsxs as c } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as x, useMemo as d } from "react";
|
|
4
|
+
import { c as l } from "../../clsx-DB4S2d7J.js";
|
|
5
|
+
import { LoadingSpinner as j } from "../LoadingSpinner/LoadingSpinner.js";
|
|
6
|
+
import { B as m } from "../../Button-2b1peDFT.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_1xyj5_1",
|
|
9
|
+
"u-typography-h2": "_u-typography-h2_1xyj5_8",
|
|
10
|
+
"u-typography-h3": "_u-typography-h3_1xyj5_15",
|
|
11
|
+
"u-typography-h4": "_u-typography-h4_1xyj5_22",
|
|
12
|
+
"u-typography-h5": "_u-typography-h5_1xyj5_29",
|
|
13
|
+
"u-typography-h6": "_u-typography-h6_1xyj5_36",
|
|
14
|
+
"u-typography-base": "_u-typography-base_1xyj5_43",
|
|
15
|
+
"icon-button": "_icon-button_1xyj5_43",
|
|
16
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_1xyj5_48",
|
|
17
|
+
"u-typography-base--xl": "_u-typography-base--xl_1xyj5_52",
|
|
18
|
+
"u-typography-base--lg": "_u-typography-base--lg_1xyj5_56",
|
|
19
|
+
"u-typography-base--sm": "_u-typography-base--sm_1xyj5_60",
|
|
20
|
+
"u-typography-base--bold": "_u-typography-base--bold_1xyj5_64",
|
|
21
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_1xyj5_67",
|
|
22
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_1xyj5_70",
|
|
23
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1xyj5_73",
|
|
24
|
+
"icon-button--primary": "_icon-button--primary_1xyj5_86",
|
|
25
|
+
"icon-button--square": "_icon-button--square_1xyj5_108",
|
|
26
|
+
"icon-button__container": "_icon-button__container_1xyj5_124"
|
|
27
|
+
}, B = x((r, p) => {
|
|
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: n,
|
|
33
|
+
children: h,
|
|
34
|
+
type: s = "button",
|
|
35
|
+
disabled: i,
|
|
36
|
+
className: y,
|
|
37
37
|
variant: t = "primary",
|
|
38
|
-
"data-testid":
|
|
39
|
-
} =
|
|
40
|
-
() =>
|
|
41
|
-
[
|
|
38
|
+
"data-testid": g
|
|
39
|
+
} = r, b = d(
|
|
40
|
+
() => l([o["icon-button"], o[`icon-button--${t}`], y]),
|
|
41
|
+
[y, t]
|
|
42
42
|
);
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
-
|
|
43
|
+
return /* @__PURE__ */ a(
|
|
44
|
+
m,
|
|
45
45
|
{
|
|
46
|
-
type:
|
|
46
|
+
type: s,
|
|
47
47
|
href: u,
|
|
48
48
|
onClick: _,
|
|
49
|
-
disabled:
|
|
49
|
+
disabled: i,
|
|
50
50
|
className: b,
|
|
51
|
-
ref:
|
|
52
|
-
"data-testid":
|
|
51
|
+
ref: p,
|
|
52
|
+
"data-testid": g,
|
|
53
53
|
children: /* @__PURE__ */ c("div", { className: o["icon-button__container"], children: [
|
|
54
|
-
|
|
55
|
-
t !== "square" &&
|
|
54
|
+
n ? /* @__PURE__ */ a(j, { invert: !0 }) : e,
|
|
55
|
+
t !== "square" && h
|
|
56
56
|
] })
|
|
57
57
|
}
|
|
58
58
|
);
|
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
type
|
|
4
|
-
type CustomInputTypeAttribute = Exclude<HTMLInputTypeAttribute, ExcludedInputTypes>;
|
|
5
|
-
export type SingleInputProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
3
|
+
type InputProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
6
4
|
/** Label text */
|
|
7
5
|
label?: string;
|
|
8
6
|
/** Info message text */
|
|
9
7
|
infoMessage?: string;
|
|
10
|
-
/**
|
|
11
|
-
error?: boolean;
|
|
12
|
-
/** Error message text, if has "errorMessage", the "error" props will be "true" */
|
|
8
|
+
/** Error message text */
|
|
13
9
|
errorMessage?: string;
|
|
14
|
-
/** If "true", a "textarea" element is rendered. */
|
|
15
|
-
multiline?: false;
|
|
16
10
|
/** Left icon element */
|
|
17
11
|
leftIcon?: ReactNode;
|
|
18
12
|
/** Right icon element */
|
|
19
13
|
rightIcon?: ReactNode;
|
|
20
14
|
/** Input type. Default: text */
|
|
21
|
-
type?:
|
|
22
|
-
/** Decimal length when the input type is 'number' */
|
|
23
|
-
decimalLength?: number;
|
|
15
|
+
type?: 'text' | 'password' | 'search';
|
|
24
16
|
/** Hide the chars counter */
|
|
25
17
|
hideCharsCounter?: boolean;
|
|
26
18
|
/** CSS classes to be applied on the container element */
|
|
@@ -48,18 +40,5 @@ export type SingleInputProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
48
40
|
/** Id to be applied as `data-testid` on the chars counter element */
|
|
49
41
|
'data-testid-charsCounter'?: string;
|
|
50
42
|
};
|
|
51
|
-
type
|
|
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>>;
|
|
43
|
+
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;
|
|
65
44
|
export {};
|