myoperator-ui 0.0.113 → 0.0.115
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 +37 -32
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4905,12 +4905,12 @@ const PageHeader = React.forwardRef<HTMLDivElement, PageHeaderProps>(
|
|
|
4905
4905
|
const heightClasses = {
|
|
4906
4906
|
horizontal: "h-[76px]",
|
|
4907
4907
|
vertical: "min-h-[76px] py-4",
|
|
4908
|
-
responsive: "min-h-[76px] py-4
|
|
4908
|
+
responsive: "min-h-[76px] py-4 lg:py-0 lg:h-[76px]",
|
|
4909
4909
|
};
|
|
4910
4910
|
|
|
4911
4911
|
// Render actions for desktop (all inline)
|
|
4912
4912
|
const renderDesktopActions = () => (
|
|
4913
|
-
<div className="hidden sm:flex items-center gap-2">{actionsArray}</div>
|
|
4913
|
+
<div className="hidden sm:flex items-center gap-2 ml-6">{actionsArray}</div>
|
|
4914
4914
|
);
|
|
4915
4915
|
|
|
4916
4916
|
// Render expandable actions (for mobile and vertical layout)
|
|
@@ -5021,7 +5021,7 @@ const PageHeader = React.forwardRef<HTMLDivElement, PageHeaderProps>(
|
|
|
5021
5021
|
)}
|
|
5022
5022
|
</div>
|
|
5023
5023
|
{description && (
|
|
5024
|
-
<p className="m-0 text-sm text-[#181D27] font-normal mt-1
|
|
5024
|
+
<p className="m-0 text-sm text-[#181D27] font-normal mt-1 line-clamp-2">
|
|
5025
5025
|
{description}
|
|
5026
5026
|
</p>
|
|
5027
5027
|
)}
|
|
@@ -5276,6 +5276,7 @@ export const EventGroupComponent = React.forwardRef<
|
|
|
5276
5276
|
onSelectionChange,
|
|
5277
5277
|
emptyGroupMessage = "No events available",
|
|
5278
5278
|
renderEmptyGroup,
|
|
5279
|
+
defaultExpanded = false,
|
|
5279
5280
|
className,
|
|
5280
5281
|
...props
|
|
5281
5282
|
},
|
|
@@ -5359,39 +5360,41 @@ export const EventGroupComponent = React.forwardRef<
|
|
|
5359
5360
|
// Multiple events: render as collapsible accordion
|
|
5360
5361
|
return (
|
|
5361
5362
|
<div ref={ref} className={cn("bg-white", className)} {...props}>
|
|
5362
|
-
<Accordion type="multiple">
|
|
5363
|
+
<Accordion type="multiple" defaultValue={defaultExpanded ? [group.id] : []}>
|
|
5363
5364
|
<AccordionItem value={group.id}>
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
<div className="flex
|
|
5376
|
-
<div className="flex items-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5365
|
+
{/* Header row with checkbox OUTSIDE the trigger button to avoid nested buttons */}
|
|
5366
|
+
<div className="flex items-center gap-3 p-4 hover:bg-[#F9FAFB]">
|
|
5367
|
+
<Checkbox
|
|
5368
|
+
checked={checkboxState}
|
|
5369
|
+
onCheckedChange={handleGroupCheckbox}
|
|
5370
|
+
aria-label={\`Select all \${group.name}\`}
|
|
5371
|
+
/>
|
|
5372
|
+
<AccordionTrigger
|
|
5373
|
+
showChevron={true}
|
|
5374
|
+
className="flex-1 p-0 hover:bg-transparent"
|
|
5375
|
+
>
|
|
5376
|
+
<div className="flex items-center gap-3 flex-1">
|
|
5377
|
+
<div className="flex flex-col items-start text-left flex-1 min-w-0">
|
|
5378
|
+
<div className="flex items-center gap-2">
|
|
5379
|
+
{group.icon && (
|
|
5380
|
+
<span className="text-[#6B7280]">{group.icon}</span>
|
|
5381
|
+
)}
|
|
5382
|
+
<span className="font-medium text-[#333333]">
|
|
5383
|
+
{group.name}
|
|
5384
|
+
</span>
|
|
5385
|
+
</div>
|
|
5386
|
+
<span className="text-sm text-[#6B7280] mt-0.5">
|
|
5387
|
+
{group.description}
|
|
5382
5388
|
</span>
|
|
5383
5389
|
</div>
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5390
|
+
{selectedCount > 0 && (
|
|
5391
|
+
<span className="text-sm text-[#6B7280] whitespace-nowrap">
|
|
5392
|
+
{selectedCount} Selected
|
|
5393
|
+
</span>
|
|
5394
|
+
)}
|
|
5387
5395
|
</div>
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
{selectedCount} Selected
|
|
5391
|
-
</span>
|
|
5392
|
-
)}
|
|
5393
|
-
</div>
|
|
5394
|
-
</AccordionTrigger>
|
|
5396
|
+
</AccordionTrigger>
|
|
5397
|
+
</div>
|
|
5395
5398
|
<AccordionContent>
|
|
5396
5399
|
<div className="border-t border-[#E5E7EB]">
|
|
5397
5400
|
{events.length > 0 ? (
|
|
@@ -5559,6 +5562,8 @@ export interface EventGroupComponentProps {
|
|
|
5559
5562
|
emptyGroupMessage?: string
|
|
5560
5563
|
/** Custom render function for empty group state */
|
|
5561
5564
|
renderEmptyGroup?: (group: EventGroup) => React.ReactNode
|
|
5565
|
+
/** Whether the accordion should be expanded by default (default: false) */
|
|
5566
|
+
defaultExpanded?: boolean
|
|
5562
5567
|
}
|
|
5563
5568
|
|
|
5564
5569
|
/**
|