@tangle-network/sandbox-ui 0.44.0 → 0.45.0

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.
package/dist/globals.css CHANGED
@@ -4169,7 +4169,9 @@
4169
4169
  }
4170
4170
  }
4171
4171
  :root,
4172
- [data-sandbox-ui] {
4172
+ [data-sandbox-ui],
4173
+ [data-theme="dark"],
4174
+ .dark {
4173
4175
  --md3-surface: #0a0a14;
4174
4176
  --md3-surface-dim: #07070d;
4175
4177
  --md3-surface-bright: #1b1a2c;
@@ -4412,7 +4414,9 @@
4412
4414
  --font-display: "Inter", "Geist", sans-serif;
4413
4415
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
4414
4416
  }
4415
- [data-sandbox-theme="vault"] {
4417
+ [data-sandbox-theme="vault"],
4418
+ [data-theme="light"],
4419
+ .light {
4416
4420
  --md3-surface: #f8f9fb;
4417
4421
  --md3-surface-dim: #d9dae0;
4418
4422
  --md3-surface-bright: #f8f9fb;
package/dist/styles.css CHANGED
@@ -4169,7 +4169,9 @@
4169
4169
  }
4170
4170
  }
4171
4171
  :root,
4172
- [data-sandbox-ui] {
4172
+ [data-sandbox-ui],
4173
+ [data-theme="dark"],
4174
+ .dark {
4173
4175
  --md3-surface: #0a0a14;
4174
4176
  --md3-surface-dim: #07070d;
4175
4177
  --md3-surface-bright: #1b1a2c;
@@ -4412,7 +4414,9 @@
4412
4414
  --font-display: "Inter", "Geist", sans-serif;
4413
4415
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
4414
4416
  }
4415
- [data-sandbox-theme="vault"] {
4417
+ [data-sandbox-theme="vault"],
4418
+ [data-theme="light"],
4419
+ .light {
4416
4420
  --md3-surface: #f8f9fb;
4417
4421
  --md3-surface-dim: #d9dae0;
4418
4422
  --md3-surface-bright: #f8f9fb;
package/dist/tokens.css CHANGED
@@ -2,8 +2,13 @@
2
2
  /* Brand: warm purple palette, #5B4ED4 primary */
3
3
 
4
4
  /* MD3 surface hierarchy */
5
+ /* Dark is the default theme (`:root`/`[data-sandbox-ui]`). It also responds to
6
+ * the standard `[data-theme="dark"]` / `.dark` switch so any consumer can pin or
7
+ * toggle a theme without inventing an ad-hoc `data-sandbox-theme` name. */
5
8
  :root,
6
- [data-sandbox-ui] {
9
+ [data-sandbox-ui],
10
+ [data-theme="dark"],
11
+ .dark {
7
12
  --md3-surface: #0a0a14;
8
13
  --md3-surface-dim: #07070d;
9
14
  --md3-surface-bright: #1b1a2c;
@@ -304,7 +309,13 @@
304
309
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
305
310
  }
306
311
 
307
- [data-sandbox-theme="vault"] {
312
+ /* Light theme — reachable via the named `vault` theme or the standard
313
+ * `[data-theme="light"]` / `.light` switch. Both blocks are single-attribute/
314
+ * class selectors, and this one is later in source order, so when an element
315
+ * carries both `data-sandbox-ui` (dark) and `data-theme="light"`, light wins. */
316
+ [data-sandbox-theme="vault"],
317
+ [data-theme="light"],
318
+ .light {
308
319
  /* Light theme — clean professional, warm purple accents */
309
320
 
310
321
  /* MD3 surface hierarchy */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox-ui",
3
- "version": "0.44.0",
3
+ "version": "0.45.0",
4
4
  "description": "Unified UI component library for Tangle Sandbox — primitives, chat, dashboard, terminal, editor, and workspace components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -122,7 +122,7 @@
122
122
  "test:bridge": "pnpm build && vitest run src/__tests__/re-export-identity.test.ts"
123
123
  },
124
124
  "peerDependencies": {
125
- "@tangle-network/brand": "^0.5.0",
125
+ "@tangle-network/brand": "^0.6.0",
126
126
  "@tangle-network/ui": "^4.0.0",
127
127
  "react": "^18 || ^19",
128
128
  "react-dom": "^18 || ^19",
@@ -176,7 +176,7 @@
176
176
  "@storybook/react-vite": "^8.6.18",
177
177
  "@tailwindcss/postcss": "^4.2.2",
178
178
  "@tailwindcss/vite": "^4.2.2",
179
- "@tangle-network/brand": "^0.5.0",
179
+ "@tangle-network/brand": "^0.6.0",
180
180
  "@tangle-network/ui": "^4.1.0",
181
181
  "@tanstack/react-query": "^5.91.0",
182
182
  "@testing-library/dom": "^10.4.1",