@net-advantage/nabs-ui-radiobutton 0.35.0 → 0.36.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.
@@ -0,0 +1,3 @@
1
+ import { RadioButtonProps } from './RadioButton.types';
2
+ export declare function RadioButton({ label, labelPosition, className, inputClassName, labelClassName, id, ...props }: RadioButtonProps): import("react").JSX.Element;
3
+ export default RadioButton;
@@ -0,0 +1,8 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ export type RadioButtonLabelPosition = "right" | "left" | "top" | "bottom";
3
+ export interface RadioButtonProps extends ComponentPropsWithoutRef<"input"> {
4
+ label?: string;
5
+ labelPosition?: RadioButtonLabelPosition;
6
+ inputClassName?: string;
7
+ labelClassName?: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ export { RadioButton } from './RadioButton';
2
+ export type { RadioButtonLabelPosition, RadioButtonProps } from './RadioButton.types';
@@ -0,0 +1,2 @@
1
+ import { RadioButtonLabelPosition } from './RadioButton.types';
2
+ export declare const labelPositionClasses: Record<RadioButtonLabelPosition, string>;
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@net-advantage/nabs-ui-radiobutton",
3
- "version": "0.35.0",
3
+ "version": "0.36.0",
4
4
  "description": "Reusable React radio button control for the Nabs UI library.",
5
5
  "type": "module",
6
6
  "main": "./dist/nabs-ui-radiobutton.cjs",
7
7
  "module": "./dist/nabs-ui-radiobutton.js",
8
+ "types": "./dist/index.d.ts",
8
9
  "exports": {
9
10
  ".": {
10
11
  "import": "./dist/nabs-ui-radiobutton.js",