@pismo/marola 1.0.0-beta.43 → 1.0.0-beta.45
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/Group-DspH8hyO.js +30 -0
- package/dist/SelectButton-rvRI0bTU.js +73 -0
- package/dist/{Toggle-CJvN6vqW.js → Toggle-BbmXeuJd.js} +1 -1
- package/dist/assets/Group.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/SelectButton.css +1 -1
- package/dist/components/Chip/Chip.js +2 -2
- package/dist/components/Icon/Icon.js +77 -71
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/Input/Input.js +197 -201
- package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
- package/dist/components/RowItem/RowItem.js +2 -2
- package/dist/components/Select/Select.d.ts +14 -0
- package/dist/components/Select/Select.js +433 -414
- package/dist/components/Select/SelectButton.js +3 -2
- package/dist/components/ToggleGroup/Group.d.ts +2 -0
- package/dist/components/ToggleGroup/Group.js +4 -2
- package/dist/components/ToggleGroup/Toggle.d.ts +1 -0
- package/dist/components/ToggleGroup/Toggle.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +2 -0
- package/dist/main.js +2 -2
- package/package.json +1 -1
- package/dist/Group-B80_u5Q1.js +0 -27
- package/dist/SelectButton-BlVl6pJn.js +0 -70
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import './assets/SelectButton.css';
|
|
2
|
+
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as y } from "react";
|
|
4
|
+
import { c as g } from "./clsx-DB4S2d7J.js";
|
|
5
|
+
import { Icon as i } from "./components/Icon/Icon.js";
|
|
6
|
+
import { Typography as p } from "./components/Typography/Typography.js";
|
|
7
|
+
const d = "_select__listbox__option__text_1t1ci_65", x = "_select__wrapper_1t1ci_78", m = "_select__label_1t1ci_84", f = "_select_1t1ci_57", w = "_select__popup_1t1ci_96", v = "_select__listbox_1t1ci_65", k = "_select__listbox__option_1t1ci_65", N = "_select__listbox__option__icon_1t1ci_126", _ = {
|
|
8
|
+
"u-typography-h1": "_u-typography-h1_1t1ci_1",
|
|
9
|
+
"u-typography-h2": "_u-typography-h2_1t1ci_8",
|
|
10
|
+
"u-typography-h3": "_u-typography-h3_1t1ci_15",
|
|
11
|
+
"u-typography-h4": "_u-typography-h4_1t1ci_22",
|
|
12
|
+
"u-typography-h5": "_u-typography-h5_1t1ci_29",
|
|
13
|
+
"u-typography-h6": "_u-typography-h6_1t1ci_36",
|
|
14
|
+
"u-typography-base": "_u-typography-base_1t1ci_43",
|
|
15
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_1t1ci_49",
|
|
16
|
+
"u-typography-base--xl": "_u-typography-base--xl_1t1ci_53",
|
|
17
|
+
"u-typography-base--lg": "_u-typography-base--lg_1t1ci_57",
|
|
18
|
+
"select-button__text": "_select-button__text_1t1ci_57",
|
|
19
|
+
"u-typography-base--sm": "_u-typography-base--sm_1t1ci_61",
|
|
20
|
+
"u-typography-base--bold": "_u-typography-base--bold_1t1ci_65",
|
|
21
|
+
select__listbox__option__text: d,
|
|
22
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_1t1ci_68",
|
|
23
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_1t1ci_71",
|
|
24
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1t1ci_74",
|
|
25
|
+
select__wrapper: x,
|
|
26
|
+
"select__wrapper--fit-content-width": "_select__wrapper--fit-content-width_1t1ci_81",
|
|
27
|
+
select__label: m,
|
|
28
|
+
select: f,
|
|
29
|
+
select__popup: w,
|
|
30
|
+
select__listbox: v,
|
|
31
|
+
select__listbox__option: k,
|
|
32
|
+
select__listbox__option__icon: N,
|
|
33
|
+
"select__listbox__option--disabled": "_select__listbox__option--disabled_1t1ci_129",
|
|
34
|
+
"select__listbox__option--selected": "_select__listbox__option--selected_1t1ci_129",
|
|
35
|
+
"select-button": "_select-button_1t1ci_57",
|
|
36
|
+
"select-button--full-width": "_select-button--full-width_1t1ci_164",
|
|
37
|
+
"base-Select-popup": "_base-Select-popup_1t1ci_170",
|
|
38
|
+
"select-button__icon": "_select-button__icon_1t1ci_182",
|
|
39
|
+
"select-button--active": "_select-button--active_1t1ci_185",
|
|
40
|
+
"select-button--error": "_select-button--error_1t1ci_188",
|
|
41
|
+
"messages-wrapper": "_messages-wrapper_1t1ci_203",
|
|
42
|
+
"info-message": "_info-message_1t1ci_217",
|
|
43
|
+
"error-message": "_error-message_1t1ci_218"
|
|
44
|
+
}, C = y((e, l) => {
|
|
45
|
+
const { children: a, disabled: r, className: n, "data-testid": u, prefix: o, onClick: b, fullWidth: h } = e, s = e["aria-expanded"];
|
|
46
|
+
return /* @__PURE__ */ c(
|
|
47
|
+
"button",
|
|
48
|
+
{
|
|
49
|
+
className: g(
|
|
50
|
+
n,
|
|
51
|
+
s ? _["select-button--active"] : "",
|
|
52
|
+
_["select-button"],
|
|
53
|
+
h && _["select-button--full-width"]
|
|
54
|
+
),
|
|
55
|
+
type: "button",
|
|
56
|
+
onClick: b,
|
|
57
|
+
disabled: r,
|
|
58
|
+
"data-testid": u,
|
|
59
|
+
ref: l,
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ c("span", { className: _["select-button__text"], children: [
|
|
62
|
+
o && /* @__PURE__ */ t(p, { variant: "base-lg", children: o }),
|
|
63
|
+
/* @__PURE__ */ t(p, { variant: "base-lg", children: a })
|
|
64
|
+
] }),
|
|
65
|
+
/* @__PURE__ */ t("span", { className: _["select-button__icon"], children: s ? /* @__PURE__ */ t(i, { icon: "chevron-up" }) : /* @__PURE__ */ t(i, { icon: "chevron-down" }) })
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
});
|
|
70
|
+
export {
|
|
71
|
+
C as S,
|
|
72
|
+
_ as s
|
|
73
|
+
};
|
|
@@ -13,7 +13,7 @@ import "./components/Select/Select.js";
|
|
|
13
13
|
import "./components/Popover/Popover.js";
|
|
14
14
|
import "./components/Table/Table.js";
|
|
15
15
|
import "./components/Tabs/Tabs.js";
|
|
16
|
-
import { s as y } from "./Group-
|
|
16
|
+
import { s as y } from "./Group-DspH8hyO.js";
|
|
17
17
|
import "./contexts/SnackbarProvider/SnackbarProvider.js";
|
|
18
18
|
import { Skeleton as f } from "./components/Skeleton/Skeleton.js";
|
|
19
19
|
import { B as x } from "./Button-BAljjMv3.js";
|
package/dist/assets/Group.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._toggle__input_hu6m0_1{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;visibility:hidden;opacity:0}._toggle__label_hu6m0_11{position:relative;flex-grow:1;padding:.5rem 1rem;color:var(--gray-90);text-align:center;cursor:pointer;border:solid 1px var(--gray-25);border-radius:6px}._toggle__label_hu6m0_11:hover:not(._toggle__label--selected_hu6m0_21,._toggle__label--disabled_hu6m0_21){border-color:var(--gray-75);opacity:.9}._toggle__label--selected_hu6m0_21{color:var(--accent);border-color:var(--accent)}._toggle__label--disabled_hu6m0_21{color:rgb(var(--black-100-rgb),.25);cursor:default;background-color:rgb(var(--black-100-rgb),.04)}._toggle-group__fieldset_hu6m0_35{padding:0;margin:0;border:none}._toggle-group__options_hu6m0_40{display:flex;gap:.5rem}._toggle-group__options-same-width_hu6m0_44>*{flex:1}._toggle-group__error_hu6m0_47{display:flex;gap:.375rem;align-items:center;margin-top:.3125rem;color:var(--alert)}._toggle-group__error_hu6m0_47 svg{min-width:1rem;min-height:1rem}
|
package/dist/assets/Input.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._u-typography-
|
|
1
|
+
._u-typography-h1_1iqdc_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_1iqdc_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_1iqdc_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_1iqdc_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_1iqdc_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_1iqdc_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_1iqdc_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_1iqdc_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_1iqdc_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_1iqdc_57,._input__input-el_1iqdc_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_1iqdc_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_1iqdc_65,._input__input-el_1iqdc_57{font-weight:var(--base-bold)}._u-typography-base--strikethrough_1iqdc_68{text-decoration:line-through}._u-typography-base--underlined_1iqdc_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_1iqdc_74{text-decoration:underline line-through}._input_1iqdc_57{position:relative}._input__label_1iqdc_81{display:block;margin-bottom:.3125rem;color:var(--gray-75)}._input__input-el-wrapper_1iqdc_86{display:flex;align-items:center;height:2.5rem;border:solid .0625rem var(--gray-25);border-radius:.375rem;transition:all .3s}._input__input-el_1iqdc_57{all:unset;width:100%;height:2.5rem;padding:0 1rem;color:var(--gray-90);outline:none}._input__input-el_1iqdc_57::placeholder{color:var(--gray-50)}._input__left-icon_1iqdc_105,._input__right-icon_1iqdc_105{display:flex;align-items:center;justify-content:center;height:1rem}._input__left-icon_1iqdc_105{padding-left:1rem}._input__right-icon_1iqdc_105{padding-right:1rem}._input__messages-wrapper_1iqdc_117{position:absolute;display:flex;align-items:center;justify-content:space-between}._input__messages-wrapper_1iqdc_117:not(:empty){margin-top:.3125rem}._input__messages-wrapper_1iqdc_117 svg{min-width:1rem;min-height:1rem}._input__info-message_1iqdc_130,._input__error-message_1iqdc_130{display:flex;gap:.375rem;align-items:center}._input__info-message_1iqdc_130{color:var(--gray-75)}._input__error-message_1iqdc_130{color:var(--alert)}._input__chars-counter_1iqdc_141{margin-left:auto;color:var(--gray-75)}._input--disabled_1iqdc_145 ._input__input-el_1iqdc_57{color:var(--gray-50)}._input_1iqdc_57:has(._input--disabled_1iqdc_145) ._input__label_1iqdc_81{color:var(--gray-25)}._input--focused_1iqdc_151._input__input-el-wrapper_1iqdc_86{border-color:var(--accent)}._input--error_1iqdc_154._input__input-el-wrapper_1iqdc_86{border-color:var(--alert)}._input__input-el-wrapper_1iqdc_86:hover:not(._input--disabled_1iqdc_145,._input--focused_1iqdc_151,._input--error_1iqdc_154){border-color:var(--gray-75)}textarea._input__input-el_1iqdc_57{height:auto;padding:.5rem 1rem;resize:vertical}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
._u-typography-
|
|
1
|
+
._u-typography-h1_1t1ci_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_1t1ci_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_1t1ci_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_1t1ci_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_1t1ci_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_1t1ci_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_1t1ci_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_1t1ci_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_1t1ci_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_1t1ci_57,._select-button__text_1t1ci_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_1t1ci_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_1t1ci_65,._select__listbox__option__text_1t1ci_65{font-weight:var(--base-bold)}._u-typography-base--strikethrough_1t1ci_68{text-decoration:line-through}._u-typography-base--underlined_1t1ci_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_1t1ci_74{text-decoration:underline line-through}._select__wrapper_1t1ci_78{position:relative}._select__wrapper--fit-content-width_1t1ci_81{width:fit-content}._select__wrapper_1t1ci_78 ._select__label_1t1ci_84{display:block;margin-bottom:.3125rem;color:var(--gray-75)}._select__wrapper_1t1ci_78:has(:disabled) ._select__label_1t1ci_84{color:var(--gray-25)}._select_1t1ci_57{background-color:transparent}._select__popup_1t1ci_96{z-index:9999;width:100%}._select__listbox_1t1ci_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_1t1ci_65 [class*=base-Option-highlighted]{outline:none}._select__listbox_1t1ci_65 [class*=base-Option-highlighted]:not([class*=--selected]){color:var(--accent)}._select__listbox__option_1t1ci_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_1t1ci_126{display:flex}._select__listbox__option_1t1ci_65:hover:not(._select__listbox__option--disabled_1t1ci_129,._select__listbox__option--selected_1t1ci_129){padding:.625rem;color:var(--accent);background-color:rgba(var(--black-100-rgb),4%);border-radius:var(--border-radius-soft)}._select__listbox__option_1t1ci_65:active:not(._select__listbox__option--disabled_1t1ci_129){color:var(--accent-dark)}._select__listbox__option--selected_1t1ci_129{color:var(--gray-90);background-color:var(--accent-lighter)}._select__listbox__option--disabled_1t1ci_129{color:var(--gray-50);cursor:default;border:transparent}._select-button_1t1ci_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_1t1ci_164{width:100%}._select-button_1t1ci_57+input[aria-hidden=true]{position:fixed!important}._select-button_1t1ci_57 ._base-Select-popup_1t1ci_170{z-index:1}._select-button__text_1t1ci_57{display:flex;gap:.5rem;width:100%;overflow:hidden;text-align:start;text-overflow:ellipsis;text-wrap:nowrap}._select-button__icon_1t1ci_182{display:flex}._select-button--active_1t1ci_185{border:1px solid var(--accent)}._select-button--error_1t1ci_188{border:solid 1px var(--alert)}._select-button_1t1ci_57:disabled{color:var(--gray-50);cursor:default;border:1px solid var(--gray-25)}._select-button_1t1ci_57:hover:not(._select-button_1t1ci_57:disabled,._select-button--active_1t1ci_185,._select-button--error_1t1ci_188){border:1px solid var(--gray-75)}._select-button_1t1ci_57:focus:not(._select-button_1t1ci_57:disabled,._select-button--error_1t1ci_188),._select-button_1t1ci_57:active:not(._select-button_1t1ci_57:disabled,._select-button--error_1t1ci_188){border:1px solid var(--accent)}._messages-wrapper_1t1ci_203{position:absolute;display:flex;align-items:center;justify-content:space-between}._messages-wrapper_1t1ci_203:not(:empty){margin-top:.3125rem}._messages-wrapper_1t1ci_203 svg{min-width:1rem;min-height:1rem}._info-message_1t1ci_217,._error-message_1t1ci_218{display:flex;gap:.375rem;align-items:center}._info-message_1t1ci_217{color:var(--gray-75)}._error-message_1t1ci_218{color:var(--alert)}
|
|
@@ -6,7 +6,7 @@ import "../Icon/Icon.js";
|
|
|
6
6
|
import "../Typography/Typography.js";
|
|
7
7
|
import "../Input/Input.js";
|
|
8
8
|
import "../Button/Button.js";
|
|
9
|
-
import { C as n } from "../../Toggle-
|
|
9
|
+
import { C as n } from "../../Toggle-BbmXeuJd.js";
|
|
10
10
|
import "../Dialog/Dialog.js";
|
|
11
11
|
import "../IconButton/IconButton.js";
|
|
12
12
|
import "../Select/Select.js";
|
|
@@ -14,7 +14,7 @@ import "../Popover/Popover.js";
|
|
|
14
14
|
import "../Skeleton/Skeleton.js";
|
|
15
15
|
import "../Table/Table.js";
|
|
16
16
|
import "../Tabs/Tabs.js";
|
|
17
|
-
import "../../Group-
|
|
17
|
+
import "../../Group-DspH8hyO.js";
|
|
18
18
|
import "../../contexts/SnackbarProvider/SnackbarProvider.js";
|
|
19
19
|
import "../../Button-BAljjMv3.js";
|
|
20
20
|
export {
|