@xola/ui-kit 3.0.8 → 3.4.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 (217) hide show
  1. package/README.md +61 -12
  2. package/build/components/Alert.d.ts +18 -0
  3. package/build/components/Alert.js +28 -0
  4. package/build/components/Animation/FadeIn.d.ts +13 -0
  5. package/build/components/Animation/FadeIn.js +29 -0
  6. package/build/components/Animation/SlideDown.d.ts +6 -0
  7. package/build/components/Animation/SlideDown.js +20 -0
  8. package/build/components/Avatar.d.ts +16 -0
  9. package/build/components/Avatar.js +21 -0
  10. package/build/components/Badge.d.ts +27 -0
  11. package/build/components/Badge.js +40 -0
  12. package/build/components/Breadcrumb.d.ts +21 -0
  13. package/build/components/Breadcrumb.js +27 -0
  14. package/build/components/Breakdown.d.ts +63 -0
  15. package/build/components/Breakdown.js +89 -0
  16. package/build/components/Buttons/Button.d.ts +53 -0
  17. package/build/components/Buttons/Button.js +83 -0
  18. package/build/components/Buttons/ButtonGroup.d.ts +35 -0
  19. package/build/components/Buttons/ButtonGroup.js +55 -0
  20. package/build/components/Buttons/SubmitButton.d.ts +11 -0
  21. package/build/components/Buttons/SubmitButton.js +83 -0
  22. package/build/components/Buttons/ToggleButton.d.ts +21 -0
  23. package/build/components/Buttons/ToggleButton.js +34 -0
  24. package/build/components/Charts/BaseChartOptions.d.ts +136 -0
  25. package/build/components/Charts/BaseChartOptions.js +95 -0
  26. package/build/components/Charts/HistogramOptions.d.ts +192 -0
  27. package/build/components/Charts/HistogramOptions.js +69 -0
  28. package/build/components/Charts/PieOptions.d.ts +177 -0
  29. package/build/components/Charts/PieOptions.js +55 -0
  30. package/build/components/Counter.d.ts +5 -0
  31. package/build/components/Counter.js +16 -0
  32. package/build/components/DatePicker/DatePicker.d.ts +41 -0
  33. package/build/components/DatePicker/DatePicker.helpers.d.ts +17 -0
  34. package/build/components/DatePicker/DatePicker.helpers.js +22 -0
  35. package/build/components/DatePicker/DatePicker.js +241 -0
  36. package/build/components/DatePicker/DatePickerPopover.d.ts +29 -0
  37. package/build/components/DatePicker/DatePickerPopover.js +81 -0
  38. package/build/components/DatePicker/Day.d.ts +13 -0
  39. package/build/components/DatePicker/Day.js +40 -0
  40. package/build/components/DatePicker/LocalizedDayPicker.d.ts +6 -0
  41. package/build/components/DatePicker/LocalizedDayPicker.js +20 -0
  42. package/build/components/DatePicker/MonthGrid.d.ts +11 -0
  43. package/build/components/DatePicker/MonthGrid.js +52 -0
  44. package/build/components/DatePicker/MonthPicker.d.ts +7 -0
  45. package/build/components/DatePicker/MonthPicker.js +28 -0
  46. package/build/components/DatePicker/MonthSelector.d.ts +8 -0
  47. package/build/components/DatePicker/MonthSelector.js +47 -0
  48. package/build/components/DatePicker/MonthYearSelector.d.ts +8 -0
  49. package/build/components/DatePicker/MonthYearSelector.js +44 -0
  50. package/build/components/DatePicker/NavbarElement.d.ts +15 -0
  51. package/build/components/DatePicker/NavbarElement.js +43 -0
  52. package/build/components/DatePicker/RangeDatePicker.d.ts +25 -0
  53. package/build/components/DatePicker/RangeDatePicker.js +134 -0
  54. package/build/components/DatePicker/RelativeDateRange.d.ts +51 -0
  55. package/build/components/DatePicker/RelativeDateRange.js +280 -0
  56. package/build/components/DatePicker/UpcomingDatePicker.d.ts +11 -0
  57. package/build/components/DatePicker/UpcomingDatePicker.js +27 -0
  58. package/build/components/Dot/Dot.d.ts +24 -0
  59. package/build/components/Dot/Dot.js +24 -0
  60. package/build/components/Dot/DotProgress.d.ts +6 -0
  61. package/build/components/Dot/DotProgress.js +10 -0
  62. package/build/components/Drawer.d.ts +28 -0
  63. package/build/components/Drawer.js +126 -0
  64. package/build/components/Forms/BaseInput.d.ts +20 -0
  65. package/build/components/Forms/BaseInput.js +41 -0
  66. package/build/components/Forms/Checkbox.d.ts +10 -0
  67. package/build/components/Forms/Checkbox.js +34 -0
  68. package/build/components/Forms/Checkbox.module.css.js +7 -0
  69. package/build/components/Forms/ComboBox.d.ts +8 -0
  70. package/build/components/Forms/ComboBox.js +41 -0
  71. package/build/components/Forms/FormGroup.d.ts +5 -0
  72. package/build/components/Forms/FormGroup.js +6 -0
  73. package/build/components/Forms/InlineValuePopover.d.ts +17 -0
  74. package/build/components/Forms/InlineValuePopover.js +47 -0
  75. package/build/components/Forms/Input.d.ts +6 -0
  76. package/build/components/Forms/Input.js +9 -0
  77. package/build/components/Forms/Label.d.ts +7 -0
  78. package/build/components/Forms/Label.js +17 -0
  79. package/build/components/Forms/RangeSlider.d.ts +33 -0
  80. package/build/components/Forms/RangeSlider.js +39 -0
  81. package/build/components/Forms/Select.d.ts +5 -0
  82. package/build/components/Forms/Select.js +8 -0
  83. package/build/components/Forms/Switch.d.ts +46 -0
  84. package/build/components/Forms/Switch.js +62 -0
  85. package/build/components/Forms/Textarea.d.ts +6 -0
  86. package/build/components/Forms/Textarea.js +35 -0
  87. package/build/components/Forms/ValuePopoverText.d.ts +6 -0
  88. package/build/components/Forms/ValuePopoverText.js +10 -0
  89. package/build/components/GooglePlacesAutocomplete.d.ts +14 -0
  90. package/build/components/HeaderToolbar.d.ts +21 -0
  91. package/build/components/HeaderToolbar.js +33 -0
  92. package/build/components/ImageUpload.d.ts +17 -0
  93. package/build/components/ImageUpload.js +86 -0
  94. package/build/components/Key.d.ts +6 -0
  95. package/build/components/Key.js +28 -0
  96. package/build/components/Logo.d.ts +19 -0
  97. package/build/components/Logo.js +10 -0
  98. package/build/components/Modal.d.ts +52 -0
  99. package/build/components/Modal.js +126 -0
  100. package/build/components/Popover/Popover.d.ts +20 -0
  101. package/build/components/Popover/Popover.js +50 -0
  102. package/build/components/Popover/Popover.module.css.js +7 -0
  103. package/build/components/Popover/PopoverList.d.ts +25 -0
  104. package/build/components/Popover/PopoverList.js +59 -0
  105. package/build/components/Popover/PopoverScroll.module.css.js +4 -0
  106. package/build/components/Provider.d.ts +18 -0
  107. package/build/components/Provider.js +17 -0
  108. package/build/components/Screens/Login.d.ts +25 -0
  109. package/build/components/Screens/Login.js +144 -0
  110. package/build/components/Search.d.ts +16 -0
  111. package/build/components/Search.js +174 -0
  112. package/build/components/Sidebar/Sidebar.Account.d.ts +13 -0
  113. package/build/components/Sidebar/Sidebar.Account.js +56 -0
  114. package/build/components/Sidebar/Sidebar.Button.d.ts +10 -0
  115. package/build/components/Sidebar/Sidebar.Button.js +21 -0
  116. package/build/components/Sidebar/Sidebar.Footer.d.ts +8 -0
  117. package/build/components/Sidebar/Sidebar.Footer.js +9 -0
  118. package/build/components/Sidebar/Sidebar.Heading.d.ts +10 -0
  119. package/build/components/Sidebar/Sidebar.Heading.js +10 -0
  120. package/build/components/Sidebar/Sidebar.Link.d.ts +24 -0
  121. package/build/components/Sidebar/Sidebar.Link.js +56 -0
  122. package/build/components/Sidebar/Sidebar.Menu.d.ts +10 -0
  123. package/build/components/Sidebar/Sidebar.Menu.js +28 -0
  124. package/build/components/Sidebar/Sidebar.Menu.module.css.js +7 -0
  125. package/build/components/Sidebar/Sidebar.d.ts +58 -0
  126. package/build/components/Sidebar/Sidebar.js +218 -0
  127. package/build/components/Sidebar/SidebarScroll.module.css.js +4 -0
  128. package/build/components/Sidebar/index.d.ts +8 -0
  129. package/build/components/Skeleton.d.ts +13 -0
  130. package/build/components/Skeleton.js +29 -0
  131. package/build/components/Skeleton.module.css.js +7 -0
  132. package/build/components/Spinner.d.ts +26 -0
  133. package/build/components/Spinner.js +27 -0
  134. package/build/components/Table.d.ts +59 -0
  135. package/build/components/Table.js +71 -0
  136. package/build/components/Tabs/Tabs.Panel.d.ts +9 -0
  137. package/build/components/Tabs/Tabs.Panel.js +7 -0
  138. package/build/components/Tabs/Tabs.Tab.d.ts +19 -0
  139. package/build/components/Tabs/Tabs.Tab.js +37 -0
  140. package/build/components/Tabs/Tabs.d.ts +27 -0
  141. package/build/components/Tabs/Tabs.js +28 -0
  142. package/build/components/Tabs/index.d.ts +4 -0
  143. package/build/components/Tag.d.ts +25 -0
  144. package/build/components/Tag.js +36 -0
  145. package/build/components/Tooltip.d.ts +8 -0
  146. package/build/components/Tooltip.js +8 -0
  147. package/build/components/Utilities/Currency.d.ts +32 -0
  148. package/build/components/Utilities/Currency.js +49 -0
  149. package/build/components/Utilities/Number.d.ts +8 -0
  150. package/build/components/Utilities/Number.js +15 -0
  151. package/build/components/Utilities/Phone.d.ts +8 -0
  152. package/build/components/Utilities/Phone.js +19 -0
  153. package/build/helpers/avatar.d.ts +1 -0
  154. package/build/helpers/avatar.js +8 -0
  155. package/build/helpers/browser.d.ts +2 -0
  156. package/build/helpers/browser.js +9 -0
  157. package/build/helpers/children.d.ts +3 -0
  158. package/build/helpers/children.js +6 -0
  159. package/build/helpers/classnames.d.ts +5 -0
  160. package/build/helpers/currency.d.ts +2 -0
  161. package/build/helpers/currency.js +11 -0
  162. package/build/helpers/date.d.ts +12 -0
  163. package/build/helpers/date.js +44 -0
  164. package/build/helpers/flash.d.ts +21 -0
  165. package/build/helpers/flash.js +87 -0
  166. package/build/helpers/numbers.d.ts +4 -0
  167. package/build/helpers/numbers.js +23 -0
  168. package/build/helpers/phone.d.ts +11 -0
  169. package/build/helpers/phone.js +25 -0
  170. package/build/hooks/useId.d.ts +1 -0
  171. package/build/hooks/useId.js +9 -0
  172. package/build/hooks/useIsClient.d.ts +1 -0
  173. package/build/hooks/useIsClient.js +10 -0
  174. package/build/hooks/useViewportHeight.d.ts +1 -0
  175. package/build/hooks/useViewportHeight.js +15 -0
  176. package/build/icons/build/AnnounceIcon.js +6 -0
  177. package/build/icons/build/BellIcon.js +23 -0
  178. package/build/icons/build/CalendarIcon.js +15 -0
  179. package/build/icons/build/CheckIcon.js +7 -0
  180. package/build/icons/build/ChevronDownIcon.js +7 -0
  181. package/build/icons/build/ChevronLeftIcon.js +7 -0
  182. package/build/icons/build/ChevronRightIcon.js +7 -0
  183. package/build/icons/build/CircleNotch.js +5 -0
  184. package/build/icons/build/CloseIcon.js +7 -0
  185. package/build/icons/build/DownArrowIcon.js +15 -0
  186. package/build/icons/build/ImageIcon.js +23 -0
  187. package/build/icons/build/SearchIcon.js +15 -0
  188. package/build/icons/build/TrashIcon.js +16 -0
  189. package/build/icons/build/WarningDiamondIcon.js +23 -0
  190. package/build/icons/build/helpers/classnames.js +8 -0
  191. package/build/icons/build/helpers/icon.js +10 -0
  192. package/build/icons/build/helpers/iconSizes.js +13 -0
  193. package/build/icons/build/images/XolaLogoSimple.js +13 -0
  194. package/build/index.d.ts +66 -0
  195. package/build/index.js +142 -0
  196. package/build/theme.d.ts +413 -0
  197. package/build/theme.js +372 -0
  198. package/build/types/index.d.ts +22 -0
  199. package/build/types/migration.d.ts +2 -0
  200. package/build/ui-kit.css +1 -0
  201. package/build/utils/avatar.d.ts +1 -0
  202. package/build/utils/avatar.js +8 -0
  203. package/build/utils/currency.d.ts +2 -0
  204. package/build/utils/currency.js +11 -0
  205. package/build/utils/date.d.ts +12 -0
  206. package/build/utils/date.js +23 -0
  207. package/build/utils/index.d.ts +5 -0
  208. package/build/utils/numbers.d.ts +4 -0
  209. package/build/utils/numbers.js +19 -0
  210. package/build/utils/phone.d.ts +2 -0
  211. package/build/utils/phone.js +17 -0
  212. package/package.json +76 -49
  213. package/postcss.config.js +1 -1
  214. package/tailwind.config.js +28 -8
  215. package/build/style.css +0 -1
  216. package/build/ui-kit.es.js +0 -12173
  217. package/index.d.ts +0 -72
@@ -0,0 +1,192 @@
1
+ /**
2
+ * This is the base Histogram chart. A histogram can be a line, column or a bar view. This is the master file
3
+ * for all defaults for a histogram. This should ideally be extended by business-specific implementations like
4
+ * revenue graph, turnover etc.
5
+ */
6
+ export declare const HistogramOptions: {
7
+ global: {
8
+ useUTC: boolean;
9
+ };
10
+ chart: {
11
+ spacingLeft: number;
12
+ };
13
+ colors: (string | {
14
+ lighter: string;
15
+ light: string;
16
+ DEFAULT: string;
17
+ dark: string;
18
+ darker: string;
19
+ })[];
20
+ xAxis: {
21
+ title: {
22
+ style: {
23
+ color: string;
24
+ fontSize: string;
25
+ fontWeight: number;
26
+ cursor: string;
27
+ textOverflow: string;
28
+ fontFamily: string[];
29
+ } & {
30
+ color: string;
31
+ };
32
+ };
33
+ labels: {
34
+ style: {
35
+ color: string;
36
+ fontSize: string;
37
+ fontWeight: number;
38
+ cursor: string;
39
+ textOverflow: string;
40
+ fontFamily: string[];
41
+ };
42
+ };
43
+ };
44
+ yAxis: {
45
+ title: {
46
+ style: {
47
+ color: string;
48
+ fontSize: string;
49
+ fontWeight: number;
50
+ cursor: string;
51
+ textOverflow: string;
52
+ fontFamily: string[];
53
+ } & {
54
+ color: string;
55
+ };
56
+ };
57
+ labels: {
58
+ style: {
59
+ color: string;
60
+ fontSize: string;
61
+ fontWeight: number;
62
+ cursor: string;
63
+ textOverflow: string;
64
+ fontFamily: string[];
65
+ };
66
+ };
67
+ };
68
+ tooltip: {
69
+ enabled: boolean;
70
+ backgroundColor: string;
71
+ borderColor: string;
72
+ borderRadius: number;
73
+ borderWidth: number;
74
+ valueDecimals: number;
75
+ crosshairs: boolean[];
76
+ shadow: boolean;
77
+ useHTML: boolean;
78
+ style: {
79
+ color: string;
80
+ fontSize: string;
81
+ fontWeight: number;
82
+ cursor: string;
83
+ textOverflow: string;
84
+ fontFamily: string[];
85
+ } & {
86
+ opacity: number;
87
+ color: string;
88
+ };
89
+ };
90
+ title: {
91
+ text: string;
92
+ style: {
93
+ color: string;
94
+ fontSize: string;
95
+ fontWeight: number;
96
+ cursor: string;
97
+ textOverflow: string;
98
+ fontFamily: string[];
99
+ } & {
100
+ color: string;
101
+ fontSize: string;
102
+ fontWeight: number;
103
+ };
104
+ };
105
+ plotOptions: {
106
+ series: {
107
+ marker: {
108
+ enabled: boolean;
109
+ states: {
110
+ hover: {
111
+ enabled: boolean;
112
+ lineWidth: number;
113
+ radius: number;
114
+ };
115
+ };
116
+ };
117
+ };
118
+ };
119
+ legend: {
120
+ enabled: boolean;
121
+ itemStyle: {
122
+ color: string;
123
+ fontSize: string;
124
+ fontWeight: number;
125
+ cursor: string;
126
+ textOverflow: string;
127
+ fontFamily: string[];
128
+ };
129
+ itemMarginBottom: number;
130
+ align: string;
131
+ layout: string;
132
+ borderWidth: number;
133
+ };
134
+ credits: {
135
+ enabled: boolean;
136
+ };
137
+ } & {
138
+ chart: {
139
+ type: string;
140
+ };
141
+ title: {
142
+ align: string;
143
+ margin: number;
144
+ verticalAlign: string;
145
+ };
146
+ xAxis: {
147
+ type: string;
148
+ step: number;
149
+ minTickInterval: number;
150
+ lineColor: string;
151
+ lineWidth: number;
152
+ gridLineWidth: string;
153
+ gridLineColor: string;
154
+ gridLineDashStyle: string;
155
+ };
156
+ yAxis: {
157
+ lineColor: string;
158
+ lineWidth: number;
159
+ gridLineWidth: string;
160
+ gridLineColor: string;
161
+ gridLineDashStyle: string;
162
+ };
163
+ plotOptions: {
164
+ series: {
165
+ marker: {
166
+ enabled: boolean;
167
+ lineWidth: number;
168
+ radius: number;
169
+ states: {
170
+ hover: {
171
+ enabled: boolean;
172
+ lineWidth: number;
173
+ radius: number;
174
+ };
175
+ };
176
+ };
177
+ };
178
+ };
179
+ legend: {
180
+ enabled: boolean;
181
+ itemStyle: {
182
+ fontSize: string;
183
+ color: string;
184
+ textTransform: string;
185
+ fontFamily: string[];
186
+ };
187
+ itemMarginBottom: number;
188
+ align: string;
189
+ layout: string;
190
+ borderWidth: number;
191
+ };
192
+ };
@@ -0,0 +1,69 @@
1
+ import { merge as i } from "lodash-es";
2
+ import { theme as e } from "../../theme.js";
3
+ import { BaseChartOptions as t } from "./BaseChartOptions.js";
4
+ const n = i({}, t, {
5
+ chart: {
6
+ type: "line"
7
+ },
8
+ title: {
9
+ align: "left",
10
+ margin: 20,
11
+ verticalAlign: "top"
12
+ },
13
+ xAxis: {
14
+ type: "datetime",
15
+ // This will convert time into proper dates on the axis
16
+ step: 1,
17
+ minTickInterval: 24 * 3600 * 1e3,
18
+ lineColor: e.colors.gray.darker,
19
+ lineWidth: 1,
20
+ gridLineWidth: "1",
21
+ gridLineColor: "#DEDEDE",
22
+ gridLineDashStyle: "dot"
23
+ },
24
+ yAxis: {
25
+ lineColor: e.colors.gray.darker,
26
+ lineWidth: 1,
27
+ gridLineWidth: "1",
28
+ gridLineColor: "#DEDEDE",
29
+ gridLineDashStyle: "dot"
30
+ },
31
+ plotOptions: {
32
+ series: {
33
+ // Markers are not shown by default, except when you hover
34
+ marker: {
35
+ enabled: !0,
36
+ lineWidth: 1,
37
+ radius: 3,
38
+ states: {
39
+ hover: {
40
+ enabled: !0,
41
+ // Width and radius of the marker when you hover
42
+ lineWidth: 1,
43
+ radius: 4
44
+ }
45
+ }
46
+ }
47
+ }
48
+ },
49
+ legend: {
50
+ // By default legend is disabled
51
+ enabled: !1,
52
+ // The style applied to each item in the legend
53
+ itemStyle: {
54
+ fontSize: "14px",
55
+ color: "#666666",
56
+ textTransform: "capitalize",
57
+ fontFamily: e.extend.fontFamily.sans
58
+ },
59
+ itemMarginBottom: 5,
60
+ align: "center",
61
+ // Center it in the chart canvas
62
+ layout: "vertical",
63
+ // Legend items are shown as a list
64
+ borderWidth: 0
65
+ }
66
+ });
67
+ export {
68
+ n as HistogramOptions
69
+ };
@@ -0,0 +1,177 @@
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
+ };
@@ -0,0 +1,55 @@
1
+ import { merge as t } from "lodash-es";
2
+ import { theme as e } from "../../theme.js";
3
+ import { BaseChartOptions as o } from "./BaseChartOptions.js";
4
+ const a = t({}, o, {
5
+ chart: {
6
+ type: "pie"
7
+ },
8
+ tooltip: {
9
+ pointFormat: "<b>{point.percentage:.1f}%</b>"
10
+ },
11
+ plotOptions: {
12
+ pie: {
13
+ size: 180,
14
+ center: [80, 90],
15
+ allowPointSelect: !0,
16
+ cursor: "pointer",
17
+ dataLabels: {
18
+ enabled: !1
19
+ },
20
+ showInLegend: !0,
21
+ innerSize: 110
22
+ // Donuts. Krispy Kreme 4tw
23
+ }
24
+ },
25
+ legend: {
26
+ enabled: !0,
27
+ maxHeight: 120,
28
+ width: 220,
29
+ navigation: {
30
+ // This is the navigation for the legend. A scrollable list
31
+ activeColor: e.colors.gray.darker,
32
+ animation: "true",
33
+ style: e.extend.fontFamily.sans
34
+ },
35
+ padding: 5,
36
+ backgroundColor: e.colors.white,
37
+ // For debugging
38
+ itemMarginTop: 1,
39
+ itemMarginBottom: 3,
40
+ itemStyle: e.extend.fontFamily.sans,
41
+ style: { overflow: "hidden" },
42
+ align: "left",
43
+ layout: "horizontal",
44
+ verticalAlign: "proximate",
45
+ y: 240
46
+ // To get the legend to show right below the pie
47
+ },
48
+ credits: {
49
+ // Don't show the 'Powered by Highcharts' text
50
+ enabled: !1
51
+ }
52
+ });
53
+ export {
54
+ a as PieOptions
55
+ };
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,16 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import r from "clsx";
3
+ const s = ({ className: e, ...n }) => /* @__PURE__ */ t(
4
+ "span",
5
+ {
6
+ className: r(
7
+ "ui-counter",
8
+ "inline-flex items-center justify-center rounded-full bg-danger-dark px-2 py-1 font-semibold leading-none text-white",
9
+ e
10
+ ),
11
+ ...n
12
+ }
13
+ );
14
+ export {
15
+ s as Counter
16
+ };
@@ -0,0 +1,41 @@
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 {};
@@ -0,0 +1,17 @@
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 {};
@@ -0,0 +1,22 @@
1
+ import { de as n, fr as t, es as e, enGB as a, enUS as o } from "date-fns/locale";
2
+ const l = {
3
+ en: o,
4
+ "en-US": o,
5
+ "en-GB": a,
6
+ es: e,
7
+ "es-ES": e,
8
+ "es-MX": e,
9
+ fr: t,
10
+ de: n
11
+ }, i = async (c) => {
12
+ try {
13
+ return {
14
+ locale: l[c]
15
+ };
16
+ } catch (r) {
17
+ throw console.error("Error: React Day Picker localization error", r), r;
18
+ }
19
+ };
20
+ export {
21
+ i as getLocalizationProps
22
+ };