@pismo/marola 1.0.0-beta.47 → 1.0.0-beta.49
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/SelectButton-B38avP9u.js +75 -0
- package/dist/assets/Input.css +1 -1
- package/dist/assets/SelectButton.css +1 -1
- package/dist/components/Chip/Chip.stories.d.ts +1 -1
- package/dist/components/Dialog/Dialog.stories.d.ts +1 -1
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -1
- package/dist/components/Icon/Icon.js +98 -67
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/Input/Input.js +108 -108
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.d.ts +1 -1
- package/dist/components/Popover/Popover.stories.d.ts +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/SelectButton.d.ts +1 -0
- package/dist/components/Select/SelectButton.js +1 -1
- package/dist/components/Snackbar/Snackbar.stories.d.ts +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -1
- package/dist/components/Typography/Typography.stories.d.ts +1 -1
- package/dist/contexts/SnackbarProvider/SnackbarProvider.stories.d.ts +1 -1
- package/package.json +1 -1
- package/dist/SelectButton-rvRI0bTU.js +0 -73
|
@@ -0,0 +1,75 @@
|
|
|
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/assets/Input.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._u-typography-
|
|
1
|
+
._u-typography-h1_3n32h_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_3n32h_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_3n32h_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_3n32h_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_3n32h_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_3n32h_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_3n32h_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_3n32h_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_3n32h_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_3n32h_57,._input__input-el_3n32h_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_3n32h_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_3n32h_65,._input__input-el_3n32h_57{font-weight:var(--base-bold)}._u-typography-base--strikethrough_3n32h_68{text-decoration:line-through}._u-typography-base--underlined_3n32h_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_3n32h_74{text-decoration:underline line-through}._input_3n32h_57{position:relative}._input_3n32h_57:has(._input__messages-wrapper_3n32h_81:not(:empty)){padding-bottom:1.6875rem}._input__label_3n32h_84{display:block;margin-bottom:.3125rem;color:var(--gray-75)}._input__input-el-wrapper_3n32h_89{display:flex;align-items:center;height:2.5rem;border:solid .0625rem var(--gray-25);border-radius:.375rem;transition:all .3s}._input__input-el_3n32h_57{all:unset;width:100%;height:2.5rem;padding:0 1rem;color:var(--gray-90);outline:none}._input__input-el_3n32h_57::placeholder{color:var(--gray-50)}._input__left-icon_3n32h_108,._input__right-icon_3n32h_108{display:flex;align-items:center;justify-content:center;height:1rem}._input__left-icon_3n32h_108{padding-left:1rem}._input__right-icon_3n32h_108{padding-right:1rem}._input__messages-wrapper_3n32h_81{position:absolute;display:flex;gap:1rem;justify-content:space-between;width:100%}._input__messages-wrapper_3n32h_81:not(:empty){margin-top:.3125rem}._input__messages-wrapper_3n32h_81 svg{min-width:1rem;min-height:1rem}._input__info-message_3n32h_134,._input__error-message_3n32h_134{display:flex;gap:.375rem;align-items:center}._input__info-message_3n32h_134{color:var(--gray-75)}._input__error-message_3n32h_134{color:var(--alert)}._input__chars-counter_3n32h_145{margin-left:auto;color:var(--gray-75);white-space:nowrap}._input--disabled_3n32h_150 ._input__input-el_3n32h_57{color:var(--gray-50)}._input_3n32h_57:has(._input--disabled_3n32h_150) ._input__label_3n32h_84{color:var(--gray-25)}._input--focused_3n32h_156._input__input-el-wrapper_3n32h_89{border-color:var(--accent)}._input--error_3n32h_159._input__input-el-wrapper_3n32h_89{border-color:var(--alert)}._input__input-el-wrapper_3n32h_89:hover:not(._input--disabled_3n32h_150,._input--focused_3n32h_156,._input--error_3n32h_159){border-color:var(--gray-75)}textarea._input__input-el_3n32h_57{height:auto;padding:.5rem 1rem;resize:vertical}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
._u-typography-
|
|
1
|
+
._u-typography-h1_1abqy_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_1abqy_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_1abqy_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_1abqy_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_1abqy_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_1abqy_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_1abqy_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_1abqy_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_1abqy_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_1abqy_57,._select-button__text_1abqy_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_1abqy_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_1abqy_65,._select__listbox__option__text_1abqy_65{font-weight:var(--base-bold)}._u-typography-base--strikethrough_1abqy_68{text-decoration:line-through}._u-typography-base--underlined_1abqy_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_1abqy_74{text-decoration:underline line-through}._select__wrapper_1abqy_78{position:relative}._select__wrapper--fit-content-width_1abqy_81{width:fit-content}._select__wrapper_1abqy_78 ._select__label_1abqy_84{display:block;margin-bottom:.3125rem;color:var(--gray-75)}._select__wrapper_1abqy_78:has(:disabled) ._select__label_1abqy_84{color:var(--gray-25)}._select__wrapper_1abqy_78:has(._messages-wrapper_1abqy_92:not(:empty)){padding-bottom:1.6875rem}._select_1abqy_57{background-color:transparent}._select__popup_1abqy_99{z-index:9999;width:100%}._select__listbox_1abqy_65{min-width:10.75rem;max-height:400px;padding:.5rem;margin-top:.25rem;overflow-y:auto;background-color:#fff;border-radius:var(--border-radius);box-shadow:0 6px 12px rgba(var(--black-100-rgb),20%)}._select__listbox_1abqy_65 [class*=base-Option-highlighted]{outline:none}._select__listbox_1abqy_65 [class*=base-Option-highlighted]:not([class*=--selected]){color:var(--accent)}._select__listbox__option_1abqy_65{display:flex;gap:.5rem;align-items:center;padding:.625rem;color:var(--gray-90);list-style:none;cursor:pointer;border-radius:var(--border-radius-soft)}._select__listbox__option__icon_1abqy_129{display:flex}._select__listbox__option_1abqy_65:hover:not(._select__listbox__option--disabled_1abqy_132,._select__listbox__option--selected_1abqy_132){padding:.625rem;color:var(--accent);background-color:rgba(var(--black-100-rgb),4%);border-radius:var(--border-radius-soft)}._select__listbox__option_1abqy_65:active:not(._select__listbox__option--disabled_1abqy_132){color:var(--accent-dark)}._select__listbox__option--selected_1abqy_132{color:var(--gray-90);background-color:var(--accent-lighter)}._select__listbox__option--disabled_1abqy_132{color:var(--gray-50);cursor:default;border:transparent}._select-button_1abqy_57{display:flex;gap:.5rem;align-items:center;justify-content:space-between;width:11.875rem;min-width:fit-content;height:2.5rem;padding:.625rem 1rem;color:var(--gray-90);cursor:pointer;background-color:var(--white-100);border:1px solid var(--gray-25);border-radius:var(--border-radius);outline:none}._select-button--full-width_1abqy_167{width:100%}._select-button--placeholder_1abqy_170{color:var(--gray-50)}._select-button_1abqy_57+input[aria-hidden=true]{position:fixed!important}._select-button_1abqy_57 ._base-Select-popup_1abqy_176{z-index:1}._select-button__text_1abqy_57{display:flex;gap:.5rem;width:100%;overflow:hidden;text-align:start;text-overflow:ellipsis;text-wrap:nowrap}._select-button__icon_1abqy_188{display:flex}._select-button--active_1abqy_191{border:1px solid var(--accent)}._select-button--error_1abqy_194{border:solid 1px var(--alert)}._select-button_1abqy_57:disabled{color:var(--gray-50);cursor:default;border:1px solid var(--gray-25)}._select-button_1abqy_57:hover:not(._select-button_1abqy_57:disabled,._select-button--active_1abqy_191,._select-button--error_1abqy_194){border:1px solid var(--gray-75)}._select-button_1abqy_57:focus:not(._select-button_1abqy_57:disabled,._select-button--error_1abqy_194),._select-button_1abqy_57:active:not(._select-button_1abqy_57:disabled,._select-button--error_1abqy_194){border:1px solid var(--accent)}._messages-wrapper_1abqy_92{position:absolute;display:flex;align-items:center;justify-content:space-between}._messages-wrapper_1abqy_92:not(:empty){margin-top:.3125rem}._messages-wrapper_1abqy_92 svg{min-width:1rem;min-height:1rem}._info-message_1abqy_223,._error-message_1abqy_224{display:flex;gap:.375rem;align-items:center}._info-message_1abqy_223{color:var(--gray-75)}._error-message_1abqy_224{color:var(--alert)}
|
|
@@ -4,7 +4,7 @@ declare const meta: {
|
|
|
4
4
|
title: string;
|
|
5
5
|
component: import('react').ForwardRefExoticComponent<import('./Chip').ChipProps & import('react').RefAttributes<unknown>>;
|
|
6
6
|
tags: string[];
|
|
7
|
-
decorators: ((Story: import('@storybook/
|
|
7
|
+
decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
8
8
|
label: import('react').ReactNode;
|
|
9
9
|
loading?: boolean | undefined;
|
|
10
10
|
leftAdornment?: import('../Adornment/Adornment').AdornmentProps | undefined;
|
|
@@ -10,7 +10,7 @@ declare const meta: {
|
|
|
10
10
|
Actions: import('react').FunctionComponent<import('./Actions').DialogActionProps>;
|
|
11
11
|
};
|
|
12
12
|
tags: string[];
|
|
13
|
-
decorators: ((Story: import('@storybook/
|
|
13
|
+
decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
14
14
|
children: import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<unknown>>;
|
|
15
15
|
dialogTitle: import('react').ReactNode;
|
|
16
16
|
dialogSubtitle?: import('react').ReactNode;
|
|
@@ -8,7 +8,7 @@ declare const meta: {
|
|
|
8
8
|
parameters: {
|
|
9
9
|
layout: string;
|
|
10
10
|
};
|
|
11
|
-
decorators: ((Story: import('@storybook/
|
|
11
|
+
decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
12
12
|
children: import('react').ReactNode;
|
|
13
13
|
title: import('react').ReactNode;
|
|
14
14
|
style?: import('react').CSSProperties | undefined;
|