@firecms/ui 3.0.0-canary.253 → 3.0.0-canary.254
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/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@firecms/ui",
|
3
3
|
"type": "module",
|
4
|
-
"version": "3.0.0-canary.
|
4
|
+
"version": "3.0.0-canary.254",
|
5
5
|
"description": "Awesome Firebase/Firestore-based headless open-source CMS",
|
6
6
|
"funding": {
|
7
7
|
"url": "https://github.com/sponsors/firecmsco"
|
@@ -116,7 +116,7 @@
|
|
116
116
|
"index.css",
|
117
117
|
"tailwind.config.js"
|
118
118
|
],
|
119
|
-
"gitHead": "
|
119
|
+
"gitHead": "c960d170205a0ce63c376f8626b38c143d7c9d29",
|
120
120
|
"publishConfig": {
|
121
121
|
"access": "public"
|
122
122
|
}
|
@@ -24,6 +24,7 @@ export type SelectProps<T extends SelectValue = string> = {
|
|
24
24
|
value?: T,
|
25
25
|
className?: string,
|
26
26
|
inputClassName?: string,
|
27
|
+
viewportClassName?: string,
|
27
28
|
onChange?: React.EventHandler<ChangeEvent<HTMLSelectElement>>,
|
28
29
|
onValueChange?: (updatedValue: T) => void,
|
29
30
|
placeholder?: React.ReactNode,
|
@@ -53,6 +54,7 @@ export const Select = forwardRef<HTMLDivElement, SelectProps>(({
|
|
53
54
|
onValueChange,
|
54
55
|
className,
|
55
56
|
inputClassName,
|
57
|
+
viewportClassName,
|
56
58
|
placeholder,
|
57
59
|
renderValue,
|
58
60
|
label,
|
@@ -216,7 +218,7 @@ export const Select = forwardRef<HTMLDivElement, SelectProps>(({
|
|
216
218
|
<SelectPrimitive.Portal>
|
217
219
|
<SelectPrimitive.Content position={position}
|
218
220
|
className={cls(focusedDisabled, "z-50 relative overflow-hidden border bg-white dark:bg-surface-900 p-2 rounded-lg", defaultBorderMixin)}>
|
219
|
-
<SelectPrimitive.Viewport className={"p-1"}
|
221
|
+
<SelectPrimitive.Viewport className={cls("p-1", viewportClassName)}
|
220
222
|
style={{ maxHeight: "var(--radix-select-content-available-height)" }}>
|
221
223
|
{children}
|
222
224
|
</SelectPrimitive.Viewport>
|