@juspay/blend-design-system 0.0.29 → 0.0.30-beta
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/components/ButtonGroup/accessibility/ButtonGroupAccessibility.d.ts +5 -0
- package/dist/components/ButtonGroup/accessibility/ButtonGroupAccessibilityReport.d.ts +44 -0
- package/dist/components/ButtonGroup/accessibility/index.d.ts +4 -0
- package/dist/components/Card/CardComponents.d.ts +3 -0
- package/dist/components/Card/accessibility/CardAccessibility.d.ts +5 -0
- package/dist/components/Card/accessibility/CardAccessibilityReport.d.ts +2 -0
- package/dist/components/Charts/accessibility/ChartsAccessibility.d.ts +5 -0
- package/dist/components/Charts/accessibility/ChartsAccessibilityReport.d.ts +2 -0
- package/dist/components/Charts/types.d.ts +1 -0
- package/dist/components/ChatInput/accessibility/ChatInputAccessibility.d.ts +5 -0
- package/dist/components/ChatInput/accessibility/ChatInputAccessibilityReport.d.ts +44 -0
- package/dist/components/ChatInput/accessibility/index.d.ts +4 -0
- package/dist/components/ChatInput/utils.d.ts +10 -0
- package/dist/components/CodeBlock/accessibility/CodeBlockAccessibility.d.ts +5 -0
- package/dist/components/CodeBlock/accessibility/CodeBlockAccessibilityReport.d.ts +2 -0
- package/dist/components/DataTable/TableBody/types.d.ts +5 -0
- package/dist/components/DataTable/TableCell/types.d.ts +8 -0
- package/dist/components/DataTable/TableHeader/DraggableColumnHeader.d.ts +2 -2
- package/dist/components/DataTable/TableHeader/FilterComponents.d.ts +3 -0
- package/dist/components/DataTable/TableHeader/types.d.ts +9 -0
- package/dist/components/DataTable/accessibility/DataTableAccessibility.d.ts +5 -0
- package/dist/components/DataTable/accessibility/DataTableAccessibilityReport.d.ts +44 -0
- package/dist/components/DataTable/accessibility/index.d.ts +4 -0
- package/dist/components/DataTable/dataTable.tokens.d.ts +2 -0
- package/dist/components/DataTable/types.d.ts +1 -0
- package/dist/components/DateRangePicker/TimeSelector.d.ts +2 -0
- package/dist/components/DateRangePicker/accessibility/DateRangePickerAccessibility.d.ts +5 -0
- package/dist/components/DateRangePicker/accessibility/DateRangePickerAccessibilityReport.d.ts +2 -0
- package/dist/components/DateRangePicker/accessibility/index.d.ts +4 -0
- package/dist/components/Directory/Directory.d.ts +1 -1
- package/dist/components/Directory/NavItem.d.ts +17 -3
- package/dist/components/Directory/Section.d.ts +1 -1
- package/dist/components/Directory/types.d.ts +6 -1
- package/dist/components/Drawer/accessibility/DrawerAccessibility.d.ts +5 -0
- package/dist/components/Drawer/accessibility/DrawerAccessibilityReport.d.ts +2 -0
- package/dist/components/Drawer/components/DrawerBase.d.ts +6 -2
- package/dist/components/Drawer/types.d.ts +12 -0
- package/dist/components/Inputs/NumberInput/types.d.ts +1 -1
- package/dist/components/Inputs/TextInput/TextInput.d.ts +1 -1
- package/dist/components/Inputs/TextInput/types.d.ts +1 -0
- package/dist/components/KeyValuePair/utils.d.ts +1 -1
- package/dist/components/Modal/types.d.ts +4 -0
- package/dist/components/MultiSelect/accessibility/index.d.ts +2 -0
- package/dist/components/ProgressBar/accessibility/ProgressBarAccessibility.d.ts +5 -0
- package/dist/components/ProgressBar/accessibility/ProgressBarAccessibilityReport.d.ts +44 -0
- package/dist/components/ProgressBar/types.d.ts +2 -0
- package/dist/components/ProgressBar/utils.d.ts +24 -0
- package/dist/components/Select/types.d.ts +1 -0
- package/dist/components/Sidebar/SidebarHeader.d.ts +1 -0
- package/dist/components/Sidebar/accessibility/SidebarAccessibility.d.ts +5 -0
- package/dist/components/Sidebar/accessibility/SidebarAccessibilityReport.d.ts +2 -0
- package/dist/components/Sidebar/types.d.ts +3 -0
- package/dist/components/Slider/accessibility/SliderAccessibility.d.ts +5 -0
- package/dist/components/Slider/accessibility/SliderAccessibilityReport.d.ts +44 -0
- package/dist/components/Slider/accessibility/index.d.ts +4 -0
- package/dist/components/Slider/utils.d.ts +24 -2
- package/dist/components/Snackbar/Snackbar.d.ts +1 -4
- package/dist/components/Snackbar/types.d.ts +7 -0
- package/dist/components/SplitTag/SplitTag.d.ts +1 -1
- package/dist/components/SplitTag/accessibility/SplitTagAccessibility.d.ts +5 -0
- package/dist/components/SplitTag/accessibility/SplitTagAccessibilityReport.d.ts +2 -0
- package/dist/components/StatCard/accessibility/StatCardAccessibility.d.ts +5 -0
- package/dist/components/StatCard/accessibility/StatCardAccessibilityReport.d.ts +44 -0
- package/dist/components/Stepper/accessibility/StepperAccessibility.d.ts +5 -0
- package/dist/components/Stepper/accessibility/StepperAccessibilityReport.d.ts +2 -0
- package/dist/components/Stepper/types.d.ts +1 -0
- package/dist/components/Tabs/Tabs.d.ts +0 -1
- package/dist/components/Tabs/TabsList.d.ts +0 -1
- package/dist/components/Tabs/types.d.ts +1 -2
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/types.d.ts +1 -0
- package/dist/components/Topbar/types.d.ts +2 -0
- package/dist/components/Upload/accessibility/UploadAccessibility.d.ts +5 -0
- package/dist/components/Upload/accessibility/UploadAccessibilityReport.d.ts +2 -0
- package/dist/components/Upload/accessibility/index.d.ts +3 -0
- package/dist/components/Upload/types.d.ts +12 -1
- package/dist/components/shared/accessibility/LightHouse-components/AccordionLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/AlertLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/AvatarGroupLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/AvatarLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/BreadcrumbLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/ButtonGroupLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/CardLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/ChartsLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/ChatInputLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/CheckboxLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/CodeBlockLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/DrawerLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/KeyValuePairLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/MenuLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/MultiSelectLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/ProgressBarLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/RadioLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/SidebarLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/SingleSelectLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/SliderLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/SnackbarLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/SplitTagLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/StatCardLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/StepperLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/SwitchLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/TabsLightHouse.d.ts +2 -0
- package/dist/components/shared/accessibility/LightHouse-components/UploadLightHouse.d.ts +2 -0
- package/dist/global-utils/GlobalUtils.d.ts +2 -0
- package/dist/main.js +31679 -29077
- package/package.json +1 -1
- package/dist/components/DataTable/DataTable.stories.d.ts +0 -16
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type ButtonGroupAccessibilityProps = {
|
|
2
|
+
className?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const ButtonGroupAccessibility: import('react').ForwardRefExoticComponent<ButtonGroupAccessibilityProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export default ButtonGroupAccessibility;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ButtonGroup Component Accessibility Report Data
|
|
3
|
+
* WCAG 2.0, 2.1, 2.2 Level A, 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 buttonGroupAccessibilityReport: AccessibilityReport;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as ButtonGroupAccessibility } from './ButtonGroupAccessibility';
|
|
2
|
+
export type { ButtonGroupAccessibilityProps } from './ButtonGroupAccessibility';
|
|
3
|
+
export { buttonGroupAccessibilityReport } from './ButtonGroupAccessibilityReport';
|
|
4
|
+
export type { AccessibilityReport, WCAGSuccessCriterion, } from './ButtonGroupAccessibilityReport';
|
|
@@ -7,6 +7,7 @@ type CardComponentProps = {
|
|
|
7
7
|
}>;
|
|
8
8
|
cardToken: CardTokenType;
|
|
9
9
|
maxHeight?: string;
|
|
10
|
+
baseId: string;
|
|
10
11
|
};
|
|
11
12
|
type AlignedCardComponentProps = {
|
|
12
13
|
props: Extract<CardProps, {
|
|
@@ -14,6 +15,7 @@ type AlignedCardComponentProps = {
|
|
|
14
15
|
}>;
|
|
15
16
|
cardToken: CardTokenType;
|
|
16
17
|
maxHeight?: string;
|
|
18
|
+
baseId: string;
|
|
17
19
|
};
|
|
18
20
|
type CustomCardComponentProps = {
|
|
19
21
|
props: Extract<CardProps, {
|
|
@@ -21,6 +23,7 @@ type CustomCardComponentProps = {
|
|
|
21
23
|
}>;
|
|
22
24
|
cardToken: CardTokenType;
|
|
23
25
|
maxHeight?: string;
|
|
26
|
+
baseId?: string;
|
|
24
27
|
};
|
|
25
28
|
export declare const DefaultCard: React.FC<CardComponentProps>;
|
|
26
29
|
export declare const AlignedCard: React.FC<AlignedCardComponentProps>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChatInput 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 chatInputAccessibilityReport: AccessibilityReport;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as ChatInputAccessibility } from './ChatInputAccessibility';
|
|
2
|
+
export type { ChatInputAccessibilityProps } from './ChatInputAccessibility';
|
|
3
|
+
export { chatInputAccessibilityReport } from './ChatInputAccessibilityReport';
|
|
4
|
+
export type { AccessibilityReport, WCAGSuccessCriterion, } from './ChatInputAccessibilityReport';
|
|
@@ -20,3 +20,13 @@ export declare const isValidMessageLength: (message: string, maxLength?: number)
|
|
|
20
20
|
* Convert File objects to AttachedFile objects
|
|
21
21
|
*/
|
|
22
22
|
export declare const convertFilesToAttachedFiles: (files: File[]) => AttachedFile[];
|
|
23
|
+
/**
|
|
24
|
+
* Filter out duplicate files by comparing name and size with existing attached files
|
|
25
|
+
* @param files - Array of File objects to check
|
|
26
|
+
* @param attachedFiles - Array of already attached files
|
|
27
|
+
* @returns Object containing newFiles (non-duplicates) and duplicateFiles (array of duplicate file names)
|
|
28
|
+
*/
|
|
29
|
+
export declare const filterDuplicateFiles: (files: File[], attachedFiles: AttachedFile[]) => {
|
|
30
|
+
newFiles: File[];
|
|
31
|
+
duplicateFiles: string[];
|
|
32
|
+
};
|
|
@@ -40,4 +40,9 @@ export type TableBodyProps<T extends Record<string, unknown>> = {
|
|
|
40
40
|
showSkeleton?: boolean;
|
|
41
41
|
skeletonVariant?: SkeletonVariant;
|
|
42
42
|
isRowLoading?: (row: T, index: number) => boolean;
|
|
43
|
+
focusedCell?: {
|
|
44
|
+
rowIndex: number;
|
|
45
|
+
colIndex: number;
|
|
46
|
+
} | null;
|
|
47
|
+
onCellFocus?: (rowIndex: number, colIndex: number) => void;
|
|
43
48
|
};
|
|
@@ -10,6 +10,14 @@ export type TableCellProps<T extends Record<string, unknown>> = {
|
|
|
10
10
|
width: React.CSSProperties;
|
|
11
11
|
frozenStyles?: React.CSSProperties;
|
|
12
12
|
isFirstRow?: boolean;
|
|
13
|
+
customBackgroundColor?: string;
|
|
14
|
+
hasCustomBackground?: boolean;
|
|
13
15
|
onFieldChange: (value: unknown) => void;
|
|
14
16
|
getDisplayValue?: (value: unknown, column: ColumnDefinition<T>) => unknown;
|
|
17
|
+
'data-row-index'?: number;
|
|
18
|
+
'data-col-index'?: number;
|
|
19
|
+
tabIndex?: number;
|
|
20
|
+
onFocus?: () => void;
|
|
21
|
+
onClick?: () => void;
|
|
22
|
+
role?: string;
|
|
15
23
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useSortable } from '@dnd-kit/sortable';
|
|
2
|
-
|
|
2
|
+
type DraggableColumnHeaderProps = Omit<React.ThHTMLAttributes<HTMLTableCellElement>, 'children'> & {
|
|
3
3
|
id: string;
|
|
4
4
|
children: (dragHandleProps: {
|
|
5
5
|
listeners?: ReturnType<typeof useSortable>['listeners'];
|
|
@@ -8,6 +8,6 @@ interface DraggableColumnHeaderProps {
|
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
'data-table-column-heading'?: string;
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
12
|
export declare const DraggableColumnHeader: React.FC<DraggableColumnHeaderProps>;
|
|
13
13
|
export {};
|
|
@@ -12,12 +12,15 @@ type FilterComponentsProps = {
|
|
|
12
12
|
sortState: SortState;
|
|
13
13
|
onColumnFilter?: ColumnFilterHandler;
|
|
14
14
|
onPopoverClose?: () => void;
|
|
15
|
+
onFilterApplied?: () => void;
|
|
15
16
|
};
|
|
16
17
|
export declare const SortOptions: React.FC<{
|
|
17
18
|
fieldKey: string;
|
|
18
19
|
tableToken: TableTokenType;
|
|
19
20
|
sortHandlers: SortHandlers;
|
|
20
21
|
sortState: SortState;
|
|
22
|
+
onFilterApplied?: () => void;
|
|
23
|
+
onPopoverClose?: () => void;
|
|
21
24
|
}>;
|
|
22
25
|
export declare const DropdownSearchSection: React.FC<{
|
|
23
26
|
column: ColumnDefinition<Record<string, unknown>>;
|
|
@@ -44,6 +44,15 @@ export type TableHeaderProps<T extends Record<string, unknown>> = {
|
|
|
44
44
|
min: number;
|
|
45
45
|
max: number;
|
|
46
46
|
}, operator?: 'equals' | 'contains' | 'startsWith' | 'endsWith' | 'gt' | 'lt' | 'gte' | 'lte' | 'range') => void;
|
|
47
|
+
columnFilters?: Array<{
|
|
48
|
+
field: string;
|
|
49
|
+
type: FilterType;
|
|
50
|
+
value: string | string[] | {
|
|
51
|
+
min: number;
|
|
52
|
+
max: number;
|
|
53
|
+
};
|
|
54
|
+
operator?: string;
|
|
55
|
+
}>;
|
|
47
56
|
onHeaderChange?: (field: keyof T, newHeader: string) => void;
|
|
48
57
|
getColumnWidth: (column: ColumnDefinition<T>, index: number) => React.CSSProperties;
|
|
49
58
|
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DataTable Component Accessibility Report Data
|
|
3
|
+
* WCAG 2.0, 2.1, 2.2 Level A, 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 dataTableAccessibilityReport: AccessibilityReport;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as DataTableAccessibility } from './DataTableAccessibility';
|
|
2
|
+
export type { DataTableAccessibilityProps } from './DataTableAccessibility';
|
|
3
|
+
export { dataTableAccessibilityReport } from './DataTableAccessibilityReport';
|
|
4
|
+
export type { AccessibilityReport, WCAGSuccessCriterion, } from './DataTableAccessibilityReport';
|
|
@@ -42,6 +42,7 @@ type HeaderType = {
|
|
|
42
42
|
gap: CSSObject['gap'];
|
|
43
43
|
maxWidth: CSSObject['maxWidth'];
|
|
44
44
|
overflowX: CSSObject['overflowX'];
|
|
45
|
+
overflowY: CSSObject['overflowY'];
|
|
45
46
|
title: {
|
|
46
47
|
fontSize: CSSObject['fontSize'];
|
|
47
48
|
fontWeight: CSSObject['fontWeight'];
|
|
@@ -122,6 +123,7 @@ export type TableTokenType = BasicCSSProps & {
|
|
|
122
123
|
color: CSSObject['color'];
|
|
123
124
|
fontSize: CSSObject['fontSize'];
|
|
124
125
|
width?: CSSObject['width'];
|
|
126
|
+
backgroundColor?: CSSObject['backgroundColor'];
|
|
125
127
|
};
|
|
126
128
|
sortable: {
|
|
127
129
|
cursor: CSSObject['cursor'];
|
|
@@ -267,6 +267,7 @@ export type DataTableProps<T extends Record<string, unknown>> = {
|
|
|
267
267
|
showHeader?: boolean;
|
|
268
268
|
showToolbar?: boolean;
|
|
269
269
|
showSettings?: boolean;
|
|
270
|
+
showFooter?: boolean;
|
|
270
271
|
headerSlot1?: ReactNode;
|
|
271
272
|
headerSlot2?: ReactNode;
|
|
272
273
|
enableInlineEdit?: boolean;
|
|
@@ -5,6 +5,8 @@ type TimeSelectorProps = {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
autoFocus?: boolean;
|
|
7
7
|
tabIndex?: number;
|
|
8
|
+
id?: string;
|
|
9
|
+
'aria-label'?: string;
|
|
8
10
|
};
|
|
9
11
|
declare const TimeSelector: React.ForwardRefExoticComponent<TimeSelectorProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
12
|
export default TimeSelector;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type DateRangePickerAccessibilityProps = {
|
|
2
|
+
className?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const DateRangePickerAccessibility: import('react').ForwardRefExoticComponent<DateRangePickerAccessibilityProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export default DateRangePickerAccessibility;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as DateRangePickerAccessibility } from './DateRangePickerAccessibility';
|
|
2
|
+
export type { DateRangePickerAccessibilityProps } from './DateRangePickerAccessibility';
|
|
3
|
+
export { dateRangePickerAccessibilityReport } from './DateRangePickerAccessibilityReport';
|
|
4
|
+
export type { AccessibilityReport } from '../../Button/accessibility/ButtonAccessibilityReport';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DirectoryProps } from './types';
|
|
2
2
|
declare const Directory: {
|
|
3
|
-
({ directoryData,
|
|
3
|
+
({ directoryData, idPrefix, activeItem, onActiveItemChange, defaultActiveItem, }: DirectoryProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default Directory;
|
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { NavItemProps } from './types';
|
|
3
|
-
|
|
3
|
+
type ActiveItemProviderProps = {
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Controlled mode: Parent controls the active item
|
|
7
|
+
* If provided, internal state is ignored
|
|
8
|
+
*/
|
|
9
|
+
activeItem?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* Callback when active item changes (for controlled mode)
|
|
12
|
+
*/
|
|
13
|
+
onActiveItemChange?: (item: string | null) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Initial active item (for uncontrolled mode)
|
|
16
|
+
*/
|
|
17
|
+
defaultActiveItem?: string | null;
|
|
18
|
+
};
|
|
19
|
+
export declare const ActiveItemProvider: React.FC<ActiveItemProviderProps>;
|
|
20
|
+
declare const NavItem: ({ item, index, onNavigate, itemPath, }: NavItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
21
|
export default NavItem;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SectionProps } from './types';
|
|
2
|
-
declare const Section: ({ section, sectionIndex, onNavigateBetweenSections, }: SectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const Section: ({ section, sectionIndex, onNavigateBetweenSections, idPrefix, }: SectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Section;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
export type DirectoryProps = {
|
|
3
|
-
className?: string;
|
|
4
3
|
directoryData: DirectoryData[];
|
|
4
|
+
idPrefix?: string;
|
|
5
|
+
activeItem?: string | null;
|
|
6
|
+
onActiveItemChange?: (item: string | null) => void;
|
|
7
|
+
defaultActiveItem?: string | null;
|
|
5
8
|
};
|
|
6
9
|
export type DirectoryData = {
|
|
7
10
|
label?: string;
|
|
@@ -27,9 +30,11 @@ export type SectionProps = {
|
|
|
27
30
|
section: DirectoryData;
|
|
28
31
|
sectionIndex: number;
|
|
29
32
|
onNavigateBetweenSections: (direction: 'up' | 'down', currentIndex: number) => void;
|
|
33
|
+
idPrefix?: string;
|
|
30
34
|
};
|
|
31
35
|
export type NavItemProps = {
|
|
32
36
|
item: NavbarItem;
|
|
33
37
|
index: number;
|
|
34
38
|
onNavigate: (direction: 'up' | 'down', currentIndex: number) => void;
|
|
39
|
+
itemPath?: string;
|
|
35
40
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { DrawerProps, DrawerTriggerProps, DrawerContentProps, DrawerHeaderProps, DrawerTitleProps, DrawerDescriptionProps, DrawerFooterProps, DrawerCloseProps } from '../types';
|
|
3
3
|
export declare const Drawer: ({ open, onOpenChange, direction, modal, dismissible, nested, snapPoints, activeSnapPoint, onSnapPointChange, fadeFromIndex, snapToSequentialPoint, disableDrag, children, }: DrawerProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare const DrawerTrigger: React.ForwardRefExoticComponent<DrawerTriggerProps &
|
|
4
|
+
export declare const DrawerTrigger: React.ForwardRefExoticComponent<DrawerTriggerProps & {
|
|
5
|
+
'aria-label'?: string;
|
|
6
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
5
7
|
export declare const DrawerPortal: typeof import('vaul').Portal;
|
|
6
8
|
export declare const DrawerOverlay: React.ForwardRefExoticComponent<{
|
|
7
9
|
className?: string;
|
|
@@ -35,4 +37,6 @@ export declare const DrawerBody: React.ForwardRefExoticComponent<{
|
|
|
35
37
|
export declare const DrawerFooter: React.ForwardRefExoticComponent<DrawerFooterProps & {
|
|
36
38
|
direction?: "top" | "bottom" | "left" | "right";
|
|
37
39
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
-
export declare const DrawerClose: React.ForwardRefExoticComponent<DrawerCloseProps &
|
|
40
|
+
export declare const DrawerClose: React.ForwardRefExoticComponent<DrawerCloseProps & {
|
|
41
|
+
'aria-label'?: string;
|
|
42
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -92,6 +92,10 @@ export type DrawerTriggerProps = {
|
|
|
92
92
|
* Custom click handler
|
|
93
93
|
*/
|
|
94
94
|
onClick?: () => void;
|
|
95
|
+
/**
|
|
96
|
+
* Accessibility label for the trigger button
|
|
97
|
+
*/
|
|
98
|
+
'aria-label'?: string;
|
|
95
99
|
};
|
|
96
100
|
export type DrawerContentProps = {
|
|
97
101
|
/**
|
|
@@ -180,6 +184,14 @@ export type DrawerCloseProps = {
|
|
|
180
184
|
* Whether the close button is disabled
|
|
181
185
|
*/
|
|
182
186
|
disabled?: boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Merge props with child element instead of rendering a button
|
|
189
|
+
*/
|
|
190
|
+
asChild?: boolean;
|
|
191
|
+
/**
|
|
192
|
+
* Accessibility label for the close button
|
|
193
|
+
*/
|
|
194
|
+
'aria-label'?: string;
|
|
183
195
|
};
|
|
184
196
|
export type StatusDrawerProps = {
|
|
185
197
|
/**
|
|
@@ -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, id: providedId, ...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, passwordToggle, type: providedType, ...rest }: TextInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default TextInput;
|
|
@@ -25,4 +25,5 @@ export type TextInputProps = {
|
|
|
25
25
|
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
26
26
|
onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
27
27
|
cursor?: 'text' | 'pointer' | 'default' | 'not-allowed';
|
|
28
|
+
passwordToggle?: boolean;
|
|
28
29
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'style' | 'className' | 'onBlur' | 'onFocus'>;
|
|
@@ -4,7 +4,7 @@ import { KeyValuePairTokensType } from './KeyValuePair.tokens';
|
|
|
4
4
|
/**
|
|
5
5
|
* Get text styles based on overflow mode
|
|
6
6
|
*/
|
|
7
|
-
export declare const getTextStyles: (textOverflow: TextOverflowMode, maxLines: number) => CSSObject;
|
|
7
|
+
export declare const getTextStyles: (textOverflow: TextOverflowMode, maxLines: number, slotPresent: boolean) => CSSObject;
|
|
8
8
|
/**
|
|
9
9
|
* Get PrimitiveText styles based on overflow mode
|
|
10
10
|
*/
|
|
@@ -14,6 +14,7 @@ export type ModalSkeletonProps = {
|
|
|
14
14
|
};
|
|
15
15
|
export type ModalProps = {
|
|
16
16
|
isOpen: boolean;
|
|
17
|
+
isCustom?: boolean;
|
|
17
18
|
onClose: () => void;
|
|
18
19
|
title?: string;
|
|
19
20
|
subtitle?: string;
|
|
@@ -31,5 +32,8 @@ export type ModalProps = {
|
|
|
31
32
|
minWidth?: string;
|
|
32
33
|
useDrawerOnMobile?: boolean;
|
|
33
34
|
skeleton?: ModalSkeletonProps;
|
|
35
|
+
maxWidth?: string;
|
|
36
|
+
maxHeight?: string;
|
|
37
|
+
minHeight?: string;
|
|
34
38
|
};
|
|
35
39
|
export {};
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { default as MultiSelectAccessibility } from './MultiSelectAccessibility';
|
|
2
|
+
export type { MultiSelectAccessibilityProps } from './MultiSelectAccessibility';
|
|
2
3
|
export { multiSelectAccessibilityReport } from './MultiSelectAccessibilityReport';
|
|
4
|
+
export type { AccessibilityReport, WCAGSuccessCriterion, } from './MultiSelectAccessibilityReport';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type ProgressBarAccessibilityProps = {
|
|
2
|
+
className?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const ProgressBarAccessibility: import('react').ForwardRefExoticComponent<ProgressBarAccessibilityProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export default ProgressBarAccessibility;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProgressBar Component Accessibility Report Data
|
|
3
|
+
* WCAG 2.0, 2.1, 2.2 Level A, 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 progressBarAccessibilityReport: AccessibilityReport;
|