revdev-components 0.139.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.
@@ -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 "./text-area";
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): [FormLineProps, Omit<T, "lineClassName" | "name" | "label" | "rules" | "valuePropName" | "noStyle" | "hasFeedback" | "dependencies">];
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;
@@ -1,6 +1,6 @@
1
1
  export * from "./debounce";
2
- export * from "./form-rules";
3
- export * from "./form-values";
2
+ export * from "./formRules";
3
+ export * from "./formValues";
4
4
  export * from "./mount";
5
5
  export * from "./router";
6
6
  export * from "./api";
@@ -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 "facebook" | "google" | "instagram" | "telegram" | "viber" | "whatsapp" | "youtube";
3
+ export declare const isSocialIconName: (name?: string) => name is SocialIconName;
package/build/index.js CHANGED
@@ -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(IconDivision, { icon: icon, onClick: handleOpen, rightIcon: open ? "expand-less" : "expand-more" }, showValue ? value : selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.label)));
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 (!!(button === null || button === void 0 ? void 0 : button.onClick)) {
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 (!!(link === null || link === void 0 ? void 0 : link.href)) {
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 / 16%);
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 20px;
228
+ padding: 0 20px 20px;
229
229
  display: flex;
230
230
  flex-direction: row;
231
231
  justify-content: flex-end;
@@ -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.139.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": ">=5",
21
+ "antd": "^5.29.0",
25
22
  "classnames": ">=2.5",
26
23
  "lodash.debounce": ">=4",
27
- "next": ">=13",
24
+ "next": "^16.0.3",
28
25
  "page-path": ">=0.7",
29
- "react": ">=18",
30
- "react-dom": ">=18",
26
+ "react": "^19.2.0",
27
+ "react-dom": "^19.2.0",
31
28
  "revdev": ">=0"
32
29
  },
33
30
  "devDependencies": {
34
- "@chromatic-com/storybook": "^3.2.2",
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-actions": "^8.4.5",
37
- "@storybook/addon-essentials": "^8.4.5",
38
- "@storybook/addon-interactions": "^8.4.5",
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.22.2",
43
+ "antd": "^5.29.0",
52
44
  "classnames": "^2.5.1",
53
- "eslint-config-varp": "^1.10.0",
54
- "next": "14.2.16",
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": "^8.4.5",
66
- "stylelint-config-varp": "^1.7.2",
67
- "typescript": "5.1"
60
+ "storybook": "^10.0.8",
61
+ "typescript": "^5.9.3"
68
62
  }
69
63
  }
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ extends: ["eslint-config-varp/stylelint"],
3
+ rules: {},
4
+ };
File without changes
File without changes