@spillway-cms/blocks 0.1.23 → 0.1.25
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/THIRD_PARTY_NOTICES.md +49 -0
- package/dist/breadcrumbs.d.ts +27 -0
- package/dist/breadcrumbs.js +44 -0
- package/dist/breadcrumbs.js.map +1 -0
- package/dist/collection.d.ts +32 -1
- package/dist/collection.js +40 -5
- package/dist/collection.js.map +1 -1
- package/dist/config.d.ts +64 -4
- package/dist/config.js +124 -24
- package/dist/config.js.map +1 -1
- package/dist/countdown.d.ts +34 -0
- package/dist/countdown.js +81 -0
- package/dist/countdown.js.map +1 -0
- package/dist/css.js +43 -0
- package/dist/css.js.map +1 -1
- package/dist/documents.d.ts +52 -0
- package/dist/documents.js +146 -0
- package/dist/documents.js.map +1 -0
- package/dist/examples.js +141 -1
- package/dist/examples.js.map +1 -1
- package/dist/form.d.ts +11 -3
- package/dist/form.js +27 -11
- package/dist/form.js.map +1 -1
- package/dist/glossary.d.ts +56 -0
- package/dist/glossary.js +117 -0
- package/dist/glossary.js.map +1 -0
- package/dist/hours.d.ts +44 -0
- package/dist/hours.js +163 -0
- package/dist/hours.js.map +1 -0
- package/dist/icons-data.d.ts +18 -0
- package/dist/icons-data.js +117 -0
- package/dist/icons-data.js.map +1 -0
- package/dist/icons.d.ts +31 -0
- package/dist/icons.js +49 -0
- package/dist/icons.js.map +1 -0
- package/dist/index.d.ts +27 -3
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/language-switcher.d.ts +38 -0
- package/dist/language-switcher.js +60 -0
- package/dist/language-switcher.js.map +1 -0
- package/dist/listing-script.d.ts +13 -0
- package/dist/listing-script.js +44 -0
- package/dist/listing-script.js.map +1 -0
- package/dist/location-map.d.ts +60 -0
- package/dist/location-map.js +215 -0
- package/dist/location-map.js.map +1 -0
- package/dist/marketing.d.ts +3 -0
- package/dist/marketing.js +5 -2
- package/dist/marketing.js.map +1 -1
- package/dist/meta.js +75 -15
- package/dist/meta.js.map +1 -1
- package/dist/motion.d.ts +1 -1
- package/dist/motion.js +3 -2
- package/dist/motion.js.map +1 -1
- package/dist/progress.d.ts +46 -0
- package/dist/progress.js +106 -0
- package/dist/progress.js.map +1 -0
- package/dist/registry-package.js +1 -1
- package/dist/registry-package.js.map +1 -1
- package/dist/registry-types.d.ts +5 -0
- package/dist/registry-types.js.map +1 -1
- package/dist/styles.css +376 -2
- package/dist/styles.js +95 -0
- package/dist/styles.js.map +1 -1
- package/dist/toc.d.ts +32 -0
- package/dist/toc.js +79 -0
- package/dist/toc.js.map +1 -0
- package/dist/utility-script.d.ts +20 -0
- package/dist/utility-script.js +90 -0
- package/dist/utility-script.js.map +1 -0
- package/dist/utility-shared.d.ts +18 -0
- package/dist/utility-shared.js +32 -0
- package/dist/utility-shared.js.map +1 -0
- package/dist/video.d.ts +36 -1
- package/dist/video.js +157 -4
- package/dist/video.js.map +1 -1
- package/dist/widgets.d.ts +95 -0
- package/dist/widgets.js +449 -0
- package/dist/widgets.js.map +1 -0
- package/package.json +4 -3
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
`@spillway-cms/blocks` bundles a selection of [Lucide](https://lucide.dev) icons (`src/icons-data.ts`, from `lucide-static` 1.76.0). Lucide is licensed under the ISC License; the icons derived from Feather are licensed under the MIT License:
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
ISC License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2026 Lucide Icons and Contributors
|
|
9
|
+
|
|
10
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
11
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
12
|
+
copyright notice and this permission notice appear in all copies.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
15
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
17
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
18
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
19
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
20
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
The following Lucide icons are derived from the Feather project:
|
|
25
|
+
|
|
26
|
+
airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
|
|
27
|
+
|
|
28
|
+
The MIT License (MIT) (for the icons listed above)
|
|
29
|
+
|
|
30
|
+
Copyright (c) 2013-present Cole Bemis
|
|
31
|
+
|
|
32
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
33
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
34
|
+
in the Software without restriction, including without limitation the rights
|
|
35
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
36
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
37
|
+
furnished to do so, subject to the following conditions:
|
|
38
|
+
|
|
39
|
+
The above copyright notice and this permission notice shall be included in all
|
|
40
|
+
copies or substantial portions of the Software.
|
|
41
|
+
|
|
42
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
43
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
44
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
45
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
46
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
47
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
48
|
+
SOFTWARE.
|
|
49
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Breadcrumbs block: the trail from the home page to the page being viewed, as a navigation landmark with an ordered list
|
|
3
|
+
* (the WAI-ARIA breadcrumb pattern: `aria-label="Breadcrumb"`, `aria-current="page"` on the last link).
|
|
4
|
+
*
|
|
5
|
+
* The server resolves the trail (`items`) before render, from the page's path (the titles of the published pages at each
|
|
6
|
+
* ancestor path, the same trail as the BreadcrumbList structured data) or from the page's position in the main menu. It is
|
|
7
|
+
* placed above the content by Structure → Placements or by Site settings → Breadcrumbs. Server-safe; nothing renders when there
|
|
8
|
+
* is no trail (the home page), except a placeholder in the page builder.
|
|
9
|
+
*/
|
|
10
|
+
import type { ComponentConfig } from '@puckeditor/core';
|
|
11
|
+
export interface BreadcrumbItem {
|
|
12
|
+
label: string;
|
|
13
|
+
/** Absent for a menu heading without a link. */
|
|
14
|
+
href?: string;
|
|
15
|
+
/** The page being viewed (the last item). */
|
|
16
|
+
current?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface BreadcrumbsBlockProps {
|
|
19
|
+
/** 'path': the page's path, as the structured data does; 'menu': its position in the main menu (the path when it is not in it). */
|
|
20
|
+
source: 'path' | 'menu';
|
|
21
|
+
/** Whether the trail ends with the page itself. */
|
|
22
|
+
showCurrent: boolean;
|
|
23
|
+
/** Resolved by the server; never stored. */
|
|
24
|
+
items?: BreadcrumbItem[];
|
|
25
|
+
}
|
|
26
|
+
export declare const breadcrumbsBlockComponent: ComponentConfig<BreadcrumbsBlockProps>;
|
|
27
|
+
export declare const breadcrumbsBlockCss = "/* ---------- Breadcrumbs ---------- */\n.sw-breadcrumbs { padding-top: 1rem; padding-bottom: 0; font-size: 0.875rem; }\n.sw-breadcrumbs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; }\n.sw-breadcrumbs__item { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }\n.sw-breadcrumbs__item + .sw-breadcrumbs__item::before { content: \"\"; flex: none; width: 0.4em; height: 0.4em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); opacity: 0.55; }\n.sw-breadcrumbs__item a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.2em; }\n.sw-breadcrumbs__item a:hover { text-decoration-color: currentColor; }\n.sw-breadcrumbs__item a:focus-visible { outline: 2px solid var(--sw-color-primary, #1d4ed8); outline-offset: 2px; border-radius: 2px; }\n.sw-breadcrumbs__item [aria-current=\"page\"] { font-weight: 600; text-decoration: none; }\n.sw-breadcrumbs__placeholder { padding: 0.75rem 1rem; border: 1px dashed color-mix(in srgb, currentColor 35%, transparent); border-radius: var(--sw-radius, 8px); font-size: 0.9rem; opacity: 0.8; }\n";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export const breadcrumbsBlockComponent = {
|
|
3
|
+
label: 'Breadcrumbs',
|
|
4
|
+
fields: {
|
|
5
|
+
source: {
|
|
6
|
+
type: 'radio',
|
|
7
|
+
label: 'Trail from',
|
|
8
|
+
options: [
|
|
9
|
+
{ label: "The page's address", value: 'path' },
|
|
10
|
+
{ label: 'The main menu', value: 'menu' },
|
|
11
|
+
],
|
|
12
|
+
},
|
|
13
|
+
showCurrent: {
|
|
14
|
+
type: 'radio',
|
|
15
|
+
label: 'End with this page',
|
|
16
|
+
options: [
|
|
17
|
+
{ label: 'Yes', value: true },
|
|
18
|
+
{ label: 'No', value: false },
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
defaultProps: { source: 'path', showCurrent: true },
|
|
23
|
+
render: ({ items, source, puck }) => {
|
|
24
|
+
const list = Array.isArray(items) ? items.filter((i) => i && typeof i.label === 'string' && i.label) : [];
|
|
25
|
+
if (!list.length) {
|
|
26
|
+
if (!puck?.isEditing)
|
|
27
|
+
return _jsx(_Fragment, {});
|
|
28
|
+
return (_jsx("section", { className: "sw-block sw-breadcrumbs sw-breadcrumbs--placeholder", children: _jsx("div", { className: "sw-container", children: _jsxs("div", { className: "sw-breadcrumbs__placeholder", role: "note", children: ["Breadcrumbs: the trail to this page from ", source === 'menu' ? 'the main menu' : 'its address', ", shown on the published page."] }) }) }));
|
|
29
|
+
}
|
|
30
|
+
return (_jsx("nav", { className: "sw-block sw-breadcrumbs", "aria-label": "Breadcrumb", children: _jsx("div", { className: "sw-container", children: _jsx("ol", { className: "sw-breadcrumbs__list", children: list.map((item, i) => (_jsx("li", { className: "sw-breadcrumbs__item", children: item.href ? (_jsx("a", { href: item.href, "aria-current": item.current ? 'page' : undefined, children: item.label })) : (_jsx("span", { "aria-current": item.current ? 'page' : undefined, children: item.label })) }, `${item.href ?? ''}-${i}`))) }) }) }));
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
export const breadcrumbsBlockCss = `/* ---------- Breadcrumbs ---------- */
|
|
34
|
+
.sw-breadcrumbs { padding-top: 1rem; padding-bottom: 0; font-size: 0.875rem; }
|
|
35
|
+
.sw-breadcrumbs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; }
|
|
36
|
+
.sw-breadcrumbs__item { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }
|
|
37
|
+
.sw-breadcrumbs__item + .sw-breadcrumbs__item::before { content: ""; flex: none; width: 0.4em; height: 0.4em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); opacity: 0.55; }
|
|
38
|
+
.sw-breadcrumbs__item a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.2em; }
|
|
39
|
+
.sw-breadcrumbs__item a:hover { text-decoration-color: currentColor; }
|
|
40
|
+
.sw-breadcrumbs__item a:focus-visible { outline: 2px solid var(--sw-color-primary, #1d4ed8); outline-offset: 2px; border-radius: 2px; }
|
|
41
|
+
.sw-breadcrumbs__item [aria-current="page"] { font-weight: 600; text-decoration: none; }
|
|
42
|
+
.sw-breadcrumbs__placeholder { padding: 0.75rem 1rem; border: 1px dashed color-mix(in srgb, currentColor 35%, transparent); border-radius: var(--sw-radius, 8px); font-size: 0.9rem; opacity: 0.8; }
|
|
43
|
+
`;
|
|
44
|
+
//# sourceMappingURL=breadcrumbs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumbs.js","sourceRoot":"","sources":["../src/breadcrumbs.tsx"],"names":[],"mappings":";AA4BA,MAAM,CAAC,MAAM,yBAAyB,GAA2C;IAC/E,KAAK,EAAE,aAAa;IACpB,MA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,yBAAyB,gBAAY,YAAY,YAC9D,cAAK,SAAS,EAAC,cAAc,YAC3B,aAAI,SAAS,EAAC,sBAAsB,YACjC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,aAAoC,SAAS,EAAC,sBAAsB,YACjE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CACX,YAAG,IAAI,EAAE,IAAI,CAAC,IAAI,kBAAgB,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,YAChE,IAAI,CAAC,KAAK,GACT,CACL,CAAC,CAAC,CAAC,CACF,+BAAoB,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,YAAG,IAAI,CAAC,KAAK,GAAQ,CAC3E,IAPM,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE,IAAI,CAAC,EAAE,CAQ7B,CACN,CAAC,GACC,GACD,GACF,CACP,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG;;;;;;;;;;CAUlC,CAAC"}
|
package/dist/collection.d.ts
CHANGED
|
@@ -27,6 +27,9 @@ export interface ListingData {
|
|
|
27
27
|
state: {
|
|
28
28
|
q: string;
|
|
29
29
|
values: Record<string, string>;
|
|
30
|
+
multi?: Record<string, string[]>;
|
|
31
|
+
letter?: string;
|
|
32
|
+
per?: number;
|
|
30
33
|
from: string;
|
|
31
34
|
to: string;
|
|
32
35
|
sort?: string;
|
|
@@ -47,7 +50,24 @@ export interface ListingData {
|
|
|
47
50
|
href: string;
|
|
48
51
|
}[];
|
|
49
52
|
sortOptions?: SortOption[];
|
|
53
|
+
/** The A to Z bar: each letter with its link, or no link when nothing starts with it under the other choices. */
|
|
54
|
+
letters?: {
|
|
55
|
+
field: string;
|
|
56
|
+
label: string;
|
|
57
|
+
available: string[];
|
|
58
|
+
current: string;
|
|
59
|
+
allHref: string;
|
|
60
|
+
items: {
|
|
61
|
+
letter: string;
|
|
62
|
+
href?: string;
|
|
63
|
+
active: boolean;
|
|
64
|
+
}[];
|
|
65
|
+
};
|
|
66
|
+
/** The page sizes a visitor may choose (the block's `pageSizes`). */
|
|
67
|
+
pageSizes?: number[];
|
|
50
68
|
}
|
|
69
|
+
/** Collection block props that make it interactive (a form, a pager or letters): the page then carries LISTING_SCRIPT once. */
|
|
70
|
+
export declare function isInteractiveCollection(props: Record<string, unknown>): boolean;
|
|
51
71
|
export interface CollectionProps {
|
|
52
72
|
collectionId: string;
|
|
53
73
|
display: CollectionDisplay;
|
|
@@ -60,6 +80,8 @@ export interface CollectionProps {
|
|
|
60
80
|
/** Visitor-facing filters, rendered as a GET form by the server. */
|
|
61
81
|
filters: ExposedFilter[];
|
|
62
82
|
pageSize: number;
|
|
83
|
+
/** Page sizes a visitor may choose ("12, 24, 48"): a Results per page select (?per=). Empty: no choice. */
|
|
84
|
+
pageSizes?: string;
|
|
63
85
|
showPager: boolean;
|
|
64
86
|
showResultCount: boolean;
|
|
65
87
|
/** Fields to show: the table's columns, or lines under each card or list item (title, dates, author and type's fields). */
|
|
@@ -85,5 +107,14 @@ export interface CollectionProps {
|
|
|
85
107
|
xlsx?: string;
|
|
86
108
|
};
|
|
87
109
|
}
|
|
110
|
+
export declare function FilterForm({ id, filters, listing, sortControl }: {
|
|
111
|
+
id: string;
|
|
112
|
+
filters: ExposedFilter[];
|
|
113
|
+
listing: ListingData;
|
|
114
|
+
sortControl: boolean;
|
|
115
|
+
}): import("react").JSX.Element;
|
|
116
|
+
export declare function Pager({ listing }: {
|
|
117
|
+
listing: ListingData;
|
|
118
|
+
}): import("react").JSX.Element | null;
|
|
88
119
|
export declare const collectionComponent: ComponentConfig<CollectionProps>;
|
|
89
|
-
export declare const collectionCss = "/* ---------- Collection ---------- */\n\n.sw-collection__list {\n display: grid;\n gap: var(--sw-space-3);\n grid-template-columns: 1fr;\n list-style: none;\n margin: 0;\n padding: 0;\n}\n@media (min-width: 640px) {\n .sw-collection--cards .sw-collection__list,\n .sw-collection--grid .sw-collection__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n}\n@media (min-width: 900px) {\n .sw-collection--cols-3 .sw-collection__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }\n .sw-collection--cols-4 .sw-collection__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }\n}\n.sw-collection--list .sw-collection__list { gap: 0; }\n.sw-collection__item {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n}\n.sw-collection--cards .sw-collection__item,\n.sw-collection--grid .sw-collection__item {\n border: 1px solid var(--sw-color-border);\n border-radius: var(--sw-radius, 8px);\n background: var(--sw-color-bg, #ffffff);\n}\n.sw-collection--list .sw-collection__item {\n padding: var(--sw-space-2) 0;\n border-top: 1px solid var(--sw-color-border);\n}\n.sw-collection--list .sw-collection__item:last-child { border-bottom: 1px solid var(--sw-color-border); }\n.sw-collection__image {\n display: block;\n width: 100%;\n aspect-ratio: 16 / 9;\n object-fit: cover;\n}\n.sw-collection__body {\n display: flex;\n flex-direction: column;\n gap: var(--sw-space-1);\n}\n.sw-collection--cards .sw-collection__body,\n.sw-collection--grid .sw-collection__body { padding: var(--sw-space-3); }\n.sw-collection--grid .sw-collection__body { padding: var(--sw-space-2); }\n.sw-collection__title { margin: 0; font-size: 1.2rem; }\n.sw-collection--grid .sw-collection__title { font-size: 1rem; }\n.sw-collection__title a { color: inherit; text-decoration: none; }\n.sw-collection__item--link { position: relative; transition: border-color 120ms ease; }\n.sw-collection__item--link .sw-collection__title a::after { content: \"\"; position: absolute; inset: 0; }\n.sw-collection--cards .sw-collection__item--link:hover,\n.sw-collection--grid .sw-collection__item--link:hover { border-color: var(--sw-color-primary, #1d4ed8); }\n.sw-collection__item--link:focus-within { box-shadow: var(--sw-focus-ring); }\n.sw-collection__date { font-size: 0.875rem; color: var(--sw-color-muted); }\n.sw-collection__summary { margin: 0; max-width: 36em; color: var(--sw-color-muted); }\n.sw-collection__empty { color: var(--sw-color-muted); }\n.sw-collection__placeholder {\n padding: var(--sw-space-3);\n border: 1px dashed var(--sw-color-border);\n border-radius: var(--sw-radius, 8px);\n background: var(--sw-color-surface);\n color: var(--sw-color-muted);\n font-size: 0.9rem;\n text-align: center;\n}\n\n/* Exposed filters and pager */\n.sw-listing__form { margin-bottom: var(--sw-space-3); }\n.sw-listing__fields { display: flex; flex-wrap: wrap; gap: var(--sw-space-2); align-items: flex-end; }\n.sw-listing__field { display: flex; flex-direction: column; gap: 4px; min-width: 10rem; border: 0; margin: 0; padding: 0; }\n.sw-listing__field--search { flex: 1 1 14rem; }\n.sw-listing__label { font-size: 0.85rem; font-weight: 600; }\n.sw-listing__sublabel { font-size: 0.8rem; color: var(--sw-color-muted); }\n.sw-listing__dates { display: flex; flex-wrap: wrap; gap: var(--sw-space-1); align-items: center; }\n.sw-listing__input { font: inherit; padding: 0.5rem 0.65rem; border: 1px solid var(--sw-color-border); border-radius: var(--sw-radius, 8px); background: var(--sw-color-bg, #fff); color: inherit; min-width: 0; }\n.sw-listing__input:focus { outline: none; box-shadow: var(--sw-focus-ring); }\n.sw-listing__actions { display: flex; gap: var(--sw-space-2); align-items: center; }\n.sw-listing__reset { font-size: 0.9rem; }\n.sw-listing__count { margin: 0 0 var(--sw-space-2); color: var(--sw-color-muted); font-size: 0.9rem; }\n.sw-listing__pager { display: flex; align-items: center; justify-content: space-between; gap: var(--sw-space-2); margin-top: var(--sw-space-3); flex-wrap: wrap; }\n.sw-listing__pages { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }\n.sw-listing__pages a, .sw-listing__pages span { display: inline-block; min-width: 2rem; padding: 0.25rem 0.5rem; text-align: center; border-radius: var(--sw-radius, 8px); text-decoration: none; }\n.sw-listing__pages span[aria-current] { background: var(--sw-color-primary, #1d4ed8); color: var(--sw-color-primary-contrast, #fff); }\n.sw-listing__pager-disabled { color: var(--sw-color-muted); }\n\n/* Fields, table, groups and downloads (Collections level 2) */\n.sw-collection__fields { display: grid; grid-template-columns: max-content 1fr; gap: 2px var(--sw-space-2); margin: var(--sw-space-1) 0 0; font-size: 0.9rem; }\n.sw-collection__field { display: contents; }\n.sw-collection__fields dt { color: var(--sw-color-muted); }\n.sw-collection__fields dd { margin: 0; }\n.sw-collection__table-wrap { overflow-x: auto; }\n.sw-collection__table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }\n.sw-collection__table th, .sw-collection__table td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--sw-color-border); }\n.sw-collection__table th { font-weight: 600; white-space: nowrap; }\n.sw-collection__sort { color: inherit; text-decoration: none; }\n.sw-collection__sort:hover, .sw-collection__sort:focus-visible { text-decoration: underline; }\n.sw-collection__sort::after { content: \"\\2195\"; margin-left: 0.35em; color: var(--sw-color-muted); font-size: 0.85em; }\n.sw-collection__sort--asc::after { content: \"\\2191\"; color: inherit; }\n.sw-collection__sort--desc::after { content: \"\\2193\"; color: inherit; }\n.sw-collection__group + .sw-collection__group { margin-top: var(--sw-space-4); }\n.sw-collection__group-title { margin: 0 0 var(--sw-space-2); font-size: 1.25rem; }\n.sw-collection__exports { margin: var(--sw-space-3) 0 0; font-size: 0.9rem; color: var(--sw-color-muted); }\n.sw-collection__exports a { margin-right: var(--sw-space-2); }\n.sw-collection .sw-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }\n";
|
|
120
|
+
export declare const collectionCss = "/* ---------- Collection ---------- */\n\n.sw-collection__list {\n display: grid;\n gap: var(--sw-space-3);\n grid-template-columns: 1fr;\n list-style: none;\n margin: 0;\n padding: 0;\n}\n@media (min-width: 640px) {\n .sw-collection--cards .sw-collection__list,\n .sw-collection--grid .sw-collection__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n}\n@media (min-width: 900px) {\n .sw-collection--cols-3 .sw-collection__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }\n .sw-collection--cols-4 .sw-collection__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }\n}\n.sw-collection--list .sw-collection__list { gap: 0; }\n.sw-collection__item {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n}\n.sw-collection--cards .sw-collection__item,\n.sw-collection--grid .sw-collection__item {\n border: 1px solid var(--sw-color-border);\n border-radius: var(--sw-radius, 8px);\n background: var(--sw-color-bg, #ffffff);\n}\n.sw-collection--list .sw-collection__item {\n padding: var(--sw-space-2) 0;\n border-top: 1px solid var(--sw-color-border);\n}\n.sw-collection--list .sw-collection__item:last-child { border-bottom: 1px solid var(--sw-color-border); }\n.sw-collection__image {\n display: block;\n width: 100%;\n aspect-ratio: 16 / 9;\n object-fit: cover;\n}\n.sw-collection__body {\n display: flex;\n flex-direction: column;\n gap: var(--sw-space-1);\n}\n.sw-collection--cards .sw-collection__body,\n.sw-collection--grid .sw-collection__body { padding: var(--sw-space-3); }\n.sw-collection--grid .sw-collection__body { padding: var(--sw-space-2); }\n.sw-collection__title { margin: 0; font-size: 1.2rem; }\n.sw-collection--grid .sw-collection__title { font-size: 1rem; }\n.sw-collection__title a { color: inherit; text-decoration: none; }\n.sw-collection__item--link { position: relative; transition: border-color 120ms ease; }\n.sw-collection__item--link .sw-collection__title a::after { content: \"\"; position: absolute; inset: 0; }\n.sw-collection--cards .sw-collection__item--link:hover,\n.sw-collection--grid .sw-collection__item--link:hover { border-color: var(--sw-color-primary, #1d4ed8); }\n.sw-collection__item--link:focus-within { box-shadow: var(--sw-focus-ring); }\n.sw-collection__date { font-size: 0.875rem; color: var(--sw-color-muted); }\n.sw-collection__summary { margin: 0; max-width: 36em; color: var(--sw-color-muted); }\n.sw-collection__empty { color: var(--sw-color-muted); }\n.sw-collection__placeholder {\n padding: var(--sw-space-3);\n border: 1px dashed var(--sw-color-border);\n border-radius: var(--sw-radius, 8px);\n background: var(--sw-color-surface);\n color: var(--sw-color-muted);\n font-size: 0.9rem;\n text-align: center;\n}\n\n/* Exposed filters and pager */\n.sw-listing__form { margin-bottom: var(--sw-space-3); }\n.sw-listing__fields { display: flex; flex-wrap: wrap; gap: var(--sw-space-2); align-items: flex-end; }\n.sw-listing__field { display: flex; flex-direction: column; gap: 4px; min-width: 10rem; border: 0; margin: 0; padding: 0; }\n.sw-listing__field--search { flex: 1 1 14rem; }\n.sw-listing__label { font-size: 0.85rem; font-weight: 600; }\n.sw-listing__sublabel { font-size: 0.8rem; color: var(--sw-color-muted); }\n.sw-listing__dates { display: flex; flex-wrap: wrap; gap: var(--sw-space-1); align-items: center; }\n.sw-listing__input { font: inherit; padding: 0.5rem 0.65rem; border: 1px solid var(--sw-color-border); border-radius: var(--sw-radius, 8px); background: var(--sw-color-bg, #fff); color: inherit; min-width: 0; }\n.sw-listing__input:focus { outline: none; box-shadow: var(--sw-focus-ring); }\n.sw-listing__actions { display: flex; gap: var(--sw-space-2); align-items: center; }\n.sw-listing__reset { font-size: 0.9rem; }\n.sw-listing__count { margin: 0 0 var(--sw-space-2); color: var(--sw-color-muted); font-size: 0.9rem; }\n.sw-listing__pager { display: flex; align-items: center; justify-content: space-between; gap: var(--sw-space-2); margin-top: var(--sw-space-3); flex-wrap: wrap; }\n.sw-listing__pages { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }\n.sw-listing__pages a, .sw-listing__pages span { display: inline-block; min-width: 2rem; padding: 0.25rem 0.5rem; text-align: center; border-radius: var(--sw-radius, 8px); text-decoration: none; }\n.sw-listing__pages span[aria-current] { background: var(--sw-color-primary, #1d4ed8); color: var(--sw-color-primary-contrast, #fff); }\n.sw-listing__pager-disabled { color: var(--sw-color-muted); }\n.sw-listing__field--checkboxes { min-width: 12rem; }\n.sw-listing__checks { display: flex; flex-wrap: wrap; gap: 4px var(--sw-space-2); }\n.sw-listing__check { display: flex; align-items: center; gap: 6px; }\n.sw-listing__check input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--sw-color-primary, #1d4ed8); }\n.sw-listing__check input:focus-visible { outline: none; box-shadow: var(--sw-focus-ring); }\n.sw-listing__letters { margin: 0 0 var(--sw-space-2); }\n.sw-listing__letter-list { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }\n.sw-listing__letter { display: inline-block; min-width: 2rem; padding: 0.25rem 0.4rem; text-align: center; border-radius: var(--sw-radius, 8px); text-decoration: none; }\na.sw-listing__letter:hover { text-decoration: underline; }\na.sw-listing__letter[aria-current] { background: var(--sw-color-primary, #1d4ed8); color: var(--sw-color-primary-contrast, #fff); }\n.sw-listing__letter--empty { color: var(--sw-color-muted); opacity: 0.6; }\n.sw-collection[aria-busy=\"true\"] .sw-collection__results { opacity: 0.6; }\n.sw-collection__results:focus { outline: none; }\n\n/* Fields, table, groups and downloads (Collections level 2) */\n.sw-collection__fields { display: grid; grid-template-columns: max-content 1fr; gap: 2px var(--sw-space-2); margin: var(--sw-space-1) 0 0; font-size: 0.9rem; }\n.sw-collection__field { display: contents; }\n.sw-collection__fields dt { color: var(--sw-color-muted); }\n.sw-collection__fields dd { margin: 0; }\n.sw-collection__table-wrap { overflow-x: auto; }\n.sw-collection__table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }\n.sw-collection__table th, .sw-collection__table td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--sw-color-border); }\n.sw-collection__table th { font-weight: 600; white-space: nowrap; }\n.sw-collection__sort { color: inherit; text-decoration: none; }\n.sw-collection__sort:hover, .sw-collection__sort:focus-visible { text-decoration: underline; }\n.sw-collection__sort::after { content: \"\\2195\"; margin-left: 0.35em; color: var(--sw-color-muted); font-size: 0.85em; }\n.sw-collection__sort--asc::after { content: \"\\2191\"; color: inherit; }\n.sw-collection__sort--desc::after { content: \"\\2193\"; color: inherit; }\n.sw-collection__group + .sw-collection__group { margin-top: var(--sw-space-4); }\n.sw-collection__group-title { margin: 0 0 var(--sw-space-2); font-size: 1.25rem; }\n.sw-collection__exports { margin: var(--sw-space-3) 0 0; font-size: 0.9rem; color: var(--sw-color-muted); }\n.sw-collection__exports a { margin-right: var(--sw-space-2); }\n.sw-collection .sw-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }\n";
|
package/dist/collection.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
/** Collection block props that make it interactive (a form, a pager or letters): the page then carries LISTING_SCRIPT once. */
|
|
3
|
+
export function isInteractiveCollection(props) {
|
|
4
|
+
const list = (v) => Array.isArray(v) && v.length > 0;
|
|
5
|
+
return list(props.filters) || props.showPager === true || list(props.sortable) || (typeof props.pageSizes === 'string' ? /\d/.test(props.pageSizes) : list(props.pageSizes));
|
|
6
|
+
}
|
|
7
|
+
export function FilterForm({ id, filters, listing, sortControl }) {
|
|
3
8
|
const sortOptions = sortControl ? (listing.sortOptions ?? []) : [];
|
|
4
9
|
const currentSort = sortOptions.find((o) => o.active);
|
|
5
|
-
return (_jsxs("form", { className: "sw-listing__form", method: "get", action: listing.action, role: "search", "aria-label": "Filter results", children: [listing.hidden.map((h) => (_jsx("input", { type: "hidden", name: h.name, value: h.value }, h.name))), _jsxs("div", { className: "sw-listing__fields", children: [filters.map((f) => {
|
|
10
|
+
return (_jsxs("form", { className: "sw-listing__form", method: "get", action: listing.action, role: "search", "aria-label": "Filter results", children: [listing.hidden.map((h) => (_jsx("input", { type: "hidden", name: h.name, value: h.value }, h.name))), listing.letters?.current ? _jsx("input", { type: "hidden", name: "letter", value: listing.letters.current }) : null, _jsxs("div", { className: "sw-listing__fields", children: [filters.map((f) => {
|
|
6
11
|
const fid = `${id}-${f.field}`;
|
|
7
12
|
switch (f.kind) {
|
|
8
13
|
case 'search':
|
|
@@ -10,14 +15,24 @@ function FilterForm({ id, filters, listing, sortControl }) {
|
|
|
10
15
|
case 'select':
|
|
11
16
|
case 'taxonomy':
|
|
12
17
|
return (_jsxs("div", { className: "sw-listing__field", children: [_jsx("label", { className: "sw-listing__label", htmlFor: fid, children: f.label }), _jsxs("select", { id: fid, className: "sw-listing__input", name: f.field, defaultValue: listing.state.values[f.field] ?? '', children: [_jsx("option", { value: "", children: "All" }), (listing.options[f.field] ?? []).map((o) => (_jsx("option", { value: o.value, children: o.label }, o.value)))] })] }, f.field));
|
|
18
|
+
case 'checkboxes': {
|
|
19
|
+
const ticked = listing.state.multi?.[f.field] ?? [];
|
|
20
|
+
return (_jsxs("fieldset", { className: "sw-listing__field sw-listing__field--checkboxes", children: [_jsx("legend", { className: "sw-listing__label", children: f.label }), _jsx("div", { className: "sw-listing__checks", children: (listing.options[f.field] ?? []).map((o, i) => (_jsxs("div", { className: "sw-listing__check", children: [_jsx("input", { type: "checkbox", id: `${fid}-${i}`, name: f.field, value: o.value, defaultChecked: ticked.includes(o.value) }), _jsx("label", { htmlFor: `${fid}-${i}`, children: o.label })] }, o.value))) })] }, f.field));
|
|
21
|
+
}
|
|
13
22
|
case 'daterange':
|
|
14
23
|
return (_jsxs("fieldset", { className: "sw-listing__field sw-listing__field--dates", children: [_jsx("legend", { className: "sw-listing__label", children: f.label }), _jsxs("div", { className: "sw-listing__dates", children: [_jsx("label", { className: "sw-listing__sublabel", htmlFor: `${fid}-from`, children: "From" }), _jsx("input", { id: `${fid}-from`, className: "sw-listing__input", type: "date", name: "from", defaultValue: listing.state.from }), _jsx("label", { className: "sw-listing__sublabel", htmlFor: `${fid}-to`, children: "To" }), _jsx("input", { id: `${fid}-to`, className: "sw-listing__input", type: "date", name: "to", defaultValue: listing.state.to })] })] }, f.field));
|
|
15
24
|
default:
|
|
16
25
|
return null;
|
|
17
26
|
}
|
|
18
|
-
}), sortOptions.length ? (_jsxs("div", { className: "sw-listing__field", children: [_jsx("label", { className: "sw-listing__label", htmlFor: `${id}-sort`, children: "Sort by" }), _jsxs("div", { className: "sw-listing__dates", children: [_jsxs("select", { id: `${id}-sort`, className: "sw-listing__input", name: "sort", defaultValue: currentSort?.field ?? '', children: [currentSort ? null : _jsx("option", { value: "", children: "Default" }), sortOptions.map((o) => (_jsx("option", { value: o.field, children: o.label }, o.field)))] }), _jsx("label", { className: "sw-visually-hidden", htmlFor: `${id}-dir`, children: "Order" }), _jsxs("select", { id: `${id}-dir`, className: "sw-listing__input", name: "dir", defaultValue: currentSort?.dir ?? 'asc', children: [_jsx("option", { value: "asc", children: "Ascending" }), _jsx("option", { value: "desc", children: "Descending" })] })] })] })) : null, _jsxs("div", { className: "sw-
|
|
27
|
+
}), sortOptions.length ? (_jsxs("div", { className: "sw-listing__field", children: [_jsx("label", { className: "sw-listing__label", htmlFor: `${id}-sort`, children: "Sort by" }), _jsxs("div", { className: "sw-listing__dates", children: [_jsxs("select", { id: `${id}-sort`, className: "sw-listing__input", name: "sort", defaultValue: currentSort?.field ?? '', children: [currentSort ? null : _jsx("option", { value: "", children: "Default" }), sortOptions.map((o) => (_jsx("option", { value: o.field, children: o.label }, o.field)))] }), _jsx("label", { className: "sw-visually-hidden", htmlFor: `${id}-dir`, children: "Order" }), _jsxs("select", { id: `${id}-dir`, className: "sw-listing__input", name: "dir", defaultValue: currentSort?.dir ?? 'asc', children: [_jsx("option", { value: "asc", children: "Ascending" }), _jsx("option", { value: "desc", children: "Descending" })] })] })] })) : null, listing.pageSizes?.length ? (_jsxs("div", { className: "sw-listing__field sw-listing__field--per", children: [_jsx("label", { className: "sw-listing__label", htmlFor: `${id}-per`, children: "Results per page" }), _jsx("select", { id: `${id}-per`, className: "sw-listing__input", name: "per", defaultValue: String(listing.state.per ?? listing.pageSize), children: [...new Set([...listing.pageSizes, listing.pageSize])]
|
|
28
|
+
.sort((a, b) => a - b)
|
|
29
|
+
.map((n) => (_jsx("option", { value: String(n), children: n }, n))) })] })) : null, _jsxs("div", { className: "sw-listing__actions", children: [_jsx("button", { className: "sw-button sw-button--primary", type: "submit", children: "Apply" }), _jsx("a", { className: "sw-listing__reset", href: listing.action, children: "Reset" })] })] })] }));
|
|
30
|
+
}
|
|
31
|
+
/** The A to Z bar: links that keep the other choices; letters with no entries are greyed out and are not links. */
|
|
32
|
+
function Letters({ letters }) {
|
|
33
|
+
return (_jsx("nav", { className: "sw-listing__letters", "aria-label": letters.label, children: _jsxs("ul", { className: "sw-listing__letter-list", children: [_jsx("li", { children: _jsx("a", { className: "sw-listing__letter", href: letters.allHref, "aria-current": letters.current ? undefined : 'true', children: "All" }) }), letters.items.map((l) => (_jsx("li", { children: l.href ? (_jsx("a", { className: "sw-listing__letter", href: l.href, "aria-current": l.active ? 'true' : undefined, children: l.letter })) : (_jsx("span", { className: "sw-listing__letter sw-listing__letter--empty", "aria-disabled": "true", children: l.letter })) }, l.letter)))] }) }));
|
|
19
34
|
}
|
|
20
|
-
function Pager({ listing }) {
|
|
35
|
+
export function Pager({ listing }) {
|
|
21
36
|
if (listing.pages <= 1)
|
|
22
37
|
return null;
|
|
23
38
|
return (_jsxs("nav", { className: "sw-listing__pager", "aria-label": "Pagination", children: [listing.prevHref ? (_jsx("a", { href: listing.prevHref, rel: "prev", children: "\u2190 Previous" })) : (_jsx("span", { className: "sw-listing__pager-disabled", children: "\u2190 Previous" })), _jsx("ol", { className: "sw-listing__pages", children: listing.pageHrefs.map((p) => p.page === listing.page ? (_jsx("li", { children: _jsx("span", { "aria-current": "page", children: p.page }) }, p.page)) : (_jsx("li", { children: _jsx("a", { href: p.href, children: p.page }) }, p.page))) }), listing.nextHref ? (_jsx("a", { href: listing.nextHref, rel: "next", children: "Next \u2192" })) : (_jsx("span", { className: "sw-listing__pager-disabled", children: "Next \u2192" }))] }));
|
|
@@ -147,12 +162,15 @@ export const collectionComponent = {
|
|
|
147
162
|
{ label: 'Taxonomy term', value: 'taxonomy' },
|
|
148
163
|
{ label: 'Select (one value)', value: 'select' },
|
|
149
164
|
{ label: 'Date range', value: 'daterange' },
|
|
165
|
+
{ label: 'Checkboxes (several values)', value: 'checkboxes' },
|
|
166
|
+
{ label: 'A to Z letters', value: 'letter' },
|
|
150
167
|
],
|
|
151
168
|
},
|
|
152
169
|
},
|
|
153
170
|
defaultItemProps: { field: '', label: '', kind: 'search' },
|
|
154
171
|
},
|
|
155
172
|
pageSize: { type: 'number', label: 'Items per page', min: 1, max: 100 },
|
|
173
|
+
pageSizes: { type: 'text', label: 'Visitors can choose per page (optional)', placeholder: '12, 24, 48' },
|
|
156
174
|
showPager: { type: 'radio', label: 'Show pager', options: yesNo },
|
|
157
175
|
showResultCount: { type: 'radio', label: 'Show result count', options: yesNo },
|
|
158
176
|
},
|
|
@@ -170,6 +188,7 @@ export const collectionComponent = {
|
|
|
170
188
|
exports: 'none',
|
|
171
189
|
filters: [],
|
|
172
190
|
pageSize: 12,
|
|
191
|
+
pageSizes: '',
|
|
173
192
|
showPager: false,
|
|
174
193
|
showResultCount: false,
|
|
175
194
|
},
|
|
@@ -184,13 +203,16 @@ function renderCollection({ id, collectionId, display, columns, showDate, showSu
|
|
|
184
203
|
// A table sorts from its headers; the other displays get a Sort by control in the form.
|
|
185
204
|
const sortControl = mode !== 'table' && sortOptions.length > 0;
|
|
186
205
|
const formId = `sw-listing-${String(id ?? collectionId ?? 'x').replace(/[^a-zA-Z0-9_-]/g, '')}`;
|
|
206
|
+
// The form holds every control but the A to Z bar, which is a row of links of its own.
|
|
207
|
+
const formFilters = exposed.filter((f) => f.kind !== 'letter');
|
|
208
|
+
const showForm = Boolean(listing) && (formFilters.length > 0 || sortControl || Boolean(listing?.pageSizes?.length));
|
|
187
209
|
const top = titleLevel === 'h2' ? 'h2' : 'h3';
|
|
188
210
|
const groups = Array.isArray(items) ? groupsOf(items) : [];
|
|
189
211
|
const grouped = groups.some((g) => g.label !== null);
|
|
190
212
|
const itemLevel = grouped ? lower(top) : top;
|
|
191
213
|
const GroupHeading = top;
|
|
192
214
|
const body = (list) => mode === 'table' ? (_jsx(Table, { items: list, columns: shown.length ? shown : [{ field: 'title', label: 'Title' }], sortOptions: sortOptions, caption: `${collectionId} items` })) : (_jsx("ul", { className: "sw-collection__list", children: list.map((item) => (_jsx(Item, { item: item, display: mode, showDate: showDate !== false, showSummary: showSummary !== false, titleLevel: itemLevel, columns: shown }, item.id + (item.occurrence?.start ?? '')))) }));
|
|
193
|
-
return (_jsx("section", { className: cx('sw-block', 'sw-collection', `sw-collection--${mode}`, `sw-collection--cols-${cols}`, exposed.length > 0 && 'sw-collection--filtered'), "data-collection": collectionId || undefined, children: _jsxs("div", { className: "sw-container", children: [listing &&
|
|
215
|
+
return (_jsx("section", { className: cx('sw-block', 'sw-collection', `sw-collection--${mode}`, `sw-collection--cols-${cols}`, exposed.length > 0 && 'sw-collection--filtered'), "data-collection": collectionId || undefined, "data-sw-listing": listing ? '' : undefined, children: _jsxs("div", { className: "sw-container", children: [listing && showForm ? _jsx(FilterForm, { id: formId, filters: formFilters, listing: listing, sortControl: sortControl }) : null, listing?.letters ? _jsx(Letters, { letters: listing.letters }) : null, listing && showResultCount !== false && Array.isArray(items) ? (_jsx("p", { className: "sw-listing__count", role: "status", "aria-live": "polite", "data-sw-listing-count": "", children: (listing.total === 0 ? 'No results' : `${listing.total} result${listing.total === 1 ? '' : 's'}`) + (listing.pages > 1 ? ` · page ${listing.page} of ${listing.pages}` : '') })) : null, !Array.isArray(items) ? (_jsxs("div", { className: "sw-collection__placeholder", role: "note", children: ["Collection: ", collectionId || '(none selected)', " (resolved when published)"] })) : items.length === 0 ? (_jsx("p", { className: "sw-collection__empty", children: emptyText })) : grouped ? (groups.map((g, i) => (_jsxs("div", { className: "sw-collection__group", children: [_jsx(GroupHeading, { className: "sw-collection__group-title", children: g.label }), body(g.items)] }, `${g.label}-${i}`)))) : (_jsx("div", { className: "sw-collection__results", tabIndex: listing ? -1 : undefined, children: body(items) })), listing && showPager !== false ? _jsx(Pager, { listing: listing }) : null, exportHrefs && (exportHrefs.csv || exportHrefs.xlsx) && Array.isArray(items) && items.length > 0 ? (_jsxs("p", { className: "sw-collection__exports", children: ["Download:", ' ', exportHrefs.csv ? (_jsx("a", { href: exportHrefs.csv, download: true, children: "CSV" })) : null, exportHrefs.csv && exportHrefs.xlsx ? ' ' : null, exportHrefs.xlsx ? (_jsx("a", { href: exportHrefs.xlsx, download: true, children: "Excel (.xlsx)" })) : null] })) : null] }) }));
|
|
194
216
|
}
|
|
195
217
|
export const collectionCss = `/* ---------- Collection ---------- */
|
|
196
218
|
|
|
@@ -280,6 +302,19 @@ export const collectionCss = `/* ---------- Collection ---------- */
|
|
|
280
302
|
.sw-listing__pages a, .sw-listing__pages span { display: inline-block; min-width: 2rem; padding: 0.25rem 0.5rem; text-align: center; border-radius: var(--sw-radius, 8px); text-decoration: none; }
|
|
281
303
|
.sw-listing__pages span[aria-current] { background: var(--sw-color-primary, #1d4ed8); color: var(--sw-color-primary-contrast, #fff); }
|
|
282
304
|
.sw-listing__pager-disabled { color: var(--sw-color-muted); }
|
|
305
|
+
.sw-listing__field--checkboxes { min-width: 12rem; }
|
|
306
|
+
.sw-listing__checks { display: flex; flex-wrap: wrap; gap: 4px var(--sw-space-2); }
|
|
307
|
+
.sw-listing__check { display: flex; align-items: center; gap: 6px; }
|
|
308
|
+
.sw-listing__check input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--sw-color-primary, #1d4ed8); }
|
|
309
|
+
.sw-listing__check input:focus-visible { outline: none; box-shadow: var(--sw-focus-ring); }
|
|
310
|
+
.sw-listing__letters { margin: 0 0 var(--sw-space-2); }
|
|
311
|
+
.sw-listing__letter-list { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
|
|
312
|
+
.sw-listing__letter { display: inline-block; min-width: 2rem; padding: 0.25rem 0.4rem; text-align: center; border-radius: var(--sw-radius, 8px); text-decoration: none; }
|
|
313
|
+
a.sw-listing__letter:hover { text-decoration: underline; }
|
|
314
|
+
a.sw-listing__letter[aria-current] { background: var(--sw-color-primary, #1d4ed8); color: var(--sw-color-primary-contrast, #fff); }
|
|
315
|
+
.sw-listing__letter--empty { color: var(--sw-color-muted); opacity: 0.6; }
|
|
316
|
+
.sw-collection[aria-busy="true"] .sw-collection__results { opacity: 0.6; }
|
|
317
|
+
.sw-collection__results:focus { outline: none; }
|
|
283
318
|
|
|
284
319
|
/* Fields, table, groups and downloads (Collections level 2) */
|
|
285
320
|
.sw-collection__fields { display: grid; grid-template-columns: max-content 1fr; gap: 2px var(--sw-space-2); margin: var(--sw-space-1) 0 0; font-size: 0.9rem; }
|
package/dist/collection.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection.js","sourceRoot":"","sources":["../src/collection.tsx"],"names":[],"mappings":";AA6DA,SAAS,UAAU,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAwF;IAC7I,MAAM,WAAW,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACnE,MAAM,WAAW,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IACtD,OAAO,CACL,gBAAM,SAAS,EAAC,kBAAkB,EAAC,MAAM,EAAC,KAAK,EAAC,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,IAAI,EAAC,QAAQ,gBAAY,gBAAgB,aAC9G,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CACzB,gBAAoB,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,IAAlD,CAAC,CAAC,IAAI,CAAgD,CACnE,CAAC,EACF,eAAK,SAAS,EAAC,oBAAoB,aAChC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;wBACjB,MAAM,GAAG,GAAG,GAAG,EAAE,IAAI,CAAC,CAAC,KAAK,EAAE,CA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G,EAAE,QAAQ,0BAE9B,CACL,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAChD,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAClB,YAAG,IAAI,EAAE,WAAW,CAAC,IAAI,EAAE,QAAQ,oCAE/B,CACL,CAAC,CAAC,CAAC,IAAI,IACN,CACL,CAAC,CAAC,CAAC,IAAI,IACJ,GACE,CACX,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyH5B,CAAC"}
|
package/dist/config.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { type BlockMotion } from '@spillway-cms/shared';
|
|
|
14
14
|
import { type CalendarProps } from './calendar.js';
|
|
15
15
|
import { type MiniCalendarProps } from './mini-calendar.js';
|
|
16
16
|
import { type CollectionProps } from './collection.js';
|
|
17
|
+
import { type LocationMapProps } from './location-map.js';
|
|
17
18
|
import { type FormProps } from './form.js';
|
|
18
19
|
import { type ResolvedMedia } from './image.js';
|
|
19
20
|
import { type SharedProps } from './shared.js';
|
|
@@ -25,11 +26,14 @@ import { type RegistryPackageProps } from './registry-package.js';
|
|
|
25
26
|
import { type GalleryProps } from './gallery.js';
|
|
26
27
|
import { type FaqProps, type LogoStripProps, type StatsProps, type TestimonialsProps } from './marketing.js';
|
|
27
28
|
import { type ScrollytellingProps } from './story.js';
|
|
29
|
+
import { type AccordionProps, type CarouselProps, type TabsProps } from './widgets.js';
|
|
28
30
|
import { type LottieProps, type Model3DProps } from './players.js';
|
|
29
31
|
import { type VideoProps } from './video.js';
|
|
30
32
|
import { type SearchProps } from './search.js';
|
|
31
33
|
import { type AskProps } from './ask.js';
|
|
32
34
|
import { type MenuBlockProps } from './menu.js';
|
|
35
|
+
import { type BreadcrumbsBlockProps } from './breadcrumbs.js';
|
|
36
|
+
import { type LanguageSwitcherBlockProps } from './language-switcher.js';
|
|
33
37
|
import { type RegistryStatsProps } from './registry-stats.js';
|
|
34
38
|
import { type StatusBoardProps } from './status-board.js';
|
|
35
39
|
import { type ThemeGalleryProps } from './registry-gallery.js';
|
|
@@ -37,6 +41,13 @@ import { type PublisherProfileProps } from './registry-publisher.js';
|
|
|
37
41
|
import { type OrgProfileProps } from './registry-org.js';
|
|
38
42
|
import { type DocsFeedbackProps } from './docs-feedback.js';
|
|
39
43
|
import { type ModuleBlockProps } from './module-block.js';
|
|
44
|
+
import { type OnThisPageProps } from './toc.js';
|
|
45
|
+
import { type SectionOverlay, type SectionTextColor } from '@spillway-cms/shared';
|
|
46
|
+
import { type CountdownProps } from './countdown.js';
|
|
47
|
+
import { type HoursProps } from './hours.js';
|
|
48
|
+
import { type DocumentLibraryProps } from './documents.js';
|
|
49
|
+
import { type GlossaryProps } from './glossary.js';
|
|
50
|
+
import { type CampaignProgressProps } from './progress.js';
|
|
40
51
|
export type Align = 'left' | 'center';
|
|
41
52
|
export type TextAlign = 'left' | 'center' | 'right';
|
|
42
53
|
export interface HeroProps {
|
|
@@ -65,6 +76,11 @@ export interface HeroProps {
|
|
|
65
76
|
imagePosition?: 'right' | 'left';
|
|
66
77
|
align: Align;
|
|
67
78
|
size: 'default' | 'large';
|
|
79
|
+
/**
|
|
80
|
+
* The title's heading level: h1 (the default, the page's title) or h2, for a hero further down the page or a carousel's slides
|
|
81
|
+
* after the first, so the page keeps one H1.
|
|
82
|
+
*/
|
|
83
|
+
titleLevel?: 'h1' | 'h2';
|
|
68
84
|
/** The block style's key (Brand → Styles), e.g. "dark-band"; empty means the site's default Hero style. */
|
|
69
85
|
style?: string;
|
|
70
86
|
/** Resolved by the server from `backgroundImage` when it is a library image; never stored. */
|
|
@@ -85,6 +101,10 @@ export interface HeadingProps {
|
|
|
85
101
|
align: TextAlign;
|
|
86
102
|
/** The block style's key; empty means the site's default Heading style. */
|
|
87
103
|
style?: string;
|
|
104
|
+
/** Link name: the heading's id, so `#name` jumps to it (letters, digits and hyphens; unique on the page). */
|
|
105
|
+
anchor?: string;
|
|
106
|
+
/** The id the server settled on for this page (the link name made unique, or one from the text for On this page). Never stored. */
|
|
107
|
+
anchorId?: string;
|
|
88
108
|
}
|
|
89
109
|
export interface TextProps {
|
|
90
110
|
/** HTML (or plain paragraphs). On the page builder canvas only, the rich text editor Puck renders in place. */
|
|
@@ -123,12 +143,31 @@ export interface SectionProps {
|
|
|
123
143
|
content: Slot;
|
|
124
144
|
background: 'none' | 'surface' | 'primary' | 'secondary' | 'dark';
|
|
125
145
|
width: 'narrow' | 'normal' | 'wide';
|
|
146
|
+
/** A media library image behind the blocks, cropped around its focal point (docs/dev/section-media-icons-anchors.md). */
|
|
147
|
+
backgroundImage?: string;
|
|
148
|
+
/** A muted, looping .mp4 or .webm behind the blocks, with the background image as its poster; it plays under the Hero's rules. */
|
|
149
|
+
backgroundVideo?: string;
|
|
150
|
+
/** A brand color laid over the image so text stays readable; unset is Dark. */
|
|
151
|
+
overlay?: SectionOverlay;
|
|
152
|
+
/** The overlay's strength in percent (20 to 80); unset is 60. */
|
|
153
|
+
overlayStrength?: number;
|
|
154
|
+
/** Light or dark text over the image; auto picks from the overlay. */
|
|
155
|
+
textColor?: SectionTextColor;
|
|
156
|
+
/** Link name: the section's id, so `#name` jumps to it. */
|
|
157
|
+
anchor?: string;
|
|
158
|
+
/** Set by the server; never stored. */
|
|
159
|
+
anchorId?: string;
|
|
160
|
+
backgroundMedia?: ResolvedMedia | null;
|
|
161
|
+
backgroundPriority?: boolean;
|
|
126
162
|
}
|
|
127
163
|
export interface ButtonsItem {
|
|
128
164
|
label: string;
|
|
129
165
|
href: string;
|
|
130
166
|
emphasis: 'primary' | 'secondary' | 'link';
|
|
131
167
|
newTab?: boolean;
|
|
168
|
+
/** An icon beside the label (decorative: the label names the button). */
|
|
169
|
+
icon?: string;
|
|
170
|
+
iconPosition?: 'before' | 'after';
|
|
132
171
|
}
|
|
133
172
|
/** One to four buttons in a row that wraps on small screens. */
|
|
134
173
|
export interface ButtonsProps {
|
|
@@ -154,6 +193,9 @@ export interface CardItem {
|
|
|
154
193
|
text: string;
|
|
155
194
|
href: string;
|
|
156
195
|
imageUrl: string;
|
|
196
|
+
/** An icon above the title, from the bundled set; decorative unless `iconLabel` is set. */
|
|
197
|
+
icon?: string;
|
|
198
|
+
iconLabel?: string;
|
|
157
199
|
}
|
|
158
200
|
export interface CardsProps {
|
|
159
201
|
cards: CardItem[];
|
|
@@ -187,6 +229,9 @@ export interface ButtonProps {
|
|
|
187
229
|
align: TextAlign;
|
|
188
230
|
/** The block style's key; empty means the site's default Button style. */
|
|
189
231
|
style?: string;
|
|
232
|
+
/** An icon beside the label (decorative: the label names the button). */
|
|
233
|
+
icon?: string;
|
|
234
|
+
iconPosition?: 'before' | 'after';
|
|
190
235
|
}
|
|
191
236
|
export interface RootProps {
|
|
192
237
|
title: string;
|
|
@@ -200,8 +245,19 @@ export type BlockProps = {
|
|
|
200
245
|
Search: SearchProps;
|
|
201
246
|
Ask: AskProps;
|
|
202
247
|
Menu: MenuBlockProps;
|
|
248
|
+
Breadcrumbs: BreadcrumbsBlockProps;
|
|
249
|
+
LanguageSwitcher: LanguageSwitcherBlockProps;
|
|
203
250
|
Columns: ColumnsProps;
|
|
204
251
|
Section: SectionProps;
|
|
252
|
+
OnThisPage: OnThisPageProps;
|
|
253
|
+
Tabs: TabsProps;
|
|
254
|
+
Accordion: AccordionProps;
|
|
255
|
+
Carousel: CarouselProps;
|
|
256
|
+
Countdown: CountdownProps;
|
|
257
|
+
Hours: HoursProps;
|
|
258
|
+
DocumentLibrary: DocumentLibraryProps;
|
|
259
|
+
Glossary: GlossaryProps;
|
|
260
|
+
CampaignProgress: CampaignProgressProps;
|
|
205
261
|
Buttons: ButtonsProps;
|
|
206
262
|
CallToAction: CallToActionProps;
|
|
207
263
|
Cards: CardsProps;
|
|
@@ -218,6 +274,7 @@ export type BlockProps = {
|
|
|
218
274
|
Embed: EmbedProps;
|
|
219
275
|
Button: ButtonProps;
|
|
220
276
|
Collection: CollectionProps;
|
|
277
|
+
LocationMap: LocationMapProps;
|
|
221
278
|
Calendar: CalendarProps;
|
|
222
279
|
MiniCalendar: MiniCalendarProps;
|
|
223
280
|
Form: FormProps;
|
|
@@ -244,14 +301,16 @@ export type BlocksConfig = Config<{
|
|
|
244
301
|
}>;
|
|
245
302
|
/** The Hero's side image: about half the container from 900px, the full width below. */
|
|
246
303
|
export declare const HERO_SIDE_SIZES = "(min-width: 1200px) 640px, (min-width: 900px) 50vw, 100vw";
|
|
304
|
+
/** A link name as typed, made into an id: lowercase letters, digits and hyphens (empty when nothing usable is left). */
|
|
305
|
+
export declare function anchorIdOf(anchor: unknown): string;
|
|
247
306
|
export declare const config: BlocksConfig;
|
|
248
|
-
export declare const SPACED_BLOCKS: readonly ["Section", "Columns", "Divider", "Heading", "Text", "Image", "Gallery", "Video", "Search", "Ask", "Embed", "Lottie", "Model3D", "Button", "Buttons", "Hero", "CallToAction", "Cards", "Faq", "Testimonials", "Stats", "LogoStrip", "Scrollytelling", "Collection", "Calendar", "MiniCalendar", "Form"];
|
|
307
|
+
export declare const SPACED_BLOCKS: readonly ["Section", "Columns", "Tabs", "Accordion", "Carousel", "OnThisPage", "Divider", "Heading", "Text", "Image", "Gallery", "Video", "Search", "Ask", "Embed", "Lottie", "Model3D", "Button", "Buttons", "Hero", "CallToAction", "Cards", "Faq", "Testimonials", "Stats", "LogoStrip", "Scrollytelling", "Collection", "LocationMap", "Calendar", "MiniCalendar", "Form", "Countdown", "Hours", "DocumentLibrary", "Glossary", "CampaignProgress"];
|
|
249
308
|
/** The classes for a block's Space above and Space below; unknown values are ignored. */
|
|
250
309
|
export declare function spacingClasses(props: BlockSpacing | undefined): string;
|
|
251
310
|
/** Blocks whose items (cards, images, logos, quotes, buttons, list items) can arrive one after another and respond to hover. */
|
|
252
311
|
export declare const MOTION_ITEM_BLOCKS: readonly ["Image", "Gallery", "Buttons", "Button", "Cards", "Faq", "Testimonials", "Stats", "LogoStrip", "Collection"];
|
|
253
|
-
/** Blocks with a background image that parallax can move. */
|
|
254
|
-
export declare const MOTION_PARALLAX_BLOCKS: readonly ["Hero"];
|
|
312
|
+
/** Blocks with a background image that parallax can move (a Section's only when it has one). */
|
|
313
|
+
export declare const MOTION_PARALLAX_BLOCKS: readonly ["Hero", "Section"];
|
|
255
314
|
/**
|
|
256
315
|
* A block's Motion settings as attributes on its root element (docs/dev/motion.md): `data-motion` (the entrance), `data-motion-delay`,
|
|
257
316
|
* `data-motion-stagger` and `data-motion-hover`. Unknown values are dropped. Nothing moves until the page's motion script arms them,
|
|
@@ -264,7 +323,8 @@ export declare const MOTION_SCRIPT_BLOCKS: readonly ["Scrollytelling", "Lottie",
|
|
|
264
323
|
export declare const PLAYER_BLOCKS: readonly ["Lottie", "Model3D"];
|
|
265
324
|
/**
|
|
266
325
|
* Whether a block asks for any motion (the page then carries the motion script): Motion settings, Stats that count up, a marquee,
|
|
267
|
-
* a Hero's video, a muted Video that plays on its own, or a block in MOTION_SCRIPT_BLOCKS (pass
|
|
326
|
+
* a Hero's video, a muted Video that plays on its own, a Carousel that plays on its own, or a block in MOTION_SCRIPT_BLOCKS (pass
|
|
327
|
+
* its type).
|
|
268
328
|
*/
|
|
269
329
|
export declare function hasMotion(props: {
|
|
270
330
|
motion?: BlockMotion;
|