dhx-react-suite 1.0.2 → 1.0.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/dist/dhx-react-suite.js +1099 -767
- package/dist/dhx-react-suite.js.map +1 -1
- package/dist/dhx-react-suite.umd.cjs +2 -2
- package/dist/dhx-react-suite.umd.cjs.map +1 -1
- package/dist/index.d.ts +16 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -133,6 +133,7 @@ export declare interface FormConfig {
|
|
|
133
133
|
rows?: (FormField | FormField[])[];
|
|
134
134
|
padding?: string | number;
|
|
135
135
|
width?: string | number;
|
|
136
|
+
labelWidth?: number;
|
|
136
137
|
buttons?: boolean;
|
|
137
138
|
buttonAlign?: "flex-start" | "center" | "flex-end";
|
|
138
139
|
submitText?: string;
|
|
@@ -141,15 +142,20 @@ export declare interface FormConfig {
|
|
|
141
142
|
}
|
|
142
143
|
|
|
143
144
|
export declare interface FormField {
|
|
144
|
-
type?: "input" | "textarea" | "select" | "checkbox" | "radio" | "slider" | "combo" | "datepicker" | "timepicker" | "fieldset" | "spacer";
|
|
145
|
+
type?: "input" | "textarea" | "select" | "checkbox" | "radio" | "slider" | "combo" | "datepicker" | "timepicker" | "fieldset" | "spacer" | "text" | "toggle" | "colorpicker";
|
|
145
146
|
name: string;
|
|
146
147
|
label?: string;
|
|
148
|
+
labelWidth?: number;
|
|
149
|
+
labelPosition?: "top" | "left";
|
|
147
150
|
placeholder?: string;
|
|
148
151
|
required?: boolean;
|
|
149
152
|
disabled?: boolean;
|
|
150
153
|
value?: unknown;
|
|
151
154
|
inputType?: string;
|
|
152
155
|
icon?: React.ReactNode;
|
|
156
|
+
offIcon?: React.ReactNode;
|
|
157
|
+
text?: string;
|
|
158
|
+
offText?: string;
|
|
153
159
|
helpMessage?: string;
|
|
154
160
|
options?: FormFieldOption[];
|
|
155
161
|
data?: {
|
|
@@ -364,6 +370,8 @@ declare interface RibbonSubItem {
|
|
|
364
370
|
text?: string;
|
|
365
371
|
icon?: React.ReactNode;
|
|
366
372
|
active?: boolean;
|
|
373
|
+
twoState?: boolean;
|
|
374
|
+
group?: string;
|
|
367
375
|
disabled?: boolean;
|
|
368
376
|
tooltip?: string;
|
|
369
377
|
label?: string;
|
|
@@ -400,7 +408,7 @@ export declare interface SidebarProps {
|
|
|
400
408
|
style?: React.CSSProperties;
|
|
401
409
|
}
|
|
402
410
|
|
|
403
|
-
export declare function Slider({ min, max, step, value: valueProp, range, label, tick, onChange, style }: SliderProps): JSX_2.Element;
|
|
411
|
+
export declare function Slider({ min, max, step, value: valueProp, range, label, tick, disabled, onChange, style }: SliderProps): JSX_2.Element;
|
|
404
412
|
|
|
405
413
|
export declare interface SliderProps {
|
|
406
414
|
min?: number;
|
|
@@ -410,6 +418,7 @@ export declare interface SliderProps {
|
|
|
410
418
|
range?: boolean;
|
|
411
419
|
label?: string;
|
|
412
420
|
tick?: boolean;
|
|
421
|
+
disabled?: boolean;
|
|
413
422
|
onChange?: (value: number | [number, number]) => void;
|
|
414
423
|
style?: React.CSSProperties;
|
|
415
424
|
}
|
|
@@ -436,18 +445,21 @@ export declare interface TabView {
|
|
|
436
445
|
html?: string;
|
|
437
446
|
}
|
|
438
447
|
|
|
439
|
-
export declare function Timepicker({ value, onChange, style }: TimepickerProps): JSX_2.Element;
|
|
448
|
+
export declare function Timepicker({ value, onChange, timeFormat, controls, minuteStep, style }: TimepickerProps): JSX_2.Element;
|
|
440
449
|
|
|
441
450
|
export declare interface TimepickerProps {
|
|
442
451
|
value?: TimeValue;
|
|
443
452
|
onChange?: (value: TimeValue) => void;
|
|
453
|
+
timeFormat?: 12 | 24;
|
|
454
|
+
controls?: boolean;
|
|
455
|
+
minuteStep?: number;
|
|
444
456
|
style?: React.CSSProperties;
|
|
445
457
|
}
|
|
446
458
|
|
|
447
459
|
export declare interface TimeValue {
|
|
448
460
|
h: number;
|
|
449
461
|
m: number;
|
|
450
|
-
ampm
|
|
462
|
+
ampm?: "AM" | "PM";
|
|
451
463
|
}
|
|
452
464
|
|
|
453
465
|
export declare type Tokens = typeof tokens;
|