ods-component-lib 1.18.51 → 1.18.53

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.
Files changed (75) hide show
  1. package/dist/components/antd/cascader/OdsCascader.d.ts +4 -0
  2. package/dist/components/antd/cascader/OdsCascader.styled.d.ts +46 -0
  3. package/dist/components/antd/datepicker/OdsDateRangepicker.d.ts +1 -1
  4. package/dist/components/antd/dropdown/OdsDropdown.d.ts +2 -2
  5. package/dist/components/antd/image/OdsImage.d.ts +1 -4
  6. package/dist/components/antd/image/OdsImagePreviewGroup.d.ts +5 -1
  7. package/dist/components/antd/modal/OdsAdvanceModal.d.ts +7 -0
  8. package/dist/components/antd/steps/OdsSteps.d.ts +8 -1
  9. package/dist/components/antd/typography/OdsLink.d.ts +5 -2
  10. package/dist/components/antd/typography/OdsParagraph.d.ts +5 -2
  11. package/dist/components/antd/typography/OdsTitle.d.ts +5 -1
  12. package/dist/components/antd/typography/OdsTypography.d.ts +7 -0
  13. package/dist/components/antd/typography/Typography.styled.d.ts +3 -0
  14. package/dist/index.d.ts +2 -0
  15. package/dist/index.js +57 -86
  16. package/dist/index.js.map +1 -1
  17. package/dist/index.modern.js +55 -85
  18. package/dist/index.modern.js.map +1 -1
  19. package/dist/stories/Commons/OdsParagraph/OdsParagraph.stories.d.ts +15 -0
  20. package/dist/stories/Commons/OdsParagraph/Samples/BasicParagraph.Sample.d.ts +1 -0
  21. package/dist/stories/Commons/OdsParagraph/Samples/BasicTypography.Sample.d.ts +1 -0
  22. package/dist/stories/Commons/OdsRate/OdsRate.stories.d.ts +17 -0
  23. package/dist/stories/Commons/OdsRate/Samples/AllowHalfWithTooltips.Sample.d.ts +1 -0
  24. package/dist/stories/Commons/OdsRate/Samples/Basic.Sample.d.ts +1 -0
  25. package/dist/stories/Commons/OdsRate/Samples/OtherCharacter.Sample.d.ts +1 -0
  26. package/dist/stories/Commons/OdsRate/Samples/Readonly.Sample.d.ts +1 -0
  27. package/dist/stories/Commons/OdsSpin/OdsSpin.stories.d.ts +9 -0
  28. package/dist/stories/Commons/OdsSpin/Samples/Basic.Sample.d.ts +1 -0
  29. package/dist/stories/Commons/OdsSteps/OdsSteps.stories.d.ts +20 -0
  30. package/dist/stories/Commons/OdsSteps/Samples/BasicError.Sample.d.ts +1 -0
  31. package/dist/stories/Commons/OdsSteps/Samples/BasicHorizontal.Sample.d.ts +1 -0
  32. package/dist/stories/Commons/OdsSteps/Samples/BasicVertical.Sample.d.ts +1 -0
  33. package/dist/stories/Commons/OdsSteps/Samples/SwitchStep.Sample.d.ts +1 -0
  34. package/dist/stories/Commons/OdsSteps/Samples/SwitchStepWithDrawer.d.ts +1 -0
  35. package/dist/stories/Commons/OdsSteps/Samples/SwitchStepWithDrawerSecond.d.ts +1 -0
  36. package/dist/stories/Commons/OdsSteps/Samples/WithIcon.Sample.d.ts +1 -0
  37. package/dist/stories/Commons/OdsTab/OdsTab.stories.d.ts +16 -0
  38. package/dist/stories/Commons/OdsTab/Samples/BasicWithDisabled.Sample.d.ts +1 -0
  39. package/dist/stories/Commons/OdsTab/Samples/Indicator.Sample.d.ts +1 -0
  40. package/dist/stories/Commons/OdsTab/Samples/Slide.Sample.d.ts +1 -0
  41. package/dist/stories/OdsAlert/OdsAlert.stories.d.ts +54 -0
  42. package/dist/stories/OdsAlert/Samples/BasicAlert.Sample.d.ts +1 -0
  43. package/dist/stories/OdsAlert/Samples/IconAlert.Sample.d.ts +1 -0
  44. package/dist/stories/OdsBannerAlert/OdsBannerAlert.stories.d.ts +53 -0
  45. package/dist/stories/OdsBannerAlert/Samples/BasicBannerAlert.Sample.d.ts +1 -0
  46. package/dist/stories/OdsCascader/OdsCascader.stories.d.ts +17 -0
  47. package/dist/stories/OdsCascader/Samples/BasicWithDefaultValue.Sample.d.ts +1 -0
  48. package/dist/stories/OdsCascader/Samples/CustomFieldNames.Sample.d.ts +1 -0
  49. package/dist/stories/OdsCascader/Samples/MultipleWithDisabled.Sample.d.ts +1 -0
  50. package/dist/stories/OdsCascader/Samples/Search.Sample.d.ts +1 -0
  51. package/dist/stories/OdsCollapse/OdsCollapse.stories.d.ts +16 -0
  52. package/dist/stories/OdsCollapse/Samples/BasicVSAccordion.Sample.d.ts +1 -0
  53. package/dist/stories/OdsCollapse/Samples/BasicVsCustom.Sample.d.ts +1 -0
  54. package/dist/stories/OdsCollapse/Samples/NestedCollapse.Sample.d.ts +1 -0
  55. package/dist/stories/OdsDateRangePicker/OdsDateRangePicker.stories.d.ts +2 -13
  56. package/dist/stories/OdsImage/OdsImage.stories.d.ts +14 -0
  57. package/dist/stories/OdsImage/Samples/Basic.Sample.d.ts +1 -0
  58. package/dist/stories/OdsImagePreviewGroup/OdsImagePreviewGroup.stories.d.ts +9 -0
  59. package/dist/stories/OdsImagePreviewGroup/Samples/OdsImagePreviewGroup.Sample.d.ts +1 -0
  60. package/dist/stories/OdsSelect/OdsSelect.stories.d.ts +7 -50
  61. package/dist/stories/OdsSelect/Samples/BasicWithOptGroup.Sample.d.ts +1 -0
  62. package/dist/stories/OdsSwitch/OdsSwitch.stories copy.d.ts +16 -0
  63. package/dist/stories/OdsSwitch/OdsSwitch.stories.d.ts +16 -0
  64. package/dist/stories/OdsSwitch/Samples/BasicDisabled.Sample.d.ts +1 -0
  65. package/dist/stories/OdsSwitch/Samples/Checked.Sample.d.ts +1 -0
  66. package/dist/stories/OdsSwitch/Samples/CheckedChildrenDisplayIcon.Sample.d.ts +1 -0
  67. package/dist/stories/OdsSwitch/Samples/CheckedChildrenDisplayText.Sample.d.ts +1 -0
  68. package/dist/stories/OdsSwitch/Samples/CheckedLoading.Sample.d.ts +1 -0
  69. package/dist/stories/OdsTag/OdsTag.stories.d.ts +9 -1
  70. package/dist/stories/OdsTag/Samples/Basic.Sample.d.ts +1 -0
  71. package/dist/stories/OdsTag/Samples/Colorful.Sample.d.ts +1 -0
  72. package/dist/stories/OdsTag/Samples/Status.Sample.d.ts +1 -0
  73. package/dist/stories/OdsTitle/OdsTitle.stories.d.ts +64 -0
  74. package/dist/stories/OdsTitle/Samples/BasicTitle.Sample.d.ts +1 -0
  75. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { CascaderProps } from "antd";
3
+ declare function OdsCascader(props: CascaderProps): React.JSX.Element;
4
+ export default OdsCascader;
@@ -0,0 +1,46 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledCascader: import("styled-components").StyledComponent<(<OptionType extends import("rc-cascader").DefaultOptionType | import("rc-cascader").BaseOptionType = import("rc-cascader").DefaultOptionType>(props: (Pick<import("rc-cascader").SingleCascaderProps<OptionType>, "defaultValue" | "value" | "onChange" | "placeholder" | "id" | "disabled" | "onFocus" | "onBlur" | "onKeyDown" | "maxLength" | "autoFocus" | "className" | "style" | "tabIndex" | "title" | "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" | "children" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseEnter" | "onMouseLeave" | "removeIcon" | "maxTagCount" | "direction" | "prefixCls" | "suffixIcon" | "allowClear" | "clearIcon" | "defaultOpen" | "open" | "getPopupContainer" | "placement" | "builtinPlacements" | "transitionName" | "dropdownClassName" | "popupClassName" | "loading" | "searchValue" | "autoClearSearchValue" | "onSearch" | "showSearch" | "tagRender" | "notFoundContent" | "onClear" | "choiceTransitionName" | "onDropdownVisibleChange" | "getInputElement" | "getRawInputElement" | "maxTagTextLength" | "maxTagPlaceholder" | "animation" | "dropdownStyle" | "dropdownMatchSelectWidth" | "dropdownRender" | "dropdownAlign" | "showAction" | "onPopupScroll" | "onInputKeyDown" | "fieldNames" | "changeOnSelect" | "displayRender" | "showCheckedStrategy" | "expandTrigger" | "dropdownPrefixCls" | "loadData" | "popupVisible" | "dropdownMenuColumnStyle" | "popupPlacement" | "onPopupVisibleChange" | "expandIcon" | "loadingIcon"> & {
3
+ multiple?: false;
4
+ } & {
5
+ multiple?: boolean;
6
+ size?: import("antd/es/button").ButtonSize;
7
+ showArrow?: boolean;
8
+ disabled?: boolean;
9
+ bordered?: boolean;
10
+ placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
11
+ suffixIcon?: import("react").ReactNode;
12
+ options?: OptionType[];
13
+ status?: "" | "warning" | "error";
14
+ autoClearSearchValue?: boolean;
15
+ rootClassName?: string;
16
+ popupClassName?: string;
17
+ dropdownClassName?: string;
18
+ variant?: "outlined" | "borderless" | "filled";
19
+ } & {
20
+ children?: import("react").ReactNode;
21
+ } & import("react").RefAttributes<import("antd/es/cascader").CascaderRef>) | (Pick<import("rc-cascader").MultipleCascaderProps<OptionType>, "defaultValue" | "value" | "onChange" | "placeholder" | "id" | "disabled" | "onFocus" | "onBlur" | "onKeyDown" | "maxLength" | "autoFocus" | "className" | "style" | "tabIndex" | "title" | "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" | "children" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseEnter" | "onMouseLeave" | "removeIcon" | "maxTagCount" | "direction" | "prefixCls" | "suffixIcon" | "allowClear" | "clearIcon" | "defaultOpen" | "open" | "getPopupContainer" | "placement" | "builtinPlacements" | "transitionName" | "dropdownClassName" | "popupClassName" | "loading" | "searchValue" | "autoClearSearchValue" | "onSearch" | "showSearch" | "tagRender" | "notFoundContent" | "onClear" | "choiceTransitionName" | "onDropdownVisibleChange" | "getInputElement" | "getRawInputElement" | "maxTagTextLength" | "maxTagPlaceholder" | "animation" | "dropdownStyle" | "dropdownMatchSelectWidth" | "dropdownRender" | "dropdownAlign" | "showAction" | "onPopupScroll" | "onInputKeyDown" | "fieldNames" | "changeOnSelect" | "displayRender" | "showCheckedStrategy" | "expandTrigger" | "dropdownPrefixCls" | "loadData" | "popupVisible" | "dropdownMenuColumnStyle" | "popupPlacement" | "onPopupVisibleChange" | "expandIcon" | "loadingIcon"> & {
22
+ multiple: true;
23
+ } & {
24
+ multiple?: boolean;
25
+ size?: import("antd/es/button").ButtonSize;
26
+ showArrow?: boolean;
27
+ disabled?: boolean;
28
+ bordered?: boolean;
29
+ placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
30
+ suffixIcon?: import("react").ReactNode;
31
+ options?: OptionType[];
32
+ status?: "" | "warning" | "error";
33
+ autoClearSearchValue?: boolean;
34
+ rootClassName?: string;
35
+ popupClassName?: string;
36
+ dropdownClassName?: string;
37
+ variant?: "outlined" | "borderless" | "filled";
38
+ } & {
39
+ children?: import("react").ReactNode;
40
+ } & import("react").RefAttributes<import("antd/es/cascader").CascaderRef>)) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any>) | (new (props: any) => import("react").Component<any, any, any>)>) & {
41
+ displayName: string;
42
+ SHOW_PARENT: "SHOW_PARENT";
43
+ SHOW_CHILD: "SHOW_CHILD";
44
+ Panel: import("react").FC<Pick<import("antd").CascaderProps<any>, import("antd/es/cascader/Panel").PanelPickType>>;
45
+ _InternalPanelDoNotUseOrYouWillBeFired: (props: Record<string | number | symbol, any>) => import("react").JSX.Element;
46
+ }, any, {}, never>;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { RangePickerProps } from 'antd/es/date-picker';
3
- declare const OdsDateRangePicker: (props: RangePickerProps) => React.JSX.Element;
3
+ declare function OdsDateRangePicker(props: RangePickerProps): React.JSX.Element;
4
4
  export default OdsDateRangePicker;
@@ -3,5 +3,5 @@ import React from "react";
3
3
  export interface IDropDownProps extends DropDownProps {
4
4
  menuItems?: any[];
5
5
  }
6
- declare function OdsCollapse(props: IDropDownProps): React.JSX.Element;
7
- export default OdsCollapse;
6
+ declare function OdsDropdown(props: IDropDownProps): React.JSX.Element;
7
+ export default OdsDropdown;
@@ -1,7 +1,4 @@
1
1
  import { ImageProps } from "antd";
2
2
  import React from "react";
3
- export interface IImageProps extends ImageProps {
4
- images?: any[];
5
- }
6
- declare function OdsImage(props: IImageProps): React.JSX.Element;
3
+ declare function OdsImage(props: ImageProps): React.JSX.Element;
7
4
  export default OdsImage;
@@ -1,3 +1,7 @@
1
+ import { ImageProps } from "antd";
1
2
  import React from "react";
2
- declare function OdsImagePreviewGroup(): React.JSX.Element;
3
+ export interface IImageProps extends ImageProps {
4
+ imagesrcs?: string[];
5
+ }
6
+ declare const OdsImagePreviewGroup: (props: any) => React.JSX.Element;
3
7
  export default OdsImagePreviewGroup;
@@ -0,0 +1,7 @@
1
+ import { ModalProps } from "antd";
2
+ import React from "react";
3
+ interface ICustomModalProps extends ModalProps {
4
+ content: React.ReactNode;
5
+ }
6
+ declare const OdsAdvanceModal: React.FC<ICustomModalProps>;
7
+ export default OdsAdvanceModal;
@@ -1,3 +1,10 @@
1
1
  import React from "react";
2
- declare function OdsSteps(): React.JSX.Element;
2
+ import { StepProps, StepsProps } from "antd";
3
+ export interface IStepsProps extends StepsProps {
4
+ items?: IStepProps[];
5
+ }
6
+ interface IStepProps extends StepProps {
7
+ content: any;
8
+ }
9
+ declare const OdsSteps: (props: IStepsProps) => React.JSX.Element;
3
10
  export default OdsSteps;
@@ -1,4 +1,7 @@
1
- import { TypographyProps } from "antd";
2
1
  import React from "react";
3
- declare const OdsLink: (props?: TypographyProps) => React.JSX.Element;
2
+ import { StyledtTypographyLink } from "./Typography.styled";
3
+ interface StyledOdsLinkProps extends React.ComponentProps<typeof StyledtTypographyLink> {
4
+ children?: React.ReactNode;
5
+ }
6
+ declare const OdsLink: React.FC<StyledOdsLinkProps>;
4
7
  export default OdsLink;
@@ -1,4 +1,7 @@
1
- import { TypographyProps } from 'antd';
2
1
  import React from 'react';
3
- declare const OdsParagraph: (props: TypographyProps) => React.JSX.Element;
2
+ import { StyledtTypographyParagraph } from './Typography.styled';
3
+ export interface StyledOdsParagraphProps extends React.ComponentProps<typeof StyledtTypographyParagraph> {
4
+ children?: React.ReactNode;
5
+ }
6
+ declare const OdsParagraph: (props: StyledOdsParagraphProps) => React.JSX.Element;
4
7
  export default OdsParagraph;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
- declare function OdsTitle(props?: any): React.JSX.Element;
2
+ import { TypographyProps } from 'antd/es/typography/Typography';
3
+ export interface ITypographyProps extends TypographyProps<any> {
4
+ level?: 1 | 2 | 3 | 4 | 5;
5
+ }
6
+ declare function OdsTitle(props?: ITypographyProps): React.JSX.Element;
3
7
  export default OdsTitle;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { StyledtTypography } from './Typography.styled';
3
+ export interface StyledOdsTypographyProps extends React.ComponentProps<typeof StyledtTypography> {
4
+ children?: React.ReactNode;
5
+ }
6
+ declare const OdsTypography: (props: StyledOdsTypographyProps) => React.JSX.Element;
7
+ export default OdsTypography;
@@ -1 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const StyledtTypography: import("styled-components").StyledComponent<import("antd").TypographyProps, any, {}, never>;
3
+ export declare const StyledtTypographyParagraph: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/typography/Paragraph").ParagraphProps & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
4
+ export declare const StyledtTypographyLink: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/typography/Link").LinkProps & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
package/dist/index.d.ts CHANGED
@@ -47,6 +47,7 @@ import DxTreeList from "./components/devextreme/treeview/DxTreeList";
47
47
  import OdsRemoteDataGrid from "./components/devextreme/OdsRemoteDataGrid";
48
48
  import OdsBadge from "./components/antd/badge/OdsBadge";
49
49
  import OdsBadgeRibbon from "./components/antd/badge/OdsBadgeRibbon";
50
+ import OdsAdvanceModal from "./components/antd/modal/OdsAdvanceModal";
50
51
  export { OdsButton };
51
52
  export { OdsInput };
52
53
  export { OdsDropdownButton };
@@ -93,6 +94,7 @@ export { OdsBannerAlert };
93
94
  export { OdsMultiSelect };
94
95
  export { OdsBadge };
95
96
  export { OdsBadgeRibbon };
97
+ export { OdsAdvanceModal };
96
98
  export { OdsDataGrid };
97
99
  export { OdsDisplayGrid };
98
100
  export { OdsRemoteDataGrid };
package/dist/index.js CHANGED
@@ -38,6 +38,18 @@ function _extends() {
38
38
  };
39
39
  return _extends.apply(this, arguments);
40
40
  }
41
+ function _objectWithoutPropertiesLoose(source, excluded) {
42
+ if (source == null) return {};
43
+ var target = {};
44
+ var sourceKeys = Object.keys(source);
45
+ var key, i;
46
+ for (i = 0; i < sourceKeys.length; i++) {
47
+ key = sourceKeys[i];
48
+ if (excluded.indexOf(key) >= 0) continue;
49
+ target[key] = source[key];
50
+ }
51
+ return target;
52
+ }
41
53
  function _taggedTemplateLiteralLoose(strings, raw) {
42
54
  if (!raw) {
43
55
  raw = strings.slice(0);
@@ -467,14 +479,15 @@ function OdsCheckboxGroup(props) {
467
479
  var _templateObject$6;
468
480
  var StyledDatepicker = styled__default(antd.DatePicker)(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n width:100%;\n"])));
469
481
 
470
- function StyledOdsDateRangePicker(props) {
482
+ function OdsDateRangePicker(props) {
471
483
  return React__default.createElement(React__default.Fragment, null, React__default.createElement(styled.ThemeProvider, {
472
484
  theme: lightTheme
473
- }, React__default.createElement(StyledDatepicker.RangePicker, Object.assign({}, props))));
485
+ }, React__default.createElement(StyledDatepicker.RangePicker, Object.assign({}, props, {
486
+ style: {
487
+ width: '100%'
488
+ }
489
+ }))));
474
490
  }
475
- var OdsDateRangePicker = function OdsDateRangePicker(props) {
476
- return React__default.createElement(StyledOdsDateRangePicker, Object.assign({}, props));
477
- };
478
491
 
479
492
  function StyledOdsDatepicker(props) {
480
493
  var _useState = React.useState("middle"),
@@ -502,7 +515,7 @@ var StyledDropdown = styled__default(antd.Dropdown)(_templateObject$8 || (_templ
502
515
  var handleMenuClick = function handleMenuClick(e) {
503
516
  console.log('click', e);
504
517
  };
505
- function OdsCollapse(props) {
518
+ function OdsDropdown(props) {
506
519
  var menuProps = {
507
520
  items: props.menuItems,
508
521
  onClick: handleMenuClick
@@ -514,42 +527,8 @@ function OdsCollapse(props) {
514
527
  }, props.children)));
515
528
  }
516
529
 
517
- function OdsImagePreviewGroup() {
518
- var _useState = React.useState(false),
519
- visible = _useState[0],
520
- setVisible = _useState[1];
521
- return React__default.createElement(React__default.Fragment, null, React__default.createElement(antd.Image, {
522
- preview: {
523
- visible: false
524
- },
525
- width: 200,
526
- src: "https://gw.alipayobjects.com/zos/antfincdn/LlvErxo8H9/photo-1503185912284-5271ff81b9a8.webp",
527
- onClick: function onClick() {
528
- return setVisible(true);
529
- }
530
- }), React__default.createElement("div", {
531
- style: {
532
- display: 'none'
533
- }
534
- }, React__default.createElement(antd.Image.PreviewGroup, {
535
- preview: {
536
- visible: visible,
537
- onVisibleChange: function onVisibleChange(vis) {
538
- return setVisible(vis);
539
- }
540
- }
541
- }, React__default.createElement(antd.Image, {
542
- src: "https://gw.alipayobjects.com/zos/antfincdn/LlvErxo8H9/photo-1503185912284-5271ff81b9a8.webp"
543
- }), React__default.createElement(antd.Image, {
544
- src: "https://gw.alipayobjects.com/zos/antfincdn/cV16ZqzMjW/photo-1473091540282-9b846e7965e3.webp"
545
- }), React__default.createElement(antd.Image, {
546
- src: "https://gw.alipayobjects.com/zos/antfincdn/x43I27A55%26/photo-1438109491414-7198515b166b.webp"
547
- }))));
548
- }
549
-
550
530
  function OdsImage(props) {
551
- var isMultiple = props.images != null && props.images.length > 0;
552
- return React__default.createElement(React__default.Fragment, null, isMultiple ? React__default.createElement(antd.Image, Object.assign({}, props)) : React__default.createElement(OdsImagePreviewGroup, Object.assign({}, props)));
531
+ return React__default.createElement(antd.Image, Object.assign({}, props));
553
532
  }
554
533
 
555
534
  var _templateObject$9;
@@ -1014,7 +993,6 @@ var StyledSpin = styled__default(antd.Spin)(_templateObject$f || (_templateObjec
1014
993
  function OdsSpin(props) {
1015
994
  var _useState = React.useState(true),
1016
995
  loading = _useState[0];
1017
- props.size = "default";
1018
996
  return React__default.createElement(React__default.Fragment, null, React__default.createElement(StyledSpin, Object.assign({}, props, {
1019
997
  spinning: loading
1020
998
  }), props.children));
@@ -1032,41 +1010,10 @@ function OdsSwitch(props) {
1032
1010
  var _templateObject$h;
1033
1011
  var StyledTabs = styled__default(antd.Tabs)(_templateObject$h || (_templateObject$h = _taggedTemplateLiteralLoose(["\n //\n"])));
1034
1012
 
1035
- var onChange = function onChange(key) {
1036
- console.log(key);
1037
- };
1038
- var items = [{
1039
- key: '1',
1040
- label: "Tab 1",
1041
- children: "Content of Tab Pane 1",
1042
- disabled: true
1043
- }, {
1044
- key: '2',
1045
- label: "Tab 2",
1046
- children: "Content of Tab Pane 2"
1047
- }, {
1048
- key: '3',
1049
- label: "Tab 3",
1050
- children: "Content of Tab Pane 3"
1051
- }];
1052
1013
  function OdsTab(props) {
1053
- var _useState = React.useState(),
1054
- size = _useState[0],
1055
- setSize = _useState[1];
1056
- var _useState2 = React.useState(),
1057
- tabPosition = _useState2[0],
1058
- setTabPosition = _useState2[1];
1059
- setTabPosition("top");
1060
- setSize("middle");
1061
1014
  return React__default.createElement(React__default.Fragment, null, React__default.createElement(styled.ThemeProvider, {
1062
1015
  theme: lightTheme
1063
- }, React__default.createElement(StyledTabs, Object.assign({}, props, {
1064
- tabPosition: tabPosition,
1065
- size: size,
1066
- defaultActiveKey: "1",
1067
- items: items,
1068
- onChange: onChange
1069
- }), props.children)));
1016
+ }, React__default.createElement(StyledTabs, Object.assign({}, props))));
1070
1017
  }
1071
1018
 
1072
1019
  var _templateObject$i;
@@ -1135,21 +1082,27 @@ var OdsTimepicker = function OdsTimepicker(props) {
1135
1082
  }));
1136
1083
  };
1137
1084
 
1138
- var _templateObject$m;
1085
+ var _templateObject$m, _templateObject2, _templateObject3;
1139
1086
  var StyledtTypography = styled__default(antd.Typography)(_templateObject$m || (_templateObject$m = _taggedTemplateLiteralLoose(["\n //\n"])));
1140
-
1141
- function StyledOdsLink(props) {
1142
- return React__default.createElement(React__default.Fragment, null, React__default.createElement(StyledtTypography, Object.assign({}, props), props === null || props === void 0 ? void 0 : props.Link));
1143
- }
1087
+ var StyledtTypographyParagraph = styled__default(antd.Typography.Paragraph)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n //\n"])));
1088
+ var StyledtTypographyLink = styled__default(antd.Typography.Link)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n // \n"])));
1089
+
1090
+ var _excluded = ["children"];
1091
+ var StyledOdsLink = function StyledOdsLink(_ref) {
1092
+ var children = _ref.children,
1093
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
1094
+ return React__default.createElement(StyledtTypographyLink, Object.assign({}, props), children);
1095
+ };
1144
1096
  var OdsLink = function OdsLink(props) {
1145
1097
  return React__default.createElement(StyledOdsLink, Object.assign({}, props));
1146
1098
  };
1147
1099
 
1148
- function StyledOdsParagraph(props) {
1149
- return React__default.createElement(React__default.Fragment, null, React__default.createElement(styled.ThemeProvider, {
1150
- theme: lightTheme
1151
- }, React__default.createElement(StyledtTypography.Paragraph, Object.assign({}, props), props)));
1152
- }
1100
+ var _excluded$1 = ["children"];
1101
+ var StyledOdsParagraph = function StyledOdsParagraph(_ref) {
1102
+ var children = _ref.children,
1103
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
1104
+ return React__default.createElement(StyledtTypographyParagraph, Object.assign({}, props), children);
1105
+ };
1153
1106
  var OdsParagraph = function OdsParagraph(props) {
1154
1107
  return React__default.createElement(StyledOdsParagraph, Object.assign({}, props));
1155
1108
  };
@@ -17004,7 +16957,25 @@ function OdsBadgeRibbon(props) {
17004
16957
  }, React__default.createElement(StyledBadge.Ribbon, Object.assign({}, props), props.children)));
17005
16958
  }
17006
16959
 
16960
+ var _excluded$2 = ["content"];
16961
+ var OdsAdvanceModal = function OdsAdvanceModal(_ref) {
16962
+ var content = _ref.content,
16963
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
16964
+ return React__default.createElement(React__default.Fragment, null, React__default.createElement(antd.Modal, Object.assign({}, props, {
16965
+ open: props.open,
16966
+ onOk: props.onOk,
16967
+ onCancel: props.onCancel
16968
+ }), content), React__default.createElement(styled.ThemeProvider, {
16969
+ theme: lightTheme
16970
+ }, React__default.createElement(antd.Modal, Object.assign({}, props, {
16971
+ open: props.open,
16972
+ onOk: props.onOk,
16973
+ onCancel: props.onCancel
16974
+ }), content)));
16975
+ };
16976
+
17007
16977
  exports.DxTreeList = DxTreeList;
16978
+ exports.OdsAdvanceModal = OdsAdvanceModal;
17008
16979
  exports.OdsAlert = OdsAlert;
17009
16980
  exports.OdsAutoComplete = OdsAutoComplete;
17010
16981
  exports.OdsBadge = OdsBadge;
@@ -17016,13 +16987,13 @@ exports.OdsCalendar = OdsCalendar;
17016
16987
  exports.OdsCard = OdsCard;
17017
16988
  exports.OdsCheckbox = OdsCheckbox;
17018
16989
  exports.OdsCheckboxGroup = OdsCheckboxGroup;
17019
- exports.OdsCollapse = OdsCollapse;
16990
+ exports.OdsCollapse = OdsDropdown;
17020
16991
  exports.OdsDataGrid = OdsDataGrid;
17021
16992
  exports.OdsDateRangePicker = OdsDateRangePicker;
17022
16993
  exports.OdsDatepicker = OdsDatepicker;
17023
16994
  exports.OdsDisplayGrid = OdsDisplayGrid;
17024
16995
  exports.OdsDivider = OdsDivider;
17025
- exports.OdsDropdown = OdsCollapse;
16996
+ exports.OdsDropdown = OdsDropdown;
17026
16997
  exports.OdsDropdownButton = OdsDropdownButton;
17027
16998
  exports.OdsImage = OdsImage;
17028
16999
  exports.OdsInput = OdsInput;