v-uixy 1.9.1 → 1.9.2

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.
@@ -1,6 +1,8 @@
1
1
  export type UixyChartSeries = {
2
2
  label: string;
3
3
  values: number[];
4
+ color?: string;
5
+ baseColor?: string;
4
6
  };
5
7
 
6
8
  export type UixyChartData = {
@@ -11,8 +13,13 @@ export type UixyChartData = {
11
13
  export interface UixyChartProps {
12
14
  series?: UixyChartSeries[];
13
15
  data?: UixyChartData[];
16
+ labels?: string[];
17
+ axisLabels?: string[];
14
18
  color?: string;
15
19
  baseColor?: string;
16
20
  rows?: number;
17
21
  animate?: boolean;
22
+ axis?: boolean;
23
+ interactive?: boolean;
24
+ format?: (value: number) => string;
18
25
  }
@@ -36,7 +36,12 @@
36
36
  import type { UixyModalProps } from "./Modal.types";
37
37
  import { modalStyles } from "./Modal.styles";
38
38
  import { AnimatePresence, motion } from "motion-v";
39
- import { useModalLayer, MODAL_ATTR, getTopModalEl } from "~/composables";
39
+ import {
40
+ useModalLayer,
41
+ useGpuAcceleration,
42
+ MODAL_ATTR,
43
+ getTopModalEl,
44
+ } from "~/composables";
40
45
 
41
46
  const props = defineProps<UixyModalProps>();
42
47
 
@@ -56,6 +61,8 @@
56
61
  close: closeLayer,
57
62
  } = useModalLayer();
58
63
 
64
+ useGpuAcceleration();
65
+
59
66
  const modalAttr = computed(() => (open.value ? MODAL_ATTR : null));
60
67
 
61
68
  const handleClick = () => {
@@ -1,7 +1,7 @@
1
1
  import styles from "~/utils/styles";
2
2
 
3
3
  const modalStyles = styles(
4
- "fixed left-0 top-0 flex size-full items-center justify-center bg-white/5 backdrop-blur-[2px] dark:bg-gray-900/5"
4
+ "fixed left-0 top-0 flex size-full items-center justify-center bg-white/5 [html[data-uixy-gpu=on]_&]:backdrop-blur-[2px] dark:bg-gray-900/5"
5
5
  );
6
6
 
7
7
  export { modalStyles };