@code0-tech/pictor 0.6.1 → 0.6.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.
- package/LICENSE +1 -1
- package/dist/assets/components/command/Command.style.css +1 -1
- package/dist/assets/components/gantt/Gantt.style.css +1 -0
- package/dist/assets/components/layout/Layout.style.css +1 -1
- package/dist/components/alert/Alert.d.ts +2 -2
- package/dist/components/alert/Alert.js +8 -7
- package/dist/components/avatar/Avatar.d.ts +2 -2
- package/dist/components/avatar/Avatar.js +30 -27
- package/dist/components/badge/Badge.d.ts +2 -2
- package/dist/components/badge/Badge.js +26 -23
- package/dist/components/breadcrumb/Breadcrumb.d.ts +2 -2
- package/dist/components/breadcrumb/Breadcrumb.js +16 -14
- package/dist/components/button/Button.d.ts +3 -3
- package/dist/components/button/Button.js +13 -12
- package/dist/components/button-group/ButtonGroup.d.ts +2 -2
- package/dist/components/button-group/ButtonGroup.js +23 -20
- package/dist/components/card/Card.d.ts +3 -3
- package/dist/components/card/Card.js +19 -16
- package/dist/components/card/CardSection.d.ts +2 -2
- package/dist/components/card/CardSection.js +16 -13
- package/dist/components/col/Col.d.ts +2 -2
- package/dist/components/col/Col.js +22 -19
- package/dist/components/command/Command.d.ts +12 -12
- package/dist/components/command/Command.js +95 -82
- package/dist/components/container/Container.d.ts +2 -2
- package/dist/components/container/Container.js +13 -10
- package/dist/components/context-menu/ContextMenu.d.ts +13 -13
- package/dist/components/context-menu/ContextMenu.js +26 -25
- package/dist/components/data-table/DataTable.d.ts +2 -2
- package/dist/components/data-table/DataTable.js +18 -17
- package/dist/components/data-table/DataTableColumn.d.ts +2 -2
- package/dist/components/data-table/DataTableColumn.js +12 -11
- package/dist/components/data-table/DataTableFilterInput.js +4 -3
- package/dist/components/dialog/Dialog.d.ts +12 -12
- package/dist/components/dialog/Dialog.js +24 -23
- package/dist/components/editor/Editor.d.ts +2 -2
- package/dist/components/editor/Editor.js +4 -3
- package/dist/components/file-tabs/FileTabs.d.ts +5 -5
- package/dist/components/file-tabs/FileTabs.js +38 -35
- package/dist/components/flex/Flex.d.ts +2 -2
- package/dist/components/flex/Flex.js +16 -13
- package/dist/components/form/CheckboxInput.js +17 -15
- package/dist/components/form/Input.d.ts +3 -3
- package/dist/components/form/Input.js +4 -3
- package/dist/components/form/PinInput.d.ts +3 -3
- package/dist/components/form/PinInput.js +33 -30
- package/dist/components/form/RadioGroup.js +22 -19
- package/dist/components/form/RadioInput.d.ts +2 -2
- package/dist/components/form/RadioInput.js +19 -16
- package/dist/components/fullscreen/FullScreen.d.ts +2 -2
- package/dist/components/fullscreen/FullScreen.js +8 -6
- package/dist/components/gantt/Gantt.d.ts +12 -0
- package/dist/components/gantt/Gantt.js +92 -0
- package/dist/components/gantt/GanttFooter.d.ts +2 -0
- package/dist/components/gantt/GanttFooter.js +38 -0
- package/dist/components/gantt/GanttGroup.d.ts +8 -0
- package/dist/components/gantt/GanttGroup.js +134 -0
- package/dist/components/gantt/GanttHeader.d.ts +10 -0
- package/dist/components/gantt/GanttHeader.js +55 -0
- package/dist/components/gantt/GanttItem.d.ts +16 -0
- package/dist/components/gantt/GanttItem.js +23 -0
- package/dist/components/layout/Layout.d.ts +3 -3
- package/dist/components/layout/Layout.js +37 -33
- package/dist/components/menu/Menu.d.ts +15 -15
- package/dist/components/menu/Menu.js +35 -32
- package/dist/components/resizable/Resizable.d.ts +4 -4
- package/dist/components/resizable/Resizable.js +18 -17
- package/dist/components/row/Row.d.ts +2 -2
- package/dist/components/row/Row.js +15 -12
- package/dist/components/scroll-area/ScrollArea.d.ts +6 -6
- package/dist/components/scroll-area/ScrollArea.js +35 -32
- package/dist/components/segmented-control/SegmentedControl.d.ts +3 -3
- package/dist/components/segmented-control/SegmentedControl.js +12 -11
- package/dist/components/spacing/Spacing.d.ts +3 -3
- package/dist/components/spacing/Spacing.js +12 -11
- package/dist/components/tab/Tab.d.ts +5 -5
- package/dist/components/tab/Tab.js +22 -21
- package/dist/components/text/Text.d.ts +3 -3
- package/dist/components/text/Text.js +14 -11
- package/dist/components/toast/Toast.d.ts +2 -2
- package/dist/components/toast/Toast.js +32 -31
- package/dist/components/tooltip/Tooltip.d.ts +6 -6
- package/dist/components/tooltip/Tooltip.js +34 -31
- package/dist/index.d.ts +1 -0
- package/dist/index.js +151 -152
- package/dist/utils/color.d.ts +4 -0
- package/dist/utils/color.js +43 -0
- package/dist/utils/component.d.ts +105 -0
- package/dist/utils/component.js +130 -0
- package/dist/utils/index.d.ts +3 -4
- package/dist/utils/index.js +14 -18
- package/dist/utils/size.d.ts +4 -0
- package/dist/utils/size.js +21 -0
- package/dist/utils/utils.d.ts +0 -55
- package/dist/utils/utils.js +1 -159
- package/package.json +3 -3
- package/dist/utils/nonReactiveArrayService.d.ts +0 -19
- package/dist/utils/nonReactiveArrayService.js +0 -54
- package/dist/utils/objectStore.d.ts +0 -12
- package/dist/utils/objectStore.js +0 -34
- package/dist/utils/types.d.ts +0 -57
- package/dist/utils/types.js +0 -4
package/LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright 2023-2026 Code0 UG (haftungsbeschränkt)
|
|
1
|
+
Copyright 2023-2026 Code0 UG (haftungsbeschränkt)
|
|
2
2
|
|
|
3
3
|
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
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.command{
|
|
1
|
+
.command{display:flex;height:100%;width:100%;flex-direction:column;overflow:hidden;padding:.7rem;box-sizing:border-box}.command__dialog{padding:0}.command__list:focus{outline:none}.command__input.input:focus,.command .input.input:hover:focus,.command .input.input:active:focus,.command .input.input:focus:focus,.command .input.input:focus-within:focus,.command .input.input:not(:focus):focus{outline:none}.command__input.input,.command .input.input:hover,.command .input.input:active,.command .input.input:focus,.command .input.input:focus-within,.command .input.input:not(:focus){width:100%;border:none!important;outline:none!important;background:transparent;box-shadow:none!important;display:flex;height:2rem;color:#ffffffbf;font-size:.8rem;border-radius:.65rem}.command__input.input::placeholder,.command .input.input:hover::placeholder,.command .input.input:active::placeholder,.command .input.input:focus::placeholder,.command .input.input:focus-within::placeholder,.command .input.input:not(:focus)::placeholder{color:#ffffff40}.command__input.input .input__right,.command .input.input:hover .input__right,.command .input.input:active .input__right,.command .input.input:focus .input__right,.command .input.input:focus-within .input__right,.command .input.input:not(:focus) .input__right{padding-right:0}.command__empty{padding:1rem 0 1.3rem;text-align:center;font-size:.8rem;color:#ffffff80}.command__empty{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.command [cmdk-group-heading]{padding:.35rem .7rem}.command__group{overflow:hidden;text-transform:uppercase;font-size:.7rem;padding:.35rem 0 0;color:#ffffff80}.command__group{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.command__item{position:relative;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;font-size:.8rem;outline:none;color:#ffffffbf;border-radius:.65rem;padding:.35rem .35rem .35rem .8rem;gap:.7rem;text-transform:none}.command__item[data-disabled=true]{pointer-events:none;color:#ffffff40}.command__item[data-selected=true]{background:#201e2c;box-shadow:inset 0 1px 1px #ffffff1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;width:100%}.command__item svg{pointer-events:none;width:1rem;height:1rem;flex-shrink:0}.command__separator{height:1px;margin:.35rem 0;background:#ffffff1a}.command__shortcut{margin-left:auto;font-size:.7rem;letter-spacing:.1rem;padding:0 .35rem;border-radius:.375rem!important;color:#ffffff80;background:#070514}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.gantt__item{position:absolute;top:0;bottom:0;background:transparent}.gantt__group-wrapper{top:0;bottom:0;height:100%;position:absolute;background:transparent}.gantt__header{position:sticky;height:fit-content;grid-column:1/-1;display:flex;top:0;background:#070514;border-bottom:1px solid rgba(255,255,255,.25);z-index:10}.gantt__header-column{position:absolute;height:100%;padding:8px;text-align:center;display:flex;align-items:center;justify-content:center;box-sizing:border-box;transform:translate(-50%)}.gantt__header-label{text-wrap:nowrap;display:flex;align-items:center}.gantt__header-label-column{position:sticky;left:0;width:fit-content;height:100%;padding:8px;display:flex;align-items:center;justify-content:start;box-sizing:border-box;background:#070514;z-index:2}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.d-layout{position:relative;width:100%;height:100%;overflow:hidden;display:flex}.d-layout__inner{display:flex;flex-direction:column;width:100%;height:100%}.d-layout__top,.d-layout__bottom{flex:0 0 auto}.d-layout__middle{display:flex;flex:1 1 auto;min-height:0;height:100%;width:100%}.d-layout__splitter{background:#bfbfbf1a;position:relative;align-self:stretch}.d-layout__splitter[aria-orientation=vertical]{width:1px;height:auto}.d-layout__splitter[aria-orientation=horizontal]{width:100%;height:
|
|
1
|
+
.d-layout{position:relative;width:100%;height:100%;overflow:hidden;display:flex;box-sizing:border-box}.d-layout__inner{display:flex;flex-direction:column;width:100%;height:100%}.d-layout__top,.d-layout__bottom{flex:0 0 auto}.d-layout__middle{display:flex;flex:1 1 auto;min-height:0;height:100%;width:100%}.d-layout__splitter{background:#bfbfbf1a;position:relative;align-self:stretch}.d-layout__splitter[aria-orientation=vertical]{width:1px;height:auto}.d-layout__splitter[aria-orientation=horizontal]{width:100%;height:1px}.d-layout__left,.d-layout__right{flex:0 0 auto}.d-layout__content{flex:1 1 auto;min-width:0;min-height:0}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface AlertProps extends
|
|
2
|
+
import { Component, Color } from '../../utils';
|
|
3
|
+
export interface AlertProps extends Component<HTMLDivElement> {
|
|
4
4
|
color?: Color;
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
}
|
|
@@ -2,19 +2,20 @@ import { jsxs as z, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as C } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import "../../utils/contextStore.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import {
|
|
5
|
+
import { mergeComponentProps as I } from "../../utils/component.js";
|
|
6
|
+
import "js-md5";
|
|
6
7
|
import { IconCircleX as h, IconAlertCircle as y, IconCircleCheck as x, IconInfoCircle as u, IconCircleDot as a } from "@tabler/icons-react";
|
|
7
8
|
import '../../assets/components/alert/Alert.style.css';/* empty css */
|
|
8
|
-
const
|
|
9
|
+
const w = (n) => {
|
|
9
10
|
const e = C.c(10);
|
|
10
11
|
let o, i, c, t;
|
|
11
12
|
if (e[0] !== n) {
|
|
12
13
|
const {
|
|
13
14
|
color: f,
|
|
14
|
-
children:
|
|
15
|
-
...
|
|
15
|
+
children: p,
|
|
16
|
+
...d
|
|
16
17
|
} = n;
|
|
17
|
-
o =
|
|
18
|
+
o = p, i = f === void 0 ? "secondary" : f;
|
|
18
19
|
let s;
|
|
19
20
|
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
|
|
20
21
|
primary: /* @__PURE__ */ r(a, { size: 16 }),
|
|
@@ -24,7 +25,7 @@ const k = (n) => {
|
|
|
24
25
|
success: /* @__PURE__ */ r(x, { size: 16 }),
|
|
25
26
|
warning: /* @__PURE__ */ r(y, { size: 16 }),
|
|
26
27
|
error: /* @__PURE__ */ r(h, { size: 16 })
|
|
27
|
-
}, e[5] = s) : s = e[5], c = s, t = I(`alert alert--${i}`,
|
|
28
|
+
}, e[5] = s) : s = e[5], c = s, t = I(`alert alert--${i}`, d), e[0] = n, e[1] = o, e[2] = i, e[3] = c, e[4] = t;
|
|
28
29
|
} else
|
|
29
30
|
o = e[1], i = e[2], c = e[3], t = e[4];
|
|
30
31
|
const m = c[i];
|
|
@@ -35,5 +36,5 @@ const k = (n) => {
|
|
|
35
36
|
] }), e[6] = o, e[7] = t, e[8] = m, e[9] = l) : l = e[9], l;
|
|
36
37
|
};
|
|
37
38
|
export {
|
|
38
|
-
|
|
39
|
+
w as Alert
|
|
39
40
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface AvatarProps extends
|
|
2
|
+
import { Component } from '../../utils/component';
|
|
3
|
+
export interface AvatarProps extends Component<HTMLDivElement> {
|
|
4
4
|
identifier?: string;
|
|
5
5
|
src?: string;
|
|
6
6
|
size?: number;
|
|
@@ -1,53 +1,56 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { c as d } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { mergeComponentProps as y } from "../../utils/component.js";
|
|
3
4
|
import '../../assets/components/avatar/Avatar.style.css';/* empty css */
|
|
4
|
-
import
|
|
5
|
-
import
|
|
5
|
+
import z from "avvvatars-react";
|
|
6
|
+
import "../../utils/contextStore.js";
|
|
7
|
+
import "react";
|
|
8
|
+
import { hashToColor as A } from "../../utils/color.js";
|
|
6
9
|
const $ = (m) => {
|
|
7
|
-
const t =
|
|
10
|
+
const t = d.c(3), {
|
|
8
11
|
src: e,
|
|
9
12
|
size: i
|
|
10
13
|
} = m;
|
|
11
|
-
let
|
|
12
|
-
return t[0] !== i || t[1] !== e ? (
|
|
14
|
+
let o;
|
|
15
|
+
return t[0] !== i || t[1] !== e ? (o = /* @__PURE__ */ p("img", { src: e, width: i, height: i, alt: "Avatar image" }), t[0] = i, t[1] = e, t[2] = o) : o = t[2], o;
|
|
13
16
|
}, x = (m) => {
|
|
14
|
-
const t =
|
|
17
|
+
const t = d.c(12), {
|
|
15
18
|
identifier: e,
|
|
16
19
|
size: i,
|
|
17
|
-
color:
|
|
20
|
+
color: o,
|
|
18
21
|
type: s
|
|
19
22
|
} = m;
|
|
20
|
-
let
|
|
21
|
-
t[0] !==
|
|
23
|
+
let r;
|
|
24
|
+
t[0] !== o || t[1] !== e ? (r = o ?? A(e), t[0] = o, t[1] = e, t[2] = r) : r = t[2];
|
|
22
25
|
let l;
|
|
23
|
-
t[3] !==
|
|
24
|
-
"--color":
|
|
25
|
-
}, t[3] =
|
|
26
|
-
const
|
|
26
|
+
t[3] !== r ? (l = {
|
|
27
|
+
"--color": r
|
|
28
|
+
}, t[3] = r, t[4] = l) : l = t[4];
|
|
29
|
+
const n = l, c = s ?? "shape";
|
|
27
30
|
let a;
|
|
28
|
-
t[5] !== e || t[6] !== i || t[7] !==
|
|
31
|
+
t[5] !== e || t[6] !== i || t[7] !== c ? (a = /* @__PURE__ */ p(z, { style: c, value: e, size: i }), t[5] = e, t[6] = i, t[7] = c, t[8] = a) : a = t[8];
|
|
29
32
|
let f;
|
|
30
|
-
return t[9] !==
|
|
31
|
-
},
|
|
32
|
-
const t =
|
|
33
|
-
let e, i,
|
|
33
|
+
return t[9] !== n || t[10] !== a ? (f = /* @__PURE__ */ p("div", { style: n, children: a }), t[9] = n, t[10] = a, t[11] = f) : f = t[11], f;
|
|
34
|
+
}, b = (m) => {
|
|
35
|
+
const t = d.c(16);
|
|
36
|
+
let e, i, o, s, r, l;
|
|
34
37
|
if (t[0] !== m) {
|
|
35
38
|
const {
|
|
36
39
|
identifier: a,
|
|
37
40
|
color: f,
|
|
38
41
|
src: h,
|
|
39
|
-
size:
|
|
42
|
+
size: v,
|
|
40
43
|
type: g,
|
|
41
44
|
...u
|
|
42
45
|
} = m;
|
|
43
|
-
i = a, e = f, s = h, l = g,
|
|
46
|
+
i = a, e = f, s = h, l = g, o = v === void 0 ? 32 : v, r = y(`avatar ${!i && s ? "avatar--image" : "avatar--identicon"}`, u), t[0] = m, t[1] = e, t[2] = i, t[3] = o, t[4] = s, t[5] = r, t[6] = l;
|
|
44
47
|
} else
|
|
45
|
-
e = t[1], i = t[2],
|
|
46
|
-
let c;
|
|
47
|
-
t[7] !== e || t[8] !== i || t[9] !== r || t[10] !== s || t[11] !== l ? (c = i ? /* @__PURE__ */ d(x, { type: l, color: e, identifier: i, size: r }) : s ? /* @__PURE__ */ d($, { src: s, size: r }) : null, t[7] = e, t[8] = i, t[9] = r, t[10] = s, t[11] = l, t[12] = c) : c = t[12];
|
|
48
|
+
e = t[1], i = t[2], o = t[3], s = t[4], r = t[5], l = t[6];
|
|
48
49
|
let n;
|
|
49
|
-
|
|
50
|
+
t[7] !== e || t[8] !== i || t[9] !== o || t[10] !== s || t[11] !== l ? (n = i ? /* @__PURE__ */ p(x, { type: l, color: e, identifier: i, size: o }) : s ? /* @__PURE__ */ p($, { src: s, size: o }) : null, t[7] = e, t[8] = i, t[9] = o, t[10] = s, t[11] = l, t[12] = n) : n = t[12];
|
|
51
|
+
let c;
|
|
52
|
+
return t[13] !== r || t[14] !== n ? (c = /* @__PURE__ */ p("div", { ...r, children: n }), t[13] = r, t[14] = n, t[15] = c) : c = t[15], c;
|
|
50
53
|
};
|
|
51
54
|
export {
|
|
52
|
-
|
|
55
|
+
b as Avatar
|
|
53
56
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface BadgeType extends
|
|
2
|
+
import { Color, Component } from '../../utils';
|
|
3
|
+
export interface BadgeType extends Component<HTMLSpanElement> {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
color?: Color | string;
|
|
6
6
|
border?: boolean;
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { c as g } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import '../../assets/components/badge/Badge.style.css';/* empty css */
|
|
4
|
-
import
|
|
5
|
-
|
|
4
|
+
import "../../utils/contextStore.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { mergeComponentProps as p } from "../../utils/component.js";
|
|
7
|
+
import "js-md5";
|
|
8
|
+
const R = (e) => {
|
|
6
9
|
const o = g.c(6);
|
|
7
|
-
let
|
|
8
|
-
if (o[0] !==
|
|
10
|
+
let t, r;
|
|
11
|
+
if (o[0] !== e) {
|
|
9
12
|
const {
|
|
10
|
-
color:
|
|
13
|
+
color: c,
|
|
11
14
|
border: d,
|
|
12
15
|
children: a,
|
|
13
16
|
...b
|
|
14
|
-
} =
|
|
15
|
-
|
|
16
|
-
const s =
|
|
17
|
+
} = e;
|
|
18
|
+
t = a;
|
|
19
|
+
const s = c === void 0 ? "primary" : c;
|
|
17
20
|
r = p(`badge badge--${s} ${(d === void 0 ? !1 : d) ? "" : "badge--border"}`, {
|
|
18
21
|
...b,
|
|
19
22
|
style: {
|
|
@@ -22,12 +25,12 @@ const M = (t) => {
|
|
|
22
25
|
"--badge-color-border": l(s, 0.1),
|
|
23
26
|
"--badge-color": l(s, 0.75)
|
|
24
27
|
}
|
|
25
|
-
}), o[0] =
|
|
28
|
+
}), o[0] = e, o[1] = t, o[2] = r;
|
|
26
29
|
} else
|
|
27
|
-
|
|
28
|
-
let
|
|
29
|
-
return o[3] !==
|
|
30
|
-
}, i = (
|
|
30
|
+
t = o[1], r = o[2];
|
|
31
|
+
let n;
|
|
32
|
+
return o[3] !== t || o[4] !== r ? (n = /* @__PURE__ */ u("span", { ...r, children: t }), o[3] = t, o[4] = r, o[5] = n) : n = o[5], n;
|
|
33
|
+
}, i = (e) => Math.min(Math.max(e, 0), 1), m = (e) => {
|
|
31
34
|
if (typeof document > "u")
|
|
32
35
|
return {
|
|
33
36
|
r: 0,
|
|
@@ -36,10 +39,10 @@ const M = (t) => {
|
|
|
36
39
|
a: 1
|
|
37
40
|
};
|
|
38
41
|
const o = document.createElement("span");
|
|
39
|
-
o.style.color =
|
|
40
|
-
const
|
|
42
|
+
o.style.color = e, document.body.appendChild(o);
|
|
43
|
+
const t = getComputedStyle(o).color;
|
|
41
44
|
document.body.removeChild(o);
|
|
42
|
-
const r =
|
|
45
|
+
const r = t.match(/rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)(?:\s*,\s*([\d.]+))?\s*\)/);
|
|
43
46
|
return r ? {
|
|
44
47
|
r: Math.round(Number(r[1])),
|
|
45
48
|
g: Math.round(Number(r[2])),
|
|
@@ -51,13 +54,13 @@ const M = (t) => {
|
|
|
51
54
|
b: 0,
|
|
52
55
|
a: 1
|
|
53
56
|
};
|
|
54
|
-
}, h = (
|
|
55
|
-
const
|
|
56
|
-
return `rgb(${
|
|
57
|
-
}, l = (
|
|
58
|
-
const
|
|
59
|
-
return `rgba(${
|
|
57
|
+
}, h = (e, o) => {
|
|
58
|
+
const t = i(o * 0.1), r = m(e), n = m("#070514"), c = (d, a) => Math.round(d * (1 - t) + a * t);
|
|
59
|
+
return `rgb(${c(r.r, n.r)}, ${c(r.g, n.g)}, ${c(r.b, n.b)})`;
|
|
60
|
+
}, l = (e, o) => {
|
|
61
|
+
const t = m(e);
|
|
62
|
+
return `rgba(${t.r}, ${t.g}, ${t.b}, ${i(o)})`;
|
|
60
63
|
};
|
|
61
64
|
export {
|
|
62
|
-
|
|
65
|
+
R as Badge
|
|
63
66
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface BreadcrumbProps extends
|
|
2
|
+
import { Component } from '../../utils';
|
|
3
|
+
export interface BreadcrumbProps extends Component<HTMLDivElement> {
|
|
4
4
|
splitter?: React.ReactNode;
|
|
5
5
|
children?: React.ReactNode | React.ReactNode[];
|
|
6
6
|
}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { jsx as r, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import t from "react";
|
|
3
|
+
import "../../utils/contextStore.js";
|
|
4
|
+
import { mergeComponentProps as l } from "../../utils/component.js";
|
|
5
|
+
import "js-md5";
|
|
4
6
|
import '../../assets/components/breadcrumb/Breadcrumb.style.css';/* empty css */
|
|
5
|
-
import { IconChevronRight as
|
|
6
|
-
const
|
|
7
|
+
import { IconChevronRight as a } from "@tabler/icons-react";
|
|
8
|
+
const j = (m) => {
|
|
7
9
|
const {
|
|
8
|
-
splitter: n = /* @__PURE__ */ r(
|
|
9
|
-
children:
|
|
10
|
-
...
|
|
11
|
-
} = m,
|
|
12
|
-
return /* @__PURE__ */ r("div", { ...
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
] },
|
|
10
|
+
splitter: n = /* @__PURE__ */ r(a, { size: 16 }),
|
|
11
|
+
children: o,
|
|
12
|
+
...i
|
|
13
|
+
} = m, c = t.Children.count(o);
|
|
14
|
+
return /* @__PURE__ */ r("div", { ...l("breadcrumb", i), children: t.Children.map(o, (p, e) => /* @__PURE__ */ s(t.Fragment, { children: [
|
|
15
|
+
p,
|
|
16
|
+
e < c - 1 ? /* @__PURE__ */ r("span", { className: "breadcrumb__splitter", children: n }) : null
|
|
17
|
+
] }, e)) });
|
|
16
18
|
};
|
|
17
19
|
export {
|
|
18
|
-
|
|
20
|
+
j as Breadcrumb
|
|
19
21
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface ButtonProps extends
|
|
2
|
+
import { Component, Sizes, Color } from '../../utils';
|
|
3
|
+
export interface ButtonProps extends Component<HTMLButtonElement> {
|
|
4
4
|
children: ReactNode | ReactNode[];
|
|
5
5
|
color?: Color;
|
|
6
6
|
variant?: "none" | "normal" | "outlined" | "filled";
|
|
7
7
|
active?: boolean;
|
|
8
8
|
disabled?: boolean;
|
|
9
|
-
paddingSize?:
|
|
9
|
+
paddingSize?: Sizes;
|
|
10
10
|
}
|
|
11
11
|
export declare const Button: React.FC<ButtonProps>;
|
|
@@ -3,11 +3,12 @@ import { c as h } from "../../_virtual/compiler-runtime.js";
|
|
|
3
3
|
import '../../assets/components/button/Button.style.css';/* empty css */
|
|
4
4
|
import z from "react";
|
|
5
5
|
import "../../utils/contextStore.js";
|
|
6
|
-
import {
|
|
7
|
-
|
|
6
|
+
import { mergeComponentProps as S } from "../../utils/component.js";
|
|
7
|
+
import "js-md5";
|
|
8
|
+
const k = z.forwardRef((a, s) => {
|
|
8
9
|
const t = h.c(11);
|
|
9
|
-
let o,
|
|
10
|
-
if (t[0] !== a || t[1] !==
|
|
10
|
+
let o, n, e, i;
|
|
11
|
+
if (t[0] !== a || t[1] !== s) {
|
|
11
12
|
const {
|
|
12
13
|
children: f,
|
|
13
14
|
variant: c,
|
|
@@ -15,17 +16,17 @@ const P = z.forwardRef((a, d) => {
|
|
|
15
16
|
paddingSize: m,
|
|
16
17
|
active: b,
|
|
17
18
|
disabled: u,
|
|
18
|
-
...
|
|
19
|
+
...p
|
|
19
20
|
} = a;
|
|
20
21
|
o = f;
|
|
21
|
-
const
|
|
22
|
-
|
|
22
|
+
const v = c === void 0 ? "normal" : c, $ = l === void 0 ? "secondary" : l, g = m === void 0 ? "xs" : m, x = b === void 0 ? !1 : b;
|
|
23
|
+
n = u === void 0 ? !1 : u, e = s, i = S(`button button--${$} ${x ? "button--active" : ""} ${n ? "button--disabled" : ""} button--${v} button--${g}`, p), t[0] = a, t[1] = s, t[2] = o, t[3] = n, t[4] = e, t[5] = i;
|
|
23
24
|
} else
|
|
24
|
-
o = t[2],
|
|
25
|
-
const
|
|
26
|
-
let
|
|
27
|
-
return t[6] !== o || t[7] !== e || t[8] !== i || t[9] !==
|
|
25
|
+
o = t[2], n = t[3], e = t[4], i = t[5];
|
|
26
|
+
const d = n ? "true" : "false";
|
|
27
|
+
let r;
|
|
28
|
+
return t[6] !== o || t[7] !== e || t[8] !== i || t[9] !== d ? (r = /* @__PURE__ */ R("button", { ref: e, ...i, "aria-disabled": d, children: o }), t[6] = o, t[7] = e, t[8] = i, t[9] = d, t[10] = r) : r = t[10], r;
|
|
28
29
|
});
|
|
29
30
|
export {
|
|
30
|
-
|
|
31
|
+
k as Button
|
|
31
32
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React, ReactElement } from 'react';
|
|
2
2
|
import { ButtonProps } from '../button/Button';
|
|
3
|
-
import {
|
|
4
|
-
export interface ButtonGroupType extends
|
|
3
|
+
import { Component, Color } from '../../utils';
|
|
4
|
+
export interface ButtonGroupType extends Component<HTMLDivElement> {
|
|
5
5
|
children: ReactElement<ButtonProps>[];
|
|
6
6
|
color?: Color;
|
|
7
7
|
}
|
|
@@ -1,28 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { c as u } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import '../../assets/components/button-group/ButtonGroup.style.css';/* empty css */
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import "../../utils/contextStore.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { mergeComponentProps as c } from "../../utils/component.js";
|
|
7
|
+
import "js-md5";
|
|
8
|
+
const v = (p) => {
|
|
9
|
+
const t = u.c(10);
|
|
10
|
+
let o, r;
|
|
11
|
+
if (t[0] !== p) {
|
|
9
12
|
const {
|
|
10
|
-
children:
|
|
11
|
-
color:
|
|
12
|
-
...
|
|
13
|
-
} =
|
|
14
|
-
o =
|
|
13
|
+
children: n,
|
|
14
|
+
color: i,
|
|
15
|
+
...l
|
|
16
|
+
} = p;
|
|
17
|
+
o = n, r = c(`button-group button-group--${i === void 0 ? "secondary" : i}`, l), t[0] = p, t[1] = o, t[2] = r;
|
|
15
18
|
} else
|
|
16
|
-
o = t[1],
|
|
17
|
-
let
|
|
19
|
+
o = t[1], r = t[2];
|
|
20
|
+
let e;
|
|
18
21
|
if (t[3] !== o) {
|
|
19
|
-
let
|
|
20
|
-
t[5] !== o.length ? (
|
|
22
|
+
let n;
|
|
23
|
+
t[5] !== o.length ? (n = (i, l) => /* @__PURE__ */ s("div", { className: `${l == 0 || l == o.length - 1 ? l == 0 ? "button-group__first" : "button-group__last" : "button-group__item"}`, children: i }, i.key ?? `button-group-${l}`), t[5] = o.length, t[6] = n) : n = t[6], e = o.map(n), t[3] = o, t[4] = e;
|
|
21
24
|
} else
|
|
22
|
-
|
|
23
|
-
let
|
|
24
|
-
return t[7] !==
|
|
25
|
+
e = t[4];
|
|
26
|
+
let m;
|
|
27
|
+
return t[7] !== r || t[8] !== e ? (m = /* @__PURE__ */ s("div", { ...r, children: e }), t[7] = r, t[8] = e, t[9] = m) : m = t[9], m;
|
|
25
28
|
};
|
|
26
29
|
export {
|
|
27
|
-
|
|
30
|
+
v as ButtonGroup
|
|
28
31
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface Card extends
|
|
2
|
+
import { Color, Component, Sizes } from '../../utils';
|
|
3
|
+
export interface Card extends Component<HTMLDivElement> {
|
|
4
4
|
children: ReactNode | ReactNode[];
|
|
5
5
|
color?: Color;
|
|
6
6
|
variant?: "none" | "normal" | "outlined" | "filled";
|
|
@@ -10,6 +10,6 @@ export interface Card extends Code0Component<HTMLDivElement> {
|
|
|
10
10
|
outline?: boolean;
|
|
11
11
|
outlineColor?: Color;
|
|
12
12
|
dashed?: boolean;
|
|
13
|
-
paddingSize?:
|
|
13
|
+
paddingSize?: Sizes;
|
|
14
14
|
}
|
|
15
15
|
export declare const Card: React.FC<Card>;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as f, Fragment as j } from "react/jsx-runtime";
|
|
2
2
|
import { c as E } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import '../../assets/components/card/Card.style.css';/* empty css */
|
|
4
|
-
import
|
|
5
|
-
|
|
4
|
+
import "../../utils/contextStore.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { mergeComponentProps as F } from "../../utils/component.js";
|
|
7
|
+
import "js-md5";
|
|
8
|
+
const G = (e) => {
|
|
6
9
|
const o = E.c(6);
|
|
7
|
-
let r,
|
|
10
|
+
let r, t;
|
|
8
11
|
if (o[0] !== e) {
|
|
9
12
|
const {
|
|
10
13
|
children: C,
|
|
@@ -16,27 +19,27 @@ const A = (e) => {
|
|
|
16
19
|
outlineColor: s,
|
|
17
20
|
outline: m,
|
|
18
21
|
dashed: g,
|
|
19
|
-
paddingSize:
|
|
22
|
+
paddingSize: p,
|
|
20
23
|
...u
|
|
21
24
|
} = e;
|
|
22
25
|
r = C;
|
|
23
|
-
const h = i === void 0 ? "primary" : i, b = n === void 0 ? "normal" : n,
|
|
24
|
-
|
|
26
|
+
const h = i === void 0 ? "primary" : i, b = n === void 0 ? "normal" : n, v = a === void 0 ? !1 : a, x = c === void 0 ? "secondary" : c, $ = l === void 0 ? "secondary" : l, y = s === void 0 ? "secondary" : s, z = m === void 0 ? !1 : m, S = g === void 0 ? !1 : g;
|
|
27
|
+
t = F(`
|
|
25
28
|
card
|
|
26
29
|
card--${h} card--${b}
|
|
27
|
-
card--${
|
|
30
|
+
card--${p === void 0 ? "xl" : p}
|
|
28
31
|
${z ? `card--outline-${y}` : ""}
|
|
29
|
-
${
|
|
30
|
-
${
|
|
32
|
+
${v ? "card--gradient" : ""}
|
|
33
|
+
${$ ? `card--border-${$}` : ""}
|
|
31
34
|
${S ? "card--border--dashed" : ""}
|
|
32
|
-
${
|
|
35
|
+
${v ? `card--gradient-${x}` : ""}
|
|
33
36
|
|
|
34
|
-
`, u), o[0] = e, o[1] = r, o[2] =
|
|
37
|
+
`, u), o[0] = e, o[1] = r, o[2] = t;
|
|
35
38
|
} else
|
|
36
|
-
r = o[1],
|
|
37
|
-
let
|
|
38
|
-
return o[3] !== r || o[4] !==
|
|
39
|
+
r = o[1], t = o[2];
|
|
40
|
+
let d;
|
|
41
|
+
return o[3] !== r || o[4] !== t ? (d = /* @__PURE__ */ f(j, { children: /* @__PURE__ */ f("div", { ...t, children: r }) }), o[3] = r, o[4] = t, o[5] = d) : d = o[5], d;
|
|
39
42
|
};
|
|
40
43
|
export {
|
|
41
|
-
|
|
44
|
+
G as Card
|
|
42
45
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Component } from '../../utils';
|
|
2
2
|
import { default as React, ReactNode } from 'react';
|
|
3
|
-
export interface SectionType extends
|
|
3
|
+
export interface SectionType extends Component<HTMLDivElement> {
|
|
4
4
|
children: ReactNode | ReactNode[];
|
|
5
5
|
image?: boolean;
|
|
6
6
|
border?: boolean;
|
|
@@ -1,28 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as m, Fragment as l } from "react/jsx-runtime";
|
|
2
2
|
import { c as f } from "../../_virtual/compiler-runtime.js";
|
|
3
|
-
import
|
|
4
|
-
|
|
3
|
+
import "../../utils/contextStore.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { mergeComponentProps as v } from "../../utils/component.js";
|
|
6
|
+
import "js-md5";
|
|
7
|
+
const j = (i) => {
|
|
5
8
|
const e = f.c(6);
|
|
6
9
|
let r, o;
|
|
7
10
|
if (e[0] !== i) {
|
|
8
11
|
const {
|
|
9
12
|
image: c,
|
|
10
|
-
border:
|
|
11
|
-
hover:
|
|
12
|
-
children:
|
|
13
|
-
...
|
|
13
|
+
border: n,
|
|
14
|
+
hover: s,
|
|
15
|
+
children: a,
|
|
16
|
+
...d
|
|
14
17
|
} = i;
|
|
15
|
-
r =
|
|
18
|
+
r = a, o = v(`
|
|
16
19
|
card__section
|
|
17
|
-
${(
|
|
20
|
+
${(n === void 0 ? !1 : n) ? "card__section--border" : ""}
|
|
18
21
|
${(c === void 0 ? !1 : c) ? "card__section--image" : ""}
|
|
19
|
-
${(
|
|
20
|
-
`,
|
|
22
|
+
${(s === void 0 ? !1 : s) ? "card__section--hover" : ""}
|
|
23
|
+
`, d), e[0] = i, e[1] = r, e[2] = o;
|
|
21
24
|
} else
|
|
22
25
|
r = e[1], o = e[2];
|
|
23
26
|
let t;
|
|
24
|
-
return e[3] !== r || e[4] !== o ? (t = /* @__PURE__ */
|
|
27
|
+
return e[3] !== r || e[4] !== o ? (t = /* @__PURE__ */ m(l, { children: /* @__PURE__ */ m("div", { ...o, children: r }) }), e[3] = r, e[4] = o, e[5] = t) : t = e[5], t;
|
|
25
28
|
};
|
|
26
29
|
export {
|
|
27
|
-
|
|
30
|
+
j as default
|
|
28
31
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Component } from '../../utils';
|
|
3
3
|
export type ColBreakPointRange = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
4
|
-
export interface ColType extends
|
|
4
|
+
export interface ColType extends Component<HTMLDivElement> {
|
|
5
5
|
children: ReactNode | ReactNode[];
|
|
6
6
|
xs?: ColBreakPointRange;
|
|
7
7
|
sm?: ColBreakPointRange;
|