@nimblebrain/synapse 0.10.2 → 0.11.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/ui/index.js CHANGED
@@ -1,8 +1,7 @@
1
+ import { ensureStyle, injectBaseReset } from '../chunk-3HQGHPNC.js';
1
2
  import { createContext, useRef, useId, useState, useEffect, useMemo, useContext, useLayoutEffect } from 'react';
2
3
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
4
 
4
- // src/ui/components/Avatar.tsx
5
-
6
5
  // src/ui/tokens.ts
7
6
  var tokens = {
8
7
  // ── Surfaces ──
@@ -164,16 +163,6 @@ function Badge({ tone = "neutral", style, children, ...rest }) {
164
163
  }
165
164
  );
166
165
  }
167
-
168
- // src/ui/internal/inject-style.ts
169
- function ensureStyle(id, css) {
170
- if (typeof document === "undefined") return;
171
- if (document.getElementById(id)) return;
172
- const style = document.createElement("style");
173
- style.id = id;
174
- style.textContent = css;
175
- document.head.appendChild(style);
176
- }
177
166
  var STYLE_ID = "nb-synapse-button";
178
167
  var RULES = `
179
168
  .nb-btn {
@@ -1101,6 +1090,7 @@ function columnStyle(width) {
1101
1090
  return width === "reading" ? { maxWidth: READING_MAX, marginInline: "auto", width: "100%" } : {};
1102
1091
  }
1103
1092
  function AppFrameRoot({ contentWidth = "full", style, children, ...rest }) {
1093
+ injectBaseReset();
1104
1094
  return /* @__PURE__ */ jsx(ContentWidthCtx.Provider, { value: contentWidth, children: /* @__PURE__ */ jsx(
1105
1095
  "div",
1106
1096
  {