@nimbus-ds/components 5.50.0 → 5.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/Box/index.d.ts +16 -39
- package/dist/CHANGELOG.md +7 -0
- package/dist/Link/index.d.ts +1 -1
- package/dist/ScrollPane/index.d.ts +46 -55
- package/dist/ScrollPane/index.js +1 -1
- package/dist/SegmentedControl/index.d.ts +16 -39
- package/dist/SplitButton/index.d.ts +16 -39
- package/dist/Stepper/index.d.ts +16 -39
- package/dist/Text/index.d.ts +4 -4
- package/dist/Thumbnail/index.d.ts +1 -1
- package/dist/TimePicker/index.d.ts +343 -0
- package/dist/TimePicker/index.js +2 -0
- package/dist/components-props.json +1 -1
- package/dist/index.d.ts +189 -54
- package/dist/index.js +1 -1
- package/package.json +5 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v7.2.0
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { ButtonHTMLAttributes, ComponentPropsWithRef, DragEvent, HTMLAttributes, ImgHTMLAttributes, InputHTMLAttributes, OptgroupHTMLAttributes, OptionHTMLAttributes, PropsWithChildren, ReactElement, ReactNode, SVGAttributes } from 'react';
|
|
4
|
+
import { ButtonHTMLAttributes, ComponentPropsWithRef, DragEvent, HTMLAttributes, ImgHTMLAttributes, InputHTMLAttributes, OptgroupHTMLAttributes, OptionHTMLAttributes, PropsWithChildren, ReactElement, ReactNode, RefObject, SVGAttributes } from 'react';
|
|
5
5
|
|
|
6
6
|
export interface SkeletonProperties {
|
|
7
7
|
/**
|
|
@@ -109,10 +109,7 @@ declare const propertiesBox: {
|
|
|
109
109
|
gap: {
|
|
110
110
|
none: string;
|
|
111
111
|
"0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
112
|
-
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
113
|
-
* The display property sets whether an box is treated as a block or inline element and the layout used for its children,
|
|
114
|
-
* such as grid or flex.
|
|
115
|
-
*/
|
|
112
|
+
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
116
113
|
"1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
117
114
|
"2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
118
115
|
"2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -136,10 +133,7 @@ declare const propertiesBox: {
|
|
|
136
133
|
gridGap: {
|
|
137
134
|
none: string;
|
|
138
135
|
"0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
139
|
-
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
140
|
-
* The display property sets whether an box is treated as a block or inline element and the layout used for its children,
|
|
141
|
-
* such as grid or flex.
|
|
142
|
-
*/
|
|
136
|
+
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
143
137
|
"1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
144
138
|
"2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
145
139
|
"2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -164,10 +158,7 @@ declare const propertiesBox: {
|
|
|
164
158
|
flexDirection: FlexDirection[];
|
|
165
159
|
flexWrap: FlexWrap[];
|
|
166
160
|
justifyContent: JustifyContent[];
|
|
167
|
-
alignItems: AlignItems[];
|
|
168
|
-
* The boxSizing property sets how the total width and height of an box is calculated.
|
|
169
|
-
* @default border-box
|
|
170
|
-
*/
|
|
161
|
+
alignItems: AlignItems[];
|
|
171
162
|
alignSelf: AlignSelf[];
|
|
172
163
|
pointerEvents: PointerEvents[];
|
|
173
164
|
backgroundColor: {
|
|
@@ -241,7 +232,9 @@ declare const propertiesBox: {
|
|
|
241
232
|
"success-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
242
233
|
"warning-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
243
234
|
"warning-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
244
|
-
"warning-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
235
|
+
"warning-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`; /**
|
|
236
|
+
* The gridTemplateAreas property specifies named grid areas, establishing the cells in the grid and assigning them names.
|
|
237
|
+
*/
|
|
245
238
|
"danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
246
239
|
"danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
247
240
|
"danger-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -275,14 +268,13 @@ declare const propertiesBox: {
|
|
|
275
268
|
};
|
|
276
269
|
borderStyle: BorderStyle[];
|
|
277
270
|
boxSizing: BoxSizing[];
|
|
278
|
-
cursor: Cursor[];
|
|
271
|
+
cursor: Cursor[]; /**
|
|
272
|
+
* The padding properties are used to generate space around an box's content area.
|
|
273
|
+
*/
|
|
279
274
|
spacing: {
|
|
280
275
|
none: string;
|
|
281
276
|
"0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
282
|
-
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
283
|
-
* The display property sets whether an box is treated as a block or inline element and the layout used for its children,
|
|
284
|
-
* such as grid or flex.
|
|
285
|
-
*/
|
|
277
|
+
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
286
278
|
"1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
287
279
|
"2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
288
280
|
"2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -305,10 +297,7 @@ declare const propertiesBox: {
|
|
|
305
297
|
};
|
|
306
298
|
margin: {
|
|
307
299
|
"0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
308
|
-
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
309
|
-
* The display property sets whether an box is treated as a block or inline element and the layout used for its children,
|
|
310
|
-
* such as grid or flex.
|
|
311
|
-
*/
|
|
300
|
+
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
312
301
|
"1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
313
302
|
"2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
314
303
|
"2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -364,9 +353,7 @@ declare const propertiesBox: {
|
|
|
364
353
|
"800": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
365
354
|
"900": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
366
355
|
};
|
|
367
|
-
textAlign: TextAlign[];
|
|
368
|
-
* The paddingLeft property sets the width of the padding area to the left of an box.
|
|
369
|
-
*/
|
|
356
|
+
textAlign: TextAlign[];
|
|
370
357
|
fontWeight: {
|
|
371
358
|
regular: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
372
359
|
medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -374,10 +361,7 @@ declare const propertiesBox: {
|
|
|
374
361
|
};
|
|
375
362
|
fontSize: {
|
|
376
363
|
"0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
377
|
-
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
378
|
-
* The display property sets whether an box is treated as a block or inline element and the layout used for its children,
|
|
379
|
-
* such as grid or flex.
|
|
380
|
-
*/
|
|
364
|
+
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
381
365
|
"1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
382
366
|
"2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
383
367
|
"2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -401,17 +385,12 @@ declare const propertiesBox: {
|
|
|
401
385
|
h2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
402
386
|
h3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
403
387
|
h4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
404
|
-
h5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
405
|
-
* This defines the ability for a flex item to grow if necessary.
|
|
406
|
-
*/
|
|
388
|
+
h5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
407
389
|
h6: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
408
390
|
};
|
|
409
391
|
lineHeight: {
|
|
410
392
|
"0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
411
|
-
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
412
|
-
* The display property sets whether an box is treated as a block or inline element and the layout used for its children,
|
|
413
|
-
* such as grid or flex.
|
|
414
|
-
*/
|
|
393
|
+
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
415
394
|
"1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
416
395
|
"2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
417
396
|
"2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -431,9 +410,7 @@ declare const propertiesBox: {
|
|
|
431
410
|
"16": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
432
411
|
"18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
433
412
|
"20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
434
|
-
h1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
435
|
-
* The flexWrap property sets whether flex items are forced onto one line or can wrap onto multiple lines.
|
|
436
|
-
*/
|
|
413
|
+
h1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
437
414
|
h2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
438
415
|
h3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
439
416
|
h4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -989,9 +966,7 @@ export interface IconButtonSprinkle {
|
|
|
989
966
|
declare const propertiesText: {
|
|
990
967
|
color: {
|
|
991
968
|
"ai-generative": "transparent";
|
|
992
|
-
currentColor: string;
|
|
993
|
-
* The amount of lines at which the text will be trimmed, showing an ellipsis when overflowed.
|
|
994
|
-
*/
|
|
969
|
+
currentColor: string;
|
|
995
970
|
"primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
996
971
|
"primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
997
972
|
"primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -1028,7 +1003,9 @@ declare const propertiesText: {
|
|
|
1028
1003
|
};
|
|
1029
1004
|
fontSize: {
|
|
1030
1005
|
caption: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
1031
|
-
base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
1006
|
+
base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`; /**
|
|
1007
|
+
* The overflow property specifies what happens if content overflows an element's box.
|
|
1008
|
+
*/
|
|
1032
1009
|
highlight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
1033
1010
|
};
|
|
1034
1011
|
wordBreak: WordBreak[];
|
|
@@ -2818,7 +2795,7 @@ export interface LinkProperties {
|
|
|
2818
2795
|
* The textDecoration property specifies the decoration added to link.
|
|
2819
2796
|
* @default neutral
|
|
2820
2797
|
*/
|
|
2821
|
-
textDecoration?: typeof link.properties.textDecoration[number];
|
|
2798
|
+
textDecoration?: (typeof link.properties.textDecoration)[number];
|
|
2822
2799
|
/**
|
|
2823
2800
|
* The fontSize property sets the size of the link.
|
|
2824
2801
|
* @default base
|
|
@@ -3359,7 +3336,7 @@ export interface ThumbnailProperties {
|
|
|
3359
3336
|
* Permitted aspect ratios for the size of the thumbnail image.
|
|
3360
3337
|
* @default 1/1
|
|
3361
3338
|
*/
|
|
3362
|
-
aspectRatio?: typeof thumbnail.properties.aspectRatio[number];
|
|
3339
|
+
aspectRatio?: (typeof thumbnail.properties.aspectRatio)[number];
|
|
3363
3340
|
/**
|
|
3364
3341
|
* Width value of the thumbnail image. Defaults to 100%.
|
|
3365
3342
|
* @default 100%
|
|
@@ -3960,13 +3937,7 @@ export type ScrollPaneArrowVerticalEndProperties = ScrollPaneArrowProperties;
|
|
|
3960
3937
|
export type ScrollPaneArrowVerticalStartProperties = ScrollPaneArrowProperties;
|
|
3961
3938
|
export type ScrollPaneArrowHorizontalEndProperties = ScrollPaneArrowProperties;
|
|
3962
3939
|
export type ScrollPaneArrowHorizontalStartProperties = ScrollPaneArrowProperties;
|
|
3963
|
-
export
|
|
3964
|
-
Item: React.FC<ScrollPaneItemProps>;
|
|
3965
|
-
ArrowHorizontalStart: React.FC<ScrollPaneArrowHorizontalStartProperties>;
|
|
3966
|
-
ArrowHorizontalEnd: React.FC<ScrollPaneArrowHorizontalEndProperties>;
|
|
3967
|
-
ArrowVerticalStart: React.FC<ScrollPaneArrowVerticalStartProperties>;
|
|
3968
|
-
ArrowVerticalEnd: React.FC<ScrollPaneArrowVerticalEndProperties>;
|
|
3969
|
-
}
|
|
3940
|
+
export type ScrollPaneScrollBehavior = "hidden-items" | "always";
|
|
3970
3941
|
export interface ScrollPaneProperties {
|
|
3971
3942
|
/**
|
|
3972
3943
|
* The content to be rendered inside the scroll pane
|
|
@@ -3997,6 +3968,13 @@ export interface ScrollPaneProperties {
|
|
|
3997
3968
|
* @default true
|
|
3998
3969
|
*/
|
|
3999
3970
|
scrollToItemOnClick?: boolean;
|
|
3971
|
+
/**
|
|
3972
|
+
* Defines the scroll behavior when clicking on items
|
|
3973
|
+
* - 'hidden-items': Only scrolls to items that are not fully visible (default)
|
|
3974
|
+
* - 'always': Always scrolls to items, centering them in the viewport
|
|
3975
|
+
* @default "hidden-items"
|
|
3976
|
+
*/
|
|
3977
|
+
scrollBehavior?: ScrollPaneScrollBehavior;
|
|
4000
3978
|
/**
|
|
4001
3979
|
* Enable grab-to-scroll functionality (click and drag to scroll)
|
|
4002
3980
|
* When enabled, prevents item dragging inside the ScrollPane
|
|
@@ -4018,6 +3996,10 @@ export interface ScrollPaneProperties {
|
|
|
4018
3996
|
}
|
|
4019
3997
|
export type ScrollPaneProps = ScrollPaneProperties & Omit<BoxProps, "children"> & {
|
|
4020
3998
|
contentContainerProps?: BoxProps;
|
|
3999
|
+
/**
|
|
4000
|
+
* Ref to the scroll container
|
|
4001
|
+
*/
|
|
4002
|
+
scrollContainerRef?: RefObject<HTMLDivElement | null>;
|
|
4021
4003
|
};
|
|
4022
4004
|
/**
|
|
4023
4005
|
* ScrollPane component handles responsive scrolls in lists that are overflowing inside a container.
|
|
@@ -4029,7 +4011,15 @@ export type ScrollPaneProps = ScrollPaneProperties & Omit<BoxProps, "children">
|
|
|
4029
4011
|
* <ScrollPane.Item>Item 2</ScrollPane.Item>
|
|
4030
4012
|
* </ScrollPane>
|
|
4031
4013
|
*/
|
|
4032
|
-
export declare const ScrollPane:
|
|
4014
|
+
export declare const ScrollPane: {
|
|
4015
|
+
({ children, showGradients, showArrows, showScrollbar, scrollContainerRef: externalScrollContainerRef, direction, scrollToItemOnClick, scrollBehavior, enableGrabScroll, scrollPaneArrowStart, scrollPaneArrowEnd, contentContainerProps, ...rest }: ScrollPaneProps): React.JSX.Element;
|
|
4016
|
+
displayName: string;
|
|
4017
|
+
Item: React.FC<ScrollPaneItemProps>;
|
|
4018
|
+
ArrowHorizontalStart: React.FC<ScrollPaneArrowProperties>;
|
|
4019
|
+
ArrowHorizontalEnd: React.FC<ScrollPaneArrowProperties>;
|
|
4020
|
+
ArrowVerticalStart: React.FC<ScrollPaneArrowProperties>;
|
|
4021
|
+
ArrowVerticalEnd: React.FC<ScrollPaneArrowProperties>;
|
|
4022
|
+
};
|
|
4033
4023
|
export interface SidebarBodyProperties {
|
|
4034
4024
|
/**
|
|
4035
4025
|
* The content of the sidebar body.
|
|
@@ -4610,5 +4600,150 @@ export type SplitButtonProps = SplitButtonProperties & Omit<BoxProps, "children"
|
|
|
4610
4600
|
* SplitButton component allows users to perform actions by clicking a primary button and displaying a dropdown menu with additional actions.
|
|
4611
4601
|
*/
|
|
4612
4602
|
export declare const SplitButton: React.FC<SplitButtonProps> & SplitButtonComponents;
|
|
4603
|
+
export type TimeFormat = "12h" | "24h";
|
|
4604
|
+
export type AmPm = "AM" | "PM";
|
|
4605
|
+
export type TimePickerMode = "scroll" | "dropdown";
|
|
4606
|
+
/**
|
|
4607
|
+
* Translatable labels for the TimePicker component.
|
|
4608
|
+
* All texts can be customized for localization.
|
|
4609
|
+
*/
|
|
4610
|
+
export interface TimePickerLabels {
|
|
4611
|
+
/**
|
|
4612
|
+
* Label for the hours column in 24h format.
|
|
4613
|
+
* @default "Hours"
|
|
4614
|
+
*/
|
|
4615
|
+
hoursLabel?: string;
|
|
4616
|
+
/**
|
|
4617
|
+
* Label for the hour column in 12h format.
|
|
4618
|
+
* @default "Hour"
|
|
4619
|
+
*/
|
|
4620
|
+
hourLabel?: string;
|
|
4621
|
+
/**
|
|
4622
|
+
* Label for the minutes column.
|
|
4623
|
+
* @default "Minutes"
|
|
4624
|
+
*/
|
|
4625
|
+
minutesLabel?: string;
|
|
4626
|
+
/**
|
|
4627
|
+
* Accessible label for the AM/PM selector group.
|
|
4628
|
+
* @default "AM/PM selector"
|
|
4629
|
+
*/
|
|
4630
|
+
amPmSelectorLabel?: string;
|
|
4631
|
+
/**
|
|
4632
|
+
* Display text for the AM option.
|
|
4633
|
+
* @default "AM"
|
|
4634
|
+
*/
|
|
4635
|
+
amLabel?: string;
|
|
4636
|
+
/**
|
|
4637
|
+
* Display text for the PM option.
|
|
4638
|
+
* @default "PM"
|
|
4639
|
+
*/
|
|
4640
|
+
pmLabel?: string;
|
|
4641
|
+
}
|
|
4642
|
+
export interface TimeValue {
|
|
4643
|
+
hours: number;
|
|
4644
|
+
minutes: number;
|
|
4645
|
+
ampm?: AmPm;
|
|
4646
|
+
}
|
|
4647
|
+
export interface TimePickerProperties {
|
|
4648
|
+
/**
|
|
4649
|
+
* Display mode for the time picker panel.
|
|
4650
|
+
* - "scroll": Shows a scroll-based wheel picker with separate hour/minute columns.
|
|
4651
|
+
* - "dropdown": Shows a single scrollable list of time options.
|
|
4652
|
+
* @default "scroll"
|
|
4653
|
+
*/
|
|
4654
|
+
mode?: TimePickerMode;
|
|
4655
|
+
/**
|
|
4656
|
+
* Current time value (HH:mm string format or Date object).
|
|
4657
|
+
* For 12h format, use "HH:mm AM/PM" or just "HH:mm" (will default to AM).
|
|
4658
|
+
*/
|
|
4659
|
+
value?: string | Date | null;
|
|
4660
|
+
/**
|
|
4661
|
+
* Callback fired when the time changes.
|
|
4662
|
+
* @param value - The formatted time string (HH:mm for 24h, hh:mm AM/PM for 12h).
|
|
4663
|
+
* @param date - A Date object representing the selected time (today's date with selected time).
|
|
4664
|
+
*/
|
|
4665
|
+
onChange?: (value: string | null, date: Date | null) => void;
|
|
4666
|
+
/**
|
|
4667
|
+
* Time format: 12-hour with AM/PM or 24-hour.
|
|
4668
|
+
* @default "24h"
|
|
4669
|
+
*/
|
|
4670
|
+
format?: TimeFormat;
|
|
4671
|
+
/**
|
|
4672
|
+
* Step interval in minutes for the time picker.
|
|
4673
|
+
* For scroll mode: controls minute increments in the minutes column.
|
|
4674
|
+
* For dropdown mode: controls the time options shown in the list.
|
|
4675
|
+
* Common values: 1, 15, 30, 60.
|
|
4676
|
+
* @default 1 for scroll picker, 30 for dropdown
|
|
4677
|
+
*/
|
|
4678
|
+
step?: number;
|
|
4679
|
+
/**
|
|
4680
|
+
* Whether the picker is disabled.
|
|
4681
|
+
* @default false
|
|
4682
|
+
*/
|
|
4683
|
+
disabled?: boolean;
|
|
4684
|
+
/**
|
|
4685
|
+
* Placeholder text for the input field.
|
|
4686
|
+
* @default "Select time"
|
|
4687
|
+
*/
|
|
4688
|
+
placeholder?: string;
|
|
4689
|
+
/**
|
|
4690
|
+
* Controls the open state of the picker panel (controlled mode).
|
|
4691
|
+
*/
|
|
4692
|
+
open?: boolean;
|
|
4693
|
+
/**
|
|
4694
|
+
* Callback fired when the panel open state changes.
|
|
4695
|
+
*/
|
|
4696
|
+
onOpenChange?: (open: boolean) => void;
|
|
4697
|
+
/**
|
|
4698
|
+
* Accessible label for the time picker input.
|
|
4699
|
+
*/
|
|
4700
|
+
"aria-label"?: string;
|
|
4701
|
+
/**
|
|
4702
|
+
* ID of an element that labels the time picker.
|
|
4703
|
+
*/
|
|
4704
|
+
"aria-labelledby"?: string;
|
|
4705
|
+
/**
|
|
4706
|
+
* ID of an element that describes the time picker.
|
|
4707
|
+
*/
|
|
4708
|
+
"aria-describedby"?: string;
|
|
4709
|
+
/**
|
|
4710
|
+
* Name attribute for the hidden input (for form submission).
|
|
4711
|
+
*/
|
|
4712
|
+
name?: string;
|
|
4713
|
+
/**
|
|
4714
|
+
* Whether the input is required.
|
|
4715
|
+
* @default false
|
|
4716
|
+
*/
|
|
4717
|
+
required?: boolean;
|
|
4718
|
+
/**
|
|
4719
|
+
* ID attribute for the input element.
|
|
4720
|
+
*/
|
|
4721
|
+
id?: string;
|
|
4722
|
+
/**
|
|
4723
|
+
* Translatable labels for localization.
|
|
4724
|
+
* Allows customization of all text content rendered by the component.
|
|
4725
|
+
*/
|
|
4726
|
+
labels?: TimePickerLabels;
|
|
4727
|
+
}
|
|
4728
|
+
export type OmittedHTMLAttributes = "value" | "onChange" | "placeholder" | "disabled";
|
|
4729
|
+
export interface TimePickerProps extends TimePickerProperties, Omit<HTMLAttributes<HTMLDivElement>, OmittedHTMLAttributes> {
|
|
4730
|
+
}
|
|
4731
|
+
/**
|
|
4732
|
+
* TimePicker allows users to select a time value using either a scroll-based
|
|
4733
|
+
* wheel picker (default) or a dropdown list of time options.
|
|
4734
|
+
*
|
|
4735
|
+
* @example
|
|
4736
|
+
* // Basic 24h scroll picker with 15-minute intervals
|
|
4737
|
+
* <TimePicker value="14:30" onChange={(value) => console.log(value)} step={15} />
|
|
4738
|
+
*
|
|
4739
|
+
* @example
|
|
4740
|
+
* // 12h format scroll picker
|
|
4741
|
+
* <TimePicker format="12h" step={30} />
|
|
4742
|
+
*
|
|
4743
|
+
* @example
|
|
4744
|
+
* // Dropdown mode
|
|
4745
|
+
* <TimePicker mode="dropdown" value="14:30" onChange={(value) => console.log(value)} step={30} />
|
|
4746
|
+
*/
|
|
4747
|
+
export declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
4613
4748
|
|
|
4614
4749
|
export {};
|