@blakesteve/roster 1.0.0 → 1.0.2

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.
Files changed (46) hide show
  1. package/dist/App.d.ts +2 -0
  2. package/dist/components/atoms/Avatar/Avatar.d.ts +11 -0
  3. package/dist/components/atoms/Avatar/avatar-variants.d.ts +5 -0
  4. package/dist/components/atoms/Badge/Badge.d.ts +10 -0
  5. package/dist/components/atoms/Badge/badge-variants.d.ts +6 -0
  6. package/dist/components/atoms/Button/Button.d.ts +10 -0
  7. package/dist/components/atoms/Button/button-variants.d.ts +5 -0
  8. package/dist/components/atoms/Card/Card.d.ts +14 -0
  9. package/dist/components/atoms/Card/card-variants.d.ts +4 -0
  10. package/dist/components/atoms/Disclosure/Disclosure.d.ts +13 -0
  11. package/dist/components/atoms/Disclosure/disclosure-variants.d.ts +7 -0
  12. package/dist/components/atoms/Input/Input.d.ts +12 -0
  13. package/dist/components/atoms/Input/input-variants.d.ts +4 -0
  14. package/dist/components/atoms/Link/Link.d.ts +14 -0
  15. package/dist/components/atoms/Link/link-variants.d.ts +5 -0
  16. package/dist/components/atoms/Select/Select.d.ts +18 -0
  17. package/dist/components/atoms/Select/select-variants.d.ts +4 -0
  18. package/dist/components/atoms/Spinner/Spinner.d.ts +9 -0
  19. package/dist/components/atoms/Switch/Switch.d.ts +13 -0
  20. package/dist/components/atoms/Switch/switch-variants.d.ts +7 -0
  21. package/dist/components/atoms/Textarea/Textarea.d.ts +10 -0
  22. package/dist/components/atoms/Textarea/textarea-variants.d.ts +5 -0
  23. package/dist/components/molecules/Accordion/Accordion.d.ts +17 -0
  24. package/dist/components/molecules/Breadcrumbs/Breadcrumbs.d.ts +14 -0
  25. package/dist/components/molecules/Breadcrumbs/breadcrumb-variants.d.ts +3 -0
  26. package/dist/components/molecules/CallToAction/CallToAction.d.ts +12 -0
  27. package/dist/components/molecules/CallToAction/call-to-action-variants.d.ts +3 -0
  28. package/dist/components/molecules/EmptyState/EmptyState.d.ts +11 -0
  29. package/dist/components/molecules/EmptyState/empty-state-variants.d.ts +3 -0
  30. package/dist/components/molecules/ErrorState/ErrorState.d.ts +12 -0
  31. package/dist/components/molecules/ErrorState/error-state-variants.d.ts +3 -0
  32. package/dist/components/molecules/MatchupCard/MatchupCard.d.ts +19 -0
  33. package/dist/components/organisms/ActionBar/ActionBar.d.ts +17 -0
  34. package/dist/components/organisms/ActionBar/action-bar-variants.d.ts +4 -0
  35. package/dist/components/organisms/Countdown/Countdown.d.ts +14 -0
  36. package/dist/components/organisms/Dialog/Dialog.d.ts +18 -0
  37. package/dist/components/organisms/Footer/Footer.d.ts +9 -0
  38. package/dist/components/organisms/Navbar/Navbar.d.ts +25 -0
  39. package/dist/components/organisms/Navbar/navbar-variants.d.ts +4 -0
  40. package/dist/hooks/useCountdown.d.ts +9 -0
  41. package/dist/index.d.ts +40 -1
  42. package/dist/lib/utils.d.ts +2 -0
  43. package/dist/roster.es.js +11175 -1677
  44. package/dist/roster.umd.js +562 -4
  45. package/package.json +2 -1
  46. package/dist/vite.svg +0 -1
package/dist/App.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ declare function App(): import("react/jsx-runtime").JSX.Element;
2
+ export default App;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { avatarVariants } from './avatar-variants';
4
+ export interface AvatarProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof avatarVariants> {
5
+ initials?: string;
6
+ src?: string;
7
+ alt?: string;
8
+ title?: string;
9
+ }
10
+ declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
11
+ export { Avatar };
@@ -0,0 +1,5 @@
1
+ export declare const avatarVariants: (props?: ({
2
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
3
+ colorScheme?: "primary" | "orange" | "teal" | "purple" | "amber" | "success" | "error" | "neutral" | null | undefined;
4
+ shape?: "circle" | "square" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,10 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { badgeVariants } from './badge-variants';
3
+ import * as React from "react";
4
+ export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, Omit<VariantProps<typeof badgeVariants>, "fill"> {
5
+ fill?: VariantProps<typeof badgeVariants>["fill"];
6
+ leftIcon?: React.ReactNode;
7
+ rightIcon?: React.ReactNode;
8
+ }
9
+ declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
10
+ export { Badge };
@@ -0,0 +1,6 @@
1
+ export declare const badgeVariants: (props?: ({
2
+ variant?: "primary" | "orange" | "teal" | "purple" | "amber" | "success" | "error" | "neutral" | null | undefined;
3
+ fill?: "soft" | "solid" | "outline" | null | undefined;
4
+ statusBadge?: boolean | null | undefined;
5
+ size?: "xs" | "sm" | "md" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { buttonVariants } from './button-variants';
4
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
5
+ isLoading?: boolean;
6
+ startIcon?: React.ReactNode;
7
+ endIcon?: React.ReactNode;
8
+ }
9
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
10
+ export { Button };
@@ -0,0 +1,5 @@
1
+ export declare const buttonVariants: (props?: ({
2
+ variant?: "link" | "soft" | "solid" | "outline" | "ghost" | null | undefined;
3
+ colorScheme?: "primary" | "orange" | "teal" | "purple" | "amber" | "success" | "error" | "neutral" | null | undefined;
4
+ size?: "sm" | "lg" | "default" | "icon" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { cardVariants } from './card-variants';
4
+ export interface CardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
5
+ children: React.ReactNode;
6
+ /** Adds the signature top/bottom colored borders */
7
+ branded?: boolean;
8
+ /** Custom hex color for the top border. Defaults to theme Orange. */
9
+ brandColorTop?: string;
10
+ /** Custom hex color for the bottom border. Defaults to theme Primary. */
11
+ brandColorBottom?: string;
12
+ }
13
+ declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
14
+ export { Card };
@@ -0,0 +1,4 @@
1
+ export declare const cardVariants: (props?: ({
2
+ variant?: "default" | "ghost" | "filled" | null | undefined;
3
+ padding?: "sm" | "md" | "lg" | "none" | null | undefined;
4
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { disclosureTriggerVariants } from './disclosure-variants';
4
+ export interface DisclosureProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title" | "onToggle">, VariantProps<typeof disclosureTriggerVariants> {
5
+ title: React.ReactNode;
6
+ children: React.ReactNode;
7
+ defaultOpen?: boolean;
8
+ isOpen?: boolean;
9
+ onToggle?: (isOpen: boolean) => void;
10
+ icon?: React.ReactNode;
11
+ }
12
+ declare const Disclosure: ({ title, children, variant, className, defaultOpen, isOpen: controlledOpen, onToggle, icon, ...props }: DisclosureProps) => import("react/jsx-runtime").JSX.Element;
13
+ export { Disclosure };
@@ -0,0 +1,7 @@
1
+ export declare const disclosureTriggerVariants: (props?: ({
2
+ variant?: "soft" | "outline" | "ghost" | "filled" | null | undefined;
3
+ rounded?: boolean | null | undefined;
4
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
+ export declare const disclosureContentVariants: (props?: ({
6
+ variant?: "soft" | "outline" | "ghost" | "filled" | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { inputVariants } from './input-variants';
4
+ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
5
+ label?: string;
6
+ helperText?: string;
7
+ errorMessage?: string;
8
+ startIcon?: React.ReactNode;
9
+ endIcon?: React.ReactNode;
10
+ }
11
+ declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
12
+ export { Input };
@@ -0,0 +1,4 @@
1
+ export declare const inputVariants: (props?: ({
2
+ variant?: "soft" | "outline" | "ghost" | "filled" | null | undefined;
3
+ error?: boolean | null | undefined;
4
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { linkVariants } from './link-variants';
4
+ interface LinkBaseProps extends VariantProps<typeof linkVariants> {
5
+ children: React.ReactNode;
6
+ external?: boolean;
7
+ showExternalIcon?: boolean;
8
+ className?: string;
9
+ }
10
+ type LinkProps<C extends React.ElementType> = LinkBaseProps & {
11
+ as?: C;
12
+ } & Omit<React.ComponentPropsWithoutRef<C>, keyof LinkBaseProps | "as">;
13
+ export declare const Link: <C extends React.ElementType = "a">({ as, className, variant, underline, size, external, showExternalIcon, children, ...props }: LinkProps<C>) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare const linkVariants: (props?: ({
2
+ variant?: "primary" | "neutral" | "white" | "danger" | null | undefined;
3
+ underline?: "none" | "always" | "hover" | null | undefined;
4
+ size?: "sm" | "md" | "lg" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,18 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { selectTriggerVariants } from './select-variants';
3
+ export type SelectOption = {
4
+ value: string | number;
5
+ label: string;
6
+ disabled?: boolean;
7
+ };
8
+ export interface SelectProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange">, VariantProps<typeof selectTriggerVariants> {
9
+ options: SelectOption[];
10
+ value: string | number | null;
11
+ onChange: (value: string | number) => void;
12
+ placeholder?: string;
13
+ disabled?: boolean;
14
+ className?: string;
15
+ label?: string;
16
+ }
17
+ declare const Select: ({ options, value, onChange, placeholder, disabled, variant, error, className, label, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
18
+ export { Select };
@@ -0,0 +1,4 @@
1
+ export declare const selectTriggerVariants: (props?: ({
2
+ variant?: "soft" | "outline" | "ghost" | "filled" | null | undefined;
3
+ error?: boolean | null | undefined;
4
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,9 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ declare const spinnerVariants: (props?: ({
3
+ size?: "sm" | "md" | "lg" | null | undefined;
4
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
+ export interface SpinnerProps extends VariantProps<typeof spinnerVariants> {
6
+ className?: string;
7
+ }
8
+ export declare const Spinner: ({ size, className }: SpinnerProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,13 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { switchTrackVariants } from './switch-variants';
3
+ export interface SwitchProps extends VariantProps<typeof switchTrackVariants> {
4
+ checked: boolean;
5
+ onChange: (checked: boolean) => void;
6
+ label?: string;
7
+ description?: string;
8
+ disabled?: boolean;
9
+ className?: string;
10
+ ariaLabel?: string;
11
+ }
12
+ declare const Switch: ({ checked, onChange, label, description, disabled, size, variant, className, ariaLabel, }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
13
+ export { Switch };
@@ -0,0 +1,7 @@
1
+ export declare const switchTrackVariants: (props?: ({
2
+ variant?: "primary" | "success" | "neutral" | "danger" | null | undefined;
3
+ size?: "sm" | "md" | "lg" | null | undefined;
4
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
+ export declare const switchThumbVariants: (props?: ({
6
+ size?: "sm" | "md" | "lg" | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { textareaVariants } from './textarea-variants';
4
+ export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof textareaVariants> {
5
+ label?: string;
6
+ helperText?: string;
7
+ errorMessage?: string;
8
+ }
9
+ declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
10
+ export { Textarea };
@@ -0,0 +1,5 @@
1
+ export declare const textareaVariants: (props?: ({
2
+ variant?: "soft" | "outline" | "ghost" | "filled" | null | undefined;
3
+ error?: boolean | null | undefined;
4
+ resize?: "none" | "both" | "horizontal" | "vertical" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ export interface AccordionItem {
3
+ id: string | number;
4
+ title: React.ReactNode;
5
+ content: React.ReactNode;
6
+ disabled?: boolean;
7
+ }
8
+ export interface AccordionProps {
9
+ items: AccordionItem[];
10
+ allowMultiple?: boolean;
11
+ variant?: "soft" | "filled" | "outline" | "ghost";
12
+ className?: string;
13
+ showDividers?: boolean;
14
+ defaultOpenIds?: (string | number)[];
15
+ }
16
+ declare const Accordion: ({ items, allowMultiple, variant, className, showDividers, defaultOpenIds, }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
17
+ export { Accordion };
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { breadcrumbVariants } from './breadcrumb-variants';
4
+ export type BreadcrumbItem = {
5
+ label: string;
6
+ href: string;
7
+ };
8
+ export interface BreadcrumbsProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof breadcrumbVariants> {
9
+ items: BreadcrumbItem[];
10
+ separator?: React.ReactNode;
11
+ showHomeIcon?: boolean;
12
+ }
13
+ declare const Breadcrumbs: ({ items, separator, showHomeIcon, variant, className, ...props }: BreadcrumbsProps) => import("react/jsx-runtime").JSX.Element;
14
+ export { Breadcrumbs };
@@ -0,0 +1,3 @@
1
+ export declare const breadcrumbVariants: (props?: ({
2
+ variant?: "primary" | "default" | "inverse" | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { ctaVariants } from './call-to-action-variants';
4
+ export interface CallToActionProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof ctaVariants> {
5
+ title: string;
6
+ description?: string;
7
+ action?: React.ReactNode;
8
+ icon?: React.ReactNode;
9
+ onDismiss?: () => void;
10
+ }
11
+ declare const CallToAction: ({ title, description, action, icon, variant, onDismiss, className, ...props }: CallToActionProps) => import("react/jsx-runtime").JSX.Element;
12
+ export { CallToAction };
@@ -0,0 +1,3 @@
1
+ export declare const ctaVariants: (props?: ({
2
+ variant?: "primary" | "error" | "neutral" | "warning" | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { emptyStateVariants } from './empty-state-variants';
4
+ export interface EmptyStateProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof emptyStateVariants> {
5
+ title: string;
6
+ description?: string;
7
+ icon?: React.ReactNode;
8
+ action?: React.ReactNode;
9
+ }
10
+ declare const EmptyState: ({ title, description, icon, action, variant, className, ...props }: EmptyStateProps) => import("react/jsx-runtime").JSX.Element;
11
+ export { EmptyState };
@@ -0,0 +1,3 @@
1
+ export declare const emptyStateVariants: (props?: ({
2
+ variant?: "dashed" | "simple" | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { errorStateVariants } from './error-state-variants';
4
+ export interface ErrorStateProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof errorStateVariants> {
5
+ title?: string;
6
+ description: string;
7
+ onRetry?: () => void;
8
+ action?: React.ReactNode;
9
+ icon?: React.ReactNode;
10
+ }
11
+ declare const ErrorState: ({ title, description, onRetry, action, icon, variant, className, ...props }: ErrorStateProps) => import("react/jsx-runtime").JSX.Element;
12
+ export { ErrorState };
@@ -0,0 +1,3 @@
1
+ export declare const errorStateVariants: (props?: ({
2
+ variant?: "page" | "card" | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ export interface TeamMatchupData {
3
+ id: string | number;
4
+ logoSrc: string;
5
+ name?: string;
6
+ score?: number;
7
+ isWinner?: boolean;
8
+ /** Generic slot for extra info like pick counts "(5)", records "(10-2)", or odds */
9
+ accessory?: React.ReactNode;
10
+ }
11
+ export interface MatchupCardProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
12
+ awayTeam: TeamMatchupData;
13
+ homeTeam: TeamMatchupData;
14
+ /** Determines if scores should be shown and if win/loss styles apply */
15
+ isCompleted?: boolean;
16
+ isTie?: boolean;
17
+ }
18
+ declare const MatchupCard: React.ForwardRefExoticComponent<MatchupCardProps & React.RefAttributes<HTMLButtonElement>>;
19
+ export { MatchupCard };
@@ -0,0 +1,17 @@
1
+ import { ReactNode, HTMLAttributes } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { actionBarVariants } from './action-bar-variants';
4
+ export interface ActionBarProps extends Omit<HTMLAttributes<HTMLDivElement>, "title">, VariantProps<typeof actionBarVariants> {
5
+ /** The primary text or element on the left (e.g., "5 of 16") */
6
+ title?: ReactNode;
7
+ /** Secondary text below the title/badge (e.g., "Week 4") */
8
+ subtitle?: ReactNode;
9
+ /** A slot for a status indicator next to the title */
10
+ badge?: ReactNode;
11
+ /** A slot for buttons aligned to the right */
12
+ actions?: ReactNode;
13
+ /** Content rendered in the bottom tray (e.g., the logo list) */
14
+ children?: ReactNode;
15
+ }
16
+ declare const ActionBar: import('react').ForwardRefExoticComponent<ActionBarProps & import('react').RefAttributes<HTMLDivElement>>;
17
+ export { ActionBar };
@@ -0,0 +1,4 @@
1
+ export declare const actionBarVariants: (props?: ({
2
+ position?: "static" | "top" | "bottom" | null | undefined;
3
+ themeMode?: "light" | "dark" | null | undefined;
4
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ declare const titleVariants: (props?: ({
4
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
5
+ themeMode?: "light" | "dark" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export interface CountdownProps extends React.HTMLAttributes<HTMLDivElement>, Omit<VariantProps<typeof titleVariants>, "themeMode"> {
8
+ targetDate: Date;
9
+ title?: string;
10
+ completionText?: string;
11
+ themeMode?: "light" | "dark";
12
+ }
13
+ declare const Countdown: React.ForwardRefExoticComponent<CountdownProps & React.RefAttributes<HTMLDivElement>>;
14
+ export { Countdown };
@@ -0,0 +1,18 @@
1
+ import { ReactNode } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ declare const dialogVariants: (props?: ({
4
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | null | undefined;
5
+ variant?: "success" | "default" | "glass" | "destructive" | null | undefined;
6
+ themeMode?: "light" | "dark" | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
+ export interface DialogProps extends Omit<VariantProps<typeof dialogVariants>, "themeMode"> {
9
+ isOpen: boolean;
10
+ onClose: () => void;
11
+ title: string;
12
+ description?: string;
13
+ children: ReactNode;
14
+ className?: string;
15
+ themeMode?: "light" | "dark";
16
+ }
17
+ declare const Dialog: ({ isOpen, onClose, title, description, size, variant, themeMode, children, className, }: DialogProps) => import("react/jsx-runtime").JSX.Element;
18
+ export { Dialog };
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ export interface FooterProps extends React.HTMLAttributes<HTMLElement> {
3
+ /** * The company name to display in the copyright notice.
4
+ * @default "Ball Collaborative"
5
+ */
6
+ companyName?: string;
7
+ }
8
+ declare const Footer: React.ForwardRefExoticComponent<FooterProps & React.RefAttributes<HTMLElement>>;
9
+ export { Footer };
@@ -0,0 +1,25 @@
1
+ import { default as React } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { navbarVariants } from './navbar-variants';
4
+ export interface NavItem {
5
+ label: string;
6
+ path: string;
7
+ }
8
+ export interface NavbarProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof navbarVariants> {
9
+ logoSrc: string;
10
+ brandName: string;
11
+ items: NavItem[];
12
+ activePath?: string;
13
+ routerElement?: React.ElementType;
14
+ user?: {
15
+ initials: string;
16
+ notificationCount?: number;
17
+ avatarSrc?: string;
18
+ };
19
+ onLogout: () => void;
20
+ onInboxClick: () => void;
21
+ themeMode?: "light" | "dark";
22
+ notificationVariant?: "primary" | "error" | "amber" | "success" | "neutral" | "orange" | "teal" | "purple";
23
+ }
24
+ declare const Navbar: ({ logoSrc, brandName, items, activePath, routerElement, user, onLogout, onInboxClick, className, variant, position, themeMode, notificationVariant, ...props }: NavbarProps) => import("react/jsx-runtime").JSX.Element;
25
+ export { Navbar };
@@ -0,0 +1,4 @@
1
+ export declare const navbarVariants: (props?: ({
2
+ variant?: "primary" | "white" | "transparent" | "slate" | null | undefined;
3
+ position?: "fixed" | "static" | "sticky" | null | undefined;
4
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,9 @@
1
+ interface CountdownResult {
2
+ days: number;
3
+ hours: number;
4
+ minutes: number;
5
+ seconds: number;
6
+ isFinished: boolean;
7
+ }
8
+ export declare const useCountdown: (targetDate: Date) => CountdownResult;
9
+ export {};
package/dist/index.d.ts CHANGED
@@ -1 +1,40 @@
1
- export {}
1
+ export * from './components/atoms/Avatar/Avatar';
2
+ export * from './components/atoms/Avatar/avatar-variants';
3
+ export * from './components/atoms/Badge/Badge';
4
+ export * from './components/atoms/Badge/badge-variants';
5
+ export * from './components/atoms/Button/Button';
6
+ export * from './components/atoms/Button/button-variants';
7
+ export * from './components/atoms/Card/Card';
8
+ export * from './components/atoms/Card/card-variants';
9
+ export * from './components/atoms/Disclosure/Disclosure';
10
+ export * from './components/atoms/Disclosure/disclosure-variants';
11
+ export * from './components/atoms/Input/Input';
12
+ export * from './components/atoms/Input/input-variants';
13
+ export * from './components/atoms/Link/Link';
14
+ export * from './components/atoms/Link/link-variants';
15
+ export * from './components/atoms/Select/Select';
16
+ export * from './components/atoms/Select/select-variants';
17
+ export * from './components/atoms/Spinner/Spinner';
18
+ export * from './components/atoms/Switch/Switch';
19
+ export * from './components/atoms/Switch/switch-variants';
20
+ export * from './components/atoms/Textarea/Textarea';
21
+ export * from './components/atoms/Textarea/textarea-variants';
22
+ export * from './components/molecules/Accordion/Accordion';
23
+ export * from './components/molecules/Breadcrumbs/Breadcrumbs';
24
+ export * from './components/molecules/Breadcrumbs/breadcrumb-variants';
25
+ export * from './components/molecules/CallToAction/CallToAction';
26
+ export * from './components/molecules/CallToAction/call-to-action-variants';
27
+ export * from './components/molecules/EmptyState/EmptyState';
28
+ export * from './components/molecules/EmptyState/empty-state-variants';
29
+ export * from './components/molecules/ErrorState/ErrorState';
30
+ export * from './components/molecules/ErrorState/error-state-variants';
31
+ export * from './components/molecules/MatchupCard/MatchupCard';
32
+ export * from './components/organisms/ActionBar/ActionBar';
33
+ export * from './components/organisms/ActionBar/action-bar-variants';
34
+ export * from './components/organisms/Countdown/Countdown';
35
+ export * from './components/organisms/Dialog/Dialog';
36
+ export * from './components/organisms/Footer/Footer';
37
+ export * from './components/organisms/Navbar/Navbar';
38
+ export * from './components/organisms/Navbar/navbar-variants';
39
+ export * from './hooks/useCountdown';
40
+ export * from './lib/utils';
@@ -0,0 +1,2 @@
1
+ import { ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;