@lets-events/react 10.0.0 → 10.1.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 +20 -18
  3. package/CHANGELOG.md +12 -0
  4. package/dist/index.d.mts +426 -1
  5. package/dist/index.d.ts +426 -1
  6. package/dist/index.js +289 -10
  7. package/dist/index.mjs +280 -9
  8. package/package.json +3 -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 +250 -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 +208 -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 -88
  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 +30 -30
  32. package/src/components/TextField.tsx +299 -299
  33. package/src/components/TextareaField.tsx +101 -101
  34. package/src/components/TimePicker.tsx +239 -239
  35. package/src/components/Toast/components/ToastItem.tsx +41 -0
  36. package/src/components/Toast/components/ToastProvider.tsx +63 -0
  37. package/src/components/Toast/hooks/useToast.ts +12 -0
  38. package/src/components/Toast/index.tsx +5 -0
  39. package/src/components/Toast/styles/index.ts +135 -0
  40. package/src/components/Toast/types/index.ts +46 -0
  41. package/src/components/Tooltip/index.tsx +67 -0
  42. package/src/components/Tooltip/styles.ts +78 -0
  43. package/src/hooks/useOnClickOutside.tsx +20 -20
  44. package/src/index.tsx +33 -31
  45. package/src/styles/index.ts +38 -38
  46. package/src/types/typographyValues.ts +178 -178
  47. package/tsconfig.json +3 -3
package/dist/index.d.ts CHANGED
@@ -11,6 +11,7 @@ import { TextField as TextField$1, RadioGroup as RadioGroup$1, CheckboxGroup as
11
11
  import { CSS } from '@stitches/react';
12
12
  import { MaskOptions, format, unformat } from '@react-input/mask';
13
13
  import { Dialog } from 'radix-ui';
14
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
14
15
 
15
16
  interface IconProps extends Omit<FontAwesomeIconProps, "icon" | "size"> {
16
17
  name: IconName;
@@ -11023,6 +11024,430 @@ type TextareaFieldProps = ComponentProps<typeof TextareaFieldStyle> & {
11023
11024
  };
11024
11025
  declare function TextareaField({ maxLength, ...props }: TextareaFieldProps): react_jsx_runtime.JSX.Element;
11025
11026
 
11027
+ type ToastType = 'success' | 'error' | 'warning' | 'info';
11028
+ interface ToastConfig {
11029
+ icon: string;
11030
+ }
11031
+ interface ToastOptions {
11032
+ type?: ToastType;
11033
+ title?: string;
11034
+ duration?: number;
11035
+ }
11036
+ interface Toast {
11037
+ id: string;
11038
+ message: string;
11039
+ icon?: IconName;
11040
+ type?: ToastType;
11041
+ duration?: number;
11042
+ createdAt: number;
11043
+ }
11044
+ interface ToastContextType {
11045
+ toasts: Toast[];
11046
+ addToast: (toast: Omit<Toast, 'id' | 'createdAt'>) => string;
11047
+ removeToast: (id: string) => void;
11048
+ removeAllToasts: () => void;
11049
+ }
11050
+ interface ToastProviderProps {
11051
+ children: ReactNode;
11052
+ defaultDuration?: number;
11053
+ maxToasts?: number;
11054
+ swipeDirection?: 'right' | 'left' | 'up' | 'down';
11055
+ }
11056
+ interface ToastComponentProps {
11057
+ toast: Toast;
11058
+ onRemove: (id: string) => void;
11059
+ }
11060
+ interface ToasterShowOptions extends ToastOptions {
11061
+ onClose?: () => void;
11062
+ }
11063
+
11064
+ declare function ToastItem({ toast, onRemove, }: ToastComponentProps): react_jsx_runtime.JSX.Element;
11065
+
11066
+ declare function ToastProvider({ children, defaultDuration, maxToasts, swipeDirection, }: ToastProviderProps): react_jsx_runtime.JSX.Element;
11067
+
11068
+ declare const useToast: () => ToastContextType;
11069
+
11070
+ declare const TooltipProvider: react.FC<TooltipPrimitive.TooltipProviderProps>;
11071
+ declare const TooltipRoot: react.FC<TooltipPrimitive.TooltipProps>;
11072
+ declare const TooltipTrigger: react.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & react.RefAttributes<HTMLButtonElement>>;
11073
+ declare const TooltipContent: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<TooltipPrimitive.TooltipContentProps & react.RefAttributes<HTMLDivElement>>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
11074
+ colors: {
11075
+ brand50: string;
11076
+ brand100: string;
11077
+ brand200: string;
11078
+ brand300: string;
11079
+ brand400: string;
11080
+ brand500: string;
11081
+ brand600: string;
11082
+ brand700: string;
11083
+ brand800: string;
11084
+ brand900: string;
11085
+ brand950: string;
11086
+ blue50: string;
11087
+ blue100: string;
11088
+ blue200: string;
11089
+ blue300: string;
11090
+ blue400: string;
11091
+ blue500: string;
11092
+ blue600: string;
11093
+ blue700: string;
11094
+ blue800: string;
11095
+ blue900: string;
11096
+ blue950: string;
11097
+ red50: string;
11098
+ red100: string;
11099
+ red200: string;
11100
+ red300: string;
11101
+ red400: string;
11102
+ red500: string;
11103
+ red600: string;
11104
+ red700: string;
11105
+ red800: string;
11106
+ red900: string;
11107
+ red950: string;
11108
+ purple50: string;
11109
+ purple100: string;
11110
+ purple200: string;
11111
+ purple300: string;
11112
+ purple400: string;
11113
+ purple500: string;
11114
+ purple600: string;
11115
+ purple700: string;
11116
+ purple800: string;
11117
+ purple900: string;
11118
+ purple950: string;
11119
+ yellow50: string;
11120
+ yellow100: string;
11121
+ yellow200: string;
11122
+ yellow300: string;
11123
+ yellow400: string;
11124
+ yellow500: string;
11125
+ yellow600: string;
11126
+ yellow700: string;
11127
+ yellow800: string;
11128
+ yellow900: string;
11129
+ yellow950: string;
11130
+ dark50: string;
11131
+ dark100: string;
11132
+ dark200: string;
11133
+ dark300: string;
11134
+ dark400: string;
11135
+ dark500: string;
11136
+ dark600: string;
11137
+ dark700: string;
11138
+ dark800: string;
11139
+ dark900: string;
11140
+ dark950: string;
11141
+ neutral50: string;
11142
+ neutral100: string;
11143
+ neutral200: string;
11144
+ neutral300: string;
11145
+ neutral400: string;
11146
+ neutral500: string;
11147
+ neutral600: string;
11148
+ neutral700: string;
11149
+ neutral800: string;
11150
+ neutral900: string;
11151
+ neutral950: string;
11152
+ green50: string;
11153
+ green100: string;
11154
+ green200: string;
11155
+ green300: string;
11156
+ green400: string;
11157
+ green500: string;
11158
+ green600: string;
11159
+ green700: string;
11160
+ green800: string;
11161
+ green900: string;
11162
+ green950: string;
11163
+ grey50: string;
11164
+ grey100: string;
11165
+ grey200: string;
11166
+ grey300: string;
11167
+ grey400: string;
11168
+ grey500: string;
11169
+ grey600: string;
11170
+ grey700: string;
11171
+ grey800: string;
11172
+ grey900: string;
11173
+ grey950: string;
11174
+ error50: string;
11175
+ error100: string;
11176
+ error200: string;
11177
+ error300: string;
11178
+ error400: string;
11179
+ error500: string;
11180
+ error600: string;
11181
+ error700: string;
11182
+ error800: string;
11183
+ error900: string;
11184
+ error950: string;
11185
+ success50: string;
11186
+ success100: string;
11187
+ success200: string;
11188
+ success300: string;
11189
+ success400: string;
11190
+ success500: string;
11191
+ success600: string;
11192
+ success700: string;
11193
+ success800: string;
11194
+ success900: string;
11195
+ success950: string;
11196
+ warning50: string;
11197
+ warning100: string;
11198
+ warning200: string;
11199
+ warning300: string;
11200
+ warning400: string;
11201
+ warning500: string;
11202
+ warning600: string;
11203
+ warning700: string;
11204
+ warning800: string;
11205
+ warning900: string;
11206
+ warning950: string;
11207
+ info50: string;
11208
+ info100: string;
11209
+ info200: string;
11210
+ info300: string;
11211
+ info400: string;
11212
+ info500: string;
11213
+ info600: string;
11214
+ info700: string;
11215
+ info800: string;
11216
+ info900: string;
11217
+ info950: string;
11218
+ };
11219
+ fontSizes: {
11220
+ 2: string;
11221
+ 4: string;
11222
+ 6: string;
11223
+ 8: string;
11224
+ 10: string;
11225
+ 12: string;
11226
+ 13: string;
11227
+ 14: string;
11228
+ 16: string;
11229
+ 18: string;
11230
+ 20: string;
11231
+ 22: string;
11232
+ 24: string;
11233
+ 32: string;
11234
+ 36: string;
11235
+ 40: string;
11236
+ 48: string;
11237
+ 56: string;
11238
+ 64: string;
11239
+ 72: string;
11240
+ 80: string;
11241
+ xs: string;
11242
+ sm: string;
11243
+ md: string;
11244
+ lg: string;
11245
+ '2xl': string;
11246
+ '3xl': string;
11247
+ '4xl': string;
11248
+ full: string;
11249
+ };
11250
+ fonts: {
11251
+ default: string;
11252
+ };
11253
+ fontWeights: {
11254
+ regular: string;
11255
+ medium: string;
11256
+ semibold: string;
11257
+ bold: string;
11258
+ };
11259
+ lineHeights: {
11260
+ smaller: string;
11261
+ shorter: string;
11262
+ short: string;
11263
+ base: string;
11264
+ tall: string;
11265
+ };
11266
+ radii: {
11267
+ '3xs': string;
11268
+ '2xs': string;
11269
+ xs: string;
11270
+ sm: string;
11271
+ md: string;
11272
+ lg: string;
11273
+ xl: string;
11274
+ '2xl': string;
11275
+ '3xl': string;
11276
+ '4xl': string;
11277
+ '5xl': string;
11278
+ '6xl': string;
11279
+ '7xl': string;
11280
+ '8xl': string;
11281
+ '9xl': string;
11282
+ '10xl': string;
11283
+ '11xl': string;
11284
+ '12xl': string;
11285
+ '13xl': string;
11286
+ '14xl': string;
11287
+ full: string;
11288
+ };
11289
+ space: {
11290
+ 2: string;
11291
+ 4: string;
11292
+ 6: string;
11293
+ 8: string;
11294
+ 10: string;
11295
+ 12: string;
11296
+ 13: string;
11297
+ 14: string;
11298
+ 16: string;
11299
+ 18: string;
11300
+ 20: string;
11301
+ 22: string;
11302
+ 24: string;
11303
+ 32: string;
11304
+ 36: string;
11305
+ 40: string;
11306
+ 48: string;
11307
+ 56: string;
11308
+ 64: string;
11309
+ 72: string;
11310
+ 80: string;
11311
+ full: string;
11312
+ };
11313
+ }, {
11314
+ height: "space";
11315
+ width: "space";
11316
+ gap: "space";
11317
+ gridGap: "space";
11318
+ columnGap: "space";
11319
+ gridColumnGap: "space";
11320
+ rowGap: "space";
11321
+ gridRowGap: "space";
11322
+ inset: "space";
11323
+ insetBlock: "space";
11324
+ insetBlockEnd: "space";
11325
+ insetBlockStart: "space";
11326
+ insetInline: "space";
11327
+ insetInlineEnd: "space";
11328
+ insetInlineStart: "space";
11329
+ margin: "space";
11330
+ marginTop: "space";
11331
+ marginRight: "space";
11332
+ marginBottom: "space";
11333
+ marginLeft: "space";
11334
+ marginBlock: "space";
11335
+ marginBlockEnd: "space";
11336
+ marginBlockStart: "space";
11337
+ marginInline: "space";
11338
+ marginInlineEnd: "space";
11339
+ marginInlineStart: "space";
11340
+ padding: "space";
11341
+ paddingTop: "space";
11342
+ paddingRight: "space";
11343
+ paddingBottom: "space";
11344
+ paddingLeft: "space";
11345
+ paddingBlock: "space";
11346
+ paddingBlockEnd: "space";
11347
+ paddingBlockStart: "space";
11348
+ paddingInline: "space";
11349
+ paddingInlineEnd: "space";
11350
+ paddingInlineStart: "space";
11351
+ scrollMargin: "space";
11352
+ scrollMarginTop: "space";
11353
+ scrollMarginRight: "space";
11354
+ scrollMarginBottom: "space";
11355
+ scrollMarginLeft: "space";
11356
+ scrollMarginBlock: "space";
11357
+ scrollMarginBlockEnd: "space";
11358
+ scrollMarginBlockStart: "space";
11359
+ scrollMarginInline: "space";
11360
+ scrollMarginInlineEnd: "space";
11361
+ scrollMarginInlineStart: "space";
11362
+ scrollPadding: "space";
11363
+ scrollPaddingTop: "space";
11364
+ scrollPaddingRight: "space";
11365
+ scrollPaddingBottom: "space";
11366
+ scrollPaddingLeft: "space";
11367
+ scrollPaddingBlock: "space";
11368
+ scrollPaddingBlockEnd: "space";
11369
+ scrollPaddingBlockStart: "space";
11370
+ scrollPaddingInline: "space";
11371
+ scrollPaddingInlineEnd: "space";
11372
+ scrollPaddingInlineStart: "space";
11373
+ top: "space";
11374
+ right: "space";
11375
+ bottom: "space";
11376
+ left: "space";
11377
+ fontSize: "fontSizes";
11378
+ background: "colors";
11379
+ backgroundColor: "colors";
11380
+ backgroundImage: "colors";
11381
+ borderImage: "colors";
11382
+ border: "colors";
11383
+ borderBlock: "colors";
11384
+ borderBlockEnd: "colors";
11385
+ borderBlockStart: "colors";
11386
+ borderBottom: "colors";
11387
+ borderBottomColor: "colors";
11388
+ borderColor: "colors";
11389
+ borderInline: "colors";
11390
+ borderInlineEnd: "colors";
11391
+ borderInlineStart: "colors";
11392
+ borderLeft: "colors";
11393
+ borderLeftColor: "colors";
11394
+ borderRight: "colors";
11395
+ borderRightColor: "colors";
11396
+ borderTop: "colors";
11397
+ borderTopColor: "colors";
11398
+ caretColor: "colors";
11399
+ color: "colors";
11400
+ columnRuleColor: "colors";
11401
+ outline: "colors";
11402
+ outlineColor: "colors";
11403
+ fill: "colors";
11404
+ stroke: "colors";
11405
+ textDecorationColor: "colors";
11406
+ fontFamily: "fonts";
11407
+ fontWeight: "fontWeights";
11408
+ lineHeight: "lineHeights";
11409
+ letterSpacing: "letterSpacings";
11410
+ blockSize: "sizes";
11411
+ minBlockSize: "sizes";
11412
+ maxBlockSize: "sizes";
11413
+ inlineSize: "sizes";
11414
+ minInlineSize: "sizes";
11415
+ maxInlineSize: "sizes";
11416
+ minWidth: "sizes";
11417
+ maxWidth: "sizes";
11418
+ minHeight: "sizes";
11419
+ maxHeight: "sizes";
11420
+ flexBasis: "sizes";
11421
+ gridTemplateColumns: "sizes";
11422
+ gridTemplateRows: "sizes";
11423
+ borderWidth: "borderWidths";
11424
+ borderTopWidth: "borderWidths";
11425
+ borderLeftWidth: "borderWidths";
11426
+ borderRightWidth: "borderWidths";
11427
+ borderBottomWidth: "borderWidths";
11428
+ borderStyle: "borderStyles";
11429
+ borderTopStyle: "borderStyles";
11430
+ borderLeftStyle: "borderStyles";
11431
+ borderRightStyle: "borderStyles";
11432
+ borderBottomStyle: "borderStyles";
11433
+ borderRadius: "radii";
11434
+ borderTopLeftRadius: "radii";
11435
+ borderTopRightRadius: "radii";
11436
+ borderBottomRightRadius: "radii";
11437
+ borderBottomLeftRadius: "radii";
11438
+ boxShadow: "shadows";
11439
+ textShadow: "shadows";
11440
+ transition: "transitions";
11441
+ zIndex: "zIndices";
11442
+ }, {}>>;
11443
+ interface TooltipProps {
11444
+ children: react.ReactNode;
11445
+ content: react.ReactNode;
11446
+ delayDuration?: number;
11447
+ side?: 'top' | 'right' | 'bottom' | 'left';
11448
+ }
11449
+ declare function Tooltip({ children, content, delayDuration, side, }: TooltipProps): react_jsx_runtime.JSX.Element;
11450
+
11026
11451
  declare const FlexStyled: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<_radix_ui_themes.FlexProps & react.RefAttributes<HTMLDivElement>>, {
11027
11452
  display?: "flex" | "inline-flex" | undefined;
11028
11453
  align?: "end" | "stretch" | "center" | "start" | "baseline" | undefined;
@@ -12555,4 +12980,4 @@ type SectionProps = ComponentProps<typeof SectionStyled> & {
12555
12980
  };
12556
12981
  declare function Section({ children, ...props }: SectionProps): react_jsx_runtime.JSX.Element;
12557
12982
 
12558
- 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, maskFormat, maskUnformat };
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 };