@pactor-app/ui 1.17.1 → 1.18.1
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/{chunk-IH67RZJ4.js → chunk-COMLXFWS.js} +1 -1
- package/dist/{chunk-LU36YCYA.js → chunk-IMRMBMHI.js} +2 -2
- package/dist/{chunk-GVBFVV7I.js → chunk-MHM7LTV2.js} +333 -166
- package/dist/{chunk-OGNXKVGQ.js → chunk-RB7RCKAX.js} +3 -1
- package/dist/{chunk-64JZPHD3.js → chunk-XA6OJ54X.js} +10 -4
- package/dist/components/index.cjs +446 -268
- package/dist/components/index.d.cts +42 -1
- package/dist/components/index.d.ts +42 -1
- package/dist/components/index.js +6 -4
- package/dist/index.cjs +597 -419
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -5
- package/dist/layout/index.cjs +3 -1
- package/dist/layout/index.js +3 -3
- package/dist/ui/index.cjs +12 -4
- package/dist/ui/index.js +2 -2
- package/package.json +5 -5
- package/styles.css +40 -3
|
@@ -737,7 +737,9 @@ function SidebarInset({ className, ...props }) {
|
|
|
737
737
|
{
|
|
738
738
|
"data-slot": "sidebar-inset",
|
|
739
739
|
className: cn(
|
|
740
|
-
|
|
740
|
+
// min-w-0:作为横向 flex 项需允许收缩到内容 min-content 以下,
|
|
741
|
+
// 否则宽表格等内容会撑破视口(内部 overflow-x-auto 永不生效)
|
|
742
|
+
"relative flex w-full min-w-0 flex-1 flex-col bg-background",
|
|
741
743
|
"md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",
|
|
742
744
|
className
|
|
743
745
|
),
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
Popover,
|
|
3
3
|
PopoverContent,
|
|
4
4
|
PopoverTrigger
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RB7RCKAX.js";
|
|
6
6
|
import {
|
|
7
7
|
Button,
|
|
8
8
|
buttonVariants,
|
|
@@ -786,7 +786,7 @@ function ComboboxContent({
|
|
|
786
786
|
PopoverContent,
|
|
787
787
|
{
|
|
788
788
|
"data-slot": "combobox-content",
|
|
789
|
-
className: cn("w-
|
|
789
|
+
className: cn("w-(--anchor-width) p-0", className),
|
|
790
790
|
...props,
|
|
791
791
|
children
|
|
792
792
|
}
|
|
@@ -2163,7 +2163,9 @@ function SelectContent({
|
|
|
2163
2163
|
children,
|
|
2164
2164
|
side = "bottom",
|
|
2165
2165
|
sideOffset = 4,
|
|
2166
|
-
|
|
2166
|
+
// 弹层左边缘对齐触发器左边缘(shadcn 上游默认为 'center',居中会显得
|
|
2167
|
+
// 弹层"对着触发器中间",与主流控制台左对齐惯例不符,故改默认值)
|
|
2168
|
+
align = "start",
|
|
2167
2169
|
alignItemWithTrigger = false,
|
|
2168
2170
|
...props
|
|
2169
2171
|
}) {
|
|
@@ -2180,7 +2182,11 @@ function SelectContent({
|
|
|
2180
2182
|
{
|
|
2181
2183
|
"data-slot": "select-content",
|
|
2182
2184
|
className: cn(
|
|
2183
|
-
|
|
2185
|
+
// min-w 跟随触发器宽度(Base UI Positioner 在定位元素上暴露
|
|
2186
|
+
// --anchor-width,Popup 作为其子节点可经 var() 继承到),
|
|
2187
|
+
// 选项更长时弹层随内容继续撑宽;不再使用固定的 min-w-[8rem]
|
|
2188
|
+
//(触发器比 8rem 宽时弹层会显得比触发器窄)
|
|
2189
|
+
"relative z-50 max-h-96 min-w-(--anchor-width) overflow-x-hidden overflow-y-auto rounded-md border border-border bg-popover text-popover-foreground shadow-md shadow-(color:--shadow-color) duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fill-mode-forwards data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
2184
2190
|
className
|
|
2185
2191
|
),
|
|
2186
2192
|
...props,
|