@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.
@@ -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",
@@ -17,6 +17,7 @@ export function usePortalRegister(props) {
17
17
  return;
18
18
  const key = control.name;
19
19
  const value = control.value;
20
+ console.log({ key, value });
20
21
  jsonpointer.set(formData, key, value);
21
22
  // required validation
22
23
  if (control.required && !value) {
@@ -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: [CucumberAddon, ShadowViewAddon, HookStoryAddon],
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) {