@saasquatch/mint-components 2.0.5 → 2.0.6-0

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.
@@ -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-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
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 Support team.";
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
  *
@@ -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-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet.classes.TooltipContainer },
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 Support team.";
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 Support team.\""
875
+ "defaultValue": "\"To make changes to your indirect tax information, please contact our {supportLink}.\""
876
876
  },
877
877
  "indirectTaxDetails": {
878
878
  "type": "string",
@@ -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-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
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 Support team.";
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
  *