@lets-events/react 12.11.1 → 12.11.2
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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +6 -3
- package/dist/index.mjs +6 -3
- package/package.json +1 -1
- package/src/components/Modal.tsx +6 -2
- package/src/components/MultiSelect/index.tsx +1 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @lets-events/react@12.11.
|
|
3
|
+
> @lets-events/react@12.11.2 build
|
|
4
4
|
> tsup src/index.tsx --format esm,cjs --dts --external react
|
|
5
5
|
|
|
6
6
|
[1G[0K[34mCLI[39m Building entry: src/index.tsx
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
[34mCLI[39m Target: es6
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
|
-
[32mCJS[39m [1mdist/index.js [22m[
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
15
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m421.
|
|
16
|
-
[32mESM[39m ⚡️ Build success in
|
|
13
|
+
[32mCJS[39m [1mdist/index.js [22m[32m438.04 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 304ms
|
|
15
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m421.97 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 306ms
|
|
17
17
|
DTS Build start
|
|
18
|
-
DTS ⚡️ Build success in
|
|
19
|
-
DTS dist/index.d.mts 411.
|
|
20
|
-
DTS dist/index.d.ts 411.
|
|
18
|
+
DTS ⚡️ Build success in 6512ms
|
|
19
|
+
DTS dist/index.d.mts 411.19 KB
|
|
20
|
+
DTS dist/index.d.ts 411.19 KB
|
|
21
21
|
[1G[0K⠙[1G[0K
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -929,13 +929,13 @@ declare const TextStyle: _stitches_react_types_styled_component.StyledComponent<
|
|
|
929
929
|
transition: "transitions";
|
|
930
930
|
zIndex: "zIndices";
|
|
931
931
|
}, {}>>;
|
|
932
|
-
type Typography = keyof typeof typographyValues;
|
|
932
|
+
type Typography$1 = keyof typeof typographyValues;
|
|
933
933
|
type FontWeight = "regular" | "medium" | "semibold" | "bold";
|
|
934
934
|
type TextProps = {
|
|
935
935
|
as?: ElementType;
|
|
936
936
|
asChild?: boolean;
|
|
937
937
|
color?: keyof Colors;
|
|
938
|
-
typography?: Typography;
|
|
938
|
+
typography?: Typography$1;
|
|
939
939
|
fontWeight?: FontWeight;
|
|
940
940
|
children?: ReactNode;
|
|
941
941
|
id?: string;
|
|
@@ -4495,6 +4495,7 @@ type BadgeProps = {
|
|
|
4495
4495
|
};
|
|
4496
4496
|
declare function Badge({ asChild, children, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
4497
4497
|
|
|
4498
|
+
type Typography = keyof typeof typographyValues;
|
|
4498
4499
|
type ModalProps = ComponentProps<typeof Dialog.Root> & {
|
|
4499
4500
|
trigger?: React.ReactNode;
|
|
4500
4501
|
title?: string;
|
|
@@ -4505,8 +4506,9 @@ type ModalProps = ComponentProps<typeof Dialog.Root> & {
|
|
|
4505
4506
|
height?: string;
|
|
4506
4507
|
preventAutoFocus?: boolean;
|
|
4507
4508
|
fitContent?: boolean;
|
|
4509
|
+
titleTypography?: Typography;
|
|
4508
4510
|
};
|
|
4509
|
-
declare function Modal({ children, title, trigger, zIndex, maxWidth, maxHeight, height, preventAutoFocus, fitContent, ...props }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
4511
|
+
declare function Modal({ children, title, trigger, zIndex, maxWidth, maxHeight, height, preventAutoFocus, fitContent, titleTypography, ...props }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
4510
4512
|
|
|
4511
4513
|
type MenuDropdownProps = HTMLAttributes<HTMLDivElement> & {
|
|
4512
4514
|
children: ReactNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -929,13 +929,13 @@ declare const TextStyle: _stitches_react_types_styled_component.StyledComponent<
|
|
|
929
929
|
transition: "transitions";
|
|
930
930
|
zIndex: "zIndices";
|
|
931
931
|
}, {}>>;
|
|
932
|
-
type Typography = keyof typeof typographyValues;
|
|
932
|
+
type Typography$1 = keyof typeof typographyValues;
|
|
933
933
|
type FontWeight = "regular" | "medium" | "semibold" | "bold";
|
|
934
934
|
type TextProps = {
|
|
935
935
|
as?: ElementType;
|
|
936
936
|
asChild?: boolean;
|
|
937
937
|
color?: keyof Colors;
|
|
938
|
-
typography?: Typography;
|
|
938
|
+
typography?: Typography$1;
|
|
939
939
|
fontWeight?: FontWeight;
|
|
940
940
|
children?: ReactNode;
|
|
941
941
|
id?: string;
|
|
@@ -4495,6 +4495,7 @@ type BadgeProps = {
|
|
|
4495
4495
|
};
|
|
4496
4496
|
declare function Badge({ asChild, children, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
4497
4497
|
|
|
4498
|
+
type Typography = keyof typeof typographyValues;
|
|
4498
4499
|
type ModalProps = ComponentProps<typeof Dialog.Root> & {
|
|
4499
4500
|
trigger?: React.ReactNode;
|
|
4500
4501
|
title?: string;
|
|
@@ -4505,8 +4506,9 @@ type ModalProps = ComponentProps<typeof Dialog.Root> & {
|
|
|
4505
4506
|
height?: string;
|
|
4506
4507
|
preventAutoFocus?: boolean;
|
|
4507
4508
|
fitContent?: boolean;
|
|
4509
|
+
titleTypography?: Typography;
|
|
4508
4510
|
};
|
|
4509
|
-
declare function Modal({ children, title, trigger, zIndex, maxWidth, maxHeight, height, preventAutoFocus, fitContent, ...props }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
4511
|
+
declare function Modal({ children, title, trigger, zIndex, maxWidth, maxHeight, height, preventAutoFocus, fitContent, titleTypography, ...props }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
4510
4512
|
|
|
4511
4513
|
type MenuDropdownProps = HTMLAttributes<HTMLDivElement> & {
|
|
4512
4514
|
children: ReactNode;
|
package/dist/index.js
CHANGED
|
@@ -3890,7 +3890,8 @@ function Modal(_a) {
|
|
|
3890
3890
|
maxHeight,
|
|
3891
3891
|
height,
|
|
3892
3892
|
preventAutoFocus = false,
|
|
3893
|
-
fitContent = false
|
|
3893
|
+
fitContent = false,
|
|
3894
|
+
titleTypography = "headline6"
|
|
3894
3895
|
} = _b, props = __objRest(_b, [
|
|
3895
3896
|
"children",
|
|
3896
3897
|
"title",
|
|
@@ -3900,7 +3901,8 @@ function Modal(_a) {
|
|
|
3900
3901
|
"maxHeight",
|
|
3901
3902
|
"height",
|
|
3902
3903
|
"preventAutoFocus",
|
|
3903
|
-
"fitContent"
|
|
3904
|
+
"fitContent",
|
|
3905
|
+
"titleTypography"
|
|
3904
3906
|
]);
|
|
3905
3907
|
const { onOpenChange } = props;
|
|
3906
3908
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_radix_ui.Dialog.Root, __spreadProps(__spreadValues({}, props), { children: [
|
|
@@ -3924,7 +3926,7 @@ function Modal(_a) {
|
|
|
3924
3926
|
}, maxHeight !== void 0 && { maxHeight }), height !== void 0 && { height }), fitContent && height === void 0 && { height: "fit-content" }),
|
|
3925
3927
|
children: [
|
|
3926
3928
|
title && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(ModalHeaderStyled, { children: [
|
|
3927
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ModalTitleStyled, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Text, { typography:
|
|
3929
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ModalTitleStyled, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Text, { typography: titleTypography, fontWeight: "medium", children: title }) }),
|
|
3928
3930
|
(onOpenChange || trigger) && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_radix_ui.Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ModalIconClose, { name: "close", size: "xl" }) })
|
|
3929
3931
|
] }),
|
|
3930
3932
|
children
|
|
@@ -10570,6 +10572,7 @@ var MultiSelect = import_react20.default.forwardRef(
|
|
|
10570
10572
|
maxHeight: MOBILE_MODAL_MAX_HEIGHT,
|
|
10571
10573
|
zIndex: modalZIndex,
|
|
10572
10574
|
preventAutoFocus: true,
|
|
10575
|
+
titleTypography: "headline8",
|
|
10573
10576
|
fitContent: true,
|
|
10574
10577
|
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
10575
10578
|
StyledModalOptionsWrapper,
|
package/dist/index.mjs
CHANGED
|
@@ -3773,7 +3773,8 @@ function Modal(_a) {
|
|
|
3773
3773
|
maxHeight,
|
|
3774
3774
|
height,
|
|
3775
3775
|
preventAutoFocus = false,
|
|
3776
|
-
fitContent = false
|
|
3776
|
+
fitContent = false,
|
|
3777
|
+
titleTypography = "headline6"
|
|
3777
3778
|
} = _b, props = __objRest(_b, [
|
|
3778
3779
|
"children",
|
|
3779
3780
|
"title",
|
|
@@ -3783,7 +3784,8 @@ function Modal(_a) {
|
|
|
3783
3784
|
"maxHeight",
|
|
3784
3785
|
"height",
|
|
3785
3786
|
"preventAutoFocus",
|
|
3786
|
-
"fitContent"
|
|
3787
|
+
"fitContent",
|
|
3788
|
+
"titleTypography"
|
|
3787
3789
|
]);
|
|
3788
3790
|
const { onOpenChange } = props;
|
|
3789
3791
|
return /* @__PURE__ */ jsxs5(ModalRadix.Root, __spreadProps(__spreadValues({}, props), { children: [
|
|
@@ -3807,7 +3809,7 @@ function Modal(_a) {
|
|
|
3807
3809
|
}, maxHeight !== void 0 && { maxHeight }), height !== void 0 && { height }), fitContent && height === void 0 && { height: "fit-content" }),
|
|
3808
3810
|
children: [
|
|
3809
3811
|
title && /* @__PURE__ */ jsxs5(ModalHeaderStyled, { children: [
|
|
3810
|
-
/* @__PURE__ */ jsx13(ModalTitleStyled, { asChild: true, children: /* @__PURE__ */ jsx13(Text, { typography:
|
|
3812
|
+
/* @__PURE__ */ jsx13(ModalTitleStyled, { asChild: true, children: /* @__PURE__ */ jsx13(Text, { typography: titleTypography, fontWeight: "medium", children: title }) }),
|
|
3811
3813
|
(onOpenChange || trigger) && /* @__PURE__ */ jsx13(ModalRadix.Close, { asChild: true, children: /* @__PURE__ */ jsx13(ModalIconClose, { name: "close", size: "xl" }) })
|
|
3812
3814
|
] }),
|
|
3813
3815
|
children
|
|
@@ -10457,6 +10459,7 @@ var MultiSelect = React11.forwardRef(
|
|
|
10457
10459
|
maxHeight: MOBILE_MODAL_MAX_HEIGHT,
|
|
10458
10460
|
zIndex: modalZIndex,
|
|
10459
10461
|
preventAutoFocus: true,
|
|
10462
|
+
titleTypography: "headline8",
|
|
10460
10463
|
fitContent: true,
|
|
10461
10464
|
children: /* @__PURE__ */ jsx27(
|
|
10462
10465
|
StyledModalOptionsWrapper,
|
package/package.json
CHANGED
package/src/components/Modal.tsx
CHANGED
|
@@ -2,8 +2,8 @@ import { ComponentProps } from "react";
|
|
|
2
2
|
import { styled } from "../styles";
|
|
3
3
|
import { Dialog as ModalRadix } from "radix-ui";
|
|
4
4
|
import Icon from "./Icon";
|
|
5
|
-
import { Box } from "./Box";
|
|
6
5
|
import { Text } from "./Text";
|
|
6
|
+
import { typographyValues } from "../types/typographyValues";
|
|
7
7
|
|
|
8
8
|
const ModalContentStyled = styled(ModalRadix.Content, {
|
|
9
9
|
fontFamily: "$default",
|
|
@@ -61,6 +61,8 @@ const ModalTitleStyled = styled(ModalRadix.Title, {
|
|
|
61
61
|
width: "calc(100% - 48px)",
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
+
type Typography = keyof typeof typographyValues;
|
|
65
|
+
|
|
64
66
|
export type ModalProps = ComponentProps<typeof ModalRadix.Root> & {
|
|
65
67
|
trigger?: React.ReactNode;
|
|
66
68
|
title?: string;
|
|
@@ -71,6 +73,7 @@ export type ModalProps = ComponentProps<typeof ModalRadix.Root> & {
|
|
|
71
73
|
height?: string;
|
|
72
74
|
preventAutoFocus?: boolean;
|
|
73
75
|
fitContent?: boolean;
|
|
76
|
+
titleTypography?: Typography;
|
|
74
77
|
};
|
|
75
78
|
|
|
76
79
|
export function Modal({
|
|
@@ -83,6 +86,7 @@ export function Modal({
|
|
|
83
86
|
height,
|
|
84
87
|
preventAutoFocus = false,
|
|
85
88
|
fitContent = false,
|
|
89
|
+
titleTypography = "headline6",
|
|
86
90
|
...props
|
|
87
91
|
}: ModalProps) {
|
|
88
92
|
const { onOpenChange } = props;
|
|
@@ -111,7 +115,7 @@ export function Modal({
|
|
|
111
115
|
{title && (
|
|
112
116
|
<ModalHeaderStyled>
|
|
113
117
|
<ModalTitleStyled asChild>
|
|
114
|
-
<Text typography={
|
|
118
|
+
<Text typography={titleTypography} fontWeight={"medium"}>
|
|
115
119
|
{title}
|
|
116
120
|
</Text>
|
|
117
121
|
</ModalTitleStyled>
|