@pismo/marola 1.0.0-beta.69 → 1.0.0-beta.8
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-DiLqcAJG.js} +2 -2
- package/dist/{ClickAwayListener-DbEYZpyh.js → ClickAwayListener-BaJ-OV_7.js} +3 -3
- package/dist/Dialog.module-DFEmFdYT.js +30 -0
- package/dist/Group-B3p31ftp.js +26 -0
- package/dist/Input.module-iOYlI_1w.js +405 -0
- package/dist/{Popup-Ck3XlWMq.js → Popup-lLWZt2wk.js} +3 -3
- package/dist/{Portal-oY3enyAm.js → Portal-B_Es6eUL.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-BSvvbKBp.js +175 -0
- package/dist/assets/Advice.css +1 -1
- package/dist/assets/Autocomplete.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-BtBYUV_B.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/Autocomplete/Autocomplete.d.ts +42 -12
- package/dist/components/Autocomplete/Autocomplete.js +435 -425
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +25 -3
- 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 +6 -10
- 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 +167 -167
- package/dist/components/Dialog/Dialog.stories.d.ts +69 -75
- 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 +1 -2
- 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 +102 -514
- 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 +5 -9
- package/dist/components/Select/Select.d.ts +0 -22
- package/dist/components/Select/Select.js +414 -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 +93 -93
- package/dist/components/Snackbar/Snackbar.stories.d.ts +1 -1
- 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 +35 -36
- package/dist/components/Tabs/TabPanel.d.ts +2 -4
- package/dist/components/Tabs/TabPanel.js +38 -48
- package/dist/components/Tabs/Tabs.d.ts +4 -6
- package/dist/components/Tabs/Tabs.js +112 -115
- 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 +4 -8
- 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/{index-bQFToy-I.js → index-D3Wj0eid.js} +1 -1
- package/dist/main.d.ts +0 -8
- package/dist/main.js +79 -95
- package/dist/marola.css +1 -1
- package/dist/{ownerDocument-YGhwAnr1.js → ownerDocument-B61GUaFs.js} +1 -1
- package/dist/test-utils/assertStyles.d.ts +1 -1
- package/dist/{useButton-DcihopJG.js → useButton-Bn3MNH8I.js} +1 -1
- package/dist/{useList-B9C55YB7.js → useList-BpJT77u3.js} +2 -2
- package/dist/{useSlotProps-C_I1kEHr.js → useSlotProps-kRhf7Gil.js} +72 -73
- 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/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/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
|
@@ -2,7 +2,31 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: <T extends string | object
|
|
5
|
+
component: <T extends string | (object & {
|
|
6
|
+
label: string;
|
|
7
|
+
})>({ label, type, options, infoMessage, errorMessage, leftIcon, rightIcon, id, disabled, maxLength, onChange, classNameLabel, classNameInput, classNameErrorMessage, classNameInfoMessage, "data-testid-label": testIdLabel, "data-testid-input": testIdInput, "data-testid-infoMessage": testIdInfoMessage, "data-testid-errorMessage": testIdErrorMessage, ...rest }: import('react').InputHTMLAttributes<HTMLInputElement> & {
|
|
8
|
+
label?: string | undefined;
|
|
9
|
+
options?: T[] | undefined;
|
|
10
|
+
onChange?: ((event: import('react').SyntheticEvent<Element, Event>, newValue: T) => void) | undefined;
|
|
11
|
+
infoMessage?: string | undefined;
|
|
12
|
+
errorMessage?: string | undefined;
|
|
13
|
+
leftIcon?: import('react').ReactNode;
|
|
14
|
+
rightIcon?: import('react').ReactNode;
|
|
15
|
+
type?: "search" | "text" | "password" | 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/jsx-runtime").JSX.Element;
|
|
6
30
|
tags: string[];
|
|
7
31
|
parameters: {
|
|
8
32
|
layout: string;
|
|
@@ -11,8 +35,6 @@ declare const meta: {
|
|
|
11
35
|
export default meta;
|
|
12
36
|
type Story = StoryObj<typeof meta>;
|
|
13
37
|
export declare const Simple: Story;
|
|
14
|
-
export declare const WithObjectsOptions: Story;
|
|
15
|
-
export declare const WithAHugeList: Story;
|
|
16
38
|
export declare const WithLabel: Story;
|
|
17
39
|
export declare const WithSearch: Story;
|
|
18
40
|
export declare const WithPlaceholder: Story;
|
|
@@ -16,8 +16,6 @@ type ButtonCoreProps = {
|
|
|
16
16
|
variant?: Variant;
|
|
17
17
|
/** mui base button props */
|
|
18
18
|
muiButtonBaseProps?: MUIButtonBaseProps;
|
|
19
|
-
/** Id to be applied as `data-testid` on the container element */
|
|
20
|
-
'data-testid'?: string;
|
|
21
19
|
};
|
|
22
20
|
interface ButtonPropsWithLink extends ButtonCoreProps {
|
|
23
21
|
/** link for component to navigate to, if provide component will be an anchor */
|
|
@@ -1,67 +1,65 @@
|
|
|
1
1
|
import '../../assets/Button.css';
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { c
|
|
2
|
+
import { jsx as n, jsxs as l } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as f, useMemo as d } from "react";
|
|
4
|
+
import { c } from "../../clsx-DB4S2d7J.js";
|
|
5
5
|
import { LoadingSpinner as m } from "../LoadingSpinner/LoadingSpinner.js";
|
|
6
|
-
import { B as
|
|
7
|
-
const k = "
|
|
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
|
-
"u-typography-base--xxl": "_u-typography-base--
|
|
16
|
-
"u-typography-base--xl": "_u-typography-base--
|
|
17
|
-
"u-typography-base--lg": "_u-typography-base--
|
|
6
|
+
import { B as x } from "../../Button-DiLqcAJG.js";
|
|
7
|
+
const k = "_button_1ynf4_56", o = {
|
|
8
|
+
"u-typography-h1": "_u-typography-h1_1ynf4_1",
|
|
9
|
+
"u-typography-h2": "_u-typography-h2_1ynf4_8",
|
|
10
|
+
"u-typography-h3": "_u-typography-h3_1ynf4_15",
|
|
11
|
+
"u-typography-h4": "_u-typography-h4_1ynf4_22",
|
|
12
|
+
"u-typography-h5": "_u-typography-h5_1ynf4_29",
|
|
13
|
+
"u-typography-h6": "_u-typography-h6_1ynf4_36",
|
|
14
|
+
"u-typography-base": "_u-typography-base_1ynf4_43",
|
|
15
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_1ynf4_48",
|
|
16
|
+
"u-typography-base--xl": "_u-typography-base--xl_1ynf4_52",
|
|
17
|
+
"u-typography-base--lg": "_u-typography-base--lg_1ynf4_56",
|
|
18
18
|
button: k,
|
|
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
|
-
"button--primary": "_button--
|
|
25
|
-
"button--secondary": "_button--
|
|
26
|
-
"button--quick": "_button--
|
|
27
|
-
"button__loading-container": "_button__loading-
|
|
28
|
-
},
|
|
19
|
+
"u-typography-base--sm": "_u-typography-base--sm_1ynf4_60",
|
|
20
|
+
"u-typography-base--bold": "_u-typography-base--bold_1ynf4_64",
|
|
21
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_1ynf4_67",
|
|
22
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_1ynf4_70",
|
|
23
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1ynf4_73",
|
|
24
|
+
"button--primary": "_button--primary_1ynf4_85",
|
|
25
|
+
"button--secondary": "_button--secondary_1ynf4_100",
|
|
26
|
+
"button--quick": "_button--quick_1ynf4_117",
|
|
27
|
+
"button__loading-container": "_button__loading-container_1ynf4_137"
|
|
28
|
+
}, P = f((r, p) => {
|
|
29
29
|
const {
|
|
30
|
-
onClick:
|
|
31
|
-
link:
|
|
32
|
-
loading:
|
|
33
|
-
children:
|
|
30
|
+
onClick: _,
|
|
31
|
+
link: u,
|
|
32
|
+
loading: e,
|
|
33
|
+
children: y,
|
|
34
34
|
type: s = "button",
|
|
35
35
|
disabled: h,
|
|
36
|
-
className:
|
|
37
|
-
variant:
|
|
38
|
-
muiButtonBaseProps:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
[r, o]
|
|
36
|
+
className: a,
|
|
37
|
+
variant: t = "primary",
|
|
38
|
+
muiButtonBaseProps: g
|
|
39
|
+
} = r, i = {
|
|
40
|
+
invert: t === "secondary" || t === "quick"
|
|
41
|
+
}, b = d(
|
|
42
|
+
() => c([o.button, o[`button--${t}`], a]),
|
|
43
|
+
[a, t]
|
|
45
44
|
);
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
-
|
|
45
|
+
return /* @__PURE__ */ n(
|
|
46
|
+
x,
|
|
48
47
|
{
|
|
49
48
|
type: s,
|
|
50
|
-
href:
|
|
51
|
-
onClick:
|
|
49
|
+
href: u,
|
|
50
|
+
onClick: _,
|
|
52
51
|
disabled: h,
|
|
53
52
|
className: b,
|
|
54
|
-
ref:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
] }) : a
|
|
53
|
+
ref: p,
|
|
54
|
+
...g ?? {},
|
|
55
|
+
children: e ? /* @__PURE__ */ l("div", { className: o["button__loading-container"], children: [
|
|
56
|
+
/* @__PURE__ */ n(m, { ...i }),
|
|
57
|
+
y
|
|
58
|
+
] }) : y
|
|
61
59
|
}
|
|
62
60
|
);
|
|
63
61
|
});
|
|
64
62
|
export {
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
P as Button,
|
|
64
|
+
P as default
|
|
67
65
|
};
|
|
@@ -1,71 +1,71 @@
|
|
|
1
1
|
import '../../assets/Checkbox.css';
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import * as
|
|
2
|
+
import { jsxs as v, jsx as c } from "react/jsx-runtime";
|
|
3
|
+
import * as o from "react";
|
|
4
4
|
import { useState as k, useEffect as i } from "react";
|
|
5
|
-
import { c as
|
|
6
|
-
const
|
|
7
|
-
"u-typography-h1": "_u-typography-
|
|
8
|
-
"u-typography-h2": "_u-typography-
|
|
9
|
-
"u-typography-h3": "_u-typography-
|
|
10
|
-
"u-typography-h4": "_u-typography-
|
|
11
|
-
"u-typography-h5": "_u-typography-
|
|
12
|
-
"u-typography-h6": "_u-typography-
|
|
13
|
-
"u-typography-base": "_u-typography-
|
|
14
|
-
"u-typography-base--xxl": "_u-typography-base--
|
|
15
|
-
"u-typography-base--xl": "_u-typography-base--
|
|
16
|
-
"u-typography-base--lg": "_u-typography-base--
|
|
17
|
-
"u-typography-base--sm": "_u-typography-base--
|
|
18
|
-
"u-typography-base--bold": "_u-typography-base--
|
|
19
|
-
"checkbox-wrapper": "_checkbox-
|
|
20
|
-
"label--highlighted": "_label--
|
|
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
|
-
label:
|
|
25
|
-
"label--highlighted-checked": "_label--highlighted-
|
|
26
|
-
checkmark:
|
|
27
|
-
"checkmark--checked": "_checkmark--
|
|
28
|
-
"checkmark--light-theme": "_checkmark--light-
|
|
29
|
-
"checkmark--accent-theme": "_checkmark--accent-
|
|
30
|
-
"checkmark--small-size": "_checkmark--small-
|
|
31
|
-
"checkmark--normal-size": "_checkmark--normal-
|
|
32
|
-
},
|
|
5
|
+
import { c as s } from "../../clsx-DB4S2d7J.js";
|
|
6
|
+
const N = (a) => /* @__PURE__ */ o.createElement("svg", { width: 14, height: 10, viewBox: "0 0 14 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ o.createElement("path", { d: "M13.7063 0.293438C14.0969 0.684062 14.0969 1.31531 13.7063 1.70594L5.70625 9.70594C5.31563 10.0966 4.68437 10.0966 4.29375 9.70594L0.292875 5.70594C-0.097625 5.31531 -0.097625 4.68406 0.292875 4.29344C0.683437 3.90281 1.31656 3.90281 1.70719 4.29344L4.97188 7.58406L12.2937 0.293438C12.6844 -0.0978125 13.3156 -0.0978125 13.7063 0.293438Z", fill: "#F7F7FC" })), z = "_label_18hen_64", E = "_checkmark_18hen_93", e = {
|
|
7
|
+
"u-typography-h1": "_u-typography-h1_18hen_1",
|
|
8
|
+
"u-typography-h2": "_u-typography-h2_18hen_8",
|
|
9
|
+
"u-typography-h3": "_u-typography-h3_18hen_15",
|
|
10
|
+
"u-typography-h4": "_u-typography-h4_18hen_22",
|
|
11
|
+
"u-typography-h5": "_u-typography-h5_18hen_29",
|
|
12
|
+
"u-typography-h6": "_u-typography-h6_18hen_36",
|
|
13
|
+
"u-typography-base": "_u-typography-base_18hen_43",
|
|
14
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_18hen_48",
|
|
15
|
+
"u-typography-base--xl": "_u-typography-base--xl_18hen_52",
|
|
16
|
+
"u-typography-base--lg": "_u-typography-base--lg_18hen_56",
|
|
17
|
+
"u-typography-base--sm": "_u-typography-base--sm_18hen_60",
|
|
18
|
+
"u-typography-base--bold": "_u-typography-base--bold_18hen_64",
|
|
19
|
+
"checkbox-wrapper": "_checkbox-wrapper_18hen_64",
|
|
20
|
+
"label--highlighted": "_label--highlighted_18hen_64",
|
|
21
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_18hen_67",
|
|
22
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_18hen_70",
|
|
23
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_18hen_73",
|
|
24
|
+
label: z,
|
|
25
|
+
"label--highlighted-checked": "_label--highlighted-checked_18hen_90",
|
|
26
|
+
checkmark: E,
|
|
27
|
+
"checkmark--checked": "_checkmark--checked_18hen_105",
|
|
28
|
+
"checkmark--light-theme": "_checkmark--light-theme_18hen_108",
|
|
29
|
+
"checkmark--accent-theme": "_checkmark--accent-theme_18hen_115",
|
|
30
|
+
"checkmark--small-size": "_checkmark--small-size_18hen_122",
|
|
31
|
+
"checkmark--normal-size": "_checkmark--normal-size_18hen_129"
|
|
32
|
+
}, F = (a) => /* @__PURE__ */ o.createElement("svg", { width: 10, height: 3, viewBox: "0 0 10 3", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ o.createElement("rect", { y: 0.5, width: 10, height: 2, rx: 1, fill: "#1897F3" })), M = ({
|
|
33
33
|
className: a,
|
|
34
|
-
label:
|
|
34
|
+
label: n,
|
|
35
35
|
name: m,
|
|
36
|
-
theme:
|
|
37
|
-
size:
|
|
36
|
+
theme: u = "accent",
|
|
37
|
+
size: b = "normal",
|
|
38
38
|
checked: r,
|
|
39
|
-
onChange:
|
|
40
|
-
isIndeterminate:
|
|
41
|
-
highlightLabel:
|
|
42
|
-
...
|
|
39
|
+
onChange: d,
|
|
40
|
+
isIndeterminate: l,
|
|
41
|
+
highlightLabel: x = !1,
|
|
42
|
+
...p
|
|
43
43
|
}) => {
|
|
44
|
-
const [h,
|
|
44
|
+
const [h, g] = k(r), [t, y] = k(l);
|
|
45
45
|
i(() => {
|
|
46
|
-
r !== h &&
|
|
46
|
+
r !== h && g(r);
|
|
47
47
|
}, [r]), i(() => {
|
|
48
|
-
typeof
|
|
49
|
-
}, [
|
|
50
|
-
const
|
|
48
|
+
typeof l == "boolean" && y(l);
|
|
49
|
+
}, [l]);
|
|
50
|
+
const C = s(e["checkbox-wrapper"], a), f = s(
|
|
51
51
|
e.checkmark,
|
|
52
|
-
e[`checkmark--${
|
|
53
|
-
e[`checkmark--${
|
|
52
|
+
e[`checkmark--${u}-theme`],
|
|
53
|
+
e[`checkmark--${b}-size`],
|
|
54
54
|
(h || t) && e["checkmark--checked"]
|
|
55
|
-
),
|
|
55
|
+
), w = x && (p.children || n) ? s(
|
|
56
56
|
e.label,
|
|
57
57
|
e["label--highlighted"],
|
|
58
58
|
(h || t) && e["label--highlighted-checked"]
|
|
59
59
|
) : e.label;
|
|
60
|
-
return /* @__PURE__ */
|
|
61
|
-
let
|
|
62
|
-
t && (y(!1),
|
|
63
|
-
}, ...
|
|
60
|
+
return /* @__PURE__ */ v("div", { className: C, onClick: () => {
|
|
61
|
+
let _ = !h;
|
|
62
|
+
t && (y(!1), _ = !0), d(_), g(_);
|
|
63
|
+
}, ...p, children: [
|
|
64
64
|
/* @__PURE__ */ c("input", { name: m, type: "checkbox", checked: !t && h, readOnly: !0 }),
|
|
65
|
-
/* @__PURE__ */ c("span", { className:
|
|
66
|
-
/* @__PURE__ */ c("label", { className:
|
|
65
|
+
/* @__PURE__ */ c("span", { className: f, children: t ? /* @__PURE__ */ c(F, {}) : h && /* @__PURE__ */ c(N, {}) }),
|
|
66
|
+
/* @__PURE__ */ c("label", { className: w, children: p.children || n })
|
|
67
67
|
] });
|
|
68
68
|
};
|
|
69
69
|
export {
|
|
70
|
-
|
|
70
|
+
M as Checkbox
|
|
71
71
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdornmentSlotProps } from '../../main';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
|
|
4
4
|
export type Variant = 'default' | 'contained' | 'outlined';
|
|
5
|
-
|
|
5
|
+
type ChipProps = {
|
|
6
6
|
/** Main content to display, typically just some text */
|
|
7
7
|
label: ReactNode;
|
|
8
8
|
/** Whether to show loading state (skeleton) */
|
|
9
9
|
loading?: boolean;
|
|
10
10
|
/** Left icon to display */
|
|
11
|
-
leftAdornment?:
|
|
11
|
+
leftAdornment?: AdornmentSlotProps;
|
|
12
12
|
/** Dataset test id only used for tests to reach in and grab the rendered DOM node of the chip wrapper */
|
|
13
13
|
'data-testid'?: string;
|
|
14
14
|
/** Functionality to perform when the main body of the chip is clicked */
|
|
@@ -27,7 +27,5 @@ export type ChipProps = {
|
|
|
27
27
|
/** Dataset test id only used for tests, used to hook onto the loading skeleton component for this chip */
|
|
28
28
|
'data-testid-skeleton'?: string;
|
|
29
29
|
};
|
|
30
|
-
export type ChipWrapperProps = Pick<ChipProps, 'data-testid' | 'onClickContent' | 'disabled' | 'className' | 'variant'> & {
|
|
31
|
-
children?: ReactNode;
|
|
32
|
-
};
|
|
33
30
|
export declare const Chip: import('react').ForwardRefExoticComponent<ChipProps & import('react').RefAttributes<unknown>>;
|
|
31
|
+
export {};
|
|
@@ -4,21 +4,17 @@ 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";
|
|
8
|
-
import "../Avatar/Avatar.js";
|
|
9
7
|
import "../Button/Button.js";
|
|
10
|
-
import { C as
|
|
11
|
-
import "../Dialog/
|
|
12
|
-
import "../Skeleton/Skeleton.js";
|
|
8
|
+
import { C as k } from "../../Toggle-BSvvbKBp.js";
|
|
9
|
+
import "../Dialog/Backdrop.js";
|
|
13
10
|
import "../IconButton/IconButton.js";
|
|
14
|
-
import "../InputSearch/InputSearch.js";
|
|
15
11
|
import "../Select/Select.js";
|
|
16
|
-
import "../
|
|
12
|
+
import "../Skeleton/Skeleton.js";
|
|
17
13
|
import "../Table/Table.js";
|
|
18
14
|
import "../Tabs/Tabs.js";
|
|
19
|
-
import "../../Group-
|
|
15
|
+
import "../../Group-B3p31ftp.js";
|
|
20
16
|
import "../../contexts/SnackbarProvider/SnackbarProvider.js";
|
|
21
|
-
import "../../Button-
|
|
17
|
+
import "../../Button-DiLqcAJG.js";
|
|
22
18
|
export {
|
|
23
|
-
|
|
19
|
+
k as Chip
|
|
24
20
|
};
|
|
@@ -2,12 +2,24 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: import('react').ForwardRefExoticComponent<
|
|
5
|
+
component: import('react').ForwardRefExoticComponent<{
|
|
6
|
+
label: import('react').ReactNode;
|
|
7
|
+
loading?: boolean | undefined;
|
|
8
|
+
leftAdornment?: import('../Adornment/Adornment').AdornmentSlotProps | undefined;
|
|
9
|
+
'data-testid'?: string | undefined;
|
|
10
|
+
onClickContent?: (() => void) | undefined;
|
|
11
|
+
onClickRemove?: (() => void) | undefined;
|
|
12
|
+
disabled?: boolean | undefined;
|
|
13
|
+
className?: string | undefined;
|
|
14
|
+
'className-skeleton'?: string | undefined;
|
|
15
|
+
variant?: import('./Chip').Variant | undefined;
|
|
16
|
+
'data-testid-skeleton'?: string | undefined;
|
|
17
|
+
} & import('react').RefAttributes<unknown>>;
|
|
6
18
|
tags: string[];
|
|
7
|
-
decorators: ((Story: import('@storybook/
|
|
19
|
+
decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
8
20
|
label: import('react').ReactNode;
|
|
9
21
|
loading?: boolean | undefined;
|
|
10
|
-
leftAdornment?: import('../Adornment/Adornment').
|
|
22
|
+
leftAdornment?: import('../Adornment/Adornment').AdornmentSlotProps | undefined;
|
|
11
23
|
'data-testid'?: string | undefined;
|
|
12
24
|
onClickContent?: (() => void) | undefined;
|
|
13
25
|
onClickRemove?: (() => void) | undefined;
|
|
@@ -24,10 +36,7 @@ export default meta;
|
|
|
24
36
|
type Story = StoryObj<typeof meta>;
|
|
25
37
|
export declare const Simple: Story;
|
|
26
38
|
export declare const Clickable: Story;
|
|
27
|
-
export declare const Disabled: Story;
|
|
28
39
|
export declare const ClickableWithRemove: Story;
|
|
29
|
-
export declare const ClickableOnlyRemove: Story;
|
|
30
40
|
export declare const FullDefault: Story;
|
|
31
41
|
export declare const FullOutlined: Story;
|
|
32
42
|
export declare const FullContained: Story;
|
|
33
|
-
export declare const FullContainedCustomIcon: Story;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { s as t } from "../../Dialog.module-
|
|
2
|
+
import { s as t } from "../../Dialog.module-DFEmFdYT.js";
|
|
3
3
|
const i = ({ children: s }) => /* @__PURE__ */ o("div", { className: t.dialog__actions, children: s });
|
|
4
4
|
export {
|
|
5
5
|
i as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Backdrop: import('react').ForwardRefExoticComponent<{
|
|
3
|
+
open?: boolean | undefined;
|
|
4
4
|
className: string;
|
|
5
5
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
6
6
|
export default Backdrop;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
);
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { s as e } from "../../Dialog.module-DFEmFdYT.js";
|
|
4
|
+
const i = t((o, r) => {
|
|
5
|
+
const { open: m, className: p, ...s } = o;
|
|
6
|
+
return /* @__PURE__ */ a("div", { className: e.dialog__backdrop, ref: r, ...s });
|
|
7
|
+
});
|
|
9
8
|
export {
|
|
10
|
-
|
|
9
|
+
i as default
|
|
11
10
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export interface CloseIconButtonProps {
|
|
2
2
|
handleOnClose: () => void;
|
|
3
|
+
className: string;
|
|
3
4
|
}
|
|
4
|
-
declare const CloseIconButton: ({ handleOnClose }: CloseIconButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const CloseIconButton: ({ handleOnClose, className }: CloseIconButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
export default CloseIconButton;
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Icon as
|
|
3
|
-
import { s as
|
|
4
|
-
import { B as
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
)
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { Icon as r } from "../Icon/Icon.js";
|
|
3
|
+
import { s as t } from "../../Dialog.module-DFEmFdYT.js";
|
|
4
|
+
import { B as a } from "../../Button-DiLqcAJG.js";
|
|
5
|
+
const d = ({ handleOnClose: i, className: o }) => {
|
|
6
|
+
const l = o != null ? t["dialog__close-icon "] + o : t["dialog__close-icon"];
|
|
7
|
+
return /* @__PURE__ */ s(
|
|
8
|
+
a,
|
|
9
|
+
{
|
|
10
|
+
className: l,
|
|
11
|
+
"aria-description": "Close dialog",
|
|
12
|
+
onClick: i,
|
|
13
|
+
"data-testid": "dialog-close-button",
|
|
14
|
+
children: /* @__PURE__ */ s(r, { icon: "circle-xmark", size: 32, color: "var(--gray-75)" })
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
};
|
|
15
18
|
export {
|
|
16
|
-
|
|
19
|
+
d as default
|
|
17
20
|
};
|
|
@@ -1,28 +1,22 @@
|
|
|
1
|
-
import { default as DialogTitle
|
|
2
|
-
import { default as Content
|
|
3
|
-
import { default as Actions
|
|
4
|
-
import { Icon } from '../Icon/Icon';
|
|
1
|
+
import { default as DialogTitle } from './DialogTitle';
|
|
2
|
+
import { default as Content } from './Content';
|
|
3
|
+
import { default as Actions } from './Actions';
|
|
5
4
|
import { ModalProps } from '@mui/base';
|
|
6
|
-
import {
|
|
5
|
+
import { JSXElementConstructor, ReactElement, ReactNode } from 'react';
|
|
7
6
|
|
|
8
7
|
export type CloseReason = 'backdropClick' | 'escapeKeyDown' | 'closeButtonClick';
|
|
9
|
-
export
|
|
8
|
+
export interface DialogProps extends ModalProps {
|
|
10
9
|
/** main content */
|
|
11
10
|
children: ReactElement<unknown, string | JSXElementConstructor<unknown>>;
|
|
12
11
|
/** display title label */
|
|
13
12
|
dialogTitle: ReactNode;
|
|
14
13
|
/** display subtitle */
|
|
15
14
|
dialogSubtitle?: ReactNode;
|
|
16
|
-
/**
|
|
17
|
-
|
|
15
|
+
/** if true, show skeleton */
|
|
16
|
+
isLoading?: boolean;
|
|
18
17
|
/** callback for when close is clicked */
|
|
19
|
-
onClose?: (
|
|
20
|
-
}
|
|
21
|
-
declare const Dialog: {
|
|
22
|
-
({ children, dialogTitle, dialogSubtitle, icon, onClose, ...props }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
Title: import('react').FunctionComponent<DialogTitleProps>;
|
|
24
|
-
Content: import('react').FunctionComponent<DialogContentProps>;
|
|
25
|
-
Actions: import('react').FunctionComponent<DialogActionProps>;
|
|
26
|
-
};
|
|
18
|
+
onClose?: () => void;
|
|
19
|
+
}
|
|
20
|
+
declare const Dialog: ({ children, dialogTitle, dialogSubtitle, isLoading, onClose, ...props }: DialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
21
|
export { Dialog, DialogTitle, Content, Actions };
|
|
28
22
|
export default Dialog;
|