@ctlyst.id/internal-ui 5.4.3 → 5.4.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/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -868,11 +868,14 @@ var CheckboxComponent = (0, import_react13.forwardRef)(
|
|
868
868
|
throttle((val) => setIsChecked(val), throttleTime),
|
869
869
|
[]
|
870
870
|
);
|
871
|
-
const handleOnChange = (0, import_react14.useCallback)(
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
871
|
+
const handleOnChange = (0, import_react14.useCallback)(
|
872
|
+
(event) => {
|
873
|
+
if (throttleTime) throttleFn(event.target.checked);
|
874
|
+
else setIsChecked(event.target.checked);
|
875
|
+
if (rest.onChange) rest.onChange(event);
|
876
|
+
},
|
877
|
+
[rest.onChange]
|
878
|
+
);
|
876
879
|
const variant = isError ? "errors" : "unstyled";
|
877
880
|
const renderIcon2 = () => {
|
878
881
|
if (state.isChecked) return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon.Check, { size: 3, color: "inherit" });
|
@@ -4871,8 +4874,7 @@ function selectStyles(colorMode, _isError) {
|
|
4871
4874
|
...base,
|
4872
4875
|
...selectStyle,
|
4873
4876
|
color: "var(--chakra-colors-neutral-900)",
|
4874
|
-
padding: 12
|
4875
|
-
height: 42
|
4877
|
+
padding: 12
|
4876
4878
|
}),
|
4877
4879
|
menu: (base) => {
|
4878
4880
|
return {
|