@ivao/atmosphere-react 0.1.0-next.4 → 0.1.0-next.5

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.
@@ -240,6 +240,16 @@ declare const badgeVariants: (props?: ({
240
240
  size?: "sm" | "md" | "lg" | null | undefined;
241
241
  } & ClassProp) | undefined) => string;
242
242
 
243
+ declare interface BaseListItemProps extends Omit<HTMLAttributes<HTMLLIElement>, 'onClick'> {
244
+ title: string;
245
+ description?: string;
246
+ isLoading?: boolean;
247
+ children?: ReactNode;
248
+ imageAlt?: string;
249
+ iconAriaLabel?: string;
250
+ headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
251
+ }
252
+
243
253
  export declare const BlockQuote: ForwardRefExoticComponent<QuoteHTMLAttributes<HTMLQuoteElement> & RefAttributes<HTMLQuoteElement>>;
244
254
 
245
255
  export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
@@ -681,6 +691,17 @@ export declare const Input: ForwardRefExoticComponent<InputProps & RefAttributes
681
691
 
682
692
  declare type InputProps = InputHTMLAttributes<HTMLInputElement>;
683
693
 
694
+ declare type InteractionProps = {
695
+ onClick: () => void;
696
+ href?: never;
697
+ } | {
698
+ href: string;
699
+ onClick?: never;
700
+ } | {
701
+ onClick?: never;
702
+ href?: never;
703
+ };
704
+
684
705
  declare interface ISidebarContext {
685
706
  isSidebarOpen: boolean;
686
707
  setIsSidebarOpen: (value: boolean) => void;
@@ -703,6 +724,33 @@ export declare const Large: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElem
703
724
 
704
725
  export declare const Lead: ForwardRefExoticComponent<ParamHTMLAttributes<HTMLParagraphElement> & RefAttributes<HTMLParagraphElement>>;
705
726
 
727
+ export declare const ListItem: ({ title, children, description, imageSrc, iconAriaLabel, imageAlt, headingLevel, isLoading, Icon, ...props }: ListItemProps) => JSX_2.Element;
728
+
729
+ export declare const ListItemContent: ({ title, children, description, imageSrc, iconAriaLabel, imageAlt, headingLevel, onClick, href, isLoading, Icon, }: ListItemProps_2) => JSX_2.Element;
730
+
731
+ export declare type ListItemProps = BaseListItemProps & InteractionProps & VisualProps;
732
+
733
+ declare interface ListItemProps_2 extends HTMLAttributes<HTMLLIElement> {
734
+ title: string;
735
+ description?: string;
736
+ isLoading?: boolean;
737
+ children?: ReactNode;
738
+ imageSrc?: string;
739
+ imageAlt?: string;
740
+ Icon?: ComponentType;
741
+ iconAriaLabel?: string;
742
+ headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
743
+ onClick?: () => void;
744
+ href?: string;
745
+ }
746
+
747
+ export declare const ListItemRoot: ({ onClick, href, "aria-label": ariaLabel, children, ...props }: ListItemRootProps) => JSX_2.Element;
748
+
749
+ declare interface ListItemRootProps extends HTMLAttributes<HTMLLIElement> {
750
+ onClick?: () => void;
751
+ href?: string;
752
+ }
753
+
706
754
  declare type LogoProps = VariantProps<typeof IVAOLogoVariants> & {
707
755
  onlyIcon?: boolean;
708
756
  };
@@ -1202,4 +1250,15 @@ export declare const useTheme: () => ThemeContextType;
1202
1250
 
1203
1251
  export declare const useToast: () => (props: ToastProps) => void;
1204
1252
 
1253
+ declare type VisualProps = {
1254
+ Icon: ComponentType;
1255
+ imageSrc?: never;
1256
+ } | {
1257
+ imageSrc: string;
1258
+ Icon?: never;
1259
+ } | {
1260
+ Icon?: never;
1261
+ imageSrc?: never;
1262
+ };
1263
+
1205
1264
  export { }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ivao/atmosphere-react",
3
3
  "description": "React component library for the IVAO Atmosphere design system.",
4
- "version": "0.1.0-next.4",
4
+ "version": "0.1.0-next.5",
5
5
  "type": "module",
6
6
  "main": "./dist/atmosphere-react.js",
7
7
  "types": "./dist/react-components.d.ts",