@pactor-app/ui 1.7.0 → 1.9.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-PMYLC26E.js → chunk-KUFQSYTS.js} +82 -38
- package/dist/{chunk-ZM3WJZZ7.js → chunk-PECP7DJB.js} +1 -1
- package/dist/{chunk-7KC6DMKH.js → chunk-S3SMCICK.js} +10 -3
- package/dist/{chunk-FJPRXEKQ.js → chunk-TAJXMOEX.js} +2 -2
- package/dist/{chunk-L4Z7MNYY.js → chunk-VM4FESQB.js} +16 -2
- package/dist/{chunk-E2TD6JD2.js → chunk-VT5XP4U4.js} +29 -10
- package/dist/components/index.cjs +459 -384
- package/dist/components/index.d.cts +21 -7
- package/dist/components/index.d.ts +21 -7
- package/dist/components/index.js +4 -4
- package/dist/index.cjs +481 -399
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/interaction/index.cjs +10 -3
- package/dist/interaction/index.d.cts +3 -1
- package/dist/interaction/index.d.ts +3 -1
- package/dist/interaction/index.js +1 -1
- package/dist/layout/index.cjs +16 -2
- package/dist/layout/index.js +3 -3
- package/dist/{typography-DsGdDBc2.d.cts → typography-BYDh5oku.d.cts} +14 -1
- package/dist/{typography-DsGdDBc2.d.ts → typography-BYDh5oku.d.ts} +14 -1
- package/dist/ui/index.cjs +44 -11
- package/dist/ui/index.d.cts +10 -14
- package/dist/ui/index.d.ts +10 -14
- package/dist/ui/index.js +2 -2
- package/package.json +5 -5
- package/styles.css +57 -27
package/dist/index.d.cts
CHANGED
|
@@ -4,10 +4,10 @@ export { InteractionProvider, InteractionProviderProps, OVERLAY_CANCEL_PAYLOAD,
|
|
|
4
4
|
import '@pactor-app/runtime';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '@pactor-app/core';
|
|
7
|
-
import '
|
|
8
|
-
import './typography-DsGdDBc2.cjs';
|
|
7
|
+
import './typography-BYDh5oku.cjs';
|
|
9
8
|
import 'class-variance-authority/types';
|
|
10
9
|
import '@base-ui/react/toggle';
|
|
11
10
|
import 'class-variance-authority';
|
|
11
|
+
import 'lucide-react';
|
|
12
12
|
import '@pactor-app/permission';
|
|
13
13
|
import '@pactor-app/router';
|
package/dist/index.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ export { InteractionProvider, InteractionProviderProps, OVERLAY_CANCEL_PAYLOAD,
|
|
|
4
4
|
import '@pactor-app/runtime';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '@pactor-app/core';
|
|
7
|
-
import '
|
|
8
|
-
import './typography-DsGdDBc2.js';
|
|
7
|
+
import './typography-BYDh5oku.js';
|
|
9
8
|
import 'class-variance-authority/types';
|
|
10
9
|
import '@base-ui/react/toggle';
|
|
11
10
|
import 'class-variance-authority';
|
|
11
|
+
import 'lucide-react';
|
|
12
12
|
import '@pactor-app/permission';
|
|
13
13
|
import '@pactor-app/router';
|
package/dist/index.js
CHANGED
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
createComponentRegistry,
|
|
72
72
|
registerBuiltinComponents,
|
|
73
73
|
useFormContext
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-KUFQSYTS.js";
|
|
75
75
|
import {
|
|
76
76
|
InteractionProvider,
|
|
77
77
|
OVERLAY_CANCEL_PAYLOAD,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
OverlayManager,
|
|
80
80
|
createUiBridge,
|
|
81
81
|
registerInteractionActions
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-S3SMCICK.js";
|
|
83
83
|
import {
|
|
84
84
|
AdminLayout,
|
|
85
85
|
BlankLayout,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
findMenuChain,
|
|
92
92
|
registerBuiltinLayouts,
|
|
93
93
|
resolveLayout
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-TAJXMOEX.js";
|
|
95
95
|
import {
|
|
96
96
|
ICONS,
|
|
97
97
|
Icon,
|
|
@@ -100,10 +100,10 @@ import {
|
|
|
100
100
|
Sidebar,
|
|
101
101
|
normalizeIconName,
|
|
102
102
|
useSidebarDrawer
|
|
103
|
-
} from "./chunk-
|
|
104
|
-
import "./chunk-
|
|
103
|
+
} from "./chunk-PECP7DJB.js";
|
|
104
|
+
import "./chunk-VT5XP4U4.js";
|
|
105
105
|
import "./chunk-F42SGQNW.js";
|
|
106
|
-
import "./chunk-
|
|
106
|
+
import "./chunk-VM4FESQB.js";
|
|
107
107
|
import "./chunk-WKJUCGV4.js";
|
|
108
108
|
export {
|
|
109
109
|
Accordion,
|
|
@@ -422,6 +422,7 @@ function InteractionProvider({
|
|
|
422
422
|
children
|
|
423
423
|
}) {
|
|
424
424
|
const [confirmState, setConfirmState] = (0, import_react.useState)(null);
|
|
425
|
+
const [confirmOpen, setConfirmOpen] = (0, import_react.useState)(false);
|
|
425
426
|
const [toasts, setToasts] = (0, import_react.useState)([]);
|
|
426
427
|
const { t } = (0, import_runtime2.useI18n)();
|
|
427
428
|
const { modal, message } = (0, import_react.useMemo)(() => {
|
|
@@ -435,6 +436,7 @@ function InteractionProvider({
|
|
|
435
436
|
const modalImpl = {
|
|
436
437
|
confirm(config) {
|
|
437
438
|
setConfirmState({ ...config });
|
|
439
|
+
setConfirmOpen(true);
|
|
438
440
|
}
|
|
439
441
|
};
|
|
440
442
|
const messageImpl = {
|
|
@@ -455,12 +457,12 @@ function InteractionProvider({
|
|
|
455
457
|
}, [bridge, modal, message]);
|
|
456
458
|
const handleOk = () => {
|
|
457
459
|
const state = confirmState;
|
|
458
|
-
|
|
460
|
+
setConfirmOpen(false);
|
|
459
461
|
state?.onOk?.();
|
|
460
462
|
};
|
|
461
463
|
const handleCancel = () => {
|
|
462
464
|
const state = confirmState;
|
|
463
|
-
|
|
465
|
+
setConfirmOpen(false);
|
|
464
466
|
state?.onCancel?.();
|
|
465
467
|
};
|
|
466
468
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
|
|
@@ -470,12 +472,17 @@ function InteractionProvider({
|
|
|
470
472
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
471
473
|
Dialog,
|
|
472
474
|
{
|
|
473
|
-
open:
|
|
475
|
+
open: confirmOpen,
|
|
474
476
|
onOpenChange: (open) => {
|
|
475
477
|
if (!open) {
|
|
476
478
|
handleCancel();
|
|
477
479
|
}
|
|
478
480
|
},
|
|
481
|
+
onOpenChangeComplete: (open) => {
|
|
482
|
+
if (!open) {
|
|
483
|
+
setConfirmState(null);
|
|
484
|
+
}
|
|
485
|
+
},
|
|
479
486
|
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(DialogContent, { "data-slot": "confirm-dialog", className: "sm:max-w-sm", children: [
|
|
480
487
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(DialogHeader, { children: [
|
|
481
488
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(DialogTitle, { children: confirmState?.title ?? "" }),
|
|
@@ -142,7 +142,9 @@ interface InteractionProviderProps {
|
|
|
142
142
|
* InteractionProvider:mount 时向 UiBridge 注入自绘实现:
|
|
143
143
|
*
|
|
144
144
|
* - `modal.confirm({ title, content, onOk, onCancel })`:vendored shadcn
|
|
145
|
-
* Dialog
|
|
145
|
+
* Dialog 渲染确认框,确定/取消时先关闭再回调(与 antd Modal.confirm
|
|
146
|
+
* 时序一致);内容状态与 open 标志分离,待关闭动画结束才清空,
|
|
147
|
+
* 避免退出动画期间渲染空内容导致闪烁;
|
|
146
148
|
* - `message.{success,error,info,warning}`:toast 栈(容器固定右上角,
|
|
147
149
|
* 自动约 3s 消失,类型色条读语义令牌)。
|
|
148
150
|
*
|
|
@@ -142,7 +142,9 @@ interface InteractionProviderProps {
|
|
|
142
142
|
* InteractionProvider:mount 时向 UiBridge 注入自绘实现:
|
|
143
143
|
*
|
|
144
144
|
* - `modal.confirm({ title, content, onOk, onCancel })`:vendored shadcn
|
|
145
|
-
* Dialog
|
|
145
|
+
* Dialog 渲染确认框,确定/取消时先关闭再回调(与 antd Modal.confirm
|
|
146
|
+
* 时序一致);内容状态与 open 标志分离,待关闭动画结束才清空,
|
|
147
|
+
* 避免退出动画期间渲染空内容导致闪烁;
|
|
146
148
|
* - `message.{success,error,info,warning}`:toast 栈(容器固定右上角,
|
|
147
149
|
* 自动约 3s 消失,类型色条读语义令牌)。
|
|
148
150
|
*
|
package/dist/layout/index.cjs
CHANGED
|
@@ -2051,13 +2051,27 @@ function menuItemToMenuData(item) {
|
|
|
2051
2051
|
|
|
2052
2052
|
// src/ui/card.tsx
|
|
2053
2053
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
2054
|
-
|
|
2054
|
+
var cardRoundedClasses = {
|
|
2055
|
+
none: "rounded-none",
|
|
2056
|
+
sm: "rounded-sm",
|
|
2057
|
+
md: "rounded-md",
|
|
2058
|
+
lg: "rounded-lg",
|
|
2059
|
+
xl: "rounded-xl",
|
|
2060
|
+
"2xl": "rounded-2xl",
|
|
2061
|
+
"3xl": "rounded-3xl"
|
|
2062
|
+
};
|
|
2063
|
+
function Card({
|
|
2064
|
+
className,
|
|
2065
|
+
rounded = "lg",
|
|
2066
|
+
...props
|
|
2067
|
+
}) {
|
|
2055
2068
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
2056
2069
|
"div",
|
|
2057
2070
|
{
|
|
2058
2071
|
"data-slot": "card",
|
|
2059
2072
|
className: cn(
|
|
2060
|
-
"flex flex-col gap-6
|
|
2073
|
+
"flex flex-col gap-6 border border-border bg-card py-6 text-card-foreground shadow-(--card-shadow)",
|
|
2074
|
+
cardRoundedClasses[rounded],
|
|
2061
2075
|
className
|
|
2062
2076
|
),
|
|
2063
2077
|
...props
|
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-TAJXMOEX.js";
|
|
13
|
+
import "../chunk-PECP7DJB.js";
|
|
14
|
+
import "../chunk-VM4FESQB.js";
|
|
15
15
|
import "../chunk-WKJUCGV4.js";
|
|
16
16
|
export {
|
|
17
17
|
AdminLayout,
|
|
@@ -3,6 +3,19 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
|
|
|
3
3
|
import { Toggle as Toggle$1 } from '@base-ui/react/toggle';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
|
+
/** shadcn/ui Card(vendored 源码) */
|
|
7
|
+
/** 圆角档位(静态映射:Tailwind 预编译扫描源码,动态拼接类名不进产物) */
|
|
8
|
+
type CardRounded = 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
9
|
+
declare function Card({ className, rounded, ...props }: React.ComponentProps<'div'> & {
|
|
10
|
+
rounded?: CardRounded;
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
declare function CardHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
13
|
+
declare function CardTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
14
|
+
declare function CardDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
15
|
+
declare function CardAction({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
16
|
+
declare function CardContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
17
|
+
declare function CardFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
18
|
+
|
|
6
19
|
/** shadcn/ui Toggle(vendored 源码,Base UI 原语):按下态切换按钮 */
|
|
7
20
|
declare const toggleVariants: (props?: ({
|
|
8
21
|
variant?: "default" | "outline" | null | undefined;
|
|
@@ -21,4 +34,4 @@ interface TypographyProps extends React.HTMLAttributes<HTMLElement>, VariantProp
|
|
|
21
34
|
}
|
|
22
35
|
declare function Typography({ className, variant, ...props }: TypographyProps): React.JSX.Element;
|
|
23
36
|
|
|
24
|
-
export { Toggle as T,
|
|
37
|
+
export { Card as C, Toggle as T, CardAction as a, CardContent as b, CardDescription as c, CardFooter as d, CardHeader as e, CardTitle as f, Typography as g, typographyVariants as h, type CardRounded as i, toggleVariants as t };
|
|
@@ -3,6 +3,19 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
|
|
|
3
3
|
import { Toggle as Toggle$1 } from '@base-ui/react/toggle';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
|
+
/** shadcn/ui Card(vendored 源码) */
|
|
7
|
+
/** 圆角档位(静态映射:Tailwind 预编译扫描源码,动态拼接类名不进产物) */
|
|
8
|
+
type CardRounded = 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
9
|
+
declare function Card({ className, rounded, ...props }: React.ComponentProps<'div'> & {
|
|
10
|
+
rounded?: CardRounded;
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
declare function CardHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
13
|
+
declare function CardTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
14
|
+
declare function CardDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
15
|
+
declare function CardAction({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
16
|
+
declare function CardContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
17
|
+
declare function CardFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
18
|
+
|
|
6
19
|
/** shadcn/ui Toggle(vendored 源码,Base UI 原语):按下态切换按钮 */
|
|
7
20
|
declare const toggleVariants: (props?: ({
|
|
8
21
|
variant?: "default" | "outline" | null | undefined;
|
|
@@ -21,4 +34,4 @@ interface TypographyProps extends React.HTMLAttributes<HTMLElement>, VariantProp
|
|
|
21
34
|
}
|
|
22
35
|
declare function Typography({ className, variant, ...props }: TypographyProps): React.JSX.Element;
|
|
23
36
|
|
|
24
|
-
export { Toggle as T,
|
|
37
|
+
export { Card as C, Toggle as T, CardAction as a, CardContent as b, CardDescription as c, CardFooter as d, CardHeader as e, CardTitle as f, Typography as g, typographyVariants as h, type CardRounded as i, toggleVariants as t };
|
package/dist/ui/index.cjs
CHANGED
|
@@ -2648,13 +2648,27 @@ function TooltipContent({
|
|
|
2648
2648
|
|
|
2649
2649
|
// src/ui/card.tsx
|
|
2650
2650
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2651
|
-
|
|
2651
|
+
var cardRoundedClasses = {
|
|
2652
|
+
none: "rounded-none",
|
|
2653
|
+
sm: "rounded-sm",
|
|
2654
|
+
md: "rounded-md",
|
|
2655
|
+
lg: "rounded-lg",
|
|
2656
|
+
xl: "rounded-xl",
|
|
2657
|
+
"2xl": "rounded-2xl",
|
|
2658
|
+
"3xl": "rounded-3xl"
|
|
2659
|
+
};
|
|
2660
|
+
function Card({
|
|
2661
|
+
className,
|
|
2662
|
+
rounded = "lg",
|
|
2663
|
+
...props
|
|
2664
|
+
}) {
|
|
2652
2665
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2653
2666
|
"div",
|
|
2654
2667
|
{
|
|
2655
2668
|
"data-slot": "card",
|
|
2656
2669
|
className: cn(
|
|
2657
|
-
"flex flex-col gap-6
|
|
2670
|
+
"flex flex-col gap-6 border border-border bg-card py-6 text-card-foreground shadow-(--card-shadow)",
|
|
2671
|
+
cardRoundedClasses[rounded],
|
|
2658
2672
|
className
|
|
2659
2673
|
),
|
|
2660
2674
|
...props
|
|
@@ -4540,6 +4554,7 @@ function TableCaption({
|
|
|
4540
4554
|
|
|
4541
4555
|
// src/ui/tabs.tsx
|
|
4542
4556
|
var import_tabs = require("@base-ui/react/tabs");
|
|
4557
|
+
var import_class_variance_authority9 = require("class-variance-authority");
|
|
4543
4558
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
4544
4559
|
function Tabs({
|
|
4545
4560
|
className,
|
|
@@ -4554,18 +4569,31 @@ function Tabs({
|
|
|
4554
4569
|
}
|
|
4555
4570
|
);
|
|
4556
4571
|
}
|
|
4572
|
+
var tabsListVariants = (0, import_class_variance_authority9.cva)(
|
|
4573
|
+
"group/tabs-list inline-flex w-fit items-center justify-center text-muted-foreground",
|
|
4574
|
+
{
|
|
4575
|
+
variants: {
|
|
4576
|
+
variant: {
|
|
4577
|
+
default: "h-9 rounded-lg bg-muted p-[3px]",
|
|
4578
|
+
line: "h-auto gap-1 rounded-none border-b border-border bg-transparent p-0"
|
|
4579
|
+
}
|
|
4580
|
+
},
|
|
4581
|
+
defaultVariants: {
|
|
4582
|
+
variant: "default"
|
|
4583
|
+
}
|
|
4584
|
+
}
|
|
4585
|
+
);
|
|
4557
4586
|
function TabsList({
|
|
4558
4587
|
className,
|
|
4588
|
+
variant,
|
|
4559
4589
|
...props
|
|
4560
4590
|
}) {
|
|
4561
4591
|
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4562
4592
|
import_tabs.Tabs.List,
|
|
4563
4593
|
{
|
|
4564
4594
|
"data-slot": "tabs-list",
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
className
|
|
4568
|
-
),
|
|
4595
|
+
"data-variant": variant ?? "default",
|
|
4596
|
+
className: cn(tabsListVariants({ variant }), className),
|
|
4569
4597
|
...props
|
|
4570
4598
|
}
|
|
4571
4599
|
);
|
|
@@ -4579,7 +4607,12 @@ function TabsTrigger({
|
|
|
4579
4607
|
{
|
|
4580
4608
|
"data-slot": "tabs-trigger",
|
|
4581
4609
|
className: cn(
|
|
4582
|
-
"inline-flex h-[calc(100%-1px)] flex-1 cursor-pointer items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50
|
|
4610
|
+
"inline-flex h-[calc(100%-1px)] flex-1 cursor-pointer items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
4611
|
+
// default 变体:激活态胶囊(边框 + 卡片底 + 阴影)
|
|
4612
|
+
"group-data-[variant=default]/tabs-list:data-active:border-border group-data-[variant=default]/tabs-list:data-active:bg-card group-data-[variant=default]/tabs-list:data-active:shadow-sm",
|
|
4613
|
+
// line 变体:下划线指示——弱化未激活文字,激活态底部 2px 主色线
|
|
4614
|
+
//(叠在 List 的底边轨道上),无底色/圆角/阴影
|
|
4615
|
+
"group-data-[variant=line]/tabs-list:-mb-px group-data-[variant=line]/tabs-list:h-9 group-data-[variant=line]/tabs-list:rounded-none group-data-[variant=line]/tabs-list:border-x-0 group-data-[variant=line]/tabs-list:border-t-0 group-data-[variant=line]/tabs-list:border-b-2 group-data-[variant=line]/tabs-list:py-1.5 group-data-[variant=line]/tabs-list:text-muted-foreground group-data-[variant=line]/tabs-list:data-active:border-b-primary group-data-[variant=line]/tabs-list:data-active:text-foreground",
|
|
4583
4616
|
className
|
|
4584
4617
|
),
|
|
4585
4618
|
...props
|
|
@@ -4621,9 +4654,9 @@ function Textarea({
|
|
|
4621
4654
|
|
|
4622
4655
|
// src/ui/toggle.tsx
|
|
4623
4656
|
var import_toggle = require("@base-ui/react/toggle");
|
|
4624
|
-
var
|
|
4657
|
+
var import_class_variance_authority10 = require("class-variance-authority");
|
|
4625
4658
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
4626
|
-
var toggleVariants = (0,
|
|
4659
|
+
var toggleVariants = (0, import_class_variance_authority10.cva)(
|
|
4627
4660
|
"inline-flex cursor-pointer items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-colors outline-none hover:bg-muted hover:text-muted-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-pressed:bg-accent data-pressed:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
4628
4661
|
{
|
|
4629
4662
|
variants: {
|
|
@@ -4719,9 +4752,9 @@ function ToggleGroupItem({
|
|
|
4719
4752
|
}
|
|
4720
4753
|
|
|
4721
4754
|
// src/ui/typography.tsx
|
|
4722
|
-
var
|
|
4755
|
+
var import_class_variance_authority11 = require("class-variance-authority");
|
|
4723
4756
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
4724
|
-
var typographyVariants = (0,
|
|
4757
|
+
var typographyVariants = (0, import_class_variance_authority11.cva)("", {
|
|
4725
4758
|
variants: {
|
|
4726
4759
|
variant: {
|
|
4727
4760
|
h1: "scroll-m-20 text-4xl font-extrabold tracking-tight text-balance",
|
package/dist/ui/index.d.cts
CHANGED
|
@@ -19,6 +19,8 @@ import { NavigationMenu as NavigationMenu$1 } from '@base-ui/react/navigation-me
|
|
|
19
19
|
import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
|
|
20
20
|
import * as _base_ui_react from '@base-ui/react';
|
|
21
21
|
import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
|
|
22
|
+
import { t as toggleVariants } from '../typography-BYDh5oku.cjs';
|
|
23
|
+
export { C as Card, a as CardAction, b as CardContent, c as CardDescription, d as CardFooter, e as CardHeader, f as CardTitle, T as Toggle, g as Typography, h as typographyVariants } from '../typography-BYDh5oku.cjs';
|
|
22
24
|
import { Field as Field$1 } from '@base-ui/react/field';
|
|
23
25
|
import { OTPInput } from 'input-otp';
|
|
24
26
|
import { Progress as Progress$1 } from '@base-ui/react/progress';
|
|
@@ -31,8 +33,6 @@ import { Separator as Separator$2 } from '@base-ui/react/separator';
|
|
|
31
33
|
import { Slider as Slider$1 } from '@base-ui/react/slider';
|
|
32
34
|
import { Switch as Switch$1 } from '@base-ui/react/switch';
|
|
33
35
|
import { Tabs as Tabs$1 } from '@base-ui/react/tabs';
|
|
34
|
-
import { t as toggleVariants } from '../typography-DsGdDBc2.cjs';
|
|
35
|
-
export { T as Toggle, a as Typography, b as typographyVariants } from '../typography-DsGdDBc2.cjs';
|
|
36
36
|
import { Toggle } from '@base-ui/react/toggle';
|
|
37
37
|
import { ToggleGroup as ToggleGroup$1 } from '@base-ui/react/toggle-group';
|
|
38
38
|
|
|
@@ -72,7 +72,7 @@ declare function AlertDescription({ className, ...props }: React.ComponentProps<
|
|
|
72
72
|
*/
|
|
73
73
|
declare const buttonVariants: (props?: ({
|
|
74
74
|
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
75
|
-
size?: "default" | "
|
|
75
|
+
size?: "default" | "sm" | "lg" | "icon" | "xs" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
76
76
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
77
77
|
declare function Button({ className, variant, size, asChild, children, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
78
78
|
asChild?: boolean;
|
|
@@ -424,15 +424,6 @@ declare function Tooltip({ ...props }: Tooltip$1.Root.Props): React.JSX.Element;
|
|
|
424
424
|
declare function TooltipTrigger({ ...props }: Tooltip$1.Trigger.Props): React.JSX.Element;
|
|
425
425
|
declare function TooltipContent({ className, side, sideOffset, align, children, ...props }: Tooltip$1.Popup.Props & Pick<Tooltip$1.Positioner.Props, 'align' | 'side' | 'sideOffset'>): React.JSX.Element;
|
|
426
426
|
|
|
427
|
-
/** shadcn/ui Card(vendored 源码) */
|
|
428
|
-
declare function Card({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
429
|
-
declare function CardHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
430
|
-
declare function CardTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
431
|
-
declare function CardDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
432
|
-
declare function CardAction({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
433
|
-
declare function CardContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
434
|
-
declare function CardFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
435
|
-
|
|
436
427
|
/**
|
|
437
428
|
* shadcn/ui Dialog(vendored 源码,Base UI 原语)。
|
|
438
429
|
* 官方源码:https://ui.shadcn.com/r/styles/base-nova/dialog.json
|
|
@@ -667,9 +658,14 @@ declare function TableCaption({ className, ...props }: React.ComponentProps<'cap
|
|
|
667
658
|
* 官方源码:https://ui.shadcn.com/r/styles/base-nova/tabs.json
|
|
668
659
|
* Root/List/Tab/Panel 对应原 Radix Root/List/Trigger/Content;激活态属性
|
|
669
660
|
* 由 `data-[state=active]` 换成官方 `data-active` 自定义变体。
|
|
661
|
+
* List 支持 `variant`(default 胶囊 / line 下划线);激活态装饰按
|
|
662
|
+
* `group-data-[variant=*]/tabs-list` 分别限定,两种变体互不污染。
|
|
670
663
|
*/
|
|
671
664
|
declare function Tabs({ className, ...props }: Tabs$1.Root.Props): React.JSX.Element;
|
|
672
|
-
declare
|
|
665
|
+
declare const tabsListVariants: (props?: ({
|
|
666
|
+
variant?: "line" | "default" | null | undefined;
|
|
667
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
668
|
+
declare function TabsList({ className, variant, ...props }: Tabs$1.List.Props & VariantProps<typeof tabsListVariants>): React.JSX.Element;
|
|
673
669
|
declare function TabsTrigger({ className, ...props }: Tabs$1.Tab.Props): React.JSX.Element;
|
|
674
670
|
declare function TabsContent({ className, ...props }: Tabs$1.Panel.Props): React.JSX.Element;
|
|
675
671
|
|
|
@@ -679,4 +675,4 @@ declare function Textarea({ className, ...props }: React.ComponentProps<'textare
|
|
|
679
675
|
declare function ToggleGroup({ className, variant, size, children, ...props }: ToggleGroup$1.Props & VariantProps<typeof toggleVariants>): React.JSX.Element;
|
|
680
676
|
declare function ToggleGroupItem({ className, children, variant, size, ...props }: Toggle.Props & VariantProps<typeof toggleVariants>): React.JSX.Element;
|
|
681
677
|
|
|
682
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonGroup, CHART_TOKEN_COLORS, Calendar,
|
|
678
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonGroup, CHART_TOKEN_COLORS, Calendar, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, ComboboxTrigger, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyTitle, Field, FieldDescription, FieldError, FieldLabel, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupInput, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemMedia, ItemTitle, Kbd, Label, Menubar, MenubarContent, MenubarItem, MenubarMenu, MenubarSeparator, MenubarTrigger, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Panel, PanelGroup, Popover, PopoverContent, PopoverTrigger, Progress, ProgressIndicator, ProgressTrack, RadioGroup, RadioGroupItem, ResizableHandle, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarContent as SidebarContentArea, SidebarFooter as SidebarFooterArea, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader as SidebarHeaderArea, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarRoot, SidebarSeparator, SidebarTrigger, Skeleton, Slider, SliderControl, SliderIndicator, SliderThumb, SliderTrack, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type ToastOptions, type ToastVariant, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, chartColor, navigationMenuTriggerStyle, toast, toastManager, toggleVariants, useCarousel, useSidebar };
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ import { NavigationMenu as NavigationMenu$1 } from '@base-ui/react/navigation-me
|
|
|
19
19
|
import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
|
|
20
20
|
import * as _base_ui_react from '@base-ui/react';
|
|
21
21
|
import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
|
|
22
|
+
import { t as toggleVariants } from '../typography-BYDh5oku.js';
|
|
23
|
+
export { C as Card, a as CardAction, b as CardContent, c as CardDescription, d as CardFooter, e as CardHeader, f as CardTitle, T as Toggle, g as Typography, h as typographyVariants } from '../typography-BYDh5oku.js';
|
|
22
24
|
import { Field as Field$1 } from '@base-ui/react/field';
|
|
23
25
|
import { OTPInput } from 'input-otp';
|
|
24
26
|
import { Progress as Progress$1 } from '@base-ui/react/progress';
|
|
@@ -31,8 +33,6 @@ import { Separator as Separator$2 } from '@base-ui/react/separator';
|
|
|
31
33
|
import { Slider as Slider$1 } from '@base-ui/react/slider';
|
|
32
34
|
import { Switch as Switch$1 } from '@base-ui/react/switch';
|
|
33
35
|
import { Tabs as Tabs$1 } from '@base-ui/react/tabs';
|
|
34
|
-
import { t as toggleVariants } from '../typography-DsGdDBc2.js';
|
|
35
|
-
export { T as Toggle, a as Typography, b as typographyVariants } from '../typography-DsGdDBc2.js';
|
|
36
36
|
import { Toggle } from '@base-ui/react/toggle';
|
|
37
37
|
import { ToggleGroup as ToggleGroup$1 } from '@base-ui/react/toggle-group';
|
|
38
38
|
|
|
@@ -72,7 +72,7 @@ declare function AlertDescription({ className, ...props }: React.ComponentProps<
|
|
|
72
72
|
*/
|
|
73
73
|
declare const buttonVariants: (props?: ({
|
|
74
74
|
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
75
|
-
size?: "default" | "
|
|
75
|
+
size?: "default" | "sm" | "lg" | "icon" | "xs" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
76
76
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
77
77
|
declare function Button({ className, variant, size, asChild, children, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
78
78
|
asChild?: boolean;
|
|
@@ -424,15 +424,6 @@ declare function Tooltip({ ...props }: Tooltip$1.Root.Props): React.JSX.Element;
|
|
|
424
424
|
declare function TooltipTrigger({ ...props }: Tooltip$1.Trigger.Props): React.JSX.Element;
|
|
425
425
|
declare function TooltipContent({ className, side, sideOffset, align, children, ...props }: Tooltip$1.Popup.Props & Pick<Tooltip$1.Positioner.Props, 'align' | 'side' | 'sideOffset'>): React.JSX.Element;
|
|
426
426
|
|
|
427
|
-
/** shadcn/ui Card(vendored 源码) */
|
|
428
|
-
declare function Card({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
429
|
-
declare function CardHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
430
|
-
declare function CardTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
431
|
-
declare function CardDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
432
|
-
declare function CardAction({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
433
|
-
declare function CardContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
434
|
-
declare function CardFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
435
|
-
|
|
436
427
|
/**
|
|
437
428
|
* shadcn/ui Dialog(vendored 源码,Base UI 原语)。
|
|
438
429
|
* 官方源码:https://ui.shadcn.com/r/styles/base-nova/dialog.json
|
|
@@ -667,9 +658,14 @@ declare function TableCaption({ className, ...props }: React.ComponentProps<'cap
|
|
|
667
658
|
* 官方源码:https://ui.shadcn.com/r/styles/base-nova/tabs.json
|
|
668
659
|
* Root/List/Tab/Panel 对应原 Radix Root/List/Trigger/Content;激活态属性
|
|
669
660
|
* 由 `data-[state=active]` 换成官方 `data-active` 自定义变体。
|
|
661
|
+
* List 支持 `variant`(default 胶囊 / line 下划线);激活态装饰按
|
|
662
|
+
* `group-data-[variant=*]/tabs-list` 分别限定,两种变体互不污染。
|
|
670
663
|
*/
|
|
671
664
|
declare function Tabs({ className, ...props }: Tabs$1.Root.Props): React.JSX.Element;
|
|
672
|
-
declare
|
|
665
|
+
declare const tabsListVariants: (props?: ({
|
|
666
|
+
variant?: "line" | "default" | null | undefined;
|
|
667
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
668
|
+
declare function TabsList({ className, variant, ...props }: Tabs$1.List.Props & VariantProps<typeof tabsListVariants>): React.JSX.Element;
|
|
673
669
|
declare function TabsTrigger({ className, ...props }: Tabs$1.Tab.Props): React.JSX.Element;
|
|
674
670
|
declare function TabsContent({ className, ...props }: Tabs$1.Panel.Props): React.JSX.Element;
|
|
675
671
|
|
|
@@ -679,4 +675,4 @@ declare function Textarea({ className, ...props }: React.ComponentProps<'textare
|
|
|
679
675
|
declare function ToggleGroup({ className, variant, size, children, ...props }: ToggleGroup$1.Props & VariantProps<typeof toggleVariants>): React.JSX.Element;
|
|
680
676
|
declare function ToggleGroupItem({ className, children, variant, size, ...props }: Toggle.Props & VariantProps<typeof toggleVariants>): React.JSX.Element;
|
|
681
677
|
|
|
682
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonGroup, CHART_TOKEN_COLORS, Calendar,
|
|
678
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonGroup, CHART_TOKEN_COLORS, Calendar, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, ComboboxTrigger, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyTitle, Field, FieldDescription, FieldError, FieldLabel, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupInput, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemMedia, ItemTitle, Kbd, Label, Menubar, MenubarContent, MenubarItem, MenubarMenu, MenubarSeparator, MenubarTrigger, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Panel, PanelGroup, Popover, PopoverContent, PopoverTrigger, Progress, ProgressIndicator, ProgressTrack, RadioGroup, RadioGroupItem, ResizableHandle, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarContent as SidebarContentArea, SidebarFooter as SidebarFooterArea, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader as SidebarHeaderArea, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarRoot, SidebarSeparator, SidebarTrigger, Skeleton, Slider, SliderControl, SliderIndicator, SliderThumb, SliderTrack, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type ToastOptions, type ToastVariant, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, chartColor, navigationMenuTriggerStyle, toast, toastManager, toggleVariants, useCarousel, useSidebar };
|
package/dist/ui/index.js
CHANGED
|
@@ -160,7 +160,7 @@ import {
|
|
|
160
160
|
toggleVariants,
|
|
161
161
|
typographyVariants,
|
|
162
162
|
useCarousel
|
|
163
|
-
} from "../chunk-
|
|
163
|
+
} from "../chunk-VT5XP4U4.js";
|
|
164
164
|
import {
|
|
165
165
|
Dialog,
|
|
166
166
|
DialogClose,
|
|
@@ -239,7 +239,7 @@ import {
|
|
|
239
239
|
TooltipProvider,
|
|
240
240
|
TooltipTrigger,
|
|
241
241
|
useSidebar
|
|
242
|
-
} from "../chunk-
|
|
242
|
+
} from "../chunk-VM4FESQB.js";
|
|
243
243
|
import {
|
|
244
244
|
Button,
|
|
245
245
|
buttonVariants,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pactor-app/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.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",
|
|
@@ -105,10 +105,10 @@
|
|
|
105
105
|
"recharts": "^3.10.1",
|
|
106
106
|
"tailwind-merge": "^3.6.0",
|
|
107
107
|
"vaul": "^1.1.2",
|
|
108
|
-
"@pactor-app/core": "1.
|
|
109
|
-
"@pactor-app/permission": "1.
|
|
110
|
-
"@pactor-app/
|
|
111
|
-
"@pactor-app/
|
|
108
|
+
"@pactor-app/core": "1.9.0",
|
|
109
|
+
"@pactor-app/permission": "1.9.0",
|
|
110
|
+
"@pactor-app/router": "1.9.0",
|
|
111
|
+
"@pactor-app/runtime": "1.9.0"
|
|
112
112
|
},
|
|
113
113
|
"peerDependencies": {
|
|
114
114
|
"react": ">=18",
|