nuxt-glorious 1.1.9-3 → 1.1.9-5

Sign up to get free protection for your applications and to get access to all the features.
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "glorious",
3
3
  "configKey": "glorious",
4
- "version": "1.1.9-3"
4
+ "version": "1.1.9-5"
5
5
  }
@@ -1,3 +1,7 @@
1
+ button:focus-visible {
2
+ @apply outline-none;
3
+ }
4
+
1
5
  .xl.glorious-button-orange, .xl.glorious-button-blue, .xl.glorious-button-gray, .xl.glorious-button-red, .xl.glorious-button-primary {
2
6
  @apply py-2.5;
3
7
  }
@@ -72,6 +72,10 @@ const props = defineProps({
72
72
  </template>
73
73
 
74
74
  <style>
75
+ button:focus-visible {
76
+ @apply outline-none;
77
+ }
78
+
75
79
  .xl.glorious-button-orange, .xl.glorious-button-blue, .xl.glorious-button-gray, .xl.glorious-button-red, .xl.glorious-button-primary {
76
80
  @apply py-2.5;
77
81
  }
@@ -21,8 +21,6 @@ export default function(url, options = defaultOptions) {
21
21
  options.params = computeParams(options.params);
22
22
  options.headers = { ...options.headers, ...computeAuth() };
23
23
  if (options.bodyType === "formData") options.body = computeFormData(options);
24
- if (options.bodyType === "normal" && Object.entries(options.body).length === 0)
25
- delete options.body;
26
24
  const opt = {
27
25
  ...options,
28
26
  onRequest() {
@@ -1,5 +1,6 @@
1
- import colors from "tailwindcss/colors.js";
1
+ import colors from "tailwindcss/colors";
2
2
  export default function tailwindColor(name, range) {
3
3
  const tailwindColor2 = colors;
4
+ console.log(colors);
4
5
  return tailwindColor2[name][range];
5
6
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.9-3",
2
+ "version": "1.1.9-5",
3
3
  "name": "nuxt-glorious",
4
4
  "description": "This package provides many things needed by a project, including server requests and authentication, SEO and other requirements of a project.",
5
5
  "repository": "sajadhzj/nuxt-glorious",
@@ -1 +0,0 @@
1
- export default function modal(key?: string, keepData?: {}): void;
@@ -1,26 +0,0 @@
1
- import { GloriousStore } from "#imports";
2
- export default function modal(key = "modal", keepData = {}) {
3
- const addBlurBackground = (key2) => {
4
- const backgroundBlur = document.createElement("div");
5
- backgroundBlur.classList.add("bg-blur-modal");
6
- const nuxt = document.getElementById("__nuxt");
7
- nuxt.appendChild(backgroundBlur);
8
- backgroundBlur.addEventListener("click", () => {
9
- const componentId = document.getElementById(key2);
10
- componentId.classList.replace("open", "close");
11
- backgroundBlur.remove();
12
- });
13
- };
14
- const modal2 = document.getElementById(key);
15
- const gloriousStore = GloriousStore();
16
- gloriousStore.keepData = keepData;
17
- if (modal2?.classList.contains("close")) {
18
- modal2?.classList.replace("close", "open");
19
- modal2.style.bottom = `-${modal2.offsetHeight}px`;
20
- addBlurBackground(key);
21
- } else {
22
- modal2?.classList.add("close");
23
- const bgBlur = document.querySelector(".bg-blur-modal");
24
- bgBlur?.remove();
25
- }
26
- }