@marimo-team/islands 0.24.1-dev65 → 0.24.1-dev66

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 (42) hide show
  1. package/dist/{ConnectedDataExplorerComponent-C-ewmsyP.js → ConnectedDataExplorerComponent-BITfN-bU.js} +12 -12
  2. package/dist/{ErrorBoundary-BF3QLrI_.js → ErrorBoundary-CTvsyaid.js} +3 -3
  3. package/dist/{any-language-editor-BrPYtXHK.js → any-language-editor-D751ztAP.js} +4 -4
  4. package/dist/{button-DOCIubLd.js → button-DlqUC8W-.js} +4 -4
  5. package/dist/{capabilities-ehiSCVl-.js → capabilities-CGBDXz_E.js} +1 -1
  6. package/dist/{chat-ui-DZQth8T9.js → chat-ui-BKe2HMeo.js} +16 -16
  7. package/dist/{check-DIJJHY-E.js → check-BcJDmQdF.js} +1 -1
  8. package/dist/{common-BJPV56-J.js → common-DhZHklsb.js} +21 -21
  9. package/dist/{copy-DgAphl4k.js → copy-D9h0DuU7.js} +2 -2
  10. package/dist/{dist-DTSuOdDc.js → dist-wdOJ5T7-.js} +2 -2
  11. package/dist/{dropdown-menu-DrzAtluA.js → dropdown-menu-C8N-kZzD.js} +6 -6
  12. package/dist/{error-banner-BT4uIIQ2.js → error-banner-xVkWHg51.js} +2 -2
  13. package/dist/{esm-DLK09eKS.js → esm-DkklGms7.js} +1 -1
  14. package/dist/{extends-C80Jsccd.js → extends-KH0CV__g.js} +4 -4
  15. package/dist/{formats-BepI-dIg.js → formats-BEoM6hhG.js} +3 -3
  16. package/dist/{glide-data-editor-DjrkfE8e.js → glide-data-editor-64-L_DON.js} +8 -8
  17. package/dist/{html-to-image-ChI8i0f-.js → html-to-image-BKk_y4-k.js} +15 -15
  18. package/dist/{label-CrQkwOWC.js → label-CEgg1Ymb.js} +2 -2
  19. package/dist/{loader-CgRtoLc5.js → loader-D8jS1unC.js} +1 -1
  20. package/dist/main.js +32 -32
  21. package/dist/{mermaid-B3nc_uR6.js → mermaid-DvIalt_q.js} +4 -4
  22. package/dist/{process-output-e5z-_0AB.js → process-output-BKvXi5lM.js} +3 -3
  23. package/dist/{reveal-component-KTM97YbB.js → reveal-component-ygu_Yzma.js} +9 -9
  24. package/dist/{schemas-DeBAkn_c.js → schemas-JTyiKlcH.js} +1 -1
  25. package/dist/{select-Bakm9EUs.js → select-DQ9jU_B_.js} +4 -4
  26. package/dist/{spec-iNjNWU_x.js → spec-BQ36ell9.js} +4 -4
  27. package/dist/style.css +1 -1
  28. package/dist/{swiper-component-CxICHnAu.js → swiper-component-deYugN58.js} +2 -2
  29. package/dist/{toDate-Mzvy7JMZ.js → toDate-BfSgxzgl.js} +3 -3
  30. package/dist/{tooltip-rwx3Qbw6.js → tooltip-7p_32zdw.js} +3 -3
  31. package/dist/{types-D8U7wKuc.js → types-eyYyHvz7.js} +1 -1
  32. package/dist/{useAsyncData-VgHmkX1q.js → useAsyncData-C4YwNjhG.js} +1 -1
  33. package/dist/{useDateFormatter-DjRKOAkR.js → useDateFormatter-CcY1uXEk.js} +2 -2
  34. package/dist/{useDeepCompareMemoize-CcanIsdI.js → useDeepCompareMemoize-B2mdYxCr.js} +1 -1
  35. package/dist/{useIframeCapabilities-DEIrjkAH.js → useIframeCapabilities-BmYPLMe1.js} +1 -1
  36. package/dist/{useLifecycle-ClOphI_o.js → useLifecycle-hEcsyQ2P.js} +3 -3
  37. package/dist/{useTheme-3Ul40fOV.js → useTheme-T2IIlG9u.js} +2 -2
  38. package/dist/{vega-component-D45ozr-k.js → vega-component-B2K69XxL.js} +9 -9
  39. package/package.json +1 -1
  40. package/src/components/ui/__tests__/button.test.ts +42 -0
  41. package/src/components/ui/button.tsx +4 -10
  42. package/src/css/globals.css +36 -9
@@ -1,9 +1,9 @@
1
1
  import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
- import { c as t, h as n, t as r } from "./button-DOCIubLd.js";
2
+ import { c as t, h as n, t as r } from "./button-DlqUC8W-.js";
3
3
  import { t as i } from "./react-DMWcHin-.js";
4
4
  import { t as a } from "./compiler-runtime-CAH9RLw2.js";
5
5
  import { t as o } from "./jsx-runtime-CpoKNRgu.js";
6
- import { t as s } from "./useIframeCapabilities-DEIrjkAH.js";
6
+ import { t as s } from "./useIframeCapabilities-BmYPLMe1.js";
7
7
  /* empty css */
8
8
  //#region ../node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/shared/ssr-window.esm.mjs
9
9
  var c = /* @__PURE__ */ e(i(), 1), l = a();
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./rolldown-runtime-Cb76FRpK.js";
2
- import { g as t } from "./button-DOCIubLd.js";
2
+ import { g as t } from "./button-DlqUC8W-.js";
3
3
  import { t as n } from "./compiler-runtime-CAH9RLw2.js";
4
- import { u as r } from "./dist-DTSuOdDc.js";
5
- import { E as i, _ as a, a as o, b as s } from "./useTheme-3Ul40fOV.js";
4
+ import { u as r } from "./dist-wdOJ5T7-.js";
5
+ import { E as i, _ as a, a as o, b as s } from "./useTheme-T2IIlG9u.js";
6
6
  import { t as c } from "./invariant-DLmrl-hA.js";
7
7
  var l = r("circle-question-mark", [
8
8
  ["circle", {
@@ -1,10 +1,10 @@
1
1
  import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
- import { d as t, h as n, p as r } from "./button-DOCIubLd.js";
2
+ import { d as t, h as n, p as r } from "./button-DlqUC8W-.js";
3
3
  import { t as i } from "./react-DMWcHin-.js";
4
4
  import { t as a } from "./compiler-runtime-CAH9RLw2.js";
5
- import { a as o, i as s, n as c, r as l, s as u, t as d } from "./dist-DTSuOdDc.js";
5
+ import { a as o, i as s, n as c, r as l, s as u, t as d } from "./dist-wdOJ5T7-.js";
6
6
  import { t as f } from "./jsx-runtime-CpoKNRgu.js";
7
- import { Bc as p, Dc as m, Ec as h, Hc as ee, Kc as g, Lc as _, Pc as v, Vc as y, Wc as b, kc as x, qc as S } from "./schemas-DeBAkn_c.js";
7
+ import { Bc as p, Dc as m, Ec as h, Hc as ee, Kc as g, Lc as _, Pc as v, Vc as y, Wc as b, kc as x, qc as S } from "./schemas-JTyiKlcH.js";
8
8
  //#region ../node_modules/.pnpm/@radix-ui+react-tooltip@1.2.8_@types+react-dom@19.2.3_@types+react@19.2.10__@types+reac_6c936392a1aa34d496e116dc55299197/node_modules/@radix-ui/react-tooltip/dist/index.mjs
9
9
  var C = /* @__PURE__ */ e(i(), 1), w = f(), [T, E] = g("Tooltip", [o]), D = o(), O = "TooltipProvider", te = 700, k = "tooltip.open", [ne, A] = T(O), j = (e) => {
10
10
  let { __scopeTooltip: t, delayDuration: n = te, skipDelayDuration: r = 300, disableHoverableContent: i = !1, children: a } = e, o = C.useRef(!0), s = C.useRef(!1), c = C.useRef(0);
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./rolldown-runtime-Cb76FRpK.js";
2
- import { u as t } from "./dist-DTSuOdDc.js";
2
+ import { u as t } from "./dist-wdOJ5T7-.js";
3
3
  var n = t("pencil", [["path", {
4
4
  d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",
5
5
  key: "1a8usu"
@@ -1,7 +1,7 @@
1
1
  import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
2
  import { t } from "./react-DMWcHin-.js";
3
3
  import { t as n } from "./compiler-runtime-CAH9RLw2.js";
4
- import { j as r } from "./useTheme-3Ul40fOV.js";
4
+ import { j as r } from "./useTheme-T2IIlG9u.js";
5
5
  import { t as i } from "./invariant-DLmrl-hA.js";
6
6
  //#region src/hooks/useAsyncData.ts
7
7
  var a = n(), o = /* @__PURE__ */ e(t(), 1), s = {
@@ -1,7 +1,7 @@
1
1
  import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
2
  import { t } from "./react-DMWcHin-.js";
3
- import { u as n } from "./dist-DTSuOdDc.js";
4
- import { E as r } from "./select-Bakm9EUs.js";
3
+ import { u as n } from "./dist-wdOJ5T7-.js";
4
+ import { E as r } from "./select-DQ9jU_B_.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"
@@ -1,6 +1,6 @@
1
1
  import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
2
  import { t } from "./react-DMWcHin-.js";
3
- import { A as n } from "./useTheme-3Ul40fOV.js";
3
+ import { A as n } from "./useTheme-T2IIlG9u.js";
4
4
  //#region src/hooks/useDeepCompareMemoize.ts
5
5
  var r = /* @__PURE__ */ e(t(), 1);
6
6
  function i(e) {
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./compiler-runtime-CAH9RLw2.js";
2
- import { t } from "./capabilities-ehiSCVl-.js";
2
+ import { t } from "./capabilities-CGBDXz_E.js";
3
3
  //#region src/hooks/useIframeCapabilities.ts
4
4
  var n = e();
5
5
  function r() {
@@ -1,10 +1,10 @@
1
1
  import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
- import { g as t, h as n, r } from "./button-DOCIubLd.js";
2
+ import { g as t, h as n, r } from "./button-DlqUC8W-.js";
3
3
  import { t as i } from "./react-DMWcHin-.js";
4
4
  import { t as a } from "./compiler-runtime-CAH9RLw2.js";
5
- import { u as o } from "./dist-DTSuOdDc.js";
5
+ import { u as o } from "./dist-wdOJ5T7-.js";
6
6
  import { t as s } from "./jsx-runtime-CpoKNRgu.js";
7
- import { E as c, w as l } from "./useTheme-3Ul40fOV.js";
7
+ import { E as c, w as l } from "./useTheme-T2IIlG9u.js";
8
8
  var u = o("calendar", [
9
9
  ["path", {
10
10
  d: "M8 2v4",
@@ -1,8 +1,8 @@
1
1
  import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
- import { a as t, g as n, s as r } from "./button-DOCIubLd.js";
2
+ import { a as t, g as n, s as r } from "./button-DlqUC8W-.js";
3
3
  import { t as i } from "./react-DMWcHin-.js";
4
4
  import { t as a } from "./compiler-runtime-CAH9RLw2.js";
5
- import { Cn as o, In as s, Jn as c, Sn as l, Tt as u, jn as d, kt as f, un as p, vt as m } from "./schemas-DeBAkn_c.js";
5
+ import { Cn as o, In as s, Jn as c, Sn as l, Tt as u, jn as d, kt as f, un as p, vt as m } from "./schemas-JTyiKlcH.js";
6
6
  import { n as h, t as g } from "./_baseMerge-Dv8bBloN.js";
7
7
  //#region ../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/mergeWith.js
8
8
  var _ = h(function(e, t, n, r) {
@@ -1,21 +1,21 @@
1
1
  import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
- import { g as t, h as n, m as r } from "./button-DOCIubLd.js";
2
+ import { g as t, h as n, m as r } from "./button-DlqUC8W-.js";
3
3
  import { t as i } from "./react-DMWcHin-.js";
4
4
  import { t as a } from "./compiler-runtime-CAH9RLw2.js";
5
- import { _ as o, c as s } from "./toDate-Mzvy7JMZ.js";
5
+ import { _ as o, c as s } from "./toDate-BfSgxzgl.js";
6
6
  import { t as c } from "./jsx-runtime-CpoKNRgu.js";
7
- import { n as l } from "./error-banner-BT4uIIQ2.js";
8
- import { t as u } from "./tooltip-rwx3Qbw6.js";
7
+ import { n as l } from "./error-banner-xVkWHg51.js";
8
+ import { t as u } from "./tooltip-7p_32zdw.js";
9
9
  import { t as d } from "./debounce-C3jyATpc.js";
10
- import { j as f, n as p } from "./useTheme-3Ul40fOV.js";
10
+ import { j as f, n as p } from "./useTheme-T2IIlG9u.js";
11
11
  import { c as m } from "./arrays-CN1djC4k.js";
12
12
  import { t as ee } from "./objects-CzUgoMIF.js";
13
- import { t as h } from "./useAsyncData-VgHmkX1q.js";
14
- import { a as te, i as ne, n as re, t as g } from "./formats-BepI-dIg.js";
13
+ import { t as h } from "./useAsyncData-C4YwNjhG.js";
14
+ import { a as te, i as ne, n as re, t as g } from "./formats-BEoM6hhG.js";
15
15
  import { A as ie, n as ae } from "./vega-loader.browser-DEggZzni.js";
16
16
  import { t as oe } from "./react-vega-DSD5aT7_.js";
17
- import { a as se, n as _ } from "./loader-CgRtoLc5.js";
18
- import { t as ce } from "./useDeepCompareMemoize-CcanIsdI.js";
17
+ import { a as se, n as _ } from "./loader-D8jS1unC.js";
18
+ import { t as ce } from "./useDeepCompareMemoize-B2mdYxCr.js";
19
19
  import { t as le } from "./semaphore-89jsoHtS.js";
20
20
  import { t as ue } from "./use-vega-container-remeasure-DUW4tRxq.js";
21
21
  //#region src/plugins/impl/vega/fix-relative-url.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/islands",
3
- "version": "0.24.1-dev65",
3
+ "version": "0.24.1-dev66",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -0,0 +1,42 @@
1
+ /* Copyright 2026 Marimo. All rights reserved. */
2
+
3
+ import { describe, expect, it } from "vitest";
4
+ import { buttonVariants } from "../button";
5
+
6
+ describe("buttonVariants", () => {
7
+ it.each([
8
+ {
9
+ variant: "destructive" as const,
10
+ expected: [
11
+ "bg-destructive",
12
+ "text-destructive-foreground",
13
+ "border-destructive-border",
14
+ "hover:bg-destructive-hover",
15
+ ],
16
+ },
17
+ {
18
+ variant: "success" as const,
19
+ expected: [
20
+ "bg-success",
21
+ "text-success-foreground",
22
+ "border-success-border",
23
+ "hover:bg-success-hover",
24
+ ],
25
+ },
26
+ {
27
+ variant: "warn" as const,
28
+ expected: [
29
+ "bg-action",
30
+ "text-action-foreground",
31
+ "border-action-border",
32
+ "hover:bg-action-hover",
33
+ ],
34
+ },
35
+ ])("uses semantic theme colors for $variant", ({ variant, expected }) => {
36
+ const classes = buttonVariants({ variant });
37
+
38
+ expect(classes).toEqual(expect.stringContaining(expected.join(" ")));
39
+ expect(classes).not.toMatch(/--(?:red|grass|yellow)-/);
40
+ expect(classes).not.toContain("dark:");
41
+ });
42
+ });
@@ -24,28 +24,22 @@ const buttonVariants = cva(
24
24
  ),
25
25
  destructive: cn(
26
26
  "border shadow-xs",
27
- "bg-(--red-9) hover:bg-(--red-10) dark:bg-(--red-6) dark:hover:bg-(--red-7)",
28
- "text-(--red-1) dark:text-(--red-12)",
29
- "border-(--red-11)",
27
+ "bg-destructive text-destructive-foreground border-destructive-border hover:bg-destructive-hover",
30
28
  activeCommon,
31
29
  ),
32
30
  success: cn(
33
31
  "border shadow-xs",
34
- "bg-(--grass-9) hover:bg-(--grass-10) dark:bg-(--grass-6) dark:hover:bg-(--grass-7)",
35
- "text-(--grass-1) dark:text-(--grass-12)",
36
- "border-(--grass-11)",
32
+ "bg-success text-success-foreground border-success-border hover:bg-success-hover",
37
33
  activeCommon,
38
34
  ),
39
35
  warn: cn(
40
36
  "border shadow-xs",
41
- "bg-(--yellow-9) hover:bg-(--yellow-10) dark:bg-(--yellow-6) dark:hover:bg-(--yellow-7)",
42
- "text-(--yellow-12)",
43
- "border-(--yellow-11)",
37
+ "bg-action text-action-foreground border-action-border hover:bg-action-hover",
44
38
  activeCommon,
45
39
  ),
46
40
  action: cn(
47
41
  "bg-action text-action-foreground shadow-xs",
48
- "hover:bg-action-hover border border-action",
42
+ "hover:bg-action-hover border border-action-border",
49
43
  activeCommon,
50
44
  ),
51
45
  outline: cn(
@@ -83,19 +83,26 @@
83
83
  --ring: hsl(215deg 20.2% 65.1%);
84
84
 
85
85
  /* Semantic colors. */
86
- --destructive: hsl(0deg 100% 70%);
87
- --destructive-foreground: hsl(210deg 40% 98%);
88
- --error: hsl(0deg 77% 64%);
89
- --error-foreground: hsl(210deg 40% 98%);
90
- --success: hsl(130deg 100% 70%);
91
- --success-foreground: hsl(210deg 40% 98%);
92
- --action: hsl(52deg 96.8% 82%);
93
- --action-hover: hsl(54deg 100% 86.7%);
94
- --action-foreground: hsl(42deg 100% 29%);
86
+ --destructive: var(--red-9, #e5484d);
87
+ --destructive-hover: var(--red-10, #dc3e42);
88
+ --destructive-border: var(--red-11, #ce2c31);
89
+ --destructive-foreground: var(--red-1, #fffcfc);
90
+ --error: var(--red-9, #e5484d);
91
+ --error-foreground: var(--red-1, #fffcfc);
92
+ --success: var(--grass-9, #46a758);
93
+ --success-hover: var(--grass-10, #3e9b4f);
94
+ --success-border: var(--grass-11, #2a7e3b);
95
+ --success-foreground: var(--grass-1, #fbfefb);
96
+ --action: var(--yellow-9, #ffe629);
97
+ --action-hover: var(--yellow-10, #ffdc00);
98
+ --action-border: var(--yellow-11, #9e6c00);
99
+ --action-foreground: var(--yellow-12, #473b1f);
95
100
  --link: light-dark(hsl(211deg 90% 42%), hsl(211deg 90% 62%));
96
101
  --link-visited: light-dark(hsl(272deg 51% 54%), hsl(272deg 51% 74%));
97
102
  --stale: hsl(42deg 56% 44% / 25%);
98
103
 
104
+ accent-color: var(--primary);
105
+
99
106
  /* Base shadows. */
100
107
  --base-shadow: light-dark(hsl(0deg 0% 85% / 40%), hsla(0deg 0% 36% / 60%));
101
108
  --base-shadow-darker: light-dark(
@@ -122,6 +129,26 @@
122
129
  .marimo:is(.dark *) {
123
130
  color-scheme: dark;
124
131
  }
132
+
133
+ .dark,
134
+ .marimo:is(.dark *) {
135
+ --ring: var(--blue-8, #2870bd);
136
+ --destructive: var(--red-6, #72232d);
137
+ --destructive-hover: var(--red-7, #8c333a);
138
+ --destructive-border: var(--red-11, #ff9592);
139
+ --destructive-foreground: var(--red-12, #ffd1d9);
140
+ --error: var(--red-6, #72232d);
141
+ --error-foreground: var(--red-12, #ffd1d9);
142
+ --success: var(--grass-6, #2d5736);
143
+ --success-hover: var(--grass-7, #366740);
144
+ --success-border: var(--grass-11, #71d083);
145
+ --success-foreground: var(--grass-12, #c2f0c2);
146
+ --action: var(--yellow-6, #524202);
147
+ --action-hover: var(--yellow-7, #665417);
148
+ --action-border: var(--yellow-11, #f5e147);
149
+ --action-foreground: var(--yellow-12, #f6eeb4);
150
+ --stale: hsl(54deg 100% 86.7% / 25%);
151
+ }
125
152
  }
126
153
 
127
154
  @layer base {