@ryuzaki13/react-foundation-ui 1.1.7 → 1.1.8

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.
Files changed (71) hide show
  1. package/dist/advanced-search/index.js +136 -136
  2. package/dist/base-table/index.js +2 -2
  3. package/dist/chunks/{CalendarView-C0gJvre1.js → CalendarView-KCkhCtK-.js} +101 -101
  4. package/dist/chunks/{CalendarView-C0gJvre1.js.map → CalendarView-KCkhCtK-.js.map} +1 -1
  5. package/dist/chunks/SelectOptionContent-CI7wq9Oi.js +27 -0
  6. package/dist/chunks/SelectOptionContent-CI7wq9Oi.js.map +1 -0
  7. package/dist/chunks/{TextEditorLexicalClient-DYZ32dnX.js → TextEditorLexicalClient-DeBA6fQX.js} +157 -157
  8. package/dist/chunks/{TextEditorLexicalClient-DYZ32dnX.js.map → TextEditorLexicalClient-DeBA6fQX.js.map} +1 -1
  9. package/dist/chunks/{base-table-BXKFSgIk.js → base-table-Dv9i3CAT.js} +73 -73
  10. package/dist/chunks/{base-table-BXKFSgIk.js.map → base-table-Dv9i3CAT.js.map} +1 -1
  11. package/dist/chunks/{date-input-DKkW7_uw.js → date-input-DT9E8dhk.js} +44 -44
  12. package/dist/chunks/{date-input-DKkW7_uw.js.map → date-input-DT9E8dhk.js.map} +1 -1
  13. package/dist/chunks/{date-range-preset-select-UgsfaOeM.js → date-range-preset-select-BLnY47cv.js} +20 -20
  14. package/dist/chunks/{date-range-preset-select-UgsfaOeM.js.map → date-range-preset-select-BLnY47cv.js.map} +1 -1
  15. package/dist/chunks/{input-CZLUUggm.js → input-BCJfUdK_.js} +43 -43
  16. package/dist/chunks/{input-CZLUUggm.js.map → input-BCJfUdK_.js.map} +1 -1
  17. package/dist/chunks/{input-files-aB8iaqGk.js → input-files-Dcc5K-_1.js} +2 -2
  18. package/dist/chunks/{input-files-aB8iaqGk.js.map → input-files-Dcc5K-_1.js.map} +1 -1
  19. package/dist/chunks/{input-search-eMvnvgV0.js → input-search-B7HmrAM7.js} +2 -2
  20. package/dist/chunks/{input-search-eMvnvgV0.js.map → input-search-B7HmrAM7.js.map} +1 -1
  21. package/dist/chunks/{multi-select-DaOKgHKE.js → multi-select-BCpRct-k.js} +105 -104
  22. package/dist/chunks/{multi-select-DaOKgHKE.js.map → multi-select-BCpRct-k.js.map} +1 -1
  23. package/dist/chunks/{picker-BZ05h_ZJ.js → picker-DTZk09Ag.js} +27 -27
  24. package/dist/chunks/{picker-BZ05h_ZJ.js.map → picker-DTZk09Ag.js.map} +1 -1
  25. package/dist/chunks/select-Bd48kVI3.js +328 -0
  26. package/dist/chunks/{select-Dj3FfpS0.js.map → select-Bd48kVI3.js.map} +1 -1
  27. package/dist/chunks/{table-BdpMzhLH.js → table-BtXVqa2I.js} +10 -10
  28. package/dist/chunks/{table-BdpMzhLH.js.map → table-BtXVqa2I.js.map} +1 -1
  29. package/dist/chunks/{table-column-interactions-6RGjmiI5.js → table-column-interactions-BGd5Lwy9.js} +19 -19
  30. package/dist/chunks/{table-column-interactions-6RGjmiI5.js.map → table-column-interactions-BGd5Lwy9.js.map} +1 -1
  31. package/dist/chunks/{useODataSelectBase-BxAvhDww.js → useODataSelectBase-wZ07hQFv.js} +10 -10
  32. package/dist/chunks/{useODataSelectBase-BxAvhDww.js.map → useODataSelectBase-wZ07hQFv.js.map} +1 -1
  33. package/dist/date-input/index.js +2 -2
  34. package/dist/date-range-preset-select/index.js +1 -1
  35. package/dist/date-time-input/index.js +41 -41
  36. package/dist/drop-zone/index.js +1 -1
  37. package/dist/errors/index.js +39 -39
  38. package/dist/image/index.js +2 -2
  39. package/dist/input/index.js +1 -1
  40. package/dist/input-date-time/index.js +1 -1
  41. package/dist/input-file/index.js +1 -1
  42. package/dist/input-files/index.js +1 -1
  43. package/dist/input-image/index.js +1 -1
  44. package/dist/input-search/index.js +1 -1
  45. package/dist/layout-picker/index.js +1 -1
  46. package/dist/multi-select/index.js +1 -1
  47. package/dist/notifications/index.js +26 -26
  48. package/dist/period-select/index.js +19 -19
  49. package/dist/picker/index.js +1 -1
  50. package/dist/preset-range-date-input/index.js +2 -2
  51. package/dist/preset-select/index.js +1 -1
  52. package/dist/select/index.js +1 -1
  53. package/dist/simple-table/index.js +1 -1
  54. package/dist/slider/index.js +312 -312
  55. package/dist/slider/index.js.map +1 -1
  56. package/dist/state-select/index.js +14 -14
  57. package/dist/styles.css +1 -1
  58. package/dist/table/index.js +1 -1
  59. package/dist/table-column-interactions/index.js +1 -1
  60. package/dist/tag-input/index.js +1 -1
  61. package/dist/text/index.js +10 -10
  62. package/dist/text-editor/index.js +1 -1
  63. package/dist/textarea/index.js +1 -1
  64. package/dist/tree-select/index.js +240 -239
  65. package/dist/tree-select/index.js.map +1 -1
  66. package/dist/tree-table/index.js +15 -15
  67. package/package.json +2 -1
  68. package/storybook-static/project.json +1 -1
  69. package/dist/chunks/SelectOptionContent-lfEtHXfO.js +0 -1132
  70. package/dist/chunks/SelectOptionContent-lfEtHXfO.js.map +0 -1
  71. package/dist/chunks/select-Dj3FfpS0.js +0 -327
@@ -1,25 +1,25 @@
1
1
  import { Text as e } from "../text/index.js";
2
2
  import { r as t } from "../chunks/flex-DYZ0IbU6.js";
3
3
  import { Component as n, useEffect as r, useState as i } from "react";
4
- import { logError as a } from "@ryuzaki13/react-foundation-lib/utils";
5
- import { captureRuntimeErrorReport as o } from "@ryuzaki13/react-foundation-lib/error-report";
6
- import { useQueryClient as s } from "@tanstack/react-query";
7
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
4
+ import { useQueryClient as a } from "@tanstack/react-query";
5
+ import { logError as o } from "@ryuzaki13/react-foundation-lib/utils";
6
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
+ import { captureRuntimeErrorReport as l } from "@ryuzaki13/react-foundation-lib/error-report";
8
8
  //#region src/errors/PageError.tsx
9
- var u = ({ code: e, title: n, description: r }) => /* @__PURE__ */ l(t.Predefined, {
9
+ var u = ({ code: e, title: n, description: r }) => /* @__PURE__ */ c(t.Predefined, {
10
10
  variant: "columnCenter",
11
11
  className: "paddingXl",
12
12
  children: [
13
- /* @__PURE__ */ c("div", {
13
+ /* @__PURE__ */ s("div", {
14
14
  "aria-hidden": "true",
15
15
  className: "content2 fontBolded",
16
16
  style: { fontSize: "5em" },
17
17
  children: e
18
18
  }),
19
- /* @__PURE__ */ c("h2", { children: n }),
20
- /* @__PURE__ */ c("p", { children: r })
19
+ /* @__PURE__ */ s("h2", { children: n }),
20
+ /* @__PURE__ */ s("p", { children: r })
21
21
  ]
22
- }), d = () => /* @__PURE__ */ c(u, {
22
+ }), d = () => /* @__PURE__ */ s(u, {
23
23
  code: 400,
24
24
  title: "Некорректный запрос",
25
25
  description: "Похоже, что запрос был сформирован неверно. Попробуйте обновить страницу или вернуться на главную."
@@ -28,7 +28,7 @@ var u = ({ code: e, title: n, description: r }) => /* @__PURE__ */ l(t.Predefine
28
28
  //#region src/errors/BoomExplosion.tsx
29
29
  function f() {
30
30
  let [e] = i(() => `scale(${.7 + Math.random() * .3}) rotateZ(${Math.random() * 45 - 15}deg)`);
31
- return /* @__PURE__ */ c("svg", {
31
+ return /* @__PURE__ */ s("svg", {
32
32
  viewBox: "0 0 300 300",
33
33
  width: "300",
34
34
  height: "300",
@@ -40,7 +40,7 @@ function f() {
40
40
  zIndex: 0,
41
41
  opacity: .5
42
42
  },
43
- children: /* @__PURE__ */ c("polygon", {
43
+ children: /* @__PURE__ */ s("polygon", {
44
44
  points: "\n150,10 170,60 230,40 200,100 270,110 210,150 270,190 200,200 230,260 170,240 150,290 130,240\n70,260 100,200 30,190 90,150 30,110 100,100 70,40 130,60",
45
45
  fill: "var(--status-error-on-fill)",
46
46
  stroke: "var(--status-error-fill)",
@@ -62,11 +62,11 @@ var p = [
62
62
  "Облом!",
63
63
  "Ёлки-палки!",
64
64
  "Хлоп!"
65
- ], m = () => /* @__PURE__ */ c(u, {
65
+ ], m = () => /* @__PURE__ */ s(u, {
66
66
  code: 403,
67
67
  title: "Доступ запрещён",
68
68
  description: "У вас нет прав для просмотра этой страницы."
69
- }), h = () => /* @__PURE__ */ c(u, {
69
+ }), h = () => /* @__PURE__ */ s(u, {
70
70
  code: 404,
71
71
  title: "Страница не найдена",
72
72
  description: "Извините, запрашиваемая страница не существует"
@@ -77,9 +77,9 @@ function g(e) {
77
77
  if (!(!("status" in e) || typeof e.status != "number")) return e.status;
78
78
  }
79
79
  var _ = ({ error: e, componentStack: t, draftId: n }) => {
80
- let [u] = i(() => Math.random()), _ = s();
80
+ let [u] = i(() => Math.random()), _ = a();
81
81
  r(() => {
82
- n === void 0 && o(e, {
82
+ n === void 0 && l(e, {
83
83
  category: "react",
84
84
  componentStack: t
85
85
  }, _);
@@ -91,20 +91,20 @@ var _ = ({ error: e, componentStack: t, draftId: n }) => {
91
91
  ]);
92
92
  let v = g(e);
93
93
  if (v) switch (v) {
94
- case 400: return /* @__PURE__ */ c(d, {});
95
- case 403: return /* @__PURE__ */ c(m, {});
96
- case 404: return /* @__PURE__ */ c(h, {});
94
+ case 400: return /* @__PURE__ */ s(d, {});
95
+ case 403: return /* @__PURE__ */ s(m, {});
96
+ case 404: return /* @__PURE__ */ s(h, {});
97
97
  }
98
- return a(e.stack), /* @__PURE__ */ l("section", {
98
+ return o(e.stack), /* @__PURE__ */ c("section", {
99
99
  className: "w100 h100 flexColumn justifyContentCenter paddingMd",
100
- children: [/* @__PURE__ */ l("div", {
100
+ children: [/* @__PURE__ */ c("div", {
101
101
  "aria-hidden": "true",
102
102
  className: "textCenter relative fontBolded statusError",
103
103
  style: {
104
104
  fontSize: "4em",
105
105
  marginBlock: "2em"
106
106
  },
107
- children: [/* @__PURE__ */ c(f, {}), /* @__PURE__ */ c("div", {
107
+ children: [/* @__PURE__ */ s(f, {}), /* @__PURE__ */ s("div", {
108
108
  style: {
109
109
  zIndex: 1,
110
110
  position: "relative",
@@ -112,18 +112,18 @@ var _ = ({ error: e, componentStack: t, draftId: n }) => {
112
112
  },
113
113
  children: p[Math.floor(u * p.length)]
114
114
  })]
115
- }), /* @__PURE__ */ l("div", {
115
+ }), /* @__PURE__ */ c("div", {
116
116
  className: "textCenter",
117
117
  children: [
118
- /* @__PURE__ */ c("h2", {
118
+ /* @__PURE__ */ s("h2", {
119
119
  className: "statusError",
120
120
  children: "Критическая ошибка"
121
121
  }),
122
- /* @__PURE__ */ c("p", {
122
+ /* @__PURE__ */ s("p", {
123
123
  className: "statusError fontSizeLg",
124
- children: /* @__PURE__ */ c("code", { children: e.message })
124
+ children: /* @__PURE__ */ s("code", { children: e.message })
125
125
  }),
126
- /* @__PURE__ */ c("p", { children: "Попробуйте перезагрузить страницу или вернуться позже." })
126
+ /* @__PURE__ */ s("p", { children: "Попробуйте перезагрузить страницу или вернуться позже." })
127
127
  ]
128
128
  })]
129
129
  });
@@ -145,7 +145,7 @@ var _ = ({ error: e, componentStack: t, draftId: n }) => {
145
145
  this.setState({
146
146
  componentStack: t.componentStack ?? void 0,
147
147
  draftId: null
148
- }), o(e, {
148
+ }), l(e, {
149
149
  category: "react",
150
150
  componentStack: t.componentStack ?? void 0
151
151
  }).then((t) => {
@@ -155,7 +155,7 @@ var _ = ({ error: e, componentStack: t, draftId: n }) => {
155
155
  render() {
156
156
  if (this.state.error) {
157
157
  let e = this.props.customComponent;
158
- return e ? /* @__PURE__ */ c(e, { error: this.state.error }) : /* @__PURE__ */ c(_, {
158
+ return e ? /* @__PURE__ */ s(e, { error: this.state.error }) : /* @__PURE__ */ s(_, {
159
159
  error: this.state.error,
160
160
  componentStack: this.state.componentStack,
161
161
  draftId: this.state.draftId
@@ -165,13 +165,13 @@ var _ = ({ error: e, componentStack: t, draftId: n }) => {
165
165
  }
166
166
  }, y = ({ header: e, description: t }) => {
167
167
  let [n] = i(() => Math.random());
168
- return /* @__PURE__ */ l("div", {
168
+ return /* @__PURE__ */ c("div", {
169
169
  className: "container marginBlockLg",
170
- children: [/* @__PURE__ */ l("div", {
170
+ children: [/* @__PURE__ */ c("div", {
171
171
  "aria-hidden": "true",
172
172
  className: "textCenter relative fontBolded statusWarning marginBlockMd",
173
173
  style: { fontSize: "6em" },
174
- children: [/* @__PURE__ */ c(f, {}), /* @__PURE__ */ c("div", {
174
+ children: [/* @__PURE__ */ s(f, {}), /* @__PURE__ */ s("div", {
175
175
  style: {
176
176
  zIndex: 1,
177
177
  position: "relative",
@@ -179,33 +179,33 @@ var _ = ({ error: e, componentStack: t, draftId: n }) => {
179
179
  },
180
180
  children: p[Math.floor(n * p.length)]
181
181
  })]
182
- }), /* @__PURE__ */ l("div", {
182
+ }), /* @__PURE__ */ c("div", {
183
183
  className: "flexColumn alignItemsCenter textCenter marginBlockMd",
184
- children: [e && /* @__PURE__ */ c("h2", {
184
+ children: [e && /* @__PURE__ */ s("h2", {
185
185
  className: "statusWarning",
186
186
  children: e
187
- }), t && /* @__PURE__ */ c("p", { children: t })]
187
+ }), t && /* @__PURE__ */ s("p", { children: t })]
188
188
  })]
189
189
  });
190
190
  };
191
191
  //#endregion
192
192
  //#region src/errors/SimpleErrorDisplay.tsx
193
193
  function b({ error: t }) {
194
- return a(t.stack), /* @__PURE__ */ c(e, {
194
+ return o(t.stack), /* @__PURE__ */ s(e, {
195
195
  color: "error",
196
- children: /* @__PURE__ */ c("code", { children: t.message })
196
+ children: /* @__PURE__ */ s("code", { children: t.message })
197
197
  });
198
198
  }
199
199
  //#endregion
200
200
  //#region src/errors/UnauthorizedPage.tsx
201
- var x = () => /* @__PURE__ */ c(u, {
201
+ var x = () => /* @__PURE__ */ s(u, {
202
202
  code: 401,
203
203
  title: "Необходима авторизация",
204
204
  description: "Для доступа к этой странице нужно войти в систему. Пожалуйста, авторизуйтесь и попробуйте снова."
205
- }), S = () => /* @__PURE__ */ c(t.Predefined, {
205
+ }), S = () => /* @__PURE__ */ s(t.Predefined, {
206
206
  variant: "columnCenter",
207
207
  className: "paddingXl",
208
- children: /* @__PURE__ */ c("h2", {
208
+ children: /* @__PURE__ */ s("h2", {
209
209
  className: "content2",
210
210
  children: "Выберите ракурс"
211
211
  })
@@ -1,8 +1,8 @@
1
1
  import { n as e } from "../chunks/button-CC0Jdx1j.js";
2
2
  import { r as t } from "../chunks/grid-dI94AAbi.js";
3
- import { o as n } from "../chunks/input-CZLUUggm.js";
3
+ import { o as n } from "../chunks/input-BCJfUdK_.js";
4
4
  import { i as r, n as i, r as a } from "../chunks/modal-DXHX_sA-.js";
5
- import { t as o } from "../chunks/input-files-aB8iaqGk.js";
5
+ import { t as o } from "../chunks/input-files-Dcc5K-_1.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";
@@ -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-CZLUUggm.js";
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-BCJfUdK_.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-BisoTevy.js";
2
- import { i as t, l as n, r, s as i } from "../chunks/input-CZLUUggm.js";
2
+ import { i as t, l as n, r, s as i } from "../chunks/input-BCJfUdK_.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";
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "../chunks/ui.module-BisoTevy.js";
2
- import { i as t, l as n, r, s as i } from "../chunks/input-CZLUUggm.js";
2
+ import { i as t, l as n, r, s as i } from "../chunks/input-BCJfUdK_.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-aB8iaqGk.js";
1
+ import { n as e, t } from "../chunks/input-files-Dcc5K-_1.js";
2
2
  export { t as InputFiles, e as InputFilesList };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "../chunks/ui.module-BisoTevy.js";
2
- import { i as t, l as n, r, s as i } from "../chunks/input-CZLUUggm.js";
2
+ import { i as t, l as n, r, s as i } from "../chunks/input-BCJfUdK_.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-eMvnvgV0.js";
1
+ import { t as e } from "../chunks/input-search-B7HmrAM7.js";
2
2
  export { e as InputSearch };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "../chunks/ui.module-BisoTevy.js";
2
- import { c as t, d as n, f as r, i, l as a, t as o } from "../chunks/picker-BZ05h_ZJ.js";
2
+ import { c as t, d as n, f as r, i, l as a, t as o } from "../chunks/picker-DTZk09Ag.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 { CheckIcon as u } from "lucide-react";
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "../chunks/multi-select-DaOKgHKE.js";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../chunks/multi-select-BCpRct-k.js";
2
2
  export { e as MultiSelect, r as MultiSelectToken, n as ODataDependentMultiSelect, i as ODataDependentSegmentMultiSelect, t as ODataMultiSelect, a as SerializableMultiSelect };
@@ -2,23 +2,23 @@ import { o as e } from "../chunks/flex-DYZ0IbU6.js";
2
2
  import { n as t } from "../chunks/button-CC0Jdx1j.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 { bindNotifications as s, createNotificationsStore as c, notify as l } from "@ryuzaki13/react-foundation-lib/notifications";
6
- import { AlertCircleIcon as u, CheckCircle2Icon as d, InfoIcon as f, TriangleAlertIcon as p, XIcon as m } from "lucide-react";
7
- import { jsx as h, jsxs as g } from "react/jsx-runtime";
8
- import { createMissingContextError as _ } from "@ryuzaki13/react-foundation-lib/error";
5
+ import { AlertCircleIcon as s, CheckCircle2Icon as c, InfoIcon as l, TriangleAlertIcon as u, XIcon as d } from "lucide-react";
6
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
7
+ import { createMissingContextError as m } from "@ryuzaki13/react-foundation-lib/error";
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
- let t = a(() => c(), []);
14
- return i(() => s(t), [t]), /* @__PURE__ */ h(y.Provider, {
13
+ let t = a(() => g(), []);
14
+ return i(() => h(t), [t]), /* @__PURE__ */ f(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 m({
22
22
  hookName: "useNotificationApi",
23
23
  providerName: "NotificationsProvider"
24
24
  });
@@ -62,65 +62,65 @@ var T = {
62
62
  }, E = {
63
63
  info: {
64
64
  title: "Информация",
65
- Icon: f
65
+ Icon: l
66
66
  },
67
67
  success: {
68
68
  title: "Успешно",
69
- Icon: d
69
+ Icon: c
70
70
  },
71
71
  warning: {
72
72
  title: "Предупреждение",
73
- Icon: p
73
+ Icon: u
74
74
  },
75
75
  error: {
76
76
  title: "Ошибка",
77
- Icon: u
77
+ Icon: s
78
78
  }
79
79
  };
80
80
  function D() {
81
81
  let n = S(), { dismiss: r } = C();
82
- return /* @__PURE__ */ h("div", {
82
+ return /* @__PURE__ */ f("div", {
83
83
  className: T.container,
84
84
  "aria-label": "Область уведомлений",
85
85
  "aria-live": "polite",
86
86
  "aria-relevant": "additions text",
87
87
  children: n.map((n) => {
88
88
  let i = E[n.type], a = n.title ?? i.title, s = i.Icon;
89
- return /* @__PURE__ */ h("article", {
89
+ return /* @__PURE__ */ f("article", {
90
90
  role: n.type === "error" ? "alert" : "status",
91
91
  "aria-atomic": "true",
92
92
  className: o(T.card, T[n.type]),
93
- children: /* @__PURE__ */ g(e, {
93
+ children: /* @__PURE__ */ p(e, {
94
94
  align: "start",
95
95
  justify: "between",
96
96
  gap: "sm",
97
97
  className: T.header,
98
- children: [/* @__PURE__ */ g(e, {
98
+ children: [/* @__PURE__ */ p(e, {
99
99
  align: "start",
100
100
  gap: "sm",
101
101
  className: T.content,
102
- children: [/* @__PURE__ */ h("span", {
102
+ children: [/* @__PURE__ */ f("span", {
103
103
  className: T.icon,
104
104
  "aria-hidden": "true",
105
- children: /* @__PURE__ */ h(s, {})
106
- }), /* @__PURE__ */ g("div", {
105
+ children: /* @__PURE__ */ f(s, {})
106
+ }), /* @__PURE__ */ p("div", {
107
107
  className: T.copy,
108
108
  children: [
109
- /* @__PURE__ */ h("div", {
109
+ /* @__PURE__ */ f("div", {
110
110
  className: T.kicker,
111
111
  children: i.title
112
112
  }),
113
- n.title ? /* @__PURE__ */ h("div", {
113
+ n.title ? /* @__PURE__ */ f("div", {
114
114
  className: T.title,
115
115
  children: a
116
116
  }) : null,
117
- /* @__PURE__ */ h("div", {
117
+ /* @__PURE__ */ f("div", {
118
118
  className: T.message,
119
119
  children: n.message
120
120
  }),
121
- n.actions?.length ? /* @__PURE__ */ h("div", {
121
+ n.actions?.length ? /* @__PURE__ */ f("div", {
122
122
  className: T.actions,
123
- children: n.actions.map((e) => /* @__PURE__ */ h(t, {
123
+ children: n.actions.map((e) => /* @__PURE__ */ f(t, {
124
124
  tone: e.tone ?? n.type,
125
125
  appearance: "outline",
126
126
  "data-ui": "notification-action-button",
@@ -131,8 +131,8 @@ function D() {
131
131
  }) : null
132
132
  ]
133
133
  })]
134
- }), n.dismissible === !1 ? null : /* @__PURE__ */ h(t, {
135
- icon: /* @__PURE__ */ h(m, {}),
134
+ }), n.dismissible === !1 ? null : /* @__PURE__ */ f(t, {
135
+ icon: /* @__PURE__ */ f(d, {}),
136
136
  appearance: "ghost",
137
137
  tone: n.type,
138
138
  onClick: () => r(n.id),
@@ -146,6 +146,6 @@ function D() {
146
146
  });
147
147
  }
148
148
  //#endregion
149
- export { l as NotificationApi, l as notify, D as NotificationsHost, b as NotificationsProvider, w as useNotificationById, S as useNotifications, C as useNotify };
149
+ export { _ as NotificationApi, _ as notify, D as NotificationsHost, b as NotificationsProvider, w as useNotificationById, S as useNotifications, C as useNotify };
150
150
 
151
151
  //# sourceMappingURL=index.js.map
@@ -1,9 +1,9 @@
1
1
  import { PresetSelect as e } from "../preset-select/index.js";
2
2
  import { useEffect as t, useEffectEvent as n, useMemo as r, useRef as i } from "react";
3
- import { isRecord as a } from "@ryuzaki13/react-foundation-lib/validators";
3
+ import { jsx as a } from "react/jsx-runtime";
4
4
  import { countCalendarDaysInDateRange as o, normalizeText as s, toPositiveInteger as c } from "@ryuzaki13/react-foundation-lib/formatters";
5
- import { jsx as l } from "react/jsx-runtime";
6
- import { getPresetOption as u, normalizePresetIds as d, resolvePresetOptionsByIds as f } from "@ryuzaki13/react-foundation-lib/presets";
5
+ import { getPresetOption as l, normalizePresetIds as u, resolvePresetOptionsByIds as d } from "@ryuzaki13/react-foundation-lib/presets";
6
+ import { isRecord as f } from "@ryuzaki13/react-foundation-lib/validators";
7
7
  //#region src/period-select/lib/constants.ts
8
8
  var p = "period-select", m = "day", h = 31, g = 26, _ = Object.freeze([
9
9
  {
@@ -32,14 +32,14 @@ function b(e) {
32
32
  return typeof e == "string" && y.has(e);
33
33
  }
34
34
  function x(e, t = v) {
35
- let n = d(e, b, t), r = n.length > 0 ? n : v, i = new Set(r);
35
+ let n = u(e, b, t), r = n.length > 0 ? n : v, i = new Set(r);
36
36
  return v.filter((e) => i.has(e));
37
37
  }
38
38
  function S(e, t = _) {
39
- return f(e, t);
39
+ return d(e, t);
40
40
  }
41
41
  function C(e, t = _) {
42
- return u(e, t);
42
+ return l(e, t);
43
43
  }
44
44
  function w(e) {
45
45
  return b(e) ? e : "day";
@@ -66,7 +66,7 @@ function D(e, t, n) {
66
66
  return i && !E(i, n) ? i.id : (r >= 0 ? t.slice(r + 1) : t).find((e) => !E(e, n))?.id ?? t.find((e) => !E(e, n))?.id;
67
67
  }
68
68
  function O(e) {
69
- if (!a(e)) return;
69
+ if (!f(e)) return;
70
70
  let t = s(e.start), n = s(e.end);
71
71
  return t && n ? {
72
72
  start: t,
@@ -75,37 +75,37 @@ function O(e) {
75
75
  }
76
76
  //#endregion
77
77
  //#region src/period-select/PeriodSelect.tsx
78
- function k({ value: a, onChange: o, options: s, presetIds: c, dateRange: u, maxDayRangeDays: d, maxWeekRangeWeeks: f, ...p }) {
79
- let m = r(() => s ?? S(x(c), T({
78
+ function k({ value: o, onChange: s, options: c, presetIds: l, dateRange: u, maxDayRangeDays: d, maxWeekRangeWeeks: f, ...p }) {
79
+ let m = r(() => c ?? S(x(l), T({
80
80
  maxDayRangeDays: d,
81
81
  maxWeekRangeWeeks: f
82
82
  })), [
83
83
  d,
84
84
  f,
85
- s,
86
- c
87
- ]), h = r(() => D(a, m, u), [
85
+ c,
86
+ l
87
+ ]), h = r(() => D(o, m, u), [
88
88
  u,
89
89
  m,
90
- a
90
+ o
91
91
  ]), g = i(null), _ = n(() => {
92
- if (h === void 0 || h === a) {
92
+ if (h === void 0 || h === o) {
93
93
  g.current = null;
94
94
  return;
95
95
  }
96
96
  let e = g.current;
97
- e && e.value === a && e.availableValue === h || (g.current = {
98
- value: a,
97
+ e && e.value === o && e.availableValue === h || (g.current = {
98
+ value: o,
99
99
  availableValue: h
100
- }, o(h));
100
+ }, s(h));
101
101
  });
102
102
  return t(() => {
103
103
  _();
104
- }, [h, a]), /* @__PURE__ */ l(e, {
104
+ }, [h, o]), /* @__PURE__ */ a(e, {
105
105
  ...p,
106
106
  options: m,
107
107
  value: h,
108
- onChange: o,
108
+ onChange: s,
109
109
  getOptionDisabled: (e) => E(e, u)
110
110
  });
111
111
  }
@@ -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, r as c, s as l, t as u, u as d } from "../chunks/picker-BZ05h_ZJ.js";
1
+ import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../chunks/picker-DTZk09Ag.js";
2
2
  export { r as PickerField, n as PickerPopup, d as PickerStatus, a as PickerTriggerActions, t as PickerTriggerInput, l as createPickerTriggerPolicy, s as extractPickerTextContent, e as usePickerDefaultFilter, i as usePickerFloatingListbox, c as usePickerQuery, o as usePickerSelectionLifecycle, u as usePickerTriggerController };
@@ -1,6 +1,6 @@
1
1
  import { o as e } from "../chunks/flex-DYZ0IbU6.js";
2
- import { t } from "../chunks/date-input-DKkW7_uw.js";
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-UgsfaOeM.js";
2
+ import { t } from "../chunks/date-input-DT9E8dhk.js";
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";
6
6
  //#region src/preset-range-date-input/lib/constants.ts
@@ -1,4 +1,4 @@
1
- import { r as e } from "../chunks/select-Dj3FfpS0.js";
1
+ import { r as e } from "../chunks/select-Bd48kVI3.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
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "../chunks/select-Dj3FfpS0.js";
1
+ import { i as e, n as t, r as n, t as r } from "../chunks/select-Bd48kVI3.js";
2
2
  export { t as ODataSelect, n as Select, r as SerializableSelect, e as resolveSelectedOption };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../chunks/table-BdpMzhLH.js";
1
+ import { t as e } from "../chunks/table-BtXVqa2I.js";
2
2
  import { useMemo as t } from "react";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  //#region src/simple-table/SimpleTable.tsx