@caqophony/ui 0.3.0 → 0.3.1

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.d.mts CHANGED
@@ -12,7 +12,7 @@ import { ClassValue } from 'clsx';
12
12
 
13
13
  declare const buttonVariants: (props?: ({
14
14
  variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
15
- size?: "sm" | "default" | "lg" | "icon" | null | undefined;
15
+ size?: "icon" | "default" | "sm" | "lg" | null | undefined;
16
16
  } & class_variance_authority_types.ClassProp) | undefined) => string;
17
17
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
18
18
  asChild?: boolean;
@@ -423,7 +423,7 @@ declare function ConfirmDialog({ title, message, confirmLabel, onConfirm, onCanc
423
423
  /** Supported DiceBear avatar styles */
424
424
  type DiceBearStyle = 'adventurer' | 'adventurer-neutral' | 'avataaars' | 'avataaars-neutral' | 'big-ears' | 'big-ears-neutral' | 'bottts' | 'bottts-neutral' | 'croodles' | 'croodles-neutral' | 'fun-emoji' | 'icons' | 'identicon' | 'initials' | 'lorelei' | 'lorelei-neutral' | 'micah' | 'miniavs' | 'notionists' | 'notionists-neutral' | 'open-peeps' | 'personas' | 'pixel-art' | 'pixel-art-neutral' | 'rings' | 'shapes' | 'thumbs';
425
425
  declare const avatarVariants: (props?: ({
426
- size?: "sm" | "xs" | "md" | "lg" | "xl" | "2xl" | null | undefined;
426
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
427
427
  } & class_variance_authority_types.ClassProp) | undefined) => string;
428
428
  /**
429
429
  * Build a DiceBear avatar URL from a seed and style.
@@ -978,6 +978,13 @@ declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & Reac
978
978
  * text-muted-fg -> colors.mutedFg (inactive links)
979
979
  *
980
980
  * Issue #2647 — B-16: Extended Navbar Variants
981
+ *
982
+ * #5931: below `md`, actions next to links or a search fold with them into
983
+ * the library's one phone drawer (`NavDrawer`), because the width of actions
984
+ * is unbounded and a phone row is not. Links with no actions stay the
985
+ * scrolling strip (W0), which cannot overflow; actions with no links stay on
986
+ * the bar and wrap. No prop asks for this: a page cannot get it wrong.
987
+ *
981
988
  * Authored by Caqophony
982
989
  */
983
990
 
@@ -1862,7 +1869,11 @@ interface PageHeadingProps extends Omit<React.HTMLAttributes<HTMLElement>, 'titl
1862
1869
  description?: React.ReactNode;
1863
1870
  /** Badges under the title (`IntentBadge`s); they wrap. */
1864
1871
  meta?: React.ReactNode;
1865
- /** The page's actions: they sit beside the title, and under it on a phone. */
1872
+ /**
1873
+ * The page's actions: they sit beside the title while it keeps 20rem of the
1874
+ * heading's own width (which may be a column of the page, not the screen),
1875
+ * and under it otherwise, as on a phone.
1876
+ */
1866
1877
  actions?: React.ReactNode;
1867
1878
  }
1868
1879
  declare const PageHeading: React.ForwardRefExoticComponent<PageHeadingProps & React.RefAttributes<HTMLElement>>;