@juspay/blend-design-system 0.0.29-beta → 0.0.29
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.
- package/dist/assets/main.css +1 -1
- package/dist/components/Accordion/AccordionItem.d.ts +3 -2
- package/dist/components/Accordion/accessibility/AccordionAccessibility.d.ts +5 -0
- package/dist/components/Accordion/accessibility/AccordionAccessibilityReport.d.ts +2 -0
- package/dist/components/Accordion/accessibility/index.d.ts +2 -0
- package/dist/components/Alert/accessibility/AlertAccessibility.d.ts +5 -0
- package/dist/components/Alert/accessibility/AlertAccessibilityReport.d.ts +44 -0
- package/dist/components/Alert/accessibility/index.d.ts +2 -0
- package/dist/components/Avatar/Avatar.d.ts +4 -0
- package/dist/components/Avatar/accessibility/AvatarAccessibility.d.ts +5 -0
- package/dist/components/Avatar/accessibility/AvatarAccessibilityReport.d.ts +2 -0
- package/dist/components/Avatar/accessibility/index.d.ts +2 -0
- package/dist/components/Avatar/avatarUtils.d.ts +1 -1
- package/dist/components/Avatar/types.d.ts +5 -0
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +6 -3
- package/dist/components/AvatarGroup/accessibility/AvatarGroupAccessibility.d.ts +5 -0
- package/dist/components/AvatarGroup/accessibility/AvatarGroupAccessibilityReport.d.ts +2 -0
- package/dist/components/AvatarGroup/accessibility/index.d.ts +2 -0
- package/dist/components/AvatarGroup/avatarGroupUtils.d.ts +4 -16
- package/dist/components/AvatarGroup/types.d.ts +5 -1
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +3 -2
- package/dist/components/Breadcrumb/BreadcrumbSkeleton.d.ts +8 -0
- package/dist/components/Breadcrumb/accessibility/BreadcrumbAccessibility.d.ts +5 -0
- package/dist/components/Breadcrumb/accessibility/BreadcrumbAccessibilityReport.d.ts +44 -0
- package/dist/components/Breadcrumb/accessibility/index.d.ts +3 -0
- package/dist/components/Breadcrumb/types.d.ts +6 -0
- package/dist/components/Button/accessibility/ButtonAccessibility.d.ts +5 -0
- package/dist/components/Button/accessibility/ButtonAccessibilityReport.d.ts +44 -0
- package/dist/components/Button/accessibility/index.d.ts +4 -0
- package/dist/components/Card/CardSkeleton.d.ts +8 -0
- package/dist/components/Charts/ChartsSkeleton.d.ts +7 -0
- package/dist/components/Charts/types.d.ts +6 -0
- package/dist/components/Checkbox/Checkbox.d.ts +0 -1
- package/dist/components/Checkbox/accessibility/CheckboxAccessibility.d.ts +5 -0
- package/dist/components/Checkbox/accessibility/CheckboxAccessibilityReport.d.ts +44 -0
- package/dist/components/Checkbox/accessibility/index.d.ts +3 -0
- package/dist/components/Checkbox/checkboxUtils.d.ts +10 -0
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/Checkbox/types.d.ts +1 -0
- package/dist/components/Inputs/DropdownInput/accessibility/DropdownInputAccessibility.d.ts +5 -0
- package/dist/components/Inputs/DropdownInput/accessibility/DropdownInputAccessibilityReport.d.ts +2 -0
- package/dist/components/Inputs/MultiValueInput/MultiValueInput.d.ts +1 -1
- package/dist/components/Inputs/MultiValueInput/accessibility/MultiValueInputAccessibility.d.ts +5 -0
- package/dist/components/Inputs/MultiValueInput/accessibility/MultiValueInputAccessibilityReport.d.ts +2 -0
- package/dist/components/Inputs/NumberInput/accessibility/NumberInputAccessibility.d.ts +5 -0
- package/dist/components/Inputs/NumberInput/accessibility/NumberInputAccessibilityReport.d.ts +2 -0
- package/dist/components/Inputs/OTPInput/OTPInput.d.ts +1 -1
- package/dist/components/Inputs/OTPInput/accessibility/OTPInputAccessibility.d.ts +5 -0
- package/dist/components/Inputs/OTPInput/accessibility/OTPInputAccessibilityReport.d.ts +2 -0
- package/dist/components/Inputs/SearchInput/accessibility/SearchInputAccessibility.d.ts +5 -0
- package/dist/components/Inputs/SearchInput/accessibility/SearchInputAccessibilityReport.d.ts +2 -0
- package/dist/components/Inputs/TextArea/TextArea.d.ts +1 -1
- package/dist/components/Inputs/TextArea/accessibility/TextAreaAccessibility.d.ts +5 -0
- package/dist/components/Inputs/TextArea/accessibility/TextAreaAccessibilityReport.d.ts +2 -0
- package/dist/components/Inputs/TextInput/TextInput.d.ts +1 -1
- package/dist/components/Inputs/TextInput/accessibility/TextInputAccessibility.d.ts +5 -0
- package/dist/components/Inputs/TextInput/accessibility/TextInputAccessibilityReport.d.ts +2 -0
- package/dist/components/Inputs/UnitInput/accessibility/UnitInputAccessibility.d.ts +5 -0
- package/dist/components/Inputs/UnitInput/accessibility/UnitInputAccessibilityReport.d.ts +2 -0
- package/dist/components/Inputs/utils/InputFooter/InputFooter.d.ts +5 -1
- package/dist/components/Inputs/utils/InputLabels/InputLabels.d.ts +4 -1
- package/dist/components/KeyValuePair/KeyValuePair.d.ts +2 -1
- package/dist/components/KeyValuePair/accessibility/KeyValuePairAccessibility.d.ts +5 -0
- package/dist/components/KeyValuePair/accessibility/KeyValuePairAccessibilityReport.d.ts +2 -0
- package/dist/components/KeyValuePair/accessibility/index.d.ts +2 -0
- package/dist/components/Menu/MenuSkeleton.d.ts +7 -0
- package/dist/components/Menu/accessibility/MenuAccessibility.d.ts +5 -0
- package/dist/components/Menu/accessibility/MenuAccessibilityReport.d.ts +2 -0
- package/dist/components/Menu/accessibility/index.d.ts +2 -0
- package/dist/components/Menu/types.d.ts +6 -5
- package/dist/components/Modal/ModalSkeleton.d.ts +25 -0
- package/dist/components/Modal/accessibility/ModalAccessibility.d.ts +5 -0
- package/dist/components/Modal/accessibility/ModalAccessibilityReport.d.ts +2 -0
- package/dist/components/Modal/types.d.ts +12 -0
- package/dist/components/MultiSelect/MultiSelectMenu.d.ts +1 -1
- package/dist/components/MultiSelect/MultiSelectSkeleton.d.ts +7 -0
- package/dist/components/MultiSelect/MultiSelectTrigger.d.ts +1 -1
- package/dist/components/MultiSelect/accessibility/MultiSelectAccessibility.d.ts +5 -0
- package/dist/components/MultiSelect/accessibility/MultiSelectAccessibilityReport.d.ts +44 -0
- package/dist/components/MultiSelect/accessibility/index.d.ts +2 -0
- package/dist/components/MultiSelect/types.d.ts +8 -10
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/Popover/PopoverFooter.d.ts +5 -1
- package/dist/components/Popover/PopoverHeader.d.ts +7 -1
- package/dist/components/Popover/PopoverSkeleton.d.ts +21 -0
- package/dist/components/Popover/accessibility/PopoverAccessibility.d.ts +5 -0
- package/dist/components/Popover/accessibility/PopoverAccessibilityReport.d.ts +2 -0
- package/dist/components/Popover/types.d.ts +13 -0
- package/dist/components/Radio/Radio.d.ts +1 -1
- package/dist/components/Radio/StyledRadio.d.ts +2 -0
- package/dist/components/Radio/accessibility/RadioAccessibility.d.ts +5 -0
- package/dist/components/Radio/accessibility/RadioAccessibilityReport.d.ts +44 -0
- package/dist/components/Radio/accessibility/index.d.ts +2 -0
- package/dist/components/Radio/types.d.ts +3 -1
- package/dist/components/SingleSelect/SingleSelect.d.ts +1 -1
- package/dist/components/SingleSelect/SingleSelectMenu.d.ts +3 -7
- package/dist/components/SingleSelect/SingleSelectSkeleton.d.ts +7 -0
- package/dist/components/SingleSelect/SingleSelectTrigger.d.ts +1 -1
- package/dist/components/SingleSelect/accessibility/SingleSelectAccessibility.d.ts +5 -0
- package/dist/components/SingleSelect/accessibility/SingleSelectAccessibilityReport.d.ts +44 -0
- package/dist/components/SingleSelect/accessibility/index.d.ts +2 -0
- package/dist/components/SingleSelect/types.d.ts +6 -5
- package/dist/components/SingleSelect/utils.d.ts +80 -0
- package/dist/components/Skeleton/Skeleton.d.ts +4 -0
- package/dist/components/Skeleton/SkeletonCompound.d.ts +8 -0
- package/dist/components/Skeleton/types.d.ts +4 -0
- package/dist/components/Snackbar/accessibility/SnackbarAccessibility.d.ts +5 -0
- package/dist/components/Snackbar/accessibility/SnackbarAccessibilityReport.d.ts +2 -0
- package/dist/components/Snackbar/accessibility/index.d.ts +2 -0
- package/dist/components/StatCard/StatCardSkeleton.d.ts +7 -0
- package/dist/components/StatCard/types.d.ts +3 -2
- package/dist/components/Switch/StyledSwitch.d.ts +3 -0
- package/dist/components/Switch/Switch.d.ts +3 -4
- package/dist/components/Switch/accessibility/SwitchAccessibility.d.ts +5 -0
- package/dist/components/Switch/accessibility/SwitchAccessibilityReport.d.ts +44 -0
- package/dist/components/Switch/accessibility/index.d.ts +3 -0
- package/dist/components/Switch/utils.d.ts +10 -0
- package/dist/components/Tabs/Tabs.d.ts +2 -0
- package/dist/components/Tabs/TabsList.d.ts +1 -0
- package/dist/components/Tabs/TabsTrigger.d.ts +5 -4
- package/dist/components/Tabs/accessibility/TabsAccessibility.d.ts +5 -0
- package/dist/components/Tabs/accessibility/TabsAccessibilityReport.d.ts +2 -0
- package/dist/components/Tabs/accessibility/index.d.ts +2 -0
- package/dist/components/Tabs/types.d.ts +5 -0
- package/dist/components/Tabs/utils.d.ts +4 -2
- package/dist/components/Tags/accessibility/TagAccessibility.d.ts +5 -0
- package/dist/components/Tags/accessibility/TagAccessibilityReport.d.ts +2 -0
- package/dist/components/Tags/tag.tokens.d.ts +1 -1
- package/dist/components/Text/Text.d.ts +2 -2
- package/dist/components/Tooltip/accessibility/TooltipAccessibility.d.ts +5 -0
- package/dist/components/Tooltip/accessibility/TooltipAccessibilityReport.d.ts +2 -0
- package/dist/components/shared/accessibility/AccessibilityDashboard.d.ts +11 -0
- package/dist/components/shared/accessibility/LightHouse-components/ButtonLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/DropdownInputLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/ModalLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/MultiValueInputLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/NumberInputLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/OTPInputLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/PopoverLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/SearchInputLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/TagLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/TextAreaLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/TextInputLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/TooltipLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/UnitInputLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/index.d.ts +8 -0
- package/dist/components/shared/accessibility/reportGenerator.d.ts +24 -0
- package/dist/components/shared/accessibility/storybookParser.d.ts +25 -0
- package/dist/components/shared/accessibility/testResultsParser.d.ts +22 -0
- package/dist/context/ThemeContext.d.ts +1 -3
- package/dist/context/ThemeProvider.d.ts +1 -4
- package/dist/context/index.d.ts +2 -1
- package/dist/context/initComponentTokens.d.ts +1 -1
- package/dist/context/theme.enum.d.ts +4 -0
- package/dist/context/useComponentToken.d.ts +1 -2
- package/dist/main.d.ts +0 -1
- package/dist/main.js +36536 -40697
- package/package.json +9 -8
- package/dist/components/WorkflowCanvas/WorkflowCanvas.d.ts +0 -19
- package/dist/components/WorkflowCanvas/WorkflowControls.d.ts +0 -3
- package/dist/components/WorkflowCanvas/components/NodeContent.d.ts +0 -15
- package/dist/components/WorkflowCanvas/constants.d.ts +0 -42
- package/dist/components/WorkflowCanvas/edges/DefaultEdge.d.ts +0 -3
- package/dist/components/WorkflowCanvas/index.d.ts +0 -12
- package/dist/components/WorkflowCanvas/nodes/DefaultNode.d.ts +0 -3
- package/dist/components/WorkflowCanvas/nodes/InputNode.d.ts +0 -3
- package/dist/components/WorkflowCanvas/nodes/OutputNode.d.ts +0 -3
- package/dist/components/WorkflowCanvas/types.d.ts +0 -79
- package/dist/components/WorkflowCanvas/utils.d.ts +0 -13
- package/dist/components/WorkflowCanvas/workflow.tokens.d.ts +0 -100
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { AccordionItemProps, AccordionType, AccordionChevronPosition } from './types';
|
|
2
|
-
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const AccordionItem: React.ForwardRefExoticComponent<AccordionItemProps & {
|
|
3
4
|
accordionType?: AccordionType;
|
|
4
5
|
chevronPosition?: AccordionChevronPosition;
|
|
5
6
|
isFirst?: boolean;
|
|
6
7
|
isLast?: boolean;
|
|
7
8
|
isIntermediate?: boolean;
|
|
8
9
|
currentValue?: string | string[];
|
|
9
|
-
} &
|
|
10
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
10
11
|
export default AccordionItem;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alert Component Accessibility Report Data
|
|
3
|
+
* WCAG 2.0, 2.1, 2.2 Level A, AA, AAA Compliance Analysis
|
|
4
|
+
*
|
|
5
|
+
* Note: Items marked with "unsure" require manual verification
|
|
6
|
+
* Color contrast ratios verified using actual color values from theme tokens
|
|
7
|
+
*/
|
|
8
|
+
export type WCAGSuccessCriterion = {
|
|
9
|
+
id: string;
|
|
10
|
+
level: 'A' | 'AA' | 'AAA';
|
|
11
|
+
title: string;
|
|
12
|
+
status: 'compliant' | 'non-compliant' | 'unsure' | 'not-applicable';
|
|
13
|
+
description: string;
|
|
14
|
+
implementation: string;
|
|
15
|
+
testResults?: string;
|
|
16
|
+
notes?: string;
|
|
17
|
+
};
|
|
18
|
+
export type AccessibilityReport = {
|
|
19
|
+
componentName: string;
|
|
20
|
+
wcagVersion: string;
|
|
21
|
+
reportDate: string;
|
|
22
|
+
conformanceLevel: string;
|
|
23
|
+
overallStatus: 'compliant' | 'non-compliant' | 'partial' | 'unsure';
|
|
24
|
+
summary: string;
|
|
25
|
+
criteria: WCAGSuccessCriterion[];
|
|
26
|
+
strengths: string[];
|
|
27
|
+
recommendations: string[];
|
|
28
|
+
wcagVersions: {
|
|
29
|
+
'2.0': string[];
|
|
30
|
+
'2.1': string[];
|
|
31
|
+
'2.2': string[];
|
|
32
|
+
};
|
|
33
|
+
testMethodology: {
|
|
34
|
+
automated: string[];
|
|
35
|
+
manual: string[];
|
|
36
|
+
verificationTools: string[];
|
|
37
|
+
wcagLevels: {
|
|
38
|
+
A: string[];
|
|
39
|
+
AA: string[];
|
|
40
|
+
AAA: string[];
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare const alertAccessibilityReport: AccessibilityReport;
|
|
@@ -9,5 +9,9 @@ declare const Avatar: import('react').ForwardRefExoticComponent<{
|
|
|
9
9
|
onlinePosition?: AvatarOnlinePosition;
|
|
10
10
|
leadingSlot?: React.ReactNode;
|
|
11
11
|
trailingSlot?: React.ReactNode;
|
|
12
|
+
skeleton?: {
|
|
13
|
+
show: boolean;
|
|
14
|
+
variant?: import('../Skeleton').SkeletonVariant;
|
|
15
|
+
};
|
|
12
16
|
} & Omit<import('react').HTMLAttributes<HTMLDivElement>, "children"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
17
|
export default Avatar;
|
|
@@ -9,6 +9,6 @@ export declare const hexToRgb: (hex: string) => {
|
|
|
9
9
|
* Get a consistent color for an avatar based on the full name/text
|
|
10
10
|
* Uses hash of the entire text to ensure unique colors for different names
|
|
11
11
|
* @param text - The text to generate color from (e.g., name or alt text)
|
|
12
|
-
* @returns A hex color code
|
|
12
|
+
* @returns A hex color code that provides sufficient contrast with white text (#FFFFFF)
|
|
13
13
|
*/
|
|
14
14
|
export declare const getColorFromText: (text: string) => string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { SkeletonVariant } from '../Skeleton';
|
|
2
3
|
export declare enum AvatarSize {
|
|
3
4
|
SM = "sm",
|
|
4
5
|
REGULAR = "regular",
|
|
@@ -24,6 +25,10 @@ export type AvatarProps = {
|
|
|
24
25
|
onlinePosition?: AvatarOnlinePosition;
|
|
25
26
|
leadingSlot?: React.ReactNode;
|
|
26
27
|
trailingSlot?: React.ReactNode;
|
|
28
|
+
skeleton?: {
|
|
29
|
+
show: boolean;
|
|
30
|
+
variant?: SkeletonVariant;
|
|
31
|
+
};
|
|
27
32
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'children'>;
|
|
28
33
|
export type StyledAvatarContainerProps = {
|
|
29
34
|
$size: AvatarSize;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { AvatarShape, AvatarSize } from '../Avatar/types';
|
|
3
|
-
declare const AvatarGroup:
|
|
2
|
+
declare const AvatarGroup: import('react').ForwardRefExoticComponent<{
|
|
4
3
|
avatars: import('./types').AvatarData[];
|
|
5
4
|
maxCount?: number;
|
|
6
5
|
size?: AvatarSize;
|
|
7
6
|
shape?: AvatarShape;
|
|
8
7
|
selectedAvatarIds?: (string | number)[];
|
|
9
8
|
onSelectionChange?: (selectedIds: (string | number)[]) => void;
|
|
10
|
-
|
|
9
|
+
skeleton?: {
|
|
10
|
+
show: boolean;
|
|
11
|
+
variant?: import('../Skeleton').SkeletonVariant;
|
|
12
|
+
};
|
|
13
|
+
} & Omit<import('react').HTMLAttributes<HTMLDivElement>, "children"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
14
|
export default AvatarGroup;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type AvatarGroupAccessibilityProps = {
|
|
2
|
+
className?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const AvatarGroupAccessibility: import('react').ForwardRefExoticComponent<AvatarGroupAccessibilityProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export default AvatarGroupAccessibility;
|
|
@@ -1,24 +1,12 @@
|
|
|
1
|
-
import { default as React
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
import { AvatarData } from './types';
|
|
3
3
|
import { AvatarProps } from '../Avatar/types';
|
|
4
|
-
|
|
5
|
-
id: string;
|
|
6
|
-
text: string;
|
|
7
|
-
hasSlotL?: boolean;
|
|
8
|
-
slotL?: React.ReactNode;
|
|
9
|
-
onClick?: () => void;
|
|
10
|
-
data?: Record<string, boolean | string | number>;
|
|
11
|
-
}
|
|
4
|
+
import { MenuGroupType } from '../Menu/types';
|
|
12
5
|
/**
|
|
13
|
-
*
|
|
6
|
+
* Creates Menu groups/items from avatar data array
|
|
14
7
|
*/
|
|
15
|
-
export declare const
|
|
16
|
-
/**
|
|
17
|
-
* Creates menu items from avatar data array
|
|
18
|
-
*/
|
|
19
|
-
export declare const createMenuItems: (avatars: AvatarData[], selectedIds: (string | number)[], onSelect: (id: string | number) => void, AvatarComponent: React.ComponentType<AvatarProps>) => MenuItemProps[];
|
|
8
|
+
export declare const createMenuItems: (avatars: AvatarData[], selectedIds: (string | number)[], onSelect: (id: string | number) => void, AvatarComponent: React.ComponentType<AvatarProps>) => MenuGroupType[];
|
|
20
9
|
/**
|
|
21
10
|
* Filters avatars based on search term
|
|
22
11
|
*/
|
|
23
12
|
export declare const filterAvatars: (avatars: AvatarData[], searchTerm: string) => AvatarData[];
|
|
24
|
-
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { AvatarProps, AvatarSize, AvatarShape } from '../Avatar/types';
|
|
3
|
+
import { SkeletonVariant } from '../Skeleton';
|
|
3
4
|
export interface AvatarData extends Omit<AvatarProps, 'className' | 'id'> {
|
|
4
5
|
id: string | number;
|
|
5
6
|
alt?: string;
|
|
@@ -12,6 +13,10 @@ export type AvatarGroupProps = {
|
|
|
12
13
|
shape?: AvatarShape;
|
|
13
14
|
selectedAvatarIds?: (string | number)[];
|
|
14
15
|
onSelectionChange?: (selectedIds: (string | number)[]) => void;
|
|
16
|
+
skeleton?: {
|
|
17
|
+
show: boolean;
|
|
18
|
+
variant?: SkeletonVariant;
|
|
19
|
+
};
|
|
15
20
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'children'>;
|
|
16
21
|
export type StyledAvatarGroupContainerProps = {
|
|
17
22
|
$spacing?: string;
|
|
@@ -25,5 +30,4 @@ export type StyledAvatarWrapperProps = {
|
|
|
25
30
|
export type StyledOverflowCounterProps = {
|
|
26
31
|
$size: AvatarSize;
|
|
27
32
|
$shape: AvatarShape;
|
|
28
|
-
$isOpen: boolean;
|
|
29
33
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { BreadcrumbItemType } from './types';
|
|
1
|
+
import { BreadcrumbItemType, BreadcrumbSkeletonProps } from './types';
|
|
2
2
|
declare const Breadcrumb: {
|
|
3
|
-
({ items }: {
|
|
3
|
+
({ items, skeleton, }: {
|
|
4
4
|
items: BreadcrumbItemType[];
|
|
5
|
+
skeleton?: BreadcrumbSkeletonProps;
|
|
5
6
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
6
7
|
displayName: string;
|
|
7
8
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BreadcrumbTokenType } from './breadcrumb.tokens';
|
|
2
|
+
import { SkeletonVariant } from '../Skeleton';
|
|
3
|
+
declare const BreadcrumbSkeleton: ({ breadcrumbTokens, skeletonVariant, isActive, }: {
|
|
4
|
+
breadcrumbTokens: BreadcrumbTokenType;
|
|
5
|
+
skeletonVariant: SkeletonVariant;
|
|
6
|
+
isActive: boolean;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default BreadcrumbSkeleton;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type BreadcrumbAccessibilityProps = {
|
|
2
|
+
className?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const BreadcrumbAccessibility: import('react').ForwardRefExoticComponent<BreadcrumbAccessibilityProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export default BreadcrumbAccessibility;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Breadcrumb Component Accessibility Report Data
|
|
3
|
+
* WCAG 2.0, 2.1, 2.2 Level A, AA, AAA Compliance Analysis
|
|
4
|
+
*
|
|
5
|
+
* Note: Items marked with "unsure" require manual verification
|
|
6
|
+
* Color contrast ratios verified using actual color values from theme tokens
|
|
7
|
+
*/
|
|
8
|
+
export type WCAGSuccessCriterion = {
|
|
9
|
+
id: string;
|
|
10
|
+
level: 'A' | 'AA' | 'AAA';
|
|
11
|
+
title: string;
|
|
12
|
+
status: 'compliant' | 'non-compliant' | 'unsure' | 'not-applicable';
|
|
13
|
+
description: string;
|
|
14
|
+
implementation: string;
|
|
15
|
+
testResults?: string;
|
|
16
|
+
notes?: string;
|
|
17
|
+
};
|
|
18
|
+
export type AccessibilityReport = {
|
|
19
|
+
componentName: string;
|
|
20
|
+
wcagVersion: string;
|
|
21
|
+
reportDate: string;
|
|
22
|
+
conformanceLevel: string;
|
|
23
|
+
overallStatus: 'compliant' | 'non-compliant' | 'partial' | 'unsure';
|
|
24
|
+
summary: string;
|
|
25
|
+
criteria: WCAGSuccessCriterion[];
|
|
26
|
+
strengths: string[];
|
|
27
|
+
recommendations: string[];
|
|
28
|
+
wcagVersions: {
|
|
29
|
+
'2.0': string[];
|
|
30
|
+
'2.1': string[];
|
|
31
|
+
'2.2': string[];
|
|
32
|
+
};
|
|
33
|
+
testMethodology: {
|
|
34
|
+
automated: string[];
|
|
35
|
+
manual: string[];
|
|
36
|
+
verificationTools: string[];
|
|
37
|
+
wcagLevels: {
|
|
38
|
+
A: string[];
|
|
39
|
+
AA: string[];
|
|
40
|
+
AAA: string[];
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare const breadcrumbAccessibilityReport: AccessibilityReport;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import { SkeletonVariant } from '../Skeleton';
|
|
2
|
+
export type BreadcrumbSkeletonProps = {
|
|
3
|
+
show: boolean;
|
|
4
|
+
variant: SkeletonVariant;
|
|
5
|
+
};
|
|
1
6
|
export type BreadcrumbItemType = {
|
|
2
7
|
leftSlot?: React.ReactNode;
|
|
3
8
|
rightSlot?: React.ReactNode;
|
|
@@ -9,4 +14,5 @@ export type BreadcrumbItemType = {
|
|
|
9
14
|
* Use this to avoid page reloads and handle navigation with client-side routing.
|
|
10
15
|
*/
|
|
11
16
|
onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
17
|
+
skeleton?: BreadcrumbSkeletonProps;
|
|
12
18
|
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Button Component Accessibility Report Data
|
|
3
|
+
* WCAG 2.1 Level AA Compliance Analysis
|
|
4
|
+
*
|
|
5
|
+
* Note: Items marked with "unsure" require manual verification
|
|
6
|
+
* Color contrast ratios verified using actual color values from theme tokens
|
|
7
|
+
*/
|
|
8
|
+
export type WCAGSuccessCriterion = {
|
|
9
|
+
id: string;
|
|
10
|
+
level: 'A' | 'AA' | 'AAA';
|
|
11
|
+
title: string;
|
|
12
|
+
status: 'compliant' | 'non-compliant' | 'unsure' | 'not-applicable';
|
|
13
|
+
description: string;
|
|
14
|
+
implementation: string;
|
|
15
|
+
testResults?: string;
|
|
16
|
+
notes?: string;
|
|
17
|
+
};
|
|
18
|
+
export type AccessibilityReport = {
|
|
19
|
+
componentName: string;
|
|
20
|
+
wcagVersion: string;
|
|
21
|
+
reportDate: string;
|
|
22
|
+
conformanceLevel: string;
|
|
23
|
+
overallStatus: 'compliant' | 'non-compliant' | 'partial' | 'unsure';
|
|
24
|
+
summary: string;
|
|
25
|
+
criteria: WCAGSuccessCriterion[];
|
|
26
|
+
strengths: string[];
|
|
27
|
+
recommendations: string[];
|
|
28
|
+
wcagVersions: {
|
|
29
|
+
'2.0': string[];
|
|
30
|
+
'2.1': string[];
|
|
31
|
+
'2.2': string[];
|
|
32
|
+
};
|
|
33
|
+
testMethodology: {
|
|
34
|
+
automated: string[];
|
|
35
|
+
manual: string[];
|
|
36
|
+
verificationTools: string[];
|
|
37
|
+
wcagLevels: {
|
|
38
|
+
A: string[];
|
|
39
|
+
AA: string[];
|
|
40
|
+
AAA: string[];
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare const buttonAccessibilityReport: AccessibilityReport;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as ButtonAccessibility } from './ButtonAccessibility';
|
|
2
|
+
export type { ButtonAccessibilityProps } from './ButtonAccessibility';
|
|
3
|
+
export { buttonAccessibilityReport } from './ButtonAccessibilityReport';
|
|
4
|
+
export type { AccessibilityReport, WCAGSuccessCriterion, } from './ButtonAccessibilityReport';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CardSkeletonProps } from './types';
|
|
2
|
+
declare const CardSkeleton: ({ skeleton, maxHeight, minHeight, maxWidth, }: {
|
|
3
|
+
skeleton: CardSkeletonProps;
|
|
4
|
+
maxHeight?: string;
|
|
5
|
+
minHeight?: string;
|
|
6
|
+
maxWidth?: string;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default CardSkeleton;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SkeletonVariant } from '../Skeleton';
|
|
2
|
+
declare const ChartsSkeleton: ({ skeletonVariant, height, isExpanded, }: {
|
|
3
|
+
skeletonVariant?: SkeletonVariant;
|
|
4
|
+
height?: number;
|
|
5
|
+
isExpanded?: boolean;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default ChartsSkeleton;
|
|
@@ -2,6 +2,7 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { TooltipProps } from 'recharts';
|
|
3
3
|
import { NameType, ValueType } from 'recharts/types/component/DefaultTooltipContent';
|
|
4
4
|
import { ButtonProps } from '../Button';
|
|
5
|
+
import { SkeletonVariant } from '../Skeleton';
|
|
5
6
|
export type DataPoint = {
|
|
6
7
|
primary: {
|
|
7
8
|
label: string;
|
|
@@ -122,6 +123,10 @@ export type CoreChartProps = {
|
|
|
122
123
|
selectedKeys?: string[];
|
|
123
124
|
enableHover?: boolean;
|
|
124
125
|
};
|
|
126
|
+
export type ChartsSkeletonProps = {
|
|
127
|
+
show: boolean;
|
|
128
|
+
variant: SkeletonVariant;
|
|
129
|
+
};
|
|
125
130
|
export type ChartsProps = {
|
|
126
131
|
chartType?: ChartType;
|
|
127
132
|
data: NewNestedDataPoint[];
|
|
@@ -143,6 +148,7 @@ export type ChartsProps = {
|
|
|
143
148
|
isExpanded?: boolean;
|
|
144
149
|
onExpandedChange?: (isExpanded: boolean) => void;
|
|
145
150
|
chartName?: string;
|
|
151
|
+
skeleton?: ChartsSkeletonProps;
|
|
146
152
|
};
|
|
147
153
|
export type FlattenedDataPoint = {
|
|
148
154
|
name: string;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checkbox Component Accessibility Report Data
|
|
3
|
+
* WCAG 2.1 Level AA Compliance Analysis
|
|
4
|
+
*
|
|
5
|
+
* Note: Items marked with "unsure" require manual verification
|
|
6
|
+
* Color contrast ratios verified using actual color values from theme tokens
|
|
7
|
+
*/
|
|
8
|
+
export type WCAGSuccessCriterion = {
|
|
9
|
+
id: string;
|
|
10
|
+
level: 'A' | 'AA' | 'AAA';
|
|
11
|
+
title: string;
|
|
12
|
+
status: 'compliant' | 'non-compliant' | 'unsure' | 'not-applicable';
|
|
13
|
+
description: string;
|
|
14
|
+
implementation: string;
|
|
15
|
+
testResults?: string;
|
|
16
|
+
notes?: string;
|
|
17
|
+
};
|
|
18
|
+
export type AccessibilityReport = {
|
|
19
|
+
componentName: string;
|
|
20
|
+
wcagVersion: string;
|
|
21
|
+
reportDate: string;
|
|
22
|
+
conformanceLevel: string;
|
|
23
|
+
overallStatus: 'compliant' | 'non-compliant' | 'partial' | 'unsure';
|
|
24
|
+
summary: string;
|
|
25
|
+
criteria: WCAGSuccessCriterion[];
|
|
26
|
+
strengths: string[];
|
|
27
|
+
recommendations: string[];
|
|
28
|
+
wcagVersions: {
|
|
29
|
+
'2.0': string[];
|
|
30
|
+
'2.1': string[];
|
|
31
|
+
'2.2': string[];
|
|
32
|
+
};
|
|
33
|
+
testMethodology: {
|
|
34
|
+
automated: string[];
|
|
35
|
+
manual: string[];
|
|
36
|
+
verificationTools: string[];
|
|
37
|
+
wcagLevels: {
|
|
38
|
+
A: string[];
|
|
39
|
+
AA: string[];
|
|
40
|
+
AAA: string[];
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare const checkboxAccessibilityReport: AccessibilityReport;
|
|
@@ -47,3 +47,13 @@ export declare const getAccessibilityAttributes: (uniqueId: string, isIndetermin
|
|
|
47
47
|
'aria-labelledby': string;
|
|
48
48
|
'aria-describedby': string;
|
|
49
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* Generates subtext ID for aria-describedby connection
|
|
52
|
+
* WCAG 4.1.2: aria-describedby must connect to subtext/error messages
|
|
53
|
+
*/
|
|
54
|
+
export declare const getSubtextId: (uniqueId: string, hasSubtext: boolean) => string | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Merges custom aria-describedby with subtext ID
|
|
57
|
+
* WCAG 4.1.2: Supports multiple IDs space-separated
|
|
58
|
+
*/
|
|
59
|
+
export declare const mergeAriaDescribedBy: (subtextId: string | undefined, customAriaDescribedBy?: string) => string | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Checkbox } from './Checkbox';
|
|
2
2
|
export * from './types';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type DropdownInputAccessibilityProps = {
|
|
2
|
+
className?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const DropdownInputAccessibility: import('react').ForwardRefExoticComponent<DropdownInputAccessibilityProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export default DropdownInputAccessibility;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MultiValueInputProps } from './types';
|
|
2
|
-
declare const MultiValueInput: ({ value, label, sublabel, disabled, required, error, errorMessage, hintText, tags, onTagAdd, onTagRemove, onChange, size, onFocus, onBlur, ...rest }: MultiValueInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const MultiValueInput: ({ value, label, sublabel, helpIconHintText, disabled, required, error, errorMessage, hintText, tags, onTagAdd, onTagRemove, onChange, size, onFocus, onBlur, name, id: providedId, ...rest }: MultiValueInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default MultiValueInput;
|
package/dist/components/Inputs/MultiValueInput/accessibility/MultiValueInputAccessibility.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MultiValueInputAccessibilityProps = {
|
|
2
|
+
className?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const MultiValueInputAccessibility: import('react').ForwardRefExoticComponent<MultiValueInputAccessibilityProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export default MultiValueInputAccessibility;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type NumberInputAccessibilityProps = {
|
|
2
|
+
className?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const NumberInputAccessibility: import('react').ForwardRefExoticComponent<NumberInputAccessibilityProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export default NumberInputAccessibility;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { OTPProps } from './types';
|
|
2
|
-
declare const OTPInput: ({ label, placeholder, sublabel, disabled, helpIconHintText, name, required, error, errorMessage, hintText, value, length, autoFocus, onChange, form, ...rest }: OTPProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const OTPInput: ({ label, placeholder, sublabel, disabled, helpIconHintText, name, required, error, errorMessage, hintText, value, length, autoFocus, onChange, form, id: providedId, ...rest }: OTPProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default OTPInput;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type SearchInputAccessibilityProps = {
|
|
2
|
+
className?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const SearchInputAccessibility: import('react').ForwardRefExoticComponent<SearchInputAccessibilityProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export default SearchInputAccessibility;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TextAreaProps } from './types';
|
|
2
|
-
declare const TextArea: ({ value, placeholder, disabled, autoFocus, onChange, onFocus, onBlur, rows, cols, label, sublabel, hintText, helpIconHintText, required, error, errorMessage, wrap, resize, ...rest }: TextAreaProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const TextArea: ({ value, placeholder, disabled, autoFocus, onChange, onFocus, onBlur, rows, cols, label, sublabel, hintText, helpIconHintText, required, error, errorMessage, wrap, resize, name, id: providedId, ...rest }: TextAreaProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default TextArea;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TextInputProps } from './types';
|
|
2
|
-
declare const TextInput: ({ size, leftSlot, rightSlot, error, errorMessage, hintText, helpIconHintText, disabled, label, placeholder, sublabel, value, onChange, name, required, onBlur, onFocus, cursor, ...rest }: TextInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const TextInput: ({ size, leftSlot, rightSlot, error, errorMessage, hintText, helpIconHintText, disabled, label, placeholder, sublabel, value, onChange, name, required, onBlur, onFocus, cursor, id: providedId, ...rest }: TextInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default TextInput;
|