vueless 0.0.774 → 0.0.775

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.774",
3
+ "version": "0.0.775",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -79,8 +79,8 @@ export default /*tw*/ {
79
79
  variant: "thirdary",
80
80
  class: `
81
81
  text-gray-900 dark:text-gray-100
82
- hover:text-gray-800 hover:bg-gray-800/5 dark:hover:text-gray-200 dark:hover:bg-gray-200/5
83
- active:text-gray-700 active:bg-gray-700/10 dark:active:text-gray-300 dark:active:bg-gray-300/10
82
+ hover:text-gray-800 hover:bg-gray-800/10 dark:hover:text-gray-200 dark:hover:bg-gray-200/10
83
+ active:text-gray-700 active:bg-gray-700/15 dark:active:text-gray-300 dark:active:bg-gray-300/15
84
84
  `,
85
85
  },
86
86
  {
@@ -110,7 +110,7 @@ export default /*tw*/ {
110
110
  variant: "thirdary",
111
111
  class: "hover:bg-white/10 active:bg-white/15",
112
112
  },
113
- { filled: true, variant: "thirdary", class: "bg-{color}-700/10 dark:bg-{color}-500/10" },
113
+ { filled: true, variant: "thirdary", class: "bg-{color}-700/5 dark:bg-{color}-500/5" },
114
114
  { filled: true, variant: "thirdary", color: ["grayscale", "white"], class: "bg-gray-800/5 dark:bg-gray-200/5" },
115
115
  { rightIcon: true, size: "2xs", class: "pr-1" },
116
116
  { rightIcon: true, size: "xs", class: "pr-2" },
@@ -5,7 +5,7 @@ export default /*tw*/ {
5
5
  base: "fixed top-0 flex items-center z-30 overflow-hidden border rounded-none",
6
6
  variants: {
7
7
  actionsHeader: {
8
- true: "rounded-t-dynamic border-blue-200 bg-blue-50",
8
+ true: "rounded-t-dynamic border-brand-200 bg-brand-50",
9
9
  },
10
10
  },
11
11
  compoundVariants: [
@@ -373,14 +373,14 @@ SlotHeaderActions.args = {
373
373
  <UButton
374
374
  label="Edit"
375
375
  variant="thirdary"
376
- color="blue"
376
+ color="brand"
377
377
  size="sm"
378
378
  />
379
379
 
380
380
  <UButton
381
381
  label="Delete"
382
382
  variant="thirdary"
383
- color="blue"
383
+ color="brand"
384
384
  size="sm"
385
385
  />
386
386
  </URow>
@@ -8,7 +8,7 @@ export default /*tw*/ {
8
8
  filled: true,
9
9
  variant: "thirdary",
10
10
  color: "grayscale",
11
- class: "focus:bg-gray-800/10 bg-gray-800/10 dark:focus:bg-gray-200/10 dark:bg-gray-200/10",
11
+ class: "bg-gray-800/10 dark:bg-gray-200/10",
12
12
  },
13
13
  ],
14
14
  },
@@ -1,4 +1,4 @@
1
- import { inject, onBeforeUnmount, readonly, ref } from "vue";
1
+ import { inject, onBeforeMount, onBeforeUnmount, readonly, ref } from "vue";
2
2
 
3
3
  import type { Ref } from "vue";
4
4
 
@@ -49,8 +49,10 @@ export function createLoaderProgress(): LoaderProgress {
49
49
  export function useLoaderProgress(): LoaderProgress {
50
50
  const loaderProgress = inject<LoaderProgress>(LoaderProgressSymbol);
51
51
 
52
- window.addEventListener("loaderProgressOn", setLoaderOnHandler as EventListener);
53
- window.addEventListener("loaderProgressOff", setLoaderOffHandler as EventListener);
52
+ onBeforeMount(() => {
53
+ window.addEventListener("loaderProgressOn", setLoaderOnHandler as EventListener);
54
+ window.addEventListener("loaderProgressOff", setLoaderOffHandler as EventListener);
55
+ });
54
56
 
55
57
  onBeforeUnmount(() => {
56
58
  window.removeEventListener("loaderProgressOn", setLoaderOnHandler as EventListener);
@@ -72,7 +72,7 @@ export function getDocsDescription(componentName: string | undefined) {
72
72
  let viewOnGitHub = "";
73
73
 
74
74
  if (COMPONENTS[componentName as ComponentNames]) {
75
- viewOnGitHub = `| [View on GitHub](https://github.com/vuelessjs/vueless/tree/main/src/${COMPONENTS[componentName as ComponentNames]})`;
75
+ viewOnGitHub = `| <a href="https://github.com/vuelessjs/vueless/tree/main/src/${COMPONENTS[componentName as ComponentNames]}" target="_blank">View on GitHub</a>`;
76
76
  }
77
77
 
78
78
  return {