@code0-tech/pictor 0.18.0 → 0.18.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.
@@ -2,60 +2,60 @@ import { jsx as n } from "react/jsx-runtime";
2
2
  import { c as m } from "../../_virtual/compiler-runtime.js";
3
3
  import "../../utils/contextStore.js";
4
4
  import "react";
5
- import { mergeComponentProps as f } from "../../utils/component.js";
5
+ import { mergeComponentProps as a } from "../../utils/component.js";
6
6
  import "js-md5";
7
7
  import * as s from "@radix-ui/react-tooltip";
8
8
  import '../../assets/components/tooltip/Tooltip.style.css';/* empty css */
9
- import { AutoScrollArea as p } from "../scroll-area/ScrollArea.js";
9
+ import { AutoScrollArea as g } from "../scroll-area/ScrollArea.js";
10
10
  const y = (i) => {
11
11
  const t = m.c(4);
12
12
  let o;
13
- t[0] !== i ? (o = f("tooltip", i), t[0] = i, t[1] = o) : o = t[1];
13
+ t[0] !== i ? (o = a("tooltip", i), t[0] = i, t[1] = o) : o = t[1];
14
14
  const e = o;
15
15
  let l;
16
16
  return t[2] !== e ? (l = /* @__PURE__ */ n(s.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ n(s.Tooltip, { ...e }) }), t[2] = e, t[3] = l) : l = t[3], l;
17
17
  }, C = (i) => {
18
18
  const t = m.c(4);
19
19
  let o;
20
- t[0] !== i ? (o = f("tooltip__trigger", i), t[0] = i, t[1] = o) : o = t[1];
20
+ t[0] !== i ? (o = a("tooltip__trigger", i), t[0] = i, t[1] = o) : o = t[1];
21
21
  const e = o;
22
22
  let l;
23
23
  return t[2] !== e ? (l = /* @__PURE__ */ n(s.TooltipTrigger, { ...e }), t[2] = e, t[3] = l) : l = t[3], l;
24
- }, R = (i) => {
24
+ }, v = (i) => {
25
25
  const t = m.c(4);
26
26
  let o;
27
- t[0] !== i ? (o = f("tooltip__portal", i), t[0] = i, t[1] = o) : o = t[1];
27
+ t[0] !== i ? (o = a("tooltip__portal", i), t[0] = i, t[1] = o) : o = t[1];
28
28
  const e = o;
29
29
  let l;
30
30
  return t[2] !== e ? (l = /* @__PURE__ */ n(s.TooltipPortal, { ...e }), t[2] = e, t[3] = l) : l = t[3], l;
31
- }, j = (i) => {
31
+ }, R = (i) => {
32
32
  const t = m.c(12);
33
33
  let o, e, l, r;
34
34
  if (t[0] !== i) {
35
35
  const {
36
36
  children: _,
37
- ...g
37
+ ...d
38
38
  } = i;
39
- e = _, o = s.TooltipContent, r = i.align, l = f(`tooltip__content tooltip__content--${i.color ?? "tertiary"}`, g), t[0] = i, t[1] = o, t[2] = e, t[3] = l, t[4] = r;
39
+ e = _, o = s.TooltipContent, r = i.align, l = a(`tooltip__content tooltip__content--${i.color ?? "tertiary"}`, d), t[0] = i, t[1] = o, t[2] = e, t[3] = l, t[4] = r;
40
40
  } else
41
41
  o = t[1], e = t[2], l = t[3], r = t[4];
42
42
  const T = l;
43
43
  let c;
44
- t[5] !== e ? (c = /* @__PURE__ */ n(p, { children: e }), t[5] = e, t[6] = c) : c = t[6];
45
- let a;
46
- return t[7] !== o || t[8] !== r || t[9] !== T || t[10] !== c ? (a = /* @__PURE__ */ n(o, { align: r, ...T, children: c }), t[7] = o, t[8] = r, t[9] = T, t[10] = c, t[11] = a) : a = t[11], a;
47
- }, v = (i) => {
44
+ t[5] !== e ? (c = /* @__PURE__ */ n(g, { children: /* @__PURE__ */ n("div", { className: "tooltip__content-inner", children: e }) }), t[5] = e, t[6] = c) : c = t[6];
45
+ let f;
46
+ return t[7] !== o || t[8] !== r || t[9] !== T || t[10] !== c ? (f = /* @__PURE__ */ n(o, { align: r, ...T, children: c }), t[7] = o, t[8] = r, t[9] = T, t[10] = c, t[11] = f) : f = t[11], f;
47
+ }, j = (i) => {
48
48
  const t = m.c(5), o = `tooltip__arrow tooltip__arrow--${i.color ?? "tertiary"}}`;
49
49
  let e;
50
- t[0] !== i || t[1] !== o ? (e = f(o, i), t[0] = i, t[1] = o, t[2] = e) : e = t[2];
50
+ t[0] !== i || t[1] !== o ? (e = a(o, i), t[0] = i, t[1] = o, t[2] = e) : e = t[2];
51
51
  const l = e;
52
52
  let r;
53
53
  return t[3] !== l ? (r = /* @__PURE__ */ n(s.TooltipArrow, { ...l }), t[3] = l, t[4] = r) : r = t[4], r;
54
54
  };
55
55
  export {
56
56
  y as Tooltip,
57
- v as TooltipArrow,
58
- j as TooltipContent,
59
- R as TooltipPortal,
57
+ j as TooltipArrow,
58
+ R as TooltipContent,
59
+ v as TooltipPortal,
60
60
  C as TooltipTrigger
61
61
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code0-tech/pictor",
3
- "version": "0.18.0",
3
+ "version": "0.18.2",
4
4
  "type": "module",
5
5
  "description": "A simple template for a custom React component library",
6
6
  "scripts": {
@@ -25,10 +25,10 @@
25
25
  "@codemirror/language": "^6.12.4",
26
26
  "@codemirror/lint": "^6.9.7",
27
27
  "@codemirror/state": "^6.7.1",
28
- "@codemirror/view": "^6.43.6",
28
+ "@codemirror/view": "^6.43.9",
29
29
  "@dagrejs/dagre": "^3.0.0",
30
30
  "@icons-pack/react-simple-icons": "^13.13.0",
31
- "@internationalized/date": "^3.12.0",
31
+ "@internationalized/date": "^3.12.3",
32
32
  "@lezer/common": "^1.5.2",
33
33
  "@mdx-js/react": "^3.1.1",
34
34
  "@radix-ui/react-checkbox": "^1.3.11",
@@ -48,14 +48,14 @@
48
48
  "@rollup/plugin-node-resolve": "^16.0.3",
49
49
  "@rollup/plugin-terser": "^1.0.0",
50
50
  "@rollup/plugin-typescript": "^12.3.0",
51
- "@storybook/addon-a11y": "^10.4.2",
52
- "@storybook/addon-docs": "^10.4.2",
53
- "@storybook/addon-links": "^10.4.2",
54
- "@storybook/addon-onboarding": "^10.4.2",
55
- "@storybook/addon-vitest": "^10.4.2",
56
- "@storybook/builder-vite": "^10.4.2",
57
- "@storybook/cli": "^10.4.2",
58
- "@storybook/react-vite": "^10.4.2",
51
+ "@storybook/addon-a11y": "^10.6.0",
52
+ "@storybook/addon-docs": "^10.6.0",
53
+ "@storybook/addon-links": "^10.6.0",
54
+ "@storybook/addon-onboarding": "^10.6.0",
55
+ "@storybook/addon-vitest": "^10.6.0",
56
+ "@storybook/builder-vite": "^10.6.0",
57
+ "@storybook/cli": "^10.6.0",
58
+ "@storybook/react-vite": "^10.6.0",
59
59
  "@tabler/icons-react": "3.41.1",
60
60
  "@types/jest-image-snapshot": "^6.4.1",
61
61
  "@types/react": "^19.2.17",
@@ -66,8 +66,8 @@
66
66
  "@uiw/react-codemirror": "^4.25.10",
67
67
  "@uiw/react-json-view": "^2.0.0-alpha.43",
68
68
  "@vitejs/plugin-react": "^5.2.0",
69
- "@vitest/browser-playwright": "^4.1.2",
70
- "@vitest/coverage-v8": "^4.1.2",
69
+ "@vitest/browser-playwright": "^4.1.11",
70
+ "@vitest/coverage-v8": "^4.1.11",
71
71
  "avvvatars-react": "^0.4.2",
72
72
  "axe-playwright": "^2.2.2",
73
73
  "babel-loader": "^10.1.1",
@@ -94,7 +94,7 @@
94
94
  "slate-history": "^0.113.1",
95
95
  "slate-react": "^0.125.1",
96
96
  "sonner": "^2.0.7",
97
- "storybook": "^10.4.2",
97
+ "storybook": "^10.6.0",
98
98
  "style-loader": "^4.0.0",
99
99
  "ts-jest": "^29.4.11",
100
100
  "ts-node": "^10.9.2",
@@ -103,7 +103,7 @@
103
103
  "vite-plugin-dts": "^4.5.4",
104
104
  "vite-plugin-lib-inject-css": "^2.2.2",
105
105
  "vite-plugin-svgr": "^5.2.0",
106
- "vitest": "^4.1.2",
106
+ "vitest": "^4.1.11",
107
107
  "zustand": "^4.5.7",
108
108
  "recharts": "^3.8.1"
109
109
  },