@optifye/dashboard-core 6.11.31 → 6.11.32

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 CHANGED
@@ -39582,13 +39582,8 @@ var TimePickerDropdown = ({
39582
39582
  }, [disabled, hasValue, onChange]);
39583
39583
  const handleContainerClick = React142.useCallback(() => {
39584
39584
  if (disabled) return;
39585
- if (!activeSegment) {
39586
- setActiveSegment("hour");
39587
- if (!hasValue) {
39588
- onChange(to24h(12, 0, "AM"));
39589
- }
39590
- }
39591
- }, [disabled, activeSegment, hasValue, onChange]);
39585
+ togglePopover();
39586
+ }, [disabled, togglePopover]);
39592
39587
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `relative ${className}`, ref: containerRef, children: [
39593
39588
  /* @__PURE__ */ jsxRuntime.jsxs(
39594
39589
  "div",
package/dist/index.mjs CHANGED
@@ -39553,13 +39553,8 @@ var TimePickerDropdown = ({
39553
39553
  }, [disabled, hasValue, onChange]);
39554
39554
  const handleContainerClick = useCallback(() => {
39555
39555
  if (disabled) return;
39556
- if (!activeSegment) {
39557
- setActiveSegment("hour");
39558
- if (!hasValue) {
39559
- onChange(to24h(12, 0, "AM"));
39560
- }
39561
- }
39562
- }, [disabled, activeSegment, hasValue, onChange]);
39556
+ togglePopover();
39557
+ }, [disabled, togglePopover]);
39563
39558
  return /* @__PURE__ */ jsxs("div", { className: `relative ${className}`, ref: containerRef, children: [
39564
39559
  /* @__PURE__ */ jsxs(
39565
39560
  "div",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optifye/dashboard-core",
3
- "version": "6.11.31",
3
+ "version": "6.11.32",
4
4
  "description": "Reusable UI & logic for Optifye dashboard",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",