@lets-events/react 11.5.0 → 11.5.1
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/.eslintrc.json +2 -2
- package/.turbo/turbo-build.log +18 -20
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
- package/src/components/Alert.tsx +303 -303
- package/src/components/Avatar.tsx +55 -55
- package/src/components/Badge.tsx +125 -125
- package/src/components/Box.tsx +3 -3
- package/src/components/Button/index.tsx +16 -16
- package/src/components/Button/styledComponents.ts +287 -287
- package/src/components/ButtonGroup.tsx +484 -484
- package/src/components/Calendar/index.tsx +136 -136
- package/src/components/Calendar/styledComponents.ts +209 -209
- package/src/components/Card.tsx +48 -48
- package/src/components/CheckboxGroup.tsx +196 -196
- package/src/components/Container.tsx +39 -39
- package/src/components/Drawer/index.tsx +48 -48
- package/src/components/Drawer/styledComponents.ts +46 -46
- package/src/components/Dropdown.tsx +167 -167
- package/src/components/Filter.tsx +164 -164
- package/src/components/Flex.tsx +118 -118
- package/src/components/FormFields/ErrorFormMessage.tsx +36 -36
- package/src/components/FormFields/Form.tsx +25 -25
- package/src/components/FormFields/FormLabel.tsx +29 -29
- package/src/components/FormFields/MultiSelectFormField.tsx +59 -59
- package/src/components/FormFields/PhoneFormField.tsx +130 -130
- package/src/components/FormFields/TextAreaFormField.tsx +49 -46
- package/src/components/FormFields/TextFormField.tsx +46 -46
- package/src/components/Grid.tsx +137 -137
- package/src/components/Icon.tsx +47 -47
- package/src/components/MenuDropdown/index.tsx +30 -30
- package/src/components/MenuDropdown/styledComponents.ts +31 -31
- package/src/components/Modal.tsx +90 -90
- package/src/components/MultiSelect.tsx +218 -218
- package/src/components/RadioGroup.tsx +210 -210
- package/src/components/Section.tsx +33 -33
- package/src/components/Step.tsx +164 -164
- package/src/components/Switch.tsx +108 -108
- package/src/components/Text.tsx +38 -38
- package/src/components/TextField.tsx +315 -315
- package/src/components/TextareaField.tsx +128 -128
- package/src/components/TimePicker.tsx +298 -298
- package/src/components/Toast/components/ToastItem.tsx +41 -41
- package/src/components/Toast/components/ToastProvider.tsx +63 -63
- package/src/components/Toast/hooks/useToast.ts +12 -12
- package/src/components/Toast/index.tsx +5 -5
- package/src/components/Toast/styles/index.ts +135 -135
- package/src/components/Toast/types/index.ts +46 -46
- package/src/components/Tooltip/index.tsx +66 -66
- package/src/components/Tooltip/styles.ts +77 -77
- package/src/hooks/useOnClickOutside.tsx +20 -20
- package/src/index.tsx +45 -45
- package/src/styles/index.ts +38 -38
- package/src/types/typographyValues.ts +178 -178
- package/tsconfig.json +3 -3
package/.eslintrc.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@lets-events/eslint-config"
|
|
1
|
+
{
|
|
2
|
+
"extends": "@lets-events/eslint-config"
|
|
3
3
|
}
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
[
|
|
7
|
-
[34mCLI[39m
|
|
8
|
-
[34mCLI[39m
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[32mESM[39m
|
|
13
|
-
[
|
|
14
|
-
[32mCJS[39m
|
|
15
|
-
[
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
DTS dist/index.d.ts 388.30 KB
|
|
20
|
-
[1G[0K⠙[1G[0K
|
|
1
|
+
|
|
2
|
+
> @lets-events/react@11.5.1 build
|
|
3
|
+
> tsup src/index.tsx --format esm,cjs --dts --external react
|
|
4
|
+
|
|
5
|
+
[34mCLI[39m Building entry: src/index.tsx
|
|
6
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
+
[34mCLI[39m tsup v8.4.0
|
|
8
|
+
[34mCLI[39m Target: es6
|
|
9
|
+
[34mESM[39m Build start
|
|
10
|
+
[34mCJS[39m Build start
|
|
11
|
+
[32mESM[39m [1mdist\index.mjs [22m[32m292.77 KB[39m
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 228ms
|
|
13
|
+
[32mCJS[39m [1mdist\index.js [22m[32m303.05 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 228ms
|
|
15
|
+
[34mDTS[39m Build start
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 4041ms
|
|
17
|
+
[32mDTS[39m [1mdist\index.d.mts [22m[32m388.35 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist\index.d.ts [22m[32m388.35 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -14883,8 +14883,9 @@ type TextAreaFormFieldProps = {
|
|
|
14883
14883
|
label?: string;
|
|
14884
14884
|
required?: boolean;
|
|
14885
14885
|
placeholder?: string;
|
|
14886
|
+
fieldProps?: TextareaFieldProps;
|
|
14886
14887
|
};
|
|
14887
|
-
declare const TextAreaFormField: ({ name, label, required, placeholder, }: TextAreaFormFieldProps) => react_jsx_runtime.JSX.Element;
|
|
14888
|
+
declare const TextAreaFormField: ({ name, label, required, placeholder, fieldProps, }: TextAreaFormFieldProps) => react_jsx_runtime.JSX.Element;
|
|
14888
14889
|
|
|
14889
14890
|
type TextFormFieldProps = {
|
|
14890
14891
|
name: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -14883,8 +14883,9 @@ type TextAreaFormFieldProps = {
|
|
|
14883
14883
|
label?: string;
|
|
14884
14884
|
required?: boolean;
|
|
14885
14885
|
placeholder?: string;
|
|
14886
|
+
fieldProps?: TextareaFieldProps;
|
|
14886
14887
|
};
|
|
14887
|
-
declare const TextAreaFormField: ({ name, label, required, placeholder, }: TextAreaFormFieldProps) => react_jsx_runtime.JSX.Element;
|
|
14888
|
+
declare const TextAreaFormField: ({ name, label, required, placeholder, fieldProps, }: TextAreaFormFieldProps) => react_jsx_runtime.JSX.Element;
|
|
14888
14889
|
|
|
14889
14890
|
type TextFormFieldProps = {
|
|
14890
14891
|
name: string;
|
package/dist/index.js
CHANGED
|
@@ -9654,7 +9654,8 @@ var TextAreaFormField = ({
|
|
|
9654
9654
|
name,
|
|
9655
9655
|
label,
|
|
9656
9656
|
required,
|
|
9657
|
-
placeholder
|
|
9657
|
+
placeholder,
|
|
9658
|
+
fieldProps
|
|
9658
9659
|
}) => {
|
|
9659
9660
|
var _a;
|
|
9660
9661
|
const {
|
|
@@ -9675,7 +9676,7 @@ var TextAreaFormField = ({
|
|
|
9675
9676
|
),
|
|
9676
9677
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
9677
9678
|
TextareaField,
|
|
9678
|
-
__spreadProps(__spreadValues({}, register(name, { required })), {
|
|
9679
|
+
__spreadProps(__spreadValues(__spreadValues({}, fieldProps), register(name, { required })), {
|
|
9679
9680
|
placeholder,
|
|
9680
9681
|
color: haveError ? "error" : "default",
|
|
9681
9682
|
"aria-labelledby": `${name}-label`
|
package/dist/index.mjs
CHANGED
|
@@ -9562,7 +9562,8 @@ var TextAreaFormField = ({
|
|
|
9562
9562
|
name,
|
|
9563
9563
|
label,
|
|
9564
9564
|
required,
|
|
9565
|
-
placeholder
|
|
9565
|
+
placeholder,
|
|
9566
|
+
fieldProps
|
|
9566
9567
|
}) => {
|
|
9567
9568
|
var _a;
|
|
9568
9569
|
const {
|
|
@@ -9583,7 +9584,7 @@ var TextAreaFormField = ({
|
|
|
9583
9584
|
),
|
|
9584
9585
|
/* @__PURE__ */ jsx32(
|
|
9585
9586
|
TextareaField,
|
|
9586
|
-
__spreadProps(__spreadValues({}, register(name, { required })), {
|
|
9587
|
+
__spreadProps(__spreadValues(__spreadValues({}, fieldProps), register(name, { required })), {
|
|
9587
9588
|
placeholder,
|
|
9588
9589
|
color: haveError ? "error" : "default",
|
|
9589
9590
|
"aria-labelledby": `${name}-label`
|