@partrunner-ai/ui 2.0.1 → 2.1.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/index.cjs +169 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +120 -1
- package/dist/index.d.ts +120 -1
- package/dist/index.js +166 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/styles/light.css +433 -0
- package/styles/theme.css +433 -0
- package/styles/ui.css +433 -0
package/dist/index.cjs
CHANGED
|
@@ -5549,6 +5549,170 @@ function Tooltip({
|
|
|
5549
5549
|
) : null
|
|
5550
5550
|
] });
|
|
5551
5551
|
}
|
|
5552
|
+
var PageHeader = react.forwardRef(
|
|
5553
|
+
function PageHeader2({ eyebrow, title, subtitle, actions, className, ...rest }, ref) {
|
|
5554
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5555
|
+
"header",
|
|
5556
|
+
{
|
|
5557
|
+
ref,
|
|
5558
|
+
...rest,
|
|
5559
|
+
className: ["pr-page-header", className].filter(Boolean).join(" "),
|
|
5560
|
+
children: [
|
|
5561
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "pr-page-header__text", children: [
|
|
5562
|
+
eyebrow != null && eyebrow !== false ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pr-page-header__eyebrow", children: eyebrow }) : null,
|
|
5563
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "pr-page-header__title", children: title }),
|
|
5564
|
+
subtitle != null ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "pr-page-header__subtitle", children: subtitle }) : null
|
|
5565
|
+
] }),
|
|
5566
|
+
actions != null ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pr-page-header__actions", children: actions }) : null
|
|
5567
|
+
]
|
|
5568
|
+
}
|
|
5569
|
+
);
|
|
5570
|
+
}
|
|
5571
|
+
);
|
|
5572
|
+
var StatTile = react.forwardRef(
|
|
5573
|
+
function StatTile2({ label, value, hint, icon: Icon, tone = "neutral", trendValue, footer, className, ...rest }, ref) {
|
|
5574
|
+
const showTrend = typeof trendValue === "number" && Number.isFinite(trendValue);
|
|
5575
|
+
const trendUp = showTrend && trendValue >= 0;
|
|
5576
|
+
const TrendIcon = trendUp ? lucideReact.TrendingUp : lucideReact.TrendingDown;
|
|
5577
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5578
|
+
"div",
|
|
5579
|
+
{
|
|
5580
|
+
ref,
|
|
5581
|
+
...rest,
|
|
5582
|
+
className: [
|
|
5583
|
+
"pr-stat-tile",
|
|
5584
|
+
`pr-stat-tile--${tone}`,
|
|
5585
|
+
className
|
|
5586
|
+
].filter(Boolean).join(" "),
|
|
5587
|
+
children: [
|
|
5588
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "pr-stat-tile__body", children: [
|
|
5589
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "pr-stat-tile__main", children: [
|
|
5590
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "pr-stat-tile__label", children: label }),
|
|
5591
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "pr-stat-tile__value", children: value }),
|
|
5592
|
+
hint != null ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "pr-stat-tile__hint", children: hint }) : null
|
|
5593
|
+
] }),
|
|
5594
|
+
Icon ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pr-stat-tile__icon", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { "aria-hidden": true, strokeWidth: 2.25 }) }) : null
|
|
5595
|
+
] }),
|
|
5596
|
+
showTrend || footer != null ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "pr-stat-tile__meta", children: [
|
|
5597
|
+
showTrend ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5598
|
+
"span",
|
|
5599
|
+
{
|
|
5600
|
+
className: [
|
|
5601
|
+
"pr-stat-tile__trend",
|
|
5602
|
+
trendUp ? "pr-stat-tile__trend--up" : "pr-stat-tile__trend--down"
|
|
5603
|
+
].filter(Boolean).join(" "),
|
|
5604
|
+
children: [
|
|
5605
|
+
/* @__PURE__ */ jsxRuntime.jsx(TrendIcon, { "aria-hidden": true, strokeWidth: 2.5 }),
|
|
5606
|
+
trendUp ? "+" : "",
|
|
5607
|
+
trendValue,
|
|
5608
|
+
"%"
|
|
5609
|
+
]
|
|
5610
|
+
}
|
|
5611
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("span", {}),
|
|
5612
|
+
footer != null ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pr-stat-tile__footer", children: footer }) : null
|
|
5613
|
+
] }) : null
|
|
5614
|
+
]
|
|
5615
|
+
}
|
|
5616
|
+
);
|
|
5617
|
+
}
|
|
5618
|
+
);
|
|
5619
|
+
var Toolbar = react.forwardRef(function Toolbar2({ className, ...rest }, ref) {
|
|
5620
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5621
|
+
"div",
|
|
5622
|
+
{
|
|
5623
|
+
ref,
|
|
5624
|
+
...rest,
|
|
5625
|
+
className: ["pr-toolbar", className].filter(Boolean).join(" ")
|
|
5626
|
+
}
|
|
5627
|
+
);
|
|
5628
|
+
});
|
|
5629
|
+
var IconButton = react.forwardRef(
|
|
5630
|
+
function IconButton2({
|
|
5631
|
+
label,
|
|
5632
|
+
icon,
|
|
5633
|
+
size = "md",
|
|
5634
|
+
variant = "default",
|
|
5635
|
+
compact = false,
|
|
5636
|
+
className,
|
|
5637
|
+
title,
|
|
5638
|
+
type = "button",
|
|
5639
|
+
...rest
|
|
5640
|
+
}, ref) {
|
|
5641
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5642
|
+
"button",
|
|
5643
|
+
{
|
|
5644
|
+
ref,
|
|
5645
|
+
...rest,
|
|
5646
|
+
type,
|
|
5647
|
+
"aria-label": label,
|
|
5648
|
+
title: title ?? label,
|
|
5649
|
+
className: [
|
|
5650
|
+
"pr-icon-btn",
|
|
5651
|
+
`pr-icon-btn--${size}`,
|
|
5652
|
+
`pr-icon-btn--${variant}`,
|
|
5653
|
+
compact ? "pr-icon-btn--compact" : null,
|
|
5654
|
+
className
|
|
5655
|
+
].filter(Boolean).join(" "),
|
|
5656
|
+
children: icon
|
|
5657
|
+
}
|
|
5658
|
+
);
|
|
5659
|
+
}
|
|
5660
|
+
);
|
|
5661
|
+
function ConfirmDialog({
|
|
5662
|
+
open,
|
|
5663
|
+
onOpenChange,
|
|
5664
|
+
title,
|
|
5665
|
+
description,
|
|
5666
|
+
confirmLabel = "Confirmar",
|
|
5667
|
+
cancelLabel = "Cancelar",
|
|
5668
|
+
onConfirm,
|
|
5669
|
+
loading = false,
|
|
5670
|
+
destructive = false,
|
|
5671
|
+
icon: Icon,
|
|
5672
|
+
size = "sm"
|
|
5673
|
+
}) {
|
|
5674
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5675
|
+
Dialog,
|
|
5676
|
+
{
|
|
5677
|
+
open,
|
|
5678
|
+
onClose: () => onOpenChange(false),
|
|
5679
|
+
size,
|
|
5680
|
+
title,
|
|
5681
|
+
description,
|
|
5682
|
+
dismissible: !destructive,
|
|
5683
|
+
footer: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "pr-confirm-dialog__actions", children: [
|
|
5684
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5685
|
+
Button,
|
|
5686
|
+
{
|
|
5687
|
+
variant: "ghost",
|
|
5688
|
+
onClick: () => onOpenChange(false),
|
|
5689
|
+
disabled: loading,
|
|
5690
|
+
children: cancelLabel
|
|
5691
|
+
}
|
|
5692
|
+
),
|
|
5693
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5694
|
+
Button,
|
|
5695
|
+
{
|
|
5696
|
+
variant: destructive ? "danger" : "primary",
|
|
5697
|
+
onClick: onConfirm,
|
|
5698
|
+
loading,
|
|
5699
|
+
children: confirmLabel
|
|
5700
|
+
}
|
|
5701
|
+
)
|
|
5702
|
+
] }),
|
|
5703
|
+
children: Icon ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pr-confirm-dialog__icon-row", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5704
|
+
"span",
|
|
5705
|
+
{
|
|
5706
|
+
className: [
|
|
5707
|
+
"pr-confirm-dialog__icon",
|
|
5708
|
+
destructive ? "pr-confirm-dialog__icon--danger" : "pr-confirm-dialog__icon--accent"
|
|
5709
|
+
].filter(Boolean).join(" "),
|
|
5710
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { "aria-hidden": true, strokeWidth: 2.25 })
|
|
5711
|
+
}
|
|
5712
|
+
) }) : null
|
|
5713
|
+
}
|
|
5714
|
+
);
|
|
5715
|
+
}
|
|
5552
5716
|
|
|
5553
5717
|
exports.AlertDialogAction = AlertDialogAction;
|
|
5554
5718
|
exports.AlertDialogCancel = AlertDialogCancel;
|
|
@@ -5572,6 +5736,7 @@ exports.CardTitle = CardTitle;
|
|
|
5572
5736
|
exports.Checkbox = Checkbox;
|
|
5573
5737
|
exports.CheckboxGroup = CheckboxGroup;
|
|
5574
5738
|
exports.Combobox = Combobox;
|
|
5739
|
+
exports.ConfirmDialog = ConfirmDialog;
|
|
5575
5740
|
exports.CopyField = CopyField;
|
|
5576
5741
|
exports.DataTable = DataTable;
|
|
5577
5742
|
exports.DatePicker = DatePicker;
|
|
@@ -5598,11 +5763,13 @@ exports.DropdownMenuTrigger = DropdownMenuTrigger;
|
|
|
5598
5763
|
exports.EmptyState = EmptyState;
|
|
5599
5764
|
exports.FileDropzone = FileDropzone;
|
|
5600
5765
|
exports.FormField = FormField;
|
|
5766
|
+
exports.IconButton = IconButton;
|
|
5601
5767
|
exports.Input = Input;
|
|
5602
5768
|
exports.Label = Label;
|
|
5603
5769
|
exports.MultiSelect = MultiSelect;
|
|
5604
5770
|
exports.NavigationTabs = NavigationTabs;
|
|
5605
5771
|
exports.OtpInput = OtpInput;
|
|
5772
|
+
exports.PageHeader = PageHeader;
|
|
5606
5773
|
exports.Pagination = Pagination;
|
|
5607
5774
|
exports.Popover = Popover;
|
|
5608
5775
|
exports.PopoverContent = PopoverContent;
|
|
@@ -5637,6 +5804,7 @@ exports.SheetTrigger = SheetTrigger;
|
|
|
5637
5804
|
exports.Skeleton = Skeleton;
|
|
5638
5805
|
exports.Slot = Slot;
|
|
5639
5806
|
exports.Spinner = Spinner;
|
|
5807
|
+
exports.StatTile = StatTile;
|
|
5640
5808
|
exports.Stepper = Stepper;
|
|
5641
5809
|
exports.Switch = Switch;
|
|
5642
5810
|
exports.Table = Table2;
|
|
@@ -5652,6 +5820,7 @@ exports.TabsContent = TabsContent;
|
|
|
5652
5820
|
exports.TabsList = TabsList;
|
|
5653
5821
|
exports.TabsTrigger = TabsTrigger;
|
|
5654
5822
|
exports.Textarea = Textarea;
|
|
5823
|
+
exports.Toolbar = Toolbar;
|
|
5655
5824
|
exports.Tooltip = Tooltip;
|
|
5656
5825
|
exports.ValidationSummary = ValidationSummary;
|
|
5657
5826
|
exports.formatCalendarDate = formatCalendarDate;
|