@saasquatch/vanilla-components 1.2.6 → 1.2.8-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.
Files changed (44) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/{WidgetHost-fce29ef5.js → WidgetHost-71b013eb.js} +195 -195
  3. package/dist/cjs/sqh-close-button.cjs.entry.js +1 -1
  4. package/dist/cjs/sqh-copy-button_12.cjs.entry.js +154 -154
  5. package/dist/cjs/sqh-referral-code.cjs.entry.js +1 -1
  6. package/dist/collection/components/copy-button/copy-button.js +22 -22
  7. package/dist/collection/components/copy-link-button/copy-link-button.js +15 -15
  8. package/dist/collection/components/global-container/global-container.js +8 -8
  9. package/dist/collection/components/image-component/image-component.js +10 -10
  10. package/dist/collection/components/partner-stat-component/partner-stat-component.js +2 -2
  11. package/dist/collection/components/referral-list/referral-list.js +51 -51
  12. package/dist/collection/components/share-button/share-button.js +19 -19
  13. package/dist/collection/components/share-button-container/share-button-container.js +31 -31
  14. package/dist/collection/components/stat-component/stat-component.js +2 -2
  15. package/dist/collection/components/stats-container/stats-container.js +4 -4
  16. package/dist/collection/components/text-component/text-component.js +13 -13
  17. package/dist/collection/entrypoint.js +34 -34
  18. package/dist/collection/services/WidgetHost.js +195 -195
  19. package/dist/esm/{WidgetHost-903fb7cc.js → WidgetHost-9c337319.js} +195 -195
  20. package/dist/esm/sqh-close-button.entry.js +1 -1
  21. package/dist/esm/sqh-copy-button_12.entry.js +154 -154
  22. package/dist/esm/sqh-referral-code.entry.js +1 -1
  23. package/dist/esm-es5/sqh-close-button.entry.js +1 -1
  24. package/dist/esm-es5/sqh-copy-button_12.entry.js +9 -9
  25. package/dist/esm-es5/sqh-referral-code.entry.js +1 -1
  26. package/dist/types/components/share-button-container/share-button-container.d.ts +24 -24
  27. package/dist/types/components.d.ts +46 -46
  28. package/dist/types/saasquatch.d.ts +105 -105
  29. package/dist/widget-components/entrypoint.js +34 -34
  30. package/dist/widget-components/{p-50ae8f2b.entry.js → p-366f1663.entry.js} +1 -1
  31. package/dist/widget-components/{p-131a5c4a.entry.js → p-54ea7a00.entry.js} +1 -1
  32. package/dist/widget-components/p-58be1132.system.js +1 -1
  33. package/dist/widget-components/{p-8baa34a0.entry.js → p-71e912a2.entry.js} +6 -6
  34. package/dist/widget-components/{p-b9fcb846.system.entry.js → p-b17efca4.system.entry.js} +1 -1
  35. package/dist/widget-components/p-c5f70ddc.system.entry.js +8 -0
  36. package/dist/widget-components/{p-da180bcd.system.entry.js → p-c8bc8c77.system.entry.js} +1 -1
  37. package/dist/widget-components/widget-components.esm.js +1 -1
  38. package/docs/raisins.json +1 -1
  39. package/package.json +97 -97
  40. package/readme.md +52 -52
  41. package/dist/widget-components/p-1b8f2cfc.system.entry.js +0 -8
  42. /package/dist/esm-es5/{WidgetHost-903fb7cc.js → WidgetHost-9c337319.js} +0 -0
  43. /package/dist/widget-components/{p-e692beaf.system.js → p-8e232564.system.js} +0 -0
  44. /package/dist/widget-components/{p-ffeb02d1.js → p-edd43dbc.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, c as createEvent, g as getElement } from './index-8ea8b6d8.js';
2
2
  import { c as createCommonjsModule, a as commonjsGlobal, u as unwrapExports } from './_commonjsHelpers-1d681858.js';
3
- import { A as API } from './WidgetHost-903fb7cc.js';
3
+ import { A as API } from './WidgetHost-9c337319.js';
4
4
 
5
5
  /////////////////////////////////////
6
6
  ////// ////
@@ -2490,29 +2490,29 @@ const CopyButton = class {
2490
2490
  clipboard.on("error", this.notifyFailure.bind(this));
2491
2491
  }
2492
2492
  render() {
2493
- const style = css `
2494
- max-width: ${this.width}px;
2495
- background-color: ${this.backgroundcolor};
2496
- border: ${this.backgroundcolor};
2497
- color: ${this.textcolor};
2498
- border-radius: ${this.borderradius}px;
2499
- font-size: ${this.fontsize}px;
2500
-
2501
- &:hover {
2502
- background-color: ${shadeColor(this.backgroundcolor, 10)};
2503
- border-color: ${shadeColor(this.backgroundcolor, 12)};
2504
- color: ${this.textcolor};
2505
- }
2506
-
2507
- &:focus {
2508
- color: ${this.textcolor};
2509
- }
2493
+ const style = css `
2494
+ max-width: ${this.width}px;
2495
+ background-color: ${this.backgroundcolor};
2496
+ border: ${this.backgroundcolor};
2497
+ color: ${this.textcolor};
2498
+ border-radius: ${this.borderradius}px;
2499
+ font-size: ${this.fontsize}px;
2500
+
2501
+ &:hover {
2502
+ background-color: ${shadeColor(this.backgroundcolor, 10)};
2503
+ border-color: ${shadeColor(this.backgroundcolor, 12)};
2504
+ color: ${this.textcolor};
2505
+ }
2506
+
2507
+ &:focus {
2508
+ color: ${this.textcolor};
2509
+ }
2510
2510
  `;
2511
- const code = css `
2512
- text-align: center;
2513
- font-weight: bold;
2514
- font-size: ${this.codefontsize};
2515
- color: ${this.codefontcolor};
2511
+ const code = css `
2512
+ text-align: center;
2513
+ font-weight: bold;
2514
+ font-size: ${this.codefontsize};
2515
+ color: ${this.codefontcolor};
2516
2516
  `;
2517
2517
  const classes = [`sqh-copy-button`, style].join(" ");
2518
2518
  return (!this.ishidden && (h("div", null, h("div", { class: code }, this.fueltankcode), h("div", { class: "sqh-align-button" }, h("span", { class: "label fade", id: "squatch-copy-notification" }, this.copysuccess), h("button", { class: classes, "data-clipboard-text": this.fueltankcode, "data-clipboard-notification": "#squatch-copy-notification" }, this.text)))));
@@ -2562,21 +2562,21 @@ const CopyLinkButton = class {
2562
2562
  clipboard.on("error", this.notifyFailure.bind(this));
2563
2563
  }
2564
2564
  render() {
2565
- const myStyle = css `
2566
- background-color: ${this.buttoncolor};
2567
- border: 1px solid ${this.buttoncolor};
2568
- color: ${this.textcolor};
2569
- font-family: ${"inherit"};
2570
-
2571
- &:hover {
2572
- background: ${shadeColor(this.buttoncolor, 10)};
2573
- border-color: ${shadeColor(this.buttoncolor, 12)};
2574
- color: ${this.textcolor};
2575
- }
2576
-
2577
- &:focus {
2578
- color: ${this.textcolor};
2579
- }
2565
+ const myStyle = css `
2566
+ background-color: ${this.buttoncolor};
2567
+ border: 1px solid ${this.buttoncolor};
2568
+ color: ${this.textcolor};
2569
+ font-family: ${"inherit"};
2570
+
2571
+ &:hover {
2572
+ background: ${shadeColor(this.buttoncolor, 10)};
2573
+ border-color: ${shadeColor(this.buttoncolor, 12)};
2574
+ color: ${this.textcolor};
2575
+ }
2576
+
2577
+ &:focus {
2578
+ color: ${this.textcolor};
2579
+ }
2580
2580
  `;
2581
2581
  const buttonClass = [`sqh-copy-btn icon-btn`, myStyle].join(" ");
2582
2582
  return (!this.ishidden && (h("div", { class: "input-group" }, h("input", { id: "squatch-share-link", value: this.sharelink, readonly: "readonly" }), h("span", { class: "label fade", id: "squatch-share-notification" }, this.copysuccess), h("span", { class: "input-group-btn" }, h("button", { class: buttonClass, "data-clipboard-target": "#squatch-share-link", "data-clipboard-notification": "#squatch-share-notification" }, h("i", { class: "icon icon-link" }), h("span", { class: "hidden-sm" }, this.text))))));
@@ -2591,21 +2591,21 @@ const GlobalContainer = class {
2591
2591
  registerInstance(this, hostRef);
2592
2592
  }
2593
2593
  LoadingState(props) {
2594
- const style = css `
2595
- background-color: ${props.loadingcolor || "#439B76"};
2594
+ const style = css `
2595
+ background-color: ${props.loadingcolor || "#439B76"};
2596
2596
  `;
2597
2597
  return (h("div", { class: "container-loading" }, h("div", { class: "loading-icon" }, h("div", { class: `bar1 ${style}` }), h("div", { class: `bar2 ${style}` }), h("div", { class: `bar3 ${style}` }), h("div", { class: `bar4 ${style}` }), h("div", { class: `bar5 ${style}` }))));
2598
2598
  }
2599
2599
  render() {
2600
- const style = css `
2601
- background-color: ${this.background};
2602
- font-family: ${this.fontfamily};
2603
- position: relative;
2604
- max-width: ${this.maxwidth};
2600
+ const style = css `
2601
+ background-color: ${this.background};
2602
+ font-family: ${this.fontfamily};
2603
+ position: relative;
2604
+ max-width: ${this.maxwidth};
2605
2605
  `;
2606
2606
  const robotoFont = (h("link", { href: "https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap", rel: "stylesheet" }));
2607
2607
  const artifaktFont = (h("link", { href: "https://static-dc.autodesk.net/etc/designs/v201903181748/templates-general/structure/fonts/artifakt/clientlibs/artifakt.css", rel: "stylesheet" }));
2608
- return (h("div", { class: style }, this.fontfamily == "Roboto" ? robotoFont : "", this.fontfamily == "Artifakt Element" ? artifaktFont : "", h("slot", null), this.poweredby ? (h("a", { class: "sqh-attribution", href: "https://www.saasquatch.com/?utm_source=app&utm_medium=user-widget&utm_campaign=referral-widget", target: "_blank" }, "Powered By Saasquatch")) : (""), h(this.LoadingState, { loadingcolor: this.loadingcolor })));
2608
+ return (h("div", { class: style }, this.fontfamily == "Roboto" ? robotoFont : "", this.fontfamily == "Artifakt Element" ? artifaktFont : "", h("slot", null), this.poweredby ? (h("a", { class: "sqh-attribution", href: "https://www.saasquatch.com/?utm_source=app&utm_medium=user-widget&utm_campaign=referral-widget", target: "_blank" }, "Powered With Saasquatch By Impact.com")) : (""), h(this.LoadingState, { loadingcolor: this.loadingcolor })));
2609
2609
  }
2610
2610
  };
2611
2611
  GlobalContainer.style = globalContainerCss;
@@ -2618,17 +2618,17 @@ const ImageComponent = class {
2618
2618
  }
2619
2619
  render() {
2620
2620
  const imageString = this.url;
2621
- const alignment = css `
2622
- {
2623
- text-align: ${this.alignment};
2624
- }
2621
+ const alignment = css `
2622
+ {
2623
+ text-align: ${this.alignment};
2624
+ }
2625
2625
  `;
2626
- const myStyle = css `
2627
- {
2628
- width: ${this.width}px;
2629
- border-radius: ${this.borderradius}px;
2630
- ${this.css}
2631
- }
2626
+ const myStyle = css `
2627
+ {
2628
+ width: ${this.width}px;
2629
+ border-radius: ${this.borderradius}px;
2630
+ ${this.css}
2631
+ }
2632
2632
  `;
2633
2633
  return (!this.ishidden && (h("div", { class: alignment }, h("img", { src: imageString, class: myStyle }))));
2634
2634
  }
@@ -2657,8 +2657,8 @@ const PartnerStatComponent = class {
2657
2657
  this.statTypeUpdated.emit(stat);
2658
2658
  }
2659
2659
  render() {
2660
- const clz = css `
2661
- color: ${this.statcolor};
2660
+ const clz = css `
2661
+ color: ${this.statcolor};
2662
2662
  `;
2663
2663
  return (!this.ishidden && (h("div", { class: clz }, h("div", { class: "stat-value" }, this.statvalue), h("div", { class: "stat-description" }, this.statdescription))));
2664
2664
  }
@@ -7083,66 +7083,66 @@ const ReferralList = class {
7083
7083
  if (this.referrals.length < 3 && this.referredBy && this.showreferrer) {
7084
7084
  referredByRow = (h("sqh-referral-component", { id: uuid(), referral: this.referredBy, referralvariables: referralvariables, referraltype: "referrer", unknownuser: this.unknownuser, locale: this.internationalization ? this.locale : "en-US" }));
7085
7085
  }
7086
- const clz = css `
7087
- .squatch-referrals-icon.icon-ok-circled {
7088
- color: ${this.rewardcolor};
7089
- }
7090
- .squatch-referrals-icon.icon-attention {
7091
- color: ${this.pendingcolor};
7092
- }
7093
- .squatch-referrals-value {
7094
- color: ${this.rewardcolor};
7095
- }
7096
- .squatch-referrals-value.pending {
7097
- color: ${this.pendingcolor};
7098
- }
7099
- .squatch-referrals-value.referrer {
7100
- color: ${this.rewardcolor};
7101
- }
7102
- .squatch-referrals-value.expired {
7103
- color: ${this.expiredcolor};
7104
- }
7105
- .squatch-value-contents.expired {
7106
- color: ${this.expiredcolor};
7107
- }
7108
- .squatch-referrals-icon.icon-attention.expired {
7109
- color: ${this.expiredcolor};
7110
- }
7111
- .squatch-referrals-value.cancelled {
7112
- color: ${this.cancelledcolor};
7113
- }
7114
- .squatch-value-contents.cancelled {
7115
- color: ${this.cancelledcolor};
7116
- }
7117
- .squatch-referrals-icon.icon-attention.cancelled {
7118
- color: ${this.cancelledcolor};
7119
- }
7120
- .squatch-referrals-heading {
7121
- color: ${this.referralnamecolor};
7122
- }
7123
- .squatch-referrals-description,
7124
- .squatch-referrals-value-content {
7125
- color: ${this.referraltextcolor};
7126
- }
7127
- .squatch-customer-note {
7128
- color: ${this.customernotecolor || "darkslategray"};
7129
- }
7130
- .squatch-referrals-scroll-action {
7131
- font-family: ${"inherit"};
7132
- }
7086
+ const clz = css `
7087
+ .squatch-referrals-icon.icon-ok-circled {
7088
+ color: ${this.rewardcolor};
7089
+ }
7090
+ .squatch-referrals-icon.icon-attention {
7091
+ color: ${this.pendingcolor};
7092
+ }
7093
+ .squatch-referrals-value {
7094
+ color: ${this.rewardcolor};
7095
+ }
7096
+ .squatch-referrals-value.pending {
7097
+ color: ${this.pendingcolor};
7098
+ }
7099
+ .squatch-referrals-value.referrer {
7100
+ color: ${this.rewardcolor};
7101
+ }
7102
+ .squatch-referrals-value.expired {
7103
+ color: ${this.expiredcolor};
7104
+ }
7105
+ .squatch-value-contents.expired {
7106
+ color: ${this.expiredcolor};
7107
+ }
7108
+ .squatch-referrals-icon.icon-attention.expired {
7109
+ color: ${this.expiredcolor};
7110
+ }
7111
+ .squatch-referrals-value.cancelled {
7112
+ color: ${this.cancelledcolor};
7113
+ }
7114
+ .squatch-value-contents.cancelled {
7115
+ color: ${this.cancelledcolor};
7116
+ }
7117
+ .squatch-referrals-icon.icon-attention.cancelled {
7118
+ color: ${this.cancelledcolor};
7119
+ }
7120
+ .squatch-referrals-heading {
7121
+ color: ${this.referralnamecolor};
7122
+ }
7123
+ .squatch-referrals-description,
7124
+ .squatch-referrals-value-content {
7125
+ color: ${this.referraltextcolor};
7126
+ }
7127
+ .squatch-customer-note {
7128
+ color: ${this.customernotecolor || "darkslategray"};
7129
+ }
7130
+ .squatch-referrals-scroll-action {
7131
+ font-family: ${"inherit"};
7132
+ }
7133
7133
  `;
7134
7134
  const totalReferralsCount = this.showreferrer && this.referredBy
7135
7135
  ? this.referralsCount + 1
7136
7136
  : this.referralsCount;
7137
7137
  return !this.ishidden && totalReferralsCount > 0 ? (
7138
7138
  // Referral List when not hidden and 1 or more referrals
7139
- h("div", { class: `squatch-referrals ${clz}` }, h("div", { class: "squatch-referrals-scroll-container" }, referralsRow, referredByRow), h("div", { class: "squatch-referrals-scroll-action-container" }, h("button", { class: `
7139
+ h("div", { class: `squatch-referrals ${clz}` }, h("div", { class: "squatch-referrals-scroll-container" }, referralsRow, referredByRow), h("div", { class: "squatch-referrals-scroll-action-container" }, h("button", { class: `
7140
7140
  squatch-referrals-scroll-action previous ${this.loading
7141
7141
  ? "disabled"
7142
7142
  : this.offset === 0
7143
7143
  ? "disabled"
7144
- : ""}
7145
- `, onClick: (event) => this.paginate(this.offset - 3, event) }, this.paginateless), h("button", { class: `
7144
+ : ""}
7145
+ `, onClick: (event) => this.paginate(this.offset - 3, event) }, this.paginateless), h("button", { class: `
7146
7146
  squatch-referrals-scroll-action view-more ${this.loading
7147
7147
  ? "disabled"
7148
7148
  : this.showreferrer && this.referredBy
@@ -7151,7 +7151,7 @@ const ReferralList = class {
7151
7151
  : ""
7152
7152
  : this.offset >= this.referralsCount - 3
7153
7153
  ? "disabled"
7154
- : ""}
7154
+ : ""}
7155
7155
  `, "view-more": true, onClick: (event) => this.paginate(this.offset + 3, event) }, this.paginatemore)))) : (
7156
7156
  // 'No Referrals Yet' button if this.referralCount < 1
7157
7157
  h("div", { class: "squatch-referrals-scroll-action-container" }, h("button", { disabled: true, class: "squatch-no-referrals-yet" }, this.noreferralsyet)));
@@ -7188,25 +7188,25 @@ const ShareButton = class {
7188
7188
  const isMobileiOS = detectMobileSafari() || detectMobileChrome();
7189
7189
  const target = isMobileiOS ? "_parent" : "_blank";
7190
7190
  const iconClass = `icon icon-${this.icon}`;
7191
- const style = css `
7192
- background-color: ${this.backgroundcolor};
7193
- border: 1px solid ${this.backgroundcolor};
7194
- color: ${this.textcolor};
7195
-
7196
- &:hover {
7197
- background: ${shadeColor(this.backgroundcolor, 10)};
7198
- border-color: ${shadeColor(this.backgroundcolor, 12)};
7199
- color: ${this.textcolor};
7200
- }
7201
-
7202
- &:focus {
7203
- color: ${this.textcolor};
7204
- }
7205
- .icon-${this.icon} {
7206
- left: ${this.iconhorizontal}px;
7207
- top: ${this.iconvertical}px;
7208
- font-size: ${this.iconsize}em;
7209
- }
7191
+ const style = css `
7192
+ background-color: ${this.backgroundcolor};
7193
+ border: 1px solid ${this.backgroundcolor};
7194
+ color: ${this.textcolor};
7195
+
7196
+ &:hover {
7197
+ background: ${shadeColor(this.backgroundcolor, 10)};
7198
+ border-color: ${shadeColor(this.backgroundcolor, 12)};
7199
+ color: ${this.textcolor};
7200
+ }
7201
+
7202
+ &:focus {
7203
+ color: ${this.textcolor};
7204
+ }
7205
+ .icon-${this.icon} {
7206
+ left: ${this.iconhorizontal}px;
7207
+ top: ${this.iconvertical}px;
7208
+ font-size: ${this.iconsize}em;
7209
+ }
7210
7210
  `;
7211
7211
  const classes = [
7212
7212
  `squatch-share-btn`,
@@ -7255,20 +7255,20 @@ const ShareButtonContainer = class {
7255
7255
  */
7256
7256
  this.facebookiconsize = 1.2;
7257
7257
  /**
7258
- * @uiName Twitter Icon
7259
- * @uiGroup Twitter
7258
+ * @uiName X Icon
7259
+ * @uiGroup X
7260
7260
  */
7261
7261
  this.twittericon = "twitter";
7262
7262
  /**
7263
- * Number to horizontally align the twitter button icon
7263
+ * Number to horizontally align the X button icon
7264
7264
  *
7265
- * @uiName Twitter Icon Horizontal
7266
- * @uiGroup Twitter
7265
+ * @uiName X Icon Horizontal
7266
+ * @uiGroup X
7267
7267
  */
7268
7268
  this.twittericonhorizontal = 9;
7269
7269
  /**
7270
- * @uiName Twitter Icon Size
7271
- * @uiGroup Twitter
7270
+ * @uiName X Icon Size
7271
+ * @uiGroup X
7272
7272
  */
7273
7273
  this.twittericonsize = 1.2;
7274
7274
  /**
@@ -7464,8 +7464,8 @@ const StatComponent = class {
7464
7464
  this.statTypeUpdated.emit(stat);
7465
7465
  }
7466
7466
  render() {
7467
- const clz = css `
7468
- color: ${this.statcolor};
7467
+ const clz = css `
7468
+ color: ${this.statcolor};
7469
7469
  `;
7470
7470
  return (!this.ishidden && (h("div", { class: clz }, h("div", { class: "stat-value" }, this.statvalue), h("div", { class: "stat-description" }, this.statdescription))));
7471
7471
  }
@@ -7864,10 +7864,10 @@ const StatsContainer = class {
7864
7864
  this.loading = false;
7865
7865
  }
7866
7866
  render() {
7867
- const containerStyle = css `
7868
- display: ${this.ishidden ? "none" : "inherit"};
7869
- padding-top: ${this.paddingtop}px;
7870
- padding-bottom: ${this.paddingbottom}px;
7867
+ const containerStyle = css `
7868
+ display: ${this.ishidden ? "none" : "inherit"};
7869
+ padding-top: ${this.paddingtop}px;
7870
+ padding-bottom: ${this.paddingbottom}px;
7871
7871
  `;
7872
7872
  return (h("div", { class: containerStyle }, h("slot", null)));
7873
7873
  }
@@ -10479,26 +10479,26 @@ const TextComponent = class {
10479
10479
  }
10480
10480
  render() {
10481
10481
  const regex = /\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/i;
10482
- const textStyle = css `
10483
- font-family: ${this.fontfamily || "inherit"};
10484
- font-size: ${this.fontsize ? this.fontsize + "px" : "inherit"};
10485
- font-weight: ${this.fontweight ? this.fontweight : "inherit"};
10486
- text-align: ${this.textalign};
10487
- color: ${this.color || "inherit"};
10488
- padding-top: ${this.paddingtop ? this.paddingtop + "px" : "inherit"};
10482
+ const textStyle = css `
10483
+ font-family: ${this.fontfamily || "inherit"};
10484
+ font-size: ${this.fontsize ? this.fontsize + "px" : "inherit"};
10485
+ font-weight: ${this.fontweight ? this.fontweight : "inherit"};
10486
+ text-align: ${this.textalign};
10487
+ color: ${this.color || "inherit"};
10488
+ padding-top: ${this.paddingtop ? this.paddingtop + "px" : "inherit"};
10489
10489
  padding-bottom: ${this.paddingbottom
10490
10490
  ? this.paddingbottom + "px"
10491
- : "inherit"};
10492
- overflow-wrap: break-word;
10491
+ : "inherit"};
10492
+ overflow-wrap: break-word;
10493
10493
  `;
10494
- const divStyle = css `
10494
+ const divStyle = css `
10495
10495
  background: ${this.background
10496
10496
  ? this.background.match(regex)
10497
10497
  ? `url(${this.background}) no-repeat center center;`
10498
10498
  : this.background
10499
- : "inherit"};
10500
- height: ${this.height || "inherit"};
10501
- background-size: contain;
10499
+ : "inherit"};
10500
+ height: ${this.height || "inherit"};
10501
+ background-size: contain;
10502
10502
  `;
10503
10503
  const content = this.ismarkdown ? (h("div", { innerHTML: marked(this.text) })) : (this.text);
10504
10504
  return (!this.ishidden && (h("div", { class: divStyle }, h("p", { class: textStyle }, content))));
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h } from './index-8ea8b6d8.js';
2
2
  import './_commonjsHelpers-1d681858.js';
3
- import { A as API } from './WidgetHost-903fb7cc.js';
3
+ import { A as API } from './WidgetHost-9c337319.js';
4
4
 
5
5
  const referralCodeCss = "sqh-referral-code{display:inline}sqh-referral-code span{font-family:inherit;font-size:inherit;color:inherit;overflow-wrap:break-word}";
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-8ea8b6d8.js';
2
2
  import './_commonjsHelpers-1d681858.js';
3
- import { A as API, w as widgetIdent } from './WidgetHost-903fb7cc.js';
3
+ import { A as API, w as widgetIdent } from './WidgetHost-9c337319.js';
4
4
  var closeButtonCss = "sqh-close-button .squatch-header-close{position:absolute;top:4px;right:6px;background:transparent;border:0;color:#4486e1;font-size:12px}sqh-close-button .squatch-header-close:hover{text-decoration:underline}";
5
5
  var CloseButton = /** @class */ (function () {
6
6
  function CloseButton(hostRef) {
@@ -4,7 +4,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
4
4
  };
5
5
  import { r as registerInstance, h, c as createEvent, g as getElement } from './index-8ea8b6d8.js';
6
6
  import { c as createCommonjsModule, a as commonjsGlobal, u as unwrapExports } from './_commonjsHelpers-1d681858.js';
7
- import { A as API } from './WidgetHost-903fb7cc.js';
7
+ import { A as API } from './WidgetHost-9c337319.js';
8
8
  /////////////////////////////////////
9
9
  ////// ////
10
10
  ///// Color Utility Functions /////
@@ -2187,7 +2187,7 @@ var GlobalContainer = /** @class */ (function () {
2187
2187
  var style = css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n font-family: ", ";\n position: relative;\n max-width: ", ";\n "], ["\n background-color: ", ";\n font-family: ", ";\n position: relative;\n max-width: ", ";\n "])), this.background, this.fontfamily, this.maxwidth);
2188
2188
  var robotoFont = (h("link", { href: "https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap", rel: "stylesheet" }));
2189
2189
  var artifaktFont = (h("link", { href: "https://static-dc.autodesk.net/etc/designs/v201903181748/templates-general/structure/fonts/artifakt/clientlibs/artifakt.css", rel: "stylesheet" }));
2190
- return (h("div", { class: style }, this.fontfamily == "Roboto" ? robotoFont : "", this.fontfamily == "Artifakt Element" ? artifaktFont : "", h("slot", null), this.poweredby ? (h("a", { class: "sqh-attribution", href: "https://www.saasquatch.com/?utm_source=app&utm_medium=user-widget&utm_campaign=referral-widget", target: "_blank" }, "Powered By Saasquatch")) : (""), h(this.LoadingState, { loadingcolor: this.loadingcolor })));
2190
+ return (h("div", { class: style }, this.fontfamily == "Roboto" ? robotoFont : "", this.fontfamily == "Artifakt Element" ? artifaktFont : "", h("slot", null), this.poweredby ? (h("a", { class: "sqh-attribution", href: "https://www.saasquatch.com/?utm_source=app&utm_medium=user-widget&utm_campaign=referral-widget", target: "_blank" }, "Powered With Saasquatch By Impact.com")) : (""), h(this.LoadingState, { loadingcolor: this.loadingcolor })));
2191
2191
  };
2192
2192
  return GlobalContainer;
2193
2193
  }());
@@ -6774,20 +6774,20 @@ var ShareButtonContainer = /** @class */ (function () {
6774
6774
  */
6775
6775
  this.facebookiconsize = 1.2;
6776
6776
  /**
6777
- * @uiName Twitter Icon
6778
- * @uiGroup Twitter
6777
+ * @uiName X Icon
6778
+ * @uiGroup X
6779
6779
  */
6780
6780
  this.twittericon = "twitter";
6781
6781
  /**
6782
- * Number to horizontally align the twitter button icon
6782
+ * Number to horizontally align the X button icon
6783
6783
  *
6784
- * @uiName Twitter Icon Horizontal
6785
- * @uiGroup Twitter
6784
+ * @uiName X Icon Horizontal
6785
+ * @uiGroup X
6786
6786
  */
6787
6787
  this.twittericonhorizontal = 9;
6788
6788
  /**
6789
- * @uiName Twitter Icon Size
6790
- * @uiGroup Twitter
6789
+ * @uiName X Icon Size
6790
+ * @uiGroup X
6791
6791
  */
6792
6792
  this.twittericonsize = 1.2;
6793
6793
  /**
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h } from './index-8ea8b6d8.js';
2
2
  import './_commonjsHelpers-1d681858.js';
3
- import { A as API } from './WidgetHost-903fb7cc.js';
3
+ import { A as API } from './WidgetHost-9c337319.js';
4
4
  var referralCodeCss = "sqh-referral-code{display:inline}sqh-referral-code span{font-family:inherit;font-size:inherit;color:inherit;overflow-wrap:break-word}";
5
5
  var ReferralCode = /** @class */ (function () {
6
6
  function ReferralCode(hostRef) {
@@ -2,7 +2,7 @@
2
2
  * @uiName Share Button Container
3
3
  * @canvasRenderer always-replace
4
4
  * @exampleGroup Sharing
5
- * @example Share Button Group - <sqh-share-button-container ishidden="false" emaildisplayrule="mobile-and-desktop" emailtext="Email" emailtextcolor="#ffffff" emailbackgroundcolor="#4b4d50" facebookdisplayrule="mobile-and-desktop" facebooktext="Facebook" facebooktextcolor="#ffffff" facebookbackgroundcolor="#234079" twitterdisplayrule="mobile-and-desktop" twittertext="Twitter" twittertextcolor="#ffffff" twitterbackgroundcolor="#4797d2" smsdisplayrule="mobile-only" smstext="SMS" smstextcolor="#ffffff" smsbackgroundcolor="#7bbf38" whatsappdisplayrule="mobile-only" whatsapptext="WhatsApp" whatsapptextcolor="#ffffff" whatsappbackgroundcolor="#25D366" linkedindisplayrule="hidden" linkedintext="LinkedIn" linkedintextcolor="#ffffff" linkedinbackgroundcolor="#0084b9" pinterestdisplayrule="hidden" pinteresttext="Pinterest" pinteresttextcolor="#ffffff" pinterestbackgroundcolor="#cb2027" messengerdisplayrule="hidden" messengertext="Messenger" messengertextcolor="#ffffff" messengerbackgroundcolor="#0084ff" linedisplayrule="mobile-only" linetext="Line Messenger" linetextcolor="#ffffff" linebackgroundcolor="#00c300"></sqh-share-button-container>
5
+ * @example Share Button Group - <sqh-share-button-container ishidden="false" emaildisplayrule="mobile-and-desktop" emailtext="Email" emailtextcolor="#ffffff" emailbackgroundcolor="#4b4d50" facebookdisplayrule="mobile-and-desktop" facebooktext="Facebook" facebooktextcolor="#ffffff" facebookbackgroundcolor="#234079" twitterdisplayrule="mobile-and-desktop" twittertext="X" twittertextcolor="#ffffff" twitterbackgroundcolor="#000000" smsdisplayrule="mobile-only" smstext="SMS" smstextcolor="#ffffff" smsbackgroundcolor="#7bbf38" whatsappdisplayrule="mobile-only" whatsapptext="WhatsApp" whatsapptextcolor="#ffffff" whatsappbackgroundcolor="#25D366" linkedindisplayrule="hidden" linkedintext="LinkedIn" linkedintextcolor="#ffffff" linkedinbackgroundcolor="#0084b9" pinterestdisplayrule="hidden" pinteresttext="Pinterest" pinteresttextcolor="#ffffff" pinterestbackgroundcolor="#cb2027" messengerdisplayrule="hidden" messengertext="Messenger" messengertextcolor="#ffffff" messengerbackgroundcolor="#0084ff" linedisplayrule="mobile-only" linetext="Line Messenger" linetextcolor="#ffffff" linebackgroundcolor="#00c300"></sqh-share-button-container>
6
6
  */
7
7
  export declare class ShareButtonContainer {
8
8
  /**
@@ -141,64 +141,64 @@ export declare class ShareButtonContainer {
141
141
  /**
142
142
  * Show and hide button depending on what type of device the user is on
143
143
  *
144
- * @uiName Twitter Display Rule
145
- * @uiGroup Twitter
144
+ * @uiName X Display Rule
145
+ * @uiGroup X
146
146
  * @uiEnum ["mobile-and-desktop","mobile-only","desktop-only","hidden"]
147
147
  * @uiEnumNames ["Mobile and Desktop","Mobile Only","Desktop Only","Hide"]
148
148
  * @default mobile-and-desktop
149
149
  */
150
150
  twitterdisplayrule: string;
151
151
  /**
152
- * @uiName Twitter Text
153
- * @uiGroup Twitter
154
- * @default Twitter
152
+ * @uiName X Text
153
+ * @uiGroup X
154
+ * @default X
155
155
  */
156
156
  twittertext: string;
157
157
  /**
158
- * Background color of the twitter button
158
+ * Background color of the X button
159
159
  *
160
- * @uiName Twitter Background Color
161
- * @uiGroup Twitter
160
+ * @uiName X Background Color
161
+ * @uiGroup X
162
162
  * @uiWidget color
163
- * @default #4797d2
163
+ * @default #000000
164
164
  */
165
165
  twitterbackgroundcolor: string;
166
166
  /**
167
- * @uiName Twitter Text Color
168
- * @uiGroup Twitter
167
+ * @uiName X Text Color
168
+ * @uiGroup X
169
169
  * @uiWidget color
170
170
  * @default #ffffff
171
171
  */
172
172
  twittertextcolor: string;
173
173
  /**
174
- * @uiName Twitter Icon
175
- * @uiGroup Twitter
174
+ * @uiName X Icon
175
+ * @uiGroup X
176
176
  */
177
177
  twittericon: string;
178
178
  /**
179
179
  * CSS class name for additional styling.
180
180
  *
181
- * @uiName Twitter Class Name
182
- * @uiGroup Twitter
181
+ * @uiName X Class Name
182
+ * @uiGroup X
183
183
  */
184
184
  twitterclassName: string;
185
185
  /**
186
- * Number to horizontally align the twitter button icon
186
+ * Number to horizontally align the X button icon
187
187
  *
188
- * @uiName Twitter Icon Horizontal
189
- * @uiGroup Twitter
188
+ * @uiName X Icon Horizontal
189
+ * @uiGroup X
190
190
  */
191
191
  twittericonhorizontal: number;
192
192
  /**
193
- * Number to vertically align the twitter button icon
193
+ * Number to vertically align the X button icon
194
194
  *
195
- * @uiName Twitter Icon Vertical
196
- * @uiGroup Twitter
195
+ * @uiName X Icon Vertical
196
+ * @uiGroup X
197
197
  */
198
198
  twittericonvertical: number;
199
199
  /**
200
- * @uiName Twitter Icon Size
201
- * @uiGroup Twitter
200
+ * @uiName X Icon Size
201
+ * @uiGroup X
202
202
  */
203
203
  twittericonsize: number;
204
204
  twitterurl: string;