@greghowe79/the-lib 1.2.1 → 1.2.2

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";
@@ -58,8 +58,7 @@ const Modal = qwik.component$(({ title, open, primaryButtonLabel, secondaryButto
58
58
  label: primaryButtonLabel,
59
59
  onClick$: primaryAction,
60
60
  isLoading,
61
- disabled: isDisabled,
62
- type: buttonType
61
+ disabled: isDisabled
63
62
  })
64
63
  ]
65
64
  })
@@ -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";
@@ -56,8 +56,7 @@ const Modal = component$(({ title, open, primaryButtonLabel, secondaryButtonLabe
56
56
  label: primaryButtonLabel,
57
57
  onClick$: primaryAction,
58
58
  isLoading,
59
- disabled: isDisabled,
60
- type: buttonType
59
+ disabled: isDisabled
61
60
  })
62
61
  ]
63
62
  })
@@ -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.2",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",