@lets-events/react 12.1.5 → 12.1.6

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/dist/index.d.ts CHANGED
@@ -7281,6 +7281,376 @@ declare const TimePickerButtonStyled: _stitches_react_types_styled_component.Sty
7281
7281
  transition: "transitions";
7282
7282
  zIndex: "zIndices";
7283
7283
  }, {}>>;
7284
+ declare const TimePickerIconButton: _stitches_react_types_styled_component.StyledComponent<typeof Button, {}, {}, _stitches_react_types_css_util.CSS<{}, {
7285
+ colors: {
7286
+ brand50: string;
7287
+ brand100: string;
7288
+ brand200: string;
7289
+ brand300: string;
7290
+ brand400: string;
7291
+ brand500: string;
7292
+ brand600: string;
7293
+ brand700: string;
7294
+ brand800: string;
7295
+ brand900: string;
7296
+ brand950: string;
7297
+ blue50: string;
7298
+ blue100: string;
7299
+ blue200: string;
7300
+ blue300: string;
7301
+ blue400: string;
7302
+ blue500: string;
7303
+ blue600: string;
7304
+ blue700: string;
7305
+ blue800: string;
7306
+ blue900: string;
7307
+ blue950: string;
7308
+ red50: string;
7309
+ red100: string;
7310
+ red200: string;
7311
+ red300: string;
7312
+ red400: string;
7313
+ red500: string;
7314
+ red600: string;
7315
+ red700: string;
7316
+ red800: string;
7317
+ red900: string;
7318
+ red950: string;
7319
+ purple50: string;
7320
+ purple100: string;
7321
+ purple200: string;
7322
+ purple300: string;
7323
+ purple400: string;
7324
+ purple500: string;
7325
+ purple600: string;
7326
+ purple700: string;
7327
+ purple800: string;
7328
+ purple900: string;
7329
+ purple950: string;
7330
+ yellow50: string;
7331
+ yellow100: string;
7332
+ yellow200: string;
7333
+ yellow300: string;
7334
+ yellow400: string;
7335
+ yellow500: string;
7336
+ yellow600: string;
7337
+ yellow700: string;
7338
+ yellow800: string;
7339
+ yellow900: string;
7340
+ yellow950: string;
7341
+ dark50: string;
7342
+ dark100: string;
7343
+ dark200: string;
7344
+ dark300: string;
7345
+ dark400: string;
7346
+ dark500: string;
7347
+ dark600: string;
7348
+ dark700: string;
7349
+ dark800: string;
7350
+ dark900: string;
7351
+ dark950: string;
7352
+ neutral50: string;
7353
+ neutral100: string;
7354
+ neutral200: string;
7355
+ neutral300: string;
7356
+ neutral400: string;
7357
+ neutral500: string;
7358
+ neutral600: string;
7359
+ neutral700: string;
7360
+ neutral800: string;
7361
+ neutral900: string;
7362
+ neutral950: string;
7363
+ green50: string;
7364
+ green100: string;
7365
+ green200: string;
7366
+ green300: string;
7367
+ green400: string;
7368
+ green500: string;
7369
+ green600: string;
7370
+ green700: string;
7371
+ green800: string;
7372
+ green900: string;
7373
+ green950: string;
7374
+ grey50: string;
7375
+ grey100: string;
7376
+ grey200: string;
7377
+ grey300: string;
7378
+ grey400: string;
7379
+ grey500: string;
7380
+ grey600: string;
7381
+ grey700: string;
7382
+ grey800: string;
7383
+ grey900: string;
7384
+ grey950: string;
7385
+ error50: string;
7386
+ error100: string;
7387
+ error200: string;
7388
+ error300: string;
7389
+ error400: string;
7390
+ error500: string;
7391
+ error600: string;
7392
+ error700: string;
7393
+ error800: string;
7394
+ error900: string;
7395
+ error950: string;
7396
+ success50: string;
7397
+ success100: string;
7398
+ success200: string;
7399
+ success300: string;
7400
+ success400: string;
7401
+ success500: string;
7402
+ success600: string;
7403
+ success700: string;
7404
+ success800: string;
7405
+ success900: string;
7406
+ success950: string;
7407
+ warning50: string;
7408
+ warning100: string;
7409
+ warning200: string;
7410
+ warning300: string;
7411
+ warning400: string;
7412
+ warning500: string;
7413
+ warning600: string;
7414
+ warning700: string;
7415
+ warning800: string;
7416
+ warning900: string;
7417
+ warning950: string;
7418
+ info50: string;
7419
+ info100: string;
7420
+ info200: string;
7421
+ info300: string;
7422
+ info400: string;
7423
+ info500: string;
7424
+ info600: string;
7425
+ info700: string;
7426
+ info800: string;
7427
+ info900: string;
7428
+ info950: string;
7429
+ };
7430
+ fontSizes: {
7431
+ 2: string;
7432
+ 4: string;
7433
+ 6: string;
7434
+ 8: string;
7435
+ 10: string;
7436
+ 12: string;
7437
+ 13: string;
7438
+ 14: string;
7439
+ 16: string;
7440
+ 18: string;
7441
+ 20: string;
7442
+ 22: string;
7443
+ 24: string;
7444
+ 32: string;
7445
+ 36: string;
7446
+ 40: string;
7447
+ 48: string;
7448
+ 56: string;
7449
+ 64: string;
7450
+ 72: string;
7451
+ 80: string;
7452
+ xs: string;
7453
+ sm: string;
7454
+ md: string;
7455
+ lg: string;
7456
+ '2xl': string;
7457
+ '3xl': string;
7458
+ '4xl': string;
7459
+ full: string;
7460
+ };
7461
+ fonts: {
7462
+ default: string;
7463
+ };
7464
+ fontWeights: {
7465
+ regular: string;
7466
+ medium: string;
7467
+ semibold: string;
7468
+ bold: string;
7469
+ };
7470
+ lineHeights: {
7471
+ smaller: string;
7472
+ shorter: string;
7473
+ short: string;
7474
+ base: string;
7475
+ tall: string;
7476
+ };
7477
+ radii: {
7478
+ '3xs': string;
7479
+ '2xs': string;
7480
+ xs: string;
7481
+ sm: string;
7482
+ md: string;
7483
+ lg: string;
7484
+ xl: string;
7485
+ '2xl': string;
7486
+ '3xl': string;
7487
+ '4xl': string;
7488
+ '5xl': string;
7489
+ '6xl': string;
7490
+ '7xl': string;
7491
+ '8xl': string;
7492
+ '9xl': string;
7493
+ '10xl': string;
7494
+ '11xl': string;
7495
+ '12xl': string;
7496
+ '13xl': string;
7497
+ '14xl': string;
7498
+ full: string;
7499
+ };
7500
+ space: {
7501
+ 2: string;
7502
+ 4: string;
7503
+ 6: string;
7504
+ 8: string;
7505
+ 10: string;
7506
+ 12: string;
7507
+ 13: string;
7508
+ 14: string;
7509
+ 16: string;
7510
+ 18: string;
7511
+ 20: string;
7512
+ 22: string;
7513
+ 24: string;
7514
+ 32: string;
7515
+ 36: string;
7516
+ 40: string;
7517
+ 48: string;
7518
+ 56: string;
7519
+ 64: string;
7520
+ 72: string;
7521
+ 80: string;
7522
+ full: string;
7523
+ };
7524
+ }, {
7525
+ height: "space";
7526
+ width: "space";
7527
+ gap: "space";
7528
+ gridGap: "space";
7529
+ columnGap: "space";
7530
+ gridColumnGap: "space";
7531
+ rowGap: "space";
7532
+ gridRowGap: "space";
7533
+ inset: "space";
7534
+ insetBlock: "space";
7535
+ insetBlockEnd: "space";
7536
+ insetBlockStart: "space";
7537
+ insetInline: "space";
7538
+ insetInlineEnd: "space";
7539
+ insetInlineStart: "space";
7540
+ margin: "space";
7541
+ marginTop: "space";
7542
+ marginRight: "space";
7543
+ marginBottom: "space";
7544
+ marginLeft: "space";
7545
+ marginBlock: "space";
7546
+ marginBlockEnd: "space";
7547
+ marginBlockStart: "space";
7548
+ marginInline: "space";
7549
+ marginInlineEnd: "space";
7550
+ marginInlineStart: "space";
7551
+ padding: "space";
7552
+ paddingTop: "space";
7553
+ paddingRight: "space";
7554
+ paddingBottom: "space";
7555
+ paddingLeft: "space";
7556
+ paddingBlock: "space";
7557
+ paddingBlockEnd: "space";
7558
+ paddingBlockStart: "space";
7559
+ paddingInline: "space";
7560
+ paddingInlineEnd: "space";
7561
+ paddingInlineStart: "space";
7562
+ scrollMargin: "space";
7563
+ scrollMarginTop: "space";
7564
+ scrollMarginRight: "space";
7565
+ scrollMarginBottom: "space";
7566
+ scrollMarginLeft: "space";
7567
+ scrollMarginBlock: "space";
7568
+ scrollMarginBlockEnd: "space";
7569
+ scrollMarginBlockStart: "space";
7570
+ scrollMarginInline: "space";
7571
+ scrollMarginInlineEnd: "space";
7572
+ scrollMarginInlineStart: "space";
7573
+ scrollPadding: "space";
7574
+ scrollPaddingTop: "space";
7575
+ scrollPaddingRight: "space";
7576
+ scrollPaddingBottom: "space";
7577
+ scrollPaddingLeft: "space";
7578
+ scrollPaddingBlock: "space";
7579
+ scrollPaddingBlockEnd: "space";
7580
+ scrollPaddingBlockStart: "space";
7581
+ scrollPaddingInline: "space";
7582
+ scrollPaddingInlineEnd: "space";
7583
+ scrollPaddingInlineStart: "space";
7584
+ top: "space";
7585
+ right: "space";
7586
+ bottom: "space";
7587
+ left: "space";
7588
+ fontSize: "fontSizes";
7589
+ background: "colors";
7590
+ backgroundColor: "colors";
7591
+ backgroundImage: "colors";
7592
+ borderImage: "colors";
7593
+ border: "colors";
7594
+ borderBlock: "colors";
7595
+ borderBlockEnd: "colors";
7596
+ borderBlockStart: "colors";
7597
+ borderBottom: "colors";
7598
+ borderBottomColor: "colors";
7599
+ borderColor: "colors";
7600
+ borderInline: "colors";
7601
+ borderInlineEnd: "colors";
7602
+ borderInlineStart: "colors";
7603
+ borderLeft: "colors";
7604
+ borderLeftColor: "colors";
7605
+ borderRight: "colors";
7606
+ borderRightColor: "colors";
7607
+ borderTop: "colors";
7608
+ borderTopColor: "colors";
7609
+ caretColor: "colors";
7610
+ color: "colors";
7611
+ columnRuleColor: "colors";
7612
+ outline: "colors";
7613
+ outlineColor: "colors";
7614
+ fill: "colors";
7615
+ stroke: "colors";
7616
+ textDecorationColor: "colors";
7617
+ fontFamily: "fonts";
7618
+ fontWeight: "fontWeights";
7619
+ lineHeight: "lineHeights";
7620
+ letterSpacing: "letterSpacings";
7621
+ blockSize: "sizes";
7622
+ minBlockSize: "sizes";
7623
+ maxBlockSize: "sizes";
7624
+ inlineSize: "sizes";
7625
+ minInlineSize: "sizes";
7626
+ maxInlineSize: "sizes";
7627
+ minWidth: "sizes";
7628
+ maxWidth: "sizes";
7629
+ minHeight: "sizes";
7630
+ maxHeight: "sizes";
7631
+ flexBasis: "sizes";
7632
+ gridTemplateColumns: "sizes";
7633
+ gridTemplateRows: "sizes";
7634
+ borderWidth: "borderWidths";
7635
+ borderTopWidth: "borderWidths";
7636
+ borderLeftWidth: "borderWidths";
7637
+ borderRightWidth: "borderWidths";
7638
+ borderBottomWidth: "borderWidths";
7639
+ borderStyle: "borderStyles";
7640
+ borderTopStyle: "borderStyles";
7641
+ borderLeftStyle: "borderStyles";
7642
+ borderRightStyle: "borderStyles";
7643
+ borderBottomStyle: "borderStyles";
7644
+ borderRadius: "radii";
7645
+ borderTopLeftRadius: "radii";
7646
+ borderTopRightRadius: "radii";
7647
+ borderBottomRightRadius: "radii";
7648
+ borderBottomLeftRadius: "radii";
7649
+ boxShadow: "shadows";
7650
+ textShadow: "shadows";
7651
+ transition: "transitions";
7652
+ zIndex: "zIndices";
7653
+ }, {}>>;
7284
7654
  type TimePickerProps = {
7285
7655
  selected: string | undefined;
7286
7656
  setSelected: React__default.Dispatch<React__default.SetStateAction<string | undefined>>;
@@ -14443,4 +14813,4 @@ declare const useImageUpload: (options: UseImageUploadOptions) => {
14443
14813
  reset: () => void;
14444
14814
  };
14445
14815
 
14446
- 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, 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 };
14816
+ 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 };
package/dist/index.js CHANGED
@@ -2504,6 +2504,7 @@ __export(index_exports, {
2504
2504
  TimePickerDropdownStyled: () => TimePickerDropdownStyled,
2505
2505
  TimePickerFooterStyled: () => TimePickerFooterStyled,
2506
2506
  TimePickerFormField: () => TimePickerFormField,
2507
+ TimePickerIconButton: () => TimePickerIconButton,
2507
2508
  TimePickerStyled: () => TimePickerStyled,
2508
2509
  TimerPickerContentStyled: () => TimerPickerContentStyled,
2509
2510
  ToastItem: () => ToastItem,
@@ -9093,6 +9094,7 @@ init_styles();
9093
9094
  var import_jsx_runtime17 = require("react/jsx-runtime");
9094
9095
  var TimePickerStyled = styled("div", {
9095
9096
  position: "relative",
9097
+ width: "fit-content",
9096
9098
  fontFamily: "$default",
9097
9099
  lineHeight: "$base",
9098
9100
  fontSize: "$14",
@@ -9116,7 +9118,7 @@ var TimePickerDropdownStyled = styled("div", {
9116
9118
  position: "absolute",
9117
9119
  zIndex: 10,
9118
9120
  width: "100%",
9119
- maxWidth: "8.875rem",
9121
+ maxWidth: "min-content",
9120
9122
  backgroundColor: "$neutral50",
9121
9123
  border: "1px solid $neutral300",
9122
9124
  borderRadius: "$sm",
@@ -9200,6 +9202,9 @@ var TimePickerButtonStyled = styled("button", {
9200
9202
  }
9201
9203
  }
9202
9204
  });
9205
+ var TimePickerIconButton = styled(Button, {
9206
+ padding: "0 !important"
9207
+ });
9203
9208
  var pad = (num) => String(num).padStart(2, "0");
9204
9209
  function TimePicker({
9205
9210
  selected,
@@ -9281,7 +9286,7 @@ function TimePicker({
9281
9286
  },
9282
9287
  children: [
9283
9288
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
9284
- Button,
9289
+ TimePickerIconButton,
9285
9290
  {
9286
9291
  type: "button",
9287
9292
  variant: "text",
@@ -9353,7 +9358,7 @@ function TimePicker({
9353
9358
  }
9354
9359
  ),
9355
9360
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
9356
- Button,
9361
+ TimePickerIconButton,
9357
9362
  {
9358
9363
  type: "button",
9359
9364
  variant: "text",
@@ -12135,6 +12140,7 @@ init_uploadService();
12135
12140
  TimePickerDropdownStyled,
12136
12141
  TimePickerFooterStyled,
12137
12142
  TimePickerFormField,
12143
+ TimePickerIconButton,
12138
12144
  TimePickerStyled,
12139
12145
  TimerPickerContentStyled,
12140
12146
  ToastItem,
package/dist/index.mjs CHANGED
@@ -6557,6 +6557,7 @@ import { useCallback, useRef as useRef5, useState as useState3 } from "react";
6557
6557
  import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
6558
6558
  var TimePickerStyled = styled("div", {
6559
6559
  position: "relative",
6560
+ width: "fit-content",
6560
6561
  fontFamily: "$default",
6561
6562
  lineHeight: "$base",
6562
6563
  fontSize: "$14",
@@ -6580,7 +6581,7 @@ var TimePickerDropdownStyled = styled("div", {
6580
6581
  position: "absolute",
6581
6582
  zIndex: 10,
6582
6583
  width: "100%",
6583
- maxWidth: "8.875rem",
6584
+ maxWidth: "min-content",
6584
6585
  backgroundColor: "$neutral50",
6585
6586
  border: "1px solid $neutral300",
6586
6587
  borderRadius: "$sm",
@@ -6664,6 +6665,9 @@ var TimePickerButtonStyled = styled("button", {
6664
6665
  }
6665
6666
  }
6666
6667
  });
6668
+ var TimePickerIconButton = styled(Button, {
6669
+ padding: "0 !important"
6670
+ });
6667
6671
  var pad = (num) => String(num).padStart(2, "0");
6668
6672
  function TimePicker({
6669
6673
  selected,
@@ -6745,7 +6749,7 @@ function TimePicker({
6745
6749
  },
6746
6750
  children: [
6747
6751
  /* @__PURE__ */ jsx14(
6748
- Button,
6752
+ TimePickerIconButton,
6749
6753
  {
6750
6754
  type: "button",
6751
6755
  variant: "text",
@@ -6817,7 +6821,7 @@ function TimePicker({
6817
6821
  }
6818
6822
  ),
6819
6823
  /* @__PURE__ */ jsx14(
6820
- Button,
6824
+ TimePickerIconButton,
6821
6825
  {
6822
6826
  type: "button",
6823
6827
  variant: "text",
@@ -9556,6 +9560,7 @@ export {
9556
9560
  TimePickerDropdownStyled,
9557
9561
  TimePickerFooterStyled,
9558
9562
  TimePickerFormField,
9563
+ TimePickerIconButton,
9559
9564
  TimePickerStyled,
9560
9565
  TimerPickerContentStyled,
9561
9566
  ToastItem,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lets-events/react",
3
- "version": "12.1.5",
3
+ "version": "12.1.6",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -9,6 +9,7 @@ import { useOnClickOutside } from "../hooks/useOnClickOutside";
9
9
 
10
10
  export const TimePickerStyled = styled("div", {
11
11
  position: "relative",
12
+ width: "fit-content",
12
13
  fontFamily: "$default",
13
14
  lineHeight: "$base",
14
15
  fontSize: "$14",
@@ -33,7 +34,7 @@ export const TimePickerDropdownStyled = styled("div", {
33
34
  position: "absolute",
34
35
  zIndex: 10,
35
36
  width: "100%",
36
- maxWidth: "8.875rem",
37
+ maxWidth: "min-content",
37
38
  backgroundColor: "$neutral50",
38
39
  border: "1px solid $neutral300",
39
40
  borderRadius: "$sm",
@@ -121,7 +122,9 @@ export const TimePickerButtonStyled = styled("button", {
121
122
  },
122
123
  },
123
124
  });
124
-
125
+ export const TimePickerIconButton = styled(Button, {
126
+ padding: "0 !important",
127
+ });
125
128
  export type TimePickerProps = {
126
129
  selected: string | undefined;
127
130
  setSelected: React.Dispatch<React.SetStateAction<string | undefined>>;
@@ -204,10 +207,10 @@ export function TimePicker({
204
207
  position === "top"
205
208
  ? { bottom: "110%", left: "0" }
206
209
  : position === "top-right"
207
- ? { bottom: "110%", right: "0" }
208
- : position === "bottom-right"
209
- ? { top: "110%", right: "0" }
210
- : { top: "110%", left: "0" }
210
+ ? { bottom: "110%", right: "0" }
211
+ : position === "bottom-right"
212
+ ? { top: "110%", right: "0" }
213
+ : { top: "110%", left: "0" }
211
214
  }
212
215
  >
213
216
  <TimerPickerContentStyled>
@@ -220,7 +223,7 @@ export function TimePicker({
220
223
  flexDirection: "column",
221
224
  }}
222
225
  >
223
- <Button
226
+ <TimePickerIconButton
224
227
  type="button"
225
228
  variant="text"
226
229
  onClick={() => handleIncrement(unit as "hours" | "minutes")}
@@ -241,7 +244,7 @@ export function TimePicker({
241
244
  fill="#808289"
242
245
  />
243
246
  </svg>
244
- </Button>
247
+ </TimePickerIconButton>
245
248
  <InputStyled
246
249
  inputMode="numeric"
247
250
  pattern="[0-9]*"
@@ -277,7 +280,7 @@ export function TimePicker({
277
280
  }
278
281
  }}
279
282
  />
280
- <Button
283
+ <TimePickerIconButton
281
284
  type="button"
282
285
  variant="text"
283
286
  onClick={() => handleDecrement(unit as "hours" | "minutes")}
@@ -298,7 +301,7 @@ export function TimePicker({
298
301
  fill="#808289"
299
302
  />
300
303
  </svg>
301
- </Button>
304
+ </TimePickerIconButton>
302
305
  </Box>
303
306
  ))}
304
307
  <Text>:</Text>