docthub-core-components 2.67.0 → 2.69.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.esm.js +2632 -2618
- package/dist/src/components/overrides/ui/footer/footer-shared.d.ts +13 -1
- package/dist/src/components/ui/dialog.d.ts +12 -0
- package/dist/style.css +1 -4418
- package/package.json +132 -132
|
@@ -16,6 +16,15 @@ interface SeeAllLinkListProps {
|
|
|
16
16
|
readonly linkClassName?: string;
|
|
17
17
|
/** Wrapper className for the link list container. */
|
|
18
18
|
readonly className?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Unique id for this list. When provided with `expandedSectionId` and `onExpandChange`,
|
|
21
|
+
* enables accordion behavior: only one "See All" section can be expanded at a time.
|
|
22
|
+
*/
|
|
23
|
+
readonly sectionId?: string;
|
|
24
|
+
/** Which section is currently expanded (controlled accordion mode). */
|
|
25
|
+
readonly expandedSectionId?: string | null;
|
|
26
|
+
/** Called when user toggles "See All" (controlled accordion mode). */
|
|
27
|
+
readonly onExpandChange?: (sectionId: string | null) => void;
|
|
19
28
|
}
|
|
20
29
|
/**
|
|
21
30
|
* Renders a link list with an optional "See All / See Less" toggle.
|
|
@@ -24,8 +33,11 @@ interface SeeAllLinkListProps {
|
|
|
24
33
|
* threshold (`default` → 10, `compact` → 6), only the first N links are shown
|
|
25
34
|
* and a chevron toggle reveals the remaining items.
|
|
26
35
|
* When `sectionVariant` is absent, all links are always visible.
|
|
36
|
+
*
|
|
37
|
+
* With `sectionId` + `expandedSectionId` + `onExpandChange` (accordion mode),
|
|
38
|
+
* opening one "See All" auto-collapses any other expanded section.
|
|
27
39
|
*/
|
|
28
|
-
export declare function SeeAllLinkList({ links, sectionVariant, linkClassName, className, }: SeeAllLinkListProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export declare function SeeAllLinkList({ links, sectionVariant, linkClassName, className, sectionId, expandedSectionId, onExpandChange, }: SeeAllLinkListProps): import("react/jsx-runtime").JSX.Element;
|
|
29
41
|
/** Props for FooterAppButton. */
|
|
30
42
|
interface FooterAppButtonProps {
|
|
31
43
|
readonly appLink: FooterAppLink;
|
|
@@ -6,6 +6,14 @@ interface DialogProps {
|
|
|
6
6
|
modal?: boolean;
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Modal dialog built on Base UI. Supports stacked dialogs.
|
|
11
|
+
*
|
|
12
|
+
* **Stacked dialogs with overlay:** If you need an overlay on a child dialog (e.g., dimming
|
|
13
|
+
* the parent when the child is open), render both dialogs in parallel as siblings—do not
|
|
14
|
+
* nest the child dialog inside the parent's content. Use controlled state (open/onOpenChange)
|
|
15
|
+
* and trigger the child via a button callback. See the Stacked Dialogs story for the pattern.
|
|
16
|
+
*/
|
|
9
17
|
declare const Dialog: React.FC<DialogProps>;
|
|
10
18
|
interface DialogTriggerProps extends React.ComponentPropsWithoutRef<"button"> {
|
|
11
19
|
asChild?: boolean;
|
|
@@ -32,6 +40,8 @@ type DialogContentProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
|
32
40
|
size?: keyof typeof sizeClasses;
|
|
33
41
|
showCloseButton?: boolean;
|
|
34
42
|
closeOnEscape?: boolean;
|
|
43
|
+
/** When true, prevents the default auto-focus when the dialog opens. */
|
|
44
|
+
preventOpenAutoFocus?: boolean;
|
|
35
45
|
};
|
|
36
46
|
declare const DialogContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
37
47
|
closeOnOutsideClick?: boolean;
|
|
@@ -39,6 +49,8 @@ declare const DialogContent: React.ForwardRefExoticComponent<Omit<React.Detailed
|
|
|
39
49
|
size?: keyof typeof sizeClasses;
|
|
40
50
|
showCloseButton?: boolean;
|
|
41
51
|
closeOnEscape?: boolean;
|
|
52
|
+
/** When true, prevents the default auto-focus when the dialog opens. */
|
|
53
|
+
preventOpenAutoFocus?: boolean;
|
|
42
54
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
43
55
|
declare const DialogHeader: {
|
|
44
56
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|