@apipass/design-system 7.0.0 → 7.2.0

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.
@@ -1,10 +1,12 @@
1
1
  import { ButtonProps, IconButtonProps, type TextHeadingProps, type TextProps } from "primitives";
2
2
  import { type DialogProps as RACDialogProps, type DialogTriggerProps as RACDialogTriggerProps, type ModalOverlayProps as RACModalOverlayProps } from "react-aria-components";
3
3
  import "./dialog.css";
4
+ export type DialogSize = "medium" | "large" | "xlarge";
4
5
  export type DialogProps = RACDialogProps & {
5
6
  type?: "sheet" | "card";
7
+ size?: DialogSize;
6
8
  };
7
- export declare function Dialog({ className, type, ...props }: DialogProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function Dialog({ className, type, size, ...props }: DialogProps): import("react/jsx-runtime").JSX.Element;
8
10
  export type DialogCloseProps = Pick<IconButtonProps, "onPress">;
9
11
  export declare const DialogClose: ({ onPress }: DialogCloseProps) => import("react/jsx-runtime").JSX.Element;
10
12
  export type DialogTriggerProps = RACDialogTriggerProps;
@@ -4,7 +4,10 @@ import { type SwitchProps as RACSwitchProps } from "react-aria-components";
4
4
  import "./switch.css";
5
5
  export type SwitchGroupProps = React.ComponentPropsWithoutRef<"div">;
6
6
  export declare function SwitchGroup({ className, ...props }: SwitchGroupProps): import("react/jsx-runtime").JSX.Element;
7
- export type SwitchFieldProps = RACSwitchProps & SharedFieldProps;
8
- export declare function SwitchField({ children, className, label, description, errorMessage, ...props }: SwitchFieldProps): import("react/jsx-runtime").JSX.Element;
7
+ export type SwitchFieldLabelPosition = "start" | "end";
8
+ export type SwitchFieldProps = RACSwitchProps & SharedFieldProps & {
9
+ labelPosition?: SwitchFieldLabelPosition;
10
+ };
11
+ export declare function SwitchField({ children, className, label, description, errorMessage, labelPosition, ...props }: SwitchFieldProps): import("react/jsx-runtime").JSX.Element;
9
12
  export type SwitchProps = React.ComponentPropsWithoutRef<"div">;
10
13
  export declare function Switch({ className, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apipass/design-system",
3
- "version": "7.0.0",
3
+ "version": "7.2.0",
4
4
  "type": "module",
5
5
  "description": "APIPass React Design System",
6
6
  "sideEffects": [