@greghowe79/the-lib 2.15.2 → 2.15.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.
@@ -5,7 +5,7 @@ const qwik = require("@builder.io/qwik");
5
5
  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
- const Modal = qwik.component$(({ title, open, primaryButtonLabel, secondaryButtonLabel, primaryAction, secondaryAction, closeButtonVisible = true, isLoading, primaryButtonDisabled, type = "default", light = false, primaryButtonColors, secondaryButtonColors }) => {
8
+ const Modal = qwik.component$(({ title, open, primaryButtonLabel, secondaryButtonLabel, primaryAction, secondaryAction, closeButtonVisible = true, isLoading, primaryButtonDisabled, type = "default", light = false, primaryButtonColors, secondaryButtonColors, buttonSize = "md" }) => {
9
9
  qwik.useStylesScoped$(styles);
10
10
  const isDisabled = typeof primaryButtonDisabled === "object" ? primaryButtonDisabled.value : primaryButtonDisabled ?? false;
11
11
  const modalClass = type === "small" ? "modal small" : "modal";
@@ -51,6 +51,7 @@ const Modal = qwik.component$(({ title, open, primaryButtonLabel, secondaryButto
51
51
  label: secondaryButtonLabel,
52
52
  onClick$: secondaryAction,
53
53
  variant: "tertiary",
54
+ size: buttonSize,
54
55
  customColors: secondaryButtonColors
55
56
  }),
56
57
  primaryButtonLabel && /* @__PURE__ */ jsxRuntime.jsx(button.Button, {
@@ -59,6 +60,7 @@ const Modal = qwik.component$(({ title, open, primaryButtonLabel, secondaryButto
59
60
  onClick$: primaryAction,
60
61
  isLoading,
61
62
  disabled: isDisabled,
63
+ size: buttonSize,
62
64
  customColors: primaryButtonColors
63
65
  })
64
66
  ]
@@ -3,7 +3,7 @@ import { component$, useStylesScoped$, Slot } from "@builder.io/qwik";
3
3
  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
- const Modal = component$(({ title, open, primaryButtonLabel, secondaryButtonLabel, primaryAction, secondaryAction, closeButtonVisible = true, isLoading, primaryButtonDisabled, type = "default", light = false, primaryButtonColors, secondaryButtonColors }) => {
6
+ const Modal = component$(({ title, open, primaryButtonLabel, secondaryButtonLabel, primaryAction, secondaryAction, closeButtonVisible = true, isLoading, primaryButtonDisabled, type = "default", light = false, primaryButtonColors, secondaryButtonColors, buttonSize = "md" }) => {
7
7
  useStylesScoped$(styles);
8
8
  const isDisabled = typeof primaryButtonDisabled === "object" ? primaryButtonDisabled.value : primaryButtonDisabled ?? false;
9
9
  const modalClass = type === "small" ? "modal small" : "modal";
@@ -49,6 +49,7 @@ const Modal = component$(({ title, open, primaryButtonLabel, secondaryButtonLabe
49
49
  label: secondaryButtonLabel,
50
50
  onClick$: secondaryAction,
51
51
  variant: "tertiary",
52
+ size: buttonSize,
52
53
  customColors: secondaryButtonColors
53
54
  }),
54
55
  primaryButtonLabel && /* @__PURE__ */ jsx(Button, {
@@ -57,6 +58,7 @@ const Modal = component$(({ title, open, primaryButtonLabel, secondaryButtonLabe
57
58
  onClick$: primaryAction,
58
59
  isLoading,
59
60
  disabled: isDisabled,
61
+ size: buttonSize,
60
62
  customColors: primaryButtonColors
61
63
  })
62
64
  ]
@@ -14,5 +14,6 @@ export interface ModalProps {
14
14
  light?: boolean;
15
15
  primaryButtonColors?: CustomColors;
16
16
  secondaryButtonColors?: CustomColors;
17
+ buttonSize?: 'sm' | 'md' | 'lg';
17
18
  }
18
19
  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": "2.15.2",
3
+ "version": "2.15.3",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",