@pismo/marola 0.0.1-alpha.15 → 0.0.1-alpha.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Button-B1umG8kJ.js → Button-CSuug0jG.js} +2 -2
- package/dist/{ClickAwayListener-HI1G6ob9.js → ClickAwayListener-hSFuUJnv.js} +3 -3
- package/dist/{Popup-DFJQc_jn.js → Popup-DwaWJ3ye.js} +3 -3
- package/dist/{Portal-D__zvwbZ.js → Portal-CGBQMhI6.js} +2 -2
- package/dist/SelectButton-DWZ2BRaX.js +44 -0
- package/dist/assets/Chip.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/InputSearch.css +1 -1
- package/dist/assets/PageHeader.css +1 -1
- package/dist/assets/SelectButton.css +1 -1
- package/dist/{combineHooksSlotProps-BHqhiBfc.js → combineHooksSlotProps-D8j4htsd.js} +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Chip/Chip.js +1 -1
- package/dist/components/Dialog/CloseIconButton.js +1 -1
- package/dist/components/Dialog/Dialog.js +4 -4
- package/dist/components/IconButton/IconButton.js +1 -1
- package/dist/components/Input/Input.js +51 -51
- package/dist/components/InputSearch/InputSearch.js +7 -7
- package/dist/components/PageHeader/PageHeader.js +23 -23
- package/dist/components/Select/Select.d.ts +9 -8
- package/dist/components/Select/Select.js +158 -160
- package/dist/components/Select/Select.stories.d.ts +10 -19
- package/dist/components/Select/SelectButton.d.ts +3 -4
- package/dist/components/Select/SelectButton.js +2 -2
- package/dist/components/Snackbar/Snackbar.js +4 -4
- package/dist/components/Tabs/Tab.js +3 -3
- package/dist/components/Tabs/TabPanel.js +1 -1
- package/dist/components/Tabs/Tabs.js +3 -3
- package/dist/components/Toggle/Toggle.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +3 -3
- package/dist/{index-BJ8HbRCy.js → index-BfeM9yWx.js} +1 -1
- package/dist/{index-CqjC7P5Y.js → index-CtPvew6C.js} +88 -85
- package/dist/main.d.ts +4 -1
- package/dist/main.js +19 -19
- package/dist/marola.css +1 -0
- package/dist/{useButton-Bc8IAgyk.js → useButton-DSAvAfH_.js} +1 -1
- package/dist/{useEventCallback-vAfOD-oT.js → useEventCallback-lXNMsMLa.js} +1 -1
- package/dist/{useList-ByMguSS_.js → useList-C5PBIv2I.js} +2 -2
- package/package.json +2 -2
- package/dist/SelectButton-DWtqAiwt.js +0 -45
- package/dist/_commonjsHelpers-CT_km90n.js +0 -30
- package/dist/components/Advice/Advice.stories.js +0 -48
- package/dist/components/Button/Button.stories.js +0 -40
- package/dist/components/Chip/Chip.stories.js +0 -59
- package/dist/components/Chip/chip.test.js +0 -17303
- package/dist/components/Dialog/Dialog.stories.js +0 -59
- package/dist/components/Input/Input.stories.js +0 -106
- package/dist/components/InputSearch/InputSearch.stories.js +0 -73
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.js +0 -38
- package/dist/components/PageHeader/PageHeader.stories.js +0 -49
- package/dist/components/Select/Select.stories.js +0 -65
- package/dist/components/Snackbar/Snackbar.stories.js +0 -62
- package/dist/components/Toggle/Toggle.stories.js +0 -33
- package/dist/components/Typography/Typography.stories.js +0 -30
- package/dist/components/Typography/typography.test.js +0 -234
- package/dist/magic-string.es-O_8lTkE3.js +0 -738
- package/dist/react.esm-DGd9_oKA.js +0 -11126
- package/dist/utils/styleStrings.test.js +0 -41
- package/dist/vi.Y_w82WR8-XVYrIxgm.js +0 -9861
|
@@ -1,31 +1,22 @@
|
|
|
1
|
+
import { SelectProps } from './Select';
|
|
1
2
|
import { StoryObj } from '@storybook/react';
|
|
2
3
|
|
|
3
4
|
declare const meta: {
|
|
4
5
|
title: string;
|
|
5
6
|
component: {
|
|
6
|
-
(props:
|
|
7
|
-
|
|
8
|
-
disabled?: boolean | undefined;
|
|
9
|
-
placeholder?: string | number | undefined;
|
|
10
|
-
ariaLabelledby?: string | undefined;
|
|
11
|
-
onChange?: ((value: string | number | null, event?: import('react').SyntheticEvent<Element, Event> | null | undefined) => void) | undefined;
|
|
12
|
-
className?: string | undefined;
|
|
13
|
-
'data-testid'?: string | undefined;
|
|
14
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
Option: (props: {
|
|
16
|
-
disabled?: boolean | undefined;
|
|
17
|
-
value: string | number;
|
|
18
|
-
children: import('react').ReactNode;
|
|
19
|
-
icon?: import('react').ReactNode;
|
|
20
|
-
className?: string | undefined;
|
|
21
|
-
'data-testid'?: string | undefined;
|
|
22
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
(props: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
Option: (props: import('./Select').SelectOptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
9
|
};
|
|
24
10
|
tags: string[];
|
|
11
|
+
parameters: {
|
|
12
|
+
layout: string;
|
|
13
|
+
};
|
|
25
14
|
};
|
|
26
15
|
export default meta;
|
|
27
16
|
type Story = StoryObj<typeof meta>;
|
|
28
17
|
export declare const Simple: Story;
|
|
29
|
-
export declare const
|
|
18
|
+
export declare const WithAllOptionsDisabled: Story;
|
|
19
|
+
export declare const WithSomeOptionsDisabled: Story;
|
|
30
20
|
export declare const WithPrefix: Story;
|
|
31
|
-
export declare const
|
|
21
|
+
export declare const WithIcons: Story;
|
|
22
|
+
export declare const WithManyOptions: Story;
|
|
@@ -5,9 +5,8 @@ export interface SelectButtonProps {
|
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
disabled: boolean;
|
|
7
7
|
'aria-expanded': boolean;
|
|
8
|
-
|
|
9
|
-
type?: HTMLButtonElement['type'];
|
|
10
|
-
onClick: () => void;
|
|
8
|
+
prefix?: string;
|
|
11
9
|
'data-testid'?: string;
|
|
10
|
+
onClick: () => void;
|
|
12
11
|
}
|
|
13
|
-
export declare const
|
|
12
|
+
export declare const SelectButton: import('react').ForwardRefExoticComponent<SelectButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../clsx-DB4S2d7J.js";
|
|
4
4
|
import "../Typography/Typography.js";
|
|
5
|
-
import {
|
|
5
|
+
import { S as e } from "../../SelectButton-DWZ2BRaX.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
e as SelectButton
|
|
8
8
|
};
|
|
@@ -5,11 +5,11 @@ import S, { useState as V, useRef as X } from "react";
|
|
|
5
5
|
import { c as N } from "../../clsx-DB4S2d7J.js";
|
|
6
6
|
import { Icon as K } from "../Icon/Icon.js";
|
|
7
7
|
import { a as D, _ as j } from "../../objectWithoutPropertiesLoose-D7Cp0Pg_.js";
|
|
8
|
-
import { g as $, a as z, e as H, b as U, P as n, c as J, d as Q } from "../../index-
|
|
8
|
+
import { g as $, a as z, e as H, b as U, P as n, c as J, d as Q } from "../../index-CtPvew6C.js";
|
|
9
9
|
import { u as Z } from "../../useTimeout-DxF9kiZL.js";
|
|
10
|
-
import { u as I } from "../../useEventCallback-
|
|
11
|
-
import { C as B } from "../../ClickAwayListener-
|
|
12
|
-
import { R } from "../../index-
|
|
10
|
+
import { u as I } from "../../useEventCallback-lXNMsMLa.js";
|
|
11
|
+
import { C as B } from "../../ClickAwayListener-hSFuUJnv.js";
|
|
12
|
+
import { R } from "../../index-BfeM9yWx.js";
|
|
13
13
|
const W = "Snackbar";
|
|
14
14
|
function ee(u) {
|
|
15
15
|
return $(W, u);
|
|
@@ -4,10 +4,10 @@ import { forwardRef as H, useContext as U, useMemo as j } from "react";
|
|
|
4
4
|
import { c as k } from "../../clsx-DB4S2d7J.js";
|
|
5
5
|
import { u as B, T as D, s as y } from "../../Tabs.module-jkH1Qjn7.js";
|
|
6
6
|
import { a as d, _ as L } from "../../objectWithoutPropertiesLoose-D7Cp0Pg_.js";
|
|
7
|
-
import { g as W, a as $, u as O, e as q, b as z, P as e, c as A, d as G } from "../../index-
|
|
8
|
-
import { u as J, c as K } from "../../combineHooksSlotProps-
|
|
7
|
+
import { g as W, a as $, u as O, e as q, b as z, P as e, c as A, d as G } from "../../index-CtPvew6C.js";
|
|
8
|
+
import { u as J, c as K } from "../../combineHooksSlotProps-D8j4htsd.js";
|
|
9
9
|
import { u as Q, a as X } from "../../useCompoundItem-D1iRfg8D.js";
|
|
10
|
-
import { u as Y } from "../../useButton-
|
|
10
|
+
import { u as Y } from "../../useButton-DSAvAfH_.js";
|
|
11
11
|
const E = "Tab";
|
|
12
12
|
function Z(o) {
|
|
13
13
|
return W(E, o);
|
|
@@ -3,7 +3,7 @@ import * as P from "react";
|
|
|
3
3
|
import { forwardRef as v } from "react";
|
|
4
4
|
import { u as y, s as x } from "../../Tabs.module-jkH1Qjn7.js";
|
|
5
5
|
import { a as b, _ as C } from "../../objectWithoutPropertiesLoose-D7Cp0Pg_.js";
|
|
6
|
-
import { g as N, a as _, u as w, b as O, P as o, c as E, d as I } from "../../index-
|
|
6
|
+
import { g as N, a as _, u as w, b as O, P as o, c as E, d as I } from "../../index-CtPvew6C.js";
|
|
7
7
|
import { u as S, a as U } from "../../useCompoundItem-D1iRfg8D.js";
|
|
8
8
|
const h = "TabPanel";
|
|
9
9
|
function j(t) {
|
|
@@ -5,11 +5,11 @@ import { T as G, u as J, s as Q } from "../../Tabs.module-jkH1Qjn7.js";
|
|
|
5
5
|
import { Tab as Ie } from "./Tab.js";
|
|
6
6
|
import { TabPanel as Fe } from "./TabPanel.js";
|
|
7
7
|
import { a as C, _ as I } from "../../objectWithoutPropertiesLoose-D7Cp0Pg_.js";
|
|
8
|
-
import { g as _, a as F, b as $, P as t, c as N, d as M } from "../../index-
|
|
8
|
+
import { g as _, a as F, b as $, P as t, c as N, d as M } from "../../index-CtPvew6C.js";
|
|
9
9
|
import { b as O, C as S } from "../../useCompoundItem-D1iRfg8D.js";
|
|
10
10
|
import { u as X } from "../../useControlled-CCMYYdCM.js";
|
|
11
|
-
import { L as Y, a as Z } from "../../combineHooksSlotProps-
|
|
12
|
-
import { l as ee, m as te, u as oe } from "../../useList-
|
|
11
|
+
import { L as Y, a as Z } from "../../combineHooksSlotProps-D8j4htsd.js";
|
|
12
|
+
import { l as ee, m as te, u as oe } from "../../useList-C5PBIv2I.js";
|
|
13
13
|
const k = "Tabs";
|
|
14
14
|
function se(s) {
|
|
15
15
|
return _(k, s);
|
|
@@ -3,7 +3,7 @@ import { jsxs as I, jsx as P } from "react/jsx-runtime";
|
|
|
3
3
|
import { c as C } from "../../clsx-DB4S2d7J.js";
|
|
4
4
|
import { a as x, _ as v } from "../../objectWithoutPropertiesLoose-D7Cp0Pg_.js";
|
|
5
5
|
import * as N from "react";
|
|
6
|
-
import { u as U, g as q, a as H, b as F, P as e, c as M, d as A } from "../../index-
|
|
6
|
+
import { u as U, g as q, a as H, b as F, P as e, c as M, d as A } from "../../index-CtPvew6C.js";
|
|
7
7
|
import { u as D } from "../../useControlled-CCMYYdCM.js";
|
|
8
8
|
import { u as L } from "../../useIsFocusVisible-BH4IAdcw.js";
|
|
9
9
|
function W(l) {
|
|
@@ -2,11 +2,11 @@ import '../../assets/Tooltip.css';
|
|
|
2
2
|
import { jsx as a } from "react/jsx-runtime";
|
|
3
3
|
import * as d from "react";
|
|
4
4
|
import { useRef as k, useState as E, useEffect as w } from "react";
|
|
5
|
-
import { T as v, P } from "../../Popup-
|
|
5
|
+
import { T as v, P } from "../../Popup-DwaWJ3ye.js";
|
|
6
6
|
import { _ as S, a as q } from "../../objectWithoutPropertiesLoose-D7Cp0Pg_.js";
|
|
7
|
-
import { P as l } from "../../index-
|
|
7
|
+
import { P as l } from "../../index-CtPvew6C.js";
|
|
8
8
|
import { c as M } from "../../clsx-DB4S2d7J.js";
|
|
9
|
-
import { C as O } from "../../ClickAwayListener-
|
|
9
|
+
import { C as O } from "../../ClickAwayListener-hSFuUJnv.js";
|
|
10
10
|
function $() {
|
|
11
11
|
const n = d.useContext(v);
|
|
12
12
|
if (!n)
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import * as ue from "react";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
|
-
import {
|
|
4
|
-
import { a as D, _ as Re } from "./objectWithoutPropertiesLoose-D7Cp0Pg_.js";
|
|
3
|
+
import { a as D, _ as _e } from "./objectWithoutPropertiesLoose-D7Cp0Pg_.js";
|
|
5
4
|
import { c as le } from "./clsx-DB4S2d7J.js";
|
|
6
|
-
function
|
|
5
|
+
function Re(e) {
|
|
7
6
|
return typeof e == "string";
|
|
8
7
|
}
|
|
9
|
-
function
|
|
10
|
-
return e === void 0 ||
|
|
8
|
+
function xe(e, s, o) {
|
|
9
|
+
return e === void 0 || Re(e) ? s : D({}, s, {
|
|
11
10
|
ownerState: D({}, s.ownerState, o)
|
|
12
11
|
});
|
|
13
12
|
}
|
|
14
|
-
const
|
|
13
|
+
const we = {
|
|
15
14
|
disableDefaultClasses: !1
|
|
16
|
-
}, Se = /* @__PURE__ */ ue.createContext(
|
|
15
|
+
}, Se = /* @__PURE__ */ ue.createContext(we);
|
|
17
16
|
process.env.NODE_ENV !== "production" && (Se.displayName = "ClassNameConfiguratorContext");
|
|
18
|
-
function
|
|
17
|
+
function Qe(e) {
|
|
19
18
|
const {
|
|
20
19
|
disableDefaultClasses: s
|
|
21
20
|
} = ue.useContext(Se);
|
|
22
21
|
return (o) => s ? "" : e(o);
|
|
23
22
|
}
|
|
24
|
-
function
|
|
23
|
+
function Ae(e, s = []) {
|
|
25
24
|
if (e === void 0)
|
|
26
25
|
return {};
|
|
27
26
|
const o = {};
|
|
@@ -32,6 +31,9 @@ function $e(e, s = []) {
|
|
|
32
31
|
function je(e, s, o) {
|
|
33
32
|
return typeof e == "function" ? e(s, o) : e;
|
|
34
33
|
}
|
|
34
|
+
function $e(e) {
|
|
35
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
36
|
+
}
|
|
35
37
|
var se = { exports: {} }, V = { exports: {} }, P = {};
|
|
36
38
|
/** @license React v16.13.1
|
|
37
39
|
* react-is.production.min.js
|
|
@@ -46,8 +48,8 @@ function Ie() {
|
|
|
46
48
|
if (de)
|
|
47
49
|
return P;
|
|
48
50
|
de = 1;
|
|
49
|
-
var e = typeof Symbol == "function" && Symbol.for, s = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, u = e ? Symbol.for("react.profiler") : 60114, h = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, _ = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, S = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115,
|
|
50
|
-
function
|
|
51
|
+
var e = typeof Symbol == "function" && Symbol.for, s = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, u = e ? Symbol.for("react.profiler") : 60114, h = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, _ = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, S = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, $ = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, I = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, F = e ? Symbol.for("react.scope") : 60119;
|
|
52
|
+
function j(n) {
|
|
51
53
|
if (typeof n == "object" && n !== null) {
|
|
52
54
|
var W = n.$$typeof;
|
|
53
55
|
switch (W) {
|
|
@@ -64,7 +66,7 @@ function Ie() {
|
|
|
64
66
|
switch (n = n && n.$$typeof, n) {
|
|
65
67
|
case f:
|
|
66
68
|
case m:
|
|
67
|
-
case
|
|
69
|
+
case $:
|
|
68
70
|
case w:
|
|
69
71
|
case h:
|
|
70
72
|
return n;
|
|
@@ -78,37 +80,37 @@ function Ie() {
|
|
|
78
80
|
}
|
|
79
81
|
}
|
|
80
82
|
function A(n) {
|
|
81
|
-
return
|
|
83
|
+
return j(n) === v;
|
|
82
84
|
}
|
|
83
|
-
return P.AsyncMode = _, P.ConcurrentMode = v, P.ContextConsumer = f, P.ContextProvider = h, P.Element = s, P.ForwardRef = m, P.Fragment = a, P.Lazy =
|
|
84
|
-
return A(n) ||
|
|
85
|
+
return P.AsyncMode = _, P.ConcurrentMode = v, P.ContextConsumer = f, P.ContextProvider = h, P.Element = s, P.ForwardRef = m, P.Fragment = a, P.Lazy = $, P.Memo = w, P.Portal = o, P.Profiler = u, P.StrictMode = c, P.Suspense = S, P.isAsyncMode = function(n) {
|
|
86
|
+
return A(n) || j(n) === _;
|
|
85
87
|
}, P.isConcurrentMode = A, P.isContextConsumer = function(n) {
|
|
86
|
-
return
|
|
88
|
+
return j(n) === f;
|
|
87
89
|
}, P.isContextProvider = function(n) {
|
|
88
|
-
return
|
|
90
|
+
return j(n) === h;
|
|
89
91
|
}, P.isElement = function(n) {
|
|
90
92
|
return typeof n == "object" && n !== null && n.$$typeof === s;
|
|
91
93
|
}, P.isForwardRef = function(n) {
|
|
92
|
-
return
|
|
94
|
+
return j(n) === m;
|
|
93
95
|
}, P.isFragment = function(n) {
|
|
94
|
-
return
|
|
96
|
+
return j(n) === a;
|
|
95
97
|
}, P.isLazy = function(n) {
|
|
96
|
-
return
|
|
98
|
+
return j(n) === $;
|
|
97
99
|
}, P.isMemo = function(n) {
|
|
98
|
-
return
|
|
100
|
+
return j(n) === w;
|
|
99
101
|
}, P.isPortal = function(n) {
|
|
100
|
-
return
|
|
102
|
+
return j(n) === o;
|
|
101
103
|
}, P.isProfiler = function(n) {
|
|
102
|
-
return
|
|
104
|
+
return j(n) === u;
|
|
103
105
|
}, P.isStrictMode = function(n) {
|
|
104
|
-
return
|
|
106
|
+
return j(n) === c;
|
|
105
107
|
}, P.isSuspense = function(n) {
|
|
106
|
-
return
|
|
108
|
+
return j(n) === S;
|
|
107
109
|
}, P.isValidElementType = function(n) {
|
|
108
|
-
return typeof n == "string" || typeof n == "function" || n === a || n === v || n === u || n === c || n === S || n === x || typeof n == "object" && n !== null && (n.$$typeof ===
|
|
109
|
-
}, P.typeOf =
|
|
110
|
+
return typeof n == "string" || typeof n == "function" || n === a || n === v || n === u || n === c || n === S || n === x || typeof n == "object" && n !== null && (n.$$typeof === $ || n.$$typeof === w || n.$$typeof === h || n.$$typeof === f || n.$$typeof === m || n.$$typeof === I || n.$$typeof === k || n.$$typeof === F || n.$$typeof === R);
|
|
111
|
+
}, P.typeOf = j, P;
|
|
110
112
|
}
|
|
111
|
-
var
|
|
113
|
+
var O = {};
|
|
112
114
|
/** @license React v16.13.1
|
|
113
115
|
* react-is.development.js
|
|
114
116
|
*
|
|
@@ -120,10 +122,10 @@ var C = {};
|
|
|
120
122
|
var pe;
|
|
121
123
|
function Me() {
|
|
122
124
|
return pe || (pe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
123
|
-
var e = typeof Symbol == "function" && Symbol.for, s = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, u = e ? Symbol.for("react.profiler") : 60114, h = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, _ = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, S = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115,
|
|
124
|
-
function
|
|
125
|
+
var e = typeof Symbol == "function" && Symbol.for, s = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, u = e ? Symbol.for("react.profiler") : 60114, h = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, _ = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, S = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, $ = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, I = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, F = e ? Symbol.for("react.scope") : 60119;
|
|
126
|
+
function j(t) {
|
|
125
127
|
return typeof t == "string" || typeof t == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
126
|
-
t === a || t === v || t === u || t === c || t === S || t === x || typeof t == "object" && t !== null && (t.$$typeof ===
|
|
128
|
+
t === a || t === v || t === u || t === c || t === S || t === x || typeof t == "object" && t !== null && (t.$$typeof === $ || t.$$typeof === w || t.$$typeof === h || t.$$typeof === f || t.$$typeof === m || t.$$typeof === I || t.$$typeof === k || t.$$typeof === F || t.$$typeof === R);
|
|
127
129
|
}
|
|
128
130
|
function A(t) {
|
|
129
131
|
if (typeof t == "object" && t !== null) {
|
|
@@ -144,7 +146,7 @@ function Me() {
|
|
|
144
146
|
switch (fe) {
|
|
145
147
|
case f:
|
|
146
148
|
case m:
|
|
147
|
-
case
|
|
149
|
+
case $:
|
|
148
150
|
case w:
|
|
149
151
|
case h:
|
|
150
152
|
return fe;
|
|
@@ -157,7 +159,7 @@ function Me() {
|
|
|
157
159
|
}
|
|
158
160
|
}
|
|
159
161
|
}
|
|
160
|
-
var n = _, W = v, B = f, J = h, X = s, Z = m, U = a, G =
|
|
162
|
+
var n = _, W = v, B = f, J = h, X = s, Z = m, U = a, G = $, K = w, N = o, Q = u, q = c, L = S, z = !1;
|
|
161
163
|
function ee(t) {
|
|
162
164
|
return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), r(t) || A(t) === _;
|
|
163
165
|
}
|
|
@@ -180,7 +182,7 @@ function Me() {
|
|
|
180
182
|
return A(t) === a;
|
|
181
183
|
}
|
|
182
184
|
function d(t) {
|
|
183
|
-
return A(t) ===
|
|
185
|
+
return A(t) === $;
|
|
184
186
|
}
|
|
185
187
|
function y(t) {
|
|
186
188
|
return A(t) === w;
|
|
@@ -188,7 +190,7 @@ function Me() {
|
|
|
188
190
|
function T(t) {
|
|
189
191
|
return A(t) === o;
|
|
190
192
|
}
|
|
191
|
-
function
|
|
193
|
+
function C(t) {
|
|
192
194
|
return A(t) === u;
|
|
193
195
|
}
|
|
194
196
|
function g(t) {
|
|
@@ -197,8 +199,8 @@ function Me() {
|
|
|
197
199
|
function M(t) {
|
|
198
200
|
return A(t) === S;
|
|
199
201
|
}
|
|
200
|
-
|
|
201
|
-
}()),
|
|
202
|
+
O.AsyncMode = n, O.ConcurrentMode = W, O.ContextConsumer = B, O.ContextProvider = J, O.Element = X, O.ForwardRef = Z, O.Fragment = U, O.Lazy = G, O.Memo = K, O.Portal = N, O.Profiler = Q, O.StrictMode = q, O.Suspense = L, O.isAsyncMode = ee, O.isConcurrentMode = r, O.isContextConsumer = i, O.isContextProvider = b, O.isElement = p, O.isForwardRef = l, O.isFragment = E, O.isLazy = d, O.isMemo = y, O.isPortal = T, O.isProfiler = C, O.isStrictMode = g, O.isSuspense = M, O.isValidElementType = j, O.typeOf = A;
|
|
203
|
+
}()), O;
|
|
202
204
|
}
|
|
203
205
|
var ye;
|
|
204
206
|
function Pe() {
|
|
@@ -265,7 +267,7 @@ function ce() {
|
|
|
265
267
|
return te = e, te;
|
|
266
268
|
}
|
|
267
269
|
var ne, be;
|
|
268
|
-
function
|
|
270
|
+
function Oe() {
|
|
269
271
|
return be || (be = 1, ne = Function.call.bind(Object.prototype.hasOwnProperty)), ne;
|
|
270
272
|
}
|
|
271
273
|
var oe, he;
|
|
@@ -276,7 +278,7 @@ function qe() {
|
|
|
276
278
|
var e = function() {
|
|
277
279
|
};
|
|
278
280
|
if (process.env.NODE_ENV !== "production") {
|
|
279
|
-
var s = ce(), o = {}, a =
|
|
281
|
+
var s = ce(), o = {}, a = Oe();
|
|
280
282
|
e = function(u) {
|
|
281
283
|
var h = "Warning: " + u;
|
|
282
284
|
typeof console < "u" && console.error(h);
|
|
@@ -299,8 +301,8 @@ function qe() {
|
|
|
299
301
|
throw x.name = "Invariant Violation", x;
|
|
300
302
|
}
|
|
301
303
|
S = u[m](h, m, _, f, null, s);
|
|
302
|
-
} catch (
|
|
303
|
-
S =
|
|
304
|
+
} catch ($) {
|
|
305
|
+
S = $;
|
|
304
306
|
}
|
|
305
307
|
if (S && !(S instanceof Error) && e(
|
|
306
308
|
(_ || "React class") + ": type specification of " + f + " `" + m + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof S + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
@@ -323,7 +325,7 @@ function Ye() {
|
|
|
323
325
|
if (Ee)
|
|
324
326
|
return ie;
|
|
325
327
|
Ee = 1;
|
|
326
|
-
var e = Pe(), s = ke(), o = ce(), a =
|
|
328
|
+
var e = Pe(), s = ke(), o = ce(), a = Oe(), c = qe(), u = function() {
|
|
327
329
|
};
|
|
328
330
|
process.env.NODE_ENV !== "production" && (u = function(f) {
|
|
329
331
|
var _ = "Warning: " + f;
|
|
@@ -353,7 +355,7 @@ function Ye() {
|
|
|
353
355
|
string: k("string"),
|
|
354
356
|
symbol: k("symbol"),
|
|
355
357
|
any: F(),
|
|
356
|
-
arrayOf:
|
|
358
|
+
arrayOf: j,
|
|
357
359
|
element: A(),
|
|
358
360
|
elementType: n(),
|
|
359
361
|
instanceOf: W,
|
|
@@ -364,7 +366,7 @@ function Ye() {
|
|
|
364
366
|
shape: G,
|
|
365
367
|
exact: K
|
|
366
368
|
};
|
|
367
|
-
function
|
|
369
|
+
function $(r, i) {
|
|
368
370
|
return r === i ? r !== 0 || 1 / r === 1 / i : r !== r && i !== i;
|
|
369
371
|
}
|
|
370
372
|
function R(r, i) {
|
|
@@ -374,7 +376,7 @@ function Ye() {
|
|
|
374
376
|
function I(r) {
|
|
375
377
|
if (process.env.NODE_ENV !== "production")
|
|
376
378
|
var i = {}, b = 0;
|
|
377
|
-
function p(E, d, y, T,
|
|
379
|
+
function p(E, d, y, T, C, g, M) {
|
|
378
380
|
if (T = T || x, g = g || y, M !== o) {
|
|
379
381
|
if (_) {
|
|
380
382
|
var t = new Error(
|
|
@@ -389,15 +391,15 @@ function Ye() {
|
|
|
389
391
|
), i[Y] = !0, b++);
|
|
390
392
|
}
|
|
391
393
|
}
|
|
392
|
-
return d[y] == null ? E ? d[y] === null ? new R("The " +
|
|
394
|
+
return d[y] == null ? E ? d[y] === null ? new R("The " + C + " `" + g + "` is marked as required " + ("in `" + T + "`, but its value is `null`.")) : new R("The " + C + " `" + g + "` is marked as required in " + ("`" + T + "`, but its value is `undefined`.")) : null : r(d, y, T, C, g);
|
|
393
395
|
}
|
|
394
396
|
var l = p.bind(null, !1);
|
|
395
397
|
return l.isRequired = p.bind(null, !0), l;
|
|
396
398
|
}
|
|
397
399
|
function k(r) {
|
|
398
400
|
function i(b, p, l, E, d, y) {
|
|
399
|
-
var T = b[p],
|
|
400
|
-
if (
|
|
401
|
+
var T = b[p], C = q(T);
|
|
402
|
+
if (C !== r) {
|
|
401
403
|
var g = L(T);
|
|
402
404
|
return new R(
|
|
403
405
|
"Invalid " + E + " `" + d + "` of type " + ("`" + g + "` supplied to `" + l + "`, expected ") + ("`" + r + "`."),
|
|
@@ -411,7 +413,7 @@ function Ye() {
|
|
|
411
413
|
function F() {
|
|
412
414
|
return I(h);
|
|
413
415
|
}
|
|
414
|
-
function
|
|
416
|
+
function j(r) {
|
|
415
417
|
function i(b, p, l, E, d) {
|
|
416
418
|
if (typeof r != "function")
|
|
417
419
|
return new R("Property `" + d + "` of component `" + l + "` has invalid PropType notation inside arrayOf.");
|
|
@@ -420,8 +422,8 @@ function Ye() {
|
|
|
420
422
|
var T = q(y);
|
|
421
423
|
return new R("Invalid " + E + " `" + d + "` of type " + ("`" + T + "` supplied to `" + l + "`, expected an array."));
|
|
422
424
|
}
|
|
423
|
-
for (var
|
|
424
|
-
var g = r(y,
|
|
425
|
+
for (var C = 0; C < y.length; C++) {
|
|
426
|
+
var g = r(y, C, l, E, d + "[" + C + "]", o);
|
|
425
427
|
if (g instanceof Error)
|
|
426
428
|
return g;
|
|
427
429
|
}
|
|
@@ -468,13 +470,13 @@ function Ye() {
|
|
|
468
470
|
) : u("Invalid argument supplied to oneOf, expected an array.")), h;
|
|
469
471
|
function i(b, p, l, E, d) {
|
|
470
472
|
for (var y = b[p], T = 0; T < r.length; T++)
|
|
471
|
-
if (
|
|
473
|
+
if ($(y, r[T]))
|
|
472
474
|
return null;
|
|
473
|
-
var
|
|
475
|
+
var C = JSON.stringify(r, function(M, t) {
|
|
474
476
|
var Y = L(t);
|
|
475
477
|
return Y === "symbol" ? String(t) : t;
|
|
476
478
|
});
|
|
477
|
-
return new R("Invalid " + E + " `" + d + "` of value `" + String(y) + "` " + ("supplied to `" + l + "`, expected one of " +
|
|
479
|
+
return new R("Invalid " + E + " `" + d + "` of value `" + String(y) + "` " + ("supplied to `" + l + "`, expected one of " + C + "."));
|
|
478
480
|
}
|
|
479
481
|
return I(i);
|
|
480
482
|
}
|
|
@@ -485,9 +487,9 @@ function Ye() {
|
|
|
485
487
|
var y = b[p], T = q(y);
|
|
486
488
|
if (T !== "object")
|
|
487
489
|
return new R("Invalid " + E + " `" + d + "` of type " + ("`" + T + "` supplied to `" + l + "`, expected an object."));
|
|
488
|
-
for (var
|
|
489
|
-
if (a(y,
|
|
490
|
-
var g = r(y,
|
|
490
|
+
for (var C in y)
|
|
491
|
+
if (a(y, C)) {
|
|
492
|
+
var g = r(y, C, l, E, d + "." + C, o);
|
|
491
493
|
if (g instanceof Error)
|
|
492
494
|
return g;
|
|
493
495
|
}
|
|
@@ -506,13 +508,13 @@ function Ye() {
|
|
|
506
508
|
), h;
|
|
507
509
|
}
|
|
508
510
|
function p(l, E, d, y, T) {
|
|
509
|
-
for (var
|
|
511
|
+
for (var C = [], g = 0; g < r.length; g++) {
|
|
510
512
|
var M = r[g], t = M(l, E, d, y, T, o);
|
|
511
513
|
if (t == null)
|
|
512
514
|
return null;
|
|
513
|
-
t.data && a(t.data, "expectedType") &&
|
|
515
|
+
t.data && a(t.data, "expectedType") && C.push(t.data.expectedType);
|
|
514
516
|
}
|
|
515
|
-
var Y =
|
|
517
|
+
var Y = C.length > 0 ? ", expected one of type [" + C.join(", ") + "]" : "";
|
|
516
518
|
return new R("Invalid " + y + " `" + T + "` supplied to " + ("`" + d + "`" + Y + "."));
|
|
517
519
|
}
|
|
518
520
|
return I(p);
|
|
@@ -533,11 +535,11 @@ function Ye() {
|
|
|
533
535
|
var y = b[p], T = q(y);
|
|
534
536
|
if (T !== "object")
|
|
535
537
|
return new R("Invalid " + E + " `" + d + "` of type `" + T + "` " + ("supplied to `" + l + "`, expected `object`."));
|
|
536
|
-
for (var
|
|
537
|
-
var g = r[
|
|
538
|
+
for (var C in r) {
|
|
539
|
+
var g = r[C];
|
|
538
540
|
if (typeof g != "function")
|
|
539
|
-
return U(l, E, d,
|
|
540
|
-
var M = g(y,
|
|
541
|
+
return U(l, E, d, C, L(g));
|
|
542
|
+
var M = g(y, C, l, E, d + "." + C, o);
|
|
541
543
|
if (M)
|
|
542
544
|
return M;
|
|
543
545
|
}
|
|
@@ -550,8 +552,8 @@ function Ye() {
|
|
|
550
552
|
var y = b[p], T = q(y);
|
|
551
553
|
if (T !== "object")
|
|
552
554
|
return new R("Invalid " + E + " `" + d + "` of type `" + T + "` " + ("supplied to `" + l + "`, expected `object`."));
|
|
553
|
-
var
|
|
554
|
-
for (var g in
|
|
555
|
+
var C = s({}, b[p], r);
|
|
556
|
+
for (var g in C) {
|
|
555
557
|
var M = r[g];
|
|
556
558
|
if (a(r, g) && typeof M != "function")
|
|
557
559
|
return U(l, E, d, g, L(M));
|
|
@@ -695,7 +697,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
695
697
|
} else
|
|
696
698
|
se.exports = De()();
|
|
697
699
|
var Ne = se.exports;
|
|
698
|
-
const
|
|
700
|
+
const er = /* @__PURE__ */ $e(Ne);
|
|
699
701
|
function Fe(e, s) {
|
|
700
702
|
typeof e == "function" ? e(s) : e && (e.current = s);
|
|
701
703
|
}
|
|
@@ -706,7 +708,7 @@ function Ue(...e) {
|
|
|
706
708
|
});
|
|
707
709
|
}, e);
|
|
708
710
|
}
|
|
709
|
-
function
|
|
711
|
+
function rr(e, s, o = void 0) {
|
|
710
712
|
const a = {};
|
|
711
713
|
return Object.keys(e).forEach(
|
|
712
714
|
// `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
|
|
@@ -753,62 +755,63 @@ function He(e) {
|
|
|
753
755
|
className: u
|
|
754
756
|
} = e;
|
|
755
757
|
if (!s) {
|
|
756
|
-
const w = le(o == null ? void 0 : o.className, u, c == null ? void 0 : c.className, a == null ? void 0 : a.className),
|
|
757
|
-
return w.length > 0 && (R.className = w), Object.keys(
|
|
758
|
+
const w = le(o == null ? void 0 : o.className, u, c == null ? void 0 : c.className, a == null ? void 0 : a.className), $ = D({}, o == null ? void 0 : o.style, c == null ? void 0 : c.style, a == null ? void 0 : a.style), R = D({}, o, c, a);
|
|
759
|
+
return w.length > 0 && (R.className = w), Object.keys($).length > 0 && (R.style = $), {
|
|
758
760
|
props: R,
|
|
759
761
|
internalRef: void 0
|
|
760
762
|
};
|
|
761
763
|
}
|
|
762
|
-
const h =
|
|
764
|
+
const h = Ae(D({}, c, a)), f = ge(a), _ = ge(c), v = s(h), m = le(v == null ? void 0 : v.className, o == null ? void 0 : o.className, u, c == null ? void 0 : c.className, a == null ? void 0 : a.className), S = D({}, v == null ? void 0 : v.style, o == null ? void 0 : o.style, c == null ? void 0 : c.style, a == null ? void 0 : a.style), x = D({}, v, o, _, f);
|
|
763
765
|
return m.length > 0 && (x.className = m), Object.keys(S).length > 0 && (x.style = S), {
|
|
764
766
|
props: x,
|
|
765
767
|
internalRef: v.ref
|
|
766
768
|
};
|
|
767
769
|
}
|
|
768
770
|
const Ve = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
|
|
769
|
-
function
|
|
771
|
+
function tr(e) {
|
|
770
772
|
var s;
|
|
771
773
|
const {
|
|
772
774
|
elementType: o,
|
|
773
775
|
externalSlotProps: a,
|
|
774
776
|
ownerState: c,
|
|
775
777
|
skipResolvingSlotProps: u = !1
|
|
776
|
-
} = e, h =
|
|
778
|
+
} = e, h = _e(e, Ve), f = u ? {} : je(a, c), {
|
|
777
779
|
props: _,
|
|
778
780
|
internalRef: v
|
|
779
781
|
} = He(D({}, h, {
|
|
780
782
|
externalSlotProps: f
|
|
781
783
|
})), m = Ue(v, f == null ? void 0 : f.ref, (s = e.additionalProps) == null ? void 0 : s.ref);
|
|
782
|
-
return
|
|
784
|
+
return xe(o, D({}, _, {
|
|
783
785
|
ref: m
|
|
784
786
|
}), c);
|
|
785
787
|
}
|
|
786
|
-
const
|
|
788
|
+
const Ce = "base";
|
|
787
789
|
function Be(e) {
|
|
788
|
-
return `${
|
|
790
|
+
return `${Ce}--${e}`;
|
|
789
791
|
}
|
|
790
792
|
function Je(e, s) {
|
|
791
|
-
return `${
|
|
793
|
+
return `${Ce}-${e}-${s}`;
|
|
792
794
|
}
|
|
793
795
|
function Xe(e, s) {
|
|
794
796
|
const o = ze[s];
|
|
795
797
|
return o ? Be(o) : Je(e, s);
|
|
796
798
|
}
|
|
797
|
-
function
|
|
799
|
+
function nr(e, s) {
|
|
798
800
|
const o = {};
|
|
799
801
|
return s.forEach((a) => {
|
|
800
802
|
o[a] = Xe(e, a);
|
|
801
803
|
}), o;
|
|
802
804
|
}
|
|
803
805
|
export {
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
806
|
+
er as P,
|
|
807
|
+
nr as a,
|
|
808
|
+
tr as b,
|
|
809
|
+
rr as c,
|
|
810
|
+
Qe as d,
|
|
811
|
+
Ae as e,
|
|
812
|
+
$e as f,
|
|
810
813
|
Xe as g,
|
|
811
|
-
|
|
814
|
+
Re as i,
|
|
812
815
|
Fe as s,
|
|
813
816
|
Ue as u
|
|
814
817
|
};
|
package/dist/main.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* This file is automatically generated. Any changes will be lost.
|
|
3
|
+
* run "yarn export-files" or "yarn build" to regenerate it.
|
|
4
|
+
*/
|
|
2
5
|
export * from './components/Advice/Advice';
|
|
3
6
|
export * from './components/Button/Button';
|
|
4
7
|
export * from './components/Checkbox/Checkbox';
|