@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
package/dist/Group-DspH8hyO.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import './assets/Group.css';
|
|
2
|
-
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as n } from "react";
|
|
4
|
-
import { c as u } from "./clsx-DB4S2d7J.js";
|
|
5
|
-
import { Icon as m } from "./components/Icon/Icon.js";
|
|
6
|
-
import { Typography as c } from "./components/Typography/Typography.js";
|
|
7
|
-
const p = "_toggle__input_hu6m0_1", h = "_toggle__label_hu6m0_11", t = {
|
|
8
|
-
toggle__input: p,
|
|
9
|
-
toggle__label: h,
|
|
10
|
-
"toggle__label--selected": "_toggle__label--selected_hu6m0_21",
|
|
11
|
-
"toggle__label--disabled": "_toggle__label--disabled_hu6m0_21",
|
|
12
|
-
"toggle-group__fieldset": "_toggle-group__fieldset_hu6m0_35",
|
|
13
|
-
"toggle-group__options": "_toggle-group__options_hu6m0_40",
|
|
14
|
-
"toggle-group__options-same-width": "_toggle-group__options-same-width_hu6m0_44",
|
|
15
|
-
"toggle-group__error": "_toggle-group__error_hu6m0_47"
|
|
16
|
-
}, y = n((e, r) => {
|
|
17
|
-
const { children: s, legend: _, error: g, equalWidth: a } = e, d = e["data-testid"] ? `${e["data-testid"]}-legend` : void 0, i = e["data-testid"] ? `${e["data-testid"]}-error` : void 0;
|
|
18
|
-
return /* @__PURE__ */ l("fieldset", { ref: r, "data-testid": e["data-testid"], className: t["toggle-group__fieldset"], children: [
|
|
19
|
-
_ && /* @__PURE__ */ o("legend", { "data-testid": d, children: _ }),
|
|
20
|
-
/* @__PURE__ */ o("div", { className: u(t["toggle-group__options"], a && t["toggle-group__options-same-width"]), children: s }),
|
|
21
|
-
g && /* @__PURE__ */ l(c, { className: t["toggle-group__error"], "data-testid": i, children: [
|
|
22
|
-
/* @__PURE__ */ o(m, { icon: "circle-exclamation" }),
|
|
23
|
-
g
|
|
24
|
-
] })
|
|
25
|
-
] });
|
|
26
|
-
});
|
|
27
|
-
export {
|
|
28
|
-
y as G,
|
|
29
|
-
t as s
|
|
30
|
-
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import './assets/SelectButton.css';
|
|
2
|
-
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as g } from "react";
|
|
4
|
-
import { c as d } from "./clsx-DB4S2d7J.js";
|
|
5
|
-
import { Icon as p } from "./components/Icon/Icon.js";
|
|
6
|
-
import { Typography as b } from "./components/Typography/Typography.js";
|
|
7
|
-
const q = "_select__listbox__option__text_1abqy_65", x = "_select__wrapper_1abqy_78", m = "_select__label_1abqy_84", f = "_select_1abqy_57", w = "_select__popup_1abqy_99", v = "_select__listbox_1abqy_65", S = "_select__listbox__option_1abqy_65", k = "_select__listbox__option__icon_1abqy_129", t = {
|
|
8
|
-
"u-typography-h1": "_u-typography-h1_1abqy_1",
|
|
9
|
-
"u-typography-h2": "_u-typography-h2_1abqy_8",
|
|
10
|
-
"u-typography-h3": "_u-typography-h3_1abqy_15",
|
|
11
|
-
"u-typography-h4": "_u-typography-h4_1abqy_22",
|
|
12
|
-
"u-typography-h5": "_u-typography-h5_1abqy_29",
|
|
13
|
-
"u-typography-h6": "_u-typography-h6_1abqy_36",
|
|
14
|
-
"u-typography-base": "_u-typography-base_1abqy_43",
|
|
15
|
-
"u-typography-base--xxl": "_u-typography-base--xxl_1abqy_49",
|
|
16
|
-
"u-typography-base--xl": "_u-typography-base--xl_1abqy_53",
|
|
17
|
-
"u-typography-base--lg": "_u-typography-base--lg_1abqy_57",
|
|
18
|
-
"select-button__text": "_select-button__text_1abqy_57",
|
|
19
|
-
"u-typography-base--sm": "_u-typography-base--sm_1abqy_61",
|
|
20
|
-
"u-typography-base--bold": "_u-typography-base--bold_1abqy_65",
|
|
21
|
-
select__listbox__option__text: q,
|
|
22
|
-
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_1abqy_68",
|
|
23
|
-
"u-typography-base--underlined": "_u-typography-base--underlined_1abqy_71",
|
|
24
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1abqy_74",
|
|
25
|
-
select__wrapper: x,
|
|
26
|
-
"select__wrapper--fit-content-width": "_select__wrapper--fit-content-width_1abqy_81",
|
|
27
|
-
select__label: m,
|
|
28
|
-
"messages-wrapper": "_messages-wrapper_1abqy_92",
|
|
29
|
-
select: f,
|
|
30
|
-
select__popup: w,
|
|
31
|
-
select__listbox: v,
|
|
32
|
-
select__listbox__option: S,
|
|
33
|
-
select__listbox__option__icon: k,
|
|
34
|
-
"select__listbox__option--disabled": "_select__listbox__option--disabled_1abqy_132",
|
|
35
|
-
"select__listbox__option--selected": "_select__listbox__option--selected_1abqy_132",
|
|
36
|
-
"select-button": "_select-button_1abqy_57",
|
|
37
|
-
"select-button--full-width": "_select-button--full-width_1abqy_167",
|
|
38
|
-
"select-button--placeholder": "_select-button--placeholder_1abqy_170",
|
|
39
|
-
"base-Select-popup": "_base-Select-popup_1abqy_176",
|
|
40
|
-
"select-button__icon": "_select-button__icon_1abqy_188",
|
|
41
|
-
"select-button--active": "_select-button--active_1abqy_191",
|
|
42
|
-
"select-button--error": "_select-button--error_1abqy_194",
|
|
43
|
-
"info-message": "_info-message_1abqy_223",
|
|
44
|
-
"error-message": "_error-message_1abqy_224"
|
|
45
|
-
}, C = g((_, y) => {
|
|
46
|
-
const { children: o, disabled: c, className: r, "data-testid": n, prefix: s, onClick: i, fullWidth: u, placeholder: h } = _, a = _["aria-expanded"];
|
|
47
|
-
return /* @__PURE__ */ l(
|
|
48
|
-
"button",
|
|
49
|
-
{
|
|
50
|
-
className: d(
|
|
51
|
-
r,
|
|
52
|
-
a ? t["select-button--active"] : "",
|
|
53
|
-
t["select-button"],
|
|
54
|
-
u && t["select-button--full-width"],
|
|
55
|
-
String(h) === String(o) && t["select-button--placeholder"]
|
|
56
|
-
),
|
|
57
|
-
type: "button",
|
|
58
|
-
onClick: i,
|
|
59
|
-
disabled: c,
|
|
60
|
-
"data-testid": n,
|
|
61
|
-
ref: y,
|
|
62
|
-
children: [
|
|
63
|
-
/* @__PURE__ */ l("span", { className: t["select-button__text"], children: [
|
|
64
|
-
s && /* @__PURE__ */ e(b, { variant: "base-lg", children: s }),
|
|
65
|
-
/* @__PURE__ */ e(b, { variant: "base-lg", children: o })
|
|
66
|
-
] }),
|
|
67
|
-
/* @__PURE__ */ e("span", { className: t["select-button__icon"], children: a ? /* @__PURE__ */ e(p, { icon: "chevron-up" }) : /* @__PURE__ */ e(p, { icon: "chevron-down" }) })
|
|
68
|
-
]
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
});
|
|
72
|
-
export {
|
|
73
|
-
C as S,
|
|
74
|
-
t as s
|
|
75
|
-
};
|
package/dist/Toggle-MfR7l8Wn.js
DELETED
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import './assets/Toggle2.css';
|
|
2
|
-
import { jsx as i, jsxs as k } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as u } from "react";
|
|
4
|
-
import { c as l } from "./clsx-DB4S2d7J.js";
|
|
5
|
-
import { Icon as C } from "./components/Icon/Icon.js";
|
|
6
|
-
import { Typography as N } from "./components/Typography/Typography.js";
|
|
7
|
-
import "./components/Input/Input.js";
|
|
8
|
-
import "./components/Avatar/Avatar.js";
|
|
9
|
-
import "./components/Button/Button.js";
|
|
10
|
-
import { Adornment as v } from "./components/Adornment/Adornment.js";
|
|
11
|
-
import "./components/Dialog/Dialog.js";
|
|
12
|
-
import { Skeleton as f } from "./components/Skeleton/Skeleton.js";
|
|
13
|
-
import "./components/IconButton/IconButton.js";
|
|
14
|
-
import "./components/InputSearch/InputSearch.js";
|
|
15
|
-
import "./components/Select/Select.js";
|
|
16
|
-
import "./components/Popover/Popover.js";
|
|
17
|
-
import "./components/Table/Table.js";
|
|
18
|
-
import "./components/Tabs/Tabs.js";
|
|
19
|
-
import { s as y } from "./Group-DspH8hyO.js";
|
|
20
|
-
import "./contexts/SnackbarProvider/SnackbarProvider.js";
|
|
21
|
-
import { B as x } from "./Button-BAljjMv3.js";
|
|
22
|
-
const I = "_chip_1wvod_61", P = "_chip__adornment_1wvod_116", z = "_chip__remove_1wvod_121", n = {
|
|
23
|
-
"u-typography-h1": "_u-typography-h1_1wvod_1",
|
|
24
|
-
"u-typography-h2": "_u-typography-h2_1wvod_8",
|
|
25
|
-
"u-typography-h3": "_u-typography-h3_1wvod_15",
|
|
26
|
-
"u-typography-h4": "_u-typography-h4_1wvod_22",
|
|
27
|
-
"u-typography-h5": "_u-typography-h5_1wvod_29",
|
|
28
|
-
"u-typography-h6": "_u-typography-h6_1wvod_36",
|
|
29
|
-
"u-typography-base": "_u-typography-base_1wvod_43",
|
|
30
|
-
"u-typography-base--xxl": "_u-typography-base--xxl_1wvod_49",
|
|
31
|
-
"u-typography-base--xl": "_u-typography-base--xl_1wvod_53",
|
|
32
|
-
"u-typography-base--lg": "_u-typography-base--lg_1wvod_57",
|
|
33
|
-
"u-typography-base--sm": "_u-typography-base--sm_1wvod_61",
|
|
34
|
-
chip: I,
|
|
35
|
-
"u-typography-base--bold": "_u-typography-base--bold_1wvod_65",
|
|
36
|
-
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_1wvod_68",
|
|
37
|
-
"u-typography-base--underlined": "_u-typography-base--underlined_1wvod_71",
|
|
38
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1wvod_74",
|
|
39
|
-
"chip--button": "_chip--button_1wvod_90",
|
|
40
|
-
"chip--outlined": "_chip--outlined_1wvod_104",
|
|
41
|
-
"chip--contained": "_chip--contained_1wvod_110",
|
|
42
|
-
chip__adornment: P,
|
|
43
|
-
chip__remove: z,
|
|
44
|
-
"chip__remove--disabled": "_chip__remove--disabled_1wvod_133",
|
|
45
|
-
"chip-loading": "_chip-loading_1wvod_137"
|
|
46
|
-
}, S = u((t, d) => {
|
|
47
|
-
const { children: _, onClickContent: o, disabled: r, className: a, variant: s } = t;
|
|
48
|
-
let e = l(
|
|
49
|
-
n.chip,
|
|
50
|
-
{ [n["chip--outlined"]]: s === "outlined" },
|
|
51
|
-
{ [n["chip--contained"]]: s === "contained" },
|
|
52
|
-
a
|
|
53
|
-
);
|
|
54
|
-
return o ? (e += ` ${n["chip--button"]}`, /* @__PURE__ */ i(
|
|
55
|
-
x,
|
|
56
|
-
{
|
|
57
|
-
onClick: o,
|
|
58
|
-
disabled: r,
|
|
59
|
-
"data-testid": t["data-testid"],
|
|
60
|
-
ref: d,
|
|
61
|
-
className: e,
|
|
62
|
-
children: _
|
|
63
|
-
}
|
|
64
|
-
)) : /* @__PURE__ */ i("span", { "data-testid": t["data-testid"], ref: d, className: e, children: _ });
|
|
65
|
-
}), X = u((t, d) => {
|
|
66
|
-
const {
|
|
67
|
-
label: _,
|
|
68
|
-
className: o,
|
|
69
|
-
onClickContent: r,
|
|
70
|
-
leftAdornment: a,
|
|
71
|
-
loading: s = !1,
|
|
72
|
-
disabled: e = !1,
|
|
73
|
-
variant: g = "default",
|
|
74
|
-
onClickRemove: m
|
|
75
|
-
} = t;
|
|
76
|
-
if (s)
|
|
77
|
-
return /* @__PURE__ */ i(
|
|
78
|
-
f,
|
|
79
|
-
{
|
|
80
|
-
className: l(n["chip-loading"], t["className-skeleton"]),
|
|
81
|
-
"data-testid": t["data-testid-skeleton"]
|
|
82
|
-
}
|
|
83
|
-
);
|
|
84
|
-
const b = l(a == null ? void 0 : a.className, n.chip__adornment), w = a != null && a.customIcon ? { ...a, className: b } : { ...a, disabled: e, className: b };
|
|
85
|
-
return /* @__PURE__ */ k(
|
|
86
|
-
S,
|
|
87
|
-
{
|
|
88
|
-
ref: d,
|
|
89
|
-
"data-testid": t["data-testid"],
|
|
90
|
-
onClickContent: r,
|
|
91
|
-
disabled: e,
|
|
92
|
-
className: o,
|
|
93
|
-
variant: g,
|
|
94
|
-
children: [
|
|
95
|
-
a && /* @__PURE__ */ i(v, { ...w }),
|
|
96
|
-
_,
|
|
97
|
-
m && /* @__PURE__ */ i(
|
|
98
|
-
"span",
|
|
99
|
-
{
|
|
100
|
-
className: l(n.chip__remove, { [n["chip__remove--disabled"]]: e }),
|
|
101
|
-
role: "button",
|
|
102
|
-
tabIndex: e ? -1 : 0,
|
|
103
|
-
"aria-label": "remove",
|
|
104
|
-
onClick: (c) => {
|
|
105
|
-
c == null || c.stopPropagation(), c == null || c.nativeEvent.stopImmediatePropagation(), m();
|
|
106
|
-
},
|
|
107
|
-
"aria-disabled": e,
|
|
108
|
-
children: /* @__PURE__ */ i(C, { icon: "circle-xmark", size: "1.125rem", color: "rgba(var(--gray-95-rgb), 0.45)" })
|
|
109
|
-
}
|
|
110
|
-
)
|
|
111
|
-
]
|
|
112
|
-
}
|
|
113
|
-
);
|
|
114
|
-
}), h = {
|
|
115
|
-
"row-item": "_row-item_8z1a0_1",
|
|
116
|
-
"row-item--clickable": "_row-item--clickable_8z1a0_13",
|
|
117
|
-
"row-item--disabled": "_row-item--disabled_8z1a0_19",
|
|
118
|
-
"row-item__content": "_row-item__content_8z1a0_22"
|
|
119
|
-
}, Y = u((t, d) => {
|
|
120
|
-
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 = {
|
|
121
|
-
onClick: (p) => {
|
|
122
|
-
r || a && a(p);
|
|
123
|
-
},
|
|
124
|
-
tabIndex: 0,
|
|
125
|
-
"aria-label": e,
|
|
126
|
-
role: "button"
|
|
127
|
-
}, c = o != null && o.customIcon ? o : { size: "1rem", ...o };
|
|
128
|
-
return /* @__PURE__ */ k(
|
|
129
|
-
"div",
|
|
130
|
-
{
|
|
131
|
-
"data-testid": t["data-testid"],
|
|
132
|
-
className: l(
|
|
133
|
-
h["row-item"],
|
|
134
|
-
a && h["row-item--clickable"],
|
|
135
|
-
a && r && h["row-item--disabled"],
|
|
136
|
-
g
|
|
137
|
-
),
|
|
138
|
-
...!!a && w,
|
|
139
|
-
ref: d,
|
|
140
|
-
children: [
|
|
141
|
-
o && /* @__PURE__ */ i(v, { ...c, className: m, disabled: r }),
|
|
142
|
-
/* @__PURE__ */ i("span", { className: l(h["row-item__content"]), children: _ }),
|
|
143
|
-
s && /* @__PURE__ */ i(
|
|
144
|
-
"div",
|
|
145
|
-
{
|
|
146
|
-
onClick: (p) => {
|
|
147
|
-
p == null || p.stopPropagation(), p == null || p.nativeEvent.stopImmediatePropagation();
|
|
148
|
-
},
|
|
149
|
-
children: s
|
|
150
|
-
}
|
|
151
|
-
)
|
|
152
|
-
]
|
|
153
|
-
}
|
|
154
|
-
);
|
|
155
|
-
}), Z = u((t, d) => {
|
|
156
|
-
const { text: _, isSelected: o = !1, value: r, onChange: a, disabled: s } = t;
|
|
157
|
-
return /* @__PURE__ */ k(
|
|
158
|
-
"label",
|
|
159
|
-
{
|
|
160
|
-
className: l(
|
|
161
|
-
[y.toggle__label],
|
|
162
|
-
o && y["toggle__label--selected"],
|
|
163
|
-
s && y["toggle__label--disabled"]
|
|
164
|
-
),
|
|
165
|
-
"data-testid": t["data-testid"],
|
|
166
|
-
children: [
|
|
167
|
-
/* @__PURE__ */ i(
|
|
168
|
-
"input",
|
|
169
|
-
{
|
|
170
|
-
className: l([y.toggle__input]),
|
|
171
|
-
type: "radio",
|
|
172
|
-
ref: d,
|
|
173
|
-
value: r.toString(),
|
|
174
|
-
onChange: () => a(r),
|
|
175
|
-
role: "radio",
|
|
176
|
-
checked: o,
|
|
177
|
-
"aria-checked": o,
|
|
178
|
-
disabled: s
|
|
179
|
-
}
|
|
180
|
-
),
|
|
181
|
-
/* @__PURE__ */ i(N, { bold: !0, children: _ })
|
|
182
|
-
]
|
|
183
|
-
}
|
|
184
|
-
);
|
|
185
|
-
});
|
|
186
|
-
export {
|
|
187
|
-
X as C,
|
|
188
|
-
Y as R,
|
|
189
|
-
Z as T
|
|
190
|
-
};
|
package/dist/assets/Alert.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._u-typography-h1_9p2mz_1{font-size:var(--heading-font-size-1);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-1);margin:0}._u-typography-h2_9p2mz_8{font-size:var(--heading-font-size-2);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-2);margin:0}._u-typography-h3_9p2mz_15{font-size:var(--heading-font-size-3);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-3);margin:0}._u-typography-h4_9p2mz_22{font-size:var(--heading-font-size-4);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-4);margin:0}._u-typography-h5_9p2mz_29{font-size:var(--heading-font-size-5);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-5);margin:0}._u-typography-h6_9p2mz_36{font-size:var(--heading-font-size-6);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-6);margin:0}._u-typography-base_9p2mz_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_9p2mz_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_9p2mz_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_9p2mz_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_9p2mz_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_9p2mz_65{font-weight:var(--base-bold)}._u-typography-base--strikethrough_9p2mz_68{text-decoration:line-through}._u-typography-base--underlined_9p2mz_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_9p2mz_74{text-decoration:underline line-through}._container_9p2mz_78{display:flex;padding:16px;border:1px solid;border-radius:6px}._container--success_9p2mz_84{background-color:var(--green-1);border-color:var(--green-3)}._container--warning_9p2mz_88{background-color:var(--gold-1);border-color:var(--gold-3)}._container--error_9p2mz_92{background-color:var(--error-background);border-color:var(--error-border)}._container--info_9p2mz_96{background-color:var(--blue-1);border-color:var(--blue-3)}._container--default_9p2mz_100{background-color:var(--white-100);border-color:var(--border)}._container--close-icon_9p2mz_104{justify-self:flex-end;margin-left:16px;cursor:pointer}._container--content_9p2mz_109{width:100%}
|
package/dist/assets/Avatar.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._u-typography-h1_4n12g_1{font-size:var(--heading-font-size-1);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-1);margin:0}._u-typography-h2_4n12g_8{font-size:var(--heading-font-size-2);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-2);margin:0}._u-typography-h3_4n12g_15{font-size:var(--heading-font-size-3);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-3);margin:0}._u-typography-h4_4n12g_22{font-size:var(--heading-font-size-4);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-4);margin:0}._u-typography-h5_4n12g_29{font-size:var(--heading-font-size-5);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-5);margin:0}._u-typography-h6_4n12g_36{font-size:var(--heading-font-size-6);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-6);margin:0}._u-typography-base_4n12g_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_4n12g_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_4n12g_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_4n12g_57,._avatar_4n12g_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_4n12g_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_4n12g_65{font-weight:var(--base-bold)}._u-typography-base--strikethrough_4n12g_68{text-decoration:line-through}._u-typography-base--underlined_4n12g_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_4n12g_74{text-decoration:underline line-through}._avatar_4n12g_57{display:inline-flex;align-items:center;justify-content:center;background-color:var(--gray-5);overflow:hidden;position:relative}._avatar--large_4n12g_86{width:40px;height:40px}._avatar--default_4n12g_90{width:32px;height:32px}._avatar--small_4n12g_94{width:24px;height:24px}._avatar--custom_4n12g_98{width:var(--avatar-custom-size);height:var(--avatar-custom-size)}._avatar--circle_4n12g_102{border-radius:50%}._avatar--square_4n12g_105{border-radius:6px}._avatar__icon_4n12g_108,._avatar__image_4n12g_108,._avatar__text_4n12g_108{display:flex;align-items:center;justify-content:center;width:100%;height:100%}._avatar__image_4n12g_108 img{width:100%;height:100%;object-fit:cover}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._u-typography-h1_he0z3_1{font-size:var(--heading-font-size-1);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-1);margin:0}._u-typography-h2_he0z3_8{font-size:var(--heading-font-size-2);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-2);margin:0}._u-typography-h3_he0z3_15{font-size:var(--heading-font-size-3);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-3);margin:0}._u-typography-h4_he0z3_22{font-size:var(--heading-font-size-4);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-4);margin:0}._u-typography-h5_he0z3_29{font-size:var(--heading-font-size-5);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-5);margin:0}._u-typography-h6_he0z3_36{font-size:var(--heading-font-size-6);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-6);margin:0}._u-typography-base_he0z3_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_he0z3_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_he0z3_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_he0z3_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_he0z3_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_he0z3_65{font-weight:var(--base-bold)}._u-typography-base--strikethrough_he0z3_68{text-decoration:line-through}._u-typography-base--underlined_he0z3_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_he0z3_74{text-decoration:underline line-through}._container_he0z3_78{display:flex;flex-direction:column}._container--text_he0z3_82{opacity:88%}._container--inline_he0z3_85{flex-direction:row;gap:.5rem}
|
package/dist/assets/Popover.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._popover_n95k7_1{background-color:#fff;border-radius:.375rem;box-shadow:0 0 10px #0003}._popover-header_n95k7_6{padding:1rem .5rem;border-bottom:1px solid var(--gray-5)}._popover-footer_n95k7_10{padding:1rem .5rem;border-top:1px solid var(--gray-5)}._popover-body_n95k7_14{padding:1rem .5rem}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._radio_1t160_1{display:flex;align-items:center;cursor:pointer}._radio_1t160_1 input[type=radio]{display:none}._radio--label_1t160_9{margin-left:8px}._radio--label__disabled_1t160_12{color:var(--gray-95);opacity:.25}._radio--input_1t160_16{display:flex;align-items:center;justify-content:center;width:16px;height:16px;color:var(--accent);border:solid 1px var(--border);border-radius:8px}._radio--input__disabled_1t160_26{color:var(--gray-95);opacity:.25}._radio--input_1t160_16:not(._radio--input__disabled_1t160_26):hover{border:solid 1px var(--accent)}._radio--input_1t160_16:not(._radio--input__disabled_1t160_26):focus{border:solid 1px var(--accent);box-shadow:0 0 0 2px var(--accent)}._radio--disabled_1t160_37{cursor:default}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._container_hgp0p_1{position:relative;padding:1.5rem 1rem;background:var(--white-100);border:1px solid var(--gray-50);border-radius:.375rem}._container_hgp0p_1 ._chip-item-wrapper_hgp0p_8{display:flex;gap:.5rem}._container_hgp0p_1:not(first-child){min-height:4.125rem;padding:1rem;margin-top:1.5rem}._container_hgp0p_1 ._label_hgp0p_17{position:absolute;top:-1px;left:1.18rem;display:flex;align-items:center;justify-content:center;padding:0 .25rem;font-family:Lato;font-size:.6875rem;font-style:normal;font-weight:400;line-height:1rem;color:var(--gray-75);background:var(--white-100);transform:translateY(-50%)}._chips-container_hgp0p_35{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}._chip-content_hgp0p_42{display:block;font-family:Lato;font-size:.6875rem;font-style:normal;line-height:1rem;color:var(--gray-90)}._chip-label_hgp0p_51{font-weight:700}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._stepper-navigator_27f6m_1{display:flex;justify-content:space-between;padding:1rem 0}._stepper-navigator_27f6m_1>span{display:flex;gap:1rem}._cancel-button_27f6m_11{color:var(--accent-alert-light);background-color:transparent}._cancel-button_27f6m_11:hover:not(:disabled){color:rgba(var(--alert-dark-rgb),.75);background-color:var(--gray-5)}._previous-button_27f6m_20{color:var(--gray-75);background-color:transparent;border:solid 1px var(--gray-75)}._previous-button_27f6m_20:disabled{border-color:transparent}._previous-button_27f6m_20:hover:not(:disabled){color:rgba(var(--gray-75-rgb),.75);background-color:var(--gray-5);border-color:rgba(var(--gray-75),.75)}._previous-button_27f6m_20,._cancel-button_27f6m_11{min-width:6.25rem}._next-button_27f6m_39,._finish-button_27f6m_40{min-width:15rem}._previous-button_27f6m_20,._cancel-button_27f6m_11,._next-button_27f6m_39,._finish-button_27f6m_40{display:flex;gap:.25rem;align-items:center;justify-content:space-between;padding:0 1rem;font-size:.875rem}._previous-button_27f6m_20>*,._cancel-button_27f6m_11>*,._next-button_27f6m_39>*,._finish-button_27f6m_40>*{display:inline-flex;flex:1;align-items:center;justify-content:center}._previous-button_27f6m_20>*:nth-child(1),._cancel-button_27f6m_11>*:nth-child(1),._next-button_27f6m_39>*:nth-child(1),._finish-button_27f6m_40>*:nth-child(1){justify-content:flex-start}._previous-button_27f6m_20>*:nth-child(3),._cancel-button_27f6m_11>*:nth-child(3),._next-button_27f6m_39>*:nth-child(3),._finish-button_27f6m_40>*:nth-child(3){justify-content:flex-end}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
2
|
-
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: (props: import('./Adornment').AdornmentProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
tags: string[];
|
|
7
|
-
parameters: {
|
|
8
|
-
layout: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export default meta;
|
|
12
|
-
type Story = StoryObj<typeof meta>;
|
|
13
|
-
export declare const WithMarolaIcon: Story;
|
|
14
|
-
export declare const WithCustomIcon: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
type AlertType = 'success' | 'error' | 'info' | 'warning' | 'default';
|
|
4
|
-
type AlertProps = {
|
|
5
|
-
type?: AlertType;
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
'data-testid'?: string;
|
|
8
|
-
onClose?: () => void;
|
|
9
|
-
};
|
|
10
|
-
export declare const Alert: ({ type, children, "data-testid": dataTestId, onClose }: AlertProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import '../../assets/Alert.css';
|
|
2
|
-
import { jsxs as _, jsx as a } from "react/jsx-runtime";
|
|
3
|
-
import { c as y } from "../../clsx-DB4S2d7J.js";
|
|
4
|
-
import { Icon as s } from "../Icon/Icon.js";
|
|
5
|
-
const h = "_container_9p2mz_78", t = {
|
|
6
|
-
"u-typography-h1": "_u-typography-h1_9p2mz_1",
|
|
7
|
-
"u-typography-h2": "_u-typography-h2_9p2mz_8",
|
|
8
|
-
"u-typography-h3": "_u-typography-h3_9p2mz_15",
|
|
9
|
-
"u-typography-h4": "_u-typography-h4_9p2mz_22",
|
|
10
|
-
"u-typography-h5": "_u-typography-h5_9p2mz_29",
|
|
11
|
-
"u-typography-h6": "_u-typography-h6_9p2mz_36",
|
|
12
|
-
"u-typography-base": "_u-typography-base_9p2mz_43",
|
|
13
|
-
"u-typography-base--xxl": "_u-typography-base--xxl_9p2mz_49",
|
|
14
|
-
"u-typography-base--xl": "_u-typography-base--xl_9p2mz_53",
|
|
15
|
-
"u-typography-base--lg": "_u-typography-base--lg_9p2mz_57",
|
|
16
|
-
"u-typography-base--sm": "_u-typography-base--sm_9p2mz_61",
|
|
17
|
-
"u-typography-base--bold": "_u-typography-base--bold_9p2mz_65",
|
|
18
|
-
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_9p2mz_68",
|
|
19
|
-
"u-typography-base--underlined": "_u-typography-base--underlined_9p2mz_71",
|
|
20
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_9p2mz_74",
|
|
21
|
-
container: h,
|
|
22
|
-
"container--success": "_container--success_9p2mz_84",
|
|
23
|
-
"container--warning": "_container--warning_9p2mz_88",
|
|
24
|
-
"container--error": "_container--error_9p2mz_92",
|
|
25
|
-
"container--info": "_container--info_9p2mz_96",
|
|
26
|
-
"container--default": "_container--default_9p2mz_100",
|
|
27
|
-
"container--close-icon": "_container--close-icon_9p2mz_104",
|
|
28
|
-
"container--content": "_container--content_9p2mz_109"
|
|
29
|
-
}, g = ({ type: r = "default", children: e, "data-testid": p, onClose: o }) => {
|
|
30
|
-
const n = y(t.container, t[`container--${r}`]);
|
|
31
|
-
return /* @__PURE__ */ _("div", { "data-testid": p, className: n, children: [
|
|
32
|
-
/* @__PURE__ */ a("div", { className: t["container--content"], children: e }),
|
|
33
|
-
!!o && /* @__PURE__ */ a(
|
|
34
|
-
"div",
|
|
35
|
-
{
|
|
36
|
-
"data-testid": `${p}-close-button`,
|
|
37
|
-
onClick: () => o(),
|
|
38
|
-
className: t["container--close-icon"],
|
|
39
|
-
children: /* @__PURE__ */ a(s, { icon: "xmark" })
|
|
40
|
-
}
|
|
41
|
-
)
|
|
42
|
-
] });
|
|
43
|
-
};
|
|
44
|
-
export {
|
|
45
|
-
g as Alert
|
|
46
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
2
|
-
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: ({ type, children, "data-testid": dataTestId, onClose }: {
|
|
6
|
-
type?: ("default" | "error" | "success" | "info" | "warning") | undefined;
|
|
7
|
-
children: import('react').ReactNode;
|
|
8
|
-
'data-testid'?: string | undefined;
|
|
9
|
-
onClose?: (() => void) | undefined;
|
|
10
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
tags: string[];
|
|
12
|
-
parameters: {
|
|
13
|
-
layout: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export default meta;
|
|
17
|
-
type Story = StoryObj<typeof meta>;
|
|
18
|
-
export declare const General: Story;
|
|
19
|
-
export declare const Success: Story;
|
|
20
|
-
export declare const Error: Story;
|
|
21
|
-
export declare const Warning: Story;
|
|
22
|
-
export declare const Info: Story;
|
|
23
|
-
export declare const WithCloseButton: Story;
|
|
24
|
-
export declare const WithCustomAction: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
type AvatarType = 'icon' | 'image' | 'text';
|
|
4
|
-
type AvatarSize = 'default' | 'large' | 'small' | number;
|
|
5
|
-
type AvatarShape = 'circle' | 'square';
|
|
6
|
-
type AvatarCoreProps = {
|
|
7
|
-
type: AvatarType;
|
|
8
|
-
size?: AvatarSize;
|
|
9
|
-
shape?: AvatarShape;
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
className?: string;
|
|
12
|
-
'data-testid'?: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const Avatar: import('react').ForwardRefExoticComponent<AvatarCoreProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
15
|
-
export {};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import '../../assets/Avatar.css';
|
|
2
|
-
import { jsxs as v, jsx as _ } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as c, useMemo as y } from "react";
|
|
4
|
-
import { c as d } from "../../clsx-DB4S2d7J.js";
|
|
5
|
-
const m = "_avatar_4n12g_57", b = "_avatar__icon_4n12g_108", x = "_avatar__image_4n12g_108", f = "_avatar__text_4n12g_108", t = {
|
|
6
|
-
"u-typography-h1": "_u-typography-h1_4n12g_1",
|
|
7
|
-
"u-typography-h2": "_u-typography-h2_4n12g_8",
|
|
8
|
-
"u-typography-h3": "_u-typography-h3_4n12g_15",
|
|
9
|
-
"u-typography-h4": "_u-typography-h4_4n12g_22",
|
|
10
|
-
"u-typography-h5": "_u-typography-h5_4n12g_29",
|
|
11
|
-
"u-typography-h6": "_u-typography-h6_4n12g_36",
|
|
12
|
-
"u-typography-base": "_u-typography-base_4n12g_43",
|
|
13
|
-
"u-typography-base--xxl": "_u-typography-base--xxl_4n12g_49",
|
|
14
|
-
"u-typography-base--xl": "_u-typography-base--xl_4n12g_53",
|
|
15
|
-
"u-typography-base--lg": "_u-typography-base--lg_4n12g_57",
|
|
16
|
-
avatar: m,
|
|
17
|
-
"u-typography-base--sm": "_u-typography-base--sm_4n12g_61",
|
|
18
|
-
"u-typography-base--bold": "_u-typography-base--bold_4n12g_65",
|
|
19
|
-
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_4n12g_68",
|
|
20
|
-
"u-typography-base--underlined": "_u-typography-base--underlined_4n12g_71",
|
|
21
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_4n12g_74",
|
|
22
|
-
"avatar--large": "_avatar--large_4n12g_86",
|
|
23
|
-
"avatar--default": "_avatar--default_4n12g_90",
|
|
24
|
-
"avatar--small": "_avatar--small_4n12g_94",
|
|
25
|
-
"avatar--custom": "_avatar--custom_4n12g_98",
|
|
26
|
-
"avatar--circle": "_avatar--circle_4n12g_102",
|
|
27
|
-
"avatar--square": "_avatar--square_4n12g_105",
|
|
28
|
-
avatar__icon: b,
|
|
29
|
-
avatar__image: x,
|
|
30
|
-
avatar__text: f
|
|
31
|
-
}, $ = c((h, n) => {
|
|
32
|
-
const { type: e, size: a = "default", shape: g = "circle", children: s, className: o, "data-testid": u } = h, r = typeof a == "number", i = y(
|
|
33
|
-
() => ({
|
|
34
|
-
width: r ? a : void 0,
|
|
35
|
-
height: r ? a : void 0,
|
|
36
|
-
"--avatar-custom-size": r ? `${a}px` : void 0
|
|
37
|
-
}),
|
|
38
|
-
[a, r]
|
|
39
|
-
), p = r ? "custom" : a, l = y(
|
|
40
|
-
() => d(t.avatar, t[`avatar--${p}`], t[`avatar--${g}`], o),
|
|
41
|
-
[p, g, o]
|
|
42
|
-
);
|
|
43
|
-
return /* @__PURE__ */ v("div", { ref: n, style: i, className: l, "data-testid": u, children: [
|
|
44
|
-
e === "icon" && /* @__PURE__ */ _("span", { className: t.avatar__icon, children: s }),
|
|
45
|
-
e === "image" && /* @__PURE__ */ _("div", { className: t.avatar__image, children: /* @__PURE__ */ _("img", { src: s, alt: "avatar" }) }),
|
|
46
|
-
e === "text" && /* @__PURE__ */ _("span", { className: t.avatar__text, children: s })
|
|
47
|
-
] });
|
|
48
|
-
});
|
|
49
|
-
export {
|
|
50
|
-
$ as Avatar
|
|
51
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
2
|
-
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: import('react').ForwardRefExoticComponent<{
|
|
6
|
-
type: "icon" | "image" | "text";
|
|
7
|
-
size?: (number | "default" | "small" | "large") | undefined;
|
|
8
|
-
shape?: ("circle" | "square") | undefined;
|
|
9
|
-
children: import('react').ReactNode;
|
|
10
|
-
className?: string | undefined;
|
|
11
|
-
'data-testid'?: string | undefined;
|
|
12
|
-
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
|
-
tags: string[];
|
|
14
|
-
parameters: {
|
|
15
|
-
layout: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export default meta;
|
|
19
|
-
type Story = StoryObj<typeof meta>;
|
|
20
|
-
export declare const Icon: Story;
|
|
21
|
-
export declare const Image: Story;
|
|
22
|
-
export declare const Text: Story;
|
|
23
|
-
export declare const CustomSize: Story;
|
|
24
|
-
export declare const LargeSquare: Story;
|
|
25
|
-
export declare const SmallCircle: Story;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface ConfirmationDialogProps {
|
|
4
|
-
open: boolean;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
title?: ReactNode;
|
|
7
|
-
subtitle?: ReactNode;
|
|
8
|
-
confirmLabel: string;
|
|
9
|
-
cancelLabel: string;
|
|
10
|
-
content?: ReactNode;
|
|
11
|
-
confirmAction: () => void;
|
|
12
|
-
cancelAction: () => void;
|
|
13
|
-
}
|
|
14
|
-
export declare const ConfirmationDialog: ({ open, onClose, title, subtitle, content, cancelAction, confirmAction, confirmLabel, cancelLabel, }: ConfirmationDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as i, Fragment as f } from "react/jsx-runtime";
|
|
2
|
-
import { Button as n } from "../Button/Button.js";
|
|
3
|
-
import { Dialog as s } from "../Dialog/Dialog.js";
|
|
4
|
-
import { Typography as t } from "../Typography/Typography.js";
|
|
5
|
-
import g from "../Dialog/Content.js";
|
|
6
|
-
import C from "../Dialog/Actions.js";
|
|
7
|
-
const T = ({
|
|
8
|
-
open: l,
|
|
9
|
-
onClose: e,
|
|
10
|
-
title: m,
|
|
11
|
-
subtitle: c,
|
|
12
|
-
content: r,
|
|
13
|
-
cancelAction: d,
|
|
14
|
-
confirmAction: a,
|
|
15
|
-
confirmLabel: h,
|
|
16
|
-
cancelLabel: p
|
|
17
|
-
}) => /* @__PURE__ */ o(
|
|
18
|
-
s,
|
|
19
|
-
{
|
|
20
|
-
open: l,
|
|
21
|
-
dialogTitle: m,
|
|
22
|
-
dialogSubtitle: c,
|
|
23
|
-
onClose: () => {
|
|
24
|
-
e();
|
|
25
|
-
},
|
|
26
|
-
children: /* @__PURE__ */ i(f, { children: [
|
|
27
|
-
r && /* @__PURE__ */ o(g, { children: r }),
|
|
28
|
-
/* @__PURE__ */ i(C, { children: [
|
|
29
|
-
/* @__PURE__ */ o(n, { variant: "secondary", onClick: () => d(), children: /* @__PURE__ */ o(t, { children: p }) }),
|
|
30
|
-
/* @__PURE__ */ o(n, { onClick: () => a(), children: /* @__PURE__ */ o(t, { children: h }) })
|
|
31
|
-
] })
|
|
32
|
-
] })
|
|
33
|
-
}
|
|
34
|
-
);
|
|
35
|
-
export {
|
|
36
|
-
T as ConfirmationDialog
|
|
37
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ConfirmationDialogProps } from '../../main';
|
|
2
|
-
import { StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
declare const meta: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: ({ open, onClose, title, subtitle, content, cancelAction, confirmAction, confirmLabel, cancelLabel, }: ConfirmationDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
tags: string[];
|
|
8
|
-
decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
9
|
-
open: boolean;
|
|
10
|
-
onClose: () => void;
|
|
11
|
-
title?: import('react').ReactNode;
|
|
12
|
-
subtitle?: import('react').ReactNode;
|
|
13
|
-
confirmLabel: string;
|
|
14
|
-
cancelLabel: string;
|
|
15
|
-
content?: import('react').ReactNode;
|
|
16
|
-
confirmAction: () => void;
|
|
17
|
-
cancelAction: () => void;
|
|
18
|
-
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
19
|
-
};
|
|
20
|
-
export default meta;
|
|
21
|
-
type Story = StoryObj<typeof meta>;
|
|
22
|
-
export declare const Simple: Story;
|
|
23
|
-
export declare const WithContent: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|