@greghowe79/the-lib 2.16.5 → 2.16.7

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
  const Modal = qwik.component$(({ title, open, primaryButtonLabel, secondaryButtonLabel, primaryAction, secondaryAction, closeButtonVisible = true, isLoading, primaryButtonDisabled, type = "default", light = false, primaryButtonColors, secondaryButtonColors, buttonSize = "md" }) => {
9
- qwik.useStylesScoped$(styles);
9
+ qwik.useStyles$(styles);
10
10
  const isDisabled = typeof primaryButtonDisabled === "object" ? primaryButtonDisabled.value : primaryButtonDisabled ?? false;
11
11
  const modalClass = type === "small" ? "modal small" : "modal";
12
12
  return /* @__PURE__ */ jsxRuntime.jsx("div", {
@@ -29,6 +29,7 @@ const Modal = qwik.component$(({ title, open, primaryButtonLabel, secondaryButto
29
29
  }),
30
30
  closeButtonVisible && /* @__PURE__ */ jsxRuntime.jsx(button.Button, {
31
31
  id: "close-button",
32
+ class: "close-button",
32
33
  ariaLabel: "Chiudi modale",
33
34
  onClick$: () => {
34
35
  if (open) open.value = false;
@@ -1,10 +1,10 @@
1
1
  import { jsx, jsxs } from "@builder.io/qwik/jsx-runtime";
2
- import { component$, useStylesScoped$, Slot } from "@builder.io/qwik";
2
+ import { component$, useStyles$, 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
6
  const Modal = component$(({ title, open, primaryButtonLabel, secondaryButtonLabel, primaryAction, secondaryAction, closeButtonVisible = true, isLoading, primaryButtonDisabled, type = "default", light = false, primaryButtonColors, secondaryButtonColors, buttonSize = "md" }) => {
7
- useStylesScoped$(styles);
7
+ useStyles$(styles);
8
8
  const isDisabled = typeof primaryButtonDisabled === "object" ? primaryButtonDisabled.value : primaryButtonDisabled ?? false;
9
9
  const modalClass = type === "small" ? "modal small" : "modal";
10
10
  return /* @__PURE__ */ jsx("div", {
@@ -27,6 +27,7 @@ const Modal = component$(({ title, open, primaryButtonLabel, secondaryButtonLabe
27
27
  }),
28
28
  closeButtonVisible && /* @__PURE__ */ jsx(Button, {
29
29
  id: "close-button",
30
+ class: "close-button",
30
31
  ariaLabel: "Chiudi modale",
31
32
  onClick$: () => {
32
33
  if (open) open.value = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greghowe79/the-lib",
3
- "version": "2.16.5",
3
+ "version": "2.16.7",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",