@hyphen/hyphen-components 5.1.1 → 5.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.
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { ToggleVariant } from '../../ToggleGroup/ToggleGroup';
3
+ export interface FormikToggleGroupMultiProps {
4
+ name: string;
5
+ options: Array<{
6
+ id: string;
7
+ value: string;
8
+ label: React.ReactNode;
9
+ disabled?: boolean;
10
+ }>;
11
+ helpText?: string;
12
+ label?: string;
13
+ children?: React.ReactNode;
14
+ variant: ToggleVariant;
15
+ }
16
+ export declare const FormikToggleGroupMulti: ({ name, options, helpText, label, children, variant, ...props }: FormikToggleGroupMultiProps) => React.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
3
3
  import { BaseSpacing, ResponsiveProp } from '../../types';
4
- type ToggleVariant = 'default' | 'outline';
4
+ export type ToggleVariant = 'default' | 'outline';
5
5
  type ToggleGroupProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> & {
6
6
  variant?: ToggleVariant;
7
7
  name?: string;