@alphakits/ui 2.5.15 → 2.5.17
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/calendar/utils.js +29 -27
- package/dist/image-uploader/component.js +205 -127
- package/dist/image-uploader/index.css +1 -1
- package/dist/image-uploader/index.module.css.js +26 -10
- package/dist/index.d.ts +1 -0
- package/dist/index.js +135 -133
- package/dist/input/component.js +42 -40
- package/dist/input-ghost/component.js +5 -4
- package/dist/settings-info-block/component.d.ts +16 -0
- package/dist/settings-info-block/component.js +78 -0
- package/dist/settings-info-block/index.css +1 -0
- package/dist/settings-info-block/index.d.ts +1 -0
- package/dist/settings-info-block/index.js +4 -0
- package/dist/settings-info-block/index.module.css.js +35 -0
- package/dist/textarea/component.js +1 -1
- package/dist/utils/date/index.js +12 -9
- package/package.json +1 -1
package/dist/calendar/utils.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { useRef as
|
|
2
|
-
import { startOfDay as
|
|
3
|
-
const
|
|
1
|
+
import { useRef as W, useEffect as g } from "react";
|
|
2
|
+
import { startOfDay as O, startOfMonth as D, startOfISOWeek as p, endOfISOWeek as v, lastDayOfMonth as T, eachDayOfInterval as I, isSameDay as h, eachMonthOfInterval as S, endOfYear as E, startOfYear as u, eachYearOfInterval as x, max as d, min as m, addDays as l, isBefore as w, isAfter as y, isSameMonth as A, endOfWeek as N, startOfWeek as Y, addMonths as _, subMonths as R, subDays as k } from "../utils/date/index.js";
|
|
3
|
+
const M = 7, X = 12, K = 6;
|
|
4
4
|
function B(e) {
|
|
5
5
|
const n = e.getDay();
|
|
6
|
-
return n === 0 ?
|
|
6
|
+
return n === 0 ? M - 1 : n - 1;
|
|
7
7
|
}
|
|
8
8
|
function j(e, t) {
|
|
9
|
-
const n = () => Array(
|
|
9
|
+
const n = () => Array(M).fill(null), r = D(e), i = p(D(e)), f = v(T(e));
|
|
10
10
|
let s = n();
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const o = [];
|
|
12
|
+
for (const a of I({ start: i, end: f })) {
|
|
13
|
+
const c = B(a);
|
|
14
|
+
s[c] = H(a, r, t), (c === K || h(a, f)) && (o.push(s), s = n());
|
|
15
|
+
}
|
|
16
|
+
return s.some((a) => a !== null) && o.push(s), o;
|
|
15
17
|
}
|
|
16
18
|
function q(e, t) {
|
|
17
19
|
return S({ start: u(e), end: E(e) }).map(
|
|
@@ -20,17 +22,17 @@ function q(e, t) {
|
|
|
20
22
|
}
|
|
21
23
|
function z(e, t) {
|
|
22
24
|
return x({
|
|
23
|
-
start:
|
|
25
|
+
start: m([u(t), u(e)]),
|
|
24
26
|
end: d([u(t), u(e)])
|
|
25
27
|
}).reverse();
|
|
26
28
|
}
|
|
27
29
|
function H(e, t, n) {
|
|
28
|
-
const { minDate: r, maxDate: i, selected:
|
|
30
|
+
const { minDate: r, maxDate: i, selected: f, eventsMap: s = {}, offDaysMap: o = {} } = n, a = o[e.getTime()], c = r && w(e, r) || i && y(e, i);
|
|
29
31
|
return {
|
|
30
32
|
date: e,
|
|
31
|
-
disabled: c ||
|
|
33
|
+
disabled: c || a,
|
|
32
34
|
event: s[e.getTime()],
|
|
33
|
-
selected:
|
|
35
|
+
selected: f && h(e, f),
|
|
34
36
|
muted: !A(e, t)
|
|
35
37
|
};
|
|
36
38
|
}
|
|
@@ -38,15 +40,15 @@ function U(e, t) {
|
|
|
38
40
|
const { minMonth: n, maxMonth: r } = t;
|
|
39
41
|
return {
|
|
40
42
|
date: e,
|
|
41
|
-
disabled: n &&
|
|
43
|
+
disabled: n && w(e, n) || r && y(e, r)
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
|
-
function
|
|
46
|
+
function b(e, t, n) {
|
|
45
47
|
let r = e;
|
|
46
|
-
return t && (r = d([t, r])), n && (r =
|
|
48
|
+
return t && (r = d([t, r])), n && (r = m([n, r])), new Date(r);
|
|
47
49
|
}
|
|
48
50
|
function C(e, t, n) {
|
|
49
|
-
return e &&
|
|
51
|
+
return e && b(e, t, n).getTime() === new Date(e).getTime();
|
|
50
52
|
}
|
|
51
53
|
function G(e, t, n) {
|
|
52
54
|
return new Intl.DateTimeFormat(t, { month: n ? "short" : "long" }).format(
|
|
@@ -54,31 +56,31 @@ function G(e, t, n) {
|
|
|
54
56
|
);
|
|
55
57
|
}
|
|
56
58
|
function J(e) {
|
|
57
|
-
return e.reduce((t, n) => (t[
|
|
59
|
+
return e.reduce((t, n) => (t[O(n).getTime()] = !0, t), {});
|
|
58
60
|
}
|
|
59
61
|
function P(e, t, n) {
|
|
60
62
|
const r = t || n;
|
|
61
63
|
return e && r && e !== r ? {
|
|
62
|
-
start:
|
|
64
|
+
start: m([e, r]),
|
|
63
65
|
end: d([e, r])
|
|
64
66
|
} : null;
|
|
65
67
|
}
|
|
66
68
|
function Q(e, t, n, r, i = {}) {
|
|
67
69
|
let s = {
|
|
68
|
-
prev: () =>
|
|
69
|
-
prevWeek: () =>
|
|
70
|
+
prev: () => k(t, 1),
|
|
71
|
+
prevWeek: () => k(t, 7),
|
|
70
72
|
prevMonth: () => R(t, 1),
|
|
71
73
|
next: () => l(t, 1),
|
|
72
74
|
nextWeek: () => l(t, 7),
|
|
73
75
|
nextMonth: () => _(t, 1),
|
|
74
76
|
startOfWeek: () => Y(t, { weekStartsOn: 1 }),
|
|
75
|
-
endOfWeek: () =>
|
|
77
|
+
endOfWeek: () => O(N(t, { weekStartsOn: 1 }))
|
|
76
78
|
}[e]();
|
|
77
79
|
for (; i[s.getTime()]; ) {
|
|
78
80
|
let o = s < t ? -1 : 1;
|
|
79
81
|
e === "endOfWeek" && (o = -1), e === "startOfWeek" && (o = 1), s = l(s, o);
|
|
80
82
|
}
|
|
81
|
-
return
|
|
83
|
+
return b(s, n, r);
|
|
82
84
|
}
|
|
83
85
|
function V(e) {
|
|
84
86
|
if (window.KeyboardEvent) {
|
|
@@ -90,13 +92,13 @@ function V(e) {
|
|
|
90
92
|
}
|
|
91
93
|
}
|
|
92
94
|
function Z(e, t) {
|
|
93
|
-
const n =
|
|
94
|
-
|
|
95
|
+
const n = W(!1);
|
|
96
|
+
g(() => {
|
|
95
97
|
n.current ? e() : n.current = !0;
|
|
96
98
|
}, t);
|
|
97
99
|
}
|
|
98
100
|
export {
|
|
99
|
-
|
|
101
|
+
M as DAYS_IN_WEEK,
|
|
100
102
|
X as MONTHS_IN_YEAR,
|
|
101
103
|
K as SUNDAY_INDEX,
|
|
102
104
|
H as buildDay,
|
|
@@ -107,7 +109,7 @@ export {
|
|
|
107
109
|
j as generateWeeks,
|
|
108
110
|
z as generateYears,
|
|
109
111
|
P as getSelectionRange,
|
|
110
|
-
|
|
112
|
+
b as limitDate,
|
|
111
113
|
Q as modifyDateByShift,
|
|
112
114
|
G as monthName,
|
|
113
115
|
B as russianWeekDay,
|
|
@@ -1,149 +1,227 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { SuperListHeader as
|
|
14
|
-
import { Typography as
|
|
15
|
-
import { getServiceError as
|
|
16
|
-
import { showError as
|
|
17
|
-
import
|
|
18
|
-
const
|
|
1
|
+
import { jsxs as f, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import or from "@alphakits/icons/dist/EyeS";
|
|
3
|
+
import tr from "@alphakits/icons/dist/HeartS";
|
|
4
|
+
import O from "@alphakits/icons/dist/PlusS";
|
|
5
|
+
import ar from "@alphakits/icons/dist/TrashS";
|
|
6
|
+
import A from "classnames";
|
|
7
|
+
import { forwardRef as nr, useState as m, useRef as P } from "react";
|
|
8
|
+
import { Button as sr } from "../button/component.js";
|
|
9
|
+
import { FlexColumns as ir } from "../flex-columns/component.js";
|
|
10
|
+
import { IconButton as y } from "../icon-button/component.js";
|
|
11
|
+
import { Image as cr } from "../image/component.js";
|
|
12
|
+
import { ImageGallery as lr } from "../image-gallery/component.js";
|
|
13
|
+
import { SuperListHeader as dr } from "../super-list-header/component.js";
|
|
14
|
+
import { Typography as L } from "../typography/component.js";
|
|
15
|
+
import { getServiceError as fr } from "../utils/get-service-error/index.js";
|
|
16
|
+
import { showError as pr } from "../utils/show-toast/index.js";
|
|
17
|
+
import a from "./index.module.css.js";
|
|
18
|
+
const w = "application/x-image-uploader-index", mr = (t, g, p) => {
|
|
19
|
+
if (g === p) return t;
|
|
20
|
+
const c = [...t], [N] = c.splice(g, 1);
|
|
21
|
+
return c.splice(p, 0, N), c;
|
|
22
|
+
}, br = nr(
|
|
19
23
|
({
|
|
20
|
-
value:
|
|
21
|
-
title:
|
|
22
|
-
subtitle:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if (!
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
return
|
|
24
|
+
value: t = [],
|
|
25
|
+
title: g,
|
|
26
|
+
subtitle: p,
|
|
27
|
+
onUpdate: c,
|
|
28
|
+
uploadRequest: N,
|
|
29
|
+
setMain: S,
|
|
30
|
+
type: B,
|
|
31
|
+
main: k,
|
|
32
|
+
multiple: s,
|
|
33
|
+
error: v,
|
|
34
|
+
className: H,
|
|
35
|
+
children: z
|
|
36
|
+
}, M) => {
|
|
37
|
+
const [j, I] = m(!1), [G, K] = m(), [R, x] = m(!1), [W, h] = m(!1), [_, C] = m(null), u = P(null), d = P(0), D = () => u.current?.click(), E = async (r) => {
|
|
38
|
+
const e = Array.from(r).filter(
|
|
39
|
+
(l) => l.type.startsWith("image/") || /\.heic$/i.test(l.name)
|
|
40
|
+
);
|
|
41
|
+
if (!e.length) return;
|
|
42
|
+
const n = e.map((l) => {
|
|
43
|
+
const i = new FormData();
|
|
44
|
+
return i.append("file", l), i.append("type", B), N({ data: i });
|
|
41
45
|
});
|
|
42
|
-
|
|
46
|
+
x(!0);
|
|
43
47
|
try {
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
} catch (
|
|
47
|
-
const { message:
|
|
48
|
-
|
|
48
|
+
const i = (await Promise.all(n)).map(({ data: er }) => er.url);
|
|
49
|
+
c(s ? [...t, ...i] : i.slice(0, 1));
|
|
50
|
+
} catch (l) {
|
|
51
|
+
const { message: i } = fr(l);
|
|
52
|
+
pr(i);
|
|
49
53
|
} finally {
|
|
50
|
-
|
|
54
|
+
u.current && (u.current.value = ""), x(!1);
|
|
51
55
|
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
56
|
+
}, b = async ({ target: { files: r } }) => {
|
|
57
|
+
r && await E(r);
|
|
58
|
+
}, $ = (r, e) => {
|
|
59
|
+
c(r.filter((n) => n !== e));
|
|
60
|
+
}, q = (r, e) => {
|
|
61
|
+
c(mr(t, r, e));
|
|
62
|
+
}, J = (r) => {
|
|
63
|
+
r.preventDefault(), d.current += 1, h(!0);
|
|
64
|
+
}, Q = (r) => {
|
|
65
|
+
r.preventDefault(), d.current -= 1, d.current <= 0 && (d.current = 0, h(!1));
|
|
66
|
+
}, F = (r) => {
|
|
67
|
+
r.preventDefault(), r.dataTransfer.dropEffect = r.dataTransfer.types.includes(w) ? "move" : "copy";
|
|
68
|
+
}, V = async (r) => {
|
|
69
|
+
r.preventDefault(), r.stopPropagation(), d.current = 0, h(!1), !r.dataTransfer.getData(w) && r.dataTransfer.files?.length && await E(r.dataTransfer.files);
|
|
70
|
+
}, X = (r, e) => {
|
|
71
|
+
!s || t.length < 2 || (r.dataTransfer.setData(w, String(e)), r.dataTransfer.effectAllowed = "move", C(e));
|
|
72
|
+
}, Y = () => {
|
|
73
|
+
C(null);
|
|
74
|
+
}, Z = (r, e) => {
|
|
75
|
+
if (r.preventDefault(), r.stopPropagation(), d.current = 0, h(!1), r.dataTransfer.files?.length) {
|
|
76
|
+
E(r.dataTransfer.files);
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const n = Number(r.dataTransfer.getData(w));
|
|
80
|
+
Number.isNaN(n) || n === e || (q(n, e), C(null));
|
|
81
|
+
}, T = s || !t.length, U = !t.length, rr = !T;
|
|
82
|
+
return /* @__PURE__ */ f("div", { className: H, children: [
|
|
83
|
+
/* @__PURE__ */ o(
|
|
55
84
|
"input",
|
|
56
85
|
{
|
|
57
86
|
type: "file",
|
|
58
87
|
style: { height: 0, position: "absolute" },
|
|
59
|
-
ref:
|
|
60
|
-
onChange:
|
|
61
|
-
multiple:
|
|
88
|
+
ref: M,
|
|
89
|
+
onChange: b,
|
|
90
|
+
multiple: s,
|
|
62
91
|
accept: "image/*, .heic"
|
|
63
92
|
}
|
|
64
93
|
),
|
|
65
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ o(
|
|
66
95
|
"input",
|
|
67
96
|
{
|
|
68
97
|
type: "file",
|
|
69
98
|
style: { height: 0, position: "absolute" },
|
|
70
|
-
ref:
|
|
71
|
-
onChange:
|
|
72
|
-
multiple:
|
|
99
|
+
ref: u,
|
|
100
|
+
onChange: b,
|
|
101
|
+
multiple: s,
|
|
73
102
|
accept: "image/*, .heic"
|
|
74
103
|
}
|
|
75
104
|
),
|
|
76
|
-
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
105
|
+
z ? /* @__PURE__ */ o(sr, { view: "ghost", onClick: D, children: z({ value: t, loading: R }) }) : /* @__PURE__ */ f(ir, { columns: 1, gr: 12, gc: 0, children: [
|
|
106
|
+
/* @__PURE__ */ f("div", { className: a.header, children: [
|
|
107
|
+
/* @__PURE__ */ o(
|
|
108
|
+
dr,
|
|
109
|
+
{
|
|
110
|
+
text: g,
|
|
111
|
+
rightAddons: rr ? /* @__PURE__ */ o(
|
|
112
|
+
y,
|
|
113
|
+
{
|
|
114
|
+
onClick: D,
|
|
115
|
+
icon: O,
|
|
116
|
+
loading: R
|
|
117
|
+
}
|
|
118
|
+
) : void 0
|
|
119
|
+
}
|
|
120
|
+
),
|
|
121
|
+
p && /* @__PURE__ */ o(
|
|
122
|
+
L.Text,
|
|
123
|
+
{
|
|
124
|
+
view: "primary-small",
|
|
125
|
+
color: "secondary",
|
|
126
|
+
weight: "medium",
|
|
127
|
+
children: p
|
|
128
|
+
}
|
|
129
|
+
),
|
|
130
|
+
v && /* @__PURE__ */ o(L.Text, { view: "caps", color: "negative", weight: "medium", children: v })
|
|
131
|
+
] }),
|
|
132
|
+
(!!t.length || T) && /* @__PURE__ */ f("div", { className: a.grid, children: [
|
|
133
|
+
t.map((r, e) => /* @__PURE__ */ o(
|
|
134
|
+
"div",
|
|
135
|
+
{
|
|
136
|
+
className: A(a.card, {
|
|
137
|
+
[a.cardDragging]: _ === e
|
|
138
|
+
}),
|
|
139
|
+
draggable: s && t.length > 1,
|
|
140
|
+
onDragStart: (n) => X(n, e),
|
|
141
|
+
onDragEnd: Y,
|
|
142
|
+
onDragOver: F,
|
|
143
|
+
onDrop: (n) => Z(n, e),
|
|
144
|
+
children: /* @__PURE__ */ f(
|
|
145
|
+
cr,
|
|
146
|
+
{
|
|
147
|
+
className: a.thumbnail,
|
|
148
|
+
src: r,
|
|
149
|
+
size: "xl",
|
|
150
|
+
view: "default",
|
|
151
|
+
children: [
|
|
152
|
+
s && k === r && /* @__PURE__ */ o("div", { className: a.mainBadge, children: "MAIN" }),
|
|
153
|
+
/* @__PURE__ */ f(
|
|
154
|
+
"div",
|
|
155
|
+
{
|
|
156
|
+
className: a.controls,
|
|
157
|
+
onMouseDown: (n) => n.stopPropagation(),
|
|
158
|
+
children: [
|
|
159
|
+
s && !!S && k !== r && /* @__PURE__ */ o(
|
|
160
|
+
y,
|
|
161
|
+
{
|
|
162
|
+
onClick: () => S(r),
|
|
163
|
+
icon: tr,
|
|
164
|
+
size: "s",
|
|
165
|
+
className: a.action
|
|
166
|
+
}
|
|
167
|
+
),
|
|
168
|
+
/* @__PURE__ */ o(
|
|
169
|
+
y,
|
|
170
|
+
{
|
|
171
|
+
onClick: () => {
|
|
172
|
+
K(e), I(!0);
|
|
173
|
+
},
|
|
174
|
+
icon: or,
|
|
175
|
+
size: "s",
|
|
176
|
+
className: a.action
|
|
177
|
+
}
|
|
178
|
+
),
|
|
179
|
+
/* @__PURE__ */ o(
|
|
180
|
+
y,
|
|
181
|
+
{
|
|
182
|
+
onClick: () => $(t, r),
|
|
183
|
+
icon: ar,
|
|
184
|
+
size: "s",
|
|
185
|
+
className: a.action
|
|
186
|
+
}
|
|
187
|
+
)
|
|
188
|
+
]
|
|
189
|
+
}
|
|
190
|
+
)
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
)
|
|
194
|
+
},
|
|
195
|
+
r
|
|
196
|
+
)),
|
|
197
|
+
T && /* @__PURE__ */ o(
|
|
198
|
+
"div",
|
|
199
|
+
{
|
|
200
|
+
role: "button",
|
|
201
|
+
tabIndex: 0,
|
|
202
|
+
className: A(a.dropzone, {
|
|
203
|
+
[a.dropzoneActive]: W,
|
|
204
|
+
[a.dropzoneEmpty]: U
|
|
205
|
+
}),
|
|
206
|
+
onClick: D,
|
|
207
|
+
onKeyDown: (r) => {
|
|
208
|
+
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), D());
|
|
209
|
+
},
|
|
210
|
+
onDragEnter: J,
|
|
211
|
+
onDragLeave: Q,
|
|
212
|
+
onDragOver: F,
|
|
213
|
+
onDrop: V,
|
|
214
|
+
children: /* @__PURE__ */ o(O, { className: a.dropzoneIcon })
|
|
215
|
+
}
|
|
216
|
+
)
|
|
217
|
+
] }),
|
|
218
|
+
/* @__PURE__ */ o(
|
|
219
|
+
lr,
|
|
142
220
|
{
|
|
143
|
-
photos:
|
|
144
|
-
initialSlide:
|
|
145
|
-
open:
|
|
146
|
-
onClose: () =>
|
|
221
|
+
photos: t.map((r) => ({ src: r })),
|
|
222
|
+
initialSlide: G || 0,
|
|
223
|
+
open: j,
|
|
224
|
+
onClose: () => I(!1)
|
|
147
225
|
}
|
|
148
226
|
)
|
|
149
227
|
] })
|
|
@@ -151,5 +229,5 @@ const de = D(
|
|
|
151
229
|
}
|
|
152
230
|
);
|
|
153
231
|
export {
|
|
154
|
-
|
|
232
|
+
br as ImageUploader
|
|
155
233
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.header_r6rI{display:flex;flex-direction:column;gap:4px}.header_r6rI>:first-child{min-height:0;min-height:initial;padding:0}.grid_xbZY{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,136px));grid-gap:12px;gap:12px}.card_Hah9,.dropzone_RCg5{width:100%;max-width:136px;height:80px;box-sizing:border-box}.card_Hah9{position:relative;cursor:grab;border-radius:var(--radius-s, 8px);overflow:hidden}.card_Hah9:active{cursor:grabbing}.cardDragging_0e1s{opacity:.45}.card_Hah9 .thumbnail_jtZG{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none;border-radius:inherit!important;overflow:hidden}.card_Hah9 .thumbnail_jtZG>div{border-radius:inherit!important}.card_Hah9 .thumbnail_jtZG img{border-radius:inherit}.card_Hah9:hover .controls_XUF4{opacity:1}.controls_XUF4{position:absolute;top:0;right:0;left:0;display:flex;align-items:center;justify-content:flex-end;gap:3px;padding:4px 5px;background:linear-gradient(to bottom,rgba(15,20,25,.42),transparent);opacity:0;transition:opacity .15s ease;z-index:3}.action_q3U6{align-items:center!important;background:#fffffff0!important;border-radius:4px!important;box-shadow:0 1px 3px #00000047;color:#1c1c1e!important;display:inline-flex!important;flex-shrink:0;height:20px!important;justify-content:center!important;min-height:20px!important;min-width:20px!important;padding:0!important;width:20px!important}.action_q3U6:hover{background:#fff!important}.action_q3U6 span{height:12px!important;width:12px!important}.action_q3U6 svg,.action_q3U6 svg *{color:#1c1c1e!important;fill:currentColor!important;height:12px!important;width:12px!important}.mainBadge_kZlV{position:absolute;top:6px;left:6px;background:var(--color-bg-positive);border-radius:var(--radius-s, 8px);color:var(--color-text-primary-inverted);font-size:9px;font-weight:700;letter-spacing:.04em;line-height:1;padding:4px 6px;text-transform:uppercase;z-index:4}.dropzone_RCg5{align-items:center;background:var(--color-bg-secondary);border:1.5px dashed color-mix(in srgb,var(--color-graphic-secondary) 35%,transparent);border-radius:var(--radius-s, 8px);cursor:pointer;display:flex;justify-content:center;padding:0;transition:background .15s ease,border-color .15s ease}.dropzone_RCg5:hover{background:var(--color-bg-thirdly);border-color:color-mix(in srgb,var(--color-graphic-accent) 55%,transparent)}.dropzoneActive_z97l{background:color-mix(in srgb,var(--color-bg-accent) 8%,var(--color-bg-secondary));border-color:var(--color-graphic-accent)}.dropzoneEmpty_9tHX{max-width:136px}.dropzoneIcon_m3ug{color:var(--color-graphic-secondary)}.dropzoneActive_z97l .dropzoneIcon_m3ug{color:var(--color-graphic-accent)}
|
|
@@ -1,15 +1,31 @@
|
|
|
1
1
|
import * as __css from './index.css';
|
|
2
2
|
export const __cssModule = __css;
|
|
3
|
-
const o = "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
const o = "header_r6rI", n = "grid_xbZY", r = "card_Hah9", t = "dropzone_RCg5", c = "cardDragging_0e1s", d = "thumbnail_jtZG", e = "controls_XUF4", a = "action_q3U6", s = "mainBadge_kZlV", i = "dropzoneActive_z97l", g = "dropzoneEmpty_9tHX", p = "dropzoneIcon_m3ug", z = {
|
|
4
|
+
header: o,
|
|
5
|
+
grid: n,
|
|
6
|
+
card: r,
|
|
7
|
+
dropzone: t,
|
|
8
|
+
cardDragging: c,
|
|
9
|
+
thumbnail: d,
|
|
10
|
+
controls: e,
|
|
11
|
+
action: a,
|
|
12
|
+
mainBadge: s,
|
|
13
|
+
dropzoneActive: i,
|
|
14
|
+
dropzoneEmpty: g,
|
|
15
|
+
dropzoneIcon: p
|
|
8
16
|
};
|
|
9
17
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
18
|
+
a as action,
|
|
19
|
+
r as card,
|
|
20
|
+
c as cardDragging,
|
|
21
|
+
e as controls,
|
|
22
|
+
z as default,
|
|
23
|
+
t as dropzone,
|
|
24
|
+
i as dropzoneActive,
|
|
25
|
+
g as dropzoneEmpty,
|
|
26
|
+
p as dropzoneIcon,
|
|
27
|
+
n as grid,
|
|
28
|
+
o as header,
|
|
29
|
+
s as mainBadge,
|
|
30
|
+
d as thumbnail
|
|
15
31
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ export * from './radio-groups';
|
|
|
69
69
|
export * from './section-wrapper';
|
|
70
70
|
export * from './select';
|
|
71
71
|
export * from './settings-hint';
|
|
72
|
+
export * from './settings-info-block';
|
|
72
73
|
export * from './sidepanel';
|
|
73
74
|
export * from './sidepanel-header';
|
|
74
75
|
export * from './skeleton';
|