@synnaxlabs/pluto 0.44.2 → 0.44.5

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 (262) hide show
  1. package/dist/Animated-BDoJWl9g.cjs +1 -0
  2. package/dist/{Animated-D5cL3URg.js → Animated-fI-NFaha.js} +2 -2
  3. package/dist/{symbols-Lz5vQQDw.js → Editable-C1g_CFYk.js} +7836 -7781
  4. package/dist/{symbols-B15FeAg9.cjs → Editable-DUtJOqJ5.cjs} +45 -45
  5. package/dist/LinePlot-6cl8_hmn.cjs +53 -0
  6. package/dist/{provider-Bp-CLkh2.js → LinePlot-Ck0rhtFk.js} +4563 -4484
  7. package/dist/{Toggle-Dol9oHzM.js → Toggle-DEJ8Uvun.js} +1 -1
  8. package/dist/Toggle-DUKDeqpe.cjs +1 -0
  9. package/dist/{Video-Cm8ZBqid.js → Video-B6tujjr8.js} +1 -1
  10. package/dist/{Video-BidrtYj_.cjs → Video-BjRd9sFv.cjs} +1 -1
  11. package/dist/button.cjs +1 -1
  12. package/dist/button.js +1 -1
  13. package/dist/color.cjs +1 -1
  14. package/dist/color.js +1 -1
  15. package/dist/css-DI0uCCGq.cjs +8 -0
  16. package/dist/{css-Dl9aM7Jz.js → css-DvIPI3Qm.js} +1407 -1248
  17. package/dist/css.cjs +1 -1
  18. package/dist/css.js +2 -2
  19. package/dist/dialog.cjs +1 -1
  20. package/dist/dialog.js +1 -1
  21. package/dist/eraser-B03ej59l.cjs +63 -0
  22. package/dist/{eraser-CZknVTjw.js → eraser-CnRJY__h.js} +6002 -5625
  23. package/dist/ether.cjs +1 -1
  24. package/dist/ether.js +66 -63
  25. package/dist/{external-DOd9BcLC.js → external-B3dPSZUg.js} +7 -8
  26. package/dist/external-BEd3F7zY.cjs +1 -0
  27. package/dist/external-BS9S-b49.cjs +1 -0
  28. package/dist/external-BVDQNHbo.cjs +1 -0
  29. package/dist/external-BenP6Hcm.cjs +1 -0
  30. package/dist/external-Blrrgnzw.cjs +1 -0
  31. package/dist/{external-b2X_jilF.js → external-BzV_PGNe.js} +2 -2
  32. package/dist/{external-DnnHYQqD.js → external-C2iqWGd2.js} +32 -32
  33. package/dist/external-CAAPXpVr.cjs +1 -0
  34. package/dist/{external-BYJw6DJV.js → external-CKhbbig_.js} +25 -25
  35. package/dist/external-CNF5TNBY.cjs +1 -0
  36. package/dist/{external-B5RyMtMy.js → external-D16M7vHB.js} +9 -9
  37. package/dist/{external-pm79tCDD.js → external-D6hAP7eJ.js} +16 -16
  38. package/dist/external-D98a3YQJ.cjs +1 -0
  39. package/dist/external-DKh0JhWO.cjs +1 -0
  40. package/dist/external-DNO3FJLl.cjs +1 -0
  41. package/dist/{external-BJ91nMtQ.cjs → external-DOEaBrpz.cjs} +2 -2
  42. package/dist/external-DRuZ24L7.js +78 -0
  43. package/dist/{external-B_NFroo8.js → external-Daage1AI.js} +4 -4
  44. package/dist/{external-CU_XHLqP.js → external-Db9iKa8k.js} +3 -3
  45. package/dist/{external-B8qSW3N8.js → external-Dfr7xymv.js} +3 -3
  46. package/dist/external-DwRvB5ZT.cjs +1 -0
  47. package/dist/{external-CJZTgfAH.js → external-GR-20z_c.js} +10 -10
  48. package/dist/external-I_-aclFy.cjs +1 -0
  49. package/dist/{external-Ylv9Wts9.js → external-R9a28aP6.js} +55 -56
  50. package/dist/external-dew29Q0v.js +42 -0
  51. package/dist/flex.cjs +1 -1
  52. package/dist/flex.js +1 -1
  53. package/dist/{fontString-Bm52S4Lo.js → fontString-CW0wLG5g.js} +2 -2
  54. package/dist/{fontString-BptzSQcY.cjs → fontString-aK--tYMM.cjs} +1 -1
  55. package/dist/header.cjs +1 -1
  56. package/dist/header.js +1 -1
  57. package/dist/index.cjs +7 -7
  58. package/dist/index.js +10255 -10189
  59. package/dist/input.cjs +1 -1
  60. package/dist/input.js +1 -1
  61. package/dist/list.cjs +1 -1
  62. package/dist/list.js +1 -1
  63. package/dist/menu.cjs +1 -1
  64. package/dist/menu.js +1 -1
  65. package/dist/pluto.css +1 -1
  66. package/dist/src/channel/AliasInput.d.ts +3 -1
  67. package/dist/src/channel/AliasInput.d.ts.map +1 -1
  68. package/dist/src/channel/Select.d.ts.map +1 -1
  69. package/dist/src/channel/external.d.ts +0 -2
  70. package/dist/src/channel/external.d.ts.map +1 -1
  71. package/dist/src/channel/queries.d.ts +84 -6
  72. package/dist/src/channel/queries.d.ts.map +1 -1
  73. package/dist/src/dialog/Frame.d.ts.map +1 -1
  74. package/dist/src/flux/Provider.d.ts +9 -7
  75. package/dist/src/flux/Provider.d.ts.map +1 -1
  76. package/dist/src/flux/aether/external.d.ts +4 -3
  77. package/dist/src/flux/aether/external.d.ts.map +1 -1
  78. package/dist/src/flux/aether/provider.d.ts +31 -25
  79. package/dist/src/flux/aether/provider.d.ts.map +1 -1
  80. package/dist/src/flux/core/client.d.ts +21 -0
  81. package/dist/src/flux/core/client.d.ts.map +1 -0
  82. package/dist/src/flux/core/external.d.ts +4 -0
  83. package/dist/src/flux/core/external.d.ts.map +1 -0
  84. package/dist/src/flux/core/index.d.ts +2 -0
  85. package/dist/src/flux/core/index.d.ts.map +1 -0
  86. package/dist/src/flux/core/params.d.ts.map +1 -0
  87. package/dist/src/flux/core/store.d.ts +128 -0
  88. package/dist/src/flux/core/store.d.ts.map +1 -0
  89. package/dist/src/flux/core/store.spec.d.ts +2 -0
  90. package/dist/src/flux/core/store.spec.d.ts.map +1 -0
  91. package/dist/src/flux/core/streamer.d.ts +31 -0
  92. package/dist/src/flux/core/streamer.d.ts.map +1 -0
  93. package/dist/src/flux/core/streamer.spec.d.ts.map +1 -0
  94. package/dist/src/flux/external.d.ts +3 -5
  95. package/dist/src/flux/external.d.ts.map +1 -1
  96. package/dist/src/flux/form.d.ts +43 -11
  97. package/dist/src/flux/form.d.ts.map +1 -1
  98. package/dist/src/flux/list.d.ts +13 -13
  99. package/dist/src/flux/list.d.ts.map +1 -1
  100. package/dist/src/flux/result.d.ts +10 -9
  101. package/dist/src/flux/result.d.ts.map +1 -1
  102. package/dist/src/flux/retrieve.d.ts +22 -41
  103. package/dist/src/flux/retrieve.d.ts.map +1 -1
  104. package/dist/src/flux/update.d.ts +25 -7
  105. package/dist/src/flux/update.d.ts.map +1 -1
  106. package/dist/src/form/Context.d.ts +6 -2
  107. package/dist/src/form/Context.d.ts.map +1 -1
  108. package/dist/src/form/state.d.ts +4 -1
  109. package/dist/src/form/state.d.ts.map +1 -1
  110. package/dist/src/form/use.d.ts +1 -0
  111. package/dist/src/form/use.d.ts.map +1 -1
  112. package/dist/src/hardware/device/queries.d.ts +12 -4
  113. package/dist/src/hardware/device/queries.d.ts.map +1 -1
  114. package/dist/src/hardware/rack/external.d.ts +0 -3
  115. package/dist/src/hardware/rack/external.d.ts.map +1 -1
  116. package/dist/src/hardware/rack/queries.d.ts +13 -0
  117. package/dist/src/hardware/rack/queries.d.ts.map +1 -1
  118. package/dist/src/hardware/task/queries.d.ts +34 -6
  119. package/dist/src/hardware/task/queries.d.ts.map +1 -1
  120. package/dist/src/hooks/index.d.ts +1 -0
  121. package/dist/src/hooks/index.d.ts.map +1 -1
  122. package/dist/src/hooks/useDestructors.d.ts +7 -0
  123. package/dist/src/hooks/useDestructors.d.ts.map +1 -0
  124. package/dist/src/icon/registry.d.ts +1 -0
  125. package/dist/src/icon/registry.d.ts.map +1 -1
  126. package/dist/src/label/queries.d.ts +21 -19
  127. package/dist/src/label/queries.d.ts.map +1 -1
  128. package/dist/src/menu/ContextMenu.d.ts +1 -0
  129. package/dist/src/menu/ContextMenu.d.ts.map +1 -1
  130. package/dist/src/mosaic/Mosaic.d.ts +1 -1
  131. package/dist/src/mosaic/Mosaic.d.ts.map +1 -1
  132. package/dist/src/mosaic/tree.d.ts.map +1 -1
  133. package/dist/src/ontology/queries.d.ts +19 -4
  134. package/dist/src/ontology/queries.d.ts.map +1 -1
  135. package/dist/src/pluto/Pluto.d.ts +23 -2
  136. package/dist/src/pluto/Pluto.d.ts.map +1 -1
  137. package/dist/src/pluto/aether/pluto.d.ts.map +1 -1
  138. package/dist/src/ranger/aether/index.d.ts +2 -0
  139. package/dist/src/ranger/aether/index.d.ts.map +1 -0
  140. package/dist/src/ranger/aether/queries.d.ts +11 -0
  141. package/dist/src/ranger/aether/queries.d.ts.map +1 -0
  142. package/dist/src/ranger/queries.d.ts +31 -25
  143. package/dist/src/ranger/queries.d.ts.map +1 -1
  144. package/dist/src/select/Button.d.ts +3 -2
  145. package/dist/src/select/Button.d.ts.map +1 -1
  146. package/dist/src/select/use.d.ts +7 -4
  147. package/dist/src/select/use.d.ts.map +1 -1
  148. package/dist/src/showcase/TextShowcase.d.ts.map +1 -1
  149. package/dist/src/state/state.d.ts +1 -1
  150. package/dist/src/state/state.d.ts.map +1 -1
  151. package/dist/src/status/Aggregator.d.ts +3 -0
  152. package/dist/src/status/Aggregator.d.ts.map +1 -1
  153. package/dist/src/status/Summary.d.ts.map +1 -1
  154. package/dist/src/status/aether/aggregator.d.ts +2 -12
  155. package/dist/src/status/aether/aggregator.d.ts.map +1 -1
  156. package/dist/src/status/aether/errorHandler.d.ts +15 -0
  157. package/dist/src/status/aether/errorHandler.d.ts.map +1 -0
  158. package/dist/src/status/aether/errorHandler.spec.d.ts +2 -0
  159. package/dist/src/status/aether/errorHandler.spec.d.ts.map +1 -0
  160. package/dist/src/status/aether/external.d.ts +3 -0
  161. package/dist/src/status/aether/external.d.ts.map +1 -0
  162. package/dist/src/status/aether/index.d.ts +1 -1
  163. package/dist/src/status/aether/index.d.ts.map +1 -1
  164. package/dist/src/synnax/Provider.d.ts.map +1 -1
  165. package/dist/src/synnax/aether/provider.d.ts +6 -6
  166. package/dist/src/telem/aether/remote.d.ts +4 -4
  167. package/dist/src/telem/aether/transformers.d.ts +0 -2
  168. package/dist/src/telem/aether/transformers.d.ts.map +1 -1
  169. package/dist/src/telem/aether/transformers.spec.d.ts +2 -0
  170. package/dist/src/telem/aether/transformers.spec.d.ts.map +1 -0
  171. package/dist/src/testutil/Synnax.d.ts +6 -1
  172. package/dist/src/testutil/Synnax.d.ts.map +1 -1
  173. package/dist/src/text/Editable.d.ts.map +1 -1
  174. package/dist/src/text/external.d.ts +0 -1
  175. package/dist/src/text/external.d.ts.map +1 -1
  176. package/dist/src/triggers/Text.d.ts.map +1 -1
  177. package/dist/src/triggers/triggers.d.ts +3 -0
  178. package/dist/src/triggers/triggers.d.ts.map +1 -1
  179. package/dist/src/viewport/SelectMode.d.ts +10 -2
  180. package/dist/src/viewport/SelectMode.d.ts.map +1 -1
  181. package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
  182. package/dist/src/vis/legend/Simple.d.ts.map +1 -1
  183. package/dist/src/vis/line/aether/line.d.ts +0 -1
  184. package/dist/src/vis/line/aether/line.d.ts.map +1 -1
  185. package/dist/src/vis/lineplot/Legend.d.ts.map +1 -1
  186. package/dist/src/vis/lineplot/aether/XAxis.d.ts +2 -2
  187. package/dist/src/vis/lineplot/aether/YAxis.d.ts +2 -2
  188. package/dist/src/vis/lineplot/aether/axis.d.ts +2 -2
  189. package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
  190. package/dist/src/vis/lineplot/range/aether/provider.d.ts +6 -18
  191. package/dist/src/vis/lineplot/range/aether/provider.d.ts.map +1 -1
  192. package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
  193. package/dist/src/vis/value/TelemForm.d.ts.map +1 -1
  194. package/dist/src/workspace/queries.d.ts +8 -0
  195. package/dist/src/workspace/queries.d.ts.map +1 -1
  196. package/dist/tabs.cjs +1 -1
  197. package/dist/tabs.js +1 -1
  198. package/dist/text.cjs +1 -1
  199. package/dist/text.js +2 -2
  200. package/dist/theming.cjs +1 -1
  201. package/dist/theming.js +2 -2
  202. package/dist/tree.cjs +1 -1
  203. package/dist/tree.js +1 -1
  204. package/dist/triggers.cjs +1 -1
  205. package/dist/triggers.js +1 -1
  206. package/dist/{units-HcS_zslH.js → units-Dh7MflIZ.js} +3 -3
  207. package/dist/units-WWUmv-rf.cjs +1 -0
  208. package/dist/video.cjs +1 -1
  209. package/dist/video.js +1 -1
  210. package/package.json +6 -6
  211. package/dist/Animated-DnsZ5vvU.cjs +0 -1
  212. package/dist/Menu-C-MABQ1r.js +0 -61
  213. package/dist/Menu-vR5-lqo4.cjs +0 -1
  214. package/dist/Toggle-Ckdi4fKV.cjs +0 -1
  215. package/dist/css-9yccD6t_.cjs +0 -8
  216. package/dist/eraser-CLWNvWDn.cjs +0 -63
  217. package/dist/external-BGCkpetp.cjs +0 -1
  218. package/dist/external-CS6l_QN4.cjs +0 -1
  219. package/dist/external-CVNscTLA.js +0 -42
  220. package/dist/external-CY2bvy20.cjs +0 -1
  221. package/dist/external-CkvXTCCL.cjs +0 -1
  222. package/dist/external-ClD4VLgc.cjs +0 -1
  223. package/dist/external-CtooTI5M.cjs +0 -1
  224. package/dist/external-DFsKdN71.cjs +0 -1
  225. package/dist/external-DNHOS3w0.cjs +0 -1
  226. package/dist/external-DPqPAgoV.cjs +0 -1
  227. package/dist/external-DXY1bIut.cjs +0 -1
  228. package/dist/external-DZqxSCvz.cjs +0 -1
  229. package/dist/external-_eEnQPcq.cjs +0 -1
  230. package/dist/external-xfHaehZH.js +0 -75
  231. package/dist/provider-DBSsDoFS.cjs +0 -53
  232. package/dist/src/channel/AliasContext.d.ts +0 -19
  233. package/dist/src/channel/AliasContext.d.ts.map +0 -1
  234. package/dist/src/channel/AliasProvider.d.ts +0 -6
  235. package/dist/src/channel/AliasProvider.d.ts.map +0 -1
  236. package/dist/src/flux/Context.d.ts +0 -4
  237. package/dist/src/flux/Context.d.ts.map +0 -1
  238. package/dist/src/flux/aether/listeners.d.ts +0 -16
  239. package/dist/src/flux/aether/listeners.d.ts.map +0 -1
  240. package/dist/src/flux/aether/params.d.ts.map +0 -1
  241. package/dist/src/flux/aether/streamer.d.ts +0 -22
  242. package/dist/src/flux/aether/streamer.d.ts.map +0 -1
  243. package/dist/src/flux/aether/streamer.spec.d.ts.map +0 -1
  244. package/dist/src/flux/aether/types.d.ts +0 -13
  245. package/dist/src/flux/aether/types.d.ts.map +0 -1
  246. package/dist/src/flux/listeners.d.ts +0 -4
  247. package/dist/src/flux/listeners.d.ts.map +0 -1
  248. package/dist/src/flux/listeners.spec.d.ts +0 -2
  249. package/dist/src/flux/listeners.spec.d.ts.map +0 -1
  250. package/dist/src/flux/useMountListeners.d.ts +0 -7
  251. package/dist/src/flux/useMountListeners.d.ts.map +0 -1
  252. package/dist/src/hardware/rack/synchronizers.d.ts +0 -3
  253. package/dist/src/hardware/rack/synchronizers.d.ts.map +0 -1
  254. package/dist/src/hardware/rack/use.d.ts +0 -3
  255. package/dist/src/hardware/rack/use.d.ts.map +0 -1
  256. package/dist/src/hardware/rack/useStatus.d.ts +0 -3
  257. package/dist/src/hardware/rack/useStatus.d.ts.map +0 -1
  258. package/dist/src/text/symbols.d.ts +0 -3
  259. package/dist/src/text/symbols.d.ts.map +0 -1
  260. package/dist/units-BGkvnLO-.cjs +0 -1
  261. /package/dist/src/flux/{aether → core}/params.d.ts +0 -0
  262. /package/dist/src/flux/{aether → core}/streamer.spec.d.ts +0 -0
@@ -0,0 +1,78 @@
1
+ import { I as E, T as _, K as d, L as R, N as S, O as p, Q as x, R as b, U as K, V as y, W as T, X as U, Y as L, Z as O, _ as C, $ as H, a0 as h, a1 as j, a2 as v, a3 as N, a4 as Z, a5 as k, a6 as A, a7 as I, a8 as Y, a9 as w, aa as P, ab as B, ac as F, ad as $, ae as z, af as G } from "./Editable-C1g_CFYk.js";
2
+ import { j as Q } from "./jsx-runtime-C5mzlN2N.js";
3
+ import { useState as V, useEffect as W, useRef as m, useCallback as f } from "react";
4
+ import { K as i, H as l } from "./css-DvIPI3Qm.js";
5
+ import "./eraser-CnRJY__h.js";
6
+ const X = (e) => {
7
+ const { listen: o } = E(), [c, n] = V([]);
8
+ return W(
9
+ () => o(({ next: [s] }) => n(s ?? [])),
10
+ [o, n]
11
+ ), /* @__PURE__ */ Q.jsx(_, { ...e, children: c.join(" ") });
12
+ }, q = ({
13
+ onDrag: e,
14
+ triggers: o = [["MouseLeft"], ["MouseRight"]],
15
+ bound: c,
16
+ loose: n = !1
17
+ }) => {
18
+ const s = m(null), u = m(i.ZERO), g = f(
19
+ (t) => {
20
+ const r = i.construct(t);
21
+ if (s.current === null) return;
22
+ const { triggers: a } = s.current;
23
+ e({
24
+ box: l.construct(u.current, r),
25
+ cursor: r,
26
+ triggers: a,
27
+ stage: "during"
28
+ });
29
+ },
30
+ [e]
31
+ ), M = f(
32
+ (t) => {
33
+ const { stage: r, cursor: a } = t;
34
+ r === "start" ? (e({ box: l.construct(a), ...t }), window.addEventListener("mousemove", g), s.current = t, u.current = a) : r === "end" && s.current != null && (e({ box: l.construct(u.current, a), ...t }), window.removeEventListener("mousemove", g), s.current = null, u.current = i.ZERO);
35
+ },
36
+ [e]
37
+ );
38
+ d({ triggers: o, callback: M, region: c, loose: n });
39
+ }, re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
40
+ __proto__: null,
41
+ ALPHANUMERIC_KEYS: R,
42
+ ALPHANUMERIC_KEYS_SET: S,
43
+ KEYS: p,
44
+ MOUSE_KEYS: x,
45
+ MOUSE_LEFT_NUMBER: b,
46
+ MOUSE_MIDDLE_NUMBER: K,
47
+ MOUSE_RIGHT_NUMBER: y,
48
+ Provider: T,
49
+ Status: X,
50
+ Text: U,
51
+ compareModeConfigs: L,
52
+ determineMode: O,
53
+ diff: C,
54
+ eventKey: H,
55
+ filter: h,
56
+ flattenConfig: j,
57
+ isAlphanumericKey: v,
58
+ keyZ: N,
59
+ keyboardKey: Z,
60
+ match: k,
61
+ matchCallback: A,
62
+ mouseKey: I,
63
+ mouseKeyZ: Y,
64
+ purge: w,
65
+ purgeMouse: P,
66
+ toSymbols: B,
67
+ triggerZ: F,
68
+ use: d,
69
+ useContext: E,
70
+ useDrag: q,
71
+ useFlattenedMemoConfig: $,
72
+ useHeld: z,
73
+ useHeldRef: G
74
+ }, Symbol.toStringTag, { value: "Module" }));
75
+ export {
76
+ re as e,
77
+ q as u
78
+ };
@@ -1,10 +1,10 @@
1
- import { n as u, o as c, q as p, r as j, A as m, s as i, J as d, v as S, w as f, x as g, y as h } from "./symbols-Lz5vQQDw.js";
1
+ import { r as u, s as c, v as p, w as j, A as m, x as i, J as d, y as S, z as f, G as g, H as h } from "./Editable-C1g_CFYk.js";
2
2
  import { j as e } from "./jsx-runtime-C5mzlN2N.js";
3
- import "./css-Dl9aM7Jz.js";
4
- import { T as y } from "./Toggle-Dol9oHzM.js";
3
+ import "./css-DvIPI3Qm.js";
4
+ import { T as y } from "./Toggle-DEJ8Uvun.js";
5
5
  import "react";
6
6
  import { u as T } from "./useKeysData-B1kiZOOw.js";
7
- import "./eraser-CZknVTjw.js";
7
+ import "./eraser-CnRJY__h.js";
8
8
  import "react-dom";
9
9
  const v = ({
10
10
  keys: t,
@@ -1,8 +1,8 @@
1
1
  import { j as X } from "./jsx-runtime-C5mzlN2N.js";
2
- import { K as xt, H as Fe, i as te, C as J, e as Dc, a as th, $ as nh, R as ah } from "./css-Dl9aM7Jz.js";
2
+ import { K as xt, H as Fe, c as te, C as J, r as Dc, b as th, k as nh, R as ah } from "./css-DvIPI3Qm.js";
3
3
  import f, { useCallback as Se, isValidElement as ih, PureComponent as jr, Component as Fr, createContext as oh, use as sh, useMemo as Bc, useRef as Mo } from "react";
4
- import { a1 as uh, c as lh, cY as ch, cU as Io, cW as fh, B as $c, du as Ur, dk as nt, an as Lc, o as qr, T as Hc, b4 as hh, F as ph, l as dh, am as gh, G as vh, E as bh } from "./symbols-Lz5vQQDw.js";
5
- import { M as yh, x as mh } from "./eraser-CZknVTjw.js";
4
+ import { a7 as uh, b as lh, d4 as ch, d0 as Io, d2 as fh, B as $c, dE as Ur, du as nt, at as Lc, s as qr, T as Hc, bb as hh, F as ph, o as dh, as as gh, K as vh, E as bh } from "./Editable-C1g_CFYk.js";
5
+ import { I as yh, x as mh } from "./eraser-CnRJY__h.js";
6
6
  import { z as de } from "zod";
7
7
  import "react-dom";
8
8
  const xh = (r, e, t) => Se(yh(r, e), [e, ...t]), _h = ({
@@ -1,6 +1,6 @@
1
- import { S as r, e as a, f as i, t as n } from "./eraser-CZknVTjw.js";
2
- import { u as o, P as S, b as p, t as u, c as m, d as b } from "./symbols-Lz5vQQDw.js";
3
- import { f as c } from "./fontString-Bm52S4Lo.js";
1
+ import { S as r, e as a, f as i, t as n } from "./eraser-CnRJY__h.js";
2
+ import { u as o, P as S, S as p, t as u, b as m, c as b } from "./Editable-C1g_CFYk.js";
3
+ import { f as c } from "./fontString-CW0wLG5g.js";
4
4
  const f = (t) => {
5
5
  const { theme: e } = o(), s = e.typography[t];
6
6
  return {
@@ -0,0 +1 @@
1
+ "use strict";const r=require("./eraser-B03ej59l.cjs"),e=require("./Editable-DUtJOqJ5.cjs"),n=require("./fontString-aK--tYMM.cjs"),i=o=>{const{theme:t}=e.useContext(),s=t.typography[o];return{...s,toString:()=>n.fontString(t,{level:o}),baseSize:t.sizes.base,lineHeightPx:s.lineHeight*t.sizes.base,sizePx:s.size*t.sizes.base}},S=Object.freeze(Object.defineProperty({__proto__:null,Provider:e.Provider,SYNNAX_DARK:r.SYNNAX_DARK,SYNNAX_LIGHT:r.SYNNAX_LIGHT,SYNNAX_THEMES:r.SYNNAX_THEMES,Switch:e.Switch,themeZ:r.themeZ,toCSSVars:e.toCSSVars,use:e.use,useContext:e.useContext,useProvider:e.useProvider,useTypography:i},Symbol.toStringTag,{value:"Module"}));exports.external=S;exports.useTypography=i;
@@ -1,8 +1,8 @@
1
- import { c as T, C as i } from "./css-Dl9aM7Jz.js";
2
- import { g as A, x as F } from "./eraser-CZknVTjw.js";
1
+ import { a as T, C as i } from "./css-DvIPI3Qm.js";
2
+ import { g as A, x as F } from "./eraser-CnRJY__h.js";
3
3
  import { j as p } from "./jsx-runtime-C5mzlN2N.js";
4
- import { A as G } from "./Animated-D5cL3URg.js";
5
- import { ak as z, al as K, am as U, an as L, a9 as Y, n as J, ae as Q } from "./symbols-Lz5vQQDw.js";
4
+ import { A as G } from "./Animated-fI-NFaha.js";
5
+ import { aq as z, ar as K, as as U, at as L, af as Y, r as J, ak as Q } from "./Editable-C1g_CFYk.js";
6
6
  import { useMemo as V, useCallback as _ } from "react";
7
7
  import "react-dom";
8
8
  const D = (e, n) => n.includes(e.key), v = ({
@@ -139,10 +139,10 @@ const D = (e, n) => n.includes(e.key), v = ({
139
139
  }, $ = (e) => e.map((n) => ({
140
140
  ...n,
141
141
  children: n.children != null ? $(n.children) : void 0
142
- })), B = (...e) => {
142
+ })), q = (...e) => {
143
143
  const n = [];
144
144
  return e.forEach((t) => {
145
- n.push(t), t.children != null && n.push(...B(...t.children));
145
+ n.push(t), t.children != null && n.push(...q(...t.children));
146
146
  }), n;
147
147
  }, ee = (e, n) => {
148
148
  const t = { keys: [], nodes: [] };
@@ -155,7 +155,7 @@ const D = (e, n) => n.includes(e.key), v = ({
155
155
  }, te = (e, n) => {
156
156
  const t = n.keys.findIndex((s) => s === e);
157
157
  return n.nodes[t].depth;
158
- }, q = (e, n) => {
158
+ }, B = (e, n) => {
159
159
  const t = e.keys.findIndex((s) => s === n);
160
160
  return e.nodes[t];
161
161
  }, re = ({
@@ -221,7 +221,7 @@ const D = (e, n) => n.includes(e.key), v = ({
221
221
  ), C = L(n), I = L(S), k = Y({ triggers: oe }), w = _(
222
222
  (u, { clicked: d }) => {
223
223
  if (N((h) => u.length === 0 && h.length > 0 ? h.slice(0, 1) : u), d == null || k.current.held) return;
224
- const y = q(I.current, d);
224
+ const y = B(I.current, d);
225
225
  if (y == null || !y.hasChildren) return;
226
226
  const j = f.current, M = j.some((h) => h === d) ? "contract" : "expand";
227
227
  let g;
@@ -304,8 +304,8 @@ const D = (e, n) => n.includes(e.key), v = ({
304
304
  flatten: v,
305
305
  getAllNodesOfMinDepth: ne,
306
306
  getDepth: te,
307
- getDescendants: B,
308
- getNodeShape: q,
307
+ getDescendants: q,
308
+ getNodeShape: B,
309
309
  moveNode: W,
310
310
  removeNode: H,
311
311
  setNode: O,
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./Editable-DUtJOqJ5.cjs"),i=require("./jsx-runtime-CITbqOLs.cjs"),b=require("./Animated-BDoJWl9g.cjs"),r=require("./css-DI0uCCGq.cjs"),s=({onClick:l,className:a,hideCaret:t=!1,children:u,variant:n,...c})=>{const{toggle:x,visible:g,variant:d}=e.useContext$2();let o;return n==="preview"&&(t=!0),d!=="modal"&&!t&&(o=i.jsxRuntimeExports.jsx(b.Animated,{enabled:g,enabledLoc:"bottom",disabledLoc:"left"})),i.jsxRuntimeExports.jsxs(e.Button,{className:r.CSS(r.CSS.BE("dialog","trigger"),a),onClick:m=>{l?.(m),x()},full:"x",variant:n,...c,children:[u,o]})},f=Object.freeze(Object.defineProperty({__proto__:null,Dialog:e.Dialog,Frame:e.Frame,Trigger:s,positionDialog:e.positionDialog,useContext:e.useContext$2,useInternalContext:e.useInternalContext},Symbol.toStringTag,{value:"Module"}));exports.Trigger=s;exports.external=f;
@@ -1,13 +1,12 @@
1
- import { j as o } from "./jsx-runtime-C5mzlN2N.js";
2
- import { C as r, H as w, K as X, a as q, g as G } from "./css-Dl9aM7Jz.js";
3
- import { createContext as $, use as z, useState as I, useCallback as C } from "react";
4
- import { j as J, h as Q, o as T, B as k, ao as U, g as W, f as Y, ap as K, T as ee, E as te, aq as ne, ar as oe, al as se, an as le } from "./symbols-Lz5vQQDw.js";
5
- import { C as M, y as re } from "./eraser-CZknVTjw.js";
1
+ import { j as s } from "./jsx-runtime-C5mzlN2N.js";
2
+ import { C as r, H as w, K as X, b as G, g as $ } from "./css-DvIPI3Qm.js";
3
+ import { createContext as q, use as z, useState as I, useCallback as C } from "react";
4
+ import { m as J, j as Q, s as T, B as k, au as U, h as W, g as Y, av as K, T as ee, E as te, aw as ne, ax as se, ar as oe, at as le } from "./Editable-C1g_CFYk.js";
5
+ import { C as M, y as re } from "./eraser-CnRJY__h.js";
6
6
  import "react-dom";
7
- import "./Menu-C-MABQ1r.js";
8
7
  import { z as g } from "zod";
9
- const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
10
- className: s,
8
+ const V = q({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
9
+ className: o,
11
10
  altColor: t = !1,
12
11
  size: e = "medium",
13
12
  direction: l = "x",
@@ -27,8 +26,8 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
27
26
  onRename: m,
28
27
  onCreate: v
29
28
  } = L(), j = J(), [O, f] = I(!1);
30
- return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
31
- n != null && /* @__PURE__ */ o.jsx(
29
+ return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
30
+ n != null && /* @__PURE__ */ s.jsx(
32
31
  Q,
33
32
  {
34
33
  style: { height: "fit-content" },
@@ -36,12 +35,12 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
36
35
  menu: n
37
36
  }
38
37
  ),
39
- /* @__PURE__ */ o.jsxs(
38
+ /* @__PURE__ */ s.jsxs(
40
39
  T,
41
40
  {
42
41
  className: r(
43
42
  r.B(_),
44
- s,
43
+ o,
45
44
  j.className,
46
45
  O && r.M("drag-over")
47
46
  ),
@@ -54,8 +53,8 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
54
53
  onDrop: E,
55
54
  ...c,
56
55
  children: [
57
- /* @__PURE__ */ o.jsxs(T, { direction: l, className: r.BE(_, "tabs"), empty: !0, children: [
58
- u.map((d) => /* @__PURE__ */ o.jsx(
56
+ /* @__PURE__ */ s.jsxs(T, { direction: l, className: r.BE(_, "tabs"), empty: !0, children: [
57
+ u.map((d) => /* @__PURE__ */ s.jsx(
59
58
  ue,
60
59
  {
61
60
  selected: p,
@@ -71,7 +70,7 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
71
70
  },
72
71
  d.tabKey
73
72
  )),
74
- E != null && /* @__PURE__ */ o.jsx(
73
+ E != null && /* @__PURE__ */ s.jsx(
75
74
  T,
76
75
  {
77
76
  onDragOver: () => f(!0),
@@ -82,7 +81,7 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
82
81
  }
83
82
  )
84
83
  ] }),
85
- v != null && /* @__PURE__ */ o.jsx(T, { className: r.BE(_, "actions"), children: /* @__PURE__ */ o.jsx(
84
+ v != null && /* @__PURE__ */ s.jsx(T, { className: r.BE(_, "actions"), children: /* @__PURE__ */ s.jsx(
86
85
  k,
87
86
  {
88
87
  size: e,
@@ -90,25 +89,25 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
90
89
  onClick: v,
91
90
  tooltip: a,
92
91
  variant: "text",
93
- children: /* @__PURE__ */ o.jsx(U, {})
92
+ children: /* @__PURE__ */ s.jsx(U, {})
94
93
  }
95
94
  ) })
96
95
  ]
97
96
  }
98
97
  )
99
98
  ] });
100
- }, ae = ({ unsavedChanges: s, ...t }) => {
101
- const e = /* @__PURE__ */ o.jsx(ne, { ...t });
102
- return s ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
103
- /* @__PURE__ */ o.jsx(oe, {}),
99
+ }, ae = ({ unsavedChanges: o, ...t }) => {
100
+ const e = /* @__PURE__ */ s.jsx(ne, { ...t });
101
+ return o ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
102
+ /* @__PURE__ */ s.jsx(se, {}),
104
103
  e
105
104
  ] }) : e;
106
- }, ce = (s) => {
105
+ }, ce = (o) => {
107
106
  const t = w.construct(
108
- s.target.closest(".pluto-tabs-selector__btn")
109
- ), e = X.construct(s);
110
- return q.Scale.scale(w.left(t), w.right(t)).scale(0, 1).pos(e.x) < 0.5 ? "left" : "right";
111
- }, ie = ({ loading: s, icon: t, level: e = "p" }) => (s && (t = /* @__PURE__ */ o.jsx(se, {})), K(t, {
107
+ o.target.closest(".pluto-tabs-selector__btn")
108
+ ), e = X.construct(o);
109
+ return G.Scale.scale(w.left(t), w.right(t)).scale(0, 1).pos(e.x) < 0.5 ? "left" : "right";
110
+ }, ie = ({ loading: o, icon: t, level: e = "p" }) => (o && (t = /* @__PURE__ */ s.jsx(oe, {})), K(t, {
112
111
  className: r.BE(_, "icon"),
113
112
  style: {
114
113
  color: r.colorVar(9),
@@ -116,7 +115,7 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
116
115
  width: r.levelSizeVar(e)
117
116
  }
118
117
  })), ue = ({
119
- selected: s,
118
+ selected: o,
120
119
  altColor: t = !1,
121
120
  onSelect: e,
122
121
  onClose: l,
@@ -154,8 +153,8 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
154
153
  m?.(i), x(null);
155
154
  },
156
155
  [m, x]
157
- ), y = s === n, H = M[h];
158
- return /* @__PURE__ */ o.jsxs(
156
+ ), y = o === n, H = M[h];
157
+ return /* @__PURE__ */ s.jsxs(
159
158
  k,
160
159
  {
161
160
  el: "div",
@@ -190,8 +189,8 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
190
189
  bordered: !1,
191
190
  rounded: !1,
192
191
  children: [
193
- /* @__PURE__ */ o.jsx(ie, { loading: E, icon: D, level: H }),
194
- /* @__PURE__ */ o.jsx(
192
+ /* @__PURE__ */ s.jsx(ie, { loading: E, icon: D, level: H }),
193
+ /* @__PURE__ */ s.jsx(
195
194
  de,
196
195
  {
197
196
  name: a,
@@ -201,7 +200,7 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
201
200
  level: M[h]
202
201
  }
203
202
  ),
204
- b && l != null && /* @__PURE__ */ o.jsx(
203
+ b && l != null && /* @__PURE__ */ s.jsx(
205
204
  k,
206
205
  {
207
206
  "aria-label": "pluto-tabs__close",
@@ -209,42 +208,42 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
209
208
  className: r.E("close"),
210
209
  variant: "text",
211
210
  sharp: !0,
212
- children: /* @__PURE__ */ o.jsx(ae, { unsavedChanges: N })
211
+ children: /* @__PURE__ */ s.jsx(ae, { unsavedChanges: N })
213
212
  }
214
213
  )
215
214
  ]
216
215
  }
217
216
  );
218
217
  }, de = ({
219
- onRename: s,
218
+ onRename: o,
220
219
  name: t,
221
220
  tabKey: e,
222
221
  editable: l = !0,
223
222
  level: n
224
- }) => s == null || !l ? /* @__PURE__ */ o.jsx(ee, { overflow: "ellipsis", level: n, children: t }) : /* @__PURE__ */ o.jsx(
223
+ }) => o == null || !l ? /* @__PURE__ */ s.jsx(ee, { overflow: "ellipsis", level: n, children: t }) : /* @__PURE__ */ s.jsx(
225
224
  te,
226
225
  {
227
226
  level: n,
228
227
  id: r.B(`tab-${e}`),
229
- onChange: (a) => s?.(e, a),
228
+ onChange: (a) => o?.(e, a),
230
229
  value: t,
231
230
  overflow: "ellipsis"
232
231
  }
233
- ), ge = (s = "", t = []) => {
232
+ ), ge = (o = "", t = []) => {
234
233
  if (t.length !== 0)
235
- return t.find((e) => e.tabKey === s) != null ? s : t[t.length - 1]?.tabKey;
236
- }, pe = (s, t, e) => {
234
+ return t.find((e) => e.tabKey === o) != null ? o : t[t.length - 1]?.tabKey;
235
+ }, pe = (o, t, e) => {
237
236
  if (t = t.trim(), t.length === 0) return e;
238
- const l = e.find((n) => n.tabKey === s);
239
- return l == null || l.name === t ? e : e.map((n) => n.tabKey === s ? { ...n, name: t } : n);
237
+ const l = e.find((n) => n.tabKey === o);
238
+ return l == null || l.name === t ? e : e.map((n) => n.tabKey === o ? { ...n, name: t } : n);
240
239
  }, fe = ({
241
- tabs: s,
240
+ tabs: o,
242
241
  content: t,
243
242
  selected: e,
244
243
  onSelect: l
245
244
  }) => {
246
245
  const [n, a] = re({
247
- initial: e ?? s[0]?.tabKey ?? "",
246
+ initial: e ?? o[0]?.tabKey ?? "",
248
247
  value: e,
249
248
  onChange: l
250
249
  }), c = le(e ?? n), u = C(
@@ -254,13 +253,13 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
254
253
  [n, l]
255
254
  );
256
255
  return {
257
- tabs: s,
256
+ tabs: o,
258
257
  selected: n,
259
258
  content: t,
260
259
  onSelect: u
261
260
  };
262
261
  }, xe = ({
263
- id: s,
262
+ id: o,
264
263
  content: t,
265
264
  children: e,
266
265
  onSelect: l,
@@ -284,10 +283,10 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
284
283
  x,
285
284
  y: B,
286
285
  ...P
287
- }) => /* @__PURE__ */ o.jsx(
286
+ }) => /* @__PURE__ */ s.jsx(
288
287
  T,
289
288
  {
290
- id: s,
289
+ id: o,
291
290
  empty: !0,
292
291
  className: r(r.B("tabs"), E),
293
292
  direction: d,
@@ -296,7 +295,7 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
296
295
  onDragOver: m,
297
296
  onDrop: v,
298
297
  ...P,
299
- children: /* @__PURE__ */ o.jsxs(
298
+ children: /* @__PURE__ */ s.jsxs(
300
299
  R,
301
300
  {
302
301
  value: {
@@ -314,26 +313,26 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
314
313
  onDrop: v
315
314
  },
316
315
  children: [
317
- /* @__PURE__ */ o.jsx(
316
+ /* @__PURE__ */ s.jsx(
318
317
  Z,
319
318
  {
320
319
  size: f,
321
- direction: G.swap(d),
320
+ direction: $.swap(d),
322
321
  altColor: a,
323
322
  contextMenu: j,
324
323
  addTooltip: O
325
324
  }
326
325
  ),
327
- /* @__PURE__ */ o.jsx(A, {})
326
+ /* @__PURE__ */ s.jsx(A, {})
328
327
  ]
329
328
  }
330
329
  )
331
330
  }
332
331
  ), A = () => {
333
- const { tabs: s, selected: t, content: e, emptyContent: l, onSelect: n } = L();
332
+ const { tabs: o, selected: t, content: e, emptyContent: l, onSelect: n } = L();
334
333
  let a = null;
335
- const c = s.find((u) => u.tabKey === t);
336
- return t == null || c == null ? a = l ?? null : e != null ? typeof e == "function" ? a = e(c) : a = e : c.content != null && (a = c.content), /* @__PURE__ */ o.jsx(
334
+ const c = o.find((u) => u.tabKey === t);
335
+ return t == null || c == null ? a = l ?? null : e != null ? typeof e == "function" ? a = e(c) : a = e : c.content != null && (a = c.content), /* @__PURE__ */ s.jsx(
337
336
  "div",
338
337
  {
339
338
  className: r.B("tabs-content"),
@@ -352,7 +351,7 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
352
351
  loading: g.boolean().optional()
353
352
  }), he = F.extend({
354
353
  content: g.unknown().optional()
355
- }), Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
354
+ }), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
356
355
  __proto__: null,
357
356
  Content: A,
358
357
  Provider: R,
@@ -368,7 +367,7 @@ const V = $({ tabs: [] }), R = V, L = () => z(V), _ = "tabs-selector", Z = ({
368
367
  export {
369
368
  xe as T,
370
369
  pe as a,
371
- Ne as e,
370
+ De as e,
372
371
  ge as r,
373
372
  he as t,
374
373
  fe as u
@@ -0,0 +1,42 @@
1
+ import { d as o, B as T, f as d, g as E, h as _, j as f, k as S, l as j, m as k } from "./Editable-C1g_CFYk.js";
2
+ import { j as O } from "./jsx-runtime-C5mzlN2N.js";
3
+ import { C as e } from "./css-DvIPI3Qm.js";
4
+ const g = ({
5
+ itemKey: t,
6
+ className: s,
7
+ onClick: n,
8
+ size: a,
9
+ ...r
10
+ }) => {
11
+ const { onClick: l, selected: c, level: C = "p", gap: i, background: u } = o(), m = (x) => {
12
+ l(t), n?.(x);
13
+ }, p = c === t;
14
+ return /* @__PURE__ */ O.jsx(
15
+ T,
16
+ {
17
+ contrast: u,
18
+ level: C,
19
+ overflow: "nowrap",
20
+ onClick: m,
21
+ variant: "text",
22
+ className: e(e.B("menu-item"), e.selected(p), s),
23
+ size: a,
24
+ gap: i,
25
+ ...r
26
+ }
27
+ );
28
+ }, b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
29
+ __proto__: null,
30
+ CONTEXT_MENU_CLASS: d,
31
+ CONTEXT_SELECTED: E,
32
+ CONTEXT_TARGET: _,
33
+ ContextMenu: f,
34
+ Divider: S,
35
+ Item: g,
36
+ Menu: j,
37
+ useContext: o,
38
+ useContextMenu: k
39
+ }, Symbol.toStringTag, { value: "Module" }));
40
+ export {
41
+ b as e
42
+ };
package/dist/flex.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-BGCkpetp.cjs");exports.Flex=e.external;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-DNO3FJLl.cjs");exports.Flex=e.external;
package/dist/flex.js CHANGED
@@ -1,4 +1,4 @@
1
- import { e as r } from "./external-B_NFroo8.js";
1
+ import { e as r } from "./external-Daage1AI.js";
2
2
  export {
3
3
  r as Flex
4
4
  };
@@ -1,5 +1,5 @@
1
- import { i as g, C as y } from "./eraser-CZknVTjw.js";
2
- import "./css-Dl9aM7Jz.js";
1
+ import { i as g, C as y } from "./eraser-CnRJY__h.js";
2
+ import "./css-DvIPI3Qm.js";
3
3
  const r = [
4
4
  { weight: 200, style: "light", value: "Inter 200, sans-serif" },
5
5
  { weight: 300, value: "Inter Threee, sans-serif" },
@@ -1 +1 @@
1
- "use strict";const u=require("./eraser-CLWNvWDn.cjs");require("./css-9yccD6t_.cjs");const i=[{weight:200,style:"light",value:"Inter 200, sans-serif"},{weight:300,value:"Inter Threee, sans-serif"},{weight:400,value:"Inter Four, sans-serif"},{weight:500,value:"Inter Five, sans-serif"},{weight:600,value:"Inter Six, sans-serif"},{weight:700,value:"Inter Seven, sans-serif"},{weight:800,value:"Inter Eight, sans-serif"},{weight:900,style:"bold",value:"Inter Nine, sans-serif"}],y=s=>i.find((t,e)=>e===i.length-1?!0:typeof s=="number"?s>=t.weight&&s<i[e+1].weight:t.style===s),I=(s,{level:t,weight:e,code:l})=>{const{typography:n,sizes:{base:o}}=s;let r=n.family;if(l)r=n.codeFamily;else if(e!=null){const f=y(e);f!=null?r=f.value:r="Inter Light, sans-serif"}const h=n[u.isSize(t)?u.COMPONENT_SIZE_LEVELS[t]:t].size,a=(o*h).toFixed(1),[c,g]=r.split(", ");return e!=null?` ${e} ${a}px ${c}, ${g}`:` ${a}px ${r}`};exports.fontString=I;
1
+ "use strict";const u=require("./eraser-B03ej59l.cjs");require("./css-DI0uCCGq.cjs");const i=[{weight:200,style:"light",value:"Inter 200, sans-serif"},{weight:300,value:"Inter Threee, sans-serif"},{weight:400,value:"Inter Four, sans-serif"},{weight:500,value:"Inter Five, sans-serif"},{weight:600,value:"Inter Six, sans-serif"},{weight:700,value:"Inter Seven, sans-serif"},{weight:800,value:"Inter Eight, sans-serif"},{weight:900,style:"bold",value:"Inter Nine, sans-serif"}],y=s=>i.find((t,e)=>e===i.length-1?!0:typeof s=="number"?s>=t.weight&&s<i[e+1].weight:t.style===s),I=(s,{level:t,weight:e,code:l})=>{const{typography:n,sizes:{base:o}}=s;let r=n.family;if(l)r=n.codeFamily;else if(e!=null){const f=y(e);f!=null?r=f.value:r="Inter Light, sans-serif"}const h=n[u.isSize(t)?u.COMPONENT_SIZE_LEVELS[t]:t].size,a=(o*h).toFixed(1),[c,g]=r.split(", ");return e!=null?` ${e} ${a}px ${c}, ${g}`:` ${a}px ${r}`};exports.fontString=I;
package/dist/header.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-_eEnQPcq.cjs");exports.Header=e.external;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-DKh0JhWO.cjs");exports.Header=e.external;
package/dist/header.js CHANGED
@@ -1,4 +1,4 @@
1
- import { e as a } from "./external-pm79tCDD.js";
1
+ import { e as a } from "./external-D6hAP7eJ.js";
2
2
  export {
3
3
  a as Header
4
4
  };