ods-component-lib 1.2.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/README.md +30 -0
- package/dist/components/antd/alert/OdsAlert.d.ts +4 -0
- package/dist/components/antd/alert/OdsAlert.styled.d.ts +4 -0
- package/dist/components/antd/alert/OtiAlert.d.ts +4 -0
- package/dist/components/antd/alert/OtiAlert.styled.d.ts +4 -0
- package/dist/components/antd/autocomplete/OdsAutoComplete.d.ts +7 -0
- package/dist/components/antd/autocomplete/OdsAutoComplete.styled.d.ts +9 -0
- package/dist/components/antd/autocomplete/OtiAutoComplete.d.ts +7 -0
- package/dist/components/antd/autocomplete/OtiAutoComplete.styled.d.ts +9 -0
- package/dist/components/antd/button/OdsButton.d.ts +24 -0
- package/dist/components/antd/button/OdsButton.styled.d.ts +11 -0
- package/dist/components/antd/button/OdsButton.test.d.ts +1 -0
- package/dist/components/antd/button/OdsDropdownButton.d.ts +9 -0
- package/dist/components/antd/button/OtiButton.d.ts +24 -0
- package/dist/components/antd/button/OtiButton.styled.d.ts +11 -0
- package/dist/components/antd/button/OtiButton.test.d.ts +1 -0
- package/dist/components/antd/button/OtiDropdownButton.d.ts +9 -0
- package/dist/components/antd/checkbox/OdsCheckbox.d.ts +16 -0
- package/dist/components/antd/checkbox/OdsCheckbox.styled.d.ts +4 -0
- package/dist/components/antd/checkbox/OdsCheckboxGroup.d.ts +18 -0
- package/dist/components/antd/checkbox/OtiCheckbox.d.ts +16 -0
- package/dist/components/antd/checkbox/OtiCheckbox.styled.d.ts +4 -0
- package/dist/components/antd/checkbox/OtiCheckboxGroup.d.ts +18 -0
- package/dist/components/antd/collapse/OdsCollapse.d.ts +4 -0
- package/dist/components/antd/collapse/OdsCollapse.styled.d.ts +4 -0
- package/dist/components/antd/collapse/OtiCollapse.d.ts +4 -0
- package/dist/components/antd/collapse/OtiCollapse.styled.d.ts +4 -0
- package/dist/components/antd/datepicker/OdsDateRangepicker.d.ts +4 -0
- package/dist/components/antd/datepicker/OdsDatepicker.d.ts +4 -0
- package/dist/components/antd/datepicker/OdsDatepicker.styled.d.ts +1 -0
- package/dist/components/antd/datepicker/OtiDateRangepicker.d.ts +4 -0
- package/dist/components/antd/datepicker/OtiDatepicker.d.ts +4 -0
- package/dist/components/antd/datepicker/OtiDatepicker.styled.d.ts +1 -0
- package/dist/components/antd/divider/OdsDivider.d.ts +4 -0
- package/dist/components/antd/divider/OdsDivider.styled.d.ts +2 -0
- package/dist/components/antd/divider/OtiDivider.d.ts +4 -0
- package/dist/components/antd/divider/OtiDivider.styled.d.ts +2 -0
- package/dist/components/antd/form/OdsBasicForm.d.ts +18 -0
- package/dist/components/antd/form/OtiBasicForm.d.ts +18 -0
- package/dist/components/antd/icon/OdsIcon.d.ts +9 -0
- package/dist/components/antd/icon/OtiIcon.d.ts +9 -0
- package/dist/components/antd/image/OdsImage.d.ts +7 -0
- package/dist/components/antd/image/OdsImagePreviewGroup.d.ts +4 -0
- package/dist/components/antd/image/OtiImage.d.ts +7 -0
- package/dist/components/antd/image/OtiImagePreviewGroup.d.ts +4 -0
- package/dist/components/antd/input/OdsInput..d.ts +4 -0
- package/dist/components/antd/input/OdsInput.styled.d.ts +7 -0
- package/dist/components/antd/input/OdsPassword.d.ts +4 -0
- package/dist/components/antd/input/OdsSearch.d.ts +4 -0
- package/dist/components/antd/input/OdsTextArea.d.ts +4 -0
- package/dist/components/antd/input/OtiInput..d.ts +4 -0
- package/dist/components/antd/input/OtiInput.styled.d.ts +7 -0
- package/dist/components/antd/input/OtiPassword.d.ts +4 -0
- package/dist/components/antd/input/OtiSearch.d.ts +4 -0
- package/dist/components/antd/input/OtiTextArea.d.ts +4 -0
- package/dist/components/antd/message/OdsMessage.d.ts +5 -0
- package/dist/components/antd/message/OtiMessage.d.ts +5 -0
- package/dist/components/antd/modal/OdsModal.d.ts +4 -0
- package/dist/components/antd/modal/OtiModal.d.ts +4 -0
- package/dist/components/antd/radio/OdsRadio.d.ts +16 -0
- package/dist/components/antd/radio/OdsRadio.styled.d.ts +5 -0
- package/dist/components/antd/radio/OdsRadioGroup.d.ts +7 -0
- package/dist/components/antd/radio/OtiRadio.d.ts +16 -0
- package/dist/components/antd/radio/OtiRadio.styled.d.ts +5 -0
- package/dist/components/antd/radio/OtiRadioGroup.d.ts +7 -0
- package/dist/components/antd/rate/OdsRate.d.ts +6 -0
- package/dist/components/antd/rate/OdsRate.styled.d.ts +2 -0
- package/dist/components/antd/rate/OtiRate.d.ts +6 -0
- package/dist/components/antd/rate/OtiRate.styled.d.ts +2 -0
- package/dist/components/antd/select/OdsSelect.d.ts +4 -0
- package/dist/components/antd/select/OdsSelect.styled.d.ts +11 -0
- package/dist/components/antd/select/OtiSelect.d.ts +4 -0
- package/dist/components/antd/select/OtiSelect.styled.d.ts +11 -0
- package/dist/components/antd/switch/OdsSwitch.d.ts +4 -0
- package/dist/components/antd/switch/OdsSwitch.styled.d.ts +2 -0
- package/dist/components/antd/switch/OtiSwitch.d.ts +4 -0
- package/dist/components/antd/switch/OtiSwitch.styled.d.ts +2 -0
- package/dist/components/antd/table/OdsTable.d.ts +3 -0
- package/dist/components/antd/table/OdsTable.styled.d.ts +10 -0
- package/dist/components/antd/table/OtiTable.d.ts +3 -0
- package/dist/components/antd/table/OtiTable.styled.d.ts +10 -0
- package/dist/components/antd/timepicker/OdsRangeTimepicker.d.ts +4 -0
- package/dist/components/antd/timepicker/OdsTimepicker.d.ts +4 -0
- package/dist/components/antd/timepicker/OdsTimepicker.styled.d.ts +5 -0
- package/dist/components/antd/timepicker/OtiRangeTimepicker.d.ts +4 -0
- package/dist/components/antd/timepicker/OtiTimepicker.d.ts +4 -0
- package/dist/components/antd/timepicker/OtiTimepicker.styled.d.ts +5 -0
- package/dist/components/devextreme/datagrid/OdsDataGrid.d.ts +22 -0
- package/dist/index.css +9 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/index.modern.js +21 -0
- package/dist/index.modern.js.map +1 -0
- package/dist/index.test.d.ts +1 -0
- package/dist/tokens/design-system-dark/build/js/variables.d.ts +233 -0
- package/dist/tokens/design-system-light/build/js/variables.d.ts +335 -0
- package/dist/tokens/theme.d.ts +4 -0
- package/dist/utils/tokenConverter.d.ts +1 -0
- package/package.json +93 -0
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# odeon-component-library
|
|
2
|
+
|
|
3
|
+
> Odeon desgin system component library
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/odeon-component-library) [](https://standardjs.com)
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install --save odeon-component-library
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import React, { Component } from 'react'
|
|
17
|
+
|
|
18
|
+
import MyComponent from 'odeon-component-library'
|
|
19
|
+
import 'odeon-component-library/dist/index.css'
|
|
20
|
+
|
|
21
|
+
class Example extends Component {
|
|
22
|
+
render() {
|
|
23
|
+
return <MyComponent />
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## License
|
|
29
|
+
|
|
30
|
+
MIT © [OdeonTechnology](https://github.com/OdeonTechnology)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AutoCompleteProps } from "antd";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export interface IAutoCompleteProps extends AutoCompleteProps {
|
|
4
|
+
onSelect?: React.MouseEventHandler<HTMLElement>;
|
|
5
|
+
}
|
|
6
|
+
declare function OdsAutoComplete(props: IAutoCompleteProps): React.JSX.Element;
|
|
7
|
+
export default OdsAutoComplete;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledAutoComplete: import("styled-components").StyledComponent<(<ValueType = any, OptionType extends import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType = import("rc-select/lib/Select").DefaultOptionType>(props: import("antd").AutoCompleteProps<ValueType, OptionType> & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
} & {
|
|
5
|
+
ref?: ((instance: import("antd").RefSelectProps | null) => void) | import("react").RefObject<import("antd").RefSelectProps> | null | undefined;
|
|
6
|
+
}) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>) & {
|
|
7
|
+
Option: import("rc-select/lib/Option").OptionFC;
|
|
8
|
+
_InternalPanelDoNotUseOrYouWillBeFired: any;
|
|
9
|
+
}, any, {}, never>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AutoCompleteProps } from "antd";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export interface IAutoCompleteProps extends AutoCompleteProps {
|
|
4
|
+
onSelect?: React.MouseEventHandler<HTMLElement>;
|
|
5
|
+
}
|
|
6
|
+
declare function OdsAutoComplete(props: IAutoCompleteProps): React.JSX.Element;
|
|
7
|
+
export default OdsAutoComplete;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledAutoComplete: import("styled-components").StyledComponent<(<ValueType = any, OptionType extends import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType = import("rc-select/lib/Select").DefaultOptionType>(props: import("antd").AutoCompleteProps<ValueType, OptionType> & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
} & {
|
|
5
|
+
ref?: ((instance: import("antd").RefSelectProps | null) => void) | import("react").RefObject<import("antd").RefSelectProps> | null | undefined;
|
|
6
|
+
}) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>) & {
|
|
7
|
+
Option: import("rc-select/lib/Option").OptionFC;
|
|
8
|
+
_InternalPanelDoNotUseOrYouWillBeFired: any;
|
|
9
|
+
}, any, {}, never>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BaseButtonProps } from 'antd/es/button/button';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param props
|
|
6
|
+
* block : boolean
|
|
7
|
+
* type : primary | ghost | dashed | link | text | default
|
|
8
|
+
* size : large | middle | small
|
|
9
|
+
* shape : default | circle | round
|
|
10
|
+
* loading : boolean | {delay:number}
|
|
11
|
+
* icon : ReactNode
|
|
12
|
+
* htmlType : button
|
|
13
|
+
* diabled : boolean
|
|
14
|
+
* classNames : Semantic DOM class
|
|
15
|
+
* styles : Semantic DOM style
|
|
16
|
+
* onClick : (checked: boolean) => void
|
|
17
|
+
* @returns antd styled button
|
|
18
|
+
*/
|
|
19
|
+
export interface IButtonProps extends BaseButtonProps {
|
|
20
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
21
|
+
htmlType?: string;
|
|
22
|
+
}
|
|
23
|
+
declare function OdsButton(props: any): React.JSX.Element;
|
|
24
|
+
export default OdsButton;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Partial<{
|
|
3
|
+
href: string;
|
|
4
|
+
target?: string | undefined;
|
|
5
|
+
onClick?: ((event: import("react").MouseEvent<HTMLAnchorElement, MouseEvent>) => void) | undefined;
|
|
6
|
+
} & import("antd/es/button/button").BaseButtonProps & Pick<import("react").AnchorHTMLAttributes<HTMLButtonElement | HTMLAnchorElement>, "slot" | "style" | "title" | "role" | "className" | "onMouseEnter" | "onMouseLeave" | "children" | "id" | "tabIndex" | "autoFocus" | "placeholder" | "onBlur" | "onFocus" | "onKeyUp" | "onKeyDown" | "onMouseDown" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onSelect" | "defaultValue" | "onChange" | "download" | "href" | "hrefLang" | "media" | "ping" | "target" | "referrerPolicy" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "spellCheck" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & {
|
|
7
|
+
htmlType?: "button" | "submit" | "reset" | undefined;
|
|
8
|
+
onClick?: ((event: import("react").MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined;
|
|
9
|
+
} & Pick<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "form" | "slot" | "style" | "title" | "name" | "role" | "className" | "onMouseEnter" | "onMouseLeave" | "children" | "id" | "tabIndex" | "autoFocus" | "placeholder" | "disabled" | "onBlur" | "onFocus" | "onKeyUp" | "onKeyDown" | "onMouseDown" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onSelect" | "value" | "defaultValue" | "onChange" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "spellCheck" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget">> & import("react").RefAttributes<HTMLElement>> & {
|
|
10
|
+
Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
|
|
11
|
+
}, any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DropdownProps } from 'antd';
|
|
3
|
+
import { ItemType } from 'antd/es/menu/hooks/useItems';
|
|
4
|
+
export interface IButtonProps extends DropdownProps {
|
|
5
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
6
|
+
items: ItemType[];
|
|
7
|
+
}
|
|
8
|
+
declare function OdsDropdownButton(props: IButtonProps): React.JSX.Element;
|
|
9
|
+
export default OdsDropdownButton;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BaseButtonProps } from 'antd/es/button/button';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param props
|
|
6
|
+
* block : boolean
|
|
7
|
+
* type : primary | ghost | dashed | link | text | default
|
|
8
|
+
* size : large | middle | small
|
|
9
|
+
* shape : default | circle | round
|
|
10
|
+
* loading : boolean | {delay:number}
|
|
11
|
+
* icon : ReactNode
|
|
12
|
+
* htmlType : button
|
|
13
|
+
* diabled : boolean
|
|
14
|
+
* classNames : Semantic DOM class
|
|
15
|
+
* styles : Semantic DOM style
|
|
16
|
+
* onClick : (checked: boolean) => void
|
|
17
|
+
* @returns antd styled button
|
|
18
|
+
*/
|
|
19
|
+
export interface IButtonProps extends BaseButtonProps {
|
|
20
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
21
|
+
htmlType?: string;
|
|
22
|
+
}
|
|
23
|
+
declare function OdsButton(props: any): React.JSX.Element;
|
|
24
|
+
export default OdsButton;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Partial<{
|
|
3
|
+
href: string;
|
|
4
|
+
target?: string | undefined;
|
|
5
|
+
onClick?: ((event: import("react").MouseEvent<HTMLAnchorElement, MouseEvent>) => void) | undefined;
|
|
6
|
+
} & import("antd/es/button/button").BaseButtonProps & Pick<import("react").AnchorHTMLAttributes<HTMLButtonElement | HTMLAnchorElement>, "slot" | "style" | "title" | "role" | "className" | "onMouseEnter" | "onMouseLeave" | "children" | "id" | "tabIndex" | "autoFocus" | "placeholder" | "onBlur" | "onFocus" | "onKeyUp" | "onKeyDown" | "onMouseDown" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onSelect" | "defaultValue" | "onChange" | "download" | "href" | "hrefLang" | "media" | "ping" | "target" | "referrerPolicy" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "spellCheck" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & {
|
|
7
|
+
htmlType?: "button" | "submit" | "reset" | undefined;
|
|
8
|
+
onClick?: ((event: import("react").MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined;
|
|
9
|
+
} & Pick<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "form" | "slot" | "style" | "title" | "name" | "role" | "className" | "onMouseEnter" | "onMouseLeave" | "children" | "id" | "tabIndex" | "autoFocus" | "placeholder" | "disabled" | "onBlur" | "onFocus" | "onKeyUp" | "onKeyDown" | "onMouseDown" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onSelect" | "value" | "defaultValue" | "onChange" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "spellCheck" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget">> & import("react").RefAttributes<HTMLElement>> & {
|
|
10
|
+
Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
|
|
11
|
+
}, any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DropdownProps } from 'antd';
|
|
3
|
+
import { ItemType } from 'antd/es/menu/hooks/useItems';
|
|
4
|
+
export interface IButtonProps extends DropdownProps {
|
|
5
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
6
|
+
items: ItemType[];
|
|
7
|
+
}
|
|
8
|
+
declare function OdsDropdownButton(props: IButtonProps): React.JSX.Element;
|
|
9
|
+
export default OdsDropdownButton;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CheckboxProps } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param props
|
|
6
|
+
* checked : boolean
|
|
7
|
+
* defaultChecked : boolean
|
|
8
|
+
* indeterminate : boolean
|
|
9
|
+
* disabled : boolean
|
|
10
|
+
* onChange : (checked: boolean) => void
|
|
11
|
+
* classNames : Semantic DOM class
|
|
12
|
+
* styles : Semantic DOM style
|
|
13
|
+
* @returns antd styled checkbox
|
|
14
|
+
*/
|
|
15
|
+
declare function OdsCheckbox(props: CheckboxProps): React.JSX.Element;
|
|
16
|
+
export default OdsCheckbox;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledCheckbox: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").CheckboxProps & import("react").RefAttributes<HTMLInputElement>> & {
|
|
3
|
+
Group: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("antd/es/checkbox").CheckboxGroupProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
4
|
+
}, any, {}, never>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CheckboxGroupProps } from 'antd/es/checkbox';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param props
|
|
6
|
+
* checked : boolean
|
|
7
|
+
* defaultChecked : boolean
|
|
8
|
+
* indeterminate : boolean
|
|
9
|
+
* disabled : boolean
|
|
10
|
+
* onChange : (checked: boolean) => void
|
|
11
|
+
* classNames : Semantic DOM class
|
|
12
|
+
* styles : Semantic DOM style
|
|
13
|
+
* @returns antd checkbox group
|
|
14
|
+
*/
|
|
15
|
+
export interface ICheckboxGropProps extends CheckboxGroupProps {
|
|
16
|
+
}
|
|
17
|
+
declare function OdsCheckboxGroup(props: ICheckboxGropProps): React.JSX.Element;
|
|
18
|
+
export default OdsCheckboxGroup;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CheckboxProps } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param props
|
|
6
|
+
* checked : boolean
|
|
7
|
+
* defaultChecked : boolean
|
|
8
|
+
* indeterminate : boolean
|
|
9
|
+
* disabled : boolean
|
|
10
|
+
* onChange : (checked: boolean) => void
|
|
11
|
+
* classNames : Semantic DOM class
|
|
12
|
+
* styles : Semantic DOM style
|
|
13
|
+
* @returns antd styled checkbox
|
|
14
|
+
*/
|
|
15
|
+
declare function OdsCheckbox(props: CheckboxProps): React.JSX.Element;
|
|
16
|
+
export default OdsCheckbox;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledCheckbox: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").CheckboxProps & import("react").RefAttributes<HTMLInputElement>> & {
|
|
3
|
+
Group: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("antd/es/checkbox").CheckboxGroupProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
4
|
+
}, any, {}, never>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CheckboxGroupProps } from 'antd/es/checkbox';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param props
|
|
6
|
+
* checked : boolean
|
|
7
|
+
* defaultChecked : boolean
|
|
8
|
+
* indeterminate : boolean
|
|
9
|
+
* disabled : boolean
|
|
10
|
+
* onChange : (checked: boolean) => void
|
|
11
|
+
* classNames : Semantic DOM class
|
|
12
|
+
* styles : Semantic DOM style
|
|
13
|
+
* @returns antd checkbox group
|
|
14
|
+
*/
|
|
15
|
+
export interface ICheckboxGropProps extends CheckboxGroupProps {
|
|
16
|
+
}
|
|
17
|
+
declare function OdsCheckboxGroup(props: ICheckboxGropProps): React.JSX.Element;
|
|
18
|
+
export default OdsCheckboxGroup;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledCollapse: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").CollapseProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
3
|
+
Panel: import("react").ForwardRefExoticComponent<import("antd").CollapsePanelProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
+
}, any, {}, never>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledCollapse: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").CollapseProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
3
|
+
Panel: import("react").ForwardRefExoticComponent<import("antd").CollapsePanelProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
+
}, any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledDatepicker: import("styled-components").StyledComponent<import("antd/es/date-picker").DatePickerType, any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledDatepicker: import("styled-components").StyledComponent<import("antd/es/date-picker").DatePickerType, any, {}, never>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormProps, ButtonProps } from 'antd';
|
|
3
|
+
export interface IFormItemRuleProps {
|
|
4
|
+
required?: boolean;
|
|
5
|
+
message?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IFormItemProps {
|
|
8
|
+
label?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
formItemType: string;
|
|
11
|
+
rules?: IFormItemRuleProps[];
|
|
12
|
+
}
|
|
13
|
+
export interface IFormProps extends FormProps {
|
|
14
|
+
formItems: IFormItemProps[];
|
|
15
|
+
formButtons: ButtonProps[];
|
|
16
|
+
}
|
|
17
|
+
declare function OdsBasicForm(props: IFormProps): React.JSX.Element;
|
|
18
|
+
export default OdsBasicForm;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormProps, ButtonProps } from 'antd';
|
|
3
|
+
export interface IFormItemRuleProps {
|
|
4
|
+
required?: boolean;
|
|
5
|
+
message?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IFormItemProps {
|
|
8
|
+
label?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
formItemType: string;
|
|
11
|
+
rules?: IFormItemRuleProps[];
|
|
12
|
+
}
|
|
13
|
+
export interface IFormProps extends FormProps {
|
|
14
|
+
formItems: IFormItemProps[];
|
|
15
|
+
formButtons: ButtonProps[];
|
|
16
|
+
}
|
|
17
|
+
declare function OdsBasicForm(props: IFormProps): React.JSX.Element;
|
|
18
|
+
export default OdsBasicForm;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IconBaseProps } from "@ant-design/icons/lib/components/Icon";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export interface IconProps extends IconBaseProps {
|
|
4
|
+
type: string;
|
|
5
|
+
twoToneColor?: string;
|
|
6
|
+
iconComponent?: string;
|
|
7
|
+
}
|
|
8
|
+
declare function OdsIcon(props: IconProps): React.JSX.Element;
|
|
9
|
+
export default OdsIcon;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IconBaseProps } from "@ant-design/icons/lib/components/Icon";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export interface IconProps extends IconBaseProps {
|
|
4
|
+
type: string;
|
|
5
|
+
twoToneColor?: string;
|
|
6
|
+
iconComponent?: string;
|
|
7
|
+
}
|
|
8
|
+
declare function OdsIcon(props: IconProps): React.JSX.Element;
|
|
9
|
+
export default OdsIcon;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledInput: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef>> & {
|
|
3
|
+
Group: import("react").FC<import("antd/es/input").GroupProps>;
|
|
4
|
+
Search: import("react").ForwardRefExoticComponent<import("antd/es/input").SearchProps & import("react").RefAttributes<import("antd").InputRef>>;
|
|
5
|
+
TextArea: import("react").ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>;
|
|
6
|
+
Password: import("react").ForwardRefExoticComponent<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef>>;
|
|
7
|
+
}, any, {}, never>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledInput: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef>> & {
|
|
3
|
+
Group: import("react").FC<import("antd/es/input").GroupProps>;
|
|
4
|
+
Search: import("react").ForwardRefExoticComponent<import("antd/es/input").SearchProps & import("react").RefAttributes<import("antd").InputRef>>;
|
|
5
|
+
TextArea: import("react").ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>;
|
|
6
|
+
Password: import("react").ForwardRefExoticComponent<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef>>;
|
|
7
|
+
}, any, {}, never>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare function info(content: React.ReactNode, duration?: number): import("antd/es/message/interface").MessageType;
|
|
3
|
+
export declare function error(content: React.ReactNode, duration?: number): import("antd/es/message/interface").MessageType;
|
|
4
|
+
export declare function warning(content: React.ReactNode, duration?: number): import("antd/es/message/interface").MessageType;
|
|
5
|
+
export declare function loading(content: React.ReactNode, duration?: number): import("antd/es/message/interface").MessageType;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare function info(content: React.ReactNode, duration?: number): import("antd/es/message/interface").MessageType;
|
|
3
|
+
export declare function error(content: React.ReactNode, duration?: number): import("antd/es/message/interface").MessageType;
|
|
4
|
+
export declare function warning(content: React.ReactNode, duration?: number): import("antd/es/message/interface").MessageType;
|
|
5
|
+
export declare function loading(content: React.ReactNode, duration?: number): import("antd/es/message/interface").MessageType;
|