@veeqo/ui 5.1.4 → 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.
@@ -2,6 +2,7 @@ import React, { ReactNode } from 'react';
2
2
  export interface ForwardedChoiceProps {
3
3
  disabled?: boolean;
4
4
  label?: string;
5
+ isFontBold?: boolean;
5
6
  hint?: string;
6
7
  tooltip?: string;
7
8
  error?: string;
@@ -14,4 +15,4 @@ export interface ChoiceProps extends ForwardedChoiceProps {
14
15
  id: string;
15
16
  children: ReactNode;
16
17
  }
17
- export declare const Choice: ({ id, label, hint, tooltip, error, bordered, Badge, Accessory, Footer, children, disabled, }: ChoiceProps) => React.JSX.Element;
18
+ export declare const Choice: ({ id, label, isFontBold, hint, tooltip, error, bordered, Badge, Accessory, Footer, children, disabled, }: ChoiceProps) => React.JSX.Element;
@@ -1,11 +1,14 @@
1
+ import { CSSProperties } from 'styled-components';
1
2
  export declare const RootLayout: import("styled-components").StyledComponent<"div", any, {}, never>;
2
3
  export interface InputLayoutProps {
3
4
  align: 'top' | 'center';
4
5
  }
5
6
  export declare const InputLayout: import("styled-components").StyledComponent<"div", any, InputLayoutProps, never>;
6
7
  export declare const AccessoryLayout: import("styled-components").StyledComponent<"div", any, {}, never>;
7
- export declare const TextLayout: import("styled-components").StyledComponent<"div", any, {}, never>;
8
- export declare const LabelText: import("styled-components").StyledComponent<"span", any, {}, never>;
8
+ export declare const TextLayout: import("styled-components").StyledComponent<"div", any, {
9
+ fontWeight: CSSProperties['fontWeight'];
10
+ }, never>;
11
+ export declare const ChoiceLabel: import("styled-components").StyledComponent<"label", any, {}, never>;
9
12
  export declare const HintText: import("styled-components").StyledComponent<"div", any, {}, never>;
10
13
  export declare const ErrorText: import("styled-components").StyledComponent<"div", any, {}, never>;
11
14
  export declare const Wrapper: import("styled-components").StyledComponent<"label", any, {
@@ -0,0 +1,20 @@
1
+ import React, { ReactNode } from 'react';
2
+ type ScreenReaderOnlyProps = {
3
+ children: ReactNode;
4
+ };
5
+ /**
6
+ * The `ScreenReaderOnly` component is used to render content that is only visible to screen readers and assistive technologies. This component can be useful for providing additional context or information to users who rely on screen readers, while keeping the content visually hidden from sighted users.
7
+ * * **This is not a replacement for `aria-label`.**
8
+ *
9
+ * Note: aria-label is intended for interactive elements or for elements made interactive via other ARIA declarations when there's no visible text in the DOM to serve as a label.
10
+ *
11
+ * In general, screen reader-only content should be reserved for information that is apparent visually but not apparent to blind screen reader users.
12
+ *
13
+ * **Example use cases:**
14
+ * - Adding instructional cues and indicators
15
+ * - Search input that is clearly a search bar to sighted users (search icon, etc.). A hidden, associated `<label>` element with "Search orders"
16
+ * - Skip to links to take the user to the main content (still need to be visibile when focused)
17
+ * - Breadcrumb navigation, making it clear with a "you are here" screen reader text
18
+ */
19
+ export declare const ScreenReaderOnly: ({ children }: ScreenReaderOnlyProps) => React.JSX.Element;
20
+ export {};
@@ -0,0 +1,2 @@
1
+ import '@testing-library/jest-dom/extend-expect';
2
+ import 'jest-styled-components';
@@ -0,0 +1 @@
1
+ export { ScreenReaderOnly } from './ScreenReaderOnly';
@@ -33,6 +33,7 @@ export { Popover } from './Popover';
33
33
  export { Portal } from './Portal';
34
34
  export { PriceInput } from './PriceInput';
35
35
  export { Radio } from './Radio';
36
+ export { ScreenReaderOnly } from './ScreenReaderOnly';
36
37
  export { Search } from './Search';
37
38
  export { SegmentedControl } from './SegmentedControl';
38
39
  export { Select } from './Select';