@purpurds/radio-card-group 6.12.2 → 6.12.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.
@@ -1,5 +1,5 @@
1
1
  import React, { Children, cloneElement, ForwardedRef, forwardRef, ReactNode, Ref } from "react";
2
- import { type HeadingTagType, Heading } from "@purpurds/heading";
2
+ import { Heading,type HeadingTagType } from "@purpurds/heading";
3
3
  import * as RadixRadioGroup from "@radix-ui/react-radio-group";
4
4
 
5
5
  import { cx } from "./classnames";
@@ -9,7 +9,9 @@ export type RadioCardGroupItem = RadioCardItemProps & { ref?: Ref<HTMLDivElement
9
9
  export const RADIO_CARD_GROUP_ORIENTATION = ["horizontal", "vertical"] as const;
10
10
  export const RADIO_POSITION = ["right", "left"] as const;
11
11
 
12
- export type RadioCardGroupProps = {
12
+ type StylingProps = Pick<React.HTMLAttributes<HTMLElement>, "className" | "style">;
13
+
14
+ export type RadioCardGroupProps = StylingProps & {
13
15
  /**
14
16
  * To use when no label is given.
15
17
  * */
@@ -19,7 +21,6 @@ export type RadioCardGroupProps = {
19
21
  * */
20
22
  ["aria-labelledby"]?: string;
21
23
  ["data-testid"]?: string;
22
- className?: string;
23
24
  /**
24
25
  * The value of the radio card item that should be checked when initially rendered. Use when you do not need to control the state of the radio items.
25
26
  * */