@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,15 +1,16 @@
|
|
|
1
1
|
import { jsxs as $, jsx as S } from "react/jsx-runtime";
|
|
2
|
-
import { default as
|
|
2
|
+
import { default as Ye } from "./Actions.js";
|
|
3
3
|
import oe from "./Backdrop.js";
|
|
4
4
|
import re from "./CloseIconButton.js";
|
|
5
|
-
import { default as
|
|
5
|
+
import { default as Ge } from "./Content.js";
|
|
6
6
|
import { s as q } from "../../Dialog.module-CGVM5V_D.js";
|
|
7
7
|
import se from "./Title.js";
|
|
8
8
|
import { a as C, _ as ie } from "../../objectWithoutPropertiesLoose-D7Cp0Pg_.js";
|
|
9
9
|
import * as f from "react";
|
|
10
10
|
import { u as Z, P as i, e as ae, g as le, a as ce, b as z, c as de, d as ue } from "../../index-CqjC7P5Y.js";
|
|
11
|
-
import { o as w, e as ee,
|
|
12
|
-
import { P as
|
|
11
|
+
import { o as w, e as ee, u as G } from "../../useEventCallback-vAfOD-oT.js";
|
|
12
|
+
import { P as fe, H as pe } from "../../Portal-D__zvwbZ.js";
|
|
13
|
+
import { e as be } from "../../index-BJ8HbRCy.js";
|
|
13
14
|
function X(...e) {
|
|
14
15
|
return e.reduce((t, o) => o == null ? t : function(...s) {
|
|
15
16
|
t.apply(this, s), o.apply(this, s);
|
|
@@ -187,7 +188,7 @@ process.env.NODE_ENV !== "production" && (W.propTypes = {
|
|
|
187
188
|
*/
|
|
188
189
|
open: i.bool.isRequired
|
|
189
190
|
});
|
|
190
|
-
process.env.NODE_ENV !== "production" && (W.propTypes =
|
|
191
|
+
process.env.NODE_ENV !== "production" && (W.propTypes = be(W.propTypes));
|
|
191
192
|
function Re(e) {
|
|
192
193
|
const t = w(e);
|
|
193
194
|
return t.body === e ? Y(e).innerWidth > t.documentElement.clientWidth : e.scrollHeight > e.clientHeight;
|
|
@@ -478,7 +479,7 @@ const Oe = ["children", "closeAfterTransition", "container", "disableAutoFocus",
|
|
|
478
479
|
className: H.backdrop,
|
|
479
480
|
ownerState: F
|
|
480
481
|
});
|
|
481
|
-
return !c && !I && (!M || y) ? null : /* @__PURE__ */ S(
|
|
482
|
+
return !c && !I && (!M || y) ? null : /* @__PURE__ */ S(fe, {
|
|
482
483
|
ref: T,
|
|
483
484
|
container: a,
|
|
484
485
|
disablePortal: h,
|
|
@@ -518,7 +519,7 @@ process.env.NODE_ENV !== "production" && (ne.propTypes = {
|
|
|
518
519
|
* By default, it uses the body of the top-level document object,
|
|
519
520
|
* so it's simply `document.body` most of the time.
|
|
520
521
|
*/
|
|
521
|
-
container: i.oneOfType([
|
|
522
|
+
container: i.oneOfType([pe, i.func]),
|
|
522
523
|
/**
|
|
523
524
|
* If `true`, the modal will not automatically shift focus to itself when it opens, and
|
|
524
525
|
* replace it to the last focused element when it closes.
|
|
@@ -613,7 +614,7 @@ process.env.NODE_ENV !== "production" && (ne.propTypes = {
|
|
|
613
614
|
root: i.elementType
|
|
614
615
|
})
|
|
615
616
|
});
|
|
616
|
-
const
|
|
617
|
+
const qe = ({
|
|
617
618
|
children: e,
|
|
618
619
|
dialogTitle: t,
|
|
619
620
|
dialogSubtitle: o,
|
|
@@ -638,9 +639,9 @@ const je = ({
|
|
|
638
639
|
}
|
|
639
640
|
);
|
|
640
641
|
export {
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
642
|
+
Ye as Actions,
|
|
643
|
+
Ge as Content,
|
|
644
|
+
qe as Dialog,
|
|
644
645
|
se as DialogTitle,
|
|
645
|
-
|
|
646
|
+
qe as default
|
|
646
647
|
};
|
|
@@ -82,7 +82,7 @@ declare const meta: {
|
|
|
82
82
|
tabIndex?: number | undefined;
|
|
83
83
|
"aria-activedescendant"?: string | undefined;
|
|
84
84
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
85
|
-
"aria-autocomplete"?: "list" | "none" | "
|
|
85
|
+
"aria-autocomplete"?: "list" | "none" | "both" | "inline" | undefined;
|
|
86
86
|
"aria-braillelabel"?: string | undefined;
|
|
87
87
|
"aria-brailleroledescription"?: string | undefined;
|
|
88
88
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
@@ -97,7 +97,7 @@ declare const meta: {
|
|
|
97
97
|
"aria-description"?: string | undefined;
|
|
98
98
|
"aria-details"?: string | undefined;
|
|
99
99
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
100
|
-
"aria-dropeffect"?: "link" | "none" | "copy" | "
|
|
100
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
|
101
101
|
"aria-errormessage"?: string | undefined;
|
|
102
102
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
103
103
|
"aria-flowto"?: string | undefined;
|
|
@@ -119,7 +119,7 @@ declare const meta: {
|
|
|
119
119
|
"aria-posinset"?: number | undefined;
|
|
120
120
|
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
121
121
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
122
|
-
"aria-relevant"?: "text" | "
|
|
122
|
+
"aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
123
123
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
124
124
|
"aria-roledescription"?: string | undefined;
|
|
125
125
|
"aria-rowcount"?: number | undefined;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import '../../assets/global.css';
|
|
2
1
|
import { jsx as e, Fragment as r, jsxs as i } from "react/jsx-runtime";
|
|
3
|
-
import { useState as
|
|
4
|
-
|
|
2
|
+
import { useState as d } from "react";
|
|
3
|
+
import "../Chip/Chip.js";
|
|
5
4
|
import { Button as l } from "../Button/Button.js";
|
|
6
5
|
import { Dialog as a } from "./Dialog.js";
|
|
7
6
|
import "../IconButton/IconButton.js";
|
|
8
7
|
import { Typography as n } from "../Typography/Typography.js";
|
|
8
|
+
import "../Select/Select.js";
|
|
9
9
|
import "../Table/Table.js";
|
|
10
10
|
import "../Tabs/Tabs.js";
|
|
11
11
|
import s from "./Content.js";
|
|
12
12
|
import c from "./Actions.js";
|
|
13
|
-
const
|
|
13
|
+
const y = {
|
|
14
14
|
title: "Components/Dialog",
|
|
15
15
|
component: a,
|
|
16
16
|
tags: ["autodocs"],
|
|
@@ -19,7 +19,7 @@ const q = {
|
|
|
19
19
|
]
|
|
20
20
|
};
|
|
21
21
|
function p(o) {
|
|
22
|
-
const [
|
|
22
|
+
const [m, t] = d(!1);
|
|
23
23
|
return /* @__PURE__ */ i(r, { children: [
|
|
24
24
|
/* @__PURE__ */ e(l, { onClick: () => t(!0), children: "Open" }),
|
|
25
25
|
/* @__PURE__ */ e(
|
|
@@ -27,7 +27,7 @@ function p(o) {
|
|
|
27
27
|
{
|
|
28
28
|
dialogTitle: o.dialogTitle,
|
|
29
29
|
dialogSubtitle: o.dialogSubtitle,
|
|
30
|
-
open:
|
|
30
|
+
open: m,
|
|
31
31
|
onClose: () => {
|
|
32
32
|
t(!1), o != null && o.onClose && (o == null || o.onClose());
|
|
33
33
|
},
|
|
@@ -43,7 +43,7 @@ function p(o) {
|
|
|
43
43
|
)
|
|
44
44
|
] });
|
|
45
45
|
}
|
|
46
|
-
const
|
|
46
|
+
const O = {
|
|
47
47
|
render: p,
|
|
48
48
|
args: {
|
|
49
49
|
dialogTitle: "This is a dialog title",
|
|
@@ -54,6 +54,6 @@ const y = {
|
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
O as Simple,
|
|
58
|
+
y as default
|
|
59
59
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const FamilyAndIcons: {
|
|
2
|
-
readonly 'fa/duotone': readonly ["circle-arrow-right", "eye-slash", "folder-magnifying-glass", "magnifying-glass", "circle-exclamation", "circle-xmark", "xmark"];
|
|
2
|
+
readonly 'fa/duotone': readonly ["calendar-days", "circle-arrow-right", "eye-slash", "folder-magnifying-glass", "magnifying-glass", "circle-exclamation", "circle-xmark", "xmark"];
|
|
3
3
|
readonly pi: readonly ["logo"];
|
|
4
4
|
};
|
|
5
5
|
export type IconFamilies = keyof typeof FamilyAndIcons;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { jsxs as s, jsx as
|
|
1
|
+
import { jsxs as s, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import * as e from "react";
|
|
3
|
-
const
|
|
3
|
+
const C = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", "data-waves-icon": "fa/duotone/calendar-days", fill: "currentColor", color: "currentColor", width: "1em", height: "1em", style: {
|
|
4
|
+
fill: "currentcolor",
|
|
5
|
+
color: "currentcolor",
|
|
6
|
+
width: "1em",
|
|
7
|
+
height: "1em"
|
|
8
|
+
}, ...t }, /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("style", null, ".fa-secondary{opacity:.4}")), /* @__PURE__ */ e.createElement("path", { className: "fa-primary", d: "M160 64H288V32C288 14.33 302.3 0 320 0C337.7 0 352 14.33 352 32V64H400C426.5 64 448 85.49 448 112V192H0V112C0 85.49 21.49 64 48 64H96V32C96 14.33 110.3 0 128 0C145.7 0 160 14.33 160 32V64z" }), /* @__PURE__ */ e.createElement("path", { className: "fa-secondary", d: "M0 192H448V464C448 490.5 426.5 512 400 512H48C21.49 512 0 490.5 0 464V192zM64 304C64 312.8 71.16 320 80 320H112C120.8 320 128 312.8 128 304V272C128 263.2 120.8 256 112 256H80C71.16 256 64 263.2 64 272V304zM208 256C199.2 256 192 263.2 192 272V304C192 312.8 199.2 320 208 320H240C248.8 320 256 312.8 256 304V272C256 263.2 248.8 256 240 256H208zM320 304C320 312.8 327.2 320 336 320H368C376.8 320 384 312.8 384 304V272C384 263.2 376.8 256 368 256H336C327.2 256 320 263.2 320 272V304zM80 384C71.16 384 64 391.2 64 400V432C64 440.8 71.16 448 80 448H112C120.8 448 128 440.8 128 432V400C128 391.2 120.8 384 112 384H80zM192 432C192 440.8 199.2 448 208 448H240C248.8 448 256 440.8 256 432V400C256 391.2 248.8 384 240 384H208C199.2 384 192 391.2 192 400V432zM336 384C327.2 384 320 391.2 320 400V432C320 440.8 327.2 448 336 448H368C376.8 448 384 440.8 384 432V400C384 391.2 376.8 384 368 384H336z" })), i = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", "data-waves-icon": "fa/duotone/circle-arrow-right", fill: "currentColor", color: "currentColor", width: "1em", height: "1em", style: {
|
|
4
9
|
fill: "currentcolor",
|
|
5
10
|
color: "currentcolor",
|
|
6
11
|
width: "1em",
|
|
@@ -14,7 +19,7 @@ const i = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.
|
|
|
14
19
|
.fa-secondary {
|
|
15
20
|
opacity: .4
|
|
16
21
|
}
|
|
17
|
-
`)), /* @__PURE__ */ e.createElement("path", { className: "fa-primary", d: "M256 304c13.25 0 24-10.75 24-24v-128C280 138.8 269.3 128 256 128S232 138.8 232 152v128C232 293.3 242.8 304 256 304zM256 337.1c-17.36 0-31.44 14.08-31.44 31.44C224.6 385.9 238.6 400 256 400s31.44-14.08 31.44-31.44C287.4 351.2 273.4 337.1 256 337.1z" }), /* @__PURE__ */ e.createElement("path", { className: "fa-secondary", d: "M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z" })),
|
|
22
|
+
`)), /* @__PURE__ */ e.createElement("path", { className: "fa-primary", d: "M256 304c13.25 0 24-10.75 24-24v-128C280 138.8 269.3 128 256 128S232 138.8 232 152v128C232 293.3 242.8 304 256 304zM256 337.1c-17.36 0-31.44 14.08-31.44 31.44C224.6 385.9 238.6 400 256 400s31.44-14.08 31.44-31.44C287.4 351.2 273.4 337.1 256 337.1z" }), /* @__PURE__ */ e.createElement("path", { className: "fa-secondary", d: "M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z" })), d = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", "data-waves-icon": "fa/duotone/circle-xmark", fill: "currentColor", color: "currentColor", width: "1em", height: "1em", style: {
|
|
18
23
|
fill: "currentcolor",
|
|
19
24
|
color: "currentcolor",
|
|
20
25
|
width: "1em",
|
|
@@ -32,12 +37,12 @@ const i = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.
|
|
|
32
37
|
.fa-secondary {
|
|
33
38
|
opacity: .4
|
|
34
39
|
}
|
|
35
|
-
`)), /* @__PURE__ */ e.createElement("path", { className: "fa-primary", d: "M5.112 9.196C13.29-1.236 28.37-3.065 38.81 5.112L630.8 469.1C641.2 477.3 643.1 492.4 634.9 502.8C626.7 513.2 611.6 515.1 601.2 506.9L9.196 42.89C-1.236 34.71-3.065 19.63 5.112 9.196V9.196z" }), /* @__PURE__ */ e.createElement("path", { className: "fa-secondary", d: "M446.6 324.7C457.7 304.3 464 280.9 464 256C464 176.5 399.5 112 320 112C282.7 112 248.6 126.2 223.1 149.5L150.7 92.77C195 58.27 251.8 32 320 32C400.8 32 465.5 68.84 512.6 112.6C559.4 156 590.7 207.1 605.5 243.7C608.8 251.6 608.8 260.4 605.5 268.3C592.1 300.6 565.2 346.1 525.6 386.7L446.6 324.7zM313.4 220.3C317.6 211.8 320 202.2 320 192C320 180.5 316.1 169.7 311.6 160.4C314.4 160.1 317.2 160 320 160C373 160 416 202.1 416 256C416 269.7 413.1 282.7 407.1 294.5L313.4 220.3zM320 480C239.2 480 174.5 443.2 127.4 399.4C80.62 355.1 49.34 304 34.46 268.3C31.18 260.4 31.18 251.6 34.46 243.7C44 220.8 60.29 191.2 83.09 161.5L177.4 235.8C176.5 242.4 176 249.1 176 256C176 335.5 240.5 400 320 400C338.7 400 356.6 396.4 373 389.9L446.2 447.5C409.9 467.1 367.8 480 320 480H320z" })),
|
|
40
|
+
`)), /* @__PURE__ */ e.createElement("path", { className: "fa-primary", d: "M5.112 9.196C13.29-1.236 28.37-3.065 38.81 5.112L630.8 469.1C641.2 477.3 643.1 492.4 634.9 502.8C626.7 513.2 611.6 515.1 601.2 506.9L9.196 42.89C-1.236 34.71-3.065 19.63 5.112 9.196V9.196z" }), /* @__PURE__ */ e.createElement("path", { className: "fa-secondary", d: "M446.6 324.7C457.7 304.3 464 280.9 464 256C464 176.5 399.5 112 320 112C282.7 112 248.6 126.2 223.1 149.5L150.7 92.77C195 58.27 251.8 32 320 32C400.8 32 465.5 68.84 512.6 112.6C559.4 156 590.7 207.1 605.5 243.7C608.8 251.6 608.8 260.4 605.5 268.3C592.1 300.6 565.2 346.1 525.6 386.7L446.6 324.7zM313.4 220.3C317.6 211.8 320 202.2 320 192C320 180.5 316.1 169.7 311.6 160.4C314.4 160.1 317.2 160 320 160C373 160 416 202.1 416 256C416 269.7 413.1 282.7 407.1 294.5L313.4 220.3zM320 480C239.2 480 174.5 443.2 127.4 399.4C80.62 355.1 49.34 304 34.46 268.3C31.18 260.4 31.18 251.6 34.46 243.7C44 220.8 60.29 191.2 83.09 161.5L177.4 235.8C176.5 242.4 176 249.1 176 256C176 335.5 240.5 400 320 400C338.7 400 356.6 396.4 373 389.9L446.2 447.5C409.9 467.1 367.8 480 320 480H320z" })), g = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", "data-waves-icon": "fa/duotone/folder-magnifying-glass", fill: "currentColor", color: "currentColor", width: "1em", height: "1em", style: {
|
|
36
41
|
fill: "currentcolor",
|
|
37
42
|
color: "currentcolor",
|
|
38
43
|
width: "1em",
|
|
39
44
|
height: "1em"
|
|
40
|
-
}, ...t }, /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("style", null, ".fa-secondary{opacity:.4}")), /* @__PURE__ */ e.createElement("path", { className: "fa-primary", d: "M376.1 375l-48.67-48.67C338.1 310.5 344 292 344 272c0-57.44-46.56-104-104-104S136 214.6 136 272s46.56 104 104 104c19.1 0 38.5-5.922 54.36-15.71l48.67 48.67C347.7 413.7 353.8 416 360 416s12.28-2.344 16.97-7.031C386.3 399.6 386.3 384.4 376.1 375zM240 328c-30.88 0-56-25.12-56-56c0-30.88 25.12-56 56-56c30.88 0 56 25.12 56 56C296 302.9 270.9 328 240 328z" }), /* @__PURE__ */ e.createElement("path", { className: "fa-secondary", d: "M464 96h-192l-64-64h-160C21.5 32 0 53.5 0 80v352C0 458.5 21.5 480 48 480h416c26.5 0 48-21.5 48-48v-288C512 117.5 490.5 96 464 96zM376.1 408.1C372.3 413.7 366.2 416 360 416s-12.28-2.344-16.97-7.031l-48.67-48.67C278.5 370.1 259.1 376 240 376c-57.44 0-104-46.56-104-104S182.6 168 240 168s104 46.56 104 104c0 20-5.922 38.5-15.71 54.36l48.67 48.67C386.3 384.4 386.3 399.6 376.1 408.1zM240 216c-30.88 0-56 25.12-56 56c0 30.88 25.12 56 56 56c30.88 0 56-25.12 56-56C296 241.1 270.9 216 240 216z" })),
|
|
45
|
+
}, ...t }, /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("style", null, ".fa-secondary{opacity:.4}")), /* @__PURE__ */ e.createElement("path", { className: "fa-primary", d: "M376.1 375l-48.67-48.67C338.1 310.5 344 292 344 272c0-57.44-46.56-104-104-104S136 214.6 136 272s46.56 104 104 104c19.1 0 38.5-5.922 54.36-15.71l48.67 48.67C347.7 413.7 353.8 416 360 416s12.28-2.344 16.97-7.031C386.3 399.6 386.3 384.4 376.1 375zM240 328c-30.88 0-56-25.12-56-56c0-30.88 25.12-56 56-56c30.88 0 56 25.12 56 56C296 302.9 270.9 328 240 328z" }), /* @__PURE__ */ e.createElement("path", { className: "fa-secondary", d: "M464 96h-192l-64-64h-160C21.5 32 0 53.5 0 80v352C0 458.5 21.5 480 48 480h416c26.5 0 48-21.5 48-48v-288C512 117.5 490.5 96 464 96zM376.1 408.1C372.3 413.7 366.2 416 360 416s-12.28-2.344-16.97-7.031l-48.67-48.67C278.5 370.1 259.1 376 240 376c-57.44 0-104-46.56-104-104S182.6 168 240 168s104 46.56 104 104c0 20-5.922 38.5-15.71 54.36l48.67 48.67C386.3 384.4 386.3 399.6 376.1 408.1zM240 216c-30.88 0-56 25.12-56 56c0 30.88 25.12 56 56 56c30.88 0 56-25.12 56-56C296 241.1 270.9 216 240 216z" })), f = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", "data-waves-icon": "fa/duotone/magnifying-glass", fill: "currentColor", color: "currentColor", width: "1em", height: "1em", style: {
|
|
41
46
|
fill: "currentcolor",
|
|
42
47
|
color: "currentcolor",
|
|
43
48
|
width: "1em",
|
|
@@ -46,7 +51,7 @@ const i = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.
|
|
|
46
51
|
.fa-secondary {
|
|
47
52
|
opacity: .4
|
|
48
53
|
}
|
|
49
|
-
`)), /* @__PURE__ */ e.createElement("path", { className: "fa-primary", d: "M500.3 443.7l-119.7-119.7c-15.03 22.3-34.26 41.54-56.57 56.57l119.7 119.7c15.62 15.62 40.95 15.62 56.57 0C515.9 484.7 515.9 459.3 500.3 443.7z" }), /* @__PURE__ */ e.createElement("path", { className: "fa-secondary", d: "M207.1 0C93.12 0-.0002 93.13-.0002 208S93.12 416 207.1 416s208-93.13 208-208S322.9 0 207.1 0zM207.1 336c-70.58 0-128-57.42-128-128c0-70.58 57.42-128 128-128s128 57.42 128 128C335.1 278.6 278.6 336 207.1 336z" })),
|
|
54
|
+
`)), /* @__PURE__ */ e.createElement("path", { className: "fa-primary", d: "M500.3 443.7l-119.7-119.7c-15.03 22.3-34.26 41.54-56.57 56.57l119.7 119.7c15.62 15.62 40.95 15.62 56.57 0C515.9 484.7 515.9 459.3 500.3 443.7z" }), /* @__PURE__ */ e.createElement("path", { className: "fa-secondary", d: "M207.1 0C93.12 0-.0002 93.13-.0002 208S93.12 416 207.1 416s208-93.13 208-208S322.9 0 207.1 0zM207.1 336c-70.58 0-128-57.42-128-128c0-70.58 57.42-128 128-128s128 57.42 128 128C335.1 278.6 278.6 336 207.1 336z" })), w = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", "data-waves-icon": "fa/duotone/xmark", fill: "currentColor", color: "currentColor", width: "1em", height: "1em", style: {
|
|
50
55
|
fill: "currentcolor",
|
|
51
56
|
color: "currentcolor",
|
|
52
57
|
width: "1em",
|
|
@@ -55,24 +60,26 @@ const i = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.
|
|
|
55
60
|
.fa-secondary {
|
|
56
61
|
opacity: .4
|
|
57
62
|
}
|
|
58
|
-
`)), /* @__PURE__ */ e.createElement("path", { className: "fa-secondary", d: "M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z" })),
|
|
63
|
+
`)), /* @__PURE__ */ e.createElement("path", { className: "fa-secondary", d: "M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z" })), u = (t) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 664 652", xmlns: "http://www.w3.org/2000/svg", "data-waves-icon": "pi/logo", fill: "currentColor", color: "currentColor", width: "1em", height: "1em", style: {
|
|
59
64
|
fill: "currentcolor",
|
|
60
65
|
color: "currentcolor",
|
|
61
66
|
width: "1em",
|
|
62
67
|
height: "1em"
|
|
63
|
-
}, ...t }, /* @__PURE__ */ e.createElement("path", { d: "M391.42 125.965C448.039 184.645 504.938 243.615 565.81 185.331C583.085 168.806 588.671 138.702 583.932 117.95C552.33 -20.4551 366.687 -26.094 284.964 44.5249L285.069 45.0613C321.006 52.9875 356.159 89.4202 391.42 125.965Z" }), /* @__PURE__ */ e.createElement("path", { d: "M522.431 495.702C448.189 455.82 486.69 383.483 525.002 311.503C548.862 266.674 572.648 221.983 569.081 185.356L569.559 185.09C661.976 240.991 713.98 419.291 592.114 492.115C573.842 503.035 543.486 507.025 522.431 495.702V495.702Z" }), /* @__PURE__ */ e.createElement("path", { d: "M213.844 550.355C228.833 467.423 309.526 481.686 389.823 495.879C439.831 504.719 489.685 513.531 523.417 498.82L523.818 499.192C499.211 604.36 345.708 708.916 238.789 615.519C222.757 601.516 209.582 573.878 213.844 550.355Z" }), /* @__PURE__ */ e.createElement("path", { d: "M284.035 48.1638C320.656 124.068 246.989 159.959 173.686 195.673C128.033 217.916 82.5196 240.09 63.8762 271.819L63.3335 271.753C21.4251 172.207 84.1548 -2.6076 225.552 10.1071C246.753 12.0131 273.657 26.6279 284.035 48.1638Z" }), /* @__PURE__ */ e.createElement("path", { d: "M172.699 424.293C161.384 343.54 150.014 262.389 66.5079 273.761C42.819 276.977 20.6057 298.048 12.2415 317.622C-43.5448 448.169 103.33 561.849 210.954 552.754L211.185 552.258C186.77 524.722 179.745 474.585 172.699 424.293Z" })),
|
|
68
|
+
}, ...t }, /* @__PURE__ */ e.createElement("path", { d: "M391.42 125.965C448.039 184.645 504.938 243.615 565.81 185.331C583.085 168.806 588.671 138.702 583.932 117.95C552.33 -20.4551 366.687 -26.094 284.964 44.5249L285.069 45.0613C321.006 52.9875 356.159 89.4202 391.42 125.965Z" }), /* @__PURE__ */ e.createElement("path", { d: "M522.431 495.702C448.189 455.82 486.69 383.483 525.002 311.503C548.862 266.674 572.648 221.983 569.081 185.356L569.559 185.09C661.976 240.991 713.98 419.291 592.114 492.115C573.842 503.035 543.486 507.025 522.431 495.702V495.702Z" }), /* @__PURE__ */ e.createElement("path", { d: "M213.844 550.355C228.833 467.423 309.526 481.686 389.823 495.879C439.831 504.719 489.685 513.531 523.417 498.82L523.818 499.192C499.211 604.36 345.708 708.916 238.789 615.519C222.757 601.516 209.582 573.878 213.844 550.355Z" }), /* @__PURE__ */ e.createElement("path", { d: "M284.035 48.1638C320.656 124.068 246.989 159.959 173.686 195.673C128.033 217.916 82.5196 240.09 63.8762 271.819L63.3335 271.753C21.4251 172.207 84.1548 -2.6076 225.552 10.1071C246.753 12.0131 273.657 26.6279 284.035 48.1638Z" }), /* @__PURE__ */ e.createElement("path", { d: "M172.699 424.293C161.384 343.54 150.014 262.389 66.5079 273.761C42.819 276.977 20.6057 298.048 12.2415 317.622C-43.5448 448.169 103.33 561.849 210.954 552.754L211.185 552.258C186.77 524.722 179.745 474.585 172.699 424.293Z" })), y = {
|
|
64
69
|
// icon family / icon name
|
|
65
70
|
// fa/duotone / eye-slash
|
|
66
71
|
"fa/duotone/circle-arrow-right": i,
|
|
67
72
|
"fa/duotone/eye-slash": h,
|
|
68
|
-
"fa/duotone/folder-magnifying-glass":
|
|
69
|
-
"fa/duotone/magnifying-glass":
|
|
73
|
+
"fa/duotone/folder-magnifying-glass": g,
|
|
74
|
+
"fa/duotone/magnifying-glass": f,
|
|
70
75
|
"fa/duotone/circle-exclamation": m,
|
|
71
|
-
"fa/duotone/circle-xmark":
|
|
72
|
-
"fa/duotone/xmark":
|
|
73
|
-
"
|
|
74
|
-
|
|
76
|
+
"fa/duotone/circle-xmark": d,
|
|
77
|
+
"fa/duotone/xmark": w,
|
|
78
|
+
"fa/duotone/calendar-days": C,
|
|
79
|
+
"pi/logo": u
|
|
80
|
+
}, E = {
|
|
75
81
|
"fa/duotone": [
|
|
82
|
+
"calendar-days",
|
|
76
83
|
"circle-arrow-right",
|
|
77
84
|
"eye-slash",
|
|
78
85
|
"folder-magnifying-glass",
|
|
@@ -82,14 +89,14 @@ const i = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.
|
|
|
82
89
|
"xmark"
|
|
83
90
|
],
|
|
84
91
|
pi: ["logo"]
|
|
85
|
-
},
|
|
86
|
-
const r = `${t ?? "fa/duotone"}/${
|
|
92
|
+
}, p = ({ iconFamily: t, icon: o, size: l, color: n }) => {
|
|
93
|
+
const r = `${t ?? "fa/duotone"}/${o}`, a = y[r] ?? /* @__PURE__ */ s("span", { title: r, children: [
|
|
87
94
|
"ERROR ICON ",
|
|
88
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ c(p, { icon: "circle-exclamation" })
|
|
89
96
|
] });
|
|
90
|
-
return
|
|
97
|
+
return a && /* @__PURE__ */ c(a, { style: { color: n, height: l, width: l } });
|
|
91
98
|
};
|
|
92
99
|
export {
|
|
93
|
-
|
|
94
|
-
|
|
100
|
+
E as FamilyAndIcons,
|
|
101
|
+
p as Icon
|
|
95
102
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Either } from '../../types/helpers';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactNode, SyntheticEvent } from 'react';
|
|
3
3
|
|
|
4
4
|
type variant = 'primary' | 'square';
|
|
5
5
|
type IconButtonCoreProps = {
|
|
@@ -14,7 +14,7 @@ interface IconButtonPropsWithLink extends IconButtonCoreProps {
|
|
|
14
14
|
link: string;
|
|
15
15
|
}
|
|
16
16
|
interface IconButtonPropsWithOnClick extends IconButtonCoreProps {
|
|
17
|
-
onClick: () => void;
|
|
17
|
+
onClick: (e: SyntheticEvent<HTMLButtonElement>) => void;
|
|
18
18
|
type?: HTMLButtonElement['type'];
|
|
19
19
|
}
|
|
20
20
|
export type IconButtonProps = Either<IconButtonPropsWithLink, IconButtonPropsWithOnClick>;
|
|
@@ -1,68 +1,70 @@
|
|
|
1
1
|
import '../../assets/IconButton.css';
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { c } from "../../clsx-DB4S2d7J.js";
|
|
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
|
-
"icon-button
|
|
54
|
-
"icon-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
2
|
+
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as c, useMemo as m } from "react";
|
|
4
|
+
import { c as y } from "../../clsx-DB4S2d7J.js";
|
|
5
|
+
import { LoadingSpinner as g } from "../LoadingSpinner/LoadingSpinner.js";
|
|
6
|
+
import { B as k } from "../../Button-B1umG8kJ.js";
|
|
7
|
+
const p = "_h1_f1r29_1", q = "_h2_f1r29_11", M = "_h3_f1r29_21", S = "_h4_f1r29_31", w = "_body_f1r29_41", x = "_quote_f1r29_75", N = "_form__input_f1r29_98", v = "_form__hint_f1r29_103", B = "_form__label_f1r29_108", j = "_form__dropdown_f1r29_113", C = "_table__header_f1r29_131", I = "_table__body_f1r29_136", L = "_button_f1r29_159", R = "_SM_f1r29_178", o = {
|
|
8
|
+
h1: p,
|
|
9
|
+
"h1--bold": "_h1--bold_f1r29_7",
|
|
10
|
+
h2: q,
|
|
11
|
+
"h2--bold": "_h2--bold_f1r29_17",
|
|
12
|
+
h3: M,
|
|
13
|
+
"h3--bold": "_h3--bold_f1r29_27",
|
|
14
|
+
h4: S,
|
|
15
|
+
"h4--bold": "_h4--bold_f1r29_37",
|
|
16
|
+
body: w,
|
|
17
|
+
"body--large": "_body--large_f1r29_46",
|
|
18
|
+
"body--medium": "_body--medium_f1r29_50",
|
|
19
|
+
"body--small": "_body--small_f1r29_54",
|
|
20
|
+
"body--tiny": "_body--tiny_f1r29_58",
|
|
21
|
+
"body--bold": "_body--bold_f1r29_62",
|
|
22
|
+
"body--strikethrough": "_body--strikethrough_f1r29_65",
|
|
23
|
+
"body--underlined": "_body--underlined_f1r29_68",
|
|
24
|
+
"body--strikethrough-underlined": "_body--strikethrough-underlined_f1r29_71",
|
|
25
|
+
quote: x,
|
|
26
|
+
"quote--large": "_quote--large_f1r29_80",
|
|
27
|
+
"quote--bold": "_quote--bold_f1r29_85",
|
|
28
|
+
"quote--strikethrough": "_quote--strikethrough_f1r29_88",
|
|
29
|
+
"quote--underlined": "_quote--underlined_f1r29_91",
|
|
30
|
+
"quote--strikethrough-underlined": "_quote--strikethrough-underlined_f1r29_94",
|
|
31
|
+
form__input: N,
|
|
32
|
+
form__hint: v,
|
|
33
|
+
form__label: B,
|
|
34
|
+
form__dropdown: j,
|
|
35
|
+
"form--bold": "_form--bold_f1r29_118",
|
|
36
|
+
"form--strikethrough": "_form--strikethrough_f1r29_121",
|
|
37
|
+
"form--underlined": "_form--underlined_f1r29_124",
|
|
38
|
+
"form--strikethrough-underlined": "_form--strikethrough-underlined_f1r29_127",
|
|
39
|
+
table__header: C,
|
|
40
|
+
table__body: I,
|
|
41
|
+
"table__body--secondary": "_table__body--secondary_f1r29_141",
|
|
42
|
+
"table--bold": "_table--bold_f1r29_146",
|
|
43
|
+
"table--strikethrough": "_table--strikethrough_f1r29_149",
|
|
44
|
+
"table--underlined": "_table--underlined_f1r29_152",
|
|
45
|
+
"table--strikethrough-underlined": "_table--strikethrough-underlined_f1r29_155",
|
|
46
|
+
button: L,
|
|
47
|
+
"button--bold": "_button--bold_f1r29_165",
|
|
48
|
+
"button--strikethrough": "_button--strikethrough_f1r29_168",
|
|
49
|
+
"button--underlined": "_button--underlined_f1r29_171",
|
|
50
|
+
"button--strikethrough-underlined": "_button--strikethrough-underlined_f1r29_174",
|
|
51
|
+
SM: R,
|
|
52
|
+
"SM--bold": "_SM--bold_f1r29_183",
|
|
53
|
+
"icon-button": "_icon-button_f1r29_187",
|
|
54
|
+
"icon-button--primary": "_icon-button--primary_f1r29_199",
|
|
55
|
+
"icon-button--square": "_icon-button--square_f1r29_221",
|
|
56
|
+
"icon-button__container": "_icon-button__container_f1r29_237"
|
|
57
|
+
}, F = c((e, n) => {
|
|
58
|
+
const { onClick: d, icon: u, link: b, loading: i, children: l, type: f = "button", disabled: h, className: r, variant: _ = "primary" } = e, s = m(
|
|
59
|
+
() => y([o["icon-button"], o[`icon-button--${_}`], r]),
|
|
60
|
+
[r, _]
|
|
59
61
|
);
|
|
60
|
-
return /* @__PURE__ */
|
|
61
|
-
|
|
62
|
+
return /* @__PURE__ */ t(k, { type: f, href: b, onClick: d, disabled: h, className: s, ref: n, children: /* @__PURE__ */ a("div", { className: o["icon-button__container"], children: [
|
|
63
|
+
i ? /* @__PURE__ */ t(g, { invert: !0 }) : u,
|
|
62
64
|
_ !== "square" && l
|
|
63
65
|
] }) });
|
|
64
66
|
});
|
|
65
67
|
export {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
F as IconButton,
|
|
69
|
+
F as default
|
|
68
70
|
};
|
|
@@ -13,7 +13,7 @@ type InputProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
13
13
|
rightIcon?: ReactNode;
|
|
14
14
|
/** Input type. Default: text */
|
|
15
15
|
type?: 'text' | 'password' | 'search';
|
|
16
|
-
/** Hide the chars counter
|
|
16
|
+
/** Hide the chars counter */
|
|
17
17
|
hideCharsCounter?: boolean;
|
|
18
18
|
/** CSS classes to be applied on the container element */
|
|
19
19
|
classNameWrapper?: string;
|
|
@@ -5,8 +5,8 @@ import { useState as pe, useId as ce } from "react";
|
|
|
5
5
|
import { c as F } from "../../clsx-DB4S2d7J.js";
|
|
6
6
|
import { Typography as L } from "../Typography/Typography.js";
|
|
7
7
|
import { a as _, _ as fe } from "../../objectWithoutPropertiesLoose-D7Cp0Pg_.js";
|
|
8
|
-
import { g as me, a as _e, u as he, e as z, b as Q, i as be, P as e, c as ge, d as
|
|
9
|
-
function
|
|
8
|
+
import { g as me, a as _e, u as he, e as z, b as Q, i as be, P as e, c as ge, d as ye } from "../../index-CqjC7P5Y.js";
|
|
9
|
+
function Ce(s) {
|
|
10
10
|
let l = "https://mui.com/production-error/?code=" + s;
|
|
11
11
|
for (let a = 1; a < arguments.length; a += 1)
|
|
12
12
|
l += "&args[]=" + encodeURIComponent(arguments[a]);
|
|
@@ -31,19 +31,19 @@ function Ne(s = {}) {
|
|
|
31
31
|
onChange: b,
|
|
32
32
|
onFocus: P,
|
|
33
33
|
required: x = !1,
|
|
34
|
-
value:
|
|
34
|
+
value: y,
|
|
35
35
|
inputRef: U
|
|
36
36
|
} = s, n = we();
|
|
37
|
-
let E, f,
|
|
37
|
+
let E, f, C, w, g;
|
|
38
38
|
if (n) {
|
|
39
39
|
var I, d, O;
|
|
40
|
-
if (E = void 0, f = (I = n.disabled) != null ? I : !1,
|
|
40
|
+
if (E = void 0, f = (I = n.disabled) != null ? I : !1, C = (d = n.error) != null ? d : !1, w = (O = n.required) != null ? O : !1, g = n.value, process.env.NODE_ENV !== "production") {
|
|
41
41
|
const t = ["defaultValue", "disabled", "error", "required", "value"].filter((r) => s[r] !== void 0);
|
|
42
42
|
t.length > 0 && console.warn(["MUI: You have set props on an input that is inside a FormControl.", "Set these props on a FormControl instead. Otherwise they will be ignored.", `Ignored props: ${t.join(", ")}`].join(`
|
|
43
43
|
`));
|
|
44
44
|
}
|
|
45
45
|
} else
|
|
46
|
-
E = l, f = a,
|
|
46
|
+
E = l, f = a, C = h, w = x, g = y;
|
|
47
47
|
const {
|
|
48
48
|
current: M
|
|
49
49
|
} = m.useRef(g != null), k = m.useCallback((t) => {
|
|
@@ -70,7 +70,7 @@ function Ne(s = {}) {
|
|
|
70
70
|
}, S = (t) => (r, ...o) => {
|
|
71
71
|
var c, H;
|
|
72
72
|
if (!M && (r.target || v.current) == null)
|
|
73
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `slots.input` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." :
|
|
73
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `slots.input` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : Ce(17));
|
|
74
74
|
n == null || (c = n.onChange) == null || c.call(n, r), (H = t.onChange) == null || H.call(t, r, ...o);
|
|
75
75
|
}, j = (t) => (r) => {
|
|
76
76
|
var o;
|
|
@@ -78,7 +78,7 @@ function Ne(s = {}) {
|
|
|
78
78
|
};
|
|
79
79
|
return {
|
|
80
80
|
disabled: f,
|
|
81
|
-
error:
|
|
81
|
+
error: C,
|
|
82
82
|
focused: N,
|
|
83
83
|
formControlContext: n,
|
|
84
84
|
getInputProps: (t = {}) => {
|
|
@@ -92,7 +92,7 @@ function Ne(s = {}) {
|
|
|
92
92
|
onFocus: A(o)
|
|
93
93
|
});
|
|
94
94
|
return _({}, c, {
|
|
95
|
-
"aria-invalid":
|
|
95
|
+
"aria-invalid": C || void 0,
|
|
96
96
|
defaultValue: E,
|
|
97
97
|
value: g,
|
|
98
98
|
required: w,
|
|
@@ -125,18 +125,18 @@ const Pe = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
125
125
|
return ge({
|
|
126
126
|
root: ["root", l && "disabled", a && "error", h && "focused", !!u && "formControl", b && "multiline", !!P && "adornedStart", !!x && "adornedEnd"],
|
|
127
127
|
input: ["input", l && "disabled", b && "multiline"]
|
|
128
|
-
},
|
|
128
|
+
}, ye(ve));
|
|
129
129
|
}, ee = /* @__PURE__ */ m.forwardRef(function(l, a) {
|
|
130
130
|
var h, u, b;
|
|
131
131
|
const {
|
|
132
132
|
"aria-describedby": P,
|
|
133
133
|
"aria-label": x,
|
|
134
|
-
"aria-labelledby":
|
|
134
|
+
"aria-labelledby": y,
|
|
135
135
|
autoComplete: U,
|
|
136
136
|
autoFocus: n,
|
|
137
137
|
className: E,
|
|
138
138
|
defaultValue: f,
|
|
139
|
-
disabled:
|
|
139
|
+
disabled: C,
|
|
140
140
|
endAdornment: w,
|
|
141
141
|
error: g,
|
|
142
142
|
id: I,
|
|
@@ -167,7 +167,7 @@ const Pe = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
167
167
|
error: se,
|
|
168
168
|
disabled: ae
|
|
169
169
|
} = Ne({
|
|
170
|
-
disabled:
|
|
170
|
+
disabled: C,
|
|
171
171
|
defaultValue: f,
|
|
172
172
|
error: g,
|
|
173
173
|
onBlur: R,
|
|
@@ -186,7 +186,7 @@ const Pe = ["aria-describedby", "aria-label", "aria-labelledby", "autoComplete",
|
|
|
186
186
|
}), G = xe($), le = {
|
|
187
187
|
"aria-describedby": P,
|
|
188
188
|
"aria-label": x,
|
|
189
|
-
"aria-labelledby":
|
|
189
|
+
"aria-labelledby": y,
|
|
190
190
|
autoComplete: U,
|
|
191
191
|
autoFocus: n,
|
|
192
192
|
id: I,
|
|
@@ -378,20 +378,20 @@ const Ee = (s) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3
|
|
|
378
378
|
color: "currentcolor",
|
|
379
379
|
width: "1em",
|
|
380
380
|
height: "1em"
|
|
381
|
-
}, ...s }, /* @__PURE__ */ m.createElement("path", { d: "M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z" })), Re = "
|
|
381
|
+
}, ...s }, /* @__PURE__ */ m.createElement("path", { d: "M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z" })), Re = "_input__label_1fy22_1", Fe = "_input_1fy22_1", i = {
|
|
382
382
|
input__label: Re,
|
|
383
|
-
"input__input-el-wrapper": "_input__input-el-
|
|
384
|
-
"input__input-el": "_input__input-
|
|
385
|
-
"input__left-icon": "_input__left-
|
|
386
|
-
"input__right-icon": "_input__right-
|
|
387
|
-
"input__messages-wrapper": "_input__messages-
|
|
388
|
-
"input__info-message": "_input__info-
|
|
389
|
-
"input__error-message": "_input__error-
|
|
390
|
-
"input__chars-counter": "_input__chars-
|
|
391
|
-
"input--disabled": "_input--
|
|
383
|
+
"input__input-el-wrapper": "_input__input-el-wrapper_1fy22_6",
|
|
384
|
+
"input__input-el": "_input__input-el_1fy22_6",
|
|
385
|
+
"input__left-icon": "_input__left-icon_1fy22_27",
|
|
386
|
+
"input__right-icon": "_input__right-icon_1fy22_31",
|
|
387
|
+
"input__messages-wrapper": "_input__messages-wrapper_1fy22_35",
|
|
388
|
+
"input__info-message": "_input__info-message_1fy22_43",
|
|
389
|
+
"input__error-message": "_input__error-message_1fy22_43",
|
|
390
|
+
"input__chars-counter": "_input__chars-counter_1fy22_54",
|
|
391
|
+
"input--disabled": "_input--disabled_1fy22_58",
|
|
392
392
|
input: Fe,
|
|
393
|
-
"input--focused": "_input--
|
|
394
|
-
"input--error": "_input--
|
|
393
|
+
"input--focused": "_input--focused_1fy22_64",
|
|
394
|
+
"input--error": "_input--error_1fy22_67"
|
|
395
395
|
}, Ue = ({
|
|
396
396
|
label: s,
|
|
397
397
|
infoMessage: l,
|
|
@@ -401,12 +401,12 @@ const Ee = (s) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3
|
|
|
401
401
|
id: b,
|
|
402
402
|
disabled: P,
|
|
403
403
|
type: x = "text",
|
|
404
|
-
maxLength:
|
|
404
|
+
maxLength: y,
|
|
405
405
|
hideCharsCounter: U = !1,
|
|
406
406
|
onChange: n,
|
|
407
407
|
classNameWrapper: E,
|
|
408
408
|
classNameLabel: f,
|
|
409
|
-
classNameInput:
|
|
409
|
+
classNameInput: C,
|
|
410
410
|
classNameInfoMessage: w,
|
|
411
411
|
classNameErrorMessage: g,
|
|
412
412
|
classNameCharsCounter: I,
|
|
@@ -453,8 +453,8 @@ const Ee = (s) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3
|
|
|
453
453
|
})
|
|
454
454
|
}),
|
|
455
455
|
input: {
|
|
456
|
-
className: F(i["input__input-el"],
|
|
457
|
-
maxLength:
|
|
456
|
+
className: F(i["input__input-el"], C),
|
|
457
|
+
maxLength: y,
|
|
458
458
|
onChange: j,
|
|
459
459
|
...N
|
|
460
460
|
}
|
|
@@ -476,7 +476,7 @@ const Ee = (s) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3
|
|
|
476
476
|
]
|
|
477
477
|
}
|
|
478
478
|
),
|
|
479
|
-
|
|
479
|
+
y && !U && /* @__PURE__ */ q(
|
|
480
480
|
L,
|
|
481
481
|
{
|
|
482
482
|
variant: "form-hint",
|
|
@@ -485,7 +485,7 @@ const Ee = (s) => /* @__PURE__ */ m.createElement("svg", { xmlns: "http://www.w3
|
|
|
485
485
|
children: [
|
|
486
486
|
R,
|
|
487
487
|
" / ",
|
|
488
|
-
|
|
488
|
+
y
|
|
489
489
|
]
|
|
490
490
|
}
|
|
491
491
|
)
|