ooxml-ui 0.25.0 → 0.27.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/README.md CHANGED
@@ -178,6 +178,24 @@ Only the two layout breakpoints (`COMPACT`, `TOUCH`) are literal, because CSS do
178
178
  custom properties in media queries. A test fails when any control's stylesheet contains a raw
179
179
  colour or length outside a token, or references an undeclared token.
180
180
 
181
+ ### Theming a product
182
+
183
+ A product whose theme variables follow the shadcn names (`--<prefix>foreground`,
184
+ `-muted-foreground`, `-card`, `-primary`, `-destructive`, ...) bridges it in one line:
185
+ `shadcnBridge(':host', '--dve-')` (from `ooxml-ui/theme`) returns the CSS that feeds every
186
+ `--office-*` colour from it. `themeBridge(selector, map)` takes any mapping. Declare the result on
187
+ the product's root (or `:host` inside its shadow root) rather than `:root`, so a nested theme or
188
+ a dark scheme keeps working.
189
+
190
+ ## Custom Elements Manifest
191
+
192
+ `custom-elements.json` (the package's `customElements` field, also exported as
193
+ `ooxml-ui/custom-elements.json`) lists every element with its attributes, properties and events,
194
+ for framework bindings and editor tooling. Properties and attributes are read from the live classes;
195
+ events are the names each element fires, taken from its source, so an event dispatched under a name
196
+ built at run time would be missing. A test fails while the file is out of date: run
197
+ `bun run --cwd packages/ui gen:manifest` after changing an element.
198
+
181
199
  `office-ui-smartart` shows the drawing the producing application cached; it never lays out a
182
200
  diagram itself. Preset outlines it cannot draw are rendered as rectangles, gradient and pattern
183
201
  fills are approximated, and 3D is flattened. All of that is listed in the `office-smartart-render`