@aoctech/ui 0.1.0 → 0.1.1

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.
@@ -1,4 +1,15 @@
1
+ "use client";
1
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
+ // Required, and the one file in this package where leaving it out breaks more
4
+ // than this file. `createContext` runs at module scope, and the package's entry
5
+ // point is a barrel that re-exports everything — so a React Server Component
6
+ // importing *any* primitive evaluates this module, and the build fails with
7
+ // "You're importing a module that depends on createContext into a React Server
8
+ // Component" pointing at the consumer's page rather than at this line.
9
+ //
10
+ // Every other component here is server-safe and deliberately carries no
11
+ // directive: marking them would push work to the client that does not need to
12
+ // be there. This one genuinely holds state.
2
13
  import { createContext, useContext } from "react";
3
14
  const ThemeContext = createContext(null);
4
15
  /** Scopes a product identity without leaking it through component props. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aoctech/ui",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Shared CTech UI primitives: Base UI behaviour, Tailwind classes, no colours of its own. Themed entirely by the consuming app's CSS variables.",
5
5
  "repository": {
6
6
  "type": "git",