@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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/Welcome/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/Welcome/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAqB,MAAM,cAAc,CAAC"}
|
|
@@ -11,12 +11,16 @@ export interface WorkbenchProps extends WorkbenchVariants {
|
|
|
11
11
|
readonly bar?: ReactNode;
|
|
12
12
|
/** With the whole window, whether the form is put away at the side so the pane has it all. */
|
|
13
13
|
readonly isFormAway?: boolean;
|
|
14
|
+
/** With the whole window, on the left of the pane: the way around it, such as an `Outline` of the page's sections. */
|
|
15
|
+
readonly outline?: ReactNode;
|
|
16
|
+
/** Names the outline's column for screen readers, such as "Sections of the page". */
|
|
17
|
+
readonly outlineLabel?: string;
|
|
14
18
|
}
|
|
15
19
|
/**
|
|
16
20
|
* A form with what it makes shown large beside it. On a narrow screen the pane follows below.
|
|
17
|
-
* With `view="whole"` the two take the whole window, over the editor's frame
|
|
18
|
-
* panel
|
|
19
|
-
* are: nothing typed is lost and the pane is not made again.
|
|
21
|
+
* With `view="whole"` the two take the whole window, over the editor's frame: the outline on the
|
|
22
|
+
* left, the pane in the middle, and the form a panel on the right that can be put away. Going from
|
|
23
|
+
* one view to the other keeps both as they are: nothing typed is lost and the pane is not made again.
|
|
20
24
|
*/
|
|
21
|
-
export declare function Workbench({ paneLabel, children, pane, bar, isFormAway, view }: WorkbenchProps): import("react").JSX.Element;
|
|
25
|
+
export declare function Workbench({ paneLabel, children, pane, bar, isFormAway, outline, outlineLabel, view }: WorkbenchProps): import("react").JSX.Element;
|
|
22
26
|
//# sourceMappingURL=Workbench.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Workbench.d.ts","sourceRoot":"","sources":["../../../src/patterns/Workbench/Workbench.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,
|
|
1
|
+
{"version":3,"file":"Workbench.d.ts","sourceRoot":"","sources":["../../../src/patterns/Workbench/Workbench.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAML,KAAK,iBAAiB,EACvB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,WAAW,cAAe,SAAQ,iBAAiB;IACvD,6DAA6D;IAC7D,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,2DAA2D;IAC3D,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC7B,6EAA6E;IAC7E,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,iHAAiH;IACjH,QAAQ,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC;IACzB,8FAA8F;IAC9F,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,sHAAsH;IACtH,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC;IAC7B,qFAAqF;IACrF,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,UAAkB,EAAE,OAAO,EAAE,YAAY,EAAE,IAAe,EAAE,EAAE,cAAc,+BAuBvI"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { FocusScope } from 'react-aria';
|
|
3
|
-
import { workbenchBodyVariants, workbenchFormVariants, workbenchPaneVariants, workbenchVariants } from './Workbench.variants.js';
|
|
3
|
+
import { workbenchBodyVariants, workbenchFormVariants, workbenchOutlineClass, workbenchPaneVariants, workbenchVariants, } from './Workbench.variants.js';
|
|
4
4
|
/**
|
|
5
5
|
* A form with what it makes shown large beside it. On a narrow screen the pane follows below.
|
|
6
|
-
* With `view="whole"` the two take the whole window, over the editor's frame
|
|
7
|
-
* panel
|
|
8
|
-
* are: nothing typed is lost and the pane is not made again.
|
|
6
|
+
* With `view="whole"` the two take the whole window, over the editor's frame: the outline on the
|
|
7
|
+
* left, the pane in the middle, and the form a panel on the right that can be put away. Going from
|
|
8
|
+
* one view to the other keeps both as they are: nothing typed is lost and the pane is not made again.
|
|
9
9
|
*/
|
|
10
|
-
export function Workbench({ paneLabel, children, pane, bar, isFormAway = false, view = 'beside' }) {
|
|
10
|
+
export function Workbench({ paneLabel, children, pane, bar, isFormAway = false, outline, outlineLabel, view = 'beside' }) {
|
|
11
11
|
const isWhole = view === 'whole';
|
|
12
|
+
const form = _jsx("div", { className: workbenchFormVariants({ view, isAway: isWhole && isFormAway }), children: children });
|
|
12
13
|
return (
|
|
13
14
|
// With the whole window, the keyboard stays in it: what is behind cannot be seen.
|
|
14
|
-
_jsx(FocusScope, { contain: isWhole, children: _jsxs("div", { className: workbenchVariants({ view }), children: [isWhole && bar, _jsxs("div", { className: workbenchBodyVariants({ view }), children: [_jsx("
|
|
15
|
+
_jsx(FocusScope, { contain: isWhole, children: _jsxs("div", { className: workbenchVariants({ view }), children: [isWhole && bar, _jsxs("div", { className: workbenchBodyVariants({ view }), children: [isWhole && outline !== undefined && (_jsx("aside", { "aria-label": outlineLabel, className: workbenchOutlineClass, children: outline })), form, _jsx("section", { "aria-label": paneLabel, className: workbenchPaneVariants({ view }), children: pane })] })] }) }));
|
|
15
16
|
}
|
|
16
17
|
//# sourceMappingURL=Workbench.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Workbench.js","sourceRoot":"","sources":["../../../src/patterns/Workbench/Workbench.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,
|
|
1
|
+
{"version":3,"file":"Workbench.js","sourceRoot":"","sources":["../../../src/patterns/Workbench/Workbench.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,GAElB,MAAM,yBAAyB,CAAC;AAmBjC;;;;;GAKG;AACH,MAAM,UAAU,SAAS,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,GAAG,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,GAAG,QAAQ,EAAkB;IACtI,MAAM,OAAO,GAAG,IAAI,KAAK,OAAO,CAAC;IACjC,MAAM,IAAI,GAAG,cAAK,SAAS,EAAE,qBAAqB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,IAAI,UAAU,EAAE,CAAC,YAAG,QAAQ,GAAO,CAAC;IAC9G,OAAO;IACL,kFAAkF;IAClF,KAAC,UAAU,IAAC,OAAO,EAAE,OAAO,YAC1B,eAAK,SAAS,EAAE,iBAAiB,CAAC,EAAE,IAAI,EAAE,CAAC,aACxC,OAAO,IAAI,GAAG,EACf,eAAK,SAAS,EAAE,qBAAqB,CAAC,EAAE,IAAI,EAAE,CAAC,aAC5C,OAAO,IAAI,OAAO,KAAK,SAAS,IAAI,CACnC,8BAAmB,YAAY,EAAE,SAAS,EAAE,qBAAqB,YAC9D,OAAO,GACF,CACT,EAEA,IAAI,EACL,gCAAqB,SAAS,EAAE,SAAS,EAAE,qBAAqB,CAAC,EAAE,IAAI,EAAE,CAAC,YACvE,IAAI,GACG,IACN,IACF,GACK,CACd,CAAC;AACJ,CAAC"}
|
|
@@ -7,7 +7,10 @@ export declare const workbenchVariants: (props?: ({
|
|
|
7
7
|
export declare const workbenchBodyVariants: (props?: ({
|
|
8
8
|
view?: "beside" | "whole" | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Whole, the form is a panel on the right that scrolls by itself, where what is chosen on the page is edited, and slides away to
|
|
12
|
+
* leave the pane the window. On a phone it is as wide as the window, so away it is simply gone.
|
|
13
|
+
*/
|
|
11
14
|
export declare const workbenchFormVariants: (props?: ({
|
|
12
15
|
view?: "beside" | "whole" | null | undefined;
|
|
13
16
|
isAway?: boolean | null | undefined;
|
|
@@ -16,5 +19,7 @@ export declare const workbenchFormVariants: (props?: ({
|
|
|
16
19
|
export declare const workbenchPaneVariants: (props?: ({
|
|
17
20
|
view?: "beside" | "whole" | null | undefined;
|
|
18
21
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
22
|
+
/** Whole, the way around what is made, on the left: from `lg` up, where there is room for three columns. */
|
|
23
|
+
export declare const workbenchOutlineClass = "hidden w-60 shrink-0 flex-col overflow-auto border-r border-border bg-background p-3 lg:flex";
|
|
19
24
|
export type WorkbenchVariants = VariantProps<typeof workbenchVariants>;
|
|
20
25
|
//# sourceMappingURL=Workbench.variants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Workbench.variants.d.ts","sourceRoot":"","sources":["../../../src/patterns/Workbench/Workbench.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,uHAAuH;AACvH,eAAO,MAAM,iBAAiB;;8EAQ5B,CAAC;AAEH,uHAAuH;AACvH,eAAO,MAAM,qBAAqB;;8EAQhC,CAAC;AAEH
|
|
1
|
+
{"version":3,"file":"Workbench.variants.d.ts","sourceRoot":"","sources":["../../../src/patterns/Workbench/Workbench.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,uHAAuH;AACvH,eAAO,MAAM,iBAAiB;;8EAQ5B,CAAC;AAEH,uHAAuH;AACvH,eAAO,MAAM,qBAAqB;;8EAQhC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;8EAUhC,CAAC;AAEH,+FAA+F;AAC/F,eAAO,MAAM,qBAAqB;;8EAQhC,CAAC;AAEH,4GAA4G;AAC5G,eAAO,MAAM,qBAAqB,iGAAiG,CAAC;AAEpI,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -19,16 +19,19 @@ export const workbenchBodyVariants = cva('flex', {
|
|
|
19
19
|
},
|
|
20
20
|
defaultVariants: { view: 'beside' },
|
|
21
21
|
});
|
|
22
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* Whole, the form is a panel on the right that scrolls by itself, where what is chosen on the page is edited, and slides away to
|
|
24
|
+
* leave the pane the window. On a phone it is as wide as the window, so away it is simply gone.
|
|
25
|
+
*/
|
|
23
26
|
export const workbenchFormVariants = cva('flex min-w-0 flex-col gap-6', {
|
|
24
27
|
variants: {
|
|
25
28
|
view: {
|
|
26
29
|
beside: 'xl:w-lg xl:shrink-0',
|
|
27
|
-
whole: 'w-lg max-w-full shrink-0 overflow-auto border-
|
|
30
|
+
whole: 'order-last w-lg max-w-full shrink-0 overflow-auto border-l border-border bg-background p-4 transition-all motion-slide',
|
|
28
31
|
},
|
|
29
32
|
isAway: { true: '', false: '' },
|
|
30
33
|
},
|
|
31
|
-
compoundVariants: [{ view: 'whole', isAway: true, class: '-
|
|
34
|
+
compoundVariants: [{ view: 'whole', isAway: true, class: 'invisible max-md:hidden md:-mr-128' }],
|
|
32
35
|
defaultVariants: { view: 'beside', isAway: false },
|
|
33
36
|
});
|
|
34
37
|
/** Beside the form, the pane stays in view while the form scrolls under the bar at the top. */
|
|
@@ -41,4 +44,6 @@ export const workbenchPaneVariants = cva('min-w-0', {
|
|
|
41
44
|
},
|
|
42
45
|
defaultVariants: { view: 'beside' },
|
|
43
46
|
});
|
|
47
|
+
/** Whole, the way around what is made, on the left: from `lg` up, where there is room for three columns. */
|
|
48
|
+
export const workbenchOutlineClass = 'hidden w-60 shrink-0 flex-col overflow-auto border-r border-border bg-background p-3 lg:flex';
|
|
44
49
|
//# sourceMappingURL=Workbench.variants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Workbench.variants.js","sourceRoot":"","sources":["../../../src/patterns/Workbench/Workbench.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAElE,uHAAuH;AACvH,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAC,EAAE,EAAE;IACvC,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,MAAM,EAAE,QAAQ;YAChB,KAAK,EAAE,mEAAmE;SAC3E;KACF;IACD,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;CACpC,CAAC,CAAC;AAEH,uHAAuH;AACvH,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAC,MAAM,EAAE;IAC/C,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,MAAM,EAAE,kDAAkD;YAC1D,KAAK,EAAE,gBAAgB;SACxB;KACF;IACD,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;CACpC,CAAC,CAAC;AAEH
|
|
1
|
+
{"version":3,"file":"Workbench.variants.js","sourceRoot":"","sources":["../../../src/patterns/Workbench/Workbench.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAElE,uHAAuH;AACvH,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAC,EAAE,EAAE;IACvC,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,MAAM,EAAE,QAAQ;YAChB,KAAK,EAAE,mEAAmE;SAC3E;KACF;IACD,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;CACpC,CAAC,CAAC;AAEH,uHAAuH;AACvH,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAC,MAAM,EAAE;IAC/C,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,MAAM,EAAE,kDAAkD;YAC1D,KAAK,EAAE,gBAAgB;SACxB;KACF;IACD,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;CACpC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAC,6BAA6B,EAAE;IACtE,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,MAAM,EAAE,qBAAqB;YAC7B,KAAK,EAAE,wHAAwH;SAChI;QACD,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;KAChC;IACD,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,oCAAoC,EAAE,CAAC;IAChG,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE;CACnD,CAAC,CAAC;AAEH,+FAA+F;AAC/F,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAC,SAAS,EAAE;IAClD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,MAAM,EAAE,yCAAyC;YACjD,KAAK,EAAE,gBAAgB;SACxB;KACF;IACD,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;CACpC,CAAC,CAAC;AAEH,4GAA4G;AAC5G,MAAM,CAAC,MAAM,qBAAqB,GAAG,8FAA8F,CAAC"}
|
package/dist/patterns/index.d.ts
CHANGED
|
@@ -13,4 +13,8 @@ export * from './Board/index.js';
|
|
|
13
13
|
export * from './SectionList/index.js';
|
|
14
14
|
export * from './PagePreview/index.js';
|
|
15
15
|
export * from './Workbench/index.js';
|
|
16
|
+
export * from './CommandPalette/index.js';
|
|
17
|
+
export * from './Welcome/index.js';
|
|
18
|
+
export * from './SiteWindow/index.js';
|
|
19
|
+
export * from './Outline/index.js';
|
|
16
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/patterns/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/patterns/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC"}
|
package/dist/patterns/index.js
CHANGED
|
@@ -13,4 +13,8 @@ export * from './Board/index.js';
|
|
|
13
13
|
export * from './SectionList/index.js';
|
|
14
14
|
export * from './PagePreview/index.js';
|
|
15
15
|
export * from './Workbench/index.js';
|
|
16
|
+
export * from './CommandPalette/index.js';
|
|
17
|
+
export * from './Welcome/index.js';
|
|
18
|
+
export * from './SiteWindow/index.js';
|
|
19
|
+
export * from './Outline/index.js';
|
|
16
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/patterns/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/patterns/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velocity-astro/cms-ui",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.8",
|
|
4
4
|
"description": "The Velocity CMS editor's design system: tokens, components and patterns. Knows nothing about content or the API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
package/src/styles.css
CHANGED
|
@@ -71,6 +71,12 @@
|
|
|
71
71
|
--color-info-light: var(--info-light);
|
|
72
72
|
--color-info-foreground: var(--info-foreground);
|
|
73
73
|
--color-scrim: var(--scrim);
|
|
74
|
+
--color-rail: var(--rail);
|
|
75
|
+
--color-rail-foreground: var(--rail-foreground);
|
|
76
|
+
--color-rail-muted: var(--rail-muted);
|
|
77
|
+
--color-rail-hover: var(--rail-hover);
|
|
78
|
+
--color-rail-current: var(--rail-current);
|
|
79
|
+
--color-rail-border: var(--rail-border);
|
|
74
80
|
--color-brand-fill: var(--brand-fill);
|
|
75
81
|
--color-brand-ink: var(--brand-ink);
|
|
76
82
|
|
|
@@ -92,6 +98,10 @@
|
|
|
92
98
|
--text-2xl--line-height: var(--type-2xl-leading);
|
|
93
99
|
--text-3xl: var(--type-3xl);
|
|
94
100
|
--text-3xl--line-height: var(--type-3xl-leading);
|
|
101
|
+
--text-4xl: var(--type-4xl);
|
|
102
|
+
--text-4xl--line-height: var(--type-4xl-leading);
|
|
103
|
+
--text-5xl: var(--type-5xl);
|
|
104
|
+
--text-5xl--line-height: var(--type-5xl-leading);
|
|
95
105
|
|
|
96
106
|
--radius-sm: var(--theme-radius-sm);
|
|
97
107
|
--radius-md: var(--theme-radius-md);
|
|
@@ -159,6 +169,16 @@
|
|
|
159
169
|
transform: translateX(100%);
|
|
160
170
|
}
|
|
161
171
|
}
|
|
172
|
+
@keyframes motion-sheet-start-in {
|
|
173
|
+
from {
|
|
174
|
+
transform: translateX(-100%);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
@keyframes motion-sheet-start-out {
|
|
178
|
+
to {
|
|
179
|
+
transform: translateX(-100%);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
162
182
|
@keyframes motion-float-in {
|
|
163
183
|
from {
|
|
164
184
|
opacity: 0;
|
|
@@ -220,6 +240,16 @@
|
|
|
220
240
|
forwards;
|
|
221
241
|
}
|
|
222
242
|
}
|
|
243
|
+
/* The same from the other edge: the navigation of a narrow window. */
|
|
244
|
+
@utility motion-sheet-start {
|
|
245
|
+
&[data-entering] {
|
|
246
|
+
animation: motion-sheet-start-in var(--motion-slower) var(--motion-ease-enter);
|
|
247
|
+
}
|
|
248
|
+
&[data-exiting] {
|
|
249
|
+
animation: motion-sheet-start-out var(--motion-slow) var(--motion-ease-exit)
|
|
250
|
+
forwards;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
223
253
|
/* A list, menu or tooltip beside what opened it: it comes from that side. */
|
|
224
254
|
@utility motion-float {
|
|
225
255
|
&[data-placement^="bottom"] {
|
|
@@ -282,6 +312,14 @@
|
|
|
282
312
|
animation-timing-function: var(--motion-ease);
|
|
283
313
|
}
|
|
284
314
|
|
|
315
|
+
/* A faint grid behind the top of a screen that greets: lines of the border colour, 40px apart. */
|
|
316
|
+
@utility bg-grid {
|
|
317
|
+
background-image:
|
|
318
|
+
linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px),
|
|
319
|
+
linear-gradient(to right, var(--border-subtle) 1px, transparent 1px);
|
|
320
|
+
background-size: 2.5rem 2.5rem;
|
|
321
|
+
}
|
|
322
|
+
|
|
285
323
|
/* As tall as the room a screen has under its bar, for a pane that stays in view. */
|
|
286
324
|
@utility pane-tall {
|
|
287
325
|
height: var(--pane-height);
|
package/src/tokens/tokens.css
CHANGED
|
@@ -220,6 +220,11 @@
|
|
|
220
220
|
--type-2xl-leading: 2rem;
|
|
221
221
|
--type-3xl: 1.875rem;
|
|
222
222
|
--type-3xl-leading: 2.125rem;
|
|
223
|
+
/* The greeting at the top of Home, the one large line of the editor. */
|
|
224
|
+
--type-4xl: 2.25rem;
|
|
225
|
+
--type-4xl-leading: 2.5rem;
|
|
226
|
+
--type-5xl: 3rem;
|
|
227
|
+
--type-5xl-leading: 3.25rem;
|
|
223
228
|
|
|
224
229
|
/* Motion: short, and off entirely for people who ask for less. */
|
|
225
230
|
--motion-fast: 100ms;
|
|
@@ -236,7 +241,16 @@
|
|
|
236
241
|
|
|
237
242
|
/* The height of a pane that stays in view beside a form: the window less the frame, the bar
|
|
238
243
|
at the top of the screen and the space around the pane. */
|
|
239
|
-
--pane-height: calc(100dvh -
|
|
244
|
+
--pane-height: calc(100dvh - 11rem);
|
|
245
|
+
|
|
246
|
+
/* The rail: the dark strip of the editor's sections down the side of the window. It is dark in
|
|
247
|
+
both themes, so these hold for light and dark alike (see .dark below for its ground). */
|
|
248
|
+
--rail: var(--gray-950);
|
|
249
|
+
--rail-foreground: var(--gray-50); /* 19.3:1 on the rail */
|
|
250
|
+
--rail-muted: var(--gray-400); /* 6.0:1 on the rail */
|
|
251
|
+
--rail-hover: oklch(100% 0 0 / 0.08);
|
|
252
|
+
--rail-current: oklch(100% 0 0 / 0.14);
|
|
253
|
+
--rail-border: oklch(100% 0 0 / 0.12);
|
|
240
254
|
|
|
241
255
|
/* Layering: the only stacking levels there are. */
|
|
242
256
|
--layer-raised: 10;
|
|
@@ -248,6 +262,12 @@
|
|
|
248
262
|
--scrim: oklch(0 0 0 / 0.5);
|
|
249
263
|
}
|
|
250
264
|
|
|
265
|
+
/* In the dark theme the rail sits a step below the page, so it still reads as its own strip. After
|
|
266
|
+
the block above: both are as specific, so the later one wins. */
|
|
267
|
+
.dark {
|
|
268
|
+
--rail: oklch(7% 0 0);
|
|
269
|
+
}
|
|
270
|
+
|
|
251
271
|
@media (prefers-reduced-motion: reduce) {
|
|
252
272
|
:root {
|
|
253
273
|
--motion-fast: 0ms;
|