@saasquatch/mint-components 2.1.12 → 2.1.14-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.
Files changed (43) hide show
  1. package/dist/cjs/{ShadowViewAddon-229dd1c1.js → ShadowViewAddon-c97e80de.js} +1 -1
  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 → sqm-big-stat_46.cjs.entry.js} +75 -3
  5. package/dist/cjs/sqm-stencilbook.cjs.entry.js +55 -1
  6. package/dist/collection/collection-manifest.json +1 -0
  7. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +1 -1
  8. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +3 -2
  9. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
  10. package/dist/collection/components/sqm-user-attribute/UserAttribute.stories.js +43 -0
  11. package/dist/collection/components/sqm-user-attribute/sqm-user-attribute-view.js +19 -0
  12. package/dist/collection/components/sqm-user-attribute/sqm-user-attribute.js +175 -0
  13. package/dist/collection/components/sqm-user-attribute/useUserAttribute.js +30 -0
  14. package/dist/esm/{ShadowViewAddon-cc32bca2.js → ShadowViewAddon-33f1a8f7.js} +1 -1
  15. package/dist/esm/loader.js +1 -1
  16. package/dist/esm/mint-components.js +1 -1
  17. package/dist/esm/{sqm-big-stat_45.entry.js → sqm-big-stat_46.entry.js} +75 -4
  18. package/dist/esm/sqm-stencilbook.entry.js +55 -1
  19. package/dist/esm-es5/{ShadowViewAddon-cc32bca2.js → ShadowViewAddon-33f1a8f7.js} +1 -1
  20. package/dist/esm-es5/loader.js +1 -1
  21. package/dist/esm-es5/mint-components.js +1 -1
  22. package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -0
  23. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  24. package/dist/mint-components/mint-components.esm.js +1 -1
  25. package/dist/mint-components/{p-8300e806.js → p-08930b83.js} +1 -1
  26. package/dist/mint-components/{p-b3f18de4.entry.js → p-7462403c.entry.js} +2 -2
  27. package/dist/mint-components/{p-e846e3bb.system.js → p-78b40f71.system.js} +1 -1
  28. package/dist/mint-components/{p-f611c11a.system.entry.js → p-9de4d6d1.system.entry.js} +1 -1
  29. package/dist/mint-components/p-ca098be1.system.js +1 -1
  30. package/dist/mint-components/{p-a3eefe38.entry.js → p-e43a8421.entry.js} +29 -21
  31. package/dist/mint-components/p-fb637e0a.system.entry.js +1 -0
  32. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +1 -1
  33. package/dist/types/components/sqm-user-attribute/UserAttribute.stories.d.ts +11 -0
  34. package/dist/types/components/sqm-user-attribute/sqm-user-attribute-view.d.ts +8 -0
  35. package/dist/types/components/sqm-user-attribute/sqm-user-attribute.d.ts +45 -0
  36. package/dist/types/components/sqm-user-attribute/useUserAttribute.d.ts +3 -0
  37. package/dist/types/components.d.ts +80 -2
  38. package/docs/docs.docx +0 -0
  39. package/docs/raisins.json +1 -1
  40. package/grapesjs/grapesjs.js +1 -1
  41. package/package.json +1 -1
  42. package/dist/esm-es5/sqm-big-stat_45.entry.js +0 -1
  43. package/dist/mint-components/p-7a673f14.system.entry.js +0 -1
@@ -29,7 +29,7 @@ import './utilities-77b1e0cc.js';
29
29
  import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-f84c04cf.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-cc32bca2.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-33f1a8f7.js';
33
33
  import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-200c9df8.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-19d81a2b.js';
35
35
  import { t as taxTypeToName, L as LoadingView } from './data-12e6aae1.js';
@@ -18840,6 +18840,59 @@ const UserInfoFormView = /*#__PURE__*/Object.freeze({
18840
18840
  DisabledForm: DisabledForm
18841
18841
  });
18842
18842
 
18843
+ const scenario$G = "@owner:zach @author:zach\nFeature: User Attribute\n Displays a user's custom field value.\n\n Background: A user exists\n Given a user is logged in\n And the user has custom fields\n\n @motivating\n Scenario: A custom field value is displayed\n Given the component has prop \"value\" with value \"firstName\"\n And the user has a custom field \"firstName\" with value \"John\"\n When the component is rendered\n Then the text \"John\" is displayed\n\n @landmine\n Scenario: Nothing is rendered when the custom field does not exist\n Given the component has prop \"value\" with value \"nonExistentField\"\n And the user does not have a custom field \"nonExistentField\"\n Then component is not rendered\n And nothing is displayed\n\n @motivating\n Scenario: A loading skeleton is shown while data is loading\n Given the component is loading user data\n When the component is rendered\n Then a loading skeleton is displayed\n\n @motivating\n Scenario Outline: Optional styling props can be applied to customize the text appearance\n Given the component has prop <prop> with value <value>\n When the component is rendered\n Then the text is displayed with <cssProperty> set to <value>\n\n Examples:\n | prop | value | cssProperty |\n | fontSize | 24 | font-size |\n | color | #E91E63 | color |\n | fontWeight | 700 | font-weight |\n\n @minutia\n Scenario: Style props are optional and default to no custom styling\n Given the component has no style props set\n When the component is rendered\n Then the text is displayed with default browser styles\n";
18844
+
18845
+ const UserAttribute_stories = {
18846
+ title: "Components/User Attribute",
18847
+ parameters: {
18848
+ scenario: scenario$G,
18849
+ },
18850
+ };
18851
+ const Default$x = () => {
18852
+ return (h("sqm-user-attribute", { demoData: {
18853
+ loading: false,
18854
+ value: "impact.com",
18855
+ } }));
18856
+ };
18857
+ /*
18858
+ Verifies that an sqm-user-attribute with no valid value
18859
+ collapses completely and does not create extra space
18860
+ (e.g. a double gap) in a flex layout.
18861
+ */
18862
+ const InvalidValue = () => {
18863
+ return (h("div", { style: { display: "flex", flexDirection: "column", gap: "16px" } },
18864
+ h("div", { style: { background: "#e0e0e0", padding: "8px" } }, "Above"),
18865
+ h("sqm-user-attribute", { demoData: {
18866
+ loading: false,
18867
+ value: null,
18868
+ } }),
18869
+ h("div", { style: { background: "#e0e0e0", padding: "8px" } }, "Below")));
18870
+ };
18871
+ const Loading$h = () => {
18872
+ return (h("sqm-user-attribute", { demoData: {
18873
+ loading: true,
18874
+ value: "impact.com",
18875
+ } }));
18876
+ };
18877
+ const WithCustomStyles = () => {
18878
+ return (h("sqm-user-attribute", { demoData: {
18879
+ loading: false,
18880
+ value: "impact.com",
18881
+ fontSize: 24,
18882
+ color: "#4CAF50",
18883
+ fontWeight: 700,
18884
+ } }));
18885
+ };
18886
+
18887
+ const UserAttribute = /*#__PURE__*/Object.freeze({
18888
+ __proto__: null,
18889
+ 'default': UserAttribute_stories,
18890
+ Default: Default$x,
18891
+ InvalidValue: InvalidValue,
18892
+ Loading: Loading$h,
18893
+ WithCustomStyles: WithCustomStyles
18894
+ });
18895
+
18843
18896
  function deepFreeze(obj) {
18844
18897
  if (obj instanceof Map) {
18845
18898
  obj.clear = obj.delete = obj.set = function () {
@@ -21533,6 +21586,7 @@ const stories = [
21533
21586
  TaxAndCashRewardsTable,
21534
21587
  TaxAndCashReferralTableRewardsCell,
21535
21588
  TaxAndCashReferralTable$1,
21589
+ UserAttribute,
21536
21590
  ];
21537
21591
  const StencilStorybook = class {
21538
21592
  constructor(hostRef) {