@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
|
|
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": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gray as
|
|
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:
|
|
12
|
-
light:
|
|
13
|
-
dark:
|
|
11
|
+
main: r[500],
|
|
12
|
+
light: r[300],
|
|
13
|
+
dark: r[700]
|
|
14
14
|
},
|
|
15
15
|
secondary: {
|
|
16
|
-
main:
|
|
17
|
-
light:
|
|
18
|
-
dark:
|
|
16
|
+
main: a[600],
|
|
17
|
+
light: a[400],
|
|
18
|
+
dark: a[800]
|
|
19
19
|
},
|
|
20
20
|
success: {
|
|
21
|
-
main:
|
|
22
|
-
light:
|
|
23
|
-
dark:
|
|
21
|
+
main: r[500],
|
|
22
|
+
light: r[300],
|
|
23
|
+
dark: r[700]
|
|
24
24
|
},
|
|
25
25
|
info: {
|
|
26
|
-
main:
|
|
27
|
-
light:
|
|
28
|
-
dark:
|
|
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:
|
|
40
|
+
grey: a,
|
|
41
41
|
background: {
|
|
42
|
-
default: r[50],
|
|
43
42
|
paper: "#FFFFFF",
|
|
44
|
-
|
|
45
|
-
|
|
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:
|
|
72
|
-
light:
|
|
73
|
-
dark:
|
|
71
|
+
main: r[200],
|
|
72
|
+
light: r[600],
|
|
73
|
+
dark: r[50]
|
|
74
74
|
},
|
|
75
75
|
secondary: {
|
|
76
|
-
main:
|
|
77
|
-
light:
|
|
78
|
-
dark:
|
|
76
|
+
main: a[100],
|
|
77
|
+
light: a[500],
|
|
78
|
+
dark: a[50]
|
|
79
79
|
},
|
|
80
80
|
success: {
|
|
81
|
-
main:
|
|
82
|
-
light:
|
|
83
|
-
dark:
|
|
81
|
+
main: r[300],
|
|
82
|
+
light: r[700],
|
|
83
|
+
dark: r[100]
|
|
84
84
|
},
|
|
85
85
|
info: {
|
|
86
|
-
main:
|
|
87
|
-
light:
|
|
88
|
-
dark:
|
|
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:
|
|
100
|
+
grey: a,
|
|
101
101
|
background: {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
surface:
|
|
105
|
-
|
|
102
|
+
paper: a[900],
|
|
103
|
+
body: "#1C2427",
|
|
104
|
+
surface: a[800],
|
|
105
|
+
default: a[700]
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
}
|
package/dist/theme/index.d.ts
CHANGED