@pismo/marola 2.1.67 → 2.1.69
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/assets/Button.css +1 -1
- package/dist/components/Avatar/Avatar.stories.d.ts +1 -1
- package/dist/components/Button/Button.js +66 -66
- package/dist/components/Dialog/Dialog.stories.d.ts +63 -63
- package/dist/components/Draggable/useDraggable.js +1 -1
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +5 -5
- package/dist/components/Icon/Icon.d.ts +3 -2
- package/dist/components/Icon/Icon.js +7 -7
- package/dist/components/Icon/Icon.stories.d.ts +1 -1
- package/dist/components/InputSearch/InputSearch.d.ts +1 -1
- package/dist/components/InputSearch/InputSearch.stories.d.ts +1 -1
- package/dist/components/Popover/Popover.d.ts +3 -2
- package/dist/components/Popover/Popover.js +13 -12
- package/dist/components/Popover/Popover.stories.d.ts +1 -1
- package/dist/components/Snackbar/Snackbar.stories.d.ts +15 -15
- package/dist/contexts/DraggableProvider/DraggableProvider.js +1 -1
- package/dist/{react-BTbo_5A3.js → react-Bl3sGIkV.js} +82 -82
- package/package.json +13 -13
package/dist/assets/Button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._u-typography-
|
|
1
|
+
._u-typography-h1_1a40j_1{font-size:var(--heading-font-size-1);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-1);margin:0}._u-typography-h2_1a40j_8{font-size:var(--heading-font-size-2);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-2);margin:0}._u-typography-h3_1a40j_15{font-size:var(--heading-font-size-3);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-3);margin:0}._u-typography-h4_1a40j_22{font-size:var(--heading-font-size-4);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-4);margin:0}._u-typography-h5_1a40j_29{font-size:var(--heading-font-size-5);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-5);margin:0}._u-typography-h6_1a40j_36{font-size:var(--heading-font-size-6);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-6);margin:0}._u-typography-base_1a40j_43,._button_1a40j_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_1a40j_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_1a40j_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_1a40j_57,._button--large_1a40j_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_1a40j_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_1a40j_65{font-weight:var(--base-bold)}._u-typography-base--strikethrough_1a40j_68{text-decoration:line-through}._u-typography-base--underlined_1a40j_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_1a40j_74{text-decoration:underline line-through}._button_1a40j_43{display:flex;align-items:center;justify-content:center;height:32px;padding:0 15px;font-weight:700;cursor:pointer;border:none;border-radius:6px;transition:all .2s ease}._button--large_1a40j_57{height:40px}._button--small_1a40j_93{height:24px}._button--round_1a40j_96{border-radius:9999px}._button--primary_1a40j_99{color:var(--white-100);background-color:var(--colors-brand-primary-color-primary);border:1px solid var(--colors-brand-primary-color-primary)}._button--primary_1a40j_99:hover{background-color:var(--colors-brand-primary-color-primary-border-hover);border:1px solid var(--colors-brand-primary-color-primary-border-hover)}._button--primary_1a40j_99:active{background-color:var(--colors-brand-primary-color-primary-active);border:1px solid var(--colors-brand-primary-color-primary-active)}._button--primary_1a40j_99:disabled{color:var(--colors-neutral-text-color-text-quaternary);cursor:default;background-color:rgb(var(--black-100-rgb),.04);border:1px solid var(--colors-neutral-border-color-border)}._button--primary--danger_1a40j_118{background-color:var(--colors-brand-error-color-error);border:1px solid var(--colors-brand-error-color-error)}._button--primary--danger_1a40j_118:hover{background-color:var(--colors-brand-error-color-error-hover);border:1px solid var(--colors-brand-error-color-error-hover)}._button--primary--danger_1a40j_118:active{background-color:var(--colors-brand-error-color-error-active);border:1px solid var(--colors-brand-error-color-error-active)}._button--default_1a40j_130{color:var(--colors-neutral-text-color-text);background-color:var(--white-100);border:1px solid var(--colors-neutral-border-color-border)}._button--default_1a40j_130:hover{color:var(--colors-brand-primary-color-primary-border-hover);background-color:var(--white-100);border:1px solid var(--colors-brand-primary-color-primary-border-hover)}._button--default_1a40j_130:active{color:var(--colors-brand-primary-color-primary-active);background-color:initial;border:1px solid var(--colors-brand-primary-color-primary-active)}._button--default_1a40j_130:disabled{color:var(--colors-neutral-text-color-text-quaternary);cursor:default;background-color:rgb(var(--black-100-rgb),.04);border:1px solid var(--colors-neutral-border-color-border)}._button--default--danger_1a40j_151{color:var(--colors-brand-error-color-error);border:1px solid var(--colors-brand-error-color-error)}._button--default--danger_1a40j_151:hover{color:var(--colors-brand-error-color-error-hover);border:1px solid var(--colors-brand-error-color-error-hover)}._button--default--danger_1a40j_151:active{color:var(--colors-brand-error-color-error-active);border:1px solid var(--colors-brand-error-color-error-active)}._button--dashed_1a40j_163{color:var(--colors-neutral-text-color-text);background-color:var(--white-100);border:1px dashed var(--colors-neutral-border-color-border)}._button--dashed_1a40j_163:hover{color:var(--colors-brand-primary-color-primary-border-hover);background-color:var(--white-100);border:1px dashed var(--colors-brand-primary-color-primary-border-hover)}._button--dashed_1a40j_163:active{color:var(--colors-brand-primary-color-primary-active);background-color:initial;border:1px dashed var(--colors-brand-primary-color-primary-active)}._button--dashed_1a40j_163:disabled{color:var(--colors-neutral-text-color-text-quaternary);cursor:default;background-color:rgb(var(--black-100-rgb),.04);border:1px dashed var(--colors-neutral-border-color-border)}._button--dashed--danger_1a40j_184{color:var(--colors-brand-error-color-error);border:1px dashed var(--colors-brand-error-color-error)}._button--dashed--danger_1a40j_184:hover{color:var(--colors-brand-error-color-error-hover);border:1px dashed var(--colors-brand-error-color-error-hover)}._button--dashed--danger_1a40j_184:active{color:var(--colors-brand-error-color-error-active);border:1px dashed var(--colors-brand-error-color-error-active)}._button--link_1a40j_196{color:var(--colors-base-blue-7);background-color:transparent;border:none}._button--link_1a40j_196:hover{color:var(--colors-brand-primary-color-primary-border-hover)}._button--link_1a40j_196:active{color:var(--accent-light);background-color:initial}._button--link_1a40j_196:disabled{color:var(--colors-neutral-text-color-text-quaternary);cursor:default;background-color:initial}._button--link--danger_1a40j_213{color:var(--colors-brand-error-color-error);background-color:transparent}._button--link--danger_1a40j_213:hover{color:var(--colors-brand-error-color-error-hover)}._button--link--danger_1a40j_213:active{color:var(--colors-brand-error-color-error-active)}._button--text_1a40j_223{color:var(--colors-neutral-text-color-text);background-color:transparent}._button--text_1a40j_223:hover{background-color:rgb(var(--black-100-rgb),.06)}._button--text_1a40j_223:active{color:var(--colors-neutral-text-color-text);background-color:rgb(var(--black-100-rgb),.15)}._button--text_1a40j_223:disabled{color:var(--colors-neutral-text-color-text-quaternary);cursor:default;background-color:initial}._button--text--danger_1a40j_239{color:var(--colors-brand-error-color-error);background-color:transparent;border:1px solid transparent}._button--text--danger_1a40j_239:hover{color:var(--colors-brand-error-color-error-hover);background-color:var(--colors-brand-error-color-error-bg);border:1px solid var(--colors-brand-error-color-error-bg)}._button--text--danger_1a40j_239:active{color:var(--colors-brand-error-color-error-active);background-color:var(--colors-brand-error-color-error-bg);border:1px solid var(--colors-brand-error-color-error-hover)}._button--secondary_1a40j_254{color:var(--accent);background-color:var(--white-100)}._button--secondary_1a40j_254:hover{color:var(--accent-dark);background-color:var(--gray-5)}._button--secondary_1a40j_254:active{color:var(--accent-light);background-color:initial}._button--secondary_1a40j_254:disabled{color:var(--black-25);cursor:default;background-color:initial}._button--quick_1a40j_271{height:2rem;padding:0 1rem;color:var(--accent);background-color:rgb(var(--accent-rgb),.05);border-radius:6px}._button--quick_1a40j_271:hover{color:var(--accent-dark);background-color:rgb(var(--accent-rgb),.1)}._button--quick_1a40j_271:active{color:var(--accent-light);background-color:rgb(var(--accent-rgb),.05)}._button--quick_1a40j_271:disabled{color:var(--gray-50);cursor:default;background-color:var(--gray-10)}._button__loading-container_1a40j_291{display:flex;gap:8px;align-items:center}
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
4
|
component: import('react').ForwardRefExoticComponent<{
|
|
5
|
-
type: "icon" | "
|
|
5
|
+
type: "icon" | "text" | "image";
|
|
6
6
|
size?: number | "default" | "small" | "large";
|
|
7
7
|
shape?: "circle" | "square";
|
|
8
8
|
children: import('react').ReactNode;
|
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { LoadingSpinner as
|
|
5
|
-
import { B
|
|
6
|
-
import '../../assets/Button.css';const
|
|
7
|
-
"u-typography-h1": "_u-typography-
|
|
8
|
-
"u-typography-h2": "_u-typography-
|
|
9
|
-
"u-typography-h3": "_u-typography-
|
|
10
|
-
"u-typography-h4": "_u-typography-
|
|
11
|
-
"u-typography-h5": "_u-typography-
|
|
12
|
-
"u-typography-h6": "_u-typography-
|
|
13
|
-
"u-typography-base": "_u-typography-
|
|
14
|
-
button:
|
|
15
|
-
"u-typography-base--xxl": "_u-typography-base--
|
|
16
|
-
"u-typography-base--xl": "_u-typography-base--
|
|
17
|
-
"u-typography-base--lg": "_u-typography-base--
|
|
18
|
-
"button--large": "_button--
|
|
19
|
-
"u-typography-base--sm": "_u-typography-base--
|
|
20
|
-
"u-typography-base--bold": "_u-typography-base--
|
|
21
|
-
"u-typography-base--strikethrough": "_u-typography-base--
|
|
22
|
-
"u-typography-base--underlined": "_u-typography-base--
|
|
23
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-
|
|
24
|
-
"button--small": "_button--
|
|
25
|
-
"button--round": "_button--
|
|
26
|
-
"button--primary": "_button--
|
|
27
|
-
"button--primary--danger": "_button--primary--
|
|
28
|
-
"button--default": "_button--
|
|
29
|
-
"button--default--danger": "_button--default--
|
|
30
|
-
"button--dashed": "_button--
|
|
31
|
-
"button--dashed--danger": "_button--dashed--
|
|
32
|
-
"button--link": "_button--
|
|
33
|
-
"button--link--danger": "_button--link--
|
|
34
|
-
"button--text": "_button--
|
|
35
|
-
"button--text--danger": "_button--text--
|
|
36
|
-
"button--secondary": "_button--
|
|
37
|
-
"button--quick": "_button--
|
|
38
|
-
"button__loading-container": "_button__loading-
|
|
39
|
-
},
|
|
1
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as f, useMemo as k } from "react";
|
|
3
|
+
import { c as x } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import { LoadingSpinner as q } from "../LoadingSpinner/LoadingSpinner.js";
|
|
5
|
+
import { B } from "../../Button-CJaBSdv1.js";
|
|
6
|
+
import '../../assets/Button.css';const $ = "_button_1a40j_43", a = {
|
|
7
|
+
"u-typography-h1": "_u-typography-h1_1a40j_1",
|
|
8
|
+
"u-typography-h2": "_u-typography-h2_1a40j_8",
|
|
9
|
+
"u-typography-h3": "_u-typography-h3_1a40j_15",
|
|
10
|
+
"u-typography-h4": "_u-typography-h4_1a40j_22",
|
|
11
|
+
"u-typography-h5": "_u-typography-h5_1a40j_29",
|
|
12
|
+
"u-typography-h6": "_u-typography-h6_1a40j_36",
|
|
13
|
+
"u-typography-base": "_u-typography-base_1a40j_43",
|
|
14
|
+
button: $,
|
|
15
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_1a40j_49",
|
|
16
|
+
"u-typography-base--xl": "_u-typography-base--xl_1a40j_53",
|
|
17
|
+
"u-typography-base--lg": "_u-typography-base--lg_1a40j_57",
|
|
18
|
+
"button--large": "_button--large_1a40j_57",
|
|
19
|
+
"u-typography-base--sm": "_u-typography-base--sm_1a40j_61",
|
|
20
|
+
"u-typography-base--bold": "_u-typography-base--bold_1a40j_65",
|
|
21
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_1a40j_68",
|
|
22
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_1a40j_71",
|
|
23
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1a40j_74",
|
|
24
|
+
"button--small": "_button--small_1a40j_93",
|
|
25
|
+
"button--round": "_button--round_1a40j_96",
|
|
26
|
+
"button--primary": "_button--primary_1a40j_99",
|
|
27
|
+
"button--primary--danger": "_button--primary--danger_1a40j_118",
|
|
28
|
+
"button--default": "_button--default_1a40j_130",
|
|
29
|
+
"button--default--danger": "_button--default--danger_1a40j_151",
|
|
30
|
+
"button--dashed": "_button--dashed_1a40j_163",
|
|
31
|
+
"button--dashed--danger": "_button--dashed--danger_1a40j_184",
|
|
32
|
+
"button--link": "_button--link_1a40j_196",
|
|
33
|
+
"button--link--danger": "_button--link--danger_1a40j_213",
|
|
34
|
+
"button--text": "_button--text_1a40j_223",
|
|
35
|
+
"button--text--danger": "_button--text--danger_1a40j_239",
|
|
36
|
+
"button--secondary": "_button--secondary_1a40j_254",
|
|
37
|
+
"button--quick": "_button--quick_1a40j_271",
|
|
38
|
+
"button__loading-container": "_button__loading-container_1a40j_291"
|
|
39
|
+
}, w = f((p, s) => {
|
|
40
40
|
const {
|
|
41
|
-
onClick:
|
|
42
|
-
link:
|
|
41
|
+
onClick: y,
|
|
42
|
+
link: d,
|
|
43
43
|
children: o,
|
|
44
44
|
type: b = "button",
|
|
45
45
|
disabled: h,
|
|
46
46
|
loading: g,
|
|
47
|
-
className:
|
|
48
|
-
size:
|
|
47
|
+
className: n,
|
|
48
|
+
size: r = "medium",
|
|
49
49
|
variant: t = "default",
|
|
50
|
-
shape:
|
|
51
|
-
danger:
|
|
50
|
+
shape: u = "square",
|
|
51
|
+
danger: _,
|
|
52
52
|
muiButtonBaseProps: i,
|
|
53
53
|
"data-testid": l
|
|
54
|
-
} =
|
|
54
|
+
} = p, j = {
|
|
55
55
|
invert: t !== "primary"
|
|
56
56
|
};
|
|
57
|
-
(t === "quick" || t === "secondary") && (
|
|
58
|
-
const
|
|
59
|
-
() =>
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
57
|
+
(t === "quick" || t === "secondary") && (u !== "square" || r !== "medium" || _) && console.error("Secondary and Quick variants do not support shape, size or danger props");
|
|
58
|
+
const m = k(
|
|
59
|
+
() => x([
|
|
60
|
+
a.button,
|
|
61
|
+
a[`button--${t}`],
|
|
62
|
+
a[`button--${r}`],
|
|
63
|
+
a[`button--${u}`],
|
|
64
|
+
_ && a[`button--${t}--danger`],
|
|
65
|
+
n
|
|
66
66
|
]),
|
|
67
|
-
[
|
|
67
|
+
[n, t]
|
|
68
68
|
);
|
|
69
|
-
return /* @__PURE__ */
|
|
70
|
-
|
|
69
|
+
return /* @__PURE__ */ e(
|
|
70
|
+
B,
|
|
71
71
|
{
|
|
72
72
|
type: b,
|
|
73
|
-
href:
|
|
74
|
-
onClick:
|
|
73
|
+
href: d,
|
|
74
|
+
onClick: y,
|
|
75
75
|
disabled: h,
|
|
76
|
-
className:
|
|
77
|
-
ref:
|
|
76
|
+
className: m,
|
|
77
|
+
ref: s,
|
|
78
78
|
"data-testid": l,
|
|
79
79
|
...i ?? {},
|
|
80
|
-
children: g ? /* @__PURE__ */
|
|
81
|
-
/* @__PURE__ */
|
|
80
|
+
children: g ? /* @__PURE__ */ c("div", { className: a["button__loading-container"], children: [
|
|
81
|
+
/* @__PURE__ */ e(q, { ...j }),
|
|
82
82
|
o
|
|
83
83
|
] }) : o
|
|
84
84
|
}
|
|
85
85
|
);
|
|
86
86
|
});
|
|
87
87
|
export {
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
w as Button,
|
|
89
|
+
w as default
|
|
90
90
|
};
|
|
@@ -15,67 +15,19 @@ declare const meta: {
|
|
|
15
15
|
tags: string[];
|
|
16
16
|
decorators: ((Story: import('@storybook/core/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
17
17
|
color?: string | undefined | undefined;
|
|
18
|
-
children: import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>> & import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<unknown>>;
|
|
19
|
-
title?: string | undefined | undefined;
|
|
20
|
-
style?: import('react').CSSProperties | undefined;
|
|
21
|
-
className?: string | undefined | undefined;
|
|
22
|
-
slot?: string | undefined | undefined;
|
|
23
18
|
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
24
|
-
|
|
25
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
26
|
-
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
27
|
-
open: boolean;
|
|
28
|
-
content?: string | undefined | undefined;
|
|
29
|
-
dir?: string | undefined | undefined;
|
|
30
|
-
hidden?: boolean | undefined | undefined;
|
|
31
|
-
container?: Element | (() => Element | null) | null | undefined;
|
|
32
|
-
onClick?: import('react').MouseEventHandler<HTMLDivElement> | undefined;
|
|
33
|
-
onChange?: import('react').FormEventHandler<HTMLDivElement> | undefined;
|
|
34
|
-
accessKey?: string | undefined | undefined;
|
|
35
|
-
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
36
|
-
autoFocus?: boolean | undefined | undefined;
|
|
37
|
-
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
38
|
-
contextMenu?: string | undefined | undefined;
|
|
39
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
40
|
-
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
19
|
+
className?: string | undefined | undefined;
|
|
41
20
|
id?: string | undefined | undefined;
|
|
42
21
|
lang?: string | undefined | undefined;
|
|
43
|
-
|
|
44
|
-
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
45
|
-
tabIndex?: number | undefined | undefined;
|
|
46
|
-
translate?: "yes" | "no" | undefined | undefined;
|
|
47
|
-
radioGroup?: string | undefined | undefined;
|
|
22
|
+
style?: import('react').CSSProperties | undefined;
|
|
48
23
|
role?: import('react').AriaRole | undefined;
|
|
49
|
-
|
|
50
|
-
datatype?: string | undefined | undefined;
|
|
51
|
-
inlist?: any;
|
|
52
|
-
prefix?: string | undefined | undefined;
|
|
53
|
-
property?: string | undefined | undefined;
|
|
54
|
-
rel?: string | undefined | undefined;
|
|
55
|
-
resource?: string | undefined | undefined;
|
|
56
|
-
rev?: string | undefined | undefined;
|
|
57
|
-
typeof?: string | undefined | undefined;
|
|
58
|
-
vocab?: string | undefined | undefined;
|
|
59
|
-
autoCorrect?: string | undefined | undefined;
|
|
60
|
-
autoSave?: string | undefined | undefined;
|
|
61
|
-
itemProp?: string | undefined | undefined;
|
|
62
|
-
itemScope?: boolean | undefined | undefined;
|
|
63
|
-
itemType?: string | undefined | undefined;
|
|
64
|
-
itemID?: string | undefined | undefined;
|
|
65
|
-
itemRef?: string | undefined | undefined;
|
|
66
|
-
results?: number | undefined | undefined;
|
|
67
|
-
security?: string | undefined | undefined;
|
|
68
|
-
unselectable?: "on" | "off" | undefined | undefined;
|
|
69
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
70
|
-
is?: string | undefined | undefined;
|
|
71
|
-
exportparts?: string | undefined | undefined;
|
|
72
|
-
part?: string | undefined | undefined;
|
|
24
|
+
tabIndex?: number | undefined | undefined;
|
|
73
25
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
74
|
-
"aria-atomic"?: (boolean | "
|
|
26
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
75
27
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
76
28
|
"aria-braillelabel"?: string | undefined | undefined;
|
|
77
29
|
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
78
|
-
"aria-busy"?: (boolean | "
|
|
30
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
79
31
|
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
80
32
|
"aria-colcount"?: number | undefined | undefined;
|
|
81
33
|
"aria-colindex"?: number | undefined | undefined;
|
|
@@ -86,43 +38,44 @@ declare const meta: {
|
|
|
86
38
|
"aria-describedby"?: string | undefined | undefined;
|
|
87
39
|
"aria-description"?: string | undefined | undefined;
|
|
88
40
|
"aria-details"?: string | undefined | undefined;
|
|
89
|
-
"aria-disabled"?: (boolean | "
|
|
41
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
90
42
|
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
91
43
|
"aria-errormessage"?: string | undefined | undefined;
|
|
92
|
-
"aria-expanded"?: (boolean | "
|
|
44
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
93
45
|
"aria-flowto"?: string | undefined | undefined;
|
|
94
|
-
"aria-grabbed"?: (boolean | "
|
|
46
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
95
47
|
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
96
|
-
"aria-hidden"?: (boolean | "
|
|
48
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
97
49
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
98
50
|
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
99
51
|
"aria-label"?: string | undefined | undefined;
|
|
100
52
|
"aria-labelledby"?: string | undefined | undefined;
|
|
101
53
|
"aria-level"?: number | undefined | undefined;
|
|
102
54
|
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
103
|
-
"aria-modal"?: (boolean | "
|
|
104
|
-
"aria-multiline"?: (boolean | "
|
|
105
|
-
"aria-multiselectable"?: (boolean | "
|
|
55
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
56
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
57
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
106
58
|
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
107
59
|
"aria-owns"?: string | undefined | undefined;
|
|
108
60
|
"aria-placeholder"?: string | undefined | undefined;
|
|
109
61
|
"aria-posinset"?: number | undefined | undefined;
|
|
110
62
|
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
111
|
-
"aria-readonly"?: (boolean | "
|
|
63
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
112
64
|
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
113
|
-
"aria-required"?: (boolean | "
|
|
65
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
114
66
|
"aria-roledescription"?: string | undefined | undefined;
|
|
115
67
|
"aria-rowcount"?: number | undefined | undefined;
|
|
116
68
|
"aria-rowindex"?: number | undefined | undefined;
|
|
117
69
|
"aria-rowindextext"?: string | undefined | undefined;
|
|
118
70
|
"aria-rowspan"?: number | undefined | undefined;
|
|
119
|
-
"aria-selected"?: (boolean | "
|
|
71
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
120
72
|
"aria-setsize"?: number | undefined | undefined;
|
|
121
73
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
122
74
|
"aria-valuemax"?: number | undefined | undefined;
|
|
123
75
|
"aria-valuemin"?: number | undefined | undefined;
|
|
124
76
|
"aria-valuenow"?: number | undefined | undefined;
|
|
125
77
|
"aria-valuetext"?: string | undefined | undefined;
|
|
78
|
+
children: import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>> & import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<unknown>>;
|
|
126
79
|
dangerouslySetInnerHTML?: {
|
|
127
80
|
__html: string | TrustedHTML;
|
|
128
81
|
} | undefined | undefined;
|
|
@@ -142,6 +95,7 @@ declare const meta: {
|
|
|
142
95
|
onFocusCapture?: import('react').FocusEventHandler<HTMLDivElement> | undefined;
|
|
143
96
|
onBlur?: import('react').FocusEventHandler<HTMLDivElement> | undefined;
|
|
144
97
|
onBlurCapture?: import('react').FocusEventHandler<HTMLDivElement> | undefined;
|
|
98
|
+
onChange?: import('react').FormEventHandler<HTMLDivElement> | undefined;
|
|
145
99
|
onChangeCapture?: import('react').FormEventHandler<HTMLDivElement> | undefined;
|
|
146
100
|
onBeforeInput?: import('react').InputEventHandler<HTMLDivElement> | undefined;
|
|
147
101
|
onBeforeInputCapture?: import('react').FormEventHandler<HTMLDivElement> | undefined;
|
|
@@ -209,6 +163,7 @@ declare const meta: {
|
|
|
209
163
|
onWaitingCapture?: import('react').ReactEventHandler<HTMLDivElement> | undefined;
|
|
210
164
|
onAuxClick?: import('react').MouseEventHandler<HTMLDivElement> | undefined;
|
|
211
165
|
onAuxClickCapture?: import('react').MouseEventHandler<HTMLDivElement> | undefined;
|
|
166
|
+
onClick?: import('react').MouseEventHandler<HTMLDivElement> | undefined;
|
|
212
167
|
onClickCapture?: import('react').MouseEventHandler<HTMLDivElement> | undefined;
|
|
213
168
|
onContextMenu?: import('react').MouseEventHandler<HTMLDivElement> | undefined;
|
|
214
169
|
onContextMenuCapture?: import('react').MouseEventHandler<HTMLDivElement> | undefined;
|
|
@@ -282,6 +237,51 @@ declare const meta: {
|
|
|
282
237
|
onAnimationIterationCapture?: import('react').AnimationEventHandler<HTMLDivElement> | undefined;
|
|
283
238
|
onTransitionEnd?: import('react').TransitionEventHandler<HTMLDivElement> | undefined;
|
|
284
239
|
onTransitionEndCapture?: import('react').TransitionEventHandler<HTMLDivElement> | undefined;
|
|
240
|
+
title?: string | undefined | undefined;
|
|
241
|
+
hidden?: boolean | undefined | undefined;
|
|
242
|
+
content?: string | undefined | undefined;
|
|
243
|
+
open: boolean;
|
|
244
|
+
slot?: string | undefined | undefined;
|
|
245
|
+
defaultChecked?: boolean | undefined | undefined;
|
|
246
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
247
|
+
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
248
|
+
dir?: string | undefined | undefined;
|
|
249
|
+
container?: Element | (() => Element | null) | null | undefined;
|
|
250
|
+
accessKey?: string | undefined | undefined;
|
|
251
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
252
|
+
autoFocus?: boolean | undefined | undefined;
|
|
253
|
+
contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
|
|
254
|
+
contextMenu?: string | undefined | undefined;
|
|
255
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
|
256
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
257
|
+
nonce?: string | undefined | undefined;
|
|
258
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
259
|
+
translate?: "yes" | "no" | undefined | undefined;
|
|
260
|
+
radioGroup?: string | undefined | undefined;
|
|
261
|
+
about?: string | undefined | undefined;
|
|
262
|
+
datatype?: string | undefined | undefined;
|
|
263
|
+
inlist?: any;
|
|
264
|
+
prefix?: string | undefined | undefined;
|
|
265
|
+
property?: string | undefined | undefined;
|
|
266
|
+
rel?: string | undefined | undefined;
|
|
267
|
+
resource?: string | undefined | undefined;
|
|
268
|
+
rev?: string | undefined | undefined;
|
|
269
|
+
typeof?: string | undefined | undefined;
|
|
270
|
+
vocab?: string | undefined | undefined;
|
|
271
|
+
autoCorrect?: string | undefined | undefined;
|
|
272
|
+
autoSave?: string | undefined | undefined;
|
|
273
|
+
itemProp?: string | undefined | undefined;
|
|
274
|
+
itemScope?: boolean | undefined | undefined;
|
|
275
|
+
itemType?: string | undefined | undefined;
|
|
276
|
+
itemID?: string | undefined | undefined;
|
|
277
|
+
itemRef?: string | undefined | undefined;
|
|
278
|
+
results?: number | undefined | undefined;
|
|
279
|
+
security?: string | undefined | undefined;
|
|
280
|
+
unselectable?: "on" | "off" | undefined | undefined;
|
|
281
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
282
|
+
is?: string | undefined | undefined;
|
|
283
|
+
exportparts?: string | undefined | undefined;
|
|
284
|
+
part?: string | undefined | undefined;
|
|
285
285
|
slotProps?: {
|
|
286
286
|
root?: import('@mui/base').SlotComponentProps<"div", import('@mui/base').ModalRootSlotPropsOverrides, import('@mui/base').ModalOwnerState>;
|
|
287
287
|
backdrop?: import('@mui/base').SlotComponentProps<"div", import('@mui/base').ModalBackdropSlotPropsOverrides, import('@mui/base').ModalOwnerState>;
|
|
@@ -8,10 +8,13 @@ declare const meta: {
|
|
|
8
8
|
layout: string;
|
|
9
9
|
};
|
|
10
10
|
decorators: ((Story: import('@storybook/core/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
11
|
+
className?: string | undefined;
|
|
12
|
+
style?: import('react').CSSProperties | undefined;
|
|
11
13
|
children: import('react').ReactNode;
|
|
12
14
|
title?: import('react').ReactNode;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
content: import('react').ReactNode;
|
|
16
|
+
position?: import('@floating-ui/utils').Placement | undefined;
|
|
17
|
+
open?: boolean | undefined;
|
|
15
18
|
'data-testid'?: string | undefined;
|
|
16
19
|
footer?: {
|
|
17
20
|
type: "button" | "link";
|
|
@@ -19,10 +22,7 @@ declare const meta: {
|
|
|
19
22
|
onClick?: () => void;
|
|
20
23
|
href?: string;
|
|
21
24
|
} | undefined;
|
|
22
|
-
open?: boolean | undefined;
|
|
23
25
|
onClose?: (() => void) | undefined;
|
|
24
|
-
content: import('react').ReactNode;
|
|
25
|
-
position?: import('@floating-ui/utils').Placement | undefined;
|
|
26
26
|
disablePortal?: boolean | undefined;
|
|
27
27
|
arialRole?: import('react').AriaRole | undefined;
|
|
28
28
|
disableHoverListener?: boolean | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IconName } from './types';
|
|
2
|
+
import { SVGAttributes } from 'react';
|
|
2
3
|
export type IconFile = React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
3
4
|
title?: string | undefined;
|
|
4
5
|
}>;
|
|
@@ -9,5 +10,5 @@ export type IconProps = {
|
|
|
9
10
|
size?: number | string;
|
|
10
11
|
/** Icon color */
|
|
11
12
|
color?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const Icon: (
|
|
13
|
+
} & SVGAttributes<SVGElement>;
|
|
14
|
+
export declare const Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { iconsList as
|
|
3
|
-
const
|
|
4
|
-
const c =
|
|
1
|
+
import { jsxs as e, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { iconsList as l } from "../../utils/iconsList.js";
|
|
3
|
+
const m = (n) => {
|
|
4
|
+
const { icon: o, size: t, color: s, ...r } = n, c = l[o] ?? /* @__PURE__ */ e("span", { title: o, children: [
|
|
5
5
|
"ERROR ICON ",
|
|
6
|
-
/* @__PURE__ */ i(
|
|
6
|
+
/* @__PURE__ */ i(m, { icon: "circle-exclamation" })
|
|
7
7
|
] });
|
|
8
|
-
return c && /* @__PURE__ */ i(c, { style: { color:
|
|
8
|
+
return c && /* @__PURE__ */ i(c, { style: { color: s, height: t, width: t }, ...r });
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
m as Icon
|
|
12
12
|
};
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
import { IconProps } from './Icon';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: (
|
|
5
|
+
component: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
tags: string[];
|
|
7
7
|
parameters: {
|
|
8
8
|
layout: string;
|
|
@@ -10,7 +10,7 @@ export declare const InputSearch: import('react').ForwardRefExoticComponent<(Omi
|
|
|
10
10
|
multiline?: false;
|
|
11
11
|
leftIcon?: import('react').ReactNode;
|
|
12
12
|
rightIcon?: import('react').ReactNode;
|
|
13
|
-
type?: ("number" | "url" | "file" | "color" | "search" | (string & {}) | "button" | "
|
|
13
|
+
type?: ("number" | "url" | "file" | "color" | "search" | (string & {}) | "button" | "hidden" | "text" | "reset" | "range" | "time" | "image" | "tel" | "email" | "date" | "datetime-local" | "month" | "password" | "week") | "number-as-text";
|
|
14
14
|
triggerDelay?: number;
|
|
15
15
|
allowLeadingZeros?: boolean;
|
|
16
16
|
isInteger?: boolean;
|
|
@@ -12,7 +12,7 @@ declare const meta: {
|
|
|
12
12
|
multiline?: false;
|
|
13
13
|
leftIcon?: import('react').ReactNode;
|
|
14
14
|
rightIcon?: import('react').ReactNode;
|
|
15
|
-
type?: ("number" | "url" | "file" | "color" | "search" | (string & {}) | "button" | "
|
|
15
|
+
type?: ("number" | "url" | "file" | "color" | "search" | (string & {}) | "button" | "hidden" | "text" | "reset" | "range" | "time" | "image" | "tel" | "email" | "date" | "datetime-local" | "month" | "password" | "week") | "number-as-text";
|
|
16
16
|
triggerDelay?: number;
|
|
17
17
|
allowLeadingZeros?: boolean;
|
|
18
18
|
isInteger?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PopupOffsetOptions, PopupPlacement } from '@mui/base/Unstable_Popup';
|
|
1
|
+
import { PopupOwnProps as MUIPopupBaseProps, PopupOffsetOptions, PopupPlacement } from '@mui/base/Unstable_Popup';
|
|
2
2
|
export type PopoverProps = {
|
|
3
3
|
/** An HTML element or a function that returns either. */
|
|
4
4
|
anchorRef?: Element;
|
|
@@ -16,9 +16,10 @@ export type PopoverProps = {
|
|
|
16
16
|
'data-testid'?: string;
|
|
17
17
|
/** Callback fired when a "click away" event is detected. */
|
|
18
18
|
onClickAway?: (event: MouseEvent | TouchEvent) => void;
|
|
19
|
+
muiPopupBaseProps?: MUIPopupBaseProps;
|
|
19
20
|
};
|
|
20
21
|
export declare const Popover: {
|
|
21
|
-
({ anchorRef, open, children, placement, className, offset, "data-testid": dataTestId, onClickAway, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
({ anchorRef, open, children, placement, className, offset, "data-testid": dataTestId, onClickAway, muiPopupBaseProps, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
22
23
|
Header: ({ children }: {
|
|
23
24
|
children: React.ReactNode;
|
|
24
25
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { s as
|
|
4
|
-
import { PopoverBody as
|
|
5
|
-
import { PopoverFooter as
|
|
6
|
-
import { PopoverHeader as
|
|
7
|
-
import { P as
|
|
8
|
-
import { C as
|
|
2
|
+
import { c as v } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { s as l } from "../../Popover.module-B4boCutS.js";
|
|
4
|
+
import { PopoverBody as n } from "./PopoverBody.js";
|
|
5
|
+
import { PopoverFooter as P } from "./PopoverFooter.js";
|
|
6
|
+
import { PopoverHeader as y } from "./PopoverHeader.js";
|
|
7
|
+
import { P as h } from "../../Popup-D267EI4e.js";
|
|
8
|
+
import { C as x } from "../../ClickAwayListener-BnYMO5Ki.js";
|
|
9
9
|
const r = ({
|
|
10
10
|
anchorRef: t,
|
|
11
11
|
open: m,
|
|
@@ -14,11 +14,12 @@ const r = ({
|
|
|
14
14
|
className: s,
|
|
15
15
|
offset: a,
|
|
16
16
|
"data-testid": d,
|
|
17
|
-
onClickAway: e
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
r.
|
|
21
|
-
r.
|
|
17
|
+
onClickAway: e,
|
|
18
|
+
muiPopupBaseProps: c
|
|
19
|
+
}) => /* @__PURE__ */ o(x, { onClickAway: (f) => e ? e(f) : void 0, children: /* @__PURE__ */ o(h, { ...c, offset: a, placement: i, open: m, anchor: t, children: /* @__PURE__ */ o("div", { "data-testid": d, className: v(l.popover, s), children: p }) }) });
|
|
20
|
+
r.Header = y;
|
|
21
|
+
r.Footer = P;
|
|
22
|
+
r.Body = n;
|
|
22
23
|
export {
|
|
23
24
|
r as Popover
|
|
24
25
|
};
|
|
@@ -3,7 +3,7 @@ import { PopoverProps } from './Popover';
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: {
|
|
6
|
-
({ anchorRef, open, children, placement, className, offset, "data-testid": dataTestId, onClickAway, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
({ anchorRef, open, children, placement, className, offset, "data-testid": dataTestId, onClickAway, muiPopupBaseProps, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
Header: ({ children }: {
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -44,17 +44,17 @@ declare const meta: {
|
|
|
44
44
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
45
45
|
autoFocus?: boolean | undefined | undefined;
|
|
46
46
|
className?: string | undefined | undefined;
|
|
47
|
-
contentEditable?: "inherit" | (boolean | "
|
|
47
|
+
contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
|
|
48
48
|
contextMenu?: string | undefined | undefined;
|
|
49
49
|
dir?: string | undefined | undefined;
|
|
50
|
-
draggable?: (boolean | "
|
|
50
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
|
51
51
|
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
52
52
|
hidden?: boolean | undefined | undefined;
|
|
53
53
|
id?: string | undefined | undefined;
|
|
54
54
|
lang?: string | undefined | undefined;
|
|
55
55
|
nonce?: string | undefined | undefined;
|
|
56
56
|
slot?: string | undefined | undefined;
|
|
57
|
-
spellCheck?: (boolean | "
|
|
57
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
58
58
|
style?: import('react').CSSProperties | undefined;
|
|
59
59
|
tabIndex?: number | undefined | undefined;
|
|
60
60
|
title?: string | undefined | undefined;
|
|
@@ -88,11 +88,11 @@ declare const meta: {
|
|
|
88
88
|
exportparts?: string | undefined | undefined;
|
|
89
89
|
part?: string | undefined | undefined;
|
|
90
90
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
91
|
-
"aria-atomic"?: (boolean | "
|
|
91
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
92
92
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
93
93
|
"aria-braillelabel"?: string | undefined | undefined;
|
|
94
94
|
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
95
|
-
"aria-busy"?: (boolean | "
|
|
95
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
96
96
|
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
97
97
|
"aria-colcount"?: number | undefined | undefined;
|
|
98
98
|
"aria-colindex"?: number | undefined | undefined;
|
|
@@ -103,37 +103,37 @@ declare const meta: {
|
|
|
103
103
|
"aria-describedby"?: string | undefined | undefined;
|
|
104
104
|
"aria-description"?: string | undefined | undefined;
|
|
105
105
|
"aria-details"?: string | undefined | undefined;
|
|
106
|
-
"aria-disabled"?: (boolean | "
|
|
106
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
107
107
|
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
108
108
|
"aria-errormessage"?: string | undefined | undefined;
|
|
109
|
-
"aria-expanded"?: (boolean | "
|
|
109
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
110
110
|
"aria-flowto"?: string | undefined | undefined;
|
|
111
|
-
"aria-grabbed"?: (boolean | "
|
|
111
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
112
112
|
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
113
|
-
"aria-hidden"?: (boolean | "
|
|
113
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
114
114
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
115
115
|
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
116
116
|
"aria-label"?: string | undefined | undefined;
|
|
117
117
|
"aria-labelledby"?: string | undefined | undefined;
|
|
118
118
|
"aria-level"?: number | undefined | undefined;
|
|
119
119
|
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
120
|
-
"aria-modal"?: (boolean | "
|
|
121
|
-
"aria-multiline"?: (boolean | "
|
|
122
|
-
"aria-multiselectable"?: (boolean | "
|
|
120
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
121
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
122
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
123
123
|
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
124
124
|
"aria-owns"?: string | undefined | undefined;
|
|
125
125
|
"aria-placeholder"?: string | undefined | undefined;
|
|
126
126
|
"aria-posinset"?: number | undefined | undefined;
|
|
127
127
|
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
128
|
-
"aria-readonly"?: (boolean | "
|
|
128
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
129
129
|
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
130
|
-
"aria-required"?: (boolean | "
|
|
130
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
131
131
|
"aria-roledescription"?: string | undefined | undefined;
|
|
132
132
|
"aria-rowcount"?: number | undefined | undefined;
|
|
133
133
|
"aria-rowindex"?: number | undefined | undefined;
|
|
134
134
|
"aria-rowindextext"?: string | undefined | undefined;
|
|
135
135
|
"aria-rowspan"?: number | undefined | undefined;
|
|
136
|
-
"aria-selected"?: (boolean | "
|
|
136
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
137
137
|
"aria-setsize"?: number | undefined | undefined;
|
|
138
138
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
139
139
|
"aria-valuemax"?: number | undefined | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import U, { useRef as et, createElement as x, createContext as ot, useReducer as st, useEffect as it, useDebugValue as ct, useCallback as ut, useContext as rt } from "react";
|
|
2
|
-
const
|
|
2
|
+
const A = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_LAUNCH_DARKLY_CLIENT_SIDE_ID_DEV: "6633a3dc41b2c01051947c9e" };
|
|
3
3
|
function J(t) {
|
|
4
4
|
return "init" in t;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function B(t) {
|
|
7
7
|
return !!t.write;
|
|
8
8
|
}
|
|
9
9
|
function F(t) {
|
|
@@ -12,23 +12,23 @@ function F(t) {
|
|
|
12
12
|
function I(t) {
|
|
13
13
|
if ("e" in t)
|
|
14
14
|
throw t.e;
|
|
15
|
-
if ((
|
|
15
|
+
if ((A ? "production" : void 0) !== "production" && !("v" in t))
|
|
16
16
|
throw new Error("[Bug] atom state is not initialized");
|
|
17
17
|
return t.v;
|
|
18
18
|
}
|
|
19
|
-
const
|
|
19
|
+
const R = /* @__PURE__ */ new WeakMap();
|
|
20
20
|
function $(t) {
|
|
21
21
|
var n;
|
|
22
|
-
return
|
|
22
|
+
return C(t) && !!((n = R.get(t)) != null && n[0]);
|
|
23
23
|
}
|
|
24
24
|
function at(t) {
|
|
25
|
-
const n =
|
|
25
|
+
const n = R.get(t);
|
|
26
26
|
n != null && n[0] && (n[0] = !1, n[1].forEach((o) => o()));
|
|
27
27
|
}
|
|
28
28
|
function O(t, n) {
|
|
29
|
-
let o =
|
|
29
|
+
let o = R.get(t);
|
|
30
30
|
if (!o) {
|
|
31
|
-
o = [!0, /* @__PURE__ */ new Set()],
|
|
31
|
+
o = [!0, /* @__PURE__ */ new Set()], R.set(t, o);
|
|
32
32
|
const e = () => {
|
|
33
33
|
o[0] = !1;
|
|
34
34
|
};
|
|
@@ -36,7 +36,7 @@ function O(t, n) {
|
|
|
36
36
|
}
|
|
37
37
|
o[1].add(n);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function C(t) {
|
|
40
40
|
return typeof (t == null ? void 0 : t.then) == "function";
|
|
41
41
|
}
|
|
42
42
|
function G(t, n, o) {
|
|
@@ -46,7 +46,7 @@ function G(t, n, o) {
|
|
|
46
46
|
n.then(e, e);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function K(t, n, o) {
|
|
50
50
|
var e;
|
|
51
51
|
const s = /* @__PURE__ */ new Set();
|
|
52
52
|
for (const i of ((e = o.get(t)) == null ? void 0 : e.t) || [])
|
|
@@ -68,7 +68,7 @@ const lt = (t, n, ...o) => n.read(...o), dt = (t, n, ...o) => n.write(...o), ft
|
|
|
68
68
|
}, ht = (t, n) => {
|
|
69
69
|
var o;
|
|
70
70
|
const e = S(t), s = e[0], i = e[6], a = e[9];
|
|
71
|
-
if ((
|
|
71
|
+
if ((A ? "production" : void 0) !== "production" && !n)
|
|
72
72
|
throw new Error("Atom is undefined or null");
|
|
73
73
|
let v = s.get(n);
|
|
74
74
|
return v || (v = { d: /* @__PURE__ */ new Map(), p: /* @__PURE__ */ new Set(), n: 0 }, s.set(n, v), (o = i.i) == null || o.call(i, n), a == null || a(t, n)), v;
|
|
@@ -101,13 +101,13 @@ const lt = (t, n, ...o) => n.read(...o), dt = (t, n, ...o) => n.write(...o), ft
|
|
|
101
101
|
if (c.has(h)) {
|
|
102
102
|
if (e.get(h) === l.n)
|
|
103
103
|
f.push([h, l]);
|
|
104
|
-
else if ((
|
|
104
|
+
else if ((A ? "production" : void 0) !== "production" && e.has(h))
|
|
105
105
|
throw new Error("[Bug] invalidated atom exists");
|
|
106
106
|
d.add(h), u.pop();
|
|
107
107
|
continue;
|
|
108
108
|
}
|
|
109
109
|
c.add(h);
|
|
110
|
-
for (const p of
|
|
110
|
+
for (const p of K(h, l, o))
|
|
111
111
|
c.has(p) || u.push(p);
|
|
112
112
|
}
|
|
113
113
|
for (let h = f.length - 1; h >= 0; --h) {
|
|
@@ -120,7 +120,7 @@ const lt = (t, n, ...o) => n.read(...o), dt = (t, n, ...o) => n.write(...o), ft
|
|
|
120
120
|
}
|
|
121
121
|
b && (a(t, l), v(t, l)), e.delete(l);
|
|
122
122
|
}
|
|
123
|
-
},
|
|
123
|
+
}, L = /* @__PURE__ */ new WeakSet(), St = (t, n) => {
|
|
124
124
|
var o, e;
|
|
125
125
|
const s = S(t), i = s[1], a = s[2], v = s[3], f = s[6], c = s[7], d = s[11], u = s[12], h = s[13], l = s[14], p = s[16], b = s[17], r = d(t, n);
|
|
126
126
|
if (F(r)) {
|
|
@@ -136,26 +136,26 @@ const lt = (t, n, ...o) => n.read(...o), dt = (t, n, ...o) => n.write(...o), ft
|
|
|
136
136
|
return r;
|
|
137
137
|
}
|
|
138
138
|
r.d.clear();
|
|
139
|
-
let
|
|
140
|
-
function
|
|
139
|
+
let m = !0;
|
|
140
|
+
function _() {
|
|
141
141
|
i.has(n) && (b(t, n), h(t), u(t));
|
|
142
142
|
}
|
|
143
143
|
function M(g) {
|
|
144
144
|
var D;
|
|
145
145
|
if (g === n) {
|
|
146
|
-
const
|
|
147
|
-
if (!F(
|
|
146
|
+
const z = d(t, g);
|
|
147
|
+
if (!F(z))
|
|
148
148
|
if (J(g))
|
|
149
|
-
|
|
149
|
+
P(t, g, g.init);
|
|
150
150
|
else
|
|
151
151
|
throw new Error("no atom init");
|
|
152
|
-
return I(
|
|
152
|
+
return I(z);
|
|
153
153
|
}
|
|
154
154
|
const y = l(t, g);
|
|
155
155
|
try {
|
|
156
156
|
return I(y);
|
|
157
157
|
} finally {
|
|
158
|
-
r.d.set(g, y.n), $(r.v) && G(n, r.v, y), i.has(n) && ((D = i.get(g)) == null || D.t.add(n)),
|
|
158
|
+
r.d.set(g, y.n), $(r.v) && G(n, r.v, y), i.has(n) && ((D = i.get(g)) == null || D.t.add(n)), m || _();
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
let w, k;
|
|
@@ -164,8 +164,8 @@ const lt = (t, n, ...o) => n.read(...o), dt = (t, n, ...o) => n.write(...o), ft
|
|
|
164
164
|
return w || (w = new AbortController()), w.signal;
|
|
165
165
|
},
|
|
166
166
|
get setSelf() {
|
|
167
|
-
return (
|
|
168
|
-
if ((
|
|
167
|
+
return (A ? "production" : void 0) !== "production" && !B(n) && console.warn("setSelf function cannot be used with read-only atom"), !k && B(n) && (k = (...g) => {
|
|
168
|
+
if ((A ? "production" : void 0) !== "production" && m && console.warn("setSelf function cannot be called in sync"), !m)
|
|
169
169
|
try {
|
|
170
170
|
return p(t, n, ...g);
|
|
171
171
|
} finally {
|
|
@@ -175,41 +175,41 @@ const lt = (t, n, ...o) => n.read(...o), dt = (t, n, ...o) => n.write(...o), ft
|
|
|
175
175
|
}
|
|
176
176
|
}, H = r.n;
|
|
177
177
|
try {
|
|
178
|
-
(
|
|
178
|
+
(A ? "production" : void 0) !== "production" && L.delete(t);
|
|
179
179
|
const g = c(t, n, M, nt);
|
|
180
|
-
return (
|
|
180
|
+
return (A ? "production" : void 0) !== "production" && L.has(t) && console.warn(
|
|
181
181
|
"Detected store mutation during atom read. This is not supported."
|
|
182
|
-
),
|
|
182
|
+
), P(t, n, g), C(g) && (O(g, () => w == null ? void 0 : w.abort()), g.then(_, _)), (o = f.r) == null || o.call(f, n), r;
|
|
183
183
|
} catch (g) {
|
|
184
184
|
return delete r.v, r.e = g, ++r.n, r;
|
|
185
185
|
} finally {
|
|
186
|
-
|
|
186
|
+
m = !1, H !== r.n && a.get(n) === H && (a.set(n, r.n), v.add(n), (e = f.c) == null || e.call(f, n));
|
|
187
187
|
}
|
|
188
188
|
}, bt = (t, n) => {
|
|
189
189
|
const o = S(t), e = o[1], s = o[2], i = o[11], a = [n];
|
|
190
190
|
for (; a.length; ) {
|
|
191
191
|
const v = a.pop(), f = i(t, v);
|
|
192
|
-
for (const c of
|
|
192
|
+
for (const c of K(v, f, e)) {
|
|
193
193
|
const d = i(t, c);
|
|
194
194
|
s.set(c, d.n), a.push(c);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
},
|
|
197
|
+
}, Y = (t, n, ...o) => {
|
|
198
198
|
const e = S(t), s = e[3], i = e[6], a = e[8], v = e[11], f = e[12], c = e[13], d = e[14], u = e[15], h = e[17];
|
|
199
199
|
let l = !0;
|
|
200
|
-
const p = (r) => I(d(t, r)), b = (r, ...
|
|
201
|
-
var
|
|
200
|
+
const p = (r) => I(d(t, r)), b = (r, ...m) => {
|
|
201
|
+
var _;
|
|
202
202
|
const M = v(t, r);
|
|
203
203
|
try {
|
|
204
204
|
if (r === n) {
|
|
205
205
|
if (!J(r))
|
|
206
206
|
throw new Error("atom not writable");
|
|
207
|
-
(
|
|
208
|
-
const w = M.n, k =
|
|
209
|
-
|
|
207
|
+
(A ? "production" : void 0) !== "production" && L.add(t);
|
|
208
|
+
const w = M.n, k = m[0];
|
|
209
|
+
P(t, r, k), h(t, r), w !== M.n && (s.add(r), u(t, r), (_ = i.c) == null || _.call(i, r));
|
|
210
210
|
return;
|
|
211
211
|
} else
|
|
212
|
-
return
|
|
212
|
+
return Y(t, r, ...m);
|
|
213
213
|
} finally {
|
|
214
214
|
l || (c(t), f(t));
|
|
215
215
|
}
|
|
@@ -219,7 +219,7 @@ const lt = (t, n, ...o) => n.read(...o), dt = (t, n, ...o) => n.write(...o), ft
|
|
|
219
219
|
} finally {
|
|
220
220
|
l = !1;
|
|
221
221
|
}
|
|
222
|
-
},
|
|
222
|
+
}, _t = (t, n) => {
|
|
223
223
|
var o;
|
|
224
224
|
const e = S(t), s = e[1], i = e[3], a = e[6], v = e[11], f = e[15], c = e[18], d = e[19], u = v(t, n), h = s.get(n);
|
|
225
225
|
if (h && !$(u.v)) {
|
|
@@ -235,34 +235,34 @@ const lt = (t, n, ...o) => n.read(...o), dt = (t, n, ...o) => n.write(...o), ft
|
|
|
235
235
|
p == null || p.t.delete(n);
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
},
|
|
238
|
+
}, q = (t, n) => {
|
|
239
239
|
var o;
|
|
240
240
|
const e = S(t), s = e[1], i = e[4], a = e[6], v = e[10], f = e[11], c = e[12], d = e[13], u = e[14], h = e[16], l = f(t, n);
|
|
241
241
|
let p = s.get(n);
|
|
242
242
|
if (!p) {
|
|
243
243
|
u(t, n);
|
|
244
244
|
for (const b of l.d.keys())
|
|
245
|
-
|
|
245
|
+
q(t, b).t.add(n);
|
|
246
246
|
if (p = {
|
|
247
247
|
l: /* @__PURE__ */ new Set(),
|
|
248
248
|
d: new Set(l.d.keys()),
|
|
249
249
|
t: /* @__PURE__ */ new Set()
|
|
250
|
-
}, s.set(n, p),
|
|
250
|
+
}, s.set(n, p), B(n)) {
|
|
251
251
|
const b = () => {
|
|
252
252
|
let r = !0;
|
|
253
|
-
const
|
|
253
|
+
const m = (..._) => {
|
|
254
254
|
try {
|
|
255
|
-
return h(t, n, ...
|
|
255
|
+
return h(t, n, ..._);
|
|
256
256
|
} finally {
|
|
257
257
|
r || (d(t), c(t));
|
|
258
258
|
}
|
|
259
259
|
};
|
|
260
260
|
try {
|
|
261
|
-
const
|
|
262
|
-
|
|
261
|
+
const _ = v(t, n, m);
|
|
262
|
+
_ && (p.u = () => {
|
|
263
263
|
r = !0;
|
|
264
264
|
try {
|
|
265
|
-
|
|
265
|
+
_();
|
|
266
266
|
} finally {
|
|
267
267
|
r = !1;
|
|
268
268
|
}
|
|
@@ -276,7 +276,7 @@ const lt = (t, n, ...o) => n.read(...o), dt = (t, n, ...o) => n.write(...o), ft
|
|
|
276
276
|
(o = a.m) == null || o.call(a, n);
|
|
277
277
|
}
|
|
278
278
|
return p;
|
|
279
|
-
},
|
|
279
|
+
}, mt = (t, n) => {
|
|
280
280
|
var o, e;
|
|
281
281
|
const s = S(t), i = s[1], a = s[5], v = s[6], f = s[11], c = s[19], d = f(t, n);
|
|
282
282
|
let u = i.get(n);
|
|
@@ -298,17 +298,17 @@ const lt = (t, n, ...o) => n.read(...o), dt = (t, n, ...o) => n.write(...o), ft
|
|
|
298
298
|
return;
|
|
299
299
|
}
|
|
300
300
|
return u;
|
|
301
|
-
},
|
|
301
|
+
}, P = (t, n, o) => {
|
|
302
302
|
const e = S(t)[11], s = e(t, n), i = "v" in s, a = s.v;
|
|
303
|
-
if (
|
|
303
|
+
if (C(o))
|
|
304
304
|
for (const v of s.d.keys())
|
|
305
305
|
G(
|
|
306
306
|
n,
|
|
307
307
|
o,
|
|
308
308
|
e(t, v)
|
|
309
309
|
);
|
|
310
|
-
s.v = o, delete s.e, (!i || !Object.is(a, s.v)) && (++s.n,
|
|
311
|
-
},
|
|
310
|
+
s.v = o, delete s.e, (!i || !Object.is(a, s.v)) && (++s.n, C(a) && at(a));
|
|
311
|
+
}, At = (t, n) => {
|
|
312
312
|
const o = S(t)[14];
|
|
313
313
|
return I(o(t, n));
|
|
314
314
|
}, wt = (t, n, ...o) => {
|
|
@@ -323,9 +323,9 @@ const lt = (t, n, ...o) => n.read(...o), dt = (t, n, ...o) => n.write(...o), ft
|
|
|
323
323
|
return f.add(o), s(t), () => {
|
|
324
324
|
f.delete(o), a(t, n), s(t);
|
|
325
325
|
};
|
|
326
|
-
},
|
|
327
|
-
const n =
|
|
328
|
-
if ((
|
|
326
|
+
}, Q = /* @__PURE__ */ new WeakMap(), S = (t) => {
|
|
327
|
+
const n = Q.get(t);
|
|
328
|
+
if ((A ? "production" : void 0) !== "production" && !n)
|
|
329
329
|
throw new Error(
|
|
330
330
|
"Store must be created by buildStore to read its building blocks"
|
|
331
331
|
);
|
|
@@ -372,24 +372,24 @@ function yt(...t) {
|
|
|
372
372
|
gt,
|
|
373
373
|
St,
|
|
374
374
|
bt,
|
|
375
|
-
|
|
375
|
+
Y,
|
|
376
|
+
_t,
|
|
377
|
+
q,
|
|
376
378
|
mt,
|
|
377
|
-
|
|
379
|
+
P,
|
|
378
380
|
At,
|
|
379
|
-
C,
|
|
380
|
-
_t,
|
|
381
381
|
wt,
|
|
382
382
|
kt,
|
|
383
383
|
void 0
|
|
384
384
|
].map((e, s) => t[s] || e);
|
|
385
|
-
return
|
|
385
|
+
return Q.set(n, Object.freeze(o)), n;
|
|
386
386
|
}
|
|
387
|
-
const
|
|
387
|
+
const X = {};
|
|
388
388
|
let Et = 0;
|
|
389
389
|
function Ot(t, n) {
|
|
390
390
|
const o = `atom${++Et}`, e = {
|
|
391
391
|
toString() {
|
|
392
|
-
return (
|
|
392
|
+
return (X ? "production" : void 0) !== "production" && this.debugLabel ? o + ":" + this.debugLabel : o;
|
|
393
393
|
}
|
|
394
394
|
};
|
|
395
395
|
return e.init = t, e.read = Mt, e.write = Dt, e;
|
|
@@ -408,23 +408,23 @@ function Z() {
|
|
|
408
408
|
}
|
|
409
409
|
let E;
|
|
410
410
|
function It() {
|
|
411
|
-
return E || (E = Z(), (
|
|
411
|
+
return E || (E = Z(), (X ? "production" : void 0) !== "production" && (globalThis.__JOTAI_DEFAULT_STORE__ || (globalThis.__JOTAI_DEFAULT_STORE__ = E), globalThis.__JOTAI_DEFAULT_STORE__ !== E && console.warn(
|
|
412
412
|
"Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"
|
|
413
413
|
))), E;
|
|
414
414
|
}
|
|
415
|
-
const
|
|
415
|
+
const Rt = {}, W = ot(
|
|
416
416
|
void 0
|
|
417
417
|
);
|
|
418
418
|
function tt(t) {
|
|
419
|
-
return rt(
|
|
419
|
+
return rt(W) || It();
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function Lt({
|
|
422
422
|
children: t,
|
|
423
423
|
store: n
|
|
424
424
|
}) {
|
|
425
425
|
const o = et(null);
|
|
426
|
-
return n ? x(
|
|
427
|
-
|
|
426
|
+
return n ? x(W.Provider, { value: n }, t) : (o.current === null && (o.current = Z()), x(
|
|
427
|
+
W.Provider,
|
|
428
428
|
{
|
|
429
429
|
// TODO: If this is not a false positive, consider using useState instead of useRef like https://github.com/pmndrs/jotai/pull/2771
|
|
430
430
|
// eslint-disable-next-line react-hooks/refs
|
|
@@ -433,7 +433,7 @@ function Wt({
|
|
|
433
433
|
t
|
|
434
434
|
));
|
|
435
435
|
}
|
|
436
|
-
const V = (t) => typeof (t == null ? void 0 : t.then) == "function",
|
|
436
|
+
const V = (t) => typeof (t == null ? void 0 : t.then) == "function", N = (t) => {
|
|
437
437
|
t.status || (t.status = "pending", t.then(
|
|
438
438
|
(n) => {
|
|
439
439
|
t.status = "fulfilled", t.value = n;
|
|
@@ -442,15 +442,15 @@ const V = (t) => typeof (t == null ? void 0 : t.then) == "function", z = (t) =>
|
|
|
442
442
|
t.status = "rejected", t.reason = n;
|
|
443
443
|
}
|
|
444
444
|
));
|
|
445
|
-
},
|
|
445
|
+
}, Ct = U.use || // A shim for older React versions
|
|
446
446
|
((t) => {
|
|
447
447
|
if (t.status === "pending")
|
|
448
448
|
throw t;
|
|
449
449
|
if (t.status === "fulfilled")
|
|
450
450
|
return t.value;
|
|
451
|
-
throw t.status === "rejected" ? t.reason : (
|
|
452
|
-
}),
|
|
453
|
-
let o =
|
|
451
|
+
throw t.status === "rejected" ? t.reason : (N(t), t);
|
|
452
|
+
}), T = /* @__PURE__ */ new WeakMap(), j = (t, n) => {
|
|
453
|
+
let o = T.get(t);
|
|
454
454
|
return o || (o = new Promise((e, s) => {
|
|
455
455
|
let i = t;
|
|
456
456
|
const a = (c) => (d) => {
|
|
@@ -460,15 +460,15 @@ const V = (t) => typeof (t == null ? void 0 : t.then) == "function", z = (t) =>
|
|
|
460
460
|
}, f = () => {
|
|
461
461
|
try {
|
|
462
462
|
const c = n();
|
|
463
|
-
V(c) ? (
|
|
463
|
+
V(c) ? (T.set(c, o), i = c, c.then(a(c), v(c)), O(c, f)) : e(c);
|
|
464
464
|
} catch (c) {
|
|
465
465
|
s(c);
|
|
466
466
|
}
|
|
467
467
|
};
|
|
468
468
|
t.then(a(t), v(t)), O(t, f);
|
|
469
|
-
}),
|
|
469
|
+
}), T.set(t, o)), o;
|
|
470
470
|
};
|
|
471
|
-
function
|
|
471
|
+
function Pt(t, n) {
|
|
472
472
|
const { delay: o, unstable_promiseStatus: e = !U.use } = {}, s = tt(), [[i, a, v], f] = st(
|
|
473
473
|
(d) => {
|
|
474
474
|
const u = s.get(t);
|
|
@@ -483,7 +483,7 @@ function Ct(t, n) {
|
|
|
483
483
|
if (e)
|
|
484
484
|
try {
|
|
485
485
|
const u = s.get(t);
|
|
486
|
-
V(u) &&
|
|
486
|
+
V(u) && N(
|
|
487
487
|
j(u, () => s.get(t))
|
|
488
488
|
);
|
|
489
489
|
} catch {
|
|
@@ -497,30 +497,30 @@ function Ct(t, n) {
|
|
|
497
497
|
return f(), d;
|
|
498
498
|
}, [s, t, o, e]), ct(c), V(c)) {
|
|
499
499
|
const d = j(c, () => s.get(t));
|
|
500
|
-
return e &&
|
|
500
|
+
return e && N(d), Ct(d);
|
|
501
501
|
}
|
|
502
502
|
return c;
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function Tt(t, n) {
|
|
505
505
|
const o = tt();
|
|
506
506
|
return ut(
|
|
507
507
|
(...s) => {
|
|
508
|
-
if ((
|
|
508
|
+
if ((Rt ? "production" : void 0) !== "production" && !("write" in t))
|
|
509
509
|
throw new Error("not writable atom");
|
|
510
510
|
return o.set(t, ...s);
|
|
511
511
|
},
|
|
512
512
|
[o, t]
|
|
513
513
|
);
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Wt(t, n) {
|
|
516
516
|
return [
|
|
517
|
-
|
|
517
|
+
Pt(t),
|
|
518
518
|
// We do wrong type assertion here, which results in throwing an error.
|
|
519
|
-
|
|
519
|
+
Tt(t)
|
|
520
520
|
];
|
|
521
521
|
}
|
|
522
522
|
export {
|
|
523
|
-
|
|
523
|
+
Lt as P,
|
|
524
524
|
Ot as a,
|
|
525
|
-
|
|
525
|
+
Wt as u
|
|
526
526
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pismo/marola",
|
|
3
3
|
"description": "CDX tribe component library",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.69",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"types": "dist/main.d.ts",
|
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
"@commitlint/cli": "^19.3.0",
|
|
46
46
|
"@commitlint/config-conventional": "^19.2.2",
|
|
47
47
|
"@ianvs/prettier-plugin-sort-imports": "^4.2.1",
|
|
48
|
-
"@storybook/addon-a11y": "^8.6.
|
|
49
|
-
"@storybook/addon-essentials": "^8.6.
|
|
50
|
-
"@storybook/addon-interactions": "^8.6.
|
|
51
|
-
"@storybook/addon-links": "^8.6.
|
|
52
|
-
"@storybook/blocks": "^8.6.
|
|
53
|
-
"@storybook/manager-api": "^8.6.
|
|
54
|
-
"@storybook/preview-api": "^8.6.
|
|
55
|
-
"@storybook/react": "^8.6.
|
|
56
|
-
"@storybook/react-vite": "^8.6.
|
|
57
|
-
"@storybook/test": "^8.6.
|
|
58
|
-
"@storybook/theming": "^8.6.
|
|
48
|
+
"@storybook/addon-a11y": "^8.6.15",
|
|
49
|
+
"@storybook/addon-essentials": "^8.6.15",
|
|
50
|
+
"@storybook/addon-interactions": "^8.6.15",
|
|
51
|
+
"@storybook/addon-links": "^8.6.15",
|
|
52
|
+
"@storybook/blocks": "^8.6.15",
|
|
53
|
+
"@storybook/manager-api": "^8.6.15",
|
|
54
|
+
"@storybook/preview-api": "^8.6.15",
|
|
55
|
+
"@storybook/react": "^8.6.15",
|
|
56
|
+
"@storybook/react-vite": "^8.6.15",
|
|
57
|
+
"@storybook/test": "^8.6.15",
|
|
58
|
+
"@storybook/theming": "^8.6.15",
|
|
59
59
|
"@testing-library/jest-dom": "^6.4.6",
|
|
60
60
|
"@testing-library/react": "^15.0.5",
|
|
61
61
|
"@types/node": "^20.12.2",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"react": "^18.2.0",
|
|
83
83
|
"react-dom": "^18.2.0",
|
|
84
84
|
"sass": "^1.72.0",
|
|
85
|
-
"storybook": "^8.6.
|
|
85
|
+
"storybook": "^8.6.15",
|
|
86
86
|
"stylelint": "^16.3.1",
|
|
87
87
|
"stylelint-config-recess-order": "^5.0.0",
|
|
88
88
|
"stylelint-config-standard-scss": "^13.1.0",
|