@nimbus-ds/components 5.57.2-rc.2 → 5.57.2-rc.4
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/package.json +1 -1
- package/dist/Accordion/index.d.ts +0 -160
- package/dist/Accordion/index.js +0 -2
- package/dist/Alert/index.d.ts +0 -60
- package/dist/Alert/index.js +0 -2
- package/dist/Badge/index.d.ts +0 -55
- package/dist/Badge/index.js +0 -2
- package/dist/Box/index.d.ts +0 -788
- package/dist/Box/index.js +0 -2
- package/dist/Button/index.d.ts +0 -88
- package/dist/Button/index.js +0 -2
- package/dist/CHANGELOG.md +0 -919
- package/dist/Card/index.d.ts +0 -153
- package/dist/Card/index.js +0 -2
- package/dist/Checkbox/index.d.ts +0 -68
- package/dist/Checkbox/index.js +0 -2
- package/dist/Chip/index.d.ts +0 -59
- package/dist/Chip/index.js +0 -2
- package/dist/Collapsible/index.d.ts +0 -45
- package/dist/Collapsible/index.js +0 -2
- package/dist/Divider/index.d.ts +0 -43
- package/dist/Divider/index.js +0 -2
- package/dist/FileUploader/index.d.ts +0 -209
- package/dist/FileUploader/index.js +0 -2
- package/dist/Icon/index.d.ts +0 -122
- package/dist/Icon/index.js +0 -2
- package/dist/IconButton/index.d.ts +0 -173
- package/dist/IconButton/index.js +0 -2
- package/dist/Input/index.d.ts +0 -76
- package/dist/Input/index.js +0 -2
- package/dist/Label/index.d.ts +0 -55
- package/dist/Label/index.js +0 -2
- package/dist/Link/index.d.ts +0 -115
- package/dist/Link/index.js +0 -2
- package/dist/List/index.d.ts +0 -105
- package/dist/List/index.js +0 -2
- package/dist/Modal/index.d.ts +0 -239
- package/dist/Modal/index.js +0 -2
- package/dist/MultiSelect/index.d.ts +0 -107
- package/dist/MultiSelect/index.js +0 -2
- package/dist/Pagination/index.d.ts +0 -41
- package/dist/Pagination/index.js +0 -2
- package/dist/Popover/index.d.ts +0 -166
- package/dist/Popover/index.js +0 -2
- package/dist/ProgressBar/index.d.ts +0 -72
- package/dist/ProgressBar/index.js +0 -2
- package/dist/README.md +0 -235
- package/dist/Radio/index.d.ts +0 -62
- package/dist/Radio/index.js +0 -2
- package/dist/ScrollPane/index.d.ts +0 -921
- package/dist/ScrollPane/index.js +0 -2
- package/dist/SegmentedControl/index.d.ts +0 -890
- package/dist/SegmentedControl/index.js +0 -2
- package/dist/Select/index.d.ts +0 -87
- package/dist/Select/index.js +0 -2
- package/dist/Sidebar/index.d.ts +0 -390
- package/dist/Sidebar/index.js +0 -2
- package/dist/Skeleton/index.d.ts +0 -31
- package/dist/Skeleton/index.js +0 -2
- package/dist/Slider/index.d.ts +0 -158
- package/dist/Slider/index.js +0 -2
- package/dist/Spinner/index.d.ts +0 -53
- package/dist/Spinner/index.js +0 -2
- package/dist/SplitButton/index.d.ts +0 -1018
- package/dist/SplitButton/index.js +0 -2
- package/dist/Stepper/index.d.ts +0 -883
- package/dist/Stepper/index.js +0 -2
- package/dist/Table/index.d.ts +0 -193
- package/dist/Table/index.js +0 -2
- package/dist/Tabs/index.d.ts +0 -92
- package/dist/Tabs/index.js +0 -2
- package/dist/Tag/index.d.ts +0 -51
- package/dist/Tag/index.js +0 -2
- package/dist/Text/index.d.ts +0 -608
- package/dist/Text/index.js +0 -2
- package/dist/Textarea/index.d.ts +0 -76
- package/dist/Textarea/index.js +0 -2
- package/dist/Thumbnail/index.d.ts +0 -73
- package/dist/Thumbnail/index.js +0 -2
- package/dist/TimePicker/index.d.ts +0 -343
- package/dist/TimePicker/index.js +0 -2
- package/dist/Title/index.d.ts +0 -165
- package/dist/Title/index.js +0 -2
- package/dist/Toast/index.d.ts +0 -71
- package/dist/Toast/index.js +0 -2
- package/dist/Toggle/index.d.ts +0 -48
- package/dist/Toggle/index.js +0 -2
- package/dist/Tooltip/index.d.ts +0 -47
- package/dist/Tooltip/index.js +0 -2
- package/dist/index.d.ts +0 -4813
- package/dist/index.js +0 -2
|
@@ -1,343 +0,0 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator v7.2.0
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
5
|
-
|
|
6
|
-
export type TimeFormat = "12h" | "24h";
|
|
7
|
-
export type AmPm = "AM" | "PM";
|
|
8
|
-
export type TimePickerMode = "scroll" | "dropdown";
|
|
9
|
-
/**
|
|
10
|
-
* Translatable labels for the TimePicker component.
|
|
11
|
-
* All texts can be customized for localization.
|
|
12
|
-
*/
|
|
13
|
-
export interface TimePickerLabels {
|
|
14
|
-
/**
|
|
15
|
-
* Label for the hours column in 24h format.
|
|
16
|
-
* @default "Hours"
|
|
17
|
-
*/
|
|
18
|
-
hoursLabel?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Label for the hour column in 12h format.
|
|
21
|
-
* @default "Hour"
|
|
22
|
-
*/
|
|
23
|
-
hourLabel?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Label for the minutes column.
|
|
26
|
-
* @default "Minutes"
|
|
27
|
-
*/
|
|
28
|
-
minutesLabel?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Accessible label for the AM/PM selector group.
|
|
31
|
-
* @default "AM/PM selector"
|
|
32
|
-
*/
|
|
33
|
-
amPmSelectorLabel?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Display text for the AM option.
|
|
36
|
-
* @default "AM"
|
|
37
|
-
*/
|
|
38
|
-
amLabel?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Display text for the PM option.
|
|
41
|
-
* @default "PM"
|
|
42
|
-
*/
|
|
43
|
-
pmLabel?: string;
|
|
44
|
-
}
|
|
45
|
-
export interface TimeValue {
|
|
46
|
-
hours: number;
|
|
47
|
-
minutes: number;
|
|
48
|
-
ampm?: AmPm;
|
|
49
|
-
}
|
|
50
|
-
export interface TimePickerProperties {
|
|
51
|
-
/**
|
|
52
|
-
* Display mode for the time picker panel.
|
|
53
|
-
* - "scroll": Shows a scroll-based wheel picker with separate hour/minute columns.
|
|
54
|
-
* - "dropdown": Shows a single scrollable list of time options.
|
|
55
|
-
* @default "scroll"
|
|
56
|
-
*/
|
|
57
|
-
mode?: TimePickerMode;
|
|
58
|
-
/**
|
|
59
|
-
* Current time value (HH:mm string format or Date object).
|
|
60
|
-
* For 12h format, use "HH:mm AM/PM" or just "HH:mm" (will default to AM).
|
|
61
|
-
*/
|
|
62
|
-
value?: string | Date | null;
|
|
63
|
-
/**
|
|
64
|
-
* Callback fired when the time changes.
|
|
65
|
-
* @param value - The formatted time string (HH:mm for 24h, hh:mm AM/PM for 12h).
|
|
66
|
-
* @param date - A Date object representing the selected time (today's date with selected time).
|
|
67
|
-
*/
|
|
68
|
-
onChange?: (value: string | null, date: Date | null) => void;
|
|
69
|
-
/**
|
|
70
|
-
* Time format: 12-hour with AM/PM or 24-hour.
|
|
71
|
-
* @default "24h"
|
|
72
|
-
*/
|
|
73
|
-
format?: TimeFormat;
|
|
74
|
-
/**
|
|
75
|
-
* Step interval in minutes for the time picker.
|
|
76
|
-
* For scroll mode: controls minute increments in the minutes column.
|
|
77
|
-
* For dropdown mode: controls the time options shown in the list.
|
|
78
|
-
* Common values: 1, 15, 30, 60.
|
|
79
|
-
* @default 1 for scroll picker, 30 for dropdown
|
|
80
|
-
*/
|
|
81
|
-
step?: number;
|
|
82
|
-
/**
|
|
83
|
-
* Whether the picker is disabled.
|
|
84
|
-
* @default false
|
|
85
|
-
*/
|
|
86
|
-
disabled?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Placeholder text for the input field.
|
|
89
|
-
* @default "Select time"
|
|
90
|
-
*/
|
|
91
|
-
placeholder?: string;
|
|
92
|
-
/**
|
|
93
|
-
* Controls the open state of the picker panel (controlled mode).
|
|
94
|
-
*/
|
|
95
|
-
open?: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* Callback fired when the panel open state changes.
|
|
98
|
-
*/
|
|
99
|
-
onOpenChange?: (open: boolean) => void;
|
|
100
|
-
/**
|
|
101
|
-
* Accessible label for the time picker input.
|
|
102
|
-
*/
|
|
103
|
-
"aria-label"?: string;
|
|
104
|
-
/**
|
|
105
|
-
* ID of an element that labels the time picker.
|
|
106
|
-
*/
|
|
107
|
-
"aria-labelledby"?: string;
|
|
108
|
-
/**
|
|
109
|
-
* ID of an element that describes the time picker.
|
|
110
|
-
*/
|
|
111
|
-
"aria-describedby"?: string;
|
|
112
|
-
/**
|
|
113
|
-
* Name attribute for the hidden input (for form submission).
|
|
114
|
-
*/
|
|
115
|
-
name?: string;
|
|
116
|
-
/**
|
|
117
|
-
* Whether the input is required.
|
|
118
|
-
* @default false
|
|
119
|
-
*/
|
|
120
|
-
required?: boolean;
|
|
121
|
-
/**
|
|
122
|
-
* ID attribute for the input element.
|
|
123
|
-
*/
|
|
124
|
-
id?: string;
|
|
125
|
-
/**
|
|
126
|
-
* Translatable labels for localization.
|
|
127
|
-
* Allows customization of all text content rendered by the component.
|
|
128
|
-
*/
|
|
129
|
-
labels?: TimePickerLabels;
|
|
130
|
-
}
|
|
131
|
-
export type OmittedHTMLAttributes = "value" | "onChange" | "placeholder" | "disabled";
|
|
132
|
-
export interface TimePickerProps extends TimePickerProperties, Omit<HTMLAttributes<HTMLDivElement>, OmittedHTMLAttributes> {
|
|
133
|
-
}
|
|
134
|
-
export interface DropdownOption {
|
|
135
|
-
value: string;
|
|
136
|
-
hours: number;
|
|
137
|
-
minutes: number;
|
|
138
|
-
ampm?: AmPm;
|
|
139
|
-
}
|
|
140
|
-
export interface TimePickerPanelBaseProps {
|
|
141
|
-
format: TimeFormat;
|
|
142
|
-
disabled: boolean;
|
|
143
|
-
labels: TimePickerLabels;
|
|
144
|
-
ariaLabel?: string;
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* TimePicker allows users to select a time value using either a scroll-based
|
|
148
|
-
* wheel picker (default) or a dropdown list of time options.
|
|
149
|
-
*
|
|
150
|
-
* @example
|
|
151
|
-
* // Basic 24h scroll picker with 15-minute intervals
|
|
152
|
-
* <TimePicker value="14:30" onChange={(value) => console.log(value)} step={15} />
|
|
153
|
-
*
|
|
154
|
-
* @example
|
|
155
|
-
* // 12h format scroll picker
|
|
156
|
-
* <TimePicker format="12h" step={30} />
|
|
157
|
-
*
|
|
158
|
-
* @example
|
|
159
|
-
* // Dropdown mode
|
|
160
|
-
* <TimePicker mode="dropdown" value="14:30" onChange={(value) => console.log(value)} step={30} />
|
|
161
|
-
*/
|
|
162
|
-
export declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
163
|
-
export interface TimePickerColumnBaseProps {
|
|
164
|
-
/**
|
|
165
|
-
* Time format (affects hour range for hours column).
|
|
166
|
-
*/
|
|
167
|
-
format: TimeFormat;
|
|
168
|
-
/**
|
|
169
|
-
* Label for the column (for accessibility).
|
|
170
|
-
*/
|
|
171
|
-
label?: string;
|
|
172
|
-
/**
|
|
173
|
-
* Step interval in minutes (only applies to minutes column).
|
|
174
|
-
* @default 1
|
|
175
|
-
*/
|
|
176
|
-
step?: number;
|
|
177
|
-
}
|
|
178
|
-
export interface TimePickerColumnSingleProps extends TimePickerColumnBaseProps {
|
|
179
|
-
/**
|
|
180
|
-
* Type of values displayed in the column.
|
|
181
|
-
*/
|
|
182
|
-
type: "hours" | "minutes";
|
|
183
|
-
/**
|
|
184
|
-
* Available options for the column.
|
|
185
|
-
* When provided, the column uses these values instead of computing them internally.
|
|
186
|
-
*/
|
|
187
|
-
options: number[];
|
|
188
|
-
/**
|
|
189
|
-
* Current time picker column value.
|
|
190
|
-
*/
|
|
191
|
-
value?: number;
|
|
192
|
-
/**
|
|
193
|
-
* Currently selected value.
|
|
194
|
-
*/
|
|
195
|
-
selected?: number;
|
|
196
|
-
/**
|
|
197
|
-
* Callback when a value is selected.
|
|
198
|
-
*/
|
|
199
|
-
onSelect: (value: number) => void;
|
|
200
|
-
/**
|
|
201
|
-
* Callback when Tab is pressed to move to next column.
|
|
202
|
-
*/
|
|
203
|
-
onTabNext?: () => void;
|
|
204
|
-
/**
|
|
205
|
-
* Callback when Shift+Tab is pressed to move to previous column.
|
|
206
|
-
*/
|
|
207
|
-
onTabPrev?: () => void;
|
|
208
|
-
}
|
|
209
|
-
export interface TimePickerColumnCombinedProps extends TimePickerColumnBaseProps {
|
|
210
|
-
/**
|
|
211
|
-
* Type "combined" shows full time options (HH:mm) in a simple scrollable list.
|
|
212
|
-
*/
|
|
213
|
-
type: "combined";
|
|
214
|
-
/**
|
|
215
|
-
* Pre-computed dropdown options for combined mode.
|
|
216
|
-
*/
|
|
217
|
-
options: DropdownOption[];
|
|
218
|
-
/**
|
|
219
|
-
* The current/initial time value string (e.g., "14:30").
|
|
220
|
-
*/
|
|
221
|
-
currentValue?: string | null;
|
|
222
|
-
/**
|
|
223
|
-
* The currently selected time value string.
|
|
224
|
-
*/
|
|
225
|
-
selectedValue?: string | null;
|
|
226
|
-
/**
|
|
227
|
-
* Callback when a time option is selected.
|
|
228
|
-
*/
|
|
229
|
-
onSelectTime: (hours: number, minutes: number) => void;
|
|
230
|
-
/**
|
|
231
|
-
* Ref to the scroll container.
|
|
232
|
-
*/
|
|
233
|
-
scrollContainerRef?: RefObject<HTMLDivElement | null>;
|
|
234
|
-
}
|
|
235
|
-
export type TimePickerColumnProps = TimePickerColumnSingleProps | TimePickerColumnCombinedProps;
|
|
236
|
-
/**
|
|
237
|
-
* TimePickerColumn renders a scrollable column of time values.
|
|
238
|
-
* For type "hours" or "minutes": Uses ScrollPane with gradients for wheel-style selection.
|
|
239
|
-
* For type "combined": Renders a flat scrollable list of full time options.
|
|
240
|
-
*/
|
|
241
|
-
export declare const TimePickerColumn: React.FC<TimePickerColumnProps>;
|
|
242
|
-
export interface TimePickerOptionProps extends Omit<HTMLAttributes<HTMLButtonElement>, "role"> {
|
|
243
|
-
/**
|
|
244
|
-
* Whether this option is currently selected.
|
|
245
|
-
*/
|
|
246
|
-
selected?: boolean;
|
|
247
|
-
/**
|
|
248
|
-
* Whether this option represents the current time.
|
|
249
|
-
*/
|
|
250
|
-
current?: boolean;
|
|
251
|
-
/**
|
|
252
|
-
* Whether this option is disabled.
|
|
253
|
-
*/
|
|
254
|
-
disabled?: boolean;
|
|
255
|
-
/**
|
|
256
|
-
* The display value/label for this option.
|
|
257
|
-
*/
|
|
258
|
-
children: ReactNode;
|
|
259
|
-
/**
|
|
260
|
-
* Callback when this option is selected.
|
|
261
|
-
*/
|
|
262
|
-
onSelect?: () => void;
|
|
263
|
-
/**
|
|
264
|
-
* ARIA role for the button. Use "option" for listbox and "radio" for radiogroup.
|
|
265
|
-
* @default "option"
|
|
266
|
-
*/
|
|
267
|
-
role?: "option" | "radio";
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
* TimePickerOption is a single selectable time option in dropdown mode.
|
|
271
|
-
*/
|
|
272
|
-
export declare const TimePickerOption: React.ForwardRefExoticComponent<TimePickerOptionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
273
|
-
export interface TimePickerAmPmProps {
|
|
274
|
-
/**
|
|
275
|
-
* Currently selected AM/PM value.
|
|
276
|
-
*/
|
|
277
|
-
current?: AmPm;
|
|
278
|
-
/**
|
|
279
|
-
* Selected AM/PM value.
|
|
280
|
-
*/
|
|
281
|
-
selected?: AmPm;
|
|
282
|
-
/**
|
|
283
|
-
* Callback when new value of AM/PM is selected.
|
|
284
|
-
*/
|
|
285
|
-
onSelect: (value: AmPm) => void;
|
|
286
|
-
/**
|
|
287
|
-
* Whether the AM/PM selector is disabled.
|
|
288
|
-
*/
|
|
289
|
-
disabled?: boolean;
|
|
290
|
-
/**
|
|
291
|
-
* Display text for the AM option.
|
|
292
|
-
* @default "AM"
|
|
293
|
-
*/
|
|
294
|
-
amLabel?: string;
|
|
295
|
-
/**
|
|
296
|
-
* Display text for the PM option.
|
|
297
|
-
* @default "PM"
|
|
298
|
-
*/
|
|
299
|
-
pmLabel?: string;
|
|
300
|
-
/**
|
|
301
|
-
* Accessible label for the AM/PM selector group.
|
|
302
|
-
* @default "AM/PM selector"
|
|
303
|
-
*/
|
|
304
|
-
selectorLabel?: string;
|
|
305
|
-
/**
|
|
306
|
-
* Callback when Shift+Tab is pressed to move to previous column.
|
|
307
|
-
*/
|
|
308
|
-
onTabPrev?: () => void;
|
|
309
|
-
}
|
|
310
|
-
/**
|
|
311
|
-
* TimePickerAmPm renders the AM/PM toggle buttons for 12-hour format.
|
|
312
|
-
* Implements the roving tabindex pattern for radio group keyboard navigation.
|
|
313
|
-
*/
|
|
314
|
-
export declare const TimePickerAmPm: React.FC<TimePickerAmPmProps>;
|
|
315
|
-
export interface TimePickerDropdownProps extends TimePickerPanelBaseProps {
|
|
316
|
-
step: number;
|
|
317
|
-
dropdownOptions: DropdownOption[];
|
|
318
|
-
initialValue: TimeValue | null;
|
|
319
|
-
internalTimeValue: Partial<TimeValue> | null;
|
|
320
|
-
selectTime: (hours: number, minutes: number, ampm?: AmPm) => void;
|
|
321
|
-
setAmPm: (ampm: AmPm) => void;
|
|
322
|
-
}
|
|
323
|
-
/**
|
|
324
|
-
* Internal dropdown panel component that displays a scrollable list
|
|
325
|
-
* of time options with optional AM/PM toggle.
|
|
326
|
-
*/
|
|
327
|
-
export declare const TimePickerDropdown: React.FC<TimePickerDropdownProps>;
|
|
328
|
-
export interface TimePickerScrollPanelProps extends TimePickerPanelBaseProps {
|
|
329
|
-
hourOptions: number[];
|
|
330
|
-
minuteOptions: number[];
|
|
331
|
-
initialValue: TimeValue | null;
|
|
332
|
-
timeValue: Partial<TimeValue> | null;
|
|
333
|
-
setHours: (hours: number) => void;
|
|
334
|
-
setMinutes: (minutes: number) => void;
|
|
335
|
-
setAmPm: (ampm: AmPm) => void;
|
|
336
|
-
}
|
|
337
|
-
/**
|
|
338
|
-
* Internal scroll panel component that displays hour and minute columns
|
|
339
|
-
* with a scroll-wheel interface for time selection.
|
|
340
|
-
*/
|
|
341
|
-
export declare const TimePickerScroll: React.FC<TimePickerScrollPanelProps>;
|
|
342
|
-
|
|
343
|
-
export {};
|