@quillsql/react 2.13.49 → 2.13.50

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 (91) hide show
  1. package/dist/cjs/Chart.d.ts.map +1 -1
  2. package/dist/cjs/Chart.js +3 -2
  3. package/dist/cjs/ChartBuilder.js +15 -13
  4. package/dist/cjs/Context.d.ts.map +1 -1
  5. package/dist/cjs/Context.js +13 -10
  6. package/dist/cjs/Dashboard.js +2 -2
  7. package/dist/cjs/DateRangePicker/QuillDateRangePicker.d.ts.map +1 -1
  8. package/dist/cjs/DateRangePicker/QuillDateRangePicker.js +32 -11
  9. package/dist/cjs/QuillProvider.d.ts +4 -0
  10. package/dist/cjs/QuillProvider.d.ts.map +1 -1
  11. package/dist/cjs/QuillProvider.js +4 -3
  12. package/dist/cjs/ReportBuilder.d.ts.map +1 -1
  13. package/dist/cjs/ReportBuilder.js +4 -1
  14. package/dist/cjs/SQLEditor.js +2 -2
  15. package/dist/cjs/components/Chart/BarChart.d.ts.map +1 -1
  16. package/dist/cjs/components/Chart/BarChart.js +2 -1
  17. package/dist/cjs/components/Chart/BarList.d.ts.map +1 -1
  18. package/dist/cjs/components/Chart/BarList.js +2 -1
  19. package/dist/cjs/components/Chart/InternalChart.d.ts.map +1 -1
  20. package/dist/cjs/components/Chart/InternalChart.js +2 -1
  21. package/dist/cjs/components/Chart/LineChart.d.ts.map +1 -1
  22. package/dist/cjs/components/Chart/LineChart.js +2 -1
  23. package/dist/cjs/components/Chart/PieChart.d.ts.map +1 -1
  24. package/dist/cjs/components/Chart/PieChart.js +2 -1
  25. package/dist/cjs/components/Dashboard/MetricComponent.d.ts.map +1 -1
  26. package/dist/cjs/components/Dashboard/MetricComponent.js +2 -1
  27. package/dist/cjs/components/QuillMultiSelect.d.ts.map +1 -1
  28. package/dist/cjs/components/QuillMultiSelect.js +15 -9
  29. package/dist/cjs/components/QuillMultiSelectSectionList.d.ts.map +1 -1
  30. package/dist/cjs/components/QuillMultiSelectSectionList.js +20 -12
  31. package/dist/cjs/components/QuillMultiSelectWithCombo.d.ts.map +1 -1
  32. package/dist/cjs/components/QuillMultiSelectWithCombo.js +23 -17
  33. package/dist/cjs/components/QuillSelect.d.ts.map +1 -1
  34. package/dist/cjs/components/QuillSelect.js +12 -9
  35. package/dist/cjs/components/QuillSelectWithCombo.d.ts.map +1 -1
  36. package/dist/cjs/components/QuillSelectWithCombo.js +87 -92
  37. package/dist/cjs/components/QuillTable.d.ts.map +1 -1
  38. package/dist/cjs/components/QuillTable.js +1 -0
  39. package/dist/cjs/components/ReportBuilder/ui.d.ts.map +1 -1
  40. package/dist/cjs/components/ReportBuilder/ui.js +1 -0
  41. package/dist/cjs/components/UiComponents.d.ts +7 -0
  42. package/dist/cjs/components/UiComponents.d.ts.map +1 -1
  43. package/dist/cjs/components/UiComponents.js +92 -5
  44. package/dist/cjs/utils/dataFetcher.d.ts.map +1 -1
  45. package/dist/cjs/utils/dataFetcher.js +0 -1
  46. package/dist/esm/Chart.d.ts.map +1 -1
  47. package/dist/esm/Chart.js +3 -2
  48. package/dist/esm/ChartBuilder.js +15 -13
  49. package/dist/esm/Context.d.ts.map +1 -1
  50. package/dist/esm/Context.js +13 -10
  51. package/dist/esm/Dashboard.js +2 -2
  52. package/dist/esm/DateRangePicker/QuillDateRangePicker.d.ts.map +1 -1
  53. package/dist/esm/DateRangePicker/QuillDateRangePicker.js +32 -11
  54. package/dist/esm/QuillProvider.d.ts +4 -0
  55. package/dist/esm/QuillProvider.d.ts.map +1 -1
  56. package/dist/esm/QuillProvider.js +4 -3
  57. package/dist/esm/ReportBuilder.d.ts.map +1 -1
  58. package/dist/esm/ReportBuilder.js +4 -1
  59. package/dist/esm/SQLEditor.js +2 -2
  60. package/dist/esm/components/Chart/BarChart.d.ts.map +1 -1
  61. package/dist/esm/components/Chart/BarChart.js +2 -1
  62. package/dist/esm/components/Chart/BarList.d.ts.map +1 -1
  63. package/dist/esm/components/Chart/BarList.js +2 -1
  64. package/dist/esm/components/Chart/InternalChart.d.ts.map +1 -1
  65. package/dist/esm/components/Chart/InternalChart.js +2 -1
  66. package/dist/esm/components/Chart/LineChart.d.ts.map +1 -1
  67. package/dist/esm/components/Chart/LineChart.js +2 -1
  68. package/dist/esm/components/Chart/PieChart.d.ts.map +1 -1
  69. package/dist/esm/components/Chart/PieChart.js +2 -1
  70. package/dist/esm/components/Dashboard/MetricComponent.d.ts.map +1 -1
  71. package/dist/esm/components/Dashboard/MetricComponent.js +2 -1
  72. package/dist/esm/components/QuillMultiSelect.d.ts.map +1 -1
  73. package/dist/esm/components/QuillMultiSelect.js +15 -9
  74. package/dist/esm/components/QuillMultiSelectSectionList.d.ts.map +1 -1
  75. package/dist/esm/components/QuillMultiSelectSectionList.js +20 -12
  76. package/dist/esm/components/QuillMultiSelectWithCombo.d.ts.map +1 -1
  77. package/dist/esm/components/QuillMultiSelectWithCombo.js +23 -17
  78. package/dist/esm/components/QuillSelect.d.ts.map +1 -1
  79. package/dist/esm/components/QuillSelect.js +12 -9
  80. package/dist/esm/components/QuillSelectWithCombo.d.ts.map +1 -1
  81. package/dist/esm/components/QuillSelectWithCombo.js +88 -93
  82. package/dist/esm/components/QuillTable.d.ts.map +1 -1
  83. package/dist/esm/components/QuillTable.js +1 -0
  84. package/dist/esm/components/ReportBuilder/ui.d.ts.map +1 -1
  85. package/dist/esm/components/ReportBuilder/ui.js +1 -0
  86. package/dist/esm/components/UiComponents.d.ts +7 -0
  87. package/dist/esm/components/UiComponents.d.ts.map +1 -1
  88. package/dist/esm/components/UiComponents.js +90 -4
  89. package/dist/esm/utils/dataFetcher.d.ts.map +1 -1
  90. package/dist/esm/utils/dataFetcher.js +0 -1
  91. package/package.json +1 -1
@@ -106,7 +106,6 @@ export function QuillMultiSelectSectionList({ options, width, onChange, label, s
106
106
  fontWeight: 600,
107
107
  }, children: label })), _jsxs("button", { style: {
108
108
  fontFamily: theme?.fontFamily,
109
- color: theme?.primaryTextColor,
110
109
  width: '100%',
111
110
  display: 'flex',
112
111
  alignItems: 'center',
@@ -126,8 +125,8 @@ export function QuillMultiSelectSectionList({ options, width, onChange, label, s
126
125
  height: 40,
127
126
  minHeight: 40,
128
127
  maxHeight: 40,
129
- }, className: 'quill-select-button', onClick: () => setShowModal((showModal) => !showModal), disabled: disabled, ref: buttonRef, children: [_jsx("style", { children: ` .quill-select-button { background: ${theme?.backgroundColor}; }
130
- .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; }
128
+ }, className: 'quill-select-button', onClick: () => setShowModal((showModal) => !showModal), disabled: disabled, ref: buttonRef, children: [_jsx("style", { children: ` .quill-select-button { background: ${theme?.backgroundColor}; color: ${theme?.primaryTextColor}; }
129
+ .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; color: ${theme?.hoverTextColor}; }
131
130
  .quill-select-button:disabled {
132
131
  cursor: not-allowed;
133
132
  background: ${theme?.hoverBackgroundColor};
@@ -149,7 +148,7 @@ export function QuillMultiSelectSectionList({ options, width, onChange, label, s
149
148
  borderStyle: 'solid',
150
149
  borderColor: theme?.borderColor,
151
150
  borderRadius: 6,
152
- background: 'white',
151
+ background: theme?.backgroundColor,
153
152
  marginTop: 12,
154
153
  zIndex: 100,
155
154
  padding: 6,
@@ -183,10 +182,10 @@ export function QuillMultiSelectSectionList({ options, width, onChange, label, s
183
182
  overflow: 'hidden',
184
183
  }, children: [_jsx("style", { children: `
185
184
  .quill-option {
186
- background: white;
185
+ background: ${theme?.backgroundColor};
187
186
  }
188
187
  .quill-option:hover {
189
- background: #F4F4F5;
188
+ background: ${theme?.hoverBackgroundColor};
190
189
  }
191
190
  ` }), _jsx("span", { style: {
192
191
  textOverflow: 'ellipsis',
@@ -227,10 +226,12 @@ export function QuillMultiSelectSectionList({ options, width, onChange, label, s
227
226
  debounce(updatedChangeEvent);
228
227
  }, children: [_jsx("style", { children: `
229
228
  .quill-option {
230
- background: white;
229
+ background: ${theme?.backgroundColor};
230
+ color: ${theme?.primaryTextColor};
231
231
  }
232
232
  .quill-option:hover {
233
- background: #F4F4F5;
233
+ background: ${theme?.hoverBackgroundColor};
234
+ color: ${theme?.hoverTextColor};
234
235
  }
235
236
  ` }), _jsx("input", { type: "checkbox", checked: options[key]?.length === value[key]?.length, style: { width: '14px', height: '14px', margin: 'auto 0' }, readOnly: true }), _jsx("span", { style: {
236
237
  textOverflow: 'ellipsis',
@@ -277,10 +278,12 @@ export function QuillMultiSelectSectionList({ options, width, onChange, label, s
277
278
  debounce(updatedChangeEvent);
278
279
  }, children: [_jsx("style", { children: `
279
280
  .quill-option {
280
- background: white;
281
+ background: ${theme?.backgroundColor};
282
+ color: ${theme?.primaryTextColor};
281
283
  }
282
284
  .quill-option:hover {
283
- background: #F4F4F5;
285
+ background: ${theme?.hoverBackgroundColor};
286
+ color: ${theme?.hoverTextColor};
284
287
  }
285
288
  ` }), _jsx("input", { type: "checkbox", checked: value[key]?.includes(option.value) ?? false, style: {
286
289
  width: '14px',
@@ -293,6 +296,7 @@ export function QuillMultiSelectSectionList({ options, width, onChange, label, s
293
296
  }, children: option.label })] }, 'v-' + key + '-' + option.value)))] }, 'sp-' + key)))) : (_jsx("div", { children: _jsx(LoadingSpinner, {}) }))] }))] }));
294
297
  }
295
298
  export const ListboxTextInput = ({ value, onChange, placeholder, }) => {
299
+ const [theme] = useContext(ThemeContext);
296
300
  return (_jsxs("div", { style: {
297
301
  position: 'relative',
298
302
  display: 'flex',
@@ -312,9 +316,13 @@ export const ListboxTextInput = ({ value, onChange, placeholder, }) => {
312
316
  padding-bottom: 0px;
313
317
  box-sizing: content-box;
314
318
  margin-left: 6px;
315
- border: 0 solid #e5e7eb;
319
+ border: 0 solid ${theme?.borderColor ?? '#e5e7eb'};
316
320
  }
317
321
  .quill-text-input:focus {
318
322
  outline: none;
319
- }` }), _jsx("div", { style: { width: 6 } }), _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "rgba(56, 65, 81, 0.7)", height: "16", width: "16", children: _jsx("path", { fillRule: "evenodd", d: "M9.965 11.026a5 5 0 1 1 1.06-1.06l2.755 2.754a.75.75 0 1 1-1.06 1.06l-2.755-2.754ZM10.5 7a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z", clipRule: "evenodd" }) }), _jsx("input", { className: "quill-text-input", type: "text", value: value, onChange: (event) => onChange(event.target.value), placeholder: placeholder })] }));
323
+ }` }), _jsx("div", { style: { width: 6 } }), _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "rgba(56, 65, 81, 0.7)", height: "16", width: "16", children: _jsx("path", { fillRule: "evenodd", d: "M9.965 11.026a5 5 0 1 1 1.06-1.06l2.755 2.754a.75.75 0 1 1-1.06 1.06l-2.755-2.754ZM10.5 7a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z", clipRule: "evenodd" }) }), _jsx("input", { className: "quill-text-input", type: "text", value: value, onChange: (event) => onChange(event.target.value), placeholder: placeholder, style: {
324
+ fontFamily: theme?.fontFamily,
325
+ color: theme?.primaryTextColor,
326
+ background: theme?.backgroundColor,
327
+ } })] }));
320
328
  };
@@ -1 +1 @@
1
- {"version":3,"file":"QuillMultiSelectWithCombo.d.ts","sourceRoot":"","sources":["../../../src/components/QuillMultiSelectWithCombo.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAkB,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAc,EAEZ,aAAa,EAMd,MAAM,OAAO,CAAC;AAKf;;GAEG;AACH,wBAAgB,kCAAkC,CAAC,EACjD,OAAO,EACP,KAAK,EACL,QAAQ,EACR,KAAK,EACL,KAAK,EACL,SAAS,EACT,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,KAAK,GACN,EAAE,yBAAyB,GAAG;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,2CAwmBA;AAED,eAAO,MAAM,gBAAgB,sCAI1B;IACD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;CACrB,4CAwDA,CAAC"}
1
+ {"version":3,"file":"QuillMultiSelectWithCombo.d.ts","sourceRoot":"","sources":["../../../src/components/QuillMultiSelectWithCombo.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAkB,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAc,EAEZ,aAAa,EAMd,MAAM,OAAO,CAAC;AAKf;;GAEG;AACH,wBAAgB,kCAAkC,CAAC,EACjD,OAAO,EACP,KAAK,EACL,QAAQ,EACR,KAAK,EACL,KAAK,EACL,SAAS,EACT,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,KAAK,GACN,EAAE,yBAAyB,GAAG;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,2CAwmBA;AAED,eAAO,MAAM,gBAAgB,sCAI1B;IACD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;CACrB,4CA8DA,CAAC"}
@@ -207,7 +207,6 @@ export function QuillMultiSelectComponentWithCombo({ options, width, onChange, l
207
207
  fontWeight: 600,
208
208
  }, children: label ?? nullLabel })), _jsxs("button", { style: {
209
209
  fontFamily: theme?.fontFamily,
210
- color: theme?.primaryTextColor,
211
210
  width: '100%',
212
211
  display: 'flex',
213
212
  alignItems: 'center',
@@ -227,8 +226,8 @@ export function QuillMultiSelectComponentWithCombo({ options, width, onChange, l
227
226
  height: 40,
228
227
  minHeight: 40,
229
228
  maxHeight: 40,
230
- }, className: 'quill-select-button', onClick: () => setShowModal((showModal) => !showModal), disabled: disabled, ref: buttonRef, children: [_jsx("style", { children: ` .quill-select-button { background: ${theme?.backgroundColor}; }
231
- .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; }
229
+ }, className: 'quill-select-button', onClick: () => setShowModal((showModal) => !showModal), disabled: disabled, ref: buttonRef, children: [_jsx("style", { children: ` .quill-select-button { background: ${theme?.backgroundColor}; color: ${theme?.primaryTextColor}; }
230
+ .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; color: ${theme?.hoverTextColor}; }
232
231
  .quill-select-button:disabled {
233
232
  cursor: not-allowed;
234
233
  background: ${theme?.hoverBackgroundColor};
@@ -241,9 +240,6 @@ export function QuillMultiSelectComponentWithCombo({ options, width, onChange, l
241
240
  textAlign: 'left',
242
241
  zIndex: 1,
243
242
  fontWeight: value?.length || isLoading ? undefined : 300,
244
- color: value?.length || isLoading
245
- ? undefined
246
- : theme?.secondaryTextColor,
247
243
  }, children: selectedOptionsLabel }), _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", "data-slot": "icon", height: 20, width: 20, style: { minHeight: 20, minWidth: 20 }, children: _jsx("path", { fillRule: "evenodd", d: "M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z", clipRule: "evenodd" }) })] }), showModal &&
248
244
  createPortal(_jsxs("div", { style: {
249
245
  position: 'absolute',
@@ -260,7 +256,7 @@ export function QuillMultiSelectComponentWithCombo({ options, width, onChange, l
260
256
  borderStyle: 'solid',
261
257
  borderColor: theme?.borderColor,
262
258
  borderRadius: 6,
263
- background: 'white',
259
+ background: theme?.backgroundColor,
264
260
  marginTop: 12,
265
261
  zIndex: z,
266
262
  padding: 6,
@@ -296,10 +292,12 @@ export function QuillMultiSelectComponentWithCombo({ options, width, onChange, l
296
292
  overflow: 'hidden',
297
293
  }, children: [_jsx("style", { children: `
298
294
  .quill-option {
299
- background: white;
295
+ background: ${theme?.backgroundColor};
296
+ color: ${theme?.primaryTextColor};
300
297
  }
301
298
  .quill-option:hover {
302
- background: #F4F4F5;
299
+ background: ${theme?.hoverBackgroundColor};
300
+ color: ${theme?.hoverTextColor};
303
301
  }
304
302
  ` }), _jsx("span", { style: {
305
303
  textOverflow: 'ellipsis',
@@ -349,10 +347,12 @@ export function QuillMultiSelectComponentWithCombo({ options, width, onChange, l
349
347
  debounce(updatedChangeEvent);
350
348
  }, children: [_jsx("style", { children: `
351
349
  .quill-option {
352
- background: white;
350
+ background: ${theme?.backgroundColor};
351
+ color: ${theme?.primaryTextColor};
353
352
  }
354
353
  .quill-option:hover {
355
- background: #F4F4F5;
354
+ background: ${theme?.hoverBackgroundColor};
355
+ color: ${theme?.hoverTextColor};
356
356
  }
357
357
  ` }), _jsx("input", { ref: selectAllRef, type: "checkbox", checked: selectAllCheckboxState === CheckboxState.SELECTED, style: {
358
358
  width: '14px',
@@ -363,7 +363,6 @@ export function QuillMultiSelectComponentWithCombo({ options, width, onChange, l
363
363
  whiteSpace: 'nowrap',
364
364
  overflow: 'hidden',
365
365
  }, children: _jsx("span", { style: {
366
- color: theme?.secondaryTextColor,
367
366
  fontWeight: 300,
368
367
  }, children: "Select all" }) })] })), filteredItems.map((option) => (_jsxs("button", { style: {
369
368
  display: 'flex',
@@ -420,10 +419,12 @@ export function QuillMultiSelectComponentWithCombo({ options, width, onChange, l
420
419
  debounce(updatedChangeEvent);
421
420
  }, children: [_jsx("style", { children: `
422
421
  .quill-option {
423
- background: white;
422
+ background: ${theme?.backgroundColor};
423
+ color: ${theme?.primaryTextColor};
424
424
  }
425
425
  .quill-option:hover {
426
- background: #F4F4F5;
426
+ background: ${theme?.hoverBackgroundColor};
427
+ color: ${theme?.hoverTextColor};
427
428
  }
428
429
  ` }), _jsx("input", { type: "checkbox", checked: selectedOptions.includes(option.value), style: {
429
430
  width: '14px',
@@ -436,6 +437,7 @@ export function QuillMultiSelectComponentWithCombo({ options, width, onChange, l
436
437
  }, children: option.label ?? nullLabel })] }, option.value)))] })) : isLoading ? (_jsx("div", { children: _jsx(LoadingSpinner, {}) })) : null] }), document.body)] }));
437
438
  }
438
439
  export const ListboxTextInput = ({ value, onChange, placeholder, }) => {
440
+ const [theme] = useContext(ThemeContext);
439
441
  return (_jsxs("div", { style: {
440
442
  position: 'relative',
441
443
  display: 'flex',
@@ -448,16 +450,20 @@ export const ListboxTextInput = ({ value, onChange, placeholder, }) => {
448
450
  height: 40px;
449
451
  width: 145px;
450
452
  z-index: 2;
451
- color: #384151;
453
+ color: ${theme?.primaryTextColor ?? '#384151'};
452
454
  border-radius: 4px;
453
455
  text-align: left;
454
456
  padding-top: 0px;
455
457
  padding-bottom: 0px;
456
458
  box-sizing: content-box;
457
459
  margin-left: 6px;
458
- border: 0 solid #e5e7eb;
460
+ border: 0 solid ${theme?.borderColor ?? '#e5e7eb'};
459
461
  }
460
462
  .quill-text-input:focus {
461
463
  outline: none;
462
- }` }), _jsx("div", { style: { width: 6 } }), _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "rgba(56, 65, 81, 0.7)", height: "16", width: "16", children: _jsx("path", { fillRule: "evenodd", d: "M9.965 11.026a5 5 0 1 1 1.06-1.06l2.755 2.754a.75.75 0 1 1-1.06 1.06l-2.755-2.754ZM10.5 7a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z", clipRule: "evenodd" }) }), _jsx("input", { className: "quill-text-input", type: "text", value: value, onChange: (event) => onChange(event.target.value), placeholder: placeholder })] }));
464
+ }` }), _jsx("div", { style: { width: 6 } }), _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "rgba(56, 65, 81, 0.7)", height: "16", width: "16", children: _jsx("path", { fillRule: "evenodd", d: "M9.965 11.026a5 5 0 1 1 1.06-1.06l2.755 2.754a.75.75 0 1 1-1.06 1.06l-2.755-2.754ZM10.5 7a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z", clipRule: "evenodd" }) }), _jsx("input", { className: "quill-text-input", type: "text", value: value, onChange: (event) => onChange(event.target.value), placeholder: placeholder, style: {
465
+ fontFamily: theme?.fontFamily,
466
+ color: theme?.primaryTextColor,
467
+ background: theme?.backgroundColor,
468
+ } })] }));
463
469
  };
@@ -1 +1 @@
1
- {"version":3,"file":"QuillSelect.d.ts","sourceRoot":"","sources":["../../../src/components/QuillSelect.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAkB,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAatE;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,KAAK,EACL,KAAK,EACL,QAAQ,EACR,KAAK,EACL,SAAS,EACT,QAAQ,EACR,eAAe,GAChB,EAAE,oBAAoB,2CA2TtB"}
1
+ {"version":3,"file":"QuillSelect.d.ts","sourceRoot":"","sources":["../../../src/components/QuillSelect.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAkB,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAatE;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,KAAK,EACL,KAAK,EACL,QAAQ,EACR,KAAK,EACL,SAAS,EACT,QAAQ,EACR,eAAe,GAChB,EAAE,oBAAoB,2CA0TtB"}
@@ -92,7 +92,6 @@ export function QuillSelectComponent({ options, value, width, onChange, label, i
92
92
  fontWeight: 600,
93
93
  }, children: label ?? nullLabel })), _jsxs("button", { style: {
94
94
  fontFamily: theme?.fontFamily,
95
- color: theme?.primaryTextColor,
96
95
  width: '100%',
97
96
  display: 'flex',
98
97
  alignItems: 'center',
@@ -112,8 +111,8 @@ export function QuillSelectComponent({ options, value, width, onChange, label, i
112
111
  minHeight: 40,
113
112
  maxHeight: 40,
114
113
  }, className: "quill-select-button", onClick: () => setShowModal((showModal) => !showModal), disabled: disabled, ref: buttonRef, children: [_jsx("style", { children: `
115
- .quill-select-button { background: ${theme?.backgroundColor}; }
116
- .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; }
114
+ .quill-select-button { background: ${theme?.backgroundColor}; color: ${theme?.primaryTextColor}; }
115
+ .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; color: ${theme?.hoverTextColor}; }
117
116
  .quill-select-button:disabled, {
118
117
  background: ${theme?.hoverBackgroundColor};
119
118
  cursor: not-allowed;
@@ -140,7 +139,7 @@ export function QuillSelectComponent({ options, value, width, onChange, label, i
140
139
  borderStyle: 'solid',
141
140
  borderColor: theme?.borderColor,
142
141
  borderRadius: 6,
143
- background: 'white',
142
+ background: theme?.backgroundColor,
144
143
  marginTop: 12,
145
144
  zIndex: z,
146
145
  padding: 6,
@@ -171,12 +170,14 @@ export function QuillSelectComponent({ options, value, width, onChange, label, i
171
170
  setShowModal(false);
172
171
  }, disabled: disabled, children: [_jsx("style", { children: `
173
172
  .quill-option {
174
- background: white;
173
+ background: ${theme?.backgroundColor};
174
+ color: ${theme?.secondaryTextColor};
175
175
  }
176
176
  .quill-option:hover {
177
- background: #F4F4F5;
177
+ background: ${theme?.hoverBackgroundColor};
178
+ color: ${theme?.hoverTextColor};
178
179
  }
179
- ` }), _jsx("span", { style: { color: theme?.secondaryTextColor, fontWeight: 300 }, children: "Select" })] })), !isLoading ? (options.map((option) => (_jsxs("button", { style: {
180
+ ` }), _jsx("span", { style: { fontWeight: 300 }, children: "Select" })] })), !isLoading ? (options.map((option) => (_jsxs("button", { style: {
180
181
  display: 'flex',
181
182
  alignItems: 'center',
182
183
  justifyContent: 'space-between',
@@ -200,10 +201,12 @@ export function QuillSelectComponent({ options, value, width, onChange, label, i
200
201
  setShowModal(false);
201
202
  }, disabled: disabled, children: [_jsx("style", { children: `
202
203
  .quill-option {
203
- background: white;
204
+ background: ${theme?.backgroundColor};
205
+ color: ${theme?.primaryTextColor};
204
206
  }
205
207
  .quill-option:hover {
206
- background: #F4F4F5;
208
+ background: ${theme?.hoverBackgroundColor};
209
+ color: ${theme?.hoverTextColor};
207
210
  }
208
211
  ` }), _jsx("span", { style: {
209
212
  textOverflow: 'ellipsis',
@@ -1 +1 @@
1
- {"version":3,"file":"QuillSelectWithCombo.d.ts","sourceRoot":"","sources":["../../../src/components/QuillSelectWithCombo.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkB,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAWtE;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,EAC5C,OAAO,EACP,KAAK,EACL,KAAK,EACL,QAAQ,EACR,KAAK,EACL,SAAS,EACT,eAAe,EACf,QAAQ,GACT,EAAE,oBAAoB,2CAkUtB"}
1
+ {"version":3,"file":"QuillSelectWithCombo.d.ts","sourceRoot":"","sources":["../../../src/components/QuillSelectWithCombo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;AAWxB;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,EAC5C,OAAO,EACP,KAAK,EACL,KAAK,EACL,QAAQ,EACR,KAAK,EACL,SAAS,EACT,eAAe,EACf,QAAQ,GACT,EAAE,oBAAoB,2CA0TtB"}
@@ -1,6 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useOnClickOutside } from '../hooks';
3
- import { LoadingSpinner } from './UiComponents';
2
+ import { LoadingSpinner, QuillPortal, } from './UiComponents';
4
3
  import React, { useContext, useMemo, useRef, useState, } from 'react';
5
4
  import { ThemeContext } from '../Context';
6
5
  import { ListboxTextInput } from './QuillMultiSelectWithCombo';
@@ -71,10 +70,6 @@ export function QuillSelectComponentWithCombo({ options, value, width, onChange,
71
70
  ? nullLabel
72
71
  : (selectedOption?.label ?? 'Select');
73
72
  }, [value, options, nullLabel]);
74
- useOnClickOutside(modalRef, (event) => {
75
- if (!buttonRef.current?.contains(event.target))
76
- setShowModal(false);
77
- }, showModal);
78
73
  return (_jsxs("div", { style: {
79
74
  position: 'relative',
80
75
  // width: 200,
@@ -90,7 +85,6 @@ export function QuillSelectComponentWithCombo({ options, value, width, onChange,
90
85
  fontWeight: 600,
91
86
  }, children: label })), _jsxs("button", { style: {
92
87
  fontFamily: theme?.fontFamily,
93
- color: theme?.primaryTextColor,
94
88
  width: '100%',
95
89
  display: 'flex',
96
90
  alignItems: 'center',
@@ -110,8 +104,8 @@ export function QuillSelectComponentWithCombo({ options, value, width, onChange,
110
104
  minHeight: 40,
111
105
  maxHeight: 40,
112
106
  }, className: 'quill-select-button', onClick: () => setShowModal((showModal) => !showModal), disabled: disabled, ref: buttonRef, children: [_jsx("style", { children: `
113
- .quill-select-button { background: ${theme?.backgroundColor}; }
114
- .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; }
107
+ .quill-select-button { background: ${theme?.backgroundColor}; color: ${theme?.primaryTextColor}; }
108
+ .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; color: ${theme?.hoverTextColor}; }
115
109
  .quill-select-button:disabled {
116
110
  cursor: not-allowed;
117
111
  background: ${theme?.hoverBackgroundColor};
@@ -122,97 +116,98 @@ export function QuillSelectComponentWithCombo({ options, value, width, onChange,
122
116
  whiteSpace: 'nowrap',
123
117
  overflow: 'hidden',
124
118
  fontWeight: value?.length || isLoading ? undefined : 300,
125
- color: value?.length || isLoading
126
- ? undefined
127
- : theme?.secondaryTextColor,
128
- }, children: selectedLabel }), _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", "data-slot": "icon", height: 20, width: 20, style: { minHeight: 20, minWidth: 20 }, children: _jsx("path", { fillRule: "evenodd", d: "M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z", clipRule: "evenodd" }) })] }), showModal && (_jsxs("div", { style: {
129
- position: 'absolute',
130
- width: '100%',
131
- display: 'flex',
132
- flexDirection: 'column',
133
- boxSizing: 'border-box',
134
- borderWidth: 1,
135
- borderStyle: 'solid',
136
- borderColor: theme?.borderColor,
137
- borderRadius: 6,
138
- background: 'white',
139
- marginTop: 12,
140
- zIndex: 100,
141
- paddingTop: 6,
142
- paddingBottom: 6,
143
- paddingLeft: 6,
144
- paddingRight: 6,
145
- fontFamily: theme?.fontFamily,
146
- maxHeight: '50vh',
147
- overflow: 'scroll',
148
- fontSize: 14,
149
- }, ref: modalRef, children: [options && options.length > 20 && !isLoading && (_jsx(ListboxTextInput, { value: searchQuery, placeholder: "Search", onChange: (value) => {
150
- setSearchQuery(value);
151
- } })), searchQuery === '' &&
152
- !isLoading &&
153
- (!hideEmptyOption || !options.length) && (_jsxs("button", { style: {
154
- display: 'flex',
155
- alignItems: 'center',
156
- justifyContent: 'space-between',
157
- padding: '8px 8px',
158
- margin: 0,
159
- boxSizing: 'border-box',
160
- borderWidth: 0,
161
- fontSize: 14,
162
- borderStyle: 'solid',
163
- borderColor: theme?.borderColor,
164
- borderRadius: 4,
165
- fontFamily: theme?.fontFamily,
166
- textOverflow: 'ellipsis',
167
- whiteSpace: 'nowrap',
168
- overflow: 'hidden',
169
- height: 34,
170
- minHeight: 34,
171
- }, className: "quill-option", onClick: () => {
172
- // Manually create a synthetic ChangeEvent and pass it to callback
173
- const changeEvent = { target: { value: undefined } };
174
- onChange(changeEvent);
175
- setShowModal(false);
176
- }, children: [_jsx("style", { children: `
119
+ }, children: selectedLabel }), _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", "data-slot": "icon", height: 20, width: 20, style: { minHeight: 20, minWidth: 20 }, children: _jsx("path", { fillRule: "evenodd", d: "M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z", clipRule: "evenodd" }) })] }), showModal && (_jsx(QuillPortal, { anchorRef: buttonRef, showModal: showModal, setShowModal: setShowModal, children: _jsxs("div", { style: {
120
+ position: 'absolute',
121
+ width: '100%',
122
+ display: 'flex',
123
+ flexDirection: 'column',
124
+ boxSizing: 'border-box',
125
+ borderWidth: 1,
126
+ borderStyle: 'solid',
127
+ borderColor: theme?.borderColor,
128
+ borderRadius: 6,
129
+ background: theme?.backgroundColor,
130
+ marginTop: 12,
131
+ zIndex: 100,
132
+ paddingTop: 6,
133
+ paddingBottom: 6,
134
+ paddingLeft: 6,
135
+ paddingRight: 6,
136
+ fontFamily: theme?.fontFamily,
137
+ maxHeight: '50vh',
138
+ overflow: 'scroll',
139
+ fontSize: 14,
140
+ }, ref: modalRef, children: [options && options.length > 20 && !isLoading && (_jsx(ListboxTextInput, { value: searchQuery, placeholder: "Search", onChange: (value) => {
141
+ setSearchQuery(value);
142
+ } })), searchQuery === '' &&
143
+ !isLoading &&
144
+ (!hideEmptyOption || !options.length) && (_jsxs("button", { style: {
145
+ display: 'flex',
146
+ alignItems: 'center',
147
+ justifyContent: 'space-between',
148
+ padding: '8px 8px',
149
+ margin: 0,
150
+ boxSizing: 'border-box',
151
+ borderWidth: 0,
152
+ fontSize: 14,
153
+ borderStyle: 'solid',
154
+ borderColor: theme?.borderColor,
155
+ borderRadius: 4,
156
+ fontFamily: theme?.fontFamily,
157
+ textOverflow: 'ellipsis',
158
+ whiteSpace: 'nowrap',
159
+ overflow: 'hidden',
160
+ height: 34,
161
+ minHeight: 34,
162
+ }, className: "quill-option", onClick: () => {
163
+ // Manually create a synthetic ChangeEvent and pass it to callback
164
+ const changeEvent = { target: { value: undefined } };
165
+ onChange(changeEvent);
166
+ setShowModal(false);
167
+ }, children: [_jsx("style", { children: `
177
168
  .quill-option {
178
- background: white;
169
+ background: ${theme?.backgroundColor};
170
+ color: ${theme?.secondaryTextColor};
179
171
  }
180
172
  .quill-option:hover {
181
- background: #F4F4F5;
173
+ background: ${theme?.hoverBackgroundColor};
174
+ color: ${theme?.hoverTextColor};
182
175
  }
183
- ` }), _jsx("span", { style: { color: theme?.secondaryTextColor, fontWeight: 300 }, children: "Select" })] })), !isLoading ? (filteredItems.map((option) => (_jsxs("button", { style: {
184
- display: 'flex',
185
- alignItems: 'center',
186
- justifyContent: 'space-between',
187
- padding: '8px 8px',
188
- margin: 0,
189
- boxSizing: 'border-box',
190
- borderWidth: 0,
191
- fontSize: 14,
192
- borderStyle: 'solid',
193
- borderColor: theme?.borderColor,
194
- borderRadius: 4,
195
- fontFamily: theme?.fontFamily,
196
- textOverflow: 'ellipsis',
197
- whiteSpace: 'nowrap',
198
- height: 34,
199
- minHeight: 34,
200
- overflow: 'hidden',
201
- }, className: "quill-option", onClick: () => {
202
- // Manually create a synthetic ChangeEvent and pass it to callback
203
- const changeEvent = { target: { value: option.value } };
204
- onChange(changeEvent);
205
- setShowModal(false);
206
- }, children: [_jsx("style", { children: `
176
+ ` }), _jsx("span", { style: { fontWeight: 300 }, children: "Select" })] })), !isLoading ? (filteredItems.map((option) => (_jsxs("button", { style: {
177
+ display: 'flex',
178
+ alignItems: 'center',
179
+ justifyContent: 'space-between',
180
+ padding: '8px 8px',
181
+ margin: 0,
182
+ boxSizing: 'border-box',
183
+ borderWidth: 0,
184
+ fontSize: 14,
185
+ borderStyle: 'solid',
186
+ borderColor: theme?.borderColor,
187
+ borderRadius: 4,
188
+ fontFamily: theme?.fontFamily,
189
+ textOverflow: 'ellipsis',
190
+ whiteSpace: 'nowrap',
191
+ height: 34,
192
+ minHeight: 34,
193
+ overflow: 'hidden',
194
+ }, className: "quill-option", onClick: () => {
195
+ // Manually create a synthetic ChangeEvent and pass it to callback
196
+ const changeEvent = { target: { value: option.value } };
197
+ onChange(changeEvent);
198
+ setShowModal(false);
199
+ }, children: [_jsx("style", { children: `
207
200
  .quill-option {
208
- background: white;
201
+ background: ${theme?.backgroundColor};
202
+ color: ${theme?.primaryTextColor};
209
203
  }
210
204
  .quill-option:hover {
211
- background: #F4F4F5;
205
+ background: ${theme?.hoverBackgroundColor};
206
+ color: ${theme?.hoverTextColor};
212
207
  }
213
208
  ` }), _jsx("span", { style: {
214
- textOverflow: 'ellipsis',
215
- whiteSpace: 'nowrap',
216
- overflow: 'hidden',
217
- }, children: option.label ?? nullLabel })] }, option.value)))) : (_jsx(LoadingSpinner, {}))] }))] }));
209
+ textOverflow: 'ellipsis',
210
+ whiteSpace: 'nowrap',
211
+ overflow: 'hidden',
212
+ }, children: option.label ?? nullLabel })] }, option.value)))) : (_jsx(LoadingSpinner, {}))] }) }))] }));
218
213
  }
@@ -1 +1 @@
1
- {"version":3,"file":"QuillTable.d.ts","sourceRoot":"","sources":["../../../src/components/QuillTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAG/D,OAAO,EAAE,oBAAoB,EAAyB,MAAM,gBAAgB,CAAC;AAE7E,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,GAAG,CAAC,OAAO,CAAC;IACrC,0BAA0B,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,GAAG,CAAC,OAAO,CAAC;IAC1E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAA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AAK,CAAC,aAAa,CAAC;IACrC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,GAAG,CAAC,OAAO,CAAC;IACrC,0BAA0B,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,GAAG,CAAC,OAAO,CAAC;IAC1E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CACrE;AAED,UAAU,wBAAyB,SAAQ,mBAAmB;IAC5D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,IAAI,EACJ,QAAQ,EACR,iBAAiB,EACjB,OAAO,EACP,SAAS,EACT,WAAW,EACX,IAAI,EACJ,qBAA4B,EAC5B,cAAc,EACd,SAAS,EACT,gBAAwC,EACxC,WAAgB,EAChB,eAA8B,EAC9B,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,WAAW,GACZ,EAAE,wBAAwB,2CA+e1B"}
@@ -192,6 +192,7 @@ export default function QuillTable({ rows, rowCount, rowCountIsLoading, columns,
192
192
  justifyContent: 'center',
193
193
  alignItems: 'center',
194
194
  fontSize: 13,
195
+ fontFamily: theme?.fontFamily,
195
196
  color: theme?.secondaryTextColor || 'rgb(55, 65, 81)',
196
197
  position: 'absolute',
197
198
  width: '100%',
@@ -1 +1 @@
1
- {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../../../src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4CAsBL,CAAC;AAEF,MAAM,WAAW,yBAAyB;IACxC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,MAAM,EAAE,cAAc,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,EAAE,GAAG,CAAC;IACxB,WAAW,EAAE,GAAG,CAAC;IACjB,cAAc,EAAE,mBAAmB,CAAC;IACpC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,YAAY,CAAC,EAAE,cAAc,EAAE,CAAC;IAChC,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC9B,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,qBAAqB,CAAC,EAAE,GAAG,CAAC;IAC5B,eAAe,EAAE,GAAG,CAAC;IACrB,wBAAwB,EAAE,GAAG,CAAC;IAC9B,eAAe,EAAE,GAAG,CAAC;IACrB,kBAAkB,EAAE,GAAG,CAAC;IACxB,oBAAoB,EAAE,GAAG,CAAC;IAC1B,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,gBAAgB,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;CACjC;AAED,eAAO,MAAM,oBAAoB,8XAyB9B,yBAAyB,4CA2G3B,CAAC"}
@@ -115,6 +115,7 @@ export const QuillSidebar = ({ children }) => (_jsx("div", { style: {
115
115
  flexDirection: 'column',
116
116
  gap: 28,
117
117
  alignItems: 'flex-start',
118
+ // overflowY: 'scroll',
118
119
  }, children: children }));
119
120
  // A big wrapper around the main content (ie. Input, Button, and Table)
120
121
  export const CustomContainer = ({ children }) => (_jsx("div", { style: {
@@ -233,4 +233,11 @@ export declare const QuillToolTip: ({ children, text, enabled, containerStyle, t
233
233
  displayBelow?: boolean;
234
234
  }) => string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
235
235
  export declare const QuillChartBuilderCheckboxComponent: ({ isChecked, label, onChange, disabled, containerStyle, }: CheckboxComponentProps) => import("react/jsx-runtime").JSX.Element;
236
+ export declare const QuillPortal: ({ children, containerStyle, anchorRef, showModal, setShowModal, }: {
237
+ children: ReactNode;
238
+ containerStyle?: CSSProperties;
239
+ anchorRef: React.RefObject<HTMLElement>;
240
+ showModal: boolean;
241
+ setShowModal: (showModal: boolean) => void;
242
+ }) => React.ReactPortal;
236
243
  //# sourceMappingURL=UiComponents.d.ts.map