@xola/ui-kit 3.5.0 → 3.7.0

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 (215) hide show
  1. package/README.md +136 -87
  2. package/build/components/Alert.js +18 -13
  3. package/build/components/Animation/FadeIn.js +36 -25
  4. package/build/components/Animation/SlideDown.js +14 -9
  5. package/build/components/Avatar.js +17 -10
  6. package/build/components/Badge.js +33 -24
  7. package/build/components/BottomSheet.js +114 -0
  8. package/build/components/Breadcrumb.js +27 -21
  9. package/build/components/Breakdown.js +66 -74
  10. package/build/components/Buttons/Button.js +53 -47
  11. package/build/components/Buttons/ButtonGroup.js +42 -39
  12. package/build/components/Buttons/SecondaryButton.js +31 -0
  13. package/build/components/Buttons/SubmitButton.js +72 -66
  14. package/build/components/Buttons/ToggleButton.js +15 -16
  15. package/build/components/Counter.js +10 -6
  16. package/build/components/DatePicker/DatePicker.helpers.js +24 -13
  17. package/build/components/DatePicker/DatePicker.js +196 -223
  18. package/build/components/DatePicker/DatePickerPopover.js +75 -66
  19. package/build/components/DatePicker/Day.js +35 -32
  20. package/build/components/DatePicker/LocalizedDayPicker.js +15 -18
  21. package/build/components/DatePicker/MonthGrid.js +35 -48
  22. package/build/components/DatePicker/MonthPicker.js +25 -20
  23. package/build/components/DatePicker/MonthSelector.js +39 -40
  24. package/build/components/DatePicker/MonthYearSelector.js +18 -39
  25. package/build/components/DatePicker/NavbarElement.js +26 -35
  26. package/build/components/DatePicker/RangeDatePicker.js +104 -123
  27. package/build/components/DatePicker/RelativeDateRange.js +153 -143
  28. package/build/components/DatePicker/UpcomingDatePicker.js +29 -25
  29. package/build/components/Dot/Dot.js +13 -8
  30. package/build/components/Dot/DotProgress.js +12 -7
  31. package/build/components/Drawer.js +109 -101
  32. package/build/components/Forms/BaseInput.js +50 -34
  33. package/build/components/Forms/Checkbox.js +33 -30
  34. package/build/components/Forms/ComboBox.js +35 -35
  35. package/build/components/Forms/FormGroup.js +7 -3
  36. package/build/components/Forms/InlineValuePopover.js +33 -39
  37. package/build/components/Forms/Input.js +15 -7
  38. package/build/components/Forms/Label.js +14 -8
  39. package/build/components/Forms/RangeSlider.js +41 -22
  40. package/build/components/Forms/Select.js +5 -6
  41. package/build/components/Forms/Switch.js +46 -38
  42. package/build/components/Forms/Textarea.js +37 -30
  43. package/build/components/Forms/ValuePopoverText.js +5 -8
  44. package/build/components/GooglePlacesAutocomplete.js +112 -0
  45. package/build/components/HeaderToolbar.js +30 -22
  46. package/build/components/ImageUpload.js +76 -79
  47. package/build/components/Key.js +21 -16
  48. package/build/components/Logo.js +12 -5
  49. package/build/components/Modal.js +87 -72
  50. package/build/components/Popover/Popover.js +40 -31
  51. package/build/components/Popover/PopoverList.js +43 -36
  52. package/build/components/Provider.js +7 -8
  53. package/build/components/Screens/Login.js +97 -126
  54. package/build/components/Search.js +114 -144
  55. package/build/components/Sidebar/Sidebar.Account.js +39 -46
  56. package/build/components/Sidebar/Sidebar.Button.js +45 -19
  57. package/build/components/Sidebar/Sidebar.Footer.js +8 -7
  58. package/build/components/Sidebar/Sidebar.Heading.js +11 -8
  59. package/build/components/Sidebar/Sidebar.Link.js +79 -44
  60. package/build/components/Sidebar/Sidebar.Menu.js +52 -28
  61. package/build/components/Sidebar/Sidebar.Notifications.js +107 -0
  62. package/build/components/Sidebar/Sidebar.js +207 -214
  63. package/build/components/Sidebar/SidebarContext.js +15 -0
  64. package/build/components/Sidebar/sidebarWidth.js +41 -0
  65. package/build/components/Sidebar/useSidebarWidthState.js +115 -0
  66. package/build/components/Skeleton.js +19 -20
  67. package/build/components/Spinner.js +18 -10
  68. package/build/components/Table.js +86 -50
  69. package/build/components/Tabs/Tabs.Panel.js +9 -5
  70. package/build/components/Tabs/Tabs.Tab.js +28 -23
  71. package/build/components/Tabs/Tabs.js +23 -23
  72. package/build/components/Tag.js +28 -23
  73. package/build/components/Tooltip.js +19 -5
  74. package/build/components/Utilities/Currency.js +49 -42
  75. package/build/components/Utilities/Number.js +14 -12
  76. package/build/components/Utilities/Phone.js +18 -12
  77. package/build/helpers/environment.js +10 -0
  78. package/build/helpers/flash.js +45 -46
  79. package/build/hooks/useIsMobile.js +8 -0
  80. package/build/hooks/useViewportHeight.js +6 -12
  81. package/build/icons/src/AnnounceIcon.js +3 -4
  82. package/build/icons/src/BellIcon.js +0 -1
  83. package/build/icons/src/CalendarIcon.js +0 -1
  84. package/build/icons/src/CheckIcon.js +0 -1
  85. package/build/icons/src/ChevronDownIcon.js +4 -5
  86. package/build/icons/src/ChevronLeftIcon.js +0 -1
  87. package/build/icons/src/ChevronRightIcon.js +0 -1
  88. package/build/icons/src/CircleNotch.js +0 -1
  89. package/build/icons/src/CloseIcon.js +11 -9
  90. package/build/icons/src/DownArrowIcon.js +0 -1
  91. package/build/icons/src/ImageIcon.js +0 -1
  92. package/build/icons/src/SearchIcon.js +4 -5
  93. package/build/icons/src/TrashIcon.js +0 -1
  94. package/build/icons/src/WarningDiamondIcon.js +0 -1
  95. package/build/icons/src/helpers/icon.js +5 -9
  96. package/build/icons/src/images/XolaLogoSimple.js +2 -3
  97. package/build/index.js +143 -130
  98. package/build/style.css +1 -0
  99. package/build/theme.css +76 -0
  100. package/build/theme.js +2 -0
  101. package/build/utils/currency.js +5 -5
  102. package/build/{helpers → utils}/date.js +17 -20
  103. package/build/utils/numbers.js +12 -12
  104. package/build/utils/phone.js +12 -14
  105. package/build/utils/userLocale.js +6 -0
  106. package/index.css +96 -4
  107. package/index.d.ts +204 -0
  108. package/package.json +87 -77
  109. package/skills/README.md +27 -0
  110. package/skills/migrate-2.6-to-3.7/SKILL.md +110 -0
  111. package/tailwind.config.js +5 -2
  112. package/build/base.css +0 -2
  113. package/build/components/Alert.d.ts +0 -18
  114. package/build/components/Animation/FadeIn.d.ts +0 -13
  115. package/build/components/Animation/SlideDown.d.ts +0 -6
  116. package/build/components/Avatar.d.ts +0 -16
  117. package/build/components/Badge.d.ts +0 -28
  118. package/build/components/Breadcrumb.d.ts +0 -21
  119. package/build/components/Breakdown.d.ts +0 -63
  120. package/build/components/Buttons/Button.d.ts +0 -53
  121. package/build/components/Buttons/ButtonGroup.d.ts +0 -35
  122. package/build/components/Buttons/SubmitButton.d.ts +0 -11
  123. package/build/components/Buttons/ToggleButton.d.ts +0 -21
  124. package/build/components/Charts/BaseChartOptions.d.ts +0 -136
  125. package/build/components/Charts/HistogramOptions.d.ts +0 -192
  126. package/build/components/Charts/PieOptions.d.ts +0 -177
  127. package/build/components/Counter.d.ts +0 -5
  128. package/build/components/DatePicker/DatePicker.d.ts +0 -41
  129. package/build/components/DatePicker/DatePicker.helpers.d.ts +0 -17
  130. package/build/components/DatePicker/DatePickerPopover.d.ts +0 -29
  131. package/build/components/DatePicker/Day.d.ts +0 -13
  132. package/build/components/DatePicker/LocalizedDayPicker.d.ts +0 -6
  133. package/build/components/DatePicker/MonthGrid.d.ts +0 -11
  134. package/build/components/DatePicker/MonthPicker.d.ts +0 -7
  135. package/build/components/DatePicker/MonthSelector.d.ts +0 -8
  136. package/build/components/DatePicker/MonthYearSelector.d.ts +0 -8
  137. package/build/components/DatePicker/NavbarElement.d.ts +0 -15
  138. package/build/components/DatePicker/RangeDatePicker.d.ts +0 -25
  139. package/build/components/DatePicker/RelativeDateRange.d.ts +0 -51
  140. package/build/components/DatePicker/UpcomingDatePicker.d.ts +0 -11
  141. package/build/components/Dot/Dot.d.ts +0 -24
  142. package/build/components/Dot/DotProgress.d.ts +0 -6
  143. package/build/components/Drawer.d.ts +0 -28
  144. package/build/components/Forms/BaseInput.d.ts +0 -20
  145. package/build/components/Forms/Checkbox.d.ts +0 -10
  146. package/build/components/Forms/ComboBox.d.ts +0 -8
  147. package/build/components/Forms/FormGroup.d.ts +0 -5
  148. package/build/components/Forms/InlineValuePopover.d.ts +0 -17
  149. package/build/components/Forms/Input.d.ts +0 -6
  150. package/build/components/Forms/Label.d.ts +0 -7
  151. package/build/components/Forms/RangeSlider.d.ts +0 -33
  152. package/build/components/Forms/Select.d.ts +0 -5
  153. package/build/components/Forms/Switch.d.ts +0 -46
  154. package/build/components/Forms/Textarea.d.ts +0 -6
  155. package/build/components/Forms/ValuePopoverText.d.ts +0 -6
  156. package/build/components/GooglePlacesAutocomplete.d.ts +0 -14
  157. package/build/components/HeaderToolbar.d.ts +0 -21
  158. package/build/components/ImageUpload.d.ts +0 -17
  159. package/build/components/Key.d.ts +0 -6
  160. package/build/components/Logo.d.ts +0 -19
  161. package/build/components/Modal.d.ts +0 -52
  162. package/build/components/Popover/Popover.d.ts +0 -20
  163. package/build/components/Popover/PopoverList.d.ts +0 -25
  164. package/build/components/Provider.d.ts +0 -18
  165. package/build/components/Screens/Login.d.ts +0 -25
  166. package/build/components/Search.d.ts +0 -16
  167. package/build/components/Sidebar/Sidebar.Account.d.ts +0 -13
  168. package/build/components/Sidebar/Sidebar.Button.d.ts +0 -10
  169. package/build/components/Sidebar/Sidebar.Footer.d.ts +0 -8
  170. package/build/components/Sidebar/Sidebar.Heading.d.ts +0 -10
  171. package/build/components/Sidebar/Sidebar.Link.d.ts +0 -24
  172. package/build/components/Sidebar/Sidebar.Menu.d.ts +0 -13
  173. package/build/components/Sidebar/Sidebar.d.ts +0 -58
  174. package/build/components/Sidebar/index.d.ts +0 -8
  175. package/build/components/Skeleton.d.ts +0 -13
  176. package/build/components/Spinner.d.ts +0 -26
  177. package/build/components/Table.d.ts +0 -59
  178. package/build/components/Tabs/Tabs.Panel.d.ts +0 -9
  179. package/build/components/Tabs/Tabs.Tab.d.ts +0 -19
  180. package/build/components/Tabs/Tabs.d.ts +0 -27
  181. package/build/components/Tabs/index.d.ts +0 -4
  182. package/build/components/Tag.d.ts +0 -25
  183. package/build/components/Tooltip.d.ts +0 -8
  184. package/build/components/Utilities/Currency.d.ts +0 -32
  185. package/build/components/Utilities/Number.d.ts +0 -8
  186. package/build/components/Utilities/Phone.d.ts +0 -8
  187. package/build/full.css +0 -2
  188. package/build/helpers/avatar.d.ts +0 -1
  189. package/build/helpers/avatar.js +0 -8
  190. package/build/helpers/browser.d.ts +0 -2
  191. package/build/helpers/children.d.ts +0 -3
  192. package/build/helpers/classnames.d.ts +0 -5
  193. package/build/helpers/currency.d.ts +0 -2
  194. package/build/helpers/currency.js +0 -11
  195. package/build/helpers/date.d.ts +0 -12
  196. package/build/helpers/flash.d.ts +0 -21
  197. package/build/helpers/numbers.d.ts +0 -4
  198. package/build/helpers/numbers.js +0 -23
  199. package/build/helpers/phone.d.ts +0 -11
  200. package/build/helpers/phone.js +0 -25
  201. package/build/hooks/useId.d.ts +0 -1
  202. package/build/hooks/useId.js +0 -9
  203. package/build/hooks/useIsClient.d.ts +0 -1
  204. package/build/hooks/useViewportHeight.d.ts +0 -1
  205. package/build/icons/src/helpers/classnames.js +0 -8
  206. package/build/index.d.ts +0 -66
  207. package/build/theme.d.ts +0 -413
  208. package/build/types/index.d.ts +0 -22
  209. package/build/types/migration.d.ts +0 -2
  210. package/build/ui-kit.css +0 -1
  211. package/build/utils/avatar.d.ts +0 -1
  212. package/build/utils/currency.d.ts +0 -2
  213. package/build/utils/index.d.ts +0 -4
  214. package/build/utils/numbers.d.ts +0 -4
  215. package/build/utils/phone.d.ts +0 -2
@@ -1,177 +0,0 @@
1
- export declare const PieOptions: {
2
- global: {
3
- useUTC: boolean;
4
- };
5
- chart: {
6
- spacingLeft: number;
7
- };
8
- colors: (string | {
9
- lighter: string;
10
- light: string;
11
- DEFAULT: string;
12
- dark: string;
13
- darker: string;
14
- })[];
15
- xAxis: {
16
- title: {
17
- style: {
18
- color: string;
19
- fontSize: string;
20
- fontWeight: number;
21
- cursor: string;
22
- textOverflow: string;
23
- fontFamily: string[];
24
- } & {
25
- color: string;
26
- };
27
- };
28
- labels: {
29
- style: {
30
- color: string;
31
- fontSize: string;
32
- fontWeight: number;
33
- cursor: string;
34
- textOverflow: string;
35
- fontFamily: string[];
36
- };
37
- };
38
- };
39
- yAxis: {
40
- title: {
41
- style: {
42
- color: string;
43
- fontSize: string;
44
- fontWeight: number;
45
- cursor: string;
46
- textOverflow: string;
47
- fontFamily: string[];
48
- } & {
49
- color: string;
50
- };
51
- };
52
- labels: {
53
- style: {
54
- color: string;
55
- fontSize: string;
56
- fontWeight: number;
57
- cursor: string;
58
- textOverflow: string;
59
- fontFamily: string[];
60
- };
61
- };
62
- };
63
- tooltip: {
64
- enabled: boolean;
65
- backgroundColor: string;
66
- borderColor: string;
67
- borderRadius: number;
68
- borderWidth: number;
69
- valueDecimals: number;
70
- crosshairs: boolean[];
71
- shadow: boolean;
72
- useHTML: boolean;
73
- style: {
74
- color: string;
75
- fontSize: string;
76
- fontWeight: number;
77
- cursor: string;
78
- textOverflow: string;
79
- fontFamily: string[];
80
- } & {
81
- opacity: number;
82
- color: string;
83
- };
84
- };
85
- title: {
86
- text: string;
87
- style: {
88
- color: string;
89
- fontSize: string;
90
- fontWeight: number;
91
- cursor: string;
92
- textOverflow: string;
93
- fontFamily: string[];
94
- } & {
95
- color: string;
96
- fontSize: string;
97
- fontWeight: number;
98
- };
99
- };
100
- plotOptions: {
101
- series: {
102
- marker: {
103
- enabled: boolean;
104
- states: {
105
- hover: {
106
- enabled: boolean;
107
- lineWidth: number;
108
- radius: number;
109
- };
110
- };
111
- };
112
- };
113
- };
114
- legend: {
115
- enabled: boolean;
116
- itemStyle: {
117
- color: string;
118
- fontSize: string;
119
- fontWeight: number;
120
- cursor: string;
121
- textOverflow: string;
122
- fontFamily: string[];
123
- };
124
- itemMarginBottom: number;
125
- align: string;
126
- layout: string;
127
- borderWidth: number;
128
- };
129
- credits: {
130
- enabled: boolean;
131
- };
132
- } & {
133
- chart: {
134
- type: string;
135
- };
136
- tooltip: {
137
- pointFormat: string;
138
- };
139
- plotOptions: {
140
- pie: {
141
- size: number;
142
- center: number[];
143
- allowPointSelect: boolean;
144
- cursor: string;
145
- dataLabels: {
146
- enabled: boolean;
147
- };
148
- showInLegend: boolean;
149
- innerSize: number;
150
- };
151
- };
152
- legend: {
153
- enabled: boolean;
154
- maxHeight: number;
155
- width: number;
156
- navigation: {
157
- activeColor: string;
158
- animation: string;
159
- style: string[];
160
- };
161
- padding: number;
162
- backgroundColor: string;
163
- itemMarginTop: number;
164
- itemMarginBottom: number;
165
- itemStyle: string[];
166
- style: {
167
- overflow: string;
168
- };
169
- align: string;
170
- layout: string;
171
- verticalAlign: string;
172
- y: number;
173
- };
174
- credits: {
175
- enabled: boolean;
176
- };
177
- };
@@ -1,5 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface CounterProps extends React.HTMLAttributes<HTMLSpanElement> {
3
- className?: string;
4
- }
5
- export declare const Counter: ({ className, ...rest }: CounterProps) => React.JSX.Element;
@@ -1,41 +0,0 @@
1
- import { default as React } from 'react';
2
- declare const variants: {
3
- readonly single: "single";
4
- readonly range: "range";
5
- };
6
- type DatePickerVariant = keyof typeof variants;
7
- type DateValue = Date | {
8
- from?: Date;
9
- to?: Date;
10
- };
11
- type RangeKey = "day" | "week" | "month" | "quarter" | "year";
12
- export interface DatePickerProps {
13
- [key: string]: any;
14
- variant?: DatePickerVariant;
15
- value?: DateValue;
16
- selectedDays?: DateValue;
17
- upcomingDates?: Date[];
18
- disabledDays?: ((date: Date) => boolean) | Date[];
19
- loadingDays?: ((date: Date) => boolean) | Date[];
20
- shouldShowYearPicker?: boolean;
21
- shouldShowMonthSelector?: boolean;
22
- shouldShowRelativeRanges?: boolean;
23
- isFutureDatesAllowed?: boolean;
24
- modifiers?: Record<string, any>;
25
- ranges?: RangeKey[];
26
- components?: {
27
- Footer?: React.ComponentType;
28
- };
29
- locale?: string;
30
- timezoneName?: string;
31
- getDayContent?: (day: number, date: Date) => React.ReactNode;
32
- getTooltip?: (date: Date) => React.ReactNode;
33
- onChange: (value: any, options?: any, event?: any) => void;
34
- onMonthChange?: (month: Date) => void;
35
- onSubmitDateRange?: () => void;
36
- }
37
- /**
38
- * Figma Design link: https://www.figma.com/file/tL2vrxuBIzujkDfYvVjUhs/%F0%9F%9B%A0-Xola-DS-Desktop-Master-%F0%9F%9B%A0?node-id=2689%3A101580
39
- */
40
- export declare const DatePicker: ({ variant, value, selectedDays, upcomingDates, disabledDays, loadingDays, shouldShowYearPicker, shouldShowMonthSelector, shouldShowRelativeRanges, isFutureDatesAllowed, modifiers, ranges, components, locale, timezoneName, getDayContent, getTooltip, onChange, onMonthChange, onSubmitDateRange, month: externalMonth, ...rest }: DatePickerProps) => React.JSX.Element;
41
- export {};
@@ -1,17 +0,0 @@
1
- import { Locale } from 'date-fns/locale';
2
- export type LocaleCode = keyof typeof locales;
3
- export type LocalizationProps = {
4
- locale: Locale;
5
- };
6
- declare const locales: {
7
- en: Locale;
8
- "en-US": Locale;
9
- "en-GB": Locale;
10
- es: Locale;
11
- "es-ES": Locale;
12
- "es-MX": Locale;
13
- fr: Locale;
14
- de: Locale;
15
- };
16
- export declare const getLocalizationProps: (localeCode: LocaleCode) => Promise<Partial<LocalizationProps>>;
17
- export {};
@@ -1,29 +0,0 @@
1
- import { default as React } from 'react';
2
- import { PopoverProps } from '../Popover/Popover';
3
- type DateValue = Date | {
4
- from?: Date;
5
- to?: Date;
6
- };
7
- type PickerType = "day" | "month";
8
- type PickerVariant = "single" | "range";
9
- export interface DatePickerPopoverProps {
10
- [key: string]: any;
11
- value?: DateValue;
12
- variant?: PickerVariant;
13
- dateFormat?: string;
14
- placeholder?: string;
15
- pickerType?: PickerType;
16
- classNames?: {
17
- popover?: string;
18
- input?: string;
19
- };
20
- components?: {
21
- Footer?: React.ComponentType;
22
- };
23
- popoverProps?: Partial<PopoverProps>;
24
- children?: React.ReactElement;
25
- getDayContent?: (day: number, date: Date) => React.ReactNode;
26
- onChange?: (...arguments_: any[]) => void;
27
- }
28
- export declare const DatePickerPopover: ({ value, variant, dateFormat, placeholder, pickerType, classNames, components, popoverProps, children, getDayContent, onChange, ...rest }: DatePickerPopoverProps) => React.JSX.Element;
29
- export {};
@@ -1,13 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface DayProps {
3
- selectedDate?: Date | {
4
- from?: Date;
5
- to?: Date;
6
- } | null;
7
- date: Date;
8
- currentMonth: Date;
9
- isLoading?: boolean;
10
- disabled?: boolean;
11
- getContent?: (day: number, date: Date) => React.ReactNode;
12
- }
13
- export declare const Day: ({ selectedDate, date, currentMonth, isLoading, disabled, getContent, }: DayProps) => React.JSX.Element;
@@ -1,6 +0,0 @@
1
- import { default as React } from 'react';
2
- import { DayPickerProps } from 'react-day-picker';
3
- export declare const LocalizedDayPicker: {
4
- ({ className, ...rest }: DayPickerProps): React.JSX.Element;
5
- displayName: string;
6
- };
@@ -1,11 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface MonthGridProps {
3
- year: number;
4
- value?: Date;
5
- locale?: string;
6
- onChange: (newDate: Date) => void;
7
- handleYearChange: (offset: number) => void;
8
- handleClear: () => void;
9
- handleToday: () => void;
10
- }
11
- export declare const MonthGrid: ({ year, value, locale, onChange, handleYearChange, handleClear, handleToday, }: MonthGridProps) => React.JSX.Element;
@@ -1,7 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface MonthPickerProps {
3
- value: Date;
4
- locale?: string;
5
- onChange: (date: Date) => void;
6
- }
7
- export declare const MonthPicker: ({ value, locale, onChange }: MonthPickerProps) => React.JSX.Element;
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface MonthSelectorProps {
3
- date: Date;
4
- currentMonth: Date;
5
- locale?: string;
6
- onChange: (newDate: Date) => void;
7
- }
8
- export declare const MonthSelector: ({ date, currentMonth, locale, onChange }: MonthSelectorProps) => React.JSX.Element;
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface MonthYearSelectorProps {
3
- date: Date;
4
- currentMonth: Date;
5
- locale?: string;
6
- onChange: (newDate: Date) => void;
7
- }
8
- export declare const MonthYearSelector: ({ date, currentMonth, locale, onChange }: MonthYearSelectorProps) => React.JSX.Element;
@@ -1,15 +0,0 @@
1
- import { default as React } from 'react';
2
- import { NavProps } from 'react-day-picker';
3
- export interface NavbarElementProps extends NavProps {
4
- onTodayClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
5
- }
6
- /**
7
- * Render the custom left & right arrows to change the current month.
8
- */
9
- export declare const NavbarElement: ({ className, onTodayClick }: NavbarElementProps) => React.JSX.Element;
10
- export interface ChevronButtonProps {
11
- isVisible?: boolean;
12
- children: React.ReactElement;
13
- onClick?: () => void;
14
- }
15
- export declare const ChevronButton: ({ isVisible, children, onClick }: ChevronButtonProps) => React.JSX.Element;
@@ -1,25 +0,0 @@
1
- import { default as React } from 'react';
2
- interface DateRange {
3
- from?: Date;
4
- to?: Date;
5
- }
6
- export interface RangeDatePickerProps {
7
- value?: DateRange;
8
- selectedDays?: DateRange;
9
- startMonth: Date;
10
- endMonth: Date;
11
- isDateRangeStyle?: boolean;
12
- shouldShowYearPicker?: boolean;
13
- disabledDays?: ((date: Date) => boolean) | Date[];
14
- modifiers?: Record<string, any>;
15
- locale?: string;
16
- timezoneName?: string;
17
- getDayContent?: (day: number, date: Date) => React.ReactNode;
18
- getTooltip?: (date: Date) => React.ReactNode;
19
- handleDayClick: (day: Date | undefined, options: Record<string, any>, event: React.MouseEvent | React.KeyboardEvent, isStart?: boolean) => void;
20
- handleStartMonthChange: (month: Date) => void;
21
- handleEndMonthChange: (month: Date) => void;
22
- handleTodayClick: (day: Date, options: Record<string, any>, event: React.MouseEvent) => void;
23
- }
24
- declare const RangeDatePicker: ({ value, selectedDays, startMonth, endMonth, isDateRangeStyle, shouldShowYearPicker, disabledDays, modifiers, locale, timezoneName, getDayContent, getTooltip, handleDayClick, handleStartMonthChange, handleEndMonthChange, handleTodayClick, ...rest }: RangeDatePickerProps) => React.JSX.Element;
25
- export default RangeDatePicker;
@@ -1,51 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const rangeOptions: {
3
- readonly YESTERDAY: "P1D,yesterday";
4
- readonly TODAY: "P1D,today";
5
- readonly NEXT_DAY: "P1D,next day";
6
- readonly LAST_WEEK: "P1W,last week";
7
- readonly TRAILING_WEEK: "P1W,-1 week";
8
- readonly THIS_WEEK: "P1W,this week";
9
- readonly NEXT_WEEK: "P1W,next week";
10
- readonly LEADING_WEEK: "P1W,+1 week";
11
- readonly LAST_MONTH: "P1M,first day of last month";
12
- readonly TRAILING_MONTH: "P1M,-1 month";
13
- readonly THIS_MONTH: "P1M,first day of this month";
14
- readonly NEXT_MONTH: "P1M,next month";
15
- readonly LEADING_MONTH: "P1M,+1 month";
16
- readonly LAST_QUARTER: "P3M,first day of last quarter";
17
- readonly TRAILING_QUARTER: "P3M,-3 months";
18
- readonly THIS_QUARTER: "P3M,first day of this quarter";
19
- readonly NEXT_QUARTER: "P3M,next quarter";
20
- readonly LEADING_QUARTER: "P3M,+3 months";
21
- readonly LAST_YEAR: "P1Y,first day of January last year";
22
- readonly TRAILING_YEAR: "P1Y,-1 year";
23
- readonly THIS_YEAR: "P1Y,first day of this year";
24
- readonly NEXT_YEAR: "P1Y,next year";
25
- readonly LEADING_YEAR: "P1Y,+1 year";
26
- };
27
- export declare const rangeLabels: Record<string, string>;
28
- interface RangeOption {
29
- value: string;
30
- label: string;
31
- }
32
- export declare const dateRanges: Record<string, {
33
- label: string;
34
- rangeOptions: RangeOption[];
35
- }>;
36
- interface DateRange {
37
- from: Date;
38
- to: Date;
39
- }
40
- type RangeKey = "day" | "week" | "month" | "quarter" | "year";
41
- export interface RelativeDateRangeProps {
42
- ranges?: RangeKey[];
43
- value?: string;
44
- showApply?: boolean;
45
- isFutureDatesAllowed?: boolean;
46
- timezoneName?: string;
47
- onChange: (rangeName: string, range: DateRange) => void;
48
- onSubmit?: () => void;
49
- }
50
- export declare const RelativeDateRange: ({ ranges, value, showApply, isFutureDatesAllowed, timezoneName, onChange, onSubmit, }: RelativeDateRangeProps) => React.JSX.Element;
51
- export {};
@@ -1,11 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface UpcomingDatePickerProps {
3
- value?: Date | {
4
- from?: Date;
5
- to?: Date;
6
- } | null;
7
- upcomingDates: Date[];
8
- onChange: (day: Date, options: Record<string, any>, event: React.MouseEvent) => void;
9
- onMonthChange: (month: Date) => void;
10
- }
11
- export declare const UpcomingDatePicker: ({ value, upcomingDates, onChange, onMonthChange }: UpcomingDatePickerProps) => React.JSX.Element;
@@ -1,24 +0,0 @@
1
- import { default as React } from 'react';
2
- declare const colors: {
3
- readonly primary: "bg-primary";
4
- readonly secondary: "bg-secondary";
5
- readonly success: "bg-success";
6
- readonly warning: "bg-warning";
7
- readonly danger: "bg-danger";
8
- readonly caution: "bg-caution";
9
- };
10
- declare const sizes: {
11
- readonly small: "h-1 w-1";
12
- readonly medium: "h-1.5 w-1.5";
13
- readonly large: "h-2 w-2";
14
- readonly xlarge: "h-8 w-8";
15
- };
16
- type DotColor = keyof typeof colors;
17
- type DotSize = keyof typeof sizes;
18
- export interface DotProps extends React.HTMLAttributes<HTMLSpanElement> {
19
- color?: DotColor;
20
- size?: DotSize;
21
- className?: string;
22
- }
23
- export declare const Dot: ({ color, size, className, ...rest }: DotProps) => React.JSX.Element;
24
- export {};
@@ -1,6 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface DotProgressProps {
3
- total: number;
4
- current: number;
5
- }
6
- export declare const DotProgress: ({ current, total }: DotProgressProps) => React.JSX.Element | null;
@@ -1,28 +0,0 @@
1
- import { default as React } from 'react';
2
- declare const sizes: {
3
- readonly small: "w-72";
4
- readonly medium: "w-85";
5
- readonly large: "w-110";
6
- readonly xl: "w-200";
7
- readonly "2xl": "w-screen md:max-w-screen-md 2xl:max-w-screen-lg";
8
- };
9
- type DrawerSize = keyof typeof sizes;
10
- type DrawerPosition = "left" | "right";
11
- export interface DrawerProps {
12
- isOpen: boolean;
13
- title?: React.ReactNode;
14
- size?: DrawerSize;
15
- content: React.ReactNode;
16
- sideIndent?: number;
17
- position?: DrawerPosition;
18
- classNames?: {
19
- dialog?: string;
20
- overlay?: string;
21
- dialogContent?: string;
22
- children?: string;
23
- content?: string;
24
- };
25
- onClose: (value: boolean) => void;
26
- }
27
- export declare const Drawer: React.ForwardRefExoticComponent<DrawerProps & React.RefAttributes<HTMLDivElement>>;
28
- export {};
@@ -1,20 +0,0 @@
1
- import { default as React, ElementType } from 'react';
2
- declare const sizes: {
3
- readonly small: "px-3 py-1.5 text-sm leading-sm";
4
- readonly medium: "px-3 py-2.5 text-base leading-base";
5
- readonly large: "px-5 py-3.5 text-md leading-md";
6
- };
7
- type BaseInputSize = keyof typeof sizes;
8
- export interface BaseInputProps {
9
- [key: string]: any;
10
- as?: ElementType;
11
- size?: BaseInputSize;
12
- isError?: boolean;
13
- isRequired?: boolean;
14
- value?: string | number;
15
- prefix?: string;
16
- suffix?: string;
17
- className?: string;
18
- }
19
- export declare const BaseInput: React.ForwardRefExoticComponent<Omit<BaseInputProps & Record<string, any>, "ref"> & React.RefAttributes<HTMLInputElement>>;
20
- export {};
@@ -1,10 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
- label: React.ReactNode;
4
- classNames?: {
5
- checkbox?: string;
6
- label?: string;
7
- };
8
- className?: string;
9
- }
10
- export declare const Checkbox: ({ label, classNames, className, ...rest }: CheckboxProps) => React.JSX.Element;
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- import { Props as SelectProps } from 'react-select';
3
- export interface ComboBoxProps extends SelectProps {
4
- isCreatable?: boolean;
5
- isError?: boolean;
6
- className?: string;
7
- }
8
- export declare const ComboBox: ({ isCreatable, isError, className, ...rest }: ComboBoxProps) => React.JSX.Element;
@@ -1,5 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface FormGroupProps extends React.HTMLAttributes<HTMLDivElement> {
3
- className?: string;
4
- }
5
- export declare const FormGroup: ({ className, ...rest }: FormGroupProps) => React.JSX.Element;
@@ -1,17 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface InlineValuePopoverProps {
3
- text?: React.ReactNode;
4
- isOpen?: boolean;
5
- showArrow?: boolean;
6
- autoSelectOnClick?: boolean;
7
- children?: React.ReactNode;
8
- error?: React.ReactNode | null;
9
- classNames?: {
10
- text?: string;
11
- textField?: string;
12
- children?: string;
13
- };
14
- onClick?: (e: React.MouseEvent) => void;
15
- onClickOutside?: () => void;
16
- }
17
- export declare const InlineValuePopover: ({ text, isOpen, showArrow, autoSelectOnClick, children, error, classNames, onClick, onClickOutside, ...rest }: InlineValuePopoverProps) => React.JSX.Element;
@@ -1,6 +0,0 @@
1
- import { default as React } from 'react';
2
- import { BaseInputProps } from './BaseInput';
3
- export interface InputProps extends BaseInputProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof BaseInputProps> {
4
- type?: string;
5
- }
6
- export declare const Input: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -1,7 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
3
- isDisabled?: boolean;
4
- isError?: boolean;
5
- className?: string;
6
- }
7
- export declare const Label: ({ isDisabled, isError, className, ...rest }: LabelProps) => React.JSX.Element;
@@ -1,33 +0,0 @@
1
- import { default as React } from 'react';
2
- interface TooltipFormatter {
3
- from: (value: number) => number;
4
- to: (value: number) => string;
5
- }
6
- export interface RangeSliderProps {
7
- values: number[];
8
- min: number;
9
- max: number;
10
- isDisabled?: boolean;
11
- shouldConnectHandles?: boolean;
12
- step?: number;
13
- isTooltipEnabled?: boolean;
14
- tooltipCustomFormatter?: TooltipFormatter[] | null;
15
- tooltipSuffix?: string;
16
- className?: string;
17
- onChange?: (values: number[], handle: number) => void;
18
- }
19
- /**
20
- * @param {string?} props.className Class name to apply to the Range slider input.
21
- * @param {number[]} props.values Initial values to be display on the slider input.
22
- * @param {number} props.min Slider Minimum value.
23
- * @param {number} props.max Slider Maximum value.
24
- * @param {boolean?} props.isDisabled To disabled the range slider.
25
- * @param {boolean?} props.shouldConnectHandles To Display colored bars between handles.
26
- * @param {number?} props.step Increament / decrement slider input by this Step count.
27
- * @param {boolean?} props.isTooltipEnabled Show tooltip on slider.
28
- * @param {object[]?} props.tooltipCustomFormatter Custom tooltip formatter.
29
- * @param {string?} props.tooltipSuffix Suffix to be added to the tooltip.
30
- * @param {Function?} props.onChange Debounced callback when range slider is changed.
31
- */
32
- export declare const RangeSlider: ({ values, min, max, isDisabled, shouldConnectHandles, step, isTooltipEnabled, tooltipCustomFormatter, tooltipSuffix, className, onChange, }: RangeSliderProps) => React.JSX.Element;
33
- export {};
@@ -1,5 +0,0 @@
1
- import { default as React } from 'react';
2
- import { BaseInputProps } from './BaseInput';
3
- export interface SelectProps extends BaseInputProps, Omit<React.SelectHTMLAttributes<HTMLSelectElement>, keyof BaseInputProps> {
4
- }
5
- export declare const Select: React.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & React.RefAttributes<HTMLInputElement>>;