@aortl/admin-react 0.7.0 → 0.7.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/PropertyList.d.ts +3 -1
- package/dist/PropertyList.d.ts.map +1 -1
- package/dist/admin.scoped.css +4 -0
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/PropertyList.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ComponentProps, ReactNode } from 'react';
|
|
2
2
|
export interface PropertyListProps extends Omit<ComponentProps<"section">, "title"> {
|
|
3
3
|
striped?: boolean;
|
|
4
|
+
/** Tightens row height and padding for very dense panels. */
|
|
5
|
+
compact?: boolean;
|
|
4
6
|
/** Reveals a copy button on every item's value cell. Per-item `copyable`
|
|
5
7
|
* on `<PropertyList.Item>` opts in for individual rows. */
|
|
6
8
|
copyable?: boolean;
|
|
@@ -11,7 +13,7 @@ export interface PropertyListProps extends Omit<ComponentProps<"section">, "titl
|
|
|
11
13
|
* above the items grid. */
|
|
12
14
|
title?: ReactNode;
|
|
13
15
|
}
|
|
14
|
-
declare function PropertyListRoot({ striped, copyable, hideIfAllEmpty, title, className, children, ...rest }: PropertyListProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function PropertyListRoot({ striped, compact, copyable, hideIfAllEmpty, title, className, children, ...rest }: PropertyListProps): import("react/jsx-runtime").JSX.Element;
|
|
15
17
|
export interface PropertyListItemProps extends Omit<ComponentProps<"dd">, "title" | "label"> {
|
|
16
18
|
label?: ReactNode;
|
|
17
19
|
value?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyList.d.ts","sourceRoot":"","sources":["../src/PropertyList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CA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S,CAAC;IAClB,0FAA0F;IAC1F,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAWD,iBAAS,gBAAgB,CAAC,EACxB,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,qBAAqB,2CAmBvB;AAED,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;AAC1D,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,sBAAsB,2CAExE;AAED,MAAM,WAAW,sBAAuB,SAAQ,cAAc,CAAC,IAAI,CAAC;IAClE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;4EACwE;IACxE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iBAAS,iBAAiB,CAAC,EACzB,OAAO,EACP,QAAQ,EACR,KAAK,EACL,SAAS,EACT,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,sBAAsB,2CA2CxB;AAED,eAAO,MAAM,YAAY;;;;CAIvB,CAAC"}
|
package/dist/admin.scoped.css
CHANGED
|
@@ -1198,6 +1198,10 @@
|
|
|
1198
1198
|
gap: 0.5rem;
|
|
1199
1199
|
min-width: 0;
|
|
1200
1200
|
}
|
|
1201
|
+
:scope._ao-property-list-compact ._ao-property-list-label, :scope ._ao-property-list-compact ._ao-property-list-label, :scope._ao-property-list-compact ._ao-property-list-value, :scope ._ao-property-list-compact ._ao-property-list-value {
|
|
1202
|
+
padding: 0.125rem 0.5rem;
|
|
1203
|
+
min-height: 1.5rem;
|
|
1204
|
+
}
|
|
1201
1205
|
:scope._ao-property-list-value-numeric, :scope ._ao-property-list-value-numeric {
|
|
1202
1206
|
justify-content: flex-end;
|
|
1203
1207
|
--tw-numeric-spacing: tabular-nums;
|
package/dist/index.cjs
CHANGED
|
@@ -1200,11 +1200,12 @@ function CheckGlyph({ className }) {
|
|
|
1200
1200
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M5 12l5 5l10 -10" })
|
|
1201
1201
|
});
|
|
1202
1202
|
}
|
|
1203
|
-
function PropertyListRoot({ striped, copyable, hideIfAllEmpty, title, className, children, ...rest }) {
|
|
1203
|
+
function PropertyListRoot({ striped, compact, copyable, hideIfAllEmpty, title, className, children, ...rest }) {
|
|
1204
1204
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
1205
1205
|
className: cn([
|
|
1206
1206
|
"property-list",
|
|
1207
1207
|
striped && "property-list-striped",
|
|
1208
|
+
compact && "property-list-compact",
|
|
1208
1209
|
copyable && "property-list-copyable",
|
|
1209
1210
|
hideIfAllEmpty && "property-list-hide-if-empty"
|
|
1210
1211
|
], className),
|