@caqophony/ui 0.6.1 → 0.6.3
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-WGWKCFG2.js → chunk-K2B226HX.js} +1 -1
- package/dist/{chunk-ID7VBGJA.js → chunk-KXI4UQPS.js} +64 -4
- package/dist/{chunk-44GEHNZP.js → chunk-MRVYXQE3.js} +1 -1
- package/dist/index.d.mts +20 -7
- package/dist/index.js +104 -81
- package/dist/marketing.js +2 -2
- package/dist/material.js +2 -2
- package/package.json +1 -1
|
@@ -127,8 +127,8 @@ function Icon({ name, size, className }) {
|
|
|
127
127
|
var SCROLL_HINT_X = "";
|
|
128
128
|
var SCROLL_HINT_X_MARK = "pointer-events-none sticky right-0 z-10 ml-2 flex w-6 shrink-0 items-center justify-end self-stretch data-[scroll-hint-state=end]:invisible data-[scroll-hint-state=none]:hidden";
|
|
129
129
|
var SCROLL_HINT_X_PILL = "flex h-full max-h-6 w-6 items-center justify-center rounded-full border border-border bg-card text-muted-foreground shadow-sm";
|
|
130
|
-
var
|
|
131
|
-
var
|
|
130
|
+
var SCROLL_HINT_Y_MARK = "pointer-events-none flex h-7 shrink-0 items-end justify-center data-[scroll-hint-state=end]:invisible data-[scroll-hint-state=none]:hidden";
|
|
131
|
+
var SCROLL_HINT_Y_PILL = "flex h-6 items-center rounded-full border border-border bg-card px-2 text-muted-foreground shadow-sm";
|
|
132
132
|
|
|
133
133
|
// src/scroll-hint-mark.tsx
|
|
134
134
|
import * as React from "react";
|
|
@@ -190,6 +190,43 @@ function watchScrollHintX(mark, write) {
|
|
|
190
190
|
added.disconnect();
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
+
function scrollHintYState(box) {
|
|
194
|
+
if (box.scrollHeight <= box.clientHeight + 1) return "none";
|
|
195
|
+
return box.scrollTop + box.clientHeight >= box.scrollHeight - 1 ? "end" : "more";
|
|
196
|
+
}
|
|
197
|
+
function watchScrollHintY(mark, write) {
|
|
198
|
+
const scroller = mark.previousElementSibling;
|
|
199
|
+
if (scroller === null) {
|
|
200
|
+
throw new Error(
|
|
201
|
+
"watchScrollHintY: the mark has no element before it; it must be the next sibling of the box that scrolls on y"
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
let last;
|
|
205
|
+
const update = () => {
|
|
206
|
+
const state = scrollHintYState(scroller);
|
|
207
|
+
if (state === last) return;
|
|
208
|
+
last = state;
|
|
209
|
+
write(state);
|
|
210
|
+
};
|
|
211
|
+
const resize = new ResizeObserver(update);
|
|
212
|
+
const observeChildren = () => {
|
|
213
|
+
for (const child of Array.from(scroller.children)) resize.observe(child);
|
|
214
|
+
};
|
|
215
|
+
resize.observe(scroller);
|
|
216
|
+
observeChildren();
|
|
217
|
+
const added = new MutationObserver(() => {
|
|
218
|
+
observeChildren();
|
|
219
|
+
update();
|
|
220
|
+
});
|
|
221
|
+
added.observe(scroller, { childList: true });
|
|
222
|
+
scroller.addEventListener("scroll", update, { passive: true });
|
|
223
|
+
update();
|
|
224
|
+
return () => {
|
|
225
|
+
scroller.removeEventListener("scroll", update);
|
|
226
|
+
resize.disconnect();
|
|
227
|
+
added.disconnect();
|
|
228
|
+
};
|
|
229
|
+
}
|
|
193
230
|
|
|
194
231
|
// src/scroll-hint-mark.tsx
|
|
195
232
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
@@ -217,6 +254,30 @@ function ScrollHintXMark() {
|
|
|
217
254
|
}
|
|
218
255
|
);
|
|
219
256
|
}
|
|
257
|
+
function ScrollHintYMark() {
|
|
258
|
+
const ref = React.useRef(null);
|
|
259
|
+
React.useEffect(() => {
|
|
260
|
+
const mark = ref.current;
|
|
261
|
+
if (mark === null) {
|
|
262
|
+
throw new Error(
|
|
263
|
+
"ScrollHintYMark: the effect ran with no mounted mark (ref.current is null)"
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
return watchScrollHintY(mark, (state) => {
|
|
267
|
+
mark.dataset.scrollHintState = state;
|
|
268
|
+
});
|
|
269
|
+
}, []);
|
|
270
|
+
return /* @__PURE__ */ jsx2(
|
|
271
|
+
"div",
|
|
272
|
+
{
|
|
273
|
+
ref,
|
|
274
|
+
"aria-hidden": "true",
|
|
275
|
+
"data-scroll-hint": "y",
|
|
276
|
+
className: SCROLL_HINT_Y_MARK,
|
|
277
|
+
children: /* @__PURE__ */ jsx2("span", { className: SCROLL_HINT_Y_PILL, children: /* @__PURE__ */ jsx2(Icon, { name: "chevron-down", size: "sm" }) })
|
|
278
|
+
}
|
|
279
|
+
);
|
|
280
|
+
}
|
|
220
281
|
|
|
221
282
|
// src/content-gutter.ts
|
|
222
283
|
var CONTENT_GUTTER = "px-4 sm:px-6 lg:px-8";
|
|
@@ -226,8 +287,7 @@ export {
|
|
|
226
287
|
ICON_SIZES,
|
|
227
288
|
Icon,
|
|
228
289
|
SCROLL_HINT_X,
|
|
229
|
-
SCROLL_HINT_Y,
|
|
230
|
-
SCROLL_HINT_Y_MARK,
|
|
231
290
|
ScrollHintXMark,
|
|
291
|
+
ScrollHintYMark,
|
|
232
292
|
CONTENT_GUTTER
|
|
233
293
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -1044,10 +1044,10 @@ declare const DrawerFooter: React.ForwardRefExoticComponent<React.HTMLAttributes
|
|
|
1044
1044
|
* Authored by Caqophony
|
|
1045
1045
|
*/
|
|
1046
1046
|
|
|
1047
|
-
interface FormLayoutProps extends React.
|
|
1047
|
+
interface FormLayoutProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1048
1048
|
layout?: 'stacked' | 'inline' | 'two-column';
|
|
1049
1049
|
}
|
|
1050
|
-
declare const FormLayout: React.ForwardRefExoticComponent<FormLayoutProps & React.RefAttributes<
|
|
1050
|
+
declare const FormLayout: React.ForwardRefExoticComponent<FormLayoutProps & React.RefAttributes<HTMLDivElement>>;
|
|
1051
1051
|
interface FormLayoutSectionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1052
1052
|
title?: string;
|
|
1053
1053
|
description?: string;
|
|
@@ -1703,6 +1703,12 @@ declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.
|
|
|
1703
1703
|
* The shell provides the structural frame (sidebar, header, breadcrumb).
|
|
1704
1704
|
* PageContent provides the content padding every page needs.
|
|
1705
1705
|
*
|
|
1706
|
+
* #6254 — the children are spaced by a flex column's `gap`, never by
|
|
1707
|
+
* `space-y-*`: that margin sits on each direct child, and a generated page
|
|
1708
|
+
* wraps each state's sections in `<div className="contents">`, which has no
|
|
1709
|
+
* box to carry it (the page header sat flush on the card). A flex gap spaces
|
|
1710
|
+
* the items a `display: contents` child lays out, as it spaces its own.
|
|
1711
|
+
*
|
|
1706
1712
|
* Usage:
|
|
1707
1713
|
* import { PageContent } from '@caqophony/ui';
|
|
1708
1714
|
* <PageContent>
|
|
@@ -1714,7 +1720,7 @@ declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.
|
|
|
1714
1720
|
*/
|
|
1715
1721
|
|
|
1716
1722
|
interface PageContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1717
|
-
/** Vertical gap between
|
|
1723
|
+
/** Vertical gap between the sections. Default: 'md' (gap-6) */
|
|
1718
1724
|
gap?: 'sm' | 'md' | 'lg' | 'none';
|
|
1719
1725
|
/** Whether to include page-level padding. Default: true */
|
|
1720
1726
|
padded?: boolean;
|
|
@@ -1922,10 +1928,17 @@ declare const StageList: React.ForwardRefExoticComponent<StageListProps & React.
|
|
|
1922
1928
|
* One-artifact W1 (#5823): run 7 wrapped a 9-step `Stepper` in
|
|
1923
1929
|
* `max-h-[160px] overflow-y-auto`, which cut the stepper's line under the
|
|
1924
1930
|
* clip with no sign there was more. This owns the clamp: a height from the
|
|
1925
|
-
* scale, the scroll, the scroll hint
|
|
1926
|
-
*
|
|
1927
|
-
*
|
|
1928
|
-
*
|
|
1931
|
+
* scale, the scroll, the scroll hint, and keyboard access (a scrolling region
|
|
1932
|
+
* is focusable and named, WCAG 2.1.1). A page never writes `max-h-*` with
|
|
1933
|
+
* `overflow-*` around a library component.
|
|
1934
|
+
*
|
|
1935
|
+
* #6089: the hint was drawn inside the box, sticky over its last row, and on
|
|
1936
|
+
* the approved application detail it sat over a line in full view ("Target
|
|
1937
|
+
* range discussed with recruiter"). It is now a row of its own under the box
|
|
1938
|
+
* (`ScrollHintYMark`, `scroll-hint.ts`): never over a row, hidden when the
|
|
1939
|
+
* rows fit, and empty (its room kept) once the reader has scrolled to the end.
|
|
1940
|
+
* The region (its `ref`, `className`, `data-testid` and every other prop) is
|
|
1941
|
+
* the box that scrolls, as before; the two sit in a column.
|
|
1929
1942
|
*
|
|
1930
1943
|
* Usage:
|
|
1931
1944
|
* import { ClampedList } from '@caqophony/ui';
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
buttonVariants,
|
|
12
12
|
useModalSurface,
|
|
13
13
|
usePanelRef
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-K2B226HX.js";
|
|
15
15
|
import {
|
|
16
16
|
Alert,
|
|
17
17
|
EMPTY_VALUE_GLYPH,
|
|
@@ -19,17 +19,16 @@ import {
|
|
|
19
19
|
INTENT_SUBTLE_STYLES,
|
|
20
20
|
IntentBadge,
|
|
21
21
|
isEmptyValue
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MRVYXQE3.js";
|
|
23
23
|
import {
|
|
24
24
|
CONTENT_GUTTER,
|
|
25
25
|
ICONS,
|
|
26
26
|
ICON_SIZES,
|
|
27
27
|
Icon,
|
|
28
28
|
SCROLL_HINT_X,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
} from "./chunk-ID7VBGJA.js";
|
|
29
|
+
ScrollHintXMark,
|
|
30
|
+
ScrollHintYMark
|
|
31
|
+
} from "./chunk-KXI4UQPS.js";
|
|
33
32
|
import {
|
|
34
33
|
cn
|
|
35
34
|
} from "./chunk-DP5WQAPO.js";
|
|
@@ -113,7 +112,7 @@ var CardHeader = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
113
112
|
"div",
|
|
114
113
|
{
|
|
115
114
|
ref,
|
|
116
|
-
className: cn("flex flex-col
|
|
115
|
+
className: cn("flex flex-col gap-1.5 p-6", className),
|
|
117
116
|
...props
|
|
118
117
|
}
|
|
119
118
|
));
|
|
@@ -347,7 +346,7 @@ function FormSection({
|
|
|
347
346
|
title && /* @__PURE__ */ jsx6("legend", { className: "text-base font-medium text-foreground dark:text-foreground", children: title }),
|
|
348
347
|
description && /* @__PURE__ */ jsx6("p", { className: "text-sm text-muted-foreground dark:text-muted-foreground", children: description })
|
|
349
348
|
] }),
|
|
350
|
-
/* @__PURE__ */ jsx6("div", { className: "
|
|
349
|
+
/* @__PURE__ */ jsx6("div", { className: "flex flex-col gap-4", children })
|
|
351
350
|
] });
|
|
352
351
|
}
|
|
353
352
|
function FormError({ error, className }) {
|
|
@@ -882,7 +881,14 @@ function AccordionSingle({
|
|
|
882
881
|
value,
|
|
883
882
|
onValueChange: handleValueChange
|
|
884
883
|
},
|
|
885
|
-
children: /* @__PURE__ */ jsx9(
|
|
884
|
+
children: /* @__PURE__ */ jsx9(
|
|
885
|
+
"div",
|
|
886
|
+
{
|
|
887
|
+
className: cn("flex flex-col gap-2", className),
|
|
888
|
+
"data-accordion-root": "",
|
|
889
|
+
children
|
|
890
|
+
}
|
|
891
|
+
)
|
|
886
892
|
}
|
|
887
893
|
);
|
|
888
894
|
}
|
|
@@ -914,7 +920,14 @@ function AccordionMultiple({
|
|
|
914
920
|
value,
|
|
915
921
|
onValueChange: handleValueChange
|
|
916
922
|
},
|
|
917
|
-
children: /* @__PURE__ */ jsx9(
|
|
923
|
+
children: /* @__PURE__ */ jsx9(
|
|
924
|
+
"div",
|
|
925
|
+
{
|
|
926
|
+
className: cn("flex flex-col gap-2", className),
|
|
927
|
+
"data-accordion-root": "",
|
|
928
|
+
children
|
|
929
|
+
}
|
|
930
|
+
)
|
|
918
931
|
}
|
|
919
932
|
);
|
|
920
933
|
}
|
|
@@ -1518,15 +1531,27 @@ function SkeletonRow({ className = "" }) {
|
|
|
1518
1531
|
import * as React8 from "react";
|
|
1519
1532
|
import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1520
1533
|
var StackedList = React8.forwardRef(
|
|
1521
|
-
({ className, divided = true, density = "default", ...props }, ref) =>
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1534
|
+
({ className, divided = true, density = "default", ...props }, ref) => (
|
|
1535
|
+
// #6255: one grid for the list, an `auto` avatar column and the rest:
|
|
1536
|
+
// each item lays itself on it (`subgrid`), so the widest avatar sets one
|
|
1537
|
+
// column for every row and the titles start at one x. Every child spans
|
|
1538
|
+
// both columns, so a row that is not a StackedListItem stays a full row.
|
|
1539
|
+
// The column gap is the avatar's own margin: a list with no avatar has a
|
|
1540
|
+
// 0px column and no gap.
|
|
1541
|
+
/* @__PURE__ */ jsx19(
|
|
1542
|
+
"ul",
|
|
1543
|
+
{
|
|
1544
|
+
ref,
|
|
1545
|
+
role: "list",
|
|
1546
|
+
className: cn(
|
|
1547
|
+
"grid w-full grid-cols-[auto_minmax(0,1fr)] [&>*]:col-span-full",
|
|
1548
|
+
divided && "divide-y divide-border",
|
|
1549
|
+
className
|
|
1550
|
+
),
|
|
1551
|
+
"data-density": density,
|
|
1552
|
+
...props
|
|
1553
|
+
}
|
|
1554
|
+
)
|
|
1530
1555
|
)
|
|
1531
1556
|
);
|
|
1532
1557
|
StackedList.displayName = "StackedList";
|
|
@@ -1545,37 +1570,39 @@ var StackedListItem = React8.forwardRef(
|
|
|
1545
1570
|
{
|
|
1546
1571
|
ref,
|
|
1547
1572
|
className: cn(
|
|
1548
|
-
"
|
|
1573
|
+
"grid grid-cols-subgrid items-center",
|
|
1549
1574
|
density === "compact" ? "px-3 py-2" : "px-4 py-4",
|
|
1550
1575
|
className
|
|
1551
1576
|
),
|
|
1552
1577
|
...props,
|
|
1553
1578
|
children: [
|
|
1554
|
-
avatar && /* @__PURE__ */ jsx19("div", { className: "
|
|
1555
|
-
/* @__PURE__ */ jsxs13("div", { className: "min-w-0 flex-1", children: [
|
|
1556
|
-
/* @__PURE__ */
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
+
avatar && /* @__PURE__ */ jsx19("div", { className: "col-start-1 mr-4", children: avatar }),
|
|
1580
|
+
/* @__PURE__ */ jsxs13("div", { className: "col-start-2 flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1", children: [
|
|
1581
|
+
/* @__PURE__ */ jsxs13("div", { className: "min-w-0 grow basis-40", children: [
|
|
1582
|
+
/* @__PURE__ */ jsx19(
|
|
1583
|
+
"p",
|
|
1584
|
+
{
|
|
1585
|
+
className: cn(
|
|
1586
|
+
"break-words font-medium text-foreground",
|
|
1587
|
+
density === "compact" ? "text-sm" : "text-base"
|
|
1588
|
+
),
|
|
1589
|
+
children: title
|
|
1590
|
+
}
|
|
1591
|
+
),
|
|
1592
|
+
description && /* @__PURE__ */ jsx19(
|
|
1593
|
+
"p",
|
|
1594
|
+
{
|
|
1595
|
+
className: cn(
|
|
1596
|
+
"truncate text-muted-foreground",
|
|
1597
|
+
density === "compact" ? "text-xs" : "text-sm"
|
|
1598
|
+
),
|
|
1599
|
+
children: description
|
|
1600
|
+
}
|
|
1601
|
+
)
|
|
1602
|
+
] }),
|
|
1603
|
+
meta && /* @__PURE__ */ jsx19("span", { className: "flex-shrink-0 text-sm text-muted-foreground", children: meta }),
|
|
1604
|
+
action && /* @__PURE__ */ jsx19("div", { className: "flex-shrink-0", children: action })
|
|
1605
|
+
] })
|
|
1579
1606
|
]
|
|
1580
1607
|
}
|
|
1581
1608
|
)
|
|
@@ -3146,11 +3173,11 @@ import * as React20 from "react";
|
|
|
3146
3173
|
import { jsx as jsx31, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3147
3174
|
var FormLayout = React20.forwardRef(
|
|
3148
3175
|
({ className, layout = "stacked", ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
3149
|
-
"
|
|
3176
|
+
"div",
|
|
3150
3177
|
{
|
|
3151
3178
|
ref,
|
|
3152
3179
|
className: cn(
|
|
3153
|
-
layout === "stacked" && "
|
|
3180
|
+
layout === "stacked" && "flex flex-col gap-6",
|
|
3154
3181
|
layout === "inline" && "flex flex-wrap items-end gap-4",
|
|
3155
3182
|
layout === "two-column" && "grid grid-cols-1 gap-6 lg:grid-cols-2",
|
|
3156
3183
|
className
|
|
@@ -3171,7 +3198,7 @@ var FormLayoutSection = React20.forwardRef(({ className, title, description, chi
|
|
|
3171
3198
|
title && /* @__PURE__ */ jsx31("h3", { className: "text-base font-semibold text-foreground", children: title }),
|
|
3172
3199
|
description && /* @__PURE__ */ jsx31("p", { className: "mt-1 text-sm text-muted-foreground", children: description })
|
|
3173
3200
|
] }),
|
|
3174
|
-
/* @__PURE__ */ jsx31("div", { className: "
|
|
3201
|
+
/* @__PURE__ */ jsx31("div", { className: "flex flex-col gap-4", children })
|
|
3175
3202
|
]
|
|
3176
3203
|
}
|
|
3177
3204
|
));
|
|
@@ -4162,7 +4189,7 @@ var DescriptionList = React32.forwardRef(({ className, layout = "stacked", ...pr
|
|
|
4162
4189
|
className: cn(
|
|
4163
4190
|
layout === "grid" && "grid grid-cols-1 gap-x-6 gap-y-4 sm:grid-cols-2",
|
|
4164
4191
|
layout === "side-by-side" && "divide-y divide-border",
|
|
4165
|
-
layout === "stacked" && "
|
|
4192
|
+
layout === "stacked" && "flex flex-col gap-4",
|
|
4166
4193
|
className
|
|
4167
4194
|
),
|
|
4168
4195
|
...props
|
|
@@ -4446,9 +4473,9 @@ Divider.displayName = "Divider";
|
|
|
4446
4473
|
import * as React36 from "react";
|
|
4447
4474
|
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
4448
4475
|
var GAP_CLASSES2 = {
|
|
4449
|
-
sm: "
|
|
4450
|
-
md: "
|
|
4451
|
-
lg: "
|
|
4476
|
+
sm: "gap-4",
|
|
4477
|
+
md: "gap-6",
|
|
4478
|
+
lg: "gap-8",
|
|
4452
4479
|
none: ""
|
|
4453
4480
|
};
|
|
4454
4481
|
var PageContent = React36.forwardRef(
|
|
@@ -4456,7 +4483,12 @@ var PageContent = React36.forwardRef(
|
|
|
4456
4483
|
"div",
|
|
4457
4484
|
{
|
|
4458
4485
|
ref,
|
|
4459
|
-
className: cn(
|
|
4486
|
+
className: cn(
|
|
4487
|
+
"flex min-w-0 flex-col",
|
|
4488
|
+
GAP_CLASSES2[gap],
|
|
4489
|
+
padded && "p-4 sm:p-6",
|
|
4490
|
+
className
|
|
4491
|
+
),
|
|
4460
4492
|
...props,
|
|
4461
4493
|
children
|
|
4462
4494
|
}
|
|
@@ -4791,34 +4823,25 @@ var MAX_HEIGHTS = {
|
|
|
4791
4823
|
lg: "max-h-96"
|
|
4792
4824
|
};
|
|
4793
4825
|
var ClampedList = React41.forwardRef(
|
|
4794
|
-
({ className, label, maxHeight = "md", children, ...props }, ref) => /* @__PURE__ */ jsxs44(
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
"aria-hidden": "true",
|
|
4814
|
-
"data-scroll-hint": "y",
|
|
4815
|
-
className: SCROLL_HINT_Y_MARK,
|
|
4816
|
-
children: /* @__PURE__ */ jsx55("span", { className: "flex items-center rounded-full border border-border bg-card px-2 text-muted-foreground shadow-sm", children: /* @__PURE__ */ jsx55(Icon, { name: "chevron-down", size: "sm" }) })
|
|
4817
|
-
}
|
|
4818
|
-
)
|
|
4819
|
-
]
|
|
4820
|
-
}
|
|
4821
|
-
)
|
|
4826
|
+
({ className, label, maxHeight = "md", children, ...props }, ref) => /* @__PURE__ */ jsxs44("div", { className: "flex min-w-0 flex-col", children: [
|
|
4827
|
+
/* @__PURE__ */ jsx55(
|
|
4828
|
+
"div",
|
|
4829
|
+
{
|
|
4830
|
+
ref,
|
|
4831
|
+
role: "region",
|
|
4832
|
+
"aria-label": label,
|
|
4833
|
+
tabIndex: 0,
|
|
4834
|
+
className: cn(
|
|
4835
|
+
"min-w-0 overflow-y-auto overscroll-contain rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
4836
|
+
MAX_HEIGHTS[maxHeight],
|
|
4837
|
+
className
|
|
4838
|
+
),
|
|
4839
|
+
...props,
|
|
4840
|
+
children
|
|
4841
|
+
}
|
|
4842
|
+
),
|
|
4843
|
+
/* @__PURE__ */ jsx55(ScrollHintYMark, {})
|
|
4844
|
+
] })
|
|
4822
4845
|
);
|
|
4823
4846
|
ClampedList.displayName = "ClampedList";
|
|
4824
4847
|
|
package/dist/marketing.js
CHANGED
package/dist/material.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
IntentBadge
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MRVYXQE3.js";
|
|
5
5
|
import {
|
|
6
6
|
CONTENT_GUTTER,
|
|
7
7
|
Icon,
|
|
8
8
|
ScrollHintXMark
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KXI4UQPS.js";
|
|
10
10
|
import {
|
|
11
11
|
cn
|
|
12
12
|
} from "./chunk-DP5WQAPO.js";
|