@veeqo/ui 5.12.5 → 5.13.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,4 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
+ import { TextVariant } from '../Text/types';
2
3
  export interface ForwardedChoiceProps {
3
4
  className?: string;
4
5
  disabled?: boolean;
@@ -10,9 +11,11 @@ export interface ForwardedChoiceProps {
10
11
  Badge?: ReactNode;
11
12
  Accessory?: ReactNode;
12
13
  Footer?: ReactNode;
14
+ inputPosition?: 'left' | 'right';
15
+ labelVariant?: TextVariant;
13
16
  }
14
17
  export interface ChoiceProps extends ForwardedChoiceProps {
15
18
  id: string;
16
19
  children: ReactNode;
17
20
  }
18
- export declare const Choice: ({ id, className, label, hint, tooltip, error, bordered, Badge, Accessory, Footer, children, disabled, }: ChoiceProps) => React.JSX.Element;
21
+ export declare const Choice: ({ id, className, label, hint, tooltip, error, bordered, Badge, Accessory, Footer, children, disabled, labelVariant, inputPosition, }: ChoiceProps) => React.JSX.Element;
@@ -5,7 +5,6 @@ export interface InputLayoutProps {
5
5
  export declare const InputLayout: import("styled-components").StyledComponent<"div", any, InputLayoutProps, never>;
6
6
  export declare const AccessoryLayout: import("styled-components").StyledComponent<"div", any, {}, never>;
7
7
  export declare const TextLayout: import("styled-components").StyledComponent<"div", any, {}, never>;
8
- export declare const LabelText: import("styled-components").StyledComponent<"span", any, {}, never>;
9
8
  export declare const HintText: import("styled-components").StyledComponent<"div", any, {}, never>;
10
9
  export declare const ErrorText: import("styled-components").StyledComponent<"div", any, {}, never>;
11
10
  export declare const Wrapper: import("styled-components").StyledComponent<"label", any, {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ToggleProps } from './types';
3
3
  /**
4
- * A toggle switch component, use-cases should wrap with a label or
4
+ * A toggle switch component, use-cases should provide a label, wrap with a custom one or pass in an aria-label.
5
5
  */
6
6
  export declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLInputElement>>;
@@ -1,5 +1,6 @@
1
+ import { ForwardedChoiceProps } from '../Choice';
1
2
  import { EventHandlerProps } from '../types';
2
- export interface ToggleProps extends EventHandlerProps {
3
+ export interface ToggleProps extends EventHandlerProps, ForwardedChoiceProps {
3
4
  id?: string;
4
5
  switched?: boolean;
5
6
  name?: string;
@@ -1,5 +1,6 @@
1
1
  import React, { ComponentType, FC } from 'react';
2
2
  export interface WithLabelsProps {
3
+ id?: string;
3
4
  label?: string;
4
5
  hint?: string | React.ReactNode;
5
6
  error?: string;
@@ -5,3 +5,4 @@ export { useFocusVisible, FocusVisibleManager } from './useFocusVisible';
5
5
  export { useHover } from './useHover';
6
6
  export { useIsOverflowing } from './useIsOverflowing';
7
7
  export { useTabs } from './useTabs';
8
+ export { useId } from './useId';
@@ -0,0 +1,4 @@
1
+ export declare const useId: ({ id, prefix }: {
2
+ id?: string | undefined;
3
+ prefix?: string | undefined;
4
+ }) => string;
@@ -0,0 +1 @@
1
+ export {};