@xfers/design-system 7.2.0-dev.56a2d7c5ca → 8.0.0-dev.f82e752da2

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.
@@ -21,10 +21,15 @@ const ThemeContext_1 = require("../../theme/ThemeContext");
21
21
  function Carousel(_a) {
22
22
  var { children, activeKey, width = 250 } = _a, rest = __rest(_a, ["children", "activeKey", "width"]);
23
23
  const { brand } = (0, ThemeContext_1.useTheme)();
24
- const panels = children.map((child, index) => (react_1.default.createElement(antd_1.Tabs.TabPane, { key: index, forceRender: true }, child)));
24
+ const items = children.map((child, index) => ({
25
+ key: String(index),
26
+ label: null,
27
+ children: child,
28
+ forceRender: true,
29
+ }));
25
30
  const dots = children.map((child, index) => (react_1.default.createElement(Dot, { key: index, isActive: index === activeKey, activeColor: brand.primary.default })));
26
31
  return (react_1.default.createElement(Container, null,
27
- react_1.default.createElement(AnimatedTabs, Object.assign({ renderTabBar: () => react_1.default.createElement("div", null), width: width, activeKey: activeKey.toString(), animated: true }, rest), panels),
32
+ react_1.default.createElement(AnimatedTabs, Object.assign({ renderTabBar: () => react_1.default.createElement("div", null), width: width, activeKey: activeKey.toString(), animated: true, items: items }, rest)),
28
33
  react_1.default.createElement(Footer, null, dots)));
29
34
  }
30
35
  exports.default = Carousel;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Carousel/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAyB;AACzB,6DAAoC;AAEpC,+BAA2B;AAC3B,2DAAmD;AAQnD,SAAS,QAAQ,CAAC,EAAoD;QAApD,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,GAAG,GAAG,OAAkB,EAAb,IAAI,cAA3C,kCAA6C,CAAF;IAC3D,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,uBAAQ,GAAE,CAAA;IAE5B,MAAM,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC,C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AAI;;;;;CAKvC,CAAA;AAED,MAAM,MAAM,GAAG,gBAAM,CAAC,IAAI,CAAA;;;;CAIzB,CAAA;AAED,MAAM,GAAG,GAAG,gBAAM,CAAC,IAAI,CAA4C;;;sBAG7C,CAAC,KAAK,EAAE,EAAE,CAC5B,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS;;;CAGjD,CAAA"}
@@ -55,8 +55,8 @@ const Select = function (_a) {
55
55
  const ref = selectRef || internalRef;
56
56
  return (react_1.default.createElement(style_1.SelectContainer, null,
57
57
  label && (0, helpers_1.renderLabel)(label, labelTooltip),
58
- react_1.default.createElement(style_1.StyledAntSelect, Object.assign({ disabled: disabled, mode: mode, ref: ref, "$size": size, "$mode": mode, getPopupContainer: () => document.body }, rest, { error: error, dropdownRender: (menu) => (react_1.default.createElement(style_1.StyledDropdown, { "$size": size },
59
- react_1.default.createElement(Typography_1.Typography.Body, { size: size === 'sm' ? 'md' : 'lg' }, menu))), dropdownStyle: style_1.dropdownStyle, suffixIcon: (0, helpers_1.getSuffixIcon)(secondaryText), placeholder: (0, helpers_1.getPlaceholder)(size, placeholder), showArrow: true, tagRender: (0, helpers_1.getCustomSelectTag)(mode, disabled, size), maxTagCount: 999 }), options ? (0, helpers_1.renderOptions)(options, size) : children),
58
+ react_1.default.createElement(style_1.StyledAntSelect, Object.assign({ disabled: disabled, mode: mode, ref: ref, "$size": size, "$mode": mode, getPopupContainer: () => document.body }, rest, { error: error, popupRender: (menu) => (react_1.default.createElement(style_1.StyledDropdown, { "$size": size },
59
+ react_1.default.createElement(Typography_1.Typography.Body, { size: size === 'sm' ? 'md' : 'lg' }, menu))), popupStyle: style_1.dropdownStyle, suffixIcon: (0, helpers_1.getSuffixIcon)(secondaryText), placeholder: (0, helpers_1.getPlaceholder)(size, placeholder), tagRender: (0, helpers_1.getCustomSelectTag)(mode, disabled, size), maxTagCount: 999 }), options ? (0, helpers_1.renderOptions)(options, size) : children),
60
60
  (0, helpers_1.renderHelperText)(helperText)));
61
61
  };
62
62
  Select.Option = antd_1.Select.Option;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAgD;AAChD,+BAAuD;AAGvD,sEAAkE;AAClE,uCAOkB;AAClB,mCAKgB;AAyBhB,MAAM,MAAM,GAAG,UAAU,EAcjB;QAdiB,EACvB,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,IAAI,GAAG,IAAI,EACX,IAAI,EACJ,KAAK,EACL,YAAY,EACZ,SAAS,EACT,WAAW,EACX,KAAK,GAAG,KAAK,EACb,aAAa,EACb,UAAU,EACV,OAAO,OAED,EADH,IAAI,cAbgB,gJAcxB,CADQ;IAEP,MAAM,WAAW,GAAG,IAAA,cAAM,EAAgB,IAAI,CAAC,CAAA;IAC/C,MAAM,GAAG,GAAG,SAAS,IAAI,WAAW,CAAA;IAEpC,OAAO,CACL,8BAAC,uBAAe;QACb,KAAK,IAAI,IAAA,qBAAW,EAAC,KAAK,EAAE,YAAY,CAAC;QAC1C,8BAAC,uBAAe,kBACd,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EACV,GAAG,EAAE,GAAG,WACD,IAAI,WACJ,IAAI,EACX,iBAAiB,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,IAClC,IAAI,IACR,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CACxB,8BAAC,sBAAc,aAAQ,IAAI;gBACzB,8BAAC,uBAAU,CAAC,IAAI,IAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAC/C,IAAI,CACW,CACH,CAClB,EACD,aAAa,EAAE,qBAAa,EAC5B,UAAU,EAAE,I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IAAI,EACX,iBAAiB,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,IAClC,IAAI,IACR,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CACrB,8BAAC,sBAAc,aAAQ,IAAI;gBACzB,8BAAC,uBAAU,CAAC,IAAI,IAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAC/C,IAAI,CACW,CACH,CAClB,EACD,UAAU,EAAE,qBAAa,EACzB,UAAU,EAAE,IAAA,uBAAa,EAAC,aAAa,CAAC,EACxC,WAAW,EAAE,IAAA,wBAAc,EAAC,IAAI,EAAE,WAAW,CAAC,EAC9C,SAAS,EAAE,IAAA,4BAAkB,EAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,EACnD,WAAW,EAAE,GAAG,KAEf,OAAO,CAAC,CAAC,CAAC,IAAA,uBAAa,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAClC;QACjB,IAAA,0BAAgB,EAAC,UAAU,CAAC,CACb,CACnB,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,GAAG,aAAS,CAAC,MAAM,CAAA;AAChC,kBAAe,MAAM,CAAA"}
@@ -19,23 +19,29 @@ const emotion_1 = require("emotion");
19
19
  const antd_1 = require("antd");
20
20
  const fontStyles_1 = require("../../constants/fontStyles");
21
21
  const DesktopSteps = (_a) => {
22
- var { className } = _a, rest = __rest(_a, ["className"]);
22
+ var { className, children } = _a, rest = __rest(_a, ["className", "children"]);
23
23
  const style = `
24
24
  & .ant-steps-item-title {
25
25
  padding-right: 0;
26
26
  }
27
27
 
28
- & .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {
28
+ & .ant-steps-item-finish .ant-steps-item-title {
29
29
  ${fontStyles_1.baseStyle}
30
30
  ${fontStyles_1.InactiveDesktopStepperStyle}
31
31
  }
32
32
 
33
- & .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {
33
+ & .ant-steps-item-process .ant-steps-item-title {
34
34
  ${fontStyles_1.baseStyle}
35
35
  ${fontStyles_1.ActiveDesktopStepperStyle}
36
36
  }
37
+
38
+ & .ant-steps-item-wait .ant-steps-item-title {
39
+ ${fontStyles_1.baseStyle}
40
+ ${fontStyles_1.InactiveDesktopStepperStyle}
41
+ color: #777777;
42
+ }
37
43
 
38
- & .ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {
44
+ & .ant-steps-item-finish .ant-steps-item-icon {
39
45
  background: #43CC32;
40
46
  }
41
47
 
@@ -44,63 +50,38 @@ const DesktopSteps = (_a) => {
44
50
  height: 13px;
45
51
  }
46
52
 
47
- &.ant-steps-dot .ant-steps-item-content {
53
+ &.ant-steps-dot .ant-steps-item-section {
48
54
  width: unset;
49
55
  max-width: 100%;
50
56
  }
51
57
 
52
- &.ant-steps-dot .ant-steps-item-process .ant-steps-item-icon {
53
- width: 13px;
54
- height: 13px;
55
- }
56
-
57
58
  &.ant-steps-vertical.ant-steps-dot .ant-steps-item-icon {
58
59
  margin-top: 6px;
59
60
  }
60
61
 
61
- &.ant-steps-dot .ant-steps-item-tail::after {
62
+ &.ant-steps-dot .ant-steps-item-rail {
62
63
  margin-left: 15px;
64
+ top: 4px;
65
+ left: -9px;
63
66
  }
64
67
 
65
- & .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-tail::after {
68
+ & .ant-steps-item-finish .ant-steps-item-rail {
69
+ border-color: #CACACA;
70
+ }
71
+
72
+ & .ant-steps-item-process .ant-steps-item-rail {
66
73
  background: #CACACA;
67
74
  }
68
75
 
69
- &.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot {
76
+ &.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-item-icon {
70
77
  top: 0;
78
+ left: 0;
71
79
  }
72
80
 
73
81
  &.ant-steps-vertical .ant-steps-item-icon {
74
82
  margin-right: 10px;
75
83
  }
76
-
77
- &.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot {
78
- left: 0;
79
- }
80
-
81
- & .ant-steps-item-icon > .ant-steps-icon {
82
- top: 0;
83
- }
84
-
85
- &.ant-steps-vertical.ant-steps-dot .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail {
86
- top: 4px;
87
- left: -9px;
88
- }
89
-
90
- & .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-tail::after {
91
- background: #CACACA;
92
- }
93
-
94
- & .ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {
95
- ${fontStyles_1.baseStyle}
96
- ${fontStyles_1.InactiveDesktopStepperStyle}
97
- color: #777777;
98
- }
99
84
  `;
100
- return react_1.default.createElement(antd_1.Steps, Object.assign({}, rest, { className: (0, emotion_1.cx)((0, emotion_1.css)(style), className) }));
101
- };
102
- const DesktopStep = (_a) => {
103
- var props = __rest(_a, []);
104
85
  const ellipseStyle = (0, emotion_1.css) `
105
86
  & .ant-steps-item-title {
106
87
  white-space: nowrap;
@@ -109,8 +90,18 @@ const DesktopStep = (_a) => {
109
90
  text-overflow: ellipsis;
110
91
  }
111
92
  `;
112
- return react_1.default.createElement(antd_1.Steps.Step, Object.assign({ className: (0, emotion_1.cx)(ellipseStyle) }, props));
93
+ // Convert children (DesktopSteps.Step elements) into `items` for antd v6
94
+ const items = react_1.default.Children.toArray(children)
95
+ .filter(react_1.default.isValidElement)
96
+ .map((child) => {
97
+ const _a = child.props, { className: itemClassName } = _a, itemProps = __rest(_a, ["className"]);
98
+ return Object.assign(Object.assign({}, itemProps), { className: (0, emotion_1.cx)(ellipseStyle, itemClassName) });
99
+ });
100
+ return react_1.default.createElement(antd_1.Steps, Object.assign({}, rest, { items: items, className: (0, emotion_1.cx)((0, emotion_1.css)(style), className) }));
113
101
  };
102
+ // DesktopSteps.Step is a render-only marker component; its props are collected
103
+ // by the parent DesktopSteps and forwarded as `items` to antd Steps.
104
+ const DesktopStep = () => null;
114
105
  DesktopSteps.Step = DesktopStep;
115
106
  exports.default = DesktopSteps;
116
107
  //# sourceMappingURL=DesktopSteps.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DesktopSteps.js","sourceRoot":"","sources":["../../../src/components/Steps/DesktopSteps.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAyB;AACzB,qCAAiC;AACjC,+BAAmD;AACnD,2DAImC;AAEnC,MAAM,YAAY,GAAG,CAAC,EAKrB,EAAE,EAAE;QALiB,EACpB,SAAS,OAIV,EAHI,IAAI,cAFa,aAGrB,CADQ;IAIP,MAAM,KAAK,GAAG;;;;;;UAMN,sBAAS;UACT,wCAA2B;;;;UAI3B,sBAAS;UACT,sCAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA4DzB,sBAAS;UACT,wCAA2B;;;KAGhC,CAAA;IAEH,OAAO,8BAAC,YAAK,oBAAK,IAAI,IAAE,SAAS,EAAE,IAAA,YAAE,EAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,SAAS,CAAC,IAAI,CAAA;AAClE,CAAC,CAAA;AAED,MAAM,WAAW,GAAwB,CAAC,EAAY,EAAE,EAAE;QAAX,KAAK,cAAV,EAAY,CAAF;IAClD,MAAM,YAAY,GAAG,IAAA,aAAG,EAAA;;;;;;;GAOvB,CAAA;IACD,OAAO,8BAAC,YAAK,CAAC,IAAI,kBAAC,SAAS,EAAE,IAAA,YAAE,EAAC,YAAY,CAAC,IAAM,KAAK,EAAI,CAAA;AAC/D,CAAC,CAAA;AACD,YAAY,CAAC,IAAI,GAAG,WAAW,CAAA;AAE/B,kBAAe,YAAY,CAAA"}
1
+ {"version":3,"file":"DesktopSteps.js","sourceRoot":"","sources":["../../../src/components/Steps/DesktopSteps.tsx"],"names":[],"mappings":";;;;;;;;;;;;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21
  const ThemeContext_1 = require("../../theme/ThemeContext");
22
22
  const Tabs = (_a) => {
23
- var { children } = _a, rest = __rest(_a, ["children"]);
23
+ var { children, items } = _a, rest = __rest(_a, ["children", "items"]);
24
24
  const { brand } = (0, ThemeContext_1.useTheme)();
25
25
  const style = `
26
26
  font-family: ${TypographyStyles_1.MAIN_FONT};
@@ -56,8 +56,27 @@ const Tabs = (_a) => {
56
56
  background-color: ${brand.primary.default};
57
57
  }
58
58
  `;
59
- return (react_1.default.createElement(antd_1.Tabs, Object.assign({ className: `${(0, emotion_1.css)(style)}` }, rest), children));
59
+ // Support legacy children (Tabs.TabPane) by converting to items.
60
+ // Use React.Children.forEach instead of toArray to avoid the .$-prefix
61
+ // that toArray adds to keys, which would break controlled activeKey usage.
62
+ const resolvedItems = items !== null && items !== void 0 ? items : (children
63
+ ? (() => {
64
+ const result = [];
65
+ react_1.default.Children.forEach(children, (child) => {
66
+ var _a, _b;
67
+ if (!react_1.default.isValidElement(child))
68
+ return;
69
+ const _c = child.props, { tab, key: propKey, children: childContent } = _c, paneRest = __rest(_c, ["tab", "key", "children"]);
70
+ result.push(Object.assign({ key: String((_b = (_a = child.key) !== null && _a !== void 0 ? _a : propKey) !== null && _b !== void 0 ? _b : ''), label: tab, children: childContent }, paneRest));
71
+ });
72
+ return result;
73
+ })()
74
+ : undefined);
75
+ return react_1.default.createElement(antd_1.Tabs, Object.assign({ className: `${(0, emotion_1.css)(style)}`, items: resolvedItems }, rest));
60
76
  };
77
+ // Keep TabPane export for backward compatibility with legacy children usage.
78
+ // At runtime, children passed to Tabs are converted to items automatically above.
79
+ // Consumers using <Tabs.TabPane> will continue to work without code changes.
61
80
  Tabs.TabPane = antd_1.Tabs.TabPane;
62
81
  exports.default = Tabs;
63
82
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Tabs/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAyB;A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jB,KAAK,aAAL,KAAK,cAAL,KAAK,GACL,CAAC,QAAQ;QACP,CAAC,CAAC,CAAC,GAAG,EAAE;YACJ,MAAM,MAAM,GAAoC,EAAE,CAAA;YAClD,eAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;;gBACzC,IAAI,CAAC,eAAK,CAAC,cAAc,CAAC,KAAK,CAAC;oBAAE,OAAM;gBACxC,MAAM,KAKF,KAAK,CAAC,KAKT,EAVK,EACJ,GAAG,EACH,GAAG,EAAE,OAAO,EACZ,QAAQ,EAAE,YAAY,OAOvB,EANI,QAAQ,cAJP,0BAKL,CAKA,CAAA;gBACD,MAAM,CAAC,IAAI,iBACT,GAAG,EAAE,MAAM,CAAC,MAAA,MAAA,KAAK,CAAC,GAAG,mCAAI,OAAO,mCAAI,EAAE,CAAC,EACvC,KAAK,EAAE,GAAG,EACV,QAAQ,EAAE,YAAY,IACnB,QAAQ,EACX,CAAA;YACJ,CAAC,CAAC,CAAA;YACF,OAAO,MAAM,CAAA;QACf,CAAC,CAAC,EAAE;QACN,CAAC,CAAC,SAAS,CAAC,CAAA;IAEhB,OAAO,8BAAC,WAAO,kBAAC,SAAS,EAAE,GAAG,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,aAAa,IAAM,IAAI,EAAI,CAAA;AAChF,CAAC,CAAA;AAED,6EAA6E;AAC7E,kFAAkF;AAClF,6EAA6E;AAC7E,IAAI,CAAC,OAAO,GAAG,WAAO,CAAC,OAAO,CAAA;AAE9B,kBAAe,IAAI,CAAA"}
@@ -20,38 +20,19 @@ const antd_1 = require("antd");
20
20
  const CustomTimeline = (_a) => {
21
21
  var { className } = _a, rest = __rest(_a, ["className"]);
22
22
  const style = `
23
- // for reverse === true
24
- &.ant-timeline.ant-timeline-reverse
25
- > .ant-timeline-item
26
- > .ant-timeline-item-head-custom {
27
- top: 40px;
28
- margin-right: 50px;
29
- }
30
-
31
- &.ant-timeline.ant-timeline-reverse
32
- > .ant-timeline-item
33
- > .ant-timeline-item-tail {
34
- top: 40px;
35
- }
36
-
37
- &.ant-timeline.ant-timeline-reverse
38
- > .ant-timeline-item
39
- > .ant-timeline-item-content {
40
- margin-left: 45px;
41
- }
42
-
43
- // for reverse === false
44
- &.ant-timeline > .ant-timeline-item > .ant-timeline-item-head-custom {
45
- top: 40px;
46
- margin-right: 50px;
47
- }
23
+ &.ant-timeline .ant-timeline-item {
24
+ .ant-timeline-item-icon {
25
+ top: 40px;
26
+ }
48
27
 
49
- &.ant-timeline > .ant-timeline-item > .ant-timeline-item-tail {
50
- top: 40px;
51
- }
28
+ .ant-timeline-item-rail {
29
+ top: 40px;
30
+ bottom: -40px;
31
+ }
52
32
 
53
- &.ant-timeline > .ant-timeline-item > .ant-timeline-item-content {
54
- margin-left: 45px;
33
+ .ant-timeline-item-content {
34
+ margin-left: 20px;
35
+ }
55
36
  }
56
37
  `;
57
38
  return react_1.default.createElement(antd_1.Timeline, Object.assign({}, rest, { className: (0, emotion_1.cx)((0, emotion_1.css)(style), className) }));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Timeline/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAyB;AACzB,qCAAiC;AACjC,+BAA8C;AAE9C,MAAM,cAAc,GAAG,CAAC,EAAqC,EAAE,EAAE;QAAzC,EAAE,SAAS,OAA0B,EAArB,IAAI,cAApB,aAAsB,CAAF;IAC1C,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCb,CAAA;IAED,OAAO,8BAAC,eAAQ,oBAAK,IAAI,IAAE,SAAS,EAAE,IAAA,YAAE,EAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,SAAS,CAAC,IAAI,CAAA;AACrE,CAAC,CAAA;AAED,cAAc,CAAC,IAAI,GAAG,eAAQ,CAAC,IAAI,CAAA;AAEnC,kBAAe,cAAc,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Timeline/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAyB;AACzB,qCAAiC;AACjC,+BAA8C;AAE9C,MAAM,cAAc,GAAG,CAAC,EAAqC,EAAE,EAAE;QAAzC,EAAE,SAAS,OAA0B,EAArB,IAAI,cAApB,aAAsB,CAAF;IAC1C,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;GAeb,CAAA;IAED,OAAO,8BAAC,eAAQ,oBAAK,IAAI,IAAE,SAAS,EAAE,IAAA,YAAE,EAAC,IAAA,aAAG,EAAC,KAAK,CAAC,EAAE,SAAS,CAAC,IAAI,CAAA;AACrE,CAAC,CAAA;AAED,cAAc,CAAC,IAAI,GAAG,eAAQ,CAAC,IAAI,CAAA;AAEnC,kBAAe,cAAc,CAAA"}
@@ -28,7 +28,7 @@ function default_1({ children, placement = 'bottomRight', overlayClassName = def
28
28
  }
29
29
  };
30
30
  const overlayStyle = maxWidth ? { maxWidth } : undefined;
31
- return (react_1.default.createElement(antd_1.Tooltip, { overlayClassName: overlayClassName, arrowPointAtCenter: arrowPointAtCenter, trigger: trigger, color: color, placement: placement, overlayStyle: overlayStyle, title: react_1.default.createElement(Container, null,
31
+ return (react_1.default.createElement(antd_1.Tooltip, { overlayClassName: overlayClassName, arrow: arrowPointAtCenter ? { pointAtCenter: true } : undefined, trigger: trigger, color: color, placement: placement, overlayStyle: overlayStyle, title: react_1.default.createElement(Container, null,
32
32
  title && (react_1.default.createElement(Typography_1.P1Bold, { style: {
33
33
  fontSize: TypographyStyles_1.FONT_SIZE.P1,
34
34
  marginBottom: '16px',
@@ -50,7 +50,7 @@ const defaultOverlayStyle = (0, emotion_1.css) `
50
50
  color: ${theme_1.straitsXTheme.text.white};
51
51
  box-shadow: none;
52
52
 
53
- .ant-tooltip-inner {
53
+ .ant-tooltip-container {
54
54
  padding: 12px;
55
55
  border-radius: 8px;
56
56
  box-shadow: none;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Tooltip/index.tsx"],"names":[],"mappings":";;;;;AA2CA,4BAyEC;AApHD,kDAAyB;AACzB,+BAA8B;AAE9B,6DAAoC;AACpC,qCAA6B;AAC7B,6DAAgE;AAChE,2DAAsD;AACtD,oEAAsE;AACtE,0DAAuD;AACvD,6CAAiD;AACjD,8CAAsC;AAiCtC,mBAAyB,EACvB,QAAQ,EACR,SAAS,GAAG,aAAa,EACzB,gBAAgB,GAAG,mBAAmB,EACtC,kBAAkB,GAAG,IAAI,EACzB,OAAO,GAAG,OAAO,EACjB,KAAK,EACL,KAAK,EACL,OAAO,EACP,eAAe,GAAG,CAAC,EACnB,eAAe,GAAG,CAAC,EACnB,KAAK,GAAG,KAAK,EACb,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,SAAS,GACH;IACN,MAAM,oBAAoB,GAAG,CAAC,CAAsC,EAAE,EAAE;QACtE,CAAC,CAAC,cAAc,EAAE,CAAA;QAClB,IAAI,SAAS,EAAE,CAAC;YACd,SAAS,EAAE,CAAA;QACb,CAAC;IACH,CAAC,CAAA;IACD,MAAM,mBAAmB,GAAG,CAAC,CAAsC,EAAE,EAAE;QACrE,CAAC,CAAC,cAAc,EAAE,CAAA;QAClB,IAAI,QAAQ,EAAE,CAAC;YACb,QAAQ,EAAE,CAAA;QACZ,CAAC;IACH,CAAC,CAAA;IAED,MAAM,YAAY,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;IACxD,OAAO,CACL,8BAAC,cAAO,IACN,gBAAgB,EAAE,gBAAgB,EAClC,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,EAC1B,KAAK,EACH,8BAAC,SAAS;YACP,KAAK,IAAI,CACR,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G,gBAAM,CAAC,CAAC,CAAA;iBACZ,8BAAW,CAAC,IAAI;WACtB,qBAAa,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO;;aAEhC,qBAAa,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK;;CAE5C,CAAA;AACD,MAAM,aAAa,GAAG,gBAAM,CAAC,CAAC,CAAA;iBACb,8BAAW,CAAC,IAAI;WACtB,qBAAa,CAAC,IAAI,CAAC,KAAK;;aAEtB,qBAAa,CAAC,IAAI,CAAC,KAAK;;CAEpC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Tooltip/index.tsx"],"names":[],"mappings":";;;;;AA2CA,4BAyEC;AApHD,kDAAyB;AACzB,+BAA8B;AAE9B,6DAAoC;AACpC,qCAA6B;AAC7B,6DAAgE;AAChE,2DAAsD;AACtD,oEAAsE;AACtE,0DAAuD;AACvD,6CAAiD;AACjD,8CAAsC;AAiCtC,mBAAyB,EACvB,QAAQ,EACR,SAAS,GAAG,aAAa,EACzB,gBAAgB,GAAG,mBAAmB,EACtC,kBAAkB,GAAG,IAAI,EACzB,OAAO,GAAG,OAAO,EACjB,KAAK,EACL,KAAK,EACL,OAAO,EACP,eAAe,GAAG,CAAC,EACnB,eAAe,GAAG,CAAC,EACnB,KAAK,GAAG,KAAK,EACb,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,SAAS,GACH;IACN,MAAM,oBAAoB,GAAG,CAAC,CAAsC,EAAE,EAAE;QACtE,CAAC,CAAC,cAAc,EAAE,CAAA;QAClB,IAAI,SAAS,EAAE,CAAC;YACd,SAAS,EAAE,CAAA;QACb,CAAC;IACH,CAAC,CAAA;IACD,MAAM,mBAAmB,GAAG,CAAC,CAAsC,EAAE,EAAE;QACrE,CAAC,CAAC,cAAc,EAAE,CAAA;QAClB,IAAI,QAAQ,EAAE,CAAC;YACb,QAAQ,EAAE,CAAA;QACZ,CAAC;IACH,CAAC,CAAA;IAED,MAAM,YAAY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AC,KAAK,CAAC,OAAO,CAAC,QAAQ;;;;;;CAM7D,CAAA;AACD,MAAM,SAAS,GAAG,gBAAM,CAAC,GAAG,CAAA;;CAE3B,CAAA;AACD,MAAM,eAAe,GAAG,gBAAM,CAAC,GAAG,CAAA;;;;;;;;CAQjC,CAAA;AACD,MAAM,KAAK,GAAG,gBAAM,CAAC,IAAI,CAAA;;;;sBAIH,0BAAY,CAAC,IAAI;WAC5B,qBAAa,CAAC,IAAI,CAAC,KAAK;eACpB,4BAAS,CAAC,KAAK;iBACb,8BAAW,CAAC,IAAI;;CAEhC,CAAA;AACD,MAAM,YAAY,GAAG,gBAAM,CAAC,CAAC,CAAA;iBACZ,8BAAW,CAAC,IAAI;WACtB,qBAAa,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO;;aAEhC,qBAAa,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK;;CAE5C,CAAA;AACD,MAAM,aAAa,GAAG,gBAAM,CAAC,CAAC,CAAA;iBACb,8BAAW,CAAC,IAAI;WACtB,qBAAa,CAAC,IAAI,CAAC,KAAK;;aAEtB,qBAAa,CAAC,IAAI,CAAC,KAAK;;CAEpC,CAAA"}
@@ -6,7 +6,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
6
6
  };
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  const antd_1 = require("antd");
9
- const moment_1 = __importDefault(require("rc-picker/lib/generate/moment"));
9
+ const moment_1 = __importDefault(require("@rc-component/picker/lib/generate/moment"));
10
10
  const MomentDatePicker = antd_1.DatePicker.generatePicker(moment_1.default);
11
11
  exports.default = MomentDatePicker;
12
12
  //# sourceMappingURL=momentDatePicker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"momentDatePicker.js","sourceRoot":"","sources":["../../src/shared/momentDatePicker.ts"],"names":[],"mappings":";AAAA,gGAAgG;AAChG,iIAAiI;;;;;AAEjI,+BAAiC;AAEjC,2EAAgE;AAEhE,MAAM,gBAAgB,GAAG,iBAAU,CAAC,cAAc,CAAS,gBAAoB,CAAC,CAAA;AAEhF,kBAAe,gBAAgB,CAAA"}
1
+ {"version":3,"file":"momentDatePicker.js","sourceRoot":"","sources":["../../src/shared/momentDatePicker.ts"],"names":[],"mappings":";AAAA,gGAAgG;AAChG,iIAAiI;;;;;AAEjI,+BAAiC;AAEjC,sFAA2E;AAE3E,MAAM,gBAAgB,GAAG,iBAAU,CAAC,cAAc,CAAS,gBAAoB,CAAC,CAAA;AAEhF,kBAAe,gBAAgB,CAAA"}
@@ -9,8 +9,8 @@ export declare const TextContainer: import("@emotion/styled-base").StyledCompone
9
9
  export declare const TextValueStyles: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
10
10
  isBankAddress: boolean;
11
11
  }, object>;
12
- export declare const CopyButton: import("@emotion/styled-base").StyledComponent<Omit<import("antd").ButtonProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>, "ref"> & {
13
- ref?: ((instance: HTMLButtonElement | HTMLAnchorElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement | HTMLAnchorElement> | null | undefined;
14
- }, Pick<Omit<import("antd").ButtonProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>, "ref"> & {
15
- ref?: ((instance: HTMLButtonElement | HTMLAnchorElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement | HTMLAnchorElement> | null | undefined;
12
+ export declare const CopyButton: import("@emotion/styled-base").StyledComponent<Omit<import("antd").ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
13
+ ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLAnchorElement | HTMLButtonElement> | null | undefined;
14
+ }, Pick<Omit<import("antd").ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
15
+ ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLAnchorElement | HTMLButtonElement> | null | undefined;
16
16
  }, keyof import("antd").ButtonProps>, object>;
@@ -13,7 +13,7 @@ export type IExtraElementProps = {
13
13
  type IAddItemProps = Omit<IExtraElementProps, 'topContent' | 'bottomContent'>;
14
14
  declare const DynamicSelect: {
15
15
  ({ className, children, disabled, mode, label, iconSrc, extraText, extraAction, isAddItemBarVisible, topContent, bottomContent, actionContent, ...rest }: IDynamicSelectProps): React.JSX.Element;
16
- Option: import("rc-select/lib/Option").OptionFC;
16
+ Option: import("@rc-component/select/lib/Option").OptionFC;
17
17
  };
18
18
  export declare const AddIcon: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, Pick<React.ClassAttributes<HTMLImageElement> & React.ImgHTMLAttributes<HTMLImageElement>, keyof React.ImgHTMLAttributes<HTMLImageElement>>, object>;
19
19
  export declare const AddButton: import("@emotion/styled-base").StyledComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Pick<Pick<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement>>, keyof React.HTMLAttributes<HTMLDivElement>> & {
@@ -1,7 +1,6 @@
1
1
  import React, { RefObject } from 'react';
2
2
  import { SelectProps } from 'antd';
3
- import type { BaseSelectRef } from 'rc-select';
4
- import type { BaseOptionType, DefaultOptionType } from 'rc-select/lib/Select';
3
+ import type { BaseSelectRef, BaseOptionType, DefaultOptionType } from '@rc-component/select';
5
4
  export type Props = {
6
5
  disabled?: boolean;
7
6
  children?: React.ReactNode;
@@ -25,6 +24,6 @@ export type Props = {
25
24
  } & Omit<SelectProps<unknown, DefaultOptionType | BaseOptionType>, 'disabled' | 'size'>;
26
25
  declare const Select: {
27
26
  ({ children, disabled, size, mode, label, labelTooltip, selectRef, placeholder, error, secondaryText, helperText, options, ...rest }: Props): React.JSX.Element;
28
- Option: import("rc-select/lib/Option").OptionFC;
27
+ Option: import("@rc-component/select/lib/Option").OptionFC;
29
28
  };
30
29
  export default Select;
@@ -1,10 +1,10 @@
1
1
  export declare const LabelContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
2
2
  export declare const OptionContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
3
3
  export declare const SelectContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
4
- export declare const StyledAntSelect: import("@emotion/styled-base").StyledComponent<Omit<import("antd").SelectProps<unknown, import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType> & {
4
+ export declare const StyledAntSelect: import("@emotion/styled-base").StyledComponent<Omit<import("antd").SelectProps<unknown, import("@rc-component/select").DefaultOptionType | import("@rc-component/select").BaseOptionType> & {
5
5
  children?: import("react").ReactNode | undefined;
6
- } & import("react").RefAttributes<import("rc-select").BaseSelectRef>, "ref"> & {
7
- ref?: ((instance: import("rc-select").BaseSelectRef | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<import("rc-select").BaseSelectRef> | null | undefined;
6
+ } & import("react").RefAttributes<import("antd").RefSelectProps>, "ref"> & {
7
+ ref?: ((instance: import("antd").RefSelectProps | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<import("antd").RefSelectProps> | null | undefined;
8
8
  }, {
9
9
  $size: "sm" | "lg";
10
10
  $mode?: "multiple";
@@ -1,9 +1,18 @@
1
1
  import React from 'react';
2
- import { StepsProps, StepProps } from 'antd';
2
+ import { StepsProps } from 'antd';
3
+ type StepItem = {
4
+ title?: React.ReactNode;
5
+ description?: React.ReactNode;
6
+ status?: 'wait' | 'process' | 'finish' | 'error';
7
+ disabled?: boolean;
8
+ icon?: React.ReactNode;
9
+ subTitle?: React.ReactNode;
10
+ className?: string;
11
+ };
3
12
  declare const DesktopSteps: {
4
- ({ className, ...rest }: StepsProps & {
5
- children: React.ReactNode;
13
+ ({ className, children, ...rest }: StepsProps & {
14
+ children?: React.ReactNode;
6
15
  }): React.JSX.Element;
7
- Step: React.FC<StepProps>;
16
+ Step: React.FC<StepItem>;
8
17
  };
9
18
  export default DesktopSteps;
@@ -1,12 +1,14 @@
1
1
  import React from 'react';
2
+ import type { TabsProps } from 'antd';
2
3
  type Props = {
3
4
  activeKey?: string;
4
5
  onChange?: any;
5
6
  animated?: boolean;
6
- children: React.ReactNode;
7
+ items?: TabsProps['items'];
8
+ children?: React.ReactNode;
7
9
  };
8
10
  declare const Tabs: {
9
- ({ children, ...rest }: Props): React.JSX.Element;
11
+ ({ children, items, ...rest }: Props): React.JSX.Element;
10
12
  TabPane: React.FC<import("antd").TabPaneProps>;
11
13
  };
12
14
  export default Tabs;
@@ -1,18 +1,18 @@
1
1
  import type { Moment } from 'moment';
2
- declare const MomentDatePicker: (<ValueType = Moment>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Moment, import("antd/es/date-picker/generatePicker").PickerProps<Moment>, ValueType>) => React.ReactElement) & {
2
+ declare const MomentDatePicker: (<ValueType = Moment, IsMultiple extends boolean = false>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Moment, import("antd/es/date-picker/generatePicker").PickerProps<Moment>, ValueType, IsMultiple>) => React.ReactElement) & {
3
3
  displayName?: string;
4
4
  } & {
5
5
  displayName?: string;
6
- WeekPicker: (<ValueType = Moment>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Moment, Omit<import("antd/es/date-picker/generatePicker").PickerProps<Moment>, "picker">, ValueType>) => React.ReactElement) & {
6
+ WeekPicker: (<ValueType = Moment, IsMultiple extends boolean = false>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Moment, Omit<import("antd/es/date-picker/generatePicker").PickerProps<Moment>, "picker">, ValueType, IsMultiple>) => React.ReactElement) & {
7
7
  displayName?: string;
8
8
  };
9
- MonthPicker: (<ValueType = Moment>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Moment, Omit<import("antd/es/date-picker/generatePicker").PickerProps<Moment>, "picker">, ValueType>) => React.ReactElement) & {
9
+ MonthPicker: (<ValueType = Moment, IsMultiple extends boolean = false>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Moment, Omit<import("antd/es/date-picker/generatePicker").PickerProps<Moment>, "picker">, ValueType, IsMultiple>) => React.ReactElement) & {
10
10
  displayName?: string;
11
11
  };
12
- YearPicker: (<ValueType = Moment>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Moment, Omit<import("antd/es/date-picker/generatePicker").PickerProps<Moment>, "picker">, ValueType>) => React.ReactElement) & {
12
+ YearPicker: (<ValueType = Moment, IsMultiple extends boolean = false>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Moment, Omit<import("antd/es/date-picker/generatePicker").PickerProps<Moment>, "picker">, ValueType, IsMultiple>) => React.ReactElement) & {
13
13
  displayName?: string;
14
14
  };
15
- RangePicker: import("react").ForwardRefExoticComponent<Omit<import("rc-picker").RangePickerProps<Moment>, "locale" | "generateConfig" | "hideHeader"> & {
15
+ RangePicker: import("react").ForwardRefExoticComponent<Omit<import("@rc-component/picker").RangePickerProps<Moment>, "locale" | "generateConfig" | "hideHeader" | "classNames" | "styles"> & {
16
16
  locale?: import("antd/es/date-picker/generatePicker").PickerLocale;
17
17
  size?: import("antd/es/button").ButtonSize;
18
18
  placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
@@ -23,11 +23,73 @@ declare const MomentDatePicker: (<ValueType = Moment>(props: import("antd/es/dat
23
23
  popupClassName?: string;
24
24
  rootClassName?: string;
25
25
  popupStyle?: React.CSSProperties;
26
- } & import("react").RefAttributes<import("rc-picker").PickerRef>>;
27
- TimePicker: (<ValueType = Moment>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Moment, Omit<import("antd/es/date-picker/generatePicker/interface").GenericTimePickerProps<Moment>, "picker">, ValueType>) => React.ReactElement) & {
26
+ classNames?: import("antd/es/_util/hooks/useMergeSemantic/semanticType").DeepClassNameType<{
27
+ root?: string;
28
+ prefix?: string;
29
+ input?: string;
30
+ suffix?: string;
31
+ popup?: string | {
32
+ root?: string;
33
+ header?: string;
34
+ body?: string;
35
+ content?: string;
36
+ item?: string;
37
+ footer?: string;
38
+ container?: string;
39
+ };
40
+ } | undefined> | ((info: {
41
+ props: import("antd/es/date-picker/generatePicker/interface").InjectDefaultProps<import("@rc-component/picker").RangePickerProps<Moment>>;
42
+ }) => import("antd/es/_util/hooks/useMergeSemantic/semanticType").DeepClassNameType<{
43
+ root?: string;
44
+ prefix?: string;
45
+ input?: string;
46
+ suffix?: string;
47
+ popup?: string | {
48
+ root?: string;
49
+ header?: string;
50
+ body?: string;
51
+ content?: string;
52
+ item?: string;
53
+ footer?: string;
54
+ container?: string;
55
+ };
56
+ } | undefined>);
57
+ styles?: import("antd/es/_util/hooks/useMergeSemantic/semanticType").DeepStylesType<{
58
+ root?: React.CSSProperties;
59
+ prefix?: React.CSSProperties;
60
+ input?: React.CSSProperties;
61
+ suffix?: React.CSSProperties;
62
+ popup?: {
63
+ root?: React.CSSProperties;
64
+ header?: React.CSSProperties;
65
+ body?: React.CSSProperties;
66
+ content?: React.CSSProperties;
67
+ item?: React.CSSProperties;
68
+ footer?: React.CSSProperties;
69
+ container?: React.CSSProperties;
70
+ };
71
+ } | undefined> | ((info: {
72
+ props: import("antd/es/date-picker/generatePicker/interface").InjectDefaultProps<import("@rc-component/picker").RangePickerProps<Moment>>;
73
+ }) => import("antd/es/_util/hooks/useMergeSemantic/semanticType").DeepStylesType<{
74
+ root?: React.CSSProperties;
75
+ prefix?: React.CSSProperties;
76
+ input?: React.CSSProperties;
77
+ suffix?: React.CSSProperties;
78
+ popup?: {
79
+ root?: React.CSSProperties;
80
+ header?: React.CSSProperties;
81
+ body?: React.CSSProperties;
82
+ content?: React.CSSProperties;
83
+ item?: React.CSSProperties;
84
+ footer?: React.CSSProperties;
85
+ container?: React.CSSProperties;
86
+ };
87
+ } | undefined>);
88
+ } & import("react").RefAttributes<import("@rc-component/picker").PickerRef>>;
89
+ TimePicker: (<ValueType = Moment, IsMultiple extends boolean = false>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Moment, Omit<import("antd/es/date-picker/generatePicker/interface").GenericTimePickerProps<Moment>, "picker">, ValueType, IsMultiple>) => React.ReactElement) & {
28
90
  displayName?: string;
29
91
  };
30
- QuarterPicker: (<ValueType = Moment>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Moment, Omit<import("antd/es/date-picker/generatePicker").PickerProps<Moment>, "picker">, ValueType>) => React.ReactElement) & {
92
+ QuarterPicker: (<ValueType = Moment, IsMultiple extends boolean = false>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Moment, Omit<import("antd/es/date-picker/generatePicker").PickerProps<Moment>, "picker">, ValueType, IsMultiple>) => React.ReactElement) & {
31
93
  displayName?: string;
32
94
  };
33
95
  };