@clearstory/drywall-react 8.0.6 → 8.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.
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { TypographyProps } from '../Typography';
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
-
export type DescriptionDetailsProps = Omit<TypographyProps, "component"
|
|
3
|
+
export type DescriptionDetailsProps = Omit<TypographyProps, "component" | "variant"> & {
|
|
4
|
+
variant?: "standard" | "outlined";
|
|
5
|
+
};
|
|
4
6
|
export declare const DescriptionDetails: ForwardRefExoticComponent<Omit<DescriptionDetailsProps, "ref"> & RefAttributes<HTMLElement>>;
|
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useDescriptionListContext as
|
|
4
|
-
import { T as
|
|
5
|
-
const c =
|
|
6
|
-
const o =
|
|
2
|
+
import { forwardRef as s } from "react";
|
|
3
|
+
import { useDescriptionListContext as d } from "../DescriptionList/DescriptionListContext.js";
|
|
4
|
+
import { T as p } from "../../Typography-DbGuUYt_.js";
|
|
5
|
+
const c = s(({ variant: i = "standard", sx: r, ...a }, n) => {
|
|
6
|
+
const o = d()?.spacing;
|
|
7
7
|
return /* @__PURE__ */ e(
|
|
8
|
-
|
|
8
|
+
p,
|
|
9
9
|
{
|
|
10
10
|
component: "dd",
|
|
11
|
-
variant:
|
|
11
|
+
variant: "body2",
|
|
12
12
|
ref: n,
|
|
13
|
-
...
|
|
13
|
+
...a,
|
|
14
14
|
sx: [
|
|
15
15
|
{
|
|
16
16
|
border: "1px solid transparent",
|
|
17
17
|
lineHeight: "1.25rem",
|
|
18
18
|
padding: "5px 10px"
|
|
19
19
|
},
|
|
20
|
+
i === "outlined" && ((t) => ({
|
|
21
|
+
borderColor: `color-mix(in srgb, ${t.vars?.palette.divider} 25%, transparent)`,
|
|
22
|
+
borderRadius: t.shape.borderRadius + "px"
|
|
23
|
+
})),
|
|
20
24
|
o && {
|
|
21
25
|
marginBlockEnd: o,
|
|
22
26
|
"&:last-child": {
|