@voplus/morpho-csp 6.0.97 → 6.0.99

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 (18) hide show
  1. package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/index.js +37 -17
  2. package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/index.js.map +1 -1
  3. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/components/FirstStep/index.d.ts +4 -0
  4. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/components/FirstStep/index.js +30 -0
  5. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/components/FirstStep/index.js.map +1 -0
  6. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/components/FirstStep/index.less +32 -0
  7. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/components/IncorporationClientViewCard/index.d.ts +7 -0
  8. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/components/IncorporationClientViewCard/index.js +10 -0
  9. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/components/IncorporationClientViewCard/index.js.map +1 -0
  10. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/components/IncorporationClientViewCard/index.less +17 -0
  11. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/components/SecondStep/index.d.ts +4 -0
  12. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/components/SecondStep/index.js +51 -0
  13. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/components/SecondStep/index.js.map +1 -0
  14. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/components/SecondStep/index.less +69 -0
  15. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.js +43 -23
  16. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.js.map +1 -1
  17. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.less +104 -38
  18. package/package.json +2 -2
@@ -1,22 +1,24 @@
1
1
  import React, { useState } from "react";
2
- import { Divider } from "antd";
2
+ import { Divider, Select } from "antd";
3
3
  import { useCLDAForm, useCLDAFormStore } from "../../../../../data/clda-form";
4
4
  import { faUserTag } from "@fortawesome/pro-light-svg-icons";
5
- import { observe, InlineEdit } from "@voplus/morpho-ui";
5
+ import { observe } from "@voplus/morpho-ui";
6
6
  import { useIncorporationFormContext } from "../../incorporation/context";
7
7
  import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
8
- import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
9
- import UnitReference from "@voplus/morpho-org/es/controls/UnitReference";
8
+ import FolderEdit from "@voplus/morpho-document/es/controls/FolderEdit";
10
9
  import Section from "../../../controls/Section";
11
10
  import Tips from "../../../controls/Tips/Tip";
11
+ import classnames from "classnames";
12
+ import styles from "@voplus/morpho-org/es/controls/UnitReference/index.less";
12
13
  const DataProtectionOfficer = (props) => {
13
- const { id } = props;
14
- const [showDialog, setShowDialog] = useState(false);
14
+ var _a;
15
15
  const store = useCLDAFormStore();
16
16
  const context = useIncorporationFormContext();
17
17
  const incorporation = useCLDAForm(props.id);
18
+ const [showEditIcon, setShowEditIcon] = useState((_a = context.editable) !== null && _a !== void 0 ? _a : true);
19
+ const [editable, setEditable] = useState(false);
18
20
  return observe(() => {
19
- var _a;
21
+ var _a, _b, _c, _d;
20
22
  return (React.createElement(Section, { title: React.createElement(React.Fragment, null,
21
23
  React.createElement(FontAwesomeIcon, { icon: faUserTag }),
22
24
  "Data Protection Officer",
@@ -32,18 +34,36 @@ const DataProtectionOfficer = (props) => {
32
34
  React.createElement("div", { className: "internal-use-section secretary-list" },
33
35
  React.createElement("div", { className: "sub-title" }, "DPO"),
34
36
  React.createElement(Divider, { style: { margin: "10px 0" } }),
35
- React.createElement(InlineEdit, { defaultValue: "", showEditIcon: (_a = context.editable) !== null && _a !== void 0 ? _a : true, editable: false, onEditIconClick: () => setShowDialog(true), content: (v) => {
36
- var _a, _b;
37
- return ((_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.dpo) ? (React.createElement(UnitReference, { id: (_b = incorporation.content) === null || _b === void 0 ? void 0 : _b.dpo, symbol: true })) : (React.createElement("div", { style: { minHeight: "26px" } },
38
- React.createElement("span", { className: "add-info-style" }, "Select Contact")));
39
- } }),
40
- showDialog && (React.createElement(UnitsSelectDialog, { type: "click", isEmptyData: true, multiSelect: false, onSelect: onSave, onCancel: () => setShowDialog(false) })))));
37
+ React.createElement(FolderEdit, { showEditIcon: showEditIcon, onEditIconClick: onEditWorkType }, editable ? (React.createElement(Select, { showSearch: true, allowClear: true, style: { width: "280px" }, placeholder: "select a contact", optionFilterProp: "label", value: (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.dpo, onChange: onSave, popupClassName: "director-select-contact", options: ((_c = (_b = incorporation.content) === null || _b === void 0 ? void 0 : _b.contacts) !== null && _c !== void 0 ? _c : []).map((item) => {
38
+ return {
39
+ value: item.id,
40
+ label: item.name,
41
+ };
42
+ }) })) : ((_d = incorporation.content) === null || _d === void 0 ? void 0 : _d.dpo) ? (React.createElement("div", { className: classnames(styles["unit-reference-node"], { symbol: true }) }, `@ ${findSelectedDPO(incorporation.content.dpo).name}`)) : (React.createElement("div", { style: { minHeight: "26px" } },
43
+ React.createElement("span", { className: "add-info-style" }, "Select Contact")))))));
41
44
  });
42
- async function onSave(unit) {
43
- var _a;
45
+ function onEditWorkType() {
46
+ setEditable(true);
47
+ setShowEditIcon(false);
48
+ }
49
+ function onBulurWorkType() {
50
+ setShowEditIcon(true);
51
+ setEditable(false);
52
+ }
53
+ function findSelectedDPO(id) {
54
+ var _a, _b;
55
+ let selectedDPO = [];
56
+ (_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.contacts) === null || _b === void 0 ? void 0 : _b.map((c) => {
57
+ if (c.id === id) {
58
+ selectedDPO.push(c);
59
+ }
60
+ });
61
+ return selectedDPO[0];
62
+ }
63
+ async function onSave(contactId) {
44
64
  await store
45
- .edit(id, { data: { DPO: ((_a = unit[0]) === null || _a === void 0 ? void 0 : _a.id) || "" }, error: "message" })
46
- .then(() => setShowDialog(false));
65
+ .edit(props.id, { data: { DPO: contactId || "" }, error: "message" })
66
+ .then(() => onBulurWorkType());
47
67
  }
48
68
  };
49
69
  export default DataProtectionOfficer;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/DataProtectionOfficer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,aAAa,MAAM,8CAA8C,CAAC;AACzE,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,IAAI,MAAM,4BAA4B,CAAC;AAE9C,MAAM,qBAAqB,GAAG,CAAC,KAAkB,EAAE,EAAE;IACpD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEpD,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,OAAO,GAAG,2BAA2B,EAAE,CAAC;IAC9C,MAAM,aAAa,GAAG,WAAW,CAAC,KAA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KAAA,CAAC,CAAC;IAEH,KAAK,UAAU,MAAM,CAAC,IAAkD;;QACvE,MAAM,KAAK;aACT,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,EAAE,KAAI,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;aAChE,IAAI,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;IACpC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/DataProtectionOfficer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,UAAU,MAAM,gDAAgD,CAAC;AACxE,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,IAAI,MAAM,4BAA4B,CAAC;AAC9C,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,yDAAyD,CAAC;AAE7E,MAAM,qBAAqB,GAAG,CAAC,KAAkB,EAAE,EAAE;;IACpD,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,OAAO,GAAG,2BAA2B,EAAE,CAAC;IAC9C,MAAM,aAAa,GAAG,WAA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;aACpE,IAAI,CAAC,GAAG,EAAE,CAAC,eAAe,EAAE,CAAC,CAAC;IACjC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ declare const StartStep: () => React.JSX.Element;
4
+ export default StartStep;
@@ -0,0 +1,30 @@
1
+ import React from "react";
2
+ import { Button } from "antd";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import { useFIncorporationCLDAClientContext } from "../../IncorporationCLDAClientContext";
5
+ import { useIncorporationCLDA } from "../../../../../../../data/incorporation-clda";
6
+ import IncorporationClientViewCard from "../IncorporationClientViewCard";
7
+ import Viewer from "@voplus/morpho-text/es/controls/ProseMirror/Viewer";
8
+ import "./index.less";
9
+ const StartStep = () => {
10
+ const context = useFIncorporationCLDAClientContext();
11
+ const incorporation = useIncorporationCLDA(context.id);
12
+ return observe(() => {
13
+ var _a, _b;
14
+ return (React.createElement(IncorporationClientViewCard, null,
15
+ React.createElement("div", { className: "introduction-details-first-page" },
16
+ ((_a = incorporation.clientTexts) === null || _a === void 0 ? void 0 : _a.description) ? (React.createElement(Viewer, { html: (_b = incorporation.clientTexts) === null || _b === void 0 ? void 0 : _b.description })) : (React.createElement("div", { className: "introduction-details" },
17
+ React.createElement("p", { className: "title" }, "Welcome! Thank you for using our \u2018Incorporation Tool\u2019"),
18
+ React.createElement("p", null, "This tool will assist you to get started with the incorporation process with Voplus."),
19
+ React.createElement("br", null),
20
+ React.createElement("p", null, "You can fill the incorporation information, review quotation and upload documents on the next page"),
21
+ React.createElement("br", null),
22
+ React.createElement("p", null, "Let us get started."))),
23
+ React.createElement(Button, { className: "step-actions", type: "primary", loading: context.loading, onClick: start }, "Start"))));
24
+ });
25
+ function start() {
26
+ context.step = context.step + 1;
27
+ }
28
+ };
29
+ export default StartStep;
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/components/FirstStep/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,MAAM,MAAM,oDAAoD,CAAC;AACxE,OAAO,cAAc,CAAC;AAEtB,MAAM,SAAS,GAAG,GAAG,EAAE;IACtB,MAAM,OAAO,GAAG,kCAAkC,EAAE,CAAC;IACrD,MAAM,aAAa,GAAG,oBAAoB,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAEvD,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,oBAAC,2BAA2B;YAC3B,6BAAK,SAAS,EAAC,iCAAiC;gBAC9C,CAAA,MAAA,aAAa,CAAC,WAAW,0CAAE,WAAW,EAAC,CAAC,CAAC,CACzC,oBAAC,MAAM,IAAC,IAAI,EAAE,MAAA,aAAa,CAAC,WAAW,0CAAE,WAAW,GAAI,CACxD,CAAC,CAAC,CAAC,CACH,6BAAK,SAAS,EAAC,sBAAsB;oBACpC,2BAAG,SAAS,EAAC,OAAO,sEAA0D;oBAC9E,sHAEI;oBACJ,+BAAM;oBACN,oIAGI;oBACJ,+BAAM;oBACN,qDAA0B,CACrB,CACN;gBAED,oBAAC,MAAM,IAAC,SAAS,EAAC,cAAc,EAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,YAE/E,CACJ,CACuB,CAC9B,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,KAAK;QACb,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,GAAG,CAAC,CAAC;IACjC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,32 @@
1
+ :global {
2
+ .introduction-details-first-page {
3
+ height: 100%;
4
+ display: flex;
5
+ flex-direction: column;
6
+ justify-content: space-between;
7
+
8
+ .ProseMirror-container {
9
+ padding: 30px 28px 15px 25px;
10
+ }
11
+
12
+ .introduction-details {
13
+ padding: 30px 28px 15px 25px;
14
+ color: #5d5d5d;
15
+ font: normal normal 600 14px/19px Open Sans;
16
+
17
+ .title {
18
+ margin-bottom: 15px;
19
+ color: #217eb2;
20
+ font: normal normal bold 20px/27px Open Sans;
21
+ }
22
+ }
23
+
24
+ .step-actions {
25
+ width: 65px;
26
+ height: 30px;
27
+ margin-left: 25px;
28
+ margin-bottom: 25px;
29
+ font: normal normal bold 14px/19px Open Sans;
30
+ }
31
+ }
32
+ }
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ declare const IncorporationClientViewCard: (props: {
4
+ children: React.ReactNode;
5
+ bodyStyle?: React.CSSProperties;
6
+ }) => React.JSX.Element;
7
+ export default IncorporationClientViewCard;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import "./index.less";
4
+ const IncorporationClientViewCard = (props) => {
5
+ return observe(() => (React.createElement("div", { className: "incorporation-client-view-card" },
6
+ React.createElement("div", { className: "trim-strip" }),
7
+ React.createElement("div", { className: "card-content", style: props.bodyStyle }, props.children))));
8
+ };
9
+ export default IncorporationClientViewCard;
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/components/IncorporationClientViewCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,cAAc,CAAC;AAEtB,MAAM,2BAA2B,GAAG,CAAC,KAGpC,EAAE,EAAE;IACJ,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,gCAAgC;QAC9C,6BAAK,SAAS,EAAC,YAAY,GAAO;QAClC,6BAAK,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE,KAAK,CAAC,SAAS,IAClD,KAAK,CAAC,QAAQ,CACV,CACD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
@@ -0,0 +1,17 @@
1
+ :global {
2
+ .incorporation-client-view-card {
3
+ width: 100%;
4
+ background: #fff;
5
+ border-radius: 5px;
6
+
7
+ .trim-strip {
8
+ height: 13px;
9
+ border-radius: 5px 5px 0px 0px;
10
+ background: #217eb2 0% 0% no-repeat padding-box;
11
+ }
12
+
13
+ .card-content {
14
+ height: calc(100% - 13px);
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ declare const DetailsStep: () => React.JSX.Element;
4
+ export default DetailsStep;
@@ -0,0 +1,51 @@
1
+ import React from "react";
2
+ import { Scrollbars } from "react-custom-scrollbars-2";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import { useFIncorporationCLDAClientContext } from "../../IncorporationCLDAClientContext";
5
+ import { useIncorporationCLDA } from "../../../../../../../data/incorporation-clda";
6
+ import { useLayout } from "@voplus/morpho-data";
7
+ import { Button } from "antd";
8
+ import IncorporationClientViewCard from "../IncorporationClientViewCard";
9
+ import SubmitterSectionItem from "@voplus/morpho-document/es/pages/VSubmit/components/SubmitSections/SubmitterSectionItem";
10
+ import Viewer from "@voplus/morpho-text/es/controls/ProseMirror/Viewer";
11
+ import "./index.less";
12
+ const DetailsStep = () => {
13
+ const context = useFIncorporationCLDAClientContext();
14
+ const layout = useLayout();
15
+ const incorporation = useIncorporationCLDA(context.id);
16
+ return observe(() => {
17
+ var _a, _b, _c, _d, _e, _f, _g, _h;
18
+ return (React.createElement(Scrollbars, { autoHide: true },
19
+ React.createElement(IncorporationClientViewCard, null,
20
+ React.createElement("div", { className: "introduction-details-second-page" },
21
+ React.createElement("div", { className: "single-details" },
22
+ React.createElement("div", { className: "details-title" },
23
+ React.createElement("span", { className: "details-number" }, "1. "),
24
+ ((_a = incorporation.clientTexts) === null || _a === void 0 ? void 0 : _a.formTitle) ? (React.createElement(Viewer, { html: (_b = incorporation.clientTexts) === null || _b === void 0 ? void 0 : _b.formTitle })) : (React.createElement("span", null, "Incorporation Form Filing"))),
25
+ React.createElement("div", { className: "details-content" }, ((_c = incorporation.clientTexts) === null || _c === void 0 ? void 0 : _c.formDescription) ? (React.createElement(Viewer, { html: (_d = incorporation.clientTexts) === null || _d === void 0 ? void 0 : _d.formDescription })) : (React.createElement("div", null,
26
+ React.createElement("p", null, "This is an \u2018electronic incorporation form\u2019."),
27
+ React.createElement("p", null, "Please click on \u2018Open\u2019 button to fill up all the necessary information required about the Singapore Company to be registered.")))),
28
+ React.createElement(Button, { className: "step-actions", type: "primary", loading: context.loading, onClick: () => {
29
+ if (incorporation.formId)
30
+ onOpen(`/c/clda/form/${incorporation.formId}`);
31
+ } }, "Open")),
32
+ React.createElement("div", { className: "single-details" },
33
+ React.createElement("div", { className: "details-title" },
34
+ React.createElement("span", { className: "details-number" }, "2."),
35
+ ((_e = incorporation.clientTexts) === null || _e === void 0 ? void 0 : _e.quotationTitle) ? (React.createElement(Viewer, { html: (_f = incorporation.clientTexts) === null || _f === void 0 ? void 0 : _f.quotationTitle })) : (React.createElement("span", null, "Quotation Review & Payment"))),
36
+ React.createElement("div", { className: "details-content" }, ((_g = incorporation.clientTexts) === null || _g === void 0 ? void 0 : _g.quotationDescription) ? (React.createElement(Viewer, { html: (_h = incorporation.clientTexts) === null || _h === void 0 ? void 0 : _h.quotationDescription })) : (React.createElement("div", null,
37
+ React.createElement("p", null, "This is an \u2018electronic quotation\u2019 for your reference and kind confirmation."),
38
+ React.createElement("p", null, "Upon acceptance of the quotation and payment, an automatic invoice will be generated immediately and will be sent to your email, for reference."),
39
+ React.createElement("p", null, "Please click on \u2018Open\u2019 button to review the quotation.")))),
40
+ incorporation.quotationId ? (React.createElement(Button, { type: "primary", className: "step-actions", loading: context.loading, onClick: () => onOpen(`/c/quotations/${incorporation.quotationId}`) }, "Open")) : (React.createElement(Button, null, "No Data"))),
41
+ incorporation.uploadFolderId && (React.createElement("div", { className: "single-details-end" },
42
+ React.createElement("div", { className: "details-title" },
43
+ React.createElement("span", null, "3. Documents Uploading")),
44
+ React.createElement(SubmitterSectionItem, { id: incorporation.uploadFolderId, index: 0 })))))));
45
+ });
46
+ function onOpen(url) {
47
+ layout.history.push(url);
48
+ }
49
+ };
50
+ export default DetailsStep;
51
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/components/SecondStep/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,oBAAoB,MAAM,yFAAyF,CAAC;AAC3H,OAAO,MAAM,MAAM,oDAAoD,CAAC;AACxE,OAAO,cAAc,CAAC;AAEtB,MAAM,WAAW,GAAG,GAAG,EAAE;IACxB,MAAM,OAAO,GAAG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4
+
5
+ .single-details {
6
+ margin-top: 25px;
7
+ border-bottom: 1px solid #e6e6e6;
8
+
9
+ .details-title {
10
+ display: flex;
11
+ align-items: center;
12
+ color: #217eb2;
13
+ font: normal normal bold 16px/22px Open Sans;
14
+ margin-bottom: 15px;
15
+ }
16
+
17
+ .details-content {
18
+ margin-bottom: 15px;
19
+ }
20
+
21
+ .step-actions {
22
+ width: 67px;
23
+ height: 30px;
24
+ margin-bottom: 25px;
25
+ font: normal normal bold 14px/19px Open Sans;
26
+ }
27
+ }
28
+
29
+ .single-details-end {
30
+ margin-top: 25px;
31
+
32
+ .details-title {
33
+ color: #217eb2;
34
+ font: normal normal bold 16px/22px Open Sans;
35
+ margin-bottom: 15px;
36
+ }
37
+
38
+ .sections-item-card {
39
+ &.sections-item-card_zero {
40
+ padding: 0;
41
+ }
42
+ }
43
+
44
+ .description-editor {
45
+ .description-readonly-proseMirror {
46
+ .ProseMirror-container {
47
+ .ProseMirror {
48
+ padding: 0;
49
+ }
50
+ }
51
+ }
52
+ }
53
+
54
+ .section-item-content {
55
+ .document-header-default {
56
+ display: none;
57
+ }
58
+
59
+ .list-view-header-tool {
60
+ padding: 0;
61
+ }
62
+
63
+ .doc-list-content {
64
+ height: 170px;
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
@@ -1,29 +1,31 @@
1
- import { Button, Card, Spin, Steps } from "antd";
2
- import { IncorporationCLDAClientContext, IncorporationCLDAClientState, } from "./IncorporationCLDAClientContext";
3
1
  import React, { useEffect, useMemo, useState } from "react";
2
+ import { Button, Spin } from "antd";
3
+ import { IncorporationCLDAClientContext, IncorporationCLDAClientState, } from "./IncorporationCLDAClientContext";
4
4
  import { useParams } from "react-router";
5
5
  import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
6
6
  import { useLayout, useTabItem } from "@voplus/morpho-data";
7
+ import { useIncorporationCLDA } from "../../../../../data/incorporation-clda";
8
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
9
+ import { LoadingOutlined } from "@ant-design/icons";
10
+ import { faXmark } from "@fortawesome/pro-light-svg-icons";
11
+ import { observe } from "@voplus/morpho-ui";
12
+ import { runInAction } from "mobx";
7
13
  import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2";
8
14
  import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
9
- import DetailsStep from "../../components/DetailsStep";
10
- import { LoadingOutlined } from "@ant-design/icons";
11
- import StartStep from "../../components/StartStep";
15
+ import IncorporationClientViewCard from "./components/IncorporationClientViewCard";
16
+ import DetailsStep from "./components/SecondStep";
17
+ import StartStep from "./components/FirstStep";
12
18
  import TourGuide from "./TourGuide";
13
19
  import classnames from "classnames";
14
- import { observe } from "@voplus/morpho-ui";
15
- import { runInAction } from "mobx";
16
20
  import styles from "./index.less";
17
- import { useIncorporationCLDA } from "../../../../../data/incorporation-clda";
18
21
  const IncorporationCLDAClientView = () => {
19
22
  const params = useParams();
20
23
  const id = params.id;
21
24
  const layout = useLayout();
22
- const { Step } = Steps;
23
25
  const view = useMemo(() => new ViewContextData("PropertiesView"), []);
24
- const [title, setTitle] = useState("Open Comment");
25
26
  const [asideContext] = useState(AsideContent.createContext());
26
27
  const [state] = useState(new IncorporationCLDAClientState());
28
+ const [visibleFaIconImg, setVisibleFaIconImg] = useState(true);
27
29
  state.id = id;
28
30
  const incorporationCLDA = useIncorporationCLDA(id, { includes: "ids,client-texts" });
29
31
  const tab = useTabItem();
@@ -36,10 +38,16 @@ const IncorporationCLDAClientView = () => {
36
38
  runInAction(() => {
37
39
  tab.title = "Incorporation";
38
40
  if (!layout.ui.mobile)
39
- asideContext.openAside(AsideElement, { span: 12 });
41
+ asideContext.openAside(AsideElement, { span: 8 });
40
42
  });
41
43
  }, []);
42
- const AsideElement = observe(() => (React.createElement(React.Fragment, null, incorporationCLDA.loaded && (React.createElement(React.Fragment, null, incorporationCLDA.quotationId ? (React.createElement(ActivityLog, { id: id, title: "Comment", nodes: [incorporationCLDA.quotationId] })) : (React.createElement(ActivityLog, { id: id, title: "Comment" })))))));
44
+ const AsideElement = observe(() => (React.createElement(React.Fragment, null, incorporationCLDA.loaded && (React.createElement("div", { className: "incorporation-clda-client-view-comment" },
45
+ !layout.ui.mobile && (React.createElement("header", null,
46
+ React.createElement("div", { className: "comment-header" },
47
+ React.createElement("div", { className: "title" }, "Comments"),
48
+ React.createElement("div", { className: "func-btn", onClick: toggleActivity },
49
+ React.createElement(FAIcon, { icon: faXmark }))))),
50
+ incorporationCLDA.quotationId ? (React.createElement(ActivityLog, { id: id, isHeader: false, nodes: [incorporationCLDA.quotationId] })) : (React.createElement(ActivityLog, { id: id, isHeader: false })))))));
43
51
  const steps = [
44
52
  {
45
53
  title: "Introduction",
@@ -52,23 +60,35 @@ const IncorporationCLDAClientView = () => {
52
60
  ];
53
61
  return observe(() => (React.createElement(ViewContext.Provider, { value: view },
54
62
  React.createElement(IncorporationCLDAClientContext.Provider, { value: state },
55
- React.createElement(TourGuide, { id: id }),
56
- React.createElement("div", { className: classnames("clda-client-view", styles["incorporation-clda-client-view"]) },
57
- React.createElement("header", { className: "clda-client-view-header" },
58
- React.createElement("div", { "data-tut": "incorporation-assistant" }, "Incorporation Assistant"),
59
- React.createElement(Button, { className: "toogle-btn", size: "small", onClick: toggleActivity, "data-tut": "activity-log" }, layout.ui.mobile ? "Comment" : title)),
60
- React.createElement(AsideContent, { context: asideContext },
61
- React.createElement("div", { className: "clda-client-view_content" },
62
- React.createElement("div", { className: "clda-client-view-step" }, !(incorporationCLDA === null || incorporationCLDA === void 0 ? void 0 : incorporationCLDA.loaded) ? (React.createElement(Card, { title: "Loading ~~", className: "steps-content", bodyStyle: { textAlign: "center" } },
63
+ React.createElement(AsideContent, { context: asideContext },
64
+ React.createElement(TourGuide, { id: id }),
65
+ React.createElement("div", { className: styles["incorporation-clda-client-view"] },
66
+ layout.ui.mobile ? (
67
+ // 手机端暂时使用之前的 header
68
+ React.createElement("header", { className: "clda-client-view-header-mobile" },
69
+ React.createElement("div", { "data-tut": "incorporation-assistant" }, "Incorporation Assistant"),
70
+ React.createElement(Button, { className: "toogle-btn", size: "small", onClick: toggleActivity, "data-tut": "activity-log" }, "Comment"))) : (React.createElement("header", { className: "clda-client-view-header" },
71
+ React.createElement("div", { className: "header-content" },
72
+ React.createElement("div", { className: "header-icon", "data-tut": "incorporation-assistant" }, visibleFaIconImg && (React.createElement("img", { className: "incorporation-fa-icon-image", src: "/img/incorporation-clda/incorporation-assisatnce-fa-icon.png", onError: (event) => event.type === "error" && setVisibleFaIconImg(false) }))),
73
+ React.createElement("div", { className: "header-info" },
74
+ React.createElement("div", { className: "title" }, "INCORPORATION ASSISTANCE"),
75
+ React.createElement("div", { className: "explanation-open" },
76
+ React.createElement("div", { className: "explanation" }, "Streamline Your Business Formation with Expert Guidance"),
77
+ !asideContext.asideContent && (React.createElement(Button, { className: "open-btn", onClick: toggleActivity, "data-tut": "activity-log" }, "View Comment"))))))),
78
+ React.createElement("div", { className: classnames("incorporation-clda-client-view-content", {
79
+ mobile: layout.ui.mobile,
80
+ }), style: {
81
+ justifyContent: asideContext.asideContent ? "flex-start" : "center",
82
+ marginLeft: asideContext.asideContent ? "50px" : "0",
83
+ } },
84
+ React.createElement("div", { className: "incorporation-clda-client-view-step" }, !(incorporationCLDA === null || incorporationCLDA === void 0 ? void 0 : incorporationCLDA.loaded) ? (React.createElement(IncorporationClientViewCard, { bodyStyle: { textAlign: "center", marginTop: "30px" } },
63
85
  React.createElement(Spin, { indicator: React.createElement(LoadingOutlined, { style: { fontSize: 24 }, spin: true }) }))) : (steps[state.step].content)))))))));
64
86
  function toggleActivity() {
65
87
  if (asideContext.asideContent) {
66
88
  asideContext.closeAside();
67
- setTitle("Open Comment");
68
89
  }
69
90
  else {
70
- asideContext.openAside(AsideElement, { span: 12 });
71
- setTitle("Close Comment");
91
+ asideContext.openAside(AsideElement, { span: 8 });
72
92
  }
73
93
  }
74
94
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACjD,OAAO,EACN,8BAA8B,EAC9B,4BAA4B,GAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,WAAW,MAAM,2DAA2D,CAAC;AACpF,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,WAAW,MAAM,8BAA8B,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,SAAS,MAAM,4BAA4B,CAAC;AACnD,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9E,MAAM,2BAA2B,GAAG,GAAG,EAAE;IACxC,MAAM,MAAM,GAAG,SAAS,EAAkB,CAAC;IAC3C,MAAM,EAAE,GAAG,MAAM,CAAC,EAAG,CAAC;IACtB,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAEvB,MAAM,IAAI,GAAG,OAA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EAAE,IAAI,SAAG,GAAI,CAChE,CACP,CAAC,CAAC,CAAC,CACH,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,OAAO,CACzB,CACI,CACD,CACQ,CACV,CACmC,CACpB,CACvB,CAAC,CAAC;IAEH,SAAS,cAAc;QACtB,IAAI,YAAY,CAAC,YAAY,EAAE,CAAC;YAC/B,YAAY,CAAC,UAAU,EAAE,CAAC;YAC1B,QAAQ,CAAC,cAAc,CAAC,CAAC;QAC1B,CAAC;aAAM,CAAC;YACP,YAAY,CAAC,SAAS,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;YACnD,QAAQ,CAAC,eAAe,CAAC,CAAC;QAC3B,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EACN,8BAA8B,EAC9B,4BAA4B,GAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC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K,EAAE;4BACN,cAAc,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ;4BACnE,UAAU,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG;yBACpD;wBAED,6BAAK,SAAS,EAAC,qCAAqC,IAClD,CAAC,CAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,MAAM,CAAA,CAAC,CAAC,CAAC,CAC7B,oBAAC,2BAA2B,IAC3B,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE;4BAErD,oBAAC,IAAI,IAAC,SAAS,EAAE,oBAAC,eAAe,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,IAAI,SAAG,GAAI,CACzC,CAC9B,CAAC,CAAC,CAAC,CACH,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,OAAO,CACzB,CACI,CACD,CACD,CACQ,CAC0B,CACpB,CACvB,CAAC,CAAC;IAEH,SAAS,cAAc;QACtB,IAAI,YAAY,CAAC,YAAY,EAAE,CAAC;YAC/B,YAAY,CAAC,UAAU,EAAE,CAAC;QAC3B,CAAC;aAAM,CAAC;YACP,YAAY,CAAC,SAAS,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;QACnD,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
@@ -1,52 +1,118 @@
1
- @import "../../../../corporate/clda/pages/CLDAClientView/index.less";
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
2
 
3
3
  .incorporation-clda-client-view {
4
+ background-image: url("/public/img/incorporation-clda/incorporation-assistance-bg.png");
5
+ background-position: left;
6
+ background-repeat: no-repeat;
7
+
4
8
  :global {
5
9
  .clda-client-view-header {
10
+ height: 138px;
11
+ background: #fff;
12
+
13
+ .header-content {
14
+ display: flex;
15
+ padding: 40px 36px 0 50px;
16
+
17
+ .header-icon {
18
+ height: 61px;
19
+ padding: 0 16.5px;
20
+ background: #8bc2f8;
21
+ border-radius: 2px;
22
+ display: flex;
23
+ align-items: center;
24
+ justify-content: center;
25
+ margin-right: 25px;
26
+
27
+ .incorporation-fa-icon-image {
28
+ width: 33px;
29
+ height: 26px;
30
+ }
31
+ }
32
+
33
+ .header-info {
34
+ width: 100%;
35
+
36
+ .title {
37
+ font: normal normal bold 30px/41px Open Sans;
38
+ color: #217eb2;
39
+ }
40
+ }
41
+
42
+ .explanation-open {
43
+ display: flex;
44
+ align-items: flex-start;
45
+ justify-content: space-between;
46
+
47
+ .explanation {
48
+ font: normal normal 600 16px/22px Open Sans;
49
+ color: #5d5d5d;
50
+ height: 22px;
51
+ }
52
+
53
+ .open-btn {
54
+ width: 133px;
55
+ height: 30px;
56
+ color: #217eb2;
57
+ border-radius: 5px;
58
+ border: 1px solid #217eb2;
59
+ font: normal normal bold 14px/19px Open Sans;
60
+ }
61
+ }
62
+ }
63
+ }
64
+
65
+ .clda-client-view-header-mobile {
6
66
  display: flex;
7
67
  justify-content: space-between;
68
+ padding: 15px 20px;
69
+ font-size: 15px;
70
+ font-weight: 500;
71
+ background-color: #fff;
72
+ border-bottom: 1px solid #f2f2f2;
8
73
  }
9
74
 
10
- .clda-client-view_content {
11
- padding: 0;
12
- .clda-client-view-step {
13
- height: 100%;
14
- padding: 20px;
15
- }
16
- .steps-content {
17
- margin: 0 auto 20px;
75
+ .incorporation-clda-client-view-content {
76
+ display: flex;
77
+ height: calc(100% - 138px);
78
+
79
+ &.mobile {
80
+ height: calc(100% - 55px);
18
81
  }
19
- .steps-content-upload {
20
- .ant-card-body {
21
- padding: 24px 0;
22
- .document-header-default {
23
- display: none;
24
- padding: 10px 24px !important;
25
- }
26
- .section-document {
27
- .document-header-default {
28
- display: flex;
29
- }
30
- }
31
- }
82
+
83
+ .incorporation-clda-client-view-step {
84
+ width: 740px;
85
+ height: 100%;
86
+ padding: 40px 0 25px;
32
87
  }
33
- .steps-title {
34
- .steps-number {
35
- float: left;
36
- margin-right: 3px;
37
- // margin-top: -1px;
38
- }
39
- > div {
40
- display: inline-block;
41
- }
88
+ }
89
+ }
90
+ }
91
+
92
+ :global {
93
+ .incorporation-clda-client-view-comment {
94
+ height: calc(100% - 63px);
95
+
96
+ & > header {
97
+ padding: 0 20px;
98
+ }
99
+
100
+ .comment-header {
101
+ padding: 20px 0 15px;
102
+ display: flex;
103
+ align-items: center;
104
+ justify-content: space-between;
105
+ border-bottom: 1px solid #cbcbcb;
106
+
107
+ .title {
108
+ color: #5d5d5d;
109
+ font: normal normal bold 20px/27px Open Sans;
42
110
  }
43
- .sections-item-card {
44
- height: 350px;
45
- padding: 0;
46
- .section-item-content {
47
- height: 100%;
48
- display: flex;
49
- flex-direction: column;
111
+
112
+ .func-btn {
113
+ & > svg {
114
+ color: #868686;
115
+ font: normal normal normal 14px/17px Font Awesome 6 Free;
50
116
  }
51
117
  }
52
118
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-csp",
3
- "version": "6.0.97",
3
+ "version": "6.0.99",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://voplus.visualstudio.com/morpho-csp/_git/morpho-csp"
@@ -19,7 +19,7 @@
19
19
  "copy-less-mac": "cpx 'src/**/*.less' lib && cpx 'src/**/*.less' es && cpx 'src/**/*.css' es",
20
20
  "clean": "del-cli es && jest --clearCache",
21
21
  "clean-hooks": "del-cli .git/hooks",
22
- "storybook": "sb dev -p 9001 -c .storybook -s ./public",
22
+ "storybook": "sb dev -p 9001 -c .storybook -s ../public",
23
23
  "lint": "npx eslint -c .eslintrc.js --ext .ts --ext .tsx src",
24
24
  "build": "npm run clean && tsc -p tsconfig.prod.json && npm run copy-less",
25
25
  "build:mac": "npm run clean && tsc -p tsconfig.prod.json && npm run copy-less-mac",