@code0-tech/pictor 0.12.0 → 0.13.1
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/LICENSE +20 -0
- package/dist/assets/components/avatar/Avatar.style.css +1 -1
- package/dist/assets/components/icon/Icon.style.css +1 -0
- package/dist/components/icon/Icon.d.ts +36 -0
- package/dist/components/icon/Icon.js +44 -0
- package/dist/components/icon/codezero/codezero.svg.js +5 -0
- package/dist/components/icon/codezero/gls.svg.js +5 -0
- package/dist/components/icon/codezero/index.d.ts +7 -0
- package/dist/components/icon/codezero/index.js +14 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +80 -77
- package/dist/vite-env.d.js +1 -0
- package/package.json +4 -1
package/LICENSE
CHANGED
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
Copyright 2023-2026 Code0 UG (haftungsbeschränkt)
|
|
2
2
|
|
|
3
|
+
This license applies to all files in this repository EXCEPT the contents of the
|
|
4
|
+
directory "src/components/icon/codezero" (and any build artifacts derived from
|
|
5
|
+
it), which are governed by the "Excluded Assets" section at the bottom of this
|
|
6
|
+
file.
|
|
7
|
+
|
|
3
8
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
9
|
|
|
5
10
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
11
|
|
|
7
12
|
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
Excluded Assets
|
|
17
|
+
|
|
18
|
+
The contents of the directory "src/components/icon/codezero" (and any build
|
|
19
|
+
artifacts derived from it, such as the corresponding files in the published
|
|
20
|
+
package) are NOT covered by the MIT license above. These files include brand
|
|
21
|
+
logos and trademarks that are the property of their respective owners and are
|
|
22
|
+
used by Code0 UG (haftungsbeschränkt) under permission.
|
|
23
|
+
|
|
24
|
+
No license or right to use, copy, modify, distribute, sublicense, or otherwise
|
|
25
|
+
exploit these excluded assets is granted to any third party. All rights are
|
|
26
|
+
reserved by their respective owners. Any use of these assets requires the prior
|
|
27
|
+
written permission of the respective rights holder.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.avatar{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;overflow:hidden}.avatar{background:#191825;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;background:transparent;box-shadow:none}.avatar--image{padding:0}.avatar--identicon>div>div{--color: inherit;background:transparent;width:calc(var(--size) * 1px);height:calc(var(--size) * 1px)}.avatar--identicon>div>div>span>svg{width:calc(var(--size) * 1px);height:calc(var(--size) * 1px)}.avatar--identicon>div>div>span,.avatar--identicon>div>div>p{color:var(--color);font-size:calc(var(--size) *
|
|
1
|
+
.avatar{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;overflow:hidden}.avatar{background:#191825;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;background:transparent;box-shadow:none}.avatar--image{padding:0}.avatar--identicon>div>div{--color: inherit;background:transparent;width:calc(var(--size) * 1px);height:calc(var(--size) * 1px)}.avatar--identicon>div>div>span>svg{width:calc(var(--size) * 1px);height:calc(var(--size) * 1px)}.avatar--identicon>div>div>span,.avatar--identicon>div>div>p{color:var(--color);font-size:calc(var(--size) * .75px)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.icon{display:inline-block;flex-shrink:0;vertical-align:middle}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Component } from '../../utils';
|
|
3
|
+
/**
|
|
4
|
+
* The common shape every resolved icon component is rendered with. All three
|
|
5
|
+
* sources (Tabler, Simple Icons, CodeZero) accept `size`/`color`; `stroke` is
|
|
6
|
+
* only honoured by Tabler icons and ignored by the others.
|
|
7
|
+
*/
|
|
8
|
+
export type IconComponent = React.FC<{
|
|
9
|
+
size?: number | string;
|
|
10
|
+
color?: string;
|
|
11
|
+
stroke?: number | string;
|
|
12
|
+
className?: string;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
} & Record<string, unknown>>;
|
|
15
|
+
/**
|
|
16
|
+
* A string reference to an icon, optionally prefixed with its source:
|
|
17
|
+
* - `tabler:<name>` (default when no prefix is given) e.g. `tabler:arrow-left`
|
|
18
|
+
* - `simple:<name>` e.g. `simple:github`
|
|
19
|
+
* - `codezero:<name>` e.g. `codezero:code0`
|
|
20
|
+
*
|
|
21
|
+
* Names are normalized, so `tabler:arrow-left`, `arrow-left`, `ArrowLeft` and
|
|
22
|
+
* `IconArrowLeft` all resolve to the same icon.
|
|
23
|
+
*/
|
|
24
|
+
export type IconString = `tabler:${string}` | `simple:${string}` | `codezero:${string}` | (string & {});
|
|
25
|
+
/**
|
|
26
|
+
* Resolves an {@link IconString} to its matching icon component from one of the
|
|
27
|
+
* registered sources. Falls back to Tabler's `IconNote` when no icon matches.
|
|
28
|
+
*/
|
|
29
|
+
export declare const resolveIcon: (icon?: IconString) => IconComponent;
|
|
30
|
+
export interface IconProps extends Omit<Component<SVGSVGElement>, "size"> {
|
|
31
|
+
icon: IconString;
|
|
32
|
+
size?: number | string;
|
|
33
|
+
color?: string;
|
|
34
|
+
stroke?: number | string;
|
|
35
|
+
}
|
|
36
|
+
export declare const Icon: React.FC<IconProps>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as b } from "react/jsx-runtime";
|
|
2
|
+
import { c as h } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import * as a from "@tabler/icons-react";
|
|
4
|
+
import * as I from "@icons-pack/react-simple-icons";
|
|
5
|
+
import * as f from "./codezero/index.js";
|
|
6
|
+
import "../../utils/contextStore.js";
|
|
7
|
+
import "react";
|
|
8
|
+
import { mergeComponentProps as k } from "../../utils/component.js";
|
|
9
|
+
import "js-md5";
|
|
10
|
+
import '../../assets/components/icon/Icon.style.css';/* empty css */
|
|
11
|
+
const x = (r) => {
|
|
12
|
+
const o = a.IconNote;
|
|
13
|
+
if (r?.startsWith("codezero:")) {
|
|
14
|
+
const e = r.replace("codezero:", "").trim().toLowerCase(), t = Object.keys(f).find((i) => i.toLowerCase() === e);
|
|
15
|
+
return t ? f[t] : o;
|
|
16
|
+
}
|
|
17
|
+
if (r?.startsWith("simple:")) {
|
|
18
|
+
const e = r.replace("simple:", "").trim(), t = `Si${e.charAt(0).toUpperCase() + e.slice(1)}`;
|
|
19
|
+
return t in I ? I[t] : o;
|
|
20
|
+
}
|
|
21
|
+
const n = `Icon${(r?.replace("tabler:", "") ?? "Note").trim().replace(/^icon/i, "").split(/[\s_-]+/).filter(Boolean).map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join("")}`;
|
|
22
|
+
return n in a ? a[n] : o;
|
|
23
|
+
}, S = (r) => {
|
|
24
|
+
const o = h.c(14);
|
|
25
|
+
let n, c, e, t, s;
|
|
26
|
+
if (o[0] !== r) {
|
|
27
|
+
const {
|
|
28
|
+
icon: m,
|
|
29
|
+
size: p,
|
|
30
|
+
color: d,
|
|
31
|
+
stroke: v,
|
|
32
|
+
...z
|
|
33
|
+
} = r, C = p === void 0 ? 24 : p, u = d === void 0 ? "currentColor" : d;
|
|
34
|
+
let l;
|
|
35
|
+
o[6] !== m ? (l = x(m), o[6] = m, o[7] = l) : l = o[7], n = l, c = C, e = u, t = v, s = k("icon", z), o[0] = r, o[1] = n, o[2] = c, o[3] = e, o[4] = t, o[5] = s;
|
|
36
|
+
} else
|
|
37
|
+
n = o[1], c = o[2], e = o[3], t = o[4], s = o[5];
|
|
38
|
+
let i;
|
|
39
|
+
return o[8] !== n || o[9] !== c || o[10] !== e || o[11] !== t || o[12] !== s ? (i = /* @__PURE__ */ b(n, { size: c, color: e, stroke: t, ...s }), o[8] = n, o[9] = c, o[10] = e, o[11] = t, o[12] = s, o[13] = i) : i = o[13], i;
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
S as Icon,
|
|
43
|
+
x as resolveIcon
|
|
44
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as c from "react";
|
|
2
|
+
const e = (v) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", id: "c", viewBox: "8.01 8.97 23.83 23.83", ...v }, /* @__PURE__ */ c.createElement("path", { d: "M25.498,8.966h-11.132c-3.508,0-6.351,2.843-6.351,6.351v11.132c0,3.507,2.843,6.351,6.351,6.351h11.132c3.508,0,6.351-2.843,6.351-6.351v-11.132c0-3.507-2.843-6.351-6.351-6.351ZM24.829,15.569h-.379c-.454,0-.759.101-.915.303-.157.202-.234.514-.234.938v2.011c0,.525-.071.968-.212,1.331s-.423.676-.847.938c.424.262.706.575.847.938s.212.807.212,1.331v2.012c0,.423.078.736.234.937.156.202.461.303.915.303h.379v1.8h-.303c-.635,0-1.167-.061-1.596-.182-.429-.121-.771-.298-1.029-.53s-.441-.516-.552-.855c-.111-.337-.167-.724-.167-1.157v-2.285c0-.423-.101-.766-.303-1.028-.198-.258-.522-.387-.965-.391-.443.004-.766.132-.966.391-.201.262-.302.605-.302,1.028v2.285c0,.433-.056.819-.167,1.157-.111.338-.295.623-.552.855s-.6.408-1.029.53c-.428.12-.96.182-1.596.182h-.303v-1.8h.379c.454,0,.758-.101.915-.303.156-.201.234-.514.234-.937v-2.012c0-.524.07-.968.212-1.331.141-.363.423-.676.847-.938-.423-.262-.705-.575-.847-.938-.142-.363-.212-.806-.212-1.331v-2.011c0-.424-.078-.736-.234-.938-.157-.201-.461-.303-.915-.303h-.379v-1.799h.303c.635,0,1.167.06,1.596.182.429.12.771.297,1.029.529.257.233.441.517.552.855.111.338.167.724.167,1.158v2.284c0,.423.101.766.302,1.029.199.258.522.386.966.39.443-.004.766-.131.965-.39.202-.262.303-.606.303-1.029v-2.284c0-.434.055-.819.167-1.158.111-.337.295-.622.552-.855.257-.232.6-.408,1.029-.529.428-.121.96-.182,1.596-.182h.303v1.799Z" }));
|
|
3
|
+
export {
|
|
4
|
+
e as default
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as c from "react";
|
|
2
|
+
const e = (a) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...a }, /* @__PURE__ */ c.createElement("title", null, "GLS"), /* @__PURE__ */ c.createElement("path", { d: "M 5.089 8.207 c 0.398 0.02 0.787 0.074 1.179 0.148 c 0.21 0.04 0.42 0.085 0.625 0.153 c 0.031 0.011 0.062 0.026 0.094 0.034 c 0.028 0.009 0.037 0.023 0.037 0.054 v 2.025 l -0.352 -0.102 a 8 8 0 0 0 -1.136 -0.241 a 4 4 0 0 0 -1.062 -0.014 a 2.1 2.1 0 0 0 -0.863 0.287 a 1.6 1.6 0 0 0 -0.67 0.872 c -0.08 0.239 -0.116 0.486 -0.125 0.738 q -0.015 0.337 0.034 0.673 c 0.043 0.264 0.119 0.517 0.27 0.741 c 0.199 0.293 0.48 0.46 0.818 0.537 c 0.185 0.043 0.372 0.065 0.559 0.045 c 0.352 -0.034 0.662 -0.165 0.895 -0.446 a 0.2 0.2 0 0 0 0.028 -0.04 q 0.004 -0.005 0.003 -0.009 c -0.011 -0.006 -0.026 -0.003 -0.037 -0.003 H 4.037 c -0.031 0 -0.043 -0.006 -0.043 -0.04 v -1.65 c 0 -0.031 0.009 -0.04 0.04 -0.04 h 3.771 c 0.031 0 0.04 0.009 0.04 0.04 v 4.075 c 0 0.028 -0.006 0.037 -0.037 0.037 H 6.28 c -0.034 0 -0.04 -0.011 -0.04 -0.043 l 0.009 -1.073 q 0.002 -0.018 -0.006 -0.04 l -0.031 0.06 a 2 2 0 0 1 -0.665 0.707 a 3.05 3.05 0 0 1 -1.213 0.471 a 4 4 0 0 1 -0.383 0.04 c -0.014 0.006 -0.028 0 -0.043 0.003 h -0.293 c -0.346 0 -0.684 -0.057 -1.017 -0.153 q -0.281 -0.081 -0.545 -0.213 a 3 3 0 0 1 -0.662 -0.449 a 3.4 3.4 0 0 1 -0.579 -0.662 a 3.5 3.5 0 0 1 -0.426 -0.917 a 4 4 0 0 1 -0.136 -0.619 a 3 3 0 0 1 -0.043 -0.463 l -0.003 -0.136 v -0.415 a 4.05 4.05 0 0 1 0.429 -1.795 q 0.201 -0.397 0.497 -0.736 a 4 4 0 0 1 0.787 -0.693 c 0.281 -0.19 0.585 -0.338 0.903 -0.454 A 5 5 0 0 1 3.916 8.24 q 0.282 -0.041 0.565 -0.043 h 0.091 c 0.02 -0.003 0.043 0.003 0.062 -0.003 h 0.307 c 0.02 0.009 0.043 0.003 0.062 0.003 h 0.04 c 0.017 0.009 0.031 0.003 0.045 0.009 M 16.9 16.21 a 13 13 0 0 1 -0.645 -0.034 a 10 10 0 0 1 -0.863 -0.105 a 6 6 0 0 1 -0.738 -0.168 c -0.028 -0.009 -0.037 -0.02 -0.037 -0.051 V 13.816 c 0 -0.043 0 -0.043 0.04 -0.031 c 0.327 0.102 0.662 0.179 1 0.244 q 0.388 0.077 0.781 0.128 q 0.311 0.04 0.628 0.048 c 0.187 0.006 0.375 -0.003 0.559 -0.037 a 0.8 0.8 0 0 0 0.298 -0.111 c 0.125 -0.08 0.179 -0.199 0.153 -0.335 a 0.21 0.21 0 0 0 -0.105 -0.145 a 0.9 0.9 0 0 0 -0.284 -0.111 q -0.464 -0.107 -0.929 -0.21 a 4.5 4.5 0 0 1 -0.991 -0.321 c -0.341 -0.162 -0.642 -0.378 -0.866 -0.684 a 2 2 0 0 1 -0.352 -0.843 a 3 3 0 0 1 -0.043 -0.506 c 0 -0.46 0.082 -0.9 0.307 -1.306 a 2.4 2.4 0 0 1 1.014 -0.983 a 3.4 3.4 0 0 1 1.008 -0.335 c 0.204 -0.037 0.412 -0.057 0.619 -0.068 c 0.014 -0.006 0.028 0 0.04 -0.003 h 0.045 c 0.02 -0.003 0.037 0.003 0.057 -0.003 h 0.287 c 0.02 0.009 0.043 0.003 0.062 0.003 h 0.085 c 0.182 0 0.364 0.014 0.542 0.034 q 0.47 0.045 0.934 0.125 c 0.196 0.034 0.392 0.071 0.588 0.119 c 0.057 0.014 0.057 0.017 0.057 0.074 v 1.928 c 0 0.048 -0.006 0.051 -0.054 0.04 a 11 11 0 0 0 -0.684 -0.151 a 15 15 0 0 0 -0.775 -0.128 a 11 11 0 0 0 -0.54 -0.057 a 5 5 0 0 0 -0.474 -0.006 a 1.05 1.05 0 0 0 -0.474 0.111 c -0.094 0.051 -0.168 0.122 -0.19 0.23 c -0.026 0.116 0.02 0.213 0.125 0.281 a 0.8 0.8 0 0 0 0.25 0.105 c 0.256 0.065 0.511 0.122 0.77 0.185 c 0.236 0.057 0.474 0.108 0.704 0.185 c 0.329 0.111 0.645 0.253 0.923 0.469 c 0.298 0.23 0.523 0.52 0.653 0.875 q 0.114 0.316 0.142 0.653 q 0.022 0.255 0.006 0.511 a 2.37 2.37 0 0 1 -0.44 1.252 a 2.5 2.5 0 0 1 -0.594 0.576 a 3.2 3.2 0 0 1 -1.034 0.46 a 4.5 4.5 0 0 1 -1.076 0.137 h -0.409 c -0.028 -0.006 -0.054 0 -0.08 -0.006 m 6.896 -1.24 c -0.017 0.045 -0.017 0.097 -0.026 0.145 c -0.051 0.25 -0.159 0.466 -0.335 0.65 c -0.21 0.224 -0.469 0.361 -0.772 0.4 a 1.28 1.28 0 0 1 -1.099 -0.355 a 1.26 1.26 0 0 1 -0.386 -0.733 A 1.29 1.29 0 0 1 21.479 14 a 1.23 1.23 0 0 1 0.775 -0.437 c 0.506 -0.077 0.929 0.082 1.255 0.477 c 0.17 0.207 0.261 0.449 0.284 0.716 c 0.006 0.02 0 0.04 0.003 0.062 v 0.08 c 0.003 0.017 -0.003 0.034 0.003 0.051 q -0.004 0.01 -0.003 0.02 M 8.63 12.206 V 8.369 c 0 -0.034 0.009 -0.04 0.04 -0.04 h 2.406 c 0.031 0 0.037 0.009 0.037 0.04 v 5.649 c 0 0.045 0 0.045 0.045 0.045 h 2.627 c 0.034 0 0.04 0.009 0.04 0.04 v 1.942 c 0 0.034 -0.011 0.04 -0.043 0.04 H 8.67 c -0.037 0 -0.043 -0.009 -0.043 -0.045 q 0.004 -1.917 0.003 -3.834" }));
|
|
3
|
+
export {
|
|
4
|
+
e as default
|
|
5
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type CustomIconProps = {
|
|
3
|
+
size?: number | string;
|
|
4
|
+
color?: string;
|
|
5
|
+
} & Omit<React.SVGProps<SVGSVGElement>, "color">;
|
|
6
|
+
export declare const CodeZero: React.FC<CustomIconProps>;
|
|
7
|
+
export declare const Gls: React.FC<CustomIconProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import e from "./codezero.svg.js";
|
|
3
|
+
import s from "./gls.svg.js";
|
|
4
|
+
const r = (t) => function({
|
|
5
|
+
size: o = 24,
|
|
6
|
+
color: n = "currentColor",
|
|
7
|
+
...c
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ m(t, { width: o, height: o, fill: n, ...c });
|
|
10
|
+
}, p = r(e), C = r(s);
|
|
11
|
+
export {
|
|
12
|
+
p as CodeZero,
|
|
13
|
+
C as Gls
|
|
14
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export * from './components/form/index';
|
|
|
20
20
|
export * from './components/json-view/JsonView';
|
|
21
21
|
export * from './components/fullscreen/FullScreen';
|
|
22
22
|
export * from './components/gantt/Gantt';
|
|
23
|
+
export * from './components/icon/Icon';
|
|
23
24
|
export * from './components/layout/Layout';
|
|
24
25
|
export * from './components/menu/Menu';
|
|
25
26
|
export * from './components/progress/Progress';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Alert as t } from "./components/alert/Alert.js";
|
|
2
|
-
import { AuroraBackground as
|
|
2
|
+
import { AuroraBackground as n } from "./components/aurora/Aurora.js";
|
|
3
3
|
import { Avatar as p } from "./components/avatar/Avatar.js";
|
|
4
4
|
import { Badge as l } from "./components/badge/Badge.js";
|
|
5
5
|
import { Breadcrumb as u } from "./components/breadcrumb/Breadcrumb.js";
|
|
@@ -13,7 +13,7 @@ import { ContextMenu as G, ContextMenuArrow as L, ContextMenuContent as y, Conte
|
|
|
13
13
|
import { DataTable as j } from "./components/data-table/DataTable.js";
|
|
14
14
|
import { DataTableColumn as K } from "./components/data-table/DataTableColumn.js";
|
|
15
15
|
import { DataTableHeader as W, DataTableHeaderColumn as X } from "./components/data-table/DataTableHeader.js";
|
|
16
|
-
import { DataTableMaxPaginationValue as _, DataTablePagination as $, DataTablePaginationBackwardsTrigger as ee, DataTablePaginationContext as oe, DataTablePaginationForwardTrigger as te, DataTablePaginationValue as re, useDataTablePagination as
|
|
16
|
+
import { DataTableMaxPaginationValue as _, DataTablePagination as $, DataTablePaginationBackwardsTrigger as ee, DataTablePaginationContext as oe, DataTablePaginationForwardTrigger as te, DataTablePaginationValue as re, useDataTablePagination as ne } from "./components/data-table/DataTablePagination.js";
|
|
17
17
|
import { DataTableFilterInput as pe, createFilterQueryLanguage as ie } from "./components/data-table/DataTableFilterInput.js";
|
|
18
18
|
import { DataTableFilterSuggestionMenu as me } from "./components/data-table/DataTableFilterSuggestionMenu.js";
|
|
19
19
|
import { Dialog as xe, DialogClose as fe, DialogContent as ge, DialogDescription as Ie, DialogFooter as Ce, DialogHeader as Te, DialogOverlay as Se, DialogPortal as be, DialogTitle as de, DialogTrigger as se } from "./components/dialog/Dialog.js";
|
|
@@ -28,7 +28,7 @@ import { FileInput as Ne, FileInputContext as Oe, FileInputDropzone as Qe, FileI
|
|
|
28
28
|
import { Input as $e } from "./components/form/Input.js";
|
|
29
29
|
import { InputDescription as oo } from "./components/form/InputDescription.js";
|
|
30
30
|
import { InputLabel as ro } from "./components/form/InputLabel.js";
|
|
31
|
-
import { InputMessage as
|
|
31
|
+
import { InputMessage as ao } from "./components/form/InputMessage.js";
|
|
32
32
|
import { InputSuggestionMenuContent as io, InputSuggestionMenuContentItems as lo } from "./components/form/InputSuggestion.js";
|
|
33
33
|
import { NumberInput as uo } from "./components/form/NumberInput.js";
|
|
34
34
|
import { PasswordInput as fo, passwordValidation as go } from "./components/form/PasswordInput.js";
|
|
@@ -44,28 +44,29 @@ import { buildDefaultSyntax as Oo } from "./components/form/Input.syntax.hook.js
|
|
|
44
44
|
import { JsonView as Jo } from "./components/json-view/JsonView.js";
|
|
45
45
|
import { FullScreen as jo } from "./components/fullscreen/FullScreen.js";
|
|
46
46
|
import { Gantt as Ko, getRelativeValue as Uo } from "./components/gantt/Gantt.js";
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
47
|
+
import { Icon as Xo, resolveIcon as Yo } from "./components/icon/Icon.js";
|
|
48
|
+
import { Layout as $o } from "./components/layout/Layout.js";
|
|
49
|
+
import { Menu as ot, MenuArrow as tt, MenuCheckboxItem as rt, MenuContent as nt, MenuGroup as at, MenuItem as pt, MenuItemIndicator as it, MenuLabel as lt, MenuPortal as mt, MenuSeparator as ut, MenuSub as xt, MenuSubContent as ft, MenuSubTrigger as gt, MenuTrigger as It } from "./components/menu/Menu.js";
|
|
50
|
+
import { Progress as Tt } from "./components/progress/Progress.js";
|
|
51
|
+
import { Quote as bt } from "./components/quote/Quote.js";
|
|
52
|
+
import { ResizableHandle as st, ResizablePanel as ct, ResizablePanelGroup as Mt } from "./components/resizable/Resizable.js";
|
|
53
|
+
import { Row as Ft } from "./components/row/Row.js";
|
|
54
|
+
import { AutoScrollArea as At, ScrollArea as wt, ScrollAreaCorner as vt, ScrollAreaScrollbar as ht, ScrollAreaThumb as Rt, ScrollAreaViewport as Vt } from "./components/scroll-area/ScrollArea.js";
|
|
55
|
+
import { SegmentedControl as Lt, SegmentedControlItem as yt } from "./components/segmented-control/SegmentedControl.js";
|
|
56
|
+
import { Spacing as Bt } from "./components/spacing/Spacing.js";
|
|
57
|
+
import { Tab as kt, TabContent as Et, TabList as Nt, TabTrigger as Ot } from "./components/tab/Tab.js";
|
|
58
|
+
import { Text as Jt } from "./components/text/Text.js";
|
|
59
|
+
import { Toast as jt, toast as qt } from "./components/toast/Toast.js";
|
|
60
|
+
import { Tooltip as Ut, TooltipArrow as Wt, TooltipContent as Xt, TooltipPortal as Yt, TooltipTrigger as _t } from "./components/tooltip/Tooltip.js";
|
|
61
|
+
import { ContextStore as er, ContextStoreProvider as or, useService as tr, useStore as rr } from "./utils/contextStore.js";
|
|
62
|
+
import { ReactiveArrayService as ar, useReactiveArrayService as pr } from "./utils/reactiveArrayService.js";
|
|
63
|
+
import { mergeComponentProps as lr } from "./utils/component.js";
|
|
64
|
+
import { Colors as ur, hashToColor as xr, withAlpha as fr } from "./utils/color.js";
|
|
65
|
+
import { getDOMSizeFromCodeZeroSize as Ir } from "./utils/size.js";
|
|
65
66
|
export {
|
|
66
67
|
t as Alert,
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
n as AuroraBackground,
|
|
69
|
+
At as AutoScrollArea,
|
|
69
70
|
p as Avatar,
|
|
70
71
|
l as Badge,
|
|
71
72
|
u as Breadcrumb,
|
|
@@ -74,7 +75,7 @@ export {
|
|
|
74
75
|
T as Card,
|
|
75
76
|
Le as CheckboxInput,
|
|
76
77
|
b as Col,
|
|
77
|
-
|
|
78
|
+
ur as Colors,
|
|
78
79
|
s as Command,
|
|
79
80
|
c as CommandDialog,
|
|
80
81
|
M as CommandEmpty,
|
|
@@ -97,8 +98,8 @@ export {
|
|
|
97
98
|
O as ContextMenuSubContent,
|
|
98
99
|
Q as ContextMenuSubTrigger,
|
|
99
100
|
J as ContextMenuTrigger,
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
er as ContextStore,
|
|
102
|
+
or as ContextStoreProvider,
|
|
102
103
|
j as DataTable,
|
|
103
104
|
K as DataTableColumn,
|
|
104
105
|
pe as DataTableFilterInput,
|
|
@@ -144,49 +145,50 @@ export {
|
|
|
144
145
|
Ve as Flex,
|
|
145
146
|
jo as FullScreen,
|
|
146
147
|
Ko as Gantt,
|
|
148
|
+
Xo as Icon,
|
|
147
149
|
$e as Input,
|
|
148
150
|
oo as InputDescription,
|
|
149
151
|
ro as InputLabel,
|
|
150
|
-
|
|
152
|
+
ao as InputMessage,
|
|
151
153
|
io as InputSuggestionMenuContent,
|
|
152
154
|
lo as InputSuggestionMenuContentItems,
|
|
153
155
|
Jo as JsonView,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
156
|
+
$o as Layout,
|
|
157
|
+
ot as Menu,
|
|
158
|
+
tt as MenuArrow,
|
|
159
|
+
rt as MenuCheckboxItem,
|
|
160
|
+
nt as MenuContent,
|
|
161
|
+
at as MenuGroup,
|
|
162
|
+
pt as MenuItem,
|
|
163
|
+
it as MenuItemIndicator,
|
|
164
|
+
lt as MenuLabel,
|
|
165
|
+
mt as MenuPortal,
|
|
166
|
+
ut as MenuSeparator,
|
|
167
|
+
xt as MenuSub,
|
|
168
|
+
ft as MenuSubContent,
|
|
169
|
+
gt as MenuSubTrigger,
|
|
170
|
+
It as MenuTrigger,
|
|
169
171
|
uo as NumberInput,
|
|
170
172
|
fo as PasswordInput,
|
|
171
173
|
Co as PinInput,
|
|
172
174
|
To as PinInputField,
|
|
173
175
|
So as PinInputHiddenField,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
+
Tt as Progress,
|
|
177
|
+
bt as Quote,
|
|
176
178
|
so as RadioGroup,
|
|
177
179
|
Mo as RadioInput,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
180
|
+
ar as ReactiveArrayService,
|
|
181
|
+
st as ResizableHandle,
|
|
182
|
+
ct as ResizablePanel,
|
|
183
|
+
Mt as ResizablePanelGroup,
|
|
184
|
+
Ft as Row,
|
|
185
|
+
wt as ScrollArea,
|
|
186
|
+
vt as ScrollAreaCorner,
|
|
187
|
+
ht as ScrollAreaScrollbar,
|
|
188
|
+
Rt as ScrollAreaThumb,
|
|
189
|
+
Vt as ScrollAreaViewport,
|
|
190
|
+
Lt as SegmentedControl,
|
|
191
|
+
yt as SegmentedControlItem,
|
|
190
192
|
Fo as SelectContent,
|
|
191
193
|
Po as SelectInput,
|
|
192
194
|
Ao as SelectItem,
|
|
@@ -195,34 +197,35 @@ export {
|
|
|
195
197
|
ho as SelectTrigger,
|
|
196
198
|
Ro as SelectValue,
|
|
197
199
|
Vo as SelectViewport,
|
|
198
|
-
|
|
200
|
+
Bt as Spacing,
|
|
199
201
|
Lo as SwitchInput,
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
202
|
+
kt as Tab,
|
|
203
|
+
Et as TabContent,
|
|
204
|
+
Nt as TabList,
|
|
205
|
+
Ot as TabTrigger,
|
|
206
|
+
Jt as Text,
|
|
205
207
|
zo as TextAreaInput,
|
|
206
208
|
Ho as TextInput,
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
209
|
+
jt as Toast,
|
|
210
|
+
Ut as Tooltip,
|
|
211
|
+
Wt as TooltipArrow,
|
|
212
|
+
Xt as TooltipContent,
|
|
213
|
+
Yt as TooltipPortal,
|
|
214
|
+
_t as TooltipTrigger,
|
|
213
215
|
Oo as buildDefaultSyntax,
|
|
214
216
|
ie as createFilterQueryLanguage,
|
|
215
217
|
ke as emailValidation,
|
|
216
|
-
|
|
218
|
+
Ir as getDOMSizeFromCodeZeroSize,
|
|
217
219
|
Uo as getRelativeValue,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
+
xr as hashToColor,
|
|
221
|
+
lr as mergeComponentProps,
|
|
220
222
|
go as passwordValidation,
|
|
221
|
-
|
|
222
|
-
|
|
223
|
+
Yo as resolveIcon,
|
|
224
|
+
qt as toast,
|
|
225
|
+
ne as useDataTablePagination,
|
|
223
226
|
Eo as useForm,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
227
|
+
pr as useReactiveArrayService,
|
|
228
|
+
tr as useService,
|
|
229
|
+
rr as useStore,
|
|
230
|
+
fr as withAlpha
|
|
228
231
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code0-tech/pictor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A simple template for a custom React component library",
|
|
6
6
|
"scripts": {
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"@codemirror/state": "^6.7.1",
|
|
28
28
|
"@codemirror/view": "^6.43.5",
|
|
29
29
|
"@dagrejs/dagre": "^3.0.0",
|
|
30
|
+
"@icons-pack/react-simple-icons": "^13.13.0",
|
|
30
31
|
"@lezer/common": "^1.5.2",
|
|
31
32
|
"@mdx-js/react": "^3.1.1",
|
|
32
33
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
@@ -98,6 +99,7 @@
|
|
|
98
99
|
"vite": "^7.3.1",
|
|
99
100
|
"vite-plugin-dts": "^4.5.4",
|
|
100
101
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
102
|
+
"vite-plugin-svgr": "^5.2.0",
|
|
101
103
|
"vitest": "^4.1.2",
|
|
102
104
|
"zustand": "^4.3.0"
|
|
103
105
|
},
|
|
@@ -112,6 +114,7 @@
|
|
|
112
114
|
"types": "dist/index.d.ts",
|
|
113
115
|
"peerDependencies": {
|
|
114
116
|
"@ark-ui/react": "^5.36.2",
|
|
117
|
+
"@icons-pack/react-simple-icons": "^13.13.0",
|
|
115
118
|
"@codemirror/autocomplete": "^6.20.0",
|
|
116
119
|
"@codemirror/lang-json": "^6.0.2",
|
|
117
120
|
"@codemirror/language": "^6.12.1",
|