@craftzbay/ui 0.2.2 → 0.2.4

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/README.md CHANGED
@@ -5,7 +5,7 @@ primitives — Button through DataGrid — plus composed patterns
5
5
  (authentication, app shell, settings, etc.).
6
6
 
7
7
  - **Showcase:** [design.runestonetechnologies.com](https://design.runestonetechnologies.com)
8
- - **Storybook:** [storybook.runestonetechnologies.com](https://storybook.runestonetechnologies.com)
8
+ - **Storybook:** [design.runestonetechnologies.com/storybook](https://design.runestonetechnologies.com/storybook/)
9
9
 
10
10
  > **Aesthetic direction:** Linear / Vercel / Stripe Dashboard / Notion / Raycast.
11
11
  > Neutral-dominant, one accent, hairline borders, generous whitespace, fast quiet
@@ -8,10 +8,10 @@ declare const sizeMap: {
8
8
  readonly lg: "size-10 text-sm";
9
9
  readonly xl: "size-12 text-base";
10
10
  };
11
- declare const avatar: (props?: ({
11
+ declare const avatarWrapper: (props?: ({
12
12
  size?: "md" | "xs" | "sm" | "lg" | "xl" | null | undefined;
13
13
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
14
- export interface AvatarProps extends ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>, VariantProps<typeof avatar> {
14
+ export interface AvatarProps extends ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>, VariantProps<typeof avatarWrapper> {
15
15
  /** Image URL. If absent or fails to load, fallback initials are shown. */
16
16
  src?: string;
17
17
  /** Alt text for the image; falls back to fallback when there's no `src`. */
@@ -4,6 +4,6 @@ export type CalendarProps = DayPickerProps & {
4
4
  };
5
5
  /**
6
6
  * Standalone calendar surface. Used by DatePicker, but can also be embedded
7
- * directly in popovers, sheets, or inline forms. Wraps `react-day-picker`.
7
+ * directly in popovers, sheets, or inline forms. Wraps `react-day-picker` v9.
8
8
  */
9
9
  export declare const Calendar: import('react').ForwardRefExoticComponent<CalendarProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,10 @@
1
1
  import { HTMLAttributes, ReactNode } from 'react';
2
+ interface SidebarContextValue {
3
+ collapsed: boolean;
4
+ }
5
+ /** Read the parent Sidebar's collapsed state. Useful for brand/footer slots
6
+ * that need to swap between full and compact rendering. */
7
+ export declare function useSidebar(): SidebarContextValue;
2
8
  export interface SidebarProps extends HTMLAttributes<HTMLElement> {
3
9
  /** Default state on first mount. Use `defaultCollapsed` for uncontrolled. */
4
10
  defaultCollapsed?: boolean;
@@ -67,3 +73,4 @@ export declare function SidebarGroup({ icon, label, defaultOpen, children }: Sid
67
73
  export declare namespace SidebarGroup {
68
74
  var displayName: string;
69
75
  }
76
+ export {};