@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
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { n as e } from "../chunks/button-CzUO5rzq.js";
|
|
2
|
+
import { o as t } from "../chunks/flex-C7njxZ74.js";
|
|
3
3
|
import { createContext as n, useContext as r, useEffect as i, useMemo as a } from "react";
|
|
4
4
|
import { cn as o } from "@ryuzaki13/react-foundation-lib/utils";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
|
+
import { createMissingContextError as l } from "@ryuzaki13/react-foundation-lib/error";
|
|
7
|
+
import { AlertCircleIcon as u, CheckCircle2Icon as d, InfoIcon as f, TriangleAlertIcon as p, XIcon as m } from "lucide-react";
|
|
8
8
|
import { bindNotifications as h, createNotificationsStore as g, notify as _ } from "@ryuzaki13/react-foundation-lib/notifications";
|
|
9
9
|
import { useStore as v } from "zustand";
|
|
10
10
|
//#region src/notifications/model/NotificationsProvider.tsx
|
|
11
11
|
var y = n(null);
|
|
12
12
|
function b({ children: e }) {
|
|
13
13
|
let t = a(() => g(), []);
|
|
14
|
-
return i(() => h(t), [t]), /* @__PURE__ */
|
|
14
|
+
return i(() => h(t), [t]), /* @__PURE__ */ s(y.Provider, {
|
|
15
15
|
value: t,
|
|
16
16
|
children: e
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
function x() {
|
|
20
20
|
let e = r(y);
|
|
21
|
-
if (!e) throw
|
|
21
|
+
if (!e) throw l({
|
|
22
22
|
hookName: "useNotificationApi",
|
|
23
23
|
providerName: "NotificationsProvider"
|
|
24
24
|
});
|
|
@@ -64,77 +64,77 @@ var T = {
|
|
|
64
64
|
}, E = {
|
|
65
65
|
info: {
|
|
66
66
|
title: "Информация",
|
|
67
|
-
Icon:
|
|
67
|
+
Icon: f
|
|
68
68
|
},
|
|
69
69
|
success: {
|
|
70
70
|
title: "Успешно",
|
|
71
|
-
Icon:
|
|
71
|
+
Icon: d
|
|
72
72
|
},
|
|
73
73
|
warning: {
|
|
74
74
|
title: "Предупреждение",
|
|
75
|
-
Icon:
|
|
75
|
+
Icon: p
|
|
76
76
|
},
|
|
77
77
|
error: {
|
|
78
78
|
title: "Ошибка",
|
|
79
|
-
Icon:
|
|
79
|
+
Icon: u
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
function D() {
|
|
83
83
|
let n = S(), { dismiss: r } = C();
|
|
84
|
-
return /* @__PURE__ */
|
|
84
|
+
return /* @__PURE__ */ s("div", {
|
|
85
85
|
className: T.container,
|
|
86
86
|
"aria-label": "Область уведомлений",
|
|
87
87
|
"aria-live": "polite",
|
|
88
88
|
"aria-relevant": "additions text",
|
|
89
89
|
children: n.map((n) => {
|
|
90
|
-
let i = E[n.type], a = n.title ?? i.title,
|
|
91
|
-
return /* @__PURE__ */
|
|
90
|
+
let i = E[n.type], a = n.title ?? i.title, l = i.Icon;
|
|
91
|
+
return /* @__PURE__ */ s("article", {
|
|
92
92
|
role: n.type === "error" ? "alert" : "status",
|
|
93
93
|
"aria-atomic": "true",
|
|
94
94
|
className: o(T.card, T[n.type]),
|
|
95
|
-
children: /* @__PURE__ */
|
|
95
|
+
children: /* @__PURE__ */ c(t, {
|
|
96
96
|
align: "start",
|
|
97
97
|
justify: "between",
|
|
98
98
|
gap: "sm",
|
|
99
99
|
className: T.header,
|
|
100
|
-
children: [/* @__PURE__ */
|
|
100
|
+
children: [/* @__PURE__ */ c(t, {
|
|
101
101
|
align: "start",
|
|
102
102
|
gap: "sm",
|
|
103
103
|
className: T.content,
|
|
104
|
-
children: [/* @__PURE__ */
|
|
104
|
+
children: [/* @__PURE__ */ s("span", {
|
|
105
105
|
className: T.icon,
|
|
106
106
|
"aria-hidden": "true",
|
|
107
|
-
children: /* @__PURE__ */
|
|
108
|
-
}), /* @__PURE__ */
|
|
107
|
+
children: /* @__PURE__ */ s(l, {})
|
|
108
|
+
}), /* @__PURE__ */ c("div", {
|
|
109
109
|
className: T.copy,
|
|
110
110
|
children: [
|
|
111
|
-
/* @__PURE__ */
|
|
111
|
+
/* @__PURE__ */ s("div", {
|
|
112
112
|
className: T.kicker,
|
|
113
113
|
children: i.title
|
|
114
114
|
}),
|
|
115
|
-
n.title ? /* @__PURE__ */
|
|
115
|
+
n.title ? /* @__PURE__ */ s("div", {
|
|
116
116
|
className: T.title,
|
|
117
117
|
children: a
|
|
118
118
|
}) : null,
|
|
119
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ s("div", {
|
|
120
120
|
className: T.message,
|
|
121
121
|
children: n.message
|
|
122
122
|
}),
|
|
123
|
-
n.actions?.length ? /* @__PURE__ */
|
|
123
|
+
n.actions?.length ? /* @__PURE__ */ s("div", {
|
|
124
124
|
className: T.actions,
|
|
125
|
-
children: n.actions.map((
|
|
126
|
-
tone:
|
|
125
|
+
children: n.actions.map((t) => /* @__PURE__ */ s(e, {
|
|
126
|
+
tone: t.tone ?? n.type,
|
|
127
127
|
appearance: "outline",
|
|
128
128
|
"data-ui": "notification-action-button",
|
|
129
129
|
"data-action": "notification-action",
|
|
130
|
-
onClick: () => void
|
|
131
|
-
children:
|
|
132
|
-
},
|
|
130
|
+
onClick: () => void t.onClick(),
|
|
131
|
+
children: t.label
|
|
132
|
+
}, t.label))
|
|
133
133
|
}) : null
|
|
134
134
|
]
|
|
135
135
|
})]
|
|
136
|
-
}), n.dismissible === !1 ? null : /* @__PURE__ */
|
|
137
|
-
icon: /* @__PURE__ */
|
|
136
|
+
}), n.dismissible === !1 ? null : /* @__PURE__ */ s(e, {
|
|
137
|
+
icon: /* @__PURE__ */ s(m, {}),
|
|
138
138
|
appearance: "ghost",
|
|
139
139
|
tone: n.type,
|
|
140
140
|
onClick: () => r(n.id),
|
package/dist/picker/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "../chunks/picker-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "../chunks/picker-DLnfOgZj.js";
|
|
2
2
|
export { c as PickerField, r as PickerPopup, n as PickerSelectionToolbar, f as PickerStatus, a as PickerTriggerActions, t as PickerTriggerInput, u as createPickerTriggerPolicy, s as extractPickerTextContent, e as usePickerDefaultFilter, i as usePickerFloatingListbox, l as usePickerQuery, o as usePickerSelectionLifecycle, d as usePickerTriggerController };
|
package/dist/popover/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "../chunks/popover-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "../chunks/popover-IExDrsF6.js";
|
|
2
2
|
export { n as FloatingPopover, a as FloatingTooltip, i as Popover, e as PopoverContent, t as PopoverTrigger, r as usePopoverContext };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as e } from "../chunks/flex-C7njxZ74.js";
|
|
2
|
-
import { t } from "../chunks/date-input-
|
|
2
|
+
import { t } from "../chunks/date-input-9T8AoG5U.js";
|
|
3
3
|
import { c as n, l as r, r as i, s as a, t as o, u as s } from "../chunks/date-range-preset-select-BLnY47cv.js";
|
|
4
4
|
import { useCallback as c, useMemo as l, useRef as u, useState as d } from "react";
|
|
5
5
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e } from "../chunks/select-
|
|
1
|
+
import { r as e } from "../chunks/select-CysiIrej.js";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import { getPresetOption as n } from "@ryuzaki13/react-foundation-lib/presets";
|
|
4
4
|
//#region src/preset-select/PresetSelect.tsx
|
|
@@ -3,17 +3,17 @@ import { r as t } from "../chunks/uiClasses-UkaejTdf.js";
|
|
|
3
3
|
import { t as n } from "../chunks/CheckBox.module-C5SjPwSj.js";
|
|
4
4
|
import { useId as r } from "react";
|
|
5
5
|
import { cn as i } from "@ryuzaki13/react-foundation-lib/utils";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
+
import { CircleIcon as s } from "lucide-react";
|
|
8
8
|
var c = { radioInput: "gu8UMB" }, l = ({ label: l, description: u, placeholder: d, disabled: f, size: p, className: m, onChange: h, value: g, id: _, tone: v = "neutral", ...y }) => {
|
|
9
9
|
let b = r(), x = _ ?? b, S = u ? `${x}-description` : void 0, C = l ?? d, w = g ?? !1;
|
|
10
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ o("div", {
|
|
11
11
|
className: i(e.uiElement, p && e.uiSizable, p && e[p], f && e.disabled, m),
|
|
12
|
-
children: [/* @__PURE__ */
|
|
12
|
+
children: [/* @__PURE__ */ o("div", {
|
|
13
13
|
className: n.row,
|
|
14
|
-
children: [/* @__PURE__ */
|
|
14
|
+
children: [/* @__PURE__ */ o("div", {
|
|
15
15
|
className: i(n.wrapper, t(v)),
|
|
16
|
-
children: [/* @__PURE__ */
|
|
16
|
+
children: [/* @__PURE__ */ a("input", {
|
|
17
17
|
...y,
|
|
18
18
|
id: x,
|
|
19
19
|
type: "radio",
|
|
@@ -23,17 +23,17 @@ var c = { radioInput: "gu8UMB" }, l = ({ label: l, description: u, placeholder:
|
|
|
23
23
|
"aria-describedby": S,
|
|
24
24
|
className: i(e.uiSelectionControl, n.input, c.radioInput),
|
|
25
25
|
onChange: (e) => h?.(e.currentTarget.checked)
|
|
26
|
-
}), /* @__PURE__ */
|
|
26
|
+
}), /* @__PURE__ */ a("div", {
|
|
27
27
|
className: i(e.uiSelectionIcon, n.icon),
|
|
28
28
|
"aria-hidden": "true",
|
|
29
|
-
children: /* @__PURE__ */
|
|
29
|
+
children: /* @__PURE__ */ a(s, { fill: "currentColor" })
|
|
30
30
|
})]
|
|
31
|
-
}), C && /* @__PURE__ */
|
|
31
|
+
}), C && /* @__PURE__ */ a("label", {
|
|
32
32
|
htmlFor: x,
|
|
33
33
|
className: e.uiLabel,
|
|
34
34
|
children: C
|
|
35
35
|
})]
|
|
36
|
-
}), u && /* @__PURE__ */
|
|
36
|
+
}), u && /* @__PURE__ */ a("p", {
|
|
37
37
|
id: S,
|
|
38
38
|
className: e.uiDescription,
|
|
39
39
|
children: u
|
package/dist/select/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "../chunks/select-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../chunks/select-CysiIrej.js";
|
|
2
2
|
export { t as ODataSelect, n as Select, r as SerializableSelect, e as resolveSelectedOption };
|
package/dist/slider/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as e, r as t } from "../chunks/popover-
|
|
1
|
+
import { n as e, r as t } from "../chunks/popover-IExDrsF6.js";
|
|
2
2
|
import { t as n } from "../chunks/ui.module-DHVTOqZ0.js";
|
|
3
|
-
import { i as r, l as i, o as a, s as o } from "../chunks/input-
|
|
4
|
-
import { l as s } from "../chunks/picker-
|
|
3
|
+
import { i as r, l as i, o as a, s as o } from "../chunks/input-VC8jEoTa.js";
|
|
4
|
+
import { l as s } from "../chunks/picker-DLnfOgZj.js";
|
|
5
5
|
import { useCallback as c, useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
6
6
|
import { cn as ee } from "@ryuzaki13/react-foundation-lib/utils";
|
|
7
7
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
package/dist/sortable/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/sortable-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../chunks/sortable-BKIwlqhI.js";
|
|
2
2
|
export { o as Sortable, i as SortableContainer, n as SortableDragHandle, t as SortableHandle, e as SortableItem, r as SortableRoot, a as getSortableReorderResult };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e } from "../chunks/select-
|
|
1
|
+
import { r as e } from "../chunks/select-CysiIrej.js";
|
|
2
2
|
import { useMemo as t } from "react";
|
|
3
3
|
import { cn as n } from "@ryuzaki13/react-foundation-lib/utils";
|
|
4
4
|
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|