@saasquatch/mint-components 2.1.8-25 → 2.1.8-27

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 (28) hide show
  1. package/dist/cjs/{ShadowViewAddon-247ccfa4.js → ShadowViewAddon-e1e20b3a.js} +7 -4
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-big-stat_45.cjs.entry.js +38 -38
  5. package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
  6. package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +7 -4
  7. package/dist/collection/components/sqm-share-link/sqm-share-link.js +114 -114
  8. package/dist/esm/{ShadowViewAddon-e7e73e36.js → ShadowViewAddon-abfb02b8.js} +7 -4
  9. package/dist/esm/loader.js +1 -1
  10. package/dist/esm/mint-components.js +1 -1
  11. package/dist/esm/sqm-big-stat_45.entry.js +38 -38
  12. package/dist/esm/sqm-stencilbook.entry.js +1 -1
  13. package/dist/esm-es5/{ShadowViewAddon-e7e73e36.js → ShadowViewAddon-abfb02b8.js} +1 -1
  14. package/dist/esm-es5/loader.js +1 -1
  15. package/dist/esm-es5/mint-components.js +1 -1
  16. package/dist/esm-es5/sqm-big-stat_45.entry.js +1 -1
  17. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  18. package/dist/mint-components/mint-components.esm.js +1 -1
  19. package/dist/mint-components/{p-365363b5.entry.js → p-38491d20.entry.js} +2 -2
  20. package/dist/mint-components/p-4b365f1f.system.js +1 -1
  21. package/dist/mint-components/{p-c7f4a587.entry.js → p-5167f62c.entry.js} +1 -1
  22. package/dist/mint-components/{p-4aede05c.system.entry.js → p-608be5f4.system.entry.js} +1 -1
  23. package/dist/mint-components/{p-0a02a7a5.system.js → p-95304aa0.system.js} +1 -1
  24. package/dist/mint-components/{p-3be90659.js → p-97b2aabc.js} +1 -1
  25. package/dist/mint-components/{p-f62812ff.system.entry.js → p-d36f7dcf.system.entry.js} +1 -1
  26. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +37 -37
  27. package/docs/docs.docx +0 -0
  28. package/package.json +1 -1
@@ -27,7 +27,7 @@ const useInstantAccessRegistration = require('./useInstantAccessRegistration-651
27
27
  const useLeadFormState = require('./useLeadFormState-76d3b511.js');
28
28
  const utilities = require('./utilities-096934ea.js');
29
29
  const ErrorView = require('./ErrorView-ee7b0f36.js');
30
- const ShadowViewAddon = require('./ShadowViewAddon-247ccfa4.js');
30
+ const ShadowViewAddon = require('./ShadowViewAddon-e1e20b3a.js');
31
31
  require('./sqm-portal-container-view-70a47420.js');
32
32
  const data = require('./data-e83f8a41.js');
33
33
  const extractProps = require('./extractProps-e9c55ba8.js');
@@ -6123,51 +6123,61 @@ const ShareLink = class {
6123
6123
  */
6124
6124
  this.allowCustomization = false;
6125
6125
  /**
6126
- * Displayed below the share link.
6126
+ * Text for the cancel button in editing mode
6127
6127
  *
6128
- * @uiName Customize link button label
6128
+ * @uiName Cancel button label
6129
6129
  * @uiType string
6130
6130
  * @uiGroup Customizable Vanity Link
6131
6131
  * @requiredFlavor impact
6132
6132
  */
6133
- this.customizeLinkButtonLabel = "Customize Link";
6133
+ this.cancelLabelText = "Cancel";
6134
6134
  /**
6135
- * Text for the save button in editing mode
6135
+ * Tooltip text shown when link customization is disabled
6136
6136
  *
6137
- * @uiName Save button label
6137
+ * @uiName Customize disabled tooltip
6138
6138
  * @uiType string
6139
6139
  * @uiGroup Customizable Vanity Link
6140
6140
  * @requiredFlavor impact
6141
6141
  */
6142
- this.saveLabelText = "Save";
6142
+ this.customizeDisabledTooltip = "Link customization is not available.";
6143
6143
  /**
6144
- * Text for the cancel button in editing mode
6144
+ * Displayed below the share link.
6145
6145
  *
6146
- * @uiName Cancel button label
6146
+ * @uiName Customize link button label
6147
6147
  * @uiType string
6148
6148
  * @uiGroup Customizable Vanity Link
6149
6149
  * @requiredFlavor impact
6150
6150
  */
6151
- this.cancelLabelText = "Cancel";
6151
+ this.customizeLinkButtonLabel = "Customize Link";
6152
6152
  /**
6153
- * Title of the error message shown when the link has already been taken
6153
+ * Message shown when the URL has been edited 5 times. To display a clickable link, use {supportLink} as a placeholder.
6154
6154
  *
6155
- * @uiName Link taken error title
6155
+ * @uiName Edit limit reached text
6156
6156
  * @uiType string
6157
+ * @uiWidget textarea
6157
6158
  * @uiGroup Customizable Vanity Link
6158
6159
  * @requiredFlavor impact
6159
6160
  */
6160
- this.linkTakenErrorTitle = "This link is already taken";
6161
+ this.editLimitReachedText = "5 edit limit reached. To make more changes, please contact {supportLink}.";
6161
6162
  /**
6162
- * Description text shown when the link has already been taken
6163
+ * Subtext shown while the user is customizing their URL.
6163
6164
  *
6164
- * @uiName Link taken error message
6165
+ * @uiName Edit limit text
6166
+ * @uiType string
6167
+ * @uiGroup Customizable Vanity Link
6168
+ * @requiredFlavor impact
6169
+ */
6170
+ this.editLimitText = "You can edit your link up to {editsRemaining} more times.";
6171
+ /**
6172
+ * Description text shown when the link contains invalid special characters.
6173
+ *
6174
+ * @uiName Invalid characters error description
6165
6175
  * @uiType string
6166
6176
  * @uiWidget textarea
6167
6177
  * @uiGroup Customizable Vanity Link
6168
6178
  * @requiredFlavor impact
6169
6179
  */
6170
- this.linkTakenErrorDescription = "Try adding numbers, a dash or underscore to create a unique link.";
6180
+ this.invalidCharactersErrorDescription = "Special characters can break the link when sharing.";
6171
6181
  /**
6172
6182
  * Title of the error message shown when the link contains invalid special characters.
6173
6183
  *
@@ -6178,24 +6188,24 @@ const ShareLink = class {
6178
6188
  */
6179
6189
  this.invalidCharactersErrorTitle = "Please use only letters, numbers, dashes and underscores";
6180
6190
  /**
6181
- * Description text shown when the link contains invalid special characters.
6191
+ * Description text shown when the link has already been taken
6182
6192
  *
6183
- * @uiName Invalid characters error description
6193
+ * @uiName Link taken error message
6184
6194
  * @uiType string
6185
6195
  * @uiWidget textarea
6186
6196
  * @uiGroup Customizable Vanity Link
6187
6197
  * @requiredFlavor impact
6188
6198
  */
6189
- this.invalidCharactersErrorDescription = "Special characters can break the link when sharing.";
6199
+ this.linkTakenErrorDescription = "Try adding numbers, a dash or underscore to create a unique link.";
6190
6200
  /**
6191
- * Title of the error message shown when the link contains profanity or brand names.
6201
+ * Title of the error message shown when the link has already been taken
6192
6202
  *
6193
- * @uiName Restricted words error title
6203
+ * @uiName Link taken error title
6194
6204
  * @uiType string
6195
6205
  * @uiGroup Customizable Vanity Link
6196
6206
  * @requiredFlavor impact
6197
6207
  */
6198
- this.restrictedWordsErrorTitle = "Please try a different link";
6208
+ this.linkTakenErrorTitle = "This link is already taken";
6199
6209
  /**
6200
6210
  * Description text shown when the link contains profanity or brand names.
6201
6211
  *
@@ -6207,24 +6217,23 @@ const ShareLink = class {
6207
6217
  */
6208
6218
  this.restrictedWordsErrorDescription = "This link contains a restricted word.";
6209
6219
  /**
6210
- * Subtext shown while the user is customizing their URL.
6220
+ * Title of the error message shown when the link contains profanity or brand names.
6211
6221
  *
6212
- * @uiName Edit limit text
6222
+ * @uiName Restricted words error title
6213
6223
  * @uiType string
6214
6224
  * @uiGroup Customizable Vanity Link
6215
6225
  * @requiredFlavor impact
6216
6226
  */
6217
- this.editLimitText = "You can edit your link up to {editsRemaining} more times.";
6227
+ this.restrictedWordsErrorTitle = "Please try a different link";
6218
6228
  /**
6219
- * Message shown when the URL has been edited 5 times. To display a clickable link, use {supportLink} as a placeholder.
6229
+ * Text for the save button in editing mode
6220
6230
  *
6221
- * @uiName Edit limit reached text
6231
+ * @uiName Save button label
6222
6232
  * @uiType string
6223
- * @uiWidget textarea
6224
6233
  * @uiGroup Customizable Vanity Link
6225
6234
  * @requiredFlavor impact
6226
6235
  */
6227
- this.editLimitReachedText = "5 edit limit reached. To make more changes, please contact {supportLink}.";
6236
+ this.saveLabelText = "Save";
6228
6237
  /**
6229
6238
  * Display text for the support link in the edit limit reached message
6230
6239
  *
@@ -6234,15 +6243,6 @@ const ShareLink = class {
6234
6243
  * @requiredFlavor impact
6235
6244
  */
6236
6245
  this.supportLinkText = "Support";
6237
- /**
6238
- * Tooltip text shown when link customization is disabled
6239
- *
6240
- * @uiName Customize disabled tooltip
6241
- * @uiType string
6242
- * @uiGroup Customizable Vanity Link
6243
- * @requiredFlavor impact
6244
- */
6245
- this.customizeDisabledTooltip = "Link customization is not available.";
6246
6246
  domContextHooks_module.h$1(this);
6247
6247
  }
6248
6248
  disconnectedCallback() { }
@@ -33,7 +33,7 @@ require('./utilities-096934ea.js');
33
33
  const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-6b1acd90.js');
34
34
  require('./ErrorView-ee7b0f36.js');
35
35
  const sqmQrCodeView = require('./sqm-qr-code-view-1f2daa76.js');
36
- const ShadowViewAddon = require('./ShadowViewAddon-247ccfa4.js');
36
+ const ShadowViewAddon = require('./ShadowViewAddon-e1e20b3a.js');
37
37
  const sqmPortalContainerView = require('./sqm-portal-container-view-70a47420.js');
38
38
  const sqmUserInfoFormView = require('./sqm-user-info-form-view-93e996d6.js');
39
39
  const data = require('./data-e83f8a41.js');
@@ -18,25 +18,25 @@ export function ShareLinkView(props) {
18
18
  width: "100%",
19
19
  },
20
20
  CustomizeLinkText: {
21
+ paddingTop: "var(--sl-spacing-xx-small)",
21
22
  margin: "0",
22
23
  fontSize: "var(--sl-font-size-small)",
23
24
  fontWeight: "600",
24
25
  cursor: "pointer",
25
26
  color: "var(--sl-color-neutral-900)",
26
27
  textAlign: "left",
27
- padding: "var(--sl-spacing-small)",
28
28
  "&:hover": {
29
29
  textDecoration: "underline",
30
30
  },
31
31
  },
32
32
  CustomizeLinkDisabled: {
33
+ paddingTop: "var(--sl-spacing-xx-small)",
33
34
  margin: "0",
34
35
  fontSize: "var(--sl-font-size-small)",
35
36
  fontWeight: "600",
36
37
  color: "var(--sl-color-neutral-400)",
37
38
  cursor: "default",
38
39
  textAlign: "left",
39
- padding: "var(--sl-spacing-small)",
40
40
  },
41
41
  EditContainer: {
42
42
  display: "flex",
@@ -83,6 +83,7 @@ export function ShareLinkView(props) {
83
83
  color: "var(--sl-color-neutral-500)",
84
84
  },
85
85
  HelperText: {
86
+ paddingTop: "var(--sl-spacing-xx-small)",
86
87
  margin: "0",
87
88
  fontSize: "var(--sl-font-size-small)",
88
89
  color: "var(--sl-color-neutral-500)",
@@ -119,9 +120,11 @@ export function ShareLinkView(props) {
119
120
  cursor: "pointer",
120
121
  background: "none",
121
122
  border: "none",
122
- padding: "0",
123
123
  fontFamily: "var(--sl-font-sans)",
124
124
  color: "var(--sl-color-neutral-500)",
125
+ "&::part(label)": {
126
+ padding: "0",
127
+ },
125
128
  },
126
129
  LimitReachedContainer: {
127
130
  display: "flex",
@@ -165,7 +168,7 @@ export function ShareLinkView(props) {
165
168
  !!validationError ||
166
169
  !editValue ||
167
170
  editValue.length < minCharacters }, isSaving ? "Saving..." : saveLabelText),
168
- h("button", { class: sheet.classes.CancelButton, onClick: onCancel, disabled: isSaving }, cancelLabelText))));
171
+ h("sl-button", { type: "text", class: sheet.classes.CancelButton, onClick: onCancel, disabled: isSaving }, cancelLabelText))));
169
172
  }
170
173
  // Default / Customized / Limit reached states
171
174
  return (h("div", { class: sheet.classes.Container },