@lets-events/react 10.1.1 → 11.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.
Files changed (47) hide show
  1. package/.eslintrc.json +2 -2
  2. package/.turbo/turbo-build.log +18 -19
  3. package/CHANGELOG.md +6 -0
  4. package/dist/index.d.mts +376 -6
  5. package/dist/index.d.ts +376 -6
  6. package/dist/index.js +73 -36
  7. package/dist/index.mjs +72 -36
  8. package/package.json +1 -1
  9. package/src/components/Alert.tsx +303 -303
  10. package/src/components/Avatar.tsx +55 -55
  11. package/src/components/Badge.tsx +128 -128
  12. package/src/components/Box.tsx +3 -3
  13. package/src/components/Button/index.tsx +12 -12
  14. package/src/components/Button/styledComponents.ts +275 -250
  15. package/src/components/ButtonGroup.tsx +484 -484
  16. package/src/components/Calendar/index.tsx +136 -136
  17. package/src/components/Calendar/styledComponents.ts +209 -208
  18. package/src/components/Card.tsx +69 -69
  19. package/src/components/CheckboxGroup.tsx +214 -214
  20. package/src/components/Container.tsx +39 -39
  21. package/src/components/Dropdown.tsx +167 -167
  22. package/src/components/Filter.tsx +164 -164
  23. package/src/components/Flex.tsx +118 -118
  24. package/src/components/Grid.tsx +137 -137
  25. package/src/components/Icon.tsx +47 -47
  26. package/src/components/Modal.tsx +90 -90
  27. package/src/components/RadioGroup.tsx +210 -210
  28. package/src/components/Section.tsx +33 -33
  29. package/src/components/Step.tsx +164 -164
  30. package/src/components/Switch.tsx +108 -108
  31. package/src/components/Text.tsx +39 -30
  32. package/src/components/TextField.tsx +299 -299
  33. package/src/components/TextareaField.tsx +101 -101
  34. package/src/components/TimePicker.tsx +298 -280
  35. package/src/components/Toast/components/ToastItem.tsx +41 -41
  36. package/src/components/Toast/components/ToastProvider.tsx +63 -63
  37. package/src/components/Toast/hooks/useToast.ts +12 -12
  38. package/src/components/Toast/index.tsx +5 -5
  39. package/src/components/Toast/styles/index.ts +135 -135
  40. package/src/components/Toast/types/index.ts +46 -46
  41. package/src/components/Tooltip/index.tsx +66 -66
  42. package/src/components/Tooltip/styles.ts +77 -77
  43. package/src/hooks/useOnClickOutside.tsx +20 -20
  44. package/src/index.tsx +33 -33
  45. package/src/styles/index.ts +38 -38
  46. package/src/types/typographyValues.ts +178 -178
  47. 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
  }
@@ -1,19 +1,18 @@
1
-
2
-
3
- > @lets-events/react@10.1.1 build
4
- > tsup src/index.tsx --format esm,cjs --dts --external react
5
-
6
- CLI Building entry: src/index.tsx
7
- CLI Using tsconfig: tsconfig.json
8
- CLI tsup v8.4.0
9
- CLI Target: es6
10
- ESM Build start
11
- CJS Build start
12
- CJS dist/index.js 283.08 KB
13
- CJS ⚡️ Build success in 11472ms
14
- ESM dist/index.mjs 274.71 KB
15
- ESM ⚡️ Build success in 11473ms
16
- DTS Build start
17
- DTS ⚡️ Build success in -4645ms
18
- DTS dist/index.d.mts 338.38 KB
19
- DTS dist/index.d.ts 338.38 KB
1
+
2
+ > @lets-events/react@11.0.0 build
3
+ > tsup src/index.tsx --format esm,cjs --dts --external react
4
+
5
+ CLI Building entry: src/index.tsx
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.4.0
8
+ CLI Target: es6
9
+ ESM Build start
10
+ CJS Build start
11
+ ESM dist\index.mjs 275.49 KB
12
+ ESM ⚡️ Build success in 209ms
13
+ CJS dist\index.js 283.94 KB
14
+ CJS ⚡️ Build success in 209ms
15
+ DTS Build start
16
+ DTS ⚡️ Build success in 3499ms
17
+ DTS dist\index.d.mts 347.68 KB
18
+ DTS dist\index.d.ts 347.68 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @lets-events/react
2
2
 
3
+ ## 11.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - Fix Button Sizes & Text Color
8
+
3
9
  ## 10.1.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -8,7 +8,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
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
- import { CSS } from '@stitches/react';
11
+ import { Colors } from '@lets-events/tokens';
12
12
  import { MaskOptions, format, unformat } from '@react-input/mask';
13
13
  import { Dialog } from 'radix-ui';
14
14
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
@@ -402,17 +402,17 @@ declare const TextStyle: _stitches_react_types_styled_component.StyledComponent<
402
402
  transition: "transitions";
403
403
  zIndex: "zIndices";
404
404
  }, {}>>;
405
- type TextProps = ComponentProps<typeof TextStyle> & {
405
+ type TextProps = Omit<ComponentProps<typeof TextStyle>, "color"> & {
406
406
  as?: ElementType;
407
407
  asChild?: boolean;
408
- css?: CSS;
408
+ color?: keyof Colors;
409
409
  };
410
- declare function Text({ ...props }: TextProps): react_jsx_runtime.JSX.Element;
410
+ declare function Text({ color, ...props }: TextProps): react_jsx_runtime.JSX.Element;
411
411
 
412
412
  declare const ButtonStyled: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<_radix_ui_themes.ButtonProps & react.RefAttributes<HTMLButtonElement>>, {
413
413
  color?: "info" | "warning" | "purple" | "white" | "brand" | "error" | "success" | "neutral" | undefined;
414
414
  variant?: "text" | "contained" | "outlined" | undefined;
415
- typography?: "buttonLarge" | "buttonMedium" | "buttonSmall" | "buttonExtraSmall" | undefined;
415
+ size?: "medium" | "small" | "large" | "extraSmall" | undefined;
416
416
  fontWeight?: "bold" | "medium" | "regular" | "semibold" | undefined;
417
417
  outlinedBgColor?: "transparent" | "neutral" | undefined;
418
418
  radii?: "full" | undefined;
@@ -6506,6 +6506,376 @@ declare const InputStyled: _stitches_react_types_styled_component.StyledComponen
6506
6506
  transition: "transitions";
6507
6507
  zIndex: "zIndices";
6508
6508
  }, {}>>;
6509
+ declare const TimePickerButtonStyled: _stitches_react_types_styled_component.StyledComponent<"button", {}, {}, _stitches_react_types_css_util.CSS<{}, {
6510
+ colors: {
6511
+ brand50: string;
6512
+ brand100: string;
6513
+ brand200: string;
6514
+ brand300: string;
6515
+ brand400: string;
6516
+ brand500: string;
6517
+ brand600: string;
6518
+ brand700: string;
6519
+ brand800: string;
6520
+ brand900: string;
6521
+ brand950: string;
6522
+ blue50: string;
6523
+ blue100: string;
6524
+ blue200: string;
6525
+ blue300: string;
6526
+ blue400: string;
6527
+ blue500: string;
6528
+ blue600: string;
6529
+ blue700: string;
6530
+ blue800: string;
6531
+ blue900: string;
6532
+ blue950: string;
6533
+ red50: string;
6534
+ red100: string;
6535
+ red200: string;
6536
+ red300: string;
6537
+ red400: string;
6538
+ red500: string;
6539
+ red600: string;
6540
+ red700: string;
6541
+ red800: string;
6542
+ red900: string;
6543
+ red950: string;
6544
+ purple50: string;
6545
+ purple100: string;
6546
+ purple200: string;
6547
+ purple300: string;
6548
+ purple400: string;
6549
+ purple500: string;
6550
+ purple600: string;
6551
+ purple700: string;
6552
+ purple800: string;
6553
+ purple900: string;
6554
+ purple950: string;
6555
+ yellow50: string;
6556
+ yellow100: string;
6557
+ yellow200: string;
6558
+ yellow300: string;
6559
+ yellow400: string;
6560
+ yellow500: string;
6561
+ yellow600: string;
6562
+ yellow700: string;
6563
+ yellow800: string;
6564
+ yellow900: string;
6565
+ yellow950: string;
6566
+ dark50: string;
6567
+ dark100: string;
6568
+ dark200: string;
6569
+ dark300: string;
6570
+ dark400: string;
6571
+ dark500: string;
6572
+ dark600: string;
6573
+ dark700: string;
6574
+ dark800: string;
6575
+ dark900: string;
6576
+ dark950: string;
6577
+ neutral50: string;
6578
+ neutral100: string;
6579
+ neutral200: string;
6580
+ neutral300: string;
6581
+ neutral400: string;
6582
+ neutral500: string;
6583
+ neutral600: string;
6584
+ neutral700: string;
6585
+ neutral800: string;
6586
+ neutral900: string;
6587
+ neutral950: string;
6588
+ green50: string;
6589
+ green100: string;
6590
+ green200: string;
6591
+ green300: string;
6592
+ green400: string;
6593
+ green500: string;
6594
+ green600: string;
6595
+ green700: string;
6596
+ green800: string;
6597
+ green900: string;
6598
+ green950: string;
6599
+ grey50: string;
6600
+ grey100: string;
6601
+ grey200: string;
6602
+ grey300: string;
6603
+ grey400: string;
6604
+ grey500: string;
6605
+ grey600: string;
6606
+ grey700: string;
6607
+ grey800: string;
6608
+ grey900: string;
6609
+ grey950: string;
6610
+ error50: string;
6611
+ error100: string;
6612
+ error200: string;
6613
+ error300: string;
6614
+ error400: string;
6615
+ error500: string;
6616
+ error600: string;
6617
+ error700: string;
6618
+ error800: string;
6619
+ error900: string;
6620
+ error950: string;
6621
+ success50: string;
6622
+ success100: string;
6623
+ success200: string;
6624
+ success300: string;
6625
+ success400: string;
6626
+ success500: string;
6627
+ success600: string;
6628
+ success700: string;
6629
+ success800: string;
6630
+ success900: string;
6631
+ success950: string;
6632
+ warning50: string;
6633
+ warning100: string;
6634
+ warning200: string;
6635
+ warning300: string;
6636
+ warning400: string;
6637
+ warning500: string;
6638
+ warning600: string;
6639
+ warning700: string;
6640
+ warning800: string;
6641
+ warning900: string;
6642
+ warning950: string;
6643
+ info50: string;
6644
+ info100: string;
6645
+ info200: string;
6646
+ info300: string;
6647
+ info400: string;
6648
+ info500: string;
6649
+ info600: string;
6650
+ info700: string;
6651
+ info800: string;
6652
+ info900: string;
6653
+ info950: string;
6654
+ };
6655
+ fontSizes: {
6656
+ 2: string;
6657
+ 4: string;
6658
+ 6: string;
6659
+ 8: string;
6660
+ 10: string;
6661
+ 12: string;
6662
+ 13: string;
6663
+ 14: string;
6664
+ 16: string;
6665
+ 18: string;
6666
+ 20: string;
6667
+ 22: string;
6668
+ 24: string;
6669
+ 32: string;
6670
+ 36: string;
6671
+ 40: string;
6672
+ 48: string;
6673
+ 56: string;
6674
+ 64: string;
6675
+ 72: string;
6676
+ 80: string;
6677
+ xs: string;
6678
+ sm: string;
6679
+ md: string;
6680
+ lg: string;
6681
+ '2xl': string;
6682
+ '3xl': string;
6683
+ '4xl': string;
6684
+ full: string;
6685
+ };
6686
+ fonts: {
6687
+ default: string;
6688
+ };
6689
+ fontWeights: {
6690
+ regular: string;
6691
+ medium: string;
6692
+ semibold: string;
6693
+ bold: string;
6694
+ };
6695
+ lineHeights: {
6696
+ smaller: string;
6697
+ shorter: string;
6698
+ short: string;
6699
+ base: string;
6700
+ tall: string;
6701
+ };
6702
+ radii: {
6703
+ '3xs': string;
6704
+ '2xs': string;
6705
+ xs: string;
6706
+ sm: string;
6707
+ md: string;
6708
+ lg: string;
6709
+ xl: string;
6710
+ '2xl': string;
6711
+ '3xl': string;
6712
+ '4xl': string;
6713
+ '5xl': string;
6714
+ '6xl': string;
6715
+ '7xl': string;
6716
+ '8xl': string;
6717
+ '9xl': string;
6718
+ '10xl': string;
6719
+ '11xl': string;
6720
+ '12xl': string;
6721
+ '13xl': string;
6722
+ '14xl': string;
6723
+ full: string;
6724
+ };
6725
+ space: {
6726
+ 2: string;
6727
+ 4: string;
6728
+ 6: string;
6729
+ 8: string;
6730
+ 10: string;
6731
+ 12: string;
6732
+ 13: string;
6733
+ 14: string;
6734
+ 16: string;
6735
+ 18: string;
6736
+ 20: string;
6737
+ 22: string;
6738
+ 24: string;
6739
+ 32: string;
6740
+ 36: string;
6741
+ 40: string;
6742
+ 48: string;
6743
+ 56: string;
6744
+ 64: string;
6745
+ 72: string;
6746
+ 80: string;
6747
+ full: string;
6748
+ };
6749
+ }, {
6750
+ height: "space";
6751
+ width: "space";
6752
+ gap: "space";
6753
+ gridGap: "space";
6754
+ columnGap: "space";
6755
+ gridColumnGap: "space";
6756
+ rowGap: "space";
6757
+ gridRowGap: "space";
6758
+ inset: "space";
6759
+ insetBlock: "space";
6760
+ insetBlockEnd: "space";
6761
+ insetBlockStart: "space";
6762
+ insetInline: "space";
6763
+ insetInlineEnd: "space";
6764
+ insetInlineStart: "space";
6765
+ margin: "space";
6766
+ marginTop: "space";
6767
+ marginRight: "space";
6768
+ marginBottom: "space";
6769
+ marginLeft: "space";
6770
+ marginBlock: "space";
6771
+ marginBlockEnd: "space";
6772
+ marginBlockStart: "space";
6773
+ marginInline: "space";
6774
+ marginInlineEnd: "space";
6775
+ marginInlineStart: "space";
6776
+ padding: "space";
6777
+ paddingTop: "space";
6778
+ paddingRight: "space";
6779
+ paddingBottom: "space";
6780
+ paddingLeft: "space";
6781
+ paddingBlock: "space";
6782
+ paddingBlockEnd: "space";
6783
+ paddingBlockStart: "space";
6784
+ paddingInline: "space";
6785
+ paddingInlineEnd: "space";
6786
+ paddingInlineStart: "space";
6787
+ scrollMargin: "space";
6788
+ scrollMarginTop: "space";
6789
+ scrollMarginRight: "space";
6790
+ scrollMarginBottom: "space";
6791
+ scrollMarginLeft: "space";
6792
+ scrollMarginBlock: "space";
6793
+ scrollMarginBlockEnd: "space";
6794
+ scrollMarginBlockStart: "space";
6795
+ scrollMarginInline: "space";
6796
+ scrollMarginInlineEnd: "space";
6797
+ scrollMarginInlineStart: "space";
6798
+ scrollPadding: "space";
6799
+ scrollPaddingTop: "space";
6800
+ scrollPaddingRight: "space";
6801
+ scrollPaddingBottom: "space";
6802
+ scrollPaddingLeft: "space";
6803
+ scrollPaddingBlock: "space";
6804
+ scrollPaddingBlockEnd: "space";
6805
+ scrollPaddingBlockStart: "space";
6806
+ scrollPaddingInline: "space";
6807
+ scrollPaddingInlineEnd: "space";
6808
+ scrollPaddingInlineStart: "space";
6809
+ top: "space";
6810
+ right: "space";
6811
+ bottom: "space";
6812
+ left: "space";
6813
+ fontSize: "fontSizes";
6814
+ background: "colors";
6815
+ backgroundColor: "colors";
6816
+ backgroundImage: "colors";
6817
+ borderImage: "colors";
6818
+ border: "colors";
6819
+ borderBlock: "colors";
6820
+ borderBlockEnd: "colors";
6821
+ borderBlockStart: "colors";
6822
+ borderBottom: "colors";
6823
+ borderBottomColor: "colors";
6824
+ borderColor: "colors";
6825
+ borderInline: "colors";
6826
+ borderInlineEnd: "colors";
6827
+ borderInlineStart: "colors";
6828
+ borderLeft: "colors";
6829
+ borderLeftColor: "colors";
6830
+ borderRight: "colors";
6831
+ borderRightColor: "colors";
6832
+ borderTop: "colors";
6833
+ borderTopColor: "colors";
6834
+ caretColor: "colors";
6835
+ color: "colors";
6836
+ columnRuleColor: "colors";
6837
+ outline: "colors";
6838
+ outlineColor: "colors";
6839
+ fill: "colors";
6840
+ stroke: "colors";
6841
+ textDecorationColor: "colors";
6842
+ fontFamily: "fonts";
6843
+ fontWeight: "fontWeights";
6844
+ lineHeight: "lineHeights";
6845
+ letterSpacing: "letterSpacings";
6846
+ blockSize: "sizes";
6847
+ minBlockSize: "sizes";
6848
+ maxBlockSize: "sizes";
6849
+ inlineSize: "sizes";
6850
+ minInlineSize: "sizes";
6851
+ maxInlineSize: "sizes";
6852
+ minWidth: "sizes";
6853
+ maxWidth: "sizes";
6854
+ minHeight: "sizes";
6855
+ maxHeight: "sizes";
6856
+ flexBasis: "sizes";
6857
+ gridTemplateColumns: "sizes";
6858
+ gridTemplateRows: "sizes";
6859
+ borderWidth: "borderWidths";
6860
+ borderTopWidth: "borderWidths";
6861
+ borderLeftWidth: "borderWidths";
6862
+ borderRightWidth: "borderWidths";
6863
+ borderBottomWidth: "borderWidths";
6864
+ borderStyle: "borderStyles";
6865
+ borderTopStyle: "borderStyles";
6866
+ borderLeftStyle: "borderStyles";
6867
+ borderRightStyle: "borderStyles";
6868
+ borderBottomStyle: "borderStyles";
6869
+ borderRadius: "radii";
6870
+ borderTopLeftRadius: "radii";
6871
+ borderTopRightRadius: "radii";
6872
+ borderBottomRightRadius: "radii";
6873
+ borderBottomLeftRadius: "radii";
6874
+ boxShadow: "shadows";
6875
+ textShadow: "shadows";
6876
+ transition: "transitions";
6877
+ zIndex: "zIndices";
6878
+ }, {}>>;
6509
6879
  type TimePickerProps = {
6510
6880
  selected: string | undefined;
6511
6881
  setSelected: react__default.Dispatch<react__default.SetStateAction<string | undefined>>;
@@ -12980,4 +13350,4 @@ type SectionProps = ComponentProps<typeof SectionStyled> & {
12980
13350
  };
12981
13351
  declare function Section({ children, ...props }: SectionProps): react_jsx_runtime.JSX.Element;
12982
13352
 
12983
- 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, Card, CardContainer, type CardProps, CardStyled, 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, InputStyled, Modal, type ModalProps, 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, type Toast, type ToastComponentProps, type ToastConfig, type ToastContextType, ToastItem, type ToastOptions, ToastProvider, type ToastProviderProps, type ToastType, type ToasterShowOptions, Tooltip, TooltipContent, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, maskFormat, maskUnformat, useToast };
13353
+ 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, Card, CardContainer, type CardProps, CardStyled, 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, InputStyled, Modal, type ModalProps, 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, TimePickerButtonStyled, TimePickerDropdownStyled, TimePickerFooterStyled, type TimePickerProps, TimePickerStyled, TimerPickerContentStyled, type Toast, type ToastComponentProps, type ToastConfig, type ToastContextType, ToastItem, type ToastOptions, ToastProvider, type ToastProviderProps, type ToastType, type ToasterShowOptions, Tooltip, TooltipContent, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, maskFormat, maskUnformat, useToast };