@quillsql/react 1.1.8 → 1.1.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 (70) hide show
  1. package/example/package-lock.json +754 -1643
  2. package/example/src/App.tsx +2 -1
  3. package/lib/BarList.d.ts +1 -0
  4. package/lib/BarList.js +129 -37
  5. package/lib/BarList.js.map +1 -1
  6. package/lib/Chart.d.ts +3 -3
  7. package/lib/Chart.js +66 -30
  8. package/lib/Chart.js.map +1 -1
  9. package/lib/Context.d.ts +1 -1
  10. package/lib/Dashboard.d.ts +1 -1
  11. package/lib/Dashboard.js +0 -4
  12. package/lib/Dashboard.js.map +1 -1
  13. package/lib/DateRangePicker/Calendar.d.ts +1 -1
  14. package/lib/DateRangePicker/Calendar.js +122 -23
  15. package/lib/DateRangePicker/Calendar.js.map +1 -1
  16. package/lib/DateRangePicker/DateRangePicker.js +5 -6
  17. package/lib/DateRangePicker/DateRangePicker.js.map +1 -1
  18. package/lib/DateRangePicker/DateRangePickerButton.d.ts +1 -1
  19. package/lib/DateRangePicker/DateRangePickerButton.js +101 -17
  20. package/lib/DateRangePicker/DateRangePickerButton.js.map +1 -1
  21. package/lib/DateRangePicker/dateRangePickerUtils.d.ts +1 -2
  22. package/lib/DateRangePicker/dateRangePickerUtils.js +113 -79
  23. package/lib/DateRangePicker/dateRangePickerUtils.js.map +1 -1
  24. package/lib/PieChart.d.ts +3 -3
  25. package/lib/PieChart.js +51 -28
  26. package/lib/PieChart.js.map +1 -1
  27. package/lib/QuillProvider.d.ts +1 -2
  28. package/lib/assets/ArrowDownHeadIcon.d.ts +1 -2
  29. package/lib/assets/ArrowDownIcon.d.ts +1 -2
  30. package/lib/assets/ArrowDownRightIcon.d.ts +1 -2
  31. package/lib/assets/ArrowLeftHeadIcon.d.ts +1 -2
  32. package/lib/assets/ArrowRightHeadIcon.d.ts +1 -2
  33. package/lib/assets/ArrowRightIcon.d.ts +1 -2
  34. package/lib/assets/ArrowUpHeadIcon.d.ts +1 -2
  35. package/lib/assets/ArrowUpIcon.d.ts +1 -2
  36. package/lib/assets/ArrowUpRightIcon.d.ts +1 -2
  37. package/lib/assets/CalendarIcon.d.ts +1 -2
  38. package/lib/assets/DoubleArrowLeftHeadIcon.d.ts +1 -2
  39. package/lib/assets/DoubleArrowRightHeadIcon.d.ts +1 -2
  40. package/lib/assets/ExclamationFilledIcon.d.ts +1 -2
  41. package/lib/assets/LoadingSpinner.d.ts +1 -2
  42. package/lib/assets/SearchIcon.d.ts +1 -2
  43. package/lib/assets/XCircleIcon.d.ts +1 -2
  44. package/lib/components/Dropdown/Dropdown.js +45 -14
  45. package/lib/components/Dropdown/Dropdown.js.map +1 -1
  46. package/lib/components/Dropdown/DropdownItem.d.ts +1 -0
  47. package/lib/components/Dropdown/DropdownItem.js +21 -29
  48. package/lib/components/Dropdown/DropdownItem.js.map +1 -1
  49. package/lib/components/Modal/Modal.d.ts +1 -0
  50. package/lib/components/Modal/Modal.js +47 -9
  51. package/lib/components/Modal/Modal.js.map +1 -1
  52. package/lib/components/selectUtils.d.ts +1 -1
  53. package/lib/components/selectUtils.js +18 -12
  54. package/lib/components/selectUtils.js.map +1 -1
  55. package/package.json +1 -8
  56. package/src/BarList.tsx +193 -96
  57. package/src/Chart.tsx +108 -48
  58. package/src/Dashboard.tsx +10 -10
  59. package/src/DateRangePicker/Calendar.tsx +149 -163
  60. package/src/DateRangePicker/DateRangePicker.tsx +11 -11
  61. package/src/DateRangePicker/DateRangePickerButton.tsx +129 -84
  62. package/src/DateRangePicker/dateRangePickerUtils.tsx +137 -111
  63. package/src/PieChart.tsx +87 -34
  64. package/src/components/Dropdown/Dropdown.tsx +50 -69
  65. package/src/components/Dropdown/DropdownItem.tsx +15 -50
  66. package/src/components/Modal/Modal.tsx +50 -31
  67. package/src/components/selectUtils.ts +19 -18
  68. package/src/styles.css +0 -5
  69. package/postcss.config.js +0 -6
  70. package/tailwind.config.js +0 -23
@@ -1,5 +1,5 @@
1
1
  import React, { Dispatch, SetStateAction, useContext, useState } from 'react';
2
- import { twMerge } from 'tailwind-merge';
2
+ // import { twMerge } from 'tailwind-merge';
3
3
  import {
4
4
  add,
5
5
  eachDayOfInterval,
@@ -21,19 +21,8 @@ import {
21
21
  DoubleArrowRightHeadIcon,
22
22
  } from '../assets';
23
23
 
24
- import {
25
- border,
26
- borderRadius,
27
- boxShadow,
28
- fontSize,
29
- fontWeight,
30
- getColorClassNames,
31
- sizing,
32
- spacing,
33
- } from '../lib';
24
+ import { fontSize, sizing, spacing } from '../lib';
34
25
  import { capitalize, getDateStyles, getWeekdays } from './dateRangePickerUtils';
35
- import { DEFAULT_COLOR, colorPalette } from '../lib/theme';
36
- import { makeDateRangePickerClassName } from './dateRangePickerUtils';
37
26
 
38
27
  export const colStartClasses = [
39
28
  '',
@@ -87,53 +76,49 @@ const CalendarHeader = ({
87
76
 
88
77
  return (
89
78
  <div
90
- className={twMerge(
91
- makeDateRangePickerClassName('calendarHeader'),
92
- 'qq-flex qq-justify-between qq-items-center',
93
- spacing.twoXs.paddingX,
94
- spacing.sm.paddingY
95
- )}
79
+ style={{
80
+ display: 'flex',
81
+ justifyContent: 'space-between',
82
+ alignItems: 'center',
83
+ padding: '0.125rem',
84
+ paddingTop: '0.25rem',
85
+ paddingBottom: '0.25rem',
86
+ }}
96
87
  >
97
88
  <div
98
- className={twMerge(
99
- makeDateRangePickerClassName('calendarHeaderPrevSelection'),
100
- 'qq-flex qq-items-center qq-space-x-1'
101
- )}
89
+ style={{
90
+ display: 'flex',
91
+ alignItems: 'center',
92
+ gap: '0.25rem',
93
+ }}
102
94
  >
103
95
  <button
96
+ type="button"
104
97
  style={{
105
98
  borderStyle: 'solid',
106
- borderBottomWidth: 1,
107
- borderBottomColor: theme?.borderColor || '#E5E7EB',
99
+ borderWidth: 1,
100
+ fontFamily: theme?.fontFamily,
101
+ borderColor: theme?.borderColor || '#E5E7EB',
108
102
  background: theme?.backgroundColor || 'white',
103
+ display: 'inline-flex',
104
+ padding: '0.25rem',
105
+ marginRight: '0.0625rem',
106
+ fontSize: '0.875rem',
107
+ fontWeight: 500,
108
+ borderRadius: '0.25rem',
109
+ boxShadow: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
110
+ outline: enableYearPagination ? 'none' : '2px solid transparent',
111
+ outlineOffset: '2px',
112
+ cursor: 'pointer',
109
113
  }}
110
- type="button"
111
- className={twMerge(
112
- makeDateRangePickerClassName('calendarHeaderPrevYearButton'),
113
- 'qq-inline-flex focus:qq-outline-none focus:qq-ring-2',
114
- !enableYearPagination && 'qq-hidden',
115
- getColorClassNames(DEFAULT_COLOR, colorPalette.canvasBackground)
116
- .hoverBgColor,
117
- getColorClassNames(DEFAULT_COLOR, colorPalette.ring).borderColor,
118
- getColorClassNames('blue', colorPalette.lightRing).focusRingColor,
119
- spacing.twoXs.paddingAll,
120
- spacing.px.marginRight,
121
- fontSize.sm,
122
- fontWeight.md,
123
- borderRadius.sm.all,
124
- border.sm.all,
125
- boxShadow.sm
126
- )}
127
114
  onClick={() => handlePaginationClick('prevYear')}
128
115
  >
129
116
  <DoubleArrowLeftHeadIcon
130
- className={twMerge(
131
- makeDateRangePickerClassName('calendarHeaderPrevYearIcon'),
132
- getColorClassNames(DEFAULT_COLOR, colorPalette.darkText)
133
- .textColor,
134
- sizing.lg.height,
135
- sizing.lg.width
136
- )}
117
+ style={{
118
+ height: '1.25rem',
119
+ width: '1.25rem',
120
+ color: theme?.primaryTextColor || '#364153',
121
+ }}
137
122
  aria-hidden="true"
138
123
  />
139
124
  </button>
@@ -143,53 +128,51 @@ const CalendarHeader = ({
143
128
  borderBottomWidth: 1,
144
129
  borderBottomColor: theme?.borderColor || '#E5E7EB',
145
130
  background: theme?.backgroundColor || 'white',
131
+ borderWidth: 1,
132
+ fontFamily: theme?.fontFamily,
133
+ borderColor: theme?.borderColor || '#E5E7EB',
134
+ display: 'inline-flex',
135
+ padding: '0.25rem',
136
+ marginRight: '0.0625rem',
137
+ fontSize: '0.875rem',
138
+ fontWeight: 500,
139
+ borderRadius: '0.25rem',
140
+ boxShadow: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
141
+ outline: enableYearPagination ? 'none' : '2px solid transparent',
142
+ outlineOffset: '2px',
143
+ cursor: 'pointer',
146
144
  }}
147
145
  type="button"
148
146
  name="prevMonth"
149
- className={twMerge(
150
- makeDateRangePickerClassName('calendarHeaderPrevMonthButton'),
151
- 'qq-inline-flex focus:qq-outline-none focus:qq-ring-2',
152
- getColorClassNames(DEFAULT_COLOR, colorPalette.canvasBackground)
153
- .hoverBgColor,
154
- getColorClassNames(DEFAULT_COLOR, colorPalette.ring).borderColor,
155
- getColorClassNames('blue', colorPalette.lightRing).focusRingColor,
156
- spacing.twoXs.paddingAll,
157
- fontSize.sm,
158
- fontWeight.md,
159
- borderRadius.sm.all,
160
- border.sm.all,
161
- boxShadow.sm
162
- )}
163
147
  onClick={() => handlePaginationClick('prevMonth')}
164
148
  >
165
149
  <ArrowLeftHeadIcon
166
- className={twMerge(
167
- makeDateRangePickerClassName('calendarHeaderPrevMonthIcon'),
168
- getColorClassNames(DEFAULT_COLOR, colorPalette.darkText)
169
- .textColor,
170
- sizing.lg.height,
171
- sizing.lg.width
172
- )}
150
+ style={{
151
+ height: '1.25rem',
152
+ width: '1.25rem',
153
+ color: theme?.primaryTextColor || '#364153',
154
+ }}
173
155
  aria-hidden="true"
174
156
  />
175
157
  </button>
176
158
  </div>
177
159
  <h2
178
- className={twMerge(
179
- makeDateRangePickerClassName('calendarHeaderText'),
180
- 'qq-text-elem',
181
- getColorClassNames(DEFAULT_COLOR, colorPalette.darkestText).textColor,
182
- fontSize.sm,
183
- fontWeight.lg
184
- )}
160
+ style={{
161
+ color: theme?.textColor || '#364153',
162
+ fontSize: '0.875rem',
163
+ fontFamily: theme?.fontFamily,
164
+ fontWeight: '700',
165
+ }}
185
166
  >
186
167
  {displayedTitle}
187
168
  </h2>
188
169
  <div
189
- className={twMerge(
190
- makeDateRangePickerClassName('calendarHeaderNextSelection'),
191
- 'qq-flex qq-items-center qq-space-x-1'
192
- )}
170
+ style={{
171
+ display: 'flex',
172
+ alignItems: 'center',
173
+ marginRight: '0.25rem',
174
+ marginLeft: '0.25rem',
175
+ }}
193
176
  >
194
177
  <button
195
178
  style={{
@@ -197,33 +180,30 @@ const CalendarHeader = ({
197
180
  borderBottomWidth: 1,
198
181
  borderBottomColor: theme?.borderColor || '#E5E7EB',
199
182
  background: theme?.backgroundColor || 'white',
183
+ borderWidth: 1,
184
+ borderColor: theme?.borderColor || '#E5E7EB',
185
+ fontFamily: theme?.fontFamily,
186
+ display: 'inline-flex',
187
+ padding: '0.25rem',
188
+ marginRight: '0.0625rem',
189
+ fontSize: '0.875rem',
190
+ fontWeight: 500,
191
+ borderRadius: '0.25rem',
192
+ boxShadow: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
193
+ outline: enableYearPagination ? 'none' : '2px solid transparent',
194
+ outlineOffset: '2px',
195
+ cursor: 'pointer',
200
196
  }}
201
197
  type="button"
202
198
  name="nextMonth"
203
- className={twMerge(
204
- makeDateRangePickerClassName('calendarHeaderNextMonthButton'),
205
- 'qq-inline-flex focus:qq-outline-none focus:qq-ring-2',
206
- getColorClassNames(DEFAULT_COLOR, colorPalette.canvasBackground)
207
- .hoverBgColor,
208
- getColorClassNames(DEFAULT_COLOR, colorPalette.ring).borderColor,
209
- getColorClassNames('blue', colorPalette.lightRing).focusRingColor,
210
- spacing.twoXs.paddingAll,
211
- fontSize.sm,
212
- fontWeight.md,
213
- borderRadius.sm.all,
214
- border.sm.all,
215
- boxShadow.sm
216
- )}
217
199
  onClick={() => handlePaginationClick('nextMonth')}
218
200
  >
219
201
  <ArrowRightHeadIcon
220
- className={twMerge(
221
- makeDateRangePickerClassName('calendarHeaderNextMonthIcon'),
222
- getColorClassNames(DEFAULT_COLOR, colorPalette.darkText)
223
- .textColor,
224
- sizing.lg.height,
225
- sizing.lg.width
226
- )}
202
+ style={{
203
+ height: '1.25rem',
204
+ width: '1.25rem',
205
+ color: theme?.primaryTextColor || '#364153',
206
+ }}
227
207
  aria-hidden="true"
228
208
  />
229
209
  </button>
@@ -233,35 +213,27 @@ const CalendarHeader = ({
233
213
  borderStyle: 'solid',
234
214
  borderWidth: 1,
235
215
  borderColor: theme?.borderColor || '#E5E7EB',
216
+ display: 'inline-flex',
217
+ padding: '0.25rem',
218
+ marginRight: '0.0625rem',
219
+ fontFamily: theme?.fontFamily,
220
+ fontSize: '0.875rem',
221
+ fontWeight: 500,
222
+ borderRadius: '0.25rem',
223
+ boxShadow: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
224
+ outline: enableYearPagination ? 'none' : '2px solid transparent',
225
+ outlineOffset: '2px',
226
+ cursor: 'pointer',
236
227
  }}
237
228
  type="button"
238
- className={twMerge(
239
- makeDateRangePickerClassName('calendarHeaderNextYearButton'),
240
- 'qq-inline-flex focus:qq-outline-none focus:qq-ring-2',
241
- !enableYearPagination && 'hidden',
242
- getColorClassNames(DEFAULT_COLOR, colorPalette.canvasBackground)
243
- .hoverBgColor,
244
- getColorClassNames(DEFAULT_COLOR, colorPalette.ring).borderColor,
245
- getColorClassNames('blue', colorPalette.lightRing).focusRingColor,
246
- spacing.twoXs.paddingAll,
247
- spacing.px.marginLeft,
248
- fontSize.sm,
249
- fontWeight.md,
250
- borderRadius.sm.all,
251
- border.sm.all,
252
- boxShadow.sm
253
- )}
254
229
  onClick={() => handlePaginationClick('nextYear')}
255
230
  >
256
231
  <DoubleArrowRightHeadIcon
257
- className={twMerge(
258
- makeDateRangePickerClassName('calendarHeaderNextYearIcon'),
259
- 'qq-shrink-0 qq-flex-0',
260
- getColorClassNames(DEFAULT_COLOR, colorPalette.darkText)
261
- .textColor,
262
- sizing.lg.height,
263
- sizing.lg.width
264
- )}
232
+ style={{
233
+ height: '1.25rem',
234
+ width: '1.25rem',
235
+ color: theme?.primaryTextColor || '#364153',
236
+ }}
265
237
  aria-hidden="true"
266
238
  />
267
239
  </button>
@@ -329,21 +301,29 @@ const CalendarBody = ({
329
301
  return (
330
302
  <>
331
303
  <div
332
- className={twMerge(
333
- makeDateRangePickerClassName('calendarBodyWeekdays'),
334
- 'qq-grid qq-grid-cols-7 qq-text-center',
335
- getColorClassNames(DEFAULT_COLOR, colorPalette.ring).textColor,
336
- fontSize.xs,
337
- fontWeight.md
338
- )}
304
+ style={{
305
+ color: theme?.primaryTextColor || '#364153',
306
+ textAlign: 'center',
307
+ fontSize: '0.75rem',
308
+ fontWeight: '500',
309
+ display: 'grid',
310
+ gridTemplateColumns: 'repeat(7, minmax(0, 1fr))',
311
+ }}
339
312
  >
340
313
  {weekdays.map(dayName => (
341
- <div key={dayName} className="qq-w-full qq-flex qq-justify-center">
314
+ <div
315
+ key={dayName}
316
+ style={{ width: '100%', display: 'flex', justifyContent: 'center' }}
317
+ >
342
318
  <div
343
- className={twMerge(
344
- 'qq-flex qq-items-center qq-justify-center qq-w-full',
345
- sizing.threeXl.height
346
- )}
319
+ style={{
320
+ display: 'flex',
321
+ alignItems: 'center',
322
+ justifyContent: 'center',
323
+ width: '100%',
324
+ height: '2.25rem',
325
+ fontFamily: theme?.fontFamily,
326
+ }}
347
327
  >
348
328
  {dayName}
349
329
  </div>
@@ -351,10 +331,11 @@ const CalendarBody = ({
351
331
  ))}
352
332
  </div>
353
333
  <div
354
- className={twMerge(
355
- makeDateRangePickerClassName('calendarBodyDatesGrid'),
356
- 'qq-grid qq-grid-cols-7'
357
- )}
334
+ style={{
335
+ display: 'grid',
336
+ gridTemplateColumns: 'repeat(7, minmax(0, 1fr))',
337
+ paddingBottom: 8,
338
+ }}
358
339
  >
359
340
  {displayedDates.map(date => {
360
341
  const isCurrentDateDisabled = isDateDisabled(
@@ -366,33 +347,31 @@ const CalendarBody = ({
366
347
  );
367
348
 
368
349
  return (
369
- <div
370
- key={date.toString()}
371
- className={twMerge(
372
- makeDateRangePickerClassName('calendarBodyDate'),
373
- colStartClasses[getDay(date)],
374
- 'qq-w-full'
375
- )}
376
- >
350
+ <div key={date.toString()} style={{ width: '100%' }}>
377
351
  <button
378
- style={{ border: 'none' }}
379
- type="button"
380
- onClick={() => onDateClick(date)}
381
- onPointerEnter={() => setHoveredDate?.(date)}
382
- onPointerLeave={() => setHoveredDate?.(undefined)}
383
- className={twMerge(
384
- 'qq-w-full qq-flex qq-items-center qq-justify-center',
385
- sizing.threeXl.height,
386
- fontSize.sm,
387
- getDateStyles(
352
+ style={{
353
+ border: 'none',
354
+ height: '1.5rem',
355
+ display: 'flex',
356
+ width: '100%',
357
+ alignItems: 'center',
358
+ justifyContent: 'center',
359
+ fontFamily: theme?.fontFamily,
360
+ ...getDateStyles(
361
+ theme,
388
362
  date,
389
363
  selectedStartDate,
390
364
  selectedEndDate,
391
365
  hoveredDate,
392
366
  isCurrentDateDisabled,
393
367
  color
394
- )
395
- )}
368
+ ),
369
+ }}
370
+ type="button"
371
+ onClick={() => onDateClick(date)}
372
+ onPointerEnter={() => setHoveredDate?.(date)}
373
+ onPointerLeave={() => setHoveredDate?.(undefined)}
374
+ // className={twMerge(fontSize.sm)}
396
375
  disabled={isCurrentDateDisabled}
397
376
  >
398
377
  <time dateTime={format(date, 'yyyy-MM-dd', { locale })}>
@@ -433,7 +412,14 @@ const Calendar = ({
433
412
  theme,
434
413
  }: CalendarProps) => {
435
414
  return (
436
- <div className={twMerge(spacing.lg.paddingX, spacing.twoXs.paddingY)}>
415
+ <div
416
+ style={{
417
+ paddingLeft: '0.75rem',
418
+ paddingRight: '0.75rem',
419
+ paddingTop: '0.25rem',
420
+ paddingBottom: '0.25rem',
421
+ }}
422
+ >
437
423
  <CalendarHeader
438
424
  enableYearPagination={enableYearPagination}
439
425
  anchorDate={anchorDate}
@@ -1,7 +1,6 @@
1
1
  /* eslint-disable react/display-name */
2
2
  // @ts-nocheck
3
3
  import React, { useRef, useState } from 'react';
4
- import { twMerge } from 'tailwind-merge';
5
4
 
6
5
  import { startOfMonth, startOfToday, sub } from 'date-fns';
7
6
  import { enUS } from 'date-fns/locale';
@@ -18,7 +17,6 @@ import {
18
17
  defaultOptions,
19
18
  getEndDateByDropdownValue,
20
19
  getStartDateByDropdownValue,
21
- makeDateRangePickerClassName,
22
20
  parseEndDate,
23
21
  parseStartDate,
24
22
  } from './dateRangePickerUtils';
@@ -175,11 +173,12 @@ const DateRangePicker = React.forwardRef<HTMLDivElement, DateRangePickerProps>(
175
173
  <BaseColorContext.Provider value={color}>
176
174
  <div
177
175
  ref={ref}
178
- className={twMerge(
179
- makeDateRangePickerClassName('root'),
180
- 'qq-relative qq-w-full',
181
- className
182
- )}
176
+ style={{ position: 'relative', width: '100%' }}
177
+ // className={twMerge(
178
+ // makeDateRangePickerClassName('root'),
179
+ // 'qq-relative qq-w-full',
180
+ // className
181
+ // )}
183
182
  {...other}
184
183
  >
185
184
  <DateRangePickerButton
@@ -202,12 +201,12 @@ const DateRangePicker = React.forwardRef<HTMLDivElement, DateRangePickerProps>(
202
201
  />
203
202
  {/* Calendar Modal */}
204
203
  <Modal
205
- className={makeDateRangePickerClassName('calendarModal')}
204
+ theme={theme}
206
205
  showModal={showCalendar}
207
206
  setShowModal={setShowCalendar}
208
207
  parentRef={calendarRef}
209
208
  width={288}
210
- maxHeight="qq-max-h-fit"
209
+ maxHeight="fit-content"
211
210
  >
212
211
  <Calendar
213
212
  enableYearPagination={enableYearPagination}
@@ -225,10 +224,10 @@ const DateRangePicker = React.forwardRef<HTMLDivElement, DateRangePickerProps>(
225
224
  </Modal>
226
225
  {/* Dropdpown Modal */}
227
226
  <Modal
228
- className={makeDateRangePickerClassName('dropdownModal')}
229
227
  showModal={showDropdown}
230
228
  setShowModal={setShowDropdown}
231
229
  parentRef={dropdownRef}
230
+ theme={theme}
232
231
  >
233
232
  <SelectedValueContext.Provider
234
233
  value={{
@@ -240,12 +239,13 @@ const DateRangePicker = React.forwardRef<HTMLDivElement, DateRangePickerProps>(
240
239
  value={{ hoveredValue: hoveredDropdownValue }}
241
240
  >
242
241
  {dropdownOptions.map(
243
- ({ value, text }: DateRangePickerOption) => (
242
+ ({ value, text }: DateRangePickerOption, index: number) => (
244
243
  <DropdownItem
245
244
  key={value}
246
245
  value={value}
247
246
  text={text}
248
247
  theme={theme}
248
+ lastItem={dropdownOptions.length - 1 === index}
249
249
  />
250
250
  )
251
251
  )}