lecom-ui 5.2.48 → 5.2.49
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/components/Select/Select.js +24 -35
- package/dist/index.d.ts +1 -3
- package/package.json +1 -1
|
@@ -89,42 +89,31 @@ const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) =
|
|
|
89
89
|
/* @__PURE__ */ React.createElement(ChevronDown, { className: "h-4 w-4" })
|
|
90
90
|
));
|
|
91
91
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
92
|
-
const SelectContent = React.forwardRef(
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
92
|
+
const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ React.createElement(SelectPrimitive.Portal, null, /* @__PURE__ */ React.createElement(
|
|
93
|
+
SelectPrimitive.Content,
|
|
94
|
+
{
|
|
95
|
+
ref,
|
|
96
|
+
className: cn(
|
|
97
|
+
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
98
|
+
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
99
|
+
className
|
|
100
|
+
),
|
|
101
|
+
position,
|
|
98
102
|
...props
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
/* @__PURE__ */ React.createElement(
|
|
114
|
-
SelectPrimitive.Viewport,
|
|
115
|
-
{
|
|
116
|
-
className: cn(
|
|
117
|
-
"p-1 overflow-auto",
|
|
118
|
-
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
119
|
-
)
|
|
120
|
-
},
|
|
121
|
-
children
|
|
122
|
-
),
|
|
123
|
-
/* @__PURE__ */ React.createElement(SelectScrollDownButton, null)
|
|
124
|
-
);
|
|
125
|
-
return disablePortal ? content : /* @__PURE__ */ React.createElement(SelectPrimitive.Portal, null, content);
|
|
126
|
-
}
|
|
127
|
-
);
|
|
103
|
+
},
|
|
104
|
+
/* @__PURE__ */ React.createElement(SelectScrollUpButton, null),
|
|
105
|
+
/* @__PURE__ */ React.createElement(
|
|
106
|
+
SelectPrimitive.Viewport,
|
|
107
|
+
{
|
|
108
|
+
className: cn(
|
|
109
|
+
"p-1",
|
|
110
|
+
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
111
|
+
)
|
|
112
|
+
},
|
|
113
|
+
children
|
|
114
|
+
),
|
|
115
|
+
/* @__PURE__ */ React.createElement(SelectScrollDownButton, null)
|
|
116
|
+
)));
|
|
128
117
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
129
118
|
const SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
|
130
119
|
SelectPrimitive.Label,
|
package/dist/index.d.ts
CHANGED
|
@@ -910,9 +910,7 @@ declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimit
|
|
|
910
910
|
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
911
911
|
declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
912
912
|
declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
913
|
-
declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> &
|
|
914
|
-
disablePortal?: boolean;
|
|
915
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
913
|
+
declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
916
914
|
declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
917
915
|
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
918
916
|
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|