@velocity-astro/cms-ui 0.1.0-beta.6 → 0.1.0-beta.8
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/component-registry.json +50 -3
- package/dist/components/Grid/Grid.variants.d.ts +1 -0
- package/dist/components/Grid/Grid.variants.d.ts.map +1 -1
- package/dist/components/Grid/Grid.variants.js +4 -3
- package/dist/components/Grid/Grid.variants.js.map +1 -1
- package/dist/components/Logo/Logo.d.ts +1 -1
- package/dist/components/Logo/Logo.d.ts.map +1 -1
- package/dist/components/Logo/Logo.js +3 -3
- package/dist/components/Logo/Logo.js.map +1 -1
- package/dist/components/Logo/Logo.variants.d.ts +5 -2
- package/dist/components/Logo/Logo.variants.d.ts.map +1 -1
- package/dist/components/Logo/Logo.variants.js +10 -1
- package/dist/components/Logo/Logo.variants.js.map +1 -1
- package/dist/components/Meter/Meter.d.ts +13 -0
- package/dist/components/Meter/Meter.d.ts.map +1 -0
- package/dist/components/Meter/Meter.js +8 -0
- package/dist/components/Meter/Meter.js.map +1 -0
- package/dist/components/Meter/Meter.variants.d.ts +14 -0
- package/dist/components/Meter/Meter.variants.d.ts.map +1 -0
- package/dist/components/Meter/Meter.variants.js +39 -0
- package/dist/components/Meter/Meter.variants.js.map +1 -0
- package/dist/components/Meter/index.d.ts +2 -0
- package/dist/components/Meter/index.d.ts.map +1 -0
- package/dist/components/Meter/index.js +2 -0
- package/dist/components/Meter/index.js.map +1 -0
- package/dist/components/Segmented/Segmented.d.ts +9 -1
- package/dist/components/Segmented/Segmented.d.ts.map +1 -1
- package/dist/components/Segmented/Segmented.js +8 -5
- package/dist/components/Segmented/Segmented.js.map +1 -1
- package/dist/components/Segmented/Segmented.variants.d.ts +7 -0
- package/dist/components/Segmented/Segmented.variants.d.ts.map +1 -1
- package/dist/components/Segmented/Segmented.variants.js +9 -1
- package/dist/components/Segmented/Segmented.variants.js.map +1 -1
- package/dist/components/Table/Table.d.ts +9 -2
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/Table.js +14 -2
- package/dist/components/Table/Table.js.map +1 -1
- package/dist/components/Table/Table.variants.d.ts.map +1 -1
- package/dist/components/Table/Table.variants.js +4 -1
- package/dist/components/Table/Table.variants.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/scales.d.ts +2 -2
- package/dist/components/scales.d.ts.map +1 -1
- package/dist/components/scales.js +4 -2
- package/dist/components/scales.js.map +1 -1
- package/dist/patterns/AppShell/AppShell.d.ts +33 -7
- package/dist/patterns/AppShell/AppShell.d.ts.map +1 -1
- package/dist/patterns/AppShell/AppShell.js +29 -7
- package/dist/patterns/AppShell/AppShell.js.map +1 -1
- package/dist/patterns/AppShell/AppShell.variants.d.ts +63 -20
- package/dist/patterns/AppShell/AppShell.variants.d.ts.map +1 -1
- package/dist/patterns/AppShell/AppShell.variants.js +97 -23
- package/dist/patterns/AppShell/AppShell.variants.js.map +1 -1
- package/dist/patterns/AppShell/index.d.ts +1 -1
- package/dist/patterns/AppShell/index.d.ts.map +1 -1
- package/dist/patterns/AppShell/index.js.map +1 -1
- package/dist/patterns/CommandPalette/CommandPalette.d.ts +36 -0
- package/dist/patterns/CommandPalette/CommandPalette.d.ts.map +1 -0
- package/dist/patterns/CommandPalette/CommandPalette.js +18 -0
- package/dist/patterns/CommandPalette/CommandPalette.js.map +1 -0
- package/dist/patterns/CommandPalette/CommandPalette.variants.d.ts +18 -0
- package/dist/patterns/CommandPalette/CommandPalette.variants.d.ts.map +1 -0
- package/dist/patterns/CommandPalette/CommandPalette.variants.js +21 -0
- package/dist/patterns/CommandPalette/CommandPalette.variants.js.map +1 -0
- package/dist/patterns/CommandPalette/index.d.ts +2 -0
- package/dist/patterns/CommandPalette/index.d.ts.map +1 -0
- package/dist/patterns/CommandPalette/index.js +2 -0
- package/dist/patterns/CommandPalette/index.js.map +1 -0
- package/dist/patterns/ImagePicker/ImagePicker.d.ts +9 -1
- package/dist/patterns/ImagePicker/ImagePicker.d.ts.map +1 -1
- package/dist/patterns/ImagePicker/ImagePicker.js +13 -8
- package/dist/patterns/ImagePicker/ImagePicker.js.map +1 -1
- package/dist/patterns/Outline/Outline.d.ts +26 -0
- package/dist/patterns/Outline/Outline.d.ts.map +1 -0
- package/dist/patterns/Outline/Outline.js +21 -0
- package/dist/patterns/Outline/Outline.js.map +1 -0
- package/dist/patterns/Outline/Outline.variants.d.ts +11 -0
- package/dist/patterns/Outline/Outline.variants.d.ts.map +1 -0
- package/dist/patterns/Outline/Outline.variants.js +21 -0
- package/dist/patterns/Outline/Outline.variants.js.map +1 -0
- package/dist/patterns/Outline/index.d.ts +2 -0
- package/dist/patterns/Outline/index.d.ts.map +1 -0
- package/dist/patterns/Outline/index.js +2 -0
- package/dist/patterns/Outline/index.js.map +1 -0
- package/dist/patterns/PageHeader/PageHeader.variants.d.ts +3 -2
- package/dist/patterns/PageHeader/PageHeader.variants.d.ts.map +1 -1
- package/dist/patterns/PageHeader/PageHeader.variants.js +3 -2
- package/dist/patterns/PageHeader/PageHeader.variants.js.map +1 -1
- package/dist/patterns/PagePreview/PagePreview.d.ts +76 -3
- package/dist/patterns/PagePreview/PagePreview.d.ts.map +1 -1
- package/dist/patterns/PagePreview/PagePreview.js +111 -12
- package/dist/patterns/PagePreview/PagePreview.js.map +1 -1
- package/dist/patterns/PagePreview/PagePreview.variants.d.ts +11 -1
- package/dist/patterns/PagePreview/PagePreview.variants.d.ts.map +1 -1
- package/dist/patterns/PagePreview/PagePreview.variants.js +17 -5
- package/dist/patterns/PagePreview/PagePreview.variants.js.map +1 -1
- package/dist/patterns/PagePreview/index.d.ts +1 -1
- package/dist/patterns/PagePreview/index.d.ts.map +1 -1
- package/dist/patterns/PagePreview/index.js.map +1 -1
- package/dist/patterns/SaveBar/SaveBar.variants.d.ts +3 -2
- package/dist/patterns/SaveBar/SaveBar.variants.d.ts.map +1 -1
- package/dist/patterns/SaveBar/SaveBar.variants.js +5 -4
- package/dist/patterns/SaveBar/SaveBar.variants.js.map +1 -1
- package/dist/patterns/SiteWindow/SiteWindow.d.ts +20 -0
- package/dist/patterns/SiteWindow/SiteWindow.d.ts.map +1 -0
- package/dist/patterns/SiteWindow/SiteWindow.js +8 -0
- package/dist/patterns/SiteWindow/SiteWindow.js.map +1 -0
- package/dist/patterns/SiteWindow/SiteWindow.variants.d.ts +24 -0
- package/dist/patterns/SiteWindow/SiteWindow.variants.d.ts.map +1 -0
- package/dist/patterns/SiteWindow/SiteWindow.variants.js +25 -0
- package/dist/patterns/SiteWindow/SiteWindow.variants.js.map +1 -0
- package/dist/patterns/SiteWindow/index.d.ts +2 -0
- package/dist/patterns/SiteWindow/index.d.ts.map +1 -0
- package/dist/patterns/SiteWindow/index.js +2 -0
- package/dist/patterns/SiteWindow/index.js.map +1 -0
- package/dist/patterns/Welcome/Welcome.d.ts +18 -0
- package/dist/patterns/Welcome/Welcome.d.ts.map +1 -0
- package/dist/patterns/Welcome/Welcome.js +14 -0
- package/dist/patterns/Welcome/Welcome.js.map +1 -0
- package/dist/patterns/Welcome/Welcome.variants.d.ts +12 -0
- package/dist/patterns/Welcome/Welcome.variants.d.ts.map +1 -0
- package/dist/patterns/Welcome/Welcome.variants.js +12 -0
- package/dist/patterns/Welcome/Welcome.variants.js.map +1 -0
- package/dist/patterns/Welcome/index.d.ts +2 -0
- package/dist/patterns/Welcome/index.d.ts.map +1 -0
- package/dist/patterns/Welcome/index.js +2 -0
- package/dist/patterns/Welcome/index.js.map +1 -0
- package/dist/patterns/Workbench/Workbench.d.ts +8 -4
- package/dist/patterns/Workbench/Workbench.d.ts.map +1 -1
- package/dist/patterns/Workbench/Workbench.js +7 -6
- package/dist/patterns/Workbench/Workbench.js.map +1 -1
- package/dist/patterns/Workbench/Workbench.variants.d.ts +6 -1
- package/dist/patterns/Workbench/Workbench.variants.d.ts.map +1 -1
- package/dist/patterns/Workbench/Workbench.variants.js +8 -3
- package/dist/patterns/Workbench/Workbench.variants.js.map +1 -1
- package/dist/patterns/index.d.ts +4 -0
- package/dist/patterns/index.d.ts.map +1 -1
- package/dist/patterns/index.js +4 -0
- package/dist/patterns/index.js.map +1 -1
- package/package.json +1 -1
- package/src/styles.css +38 -0
- package/src/tokens/tokens.css +21 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Near the top of the window, where the eye already is, rather than in the middle. */
|
|
2
|
+
export declare const commandPaletteOverlayClass = "fixed inset-0 layer-overlay flex items-start justify-center bg-scrim px-4 pt-24 motion-scrim";
|
|
3
|
+
export declare const commandPaletteClass = "flex max-h-112 w-full max-w-xl flex-col overflow-hidden rounded-xl border border-border bg-background-elevated shadow-xl outline-none motion-pop";
|
|
4
|
+
/** The window scrolls as a whole, with the box held at its top, so what scrolls also holds what the keyboard reaches. */
|
|
5
|
+
export declare const commandPaletteContentClass = "flex min-h-0 flex-col overflow-y-auto outline-none";
|
|
6
|
+
export declare const commandPaletteSearchClass = "sticky top-0 layer-raised flex shrink-0 items-center gap-3 border-b border-border bg-background-elevated px-4 text-foreground-muted";
|
|
7
|
+
export declare const commandPaletteInputClass = "h-14 w-full min-w-0 bg-transparent text-lg text-foreground outline-none placeholder:text-foreground-subtle";
|
|
8
|
+
export declare const commandPaletteSearchIconSize = 18;
|
|
9
|
+
export declare const commandPaletteListClass = "p-2 outline-none";
|
|
10
|
+
export declare const commandPaletteSectionClass = "pb-1";
|
|
11
|
+
export declare const commandPaletteHeaderClass = "px-3 pt-2 pb-1 text-xs font-semibold tracking-widest text-foreground-subtle uppercase";
|
|
12
|
+
export declare const commandPaletteItemClass: string;
|
|
13
|
+
export declare const commandPaletteItemIconClass = "flex h-8 w-8 shrink-0 items-center justify-center rounded-md border border-border bg-background text-foreground-muted";
|
|
14
|
+
export declare const commandPaletteItemLabelClass = "min-w-0 flex-1 truncate font-medium";
|
|
15
|
+
export declare const commandPaletteItemDetailClass = "shrink-0 text-sm text-foreground-subtle";
|
|
16
|
+
export declare const commandPaletteItemIconSize = 16;
|
|
17
|
+
export declare const commandPaletteEmptyClass = "px-3 py-8 text-center text-base text-foreground-muted";
|
|
18
|
+
//# sourceMappingURL=CommandPalette.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandPalette.variants.d.ts","sourceRoot":"","sources":["../../../src/patterns/CommandPalette/CommandPalette.variants.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,eAAO,MAAM,0BAA0B,iGAAiG,CAAC;AACzI,eAAO,MAAM,mBAAmB,qJACoH,CAAC;AACrJ,yHAAyH;AACzH,eAAO,MAAM,0BAA0B,uDAAuD,CAAC;AAE/F,eAAO,MAAM,yBAAyB,wIAAwI,CAAC;AAC/K,eAAO,MAAM,wBAAwB,+GAA+G,CAAC;AACrJ,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAE/C,eAAO,MAAM,uBAAuB,qBAAqB,CAAC;AAC1D,eAAO,MAAM,0BAA0B,SAAS,CAAC;AACjD,eAAO,MAAM,yBAAyB,0FAA0F,CAAC;AACjI,eAAO,MAAM,uBAAuB,QAGzB,CAAC;AACZ,eAAO,MAAM,2BAA2B,0HACiF,CAAC;AAC1H,eAAO,MAAM,4BAA4B,wCAAwC,CAAC;AAClF,eAAO,MAAM,6BAA6B,4CAA4C,CAAC;AACvF,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAC7C,eAAO,MAAM,wBAAwB,0DAA0D,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** Near the top of the window, where the eye already is, rather than in the middle. */
|
|
2
|
+
export const commandPaletteOverlayClass = 'fixed inset-0 layer-overlay flex items-start justify-center bg-scrim px-4 pt-24 motion-scrim';
|
|
3
|
+
export const commandPaletteClass = 'flex max-h-112 w-full max-w-xl flex-col overflow-hidden rounded-xl border border-border bg-background-elevated shadow-xl outline-none motion-pop';
|
|
4
|
+
/** The window scrolls as a whole, with the box held at its top, so what scrolls also holds what the keyboard reaches. */
|
|
5
|
+
export const commandPaletteContentClass = 'flex min-h-0 flex-col overflow-y-auto outline-none';
|
|
6
|
+
export const commandPaletteSearchClass = 'sticky top-0 layer-raised flex shrink-0 items-center gap-3 border-b border-border bg-background-elevated px-4 text-foreground-muted';
|
|
7
|
+
export const commandPaletteInputClass = 'h-14 w-full min-w-0 bg-transparent text-lg text-foreground outline-none placeholder:text-foreground-subtle';
|
|
8
|
+
export const commandPaletteSearchIconSize = 18;
|
|
9
|
+
export const commandPaletteListClass = 'p-2 outline-none';
|
|
10
|
+
export const commandPaletteSectionClass = 'pb-1';
|
|
11
|
+
export const commandPaletteHeaderClass = 'px-3 pt-2 pb-1 text-xs font-semibold tracking-widest text-foreground-subtle uppercase';
|
|
12
|
+
export const commandPaletteItemClass = [
|
|
13
|
+
'flex cursor-default items-center gap-3 rounded-lg px-3 py-2 text-base text-foreground outline-none',
|
|
14
|
+
'data-focused:bg-background-tertiary data-hovered:bg-background-secondary',
|
|
15
|
+
].join(' ');
|
|
16
|
+
export const commandPaletteItemIconClass = 'flex h-8 w-8 shrink-0 items-center justify-center rounded-md border border-border bg-background text-foreground-muted';
|
|
17
|
+
export const commandPaletteItemLabelClass = 'min-w-0 flex-1 truncate font-medium';
|
|
18
|
+
export const commandPaletteItemDetailClass = 'shrink-0 text-sm text-foreground-subtle';
|
|
19
|
+
export const commandPaletteItemIconSize = 16;
|
|
20
|
+
export const commandPaletteEmptyClass = 'px-3 py-8 text-center text-base text-foreground-muted';
|
|
21
|
+
//# sourceMappingURL=CommandPalette.variants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandPalette.variants.js","sourceRoot":"","sources":["../../../src/patterns/CommandPalette/CommandPalette.variants.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,MAAM,CAAC,MAAM,0BAA0B,GAAG,8FAA8F,CAAC;AACzI,MAAM,CAAC,MAAM,mBAAmB,GAC9B,kJAAkJ,CAAC;AACrJ,yHAAyH;AACzH,MAAM,CAAC,MAAM,0BAA0B,GAAG,oDAAoD,CAAC;AAE/F,MAAM,CAAC,MAAM,yBAAyB,GAAG,qIAAqI,CAAC;AAC/K,MAAM,CAAC,MAAM,wBAAwB,GAAG,4GAA4G,CAAC;AACrJ,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAE/C,MAAM,CAAC,MAAM,uBAAuB,GAAG,kBAAkB,CAAC;AAC1D,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAAC;AACjD,MAAM,CAAC,MAAM,yBAAyB,GAAG,uFAAuF,CAAC;AACjI,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,oGAAoG;IACpG,0EAA0E;CAC3E,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACZ,MAAM,CAAC,MAAM,2BAA2B,GACtC,uHAAuH,CAAC;AAC1H,MAAM,CAAC,MAAM,4BAA4B,GAAG,qCAAqC,CAAC;AAClF,MAAM,CAAC,MAAM,6BAA6B,GAAG,yCAAyC,CAAC;AACvF,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAC7C,MAAM,CAAC,MAAM,wBAAwB,GAAG,uDAAuD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/CommandPalette/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/CommandPalette/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAiE,MAAM,qBAAqB,CAAC"}
|
|
@@ -41,7 +41,15 @@ export interface ImagePickerProps {
|
|
|
41
41
|
readonly uploadHint?: string;
|
|
42
42
|
/** Why the last upload did not work. */
|
|
43
43
|
readonly uploadError?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Given, only the window is drawn, and whoever gave it opens and closes it: for choosing an
|
|
46
|
+
* image from somewhere other than the field, such as the page the image is shown on.
|
|
47
|
+
*/
|
|
48
|
+
readonly window?: {
|
|
49
|
+
readonly isOpen: boolean;
|
|
50
|
+
readonly onOpenChange: (isOpen: boolean) => void;
|
|
51
|
+
};
|
|
44
52
|
}
|
|
45
53
|
/** Shows the image a field holds and lets a person choose another from the site's images. */
|
|
46
|
-
export declare function ImagePicker({ label, isLabelHidden, description, errorMessage, isRequired, value, images, onChange, chooseLabel, changeLabel, noneText, dialogTitle, closeLabel, emptyText, onUpload, uploadLabel, uploadHint, uploadError, }: ImagePickerProps): import("react").JSX.Element;
|
|
54
|
+
export declare function ImagePicker({ label, isLabelHidden, description, errorMessage, isRequired, value, images, onChange, chooseLabel, changeLabel, noneText, dialogTitle, closeLabel, emptyText, onUpload, uploadLabel, uploadHint, uploadError, window: held, }: ImagePickerProps): import("react").JSX.Element;
|
|
47
55
|
//# sourceMappingURL=ImagePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImagePicker.d.ts","sourceRoot":"","sources":["../../../src/patterns/ImagePicker/ImagePicker.tsx"],"names":[],"mappings":"AA0BA,MAAM,WAAW,aAAa;IAC5B,gFAAgF;IAChF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,oDAAoD;IACpD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,oGAAoG;IACpG,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACjC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,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CAAC,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;KAAE,CAAC;CAClG;AAKD,6FAA6F;AAC7F,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,aAAqB,EACrB,WAAW,EACX,YAAY,EACZ,UAAkB,EAClB,KAAK,EACL,MAAM,EACN,QAAQ,EACR,WAAW,EACX,WAAW,EACX,QAAQ,EACR,WAAW,EACX,UAAU,EACV,SAAS,EACT,QAAQ,EACR,WAAW,EACX,UAAU,EACV,WAAW,EACX,MAAM,EAAE,IAAI,GACb,EAAE,gBAAgB,+BA0FlB"}
|
|
@@ -8,9 +8,11 @@ import { imagePickerChoiceClass, imagePickerChoiceImageClass, imagePickerChoiceN
|
|
|
8
8
|
/** The kinds of file the file chooser offers. What a file really is, the server decides. */
|
|
9
9
|
const IMAGE_FILES = ['image/jpeg', 'image/png', 'image/webp'];
|
|
10
10
|
/** Shows the image a field holds and lets a person choose another from the site's images. */
|
|
11
|
-
export function ImagePicker({ label, isLabelHidden = false, description, errorMessage, isRequired = false, value, images, onChange, chooseLabel, changeLabel, noneText, dialogTitle, closeLabel, emptyText, onUpload, uploadLabel, uploadHint, uploadError, }) {
|
|
11
|
+
export function ImagePicker({ label, isLabelHidden = false, description, errorMessage, isRequired = false, value, images, onChange, chooseLabel, changeLabel, noneText, dialogTitle, closeLabel, emptyText, onUpload, uploadLabel, uploadHint, uploadError, window: held, }) {
|
|
12
12
|
const labelId = useId();
|
|
13
|
-
const [
|
|
13
|
+
const [isOwnOpen, setOwnOpen] = useState(false);
|
|
14
|
+
const isOpen = held ? held.isOpen : isOwnOpen;
|
|
15
|
+
const setOpen = held ? held.onOpenChange : setOwnOpen;
|
|
14
16
|
const [isUploading, setUploading] = useState(false);
|
|
15
17
|
const upload = async (file) => {
|
|
16
18
|
if (!file || !onUpload)
|
|
@@ -28,11 +30,14 @@ export function ImagePicker({ label, isLabelHidden = false, description, errorMe
|
|
|
28
30
|
}
|
|
29
31
|
};
|
|
30
32
|
const chosen = images.find((image) => image.name === value);
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
const choosing = (_jsxs(Dialog, { isOpen: isOpen, onOpenChange: setOpen, title: dialogTitle, closeLabel: closeLabel, size: "lg", children: [onUpload && uploadLabel !== undefined && (_jsxs("div", { className: imagePickerUploadClass, children: [_jsx(FileTrigger, { acceptedFileTypes: IMAGE_FILES, onSelect: (files) => void upload(files?.[0]), children: _jsx(Button, { variant: "secondary", size: "sm", icon: Upload, isPending: isUploading, children: uploadLabel }) }), uploadError !== undefined ? (_jsx("p", { role: "alert", className: imagePickerUploadErrorClass, children: uploadError })) : (uploadHint !== undefined && _jsx("p", { className: imagePickerUploadHintClass, children: uploadHint }))] })), _jsx(ListBox, { "aria-label": dialogTitle, layout: "grid", selectionMode: "single", autoFocus: true, selectedKeys: value === null ? [] : [value], onSelectionChange: (keys) => {
|
|
34
|
+
const [name] = keys === 'all' ? [] : [...keys];
|
|
35
|
+
if (typeof name === 'string')
|
|
36
|
+
onChange(name);
|
|
37
|
+
setOpen(false);
|
|
38
|
+
}, renderEmptyState: () => _jsx("p", { className: imagePickerEmptyClass, children: emptyText }), className: imagePickerChoicesClass, children: images.map((image) => (_jsxs(ListBoxItem, { id: image.name, textValue: image.name, className: imagePickerChoiceClass, children: [_jsx("img", { src: image.url, alt: "", loading: "lazy", className: imagePickerChoiceImageClass }), _jsx("span", { className: imagePickerChoiceNameClass, children: image.name })] }, image.name))) })] }));
|
|
39
|
+
if (held)
|
|
40
|
+
return choosing;
|
|
41
|
+
return (_jsxs("div", { role: "group", "aria-labelledby": labelId, className: imagePickerClass, children: [_jsxs("span", { id: labelId, className: imagePickerLabelVariants({ isLabelHidden }), children: [label, isRequired && (_jsx("span", { "aria-hidden": "true", className: imagePickerRequiredMarkClass, children: ' *' }))] }), _jsxs("div", { className: imagePickerRowClass, children: [chosen ? (_jsx("img", { src: chosen.url, alt: "", loading: "lazy", className: imagePickerThumbClass })) : (_jsx("span", { className: imagePickerPlaceholderClass, children: _jsx(ImageOff, { "aria-hidden": "true", className: imagePickerPlaceholderIconClass }) })), _jsx("span", { className: imagePickerNameClass, children: value ?? noneText }), _jsx(Button, { variant: "secondary", size: "sm", onPress: () => setOpen(true), children: value === null ? chooseLabel : changeLabel })] }), description !== undefined && _jsx("p", { className: imagePickerDescriptionClass, children: description }), errorMessage !== undefined && _jsx("p", { className: imagePickerErrorClass, children: errorMessage }), choosing] }));
|
|
37
42
|
}
|
|
38
43
|
//# sourceMappingURL=ImagePicker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImagePicker.js","sourceRoot":"","sources":["../../../src/patterns/ImagePicker/ImagePicker.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EACL,sBAAsB,EACtB,2BAA2B,EAC3B,0BAA0B,EAC1B,uBAAuB,EACvB,gBAAgB,EAChB,2BAA2B,EAC3B,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,2BAA2B,EAC3B,+BAA+B,EAC/B,4BAA4B,EAC5B,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,2BAA2B,EAC3B,0BAA0B,GAC3B,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"ImagePicker.js","sourceRoot":"","sources":["../../../src/patterns/ImagePicker/ImagePicker.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAA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O,CACL,eAAK,IAAI,EAAC,OAAO,qBAAkB,OAAO,EAAE,SAAS,EAAE,gBAAgB,aACrE,gBAAM,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,wBAAwB,CAAC,EAAE,aAAa,EAAE,CAAC,aACtE,KAAK,EACL,UAAU,IAAI,CACb,8BAAkB,MAAM,EAAC,SAAS,EAAE,4BAA4B,YAC7D,IAAI,GACA,CACR,IACI,EACP,eAAK,SAAS,EAAE,mBAAmB,aAChC,MAAM,CAAC,CAAC,CAAC,CACR,cAAK,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,EAAC,EAAE,EAAC,OAAO,EAAC,MAAM,EAAC,SAAS,EAAE,qBAAqB,GAAI,CACjF,CAAC,CAAC,CAAC,CACF,eAAM,SAAS,EAAE,2BAA2B,YAC1C,KAAC,QAAQ,mBAAa,MAAM,EAAC,SAAS,EAAE,+BAA+B,GAAI,GACtE,CACR,EACD,eAAM,SAAS,EAAE,oBAAoB,YAAG,KAAK,IAAI,QAAQ,GAAQ,EACjE,KAAC,MAAM,IAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,YAC/D,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,GACpC,IACL,EACL,WAAW,KAAK,SAAS,IAAI,YAAG,SAAS,EAAE,2BAA2B,YAAG,WAAW,GAAK,EACzF,YAAY,KAAK,SAAS,IAAI,YAAG,SAAS,EAAE,qBAAqB,YAAG,YAAY,GAAK,EACrF,QAAQ,IACL,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { LucideIcon } from 'lucide-react';
|
|
2
|
+
export interface OutlineItem {
|
|
3
|
+
readonly id: string;
|
|
4
|
+
/** What it is called: "Page opening", "Text". */
|
|
5
|
+
readonly label: string;
|
|
6
|
+
/** How far inside other items it is: 0 at the top, at most 3. */
|
|
7
|
+
readonly depth?: 0 | 1 | 2 | 3;
|
|
8
|
+
readonly icon?: LucideIcon;
|
|
9
|
+
}
|
|
10
|
+
export interface OutlineProps {
|
|
11
|
+
/** Over the list, and its name for screen readers: "Sections". */
|
|
12
|
+
readonly title: string;
|
|
13
|
+
readonly items: readonly OutlineItem[];
|
|
14
|
+
/** The one being looked at. */
|
|
15
|
+
readonly currentId?: string;
|
|
16
|
+
/** Called when one is chosen, with a press or with Enter. */
|
|
17
|
+
readonly onChoose: (id: string) => void;
|
|
18
|
+
/** Shown when there is nothing to list. */
|
|
19
|
+
readonly emptyText: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The parts of something long, by name, in order: the sections of a page. Choosing one goes to it.
|
|
23
|
+
* It is a way around, not a way to change: what is chosen is edited where it is.
|
|
24
|
+
*/
|
|
25
|
+
export declare function Outline({ title, items, currentId, onChoose, emptyText }: OutlineProps): import("react").JSX.Element;
|
|
26
|
+
//# sourceMappingURL=Outline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Outline.d.ts","sourceRoot":"","sources":["../../../src/patterns/Outline/Outline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAc/C,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,iDAAiD;IACjD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,iEAAiE;IACjE,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC;CAC5B;AAED,MAAM,WAAW,YAAY;IAC3B,kEAAkE;IAClE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,CAAC;IACvC,+BAA+B;IAC/B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,6DAA6D;IAC7D,QAAQ,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,2CAA2C;IAC3C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,YAAY,+BAmCrF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useId } from 'react';
|
|
3
|
+
import { ListBox, ListBoxItem } from 'react-aria-components';
|
|
4
|
+
import { outlineClass, outlineEmptyClass, outlineIconClass, outlineIconSize, outlineItemVariants, outlineLabelClass, outlineListClass, outlineTitleClass, } from './Outline.variants.js';
|
|
5
|
+
/**
|
|
6
|
+
* The parts of something long, by name, in order: the sections of a page. Choosing one goes to it.
|
|
7
|
+
* It is a way around, not a way to change: what is chosen is edited where it is.
|
|
8
|
+
*/
|
|
9
|
+
export function Outline({ title, items, currentId, onChoose, emptyText }) {
|
|
10
|
+
const titleId = useId();
|
|
11
|
+
return (_jsxs("div", { className: outlineClass, children: [_jsx("div", { id: titleId, className: outlineTitleClass, children: title }), _jsx(ListBox, { "aria-labelledby": titleId, className: outlineListClass, items: items, selectionMode: "single", selectedKeys: currentId === undefined ? [] : [currentId], onSelectionChange: (keys) => {
|
|
12
|
+
if (keys === 'all')
|
|
13
|
+
return;
|
|
14
|
+
const [first] = [...keys];
|
|
15
|
+
// Pressing the one already chosen would let it go: it is chosen again instead, so it is gone to.
|
|
16
|
+
const chosen = first === undefined ? currentId : String(first);
|
|
17
|
+
if (chosen !== undefined)
|
|
18
|
+
onChoose(chosen);
|
|
19
|
+
}, renderEmptyState: () => _jsx("div", { className: outlineEmptyClass, children: emptyText }), children: ({ id, label, depth = 0, icon: Icon }) => (_jsxs(ListBoxItem, { id: id, textValue: label, className: outlineItemVariants({ depth }), children: [Icon && (_jsx("span", { "aria-hidden": true, className: outlineIconClass, children: _jsx(Icon, { size: outlineIconSize }) })), _jsx("span", { className: outlineLabelClass, children: label })] })) })] }));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=Outline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Outline.js","sourceRoot":"","sources":["../../../src/patterns/Outline/Outline.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,uBAAuB,CAAC;AAuB/B;;;GAGG;AACH,MAAM,UAAU,OAAO,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAgB;IACpF,MAAM,OAAO,GAAG,KAAK,EAAE,CAAC;IACxB,OAAO,CACL,eAAK,SAAS,EAAE,YAAY,aAC1B,cAAK,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,iBAAiB,YAC3C,KAAK,GACF,EACN,KAAC,OAAO,uBACW,OAAO,EACxB,SAAS,EAAE,gBAAgB,EAC3B,KAAK,EAAE,KAAK,EACZ,aAAa,EAAC,QAAQ,EACtB,YAAY,EAAE,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EACxD,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE;oBAC1B,IAAI,IAAI,KAAK,KAAK;wBAAE,OAAO;oBAC3B,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;oBAC1B,iGAAiG;oBACjG,MAAM,MAAM,GAAG,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;oBAC/D,IAAI,MAAM,KAAK,SAAS;wBAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;gBAC7C,CAAC,EACD,gBAAgB,EAAE,GAAG,EAAE,CAAC,cAAK,SAAS,EAAE,iBAAiB,YAAG,SAAS,GAAO,YAE3E,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CACzC,MAAC,WAAW,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,mBAAmB,CAAC,EAAE,KAAK,EAAE,CAAC,aAC7E,IAAI,IAAI,CACP,oCAAkB,SAAS,EAAE,gBAAgB,YAC3C,KAAC,IAAI,IAAC,IAAI,EAAE,eAAe,GAAI,GAC1B,CACR,EACD,eAAM,SAAS,EAAE,iBAAiB,YAAG,KAAK,GAAQ,IACtC,CACf,GACO,IACN,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const outlineClass = "flex min-h-0 flex-col gap-2";
|
|
2
|
+
export declare const outlineTitleClass = "px-2 text-xs font-semibold tracking-widest text-foreground-subtle uppercase";
|
|
3
|
+
export declare const outlineListClass = "flex flex-col gap-0.5 outline-none";
|
|
4
|
+
export declare const outlineItemVariants: (props?: ({
|
|
5
|
+
depth?: 0 | 1 | 2 | 3 | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export declare const outlineIconClass = "flex h-6 w-6 shrink-0 items-center justify-center rounded-md border border-border bg-background text-foreground-muted";
|
|
8
|
+
export declare const outlineIconSize = 14;
|
|
9
|
+
export declare const outlineLabelClass = "min-w-0 flex-1 truncate";
|
|
10
|
+
export declare const outlineEmptyClass = "px-2 py-3 text-sm text-foreground-muted";
|
|
11
|
+
//# sourceMappingURL=Outline.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Outline.variants.d.ts","sourceRoot":"","sources":["../../../src/patterns/Outline/Outline.variants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,gCAAgC,CAAC;AAC1D,eAAO,MAAM,iBAAiB,gFAAgF,CAAC;AAC/G,eAAO,MAAM,gBAAgB,uCAAuC,CAAC;AACrE,eAAO,MAAM,mBAAmB;;8EAc/B,CAAC;AACF,eAAO,MAAM,gBAAgB,0HAA0H,CAAC;AACxJ,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,iBAAiB,4BAA4B,CAAC;AAC3D,eAAO,MAAM,iBAAiB,4CAA4C,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { cva } from 'class-variance-authority';
|
|
2
|
+
export const outlineClass = 'flex min-h-0 flex-col gap-2';
|
|
3
|
+
export const outlineTitleClass = 'px-2 text-xs font-semibold tracking-widest text-foreground-subtle uppercase';
|
|
4
|
+
export const outlineListClass = 'flex flex-col gap-0.5 outline-none';
|
|
5
|
+
export const outlineItemVariants = cva([
|
|
6
|
+
'flex min-h-9 cursor-default items-center gap-2.5 rounded-lg px-2 text-base text-foreground-secondary transition-colors motion-fast outline-none',
|
|
7
|
+
'data-hovered:bg-background-secondary data-hovered:text-foreground',
|
|
8
|
+
'data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-inset',
|
|
9
|
+
'data-selected:bg-background-tertiary data-selected:font-semibold data-selected:text-foreground',
|
|
10
|
+
], {
|
|
11
|
+
variants: {
|
|
12
|
+
/** A section inside another is set in under it, a step for each level. */
|
|
13
|
+
depth: { 0: '', 1: 'pl-6', 2: 'pl-10', 3: 'pl-14' },
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: { depth: 0 },
|
|
16
|
+
});
|
|
17
|
+
export const outlineIconClass = 'flex h-6 w-6 shrink-0 items-center justify-center rounded-md border border-border bg-background text-foreground-muted';
|
|
18
|
+
export const outlineIconSize = 14;
|
|
19
|
+
export const outlineLabelClass = 'min-w-0 flex-1 truncate';
|
|
20
|
+
export const outlineEmptyClass = 'px-2 py-3 text-sm text-foreground-muted';
|
|
21
|
+
//# sourceMappingURL=Outline.variants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Outline.variants.js","sourceRoot":"","sources":["../../../src/patterns/Outline/Outline.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,MAAM,CAAC,MAAM,YAAY,GAAG,6BAA6B,CAAC;AAC1D,MAAM,CAAC,MAAM,iBAAiB,GAAG,6EAA6E,CAAC;AAC/G,MAAM,CAAC,MAAM,gBAAgB,GAAG,oCAAoC,CAAC;AACrE,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CACpC;IACE,iJAAiJ;IACjJ,mEAAmE;IACnE,sFAAsF;IACtF,gGAAgG;CACjG,EACD;IACE,QAAQ,EAAE;QACR,0EAA0E;QAC1E,KAAK,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE;KACpD;IACD,eAAe,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;CAC9B,CACF,CAAC;AACF,MAAM,CAAC,MAAM,gBAAgB,GAAG,uHAAuH,CAAC;AACxJ,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,CAAC;AAClC,MAAM,CAAC,MAAM,iBAAiB,GAAG,yBAAyB,CAAC;AAC3D,MAAM,CAAC,MAAM,iBAAiB,GAAG,yCAAyC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/Outline/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/Outline/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAuC,MAAM,cAAc,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
/** The actions go under the title when the window has no room for them beside it. */
|
|
2
|
+
export declare const pageHeaderClass = "flex flex-wrap items-start justify-between gap-x-6 gap-y-4";
|
|
3
|
+
export declare const pageHeaderActionsClass = "flex max-w-full shrink-0 flex-wrap items-center gap-2";
|
|
3
4
|
//# sourceMappingURL=PageHeader.variants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeader.variants.d.ts","sourceRoot":"","sources":["../../../src/patterns/PageHeader/PageHeader.variants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"PageHeader.variants.d.ts","sourceRoot":"","sources":["../../../src/patterns/PageHeader/PageHeader.variants.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,eAAO,MAAM,eAAe,+DAA+D,CAAC;AAC5F,eAAO,MAAM,sBAAsB,0DAA0D,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export const
|
|
1
|
+
/** The actions go under the title when the window has no room for them beside it. */
|
|
2
|
+
export const pageHeaderClass = 'flex flex-wrap items-start justify-between gap-x-6 gap-y-4';
|
|
3
|
+
export const pageHeaderActionsClass = 'flex max-w-full shrink-0 flex-wrap items-center gap-2';
|
|
3
4
|
//# sourceMappingURL=PageHeader.variants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeader.variants.js","sourceRoot":"","sources":["../../../src/patterns/PageHeader/PageHeader.variants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG,
|
|
1
|
+
{"version":3,"file":"PageHeader.variants.js","sourceRoot":"","sources":["../../../src/patterns/PageHeader/PageHeader.variants.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,MAAM,CAAC,MAAM,eAAe,GAAG,4DAA4D,CAAC;AAC5F,MAAM,CAAC,MAAM,sBAAsB,GAAG,uDAAuD,CAAC"}
|
|
@@ -3,6 +3,20 @@ import { type PagePreviewVariants } from './PagePreview.variants.js';
|
|
|
3
3
|
/** What can be done to a section from the page itself. */
|
|
4
4
|
declare const ACTIONS: readonly ["up", "down", "duplicate", "remove", "addBefore", "addAfter"];
|
|
5
5
|
export type PageSectionAction = (typeof ACTIONS)[number];
|
|
6
|
+
declare const ITEM_ACTIONS: readonly ["up", "down", "duplicate", "remove"];
|
|
7
|
+
/** What can be done to one item of a list from the page. */
|
|
8
|
+
export type PageItemAction = (typeof ITEM_ACTIONS)[number];
|
|
9
|
+
/** A look of a section chosen among a few of the site's colours: its field, what it is called, each choice with a sample, and the one chosen. */
|
|
10
|
+
export interface PageSectionSwatches {
|
|
11
|
+
readonly field: string;
|
|
12
|
+
readonly name: string;
|
|
13
|
+
readonly chosen?: string;
|
|
14
|
+
readonly choices: readonly {
|
|
15
|
+
readonly value: string;
|
|
16
|
+
readonly name: string;
|
|
17
|
+
readonly colour: string;
|
|
18
|
+
}[];
|
|
19
|
+
}
|
|
6
20
|
export interface PageSectionTools {
|
|
7
21
|
/** What each button is called, shown when the pointer rests on it, and the words on the button that adds a section. */
|
|
8
22
|
readonly labels: {
|
|
@@ -13,6 +27,15 @@ export interface PageSectionTools {
|
|
|
13
27
|
readonly add: string;
|
|
14
28
|
readonly addBefore: string;
|
|
15
29
|
readonly addAfter: string;
|
|
30
|
+
readonly picture?: string;
|
|
31
|
+
readonly link?: string;
|
|
32
|
+
readonly bold?: string;
|
|
33
|
+
readonly italic?: string;
|
|
34
|
+
readonly textLink?: string;
|
|
35
|
+
readonly itemUp?: string;
|
|
36
|
+
readonly itemDown?: string;
|
|
37
|
+
readonly itemDuplicate?: string;
|
|
38
|
+
readonly itemRemove?: string;
|
|
16
39
|
};
|
|
17
40
|
/** For each section's id: what it is called, and what can be done to it now. */
|
|
18
41
|
readonly sections: Readonly<Record<string, {
|
|
@@ -21,6 +44,25 @@ export interface PageSectionTools {
|
|
|
21
44
|
readonly down: boolean;
|
|
22
45
|
readonly copy: boolean;
|
|
23
46
|
readonly add: boolean;
|
|
47
|
+
readonly pictures?: readonly string[];
|
|
48
|
+
readonly links?: readonly string[];
|
|
49
|
+
readonly lists?: readonly {
|
|
50
|
+
readonly field: string;
|
|
51
|
+
readonly count: number;
|
|
52
|
+
readonly full: boolean;
|
|
53
|
+
}[];
|
|
54
|
+
readonly swatches?: readonly PageSectionSwatches[];
|
|
55
|
+
readonly list?: string;
|
|
56
|
+
readonly group?: string;
|
|
57
|
+
}>>;
|
|
58
|
+
/**
|
|
59
|
+
* The places inside sections that hold sections of their own, each by the section it is in and its field (`id:columns.0.content`):
|
|
60
|
+
* which places take each other's sections (`group`), and whether one is empty or takes no more.
|
|
61
|
+
*/
|
|
62
|
+
readonly slots?: Readonly<Record<string, {
|
|
63
|
+
readonly group: string;
|
|
64
|
+
readonly empty: boolean;
|
|
65
|
+
readonly full: boolean;
|
|
24
66
|
}>>;
|
|
25
67
|
}
|
|
26
68
|
export interface PagePreviewProps extends PagePreviewVariants {
|
|
@@ -45,7 +87,21 @@ export interface PagePreviewProps extends PagePreviewVariants {
|
|
|
45
87
|
* Called with a section's id when it is pressed on the page, and with the field that was
|
|
46
88
|
* pressed, as keys (`title`, `items.0.text`), where the page marks its fields.
|
|
47
89
|
*/
|
|
48
|
-
readonly onSectionPress?: (id: string, field?: string) => void;
|
|
90
|
+
readonly onSectionPress?: (id: string, field?: string, inForm?: boolean) => void;
|
|
91
|
+
/**
|
|
92
|
+
* Called when the page asks where a link in text being written there should lead, with the
|
|
93
|
+
* address it has now (or none) and how to answer: an address, nothing to take the link away,
|
|
94
|
+
* or `null` to leave it as it is. Ask the person, then answer.
|
|
95
|
+
*/
|
|
96
|
+
readonly onTextLink?: (href: string, answer: (href: string | null) => void) => void;
|
|
97
|
+
/** Called when a swatch on a section's bar is pressed: the section, the field and the choice. Whoever holds the sections makes the change. */
|
|
98
|
+
readonly onSectionSwatch?: (id: string, field: string, value: string) => void;
|
|
99
|
+
/** Called when the keys that take a change back are pressed on the page. The page takes nothing back itself. */
|
|
100
|
+
readonly onUndo?: () => void;
|
|
101
|
+
/** Called when the keys that make a change again are pressed on the page. */
|
|
102
|
+
readonly onRedo?: () => void;
|
|
103
|
+
/** Called when the keys that save are pressed on the page. The page saves nothing itself. */
|
|
104
|
+
readonly onSave?: () => void;
|
|
49
105
|
/** The section the page should have in view, and outlined. */
|
|
50
106
|
readonly shownSectionId?: string;
|
|
51
107
|
/**
|
|
@@ -69,7 +125,24 @@ export interface PagePreviewProps extends PagePreviewVariants {
|
|
|
69
125
|
* Called when a section is dragged by its bar and let go: with the section it should now come
|
|
70
126
|
* before, or `null` for after the last.
|
|
71
127
|
*/
|
|
72
|
-
readonly onSectionMove?: (id: string, beforeId: string | null) => void;
|
|
128
|
+
readonly onSectionMove?: (id: string, beforeId: string | null, into?: string) => void;
|
|
129
|
+
/** Called when the button of an empty place inside a section is pressed on the page: the section and the place's field, as keys. Offer what can be added there. */
|
|
130
|
+
readonly onSectionSlot?: (id: string, field: string) => void;
|
|
131
|
+
/**
|
|
132
|
+
* Called when the button on one of a section's pictures is pressed on the page, with the
|
|
133
|
+
* section's id and the picture's field, as keys. Open the window the picture is chosen in.
|
|
134
|
+
*/
|
|
135
|
+
readonly onSectionPicture?: (id: string, field: string) => void;
|
|
136
|
+
/**
|
|
137
|
+
* Called when the button on one of a section's links is pressed on the page, with the section's
|
|
138
|
+
* id and the link's field, as keys. Open a window the link is changed in.
|
|
139
|
+
*/
|
|
140
|
+
readonly onSectionLink?: (id: string, field: string) => void;
|
|
141
|
+
/**
|
|
142
|
+
* Called when a button on one item of a section's list is pressed on the page, with the section's
|
|
143
|
+
* id, the list's field as keys, the item's place and what was asked. Whoever holds the list makes the change.
|
|
144
|
+
*/
|
|
145
|
+
readonly onSectionItem?: (id: string, field: string, at: number, action: PageItemAction) => void;
|
|
73
146
|
/** No border of its own, for a place that frames it already, such as a whole window. */
|
|
74
147
|
readonly isBare?: boolean;
|
|
75
148
|
}
|
|
@@ -77,6 +150,6 @@ export interface PagePreviewProps extends PagePreviewVariants {
|
|
|
77
150
|
* A page of the site as it would look with what is in a form now, in a frame. The page is drawn
|
|
78
151
|
* by the site itself, so it looks exactly as it will; nothing of it is drawn here.
|
|
79
152
|
*/
|
|
80
|
-
export declare function PagePreview({ label, address, draft, note, toolbar, action, emptyText, onSectionPress, shownSectionId, typable, onWords, tools, onSectionAction, onSectionMove, isBare, width }: PagePreviewProps): import("react").JSX.Element;
|
|
153
|
+
export declare function PagePreview({ label, address, draft, note, toolbar, action, emptyText, onSectionPress, shownSectionId, typable, onWords, tools, onSectionAction, onSectionMove, onSectionPicture, onSectionLink, onSectionItem, onSectionSwatch, onSectionSlot, onTextLink, onUndo, onRedo, onSave, isBare, width }: PagePreviewProps): import("react").JSX.Element;
|
|
81
154
|
export {};
|
|
82
155
|
//# sourceMappingURL=PagePreview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PagePreview.d.ts","sourceRoot":"","sources":["../../../src/patterns/PagePreview/PagePreview.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"PagePreview.d.ts","sourceRoot":"","sources":["../../../src/patterns/PagePreview/PagePreview.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3E,OAAO,EAQL,KAAK,mBAAmB,EACzB,MAAM,2BAA2B,CAAC;AA4BnC,0DAA0D;A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