@pactor-app/ui 1.46.0 → 1.48.0
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-XA7J5SGA.js → chunk-5FQ5SDIZ.js} +231 -356
- package/dist/{chunk-FU4P7CAM.js → chunk-B2Y6JC36.js} +281 -84
- package/dist/{chunk-QB2RZXDD.js → chunk-PF2FHU2X.js} +821 -876
- package/dist/{chunk-HU2RFIWH.js → chunk-PSEMK4AY.js} +116 -12
- package/dist/{chunk-JV2V4HCI.js → chunk-RLAOCITX.js} +2 -2
- package/dist/{chunk-7OBUSV5S.js → chunk-YHTRCBKF.js} +184 -59
- package/dist/components/index.cjs +1246 -1116
- package/dist/components/index.d.cts +36 -4
- package/dist/components/index.d.ts +36 -4
- package/dist/components/index.js +6 -6
- package/dist/index.cjs +1382 -1148
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -8
- package/dist/interaction/index.cjs +114 -10
- package/dist/interaction/index.d.cts +35 -1
- package/dist/interaction/index.d.ts +35 -1
- package/dist/interaction/index.js +1 -1
- package/dist/layout/index.cjs +435 -154
- package/dist/layout/index.js +3 -3
- package/dist/ui/index.cjs +1 -1
- package/dist/ui/index.d.cts +2 -0
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/index.js +10 -10
- package/package.json +6 -6
- package/styles.css +35 -0
package/dist/layout/index.js
CHANGED
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
findMenuChain,
|
|
10
10
|
registerBuiltinLayouts,
|
|
11
11
|
resolveLayout
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-RLAOCITX.js";
|
|
13
|
+
import "../chunk-B2Y6JC36.js";
|
|
14
|
+
import "../chunk-YHTRCBKF.js";
|
|
15
15
|
import "../chunk-WKJUCGV4.js";
|
|
16
16
|
export {
|
|
17
17
|
AdminLayout,
|
package/dist/ui/index.cjs
CHANGED
|
@@ -1144,7 +1144,7 @@ function ButtonGroup({ className, ...props }) {
|
|
|
1144
1144
|
role: "group",
|
|
1145
1145
|
"data-slot": "button-group",
|
|
1146
1146
|
className: cn(
|
|
1147
|
-
"flex w-fit items-stretch [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 [&>[data-slot=button]]:rounded-none [&>[data-slot=button]]:first:rounded-l-md [&>[data-slot=button]]:last:rounded-r-md [&>[data-slot=button]:not(:first-child)]:-ml-px",
|
|
1147
|
+
"flex w-fit items-stretch [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 [&>[data-slot=button]]:rounded-none [&>[data-slot=button]]:first:rounded-l-md [&>[data-slot=button]]:last:rounded-r-md [&>[data-slot=button]:not(:first-child)]:-ml-px [&>[data-slot=dropdown-menu-trigger]]:rounded-none [&>[data-slot=dropdown-menu-trigger]:not(:first-child)]:-ml-px [&>[data-slot=dropdown-menu-trigger]]:last:rounded-r-md",
|
|
1148
1148
|
className
|
|
1149
1149
|
),
|
|
1150
1150
|
...props
|
package/dist/ui/index.d.cts
CHANGED
|
@@ -185,6 +185,8 @@ declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProp
|
|
|
185
185
|
/**
|
|
186
186
|
* shadcn/ui ButtonGroup(vendored 源码,纯样式组合):
|
|
187
187
|
* 相连按钮组——内部按钮去圆角,首尾保留外侧圆角,相邻边框重叠。
|
|
188
|
+
* 下拉触发钮(data-slot=dropdown-menu-trigger,如 SplitButton 的 chevron
|
|
189
|
+
* 触发)同为直接子元素,按相同规则并入相连表面。
|
|
188
190
|
*/
|
|
189
191
|
declare function ButtonGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
190
192
|
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -185,6 +185,8 @@ declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProp
|
|
|
185
185
|
/**
|
|
186
186
|
* shadcn/ui ButtonGroup(vendored 源码,纯样式组合):
|
|
187
187
|
* 相连按钮组——内部按钮去圆角,首尾保留外侧圆角,相邻边框重叠。
|
|
188
|
+
* 下拉触发钮(data-slot=dropdown-menu-trigger,如 SplitButton 的 chevron
|
|
189
|
+
* 触发)同为直接子元素,按相同规则并入相连表面。
|
|
188
190
|
*/
|
|
189
191
|
declare function ButtonGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
190
192
|
|
package/dist/ui/index.js
CHANGED
|
@@ -50,14 +50,6 @@ import {
|
|
|
50
50
|
ContextMenuItem,
|
|
51
51
|
ContextMenuSeparator,
|
|
52
52
|
ContextMenuTrigger,
|
|
53
|
-
DropdownMenu,
|
|
54
|
-
DropdownMenuContent,
|
|
55
|
-
DropdownMenuItem,
|
|
56
|
-
DropdownMenuSeparator,
|
|
57
|
-
DropdownMenuSub,
|
|
58
|
-
DropdownMenuSubContent,
|
|
59
|
-
DropdownMenuSubTrigger,
|
|
60
|
-
DropdownMenuTrigger,
|
|
61
53
|
Empty,
|
|
62
54
|
EmptyContent,
|
|
63
55
|
EmptyDescription,
|
|
@@ -157,7 +149,7 @@ import {
|
|
|
157
149
|
toggleVariants,
|
|
158
150
|
typographyVariants,
|
|
159
151
|
useCarousel
|
|
160
|
-
} from "../chunk-
|
|
152
|
+
} from "../chunk-5FQ5SDIZ.js";
|
|
161
153
|
import {
|
|
162
154
|
Dialog,
|
|
163
155
|
DialogClose,
|
|
@@ -192,6 +184,14 @@ import {
|
|
|
192
184
|
CardFooter,
|
|
193
185
|
CardHeader,
|
|
194
186
|
CardTitle,
|
|
187
|
+
DropdownMenu,
|
|
188
|
+
DropdownMenuContent,
|
|
189
|
+
DropdownMenuItem,
|
|
190
|
+
DropdownMenuSeparator,
|
|
191
|
+
DropdownMenuSub,
|
|
192
|
+
DropdownMenuSubContent,
|
|
193
|
+
DropdownMenuSubTrigger,
|
|
194
|
+
DropdownMenuTrigger,
|
|
195
195
|
Input,
|
|
196
196
|
Popover,
|
|
197
197
|
PopoverContent,
|
|
@@ -236,7 +236,7 @@ import {
|
|
|
236
236
|
TooltipProvider,
|
|
237
237
|
TooltipTrigger,
|
|
238
238
|
useSidebar
|
|
239
|
-
} from "../chunk-
|
|
239
|
+
} from "../chunk-YHTRCBKF.js";
|
|
240
240
|
import {
|
|
241
241
|
Button,
|
|
242
242
|
buttonVariants,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pactor-app/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.48.0",
|
|
4
4
|
"description": "Pactor UI kit (shadcn): the single built-in UI kit — vendored shadcn/ui components (Base UI primitives + cva + tailwind-merge + lucide-react), props contracts, interaction core (OverlayManager / UiBridge) and layouts, with build-time Tailwind v4 prebuilt styles.css (zero consumer-side Tailwind config)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pactor",
|
|
@@ -108,11 +108,11 @@
|
|
|
108
108
|
"react-resizable-panels": "^4.12.3",
|
|
109
109
|
"tailwind-merge": "^3.6.0",
|
|
110
110
|
"vaul": "^1.1.2",
|
|
111
|
-
"@pactor-app/core": "1.
|
|
112
|
-
"@pactor-app/
|
|
113
|
-
"@pactor-app/
|
|
114
|
-
"@pactor-app/
|
|
115
|
-
"@pactor-app/markdown": "1.
|
|
111
|
+
"@pactor-app/core": "1.48.0",
|
|
112
|
+
"@pactor-app/permission": "1.48.0",
|
|
113
|
+
"@pactor-app/runtime": "1.48.0",
|
|
114
|
+
"@pactor-app/router": "1.48.0",
|
|
115
|
+
"@pactor-app/markdown": "1.48.0"
|
|
116
116
|
},
|
|
117
117
|
"peerDependencies": {
|
|
118
118
|
"react": ">=18",
|
package/styles.css
CHANGED
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
--font-weight-extrabold: 800;
|
|
43
43
|
--tracking-tight: -0.025em;
|
|
44
44
|
--leading-tight: 1.25;
|
|
45
|
+
--leading-normal: 1.5;
|
|
45
46
|
--leading-relaxed: 1.625;
|
|
46
47
|
--radius-xs: 0.125rem;
|
|
47
48
|
--ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
@@ -483,6 +484,9 @@
|
|
|
483
484
|
.-mr-0\.5 {
|
|
484
485
|
margin-right: calc(var(--spacing) * -0.5);
|
|
485
486
|
}
|
|
487
|
+
.mr-0\.5 {
|
|
488
|
+
margin-right: calc(var(--spacing) * 0.5);
|
|
489
|
+
}
|
|
486
490
|
.mb-1 {
|
|
487
491
|
margin-bottom: var(--spacing);
|
|
488
492
|
}
|
|
@@ -1599,6 +1603,9 @@
|
|
|
1599
1603
|
.p-0 {
|
|
1600
1604
|
padding: 0px;
|
|
1601
1605
|
}
|
|
1606
|
+
.p-0\.5 {
|
|
1607
|
+
padding: calc(var(--spacing) * 0.5);
|
|
1608
|
+
}
|
|
1602
1609
|
.p-1 {
|
|
1603
1610
|
padding: var(--spacing);
|
|
1604
1611
|
}
|
|
@@ -1704,6 +1711,9 @@
|
|
|
1704
1711
|
.pt-4 {
|
|
1705
1712
|
padding-top: calc(var(--spacing) * 4);
|
|
1706
1713
|
}
|
|
1714
|
+
.pr-1\.5 {
|
|
1715
|
+
padding-right: calc(var(--spacing) * 1.5);
|
|
1716
|
+
}
|
|
1707
1717
|
.pr-2 {
|
|
1708
1718
|
padding-right: calc(var(--spacing) * 2);
|
|
1709
1719
|
}
|
|
@@ -1812,6 +1822,10 @@
|
|
|
1812
1822
|
--tw-leading: 1;
|
|
1813
1823
|
line-height: 1;
|
|
1814
1824
|
}
|
|
1825
|
+
.leading-normal {
|
|
1826
|
+
--tw-leading: var(--leading-normal);
|
|
1827
|
+
line-height: var(--leading-normal);
|
|
1828
|
+
}
|
|
1815
1829
|
.leading-relaxed {
|
|
1816
1830
|
--tw-leading: var(--leading-relaxed);
|
|
1817
1831
|
line-height: var(--leading-relaxed);
|
|
@@ -3594,6 +3608,16 @@
|
|
|
3594
3608
|
.\[\&\>\[data-slot\=button\]\:not\(\:first-child\)\]\:-ml-px > [data-slot=button]:not(:first-child) {
|
|
3595
3609
|
margin-left: -1px;
|
|
3596
3610
|
}
|
|
3611
|
+
.\[\&\>\[data-slot\=dropdown-menu-trigger\]\]\:rounded-none > [data-slot=dropdown-menu-trigger] {
|
|
3612
|
+
border-radius: 0;
|
|
3613
|
+
}
|
|
3614
|
+
.\[\&\>\[data-slot\=dropdown-menu-trigger\]\]\:last\:rounded-r-md > [data-slot=dropdown-menu-trigger]:last-child {
|
|
3615
|
+
border-top-right-radius: calc(var(--radius) * 0.8);
|
|
3616
|
+
border-bottom-right-radius: calc(var(--radius) * 0.8);
|
|
3617
|
+
}
|
|
3618
|
+
.\[\&\>\[data-slot\=dropdown-menu-trigger\]\:not\(\:first-child\)\]\:-ml-px > [data-slot=dropdown-menu-trigger]:not(:first-child) {
|
|
3619
|
+
margin-left: -1px;
|
|
3620
|
+
}
|
|
3597
3621
|
.\[\&\>\[data-slot\=text\]\]\:shrink-0 > [data-slot=text] {
|
|
3598
3622
|
flex-shrink: 0;
|
|
3599
3623
|
}
|
|
@@ -4139,6 +4163,17 @@
|
|
|
4139
4163
|
background-position: -200% 0;
|
|
4140
4164
|
}
|
|
4141
4165
|
}
|
|
4166
|
+
.pactor-clearable {
|
|
4167
|
+
display: none;
|
|
4168
|
+
}
|
|
4169
|
+
@media (hover: hover) {
|
|
4170
|
+
.group:hover .pactor-clearable {
|
|
4171
|
+
display: inline-flex;
|
|
4172
|
+
}
|
|
4173
|
+
.group:hover .pactor-clearable-ghost {
|
|
4174
|
+
visibility: hidden;
|
|
4175
|
+
}
|
|
4176
|
+
}
|
|
4142
4177
|
@layer base {
|
|
4143
4178
|
* {
|
|
4144
4179
|
border-color: var(--border);
|