@pismo/marola 1.0.0-beta.24 → 1.0.0-beta.27

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.
@@ -0,0 +1,70 @@
1
+ import './assets/SelectButton.css';
2
+ import { jsxs as p, jsx as _ } from "react/jsx-runtime";
3
+ import * as o from "react";
4
+ import { forwardRef as b } from "react";
5
+ import { c as w } from "./clsx-DB4S2d7J.js";
6
+ import { Typography as c } from "./components/Typography/Typography.js";
7
+ const g = "_select__listbox__option__text_1w1kt_65", d = "_select__wrapper_1w1kt_78", k = "_select__label_1w1kt_84", x = "_select_1w1kt_65", m = "_select__popup_1w1kt_93", f = "_select__listbox_1w1kt_65", C = "_select__listbox__option_1w1kt_65", v = "_select__listbox__option__icon_1w1kt_121", L = "_select__list__option__icon_1w1kt_143", e = {
8
+ "u-typography-h1": "_u-typography-h1_1w1kt_1",
9
+ "u-typography-h2": "_u-typography-h2_1w1kt_8",
10
+ "u-typography-h3": "_u-typography-h3_1w1kt_15",
11
+ "u-typography-h4": "_u-typography-h4_1w1kt_22",
12
+ "u-typography-h5": "_u-typography-h5_1w1kt_29",
13
+ "u-typography-h6": "_u-typography-h6_1w1kt_36",
14
+ "u-typography-base": "_u-typography-base_1w1kt_43",
15
+ "u-typography-base--xxl": "_u-typography-base--xxl_1w1kt_49",
16
+ "u-typography-base--xl": "_u-typography-base--xl_1w1kt_53",
17
+ "u-typography-base--lg": "_u-typography-base--lg_1w1kt_57",
18
+ "u-typography-base--sm": "_u-typography-base--sm_1w1kt_61",
19
+ "u-typography-base--bold": "_u-typography-base--bold_1w1kt_65",
20
+ select__listbox__option__text: g,
21
+ "u-typography-base--strikethrough": "_u-typography-base--strikethrough_1w1kt_68",
22
+ "u-typography-base--underlined": "_u-typography-base--underlined_1w1kt_71",
23
+ "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1w1kt_74",
24
+ select__wrapper: d,
25
+ "select__wrapper--fit-content-width": "_select__wrapper--fit-content-width_1w1kt_81",
26
+ select__label: k,
27
+ select: x,
28
+ select__popup: m,
29
+ select__listbox: f,
30
+ select__listbox__option: C,
31
+ select__listbox__option__icon: v,
32
+ "select__listbox__option--disabled": "_select__listbox__option--disabled_1w1kt_125",
33
+ "select__listbox__option--selected": "_select__listbox__option--selected_1w1kt_134",
34
+ select__list__option__icon: L,
35
+ "select-button": "_select-button_1w1kt_148",
36
+ "select-button--full-width": "_select-button--full-width_1w1kt_163",
37
+ "base-Select-popup": "_base-Select-popup_1w1kt_169",
38
+ "select-button__text": "_select-button__text_1w1kt_172",
39
+ "select-button__icon": "_select-button__icon_1w1kt_181",
40
+ "select-button--active": "_select-button--active_1w1kt_187"
41
+ }, S = (t) => /* @__PURE__ */ o.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ o.createElement("path", { d: "M2.11104 4.9999C2.36691 4.9999 2.62291 5.09756 2.81791 5.29287L8.11104 10.5843L13.4048 5.29053C13.7954 4.8999 14.4282 4.8999 14.8188 5.29053C15.2095 5.68115 15.2095 6.31396 14.8188 6.70459L8.81885 12.7046C8.42822 13.0952 7.79541 13.0952 7.40479 12.7046L1.40479 6.70459C1.01416 6.31396 1.01416 5.68115 1.40479 5.29053C1.59854 5.09678 1.85479 4.9999 2.11104 4.9999Z", fill: "currentColor" })), B = (t) => /* @__PURE__ */ o.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ o.createElement("path", { d: "M13.8889 11C13.633 11 13.377 10.9023 13.182 10.707L7.8889 5.41563L2.59515 10.7094C2.20453 11.1 1.57172 11.1 1.18109 10.7094C0.790466 10.3188 0.790466 9.68594 1.18109 9.29532L7.18109 3.29532C7.57172 2.90469 8.20453 2.90469 8.59515 3.29532L14.5952 9.29532C14.9858 9.68594 14.9858 10.3188 14.5952 10.7094C14.4014 10.9031 14.1452 11 13.8889 11Z", fill: "#3F3D4B", fillOpacity: 0.88 })), D = b((t, a) => {
42
+ const { children: i, disabled: n, className: r, "data-testid": h, prefix: s, onClick: u, fullWidth: y } = t, l = t["aria-expanded"];
43
+ return /* @__PURE__ */ p(
44
+ "button",
45
+ {
46
+ className: w(
47
+ r,
48
+ l ? e["select-button--active"] : "",
49
+ e["select-button"],
50
+ y && e["select-button--full-width"]
51
+ ),
52
+ type: "button",
53
+ onClick: u,
54
+ disabled: n,
55
+ "data-testid": h,
56
+ ref: a,
57
+ children: [
58
+ /* @__PURE__ */ p("span", { className: e["select-button__text"], children: [
59
+ s && /* @__PURE__ */ _(c, { children: s }),
60
+ /* @__PURE__ */ _(c, { children: i })
61
+ ] }),
62
+ /* @__PURE__ */ _("span", { className: e["select-button__icon"], children: l ? /* @__PURE__ */ _(B, {}) : /* @__PURE__ */ _(S, {}) })
63
+ ]
64
+ }
65
+ );
66
+ });
67
+ export {
68
+ D as S,
69
+ e as s
70
+ };
@@ -1 +1 @@
1
- ._autocomplete_pfc9v_1{position:relative;margin-bottom:16px}._autocomplete__dropdown-list_pfc9v_5{position:absolute;z-index:1;width:100%;max-height:25rem;padding:0;margin-top:.25rem;overflow-y:auto;background-color:#fff;border:solid .0625rem var(--gray-25);border-radius:.375rem}._autocomplete__dropdown-item_pfc9v_17{padding:.375rem 1rem;list-style-type:none;cursor:pointer}._autocomplete__dropdown-item_pfc9v_17:hover,._option-focused_pfc9v_26{color:var(--accent)}
1
+ ._u-typography-h1_164gy_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_164gy_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_164gy_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_164gy_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_164gy_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_164gy_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_164gy_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_164gy_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_164gy_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_164gy_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_164gy_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_164gy_65,._autocomplete__dropdown-item_164gy_65{font-weight:var(--base-bold)}._u-typography-base--strikethrough_164gy_68{text-decoration:line-through}._u-typography-base--underlined_164gy_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_164gy_74{text-decoration:underline line-through}._autocomplete_164gy_65{position:relative;margin-bottom:16px}._autocomplete__dropdown-list_164gy_82{position:absolute;z-index:1;width:100%;max-height:25rem;padding:0;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%)}._autocomplete__dropdown-item_164gy_65{padding:.375rem 1rem;display:flex;color:rgba(var(--gray-95-rgb),88%);list-style:none;cursor:pointer;border-radius:var(--border-radius-soft)}._autocomplete__dropdown-item_164gy_65[aria-selected=true]{color:var(--gray-90);background-color:var(--accent-lighter)}._autocomplete__dropdown-item_164gy_65[aria-selected=true]._option-focused_164gy_106{color:var(--accent)}._autocomplete__dropdown-item_164gy_65:hover{color:var(--accent);background-color:rgba(var(--black-100-rgb),4%);border-radius:var(--border-radius-soft)}._option-focused_164gy_106{color:var(--accent)}
@@ -1 +1 @@
1
- ._u-typography-h1_1d5mc_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_1d5mc_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_1d5mc_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_1d5mc_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_1d5mc_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_1d5mc_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_1d5mc_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_1d5mc_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_1d5mc_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_1d5mc_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_1d5mc_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_1d5mc_65,._select__listbox__option__text_1d5mc_65{font-weight:var(--base-bold)}._u-typography-base--strikethrough_1d5mc_68{text-decoration:line-through}._u-typography-base--underlined_1d5mc_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_1d5mc_74{text-decoration:underline line-through}._select__wrapper_1d5mc_78 ._select__label_1d5mc_78{display:block;margin-bottom:.3125rem;color:var(--gray-75)}._select_1d5mc_65{background-color:red}._select__popup_1d5mc_87{z-index:9999}._select__listbox_1d5mc_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__option_1d5mc_65{display:flex;padding:.625rem;color:rgba(var(--gray-95-rgb),88%);list-style:none;cursor:pointer;border-radius:var(--border-radius-soft)}._select__listbox__option__icon_1d5mc_108{display:flex;margin-right:.5rem}._select__listbox__option_1d5mc_65:hover:not(._select__listbox__option--disabled_1d5mc_112){padding:.625rem;color:var(--accent);background-color:rgba(var(--black-100-rgb),4%);border-radius:var(--border-radius-soft)}._select__listbox__option_1d5mc_65:active:not(._select__listbox__option--disabled_1d5mc_112){color:var(--accent-dark)}._select__listbox__option--selected_1d5mc_121{background-color:var(--accent-lighter)}._select__listbox__option--disabled_1d5mc_112{color:rgba(var(--gray-95-rgb),25%);cursor:default;border:transparent}._select__listbox__option--disabled_1d5mc_112 ._select__list__option__icon_1d5mc_129{color:rgba(var(--gray-95-rgb),25%);fill:rgba(var(--gray-95-rgb),25%)}._select-button_1d5mc_134{display:flex;gap:.5rem;align-items:center;justify-content:space-between;width:11.875rem;min-width:fit-content;padding:.625rem 1rem;color:rgba(var(--gray-95-rgb),88%);cursor:pointer;background-color:var(--white-100);border:1px solid rgba(var(--black-100-rgb),6%);border-radius:var(--border-radius);outline:none}._select-button_1d5mc_134+input[aria-hidden=true]{position:fixed!important}._select-button_1d5mc_134 ._base-Select-popup_1d5mc_152{z-index:1}._select-button__text_1d5mc_155{display:flex;gap:.5rem;width:100%;overflow:hidden;text-align:start;text-overflow:ellipsis;text-wrap:nowrap}._select-button__icon_1d5mc_164{display:flex}._select-button__icon_1d5mc_164 svg{color:rgba(var(--gray-95-rgb),88%)}._select-button--active_1d5mc_170{border:1px solid var(--accent)}._select-button_1d5mc_134:disabled{color:rgba(var(--gray-95-rgb),25%);cursor:default;border:1px solid var(--gray-10)}._select-button_1d5mc_134:disabled ._select-button__icon_1d5mc_164 svg{color:rgba(var(--gray-95-rgb),25%)}._select-button_1d5mc_134:hover:not(._select-button_1d5mc_134:disabled){border:1px solid var(--gray-25)}._select-button_1d5mc_134:focus:not(._select-button_1d5mc_134:disabled),._select-button_1d5mc_134:active:not(._select-button_1d5mc_134:disabled){border:1px solid var(--accent)}
1
+ ._u-typography-h1_1w1kt_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_1w1kt_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_1w1kt_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_1w1kt_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_1w1kt_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_1w1kt_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_1w1kt_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_1w1kt_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_1w1kt_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_1w1kt_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_1w1kt_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_1w1kt_65,._select__listbox__option__text_1w1kt_65{font-weight:var(--base-bold)}._u-typography-base--strikethrough_1w1kt_68{text-decoration:line-through}._u-typography-base--underlined_1w1kt_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_1w1kt_74{text-decoration:underline line-through}._select__wrapper_1w1kt_78{position:relative}._select__wrapper--fit-content-width_1w1kt_81{width:fit-content}._select__wrapper_1w1kt_78 ._select__label_1w1kt_84{display:block;margin-bottom:.3125rem;color:var(--gray-75)}._select_1w1kt_65{background-color:transparent}._select__popup_1w1kt_93{z-index:9999;width:100%}._select__listbox_1w1kt_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_1w1kt_65 [class*=base-Option-highlighted]{outline:none}._select__listbox_1w1kt_65 [class*=base-Option-highlighted]:not([class*=--selected]){color:var(--accent)}._select__listbox__option_1w1kt_65{display:flex;padding:.625rem;color:rgba(var(--gray-95-rgb),88%);list-style:none;cursor:pointer;border-radius:var(--border-radius-soft)}._select__listbox__option__icon_1w1kt_121{display:flex;margin-right:.5rem}._select__listbox__option_1w1kt_65:hover:not(._select__listbox__option--disabled_1w1kt_125){padding:.625rem;color:var(--accent);background-color:rgba(var(--black-100-rgb),4%);border-radius:var(--border-radius-soft)}._select__listbox__option_1w1kt_65:active:not(._select__listbox__option--disabled_1w1kt_125){color:var(--accent-dark)}._select__listbox__option--selected_1w1kt_134{color:var(--gray-90);background-color:var(--accent-lighter)}._select__listbox__option--disabled_1w1kt_125{color:rgba(var(--gray-95-rgb),25%);cursor:default;border:transparent}._select__listbox__option--disabled_1w1kt_125 ._select__list__option__icon_1w1kt_143{color:rgba(var(--gray-95-rgb),25%);fill:rgba(var(--gray-95-rgb),25%)}._select-button_1w1kt_148{display:flex;gap:.5rem;align-items:center;justify-content:space-between;width:11.875rem;min-width:fit-content;padding:.625rem 1rem;color:rgba(var(--gray-95-rgb),88%);cursor:pointer;background-color:var(--white-100);border:1px solid rgba(var(--black-100-rgb),6%);border-radius:var(--border-radius);outline:none}._select-button--full-width_1w1kt_163{width:100%}._select-button_1w1kt_148+input[aria-hidden=true]{position:fixed!important}._select-button_1w1kt_148 ._base-Select-popup_1w1kt_169{z-index:1}._select-button__text_1w1kt_172{display:flex;gap:.5rem;width:100%;overflow:hidden;text-align:start;text-overflow:ellipsis;text-wrap:nowrap}._select-button__icon_1w1kt_181{display:flex}._select-button__icon_1w1kt_181 svg{color:rgba(var(--gray-95-rgb),88%)}._select-button--active_1w1kt_187{border:1px solid var(--accent)}._select-button_1w1kt_148:disabled{color:rgba(var(--gray-95-rgb),25%);cursor:default;border:1px solid var(--gray-10)}._select-button_1w1kt_148:disabled ._select-button__icon_1w1kt_181 svg{color:rgba(var(--gray-95-rgb),25%)}._select-button_1w1kt_148:hover:not(._select-button_1w1kt_148:disabled){border:1px solid var(--gray-25)}._select-button_1w1kt_148:focus:not(._select-button_1w1kt_148:disabled),._select-button_1w1kt_148:active:not(._select-button_1w1kt_148:disabled){border:1px solid var(--accent)}