@saasquatch/mint-components 2.0.5 → 2.0.6-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/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +73 -4
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-user-info-form-view-c14ba407.js → sqm-user-info-form-view-7446bcdd.js} +60 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +71 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +60 -0
- package/dist/esm/sqm-banking-info-form_10.entry.js +73 -4
- package/dist/esm/sqm-stencilbook.entry.js +1 -1
- package/dist/esm/{sqm-user-info-form-view-9a3048d9.js → sqm-user-info-form-view-0b068018.js} +60 -0
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/{sqm-user-info-form-view-9a3048d9.js → sqm-user-info-form-view-0b068018.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-9a172a0f.entry.js → p-00bd5ef7.entry.js} +7 -7
- package/dist/mint-components/{p-f6eae77c.js → p-7c1d1008.js} +1 -1
- package/dist/mint-components/p-947bacd1.system.js +1 -1
- package/dist/mint-components/{p-e115d0a2.entry.js → p-b526f92f.entry.js} +1 -1
- package/dist/mint-components/{p-28e23d75.system.entry.js → p-c2a78b8f.system.entry.js} +1 -1
- package/dist/mint-components/{p-79c0db17.system.entry.js → p-c9dd9488.system.entry.js} +1 -1
- package/dist/mint-components/{p-720f03e2.system.js → p-f8a03278.system.js} +1 -1
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/package.json +1 -1
- package/shoelace/assets/icons/twitter-x.svg +4 -0
- package/docs/picklesdoc--2024-01-15--11-20-00.xlsx +0 -0
- package/docs/picklesdoc--2024-01-15--11-24-04.xlsx +0 -0
|
@@ -16,7 +16,7 @@ const reRender = require('./re-render-d516138a.js');
|
|
|
16
16
|
const useChildElements = require('./useChildElements-966c9041.js');
|
|
17
17
|
const luxon = require('./luxon-949beaf2.js');
|
|
18
18
|
const useReferralTable = require('./useReferralTable-90d4d6e9.js');
|
|
19
|
-
const sqmUserInfoFormView = require('./sqm-user-info-form-view-
|
|
19
|
+
const sqmUserInfoFormView = require('./sqm-user-info-form-view-7446bcdd.js');
|
|
20
20
|
const data = require('./data-24028727.js');
|
|
21
21
|
const keys = require('./keys-cff24974.js');
|
|
22
22
|
const usePayoutStatus = require('./usePayoutStatus-98f2ca76.js');
|
|
@@ -3779,6 +3779,7 @@ const style$5 = {
|
|
|
3779
3779
|
marginBottom: "var(--sl-spacing-xx-small)",
|
|
3780
3780
|
margin: "0",
|
|
3781
3781
|
display: "flex",
|
|
3782
|
+
alignItems: "center",
|
|
3782
3783
|
gap: "var(--sl-spacing-x-small)",
|
|
3783
3784
|
"&::part(base)": {
|
|
3784
3785
|
color: "var(--sqm-text)",
|
|
@@ -3860,6 +3861,9 @@ const style$5 = {
|
|
|
3860
3861
|
display: "flex",
|
|
3861
3862
|
textAlign: "center",
|
|
3862
3863
|
width: "250px",
|
|
3864
|
+
"&::part(body)": {
|
|
3865
|
+
pointerEvents: "auto",
|
|
3866
|
+
},
|
|
3863
3867
|
},
|
|
3864
3868
|
ToolTip: {
|
|
3865
3869
|
top: "6px",
|
|
@@ -3938,6 +3942,42 @@ const style$5 = {
|
|
|
3938
3942
|
gap: "var(--sl-spacing-medium)",
|
|
3939
3943
|
flexWrap: "wrap",
|
|
3940
3944
|
},
|
|
3945
|
+
DropdownTooltipContainer: {
|
|
3946
|
+
top: "-4px",
|
|
3947
|
+
"&::part(panel)": {
|
|
3948
|
+
boxShadow: "none",
|
|
3949
|
+
border: "none",
|
|
3950
|
+
},
|
|
3951
|
+
},
|
|
3952
|
+
DropdownContent: {
|
|
3953
|
+
padding: "var(--sl-spacing-xxx-small) var(--sl-spacing-x-small)",
|
|
3954
|
+
fontSize: "var(--sl-font-size-small)",
|
|
3955
|
+
fontFamily: "var(--sl-font-sans)",
|
|
3956
|
+
fontWeight: "var(--sl-font-weight-normal)",
|
|
3957
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
3958
|
+
minWidth: "225px",
|
|
3959
|
+
backgroundColor: "var(--sl-color-gray-900)",
|
|
3960
|
+
color: "var(--sl-color-white)",
|
|
3961
|
+
borderRadius: "var(--sl-border-radius-medium)",
|
|
3962
|
+
position: "relative",
|
|
3963
|
+
marginLeft: "5px",
|
|
3964
|
+
},
|
|
3965
|
+
DropdownArrow: {
|
|
3966
|
+
position: "absolute",
|
|
3967
|
+
left: "-5px",
|
|
3968
|
+
top: "50%",
|
|
3969
|
+
transform: "translateY(-50%)",
|
|
3970
|
+
width: "0",
|
|
3971
|
+
height: "0",
|
|
3972
|
+
borderTop: "5px solid transparent",
|
|
3973
|
+
borderBottom: "5px solid transparent",
|
|
3974
|
+
borderRight: "5px solid var(--sl-color-gray-900)",
|
|
3975
|
+
zIndex: "1",
|
|
3976
|
+
},
|
|
3977
|
+
DropdownLink: {
|
|
3978
|
+
color: "var(--sl-color-white)",
|
|
3979
|
+
textDecoration: "underline",
|
|
3980
|
+
},
|
|
3941
3981
|
};
|
|
3942
3982
|
const sheet$4 = JSS.createStyleSheet(style$5);
|
|
3943
3983
|
const styleString$4 = sheet$4.toString();
|
|
@@ -4253,6 +4293,27 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4253
4293
|
}
|
|
4254
4294
|
};
|
|
4255
4295
|
const alertInfo = getAlert(states.payoutStatus);
|
|
4296
|
+
const dropdownHover = (el) => {
|
|
4297
|
+
var _a;
|
|
4298
|
+
if (!el)
|
|
4299
|
+
return;
|
|
4300
|
+
const trigger = el.querySelector('[slot="trigger"]');
|
|
4301
|
+
const panel = (_a = el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".dropdown__panel");
|
|
4302
|
+
if (!trigger || !panel)
|
|
4303
|
+
return;
|
|
4304
|
+
let hideTimeout;
|
|
4305
|
+
const show = () => {
|
|
4306
|
+
clearTimeout(hideTimeout);
|
|
4307
|
+
el.show();
|
|
4308
|
+
};
|
|
4309
|
+
const scheduleHide = () => {
|
|
4310
|
+
hideTimeout = setTimeout(() => el.hide(), 100);
|
|
4311
|
+
};
|
|
4312
|
+
trigger.addEventListener("mouseenter", show);
|
|
4313
|
+
trigger.addEventListener("mouseleave", scheduleHide);
|
|
4314
|
+
panel.addEventListener("mouseenter", show);
|
|
4315
|
+
panel.addEventListener("mouseleave", scheduleHide);
|
|
4316
|
+
};
|
|
4256
4317
|
return (index.h("div", null,
|
|
4257
4318
|
index.h("div", null,
|
|
4258
4319
|
index.h("style", { type: "text/css" },
|
|
@@ -4316,8 +4377,16 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4316
4377
|
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null,
|
|
4317
4378
|
index.h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
|
|
4318
4379
|
text.indirectTaxInfoSectionHeader,
|
|
4319
|
-
index.h("sl-
|
|
4320
|
-
index.h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip })
|
|
4380
|
+
index.h("sl-dropdown", { placement: "right", distance: 1, ref: dropdownHover, class: sheet$4.classes.DropdownTooltipContainer },
|
|
4381
|
+
index.h("sl-icon", { slot: "trigger", name: "info-circle", class: sheet$4.classes.ToolTip, style: { cursor: "pointer" } }),
|
|
4382
|
+
index.h("div", { class: sheet$4.classes.DropdownContent },
|
|
4383
|
+
index.h("div", { class: sheet$4.classes.DropdownArrow }),
|
|
4384
|
+
global.intl.formatMessage({
|
|
4385
|
+
id: "indirectTaxTooltipSupport",
|
|
4386
|
+
defaultMessage: text.indirectTaxTooltipSupport,
|
|
4387
|
+
}, {
|
|
4388
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com`, class: sheet$4.classes.DropdownLink }, text.supportLink)),
|
|
4389
|
+
})))),
|
|
4321
4390
|
index.h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
|
|
4322
4391
|
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
|
|
4323
4392
|
id: "notRegisteredForTax",
|
|
@@ -4612,7 +4681,7 @@ const TaxAndCashDashboard = class {
|
|
|
4612
4681
|
* @uiName Indirect tax tooltip
|
|
4613
4682
|
* @uiWidget textArea
|
|
4614
4683
|
*/
|
|
4615
|
-
this.indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our
|
|
4684
|
+
this.indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
4616
4685
|
/**
|
|
4617
4686
|
* Displayed to participants who have submitted their indirect tax information.
|
|
4618
4687
|
*
|
|
@@ -36,7 +36,7 @@ require('./ErrorView-3f91e5ab.js');
|
|
|
36
36
|
const sqmQrCodeView = require('./sqm-qr-code-view-4ccf89da.js');
|
|
37
37
|
const ShadowViewAddon = require('./ShadowViewAddon-ae3a32c3.js');
|
|
38
38
|
const sqmPortalContainerView = require('./sqm-portal-container-view-07e4343f.js');
|
|
39
|
-
const sqmUserInfoFormView = require('./sqm-user-info-form-view-
|
|
39
|
+
const sqmUserInfoFormView = require('./sqm-user-info-form-view-7446bcdd.js');
|
|
40
40
|
const data = require('./data-24028727.js');
|
|
41
41
|
const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-2006001f.js');
|
|
42
42
|
|
package/dist/cjs/{sqm-user-info-form-view-c14ba407.js → sqm-user-info-form-view-7446bcdd.js}
RENAMED
|
@@ -1688,6 +1688,35 @@ const style$2 = {
|
|
|
1688
1688
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
1689
1689
|
},
|
|
1690
1690
|
},
|
|
1691
|
+
DropdownContent: {
|
|
1692
|
+
padding: "var(--sl-spacing-xxx-small) var(--sl-spacing-x-small)",
|
|
1693
|
+
fontSize: "var(--sl-font-size-small)",
|
|
1694
|
+
fontFamily: "var(--sl-font-sans)",
|
|
1695
|
+
fontWeight: "var(--sl-font-weight-normal)",
|
|
1696
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
1697
|
+
minWidth: "225px",
|
|
1698
|
+
backgroundColor: "var(--sl-color-gray-900)",
|
|
1699
|
+
color: "var(--sl-color-white)",
|
|
1700
|
+
borderRadius: "var(--sl-border-radius-medium)",
|
|
1701
|
+
position: "relative",
|
|
1702
|
+
marginLeft: "5px",
|
|
1703
|
+
},
|
|
1704
|
+
DropdownArrow: {
|
|
1705
|
+
position: "absolute",
|
|
1706
|
+
left: "-5px",
|
|
1707
|
+
top: "50%",
|
|
1708
|
+
transform: "translateY(-50%)",
|
|
1709
|
+
width: "0",
|
|
1710
|
+
height: "0",
|
|
1711
|
+
borderTop: "5px solid transparent",
|
|
1712
|
+
borderBottom: "5px solid transparent",
|
|
1713
|
+
borderRight: "5px solid var(--sl-color-gray-900)",
|
|
1714
|
+
zIndex: "1",
|
|
1715
|
+
},
|
|
1716
|
+
DropdownLink: {
|
|
1717
|
+
color: "var(--sl-color-white)",
|
|
1718
|
+
textDecoration: "underline",
|
|
1719
|
+
},
|
|
1691
1720
|
PhoneInputsContainer: {
|
|
1692
1721
|
display: "flex",
|
|
1693
1722
|
gap: "4px",
|
|
@@ -1913,6 +1942,27 @@ const UserInfoFormView = (props) => {
|
|
|
1913
1942
|
var _a;
|
|
1914
1943
|
return states.isUser && !!((_a = data$1.userData) === null || _a === void 0 ? void 0 : _a[field]);
|
|
1915
1944
|
}
|
|
1945
|
+
const dropdownHover = (el) => {
|
|
1946
|
+
var _a;
|
|
1947
|
+
if (!el)
|
|
1948
|
+
return;
|
|
1949
|
+
const trigger = el.querySelector('[slot="trigger"]');
|
|
1950
|
+
const panel = (_a = el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".dropdown__panel");
|
|
1951
|
+
if (!trigger || !panel)
|
|
1952
|
+
return;
|
|
1953
|
+
let hideTimeout;
|
|
1954
|
+
const show = () => {
|
|
1955
|
+
clearTimeout(hideTimeout);
|
|
1956
|
+
el.show();
|
|
1957
|
+
};
|
|
1958
|
+
const scheduleHide = () => {
|
|
1959
|
+
hideTimeout = setTimeout(() => el.hide(), 100);
|
|
1960
|
+
};
|
|
1961
|
+
trigger.addEventListener("mouseenter", show);
|
|
1962
|
+
trigger.addEventListener("mouseleave", scheduleHide);
|
|
1963
|
+
panel.addEventListener("mouseenter", show);
|
|
1964
|
+
panel.addEventListener("mouseleave", scheduleHide);
|
|
1965
|
+
};
|
|
1916
1966
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
1917
1967
|
index.h("style", { type: "text/css" },
|
|
1918
1968
|
styleString$1,
|
|
@@ -1951,6 +2001,16 @@ const UserInfoFormView = (props) => {
|
|
|
1951
2001
|
}, {
|
|
1952
2002
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
1953
2003
|
})))),
|
|
2004
|
+
index.h("sl-dropdown", { placement: "right", distance: 1, ref: dropdownHover, style: { top: "-4px" } },
|
|
2005
|
+
index.h("sl-icon", { slot: "trigger", name: "info-circle", style: { cursor: "pointer", width: "16px", height: "16px" } }),
|
|
2006
|
+
index.h("div", { class: sheet$1.classes.DropdownContent },
|
|
2007
|
+
index.h("div", { class: sheet$1.classes.DropdownArrow }),
|
|
2008
|
+
"This is a test tooltip with a",
|
|
2009
|
+
" ",
|
|
2010
|
+
index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com`, style: {
|
|
2011
|
+
color: "var(--sl-color-white)",
|
|
2012
|
+
textDecoration: "underline",
|
|
2013
|
+
} }, "clickable link"))),
|
|
1954
2014
|
index.h("div", null,
|
|
1955
2015
|
index.h("div", { class: classes.InputContainer },
|
|
1956
2016
|
index.h("sl-input", Object.assign({ class: "ErrorInput", exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || isDisabledUserInput("firstName") }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
|
|
@@ -57,6 +57,7 @@ const style = {
|
|
|
57
57
|
marginBottom: "var(--sl-spacing-xx-small)",
|
|
58
58
|
margin: "0",
|
|
59
59
|
display: "flex",
|
|
60
|
+
alignItems: "center",
|
|
60
61
|
gap: "var(--sl-spacing-x-small)",
|
|
61
62
|
"&::part(base)": {
|
|
62
63
|
color: "var(--sqm-text)",
|
|
@@ -138,6 +139,9 @@ const style = {
|
|
|
138
139
|
display: "flex",
|
|
139
140
|
textAlign: "center",
|
|
140
141
|
width: "250px",
|
|
142
|
+
"&::part(body)": {
|
|
143
|
+
pointerEvents: "auto",
|
|
144
|
+
},
|
|
141
145
|
},
|
|
142
146
|
ToolTip: {
|
|
143
147
|
top: "6px",
|
|
@@ -216,6 +220,42 @@ const style = {
|
|
|
216
220
|
gap: "var(--sl-spacing-medium)",
|
|
217
221
|
flexWrap: "wrap",
|
|
218
222
|
},
|
|
223
|
+
DropdownTooltipContainer: {
|
|
224
|
+
top: "-4px",
|
|
225
|
+
"&::part(panel)": {
|
|
226
|
+
boxShadow: "none",
|
|
227
|
+
border: "none",
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
DropdownContent: {
|
|
231
|
+
padding: "var(--sl-spacing-xxx-small) var(--sl-spacing-x-small)",
|
|
232
|
+
fontSize: "var(--sl-font-size-small)",
|
|
233
|
+
fontFamily: "var(--sl-font-sans)",
|
|
234
|
+
fontWeight: "var(--sl-font-weight-normal)",
|
|
235
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
236
|
+
minWidth: "225px",
|
|
237
|
+
backgroundColor: "var(--sl-color-gray-900)",
|
|
238
|
+
color: "var(--sl-color-white)",
|
|
239
|
+
borderRadius: "var(--sl-border-radius-medium)",
|
|
240
|
+
position: "relative",
|
|
241
|
+
marginLeft: "5px",
|
|
242
|
+
},
|
|
243
|
+
DropdownArrow: {
|
|
244
|
+
position: "absolute",
|
|
245
|
+
left: "-5px",
|
|
246
|
+
top: "50%",
|
|
247
|
+
transform: "translateY(-50%)",
|
|
248
|
+
width: "0",
|
|
249
|
+
height: "0",
|
|
250
|
+
borderTop: "5px solid transparent",
|
|
251
|
+
borderBottom: "5px solid transparent",
|
|
252
|
+
borderRight: "5px solid var(--sl-color-gray-900)",
|
|
253
|
+
zIndex: "1",
|
|
254
|
+
},
|
|
255
|
+
DropdownLink: {
|
|
256
|
+
color: "var(--sl-color-white)",
|
|
257
|
+
textDecoration: "underline",
|
|
258
|
+
},
|
|
219
259
|
};
|
|
220
260
|
const sheet = createStyleSheet(style);
|
|
221
261
|
const styleString = sheet.toString();
|
|
@@ -531,6 +571,27 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
531
571
|
}
|
|
532
572
|
};
|
|
533
573
|
const alertInfo = getAlert(states.payoutStatus);
|
|
574
|
+
const dropdownHover = (el) => {
|
|
575
|
+
var _a;
|
|
576
|
+
if (!el)
|
|
577
|
+
return;
|
|
578
|
+
const trigger = el.querySelector('[slot="trigger"]');
|
|
579
|
+
const panel = (_a = el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".dropdown__panel");
|
|
580
|
+
if (!trigger || !panel)
|
|
581
|
+
return;
|
|
582
|
+
let hideTimeout;
|
|
583
|
+
const show = () => {
|
|
584
|
+
clearTimeout(hideTimeout);
|
|
585
|
+
el.show();
|
|
586
|
+
};
|
|
587
|
+
const scheduleHide = () => {
|
|
588
|
+
hideTimeout = setTimeout(() => el.hide(), 100);
|
|
589
|
+
};
|
|
590
|
+
trigger.addEventListener("mouseenter", show);
|
|
591
|
+
trigger.addEventListener("mouseleave", scheduleHide);
|
|
592
|
+
panel.addEventListener("mouseenter", show);
|
|
593
|
+
panel.addEventListener("mouseleave", scheduleHide);
|
|
594
|
+
};
|
|
534
595
|
return (h("div", null,
|
|
535
596
|
h("div", null,
|
|
536
597
|
h("style", { type: "text/css" },
|
|
@@ -594,8 +655,16 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
594
655
|
h("sl-skeleton", { class: sheet.classes.SkeletonTwo }))) : (h("div", null,
|
|
595
656
|
h("h3", { class: sheet.classes.IndirectTaxPreviewHeaderContainer },
|
|
596
657
|
text.indirectTaxInfoSectionHeader,
|
|
597
|
-
h("sl-
|
|
598
|
-
h("sl-icon", { name: "info-circle", class: sheet.classes.ToolTip })
|
|
658
|
+
h("sl-dropdown", { placement: "right", distance: 1, ref: dropdownHover, class: sheet.classes.DropdownTooltipContainer },
|
|
659
|
+
h("sl-icon", { slot: "trigger", name: "info-circle", class: sheet.classes.ToolTip, style: { cursor: "pointer" } }),
|
|
660
|
+
h("div", { class: sheet.classes.DropdownContent },
|
|
661
|
+
h("div", { class: sheet.classes.DropdownArrow }),
|
|
662
|
+
intl.formatMessage({
|
|
663
|
+
id: "indirectTaxTooltipSupport",
|
|
664
|
+
defaultMessage: text.indirectTaxTooltipSupport,
|
|
665
|
+
}, {
|
|
666
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com`, class: sheet.classes.DropdownLink }, text.supportLink)),
|
|
667
|
+
})))),
|
|
599
668
|
h("div", { class: sheet.classes.IndirectTaxPreviewDetails },
|
|
600
669
|
h("span", null, states.notRegistered ? (h("span", { class: sheet.classes.NotRegisteredIndirectTaxText }, intl.formatMessage({
|
|
601
670
|
id: "notRegisteredForTax",
|
|
@@ -129,7 +129,7 @@ export class TaxAndCashDashboard {
|
|
|
129
129
|
* @uiName Indirect tax tooltip
|
|
130
130
|
* @uiWidget textArea
|
|
131
131
|
*/
|
|
132
|
-
this.indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our
|
|
132
|
+
this.indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
133
133
|
/**
|
|
134
134
|
* Displayed to participants who have submitted their indirect tax information.
|
|
135
135
|
*
|
|
@@ -872,7 +872,7 @@ export class TaxAndCashDashboard {
|
|
|
872
872
|
},
|
|
873
873
|
"attribute": "indirect-tax-tooltip-support",
|
|
874
874
|
"reflect": false,
|
|
875
|
-
"defaultValue": "\"To make changes to your indirect tax information, please contact our
|
|
875
|
+
"defaultValue": "\"To make changes to your indirect tax information, please contact our {supportLink}.\""
|
|
876
876
|
},
|
|
877
877
|
"indirectTaxDetails": {
|
|
878
878
|
"type": "string",
|
package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js
CHANGED
|
@@ -70,6 +70,35 @@ const style = {
|
|
|
70
70
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
71
71
|
},
|
|
72
72
|
},
|
|
73
|
+
DropdownContent: {
|
|
74
|
+
padding: "var(--sl-spacing-xxx-small) var(--sl-spacing-x-small)",
|
|
75
|
+
fontSize: "var(--sl-font-size-small)",
|
|
76
|
+
fontFamily: "var(--sl-font-sans)",
|
|
77
|
+
fontWeight: "var(--sl-font-weight-normal)",
|
|
78
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
79
|
+
minWidth: "225px",
|
|
80
|
+
backgroundColor: "var(--sl-color-gray-900)",
|
|
81
|
+
color: "var(--sl-color-white)",
|
|
82
|
+
borderRadius: "var(--sl-border-radius-medium)",
|
|
83
|
+
position: "relative",
|
|
84
|
+
marginLeft: "5px",
|
|
85
|
+
},
|
|
86
|
+
DropdownArrow: {
|
|
87
|
+
position: "absolute",
|
|
88
|
+
left: "-5px",
|
|
89
|
+
top: "50%",
|
|
90
|
+
transform: "translateY(-50%)",
|
|
91
|
+
width: "0",
|
|
92
|
+
height: "0",
|
|
93
|
+
borderTop: "5px solid transparent",
|
|
94
|
+
borderBottom: "5px solid transparent",
|
|
95
|
+
borderRight: "5px solid var(--sl-color-gray-900)",
|
|
96
|
+
zIndex: "1",
|
|
97
|
+
},
|
|
98
|
+
DropdownLink: {
|
|
99
|
+
color: "var(--sl-color-white)",
|
|
100
|
+
textDecoration: "underline",
|
|
101
|
+
},
|
|
73
102
|
PhoneInputsContainer: {
|
|
74
103
|
display: "flex",
|
|
75
104
|
gap: "4px",
|
|
@@ -295,6 +324,27 @@ export const UserInfoFormView = (props) => {
|
|
|
295
324
|
var _a;
|
|
296
325
|
return states.isUser && !!((_a = data.userData) === null || _a === void 0 ? void 0 : _a[field]);
|
|
297
326
|
}
|
|
327
|
+
const dropdownHover = (el) => {
|
|
328
|
+
var _a;
|
|
329
|
+
if (!el)
|
|
330
|
+
return;
|
|
331
|
+
const trigger = el.querySelector('[slot="trigger"]');
|
|
332
|
+
const panel = (_a = el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".dropdown__panel");
|
|
333
|
+
if (!trigger || !panel)
|
|
334
|
+
return;
|
|
335
|
+
let hideTimeout;
|
|
336
|
+
const show = () => {
|
|
337
|
+
clearTimeout(hideTimeout);
|
|
338
|
+
el.show();
|
|
339
|
+
};
|
|
340
|
+
const scheduleHide = () => {
|
|
341
|
+
hideTimeout = setTimeout(() => el.hide(), 100);
|
|
342
|
+
};
|
|
343
|
+
trigger.addEventListener("mouseenter", show);
|
|
344
|
+
trigger.addEventListener("mouseleave", scheduleHide);
|
|
345
|
+
panel.addEventListener("mouseenter", show);
|
|
346
|
+
panel.addEventListener("mouseleave", scheduleHide);
|
|
347
|
+
};
|
|
298
348
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
299
349
|
h("style", { type: "text/css" },
|
|
300
350
|
styleString,
|
|
@@ -333,6 +383,16 @@ export const UserInfoFormView = (props) => {
|
|
|
333
383
|
}, {
|
|
334
384
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
335
385
|
})))),
|
|
386
|
+
h("sl-dropdown", { placement: "right", distance: 1, ref: dropdownHover, style: { top: "-4px" } },
|
|
387
|
+
h("sl-icon", { slot: "trigger", name: "info-circle", style: { cursor: "pointer", width: "16px", height: "16px" } }),
|
|
388
|
+
h("div", { class: sheet.classes.DropdownContent },
|
|
389
|
+
h("div", { class: sheet.classes.DropdownArrow }),
|
|
390
|
+
"This is a test tooltip with a",
|
|
391
|
+
" ",
|
|
392
|
+
h("a", { target: "_blank", href: `mailto:advocate-support@impact.com`, style: {
|
|
393
|
+
color: "var(--sl-color-white)",
|
|
394
|
+
textDecoration: "underline",
|
|
395
|
+
} }, "clickable link"))),
|
|
336
396
|
h("div", null,
|
|
337
397
|
h("div", { class: classes.InputContainer },
|
|
338
398
|
h("sl-input", Object.assign({ class: "ErrorInput", exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || isDisabledUserInput("firstName") }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
|
|
@@ -12,7 +12,7 @@ import { u as useRerenderListener, a as useRequestRerender } from './re-render-7
|
|
|
12
12
|
import { u as useChildElements } from './useChildElements-3d872cef.js';
|
|
13
13
|
import { l as luxon } from './luxon-bbf75a9d.js';
|
|
14
14
|
import { g as generateUserError } from './useReferralTable-909ccb28.js';
|
|
15
|
-
import { a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, A as ADDRESS_REGIONS, U as UserInfoFormView } from './sqm-user-info-form-view-
|
|
15
|
+
import { a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, A as ADDRESS_REGIONS, U as UserInfoFormView } from './sqm-user-info-form-view-0b068018.js';
|
|
16
16
|
import { F as FORM_STEPS, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, h as FINANCE_NETWORK_SETTINGS_NAMESPACE, t as taxTypeToName, l as validTaxDocument, U as USER_FORM_CONTEXT_NAMESPACE, d as COUNTRIES_QUERY_NAMESPACE, g as getCountryObj, C as CURRENCIES_NAMESPACE, o as objectIsFull } from './data-a581119a.js';
|
|
17
17
|
import { b as VERIFICATION_EVENT_KEY } from './keys-406491dc.js';
|
|
18
18
|
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-7404eb9d.js';
|
|
@@ -3775,6 +3775,7 @@ const style$5 = {
|
|
|
3775
3775
|
marginBottom: "var(--sl-spacing-xx-small)",
|
|
3776
3776
|
margin: "0",
|
|
3777
3777
|
display: "flex",
|
|
3778
|
+
alignItems: "center",
|
|
3778
3779
|
gap: "var(--sl-spacing-x-small)",
|
|
3779
3780
|
"&::part(base)": {
|
|
3780
3781
|
color: "var(--sqm-text)",
|
|
@@ -3856,6 +3857,9 @@ const style$5 = {
|
|
|
3856
3857
|
display: "flex",
|
|
3857
3858
|
textAlign: "center",
|
|
3858
3859
|
width: "250px",
|
|
3860
|
+
"&::part(body)": {
|
|
3861
|
+
pointerEvents: "auto",
|
|
3862
|
+
},
|
|
3859
3863
|
},
|
|
3860
3864
|
ToolTip: {
|
|
3861
3865
|
top: "6px",
|
|
@@ -3934,6 +3938,42 @@ const style$5 = {
|
|
|
3934
3938
|
gap: "var(--sl-spacing-medium)",
|
|
3935
3939
|
flexWrap: "wrap",
|
|
3936
3940
|
},
|
|
3941
|
+
DropdownTooltipContainer: {
|
|
3942
|
+
top: "-4px",
|
|
3943
|
+
"&::part(panel)": {
|
|
3944
|
+
boxShadow: "none",
|
|
3945
|
+
border: "none",
|
|
3946
|
+
},
|
|
3947
|
+
},
|
|
3948
|
+
DropdownContent: {
|
|
3949
|
+
padding: "var(--sl-spacing-xxx-small) var(--sl-spacing-x-small)",
|
|
3950
|
+
fontSize: "var(--sl-font-size-small)",
|
|
3951
|
+
fontFamily: "var(--sl-font-sans)",
|
|
3952
|
+
fontWeight: "var(--sl-font-weight-normal)",
|
|
3953
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
3954
|
+
minWidth: "225px",
|
|
3955
|
+
backgroundColor: "var(--sl-color-gray-900)",
|
|
3956
|
+
color: "var(--sl-color-white)",
|
|
3957
|
+
borderRadius: "var(--sl-border-radius-medium)",
|
|
3958
|
+
position: "relative",
|
|
3959
|
+
marginLeft: "5px",
|
|
3960
|
+
},
|
|
3961
|
+
DropdownArrow: {
|
|
3962
|
+
position: "absolute",
|
|
3963
|
+
left: "-5px",
|
|
3964
|
+
top: "50%",
|
|
3965
|
+
transform: "translateY(-50%)",
|
|
3966
|
+
width: "0",
|
|
3967
|
+
height: "0",
|
|
3968
|
+
borderTop: "5px solid transparent",
|
|
3969
|
+
borderBottom: "5px solid transparent",
|
|
3970
|
+
borderRight: "5px solid var(--sl-color-gray-900)",
|
|
3971
|
+
zIndex: "1",
|
|
3972
|
+
},
|
|
3973
|
+
DropdownLink: {
|
|
3974
|
+
color: "var(--sl-color-white)",
|
|
3975
|
+
textDecoration: "underline",
|
|
3976
|
+
},
|
|
3937
3977
|
};
|
|
3938
3978
|
const sheet$4 = createStyleSheet(style$5);
|
|
3939
3979
|
const styleString$4 = sheet$4.toString();
|
|
@@ -4249,6 +4289,27 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4249
4289
|
}
|
|
4250
4290
|
};
|
|
4251
4291
|
const alertInfo = getAlert(states.payoutStatus);
|
|
4292
|
+
const dropdownHover = (el) => {
|
|
4293
|
+
var _a;
|
|
4294
|
+
if (!el)
|
|
4295
|
+
return;
|
|
4296
|
+
const trigger = el.querySelector('[slot="trigger"]');
|
|
4297
|
+
const panel = (_a = el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".dropdown__panel");
|
|
4298
|
+
if (!trigger || !panel)
|
|
4299
|
+
return;
|
|
4300
|
+
let hideTimeout;
|
|
4301
|
+
const show = () => {
|
|
4302
|
+
clearTimeout(hideTimeout);
|
|
4303
|
+
el.show();
|
|
4304
|
+
};
|
|
4305
|
+
const scheduleHide = () => {
|
|
4306
|
+
hideTimeout = setTimeout(() => el.hide(), 100);
|
|
4307
|
+
};
|
|
4308
|
+
trigger.addEventListener("mouseenter", show);
|
|
4309
|
+
trigger.addEventListener("mouseleave", scheduleHide);
|
|
4310
|
+
panel.addEventListener("mouseenter", show);
|
|
4311
|
+
panel.addEventListener("mouseleave", scheduleHide);
|
|
4312
|
+
};
|
|
4252
4313
|
return (h("div", null,
|
|
4253
4314
|
h("div", null,
|
|
4254
4315
|
h("style", { type: "text/css" },
|
|
@@ -4312,8 +4373,16 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4312
4373
|
h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (h("div", null,
|
|
4313
4374
|
h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
|
|
4314
4375
|
text.indirectTaxInfoSectionHeader,
|
|
4315
|
-
h("sl-
|
|
4316
|
-
h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip })
|
|
4376
|
+
h("sl-dropdown", { placement: "right", distance: 1, ref: dropdownHover, class: sheet$4.classes.DropdownTooltipContainer },
|
|
4377
|
+
h("sl-icon", { slot: "trigger", name: "info-circle", class: sheet$4.classes.ToolTip, style: { cursor: "pointer" } }),
|
|
4378
|
+
h("div", { class: sheet$4.classes.DropdownContent },
|
|
4379
|
+
h("div", { class: sheet$4.classes.DropdownArrow }),
|
|
4380
|
+
intl.formatMessage({
|
|
4381
|
+
id: "indirectTaxTooltipSupport",
|
|
4382
|
+
defaultMessage: text.indirectTaxTooltipSupport,
|
|
4383
|
+
}, {
|
|
4384
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com`, class: sheet$4.classes.DropdownLink }, text.supportLink)),
|
|
4385
|
+
})))),
|
|
4317
4386
|
h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
|
|
4318
4387
|
h("span", null, states.notRegistered ? (h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, intl.formatMessage({
|
|
4319
4388
|
id: "notRegisteredForTax",
|
|
@@ -4608,7 +4677,7 @@ const TaxAndCashDashboard = class {
|
|
|
4608
4677
|
* @uiName Indirect tax tooltip
|
|
4609
4678
|
* @uiWidget textArea
|
|
4610
4679
|
*/
|
|
4611
|
-
this.indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our
|
|
4680
|
+
this.indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
4612
4681
|
/**
|
|
4613
4682
|
* Displayed to participants who have submitted their indirect tax information.
|
|
4614
4683
|
*
|
|
@@ -32,7 +32,7 @@ import './ErrorView-bbf0a042.js';
|
|
|
32
32
|
import { Q as QrCodeView } from './sqm-qr-code-view-ea505213.js';
|
|
33
33
|
import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, c as CheckboxFieldView, d as PortalRegisterView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, f as ChangeMarktingView, g as PortalFooterView, h as PortalForgotPasswordView, i as PortalFrameView, R as ReferralIframeView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as useShareButton, K as useShareLink, M as ProgressBarView, O as ProgressBar$2, Q as LeadFormView, U as LeadDropdownFieldView, V as ShadowViewAddon } from './ShadowViewAddon-78a1c35c.js';
|
|
34
34
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-176e92e3.js';
|
|
35
|
-
import { I as InvoiceTableView, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, U as UserInfoFormView$1 } from './sqm-user-info-form-view-
|
|
35
|
+
import { I as InvoiceTableView, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, U as UserInfoFormView$1 } from './sqm-user-info-form-view-0b068018.js';
|
|
36
36
|
import { t as taxTypeToName, L as LoadingView } from './data-a581119a.js';
|
|
37
37
|
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-d543d939.js';
|
|
38
38
|
|
package/dist/esm/{sqm-user-info-form-view-9a3048d9.js → sqm-user-info-form-view-0b068018.js}
RENAMED
|
@@ -1686,6 +1686,35 @@ const style$2 = {
|
|
|
1686
1686
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
1687
1687
|
},
|
|
1688
1688
|
},
|
|
1689
|
+
DropdownContent: {
|
|
1690
|
+
padding: "var(--sl-spacing-xxx-small) var(--sl-spacing-x-small)",
|
|
1691
|
+
fontSize: "var(--sl-font-size-small)",
|
|
1692
|
+
fontFamily: "var(--sl-font-sans)",
|
|
1693
|
+
fontWeight: "var(--sl-font-weight-normal)",
|
|
1694
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
1695
|
+
minWidth: "225px",
|
|
1696
|
+
backgroundColor: "var(--sl-color-gray-900)",
|
|
1697
|
+
color: "var(--sl-color-white)",
|
|
1698
|
+
borderRadius: "var(--sl-border-radius-medium)",
|
|
1699
|
+
position: "relative",
|
|
1700
|
+
marginLeft: "5px",
|
|
1701
|
+
},
|
|
1702
|
+
DropdownArrow: {
|
|
1703
|
+
position: "absolute",
|
|
1704
|
+
left: "-5px",
|
|
1705
|
+
top: "50%",
|
|
1706
|
+
transform: "translateY(-50%)",
|
|
1707
|
+
width: "0",
|
|
1708
|
+
height: "0",
|
|
1709
|
+
borderTop: "5px solid transparent",
|
|
1710
|
+
borderBottom: "5px solid transparent",
|
|
1711
|
+
borderRight: "5px solid var(--sl-color-gray-900)",
|
|
1712
|
+
zIndex: "1",
|
|
1713
|
+
},
|
|
1714
|
+
DropdownLink: {
|
|
1715
|
+
color: "var(--sl-color-white)",
|
|
1716
|
+
textDecoration: "underline",
|
|
1717
|
+
},
|
|
1689
1718
|
PhoneInputsContainer: {
|
|
1690
1719
|
display: "flex",
|
|
1691
1720
|
gap: "4px",
|
|
@@ -1911,6 +1940,27 @@ const UserInfoFormView = (props) => {
|
|
|
1911
1940
|
var _a;
|
|
1912
1941
|
return states.isUser && !!((_a = data.userData) === null || _a === void 0 ? void 0 : _a[field]);
|
|
1913
1942
|
}
|
|
1943
|
+
const dropdownHover = (el) => {
|
|
1944
|
+
var _a;
|
|
1945
|
+
if (!el)
|
|
1946
|
+
return;
|
|
1947
|
+
const trigger = el.querySelector('[slot="trigger"]');
|
|
1948
|
+
const panel = (_a = el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".dropdown__panel");
|
|
1949
|
+
if (!trigger || !panel)
|
|
1950
|
+
return;
|
|
1951
|
+
let hideTimeout;
|
|
1952
|
+
const show = () => {
|
|
1953
|
+
clearTimeout(hideTimeout);
|
|
1954
|
+
el.show();
|
|
1955
|
+
};
|
|
1956
|
+
const scheduleHide = () => {
|
|
1957
|
+
hideTimeout = setTimeout(() => el.hide(), 100);
|
|
1958
|
+
};
|
|
1959
|
+
trigger.addEventListener("mouseenter", show);
|
|
1960
|
+
trigger.addEventListener("mouseleave", scheduleHide);
|
|
1961
|
+
panel.addEventListener("mouseenter", show);
|
|
1962
|
+
panel.addEventListener("mouseleave", scheduleHide);
|
|
1963
|
+
};
|
|
1914
1964
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
1915
1965
|
h("style", { type: "text/css" },
|
|
1916
1966
|
styleString$1,
|
|
@@ -1949,6 +1999,16 @@ const UserInfoFormView = (props) => {
|
|
|
1949
1999
|
}, {
|
|
1950
2000
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
1951
2001
|
})))),
|
|
2002
|
+
h("sl-dropdown", { placement: "right", distance: 1, ref: dropdownHover, style: { top: "-4px" } },
|
|
2003
|
+
h("sl-icon", { slot: "trigger", name: "info-circle", style: { cursor: "pointer", width: "16px", height: "16px" } }),
|
|
2004
|
+
h("div", { class: sheet$1.classes.DropdownContent },
|
|
2005
|
+
h("div", { class: sheet$1.classes.DropdownArrow }),
|
|
2006
|
+
"This is a test tooltip with a",
|
|
2007
|
+
" ",
|
|
2008
|
+
h("a", { target: "_blank", href: `mailto:advocate-support@impact.com`, style: {
|
|
2009
|
+
color: "var(--sl-color-white)",
|
|
2010
|
+
textDecoration: "underline",
|
|
2011
|
+
} }, "clickable link"))),
|
|
1952
2012
|
h("div", null,
|
|
1953
2013
|
h("div", { class: classes.InputContainer },
|
|
1954
2014
|
h("sl-input", Object.assign({ class: "ErrorInput", exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || isDisabledUserInput("firstName") }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
|