@pos-360/horizon 0.31.4 → 0.31.6
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/{chunk-TVEV3UG5.js → chunk-MPODJZUU.js} +18 -19
- package/dist/chunk-MPODJZUU.js.map +1 -0
- package/dist/{chunk-TKK4O5MO.mjs → chunk-YG23UX2C.mjs} +18 -19
- package/dist/chunk-YG23UX2C.mjs.map +1 -0
- package/dist/index.js +107 -107
- package/dist/index.mjs +1 -1
- package/dist/primitives.js +107 -107
- package/dist/primitives.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-TKK4O5MO.mjs.map +0 -1
- package/dist/chunk-TVEV3UG5.js.map +0 -1
|
@@ -1047,11 +1047,18 @@ var SelectBar = React11__namespace.forwardRef(({
|
|
|
1047
1047
|
if (multiple) {
|
|
1048
1048
|
const checked = activeMulti.includes(option.value);
|
|
1049
1049
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1050
|
-
"
|
|
1050
|
+
"div",
|
|
1051
1051
|
{
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
onClick: () => handleMultiToggle(option.value),
|
|
1052
|
+
role: "option",
|
|
1053
|
+
"aria-selected": checked,
|
|
1054
|
+
onClick: () => !option.disabled && handleMultiToggle(option.value),
|
|
1055
|
+
onKeyDown: (e) => {
|
|
1056
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
1057
|
+
e.preventDefault();
|
|
1058
|
+
if (!option.disabled) handleMultiToggle(option.value);
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
tabIndex: option.disabled ? -1 : 0,
|
|
1055
1062
|
className: chunkD2BLWOWK_js.cn(
|
|
1056
1063
|
"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",
|
|
1057
1064
|
"hover:bg-black/5 dark:hover:bg-white/10",
|
|
@@ -1059,21 +1066,13 @@ var SelectBar = React11__namespace.forwardRef(({
|
|
|
1059
1066
|
),
|
|
1060
1067
|
children: [
|
|
1061
1068
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1062
|
-
|
|
1069
|
+
"div",
|
|
1063
1070
|
{
|
|
1064
|
-
checked,
|
|
1065
|
-
tabIndex: -1,
|
|
1066
1071
|
className: chunkD2BLWOWK_js.cn(
|
|
1067
|
-
"
|
|
1072
|
+
"h-4 w-4 shrink-0 rounded-sm border shadow flex items-center justify-center",
|
|
1073
|
+
checked ? "bg-blue-600 border-blue-600 text-white dark:bg-blue-600" : "border-gray-300 bg-transparent dark:border-neutral-600"
|
|
1068
1074
|
),
|
|
1069
|
-
|
|
1070
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(CheckboxPrimitive__namespace.Indicator, { className: "flex items-center justify-center text-current", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1071
|
-
lucideReact.Check,
|
|
1072
|
-
{
|
|
1073
|
-
className: "h-3.5 w-3.5",
|
|
1074
|
-
strokeWidth: 3
|
|
1075
|
-
}
|
|
1076
|
-
) })
|
|
1075
|
+
children: checked && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-3.5 w-3.5", strokeWidth: 3 })
|
|
1077
1076
|
}
|
|
1078
1077
|
),
|
|
1079
1078
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: option.label })
|
|
@@ -3146,7 +3145,7 @@ function DateRangePicker({
|
|
|
3146
3145
|
{
|
|
3147
3146
|
disabled,
|
|
3148
3147
|
className: chunkD2BLWOWK_js.cn(
|
|
3149
|
-
"inline-flex items-center gap-2 rounded-md border border-gray-300 bg-white px-3 py-
|
|
3148
|
+
"inline-flex h-8 items-center gap-2 rounded-md border border-gray-300 bg-white px-3 py-1 text-sm shadow-sm transition-colors",
|
|
3150
3149
|
"hover:bg-gray-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",
|
|
3151
3150
|
"dark:border-neutral-600 dark:bg-neutral-800 dark:hover:bg-neutral-700",
|
|
3152
3151
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -3797,5 +3796,5 @@ exports.useColumnVisibility = useColumnVisibility;
|
|
|
3797
3796
|
exports.useFormContext = useFormContext;
|
|
3798
3797
|
exports.useFormFieldContext = useFormFieldContext;
|
|
3799
3798
|
exports.useTableSelection = useTableSelection;
|
|
3800
|
-
//# sourceMappingURL=chunk-
|
|
3801
|
-
//# sourceMappingURL=chunk-
|
|
3799
|
+
//# sourceMappingURL=chunk-MPODJZUU.js.map
|
|
3800
|
+
//# sourceMappingURL=chunk-MPODJZUU.js.map
|