@grucloud/bau-ui 0.63.1 → 0.65.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.
|
@@ -98,6 +98,12 @@ export default function globalStyle(
|
|
|
98
98
|
margin: 0;
|
|
99
99
|
padding: 0;
|
|
100
100
|
}
|
|
101
|
+
h1,h2,h3,p {
|
|
102
|
+
margin:0.3rem 0;
|
|
103
|
+
}
|
|
104
|
+
ul {
|
|
105
|
+
padding-left:1rem
|
|
106
|
+
}
|
|
101
107
|
:root {
|
|
102
108
|
--color-scheme: light;
|
|
103
109
|
--contrast-background-value: 90%;
|
|
@@ -112,8 +118,7 @@ export default function globalStyle(
|
|
|
112
118
|
${variantToCss()}
|
|
113
119
|
--color-content: hsl(0, 0%, 10%);
|
|
114
120
|
--color-content-inverse: hsl(0, 0%, 95%);
|
|
115
|
-
|
|
116
|
-
--color-content-secondary: hsl(0, 0%, 30%);
|
|
121
|
+
--color-content-secondary: hsl(0, 0%, 60%);
|
|
117
122
|
--background-color: var(--color-white);
|
|
118
123
|
--global-border-width: 1px;
|
|
119
124
|
--global-radius: 0.2rem;
|
|
@@ -181,15 +186,12 @@ export default function globalStyle(
|
|
|
181
186
|
--background-color: #121212;
|
|
182
187
|
--hover-overlay: rgba(255, 255, 255, 0.05);
|
|
183
188
|
--color-content: #e3e3e3;
|
|
184
|
-
--color-content-secondary: rgba(255, 255, 255, 0.
|
|
189
|
+
--color-content-secondary: rgba(255, 255, 255, 0.5);
|
|
185
190
|
--brightness-hover-always: 130%;
|
|
186
191
|
--brightness-active-always: 120%;
|
|
187
192
|
--brightness-active: 180%;
|
|
188
193
|
--brightness-hover: 150%;
|
|
189
194
|
--brightness-hover-reverse: 70% ${buildEmphasis({ dark: true })};
|
|
190
195
|
}
|
|
191
|
-
body {
|
|
192
|
-
margin: 0;
|
|
193
|
-
}
|
|
194
196
|
`;
|
|
195
197
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare module "@grucloud/bau-ui/keyValueList" {
|
|
2
|
+
type DefaultDesignProps = import("../constants").DefaultDesignProps;
|
|
3
|
+
type ComponentOption = import("../bau-ui").ComponentOption;
|
|
4
|
+
|
|
5
|
+
export type KeyValueListProps = {} & DefaultDesignProps;
|
|
6
|
+
|
|
7
|
+
type Component = import("../bau-ui").Component<KeyValueListProps>;
|
|
8
|
+
|
|
9
|
+
export default function (context: any, option?: ComponentOption): Component;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./keyValueList";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import classNames from "@grucloud/bau-css/classNames.js";
|
|
2
|
+
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
3
|
+
|
|
4
|
+
export default function (context, options = {}) {
|
|
5
|
+
const { bau, css } = context;
|
|
6
|
+
const { ul } = bau.tags;
|
|
7
|
+
|
|
8
|
+
const className = css`
|
|
9
|
+
list-style: none;
|
|
10
|
+
& li {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
font-size: smaller;
|
|
14
|
+
line-height: 1.6rem;
|
|
15
|
+
& label {
|
|
16
|
+
color: var(--font-color-secondary);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
20
|
+
|
|
21
|
+
return function KeyValueList(...args) {
|
|
22
|
+
let [
|
|
23
|
+
{
|
|
24
|
+
size = options.size ?? "md",
|
|
25
|
+
variant = options.variant ?? "plain",
|
|
26
|
+
color = options.color ?? "neutral",
|
|
27
|
+
...props
|
|
28
|
+
},
|
|
29
|
+
...children
|
|
30
|
+
] = toPropsAndChildren(args);
|
|
31
|
+
return ul(
|
|
32
|
+
{
|
|
33
|
+
...props,
|
|
34
|
+
class: classNames(
|
|
35
|
+
"keyValueList",
|
|
36
|
+
className,
|
|
37
|
+
options?.class,
|
|
38
|
+
props?.class
|
|
39
|
+
),
|
|
40
|
+
},
|
|
41
|
+
...children
|
|
42
|
+
);
|
|
43
|
+
};
|
|
44
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grucloud/bau-ui",
|
|
3
3
|
"description": "Components library built with Bau",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.65.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "BSD",
|
|
7
7
|
"keywords": [
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"directory": "bau-ui"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@grucloud/bau": "^0.
|
|
24
|
-
"@grucloud/bau-css": "^0.
|
|
23
|
+
"@grucloud/bau": "^0.65.0",
|
|
24
|
+
"@grucloud/bau-css": "^0.65.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"typedoc": "0.24.8"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "e8ab060afb9b3342cbf9edecd4f461d5ab1047b6"
|
|
30
30
|
}
|