@clearstory/drywall-react 8.0.6 → 8.1.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/components/DescriptionDetails/DescriptionDetails.d.ts +3 -1
- package/dist/components/DescriptionDetails/DescriptionDetails.js +12 -8
- package/dist/components/TableCell/TableCell.theme.d.ts +2 -0
- package/dist/components/TableCell/TableCell.theme.js +10 -0
- package/dist/theme/components.js +20 -18
- package/package.json +1 -1
|
@@ -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": {
|
package/dist/theme/components.js
CHANGED
|
@@ -14,18 +14,19 @@ import { MuiFormLabel as a } from "../components/FormLabel/FormLabel.theme.js";
|
|
|
14
14
|
import { MuiIconButton as c } from "../components/IconButton/IconButton.theme.js";
|
|
15
15
|
import { MuiInputAdornment as B } from "../components/InputAdornment/InputAdornment.theme.js";
|
|
16
16
|
import { MuiInputBase as s } from "../components/Input/Input.theme.js";
|
|
17
|
-
import { MuiLink as
|
|
18
|
-
import { MuiList as
|
|
19
|
-
import { MuiListItemButton as
|
|
20
|
-
import { MuiMenuItem as
|
|
21
|
-
import { MuiPaper as
|
|
22
|
-
import { MuiRadio as
|
|
17
|
+
import { MuiLink as C } from "../components/Link/Link.theme.js";
|
|
18
|
+
import { MuiList as T } from "../components/List/List.theme.js";
|
|
19
|
+
import { MuiListItemButton as b } from "../components/ListItemButton/ListItemButton.theme.js";
|
|
20
|
+
import { MuiMenuItem as g } from "../components/MenuItem/MenuItem.theme.js";
|
|
21
|
+
import { MuiPaper as I } from "../components/Paper/Paper.theme.js";
|
|
22
|
+
import { MuiRadio as L } from "../components/Radio/Radio.theme.js";
|
|
23
23
|
import { MuiSelect as d } from "../components/Select/Select.theme.js";
|
|
24
24
|
import { MuiSwitch as F } from "../components/Switch/Switch.theme.js";
|
|
25
25
|
import { MuiTab as h } from "../components/Tab/Tab.theme.js";
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
|
|
26
|
+
import { MuiTableCell as x } from "../components/TableCell/TableCell.theme.js";
|
|
27
|
+
import { MuiToggleButton as A } from "../components/ToggleButton/ToggleButton.theme.js";
|
|
28
|
+
import { MuiToggleButtonGroup as S } from "../components/ToggleButtonGroup/ToggleButtonGroup.theme.js";
|
|
29
|
+
const mo = {
|
|
29
30
|
MuiAccordionSummary: o,
|
|
30
31
|
MuiAutocomplete: r,
|
|
31
32
|
MuiButton: m,
|
|
@@ -41,19 +42,20 @@ const oo = {
|
|
|
41
42
|
MuiIconButton: c,
|
|
42
43
|
MuiInputAdornment: B,
|
|
43
44
|
MuiInputBase: s,
|
|
44
|
-
MuiLink:
|
|
45
|
-
MuiList:
|
|
46
|
-
MuiListItemButton:
|
|
47
|
-
MuiMenuItem:
|
|
45
|
+
MuiLink: C,
|
|
46
|
+
MuiList: T,
|
|
47
|
+
MuiListItemButton: b,
|
|
48
|
+
MuiMenuItem: g,
|
|
48
49
|
MuiFormLabel: a,
|
|
49
|
-
MuiPaper:
|
|
50
|
-
MuiRadio:
|
|
50
|
+
MuiPaper: I,
|
|
51
|
+
MuiRadio: L,
|
|
51
52
|
MuiSelect: d,
|
|
52
53
|
MuiSwitch: F,
|
|
53
54
|
MuiTab: h,
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
MuiTableCell: x,
|
|
56
|
+
MuiToggleButton: A,
|
|
57
|
+
MuiToggleButtonGroup: S
|
|
56
58
|
};
|
|
57
59
|
export {
|
|
58
|
-
|
|
60
|
+
mo as components
|
|
59
61
|
};
|