@pactor-app/ui 1.48.0 → 1.48.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.
@@ -134,7 +134,7 @@ import {
134
134
  Typography,
135
135
  navigationMenuTriggerStyle,
136
136
  toast
137
- } from "./chunk-5FQ5SDIZ.js";
137
+ } from "./chunk-QDN2ZVA7.js";
138
138
  import {
139
139
  Dialog,
140
140
  DialogContent,
@@ -415,7 +415,7 @@ function ButtonGroup({ className, ...props }) {
415
415
  role: "group",
416
416
  "data-slot": "button-group",
417
417
  className: cn(
418
- "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",
418
+ "flex w-fit items-stretch [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 [&>[data-slot=button]]:rounded-none [&>[data-slot=button]]:first-of-type:rounded-l-md [&>[data-slot=button]]:last-of-type: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-of-type:rounded-r-md",
419
419
  className
420
420
  ),
421
421
  ...props
@@ -1362,7 +1362,7 @@ function ButtonGroup({ className, ...props }) {
1362
1362
  role: "group",
1363
1363
  "data-slot": "button-group",
1364
1364
  className: cn(
1365
- "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",
1365
+ "flex w-fit items-stretch [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 [&>[data-slot=button]]:rounded-none [&>[data-slot=button]]:first-of-type:rounded-l-md [&>[data-slot=button]]:last-of-type: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-of-type:rounded-r-md",
1366
1366
  className
1367
1367
  ),
1368
1368
  ...props
@@ -125,7 +125,7 @@ import {
125
125
  registerBuiltinComponents,
126
126
  useFormContext,
127
127
  useOptionalRenderer
128
- } from "../chunk-PF2FHU2X.js";
128
+ } from "../chunk-HSDBMM2Z.js";
129
129
  import {
130
130
  DropdownMenu,
131
131
  ICONS,
@@ -137,7 +137,7 @@ import {
137
137
  normalizeIconName,
138
138
  useSidebarDrawer
139
139
  } from "../chunk-B2Y6JC36.js";
140
- import "../chunk-5FQ5SDIZ.js";
140
+ import "../chunk-QDN2ZVA7.js";
141
141
  import "../chunk-YVHPJHW3.js";
142
142
  import "../chunk-YHTRCBKF.js";
143
143
  import "../chunk-WKJUCGV4.js";
package/dist/index.cjs CHANGED
@@ -1378,7 +1378,7 @@ function ButtonGroup({ className, ...props }) {
1378
1378
  role: "group",
1379
1379
  "data-slot": "button-group",
1380
1380
  className: cn(
1381
- "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",
1381
+ "flex w-fit items-stretch [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 [&>[data-slot=button]]:rounded-none [&>[data-slot=button]]:first-of-type:rounded-l-md [&>[data-slot=button]]:last-of-type: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-of-type:rounded-r-md",
1382
1382
  className
1383
1383
  ),
1384
1384
  ...props
package/dist/index.js CHANGED
@@ -125,7 +125,7 @@ import {
125
125
  registerBuiltinComponents,
126
126
  useFormContext,
127
127
  useOptionalRenderer
128
- } from "./chunk-PF2FHU2X.js";
128
+ } from "./chunk-HSDBMM2Z.js";
129
129
  import {
130
130
  InteractionProvider,
131
131
  OVERLAY_CANCEL_PAYLOAD,
@@ -157,7 +157,7 @@ import {
157
157
  normalizeIconName,
158
158
  useSidebarDrawer
159
159
  } from "./chunk-B2Y6JC36.js";
160
- import "./chunk-5FQ5SDIZ.js";
160
+ import "./chunk-QDN2ZVA7.js";
161
161
  import "./chunk-YVHPJHW3.js";
162
162
  import "./chunk-YHTRCBKF.js";
163
163
  import "./chunk-WKJUCGV4.js";
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 [&>[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",
1147
+ "flex w-fit items-stretch [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 [&>[data-slot=button]]:rounded-none [&>[data-slot=button]]:first-of-type:rounded-l-md [&>[data-slot=button]]:last-of-type: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-of-type:rounded-r-md",
1148
1148
  className
1149
1149
  ),
1150
1150
  ...props
@@ -187,6 +187,9 @@ declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProp
187
187
  * 相连按钮组——内部按钮去圆角,首尾保留外侧圆角,相邻边框重叠。
188
188
  * 下拉触发钮(data-slot=dropdown-menu-trigger,如 SplitButton 的 chevron
189
189
  * 触发)同为直接子元素,按相同规则并入相连表面。
190
+ * 首尾判定用 :first-of-type / :last-of-type(非 :first-child / :last-child):
191
+ * 下拉展开时 Base UI 会在组内注入 position:fixed 的 focus-guard span,
192
+ * 若按 child 序判定,触发钮失去「末位」状态,右端圆角会被误清为直角。
190
193
  */
191
194
  declare function ButtonGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
192
195
 
@@ -187,6 +187,9 @@ declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProp
187
187
  * 相连按钮组——内部按钮去圆角,首尾保留外侧圆角,相邻边框重叠。
188
188
  * 下拉触发钮(data-slot=dropdown-menu-trigger,如 SplitButton 的 chevron
189
189
  * 触发)同为直接子元素,按相同规则并入相连表面。
190
+ * 首尾判定用 :first-of-type / :last-of-type(非 :first-child / :last-child):
191
+ * 下拉展开时 Base UI 会在组内注入 position:fixed 的 focus-guard span,
192
+ * 若按 child 序判定,触发钮失去「末位」状态,右端圆角会被误清为直角。
190
193
  */
191
194
  declare function ButtonGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
192
195
 
package/dist/ui/index.js CHANGED
@@ -149,7 +149,7 @@ import {
149
149
  toggleVariants,
150
150
  typographyVariants,
151
151
  useCarousel
152
- } from "../chunk-5FQ5SDIZ.js";
152
+ } from "../chunk-QDN2ZVA7.js";
153
153
  import {
154
154
  Dialog,
155
155
  DialogClose,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pactor-app/ui",
3
- "version": "1.48.0",
3
+ "version": "1.48.1",
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.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"
111
+ "@pactor-app/core": "1.48.1",
112
+ "@pactor-app/permission": "1.48.1",
113
+ "@pactor-app/markdown": "1.48.1",
114
+ "@pactor-app/router": "1.48.1",
115
+ "@pactor-app/runtime": "1.48.1"
116
116
  },
117
117
  "peerDependencies": {
118
118
  "react": ">=18",
package/styles.css CHANGED
@@ -3605,13 +3605,21 @@
3605
3605
  border-top-right-radius: calc(var(--radius) * 0.8);
3606
3606
  border-bottom-right-radius: calc(var(--radius) * 0.8);
3607
3607
  }
3608
+ .\[\&\>\[data-slot\=button\]\]\:first-of-type\:rounded-l-md > [data-slot=button]:first-of-type {
3609
+ border-top-left-radius: calc(var(--radius) * 0.8);
3610
+ border-bottom-left-radius: calc(var(--radius) * 0.8);
3611
+ }
3612
+ .\[\&\>\[data-slot\=button\]\]\:last-of-type\:rounded-r-md > [data-slot=button]:last-of-type {
3613
+ border-top-right-radius: calc(var(--radius) * 0.8);
3614
+ border-bottom-right-radius: calc(var(--radius) * 0.8);
3615
+ }
3608
3616
  .\[\&\>\[data-slot\=button\]\:not\(\:first-child\)\]\:-ml-px > [data-slot=button]:not(:first-child) {
3609
3617
  margin-left: -1px;
3610
3618
  }
3611
3619
  .\[\&\>\[data-slot\=dropdown-menu-trigger\]\]\:rounded-none > [data-slot=dropdown-menu-trigger] {
3612
3620
  border-radius: 0;
3613
3621
  }
3614
- .\[\&\>\[data-slot\=dropdown-menu-trigger\]\]\:last\:rounded-r-md > [data-slot=dropdown-menu-trigger]:last-child {
3622
+ .\[\&\>\[data-slot\=dropdown-menu-trigger\]\]\:last-of-type\:rounded-r-md > [data-slot=dropdown-menu-trigger]:last-of-type {
3615
3623
  border-top-right-radius: calc(var(--radius) * 0.8);
3616
3624
  border-bottom-right-radius: calc(var(--radius) * 0.8);
3617
3625
  }