@ivao/atmosphere-react 0.0.1-next.0 → 0.1.0-next.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.
@@ -50,7 +50,6 @@ import { Sub as DropdownMenuSub } from '@radix-ui/react-dropdown-menu';
50
50
  import { DropdownMenuSubContentProps } from '@radix-ui/react-dropdown-menu';
51
51
  import { DropdownMenuSubTriggerProps } from '@radix-ui/react-dropdown-menu';
52
52
  import { Trigger as DropdownMenuTrigger } from '@radix-ui/react-dropdown-menu';
53
- import { FC } from 'react';
54
53
  import { ForwardRefExoticComponent } from 'react';
55
54
  import { FunctionComponent } from 'react';
56
55
  import { HoverCardContentProps } from '@radix-ui/react-hover-card';
@@ -183,7 +182,7 @@ export declare const AlertDialogOverlay: ForwardRefExoticComponent<Omit<AlertDia
183
182
 
184
183
  export { AlertDialogPortal }
185
184
 
186
- declare interface AlertDialogProps extends Pick<ComponentProps<typeof AlertDialogRoot>, 'defaultOpen' | 'open' | 'onOpenChange'> {
185
+ declare interface AlertDialogProps extends Pick<ComponentProps<typeof AlertDialogRoot>, 'defaultOpen' | 'open' | 'onOpenChange' | 'children'> {
187
186
  title: string;
188
187
  description?: string;
189
188
  triggerText: string;
@@ -246,6 +245,8 @@ export declare const BlockQuote: ForwardRefExoticComponent<QuoteHTMLAttributes<H
246
245
  export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
247
246
 
248
247
  export declare interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
248
+ asChild?: boolean;
249
+ isLoading?: boolean;
249
250
  }
250
251
 
251
252
  declare const buttonVariants: (props?: ({
@@ -294,14 +295,14 @@ export declare interface CarouselProps extends Omit<CarouselRootProps, 'children
294
295
  })[];
295
296
  }
296
297
 
297
- export declare const CarouselRoot: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & CarouselRootProps & RefAttributes<HTMLDivElement>>;
298
+ export declare const CarouselRoot: ForwardRefExoticComponent<CarouselRootProps & RefAttributes<HTMLDivElement>>;
298
299
 
299
- declare type CarouselRootProps = {
300
+ declare interface CarouselRootProps extends HTMLAttributes<HTMLDivElement> {
300
301
  opts?: CarouselOptions;
301
302
  plugins?: CarouselPlugin;
302
303
  orientation?: 'horizontal' | 'vertical';
303
304
  setApi?: (api: CarouselApi) => void;
304
- };
305
+ }
305
306
 
306
307
  export declare const Checkbox: ForwardRefExoticComponent<Omit<Omit<CheckboxProps & RefAttributes<HTMLButtonElement>, "ref"> & RefAttributes<HTMLButtonElement>, "ref"> & RefAttributes<HTMLButtonElement>>;
307
308
 
@@ -473,7 +474,7 @@ export declare const CommandShortcut: {
473
474
 
474
475
  export declare const DarkModeToggle: ComponentType<DarkModeToggleProps>;
475
476
 
476
- declare type DarkModeToggleProps = ComponentProps<typeof IconButton>;
477
+ declare type DarkModeToggleProps = Omit<ComponentProps<typeof IconButton>, 'onClick' | 'Icon'> & Pick<ComponentPropsWithoutRef<typeof Tooltip>, 'side' | 'sideOffset' | 'align' | 'alignOffset'>;
477
478
 
478
479
  export declare const DataTable: {
479
480
  <TData>({ displayPagination, isClientSideData, displayViewOptions, ToolbarContent, ...props }: DataTableProps<TData>): JSX_2.Element;
@@ -536,7 +537,7 @@ export declare type DatePickerProps = CalendarProps & {
536
537
  export { DateRange }
537
538
 
538
539
  export declare const Dialog: {
539
- ({ trigger, title, description, children, topRighCloseButton, footer, ...props }: DialogProps): JSX_2.Element;
540
+ ({ trigger, title, description, children, topRightCloseButton, footer, ...props }: DialogProps): JSX_2.Element;
540
541
  displayName: string;
541
542
  };
542
543
 
@@ -560,7 +561,7 @@ export declare interface DialogProps extends ComponentPropsWithoutRef<typeof Roo
560
561
  trigger?: ReactNode;
561
562
  title: string;
562
563
  description?: string;
563
- topRighCloseButton?: boolean;
564
+ topRightCloseButton?: boolean;
564
565
  footer?: ReactNode;
565
566
  }
566
567
 
@@ -652,11 +653,11 @@ export declare const H3: ForwardRefExoticComponent<HTMLAttributes<HTMLHeadingEle
652
653
 
653
654
  export declare const H4: ForwardRefExoticComponent<HTMLAttributes<HTMLHeadingElement> & RefAttributes<HTMLHeadingElement>>;
654
655
 
655
- export declare const HoverCard: ({ trigger, triggerAsChild, children, ...props }: HoverCardProps) => JSX_2.Element;
656
+ export declare const HoverCard: ({ trigger, triggerAsChild, children, side, sideOffset, align, alignOffset, ...props }: HoverCardProps) => JSX_2.Element;
656
657
 
657
658
  export declare const HoverCardContent: ForwardRefExoticComponent<Omit<HoverCardContentProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
658
659
 
659
- export declare interface HoverCardProps extends ComponentProps<typeof HoverCardRoot> {
660
+ export declare interface HoverCardProps extends ComponentProps<typeof HoverCardRoot>, Pick<ComponentProps<typeof HoverCardContent>, 'side' | 'sideOffset' | 'align' | 'alignOffset'> {
660
661
  trigger: ReactNode;
661
662
  triggerAsChild?: boolean;
662
663
  }
@@ -669,6 +670,7 @@ export declare const IconButton: ForwardRefExoticComponent<Omit<IconButtonProps,
669
670
 
670
671
  declare interface IconButtonProps extends ComponentProps<typeof Button> {
671
672
  children: ReactNode;
673
+ buttonVariant?: ButtonProps['variant'];
672
674
  }
673
675
 
674
676
  export declare const InlineCode: ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
@@ -686,11 +688,11 @@ declare interface ISidebarContext {
686
688
  }
687
689
 
688
690
  export declare const IVAOLogo: {
689
- ({ color, size }: LogoProps): JSX_2.Element;
691
+ ({ color, size, onlyIcon }: LogoProps): JSX_2.Element;
690
692
  displayName: string;
691
693
  };
692
694
 
693
- declare const IVAOlogoVariants: (props?: ({
695
+ declare const IVAOLogoVariants: (props?: ({
694
696
  color?: "white" | "atmos" | null | undefined;
695
697
  size?: "sm" | "md" | "lg" | null | undefined;
696
698
  } & ClassProp) | undefined) => string;
@@ -701,7 +703,9 @@ export declare const Large: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElem
701
703
 
702
704
  export declare const Lead: ForwardRefExoticComponent<ParamHTMLAttributes<HTMLParagraphElement> & RefAttributes<HTMLParagraphElement>>;
703
705
 
704
- declare type LogoProps = VariantProps<typeof IVAOlogoVariants>;
706
+ declare type LogoProps = VariantProps<typeof IVAOLogoVariants> & {
707
+ onlyIcon?: boolean;
708
+ };
705
709
 
706
710
  export declare const Navbar: ComponentType<PropsWithChildren<NavbarProps>>;
707
711
 
@@ -785,7 +789,8 @@ export declare const PaginationLink: {
785
789
 
786
790
  export declare type PaginationLinkProps = {
787
791
  isActive?: boolean;
788
- } & ButtonProps;
792
+ size?: ButtonProps['size'];
793
+ } & Omit<ButtonProps, 'variant' | 'size' | 'aria-current'>;
789
794
 
790
795
  export declare const PaginationNext: {
791
796
  ({ className, ...props }: ComponentProps<typeof PaginationLink>): JSX_2.Element;
@@ -820,7 +825,7 @@ export declare const PaginationRoot: {
820
825
  displayName: string;
821
826
  };
822
827
 
823
- export declare const Popover: FC<PopoverProps>;
828
+ export declare const Popover: ComponentType<PopoverProps>;
824
829
 
825
830
  export { PopoverAnchor }
826
831
 
@@ -828,10 +833,10 @@ export declare const PopoverContent: ForwardRefExoticComponent<Omit<PopoverConte
828
833
 
829
834
  export { PopoverPortal }
830
835
 
831
- export declare interface PopoverProps {
836
+ export declare type PopoverProps = {
832
837
  trigger: ReactNode;
833
838
  children: ReactNode;
834
- }
839
+ } & Omit<ComponentPropsWithoutRef<typeof PopoverRoot>, 'children'> & Pick<ComponentPropsWithoutRef<typeof PopoverContent>, 'side' | 'sideOffset' | 'align' | 'alignOffset'>;
835
840
 
836
841
  export { PopoverRoot }
837
842
 
@@ -907,7 +912,7 @@ export declare const SelectLabel: ForwardRefExoticComponent<Omit<SelectLabelProp
907
912
 
908
913
  export { SelectPortal }
909
914
 
910
- declare interface SelectProps extends Omit<ComponentProps<typeof SelectRoot>, 'children'>, Pick<ComponentProps<typeof SelectValue>, 'placeholder' | 'className'>, Omit<SelectContentProps, 'dir' | 'defaultValue'> {
915
+ declare interface SelectProps extends Omit<ComponentProps<typeof SelectRoot>, 'children'>, Pick<ComponentProps<typeof SelectValue>, 'placeholder' | 'className'>, Omit<SelectContentProps, 'dir' | 'defaultValue' | 'children'> {
911
916
  items: SelectItemProps_2[] | {
912
917
  [key: string]: SelectItemProps_2[];
913
918
  };
@@ -1164,7 +1169,7 @@ export declare const Tooltip: ComponentType<TooltipProps>;
1164
1169
 
1165
1170
  export declare const TooltipContent: ForwardRefExoticComponent<Omit<TooltipContentProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
1166
1171
 
1167
- export declare interface TooltipProps extends Omit<ComponentPropsWithoutRef<typeof TooltipRoot>, 'children'> {
1172
+ export declare interface TooltipProps extends Omit<ComponentPropsWithoutRef<typeof TooltipRoot>, 'children'>, Pick<ComponentPropsWithoutRef<typeof TooltipContent>, 'side' | 'sideOffset' | 'align' | 'alignOffset'> {
1168
1173
  children: ReactNode;
1169
1174
  content: ReactNode;
1170
1175
  }
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.0.1-next.0",
4
+ "version": "0.1.0-next.1",
5
5
  "type": "module",
6
6
  "main": "./dist/atmosphere-react.js",
7
7
  "types": "./dist/react-components.d.ts",
@@ -54,6 +54,7 @@
54
54
  "@radix-ui/react-select": "2.1.6",
55
55
  "@radix-ui/react-separator": "1.1.2",
56
56
  "@radix-ui/react-slider": "1.2.3",
57
+ "@radix-ui/react-slot": "^1.1.2",
57
58
  "@radix-ui/react-switch": "1.1.3",
58
59
  "@radix-ui/react-tabs": "1.1.3",
59
60
  "@radix-ui/react-toast": "1.2.6",
@@ -70,16 +71,16 @@
70
71
  "react-day-picker": "8.10.1",
71
72
  "tailwind-merge": "2.6.0",
72
73
  "tailwindcss-animate": "1.0.7",
73
- "@ivao/atmosphere-brand": "0.0.1-next.0"
74
+ "@ivao/atmosphere-brand": "0.1.0-next.1"
74
75
  },
75
76
  "devDependencies": {
76
77
  "@ianvs/prettier-plugin-sort-imports": "4.4.1",
77
78
  "@ivao/eslint-config": "1.1.1",
78
79
  "@ivao/prettier-config": "1.1.0",
80
+ "@storybook/addon-actions": "8.6.7",
79
81
  "@storybook/addon-essentials": "8.6.7",
80
82
  "@storybook/addon-interactions": "8.6.7",
81
83
  "@storybook/addon-links": "8.6.7",
82
- "@storybook/addon-mdx-gfm": "8.6.7",
83
84
  "@storybook/addon-themes": "8.6.7",
84
85
  "@storybook/blocks": "8.6.7",
85
86
  "@storybook/builder-vite": "8.6.7",
@@ -25,7 +25,7 @@
25
25
  --ocean-900: 16 23 47; /* #10172F */
26
26
  --ocean: 60 85 172; /* #3C55AC */
27
27
  --fuselage-50: 249 250 255; /* #f9faff */
28
- --fuselage-100: 238 239 252; /* #eeeffc */
28
+ --fuselage-100: 238 239 245; /* #EEEFF5 */
29
29
  --fuselage-150: 224 225 236; /* #e0e1ec */
30
30
  --fuselage-200: 210 211 224; /* #d2d3e0 */
31
31
  --fuselage-250: 186 187 204; /* #babbcc */