@bricks-toolkit/toolkit 0.1.18 → 0.1.20

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,2 +1,3 @@
1
- export { DatePicker } from '../chunk-7WNJ7L4Z.mjs';
1
+ export { DatePicker } from '../chunk-M5V2IWA6.mjs';
2
+ import '../chunk-4PRNRENN.mjs';
2
3
  import '../chunk-OCPFOFJ4.mjs';
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkHG4BPC2T_cjs = require('../chunk-HG4BPC2T.cjs');
4
+ require('../chunk-J53N2LAE.cjs');
5
+ require('../chunk-L5VQZZVR.cjs');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "DateTimePicker", {
10
+ enumerable: true,
11
+ get: function () { return chunkHG4BPC2T_cjs.DateTimePicker; }
12
+ });
@@ -0,0 +1,52 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ type DateTimePickerVariant = 'default' | 'filled' | 'flushed' | 'unstyled';
4
+ type DateTimePickerSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
+ type DateTimePickerState = 'default' | 'error' | 'success' | 'warning';
6
+ interface DateTimePickerProps {
7
+ /** Controlled value — 'YYYY-MM-DDTHH:MM' */
8
+ value?: string;
9
+ defaultValue?: string;
10
+ /** Fires with 'YYYY-MM-DDTHH:MM' string */
11
+ onChange?: (value: string) => void;
12
+ /** Fires with native Date or null */
13
+ onDateTimeChange?: (date: Date | null) => void;
14
+ label?: string;
15
+ required?: boolean;
16
+ helperText?: string;
17
+ errorMessage?: string;
18
+ successMessage?: string;
19
+ warningMessage?: string;
20
+ placeholder?: string;
21
+ locale?: string;
22
+ variant?: DateTimePickerVariant;
23
+ size?: DateTimePickerSize;
24
+ state?: DateTimePickerState;
25
+ fullWidth?: boolean;
26
+ leftElement?: ReactNode;
27
+ rightElement?: ReactNode;
28
+ prefix?: ReactNode;
29
+ suffix?: ReactNode;
30
+ wrapperClassName?: string;
31
+ inputGroupClassName?: string;
32
+ inputClassName?: string;
33
+ labelClassName?: string;
34
+ helperClassName?: string;
35
+ className?: string;
36
+ clearable?: boolean;
37
+ isLoading?: boolean;
38
+ disabled?: boolean;
39
+ id?: string;
40
+ name?: string;
41
+ minDate?: Date;
42
+ maxDate?: Date;
43
+ disabledDates?: Date[];
44
+ minuteStep?: number;
45
+ use12Hour?: boolean;
46
+ 'aria-label'?: string;
47
+ 'aria-describedby'?: string;
48
+ }
49
+
50
+ declare function DateTimePicker({ label, required, helperText, errorMessage, successMessage, warningMessage, variant, size, state, fullWidth, leftElement, rightElement, prefix, suffix, wrapperClassName, inputGroupClassName, inputClassName, labelClassName, helperClassName, className, clearable, isLoading, disabled, value, defaultValue, onChange, onDateTimeChange, placeholder, locale, minDate, maxDate, disabledDates, minuteStep, use12Hour, id: idProp, name, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedby, }: DateTimePickerProps): React.JSX.Element;
51
+
52
+ export { DateTimePicker, type DateTimePickerProps, type DateTimePickerSize, type DateTimePickerState, type DateTimePickerVariant };
@@ -0,0 +1,52 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ type DateTimePickerVariant = 'default' | 'filled' | 'flushed' | 'unstyled';
4
+ type DateTimePickerSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
+ type DateTimePickerState = 'default' | 'error' | 'success' | 'warning';
6
+ interface DateTimePickerProps {
7
+ /** Controlled value — 'YYYY-MM-DDTHH:MM' */
8
+ value?: string;
9
+ defaultValue?: string;
10
+ /** Fires with 'YYYY-MM-DDTHH:MM' string */
11
+ onChange?: (value: string) => void;
12
+ /** Fires with native Date or null */
13
+ onDateTimeChange?: (date: Date | null) => void;
14
+ label?: string;
15
+ required?: boolean;
16
+ helperText?: string;
17
+ errorMessage?: string;
18
+ successMessage?: string;
19
+ warningMessage?: string;
20
+ placeholder?: string;
21
+ locale?: string;
22
+ variant?: DateTimePickerVariant;
23
+ size?: DateTimePickerSize;
24
+ state?: DateTimePickerState;
25
+ fullWidth?: boolean;
26
+ leftElement?: ReactNode;
27
+ rightElement?: ReactNode;
28
+ prefix?: ReactNode;
29
+ suffix?: ReactNode;
30
+ wrapperClassName?: string;
31
+ inputGroupClassName?: string;
32
+ inputClassName?: string;
33
+ labelClassName?: string;
34
+ helperClassName?: string;
35
+ className?: string;
36
+ clearable?: boolean;
37
+ isLoading?: boolean;
38
+ disabled?: boolean;
39
+ id?: string;
40
+ name?: string;
41
+ minDate?: Date;
42
+ maxDate?: Date;
43
+ disabledDates?: Date[];
44
+ minuteStep?: number;
45
+ use12Hour?: boolean;
46
+ 'aria-label'?: string;
47
+ 'aria-describedby'?: string;
48
+ }
49
+
50
+ declare function DateTimePicker({ label, required, helperText, errorMessage, successMessage, warningMessage, variant, size, state, fullWidth, leftElement, rightElement, prefix, suffix, wrapperClassName, inputGroupClassName, inputClassName, labelClassName, helperClassName, className, clearable, isLoading, disabled, value, defaultValue, onChange, onDateTimeChange, placeholder, locale, minDate, maxDate, disabledDates, minuteStep, use12Hour, id: idProp, name, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedby, }: DateTimePickerProps): React.JSX.Element;
51
+
52
+ export { DateTimePicker, type DateTimePickerProps, type DateTimePickerSize, type DateTimePickerState, type DateTimePickerVariant };
@@ -0,0 +1,3 @@
1
+ export { DateTimePicker } from '../chunk-E6KUCC56.mjs';
2
+ import '../chunk-4PRNRENN.mjs';
3
+ import '../chunk-OCPFOFJ4.mjs';
package/dist/index.cjs CHANGED
@@ -4,30 +4,32 @@ var chunkPCYGJNEQ_cjs = require('./chunk-PCYGJNEQ.cjs');
4
4
  var chunk7DDDQ3RH_cjs = require('./chunk-7DDDQ3RH.cjs');
5
5
  var chunkLTG6YP5I_cjs = require('./chunk-LTG6YP5I.cjs');
6
6
  require('./chunk-NMJ5CVZH.cjs');
7
+ var chunkOEU5VG3D_cjs = require('./chunk-OEU5VG3D.cjs');
7
8
  var chunkY6AN7AWX_cjs = require('./chunk-Y6AN7AWX.cjs');
8
9
  var chunkXFNRKHHF_cjs = require('./chunk-XFNRKHHF.cjs');
9
- var chunkDHC5LI2P_cjs = require('./chunk-DHC5LI2P.cjs');
10
+ var chunkFK5HAWIU_cjs = require('./chunk-FK5HAWIU.cjs');
10
11
  var chunkYMMNWJT6_cjs = require('./chunk-YMMNWJT6.cjs');
11
12
  var chunkQ3IFXFFD_cjs = require('./chunk-Q3IFXFFD.cjs');
12
13
  var chunkYK7IS7JL_cjs = require('./chunk-YK7IS7JL.cjs');
13
- var chunkPJWELBN2_cjs = require('./chunk-PJWELBN2.cjs');
14
14
  var chunkTNGW5YHA_cjs = require('./chunk-TNGW5YHA.cjs');
15
+ var chunkPJWELBN2_cjs = require('./chunk-PJWELBN2.cjs');
16
+ var chunkMVUNJPGH_cjs = require('./chunk-MVUNJPGH.cjs');
15
17
  var chunkS7VEND5Z_cjs = require('./chunk-S7VEND5Z.cjs');
16
18
  var chunk56ILK7Y4_cjs = require('./chunk-56ILK7Y4.cjs');
17
19
  var chunkNRZIXK35_cjs = require('./chunk-NRZIXK35.cjs');
18
20
  var chunk5RKET2JO_cjs = require('./chunk-5RKET2JO.cjs');
19
- var chunkDOKSG7AW_cjs = require('./chunk-DOKSG7AW.cjs');
21
+ var chunkBIKJK4L4_cjs = require('./chunk-BIKJK4L4.cjs');
20
22
  var chunkVRZFAKSV_cjs = require('./chunk-VRZFAKSV.cjs');
21
23
  var chunk7R5JRJ2W_cjs = require('./chunk-7R5JRJ2W.cjs');
22
- var chunkOEU5VG3D_cjs = require('./chunk-OEU5VG3D.cjs');
23
24
  var chunkKLBABQEJ_cjs = require('./chunk-KLBABQEJ.cjs');
24
- var chunkW2ZAPLQH_cjs = require('./chunk-W2ZAPLQH.cjs');
25
+ var chunkWVRXSANT_cjs = require('./chunk-WVRXSANT.cjs');
26
+ var chunkHG4BPC2T_cjs = require('./chunk-HG4BPC2T.cjs');
27
+ require('./chunk-J53N2LAE.cjs');
25
28
  var chunkOPOCCRJG_cjs = require('./chunk-OPOCCRJG.cjs');
26
29
  var chunkAJXVELXK_cjs = require('./chunk-AJXVELXK.cjs');
27
30
  var chunkVC7MOPU6_cjs = require('./chunk-VC7MOPU6.cjs');
28
31
  var chunk6R3OYBQ6_cjs = require('./chunk-6R3OYBQ6.cjs');
29
32
  var chunkBBVWG5GH_cjs = require('./chunk-BBVWG5GH.cjs');
30
- var chunkMVUNJPGH_cjs = require('./chunk-MVUNJPGH.cjs');
31
33
  var chunkHIWJDLIS_cjs = require('./chunk-HIWJDLIS.cjs');
32
34
  var chunk5J3OMAO4_cjs = require('./chunk-5J3OMAO4.cjs');
33
35
  var chunkNRCNRHXL_cjs = require('./chunk-NRCNRHXL.cjs');
@@ -631,6 +633,14 @@ Object.defineProperty(exports, "useTheme", {
631
633
  enumerable: true,
632
634
  get: function () { return chunkLTG6YP5I_cjs.useTheme; }
633
635
  });
636
+ Object.defineProperty(exports, "Pagination", {
637
+ enumerable: true,
638
+ get: function () { return chunkOEU5VG3D_cjs.Pagination; }
639
+ });
640
+ Object.defineProperty(exports, "Table", {
641
+ enumerable: true,
642
+ get: function () { return chunkOEU5VG3D_cjs.Table; }
643
+ });
634
644
  Object.defineProperty(exports, "Tabs", {
635
645
  enumerable: true,
636
646
  get: function () { return chunkY6AN7AWX_cjs.Tabs; }
@@ -641,7 +651,7 @@ Object.defineProperty(exports, "TextInput", {
641
651
  });
642
652
  Object.defineProperty(exports, "TimePicker", {
643
653
  enumerable: true,
644
- get: function () { return chunkDHC5LI2P_cjs.TimePicker; }
654
+ get: function () { return chunkFK5HAWIU_cjs.TimePicker; }
645
655
  });
646
656
  Object.defineProperty(exports, "Toaster", {
647
657
  enumerable: true,
@@ -655,13 +665,17 @@ Object.defineProperty(exports, "Header", {
655
665
  enumerable: true,
656
666
  get: function () { return chunkYK7IS7JL_cjs.Header; }
657
667
  });
668
+ Object.defineProperty(exports, "IconButton", {
669
+ enumerable: true,
670
+ get: function () { return chunkTNGW5YHA_cjs.IconButton; }
671
+ });
658
672
  Object.defineProperty(exports, "Image", {
659
673
  enumerable: true,
660
674
  get: function () { return chunkPJWELBN2_cjs.Image; }
661
675
  });
662
- Object.defineProperty(exports, "IconButton", {
676
+ Object.defineProperty(exports, "Loader", {
663
677
  enumerable: true,
664
- get: function () { return chunkTNGW5YHA_cjs.IconButton; }
678
+ get: function () { return chunkMVUNJPGH_cjs.Loader; }
665
679
  });
666
680
  Object.defineProperty(exports, "Skeleton", {
667
681
  enumerable: true,
@@ -697,7 +711,7 @@ Object.defineProperty(exports, "PasswordInput", {
697
711
  });
698
712
  Object.defineProperty(exports, "Phone", {
699
713
  enumerable: true,
700
- get: function () { return chunkDOKSG7AW_cjs.Phone; }
714
+ get: function () { return chunkBIKJK4L4_cjs.Phone; }
701
715
  });
702
716
  Object.defineProperty(exports, "RadioButton", {
703
717
  enumerable: true,
@@ -707,21 +721,17 @@ Object.defineProperty(exports, "Select", {
707
721
  enumerable: true,
708
722
  get: function () { return chunk7R5JRJ2W_cjs.Select; }
709
723
  });
710
- Object.defineProperty(exports, "Pagination", {
711
- enumerable: true,
712
- get: function () { return chunkOEU5VG3D_cjs.Pagination; }
713
- });
714
- Object.defineProperty(exports, "Table", {
715
- enumerable: true,
716
- get: function () { return chunkOEU5VG3D_cjs.Table; }
717
- });
718
724
  Object.defineProperty(exports, "ComboBox", {
719
725
  enumerable: true,
720
726
  get: function () { return chunkKLBABQEJ_cjs.ComboBox; }
721
727
  });
722
728
  Object.defineProperty(exports, "DatePicker", {
723
729
  enumerable: true,
724
- get: function () { return chunkW2ZAPLQH_cjs.DatePicker; }
730
+ get: function () { return chunkWVRXSANT_cjs.DatePicker; }
731
+ });
732
+ Object.defineProperty(exports, "DateTimePicker", {
733
+ enumerable: true,
734
+ get: function () { return chunkHG4BPC2T_cjs.DateTimePicker; }
725
735
  });
726
736
  Object.defineProperty(exports, "Dialog", {
727
737
  enumerable: true,
@@ -775,10 +785,6 @@ Object.defineProperty(exports, "Link", {
775
785
  enumerable: true,
776
786
  get: function () { return chunkBBVWG5GH_cjs.Link; }
777
787
  });
778
- Object.defineProperty(exports, "Loader", {
779
- enumerable: true,
780
- get: function () { return chunkMVUNJPGH_cjs.Loader; }
781
- });
782
788
  Object.defineProperty(exports, "Avatar", {
783
789
  enumerable: true,
784
790
  get: function () { return chunkHIWJDLIS_cjs.Avatar; }
package/dist/index.d.mts CHANGED
@@ -20,6 +20,7 @@ export { Link, LinkProps, LinkSize, LinkUnderline, LinkVariant } from './link/in
20
20
  export { PasswordInput, PasswordInputProps, PasswordInputSize, PasswordInputState, PasswordInputVariant } from './password-input/index.mjs';
21
21
  export { TabItem, Tabs, TabsProps, TabsSize, TabsVariant } from './tabs/index.mjs';
22
22
  export { Avatar, AvatarProps, AvatarSize, AvatarState, AvatarVariant } from './avatar/index.mjs';
23
+ export { DateTimePicker, DateTimePickerProps, DateTimePickerSize, DateTimePickerState, DateTimePickerVariant } from './date-time-picker/index.mjs';
23
24
  export { FileUpload, FileUploadProps, FileUploadSize, FileUploadState } from './file-upload/index.mjs';
24
25
  export { Dialog, DialogBody, DialogBodyProps, DialogCloseButton, DialogCloseButtonProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogProps, DialogSize } from './dialog/index.mjs';
25
26
  export { Modal, ModalBody, ModalBodyProps, ModalCloseButton, ModalCloseButtonProps, ModalFooter, ModalFooterProps, ModalHeader, ModalHeaderProps, ModalProps, ModalSize } from './modal/index.mjs';
package/dist/index.d.ts CHANGED
@@ -20,6 +20,7 @@ export { Link, LinkProps, LinkSize, LinkUnderline, LinkVariant } from './link/in
20
20
  export { PasswordInput, PasswordInputProps, PasswordInputSize, PasswordInputState, PasswordInputVariant } from './password-input/index.js';
21
21
  export { TabItem, Tabs, TabsProps, TabsSize, TabsVariant } from './tabs/index.js';
22
22
  export { Avatar, AvatarProps, AvatarSize, AvatarState, AvatarVariant } from './avatar/index.js';
23
+ export { DateTimePicker, DateTimePickerProps, DateTimePickerSize, DateTimePickerState, DateTimePickerVariant } from './date-time-picker/index.js';
23
24
  export { FileUpload, FileUploadProps, FileUploadSize, FileUploadState } from './file-upload/index.js';
24
25
  export { Dialog, DialogBody, DialogBodyProps, DialogCloseButton, DialogCloseButtonProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogProps, DialogSize } from './dialog/index.js';
25
26
  export { Modal, ModalBody, ModalBodyProps, ModalCloseButton, ModalCloseButtonProps, ModalFooter, ModalFooterProps, ModalHeader, ModalHeaderProps, ModalProps, ModalSize } from './modal/index.js';
package/dist/index.mjs CHANGED
@@ -2,30 +2,32 @@ export { Modal, ModalBody, ModalCloseButton, ModalFooter, ModalHeader } from './
2
2
  export { SearchInput } from './chunk-VHVFRWF5.mjs';
3
3
  export { ThemeProvider, useTheme } from './chunk-Y3NTKFUE.mjs';
4
4
  import './chunk-SBNNV6FE.mjs';
5
+ export { Pagination, Table } from './chunk-7364SUK6.mjs';
5
6
  export { Tabs } from './chunk-G4HVY6FM.mjs';
6
7
  export { TextInput } from './chunk-CMER5LO3.mjs';
7
- export { TimePicker } from './chunk-VKQDW7C2.mjs';
8
+ export { TimePicker } from './chunk-LKNQH36V.mjs';
8
9
  export { Toaster } from './chunk-YOTCXSXL.mjs';
9
10
  export { Sidebar } from './chunk-PJH2KEWK.mjs';
10
11
  export { Header } from './chunk-EL7COTGN.mjs';
11
- export { Image } from './chunk-JV6AWBN5.mjs';
12
12
  export { IconButton } from './chunk-BVBCAAES.mjs';
13
+ export { Image } from './chunk-JV6AWBN5.mjs';
14
+ export { Loader } from './chunk-4DR57X7U.mjs';
13
15
  export { Skeleton, SkeletonAvatar, SkeletonCard, SkeletonTable, SkeletonText } from './chunk-32SKYPQW.mjs';
14
16
  export { MultiSelect } from './chunk-JKPNJ4PZ.mjs';
15
17
  export { OtpInput } from './chunk-RYWDZHKG.mjs';
16
18
  export { PasswordInput } from './chunk-446OJWC6.mjs';
17
- export { Phone } from './chunk-ZCLNSMIW.mjs';
19
+ export { Phone } from './chunk-3YIGXRMU.mjs';
18
20
  export { RadioButton } from './chunk-DN2GFJF4.mjs';
19
21
  export { Select } from './chunk-TIVSMCXZ.mjs';
20
- export { Pagination, Table } from './chunk-7364SUK6.mjs';
21
22
  export { ComboBox } from './chunk-4DA7CRNV.mjs';
22
- export { DatePicker } from './chunk-7WNJ7L4Z.mjs';
23
+ export { DatePicker } from './chunk-M5V2IWA6.mjs';
24
+ export { DateTimePicker } from './chunk-E6KUCC56.mjs';
25
+ import './chunk-4PRNRENN.mjs';
23
26
  export { Dialog, DialogBody, DialogCloseButton, DialogFooter, DialogHeader } from './chunk-OQPCL5XX.mjs';
24
27
  export { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger } from './chunk-2POU3NX4.mjs';
25
28
  export { Email } from './chunk-4QSDPHPI.mjs';
26
29
  export { FileUpload } from './chunk-KA35BV7V.mjs';
27
30
  export { Link } from './chunk-SHQ2MPBE.mjs';
28
- export { Loader } from './chunk-4DR57X7U.mjs';
29
31
  export { Avatar } from './chunk-B5MYGYJY.mjs';
30
32
  export { Badge } from './chunk-H77YWN3L.mjs';
31
33
  export { Breadcrumbs } from './chunk-DMLPA65B.mjs';
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkDOKSG7AW_cjs = require('../chunk-DOKSG7AW.cjs');
3
+ var chunkBIKJK4L4_cjs = require('../chunk-BIKJK4L4.cjs');
4
4
  require('../chunk-L5VQZZVR.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Phone", {
9
9
  enumerable: true,
10
- get: function () { return chunkDOKSG7AW_cjs.Phone; }
10
+ get: function () { return chunkBIKJK4L4_cjs.Phone; }
11
11
  });
@@ -1,4 +1,4 @@
1
- import React__default, { InputHTMLAttributes, ReactNode } from 'react';
1
+ import { InputHTMLAttributes, ReactNode } from 'react';
2
2
 
3
3
  type PhoneVariant = 'default' | 'filled' | 'flushed' | 'unstyled';
4
4
  type PhoneSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
@@ -36,6 +36,6 @@ interface PhoneProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'
36
36
  isLoading?: boolean;
37
37
  }
38
38
 
39
- declare const Phone: React__default.ForwardRefExoticComponent<PhoneProps & React__default.RefAttributes<HTMLInputElement>>;
39
+ declare const Phone: React.ForwardRefExoticComponent<PhoneProps & React.RefAttributes<HTMLInputElement>>;
40
40
 
41
41
  export { Phone, type PhoneProps, type PhoneSize, type PhoneState, type PhoneValue, type PhoneVariant };
@@ -1,4 +1,4 @@
1
- import React__default, { InputHTMLAttributes, ReactNode } from 'react';
1
+ import { InputHTMLAttributes, ReactNode } from 'react';
2
2
 
3
3
  type PhoneVariant = 'default' | 'filled' | 'flushed' | 'unstyled';
4
4
  type PhoneSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
@@ -36,6 +36,6 @@ interface PhoneProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'
36
36
  isLoading?: boolean;
37
37
  }
38
38
 
39
- declare const Phone: React__default.ForwardRefExoticComponent<PhoneProps & React__default.RefAttributes<HTMLInputElement>>;
39
+ declare const Phone: React.ForwardRefExoticComponent<PhoneProps & React.RefAttributes<HTMLInputElement>>;
40
40
 
41
41
  export { Phone, type PhoneProps, type PhoneSize, type PhoneState, type PhoneValue, type PhoneVariant };
@@ -1,2 +1,2 @@
1
- export { Phone } from '../chunk-ZCLNSMIW.mjs';
1
+ export { Phone } from '../chunk-3YIGXRMU.mjs';
2
2
  import '../chunk-OCPFOFJ4.mjs';
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkDHC5LI2P_cjs = require('../chunk-DHC5LI2P.cjs');
3
+ var chunkFK5HAWIU_cjs = require('../chunk-FK5HAWIU.cjs');
4
4
  require('../chunk-L5VQZZVR.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "TimePicker", {
9
9
  enumerable: true,
10
- get: function () { return chunkDHC5LI2P_cjs.TimePicker; }
10
+ get: function () { return chunkFK5HAWIU_cjs.TimePicker; }
11
11
  });
@@ -1,15 +1,24 @@
1
- import { InputHTMLAttributes, ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
 
3
3
  type TimePickerVariant = 'default' | 'filled' | 'flushed' | 'unstyled';
4
4
  type TimePickerSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
5
  type TimePickerState = 'default' | 'error' | 'success' | 'warning';
6
- interface TimePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'type'> {
6
+ interface TimePickerProps {
7
+ /** Controlled value — 'HH:MM' (24h) */
8
+ value?: string;
9
+ /** Uncontrolled default */
10
+ defaultValue?: string;
11
+ /** Fires with 'HH:MM' string */
12
+ onChange?: (value: string) => void;
13
+ /** Fires with typed string or null */
14
+ onTimeChange?: (time: string | null) => void;
7
15
  label?: string;
8
16
  required?: boolean;
9
17
  helperText?: string;
10
18
  errorMessage?: string;
11
19
  successMessage?: string;
12
20
  warningMessage?: string;
21
+ placeholder?: string;
13
22
  variant?: TimePickerVariant;
14
23
  size?: TimePickerSize;
15
24
  state?: TimePickerState;
@@ -23,10 +32,20 @@ interface TimePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 's
23
32
  inputClassName?: string;
24
33
  labelClassName?: string;
25
34
  helperClassName?: string;
35
+ className?: string;
26
36
  clearable?: boolean;
27
37
  isLoading?: boolean;
38
+ disabled?: boolean;
39
+ id?: string;
40
+ name?: string;
41
+ /** Step between minutes, e.g. 1 | 5 | 10 | 15 | 30. Default 1 */
42
+ minuteStep?: number;
43
+ /** Show 12-hour AM/PM mode. Default false */
44
+ use12Hour?: boolean;
45
+ 'aria-label'?: string;
46
+ 'aria-describedby'?: string;
28
47
  }
29
48
 
30
- declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<HTMLInputElement>>;
49
+ declare function TimePicker({ label, required, helperText, errorMessage, successMessage, warningMessage, variant, size, state, fullWidth, leftElement, rightElement, prefix, suffix, wrapperClassName, inputGroupClassName, inputClassName, labelClassName, helperClassName, id: idProp, disabled, className, clearable, isLoading, value, defaultValue, onChange, onTimeChange, placeholder, minuteStep, use12Hour, name, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedby, }: TimePickerProps): React.JSX.Element;
31
50
 
32
51
  export { TimePicker, type TimePickerProps, type TimePickerSize, type TimePickerState, type TimePickerVariant };
@@ -1,15 +1,24 @@
1
- import { InputHTMLAttributes, ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
 
3
3
  type TimePickerVariant = 'default' | 'filled' | 'flushed' | 'unstyled';
4
4
  type TimePickerSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
5
  type TimePickerState = 'default' | 'error' | 'success' | 'warning';
6
- interface TimePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'type'> {
6
+ interface TimePickerProps {
7
+ /** Controlled value — 'HH:MM' (24h) */
8
+ value?: string;
9
+ /** Uncontrolled default */
10
+ defaultValue?: string;
11
+ /** Fires with 'HH:MM' string */
12
+ onChange?: (value: string) => void;
13
+ /** Fires with typed string or null */
14
+ onTimeChange?: (time: string | null) => void;
7
15
  label?: string;
8
16
  required?: boolean;
9
17
  helperText?: string;
10
18
  errorMessage?: string;
11
19
  successMessage?: string;
12
20
  warningMessage?: string;
21
+ placeholder?: string;
13
22
  variant?: TimePickerVariant;
14
23
  size?: TimePickerSize;
15
24
  state?: TimePickerState;
@@ -23,10 +32,20 @@ interface TimePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 's
23
32
  inputClassName?: string;
24
33
  labelClassName?: string;
25
34
  helperClassName?: string;
35
+ className?: string;
26
36
  clearable?: boolean;
27
37
  isLoading?: boolean;
38
+ disabled?: boolean;
39
+ id?: string;
40
+ name?: string;
41
+ /** Step between minutes, e.g. 1 | 5 | 10 | 15 | 30. Default 1 */
42
+ minuteStep?: number;
43
+ /** Show 12-hour AM/PM mode. Default false */
44
+ use12Hour?: boolean;
45
+ 'aria-label'?: string;
46
+ 'aria-describedby'?: string;
28
47
  }
29
48
 
30
- declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<HTMLInputElement>>;
49
+ declare function TimePicker({ label, required, helperText, errorMessage, successMessage, warningMessage, variant, size, state, fullWidth, leftElement, rightElement, prefix, suffix, wrapperClassName, inputGroupClassName, inputClassName, labelClassName, helperClassName, id: idProp, disabled, className, clearable, isLoading, value, defaultValue, onChange, onTimeChange, placeholder, minuteStep, use12Hour, name, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedby, }: TimePickerProps): React.JSX.Element;
31
50
 
32
51
  export { TimePicker, type TimePickerProps, type TimePickerSize, type TimePickerState, type TimePickerVariant };
@@ -1,2 +1,2 @@
1
- export { TimePicker } from '../chunk-VKQDW7C2.mjs';
1
+ export { TimePicker } from '../chunk-LKNQH36V.mjs';
2
2
  import '../chunk-OCPFOFJ4.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bricks-toolkit/toolkit",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "description": "Micro-modularized, fully independent, type-safe UI component library",
5
5
  "license": "MIT",
6
6
  "author": "ITProfound",
@@ -115,6 +115,16 @@
115
115
  "default": "./dist/date-picker/index.cjs"
116
116
  }
117
117
  },
118
+ "./date-time-picker": {
119
+ "import": {
120
+ "types": "./dist/date-time-picker/index.d.mts",
121
+ "default": "./dist/date-time-picker/index.mjs"
122
+ },
123
+ "require": {
124
+ "types": "./dist/date-time-picker/index.d.ts",
125
+ "default": "./dist/date-time-picker/index.cjs"
126
+ }
127
+ },
118
128
  "./dialog": {
119
129
  "import": {
120
130
  "types": "./dist/dialog/index.d.mts",