ods-component-lib 1.18.52 → 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.
- package/dist/components/antd/cascader/OdsCascader.d.ts +4 -0
- package/dist/components/antd/cascader/OdsCascader.styled.d.ts +46 -0
- package/dist/components/antd/dropdown/OdsDropdown.d.ts +2 -2
- package/dist/components/antd/steps/OdsSteps.d.ts +8 -1
- package/dist/components/antd/typography/OdsLink.d.ts +5 -2
- package/dist/components/antd/typography/OdsParagraph.d.ts +5 -2
- package/dist/components/antd/typography/OdsTypography.d.ts +7 -0
- package/dist/components/antd/typography/Typography.styled.d.ts +3 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +50 -46
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +48 -45
- package/dist/index.modern.js.map +1 -1
- package/dist/stories/Commons/OdsParagraph/OdsParagraph.stories.d.ts +15 -0
- package/dist/stories/Commons/OdsParagraph/Samples/BasicParagraph.Sample.d.ts +1 -0
- package/dist/stories/Commons/OdsParagraph/Samples/BasicTypography.Sample.d.ts +1 -0
- package/dist/stories/Commons/OdsRate/OdsRate.stories.d.ts +17 -0
- package/dist/stories/Commons/OdsRate/Samples/AllowHalfWithTooltips.Sample.d.ts +1 -0
- package/dist/stories/Commons/OdsRate/Samples/Basic.Sample.d.ts +1 -0
- package/dist/stories/Commons/OdsRate/Samples/OtherCharacter.Sample.d.ts +1 -0
- package/dist/stories/Commons/OdsRate/Samples/Readonly.Sample.d.ts +1 -0
- package/dist/stories/Commons/OdsSpin/OdsSpin.stories.d.ts +9 -0
- package/dist/stories/Commons/OdsSpin/Samples/Basic.Sample.d.ts +1 -0
- package/dist/stories/Commons/OdsSteps/OdsSteps.stories.d.ts +20 -0
- package/dist/stories/Commons/OdsSteps/Samples/BasicError.Sample.d.ts +1 -0
- package/dist/stories/Commons/OdsSteps/Samples/BasicHorizontal.Sample.d.ts +1 -0
- package/dist/stories/Commons/OdsSteps/Samples/BasicVertical.Sample.d.ts +1 -0
- package/dist/stories/Commons/OdsSteps/Samples/SwitchStep.Sample.d.ts +1 -0
- package/dist/stories/Commons/OdsSteps/Samples/SwitchStepWithDrawer.d.ts +1 -0
- package/dist/stories/Commons/OdsSteps/Samples/SwitchStepWithDrawerSecond.d.ts +1 -0
- package/dist/stories/Commons/OdsSteps/Samples/WithIcon.Sample.d.ts +1 -0
- package/dist/stories/Commons/OdsTab/OdsTab.stories.d.ts +16 -0
- package/dist/stories/Commons/OdsTab/Samples/BasicWithDisabled.Sample.d.ts +1 -0
- package/dist/stories/Commons/OdsTab/Samples/Indicator.Sample.d.ts +1 -0
- package/dist/stories/Commons/OdsTab/Samples/Slide.Sample.d.ts +1 -0
- package/dist/stories/OdsCascader/OdsCascader.stories.d.ts +17 -0
- package/dist/stories/OdsCascader/Samples/BasicWithDefaultValue.Sample.d.ts +1 -0
- package/dist/stories/OdsCascader/Samples/CustomFieldNames.Sample.d.ts +1 -0
- package/dist/stories/OdsCascader/Samples/MultipleWithDisabled.Sample.d.ts +1 -0
- package/dist/stories/OdsCascader/Samples/Search.Sample.d.ts +1 -0
- package/dist/stories/OdsCollapse/OdsCollapse.stories.d.ts +16 -0
- package/dist/stories/OdsCollapse/Samples/BasicVSAccordion.Sample.d.ts +1 -0
- package/dist/stories/OdsCollapse/Samples/BasicVsCustom.Sample.d.ts +1 -0
- package/dist/stories/OdsCollapse/Samples/NestedCollapse.Sample.d.ts +1 -0
- package/dist/stories/OdsSelect/OdsSelect.stories.d.ts +7 -50
- package/dist/stories/OdsSelect/Samples/BasicWithOptGroup.Sample.d.ts +1 -0
- package/dist/stories/OdsSwitch/OdsSwitch.stories copy.d.ts +16 -0
- package/dist/stories/OdsSwitch/OdsSwitch.stories.d.ts +16 -0
- package/dist/stories/OdsSwitch/Samples/BasicDisabled.Sample.d.ts +1 -0
- package/dist/stories/OdsSwitch/Samples/Checked.Sample.d.ts +1 -0
- package/dist/stories/OdsSwitch/Samples/CheckedChildrenDisplayIcon.Sample.d.ts +1 -0
- package/dist/stories/OdsSwitch/Samples/CheckedChildrenDisplayText.Sample.d.ts +1 -0
- package/dist/stories/OdsSwitch/Samples/CheckedLoading.Sample.d.ts +1 -0
- package/dist/stories/OdsTag/OdsTag.stories.d.ts +9 -1
- package/dist/stories/OdsTag/Samples/Basic.Sample.d.ts +1 -0
- package/dist/stories/OdsTag/Samples/Colorful.Sample.d.ts +1 -0
- package/dist/stories/OdsTag/Samples/Status.Sample.d.ts +1 -0
- package/dist/stories/OdsTitle/OdsTitle.stories.d.ts +5 -5
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -33,6 +33,18 @@ function _extends() {
|
|
|
33
33
|
};
|
|
34
34
|
return _extends.apply(this, arguments);
|
|
35
35
|
}
|
|
36
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
37
|
+
if (source == null) return {};
|
|
38
|
+
var target = {};
|
|
39
|
+
var sourceKeys = Object.keys(source);
|
|
40
|
+
var key, i;
|
|
41
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
42
|
+
key = sourceKeys[i];
|
|
43
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
44
|
+
target[key] = source[key];
|
|
45
|
+
}
|
|
46
|
+
return target;
|
|
47
|
+
}
|
|
36
48
|
function _taggedTemplateLiteralLoose(strings, raw) {
|
|
37
49
|
if (!raw) {
|
|
38
50
|
raw = strings.slice(0);
|
|
@@ -498,7 +510,7 @@ var StyledDropdown = styled(Dropdown)(_templateObject$8 || (_templateObject$8 =
|
|
|
498
510
|
var handleMenuClick = function handleMenuClick(e) {
|
|
499
511
|
console.log('click', e);
|
|
500
512
|
};
|
|
501
|
-
function
|
|
513
|
+
function OdsDropdown(props) {
|
|
502
514
|
var menuProps = {
|
|
503
515
|
items: props.menuItems,
|
|
504
516
|
onClick: handleMenuClick
|
|
@@ -976,7 +988,6 @@ var StyledSpin = styled(Spin)(_templateObject$f || (_templateObject$f = _taggedT
|
|
|
976
988
|
function OdsSpin(props) {
|
|
977
989
|
var _useState = useState(true),
|
|
978
990
|
loading = _useState[0];
|
|
979
|
-
props.size = "default";
|
|
980
991
|
return React.createElement(React.Fragment, null, React.createElement(StyledSpin, Object.assign({}, props, {
|
|
981
992
|
spinning: loading
|
|
982
993
|
}), props.children));
|
|
@@ -994,41 +1005,10 @@ function OdsSwitch(props) {
|
|
|
994
1005
|
var _templateObject$h;
|
|
995
1006
|
var StyledTabs = styled(Tabs)(_templateObject$h || (_templateObject$h = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
996
1007
|
|
|
997
|
-
var onChange = function onChange(key) {
|
|
998
|
-
console.log(key);
|
|
999
|
-
};
|
|
1000
|
-
var items = [{
|
|
1001
|
-
key: '1',
|
|
1002
|
-
label: "Tab 1",
|
|
1003
|
-
children: "Content of Tab Pane 1",
|
|
1004
|
-
disabled: true
|
|
1005
|
-
}, {
|
|
1006
|
-
key: '2',
|
|
1007
|
-
label: "Tab 2",
|
|
1008
|
-
children: "Content of Tab Pane 2"
|
|
1009
|
-
}, {
|
|
1010
|
-
key: '3',
|
|
1011
|
-
label: "Tab 3",
|
|
1012
|
-
children: "Content of Tab Pane 3"
|
|
1013
|
-
}];
|
|
1014
1008
|
function OdsTab(props) {
|
|
1015
|
-
var _useState = useState(),
|
|
1016
|
-
size = _useState[0],
|
|
1017
|
-
setSize = _useState[1];
|
|
1018
|
-
var _useState2 = useState(),
|
|
1019
|
-
tabPosition = _useState2[0],
|
|
1020
|
-
setTabPosition = _useState2[1];
|
|
1021
|
-
setTabPosition("top");
|
|
1022
|
-
setSize("middle");
|
|
1023
1009
|
return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
|
|
1024
1010
|
theme: lightTheme
|
|
1025
|
-
}, React.createElement(StyledTabs, Object.assign({}, props
|
|
1026
|
-
tabPosition: tabPosition,
|
|
1027
|
-
size: size,
|
|
1028
|
-
defaultActiveKey: "1",
|
|
1029
|
-
items: items,
|
|
1030
|
-
onChange: onChange
|
|
1031
|
-
}), props.children)));
|
|
1011
|
+
}, React.createElement(StyledTabs, Object.assign({}, props))));
|
|
1032
1012
|
}
|
|
1033
1013
|
|
|
1034
1014
|
var _templateObject$i;
|
|
@@ -1097,21 +1077,27 @@ var OdsTimepicker = function OdsTimepicker(props) {
|
|
|
1097
1077
|
}));
|
|
1098
1078
|
};
|
|
1099
1079
|
|
|
1100
|
-
var _templateObject$m;
|
|
1080
|
+
var _templateObject$m, _templateObject2, _templateObject3;
|
|
1101
1081
|
var StyledtTypography = styled(Typography)(_templateObject$m || (_templateObject$m = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1082
|
+
var StyledtTypographyParagraph = styled(Typography.Paragraph)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
1083
|
+
var StyledtTypographyLink = styled(Typography.Link)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n // \n"])));
|
|
1084
|
+
|
|
1085
|
+
var _excluded = ["children"];
|
|
1086
|
+
var StyledOdsLink = function StyledOdsLink(_ref) {
|
|
1087
|
+
var children = _ref.children,
|
|
1088
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
1089
|
+
return React.createElement(StyledtTypographyLink, Object.assign({}, props), children);
|
|
1090
|
+
};
|
|
1106
1091
|
var OdsLink = function OdsLink(props) {
|
|
1107
1092
|
return React.createElement(StyledOdsLink, Object.assign({}, props));
|
|
1108
1093
|
};
|
|
1109
1094
|
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
}
|
|
1095
|
+
var _excluded$1 = ["children"];
|
|
1096
|
+
var StyledOdsParagraph = function StyledOdsParagraph(_ref) {
|
|
1097
|
+
var children = _ref.children,
|
|
1098
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
1099
|
+
return React.createElement(StyledtTypographyParagraph, Object.assign({}, props), children);
|
|
1100
|
+
};
|
|
1115
1101
|
var OdsParagraph = function OdsParagraph(props) {
|
|
1116
1102
|
return React.createElement(StyledOdsParagraph, Object.assign({}, props));
|
|
1117
1103
|
};
|
|
@@ -16966,5 +16952,22 @@ function OdsBadgeRibbon(props) {
|
|
|
16966
16952
|
}, React.createElement(StyledBadge.Ribbon, Object.assign({}, props), props.children)));
|
|
16967
16953
|
}
|
|
16968
16954
|
|
|
16969
|
-
|
|
16955
|
+
var _excluded$2 = ["content"];
|
|
16956
|
+
var OdsAdvanceModal = function OdsAdvanceModal(_ref) {
|
|
16957
|
+
var content = _ref.content,
|
|
16958
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
16959
|
+
return React.createElement(React.Fragment, null, React.createElement(Modal, Object.assign({}, props, {
|
|
16960
|
+
open: props.open,
|
|
16961
|
+
onOk: props.onOk,
|
|
16962
|
+
onCancel: props.onCancel
|
|
16963
|
+
}), content), React.createElement(ThemeProvider, {
|
|
16964
|
+
theme: lightTheme
|
|
16965
|
+
}, React.createElement(Modal, Object.assign({}, props, {
|
|
16966
|
+
open: props.open,
|
|
16967
|
+
onOk: props.onOk,
|
|
16968
|
+
onCancel: props.onCancel
|
|
16969
|
+
}), content)));
|
|
16970
|
+
};
|
|
16971
|
+
|
|
16972
|
+
export { DxTreeList, OdsAdvanceModal, OdsAlert, OdsAutoComplete, OdsBadge, OdsBadgeRibbon, OdsBannerAlert, OdsBasicTable, OdsButton, OdsCalendar, OdsCard, OdsCheckbox, OdsCheckboxGroup, OdsDropdown as OdsCollapse, OdsDataGrid, OdsDateRangePicker, OdsDatepicker, OdsDisplayGrid, OdsDivider, OdsDropdown, OdsDropdownButton, OdsImage, OdsInput, OdsInputNumber, OdsLink, OdsList, OdsModal, OdsMultiSelect, OdsNotification, OdsParagraph, OdsPassword, OdsPhoneInput, OdsRadio, OdsRadioGroup, OdsRangeTimepicker, OdsRate, OdsRemoteDataGrid, OdsSearch, OdsSelect, OdsSelectableTable, OdsSpin, OdsSwitch, OdsTab, OdsBasicTable as OdsTable, OdsTag, OdsText, OdsTextArea, OdsTimeline, OdsTimepicker, OdsTitle };
|
|
16970
16973
|
//# sourceMappingURL=index.modern.js.map
|