@greghowe79/the-lib 1.2.1 → 1.2.3

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.
@@ -6,7 +6,7 @@ const styles = require("./styles.css.qwik.cjs");
6
6
  const button = require("../button/button.qwik.cjs");
7
7
  const closeIcon = require("../icons/closeIcon.qwik.cjs");
8
8
  require("@fontsource/roboto-condensed");
9
- const Modal = qwik.component$(({ title, open, primaryButtonLabel, secondaryButtonLabel, primaryAction, secondaryAction, closeButtonVisible = true, isLoading, primaryButtonDisabled, type = "default", light = false, buttonType = "button" }) => {
9
+ const Modal = qwik.component$(({ title, open, primaryButtonLabel, secondaryButtonLabel, primaryAction, secondaryAction, closeButtonVisible = true, isLoading, primaryButtonDisabled, type = "default", light = false }) => {
10
10
  qwik.useStylesScoped$(styles);
11
11
  const isDisabled = typeof primaryButtonDisabled === "object" ? primaryButtonDisabled.value : primaryButtonDisabled ?? false;
12
12
  const modalClass = type === "small" ? "modal small" : "modal";
@@ -41,7 +41,6 @@ const Modal = qwik.component$(({ title, open, primaryButtonLabel, secondaryButto
41
41
  }),
42
42
  /* @__PURE__ */ jsxRuntime.jsx("div", {
43
43
  class: "modal-body",
44
- tabIndex: 0,
45
44
  children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
46
45
  }),
47
46
  /* @__PURE__ */ jsxRuntime.jsxs("div", {
@@ -58,8 +57,7 @@ const Modal = qwik.component$(({ title, open, primaryButtonLabel, secondaryButto
58
57
  label: primaryButtonLabel,
59
58
  onClick$: primaryAction,
60
59
  isLoading,
61
- disabled: isDisabled,
62
- type: buttonType
60
+ disabled: isDisabled
63
61
  })
64
62
  ]
65
63
  })
@@ -4,7 +4,7 @@ import styles from "./styles.css.qwik.mjs";
4
4
  import { Button } from "../button/button.qwik.mjs";
5
5
  import { CloseIcon } from "../icons/closeIcon.qwik.mjs";
6
6
  import "@fontsource/roboto-condensed";
7
- const Modal = component$(({ title, open, primaryButtonLabel, secondaryButtonLabel, primaryAction, secondaryAction, closeButtonVisible = true, isLoading, primaryButtonDisabled, type = "default", light = false, buttonType = "button" }) => {
7
+ const Modal = component$(({ title, open, primaryButtonLabel, secondaryButtonLabel, primaryAction, secondaryAction, closeButtonVisible = true, isLoading, primaryButtonDisabled, type = "default", light = false }) => {
8
8
  useStylesScoped$(styles);
9
9
  const isDisabled = typeof primaryButtonDisabled === "object" ? primaryButtonDisabled.value : primaryButtonDisabled ?? false;
10
10
  const modalClass = type === "small" ? "modal small" : "modal";
@@ -39,7 +39,6 @@ const Modal = component$(({ title, open, primaryButtonLabel, secondaryButtonLabe
39
39
  }),
40
40
  /* @__PURE__ */ jsx("div", {
41
41
  class: "modal-body",
42
- tabIndex: 0,
43
42
  children: /* @__PURE__ */ jsx(Slot, {})
44
43
  }),
45
44
  /* @__PURE__ */ jsxs("div", {
@@ -56,8 +55,7 @@ const Modal = component$(({ title, open, primaryButtonLabel, secondaryButtonLabe
56
55
  label: primaryButtonLabel,
57
56
  onClick$: primaryAction,
58
57
  isLoading,
59
- disabled: isDisabled,
60
- type: buttonType
58
+ disabled: isDisabled
61
59
  })
62
60
  ]
63
61
  })
@@ -1,5 +1,4 @@
1
1
  import { QRL, Signal } from '@builder.io/qwik';
2
- import { ButtonType } from '../button/button';
3
2
  import '@fontsource/roboto-condensed';
4
3
  export interface ModalProps {
5
4
  title?: string;
@@ -13,6 +12,5 @@ export interface ModalProps {
13
12
  primaryButtonDisabled?: Signal<boolean>;
14
13
  type?: 'small' | 'default';
15
14
  light?: boolean;
16
- buttonType?: ButtonType;
17
15
  }
18
16
  export declare const Modal: import("@builder.io/qwik").Component<ModalProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greghowe79/the-lib",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",