@saasquatch/mint-components 1.5.1-1 → 1.5.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 (56) hide show
  1. package/CHANGELOG.md +18 -6
  2. package/dist/cjs/{ShadowViewAddon-16dae1bc.js → ShadowViewAddon-8151e5d3.js} +2 -1
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/mint-components.cjs.js +1 -1
  5. package/dist/cjs/{sqm-big-stat_35.cjs.entry.js → sqm-big-stat_34.cjs.entry.js} +43 -164
  6. package/dist/cjs/sqm-stencilbook.cjs.entry.js +7 -107
  7. package/dist/collection/collection-manifest.json +0 -1
  8. package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +1 -1
  9. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +2 -1
  10. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -1
  11. package/dist/collection/components/sqm-checkbox-field/useCheckboxField.js +2 -2
  12. package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +3 -3
  13. package/dist/collection/components/sqm-dropdown-field/useDropdownField.js +2 -2
  14. package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +1 -1
  15. package/dist/collection/components/sqm-name-fields/useNameFields.js +2 -2
  16. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -1
  17. package/dist/collection/components/sqm-portal-register/useValidationState.js +2 -2
  18. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +0 -2
  19. package/dist/esm/{ShadowViewAddon-3908b50d.js → ShadowViewAddon-e42c07c6.js} +2 -1
  20. package/dist/esm/loader.js +1 -1
  21. package/dist/esm/mint-components.js +1 -1
  22. package/dist/esm/{sqm-big-stat_35.entry.js → sqm-big-stat_34.entry.js} +47 -167
  23. package/dist/esm/sqm-stencilbook.entry.js +7 -107
  24. package/dist/esm-es5/{ShadowViewAddon-3908b50d.js → ShadowViewAddon-e42c07c6.js} +1 -1
  25. package/dist/esm-es5/loader.js +1 -1
  26. package/dist/esm-es5/mint-components.js +1 -1
  27. package/dist/esm-es5/sqm-big-stat_34.entry.js +1 -0
  28. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  29. package/dist/mint-components/mint-components.esm.js +1 -1
  30. package/dist/mint-components/{p-fc6c07a7.entry.js → p-23259e4c.entry.js} +12 -21
  31. package/dist/mint-components/p-436da6b8.system.js +1 -1
  32. package/dist/mint-components/{p-268d0240.js → p-55358561.js} +1 -1
  33. package/dist/mint-components/{p-9d83a0b3.system.entry.js → p-5bc9f6f4.system.entry.js} +1 -1
  34. package/dist/mint-components/{p-c648f983.system.js → p-6c9bd397.system.js} +1 -1
  35. package/dist/mint-components/{p-aa6292e7.entry.js → p-6cb9eed6.entry.js} +2 -2
  36. package/dist/mint-components/p-b2770bdb.system.entry.js +1 -0
  37. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field-view.d.ts +2 -1
  38. package/dist/types/components/sqm-checkbox-field/useCheckboxField.d.ts +1 -5
  39. package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field-view.d.ts +2 -1
  40. package/dist/types/components/sqm-dropdown-field/useDropdownField.d.ts +1 -5
  41. package/dist/types/components/sqm-name-fields/sqm-name-fields-view.d.ts +2 -1
  42. package/dist/types/components/sqm-name-fields/useNameFields.d.ts +1 -5
  43. package/dist/types/components/sqm-portal-register/useValidationState.d.ts +1 -0
  44. package/dist/types/components.d.ts +0 -62
  45. package/grapesjs/grapesjs.js +1 -1
  46. package/package.json +1 -1
  47. package/dist/collection/components/sqm-country-field/UseCountryField.stories.js +0 -91
  48. package/dist/collection/components/sqm-country-field/sqm-country-field-view.js +0 -47
  49. package/dist/collection/components/sqm-country-field/sqm-country-field.js +0 -197
  50. package/dist/collection/components/sqm-country-field/useCountryField.js +0 -23
  51. package/dist/esm-es5/sqm-big-stat_35.entry.js +0 -1
  52. package/dist/mint-components/p-29e6a994.system.entry.js +0 -1
  53. package/dist/types/components/sqm-country-field/UseCountryField.stories.d.ts +0 -40
  54. package/dist/types/components/sqm-country-field/sqm-country-field-view.d.ts +0 -18
  55. package/dist/types/components/sqm-country-field/sqm-country-field.d.ts +0 -33
  56. package/dist/types/components/sqm-country-field/useCountryField.d.ts +0 -10
@@ -1,13 +1,9 @@
1
- declare type ValidationErrors = {
2
- [key: string]: string;
3
- };
4
1
  export declare function useCheckboxField(): {
5
2
  states: {
6
- validationErrors: ValidationErrors;
3
+ validationErrors: import("../sqm-portal-register/useValidationState").ValidationErrors;
7
4
  checked: boolean;
8
5
  };
9
6
  callbacks: {
10
7
  setChecked: (value: boolean | ((prev: boolean) => boolean)) => void;
11
8
  };
12
9
  };
13
- export {};
@@ -1,7 +1,8 @@
1
1
  import { VNode } from "../../stencil-public-runtime";
2
+ import { ValidationErrors } from "../sqm-portal-register/useValidationState";
2
3
  export interface DropdownFieldViewProps {
3
4
  states: {
4
- validationErrors?: Record<string, string>;
5
+ validationErrors?: ValidationErrors;
5
6
  };
6
7
  content: {
7
8
  dropdownName: string;
@@ -1,9 +1,5 @@
1
- declare type ValidationErrors = {
2
- [key: string]: string;
3
- };
4
1
  export declare function useDropdownField(): {
5
2
  states: {
6
- validationErrors: ValidationErrors;
3
+ validationErrors: import("../sqm-portal-register/useValidationState").ValidationErrors;
7
4
  };
8
5
  };
9
- export {};
@@ -1,6 +1,7 @@
1
+ import { ValidationErrors } from "../sqm-portal-register/useValidationState";
1
2
  export interface NameFieldsViewProps {
2
3
  states: {
3
- validationErrors?: Record<string, string>;
4
+ validationErrors?: ValidationErrors;
4
5
  content: {
5
6
  firstNameLabel: string;
6
7
  lastNameLabel: string;
@@ -1,14 +1,10 @@
1
1
  import { NameFields } from "./sqm-name-fields";
2
- declare type ValidationErrors = {
3
- [key: string]: string;
4
- };
5
2
  export declare function useNameFields(props: NameFields): {
6
3
  states: {
7
- validationErrors: ValidationErrors;
4
+ validationErrors: import("../sqm-portal-register/useValidationState").ValidationErrors;
8
5
  content: {
9
6
  lastNameLabel: string;
10
7
  firstNameLabel: string;
11
8
  };
12
9
  };
13
10
  };
14
- export {};
@@ -1,4 +1,5 @@
1
1
  import { ContextProvider } from "dom-context";
2
+ export declare const FORM_VALIDATION_CONTEXT = "sq:validation-state";
2
3
  declare global {
3
4
  interface Window {
4
5
  squatchValidationState: ContextProvider<any>;
@@ -9,7 +9,6 @@ import { DemoData } from "./global/demo";
9
9
  import { AssetCardViewProps } from "./components/sqm-asset-card/sqm-asset-card-view";
10
10
  import { BigStatViewProps } from "./components/sqm-big-stat/sqm-big-stat-view";
11
11
  import { CheckboxFieldViewProps } from "./components/sqm-checkbox-field/sqm-checkbox-field-view";
12
- import { CountryFieldViewProps } from "./components/sqm-country-field/sqm-country-field-view";
13
12
  import { DropdownFieldViewProps } from "./components/sqm-dropdown-field/sqm-dropdown-field-view";
14
13
  import { EditProfileViewProps } from "./components/sqm-edit-profile/sqm-edit-profile-view";
15
14
  import { Spacing } from "./global/mixins";
@@ -137,32 +136,6 @@ export namespace Components {
137
136
  */
138
137
  "errorMessage": string;
139
138
  }
140
- interface SqmCountryField {
141
- /**
142
- * @undocumented
143
- */
144
- "demoData"?: DemoData<CountryFieldViewProps>;
145
- /**
146
- * @uiName Country Dropdown label
147
- */
148
- "dropdownLabel": string;
149
- /**
150
- * @uiName Country name attribute
151
- */
152
- "dropdownName": string;
153
- /**
154
- * @uiName Required
155
- */
156
- "dropdownRequired"?: boolean;
157
- /**
158
- * @uiName Unselected error message
159
- */
160
- "errorMessage": string;
161
- /**
162
- * @uiName Country name locale override
163
- */
164
- "locale": string | null;
165
- }
166
139
  interface SqmDividedLayout {
167
140
  /**
168
141
  * @uiName Direction
@@ -2039,12 +2012,6 @@ declare global {
2039
2012
  prototype: HTMLSqmCheckboxFieldElement;
2040
2013
  new (): HTMLSqmCheckboxFieldElement;
2041
2014
  };
2042
- interface HTMLSqmCountryFieldElement extends Components.SqmCountryField, HTMLStencilElement {
2043
- }
2044
- var HTMLSqmCountryFieldElement: {
2045
- prototype: HTMLSqmCountryFieldElement;
2046
- new (): HTMLSqmCountryFieldElement;
2047
- };
2048
2015
  interface HTMLSqmDividedLayoutElement extends Components.SqmDividedLayout, HTMLStencilElement {
2049
2016
  }
2050
2017
  var HTMLSqmDividedLayoutElement: {
@@ -2519,7 +2486,6 @@ declare global {
2519
2486
  "sqm-brand": HTMLSqmBrandElement;
2520
2487
  "sqm-card-feed": HTMLSqmCardFeedElement;
2521
2488
  "sqm-checkbox-field": HTMLSqmCheckboxFieldElement;
2522
- "sqm-country-field": HTMLSqmCountryFieldElement;
2523
2489
  "sqm-divided-layout": HTMLSqmDividedLayoutElement;
2524
2490
  "sqm-dropdown-field": HTMLSqmDropdownFieldElement;
2525
2491
  "sqm-edit-profile": HTMLSqmEditProfileElement;
@@ -2700,32 +2666,6 @@ declare namespace LocalJSX {
2700
2666
  */
2701
2667
  "errorMessage"?: string;
2702
2668
  }
2703
- interface SqmCountryField {
2704
- /**
2705
- * @undocumented
2706
- */
2707
- "demoData"?: DemoData<CountryFieldViewProps>;
2708
- /**
2709
- * @uiName Country Dropdown label
2710
- */
2711
- "dropdownLabel"?: string;
2712
- /**
2713
- * @uiName Country name attribute
2714
- */
2715
- "dropdownName"?: string;
2716
- /**
2717
- * @uiName Required
2718
- */
2719
- "dropdownRequired"?: boolean;
2720
- /**
2721
- * @uiName Unselected error message
2722
- */
2723
- "errorMessage"?: string;
2724
- /**
2725
- * @uiName Country name locale override
2726
- */
2727
- "locale"?: string | null;
2728
- }
2729
2669
  interface SqmDividedLayout {
2730
2670
  /**
2731
2671
  * @uiName Direction
@@ -4551,7 +4491,6 @@ declare namespace LocalJSX {
4551
4491
  "sqm-brand": SqmBrand;
4552
4492
  "sqm-card-feed": SqmCardFeed;
4553
4493
  "sqm-checkbox-field": SqmCheckboxField;
4554
- "sqm-country-field": SqmCountryField;
4555
4494
  "sqm-divided-layout": SqmDividedLayout;
4556
4495
  "sqm-dropdown-field": SqmDropdownField;
4557
4496
  "sqm-edit-profile": SqmEditProfile;
@@ -4641,7 +4580,6 @@ declare module "@stencil/core" {
4641
4580
  "sqm-brand": LocalJSX.SqmBrand & JSXBase.HTMLAttributes<HTMLSqmBrandElement>;
4642
4581
  "sqm-card-feed": LocalJSX.SqmCardFeed & JSXBase.HTMLAttributes<HTMLSqmCardFeedElement>;
4643
4582
  "sqm-checkbox-field": LocalJSX.SqmCheckboxField & JSXBase.HTMLAttributes<HTMLSqmCheckboxFieldElement>;
4644
- "sqm-country-field": LocalJSX.SqmCountryField & JSXBase.HTMLAttributes<HTMLSqmCountryFieldElement>;
4645
4583
  "sqm-divided-layout": LocalJSX.SqmDividedLayout & JSXBase.HTMLAttributes<HTMLSqmDividedLayoutElement>;
4646
4584
  "sqm-dropdown-field": LocalJSX.SqmDropdownField & JSXBase.HTMLAttributes<HTMLSqmDropdownFieldElement>;
4647
4585
  "sqm-edit-profile": LocalJSX.SqmEditProfile & JSXBase.HTMLAttributes<HTMLSqmEditProfileElement>;