@grucloud/bau-ui 0.64.0 → 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,8 +98,8 @@ export default function globalStyle(
|
|
|
98
98
|
margin: 0;
|
|
99
99
|
padding: 0;
|
|
100
100
|
}
|
|
101
|
-
p {
|
|
102
|
-
margin:0.
|
|
101
|
+
h1,h2,h3,p {
|
|
102
|
+
margin:0.3rem 0;
|
|
103
103
|
}
|
|
104
104
|
ul {
|
|
105
105
|
padding-left:1rem
|
|
@@ -118,8 +118,7 @@ export default function globalStyle(
|
|
|
118
118
|
${variantToCss()}
|
|
119
119
|
--color-content: hsl(0, 0%, 10%);
|
|
120
120
|
--color-content-inverse: hsl(0, 0%, 95%);
|
|
121
|
-
|
|
122
|
-
--color-content-secondary: hsl(0, 0%, 30%);
|
|
121
|
+
--color-content-secondary: hsl(0, 0%, 60%);
|
|
123
122
|
--background-color: var(--color-white);
|
|
124
123
|
--global-border-width: 1px;
|
|
125
124
|
--global-radius: 0.2rem;
|
|
@@ -187,7 +186,7 @@ export default function globalStyle(
|
|
|
187
186
|
--background-color: #121212;
|
|
188
187
|
--hover-overlay: rgba(255, 255, 255, 0.05);
|
|
189
188
|
--color-content: #e3e3e3;
|
|
190
|
-
--color-content-secondary: rgba(255, 255, 255, 0.
|
|
189
|
+
--color-content-secondary: rgba(255, 255, 255, 0.5);
|
|
191
190
|
--brightness-hover-always: 130%;
|
|
192
191
|
--brightness-active-always: 120%;
|
|
193
192
|
--brightness-active: 180%;
|
|
@@ -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
|
}
|