@saasquatch/mint-components 1.5.3-0 → 1.5.3-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.
- package/dist/cjs/sqm-big-stat_35.cjs.entry.js +1 -4
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +42 -34
- package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +4 -0
- package/dist/collection/components/sqm-checkbox-field/UseCheckboxField.stories.js +4 -0
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +1 -6
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +1 -0
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +1 -1
- package/dist/esm/sqm-big-stat_35.entry.js +1 -4
- package/dist/esm/sqm-stencilbook.entry.js +42 -34
- package/dist/esm-es5/sqm-big-stat_35.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-38858049.entry.js → p-2839d9c2.entry.js} +2 -2
- package/dist/mint-components/p-436da6b8.system.js +1 -1
- package/dist/mint-components/p-54b8a4b9.system.entry.js +1 -0
- package/dist/mint-components/{p-d1cad711.system.entry.js → p-b452e612.system.entry.js} +1 -1
- package/dist/mint-components/{p-0b9784a6.entry.js → p-e8c39643.entry.js} +2 -2
- package/dist/types/components/sqm-checkbox-field/CheckboxField.stories.d.ts +3 -0
- package/dist/types/components/sqm-checkbox-field/UseCheckboxField.stories.d.ts +3 -0
- package/package.json +1 -1
- package/dist/mint-components/p-2c098d2a.system.entry.js +0 -1
|
@@ -2,8 +2,12 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { PortalRegisterView, } from "../sqm-portal-register/sqm-portal-register-view";
|
|
3
3
|
import { createHookStory } from "../sqm-stencilbook/HookStoryAddon";
|
|
4
4
|
import { CheckboxFieldView, } from "./sqm-checkbox-field-view";
|
|
5
|
+
import scenario from "./sqm-checkbox-field.feature";
|
|
5
6
|
export default {
|
|
6
7
|
title: "Components/Checkbox Field",
|
|
8
|
+
parameters: {
|
|
9
|
+
scenario,
|
|
10
|
+
},
|
|
7
11
|
};
|
|
8
12
|
const defaultProps = {
|
|
9
13
|
states: {
|
|
@@ -2,8 +2,12 @@ import { setUserIdentity } from "@saasquatch/component-boilerplate";
|
|
|
2
2
|
import { useEffect } from "@saasquatch/universal-hooks";
|
|
3
3
|
import { h } from "@stencil/core";
|
|
4
4
|
import { createHookStory } from "../sqm-stencilbook/HookStoryAddon";
|
|
5
|
+
import scenario from "./sqm-checkbox-field.feature";
|
|
5
6
|
export default {
|
|
6
7
|
title: "Hooks / useCheckboxField",
|
|
8
|
+
parameters: {
|
|
9
|
+
scenario,
|
|
10
|
+
},
|
|
7
11
|
};
|
|
8
12
|
function setupGraphQL() {
|
|
9
13
|
const id = "testestest";
|
|
@@ -11,10 +11,6 @@ import { useInputField } from "./useInputField";
|
|
|
11
11
|
export class InputField {
|
|
12
12
|
constructor() {
|
|
13
13
|
this.ignored = true;
|
|
14
|
-
/**
|
|
15
|
-
* @uiName Input label
|
|
16
|
-
*/
|
|
17
|
-
this.fieldLabel = "My Custom Input";
|
|
18
14
|
/**
|
|
19
15
|
* @uiName Input Type
|
|
20
16
|
* @uiType string
|
|
@@ -79,8 +75,7 @@ export class InputField {
|
|
|
79
75
|
"text": ""
|
|
80
76
|
},
|
|
81
77
|
"attribute": "field-label",
|
|
82
|
-
"reflect": false
|
|
83
|
-
"defaultValue": "\"My Custom Input\""
|
|
78
|
+
"reflect": false
|
|
84
79
|
},
|
|
85
80
|
"fieldType": {
|
|
86
81
|
"type": "string",
|
|
@@ -159,7 +159,7 @@ export class StencilStorybook {
|
|
|
159
159
|
const { class: Style, children } = useStencilbook(stories, {
|
|
160
160
|
h,
|
|
161
161
|
title: "Mint Components",
|
|
162
|
-
addons: [
|
|
162
|
+
addons: [HookStoryAddon, ShadowViewAddon, CucumberAddon],
|
|
163
163
|
});
|
|
164
164
|
const [selectedTheme, setSelected] = useState("Default");
|
|
165
165
|
const [checkerboard, setCheckerboard] = useState(true);
|
|
@@ -750,10 +750,6 @@ const InputField = class {
|
|
|
750
750
|
constructor(hostRef) {
|
|
751
751
|
registerInstance(this, hostRef);
|
|
752
752
|
this.ignored = true;
|
|
753
|
-
/**
|
|
754
|
-
* @uiName Input label
|
|
755
|
-
*/
|
|
756
|
-
this.fieldLabel = "My Custom Input";
|
|
757
753
|
/**
|
|
758
754
|
* @uiName Input Type
|
|
759
755
|
* @uiType string
|
|
@@ -5280,6 +5276,7 @@ function usePortalRegister(props) {
|
|
|
5280
5276
|
return;
|
|
5281
5277
|
const key = control.name;
|
|
5282
5278
|
const value = control.value;
|
|
5279
|
+
console.log({ key, value });
|
|
5283
5280
|
jsonpointer.set(formData, key, value);
|
|
5284
5281
|
// required validation
|
|
5285
5282
|
if (control.required && !value) {
|