@dynamic-labs-sdk/droplet 1.46.1 → 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/README.md +1 -0
- package/dist/components/copy-button/copy-button.d.ts.map +1 -1
- package/dist/components/tab-navigation/index.d.ts +3 -0
- package/dist/components/tab-navigation/index.d.ts.map +1 -0
- package/dist/components/tab-navigation/tab-navigation.d.ts +74 -0
- package/dist/components/tab-navigation/tab-navigation.d.ts.map +1 -0
- package/dist/components/tab-navigation/tab-navigation.stories.d.ts +13 -0
- package/dist/components/tab-navigation/tab-navigation.stories.d.ts.map +1 -0
- package/dist/components/ui/button/button.stories.d.ts.map +1 -1
- package/dist/components/ui/check-icon/check-icon.d.ts +1 -1
- package/dist/components/ui/check-icon/check-icon.d.ts.map +1 -1
- package/dist/components/ui/check-icon/check-icon.stories.d.ts +1 -1
- package/dist/components/ui/check-icon/check-icon.stories.d.ts.map +1 -1
- package/dist/components/ui/pagination/pagination.d.ts +2 -2
- package/dist/components/ui/pagination/pagination.d.ts.map +1 -1
- package/dist/components/ui/table/table.d.ts +8 -1
- package/dist/components/ui/table/table.d.ts.map +1 -1
- package/dist/components/ui/table/table.stories.d.ts +7 -1
- package/dist/components/ui/table/table.stories.d.ts.map +1 -1
- package/dist/components/ui/tabs/tabs.d.ts +1 -1
- package/dist/components/ui/tabs/tabs.d.ts.map +1 -1
- package/dist/components/ui/well/well-reveal.stories.d.ts.map +1 -1
- package/dist/components/ui/well/well.d.ts.map +1 -1
- package/dist/components/ui/well/well.stories.d.ts +1 -0
- package/dist/components/ui/well/well.stories.d.ts.map +1 -1
- package/dist/index.cjs +332 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +332 -50
- package/dist/index.esm.js.map +1 -1
- package/dist/migration.cjs +1 -1
- package/dist/migration.esm.js +1 -1
- package/dist/{toggle-row-D6zreMMF.cjs → toggle-row-BBTk7_bT.cjs} +3 -3
- package/dist/toggle-row-BBTk7_bT.cjs.map +1 -0
- package/dist/{toggle-row-BZvM5UmY.esm.js → toggle-row-PqelNVXI.esm.js} +3 -3
- package/dist/toggle-row-PqelNVXI.esm.js.map +1 -0
- package/package.json +1 -1
- package/dist/toggle-row-BZvM5UmY.esm.js.map +0 -1
- package/dist/toggle-row-D6zreMMF.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -25,7 +25,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
|
|
27
27
|
//#endregion
|
|
28
|
-
const require_toggle_row = require('./toggle-row-
|
|
28
|
+
const require_toggle_row = require('./toggle-row-BBTk7_bT.cjs');
|
|
29
29
|
let react = require("react");
|
|
30
30
|
let motion_react = require("motion/react");
|
|
31
31
|
let _hugeicons_react = require("@hugeicons/react");
|
|
@@ -841,7 +841,7 @@ const CheckIcon = ({ size = 14, strokeWidth = 3, className, ...props }) => /* @_
|
|
|
841
841
|
stroke: "currentColor",
|
|
842
842
|
strokeLinecap: "round",
|
|
843
843
|
strokeLinejoin: "round",
|
|
844
|
-
style: {
|
|
844
|
+
style: size === null ? void 0 : {
|
|
845
845
|
height: size,
|
|
846
846
|
width: size
|
|
847
847
|
},
|
|
@@ -1250,7 +1250,7 @@ DropdownMenuSubContent.displayName = _radix_ui_react_dropdown_menu.SubContent.di
|
|
|
1250
1250
|
|
|
1251
1251
|
//#endregion
|
|
1252
1252
|
//#region src/components/ui/well/well.tsx
|
|
1253
|
-
const wellVariants = (0, class_variance_authority.cva)("rounded-xl", {
|
|
1253
|
+
const wellVariants = (0, class_variance_authority.cva)("rounded-xl flex flex-col", {
|
|
1254
1254
|
defaultVariants: {
|
|
1255
1255
|
gap: "sm",
|
|
1256
1256
|
spacing: "default",
|
|
@@ -1258,10 +1258,10 @@ const wellVariants = (0, class_variance_authority.cva)("rounded-xl", {
|
|
|
1258
1258
|
},
|
|
1259
1259
|
variants: {
|
|
1260
1260
|
gap: {
|
|
1261
|
-
default: "
|
|
1262
|
-
lg: "
|
|
1261
|
+
default: "gap-4",
|
|
1262
|
+
lg: "gap-5",
|
|
1263
1263
|
none: "",
|
|
1264
|
-
sm: "
|
|
1264
|
+
sm: "gap-[var(--well-row-gap,12px)]"
|
|
1265
1265
|
},
|
|
1266
1266
|
spacing: {
|
|
1267
1267
|
default: "p-4",
|
|
@@ -1287,6 +1287,7 @@ const Well = ({ className, gap, spacing, variant, ...props }) => /* @__PURE__ */
|
|
|
1287
1287
|
...props
|
|
1288
1288
|
});
|
|
1289
1289
|
const WellReveal = ({ children, className, open }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1290
|
+
"data-slot": "well-reveal",
|
|
1290
1291
|
className: "grid transition-[grid-template-rows] duration-[220ms] ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none",
|
|
1291
1292
|
style: { gridTemplateRows: open ? "1fr" : "0fr" },
|
|
1292
1293
|
"aria-hidden": !open,
|
|
@@ -1294,7 +1295,7 @@ const WellReveal = ({ children, className, open }) => /* @__PURE__ */ (0, react_
|
|
|
1294
1295
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1295
1296
|
className: "overflow-hidden",
|
|
1296
1297
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1297
|
-
className: require_toggle_row.cn("px-0.5 pb-0.5 [&>[data-slot=well]:not([data-spacing=none])]:p-[22px]", className),
|
|
1298
|
+
className: require_toggle_row.cn("px-0.5 pb-0.5 [&>[data-slot=well]:not([data-spacing=none])]:p-[22px]", "[[data-slot=card]>[data-slot=well-reveal]>div>&>[data-slot=well]]:rounded-2xl", className),
|
|
1298
1299
|
children
|
|
1299
1300
|
})
|
|
1300
1301
|
})
|
|
@@ -1610,6 +1611,8 @@ const RadioField = ({ value, label, description, disabled, id: idProp, className
|
|
|
1610
1611
|
|
|
1611
1612
|
//#endregion
|
|
1612
1613
|
//#region src/components/ui/pagination/pagination.tsx
|
|
1614
|
+
/** The 4px pagination gap permits 2px per link; retain the full vertical hit area. */
|
|
1615
|
+
const PAGINATION_HIT_AREA = "before:-inset-x-0.5";
|
|
1613
1616
|
/**
|
|
1614
1617
|
* Root nav wrapper for a pagination control set.
|
|
1615
1618
|
* Renders a semantic `<nav>` with the ARIA `navigation` landmark.
|
|
@@ -1650,14 +1653,14 @@ const PaginationLink = ({ className, isActive = false, children, ...props }) =>
|
|
|
1650
1653
|
className: require_toggle_row.cn(require_toggle_row.buttonVariants({
|
|
1651
1654
|
size: "icon-sm",
|
|
1652
1655
|
variant: isActive ? "outline" : "ghost"
|
|
1653
|
-
}), className),
|
|
1656
|
+
}), PAGINATION_HIT_AREA, className),
|
|
1654
1657
|
...props,
|
|
1655
1658
|
children
|
|
1656
1659
|
});
|
|
1657
1660
|
/**
|
|
1658
1661
|
* Previous-page control.
|
|
1659
1662
|
* Disabled when the consumer passes `aria-disabled="true"` or the native `disabled` attribute.
|
|
1660
|
-
*
|
|
1663
|
+
* Keeps a 44px-tall target while fitting the horizontal expansion between adjacent links.
|
|
1661
1664
|
*/
|
|
1662
1665
|
const PaginationPrevious = ({ className, children, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("a", {
|
|
1663
1666
|
"data-slot": "pagination-previous",
|
|
@@ -1665,7 +1668,7 @@ const PaginationPrevious = ({ className, children, ...props }) => /* @__PURE__ *
|
|
|
1665
1668
|
className: require_toggle_row.cn(require_toggle_row.buttonVariants({
|
|
1666
1669
|
size: "icon-sm",
|
|
1667
1670
|
variant: "ghost"
|
|
1668
|
-
}), "gap-1 pl-2.5", className),
|
|
1671
|
+
}), PAGINATION_HIT_AREA, "gap-1 pl-2.5", className),
|
|
1669
1672
|
...props,
|
|
1670
1673
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_hugeicons_react.HugeiconsIcon, {
|
|
1671
1674
|
icon: _hugeicons_core_free_icons.ArrowLeft01Icon,
|
|
@@ -1678,7 +1681,7 @@ const PaginationPrevious = ({ className, children, ...props }) => /* @__PURE__ *
|
|
|
1678
1681
|
});
|
|
1679
1682
|
/**
|
|
1680
1683
|
* Next-page control.
|
|
1681
|
-
*
|
|
1684
|
+
* Keeps a 44px-tall target while fitting the horizontal expansion between adjacent links.
|
|
1682
1685
|
*/
|
|
1683
1686
|
const PaginationNext = ({ className, children, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("a", {
|
|
1684
1687
|
"data-slot": "pagination-next",
|
|
@@ -1686,7 +1689,7 @@ const PaginationNext = ({ className, children, ...props }) => /* @__PURE__ */ (0
|
|
|
1686
1689
|
className: require_toggle_row.cn(require_toggle_row.buttonVariants({
|
|
1687
1690
|
size: "icon-sm",
|
|
1688
1691
|
variant: "ghost"
|
|
1689
|
-
}), "gap-1 pr-2.5", className),
|
|
1692
|
+
}), PAGINATION_HIT_AREA, "gap-1 pr-2.5", className),
|
|
1690
1693
|
...props,
|
|
1691
1694
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_hugeicons_react.HugeiconsIcon, {
|
|
1692
1695
|
icon: _hugeicons_core_free_icons.ArrowRight01Icon,
|
|
@@ -2197,64 +2200,260 @@ const Stepper = ({ steps, currentStep, className, ...props }) => /* @__PURE__ */
|
|
|
2197
2200
|
|
|
2198
2201
|
//#endregion
|
|
2199
2202
|
//#region src/components/ui/table/table.tsx
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
+
/** Keep overlay tracks clear of the shelf's rounded corners. */
|
|
2204
|
+
const SCROLLBAR_INSET = 8;
|
|
2205
|
+
/** A wider drag target lets the visible thumb stay visually quiet. */
|
|
2206
|
+
const SCROLLBAR_HIT_AREA = 12;
|
|
2207
|
+
/** Collect a row group's leading cells, skipping rows covered by an earlier rowSpan. */
|
|
2208
|
+
const collectSectionPinnedCells = ({ pinnedCells, section }) => {
|
|
2209
|
+
let occupiedRows = 0;
|
|
2210
|
+
for (const row of Array.from(section.rows)) {
|
|
2211
|
+
if (occupiedRows > 0) {
|
|
2212
|
+
occupiedRows -= 1;
|
|
2213
|
+
continue;
|
|
2214
|
+
}
|
|
2215
|
+
const cell = row.cells[0];
|
|
2216
|
+
if (!cell) continue;
|
|
2217
|
+
occupiedRows = cell.rowSpan === 0 ? section.rows.length : cell.rowSpan - 1;
|
|
2218
|
+
if (cell.colSpan === 1) pinnedCells.add(cell);
|
|
2219
|
+
}
|
|
2220
|
+
};
|
|
2221
|
+
/** Collect the leading cells that pin, skipping rows covered by an earlier rowSpan. */
|
|
2222
|
+
const collectPinnedCells = (table) => {
|
|
2223
|
+
const pinnedCells = /* @__PURE__ */ new Set();
|
|
2224
|
+
for (const section of [
|
|
2225
|
+
...Array.from(table.tBodies),
|
|
2226
|
+
table.tHead,
|
|
2227
|
+
table.tFoot
|
|
2228
|
+
]) if (section) collectSectionPinnedCells({
|
|
2229
|
+
pinnedCells,
|
|
2230
|
+
section
|
|
2231
|
+
});
|
|
2232
|
+
return pinnedCells;
|
|
2233
|
+
};
|
|
2234
|
+
/** Measure where the body begins in content coordinates; top captions shift it down. */
|
|
2235
|
+
const measureShelfTop = ({ scrollArea, table }) => {
|
|
2236
|
+
const body = table?.tBodies[0];
|
|
2237
|
+
return body ? body.getBoundingClientRect().top - scrollArea.getBoundingClientRect().top + scrollArea.scrollTop : 0;
|
|
2238
|
+
};
|
|
2239
|
+
/** Render a table in a stable tray with keyboard access only when content overflows. */
|
|
2240
|
+
const Table = ({ className, scrollAreaProps = {}, stickyFirstColumn = false, ...props }) => {
|
|
2241
|
+
const scrollAreaRef = (0, react.useRef)(null);
|
|
2242
|
+
const [overflow, setOverflow] = (0, react.useState)({
|
|
2243
|
+
horizontal: false,
|
|
2244
|
+
vertical: false
|
|
2245
|
+
});
|
|
2246
|
+
const [isTouchPrimary, setIsTouchPrimary] = (0, react.useState)(false);
|
|
2247
|
+
const [direction, setDirection] = (0, react.useState)("ltr");
|
|
2248
|
+
const [headerHeight, setHeaderHeight] = (0, react.useState)(0);
|
|
2249
|
+
const [topCaptionHeight, setTopCaptionHeight] = (0, react.useState)(0);
|
|
2250
|
+
const [shelfTop, setShelfTop] = (0, react.useState)(0);
|
|
2251
|
+
const [firstColumnWidth, setFirstColumnWidth] = (0, react.useState)(0);
|
|
2252
|
+
const { className: scrollAreaClassName, style: scrollAreaStyle, "aria-label": scrollAreaLabel = props["aria-label"] ?? "Scrollable table", ...viewportProps } = scrollAreaProps;
|
|
2253
|
+
const isScrollable = overflow.horizontal || overflow.vertical;
|
|
2254
|
+
const useNativeScrollbars = isTouchPrimary || typeof ResizeObserver === "undefined";
|
|
2203
2255
|
(0, react.useEffect)(() => {
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
const
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2256
|
+
if (typeof window === "undefined" || typeof window.matchMedia !== "function") return;
|
|
2257
|
+
const pointerQuery = window.matchMedia("(pointer: coarse)");
|
|
2258
|
+
const updatePointer = () => setIsTouchPrimary(pointerQuery.matches);
|
|
2259
|
+
updatePointer();
|
|
2260
|
+
if (typeof pointerQuery.addEventListener === "function") {
|
|
2261
|
+
pointerQuery.addEventListener("change", updatePointer);
|
|
2262
|
+
return () => pointerQuery.removeEventListener("change", updatePointer);
|
|
2263
|
+
}
|
|
2264
|
+
pointerQuery.addListener(updatePointer);
|
|
2265
|
+
return () => pointerQuery.removeListener(updatePointer);
|
|
2266
|
+
}, []);
|
|
2267
|
+
(0, react.useEffect)(() => {
|
|
2268
|
+
const scrollArea = scrollAreaRef.current;
|
|
2269
|
+
if (!scrollArea) return;
|
|
2270
|
+
const table = scrollArea.querySelector("table");
|
|
2271
|
+
let pinnedCells = /* @__PURE__ */ new Set();
|
|
2272
|
+
let firstColumn;
|
|
2273
|
+
const updatePinnedEdge = () => {
|
|
2274
|
+
scrollArea.parentElement?.style.setProperty("--table-pinned-edge-visible", stickyFirstColumn && firstColumn && scrollArea.scrollWidth > scrollArea.clientWidth && Math.abs(scrollArea.scrollLeft) > 0 ? "1" : "0");
|
|
2275
|
+
};
|
|
2276
|
+
const updatePinnedCells = () => {
|
|
2277
|
+
const nextPinnedCells = stickyFirstColumn && table ? collectPinnedCells(table) : /* @__PURE__ */ new Set();
|
|
2278
|
+
pinnedCells.forEach((cell) => {
|
|
2279
|
+
if (!nextPinnedCells.has(cell)) delete cell.dataset.tablePinned;
|
|
2280
|
+
});
|
|
2281
|
+
nextPinnedCells.forEach((cell) => {
|
|
2282
|
+
if (!pinnedCells.has(cell)) cell.dataset.tablePinned = "true";
|
|
2283
|
+
});
|
|
2284
|
+
pinnedCells = nextPinnedCells;
|
|
2285
|
+
const nextFirstColumn = pinnedCells.values().next().value;
|
|
2286
|
+
if (firstColumn !== nextFirstColumn) {
|
|
2287
|
+
if (firstColumn) observer?.unobserve(firstColumn);
|
|
2288
|
+
if (nextFirstColumn) observer?.observe(nextFirstColumn);
|
|
2289
|
+
firstColumn = nextFirstColumn;
|
|
2290
|
+
}
|
|
2291
|
+
};
|
|
2292
|
+
const updateLayout = () => {
|
|
2293
|
+
updatePinnedCells();
|
|
2294
|
+
setDirection(getComputedStyle(scrollArea).direction === "rtl" ? "rtl" : "ltr");
|
|
2295
|
+
setOverflow({
|
|
2296
|
+
horizontal: scrollArea.scrollWidth > scrollArea.clientWidth,
|
|
2297
|
+
vertical: scrollArea.scrollHeight > scrollArea.clientHeight
|
|
2298
|
+
});
|
|
2299
|
+
setHeaderHeight(table?.tHead?.offsetHeight ?? 0);
|
|
2300
|
+
setFirstColumnWidth(firstColumn?.offsetWidth ?? 0);
|
|
2301
|
+
const caption = table?.caption;
|
|
2302
|
+
setTopCaptionHeight(caption && getComputedStyle(caption).captionSide === "top" ? caption.offsetHeight : 0);
|
|
2303
|
+
setShelfTop(measureShelfTop({
|
|
2304
|
+
scrollArea,
|
|
2305
|
+
table
|
|
2306
|
+
}));
|
|
2307
|
+
updatePinnedEdge();
|
|
2308
|
+
};
|
|
2309
|
+
const observer = typeof ResizeObserver === "undefined" ? void 0 : new ResizeObserver(updateLayout);
|
|
2310
|
+
const contentObserver = new MutationObserver(updateLayout);
|
|
2311
|
+
observer?.observe(scrollArea);
|
|
2312
|
+
if (table) {
|
|
2313
|
+
observer?.observe(table);
|
|
2314
|
+
Array.from(table.children).forEach((child) => observer?.observe(child));
|
|
2315
|
+
if (stickyFirstColumn) contentObserver.observe(table, {
|
|
2316
|
+
attributeFilter: ["colspan", "rowspan"],
|
|
2317
|
+
attributes: true,
|
|
2318
|
+
childList: true,
|
|
2319
|
+
subtree: true
|
|
2320
|
+
});
|
|
2213
2321
|
}
|
|
2322
|
+
window.addEventListener("resize", updateLayout);
|
|
2323
|
+
scrollArea.addEventListener("scroll", updatePinnedEdge, { passive: true });
|
|
2324
|
+
updateLayout();
|
|
2214
2325
|
return () => {
|
|
2215
|
-
window.removeEventListener("resize",
|
|
2326
|
+
window.removeEventListener("resize", updateLayout);
|
|
2327
|
+
scrollArea.removeEventListener("scroll", updatePinnedEdge);
|
|
2216
2328
|
observer?.disconnect();
|
|
2329
|
+
contentObserver.disconnect();
|
|
2330
|
+
pinnedCells.forEach((cell) => delete cell.dataset.tablePinned);
|
|
2217
2331
|
};
|
|
2218
|
-
}, [
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2332
|
+
}, [
|
|
2333
|
+
props.children,
|
|
2334
|
+
props.dir,
|
|
2335
|
+
scrollAreaProps.dir,
|
|
2336
|
+
isTouchPrimary,
|
|
2337
|
+
stickyFirstColumn
|
|
2338
|
+
]);
|
|
2339
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_scroll_area.Root, {
|
|
2340
|
+
asChild: true,
|
|
2341
|
+
type: "always",
|
|
2342
|
+
dir: direction,
|
|
2343
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2344
|
+
"data-slot": "table-container",
|
|
2345
|
+
"data-tray": "header",
|
|
2346
|
+
dir: props.dir,
|
|
2347
|
+
className: require_toggle_row.cn("group/table relative min-w-0 w-full [--table-radius:16px] [--table-shelf-radius:calc(var(--table-radius)_-_var(--tray-inset))] rounded-[var(--table-radius)] bg-[var(--tray-chrome)] px-[var(--tray-inset)] pb-[var(--tray-inset)]", isScrollable ? "overflow-hidden" : "overflow-visible"),
|
|
2348
|
+
children: [
|
|
2349
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2350
|
+
"aria-hidden": "true",
|
|
2351
|
+
"data-slot": "table-shelf",
|
|
2352
|
+
className: "pointer-events-none absolute inset-x-[var(--tray-inset)] bottom-[var(--tray-inset)] rounded-[var(--table-shelf-radius)] bg-card",
|
|
2353
|
+
style: { top: shelfTop }
|
|
2354
|
+
}),
|
|
2355
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_scroll_area.Viewport, {
|
|
2356
|
+
...viewportProps,
|
|
2357
|
+
ref: scrollAreaRef,
|
|
2358
|
+
"data-slot": "table-scroll-area",
|
|
2359
|
+
"data-caption-top": topCaptionHeight > 0,
|
|
2360
|
+
"data-native-scrollbars": useNativeScrollbars,
|
|
2361
|
+
role: isScrollable ? "region" : void 0,
|
|
2362
|
+
"aria-label": isScrollable ? scrollAreaLabel : void 0,
|
|
2363
|
+
tabIndex: isScrollable ? 0 : void 0,
|
|
2364
|
+
style: {
|
|
2365
|
+
"--table-caption-height": `${topCaptionHeight}px`,
|
|
2366
|
+
overflowX: isScrollable ? "auto" : "visible",
|
|
2367
|
+
overflowY: isScrollable ? "auto" : "visible",
|
|
2368
|
+
scrollPaddingInlineStart: `${firstColumnWidth}px`,
|
|
2369
|
+
scrollPaddingTop: headerHeight + topCaptionHeight,
|
|
2370
|
+
...scrollAreaStyle
|
|
2371
|
+
},
|
|
2372
|
+
className: require_toggle_row.cn("relative min-w-0 overflow-auto overscroll-x-contain rounded-[var(--table-shelf-radius)] data-[native-scrollbars=true]:[scrollbar-width:auto] data-[native-scrollbars=true]:[&::-webkit-scrollbar]:block focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ring)]", scrollAreaClassName),
|
|
2373
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("table", {
|
|
2374
|
+
"data-slot": "table",
|
|
2375
|
+
"data-sticky-first-column": stickyFirstColumn || void 0,
|
|
2376
|
+
className: require_toggle_row.cn("w-full caption-bottom border-separate border-spacing-0 text-sm", stickyFirstColumn && [
|
|
2377
|
+
"[&>*>tr>[data-table-pinned]]:sticky [&>*>tr>[data-table-pinned]]:start-0 [&>*>tr>[data-table-pinned]]:z-10",
|
|
2378
|
+
"[&>*>tr>[data-table-pinned]]:bg-card",
|
|
2379
|
+
"[&>thead>tr>[data-table-pinned]]:bg-[var(--tray-chrome)]",
|
|
2380
|
+
"[&>:is(tbody,tfoot)>tr>[data-table-pinned]]:bg-[linear-gradient(var(--table-row-overlay,transparent),var(--table-row-overlay,transparent))]"
|
|
2381
|
+
], className),
|
|
2382
|
+
...props
|
|
2383
|
+
})
|
|
2384
|
+
}),
|
|
2385
|
+
stickyFirstColumn && firstColumnWidth > 0 && overflow.horizontal && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2386
|
+
"aria-hidden": "true",
|
|
2387
|
+
"data-slot": "table-pinned-edge",
|
|
2388
|
+
dir: direction,
|
|
2389
|
+
className: "pointer-events-none absolute top-0 bottom-[var(--tray-inset)] z-30 w-px bg-[var(--border-divider)] forced-colors:bg-[CanvasText]",
|
|
2390
|
+
style: {
|
|
2391
|
+
insetInlineStart: `calc(var(--tray-inset) + ${firstColumnWidth}px)`,
|
|
2392
|
+
opacity: "var(--table-pinned-edge-visible,0)"
|
|
2393
|
+
}
|
|
2394
|
+
}),
|
|
2395
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2396
|
+
"aria-hidden": "true",
|
|
2397
|
+
"data-slot": "table-shelf-edge",
|
|
2398
|
+
className: "pointer-events-none absolute inset-x-[var(--tray-inset)] bottom-[var(--tray-inset)] z-30 rounded-[var(--table-shelf-radius)] border border-[var(--border-divider)] shadow-[0_0_0_var(--table-radius)_var(--tray-chrome)] [clip-path:inset(0)]",
|
|
2399
|
+
style: { top: shelfTop }
|
|
2400
|
+
}),
|
|
2401
|
+
!useNativeScrollbars && ["vertical", "horizontal"].map((orientation) => overflow[orientation] && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_scroll_area.Scrollbar, {
|
|
2402
|
+
"aria-hidden": "true",
|
|
2403
|
+
"data-slot": "table-scrollbar",
|
|
2404
|
+
dir: direction,
|
|
2405
|
+
orientation,
|
|
2406
|
+
className: "group/scrollbar pointer-events-none z-40 flex touch-none select-none opacity-0 group-hover/table:pointer-events-auto group-hover/table:opacity-100 group-focus-within/table:pointer-events-auto group-focus-within/table:opacity-100",
|
|
2407
|
+
style: orientation === "vertical" ? {
|
|
2408
|
+
bottom: `calc(var(--tray-inset) + ${SCROLLBAR_INSET}px)`,
|
|
2409
|
+
insetInlineEnd: "var(--tray-inset)",
|
|
2410
|
+
left: "auto",
|
|
2411
|
+
right: "auto",
|
|
2412
|
+
top: shelfTop + SCROLLBAR_INSET,
|
|
2413
|
+
width: SCROLLBAR_HIT_AREA
|
|
2414
|
+
} : {
|
|
2415
|
+
bottom: "var(--tray-inset)",
|
|
2416
|
+
height: SCROLLBAR_HIT_AREA,
|
|
2417
|
+
insetInlineEnd: `calc(var(--tray-inset) + ${overflow.vertical ? SCROLLBAR_INSET + SCROLLBAR_HIT_AREA : SCROLLBAR_INSET}px)`,
|
|
2418
|
+
insetInlineStart: `calc(var(--tray-inset) + ${SCROLLBAR_INSET}px)`,
|
|
2419
|
+
left: "auto",
|
|
2420
|
+
right: "auto"
|
|
2421
|
+
},
|
|
2422
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_scroll_area.Thumb, {
|
|
2423
|
+
"data-slot": "table-scrollbar-thumb",
|
|
2424
|
+
style: orientation === "vertical" ? { width: "100%" } : { height: "100%" },
|
|
2425
|
+
className: require_toggle_row.cn("relative [--table-scrollbar-thumb:color-mix(in_oklab,var(--foreground)_25%,transparent)] [--table-scrollbar-thumb-hover:color-mix(in_oklab,var(--foreground)_35%,transparent)] before:pointer-events-none before:absolute before:rounded-full before:bg-[var(--table-scrollbar-thumb)] group-hover/scrollbar:before:bg-[var(--table-scrollbar-thumb-hover)] contrast-more:before:bg-[var(--border-strong)] contrast-more:group-hover/scrollbar:before:bg-[var(--border-strong)] forced-colors:before:bg-[CanvasText] forced-colors:group-hover/scrollbar:before:bg-[CanvasText]", orientation === "vertical" ? "before:inset-y-0 before:left-1/2 before:w-1 before:-translate-x-1/2 group-hover/scrollbar:before:w-1.5" : "before:inset-x-0 before:top-1/2 before:h-1 before:-translate-y-1/2 group-hover/scrollbar:before:h-1.5")
|
|
2426
|
+
})
|
|
2427
|
+
}, orientation))
|
|
2428
|
+
]
|
|
2230
2429
|
})
|
|
2231
2430
|
});
|
|
2232
2431
|
};
|
|
2233
2432
|
const TableHeader = ({ className, ...props }) => {
|
|
2234
2433
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("thead", {
|
|
2235
2434
|
"data-slot": "table-header",
|
|
2236
|
-
className: require_toggle_row.cn("sticky top-
|
|
2435
|
+
className: require_toggle_row.cn("sticky top-[var(--table-caption-height,0px)] z-20 bg-[var(--tray-chrome)] [&_tr]:border-0 [&_tr]:hover:bg-transparent", className),
|
|
2237
2436
|
...props
|
|
2238
2437
|
});
|
|
2239
2438
|
};
|
|
2240
2439
|
const TableBody = ({ className, ...props }) => {
|
|
2241
2440
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tbody", {
|
|
2242
2441
|
"data-slot": "table-body",
|
|
2243
|
-
className: require_toggle_row.cn("
|
|
2442
|
+
className: require_toggle_row.cn("[&>tr:not(:last-child)>*]:border-b [&>tr:not(:last-child)>*]:border-[var(--border-divider)]", className),
|
|
2244
2443
|
...props
|
|
2245
2444
|
});
|
|
2246
2445
|
};
|
|
2247
2446
|
const TableFooter = ({ className, ...props }) => {
|
|
2248
2447
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tfoot", {
|
|
2249
2448
|
"data-slot": "table-footer",
|
|
2250
|
-
className: require_toggle_row.cn("
|
|
2449
|
+
className: require_toggle_row.cn("font-medium [&>tr>*]:border-t [&>tr>*]:border-[var(--border-divider)]", className),
|
|
2251
2450
|
...props
|
|
2252
2451
|
});
|
|
2253
2452
|
};
|
|
2254
2453
|
const TableRow = ({ className, ...props }) => {
|
|
2255
2454
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tr", {
|
|
2256
2455
|
"data-slot": "table-row",
|
|
2257
|
-
className: require_toggle_row.cn("hover:
|
|
2456
|
+
className: require_toggle_row.cn("hover:bg-[var(--overlay-hover)] data-[state=selected]:bg-[var(--overlay-selected)] data-[state=selected]:hover:bg-[var(--overlay-selected-hover)] border-b border-[var(--border-divider)] transition-[background-color] duration-100", "hover:[--table-row-overlay:var(--overlay-hover)] data-[state=selected]:[--table-row-overlay:var(--overlay-selected)] data-[state=selected]:hover:[--table-row-overlay:var(--overlay-selected-hover)]", className),
|
|
2258
2457
|
...props
|
|
2259
2458
|
});
|
|
2260
2459
|
};
|
|
@@ -2276,7 +2475,7 @@ const TableCell = ({ className, ...props }) => {
|
|
|
2276
2475
|
const TableCaption = ({ className, ...props }) => {
|
|
2277
2476
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("caption", {
|
|
2278
2477
|
"data-slot": "table-caption",
|
|
2279
|
-
className: require_toggle_row.cn("text-muted-foreground mt-4 text-sm", className),
|
|
2478
|
+
className: require_toggle_row.cn("text-muted-foreground mt-4 text-sm [[data-caption-top=true]_&]:sticky [[data-caption-top=true]_&]:top-0 [[data-caption-top=true]_&]:z-20 [[data-caption-top=true]_&]:mt-0 [[data-caption-top=true]_&]:bg-[var(--tray-chrome)]", className),
|
|
2280
2479
|
...props
|
|
2281
2480
|
});
|
|
2282
2481
|
};
|
|
@@ -2296,7 +2495,8 @@ const tabsListVariants = (0, class_variance_authority.cva)("rounded-lg p-[3px] g
|
|
|
2296
2495
|
defaultVariants: { variant: "default" },
|
|
2297
2496
|
variants: { variant: {
|
|
2298
2497
|
default: "bg-muted",
|
|
2299
|
-
line: "gap-1 bg-transparent"
|
|
2498
|
+
line: "gap-1 bg-transparent",
|
|
2499
|
+
navigation: "group-data-[orientation=horizontal]/tabs:h-auto w-full justify-start gap-5 rounded-none border-b border-border-divider bg-transparent p-0"
|
|
2300
2500
|
} }
|
|
2301
2501
|
});
|
|
2302
2502
|
const TabsList = ({ className, variant = "default", ...props }) => {
|
|
@@ -2310,7 +2510,7 @@ const TabsList = ({ className, variant = "default", ...props }) => {
|
|
|
2310
2510
|
const TabsTrigger = ({ className, ...props }) => {
|
|
2311
2511
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_tabs.Trigger, {
|
|
2312
2512
|
"data-slot": "tabs-trigger",
|
|
2313
|
-
className: require_toggle_row.cn("focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap touch-manipulation transition-[color,background-color,border-color,box-shadow,opacity] duration-150 motion-reduce:transition-none group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent", "data-[state=active]:bg-background dark:data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 data-[state=active]:text-foreground", "after:bg-foreground after:absolute after:opacity-0 after:transition-[opacity] after:motion-reduce:transition-none group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100", className),
|
|
2513
|
+
className: require_toggle_row.cn("focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap touch-manipulation transition-[color,background-color,border-color,box-shadow,opacity] duration-150 motion-reduce:transition-none group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent", "data-[state=active]:bg-background dark:data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 data-[state=active]:text-foreground", "after:bg-foreground after:absolute after:opacity-0 after:transition-[opacity] after:motion-reduce:transition-none group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100", "group-data-[variant=navigation]/tabs-list:h-11 group-data-[variant=navigation]/tabs-list:flex-none group-data-[variant=navigation]/tabs-list:rounded-none group-data-[variant=navigation]/tabs-list:border-0 group-data-[variant=navigation]/tabs-list:bg-transparent group-data-[variant=navigation]/tabs-list:px-0 group-data-[variant=navigation]/tabs-list:py-0 group-data-[variant=navigation]/tabs-list:text-sm group-data-[variant=navigation]/tabs-list:font-normal group-data-[variant=navigation]/tabs-list:after:hidden group-data-[variant=navigation]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=navigation]/tabs-list:data-[state=active]:bg-transparent", className),
|
|
2314
2514
|
...props
|
|
2315
2515
|
});
|
|
2316
2516
|
};
|
|
@@ -2560,6 +2760,18 @@ const RESET_TRANSITION = {
|
|
|
2560
2760
|
duration: TIMING.reset / 1e3,
|
|
2561
2761
|
ease: "easeOut"
|
|
2562
2762
|
};
|
|
2763
|
+
const HIDDEN_RESET_TRANSITION = {
|
|
2764
|
+
delay: TIMING.reset / 1e3,
|
|
2765
|
+
duration: 0
|
|
2766
|
+
};
|
|
2767
|
+
const ICON_RESET_TRANSITION = {
|
|
2768
|
+
opacity: RESET_TRANSITION,
|
|
2769
|
+
scale: HIDDEN_RESET_TRANSITION
|
|
2770
|
+
};
|
|
2771
|
+
const LABEL_RESET_TRANSITION = {
|
|
2772
|
+
opacity: RESET_TRANSITION,
|
|
2773
|
+
y: HIDDEN_RESET_TRANSITION
|
|
2774
|
+
};
|
|
2563
2775
|
const REDUCED_MOTION_TRANSITION = { duration: 0 };
|
|
2564
2776
|
/** Copies a value and presents stable, accessible success or failure feedback. */
|
|
2565
2777
|
const CopyButton = ({ value, label, variant = "outline", size = "icon-xs", className }) => {
|
|
@@ -2599,8 +2811,8 @@ const CopyButton = ({ value, label, variant = "outline", size = "icon-xs", class
|
|
|
2599
2811
|
let iconTransition = ICON.spring;
|
|
2600
2812
|
let labelTransition = LABEL.spring;
|
|
2601
2813
|
if (stage === COPY_STAGE.idle) {
|
|
2602
|
-
iconTransition =
|
|
2603
|
-
labelTransition =
|
|
2814
|
+
iconTransition = ICON_RESET_TRANSITION;
|
|
2815
|
+
labelTransition = LABEL_RESET_TRANSITION;
|
|
2604
2816
|
}
|
|
2605
2817
|
if (shouldReduceMotion) {
|
|
2606
2818
|
iconTransition = REDUCED_MOTION_TRANSITION;
|
|
@@ -2617,7 +2829,7 @@ const CopyButton = ({ value, label, variant = "outline", size = "icon-xs", class
|
|
|
2617
2829
|
},
|
|
2618
2830
|
{
|
|
2619
2831
|
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CheckIcon, {
|
|
2620
|
-
size:
|
|
2832
|
+
size: null,
|
|
2621
2833
|
strokeWidth: 2
|
|
2622
2834
|
}),
|
|
2623
2835
|
label: label ? "Copied" : void 0,
|
|
@@ -2643,13 +2855,14 @@ const CopyButton = ({ value, label, variant = "outline", size = "icon-xs", class
|
|
|
2643
2855
|
className: "grid items-center",
|
|
2644
2856
|
children: visualStates.map((visualState) => {
|
|
2645
2857
|
const isActive = stage === visualState.stage;
|
|
2858
|
+
const isIdleVisual = visualState.stage === COPY_STAGE.idle;
|
|
2646
2859
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
2647
2860
|
className: "col-start-1 row-start-1 flex items-center gap-1.5",
|
|
2648
2861
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(motion_react.motion.span, {
|
|
2649
2862
|
initial: false,
|
|
2650
2863
|
animate: {
|
|
2651
2864
|
opacity: isActive ? 1 : 0,
|
|
2652
|
-
scale: isActive ? ICON.activeScale : ICON.inactiveScale
|
|
2865
|
+
scale: isIdleVisual || isActive ? ICON.activeScale : ICON.inactiveScale
|
|
2653
2866
|
},
|
|
2654
2867
|
transition: iconTransition,
|
|
2655
2868
|
style: animationStyle,
|
|
@@ -2660,7 +2873,7 @@ const CopyButton = ({ value, label, variant = "outline", size = "icon-xs", class
|
|
|
2660
2873
|
style: animationStyle,
|
|
2661
2874
|
animate: {
|
|
2662
2875
|
opacity: isActive ? 1 : 0,
|
|
2663
|
-
y: isActive ? LABEL.activeOffset : LABEL.inactiveOffset
|
|
2876
|
+
y: isIdleVisual || isActive ? LABEL.activeOffset : LABEL.inactiveOffset
|
|
2664
2877
|
},
|
|
2665
2878
|
transition: labelTransition,
|
|
2666
2879
|
children: visualState.label
|
|
@@ -3259,6 +3472,75 @@ const StatusBadge = ({ status, label, className }) => {
|
|
|
3259
3472
|
});
|
|
3260
3473
|
};
|
|
3261
3474
|
|
|
3475
|
+
//#endregion
|
|
3476
|
+
//#region src/components/tab-navigation/tab-navigation.tsx
|
|
3477
|
+
/**
|
|
3478
|
+
* Full-width underline tab navigation for switching between related views,
|
|
3479
|
+
* built on {@link Tabs}. The blue underline slides between tabs; pass
|
|
3480
|
+
* `TabsContent` elements as children when the component owns the panels.
|
|
3481
|
+
*
|
|
3482
|
+
* @description Without `defaultValue`, the first enabled item is selected. If
|
|
3483
|
+
* uncontrolled `items` later change so the selection is missing or disabled,
|
|
3484
|
+
* the selection moves to the first enabled item.
|
|
3485
|
+
* @example
|
|
3486
|
+
* ```tsx
|
|
3487
|
+
* <TabNavigation
|
|
3488
|
+
* items={[
|
|
3489
|
+
* { label: 'All', value: 'all' },
|
|
3490
|
+
* { label: 'Invitations', value: 'invitations' },
|
|
3491
|
+
* ]}
|
|
3492
|
+
* listLabel="Users"
|
|
3493
|
+
* >
|
|
3494
|
+
* <TabsContent value="all">All users</TabsContent>
|
|
3495
|
+
* <TabsContent value="invitations">Pending invitations</TabsContent>
|
|
3496
|
+
* </TabNavigation>
|
|
3497
|
+
* ```
|
|
3498
|
+
* @returns The rendered tab navigation element.
|
|
3499
|
+
* @see Tabs
|
|
3500
|
+
* @see ProductPageLayout
|
|
3501
|
+
*/
|
|
3502
|
+
const TabNavigation = ({ children, defaultValue, items, listLabel, onValueChange, value, ...props }) => {
|
|
3503
|
+
const [internalValue, setInternalValue] = (0, react.useState)(defaultValue ?? items.find((item) => !item.disabled)?.value);
|
|
3504
|
+
const selectedValue = value ?? internalValue;
|
|
3505
|
+
const indicatorId = (0, react.useId)();
|
|
3506
|
+
const shouldReduceMotion = (0, motion_react.useReducedMotion)();
|
|
3507
|
+
const [prevItems, setPrevItems] = (0, react.useState)(items);
|
|
3508
|
+
if (prevItems !== items) {
|
|
3509
|
+
setPrevItems(items);
|
|
3510
|
+
if (defaultValue === void 0 && value === void 0 && !items.some((item) => item.value === internalValue && !item.disabled)) setInternalValue(items.find((item) => !item.disabled)?.value);
|
|
3511
|
+
}
|
|
3512
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Tabs, {
|
|
3513
|
+
...props,
|
|
3514
|
+
value: selectedValue,
|
|
3515
|
+
onValueChange: (nextValue) => {
|
|
3516
|
+
setInternalValue(nextValue);
|
|
3517
|
+
onValueChange?.(nextValue);
|
|
3518
|
+
},
|
|
3519
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(TabsList, {
|
|
3520
|
+
variant: "navigation",
|
|
3521
|
+
"aria-label": listLabel,
|
|
3522
|
+
children: items.map(({ disabled, label, value: value$1 }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(TabsTrigger, {
|
|
3523
|
+
value: value$1,
|
|
3524
|
+
disabled,
|
|
3525
|
+
children: [label, selectedValue === value$1 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(motion_react.motion.span, {
|
|
3526
|
+
"aria-hidden": "true",
|
|
3527
|
+
className: "absolute inset-x-0 -bottom-px h-px bg-(--action)",
|
|
3528
|
+
layoutId: `tab-navigation-indicator-${indicatorId}`,
|
|
3529
|
+
transition: shouldReduceMotion ? { duration: 0 } : {
|
|
3530
|
+
duration: .2,
|
|
3531
|
+
ease: [
|
|
3532
|
+
.645,
|
|
3533
|
+
.045,
|
|
3534
|
+
.355,
|
|
3535
|
+
1
|
|
3536
|
+
]
|
|
3537
|
+
}
|
|
3538
|
+
})]
|
|
3539
|
+
}, value$1))
|
|
3540
|
+
}), children]
|
|
3541
|
+
});
|
|
3542
|
+
};
|
|
3543
|
+
|
|
3262
3544
|
//#endregion
|
|
3263
3545
|
//#region src/components/toggle-card/toggle-card.tsx
|
|
3264
3546
|
/**
|
|
@@ -5199,6 +5481,7 @@ exports.StatusBadge = StatusBadge;
|
|
|
5199
5481
|
exports.Stepper = Stepper;
|
|
5200
5482
|
exports.SunIcon = SunIcon;
|
|
5201
5483
|
exports.Switch = require_toggle_row.Switch;
|
|
5484
|
+
exports.TabNavigation = TabNavigation;
|
|
5202
5485
|
exports.Table = Table;
|
|
5203
5486
|
exports.TableBody = TableBody;
|
|
5204
5487
|
exports.TableCaption = TableCaption;
|