revdev-components 0.138.0 → 0.140.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/build/dialog/regular/index.d.ts +1 -0
- package/build/fields/index.d.ts +1 -1
- package/build/fields/line/index.d.ts +4 -1
- package/build/hooks/index.d.ts +2 -2
- package/build/icon/social/names.d.ts +1 -1
- package/build/index.js +6 -5
- package/build/styles.css +5 -5
- package/eslint.config.js +14 -0
- package/package.json +20 -26
- package/stylelint.config.js +4 -0
- /package/build/fields/{text-area → textArea}/index.d.ts +0 -0
- /package/build/hooks/{form-rules.d.ts → formRules.d.ts} +0 -0
- /package/build/hooks/{form-values.d.ts → formValues.d.ts} +0 -0
package/build/fields/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export * from "./radioButton";
|
|
|
7
7
|
export * from "./rangePicker";
|
|
8
8
|
export * from "./select";
|
|
9
9
|
export * from "./searchSelect";
|
|
10
|
-
export * from "./
|
|
10
|
+
export * from "./textArea";
|
|
11
11
|
export * from "./checkbox";
|
|
12
12
|
export * from "./switch";
|
|
13
13
|
export * from "./autocomplete";
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FormRule } from "antd";
|
|
3
3
|
import { NamePath } from "antd/es/form/interface";
|
|
4
|
-
export declare function useLineProps<T extends FormLineProps>({ lineClassName, name, label, rules, valuePropName, noStyle, hasFeedback, dependencies, ...rest }: T): [
|
|
4
|
+
export declare function useLineProps<T extends FormLineProps>({ lineClassName, name, label, rules, valuePropName, noStyle, hasFeedback, dependencies, ...rest }: T): [
|
|
5
|
+
FormLineProps,
|
|
6
|
+
Omit<T, "lineClassName" | "name" | "label" | "rules" | "valuePropName" | "noStyle" | "hasFeedback" | "dependencies">
|
|
7
|
+
];
|
|
5
8
|
export interface FormLineProps {
|
|
6
9
|
lineClassName?: string;
|
|
7
10
|
name: NamePath;
|
package/build/hooks/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const SocialIconNameList: ("facebook" | "google" | "instagram" | "telegram" | "viber" | "whatsapp" | "youtube")[];
|
|
2
2
|
export type SocialIconName = (typeof SocialIconNameList)[number];
|
|
3
|
-
export declare const isSocialIconName: (name?: string) => name is
|
|
3
|
+
export declare const isSocialIconName: (name?: string) => name is SocialIconName;
|
package/build/index.js
CHANGED
|
@@ -5037,7 +5037,7 @@ var InfoDialog = function (_a) {
|
|
|
5037
5037
|
var s$i = {"root":"index-module_root__BQI-i","header":"index-module_header__OUCQj","title":"index-module_title__HPbDC","close":"index-module_close__-FN6K","content":"index-module_content__BpXha","footer":"index-module_footer__xqKte"};
|
|
5038
5038
|
|
|
5039
5039
|
var RegularDialog = function (_a) {
|
|
5040
|
-
var titleIcon = _a.titleIcon, titlePrefix = _a.titlePrefix, title = _a.title, children = _a.children, _b = _a.hideFooter, hideFooter = _b === void 0 ? false : _b, className = _a.className, width = _a.width, okText = _a.okText, cancelText = _a.cancelText, footerClassName = _a.footerClassName, contentClassName = _a.contentClassName, okHide = _a.okHide, okDisabled = _a.okDisabled, onOk = _a.onOk, onClose = _a.onClose, _c = _a.open, open = _c === void 0 ? true : _c;
|
|
5040
|
+
var titleIcon = _a.titleIcon, titlePrefix = _a.titlePrefix, title = _a.title, children = _a.children, _b = _a.hideFooter, hideFooter = _b === void 0 ? false : _b, className = _a.className, width = _a.width, okText = _a.okText, cancelText = _a.cancelText, footerClassName = _a.footerClassName, contentClassName = _a.contentClassName, okHide = _a.okHide, okDisabled = _a.okDisabled, onOk = _a.onOk, onClose = _a.onClose, _c = _a.open, open = _c === void 0 ? true : _c, _d = _a.maskClosable, maskClosable = _d === void 0 ? false : _d;
|
|
5041
5041
|
var close = React.useMemo(function () {
|
|
5042
5042
|
return React.createElement(RegularIcon, { name: "cross", className: s$i.close, onClick: onClose });
|
|
5043
5043
|
}, [onClose]);
|
|
@@ -5064,7 +5064,7 @@ var RegularDialog = function (_a) {
|
|
|
5064
5064
|
}
|
|
5065
5065
|
return result;
|
|
5066
5066
|
}, [width]);
|
|
5067
|
-
return (React.createElement(antd.Modal, { open: open, onCancel: onClose, style: style, className: classNames(s$i.root, className), maskClosable:
|
|
5067
|
+
return (React.createElement(antd.Modal, { open: open, onCancel: onClose, style: style, className: classNames(s$i.root, className), maskClosable: maskClosable, footer: null },
|
|
5068
5068
|
titleContent,
|
|
5069
5069
|
React.createElement("div", { className: classNames(s$i.content, contentClassName) }, children),
|
|
5070
5070
|
hideFooter ? null : (React.createElement("div", { className: classNames(s$i.footer, footerClassName) },
|
|
@@ -5250,7 +5250,8 @@ var PopoverSelect = function (_a) {
|
|
|
5250
5250
|
.filter(function (x) { return x.value !== value; })
|
|
5251
5251
|
.map(function (x) { return (React.createElement(React.Fragment, { key: x.value }, renderOption ? (renderOption(x, { className: s$7.item, onClick: function () { return handleChange(x.value); } })) : (React.createElement("div", { className: s$7.item, onClick: function () { return handleChange(x.value); } }, x.label)))); }))); }, [options, value, handleChange, renderOption]);
|
|
5252
5252
|
return (React.createElement(antd.Popover, { content: popoverContent, open: open, onOpenChange: closePopover, placement: "bottomRight" },
|
|
5253
|
-
React.createElement(
|
|
5253
|
+
React.createElement("span", null,
|
|
5254
|
+
React.createElement(IconDivision, { icon: icon, onClick: handleOpen, rightIcon: open ? "expand-less" : "expand-more" }, showValue ? value : selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.label))));
|
|
5254
5255
|
};
|
|
5255
5256
|
|
|
5256
5257
|
var s$6 = {"root":"index-module_root__EQ0II","rounded":"index-module_rounded__4OK03","link":"index-module_link__fptGw"};
|
|
@@ -5351,11 +5352,11 @@ var HeaderActionPanel = function (_a) {
|
|
|
5351
5352
|
if (content === null || content === void 0 ? void 0 : content.content) {
|
|
5352
5353
|
return React.createElement(React.Fragment, { key: i }, content === null || content === void 0 ? void 0 : content.content);
|
|
5353
5354
|
}
|
|
5354
|
-
else if (
|
|
5355
|
+
else if (button === null || button === void 0 ? void 0 : button.onClick) {
|
|
5355
5356
|
var icon = button.icon, label = button.label, tooltip = button.tooltip;
|
|
5356
5357
|
return (React.createElement(IconDivision, { key: i, icon: icon, onClick: button === null || button === void 0 ? void 0 : button.onClick, tooltip: tooltip, className: s$4.button }, label));
|
|
5357
5358
|
}
|
|
5358
|
-
else if (
|
|
5359
|
+
else if (link === null || link === void 0 ? void 0 : link.href) {
|
|
5359
5360
|
var icon = button.icon, label = button.label, tooltip = button.tooltip;
|
|
5360
5361
|
return (React.createElement(AppLink, { key: i, href: link.href, className: s$4.link },
|
|
5361
5362
|
React.createElement(IconDivision, { icon: icon, tooltip: tooltip }, label)));
|
package/build/styles.css
CHANGED
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
--centralDivisionMaxWidth: 1000px;
|
|
23
23
|
--frontHeaderHeight: 50px;
|
|
24
24
|
--frontFooterHeight: 30px;
|
|
25
|
-
--backSidebarBackgroundColor: rgb(58 63 81);
|
|
25
|
+
--backSidebarBackgroundColor: rgb(58, 63, 81);
|
|
26
26
|
--backSidebarColor: #aaadb7;
|
|
27
27
|
--backSidebarActiveColor: white;
|
|
28
|
-
--backSidebarHoverItemBackgroundColor: rgb(97 102 122);
|
|
28
|
+
--backSidebarHoverItemBackgroundColor: rgb(97, 102, 122);
|
|
29
29
|
--backSidebarSubItemBackgroundColor: #2e3344;
|
|
30
30
|
--backHeaderHeight: 50px;
|
|
31
|
-
--backHeaderBoxShadow: 0 2px 5px 0 rgb(0 0 0
|
|
31
|
+
--backHeaderBoxShadow: 0 2px 5px 0 rgb(0, 0, 0, 16%);
|
|
32
32
|
--backLayoutBorderColor: #ccc;
|
|
33
33
|
--backLayoutBackgroundColor: white;
|
|
34
34
|
--backLayoutHeaderBackgroundColor: white;
|
|
35
|
-
--backLayoutSpinColor: rgb(58 63 81);
|
|
35
|
+
--backLayoutSpinColor: rgb(58, 63, 81);
|
|
36
36
|
--iconDropBackgroundColor: white;
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -225,7 +225,7 @@ body {
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
.index-module_footer__xqKte {
|
|
228
|
-
padding: 0 20px 20px
|
|
228
|
+
padding: 0 20px 20px;
|
|
229
229
|
display: flex;
|
|
230
230
|
flex-direction: row;
|
|
231
231
|
justify-content: flex-end;
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const { defineConfig } = require("eslint/config");
|
|
2
|
+
const storybook = require("eslint-plugin-storybook");
|
|
3
|
+
const configs = require("eslint-config-varp");
|
|
4
|
+
|
|
5
|
+
module.exports = defineConfig([
|
|
6
|
+
...storybook.configs["flat/recommended"],
|
|
7
|
+
{
|
|
8
|
+
extends: [configs.eslint.base, configs.eslint.typescript, configs.eslint.react],
|
|
9
|
+
rules: {},
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
ignores: [".cache", "node_modules", "**/*.svg"],
|
|
13
|
+
},
|
|
14
|
+
]);
|
package/package.json
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "revdev-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.140.0",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"module": "build/index.esm.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"dev": "next dev",
|
|
8
|
-
"build:next": "next build",
|
|
9
|
-
"start:next": "next start",
|
|
10
7
|
"start": "storybook dev -p 4300",
|
|
11
|
-
"s": "npm run start",
|
|
12
8
|
"build-storybook": "storybook build",
|
|
13
|
-
"lint": "eslint . && stylelint \"**/*.scss\"",
|
|
9
|
+
"lint": "eslint . --quiet && stylelint \"**/*.scss\"",
|
|
14
10
|
"lint:fix": "eslint . --fix && stylelint \"**/*.scss\" --fix",
|
|
15
11
|
"stylelint": "stylelint \"**/*.scss\"",
|
|
16
12
|
"stylelint:fix": "stylelint \"**/*.scss\" --fix",
|
|
@@ -20,50 +16,48 @@
|
|
|
20
16
|
"pm": "npm run lint:fix && git add * && git commit -m\"update\" && git push origin master",
|
|
21
17
|
"p": "npm run v && npm run lint:fix && git add * && git commit -m\"v\" && git push origin master"
|
|
22
18
|
},
|
|
19
|
+
"prettier": "eslint-config-varp/prettier",
|
|
23
20
|
"peerDependencies": {
|
|
24
|
-
"antd": "
|
|
21
|
+
"antd": "^5.29.0",
|
|
25
22
|
"classnames": ">=2.5",
|
|
26
23
|
"lodash.debounce": ">=4",
|
|
27
|
-
"next": "
|
|
24
|
+
"next": "^16.0.3",
|
|
28
25
|
"page-path": ">=0.7",
|
|
29
|
-
"react": "
|
|
30
|
-
"react-dom": "
|
|
26
|
+
"react": "^19.2.0",
|
|
27
|
+
"react-dom": "^19.2.0",
|
|
31
28
|
"revdev": ">=0"
|
|
32
29
|
},
|
|
33
30
|
"devDependencies": {
|
|
34
|
-
"@
|
|
31
|
+
"@ant-design/v5-patch-for-react-19": "^1.0.3",
|
|
32
|
+
"@chromatic-com/storybook": "^4.1.3",
|
|
35
33
|
"@rollup/plugin-typescript": "^12.1.1",
|
|
36
|
-
"@storybook/addon-
|
|
37
|
-
"@storybook/addon-
|
|
38
|
-
"@storybook/
|
|
39
|
-
"@storybook/addon-onboarding": "^8.4.5",
|
|
40
|
-
"@storybook/addon-viewport": "^8.5.8",
|
|
41
|
-
"@storybook/blocks": "^8.4.5",
|
|
42
|
-
"@storybook/nextjs": "^8.4.5",
|
|
43
|
-
"@storybook/react": "^8.4.5",
|
|
44
|
-
"@storybook/test": "^8.4.5",
|
|
34
|
+
"@storybook/addon-docs": "^10.0.8",
|
|
35
|
+
"@storybook/addon-onboarding": "^10.0.8",
|
|
36
|
+
"@storybook/nextjs": "^10.0.8",
|
|
45
37
|
"@svgr/rollup": "^8.1.0",
|
|
46
38
|
"@svgr/webpack": "^8.1.0",
|
|
47
39
|
"@types/node": "^20",
|
|
48
40
|
"@types/numeral": "^2.0.5",
|
|
49
41
|
"@types/react": "^18",
|
|
50
42
|
"@types/react-dom": "^18",
|
|
51
|
-
"antd": "^5.
|
|
43
|
+
"antd": "^5.29.0",
|
|
52
44
|
"classnames": "^2.5.1",
|
|
53
|
-
"eslint-config-varp": "^
|
|
54
|
-
"
|
|
45
|
+
"eslint-config-varp": "^2.10.0",
|
|
46
|
+
"eslint-plugin-storybook": "10.0.8",
|
|
47
|
+
"next": "^16.0.3",
|
|
55
48
|
"numeral": "^2.0.6",
|
|
56
49
|
"page-path": "^0.7.0",
|
|
57
50
|
"postcss": "^8",
|
|
58
51
|
"randex": "^0.32.0",
|
|
52
|
+
"react": "^19.2.0",
|
|
53
|
+
"react-dom": "^19.2.0",
|
|
59
54
|
"revdev": "^0.221.0",
|
|
60
55
|
"rollup": "^4.24.4",
|
|
61
56
|
"rollup-obfuscator": "^4.1.1",
|
|
62
57
|
"rollup-plugin-postcss": "^4.0.2",
|
|
63
58
|
"rollup-plugin-scss": "^4.0.0",
|
|
64
59
|
"sass": "^1.81.0",
|
|
65
|
-
"storybook": "^
|
|
66
|
-
"
|
|
67
|
-
"typescript": "5.1"
|
|
60
|
+
"storybook": "^10.0.8",
|
|
61
|
+
"typescript": "^5.9.3"
|
|
68
62
|
}
|
|
69
63
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|