@bl33dz/fa814698dcde12f86a37ac31dd3aedf9 1.0.5 → 1.0.6
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/dist/fa814698dcde12f86a37ac31dd3aedf9.css +1 -1
- package/dist/perisai-ui.es.js +841 -827
- package/dist/perisai-ui.umd.js +1 -1
- package/package.json +1 -1
- package/src/{global.css → globals.css} +3 -3
- package/src/index.ts +3 -2
- package/src/shadcn/spinner/Spinner.vue +17 -0
- package/src/shadcn/spinner/index.ts +1 -0
- package/src/ui/button.vue +1 -1
package/package.json
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@source "../src/**/*.{vue,js,ts,jsx,tsx,html}";
|
|
2
|
+
|
|
1
3
|
@custom-variant dark (&:is(.dark *));
|
|
2
4
|
|
|
3
5
|
:root {
|
|
@@ -216,7 +218,7 @@
|
|
|
216
218
|
0 0 0 1px rgba(255, 255, 255, 0.05);
|
|
217
219
|
}
|
|
218
220
|
|
|
219
|
-
@theme
|
|
221
|
+
@theme {
|
|
220
222
|
/* Base Theme Colors */
|
|
221
223
|
--color-background: var(--background);
|
|
222
224
|
--color-foreground: var(--foreground);
|
|
@@ -571,5 +573,3 @@ html {
|
|
|
571
573
|
.switch-thumb {
|
|
572
574
|
background-color: var(--switch-thumb) !important;
|
|
573
575
|
}
|
|
574
|
-
|
|
575
|
-
|
package/src/index.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// Auto-generated — DO NOT EDIT MANUALLY
|
|
2
2
|
|
|
3
|
-
import './
|
|
3
|
+
import './globals.css'
|
|
4
4
|
|
|
5
5
|
// Default shadcn
|
|
6
6
|
export * from './shadcn/breadcrumb';
|
|
7
|
-
export * from './shadcn/accordion'
|
|
7
|
+
export * from './shadcn/accordion';
|
|
8
|
+
export * from './shadcn/spinner';
|
|
8
9
|
|
|
9
10
|
export { default as InputOTP } from './ui/InputOTP.vue';
|
|
10
11
|
export { default as InputOTPGroup } from './ui/InputOTPGroup.vue';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { Loader2Icon } from "lucide-vue-next"
|
|
4
|
+
import { cn } from "@/lib/utils"
|
|
5
|
+
|
|
6
|
+
const props = defineProps<{
|
|
7
|
+
class?: HTMLAttributes["class"]
|
|
8
|
+
}>()
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<Loader2Icon
|
|
13
|
+
role="status"
|
|
14
|
+
aria-label="Loading"
|
|
15
|
+
:class="cn('size-4 animate-spin', props.class)"
|
|
16
|
+
/>
|
|
17
|
+
</template>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Spinner } from "./Spinner.vue"
|
package/src/ui/button.vue
CHANGED
|
@@ -42,7 +42,7 @@ const props = defineProps({
|
|
|
42
42
|
const $attrs = useAttrs();
|
|
43
43
|
const emit = defineEmits(['click']);
|
|
44
44
|
|
|
45
|
-
const baseClass = 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\'size-\'])]:size-4 shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive';
|
|
45
|
+
const baseClass = 'cursor-pointer inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\'size-\'])]:size-4 shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive';
|
|
46
46
|
|
|
47
47
|
const variantClass = computed(() => {
|
|
48
48
|
switch (props.variant) {
|