@saasquatch/mint-components 2.1.8-21 → 2.1.8-23

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.
@@ -4324,32 +4324,6 @@ function ShareLinkView(props) {
4324
4324
  gap: "var(--sl-spacing-medium)",
4325
4325
  alignItems: "center",
4326
4326
  },
4327
- SaveButton: {
4328
- cursor: "pointer",
4329
- fontFamily: "var(--sl-font-sans)",
4330
- fontSize: "var(--sl-font-size-small)",
4331
- fontWeight: "600",
4332
- padding: "var(--sl-spacing-x-small) var(--sl-spacing-medium)",
4333
- borderRadius: "var(--sqm-border-radius-normal, 4px)",
4334
- border: "1px solid var(--sl-color-neutral-900)",
4335
- background: "var(--sl-color-neutral-900)",
4336
- color: "#fff",
4337
- "&:disabled": {
4338
- opacity: "0.5",
4339
- cursor: "default",
4340
- },
4341
- },
4342
- CancelButton: {
4343
- margin: "0",
4344
- fontSize: "var(--sl-font-size-small)",
4345
- fontWeight: "600",
4346
- cursor: "pointer",
4347
- background: "none",
4348
- border: "none",
4349
- padding: "0",
4350
- fontFamily: "var(--sl-font-sans)",
4351
- color: "var(--sl-color-neutral-500)",
4352
- },
4353
4327
  LimitReachedContainer: {
4354
4328
  display: "flex",
4355
4329
  alignItems: "center",
@@ -4360,7 +4334,6 @@ function ShareLinkView(props) {
4360
4334
  const styleString = sheet.toString();
4361
4335
  const errorMessageType = (validationError === null || validationError === void 0 ? void 0 : validationError.code) === "EXISTING_CODE_CONFLICT" ? "info" : "warning";
4362
4336
  const showCharactersRemaining = charactersRemaining <= 14;
4363
- console.log(customizeUrl, limitReached, customizeDisabled, validationError, "customize URL state");
4364
4337
  // Editing state
4365
4338
  if (isEditing) {
4366
4339
  return (index.h("div", { class: sheet.classes.Container },
@@ -4383,12 +4356,12 @@ function ShareLinkView(props) {
4383
4356
  validationError.description)),
4384
4357
  isValidating && index.h("p", { class: sheet.classes.HelperText }, "Validating..."),
4385
4358
  index.h("div", { class: sheet.classes.ActionRow },
4386
- index.h("button", { class: sheet.classes.SaveButton, onClick: onSave, disabled: isSaving ||
4359
+ index.h("sl-button", { type: "primary", onClick: onSave, disabled: isSaving ||
4387
4360
  isValidating ||
4388
4361
  !!validationError ||
4389
4362
  !editValue ||
4390
4363
  editValue.length < minCharacters }, isSaving ? "Saving..." : saveLabelText),
4391
- index.h("button", { class: sheet.classes.CancelButton, onClick: onCancel, disabled: isSaving }, cancelLabelText))));
4364
+ index.h("sl-button", { type: "text", onClick: onCancel, disabled: isSaving }, cancelLabelText))));
4392
4365
  }
4393
4366
  // Default / Customized / Limit reached states
4394
4367
  return (index.h("div", { class: sheet.classes.Container },
@@ -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-643b83e2.js');
30
+ const ShadowViewAddon = require('./ShadowViewAddon-00d53485.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');
@@ -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-643b83e2.js');
36
+ const ShadowViewAddon = require('./ShadowViewAddon-00d53485.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');
@@ -97,32 +97,6 @@ export function ShareLinkView(props) {
97
97
  gap: "var(--sl-spacing-medium)",
98
98
  alignItems: "center",
99
99
  },
100
- SaveButton: {
101
- cursor: "pointer",
102
- fontFamily: "var(--sl-font-sans)",
103
- fontSize: "var(--sl-font-size-small)",
104
- fontWeight: "600",
105
- padding: "var(--sl-spacing-x-small) var(--sl-spacing-medium)",
106
- borderRadius: "var(--sqm-border-radius-normal, 4px)",
107
- border: "1px solid var(--sl-color-neutral-900)",
108
- background: "var(--sl-color-neutral-900)",
109
- color: "#fff",
110
- "&:disabled": {
111
- opacity: "0.5",
112
- cursor: "default",
113
- },
114
- },
115
- CancelButton: {
116
- margin: "0",
117
- fontSize: "var(--sl-font-size-small)",
118
- fontWeight: "600",
119
- cursor: "pointer",
120
- background: "none",
121
- border: "none",
122
- padding: "0",
123
- fontFamily: "var(--sl-font-sans)",
124
- color: "var(--sl-color-neutral-500)",
125
- },
126
100
  LimitReachedContainer: {
127
101
  display: "flex",
128
102
  alignItems: "center",
@@ -133,7 +107,6 @@ export function ShareLinkView(props) {
133
107
  const styleString = sheet.toString();
134
108
  const errorMessageType = (validationError === null || validationError === void 0 ? void 0 : validationError.code) === "EXISTING_CODE_CONFLICT" ? "info" : "warning";
135
109
  const showCharactersRemaining = charactersRemaining <= 14;
136
- console.log(customizeUrl, limitReached, customizeDisabled, validationError, "customize URL state");
137
110
  // Editing state
138
111
  if (isEditing) {
139
112
  return (h("div", { class: sheet.classes.Container },
@@ -156,12 +129,12 @@ export function ShareLinkView(props) {
156
129
  validationError.description)),
157
130
  isValidating && h("p", { class: sheet.classes.HelperText }, "Validating..."),
158
131
  h("div", { class: sheet.classes.ActionRow },
159
- h("button", { class: sheet.classes.SaveButton, onClick: onSave, disabled: isSaving ||
132
+ h("sl-button", { type: "primary", onClick: onSave, disabled: isSaving ||
160
133
  isValidating ||
161
134
  !!validationError ||
162
135
  !editValue ||
163
136
  editValue.length < minCharacters }, isSaving ? "Saving..." : saveLabelText),
164
- h("button", { class: sheet.classes.CancelButton, onClick: onCancel, disabled: isSaving }, cancelLabelText))));
137
+ h("sl-button", { type: "text", onClick: onCancel, disabled: isSaving }, cancelLabelText))));
165
138
  }
166
139
  // Default / Customized / Limit reached states
167
140
  return (h("div", { class: sheet.classes.Container },
@@ -4322,32 +4322,6 @@ function ShareLinkView(props) {
4322
4322
  gap: "var(--sl-spacing-medium)",
4323
4323
  alignItems: "center",
4324
4324
  },
4325
- SaveButton: {
4326
- cursor: "pointer",
4327
- fontFamily: "var(--sl-font-sans)",
4328
- fontSize: "var(--sl-font-size-small)",
4329
- fontWeight: "600",
4330
- padding: "var(--sl-spacing-x-small) var(--sl-spacing-medium)",
4331
- borderRadius: "var(--sqm-border-radius-normal, 4px)",
4332
- border: "1px solid var(--sl-color-neutral-900)",
4333
- background: "var(--sl-color-neutral-900)",
4334
- color: "#fff",
4335
- "&:disabled": {
4336
- opacity: "0.5",
4337
- cursor: "default",
4338
- },
4339
- },
4340
- CancelButton: {
4341
- margin: "0",
4342
- fontSize: "var(--sl-font-size-small)",
4343
- fontWeight: "600",
4344
- cursor: "pointer",
4345
- background: "none",
4346
- border: "none",
4347
- padding: "0",
4348
- fontFamily: "var(--sl-font-sans)",
4349
- color: "var(--sl-color-neutral-500)",
4350
- },
4351
4325
  LimitReachedContainer: {
4352
4326
  display: "flex",
4353
4327
  alignItems: "center",
@@ -4358,7 +4332,6 @@ function ShareLinkView(props) {
4358
4332
  const styleString = sheet.toString();
4359
4333
  const errorMessageType = (validationError === null || validationError === void 0 ? void 0 : validationError.code) === "EXISTING_CODE_CONFLICT" ? "info" : "warning";
4360
4334
  const showCharactersRemaining = charactersRemaining <= 14;
4361
- console.log(customizeUrl, limitReached, customizeDisabled, validationError, "customize URL state");
4362
4335
  // Editing state
4363
4336
  if (isEditing) {
4364
4337
  return (h("div", { class: sheet.classes.Container },
@@ -4381,12 +4354,12 @@ function ShareLinkView(props) {
4381
4354
  validationError.description)),
4382
4355
  isValidating && h("p", { class: sheet.classes.HelperText }, "Validating..."),
4383
4356
  h("div", { class: sheet.classes.ActionRow },
4384
- h("button", { class: sheet.classes.SaveButton, onClick: onSave, disabled: isSaving ||
4357
+ h("sl-button", { type: "primary", onClick: onSave, disabled: isSaving ||
4385
4358
  isValidating ||
4386
4359
  !!validationError ||
4387
4360
  !editValue ||
4388
4361
  editValue.length < minCharacters }, isSaving ? "Saving..." : saveLabelText),
4389
- h("button", { class: sheet.classes.CancelButton, onClick: onCancel, disabled: isSaving }, cancelLabelText))));
4362
+ h("sl-button", { type: "text", onClick: onCancel, disabled: isSaving }, cancelLabelText))));
4390
4363
  }
4391
4364
  // Default / Customized / Limit reached states
4392
4365
  return (h("div", { class: sheet.classes.Container },
@@ -23,7 +23,7 @@ import { u as useInstantAccessRegistration } from './useInstantAccessRegistratio
23
23
  import { R as RequiredPropsError, L as LEAD_FORM_STATE_CONTEXT, u as useLeadFormState } from './useLeadFormState-cec544ea.js';
24
24
  import { i as isEmpty } from './utilities-f05633da.js';
25
25
  import { E as ErrorView } from './ErrorView-74cb3af8.js';
26
- import { u as useDemoBigStat, W as useBigStat, B as BigStatView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, U as LeadDropdownFieldView, Q as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, f as ChangeMarktingView, P as PortalChangePasswordView, g as PortalFooterView, h as PortalFrameView, c as BaseRegistrationFormView, R as ReferralIframeView, i as RewardExchangeView, Y as demoRewardExchange, G as useShareButton, a as ShareButtonView, K as useShareLink, J as ShareLinkView, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-fcb6446a.js';
26
+ import { u as useDemoBigStat, W as useBigStat, B as BigStatView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, U as LeadDropdownFieldView, Q as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, f as ChangeMarktingView, P as PortalChangePasswordView, g as PortalFooterView, h as PortalFrameView, c as BaseRegistrationFormView, R as ReferralIframeView, i as RewardExchangeView, Y as demoRewardExchange, G as useShareButton, a as ShareButtonView, K as useShareLink, J as ShareLinkView, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-6bf9d141.js';
27
27
  import './sqm-portal-container-view-a8c708cd.js';
28
28
  import { T as TAX_CONTEXT_NAMESPACE, a as TAX_FORM_CONTEXT_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE, b as COUNTRIES_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, g as getCountryObj, c as USER_QUERY_NAMESPACE, G as GET_USER$2, d as COUNTRIES_QUERY_NAMESPACE, e as GET_COUNTRIES, h as FINANCE_NETWORK_SETTINGS_NAMESPACE, i as GET_FINANCE_NETWORK_SETTINGS, j as CURRENCIES_QUERY_NAMESPACE, k as GET_CURRENCIES, L as LoadingView } from './data-a6752028.js';
29
29
  import { p as parseStates, e as extractProps } from './extractProps-54064fb0.js';
@@ -29,7 +29,7 @@ import './utilities-f05633da.js';
29
29
  import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-cfbc0eb0.js';
30
30
  import './ErrorView-74cb3af8.js';
31
31
  import { Q as QrCodeView } from './sqm-qr-code-view-ce476721.js';
32
- import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, c as BaseRegistrationFormView, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, d as CheckboxFieldView, 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 PortalFrameView, R as ReferralIframeView, i as RewardExchangeView, r as rewardExchangeCustomErrorMsg, j as rewardExchangeLongText, k as rewardExchangeSelected, l as chooseAmountFixed, m as chooseAmountFixedNoDescription, n as chooseAmountVariable, o as chooseAmountVariableNoDescription, p as chooseAmountVariableDisabled, q as chooseAmountVariableUnavailable, s as confirmFixed, t as confirmVariable, v as redemptionError, w as queryError, x as success, y as successVariable, z as loading, A as empty$1, F as rewardExchange, G as useShareButton, J as ShareLinkView, K as useShareLink, M as ProgressBarView, O as ProgressBar$2, Q as LeadFormView, U as LeadDropdownFieldView, V as ShadowViewAddon } from './ShadowViewAddon-fcb6446a.js';
32
+ import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, c as BaseRegistrationFormView, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, d as CheckboxFieldView, 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 PortalFrameView, R as ReferralIframeView, i as RewardExchangeView, r as rewardExchangeCustomErrorMsg, j as rewardExchangeLongText, k as rewardExchangeSelected, l as chooseAmountFixed, m as chooseAmountFixedNoDescription, n as chooseAmountVariable, o as chooseAmountVariableNoDescription, p as chooseAmountVariableDisabled, q as chooseAmountVariableUnavailable, s as confirmFixed, t as confirmVariable, v as redemptionError, w as queryError, x as success, y as successVariable, z as loading, A as empty$1, F as rewardExchange, G as useShareButton, J as ShareLinkView, K as useShareLink, M as ProgressBarView, O as ProgressBar$2, Q as LeadFormView, U as LeadDropdownFieldView, V as ShadowViewAddon } from './ShadowViewAddon-6bf9d141.js';
33
33
  import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-a8c708cd.js';
34
34
  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-0ef6a58f.js';
35
35
  import { t as taxTypeToName, L as LoadingView } from './data-a6752028.js';