@lets-events/react 12.2.10 → 12.2.12
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 +19 -21
- package/CHANGELOG.md +12 -0
- package/dist/index.css +171 -0
- package/dist/index.d.mts +377 -3
- package/dist/index.d.ts +377 -3
- package/dist/index.js +73 -27
- package/dist/index.mjs +72 -27
- 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 +300 -300
- package/src/components/ButtonGroup.tsx +484 -484
- package/src/components/Calendar/index.tsx +148 -148
- package/src/components/Calendar/styledComponents.ts +250 -250
- package/src/components/Card.tsx +48 -48
- package/src/components/CheckboxGroup.tsx +176 -176
- package/src/components/Container.tsx +39 -39
- package/src/components/Divider.tsx +7 -0
- package/src/components/Drawer/index.tsx +148 -138
- package/src/components/Drawer/styledComponents.ts +52 -52
- package/src/components/Dropdown.tsx +302 -302
- package/src/components/Filter.tsx +164 -164
- package/src/components/Flex.tsx +118 -118
- package/src/components/FormFields/AddressFormFields/CityFormField.tsx +111 -111
- package/src/components/FormFields/AddressFormFields/CountryFormField.tsx +33 -33
- package/src/components/FormFields/AddressFormFields/PostalCodeFormField.tsx +39 -39
- package/src/components/FormFields/AddressFormFields/StateFormField.tsx +32 -32
- package/src/components/FormFields/AddressFormFields/index.tsx +141 -141
- package/src/components/FormFields/BirthDateFormField.tsx +84 -84
- package/src/components/FormFields/CNPJFormField.tsx +87 -87
- package/src/components/FormFields/CPFFormField.tsx +78 -78
- package/src/components/FormFields/CalendarFormField.tsx +95 -95
- package/src/components/FormFields/CheckboxGroupFormField.tsx +91 -91
- package/src/components/FormFields/EmailFormField.tsx +27 -27
- package/src/components/FormFields/Form.tsx +39 -39
- package/src/components/FormFields/IdentityDocumentNumberFormField.tsx +32 -32
- package/src/components/FormFields/MultiSelectFormField.tsx +64 -64
- package/src/components/FormFields/PhoneFormField.tsx +40 -40
- package/src/components/FormFields/RadioGroupFormField.tsx +84 -84
- package/src/components/FormFields/RichEditorFormField.tsx +103 -103
- package/src/components/FormFields/SelectFormField.tsx +93 -93
- package/src/components/FormFields/SwitchFormField.tsx +46 -46
- package/src/components/FormFields/TextAreaFormField.tsx +57 -57
- package/src/components/FormFields/TextFormField.tsx +112 -112
- package/src/components/FormFields/TimePickerFormField.tsx +88 -88
- package/src/components/FormFields/subComponents/ErrorFormMessage.tsx +36 -36
- package/src/components/FormFields/subComponents/FormLabel.tsx +29 -29
- package/src/components/FormFields/utils/validation.ts +23 -23
- package/src/components/Grid.tsx +137 -137
- package/src/components/Icon.tsx +47 -47
- package/src/components/MenuDropdown/index.tsx +38 -38
- package/src/components/MenuDropdown/styledComponents.ts +31 -31
- package/src/components/Modal.tsx +107 -90
- package/src/components/MultiSelect/index.tsx +243 -243
- package/src/components/MultiSelect/styledComponents.ts +160 -160
- package/src/components/RadioGroup.tsx +210 -210
- package/src/components/RichEditor/QuillComponent.tsx +457 -457
- package/src/components/RichEditor/RichEditor.tsx +49 -49
- package/src/components/RichEditor/index.ts +2 -2
- package/src/components/RichEditor/styledComponents.ts +1151 -1151
- 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 +372 -372
- package/src/components/TextareaField.tsx +127 -127
- package/src/components/TimePicker.tsx +328 -328
- 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/useCountries.ts +41 -41
- package/src/hooks/useImageUpload.ts +139 -139
- package/src/hooks/useOnClickOutside.tsx +42 -42
- package/src/index.tsx +69 -68
- package/src/styles/index.ts +38 -38
- package/src/types/typographyValues.ts +178 -178
- package/src/utils/getNestedValue.ts +3 -3
- package/src/utils/states.ts +29 -29
- package/src/utils/uploadService.ts +180 -180
- package/tsconfig.json +3 -3
- package/tsup.config.ts +38 -38
package/dist/index.d.ts
CHANGED
|
@@ -4280,8 +4280,10 @@ type ModalProps = ComponentProps<typeof Dialog.Root> & {
|
|
|
4280
4280
|
trigger?: React.ReactNode;
|
|
4281
4281
|
title?: string;
|
|
4282
4282
|
children: React.ReactNode;
|
|
4283
|
+
zIndex?: number;
|
|
4284
|
+
maxWidth?: number;
|
|
4283
4285
|
};
|
|
4284
|
-
declare function Modal({ children, title, trigger, ...props }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
4286
|
+
declare function Modal({ children, title, trigger, zIndex, maxWidth, ...props }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
4285
4287
|
|
|
4286
4288
|
type MenuDropdownProps = HTMLAttributes<HTMLDivElement> & {
|
|
4287
4289
|
children: ReactNode;
|
|
@@ -5057,8 +5059,9 @@ type DrawerProps = ComponentProps<typeof DrawerOverlayStyled> & {
|
|
|
5057
5059
|
children?: ReactNode;
|
|
5058
5060
|
goBackIcon?: ReactNode;
|
|
5059
5061
|
goBackAction?: () => void;
|
|
5062
|
+
zIndex?: number;
|
|
5060
5063
|
};
|
|
5061
|
-
declare function Drawer({ isOpen, onClose, width, backgroundColor, title, children, goBackIcon, goBackAction }: DrawerProps): react_jsx_runtime.JSX.Element | null;
|
|
5064
|
+
declare function Drawer({ isOpen, onClose, width, backgroundColor, title, children, goBackIcon, goBackAction, zIndex, }: DrawerProps): react_jsx_runtime.JSX.Element | null;
|
|
5062
5065
|
|
|
5063
5066
|
declare const TimePickerStyled: _stitches_react_types_styled_component.StyledComponent<"div", {
|
|
5064
5067
|
expand?: boolean | "true" | undefined;
|
|
@@ -13377,6 +13380,377 @@ type MultiSelectProps = ComponentProps<typeof StyledTrigger> & {
|
|
|
13377
13380
|
};
|
|
13378
13381
|
declare const MultiSelect: React__default.ForwardRefExoticComponent<Omit<MultiSelectProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
13379
13382
|
|
|
13383
|
+
declare const Divider: _stitches_react_types_styled_component.StyledComponent<"div", {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
13384
|
+
colors: {
|
|
13385
|
+
brand50: string;
|
|
13386
|
+
brand100: string;
|
|
13387
|
+
brand200: string;
|
|
13388
|
+
brand300: string;
|
|
13389
|
+
brand400: string;
|
|
13390
|
+
brand500: string;
|
|
13391
|
+
brand600: string;
|
|
13392
|
+
brand700: string;
|
|
13393
|
+
brand800: string;
|
|
13394
|
+
brand900: string;
|
|
13395
|
+
brand950: string;
|
|
13396
|
+
blue50: string;
|
|
13397
|
+
blue100: string;
|
|
13398
|
+
blue200: string;
|
|
13399
|
+
blue300: string;
|
|
13400
|
+
blue400: string;
|
|
13401
|
+
blue500: string;
|
|
13402
|
+
blue600: string;
|
|
13403
|
+
blue700: string;
|
|
13404
|
+
blue800: string;
|
|
13405
|
+
blue900: string;
|
|
13406
|
+
blue950: string;
|
|
13407
|
+
red50: string;
|
|
13408
|
+
red100: string;
|
|
13409
|
+
red200: string;
|
|
13410
|
+
red300: string;
|
|
13411
|
+
red400: string;
|
|
13412
|
+
red500: string;
|
|
13413
|
+
red600: string;
|
|
13414
|
+
red700: string;
|
|
13415
|
+
red800: string;
|
|
13416
|
+
red900: string;
|
|
13417
|
+
red950: string;
|
|
13418
|
+
purple50: string;
|
|
13419
|
+
purple100: string;
|
|
13420
|
+
purple200: string;
|
|
13421
|
+
purple300: string;
|
|
13422
|
+
purple400: string;
|
|
13423
|
+
purple500: string;
|
|
13424
|
+
purple600: string;
|
|
13425
|
+
purple700: string;
|
|
13426
|
+
purple800: string;
|
|
13427
|
+
purple900: string;
|
|
13428
|
+
purple950: string;
|
|
13429
|
+
yellow50: string;
|
|
13430
|
+
yellow100: string;
|
|
13431
|
+
yellow200: string;
|
|
13432
|
+
yellow300: string;
|
|
13433
|
+
yellow400: string;
|
|
13434
|
+
yellow500: string;
|
|
13435
|
+
yellow600: string;
|
|
13436
|
+
yellow700: string;
|
|
13437
|
+
yellow800: string;
|
|
13438
|
+
yellow900: string;
|
|
13439
|
+
yellow950: string;
|
|
13440
|
+
dark50: string;
|
|
13441
|
+
dark100: string;
|
|
13442
|
+
dark200: string;
|
|
13443
|
+
dark300: string;
|
|
13444
|
+
dark400: string;
|
|
13445
|
+
dark500: string;
|
|
13446
|
+
dark600: string;
|
|
13447
|
+
dark700: string;
|
|
13448
|
+
dark800: string;
|
|
13449
|
+
dark900: string;
|
|
13450
|
+
dark950: string;
|
|
13451
|
+
neutral50: string;
|
|
13452
|
+
neutral100: string;
|
|
13453
|
+
neutral200: string;
|
|
13454
|
+
neutral300: string;
|
|
13455
|
+
neutral400: string;
|
|
13456
|
+
neutral500: string;
|
|
13457
|
+
neutral600: string;
|
|
13458
|
+
neutral700: string;
|
|
13459
|
+
neutral800: string;
|
|
13460
|
+
neutral900: string;
|
|
13461
|
+
neutral950: string;
|
|
13462
|
+
green50: string;
|
|
13463
|
+
green100: string;
|
|
13464
|
+
green200: string;
|
|
13465
|
+
green300: string;
|
|
13466
|
+
green400: string;
|
|
13467
|
+
green500: string;
|
|
13468
|
+
green600: string;
|
|
13469
|
+
green700: string;
|
|
13470
|
+
green800: string;
|
|
13471
|
+
green900: string;
|
|
13472
|
+
green950: string;
|
|
13473
|
+
grey50: string;
|
|
13474
|
+
grey100: string;
|
|
13475
|
+
grey200: string;
|
|
13476
|
+
grey300: string;
|
|
13477
|
+
grey400: string;
|
|
13478
|
+
grey500: string;
|
|
13479
|
+
grey600: string;
|
|
13480
|
+
grey700: string;
|
|
13481
|
+
grey800: string;
|
|
13482
|
+
grey900: string;
|
|
13483
|
+
grey950: string;
|
|
13484
|
+
error50: string;
|
|
13485
|
+
error100: string;
|
|
13486
|
+
error200: string;
|
|
13487
|
+
error300: string;
|
|
13488
|
+
error400: string;
|
|
13489
|
+
error500: string;
|
|
13490
|
+
error600: string;
|
|
13491
|
+
error700: string;
|
|
13492
|
+
error800: string;
|
|
13493
|
+
error900: string;
|
|
13494
|
+
error950: string;
|
|
13495
|
+
success50: string;
|
|
13496
|
+
success100: string;
|
|
13497
|
+
success200: string;
|
|
13498
|
+
success300: string;
|
|
13499
|
+
success400: string;
|
|
13500
|
+
success500: string;
|
|
13501
|
+
success600: string;
|
|
13502
|
+
success700: string;
|
|
13503
|
+
success800: string;
|
|
13504
|
+
success900: string;
|
|
13505
|
+
success950: string;
|
|
13506
|
+
warning50: string;
|
|
13507
|
+
warning100: string;
|
|
13508
|
+
warning200: string;
|
|
13509
|
+
warning300: string;
|
|
13510
|
+
warning400: string;
|
|
13511
|
+
warning500: string;
|
|
13512
|
+
warning600: string;
|
|
13513
|
+
warning700: string;
|
|
13514
|
+
warning800: string;
|
|
13515
|
+
warning900: string;
|
|
13516
|
+
warning950: string;
|
|
13517
|
+
info50: string;
|
|
13518
|
+
info100: string;
|
|
13519
|
+
info200: string;
|
|
13520
|
+
info300: string;
|
|
13521
|
+
info400: string;
|
|
13522
|
+
info500: string;
|
|
13523
|
+
info600: string;
|
|
13524
|
+
info700: string;
|
|
13525
|
+
info800: string;
|
|
13526
|
+
info900: string;
|
|
13527
|
+
info950: string;
|
|
13528
|
+
};
|
|
13529
|
+
fontSizes: {
|
|
13530
|
+
2: string;
|
|
13531
|
+
4: string;
|
|
13532
|
+
6: string;
|
|
13533
|
+
8: string;
|
|
13534
|
+
10: string;
|
|
13535
|
+
12: string;
|
|
13536
|
+
13: string;
|
|
13537
|
+
14: string;
|
|
13538
|
+
16: string;
|
|
13539
|
+
18: string;
|
|
13540
|
+
20: string;
|
|
13541
|
+
22: string;
|
|
13542
|
+
24: string;
|
|
13543
|
+
32: string;
|
|
13544
|
+
36: string;
|
|
13545
|
+
40: string;
|
|
13546
|
+
48: string;
|
|
13547
|
+
56: string;
|
|
13548
|
+
64: string;
|
|
13549
|
+
72: string;
|
|
13550
|
+
80: string;
|
|
13551
|
+
xs: string;
|
|
13552
|
+
sm: string;
|
|
13553
|
+
md: string;
|
|
13554
|
+
lg: string;
|
|
13555
|
+
'2xl': string;
|
|
13556
|
+
'3xl': string;
|
|
13557
|
+
'4xl': string;
|
|
13558
|
+
full: string;
|
|
13559
|
+
};
|
|
13560
|
+
fonts: {
|
|
13561
|
+
default: string;
|
|
13562
|
+
};
|
|
13563
|
+
fontWeights: {
|
|
13564
|
+
regular: string;
|
|
13565
|
+
medium: string;
|
|
13566
|
+
semibold: string;
|
|
13567
|
+
bold: string;
|
|
13568
|
+
};
|
|
13569
|
+
lineHeights: {
|
|
13570
|
+
smaller: string;
|
|
13571
|
+
shorter: string;
|
|
13572
|
+
short: string;
|
|
13573
|
+
base: string;
|
|
13574
|
+
tall: string;
|
|
13575
|
+
};
|
|
13576
|
+
radii: {
|
|
13577
|
+
'3xs': string;
|
|
13578
|
+
'2xs': string;
|
|
13579
|
+
xs: string;
|
|
13580
|
+
sm: string;
|
|
13581
|
+
md: string;
|
|
13582
|
+
lg: string;
|
|
13583
|
+
xl: string;
|
|
13584
|
+
'2xl': string;
|
|
13585
|
+
'3xl': string;
|
|
13586
|
+
'4xl': string;
|
|
13587
|
+
'5xl': string;
|
|
13588
|
+
'6xl': string;
|
|
13589
|
+
'7xl': string;
|
|
13590
|
+
'8xl': string;
|
|
13591
|
+
'9xl': string;
|
|
13592
|
+
'10xl': string;
|
|
13593
|
+
'11xl': string;
|
|
13594
|
+
'12xl': string;
|
|
13595
|
+
'13xl': string;
|
|
13596
|
+
'14xl': string;
|
|
13597
|
+
full: string;
|
|
13598
|
+
};
|
|
13599
|
+
space: {
|
|
13600
|
+
2: string;
|
|
13601
|
+
4: string;
|
|
13602
|
+
6: string;
|
|
13603
|
+
8: string;
|
|
13604
|
+
10: string;
|
|
13605
|
+
12: string;
|
|
13606
|
+
13: string;
|
|
13607
|
+
14: string;
|
|
13608
|
+
16: string;
|
|
13609
|
+
18: string;
|
|
13610
|
+
20: string;
|
|
13611
|
+
22: string;
|
|
13612
|
+
24: string;
|
|
13613
|
+
32: string;
|
|
13614
|
+
36: string;
|
|
13615
|
+
40: string;
|
|
13616
|
+
48: string;
|
|
13617
|
+
56: string;
|
|
13618
|
+
64: string;
|
|
13619
|
+
72: string;
|
|
13620
|
+
80: string;
|
|
13621
|
+
full: string;
|
|
13622
|
+
};
|
|
13623
|
+
}, {
|
|
13624
|
+
height: "space";
|
|
13625
|
+
width: "space";
|
|
13626
|
+
gap: "space";
|
|
13627
|
+
gridGap: "space";
|
|
13628
|
+
columnGap: "space";
|
|
13629
|
+
gridColumnGap: "space";
|
|
13630
|
+
rowGap: "space";
|
|
13631
|
+
gridRowGap: "space";
|
|
13632
|
+
inset: "space";
|
|
13633
|
+
insetBlock: "space";
|
|
13634
|
+
insetBlockEnd: "space";
|
|
13635
|
+
insetBlockStart: "space";
|
|
13636
|
+
insetInline: "space";
|
|
13637
|
+
insetInlineEnd: "space";
|
|
13638
|
+
insetInlineStart: "space";
|
|
13639
|
+
margin: "space";
|
|
13640
|
+
marginTop: "space";
|
|
13641
|
+
marginRight: "space";
|
|
13642
|
+
marginBottom: "space";
|
|
13643
|
+
marginLeft: "space";
|
|
13644
|
+
marginBlock: "space";
|
|
13645
|
+
marginBlockEnd: "space";
|
|
13646
|
+
marginBlockStart: "space";
|
|
13647
|
+
marginInline: "space";
|
|
13648
|
+
marginInlineEnd: "space";
|
|
13649
|
+
marginInlineStart: "space";
|
|
13650
|
+
padding: "space";
|
|
13651
|
+
paddingTop: "space";
|
|
13652
|
+
paddingRight: "space";
|
|
13653
|
+
paddingBottom: "space";
|
|
13654
|
+
paddingLeft: "space";
|
|
13655
|
+
paddingBlock: "space";
|
|
13656
|
+
paddingBlockEnd: "space";
|
|
13657
|
+
paddingBlockStart: "space";
|
|
13658
|
+
paddingInline: "space";
|
|
13659
|
+
paddingInlineEnd: "space";
|
|
13660
|
+
paddingInlineStart: "space";
|
|
13661
|
+
scrollMargin: "space";
|
|
13662
|
+
scrollMarginTop: "space";
|
|
13663
|
+
scrollMarginRight: "space";
|
|
13664
|
+
scrollMarginBottom: "space";
|
|
13665
|
+
scrollMarginLeft: "space";
|
|
13666
|
+
scrollMarginBlock: "space";
|
|
13667
|
+
scrollMarginBlockEnd: "space";
|
|
13668
|
+
scrollMarginBlockStart: "space";
|
|
13669
|
+
scrollMarginInline: "space";
|
|
13670
|
+
scrollMarginInlineEnd: "space";
|
|
13671
|
+
scrollMarginInlineStart: "space";
|
|
13672
|
+
scrollPadding: "space";
|
|
13673
|
+
scrollPaddingTop: "space";
|
|
13674
|
+
scrollPaddingRight: "space";
|
|
13675
|
+
scrollPaddingBottom: "space";
|
|
13676
|
+
scrollPaddingLeft: "space";
|
|
13677
|
+
scrollPaddingBlock: "space";
|
|
13678
|
+
scrollPaddingBlockEnd: "space";
|
|
13679
|
+
scrollPaddingBlockStart: "space";
|
|
13680
|
+
scrollPaddingInline: "space";
|
|
13681
|
+
scrollPaddingInlineEnd: "space";
|
|
13682
|
+
scrollPaddingInlineStart: "space";
|
|
13683
|
+
top: "space";
|
|
13684
|
+
right: "space";
|
|
13685
|
+
bottom: "space";
|
|
13686
|
+
left: "space";
|
|
13687
|
+
fontSize: "fontSizes";
|
|
13688
|
+
background: "colors";
|
|
13689
|
+
backgroundColor: "colors";
|
|
13690
|
+
backgroundImage: "colors";
|
|
13691
|
+
borderImage: "colors";
|
|
13692
|
+
border: "colors";
|
|
13693
|
+
borderBlock: "colors";
|
|
13694
|
+
borderBlockEnd: "colors";
|
|
13695
|
+
borderBlockStart: "colors";
|
|
13696
|
+
borderBottom: "colors";
|
|
13697
|
+
borderBottomColor: "colors";
|
|
13698
|
+
borderColor: "colors";
|
|
13699
|
+
borderInline: "colors";
|
|
13700
|
+
borderInlineEnd: "colors";
|
|
13701
|
+
borderInlineStart: "colors";
|
|
13702
|
+
borderLeft: "colors";
|
|
13703
|
+
borderLeftColor: "colors";
|
|
13704
|
+
borderRight: "colors";
|
|
13705
|
+
borderRightColor: "colors";
|
|
13706
|
+
borderTop: "colors";
|
|
13707
|
+
borderTopColor: "colors";
|
|
13708
|
+
caretColor: "colors";
|
|
13709
|
+
color: "colors";
|
|
13710
|
+
columnRuleColor: "colors";
|
|
13711
|
+
outline: "colors";
|
|
13712
|
+
outlineColor: "colors";
|
|
13713
|
+
fill: "colors";
|
|
13714
|
+
stroke: "colors";
|
|
13715
|
+
textDecorationColor: "colors";
|
|
13716
|
+
fontFamily: "fonts";
|
|
13717
|
+
fontWeight: "fontWeights";
|
|
13718
|
+
lineHeight: "lineHeights";
|
|
13719
|
+
letterSpacing: "letterSpacings";
|
|
13720
|
+
blockSize: "sizes";
|
|
13721
|
+
minBlockSize: "sizes";
|
|
13722
|
+
maxBlockSize: "sizes";
|
|
13723
|
+
inlineSize: "sizes";
|
|
13724
|
+
minInlineSize: "sizes";
|
|
13725
|
+
maxInlineSize: "sizes";
|
|
13726
|
+
minWidth: "sizes";
|
|
13727
|
+
maxWidth: "sizes";
|
|
13728
|
+
minHeight: "sizes";
|
|
13729
|
+
maxHeight: "sizes";
|
|
13730
|
+
flexBasis: "sizes";
|
|
13731
|
+
gridTemplateColumns: "sizes";
|
|
13732
|
+
gridTemplateRows: "sizes";
|
|
13733
|
+
borderWidth: "borderWidths";
|
|
13734
|
+
borderTopWidth: "borderWidths";
|
|
13735
|
+
borderLeftWidth: "borderWidths";
|
|
13736
|
+
borderRightWidth: "borderWidths";
|
|
13737
|
+
borderBottomWidth: "borderWidths";
|
|
13738
|
+
borderStyle: "borderStyles";
|
|
13739
|
+
borderTopStyle: "borderStyles";
|
|
13740
|
+
borderLeftStyle: "borderStyles";
|
|
13741
|
+
borderRightStyle: "borderStyles";
|
|
13742
|
+
borderBottomStyle: "borderStyles";
|
|
13743
|
+
borderRadius: "radii";
|
|
13744
|
+
borderTopLeftRadius: "radii";
|
|
13745
|
+
borderTopRightRadius: "radii";
|
|
13746
|
+
borderBottomRightRadius: "radii";
|
|
13747
|
+
borderBottomLeftRadius: "radii";
|
|
13748
|
+
boxShadow: "shadows";
|
|
13749
|
+
textShadow: "shadows";
|
|
13750
|
+
transition: "transitions";
|
|
13751
|
+
zIndex: "zIndices";
|
|
13752
|
+
}, {}>>;
|
|
13753
|
+
|
|
13380
13754
|
declare const Box: React$1.ForwardRefExoticComponent<_radix_ui_themes.BoxProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
13381
13755
|
|
|
13382
13756
|
declare const GridStyled: _stitches_react_types_styled_component.StyledComponent<React$1.ForwardRefExoticComponent<_radix_ui_themes.GridProps & React$1.RefAttributes<HTMLDivElement>>, {
|
|
@@ -14828,4 +15202,4 @@ declare const useImageUpload: (options: UseImageUploadOptions) => {
|
|
|
14828
15202
|
reset: () => void;
|
|
14829
15203
|
};
|
|
14830
15204
|
|
|
14831
|
-
export { AddressFormFields, Alert, AlertDialogCompleteStyled, AlertDialogDescriptionStyled, AlertDialogRowStyled, AlertDialogSimpleStyled, AlertDialogSubtitleStyled, AlertDialogTitleStyled, AlertDialoghrStyled, type AlertProps, Avatar, type AvatarProps, AvatarStyled, Badge, type BadgeProps, BadgeStyled, BirthDateFormField, Box, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupStyled, ButtonItem, type ButtonItemProps, ButtonItemStyled, type ButtonProps, CNPJFormField, CPFFormField, Calendar, CalendarFormField, type CalendarFormFieldProps, type CalendarProps, Card, type CardProps, CardStyled, CheckboxGroup, CheckboxGroupFormField, type CheckboxGroupFormFieldProps, type CheckboxGroupProps, CheckboxGroupStyled, CheckboxItem, type CheckboxItemProps, Container, type ContainerProps, ContainerStyled, CountryFormField, Drawer, type DrawerProps, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, EmailFormField, type EmailFormFieldProps, ErrorFormMessage, type ErrorFormMessageProps, Filter, FilterItem, type FilterItemProps, type FilterProps, Flex, type FlexProps, FlexStyled, Form, FormLabel, type FormLabelProps, type FormProps, Grid, type GridProps, GridStyled, Icon, IdentityDocumentNumberFormField, InputStyled, MenuDropdown, type MenuDropdownProps, Modal, type ModalProps, MultiSelect, MultiSelectFormField, type MultiSelectFormFieldProps, type MultiSelectProps, PhoneFormField, type PhoneFormFieldProps, RadioGroup, RadioGroupFormField, type RadioGroupFormFieldProps, type RadioGroupProps, RadioGroupStyled, RadioItem, type RadioItemProps, RichEditor, RichEditorFormField, type RichEditorFormFieldProps, type RichEditorProps, Section, type SectionProps, SectionStyled, SelectFormField, type SelectFormFieldProps, Step, StepContent, StepList, type StepProps, StepStyled, StepTrigger, StepWrapper, Switch, SwitchFormField, type SwitchFormFieldProps, type SwitchProps, SwitchStyled, Text, TextAreaFormField, type TextAreaFormFieldProps, TextField, type TextFieldProps, TextFieldSlot, type TextFieldSlotProps, TextFieldSlotStyled, TextFieldStyled, TextFormField, type TextFormFieldProps, type TextProps, TextStyle, TextareaField, type TextareaFieldProps, TextareaFieldStyle, TimePicker, TimePickerButtonStyled, TimePickerDropdownStyled, TimePickerFooterStyled, TimePickerFormField, type TimePickerFormFieldProps, TimePickerIconButton, 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, type UploadConfig, UploadService, isValidCNPJ, maskFormat, maskUnformat, useImageUpload, useToast };
|
|
15205
|
+
export { AddressFormFields, Alert, AlertDialogCompleteStyled, AlertDialogDescriptionStyled, AlertDialogRowStyled, AlertDialogSimpleStyled, AlertDialogSubtitleStyled, AlertDialogTitleStyled, AlertDialoghrStyled, type AlertProps, Avatar, type AvatarProps, AvatarStyled, Badge, type BadgeProps, BadgeStyled, BirthDateFormField, Box, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupStyled, ButtonItem, type ButtonItemProps, ButtonItemStyled, type ButtonProps, CNPJFormField, CPFFormField, Calendar, CalendarFormField, type CalendarFormFieldProps, type CalendarProps, Card, type CardProps, CardStyled, CheckboxGroup, CheckboxGroupFormField, type CheckboxGroupFormFieldProps, type CheckboxGroupProps, CheckboxGroupStyled, CheckboxItem, type CheckboxItemProps, Container, type ContainerProps, ContainerStyled, CountryFormField, Divider, Drawer, type DrawerProps, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, EmailFormField, type EmailFormFieldProps, ErrorFormMessage, type ErrorFormMessageProps, Filter, FilterItem, type FilterItemProps, type FilterProps, Flex, type FlexProps, FlexStyled, Form, FormLabel, type FormLabelProps, type FormProps, Grid, type GridProps, GridStyled, Icon, IdentityDocumentNumberFormField, InputStyled, MenuDropdown, type MenuDropdownProps, Modal, type ModalProps, MultiSelect, MultiSelectFormField, type MultiSelectFormFieldProps, type MultiSelectProps, PhoneFormField, type PhoneFormFieldProps, RadioGroup, RadioGroupFormField, type RadioGroupFormFieldProps, type RadioGroupProps, RadioGroupStyled, RadioItem, type RadioItemProps, RichEditor, RichEditorFormField, type RichEditorFormFieldProps, type RichEditorProps, Section, type SectionProps, SectionStyled, SelectFormField, type SelectFormFieldProps, Step, StepContent, StepList, type StepProps, StepStyled, StepTrigger, StepWrapper, Switch, SwitchFormField, type SwitchFormFieldProps, type SwitchProps, SwitchStyled, Text, TextAreaFormField, type TextAreaFormFieldProps, TextField, type TextFieldProps, TextFieldSlot, type TextFieldSlotProps, TextFieldSlotStyled, TextFieldStyled, TextFormField, type TextFormFieldProps, type TextProps, TextStyle, TextareaField, type TextareaFieldProps, TextareaFieldStyle, TimePicker, TimePickerButtonStyled, TimePickerDropdownStyled, TimePickerFooterStyled, TimePickerFormField, type TimePickerFormFieldProps, TimePickerIconButton, 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, type UploadConfig, UploadService, isValidCNPJ, maskFormat, maskUnformat, useImageUpload, useToast };
|
package/dist/index.js
CHANGED
|
@@ -895,6 +895,7 @@ __export(index_exports, {
|
|
|
895
895
|
Container: () => Container,
|
|
896
896
|
ContainerStyled: () => ContainerStyled,
|
|
897
897
|
CountryFormField: () => CountryFormField,
|
|
898
|
+
Divider: () => Divider,
|
|
898
899
|
Drawer: () => Drawer,
|
|
899
900
|
DropdownMenu: () => DropdownMenu2,
|
|
900
901
|
DropdownMenuItem: () => DropdownMenuItem,
|
|
@@ -3731,16 +3732,44 @@ var ModalTitleStyled = styled(import_radix_ui.Dialog.Title, {
|
|
|
3731
3732
|
textTransform: "uppercase"
|
|
3732
3733
|
});
|
|
3733
3734
|
function Modal(_a) {
|
|
3734
|
-
var _b = _a, {
|
|
3735
|
+
var _b = _a, {
|
|
3736
|
+
children,
|
|
3737
|
+
title,
|
|
3738
|
+
trigger,
|
|
3739
|
+
zIndex,
|
|
3740
|
+
maxWidth
|
|
3741
|
+
} = _b, props = __objRest(_b, [
|
|
3742
|
+
"children",
|
|
3743
|
+
"title",
|
|
3744
|
+
"trigger",
|
|
3745
|
+
"zIndex",
|
|
3746
|
+
"maxWidth"
|
|
3747
|
+
]);
|
|
3735
3748
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_radix_ui.Dialog.Root, __spreadProps(__spreadValues({}, props), { children: [
|
|
3736
3749
|
trigger && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_radix_ui.Dialog.Trigger, { asChild: true, children: trigger }),
|
|
3737
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_radix_ui.Dialog.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3750
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_radix_ui.Dialog.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
3751
|
+
ModalOverlay,
|
|
3752
|
+
{
|
|
3753
|
+
css: {
|
|
3754
|
+
zIndex
|
|
3755
|
+
},
|
|
3756
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
3757
|
+
ModalContentStyled,
|
|
3758
|
+
{
|
|
3759
|
+
css: {
|
|
3760
|
+
maxWidth
|
|
3761
|
+
},
|
|
3762
|
+
children: [
|
|
3763
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(ModalHeaderStyled, { children: [
|
|
3764
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ModalTitleStyled, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Text, { typography: "headline6", fontWeight: "medium", children: title }) }),
|
|
3765
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_radix_ui.Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ModalIconClose, { name: "close", size: "xl" }) })
|
|
3766
|
+
] }),
|
|
3767
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Box, { children })
|
|
3768
|
+
]
|
|
3769
|
+
}
|
|
3770
|
+
)
|
|
3771
|
+
}
|
|
3772
|
+
) })
|
|
3744
3773
|
] }));
|
|
3745
3774
|
}
|
|
3746
3775
|
|
|
@@ -8142,7 +8171,8 @@ function Drawer({
|
|
|
8142
8171
|
title,
|
|
8143
8172
|
children,
|
|
8144
8173
|
goBackIcon,
|
|
8145
|
-
goBackAction
|
|
8174
|
+
goBackAction,
|
|
8175
|
+
zIndex
|
|
8146
8176
|
}) {
|
|
8147
8177
|
if (!isOpen) return null;
|
|
8148
8178
|
const drawerContainerRef = (0, import_react8.useRef)(null);
|
|
@@ -8183,29 +8213,37 @@ function Drawer({
|
|
|
8183
8213
|
const isDropdownOpen = target.closest("[data-radix-popper-content-wrapper]") || target.closest('[role="dialog"]') || target.closest('[data-state="open"]') || target.closest("[data-radix-dropdown-menu-content]") || target.closest("[data-radix-dropdown-menu-root]") || target.closest("[data-radix-dropdown-menu-trigger]") || target.closest("[data-radix-dropdown-menu-portal]") || target.closest("[data-radix-dropdown-menu-item]") || target.closest("[data-radix-dropdown-menu-checkbox-item]") || target.closest("[data-radix-dropdown-menu-radio-item]") || target.closest("[data-radix-dropdown-menu-separator]") || target.closest("[data-radix-dropdown-menu-label]") || target.closest("[data-radix-dropdown-menu-group]") || target.closest("[data-radix-dropdown-menu-sub]") || target.closest("[data-radix-dropdown-menu-sub-trigger]") || target.closest("[data-radix-dropdown-menu-sub-content]") || target.closest("[data-radix-dropdown-menu-radio-group]");
|
|
8184
8214
|
const shouldPreventClose = isDropdownOpen || target.closest("[data-radix-dropdown-menu-root]") || target.closest("[data-radix-dropdown-menu-trigger]") || target.closest("[data-radix-dropdown-menu-content]") || target.closest("[data-radix-dropdown-menu-portal]") || target.closest("[data-radix-dropdown-menu-item]") || target.closest("[data-radix-dropdown-menu-checkbox-item]") || target.closest("[data-radix-dropdown-menu-radio-item]") || target.closest("[data-radix-dropdown-menu-separator]") || target.closest("[data-radix-dropdown-menu-label]") || target.closest("[data-radix-dropdown-menu-group]") || target.closest("[data-radix-dropdown-menu-sub]") || target.closest("[data-radix-dropdown-menu-sub-trigger]") || target.closest("[data-radix-dropdown-menu-sub-content]") || target.closest("[data-radix-dropdown-menu-radio-group]");
|
|
8185
8215
|
if (!shouldPreventClose) {
|
|
8186
|
-
onClose();
|
|
8216
|
+
onClose == null ? void 0 : onClose();
|
|
8187
8217
|
}
|
|
8188
8218
|
});
|
|
8189
|
-
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
8190
|
-
|
|
8219
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
8220
|
+
DrawerOverlayStyled,
|
|
8191
8221
|
{
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
width: width != null ? width : "34.25rem",
|
|
8195
|
-
backgroundColor: colors[backgroundColor != null ? backgroundColor : "neutral50"]
|
|
8222
|
+
css: {
|
|
8223
|
+
zIndex
|
|
8196
8224
|
},
|
|
8197
|
-
children:
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
|
|
8225
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
8226
|
+
DrawerContainerStyled,
|
|
8227
|
+
{
|
|
8228
|
+
ref: drawerContainerRef,
|
|
8229
|
+
style: {
|
|
8230
|
+
width: width != null ? width : "34.25rem",
|
|
8231
|
+
backgroundColor: colors[backgroundColor != null ? backgroundColor : "neutral50"]
|
|
8232
|
+
},
|
|
8233
|
+
children: [
|
|
8234
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(DrawerHeaderDiv, { children: [
|
|
8235
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Flex2, { gap: 8, align: "center", children: [
|
|
8236
|
+
goBackIcon && goBackIcon && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(GoBackButtonStyled, { type: "button", onClick: goBackAction, children: goBackIcon }),
|
|
8237
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DrawerHeaderTitle, { children: title })
|
|
8238
|
+
] }),
|
|
8239
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DrawerHeaderCloseButton, { onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon_default, { size: "xl", color: "$dark600", name: "xmark" }) })
|
|
8240
|
+
] }),
|
|
8241
|
+
children
|
|
8242
|
+
]
|
|
8243
|
+
}
|
|
8244
|
+
)
|
|
8207
8245
|
}
|
|
8208
|
-
)
|
|
8246
|
+
);
|
|
8209
8247
|
}
|
|
8210
8248
|
|
|
8211
8249
|
// src/components/TimePicker.tsx
|
|
@@ -9780,6 +9818,13 @@ var MultiSelect = import_react16.default.forwardRef(
|
|
|
9780
9818
|
}
|
|
9781
9819
|
);
|
|
9782
9820
|
|
|
9821
|
+
// src/components/Divider.tsx
|
|
9822
|
+
var Divider = styled("div", {
|
|
9823
|
+
backgroundColor: "$dark300",
|
|
9824
|
+
width: "100%",
|
|
9825
|
+
height: "1px"
|
|
9826
|
+
});
|
|
9827
|
+
|
|
9783
9828
|
// src/components/Grid.tsx
|
|
9784
9829
|
var import_themes20 = require("@radix-ui/themes");
|
|
9785
9830
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
@@ -12953,6 +12998,7 @@ var useImageUpload = (options) => {
|
|
|
12953
12998
|
Container,
|
|
12954
12999
|
ContainerStyled,
|
|
12955
13000
|
CountryFormField,
|
|
13001
|
+
Divider,
|
|
12956
13002
|
Drawer,
|
|
12957
13003
|
DropdownMenu,
|
|
12958
13004
|
DropdownMenuItem,
|