@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
package/toggle/toggle.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
|
export default function (context, options = {}) {
|
|
5
4
|
const { bau, css, createGlobalStyles } = context;
|
|
@@ -90,15 +89,15 @@ export default function (context, options = {}) {
|
|
|
90
89
|
onclick && onclick(event);
|
|
91
90
|
},
|
|
92
91
|
|
|
93
|
-
class:
|
|
92
|
+
class: [
|
|
94
93
|
"toggle",
|
|
95
94
|
size,
|
|
96
95
|
color,
|
|
97
96
|
variant,
|
|
98
97
|
className,
|
|
99
98
|
options?.class,
|
|
100
|
-
props?.class
|
|
101
|
-
|
|
99
|
+
props?.class,
|
|
100
|
+
],
|
|
102
101
|
},
|
|
103
102
|
children
|
|
104
103
|
);
|
|
@@ -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
|
|
|
@@ -77,15 +76,15 @@ export default function (context, options = {}) {
|
|
|
77
76
|
return div(
|
|
78
77
|
{
|
|
79
78
|
...props,
|
|
80
|
-
class:
|
|
79
|
+
class: [
|
|
81
80
|
"toggle-group",
|
|
82
81
|
size,
|
|
83
82
|
color,
|
|
84
83
|
variant,
|
|
85
84
|
className,
|
|
86
85
|
options?.class,
|
|
87
|
-
props?.class
|
|
88
|
-
|
|
86
|
+
props?.class,
|
|
87
|
+
],
|
|
89
88
|
onclick,
|
|
90
89
|
},
|
|
91
90
|
...children
|
package/tooltip/tooltip.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 = {}) {
|
|
@@ -102,10 +101,10 @@ export default function (context, options = {}) {
|
|
|
102
101
|
|
|
103
102
|
const tooltipContentEl = div(
|
|
104
103
|
{
|
|
105
|
-
class:
|
|
104
|
+
class: ["container", ...side.split("-")],
|
|
106
105
|
},
|
|
107
106
|
div(
|
|
108
|
-
{ class:
|
|
107
|
+
{ class: ["content", color, variant, size], role: "tooltip" },
|
|
109
108
|
titleEl
|
|
110
109
|
)
|
|
111
110
|
);
|
|
@@ -159,7 +158,7 @@ export default function (context, options = {}) {
|
|
|
159
158
|
const rootEl = div(
|
|
160
159
|
{
|
|
161
160
|
...props,
|
|
162
|
-
class:
|
|
161
|
+
class: ["tooltip", className, options?.class, props?.class],
|
|
163
162
|
bauMounted: ({ element }) => {
|
|
164
163
|
element.addEventListener("mouseover", mouseover);
|
|
165
164
|
element.addEventListener("mouseout", mouseout);
|
package/treeView/treeView.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { toPropsAndChildren } from "@grucloud/bau/bau.js";
|
|
2
|
-
import classNames from "@grucloud/bau-css/classNames.js";
|
|
3
1
|
import collapsible from "../collapsible";
|
|
4
2
|
|
|
5
3
|
const treeAddParent =
|
|
@@ -39,12 +37,10 @@ const createStyles = ({ css, createGlobalStyles }) => {
|
|
|
39
37
|
padding-left: 0;
|
|
40
38
|
overflow: hidden;
|
|
41
39
|
background: inherit;
|
|
42
|
-
|
|
43
40
|
& > li {
|
|
44
41
|
padding-left: var(--treeview-link-padding-horizontal);
|
|
45
42
|
border-radius: 0.25rem;
|
|
46
43
|
background: inherit;
|
|
47
|
-
|
|
48
44
|
& .header {
|
|
49
45
|
width: 100%;
|
|
50
46
|
display: flex;
|
|
@@ -65,7 +61,6 @@ const createStyles = ({ css, createGlobalStyles }) => {
|
|
|
65
61
|
}
|
|
66
62
|
}
|
|
67
63
|
}
|
|
68
|
-
|
|
69
64
|
& > ul > li {
|
|
70
65
|
padding-left: 0rem;
|
|
71
66
|
}
|
|
@@ -113,7 +108,7 @@ export default function (context, options = {}) {
|
|
|
113
108
|
const Content = () =>
|
|
114
109
|
ul(
|
|
115
110
|
{
|
|
116
|
-
class:
|
|
111
|
+
class: [color, size],
|
|
117
112
|
},
|
|
118
113
|
children.map(Tree({ depth: depth + 1, maxDepth, parent: item }))
|
|
119
114
|
);
|
|
@@ -138,14 +133,14 @@ export default function (context, options = {}) {
|
|
|
138
133
|
}) {
|
|
139
134
|
return nav(
|
|
140
135
|
{
|
|
141
|
-
class:
|
|
136
|
+
class: [
|
|
142
137
|
styles.nav,
|
|
143
138
|
size,
|
|
144
139
|
variant,
|
|
145
140
|
color,
|
|
146
141
|
options?.class,
|
|
147
|
-
otherProps.class
|
|
148
|
-
|
|
142
|
+
otherProps.class,
|
|
143
|
+
],
|
|
149
144
|
},
|
|
150
145
|
ul(
|
|
151
146
|
Tree({ maxDepth, color, variant, size })(treeAddParent({})({ ...tree }))
|