rimecms 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/i18n/en/fields.d.ts +1 -1
- package/dist/core/i18n/en/fields.js +1 -1
- package/dist/core/i18n/fr/fields.d.ts +1 -1
- package/dist/core/i18n/fr/fields.js +1 -1
- package/dist/fields/blocks/component/AddBlockButton.svelte +1 -1
- package/dist/fields/blocks/component/Block.svelte +4 -5
- package/dist/fields/blocks/component/Blocks.svelte +17 -13
- package/dist/fields/blocks/component/focus/BlocksFocus.svelte +52 -64
- package/dist/fields/blocks/component/focus/DefaultRender.svelte +108 -0
- package/dist/fields/blocks/component/focus/{RenderPlaceholder.svelte.d.ts → DefaultRender.svelte.d.ts} +3 -3
- package/dist/fields/blocks/component/focus/Inspector.svelte +160 -0
- package/dist/fields/blocks/component/focus/Inspector.svelte.d.ts +7 -0
- package/dist/fields/blocks/component/focus/Layers.svelte +16 -3
- package/dist/fields/blocks/component/focus/LayersList.svelte +28 -11
- package/dist/fields/blocks/component/focus/LayersList.svelte.d.ts +2 -0
- package/dist/fields/blocks/component/focus/Palette.svelte +3 -3
- package/dist/fields/blocks/component/focus/Renders.svelte +66 -15
- package/dist/fields/blocks/component/focus/Renders.svelte.d.ts +5 -1
- package/dist/fields/blocks/component/focus/StagePlaceholder.svelte +1 -4
- package/dist/fields/blocks/component/focus/focus.svelte.d.ts +26 -12
- package/dist/fields/blocks/component/focus/focus.svelte.js +114 -57
- package/dist/fields/blocks/component/picker/BlockTile.svelte +3 -5
- package/dist/fields/combobox/component/ComboBox.svelte +1 -1
- package/dist/fields/combobox/component/combobox.css +1 -1
- package/dist/fields/date/component/Date.svelte +1 -1
- package/dist/fields/group/component/Group.svelte +4 -4
- package/dist/fields/link/component/Link.svelte +1 -1
- package/dist/fields/link/component/RessourceInput.svelte +2 -2
- package/dist/fields/number/component/Number.svelte +1 -1
- package/dist/fields/relation/component/Cell.svelte +3 -1
- package/dist/fields/relation/component/RelationInline.svelte +50 -19
- package/dist/fields/relation/component/default/Default.svelte +3 -3
- package/dist/fields/relation/component/upload/Browse.svelte +2 -2
- package/dist/fields/relation/component/upload/Upload.svelte +2 -2
- package/dist/fields/rich-text/component/bubble-menu/bubble-menu.css +1 -1
- package/dist/fields/rich-text/component/bubble-menu/node-selector/node-selector.css +1 -1
- package/dist/fields/rich-text/core/features/link/component/link-selector.svelte +2 -2
- package/dist/fields/rich-text/core/features/resource/resource.svelte +1 -1
- package/dist/fields/rich-text/core/features/upload/upload.svelte +1 -1
- package/dist/fields/select/component/Select.svelte +2 -2
- package/dist/fields/text/component/TextInline.svelte +113 -0
- package/dist/fields/text/component/TextInline.svelte.d.ts +14 -0
- package/dist/fields/textarea/component/TextArea.svelte +1 -1
- package/dist/fields/tree/component/TreeBlock.svelte +4 -4
- package/dist/panel/components/fields/Error.svelte +1 -1
- package/dist/panel/components/fields/FieldsPreview.svelte +1 -1
- package/dist/panel/components/fields/FieldsPreviewTrigger.svelte +1 -1
- package/dist/panel/components/fields/Hint.svelte +1 -1
- package/dist/panel/components/fields/setting.css +6 -6
- package/dist/panel/components/sections/auth/AuthForm.svelte +2 -2
- package/dist/panel/components/sections/collection/Avatar.svelte +1 -1
- package/dist/panel/components/sections/collection/bulk-upload/FileDrop.svelte +1 -1
- package/dist/panel/components/sections/collection/bulk-upload/PageDrop.svelte +3 -3
- package/dist/panel/components/sections/collection/bulk-upload/UploadProgress.svelte +1 -1
- package/dist/panel/components/sections/collection/folder/Folder.svelte +1 -1
- package/dist/panel/components/sections/collection/folder/FolderWithActions.svelte +2 -2
- package/dist/panel/components/sections/collection/grid/grid-item/GridItem.svelte +1 -1
- package/dist/panel/components/sections/collection/header/DisplayMode.svelte +1 -2
- package/dist/panel/components/sections/collection/list/CollectionList.svelte +2 -2
- package/dist/panel/components/sections/collection/list/header/Header.svelte +1 -1
- package/dist/panel/components/sections/collection/list/row/Row.svelte +1 -1
- package/dist/panel/components/sections/collection/tree/CollectionTree.svelte +1 -1
- package/dist/panel/components/sections/collection/tree/CollectionTreeNode.svelte +1 -1
- package/dist/panel/components/sections/collection/upload-thumb-cell/UploadThumbCell.svelte +1 -1
- package/dist/panel/components/sections/commands/CommandButton.svelte +1 -1
- package/dist/panel/components/sections/document/AuthAPIKeyDialog.svelte +1 -1
- package/dist/panel/components/sections/document/AuthFooter.svelte +2 -2
- package/dist/panel/components/sections/document/AutoSaveBanner.svelte +2 -2
- package/dist/panel/components/sections/document/ButtonStatus.svelte +1 -1
- package/dist/panel/components/sections/document/ChangeSlugDialog.svelte +1 -1
- package/dist/panel/components/sections/document/DocumentChildren.svelte +2 -2
- package/dist/panel/components/sections/document/upload-header/UploadHeader.svelte +2 -2
- package/dist/panel/components/sections/document/upload-header/drop-zone/DropZone.svelte +1 -1
- package/dist/panel/components/sections/live/LiveFloatingUI.svelte +2 -2
- package/dist/panel/components/ui/breadcrumb/BreadCrumb.svelte +1 -1
- package/dist/panel/components/ui/button/button.svelte +3 -4
- package/dist/panel/components/ui/card/card.svelte +2 -2
- package/dist/panel/components/ui/card-document/card-document.svelte +2 -2
- package/dist/panel/components/ui/card-resource/card-resource.svelte +2 -2
- package/dist/panel/components/ui/command/command-input.svelte +1 -1
- package/dist/panel/components/ui/context-menu/context-menu.css +1 -1
- package/dist/panel/components/ui/dialog/dialog-content.css +1 -1
- package/dist/panel/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +1 -1
- package/dist/panel/components/ui/dropdown-menu/dropdown-menu-content.css +1 -1
- package/dist/panel/components/ui/input/input.svelte +1 -1
- package/dist/panel/components/ui/nav/Nav.svelte +2 -3
- package/dist/panel/components/ui/nav/NavGroup.svelte +1 -1
- package/dist/panel/components/ui/nav/NavItemButton.svelte +1 -1
- package/dist/panel/components/ui/nav/UserButton.svelte +1 -1
- package/dist/panel/components/ui/page-header/PageHeader.svelte +1 -1
- package/dist/panel/components/ui/popover/popover-content.css +1 -1
- package/dist/panel/components/ui/radio-row-group/radio-row-group.css +0 -1
- package/dist/panel/components/ui/sheet/sheet.css +1 -1
- package/dist/panel/components/ui/sonner/sonner.css +1 -1
- package/dist/panel/components/ui/switch/switch.css +0 -2
- package/dist/panel/components/ui/tabs/tabs.css +2 -1
- package/dist/panel/components/ui/tag/tag.svelte +1 -1
- package/dist/panel/components/ui/tree/tree-rows.css +3 -3
- package/dist/panel/index.d.ts +2 -1
- package/dist/panel/index.js +2 -1
- package/dist/panel/pages/auth/forgot-password/ForgotPassword.svelte +1 -1
- package/dist/panel/pages/dashboard/Dashboard.svelte +1 -1
- package/dist/panel/pages/dashboard/DashboardCard.svelte +2 -2
- package/dist/panel/pages/dashboard/DashboardCollection.svelte +1 -1
- package/dist/panel/pages/dashboard/DashboardRow.svelte +1 -1
- package/dist/panel/style/index.css +13 -37
- package/dist/panel/style/mixins/index.css +1 -1
- package/dist/panel/style/palette.css +3 -3
- package/dist/panel/style/scheme.css +10 -34
- package/package.json +1 -1
- package/dist/fields/blocks/component/focus/RenderPlaceholder.svelte +0 -77
- package/dist/fields/blocks/component/focus/Stage.svelte +0 -190
- package/dist/fields/blocks/component/focus/Stage.svelte.d.ts +0 -8
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
</Button>
|
|
88
88
|
</div>
|
|
89
89
|
|
|
90
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
90
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
91
91
|
|
|
92
92
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
93
93
|
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
background-color: var(--rz-bg-float);
|
|
113
113
|
box-shadow:
|
|
114
114
|
0 0 0 1px var(--rz-border),
|
|
115
|
-
var(--rz-shadow-float);
|
|
115
|
+
var(--rz-shadow-float, 0 0 transparent);
|
|
116
116
|
padding: var(--rz-size-2);
|
|
117
117
|
border-radius: var(--rz-radius-md);
|
|
118
118
|
z-index: 1000;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
{/each}
|
|
24
24
|
</nav>
|
|
25
25
|
|
|
26
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
26
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
27
27
|
|
|
28
28
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
29
29
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
</button>
|
|
62
62
|
{/if}
|
|
63
63
|
|
|
64
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
64
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
65
65
|
|
|
66
66
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
67
67
|
|
|
@@ -203,9 +203,8 @@
|
|
|
203
203
|
|
|
204
204
|
/** Default */
|
|
205
205
|
.rz-button--default {
|
|
206
|
-
background: var(--rz-
|
|
206
|
+
background-color: var(--rz-bg-inverse);
|
|
207
207
|
color: var(--rz-fg-inverse);
|
|
208
|
-
box-shadow: var(--rz-shadow-primary);
|
|
209
208
|
&:hover:not(:disabled) {
|
|
210
209
|
filter: brightness(1.12);
|
|
211
210
|
}
|
|
@@ -256,7 +255,7 @@
|
|
|
256
255
|
background-color: var(--rz-bg-raised);
|
|
257
256
|
box-shadow:
|
|
258
257
|
0 0 0 1px var(--rz-border),
|
|
259
|
-
var(--rz-shadow-raised);
|
|
258
|
+
var(--rz-shadow-raised, 0 0 transparent);
|
|
260
259
|
background-color: var(--rz-button-secondary-bg);
|
|
261
260
|
color: var(--rz-button-secondary-fg);
|
|
262
261
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
{@render children?.()}
|
|
17
17
|
</div>
|
|
18
18
|
|
|
19
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
19
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
20
20
|
|
|
21
21
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
22
22
|
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
background-color: var(--rz-bg-raised);
|
|
40
40
|
box-shadow:
|
|
41
41
|
0 0 0 1px var(--rz-border),
|
|
42
|
-
var(--rz-shadow-raised);
|
|
42
|
+
var(--rz-shadow-raised, 0 0 transparent);
|
|
43
43
|
background-color: var(--rz-card-color-bg);
|
|
44
44
|
border-radius: var(--rz-radius-lg);
|
|
45
45
|
}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
</div>
|
|
38
38
|
</div>
|
|
39
39
|
|
|
40
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
40
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
41
41
|
|
|
42
42
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
43
43
|
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
background-color: var(--rz-bg-raised);
|
|
59
59
|
box-shadow:
|
|
60
60
|
0 0 0 1px var(--rz-border),
|
|
61
|
-
var(--rz-shadow-raised);
|
|
61
|
+
var(--rz-shadow-raised, 0 0 transparent);
|
|
62
62
|
border-radius: var(--rz-radius-lg);
|
|
63
63
|
aspect-ratio: 4 / 5;
|
|
64
64
|
width: 100%;
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
</button>
|
|
56
56
|
</div>
|
|
57
57
|
|
|
58
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
58
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
59
59
|
|
|
60
60
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
61
61
|
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
background-color: var(--rz-bg-raised);
|
|
83
83
|
box-shadow:
|
|
84
84
|
0 0 0 1px var(--rz-border),
|
|
85
|
-
var(--rz-shadow-raised);
|
|
85
|
+
var(--rz-shadow-raised, 0 0 transparent);
|
|
86
86
|
background-color: var(--rz-ressource-card-bg);
|
|
87
87
|
position: relative;
|
|
88
88
|
display: flex;
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
{@render end?.()}
|
|
27
27
|
</div>
|
|
28
28
|
|
|
29
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
29
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
30
30
|
|
|
31
31
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
32
32
|
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
{/snippet}
|
|
36
36
|
</DropdownMenuPrimitive.CheckboxItem>
|
|
37
37
|
|
|
38
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
38
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
39
39
|
|
|
40
40
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
41
41
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
background-color: var(--rz-bg-float);
|
|
3
3
|
box-shadow:
|
|
4
4
|
0 0 0 1px var(--rz-border),
|
|
5
|
-
var(--rz-shadow-float);
|
|
5
|
+
var(--rz-shadow-float, 0 0 transparent);
|
|
6
6
|
/* Over the sidebar (300) and a dialog (1010), which a menu can open from. */
|
|
7
7
|
z-index: 1100;
|
|
8
8
|
min-width: var(--min-width, 8rem);
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<input bind:this={ref} class="rz-input" bind:value {...restProps} />
|
|
26
26
|
</div>
|
|
27
27
|
|
|
28
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
28
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
29
29
|
|
|
30
30
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
31
31
|
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
<UserButton navCollapsed={isCollapsed} />
|
|
96
96
|
</aside>
|
|
97
97
|
|
|
98
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
98
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
99
99
|
|
|
100
100
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
101
101
|
|
|
@@ -174,9 +174,8 @@
|
|
|
174
174
|
border-radius: var(--rz-radius-sm);
|
|
175
175
|
font-size: var(--rz-text-xs);
|
|
176
176
|
text-transform: uppercase;
|
|
177
|
-
background: var(--rz-
|
|
177
|
+
background-color: var(--rz-bg-inverse);
|
|
178
178
|
color: var(--rz-fg-inverse);
|
|
179
|
-
box-shadow: var(--rz-shadow-primary);
|
|
180
179
|
}
|
|
181
180
|
|
|
182
181
|
.rz-nav__brand-name {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
</div>
|
|
46
46
|
</div>
|
|
47
47
|
|
|
48
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
48
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
49
49
|
|
|
50
50
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
51
51
|
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
{/if}
|
|
25
25
|
</a>
|
|
26
26
|
|
|
27
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
27
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
28
28
|
|
|
29
29
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
30
30
|
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
</DropdownMenu.Portal>
|
|
76
76
|
</DropdownMenu.Root>
|
|
77
77
|
|
|
78
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
78
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
79
79
|
|
|
80
80
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
81
81
|
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
{/if}
|
|
77
77
|
{/if}
|
|
78
78
|
|
|
79
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
79
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
80
80
|
|
|
81
81
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
82
82
|
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
align-items: center;
|
|
14
14
|
border-radius: var(--rz-radius-full);
|
|
15
15
|
border: 2px solid transparent;
|
|
16
|
-
box-shadow: var(--rz-shadow-raised);
|
|
17
16
|
transition: all 0.1s ease;
|
|
18
17
|
outline: none;
|
|
19
18
|
}
|
|
@@ -47,7 +46,6 @@
|
|
|
47
46
|
display: block;
|
|
48
47
|
transition: translate 0.25s ease;
|
|
49
48
|
border-radius: var(--rz-radius-full);
|
|
50
|
-
box-shadow: var(--rz-shadow-knob);
|
|
51
49
|
background-color: var(--rz-switch-color-thumb);
|
|
52
50
|
}
|
|
53
51
|
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
color: var(--rz-fg-muted);
|
|
17
17
|
font-variation-settings: 'wght' 380;
|
|
18
18
|
font-weight: 380;
|
|
19
|
+
border: 1px solid transparent;
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
.rz-tabs-trigger:hover {
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
|
|
38
39
|
.rz-tabs-trigger[data-state='active'] {
|
|
39
40
|
background-color: var(--rz-bg-knob);
|
|
40
|
-
|
|
41
|
+
border: 1px solid var(--rz-border);
|
|
41
42
|
position: relative;
|
|
42
43
|
font-variation-settings: 'wght' 450;
|
|
43
44
|
font-weight: 450;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
</button>
|
|
21
21
|
</div>
|
|
22
22
|
|
|
23
|
-
<style global>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
23
|
+
<style global>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
24
24
|
|
|
25
25
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
26
26
|
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
background-color: var(--rz-bg-raised);
|
|
22
22
|
box-shadow:
|
|
23
23
|
0 0 0 1px var(--rz-border),
|
|
24
|
-
var(--rz-shadow-raised);
|
|
24
|
+
var(--rz-shadow-raised, 0 0 transparent);
|
|
25
25
|
border-radius: var(--rz-radius-xl);
|
|
26
26
|
overflow: hidden;
|
|
27
27
|
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
/* Inside a group, a block, a tree item or
|
|
35
|
-
:is(.rz-group-field__content, .rz-block__fields, .rz-tree-item__fields, .rz-
|
|
34
|
+
/* Inside a group, a block, a tree item or the inspector: a hairline, no second fill. */
|
|
35
|
+
:is(.rz-group-field__content, .rz-block__fields, .rz-tree-item__fields, .rz-inspector__fields)
|
|
36
36
|
.rz-tree-card:not([data-empty]) {
|
|
37
37
|
background-color: transparent;
|
|
38
38
|
box-shadow: 0 0 0 1px var(--rz-border);
|
package/dist/panel/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type { Snippet } from 'svelte';
|
|
|
5
5
|
import { Field } from './components/fields/index.js';
|
|
6
6
|
import RelationInline from '../fields/relation/component/RelationInline.svelte';
|
|
7
7
|
import RichTextInline from '../fields/rich-text/component/RichTextInline.svelte';
|
|
8
|
+
import TextInline from '../fields/text/component/TextInline.svelte';
|
|
8
9
|
import RenderFields from './components/fields/RenderFields.svelte';
|
|
9
10
|
import Panel from './components/Root.svelte';
|
|
10
11
|
import Doc from './components/sections/document/Document.svelte';
|
|
@@ -19,7 +20,7 @@ import Live from './pages/live/Live.svelte';
|
|
|
19
20
|
import type { Route } from './types.js';
|
|
20
21
|
import { populate } from '../fields/relation/populate.js';
|
|
21
22
|
import { useCommands } from './context/commands.svelte.js';
|
|
22
|
-
export { Area, Button, Collection, CollectionDoc, Dashboard, Doc, Field, Input, Live, Panel, RelationInline, RenderFields, RichTextInline, SpinLoader, populate, useCommands };
|
|
23
|
+
export { Area, Button, Collection, CollectionDoc, Dashboard, Doc, Field, Input, Live, Panel, RelationInline, RenderFields, RichTextInline, TextInline, SpinLoader, populate, useCommands };
|
|
23
24
|
export declare const CONTEXT: {
|
|
24
25
|
COLLECTION: symbol;
|
|
25
26
|
LIVE: symbol;
|
package/dist/panel/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Field } from './components/fields/index.js';
|
|
2
2
|
import RelationInline from '../fields/relation/component/RelationInline.svelte';
|
|
3
3
|
import RichTextInline from '../fields/rich-text/component/RichTextInline.svelte';
|
|
4
|
+
import TextInline from '../fields/text/component/TextInline.svelte';
|
|
4
5
|
import RenderFields from './components/fields/RenderFields.svelte';
|
|
5
6
|
import Panel from './components/Root.svelte';
|
|
6
7
|
import Doc from './components/sections/document/Document.svelte';
|
|
@@ -22,7 +23,7 @@ import { populate } from '../fields/relation/populate.js';
|
|
|
22
23
|
import { useCommands } from './context/commands.svelte.js';
|
|
23
24
|
export {
|
|
24
25
|
// Components
|
|
25
|
-
Area, Button, Collection, CollectionDoc, Dashboard, Doc, Field, Input, Live, Panel, RelationInline, RenderFields, RichTextInline, SpinLoader,
|
|
26
|
+
Area, Button, Collection, CollectionDoc, Dashboard, Doc, Field, Input, Live, Panel, RelationInline, RenderFields, RichTextInline, TextInline, SpinLoader,
|
|
26
27
|
// A block render's relations, resolved as the API answers them
|
|
27
28
|
populate,
|
|
28
29
|
// The commands a component offers while mounted: palette lines, keys
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
{/if}
|
|
53
53
|
</AuthForm>
|
|
54
54
|
|
|
55
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
55
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
56
56
|
|
|
57
57
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
58
58
|
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
{/snippet}
|
|
126
126
|
</Page>
|
|
127
127
|
|
|
128
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
128
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
129
129
|
|
|
130
130
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
131
131
|
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
{@render children()}
|
|
39
39
|
</section>
|
|
40
40
|
|
|
41
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
41
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
42
42
|
|
|
43
43
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
44
44
|
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
background-color: var(--rz-bg-raised);
|
|
59
59
|
box-shadow:
|
|
60
60
|
0 0 0 1px var(--rz-border),
|
|
61
|
-
var(--rz-shadow-raised);
|
|
61
|
+
var(--rz-shadow-raised, 0 0 transparent);
|
|
62
62
|
border-radius: var(--rz-radius-lg);
|
|
63
63
|
overflow: hidden;
|
|
64
64
|
}
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
<BulkUploadDialog target={uploadTarget} bind:open={uploadOpen} />
|
|
126
126
|
{/if}
|
|
127
127
|
|
|
128
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
128
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
129
129
|
|
|
130
130
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
131
131
|
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
</a>
|
|
34
34
|
</li>
|
|
35
35
|
|
|
36
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
36
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
37
37
|
|
|
38
38
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
39
39
|
|
|
@@ -524,9 +524,9 @@ video {
|
|
|
524
524
|
--rz-gray-14: oklch(0.865 var(--rz-gray-chroma) var(--rz-gray-hue));
|
|
525
525
|
--rz-gray-15: oklch(0.905 var(--rz-gray-chroma) var(--rz-gray-hue));
|
|
526
526
|
--rz-gray-16: oklch(0.94 var(--rz-gray-chroma) var(--rz-gray-hue));
|
|
527
|
-
--rz-gray-17: oklch(0.
|
|
528
|
-
--rz-gray-18: oklch(0.
|
|
529
|
-
--rz-gray-19: oklch(0.
|
|
527
|
+
--rz-gray-17: oklch(0.968 var(--rz-gray-chroma) var(--rz-gray-hue));
|
|
528
|
+
--rz-gray-18: oklch(0.986 var(--rz-gray-chroma) var(--rz-gray-hue));
|
|
529
|
+
--rz-gray-19: oklch(0.992 var(--rz-gray-chroma) var(--rz-gray-hue));
|
|
530
530
|
|
|
531
531
|
--rz-accent-hue: 268;
|
|
532
532
|
--rz-accent-chroma: 0.19;
|
|
@@ -549,16 +549,16 @@ video {
|
|
|
549
549
|
color-scheme: light dark;
|
|
550
550
|
|
|
551
551
|
/* levels */
|
|
552
|
-
--rz-bg-base: var(--rz-gray-
|
|
553
|
-
--rz-bg-page: var(--rz-gray-
|
|
554
|
-
--rz-bg-raised: var(--rz-gray-
|
|
555
|
-
--rz-bg-float: var(--rz-gray-
|
|
556
|
-
--rz-bg-knob: var(--rz-gray-
|
|
552
|
+
--rz-bg-base: var(--rz-gray-15);
|
|
553
|
+
--rz-bg-page: var(--rz-gray-16);
|
|
554
|
+
--rz-bg-raised: var(--rz-gray-17);
|
|
555
|
+
--rz-bg-float: var(--rz-gray-17);
|
|
556
|
+
--rz-bg-knob: var(--rz-gray-17);
|
|
557
557
|
--rz-bg-inverse: var(--rz-gray-2);
|
|
558
558
|
|
|
559
559
|
/* tints */
|
|
560
|
-
--rz-bg-well: oklch(from var(--rz-gray-0) l c h / 0.
|
|
561
|
-
--rz-bg-hover: oklch(from var(--rz-gray-0) l c h / 0.
|
|
560
|
+
--rz-bg-well: oklch(from var(--rz-gray-0) l c h / 0.032);
|
|
561
|
+
--rz-bg-hover: oklch(from var(--rz-gray-0) l c h / 0.021);
|
|
562
562
|
--rz-bg-active: oklch(from var(--rz-gray-0) l c h / 0.06);
|
|
563
563
|
--rz-bg-overlay: oklch(from var(--rz-gray-0) l c h / 0.2);
|
|
564
564
|
|
|
@@ -580,24 +580,10 @@ video {
|
|
|
580
580
|
--rz-accent-border: oklch(from var(--rz-accent-solid) l c h / 0.5);
|
|
581
581
|
--rz-ring: oklch(from var(--rz-accent-solid) l c h / 0.16);
|
|
582
582
|
|
|
583
|
-
/* shadows:
|
|
584
|
-
--rz-shadow-
|
|
585
|
-
--rz-shadow-float:
|
|
586
|
-
0 4px 12px -2px oklch(from var(--rz-gray-0) l c h / 0.06),
|
|
587
|
-
0 16px 36px -12px oklch(from var(--rz-gray-0) l c h / 0.16);
|
|
588
|
-
--rz-shadow-knob:
|
|
589
|
-
0 0 0 1px oklch(from var(--rz-gray-0) l c h / 0.06),
|
|
590
|
-
0 1px 2px oklch(from var(--rz-gray-0) l c h / 0.08);
|
|
583
|
+
/* shadows: only what floats over the page casts one */
|
|
584
|
+
--rz-shadow-float: 0 16px 36px -12px oklch(from var(--rz-gray-0) l c h / 0.16);
|
|
591
585
|
|
|
592
586
|
/* gradients */
|
|
593
|
-
--rz-gradient-primary: linear-gradient(
|
|
594
|
-
180deg,
|
|
595
|
-
oklch(from var(--rz-bg-inverse) calc(l + 0.08) c h),
|
|
596
|
-
var(--rz-bg-inverse)
|
|
597
|
-
);
|
|
598
|
-
--rz-shadow-primary:
|
|
599
|
-
inset 0 1px 0 oklch(from var(--rz-gray-19) l c h / 0.12),
|
|
600
|
-
0 1px 2px oklch(from var(--rz-gray-0) l c h / 0.18);
|
|
601
587
|
--rz-glow: radial-gradient(
|
|
602
588
|
70% 38% at 50% 0%,
|
|
603
589
|
oklch(from var(--rz-accent-solid) l c h / 0.035),
|
|
@@ -632,17 +618,7 @@ video {
|
|
|
632
618
|
--rz-accent-border: oklch(from var(--rz-accent-soft) l c h / 0.45);
|
|
633
619
|
--rz-ring: oklch(from var(--rz-accent-soft) l c h / 0.2);
|
|
634
620
|
|
|
635
|
-
--rz-shadow-
|
|
636
|
-
--rz-shadow-float:
|
|
637
|
-
inset 0 1px 0 oklch(from var(--rz-gray-19) l c h / 0.05),
|
|
638
|
-
0 16px 40px -12px oklch(from var(--rz-gray-0) l c h / 0.6);
|
|
639
|
-
--rz-shadow-knob:
|
|
640
|
-
inset 0 1px 0 oklch(from var(--rz-gray-19) l c h / 0.07),
|
|
641
|
-
0 1px 2px oklch(from var(--rz-gray-0) l c h / 0.5);
|
|
642
|
-
|
|
643
|
-
--rz-shadow-primary:
|
|
644
|
-
inset 0 1px 0 oklch(from var(--rz-gray-19) l c h / 0.5),
|
|
645
|
-
0 1px 2px oklch(from var(--rz-gray-0) l c h / 0.4);
|
|
621
|
+
--rz-shadow-float: 0 16px 40px -12px oklch(from var(--rz-gray-0) l c h / 0.6);
|
|
646
622
|
--rz-glow: radial-gradient(
|
|
647
623
|
70% 38% at 50% 0%,
|
|
648
624
|
oklch(from var(--rz-accent-solid) l c h / 0.07),
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
--rz-gray-14: oklch(0.865 var(--rz-gray-chroma) var(--rz-gray-hue));
|
|
23
23
|
--rz-gray-15: oklch(0.905 var(--rz-gray-chroma) var(--rz-gray-hue));
|
|
24
24
|
--rz-gray-16: oklch(0.94 var(--rz-gray-chroma) var(--rz-gray-hue));
|
|
25
|
-
--rz-gray-17: oklch(0.
|
|
26
|
-
--rz-gray-18: oklch(0.
|
|
27
|
-
--rz-gray-19: oklch(0.
|
|
25
|
+
--rz-gray-17: oklch(0.968 var(--rz-gray-chroma) var(--rz-gray-hue));
|
|
26
|
+
--rz-gray-18: oklch(0.986 var(--rz-gray-chroma) var(--rz-gray-hue));
|
|
27
|
+
--rz-gray-19: oklch(0.992 var(--rz-gray-chroma) var(--rz-gray-hue));
|
|
28
28
|
|
|
29
29
|
--rz-accent-hue: 268;
|
|
30
30
|
--rz-accent-chroma: 0.19;
|
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
color-scheme: light dark;
|
|
9
9
|
|
|
10
10
|
/* levels */
|
|
11
|
-
--rz-bg-base: var(--rz-gray-
|
|
12
|
-
--rz-bg-page: var(--rz-gray-
|
|
13
|
-
--rz-bg-raised: var(--rz-gray-
|
|
14
|
-
--rz-bg-float: var(--rz-gray-
|
|
15
|
-
--rz-bg-knob: var(--rz-gray-
|
|
11
|
+
--rz-bg-base: var(--rz-gray-15);
|
|
12
|
+
--rz-bg-page: var(--rz-gray-16);
|
|
13
|
+
--rz-bg-raised: var(--rz-gray-17);
|
|
14
|
+
--rz-bg-float: var(--rz-gray-17);
|
|
15
|
+
--rz-bg-knob: var(--rz-gray-17);
|
|
16
16
|
--rz-bg-inverse: var(--rz-gray-2);
|
|
17
17
|
|
|
18
18
|
/* tints */
|
|
19
|
-
--rz-bg-well: oklch(from var(--rz-gray-0) l c h / 0.
|
|
20
|
-
--rz-bg-hover: oklch(from var(--rz-gray-0) l c h / 0.
|
|
19
|
+
--rz-bg-well: oklch(from var(--rz-gray-0) l c h / 0.032);
|
|
20
|
+
--rz-bg-hover: oklch(from var(--rz-gray-0) l c h / 0.021);
|
|
21
21
|
--rz-bg-active: oklch(from var(--rz-gray-0) l c h / 0.06);
|
|
22
22
|
--rz-bg-overlay: oklch(from var(--rz-gray-0) l c h / 0.2);
|
|
23
23
|
|
|
@@ -39,24 +39,10 @@
|
|
|
39
39
|
--rz-accent-border: oklch(from var(--rz-accent-solid) l c h / 0.5);
|
|
40
40
|
--rz-ring: oklch(from var(--rz-accent-solid) l c h / 0.16);
|
|
41
41
|
|
|
42
|
-
/* shadows:
|
|
43
|
-
--rz-shadow-
|
|
44
|
-
--rz-shadow-float:
|
|
45
|
-
0 4px 12px -2px oklch(from var(--rz-gray-0) l c h / 0.06),
|
|
46
|
-
0 16px 36px -12px oklch(from var(--rz-gray-0) l c h / 0.16);
|
|
47
|
-
--rz-shadow-knob:
|
|
48
|
-
0 0 0 1px oklch(from var(--rz-gray-0) l c h / 0.06),
|
|
49
|
-
0 1px 2px oklch(from var(--rz-gray-0) l c h / 0.08);
|
|
42
|
+
/* shadows: only what floats over the page casts one */
|
|
43
|
+
--rz-shadow-float: 0 16px 36px -12px oklch(from var(--rz-gray-0) l c h / 0.16);
|
|
50
44
|
|
|
51
45
|
/* gradients */
|
|
52
|
-
--rz-gradient-primary: linear-gradient(
|
|
53
|
-
180deg,
|
|
54
|
-
oklch(from var(--rz-bg-inverse) calc(l + 0.08) c h),
|
|
55
|
-
var(--rz-bg-inverse)
|
|
56
|
-
);
|
|
57
|
-
--rz-shadow-primary:
|
|
58
|
-
inset 0 1px 0 oklch(from var(--rz-gray-19) l c h / 0.12),
|
|
59
|
-
0 1px 2px oklch(from var(--rz-gray-0) l c h / 0.18);
|
|
60
46
|
--rz-glow: radial-gradient(
|
|
61
47
|
70% 38% at 50% 0%,
|
|
62
48
|
oklch(from var(--rz-accent-solid) l c h / 0.035),
|
|
@@ -91,17 +77,7 @@
|
|
|
91
77
|
--rz-accent-border: oklch(from var(--rz-accent-soft) l c h / 0.45);
|
|
92
78
|
--rz-ring: oklch(from var(--rz-accent-soft) l c h / 0.2);
|
|
93
79
|
|
|
94
|
-
--rz-shadow-
|
|
95
|
-
--rz-shadow-float:
|
|
96
|
-
inset 0 1px 0 oklch(from var(--rz-gray-19) l c h / 0.05),
|
|
97
|
-
0 16px 40px -12px oklch(from var(--rz-gray-0) l c h / 0.6);
|
|
98
|
-
--rz-shadow-knob:
|
|
99
|
-
inset 0 1px 0 oklch(from var(--rz-gray-19) l c h / 0.07),
|
|
100
|
-
0 1px 2px oklch(from var(--rz-gray-0) l c h / 0.5);
|
|
101
|
-
|
|
102
|
-
--rz-shadow-primary:
|
|
103
|
-
inset 0 1px 0 oklch(from var(--rz-gray-19) l c h / 0.5),
|
|
104
|
-
0 1px 2px oklch(from var(--rz-gray-0) l c h / 0.4);
|
|
80
|
+
--rz-shadow-float: 0 16px 40px -12px oklch(from var(--rz-gray-0) l c h / 0.6);
|
|
105
81
|
--rz-glow: radial-gradient(
|
|
106
82
|
70% 38% at 50% 0%,
|
|
107
83
|
oklch(from var(--rz-accent-solid) l c h / 0.07),
|