@pos-360/horizon 0.31.5 → 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-R3JWUPJG.js → chunk-MPODJZUU.js} +17 -18
- package/dist/chunk-MPODJZUU.js.map +1 -0
- package/dist/{chunk-NYK4ZRT4.mjs → chunk-YG23UX2C.mjs} +17 -18
- 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-NYK4ZRT4.mjs.map +0 -1
- package/dist/chunk-R3JWUPJG.js.map +0 -1
|
@@ -1017,11 +1017,18 @@ var SelectBar = React11.forwardRef(({
|
|
|
1017
1017
|
if (multiple) {
|
|
1018
1018
|
const checked = activeMulti.includes(option.value);
|
|
1019
1019
|
return /* @__PURE__ */ jsxs(
|
|
1020
|
-
"
|
|
1020
|
+
"div",
|
|
1021
1021
|
{
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
onClick: () => handleMultiToggle(option.value),
|
|
1022
|
+
role: "option",
|
|
1023
|
+
"aria-selected": checked,
|
|
1024
|
+
onClick: () => !option.disabled && handleMultiToggle(option.value),
|
|
1025
|
+
onKeyDown: (e) => {
|
|
1026
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
1027
|
+
e.preventDefault();
|
|
1028
|
+
if (!option.disabled) handleMultiToggle(option.value);
|
|
1029
|
+
}
|
|
1030
|
+
},
|
|
1031
|
+
tabIndex: option.disabled ? -1 : 0,
|
|
1025
1032
|
className: cn(
|
|
1026
1033
|
"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",
|
|
1027
1034
|
"hover:bg-black/5 dark:hover:bg-white/10",
|
|
@@ -1029,21 +1036,13 @@ var SelectBar = React11.forwardRef(({
|
|
|
1029
1036
|
),
|
|
1030
1037
|
children: [
|
|
1031
1038
|
/* @__PURE__ */ jsx(
|
|
1032
|
-
|
|
1039
|
+
"div",
|
|
1033
1040
|
{
|
|
1034
|
-
checked,
|
|
1035
|
-
tabIndex: -1,
|
|
1036
1041
|
className: cn(
|
|
1037
|
-
"
|
|
1042
|
+
"h-4 w-4 shrink-0 rounded-sm border shadow flex items-center justify-center",
|
|
1043
|
+
checked ? "bg-blue-600 border-blue-600 text-white dark:bg-blue-600" : "border-gray-300 bg-transparent dark:border-neutral-600"
|
|
1038
1044
|
),
|
|
1039
|
-
|
|
1040
|
-
children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, { className: "flex items-center justify-center text-current", children: /* @__PURE__ */ jsx(
|
|
1041
|
-
Check,
|
|
1042
|
-
{
|
|
1043
|
-
className: "h-3.5 w-3.5",
|
|
1044
|
-
strokeWidth: 3
|
|
1045
|
-
}
|
|
1046
|
-
) })
|
|
1045
|
+
children: checked && /* @__PURE__ */ jsx(Check, { className: "h-3.5 w-3.5", strokeWidth: 3 })
|
|
1047
1046
|
}
|
|
1048
1047
|
),
|
|
1049
1048
|
/* @__PURE__ */ jsx("span", { className: "truncate", children: option.label })
|
|
@@ -3662,5 +3661,5 @@ function PeriodComparisonSelector({
|
|
|
3662
3661
|
}
|
|
3663
3662
|
|
|
3664
3663
|
export { Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, ColumnSelection, DEFAULT_COMPARISON_PERIODS, DEFAULT_PRESETS, DEFAULT_TIME_RANGE, DateRangePicker, DateRangePickerMobile, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormLabel, FormMessage, MobileDataCard, PeriodComparisonSelector, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, SegmentedControl, Select, SelectBar, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, Skeleton, SkeletonAvatar, SkeletonBadge, SkeletonButton, SkeletonCard, SkeletonIcon, SkeletonInput, SkeletonSubtitle, SkeletonTableRow, SkeletonTableRows, SkeletonText, SkeletonTitle, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TableRowCheckbox, TableSelectAll, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, buttonVariants, segmentedControlItemVariants, segmentedControlVariants, separatorVariants, switchLabelVariants, switchThumbVariants, switchTrackVariants, toggleGroupVariants, toggleItemVariants, useColumnVisibility, useFormContext, useFormFieldContext, useTableSelection };
|
|
3665
|
-
//# sourceMappingURL=chunk-
|
|
3666
|
-
//# sourceMappingURL=chunk-
|
|
3664
|
+
//# sourceMappingURL=chunk-YG23UX2C.mjs.map
|
|
3665
|
+
//# sourceMappingURL=chunk-YG23UX2C.mjs.map
|