@lets-events/react 10.1.0 → 10.1.2

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.
@@ -1,20 +1,19 @@
1
1
 
2
2
 
3
- > @lets-events/react@10.1.0 build
3
+ > @lets-events/react@10.1.2 build
4
4
  > tsup src/index.tsx --format esm,cjs --dts --external react
5
5
 
6
- CLI Building entry: src/index.tsx
6
+ CLI Building entry: src/index.tsx
7
7
  CLI Using tsconfig: tsconfig.json
8
8
  CLI tsup v8.4.0
9
9
  CLI Target: es6
10
10
  ESM Build start
11
11
  CJS Build start
12
- ESM dist/index.mjs 273.05 KB
13
- ESM ⚡️ Build success in 364ms
14
- CJS dist/index.js 281.40 KB
15
- CJS ⚡️ Build success in 364ms
12
+ ESM dist/index.mjs 275.16 KB
13
+ ESM ⚡️ Build success in 279ms
14
+ CJS dist/index.js 283.61 KB
15
+ CJS ⚡️ Build success in 279ms
16
16
  DTS Build start
17
- DTS ⚡️ Build success in 7135ms
18
- DTS dist/index.d.mts 338.38 KB
19
- DTS dist/index.d.ts 338.38 KB
20
- ⠙
17
+ DTS ⚡️ Build success in 5671ms
18
+ DTS dist/index.d.mts 347.67 KB
19
+ DTS dist/index.d.ts 347.67 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @lets-events/react
2
2
 
3
+ ## 10.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Click area of timerPicker
8
+
9
+ ## 10.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Input of TimerPicker
14
+
3
15
  ## 10.1.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -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.d.ts CHANGED
@@ -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,
@@ -7602,6 +7603,7 @@ var CalendarButtonStyled = styled("button", {
7602
7603
  border: "none",
7603
7604
  maxWidth: "200px",
7604
7605
  padding: "0",
7606
+ cursor: "pointer",
7605
7607
  "> div > div": {
7606
7608
  paddingLeft: "1rem",
7607
7609
  "input": {
@@ -7974,8 +7976,34 @@ var InputStyled = styled("input", {
7974
7976
  color: "$dark400",
7975
7977
  border: "1px solid $dark200",
7976
7978
  cursor: "not-allowed"
7979
+ },
7980
+ inputMode: "numeric",
7981
+ "&::-webkit-inner-spin-button": {
7982
+ WebkitAppearance: "none",
7983
+ margin: 0
7984
+ },
7985
+ "&::-webkit-outer-spin-button": {
7986
+ WebkitAppearance: "none",
7987
+ margin: 0
7988
+ },
7989
+ "&[type='number']": {
7990
+ MozAppearance: "textfield"
7977
7991
  }
7978
7992
  });
7993
+ var TimePickerButtonStyled = styled("button", {
7994
+ backgroundColor: "transparent",
7995
+ border: "none",
7996
+ maxWidth: "200px",
7997
+ padding: "0",
7998
+ cursor: "pointer",
7999
+ "> div > div": {
8000
+ paddingLeft: "1rem",
8001
+ input: {
8002
+ textAlign: "right"
8003
+ }
8004
+ }
8005
+ });
8006
+ var pad = (num) => String(num).padStart(2, "0");
7979
8007
  function TimePicker({
7980
8008
  selected,
7981
8009
  setSelected,
@@ -7983,25 +8011,21 @@ function TimePicker({
7983
8011
  }) {
7984
8012
  const [hours, setHours] = (0, import_react5.useState)("00");
7985
8013
  const [minutes, setMinutes] = (0, import_react5.useState)("00");
8014
+ const [rawHours, setRawHours] = (0, import_react5.useState)("00");
8015
+ const [rawMinutes, setRawMinutes] = (0, import_react5.useState)("00");
7986
8016
  const [isOpen, setIsOpen] = (0, import_react5.useState)(false);
7987
8017
  const dropdownRef = (0, import_react5.useRef)(null);
7988
8018
  useOnClickOutside(dropdownRef, () => setIsOpen(false));
7989
- const pad = (num) => String(num).padStart(2, "0");
7990
- const handleInputValue = (0, import_react5.useCallback)(
7991
- (time) => {
7992
- setSelected(time);
7993
- setIsOpen(false);
7994
- },
7995
- [setSelected]
7996
- );
7997
8019
  const handleIncrement = (0, import_react5.useCallback)(
7998
8020
  (type) => {
7999
8021
  if (type === "hours") {
8000
8022
  const next = (parseInt(hours) + 1) % 24;
8001
8023
  setHours(pad(next));
8024
+ setRawHours(pad(next));
8002
8025
  } else {
8003
8026
  const next = (parseInt(minutes) + 1) % 60;
8004
8027
  setMinutes(pad(next));
8028
+ setRawMinutes(pad(next));
8005
8029
  }
8006
8030
  },
8007
8031
  [hours, minutes]
@@ -8011,25 +8035,33 @@ function TimePicker({
8011
8035
  if (type === "hours") {
8012
8036
  const prev = (parseInt(hours) - 1 + 24) % 24;
8013
8037
  setHours(pad(prev));
8038
+ setRawHours(pad(prev));
8014
8039
  } else {
8015
8040
  const prev = (parseInt(minutes) - 1 + 60) % 60;
8016
8041
  setMinutes(pad(prev));
8042
+ setRawMinutes(pad(prev));
8017
8043
  }
8018
8044
  },
8019
8045
  [hours, minutes]
8020
8046
  );
8021
8047
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(TimePickerStyled, { ref: dropdownRef, children: [
8022
8048
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8023
- TextField,
8049
+ TimePickerButtonStyled,
8024
8050
  {
8025
- value: selected,
8026
- readOnly: true,
8027
- type: "text",
8028
- placeholder: "00:00",
8029
- typography: "labelSmall",
8030
- fontWeight: "regular",
8051
+ type: "button",
8031
8052
  onClick: () => setIsOpen((prev) => !prev),
8032
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(TextFieldSlot, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon_default, { name: "clock", size: "xl" }) })
8053
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8054
+ TextField,
8055
+ {
8056
+ value: selected,
8057
+ readOnly: true,
8058
+ type: "text",
8059
+ placeholder: "00:00",
8060
+ typography: "labelSmall",
8061
+ fontWeight: "regular",
8062
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(TextFieldSlot, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon_default, { name: "clock", size: "xl" }) })
8063
+ }
8064
+ )
8033
8065
  }
8034
8066
  ),
8035
8067
  isOpen && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
@@ -8084,10 +8116,39 @@ function TimePicker({
8084
8116
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8085
8117
  InputStyled,
8086
8118
  {
8087
- value: unit === "hours" ? hours : minutes,
8088
- onChange: (e) => handleInputValue(e.target.value),
8119
+ inputMode: "numeric",
8120
+ pattern: "[0-9]*",
8089
8121
  type: "text",
8090
- placeholder: "00"
8122
+ placeholder: "00",
8123
+ value: unit === "hours" ? rawHours : rawMinutes,
8124
+ onChange: (e) => {
8125
+ const rawValue = e.target.value.replace(/\D/g, "");
8126
+ if (unit === "hours") {
8127
+ setRawHours(rawValue);
8128
+ } else {
8129
+ setRawMinutes(rawValue);
8130
+ }
8131
+ },
8132
+ onBlur: () => {
8133
+ let num = 0;
8134
+ if (unit === "hours") {
8135
+ num = Math.min(parseInt(rawHours || "0", 10), 23);
8136
+ const padded = pad(num);
8137
+ setHours(padded);
8138
+ setRawHours(padded);
8139
+ } else {
8140
+ num = Math.min(parseInt(rawMinutes || "0", 10), 59);
8141
+ const padded = pad(num);
8142
+ setMinutes(padded);
8143
+ setRawMinutes(padded);
8144
+ }
8145
+ },
8146
+ onPaste: (e) => {
8147
+ const paste = e.clipboardData.getData("Text");
8148
+ if (!/^\d{1,2}$/.test(paste)) {
8149
+ e.preventDefault();
8150
+ }
8151
+ }
8091
8152
  }
8092
8153
  ),
8093
8154
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
@@ -8136,7 +8197,10 @@ function TimePicker({
8136
8197
  type: "button",
8137
8198
  variant: "text",
8138
8199
  color: "brand",
8139
- onClick: () => handleInputValue(`${hours}:${minutes}`),
8200
+ onClick: () => {
8201
+ setSelected(`${hours}:${minutes}`);
8202
+ setIsOpen(false);
8203
+ },
8140
8204
  typography: "buttonMedium",
8141
8205
  fontWeight: "medium",
8142
8206
  children: "Aplicar"
@@ -9272,6 +9336,7 @@ function Section(_a) {
9272
9336
  TextareaField,
9273
9337
  TextareaFieldStyle,
9274
9338
  TimePicker,
9339
+ TimePickerButtonStyled,
9275
9340
  TimePickerDropdownStyled,
9276
9341
  TimePickerFooterStyled,
9277
9342
  TimePickerStyled,
package/dist/index.mjs CHANGED
@@ -7516,6 +7516,7 @@ var CalendarButtonStyled = styled("button", {
7516
7516
  border: "none",
7517
7517
  maxWidth: "200px",
7518
7518
  padding: "0",
7519
+ cursor: "pointer",
7519
7520
  "> div > div": {
7520
7521
  paddingLeft: "1rem",
7521
7522
  "input": {
@@ -7888,8 +7889,34 @@ var InputStyled = styled("input", {
7888
7889
  color: "$dark400",
7889
7890
  border: "1px solid $dark200",
7890
7891
  cursor: "not-allowed"
7892
+ },
7893
+ inputMode: "numeric",
7894
+ "&::-webkit-inner-spin-button": {
7895
+ WebkitAppearance: "none",
7896
+ margin: 0
7897
+ },
7898
+ "&::-webkit-outer-spin-button": {
7899
+ WebkitAppearance: "none",
7900
+ margin: 0
7901
+ },
7902
+ "&[type='number']": {
7903
+ MozAppearance: "textfield"
7891
7904
  }
7892
7905
  });
7906
+ var TimePickerButtonStyled = styled("button", {
7907
+ backgroundColor: "transparent",
7908
+ border: "none",
7909
+ maxWidth: "200px",
7910
+ padding: "0",
7911
+ cursor: "pointer",
7912
+ "> div > div": {
7913
+ paddingLeft: "1rem",
7914
+ input: {
7915
+ textAlign: "right"
7916
+ }
7917
+ }
7918
+ });
7919
+ var pad = (num) => String(num).padStart(2, "0");
7893
7920
  function TimePicker({
7894
7921
  selected,
7895
7922
  setSelected,
@@ -7897,25 +7924,21 @@ function TimePicker({
7897
7924
  }) {
7898
7925
  const [hours, setHours] = useState2("00");
7899
7926
  const [minutes, setMinutes] = useState2("00");
7927
+ const [rawHours, setRawHours] = useState2("00");
7928
+ const [rawMinutes, setRawMinutes] = useState2("00");
7900
7929
  const [isOpen, setIsOpen] = useState2(false);
7901
7930
  const dropdownRef = useRef2(null);
7902
7931
  useOnClickOutside(dropdownRef, () => setIsOpen(false));
7903
- const pad = (num) => String(num).padStart(2, "0");
7904
- const handleInputValue = useCallback(
7905
- (time) => {
7906
- setSelected(time);
7907
- setIsOpen(false);
7908
- },
7909
- [setSelected]
7910
- );
7911
7932
  const handleIncrement = useCallback(
7912
7933
  (type) => {
7913
7934
  if (type === "hours") {
7914
7935
  const next = (parseInt(hours) + 1) % 24;
7915
7936
  setHours(pad(next));
7937
+ setRawHours(pad(next));
7916
7938
  } else {
7917
7939
  const next = (parseInt(minutes) + 1) % 60;
7918
7940
  setMinutes(pad(next));
7941
+ setRawMinutes(pad(next));
7919
7942
  }
7920
7943
  },
7921
7944
  [hours, minutes]
@@ -7925,25 +7948,33 @@ function TimePicker({
7925
7948
  if (type === "hours") {
7926
7949
  const prev = (parseInt(hours) - 1 + 24) % 24;
7927
7950
  setHours(pad(prev));
7951
+ setRawHours(pad(prev));
7928
7952
  } else {
7929
7953
  const prev = (parseInt(minutes) - 1 + 60) % 60;
7930
7954
  setMinutes(pad(prev));
7955
+ setRawMinutes(pad(prev));
7931
7956
  }
7932
7957
  },
7933
7958
  [hours, minutes]
7934
7959
  );
7935
7960
  return /* @__PURE__ */ jsxs6(TimePickerStyled, { ref: dropdownRef, children: [
7936
7961
  /* @__PURE__ */ jsx15(
7937
- TextField,
7962
+ TimePickerButtonStyled,
7938
7963
  {
7939
- value: selected,
7940
- readOnly: true,
7941
- type: "text",
7942
- placeholder: "00:00",
7943
- typography: "labelSmall",
7944
- fontWeight: "regular",
7964
+ type: "button",
7945
7965
  onClick: () => setIsOpen((prev) => !prev),
7946
- children: /* @__PURE__ */ jsx15(TextFieldSlot, { children: /* @__PURE__ */ jsx15(Icon_default, { name: "clock", size: "xl" }) })
7966
+ children: /* @__PURE__ */ jsx15(
7967
+ TextField,
7968
+ {
7969
+ value: selected,
7970
+ readOnly: true,
7971
+ type: "text",
7972
+ placeholder: "00:00",
7973
+ typography: "labelSmall",
7974
+ fontWeight: "regular",
7975
+ children: /* @__PURE__ */ jsx15(TextFieldSlot, { children: /* @__PURE__ */ jsx15(Icon_default, { name: "clock", size: "xl" }) })
7976
+ }
7977
+ )
7947
7978
  }
7948
7979
  ),
7949
7980
  isOpen && /* @__PURE__ */ jsxs6(
@@ -7998,10 +8029,39 @@ function TimePicker({
7998
8029
  /* @__PURE__ */ jsx15(
7999
8030
  InputStyled,
8000
8031
  {
8001
- value: unit === "hours" ? hours : minutes,
8002
- onChange: (e) => handleInputValue(e.target.value),
8032
+ inputMode: "numeric",
8033
+ pattern: "[0-9]*",
8003
8034
  type: "text",
8004
- placeholder: "00"
8035
+ placeholder: "00",
8036
+ value: unit === "hours" ? rawHours : rawMinutes,
8037
+ onChange: (e) => {
8038
+ const rawValue = e.target.value.replace(/\D/g, "");
8039
+ if (unit === "hours") {
8040
+ setRawHours(rawValue);
8041
+ } else {
8042
+ setRawMinutes(rawValue);
8043
+ }
8044
+ },
8045
+ onBlur: () => {
8046
+ let num = 0;
8047
+ if (unit === "hours") {
8048
+ num = Math.min(parseInt(rawHours || "0", 10), 23);
8049
+ const padded = pad(num);
8050
+ setHours(padded);
8051
+ setRawHours(padded);
8052
+ } else {
8053
+ num = Math.min(parseInt(rawMinutes || "0", 10), 59);
8054
+ const padded = pad(num);
8055
+ setMinutes(padded);
8056
+ setRawMinutes(padded);
8057
+ }
8058
+ },
8059
+ onPaste: (e) => {
8060
+ const paste = e.clipboardData.getData("Text");
8061
+ if (!/^\d{1,2}$/.test(paste)) {
8062
+ e.preventDefault();
8063
+ }
8064
+ }
8005
8065
  }
8006
8066
  ),
8007
8067
  /* @__PURE__ */ jsx15(
@@ -8050,7 +8110,10 @@ function TimePicker({
8050
8110
  type: "button",
8051
8111
  variant: "text",
8052
8112
  color: "brand",
8053
- onClick: () => handleInputValue(`${hours}:${minutes}`),
8113
+ onClick: () => {
8114
+ setSelected(`${hours}:${minutes}`);
8115
+ setIsOpen(false);
8116
+ },
8054
8117
  typography: "buttonMedium",
8055
8118
  fontWeight: "medium",
8056
8119
  children: "Aplicar"
@@ -9185,6 +9248,7 @@ export {
9185
9248
  TextareaField,
9186
9249
  TextareaFieldStyle,
9187
9250
  TimePicker,
9251
+ TimePickerButtonStyled,
9188
9252
  TimePickerDropdownStyled,
9189
9253
  TimePickerFooterStyled,
9190
9254
  TimePickerStyled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lets-events/react",
3
- "version": "10.1.0",
3
+ "version": "10.1.2",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -12,6 +12,7 @@ export const CalendarButtonStyled = styled('button', {
12
12
  border: 'none',
13
13
  maxWidth: '200px',
14
14
  padding: '0',
15
+ cursor: 'pointer',
15
16
  '> div > div': {
16
17
  paddingLeft: '1rem',
17
18
  'input': {
@@ -81,6 +81,32 @@ export const InputStyled = styled("input", {
81
81
  border: "1px solid $dark200",
82
82
  cursor: "not-allowed",
83
83
  },
84
+ inputMode: "numeric",
85
+ "&::-webkit-inner-spin-button": {
86
+ WebkitAppearance: "none",
87
+ margin: 0,
88
+ },
89
+ "&::-webkit-outer-spin-button": {
90
+ WebkitAppearance: "none",
91
+ margin: 0,
92
+ },
93
+ "&[type='number']": {
94
+ MozAppearance: "textfield",
95
+ },
96
+ });
97
+
98
+ export const TimePickerButtonStyled = styled("button", {
99
+ backgroundColor: "transparent",
100
+ border: "none",
101
+ maxWidth: "200px",
102
+ padding: "0",
103
+ cursor: "pointer",
104
+ "> div > div": {
105
+ paddingLeft: "1rem",
106
+ input: {
107
+ textAlign: "right",
108
+ },
109
+ },
84
110
  });
85
111
 
86
112
  export type TimePickerProps = {
@@ -88,6 +114,7 @@ export type TimePickerProps = {
88
114
  setSelected: React.Dispatch<React.SetStateAction<string | undefined>>;
89
115
  position?: "bottom" | "top";
90
116
  };
117
+ const pad = (num: number) => String(num).padStart(2, "0");
91
118
 
92
119
  export function TimePicker({
93
120
  selected,
@@ -96,29 +123,23 @@ export function TimePicker({
96
123
  }: TimePickerProps) {
97
124
  const [hours, setHours] = useState("00");
98
125
  const [minutes, setMinutes] = useState("00");
126
+ const [rawHours, setRawHours] = useState("00");
127
+ const [rawMinutes, setRawMinutes] = useState("00");
99
128
  const [isOpen, setIsOpen] = useState(false);
100
129
  const dropdownRef = useRef(null);
101
130
 
102
131
  useOnClickOutside(dropdownRef, () => setIsOpen(false));
103
132
 
104
- const pad = (num: number) => String(num).padStart(2, "0");
105
-
106
- const handleInputValue = useCallback(
107
- (time: string) => {
108
- setSelected(time);
109
- setIsOpen(false);
110
- },
111
- [setSelected]
112
- );
113
-
114
133
  const handleIncrement = useCallback(
115
134
  (type: "hours" | "minutes") => {
116
135
  if (type === "hours") {
117
136
  const next = (parseInt(hours) + 1) % 24;
118
137
  setHours(pad(next));
138
+ setRawHours(pad(next));
119
139
  } else {
120
140
  const next = (parseInt(minutes) + 1) % 60;
121
141
  setMinutes(pad(next));
142
+ setRawMinutes(pad(next));
122
143
  }
123
144
  },
124
145
  [hours, minutes]
@@ -128,9 +149,11 @@ export function TimePicker({
128
149
  if (type === "hours") {
129
150
  const prev = (parseInt(hours) - 1 + 24) % 24;
130
151
  setHours(pad(prev));
152
+ setRawHours(pad(prev));
131
153
  } else {
132
154
  const prev = (parseInt(minutes) - 1 + 60) % 60;
133
155
  setMinutes(pad(prev));
156
+ setRawMinutes(pad(prev));
134
157
  }
135
158
  },
136
159
  [hours, minutes]
@@ -138,19 +161,23 @@ export function TimePicker({
138
161
 
139
162
  return (
140
163
  <TimePickerStyled ref={dropdownRef}>
141
- <TextField
142
- value={selected}
143
- readOnly
144
- type="text"
145
- placeholder="00:00"
146
- typography="labelSmall"
147
- fontWeight="regular"
164
+ <TimePickerButtonStyled
165
+ type="button"
148
166
  onClick={() => setIsOpen((prev) => !prev)}
149
167
  >
150
- <TextFieldSlot>
151
- <Icon name="clock" size="xl" />
152
- </TextFieldSlot>
153
- </TextField>
168
+ <TextField
169
+ value={selected}
170
+ readOnly
171
+ type="text"
172
+ placeholder="00:00"
173
+ typography="labelSmall"
174
+ fontWeight="regular"
175
+ >
176
+ <TextFieldSlot>
177
+ <Icon name="clock" size="xl" />
178
+ </TextFieldSlot>
179
+ </TextField>
180
+ </TimePickerButtonStyled>
154
181
 
155
182
  {isOpen && (
156
183
  <TimePickerDropdownStyled
@@ -189,10 +216,39 @@ export function TimePicker({
189
216
  </svg>
190
217
  </Button>
191
218
  <InputStyled
192
- value={unit === "hours" ? hours : minutes}
193
- onChange={(e) => handleInputValue(e.target.value)}
219
+ inputMode="numeric"
220
+ pattern="[0-9]*"
194
221
  type="text"
195
222
  placeholder="00"
223
+ value={unit === "hours" ? rawHours : rawMinutes}
224
+ onChange={(e) => {
225
+ const rawValue = e.target.value.replace(/\D/g, "");
226
+ if (unit === "hours") {
227
+ setRawHours(rawValue);
228
+ } else {
229
+ setRawMinutes(rawValue);
230
+ }
231
+ }}
232
+ onBlur={() => {
233
+ let num = 0;
234
+ if (unit === "hours") {
235
+ num = Math.min(parseInt(rawHours || "0", 10), 23);
236
+ const padded = pad(num);
237
+ setHours(padded);
238
+ setRawHours(padded);
239
+ } else {
240
+ num = Math.min(parseInt(rawMinutes || "0", 10), 59);
241
+ const padded = pad(num);
242
+ setMinutes(padded);
243
+ setRawMinutes(padded);
244
+ }
245
+ }}
246
+ onPaste={(e) => {
247
+ const paste = e.clipboardData.getData("Text");
248
+ if (!/^\d{1,2}$/.test(paste)) {
249
+ e.preventDefault();
250
+ }
251
+ }}
196
252
  />
197
253
  <Button
198
254
  type="button"
@@ -225,7 +281,10 @@ export function TimePicker({
225
281
  type="button"
226
282
  variant="text"
227
283
  color="brand"
228
- onClick={() => handleInputValue(`${hours}:${minutes}`)}
284
+ onClick={() => {
285
+ setSelected(`${hours}:${minutes}`);
286
+ setIsOpen(false);
287
+ }}
229
288
  typography="buttonMedium"
230
289
  fontWeight="medium"
231
290
  >