@greghowe79/the-lib 2.13.7 → 2.13.8

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 loader = require("../loader/loader.qwik.cjs");
7
7
  const button_utils = require("./button.utils.qwik.cjs");
8
- const Button = qwik.component$(({ id, label, variant = "primary", icon, disabled = false, ariaLabel, type = "button", size = "md", href, target, rel, className, onClick$, isLoading, active = false, customColors }) => {
8
+ const Button = qwik.component$(({ id, label, variant = "primary", icon, disabled = false, ariaLabel, type = "button", size = "md", href, target, rel, class: customClass, onClick$, isLoading, active = false, customColors }) => {
9
9
  qwik.useStylesScoped$(styles);
10
10
  const loading = typeof isLoading === "object" && isLoading !== null && "value" in isLoading ? isLoading.value : isLoading;
11
11
  const hasCustomStyles = customColors && (customColors.bg || customColors.text || customColors.border || customColors.padding || customColors.width || customColors.height);
@@ -14,7 +14,7 @@ const Button = qwik.component$(({ id, label, variant = "primary", icon, disabled
14
14
  `button-${size}`,
15
15
  disabled && "button-disabled",
16
16
  active && "button-active",
17
- className
17
+ customClass
18
18
  ].filter(Boolean).join(" ");
19
19
  if (href) {
20
20
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
@@ -3,7 +3,7 @@ import { component$, useStylesScoped$ } from "@builder.io/qwik";
3
3
  import styles from "./styles.css.qwik.mjs";
4
4
  import { Loader } from "../loader/loader.qwik.mjs";
5
5
  import { generateCustomCSS } from "./button.utils.qwik.mjs";
6
- const Button = component$(({ id, label, variant = "primary", icon, disabled = false, ariaLabel, type = "button", size = "md", href, target, rel, className, onClick$, isLoading, active = false, customColors }) => {
6
+ const Button = component$(({ id, label, variant = "primary", icon, disabled = false, ariaLabel, type = "button", size = "md", href, target, rel, class: customClass, onClick$, isLoading, active = false, customColors }) => {
7
7
  useStylesScoped$(styles);
8
8
  const loading = typeof isLoading === "object" && isLoading !== null && "value" in isLoading ? isLoading.value : isLoading;
9
9
  const hasCustomStyles = customColors && (customColors.bg || customColors.text || customColors.border || customColors.padding || customColors.width || customColors.height);
@@ -12,7 +12,7 @@ const Button = component$(({ id, label, variant = "primary", icon, disabled = fa
12
12
  `button-${size}`,
13
13
  disabled && "button-disabled",
14
14
  active && "button-active",
15
- className
15
+ customClass
16
16
  ].filter(Boolean).join(" ");
17
17
  if (href) {
18
18
  return /* @__PURE__ */ jsxs(Fragment, {
@@ -26,7 +26,7 @@ export interface ButtonProps {
26
26
  href?: string;
27
27
  target?: string;
28
28
  rel?: string;
29
- className?: string;
29
+ class?: string;
30
30
  onClick$?: QRL<() => void> | QRL<() => boolean> | QRL<() => Promise<void>> | QRL<(type: string | unknown) => Promise<void>>;
31
31
  isLoading?: boolean | Signal<boolean>;
32
32
  active?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greghowe79/the-lib",
3
- "version": "2.13.7",
3
+ "version": "2.13.8",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",