@aspprev/versi-ds 0.4.4 → 0.4.6
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-EA5F5GSP.js → chunk-5LJGBVPA.js} +45 -37
- package/dist/chunk-5LJGBVPA.js.map +1 -0
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/index.js +1 -1
- package/dist/manifest.json +2 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-EA5F5GSP.js.map +0 -1
|
@@ -1515,46 +1515,54 @@ function PageHeading({
|
|
|
1515
1515
|
}) {
|
|
1516
1516
|
const backHref = getBackHref(back?.href);
|
|
1517
1517
|
const titleAttribute = getTitleAttribute(title);
|
|
1518
|
-
const backClassName = "
|
|
1518
|
+
const backClassName = "inline-flex w-fit items-center gap-1 text-sm font-semibold hover:underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus-ring";
|
|
1519
1519
|
return /* @__PURE__ */ jsxs13(
|
|
1520
1520
|
"header",
|
|
1521
1521
|
{
|
|
1522
1522
|
className: classNames9(
|
|
1523
|
-
"flex flex-col gap-3 tablet:flex-row tablet:items-start tablet:justify-between",
|
|
1523
|
+
"flex w-full min-w-0 flex-col gap-3 tablet:flex-row tablet:items-start tablet:justify-between",
|
|
1524
1524
|
{ "mb-sm": spacing === "default" },
|
|
1525
1525
|
className
|
|
1526
1526
|
),
|
|
1527
1527
|
children: [
|
|
1528
|
-
/* @__PURE__ */ jsxs13(
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
className:
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1528
|
+
/* @__PURE__ */ jsxs13(
|
|
1529
|
+
"div",
|
|
1530
|
+
{
|
|
1531
|
+
className: classNames9("w-full min-w-0 tablet:flex-1", contentClassName),
|
|
1532
|
+
children: [
|
|
1533
|
+
/* @__PURE__ */ jsxs13("div", { className: "flex w-full min-w-0 items-center gap-4", children: [
|
|
1534
|
+
back && backHref ? /* @__PURE__ */ jsx23("a", { className: backClassName, href: backHref, children: /* @__PURE__ */ jsx23(BackContent, { label: back.label }) }) : back ? /* @__PURE__ */ jsx23(
|
|
1535
|
+
"button",
|
|
1536
|
+
{
|
|
1537
|
+
type: "button",
|
|
1538
|
+
className: backClassName,
|
|
1539
|
+
onClick: back.onClick,
|
|
1540
|
+
children: /* @__PURE__ */ jsx23(BackContent, { label: back.label })
|
|
1541
|
+
}
|
|
1542
|
+
) : null,
|
|
1543
|
+
/* @__PURE__ */ jsx23(
|
|
1544
|
+
typography_default,
|
|
1545
|
+
{
|
|
1546
|
+
element: "h1",
|
|
1547
|
+
semanticRole: "page-title",
|
|
1548
|
+
title: titleAttribute,
|
|
1549
|
+
className: "block w-full min-w-0 overflow-hidden text-ellipsis tablet:truncate tablet:whitespace-nowrap",
|
|
1550
|
+
children: title
|
|
1551
|
+
}
|
|
1552
|
+
)
|
|
1553
|
+
] }),
|
|
1554
|
+
subtitle !== void 0 && subtitle !== null && /* @__PURE__ */ jsx23(
|
|
1555
|
+
typography_default,
|
|
1556
|
+
{
|
|
1557
|
+
element: "p",
|
|
1558
|
+
semanticRole: "section-title",
|
|
1559
|
+
className: "mt-2 font-normal",
|
|
1560
|
+
children: subtitle
|
|
1561
|
+
}
|
|
1562
|
+
)
|
|
1563
|
+
]
|
|
1564
|
+
}
|
|
1565
|
+
),
|
|
1558
1566
|
actions && /* @__PURE__ */ jsx23("div", { className: "flex w-full flex-wrap items-center gap-2 tablet:w-auto tablet:shrink-0 tablet:justify-end", children: actions })
|
|
1559
1567
|
]
|
|
1560
1568
|
}
|
|
@@ -1574,14 +1582,14 @@ function PageTabsHeader({
|
|
|
1574
1582
|
return /* @__PURE__ */ jsxs14(
|
|
1575
1583
|
"div",
|
|
1576
1584
|
{
|
|
1577
|
-
className: `flex flex-col gap-4 tablet:flex-row tablet:items-end tablet:justify-between ${className}`,
|
|
1585
|
+
className: `flex w-full min-w-0 flex-col gap-4 tablet:flex-row tablet:items-end tablet:justify-between ${className}`,
|
|
1578
1586
|
children: [
|
|
1579
|
-
/* @__PURE__ */ jsx24("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ jsx24(PageHeading, { title, spacing: "none" }) }),
|
|
1587
|
+
/* @__PURE__ */ jsx24("div", { className: "w-full min-w-0 tablet:flex-1", children: /* @__PURE__ */ jsx24(PageHeading, { title, spacing: "none" }) }),
|
|
1580
1588
|
tabs.length > 1 && /* @__PURE__ */ jsx24(
|
|
1581
1589
|
"nav",
|
|
1582
1590
|
{
|
|
1583
1591
|
"aria-label": title,
|
|
1584
|
-
className: "flex w-full max-w-full flex-row flex-nowrap items-end gap-3 overflow-x-auto tablet:w-fit tablet:shrink-0 tablet:justify-end tablet:overflow-visible",
|
|
1592
|
+
className: "flex w-full min-w-0 max-w-full flex-row flex-nowrap items-end gap-3 overflow-x-auto tablet:w-fit tablet:shrink-0 tablet:justify-end tablet:overflow-visible",
|
|
1585
1593
|
children: /* @__PURE__ */ jsx24("div", { role: "tablist", className: "flex flex-nowrap items-end gap-3", children: tabs.map((tab) => {
|
|
1586
1594
|
const Icon = tab.icon;
|
|
1587
1595
|
const isActive = activeTab === tab.id;
|
|
@@ -1598,7 +1606,7 @@ function PageTabsHeader({
|
|
|
1598
1606
|
children: [
|
|
1599
1607
|
Icon && /* @__PURE__ */ jsx24(Icon, { "aria-hidden": "true", className: "h-4 w-4 shrink-0" }),
|
|
1600
1608
|
/* @__PURE__ */ jsx24("span", { children: tab.label }),
|
|
1601
|
-
tab.notification !== void 0 && tab.notification !== null && /* @__PURE__ */ jsx24("span", { className: "inline-flex min-h-4 min-w-4 items-center justify-center rounded-full bg-feedback-danger-strong px-1 text-2xs font-bold text-
|
|
1609
|
+
tab.notification !== void 0 && tab.notification !== null && /* @__PURE__ */ jsx24("span", { className: "inline-flex min-h-4 min-w-4 items-center justify-center rounded-full bg-feedback-danger-strong px-1 text-2xs font-bold text-action-tertiary-content", children: tab.notification })
|
|
1602
1610
|
]
|
|
1603
1611
|
},
|
|
1604
1612
|
tab.id
|
|
@@ -3269,4 +3277,4 @@ export {
|
|
|
3269
3277
|
resolveContainerBreakpoint,
|
|
3270
3278
|
useContainerBreakpoint
|
|
3271
3279
|
};
|
|
3272
|
-
//# sourceMappingURL=chunk-
|
|
3280
|
+
//# sourceMappingURL=chunk-5LJGBVPA.js.map
|