@juspay/blend-design-system 0.0.37-beta.0 → 0.0.37-beta.2

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 +31 -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/DrawerV2/index.d.ts +3 -0
  37. package/dist/components/DrawerV2/types.d.ts +26 -0
  38. package/dist/components/InputsV2/MultiValueInputV2/MultiValueInputV2.d.ts +27 -0
  39. package/dist/components/InputsV2/MultiValueInputV2/MultiValueInputV2.dark.tokens.d.ts +3 -0
  40. package/dist/components/InputsV2/MultiValueInputV2/MultiValueInputV2.light.tokens.d.ts +3 -0
  41. package/dist/components/InputsV2/MultiValueInputV2/MultiValueInputV2.tokens.d.ts +74 -0
  42. package/dist/components/InputsV2/MultiValueInputV2/MultiValueV2.types.d.ts +26 -0
  43. package/dist/components/InputsV2/MultiValueInputV2/index.d.ts +3 -0
  44. package/dist/components/InputsV2/TextInputV2/TextInputV2.d.ts +1 -4
  45. package/dist/components/InputsV2/TextInputV2/TextInputV2.types.d.ts +1 -4
  46. package/dist/components/InputsV2/inputV2.tokens.d.ts +90 -0
  47. package/dist/components/InputsV2/utils/FloatingLabelsV2/FloatingLabelsV2.d.ts +1 -20
  48. package/dist/components/InputsV2/utils/InputFooter/InputFooterV2.d.ts +2 -30
  49. package/dist/components/InputsV2/utils/InputLabels/InputLabelsV2.d.ts +2 -46
  50. package/dist/components/MenuV2/MenuV2.d.ts +4 -0
  51. package/dist/components/MenuV2/MenuV2Content.d.ts +29 -0
  52. package/dist/components/MenuV2/MenuV2Item.d.ts +9 -0
  53. package/dist/components/MenuV2/MenuV2SubMenu.d.ts +12 -0
  54. package/dist/components/MenuV2/index.d.ts +7 -0
  55. package/dist/components/MenuV2/menuV2.animations.d.ts +2 -0
  56. package/dist/components/MenuV2/menuV2.dark.tokens.d.ts +3 -0
  57. package/dist/components/MenuV2/menuV2.light.tokens.d.ts +3 -0
  58. package/dist/components/MenuV2/menuV2.tokens.d.ts +92 -0
  59. package/dist/components/MenuV2/menuV2.types.d.ts +86 -0
  60. package/dist/components/MenuV2/menuV2.utils.d.ts +26 -0
  61. package/dist/components/Modal/modal.tokens.d.ts +3 -0
  62. package/dist/components/ProgressBarV2/CircularProgressBarV2.d.ts +2 -0
  63. package/dist/components/ProgressBarV2/LinearProgressBarV2.d.ts +2 -0
  64. package/dist/components/ProgressBarV2/ProgressBarV2.d.ts +11 -0
  65. package/dist/components/ProgressBarV2/index.d.ts +3 -0
  66. package/dist/components/ProgressBarV2/progressBarV2.dark.tokens.d.ts +3 -0
  67. package/dist/components/ProgressBarV2/progressBarV2.light.tokens.d.ts +3 -0
  68. package/dist/components/ProgressBarV2/progressBarV2.tokens.d.ts +63 -0
  69. package/dist/components/ProgressBarV2/progressBarV2.types.d.ts +45 -0
  70. package/dist/components/StatCardV2/StatCardV2.chartConfig.d.ts +2 -0
  71. package/dist/components/StatCardV2/StatCardV2.d.ts +16 -0
  72. package/dist/components/StatCardV2/StatCardV2Change.d.ts +3 -0
  73. package/dist/components/StatCardV2/StatCardV2NoData.d.ts +10 -0
  74. package/dist/components/StatCardV2/StatCardV2Skeleton.d.ts +7 -0
  75. package/dist/components/StatCardV2/StatCardV2Subtitle.d.ts +3 -0
  76. package/dist/components/StatCardV2/StatCardV2Title.d.ts +3 -0
  77. package/dist/components/StatCardV2/StatCardV2Value.d.ts +11 -0
  78. package/dist/components/StatCardV2/index.d.ts +3 -0
  79. package/dist/components/StatCardV2/statcardV2.dark.tokens.d.ts +3 -0
  80. package/dist/components/StatCardV2/statcardV2.light.tokens.d.ts +3 -0
  81. package/dist/components/StatCardV2/statcardV2.tokens.d.ts +81 -0
  82. package/dist/components/StatCardV2/statcardV2.types.d.ts +78 -0
  83. package/dist/components/StatCardV2/utils.d.ts +7 -0
  84. package/dist/components/TabsV2/StyledTabsV2.d.ts +26 -0
  85. package/dist/components/TabsV2/TabsV2.d.ts +15 -0
  86. package/dist/components/TabsV2/TabsV2Content.d.ts +2 -0
  87. package/dist/components/TabsV2/TabsV2List.d.ts +14 -0
  88. package/dist/components/TabsV2/TabsV2Trigger.d.ts +19 -0
  89. package/dist/components/TabsV2/index.d.ts +8 -0
  90. package/dist/components/TabsV2/tabsV2.context.d.ts +21 -0
  91. package/dist/components/TabsV2/tabsV2.dark.tokens.d.ts +3 -0
  92. package/dist/components/TabsV2/tabsV2.light.tokens.d.ts +3 -0
  93. package/dist/components/TabsV2/tabsV2.tokens.d.ts +97 -0
  94. package/dist/components/TabsV2/tabsV2.types.d.ts +68 -0
  95. package/dist/components/TabsV2/tabsV2.utils.d.ts +18 -0
  96. package/dist/components/common/virtualViewport.d.ts +12 -0
  97. package/dist/context/ThemeContext.d.ts +14 -0
  98. package/dist/context/useComponentToken.d.ts +8 -1
  99. package/dist/main.d.ts +1 -0
  100. package/dist/main.js +43034 -37077
  101. package/dist/tokens/font.tokens.d.ts +2 -0
  102. package/dist/tokens/zIndex.tokens.d.ts +1 -0
  103. package/package.json +2 -1
@@ -0,0 +1,3 @@
1
+ import { FoundationTokenType } from '../../tokens/theme.token';
2
+ import { ResponsiveMenuV2TokensType } from './menuV2.tokens';
3
+ export declare const getMenuV2DarkTokens: (foundationToken: FoundationTokenType) => ResponsiveMenuV2TokensType;
@@ -0,0 +1,3 @@
1
+ import { FoundationTokenType } from '../../tokens/theme.token';
2
+ import { ResponsiveMenuV2TokensType } from './menuV2.tokens';
3
+ export declare const getMenuV2LightTokens: (foundationToken: FoundationTokenType) => ResponsiveMenuV2TokensType;
@@ -0,0 +1,92 @@
1
+ import { CSSObject } from 'styled-components';
2
+ import { FoundationTokenType } from '../../tokens/theme.token';
3
+ import { BreakpointType } from '../../breakpoints/breakPoints';
4
+ import { Theme } from '../../context/theme.enum';
5
+ import { SelectV2ItemStates } from '../SelectV2/selectV2.tokenStates';
6
+ import { MenuV2ItemActionType, MenuV2ItemVariant } from './menuV2.types';
7
+ export type { SelectV2ItemStates as MenuV2ItemStates } from '../SelectV2/selectV2.tokenStates';
8
+ type StateToken<T> = Record<SelectV2ItemStates, T>;
9
+ type MenuV2VariantToken<T> = {
10
+ [MenuV2ItemVariant.DEFAULT]: T;
11
+ [MenuV2ItemVariant.ACTION]: {
12
+ [MenuV2ItemActionType.PRIMARY]: T;
13
+ [MenuV2ItemActionType.DANGER]: T;
14
+ };
15
+ };
16
+ export type MenuV2TokensType = {
17
+ backgroundColor: CSSObject['backgroundColor'];
18
+ border: CSSObject['border'];
19
+ borderRadius: CSSObject['borderRadius'];
20
+ boxShadow: CSSObject['boxShadow'];
21
+ zIndex: CSSObject['zIndex'];
22
+ minWidth: CSSObject['minWidth'];
23
+ maxWidth: CSSObject['maxWidth'];
24
+ paddingTop: CSSObject['paddingTop'];
25
+ paddingRight: CSSObject['paddingRight'];
26
+ paddingBottom: CSSObject['paddingBottom'];
27
+ paddingLeft: CSSObject['paddingLeft'];
28
+ searchIcon: {
29
+ width: CSSObject['width'];
30
+ };
31
+ group: {
32
+ label: {
33
+ fontSize: CSSObject['fontSize'];
34
+ fontWeight: CSSObject['fontWeight'];
35
+ lineHeight: CSSObject['lineHeight'];
36
+ color: CSSObject['color'];
37
+ paddingTop: CSSObject['paddingTop'];
38
+ paddingRight: CSSObject['paddingRight'];
39
+ paddingBottom: CSSObject['paddingBottom'];
40
+ paddingLeft: CSSObject['paddingLeft'];
41
+ marginTop: CSSObject['marginTop'];
42
+ marginRight: CSSObject['marginRight'];
43
+ marginBottom: CSSObject['marginBottom'];
44
+ marginLeft: CSSObject['marginLeft'];
45
+ };
46
+ item: {
47
+ paddingTop: CSSObject['paddingTop'];
48
+ paddingRight: CSSObject['paddingRight'];
49
+ paddingBottom: CSSObject['paddingBottom'];
50
+ paddingLeft: CSSObject['paddingLeft'];
51
+ marginTop: CSSObject['marginTop'];
52
+ marginRight: CSSObject['marginRight'];
53
+ marginBottom: CSSObject['marginBottom'];
54
+ marginLeft: CSSObject['marginLeft'];
55
+ gap: CSSObject['gap'];
56
+ borderRadius: CSSObject['borderRadius'];
57
+ backgroundColor: MenuV2VariantToken<StateToken<CSSObject['backgroundColor']>>;
58
+ text: {
59
+ fontSize: CSSObject['fontSize'];
60
+ fontWeight: CSSObject['fontWeight'];
61
+ lineHeight: CSSObject['lineHeight'];
62
+ color: MenuV2VariantToken<StateToken<CSSObject['color']>>;
63
+ subText: {
64
+ fontSize: CSSObject['fontSize'];
65
+ fontWeight: CSSObject['fontWeight'];
66
+ lineHeight: CSSObject['lineHeight'];
67
+ color: MenuV2VariantToken<StateToken<CSSObject['color']>>;
68
+ };
69
+ leftSlot: {
70
+ maxWidth: CSSObject['maxWidth'];
71
+ maxHeight: CSSObject['maxHeight'];
72
+ };
73
+ rightChevron: {
74
+ color: CSSObject['color'];
75
+ width: CSSObject['width'];
76
+ };
77
+ };
78
+ };
79
+ };
80
+ separator: {
81
+ color: CSSObject['color'];
82
+ height: CSSObject['height'];
83
+ marginTop: CSSObject['marginTop'];
84
+ marginRight: CSSObject['marginRight'];
85
+ marginBottom: CSSObject['marginBottom'];
86
+ marginLeft: CSSObject['marginLeft'];
87
+ };
88
+ };
89
+ export type ResponsiveMenuV2TokensType = {
90
+ [key in keyof BreakpointType]: MenuV2TokensType;
91
+ };
92
+ export declare const getMenuV2Tokens: (foundationToken: FoundationTokenType, theme?: Theme | string) => ResponsiveMenuV2TokensType;
@@ -0,0 +1,86 @@
1
+ import { ReactNode } from 'react';
2
+ import { TooltipSide, TooltipAlign, TooltipSize } from '../Tooltip/types';
3
+ import { CSSObject } from 'styled-components';
4
+ export declare enum MenuV2Alignment {
5
+ START = "start",
6
+ CENTER = "center",
7
+ END = "end"
8
+ }
9
+ export declare enum MenuV2Side {
10
+ TOP = "top",
11
+ LEFT = "left",
12
+ RIGHT = "right",
13
+ BOTTOM = "bottom"
14
+ }
15
+ export declare enum MenuV2ItemVariant {
16
+ DEFAULT = "default",
17
+ ACTION = "action"
18
+ }
19
+ export declare enum MenuV2ItemActionType {
20
+ PRIMARY = "primary",
21
+ DANGER = "danger"
22
+ }
23
+ export type MenuV2ItemTooltipProps = {
24
+ side?: TooltipSide;
25
+ align?: TooltipAlign;
26
+ size?: TooltipSize;
27
+ showArrow?: boolean;
28
+ delayDuration?: number;
29
+ offset?: number;
30
+ };
31
+ export type MenuV2ItemLabel = {
32
+ text: string;
33
+ leftSlot?: React.ReactElement;
34
+ };
35
+ export type MenuV2ItemType = {
36
+ id?: string;
37
+ label: MenuV2ItemLabel;
38
+ subLabel?: string;
39
+ variant?: MenuV2ItemVariant;
40
+ actionType?: MenuV2ItemActionType;
41
+ disabled?: boolean;
42
+ onClick?: () => void;
43
+ subMenu?: MenuV2ItemType[];
44
+ enableSubMenuSearch?: boolean;
45
+ subMenuSearchPlaceholder?: string;
46
+ tooltip?: string | ReactNode;
47
+ tooltipProps?: MenuV2ItemTooltipProps;
48
+ };
49
+ export type MenuV2GroupType = {
50
+ id?: string;
51
+ label?: string;
52
+ items: MenuV2ItemType[];
53
+ showSeparator?: boolean;
54
+ };
55
+ export type MenuV2VirtualScrollingConfig = {
56
+ /** Estimated height per item (px). Used by useVirtualizer. */
57
+ itemHeight?: number;
58
+ /** Number of items to render outside visible area. */
59
+ overscan?: number;
60
+ /** Min number of items to enable virtual scrolling. Default 30. */
61
+ threshold?: number;
62
+ };
63
+ export type MenuV2Dimensions = {
64
+ minWidth?: CSSObject['minWidth'];
65
+ maxWidth?: CSSObject['maxWidth'];
66
+ minHeight?: CSSObject['minHeight'];
67
+ maxHeight?: CSSObject['maxHeight'];
68
+ };
69
+ export type MenuV2Props = {
70
+ trigger: React.ReactElement;
71
+ items?: MenuV2GroupType[];
72
+ dimensions?: MenuV2Dimensions;
73
+ enableSearch?: boolean;
74
+ searchPlaceholder?: string;
75
+ enableVirtualScrolling?: boolean;
76
+ virtualScrolling?: MenuV2VirtualScrollingConfig;
77
+ open?: boolean;
78
+ onOpenChange?: (open: boolean) => void;
79
+ asModal?: boolean;
80
+ alignment?: MenuV2Alignment;
81
+ side?: MenuV2Side;
82
+ sideOffset?: number;
83
+ alignOffset?: number;
84
+ collisionBoundaryRef?: HTMLElement | null | (HTMLElement | null)[];
85
+ triggerProps?: Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'className' | 'style'>;
86
+ };
@@ -0,0 +1,26 @@
1
+ import { ReactNode } from 'react';
2
+ import { MenuV2GroupType, MenuV2ItemType } from './menuV2.types';
3
+ import { MenuV2TokensType, MenuV2ItemStates } from './menuV2.tokens';
4
+ type MenuV2ItemTokens = MenuV2TokensType['group']['item'];
5
+ export declare const getItemSlots: (item: MenuV2ItemType) => [ReactNode?];
6
+ export declare const filterMenuItem: (item: MenuV2ItemType, lower: string) => MenuV2ItemType | null;
7
+ export declare const getMenuItemBackgroundColor: (state: MenuV2ItemStates, itemTokens: MenuV2ItemTokens, item: MenuV2ItemType) => string | undefined;
8
+ export declare const getMenuItemOptionColor: (state: MenuV2ItemStates, itemTokens: MenuV2ItemTokens, item: MenuV2ItemType) => string | undefined;
9
+ export declare const getMenuItemDescriptionColor: (state: MenuV2ItemStates, itemTokens: MenuV2ItemTokens, item: MenuV2ItemType) => string | undefined;
10
+ export type MenuV2FlatRow = {
11
+ type: 'label';
12
+ id: string;
13
+ label: string;
14
+ } | {
15
+ type: 'separator';
16
+ id: string;
17
+ } | {
18
+ type: 'item';
19
+ id: string;
20
+ item: MenuV2ItemType;
21
+ groupId: number;
22
+ itemIndex: number;
23
+ };
24
+ export declare const flattenMenuV2Groups: (groups: MenuV2GroupType[]) => MenuV2FlatRow[];
25
+ export declare const filterMenuGroups: (groups: MenuV2GroupType[], searchText: string) => MenuV2GroupType[];
26
+ export {};
@@ -34,6 +34,9 @@ export type ModalState = 'default';
34
34
  export type ModalTokensType = {
35
35
  boxShadow: CSSObject['boxShadow'];
36
36
  borderRadius: CSSObject['borderRadius'];
37
+ overlay: {
38
+ backgroundColor: CSSObject['backgroundColor'];
39
+ };
37
40
  header: {
38
41
  padding: {
39
42
  x: CSSObject['padding'];
@@ -0,0 +1,2 @@
1
+ import { CircularProgressBarV2Props } from './progressBarV2.types';
2
+ export declare const CircularProgressBarV2: ({ value, size, appearance, tokens, showLabel, ariaLabel, ariaLabelledby, min, max, }: CircularProgressBarV2Props) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { LinearProgressBarV2Props } from './progressBarV2.types';
2
+ export declare const LinearProgressBarV2: ({ value, size, appearance, tokens, showLabel, ariaLabel, ariaLabelledby, min, max, }: LinearProgressBarV2Props) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { ProgressBarV2Appearance, ProgressBarV2Size, ProgressBarV2Variant } from './progressBarV2.types';
2
+ declare const ProgressBarV2: import('react').ForwardRefExoticComponent<{
3
+ value: number;
4
+ size?: ProgressBarV2Size;
5
+ variant?: ProgressBarV2Variant;
6
+ appearance?: ProgressBarV2Appearance;
7
+ showLabel?: boolean;
8
+ min?: number;
9
+ max?: number;
10
+ } & Omit<import('react').HTMLAttributes<HTMLDivElement>, "style" | "className" | "children"> & import('react').RefAttributes<HTMLDivElement>>;
11
+ export default ProgressBarV2;
@@ -0,0 +1,3 @@
1
+ export { default as ProgressBarV2 } from './ProgressBarV2';
2
+ export * from './progressBarV2.tokens';
3
+ export * from './progressBarV2.types';
@@ -0,0 +1,3 @@
1
+ import { FoundationTokenType } from '../../tokens/theme.token';
2
+ import { ResponsiveProgressBarV2Tokens } from './progressBarV2.tokens';
3
+ export declare const getProgressBarV2DarkTokens: (foundationToken: FoundationTokenType) => ResponsiveProgressBarV2Tokens;
@@ -0,0 +1,3 @@
1
+ import { FoundationTokenType } from '../../tokens/theme.token';
2
+ import { ResponsiveProgressBarV2Tokens } from './progressBarV2.tokens';
3
+ export declare const getProgressBarV2LightTokens: (foundationToken: FoundationTokenType) => ResponsiveProgressBarV2Tokens;
@@ -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
+ };
@@ -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;