@juspay/blend-design-system 0.0.36 → 0.0.37-beta.1

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.
Files changed (103) hide show
  1. package/dist/components/BreadcrumbV2/BreadcrumbV2.d.ts +3 -0
  2. package/dist/components/BreadcrumbV2/BreadcrumbV2Icon.d.ts +6 -0
  3. package/dist/components/BreadcrumbV2/BreadcrumbV2Item.d.ts +6 -0
  4. package/dist/components/BreadcrumbV2/BreadcrumbV2List.d.ts +15 -0
  5. package/dist/components/BreadcrumbV2/BreadcrumbV2OverflowMenu.d.ts +11 -0
  6. package/dist/components/BreadcrumbV2/BreadcrumbV2Page.d.ts +9 -0
  7. package/dist/components/BreadcrumbV2/BreadcrumbV2Separator.d.ts +6 -0
  8. package/dist/components/BreadcrumbV2/breadcrumbV2.dark.tokens.d.ts +3 -0
  9. package/dist/components/BreadcrumbV2/breadcrumbV2.light.tokens.d.ts +3 -0
  10. package/dist/components/BreadcrumbV2/breadcrumbV2.tokens.d.ts +31 -0
  11. package/dist/components/BreadcrumbV2/breadcrumbV2.types.d.ts +46 -0
  12. package/dist/components/BreadcrumbV2/index.d.ts +3 -0
  13. package/dist/components/BreadcrumbV2/utils.d.ts +27 -0
  14. package/dist/components/CodeBlock/CodeBlockDiffView/CodeBlockDiffView.d.ts +6 -0
  15. package/dist/components/CodeBlock/CodeBlockDiffView/types.d.ts +16 -0
  16. package/dist/components/CodeBlock/CodeBlockDiffView/utils.d.ts +4 -0
  17. package/dist/components/CodeBlock/CodeBlockLineParts.d.ts +56 -0
  18. package/dist/components/CodeBlock/codeBlock.token.d.ts +18 -0
  19. package/dist/components/CodeBlock/types.d.ts +25 -0
  20. package/dist/components/CodeBlock/utils.d.ts +16 -1
  21. package/dist/components/CodeEditorV2/CodeEditorV2.d.ts +28 -0
  22. package/dist/components/CodeEditorV2/CodeEditorV2Header.d.ts +2 -0
  23. package/dist/components/CodeEditorV2/MonacoEditor/MonacoEditorWrapper.d.ts +2 -0
  24. package/dist/components/CodeEditorV2/MonacoEditor/monacoTheme.d.ts +3 -0
  25. package/dist/components/CodeEditorV2/codeEditorV2.dark.tokens.d.ts +3 -0
  26. package/dist/components/CodeEditorV2/codeEditorV2.light.token.d.ts +3 -0
  27. package/dist/components/CodeEditorV2/codeEditorV2.tokens.d.ts +94 -0
  28. package/dist/components/CodeEditorV2/codeEditorV2.types.d.ts +112 -0
  29. package/dist/components/CodeEditorV2/index.d.ts +3 -0
  30. package/dist/components/CodeEditorV2/utils.d.ts +78 -0
  31. package/dist/components/DataTable/TableBody/types.d.ts +2 -0
  32. package/dist/components/DataTable/TableHeader/FilterComponents.d.ts +7 -0
  33. package/dist/components/DataTable/TableHeader/types.d.ts +5 -0
  34. package/dist/components/DataTable/TableHeader/utils.d.ts +2 -0
  35. package/dist/components/DataTable/types.d.ts +6 -0
  36. package/dist/components/DateRangePicker/types.d.ts +1 -0
  37. package/dist/components/DrawerV2/index.d.ts +3 -0
  38. package/dist/components/DrawerV2/types.d.ts +26 -0
  39. package/dist/components/Menu/types.d.ts +2 -1
  40. package/dist/components/MenuV2/MenuV2.d.ts +4 -0
  41. package/dist/components/MenuV2/MenuV2Content.d.ts +29 -0
  42. package/dist/components/MenuV2/MenuV2Item.d.ts +9 -0
  43. package/dist/components/MenuV2/MenuV2SubMenu.d.ts +12 -0
  44. package/dist/components/MenuV2/index.d.ts +7 -0
  45. package/dist/components/MenuV2/menuV2.animations.d.ts +2 -0
  46. package/dist/components/MenuV2/menuV2.dark.tokens.d.ts +3 -0
  47. package/dist/components/MenuV2/menuV2.light.tokens.d.ts +3 -0
  48. package/dist/components/MenuV2/menuV2.tokens.d.ts +92 -0
  49. package/dist/components/MenuV2/menuV2.types.d.ts +86 -0
  50. package/dist/components/MenuV2/menuV2.utils.d.ts +26 -0
  51. package/dist/components/Modal/modal.tokens.d.ts +3 -0
  52. package/dist/components/MultiSelect/MultiSelect.d.ts +1 -1
  53. package/dist/components/MultiSelect/MultiSelectTrigger.d.ts +2 -2
  54. package/dist/components/MultiSelect/types.d.ts +2 -3
  55. package/dist/components/ProgressBarV2/CircularProgressBarV2.d.ts +2 -0
  56. package/dist/components/ProgressBarV2/LinearProgressBarV2.d.ts +2 -0
  57. package/dist/components/ProgressBarV2/ProgressBarV2.d.ts +11 -0
  58. package/dist/components/ProgressBarV2/index.d.ts +3 -0
  59. package/dist/components/ProgressBarV2/progressBarV2.dark.tokens.d.ts +3 -0
  60. package/dist/components/ProgressBarV2/progressBarV2.light.tokens.d.ts +3 -0
  61. package/dist/components/ProgressBarV2/progressBarV2.tokens.d.ts +63 -0
  62. package/dist/components/ProgressBarV2/progressBarV2.types.d.ts +45 -0
  63. package/dist/components/SingleSelect/SingleSelect.d.ts +1 -1
  64. package/dist/components/SingleSelect/SingleSelectTrigger.d.ts +1 -1
  65. package/dist/components/SingleSelect/types.d.ts +2 -3
  66. package/dist/components/StatCardV2/StatCardV2.chartConfig.d.ts +2 -0
  67. package/dist/components/StatCardV2/StatCardV2.d.ts +16 -0
  68. package/dist/components/StatCardV2/StatCardV2Change.d.ts +3 -0
  69. package/dist/components/StatCardV2/StatCardV2NoData.d.ts +10 -0
  70. package/dist/components/StatCardV2/StatCardV2Skeleton.d.ts +7 -0
  71. package/dist/components/StatCardV2/StatCardV2Subtitle.d.ts +3 -0
  72. package/dist/components/StatCardV2/StatCardV2Title.d.ts +3 -0
  73. package/dist/components/StatCardV2/StatCardV2Value.d.ts +11 -0
  74. package/dist/components/StatCardV2/index.d.ts +3 -0
  75. package/dist/components/StatCardV2/statcardV2.dark.tokens.d.ts +3 -0
  76. package/dist/components/StatCardV2/statcardV2.light.tokens.d.ts +3 -0
  77. package/dist/components/StatCardV2/statcardV2.tokens.d.ts +81 -0
  78. package/dist/components/StatCardV2/statcardV2.types.d.ts +78 -0
  79. package/dist/components/StatCardV2/utils.d.ts +7 -0
  80. package/dist/components/TabsV2/StyledTabsV2.d.ts +26 -0
  81. package/dist/components/TabsV2/TabsV2.d.ts +15 -0
  82. package/dist/components/TabsV2/TabsV2Content.d.ts +2 -0
  83. package/dist/components/TabsV2/TabsV2List.d.ts +14 -0
  84. package/dist/components/TabsV2/TabsV2Trigger.d.ts +19 -0
  85. package/dist/components/TabsV2/index.d.ts +8 -0
  86. package/dist/components/TabsV2/tabsV2.context.d.ts +21 -0
  87. package/dist/components/TabsV2/tabsV2.dark.tokens.d.ts +3 -0
  88. package/dist/components/TabsV2/tabsV2.light.tokens.d.ts +3 -0
  89. package/dist/components/TabsV2/tabsV2.tokens.d.ts +97 -0
  90. package/dist/components/TabsV2/tabsV2.types.d.ts +68 -0
  91. package/dist/components/TabsV2/tabsV2.utils.d.ts +18 -0
  92. package/dist/components/common/virtualViewport.d.ts +12 -0
  93. package/dist/context/ShadowAware.d.ts +16 -0
  94. package/dist/context/ThemeContext.d.ts +12 -0
  95. package/dist/context/ThemeProvider.d.ts +10 -1
  96. package/dist/context/index.d.ts +1 -0
  97. package/dist/context/useComponentToken.d.ts +7 -1
  98. package/dist/hooks/index.d.ts +1 -0
  99. package/dist/main.d.ts +1 -0
  100. package/dist/main.js +43159 -37911
  101. package/dist/tokens/font.tokens.d.ts +2 -0
  102. package/dist/tokens/zIndex.tokens.d.ts +1 -0
  103. package/package.json +5 -3
@@ -0,0 +1,63 @@
1
+ import { BreakpointType } from '../../breakpoints/breakPoints';
2
+ import { Theme } from '../../context/theme.enum';
3
+ import { FoundationTokenType } from '../../tokens/theme.token';
4
+ import { ProgressBarV2Appearance, ProgressBarV2Size } from './progressBarV2.types';
5
+ import { CSSObject } from 'styled-components';
6
+ export type ProgressBarV2TokenType = {
7
+ linear: {
8
+ height: {
9
+ [key in ProgressBarV2Size]: CSSObject['height'];
10
+ };
11
+ fill: {
12
+ backgroundColor: {
13
+ [key in ProgressBarV2Appearance]: CSSObject['backgroundColor'];
14
+ };
15
+ borderRadius: {
16
+ [key in ProgressBarV2Appearance]: CSSObject['borderRadius'];
17
+ };
18
+ };
19
+ empty: {
20
+ backgroundColor: {
21
+ [key in ProgressBarV2Appearance]: CSSObject['backgroundColor'];
22
+ };
23
+ backgroundImage: {
24
+ [key in ProgressBarV2Appearance]: CSSObject['backgroundImage'];
25
+ };
26
+ backgroundSize: {
27
+ [key in ProgressBarV2Appearance]: CSSObject['backgroundSize'];
28
+ };
29
+ };
30
+ borderRadius: {
31
+ [key in ProgressBarV2Appearance]: CSSObject['borderRadius'];
32
+ };
33
+ gap: CSSObject['gap'];
34
+ };
35
+ circular: {
36
+ size: {
37
+ [key in ProgressBarV2Size]: CSSObject['width'];
38
+ };
39
+ strokeWidth: {
40
+ [key in ProgressBarV2Size]: number;
41
+ };
42
+ stroke: {
43
+ [key in ProgressBarV2Appearance]: CSSObject['stroke'];
44
+ };
45
+ background: {
46
+ [key in ProgressBarV2Appearance]: CSSObject['stroke'];
47
+ };
48
+ dashArray: {
49
+ [key in ProgressBarV2Appearance]: string;
50
+ };
51
+ motion: string;
52
+ };
53
+ label: {
54
+ fontSize: CSSObject['fontSize'];
55
+ fontWeight: CSSObject['fontWeight'];
56
+ color: CSSObject['color'];
57
+ };
58
+ transition: string;
59
+ };
60
+ export type ResponsiveProgressBarV2Tokens = {
61
+ [key in keyof BreakpointType]: ProgressBarV2TokenType;
62
+ };
63
+ export declare const getProgressBarV2Tokens: (foundationToken: FoundationTokenType, theme?: Theme | string) => ResponsiveProgressBarV2Tokens;
@@ -0,0 +1,45 @@
1
+ import { HTMLAttributes } from 'react';
2
+ import { ProgressBarV2TokenType } from './progressBarV2.tokens';
3
+ export declare enum ProgressBarV2Size {
4
+ SM = "sm",
5
+ MD = "md",
6
+ LG = "lg"
7
+ }
8
+ /** Bar geometry: horizontal track vs circular ring. */
9
+ export declare enum ProgressBarV2Variant {
10
+ LINEAR = "linear",
11
+ CIRCULAR = "circular"
12
+ }
13
+ /**
14
+ * Fill / stroke style shared by linear and circular progress (continuous vs segmented).
15
+ */
16
+ export declare enum ProgressBarV2Appearance {
17
+ SOLID = "solid",
18
+ SEGMENTED = "segmented"
19
+ }
20
+ export type ProgressBarV2Props = {
21
+ value: number;
22
+ size?: ProgressBarV2Size;
23
+ variant?: ProgressBarV2Variant;
24
+ appearance?: ProgressBarV2Appearance;
25
+ showLabel?: boolean;
26
+ min?: number;
27
+ max?: number;
28
+ } & Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'className' | 'style'>;
29
+ export type ProgressBarV2InternalProps = {
30
+ value: number;
31
+ min: number;
32
+ max: number;
33
+ ariaLabel?: string;
34
+ ariaLabelledby?: string;
35
+ showLabel: boolean;
36
+ tokens: ProgressBarV2TokenType;
37
+ };
38
+ export type CircularProgressBarV2Props = ProgressBarV2InternalProps & {
39
+ size: ProgressBarV2Size;
40
+ appearance: ProgressBarV2Appearance;
41
+ };
42
+ export type LinearProgressBarV2Props = ProgressBarV2InternalProps & {
43
+ size: ProgressBarV2Size;
44
+ appearance: ProgressBarV2Appearance;
45
+ };
@@ -1,3 +1,3 @@
1
1
  import { SingleSelectProps } from './types';
2
- declare const SingleSelect: ({ label, subLabel, hintText, required, helpIconText, placeholder, error, errorMessage, size, items, name, variant, disabled, selected, onSelect, enableSearch, searchPlaceholder, slot, customTrigger, useDrawerOnMobile, alignment, side, sideOffset, alignOffset, minMenuWidth, maxMenuWidth, maxMenuHeight, onBlur, onFocus, inline, fullWidth, enableVirtualization, virtualListItemHeight, virtualListOverscan, onEndReached, endReachedThreshold, hasMore, loadingComponent, skeleton, maxTriggerWidth, minTriggerWidth, allowCustomValue, customValueLabel, singleSelectGroupPosition, allowDeselect, ...rest }: SingleSelectProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const SingleSelect: ({ label, subLabel, hintText, required, helpIconText, placeholder, error, errorMessage, size, items, name, variant, disabled, selected, onSelect, enableSearch, searchPlaceholder, slot, customTrigger, useDrawerOnMobile, alignment, side, sideOffset, alignOffset, minMenuWidth, maxMenuWidth, maxMenuHeight, inline, fullWidth, enableVirtualization, virtualListItemHeight, virtualListOverscan, onEndReached, endReachedThreshold, hasMore, loadingComponent, skeleton, maxTriggerWidth, minTriggerWidth, allowCustomValue, customValueLabel, singleSelectGroupPosition, allowDeselect, ...rest }: SingleSelectProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default SingleSelect;
@@ -10,7 +10,7 @@ export type SingleSelectTriggerProps = {
10
10
  required: boolean;
11
11
  valueLabelMap: Record<string, string>;
12
12
  open: boolean;
13
- onClick?: () => void;
13
+ onClick?: React.MouseEventHandler<HTMLButtonElement>;
14
14
  slot: React.ReactNode;
15
15
  variant: SelectMenuVariant;
16
16
  isSmallScreenWithLargeSize: boolean;
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { SkeletonVariant } from '../Skeleton';
2
3
  import { TooltipSide, TooltipAlign, TooltipSize } from '../Tooltip/types';
3
4
  export declare enum SelectMenuAlignment {
@@ -96,8 +97,6 @@ export type SingleSelectProps = {
96
97
  maxMenuWidth?: number;
97
98
  maxMenuHeight?: number;
98
99
  inline?: boolean;
99
- onBlur?: () => void;
100
- onFocus?: () => void;
101
100
  error?: boolean;
102
101
  errorMessage?: string;
103
102
  fullWidth?: boolean;
@@ -115,4 +114,4 @@ export type SingleSelectProps = {
115
114
  customValueLabel?: string;
116
115
  singleSelectGroupPosition?: 'center' | 'left' | 'right';
117
116
  allowDeselect?: boolean;
118
- };
117
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'slot' | 'onSelect'>;
@@ -0,0 +1,2 @@
1
+ import { ChartV2Options } from '../ChartsV2';
2
+ export declare const buildStatCardV2ChartOptions: (overrides?: ChartV2Options) => ChartV2Options;
@@ -0,0 +1,16 @@
1
+ import { StatCardV2Variant } from './statcardV2.types';
2
+ declare const StatCardV2: import('react').ForwardRefExoticComponent<{
3
+ title: string;
4
+ variant?: StatCardV2Variant;
5
+ titleIcon?: import('react').ReactNode;
6
+ actionIcon?: import('react').ReactNode;
7
+ value?: string;
8
+ progressValue?: number;
9
+ helpIconText?: string;
10
+ change?: import('./statcardV2.types').StatCardV2Change;
11
+ subtitle?: string;
12
+ options?: import('../ChartsV2').ChartV2Options;
13
+ skeleton?: import('./statcardV2.types').StatCardV2SkeletonProps;
14
+ dropdownProps?: import('../SingleSelect').SingleSelectProps;
15
+ } & import('react').HTMLAttributes<HTMLDivElement> & import('./statcardV2.types').StatCardV2Dimensions & import('react').RefAttributes<HTMLDivElement>>;
16
+ export default StatCardV2;
@@ -0,0 +1,3 @@
1
+ import { StatCardV2ChangeProps } from './statcardV2.types';
2
+ declare const StatCardV2Change: ({ changeValueText, leftSymbol, rightSymbol, arrowDirection, changeType, tokens, id, }: StatCardV2ChangeProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ export default StatCardV2Change;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { StatCardV2Props } from './statcardV2.types';
3
+ import { StatCardV2TokensType } from './statcardV2.tokens';
4
+ type StatCardV2NoDataProps = Pick<StatCardV2Props, 'title' | 'titleIcon' | 'helpIconText' | 'subtitle' | 'dropdownProps' | 'maxWidth' | 'minWidth' | 'width' | 'height'> & {
5
+ tokens: StatCardV2TokensType;
6
+ isSmallScreen: boolean;
7
+ filteredProps: React.ComponentProps<'div'>;
8
+ };
9
+ declare const StatCardV2NoData: ({ title, titleIcon, helpIconText, subtitle, dropdownProps, maxWidth, minWidth, width, height, tokens, isSmallScreen, filteredProps, }: StatCardV2NoDataProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default StatCardV2NoData;
@@ -0,0 +1,7 @@
1
+ import { StatCardV2SkeletonProps } from './statcardV2.types';
2
+ declare const StatCardV2Skeleton: ({ skeleton, maxWidth, minWidth, }: {
3
+ skeleton: StatCardV2SkeletonProps;
4
+ maxWidth: string | number;
5
+ minWidth: string | number;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export default StatCardV2Skeleton;
@@ -0,0 +1,3 @@
1
+ import { StatCardV2SubtitleProps } from './statcardV2.types';
2
+ declare const StatCardV2Subtitle: ({ subtitle, tokens, id, }: StatCardV2SubtitleProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ export default StatCardV2Subtitle;
@@ -0,0 +1,3 @@
1
+ import { StatCardV2TitleProps } from './statcardV2.types';
2
+ declare const StatCardV2Title: ({ title, helpIconText, tokens, id, }: StatCardV2TitleProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ export default StatCardV2Title;
@@ -0,0 +1,11 @@
1
+ import { StatCardV2Props, StatCardV2Variant } from './statcardV2.types';
2
+ import { StatCardV2TokensType } from './statcardV2.tokens';
3
+ export declare const STATCARD_FALLBACK_DISPLAY = "--";
4
+ export declare const renderVariantFallbackValue: (tokens: StatCardV2TokensType, variant: StatCardV2Variant) => import("react/jsx-runtime").JSX.Element;
5
+ declare const StatCardV2Value: ({ value, tokens, variant, id, }: {
6
+ value: StatCardV2Props["value"];
7
+ tokens: StatCardV2TokensType;
8
+ variant: StatCardV2Variant;
9
+ id?: string;
10
+ }) => import("react/jsx-runtime").JSX.Element;
11
+ export default StatCardV2Value;
@@ -0,0 +1,3 @@
1
+ export { default as StatCardV2 } from './StatCardV2';
2
+ export * from './statcardV2.types';
3
+ export * from './statcardV2.tokens';
@@ -0,0 +1,3 @@
1
+ import { FoundationTokenType } from '../../tokens/theme.token';
2
+ import { ResponsiveStatCardV2Tokens } from './statcardV2.tokens';
3
+ export declare const getStatCardV2DarkTokens: (foundationToken: FoundationTokenType) => ResponsiveStatCardV2Tokens;
@@ -0,0 +1,3 @@
1
+ import { FoundationTokenType } from '../../tokens/theme.token';
2
+ import { ResponsiveStatCardV2Tokens } from './statcardV2.tokens';
3
+ export declare const getStatCardV2LightTokens: (foundationToken: FoundationTokenType) => ResponsiveStatCardV2Tokens;
@@ -0,0 +1,81 @@
1
+ import { CSSObject } from 'styled-components';
2
+ import { BreakpointType } from '../../breakpoints/breakPoints';
3
+ import { FoundationTokenType } from '../../tokens/theme.token';
4
+ import { Theme } from '../../context/theme.enum';
5
+ import { StatCardV2ChangeType, StatCardV2Variant } from './statcardV2.types';
6
+ export type StatCardV2TokensType = {
7
+ height: CSSObject['height'];
8
+ width: CSSObject['width'];
9
+ maxWidth: CSSObject['maxWidth'];
10
+ minWidth: CSSObject['minWidth'];
11
+ paddingTop: CSSObject['paddingTop'];
12
+ paddingBottom: CSSObject['paddingBottom'];
13
+ paddingLeft: CSSObject['paddingLeft'];
14
+ paddingRight: CSSObject['paddingRight'];
15
+ border: CSSObject['border'];
16
+ borderRadius: CSSObject['borderRadius'];
17
+ backgroundColor: CSSObject['backgroundColor'];
18
+ boxShadow: CSSObject['boxShadow'];
19
+ topContainer: {
20
+ gap: CSSObject['gap'];
21
+ dataContainer: {
22
+ gap: CSSObject['gap'];
23
+ titleContainer: {
24
+ gap: CSSObject['gap'];
25
+ title: {
26
+ fontSize: CSSObject['fontSize'];
27
+ fontWeight: CSSObject['fontWeight'];
28
+ color: CSSObject['color'];
29
+ lineHeight: CSSObject['lineHeight'];
30
+ };
31
+ helpIcon: {
32
+ width: CSSObject['width'];
33
+ height: CSSObject['height'];
34
+ color: {
35
+ default: CSSObject['color'];
36
+ hover: CSSObject['color'];
37
+ };
38
+ };
39
+ };
40
+ statsContainer: {
41
+ gap: CSSObject['gap'];
42
+ value: {
43
+ [key in StatCardV2Variant]: {
44
+ fontSize: CSSObject['fontSize'];
45
+ fontWeight: CSSObject['fontWeight'];
46
+ color: CSSObject['color'];
47
+ lineHeight: CSSObject['lineHeight'];
48
+ };
49
+ };
50
+ changeContainer: {
51
+ gap: CSSObject['gap'];
52
+ change: {
53
+ fontSize: CSSObject['fontSize'];
54
+ fontWeight: CSSObject['fontWeight'];
55
+ color: {
56
+ [key in StatCardV2ChangeType]: CSSObject['color'];
57
+ };
58
+ lineHeight: CSSObject['lineHeight'];
59
+ };
60
+ arrow: {
61
+ width: CSSObject['width'];
62
+ height: CSSObject['height'];
63
+ color: {
64
+ [key in StatCardV2ChangeType]: CSSObject['color'];
65
+ };
66
+ };
67
+ };
68
+ };
69
+ subtitle: {
70
+ fontSize: CSSObject['fontSize'];
71
+ fontWeight: CSSObject['fontWeight'];
72
+ color: CSSObject['color'];
73
+ lineHeight: CSSObject['lineHeight'];
74
+ };
75
+ };
76
+ };
77
+ };
78
+ export type ResponsiveStatCardV2Tokens = {
79
+ [key in keyof BreakpointType]: StatCardV2TokensType;
80
+ };
81
+ export declare const getStatCardV2Tokens: (foundationToken: FoundationTokenType, theme?: Theme | string) => ResponsiveStatCardV2Tokens;
@@ -0,0 +1,78 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ import { CSSObject } from 'styled-components';
3
+ import { StatCardV2TokensType } from './statcardV2.tokens';
4
+ import { ChartV2Options } from '../ChartsV2';
5
+ import { SkeletonVariant } from '../Skeleton';
6
+ import { SingleSelectProps } from '../SingleSelect';
7
+ export type StatCardV2Dimensions = {
8
+ width?: CSSObject['width'];
9
+ maxWidth?: CSSObject['maxWidth'];
10
+ minWidth?: CSSObject['minWidth'];
11
+ height?: CSSObject['height'];
12
+ };
13
+ export declare enum StatCardV2Variant {
14
+ CHART = "chart",
15
+ PROGRESS_BAR = "progress",
16
+ NUMBER = "number"
17
+ }
18
+ export declare enum StatCardV2ArrowDirection {
19
+ UP = "up",
20
+ DOWN = "down"
21
+ }
22
+ export declare enum StatCardV2ChangeType {
23
+ INCREASE = "increase",
24
+ DECREASE = "decrease"
25
+ }
26
+ export declare enum StatCardV2Alignment {
27
+ LEFT = "left",
28
+ CENTER = "center"
29
+ }
30
+ export type StatCardV2Change = {
31
+ value: string;
32
+ changeType: StatCardV2ChangeType;
33
+ leftSymbol?: string;
34
+ rightSymbol?: string;
35
+ arrowDirection?: StatCardV2ArrowDirection;
36
+ tooltip?: ReactNode;
37
+ };
38
+ export type StatCardV2SkeletonProps = {
39
+ variant: SkeletonVariant;
40
+ show: boolean;
41
+ height?: CSSObject['height'];
42
+ maxWidth?: CSSObject['maxWidth'];
43
+ minWidth?: CSSObject['minWidth'];
44
+ };
45
+ export type StatCardV2TitleProps = {
46
+ title: string;
47
+ helpIconText?: string;
48
+ tokens: StatCardV2TokensType;
49
+ id?: string;
50
+ };
51
+ export type StatCardV2ChangeProps = {
52
+ changeValueText?: string;
53
+ leftSymbol?: string;
54
+ rightSymbol?: string;
55
+ arrowDirection: StatCardV2ArrowDirection;
56
+ changeType: StatCardV2ChangeType;
57
+ tokens: StatCardV2TokensType;
58
+ id?: string;
59
+ };
60
+ export type StatCardV2SubtitleProps = {
61
+ subtitle?: string;
62
+ tokens: StatCardV2TokensType;
63
+ id?: string;
64
+ };
65
+ export type StatCardV2Props = {
66
+ title: string;
67
+ variant?: StatCardV2Variant;
68
+ titleIcon?: ReactNode;
69
+ actionIcon?: ReactNode;
70
+ value?: string;
71
+ progressValue?: number;
72
+ helpIconText?: string;
73
+ change?: StatCardV2Change;
74
+ subtitle?: string;
75
+ options?: ChartV2Options;
76
+ skeleton?: StatCardV2SkeletonProps;
77
+ dropdownProps?: SingleSelectProps;
78
+ } & HTMLAttributes<HTMLDivElement> & StatCardV2Dimensions;
@@ -0,0 +1,7 @@
1
+ import { StatCardV2Change } from './statcardV2.types';
2
+ export declare const buildStatCardV2AriaLabel: (params: {
3
+ title?: string;
4
+ value?: string;
5
+ subtitle?: string;
6
+ change?: StatCardV2Change;
7
+ }) => string;
@@ -0,0 +1,26 @@
1
+ import { TabsV2Variant, TabsV2Size } from './tabsV2.types';
2
+ import { TabsV2TokensType } from './tabsV2.tokens';
3
+ import * as TabsPrimitive from '@radix-ui/react-tabs';
4
+ export declare const StyledTabsRoot: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<TabsPrimitive.TabsProps & import('react').RefAttributes<HTMLDivElement>, {
5
+ $tabsToken: TabsV2TokensType;
6
+ }>> & string & Omit<import('react').ForwardRefExoticComponent<TabsPrimitive.TabsProps & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
7
+ export declare const StyledTabsContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<TabsPrimitive.TabsContentProps & import('react').RefAttributes<HTMLDivElement>, {
8
+ $tabsToken: TabsV2TokensType;
9
+ }>> & string & Omit<import('react').ForwardRefExoticComponent<TabsPrimitive.TabsContentProps & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
10
+ export declare const StyledTabsList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<TabsPrimitive.TabsListProps & import('react').RefAttributes<HTMLDivElement>, {
11
+ $variant: TabsV2Variant;
12
+ $size: TabsV2Size;
13
+ $expanded: boolean;
14
+ $fitContent: boolean;
15
+ $tabsToken: TabsV2TokensType;
16
+ $hideIndicator?: boolean;
17
+ }>> & string & Omit<import('react').ForwardRefExoticComponent<TabsPrimitive.TabsListProps & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
18
+ export declare const StyledTabsTrigger: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<TabsPrimitive.TabsTriggerProps & import('react').RefAttributes<HTMLButtonElement>, {
19
+ $variant: TabsV2Variant;
20
+ $size: TabsV2Size;
21
+ $tabsToken: TabsV2TokensType;
22
+ $isOverlay?: boolean;
23
+ }>> & string & Omit<import('react').ForwardRefExoticComponent<TabsPrimitive.TabsTriggerProps & import('react').RefAttributes<HTMLButtonElement>>, keyof import('react').Component<any, {}, any>>;
24
+ export declare const TabsV2IconContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
25
+ $tabsToken: TabsV2TokensType;
26
+ }>> & string;
@@ -0,0 +1,15 @@
1
+ import { TabsV2Size, TabsV2Variant } from './tabsV2.types';
2
+ import { SkeletonVariant } from '../Skeleton/skeleton.tokens';
3
+ import * as React from 'react';
4
+ declare const TabsV2: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react-tabs').TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
5
+ variant?: TabsV2Variant;
6
+ size?: TabsV2Size;
7
+ expanded?: boolean;
8
+ fitContent?: boolean;
9
+ disabled?: boolean;
10
+ showSkeleton?: boolean;
11
+ skeletonVariant?: SkeletonVariant;
12
+ stickyHeader?: boolean;
13
+ offsetTop?: number;
14
+ } & React.RefAttributes<HTMLDivElement>>;
15
+ export default TabsV2;
@@ -0,0 +1,2 @@
1
+ declare const TabsV2Content: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-tabs').TabsContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
2
+ export default TabsV2Content;
@@ -0,0 +1,14 @@
1
+ import { TabsV2Variant } from './tabsV2.types';
2
+ import * as React from 'react';
3
+ declare const TabsV2List: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react-tabs').TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
4
+ variant?: TabsV2Variant;
5
+ size?: import('./tabsV2.types').TabsV2Size;
6
+ expanded?: boolean;
7
+ fitContent?: boolean;
8
+ disabled?: boolean;
9
+ showSkeleton?: boolean;
10
+ skeletonVariant?: import('../Skeleton').SkeletonVariant;
11
+ stickyHeader?: boolean;
12
+ offsetTop?: number;
13
+ } & React.RefAttributes<HTMLDivElement>>;
14
+ export default TabsV2List;
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ import { TabsV2Variant } from './tabsV2.types';
3
+ declare const TabsV2Trigger: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react-tabs').TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
4
+ value: string;
5
+ variant?: TabsV2Variant;
6
+ size?: import('./tabsV2.types').TabsV2Size;
7
+ leftSlot?: React.ReactNode;
8
+ rightSlot?: React.ReactNode;
9
+ children: string | number;
10
+ disabled?: boolean;
11
+ closable?: boolean;
12
+ onClose?: () => void;
13
+ isActive?: boolean;
14
+ isOverlay?: boolean;
15
+ tabsGroupId?: string;
16
+ showSkeleton?: boolean;
17
+ skeletonVariant?: import('../Skeleton').SkeletonVariant;
18
+ } & React.RefAttributes<HTMLButtonElement>>;
19
+ export default TabsV2Trigger;
@@ -0,0 +1,8 @@
1
+ export { default as TabsV2 } from './TabsV2';
2
+ export { default as TabsV2List } from './TabsV2List';
3
+ export { default as TabsV2Trigger } from './TabsV2Trigger';
4
+ export { default as TabsV2Content } from './TabsV2Content';
5
+ export { TabsV2Provider, useTabsV2Context } from './tabsV2.context';
6
+ export type { TabsV2ContextValue } from './tabsV2.context';
7
+ export { getTabsV2Tokens, type TabsV2TokensType, type ResponsiveTabsV2Tokens, } from './tabsV2.tokens';
8
+ export * from './tabsV2.types';
@@ -0,0 +1,21 @@
1
+ import { ReactNode } from 'react';
2
+ import { TabsV2Variant, TabsV2Size } from './tabsV2.types';
3
+ import { SkeletonVariant } from '../Skeleton/skeleton.tokens';
4
+ export type TabsV2ContextValue = {
5
+ variant: TabsV2Variant;
6
+ size: TabsV2Size;
7
+ expanded: boolean;
8
+ fitContent: boolean;
9
+ disabled: boolean;
10
+ showSkeleton: boolean;
11
+ skeletonVariant: SkeletonVariant;
12
+ stickyHeader: boolean;
13
+ offsetTop: number;
14
+ activeTab: string;
15
+ };
16
+ export declare const TabsV2Context: import('react').Context<TabsV2ContextValue>;
17
+ export declare const TabsV2Provider: ({ value, children, }: {
18
+ value: TabsV2ContextValue;
19
+ children: ReactNode;
20
+ }) => import("react/jsx-runtime").JSX.Element;
21
+ export declare const useTabsV2Context: () => TabsV2ContextValue;
@@ -0,0 +1,3 @@
1
+ import { FoundationTokenType } from '../../tokens/theme.token';
2
+ import { ResponsiveTabsV2Tokens } from './tabsV2.tokens';
3
+ export declare const getTabsV2DarkTokens: (foundationToken: FoundationTokenType) => ResponsiveTabsV2Tokens;
@@ -0,0 +1,3 @@
1
+ import { FoundationTokenType } from '../../tokens/theme.token';
2
+ import { ResponsiveTabsV2Tokens } from './tabsV2.tokens';
3
+ export declare const getTabsV2LightTokens: (foundationToken: FoundationTokenType) => ResponsiveTabsV2Tokens;
@@ -0,0 +1,97 @@
1
+ import { CSSObject } from 'styled-components';
2
+ import { TabsV2Variant, TabsV2Size, TabsV2State } from './tabsV2.types';
3
+ import { FoundationTokenType } from '../../tokens/theme.token';
4
+ import { BreakpointType } from '../../breakpoints/breakPoints';
5
+ import { Theme } from '../../context/theme.enum';
6
+ export type TabsV2TokensType = {
7
+ width: CSSObject['width'];
8
+ outline: CSSObject['outline'];
9
+ tabList: {
10
+ gap: CSSObject['gap'];
11
+ backgroundColor: {
12
+ [key in TabsV2Variant]: CSSObject['backgroundColor'];
13
+ };
14
+ borderRadius: {
15
+ [key in TabsV2Size]: {
16
+ [key in TabsV2Variant]: CSSObject['borderRadius'];
17
+ };
18
+ };
19
+ padding: {
20
+ [key in TabsV2Size]: {
21
+ [key in TabsV2Variant]: {
22
+ top: CSSObject['paddingTop'];
23
+ right: CSSObject['paddingRight'];
24
+ bottom: CSSObject['paddingBottom'];
25
+ left: CSSObject['paddingLeft'];
26
+ };
27
+ };
28
+ };
29
+ activeIndicator: {
30
+ height: CSSObject['height'];
31
+ color: CSSObject['color'];
32
+ position: {
33
+ bottom: CSSObject['bottom'];
34
+ };
35
+ transition: CSSObject['transition'];
36
+ zIndex: CSSObject['zIndex'];
37
+ };
38
+ stickyHeader: {
39
+ boxShadow: CSSObject['boxShadow'];
40
+ zIndex: CSSObject['zIndex'];
41
+ };
42
+ trigger: {
43
+ gap: CSSObject['gap'];
44
+ icon: {
45
+ maxWidth: CSSObject['maxWidth'];
46
+ };
47
+ backgroundColor: {
48
+ [key in TabsV2Variant]: {
49
+ [key in TabsV2State]: CSSObject['backgroundColor'];
50
+ };
51
+ };
52
+ borderRadius: {
53
+ [key in TabsV2Size]: {
54
+ [key in TabsV2Variant]: CSSObject['borderRadius'];
55
+ };
56
+ };
57
+ border: {
58
+ [key in TabsV2Variant]: CSSObject['border'];
59
+ };
60
+ padding: {
61
+ [key in TabsV2Size]: {
62
+ [key in TabsV2Variant]: {
63
+ top: CSSObject['paddingTop'];
64
+ right: CSSObject['paddingRight'];
65
+ bottom: CSSObject['paddingBottom'];
66
+ left: CSSObject['paddingLeft'];
67
+ };
68
+ };
69
+ };
70
+ text: {
71
+ color: {
72
+ [key in TabsV2Variant]: {
73
+ [key in TabsV2State]: CSSObject['color'];
74
+ };
75
+ };
76
+ fontSize: {
77
+ [key in TabsV2Size]: CSSObject['fontSize'];
78
+ };
79
+ fontWeight: {
80
+ [key in TabsV2Size]: CSSObject['fontWeight'];
81
+ };
82
+ };
83
+ closeButton: {
84
+ width: CSSObject['width'];
85
+ borderRadius: CSSObject['borderRadius'];
86
+ backgroundColor: {
87
+ [key in TabsV2State]: CSSObject['backgroundColor'];
88
+ };
89
+ };
90
+ transition: CSSObject['transition'];
91
+ };
92
+ };
93
+ };
94
+ export type ResponsiveTabsV2Tokens = {
95
+ [key in keyof BreakpointType]: TabsV2TokensType;
96
+ };
97
+ export declare const getTabsV2Tokens: (foundationToken: FoundationTokenType, theme?: Theme | string) => ResponsiveTabsV2Tokens;