@velocity-astro/cms-ui 0.1.0-beta.8 → 0.1.0-beta.9
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 +31 -11
- package/dist/components/BarChart/BarChart.d.ts +23 -0
- package/dist/components/BarChart/BarChart.d.ts.map +1 -0
- package/dist/components/BarChart/BarChart.js +19 -0
- package/dist/components/BarChart/BarChart.js.map +1 -0
- package/dist/components/BarChart/BarChart.variants.d.ts +29 -0
- package/dist/components/BarChart/BarChart.variants.d.ts.map +1 -0
- package/dist/components/BarChart/BarChart.variants.js +81 -0
- package/dist/components/BarChart/BarChart.variants.js.map +1 -0
- package/dist/components/BarChart/index.d.ts +2 -0
- package/dist/components/BarChart/index.d.ts.map +1 -0
- package/dist/components/BarChart/index.js +2 -0
- package/dist/components/BarChart/index.js.map +1 -0
- package/dist/components/Button/Button.d.ts +6 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +5 -3
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/Button.variants.d.ts +6 -1
- package/dist/components/Button/Button.variants.d.ts.map +1 -1
- package/dist/components/Button/Button.variants.js +13 -1
- package/dist/components/Button/Button.variants.js.map +1 -1
- package/dist/components/Card/Card.d.ts +3 -1
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/Card.js +3 -3
- package/dist/components/Card/Card.js.map +1 -1
- package/dist/components/Card/Card.variants.d.ts +4 -1
- package/dist/components/Card/Card.variants.d.ts.map +1 -1
- package/dist/components/Card/Card.variants.js +6 -1
- package/dist/components/Card/Card.variants.js.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +30 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -0
- package/dist/components/ColorPicker/ColorPicker.js +32 -0
- package/dist/components/ColorPicker/ColorPicker.js.map +1 -0
- package/dist/components/ColorPicker/ColorPicker.variants.d.ts +24 -0
- package/dist/components/ColorPicker/ColorPicker.variants.d.ts.map +1 -0
- package/dist/components/ColorPicker/ColorPicker.variants.js +42 -0
- package/dist/components/ColorPicker/ColorPicker.variants.js.map +1 -0
- package/dist/components/ColorPicker/index.d.ts +2 -0
- package/dist/components/ColorPicker/index.d.ts.map +1 -0
- package/dist/components/ColorPicker/index.js +2 -0
- package/dist/components/ColorPicker/index.js.map +1 -0
- package/dist/components/FileButton/FileButton.d.ts +3 -1
- package/dist/components/FileButton/FileButton.d.ts.map +1 -1
- package/dist/components/FileButton/FileButton.js +2 -2
- package/dist/components/FileButton/FileButton.js.map +1 -1
- package/dist/components/Heading/Heading.d.ts +1 -1
- package/dist/components/Heading/Heading.d.ts.map +1 -1
- package/dist/components/Heading/Heading.js +2 -2
- package/dist/components/Heading/Heading.js.map +1 -1
- package/dist/components/Heading/Heading.variants.d.ts +1 -0
- package/dist/components/Heading/Heading.variants.d.ts.map +1 -1
- package/dist/components/Heading/Heading.variants.js +2 -0
- package/dist/components/Heading/Heading.variants.js.map +1 -1
- package/dist/components/Segmented/Segmented.d.ts +6 -1
- package/dist/components/Segmented/Segmented.d.ts.map +1 -1
- package/dist/components/Segmented/Segmented.js +9 -3
- package/dist/components/Segmented/Segmented.js.map +1 -1
- package/dist/components/Segmented/Segmented.variants.d.ts +7 -1
- package/dist/components/Segmented/Segmented.variants.d.ts.map +1 -1
- package/dist/components/Segmented/Segmented.variants.js +11 -3
- package/dist/components/Segmented/Segmented.variants.js.map +1 -1
- package/dist/components/Table/Table.d.ts +9 -9
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/Table.js +4 -16
- package/dist/components/Table/Table.js.map +1 -1
- package/dist/components/Table/Table.variants.d.ts +6 -2
- package/dist/components/Table/Table.variants.d.ts.map +1 -1
- package/dist/components/Table/Table.variants.js +9 -6
- package/dist/components/Table/Table.variants.js.map +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/patterns/AppShell/AppShell.d.ts +6 -7
- package/dist/patterns/AppShell/AppShell.d.ts.map +1 -1
- package/dist/patterns/AppShell/AppShell.js +14 -4
- package/dist/patterns/AppShell/AppShell.js.map +1 -1
- package/dist/patterns/AppShell/AppShell.variants.d.ts +24 -15
- package/dist/patterns/AppShell/AppShell.variants.d.ts.map +1 -1
- package/dist/patterns/AppShell/AppShell.variants.js +41 -20
- package/dist/patterns/AppShell/AppShell.variants.js.map +1 -1
- package/dist/patterns/PageHeader/PageHeader.d.ts +33 -4
- package/dist/patterns/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/patterns/PageHeader/PageHeader.js +31 -6
- package/dist/patterns/PageHeader/PageHeader.js.map +1 -1
- package/dist/patterns/PageHeader/PageHeader.variants.d.ts +23 -3
- package/dist/patterns/PageHeader/PageHeader.variants.d.ts.map +1 -1
- package/dist/patterns/PageHeader/PageHeader.variants.js +33 -3
- package/dist/patterns/PageHeader/PageHeader.variants.js.map +1 -1
- package/dist/patterns/PagePreview/PagePreview.d.ts +9 -1
- package/dist/patterns/PagePreview/PagePreview.d.ts.map +1 -1
- package/dist/patterns/PagePreview/PagePreview.js +6 -2
- package/dist/patterns/PagePreview/PagePreview.js.map +1 -1
- package/dist/patterns/SaveBar/SaveBar.d.ts +16 -5
- package/dist/patterns/SaveBar/SaveBar.d.ts.map +1 -1
- package/dist/patterns/SaveBar/SaveBar.js +21 -3
- package/dist/patterns/SaveBar/SaveBar.js.map +1 -1
- package/dist/patterns/SaveBar/SaveBar.variants.d.ts +25 -7
- package/dist/patterns/SaveBar/SaveBar.variants.d.ts.map +1 -1
- package/dist/patterns/SaveBar/SaveBar.variants.js +32 -10
- package/dist/patterns/SaveBar/SaveBar.variants.js.map +1 -1
- package/dist/patterns/SectionList/SectionList.d.ts.map +1 -1
- package/dist/patterns/SectionList/SectionList.js +2 -2
- package/dist/patterns/SectionList/SectionList.js.map +1 -1
- package/dist/patterns/SectionList/SectionList.variants.d.ts +4 -1
- package/dist/patterns/SectionList/SectionList.variants.d.ts.map +1 -1
- package/dist/patterns/SectionList/SectionList.variants.js +5 -2
- package/dist/patterns/SectionList/SectionList.variants.js.map +1 -1
- package/dist/patterns/Split/Split.variants.d.ts +2 -2
- package/dist/patterns/Split/Split.variants.d.ts.map +1 -1
- package/dist/patterns/Split/Split.variants.js +2 -2
- package/dist/patterns/Split/Split.variants.js.map +1 -1
- package/dist/patterns/Workbench/Workbench.d.ts +22 -5
- package/dist/patterns/Workbench/Workbench.d.ts.map +1 -1
- package/dist/patterns/Workbench/Workbench.js +53 -8
- package/dist/patterns/Workbench/Workbench.js.map +1 -1
- package/dist/patterns/Workbench/Workbench.variants.d.ts +31 -2
- package/dist/patterns/Workbench/Workbench.variants.d.ts.map +1 -1
- package/dist/patterns/Workbench/Workbench.variants.js +65 -8
- package/dist/patterns/Workbench/Workbench.variants.js.map +1 -1
- package/dist/patterns/Workbench/index.d.ts +1 -1
- package/dist/patterns/Workbench/index.d.ts.map +1 -1
- package/dist/patterns/Workbench/index.js.map +1 -1
- package/dist/patterns/index.d.ts +1 -1
- package/dist/patterns/index.d.ts.map +1 -1
- package/dist/patterns/index.js +1 -1
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/page-bar.d.ts +17 -0
- package/dist/patterns/page-bar.d.ts.map +1 -0
- package/dist/patterns/page-bar.js +22 -0
- package/dist/patterns/page-bar.js.map +1 -0
- package/package.json +1 -1
- package/src/styles.css +1 -0
- package/src/tokens/tokens.css +1 -1
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Beside the form, the workbench is part of the screen. Whole, it covers the window, over the frame of
|
|
4
|
+
* the editor, as a studio of its own: always in the dark theme (`dark` turns every token in it to its
|
|
5
|
+
* dark value), so the page, the one thing in full colour, stands out from it.
|
|
6
|
+
*/
|
|
3
7
|
export declare const workbenchVariants: (props?: ({
|
|
4
8
|
view?: "beside" | "whole" | null | undefined;
|
|
5
9
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -15,11 +19,36 @@ export declare const workbenchFormVariants: (props?: ({
|
|
|
15
19
|
view?: "beside" | "whole" | null | undefined;
|
|
16
20
|
isAway?: boolean | null | undefined;
|
|
17
21
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
22
|
+
/** How wide the form's panel is with the whole window, in the steps a person drags it through. */
|
|
23
|
+
export declare const workbenchFormWidthVariants: (props?: ({
|
|
24
|
+
width?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 7 | 9 | null | undefined;
|
|
25
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
26
|
+
export declare const WORKBENCH_FORM_STEPS = 10;
|
|
27
|
+
export declare const WORKBENCH_FORM_DEFAULT = 6;
|
|
28
|
+
/** How wide the outline is, in the same way. */
|
|
29
|
+
export declare const workbenchOutlineWidthVariants: (props?: ({
|
|
30
|
+
width?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | null | undefined;
|
|
31
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
32
|
+
export declare const WORKBENCH_OUTLINE_STEPS = 8;
|
|
33
|
+
export declare const WORKBENCH_OUTLINE_DEFAULT = 3;
|
|
34
|
+
/** How far the pointer moves for one step, in pixels. */
|
|
35
|
+
export declare const workbenchResizeStep = 32;
|
|
36
|
+
/** What the form holds, in a column: beside, as wide as the form's column; whole, as wide as the panel was dragged. */
|
|
37
|
+
export declare const workbenchFormInnerClass = "flex min-w-0 flex-col gap-6";
|
|
18
38
|
/** Beside the form, the pane stays in view while the form scrolls under the bar at the top. */
|
|
19
39
|
export declare const workbenchPaneVariants: (props?: ({
|
|
20
40
|
view?: "beside" | "whole" | null | undefined;
|
|
41
|
+
isResizing?: boolean | null | undefined;
|
|
21
42
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
22
43
|
/** 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
|
|
44
|
+
export declare const workbenchOutlineClass = "hidden shrink-0 flex-col overflow-auto border-r border-border bg-card p-3 lg:flex";
|
|
45
|
+
/**
|
|
46
|
+
* The edge between two columns, dragged to make one wider or narrower, or moved with the arrow keys
|
|
47
|
+
* once it has the focus. It shows as a line, and as the brand's colour while it is held or chosen.
|
|
48
|
+
*/
|
|
49
|
+
export declare const workbenchHandleVariants: (props?: ({
|
|
50
|
+
place?: "form" | "outline" | null | undefined;
|
|
51
|
+
isActive?: boolean | null | undefined;
|
|
52
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
24
53
|
export type WorkbenchVariants = VariantProps<typeof workbenchVariants>;
|
|
25
54
|
//# 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
|
|
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;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;8EAQ5B,CAAC;AAEH,uHAAuH;AACvH,eAAO,MAAM,qBAAqB;;8EAQhC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;8EAUhC,CAAC;AAEH,kGAAkG;AAClG,eAAO,MAAM,0BAA0B;;8EAerC,CAAC;AACH,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,sBAAsB,IAAI,CAAC;AACxC,gDAAgD;AAChD,eAAO,MAAM,6BAA6B;;8EAaxC,CAAC;AACH,eAAO,MAAM,uBAAuB,IAAI,CAAC;AACzC,eAAO,MAAM,yBAAyB,IAAI,CAAC;AAC3C,yDAAyD;AACzD,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAEtC,uHAAuH;AACvH,eAAO,MAAM,uBAAuB,gCAAgC,CAAC;AAErE,+FAA+F;AAC/F,eAAO,MAAM,qBAAqB;;;8EAUhC,CAAC;AAEH,4GAA4G;AAC5G,eAAO,MAAM,qBAAqB,sFAAsF,CAAC;AAEzH;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;;8EASnC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { cva } from 'class-variance-authority';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Beside the form, the workbench is part of the screen. Whole, it covers the window, over the frame of
|
|
4
|
+
* the editor, as a studio of its own: always in the dark theme (`dark` turns every token in it to its
|
|
5
|
+
* dark value), so the page, the one thing in full colour, stands out from it.
|
|
6
|
+
*/
|
|
3
7
|
export const workbenchVariants = cva('', {
|
|
4
8
|
variants: {
|
|
5
9
|
view: {
|
|
6
10
|
beside: 'w-full',
|
|
7
|
-
whole: 'fixed inset-0 layer-overlay flex flex-col bg-background-secondary',
|
|
11
|
+
whole: 'dark fixed inset-0 layer-overlay flex flex-col bg-background-secondary text-foreground',
|
|
8
12
|
},
|
|
9
13
|
},
|
|
10
14
|
defaultVariants: { view: 'beside' },
|
|
@@ -27,23 +31,76 @@ export const workbenchFormVariants = cva('flex min-w-0 flex-col gap-6', {
|
|
|
27
31
|
variants: {
|
|
28
32
|
view: {
|
|
29
33
|
beside: 'xl:w-lg xl:shrink-0',
|
|
30
|
-
whole: 'order-last
|
|
34
|
+
whole: 'order-last max-w-full shrink-0 overflow-auto border-l border-border bg-card p-4',
|
|
31
35
|
},
|
|
32
36
|
isAway: { true: '', false: '' },
|
|
33
37
|
},
|
|
34
|
-
compoundVariants: [{ view: 'whole', isAway: true, class: '
|
|
38
|
+
compoundVariants: [{ view: 'whole', isAway: true, class: 'hidden' }],
|
|
35
39
|
defaultVariants: { view: 'beside', isAway: false },
|
|
36
40
|
});
|
|
41
|
+
/** How wide the form's panel is with the whole window, in the steps a person drags it through. */
|
|
42
|
+
export const workbenchFormWidthVariants = cva('flex min-w-0 max-w-full flex-col gap-6', {
|
|
43
|
+
variants: {
|
|
44
|
+
width: {
|
|
45
|
+
0: 'md:w-80',
|
|
46
|
+
1: 'md:w-88',
|
|
47
|
+
2: 'md:w-96',
|
|
48
|
+
3: 'md:w-104',
|
|
49
|
+
4: 'md:w-112',
|
|
50
|
+
5: 'md:w-120',
|
|
51
|
+
6: 'md:w-128',
|
|
52
|
+
7: 'md:w-136',
|
|
53
|
+
8: 'md:w-144',
|
|
54
|
+
9: 'md:w-160',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
export const WORKBENCH_FORM_STEPS = 10;
|
|
59
|
+
export const WORKBENCH_FORM_DEFAULT = 6;
|
|
60
|
+
/** How wide the outline is, in the same way. */
|
|
61
|
+
export const workbenchOutlineWidthVariants = cva('', {
|
|
62
|
+
variants: {
|
|
63
|
+
width: {
|
|
64
|
+
0: 'w-48',
|
|
65
|
+
1: 'w-52',
|
|
66
|
+
2: 'w-56',
|
|
67
|
+
3: 'w-60',
|
|
68
|
+
4: 'w-64',
|
|
69
|
+
5: 'w-72',
|
|
70
|
+
6: 'w-80',
|
|
71
|
+
7: 'w-96',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
export const WORKBENCH_OUTLINE_STEPS = 8;
|
|
76
|
+
export const WORKBENCH_OUTLINE_DEFAULT = 3;
|
|
77
|
+
/** How far the pointer moves for one step, in pixels. */
|
|
78
|
+
export const workbenchResizeStep = 32;
|
|
79
|
+
/** What the form holds, in a column: beside, as wide as the form's column; whole, as wide as the panel was dragged. */
|
|
80
|
+
export const workbenchFormInnerClass = 'flex min-w-0 flex-col gap-6';
|
|
37
81
|
/** Beside the form, the pane stays in view while the form scrolls under the bar at the top. */
|
|
38
82
|
export const workbenchPaneVariants = cva('min-w-0', {
|
|
39
83
|
variants: {
|
|
40
84
|
view: {
|
|
41
|
-
beside: 'pane-tall xl:sticky xl:top-
|
|
42
|
-
whole: 'min-h-0 flex-1',
|
|
85
|
+
beside: 'pane-tall xl:sticky xl:top-8 xl:flex-1',
|
|
86
|
+
whole: 'min-h-0 flex-1 p-3',
|
|
43
87
|
},
|
|
88
|
+
/** While a panel is dragged wider or narrower, the page takes no pointer, so the drag is not lost over it. */
|
|
89
|
+
isResizing: { true: 'pointer-events-none select-none', false: '' },
|
|
44
90
|
},
|
|
45
|
-
defaultVariants: { view: 'beside' },
|
|
91
|
+
defaultVariants: { view: 'beside', isResizing: false },
|
|
46
92
|
});
|
|
47
93
|
/** 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
|
|
94
|
+
export const workbenchOutlineClass = 'hidden shrink-0 flex-col overflow-auto border-r border-border bg-card p-3 lg:flex';
|
|
95
|
+
/**
|
|
96
|
+
* The edge between two columns, dragged to make one wider or narrower, or moved with the arrow keys
|
|
97
|
+
* once it has the focus. It shows as a line, and as the brand's colour while it is held or chosen.
|
|
98
|
+
*/
|
|
99
|
+
export const workbenchHandleVariants = cva('relative z-10 w-1 shrink-0 cursor-col-resize touch-none bg-border transition-colors motion-fast outline-none hover:bg-border-strong', {
|
|
100
|
+
variants: {
|
|
101
|
+
place: { outline: 'hidden lg:block', form: 'order-last max-md:hidden' },
|
|
102
|
+
isActive: { true: 'bg-brand-fill hover:bg-brand-fill', false: '' },
|
|
103
|
+
},
|
|
104
|
+
defaultVariants: { place: 'outline', isActive: false },
|
|
105
|
+
});
|
|
49
106
|
//# 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
|
|
1
|
+
{"version":3,"file":"Workbench.variants.js","sourceRoot":"","sources":["../../../src/patterns/Workbench/Workbench.variants.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Workbench, type WorkbenchProps } from './Workbench.js';
|
|
1
|
+
export { Workbench, type WorkbenchProps, type WorkbenchSizes } from './Workbench.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/Workbench/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/Workbench/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/Workbench/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/Workbench/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA4C,MAAM,gBAAgB,CAAC"}
|
package/dist/patterns/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export * from './SectionList/index.js';
|
|
|
14
14
|
export * from './PagePreview/index.js';
|
|
15
15
|
export * from './Workbench/index.js';
|
|
16
16
|
export * from './CommandPalette/index.js';
|
|
17
|
+
export * from './Outline/index.js';
|
|
17
18
|
export * from './Welcome/index.js';
|
|
18
19
|
export * from './SiteWindow/index.js';
|
|
19
|
-
export * from './Outline/index.js';
|
|
20
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;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,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,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC"}
|
package/dist/patterns/index.js
CHANGED
|
@@ -14,7 +14,7 @@ export * from './SectionList/index.js';
|
|
|
14
14
|
export * from './PagePreview/index.js';
|
|
15
15
|
export * from './Workbench/index.js';
|
|
16
16
|
export * from './CommandPalette/index.js';
|
|
17
|
+
export * from './Outline/index.js';
|
|
17
18
|
export * from './Welcome/index.js';
|
|
18
19
|
export * from './SiteWindow/index.js';
|
|
19
|
-
export * from './Outline/index.js';
|
|
20
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;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,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,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a screen's header goes: the bar across the top of `AppShell`. The shell gives the element
|
|
3
|
+
* once it is drawn (`null` until then); outside a shell there is none (`undefined`), and a header
|
|
4
|
+
* is drawn where it stands, as in a story or a test of one part.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PageBarContext: import("react").Context<HTMLElement | null | undefined>;
|
|
7
|
+
/** The bar a screen's header is drawn in, `null` while the shell is still drawing it, or `undefined` outside a shell. */
|
|
8
|
+
export declare function usePageBar(): HTMLElement | null | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Told by a screen whose bar leads back (an entry, with the way back to its list) that it does, so on a
|
|
11
|
+
* phone the shell leaves out its menu and its search: one row, the way back in the menu's place, as on
|
|
12
|
+
* any phone. Outside a shell there is nothing to tell.
|
|
13
|
+
*/
|
|
14
|
+
export declare const PageBarBackContext: import("react").Context<((leadsBack: boolean) => void) | undefined>;
|
|
15
|
+
/** Says, while the screen is shown, that its bar leads back. */
|
|
16
|
+
export declare function usePageBarBack(): ((leadsBack: boolean) => void) | undefined;
|
|
17
|
+
//# sourceMappingURL=page-bar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-bar.d.ts","sourceRoot":"","sources":["../../src/patterns/page-bar.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,cAAc,yDAA2D,CAAC;AAEvF,yHAAyH;AACzH,wBAAgB,UAAU,IAAI,WAAW,GAAG,IAAI,GAAG,SAAS,CAE3D;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,uCAA8B,OAAO,KAAK,IAAI,cAAyB,CAAC;AAEvG,gEAAgE;AAChE,wBAAgB,cAAc,IAAI,CAAC,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,CAE3E"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createContext, useContext } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Where a screen's header goes: the bar across the top of `AppShell`. The shell gives the element
|
|
4
|
+
* once it is drawn (`null` until then); outside a shell there is none (`undefined`), and a header
|
|
5
|
+
* is drawn where it stands, as in a story or a test of one part.
|
|
6
|
+
*/
|
|
7
|
+
export const PageBarContext = createContext(undefined);
|
|
8
|
+
/** The bar a screen's header is drawn in, `null` while the shell is still drawing it, or `undefined` outside a shell. */
|
|
9
|
+
export function usePageBar() {
|
|
10
|
+
return useContext(PageBarContext);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Told by a screen whose bar leads back (an entry, with the way back to its list) that it does, so on a
|
|
14
|
+
* phone the shell leaves out its menu and its search: one row, the way back in the menu's place, as on
|
|
15
|
+
* any phone. Outside a shell there is nothing to tell.
|
|
16
|
+
*/
|
|
17
|
+
export const PageBarBackContext = createContext(undefined);
|
|
18
|
+
/** Says, while the screen is shown, that its bar leads back. */
|
|
19
|
+
export function usePageBarBack() {
|
|
20
|
+
return useContext(PageBarBackContext);
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=page-bar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-bar.js","sourceRoot":"","sources":["../../src/patterns/page-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAElD;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAiC,SAAS,CAAC,CAAC;AAEvF,yHAAyH;AACzH,MAAM,UAAU,UAAU;IACxB,OAAO,UAAU,CAAC,cAAc,CAAC,CAAC;AACpC,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAA6C,SAAS,CAAC,CAAC;AAEvG,gEAAgE;AAChE,MAAM,UAAU,cAAc;IAC5B,OAAO,UAAU,CAAC,kBAAkB,CAAC,CAAC;AACxC,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.9",
|
|
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
package/src/tokens/tokens.css
CHANGED
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
|
|
242
242
|
/* The height of a pane that stays in view beside a form: the window less the frame, the bar
|
|
243
243
|
at the top of the screen and the space around the pane. */
|
|
244
|
-
--pane-height: calc(100dvh -
|
|
244
|
+
--pane-height: calc(100dvh - 8rem);
|
|
245
245
|
|
|
246
246
|
/* The rail: the dark strip of the editor's sections down the side of the window. It is dark in
|
|
247
247
|
both themes, so these hold for light and dark alike (see .dark below for its ground). */
|