freemium-ui 2.0.0-beta.7 → 2.0.0-beta.9

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 (156) hide show
  1. package/Alert/package.json +1 -1
  2. package/Button/package.json +1 -1
  3. package/Checkbox/package.json +1 -1
  4. package/Confirmation/package.json +1 -1
  5. package/Drawer/package.json +1 -1
  6. package/Dropdown/package.json +1 -1
  7. package/Icons/package.json +1 -1
  8. package/Input/package.json +1 -1
  9. package/Loader/package.json +1 -1
  10. package/Menu/package.json +1 -1
  11. package/Modal/package.json +1 -1
  12. package/MultiSelectDropdown/package.json +1 -1
  13. package/README.md +16 -1
  14. package/package.json +1 -1
  15. package/rollup.config.d.ts +0 -3
  16. package/src/components/Alert/Alert.d.ts +0 -7
  17. package/src/components/Alert/Alert.types.d.ts +0 -42
  18. package/src/components/Alert/index.d.ts +0 -2
  19. package/src/components/Alert/styles.d.ts +0 -279
  20. package/src/components/Button/Button.d.ts +0 -7
  21. package/src/components/Button/Button.types.d.ts +0 -25
  22. package/src/components/Button/constants.d.ts +0 -5
  23. package/src/components/Button/index.d.ts +0 -2
  24. package/src/components/Button/styles.d.ts +0 -9
  25. package/src/components/Checkbox/Checkbox.d.ts +0 -7
  26. package/src/components/Checkbox/Checkbox.types.d.ts +0 -15
  27. package/src/components/Checkbox/index.d.ts +0 -2
  28. package/src/components/Checkbox/styles.d.ts +0 -836
  29. package/src/components/Confirmation/Confirmation.d.ts +0 -7
  30. package/src/components/Confirmation/Confirmation.types.d.ts +0 -55
  31. package/src/components/Confirmation/index.d.ts +0 -2
  32. package/src/components/Confirmation/styles.d.ts +0 -1951
  33. package/src/components/Drawer/Drawer.d.ts +0 -7
  34. package/src/components/Drawer/Drawer.types.d.ts +0 -41
  35. package/src/components/Drawer/constants.d.ts +0 -4
  36. package/src/components/Drawer/index.d.ts +0 -2
  37. package/src/components/Drawer/styles.d.ts +0 -865
  38. package/src/components/Dropdown/Dropdown.d.ts +0 -7
  39. package/src/components/Dropdown/Dropdown.types.d.ts +0 -122
  40. package/src/components/Dropdown/index.d.ts +0 -2
  41. package/src/components/Dropdown/styles.d.ts +0 -3887
  42. package/src/components/Icons/ChevronUp.d.ts +0 -3
  43. package/src/components/Icons/Cross.d.ts +0 -3
  44. package/src/components/Icons/CrossSmall.d.ts +0 -3
  45. package/src/components/Icons/Drag.d.ts +0 -3
  46. package/src/components/Icons/Search.d.ts +0 -3
  47. package/src/components/Icons/Settings.d.ts +0 -3
  48. package/src/components/Icons/TickIcon.d.ts +0 -3
  49. package/src/components/Icons/Warning.d.ts +0 -3
  50. package/src/components/Icons/index.d.ts +0 -5
  51. package/src/components/Input/Input.d.ts +0 -7
  52. package/src/components/Input/InputTextArea.types.d.ts +0 -50
  53. package/src/components/Input/TextArea.d.ts +0 -7
  54. package/src/components/Input/index.d.ts +0 -3
  55. package/src/components/Input/styles.d.ts +0 -877
  56. package/src/components/Loader/Loader.d.ts +0 -7
  57. package/src/components/Loader/Loader.types.d.ts +0 -12
  58. package/src/components/Loader/constants.d.ts +0 -4
  59. package/src/components/Loader/index.d.ts +0 -2
  60. package/src/components/Loader/styles.d.ts +0 -8
  61. package/src/components/Menu/Menu.d.ts +0 -8
  62. package/src/components/Menu/Menu.types.d.ts +0 -47
  63. package/src/components/Menu/index.d.ts +0 -2
  64. package/src/components/Menu/styles.d.ts +0 -1078
  65. package/src/components/Modal/Modal.d.ts +0 -7
  66. package/src/components/Modal/Modal.types.d.ts +0 -42
  67. package/src/components/Modal/constants.d.ts +0 -8
  68. package/src/components/Modal/index.d.ts +0 -2
  69. package/src/components/Modal/styles.d.ts +0 -308
  70. package/src/components/MultiSelectDropdown/MultiSelectDropdown.d.ts +0 -7
  71. package/src/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +0 -83
  72. package/src/components/MultiSelectDropdown/index.d.ts +0 -2
  73. package/src/components/MultiSelectDropdown/styles.d.ts +0 -547
  74. package/src/components/Pickers/DatePicker.d.ts +0 -8
  75. package/src/components/Pickers/DateRangePicker.d.ts +0 -8
  76. package/src/components/Pickers/DateTimePicker.d.ts +0 -8
  77. package/src/components/Pickers/DateTimeRangePicker.d.ts +0 -8
  78. package/src/components/Pickers/PickerDropdown.d.ts +0 -21
  79. package/src/components/Pickers/Pickers.types.d.ts +0 -44
  80. package/src/components/Pickers/constants.d.ts +0 -1
  81. package/src/components/Pickers/index.d.ts +0 -5
  82. package/src/components/Pickers/styles.d.ts +0 -835
  83. package/src/components/Popover/Popover.d.ts +0 -7
  84. package/src/components/Popover/Popover.types.d.ts +0 -68
  85. package/src/components/Popover/index.d.ts +0 -3
  86. package/src/components/Popover/styles.d.ts +0 -1357
  87. package/src/components/Radio/Radio.d.ts +0 -7
  88. package/src/components/Radio/Radio.types.d.ts +0 -72
  89. package/src/components/Radio/RadioGroup.d.ts +0 -7
  90. package/src/components/Radio/index.d.ts +0 -3
  91. package/src/components/Radio/styles.d.ts +0 -1114
  92. package/src/components/RadixDropdown/RadixDropdown.d.ts +0 -4
  93. package/src/components/RadixDropdown/RadixDropdown.types.d.ts +0 -121
  94. package/src/components/RadixDropdown/index.d.ts +0 -2
  95. package/src/components/RadixDropdown/styles.d.ts +0 -3321
  96. package/src/components/Reorder/Reorder.d.ts +0 -7
  97. package/src/components/Reorder/Reorder.types.d.ts +0 -27
  98. package/src/components/Reorder/index.d.ts +0 -2
  99. package/src/components/Reorder/styles.d.ts +0 -278
  100. package/src/components/Table/CustomizeColumns.d.ts +0 -10
  101. package/src/components/Table/Table.d.ts +0 -7
  102. package/src/components/Table/Table.types.d.ts +0 -10
  103. package/src/components/Table/index.d.ts +0 -2
  104. package/src/components/Table/styles.d.ts +0 -4384
  105. package/src/components/Tabs/Tabs.d.ts +0 -9
  106. package/src/components/Tabs/Tabs.types.d.ts +0 -37
  107. package/src/components/Tabs/index.d.ts +0 -2
  108. package/src/components/Tabs/styles.d.ts +0 -1113
  109. package/src/components/Tag/Tag.d.ts +0 -7
  110. package/src/components/Tag/Tag.types.d.ts +0 -35
  111. package/src/components/Tag/index.d.ts +0 -2
  112. package/src/components/Tag/styles.d.ts +0 -1121
  113. package/src/components/ThemeProvider/ThemeProvider.d.ts +0 -4
  114. package/src/components/ThemeProvider/ThemeProvider.types.d.ts +0 -5
  115. package/src/components/ThemeProvider/index.d.ts +0 -2
  116. package/src/components/Toast/Toast.types.d.ts +0 -41
  117. package/src/components/Toast/ToastContainer.d.ts +0 -2
  118. package/src/components/Toast/ToastContext.d.ts +0 -3
  119. package/src/components/Toast/ToastItem.d.ts +0 -6
  120. package/src/components/Toast/ToastProvider.d.ts +0 -6
  121. package/src/components/Toast/icons/Error.d.ts +0 -3
  122. package/src/components/Toast/icons/Success.d.ts +0 -3
  123. package/src/components/Toast/icons/Warning.d.ts +0 -3
  124. package/src/components/Toast/index.d.ts +0 -3
  125. package/src/components/Toast/styles.d.ts +0 -1134
  126. package/src/components/Toast/use-toasts.d.ts +0 -6
  127. package/src/components/Toggle/Toggle.d.ts +0 -7
  128. package/src/components/Toggle/Toggle.types.d.ts +0 -26
  129. package/src/components/Toggle/constants.d.ts +0 -9
  130. package/src/components/Toggle/index.d.ts +0 -2
  131. package/src/components/Toggle/styles.d.ts +0 -9
  132. package/src/components/Tooltip/Tooltip.d.ts +0 -9
  133. package/src/components/Tooltip/Tooltip.types.d.ts +0 -42
  134. package/src/components/Tooltip/index.d.ts +0 -2
  135. package/src/components/Tooltip/styles.d.ts +0 -1077
  136. package/src/components/Transition/Fade.d.ts +0 -4
  137. package/src/components/Transition/Slide.d.ts +0 -4
  138. package/src/components/Transition/SlideFade.d.ts +0 -4
  139. package/src/components/Transition/Transition.d.ts +0 -4
  140. package/src/components/Transition/Transition.types.d.ts +0 -33
  141. package/src/components/Transition/index.d.ts +0 -5
  142. package/src/components/Typography/Typography.d.ts +0 -7
  143. package/src/components/Typography/Typography.types.d.ts +0 -11
  144. package/src/components/Typography/index.d.ts +0 -2
  145. package/src/components/Typography/styles.d.ts +0 -8
  146. package/src/components/index.d.ts +0 -25
  147. package/src/index.d.ts +0 -1
  148. package/src/styles/index.d.ts +0 -3039
  149. package/src/themes/index.d.ts +0 -3
  150. package/src/themes/palette.d.ts +0 -3
  151. package/src/themes/types.d.ts +0 -118
  152. package/src/types/index.d.ts +0 -93
  153. package/src/utils/index.d.ts +0 -2
  154. package/src/utils/use-current-state.d.ts +0 -8
  155. package/src/utils/use-portal.d.ts +0 -2
  156. package/src/utils/use-ssr.d.ts +0 -6
@@ -1,3 +0,0 @@
1
- import { FreemiumUiTheme } from './types';
2
- export declare const light: FreemiumUiTheme;
3
- export declare const dark: FreemiumUiTheme;
@@ -1,3 +0,0 @@
1
- import { FreshworksPalette } from '../types';
2
- declare const palette: FreshworksPalette;
3
- export default palette;
@@ -1,118 +0,0 @@
1
- /// <reference types="react" />
2
- import { TypographyWeightType } from '../components/Typography/Typography.types';
3
- type BreakpointKeys = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
- type UiUnits = 'px' | 'rem' | 'em' | '%';
5
- export interface Breakpoints {
6
- keys: BreakpointKeys[];
7
- values: Record<BreakpointKeys, number>;
8
- unit: UiUnits;
9
- }
10
- export interface TextColorSemantics {
11
- success: string;
12
- warning: string;
13
- error: string;
14
- info: string;
15
- }
16
- export interface TextColors {
17
- primary: string;
18
- link: string;
19
- secondary: string;
20
- disabled: string;
21
- placeholder: string;
22
- error: string;
23
- inverse: string;
24
- semantic: TextColorSemantics;
25
- }
26
- export interface FillColors {
27
- base: string;
28
- surface: string;
29
- inverse: string;
30
- hover: string;
31
- disabled: string;
32
- hilight: string;
33
- }
34
- export interface SemanticColorsType {
35
- bg: string;
36
- border: string;
37
- }
38
- export interface SemanticColors {
39
- error: SemanticColorsType;
40
- warning: SemanticColorsType;
41
- info: SemanticColorsType;
42
- success: SemanticColorsType;
43
- }
44
- export interface BorderColors {
45
- normal: string;
46
- divider: string;
47
- hover: string;
48
- active: string;
49
- disabled: string;
50
- error: string;
51
- }
52
- export interface CommonColors {
53
- accent: string;
54
- black: string;
55
- white: string;
56
- }
57
- export interface Colors {
58
- common: CommonColors;
59
- text: TextColors;
60
- fill: FillColors;
61
- semantic: SemanticColors;
62
- border: BorderColors;
63
- shadow: string;
64
- scrim: string;
65
- }
66
- export interface BaseTypography {
67
- fontSize?: React.CSSProperties['fontSize'];
68
- fontWeight?: React.CSSProperties['fontWeight'];
69
- lineHeight?: React.CSSProperties['lineHeight'];
70
- }
71
- export interface FuiTypography {
72
- fontFamily: React.CSSProperties['fontFamily'];
73
- fontWeight: Record<TypographyWeightType, React.CSSProperties['fontWeight']>;
74
- primary: BaseTypography;
75
- secondary: BaseTypography;
76
- heading: BaseTypography;
77
- heading4: BaseTypography;
78
- heading3: BaseTypography;
79
- heading2: BaseTypography;
80
- heading1: BaseTypography;
81
- caption: BaseTypography;
82
- }
83
- export interface Easing {
84
- easeInOut: string;
85
- easeOut: string;
86
- easeIn: string;
87
- sharp: string;
88
- }
89
- export interface Duration {
90
- short: string;
91
- standard: string;
92
- complex: string;
93
- }
94
- export interface Transitions {
95
- easing: Easing;
96
- duration: Duration;
97
- }
98
- export interface ZIndex {
99
- mobileStepper: number;
100
- fab: number;
101
- speedDial: number;
102
- appBar: number;
103
- drawer: number;
104
- modal: number;
105
- snackbar: number;
106
- tooltip: number;
107
- }
108
- export interface FreemiumUiTheme {
109
- mode: 'light' | 'dark';
110
- breakpoints: Breakpoints;
111
- colors: Colors;
112
- typography: FuiTypography;
113
- shadows?: string[] | null;
114
- transitions: Transitions;
115
- zIndex: ZIndex;
116
- components: any;
117
- }
118
- export {};
@@ -1,93 +0,0 @@
1
- import { FreemiumUiTheme } from '../themes/types';
2
- export type FreshworksPalette = {
3
- primary: {
4
- elephant: string;
5
- smoke: string;
6
- milk: string;
7
- E900: string;
8
- E800: string;
9
- E700: string;
10
- E600: string;
11
- E500: string;
12
- E400: string;
13
- E300: string;
14
- E200: string;
15
- E100: string;
16
- E50: string;
17
- S900: string;
18
- S800: string;
19
- S700: string;
20
- S600: string;
21
- S500: string;
22
- S400: string;
23
- S300: string;
24
- S200: string;
25
- S100: string;
26
- S75: string;
27
- S50: string;
28
- S25: string;
29
- S10: string;
30
- };
31
- secondary: {
32
- jungle: string;
33
- J900: string;
34
- J800: string;
35
- J700: string;
36
- J600: string;
37
- J500: string;
38
- J400: string;
39
- J300: string;
40
- J200: string;
41
- J100: string;
42
- J50: string;
43
- azure: string;
44
- A900: string;
45
- A800: string;
46
- A700: string;
47
- A600: string;
48
- A500: string;
49
- A400: string;
50
- A300: string;
51
- A200: string;
52
- A100: string;
53
- A50: string;
54
- persimmon: string;
55
- P900: string;
56
- P800: string;
57
- P700: string;
58
- P600: string;
59
- P500: string;
60
- P400: string;
61
- P300: string;
62
- P200: string;
63
- P100: string;
64
- P50: string;
65
- casablanca: string;
66
- C900: string;
67
- C800: string;
68
- C700: string;
69
- C600: string;
70
- C500: string;
71
- C400: string;
72
- C300: string;
73
- C200: string;
74
- C100: string;
75
- C50: string;
76
- };
77
- common: {
78
- black: string;
79
- white: string;
80
- };
81
- };
82
- export type FuiContextType = {
83
- theme: FreemiumUiTheme;
84
- };
85
- export type ModalCssType = {
86
- left?: string;
87
- top?: string;
88
- transform?: string;
89
- right?: string;
90
- bottom?: string;
91
- y?: string;
92
- x?: string;
93
- };
@@ -1,2 +0,0 @@
1
- export declare const isValidDateFormat: (date?: string) => boolean;
2
- export declare const getId: () => string;
@@ -1,8 +0,0 @@
1
- import { Dispatch, MutableRefObject, SetStateAction } from 'react';
2
- export type CurrentStateType<S> = [
3
- S,
4
- Dispatch<SetStateAction<S>>,
5
- MutableRefObject<S>
6
- ];
7
- declare const useCurrentState: <S>(initialState: S | (() => S)) => CurrentStateType<S>;
8
- export default useCurrentState;
@@ -1,2 +0,0 @@
1
- declare const usePortal: (selectId?: string) => Element | DocumentFragment | null;
2
- export default usePortal;
@@ -1,6 +0,0 @@
1
- export type SSRState = {
2
- isBrowser: boolean;
3
- isServer: boolean;
4
- };
5
- declare const useSSR: () => SSRState;
6
- export default useSSR;