@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.
- package/.eslintrc.json +2 -2
- package/.turbo/turbo-build.log +18 -19
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +376 -6
- package/dist/index.d.ts +376 -6
- package/dist/index.js +73 -36
- package/dist/index.mjs +72 -36
- package/package.json +1 -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 +275 -250
- package/src/components/ButtonGroup.tsx +484 -484
- package/src/components/Calendar/index.tsx +136 -136
- package/src/components/Calendar/styledComponents.ts +209 -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 +90 -90
- 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 +39 -30
- package/src/components/TextField.tsx +299 -299
- package/src/components/TextareaField.tsx +101 -101
- package/src/components/TimePicker.tsx +298 -280
- 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/useOnClickOutside.tsx +20 -20
- package/src/index.tsx +33 -33
- package/src/styles/index.ts +38 -38
- package/src/types/typographyValues.ts +178 -178
- package/tsconfig.json +3 -3
package/dist/index.d.ts
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 {
|
|
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
|
-
|
|
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
|
-
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -1071,6 +1071,7 @@ __export(index_exports, {
|
|
|
1071
1071
|
TextareaField: () => TextareaField,
|
|
1072
1072
|
TextareaFieldStyle: () => TextareaFieldStyle,
|
|
1073
1073
|
TimePicker: () => TimePicker,
|
|
1074
|
+
TimePickerButtonStyled: () => TimePickerButtonStyled,
|
|
1074
1075
|
TimePickerDropdownStyled: () => TimePickerDropdownStyled,
|
|
1075
1076
|
TimePickerFooterStyled: () => TimePickerFooterStyled,
|
|
1076
1077
|
TimePickerStyled: () => TimePickerStyled,
|
|
@@ -1619,24 +1620,6 @@ var typographyValues = {
|
|
|
1619
1620
|
lineHeight: "$labelExtraSmall"
|
|
1620
1621
|
}
|
|
1621
1622
|
};
|
|
1622
|
-
var typographyButtonValues = {
|
|
1623
|
-
buttonLarge: {
|
|
1624
|
-
fontSize: "$buttonLarge",
|
|
1625
|
-
lineHeight: "$buttonLarge"
|
|
1626
|
-
},
|
|
1627
|
-
buttonMedium: {
|
|
1628
|
-
fontSize: "$buttonMedium",
|
|
1629
|
-
lineHeight: "$buttonMedium"
|
|
1630
|
-
},
|
|
1631
|
-
buttonSmall: {
|
|
1632
|
-
fontSize: "$buttonSmall",
|
|
1633
|
-
lineHeight: "$buttonSmall"
|
|
1634
|
-
},
|
|
1635
|
-
buttonExtraSmall: {
|
|
1636
|
-
fontSize: "$buttonExtraSmall",
|
|
1637
|
-
lineHeight: "$buttonExtraSmall"
|
|
1638
|
-
}
|
|
1639
|
-
};
|
|
1640
1623
|
var typographyLabelValues = {
|
|
1641
1624
|
labelLarge: {
|
|
1642
1625
|
fontSize: "$labelLarge",
|
|
@@ -1661,7 +1644,7 @@ var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
|
1661
1644
|
var TextStyle = styled(import_themes.Text, {
|
|
1662
1645
|
fontFamily: "$default",
|
|
1663
1646
|
lineHeight: "$base",
|
|
1664
|
-
color: "$
|
|
1647
|
+
color: "$grey950",
|
|
1665
1648
|
variants: {
|
|
1666
1649
|
typography: typographyValues,
|
|
1667
1650
|
fontWeight: {
|
|
@@ -1673,8 +1656,15 @@ var TextStyle = styled(import_themes.Text, {
|
|
|
1673
1656
|
}
|
|
1674
1657
|
});
|
|
1675
1658
|
function Text(_a) {
|
|
1676
|
-
var props = __objRest(
|
|
1677
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
1659
|
+
var _b = _a, { color } = _b, props = __objRest(_b, ["color"]);
|
|
1660
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
1661
|
+
TextStyle,
|
|
1662
|
+
__spreadProps(__spreadValues({}, props), {
|
|
1663
|
+
css: __spreadValues({
|
|
1664
|
+
color: color ? "$" + color : "$grey950"
|
|
1665
|
+
}, props.css)
|
|
1666
|
+
})
|
|
1667
|
+
);
|
|
1678
1668
|
}
|
|
1679
1669
|
|
|
1680
1670
|
// src/components/Button/styledComponents.ts
|
|
@@ -1695,7 +1685,7 @@ var ButtonStyled = styled(import_themes2.Button, {
|
|
|
1695
1685
|
alignItems: "center",
|
|
1696
1686
|
justifyContent: "center",
|
|
1697
1687
|
gap: "$10",
|
|
1698
|
-
padding: "$6 $
|
|
1688
|
+
padding: "$6 $12",
|
|
1699
1689
|
"&:disabled": {
|
|
1700
1690
|
cursor: "not-allowed",
|
|
1701
1691
|
transition: "none"
|
|
@@ -1895,7 +1885,32 @@ var ButtonStyled = styled(import_themes2.Button, {
|
|
|
1895
1885
|
}
|
|
1896
1886
|
}
|
|
1897
1887
|
},
|
|
1898
|
-
|
|
1888
|
+
size: {
|
|
1889
|
+
extraSmall: {
|
|
1890
|
+
height: "$24",
|
|
1891
|
+
fontSize: "$buttonExtraSmall",
|
|
1892
|
+
lineHeight: "$buttonExtraSmall",
|
|
1893
|
+
padding: "0 $12"
|
|
1894
|
+
},
|
|
1895
|
+
small: {
|
|
1896
|
+
height: "30px",
|
|
1897
|
+
fontSize: "$buttonSmall",
|
|
1898
|
+
lineHeight: "$buttonSmall",
|
|
1899
|
+
padding: "0 $14"
|
|
1900
|
+
},
|
|
1901
|
+
medium: {
|
|
1902
|
+
height: "40px",
|
|
1903
|
+
fontSize: "$buttonMedium",
|
|
1904
|
+
lineHeight: "$buttonMedium",
|
|
1905
|
+
padding: "0 $16"
|
|
1906
|
+
},
|
|
1907
|
+
large: {
|
|
1908
|
+
height: "48px",
|
|
1909
|
+
fontSize: "$buttonLarge",
|
|
1910
|
+
lineHeight: "$buttonLarge",
|
|
1911
|
+
padding: "0 $20"
|
|
1912
|
+
}
|
|
1913
|
+
},
|
|
1899
1914
|
fontWeight: {
|
|
1900
1915
|
regular: { fontWeight: "$regular" },
|
|
1901
1916
|
medium: { fontWeight: "$medium" },
|
|
@@ -1909,15 +1924,16 @@ var ButtonStyled = styled(import_themes2.Button, {
|
|
|
1909
1924
|
}
|
|
1910
1925
|
},
|
|
1911
1926
|
radii: {
|
|
1912
|
-
|
|
1927
|
+
full: {
|
|
1913
1928
|
borderRadius: "$full"
|
|
1914
1929
|
}
|
|
1915
1930
|
}
|
|
1916
1931
|
},
|
|
1917
1932
|
defaultVariants: {
|
|
1918
1933
|
variant: "contained",
|
|
1919
|
-
|
|
1920
|
-
|
|
1934
|
+
color: "brand",
|
|
1935
|
+
size: "medium",
|
|
1936
|
+
fontWeight: "medium"
|
|
1921
1937
|
}
|
|
1922
1938
|
});
|
|
1923
1939
|
|
|
@@ -7602,6 +7618,7 @@ var CalendarButtonStyled = styled("button", {
|
|
|
7602
7618
|
border: "none",
|
|
7603
7619
|
maxWidth: "200px",
|
|
7604
7620
|
padding: "0",
|
|
7621
|
+
cursor: "pointer",
|
|
7605
7622
|
"> div > div": {
|
|
7606
7623
|
paddingLeft: "1rem",
|
|
7607
7624
|
"input": {
|
|
@@ -7891,7 +7908,7 @@ function Calendar(_a) {
|
|
|
7891
7908
|
onClick: () => {
|
|
7892
7909
|
setShowCalendar(false);
|
|
7893
7910
|
},
|
|
7894
|
-
|
|
7911
|
+
size: "medium",
|
|
7895
7912
|
fontWeight: "medium",
|
|
7896
7913
|
children: actionText != null ? actionText : "Aplicar"
|
|
7897
7914
|
}
|
|
@@ -7988,6 +8005,19 @@ var InputStyled = styled("input", {
|
|
|
7988
8005
|
MozAppearance: "textfield"
|
|
7989
8006
|
}
|
|
7990
8007
|
});
|
|
8008
|
+
var TimePickerButtonStyled = styled("button", {
|
|
8009
|
+
backgroundColor: "transparent",
|
|
8010
|
+
border: "none",
|
|
8011
|
+
maxWidth: "200px",
|
|
8012
|
+
padding: "0",
|
|
8013
|
+
cursor: "pointer",
|
|
8014
|
+
"> div > div": {
|
|
8015
|
+
paddingLeft: "1rem",
|
|
8016
|
+
input: {
|
|
8017
|
+
textAlign: "right"
|
|
8018
|
+
}
|
|
8019
|
+
}
|
|
8020
|
+
});
|
|
7991
8021
|
var pad = (num) => String(num).padStart(2, "0");
|
|
7992
8022
|
function TimePicker({
|
|
7993
8023
|
selected,
|
|
@@ -8031,16 +8061,22 @@ function TimePicker({
|
|
|
8031
8061
|
);
|
|
8032
8062
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(TimePickerStyled, { ref: dropdownRef, children: [
|
|
8033
8063
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
8034
|
-
|
|
8064
|
+
TimePickerButtonStyled,
|
|
8035
8065
|
{
|
|
8036
|
-
|
|
8037
|
-
readOnly: true,
|
|
8038
|
-
type: "text",
|
|
8039
|
-
placeholder: "00:00",
|
|
8040
|
-
typography: "labelSmall",
|
|
8041
|
-
fontWeight: "regular",
|
|
8066
|
+
type: "button",
|
|
8042
8067
|
onClick: () => setIsOpen((prev) => !prev),
|
|
8043
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
8068
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
8069
|
+
TextField,
|
|
8070
|
+
{
|
|
8071
|
+
value: selected,
|
|
8072
|
+
readOnly: true,
|
|
8073
|
+
type: "text",
|
|
8074
|
+
placeholder: "00:00",
|
|
8075
|
+
typography: "labelSmall",
|
|
8076
|
+
fontWeight: "regular",
|
|
8077
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(TextFieldSlot, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon_default, { name: "clock", size: "xl" }) })
|
|
8078
|
+
}
|
|
8079
|
+
)
|
|
8044
8080
|
}
|
|
8045
8081
|
),
|
|
8046
8082
|
isOpen && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
@@ -8180,7 +8216,7 @@ function TimePicker({
|
|
|
8180
8216
|
setSelected(`${hours}:${minutes}`);
|
|
8181
8217
|
setIsOpen(false);
|
|
8182
8218
|
},
|
|
8183
|
-
|
|
8219
|
+
size: "medium",
|
|
8184
8220
|
fontWeight: "medium",
|
|
8185
8221
|
children: "Aplicar"
|
|
8186
8222
|
}
|
|
@@ -9315,6 +9351,7 @@ function Section(_a) {
|
|
|
9315
9351
|
TextareaField,
|
|
9316
9352
|
TextareaFieldStyle,
|
|
9317
9353
|
TimePicker,
|
|
9354
|
+
TimePickerButtonStyled,
|
|
9318
9355
|
TimePickerDropdownStyled,
|
|
9319
9356
|
TimePickerFooterStyled,
|
|
9320
9357
|
TimePickerStyled,
|