Skip to content

Commit

Permalink
fix: scripts runs
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaofan2406 committed Jan 23, 2023
1 parent 979f8f1 commit 2d36e62
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 72 deletions.
2 changes: 1 addition & 1 deletion src/components/Breadcrumb/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface BreadcrumbProps {
rootNode?: BreadcrumbRootNode;
divider?: React.ReactNode;
nodes?: BreadcrumbNodes[];
onClick?: (...args: any[]) => any;
onClick: (...args: any[]) => any;
disabled?: boolean;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/ConfirmModal/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface ConfirmModalProps {
/**
* function called when modalApply event is fired
*/
modalApply?: (...args: any[]) => any;
modalApply: (...args: any[]) => any;
/**
* function called when modalClose event is fired
*/
Expand Down
4 changes: 2 additions & 2 deletions src/components/ListPicker/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ export interface ListPickerProps {
itemType?: string;
labelFormatter?: (...args: any[]) => any;
addonFormatter?: (...args: any[]) => any;
modalApply?: (...args: any[]) => any;
modalApply: (...args: any[]) => any;
modalDescription?: string;
modalClassName?: string;
modalClose?: (...args: any[]) => any;
modalClose: (...args: any[]) => any;
modalFootnote?: string;
modalTitle?: string;
show?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions src/components/ListPickerPure/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ export interface ListPickerPureSelectedItems {

export interface ListPickerPureProps {
allowMultiSelection?: boolean;
deselectItem?: (...args: any[]) => any;
deselectItem: (...args: any[]) => any;
emptyMessage?: string;
emptySvgSymbol?: React.ReactNode;
labelFormatter?: (...args: any[]) => any;
addonFormatter?: (...args: any[]) => any;
itemHeaders?: ListPickerPureItemHeaders;
items?: ListPickerPureItems[];
itemType?: string;
selectItem?: (...args: any[]) => any;
selectItem: (...args: any[]) => any;
selectedItems?: ListPickerPureSelectedItems[];
}

Expand Down
26 changes: 0 additions & 26 deletions src/components/Toast/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,6 @@ export interface ToastContainerProps {

declare const ToastContainer: React.FC<ToastContainerProps>;

export type ToastNotificationPosition =
| 'top-right'
| 'top-center'
| 'top-left'
| 'bottom-right'
| 'bottom-center'
| 'bottom-left';

export type ToastNotificationAutoClose = number | boolean;

export type ToastNotificationTheme = 'success' | 'info' | 'alert' | 'attention';

export interface ToastNotificationProps {
/**
* PropTypes.oneOf(['top-right', 'top-center', 'top-left', 'bottom-right', 'bottom-center', 'bottom-left'])
*/
position?: ToastNotificationPosition;
autoClose?: ToastNotificationAutoClose;
title?: string;
theme?: ToastNotificationTheme;
message: React.ReactNode;
}

declare const ToastNotification: React.FC<ToastNotificationProps>;

export type notifyTheme = 'success' | 'info' | 'alert' | 'attention';

export interface notifyProps {
Expand All @@ -69,7 +44,6 @@ declare const dismiss: React.FC<dismissProps>;

declare const Toast: {
Container: typeof ToastContainer;
Notification: typeof ToastNotification;
notify: typeof notify;
dismiss: typeof dismiss;
};
Expand Down
4 changes: 2 additions & 2 deletions src/components/UserListPicker/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export interface UserListPickerProps {
* Array of { avatar: PropTypes.string, givenName: PropTypes.string, surname: PropTypes.string, id: PropTypes.number }
*/
initialSelection?: UserListPickerInitialSelection[];
modalApply?: (...args: any[]) => any;
modalApply: (...args: any[]) => any;
modalDescription?: string;
modalClose?: (...args: any[]) => any;
modalClose: (...args: any[]) => any;
modalTitle?: string;
show?: boolean;
/**
Expand Down
52 changes: 14 additions & 38 deletions www/containers/props.json
Original file line number Diff line number Diff line change
Expand Up @@ -2488,12 +2488,8 @@
"type": {
"name": "func"
},
"required": false,
"description": "",
"defaultValue": {
"value": "() => {\n throw new Error('AdslotUi ListPicker needs a modalApply handler');\n}",
"computed": false
}
"required": true,
"description": ""
},
"modalDescription": {
"type": {
Expand All @@ -2517,12 +2513,8 @@
"type": {
"name": "func"
},
"required": false,
"description": "",
"defaultValue": {
"value": "() => {\n throw new Error('AdslotUi ListPicker needs a modalClose handler');\n}",
"computed": false
}
"required": true,
"description": ""
},
"modalFootnote": {
"type": {
Expand Down Expand Up @@ -2577,12 +2569,8 @@
"type": {
"name": "func"
},
"required": false,
"description": "",
"defaultValue": {
"value": "() => {\n throw new Error('AdslotUi ListPickerPure needs a deselectItem handler');\n}",
"computed": false
}
"required": true,
"description": ""
},
"emptyMessage": {
"type": {
Expand Down Expand Up @@ -2671,12 +2659,8 @@
"type": {
"name": "func"
},
"required": false,
"description": "",
"defaultValue": {
"value": "() => {\n throw new Error('AdslotUi ListPickerPure needs a selectItem handler');\n}",
"computed": false
}
"required": true,
"description": ""
},
"selectedItems": {
"type": {
Expand Down Expand Up @@ -6382,7 +6366,7 @@
"required": false,
"description": "",
"defaultValue": {
"value": "(node) => {\n throw new Error(`AdslotUi TreePickerNode needs an includeNode handler for ${node}`);\n}",
"value": "(node) => {\n console.error(`AdslotUi TreePickerNode needs an includeNode handler for ${node.id}`);\n}",
"computed": false
}
},
Expand Down Expand Up @@ -6419,7 +6403,7 @@
"required": false,
"description": "",
"defaultValue": {
"value": "(node) => {\n throw new Error(`AdslotUi TreePickerNode needs a removeNode handler for ${node}`);\n}",
"value": "(node) => {\n console.error(`AdslotUi TreePickerNode needs a removeNode handler for ${node.id}`);\n}",
"computed": false
}
},
Expand Down Expand Up @@ -6534,12 +6518,8 @@
"type": {
"name": "func"
},
"required": false,
"description": "",
"defaultValue": {
"value": "() => {\n throw new Error('AdslotUi UserListPicker needs a modalApply handler');\n}",
"computed": false
}
"required": true,
"description": ""
},
"modalDescription": {
"type": {
Expand All @@ -6556,12 +6536,8 @@
"type": {
"name": "func"
},
"required": false,
"description": "",
"defaultValue": {
"value": "() => {\n throw new Error('AdslotUi UserListPicker needs a modalClose handler');\n}",
"computed": false
}
"required": true,
"description": ""
},
"modalTitle": {
"type": {
Expand Down

0 comments on commit 2d36e62

Please sign in to comment.