@juspay/blend-design-system 0.0.35 → 0.0.36-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 (69) hide show
  1. package/README.md +5 -5
  2. package/dist/components/Charts/chart.tokens.d.ts +1 -1
  3. package/dist/components/Charts/renderChart.d.ts +1 -1
  4. package/dist/components/Charts/types.d.ts +5 -0
  5. package/dist/components/ChartsV2/ChartContainerV2.d.ts +6 -0
  6. package/dist/components/ChartsV2/ChartHeaderV2.d.ts +6 -0
  7. package/dist/components/ChartsV2/ChartV2.d.ts +3 -0
  8. package/dist/components/ChartsV2/ChartV2Fullscreen.d.ts +14 -0
  9. package/dist/components/ChartsV2/ChartV2Legend.d.ts +6 -0
  10. package/dist/components/ChartsV2/ChartV2NoData.d.ts +6 -0
  11. package/dist/components/ChartsV2/ChartV2Skeleton.d.ts +10 -0
  12. package/dist/components/ChartsV2/chartV2.dark.tokens.d.ts +3 -0
  13. package/dist/components/ChartsV2/chartV2.light.tokens.d.ts +3 -0
  14. package/dist/components/ChartsV2/chartV2.sankey.d.ts +1 -0
  15. package/dist/components/ChartsV2/chartV2.tokens.d.ts +102 -0
  16. package/dist/components/ChartsV2/chartV2.types.d.ts +72 -0
  17. package/dist/components/ChartsV2/index.d.ts +9 -0
  18. package/dist/components/ChartsV2/useChartLegend.d.ts +9 -0
  19. package/dist/components/ChartsV2/useChartLegendHover.d.ts +7 -0
  20. package/dist/components/ChartsV2/useChartRefs.d.ts +6 -0
  21. package/dist/components/ChartsV2/utils.d.ts +3 -0
  22. package/dist/components/ChatInput/ChatInput.d.ts +1 -0
  23. package/dist/components/ChatInput/MobileChatInput.d.ts +1 -0
  24. package/dist/components/ChatInput/chatInput.tokens.d.ts +8 -6
  25. package/dist/components/ChatInput/types.d.ts +1 -0
  26. package/dist/components/DataTable/TableBody/types.d.ts +2 -0
  27. package/dist/components/DataTable/TableHeader/types.d.ts +4 -0
  28. package/dist/components/DataTable/TableHeader/utils.d.ts +4 -2
  29. package/dist/components/DateRangePicker/CalendarGrid.d.ts +1 -0
  30. package/dist/components/DateRangePicker/types.d.ts +3 -0
  31. package/dist/components/DateRangePicker/utils.d.ts +2 -2
  32. package/dist/components/MultiSelect/types.d.ts +1 -1
  33. package/dist/components/SelectorV2/CheckboxV2/CheckboxV2.d.ts +19 -0
  34. package/dist/components/SelectorV2/CheckboxV2/StyledCheckboxV2.d.ts +11 -0
  35. package/dist/components/SelectorV2/CheckboxV2/checkboxV2.animations.d.ts +2 -0
  36. package/dist/components/SelectorV2/CheckboxV2/checkboxV2.dark.tokens.d.ts +3 -0
  37. package/dist/components/SelectorV2/CheckboxV2/checkboxV2.light.tokens.d.ts +3 -0
  38. package/dist/components/SelectorV2/CheckboxV2/checkboxV2.tokens.d.ts +94 -0
  39. package/dist/components/SelectorV2/CheckboxV2/checkboxV2.types.d.ts +64 -0
  40. package/dist/components/SelectorV2/CheckboxV2/index.d.ts +3 -0
  41. package/dist/components/SelectorV2/CheckboxV2/utils.d.ts +67 -0
  42. package/dist/components/{SwitchV2 → SelectorV2/SwitchV2}/SwitchV2.d.ts +3 -3
  43. package/dist/components/{SwitchV2 → SelectorV2/SwitchV2}/switchV2.dark.tokens.d.ts +1 -1
  44. package/dist/components/{SwitchV2 → SelectorV2/SwitchV2}/switchV2.light.tokens.d.ts +1 -1
  45. package/dist/components/{SwitchV2 → SelectorV2/SwitchV2}/switchV2.tokens.d.ts +16 -15
  46. package/dist/components/{SwitchV2 → SelectorV2/SwitchV2}/switchV2.types.d.ts +5 -8
  47. package/dist/components/SelectorV2/selectorV2.types.d.ts +12 -0
  48. package/dist/components/SelectorsContent/SelectorsContent.types.d.ts +5 -2
  49. package/dist/components/SelectorsContent/SelectorsLabel.d.ts +1 -1
  50. package/dist/components/SelectorsContent/SelectorsSubLabel.d.ts +1 -1
  51. package/dist/components/Timeline/Timeline.d.ts +41 -0
  52. package/dist/components/Timeline/TimelineHeader.d.ts +10 -0
  53. package/dist/components/Timeline/TimelineLabel.d.ts +3 -0
  54. package/dist/components/Timeline/TimelineNode.d.ts +17 -0
  55. package/dist/components/Timeline/TimelineShowMore.d.ts +3 -0
  56. package/dist/components/Timeline/TimelineSubstep.d.ts +11 -0
  57. package/dist/components/Timeline/index.d.ts +8 -0
  58. package/dist/components/Timeline/timeline.dark.token.d.ts +8 -0
  59. package/dist/components/Timeline/timeline.light.token.d.ts +8 -0
  60. package/dist/components/Timeline/timeline.token.d.ts +132 -0
  61. package/dist/components/Timeline/types.d.ts +104 -0
  62. package/dist/components/Timeline/utils.d.ts +6 -0
  63. package/dist/components/common/Seperator.d.ts +4 -3
  64. package/dist/context/ThemeContext.d.ts +7 -1
  65. package/dist/context/useComponentToken.d.ts +5 -2
  66. package/dist/main.d.ts +2 -0
  67. package/dist/main.js +36601 -32999
  68. package/package.json +2 -2
  69. /package/dist/components/{SwitchV2 → SelectorV2/SwitchV2}/index.d.ts +0 -0
@@ -0,0 +1,94 @@
1
+ import { Theme } from '../../../context/theme.enum';
2
+ import { CSSObject } from 'styled-components';
3
+ import { CheckboxV2CheckedState } from './checkboxV2.types';
4
+ import { SelectorV2Size, SelectorV2InteractionState } from '../../SelectorV2/selectorV2.types';
5
+ import { BreakpointType } from '../../../breakpoints/breakPoints';
6
+ import { FoundationTokenType } from '../../../tokens/theme.token';
7
+ export type CheckboxV2TokensType = {
8
+ gap: CSSObject['gap'];
9
+ checkbox: {
10
+ height: {
11
+ [key in SelectorV2Size]: CSSObject['height'];
12
+ };
13
+ width: {
14
+ [key in SelectorV2Size]: CSSObject['width'];
15
+ };
16
+ opacity: CSSObject['opacity'];
17
+ backgroundColor: {
18
+ [key in CheckboxV2CheckedState]?: {
19
+ [key in SelectorV2InteractionState]?: CSSObject['backgroundColor'];
20
+ };
21
+ };
22
+ borderRadius: {
23
+ [key in SelectorV2Size]: CSSObject['borderRadius'];
24
+ };
25
+ border: {
26
+ [key in CheckboxV2CheckedState]?: {
27
+ [key in SelectorV2InteractionState]?: CSSObject['border'];
28
+ };
29
+ };
30
+ outline: CSSObject['outline'];
31
+ outlineOffset: CSSObject['outlineOffset'];
32
+ boxShadow: CSSObject['boxShadow'];
33
+ icon: {
34
+ color: {
35
+ [key in CheckboxV2CheckedState]?: {
36
+ [key in Extract<SelectorV2InteractionState, 'default' | 'disabled'>]?: CSSObject['color'];
37
+ };
38
+ };
39
+ width: {
40
+ [key in SelectorV2Size]: CSSObject['width'];
41
+ };
42
+ height: {
43
+ [key in SelectorV2Size]: CSSObject['height'];
44
+ };
45
+ strokeWidth: {
46
+ [key in SelectorV2Size]: CSSObject['strokeWidth'];
47
+ };
48
+ };
49
+ };
50
+ content: {
51
+ gap: CSSObject['gap'];
52
+ label: {
53
+ gap: CSSObject['gap'];
54
+ color: {
55
+ [key in SelectorV2InteractionState]: CSSObject['color'];
56
+ };
57
+ fontSize: {
58
+ [key in SelectorV2Size]: CSSObject['fontSize'];
59
+ };
60
+ fontWeight: {
61
+ [key in SelectorV2Size]: CSSObject['fontWeight'];
62
+ };
63
+ lineHeight: {
64
+ [key in SelectorV2Size]: CSSObject['lineHeight'];
65
+ };
66
+ slot: {
67
+ maxHeight: {
68
+ [key in SelectorV2Size]: CSSObject['maxHeight'];
69
+ };
70
+ };
71
+ };
72
+ subLabel: {
73
+ color: {
74
+ [key in SelectorV2InteractionState]: CSSObject['color'];
75
+ };
76
+ fontSize: {
77
+ [key in SelectorV2Size]: CSSObject['fontSize'];
78
+ };
79
+ fontWeight: {
80
+ [key in SelectorV2Size]: CSSObject['fontWeight'];
81
+ };
82
+ lineHeight: {
83
+ [key in SelectorV2Size]: CSSObject['lineHeight'];
84
+ };
85
+ };
86
+ required: {
87
+ color: CSSObject['color'];
88
+ };
89
+ };
90
+ };
91
+ export type ResponsiveCheckboxV2Tokens = {
92
+ [key in keyof BreakpointType]: CheckboxV2TokensType;
93
+ };
94
+ export declare const getCheckboxV2Tokens: (foundationToken: FoundationTokenType, theme?: Theme | string) => ResponsiveCheckboxV2Tokens;
@@ -0,0 +1,64 @@
1
+ import { ButtonHTMLAttributes, ReactElement } from 'react';
2
+ import { CheckboxV2TokensType } from './checkboxV2.tokens';
3
+ import { CSSObject } from 'styled-components';
4
+ import { SelectorV2Size } from '../../SelectorV2/selectorV2.types';
5
+ export declare enum CheckboxV2CheckedState {
6
+ CHECKED = "checked",
7
+ UNCHECKED = "unchecked",
8
+ INDETERMINATE = "indeterminate"
9
+ }
10
+ export type CheckboxV2Props = {
11
+ checked?: boolean | 'indeterminate';
12
+ onCheckedChange?: (checked: boolean | 'indeterminate') => void;
13
+ required?: boolean;
14
+ error?: boolean;
15
+ label?: string;
16
+ subLabel?: string;
17
+ size?: SelectorV2Size;
18
+ slot?: {
19
+ slot: ReactElement;
20
+ maxHeight?: CSSObject['maxHeight'];
21
+ };
22
+ maxLength?: {
23
+ label?: number;
24
+ subLabel?: number;
25
+ };
26
+ } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'className' | 'style' | 'slot' | 'onChange'>;
27
+ export type CheckboxV2RootProps = {
28
+ tokens: CheckboxV2TokensType;
29
+ uniqueId: string;
30
+ name: string;
31
+ ref: React.RefObject<HTMLButtonElement>;
32
+ checked: boolean | 'indeterminate';
33
+ onCheckedChange: (checked: boolean | 'indeterminate') => void;
34
+ disabled: boolean;
35
+ required: boolean;
36
+ size: SelectorV2Size;
37
+ error: boolean;
38
+ shouldShake: boolean;
39
+ ariaAttributes: {
40
+ 'aria-required': boolean;
41
+ 'aria-invalid': boolean;
42
+ 'aria-describedby': string;
43
+ };
44
+ restProps: {
45
+ [key: string]: unknown;
46
+ };
47
+ };
48
+ export type CheckboxV2ContentProps = {
49
+ uniqueId: string;
50
+ disabled: boolean;
51
+ error: boolean;
52
+ required: boolean;
53
+ size: SelectorV2Size;
54
+ label?: string;
55
+ subLabel?: string;
56
+ slot?: {
57
+ slot: ReactElement;
58
+ maxHeight?: CSSObject['maxHeight'];
59
+ };
60
+ tokens: CheckboxV2TokensType;
61
+ labelMaxLength?: number;
62
+ subLabelMaxLength?: number;
63
+ subLabelId?: string;
64
+ };
@@ -0,0 +1,3 @@
1
+ export { default as CheckboxV2 } from './CheckboxV2';
2
+ export * from './checkboxV2.types';
3
+ export * from './checkboxV2.tokens';
@@ -0,0 +1,67 @@
1
+ import { KeyboardEvent } from 'react';
2
+ import { CheckboxV2CheckedState } from './checkboxV2.types';
3
+ import { SelectorV2Size } from '../../SelectorV2/selectorV2.types';
4
+ import { CheckboxV2TokensType } from './checkboxV2.tokens';
5
+ export declare const getCheckboxDataState: (checked: boolean | "indeterminate") => string;
6
+ /**
7
+ * Gets the icon color based on checkbox state
8
+ */
9
+ export declare const getCheckboxIconColor: (tokens: CheckboxV2TokensType, currentChecked: boolean | "indeterminate", disabled: boolean) => string;
10
+ /**
11
+ * Gets the text color based on checkbox state
12
+ */
13
+ export declare const getCheckboxTextColor: (tokens: CheckboxV2TokensType, disabled: boolean, error: boolean) => string;
14
+ /**
15
+ * Gets the subtext color based on checkbox state
16
+ */
17
+ export declare const getCheckboxSubtextColor: (tokens: CheckboxV2TokensType, disabled: boolean, error: boolean) => string;
18
+ /**
19
+ * Gets the text properties for checkbox labels
20
+ */
21
+ export declare const getCheckboxTextProps: (tokens: CheckboxV2TokensType, size: SelectorV2Size, disabled: boolean, error: boolean) => {
22
+ fontSize: string;
23
+ fontWeight: string;
24
+ color: string;
25
+ };
26
+ /**
27
+ * Gets the subtext properties for checkbox
28
+ */
29
+ export declare const getCheckboxSubtextProps: (tokens: CheckboxV2TokensType, size: SelectorV2Size, disabled: boolean, error: boolean) => {
30
+ fontSize: string;
31
+ color: string;
32
+ };
33
+ /**
34
+ * Gets label styles for checkbox components
35
+ */
36
+ export declare const getCheckboxLabelStyles: (disabled: boolean) => {
37
+ cursor: "not-allowed" | "pointer";
38
+ display: "flex";
39
+ alignItems: "center";
40
+ margin: number;
41
+ padding: number;
42
+ };
43
+ /**
44
+ * Gets accessibility attributes for checkbox
45
+ */
46
+ export declare const getAccessibilityAttributes: (uniqueId: string, isIndeterminate: boolean) => {
47
+ role: string;
48
+ 'aria-checked': string | undefined;
49
+ 'aria-labelledby': string;
50
+ 'aria-describedby': string;
51
+ };
52
+ /**
53
+ * Generates subtext ID for aria-describedby connection
54
+ * WCAG 4.1.2: aria-describedby must connect to subtext/error messages
55
+ */
56
+ export declare const getSubtextId: (uniqueId: string, hasSubtext: boolean) => string | undefined;
57
+ /**
58
+ * Merges custom aria-describedby with subtext ID
59
+ * WCAG 4.1.2: Supports multiple IDs space-separated
60
+ */
61
+ export declare const mergeAriaDescribedBy: (subtextId: string | undefined, customAriaDescribedBy?: string) => string | undefined;
62
+ /**
63
+ * Handles keyboard interaction for checkbox root.
64
+ * - On Enter: toggles checked state (indeterminate -> true, otherwise toggles boolean)
65
+ */
66
+ export declare const handleCheckboxKeyDown: (e: KeyboardEvent<HTMLButtonElement>, checked: boolean | "indeterminate" | undefined, disabled: boolean, onCheckedChange?: (checked: boolean | "indeterminate") => void) => void;
67
+ export declare const getCheckboxState: (checked: boolean | "indeterminate") => CheckboxV2CheckedState;
@@ -1,12 +1,12 @@
1
- import { SwitchV2Size } from './switchV2.types';
1
+ import { SelectorV2Size } from '../selectorV2.types';
2
2
  declare const SwitchV2: import('react').ForwardRefExoticComponent<{
3
3
  checked?: boolean;
4
- onChange?: (checked: boolean) => void;
4
+ onCheckedChange?: (checked: boolean) => void;
5
5
  required?: boolean;
6
6
  error?: boolean;
7
7
  label?: string;
8
8
  subLabel?: string;
9
- size?: SwitchV2Size;
9
+ size?: SelectorV2Size;
10
10
  slot?: {
11
11
  slot: import('react').ReactElement;
12
12
  maxHeight?: import('styled-components').CSSObject["maxHeight"];
@@ -1,3 +1,3 @@
1
- import { FoundationTokenType } from '../../tokens/theme.token';
1
+ import { FoundationTokenType } from '../../../tokens/theme.token';
2
2
  import { ResponsiveSwitchV2Tokens } from './switchV2.tokens';
3
3
  export declare const getSwitchV2DarkTokens: (foundationToken: FoundationTokenType) => ResponsiveSwitchV2Tokens;
@@ -1,3 +1,3 @@
1
- import { FoundationTokenType } from '../../tokens/theme.token';
1
+ import { FoundationTokenType } from '../../../tokens/theme.token';
2
2
  import { ResponsiveSwitchV2Tokens } from './switchV2.tokens';
3
3
  export declare const getSwitchV2LightTokens: (foundationToken: FoundationTokenType) => ResponsiveSwitchV2Tokens;
@@ -1,16 +1,17 @@
1
- import { Theme } from '../../context/theme.enum';
1
+ import { Theme } from '../../../context/theme.enum';
2
2
  import { CSSObject } from 'styled-components';
3
- import { SwitchV2Size, SwitchV2State, SwitchV2Variant } from './switchV2.types';
4
- import { BreakpointType } from '../../breakpoints/breakPoints';
5
- import { FoundationTokenType } from '../../tokens/theme.token';
3
+ import { SwitchV2State, SwitchV2Variant } from './switchV2.types';
4
+ import { BreakpointType } from '../../../breakpoints/breakPoints';
5
+ import { FoundationTokenType } from '../../../tokens/theme.token';
6
+ import { SelectorV2Size } from '../selectorV2.types';
6
7
  export type SwitchV2TokensType = {
7
8
  gap: CSSObject['gap'];
8
9
  switch: {
9
10
  height: {
10
- [key in SwitchV2Size]: CSSObject['height'];
11
+ [key in SelectorV2Size]: CSSObject['height'];
11
12
  };
12
13
  width: {
13
- [key in SwitchV2Size]: CSSObject['width'];
14
+ [key in SelectorV2Size]: CSSObject['width'];
14
15
  };
15
16
  backgroundColor: {
16
17
  [key in SwitchV2Variant]: {
@@ -21,10 +22,10 @@ export type SwitchV2TokensType = {
21
22
  backgroundColor: CSSObject['backgroundColor'];
22
23
  border: CSSObject['border'];
23
24
  width: {
24
- [key in SwitchV2Size]: CSSObject['width'];
25
+ [key in SelectorV2Size]: CSSObject['width'];
25
26
  };
26
27
  height: {
27
- [key in SwitchV2Size]: CSSObject['height'];
28
+ [key in SelectorV2Size]: CSSObject['height'];
28
29
  };
29
30
  outline: CSSObject['outline'];
30
31
  };
@@ -37,17 +38,17 @@ export type SwitchV2TokensType = {
37
38
  [key in SwitchV2State]: CSSObject['color'];
38
39
  };
39
40
  fontSize: {
40
- [key in SwitchV2Size]: CSSObject['fontSize'];
41
+ [key in SelectorV2Size]: CSSObject['fontSize'];
41
42
  };
42
43
  fontWeight: {
43
- [key in SwitchV2Size]: CSSObject['fontWeight'];
44
+ [key in SelectorV2Size]: CSSObject['fontWeight'];
44
45
  };
45
46
  lineHeight: {
46
- [key in SwitchV2Size]: CSSObject['lineHeight'];
47
+ [key in SelectorV2Size]: CSSObject['lineHeight'];
47
48
  };
48
49
  slot: {
49
50
  maxHeight: {
50
- [key in SwitchV2Size]: CSSObject['maxHeight'];
51
+ [key in SelectorV2Size]: CSSObject['maxHeight'];
51
52
  };
52
53
  };
53
54
  };
@@ -56,13 +57,13 @@ export type SwitchV2TokensType = {
56
57
  [key in SwitchV2State]: CSSObject['color'];
57
58
  };
58
59
  fontSize: {
59
- [key in SwitchV2Size]: CSSObject['fontSize'];
60
+ [key in SelectorV2Size]: CSSObject['fontSize'];
60
61
  };
61
62
  fontWeight: {
62
- [key in SwitchV2Size]: CSSObject['fontWeight'];
63
+ [key in SelectorV2Size]: CSSObject['fontWeight'];
63
64
  };
64
65
  lineHeight: {
65
- [key in SwitchV2Size]: CSSObject['lineHeight'];
66
+ [key in SelectorV2Size]: CSSObject['lineHeight'];
66
67
  };
67
68
  };
68
69
  required: {
@@ -1,17 +1,14 @@
1
1
  import { ButtonHTMLAttributes, ReactElement } from 'react';
2
2
  import { SwitchV2TokensType } from './switchV2.tokens';
3
3
  import { CSSObject } from 'styled-components';
4
- export declare enum SwitchV2Size {
5
- SM = "sm",
6
- MD = "md"
7
- }
4
+ import { SelectorV2Size } from '../selectorV2.types';
8
5
  export type SwitchV2State = 'default' | 'hover' | 'disabled' | 'error';
9
6
  export type SwitchV2Variant = 'checked' | 'unchecked';
10
7
  export type SwitchV2ButtonProps = {
11
8
  id: string;
12
9
  checked?: boolean;
13
10
  disabled: boolean;
14
- size: SwitchV2Size;
11
+ size: SelectorV2Size;
15
12
  tokens: SwitchV2TokensType;
16
13
  onToggle: () => void;
17
14
  buttonProps?: Record<string, unknown>;
@@ -22,7 +19,7 @@ export type SwitchV2ContentProps = {
22
19
  disabled: boolean;
23
20
  error: boolean;
24
21
  required: boolean;
25
- size: SwitchV2Size;
22
+ size: SelectorV2Size;
26
23
  label?: string;
27
24
  subLabel?: string;
28
25
  slot?: {
@@ -36,12 +33,12 @@ export type SwitchV2ContentProps = {
36
33
  };
37
34
  export type SwitchV2Props = {
38
35
  checked?: boolean;
39
- onChange?: (checked: boolean) => void;
36
+ onCheckedChange?: (checked: boolean) => void;
40
37
  required?: boolean;
41
38
  error?: boolean;
42
39
  label?: string;
43
40
  subLabel?: string;
44
- size?: SwitchV2Size;
41
+ size?: SelectorV2Size;
45
42
  slot?: {
46
43
  slot: ReactElement;
47
44
  maxHeight?: CSSObject['maxHeight'];
@@ -0,0 +1,12 @@
1
+ export declare enum SelectorV2Size {
2
+ SM = "sm",
3
+ MD = "md",
4
+ LG = "lg"
5
+ }
6
+ export declare enum SelectorV2InteractionState {
7
+ DEFAULT = "default",
8
+ HOVER = "hover",
9
+ FOCUS = "focus",
10
+ ERROR = "error",
11
+ DISABLED = "disabled"
12
+ }
@@ -1,5 +1,6 @@
1
- import { SwitchV2Size, SwitchV2State } from '../SwitchV2/switchV2.types';
2
- export type SelectorsSize = SwitchV2Size;
1
+ import { SwitchV2State } from '../SelectorV2/SwitchV2/switchV2.types';
2
+ import { SelectorV2Size } from '../SelectorV2/selectorV2.types';
3
+ export type SelectorsSize = SelectorV2Size;
3
4
  export type SelectorsLabelTokensType = {
4
5
  content: {
5
6
  label: {
@@ -33,6 +34,7 @@ export type SelectorsLabelProps = {
33
34
  label: string;
34
35
  tokens: SelectorsLabelTokensType;
35
36
  maxLength?: number;
37
+ elementType?: string;
36
38
  };
37
39
  export type SelectorsSubLabelProps = {
38
40
  id?: string;
@@ -42,4 +44,5 @@ export type SelectorsSubLabelProps = {
42
44
  error: boolean;
43
45
  tokens: SelectorsSubLabelTokensType;
44
46
  maxLength?: number;
47
+ elementType?: string;
45
48
  };
@@ -1,3 +1,3 @@
1
1
  import { SelectorsLabelProps } from './SelectorsContent.types';
2
- declare const SelectorsLabel: ({ id, uniqueId, disabled, error, required, size, label, tokens, maxLength, }: SelectorsLabelProps) => import("react/jsx-runtime").JSX.Element | null;
2
+ declare const SelectorsLabel: ({ id, uniqueId, disabled, error, required, size, label, tokens, maxLength, elementType, }: SelectorsLabelProps) => import("react/jsx-runtime").JSX.Element | null;
3
3
  export default SelectorsLabel;
@@ -1,6 +1,6 @@
1
1
  import { SelectorsSubLabelProps } from './SelectorsContent.types';
2
2
  declare const SelectorsSubLabel: {
3
- ({ id, subLabel, size, disabled, error, tokens, maxLength, }: SelectorsSubLabelProps): import("react/jsx-runtime").JSX.Element | null;
3
+ ({ id, subLabel, size, disabled, error, tokens, maxLength, elementType, }: SelectorsSubLabelProps): import("react/jsx-runtime").JSX.Element | null;
4
4
  displayName: string;
5
5
  };
6
6
  export default SelectorsSubLabel;
@@ -0,0 +1,41 @@
1
+ declare const Timeline: import('react').ForwardRefExoticComponent<{
2
+ children: import('react').ReactNode;
3
+ className?: string;
4
+ } & Omit<import('react').HTMLAttributes<HTMLDivElement>, "style" | "className" | "children"> & import('react').RefAttributes<HTMLDivElement>> & {
5
+ Label: import('react').ForwardRefExoticComponent<import('./types').TimelineLabelProps & import('react').RefAttributes<HTMLDivElement>>;
6
+ Header: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
7
+ title: string;
8
+ status?: import('./types').TimelineNodeStatus;
9
+ timestamp?: string;
10
+ children?: import('react').ReactNode;
11
+ leftSlot?: import('react').ReactNode;
12
+ rightSlot?: import('react').ReactNode;
13
+ } & import('react').RefAttributes<HTMLDivElement>>;
14
+ Substep: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
15
+ title: string;
16
+ isNestedUnderHeader?: boolean;
17
+ showIndicator?: boolean;
18
+ description?: string;
19
+ timestamp?: string;
20
+ rightSlot?: import('react').ReactNode;
21
+ datetimeLeftSlot?: import('react').ReactNode;
22
+ datetimeRightSlot?: import('react').ReactNode;
23
+ } & import('react').RefAttributes<HTMLDivElement>>;
24
+ Node: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
25
+ title?: string;
26
+ leftSlot?: import('react').ReactNode;
27
+ headerRightSlot?: import('react').ReactNode;
28
+ datetime?: string;
29
+ datetimeLeftSlot?: import('react').ReactNode;
30
+ datetimeRightSlot?: import('react').ReactNode;
31
+ text?: string;
32
+ maxLines?: number;
33
+ user?: import('./types').TimelineUser;
34
+ avatarProps?: Partial<Omit<import('../AvatarV2').AvatarV2Props, "src" | "fallbackText">>;
35
+ time?: string;
36
+ status?: import('./types').TimelineNodeStatus;
37
+ children?: import('react').ReactNode;
38
+ } & import('react').RefAttributes<HTMLDivElement>>;
39
+ ShowMore: import('react').ForwardRefExoticComponent<import('./types').TimelineShowMoreProps & import('react').RefAttributes<HTMLDivElement>>;
40
+ };
41
+ export default Timeline;
@@ -0,0 +1,10 @@
1
+ import { TimelineNodeStatus } from './types';
2
+ declare const TimelineHeader: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
3
+ title: string;
4
+ status?: TimelineNodeStatus;
5
+ timestamp?: string;
6
+ children?: import('react').ReactNode;
7
+ leftSlot?: import('react').ReactNode;
8
+ rightSlot?: import('react').ReactNode;
9
+ } & import('react').RefAttributes<HTMLDivElement>>;
10
+ export default TimelineHeader;
@@ -0,0 +1,3 @@
1
+ import { TimelineLabelProps } from './types';
2
+ declare const TimelineLabel: import('react').ForwardRefExoticComponent<TimelineLabelProps & import('react').RefAttributes<HTMLDivElement>>;
3
+ export default TimelineLabel;
@@ -0,0 +1,17 @@
1
+ import { TimelineNodeStatus } from './types';
2
+ declare const TimelineNode: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
3
+ title?: string;
4
+ leftSlot?: import('react').ReactNode;
5
+ headerRightSlot?: import('react').ReactNode;
6
+ datetime?: string;
7
+ datetimeLeftSlot?: import('react').ReactNode;
8
+ datetimeRightSlot?: import('react').ReactNode;
9
+ text?: string;
10
+ maxLines?: number;
11
+ user?: import('./types').TimelineUser;
12
+ avatarProps?: Partial<Omit<import('../AvatarV2').AvatarV2Props, "src" | "fallbackText">>;
13
+ time?: string;
14
+ status?: TimelineNodeStatus;
15
+ children?: import('react').ReactNode;
16
+ } & import('react').RefAttributes<HTMLDivElement>>;
17
+ export default TimelineNode;
@@ -0,0 +1,3 @@
1
+ import { TimelineShowMoreProps } from './types';
2
+ declare const TimelineShowMore: import('react').ForwardRefExoticComponent<TimelineShowMoreProps & import('react').RefAttributes<HTMLDivElement>>;
3
+ export default TimelineShowMore;
@@ -0,0 +1,11 @@
1
+ declare const TimelineSubstep: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
2
+ title: string;
3
+ isNestedUnderHeader?: boolean;
4
+ showIndicator?: boolean;
5
+ description?: string;
6
+ timestamp?: string;
7
+ rightSlot?: import('react').ReactNode;
8
+ datetimeLeftSlot?: import('react').ReactNode;
9
+ datetimeRightSlot?: import('react').ReactNode;
10
+ } & import('react').RefAttributes<HTMLDivElement>>;
11
+ export default TimelineSubstep;
@@ -0,0 +1,8 @@
1
+ export { default as Timeline } from './Timeline';
2
+ export { default as TimelineLabel } from './TimelineLabel';
3
+ export { default as TimelineHeader } from './TimelineHeader';
4
+ export { default as TimelineSubstep } from './TimelineSubstep';
5
+ export { default as TimelineNode } from './TimelineNode';
6
+ export { default as TimelineShowMore } from './TimelineShowMore';
7
+ export * from './types';
8
+ export * from './timeline.token';
@@ -0,0 +1,8 @@
1
+ import { FoundationTokenType } from '../../tokens/theme.token';
2
+ import { TimelineTokensType } from './timeline.token';
3
+ import { BreakpointType } from '../../breakpoints/breakPoints';
4
+ type ResponsiveTimelineTokens = {
5
+ [key in keyof BreakpointType]: TimelineTokensType;
6
+ };
7
+ export declare const getTimelineDarkTokens: (foundationToken: FoundationTokenType) => ResponsiveTimelineTokens;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { FoundationTokenType } from '../../tokens/theme.token';
2
+ import { TimelineTokensType } from './timeline.token';
3
+ import { BreakpointType } from '../../breakpoints/breakPoints';
4
+ type ResponsiveTimelineTokens = {
5
+ [key in keyof BreakpointType]: TimelineTokensType;
6
+ };
7
+ export declare const getTimelineLightTokens: (foundationToken: FoundationTokenType) => ResponsiveTimelineTokens;
8
+ export {};