@greghowe79/the-lib 1.2.0 → 1.2.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.
@@ -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 }) => {
9
+ const Modal = qwik.component$(({ title, open, primaryButtonLabel, secondaryButtonLabel, primaryAction, secondaryAction, closeButtonVisible = true, isLoading, primaryButtonDisabled, type = "default", light = false, buttonType = "button" }) => {
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,7 +58,8 @@ const Modal = qwik.component$(({ title, open, primaryButtonLabel, secondaryButto
58
58
  label: primaryButtonLabel,
59
59
  onClick$: primaryAction,
60
60
  isLoading,
61
- disabled: isDisabled
61
+ disabled: isDisabled,
62
+ type: buttonType
62
63
  })
63
64
  ]
64
65
  })
@@ -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 }) => {
7
+ const Modal = component$(({ title, open, primaryButtonLabel, secondaryButtonLabel, primaryAction, secondaryAction, closeButtonVisible = true, isLoading, primaryButtonDisabled, type = "default", light = false, buttonType = "button" }) => {
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,7 +56,8 @@ const Modal = component$(({ title, open, primaryButtonLabel, secondaryButtonLabe
56
56
  label: primaryButtonLabel,
57
57
  onClick$: primaryAction,
58
58
  isLoading,
59
- disabled: isDisabled
59
+ disabled: isDisabled,
60
+ type: buttonType
60
61
  })
61
62
  ]
62
63
  })
@@ -1,4 +1,5 @@
1
1
  import { QRL, Signal } from '@builder.io/qwik';
2
+ import { ButtonType } from '../button/button';
2
3
  import '@fontsource/roboto-condensed';
3
4
  export interface ModalProps {
4
5
  title?: string;
@@ -12,5 +13,6 @@ export interface ModalProps {
12
13
  primaryButtonDisabled?: Signal<boolean>;
13
14
  type?: 'small' | 'default';
14
15
  light?: boolean;
16
+ buttonType?: ButtonType;
15
17
  }
16
18
  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.0",
3
+ "version": "1.2.1",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",