@clearstory/drywall-react 8.0.5 → 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 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": {
@@ -1,4 +1,4 @@
1
- import { gray as r, orangePeel as i, vermilion as e, honoluluBlue as n, indiaGreen as a } from "./colors.js";
1
+ import { gray as a, orangePeel as i, vermilion as e, honoluluBlue as d, indiaGreen as r } from "./colors.js";
2
2
  const g = {
3
3
  light: {
4
4
  palette: {
@@ -8,24 +8,24 @@ const g = {
8
8
  brand: "#02CD0D"
9
9
  },
10
10
  primary: {
11
- main: a[500],
12
- light: a[300],
13
- dark: a[700]
11
+ main: r[500],
12
+ light: r[300],
13
+ dark: r[700]
14
14
  },
15
15
  secondary: {
16
- main: r[600],
17
- light: r[400],
18
- dark: r[800]
16
+ main: a[600],
17
+ light: a[400],
18
+ dark: a[800]
19
19
  },
20
20
  success: {
21
- main: a[500],
22
- light: a[300],
23
- dark: a[700]
21
+ main: r[500],
22
+ light: r[300],
23
+ dark: r[700]
24
24
  },
25
25
  info: {
26
- main: n[500],
27
- light: n[300],
28
- dark: n[700]
26
+ main: d[500],
27
+ light: d[300],
28
+ dark: d[700]
29
29
  },
30
30
  error: {
31
31
  main: e[700],
@@ -37,12 +37,12 @@ const g = {
37
37
  light: i[500],
38
38
  dark: i[900]
39
39
  },
40
- grey: r,
40
+ grey: a,
41
41
  background: {
42
- default: r[50],
43
42
  paper: "#FFFFFF",
44
- surface: "#F7F9FA"
45
- // halfway between white and gray[50]
43
+ body: "#F7F9FA",
44
+ surface: a[50],
45
+ default: a[100]
46
46
  },
47
47
  action: {
48
48
  active: "rgba(15, 19, 28, 0.54)",
@@ -68,24 +68,24 @@ const g = {
68
68
  brand: "#02CD0D"
69
69
  },
70
70
  primary: {
71
- main: a[200],
72
- light: a[600],
73
- dark: a[50]
71
+ main: r[200],
72
+ light: r[600],
73
+ dark: r[50]
74
74
  },
75
75
  secondary: {
76
- main: r[100],
77
- light: r[500],
78
- dark: r[50]
76
+ main: a[100],
77
+ light: a[500],
78
+ dark: a[50]
79
79
  },
80
80
  success: {
81
- main: a[300],
82
- light: a[700],
83
- dark: a[100]
81
+ main: r[300],
82
+ light: r[700],
83
+ dark: r[100]
84
84
  },
85
85
  info: {
86
- main: n[200],
87
- light: n[600],
88
- dark: n[50]
86
+ main: d[200],
87
+ light: d[600],
88
+ dark: d[50]
89
89
  },
90
90
  error: {
91
91
  main: e[300],
@@ -97,12 +97,12 @@ const g = {
97
97
  light: i[700],
98
98
  dark: i[100]
99
99
  },
100
- grey: r,
100
+ grey: a,
101
101
  background: {
102
- default: r[800],
103
- paper: r[900],
104
- surface: "#1C2427"
105
- // halfway between gray[800] and gray[900]
102
+ paper: a[900],
103
+ body: "#1C2427",
104
+ surface: a[800],
105
+ default: a[700]
106
106
  }
107
107
  }
108
108
  }
@@ -6,6 +6,7 @@ declare module "@mui/material/styles" {
6
6
  brand: string;
7
7
  }
8
8
  interface TypeBackground {
9
+ body: string;
9
10
  surface: string;
10
11
  }
11
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clearstory/drywall-react",
3
- "version": "8.0.5",
3
+ "version": "8.1.0",
4
4
  "license": "UNLICENSED",
5
5
  "description": "a Clearstory software design system",
6
6
  "type": "module",