@geotab/zenith 1.26.0-beta.2 → 1.26.0-beta.3
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.
|
@@ -16,7 +16,7 @@ const CheckboxHandler = (0, react_1.forwardRef)(function inner({ onClick }, ref)
|
|
|
16
16
|
const CheckboxHeaderCell = ({ label, actions, checked, indeterminate, disabled, children, onChange }) => {
|
|
17
17
|
const actionsComp = react_1.Children.toArray(children).find(child => { var _a; return ((_a = child === null || child === void 0 ? void 0 : child.type) === null || _a === void 0 ? void 0 : _a.displayName) === "Actions"; });
|
|
18
18
|
const contentComp = react_1.Children.toArray(children).find(child => { var _a; return ((_a = child === null || child === void 0 ? void 0 : child.type) === null || _a === void 0 ? void 0 : _a.displayName) === "Content"; });
|
|
19
|
-
return (0, jsx_runtime_1.jsxs)("div", { className: "zen-checkbox-column zen-checkbox-column--with-actions", children: [(0, jsx_runtime_1.jsxs)("div", { className: "zen-checkbox-
|
|
19
|
+
return (0, jsx_runtime_1.jsxs)("div", { className: "zen-checkbox-column zen-checkbox-column--with-actions", children: [(0, jsx_runtime_1.jsxs)("div", { className: "zen-checkbox-column__controls", children: [(0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { className: "zen-checkbox-column__checkbox", checked: checked, indeterminate: indeterminate, disabled: disabled, title: label, "aria-label": label, onChange: e => onChange && onChange(e.target.checked) }), actions ? actionsComp : null] }), contentComp] });
|
|
20
20
|
};
|
|
21
21
|
exports.CheckboxHeaderCell = CheckboxHeaderCell;
|
|
22
22
|
exports.CheckboxHeaderCell.Actions = CheckboxHandler;
|
package/dist/index.css
CHANGED
|
@@ -7618,6 +7618,11 @@ button.zen-summary__clickable {
|
|
|
7618
7618
|
.zen-checkbox-column * {
|
|
7619
7619
|
box-sizing: border-box;
|
|
7620
7620
|
}
|
|
7621
|
+
.zen-checkbox-column__controls {
|
|
7622
|
+
display: flex;
|
|
7623
|
+
flex: 0 0 auto;
|
|
7624
|
+
align-items: center;
|
|
7625
|
+
}
|
|
7621
7626
|
.zen-checkbox-column__checkbox {
|
|
7622
7627
|
flex: 0 0 auto;
|
|
7623
7628
|
display: flex;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geotab/zenith",
|
|
3
|
-
"version": "1.26.0-beta.
|
|
3
|
+
"version": "1.26.0-beta.3",
|
|
4
4
|
"description": "Zenith components library on React",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"**/*.less",
|
|
10
10
|
"**/react-chartjs/dateAdapter.ts"
|
|
11
11
|
],
|
|
12
|
-
"module": "dist/index.js",
|
|
13
12
|
"publishConfig": {
|
|
14
13
|
"access": "public"
|
|
15
14
|
},
|
|
15
|
+
"module": "dist/index.js",
|
|
16
16
|
"scripts": {
|
|
17
17
|
"test": "npm run clean && npm run test-build && jest",
|
|
18
18
|
"start": "npm run storybook --loglevel verbose",
|