@lets-events/react 7.2.1 → 9.0.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/.eslintrc.json +2 -2
- package/.turbo/turbo-build.log +18 -19
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +227 -719
- package/dist/index.mjs +164 -656
- package/package.json +3 -1
- package/src/components/Alert.tsx +303 -303
- package/src/components/Avatar.tsx +55 -55
- package/src/components/Badge.tsx +128 -128
- package/src/components/Box.tsx +3 -3
- package/src/components/Button/index.tsx +12 -12
- package/src/components/Button/styledComponents.ts +250 -250
- package/src/components/ButtonGroup.tsx +484 -484
- package/src/components/Calendar/index.tsx +136 -136
- package/src/components/Calendar/styledComponents.ts +208 -208
- package/src/components/Card.tsx +69 -69
- package/src/components/CheckboxGroup.tsx +214 -214
- package/src/components/Container.tsx +39 -39
- package/src/components/Dropdown.tsx +167 -167
- package/src/components/Filter.tsx +164 -164
- package/src/components/Flex.tsx +118 -118
- package/src/components/Grid.tsx +137 -137
- package/src/components/Icon.tsx +47 -47
- package/src/components/Modal.tsx +103 -109
- 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 +30 -30
- package/src/components/TextField.tsx +299 -299
- package/src/components/TextareaField.tsx +101 -101
- package/src/components/TimePicker.tsx +239 -239
- package/src/hooks/useOnClickOutside.tsx +20 -20
- package/src/index.tsx +31 -31
- 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,19 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
[34mCLI[39m
|
|
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 355.13 KB
|
|
1
|
+
|
|
2
|
+
> @lets-events/react@9.0.0 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[32m265.84 KB[39m
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 216ms
|
|
13
|
+
[32mCJS[39m [1mdist\index.js [22m[32m273.58 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 217ms
|
|
15
|
+
[34mDTS[39m Build start
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 4839ms
|
|
17
|
+
[32mDTS[39m [1mdist\index.d.mts [22m[32m355.13 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist\index.d.ts [22m[32m355.13 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -7,9 +7,10 @@ import * as _stitches_react_types_css_util from '@stitches/react/types/css-util'
|
|
|
7
7
|
import * as react from 'react';
|
|
8
8
|
import react__default, { ComponentProps, ElementType, ReactNode } from 'react';
|
|
9
9
|
import * as _radix_ui_themes from '@radix-ui/themes';
|
|
10
|
-
import { TextField as TextField$1, RadioGroup as RadioGroup$1, CheckboxGroup as CheckboxGroup$1, DropdownMenu as DropdownMenu$1,
|
|
10
|
+
import { TextField as TextField$1, RadioGroup as RadioGroup$1, CheckboxGroup as CheckboxGroup$1, DropdownMenu as DropdownMenu$1, AlertDialog, Switch as Switch$1 } from '@radix-ui/themes';
|
|
11
11
|
import { CSS } from '@stitches/react';
|
|
12
12
|
import { MaskOptions, format, unformat } from '@react-input/mask';
|
|
13
|
+
import { Dialog } from 'radix-ui';
|
|
13
14
|
|
|
14
15
|
interface IconProps extends Omit<FontAwesomeIconProps, "icon" | "size"> {
|
|
15
16
|
name: IconName;
|
|
@@ -4636,7 +4637,7 @@ declare const ModalStyled: _stitches_react_types_styled_component.StyledComponen
|
|
|
4636
4637
|
transition: "transitions";
|
|
4637
4638
|
zIndex: "zIndices";
|
|
4638
4639
|
}, {}>>;
|
|
4639
|
-
declare const ModalContentStyled: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<Dialog.
|
|
4640
|
+
declare const ModalContentStyled: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<Dialog.DialogContentProps & react.RefAttributes<HTMLDivElement>>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
4640
4641
|
colors: {
|
|
4641
4642
|
brand50: string;
|
|
4642
4643
|
brand100: string;
|
|
@@ -5006,7 +5007,7 @@ declare const ModalContentStyled: _stitches_react_types_styled_component.StyledC
|
|
|
5006
5007
|
transition: "transitions";
|
|
5007
5008
|
zIndex: "zIndices";
|
|
5008
5009
|
}, {}>>;
|
|
5009
|
-
declare const ModalTitleStyled: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<Dialog.
|
|
5010
|
+
declare const ModalTitleStyled: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<Dialog.DialogTitleProps & react.RefAttributes<HTMLHeadingElement>>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
5010
5011
|
colors: {
|
|
5011
5012
|
brand50: string;
|
|
5012
5013
|
brand100: string;
|
|
@@ -5376,7 +5377,7 @@ declare const ModalTitleStyled: _stitches_react_types_styled_component.StyledCom
|
|
|
5376
5377
|
transition: "transitions";
|
|
5377
5378
|
zIndex: "zIndices";
|
|
5378
5379
|
}, {}>>;
|
|
5379
|
-
type ModalProps = ComponentProps<typeof
|
|
5380
|
+
type ModalProps = ComponentProps<typeof Dialog.Root> & {
|
|
5380
5381
|
trigger: React.ReactNode;
|
|
5381
5382
|
title?: string;
|
|
5382
5383
|
children: React.ReactNode;
|
|
@@ -5386,7 +5387,7 @@ type ModalProps = ComponentProps<typeof ModalStyled> & {
|
|
|
5386
5387
|
actionText?: string;
|
|
5387
5388
|
onAction?: () => void;
|
|
5388
5389
|
};
|
|
5389
|
-
declare function Modal({ children, title, trigger,
|
|
5390
|
+
declare function Modal({ children, title, trigger, onAction, ...props }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
5390
5391
|
|
|
5391
5392
|
declare const CalendarStyled: _stitches_react_types_styled_component.StyledComponent<"div", {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
5392
5393
|
colors: {
|
package/dist/index.d.ts
CHANGED
|
@@ -7,9 +7,10 @@ import * as _stitches_react_types_css_util from '@stitches/react/types/css-util'
|
|
|
7
7
|
import * as react from 'react';
|
|
8
8
|
import react__default, { ComponentProps, ElementType, ReactNode } from 'react';
|
|
9
9
|
import * as _radix_ui_themes from '@radix-ui/themes';
|
|
10
|
-
import { TextField as TextField$1, RadioGroup as RadioGroup$1, CheckboxGroup as CheckboxGroup$1, DropdownMenu as DropdownMenu$1,
|
|
10
|
+
import { TextField as TextField$1, RadioGroup as RadioGroup$1, CheckboxGroup as CheckboxGroup$1, DropdownMenu as DropdownMenu$1, AlertDialog, Switch as Switch$1 } from '@radix-ui/themes';
|
|
11
11
|
import { CSS } from '@stitches/react';
|
|
12
12
|
import { MaskOptions, format, unformat } from '@react-input/mask';
|
|
13
|
+
import { Dialog } from 'radix-ui';
|
|
13
14
|
|
|
14
15
|
interface IconProps extends Omit<FontAwesomeIconProps, "icon" | "size"> {
|
|
15
16
|
name: IconName;
|
|
@@ -4636,7 +4637,7 @@ declare const ModalStyled: _stitches_react_types_styled_component.StyledComponen
|
|
|
4636
4637
|
transition: "transitions";
|
|
4637
4638
|
zIndex: "zIndices";
|
|
4638
4639
|
}, {}>>;
|
|
4639
|
-
declare const ModalContentStyled: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<Dialog.
|
|
4640
|
+
declare const ModalContentStyled: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<Dialog.DialogContentProps & react.RefAttributes<HTMLDivElement>>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
4640
4641
|
colors: {
|
|
4641
4642
|
brand50: string;
|
|
4642
4643
|
brand100: string;
|
|
@@ -5006,7 +5007,7 @@ declare const ModalContentStyled: _stitches_react_types_styled_component.StyledC
|
|
|
5006
5007
|
transition: "transitions";
|
|
5007
5008
|
zIndex: "zIndices";
|
|
5008
5009
|
}, {}>>;
|
|
5009
|
-
declare const ModalTitleStyled: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<Dialog.
|
|
5010
|
+
declare const ModalTitleStyled: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<Dialog.DialogTitleProps & react.RefAttributes<HTMLHeadingElement>>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
5010
5011
|
colors: {
|
|
5011
5012
|
brand50: string;
|
|
5012
5013
|
brand100: string;
|
|
@@ -5376,7 +5377,7 @@ declare const ModalTitleStyled: _stitches_react_types_styled_component.StyledCom
|
|
|
5376
5377
|
transition: "transitions";
|
|
5377
5378
|
zIndex: "zIndices";
|
|
5378
5379
|
}, {}>>;
|
|
5379
|
-
type ModalProps = ComponentProps<typeof
|
|
5380
|
+
type ModalProps = ComponentProps<typeof Dialog.Root> & {
|
|
5380
5381
|
trigger: React.ReactNode;
|
|
5381
5382
|
title?: string;
|
|
5382
5383
|
children: React.ReactNode;
|
|
@@ -5386,7 +5387,7 @@ type ModalProps = ComponentProps<typeof ModalStyled> & {
|
|
|
5386
5387
|
actionText?: string;
|
|
5387
5388
|
onAction?: () => void;
|
|
5388
5389
|
};
|
|
5389
|
-
declare function Modal({ children, title, trigger,
|
|
5390
|
+
declare function Modal({ children, title, trigger, onAction, ...props }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
5390
5391
|
|
|
5391
5392
|
declare const CalendarStyled: _stitches_react_types_styled_component.StyledComponent<"div", {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
5392
5393
|
colors: {
|