@camstack/ui-library 1.2.46 → 1.2.48

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.
@@ -32,13 +32,27 @@ export declare function DialogTrigger({ children, ...props }: HTMLAttributes<HTM
32
32
  */
33
33
  declare const contentVariants: (props?: ({
34
34
  width?: "sm" | "md" | "lg" | null | undefined;
35
+ scroll?: "content" | "body" | null | undefined;
35
36
  placement?: "center" | "sheet-on-mobile" | null | undefined;
36
37
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
37
38
  export type DialogPlacement = NonNullable<VariantProps<typeof contentVariants>['placement']>;
38
39
  export interface DialogContentProps extends HTMLAttributes<HTMLDialogElement>, VariantProps<typeof contentVariants> {
39
40
  }
40
41
  export declare const DialogContent: import('react').ForwardRefExoticComponent<DialogContentProps & import('react').RefAttributes<HTMLDialogElement>>;
42
+ /** `shrink-0` is inert outside a flex column and load-bearing inside one:
43
+ * under `scroll="body"` the header must keep its height while the body gives
44
+ * ground, or a long form squeezes its own title to nothing. */
41
45
  export declare function DialogHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
46
+ /**
47
+ * The scrolling middle of a `scroll="body"` dialog.
48
+ *
49
+ * `min-h-0` is what makes it work: a flex item's default `min-height: auto`
50
+ * refuses to shrink below its content, so without it the body pushes the
51
+ * footer out of the dialog instead of scrolling — the exact failure this
52
+ * variant exists to remove. Anything sticky INSIDE a dialog body pins against
53
+ * this element, since it is the scroll container.
54
+ */
55
+ export declare function DialogBody({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
42
56
  export declare function DialogFooter({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
43
57
  export declare function DialogTitle({ className, ...props }: HTMLAttributes<HTMLHeadingElement>): import("react").JSX.Element;
44
58
  export declare function DialogDescription({ className, ...props }: HTMLAttributes<HTMLParagraphElement>): import("react").JSX.Element;
@@ -5,6 +5,23 @@ interface TabsProps extends HTMLAttributes<HTMLDivElement> {
5
5
  defaultValue?: string;
6
6
  }
7
7
  export declare function Tabs({ value: controlledValue, onValueChange, defaultValue, className, ...props }: TabsProps): import("react").JSX.Element;
8
+ /**
9
+ * The strip SCROLLS sideways; it never squashes and never clips.
10
+ *
11
+ * Before this, the bar was a bare `flex flex-row`: every trigger was a
12
+ * shrinkable flex item with no `whitespace-nowrap`, so past ~4 tabs on a narrow
13
+ * viewport the labels wrapped inside a fixed-height (`h-7`) button and the
14
+ * last tabs left the box with no way to reach them. That is the "the headers
15
+ * are not scrollable" report on the Notification Center, whose rule sections
16
+ * (6) and rule-editor tabs (up to 6) both live in one of these.
17
+ *
18
+ * BOTH axes are spelled out on purpose. Per CSS Overflow, `visible` is not
19
+ * combinable with `auto`, so `overflow-x-auto` alone would silently promote
20
+ * `overflow-y` to `auto` as well — and a one-row bar whose content box is
21
+ * shortened by the horizontal scrollbar then raises a SECOND, vertical
22
+ * scrollbar. That exact defect is documented on `SchemaTabBar`; `overflow-y`
23
+ * pinned to `hidden` makes it impossible here.
24
+ */
8
25
  export declare function TabsList({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
9
26
  interface TabsTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement> {
10
27
  value: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/ui-library",
3
- "version": "1.2.46",
3
+ "version": "1.2.48",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",