@orsetra/shared-ui 1.3.1 → 1.3.2
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.
|
@@ -16,6 +16,7 @@ interface PageWithSidePanelProps {
|
|
|
16
16
|
showBorder?: boolean
|
|
17
17
|
onClose?: () => void
|
|
18
18
|
onOpen?: () => void
|
|
19
|
+
className?: string
|
|
19
20
|
contentHeaderClassName?: string
|
|
20
21
|
sidePanelClassName?: string
|
|
21
22
|
sidePanelHeaderClassName?: string
|
|
@@ -38,6 +39,7 @@ export function PageWithSidePanel({
|
|
|
38
39
|
showBorder = true,
|
|
39
40
|
onClose,
|
|
40
41
|
onOpen,
|
|
42
|
+
className,
|
|
41
43
|
contentHeaderClassName,
|
|
42
44
|
sidePanelClassName,
|
|
43
45
|
sidePanelHeaderClassName,
|
|
@@ -56,7 +58,7 @@ export function PageWithSidePanel({
|
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
return (
|
|
59
|
-
<div className="flex items-start">
|
|
61
|
+
<div className={cn("flex items-start", className)}>
|
|
60
62
|
{/* Main content column — grows to fill space left by the panel */}
|
|
61
63
|
<div className="flex-1 min-w-0 flex flex-col">
|
|
62
64
|
|
|
@@ -71,9 +73,7 @@ export function PageWithSidePanel({
|
|
|
71
73
|
)}
|
|
72
74
|
|
|
73
75
|
{/* Content body */}
|
|
74
|
-
<div>
|
|
75
76
|
{children}
|
|
76
|
-
</div>
|
|
77
77
|
</div>
|
|
78
78
|
|
|
79
79
|
{/* Side panel — sticky in the flex row, stays anchored while content scrolls.
|
|
@@ -54,7 +54,7 @@ export function StringsInput({
|
|
|
54
54
|
<div className="space-y-2">
|
|
55
55
|
{items.map((item, index) => (
|
|
56
56
|
<div key={index} className="flex items-center gap-2">
|
|
57
|
-
<span className="flex-1 text-sm px-3
|
|
57
|
+
<span className="flex-1 text-sm px-3 h-7 flex items-center border border-ibm-gray-20 bg-ibm-gray-10 text-ibm-gray-100 truncate">
|
|
58
58
|
{item}
|
|
59
59
|
</span>
|
|
60
60
|
<Button
|
|
@@ -62,9 +62,9 @@ export function StringsInput({
|
|
|
62
62
|
variant="secondary"
|
|
63
63
|
onClick={() => handleRemove(index)}
|
|
64
64
|
disabled={disabled}
|
|
65
|
-
className="rounded-none h-
|
|
65
|
+
className="rounded-none h-7 w-7 p-0 shrink-0"
|
|
66
66
|
>
|
|
67
|
-
<X className="h-
|
|
67
|
+
<X className="h-3.5 w-3.5" />
|
|
68
68
|
</Button>
|
|
69
69
|
</div>
|
|
70
70
|
))}
|
|
@@ -75,18 +75,16 @@ export function StringsInput({
|
|
|
75
75
|
onKeyDown={handleKeyDown}
|
|
76
76
|
disabled={disabled}
|
|
77
77
|
placeholder={placeholder}
|
|
78
|
-
className="rounded-none flex-1"
|
|
78
|
+
className="rounded-none flex-1 h-7 text-sm"
|
|
79
79
|
/>
|
|
80
80
|
<Button
|
|
81
81
|
type="button"
|
|
82
82
|
variant="secondary"
|
|
83
|
-
leftIcon={<Plus className="h-4 w-4 mr-1" />}
|
|
84
83
|
onClick={handleAdd}
|
|
85
84
|
disabled={disabled || !inputValue.trim()}
|
|
86
|
-
className="rounded-none shrink-0"
|
|
85
|
+
className="rounded-none h-7 w-7 p-0 shrink-0"
|
|
87
86
|
>
|
|
88
|
-
|
|
89
|
-
Add
|
|
87
|
+
<Plus className="h-3.5 w-3.5" />
|
|
90
88
|
</Button>
|
|
91
89
|
</div>
|
|
92
90
|
</div>
|