@marimo-team/islands 0.25.3-dev209 → 0.25.3-dev210

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 (140) hide show
  1. package/dist/{ConnectedDataExplorerComponent-ApTYh0V3.js → ConnectedDataExplorerComponent-D6RHJV8D.js} +114 -112
  2. package/dist/{ErrorBoundary-B1QlXN-y.js → ErrorBoundary-VruaQLnK.js} +10 -10
  3. package/dist/{abnfDiagram-VCTEODGH-uo9xhZY0.js → abnfDiagram-VCTEODGH-0q7Lbmii.js} +2 -2
  4. package/dist/{any-language-editor-BVFHDDQ3.js → any-language-editor-jGaR0EAo.js} +5 -5
  5. package/dist/{architectureDiagram-5GKGNRK7-Hz6eyeOD.js → architectureDiagram-5GKGNRK7-1PydKPmE.js} +1 -1
  6. package/dist/{button-BQRdqQi1.js → button-B6RjDKJx.js} +54 -51
  7. package/dist/{capabilities-C2QUNRXi.js → capabilities-CkVzWJEX.js} +1 -1
  8. package/dist/{chat-ui-BTA1I5i1.js → chat-ui-B5pH_aXk.js} +414 -413
  9. package/dist/{check-C9Mp9eCK.js → check-Z_vtI3OL.js} +1 -1
  10. package/dist/{chunk-IMKFNOWR-DBM2i23k.js → chunk-IMKFNOWR-DEzZZ1Zc.js} +1 -1
  11. package/dist/{chunk-SHT3W25Y-L8KQLLBy.js → chunk-SHT3W25Y-CuHj-hnn.js} +1 -1
  12. package/dist/{chunk-SVP7TREG-BOUJKJEP.js → chunk-SVP7TREG-BPiZK2bA.js} +1 -1
  13. package/dist/{chunk-TICWLB2K-DY3CzFjX.js → chunk-TICWLB2K-DF6XcIjM.js} +1 -1
  14. package/dist/{classDiagram-ZZMXUADV-s9iwW-q4.js → classDiagram-ZZMXUADV-CMdR-cP4.js} +2 -2
  15. package/dist/{classDiagram-v2-VYDZK3BY-2GI5CjGB.js → classDiagram-v2-VYDZK3BY-DRvc3_7Y.js} +2 -2
  16. package/dist/{code-visibility-CCGlDSq4.js → code-visibility-BdFhHfIC.js} +28 -28
  17. package/dist/{common-C1PmVtVW.js → common-Ce1SgsX1.js} +8034 -8027
  18. package/dist/{toDate-BZZ64K_m.js → config-DbjzjwxX.js} +98 -164
  19. package/dist/{copy-icon-De584pZ4.js → copy-icon-CG57cxwb.js} +3 -3
  20. package/dist/createReducer-DePYJ0F3.js +63 -0
  21. package/dist/{cynefinDiagram-5FMLGOSQ-DOxnhBK2.js → cynefinDiagram-5FMLGOSQ-BkBjEY9l.js} +1 -1
  22. package/dist/{dagre-GXQ25YYZ-D1AhEfpM.js → dagre-GXQ25YYZ-D-HEaW4I.js} +1 -1
  23. package/dist/{data-grid-overlay-editor-B3KXkZvo.js → data-grid-overlay-editor-Bps1p6jQ.js} +1 -1
  24. package/dist/{diagram-S7CK7UJ4-DV_GebF_.js → diagram-S7CK7UJ4-Bn-oF-rB.js} +1 -1
  25. package/dist/{diagram-UQ7AKVKN-6dNzGFfD.js → diagram-UQ7AKVKN-BpzzXWBj.js} +1 -1
  26. package/dist/{diagram-VX7I27RA-DUh9jsfi.js → diagram-VX7I27RA-COOtvfBP.js} +1 -1
  27. package/dist/{diagram-Z3DM3KII-Cug-qcQ8.js → diagram-Z3DM3KII-K5cXvbrl.js} +1 -1
  28. package/dist/{dialog-DVRfQuhD.js → dialog-DsZ49mmU.js} +26 -26
  29. package/dist/{dist-BJtmSgcE.js → dist-11T5wq3_.js} +41 -40
  30. package/dist/{dist-B1M0bGO3.js → dist-17ugwGZc.js} +59 -58
  31. package/dist/{dist-D7mrh5sO.js → dist-7cRjf--y.js} +135 -134
  32. package/dist/{dist-Ck_C32ye.js → dist-B8pkfkzc.js} +31 -30
  33. package/dist/{dist-Ba2VIn1K.js → dist-B9UoM_wq.js} +54 -53
  34. package/dist/{dist-KN80qWCP.js → dist-BGuMTs1i.js} +118 -117
  35. package/dist/{dist-T5rh6JvL.js → dist-BHW11fni.js} +18 -17
  36. package/dist/dist-BLY4m1Wi.js +850 -0
  37. package/dist/{dist-Bj4bmwUm.js → dist-BNlcVoxs.js} +31 -30
  38. package/dist/{dist-BA13RJj5.js → dist-BQYe5Bju.js} +47 -46
  39. package/dist/{dist-OUle2RT7.js → dist-BX1mn8na.js} +297 -297
  40. package/dist/{dist-CTi5FTiV.js → dist-Bh0PTKUW.js} +108 -107
  41. package/dist/{dist-D9Q3xjiP.js → dist-CKaXK92p.js} +56 -55
  42. package/dist/{dist-DYXM73-k.js → dist-CLhwfhpJ.js} +58 -57
  43. package/dist/{dist-BmS-ZGjl.js → dist-CYeqK4Xw.js} +1854 -2702
  44. package/dist/{dist-D1fnFp1J.js → dist-Cxlp3WH6.js} +16 -15
  45. package/dist/{dist-DVVwOfrD.js → dist-DSJPGj42.js} +64 -63
  46. package/dist/{dist-Bzogh7CW.js → dist-DU9ICsWZ.js} +93 -92
  47. package/dist/{dist-DjeybPOb.js → dist-DWv0ALBi.js} +47 -46
  48. package/dist/{dist-D3x9__Fu.js → dist-DiBpWEsB.js} +39 -38
  49. package/dist/{dist-DtGn9N4h.js → dist-DiLFTlnl.js} +165 -165
  50. package/dist/{dist-DTv9KkpW.js → dist-cVDV5IuI.js} +26 -25
  51. package/dist/{dist-DP60Ubh8.js → dist-fRfaOoq8.js} +44 -43
  52. package/dist/{dist-O0qFpEJh.js → dist-gTTI-9Px.js} +66 -65
  53. package/dist/{dropdown-menu-dlEm41Bt.js → dropdown-menu-CSNdPSnS.js} +2886 -1529
  54. package/dist/{ebnfDiagram-PWID7BFC-d5LKx7Vb.js → ebnfDiagram-PWID7BFC-BI1ZmjVm.js} +2 -2
  55. package/dist/{erDiagram-RLTQ6QDP-BwvlkcID.js → erDiagram-RLTQ6QDP-BtWjj9xy.js} +1 -1
  56. package/dist/{error-banner-DxJ3s8YO.js → error-banner-IsonnvA0.js} +47 -46
  57. package/dist/error-entries-CRPfxMqm.js +2505 -0
  58. package/dist/{esm-Bbw_Njjx.js → esm-BgKjMvWw.js} +389 -388
  59. package/dist/{esm-mDQNEFe_.js → esm-CHjVSexr.js} +305 -306
  60. package/dist/{feedback-button-UsovT9sL.js → feedback-button-2ycmR9GG.js} +112 -112
  61. package/dist/{flowDiagram-HODETNUW-CJcSoFer.js → flowDiagram-HODETNUW-DQvZh96A.js} +2 -2
  62. package/dist/{formats-Ry7c-aIV.js → formats-BK4VefeF.js} +6 -6
  63. package/dist/{glide-data-editor-CRd8kBSp.js → glide-data-editor-Buj2OZjL.js} +99 -99
  64. package/dist/{glide-utils-D98laidb.js → glide-utils-CQddGpa-.js} +3 -3
  65. package/dist/{globals-BDWrOstF.js → globals-B-14fUeb.js} +3 -3
  66. package/dist/{error-entries-CVUHA5r_.js → html-to-image-CgAnxFi8.js} +26314 -25474
  67. package/dist/{infoDiagram-27XIBGKW-Cezgppw3.js → infoDiagram-27XIBGKW-BdAObnc_.js} +1 -1
  68. package/dist/{ishikawaDiagram-5VMMS53U-BahZQwJz.js → ishikawaDiagram-5VMMS53U-DP-jE8dw.js} +1 -1
  69. package/dist/{kanban-definition-UXKFOSKX-Cvfn_Obm.js → kanban-definition-UXKFOSKX-BkMgPjfm.js} +1 -1
  70. package/dist/{loader-DOVB0Syl.js → loader-BisjOLiW.js} +1 -1
  71. package/dist/main.js +2996 -2992
  72. package/dist/{mermaid-BrdwbArF.js → mermaid-B-OFqheA.js} +36 -36
  73. package/dist/{mindmap-definition-YA3MSWOX-uB4B2d-J.js → mindmap-definition-YA3MSWOX-Du7toAZX.js} +1 -1
  74. package/dist/{number-overlay-editor-Bp9a4z5Q.js → number-overlay-editor-ZVFcJ7_u.js} +1 -1
  75. package/dist/{dist-CThPVKaP.js → objectWithoutPropertiesLoose-ai5NUqGa.js} +1139 -1120
  76. package/dist/{pegDiagram-XKGWAZYB-CYaIwAmH.js → pegDiagram-XKGWAZYB-CX_729j0.js} +2 -2
  77. package/dist/{pieDiagram-E7YTZNPT-BJ1oUxVv.js → pieDiagram-E7YTZNPT-dtTFJcVI.js} +1 -1
  78. package/dist/{process-output-SjJxB1wh.js → process-output-Bmev5azU.js} +5 -5
  79. package/dist/{railroadDiagram-O6MQD6OU-BqKSaBux.js → railroadDiagram-O6MQD6OU-Dsc2Cf4c.js} +2 -2
  80. package/dist/{requirementDiagram-BXWQKSXE-DwFhgDhH.js → requirementDiagram-BXWQKSXE-D3g0c60I.js} +1 -1
  81. package/dist/{reveal-component-ov3pS-oO.js → reveal-component-BWz1KjWe.js} +725 -725
  82. package/dist/schemas-CdscWNy_.js +4747 -0
  83. package/dist/select-BSxlITBo.js +1200 -0
  84. package/dist/{sequenceDiagram-WJ2MYXX4-L7ENjfKF.js → sequenceDiagram-WJ2MYXX4-w1pWbIpk.js} +1 -1
  85. package/dist/{spec-BcJ9ncAY.js → spec-Dq8RNplp.js} +4 -4
  86. package/dist/{stateDiagram-D77RDMKH-CVf88u-p.js → stateDiagram-D77RDMKH-BCv7kP4H.js} +2 -2
  87. package/dist/{stateDiagram-v2-MP3YSRHH-DvpkQ1V6.js → stateDiagram-v2-MP3YSRHH-D1cTOt0x.js} +2 -2
  88. package/dist/static-state-BldGd99T.js +72 -0
  89. package/dist/strings-BGW-fXVJ.js +507 -0
  90. package/dist/{swimlanes-42K2YHIH-DIuFHbVE.js → swimlanes-42K2YHIH-DNO6jDnd.js} +1 -1
  91. package/dist/{swimlanesDiagram-VR7AAH4N-CAqHAziW.js → swimlanesDiagram-VR7AAH4N-CkSWsxYJ.js} +2 -2
  92. package/dist/{swiper-component-BVfnhbnt.js → swiper-component-Dir1o8ml.js} +2 -2
  93. package/dist/{timeline-definition-24CTP7MA-xO4EQqBm.js → timeline-definition-24CTP7MA-DQvqGFM9.js} +1 -1
  94. package/dist/toast-BWIPi3aF.js +491 -0
  95. package/dist/{tooltip-s4zZxwKe.js → tooltip-C3UnvsRe.js} +58 -58
  96. package/dist/use-restore-focus-BWO0z1lo.js +1672 -0
  97. package/dist/{useAsyncData-Dqw22wZQ.js → useAsyncData-DsZMvNXn.js} +1 -1
  98. package/dist/{useDateFormatter-D3Tkfzej.js → useDateFormatter-ChB4eyim.js} +2 -2
  99. package/dist/{useDeepCompareMemoize-D3gozcjJ.js → useDeepCompareMemoize-KMBBux8C.js} +1 -1
  100. package/dist/{useIframeCapabilities-6a_yDNXp.js → useIframeCapabilities-cMNQ80CK.js} +1 -1
  101. package/dist/useLifecycle-BquH9ET-.js +112 -0
  102. package/dist/useTheme-B9C1JIy9.js +307 -0
  103. package/dist/utils-DXkj82sK.js +813 -0
  104. package/dist/{vega-component-Blvspl7v.js → vega-component-9NOEITbg.js} +55 -54
  105. package/dist/{vennDiagram-4TSXK5OY-DzCi-lRh.js → vennDiagram-4TSXK5OY-BfzXp4SH.js} +1 -1
  106. package/dist/{wardleyDiagram-VM6X3IG4-CW48xa0n.js → wardleyDiagram-VM6X3IG4-CiqEE8eq.js} +1 -1
  107. package/dist/{xychartDiagram-S5SC5T6Z-UPxGGI2B.js → xychartDiagram-S5SC5T6Z-BTIHCVOI.js} +1 -1
  108. package/package.json +1 -1
  109. package/src/components/editor/cell/__tests__/StagedAICell.test.tsx +1 -1
  110. package/src/components/editor/cell/code/cell-editor.tsx +13 -36
  111. package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +1 -1
  112. package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +11 -5
  113. package/src/components/editor/notebook-cell.tsx +0 -1
  114. package/src/components/scratchpad/scratchpad.test.tsx +3 -11
  115. package/src/components/scratchpad/scratchpad.tsx +24 -22
  116. package/src/components/scratchpad/state.ts +7 -0
  117. package/src/core/ai/__tests__/staged-cells.test.ts +6 -8
  118. package/src/core/ai/staged-cells.ts +4 -2
  119. package/src/core/cells/__tests__/cells.test.ts +44 -60
  120. package/src/core/cells/__tests__/document.test.ts +1 -139
  121. package/src/core/cells/__tests__/notebook-outline.test.ts +8 -6
  122. package/src/core/cells/actions.ts +39 -0
  123. package/src/core/cells/cells.ts +15 -35
  124. package/src/core/cells/document.ts +9 -84
  125. package/src/core/codemirror/__tests__/format.test.ts +0 -34
  126. package/src/core/codemirror/cells/extensions.ts +20 -18
  127. package/src/core/codemirror/cells/state.ts +0 -5
  128. package/src/core/codemirror/format.ts +1 -19
  129. package/src/core/codemirror/misc/__tests__/paste.test.ts +3 -1
  130. package/src/core/codemirror/misc/paste.ts +1 -1
  131. package/src/core/notebook/document/__tests__/codemirror.test.ts +172 -0
  132. package/src/stories/layout/vertical/one-column.stories.tsx +26 -18
  133. package/dist/html-to-image--E3uFbJ9.js +0 -3348
  134. package/dist/label-Qvw1E97W.js +0 -281
  135. package/dist/objectWithoutPropertiesLoose-BRDcTsfB.js +0 -23
  136. package/dist/select-2KOiReNY.js +0 -1423
  137. package/dist/toast-B5t9o6s_.js +0 -1848
  138. package/dist/use-restore-focus-BgDTd2tc.js +0 -6418
  139. package/dist/useLifecycle-CaZi4wTw.js +0 -172
  140. package/dist/useTheme-TzPgWXwB.js +0 -1114
@@ -1,281 +0,0 @@
1
- import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
- import { h as t, r as n } from "./button-BQRdqQi1.js";
3
- import { t as r } from "./react-sHtZdjeP.js";
4
- import { t as i } from "./compiler-runtime-CldRdSsv.js";
5
- import { t as a } from "./jsx-runtime-3BD1kT0s.js";
6
- import { kt as o } from "./use-restore-focus-BgDTd2tc.js";
7
- //#region ../node_modules/.pnpm/@radix-ui+react-label@2.1.17_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@_099847eca268dc359e5086947d5ece66/node_modules/@radix-ui/react-label/dist/index.mjs
8
- var s = /* @__PURE__ */ e(r(), 1), c = a(), l = Object.defineProperty, u = /* @__PURE__ */ s.forwardRef(/* @__PURE__ */ ((e, t) => l(e, "name", {
9
- value: t,
10
- configurable: !0
11
- }))(function(e, t) {
12
- return /* @__PURE__ */ (0, c.jsx)(o.label, {
13
- ...e,
14
- ref: t,
15
- onMouseDown: (t) => {
16
- t.target.closest("button, input, select, textarea") || (e.onMouseDown?.(t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
17
- }
18
- });
19
- }, "Label")), d = {
20
- prefix: String(Math.round(Math.random() * 1e10)),
21
- current: 0
22
- }, f = /*#__PURE__*/ s.createContext(d), p = /*#__PURE__*/ s.createContext(!1);
23
- typeof window < "u" && window.document && window.document.createElement;
24
- var m = /* @__PURE__ */ new WeakMap();
25
- function h(e = !1) {
26
- let t = (0, s.useContext)(f), n = (0, s.useRef)(null);
27
- if (n.current === null && !e) {
28
- let e = s.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
29
- if (e) {
30
- let n = m.get(e);
31
- n == null ? m.set(e, {
32
- id: t.current,
33
- state: e.memoizedState
34
- }) : e.memoizedState !== n.state && (t.current = n.id, m.delete(e));
35
- }
36
- n.current = ++t.current;
37
- }
38
- return n.current;
39
- }
40
- function g(e) {
41
- let t = (0, s.useContext)(f), n = h(!!e), r = `react-aria${t.prefix}`;
42
- return e || `${r}-${n}`;
43
- }
44
- function _(e) {
45
- let t = s.useId(), [n] = (0, s.useState)(S()), r = n ? "react-aria" : `react-aria${d.prefix}`;
46
- return e || `${r}-${t}`;
47
- }
48
- var v = typeof s.useId == "function" ? _ : g;
49
- function y() {
50
- return !1;
51
- }
52
- function b() {
53
- return !0;
54
- }
55
- function x(e) {
56
- return () => {};
57
- }
58
- function S() {
59
- return typeof s.useSyncExternalStore == "function" ? s.useSyncExternalStore(x, y, b) : (0, s.useContext)(p);
60
- }
61
- //#endregion
62
- //#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/i18n/utils.mjs
63
- var C = /* @__PURE__ */ new Set([
64
- "Arab",
65
- "Syrc",
66
- "Samr",
67
- "Mand",
68
- "Thaa",
69
- "Mend",
70
- "Nkoo",
71
- "Adlm",
72
- "Rohg",
73
- "Hebr"
74
- ]), w = /* @__PURE__ */ new Set([
75
- "ae",
76
- "ar",
77
- "arc",
78
- "bcc",
79
- "bqi",
80
- "ckb",
81
- "dv",
82
- "fa",
83
- "glk",
84
- "he",
85
- "ku",
86
- "mzn",
87
- "nqo",
88
- "pnb",
89
- "ps",
90
- "sd",
91
- "ug",
92
- "ur",
93
- "yi"
94
- ]);
95
- function T(e) {
96
- if (Intl.Locale) {
97
- let t = new Intl.Locale(e).maximize(), n = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
98
- if (n) return n.direction === "rtl";
99
- if (t.script) return C.has(t.script);
100
- }
101
- let t = e.split("-")[0];
102
- return w.has(t);
103
- }
104
- //#endregion
105
- //#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
106
- var E = Symbol.for("react-aria.i18n.locale");
107
- function D() {
108
- let e = typeof window < "u" && window[E] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
109
- try {
110
- Intl.DateTimeFormat.supportedLocalesOf([e]);
111
- } catch {
112
- e = "en-US";
113
- }
114
- return {
115
- locale: e,
116
- direction: T(e) ? "rtl" : "ltr"
117
- };
118
- }
119
- var O = D(), k = /* @__PURE__ */ new Set();
120
- function A() {
121
- O = D();
122
- for (let e of k) e(O);
123
- }
124
- function j() {
125
- let e = S(), [t, n] = (0, s.useState)(O);
126
- return (0, s.useEffect)(() => (k.size === 0 && window.addEventListener("languagechange", A), k.add(n), () => {
127
- k.delete(n), k.size === 0 && window.removeEventListener("languagechange", A);
128
- }), []), e ? {
129
- locale: typeof window < "u" && window[E] || "en-US",
130
- direction: "ltr"
131
- } : t;
132
- }
133
- //#endregion
134
- //#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
135
- var M = /*#__PURE__*/ s.createContext(null);
136
- function N(e) {
137
- let { locale: t, children: n } = e, r = s.useMemo(() => ({
138
- locale: t,
139
- direction: T(t) ? "rtl" : "ltr"
140
- }), [t]);
141
- return /*#__PURE__*/ s.createElement(M.Provider, { value: r }, n);
142
- }
143
- function P(e) {
144
- let { children: t } = e, n = j();
145
- return /*#__PURE__*/ s.createElement(M.Provider, { value: n }, t);
146
- }
147
- function F(e) {
148
- let { locale: t, children: n } = e;
149
- return t ? /*#__PURE__*/ s.createElement(N, {
150
- locale: t,
151
- children: n
152
- }) : /*#__PURE__*/ s.createElement(P, { children: n });
153
- }
154
- function I() {
155
- let e = j();
156
- return (0, s.useContext)(M) || e;
157
- }
158
- //#endregion
159
- //#region ../node_modules/.pnpm/@internationalized+number@3.6.8/node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
160
- var L = /* @__PURE__ */ new Map(), R = !1;
161
- try {
162
- R = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
163
- } catch {}
164
- var z = !1;
165
- try {
166
- z = new Intl.NumberFormat("de-DE", {
167
- style: "unit",
168
- unit: "degree"
169
- }).resolvedOptions().style === "unit";
170
- } catch {}
171
- var B = { degree: { narrow: {
172
- default: "°",
173
- "ja-JP": " 度",
174
- "zh-TW": "度",
175
- "sl-SI": " °"
176
- } } }, V = class {
177
- constructor(e, t = {}) {
178
- this.numberFormatter = H(e, t), this.options = t;
179
- }
180
- format(e) {
181
- let t = "";
182
- if (t = !R && this.options.signDisplay != null ? U(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), this.options.style === "unit" && !z) {
183
- let { unit: e, unitDisplay: n = "short", locale: r } = this.resolvedOptions();
184
- if (!e) return t;
185
- let i = B[e]?.[n];
186
- t += i[r] || i.default;
187
- }
188
- return t;
189
- }
190
- formatToParts(e) {
191
- return this.numberFormatter.formatToParts(e);
192
- }
193
- formatRange(e, t) {
194
- if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(e, t);
195
- if (t < e) throw RangeError("End date must be >= start date");
196
- return `${this.format(e)} \u{2013} ${this.format(t)}`;
197
- }
198
- formatRangeToParts(e, t) {
199
- if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(e, t);
200
- if (t < e) throw RangeError("End date must be >= start date");
201
- let n = this.numberFormatter.formatToParts(e), r = this.numberFormatter.formatToParts(t);
202
- return [
203
- ...n.map((e) => ({
204
- ...e,
205
- source: "startRange"
206
- })),
207
- {
208
- type: "literal",
209
- value: " – ",
210
- source: "shared"
211
- },
212
- ...r.map((e) => ({
213
- ...e,
214
- source: "endRange"
215
- }))
216
- ];
217
- }
218
- resolvedOptions() {
219
- let e = this.numberFormatter.resolvedOptions();
220
- return !R && this.options.signDisplay != null && (e = {
221
- ...e,
222
- signDisplay: this.options.signDisplay
223
- }), !z && this.options.style === "unit" && (e = {
224
- ...e,
225
- style: "unit",
226
- unit: this.options.unit,
227
- unitDisplay: this.options.unitDisplay
228
- }), e;
229
- }
230
- };
231
- function H(e, t = {}) {
232
- let { numberingSystem: n } = t;
233
- if (n && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${n}`), t.style === "unit" && !z) {
234
- let { unit: e, unitDisplay: n = "short" } = t;
235
- if (!e) throw Error("unit option must be provided with style: \"unit\"");
236
- if (!B[e]?.[n]) throw Error(`Unsupported unit ${e} with unitDisplay = ${n}`);
237
- t = {
238
- ...t,
239
- style: "decimal"
240
- };
241
- }
242
- let r = e + (t ? Object.entries(t).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
243
- if (L.has(r)) return L.get(r);
244
- let i = new Intl.NumberFormat(e, t);
245
- return L.set(r, i), i;
246
- }
247
- function U(e, t, n) {
248
- if (t === "auto") return e.format(n);
249
- if (t === "never") return e.format(Math.abs(n));
250
- {
251
- let r = !1;
252
- if (t === "always" ? r = n > 0 || Object.is(n, 0) : t === "exceptZero" && (Object.is(n, -0) || Object.is(n, 0) ? n = Math.abs(n) : r = n > 0), r) {
253
- let t = e.format(-n), r = e.format(n), i = t.replace(r, "").replace(/\u200e|\u061C/, "");
254
- return [...i].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"), t.replace(r, "!!!").replace(i, "+").replace("!!!", r);
255
- }
256
- return e.format(n);
257
- }
258
- }
259
- //#endregion
260
- //#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/i18n/useNumberFormatter.mjs
261
- function W(e = {}) {
262
- let { locale: t } = I();
263
- return (0, s.useMemo)(() => new V(t, e), [t, e]);
264
- }
265
- //#endregion
266
- //#region src/components/ui/label.tsx
267
- var G = i(), K = n("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), q = s.forwardRef((e, n) => {
268
- let r = (0, G.c)(9), i, a;
269
- r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
270
- let o;
271
- r[3] === i ? o = r[4] : (o = t(K(), i), r[3] = i, r[4] = o);
272
- let s;
273
- return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0, c.jsx)(u, {
274
- ref: n,
275
- className: o,
276
- ...a
277
- }), r[5] = a, r[6] = n, r[7] = o, r[8] = s) : s = r[8], s;
278
- });
279
- q.displayName = u.displayName;
280
- //#endregion
281
- export { F as a, I as i, W as n, S as o, V as r, v as s, q as t };
@@ -1,23 +0,0 @@
1
- //#region ../node_modules/.pnpm/@babel+runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/extends.js
2
- function e() {
3
- return e = Object.assign ? Object.assign.bind() : function(e) {
4
- for (var t = 1; t < arguments.length; t++) {
5
- var n = arguments[t];
6
- for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
7
- }
8
- return e;
9
- }, e.apply(null, arguments);
10
- }
11
- //#endregion
12
- //#region ../node_modules/.pnpm/@babel+runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
13
- function t(e, t) {
14
- if (e == null) return {};
15
- var n = {};
16
- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
17
- if (t.indexOf(r) !== -1) continue;
18
- n[r] = e[r];
19
- }
20
- return n;
21
- }
22
- //#endregion
23
- export { e as n, t };