@pos-360/horizon 0.31.6 → 0.32.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.
@@ -1075,6 +1075,7 @@ var SelectBar = React11__namespace.forwardRef(({
1075
1075
  children: checked && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-3.5 w-3.5", strokeWidth: 3 })
1076
1076
  }
1077
1077
  ),
1078
+ option.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0", children: option.icon }),
1078
1079
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: option.label })
1079
1080
  ]
1080
1081
  },
@@ -1089,13 +1090,17 @@ var SelectBar = React11__namespace.forwardRef(({
1089
1090
  disabled: option.disabled,
1090
1091
  onClick: () => handleSingleSelect(option.value),
1091
1092
  className: chunkD2BLWOWK_js.cn(
1092
- "relative flex w-full cursor-default select-none items-center rounded-hz-md py-1.5 pl-2 pr-8 text-sm outline-none transition-colors",
1093
+ "relative flex w-full cursor-default select-none items-center gap-2 rounded-hz-md py-1.5 px-2 text-sm outline-none transition-colors",
1093
1094
  "hover:bg-black/5 dark:hover:bg-white/10",
1094
1095
  option.disabled && "pointer-events-none opacity-50"
1095
1096
  ),
1096
1097
  children: [
1097
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: option.label }),
1098
- selected && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-4 w-4" }) })
1098
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: chunkD2BLWOWK_js.cn(
1099
+ "h-4 w-4 shrink-0 flex items-center justify-center",
1100
+ selected ? "text-blue-600 dark:text-blue-400" : "text-transparent"
1101
+ ), children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-4 w-4" }) }),
1102
+ option.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0", children: option.icon }),
1103
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: option.label })
1099
1104
  ]
1100
1105
  },
1101
1106
  option.value
@@ -3796,5 +3801,5 @@ exports.useColumnVisibility = useColumnVisibility;
3796
3801
  exports.useFormContext = useFormContext;
3797
3802
  exports.useFormFieldContext = useFormFieldContext;
3798
3803
  exports.useTableSelection = useTableSelection;
3799
- //# sourceMappingURL=chunk-MPODJZUU.js.map
3800
- //# sourceMappingURL=chunk-MPODJZUU.js.map
3804
+ //# sourceMappingURL=chunk-B5WFOKDT.js.map
3805
+ //# sourceMappingURL=chunk-B5WFOKDT.js.map