@greghowe79/the-lib 2.2.4 → 2.2.5

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/latin-400.css");
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, primaryButtonColors, secondaryButtonColors }) => {
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";
@@ -51,14 +51,16 @@ const Modal = qwik.component$(({ title, open, primaryButtonLabel, secondaryButto
51
51
  id: "cancel-button",
52
52
  label: secondaryButtonLabel,
53
53
  onClick$: secondaryAction,
54
- variant: "tertiary"
54
+ variant: "tertiary",
55
+ customColors: secondaryButtonColors
55
56
  }),
56
57
  primaryButtonLabel && /* @__PURE__ */ jsxRuntime.jsx(button.Button, {
57
58
  id: "confirm-button",
58
59
  label: primaryButtonLabel,
59
60
  onClick$: primaryAction,
60
61
  isLoading,
61
- disabled: isDisabled
62
+ disabled: isDisabled,
63
+ customColors: primaryButtonColors
62
64
  })
63
65
  ]
64
66
  })
@@ -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/latin-400.css";
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, primaryButtonColors, secondaryButtonColors }) => {
8
8
  useStylesScoped$(styles);
9
9
  const isDisabled = typeof primaryButtonDisabled === "object" ? primaryButtonDisabled.value : primaryButtonDisabled ?? false;
10
10
  const modalClass = type === "small" ? "modal small" : "modal";
@@ -49,14 +49,16 @@ const Modal = component$(({ title, open, primaryButtonLabel, secondaryButtonLabe
49
49
  id: "cancel-button",
50
50
  label: secondaryButtonLabel,
51
51
  onClick$: secondaryAction,
52
- variant: "tertiary"
52
+ variant: "tertiary",
53
+ customColors: secondaryButtonColors
53
54
  }),
54
55
  primaryButtonLabel && /* @__PURE__ */ jsx(Button, {
55
56
  id: "confirm-button",
56
57
  label: primaryButtonLabel,
57
58
  onClick$: primaryAction,
58
59
  isLoading,
59
- disabled: isDisabled
60
+ disabled: isDisabled,
61
+ customColors: primaryButtonColors
60
62
  })
61
63
  ]
62
64
  })
@@ -1,4 +1,5 @@
1
1
  import { QRL, Signal } from '@builder.io/qwik';
2
+ import { CustomColors } from '../button/button';
2
3
  import '@fontsource/roboto-condensed/latin-400.css';
3
4
  export interface ModalProps {
4
5
  title?: string;
@@ -12,5 +13,7 @@ export interface ModalProps {
12
13
  primaryButtonDisabled?: Signal<boolean>;
13
14
  type?: 'small' | 'default';
14
15
  light?: boolean;
16
+ primaryButtonColors?: CustomColors;
17
+ secondaryButtonColors?: CustomColors;
15
18
  }
16
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.2.4",
3
+ "version": "2.2.5",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",