@ryuzaki13/react-foundation-ui 1.5.10 → 1.5.11
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/advanced-search/index.js +182 -148
- package/dist/advanced-search/index.js.map +1 -1
- package/dist/advanced-search/model/useAdvancedSearchSelection.d.ts +1 -1
- package/dist/advanced-search/model/useAdvancedSearchSelection.d.ts.map +1 -1
- package/dist/advanced-search/ui/AdvancedSearchModal.d.ts +12 -3
- package/dist/advanced-search/ui/AdvancedSearchModal.d.ts.map +1 -1
- package/dist/advanced-search/ui/AdvancedSearchModalSession.d.ts +15 -0
- package/dist/advanced-search/ui/AdvancedSearchModalSession.d.ts.map +1 -0
- package/dist/advanced-search/ui/AdvancedSearchSelect.d.ts.map +1 -1
- package/dist/badge/index.js +1 -1
- package/dist/base-table/index.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/check-box/index.js +1 -1
- package/dist/chunks/{CalendarView-BSshXZAX.js → CalendarView-DqA-PbAU.js} +42 -42
- package/dist/chunks/{CalendarView-BSshXZAX.js.map → CalendarView-DqA-PbAU.js.map} +1 -1
- package/dist/chunks/{ImageViewerRuntime-BMs3BBkV.js → ImageViewerRuntime-HGBWp9NM.js} +18 -18
- package/dist/chunks/{ImageViewerRuntime-BMs3BBkV.js.map → ImageViewerRuntime-HGBWp9NM.js.map} +1 -1
- package/dist/chunks/{TextEditorLexicalClient-CLjpATRu.js → TextEditorLexicalClient-B084kVzu.js} +322 -322
- package/dist/chunks/{TextEditorLexicalClient-CLjpATRu.js.map → TextEditorLexicalClient-B084kVzu.js.map} +1 -1
- package/dist/chunks/{badge-CaooZXYD.js → badge-DMM8cOHd.js} +16 -16
- package/dist/chunks/{badge-CaooZXYD.js.map → badge-DMM8cOHd.js.map} +1 -1
- package/dist/chunks/{base-table-fUJY__6M.js → base-table-CJdKCKhb.js} +125 -125
- package/dist/chunks/{base-table-fUJY__6M.js.map → base-table-CJdKCKhb.js.map} +1 -1
- package/dist/chunks/{button-C--u7uJj.js → button-CzUO5rzq.js} +17 -17
- package/dist/chunks/{button-C--u7uJj.js.map → button-CzUO5rzq.js.map} +1 -1
- package/dist/chunks/{check-box-BZiEBR9c.js → check-box-sfGjYczQ.js} +11 -11
- package/dist/chunks/{check-box-BZiEBR9c.js.map → check-box-sfGjYczQ.js.map} +1 -1
- package/dist/chunks/{context-menu-XZ-e0f6_.js → context-menu-6nJkPmKV.js} +83 -83
- package/dist/chunks/{context-menu-XZ-e0f6_.js.map → context-menu-6nJkPmKV.js.map} +1 -1
- package/dist/chunks/date-input-9T8AoG5U.js +341 -0
- package/dist/chunks/{date-input-Dr5QNVT6.js.map → date-input-9T8AoG5U.js.map} +1 -1
- package/dist/chunks/{input-BNszawm6.js → input-VC8jEoTa.js} +37 -37
- package/dist/chunks/{input-BNszawm6.js.map → input-VC8jEoTa.js.map} +1 -1
- package/dist/chunks/{input-files-DxLVr2PF.js → input-files-CoMjadk7.js} +22 -22
- package/dist/chunks/{input-files-DxLVr2PF.js.map → input-files-CoMjadk7.js.map} +1 -1
- package/dist/chunks/{input-search-C2OOhZlw.js → input-search-Bs_9SxT0.js} +2 -2
- package/dist/chunks/{input-search-C2OOhZlw.js.map → input-search-Bs_9SxT0.js.map} +1 -1
- package/dist/chunks/{misc-Cp_r022Z.js → misc-CkRRma5E.js} +55 -55
- package/dist/chunks/{misc-Cp_r022Z.js.map → misc-CkRRma5E.js.map} +1 -1
- package/dist/chunks/{modal-DK9M7lT5.js → modal-LHkNxBko.js} +38 -38
- package/dist/chunks/{modal-DK9M7lT5.js.map → modal-LHkNxBko.js.map} +1 -1
- package/dist/chunks/{multi-select-CFHaQPot.js → multi-select-BJ6Lst1E.js} +44 -44
- package/dist/chunks/{multi-select-CFHaQPot.js.map → multi-select-BJ6Lst1E.js.map} +1 -1
- package/dist/chunks/{picker-D3Fc15JH.js → picker-DLnfOgZj.js} +34 -34
- package/dist/chunks/{picker-D3Fc15JH.js.map → picker-DLnfOgZj.js.map} +1 -1
- package/dist/chunks/{popover-BTT7zSqx.js → popover-IExDrsF6.js} +67 -67
- package/dist/chunks/{popover-BTT7zSqx.js.map → popover-IExDrsF6.js.map} +1 -1
- package/dist/chunks/{select-BolFlcoY.js → select-CysiIrej.js} +5 -5
- package/dist/chunks/{select-BolFlcoY.js.map → select-CysiIrej.js.map} +1 -1
- package/dist/chunks/{sortable-DcTIAbjD.js → sortable-BKIwlqhI.js} +17 -17
- package/dist/chunks/{sortable-DcTIAbjD.js.map → sortable-BKIwlqhI.js.map} +1 -1
- package/dist/chunks/{table-BChs6bgR.js → table-CIWdAcPY.js} +2 -2
- package/dist/chunks/{table-BChs6bgR.js.map → table-CIWdAcPY.js.map} +1 -1
- package/dist/chunks/{types-CxXyru6U.js → types-D9Wj9wrg.js} +21 -21
- package/dist/chunks/{types-CxXyru6U.js.map → types-D9Wj9wrg.js.map} +1 -1
- package/dist/chunks/{useODataSelectBase-BhCMCzv_.js → useODataSelectBase-Bq36Wp1U.js} +8 -8
- package/dist/chunks/{useODataSelectBase-BhCMCzv_.js.map → useODataSelectBase-Bq36Wp1U.js.map} +1 -1
- package/dist/context-menu/index.js +1 -1
- package/dist/date-input/index.js +2 -2
- package/dist/date-time-input/index.js +32 -32
- package/dist/dialog/index.js +9 -9
- package/dist/disclosure/index.js +10 -10
- package/dist/drop-zone/index.js +8 -8
- package/dist/errors/index.js +8 -8
- package/dist/expandable-action-panel/index.js +16 -16
- package/dist/flex/useFlexClasses.d.ts +1 -1
- package/dist/fullscreen-portal/index.js +7 -7
- package/dist/image/index.js +27 -27
- package/dist/input/index.js +1 -1
- package/dist/input-date-time/index.js +1 -1
- package/dist/input-file/index.js +1 -1
- package/dist/input-files/index.js +1 -1
- package/dist/input-image/index.js +1 -1
- package/dist/input-search/index.js +1 -1
- package/dist/layout-picker/index.js +1 -1
- package/dist/list/index.js +25 -25
- package/dist/listbox/index.js +5 -5
- package/dist/misc/index.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/multi-select/index.js +1 -1
- package/dist/notifications/index.js +30 -30
- package/dist/picker/index.js +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/preset-range-date-input/index.js +1 -1
- package/dist/preset-select/index.js +1 -1
- package/dist/radio-button/index.js +10 -10
- package/dist/select/index.js +1 -1
- package/dist/simple-table/index.js +1 -1
- package/dist/slider/index.js +3 -3
- package/dist/sortable/index.js +1 -1
- package/dist/state-select/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +11 -11
- package/dist/table/index.js +1 -1
- package/dist/table-sorting/index.js +13 -13
- package/dist/tabs/index.js +1 -1
- package/dist/tag-input/index.js +55 -55
- package/dist/tag-input/index.js.map +1 -1
- package/dist/text/index.js +1 -1
- package/dist/text-editor/index.js +3 -3
- package/dist/textarea/index.js +1 -1
- package/dist/tree-select/index.js +134 -134
- package/dist/tree-select/index.js.map +1 -1
- package/dist/tree-table/index.js +16 -16
- package/package.json +1 -1
- package/storybook-static/project.json +1 -1
- package/dist/chunks/date-input-Dr5QNVT6.js +0 -341
package/dist/errors/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as e } from "../chunks/flex-C7njxZ74.js";
|
|
2
|
+
import { Text as t } from "../text/index.js";
|
|
3
3
|
import { Component as n, useEffect as r, useState as i } from "react";
|
|
4
4
|
import { useQueryClient as a } from "@tanstack/react-query";
|
|
5
5
|
import { logError as o } from "@ryuzaki13/react-foundation-lib/utils";
|
|
6
6
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
7
|
import { captureRuntimeErrorReport as l } from "@ryuzaki13/react-foundation-lib/error-report";
|
|
8
8
|
//#region src/errors/PageError.tsx
|
|
9
|
-
var u = ({ code:
|
|
9
|
+
var u = ({ code: t, title: n, description: r }) => /* @__PURE__ */ c(e.Predefined, {
|
|
10
10
|
variant: "columnCenter",
|
|
11
11
|
className: "paddingXl",
|
|
12
12
|
children: [
|
|
@@ -14,7 +14,7 @@ var u = ({ code: e, title: n, description: r }) => /* @__PURE__ */ c(t.Predefine
|
|
|
14
14
|
"aria-hidden": "true",
|
|
15
15
|
className: "content2 fontBolded",
|
|
16
16
|
style: { fontSize: "5em" },
|
|
17
|
-
children:
|
|
17
|
+
children: t
|
|
18
18
|
}),
|
|
19
19
|
/* @__PURE__ */ s("h2", { children: n }),
|
|
20
20
|
/* @__PURE__ */ s("p", { children: r })
|
|
@@ -190,10 +190,10 @@ var _ = ({ error: e, componentStack: t, draftId: n }) => {
|
|
|
190
190
|
};
|
|
191
191
|
//#endregion
|
|
192
192
|
//#region src/errors/SimpleErrorDisplay.tsx
|
|
193
|
-
function b({ error:
|
|
194
|
-
return o(
|
|
193
|
+
function b({ error: e }) {
|
|
194
|
+
return o(e.stack), /* @__PURE__ */ s(t, {
|
|
195
195
|
color: "error",
|
|
196
|
-
children: /* @__PURE__ */ s("code", { children:
|
|
196
|
+
children: /* @__PURE__ */ s("code", { children: e.message })
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
199
|
//#endregion
|
|
@@ -202,7 +202,7 @@ var x = () => /* @__PURE__ */ s(u, {
|
|
|
202
202
|
code: 401,
|
|
203
203
|
title: "Необходима авторизация",
|
|
204
204
|
description: "Для доступа к этой странице нужно войти в систему. Пожалуйста, авторизуйтесь и попробуйте снова."
|
|
205
|
-
}), S = () => /* @__PURE__ */ s(
|
|
205
|
+
}), S = () => /* @__PURE__ */ s(e.Predefined, {
|
|
206
206
|
variant: "columnCenter",
|
|
207
207
|
className: "paddingXl",
|
|
208
208
|
children: /* @__PURE__ */ s("h2", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as e } from "../chunks/button-
|
|
2
|
-
import { l as t } from "../chunks/misc-
|
|
1
|
+
import { n as e } from "../chunks/button-CzUO5rzq.js";
|
|
2
|
+
import { l as t } from "../chunks/misc-CkRRma5E.js";
|
|
3
3
|
import { useCallback as n, useId as r, useState as i } from "react";
|
|
4
4
|
import { cn as a } from "@ryuzaki13/react-foundation-lib/utils";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
import { ChevronsLeftIcon as c, ChevronsRightIcon as l } from "lucide-react";
|
|
7
7
|
var u = {
|
|
8
8
|
expandableActionPanel: "sj-rIq",
|
|
9
9
|
content: "_3anR7j",
|
|
@@ -22,14 +22,14 @@ function d({ children: d, className: f, contentClassName: p, toggleClassName: m,
|
|
|
22
22
|
O,
|
|
23
23
|
v,
|
|
24
24
|
k
|
|
25
|
-
]), j = () => A((e) => !e), M = k ?
|
|
26
|
-
return /* @__PURE__ */
|
|
25
|
+
]), j = () => A((e) => !e), M = k ? l : c;
|
|
26
|
+
return /* @__PURE__ */ s("div", {
|
|
27
27
|
className: a(u.expandableActionPanel, f),
|
|
28
28
|
"data-ui": "expandable-action-panel",
|
|
29
29
|
"data-open": k ? "" : void 0,
|
|
30
|
-
children: [/* @__PURE__ */
|
|
30
|
+
children: [/* @__PURE__ */ o(e, {
|
|
31
31
|
className: m,
|
|
32
|
-
icon: /* @__PURE__ */
|
|
32
|
+
icon: /* @__PURE__ */ o(M, {}),
|
|
33
33
|
title: k ? b : y,
|
|
34
34
|
disabled: _,
|
|
35
35
|
variant: "neutralOutline",
|
|
@@ -38,12 +38,12 @@ function d({ children: d, className: f, contentClassName: p, toggleClassName: m,
|
|
|
38
38
|
"data-ui": "expandable-action-panel-toggle",
|
|
39
39
|
"data-action": k ? "collapse-action-panel" : "expand-action-panel",
|
|
40
40
|
onClick: j
|
|
41
|
-
}), k && /* @__PURE__ */
|
|
41
|
+
}), k && /* @__PURE__ */ o("div", {
|
|
42
42
|
id: D,
|
|
43
43
|
role: "group",
|
|
44
44
|
"aria-label": x,
|
|
45
45
|
className: a(u.content, p),
|
|
46
|
-
children: /* @__PURE__ */
|
|
46
|
+
children: /* @__PURE__ */ o(t, {
|
|
47
47
|
className: u.contentScroller,
|
|
48
48
|
itemSelector: S,
|
|
49
49
|
scrollPadding: C,
|
|
@@ -55,24 +55,24 @@ function d({ children: d, className: f, contentClassName: p, toggleClassName: m,
|
|
|
55
55
|
}
|
|
56
56
|
//#endregion
|
|
57
57
|
//#region src/expandable-action-panel/LabeledExpandableActionPanel.tsx
|
|
58
|
-
function f({ label: e, className: t, labelClassName: n, labelStyle: r, labelMinWidth: i = "12em", panelClassName:
|
|
58
|
+
function f({ label: e, className: t, labelClassName: n, labelStyle: r, labelMinWidth: i = "12em", panelClassName: c, open: l, defaultOpen: f, ...p }) {
|
|
59
59
|
let m = {
|
|
60
60
|
...r,
|
|
61
61
|
minWidth: i
|
|
62
62
|
}, h = typeof e == "string" ? e : void 0;
|
|
63
|
-
return /* @__PURE__ */
|
|
63
|
+
return /* @__PURE__ */ s("div", {
|
|
64
64
|
className: a(u.labeledPanel, t),
|
|
65
65
|
"data-ui": "labeled-expandable-action-panel",
|
|
66
|
-
children: [/* @__PURE__ */
|
|
66
|
+
children: [/* @__PURE__ */ o("div", {
|
|
67
67
|
className: a("flexEllipsis", u.label, n),
|
|
68
68
|
style: m,
|
|
69
69
|
title: h,
|
|
70
70
|
children: e
|
|
71
|
-
}), /* @__PURE__ */
|
|
71
|
+
}), /* @__PURE__ */ o(d, {
|
|
72
72
|
...p,
|
|
73
|
-
open:
|
|
73
|
+
open: l,
|
|
74
74
|
defaultOpen: f,
|
|
75
|
-
className: a(u.labeledActionPanel,
|
|
75
|
+
className: a(u.labeledActionPanel, c)
|
|
76
76
|
})]
|
|
77
77
|
});
|
|
78
78
|
}
|
|
@@ -4,5 +4,5 @@ export type ResolvedFlexContainerProps = ResolvedProps<FlexContainerLayoutProps>
|
|
|
4
4
|
export type ResolvedFlexItemProps = ResolvedProps<FlexItemLayoutProps>;
|
|
5
5
|
export declare const useFlexContainerClasses: (props: ResolvedFlexContainerProps) => string;
|
|
6
6
|
export declare const useFlexItemClasses: (props: ResolvedFlexItemProps) => string;
|
|
7
|
-
export declare const useFlexPredefinedClasses: (variant: string) => "
|
|
7
|
+
export declare const useFlexPredefinedClasses: (variant: string) => "container" | "inline" | "row" | "center" | "column" | "nowrap" | "wrap" | "rowReverse" | "columnReverse" | "wrapReverse" | "grow" | "shrink" | "flex0" | "flex1" | "centerBetween" | "columnCenter" | "alignStart" | "alignCenter" | "alignEnd" | "alignStretch" | "alignBaseline" | "justifyStart" | "justifyCenter" | "justifyEnd" | "justifyStretch" | "justifyBetween" | "justifyAround" | "justifyEvenly" | "alignContentStart" | "alignContentCenter" | "alignContentEnd" | "alignContentStretch" | "alignContentBetween" | "alignContentAround" | "alignContentEvenly" | "gapNone" | "gapRowXs" | "gapRowSm" | "gapRowMd" | "gapRowLg" | "gapRowXl" | "gapColumnXs" | "gapColumnSm" | "gapColumnMd" | "gapColumnLg" | "gapColumnXl" | "gapXs" | "gapSm" | "gapMd" | "gapLg" | "gapXl" | "item" | "grow0" | "shrink0" | "basis0" | "basisAuto" | "alignSelfStart" | "alignSelfCenter" | "alignSelfEnd" | "alignSelfStretch" | "alignSelfBaseline" | "justifySelfCenter" | "justifySelfEnd" | "justifySelfStretch";
|
|
8
8
|
//# sourceMappingURL=useFlexClasses.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback as e } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { FloatingFocusManager as t, FloatingOverlay as n, FloatingPortal as r, useDismiss as i, useFloating as a, useInteractions as o, useRole as s } from "@floating-ui/react";
|
|
3
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
4
4
|
var l = {
|
|
5
5
|
overlay: "fY8BBX",
|
|
6
6
|
panel: "M9Yms2"
|
|
@@ -12,20 +12,20 @@ function u(e, t) {
|
|
|
12
12
|
return n ? `${n}. ${t}` : t;
|
|
13
13
|
}
|
|
14
14
|
function d({ open: d, title: f, description: p, onOpenChange: m, children: h }) {
|
|
15
|
-
let { refs: g, context: _ } =
|
|
15
|
+
let { refs: g, context: _ } = a({
|
|
16
16
|
open: d,
|
|
17
17
|
onOpenChange: m
|
|
18
|
-
}), v =
|
|
18
|
+
}), v = i(_, { outsidePress: !1 }), y = s(_, { role: "dialog" }), { getFloatingProps: b } = o([v, y]), x = e((e) => {
|
|
19
19
|
g.setFloating(e);
|
|
20
20
|
}, [g]);
|
|
21
|
-
return d ? /* @__PURE__ */
|
|
21
|
+
return d ? /* @__PURE__ */ c(r, { children: /* @__PURE__ */ c(n, {
|
|
22
22
|
lockScroll: !0,
|
|
23
23
|
className: l.overlay,
|
|
24
|
-
children: /* @__PURE__ */ t
|
|
24
|
+
children: /* @__PURE__ */ c(t, {
|
|
25
25
|
context: _,
|
|
26
26
|
modal: !1,
|
|
27
27
|
returnFocus: !0,
|
|
28
|
-
children: /* @__PURE__ */
|
|
28
|
+
children: /* @__PURE__ */ c("section", {
|
|
29
29
|
ref: x,
|
|
30
30
|
...b({
|
|
31
31
|
className: l.panel,
|
package/dist/image/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as e } from "../chunks/button-
|
|
1
|
+
import { n as e } from "../chunks/button-CzUO5rzq.js";
|
|
2
2
|
import { r as t } from "../chunks/grid-dI94AAbi.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as o } from "../chunks/input-files-
|
|
3
|
+
import { i as n, n as r, r as i } from "../chunks/modal-LHkNxBko.js";
|
|
4
|
+
import { o as a } from "../chunks/input-VC8jEoTa.js";
|
|
5
|
+
import { t as o } from "../chunks/input-files-CoMjadk7.js";
|
|
6
6
|
import { Suspense as s, lazy as c, useCallback as l, useEffect as u, useMemo as d, useRef as f, useState as p } from "react";
|
|
7
7
|
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
8
8
|
import _ from "react-easy-crop";
|
|
@@ -326,35 +326,35 @@ var O = [
|
|
|
326
326
|
"image/webp",
|
|
327
327
|
"image/avif"
|
|
328
328
|
];
|
|
329
|
-
function k({ aspect: e = 16 / 9, disabled:
|
|
329
|
+
function k({ aspect: e = 16 / 9, disabled: n, allowedMime: r = O, maxBytes: i, minimumCropWidth: s, onReadError: c, state: l }) {
|
|
330
330
|
let u = l.activeImage?.crop, [d, f] = p({});
|
|
331
331
|
return /* @__PURE__ */ g(t, {
|
|
332
332
|
gap: "md",
|
|
333
333
|
children: [
|
|
334
334
|
/* @__PURE__ */ h(o, {
|
|
335
335
|
label: "Файл изображения",
|
|
336
|
-
allowedMime:
|
|
336
|
+
allowedMime: r,
|
|
337
337
|
value: l.files,
|
|
338
338
|
onChange: l.setFiles,
|
|
339
|
-
maxBytes:
|
|
340
|
-
disabled:
|
|
339
|
+
maxBytes: i,
|
|
340
|
+
disabled: n,
|
|
341
341
|
onReadError: c
|
|
342
342
|
}),
|
|
343
343
|
l.hasSelected && l.activeImage && /* @__PURE__ */ g("div", { children: [
|
|
344
344
|
/* @__PURE__ */ h(t, {
|
|
345
345
|
templateColumns: "repeat(auto-fill, minmax(10em, 1fr))",
|
|
346
346
|
gap: "xs",
|
|
347
|
-
children: l.value.map((t,
|
|
348
|
-
let i = w(t,
|
|
347
|
+
children: l.value.map((t, r) => {
|
|
348
|
+
let i = w(t, r);
|
|
349
349
|
return /* @__PURE__ */ h("button", {
|
|
350
350
|
type: "button",
|
|
351
|
-
disabled:
|
|
352
|
-
onClick: () => l.setActiveIndex(
|
|
351
|
+
disabled: n,
|
|
352
|
+
onClick: () => l.setActiveIndex(r),
|
|
353
353
|
style: {
|
|
354
354
|
padding: 0,
|
|
355
|
-
border:
|
|
355
|
+
border: r === l.activeIndex ? "2px solid var(--border-accent)" : "2px solid transparent",
|
|
356
356
|
background: "transparent",
|
|
357
|
-
cursor:
|
|
357
|
+
cursor: n ? "default" : "pointer"
|
|
358
358
|
},
|
|
359
359
|
children: /* @__PURE__ */ h("span", {
|
|
360
360
|
style: {
|
|
@@ -366,7 +366,7 @@ function k({ aspect: e = 16 / 9, disabled: r, allowedMime: i = O, maxBytes: a, m
|
|
|
366
366
|
},
|
|
367
367
|
children: /* @__PURE__ */ h("img", {
|
|
368
368
|
src: t.file.dataUrl,
|
|
369
|
-
alt: t.alt || `Предпросмотр изображения ${
|
|
369
|
+
alt: t.alt || `Предпросмотр изображения ${r + 1}`,
|
|
370
370
|
style: D(t, d[i], e),
|
|
371
371
|
onLoad: (e) => {
|
|
372
372
|
let t = e.currentTarget;
|
|
@@ -401,15 +401,15 @@ function k({ aspect: e = 16 / 9, disabled: r, allowedMime: i = O, maxBytes: a, m
|
|
|
401
401
|
crop: l.activeCropperState.crop,
|
|
402
402
|
zoom: l.activeCropperState.zoom,
|
|
403
403
|
aspect: e,
|
|
404
|
-
disabled:
|
|
404
|
+
disabled: n,
|
|
405
405
|
onCropChange: l.setActiveCropperCrop,
|
|
406
406
|
onZoomChange: l.setActiveCropperZoom,
|
|
407
407
|
onCropComplete: l.setActiveCrop
|
|
408
408
|
}, w(l.activeImage, l.activeIndex))
|
|
409
409
|
] }),
|
|
410
|
-
/* @__PURE__ */ h(
|
|
410
|
+
/* @__PURE__ */ h(a, {
|
|
411
411
|
required: !0,
|
|
412
|
-
disabled: !l.hasSelected ||
|
|
412
|
+
disabled: !l.hasSelected || n,
|
|
413
413
|
label: "Краткое описание изображения",
|
|
414
414
|
placeholder: "",
|
|
415
415
|
value: l.activeImage?.alt ?? "",
|
|
@@ -420,35 +420,35 @@ function k({ aspect: e = 16 / 9, disabled: r, allowedMime: i = O, maxBytes: a, m
|
|
|
420
420
|
}
|
|
421
421
|
//#endregion
|
|
422
422
|
//#region src/image/ui/ImageSelectionModal.tsx
|
|
423
|
-
function A({ disabled: t, isOpen:
|
|
423
|
+
function A({ disabled: t, isOpen: a = !0, onClose: o = () => {}, title: s = "Загрузка нового изображения", ...c }) {
|
|
424
424
|
let l = E({
|
|
425
425
|
...c,
|
|
426
426
|
disabled: t
|
|
427
427
|
});
|
|
428
|
-
return c.onApply ? /* @__PURE__ */ g(
|
|
429
|
-
isOpen:
|
|
428
|
+
return c.onApply ? /* @__PURE__ */ g(r, {
|
|
429
|
+
isOpen: a,
|
|
430
430
|
onClose: o,
|
|
431
431
|
title: s,
|
|
432
432
|
size: "xl",
|
|
433
|
-
children: [/* @__PURE__ */ h(
|
|
433
|
+
children: [/* @__PURE__ */ h(i, {
|
|
434
434
|
scrollable: !0,
|
|
435
435
|
children: /* @__PURE__ */ h(k, {
|
|
436
436
|
...c,
|
|
437
437
|
disabled: t,
|
|
438
438
|
state: l
|
|
439
439
|
})
|
|
440
|
-
}), /* @__PURE__ */ h(
|
|
440
|
+
}), /* @__PURE__ */ h(n, { children: /* @__PURE__ */ h(e, {
|
|
441
441
|
disabled: !l.canApply,
|
|
442
442
|
tone: "success",
|
|
443
443
|
onClick: l.apply,
|
|
444
444
|
children: "Применить"
|
|
445
445
|
}) })]
|
|
446
|
-
}) : /* @__PURE__ */ h(
|
|
447
|
-
isOpen:
|
|
446
|
+
}) : /* @__PURE__ */ h(r, {
|
|
447
|
+
isOpen: a,
|
|
448
448
|
onClose: o,
|
|
449
449
|
title: s,
|
|
450
450
|
size: "xl",
|
|
451
|
-
children: /* @__PURE__ */ h(
|
|
451
|
+
children: /* @__PURE__ */ h(i, {
|
|
452
452
|
scrollable: !0,
|
|
453
453
|
children: /* @__PURE__ */ h(k, {
|
|
454
454
|
...c,
|
|
@@ -500,7 +500,7 @@ function M({ image: e, alt: t, sizes: n, aspectRatio: r, ...i }) {
|
|
|
500
500
|
}
|
|
501
501
|
//#endregion
|
|
502
502
|
//#region src/image/ui/ImageViewer.tsx
|
|
503
|
-
var N = c(() => import("../chunks/ImageViewerRuntime-
|
|
503
|
+
var N = c(() => import("../chunks/ImageViewerRuntime-HGBWp9NM.js"));
|
|
504
504
|
function P(e) {
|
|
505
505
|
let [t, n] = p(!1), r = l(() => n(!0), []);
|
|
506
506
|
return typeof document < "u" && (e.open || t) ? /* @__PURE__ */ h(s, {
|
package/dist/input/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "../chunks/input-
|
|
1
|
+
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "../chunks/input-VC8jEoTa.js";
|
|
2
2
|
export { i as Input, o as InputClearButton, n as InputControl, c as InputErrorComponent, e as InputNumber, a as InputText, s as InputUI, t as InputUILoading, r as useInputFieldIds };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../chunks/ui.module-DHVTOqZ0.js";
|
|
2
|
-
import { i as t, l as n, r, s as i } from "../chunks/input-
|
|
2
|
+
import { i as t, l as n, r, s as i } from "../chunks/input-VC8jEoTa.js";
|
|
3
3
|
import { useCallback as a, useMemo as o, useRef as s, useState as c } from "react";
|
|
4
4
|
import { cn as l } from "@ryuzaki13/react-foundation-lib/utils";
|
|
5
5
|
import { jsx as u } from "react/jsx-runtime";
|
package/dist/input-file/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../chunks/ui.module-DHVTOqZ0.js";
|
|
2
|
-
import { i as t, l as n, r, s as i } from "../chunks/input-
|
|
2
|
+
import { i as t, l as n, r, s as i } from "../chunks/input-VC8jEoTa.js";
|
|
3
3
|
import { useCallback as a, useRef as o } from "react";
|
|
4
4
|
import { cn as s, handleKeyboardActivation as c } from "@ryuzaki13/react-foundation-lib/utils";
|
|
5
5
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../chunks/input-files-
|
|
1
|
+
import { n as e, t } from "../chunks/input-files-CoMjadk7.js";
|
|
2
2
|
export { t as InputFiles, e as InputFilesList };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../chunks/ui.module-DHVTOqZ0.js";
|
|
2
|
-
import { i as t, l as n, r, s as i } from "../chunks/input-
|
|
2
|
+
import { i as t, l as n, r, s as i } from "../chunks/input-VC8jEoTa.js";
|
|
3
3
|
import { useCallback as a, useMemo as o, useRef as s } from "react";
|
|
4
4
|
import { cn as c, handleKeyboardActivation as l } from "@ryuzaki13/react-foundation-lib/utils";
|
|
5
5
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/input-search-
|
|
1
|
+
import { t as e } from "../chunks/input-search-Bs_9SxT0.js";
|
|
2
2
|
export { e as InputSearch };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../chunks/ui.module-DHVTOqZ0.js";
|
|
2
|
-
import { c as t, f as n, i as r, l as i, p as a, t as o } from "../chunks/picker-
|
|
2
|
+
import { c as t, f as n, i as r, l as i, p as a, t as o } from "../chunks/picker-DLnfOgZj.js";
|
|
3
3
|
import { useRef as s, useState as c } from "react";
|
|
4
4
|
import { cn as l } from "@ryuzaki13/react-foundation-lib/utils";
|
|
5
5
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
package/dist/list/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { c as e, h as t } from "../chunks/misc-CkRRma5E.js";
|
|
2
|
+
import { t as n } from "../chunks/grid-dI94AAbi.js";
|
|
3
3
|
import r, { Children as i, useLayoutEffect as a, useReducer as o, useRef as s, useState as c } from "react";
|
|
4
4
|
import { cn as l } from "@ryuzaki13/react-foundation-lib/utils";
|
|
5
5
|
import { jsx as u } from "react/jsx-runtime";
|
|
@@ -38,14 +38,14 @@ function _(e) {
|
|
|
38
38
|
}
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region src/list/List.tsx
|
|
41
|
-
var v = ({ children:
|
|
41
|
+
var v = ({ children: e, className: t }) => i.count(e) === 0 ? /* @__PURE__ */ u("div", {}) : /* @__PURE__ */ u(n.Container, {
|
|
42
42
|
gap: "sm",
|
|
43
|
-
className: l("paddingSm borderBottom",
|
|
44
|
-
children:
|
|
45
|
-
}), y = ({ children:
|
|
43
|
+
className: l("paddingSm borderBottom", t),
|
|
44
|
+
children: e
|
|
45
|
+
}), y = ({ children: e, className: t }) => i.count(e) === 0 ? /* @__PURE__ */ u("div", {}) : /* @__PURE__ */ u(n.Container, {
|
|
46
46
|
gap: "sm",
|
|
47
|
-
className: l("paddingSm borderTop",
|
|
48
|
-
children:
|
|
47
|
+
className: l("paddingSm borderTop", t),
|
|
48
|
+
children: e
|
|
49
49
|
});
|
|
50
50
|
function b({ item: e, render: t, separated: n }) {
|
|
51
51
|
return /* @__PURE__ */ u(r.Fragment, { children: /* @__PURE__ */ u("li", {
|
|
@@ -53,12 +53,12 @@ function b({ item: e, render: t, separated: n }) {
|
|
|
53
53
|
children: t(e)
|
|
54
54
|
}) });
|
|
55
55
|
}
|
|
56
|
-
function x({ items:
|
|
57
|
-
return /* @__PURE__ */ u(
|
|
56
|
+
function x({ items: t, getKey: n, render: r, separated: i, className: a }) {
|
|
57
|
+
return /* @__PURE__ */ u(e, {
|
|
58
58
|
className: a,
|
|
59
59
|
children: /* @__PURE__ */ u("ul", {
|
|
60
60
|
className: "",
|
|
61
|
-
children:
|
|
61
|
+
children: t.map((e, t) => /* @__PURE__ */ u(b, {
|
|
62
62
|
item: e,
|
|
63
63
|
render: r,
|
|
64
64
|
separated: i
|
|
@@ -66,10 +66,10 @@ function x({ items: e, getKey: n, render: r, separated: i, className: a }) {
|
|
|
66
66
|
})
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
function S({ items:
|
|
69
|
+
function S({ items: n, getKey: i, render: a, separated: o, className: c, isLoading: d, hasNextPage: p, fetchNextPage: m }) {
|
|
70
70
|
"use no memo";
|
|
71
71
|
let h = s(null), g = _({
|
|
72
|
-
count: p ?
|
|
72
|
+
count: p ? n.length + 1 : n.length,
|
|
73
73
|
getScrollElement: () => h.current,
|
|
74
74
|
measureElement: (e) => Math.ceil(e.getBoundingClientRect().height),
|
|
75
75
|
estimateSize: () => 120,
|
|
@@ -77,17 +77,17 @@ function S({ items: e, getKey: i, render: a, separated: o, className: c, isLoadi
|
|
|
77
77
|
}), v = g.getVirtualItems();
|
|
78
78
|
return f({
|
|
79
79
|
virtualItems: v,
|
|
80
|
-
currentItemsCount:
|
|
80
|
+
currentItemsCount: n.length,
|
|
81
81
|
hasNextPage: p,
|
|
82
82
|
fetchNextPage: m
|
|
83
|
-
}), /* @__PURE__ */ u(
|
|
83
|
+
}), /* @__PURE__ */ u(e, {
|
|
84
84
|
ref: h,
|
|
85
85
|
className: c,
|
|
86
|
-
children: d ? /* @__PURE__ */ u(
|
|
86
|
+
children: d ? /* @__PURE__ */ u(t, {}) : /* @__PURE__ */ u("ul", {
|
|
87
87
|
style: { height: g.getTotalSize() },
|
|
88
88
|
className: "relative w100",
|
|
89
|
-
children: v.map((
|
|
90
|
-
let s =
|
|
89
|
+
children: v.map((e) => {
|
|
90
|
+
let s = e.index > n.length - 1, c = n[e.index];
|
|
91
91
|
return /* @__PURE__ */ u(r.Fragment, { children: /* @__PURE__ */ u("li", {
|
|
92
92
|
ref: g.measureElement,
|
|
93
93
|
style: {
|
|
@@ -95,20 +95,20 @@ function S({ items: e, getKey: i, render: a, separated: o, className: c, isLoadi
|
|
|
95
95
|
top: 0,
|
|
96
96
|
left: 0,
|
|
97
97
|
width: "100%",
|
|
98
|
-
transform: `translateY(${Math.round(
|
|
98
|
+
transform: `translateY(${Math.round(e.start)}px)`
|
|
99
99
|
},
|
|
100
|
-
"data-index":
|
|
100
|
+
"data-index": e.index,
|
|
101
101
|
className: l(o && "borderBottom"),
|
|
102
|
-
children: s ? /* @__PURE__ */ u(
|
|
103
|
-
}) }, s ? "loader" : i(c,
|
|
102
|
+
children: s ? /* @__PURE__ */ u(t, {}) : a(c)
|
|
103
|
+
}) }, s ? "loader" : i(c, e.index));
|
|
104
104
|
})
|
|
105
105
|
})
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
|
-
var C = ({ className:
|
|
108
|
+
var C = ({ className: e, children: t }) => /* @__PURE__ */ u(n.Container, {
|
|
109
109
|
templateRows: "auto 1fr auto",
|
|
110
|
-
className: l("h100",
|
|
111
|
-
children:
|
|
110
|
+
className: l("h100", e),
|
|
111
|
+
children: t
|
|
112
112
|
});
|
|
113
113
|
C.Toolbar = v, C.Content = x, C.Footer = y, C.VirtualizedContent = S;
|
|
114
114
|
//#endregion
|
package/dist/listbox/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "../chunks/ui.module-DHVTOqZ0.js";
|
|
2
2
|
import { useEffect as t, useId as n, useLayoutEffect as r, useMemo as i, useRef as a, useState as o } from "react";
|
|
3
3
|
import { cn as s, findFirstEnabledIndex as c, findLastEnabledIndex as l, findNextEnabledIndex as u, handleKeyboardActivation as d } from "@ryuzaki13/react-foundation-lib/utils";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
5
|
+
import { CheckIcon as m } from "lucide-react";
|
|
6
6
|
//#region src/listbox/Listbox.tsx
|
|
7
7
|
var h = (e) => e.disabled === !0;
|
|
8
8
|
function g(e, t, n) {
|
|
@@ -41,7 +41,7 @@ function _(_) {
|
|
|
41
41
|
e && e.scrollIntoView({ block: "nearest" });
|
|
42
42
|
}, [z]), r(() => {
|
|
43
43
|
S && P.current?.focus();
|
|
44
|
-
}, [S]), /* @__PURE__ */
|
|
44
|
+
}, [S]), /* @__PURE__ */ f("ul", {
|
|
45
45
|
ref: P,
|
|
46
46
|
id: j,
|
|
47
47
|
role: "listbox",
|
|
@@ -65,7 +65,7 @@ function _(_) {
|
|
|
65
65
|
className: s(e.uiPanel, "scrollable surface1", x && e.disabled),
|
|
66
66
|
children: T.map((t, n) => {
|
|
67
67
|
let r = b ? Array.isArray(R) && R.includes(t.value) : R === t.value, i = n === z;
|
|
68
|
-
return /* @__PURE__ */
|
|
68
|
+
return /* @__PURE__ */ p("li", {
|
|
69
69
|
id: `${j}-option-${n}`,
|
|
70
70
|
role: "option",
|
|
71
71
|
"aria-selected": r,
|
|
@@ -75,7 +75,7 @@ function _(_) {
|
|
|
75
75
|
},
|
|
76
76
|
tabIndex: -1,
|
|
77
77
|
className: s(e.uiPopupOption, (x || t.disabled) && e.disabled, i && e.uiPopupOptionActive, r && e.selected),
|
|
78
|
-
children: [
|
|
78
|
+
children: [f(r ? m : "span", { className: e.uiPopupOptionIcon }), /* @__PURE__ */ f("div", { children: C ? C(t, r, i) : t.label ?? String(t.value) })]
|
|
79
79
|
}, w ? w(t, n) : n);
|
|
80
80
|
})
|
|
81
81
|
});
|
package/dist/misc/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, y } from "../chunks/misc-
|
|
1
|
+
import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, y } from "../chunks/misc-CkRRma5E.js";
|
|
2
2
|
export { n as AnimatedLogo, y as AnimatedLogoSegment, v as CopyTextWrapper, d as ErrorIcon, e as IconWrapper, m as InformationIcon, u as LazyDynamicComponent, a as LazyValue, s as LoadingMessage, o as Message, i as NoData, _ as Notice, l as OneStepScroller, c as RenderStateIcon, r as Scrollable, p as SkeletonLine, t as StateIcon, g as StateWrapper, f as SuccessIcon, h as WarningIcon };
|
package/dist/modal/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../chunks/modal-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../chunks/modal-LHkNxBko.js";
|
|
2
2
|
export { n as Modal, i as ModalContent, t as ModalFooter, r as ModalManagerContext, o as ModalManagerProvider, e as ModalToolbar, a as useModalManager };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, s as i, t as a } from "../chunks/multi-select-
|
|
1
|
+
import { a as e, i as t, n, r, s as i, t as a } from "../chunks/multi-select-BJ6Lst1E.js";
|
|
2
2
|
export { e as MultiSelect, i as MultiSelectToken, n as ODataDependentMultiSelect, r as ODataDependentSegmentMultiSelect, t as ODataMultiSelect, a as SerializableMultiSelect };
|