ooxml-ui 0.25.0 → 0.26.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 +18 -0
- package/custom-elements.json +3002 -0
- package/dist/{chunk-SXCANAX7.js → chunk-4R4CHY5X.js} +227 -7
- package/dist/{chunk-RVZAYXTI.js → chunk-4VQ6S7QJ.js} +1 -1
- package/dist/{chunk-HSJH6SUW.js → chunk-7Q7ZS2CC.js} +1 -0
- package/dist/{chunk-PAPKST6W.js → chunk-7QLJS57B.js} +1 -1
- package/dist/{chunk-TCBUC6BI.js → chunk-LE4FTRWB.js} +2 -2
- package/dist/{chunk-XQWRKHC2.js → chunk-V6W5DKJ6.js} +1 -1
- package/dist/{chunk-PCZJV6HQ.js → chunk-ZWBP2WTC.js} +1 -1
- package/dist/controls.d.ts +2 -0
- package/dist/controls.js +4 -4
- package/dist/index.js +12 -12
- package/dist/keytips.d.ts +4 -0
- package/dist/presence.js +3 -3
- package/dist/ribbon/overflow.d.ts +38 -0
- package/dist/ribbon/ribbon-tabs.d.ts +57 -1
- package/dist/smartart.js +3 -3
- package/dist/teams.js +4 -4
- package/dist/theme.js +2 -2
- package/dist/tokens.d.ts +1 -0
- package/package.json +8 -4
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`
|