@protobase/ui 0.18.0 → 0.19.1
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/app/app.d.ts +2 -2
- package/dist/app/app.js +12 -9
- package/dist/app/current-address.d.ts +1 -0
- package/dist/app/current-address.js +2 -1
- package/dist/app/custom-section.js +1 -1
- package/dist/app/displays/custom-display.js +1 -1
- package/dist/app/displays/map-display.js +1 -1
- package/dist/app/displays/record-card.js +1 -1
- package/dist/app/gallery/gallery-items.js +37 -0
- package/dist/app/gallery/gallery-layout.js +17 -0
- package/dist/app/gallery/gallery-section.js +124 -0
- package/dist/app/gallery/lightbox.js +121 -0
- package/dist/app/gallery/photo-details.js +49 -0
- package/dist/app/gallery/use-gallery-photos.js +38 -0
- package/dist/app/pages/merge-ui.d.ts +1 -1
- package/dist/app/pages/merge-ui.js +12 -2
- package/dist/app/pages/project-ui.d.ts +24 -4
- package/dist/app/pages/project-ui.js +3 -3
- package/dist/app/pages/render-node.js +1 -1
- package/dist/app/record-lines.js +2 -2
- package/dist/app/record-mode/record-mode.js +31 -0
- package/dist/app/record-page.js +109 -28
- package/dist/app/use-live-save.js +4 -1
- package/dist/assistant-dock/widget-view.js +1 -1
- package/dist/auth/auth-gate.js +7 -1
- package/dist/auth/auth-provider.js +10 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/package.js +1 -1
- package/dist/plugins/before-sign-in.js +49 -0
- package/dist/plugins/plugin-gate.js +8 -8
- package/dist/plugins/plugin-source.js +32 -0
- package/dist/plugins/plugin-ui.js +5 -3
- package/dist/plugins/use-plugin-loads.js +3 -4
- package/dist/record-view/spec-table.js +25 -0
- package/dist/shell/assets/app-DYl-j-Nf.js +66 -0
- package/dist/shell/assets/index-BLnOMDD8.css +2 -0
- package/dist/shell/assets/{index-BXEkf4-O.js → index-Bes91xE3.js} +1 -1
- package/dist/shell/assets/{maplibre-DCGyNbM2.js → maplibre-BDe9GhVw.js} +2 -2
- package/dist/shell/assets/{record-map-DEn8Ulev.js → record-map-CY2LFq1z.js} +1 -1
- package/dist/shell/assets/{records-map-DdLiVxEp.js → records-map-B_DHVvmx.js} +1 -1
- package/dist/shell/assets/shared-protobase-ui-Bb2W4Il8.js +1 -0
- package/dist/shell/index.html +4 -4
- package/dist/shell/protobase.shell.json +1 -1
- package/package.json +4 -4
- package/dist/shell/assets/app-j50iAbLC.js +0 -66
- package/dist/shell/assets/index-D0AzKE47.css +0 -2
- package/dist/shell/assets/shared-protobase-ui-zMOavpbt.js +0 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { cn } from "../lib/cn.js";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region src/record-view/spec-table.tsx
|
|
4
|
+
/**
|
|
5
|
+
* Label/value rows, the label on the left and the value on the right, as a property's features table on a real estate
|
|
6
|
+
* site: what a record page's section shows on its read view. A wide row puts its value under the label.
|
|
7
|
+
*/
|
|
8
|
+
const SpecTable = ({ rows }) => /* @__PURE__ */ jsx("dl", {
|
|
9
|
+
className: "border-t border-border text-[13px]",
|
|
10
|
+
children: rows.map((row) => /* @__PURE__ */ jsxs("div", {
|
|
11
|
+
className: cn("grid gap-x-4 border-b border-border py-2.5", row.wide ? "grid-cols-1 gap-y-1.5" : "grid-cols-[minmax(0,2fr)_minmax(0,3fr)]"),
|
|
12
|
+
children: [/* @__PURE__ */ jsxs("dt", {
|
|
13
|
+
className: "min-w-0 text-muted-foreground",
|
|
14
|
+
children: [row.label, row.help && /* @__PURE__ */ jsx("span", {
|
|
15
|
+
className: "mt-0.5 block text-xs text-faint-foreground",
|
|
16
|
+
children: row.help
|
|
17
|
+
})]
|
|
18
|
+
}), /* @__PURE__ */ jsx("dd", {
|
|
19
|
+
className: "min-w-0 break-words text-foreground",
|
|
20
|
+
children: row.value
|
|
21
|
+
})]
|
|
22
|
+
}, row.label))
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { SpecTable };
|