sti-antd-package 0.0.28 → 0.0.30
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/NumberFormat/types.d.ts +3 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +12 -6
- package/dist/index.js +12 -6
- package/package.json +4 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { SizeType } from "antd/es/config-provider/SizeContext";
|
|
2
1
|
import { formColLayout } from "../../constants";
|
|
2
|
+
import { SizeType } from "antd/es/config-provider/SizeContext";
|
|
3
|
+
import { ValidateStatus } from "antd/es/form/FormItem";
|
|
3
4
|
import { valueType } from "antd/es/statistic/utils";
|
|
4
5
|
import { ShouldUpdate } from "rc-field-form/lib/Field";
|
|
5
6
|
import { NamePath, Rule } from "rc-field-form/lib/interface";
|
|
@@ -43,7 +44,7 @@ export interface NumberFormatComponentProps {
|
|
|
43
44
|
ruleMessage?: string;
|
|
44
45
|
ruleMin?: number;
|
|
45
46
|
ruleMax?: number;
|
|
46
|
-
validateStatus?:
|
|
47
|
+
validateStatus?: ValidateStatus;
|
|
47
48
|
help?: React.ReactNode;
|
|
48
49
|
shouldUpdate?: ShouldUpdate<string | string[]>;
|
|
49
50
|
ref?: Ref<NumberFormatComponentRef>;
|
package/dist/index.d.ts
CHANGED
|
@@ -592,7 +592,7 @@ interface NumberFormatComponentProps {
|
|
|
592
592
|
ruleMessage?: string;
|
|
593
593
|
ruleMin?: number;
|
|
594
594
|
ruleMax?: number;
|
|
595
|
-
validateStatus?:
|
|
595
|
+
validateStatus?: ValidateStatus;
|
|
596
596
|
help?: React.ReactNode;
|
|
597
597
|
shouldUpdate?: ShouldUpdate<string | string[]>;
|
|
598
598
|
ref?: Ref<NumberFormatComponentRef>;
|
package/dist/index.esm.js
CHANGED
|
@@ -7539,7 +7539,7 @@ const DropdownButtonComponent = ({ trigger, placement, menuItems, disabled, data
|
|
|
7539
7539
|
onClick: () => { var _a; return (_a = menu.onClick) === null || _a === void 0 ? void 0 : _a.call(menu, data); },
|
|
7540
7540
|
};
|
|
7541
7541
|
});
|
|
7542
|
-
return (jsxRuntimeExports.jsx(Dropdown, { menu: { items }, placement: placement !== null && placement !== void 0 ? placement : 'bottomRight', trigger: trigger !== null && trigger !== void 0 ? trigger : ['hover'], disabled: disabled, children: jsxRuntimeExports.jsx(
|
|
7542
|
+
return (jsxRuntimeExports.jsx(Dropdown, { menu: { items }, placement: placement !== null && placement !== void 0 ? placement : 'bottomRight', trigger: trigger !== null && trigger !== void 0 ? trigger : ['hover'], disabled: disabled, children: jsxRuntimeExports.jsx(Button, { size: "small", icon: jsxRuntimeExports.jsx(RefIcon$8, {}), onClick: e => e.preventDefault() }) }));
|
|
7543
7543
|
};
|
|
7544
7544
|
|
|
7545
7545
|
var css_248z$5 = ".style-module_icon__GHpNO {\n size: 1.5rem;\n}";
|
|
@@ -12588,7 +12588,6 @@ function resetWarned() {
|
|
|
12588
12588
|
deprecatedWarnList = null;
|
|
12589
12589
|
resetWarned$1();
|
|
12590
12590
|
}
|
|
12591
|
-
// eslint-disable-next-line import/no-mutable-exports
|
|
12592
12591
|
let warning$1 = noop$1;
|
|
12593
12592
|
if (process.env.NODE_ENV !== 'production') {
|
|
12594
12593
|
warning$1 = (valid, component, message) => {
|
|
@@ -15487,7 +15486,7 @@ function getFontSizes(base) {
|
|
|
15487
15486
|
}));
|
|
15488
15487
|
}
|
|
15489
15488
|
|
|
15490
|
-
var version = '5.
|
|
15489
|
+
var version = '5.26.1';
|
|
15491
15490
|
|
|
15492
15491
|
const defaultPresetColors = {
|
|
15493
15492
|
blue: '#1677FF',
|
|
@@ -21441,7 +21440,12 @@ function genCSSMotionList(transitionSupport) {
|
|
|
21441
21440
|
}
|
|
21442
21441
|
genCSSMotionList(supportTransition);
|
|
21443
21442
|
|
|
21443
|
+
const MotionCacheContext = /*#__PURE__*/React.createContext(true);
|
|
21444
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
21445
|
+
MotionCacheContext.displayName = 'MotionCacheContext';
|
|
21446
|
+
}
|
|
21444
21447
|
function MotionWrapper(props) {
|
|
21448
|
+
const parentMotion = React.useContext(MotionCacheContext);
|
|
21445
21449
|
const {
|
|
21446
21450
|
children
|
|
21447
21451
|
} = props;
|
|
@@ -21450,11 +21454,13 @@ function MotionWrapper(props) {
|
|
|
21450
21454
|
motion
|
|
21451
21455
|
} = token;
|
|
21452
21456
|
const needWrapMotionProviderRef = React.useRef(false);
|
|
21453
|
-
needWrapMotionProviderRef.current
|
|
21457
|
+
needWrapMotionProviderRef.current || (needWrapMotionProviderRef.current = parentMotion !== motion);
|
|
21454
21458
|
if (needWrapMotionProviderRef.current) {
|
|
21455
|
-
return /*#__PURE__*/React.createElement(
|
|
21459
|
+
return /*#__PURE__*/React.createElement(MotionCacheContext.Provider, {
|
|
21460
|
+
value: motion
|
|
21461
|
+
}, /*#__PURE__*/React.createElement(MotionProvider, {
|
|
21456
21462
|
motion: motion
|
|
21457
|
-
}, children);
|
|
21463
|
+
}, children));
|
|
21458
21464
|
}
|
|
21459
21465
|
return children;
|
|
21460
21466
|
}
|
package/dist/index.js
CHANGED
|
@@ -7558,7 +7558,7 @@ const DropdownButtonComponent = ({ trigger, placement, menuItems, disabled, data
|
|
|
7558
7558
|
onClick: () => { var _a; return (_a = menu.onClick) === null || _a === void 0 ? void 0 : _a.call(menu, data); },
|
|
7559
7559
|
};
|
|
7560
7560
|
});
|
|
7561
|
-
return (jsxRuntimeExports.jsx(antd.Dropdown, { menu: { items }, placement: placement !== null && placement !== void 0 ? placement : 'bottomRight', trigger: trigger !== null && trigger !== void 0 ? trigger : ['hover'], disabled: disabled, children: jsxRuntimeExports.jsx(
|
|
7561
|
+
return (jsxRuntimeExports.jsx(antd.Dropdown, { menu: { items }, placement: placement !== null && placement !== void 0 ? placement : 'bottomRight', trigger: trigger !== null && trigger !== void 0 ? trigger : ['hover'], disabled: disabled, children: jsxRuntimeExports.jsx(antd.Button, { size: "small", icon: jsxRuntimeExports.jsx(RefIcon$8, {}), onClick: e => e.preventDefault() }) }));
|
|
7562
7562
|
};
|
|
7563
7563
|
|
|
7564
7564
|
var css_248z$5 = ".style-module_icon__GHpNO {\n size: 1.5rem;\n}";
|
|
@@ -12607,7 +12607,6 @@ function resetWarned() {
|
|
|
12607
12607
|
deprecatedWarnList = null;
|
|
12608
12608
|
resetWarned$1();
|
|
12609
12609
|
}
|
|
12610
|
-
// eslint-disable-next-line import/no-mutable-exports
|
|
12611
12610
|
let warning$1 = noop$1;
|
|
12612
12611
|
if (process.env.NODE_ENV !== 'production') {
|
|
12613
12612
|
warning$1 = (valid, component, message) => {
|
|
@@ -15506,7 +15505,7 @@ function getFontSizes(base) {
|
|
|
15506
15505
|
}));
|
|
15507
15506
|
}
|
|
15508
15507
|
|
|
15509
|
-
var version = '5.
|
|
15508
|
+
var version = '5.26.1';
|
|
15510
15509
|
|
|
15511
15510
|
const defaultPresetColors = {
|
|
15512
15511
|
blue: '#1677FF',
|
|
@@ -21460,7 +21459,12 @@ function genCSSMotionList(transitionSupport) {
|
|
|
21460
21459
|
}
|
|
21461
21460
|
genCSSMotionList(supportTransition);
|
|
21462
21461
|
|
|
21462
|
+
const MotionCacheContext = /*#__PURE__*/React__namespace.createContext(true);
|
|
21463
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
21464
|
+
MotionCacheContext.displayName = 'MotionCacheContext';
|
|
21465
|
+
}
|
|
21463
21466
|
function MotionWrapper(props) {
|
|
21467
|
+
const parentMotion = React__namespace.useContext(MotionCacheContext);
|
|
21464
21468
|
const {
|
|
21465
21469
|
children
|
|
21466
21470
|
} = props;
|
|
@@ -21469,11 +21473,13 @@ function MotionWrapper(props) {
|
|
|
21469
21473
|
motion
|
|
21470
21474
|
} = token;
|
|
21471
21475
|
const needWrapMotionProviderRef = React__namespace.useRef(false);
|
|
21472
|
-
needWrapMotionProviderRef.current
|
|
21476
|
+
needWrapMotionProviderRef.current || (needWrapMotionProviderRef.current = parentMotion !== motion);
|
|
21473
21477
|
if (needWrapMotionProviderRef.current) {
|
|
21474
|
-
return /*#__PURE__*/React__namespace.createElement(
|
|
21478
|
+
return /*#__PURE__*/React__namespace.createElement(MotionCacheContext.Provider, {
|
|
21479
|
+
value: motion
|
|
21480
|
+
}, /*#__PURE__*/React__namespace.createElement(MotionProvider, {
|
|
21475
21481
|
motion: motion
|
|
21476
|
-
}, children);
|
|
21482
|
+
}, children));
|
|
21477
21483
|
}
|
|
21478
21484
|
return children;
|
|
21479
21485
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sti-antd-package",
|
|
3
3
|
"description": "STI ANT Design",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.30",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/stevan-iskandar/sti-antd-package#readme",
|
|
34
34
|
"bundleDependencies": [
|
|
35
|
-
"@ant-design/icons"
|
|
35
|
+
"@ant-design/icons",
|
|
36
|
+
"antd"
|
|
36
37
|
],
|
|
37
38
|
"peerDependencies": {
|
|
38
39
|
"@ant-design/icons": "^6.0.0",
|
|
@@ -43,6 +44,7 @@
|
|
|
43
44
|
"@types/lodash": "^4.17.16",
|
|
44
45
|
"@types/react": "^19.0.12",
|
|
45
46
|
"@types/react-dom": "^19.0.4",
|
|
47
|
+
"antd": "^5.26.1",
|
|
46
48
|
"axios": "^1.8.4",
|
|
47
49
|
"lodash": "^4.17.21",
|
|
48
50
|
"react": "^19.0.0",
|
|
@@ -70,7 +72,6 @@
|
|
|
70
72
|
},
|
|
71
73
|
"dependencies": {
|
|
72
74
|
"@inertiajs/react": "^2.0.5",
|
|
73
|
-
"antd": "^5.25.4",
|
|
74
75
|
"browserslist": "^4.24.4",
|
|
75
76
|
"caniuse-lite": "^1.0.30001706",
|
|
76
77
|
"classnames": "^2.5.1",
|