@pos-360/horizon 0.31.6 → 0.32.1

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.
@@ -1065,6 +1065,8 @@ var SelectBar = React11__namespace.forwardRef(({
1065
1065
  option.disabled && "pointer-events-none opacity-50"
1066
1066
  ),
1067
1067
  children: [
1068
+ option.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0", children: option.icon }),
1069
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate flex-1", children: option.label }),
1068
1070
  /* @__PURE__ */ jsxRuntime.jsx(
1069
1071
  "div",
1070
1072
  {
@@ -1074,8 +1076,7 @@ var SelectBar = React11__namespace.forwardRef(({
1074
1076
  ),
1075
1077
  children: checked && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-3.5 w-3.5", strokeWidth: 3 })
1076
1078
  }
1077
- ),
1078
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: option.label })
1079
+ )
1079
1080
  ]
1080
1081
  },
1081
1082
  option.value
@@ -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
+ option.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0", children: option.icon }),
1099
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate flex-1", children: option.label }),
1100
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: chunkD2BLWOWK_js.cn(
1101
+ "h-4 w-4 shrink-0 flex items-center justify-center",
1102
+ selected ? "text-blue-600 dark:text-blue-400" : "text-transparent"
1103
+ ), children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-4 w-4" }) })
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-JZNDF5NR.js.map
3805
+ //# sourceMappingURL=chunk-JZNDF5NR.js.map