@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.
@@ -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 p } from "react";
3
- import { useDescriptionListContext as s } from "../DescriptionList/DescriptionListContext.js";
4
- import { T as a } from "../../Typography-DbGuUYt_.js";
5
- const c = p(({ variant: t = "body2", sx: r, ...i }, n) => {
6
- const o = s()?.spacing;
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
- a,
8
+ p,
9
9
  {
10
10
  component: "dd",
11
- variant: t,
11
+ variant: "body2",
12
12
  ref: n,
13
- ...i,
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": {
@@ -0,0 +1,2 @@
1
+ import { Components, Theme } from '@mui/material';
2
+ export declare const MuiTableCell: Partial<Components<Theme>["MuiTableCell"]>;
@@ -0,0 +1,10 @@
1
+ const r = {
2
+ styleOverrides: {
3
+ root: ({ theme: e }) => ({
4
+ borderColor: e.vars?.palette.divider
5
+ })
6
+ }
7
+ };
8
+ export {
9
+ r as MuiTableCell
10
+ };
@@ -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 g } from "../components/Link/Link.theme.js";
18
- import { MuiList as C } from "../components/List/List.theme.js";
19
- import { MuiListItemButton as I } from "../components/ListItemButton/ListItemButton.theme.js";
20
- import { MuiMenuItem as L } from "../components/MenuItem/MenuItem.theme.js";
21
- import { MuiPaper as T } from "../components/Paper/Paper.theme.js";
22
- import { MuiRadio as b } from "../components/Radio/Radio.theme.js";
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 { MuiToggleButton as x } from "../components/ToggleButton/ToggleButton.theme.js";
27
- import { MuiToggleButtonGroup as A } from "../components/ToggleButtonGroup/ToggleButtonGroup.theme.js";
28
- const oo = {
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: g,
45
- MuiList: C,
46
- MuiListItemButton: I,
47
- MuiMenuItem: L,
45
+ MuiLink: C,
46
+ MuiList: T,
47
+ MuiListItemButton: b,
48
+ MuiMenuItem: g,
48
49
  MuiFormLabel: a,
49
- MuiPaper: T,
50
- MuiRadio: b,
50
+ MuiPaper: I,
51
+ MuiRadio: L,
51
52
  MuiSelect: d,
52
53
  MuiSwitch: F,
53
54
  MuiTab: h,
54
- MuiToggleButton: x,
55
- MuiToggleButtonGroup: A
55
+ MuiTableCell: x,
56
+ MuiToggleButton: A,
57
+ MuiToggleButtonGroup: S
56
58
  };
57
59
  export {
58
- oo as components
60
+ mo as components
59
61
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clearstory/drywall-react",
3
- "version": "8.0.6",
3
+ "version": "8.1.1",
4
4
  "license": "UNLICENSED",
5
5
  "description": "a Clearstory software design system",
6
6
  "type": "module",