@grucloud/bau-ui 0.81.0 → 0.82.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.
- package/accordion/accordion.js +3 -4
- package/alert/alert.js +3 -4
- package/alertStack/alertStack.js +1 -4
- package/animate/animate.js +1 -3
- package/autocomplete/autocomplete.js +9 -11
- package/avatar/avatar.js +14 -16
- package/badge/badge.js +2 -3
- package/breadcrumbs/breadcrumbs.js +2 -3
- package/button/button.js +3 -4
- package/buttonGroup/buttonGroup.js +3 -4
- package/calendar/calendar.js +3 -4
- package/carousel/carousel.js +3 -10
- package/checkbox/checkbox.js +1 -9
- package/chip/chip.js +3 -4
- package/collapsible/collapsible.js +5 -13
- package/divider/divider.js +1 -8
- package/drawer/drawer.js +3 -4
- package/drillDownMenu/drillDownMenu.js +9 -11
- package/dropdownMenu/dropdownMenu.js +5 -6
- package/fileInput/fileInput.js +4 -7
- package/form/form.js +3 -4
- package/input/input.js +3 -4
- package/inputSearch/inputSearch.js +1 -7
- package/keyValueList/keyValueList.js +1 -7
- package/linearProgress/linearProgress.js +3 -4
- package/list/list.js +3 -4
- package/loadingButton/loadingButton.js +3 -4
- package/modal/modal.js +3 -4
- package/multiSelect/multiSelect.js +5 -6
- package/package.json +4 -4
- package/paginationNavigation/paginationNavigation.js +3 -4
- package/paper/paper.js +1 -8
- package/popover/popover.js +1 -2
- package/radioButton/radioButton.js +3 -4
- package/radioButtonGroup/radioButtonGroup.js +3 -4
- package/resizable/resizable.js +3 -9
- package/select/select.js +5 -6
- package/selectNative/selectNative.js +3 -4
- package/skeleton/skeleton.js +1 -8
- package/slider/slider.js +3 -4
- package/spinner/spinner.js +3 -4
- package/stepper/stepper.js +13 -16
- package/switch/switch.js +3 -4
- package/tableContainer/tableContainer.js +1 -7
- package/tableOfContent/tableOfContent.js +3 -4
- package/tablePagination/tablePagination.js +3 -4
- package/tabs/tabs.js +7 -9
- package/themeSwitch/themeSwitch.js +3 -4
- package/toggle/toggle.js +3 -4
- package/toggleGroup/toggleGroup.js +3 -4
- package/tooltip/tooltip.js +3 -4
- package/treeView/treeView.js +4 -9
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
2
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
3
2
|
|
|
4
3
|
export default function (context, options = {}) {
|
|
@@ -35,12 +34,7 @@ export default function (context, options = {}) {
|
|
|
35
34
|
return ul(
|
|
36
35
|
{
|
|
37
36
|
...props,
|
|
38
|
-
class:
|
|
39
|
-
"keyValueList",
|
|
40
|
-
className,
|
|
41
|
-
options?.class,
|
|
42
|
-
props?.class
|
|
43
|
-
),
|
|
37
|
+
class: ["keyValueList", className, options?.class, props?.class],
|
|
44
38
|
},
|
|
45
39
|
...children
|
|
46
40
|
);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
2
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
3
2
|
import { Colors } from "../constants.js";
|
|
4
3
|
|
|
@@ -75,15 +74,15 @@ export default function (context, options = {}) {
|
|
|
75
74
|
class: {
|
|
76
75
|
deps: [running],
|
|
77
76
|
renderProp: () => (running) =>
|
|
78
|
-
|
|
77
|
+
[
|
|
79
78
|
"linearProgress",
|
|
80
79
|
size,
|
|
81
80
|
color,
|
|
82
81
|
className,
|
|
83
82
|
running && "running",
|
|
84
83
|
options?.class,
|
|
85
|
-
props?.class
|
|
86
|
-
|
|
84
|
+
props?.class,
|
|
85
|
+
],
|
|
87
86
|
},
|
|
88
87
|
});
|
|
89
88
|
};
|
package/list/list.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
2
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
3
2
|
|
|
4
3
|
export default function (context, options = {}) {
|
|
@@ -48,15 +47,15 @@ export default function (context, options = {}) {
|
|
|
48
47
|
return ul(
|
|
49
48
|
{
|
|
50
49
|
...props,
|
|
51
|
-
class:
|
|
50
|
+
class: [
|
|
52
51
|
"list",
|
|
53
52
|
className,
|
|
54
53
|
color,
|
|
55
54
|
variant,
|
|
56
55
|
size,
|
|
57
56
|
options?.class,
|
|
58
|
-
props?.class
|
|
59
|
-
|
|
57
|
+
props?.class.join(" "),
|
|
58
|
+
],
|
|
60
59
|
},
|
|
61
60
|
...children
|
|
62
61
|
);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
2
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
3
2
|
import button from "../button";
|
|
4
3
|
import spinner from "../spinner";
|
|
@@ -57,7 +56,7 @@ export default function (context, options = {}) {
|
|
|
57
56
|
Button(
|
|
58
57
|
{
|
|
59
58
|
...props,
|
|
60
|
-
class:
|
|
59
|
+
class: [
|
|
61
60
|
"loadingButton",
|
|
62
61
|
size,
|
|
63
62
|
variant,
|
|
@@ -65,8 +64,8 @@ export default function (context, options = {}) {
|
|
|
65
64
|
className,
|
|
66
65
|
loading && "loading",
|
|
67
66
|
options?.class,
|
|
68
|
-
props?.class
|
|
69
|
-
|
|
67
|
+
props?.class,
|
|
68
|
+
],
|
|
70
69
|
},
|
|
71
70
|
Spinner({ size, variant, color, visibility: loading }),
|
|
72
71
|
span({ class: loading && "loading" }, children)
|
package/modal/modal.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
2
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
3
2
|
import { Colors } from "../constants.js";
|
|
4
3
|
|
|
@@ -93,15 +92,15 @@ export default function (context, options = {}) {
|
|
|
93
92
|
dialogEl.showModal();
|
|
94
93
|
}
|
|
95
94
|
},
|
|
96
|
-
class:
|
|
95
|
+
class: [
|
|
97
96
|
"modal",
|
|
98
97
|
className,
|
|
99
98
|
color,
|
|
100
99
|
variant,
|
|
101
100
|
size,
|
|
102
101
|
options?.class,
|
|
103
|
-
props?.class
|
|
104
|
-
|
|
102
|
+
props?.class,
|
|
103
|
+
],
|
|
105
104
|
},
|
|
106
105
|
children
|
|
107
106
|
);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
2
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
3
2
|
import popover from "../popover/popover.js";
|
|
4
3
|
import button from "../button/button.js";
|
|
@@ -154,11 +153,11 @@ export default function (context, componentOptions = {}) {
|
|
|
154
153
|
|
|
155
154
|
const Content = () => {
|
|
156
155
|
return List(
|
|
157
|
-
{ tabindex: "0", class:
|
|
156
|
+
{ tabindex: "0", class: [color, variant] },
|
|
158
157
|
options.map((option, index) =>
|
|
159
158
|
li(
|
|
160
159
|
{
|
|
161
|
-
class: () =>
|
|
160
|
+
class: () => itemIndexActive.val == index && "active",
|
|
162
161
|
},
|
|
163
162
|
bau.tags.label(
|
|
164
163
|
Checkbox({
|
|
@@ -218,14 +217,14 @@ export default function (context, componentOptions = {}) {
|
|
|
218
217
|
return div(
|
|
219
218
|
{
|
|
220
219
|
...props,
|
|
221
|
-
class:
|
|
220
|
+
class: [
|
|
222
221
|
"multiSelect",
|
|
223
222
|
color,
|
|
224
223
|
size,
|
|
225
224
|
className,
|
|
226
225
|
componentOptions?.class,
|
|
227
|
-
props?.class
|
|
228
|
-
|
|
226
|
+
props?.class,
|
|
227
|
+
],
|
|
229
228
|
onkeydown,
|
|
230
229
|
},
|
|
231
230
|
selectEl,
|
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.82.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.82.0",
|
|
24
|
+
"@grucloud/bau-css": "^0.82.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"typedoc": "0.24.8"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "07f99623c0e8c047391dd53dfc1755ee3f14672e"
|
|
30
30
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
2
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
3
2
|
|
|
4
3
|
export default function (context, options = {}) {
|
|
@@ -70,13 +69,13 @@ export default function (context, options = {}) {
|
|
|
70
69
|
"data-paginationnav": JSON.stringify(data),
|
|
71
70
|
"aria-label": "pages navigation",
|
|
72
71
|
...props,
|
|
73
|
-
class:
|
|
72
|
+
class: [
|
|
74
73
|
"paginationNavigation",
|
|
75
74
|
size,
|
|
76
75
|
className,
|
|
77
76
|
options?.class,
|
|
78
|
-
props?.class
|
|
79
|
-
|
|
77
|
+
props?.class,
|
|
78
|
+
],
|
|
80
79
|
},
|
|
81
80
|
previous?.href && Link({ text: "Previous" })(previous),
|
|
82
81
|
next?.href && Link({ text: "Next" })(next)
|
package/paper/paper.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
2
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
3
2
|
|
|
4
3
|
export default function (context, options = {}) {
|
|
@@ -45,13 +44,7 @@ export default function (context, options = {}) {
|
|
|
45
44
|
return div(
|
|
46
45
|
{
|
|
47
46
|
...props,
|
|
48
|
-
class:
|
|
49
|
-
"paper",
|
|
50
|
-
size,
|
|
51
|
-
className,
|
|
52
|
-
options?.class,
|
|
53
|
-
props?.class
|
|
54
|
-
),
|
|
47
|
+
class: ["paper", size, className, options?.class, props?.class],
|
|
55
48
|
},
|
|
56
49
|
...children
|
|
57
50
|
);
|
package/popover/popover.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
2
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
3
2
|
|
|
4
3
|
export default function (context, options) {
|
|
@@ -59,7 +58,7 @@ export default function (context, options) {
|
|
|
59
58
|
const dialogEl = dialog(
|
|
60
59
|
{
|
|
61
60
|
role: "presentation",
|
|
62
|
-
class:
|
|
61
|
+
class: ["popover", className, options?.class, props?.class],
|
|
63
62
|
onclick: (event) => {
|
|
64
63
|
event.target === dialogEl && (closeDialog(), onClose?.call());
|
|
65
64
|
},
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
2
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
3
2
|
import { Colors } from "../constants.js";
|
|
4
3
|
|
|
@@ -42,15 +41,15 @@ export default function (context, options = {}) {
|
|
|
42
41
|
return input({
|
|
43
42
|
...props,
|
|
44
43
|
type: "radio",
|
|
45
|
-
class:
|
|
44
|
+
class: [
|
|
46
45
|
"radio-button",
|
|
47
46
|
size,
|
|
48
47
|
color,
|
|
49
48
|
variant,
|
|
50
49
|
className,
|
|
51
50
|
options?.class,
|
|
52
|
-
props?.class
|
|
53
|
-
|
|
51
|
+
props?.class,
|
|
52
|
+
],
|
|
54
53
|
});
|
|
55
54
|
};
|
|
56
55
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
2
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
3
2
|
import { Colors } from "../constants.js";
|
|
4
3
|
import radioButton from "../radioButton";
|
|
@@ -51,15 +50,15 @@ export default function (context, options = {}) {
|
|
|
51
50
|
|
|
52
51
|
return div(
|
|
53
52
|
{
|
|
54
|
-
class:
|
|
53
|
+
class: [
|
|
55
54
|
"radioButtonGroup",
|
|
56
55
|
size,
|
|
57
56
|
color,
|
|
58
57
|
variant,
|
|
59
58
|
className,
|
|
60
59
|
options?.class,
|
|
61
|
-
props?.class
|
|
62
|
-
|
|
60
|
+
props?.class,
|
|
61
|
+
],
|
|
63
62
|
},
|
|
64
63
|
radios.map(({ value, Label }) =>
|
|
65
64
|
label(
|
package/resizable/resizable.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
2
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
3
2
|
|
|
4
3
|
export default function (context, options = {}) {
|
|
@@ -48,12 +47,7 @@ export default function (context, options = {}) {
|
|
|
48
47
|
return section(
|
|
49
48
|
{
|
|
50
49
|
...props,
|
|
51
|
-
class:
|
|
52
|
-
"resizablePanelGroup",
|
|
53
|
-
props?.class,
|
|
54
|
-
options?.class,
|
|
55
|
-
className
|
|
56
|
-
),
|
|
50
|
+
class: ["resizablePanelGroup", props?.class, options?.class, className],
|
|
57
51
|
},
|
|
58
52
|
children
|
|
59
53
|
);
|
|
@@ -65,7 +59,7 @@ export default function (context, options = {}) {
|
|
|
65
59
|
return article(
|
|
66
60
|
{
|
|
67
61
|
...props,
|
|
68
|
-
class:
|
|
62
|
+
class: ["resizablePanel", props?.class],
|
|
69
63
|
},
|
|
70
64
|
children
|
|
71
65
|
);
|
|
@@ -148,7 +142,7 @@ export default function (context, options = {}) {
|
|
|
148
142
|
return div(
|
|
149
143
|
{
|
|
150
144
|
...props,
|
|
151
|
-
class:
|
|
145
|
+
class: ["handle", direction],
|
|
152
146
|
role: "separator",
|
|
153
147
|
bauMounted: ({ element }) => {
|
|
154
148
|
element.addEventListener("mousedown", mouseDownHandler);
|
package/select/select.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
2
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
3
2
|
import popover from "../popover/popover.js";
|
|
4
3
|
import button from "../button/button.js";
|
|
@@ -137,11 +136,11 @@ export default function (context, componentOptions = {}) {
|
|
|
137
136
|
|
|
138
137
|
const Content = () =>
|
|
139
138
|
List(
|
|
140
|
-
{ tabindex: "0", class:
|
|
139
|
+
{ tabindex: "0", class: [color, variant] },
|
|
141
140
|
options.map((option, index) =>
|
|
142
141
|
li(
|
|
143
142
|
{
|
|
144
|
-
class: () =>
|
|
143
|
+
class: () => itemIndexActive.val == index && "active",
|
|
145
144
|
onclick: onclickItem({ option, index }),
|
|
146
145
|
},
|
|
147
146
|
Option(option)
|
|
@@ -192,14 +191,14 @@ export default function (context, componentOptions = {}) {
|
|
|
192
191
|
return div(
|
|
193
192
|
{
|
|
194
193
|
...props,
|
|
195
|
-
class:
|
|
194
|
+
class: [
|
|
196
195
|
"select",
|
|
197
196
|
color,
|
|
198
197
|
size,
|
|
199
198
|
className,
|
|
200
199
|
componentOptions?.class,
|
|
201
|
-
props?.class
|
|
202
|
-
|
|
200
|
+
props?.class,
|
|
201
|
+
],
|
|
203
202
|
onkeydown,
|
|
204
203
|
},
|
|
205
204
|
selectEl,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
2
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
3
2
|
|
|
4
3
|
export default function (context, componentOptions = {}) {
|
|
@@ -31,15 +30,15 @@ export default function (context, componentOptions = {}) {
|
|
|
31
30
|
return select(
|
|
32
31
|
{
|
|
33
32
|
...props,
|
|
34
|
-
class:
|
|
33
|
+
class: [
|
|
35
34
|
"select-native",
|
|
36
35
|
color,
|
|
37
36
|
size,
|
|
38
37
|
variant,
|
|
39
38
|
className,
|
|
40
39
|
componentOptions?.class,
|
|
41
|
-
props?.class
|
|
42
|
-
|
|
40
|
+
props?.class,
|
|
41
|
+
],
|
|
43
42
|
},
|
|
44
43
|
children
|
|
45
44
|
);
|
package/skeleton/skeleton.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
2
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
3
2
|
|
|
4
3
|
export default function (context, options = {}) {
|
|
@@ -49,13 +48,7 @@ export default function (context, options = {}) {
|
|
|
49
48
|
return div(
|
|
50
49
|
{
|
|
51
50
|
...props,
|
|
52
|
-
class:
|
|
53
|
-
"skeleton",
|
|
54
|
-
size,
|
|
55
|
-
className,
|
|
56
|
-
options?.class,
|
|
57
|
-
props?.class
|
|
58
|
-
),
|
|
51
|
+
class: ["skeleton", size, className, options?.class, props?.class],
|
|
59
52
|
},
|
|
60
53
|
...children
|
|
61
54
|
);
|
package/slider/slider.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
2
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
3
2
|
import { Colors } from "../constants.js";
|
|
4
3
|
|
|
5
4
|
export default function (context, options = {}) {
|
|
@@ -35,15 +34,15 @@ export default function (context, options = {}) {
|
|
|
35
34
|
{
|
|
36
35
|
...props,
|
|
37
36
|
type: "range",
|
|
38
|
-
class:
|
|
37
|
+
class: [
|
|
39
38
|
"slider",
|
|
40
39
|
color,
|
|
41
40
|
variant,
|
|
42
41
|
size,
|
|
43
42
|
className,
|
|
44
43
|
options?.class,
|
|
45
|
-
props.class
|
|
46
|
-
|
|
44
|
+
props.class,
|
|
45
|
+
],
|
|
47
46
|
},
|
|
48
47
|
...children
|
|
49
48
|
);
|
package/spinner/spinner.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
2
1
|
import { Colors } from "../constants.js";
|
|
3
2
|
|
|
4
3
|
const sizeToPixel = {
|
|
@@ -88,15 +87,15 @@ export default function (context, options = {}) {
|
|
|
88
87
|
class: {
|
|
89
88
|
deps: [visibility],
|
|
90
89
|
renderProp: () => (visibility) =>
|
|
91
|
-
|
|
90
|
+
[
|
|
92
91
|
"spinner",
|
|
93
92
|
className,
|
|
94
93
|
color,
|
|
95
94
|
variant,
|
|
96
95
|
visibility == false ? "" : "visibility",
|
|
97
96
|
options?.class,
|
|
98
|
-
otherProps.class
|
|
99
|
-
|
|
97
|
+
otherProps.class,
|
|
98
|
+
],
|
|
100
99
|
},
|
|
101
100
|
version: "1.1",
|
|
102
101
|
x: "0px",
|
package/stepper/stepper.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
2
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
3
2
|
|
|
4
3
|
import { Colors } from "../constants.js";
|
|
5
4
|
|
|
@@ -130,13 +129,12 @@ export default function (context, options = {}) {
|
|
|
130
129
|
const { Header, disabled, name, index } = stepper;
|
|
131
130
|
return li(
|
|
132
131
|
{
|
|
133
|
-
class: () =>
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
),
|
|
132
|
+
class: () => [
|
|
133
|
+
stepperCurrentState.val.name == name && "active",
|
|
134
|
+
activeStepIndex.val < index && "not-completed",
|
|
135
|
+
activeStepIndex.val > index && "completed",
|
|
136
|
+
disabled && "disabled",
|
|
137
|
+
],
|
|
140
138
|
},
|
|
141
139
|
span({ class: "step-number" }, index + 1),
|
|
142
140
|
span({ class: "step-label" }, () => Header(stepper))
|
|
@@ -174,26 +172,25 @@ export default function (context, options = {}) {
|
|
|
174
172
|
bauUnmounted: () => {
|
|
175
173
|
window.removeEventListener("popstate", hashchange);
|
|
176
174
|
},
|
|
177
|
-
class:
|
|
175
|
+
class: [
|
|
178
176
|
"stepper",
|
|
179
177
|
variant,
|
|
180
178
|
size,
|
|
181
179
|
color,
|
|
182
180
|
className,
|
|
183
181
|
options?.class,
|
|
184
|
-
props.class
|
|
185
|
-
|
|
182
|
+
props.class,
|
|
183
|
+
],
|
|
186
184
|
},
|
|
187
185
|
// Header
|
|
188
186
|
bau.loop(stepperState, ul(), StepperHeader),
|
|
189
187
|
bau.loop(stepsCreatedState, section(), (stepperDef) =>
|
|
190
188
|
div(
|
|
191
189
|
{
|
|
192
|
-
class: () =>
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
),
|
|
190
|
+
class: () => [
|
|
191
|
+
"content",
|
|
192
|
+
stepperDef.name == stepperCurrentState.val.name && "visible",
|
|
193
|
+
],
|
|
197
194
|
},
|
|
198
195
|
stepperDef.Content({
|
|
199
196
|
nextStep: stepperDefs[getIndex(stepperDef) + 1],
|
package/switch/switch.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
2
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
3
2
|
import { Colors } from "../constants.js";
|
|
4
3
|
|
|
5
4
|
const colorsToCss = () =>
|
|
@@ -121,15 +120,15 @@ export default function (context, options = {}) {
|
|
|
121
120
|
return input(
|
|
122
121
|
{
|
|
123
122
|
...props,
|
|
124
|
-
class:
|
|
123
|
+
class: [
|
|
125
124
|
"switch",
|
|
126
125
|
style,
|
|
127
126
|
color,
|
|
128
127
|
variant,
|
|
129
128
|
size,
|
|
130
129
|
options?.class,
|
|
131
|
-
props.class
|
|
132
|
-
|
|
130
|
+
props.class,
|
|
131
|
+
],
|
|
133
132
|
type: "checkbox",
|
|
134
133
|
},
|
|
135
134
|
...children
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
2
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
3
2
|
|
|
4
3
|
export default function (context, options) {
|
|
@@ -64,12 +63,7 @@ export default function (context, options) {
|
|
|
64
63
|
return div(
|
|
65
64
|
{
|
|
66
65
|
...props,
|
|
67
|
-
class:
|
|
68
|
-
"table-container",
|
|
69
|
-
className,
|
|
70
|
-
options?.class,
|
|
71
|
-
props?.class
|
|
72
|
-
),
|
|
66
|
+
class: ["table-container", className, options?.class, props?.class],
|
|
73
67
|
},
|
|
74
68
|
...children
|
|
75
69
|
);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
2
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
3
2
|
|
|
4
3
|
export default function (context, options = {}) {
|
|
@@ -144,15 +143,15 @@ export default function (context, options = {}) {
|
|
|
144
143
|
return nav(
|
|
145
144
|
{
|
|
146
145
|
...props,
|
|
147
|
-
class:
|
|
146
|
+
class: [
|
|
148
147
|
"tableOfContent",
|
|
149
148
|
size,
|
|
150
149
|
variant,
|
|
151
150
|
color,
|
|
152
151
|
className,
|
|
153
152
|
options?.class,
|
|
154
|
-
props?.class
|
|
155
|
-
|
|
153
|
+
props?.class,
|
|
154
|
+
],
|
|
156
155
|
bauMounted: (/*{ element }*/) => {
|
|
157
156
|
window.addEventListener("scroll", handleScroll);
|
|
158
157
|
},
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
2
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
3
2
|
import button from "../button/button.js";
|
|
4
3
|
import buttonGroup from "../buttonGroup/buttonGroup.js";
|
|
@@ -110,13 +109,13 @@ export default function (context, options = {}) {
|
|
|
110
109
|
return div(
|
|
111
110
|
{
|
|
112
111
|
...props,
|
|
113
|
-
class:
|
|
112
|
+
class: [
|
|
114
113
|
"table-pagination",
|
|
115
114
|
className,
|
|
116
115
|
isLoading && "disabled",
|
|
117
116
|
options?.class,
|
|
118
|
-
props?.class
|
|
119
|
-
|
|
117
|
+
props?.class,
|
|
118
|
+
],
|
|
120
119
|
},
|
|
121
120
|
Spinner({ class: "spinner", visibility: isLoading, size: "md" }),
|
|
122
121
|
totalCount > 0
|
package/tabs/tabs.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
2
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
3
2
|
|
|
4
3
|
import { Colors } from "../constants.js";
|
|
5
4
|
|
|
@@ -134,11 +133,10 @@ export default function (context, options = {}) {
|
|
|
134
133
|
const { Header, disabled, name } = tab;
|
|
135
134
|
return li(
|
|
136
135
|
{
|
|
137
|
-
class: () =>
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
),
|
|
136
|
+
class: () => [
|
|
137
|
+
tabCurrentState.val.name == name && "active",
|
|
138
|
+
disabled && "disabled",
|
|
139
|
+
],
|
|
142
140
|
},
|
|
143
141
|
a({ href: buildHref(name) }, Header(tab))
|
|
144
142
|
);
|
|
@@ -146,15 +144,15 @@ export default function (context, options = {}) {
|
|
|
146
144
|
|
|
147
145
|
const rootEl = div(
|
|
148
146
|
{
|
|
149
|
-
class:
|
|
147
|
+
class: [
|
|
150
148
|
"tabs",
|
|
151
149
|
variant,
|
|
152
150
|
size,
|
|
153
151
|
color,
|
|
154
152
|
className,
|
|
155
153
|
options?.class,
|
|
156
|
-
props.class
|
|
157
|
-
|
|
154
|
+
props.class,
|
|
155
|
+
],
|
|
158
156
|
bauMounted: ({ element }) => {
|
|
159
157
|
window.addEventListener("popstate", hashchange);
|
|
160
158
|
},
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
2
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
3
2
|
import { Colors } from "../constants.js";
|
|
4
3
|
|
|
5
4
|
const defaultMode = "light";
|
|
@@ -111,15 +110,15 @@ export default function (context, options = {}) {
|
|
|
111
110
|
title: "Switch Theme",
|
|
112
111
|
name: "theme-switch",
|
|
113
112
|
...props,
|
|
114
|
-
class:
|
|
113
|
+
class: [
|
|
115
114
|
"theme-switch",
|
|
116
115
|
color,
|
|
117
116
|
variant,
|
|
118
117
|
size,
|
|
119
118
|
className,
|
|
120
119
|
options?.class,
|
|
121
|
-
props.class
|
|
122
|
-
|
|
120
|
+
props.class,
|
|
121
|
+
],
|
|
123
122
|
type: "checkbox",
|
|
124
123
|
checked: getStoredTheme() == "dark",
|
|
125
124
|
onclick: (event) => {
|