@lets-events/react 7.1.0 → 7.2.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/dist/index.d.ts CHANGED
@@ -5,10 +5,11 @@ import PropTypes from 'prop-types';
5
5
  import * as _stitches_react_types_styled_component from '@stitches/react/types/styled-component';
6
6
  import * as _stitches_react_types_css_util from '@stitches/react/types/css-util';
7
7
  import * as react from 'react';
8
- import react__default, { ComponentProps, ElementType } from 'react';
8
+ import react__default, { ComponentProps, ElementType, ReactNode } from 'react';
9
9
  import * as _radix_ui_themes from '@radix-ui/themes';
10
10
  import { TextField as TextField$1, RadioGroup as RadioGroup$1, CheckboxGroup as CheckboxGroup$1, DropdownMenu as DropdownMenu$1, Dialog, AlertDialog, Switch as Switch$1 } from '@radix-ui/themes';
11
11
  import { CSS } from '@stitches/react';
12
+ import { MaskOptions, format, unformat } from '@react-input/mask';
12
13
 
13
14
  interface IconProps extends Omit<FontAwesomeIconProps, "icon" | "size"> {
14
15
  name: IconName;
@@ -2674,7 +2675,7 @@ declare const TextFieldSlotStyled: _stitches_react_types_styled_component.Styled
2674
2675
  zIndex: "zIndices";
2675
2676
  }, {}>>;
2676
2677
  type TextFieldProps = ComponentProps<typeof TextFieldStyled> & {
2677
- addon?: string;
2678
+ addon?: ReactNode;
2678
2679
  placeholder?: string;
2679
2680
  children?: React.ReactNode;
2680
2681
  isValid?: boolean;
@@ -2682,18 +2683,21 @@ type TextFieldProps = ComponentProps<typeof TextFieldStyled> & {
2682
2683
  typography?: string;
2683
2684
  fontWeight?: 'regular' | 'medium' | 'semibold' | 'bold';
2684
2685
  textAlign?: 'left' | 'right' | 'center';
2686
+ mask?: MaskOptions;
2685
2687
  };
2686
2688
  type TextFieldSlotProps = Omit<ComponentProps<typeof TextFieldStyled>, 'color'> & {
2687
2689
  placeholder?: string;
2688
2690
  children?: React.ReactNode;
2689
2691
  position?: 'flex-start' | 'flex-end';
2690
2692
  onClick?: () => void;
2691
- color?: "error" | "success" | undefined;
2693
+ color?: 'error' | 'success' | undefined;
2692
2694
  typography?: string;
2693
2695
  fontWeight?: 'regular' | 'medium' | 'semibold' | 'bold';
2694
2696
  textAlign?: 'left' | 'right' | 'center';
2695
2697
  };
2696
- declare function TextField({ children, isValid, name, color, typography, fontWeight, addon, textAlign, ...props }: TextFieldProps): react_jsx_runtime.JSX.Element;
2698
+ declare const maskFormat: typeof format;
2699
+ declare const maskUnformat: typeof unformat;
2700
+ declare function TextField({ children, isValid, name, color, typography, fontWeight, addon, textAlign, mask, ...props }: TextFieldProps): react_jsx_runtime.JSX.Element;
2697
2701
  declare function TextFieldSlot({ children, position, onClick, typography, fontWeight, textAlign, ...props }: TextFieldSlotProps): react_jsx_runtime.JSX.Element;
2698
2702
 
2699
2703
  declare const RadioGroupStyled: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<RadioGroup$1.RootProps & react.RefAttributes<HTMLDivElement>>, {
@@ -9848,7 +9852,7 @@ declare const AlertDialoghrStyled: _stitches_react_types_styled_component.Styled
9848
9852
  }, {}>>;
9849
9853
  type AlertProps = {
9850
9854
  trigger: React.ReactNode;
9851
- color?: 'error' | 'warning' | 'success' | 'info';
9855
+ color?: "error" | "warning" | "success" | "info";
9852
9856
  simpleAlert?: {
9853
9857
  description: string;
9854
9858
  cancel: boolean;
@@ -10637,6 +10641,383 @@ declare function StepWrapper({ children, ...props }: {
10637
10641
  children: react__default.ReactNode;
10638
10642
  }): react_jsx_runtime.JSX.Element;
10639
10643
 
10644
+ declare const TextareaFieldStyle: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<_radix_ui_themes.TextAreaProps & react.RefAttributes<HTMLTextAreaElement>>, {
10645
+ typography?: "tooltip" | "displayLarge" | "displayMedium" | "displaySmall" | "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headline7" | "headline8" | "bodyXL" | "bodyL" | "bodyM" | "bodyS" | "bodyXS" | "bodyXXS" | "badgeLarge" | "badgeMedium" | "badgeSmall" | "badgeExtraSmall" | "popoversRegular" | "captionLarge" | "captionMedium" | "captionSmall" | "buttonLarge" | "buttonMedium" | "buttonSmall" | "buttonExtraSmall" | "labelLarge" | "labelMedium" | "labelSmall" | "labelExtraSmall" | undefined;
10646
+ }, {}, _stitches_react_types_css_util.CSS<{}, {
10647
+ colors: {
10648
+ brand50: string;
10649
+ brand100: string;
10650
+ brand200: string;
10651
+ brand300: string;
10652
+ brand400: string;
10653
+ brand500: string;
10654
+ brand600: string;
10655
+ brand700: string;
10656
+ brand800: string;
10657
+ brand900: string;
10658
+ brand950: string;
10659
+ blue50: string;
10660
+ blue100: string;
10661
+ blue200: string;
10662
+ blue300: string;
10663
+ blue400: string;
10664
+ blue500: string;
10665
+ blue600: string;
10666
+ blue700: string;
10667
+ blue800: string;
10668
+ blue900: string;
10669
+ blue950: string;
10670
+ red50: string;
10671
+ red100: string;
10672
+ red200: string;
10673
+ red300: string;
10674
+ red400: string;
10675
+ red500: string;
10676
+ red600: string;
10677
+ red700: string;
10678
+ red800: string;
10679
+ red900: string;
10680
+ red950: string;
10681
+ purple50: string;
10682
+ purple100: string;
10683
+ purple200: string;
10684
+ purple300: string;
10685
+ purple400: string;
10686
+ purple500: string;
10687
+ purple600: string;
10688
+ purple700: string;
10689
+ purple800: string;
10690
+ purple900: string;
10691
+ purple950: string;
10692
+ yellow50: string;
10693
+ yellow100: string;
10694
+ yellow200: string;
10695
+ yellow300: string;
10696
+ yellow400: string;
10697
+ yellow500: string;
10698
+ yellow600: string;
10699
+ yellow700: string;
10700
+ yellow800: string;
10701
+ yellow900: string;
10702
+ yellow950: string;
10703
+ dark50: string;
10704
+ dark100: string;
10705
+ dark200: string;
10706
+ dark300: string;
10707
+ dark400: string;
10708
+ dark500: string;
10709
+ dark600: string;
10710
+ dark700: string;
10711
+ dark800: string;
10712
+ dark900: string;
10713
+ dark950: string;
10714
+ neutral50: string;
10715
+ neutral100: string;
10716
+ neutral200: string;
10717
+ neutral300: string;
10718
+ neutral400: string;
10719
+ neutral500: string;
10720
+ neutral600: string;
10721
+ neutral700: string;
10722
+ neutral800: string;
10723
+ neutral900: string;
10724
+ neutral950: string;
10725
+ green50: string;
10726
+ green100: string;
10727
+ green200: string;
10728
+ green300: string;
10729
+ green400: string;
10730
+ green500: string;
10731
+ green600: string;
10732
+ green700: string;
10733
+ green800: string;
10734
+ green900: string;
10735
+ green950: string;
10736
+ grey50: string;
10737
+ grey100: string;
10738
+ grey200: string;
10739
+ grey300: string;
10740
+ grey400: string;
10741
+ grey500: string;
10742
+ grey600: string;
10743
+ grey700: string;
10744
+ grey800: string;
10745
+ grey900: string;
10746
+ grey950: string;
10747
+ error50: string;
10748
+ error100: string;
10749
+ error200: string;
10750
+ error300: string;
10751
+ error400: string;
10752
+ error500: string;
10753
+ error600: string;
10754
+ error700: string;
10755
+ error800: string;
10756
+ error900: string;
10757
+ error950: string;
10758
+ success50: string;
10759
+ success100: string;
10760
+ success200: string;
10761
+ success300: string;
10762
+ success400: string;
10763
+ success500: string;
10764
+ success600: string;
10765
+ success700: string;
10766
+ success800: string;
10767
+ success900: string;
10768
+ success950: string;
10769
+ warning50: string;
10770
+ warning100: string;
10771
+ warning200: string;
10772
+ warning300: string;
10773
+ warning400: string;
10774
+ warning500: string;
10775
+ warning600: string;
10776
+ warning700: string;
10777
+ warning800: string;
10778
+ warning900: string;
10779
+ warning950: string;
10780
+ info50: string;
10781
+ info100: string;
10782
+ info200: string;
10783
+ info300: string;
10784
+ info400: string;
10785
+ info500: string;
10786
+ info600: string;
10787
+ info700: string;
10788
+ info800: string;
10789
+ info900: string;
10790
+ info950: string;
10791
+ };
10792
+ fontSizes: {
10793
+ 2: string;
10794
+ 4: string;
10795
+ 6: string;
10796
+ 8: string;
10797
+ 10: string;
10798
+ 12: string;
10799
+ 13: string;
10800
+ 14: string;
10801
+ 16: string;
10802
+ 18: string;
10803
+ 20: string;
10804
+ 22: string;
10805
+ 24: string;
10806
+ 32: string;
10807
+ 36: string;
10808
+ 40: string;
10809
+ 48: string;
10810
+ 56: string;
10811
+ 64: string;
10812
+ 72: string;
10813
+ 80: string;
10814
+ xs: string;
10815
+ sm: string;
10816
+ md: string;
10817
+ lg: string;
10818
+ '2xl': string;
10819
+ '3xl': string;
10820
+ '4xl': string;
10821
+ full: string;
10822
+ };
10823
+ fonts: {
10824
+ default: string;
10825
+ };
10826
+ fontWeights: {
10827
+ regular: string;
10828
+ medium: string;
10829
+ semibold: string;
10830
+ bold: string;
10831
+ };
10832
+ lineHeights: {
10833
+ smaller: string;
10834
+ shorter: string;
10835
+ short: string;
10836
+ base: string;
10837
+ tall: string;
10838
+ };
10839
+ radii: {
10840
+ '3xs': string;
10841
+ '2xs': string;
10842
+ xs: string;
10843
+ sm: string;
10844
+ md: string;
10845
+ lg: string;
10846
+ xl: string;
10847
+ '2xl': string;
10848
+ '3xl': string;
10849
+ '4xl': string;
10850
+ '5xl': string;
10851
+ '6xl': string;
10852
+ '7xl': string;
10853
+ '8xl': string;
10854
+ '9xl': string;
10855
+ '10xl': string;
10856
+ '11xl': string;
10857
+ '12xl': string;
10858
+ '13xl': string;
10859
+ '14xl': string;
10860
+ full: string;
10861
+ };
10862
+ space: {
10863
+ 2: string;
10864
+ 4: string;
10865
+ 6: string;
10866
+ 8: string;
10867
+ 10: string;
10868
+ 12: string;
10869
+ 13: string;
10870
+ 14: string;
10871
+ 16: string;
10872
+ 18: string;
10873
+ 20: string;
10874
+ 22: string;
10875
+ 24: string;
10876
+ 32: string;
10877
+ 36: string;
10878
+ 40: string;
10879
+ 48: string;
10880
+ 56: string;
10881
+ 64: string;
10882
+ 72: string;
10883
+ 80: string;
10884
+ full: string;
10885
+ };
10886
+ }, {
10887
+ height: "space";
10888
+ width: "space";
10889
+ gap: "space";
10890
+ gridGap: "space";
10891
+ columnGap: "space";
10892
+ gridColumnGap: "space";
10893
+ rowGap: "space";
10894
+ gridRowGap: "space";
10895
+ inset: "space";
10896
+ insetBlock: "space";
10897
+ insetBlockEnd: "space";
10898
+ insetBlockStart: "space";
10899
+ insetInline: "space";
10900
+ insetInlineEnd: "space";
10901
+ insetInlineStart: "space";
10902
+ margin: "space";
10903
+ marginTop: "space";
10904
+ marginRight: "space";
10905
+ marginBottom: "space";
10906
+ marginLeft: "space";
10907
+ marginBlock: "space";
10908
+ marginBlockEnd: "space";
10909
+ marginBlockStart: "space";
10910
+ marginInline: "space";
10911
+ marginInlineEnd: "space";
10912
+ marginInlineStart: "space";
10913
+ padding: "space";
10914
+ paddingTop: "space";
10915
+ paddingRight: "space";
10916
+ paddingBottom: "space";
10917
+ paddingLeft: "space";
10918
+ paddingBlock: "space";
10919
+ paddingBlockEnd: "space";
10920
+ paddingBlockStart: "space";
10921
+ paddingInline: "space";
10922
+ paddingInlineEnd: "space";
10923
+ paddingInlineStart: "space";
10924
+ scrollMargin: "space";
10925
+ scrollMarginTop: "space";
10926
+ scrollMarginRight: "space";
10927
+ scrollMarginBottom: "space";
10928
+ scrollMarginLeft: "space";
10929
+ scrollMarginBlock: "space";
10930
+ scrollMarginBlockEnd: "space";
10931
+ scrollMarginBlockStart: "space";
10932
+ scrollMarginInline: "space";
10933
+ scrollMarginInlineEnd: "space";
10934
+ scrollMarginInlineStart: "space";
10935
+ scrollPadding: "space";
10936
+ scrollPaddingTop: "space";
10937
+ scrollPaddingRight: "space";
10938
+ scrollPaddingBottom: "space";
10939
+ scrollPaddingLeft: "space";
10940
+ scrollPaddingBlock: "space";
10941
+ scrollPaddingBlockEnd: "space";
10942
+ scrollPaddingBlockStart: "space";
10943
+ scrollPaddingInline: "space";
10944
+ scrollPaddingInlineEnd: "space";
10945
+ scrollPaddingInlineStart: "space";
10946
+ top: "space";
10947
+ right: "space";
10948
+ bottom: "space";
10949
+ left: "space";
10950
+ fontSize: "fontSizes";
10951
+ background: "colors";
10952
+ backgroundColor: "colors";
10953
+ backgroundImage: "colors";
10954
+ borderImage: "colors";
10955
+ border: "colors";
10956
+ borderBlock: "colors";
10957
+ borderBlockEnd: "colors";
10958
+ borderBlockStart: "colors";
10959
+ borderBottom: "colors";
10960
+ borderBottomColor: "colors";
10961
+ borderColor: "colors";
10962
+ borderInline: "colors";
10963
+ borderInlineEnd: "colors";
10964
+ borderInlineStart: "colors";
10965
+ borderLeft: "colors";
10966
+ borderLeftColor: "colors";
10967
+ borderRight: "colors";
10968
+ borderRightColor: "colors";
10969
+ borderTop: "colors";
10970
+ borderTopColor: "colors";
10971
+ caretColor: "colors";
10972
+ color: "colors";
10973
+ columnRuleColor: "colors";
10974
+ outline: "colors";
10975
+ outlineColor: "colors";
10976
+ fill: "colors";
10977
+ stroke: "colors";
10978
+ textDecorationColor: "colors";
10979
+ fontFamily: "fonts";
10980
+ fontWeight: "fontWeights";
10981
+ lineHeight: "lineHeights";
10982
+ letterSpacing: "letterSpacings";
10983
+ blockSize: "sizes";
10984
+ minBlockSize: "sizes";
10985
+ maxBlockSize: "sizes";
10986
+ inlineSize: "sizes";
10987
+ minInlineSize: "sizes";
10988
+ maxInlineSize: "sizes";
10989
+ minWidth: "sizes";
10990
+ maxWidth: "sizes";
10991
+ minHeight: "sizes";
10992
+ maxHeight: "sizes";
10993
+ flexBasis: "sizes";
10994
+ gridTemplateColumns: "sizes";
10995
+ gridTemplateRows: "sizes";
10996
+ borderWidth: "borderWidths";
10997
+ borderTopWidth: "borderWidths";
10998
+ borderLeftWidth: "borderWidths";
10999
+ borderRightWidth: "borderWidths";
11000
+ borderBottomWidth: "borderWidths";
11001
+ borderStyle: "borderStyles";
11002
+ borderTopStyle: "borderStyles";
11003
+ borderLeftStyle: "borderStyles";
11004
+ borderRightStyle: "borderStyles";
11005
+ borderBottomStyle: "borderStyles";
11006
+ borderRadius: "radii";
11007
+ borderTopLeftRadius: "radii";
11008
+ borderTopRightRadius: "radii";
11009
+ borderBottomRightRadius: "radii";
11010
+ borderBottomLeftRadius: "radii";
11011
+ boxShadow: "shadows";
11012
+ textShadow: "shadows";
11013
+ transition: "transitions";
11014
+ zIndex: "zIndices";
11015
+ }, {}>>;
11016
+ type TextareaFieldProps = ComponentProps<typeof TextareaFieldStyle> & {
11017
+ limit: number;
11018
+ };
11019
+ declare function TextareaField({ maxLength, ...props }: TextareaFieldProps): react_jsx_runtime.JSX.Element;
11020
+
10640
11021
  declare const FlexStyled: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<_radix_ui_themes.FlexProps & react.RefAttributes<HTMLDivElement>>, {
10641
11022
  display?: "flex" | "inline-flex" | undefined;
10642
11023
  align?: "end" | "stretch" | "center" | "start" | "baseline" | undefined;
@@ -12169,4 +12550,4 @@ type SectionProps = ComponentProps<typeof SectionStyled> & {
12169
12550
  };
12170
12551
  declare function Section({ children, ...props }: SectionProps): react_jsx_runtime.JSX.Element;
12171
12552
 
12172
- export { Alert, AlertDialogCompleteStyled, AlertDialogDescriptionStyled, AlertDialogRowStyled, AlertDialogSimpleStyled, AlertDialogSubtitleStyled, AlertDialogTitleStyled, AlertDialoghrStyled, type AlertProps, Avatar, type AvatarProps, AvatarStyled, Badge, type BadgeProps, BadgeStyled, Box, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupStyled, ButtonItem, type ButtonItemProps, ButtonItemStyled, type ButtonProps, Calendar, type CalendarProps, CheckboxGroup, type CheckboxGroupProps, CheckboxGroupStyled, CheckboxItem, type CheckboxItemProps, Container, type ContainerProps, ContainerStyled, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, Filter, FilterItem, type FilterItemProps, type FilterProps, Flex, type FlexProps, FlexStyled, Grid, type GridProps, GridStyled, Icon, Modal, ModalContentStyled, type ModalProps, ModalStyled, ModalTitleStyled, RadioGroup, type RadioGroupProps, RadioGroupStyled, RadioItem, type RadioItemProps, Section, type SectionProps, SectionStyled, Step, StepContent, StepList, type StepProps, StepStyled, StepTrigger, StepWrapper, Switch, type SwitchProps, SwitchStyled, Text, TextField, type TextFieldProps, TextFieldSlot, type TextFieldSlotProps, TextFieldSlotStyled, TextFieldStyled, type TextProps, TextStyle, TimePicker, TimePickerDropdownStyled, TimePickerFooterStyled, type TimePickerProps, TimePickerStyled, TimerPickerContentStyled };
12553
+ export { Alert, AlertDialogCompleteStyled, AlertDialogDescriptionStyled, AlertDialogRowStyled, AlertDialogSimpleStyled, AlertDialogSubtitleStyled, AlertDialogTitleStyled, AlertDialoghrStyled, type AlertProps, Avatar, type AvatarProps, AvatarStyled, Badge, type BadgeProps, BadgeStyled, Box, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupStyled, ButtonItem, type ButtonItemProps, ButtonItemStyled, type ButtonProps, Calendar, type CalendarProps, CheckboxGroup, type CheckboxGroupProps, CheckboxGroupStyled, CheckboxItem, type CheckboxItemProps, Container, type ContainerProps, ContainerStyled, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, Filter, FilterItem, type FilterItemProps, type FilterProps, Flex, type FlexProps, FlexStyled, Grid, type GridProps, GridStyled, Icon, Modal, ModalContentStyled, type ModalProps, ModalStyled, ModalTitleStyled, RadioGroup, type RadioGroupProps, RadioGroupStyled, RadioItem, type RadioItemProps, Section, type SectionProps, SectionStyled, Step, StepContent, StepList, type StepProps, StepStyled, StepTrigger, StepWrapper, Switch, type SwitchProps, SwitchStyled, Text, TextField, type TextFieldProps, TextFieldSlot, type TextFieldSlotProps, TextFieldSlotStyled, TextFieldStyled, type TextProps, TextStyle, TextareaField, type TextareaFieldProps, TextareaFieldStyle, TimePicker, TimePickerDropdownStyled, TimePickerFooterStyled, type TimePickerProps, TimePickerStyled, TimerPickerContentStyled, maskFormat, maskUnformat };