@camstack/ui-library 1.2.356 → 1.2.358
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/CHANGELOG.md +20 -0
- package/dist/composites/config-broker-select-field.d.ts +14 -0
- package/dist/composites/config-discovered-select-field.d.ts +20 -0
- package/dist/composites/device-picker/DevicePicker.d.ts +7 -1
- package/dist/contexts/broker-picker-slot.d.ts +21 -0
- package/dist/generated/system-hooks.d.ts +14 -0
- package/dist/index.cjs +307 -52
- package/dist/index.d.ts +1 -0
- package/dist/index.js +298 -53
- package/dist/primitives/dialog.d.ts +2 -2
- package/dist/primitives/disclosure-chevron.d.ts +18 -0
- package/dist/primitives/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JSX, type HTMLAttributes, type ReactNode, type ForwardRefExoticComponent, type RefAttributes } from "react";
|
|
1
|
+
import { type JSX, type DialogHTMLAttributes, type HTMLAttributes, type ReactNode, type ForwardRefExoticComponent, type RefAttributes } from "react";
|
|
2
2
|
interface DialogProps {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
open?: boolean;
|
|
@@ -6,7 +6,7 @@ interface DialogProps {
|
|
|
6
6
|
}
|
|
7
7
|
export declare function Dialog({ children, open: controlledOpen, onOpenChange }: DialogProps): JSX.Element;
|
|
8
8
|
export declare function DialogTrigger({ children, ...props }: HTMLAttributes<HTMLButtonElement>): JSX.Element;
|
|
9
|
-
export interface DialogContentProps extends
|
|
9
|
+
export interface DialogContentProps extends DialogHTMLAttributes<HTMLDialogElement> {
|
|
10
10
|
width?: "sm" | "md" | "lg" | "xl";
|
|
11
11
|
scroll?: "content" | "body";
|
|
12
12
|
placement?: "center" | "sheet-on-mobile";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DisclosureChevron — the expand / collapse marker of a disclosure header.
|
|
3
|
+
*
|
|
4
|
+
* One glyph for every collapsible region (accordion sections, picker groups,
|
|
5
|
+
* log toggles): a lucide ChevronRight (collapsed) / ChevronDown (expanded) at
|
|
6
|
+
* `h-4 w-4`, the same marker `CollapsibleCard` draws. A text glyph (▸ / ▾) at
|
|
7
|
+
* `text-xs` was too small to read as a control and is refused by
|
|
8
|
+
* `scripts/check-no-glyph-chevrons.ts`.
|
|
9
|
+
*
|
|
10
|
+
* Decorative: the clickable header owns the semantics (`<button
|
|
11
|
+
* aria-expanded>`), so the icon is `aria-hidden`.
|
|
12
|
+
*/
|
|
13
|
+
import { type JSX } from "react";
|
|
14
|
+
export interface DisclosureChevronProps {
|
|
15
|
+
readonly expanded: boolean;
|
|
16
|
+
readonly className?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function DisclosureChevron({ expanded, className }: DisclosureChevronProps): JSX.Element;
|