dhx-react-suite 1.0.9 → 1.1.1

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
@@ -181,7 +181,7 @@ declare interface FormFieldOption {
181
181
  export declare interface FormProps {
182
182
  config?: FormConfig;
183
183
  defaultValues?: Record<string, unknown>;
184
- onSubmit?: (values: Record<string, unknown>) => void;
184
+ onSubmit?: (values: Record<string, unknown>) => void | Promise<void>;
185
185
  style?: React.CSSProperties;
186
186
  }
187
187
 
@@ -380,9 +380,10 @@ export declare function Ribbon({ items, onAction, style }: RibbonProps): JSX_2.E
380
380
 
381
381
  declare interface RibbonBlock {
382
382
  type: "block";
383
+ title?: string;
383
384
  label?: string;
384
385
  direction?: "col" | "row";
385
- items?: RibbonSubItem[];
386
+ items?: (RibbonSubItem | RibbonBlock)[];
386
387
  }
387
388
 
388
389
  export declare type RibbonItem = RibbonSubItem | RibbonBlock;
@@ -396,20 +397,23 @@ export declare interface RibbonProps {
396
397
  declare interface RibbonSubItem {
397
398
  id?: string;
398
399
  type?: "separator" | "sep" | "input" | "selectButton";
400
+ value?: string;
399
401
  text?: string;
400
402
  icon?: React.ReactNode;
401
403
  active?: boolean;
402
404
  twoState?: boolean;
403
405
  group?: string;
404
406
  disabled?: boolean;
407
+ hidden?: boolean;
405
408
  tooltip?: string;
406
409
  label?: string;
407
- size?: "large" | "auto";
410
+ size?: "auto" | "small";
408
411
  placeholder?: string;
409
- value?: string;
410
412
  width?: number;
413
+ count?: number;
411
414
  items?: {
412
415
  value: string;
416
+ hotkey?: string;
413
417
  }[];
414
418
  onClick?: (item: RibbonSubItem) => void;
415
419
  onChange?: (value: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dhx-react-suite",
3
- "version": "1.0.9",
3
+ "version": "1.1.1",
4
4
  "description": "TypeScript ui-components",
5
5
  "type": "module",
6
6
  "main": "./dist/dhx-react-suite.umd.cjs",