@orion-studios/payload-admin-components 0.2.0-beta.1 → 0.2.0-beta.10

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
@@ -192,3 +192,40 @@ The theme includes these customizable CSS variables:
192
192
  ## License
193
193
 
194
194
  MIT © Orion Studios
195
+
196
+ ## Advanced: Blocks Field Override
197
+
198
+ Payload v3 does not currently expose a slot to override only the internal block selector UI. This package provides `OrionBlocksField`, a full Blocks field replacement that preserves core behavior (add/reorder/duplicate/remove/collapse/clipboard) while using a card-based picker with tabs.
199
+
200
+ ```ts
201
+ // collection field config
202
+ {
203
+ name: 'layout',
204
+ type: 'blocks',
205
+ blocks: pageLayoutBlocks,
206
+ admin: {
207
+ components: {
208
+ Field: {
209
+ path: '@orion-studios/payload-admin-components/client',
210
+ exportName: 'OrionBlocksField',
211
+ },
212
+ },
213
+ },
214
+ }
215
+ ```
216
+
217
+ ## Default Theme
218
+
219
+ `configureAdmin` now supports `defaultTheme`:
220
+
221
+ ```ts
222
+ const adminConfig = configureAdmin({
223
+ brandName: 'My Site',
224
+ brandPrimary: '#2d5016',
225
+ brandSecondary: '#8B4513',
226
+ defaultTheme: 'brand-light',
227
+ basePath: dirname,
228
+ })
229
+ ```
230
+
231
+ Allowed values: `'light' | 'dark' | 'brand-light' | 'brand-dark'`.