@elcrm/components 0.2.14 → 0.5.2

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 (214) hide show
  1. package/README.md +70 -36
  2. package/dist/ActionGroup-DcApj_Mz.js +27 -0
  3. package/dist/ActionGroup.css +1 -1
  4. package/dist/ActionGroup.d.ts +19 -19
  5. package/dist/ActionGroup.js +1 -1
  6. package/dist/Avatar-eGdLrMCv.js +113 -0
  7. package/dist/Avatar.css +1 -1
  8. package/dist/Avatar.d.ts +4 -4
  9. package/dist/Avatar.js +1 -1
  10. package/dist/AvatarGroup-Dq-UrOaC.js +81 -0
  11. package/dist/AvatarGroup.css +1 -1
  12. package/dist/AvatarGroup.d.ts +8 -28
  13. package/dist/AvatarGroup.js +1 -1
  14. package/dist/AvatarName-3B4yCxHn.js +68 -0
  15. package/dist/AvatarName.css +1 -1
  16. package/dist/AvatarName.js +1 -1
  17. package/dist/Badge-BjScAXGy.js +28 -0
  18. package/dist/Badge.css +1 -1
  19. package/dist/Badge.js +1 -1
  20. package/dist/Banner-DAY18FWO.js +34 -0
  21. package/dist/Banner.css +1 -1
  22. package/dist/Banner.js +1 -1
  23. package/dist/Brand-BfCuiyf7.js +34 -0
  24. package/dist/Brand.css +1 -1
  25. package/dist/Brand.d.ts +8 -10
  26. package/dist/Brand.js +1 -1
  27. package/dist/Breadcrumb-DM_hWw5n.js +98 -0
  28. package/dist/Breadcrumb.css +1 -1
  29. package/dist/Breadcrumb.d.ts +8 -5
  30. package/dist/Breadcrumb.js +1 -1
  31. package/dist/Card-a7N8Uh_H.js +12 -0
  32. package/dist/Card.css +1 -1
  33. package/dist/Card.js +1 -1
  34. package/dist/ChatFrame-BdSYRF-B.js +37 -0
  35. package/dist/ChatFrame.css +1 -1
  36. package/dist/ChatList.js +2 -2
  37. package/dist/{ChatMessages-B8rdXiK-.js → ChatMessages-CLxwRGIa.js} +1 -1
  38. package/dist/ChatMessages.js +1 -1
  39. package/dist/ChatSplit-8iw_1Shp.js +21 -0
  40. package/dist/CodeBlock-B3wvMejv.js +34 -0
  41. package/dist/CodeBlock.css +1 -1
  42. package/dist/CodeBlock.js +1 -1
  43. package/dist/Dropdown-CR_XxNak.js +185 -0
  44. package/dist/Dropdown.css +1 -1
  45. package/dist/Dropdown.d.ts +4 -94
  46. package/dist/Dropdown.js +1 -1
  47. package/dist/EmptyState-B_wWPjUu.js +23 -0
  48. package/dist/EmptyState.css +1 -1
  49. package/dist/EmptyState.js +1 -1
  50. package/dist/{Footer-qxUlnPR9.js → Footer-Bgh_JCUe.js} +4 -4
  51. package/dist/Footer.css +1 -1
  52. package/dist/Footer.js +1 -1
  53. package/dist/Header-BMDIi3u2.js +21 -0
  54. package/dist/Header.css +1 -1
  55. package/dist/Header.js +1 -1
  56. package/dist/Healthmap-Z-LLfGW0.js +359 -0
  57. package/dist/Healthmap.css +1 -1
  58. package/dist/Healthmap.d.ts +25 -3
  59. package/dist/Healthmap.js +1 -1
  60. package/dist/{Item-D4okhsfW.js → Item-CGpkMJu0.js} +13 -13
  61. package/dist/Item.css +1 -1
  62. package/dist/Item.d.ts +7 -7
  63. package/dist/Item.js +1 -1
  64. package/dist/ItemColumn-Ch61LqE0.js +41 -0
  65. package/dist/ItemColumn.css +1 -1
  66. package/dist/ItemColumn.js +1 -1
  67. package/dist/Layout-CzEGKl9s.js +31 -0
  68. package/dist/Layout.css +1 -1
  69. package/dist/Layout.d.ts +1 -1
  70. package/dist/Layout.js +1 -1
  71. package/dist/List-D13pqaUY.js +12 -0
  72. package/dist/List.css +1 -1
  73. package/dist/List.js +1 -1
  74. package/dist/Loading-C_CKD-zt.js +16 -0
  75. package/dist/Loading.css +1 -1
  76. package/dist/Loading.js +1 -1
  77. package/dist/Menu-D2kf7fN_.js +72 -0
  78. package/dist/Menu.css +1 -1
  79. package/dist/Menu.d.ts +7 -25
  80. package/dist/Menu.js +1 -1
  81. package/dist/NavSections-CNxxBMPT.js +154 -0
  82. package/dist/NavSections.css +1 -1
  83. package/dist/NavSections.d.ts +16 -28
  84. package/dist/NavSections.js +1 -1
  85. package/dist/PageHead-BfClTLrF.js +31 -0
  86. package/dist/PageHead.css +1 -1
  87. package/dist/PageHead.d.ts +1 -1
  88. package/dist/PageHead.js +1 -1
  89. package/dist/PageShell-BAJges-G.js +30 -0
  90. package/dist/PageShell.css +1 -1
  91. package/dist/PageShell.js +1 -1
  92. package/dist/PanelInfo-Db5GCr-c.js +137 -0
  93. package/dist/PanelInfo.css +1 -1
  94. package/dist/PanelInfo.d.ts +16 -9
  95. package/dist/PanelInfo.js +1 -1
  96. package/dist/Popover-xEZoMY-h.js +143 -0
  97. package/dist/Popover.css +1 -1
  98. package/dist/Popover.d.ts +40 -11
  99. package/dist/Popover.js +1 -1
  100. package/dist/PricingGroup-CWy47MlE.js +138 -0
  101. package/dist/PricingGroup.css +1 -1
  102. package/dist/PricingGroup.d.ts +0 -2
  103. package/dist/PricingGroup.js +1 -1
  104. package/dist/PricingTable-BjpGVAhi.js +157 -0
  105. package/dist/PricingTable.css +1 -1
  106. package/dist/PricingTable.d.ts +4 -7
  107. package/dist/PricingTable.js +1 -1
  108. package/dist/RadioGroup-DI4KKUvZ.js +121 -0
  109. package/dist/RadioGroup.css +1 -1
  110. package/dist/RadioGroup.js +1 -1
  111. package/dist/Section-PprWjOvt.js +47 -0
  112. package/dist/Section.css +1 -1
  113. package/dist/Section.d.ts +29 -9
  114. package/dist/Section.js +1 -1
  115. package/dist/Sidebar-Bouhd5SS.js +205 -0
  116. package/dist/Sidebar.css +1 -1
  117. package/dist/Sidebar.d.ts +18 -26
  118. package/dist/Sidebar.js +1 -1
  119. package/dist/SplitPane-DBa-g9td.js +92 -0
  120. package/dist/SplitPane.css +1 -1
  121. package/dist/SplitPane.d.ts +8 -7
  122. package/dist/SplitPane.js +1 -1
  123. package/dist/Stack-BPTehVYc.js +53 -0
  124. package/dist/Stack.css +1 -1
  125. package/dist/Stack.d.ts +2 -1
  126. package/dist/Stack.js +1 -1
  127. package/dist/Stat-p8j4PjrC.js +28 -0
  128. package/dist/Stat.css +1 -1
  129. package/dist/Stat.js +1 -1
  130. package/dist/TabSections-Dppe9wiz.js +84 -0
  131. package/dist/TabSections.css +1 -1
  132. package/dist/TabSections.d.ts +7 -2
  133. package/dist/TabSections.js +1 -1
  134. package/dist/Table-DqrDUUtb.js +27 -0
  135. package/dist/Table.css +1 -1
  136. package/dist/Table.d.ts +10 -2
  137. package/dist/Table.js +1 -1
  138. package/dist/Text-Bo1u7gVC.js +25 -0
  139. package/dist/Text.css +1 -1
  140. package/dist/Text.js +1 -1
  141. package/dist/TextGroup-236jHxdT.js +23 -0
  142. package/dist/TextGroup.css +1 -1
  143. package/dist/TextGroup.js +1 -1
  144. package/dist/Toolbar-Bl9-5Mis.js +35 -0
  145. package/dist/Toolbar.css +1 -1
  146. package/dist/Toolbar.d.ts +7 -12
  147. package/dist/Toolbar.js +1 -2
  148. package/dist/cx.d.ts +1 -1
  149. package/dist/dark.css +12 -0
  150. package/dist/index.css +40 -40
  151. package/dist/index.d.ts +5 -12
  152. package/dist/index.es.d.ts +5 -12
  153. package/dist/index.es.js +109 -108
  154. package/dist/kit-manifest.json +1646 -0
  155. package/dist/lazyRoute.d.ts +12 -6
  156. package/dist/light.css +12 -0
  157. package/dist/navTree.d.ts +13 -1
  158. package/dist/rovingKeys-Di9N1Nct.js +23 -0
  159. package/dist/rovingKeys.d.ts +7 -1
  160. package/dist/stackGap.d.ts +1 -1
  161. package/dist/tokens.css +13 -0
  162. package/dist/useControllableValue-BaE0VR5d.js +13 -0
  163. package/dist/useControllableValue.d.ts +3 -0
  164. package/package.json +13 -4
  165. package/dist/ActionGroup-ChKFW0mt.js +0 -27
  166. package/dist/Avatar-loGgFt72.js +0 -113
  167. package/dist/AvatarGroup-D1gnT3Od.js +0 -81
  168. package/dist/AvatarName-0BzyfpMq.js +0 -68
  169. package/dist/Badge-jp-9iNNL.js +0 -28
  170. package/dist/Banner-B72lcEMo.js +0 -34
  171. package/dist/Block-Bu7NEA0g.js +0 -8
  172. package/dist/Block.d.ts +0 -30
  173. package/dist/Block.js +0 -4
  174. package/dist/Brand-Zq-Idks4.js +0 -34
  175. package/dist/Breadcrumb-CAM_e9LN.js +0 -98
  176. package/dist/Card-hn37Opo3.js +0 -12
  177. package/dist/ChatFrame-BW2TmCkZ.js +0 -37
  178. package/dist/ChatSplit-DNnu3TNq.js +0 -21
  179. package/dist/CodeBlock-CRzVopIv.js +0 -25
  180. package/dist/Column-BiogBDf8.js +0 -8
  181. package/dist/Column.d.ts +0 -24
  182. package/dist/Column.js +0 -4
  183. package/dist/Dropdown-DosvDR13.js +0 -147
  184. package/dist/EmptyState-mBiWtMIM.js +0 -23
  185. package/dist/Header-DZQopVNy.js +0 -21
  186. package/dist/Healthmap-B6cdiLUl.js +0 -243
  187. package/dist/ItemColumn-M7a9L8CI.js +0 -41
  188. package/dist/Layout-mi6Ghayv.js +0 -31
  189. package/dist/List-BgKkYaGO.js +0 -12
  190. package/dist/Loading-DkkG7RcE.js +0 -16
  191. package/dist/Menu-DuXQv-zT.js +0 -66
  192. package/dist/NavSections-D6rDEtT1.js +0 -142
  193. package/dist/PageHead-DgaJ1mXY.js +0 -31
  194. package/dist/PageShell-D9EZiO8o.js +0 -30
  195. package/dist/PanelInfo-A5y5ysH8.js +0 -81
  196. package/dist/Popover-DWdvZTuA.js +0 -135
  197. package/dist/PricingGroup-Czuhe81Z.js +0 -120
  198. package/dist/PricingTable-BuLC0opK.js +0 -152
  199. package/dist/RadioGroup-fcXzhvMu.js +0 -129
  200. package/dist/Row-DsQOVn18.js +0 -8
  201. package/dist/Row.d.ts +0 -24
  202. package/dist/Row.js +0 -4
  203. package/dist/Section-Crxk2J-E.js +0 -34
  204. package/dist/Sidebar-CYFaPqdC.js +0 -178
  205. package/dist/SplitPane-DR7PCZ8f.js +0 -74
  206. package/dist/Stack-XkmPSswj.js +0 -53
  207. package/dist/Stat-sKXJwz5L.js +0 -27
  208. package/dist/TabSections-DN7yVJoF.js +0 -69
  209. package/dist/Table-BoDr3X2d.js +0 -25
  210. package/dist/Text-zHK2wmsw.js +0 -25
  211. package/dist/TextGroup-DmhuyMR1.js +0 -23
  212. package/dist/Toolbar-C1zAk9ak.js +0 -42
  213. package/dist/rovingKeys-CGlfTtNQ.js +0 -15
  214. package/dist/useControllableValue-CWqH1kpM.js +0 -10
@@ -1,74 +0,0 @@
1
- import o from "react";
2
- import { c as P } from "./cx-CcykAxZN.js";
3
- import './SplitPane.css';function $(t, e, l, i) {
4
- if (e <= 0) return t;
5
- const r = l / e, c = 1 - i / e;
6
- return c < r ? 0.5 : Math.max(r, Math.min(c, t));
7
- }
8
- const B = "cFr", C = "cFx", D = "cFy", H = "cFp", X = "cFh", n = {
9
- r: B,
10
- x: C,
11
- y: D,
12
- p: H,
13
- h: X
14
- }, z = 6;
15
- function E() {
16
- if (typeof document > "u") return z;
17
- const t = getComputedStyle(document.documentElement).getPropertyValue("--split-handle-size").trim(), e = Number.parseFloat(t);
18
- return Number.isFinite(e) && e > 0 ? e : z;
19
- }
20
- function V({
21
- direction: t,
22
- ratio: e,
23
- onRatioChange: l,
24
- minFirst: i = 140,
25
- minSecond: r = 140,
26
- first: c,
27
- second: S,
28
- className: b,
29
- ...F
30
- }) {
31
- const m = o.useRef(null), R = t === "horizontal" ? "x" : "y", N = (u) => {
32
- u.preventDefault();
33
- const p = m.current;
34
- if (!p) return;
35
- const f = E(), s = p.getBoundingClientRect(), h = t === "horizontal" ? s.width - f : s.height - f, y = (a, L) => {
36
- const M = t === "horizontal" ? a - s.left : L - s.top;
37
- l($(M / h, h, i, r));
38
- };
39
- y(u.clientX, u.clientY);
40
- const x = (a) => {
41
- y(a.clientX, a.clientY);
42
- }, v = () => {
43
- document.removeEventListener("pointermove", x), document.removeEventListener("pointerup", v), document.body.style.cursor = "", document.body.style.userSelect = "";
44
- };
45
- document.body.style.cursor = t === "horizontal" ? "col-resize" : "row-resize", document.body.style.userSelect = "none", document.addEventListener("pointermove", x), document.addEventListener("pointerup", v);
46
- }, d = E(), g = `calc((100% - ${d}px) * ${e})`, w = `calc((100% - ${d}px) * ${1 - e})`;
47
- return /* @__PURE__ */ o.createElement(
48
- "div",
49
- {
50
- ref: m,
51
- className: P(n.r, R === "x" ? n.x : n.y, b),
52
- ...F
53
- },
54
- /* @__PURE__ */ o.createElement("div", { className: n.p, style: { flexBasis: g } }, c),
55
- /* @__PURE__ */ o.createElement(
56
- "button",
57
- {
58
- type: "button",
59
- className: n.h,
60
- role: "separator",
61
- "aria-orientation": t === "horizontal" ? "vertical" : "horizontal",
62
- "aria-valuenow": Math.round(e * 100),
63
- "aria-valuemin": 0,
64
- "aria-valuemax": 100,
65
- onPointerDown: N
66
- }
67
- ),
68
- /* @__PURE__ */ o.createElement("div", { className: n.p, style: { flexBasis: w } }, S)
69
- );
70
- }
71
- export {
72
- V as S,
73
- $ as c
74
- };
@@ -1,53 +0,0 @@
1
- import m from "react";
2
- import { c as f } from "./cx-CcykAxZN.js";
3
- import './Stack.css';function l(t) {
4
- if (t != null)
5
- return { gap: typeof t == "number" ? `${t}px` : t };
6
- }
7
- const i = "c1r", p = "c1c", g = "c1g", h = "c1h", v = "c1n", r = {
8
- r: i,
9
- c: p,
10
- g,
11
- h,
12
- n: v
13
- };
14
- function x(t) {
15
- if (typeof t == "number")
16
- return t <= 0 ? void 0 : `repeat(${t}, minmax(0, 1fr))`;
17
- if (t.length !== 0)
18
- return t.map((n) => typeof n == "number" ? `${n}px` : n).join(" ");
19
- }
20
- function k({
21
- direction: t = "column",
22
- columns: n,
23
- gap: c,
24
- children: o,
25
- className: a,
26
- style: s,
27
- ...u
28
- }) {
29
- const e = t === "grid" && n != null ? x(n) : void 0;
30
- return /* @__PURE__ */ m.createElement(
31
- "div",
32
- {
33
- className: f(
34
- r.r,
35
- t === "column" && r.c,
36
- t === "row" && r.h,
37
- t === "grid" && (e ? r.n : r.g),
38
- a
39
- ),
40
- style: {
41
- ...l(c),
42
- ...e ? { "--stack-columns-template": e } : null,
43
- ...s
44
- },
45
- ...u
46
- },
47
- o
48
- );
49
- }
50
- export {
51
- k as S,
52
- x as s
53
- };
@@ -1,27 +0,0 @@
1
- import a from "react";
2
- import { C as u } from "./Card-hn37Opo3.js";
3
- import { c as t } from "./cx-CcykAxZN.js";
4
- import './Stat.css';const d = "c4r", p = "c4l", i = "c4e", w = "c4v", f = "c4a", v = "c4u", C = "c4w", E = "c4d", c = {
5
- r: d,
6
- l: p,
7
- e: i,
8
- v: w,
9
- a: f,
10
- u: v,
11
- w: C,
12
- d: E
13
- };
14
- function S({
15
- label: e,
16
- value: n,
17
- tone: s = "neutral",
18
- labelMuted: r = !0,
19
- className: o,
20
- ...l
21
- }) {
22
- const m = s === "accent" ? c.a : s === "success" ? c.u : s === "warning" ? c.w : s === "danger" ? c.d : c.n;
23
- return /* @__PURE__ */ a.createElement(u, { className: t(c.r, m, o), ...l }, /* @__PURE__ */ a.createElement("span", { className: t(c.l, !r && c.e) }, e), /* @__PURE__ */ a.createElement("span", { className: c.v }, n));
24
- }
25
- export {
26
- S
27
- };
@@ -1,69 +0,0 @@
1
- import a, { useMemo as g, Suspense as k } from "react";
2
- import { c as b } from "./cx-CcykAxZN.js";
3
- import { h as y } from "./rovingKeys-CGlfTtNQ.js";
4
- import { u as x } from "./useControllableValue-CWqH1kpM.js";
5
- import './TabSections.css';const S = "ctr", h = "ctb", C = "ctn", K = "ctt", R = "cta", T = "cte", w = "cts", D = "ctm", l = {
6
- r: S,
7
- b: h,
8
- n: C,
9
- t: K,
10
- a: R,
11
- e: T,
12
- s: w,
13
- m: D
14
- };
15
- function j({
16
- items: n = [],
17
- resolveSection: m,
18
- value: d,
19
- defaultValue: s,
20
- onValueChange: v,
21
- loading: i = null,
22
- actions: r,
23
- className: p,
24
- navLabel: E = "Вкладки"
25
- }) {
26
- const f = g(() => {
27
- var e;
28
- return s || (((e = n.find((t) => !t.disabled)) == null ? void 0 : e.value) ?? "");
29
- }, [s, n]), [c, o] = x(
30
- d,
31
- f,
32
- v
33
- ), N = n.filter((e) => !e.disabled).map((e) => e.value), u = c ? m(c) : null;
34
- return /* @__PURE__ */ a.createElement("div", { className: b(l.r, p) }, /* @__PURE__ */ a.createElement("div", { className: l.b }, /* @__PURE__ */ a.createElement(
35
- "nav",
36
- {
37
- className: l.n,
38
- "aria-label": E,
39
- role: "tablist",
40
- onKeyDown: (e) => y(e, {
41
- values: N,
42
- value: c,
43
- onSelect: o
44
- })
45
- },
46
- n.map((e) => {
47
- const t = e.value === c;
48
- return /* @__PURE__ */ a.createElement(
49
- "button",
50
- {
51
- key: e.value,
52
- type: "button",
53
- role: "tab",
54
- className: b(l.t, t && l.a),
55
- "data-active": t ? "true" : void 0,
56
- "aria-selected": t,
57
- tabIndex: t ? 0 : -1,
58
- disabled: e.disabled,
59
- onClick: () => o(e.value)
60
- },
61
- /* @__PURE__ */ a.createElement("span", null, e.label),
62
- e.badge != null && e.badge !== "" ? /* @__PURE__ */ a.createElement("em", { className: l.e }, e.badge) : null
63
- );
64
- })
65
- ), r != null ? /* @__PURE__ */ a.createElement("div", { className: l.s }, r) : null), /* @__PURE__ */ a.createElement("div", { className: l.m, role: "tabpanel" }, u ? /* @__PURE__ */ a.createElement(k, { fallback: i }, a.createElement(u)) : null));
66
- }
67
- export {
68
- j as T
69
- };
@@ -1,25 +0,0 @@
1
- import e from "react";
2
- import { c as n } from "./cx-CcykAxZN.js";
3
- import './Table.css';const r = "cDw", f = "cDt", m = "cDf", t = {
4
- w: r,
5
- t: f,
6
- f: m
7
- };
8
- function w({
9
- layout: c = "auto",
10
- className: a,
11
- children: o,
12
- ...s
13
- }) {
14
- return /* @__PURE__ */ e.createElement("div", { className: t.w }, /* @__PURE__ */ e.createElement(
15
- "table",
16
- {
17
- className: n(t.t, c === "fixed" && t.f, a),
18
- ...s
19
- },
20
- o
21
- ));
22
- }
23
- export {
24
- w as T
25
- };
@@ -1,25 +0,0 @@
1
- import s from "react";
2
- import { c as a } from "./cx-CcykAxZN.js";
3
- import './Text.css';const n = "cHr", f = "cHm", t = {
4
- r: n,
5
- m: f
6
- };
7
- function i({
8
- tone: r = "default",
9
- as: c = "p",
10
- className: e,
11
- children: m,
12
- ...o
13
- }) {
14
- return /* @__PURE__ */ s.createElement(
15
- c,
16
- {
17
- className: a(t.r, r === "muted" && t.m, e),
18
- ...o
19
- },
20
- m
21
- );
22
- }
23
- export {
24
- i as T
25
- };
@@ -1,23 +0,0 @@
1
- import c from "react";
2
- import { c as m } from "./cx-CcykAxZN.js";
3
- import './TextGroup.css';const u = "c6r", p = "c6t", d = "c6d", f = "c6s", x = "c6l", s = {
4
- r: u,
5
- t: p,
6
- d,
7
- s: f,
8
- l: x
9
- };
10
- function T({
11
- title: t,
12
- description: l,
13
- size: n = "m",
14
- children: e,
15
- className: a,
16
- ...r
17
- }) {
18
- const o = n === "s" ? s.s : n === "l" ? s.l : s.m;
19
- return /* @__PURE__ */ c.createElement("div", { className: m(s.r, o, a), ...r }, t != null ? /* @__PURE__ */ c.createElement("span", { className: s.t }, t) : null, l != null ? /* @__PURE__ */ c.createElement("span", { className: s.d }, l) : null, e);
20
- }
21
- export {
22
- T
23
- };
@@ -1,42 +0,0 @@
1
- import t from "react";
2
- import { c as i } from "./cx-CcykAxZN.js";
3
- import './Toolbar.css';const m = "cCr", f = {
4
- r: m
5
- }, a = t.createContext(null);
6
- function x() {
7
- return t.useContext(a);
8
- }
9
- function s(e, n) {
10
- return t.Children.map(e, (r) => t.isValidElement(r) ? r.type === t.Fragment ? s(
11
- r.props.children,
12
- n
13
- ) : typeof r.type == "string" || r.props.size != null ? r : t.cloneElement(r, { size: n }) : r);
14
- }
15
- function C({
16
- size: e = "s",
17
- label: n = "Тулбар",
18
- align: r = "start",
19
- width: o = "l",
20
- className: l,
21
- children: p,
22
- ...u
23
- }) {
24
- return /* @__PURE__ */ t.createElement(a.Provider, { value: { size: e } }, /* @__PURE__ */ t.createElement(
25
- "div",
26
- {
27
- className: i(f.r, l),
28
- role: "toolbar",
29
- "aria-label": n,
30
- "data-size": e,
31
- "data-align": r,
32
- "data-width": o,
33
- ...u
34
- },
35
- s(p, e)
36
- ));
37
- }
38
- export {
39
- C as T,
40
- s as a,
41
- x as u
42
- };
@@ -1,15 +0,0 @@
1
- function x(r, { values: n, value: f, onSelect: i, vertical: e }) {
2
- if (n.length === 0) return;
3
- const h = e ? "ArrowUp" : "ArrowLeft", o = e ? "ArrowDown" : "ArrowRight";
4
- let t;
5
- if (r.key === "Home") t = n[0];
6
- else if (r.key === "End") t = n[n.length - 1];
7
- else if (r.key === h || r.key === o) {
8
- const g = Math.max(0, n.indexOf(f ?? "")), l = r.key === o ? 1 : -1;
9
- t = n[(g + l + n.length) % n.length];
10
- } else return;
11
- t != null && (r.preventDefault(), i(t));
12
- }
13
- export {
14
- x as h
15
- };
@@ -1,10 +0,0 @@
1
- import { useState as l } from "react";
2
- function V(r, o, t) {
3
- const [u, c] = l(o), e = r !== void 0;
4
- return [e ? r : u, (s) => {
5
- e || c(s), t == null || t(s);
6
- }];
7
- }
8
- export {
9
- V as u
10
- };