@namroodinc/liquid-editorial 0.11.0 → 0.13.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 +44 -20
- package/UPGRADING.md +322 -0
- package/dist/chunks/{Avatar-DPnrvkwd.cjs → Avatar-BY0dAItT.cjs} +2 -2
- package/dist/chunks/{Avatar-DPnrvkwd.cjs.map → Avatar-BY0dAItT.cjs.map} +1 -1
- package/dist/chunks/{Avatar-BK8IdL5W.js → Avatar-UjhjcHh5.js} +2 -2
- package/dist/chunks/{Avatar-BK8IdL5W.js.map → Avatar-UjhjcHh5.js.map} +1 -1
- package/dist/chunks/{Board-Cnyqrc-R.js → Board-BCS7sDXg.js} +13 -5
- package/dist/chunks/{Board-Cnyqrc-R.js.map → Board-BCS7sDXg.js.map} +1 -1
- package/dist/chunks/{Board-DFuJt2Oh.cjs → Board-CNVy8gHI.cjs} +2 -2
- package/dist/chunks/Board-CNVy8gHI.cjs.map +1 -0
- package/dist/chunks/CollectionView-CIJdNwcq.cjs +2 -0
- package/dist/chunks/CollectionView-CIJdNwcq.cjs.map +1 -0
- package/dist/chunks/{CollectionView-Vj84E26b.js → CollectionView-JRNdXHti.js} +5 -5
- package/dist/chunks/CollectionView-JRNdXHti.js.map +1 -0
- package/dist/chunks/{ColourField-DkO8tjeB.js → ColourField-BTj9NHgI.js} +147 -153
- package/dist/chunks/ColourField-BTj9NHgI.js.map +1 -0
- package/dist/chunks/ColourField-DuoVeXjG.cjs +2 -0
- package/dist/chunks/ColourField-DuoVeXjG.cjs.map +1 -0
- package/dist/chunks/DatePicker-BYpGsfL4.cjs +2 -0
- package/dist/chunks/DatePicker-BYpGsfL4.cjs.map +1 -0
- package/dist/chunks/{DatePicker-B8tllGYy.js → DatePicker-Cb5WspIC.js} +22 -22
- package/dist/chunks/DatePicker-Cb5WspIC.js.map +1 -0
- package/dist/chunks/{Drawer-DTtgAZO2.js → Drawer-Ck5XKT_V.js} +4 -4
- package/dist/chunks/Drawer-Ck5XKT_V.js.map +1 -0
- package/dist/chunks/Drawer-DdIH9jpe.cjs +2 -0
- package/dist/chunks/Drawer-DdIH9jpe.cjs.map +1 -0
- package/dist/chunks/EntryPicker-CCCoJxbd.cjs +2 -0
- package/dist/chunks/EntryPicker-CCCoJxbd.cjs.map +1 -0
- package/dist/chunks/{EntryPicker-KxHZzZsh.js → EntryPicker-DLCP4S-q.js} +4 -4
- package/dist/chunks/EntryPicker-DLCP4S-q.js.map +1 -0
- package/dist/chunks/{FormEditor-BJcAIVcL.cjs → FormEditor-ArvjKtJJ.cjs} +2 -2
- package/dist/chunks/{FormEditor-BJcAIVcL.cjs.map → FormEditor-ArvjKtJJ.cjs.map} +1 -1
- package/dist/chunks/{FormEditor-CdLqPaKK.js → FormEditor-DnNBv9Xf.js} +16 -16
- package/dist/chunks/{FormEditor-CdLqPaKK.js.map → FormEditor-DnNBv9Xf.js.map} +1 -1
- package/dist/chunks/{Message-CyLq9ef-.js → Message-C73sJfdo.js} +4 -8
- package/dist/chunks/{Message-CyLq9ef-.js.map → Message-C73sJfdo.js.map} +1 -1
- package/dist/chunks/{Message-D3b8HDhm.cjs → Message-CIKSTXp8.cjs} +2 -2
- package/dist/chunks/{Message-D3b8HDhm.cjs.map → Message-CIKSTXp8.cjs.map} +1 -1
- package/dist/chunks/RichTextEditor--kMao88d.cjs +2 -0
- package/dist/chunks/RichTextEditor--kMao88d.cjs.map +1 -0
- package/dist/chunks/{RichTextEditor-DmNM63Wg.js → RichTextEditor-CvbboqJY.js} +397 -380
- package/dist/chunks/RichTextEditor-CvbboqJY.js.map +1 -0
- package/dist/chunks/{dialogLabel-D18maX-p.js → dialogLabel-DT7rCr3_.js} +19 -19
- package/dist/chunks/{dialogLabel-D18maX-p.js.map → dialogLabel-DT7rCr3_.js.map} +1 -1
- package/dist/chunks/{dialogLabel-2HRYMHbF.cjs → dialogLabel-_-MTckE_.cjs} +2 -2
- package/dist/chunks/{dialogLabel-2HRYMHbF.cjs.map → dialogLabel-_-MTckE_.cjs.map} +1 -1
- package/dist/chunks/overlayLayer-iGhuAByk.cjs +2 -0
- package/dist/chunks/overlayLayer-iGhuAByk.cjs.map +1 -0
- package/dist/chunks/{overlayLayer-IuoPVwTO.js → overlayLayer-lU4iWSjO.js} +32 -28
- package/dist/chunks/overlayLayer-lU4iWSjO.js.map +1 -0
- package/dist/chunks/{group-7Z_xRlQx.js → style-7Z_xRlQx.js} +1 -1
- package/dist/chunks/{group-7Z_xRlQx.js.map → style-7Z_xRlQx.js.map} +1 -1
- package/dist/chunks/{group-nulIa2_8.cjs → style-nulIa2_8.cjs} +1 -1
- package/dist/chunks/{group-nulIa2_8.cjs.map → style-nulIa2_8.cjs.map} +1 -1
- package/dist/chunks/use-picker-session-Bue5MJHQ.cjs +2 -0
- package/dist/chunks/use-picker-session-Bue5MJHQ.cjs.map +1 -0
- package/dist/chunks/{use-picker-session-BDEWL2jK.js → use-picker-session-DUO4G8Cs.js} +4 -4
- package/dist/chunks/use-picker-session-DUO4G8Cs.js.map +1 -0
- package/dist/chunks/{useTooltip-BXAvQwt4.cjs → useTooltip-C7ON4nkV.cjs} +2 -2
- package/dist/chunks/{useTooltip-BXAvQwt4.cjs.map → useTooltip-C7ON4nkV.cjs.map} +1 -1
- package/dist/chunks/{useTooltip-BrC7FdeH.js → useTooltip-DnJEFBLg.js} +2 -2
- package/dist/chunks/{useTooltip-BrC7FdeH.js.map → useTooltip-DnJEFBLg.js.map} +1 -1
- package/dist/components/AppShell/index.cjs +1 -1
- package/dist/components/AppShell/index.js +1 -1
- package/dist/components/AssetCard/index.cjs +1 -1
- package/dist/components/AssetCard/index.cjs.map +1 -1
- package/dist/components/AssetCard/index.d.cts.map +1 -1
- package/dist/components/AssetCard/index.d.ts.map +1 -1
- package/dist/components/AssetCard/index.js +16 -16
- package/dist/components/AssetCard/index.js.map +1 -1
- package/dist/components/AssetCard/style.css +47 -46
- package/dist/components/AssetGrid/index.cjs +1 -1
- package/dist/components/AssetGrid/index.cjs.map +1 -1
- package/dist/components/AssetGrid/index.d.cts +0 -2
- package/dist/components/AssetGrid/index.d.cts.map +1 -1
- package/dist/components/AssetGrid/index.d.ts +0 -2
- package/dist/components/AssetGrid/index.d.ts.map +1 -1
- package/dist/components/AssetGrid/index.js +15 -15
- package/dist/components/AssetGrid/index.js.map +1 -1
- package/dist/components/Avatar/index.cjs +1 -1
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/Avatar/style.css +26 -5
- package/dist/components/Badge/index.cjs +1 -1
- package/dist/components/Badge/index.cjs.map +1 -1
- package/dist/components/Badge/index.d.cts +2 -3
- package/dist/components/Badge/index.d.cts.map +1 -1
- package/dist/components/Badge/index.d.ts +2 -3
- package/dist/components/Badge/index.d.ts.map +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Badge/index.js.map +1 -1
- package/dist/components/Badge/style.css +29 -35
- package/dist/components/Banner/index.cjs +1 -1
- package/dist/components/Banner/index.js +1 -1
- package/dist/components/Board/index.cjs +1 -1
- package/dist/components/Board/index.js +1 -1
- package/dist/components/Board/style.css +37 -16
- package/dist/components/Button/style.css +17 -12
- package/dist/components/ButtonGroup/index.cjs.map +1 -1
- package/dist/components/ButtonGroup/index.d.cts +1 -1
- package/dist/components/ButtonGroup/index.d.ts +1 -1
- package/dist/components/ButtonGroup/index.js.map +1 -1
- package/dist/components/ButtonGroup/style.css +4 -20
- package/dist/components/Choice/index.cjs +1 -1
- package/dist/components/Choice/index.cjs.map +1 -1
- package/dist/components/Choice/index.js +3 -3
- package/dist/components/Choice/index.js.map +1 -1
- package/dist/components/Choice/style.css +34 -22
- package/dist/components/CollectionView/index.cjs +1 -1
- package/dist/components/CollectionView/index.js +1 -1
- package/dist/components/CollectionView/style.css +8 -11
- package/dist/components/ColourField/index.cjs +1 -1
- package/dist/components/ColourField/index.d.cts.map +1 -1
- package/dist/components/ColourField/index.d.ts.map +1 -1
- package/dist/components/ColourField/index.js +1 -1
- package/dist/components/ColourField/style.css +31 -20
- package/dist/components/DatePicker/index.cjs +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/DatePicker/style.css +10 -3
- package/dist/components/Drawer/index.cjs +1 -1
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/Drawer/style.css +10 -23
- package/dist/components/EditLayout/index.cjs +1 -1
- package/dist/components/EditLayout/index.cjs.map +1 -1
- package/dist/components/EditLayout/index.js +4 -4
- package/dist/components/EditLayout/index.js.map +1 -1
- package/dist/components/EditLayout/style.css +5 -6
- package/dist/components/EntryPicker/index.cjs +1 -1
- package/dist/components/EntryPicker/index.js +1 -1
- package/dist/components/EntryPicker/style.css +46 -20
- package/dist/components/Field/style.css +6 -5
- package/dist/components/FormEditor/README.md +28 -19
- package/dist/components/FormEditor/index.cjs +1 -1
- package/dist/components/FormEditor/index.js +1 -1
- package/dist/components/FormEditor/style.css +1 -0
- package/dist/components/ImageCropper/style.css +20 -20
- package/dist/components/LimitReading/style.css +1 -1
- package/dist/components/Menu/index.cjs +1 -1
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Menu/style.css +3 -3
- package/dist/components/Modal/index.cjs +1 -1
- package/dist/components/Modal/index.cjs.map +1 -1
- package/dist/components/Modal/index.js +3 -3
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Modal/style.css +6 -6
- package/dist/components/Popover/index.cjs +1 -1
- package/dist/components/Popover/index.cjs.map +1 -1
- package/dist/components/Popover/index.d.cts.map +1 -1
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js +58 -55
- package/dist/components/Popover/index.js.map +1 -1
- package/dist/components/Popover/style.css +2 -2
- package/dist/components/RichTextEditor/index.cjs +1 -1
- package/dist/components/RichTextEditor/index.d.cts.map +1 -1
- package/dist/components/RichTextEditor/index.d.ts.map +1 -1
- package/dist/components/RichTextEditor/index.js +1 -1
- package/dist/components/RichTextEditor/storyblock-view.d.cts.map +1 -1
- package/dist/components/RichTextEditor/storyblock-view.d.ts.map +1 -1
- package/dist/components/RichTextEditor/style.css +123 -75
- package/dist/components/Select/index.cjs +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/SelectionCard/index.cjs +1 -1
- package/dist/components/SelectionCard/index.cjs.map +1 -1
- package/dist/components/SelectionCard/index.d.cts.map +1 -1
- package/dist/components/SelectionCard/index.d.ts.map +1 -1
- package/dist/components/SelectionCard/index.js +7 -3
- package/dist/components/SelectionCard/index.js.map +1 -1
- package/dist/components/SelectionCard/style.css +30 -48
- package/dist/components/SideNav/index.cjs +1 -1
- package/dist/components/SideNav/index.cjs.map +1 -1
- package/dist/components/SideNav/index.d.cts +3 -3
- package/dist/components/SideNav/index.d.ts +3 -3
- package/dist/components/SideNav/index.js +15 -3
- package/dist/components/SideNav/index.js.map +1 -1
- package/dist/components/SideNav/style.css +19 -13
- package/dist/components/Skeleton/style.css +1 -1
- package/dist/components/Slider/style.css +19 -32
- package/dist/components/SortableList/index.cjs +1 -1
- package/dist/components/SortableList/index.cjs.map +1 -1
- package/dist/components/SortableList/index.js +6 -2
- package/dist/components/SortableList/index.js.map +1 -1
- package/dist/components/SortableList/style.css +20 -5
- package/dist/components/Stepper/style.css +8 -9
- package/dist/components/SubNav/index.cjs.map +1 -1
- package/dist/components/SubNav/index.d.cts +2 -2
- package/dist/components/SubNav/index.d.ts +2 -2
- package/dist/components/SubNav/index.js.map +1 -1
- package/dist/components/SubNav/style.css +3 -8
- package/dist/components/Switch/index.cjs +1 -1
- package/dist/components/Switch/index.cjs.map +1 -1
- package/dist/components/Switch/index.d.cts.map +1 -1
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/Switch/index.js +3 -2
- package/dist/components/Switch/index.js.map +1 -1
- package/dist/components/Switch/style.css +26 -6
- package/dist/components/Table/index.cjs +1 -1
- package/dist/components/Table/index.cjs.map +1 -1
- package/dist/components/Table/index.js +2 -2
- package/dist/components/Table/index.js.map +1 -1
- package/dist/components/Table/style.css +34 -22
- package/dist/components/TagsInput/index.cjs +1 -1
- package/dist/components/TagsInput/index.cjs.map +1 -1
- package/dist/components/TagsInput/index.js +1 -1
- package/dist/components/TagsInput/index.js.map +1 -1
- package/dist/components/TagsInput/style.css +12 -5
- package/dist/components/Time/index.cjs +1 -1
- package/dist/components/Time/index.js +1 -1
- package/dist/components/Time/style.css +1 -1
- package/dist/components/Toast/index.cjs +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Toast/style.css +1 -1
- package/dist/components/TopNav/index.cjs +1 -1
- package/dist/components/TopNav/index.cjs.map +1 -1
- package/dist/components/TopNav/index.d.cts +4 -4
- package/dist/components/TopNav/index.d.ts +4 -4
- package/dist/components/TopNav/index.js +5 -1
- package/dist/components/TopNav/index.js.map +1 -1
- package/dist/components/TopNav/style.css +6 -9
- package/dist/elements.css +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +44 -44
- package/dist/internal/dialogFocus.d.cts +2 -0
- package/dist/internal/dialogFocus.d.cts.map +1 -1
- package/dist/internal/dialogFocus.d.ts +2 -0
- package/dist/internal/dialogFocus.d.ts.map +1 -1
- package/dist/message.css +13 -17
- package/dist/tokens.css +112 -280
- package/package.json +1 -1
- package/dist/chunks/Board-DFuJt2Oh.cjs.map +0 -1
- package/dist/chunks/CollectionView-BNYx29b1.cjs +0 -2
- package/dist/chunks/CollectionView-BNYx29b1.cjs.map +0 -1
- package/dist/chunks/CollectionView-Vj84E26b.js.map +0 -1
- package/dist/chunks/ColourField--rS9KDpq.cjs +0 -2
- package/dist/chunks/ColourField--rS9KDpq.cjs.map +0 -1
- package/dist/chunks/ColourField-DkO8tjeB.js.map +0 -1
- package/dist/chunks/DatePicker-B8tllGYy.js.map +0 -1
- package/dist/chunks/DatePicker-OiqjoO-f.cjs +0 -2
- package/dist/chunks/DatePicker-OiqjoO-f.cjs.map +0 -1
- package/dist/chunks/Drawer-BDX9_qHA.cjs +0 -2
- package/dist/chunks/Drawer-BDX9_qHA.cjs.map +0 -1
- package/dist/chunks/Drawer-DTtgAZO2.js.map +0 -1
- package/dist/chunks/EntryPicker-BI_7g2Wg.cjs +0 -2
- package/dist/chunks/EntryPicker-BI_7g2Wg.cjs.map +0 -1
- package/dist/chunks/EntryPicker-KxHZzZsh.js.map +0 -1
- package/dist/chunks/RichTextEditor-BXyhSeJd.cjs +0 -2
- package/dist/chunks/RichTextEditor-BXyhSeJd.cjs.map +0 -1
- package/dist/chunks/RichTextEditor-DmNM63Wg.js.map +0 -1
- package/dist/chunks/overlayLayer-IuoPVwTO.js.map +0 -1
- package/dist/chunks/overlayLayer-seJG-EFn.cjs +0 -2
- package/dist/chunks/overlayLayer-seJG-EFn.cjs.map +0 -1
- package/dist/chunks/use-picker-session-BDEWL2jK.js.map +0 -1
- package/dist/chunks/use-picker-session-C4FGinLN.cjs +0 -2
- package/dist/chunks/use-picker-session-C4FGinLN.cjs.map +0 -1
- package/dist/components/ColourField/focus.d.cts +0 -3
- package/dist/components/ColourField/focus.d.cts.map +0 -1
- package/dist/components/ColourField/focus.d.ts +0 -3
- package/dist/components/ColourField/focus.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -77,7 +77,7 @@ Field supplies labels and validation relationships. Button supplies action styli
|
|
|
77
77
|
|
|
78
78
|
## Component catalogue
|
|
79
79
|
|
|
80
|
-
All **
|
|
80
|
+
All **51 families** and **103 runtime exports** are listed below, including compound components, hooks and helpers. Each family links to a practical guide and its source stories. Run Storybook locally for interactive examples; this README does not assume a hosted Storybook. Exported TypeScript declarations provide the detailed prop reference.
|
|
81
81
|
|
|
82
82
|
### Collection and editing catalogue
|
|
83
83
|
|
|
@@ -157,7 +157,7 @@ All **50 families** and **103 runtime exports** are listed below, including comp
|
|
|
157
157
|
| [Board](#board) | `Board`, `BoardColumn`, `BoardCard` | [Stories](https://github.com/namroodinc/liquid-editorial/blob/main/src/components/Board/Board.stories.tsx) |
|
|
158
158
|
| [SortableList](#sortablelist) | `SortableList`, `SortableListItem` | [Stories](https://github.com/namroodinc/liquid-editorial/blob/main/src/components/SortableList/SortableList.stories.tsx) |
|
|
159
159
|
| [AssetCard](#assetcard) | `AssetCard`, `AssetCardSkeleton` | [Stories](https://github.com/namroodinc/liquid-editorial/blob/main/src/components/AssetCard/AssetCard.stories.tsx) |
|
|
160
|
-
| [AssetGrid](#assetgrid) | `AssetGrid`, `
|
|
160
|
+
| [AssetGrid](#assetgrid) | `AssetGrid`, `AssetGridEmpty` | [Stories](https://github.com/namroodinc/liquid-editorial/blob/main/src/components/AssetGrid/AssetGrid.stories.tsx) |
|
|
161
161
|
| [ImageCropper](#imagecropper) | `ImageCropper`, `cropToBlob` | [Stories](https://github.com/namroodinc/liquid-editorial/blob/main/src/components/ImageCropper/ImageCropper.stories.tsx) |
|
|
162
162
|
|
|
163
163
|
## Actions and feedback
|
|
@@ -208,7 +208,7 @@ export function ViewPicker() {
|
|
|
208
208
|
{["list", "grid"].map((item) => (
|
|
209
209
|
<Button
|
|
210
210
|
key={item}
|
|
211
|
-
variant={view === item ? "
|
|
211
|
+
variant={view === item ? "primary" : "neutral"}
|
|
212
212
|
aria-pressed={view === item}
|
|
213
213
|
onClick={() => setView(item)}
|
|
214
214
|
>
|
|
@@ -220,7 +220,7 @@ export function ViewPicker() {
|
|
|
220
220
|
}
|
|
221
221
|
```
|
|
222
222
|
|
|
223
|
-
Give a meaningful group an accessible name
|
|
223
|
+
Give a meaningful group an accessible name. Use `variant="primary"` and `aria-pressed` for selected segments; the group only controls spacing and corners, and adds no selection rail.
|
|
224
224
|
|
|
225
225
|
### Menu
|
|
226
226
|
|
|
@@ -335,7 +335,7 @@ export function MetadataDrawer() {
|
|
|
335
335
|
}
|
|
336
336
|
```
|
|
337
337
|
|
|
338
|
-
`side="start"` and `"end"` mirror in RTL; `"bottom"` creates a bottom sheet. All sides have square corners and slide through their anchored edge. Motion follows `--duration-panel` and `--ease-panel`, with reduced-motion support.
|
|
338
|
+
`side="start"` and `"end"` mirror in RTL; `"bottom"` creates a bottom sheet. All sides have square corners and slide through their anchored edge. Motion follows `--duration-panel` and `--ease-panel`, with reduced-motion support. Panels separate from the page with a shadow; they have no outer borders.
|
|
339
339
|
|
|
340
340
|
Use `variant="navigation"` for compact navigation, `closeLabel` for contextual dismissal copy, and a React-node `title` for a brand. Supply `aria-label` for an independent dialog name. `portalContainer` can keep a navigation drawer inside a positioned element; the default covers the viewport from `document.body`.
|
|
341
341
|
|
|
@@ -343,7 +343,7 @@ Keep Drawer mounted while changing `isOpen`: closing immediately makes the exiti
|
|
|
343
343
|
|
|
344
344
|
### Popover
|
|
345
345
|
|
|
346
|
-
Low-level anchored positioning shared by menus, selects, calendars, colour pickers, and tooltips. It measures the anchor, flips when needed, clamps to the viewport, and follows scrolling and anchor/content resizing. Defaults: `align="center"`, `placement="bottom"`, `offset={4}`. Use `align="start"` or `"end"` for edge alignment; Menu, Select, DatePicker and ColourField use `"start"`, and tooltips are centred. Centred panels shift inward at viewport edges and flip vertically when needed, keeping an 8px viewport gutter. Popovers fade in and out using `--duration-fast` and respect reduced motion. Keep Popover mounted and toggle `isOpen` to allow the exit fade; closing panels are inert and hidden from assistive technology until removed.
|
|
346
|
+
Low-level anchored positioning shared by menus, selects, calendars, colour pickers, and tooltips. It measures the anchor, flips when needed, clamps to the viewport, and follows scrolling and anchor/content resizing. An open panel also re-places after each render, so an anchor that moves in the same update, without resizing, keeps its panel. Defaults: `align="center"`, `placement="bottom"`, `offset={4}`. Use `align="start"` or `"end"` for edge alignment; Menu, Select, DatePicker and ColourField use `"start"`, and tooltips are centred. Centred panels shift inward at viewport edges and flip vertically when needed, keeping an 8px viewport gutter. Popovers fade in and out using `--duration-fast` and respect reduced motion. Keep Popover mounted and toggle `isOpen` to allow the exit fade; closing panels are inert and hidden from assistive technology until removed.
|
|
347
347
|
|
|
348
348
|
```tsx
|
|
349
349
|
import { useId, useRef, useState } from "react";
|
|
@@ -388,6 +388,8 @@ Tones are `neutral` (default), `info`, `success`, `warning`, `danger`, and `revi
|
|
|
388
388
|
The icon is hidden by default: pass `icon="auto"` for the tone's icon,
|
|
389
389
|
`icon="none"` to hide it explicitly, or an `IconName` such as `"clock"`.
|
|
390
390
|
|
|
391
|
+
Banners use tone fills and icons without a start rail or extra rail padding. A neutral banner steps from the ground it sits on, so it stays visible on the page, a card, the sidebar or a band.
|
|
392
|
+
|
|
391
393
|
```tsx
|
|
392
394
|
import { useState } from "react";
|
|
393
395
|
import { Banner, Button } from "@namroodinc/liquid-editorial";
|
|
@@ -466,7 +468,7 @@ Provider notifications dismiss automatically after five seconds unless `duration
|
|
|
466
468
|
|
|
467
469
|
### Badge
|
|
468
470
|
|
|
469
|
-
A non-interactive editorial label. Use `shape="status"` for publication state, `"tag"` (the default) for metadata, and `"count"` for totals. Appearance defaults to `"
|
|
471
|
+
A non-interactive editorial label. Use `shape="status"` for publication state, `"tag"` (the default) for metadata, and `"count"` for totals. Appearance defaults to `"soft"`; `"solid"` emphasizes one state. These are the only supported appearances.
|
|
470
472
|
|
|
471
473
|
Set `size="sm"` for condensed labels or `"lg"` for more prominent labels. The default `"md"` keeps the existing size. All three sizes work with every shape and appearance; their standard heights are 20px, 24px, and 28px respectively.
|
|
472
474
|
|
|
@@ -1150,7 +1152,7 @@ ColourField supports normal textbox props, refs, `size`, `readOnly`, `isDisabled
|
|
|
1150
1152
|
|
|
1151
1153
|
### EntryPicker
|
|
1152
1154
|
|
|
1153
|
-
Select entries or assets from app-provided items. The value is an ordered array of IDs in both single and multiple mode. The picker owns search, its selection modal, and optional ordering; the app owns loading and persistence. Selected items
|
|
1155
|
+
Select entries or assets from app-provided items. The value is an ordered array of IDs in both single and multiple mode. The picker owns search, its selection modal, and optional ordering; the app owns loading and persistence. Selected items use fills and draft/removed state styling without rails. The surrounding Field and list have no added surface or padding.
|
|
1154
1156
|
|
|
1155
1157
|
```tsx
|
|
1156
1158
|
import { useState } from "react";
|
|
@@ -1289,7 +1291,7 @@ General forms can use select fields with `options: [{ value, label }]`, per-fiel
|
|
|
1289
1291
|
|
|
1290
1292
|
`columns` sets the most columns and defaults to one. The form drops a column whenever a field would be narrower than `minColumnWidth` (default `16rem`), measured against the form's own width, so it steps down inside drawers and modals. Use `columns="auto"` to fit as many columns as the width allows. FormEditor is not a size container, so it keeps its content width in flex rows and popovers.
|
|
1291
1293
|
|
|
1292
|
-
Plain `hr` elements
|
|
1294
|
+
Plain `hr` elements paint a 1px `--color-rule` line. This style is included in `styles.css` and the optional reset. FormEditor dividers span the grid and use smaller block margins with the form’s grid gap.
|
|
1293
1295
|
|
|
1294
1296
|
Changes emit `onValueChange(nextValues, { fieldId })`. Use the changed field ID when adapting to APIs that accept patches, generated IDs, or dependent values. Runtime form schemas can hold JSX and live choices, so keep them separate from persisted content definitions. Picker field options such as `picker: { itemLabel: "image", itemsLabel: "images" }` provide contextual search and selection copy without putting data access in the library. `picker.label` overrides the field's name: its legend, accessible name, default "Choose …" action and required message. Omitted or `undefined` item and action options keep the asset or entry wording.
|
|
1295
1297
|
|
|
@@ -1659,7 +1661,7 @@ Zero results display “No results” and disable every control. `isDisabled` al
|
|
|
1659
1661
|
|
|
1660
1662
|
### Table
|
|
1661
1663
|
|
|
1662
|
-
Composable native table elements with a
|
|
1664
|
+
Composable native table elements with a borderless surface, filled toolbar, alternating rows and empty state.
|
|
1663
1665
|
|
|
1664
1666
|
```tsx
|
|
1665
1667
|
import {
|
|
@@ -1706,7 +1708,7 @@ import {
|
|
|
1706
1708
|
|
|
1707
1709
|
Empty TableBody children automatically show “No data found.” across the table. Override with `emptyMessage`; use `isEmpty` when custom row components determine results, or `isEmpty={false}` while loading. The consuming UI composes skeleton rows/loading indicators. Standalone TableEmpty supports an optional icon, description, and action.
|
|
1708
1710
|
|
|
1709
|
-
TableRow supports `isSelected` and `isInteractive`; an interactive appearance still needs real link/Button controls and handlers. Cells support `align="start"`/`"end"`, `width="control"`, and emphasis `default`/`primary`/`muted`. Preserve captions/header scopes. Set native `colSpan` explicitly when composing custom spanning cells.
|
|
1711
|
+
Alternate rows step 3% text from the table's own ground, so a Table alternates on the canvas or any panel as well as inside a TableFrame. TableRow supports `isSelected` and `isInteractive`; an interactive appearance still needs real link/Button controls and handlers. Cells support `align="start"`/`"end"`, `width="control"`, and emphasis `default`/`primary`/`muted`. Preserve captions/header scopes. Set native `colSpan` explicitly when composing custom spanning cells.
|
|
1710
1712
|
|
|
1711
1713
|
### Board
|
|
1712
1714
|
|
|
@@ -1858,8 +1860,8 @@ An auto-filling media grid. `isLoading` substitutes eight skeletons by default;
|
|
|
1858
1860
|
import {
|
|
1859
1861
|
AssetGrid,
|
|
1860
1862
|
AssetGridEmpty,
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
+
AssetCard,
|
|
1864
|
+
AssetCardSkeleton,
|
|
1863
1865
|
} from "@namroodinc/liquid-editorial";
|
|
1864
1866
|
|
|
1865
1867
|
export function MediaLibrary({
|
|
@@ -1876,7 +1878,7 @@ export function MediaLibrary({
|
|
|
1876
1878
|
loadingCount={4}
|
|
1877
1879
|
>
|
|
1878
1880
|
{files.map((file) => (
|
|
1879
|
-
<
|
|
1881
|
+
<AssetCard
|
|
1880
1882
|
key={file.id}
|
|
1881
1883
|
name={file.name}
|
|
1882
1884
|
src={file.src}
|
|
@@ -1894,10 +1896,10 @@ export function MediaLibrary({
|
|
|
1894
1896
|
);
|
|
1895
1897
|
}
|
|
1896
1898
|
|
|
1897
|
-
<
|
|
1899
|
+
<AssetCardSkeleton />;
|
|
1898
1900
|
```
|
|
1899
1901
|
|
|
1900
|
-
|
|
1902
|
+
Use AssetCard and AssetCardSkeleton from the package root or `components/AssetCard`; the AssetGrid entry point exports the grid and its empty state. Place the grid in TableFrame for a collection page or directly inside a drawer. The application loads files and supplies upload/select actions.
|
|
1901
1903
|
|
|
1902
1904
|
### ImageCropper
|
|
1903
1905
|
|
|
@@ -1956,7 +1958,7 @@ Changing `aspect` resets pan and zoom while preserving rotation. There is no rat
|
|
|
1956
1958
|
|
|
1957
1959
|
## Themes and fonts
|
|
1958
1960
|
|
|
1959
|
-
Set `data-theme`
|
|
1961
|
+
Set `data-theme` to `light` (the default) or `dark` on the document root or a nested theme scope. The page, Drawer and Modal use `--color-canvas`. Cards and the sidebar use `--color-surface`. Bands, such as Board lanes, the EditLayout rail, table toolbars and dialog footers, use `--fill-band`, one step further off the surface, so they separate from the page, from the surface they sit in and from the cards they hold. Menus and other raised popovers use `--color-surface-raised`. TopNav uses `--color-header`, which separates it from the page and sidebar. The system font stacks can be overridden with tokens. The package uses system fonts by default.
|
|
1960
1962
|
|
|
1961
1963
|
```css
|
|
1962
1964
|
:root {
|
|
@@ -1967,12 +1969,33 @@ Set `data-theme` on the document root to `light` (the default), `dark`, `cherry-
|
|
|
1967
1969
|
|
|
1968
1970
|
Theme tokens are included in `styles.css`. Import `@namroodinc/liquid-editorial/tokens.css` when you only need the token system. Keep themes on the document root so body-portaled dialogs and popovers inherit them. Overlays opened from inside a component that knows its place on the page carry that place's `data-theme`, `lang` and `dir` as attributes: a Popover takes them from its anchor, and RichTextEditor's expanded view, link dialog and anything opened from them take them from the editor. Other Modals and Drawers inherit from the document root; pass `dir` to Drawer explicitly where needed. Layouts support RTL and reduced-motion preferences where described in their guides.
|
|
1969
1971
|
|
|
1970
|
-
Colours the tokens derive from a theme re-derive on every `data-theme` element, so a themed subtree or overlay uses its own theme's values. These are the field fill
|
|
1972
|
+
Colours the tokens derive from a theme re-derive on every `data-theme` element, so a themed subtree or overlay uses its own theme's values. These are the field and control fill ladders, bands, indicators, the primary soft hover and pressed fills, and tone text. Override them on `:root, [data-theme]` rather than `:root` alone. Decorative rails are limited to AssetCard and Table row selections; their colour remains a root-level setting. Navigation, fields, editors, picker rows, selection cards and both message appearances use fills/text instead, with normal padding. See the migration checklist in UPGRADING.md for removed styling APIs. A custom container with its own fill sets `--field-bg` and carries `ds-field-surface`, so fields and buttons inside it rest, hover, focus and press against that fill:
|
|
1971
1973
|
|
|
1972
1974
|
```html
|
|
1973
1975
|
<section class="ds-field-surface" style="--field-bg: var(--color-surface)">…</section>
|
|
1974
1976
|
```
|
|
1975
1977
|
|
|
1978
|
+
Text controls, unchecked choices, off switches, selection cards and the rich text editor rest on `--field-rest`. `--field-hover`, `--field-pressed` and `--field-invalid` define their state fills. Sortable items, EntryPicker items, AssetCards and Board cards use `--fill-card`, which defaults to `--color-surface`. A custom surface-coloured container that hosts those items can set `--fill-card: var(--fill-row-alt)`, as TableFrame does.
|
|
1979
|
+
|
|
1980
|
+
Structural separators and rules typed into the editor use `--color-rule`, which derives from the surface they divide. Unchecked indicators have a fill-only default. For a visible inset edge, set the following in the scopes your app themes. This is intended for applications that need stronger boundary contrast.
|
|
1981
|
+
|
|
1982
|
+
```css
|
|
1983
|
+
:root,
|
|
1984
|
+
[data-theme] {
|
|
1985
|
+
--indicator-edge: inset 0 0 0 1.5px color-mix(in srgb, var(--color-text) 50%, var(--field-bg));
|
|
1986
|
+
}
|
|
1987
|
+
```
|
|
1988
|
+
|
|
1989
|
+
Neutral Buttons, tag/count/draft/archived Badges and initials Avatars step from the fill they sit on. A field surface that paints a hover or active fill over its ground names it in `--field-paint`, as library rows and cards do, so their contents step from the painted fill instead:
|
|
1990
|
+
|
|
1991
|
+
```css
|
|
1992
|
+
.my-row:hover {
|
|
1993
|
+
--field-paint: var(--field-hover);
|
|
1994
|
+
|
|
1995
|
+
background: var(--field-hover);
|
|
1996
|
+
}
|
|
1997
|
+
```
|
|
1998
|
+
|
|
1976
1999
|
## Upgrading
|
|
1977
2000
|
|
|
1978
2001
|
Read [UPGRADING.md](https://github.com/namroodinc/liquid-editorial/blob/main/UPGRADING.md) for adoption, compatibility, and verification steps between your previous and installed versions. The guide and AGENTS.md ship alongside the package manifest in `node_modules/@namroodinc/liquid-editorial/`.
|
|
@@ -2018,7 +2041,7 @@ stays operable while a page loads, so focus stays on the pressed Next or Previou
|
|
|
2018
2041
|
button; pass `pagination.isDisabled` to lock it. A pending selection also locks it.
|
|
2019
2042
|
Optional `filter`, `mine`, `view`, `selection` and `actions` configure the toolbar.
|
|
2020
2043
|
The grid/table `view` switch uses an attached ButtonGroup with pressed-state
|
|
2021
|
-
styling and a
|
|
2044
|
+
styling and a 2px gap between its two buttons.
|
|
2022
2045
|
The selected count is announced from a status region present before selection.
|
|
2023
2046
|
When Clear or a selection action leaves with focus, focus returns to the title.
|
|
2024
2047
|
The application owns filtering, records, eligibility, selection and requests.
|
|
@@ -2107,7 +2130,8 @@ narrow dialogs.
|
|
|
2107
2130
|
|
|
2108
2131
|
Pass optional entry/asset sources through `RichTextEditor.embeds` or per-field
|
|
2109
2132
|
`FormEditor.embedSources`. The editor reuses EntryPicker paging, static items and
|
|
2110
|
-
rows, and supports insert, replace, alignment, editing callbacks and removal.
|
|
2133
|
+
rows, and supports insert, replace, alignment, editing callbacks and removal. Open a
|
|
2134
|
+
block’s ⋯ button to reveal alignment and actions. Entry blocks
|
|
2111
2135
|
store the readable model API ID in `attrs.id` and the selected entry identifier in
|
|
2112
2136
|
`attrs.entryId`; assets use `attrs.assetId`. Applications own data, restrictions,
|
|
2113
2137
|
creation and delivery resolution. See the packaged FormEditor reference for the
|
package/UPGRADING.md
CHANGED
|
@@ -2,6 +2,328 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.13.0
|
|
6
|
+
|
|
7
|
+
### Breaking changes
|
|
8
|
+
|
|
9
|
+
Liquid Editorial now ships two themes, one ground for body, Drawer and Modal, and one fill for every input. The following APIs are **removed**, with no compatibility aliases or deprecation period.
|
|
10
|
+
|
|
11
|
+
| Removed API | Replacement / required action |
|
|
12
|
+
| --- | --- |
|
|
13
|
+
| `data-theme="cherry-glaze"` | Use `light`. |
|
|
14
|
+
| `data-theme="black-hawaii"` | Use `dark`. |
|
|
15
|
+
| `--color-accent`, `--color-accent-hover`, `--color-accent-pressed`, `--color-accent-soft`, `--color-accent-soft-hover`, `--color-accent-soft-pressed`, `--color-accent-text`, `--color-text-on-accent` | The matching `--color-primary*` token. In light and dark, accent already equalled primary. |
|
|
16
|
+
| `--status-draft`, `--status-draft-text`, `--status-draft-soft` and their `-hover`/`-pressed` steps | Badge maps draft itself. Custom UI: ink `--color-text-subtle`, marker `--color-border-strong`, fill `--color-surface`. |
|
|
17
|
+
| `--status-scheduled*` | `--color-primary`, `--color-primary-soft` and its ladder. |
|
|
18
|
+
| `--status-published*` | `--color-success`, `--color-success-soft`. |
|
|
19
|
+
| `--status-changed*` | `--color-warning`, `--color-warning-soft`. |
|
|
20
|
+
| `--status-unpublished*` | `--color-danger`, `--color-danger-soft`. |
|
|
21
|
+
| `--status-archived*` | Ink `--color-text-subtle`, no fill. |
|
|
22
|
+
| `--color-success-soft-hover`, `-soft-pressed` (and the warning, danger and review equivalents) | Mix the tone over its soft fill locally, or ask for a ladder in a decision record. |
|
|
23
|
+
| `--color-border`, `--color-border-muted` | `--fill-indicator` for tracks; `--color-rule` for separators. |
|
|
24
|
+
| `--color-surface-subtle` | `--fill-band` for bands, lanes and rails. `--fill-control` for a neutral placeholder or banner that steps from its ground. |
|
|
25
|
+
| `--shadow-sm` | `--shadow-md`. |
|
|
26
|
+
| Storyblock inline action labels, the title bar's `toolbar` role and `.ds-storyblock__actions` | Open the button named `Block actions for {item title}` and find its actions in the dialog. The title bar is no longer a named toolbar, and the old inline action container is removed. |
|
|
27
|
+
| `--indicator-tint` | Indicators share `--field-rest`; set `--indicator-edge` for an outline. |
|
|
28
|
+
| `--tint-focus`, `--soft-step-hover`, `--soft-step-pressed` | `--tint-hover` and `--tint-pressed`, now declared per theme. |
|
|
29
|
+
|
|
30
|
+
### Changes
|
|
31
|
+
|
|
32
|
+
- **One ground.** In light mode `--color-canvas` is now #ffffff (was #f4f6f9) and `--color-surface` is #f4f6f9 (was #ffffff). Body, Drawer and Modal all paint `--color-canvas`. Overlays separate by `--scrim` and `--shadow-lg`.
|
|
33
|
+
- **Bands.** `--fill-band` is the surface mixed with text at `--tint-rest`, a theme-derived token declared on `:root, [data-theme]`. Board lanes, the EditLayout rail, table and CollectionView toolbars and footers, the SideNav footer, and Modal and Drawer footers separate from the page, from the surface they sit in, and from the cards they hold. Board cards rest on `--fill-card` like other cards.
|
|
34
|
+
- **One input fill.** Text fields, the rich text editor, tags, selects, and unchecked checkboxes, radios and switches all rest on `--field-rest`. Light mixes 5 / 8 / 12% of text for rest, hover and pressed; dark keeps 7 / 10 / 18%.
|
|
35
|
+
- **Neutral controls.** Neutral Buttons, avatars and badges rest at 8 / 10% text (light / dark), hover at 12 / 14%, and press at 16 / 22%, so press stays distinct from hover in both themes.
|
|
36
|
+
- **Indicators.** Unchecked indicators are fill-only. Checked indicators hover to `--color-primary-hover`. An unchecked invalid choice uses `--field-invalid`. An off invalid Switch uses `data-invalid` and the neutral Button variant. Checked invalid indicators and on invalid switches retain the danger treatment. The off Switch knob is `--color-text-muted` in both themes.
|
|
37
|
+
- **Rich text editor.** It is styled as a field: the whole frame steps through rest, hover, focus, invalid and invalid focus. The 2px seam between toolbar and content shows the ground the field sits on, and the writing area fills a stretched frame. Storyblocks paint `--color-canvas`, and their actions (alignment, Edit, Replace, Remove) move into a ⋯ popover on the title bar. Remove uses Button's `danger` variant. The kind label keeps Badge's neutral fill, stepped from the bar.
|
|
38
|
+
- **Messages.** A neutral Banner paints `--fill-control` from the ground it sits on, so it stays visible on the page, cards, the sidebar and bands. `.ds-field-surface` moves from the message root to `.ds-message__body` and `.ds-message__dismiss`.
|
|
39
|
+
- **Popover.** An open Popover re-places after every render, so an anchor that moves in the same update keeps its panel, for example after a storyblock alignment change.
|
|
40
|
+
- **Small fills.** The EntryPicker thumbnail placeholder uses `--fill-control`, and the LimitReading ring track uses `--color-rule`.
|
|
41
|
+
- **Rules.** Every `hr`, FormEditor divider, Wizard rule and menu separator paints the new `--color-rule` (text 20% over its ground). This is a new token, unrelated to the `--rule-color` removed in 0.12.0.
|
|
42
|
+
- **Contrast.** Light `--color-focus` aliases `--color-primary`. Muted, primary, review and danger text colours have contrast adjustments for the affected themes and fills.
|
|
43
|
+
- **New tokens.** `--color-text-subtle`, `--color-rule` and `--indicator-edge` (default `none`).
|
|
44
|
+
- **Fixes.** The light danger Button now has hover and pressed fills. `--color-surface-sunken` (never defined) is gone from the editor's code blocks.
|
|
45
|
+
|
|
46
|
+
### Adoption
|
|
47
|
+
|
|
48
|
+
1. Search the consuming project for `cherry-glaze` and `black-hawaii` and switch them to `light` or `dark`.
|
|
49
|
+
2. Search for every removed token in the table and replace it as listed. Include CSS, CSS-in-JS and design-token exports.
|
|
50
|
+
3. Search for `--color-surface` used to mean "white" (for example a knob, a chip on a page, or a custom card on a drawer). Use `--color-canvas` where white was intended.
|
|
51
|
+
4. If your product must meet WCAG 1.4.11's 3:1 for unchecked indicators, set `--indicator-edge: inset 0 0 0 1.5px color-mix(in srgb, var(--color-text) 50%, var(--field-bg))` on `:root, [data-theme]`.
|
|
52
|
+
5. Update storyblock tests and automation to open the ⋯ trigger and scope queries to its dialog. Do not query a `toolbar` named `Block actions for …`. Alignment buttons are Left, Full and Right. Replace uses “Replace…” or “Choose another entry…” for a missing entry, with corresponding wording for assets.
|
|
53
|
+
6. Search for CSS that targets `.ds-message.ds-field-surface`, `.ds-banner.ds-field-surface` or `.ds-toast.ds-field-surface`, and target `.ds-message__body` instead.
|
|
54
|
+
|
|
55
|
+
### Compatibility
|
|
56
|
+
|
|
57
|
+
- Overrides of derived tokens must still be written on `:root, [data-theme]` (0066).
|
|
58
|
+
- Pages that relied on the grey canvas can paint `--color-surface`. A nested scope can set either supported theme explicitly.
|
|
59
|
+
- A plain `hr` in consumer markup becomes a visible 1px line. Set `hr { background: none }` locally to keep a spacing-only break.
|
|
60
|
+
- `--fill-band` is declared on `:root, [data-theme]` only, so an override on a container now reaches nested field surfaces. It derives from `--color-surface`, not from `--field-bg`, because band hosts set `--field-bg` from it. A band nested inside another band matches it.
|
|
61
|
+
- Banner and Toast roots no longer re-derive the field ladder themselves. Content passed to them renders inside `.ds-message__body`, which does.
|
|
62
|
+
|
|
63
|
+
### Verification
|
|
64
|
+
|
|
65
|
+
1. Run the project's normal checks against the packed build.
|
|
66
|
+
2. In light and dark, open a form on a page, in a Drawer and in a Modal. The inputs should look identical in all three.
|
|
67
|
+
3. Check unchecked, checked, hovered, invalid and disabled checkboxes, radios and switches.
|
|
68
|
+
4. In the rich text editor, check rest, focused and invalid frames, a typed rule, and selected, draft and missing storyblocks with the ⋯ popover open.
|
|
69
|
+
5. Check Badge statuses in a table and on a board card.
|
|
70
|
+
6. In light and dark, check Board cards on their lanes, EntryPicker rows in the EditLayout rail, a table toolbar in its frame and a SideNav footer. Each must separate from the fill around it.
|
|
71
|
+
7. Check a neutral Banner on the page, in a card, in the SideNav and in the EditLayout rail. Then check an EntryPicker item without an image.
|
|
72
|
+
8. Press and hold a neutral Button: the pressed fill must differ from the hover fill. Check that an off Switch shows its knob.
|
|
73
|
+
9. Open a full-width storyblock's ⋯ popover and choose Left, then Right. The popover must stay under its trigger.
|
|
74
|
+
|
|
75
|
+
## 0.12.0
|
|
76
|
+
|
|
77
|
+
### Breaking changes
|
|
78
|
+
|
|
79
|
+
The library now uses borderless fills, bands, alternating rows, spacing and
|
|
80
|
+
asset/table selection rails. The following APIs are **removed**, with no
|
|
81
|
+
compatibility aliases or deprecation period. Update every application and shared package that consumes
|
|
82
|
+
them before adopting this release. Keyboard focus outlines remain supported.
|
|
83
|
+
|
|
84
|
+
| Removed API | Replacement / required action |
|
|
85
|
+
| --- | --- |
|
|
86
|
+
| Badge `appearance="outline"`, including the `BadgeAppearance` member | Omit `appearance` for the new `soft` default, or pass `appearance="soft"`. Only `soft` and `solid` remain. Update stored/configured values as well as JSX. |
|
|
87
|
+
| `AssetTile` | `AssetCard` |
|
|
88
|
+
| `AssetTileSkeleton` | `AssetCardSkeleton` |
|
|
89
|
+
| `AssetTileProps` | `AssetCardProps` |
|
|
90
|
+
| `AssetTileSkeletonProps` | `AssetCardSkeletonProps` |
|
|
91
|
+
| AssetTile exports/types from `components/AssetGrid` | Import the AssetCard replacements from the package root or `components/AssetCard`. AssetGrid retains its grid and empty-state exports. |
|
|
92
|
+
| `--frame-width`, `--frame-color` | Remove frame overrides. Use a surface fill on canvas, with shadows for overlays. |
|
|
93
|
+
| `--rule-width`, `--rule-color` | Remove separator overrides. Use spacing, row fills or header/footer bands. Semantic separators keep their roles without a painted rule. |
|
|
94
|
+
| `--control-border-width` | Use `--focus-width` for focus outlines. Remove border terms from layout/image calculations; do not replace them with focus width. |
|
|
95
|
+
| `--control-border-color` | Remove stroke overrides. Choose the supported control fill or semantic rail colour instead. |
|
|
96
|
+
| `--badge-border-width` | Remove the override. Badge padding now includes the removed border space: each default padding token is 2px larger. Add 2px to any custom `--badge-pad-block`, `--badge-sm-pad-block`, `--badge-pad-inline` or `--badge-count-pad-inline` value to keep the old size. |
|
|
97
|
+
| `--color-primary-border` | Primary soft fill; only asset/table selections retain a rail. |
|
|
98
|
+
| `--color-success-border` | Success soft fill and icon/text tone. |
|
|
99
|
+
| `--color-warning-border` | Warning soft fill and icon/text tone. |
|
|
100
|
+
| `--color-danger-border` | Danger soft fill and icon/text tone. |
|
|
101
|
+
| `--color-review-border` | Review soft fill and icon/text tone. |
|
|
102
|
+
| `--storyblock-bar-border` | Remove the override; use the existing `--storyblock-bar-bg` for bar fill. |
|
|
103
|
+
| `--message-border` | Remove the override; use message soft fill and icon tone. Toast's `--toast-tone` remains supported. |
|
|
104
|
+
| `--colour-thumb-ring` | Remove the override; colour thumbs carry a fixed surface-and-text halo over the shared shadow. |
|
|
105
|
+
| `.ds-asset-tile` and all `.ds-asset-tile__*` hooks | Replace the prefix with `.ds-asset-card`, retaining the suffix. The old classes are neither emitted nor styled. |
|
|
106
|
+
|
|
107
|
+
Complete retired CSS hook inventory (each maps to the same suffix under
|
|
108
|
+
`ds-asset-card`):
|
|
109
|
+
|
|
110
|
+
```text
|
|
111
|
+
ds-asset-tile
|
|
112
|
+
ds-asset-tile__actions
|
|
113
|
+
ds-asset-tile__hit
|
|
114
|
+
ds-asset-tile__link
|
|
115
|
+
ds-asset-tile__meta
|
|
116
|
+
ds-asset-tile__name
|
|
117
|
+
ds-asset-tile__pending
|
|
118
|
+
ds-asset-tile__pending-label
|
|
119
|
+
ds-asset-tile__placeholder
|
|
120
|
+
ds-asset-tile__spinner
|
|
121
|
+
ds-asset-tile__text
|
|
122
|
+
ds-asset-tile__thumb
|
|
123
|
+
ds-asset-tile__thumb-skeleton
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Adoption:
|
|
127
|
+
|
|
128
|
+
1. Rename the AssetTile imports, JSX, types and selector hooks using the table.
|
|
129
|
+
For example, replace
|
|
130
|
+
`import { AssetTile, type AssetTileProps } from "@namroodinc/liquid-editorial/components/AssetGrid"`
|
|
131
|
+
with
|
|
132
|
+
`import { AssetCard, type AssetCardProps } from "@namroodinc/liquid-editorial/components/AssetCard"`.
|
|
133
|
+
2. Replace Badge outline configuration with `soft`, or remove the explicit prop.
|
|
134
|
+
Update selectors for `data-appearance="outline"` to `soft`, and refresh visual
|
|
135
|
+
expectations for badges whose appearance was omitted.
|
|
136
|
+
3. Remove the retired token declarations and uses. Do not retain local copies
|
|
137
|
+
of the removed borders to recreate the old treatment. Custom containers still
|
|
138
|
+
set `--field-bg` and carry `ds-field-surface`; the field and new control fill
|
|
139
|
+
ladders then derive against that ground.
|
|
140
|
+
4. Search each consuming repository, including shared packages, generated
|
|
141
|
+
schemas/configuration, themes and CSS-in-JS. These commands intentionally also
|
|
142
|
+
find comments and snapshots that may need review:
|
|
143
|
+
|
|
144
|
+
```sh
|
|
145
|
+
rg -n 'AssetTile(Skeleton)?(Props)?|ds-asset-tile' . --glob '!node_modules/**' --glob '!dist/**'
|
|
146
|
+
rg -n 'outline' . --glob '!node_modules/**' --glob '!dist/**' --glob '*.{ts,tsx,js,jsx,json,css,scss}'
|
|
147
|
+
rg -n --glob '!node_modules/**' --glob '!dist/**' -- '--(frame-(width|color)|rule-(width|color)|control-border-(width|color)|badge-border-width|color-(primary|success|warning|danger|review)-border|storyblock-bar-border|message-border|colour-thumb-ring)' .
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
Inspect `outline` matches: remove the Badge appearance and its selectors;
|
|
151
|
+
preserve keyboard focus styles. Adjust search roots to the consumer's layout.
|
|
152
|
+
|
|
153
|
+
Changes and compatibility:
|
|
154
|
+
|
|
155
|
+
- Decorative rails are limited to selected AssetCard tiles and Table rows.
|
|
156
|
+
Toasts, navigation, fields, selection cards, picker rows, collection toolbars,
|
|
157
|
+
editors and blockquotes have no start/bottom rails, including invalid, draft,
|
|
158
|
+
missing and selected states. Existing fills, text/icon cues and keyboard focus
|
|
159
|
+
remain. Padding no longer reserves space for removed rails; field affixes keep
|
|
160
|
+
their measured spacing. Asset/table selection geometry and RTL rails remain.
|
|
161
|
+
- Banners and Toasts share rail-free message styles with symmetric padding;
|
|
162
|
+
floating Toasts retain their outer shadow and icon tone. `--toast-tone` now
|
|
163
|
+
recolours the icon only. Remove local overrides that restore other rails.
|
|
164
|
+
Keep `--rail-width`, `--rail-color` and `--rail-direction` overrides scoped to
|
|
165
|
+
asset/table selection styling. Functional slider/colour tracks, stepper
|
|
166
|
+
connectors, usage rings and layout sidebars remain supported.
|
|
167
|
+
- Unchecked radio/checkbox fills and off switches are softer: `--indicator-tint`
|
|
168
|
+
is 50% in light, 45% in dark/Black Hawaii and 59% in Cherry Glaze. Their
|
|
169
|
+
built-in background pairs retain at least 3:1 contrast. Unchecked choices
|
|
170
|
+
hover to `--fill-indicator-hover`; off switches hover and press through
|
|
171
|
+
`--fill-indicator-hover` and `--fill-indicator-pressed`, which Switch maps
|
|
172
|
+
onto Button's neutral variant. Checked states retain their primary fill. An
|
|
173
|
+
invalid Switch renders Button's `danger` variant (`data-variant="danger"`)
|
|
174
|
+
whether on or off, and its knob position still shows the state; update
|
|
175
|
+
selectors that matched `aria-invalid` styling on the track. In an invalid
|
|
176
|
+
SelectionCard group, checked cards mix the danger tint into their selected
|
|
177
|
+
fill, so they stay distinct from unchecked cards. Stepper numbers keep their stronger fill for readability, and the
|
|
178
|
+
current step keeps its soft primary fill (the `active` Button variant when
|
|
179
|
+
navigable), distinct from solid completed steps.
|
|
180
|
+
- TopNav uses the new `--color-header`: the canvas stepped darker (6% text in
|
|
181
|
+
light palettes, 85% black in dark ones), so the header separates from the
|
|
182
|
+
canvas beside the sidebar as well as from SideNav's surface. Dark-theme
|
|
183
|
+
headers are near-black. Nested controls re-derive against the header.
|
|
184
|
+
Consumers overriding header backgrounds should set this token on
|
|
185
|
+
`:root, [data-theme]`, or keep their custom `--field-bg` and background
|
|
186
|
+
aligned. A custom dark palette sets `--color-header` itself.
|
|
187
|
+
- Attached ButtonGroups use 2px gaps; selected segments use the primary Button
|
|
188
|
+
variant with no selection rail. Update consumer groups from
|
|
189
|
+
`variant={selected ? "active" : "neutral"}` to
|
|
190
|
+
`variant={selected ? "primary" : "neutral"}`, retaining `aria-pressed`. A
|
|
191
|
+
focused attached segment is lifted above its neighbours so its focus ring is
|
|
192
|
+
never painted over. Table rows alternate instead of carrying rules: the
|
|
193
|
+
alternate row is 3% text into the table's own ground (`--table-row-alt`,
|
|
194
|
+
declared on `.ds-table`), so a Table on the canvas or a panel alternates as
|
|
195
|
+
visibly as one in a TableFrame.
|
|
196
|
+
Drawers have no page-facing border; overlay separation comes from shadows.
|
|
197
|
+
- Drag placeholders (Board cards and lanes, SortableList items with a custom
|
|
198
|
+
overlay) are recessed slots: the pressed step of their own fill, distinct
|
|
199
|
+
from the lane and from resting items. Their drag handles stay visible, so
|
|
200
|
+
keyboard focus and its ring remain on the handle throughout a keyboard drag.
|
|
201
|
+
- Selection cards, sortable list items, EntryPicker items and results,
|
|
202
|
+
AssetCards and the rich-text editor's writing area rest on the new
|
|
203
|
+
`--fill-card`: `--color-surface` on the canvas, lowered to `--fill-row-alt`
|
|
204
|
+
inside Modal, Drawer and TableFrame so they keep their shape there. The
|
|
205
|
+
editor toolbar and storyblocks step from the same fill. A custom
|
|
206
|
+
surface-coloured container hosting them sets
|
|
207
|
+
`--fill-card: var(--fill-row-alt)`.
|
|
208
|
+
- Every library ground (panels, toolbars, footers, cards, messages, raised
|
|
209
|
+
surfaces) now paints `var(--field-bg)`, so its controls derive from the fill
|
|
210
|
+
it actually shows. Setting `--field-bg` on one of these containers now
|
|
211
|
+
repaints it as well. The EditLayout details rail and sheet use the band as
|
|
212
|
+
their ground (the rail now carries `ds-field-surface`), and navigation Drawer
|
|
213
|
+
footers use the surface they paint.
|
|
214
|
+
- Field hover is now the weakest field state: invalid fields keep their danger
|
|
215
|
+
fill under the pointer, and keyboard-focused fields keep their focus fill.
|
|
216
|
+
- Neutral soft Badges (tags, counts, draft and archived) and initials Avatars
|
|
217
|
+
use `--fill-control`, a step from the fill they sit on, so they read on the
|
|
218
|
+
canvas, the header, bands and any surface. Toned statuses keep their status
|
|
219
|
+
fills. `--status-draft-text` and `--status-archived-text` are now 50% text
|
|
220
|
+
into muted (60% in Cherry Glaze), so those labels keep 4.5:1 on every
|
|
221
|
+
neutral and hovered step; custom status tabs using them get the darker ink.
|
|
222
|
+
- New `--field-paint`: a field surface that paints a hover, drag or active
|
|
223
|
+
fill over its ground names it here, and `--fill-control` and its steps derive
|
|
224
|
+
from it. Hovered and dragged SortableList items, Board cards and lanes,
|
|
225
|
+
SelectionCards, AssetCards, interactive and selected Table rows, and hovered
|
|
226
|
+
or active SideNav rows (now field surfaces) set it, so badges, avatars and
|
|
227
|
+
neutral Buttons inside step from the fill actually shown. Every surface
|
|
228
|
+
resets it to `initial`. Custom hoverable containers set
|
|
229
|
+
`--field-paint: var(--field-hover)` beside their hover background and carry
|
|
230
|
+
`ds-field-surface`.
|
|
231
|
+
- TagsInput chips step 8% text from the field's current fill (rest, hover,
|
|
232
|
+
focus or invalid, exposed as `--tags-fill`) and are field surfaces, so chips
|
|
233
|
+
and their remove Buttons stay visible in every field state.
|
|
234
|
+
- Grouped avatars are cut apart by a transparent 2px gap (a CSS mask), so the
|
|
235
|
+
gap shows whatever is painted behind the group, including hovered rows. A
|
|
236
|
+
focused avatar rises uncut above its neighbour. Remove local rings or
|
|
237
|
+
borders added to separate grouped avatars.
|
|
238
|
+
- EntryPicker draft and removed items change only their ground, so reorderable
|
|
239
|
+
items step on hover and as drag placeholders like any other item. A
|
|
240
|
+
SortableList drag overlay keeps the list's card fill instead of the hover
|
|
241
|
+
step. It copies none of the item's classes or data attributes, so a toned
|
|
242
|
+
overlay is styled through `renderDragOverlay` content.
|
|
243
|
+
- Horizontal rules in the rich-text editor (`---`, saved as `horizontalRule`)
|
|
244
|
+
paint a 2px bar in `--fill-control-pressed`, and a selected rule shows the
|
|
245
|
+
focus outline. Bare page `hr` elements keep spacing only.
|
|
246
|
+
- The first SideNav section after a SideNavHeader has a tighter top padding.
|
|
247
|
+
- ColourPanel thumbs carry a surface ring and a text ring, so the selection is
|
|
248
|
+
visible over the colour it sits on. Swatches have an inner text-tinted
|
|
249
|
+
hairline, so a swatch matching the panel stays visible. Calendar and
|
|
250
|
+
ColourPanel header bands step 7% text from the raised panel, so they read in
|
|
251
|
+
every theme, including Black Hawaii and Cherry Glaze.
|
|
252
|
+
- Storyblocks have no start rail on the block or title bar, including selected,
|
|
253
|
+
draft and missing states. State fills and keyboard focus outlines remain;
|
|
254
|
+
bar/body padding no longer reserves rail space. Saved values and callbacks
|
|
255
|
+
are unchanged. Remove local CSS that restores a storyblock start rail.
|
|
256
|
+
- Light's `--color-surface-subtle` moves from `#eef2f7` to `#e9edf3` so bands,
|
|
257
|
+
Board lanes, the EditLayout rail, footers, neutral banners and empty states
|
|
258
|
+
separate from the canvas. Cherry Glaze bands and warning fills, and Black
|
|
259
|
+
Hawaii bands, raised surfaces and success/warning/danger fills, change to
|
|
260
|
+
keep states distinguishable.
|
|
261
|
+
Tone text is adjusted where the new soft fills need stronger contrast.
|
|
262
|
+
- New tokens: `--focus-width`, `--fill-control`, `--fill-control-hover`,
|
|
263
|
+
`--fill-control-pressed`, `--fill-indicator`, `--fill-indicator-hover`,
|
|
264
|
+
`--fill-indicator-pressed`, `--fill-band`, `--fill-row-alt`, `--fill-card`,
|
|
265
|
+
`--field-paint`, `--indicator-tint`, `--color-header`, `--button-active-bg`
|
|
266
|
+
and `--rail-direction`.
|
|
267
|
+
The field tint ladder is now 7/10/14/18%; invalid fill is 12% danger.
|
|
268
|
+
- `--button-active-bg` is the `active` Button variant's rest fill
|
|
269
|
+
(`--color-primary-soft` by default). Containers with a primary-soft selected
|
|
270
|
+
fill (selected Table rows, SelectionCards, AssetCards, EntryPicker results,
|
|
271
|
+
CollectionView selection toolbars and Board drop targets) raise it to
|
|
272
|
+
`--color-primary-soft-pressed` so active buttons stay visible. Hover and press
|
|
273
|
+
step from it on the soft ladder. A custom container with a soft selected fill
|
|
274
|
+
sets `--button-active-bg` to a fill that differs from its own.
|
|
275
|
+
- `--rail-direction` is `1` in left-to-right scopes and `-1` in right-to-left
|
|
276
|
+
ones, including nested `dir` scopes. The library derives it from `dir`;
|
|
277
|
+
multiply horizontal inset offsets for asset/table selection rails by it.
|
|
278
|
+
- Badge small/medium/large heights remain 20/24/28px. Fixed control heights,
|
|
279
|
+
picker contracts, callbacks, saved values and FormEditor schemas are unchanged.
|
|
280
|
+
`--asset-tile-min-width` and `--asset-tile-gap` remain supported grid sizing
|
|
281
|
+
tokens; they are not component aliases. Existing semantic colour tokens such
|
|
282
|
+
as `--color-border-strong` still support graphics, status and crop guides.
|
|
283
|
+
|
|
284
|
+
Verification for consuming projects:
|
|
285
|
+
|
|
286
|
+
- Repeat the searches and resolve all active code/configuration matches for
|
|
287
|
+
removed APIs. Run typecheck, tests and production builds for every consuming
|
|
288
|
+
application and shared package. Confirm package-root and component imports.
|
|
289
|
+
- Check all four themes, custom themed subtrees and nested overlays. Confirm
|
|
290
|
+
fields, buttons, badges and selected rows separate from their local ground.
|
|
291
|
+
- Exercise keyboard focus, checked/unchecked/indeterminate and disabled states,
|
|
292
|
+
validation, attached groups, selected/draft/missing items, drag placeholders,
|
|
293
|
+
contained images and expanded rich-text editors. Verify grouped selections
|
|
294
|
+
match primary Buttons in rest/hover/press/disabled states. Confirm rails appear
|
|
295
|
+
only on selected asset cards and table rows, including RTL. Check invalid
|
|
296
|
+
fields/editors, navigation, quotes, picker states and both message appearances
|
|
297
|
+
without rails or rail padding. Check softer
|
|
298
|
+
unchecked/off controls, and the distinct header/sidebar fills, including
|
|
299
|
+
header actions and scoped themes. Check narrow layouts and RTL.
|
|
300
|
+
- Hover invalid and keyboard-focused fields: the danger or focus fill remains.
|
|
301
|
+
Tab through attached ButtonGroups and confirm each focus ring is complete.
|
|
302
|
+
Drag Board cards, Board lanes and custom-overlay SortableList items with the
|
|
303
|
+
keyboard: the placeholder reads as a slot and the handle keeps its ring.
|
|
304
|
+
- Place selection cards, sortable lists, EntryPickers, AssetGrids and rich-text
|
|
305
|
+
editors on the canvas, in a Modal, a Drawer, a TableFrame and any custom
|
|
306
|
+
surface-coloured container: each keeps a visible shape. Check AvatarGroups
|
|
307
|
+
(including inside hovered rows), avatars and badges on the TopNav header,
|
|
308
|
+
neutral banners and Board lanes on the canvas, the EditLayout details rail
|
|
309
|
+
and narrow sheet, ColourPanel thumbs over matching colours, white and
|
|
310
|
+
near-surface swatches, and Calendar/ColourPanel headers in all themes.
|
|
311
|
+
- Hover SideNav rows with count badges, and hover and drag draft or removed
|
|
312
|
+
items in a reorderable EntryPicker. Hover interactive Table rows, cards and
|
|
313
|
+
list items that hold tag, draft or archived Badges and initials Avatars:
|
|
314
|
+
each stays visible on the hover fill. Put draft and archived Badges on bands
|
|
315
|
+
(the EditLayout rail, toolbars, footers) and the header.
|
|
316
|
+
- Type, hover, focus and invalidate a TagsInput: chips and their remove
|
|
317
|
+
Buttons stay visible. Place a bare Table on the canvas and confirm rows
|
|
318
|
+
alternate. Confirm the TopNav separates from the canvas beside the SideNav.
|
|
319
|
+
Insert `---` in a rich-text editor and select the rule. Show a SelectionCard
|
|
320
|
+
group error with some cards checked: checked cards remain distinct.
|
|
321
|
+
Hover and press `active` Buttons inside selected rows and cards: each step
|
|
322
|
+
moves further from rest.
|
|
323
|
+
- Confirm selection/errors do not move text or affixes, Badge sizes remain
|
|
324
|
+
stable, and saved form/editor values round-trip without changes. Refresh
|
|
325
|
+
affected visual snapshots only after inspecting the new styling.
|
|
326
|
+
|
|
5
327
|
## 0.11.0
|
|
6
328
|
|
|
7
329
|
### Breaking changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("./colour-BmtxDlWF.cjs"),t=require("../components/Button/index.cjs"),n=require("./mergeRefs-CZ-SArlE.cjs"),r=require("./useTooltip-
|
|
2
|
-
//# sourceMappingURL=Avatar-
|
|
1
|
+
const e=require("./colour-BmtxDlWF.cjs"),t=require("../components/Button/index.cjs"),n=require("./mergeRefs-CZ-SArlE.cjs"),r=require("./useTooltip-C7ON4nkV.cjs");let i=require("react"),a=require("react/jsx-runtime"),o=require("colord"),s=require("colord/plugins/a11y");s=e.a(s,1),(0,o.extend)([s.default]);function c(t){let n=t?e.i(t):null;if(n&&n.alpha()===1)return{"--avatar-background":n.toHex(),"--avatar-foreground":n.contrast(`#000`)>=n.contrast(`#fff`)?`#000000`:`#ffffff`}}var l={24:`xs`,32:`sm`,40:`md`};function u(e){let t=e.trim().split(/\s+/);return((t[0]?.[0]??``)+(t.length>1?t[t.length-1][0]:``)).toUpperCase()}function d(e){let t={},n={};for(let[r,i]of Object.entries(e))(r.startsWith(`aria-`)?t:n)[r]=i;return{aria:t,other:n}}function f(e,t,n){return e?t?-1:void 0:!t&&n?0:void 0}function p({name:e,src:t}){return(0,a.jsx)(`span`,{className:`ds-avatar__content`,children:t?(0,a.jsx)(`img`,{src:t,alt:``}):u(e)})}function m({href:e,target:n,rel:r,hasCallback:i,size:o,semantics:s,children:c}){return e?(0,a.jsx)(`a`,{className:`ds-avatar__control`,href:e,target:n,rel:r,...s,children:c}):i?(0,a.jsx)(t.Button,{variant:`simple`,size:l[o],isIconOnly:!0,className:`ds-avatar__control`,...s,children:c}):(0,a.jsx)(a.Fragment,{children:c})}var h=(0,i.forwardRef)(function({name:e,src:t,colour:o,style:s,size:l=24,tooltip:u=e,href:h,target:g,rel:_,className:v,onClick:y,onMouseEnter:b,onMouseLeave:x,onFocus:S,onBlur:C,id:w,tabIndex:T,"aria-label":E=e,"aria-describedby":D,"aria-hidden":O,...k},A){let j=O===!0||O===`true`,M=!!h||!!y,{anchorRef:N,description:P,triggerProps:F,panel:I}=r.t(!j&&u,{placement:`top`,className:`ds-avatar-tooltip`}),L=(0,i.useMemo)(()=>n.t(N,A),[N,A]),R=(0,i.useMemo)(()=>c(o),[o]),{aria:z,other:B}=d(k),V={...z,id:w,"aria-label":E,"aria-describedby":[D,P].filter(Boolean).join(` `)||void 0,tabIndex:T??f(M,j,!!u)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`span`,{ref:L,role:M?void 0:`img`,"aria-hidden":O,...M?{}:V,"data-size":l,className:[`ds-avatar`,v].filter(Boolean).join(` `),...B,style:{...s,...R},onClick:y,...F({onMouseEnter:b,onMouseLeave:x,onFocus:S,onBlur:C}),children:(0,a.jsx)(m,{href:h,target:g,rel:_,hasCallback:!!y,size:l,semantics:V,children:(0,a.jsx)(p,{name:e,src:t})})}),I]})});function g({names:e}){let{anchorRef:t,description:n,triggerProps:i,panel:o}=r.t(e.join(`, `),{placement:`top`,className:`ds-avatar-tooltip`}),s=e.length;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(`span`,{ref:t,role:`img`,className:`ds-avatar-group__count`,tabIndex:0,"aria-label":`${s} more ${s===1?`person`:`people`}`,"aria-describedby":n,...i(),children:[`+`,s]}),o]})}var _=(0,i.forwardRef)(function({people:e,size:t=24,className:n,...r},i){return(0,a.jsxs)(`span`,{ref:i,role:`group`,"aria-label":e.map(e=>e.name).join(`, `),className:[`ds-avatar-group`,n].filter(Boolean).join(` `),...r,children:[e.slice(0,3).map(({name:e,src:n,colour:r,tooltip:i,href:o,target:s,rel:c,onClick:l},u)=>(0,a.jsx)(h,{name:e,src:n,colour:r,tooltip:i,href:o,target:s,rel:c,onClick:l,size:t},`${e}-${u}`)),e.length>3&&(0,a.jsx)(g,{names:e.slice(3).map(e=>e.name)})]})});Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return h}});
|
|
2
|
+
//# sourceMappingURL=Avatar-BY0dAItT.cjs.map
|