@vertebr/react 0.4.0 → 0.5.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/components/admin/AdminContent.d.ts +36 -0
- package/dist/components/admin/AdminContent.d.ts.map +1 -0
- package/dist/components/admin/AdminContent.js +107 -0
- package/dist/components/admin/AdminHeader.d.ts +13 -0
- package/dist/components/admin/AdminHeader.d.ts.map +1 -0
- package/dist/components/admin/AdminHeader.js +32 -0
- package/dist/components/admin/AdminSidebar.d.ts +25 -0
- package/dist/components/admin/AdminSidebar.d.ts.map +1 -0
- package/dist/components/admin/AdminSidebar.js +31 -0
- package/dist/components/admin/VertebrAdmin.d.ts +3 -18
- package/dist/components/admin/VertebrAdmin.d.ts.map +1 -1
- package/dist/components/admin/VertebrAdmin.js +130 -120
- package/dist/components/admin/sidebar.d.ts +3 -0
- package/dist/components/admin/sidebar.d.ts.map +1 -0
- package/dist/components/admin/sidebar.js +13 -0
- package/dist/components/admin/storage.d.ts +4 -0
- package/dist/components/admin/storage.d.ts.map +1 -0
- package/dist/components/admin/storage.js +24 -0
- package/dist/components/admin/types.d.ts +53 -0
- package/dist/components/admin/types.d.ts.map +1 -0
- package/dist/components/admin/types.js +1 -0
- package/dist/components/config/form/ConfigForm.d.ts +1 -1
- package/dist/components/config/form/ConfigForm.d.ts.map +1 -1
- package/dist/components/config/form/ConfigForm.js +5 -1
- package/dist/components/config/form/RecordConfigForm.d.ts +1 -0
- package/dist/components/config/form/RecordConfigForm.d.ts.map +1 -1
- package/dist/components/config/form/SettingsConfigForm.d.ts +2 -1
- package/dist/components/config/form/SettingsConfigForm.d.ts.map +1 -1
- package/dist/components/config/form/SettingsConfigForm.js +2 -2
- package/dist/components/config/form/helpers/fields.js +1 -1
- package/dist/components/config/form/types.d.ts +4 -0
- package/dist/components/config/form/types.d.ts.map +1 -1
- package/dist/components/emails/EmailRecipientSelect.d.ts +16 -0
- package/dist/components/emails/EmailRecipientSelect.d.ts.map +1 -0
- package/dist/components/emails/EmailRecipientSelect.js +10 -0
- package/dist/components/emails/EmailsActivityPanel.d.ts +11 -0
- package/dist/components/emails/EmailsActivityPanel.d.ts.map +1 -0
- package/dist/components/emails/EmailsActivityPanel.js +139 -0
- package/dist/components/emails/EmailsBoard.d.ts +47 -0
- package/dist/components/emails/EmailsBoard.d.ts.map +1 -0
- package/dist/components/emails/EmailsBoard.js +594 -0
- package/dist/components/emails/EmailsLibraryPanel.d.ts +25 -0
- package/dist/components/emails/EmailsLibraryPanel.d.ts.map +1 -0
- package/dist/components/emails/EmailsLibraryPanel.js +379 -0
- package/dist/components/emails/EmailsNavSelect.d.ts +18 -0
- package/dist/components/emails/EmailsNavSelect.d.ts.map +1 -0
- package/dist/components/emails/EmailsNavSelect.js +37 -0
- package/dist/components/emails/MultiCheckSelect.d.ts +18 -0
- package/dist/components/emails/MultiCheckSelect.d.ts.map +1 -0
- package/dist/components/emails/MultiCheckSelect.js +74 -0
- package/dist/components/metrics/MetricsBoard.d.ts +8 -2
- package/dist/components/metrics/MetricsBoard.d.ts.map +1 -1
- package/dist/components/metrics/MetricsBoard.js +55 -2
- package/dist/components/metrics/charts.d.ts +14 -0
- package/dist/components/metrics/charts.d.ts.map +1 -0
- package/dist/components/metrics/charts.js +212 -0
- package/dist/components/resources/ResourceActionModal.d.ts +14 -0
- package/dist/components/resources/ResourceActionModal.d.ts.map +1 -0
- package/dist/components/resources/ResourceActionModal.js +64 -0
- package/dist/components/resources/ResourceCell.d.ts.map +1 -1
- package/dist/components/resources/ResourceCell.js +25 -9
- package/dist/components/resources/ResourceMailModal.d.ts +12 -0
- package/dist/components/resources/ResourceMailModal.d.ts.map +1 -0
- package/dist/components/resources/ResourceMailModal.js +196 -0
- package/dist/components/resources/ResourceTable.d.ts +7 -3
- package/dist/components/resources/ResourceTable.d.ts.map +1 -1
- package/dist/components/resources/ResourceTable.js +204 -34
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/lib/metricsRanges.d.ts +20 -0
- package/dist/lib/metricsRanges.d.ts.map +1 -0
- package/dist/lib/metricsRanges.js +14 -0
- package/dist/styles/cells.css +42 -0
- package/dist/styles/emails.css +632 -0
- package/dist/styles/index.css +3 -0
- package/dist/styles/mail.css +240 -0
- package/dist/styles/metrics.css +633 -0
- package/dist/styles/nav.css +103 -1
- package/dist/styles/panel.css +2 -68
- package/dist/styles/table.css +26 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { VertebrAdmin } from "./components/admin/VertebrAdmin";
|
|
2
2
|
export { MetricsBoard } from "./components/metrics/MetricsBoard";
|
|
3
3
|
export { GalleryBoard } from "./components/gallery/GalleryBoard";
|
|
4
|
+
export { EmailsBoard } from "./components/emails/EmailsBoard";
|
|
4
5
|
export { ResourcePanel, ResourceTable } from "./components/resources/ResourceTable";
|
|
5
6
|
export { ThemeToggle } from "./components/theme/ThemeToggle";
|
|
6
7
|
export { ConfigForm } from "./components/config/ConfigForm";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const METRICS_RANGES: readonly [{
|
|
2
|
+
readonly id: "7d";
|
|
3
|
+
readonly label: "Last 7 days";
|
|
4
|
+
}, {
|
|
5
|
+
readonly id: "14d";
|
|
6
|
+
readonly label: "Last 14 days";
|
|
7
|
+
}, {
|
|
8
|
+
readonly id: "30d";
|
|
9
|
+
readonly label: "Last 30 days";
|
|
10
|
+
}, {
|
|
11
|
+
readonly id: "this_month";
|
|
12
|
+
readonly label: "This month";
|
|
13
|
+
}, {
|
|
14
|
+
readonly id: "last_month";
|
|
15
|
+
readonly label: "Last month";
|
|
16
|
+
}];
|
|
17
|
+
export type MetricsRangeId = (typeof METRICS_RANGES)[number]["id"];
|
|
18
|
+
export declare const DEFAULT_METRICS_RANGE: MetricsRangeId;
|
|
19
|
+
export declare function parseMetricsRangeId(raw: string | null | undefined): MetricsRangeId;
|
|
20
|
+
//# sourceMappingURL=metricsRanges.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metricsRanges.d.ts","sourceRoot":"","sources":["../../src/lib/metricsRanges.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;EAMjB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;AAEnE,eAAO,MAAM,qBAAqB,EAAE,cAAsB,CAAC;AAI3D,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC7B,cAAc,CAGhB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const METRICS_RANGES = [
|
|
2
|
+
{ id: "7d", label: "Last 7 days" },
|
|
3
|
+
{ id: "14d", label: "Last 14 days" },
|
|
4
|
+
{ id: "30d", label: "Last 30 days" },
|
|
5
|
+
{ id: "this_month", label: "This month" },
|
|
6
|
+
{ id: "last_month", label: "Last month" },
|
|
7
|
+
];
|
|
8
|
+
export const DEFAULT_METRICS_RANGE = "14d";
|
|
9
|
+
const RANGE_IDS = new Set(METRICS_RANGES.map((item) => item.id));
|
|
10
|
+
export function parseMetricsRangeId(raw) {
|
|
11
|
+
if (raw && RANGE_IDS.has(raw))
|
|
12
|
+
return raw;
|
|
13
|
+
return DEFAULT_METRICS_RANGE;
|
|
14
|
+
}
|
package/dist/styles/cells.css
CHANGED
|
@@ -137,6 +137,11 @@
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
.vertebr-chip {
|
|
140
|
+
display: inline-block;
|
|
141
|
+
max-width: 12rem;
|
|
142
|
+
overflow: hidden;
|
|
143
|
+
text-overflow: ellipsis;
|
|
144
|
+
white-space: nowrap;
|
|
140
145
|
border: 1px solid var(--vb-border);
|
|
141
146
|
border-radius: 999px;
|
|
142
147
|
padding: 0.1rem 0.45rem;
|
|
@@ -145,6 +150,43 @@
|
|
|
145
150
|
background: var(--vb-surface-tint);
|
|
146
151
|
}
|
|
147
152
|
|
|
153
|
+
.vertebr-cell-thumbs {
|
|
154
|
+
display: flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.vertebr-cell-thumbs img {
|
|
159
|
+
width: 36px;
|
|
160
|
+
height: 36px;
|
|
161
|
+
object-fit: cover;
|
|
162
|
+
border-radius: var(--vb-radius-sm);
|
|
163
|
+
border: 1px solid var(--vb-border);
|
|
164
|
+
background: var(--vb-bg-muted);
|
|
165
|
+
flex: none;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.vertebr-cell-thumbs img + img {
|
|
169
|
+
margin-left: -0.55rem;
|
|
170
|
+
box-shadow: -2px 0 0 var(--vb-bg-elevated);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.vertebr-cell-thumbs-more {
|
|
174
|
+
margin-left: 0.4rem;
|
|
175
|
+
font-size: 0.72rem;
|
|
176
|
+
font-weight: 600;
|
|
177
|
+
color: var(--vb-text-muted);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.vertebr-cell-thumbs-detail {
|
|
181
|
+
flex-wrap: wrap;
|
|
182
|
+
gap: 0.75rem;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.vertebr-cell-thumbs-detail img + img {
|
|
186
|
+
margin-left: 0;
|
|
187
|
+
box-shadow: none;
|
|
188
|
+
}
|
|
189
|
+
|
|
148
190
|
.vertebr-empty {
|
|
149
191
|
flex: 1 1 auto;
|
|
150
192
|
display: grid;
|