@saasquatch/mint-components 1.15.0-4 → 1.15.0-6
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/dist/cjs/{GenericTableView-a9f4ba75.js → GenericTableView-f0e9c531.js} +2 -2
- package/dist/cjs/{ShadowViewAddon-9e7916d8.js → ShadowViewAddon-e666dc8b.js} +302 -318
- package/dist/cjs/{copy-text-view-c85acaaa.js → copy-text-view-7441206d.js} +53 -38
- package/dist/cjs/{global-0cf6d295.js → global-124aec2c.js} +67 -10
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +7 -44
- package/dist/cjs/{sqm-base-registration-form-view-8a2c8763.js → sqm-base-registration-form-view-1b2440c3.js} +1 -1
- package/dist/cjs/sqm-big-stat_41.cjs.entry.js +48 -9
- package/dist/cjs/sqm-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-invoice-table-view-dbf7a907.js → sqm-invoice-table-view-f369b0a6.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +2 -2
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-ab0fb983.js → sqm-portal-email-verification-view-f5ce25cc.js} +2 -2
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-forgot-password-view-78f19ef9.js → sqm-portal-forgot-password-view-b986086e.js} +1 -1
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-google-login.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-login-view-761a4d8e.js → sqm-portal-login-view-84e99287.js} +1 -1
- package/dist/cjs/{sqm-portal-profile-view-e3026b53.js → sqm-portal-profile-view-07d13061.js} +2 -2
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-registration-form-view-637a4bf4.js → sqm-portal-registration-form-view-4377d849.js} +1 -1
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-reset-password-view-fe602822.js → sqm-portal-reset-password-view-52fc50fe.js} +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-verify-email-view-7b678f34.js → sqm-portal-verify-email-view-4f837226.js} +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-qr-code-view-15dfc0b6.js → sqm-qr-code-view-3da9ed28.js} +2 -7
- package/dist/cjs/sqm-qr-code.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +3 -5
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +4 -4
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +29 -16
- package/dist/cjs/{sqm-text-span-view-0aa82125.js → sqm-text-span-view-56e48a78.js} +6 -6
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +1 -1
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +1 -1
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +1 -1
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +54 -54
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +25 -1
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.css +2 -2
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +6 -2
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +77 -2
- package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +2 -7
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +1 -1
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +0 -2
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +2 -2
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -1
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +12 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +54 -3
- package/dist/collection/components/sqm-task-card/DetailsView.js +1 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +139 -155
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +146 -0
- package/dist/collection/components/sqm-task-card/useTaskCard.js +10 -0
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +6 -6
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +1 -12
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +0 -15
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +1 -11
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +1 -2
- package/dist/collection/components/views/copy-text-view.js +53 -38
- package/dist/collection/global/mixins.js +2 -2
- package/dist/collection/global/styles.js +67 -10
- package/dist/collection/global/styles.ts +67 -10
- package/dist/collection/tables/GenericTableView.js +2 -2
- package/dist/esm/{GenericTableView-7b9087af.js → GenericTableView-e7addb2b.js} +2 -2
- package/dist/esm/{ShadowViewAddon-e350d540.js → ShadowViewAddon-7c10e0ee.js} +302 -318
- package/dist/esm/{copy-text-view-782137ba.js → copy-text-view-717050d5.js} +53 -38
- package/dist/esm/{global-1d207c9e.js → global-6dc825bc.js} +67 -10
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/sqm-banking-info-form_17.entry.js +7 -44
- package/dist/esm/{sqm-base-registration-form-view-593d4ac3.js → sqm-base-registration-form-view-31f1cb87.js} +1 -1
- package/dist/esm/sqm-big-stat_41.entry.js +48 -9
- package/dist/esm/sqm-email-verification.entry.js +2 -2
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/{sqm-invoice-table-view-e0c9772a.js → sqm-invoice-table-view-1bd8afaa.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
- package/dist/esm/sqm-pagination_3.entry.js +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-6c8bad0b.js → sqm-portal-email-verification-view-d96d6c43.js} +2 -2
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/{sqm-portal-forgot-password-view-3d3182f1.js → sqm-portal-forgot-password-view-50444a7c.js} +1 -1
- package/dist/esm/sqm-portal-forgot-password.entry.js +2 -2
- package/dist/esm/sqm-portal-google-login.entry.js +2 -2
- package/dist/esm/sqm-portal-google-registration-form.entry.js +3 -3
- package/dist/esm/{sqm-portal-login-view-7e49609a.js → sqm-portal-login-view-37c85d04.js} +1 -1
- package/dist/esm/{sqm-portal-profile-view-cbdeec1f.js → sqm-portal-profile-view-4ce1c7c3.js} +2 -2
- package/dist/esm/sqm-portal-profile.entry.js +3 -3
- package/dist/esm/{sqm-portal-registration-form-view-3c1f6000.js → sqm-portal-registration-form-view-21d57492.js} +1 -1
- package/dist/esm/sqm-portal-registration-form.entry.js +2 -2
- package/dist/esm/{sqm-portal-reset-password-view-54a8651f.js → sqm-portal-reset-password-view-b000ffc5.js} +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +2 -2
- package/dist/esm/{sqm-portal-verify-email-view-b12cb894.js → sqm-portal-verify-email-view-2983ba9b.js} +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +2 -2
- package/dist/esm/{sqm-qr-code-view-f1d0763b.js → sqm-qr-code-view-10b8b4cb.js} +2 -7
- package/dist/esm/sqm-qr-code.entry.js +1 -1
- package/dist/esm/sqm-referral-table_11.entry.js +3 -5
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +4 -4
- package/dist/esm/sqm-stencilbook.entry.js +29 -16
- package/dist/esm/{sqm-text-span-view-ca32495e.js → sqm-text-span-view-c577cc60.js} +6 -6
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{GenericTableView-7b9087af.js → GenericTableView-e7addb2b.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-7c10e0ee.js +1 -0
- package/dist/esm-es5/copy-text-view-717050d5.js +1 -0
- package/dist/esm-es5/{global-1d207c9e.js → global-6dc825bc.js} +4 -4
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
- package/dist/esm-es5/{sqm-base-registration-form-view-593d4ac3.js → sqm-base-registration-form-view-31f1cb87.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_41.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/{sqm-invoice-table-view-e0c9772a.js → sqm-invoice-table-view-1bd8afaa.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-6c8bad0b.js → sqm-portal-email-verification-view-d96d6c43.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-3d3182f1.js → sqm-portal-forgot-password-view-50444a7c.js} +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-login-view-7e49609a.js → sqm-portal-login-view-37c85d04.js} +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-cbdeec1f.js → sqm-portal-profile-view-4ce1c7c3.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-registration-form-view-3c1f6000.js → sqm-portal-registration-form-view-21d57492.js} +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-54a8651f.js → sqm-portal-reset-password-view-b000ffc5.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-b12cb894.js → sqm-portal-verify-email-view-2983ba9b.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/{sqm-qr-code-view-f1d0763b.js → sqm-qr-code-view-10b8b4cb.js} +1 -1
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-text-span-view-c577cc60.js +1 -0
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/mint-components/global/styles.ts +67 -10
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-2f101bae.entry.js → p-0559d880.entry.js} +1 -1
- package/dist/mint-components/{p-d929b9d5.system.js → p-11519322.system.js} +1 -1
- package/dist/mint-components/p-11542862.system.entry.js +1 -0
- package/dist/mint-components/{p-7a9290ba.js → p-20245645.js} +1 -1
- package/dist/mint-components/{p-9cb06082.system.entry.js → p-208d8d75.system.entry.js} +1 -1
- package/dist/mint-components/{p-4794641c.system.js → p-217514ac.system.js} +1 -1
- package/dist/mint-components/{p-19bc3406.system.entry.js → p-2b462e4f.system.entry.js} +1 -1
- package/dist/mint-components/p-2c07df76.entry.js +144 -0
- package/dist/mint-components/p-2e110002.system.js +1 -0
- package/dist/mint-components/{p-9bfd9bed.system.entry.js → p-345fd28e.system.entry.js} +1 -1
- package/dist/mint-components/{p-aad32fb6.system.js → p-38de17fa.system.js} +1 -1
- package/dist/mint-components/{p-c8147def.js → p-3a49811c.js} +1 -1
- package/dist/mint-components/{p-a2fde301.entry.js → p-3af1ec4c.entry.js} +1 -1
- package/dist/mint-components/{p-475245d1.system.js → p-44a82cf3.system.js} +1 -1
- package/dist/mint-components/p-4874193a.system.js +1 -0
- package/dist/mint-components/p-49206a9c.entry.js +1 -0
- package/dist/mint-components/{p-9db71c84.entry.js → p-49deb225.entry.js} +1 -1
- package/dist/mint-components/{p-90fc6774.system.entry.js → p-4b6f2eca.system.entry.js} +1 -1
- package/dist/mint-components/{p-15d77d0b.entry.js → p-4dbe2d08.entry.js} +1 -1
- package/dist/mint-components/{p-3a31cc83.entry.js → p-51495bc3.entry.js} +1 -1
- package/dist/mint-components/{p-e5d0375e.system.js → p-571e1427.system.js} +1 -1
- package/dist/mint-components/p-5ca8959a.system.entry.js +1 -0
- package/dist/mint-components/{p-492b70db.system.js → p-5dbe8b0a.system.js} +1 -1
- package/dist/mint-components/{p-9386ad84.system.entry.js → p-605c2904.system.entry.js} +1 -1
- package/dist/mint-components/{p-f1e72435.entry.js → p-619c2aa3.entry.js} +2 -2
- package/dist/mint-components/{p-91959fbe.js → p-69ac09d4.js} +1 -1
- package/dist/mint-components/p-6f34c2c2.entry.js +13 -0
- package/dist/mint-components/{p-99ad7d56.system.js → p-71d7c2a0.system.js} +1 -1
- package/dist/mint-components/{p-f87ae19e.entry.js → p-734695a0.entry.js} +6 -6
- package/dist/mint-components/{p-0c78815e.system.entry.js → p-7cbec088.system.entry.js} +1 -1
- package/dist/mint-components/{p-dbcb5359.js → p-7e3a84bc.js} +1 -1
- package/dist/mint-components/{p-b2bf509e.entry.js → p-7f1e10d3.entry.js} +2 -2
- package/dist/mint-components/{p-2da21ba4.entry.js → p-802b9f7e.entry.js} +1 -1
- package/dist/mint-components/{p-85671c3d.system.entry.js → p-8053366e.system.entry.js} +1 -1
- package/dist/mint-components/{p-5bdafc7e.system.entry.js → p-837dbf90.system.entry.js} +1 -1
- package/dist/mint-components/{p-d07f3090.entry.js → p-87c21535.entry.js} +1 -1
- package/dist/mint-components/p-893d7ab4.js +1 -0
- package/dist/mint-components/{p-c3bfb9c3.entry.js → p-8b36fe4f.entry.js} +5 -5
- package/dist/mint-components/p-8c12078e.js +394 -0
- package/dist/mint-components/{p-837a0fdd.js → p-8c494bf1.js} +1 -1
- package/dist/mint-components/{p-904ebcf6.system.entry.js → p-90421929.system.entry.js} +1 -1
- package/dist/mint-components/{p-709e1799.system.entry.js → p-9209a016.system.entry.js} +1 -1
- package/dist/mint-components/{p-b33b7eb5.system.js → p-93fed35b.system.js} +1 -1
- package/dist/mint-components/{p-9d3d4098.system.js → p-95ae4ab9.system.js} +1 -1
- package/dist/mint-components/{p-1673fae9.system.entry.js → p-a37541ae.system.entry.js} +1 -1
- package/dist/mint-components/{p-53730ffe.entry.js → p-a81b507f.entry.js} +3 -3
- package/dist/mint-components/{p-0d2d0b6d.entry.js → p-aaff68dc.entry.js} +1 -1
- package/dist/mint-components/{p-fbac722b.js → p-abefb7cc.js} +1 -1
- package/dist/mint-components/{p-f0772618.system.entry.js → p-ac9f4085.system.entry.js} +1 -1
- package/dist/mint-components/{p-6df88590.system.entry.js → p-ad985d37.system.entry.js} +1 -1
- package/dist/mint-components/{p-b75bb6e3.system.js → p-b5fb3826.system.js} +1 -1
- package/dist/mint-components/{p-0ebab63e.system.js → p-bd2a2546.system.js} +1 -1
- package/dist/mint-components/p-bdbbc673.system.entry.js +1 -0
- package/dist/mint-components/p-c3680c02.js +1 -0
- package/dist/mint-components/{p-441b60ac.system.entry.js → p-c6841ab8.system.entry.js} +1 -1
- package/dist/mint-components/{p-626e9e84.js → p-ccb5699b.js} +1 -1
- package/dist/mint-components/{p-7f80a9d7.entry.js → p-ccf8c9aa.entry.js} +1 -1
- package/dist/mint-components/p-cd63a965.system.entry.js +1 -0
- package/dist/mint-components/{p-e41aac34.js → p-cf8677ea.js} +1 -1
- package/dist/mint-components/{p-9b894557.entry.js → p-d3e5704c.entry.js} +1 -1
- package/dist/mint-components/p-d8cf46ba.system.js +1 -0
- package/dist/mint-components/{p-91ab3da1.js → p-dc52c36a.js} +1 -1
- package/dist/mint-components/{p-f7c99803.system.js → p-df89186f.system.js} +1 -1
- package/dist/mint-components/{p-6d4a313f.js → p-e01fe915.js} +19 -19
- package/dist/mint-components/{p-f940190a.js → p-e145e4f8.js} +1 -1
- package/dist/mint-components/{p-5c28406d.system.entry.js → p-e21a1cb8.system.entry.js} +1 -1
- package/dist/mint-components/p-eab1c9f3.js +1 -0
- package/dist/mint-components/{p-3ba1ab43.system.js → p-ed11966d.system.js} +1 -1
- package/dist/mint-components/p-eda5e82c.entry.js +1 -0
- package/dist/mint-components/{p-3f6e0197.system.entry.js → p-f2228da3.system.entry.js} +1 -1
- package/dist/mint-components/{p-380bfde1.entry.js → p-fd0a013f.entry.js} +1 -1
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +1 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +5 -0
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +3 -0
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +19 -2
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +1 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +30 -1
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +5 -0
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +32 -0
- package/dist/types/components/sqm-task-card/useTaskCard.d.ts +9 -0
- package/dist/types/components/views/copy-text-view.d.ts +5 -0
- package/dist/types/components.d.ts +132 -4
- package/dist/types/global/styles.d.ts +1 -1
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/ShadowViewAddon-e350d540.js +0 -1
- package/dist/esm-es5/copy-text-view-782137ba.js +0 -1
- package/dist/esm-es5/sqm-text-span-view-ca32495e.js +0 -1
- package/dist/mint-components/p-091e7ca2.system.entry.js +0 -1
- package/dist/mint-components/p-23379b5b.entry.js +0 -144
- package/dist/mint-components/p-2bcd406c.system.js +0 -1
- package/dist/mint-components/p-31015791.js +0 -1
- package/dist/mint-components/p-342bc70c.system.entry.js +0 -1
- package/dist/mint-components/p-3b90e01b.system.js +0 -1
- package/dist/mint-components/p-6a97b51d.entry.js +0 -13
- package/dist/mint-components/p-716d0275.entry.js +0 -1
- package/dist/mint-components/p-b207beeb.entry.js +0 -1
- package/dist/mint-components/p-babcdb1f.system.entry.js +0 -1
- package/dist/mint-components/p-c9f1dde7.js +0 -1
- package/dist/mint-components/p-e07bc6c4.system.js +0 -1
- package/dist/mint-components/p-f3e2098c.js +0 -394
- package/dist/mint-components/p-f56bedd5.js +0 -1
- package/dist/mint-components/p-f71ae358.system.entry.js +0 -1
|
@@ -6,165 +6,151 @@ import { luxonLocale } from "../../utils/utils";
|
|
|
6
6
|
import { Details } from "./DetailsView";
|
|
7
7
|
import { ProgressBarView } from "./progress-bar/progress-bar-view";
|
|
8
8
|
import * as SVGs from "./SVGs";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
color: "var(--sl-color-primary-600)",
|
|
50
|
-
border: "1px solid var(--sl-color-neutral-200)",
|
|
51
|
-
borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
|
|
52
|
-
borderBottom: "none",
|
|
53
|
-
background: "var(--sl-color-primary-50)",
|
|
54
|
-
fontWeight: "var(--sl-font-weight-semibold)",
|
|
55
|
-
lineHeight: "var(--sl-line-height-dense)",
|
|
56
|
-
"& .icon": {
|
|
57
|
-
position: "relative",
|
|
58
|
-
top: "0.1em",
|
|
59
|
-
marginRight: "var(--sl-spacing-small)",
|
|
60
|
-
color: "var(--sl-color-primary-500)",
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
Ended: {
|
|
64
|
-
fontSize: "var(--sl-font-size-small)",
|
|
65
|
-
padding: "var(--sl-spacing-medium)",
|
|
66
|
-
color: "var(--sl-color-warning-600)",
|
|
67
|
-
border: "1px solid var(--sl-color-neutral-200)",
|
|
68
|
-
borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
|
|
69
|
-
borderBottom: "none",
|
|
70
|
-
background: "var(--sl-color-warning-50)",
|
|
71
|
-
fontWeight: "var(--sl-font-weight-semibold)",
|
|
72
|
-
lineHeight: "var(--sl-line-height-dense)",
|
|
73
|
-
"& .icon": {
|
|
74
|
-
position: "relative",
|
|
75
|
-
top: "0.1em",
|
|
76
|
-
marginRight: "var(--sl-spacing-small)",
|
|
77
|
-
color: "var(--sl-color-warning-500)",
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
Header: {
|
|
81
|
-
display: "flex",
|
|
82
|
-
"& .icon": {
|
|
83
|
-
position: "relative",
|
|
84
|
-
top: "5%",
|
|
85
|
-
alignSelf: "center",
|
|
86
|
-
lineHeight: "0",
|
|
87
|
-
color: "var(--sl-color-primary-400)",
|
|
88
|
-
fontSize: "var(--sl-font-size-large)",
|
|
89
|
-
marginRight: "var(--sl-spacing-x-small)",
|
|
90
|
-
},
|
|
91
|
-
"& .value": {
|
|
92
|
-
alignSelf: "center",
|
|
93
|
-
fontSize: "var(--sl-font-size-x-large)",
|
|
94
|
-
fontWeight: "var(--sl-font-weight-semibold)",
|
|
95
|
-
color: "var(--sqm-text)",
|
|
96
|
-
lineHeight: "100%",
|
|
97
|
-
marginRight: "var(--sl-spacing-xx-small)",
|
|
98
|
-
},
|
|
99
|
-
"& .text": {
|
|
100
|
-
alignSelf: "end",
|
|
101
|
-
textTransform: "uppercase",
|
|
102
|
-
fontSize: "var(--sl-font-size-x-small)",
|
|
103
|
-
color: "var(--sqm-text)",
|
|
104
|
-
lineHeight: "var(--sl-font-size-medium)",
|
|
105
|
-
marginRight: "var(--sl-spacing-xx-small)",
|
|
9
|
+
export function TaskCardView(props) {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
const { callbacks, states, content } = props;
|
|
12
|
+
console.log("text color from the view ", content.textColor);
|
|
13
|
+
const style = {
|
|
14
|
+
TaskCard: {
|
|
15
|
+
display: "inline-block",
|
|
16
|
+
width: "100%",
|
|
17
|
+
"& .main": {
|
|
18
|
+
position: "relative",
|
|
19
|
+
boxSizing: "border-sizing",
|
|
20
|
+
background: content.backgroundColor || "var(--sl-color-neutral-0)",
|
|
21
|
+
border: `1px solid ${content.borderColor || "var(--sl-color-neutral-200)"}`,
|
|
22
|
+
borderRadius: "var(--sl-border-radius-large)",
|
|
23
|
+
boxShadow: "1px 2px 4px rgba(211, 211, 211, 0.2)",
|
|
24
|
+
fontSize: "var(--sl-font-size-small)",
|
|
25
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
26
|
+
color: content.textColor || "var(--sqm-text)",
|
|
27
|
+
},
|
|
28
|
+
"& .main.complete": {
|
|
29
|
+
background: content.backgroundColor || "var(--sl-color-primary-50)",
|
|
30
|
+
borderColor: content.borderColor || "var(--sl-color-primary-500)",
|
|
31
|
+
},
|
|
32
|
+
"& .main.expired": {
|
|
33
|
+
color: content.textColor || "var(--sqm-text)",
|
|
34
|
+
background: content.backgroundColor || "var(--sl-color-neutral-50)",
|
|
35
|
+
},
|
|
36
|
+
"& .title": {
|
|
37
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
38
|
+
color: content.textColor || "var(--sqm-text)",
|
|
39
|
+
},
|
|
40
|
+
"& .container": {
|
|
41
|
+
margin: "var(--sl-spacing-medium)",
|
|
42
|
+
},
|
|
43
|
+
"& .container.subdued": {
|
|
44
|
+
opacity: "0.45",
|
|
45
|
+
},
|
|
46
|
+
"& .container > div": {
|
|
47
|
+
margin: "var(--sl-spacing-medium) 0",
|
|
48
|
+
},
|
|
106
49
|
},
|
|
107
|
-
|
|
108
|
-
|
|
50
|
+
NotStarted: {
|
|
51
|
+
fontSize: "var(--sl-font-size-small)",
|
|
52
|
+
padding: "var(--sl-spacing-medium)",
|
|
53
|
+
color: content.textColor || "var(--sl-color-primary-600)",
|
|
54
|
+
border: `1px solid ${content.borderColor || "var(--sl-color-neutral-200)"}`,
|
|
55
|
+
borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
|
|
56
|
+
borderBottom: "none",
|
|
57
|
+
background: content.backgroundColor || "var(--sl-color-primary-50)",
|
|
109
58
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
"&[data-subdue] .success": {
|
|
118
|
-
color: "var(--sl-color-primary-300)",
|
|
119
|
-
},
|
|
120
|
-
"&[data-subdue] .neutral": {
|
|
121
|
-
color: "var(--sqm-text)",
|
|
122
|
-
},
|
|
123
|
-
display: "flex",
|
|
124
|
-
"& .icon": {
|
|
125
|
-
fontSize: "var(--sl-font-size-xx-small)",
|
|
126
|
-
marginRight: "var(--sl-spacing-xx-small)",
|
|
127
|
-
verticalAlign: "middle",
|
|
128
|
-
},
|
|
129
|
-
"& .text": {
|
|
130
|
-
marginTop: "auto",
|
|
131
|
-
verticalAlign: "text-bottom",
|
|
132
|
-
fontSize: "var(--sl-font-size-x-small)",
|
|
133
|
-
color: "var(--sqm-text)",
|
|
59
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
60
|
+
"& .icon": {
|
|
61
|
+
position: "relative",
|
|
62
|
+
top: "0.1em",
|
|
63
|
+
marginRight: "var(--sl-spacing-small)",
|
|
64
|
+
color: content.textColor || "var(--sqm-text)",
|
|
65
|
+
},
|
|
134
66
|
},
|
|
135
|
-
|
|
136
|
-
|
|
67
|
+
Ended: {
|
|
68
|
+
fontSize: "var(--sl-font-size-small)",
|
|
69
|
+
padding: "var(--sl-spacing-medium)",
|
|
70
|
+
color: content.textColor || "var(--sl-color-warning-600)",
|
|
71
|
+
border: `1px solid ${content.borderColor || "var(--sl-color-neutral-200)"}`,
|
|
72
|
+
borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
|
|
73
|
+
borderBottom: "none",
|
|
74
|
+
background: content.backgroundColor || "var(--sl-color-warning-50)",
|
|
137
75
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
76
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
77
|
+
"& .icon": {
|
|
78
|
+
position: "relative",
|
|
79
|
+
top: "0.1em",
|
|
80
|
+
marginRight: "var(--sl-spacing-small)",
|
|
81
|
+
color: content.textColor || "var(--sqm-text)",
|
|
82
|
+
},
|
|
138
83
|
},
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
84
|
+
Header: {
|
|
85
|
+
display: "flex",
|
|
86
|
+
"& .icon": {
|
|
87
|
+
position: "relative",
|
|
88
|
+
top: "5%",
|
|
89
|
+
alignSelf: "center",
|
|
90
|
+
lineHeight: "0",
|
|
91
|
+
color: content.textColor || "var(--sqm-text)",
|
|
92
|
+
fontSize: "var(--sl-font-size-large)",
|
|
93
|
+
marginRight: "var(--sl-spacing-x-small)",
|
|
144
94
|
},
|
|
145
|
-
"
|
|
146
|
-
|
|
147
|
-
|
|
95
|
+
"& .value": {
|
|
96
|
+
alignSelf: "center",
|
|
97
|
+
fontSize: "var(--sl-font-size-x-large)",
|
|
98
|
+
fontWeight: "var(--sl-font-weight-semibold)",
|
|
99
|
+
color: content.textColor || "var(--sqm-text)",
|
|
100
|
+
lineHeight: "100%",
|
|
101
|
+
marginRight: "var(--sl-spacing-xx-small)",
|
|
148
102
|
},
|
|
149
|
-
"
|
|
150
|
-
|
|
151
|
-
|
|
103
|
+
"& .text": {
|
|
104
|
+
alignSelf: "end",
|
|
105
|
+
textTransform: "uppercase",
|
|
106
|
+
fontSize: "var(--sl-font-size-x-small)",
|
|
107
|
+
color: content.textColor || "var(--sqm-text)",
|
|
108
|
+
lineHeight: "var(--sl-font-size-medium)",
|
|
109
|
+
marginRight: "var(--sl-spacing-xx-small)",
|
|
110
|
+
},
|
|
111
|
+
"& .end": {
|
|
112
|
+
color: content.textColor || "var(--sl-color-warning-500)",
|
|
113
|
+
fontWeight: "var(--sl-font-weight-semibold)",
|
|
114
|
+
marginBottom: "var(--sl-spacing-xx-small)",
|
|
115
|
+
},
|
|
116
|
+
"& .neutral": {
|
|
117
|
+
color: content.textColor || "var(--sl-color-neutral-400)",
|
|
152
118
|
},
|
|
153
119
|
},
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
120
|
+
Footer: {
|
|
121
|
+
"&[data-subdue] .success": {
|
|
122
|
+
color: content.textColor || "var(--sl-color-primary-300)",
|
|
123
|
+
},
|
|
124
|
+
"&[data-subdue] .neutral": {
|
|
125
|
+
color: content.textColor || "var(--sqm-text)",
|
|
126
|
+
},
|
|
127
|
+
display: "flex",
|
|
128
|
+
"& .icon": {
|
|
129
|
+
fontSize: "var(--sl-font-size-xx-small)",
|
|
130
|
+
marginRight: "var(--sl-spacing-xx-small)",
|
|
131
|
+
verticalAlign: "middle",
|
|
132
|
+
},
|
|
133
|
+
"& .text": {
|
|
134
|
+
marginTop: "auto",
|
|
135
|
+
verticalAlign: "text-bottom",
|
|
136
|
+
fontSize: "var(--sl-font-size-x-small)",
|
|
137
|
+
color: content.textColor || "var(--sqm-text)",
|
|
138
|
+
},
|
|
139
|
+
"& .success": {
|
|
140
|
+
color: content.textColor || "var(--sqm-text)",
|
|
141
|
+
fontWeight: "var(--sl-font-weight-semibold)",
|
|
142
|
+
},
|
|
143
|
+
"& .neutral": {
|
|
144
|
+
color: content.textColor || "var(--sqm-text)",
|
|
145
|
+
},
|
|
146
|
+
"& .datetime": {
|
|
147
|
+
display: "block",
|
|
148
|
+
marginTop: "var(--sl-spacing-xx-small)",
|
|
149
|
+
},
|
|
160
150
|
},
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
const
|
|
164
|
-
const styleString = sheet.toString();
|
|
165
|
-
export function TaskCardView(props) {
|
|
166
|
-
var _a, _b;
|
|
167
|
-
const { callbacks, states, content } = props;
|
|
151
|
+
};
|
|
152
|
+
const sheet = createStyleSheet(style);
|
|
153
|
+
const contenttring = sheet.toString();
|
|
168
154
|
const dateStart = content.rewardDuration &&
|
|
169
155
|
DateTime.fromISO(content.rewardDuration.split("/")[0]);
|
|
170
156
|
const dateEnd = content.rewardDuration &&
|
|
@@ -199,7 +185,7 @@ export function TaskCardView(props) {
|
|
|
199
185
|
`;
|
|
200
186
|
return (h("div", { class: sheet.classes.TaskCard, part: "sqm-base" },
|
|
201
187
|
h("style", { type: "text/css" },
|
|
202
|
-
|
|
188
|
+
contenttring,
|
|
203
189
|
vanillaStyle),
|
|
204
190
|
!states.loading && taskNotStarted && (h("div", { class: sheet.classes.NotStarted },
|
|
205
191
|
h("span", { class: "icon" },
|
|
@@ -277,11 +263,9 @@ export function TaskCardView(props) {
|
|
|
277
263
|
.setLocale(luxonLocale(states.locale))
|
|
278
264
|
.toLocaleString(DateTime.DATETIME_MED),
|
|
279
265
|
})))),
|
|
280
|
-
content.hideButton ? ("") : (h("sl-button", { exportparts:
|
|
281
|
-
? "
|
|
282
|
-
: taskComplete
|
|
283
|
-
? "action disabled"
|
|
284
|
-
: "action", type: "primary", size: "small", onClick: callbacks.onClick, loading: states.loadingEvent, disabled: taskComplete || taskUnavailable, style: {
|
|
266
|
+
content.hideButton ? ("") : (h("sl-button", { exportparts: `base: ${content.buttonStyle === "primary"
|
|
267
|
+
? "primary"
|
|
268
|
+
: "secondary"}button-base`, id: "sl-button", type: content.buttonStyle === "primary" ? "primary" : "default", size: "small", onClick: callbacks.onClick, loading: states.loadingEvent, disabled: taskComplete || taskUnavailable, style: {
|
|
285
269
|
opacity: taskComplete || taskUnavailable ? "0.45" : "1",
|
|
286
270
|
} }, content.buttonText)))))))));
|
|
287
271
|
}
|
|
@@ -124,6 +124,14 @@ export class TaskCard {
|
|
|
124
124
|
* @uiGroup Button
|
|
125
125
|
*/
|
|
126
126
|
this.hideButton = false;
|
|
127
|
+
/**
|
|
128
|
+
* @uiName Button Style
|
|
129
|
+
* @uiType string
|
|
130
|
+
* @uiEnum ["primary", "secondary"]
|
|
131
|
+
* @uiEnumNames ["Primary", "Secondary"]
|
|
132
|
+
* @uiGroup Style
|
|
133
|
+
*/
|
|
134
|
+
this.buttonStyle = "primary";
|
|
127
135
|
withHooks(this);
|
|
128
136
|
}
|
|
129
137
|
disconnectedCallback() { }
|
|
@@ -135,6 +143,7 @@ export class TaskCard {
|
|
|
135
143
|
const { states, callbacks } = isDemo()
|
|
136
144
|
? useTaskCardDemo(this)
|
|
137
145
|
: useTaskCard(this);
|
|
146
|
+
console.log("button style from controller", this.buttonStyle);
|
|
138
147
|
return (h(TaskCardView, { callbacks: callbacks, states: {
|
|
139
148
|
loading,
|
|
140
149
|
loadingEvent: states.loadingEvent,
|
|
@@ -733,6 +742,143 @@ export class TaskCard {
|
|
|
733
742
|
"reflect": false,
|
|
734
743
|
"defaultValue": "false"
|
|
735
744
|
},
|
|
745
|
+
"backgroundColor": {
|
|
746
|
+
"type": "string",
|
|
747
|
+
"mutable": false,
|
|
748
|
+
"complexType": {
|
|
749
|
+
"original": "string",
|
|
750
|
+
"resolved": "string",
|
|
751
|
+
"references": {}
|
|
752
|
+
},
|
|
753
|
+
"required": false,
|
|
754
|
+
"optional": true,
|
|
755
|
+
"docs": {
|
|
756
|
+
"tags": [{
|
|
757
|
+
"text": "Card Background color",
|
|
758
|
+
"name": "uiName"
|
|
759
|
+
}, {
|
|
760
|
+
"text": "color",
|
|
761
|
+
"name": "uiWidget"
|
|
762
|
+
}, {
|
|
763
|
+
"text": "Style",
|
|
764
|
+
"name": "uiGroup"
|
|
765
|
+
}],
|
|
766
|
+
"text": ""
|
|
767
|
+
},
|
|
768
|
+
"attribute": "background-color",
|
|
769
|
+
"reflect": false
|
|
770
|
+
},
|
|
771
|
+
"textColor": {
|
|
772
|
+
"type": "string",
|
|
773
|
+
"mutable": false,
|
|
774
|
+
"complexType": {
|
|
775
|
+
"original": "string",
|
|
776
|
+
"resolved": "string",
|
|
777
|
+
"references": {}
|
|
778
|
+
},
|
|
779
|
+
"required": false,
|
|
780
|
+
"optional": true,
|
|
781
|
+
"docs": {
|
|
782
|
+
"tags": [{
|
|
783
|
+
"text": "Text color",
|
|
784
|
+
"name": "uiName"
|
|
785
|
+
}, {
|
|
786
|
+
"text": "color",
|
|
787
|
+
"name": "uiWidget"
|
|
788
|
+
}, {
|
|
789
|
+
"text": "Style",
|
|
790
|
+
"name": "uiGroup"
|
|
791
|
+
}],
|
|
792
|
+
"text": ""
|
|
793
|
+
},
|
|
794
|
+
"attribute": "text-color",
|
|
795
|
+
"reflect": false
|
|
796
|
+
},
|
|
797
|
+
"borderColor": {
|
|
798
|
+
"type": "string",
|
|
799
|
+
"mutable": false,
|
|
800
|
+
"complexType": {
|
|
801
|
+
"original": "string",
|
|
802
|
+
"resolved": "string",
|
|
803
|
+
"references": {}
|
|
804
|
+
},
|
|
805
|
+
"required": false,
|
|
806
|
+
"optional": true,
|
|
807
|
+
"docs": {
|
|
808
|
+
"tags": [{
|
|
809
|
+
"text": "Border color",
|
|
810
|
+
"name": "uiName"
|
|
811
|
+
}, {
|
|
812
|
+
"text": "color",
|
|
813
|
+
"name": "uiWidget"
|
|
814
|
+
}, {
|
|
815
|
+
"text": "Style",
|
|
816
|
+
"name": "uiGroup"
|
|
817
|
+
}],
|
|
818
|
+
"text": ""
|
|
819
|
+
},
|
|
820
|
+
"attribute": "border-color",
|
|
821
|
+
"reflect": false
|
|
822
|
+
},
|
|
823
|
+
"borderRadius": {
|
|
824
|
+
"type": "number",
|
|
825
|
+
"mutable": false,
|
|
826
|
+
"complexType": {
|
|
827
|
+
"original": "number",
|
|
828
|
+
"resolved": "number",
|
|
829
|
+
"references": {}
|
|
830
|
+
},
|
|
831
|
+
"required": false,
|
|
832
|
+
"optional": true,
|
|
833
|
+
"docs": {
|
|
834
|
+
"tags": [{
|
|
835
|
+
"text": "Border radius",
|
|
836
|
+
"name": "uiName"
|
|
837
|
+
}, {
|
|
838
|
+
"text": "number",
|
|
839
|
+
"name": "uiType"
|
|
840
|
+
}, {
|
|
841
|
+
"text": "Style",
|
|
842
|
+
"name": "uiGroup"
|
|
843
|
+
}],
|
|
844
|
+
"text": ""
|
|
845
|
+
},
|
|
846
|
+
"attribute": "border-radius",
|
|
847
|
+
"reflect": false
|
|
848
|
+
},
|
|
849
|
+
"buttonStyle": {
|
|
850
|
+
"type": "string",
|
|
851
|
+
"mutable": false,
|
|
852
|
+
"complexType": {
|
|
853
|
+
"original": "\"primary\" | \"secondary\"",
|
|
854
|
+
"resolved": "\"primary\" | \"secondary\"",
|
|
855
|
+
"references": {}
|
|
856
|
+
},
|
|
857
|
+
"required": false,
|
|
858
|
+
"optional": true,
|
|
859
|
+
"docs": {
|
|
860
|
+
"tags": [{
|
|
861
|
+
"text": "Button Style",
|
|
862
|
+
"name": "uiName"
|
|
863
|
+
}, {
|
|
864
|
+
"text": "string",
|
|
865
|
+
"name": "uiType"
|
|
866
|
+
}, {
|
|
867
|
+
"text": "[\"primary\", \"secondary\"]",
|
|
868
|
+
"name": "uiEnum"
|
|
869
|
+
}, {
|
|
870
|
+
"text": "[\"Primary\", \"Secondary\"]",
|
|
871
|
+
"name": "uiEnumNames"
|
|
872
|
+
}, {
|
|
873
|
+
"text": "Style",
|
|
874
|
+
"name": "uiGroup"
|
|
875
|
+
}],
|
|
876
|
+
"text": ""
|
|
877
|
+
},
|
|
878
|
+
"attribute": "button-style",
|
|
879
|
+
"reflect": false,
|
|
880
|
+
"defaultValue": "\"primary\""
|
|
881
|
+
},
|
|
736
882
|
"demoData": {
|
|
737
883
|
"type": "unknown",
|
|
738
884
|
"mutable": false,
|
|
@@ -36,8 +36,18 @@ export function useTaskCard(props) {
|
|
|
36
36
|
function onClick() {
|
|
37
37
|
props.eventKey ? sendEvent(props.eventKey) : openLink();
|
|
38
38
|
}
|
|
39
|
+
const styles = {
|
|
40
|
+
card: {
|
|
41
|
+
backgroundColor: props.backgroundColor,
|
|
42
|
+
textColor: props.textColor,
|
|
43
|
+
borderColor: props.borderColor,
|
|
44
|
+
borderRadius: props.borderRadius,
|
|
45
|
+
buttonStyle: props.buttonStyle,
|
|
46
|
+
},
|
|
47
|
+
};
|
|
39
48
|
return {
|
|
40
49
|
states: { loadingEvent, locale },
|
|
50
|
+
styles,
|
|
41
51
|
callbacks: { sendEvent, onClick },
|
|
42
52
|
};
|
|
43
53
|
}
|
|
@@ -4,37 +4,37 @@ const style = {
|
|
|
4
4
|
p: {
|
|
5
5
|
"font-size": "var(--sl-font-size-small)",
|
|
6
6
|
"font-weight": "400",
|
|
7
|
-
color: "var(--
|
|
7
|
+
color: "var(--sq-text)",
|
|
8
8
|
margin: "0",
|
|
9
9
|
},
|
|
10
10
|
subtext: {
|
|
11
11
|
"font-size": "var(--sl-font-size-x-small)",
|
|
12
12
|
"font-weight": "400",
|
|
13
|
-
color: "var(--
|
|
13
|
+
color: "var(--sqm-text-subdued)",
|
|
14
14
|
margin: "0",
|
|
15
15
|
},
|
|
16
16
|
h1: {
|
|
17
17
|
"font-size": "var(--sl-font-size-xx-large)",
|
|
18
18
|
"font-weight": "600",
|
|
19
|
-
color: "var(--
|
|
19
|
+
color: "var(--sq-text)",
|
|
20
20
|
margin: "0",
|
|
21
21
|
},
|
|
22
22
|
h2: {
|
|
23
23
|
"font-size": "var(--sl-font-size-x-large)",
|
|
24
24
|
"font-weight": "600",
|
|
25
|
-
color: "var(--
|
|
25
|
+
color: "var(--sq-text)",
|
|
26
26
|
margin: "0",
|
|
27
27
|
},
|
|
28
28
|
h3: {
|
|
29
29
|
"font-size": "var(--sl-font-size-large)",
|
|
30
30
|
"font-weight": "600",
|
|
31
|
-
color: "var(--
|
|
31
|
+
color: "var(--sq-text)",
|
|
32
32
|
margin: "0",
|
|
33
33
|
},
|
|
34
34
|
h4: {
|
|
35
35
|
"font-size": "13px",
|
|
36
36
|
"font-weight": "600",
|
|
37
|
-
color: "var(--
|
|
37
|
+
color: "var(--sq-text)",
|
|
38
38
|
margin: "0",
|
|
39
39
|
},
|
|
40
40
|
};
|
package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js
CHANGED
|
@@ -43,11 +43,6 @@ const style = {
|
|
|
43
43
|
DescriptionText: {
|
|
44
44
|
color: "var(--sl-color-neutral-500)",
|
|
45
45
|
},
|
|
46
|
-
SecondaryBtn: {
|
|
47
|
-
"&::part(base)": {
|
|
48
|
-
color: "var(--sl-color-gray-800) !important",
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
46
|
AlertContainer: {
|
|
52
47
|
"&::part(base)": {
|
|
53
48
|
backgroundColor: "var(--sl-color-red-100)",
|
|
@@ -160,12 +155,6 @@ const vanillaStyle = `
|
|
|
160
155
|
font-weight: 600
|
|
161
156
|
}
|
|
162
157
|
|
|
163
|
-
p {
|
|
164
|
-
line-height: 18px;
|
|
165
|
-
color: var(--sl-color-gray-800);
|
|
166
|
-
font-size: var(--sl-font-size-small);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
158
|
/* this class is dynamically applied in controller */
|
|
170
159
|
.error-input::part(base) {
|
|
171
160
|
border: 1px solid var(--sl-color-danger-500);
|
|
@@ -271,5 +260,5 @@ export const BankingInfoFormView = (props) => {
|
|
|
271
260
|
: slots.paymentFixedDaySelectSlot))))),
|
|
272
261
|
h("div", { class: classes.BtnContainer },
|
|
273
262
|
h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
274
|
-
!states.hideBackButton && (h("sl-button", { exportparts: "base: secondarybutton-base",
|
|
263
|
+
!states.hideBackButton && (h("sl-button", { exportparts: "base: secondarybutton-base", type: "text", onClick: callbacks.onBack }, text.backButton))))));
|
|
275
264
|
};
|
|
@@ -43,15 +43,6 @@ const style = {
|
|
|
43
43
|
BoldText: {
|
|
44
44
|
fontWeight: "bold",
|
|
45
45
|
},
|
|
46
|
-
SecondaryBtn: {
|
|
47
|
-
"&::part(base)": {
|
|
48
|
-
color: "var(--sl-color-gray-800) !important",
|
|
49
|
-
},
|
|
50
|
-
"&::part(label)": {
|
|
51
|
-
padding: "0px",
|
|
52
|
-
margin: "0px",
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
46
|
ErrorAlertContainer: {
|
|
56
47
|
"&::part(base)": {
|
|
57
48
|
backgroundColor: "var(--sl-color-red-100)",
|
|
@@ -127,12 +118,6 @@ const vanillaStyle = `
|
|
|
127
118
|
box-sizing: border-box;
|
|
128
119
|
}
|
|
129
120
|
|
|
130
|
-
p {
|
|
131
|
-
line-height: 18px;
|
|
132
|
-
color: var(--sl-color-gray-800);
|
|
133
|
-
font-size: var(--sl-font-size-small);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
121
|
a {
|
|
137
122
|
cursor: pointer;
|
|
138
123
|
}
|
package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js
CHANGED
|
@@ -56,11 +56,6 @@ const style = {
|
|
|
56
56
|
DescriptionText: {
|
|
57
57
|
color: "var(--sl-color-neutral-500)",
|
|
58
58
|
},
|
|
59
|
-
SecondaryBtn: {
|
|
60
|
-
"&::part(base)": {
|
|
61
|
-
color: "var(--sl-color-gray-800) !important",
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
59
|
AlertContainer: {
|
|
65
60
|
"&::part(base)": {
|
|
66
61
|
backgroundColor: "var(--sl-color-red-100)",
|
|
@@ -120,11 +115,6 @@ const vanillaStyle = `
|
|
|
120
115
|
box-sizing: border-box;
|
|
121
116
|
}
|
|
122
117
|
|
|
123
|
-
p {
|
|
124
|
-
line-height: 18px;
|
|
125
|
-
color: var(--sl-color-gray-800);
|
|
126
|
-
font-size: var(--sl-font-size-small);
|
|
127
|
-
}
|
|
128
118
|
`;
|
|
129
119
|
export const IndirectTaxFormView = (props) => {
|
|
130
120
|
var _a;
|
|
@@ -200,5 +190,5 @@ export const IndirectTaxFormView = (props) => {
|
|
|
200
190
|
})),
|
|
201
191
|
h("div", { class: classes.BtnContainer },
|
|
202
192
|
h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
203
|
-
h("sl-button", {
|
|
193
|
+
h("sl-button", { type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
204
194
|
};
|