@pismo/marola 0.0.1-alpha.11 → 0.0.1-alpha.13
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/README.md +1 -1
- package/dist/{ClickAwayListener-BKznXF1d.js → ClickAwayListener-HI1G6ob9.js} +2 -1
- package/dist/Popup-DFJQc_jn.js +1249 -0
- package/dist/{Portal-BcdMtRGF.js → Portal-D__zvwbZ.js} +1 -1
- package/dist/SelectButton-DWtqAiwt.js +45 -0
- package/dist/Tabs.module-jkH1Qjn7.js +22 -0
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Chip.css +1 -0
- package/dist/assets/IconButton.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/InputSearch.css +1 -1
- package/dist/assets/SelectButton.css +1 -0
- package/dist/assets/Typography.css +1 -1
- package/dist/combineHooksSlotProps-BHqhiBfc.js +81 -0
- package/dist/components/Button/Button.d.ts +5 -2
- package/dist/components/Button/Button.js +87 -63
- package/dist/components/Button/Button.stories.d.ts +2 -0
- package/dist/components/Button/Button.stories.js +8 -8
- package/dist/components/Chip/Chip.d.ts +37 -0
- package/dist/components/Chip/Chip.js +143 -0
- package/dist/components/Chip/Chip.stories.d.ts +40 -0
- package/dist/components/Chip/Chip.stories.js +59 -0
- package/dist/components/Chip/chip.test.d.ts +1 -0
- package/dist/components/Chip/chip.test.js +17303 -0
- package/dist/components/Dialog/Dialog.js +13 -12
- package/dist/components/Dialog/Dialog.stories.d.ts +3 -3
- package/dist/components/Dialog/Dialog.stories.js +9 -9
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.js +27 -20
- package/dist/components/IconButton/IconButton.d.ts +2 -2
- package/dist/components/IconButton/IconButton.js +63 -61
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.js +32 -32
- package/dist/components/InputSearch/InputSearch.d.ts +7 -9
- package/dist/components/InputSearch/InputSearch.js +31 -26
- package/dist/components/InputSearch/InputSearch.stories.d.ts +21 -4
- package/dist/components/InputSearch/InputSearch.stories.js +55 -18
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.js +6 -6
- package/dist/components/PageHeader/PageHeader.stories.js +3 -3
- package/dist/components/Select/Select.d.ts +25 -0
- package/dist/components/Select/Select.js +860 -0
- package/dist/components/Select/Select.stories.d.ts +31 -0
- package/dist/components/Select/Select.stories.js +65 -0
- package/dist/components/Select/SelectButton.d.ts +13 -0
- package/dist/components/Select/SelectButton.js +8 -0
- package/dist/components/Snackbar/Snackbar.js +5 -4
- package/dist/components/Tabs/Tab.js +180 -6
- package/dist/components/Tabs/TabPanel.js +19 -18
- package/dist/components/Tabs/Tabs.js +237 -662
- package/dist/components/Tooltip/Tooltip.js +89 -1328
- package/dist/components/Typography/Typography.d.ts +1 -1
- package/dist/components/Typography/Typography.js +76 -74
- package/dist/components/Typography/Typography.stories.js +6 -6
- package/dist/components/Typography/typography.test.js +196 -11319
- package/dist/{index-BNWbc5Kh.js → index-BJ8HbRCy.js} +3109 -3152
- package/dist/main.d.ts +2 -0
- package/dist/main.js +57 -54
- package/dist/react.esm-DGd9_oKA.js +11126 -0
- package/dist/useCompoundItem-D1iRfg8D.js +84 -0
- package/dist/useEventCallback-vAfOD-oT.js +45 -0
- package/dist/useList-ByMguSS_.js +437 -0
- package/dist/utils/styleStrings.test.js +1 -1
- package/dist/{vi.Y_w82WR8-Df0JUamG.js → vi.Y_w82WR8-XVYrIxgm.js} +2 -1
- package/package.json +1 -1
- package/dist/Tab-CRwnhsj5.js +0 -254
- package/dist/Tabs.module-yYcTJnj6.js +0 -103
- package/dist/assets/global.css +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
|
-
import { r as P,
|
|
2
|
+
import { r as P, e as y } from "./index-BJ8HbRCy.js";
|
|
3
3
|
import { u as T, s as a, P as i } from "./index-CqjC7P5Y.js";
|
|
4
4
|
import { jsx as c } from "react/jsx-runtime";
|
|
5
5
|
import { u as f } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import './assets/SelectButton.css';
|
|
2
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import * as o from "react";
|
|
4
|
+
import { forwardRef as x } from "react";
|
|
5
|
+
import { c as p } from "./clsx-DB4S2d7J.js";
|
|
6
|
+
import { Typography as w } from "./components/Typography/Typography.js";
|
|
7
|
+
const d = "_select_yw431_1", m = "_select__listbox_yw431_4", u = "_select__listbox__option_yw431_12", y = "_select__listbox__option__icon_yw431_20", h = "_select__listbox__option__text_yw431_24", C = "_select__list__option__icon_yw431_44", _ = {
|
|
8
|
+
select: d,
|
|
9
|
+
select__listbox: m,
|
|
10
|
+
select__listbox__option: u,
|
|
11
|
+
select__listbox__option__icon: y,
|
|
12
|
+
select__listbox__option__text: h,
|
|
13
|
+
"select__listbox__option--disabled": "_select__listbox__option--disabled_yw431_27",
|
|
14
|
+
"select__listbox__option--selected": "_select__listbox__option--selected_yw431_36",
|
|
15
|
+
select__list__option__icon: C,
|
|
16
|
+
"select-button": "_select-button_yw431_49",
|
|
17
|
+
"select-button__text": "_select-button__text_yw431_62",
|
|
18
|
+
"select-button__text__prefix": "_select-button__text__prefix_yw431_69",
|
|
19
|
+
"select-button__icon": "_select-button__icon_yw431_72",
|
|
20
|
+
"select-button--active": "_select-button--active_yw431_78"
|
|
21
|
+
}, f = (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" })), v = (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 })), E = x((t, c) => {
|
|
22
|
+
const { children: n, type: i = "button", disabled: a, className: b, "data-testid": r } = t, s = t["aria-expanded"];
|
|
23
|
+
return /* @__PURE__ */ l(
|
|
24
|
+
"button",
|
|
25
|
+
{
|
|
26
|
+
className: p(b, s ? _["select-button--active"] : "", _["select-button"]),
|
|
27
|
+
type: i,
|
|
28
|
+
onClick: t.onClick,
|
|
29
|
+
disabled: a,
|
|
30
|
+
"data-testid": r,
|
|
31
|
+
ref: c,
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ l("span", { className: _["select-button__text"], children: [
|
|
34
|
+
/* @__PURE__ */ e("span", { className: _["select-button__text__prefix"], children: t["aria-labelledby"] }),
|
|
35
|
+
/* @__PURE__ */ e(w, { element: "span", variant: "body-small", className: _["select-button__text__content"], children: n })
|
|
36
|
+
] }),
|
|
37
|
+
/* @__PURE__ */ e("span", { className: _["select-button__icon"], children: s ? /* @__PURE__ */ e(v, {}) : /* @__PURE__ */ e(f, {}) })
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
});
|
|
42
|
+
export {
|
|
43
|
+
E as B,
|
|
44
|
+
_ as s
|
|
45
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import './assets/Tabs.css';
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
const s = /* @__PURE__ */ a.createContext(null);
|
|
4
|
+
process.env.NODE_ENV !== "production" && (s.displayName = "TabsContext");
|
|
5
|
+
function b() {
|
|
6
|
+
const t = a.useContext(s);
|
|
7
|
+
if (t == null)
|
|
8
|
+
throw new Error("No TabsContext provided");
|
|
9
|
+
return t;
|
|
10
|
+
}
|
|
11
|
+
const _ = "_tabs_18ymz_1", e = "_tabs__tab_18ymz_5", o = {
|
|
12
|
+
tabs: _,
|
|
13
|
+
tabs__tab: e,
|
|
14
|
+
"tabs__tab--disabled": "_tabs__tab--disabled_18ymz_22",
|
|
15
|
+
"tabs__tab--selected": "_tabs__tab--selected_18ymz_31",
|
|
16
|
+
"tabs__tab-panel": "_tabs__tab-panel_18ymz_35"
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
s as T,
|
|
20
|
+
o as s,
|
|
21
|
+
b as u
|
|
22
|
+
};
|
package/dist/assets/Button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._h1_10k5d_1{font-size:var(--heading-font-size-xl);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-xl);margin:0}._h1--bold_10k5d_7{font-weight:var(--typography-heading-bold)}._h2_10k5d_11{font-size:var(--heading-font-size-l);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-l);margin:0}._h2--bold_10k5d_17{font-weight:var(--typography-heading-bold)}._h3_10k5d_21{font-size:var(--heading-font-size);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height);margin:0}._h3--bold_10k5d_27{font-weight:var(--typography-heading-bold)}._h4_10k5d_31{font-size:var(--heading-font-size-s);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-s);margin:0}._h4--bold_10k5d_37{font-weight:var(--typography-heading-bold)}._body_10k5d_41{font-size:var(--body-font-size);font-weight:var(--body-weight);line-height:var(--body-line-height)}._body--large_10k5d_46{font-size:var(--body-font-size-large);line-height:var(--body-line-height-large)}._body--medium_10k5d_50{font-size:var(--body-font-size-medium);line-height:var(--body-line-height-medium)}._body--small_10k5d_54{font-size:var(--body-font-size-small);line-height:var(--body-line-height-small)}._body--tiny_10k5d_58{font-size:var(--body-font-size-tiny);line-height:var(--body-line-height-tiny)}._body--bold_10k5d_62{font-weight:var(--body-bold)}._body--strikethrough_10k5d_65{text-decoration:line-through}._body--underlined_10k5d_68{text-decoration:underline}._body--strikethrough-underlined_10k5d_71{text-decoration:underline line-through}._quote_10k5d_75{font-size:var(--quote-font-size);font-weight:var(--quote-font-weight);line-height:var(--quote-line-height)}._quote--large_10k5d_80{font-size:var(--quote-font-size-large);font-weight:var(--quote-font-weight-large);line-height:var(--quote-line-height-large)}._quote--bold_10k5d_85{font-weight:var(--body-bold)}._quote--strikethrough_10k5d_88{text-decoration:line-through}._quote--underlined_10k5d_91{text-decoration:underline}._quote--strikethrough-underlined_10k5d_94{text-decoration:underline line-through}._form__input_10k5d_98{font-size:var(--form-input-font-size);font-weight:var(--form-input-font-weight);line-height:var(--form-input-line-height)}._form__hint_10k5d_103{font-size:var(--form-hint-font-size);font-weight:var(--form-hint-font-weight);line-height:var(--form-hint-line-height)}._form__label_10k5d_108{font-size:var(--form-label-font-size);font-weight:var(--form-label-font-weight);line-height:var(--form-label-line-height)}._form__dropdown_10k5d_113{font-size:var(--form-dropdown-font-size);font-weight:var(--form-dropdown-font-weight);line-height:var(--form-dropdown-line-height)}._form--bold_10k5d_118{font-weight:var(--body-bold)}._form--strikethrough_10k5d_121{text-decoration:line-through}._form--underlined_10k5d_124{text-decoration:underline}._form--strikethrough-underlined_10k5d_127{text-decoration:underline line-through}._table__header_10k5d_131{font-size:var(--table-font-size);line-height:var(--table-line-height);font-weight:var(--table-header-font-weight)}._table__body_10k5d_136{font-size:var(--table-font-size);line-height:var(--table-line-height);font-weight:var(--table-body-font-weight)}._table__body--secondary_10k5d_141{font-size:var(--table-font-size);line-height:var(--table-line-height);line-height:var(--table-body-secondary-line-height)}._table--bold_10k5d_146{font-weight:var(--body-bold)}._table--strikethrough_10k5d_149{text-decoration:line-through}._table--underlined_10k5d_152{text-decoration:underline}._table--strikethrough-underlined_10k5d_155{text-decoration:underline line-through}._button_10k5d_159{font-size:var(--button-font-size);font-weight:var(--button-font-weight);line-height:var(--button-line-height);font-family:Lato,Inter,system-ui,Avenir,Helvetica,Arial,sans-serif}._button--bold_10k5d_165{font-weight:var(--body-bold)}._button--strikethrough_10k5d_168{text-decoration:line-through}._button--underlined_10k5d_171{text-decoration:underline}._button--strikethrough-underlined_10k5d_174{text-decoration:underline line-through}._SM_10k5d_178{font-size:var(--font-size-small);font-weight:var(--font-weight-small);line-height:var(--font-line-height-small)}._SM--bold_10k5d_183{font-weight:var(--font-weight-700)}._button_10k5d_159{font-size:var(--button-font-size);font-weight:var(--button-font-weight);line-height:var(--button-line-height);padding:10px 35px;cursor:pointer;border:none;border-radius:100px}._button_10k5d_159:focus-visible{outline:none}._button--primary_10k5d_199{color:var(--white-100);background-color:var(--accent)}._button--primary_10k5d_199:hover{background-color:var(--accent-dark)}._button--primary_10k5d_199:focus{color:var(--black-100);background-color:var(--accent-lighter)}._button--primary_10k5d_199:active{background-color:var(--accent-light)}._button--primary_10k5d_199:disabled{color:var(--gray-50);cursor:default;background-color:var(--black-10)}._button--secondary_10k5d_218{color:var(--accent);background-color:var(--white-100)}._button--secondary_10k5d_218:hover{background-color:var(--gray-5)}._button--secondary_10k5d_218:focus{color:var(--black-100)}._button--secondary_10k5d_218:active{color:var(--accent-light)}._button--secondary_10k5d_218:disabled{color:var(--gray-50);cursor:default}._button--quick_10k5d_235{padding:8px 16px;color:var(--accent);background-color:rgb(var(--accent-rgb) .05);border-radius:6px}._button--quick_10k5d_235:hover{color:var(--accent-dark);background-color:rgb(var(--accent-rgb) .1)}._button--quick_10k5d_235:active{color:var(--accent-light)}._button--quick_10k5d_235:focus{color:var(--black-100);background-color:initial;outline:2px solid var(--black-100)}._button--quick_10k5d_235:disabled{color:var(--gray-50);cursor:default;background-color:var(--black-10)}._button__loading-container_10k5d_258{display:flex;gap:8px;align-items:center}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--secondary-orange: #ffa945;--secondary-orange-rgb: 255, 169, 69;--secondary-orange-dark: #fe8d53;--secondary-orange-dark-rgb: 254, 141, 83;--secondary-orange-light: #525061;--secondary-orange-light-rgb: 82, 80, 97;--secondary-green: #99dec3;--secondary-green-rgb: 153, 222, 195;--secondary-green-dark: #6acbb1;--secondary-green-dark-rgb: 106, 203, 177;--secondary-green-darker: #31aa7e;--secondary-green-darker-rgb: 49, 170, 126;--secondary-green-light: #baedd9;--secondary-green-light-rgb: 186, 237, 217;--accent: #1897f3;--accent-rgb: 24, 151, 243;--accent-dark: #1672c7;--accent-dark-rgb: 22, 114, 199;--accent-light: #4fb1f9;--accent-light-rgb: 79, 177, 249;--accent-lighter: #8ae1fd;--accent-lighter-rgb: 138, 225, 253;--alert: #df4561;--alert-rgb: 223, 69, 97;--alert-dark: #bb2b45;--alert-dark-rgb: 187, 43, 69;--accent-alert-light: #f37c91;--accent-alert-light-rgb: 243, 124, 145;--cream: #fafafa;--cream-rgb: 250, 250, 250;--hover: #42b7ff;--hover-rgb: 66, 183, 255;--active: #0a75cc;--active-rgb: 10, 117, 204;--border: #d9d9d9;--border-rgb: 217, 217, 217}:root{--gray-100: #16161e;--gray-100-rgb: 22, 22, 30;--gray-95: #3f3d4b;--gray-95-rgb: 63, 61, 75;--gray-90: #525061;--gray-90-rgb: 82, 80, 97;--gray-75: #838192;--gray-75-rgb: 131, 129, 146;--gray-50: #bcbac8;--gray-50-rgb: 188, 186, 200;--gray-25: #dbdae2;--gray-25-rgb: 219, 218, 226;--gray-10: #ebeaf0;--gray-10-rgb: 235, 234, 240;--gray-5: #f7f7fc;--gray-5-rgb: 247, 247, 252;--black-100: #000000;--black-100-rgb: 0, 0, 0;--black-75: #616161;--black-75-rgb: 97, 97, 97;--black-50: #838192;--black-50-rgb: 131, 129, 146;--black-25: #bcbac8;--black-25-rgb: 188, 186, 200;--black-10: #ebeaf0;--black-10-rgb: 235, 234, 240;--white-100: #ffffff;--white-100-rgb: 255, 255, 255}:root{--heading-font-weight: 700;--heading-font-size-xl: 3.75rem;--heading-line-height-xl: 4.875rem;--heading-font-size-l: 3rem;--heading-line-height-l: 3.9375rem;--heading-font-size: 2.25rem;--heading-line-height: 2.875rem;--heading-font-size-s: 1.5rem;--heading-line-height-s: 2rem;--body-font-size: 1rem;--body-line-height: 1.3125rem;--body-weight: normal;--body-bold: bold;--body-font-size-large: 1.5rem;--body-line-height-large: 1.625rem;--body-font-size-medium: 1.125;--body-line-height-medium: 1rem;--body-font-size-small: .875rem;--body-line-height-small: 1.125rem;--body-font-size-tiny: .75rem;--body-line-height-tiny: 1rem;--quote-font-size-large: 1.5rem;--quote-line-height-large: 2rem;--quote-font-weight-large: normal;--quote-font-size: 1rem;--quote-line-height: 1.3125rem;--quote-font-weight: normal;--form-input-font-size: 1rem;--form-input-line-height: 1.3125rem;--form-input-font-weight: bold;--form-hint-font-size: .875rem;--form-hint-line-height: 1.3125rem;--form-hint-font-weight: normal;--form-label-font-size: .875rem;--form-label-line-height: 1.3125rem;--form-label-font-weight: normal;--form-dropdown-font-size: 1rem;--form-dropdown-line-height: 1.3125rem;--form-dropdown-font-weight: normal;--table-font-size: .875rem;--table-line-height: 1.0625rem;--table-header-font-weight: bold;--table-body-font-weight: normal;--table-body-secondary-line-height: 1.3125rem;--button-font-size: 1rem;--button-line-height: 1.25rem;--button-font-weight: bold;--font-size-small: .75rem;--font-weight-small: 400;--font-line-height-small: 1.25rem;--font-weight-700: 700}:root{--spacing: 8px;--border-radius: 6px;--border-radius-soft: 4px;--transition-soft: .3s;--transition-long: .75s}*{box-sizing:border-box}._h1_1hro6_1{font-size:var(--heading-font-size-xl);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-xl);margin:0}._h1--bold_1hro6_7{font-weight:var(--typography-heading-bold)}._h2_1hro6_11{font-size:var(--heading-font-size-l);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-l);margin:0}._h2--bold_1hro6_17{font-weight:var(--typography-heading-bold)}._h3_1hro6_21{font-size:var(--heading-font-size);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height);margin:0}._h3--bold_1hro6_27{font-weight:var(--typography-heading-bold)}._h4_1hro6_31{font-size:var(--heading-font-size-s);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-s);margin:0}._h4--bold_1hro6_37{font-weight:var(--typography-heading-bold)}._body_1hro6_41{font-size:var(--body-font-size);font-weight:var(--body-weight);line-height:var(--body-line-height)}._body--large_1hro6_46{font-size:var(--body-font-size-large);line-height:var(--body-line-height-large)}._body--medium_1hro6_50{font-size:var(--body-font-size-medium);line-height:var(--body-line-height-medium)}._body--small_1hro6_54{font-size:var(--body-font-size-small);line-height:var(--body-line-height-small)}._body--tiny_1hro6_58{font-size:var(--body-font-size-tiny);line-height:var(--body-line-height-tiny)}._body--bold_1hro6_62{font-weight:var(--body-bold)}._body--strikethrough_1hro6_65{text-decoration:line-through}._body--underlined_1hro6_68{text-decoration:underline}._body--strikethrough-underlined_1hro6_71{text-decoration:underline line-through}._quote_1hro6_75{font-size:var(--quote-font-size);font-weight:var(--quote-font-weight);line-height:var(--quote-line-height)}._quote--large_1hro6_80{font-size:var(--quote-font-size-large);font-weight:var(--quote-font-weight-large);line-height:var(--quote-line-height-large)}._quote--bold_1hro6_85{font-weight:var(--body-bold)}._quote--strikethrough_1hro6_88{text-decoration:line-through}._quote--underlined_1hro6_91{text-decoration:underline}._quote--strikethrough-underlined_1hro6_94{text-decoration:underline line-through}._form__input_1hro6_98{font-size:var(--form-input-font-size);font-weight:var(--form-input-font-weight);line-height:var(--form-input-line-height)}._form__hint_1hro6_103{font-size:var(--form-hint-font-size);font-weight:var(--form-hint-font-weight);line-height:var(--form-hint-line-height)}._form__label_1hro6_108{font-size:var(--form-label-font-size);font-weight:var(--form-label-font-weight);line-height:var(--form-label-line-height)}._form__dropdown_1hro6_113{font-size:var(--form-dropdown-font-size);font-weight:var(--form-dropdown-font-weight);line-height:var(--form-dropdown-line-height)}._form--bold_1hro6_118{font-weight:var(--body-bold)}._form--strikethrough_1hro6_121{text-decoration:line-through}._form--underlined_1hro6_124{text-decoration:underline}._form--strikethrough-underlined_1hro6_127{text-decoration:underline line-through}._table__header_1hro6_131{font-size:var(--table-font-size);line-height:var(--table-line-height);font-weight:var(--table-header-font-weight)}._table__body_1hro6_136{font-size:var(--table-font-size);line-height:var(--table-line-height);font-weight:var(--table-body-font-weight)}._table__body--secondary_1hro6_141{font-size:var(--table-font-size);line-height:var(--table-line-height);line-height:var(--table-body-secondary-line-height)}._table--bold_1hro6_146{font-weight:var(--body-bold)}._table--strikethrough_1hro6_149{text-decoration:line-through}._table--underlined_1hro6_152{text-decoration:underline}._table--strikethrough-underlined_1hro6_155{text-decoration:underline line-through}._button_1hro6_159{font-size:var(--button-font-size);font-weight:var(--button-font-weight);line-height:var(--button-line-height);font-family:Lato,Inter,system-ui,Avenir,Helvetica,Arial,sans-serif}._button--bold_1hro6_165{font-weight:var(--body-bold)}._button--strikethrough_1hro6_168{text-decoration:line-through}._button--underlined_1hro6_171{text-decoration:underline}._button--strikethrough-underlined_1hro6_174{text-decoration:underline line-through}._SM_1hro6_178,._chip_1hro6_178{font-size:var(--font-size-small);font-weight:var(--font-weight-small);line-height:var(--font-line-height-small)}._SM--bold_1hro6_183,._chip_1hro6_178{font-weight:var(--font-weight-700)}._chip_1hro6_178{display:flex;align-items:center;width:fit-content;padding:.375rem .5rem;background-color:var(--cream);border-width:1px;border-radius:calc(var(--border-radius-soft) * 4)}._chip_1hro6_178:not(:disabled){color:rgb(var(--gray-95-rgb) .65)}._chip--button_1hro6_199{cursor:pointer;border-color:transparent}._chip--button_1hro6_199:disabled{cursor:initial}._chip--button_1hro6_199:focus-visible{outline:none}._chip--button_1hro6_199:focus{outline:2px solid var(--black-100)}._chip--outlined_1hro6_212{padding:.3125rem .5rem;background-color:var(--white-100);border:1px solid var(--border);border-radius:calc(var(--border-radius-soft) * 4)}._chip--contained_1hro6_218{padding:.3125rem .5rem;border:1px solid var(--border);border-color:var(--accent);border-radius:calc(var(--border-radius-soft) * 4)}._chip__adornment_1hro6_224{display:flex;align-items:center;margin-right:.5rem}._chip__remove_1hro6_229{display:flex;margin-left:.5rem}._chip__remove_1hro6_229:focus-visible{outline:none}._chip__remove_1hro6_229:focus:not(:disabled){border-radius:calc(var(--border-radius-soft) * 4);outline:2px solid var(--black-100)}._chip__remove--disabled_1hro6_240{cursor:default}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._h1_f1r29_1{font-size:var(--heading-font-size-xl);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-xl);margin:0}._h1--bold_f1r29_7{font-weight:var(--typography-heading-bold)}._h2_f1r29_11{font-size:var(--heading-font-size-l);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-l);margin:0}._h2--bold_f1r29_17{font-weight:var(--typography-heading-bold)}._h3_f1r29_21{font-size:var(--heading-font-size);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height);margin:0}._h3--bold_f1r29_27{font-weight:var(--typography-heading-bold)}._h4_f1r29_31{font-size:var(--heading-font-size-s);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-s);margin:0}._h4--bold_f1r29_37{font-weight:var(--typography-heading-bold)}._body_f1r29_41{font-size:var(--body-font-size);font-weight:var(--body-weight);line-height:var(--body-line-height)}._body--large_f1r29_46{font-size:var(--body-font-size-large);line-height:var(--body-line-height-large)}._body--medium_f1r29_50{font-size:var(--body-font-size-medium);line-height:var(--body-line-height-medium)}._body--small_f1r29_54{font-size:var(--body-font-size-small);line-height:var(--body-line-height-small)}._body--tiny_f1r29_58{font-size:var(--body-font-size-tiny);line-height:var(--body-line-height-tiny)}._body--bold_f1r29_62{font-weight:var(--body-bold)}._body--strikethrough_f1r29_65{text-decoration:line-through}._body--underlined_f1r29_68{text-decoration:underline}._body--strikethrough-underlined_f1r29_71{text-decoration:underline line-through}._quote_f1r29_75{font-size:var(--quote-font-size);font-weight:var(--quote-font-weight);line-height:var(--quote-line-height)}._quote--large_f1r29_80{font-size:var(--quote-font-size-large);font-weight:var(--quote-font-weight-large);line-height:var(--quote-line-height-large)}._quote--bold_f1r29_85{font-weight:var(--body-bold)}._quote--strikethrough_f1r29_88{text-decoration:line-through}._quote--underlined_f1r29_91{text-decoration:underline}._quote--strikethrough-underlined_f1r29_94{text-decoration:underline line-through}._form__input_f1r29_98{font-size:var(--form-input-font-size);font-weight:var(--form-input-font-weight);line-height:var(--form-input-line-height)}._form__hint_f1r29_103{font-size:var(--form-hint-font-size);font-weight:var(--form-hint-font-weight);line-height:var(--form-hint-line-height)}._form__label_f1r29_108{font-size:var(--form-label-font-size);font-weight:var(--form-label-font-weight);line-height:var(--form-label-line-height)}._form__dropdown_f1r29_113{font-size:var(--form-dropdown-font-size);font-weight:var(--form-dropdown-font-weight);line-height:var(--form-dropdown-line-height)}._form--bold_f1r29_118{font-weight:var(--body-bold)}._form--strikethrough_f1r29_121{text-decoration:line-through}._form--underlined_f1r29_124{text-decoration:underline}._form--strikethrough-underlined_f1r29_127{text-decoration:underline line-through}._table__header_f1r29_131{font-size:var(--table-font-size);line-height:var(--table-line-height);font-weight:var(--table-header-font-weight)}._table__body_f1r29_136{font-size:var(--table-font-size);line-height:var(--table-line-height);font-weight:var(--table-body-font-weight)}._table__body--secondary_f1r29_141{font-size:var(--table-font-size);line-height:var(--table-line-height);line-height:var(--table-body-secondary-line-height)}._table--bold_f1r29_146{font-weight:var(--body-bold)}._table--strikethrough_f1r29_149{text-decoration:line-through}._table--underlined_f1r29_152{text-decoration:underline}._table--strikethrough-underlined_f1r29_155{text-decoration:underline line-through}._button_f1r29_159{font-size:var(--button-font-size);font-weight:var(--button-font-weight);line-height:var(--button-line-height);font-family:Lato,Inter,system-ui,Avenir,Helvetica,Arial,sans-serif}._button--bold_f1r29_165{font-weight:var(--body-bold)}._button--strikethrough_f1r29_168{text-decoration:line-through}._button--underlined_f1r29_171{text-decoration:underline}._button--strikethrough-underlined_f1r29_174{text-decoration:underline line-through}._SM_f1r29_178{font-size:var(--font-size-small);font-weight:var(--font-weight-small);line-height:var(--font-line-height-small)}._SM--bold_f1r29_183{font-weight:var(--font-weight-700)}._icon-button_f1r29_187{font-size:var(--button-font-size);font-weight:var(--button-font-weight);line-height:var(--button-line-height);padding:10px;cursor:pointer;background-color:transparent;border:none}._icon-button_f1r29_187:focus-visible{outline:none}._icon-button--primary_f1r29_199{color:var(--accent);fill:var(--accent)}._icon-button--primary_f1r29_199:hover{color:var(--accent-dark);fill:var(--accent-dark)}._icon-button--primary_f1r29_199:active{color:var(--accent-light);fill:var(--accent-light)}._icon-button--primary_f1r29_199:focus{color:var(--black-100);outline:2px solid var(--black-100);fill:var(--black-100)}._icon-button--primary_f1r29_199:disabled{color:var(--gray-50);cursor:default;fill:var(--gray-50)}._icon-button--square_f1r29_221{color:var(--accent);border:1px solid var(--gray-10);border-radius:6px;fill:var(--accent)}._icon-button--square_f1r29_221:focus{color:var(--black-100);outline:2px solid var(--black-100);fill:var(--black-100)}._icon-button--square_f1r29_221:disabled{color:var(--gray-50);cursor:default;fill:var(--gray-50)}._icon-button__container_f1r29_237{display:flex;gap:8px;align-items:center;text-wrap:nowrap}
|
package/dist/assets/Input.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._input__label_1fy22_1{display:block;margin-bottom:.3125rem;color:var(--gray-75)}._input__input-el-wrapper_1fy22_6{display:flex;align-items:center;border:solid .0625rem var(--gray-25);border-radius:.375rem;transition:all .3s}._input__input-el_1fy22_6{all:unset;width:100%;height:2.5rem;padding:0 1rem;font-size:var(--form-input-font-size);font-weight:var(--form-input-font-weight);line-height:var(--form-input-line-height);color:var(--gray-90);outline:none}._input__input-el_1fy22_6::placeholder{color:var(--gray-50)}._input__left-icon_1fy22_27{height:1rem;padding-left:1rem}._input__right-icon_1fy22_31{height:1rem;padding-right:1rem}._input__messages-wrapper_1fy22_35{display:flex;align-items:center;justify-content:space-between}._input__messages-wrapper_1fy22_35:not(:empty){margin-top:.3125rem}._input__info-message_1fy22_43,._input__error-message_1fy22_43{display:flex;gap:.375rem;align-items:center}._input__info-message_1fy22_43{color:var(--gray-75)}._input__error-message_1fy22_43{color:var(--alert)}._input__chars-counter_1fy22_54{margin-left:auto;color:var(--gray-75)}._input--disabled_1fy22_58 ._input__input-el_1fy22_6{color:var(--gray-50)}._input_1fy22_1:has(._input--disabled_1fy22_58) ._input__label_1fy22_1{color:var(--gray-25)}._input--focused_1fy22_64._input__input-el-wrapper_1fy22_6{border-color:var(--accent)}._input--error_1fy22_67._input__input-el-wrapper_1fy22_6{border-color:var(--alert)}._input__input-el-wrapper_1fy22_6:hover:not(._input--disabled_1fy22_58,._input--focused_1fy22_64,._input--error_1fy22_67){border-color:var(--gray-75)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._inputSearch_lmxu2_1 input[type=search]::-webkit-search-cancel-button{width:1rem;height:1rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;pointer-events:none;background:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3694_1860)'%3e%3cpath%20d='M7.97207%206.94064L9.46895%205.46876C9.7627%205.17814%2010.2377%205.17814%2010.5033%205.46876C10.8221%205.76251%2010.8221%206.23751%2010.5033%206.50314L9.05957%207.97189L10.5033%209.46876C10.8221%209.76251%2010.8221%2010.2375%2010.5033%2010.5031C10.2377%2010.8219%209.7627%2010.8219%209.46895%2010.5031L7.97207%209.05939L6.50332%2010.5031C6.2377%2010.8219%205.7627%2010.8219%205.46895%2010.5031C5.17832%2010.2375%205.17832%209.76251%205.46895%209.46876L6.94082%207.97189L5.46895%206.50314C5.17832%206.23751%205.17832%205.76251%205.46895%205.46876C5.7627%205.17814%206.2377%205.17814%206.50332%205.46876L7.97207%206.94064Z'%20fill='%23838192'/%3e%3cpath%20opacity='0.4'%20d='M0%208C0%203.58125%203.58125%200%208%200C12.4187%200%2016%203.58125%2016%208C16%2012.4187%2012.4187%2016%208%2016C3.58125%2016%200%2012.4187%200%208ZM5.46875%206.50313L6.94063%207.97188L5.46875%209.46875C5.17812%209.7625%205.17812%2010.2375%205.46875%2010.5031C5.7625%2010.8219%206.2375%2010.8219%206.50313%2010.5031L7.97188%209.05937L9.46875%2010.5031C9.7625%2010.8219%2010.2375%2010.8219%2010.5031%2010.5031C10.8219%2010.2375%2010.8219%209.7625%2010.5031%209.46875L9.05937%207.97188L10.5031%206.50313C10.8219%206.2375%2010.8219%205.7625%2010.5031%205.46875C10.2375%205.17812%209.7625%205.17812%209.46875%205.46875L7.97188%206.94063L6.50313%205.46875C6.2375%205.17812%205.7625%205.17812%205.46875%205.46875C5.17812%205.7625%205.17812%206.2375%205.46875%206.50313Z'%20fill='%23838192'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_3694_1860'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e") no-repeat 50% 50%;background-size:contain;border-radius:50%;opacity:0}._inputSearch_lmxu2_1 input[type=search]:focus::-webkit-search-cancel-button{pointer-events:all;cursor:pointer;opacity:1}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._select_yw431_1{background-color:red}._select__listbox_yw431_4{min-width:10.75rem;padding:.5rem;margin-top:.25rem;background-color:#fff;border-radius:var(--border-radius);box-shadow:0 6px 12px rgba(var(--black-100-rgb),20%)}._select__listbox__option_yw431_12{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_yw431_20{display:flex;margin-right:.5rem}._select__listbox__option__text_yw431_24{font-weight:700}._select__listbox__option_yw431_12:hover:not(._select__listbox__option--disabled_yw431_27){padding:.625rem;color:var(--accent);background-color:rgba(var(--black-100-rgb),4%);border-radius:var(--border-radius-soft)}._select__listbox__option_yw431_12:active:not(._select__listbox__option--disabled_yw431_27){color:var(--accent-dark)}._select__listbox__option--selected_yw431_36{background-color:var(--accent-lighter)}._select__listbox__option--disabled_yw431_27{color:rgba(var(--gray-95-rgb),25%);cursor:default;border:transparent}._select__listbox__option--disabled_yw431_27 ._select__list__option__icon_yw431_44{color:rgba(var(--gray-95-rgb),25%);fill:rgba(var(--gray-95-rgb),25%)}._select-button_yw431_49{display:flex;align-items:center;justify-content:space-between;width:11.875rem;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__text_yw431_62{width:100%;overflow:hidden;text-align:start;text-overflow:ellipsis;text-wrap:nowrap}._select-button__text__prefix_yw431_69{margin-right:.625rem}._select-button__icon_yw431_72{display:flex}._select-button__icon_yw431_72 svg{color:rgba(var(--gray-95-rgb),88%)}._select-button--active_yw431_78{border:1px solid var(--accent)}._select-button_yw431_49:disabled{color:rgba(var(--gray-95-rgb),25%);cursor:default;border:1px solid var(--gray-10)}._select-button_yw431_49:disabled ._select-button__icon_yw431_72 svg{color:rgba(var(--gray-95-rgb),25%)}._select-button_yw431_49:hover:not(._select-button_yw431_49:disabled){border:1px solid var(--gray-25)}._select-button_yw431_49:focus:not(._select-button_yw431_49:disabled),._select-button_yw431_49:active:not(._select-button_yw431_49:disabled){border:1px solid var(--accent)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._h1_1elsk_1{font-size:var(--heading-font-size-xl);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-xl);margin:0}._h1--bold_1elsk_7{font-weight:var(--typography-heading-bold)}._h2_1elsk_11{font-size:var(--heading-font-size-l);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-l);margin:0}._h2--bold_1elsk_17{font-weight:var(--typography-heading-bold)}._h3_1elsk_21{font-size:var(--heading-font-size);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height);margin:0}._h3--bold_1elsk_27{font-weight:var(--typography-heading-bold)}._h4_1elsk_31{font-size:var(--heading-font-size-s);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-s);margin:0}._h4--bold_1elsk_37{font-weight:var(--typography-heading-bold)}._body_1elsk_41{font-size:var(--body-font-size);font-weight:var(--body-weight);line-height:var(--body-line-height)}._body--large_1elsk_46{font-size:var(--body-font-size-large);line-height:var(--body-line-height-large)}._body--medium_1elsk_50{font-size:var(--body-font-size-medium);line-height:var(--body-line-height-medium)}._body--small_1elsk_54{font-size:var(--body-font-size-small);line-height:var(--body-line-height-small)}._body--tiny_1elsk_58{font-size:var(--body-font-size-tiny);line-height:var(--body-line-height-tiny)}._body--bold_1elsk_62{font-weight:var(--body-bold)}._body--strikethrough_1elsk_65{text-decoration:line-through}._body--underlined_1elsk_68{text-decoration:underline}._body--strikethrough-underlined_1elsk_71{text-decoration:underline line-through}._quote_1elsk_75{font-size:var(--quote-font-size);font-weight:var(--quote-font-weight);line-height:var(--quote-line-height)}._quote--large_1elsk_80{font-size:var(--quote-font-size-large);font-weight:var(--quote-font-weight-large);line-height:var(--quote-line-height-large)}._quote--bold_1elsk_85{font-weight:var(--body-bold)}._quote--strikethrough_1elsk_88{text-decoration:line-through}._quote--underlined_1elsk_91{text-decoration:underline}._quote--strikethrough-underlined_1elsk_94{text-decoration:underline line-through}._form__input_1elsk_98{font-size:var(--form-input-font-size);font-weight:var(--form-input-font-weight);line-height:var(--form-input-line-height)}._form__hint_1elsk_103{font-size:var(--form-hint-font-size);font-weight:var(--form-hint-font-weight);line-height:var(--form-hint-line-height)}._form__label_1elsk_108{font-size:var(--form-label-font-size);font-weight:var(--form-label-font-weight);line-height:var(--form-label-line-height)}._form__dropdown_1elsk_113{font-size:var(--form-dropdown-font-size);font-weight:var(--form-dropdown-font-weight);line-height:var(--form-dropdown-line-height)}._form--bold_1elsk_118{font-weight:var(--body-bold)}._form--strikethrough_1elsk_121{text-decoration:line-through}._form--underlined_1elsk_124{text-decoration:underline}._form--strikethrough-underlined_1elsk_127{text-decoration:underline line-through}._table__header_1elsk_131{font-size:var(--table-font-size);line-height:var(--table-line-height);font-weight:var(--table-header-font-weight)}._table__body_1elsk_136{font-size:var(--table-font-size);line-height:var(--table-line-height);font-weight:var(--table-body-font-weight)}._table__body--secondary_1elsk_141{font-size:var(--table-font-size);line-height:var(--table-line-height);line-height:var(--table-body-secondary-line-height)}._table--bold_1elsk_146{font-weight:var(--body-bold)}._table--strikethrough_1elsk_149{text-decoration:line-through}._table--underlined_1elsk_152{text-decoration:underline}._table--strikethrough-underlined_1elsk_155{text-decoration:underline line-through}._button_1elsk_159{font-size:var(--button-font-size);font-weight:var(--button-font-weight);line-height:var(--button-line-height);font-family:Lato,Inter,system-ui,Avenir,Helvetica,Arial,sans-serif}._button--bold_1elsk_165{font-weight:var(--body-bold)}._button--strikethrough_1elsk_168{text-decoration:line-through}._button--underlined_1elsk_171{text-decoration:underline}._button--strikethrough-underlined_1elsk_174{text-decoration:underline line-through}._SM_1elsk_178{font-size:var(--font-size-small);font-weight:var(--font-weight-small);line-height:var(--font-line-height-small)}._SM--bold_1elsk_183{font-weight:var(--font-weight-700)}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { a as c } from "./objectWithoutPropertiesLoose-D7Cp0Pg_.js";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { e as E } from "./index-CqjC7P5Y.js";
|
|
4
|
+
const m = {
|
|
5
|
+
blur: "list:blur",
|
|
6
|
+
focus: "list:focus",
|
|
7
|
+
itemClick: "list:itemClick",
|
|
8
|
+
itemHover: "list:itemHover",
|
|
9
|
+
itemsChange: "list:itemsChange",
|
|
10
|
+
keyDown: "list:keyDown",
|
|
11
|
+
resetHighlight: "list:resetHighlight",
|
|
12
|
+
highlightLast: "list:highlightLast",
|
|
13
|
+
textNavigation: "list:textNavigation",
|
|
14
|
+
clearSelection: "list:clearSelection"
|
|
15
|
+
}, f = /* @__PURE__ */ r.createContext(null);
|
|
16
|
+
process.env.NODE_ENV !== "production" && (f.displayName = "ListContext");
|
|
17
|
+
function H(l) {
|
|
18
|
+
const {
|
|
19
|
+
handlePointerOverEvents: a = !1,
|
|
20
|
+
item: t
|
|
21
|
+
} = l, s = r.useContext(f);
|
|
22
|
+
if (!s)
|
|
23
|
+
throw new Error("useListItem must be used within a ListProvider");
|
|
24
|
+
const {
|
|
25
|
+
dispatch: n,
|
|
26
|
+
getItemState: u
|
|
27
|
+
} = s, {
|
|
28
|
+
highlighted: d,
|
|
29
|
+
selected: p,
|
|
30
|
+
focusable: g
|
|
31
|
+
} = u(t), v = r.useCallback((i) => (e) => {
|
|
32
|
+
var o;
|
|
33
|
+
if ((o = i.onClick) == null || o.call(i, e), !e.defaultPrevented) {
|
|
34
|
+
if (process.env.NODE_ENV !== "production" && t === void 0)
|
|
35
|
+
throw new Error(["MUI: The `item` provided to useListItem() is undefined.", "This should happen only during server-side rendering under React 17."].join(`
|
|
36
|
+
`));
|
|
37
|
+
n({
|
|
38
|
+
type: m.itemClick,
|
|
39
|
+
item: t,
|
|
40
|
+
event: e
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}, [n, t]), C = r.useCallback((i) => (e) => {
|
|
44
|
+
var o;
|
|
45
|
+
if ((o = i.onMouseOver) == null || o.call(i, e), !e.defaultPrevented) {
|
|
46
|
+
if (process.env.NODE_ENV !== "production" && t === void 0)
|
|
47
|
+
throw new Error(["MUI: The `item` provided to useListItem() is undefined.", "This should happen only during server-side rendering under React 17."].join(`
|
|
48
|
+
`));
|
|
49
|
+
n({
|
|
50
|
+
type: m.itemHover,
|
|
51
|
+
item: t,
|
|
52
|
+
event: e
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}, [n, t]);
|
|
56
|
+
let h;
|
|
57
|
+
return g && (h = d ? 0 : -1), {
|
|
58
|
+
getRootProps: (i = {}) => {
|
|
59
|
+
const e = E(i);
|
|
60
|
+
return c({}, i, {
|
|
61
|
+
onClick: v(e),
|
|
62
|
+
onPointerOver: a ? C(e) : void 0,
|
|
63
|
+
tabIndex: h
|
|
64
|
+
});
|
|
65
|
+
},
|
|
66
|
+
highlighted: d,
|
|
67
|
+
selected: p
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function b(l, a) {
|
|
71
|
+
return function(s = {}) {
|
|
72
|
+
const n = c({}, s, l(s));
|
|
73
|
+
return c({}, n, a(n));
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
export {
|
|
77
|
+
m as L,
|
|
78
|
+
f as a,
|
|
79
|
+
b as c,
|
|
80
|
+
H as u
|
|
81
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Either } from '../../types/helpers';
|
|
2
|
+
import { ButtonOwnProps as MUIButtonBaseProps } from '@mui/base';
|
|
2
3
|
import { ReactNode } from 'react';
|
|
3
4
|
|
|
4
5
|
type Variant = 'primary' | 'secondary' | 'quick';
|
|
@@ -7,12 +8,14 @@ type ButtonCoreProps = {
|
|
|
7
8
|
loading?: boolean;
|
|
8
9
|
/** Button to display and act in a disabled state */
|
|
9
10
|
disabled?: boolean;
|
|
10
|
-
/** Space
|
|
11
|
+
/** Space separated list of CSS classes to apply */
|
|
11
12
|
className?: string;
|
|
12
13
|
/** Text or children to display */
|
|
13
14
|
children: ReactNode;
|
|
14
|
-
/**
|
|
15
|
+
/** alternative style to use*/
|
|
15
16
|
variant?: Variant;
|
|
17
|
+
/** mui base button props */
|
|
18
|
+
muiButtonBaseProps?: MUIButtonBaseProps;
|
|
16
19
|
};
|
|
17
20
|
interface ButtonPropsWithLink extends ButtonCoreProps {
|
|
18
21
|
/** link for component to navigate to, if provide component will be an anchor */
|
|
@@ -1,70 +1,94 @@
|
|
|
1
1
|
import '../../assets/Button.css';
|
|
2
|
-
import { jsx as e, jsxs as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { c as
|
|
5
|
-
import { LoadingSpinner as
|
|
6
|
-
import { B as
|
|
7
|
-
const
|
|
8
|
-
h1:
|
|
9
|
-
"h1--bold": "_h1--
|
|
10
|
-
h2:
|
|
11
|
-
"h2--bold": "_h2--
|
|
12
|
-
h3:
|
|
13
|
-
"h3--bold": "_h3--
|
|
14
|
-
h4:
|
|
15
|
-
"h4--bold": "_h4--
|
|
16
|
-
body:
|
|
17
|
-
"body--large": "_body--
|
|
18
|
-
"body--medium": "_body--
|
|
19
|
-
"body--small": "_body--
|
|
20
|
-
"body--tiny": "_body--
|
|
21
|
-
"body--bold": "_body--
|
|
22
|
-
"body--strikethrough": "_body--
|
|
23
|
-
"body--underlined": "_body--
|
|
24
|
-
"body--strikethrough-underlined": "_body--strikethrough-
|
|
25
|
-
quote:
|
|
26
|
-
"quote--large": "_quote--
|
|
27
|
-
"quote--bold": "_quote--
|
|
28
|
-
"quote--strikethrough": "_quote--
|
|
29
|
-
"quote--underlined": "_quote--
|
|
30
|
-
"quote--strikethrough-underlined": "_quote--strikethrough-
|
|
31
|
-
form__input:
|
|
32
|
-
form__hint:
|
|
33
|
-
form__label:
|
|
34
|
-
form__dropdown:
|
|
35
|
-
"form--bold": "_form--
|
|
36
|
-
"form--strikethrough": "_form--
|
|
37
|
-
"form--underlined": "_form--
|
|
38
|
-
"form--strikethrough-underlined": "_form--strikethrough-
|
|
39
|
-
table__header:
|
|
40
|
-
table__body:
|
|
41
|
-
"table__body--secondary": "_table__body--
|
|
42
|
-
"table--bold": "_table--
|
|
43
|
-
"table--strikethrough": "_table--
|
|
44
|
-
"table--underlined": "_table--
|
|
45
|
-
"table--strikethrough-underlined": "_table--strikethrough-
|
|
46
|
-
button:
|
|
47
|
-
"button--bold": "_button--
|
|
48
|
-
"button--strikethrough": "_button--
|
|
49
|
-
"button--underlined": "_button--
|
|
50
|
-
"button--strikethrough-underlined": "_button--strikethrough-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
"button--
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
2
|
+
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as c, useMemo as y } from "react";
|
|
4
|
+
import { c as g } from "../../clsx-DB4S2d7J.js";
|
|
5
|
+
import { LoadingSpinner as f } from "../LoadingSpinner/LoadingSpinner.js";
|
|
6
|
+
import { B as p } from "../../Button-B1umG8kJ.js";
|
|
7
|
+
const q = "_h1_10k5d_1", S = "_h2_10k5d_11", M = "_h3_10k5d_21", B = "_h4_10k5d_31", w = "_body_10k5d_41", x = "_quote_10k5d_75", N = "_form__input_10k5d_98", v = "_form__hint_10k5d_103", j = "_form__label_10k5d_108", P = "_form__dropdown_10k5d_113", $ = "_table__header_10k5d_131", C = "_table__body_10k5d_136", L = "_button_10k5d_159", R = "_SM_10k5d_178", o = {
|
|
8
|
+
h1: q,
|
|
9
|
+
"h1--bold": "_h1--bold_10k5d_7",
|
|
10
|
+
h2: S,
|
|
11
|
+
"h2--bold": "_h2--bold_10k5d_17",
|
|
12
|
+
h3: M,
|
|
13
|
+
"h3--bold": "_h3--bold_10k5d_27",
|
|
14
|
+
h4: B,
|
|
15
|
+
"h4--bold": "_h4--bold_10k5d_37",
|
|
16
|
+
body: w,
|
|
17
|
+
"body--large": "_body--large_10k5d_46",
|
|
18
|
+
"body--medium": "_body--medium_10k5d_50",
|
|
19
|
+
"body--small": "_body--small_10k5d_54",
|
|
20
|
+
"body--tiny": "_body--tiny_10k5d_58",
|
|
21
|
+
"body--bold": "_body--bold_10k5d_62",
|
|
22
|
+
"body--strikethrough": "_body--strikethrough_10k5d_65",
|
|
23
|
+
"body--underlined": "_body--underlined_10k5d_68",
|
|
24
|
+
"body--strikethrough-underlined": "_body--strikethrough-underlined_10k5d_71",
|
|
25
|
+
quote: x,
|
|
26
|
+
"quote--large": "_quote--large_10k5d_80",
|
|
27
|
+
"quote--bold": "_quote--bold_10k5d_85",
|
|
28
|
+
"quote--strikethrough": "_quote--strikethrough_10k5d_88",
|
|
29
|
+
"quote--underlined": "_quote--underlined_10k5d_91",
|
|
30
|
+
"quote--strikethrough-underlined": "_quote--strikethrough-underlined_10k5d_94",
|
|
31
|
+
form__input: N,
|
|
32
|
+
form__hint: v,
|
|
33
|
+
form__label: j,
|
|
34
|
+
form__dropdown: P,
|
|
35
|
+
"form--bold": "_form--bold_10k5d_118",
|
|
36
|
+
"form--strikethrough": "_form--strikethrough_10k5d_121",
|
|
37
|
+
"form--underlined": "_form--underlined_10k5d_124",
|
|
38
|
+
"form--strikethrough-underlined": "_form--strikethrough-underlined_10k5d_127",
|
|
39
|
+
table__header: $,
|
|
40
|
+
table__body: C,
|
|
41
|
+
"table__body--secondary": "_table__body--secondary_10k5d_141",
|
|
42
|
+
"table--bold": "_table--bold_10k5d_146",
|
|
43
|
+
"table--strikethrough": "_table--strikethrough_10k5d_149",
|
|
44
|
+
"table--underlined": "_table--underlined_10k5d_152",
|
|
45
|
+
"table--strikethrough-underlined": "_table--strikethrough-underlined_10k5d_155",
|
|
46
|
+
button: L,
|
|
47
|
+
"button--bold": "_button--bold_10k5d_165",
|
|
48
|
+
"button--strikethrough": "_button--strikethrough_10k5d_168",
|
|
49
|
+
"button--underlined": "_button--underlined_10k5d_171",
|
|
50
|
+
"button--strikethrough-underlined": "_button--strikethrough-underlined_10k5d_174",
|
|
51
|
+
SM: R,
|
|
52
|
+
"SM--bold": "_SM--bold_10k5d_183",
|
|
53
|
+
"button--primary": "_button--primary_10k5d_199",
|
|
54
|
+
"button--secondary": "_button--secondary_10k5d_218",
|
|
55
|
+
"button--quick": "_button--quick_10k5d_235",
|
|
56
|
+
"button__loading-container": "_button__loading-container_10k5d_258"
|
|
57
|
+
}, G = c((r, n) => {
|
|
58
|
+
const {
|
|
59
|
+
onClick: u,
|
|
60
|
+
link: l,
|
|
61
|
+
loading: b,
|
|
62
|
+
children: d,
|
|
63
|
+
type: i = "button",
|
|
64
|
+
disabled: k,
|
|
65
|
+
className: t,
|
|
66
|
+
variant: _ = "primary",
|
|
67
|
+
muiButtonBaseProps: h
|
|
68
|
+
} = r, s = {
|
|
57
69
|
invert: _ === "secondary" || _ === "quick"
|
|
58
|
-
},
|
|
59
|
-
() =>
|
|
70
|
+
}, a = y(
|
|
71
|
+
() => g([o.button, o[`button--${_}`], t]),
|
|
60
72
|
[t, _]
|
|
61
73
|
);
|
|
62
|
-
return /* @__PURE__ */ e(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
74
|
+
return /* @__PURE__ */ e(
|
|
75
|
+
p,
|
|
76
|
+
{
|
|
77
|
+
type: i,
|
|
78
|
+
href: l,
|
|
79
|
+
onClick: u,
|
|
80
|
+
disabled: k,
|
|
81
|
+
className: a,
|
|
82
|
+
ref: n,
|
|
83
|
+
...h ?? {},
|
|
84
|
+
children: b ? /* @__PURE__ */ m("div", { className: o["button__loading-container"], children: [
|
|
85
|
+
/* @__PURE__ */ e(f, { ...s }),
|
|
86
|
+
d
|
|
87
|
+
] }) : d
|
|
88
|
+
}
|
|
89
|
+
);
|
|
66
90
|
});
|
|
67
91
|
export {
|
|
68
|
-
|
|
69
|
-
|
|
92
|
+
G as Button,
|
|
93
|
+
G as default
|
|
70
94
|
};
|
|
@@ -11,6 +11,7 @@ declare const meta: {
|
|
|
11
11
|
className?: string | undefined;
|
|
12
12
|
children: import('react').ReactNode;
|
|
13
13
|
variant?: ("primary" | "secondary" | "quick") | undefined;
|
|
14
|
+
muiButtonBaseProps?: import('@mui/base').ButtonOwnProps | undefined;
|
|
14
15
|
type?: undefined;
|
|
15
16
|
onClick?: undefined;
|
|
16
17
|
ref?: import('react').LegacyRef<HTMLButtonElement> | undefined;
|
|
@@ -23,6 +24,7 @@ declare const meta: {
|
|
|
23
24
|
className?: string | undefined;
|
|
24
25
|
children: import('react').ReactNode;
|
|
25
26
|
variant?: ("primary" | "secondary" | "quick") | undefined;
|
|
27
|
+
muiButtonBaseProps?: import('@mui/base').ButtonOwnProps | undefined;
|
|
26
28
|
link?: undefined;
|
|
27
29
|
ref?: import('react').LegacyRef<HTMLButtonElement> | undefined;
|
|
28
30
|
key?: import('react').Key | null | undefined;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import '../../assets/global.css';
|
|
2
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
|
|
2
|
+
import "../Chip/Chip.js";
|
|
4
3
|
import { Button as i } from "./Button.js";
|
|
5
4
|
import "react";
|
|
6
5
|
import "../Dialog/Backdrop.js";
|
|
7
6
|
import "../Typography/Typography.js";
|
|
8
7
|
import "../IconButton/IconButton.js";
|
|
8
|
+
import "../Select/Select.js";
|
|
9
9
|
import "../Table/Table.js";
|
|
10
10
|
import "../Tabs/Tabs.js";
|
|
11
|
-
const
|
|
11
|
+
const k = {
|
|
12
12
|
title: "Components/Button",
|
|
13
13
|
component: i,
|
|
14
14
|
tags: ["autodocs"],
|
|
@@ -28,13 +28,13 @@ const d = {
|
|
|
28
28
|
if: { arg: "onClick", exists: !1 }
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
}, k = {
|
|
32
|
-
args: { children: "Button", onClick: () => alert("Button was clicked!") }
|
|
33
31
|
}, f = {
|
|
32
|
+
args: { children: "Button", onClick: () => alert("Button was clicked!") }
|
|
33
|
+
}, g = {
|
|
34
34
|
args: { children: "Button", link: "https://marola.pismolabs.io" }
|
|
35
35
|
};
|
|
36
36
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
g as Link,
|
|
38
|
+
f as Simple,
|
|
39
|
+
k as default
|
|
40
40
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { IconFamilies, IconProps } from '../../main';
|
|
2
|
+
import { ReactElement, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
export type Variant = 'default' | 'contained' | 'outlined';
|
|
5
|
+
type ChipProps = {
|
|
6
|
+
/** Main content to display, typically just some text */
|
|
7
|
+
label: ReactNode;
|
|
8
|
+
/** Whether to show loading state (skeleton) */
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
/** Left icon to display */
|
|
11
|
+
leftAdornment?: ChipAdornmentSlotProps;
|
|
12
|
+
/** Dataset test id only used for tests to reach in and grab the rendered DOM node of the chip wrapper */
|
|
13
|
+
'data-testid'?: string;
|
|
14
|
+
/** Functionality to perform when the main body of the chip is clicked */
|
|
15
|
+
onClickContent?: () => void;
|
|
16
|
+
/** If present an 'x' icon will be on the right side of the button when clicked whatever functionality is passed to
|
|
17
|
+
* this will be executed */
|
|
18
|
+
onClickRemove?: () => void;
|
|
19
|
+
/** Whether to show the button in a disabled state, user will be unable to interact with the chip */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** Any additional classes to apply to the Chip wrapper */
|
|
22
|
+
className?: string;
|
|
23
|
+
/** Which style of chip to show */
|
|
24
|
+
variant?: Variant;
|
|
25
|
+
/** Dataset test id only used for tests, used to hook onto the loading skeleton component for this chip */
|
|
26
|
+
'data-testid-skeleton'?: string;
|
|
27
|
+
};
|
|
28
|
+
export type ChipAdornmentSlotProps = {
|
|
29
|
+
/** The Marola Icon to display */
|
|
30
|
+
icon: ReactElement<IconProps<IconFamilies>>;
|
|
31
|
+
/** Any additional classes to apply to icon */
|
|
32
|
+
className?: string;
|
|
33
|
+
/** Dataset test id only used for tests to reach in and grab the rendered DOM node of the icon */
|
|
34
|
+
'data-testid'?: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const Chip: import('react').ForwardRefExoticComponent<ChipProps & import('react').RefAttributes<unknown>>;
|
|
37
|
+
export {};
|