gd-design-library 1.4.0 → 1.6.0
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/ai/README.md +5 -5
- package/ai/schemas/components/Badge.d.ts +57 -0
- package/ai/schemas/components/ContentCarousel.d.ts +21 -2
- package/ai/schemas/components/Counter.d.ts +5 -0
- package/components/core/Badge/Badge.d.ts +2 -0
- package/components/core/Badge/Badge.js +30 -0
- package/components/core/Badge/Badge.types.d.ts +20 -0
- package/components/core/Badge/BadgeStyled.d.ts +5 -0
- package/components/core/Badge/BadgeStyled.js +54 -0
- package/components/core/Badge/constants.d.ts +1 -0
- package/components/core/Badge/constants.js +4 -0
- package/components/core/Badge/index.d.ts +2 -0
- package/components/core/Box/index.d.ts +0 -1
- package/components/core/DropdownItem/DropdownItem.js +34 -33
- package/components/core/Image/Image.d.ts +0 -4
- package/components/core/Input/Input.d.ts +1 -1
- package/components/core/Input/Input.js +7 -7
- package/components/core/Input/Input.types.d.ts +3 -2
- package/components/core/Input/constants.d.ts +1 -3
- package/components/core/Input/constants.js +9 -10
- package/components/core/Loader/Loader.js +4 -4
- package/components/core/Modal/Modal.js +22 -20
- package/components/core/Select/Select.js +215 -179
- package/components/core/Select/Select.stories.play.d.ts +10 -0
- package/components/core/Select/Select.types.d.ts +6 -4
- package/components/core/Select/SelectStyled.d.ts +1 -2
- package/components/core/Select/SelectStyled.js +7 -8
- package/components/core/Switch/Switch.js +50 -36
- package/components/core/Switch/Switch.types.d.ts +4 -3
- package/components/core/Switch/SwitchStyled.js +59 -57
- package/components/core/Table/Table.d.ts +2 -2
- package/components/core/Table/Table.js +79 -78
- package/components/core/Table/Table.stories.play.d.ts +14 -0
- package/components/core/Table/Table.types.d.ts +12 -8
- package/components/core/Table/TablePagination.d.ts +1 -1
- package/components/core/Table/TablePagination.js +42 -53
- package/components/core/Table/TableStyled.d.ts +4 -0
- package/components/core/Table/TableStyled.js +91 -69
- package/components/core/Table/constants.js +1 -1
- package/components/core/Textarea/Textarea.d.ts +0 -4
- package/components/core/Textarea/Textarea.js +30 -28
- package/components/core/Textarea/Textarea.types.d.ts +7 -13
- package/components/core/Textarea/Textarea.types.js +2 -4
- package/components/core/Textarea/TextareaStyled.js +25 -24
- package/components/core/Tooltip/utils.js +90 -50
- package/components/core/Truncate/Truncate.stories.play.d.ts +4 -0
- package/components/core/index.d.ts +1 -0
- package/components/domainSpecific/ChatBubble/ChatBubbleStyled.js +1 -1
- package/components/domainSpecific/ContentCarousel/ContentCarousel.js +97 -54
- package/components/domainSpecific/ContentCarousel/ContentCarousel.types.d.ts +4 -0
- package/components/domainSpecific/ContentCarousel/ContentCarouselStyled.d.ts +5 -1
- package/components/domainSpecific/ContentCarousel/ContentCarouselStyled.js +27 -18
- package/components/domainSpecific/Counter/Counter.js +87 -40
- package/components/domainSpecific/Counter/Counter.types.d.ts +1 -1
- package/components/domainSpecific/RadioGroup/RadioGroup.js +4 -4
- package/components/domainSpecific/Search/Search.js +4 -4
- package/components/domainSpecific/Stepper/Stepper.js +15 -15
- package/components/domainSpecific/Stepper/utils.js +1 -1
- package/components/layout/ChatContainer/ChatContainer.js +27 -27
- package/gridKit_logo.png +0 -0
- package/hooks/useCarousel/useCarousel.js +16 -16
- package/hooks/useMediaQuery/useMediaQuery.d.ts +0 -3
- package/hooks/useMediaQuery/useMediaQuery.js +15 -10
- package/hooks/useTheme/NoOpTheme.d.ts +340 -48
- package/index.d.ts +0 -4
- package/index.js +231 -231
- package/llms.txt +15 -9
- package/package.json +1 -1
- package/tokens/badge.d.ts +236 -0
- package/tokens/badge.js +240 -0
- package/tokens/defaultTheme.d.ts +340 -48
- package/tokens/defaultTheme.js +103 -101
- package/tokens/index.d.ts +310 -36
- package/tokens/index.js +89 -86
- package/tokens/input.js +6 -6
- package/tokens/snackbar.js +1 -2
- package/tokens/stepper.d.ts +12 -6
- package/tokens/stepper.js +56 -58
- package/tokens/switch.d.ts +13 -2
- package/tokens/switch.js +23 -16
- package/tokens/table.d.ts +30 -9
- package/tokens/table.js +38 -17
- package/tokens/tabs.d.ts +3 -1
- package/tokens/tabs.js +10 -12
- package/tokens/textarea.d.ts +45 -32
- package/tokens/textarea.js +51 -32
- package/tokens/tooltip.d.ts +1 -0
- package/tokens/tooltip.js +1 -0
- package/tokens/utils.js +0 -1
- package/tokens/values.d.ts +0 -3
- package/tokens/values.js +14 -22
- package/types/index.d.ts +0 -1
- package/types/input.d.ts +1 -0
- package/types/input.js +3 -3
- package/utils/common.d.ts +1 -0
- package/utils/common.js +3 -2
- package/utils/play/waitUtils.d.ts +7 -0
- package/types/label.d.ts +0 -4
- package/types/label.js +0 -4
package/ai/README.md
CHANGED
|
@@ -85,7 +85,7 @@ Component catalog
|
|
|
85
85
|
- Forms: Form, Input, Select, Search, Label, Textarea, Switch, Toggle, RadioGroup, Slider, InputFile, DragAndDropFiles
|
|
86
86
|
- Feedback & overlays: InlineNotification, Loader, Skeleton, Snackbar, SnackbarManager, Tooltip, Modal, Portal
|
|
87
87
|
- Navigation & structure: Breadcrumbs, Tabs, Stepper, List, Accordion (with subcomponents: AccordionItem, AccordionHeader, AccordionContent), Link
|
|
88
|
-
- Display & content: Typography, Button, Icon, Image, Card, Avatar, Carousel, ContentCarousel, Counter, Price, ProgressBar, Rating, ChatContainer, ChatBubble
|
|
88
|
+
- Display & content: Typography, Button, Icon, Image, Card, Avatar, Carousel, ContentCarousel (with visibleItems, scrollStep, scrollAlignment props), Counter, Price, ProgressBar, Rating, ChatContainer, ChatBubble
|
|
89
89
|
- Not part of gd-design-library (do not request/use): Grid, Stack, Alert, Toast, Table, Badge, ButtonGroup, Dropdown, Drawer, Popover, Pagination, Heading, Spinner.
|
|
90
90
|
|
|
91
91
|
Important component structures:
|
|
@@ -266,7 +266,7 @@ export function FAQSection() {
|
|
|
266
266
|
<Typography as="h3" variant="h5">How do I get started?</Typography>
|
|
267
267
|
</AccordionHeader>
|
|
268
268
|
<AccordionContent>
|
|
269
|
-
<Typography variant="
|
|
269
|
+
<Typography variant="p">
|
|
270
270
|
Follow these steps to begin using the design system in your project.
|
|
271
271
|
</Typography>
|
|
272
272
|
</AccordionContent>
|
|
@@ -276,7 +276,7 @@ export function FAQSection() {
|
|
|
276
276
|
<Typography as="h3" variant="h5">What are the pricing options?</Typography>
|
|
277
277
|
</AccordionHeader>
|
|
278
278
|
<AccordionContent>
|
|
279
|
-
<Typography variant="
|
|
279
|
+
<Typography variant="p">
|
|
280
280
|
We offer three flexible pricing plans to meet your needs.
|
|
281
281
|
</Typography>
|
|
282
282
|
</AccordionContent>
|
|
@@ -310,7 +310,7 @@ export function StyledAccordionSection() {
|
|
|
310
310
|
<Typography as="h3" variant="h5">Item with Box Props</Typography>
|
|
311
311
|
</AccordionHeader>
|
|
312
312
|
<AccordionContent>
|
|
313
|
-
<Typography variant="
|
|
313
|
+
<Typography variant="p">
|
|
314
314
|
This AccordionItem uses Box layout props like margin, padding, width, and maxWidth for flexible layout control.
|
|
315
315
|
</Typography>
|
|
316
316
|
</AccordionContent>
|
|
@@ -325,7 +325,7 @@ export function StyledAccordionSection() {
|
|
|
325
325
|
<Typography as="h3" variant="h5">Flex Item</Typography>
|
|
326
326
|
</AccordionHeader>
|
|
327
327
|
<AccordionContent>
|
|
328
|
-
<Typography variant="
|
|
328
|
+
<Typography variant="p">
|
|
329
329
|
Using flex="1" for flexible width distribution in a flex container.
|
|
330
330
|
</Typography>
|
|
331
331
|
</AccordionContent>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: {
|
|
3
|
+
name: string;
|
|
4
|
+
import: string;
|
|
5
|
+
description: string;
|
|
6
|
+
category: string;
|
|
7
|
+
complexity: string;
|
|
8
|
+
accessibility: string;
|
|
9
|
+
performance: string;
|
|
10
|
+
dependencies: string[];
|
|
11
|
+
peerDependencies: string[];
|
|
12
|
+
bundleSize: string;
|
|
13
|
+
browserSupport: string;
|
|
14
|
+
touchSupport: boolean;
|
|
15
|
+
keyboardSupport: boolean;
|
|
16
|
+
screenReaderSupport: boolean;
|
|
17
|
+
props: ({
|
|
18
|
+
name: string;
|
|
19
|
+
type: string;
|
|
20
|
+
description: string;
|
|
21
|
+
default: string;
|
|
22
|
+
enum: string[];
|
|
23
|
+
required?: undefined;
|
|
24
|
+
} | {
|
|
25
|
+
name: string;
|
|
26
|
+
type: string;
|
|
27
|
+
description: string;
|
|
28
|
+
default: string;
|
|
29
|
+
enum?: undefined;
|
|
30
|
+
required?: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
name: string;
|
|
33
|
+
type: string;
|
|
34
|
+
description: string;
|
|
35
|
+
default?: undefined;
|
|
36
|
+
enum?: undefined;
|
|
37
|
+
required?: undefined;
|
|
38
|
+
} | {
|
|
39
|
+
name: string;
|
|
40
|
+
type: string;
|
|
41
|
+
description: string;
|
|
42
|
+
required: boolean;
|
|
43
|
+
default?: undefined;
|
|
44
|
+
enum?: undefined;
|
|
45
|
+
} | {
|
|
46
|
+
name: string;
|
|
47
|
+
type: string;
|
|
48
|
+
description: string;
|
|
49
|
+
default: {};
|
|
50
|
+
enum?: undefined;
|
|
51
|
+
required?: undefined;
|
|
52
|
+
})[];
|
|
53
|
+
examples: string[];
|
|
54
|
+
};
|
|
55
|
+
compositionTips: string[];
|
|
56
|
+
};
|
|
57
|
+
export default _default;
|
|
@@ -50,6 +50,24 @@ declare const _default: {
|
|
|
50
50
|
required?: undefined;
|
|
51
51
|
examples?: undefined;
|
|
52
52
|
recommended?: undefined;
|
|
53
|
+
} | {
|
|
54
|
+
name: string;
|
|
55
|
+
type: string;
|
|
56
|
+
description: string;
|
|
57
|
+
default: string;
|
|
58
|
+
examples: number[];
|
|
59
|
+
recommended: string;
|
|
60
|
+
required?: undefined;
|
|
61
|
+
accessibility?: undefined;
|
|
62
|
+
} | {
|
|
63
|
+
name: string;
|
|
64
|
+
type: string;
|
|
65
|
+
description: string;
|
|
66
|
+
default: string;
|
|
67
|
+
examples: string[];
|
|
68
|
+
recommended: string;
|
|
69
|
+
required?: undefined;
|
|
70
|
+
accessibility?: undefined;
|
|
53
71
|
} | {
|
|
54
72
|
name: string;
|
|
55
73
|
type: string;
|
|
@@ -72,8 +90,9 @@ declare const _default: {
|
|
|
72
90
|
quickStart: {
|
|
73
91
|
basic: string;
|
|
74
92
|
withNavigation: string;
|
|
75
|
-
|
|
76
|
-
|
|
93
|
+
multipleVisible: string;
|
|
94
|
+
centered: string;
|
|
95
|
+
customScrollStep: string;
|
|
77
96
|
};
|
|
78
97
|
commonPatterns: {
|
|
79
98
|
'Product Gallery': {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as p, jsx as d } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as f } from "react";
|
|
4
|
+
import { convertToInlineBoxStyles as u } from "../../../tokens/utils.js";
|
|
5
|
+
import { COMPONENT_NAME as e } from "./constants.js";
|
|
6
|
+
import { BadgeStyled as y, BadgeStartIconStyled as $, BadgeContentStyled as B, BadgeEndIconStyled as g } from "./BadgeStyled.js";
|
|
7
|
+
import { useTheme as h } from "../../../hooks/useTheme/useTheme.js";
|
|
8
|
+
const S = f(({
|
|
9
|
+
variant: n = "primary",
|
|
10
|
+
appearance: o = "filled",
|
|
11
|
+
size: l = "md",
|
|
12
|
+
children: i,
|
|
13
|
+
disabled: m,
|
|
14
|
+
iconStart: r = null,
|
|
15
|
+
iconEnd: a = null,
|
|
16
|
+
...s
|
|
17
|
+
}, c) => {
|
|
18
|
+
const {
|
|
19
|
+
theme: t
|
|
20
|
+
} = h();
|
|
21
|
+
return /* @__PURE__ */ p(y, { ref: c, $variant: n, $appearance: o, $size: l, theme: t, $disabled: m, "data-testid": e, ...u(s), children: [
|
|
22
|
+
r ? /* @__PURE__ */ d($, { theme: t, "data-testid": `${e}-icon-start`, children: r }) : null,
|
|
23
|
+
/* @__PURE__ */ d(B, { theme: t, "data-testid": `${e}-content`, children: i }),
|
|
24
|
+
a ? /* @__PURE__ */ d(g, { theme: t, "data-testid": `${e}-icon-end`, children: a }) : null
|
|
25
|
+
] });
|
|
26
|
+
});
|
|
27
|
+
S.displayName = e;
|
|
28
|
+
export {
|
|
29
|
+
S as Badge
|
|
30
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { EnumOrPrimitive } from '../../../types';
|
|
3
|
+
import { BoxCssComponentProps, BoxCssComponentStyledProps } from '../..';
|
|
4
|
+
export type BadgeVariant = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'quinary';
|
|
5
|
+
export type BadgeAppearance = 'outline' | 'outlineFilledLight' | 'filled' | 'filledLight';
|
|
6
|
+
export type BadgeSize = 'sm' | 'md';
|
|
7
|
+
export interface BadgeProps extends BoxCssComponentProps<HTMLSpanElement>, PropsWithChildren {
|
|
8
|
+
variant?: EnumOrPrimitive<BadgeVariant>;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
appearance?: EnumOrPrimitive<BadgeAppearance>;
|
|
11
|
+
size?: EnumOrPrimitive<BadgeSize>;
|
|
12
|
+
iconStart?: ReactNode;
|
|
13
|
+
iconEnd?: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export interface BadgeStyledProps extends BoxCssComponentStyledProps<HTMLSpanElement>, PropsWithChildren {
|
|
16
|
+
$variant?: EnumOrPrimitive<BadgeVariant>;
|
|
17
|
+
$appearance?: EnumOrPrimitive<BadgeAppearance>;
|
|
18
|
+
$size?: EnumOrPrimitive<BadgeSize>;
|
|
19
|
+
$disabled?: boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BadgeStyledProps } from './';
|
|
2
|
+
export declare const BadgeStyled: import('react').ForwardRefExoticComponent<Omit<BadgeStyledProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
3
|
+
export declare const BadgeContentStyled: import('react').ForwardRefExoticComponent<Omit<BadgeStyledProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
export declare const BadgeStartIconStyled: import('react').ForwardRefExoticComponent<Omit<BadgeStyledProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
5
|
+
export declare const BadgeEndIconStyled: import('react').ForwardRefExoticComponent<Omit<BadgeStyledProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsx as d } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { forwardRef as a } from "react";
|
|
3
|
+
import { getBoxStyles as i, tokensHandler as B } from "../../../tokens/utils.js";
|
|
4
|
+
import { get as e } from "../../../utils/helpers.js";
|
|
5
|
+
const I = a(({
|
|
6
|
+
theme: {
|
|
7
|
+
badge: s,
|
|
8
|
+
...n
|
|
9
|
+
} = {},
|
|
10
|
+
$variant: t,
|
|
11
|
+
$appearance: o,
|
|
12
|
+
$size: r,
|
|
13
|
+
$disabled: l,
|
|
14
|
+
className: m,
|
|
15
|
+
styles: f = {},
|
|
16
|
+
...g
|
|
17
|
+
}, p) => {
|
|
18
|
+
const {
|
|
19
|
+
boxStyles: y,
|
|
20
|
+
restProps: S
|
|
21
|
+
} = i(g), c = new Proxy(s || {}, B(n)), u = [e(c, "default", {}), e(c, [t, o, "default"], {}), l ? e(c, [t, o, "disabled"], {}) : {}, r ? e(c, ["size", r], {}) : {}, y, f];
|
|
22
|
+
return /* @__PURE__ */ d("span", { css: u, className: m, ...S, ref: p });
|
|
23
|
+
}), N = a(({
|
|
24
|
+
theme: {
|
|
25
|
+
badge: s
|
|
26
|
+
} = {},
|
|
27
|
+
styles: n,
|
|
28
|
+
...t
|
|
29
|
+
}, o) => {
|
|
30
|
+
const r = e(s, "content", {});
|
|
31
|
+
return /* @__PURE__ */ d("span", { css: [e(r, "default", {}), n], className: "gd-badge__content", ...t, ref: o });
|
|
32
|
+
}), P = a(({
|
|
33
|
+
theme: {
|
|
34
|
+
badge: s
|
|
35
|
+
} = {},
|
|
36
|
+
...n
|
|
37
|
+
}, t) => {
|
|
38
|
+
const o = e(s, "startIcon", {});
|
|
39
|
+
return /* @__PURE__ */ d("span", { css: e(o, "default", {}), className: "gd-badge__icon-start", ...n, ref: t });
|
|
40
|
+
}), w = a(({
|
|
41
|
+
theme: {
|
|
42
|
+
badge: s
|
|
43
|
+
} = {},
|
|
44
|
+
...n
|
|
45
|
+
}, t) => {
|
|
46
|
+
const o = e(s, "endIcon", {});
|
|
47
|
+
return /* @__PURE__ */ d("span", { css: e(o, "default", {}), className: "gd-badge__icon-end", ...n, ref: t });
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
N as BadgeContentStyled,
|
|
51
|
+
w as BadgeEndIconStyled,
|
|
52
|
+
P as BadgeStartIconStyled,
|
|
53
|
+
I as BadgeStyled
|
|
54
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const COMPONENT_NAME = "Badge";
|
|
@@ -1,45 +1,46 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as E } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { forwardRef as x, useMemo as
|
|
4
|
-
import { KEYBOARD_KEYS as
|
|
3
|
+
import { forwardRef as x, useMemo as O, useCallback as p } from "react";
|
|
4
|
+
import { KEYBOARD_KEYS as K } from "../../../constants/keyboard.js";
|
|
5
5
|
import { COMPONENT_NAME as D } from "./constants.js";
|
|
6
|
-
import { DropdownItemStyled as
|
|
7
|
-
import { useSelectContext as
|
|
8
|
-
import { useTheme as
|
|
9
|
-
import { TabIndex as
|
|
10
|
-
const
|
|
6
|
+
import { DropdownItemStyled as N } from "./DropdownItemStyled.js";
|
|
7
|
+
import { useSelectContext as T } from "../Select/hooks/useSelectContext.js";
|
|
8
|
+
import { useTheme as k } from "../../../hooks/useTheme/useTheme.js";
|
|
9
|
+
import { TabIndex as y } from "../../../types/accesability.js";
|
|
10
|
+
const I = x((S, v) => {
|
|
11
11
|
const {
|
|
12
|
-
children:
|
|
13
|
-
value:
|
|
14
|
-
onSelect:
|
|
15
|
-
className:
|
|
16
|
-
disabled:
|
|
17
|
-
name:
|
|
12
|
+
children: A,
|
|
13
|
+
value: a,
|
|
14
|
+
onSelect: l,
|
|
15
|
+
className: e,
|
|
16
|
+
disabled: t,
|
|
17
|
+
name: c,
|
|
18
18
|
...b
|
|
19
19
|
} = S, {
|
|
20
20
|
theme: h
|
|
21
|
-
} =
|
|
21
|
+
} = k(), {
|
|
22
22
|
onSelect: s,
|
|
23
|
-
value:
|
|
24
|
-
itemIdentifier:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
23
|
+
value: n,
|
|
24
|
+
itemIdentifier: i,
|
|
25
|
+
multiple: u
|
|
26
|
+
} = T(), o = {
|
|
27
|
+
name: c,
|
|
28
|
+
value: a
|
|
29
|
+
}, f = JSON.stringify(o), m = n === void 0 ? e == null ? void 0 : e.includes("active") : u && Array.isArray(n) ? n.some((r) => (i == null ? void 0 : i(r, o)) ?? r.value === o.value) : !u && !Array.isArray(n) && i ? i(n, o) : e == null ? void 0 : e.includes("active"), w = O(() => `${e || ""} ${m ? "active" : ""}`, [e, m]), d = p((r) => {
|
|
30
|
+
if (!t)
|
|
31
|
+
return l ? l({
|
|
32
|
+
event: r,
|
|
33
|
+
data: o
|
|
33
34
|
}) : s && s({
|
|
34
|
-
event:
|
|
35
|
-
data:
|
|
36
|
-
}),
|
|
37
|
-
}, [
|
|
38
|
-
|
|
39
|
-
}, [
|
|
40
|
-
return /* @__PURE__ */ E(
|
|
35
|
+
event: r,
|
|
36
|
+
data: o
|
|
37
|
+
}), a;
|
|
38
|
+
}, [l, s, f, JSON.stringify(a), t]), C = p((r) => {
|
|
39
|
+
t || r.key === K.ENTER && (r.preventDefault(), d(r));
|
|
40
|
+
}, [d, t, f]);
|
|
41
|
+
return /* @__PURE__ */ E(N, { ref: v, theme: h, $disabled: t, tabIndex: t ? y.Disabled : y.Default, "data-testid": D, className: w, onClick: d, onKeyDown: C, ...b, children: A || c });
|
|
41
42
|
});
|
|
42
|
-
|
|
43
|
+
I.displayName = D;
|
|
43
44
|
export {
|
|
44
|
-
|
|
45
|
+
I as DropdownItem
|
|
45
46
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { InputFieldProps } from './Input.types';
|
|
2
|
-
export declare const Input: import('react').ForwardRefExoticComponent<(InputFieldProps & Partial<Omit<HTMLInputElement, "color" | "prefix" | "disabled" | "tabIndex" | "type" | "hidden" | "width" | "content" | "translate" | "name" | "label" | "children" | "className" | "styles" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "placeholder" | "adornmentStart" | "adornmentEnd" | "debounceCallbackTime" | "readOnly" | "required" | "ariaRequired" | "ariaDescribedBy" | "wrapperAs" | "helperText">>) & import('react').RefAttributes<HTMLInputElement>>;
|
|
2
|
+
export declare const Input: import('react').ForwardRefExoticComponent<(InputFieldProps & Partial<Omit<HTMLInputElement, "color" | "prefix" | "disabled" | "tabIndex" | "type" | "hidden" | "width" | "content" | "translate" | "name" | "label" | "children" | "className" | "styles" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "placeholder" | "adornmentStart" | "adornmentEnd" | "debounceCallbackTime" | "readOnly" | "required" | "ariaRequired" | "ariaDescribedBy" | "inputmode" | "wrapperAs" | "helperText">>) & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -4,8 +4,8 @@ import { forwardRef as q } from "react";
|
|
|
4
4
|
import { COMPONENT_NAME as o, DEFAULT_PROPS as e, FOCUS_EXCLUDED_LIST as x } from "./constants.js";
|
|
5
5
|
import { useInputHandlers as z } from "./useInputHandlers.js";
|
|
6
6
|
import { InputStyled as D } from "./InputStyled.js";
|
|
7
|
-
import { InputWrapper as
|
|
8
|
-
import { InputHelper as
|
|
7
|
+
import { InputWrapper as u } from "./InputWrapper/InputWrapper.js";
|
|
8
|
+
import { InputHelper as l } from "./InputHelper/InputHelper.js";
|
|
9
9
|
import { InputAdornment as f } from "./InputAdornment/InputAdornment.js";
|
|
10
10
|
import { useTheme as T } from "../../../hooks/useTheme/useTheme.js";
|
|
11
11
|
import { SizeVariant as g } from "../../../types/common.js";
|
|
@@ -22,7 +22,7 @@ const G = q(({
|
|
|
22
22
|
readOnly: O = e.readOnly,
|
|
23
23
|
// Accessibility props
|
|
24
24
|
ariaRequired: w = e.ariaRequired,
|
|
25
|
-
role: y
|
|
25
|
+
role: y,
|
|
26
26
|
tabIndex: E = e.tabIndex,
|
|
27
27
|
ariaDescribedBy: a,
|
|
28
28
|
// Event handling props
|
|
@@ -51,9 +51,9 @@ const G = q(({
|
|
|
51
51
|
onChange: M,
|
|
52
52
|
debounceCallbackTime: F
|
|
53
53
|
});
|
|
54
|
-
return /* @__PURE__ */ s(
|
|
55
|
-
i && /* @__PURE__ */ r(
|
|
56
|
-
/* @__PURE__ */ s(
|
|
54
|
+
return /* @__PURE__ */ s(u, { as: h, withGap: P, className: _, width: N, styles: I, children: [
|
|
55
|
+
i && /* @__PURE__ */ r(l, { children: i }),
|
|
56
|
+
/* @__PURE__ */ s(u, { width: "100%", children: [
|
|
57
57
|
p && /* @__PURE__ */ r(f, { children: p }),
|
|
58
58
|
/* @__PURE__ */ r(D, { $isMouseInteraction: U && c, $color: m, ref: H, disabled: S, role: y, theme: L, type: n, readOnly: O, tabIndex: E, "aria-required": w, "data-testid": o, ...R, ...a ? {
|
|
59
59
|
"aria-describedby": a
|
|
@@ -64,7 +64,7 @@ const G = q(({
|
|
|
64
64
|
] }),
|
|
65
65
|
d && /* @__PURE__ */ r(f, { children: d })
|
|
66
66
|
] }),
|
|
67
|
-
t && /* @__PURE__ */ r(
|
|
67
|
+
t && /* @__PURE__ */ r(l, { color: m, size: g.Sm, children: t })
|
|
68
68
|
] });
|
|
69
69
|
});
|
|
70
70
|
G.displayName = o;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent, FocusEvent, MouseEvent, KeyboardEvent, ReactNode, ElementType, PropsWithChildren } from 'react';
|
|
2
|
-
import { EnumOrPrimitive, InputColorVariant,
|
|
2
|
+
import { EnumOrPrimitive, InputColorVariant, InputVariantType, SizeVariant } from '../../../types';
|
|
3
3
|
import { CommonCssComponentProps, CommonCssComponentStyledProps } from '../..';
|
|
4
4
|
export interface BaseInputFieldProps extends CommonCssComponentProps<HTMLInputElement> {
|
|
5
5
|
readOnly?: boolean;
|
|
@@ -21,7 +21,8 @@ export interface BaseInputFieldProps extends CommonCssComponentProps<HTMLInputEl
|
|
|
21
21
|
required?: boolean;
|
|
22
22
|
ariaRequired?: boolean;
|
|
23
23
|
ariaDescribedBy?: string;
|
|
24
|
-
role?:
|
|
24
|
+
role?: string;
|
|
25
|
+
inputmode?: string;
|
|
25
26
|
tabIndex?: number;
|
|
26
27
|
debounceCallbackTime?: number;
|
|
27
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TabIndex, InputColorVariant,
|
|
1
|
+
import { TabIndex, InputColorVariant, InputVariantType } from '../../../types';
|
|
2
2
|
export declare const COMPONENT_NAME = "Input";
|
|
3
3
|
export declare const DEFAULT_PROPS: {
|
|
4
4
|
variant: InputVariantType;
|
|
@@ -6,8 +6,6 @@ export declare const DEFAULT_PROPS: {
|
|
|
6
6
|
disabled: boolean;
|
|
7
7
|
readOnly: boolean;
|
|
8
8
|
ariaRequired: boolean;
|
|
9
|
-
role: InputRole;
|
|
10
9
|
tabIndex: TabIndex;
|
|
11
|
-
styles: {};
|
|
12
10
|
};
|
|
13
11
|
export declare const FOCUS_EXCLUDED_LIST: InputVariantType[];
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { InputVariantType as a,
|
|
2
|
-
import { TabIndex as
|
|
3
|
-
const
|
|
1
|
+
import { InputVariantType as a, InputColorVariant as e } from "../../../types/input.js";
|
|
2
|
+
import { TabIndex as r } from "../../../types/accesability.js";
|
|
3
|
+
const n = "Input", i = {
|
|
4
4
|
variant: a.Text,
|
|
5
|
-
color:
|
|
5
|
+
color: e.Primary,
|
|
6
6
|
disabled: !1,
|
|
7
7
|
readOnly: !1,
|
|
8
8
|
ariaRequired: !1,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}, p = [a.Checkbox, a.Radio, a.Range];
|
|
9
|
+
tabIndex: r.Default
|
|
10
|
+
}, l = [a.Checkbox, a.Radio, a.Range];
|
|
12
11
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
n as COMPONENT_NAME,
|
|
13
|
+
i as DEFAULT_PROPS,
|
|
14
|
+
l as FOCUS_EXCLUDED_LIST
|
|
16
15
|
};
|
|
@@ -13,16 +13,16 @@ const g = N((d, s) => {
|
|
|
13
13
|
const {
|
|
14
14
|
theme: t
|
|
15
15
|
} = M(), {
|
|
16
|
-
name: f,
|
|
16
|
+
name: f = "circle",
|
|
17
17
|
variant: r = m.Inline,
|
|
18
18
|
rounded: l = V(t, "loader.attrs.rounded", "none"),
|
|
19
19
|
children: a,
|
|
20
|
-
size:
|
|
21
|
-
animationProps:
|
|
20
|
+
size: c = W.Md,
|
|
21
|
+
animationProps: u = P,
|
|
22
22
|
withWrapper: i = !0,
|
|
23
23
|
WrapperView: n = "span",
|
|
24
24
|
...h
|
|
25
|
-
} = d, e = () => a || /* @__PURE__ */ o($, { ref: s, theme: t, $name: f, $variant: r, $size:
|
|
25
|
+
} = d, e = () => a || /* @__PURE__ */ o($, { ref: s, theme: t, $name: f, $variant: r, $size: c, $animationProps: u, $rounded: l, "data-testid": p, ...h });
|
|
26
26
|
return r === m.FullPage ? /* @__PURE__ */ o(w, { wrapperVariant: r, withWrapper: i, WrapperView: n, children: e() }) : i ? /* @__PURE__ */ o(A, { variant: r, as: n, children: e() }) : e();
|
|
27
27
|
});
|
|
28
28
|
g.displayName = p;
|
|
@@ -11,46 +11,48 @@ import { convertToInlineBoxStyles as I } from "../../../tokens/utils.js";
|
|
|
11
11
|
import { Icon as R } from "../Icon/Icon.js";
|
|
12
12
|
import { KEYBOARD_KEYS as Y } from "../../../constants/keyboard.js";
|
|
13
13
|
const _ = T(({
|
|
14
|
-
isOpen:
|
|
14
|
+
isOpen: l = !1,
|
|
15
15
|
isCustomView: p = !1,
|
|
16
16
|
onClose: t,
|
|
17
17
|
showCloseButton: n = !0,
|
|
18
|
-
closeOnClickOutside:
|
|
18
|
+
closeOnClickOutside: m = !0,
|
|
19
19
|
closeOnEscape: f,
|
|
20
|
-
title:
|
|
21
|
-
children:
|
|
20
|
+
title: i,
|
|
21
|
+
children: c,
|
|
22
22
|
footer: u,
|
|
23
23
|
styles: h,
|
|
24
24
|
...S
|
|
25
|
-
},
|
|
25
|
+
}, b) => {
|
|
26
26
|
const {
|
|
27
27
|
theme: r
|
|
28
|
-
} = D(),
|
|
29
|
-
|
|
28
|
+
} = D(), a = F(), M = s(r, "modal.icons", {}), k = i || !!(n && t), E = g(() => {
|
|
29
|
+
a.debug(`${e}: Close`, {
|
|
30
30
|
trigger: "overlay",
|
|
31
|
-
closeOnClickOutside:
|
|
32
|
-
}),
|
|
33
|
-
}, [t,
|
|
34
|
-
|
|
31
|
+
closeOnClickOutside: m
|
|
32
|
+
}), m && (t == null || t());
|
|
33
|
+
}, [t, m, a]), $ = g(() => {
|
|
34
|
+
a.debug(`${e}: Close`, {
|
|
35
35
|
trigger: "closeButton"
|
|
36
36
|
}), t == null || t();
|
|
37
|
-
}, [t]);
|
|
37
|
+
}, [t, a]);
|
|
38
38
|
return w(() => {
|
|
39
39
|
if (!f) return;
|
|
40
|
-
const
|
|
41
|
-
t && v.key === Y.ESCAPE && (
|
|
40
|
+
const o = (v) => {
|
|
41
|
+
t && v.key === Y.ESCAPE && (a.debug(`${e}: Close`, {
|
|
42
42
|
trigger: "escape"
|
|
43
43
|
}), t == null || t());
|
|
44
44
|
};
|
|
45
|
-
return document.addEventListener("keydown",
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
return l && document.addEventListener("keydown", o), () => {
|
|
46
|
+
document.removeEventListener("keydown", o);
|
|
47
|
+
};
|
|
48
|
+
}, [l, f, t, a]), l ? /* @__PURE__ */ d(H, { blocksScroll: !0, children: /* @__PURE__ */ d(x, { onClick: E, theme: r, children: /* @__PURE__ */ d(N, { ref: b, onClick: (o) => o.stopPropagation(), "data-testid": e, theme: r, styles: h, ...I(S), children: p ? c : /* @__PURE__ */ y(B, { children: [
|
|
49
|
+
k && /* @__PURE__ */ y(P, { theme: r, $withTitle: !!i, "data-testid": `${e}-header`, children: [
|
|
50
|
+
i && /* @__PURE__ */ d(A, { theme: r, "data-testid": `${e}-title`, children: i }),
|
|
51
|
+
n && t && /* @__PURE__ */ d(K, { onClick: $, "data-testid": "close-button", theme: r, "aria-label": "Close modal", children: /* @__PURE__ */ d(R, { ...s(M, "close", {
|
|
50
52
|
name: "cross"
|
|
51
53
|
}) }) })
|
|
52
54
|
] }),
|
|
53
|
-
|
|
55
|
+
c && /* @__PURE__ */ d(L, { theme: r, "data-testid": `${e}-body`, children: c }),
|
|
54
56
|
u && /* @__PURE__ */ d(j, { theme: r, "data-testid": `${e}-footer`, children: u })
|
|
55
57
|
] }) }) }) }) : null;
|
|
56
58
|
});
|