@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.
Files changed (107) hide show
  1. package/dist/advanced-search/index.js +182 -148
  2. package/dist/advanced-search/index.js.map +1 -1
  3. package/dist/advanced-search/model/useAdvancedSearchSelection.d.ts +1 -1
  4. package/dist/advanced-search/model/useAdvancedSearchSelection.d.ts.map +1 -1
  5. package/dist/advanced-search/ui/AdvancedSearchModal.d.ts +12 -3
  6. package/dist/advanced-search/ui/AdvancedSearchModal.d.ts.map +1 -1
  7. package/dist/advanced-search/ui/AdvancedSearchModalSession.d.ts +15 -0
  8. package/dist/advanced-search/ui/AdvancedSearchModalSession.d.ts.map +1 -0
  9. package/dist/advanced-search/ui/AdvancedSearchSelect.d.ts.map +1 -1
  10. package/dist/badge/index.js +1 -1
  11. package/dist/base-table/index.js +1 -1
  12. package/dist/button/index.js +1 -1
  13. package/dist/check-box/index.js +1 -1
  14. package/dist/chunks/{CalendarView-BSshXZAX.js → CalendarView-DqA-PbAU.js} +42 -42
  15. package/dist/chunks/{CalendarView-BSshXZAX.js.map → CalendarView-DqA-PbAU.js.map} +1 -1
  16. package/dist/chunks/{ImageViewerRuntime-BMs3BBkV.js → ImageViewerRuntime-HGBWp9NM.js} +18 -18
  17. package/dist/chunks/{ImageViewerRuntime-BMs3BBkV.js.map → ImageViewerRuntime-HGBWp9NM.js.map} +1 -1
  18. package/dist/chunks/{TextEditorLexicalClient-CLjpATRu.js → TextEditorLexicalClient-B084kVzu.js} +322 -322
  19. package/dist/chunks/{TextEditorLexicalClient-CLjpATRu.js.map → TextEditorLexicalClient-B084kVzu.js.map} +1 -1
  20. package/dist/chunks/{badge-CaooZXYD.js → badge-DMM8cOHd.js} +16 -16
  21. package/dist/chunks/{badge-CaooZXYD.js.map → badge-DMM8cOHd.js.map} +1 -1
  22. package/dist/chunks/{base-table-fUJY__6M.js → base-table-CJdKCKhb.js} +125 -125
  23. package/dist/chunks/{base-table-fUJY__6M.js.map → base-table-CJdKCKhb.js.map} +1 -1
  24. package/dist/chunks/{button-C--u7uJj.js → button-CzUO5rzq.js} +17 -17
  25. package/dist/chunks/{button-C--u7uJj.js.map → button-CzUO5rzq.js.map} +1 -1
  26. package/dist/chunks/{check-box-BZiEBR9c.js → check-box-sfGjYczQ.js} +11 -11
  27. package/dist/chunks/{check-box-BZiEBR9c.js.map → check-box-sfGjYczQ.js.map} +1 -1
  28. package/dist/chunks/{context-menu-XZ-e0f6_.js → context-menu-6nJkPmKV.js} +83 -83
  29. package/dist/chunks/{context-menu-XZ-e0f6_.js.map → context-menu-6nJkPmKV.js.map} +1 -1
  30. package/dist/chunks/date-input-9T8AoG5U.js +341 -0
  31. package/dist/chunks/{date-input-Dr5QNVT6.js.map → date-input-9T8AoG5U.js.map} +1 -1
  32. package/dist/chunks/{input-BNszawm6.js → input-VC8jEoTa.js} +37 -37
  33. package/dist/chunks/{input-BNszawm6.js.map → input-VC8jEoTa.js.map} +1 -1
  34. package/dist/chunks/{input-files-DxLVr2PF.js → input-files-CoMjadk7.js} +22 -22
  35. package/dist/chunks/{input-files-DxLVr2PF.js.map → input-files-CoMjadk7.js.map} +1 -1
  36. package/dist/chunks/{input-search-C2OOhZlw.js → input-search-Bs_9SxT0.js} +2 -2
  37. package/dist/chunks/{input-search-C2OOhZlw.js.map → input-search-Bs_9SxT0.js.map} +1 -1
  38. package/dist/chunks/{misc-Cp_r022Z.js → misc-CkRRma5E.js} +55 -55
  39. package/dist/chunks/{misc-Cp_r022Z.js.map → misc-CkRRma5E.js.map} +1 -1
  40. package/dist/chunks/{modal-DK9M7lT5.js → modal-LHkNxBko.js} +38 -38
  41. package/dist/chunks/{modal-DK9M7lT5.js.map → modal-LHkNxBko.js.map} +1 -1
  42. package/dist/chunks/{multi-select-CFHaQPot.js → multi-select-BJ6Lst1E.js} +44 -44
  43. package/dist/chunks/{multi-select-CFHaQPot.js.map → multi-select-BJ6Lst1E.js.map} +1 -1
  44. package/dist/chunks/{picker-D3Fc15JH.js → picker-DLnfOgZj.js} +34 -34
  45. package/dist/chunks/{picker-D3Fc15JH.js.map → picker-DLnfOgZj.js.map} +1 -1
  46. package/dist/chunks/{popover-BTT7zSqx.js → popover-IExDrsF6.js} +67 -67
  47. package/dist/chunks/{popover-BTT7zSqx.js.map → popover-IExDrsF6.js.map} +1 -1
  48. package/dist/chunks/{select-BolFlcoY.js → select-CysiIrej.js} +5 -5
  49. package/dist/chunks/{select-BolFlcoY.js.map → select-CysiIrej.js.map} +1 -1
  50. package/dist/chunks/{sortable-DcTIAbjD.js → sortable-BKIwlqhI.js} +17 -17
  51. package/dist/chunks/{sortable-DcTIAbjD.js.map → sortable-BKIwlqhI.js.map} +1 -1
  52. package/dist/chunks/{table-BChs6bgR.js → table-CIWdAcPY.js} +2 -2
  53. package/dist/chunks/{table-BChs6bgR.js.map → table-CIWdAcPY.js.map} +1 -1
  54. package/dist/chunks/{types-CxXyru6U.js → types-D9Wj9wrg.js} +21 -21
  55. package/dist/chunks/{types-CxXyru6U.js.map → types-D9Wj9wrg.js.map} +1 -1
  56. package/dist/chunks/{useODataSelectBase-BhCMCzv_.js → useODataSelectBase-Bq36Wp1U.js} +8 -8
  57. package/dist/chunks/{useODataSelectBase-BhCMCzv_.js.map → useODataSelectBase-Bq36Wp1U.js.map} +1 -1
  58. package/dist/context-menu/index.js +1 -1
  59. package/dist/date-input/index.js +2 -2
  60. package/dist/date-time-input/index.js +32 -32
  61. package/dist/dialog/index.js +9 -9
  62. package/dist/disclosure/index.js +10 -10
  63. package/dist/drop-zone/index.js +8 -8
  64. package/dist/errors/index.js +8 -8
  65. package/dist/expandable-action-panel/index.js +16 -16
  66. package/dist/flex/useFlexClasses.d.ts +1 -1
  67. package/dist/fullscreen-portal/index.js +7 -7
  68. package/dist/image/index.js +27 -27
  69. package/dist/input/index.js +1 -1
  70. package/dist/input-date-time/index.js +1 -1
  71. package/dist/input-file/index.js +1 -1
  72. package/dist/input-files/index.js +1 -1
  73. package/dist/input-image/index.js +1 -1
  74. package/dist/input-search/index.js +1 -1
  75. package/dist/layout-picker/index.js +1 -1
  76. package/dist/list/index.js +25 -25
  77. package/dist/listbox/index.js +5 -5
  78. package/dist/misc/index.js +1 -1
  79. package/dist/modal/index.js +1 -1
  80. package/dist/multi-select/index.js +1 -1
  81. package/dist/notifications/index.js +30 -30
  82. package/dist/picker/index.js +1 -1
  83. package/dist/popover/index.js +1 -1
  84. package/dist/preset-range-date-input/index.js +1 -1
  85. package/dist/preset-select/index.js +1 -1
  86. package/dist/radio-button/index.js +10 -10
  87. package/dist/select/index.js +1 -1
  88. package/dist/simple-table/index.js +1 -1
  89. package/dist/slider/index.js +3 -3
  90. package/dist/sortable/index.js +1 -1
  91. package/dist/state-select/index.js +1 -1
  92. package/dist/styles.css +1 -1
  93. package/dist/switch/index.js +11 -11
  94. package/dist/table/index.js +1 -1
  95. package/dist/table-sorting/index.js +13 -13
  96. package/dist/tabs/index.js +1 -1
  97. package/dist/tag-input/index.js +55 -55
  98. package/dist/tag-input/index.js.map +1 -1
  99. package/dist/text/index.js +1 -1
  100. package/dist/text-editor/index.js +3 -3
  101. package/dist/textarea/index.js +1 -1
  102. package/dist/tree-select/index.js +134 -134
  103. package/dist/tree-select/index.js.map +1 -1
  104. package/dist/tree-table/index.js +16 -16
  105. package/package.json +1 -1
  106. package/storybook-static/project.json +1 -1
  107. package/dist/chunks/date-input-Dr5QNVT6.js +0 -341
@@ -1,24 +1,24 @@
1
- import { o as e } from "../chunks/flex-C7njxZ74.js";
2
- import { n as t } from "../chunks/button-C--u7uJj.js";
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 { 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";
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__ */ f(y.Provider, {
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 m({
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: l
67
+ Icon: f
68
68
  },
69
69
  success: {
70
70
  title: "Успешно",
71
- Icon: c
71
+ Icon: d
72
72
  },
73
73
  warning: {
74
74
  title: "Предупреждение",
75
- Icon: u
75
+ Icon: p
76
76
  },
77
77
  error: {
78
78
  title: "Ошибка",
79
- Icon: s
79
+ Icon: u
80
80
  }
81
81
  };
82
82
  function D() {
83
83
  let n = S(), { dismiss: r } = C();
84
- return /* @__PURE__ */ f("div", {
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, s = i.Icon;
91
- return /* @__PURE__ */ f("article", {
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__ */ p(e, {
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__ */ p(e, {
100
+ children: [/* @__PURE__ */ c(t, {
101
101
  align: "start",
102
102
  gap: "sm",
103
103
  className: T.content,
104
- children: [/* @__PURE__ */ f("span", {
104
+ children: [/* @__PURE__ */ s("span", {
105
105
  className: T.icon,
106
106
  "aria-hidden": "true",
107
- children: /* @__PURE__ */ f(s, {})
108
- }), /* @__PURE__ */ p("div", {
107
+ children: /* @__PURE__ */ s(l, {})
108
+ }), /* @__PURE__ */ c("div", {
109
109
  className: T.copy,
110
110
  children: [
111
- /* @__PURE__ */ f("div", {
111
+ /* @__PURE__ */ s("div", {
112
112
  className: T.kicker,
113
113
  children: i.title
114
114
  }),
115
- n.title ? /* @__PURE__ */ f("div", {
115
+ n.title ? /* @__PURE__ */ s("div", {
116
116
  className: T.title,
117
117
  children: a
118
118
  }) : null,
119
- /* @__PURE__ */ f("div", {
119
+ /* @__PURE__ */ s("div", {
120
120
  className: T.message,
121
121
  children: n.message
122
122
  }),
123
- n.actions?.length ? /* @__PURE__ */ f("div", {
123
+ n.actions?.length ? /* @__PURE__ */ s("div", {
124
124
  className: T.actions,
125
- children: n.actions.map((e) => /* @__PURE__ */ f(t, {
126
- tone: e.tone ?? n.type,
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 e.onClick(),
131
- children: e.label
132
- }, e.label))
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__ */ f(t, {
137
- icon: /* @__PURE__ */ f(d, {}),
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),
@@ -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-D3Fc15JH.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, 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 };
@@ -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-BTT7zSqx.js";
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-Dr5QNVT6.js";
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-BolFlcoY.js";
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 { CircleIcon as a } from "lucide-react";
7
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
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__ */ s("div", {
10
+ return /* @__PURE__ */ o("div", {
11
11
  className: i(e.uiElement, p && e.uiSizable, p && e[p], f && e.disabled, m),
12
- children: [/* @__PURE__ */ s("div", {
12
+ children: [/* @__PURE__ */ o("div", {
13
13
  className: n.row,
14
- children: [/* @__PURE__ */ s("div", {
14
+ children: [/* @__PURE__ */ o("div", {
15
15
  className: i(n.wrapper, t(v)),
16
- children: [/* @__PURE__ */ o("input", {
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__ */ o("div", {
26
+ }), /* @__PURE__ */ a("div", {
27
27
  className: i(e.uiSelectionIcon, n.icon),
28
28
  "aria-hidden": "true",
29
- children: /* @__PURE__ */ o(a, { fill: "currentColor" })
29
+ children: /* @__PURE__ */ a(s, { fill: "currentColor" })
30
30
  })]
31
- }), C && /* @__PURE__ */ o("label", {
31
+ }), C && /* @__PURE__ */ a("label", {
32
32
  htmlFor: x,
33
33
  className: e.uiLabel,
34
34
  children: C
35
35
  })]
36
- }), u && /* @__PURE__ */ o("p", {
36
+ }), u && /* @__PURE__ */ a("p", {
37
37
  id: S,
38
38
  className: e.uiDescription,
39
39
  children: u
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "../chunks/select-BolFlcoY.js";
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 };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../chunks/table-BChs6bgR.js";
1
+ import { t as e } from "../chunks/table-CIWdAcPY.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
@@ -1,7 +1,7 @@
1
- import { n as e, r as t } from "../chunks/popover-BTT7zSqx.js";
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-BNszawm6.js";
4
- import { l as s } from "../chunks/picker-D3Fc15JH.js";
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";
@@ -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-DcTIAbjD.js";
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-BolFlcoY.js";
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";