@marimo-team/islands 0.25.1-dev44 → 0.25.1-dev46

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 (26) hide show
  1. package/dist/{ConnectedDataExplorerComponent-CwMXfDQR.js → ConnectedDataExplorerComponent-C2d9ysUI.js} +5 -6
  2. package/dist/{ErrorBoundary-VUuyxCWc.js → ErrorBoundary-Cymv4nwq.js} +1 -1
  3. package/dist/{chat-ui-DLSF8a04.js → chat-ui-fVyVOhYN.js} +4 -4
  4. package/dist/{code-visibility-A4d1wosh.js → code-visibility-DpYLwiSy.js} +1 -1
  5. package/dist/{common-p1O4ctAw.js → common-CWTdJ-TY.js} +6722 -6426
  6. package/dist/{data-grid-overlay-editor-CasvLZPZ.js → data-grid-overlay-editor-CYv9tAJn.js} +1 -1
  7. package/dist/{dropdown-menu-CZgjYSAh.js → dropdown-menu-CZy06LAq.js} +12 -12
  8. package/dist/{feedback-button-DrJQ0USU.js → feedback-button-cKjOOegs.js} +2 -2
  9. package/dist/{glide-data-editor-C55qOCCK.js → glide-data-editor-CO0Z7kHq.js} +5 -5
  10. package/dist/{globals-CUD2Xo__.js → globals-dNCxJiRB.js} +1 -1
  11. package/dist/{html-to-image-CGVgroef.js → html-to-image-CmkwfNkf.js} +1 -1
  12. package/dist/{useNumberFormatter-BfDpa21j.js → label-BslhXqL6.js} +108 -81
  13. package/dist/main.js +60 -54
  14. package/dist/{number-overlay-editor-CZb24BVz.js → number-overlay-editor-niCBCU1g.js} +1 -1
  15. package/dist/{process-output-CGfg-JmZ.js → process-output-CYN5E-iO.js} +1 -1
  16. package/dist/{reveal-component-_Fc3Tdml.js → reveal-component-Co_X7tOt.js} +3 -3
  17. package/dist/{spec-CAYwFeV6.js → spec-DQBRQSba.js} +123 -102
  18. package/dist/style.css +1 -1
  19. package/dist/{useDateFormatter-BRTPsUK7.js → useDateFormatter-BXQGu86d.js} +28 -49
  20. package/package.json +1 -1
  21. package/src/components/data-table/TableTopBar.tsx +2 -2
  22. package/src/components/data-table/__tests__/export-actions.test.tsx +662 -0
  23. package/src/components/data-table/data-table.tsx +1 -1
  24. package/src/components/data-table/export-actions.tsx +642 -176
  25. package/src/components/data-table/schemas.ts +25 -3
  26. package/dist/label-BJ49YTvk.js +0 -30
@@ -1,7 +1,7 @@
1
1
  import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
2
  import { t } from "./react-ofJbxM4x.js";
3
3
  import { g as n } from "./tooltip-qB8NlSqV.js";
4
- import { r } from "./useNumberFormatter-BfDpa21j.js";
4
+ import { i as r } from "./label-BslhXqL6.js";
5
5
  var i = n("chart-pie", [["path", {
6
6
  d: "M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",
7
7
  key: "pzmjnu"
@@ -21,37 +21,16 @@ var i = n("chart-pie", [["path", {
21
21
  d: "M9 19h6",
22
22
  key: "456am0"
23
23
  }]
24
- ]), o = n("table", [
25
- ["path", {
26
- d: "M12 3v18",
27
- key: "108xh3"
28
- }],
29
- ["rect", {
30
- width: "18",
31
- height: "18",
32
- x: "3",
33
- y: "3",
34
- rx: "2",
35
- key: "afitv7"
36
- }],
37
- ["path", {
38
- d: "M3 9h18",
39
- key: "1pudct"
40
- }],
41
- ["path", {
42
- d: "M3 15h18",
43
- key: "5xshup"
44
- }]
45
- ]), s = /* @__PURE__ */ e(t(), 1);
46
- function c(e, t) {
47
- let n = (0, s.useRef)(null);
24
+ ]), o = /* @__PURE__ */ e(t(), 1);
25
+ function s(e, t) {
26
+ let n = (0, o.useRef)(null);
48
27
  return e && n.current && t(e, n.current) && (e = n.current), n.current = e, e;
49
28
  }
50
29
  //#endregion
51
30
  //#region ../node_modules/.pnpm/@internationalized+date@3.12.3/node_modules/@internationalized/date/dist/private/DateFormatter.mjs
52
- var l = /* @__PURE__ */ new Map(), u = class {
31
+ var c = /* @__PURE__ */ new Map(), l = class {
53
32
  constructor(e, t = {}) {
54
- this.formatter = f(e, t), this.options = t;
33
+ this.formatter = d(e, t), this.options = t;
55
34
  }
56
35
  format(e) {
57
36
  return this.formatter.format(e);
@@ -86,41 +65,41 @@ var l = /* @__PURE__ */ new Map(), u = class {
86
65
  }
87
66
  resolvedOptions() {
88
67
  let e = this.formatter.resolvedOptions();
89
- return g() && (this.resolvedHourCycle ||= _(e.locale, this.options), e.hourCycle = this.resolvedHourCycle, e.hour12 = this.resolvedHourCycle === "h11" || this.resolvedHourCycle === "h12"), e.calendar === "ethiopic-amete-alem" && (e.calendar = "ethioaa"), e;
68
+ return h() && (this.resolvedHourCycle ||= g(e.locale, this.options), e.hourCycle = this.resolvedHourCycle, e.hour12 = this.resolvedHourCycle === "h11" || this.resolvedHourCycle === "h12"), e.calendar === "ethiopic-amete-alem" && (e.calendar = "ethioaa"), e;
90
69
  }
91
- }, d = {
70
+ }, u = {
92
71
  true: { ja: "h11" },
93
72
  false: {}
94
73
  };
95
- function f(e, t = {}) {
96
- if (typeof t.hour12 == "boolean" && m()) {
74
+ function d(e, t = {}) {
75
+ if (typeof t.hour12 == "boolean" && p()) {
97
76
  t = { ...t };
98
- let n = d[String(t.hour12)][e.split("-")[0]], r = t.hour12 ? "h12" : "h23";
77
+ let n = u[String(t.hour12)][e.split("-")[0]], r = t.hour12 ? "h12" : "h23";
99
78
  t.hourCycle = n ?? r, delete t.hour12;
100
79
  }
101
80
  let n = e + (t ? Object.entries(t).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
102
- if (l.has(n)) return l.get(n);
81
+ if (c.has(n)) return c.get(n);
103
82
  let r = new Intl.DateTimeFormat(e, t);
104
- return l.set(n, r), r;
83
+ return c.set(n, r), r;
105
84
  }
106
- var p = null;
107
- function m() {
108
- return p ??= new Intl.DateTimeFormat("en-US", {
85
+ var f = null;
86
+ function p() {
87
+ return f ??= new Intl.DateTimeFormat("en-US", {
109
88
  hour: "numeric",
110
89
  hour12: !1
111
- }).format(new Date(2020, 2, 3, 0)) === "24", p;
90
+ }).format(new Date(2020, 2, 3, 0)) === "24", f;
112
91
  }
113
- var h = null;
114
- function g() {
115
- return h ??= new Intl.DateTimeFormat("fr", {
92
+ var m = null;
93
+ function h() {
94
+ return m ??= new Intl.DateTimeFormat("fr", {
116
95
  hour: "numeric",
117
96
  hour12: !1
118
- }).resolvedOptions().hourCycle === "h12", h;
97
+ }).resolvedOptions().hourCycle === "h12", m;
119
98
  }
120
- function _(e, t) {
99
+ function g(e, t) {
121
100
  if (!t.timeStyle && !t.hour) return;
122
101
  e = e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/, ""), e += (e.includes("-u-") ? "" : "-u") + "-nu-latn";
123
- let n = f(e, {
102
+ let n = d(e, {
124
103
  ...t,
125
104
  timeZone: void 0
126
105
  }), r = parseInt(n.formatToParts(new Date(2020, 2, 3, 0)).find((e) => e.type === "hour").value, 10), i = parseInt(n.formatToParts(new Date(2020, 2, 3, 23)).find((e) => e.type === "hour").value, 10);
@@ -132,12 +111,12 @@ function _(e, t) {
132
111
  }
133
112
  //#endregion
134
113
  //#region ../node_modules/.pnpm/@react-aria+i18n@3.12.16_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/i18n/dist/useDateFormatter.mjs
135
- function v(e) {
136
- e = c(e ?? {}, y);
114
+ function _(e) {
115
+ e = s(e ?? {}, v);
137
116
  let { locale: t } = r();
138
- return (0, s.useMemo)(() => new u(t, e), [t, e]);
117
+ return (0, o.useMemo)(() => new l(t, e), [t, e]);
139
118
  }
140
- function y(e, t) {
119
+ function v(e, t) {
141
120
  if (e === t) return !0;
142
121
  let n = Object.keys(e), r = Object.keys(t);
143
122
  if (n.length !== r.length) return !1;
@@ -145,4 +124,4 @@ function y(e, t) {
145
124
  return !0;
146
125
  }
147
126
  //#endregion
148
- export { a, o as i, u as n, i as o, c as r, v as t };
127
+ export { i as a, a as i, l as n, s as r, _ as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/islands",
3
- "version": "0.25.1-dev44",
3
+ "version": "0.25.1-dev46",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -19,7 +19,7 @@ import {
19
19
  import { Spinner } from "../icons/spinner";
20
20
  import { Button } from "../ui/button";
21
21
  import { ColumnVisibilityDropdown } from "./column-visibility-dropdown";
22
- import { type ExportActionProps, ExportMenu } from "./export-actions";
22
+ import { type ExportActionProps, ExportActions } from "./export-actions";
23
23
 
24
24
  const NOOP_ON_SEARCH = () => {
25
25
  /** no-op*/
@@ -130,7 +130,7 @@ export const TableTopBar = <TData,>({
130
130
  </Button>
131
131
  )}
132
132
  {downloadAs && (
133
- <ExportMenu
133
+ <ExportActions
134
134
  downloadAs={downloadAs}
135
135
  sizeBytes={sizeBytes}
136
136
  sizeBytesIsLoading={sizeBytesIsLoading}