@servicetitan/mpa-components 2.2.0 → 2.2.1
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/CHANGELOG.md +12 -0
- package/package.json +36 -36
- package/tsconfig.json +3 -5
- package/tsconfig.tsbuildinfo +1 -1
- package/lib/components/campaign-actions/actions-button/campaign-actions.stories.d.ts +0 -8
- package/lib/components/campaign-actions/actions-button/campaign-actions.stories.d.ts.map +0 -1
- package/lib/components/campaign-actions/actions-button/campaign-actions.stories.js +0 -11
- package/lib/components/campaign-actions/actions-button/campaign-actions.stories.js.map +0 -1
- package/lib/components/settings/company-details/company-details-form.stories.d.ts +0 -9
- package/lib/components/settings/company-details/company-details-form.stories.d.ts.map +0 -1
- package/lib/components/settings/company-details/company-details-form.stories.js +0 -30
- package/lib/components/settings/company-details/company-details-form.stories.js.map +0 -1
- package/lib/components/settings/company-email-footer/company-email-footer.stories.d.ts +0 -8
- package/lib/components/settings/company-email-footer/company-email-footer.stories.d.ts.map +0 -1
- package/lib/components/settings/company-email-footer/company-email-footer.stories.js +0 -28
- package/lib/components/settings/company-email-footer/company-email-footer.stories.js.map +0 -1
- package/lib/components/settings/company-email-reply-to/company-email-reply-to.stories.d.ts +0 -8
- package/lib/components/settings/company-email-reply-to/company-email-reply-to.stories.d.ts.map +0 -1
- package/lib/components/settings/company-email-reply-to/company-email-reply-to.stories.js +0 -26
- package/lib/components/settings/company-email-reply-to/company-email-reply-to.stories.js.map +0 -1
- package/lib/components/settings/company-email-sender/company-email-sender.stories.d.ts +0 -10
- package/lib/components/settings/company-email-sender/company-email-sender.stories.d.ts.map +0 -1
- package/lib/components/settings/company-email-sender/company-email-sender.stories.js +0 -31
- package/lib/components/settings/company-email-sender/company-email-sender.stories.js.map +0 -1
- package/lib/components/settings/company-trades-picker/company-trades-picker.stories.d.ts +0 -9
- package/lib/components/settings/company-trades-picker/company-trades-picker.stories.d.ts.map +0 -1
- package/lib/components/settings/company-trades-picker/company-trades-picker.stories.js +0 -71
- package/lib/components/settings/company-trades-picker/company-trades-picker.stories.js.map +0 -1
- package/lib/components/settings/double-opt-in/double-opt-in.stories.d.ts +0 -8
- package/lib/components/settings/double-opt-in/double-opt-in.stories.d.ts.map +0 -1
- package/lib/components/settings/double-opt-in/double-opt-in.stories.js +0 -30
- package/lib/components/settings/double-opt-in/double-opt-in.stories.js.map +0 -1
- package/lib/components/settings/email-validation/email-validation.stories.d.ts +0 -19
- package/lib/components/settings/email-validation/email-validation.stories.d.ts.map +0 -1
- package/lib/components/settings/email-validation/email-validation.stories.js +0 -100
- package/lib/components/settings/email-validation/email-validation.stories.js.map +0 -1
- package/lib/components/settings/logo-picker/logo-picker.stories.d.ts +0 -8
- package/lib/components/settings/logo-picker/logo-picker.stories.d.ts.map +0 -1
- package/lib/components/settings/logo-picker/logo-picker.stories.js +0 -13
- package/lib/components/settings/logo-picker/logo-picker.stories.js.map +0 -1
- package/lib/components/settings/opt-out-message/opt-out-message.stories.d.ts +0 -8
- package/lib/components/settings/opt-out-message/opt-out-message.stories.d.ts.map +0 -1
- package/lib/components/settings/opt-out-message/opt-out-message.stories.js +0 -32
- package/lib/components/settings/opt-out-message/opt-out-message.stories.js.map +0 -1
- package/lib/components/settings/settings-section/settings-section.stories.d.ts +0 -8
- package/lib/components/settings/settings-section/settings-section.stories.d.ts.map +0 -1
- package/lib/components/settings/settings-section/settings-section.stories.js +0 -12
- package/lib/components/settings/settings-section/settings-section.stories.js.map +0 -1
- package/src/components/campaign-actions/actions-button/campaign-actions.stories.tsx +0 -19
- package/src/components/settings/company-details/company-details-form.stories.tsx +0 -45
- package/src/components/settings/company-email-footer/company-email-footer.stories.tsx +0 -24
- package/src/components/settings/company-email-reply-to/company-email-reply-to.stories.tsx +0 -22
- package/src/components/settings/company-email-sender/company-email-sender.stories.tsx +0 -28
- package/src/components/settings/company-trades-picker/company-trades-picker.stories.tsx +0 -78
- package/src/components/settings/double-opt-in/double-opt-in.stories.tsx +0 -25
- package/src/components/settings/email-validation/email-validation.stories.tsx +0 -118
- package/src/components/settings/logo-picker/logo-picker.stories.tsx +0 -21
- package/src/components/settings/opt-out-message/opt-out-message.stories.tsx +0 -27
- package/src/components/settings/settings-section/settings-section.stories.tsx +0 -16
- /package/{lib → dist}/components/brands/brand-card/actions-button-section.d.ts +0 -0
- /package/{lib → dist}/components/brands/brand-card/actions-button-section.d.ts.map +0 -0
- /package/{lib → dist}/components/brands/brand-card/actions-button-section.js +0 -0
- /package/{lib → dist}/components/brands/brand-card/actions-button-section.js.map +0 -0
- /package/{lib → dist}/components/brands/brand-card/brand-card.d.ts +0 -0
- /package/{lib → dist}/components/brands/brand-card/brand-card.d.ts.map +0 -0
- /package/{lib → dist}/components/brands/brand-card/brand-card.js +0 -0
- /package/{lib → dist}/components/brands/brand-card/brand-card.js.map +0 -0
- /package/{lib → dist}/components/brands/brand-card/info-section.d.ts +0 -0
- /package/{lib → dist}/components/brands/brand-card/info-section.d.ts.map +0 -0
- /package/{lib → dist}/components/brands/brand-card/info-section.js +0 -0
- /package/{lib → dist}/components/brands/brand-card/info-section.js.map +0 -0
- /package/{lib → dist}/components/brands/brand-card/single-action-button.d.ts +0 -0
- /package/{lib → dist}/components/brands/brand-card/single-action-button.d.ts.map +0 -0
- /package/{lib → dist}/components/brands/brand-card/single-action-button.js +0 -0
- /package/{lib → dist}/components/brands/brand-card/single-action-button.js.map +0 -0
- /package/{lib → dist}/components/brands/cards-grid/cards-grid.d.ts +0 -0
- /package/{lib → dist}/components/brands/cards-grid/cards-grid.d.ts.map +0 -0
- /package/{lib → dist}/components/brands/cards-grid/cards-grid.js +0 -0
- /package/{lib → dist}/components/brands/cards-grid/cards-grid.js.map +0 -0
- /package/{lib → dist}/components/brands/index.d.ts +0 -0
- /package/{lib → dist}/components/brands/index.d.ts.map +0 -0
- /package/{lib → dist}/components/brands/index.js +0 -0
- /package/{lib → dist}/components/brands/index.js.map +0 -0
- /package/{lib → dist}/components/brands/styles.module.less +0 -0
- /package/{lib → dist}/components/campaign-actions/action-button/action-button-archive.d.ts +0 -0
- /package/{lib → dist}/components/campaign-actions/action-button/action-button-archive.d.ts.map +0 -0
- /package/{lib → dist}/components/campaign-actions/action-button/action-button-archive.js +0 -0
- /package/{lib → dist}/components/campaign-actions/action-button/action-button-archive.js.map +0 -0
- /package/{lib → dist}/components/campaign-actions/action-button/action-button-clone.d.ts +0 -0
- /package/{lib → dist}/components/campaign-actions/action-button/action-button-clone.d.ts.map +0 -0
- /package/{lib → dist}/components/campaign-actions/action-button/action-button-clone.js +0 -0
- /package/{lib → dist}/components/campaign-actions/action-button/action-button-clone.js.map +0 -0
- /package/{lib → dist}/components/campaign-actions/action-button/action-button-edit.d.ts +0 -0
- /package/{lib → dist}/components/campaign-actions/action-button/action-button-edit.d.ts.map +0 -0
- /package/{lib → dist}/components/campaign-actions/action-button/action-button-edit.js +0 -0
- /package/{lib → dist}/components/campaign-actions/action-button/action-button-edit.js.map +0 -0
- /package/{lib → dist}/components/campaign-actions/action-button/action-button-unarchive.d.ts +0 -0
- /package/{lib → dist}/components/campaign-actions/action-button/action-button-unarchive.d.ts.map +0 -0
- /package/{lib → dist}/components/campaign-actions/action-button/action-button-unarchive.js +0 -0
- /package/{lib → dist}/components/campaign-actions/action-button/action-button-unarchive.js.map +0 -0
- /package/{lib → dist}/components/campaign-actions/action-button/action-button.d.ts +0 -0
- /package/{lib → dist}/components/campaign-actions/action-button/action-button.d.ts.map +0 -0
- /package/{lib → dist}/components/campaign-actions/action-button/action-button.js +0 -0
- /package/{lib → dist}/components/campaign-actions/action-button/action-button.js.map +0 -0
- /package/{lib → dist}/components/campaign-actions/action-button/action-button.module.less +0 -0
- /package/{lib → dist}/components/campaign-actions/actions-button/actions-button.d.ts +0 -0
- /package/{lib → dist}/components/campaign-actions/actions-button/actions-button.d.ts.map +0 -0
- /package/{lib → dist}/components/campaign-actions/actions-button/actions-button.js +0 -0
- /package/{lib → dist}/components/campaign-actions/actions-button/actions-button.js.map +0 -0
- /package/{lib → dist}/components/campaign-actions/actions-button/actions-button.module.less +0 -0
- /package/{lib → dist}/components/campaign-actions/actions-button/campaign-actions.d.ts +0 -0
- /package/{lib → dist}/components/campaign-actions/actions-button/campaign-actions.d.ts.map +0 -0
- /package/{lib → dist}/components/campaign-actions/actions-button/campaign-actions.js +0 -0
- /package/{lib → dist}/components/campaign-actions/actions-button/campaign-actions.js.map +0 -0
- /package/{lib → dist}/components/campaign-actions/index.d.ts +0 -0
- /package/{lib → dist}/components/campaign-actions/index.d.ts.map +0 -0
- /package/{lib → dist}/components/campaign-actions/index.js +0 -0
- /package/{lib → dist}/components/campaign-actions/index.js.map +0 -0
- /package/{lib → dist}/components/settings/company-details/company-details-form.module.less +0 -0
- /package/{lib → dist}/components/settings/company-details/index.d.ts +0 -0
- /package/{lib → dist}/components/settings/company-details/index.d.ts.map +0 -0
- /package/{lib → dist}/components/settings/company-details/index.js +0 -0
- /package/{lib → dist}/components/settings/company-details/index.js.map +0 -0
- /package/{lib → dist}/components/settings/company-email-footer/index.d.ts +0 -0
- /package/{lib → dist}/components/settings/company-email-footer/index.d.ts.map +0 -0
- /package/{lib → dist}/components/settings/company-email-footer/index.js +0 -0
- /package/{lib → dist}/components/settings/company-email-footer/index.js.map +0 -0
- /package/{lib → dist}/components/settings/company-email-reply-to/index.d.ts +0 -0
- /package/{lib → dist}/components/settings/company-email-reply-to/index.d.ts.map +0 -0
- /package/{lib → dist}/components/settings/company-email-reply-to/index.js +0 -0
- /package/{lib → dist}/components/settings/company-email-reply-to/index.js.map +0 -0
- /package/{lib → dist}/components/settings/company-email-sender/company-email-sender.module.less +0 -0
- /package/{lib → dist}/components/settings/company-email-sender/custom-domain-sender.d.ts +0 -0
- /package/{lib → dist}/components/settings/company-email-sender/custom-domain-sender.d.ts.map +0 -0
- /package/{lib → dist}/components/settings/company-email-sender/custom-domain-sender.js +0 -0
- /package/{lib → dist}/components/settings/company-email-sender/custom-domain-sender.js.map +0 -0
- /package/{lib → dist}/components/settings/company-email-sender/index.d.ts +0 -0
- /package/{lib → dist}/components/settings/company-email-sender/index.d.ts.map +0 -0
- /package/{lib → dist}/components/settings/company-email-sender/index.js +0 -0
- /package/{lib → dist}/components/settings/company-email-sender/index.js.map +0 -0
- /package/{lib → dist}/components/settings/company-email-sender/simple-sender.d.ts +0 -0
- /package/{lib → dist}/components/settings/company-email-sender/simple-sender.d.ts.map +0 -0
- /package/{lib → dist}/components/settings/company-email-sender/simple-sender.js +0 -0
- /package/{lib → dist}/components/settings/company-email-sender/simple-sender.js.map +0 -0
- /package/{lib → dist}/components/settings/company-trade-checkbox/company-trade-checkbox.module.less +0 -0
- /package/{lib → dist}/components/settings/company-trade-checkbox/index.d.ts +0 -0
- /package/{lib → dist}/components/settings/company-trade-checkbox/index.d.ts.map +0 -0
- /package/{lib → dist}/components/settings/company-trade-checkbox/index.js +0 -0
- /package/{lib → dist}/components/settings/company-trade-checkbox/index.js.map +0 -0
- /package/{lib → dist}/components/settings/company-trades-picker/index.d.ts +0 -0
- /package/{lib → dist}/components/settings/company-trades-picker/index.d.ts.map +0 -0
- /package/{lib → dist}/components/settings/company-trades-picker/index.js +0 -0
- /package/{lib → dist}/components/settings/company-trades-picker/index.js.map +0 -0
- /package/{lib → dist}/components/settings/double-opt-in/double-opt-in.module.less +0 -0
- /package/{lib → dist}/components/settings/double-opt-in/index.d.ts +0 -0
- /package/{lib → dist}/components/settings/double-opt-in/index.d.ts.map +0 -0
- /package/{lib → dist}/components/settings/double-opt-in/index.js +0 -0
- /package/{lib → dist}/components/settings/double-opt-in/index.js.map +0 -0
- /package/{lib → dist}/components/settings/email-preview/email-preview.d.ts +0 -0
- /package/{lib → dist}/components/settings/email-preview/email-preview.d.ts.map +0 -0
- /package/{lib → dist}/components/settings/email-preview/email-preview.js +0 -0
- /package/{lib → dist}/components/settings/email-preview/email-preview.js.map +0 -0
- /package/{lib → dist}/components/settings/email-preview/email-preview.module.less +0 -0
- /package/{lib → dist}/components/settings/email-preview/opt-in-email-preview.d.ts +0 -0
- /package/{lib → dist}/components/settings/email-preview/opt-in-email-preview.d.ts.map +0 -0
- /package/{lib → dist}/components/settings/email-preview/opt-in-email-preview.js +0 -0
- /package/{lib → dist}/components/settings/email-preview/opt-in-email-preview.js.map +0 -0
- /package/{lib → dist}/components/settings/email-preview/opt-out-email-preview.d.ts +0 -0
- /package/{lib → dist}/components/settings/email-preview/opt-out-email-preview.d.ts.map +0 -0
- /package/{lib → dist}/components/settings/email-preview/opt-out-email-preview.js +0 -0
- /package/{lib → dist}/components/settings/email-preview/opt-out-email-preview.js.map +0 -0
- /package/{lib → dist}/components/settings/email-validation/index.d.ts +0 -0
- /package/{lib → dist}/components/settings/email-validation/index.d.ts.map +0 -0
- /package/{lib → dist}/components/settings/email-validation/index.js +0 -0
- /package/{lib → dist}/components/settings/email-validation/index.js.map +0 -0
- /package/{lib → dist}/components/settings/form-errors-list/index.d.ts +0 -0
- /package/{lib → dist}/components/settings/form-errors-list/index.d.ts.map +0 -0
- /package/{lib → dist}/components/settings/form-errors-list/index.js +0 -0
- /package/{lib → dist}/components/settings/form-errors-list/index.js.map +0 -0
- /package/{lib → dist}/components/settings/index.d.ts +0 -0
- /package/{lib → dist}/components/settings/index.d.ts.map +0 -0
- /package/{lib → dist}/components/settings/index.js +0 -0
- /package/{lib → dist}/components/settings/index.js.map +0 -0
- /package/{lib → dist}/components/settings/logo-picker/index.d.ts +0 -0
- /package/{lib → dist}/components/settings/logo-picker/index.d.ts.map +0 -0
- /package/{lib → dist}/components/settings/logo-picker/index.js +0 -0
- /package/{lib → dist}/components/settings/logo-picker/index.js.map +0 -0
- /package/{lib → dist}/components/settings/logo-picker/logo-picker.module.less +0 -0
- /package/{lib → dist}/components/settings/opt-out-message/index.d.ts +0 -0
- /package/{lib → dist}/components/settings/opt-out-message/index.d.ts.map +0 -0
- /package/{lib → dist}/components/settings/opt-out-message/index.js +0 -0
- /package/{lib → dist}/components/settings/opt-out-message/index.js.map +0 -0
- /package/{lib → dist}/components/settings/opt-out-message/opt-out-message.module.less +0 -0
- /package/{lib → dist}/components/settings/result-definitions-modal/header.d.ts +0 -0
- /package/{lib → dist}/components/settings/result-definitions-modal/header.d.ts.map +0 -0
- /package/{lib → dist}/components/settings/result-definitions-modal/header.js +0 -0
- /package/{lib → dist}/components/settings/result-definitions-modal/header.js.map +0 -0
- /package/{lib → dist}/components/settings/result-definitions-modal/index.d.ts +0 -0
- /package/{lib → dist}/components/settings/result-definitions-modal/index.d.ts.map +0 -0
- /package/{lib → dist}/components/settings/result-definitions-modal/index.js +0 -0
- /package/{lib → dist}/components/settings/result-definitions-modal/index.js.map +0 -0
- /package/{lib → dist}/components/settings/result-definitions-modal/result-definitions-modal.module.less +0 -0
- /package/{lib → dist}/components/settings/result-definitions-modal/row.d.ts +0 -0
- /package/{lib → dist}/components/settings/result-definitions-modal/row.d.ts.map +0 -0
- /package/{lib → dist}/components/settings/result-definitions-modal/row.js +0 -0
- /package/{lib → dist}/components/settings/result-definitions-modal/row.js.map +0 -0
- /package/{lib → dist}/components/settings/settings-section/index.d.ts +0 -0
- /package/{lib → dist}/components/settings/settings-section/index.d.ts.map +0 -0
- /package/{lib → dist}/components/settings/settings-section/index.js +0 -0
- /package/{lib → dist}/components/settings/settings-section/index.js.map +0 -0
- /package/{lib → dist}/enums/brands.d.ts +0 -0
- /package/{lib → dist}/enums/brands.d.ts.map +0 -0
- /package/{lib → dist}/enums/brands.js +0 -0
- /package/{lib → dist}/enums/brands.js.map +0 -0
- /package/{lib → dist}/index.d.ts +0 -0
- /package/{lib → dist}/index.d.ts.map +0 -0
- /package/{lib → dist}/index.js +0 -0
- /package/{lib → dist}/index.js.map +0 -0
- /package/{lib → dist}/utils/helpers.d.ts +0 -0
- /package/{lib → dist}/utils/helpers.d.ts.map +0 -0
- /package/{lib → dist}/utils/helpers.js +0 -0
- /package/{lib → dist}/utils/helpers.js.map +0 -0
- /package/{lib → dist}/utils/interfaces.d.ts +0 -0
- /package/{lib → dist}/utils/interfaces.d.ts.map +0 -0
- /package/{lib → dist}/utils/interfaces.js +0 -0
- /package/{lib → dist}/utils/interfaces.js.map +0 -0
- /package/{lib → dist}/utils/mappers.d.ts +0 -0
- /package/{lib → dist}/utils/mappers.d.ts.map +0 -0
- /package/{lib → dist}/utils/mappers.js +0 -0
- /package/{lib → dist}/utils/mappers.js.map +0 -0
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare function CampaignActions(): import("react/jsx-runtime").JSX.Element;
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: typeof CampaignActions;
|
|
5
|
-
parameters: {};
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
8
|
-
//# sourceMappingURL=campaign-actions.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"campaign-actions.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/campaign-actions/actions-button/campaign-actions.stories.tsx"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,4CAU9B;;;;;;AAED,wBAIE"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { CampaignActions as Component } from './campaign-actions';
|
|
3
|
-
export function CampaignActions() {
|
|
4
|
-
return (_jsx(Component, { onClickEdit: () => { }, onClickStop: () => { }, onClickClone: () => { }, onClickArchive: () => { }, onClickUnarchive: () => { } }));
|
|
5
|
-
}
|
|
6
|
-
export default {
|
|
7
|
-
title: 'MRK Components/CampaignActions',
|
|
8
|
-
component: CampaignActions,
|
|
9
|
-
parameters: {},
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=campaign-actions.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"campaign-actions.stories.js","sourceRoot":"","sources":["../../../../src/components/campaign-actions/actions-button/campaign-actions.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,IAAI,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAElE,MAAM,UAAU,eAAe;IAC3B,OAAO,CACH,KAAC,SAAS,IACN,WAAW,EAAE,GAAG,EAAE,GAAE,CAAC,EACrB,WAAW,EAAE,GAAG,EAAE,GAAE,CAAC,EACrB,YAAY,EAAE,GAAG,EAAE,GAAE,CAAC,EACtB,cAAc,EAAE,GAAG,EAAE,GAAE,CAAC,EACxB,gBAAgB,EAAE,GAAG,EAAE,GAAE,CAAC,GAC5B,CACL,CAAC;AACN,CAAC;AAED,eAAe;IACX,KAAK,EAAE,gCAAgC;IACvC,SAAS,EAAE,eAAe;IAC1B,UAAU,EAAE,EAAE;CACjB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const CompanyDetailsWithoutWebsite: () => import("react/jsx-runtime").JSX.Element;
|
|
2
|
-
export declare const CompanyDetails: () => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
parameters: {};
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
//# sourceMappingURL=company-details-form.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"company-details-form.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/settings/company-details/company-details-form.stories.tsx"],"names":[],"mappings":"AAoBA,eAAO,MAAM,4BAA4B,+CAQxC,CAAC;AAEF,eAAO,MAAM,cAAc,+CAQ1B,CAAC;;;;;;AAEF,wBAIE"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { InputFieldState } from '@servicetitan/form';
|
|
3
|
-
import { FormState } from 'formstate';
|
|
4
|
-
import { CompanyDetails as Component } from '.';
|
|
5
|
-
import { LogoPicker } from '../logo-picker/logo-picker.stories';
|
|
6
|
-
import omit from 'lodash/omit';
|
|
7
|
-
const form = new FormState({
|
|
8
|
-
companyName: new InputFieldState('Acme Inc'),
|
|
9
|
-
tagline: new InputFieldState('Ayo! The Acme rules'),
|
|
10
|
-
street: new InputFieldState('Backed st.'),
|
|
11
|
-
unit: new InputFieldState('123'),
|
|
12
|
-
city: new InputFieldState('Glendale'),
|
|
13
|
-
state: new InputFieldState('CA'),
|
|
14
|
-
zipCode: new InputFieldState('91203'),
|
|
15
|
-
companyEmail: new InputFieldState('info@acme.com'),
|
|
16
|
-
companyWebsite: new InputFieldState('www.acme.com'),
|
|
17
|
-
yearEstablished: new InputFieldState(1999),
|
|
18
|
-
});
|
|
19
|
-
export const CompanyDetailsWithoutWebsite = () => {
|
|
20
|
-
return (_jsx(Component, { formState: omit(form.$, ['companyWebsite']), logoPicker: _jsx(LogoPicker, {}), handleCompanyEmailBlur: () => alert('company email blurred') }));
|
|
21
|
-
};
|
|
22
|
-
export const CompanyDetails = () => {
|
|
23
|
-
return (_jsx(Component, { formState: form.$, logoPicker: _jsx(LogoPicker, {}), handleCompanyEmailBlur: () => alert('company email blurred') }));
|
|
24
|
-
};
|
|
25
|
-
export default {
|
|
26
|
-
title: 'MPA Components/settings/CompanyDetails',
|
|
27
|
-
component: CompanyDetails,
|
|
28
|
-
parameters: {},
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=company-details-form.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"company-details-form.stories.js","sourceRoot":"","sources":["../../../../src/components/settings/company-details/company-details-form.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,GAAG,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,IAAI,MAAM,aAAa,CAAC;AAE/B,MAAM,IAAI,GAAG,IAAI,SAAS,CAAC;IACvB,WAAW,EAAE,IAAI,eAAe,CAAC,UAAU,CAAC;IAC5C,OAAO,EAAE,IAAI,eAAe,CAAC,qBAAqB,CAAC;IACnD,MAAM,EAAE,IAAI,eAAe,CAAC,YAAY,CAAC;IACzC,IAAI,EAAE,IAAI,eAAe,CAAC,KAAK,CAAC;IAChC,IAAI,EAAE,IAAI,eAAe,CAAC,UAAU,CAAC;IACrC,KAAK,EAAE,IAAI,eAAe,CAAC,IAAI,CAAC;IAChC,OAAO,EAAE,IAAI,eAAe,CAAC,OAAO,CAAC;IACrC,YAAY,EAAE,IAAI,eAAe,CAAC,eAAe,CAAC;IAClD,cAAc,EAAE,IAAI,eAAe,CAAC,cAAc,CAAC;IACnD,eAAe,EAAE,IAAI,eAAe,CAAC,IAAI,CAAC;CAC7C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAG,EAAE;IAC7C,OAAO,CACH,KAAC,SAAS,IACN,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,EAC3C,UAAU,EAAE,KAAC,UAAU,KAAG,EAC1B,sBAAsB,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,uBAAuB,CAAC,GAC9D,CACL,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IAC/B,OAAO,CACH,KAAC,SAAS,IACN,SAAS,EAAE,IAAI,CAAC,CAAC,EACjB,UAAU,EAAE,KAAC,UAAU,KAAG,EAC1B,sBAAsB,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,uBAAuB,CAAC,GAC9D,CACL,CAAC;AACN,CAAC,CAAC;AAEF,eAAe;IACX,KAAK,EAAE,wCAAwC;IAC/C,SAAS,EAAE,cAAc;IACzB,UAAU,EAAE,EAAE;CACjB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: import("react").FC<import(".").CompanyEmailFooterProps>;
|
|
4
|
-
parameters: {};
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const CompanyEmailFooter: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
//# sourceMappingURL=company-email-footer.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"company-email-footer.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/settings/company-email-footer/company-email-footer.stories.tsx"],"names":[],"mappings":";;;;;AAKA,wBAIE;AAYF,eAAO,MAAM,kBAAkB,+CAE9B,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { InputFieldState, TextAreaFieldState } from '@servicetitan/form';
|
|
3
|
-
import { FormState } from 'formstate';
|
|
4
|
-
import { CompanyEmailFooter as Component } from '.';
|
|
5
|
-
export default {
|
|
6
|
-
title: 'MPA Components/settings/CompanyEmailFooter',
|
|
7
|
-
component: Component,
|
|
8
|
-
parameters: {},
|
|
9
|
-
};
|
|
10
|
-
class CompanyEmailStore {
|
|
11
|
-
constructor() {
|
|
12
|
-
Object.defineProperty(this, "form", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
configurable: true,
|
|
15
|
-
writable: true,
|
|
16
|
-
value: new FormState({
|
|
17
|
-
legalCopy: new TextAreaFieldState('Legal copy example'),
|
|
18
|
-
license: new InputFieldState('License'),
|
|
19
|
-
copyrightText: new InputFieldState('Copyritght 2022'),
|
|
20
|
-
})
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
const store = new CompanyEmailStore();
|
|
25
|
-
export const CompanyEmailFooter = () => {
|
|
26
|
-
return _jsx(Component, { formState: store.form.$ });
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=company-email-footer.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"company-email-footer.stories.js","sourceRoot":"","sources":["../../../../src/components/settings/company-email-footer/company-email-footer.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,EAAE,kBAAkB,IAAI,SAAS,EAAE,MAAM,GAAG,CAAC;AAEpD,eAAe;IACX,KAAK,EAAE,4CAA4C;IACnD,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,EAAE;CACjB,CAAC;AAEF,MAAM,iBAAiB;IAAvB;QACI;;;;mBAAO,IAAI,SAAS,CAAC;gBACjB,SAAS,EAAE,IAAI,kBAAkB,CAAC,oBAAoB,CAAC;gBACvD,OAAO,EAAE,IAAI,eAAe,CAAC,SAAS,CAAC;gBACvC,aAAa,EAAE,IAAI,eAAe,CAAC,iBAAiB,CAAC;aACxD,CAAC;WAAC;IACP,CAAC;CAAA;AAED,MAAM,KAAK,GAAG,IAAI,iBAAiB,EAAE,CAAC;AAEtC,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,OAAO,KAAC,SAAS,IAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,GAAI,CAAC;AAClD,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: import("react").FC<import(".").CompanyEmailReplyToProps>;
|
|
4
|
-
parameters: {};
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const CompanyEmailReplyTo: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
//# sourceMappingURL=company-email-reply-to.stories.d.ts.map
|
package/lib/components/settings/company-email-reply-to/company-email-reply-to.stories.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"company-email-reply-to.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/settings/company-email-reply-to/company-email-reply-to.stories.tsx"],"names":[],"mappings":";;;;;AAKA,wBAIE;AAUF,eAAO,MAAM,mBAAmB,+CAE/B,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { InputFieldState } from '@servicetitan/form';
|
|
3
|
-
import { FormState } from 'formstate';
|
|
4
|
-
import { CompanyEmailReplyTo as Component } from '.';
|
|
5
|
-
export default {
|
|
6
|
-
title: 'MPA Components/settings/CompanyEmailReplyTo',
|
|
7
|
-
component: Component,
|
|
8
|
-
parameters: {},
|
|
9
|
-
};
|
|
10
|
-
class CompanyEmailReplyToStore {
|
|
11
|
-
constructor() {
|
|
12
|
-
Object.defineProperty(this, "form", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
configurable: true,
|
|
15
|
-
writable: true,
|
|
16
|
-
value: new FormState({
|
|
17
|
-
replyToEmail: new InputFieldState('info@acme.com'),
|
|
18
|
-
})
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
const store = new CompanyEmailReplyToStore();
|
|
23
|
-
export const CompanyEmailReplyTo = () => {
|
|
24
|
-
return _jsx(Component, { replyToEmail: store.form.$.replyToEmail });
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=company-email-reply-to.stories.js.map
|
package/lib/components/settings/company-email-reply-to/company-email-reply-to.stories.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"company-email-reply-to.stories.js","sourceRoot":"","sources":["../../../../src/components/settings/company-email-reply-to/company-email-reply-to.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,EAAE,mBAAmB,IAAI,SAAS,EAAE,MAAM,GAAG,CAAC;AAErD,eAAe;IACX,KAAK,EAAE,6CAA6C;IACpD,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,EAAE;CACjB,CAAC;AAEF,MAAM,wBAAwB;IAA9B;QACI;;;;mBAAO,IAAI,SAAS,CAAC;gBACjB,YAAY,EAAE,IAAI,eAAe,CAAC,eAAe,CAAC;aACrD,CAAC;WAAC;IACP,CAAC;CAAA;AAED,MAAM,KAAK,GAAG,IAAI,wBAAwB,EAAE,CAAC;AAE7C,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACpC,OAAO,KAAC,SAAS,IAAC,YAAY,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,GAAI,CAAC;AAClE,CAAC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CompanyEmailSender as Simple } from '.';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: import("react").FC<Simple>;
|
|
5
|
-
parameters: {};
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare const CompanyEmailSenderCustomDomain: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare const CompanyEmailSender: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
//# sourceMappingURL=company-email-sender.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"company-email-sender.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/settings/company-email-sender/company-email-sender.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,IAAI,MAAM,EAA4C,MAAM,GAAG,CAAC;;;;;;AAE3F,wBAIE;AAYF,eAAO,MAAM,8BAA8B,+CAE1C,CAAC;AAEF,eAAO,MAAM,kBAAkB,+CAE9B,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { InputFieldState } from '@servicetitan/form';
|
|
3
|
-
import { FormState } from 'formstate';
|
|
4
|
-
import { CompanyEmailSender as Simple, CompanyEmailSenderCustomDomain as Custom } from '.';
|
|
5
|
-
export default {
|
|
6
|
-
title: 'MPA Components/settings/CompanyEmailSender',
|
|
7
|
-
component: Simple,
|
|
8
|
-
parameters: {},
|
|
9
|
-
};
|
|
10
|
-
class CompanyEmailSenderStore {
|
|
11
|
-
constructor() {
|
|
12
|
-
Object.defineProperty(this, "form", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
configurable: true,
|
|
15
|
-
writable: true,
|
|
16
|
-
value: new FormState({
|
|
17
|
-
senderEmail: new InputFieldState('email@acme.com'),
|
|
18
|
-
senderName: new InputFieldState('Pinky & Brain'),
|
|
19
|
-
senderDomain: new InputFieldState('acme'),
|
|
20
|
-
})
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
const store = new CompanyEmailSenderStore();
|
|
25
|
-
export const CompanyEmailSenderCustomDomain = () => {
|
|
26
|
-
return _jsx(Custom, { formState: store.form.$, senderTld: "tld.com" });
|
|
27
|
-
};
|
|
28
|
-
export const CompanyEmailSender = () => {
|
|
29
|
-
return _jsx(Simple, { senderName: store.form.$.senderName, senderEmail: store.form.$.senderEmail });
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=company-email-sender.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"company-email-sender.stories.js","sourceRoot":"","sources":["../../../../src/components/settings/company-email-sender/company-email-sender.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,EAAE,kBAAkB,IAAI,MAAM,EAAE,8BAA8B,IAAI,MAAM,EAAE,MAAM,GAAG,CAAC;AAE3F,eAAe;IACX,KAAK,EAAE,4CAA4C;IACnD,SAAS,EAAE,MAAM;IACjB,UAAU,EAAE,EAAE;CACjB,CAAC;AAEF,MAAM,uBAAuB;IAA7B;QACI;;;;mBAAO,IAAI,SAAS,CAAC;gBACjB,WAAW,EAAE,IAAI,eAAe,CAAC,gBAAgB,CAAC;gBAClD,UAAU,EAAE,IAAI,eAAe,CAAC,eAAe,CAAC;gBAChD,YAAY,EAAE,IAAI,eAAe,CAAC,MAAM,CAAC;aAC5C,CAAC;WAAC;IACP,CAAC;CAAA;AAED,MAAM,KAAK,GAAG,IAAI,uBAAuB,EAAE,CAAC;AAE5C,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAG,EAAE;IAC/C,OAAO,KAAC,MAAM,IAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,SAAS,EAAC,SAAS,GAAG,CAAC;AACnE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,OAAO,KAAC,MAAM,IAAC,UAAU,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,EAAE,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,GAAI,CAAC;AAClG,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { CompanyTradesPicker as Component } from '.';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: typeof Component;
|
|
5
|
-
parameters: {};
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare function CompanyTradesPicker(): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
//# sourceMappingURL=company-trades-picker.stories.d.ts.map
|
package/lib/components/settings/company-trades-picker/company-trades-picker.stories.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"company-trades-picker.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/settings/company-trades-picker/company-trades-picker.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,IAAI,SAAS,EAAS,MAAM,GAAG,CAAC;;;;;;AAE5D,wBAIE;AASF,wBAAgB,mBAAmB,4CA6DlC"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback, useState } from 'react';
|
|
3
|
-
import { CompanyTradesPicker as Component } from '.';
|
|
4
|
-
export default {
|
|
5
|
-
title: 'MPA Components/settings/CompanyTradesPicker',
|
|
6
|
-
component: Component,
|
|
7
|
-
parameters: {},
|
|
8
|
-
};
|
|
9
|
-
var TradeType;
|
|
10
|
-
(function (TradeType) {
|
|
11
|
-
TradeType["first"] = "FIRST";
|
|
12
|
-
TradeType["second"] = "SECOND";
|
|
13
|
-
TradeType["third"] = "THIRD";
|
|
14
|
-
TradeType["fourth"] = "FOURTH";
|
|
15
|
-
})(TradeType || (TradeType = {}));
|
|
16
|
-
export function CompanyTradesPicker() {
|
|
17
|
-
const [trades, setTrades] = useState([
|
|
18
|
-
{
|
|
19
|
-
qaKey: 'first',
|
|
20
|
-
name: 'first',
|
|
21
|
-
value: TradeType.first,
|
|
22
|
-
active: true,
|
|
23
|
-
asset: {
|
|
24
|
-
main: 'https://place-hold.it/64x64',
|
|
25
|
-
x2: 'https://place-hold.it/128x128',
|
|
26
|
-
x3: 'https://place-hold.it/192x192',
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
qaKey: 'second',
|
|
31
|
-
name: 'second',
|
|
32
|
-
value: TradeType.second,
|
|
33
|
-
active: false,
|
|
34
|
-
asset: {
|
|
35
|
-
main: 'https://place-hold.it/64x64',
|
|
36
|
-
x2: 'https://place-hold.it/128x128',
|
|
37
|
-
x3: 'https://place-hold.it/192x192',
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
qaKey: 'third',
|
|
42
|
-
name: 'third',
|
|
43
|
-
value: TradeType.third,
|
|
44
|
-
active: false,
|
|
45
|
-
asset: {
|
|
46
|
-
main: 'https://place-hold.it/64x64',
|
|
47
|
-
x2: 'https://place-hold.it/128x128',
|
|
48
|
-
x3: 'https://place-hold.it/192x192',
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
qaKey: 'fourth',
|
|
53
|
-
name: 'fourth',
|
|
54
|
-
value: TradeType.fourth,
|
|
55
|
-
active: false,
|
|
56
|
-
asset: {
|
|
57
|
-
main: 'https://place-hold.it/64x64',
|
|
58
|
-
x2: 'https://place-hold.it/128x128',
|
|
59
|
-
x3: 'https://place-hold.it/192x192',
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
]);
|
|
63
|
-
const selectTrade = useCallback((t) => {
|
|
64
|
-
setTrades(trades.map(trade => ({
|
|
65
|
-
...trade,
|
|
66
|
-
active: trade.value === t ? !trade.active : trade.active,
|
|
67
|
-
})));
|
|
68
|
-
}, [trades]);
|
|
69
|
-
return _jsx(Component, { trades: trades, onTradeChange: selectTrade });
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=company-trades-picker.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"company-trades-picker.stories.js","sourceRoot":"","sources":["../../../../src/components/settings/company-trades-picker/company-trades-picker.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,mBAAmB,IAAI,SAAS,EAAS,MAAM,GAAG,CAAC;AAE5D,eAAe;IACX,KAAK,EAAE,6CAA6C;IACpD,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,EAAE;CACjB,CAAC;AAEF,IAAK,SAKJ;AALD,WAAK,SAAS;IACV,4BAAe,CAAA;IACf,8BAAiB,CAAA;IACjB,4BAAe,CAAA;IACf,8BAAiB,CAAA;AACrB,CAAC,EALI,SAAS,KAAT,SAAS,QAKb;AAED,MAAM,UAAU,mBAAmB;IAC/B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAqB;QACrD;YACI,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,SAAS,CAAC,KAAK;YACtB,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE;gBACH,IAAI,EAAE,6BAA6B;gBACnC,EAAE,EAAE,+BAA+B;gBACnC,EAAE,EAAE,+BAA+B;aACtC;SACJ;QACD;YACI,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,SAAS,CAAC,MAAM;YACvB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,6BAA6B;gBACnC,EAAE,EAAE,+BAA+B;gBACnC,EAAE,EAAE,+BAA+B;aACtC;SACJ;QACD;YACI,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,SAAS,CAAC,KAAK;YACtB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,6BAA6B;gBACnC,EAAE,EAAE,+BAA+B;gBACnC,EAAE,EAAE,+BAA+B;aACtC;SACJ;QACD;YACI,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,SAAS,CAAC,MAAM;YACvB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,6BAA6B;gBACnC,EAAE,EAAE,+BAA+B;gBACnC,EAAE,EAAE,+BAA+B;aACtC;SACJ;KACJ,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,WAAW,CAC3B,CAAC,CAAY,EAAE,EAAE;QACb,SAAS,CACL,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YACjB,GAAG,KAAK;YACR,MAAM,EAAE,KAAK,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM;SAC3D,CAAC,CAAC,CACN,CAAC;IACN,CAAC,EACD,CAAC,MAAM,CAAC,CACX,CAAC;IAEF,OAAO,KAAC,SAAS,IAAY,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,WAAW,GAAI,CAAC;AAChF,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: import("react").FC<import(".").DoubleOptInProps>;
|
|
4
|
-
parameters: {};
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const DoubleOptIn: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
//# sourceMappingURL=double-opt-in.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"double-opt-in.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/settings/double-opt-in/double-opt-in.stories.tsx"],"names":[],"mappings":";;;;;AAIA,wBAIE;AAcF,eAAO,MAAM,WAAW,+CAEvB,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { CheckboxFieldState, InputFieldState, TextAreaFieldState } from '@servicetitan/form';
|
|
3
|
-
import { FormState } from 'formstate';
|
|
4
|
-
import { DoubleOptIn as Component } from '.';
|
|
5
|
-
export default {
|
|
6
|
-
title: 'MPA Components/settings/DoubleOptIn',
|
|
7
|
-
component: Component,
|
|
8
|
-
parameters: {},
|
|
9
|
-
};
|
|
10
|
-
class DoubleOptInStore {
|
|
11
|
-
constructor() {
|
|
12
|
-
Object.defineProperty(this, "form", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
configurable: true,
|
|
15
|
-
writable: true,
|
|
16
|
-
value: new FormState({
|
|
17
|
-
emailSubject: new InputFieldState('Jump in'),
|
|
18
|
-
emailHeader: new InputFieldState('Right now'),
|
|
19
|
-
emailBody: new TextAreaFieldState('Jump in right now! Please!'),
|
|
20
|
-
emailButtonText: new InputFieldState('JUMP IN'),
|
|
21
|
-
enabled: new CheckboxFieldState(true),
|
|
22
|
-
})
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
const store = new DoubleOptInStore();
|
|
27
|
-
export const DoubleOptIn = () => {
|
|
28
|
-
return _jsx(Component, { formState: store.form.$ });
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=double-opt-in.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"double-opt-in.stories.js","sourceRoot":"","sources":["../../../../src/components/settings/double-opt-in/double-opt-in.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,WAAW,IAAI,SAAS,EAAE,MAAM,GAAG,CAAC;AAE7C,eAAe;IACX,KAAK,EAAE,qCAAqC;IAC5C,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,EAAE;CACjB,CAAC;AAEF,MAAM,gBAAgB;IAAtB;QACI;;;;mBAAO,IAAI,SAAS,CAAC;gBACjB,YAAY,EAAE,IAAI,eAAe,CAAC,SAAS,CAAC;gBAC5C,WAAW,EAAE,IAAI,eAAe,CAAC,WAAW,CAAC;gBAC7C,SAAS,EAAE,IAAI,kBAAkB,CAAC,4BAA4B,CAAC;gBAC/D,eAAe,EAAE,IAAI,eAAe,CAAC,SAAS,CAAC;gBAC/C,OAAO,EAAE,IAAI,kBAAkB,CAAC,IAAI,CAAC;aACxC,CAAC;WAAC;IACP,CAAC;CAAA;AAED,MAAM,KAAK,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAErC,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC5B,OAAO,KAAC,SAAS,IAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,GAAI,CAAC;AAClD,CAAC,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
declare enum EmailValidationLevel {
|
|
2
|
-
Low = 1,
|
|
3
|
-
Medium = 2,
|
|
4
|
-
High = 3
|
|
5
|
-
}
|
|
6
|
-
declare enum EmailValidationResult {
|
|
7
|
-
Undeliverable = 0,
|
|
8
|
-
Typo = 1,
|
|
9
|
-
Risky = 2,
|
|
10
|
-
Pending = -1
|
|
11
|
-
}
|
|
12
|
-
declare const _default: {
|
|
13
|
-
title: string;
|
|
14
|
-
component: ({ className, handleDownload, loading, resultGrid, setValidationRiskType, validationRiskType, }: import(".").EmailValidationProps<EmailValidationLevel, EmailValidationResult>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
parameters: {};
|
|
16
|
-
};
|
|
17
|
-
export default _default;
|
|
18
|
-
export declare function EmailValidation(): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
//# sourceMappingURL=email-validation.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"email-validation.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/settings/email-validation/email-validation.stories.tsx"],"names":[],"mappings":"AAMA,aAAK,oBAAoB;IACrB,GAAG,IAAI;IACP,MAAM,IAAI;IACV,IAAI,IAAI;CACX;AAED,aAAK,qBAAqB;IACtB,aAAa,IAAI;IACjB,IAAI,IAAI;IACR,KAAK,IAAI;IACT,OAAO,KAAK;CACf;;;;;;AA4CD,wBAIE;AAEF,wBAAgB,eAAe,4CAkD9B"}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useState } from 'react';
|
|
3
|
-
import { TableState } from '@servicetitan/table';
|
|
4
|
-
import { InMemoryDataSource } from '@servicetitan/data-query';
|
|
5
|
-
import { emailValidationHoc } from '.';
|
|
6
|
-
var EmailValidationLevel;
|
|
7
|
-
(function (EmailValidationLevel) {
|
|
8
|
-
EmailValidationLevel[EmailValidationLevel["Low"] = 1] = "Low";
|
|
9
|
-
EmailValidationLevel[EmailValidationLevel["Medium"] = 2] = "Medium";
|
|
10
|
-
EmailValidationLevel[EmailValidationLevel["High"] = 3] = "High";
|
|
11
|
-
})(EmailValidationLevel || (EmailValidationLevel = {}));
|
|
12
|
-
var EmailValidationResult;
|
|
13
|
-
(function (EmailValidationResult) {
|
|
14
|
-
EmailValidationResult[EmailValidationResult["Undeliverable"] = 0] = "Undeliverable";
|
|
15
|
-
EmailValidationResult[EmailValidationResult["Typo"] = 1] = "Typo";
|
|
16
|
-
EmailValidationResult[EmailValidationResult["Risky"] = 2] = "Risky";
|
|
17
|
-
EmailValidationResult[EmailValidationResult["Pending"] = -1] = "Pending";
|
|
18
|
-
})(EmailValidationResult || (EmailValidationResult = {}));
|
|
19
|
-
const levelResultMap = new Map([
|
|
20
|
-
[EmailValidationLevel.High, [EmailValidationResult.Undeliverable]],
|
|
21
|
-
[EmailValidationLevel.Medium, [EmailValidationResult.Undeliverable]],
|
|
22
|
-
[EmailValidationLevel.Low, [EmailValidationResult.Undeliverable]],
|
|
23
|
-
]);
|
|
24
|
-
const resultToText = new Map([
|
|
25
|
-
[EmailValidationResult.Risky, 'Risky'],
|
|
26
|
-
[EmailValidationResult.Typo, 'Typo'],
|
|
27
|
-
[EmailValidationResult.Undeliverable, 'Undeliverable'],
|
|
28
|
-
]);
|
|
29
|
-
const resultToTooltipText = new Map([
|
|
30
|
-
[
|
|
31
|
-
EmailValidationResult.Risky,
|
|
32
|
-
'Address was determined risky based on historical analysis or problematic results.',
|
|
33
|
-
],
|
|
34
|
-
[
|
|
35
|
-
EmailValidationResult.Typo,
|
|
36
|
-
'Address was possibly typed incorrectly during sign-up, or matches known typo domains',
|
|
37
|
-
],
|
|
38
|
-
[
|
|
39
|
-
EmailValidationResult.Undeliverable,
|
|
40
|
-
'Address was determined invalid after performing multiple checks including MX, SMTP, etc.',
|
|
41
|
-
],
|
|
42
|
-
]);
|
|
43
|
-
const EmailValidationComponent = emailValidationHoc({
|
|
44
|
-
resultToText,
|
|
45
|
-
levelTypeMap: {
|
|
46
|
-
high: EmailValidationLevel.High,
|
|
47
|
-
medium: EmailValidationLevel.Medium,
|
|
48
|
-
low: EmailValidationLevel.Low,
|
|
49
|
-
},
|
|
50
|
-
levelResultMap,
|
|
51
|
-
resultToTooltipText,
|
|
52
|
-
TenantDateCell: (props) => {
|
|
53
|
-
const value = props.dataItem[props.field];
|
|
54
|
-
return _jsx("td", { className: props.className, children: value.toString() });
|
|
55
|
-
},
|
|
56
|
-
});
|
|
57
|
-
export default {
|
|
58
|
-
title: 'MPA Components/settings/EmailValidation',
|
|
59
|
-
component: EmailValidationComponent,
|
|
60
|
-
parameters: {},
|
|
61
|
-
};
|
|
62
|
-
export function EmailValidation() {
|
|
63
|
-
const [type, setType] = useState(EmailValidationLevel.High);
|
|
64
|
-
const [loading, setLoading] = useState(true);
|
|
65
|
-
const grid = new TableState({
|
|
66
|
-
dataSource: null,
|
|
67
|
-
pageSize: 15,
|
|
68
|
-
});
|
|
69
|
-
useEffect(() => {
|
|
70
|
-
async function load() {
|
|
71
|
-
if (!loading) {
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
setLoading(true);
|
|
75
|
-
const dataSource = new InMemoryDataSource([
|
|
76
|
-
{
|
|
77
|
-
id: 1,
|
|
78
|
-
active: false,
|
|
79
|
-
createdOn: new Date(),
|
|
80
|
-
result: EmailValidationResult.Risky,
|
|
81
|
-
email: 'varg@vikernes.com',
|
|
82
|
-
dateAdded: new Date(),
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
id: 2,
|
|
86
|
-
active: true,
|
|
87
|
-
createdOn: new Date(),
|
|
88
|
-
result: EmailValidationResult.Typo,
|
|
89
|
-
email: 'joe@biden.com',
|
|
90
|
-
dateAdded: new Date(),
|
|
91
|
-
},
|
|
92
|
-
]);
|
|
93
|
-
await grid.setDataSource(dataSource, true);
|
|
94
|
-
setLoading(false);
|
|
95
|
-
}
|
|
96
|
-
load();
|
|
97
|
-
});
|
|
98
|
-
return (_jsx(EmailValidationComponent, { loading: loading, resultGrid: grid, validationRiskType: type, setValidationRiskType: setType, handleDownload: () => alert('downloading csv') }));
|
|
99
|
-
}
|
|
100
|
-
//# sourceMappingURL=email-validation.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"email-validation.stories.js","sourceRoot":"","sources":["../../../../src/components/settings/email-validation/email-validation.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAkB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAA8B,MAAM,GAAG,CAAC;AAEnE,IAAK,oBAIJ;AAJD,WAAK,oBAAoB;IACrB,6DAAO,CAAA;IACP,mEAAU,CAAA;IACV,+DAAQ,CAAA;AACZ,CAAC,EAJI,oBAAoB,KAApB,oBAAoB,QAIxB;AAED,IAAK,qBAKJ;AALD,WAAK,qBAAqB;IACtB,mFAAiB,CAAA;IACjB,iEAAQ,CAAA;IACR,mEAAS,CAAA;IACT,wEAAY,CAAA;AAChB,CAAC,EALI,qBAAqB,KAArB,qBAAqB,QAKzB;AAED,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC;IAC3B,CAAC,oBAAoB,CAAC,IAAI,EAAE,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAAC;IAClE,CAAC,oBAAoB,CAAC,MAAM,EAAE,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAAC;IACpE,CAAC,oBAAoB,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAAC;CACpE,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,IAAI,GAAG,CAAgC;IACxD,CAAC,qBAAqB,CAAC,KAAK,EAAE,OAAO,CAAC;IACtC,CAAC,qBAAqB,CAAC,IAAI,EAAE,MAAM,CAAC;IACpC,CAAC,qBAAqB,CAAC,aAAa,EAAE,eAAe,CAAC;CACzD,CAAC,CAAC;AAEH,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAgC;IAC/D;QACI,qBAAqB,CAAC,KAAK;QAC3B,mFAAmF;KACtF;IACD;QACI,qBAAqB,CAAC,IAAI;QAC1B,sFAAsF;KACzF;IACD;QACI,qBAAqB,CAAC,aAAa;QACnC,0FAA0F;KAC7F;CACJ,CAAC,CAAC;AAEH,MAAM,wBAAwB,GAAG,kBAAkB,CAA8C;IAC7F,YAAY;IACZ,YAAY,EAAE;QACV,IAAI,EAAE,oBAAoB,CAAC,IAAI;QAC/B,MAAM,EAAE,oBAAoB,CAAC,MAAM;QACnC,GAAG,EAAE,oBAAoB,CAAC,GAAG;KAChC;IACD,cAAc;IACd,mBAAmB;IACnB,cAAc,EAAE,CAAC,KAAqB,EAAE,EAAE;QACtC,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAM,CAAC,CAAC;QAC3C,OAAO,aAAI,SAAS,EAAE,KAAK,CAAC,SAAS,YAAG,KAAK,CAAC,QAAQ,EAAE,GAAM,CAAC;IACnE,CAAC;CACJ,CAAC,CAAC;AAEH,eAAe;IACX,KAAK,EAAE,yCAAyC;IAChD,SAAS,EAAE,wBAAwB;IACnC,UAAU,EAAE,EAAE;CACjB,CAAC;AAEF,MAAM,UAAU,eAAe;IAC3B,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAuB,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAClF,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE7C,MAAM,IAAI,GAAG,IAAI,UAAU,CAAoD;QAC3E,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,EAAE;KACf,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACX,KAAK,UAAU,IAAI;YACf,IAAI,CAAC,OAAO,EAAE,CAAC;gBACX,OAAO;YACX,CAAC;YACD,UAAU,CAAC,IAAI,CAAC,CAAC;YACjB,MAAM,UAAU,GAAG,IAAI,kBAAkB,CAEvC;gBACE;oBACI,EAAE,EAAE,CAAC;oBACL,MAAM,EAAE,KAAK;oBACb,SAAS,EAAE,IAAI,IAAI,EAAE;oBACrB,MAAM,EAAE,qBAAqB,CAAC,KAAK;oBACnC,KAAK,EAAE,mBAAmB;oBAC1B,SAAS,EAAE,IAAI,IAAI,EAAE;iBACxB;gBACD;oBACI,EAAE,EAAE,CAAC;oBACL,MAAM,EAAE,IAAI;oBACZ,SAAS,EAAE,IAAI,IAAI,EAAE;oBACrB,MAAM,EAAE,qBAAqB,CAAC,IAAI;oBAClC,KAAK,EAAE,eAAe;oBACtB,SAAS,EAAE,IAAI,IAAI,EAAE;iBACxB;aACJ,CAAC,CAAC;YACH,MAAM,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;YAC3C,UAAU,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC;QACD,IAAI,EAAE,CAAC;IACX,CAAC,CAAC,CAAC;IAEH,OAAO,CACH,KAAC,wBAAwB,IACrB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,IAAI,EAChB,kBAAkB,EAAE,IAAI,EACxB,qBAAqB,EAAE,OAAO,EAC9B,cAAc,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,GAChD,CACL,CAAC;AACN,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logo-picker.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/settings/logo-picker/logo-picker.stories.tsx"],"names":[],"mappings":";;;;;AAGA,wBAIE;AAEF,wBAAgB,UAAU,4CAWzB"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from 'react';
|
|
3
|
-
import { LogoPicker as Component } from '.';
|
|
4
|
-
export default {
|
|
5
|
-
title: 'MPA Components/settings/LogoPicker',
|
|
6
|
-
component: LogoPicker,
|
|
7
|
-
parameters: {},
|
|
8
|
-
};
|
|
9
|
-
export function LogoPicker() {
|
|
10
|
-
const [url, setUrl] = useState();
|
|
11
|
-
return (_jsx(Component, { imageUrl: url, minDimensions: { height: 300, width: 300 }, onFileChange: () => setUrl('https://place-hold.it/300x300'), deleteImage: () => alert('image deleted') }));
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=logo-picker.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logo-picker.stories.js","sourceRoot":"","sources":["../../../../src/components/settings/logo-picker/logo-picker.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,UAAU,IAAI,SAAS,EAAE,MAAM,GAAG,CAAC;AAE5C,eAAe;IACX,KAAK,EAAE,oCAAoC;IAC3C,SAAS,EAAE,UAAU;IACrB,UAAU,EAAE,EAAE;CACjB,CAAC;AAEF,MAAM,UAAU,UAAU;IACtB,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,QAAQ,EAAsB,CAAC;IAErD,OAAO,CACH,KAAC,SAAS,IACN,QAAQ,EAAE,GAAG,EACb,aAAa,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,EAC1C,YAAY,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,+BAA+B,CAAC,EAC3D,WAAW,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,GAC3C,CACL,CAAC;AACN,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: import("react").FC<import(".").OptOutMessageProps>;
|
|
4
|
-
parameters: {};
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const OptOutMessage: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
//# sourceMappingURL=opt-out-message.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"opt-out-message.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/settings/opt-out-message/opt-out-message.stories.tsx"],"names":[],"mappings":";;;;;AAIA,wBAIE;AAgBF,eAAO,MAAM,aAAa,+CAEzB,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { CheckboxFieldState, InputFieldState, TextAreaFieldState } from '@servicetitan/form';
|
|
3
|
-
import { FormState } from 'formstate';
|
|
4
|
-
import { OptOutMessage as Component } from '.';
|
|
5
|
-
export default {
|
|
6
|
-
title: 'MPA Components/settings/OptOutMessage',
|
|
7
|
-
component: Component,
|
|
8
|
-
parameters: {},
|
|
9
|
-
};
|
|
10
|
-
class OptOutStore {
|
|
11
|
-
constructor() {
|
|
12
|
-
Object.defineProperty(this, "form", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
configurable: true,
|
|
15
|
-
writable: true,
|
|
16
|
-
value: new FormState({
|
|
17
|
-
subjectLine: new InputFieldState('Good bye'),
|
|
18
|
-
header: new InputFieldState('Opt out of emails'),
|
|
19
|
-
body: new TextAreaFieldState('Sorry to see you go!'),
|
|
20
|
-
buttonText: new InputFieldState('Bye'),
|
|
21
|
-
monthsLimit: new InputFieldState(6),
|
|
22
|
-
enabled: new CheckboxFieldState(true),
|
|
23
|
-
autoSuppressionEnabled: new CheckboxFieldState(true),
|
|
24
|
-
})
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
const store = new OptOutStore();
|
|
29
|
-
export const OptOutMessage = () => {
|
|
30
|
-
return _jsx(Component, { formState: store.form.$ });
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=opt-out-message.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"opt-out-message.stories.js","sourceRoot":"","sources":["../../../../src/components/settings/opt-out-message/opt-out-message.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,aAAa,IAAI,SAAS,EAAE,MAAM,GAAG,CAAC;AAE/C,eAAe;IACX,KAAK,EAAE,uCAAuC;IAC9C,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,EAAE;CACjB,CAAC;AAEF,MAAM,WAAW;IAAjB;QACI;;;;mBAAO,IAAI,SAAS,CAAC;gBACjB,WAAW,EAAE,IAAI,eAAe,CAAC,UAAU,CAAC;gBAC5C,MAAM,EAAE,IAAI,eAAe,CAAC,mBAAmB,CAAC;gBAChD,IAAI,EAAE,IAAI,kBAAkB,CAAC,sBAAsB,CAAC;gBACpD,UAAU,EAAE,IAAI,eAAe,CAAC,KAAK,CAAC;gBACtC,WAAW,EAAE,IAAI,eAAe,CAAC,CAAC,CAAC;gBACnC,OAAO,EAAE,IAAI,kBAAkB,CAAC,IAAI,CAAC;gBACrC,sBAAsB,EAAE,IAAI,kBAAkB,CAAC,IAAI,CAAC;aACvD,CAAC;WAAC;IACP,CAAC;CAAA;AAED,MAAM,KAAK,GAAG,IAAI,WAAW,EAAE,CAAC;AAEhC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE;IAC9B,OAAO,KAAC,SAAS,IAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,GAAI,CAAC;AAClD,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: import("react").FC<import(".").SectionProps>;
|
|
4
|
-
parameters: {};
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const SettingsSection: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
//# sourceMappingURL=settings-section.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settings-section.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/settings/settings-section/settings-section.stories.tsx"],"names":[],"mappings":";;;;;AAGA,wBAIE;AAEF,eAAO,MAAM,eAAe,+CAM3B,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Headline } from '@servicetitan/design-system';
|
|
3
|
-
import { SettingsSection as Component } from '.';
|
|
4
|
-
export default {
|
|
5
|
-
title: 'MPA Components/settings/SettingsSection',
|
|
6
|
-
component: Component,
|
|
7
|
-
parameters: {},
|
|
8
|
-
};
|
|
9
|
-
export const SettingsSection = () => {
|
|
10
|
-
return (_jsx(Component, { title: "Hey! The test", children: _jsx(Headline, { children: "The body" }) }));
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=settings-section.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settings-section.stories.js","sourceRoot":"","sources":["../../../../src/components/settings/settings-section/settings-section.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,eAAe,IAAI,SAAS,EAAE,MAAM,GAAG,CAAC;AAEjD,eAAe;IACX,KAAK,EAAE,yCAAyC;IAChD,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,EAAE;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAChC,OAAO,CACH,KAAC,SAAS,IAAC,KAAK,EAAC,eAAe,YAC5B,KAAC,QAAQ,2BAAoB,GACrB,CACf,CAAC;AACN,CAAC,CAAC"}
|