bianic-ui 1.0.0-beta.3 → 1.0.0-beta.5
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/dist/cjs/index.js +4 -2
- package/dist/esm/index.js +4 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1606,8 +1606,10 @@ var sizeConfig$6 = {
|
|
|
1606
1606
|
};
|
|
1607
1607
|
|
|
1608
1608
|
function Checkbox(_a) {
|
|
1609
|
-
var _b = _a.disabled, disabled = _b === void 0 ? false : _b, id = _a.id
|
|
1610
|
-
|
|
1609
|
+
var _b = _a.disabled, disabled = _b === void 0 ? false : _b, id = _a.id, _c = _a.size, size = _c === void 0 ? 'md' : _c, _d = _a.checked, checked = _d === void 0 ? false : _d, label = _a.label, _e = _a.onChange, onChange = _e === void 0 ? function () { } : _e, value = _a.value;
|
|
1610
|
+
console.log('size bianic', size);
|
|
1611
|
+
console.log('onChange', onChange);
|
|
1612
|
+
var _f = sizeConfig$6[size], checkClass = _f.checkClass, labelClass = _f.labelClass;
|
|
1611
1613
|
return (React.createElement("div", { className: "flex items-center" },
|
|
1612
1614
|
React.createElement("div", { className: "bg-white rounded-full flex flex-shrink-0 justify-center items-center relative ".concat(checkClass) },
|
|
1613
1615
|
React.createElement("input", { id: id, type: "checkbox", className: "peer checkbox box-content appearance-none focus-visible:opacity-100 focus-visible:ring-1 focus-visible:ring-offset-2 focus-visible:ring-bia-blue focus-visible:outline-none rounded-full border-bia-coolgrey-light-50 checked:border-bia-blue disabled:border-bia-coolgrey-light-50 hover:border-bia-blue-hover disabled:checked:border-bia-blue-light-50 border-2 absolute cursor-pointer w-full h-full", checked: checked, onChange: function (e) { return onChange(e); }, disabled: disabled, value: value }),
|
package/dist/esm/index.js
CHANGED
|
@@ -1604,8 +1604,10 @@ var sizeConfig$6 = {
|
|
|
1604
1604
|
};
|
|
1605
1605
|
|
|
1606
1606
|
function Checkbox(_a) {
|
|
1607
|
-
var _b = _a.disabled, disabled = _b === void 0 ? false : _b, id = _a.id
|
|
1608
|
-
|
|
1607
|
+
var _b = _a.disabled, disabled = _b === void 0 ? false : _b, id = _a.id, _c = _a.size, size = _c === void 0 ? 'md' : _c, _d = _a.checked, checked = _d === void 0 ? false : _d, label = _a.label, _e = _a.onChange, onChange = _e === void 0 ? function () { } : _e, value = _a.value;
|
|
1608
|
+
console.log('size bianic', size);
|
|
1609
|
+
console.log('onChange', onChange);
|
|
1610
|
+
var _f = sizeConfig$6[size], checkClass = _f.checkClass, labelClass = _f.labelClass;
|
|
1609
1611
|
return (React.createElement("div", { className: "flex items-center" },
|
|
1610
1612
|
React.createElement("div", { className: "bg-white rounded-full flex flex-shrink-0 justify-center items-center relative ".concat(checkClass) },
|
|
1611
1613
|
React.createElement("input", { id: id, type: "checkbox", className: "peer checkbox box-content appearance-none focus-visible:opacity-100 focus-visible:ring-1 focus-visible:ring-offset-2 focus-visible:ring-bia-blue focus-visible:outline-none rounded-full border-bia-coolgrey-light-50 checked:border-bia-blue disabled:border-bia-coolgrey-light-50 hover:border-bia-blue-hover disabled:checked:border-bia-blue-light-50 border-2 absolute cursor-pointer w-full h-full", checked: checked, onChange: function (e) { return onChange(e); }, disabled: disabled, value: value }),
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"@biaenergi:registry": "https://gitlab.com/api/v4/projects/50905269/packages/npm/"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.0.0-beta.
|
|
6
|
+
"version": "1.0.0-beta.5",
|
|
7
7
|
"description": "Design Language System develop by BIAENERGI",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"rollup": "rollup -c",
|