myoperator-ui 0.0.123 → 0.0.124
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 +30 -30
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5186,28 +5186,28 @@ export const EventSelector = React.forwardRef<
|
|
|
5186
5186
|
return (
|
|
5187
5187
|
<div
|
|
5188
5188
|
key={category.id}
|
|
5189
|
-
className="border border-
|
|
5189
|
+
className="border border-semantic-border-layout rounded-lg overflow-hidden"
|
|
5190
5190
|
>
|
|
5191
5191
|
{/* Category Header - no checkbox, just label */}
|
|
5192
|
-
<div className="flex items-center justify-between p-4 bg-white border-b border-
|
|
5192
|
+
<div className="flex items-center justify-between p-4 bg-white border-b border-semantic-border-layout">
|
|
5193
5193
|
<div className="flex items-center gap-3">
|
|
5194
5194
|
{category.icon && (
|
|
5195
|
-
<div className="flex items-center justify-center w-10 h-10 rounded-lg bg-
|
|
5195
|
+
<div className="flex items-center justify-center w-10 h-10 rounded-lg bg-semantic-bg-ui">
|
|
5196
5196
|
{category.icon}
|
|
5197
5197
|
</div>
|
|
5198
5198
|
)}
|
|
5199
|
-
<span className="font-medium text-
|
|
5199
|
+
<span className="font-medium text-semantic-text-primary">
|
|
5200
5200
|
{category.name}
|
|
5201
5201
|
</span>
|
|
5202
5202
|
</div>
|
|
5203
5203
|
{selectedInCategory.length > 0 && (
|
|
5204
|
-
<span className="text-sm text-
|
|
5204
|
+
<span className="text-sm text-semantic-text-muted">
|
|
5205
5205
|
{selectedInCategory.length} Selected
|
|
5206
5206
|
</span>
|
|
5207
5207
|
)}
|
|
5208
5208
|
</div>
|
|
5209
5209
|
{/* Category Groups */}
|
|
5210
|
-
<div className="divide-y divide-
|
|
5210
|
+
<div className="divide-y divide-semantic-border-layout">
|
|
5211
5211
|
{renderGroups(categoryGroups)}
|
|
5212
5212
|
</div>
|
|
5213
5213
|
</div>
|
|
@@ -5224,20 +5224,20 @@ export const EventSelector = React.forwardRef<
|
|
|
5224
5224
|
{/* Header */}
|
|
5225
5225
|
<div className="flex items-start justify-between mb-4">
|
|
5226
5226
|
<div>
|
|
5227
|
-
<h3 className="m-0 text-base font-semibold text-
|
|
5227
|
+
<h3 className="m-0 text-base font-semibold text-semantic-text-primary">
|
|
5228
5228
|
{title}
|
|
5229
5229
|
</h3>
|
|
5230
5230
|
{description && (
|
|
5231
|
-
<p className="m-0 text-sm text-
|
|
5231
|
+
<p className="m-0 text-sm text-semantic-text-muted mt-1">{description}</p>
|
|
5232
5232
|
)}
|
|
5233
5233
|
</div>
|
|
5234
|
-
<span className="text-sm font-medium text-
|
|
5234
|
+
<span className="text-sm font-medium text-semantic-text-primary">
|
|
5235
5235
|
{totalSelected} Selected
|
|
5236
5236
|
</span>
|
|
5237
5237
|
</div>
|
|
5238
5238
|
|
|
5239
5239
|
{/* Groups */}
|
|
5240
|
-
<div className="border border-
|
|
5240
|
+
<div className="border border-semantic-border-layout rounded-lg overflow-hidden divide-y divide-semantic-border-layout">
|
|
5241
5241
|
{renderCategories()}
|
|
5242
5242
|
</div>
|
|
5243
5243
|
</div>
|
|
@@ -5347,8 +5347,8 @@ export const EventGroupComponent = React.forwardRef<
|
|
|
5347
5347
|
className="mt-0.5"
|
|
5348
5348
|
/>
|
|
5349
5349
|
<div className="flex-1 min-w-0">
|
|
5350
|
-
<span className="font-medium text-
|
|
5351
|
-
<p className="m-0 text-sm text-
|
|
5350
|
+
<span className="font-medium text-semantic-text-primary">{event.name}</span>
|
|
5351
|
+
<p className="m-0 text-sm text-semantic-text-muted mt-0.5">
|
|
5352
5352
|
{event.description}
|
|
5353
5353
|
</p>
|
|
5354
5354
|
</div>
|
|
@@ -5363,7 +5363,7 @@ export const EventGroupComponent = React.forwardRef<
|
|
|
5363
5363
|
<Accordion type="multiple" defaultValue={defaultExpanded ? [group.id] : []}>
|
|
5364
5364
|
<AccordionItem value={group.id}>
|
|
5365
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-
|
|
5366
|
+
<div className="flex items-center gap-3 p-4 hover:bg-semantic-bg-ui">
|
|
5367
5367
|
<Checkbox
|
|
5368
5368
|
checked={checkboxState}
|
|
5369
5369
|
onCheckedChange={handleGroupCheckbox}
|
|
@@ -5377,18 +5377,18 @@ export const EventGroupComponent = React.forwardRef<
|
|
|
5377
5377
|
<div className="flex flex-col items-start text-left flex-1 min-w-0">
|
|
5378
5378
|
<div className="flex items-center gap-2">
|
|
5379
5379
|
{group.icon && (
|
|
5380
|
-
<span className="text-
|
|
5380
|
+
<span className="text-semantic-text-muted">{group.icon}</span>
|
|
5381
5381
|
)}
|
|
5382
|
-
<span className="font-medium text-
|
|
5382
|
+
<span className="font-medium text-semantic-text-primary">
|
|
5383
5383
|
{group.name}
|
|
5384
5384
|
</span>
|
|
5385
5385
|
</div>
|
|
5386
|
-
<span className="text-sm text-
|
|
5386
|
+
<span className="text-sm text-semantic-text-muted mt-0.5">
|
|
5387
5387
|
{group.description}
|
|
5388
5388
|
</span>
|
|
5389
5389
|
</div>
|
|
5390
5390
|
{selectedCount > 0 && (
|
|
5391
|
-
<span className="text-sm text-
|
|
5391
|
+
<span className="text-sm text-semantic-text-muted whitespace-nowrap">
|
|
5392
5392
|
{selectedCount} Selected
|
|
5393
5393
|
</span>
|
|
5394
5394
|
)}
|
|
@@ -5396,7 +5396,7 @@ export const EventGroupComponent = React.forwardRef<
|
|
|
5396
5396
|
</AccordionTrigger>
|
|
5397
5397
|
</div>
|
|
5398
5398
|
<AccordionContent>
|
|
5399
|
-
<div className="border-t border-
|
|
5399
|
+
<div className="border-t border-semantic-border-layout">
|
|
5400
5400
|
{events.length > 0 ? (
|
|
5401
5401
|
events.map((event) => (
|
|
5402
5402
|
<EventItemComponent
|
|
@@ -5411,7 +5411,7 @@ export const EventGroupComponent = React.forwardRef<
|
|
|
5411
5411
|
) : renderEmptyGroup ? (
|
|
5412
5412
|
<div className="py-4 px-8">{renderEmptyGroup(group)}</div>
|
|
5413
5413
|
) : (
|
|
5414
|
-
<div className="py-4 px-8 text-sm text-
|
|
5414
|
+
<div className="py-4 px-8 text-sm text-semantic-text-muted italic">
|
|
5415
5415
|
{emptyGroupMessage}
|
|
5416
5416
|
</div>
|
|
5417
5417
|
)}
|
|
@@ -5452,8 +5452,8 @@ export const EventItemComponent = React.forwardRef<
|
|
|
5452
5452
|
aria-label={\`Select \${event.name}\`}
|
|
5453
5453
|
/>
|
|
5454
5454
|
<div className="flex-1 min-w-0">
|
|
5455
|
-
<div className="text-sm font-medium text-
|
|
5456
|
-
<div className="text-sm text-
|
|
5455
|
+
<div className="text-sm font-medium text-semantic-text-primary">{event.name}</div>
|
|
5456
|
+
<div className="text-sm text-semantic-text-muted mt-0.5 leading-relaxed">
|
|
5457
5457
|
{event.description}
|
|
5458
5458
|
</div>
|
|
5459
5459
|
</div>
|
|
@@ -5751,29 +5751,29 @@ export const KeyValueInput = React.forwardRef<
|
|
|
5751
5751
|
<div ref={ref} className={cn("w-full", className)} {...props}>
|
|
5752
5752
|
{/* Header */}
|
|
5753
5753
|
<div className="mb-3">
|
|
5754
|
-
<h3 className="m-0 text-base font-semibold text-
|
|
5754
|
+
<h3 className="m-0 text-base font-semibold text-semantic-text-primary">
|
|
5755
5755
|
{title}
|
|
5756
5756
|
</h3>
|
|
5757
5757
|
{description && (
|
|
5758
|
-
<p className="m-0 text-sm text-
|
|
5758
|
+
<p className="m-0 text-sm text-semantic-text-muted mt-1">{description}</p>
|
|
5759
5759
|
)}
|
|
5760
5760
|
</div>
|
|
5761
5761
|
|
|
5762
5762
|
{/* Content Container with Background - only show when there are items */}
|
|
5763
5763
|
{pairs.length > 0 && (
|
|
5764
|
-
<div className="bg-
|
|
5764
|
+
<div className="bg-semantic-bg-ui rounded-lg p-4 mb-4">
|
|
5765
5765
|
{/* Column Headers */}
|
|
5766
5766
|
<div className="flex items-center gap-3 mb-3">
|
|
5767
5767
|
<div className="flex-1">
|
|
5768
|
-
<span className="text-sm font-medium text-
|
|
5768
|
+
<span className="text-sm font-medium text-semantic-text-primary">
|
|
5769
5769
|
{keyLabel}
|
|
5770
|
-
{keyRequired && <span className="text-
|
|
5770
|
+
{keyRequired && <span className="text-semantic-error-primary ml-0.5">*</span>}
|
|
5771
5771
|
</span>
|
|
5772
5772
|
</div>
|
|
5773
5773
|
<div className="flex-1">
|
|
5774
|
-
<span className="text-sm font-medium text-
|
|
5774
|
+
<span className="text-sm font-medium text-semantic-text-primary">
|
|
5775
5775
|
{valueLabel}
|
|
5776
|
-
{valueRequired && <span className="text-
|
|
5776
|
+
{valueRequired && <span className="text-semantic-error-primary ml-0.5">*</span>}
|
|
5777
5777
|
</span>
|
|
5778
5778
|
</div>
|
|
5779
5779
|
{/* Spacer for delete button column */}
|
|
@@ -5817,7 +5817,7 @@ export const KeyValueInput = React.forwardRef<
|
|
|
5817
5817
|
|
|
5818
5818
|
{/* Limit indicator */}
|
|
5819
5819
|
{isAtLimit && (
|
|
5820
|
-
<p className="m-0 text-xs text-
|
|
5820
|
+
<p className="m-0 text-xs text-semantic-text-muted mt-2 text-center">
|
|
5821
5821
|
Maximum of {maxItems} items reached
|
|
5822
5822
|
</p>
|
|
5823
5823
|
)}
|
|
@@ -5902,7 +5902,7 @@ export const KeyValueRow = React.forwardRef<
|
|
|
5902
5902
|
variant="ghost"
|
|
5903
5903
|
size="icon"
|
|
5904
5904
|
onClick={() => onDelete(pair.id)}
|
|
5905
|
-
className="text-
|
|
5905
|
+
className="text-semantic-text-muted hover:text-semantic-error-primary hover:bg-semantic-error-surface flex-shrink-0"
|
|
5906
5906
|
aria-label="Delete row"
|
|
5907
5907
|
>
|
|
5908
5908
|
<Trash2 className="h-4 w-4" />
|