@pisell/materials 6.8.9 → 6.8.10

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.
Files changed (73) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.js +16 -16
  8. package/build/lowcode/view.js +16 -16
  9. package/es/components/PisellProcedure/PisellProcedure.stories.d.ts +163 -0
  10. package/es/components/PisellProcedure/PisellProcedure.stories.js +1611 -0
  11. package/es/components/PisellScrollView/PisellScrollView.stories.d.ts +87 -0
  12. package/es/components/PisellScrollView/PisellScrollView.stories.js +772 -0
  13. package/es/components/PisellScrollView/hooks/useScrollEvents.js +18 -3
  14. package/es/components/PisellScrollView/index.d.ts +2 -1
  15. package/es/components/PisellScrollView/index.js +2 -1
  16. package/es/components/PisellSteps/PisellSteps.stories.d.ts +155 -0
  17. package/es/components/PisellSteps/PisellSteps.stories.js +851 -0
  18. package/es/components/PisellSuperTabs/PisellSuperTabs.d.ts +6 -10
  19. package/es/components/PisellSuperTabs/PisellSuperTabs.js +28 -8
  20. package/es/components/PisellSuperTabs/types.d.ts +1 -0
  21. package/es/components/PisellTabbar/PisellTabbar.d.ts +2 -19
  22. package/es/components/PisellTabbar/PisellTabbar.js +2 -1
  23. package/es/components/PisellTabbar/constants.d.ts +4 -4
  24. package/es/components/PisellTabbar/constants.js +5 -5
  25. package/es/components/PisellTabbar/index.d.ts +2 -0
  26. package/es/components/PisellTabbar/index.js +2 -0
  27. package/es/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +20 -0
  28. package/es/components/PisellTabbar/template/Template1/PisellTabbar.js +426 -0
  29. package/es/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
  30. package/es/components/PisellTabbar/template/Template1/constants.js +33 -0
  31. package/es/components/PisellTabbar/template/Template1/index.d.ts +6 -0
  32. package/es/components/PisellTabbar/template/Template1/index.js +7 -0
  33. package/es/components/PisellTabbar/template/Template1/utils/index.d.ts +35 -0
  34. package/es/components/PisellTabbar/template/Template1/utils/index.js +96 -0
  35. package/es/components/PisellTabbar/utils/index.d.ts +33 -0
  36. package/es/components/PisellTabbar/utils/index.js +3 -2
  37. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  38. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  39. package/es/index.d.ts +2 -1
  40. package/es/index.js +2 -1
  41. package/lib/components/PisellProcedure/PisellProcedure.stories.d.ts +163 -0
  42. package/lib/components/PisellProcedure/PisellProcedure.stories.js +925 -0
  43. package/lib/components/PisellScrollView/PisellScrollView.stories.d.ts +87 -0
  44. package/lib/components/PisellScrollView/PisellScrollView.stories.js +535 -0
  45. package/lib/components/PisellScrollView/hooks/useScrollEvents.js +13 -3
  46. package/lib/components/PisellScrollView/index.d.ts +2 -1
  47. package/lib/components/PisellScrollView/index.js +2 -5
  48. package/lib/components/PisellSteps/PisellSteps.stories.d.ts +155 -0
  49. package/lib/components/PisellSteps/PisellSteps.stories.js +570 -0
  50. package/lib/components/PisellSuperTabs/PisellSuperTabs.d.ts +6 -10
  51. package/lib/components/PisellSuperTabs/PisellSuperTabs.js +25 -6
  52. package/lib/components/PisellSuperTabs/types.d.ts +1 -0
  53. package/lib/components/PisellTabbar/PisellTabbar.d.ts +2 -19
  54. package/lib/components/PisellTabbar/PisellTabbar.js +2 -1
  55. package/lib/components/PisellTabbar/constants.d.ts +4 -4
  56. package/lib/components/PisellTabbar/constants.js +5 -5
  57. package/lib/components/PisellTabbar/index.d.ts +2 -0
  58. package/lib/components/PisellTabbar/index.js +6 -0
  59. package/lib/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +20 -0
  60. package/lib/components/PisellTabbar/template/Template1/PisellTabbar.js +437 -0
  61. package/lib/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
  62. package/lib/components/PisellTabbar/template/Template1/constants.js +60 -0
  63. package/lib/components/PisellTabbar/template/Template1/index.d.ts +6 -0
  64. package/lib/components/PisellTabbar/template/Template1/index.js +36 -0
  65. package/lib/components/PisellTabbar/template/Template1/utils/index.d.ts +35 -0
  66. package/lib/components/PisellTabbar/template/Template1/utils/index.js +68 -0
  67. package/lib/components/PisellTabbar/utils/index.d.ts +33 -0
  68. package/lib/components/PisellTabbar/utils/index.js +4 -1
  69. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  70. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  71. package/lib/index.d.ts +2 -1
  72. package/lib/index.js +5 -2
  73. package/package.json +21 -2
@@ -0,0 +1,60 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/PisellTabbar/template/Template1/constants.ts
20
+ var constants_exports = {};
21
+ __export(constants_exports, {
22
+ DEFAULT_ITEMS: () => import_constants.DEFAULT_ITEMS,
23
+ DEFAULT_LEVEL_CONFIG: () => DEFAULT_LEVEL_CONFIG,
24
+ LEVEL_ADD_ITEMS: () => LEVEL_ADD_ITEMS,
25
+ getExpandConfig: () => import_constants.getExpandConfig
26
+ });
27
+ module.exports = __toCommonJS(constants_exports);
28
+ var import_constants = require("../../constants");
29
+ var DEFAULT_LEVEL_CONFIG = {
30
+ level1: {
31
+ superTabsBg: "#ffffff00",
32
+ cardWidth: 100,
33
+ cardHeight: 40,
34
+ paddingLeft: 0
35
+ },
36
+ level2: {
37
+ superTabsBg: "#ffffff00",
38
+ cardWidth: 120,
39
+ cardHeight: 40,
40
+ paddingLeft: 20
41
+ },
42
+ level3: {
43
+ superTabsBg: "#ffffff00",
44
+ cardWidth: 120,
45
+ cardHeight: 40,
46
+ paddingLeft: 40
47
+ }
48
+ };
49
+ var LEVEL_ADD_ITEMS = {
50
+ level1: ["all"],
51
+ level2: ["expand", "all"],
52
+ level3: ["expand", "all"]
53
+ };
54
+ // Annotate the CommonJS export names for ESM import in node:
55
+ 0 && (module.exports = {
56
+ DEFAULT_ITEMS,
57
+ DEFAULT_LEVEL_CONFIG,
58
+ LEVEL_ADD_ITEMS,
59
+ getExpandConfig
60
+ });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * PisellTabbar 组件导出文件
3
+ * @module PisellTabbar
4
+ */
5
+ import PisellTabbar from './PisellTabbar';
6
+ export default PisellTabbar;
@@ -0,0 +1,36 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/PisellTabbar/template/Template1/index.tsx
30
+ var Template1_exports = {};
31
+ __export(Template1_exports, {
32
+ default: () => Template1_default
33
+ });
34
+ module.exports = __toCommonJS(Template1_exports);
35
+ var import_PisellTabbar = __toESM(require("./PisellTabbar"));
36
+ var Template1_default = import_PisellTabbar.default;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * PisellTabbar 工具函数
3
+ */
4
+ import { TabbarDataSource } from '../../../types';
5
+ /**
6
+ * 向数据源添加特殊项(如 all、search、expand 按钮)
7
+ *
8
+ * @param dataSource - 原始数据源
9
+ * @param keys - 要添加的特殊项 key 数组
10
+ * @returns 添加了特殊项的新数据源
11
+ *
12
+ * @example
13
+ * ```tsx
14
+ * const newData = addDataSourceItemsByKey(categoryData, ['expand', 'all']);
15
+ * // 返回: [expandItem, allItem, ...categoryData]
16
+ * ```
17
+ */
18
+ export declare const addDataSourceItemsByKey: (dataSource: TabbarDataSource[], keys: ('all' | 'search' | 'expand')[]) => TabbarDataSource[];
19
+ /**
20
+ * 获取默认激活的 key 数组
21
+ *
22
+ * @param dataSource - 数据源
23
+ * @param rowKey - 用作唯一标识的字段名
24
+ * @returns 默认激活的 key 数组(多层级)
25
+ *
26
+ * @description
27
+ * 默认选中第一项,如果第一项有子级,同时选中第一个子级
28
+ *
29
+ * @example
30
+ * ```tsx
31
+ * const defaultKeys = getDefaultActiveKey(categoryData, 'id');
32
+ * // 返回: [1, 0] (第一层级的第一项ID,第二层级的第一项ID)
33
+ * ```
34
+ */
35
+ export declare const getDefaultActiveKey: (dataSource: TabbarDataSource[], rowKey: string) => (string | number)[];
@@ -0,0 +1,68 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/PisellTabbar/template/Template1/utils/index.ts
20
+ var utils_exports = {};
21
+ __export(utils_exports, {
22
+ addDataSourceItemsByKey: () => addDataSourceItemsByKey,
23
+ getDefaultActiveKey: () => getDefaultActiveKey
24
+ });
25
+ module.exports = __toCommonJS(utils_exports);
26
+ var import_locales = require("../../../../../locales");
27
+ var defaultItems = {
28
+ all: {
29
+ id: "0",
30
+ shop_id: 9,
31
+ parent_id: 0,
32
+ name: (0, import_locales.getText)("pisell-tabbar-all"),
33
+ slug: "all",
34
+ icon: ""
35
+ },
36
+ search: {
37
+ id: -1,
38
+ shop_id: 9,
39
+ parent_id: 0,
40
+ name: "Search",
41
+ slug: "Search",
42
+ key: "search",
43
+ icon: "",
44
+ customClick: true
45
+ },
46
+ expand: {
47
+ id: -2,
48
+ shop_id: 9,
49
+ parent_id: 0,
50
+ key: "expand",
51
+ icon: "pisell2-expand-01",
52
+ name: "Expand",
53
+ slug: "expand",
54
+ customClick: true
55
+ }
56
+ };
57
+ var addDataSourceItemsByKey = (dataSource, keys) => {
58
+ return [...keys.map((key) => defaultItems[key]), ...dataSource];
59
+ };
60
+ var getDefaultActiveKey = (dataSource, rowKey) => {
61
+ const _activeKey = ["0"];
62
+ return _activeKey;
63
+ };
64
+ // Annotate the CommonJS export names for ESM import in node:
65
+ 0 && (module.exports = {
66
+ addDataSourceItemsByKey,
67
+ getDefaultActiveKey
68
+ });
@@ -2,6 +2,39 @@
2
2
  * PisellTabbar 工具函数
3
3
  */
4
4
  import { TabbarDataSource } from '../types';
5
+ /**
6
+ * 默认的特殊项配置
7
+ */
8
+ export declare const defaultItems: {
9
+ all: {
10
+ id: number;
11
+ shop_id: number;
12
+ parent_id: number;
13
+ name: any;
14
+ slug: string;
15
+ icon: string;
16
+ };
17
+ search: {
18
+ id: number;
19
+ shop_id: number;
20
+ parent_id: number;
21
+ name: string;
22
+ slug: string;
23
+ key: string;
24
+ icon: string;
25
+ customClick: boolean;
26
+ };
27
+ expand: {
28
+ id: number;
29
+ shop_id: number;
30
+ parent_id: number;
31
+ key: string;
32
+ icon: string;
33
+ name: string;
34
+ slug: string;
35
+ customClick: boolean;
36
+ };
37
+ };
5
38
  /**
6
39
  * 向数据源添加特殊项(如 all、search、expand 按钮)
7
40
  *
@@ -20,15 +20,17 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  var utils_exports = {};
21
21
  __export(utils_exports, {
22
22
  addDataSourceItemsByKey: () => addDataSourceItemsByKey,
23
+ defaultItems: () => defaultItems,
23
24
  getDefaultActiveKey: () => getDefaultActiveKey
24
25
  });
25
26
  module.exports = __toCommonJS(utils_exports);
27
+ var import_locales = require("../../../locales");
26
28
  var defaultItems = {
27
29
  all: {
28
30
  id: 0,
29
31
  shop_id: 9,
30
32
  parent_id: 0,
31
- name: "All",
33
+ name: (0, import_locales.getText)("pisell-tabbar-all"),
32
34
  slug: "All",
33
35
  icon: ""
34
36
  },
@@ -70,5 +72,6 @@ var getDefaultActiveKey = (dataSource, rowKey) => {
70
72
  // Annotate the CommonJS export names for ESM import in node:
71
73
  0 && (module.exports = {
72
74
  addDataSourceItemsByKey,
75
+ defaultItems,
73
76
  getDefaultActiveKey
74
77
  });
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
package/lib/index.d.ts CHANGED
@@ -153,7 +153,7 @@ export { default as VirtualInput } from './components/virtualInput';
153
153
  export { default as AutoResizeText } from './components/auto-resize-text';
154
154
  export { default as PisellBasicGrid } from './components/PisellBasicGrid';
155
155
  export type { PisellBasicGridProps } from './components/PisellBasicGrid';
156
- export { PisellScrollView } from './components/PisellScrollView';
156
+ export { default as PisellScrollView } from './components/PisellScrollView';
157
157
  export type { PisellScrollViewProps } from './components/PisellScrollView';
158
158
  export { default as PisellSuperTabs } from './components/PisellSuperTabs';
159
159
  export type { PisellSuperTabsProps, TabDataItem, } from './components/PisellSuperTabs';
@@ -165,5 +165,6 @@ export type { MultilevelCardProps } from './components/PisellCards/components/Mu
165
165
  export { default as PisellImageCard } from './components/PisellCards/components/PisellImageCard';
166
166
  export type { PisellImageCardProps, ImageDataSource, ImageFillMode, } from './components/PisellCards/components/PisellImageCard';
167
167
  export { default as PisellTabbar } from './components/PisellTabbar';
168
+ export { default as PisellTabbarTemplate1 } from './components/PisellTabbar/template/Template1';
168
169
  export type { PisellTabbarProps, TabbarDataSource, LevelType, } from './components/PisellTabbar';
169
170
  export { default as PisellTabbar2 } from './components/PisellTabbar2';
package/lib/index.js CHANGED
@@ -154,7 +154,7 @@ __export(src_exports, {
154
154
  PisellQrcode: () => import_pisellQrcode.default,
155
155
  PisellRow: () => import_pisellRow.default,
156
156
  PisellScan: () => import_pisellScan.default,
157
- PisellScrollView: () => import_PisellScrollView.PisellScrollView,
157
+ PisellScrollView: () => import_PisellScrollView.default,
158
158
  PisellSectionHeaders: () => import_pisellSectionHeaders.default,
159
159
  PisellSider: () => import_sider.default,
160
160
  PisellStatisticList: () => import_pisellStatisticList.default,
@@ -162,6 +162,7 @@ __export(src_exports, {
162
162
  PisellSuperTabs: () => import_PisellSuperTabs.default,
163
163
  PisellTabbar: () => import_PisellTabbar.default,
164
164
  PisellTabbar2: () => import_PisellTabbar2.default,
165
+ PisellTabbarTemplate1: () => import_Template1.default,
165
166
  PisellTags: () => import_pisellTags.default,
166
167
  PisellText: () => import_pisellText.default,
167
168
  PisellToast: () => import_pisellToast.default,
@@ -370,13 +371,14 @@ var import_keyboard = __toESM(require("./components/keyboard"));
370
371
  var import_virtualInput = __toESM(require("./components/virtualInput"));
371
372
  var import_auto_resize_text = __toESM(require("./components/auto-resize-text"));
372
373
  var import_PisellBasicGrid = __toESM(require("./components/PisellBasicGrid"));
373
- var import_PisellScrollView = require("./components/PisellScrollView");
374
+ var import_PisellScrollView = __toESM(require("./components/PisellScrollView"));
374
375
  var import_PisellSuperTabs = __toESM(require("./components/PisellSuperTabs"));
375
376
  var import_TextCard = __toESM(require("./components/PisellCards/components/TextCard"));
376
377
  var import_GraphicTextCard = __toESM(require("./components/PisellCards/components/GraphicTextCard"));
377
378
  var import_MultilevelCard = __toESM(require("./components/PisellCards/components/MultilevelCard"));
378
379
  var import_PisellImageCard = __toESM(require("./components/PisellCards/components/PisellImageCard"));
379
380
  var import_PisellTabbar = __toESM(require("./components/PisellTabbar"));
381
+ var import_Template1 = __toESM(require("./components/PisellTabbar/template/Template1"));
380
382
  var import_PisellTabbar2 = __toESM(require("./components/PisellTabbar2"));
381
383
  // Annotate the CommonJS export names for ESM import in node:
382
384
  0 && (module.exports = {
@@ -513,6 +515,7 @@ var import_PisellTabbar2 = __toESM(require("./components/PisellTabbar2"));
513
515
  PisellSuperTabs,
514
516
  PisellTabbar,
515
517
  PisellTabbar2,
518
+ PisellTabbarTemplate1,
516
519
  PisellTags,
517
520
  PisellText,
518
521
  PisellToast,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "6.8.9",
3
+ "version": "6.8.10",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -14,26 +14,39 @@
14
14
  "@alilc/lowcode-types": "1.3.2",
15
15
  "@alilc/lowcode-utils": "1.1.6",
16
16
  "@pisell/build-plugin-lowcode": "^1.0.12",
17
+ "@storybook/addon-essentials": "^7.6.19",
18
+ "@storybook/addon-interactions": "^7.6.19",
19
+ "@storybook/addon-links": "^7.6.19",
20
+ "@storybook/react": "^7.6.19",
21
+ "@storybook/react-vite": "^7.6.19",
22
+ "@storybook/test": "^7.6.19",
17
23
  "@svgr/webpack": "^5.5.0",
18
24
  "@testing-library/jest-dom": "^6.9.1",
19
25
  "@testing-library/react": "^14.3.1",
26
+ "@testing-library/user-event": "^14.6.1",
20
27
  "@types/jest": "^29.5.14",
21
28
  "@types/react": "^18.0.38",
22
29
  "@types/react-dom": "^18.0.0",
23
30
  "@types/react-window": "^1.8.8",
31
+ "@vitejs/plugin-react": "^5.1.2",
32
+ "@vitest/ui": "^4.0.15",
24
33
  "build-plugin-component": "^1.6.5",
25
34
  "build-scripts": "1.0.1",
26
35
  "chokidar": "^4.0.3",
27
36
  "father": "^4.1.6",
28
37
  "fsevents": "^2.3.3",
29
38
  "inquirer": "^6.5.1",
39
+ "jsdom": "^27.3.0",
30
40
  "lodash": "^4.17.21",
31
41
  "postcss-loader": "^4.3.0",
32
42
  "react": "^18.0.0",
33
43
  "react-dom": "^18.0.0",
34
44
  "sass-loader": "7.3.1",
45
+ "storybook": "^7.6.19",
35
46
  "style-loader": "2.0.0",
36
47
  "url-loader": "^4.1.1",
48
+ "vite-plugin-svgr": "^4.5.0",
49
+ "vitest": "4.0.15",
37
50
  "webpack": "^4.27.1",
38
51
  "webpack-dev-server": "^4.0.0"
39
52
  },
@@ -93,6 +106,12 @@
93
106
  "dev": "father dev",
94
107
  "build": "father build",
95
108
  "lowcode:dev": "build-scripts start --config ./build.lowcode.js",
96
- "lowcode:build": " build-scripts build --config ./build.lowcode.js"
109
+ "lowcode:build": " build-scripts build --config ./build.lowcode.js",
110
+ "test": "vitest",
111
+ "test:ui": "vitest --ui",
112
+ "test:run": "vitest run",
113
+ "test:coverage": "vitest run --coverage",
114
+ "storybook": "storybook dev -p 6006",
115
+ "build-storybook": "storybook build"
97
116
  }
98
117
  }