@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
@@ -69,11 +69,12 @@ function QuillMetricComponent({ report, onClick, error, isLoading, children, })
69
69
  report.rows[0][report.xAxisField] === null ? ((0, jsx_runtime_1.jsx)("div", { style: {
70
70
  display: 'flex',
71
71
  flex: '1 0 auto',
72
- height: '100%',
72
+ // height: '100%',
73
73
  margin: 'auto',
74
74
  justifyContent: 'center',
75
75
  alignItems: 'center',
76
76
  fontSize: 13,
77
+ fontFamily: theme?.fontFamily,
77
78
  color: theme?.secondaryTextColor,
78
79
  maxWidth: '100%',
79
80
  width: '100%',
@@ -1 +1 @@
1
- {"version":3,"file":"QuillMultiSelect.d.ts","sourceRoot":"","sources":["../../../src/components/QuillMultiSelect.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkB,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAiC3E;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,OAAO,EACP,KAAK,EACL,QAAQ,EACR,KAAK,EACL,KAAK,EACL,SAAS,GACV,EAAE,yBAAyB,2CAgP3B;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,4CAyDA,CAAC"}
1
+ {"version":3,"file":"QuillMultiSelect.d.ts","sourceRoot":"","sources":["../../../src/components/QuillMultiSelect.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkB,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAiC3E;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,OAAO,EACP,KAAK,EACL,QAAQ,EACR,KAAK,EACL,KAAK,EACL,SAAS,GACV,EAAE,yBAAyB,2CAiP3B;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"}
@@ -80,7 +80,6 @@ function QuillMultiSelectComponent({ options, width, onChange, label, value, isL
80
80
  fontWeight: 600,
81
81
  }, children: label })), (0, jsx_runtime_1.jsxs)("button", { style: {
82
82
  fontFamily: theme?.fontFamily,
83
- color: theme?.primaryTextColor,
84
83
  width: '100%',
85
84
  display: 'flex',
86
85
  alignItems: 'center',
@@ -100,8 +99,8 @@ function QuillMultiSelectComponent({ options, width, onChange, label, value, isL
100
99
  height: 40,
101
100
  minHeight: 40,
102
101
  maxHeight: 40,
103
- }, className: "quill-select-button", onClick: () => setShowModal((showModal) => !showModal), ref: buttonRef, children: [(0, jsx_runtime_1.jsx)("style", { children: ` .quill-select-button { background: ${theme?.backgroundColor}; }
104
- .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; }
102
+ }, className: "quill-select-button", onClick: () => setShowModal((showModal) => !showModal), ref: buttonRef, children: [(0, jsx_runtime_1.jsx)("style", { children: ` .quill-select-button { background: ${theme?.backgroundColor}; color: ${theme?.primaryTextColor}; }
103
+ .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; color: ${theme?.hoverTextColor}; }
105
104
  ` }), (0, jsx_runtime_1.jsx)("span", { style: {
106
105
  textOverflow: 'ellipsis',
107
106
  whiteSpace: 'nowrap',
@@ -119,7 +118,7 @@ function QuillMultiSelectComponent({ options, width, onChange, label, value, isL
119
118
  borderStyle: 'solid',
120
119
  borderColor: theme?.borderColor,
121
120
  borderRadius: 6,
122
- background: 'white',
121
+ background: theme?.backgroundColor,
123
122
  marginTop: 12,
124
123
  zIndex: 100,
125
124
  padding: 6,
@@ -165,10 +164,12 @@ function QuillMultiSelectComponent({ options, width, onChange, label, value, isL
165
164
  debounce(updatedChangeEvent);
166
165
  }, children: [(0, jsx_runtime_1.jsx)("style", { children: `
167
166
  .quill-option {
168
- background: white;
167
+ background: ${theme?.backgroundColor};
168
+ color: ${theme?.primaryTextColor};
169
169
  }
170
170
  .quill-option:hover {
171
- background: #F4F4F5;
171
+ background: ${theme?.hoverBackgroundColor};
172
+ color: ${theme?.hoverTextColor};
172
173
  }
173
174
  ` }), (0, jsx_runtime_1.jsx)("input", { type: "checkbox", checked: selectedOptions.includes(option.value), style: { width: '14px', height: '14px', margin: 'auto 0' }, readOnly: true }), (0, jsx_runtime_1.jsx)("span", { style: {
174
175
  textOverflow: 'ellipsis',
@@ -177,6 +178,7 @@ function QuillMultiSelectComponent({ options, width, onChange, label, value, isL
177
178
  }, children: option.label ?? nullLabel })] }, option.value)))) : ((0, jsx_runtime_1.jsx)(UiComponents_1.LoadingSpinner, {})) }))] }));
178
179
  }
179
180
  const ListboxTextInput = ({ value, onChange, placeholder, }) => {
181
+ const [theme] = (0, react_1.useContext)(Context_1.ThemeContext);
180
182
  return ((0, jsx_runtime_1.jsxs)("div", { style: {
181
183
  position: 'relative',
182
184
  display: 'flex',
@@ -189,7 +191,7 @@ const ListboxTextInput = ({ value, onChange, placeholder, }) => {
189
191
  height: 40px;
190
192
  width: 180px;
191
193
  z-index: 2;
192
- color: #384151;
194
+ color: ${theme?.primaryTextColor ?? '#384151'};
193
195
  border-radius: 4px;
194
196
  text-align: left;
195
197
  padding-right: 12px;
@@ -197,10 +199,14 @@ const ListboxTextInput = ({ value, onChange, placeholder, }) => {
197
199
  padding-bottom: 0px;
198
200
  box-sizing: content-box;
199
201
  margin-left: 6px;
200
- border: 0 solid #e5e7eb;
202
+ border: 0 solid ${theme?.borderColor ?? '#e5e7eb'};
201
203
  }
202
204
  .quill-text-input:focus {
203
205
  outline: none;
204
- }` }), (0, jsx_runtime_1.jsx)("div", { style: { width: 6 } }), (0, jsx_runtime_1.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: (0, jsx_runtime_1.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" }) }), (0, jsx_runtime_1.jsx)("input", { className: "quill-text-input", type: "text", value: value, onChange: (event) => onChange(event.target.value), placeholder: placeholder })] }));
206
+ }` }), (0, jsx_runtime_1.jsx)("div", { style: { width: 6 } }), (0, jsx_runtime_1.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: (0, jsx_runtime_1.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" }) }), (0, jsx_runtime_1.jsx)("input", { className: "quill-text-input", type: "text", value: value, onChange: (event) => onChange(event.target.value), placeholder: placeholder, style: {
207
+ fontFamily: theme?.fontFamily,
208
+ color: theme?.primaryTextColor,
209
+ background: theme?.backgroundColor,
210
+ } })] }));
205
211
  };
206
212
  exports.ListboxTextInput = ListboxTextInput;
@@ -1 +1 @@
1
- {"version":3,"file":"QuillMultiSelectSectionList.d.ts","sourceRoot":"","sources":["../../../src/components/QuillMultiSelectSectionList.tsx"],"names":[],"mappings":"AAEA,OAAc,EACZ,aAAa,EAKd,MAAM,OAAO,CAAC;AAGf;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,EAC1C,OAAO,EACP,KAAK,EACL,QAAQ,EACR,KAAK,EACL,gBAAgB,EAChB,KAAK,EACL,SAAS,EACT,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,KAAK,EACL,KAAK,GACN,EAAE;IACD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE;QAAE,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;KAAE,CAAC;IAC3C,OAAO,EAAE;QACP,CAAC,WAAW,EAAE,MAAM,GAAG;YACrB,KAAK,EAAE,MAAM,CAAC;YACd,KAAK,EAAE,MAAM,CAAC;SACf,EAAE,CAAC;KACL,CAAC;IACF,gBAAgB,CAAC,EAAE;QAAE,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACrD,QAAQ,EAAE,CAAC,KAAK,EAAE;QAChB,MAAM,EAAE;YAAE,KAAK,EAAE;gBAAE,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;aAAE,CAAA;SAAE,CAAC;KACxD,KAAK,IAAI,CAAC;IACX,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,2CA8bA;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":"QuillMultiSelectSectionList.d.ts","sourceRoot":"","sources":["../../../src/components/QuillMultiSelectSectionList.tsx"],"names":[],"mappings":"AAEA,OAAc,EACZ,aAAa,EAKd,MAAM,OAAO,CAAC;AAGf;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,EAC1C,OAAO,EACP,KAAK,EACL,QAAQ,EACR,KAAK,EACL,gBAAgB,EAChB,KAAK,EACL,SAAS,EACT,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,KAAK,EACL,KAAK,GACN,EAAE;IACD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE;QAAE,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;KAAE,CAAC;IAC3C,OAAO,EAAE;QACP,CAAC,WAAW,EAAE,MAAM,GAAG;YACrB,KAAK,EAAE,MAAM,CAAC;YACd,KAAK,EAAE,MAAM,CAAC;SACf,EAAE,CAAC;KACL,CAAC;IACF,gBAAgB,CAAC,EAAE;QAAE,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACrD,QAAQ,EAAE,CAAC,KAAK,EAAE;QAChB,MAAM,EAAE;YAAE,KAAK,EAAE;gBAAE,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;aAAE,CAAA;SAAE,CAAC;KACxD,KAAK,IAAI,CAAC;IACX,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,2CAicA;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"}
@@ -143,7 +143,6 @@ function QuillMultiSelectSectionList({ options, width, onChange, label, sectionH
143
143
  fontWeight: 600,
144
144
  }, children: label })), (0, jsx_runtime_1.jsxs)("button", { style: {
145
145
  fontFamily: theme?.fontFamily,
146
- color: theme?.primaryTextColor,
147
146
  width: '100%',
148
147
  display: 'flex',
149
148
  alignItems: 'center',
@@ -163,8 +162,8 @@ function QuillMultiSelectSectionList({ options, width, onChange, label, sectionH
163
162
  height: 40,
164
163
  minHeight: 40,
165
164
  maxHeight: 40,
166
- }, className: 'quill-select-button', onClick: () => setShowModal((showModal) => !showModal), disabled: disabled, ref: buttonRef, children: [(0, jsx_runtime_1.jsx)("style", { children: ` .quill-select-button { background: ${theme?.backgroundColor}; }
167
- .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; }
165
+ }, className: 'quill-select-button', onClick: () => setShowModal((showModal) => !showModal), disabled: disabled, ref: buttonRef, children: [(0, jsx_runtime_1.jsx)("style", { children: ` .quill-select-button { background: ${theme?.backgroundColor}; color: ${theme?.primaryTextColor}; }
166
+ .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; color: ${theme?.hoverTextColor}; }
168
167
  .quill-select-button:disabled {
169
168
  cursor: not-allowed;
170
169
  background: ${theme?.hoverBackgroundColor};
@@ -186,7 +185,7 @@ function QuillMultiSelectSectionList({ options, width, onChange, label, sectionH
186
185
  borderStyle: 'solid',
187
186
  borderColor: theme?.borderColor,
188
187
  borderRadius: 6,
189
- background: 'white',
188
+ background: theme?.backgroundColor,
190
189
  marginTop: 12,
191
190
  zIndex: 100,
192
191
  padding: 6,
@@ -220,10 +219,10 @@ function QuillMultiSelectSectionList({ options, width, onChange, label, sectionH
220
219
  overflow: 'hidden',
221
220
  }, children: [(0, jsx_runtime_1.jsx)("style", { children: `
222
221
  .quill-option {
223
- background: white;
222
+ background: ${theme?.backgroundColor};
224
223
  }
225
224
  .quill-option:hover {
226
- background: #F4F4F5;
225
+ background: ${theme?.hoverBackgroundColor};
227
226
  }
228
227
  ` }), (0, jsx_runtime_1.jsx)("span", { style: {
229
228
  textOverflow: 'ellipsis',
@@ -264,10 +263,12 @@ function QuillMultiSelectSectionList({ options, width, onChange, label, sectionH
264
263
  debounce(updatedChangeEvent);
265
264
  }, children: [(0, jsx_runtime_1.jsx)("style", { children: `
266
265
  .quill-option {
267
- background: white;
266
+ background: ${theme?.backgroundColor};
267
+ color: ${theme?.primaryTextColor};
268
268
  }
269
269
  .quill-option:hover {
270
- background: #F4F4F5;
270
+ background: ${theme?.hoverBackgroundColor};
271
+ color: ${theme?.hoverTextColor};
271
272
  }
272
273
  ` }), (0, jsx_runtime_1.jsx)("input", { type: "checkbox", checked: options[key]?.length === value[key]?.length, style: { width: '14px', height: '14px', margin: 'auto 0' }, readOnly: true }), (0, jsx_runtime_1.jsx)("span", { style: {
273
274
  textOverflow: 'ellipsis',
@@ -314,10 +315,12 @@ function QuillMultiSelectSectionList({ options, width, onChange, label, sectionH
314
315
  debounce(updatedChangeEvent);
315
316
  }, children: [(0, jsx_runtime_1.jsx)("style", { children: `
316
317
  .quill-option {
317
- background: white;
318
+ background: ${theme?.backgroundColor};
319
+ color: ${theme?.primaryTextColor};
318
320
  }
319
321
  .quill-option:hover {
320
- background: #F4F4F5;
322
+ background: ${theme?.hoverBackgroundColor};
323
+ color: ${theme?.hoverTextColor};
321
324
  }
322
325
  ` }), (0, jsx_runtime_1.jsx)("input", { type: "checkbox", checked: value[key]?.includes(option.value) ?? false, style: {
323
326
  width: '14px',
@@ -330,6 +333,7 @@ function QuillMultiSelectSectionList({ options, width, onChange, label, sectionH
330
333
  }, children: option.label })] }, 'v-' + key + '-' + option.value)))] }, 'sp-' + key)))) : ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(UiComponents_1.LoadingSpinner, {}) }))] }))] }));
331
334
  }
332
335
  const ListboxTextInput = ({ value, onChange, placeholder, }) => {
336
+ const [theme] = (0, react_1.useContext)(Context_1.ThemeContext);
333
337
  return ((0, jsx_runtime_1.jsxs)("div", { style: {
334
338
  position: 'relative',
335
339
  display: 'flex',
@@ -349,10 +353,14 @@ const ListboxTextInput = ({ value, onChange, placeholder, }) => {
349
353
  padding-bottom: 0px;
350
354
  box-sizing: content-box;
351
355
  margin-left: 6px;
352
- border: 0 solid #e5e7eb;
356
+ border: 0 solid ${theme?.borderColor ?? '#e5e7eb'};
353
357
  }
354
358
  .quill-text-input:focus {
355
359
  outline: none;
356
- }` }), (0, jsx_runtime_1.jsx)("div", { style: { width: 6 } }), (0, jsx_runtime_1.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: (0, jsx_runtime_1.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" }) }), (0, jsx_runtime_1.jsx)("input", { className: "quill-text-input", type: "text", value: value, onChange: (event) => onChange(event.target.value), placeholder: placeholder })] }));
360
+ }` }), (0, jsx_runtime_1.jsx)("div", { style: { width: 6 } }), (0, jsx_runtime_1.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: (0, jsx_runtime_1.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" }) }), (0, jsx_runtime_1.jsx)("input", { className: "quill-text-input", type: "text", value: value, onChange: (event) => onChange(event.target.value), placeholder: placeholder, style: {
361
+ fontFamily: theme?.fontFamily,
362
+ color: theme?.primaryTextColor,
363
+ background: theme?.backgroundColor,
364
+ } })] }));
357
365
  };
358
366
  exports.ListboxTextInput = ListboxTextInput;
@@ -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"}
@@ -244,7 +244,6 @@ function QuillMultiSelectComponentWithCombo({ options, width, onChange, label, v
244
244
  fontWeight: 600,
245
245
  }, children: label ?? nullLabel })), (0, jsx_runtime_1.jsxs)("button", { style: {
246
246
  fontFamily: theme?.fontFamily,
247
- color: theme?.primaryTextColor,
248
247
  width: '100%',
249
248
  display: 'flex',
250
249
  alignItems: 'center',
@@ -264,8 +263,8 @@ function QuillMultiSelectComponentWithCombo({ options, width, onChange, label, v
264
263
  height: 40,
265
264
  minHeight: 40,
266
265
  maxHeight: 40,
267
- }, className: 'quill-select-button', onClick: () => setShowModal((showModal) => !showModal), disabled: disabled, ref: buttonRef, children: [(0, jsx_runtime_1.jsx)("style", { children: ` .quill-select-button { background: ${theme?.backgroundColor}; }
268
- .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; }
266
+ }, className: 'quill-select-button', onClick: () => setShowModal((showModal) => !showModal), disabled: disabled, ref: buttonRef, children: [(0, jsx_runtime_1.jsx)("style", { children: ` .quill-select-button { background: ${theme?.backgroundColor}; color: ${theme?.primaryTextColor}; }
267
+ .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; color: ${theme?.hoverTextColor}; }
269
268
  .quill-select-button:disabled {
270
269
  cursor: not-allowed;
271
270
  background: ${theme?.hoverBackgroundColor};
@@ -278,9 +277,6 @@ function QuillMultiSelectComponentWithCombo({ options, width, onChange, label, v
278
277
  textAlign: 'left',
279
278
  zIndex: 1,
280
279
  fontWeight: value?.length || isLoading ? undefined : 300,
281
- color: value?.length || isLoading
282
- ? undefined
283
- : theme?.secondaryTextColor,
284
280
  }, children: selectedOptionsLabel }), (0, jsx_runtime_1.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: (0, jsx_runtime_1.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 &&
285
281
  (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsxs)("div", { style: {
286
282
  position: 'absolute',
@@ -297,7 +293,7 @@ function QuillMultiSelectComponentWithCombo({ options, width, onChange, label, v
297
293
  borderStyle: 'solid',
298
294
  borderColor: theme?.borderColor,
299
295
  borderRadius: 6,
300
- background: 'white',
296
+ background: theme?.backgroundColor,
301
297
  marginTop: 12,
302
298
  zIndex: z,
303
299
  padding: 6,
@@ -333,10 +329,12 @@ function QuillMultiSelectComponentWithCombo({ options, width, onChange, label, v
333
329
  overflow: 'hidden',
334
330
  }, children: [(0, jsx_runtime_1.jsx)("style", { children: `
335
331
  .quill-option {
336
- background: white;
332
+ background: ${theme?.backgroundColor};
333
+ color: ${theme?.primaryTextColor};
337
334
  }
338
335
  .quill-option:hover {
339
- background: #F4F4F5;
336
+ background: ${theme?.hoverBackgroundColor};
337
+ color: ${theme?.hoverTextColor};
340
338
  }
341
339
  ` }), (0, jsx_runtime_1.jsx)("span", { style: {
342
340
  textOverflow: 'ellipsis',
@@ -386,10 +384,12 @@ function QuillMultiSelectComponentWithCombo({ options, width, onChange, label, v
386
384
  debounce(updatedChangeEvent);
387
385
  }, children: [(0, jsx_runtime_1.jsx)("style", { children: `
388
386
  .quill-option {
389
- background: white;
387
+ background: ${theme?.backgroundColor};
388
+ color: ${theme?.primaryTextColor};
390
389
  }
391
390
  .quill-option:hover {
392
- background: #F4F4F5;
391
+ background: ${theme?.hoverBackgroundColor};
392
+ color: ${theme?.hoverTextColor};
393
393
  }
394
394
  ` }), (0, jsx_runtime_1.jsx)("input", { ref: selectAllRef, type: "checkbox", checked: selectAllCheckboxState === CheckboxState.SELECTED, style: {
395
395
  width: '14px',
@@ -400,7 +400,6 @@ function QuillMultiSelectComponentWithCombo({ options, width, onChange, label, v
400
400
  whiteSpace: 'nowrap',
401
401
  overflow: 'hidden',
402
402
  }, children: (0, jsx_runtime_1.jsx)("span", { style: {
403
- color: theme?.secondaryTextColor,
404
403
  fontWeight: 300,
405
404
  }, children: "Select all" }) })] })), filteredItems.map((option) => ((0, jsx_runtime_1.jsxs)("button", { style: {
406
405
  display: 'flex',
@@ -457,10 +456,12 @@ function QuillMultiSelectComponentWithCombo({ options, width, onChange, label, v
457
456
  debounce(updatedChangeEvent);
458
457
  }, children: [(0, jsx_runtime_1.jsx)("style", { children: `
459
458
  .quill-option {
460
- background: white;
459
+ background: ${theme?.backgroundColor};
460
+ color: ${theme?.primaryTextColor};
461
461
  }
462
462
  .quill-option:hover {
463
- background: #F4F4F5;
463
+ background: ${theme?.hoverBackgroundColor};
464
+ color: ${theme?.hoverTextColor};
464
465
  }
465
466
  ` }), (0, jsx_runtime_1.jsx)("input", { type: "checkbox", checked: selectedOptions.includes(option.value), style: {
466
467
  width: '14px',
@@ -473,6 +474,7 @@ function QuillMultiSelectComponentWithCombo({ options, width, onChange, label, v
473
474
  }, children: option.label ?? nullLabel })] }, option.value)))] })) : isLoading ? ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(UiComponents_1.LoadingSpinner, {}) })) : null] }), document.body)] }));
474
475
  }
475
476
  const ListboxTextInput = ({ value, onChange, placeholder, }) => {
477
+ const [theme] = (0, react_1.useContext)(Context_1.ThemeContext);
476
478
  return ((0, jsx_runtime_1.jsxs)("div", { style: {
477
479
  position: 'relative',
478
480
  display: 'flex',
@@ -485,17 +487,21 @@ const ListboxTextInput = ({ value, onChange, placeholder, }) => {
485
487
  height: 40px;
486
488
  width: 145px;
487
489
  z-index: 2;
488
- color: #384151;
490
+ color: ${theme?.primaryTextColor ?? '#384151'};
489
491
  border-radius: 4px;
490
492
  text-align: left;
491
493
  padding-top: 0px;
492
494
  padding-bottom: 0px;
493
495
  box-sizing: content-box;
494
496
  margin-left: 6px;
495
- border: 0 solid #e5e7eb;
497
+ border: 0 solid ${theme?.borderColor ?? '#e5e7eb'};
496
498
  }
497
499
  .quill-text-input:focus {
498
500
  outline: none;
499
- }` }), (0, jsx_runtime_1.jsx)("div", { style: { width: 6 } }), (0, jsx_runtime_1.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: (0, jsx_runtime_1.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" }) }), (0, jsx_runtime_1.jsx)("input", { className: "quill-text-input", type: "text", value: value, onChange: (event) => onChange(event.target.value), placeholder: placeholder })] }));
501
+ }` }), (0, jsx_runtime_1.jsx)("div", { style: { width: 6 } }), (0, jsx_runtime_1.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: (0, jsx_runtime_1.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" }) }), (0, jsx_runtime_1.jsx)("input", { className: "quill-text-input", type: "text", value: value, onChange: (event) => onChange(event.target.value), placeholder: placeholder, style: {
502
+ fontFamily: theme?.fontFamily,
503
+ color: theme?.primaryTextColor,
504
+ background: theme?.backgroundColor,
505
+ } })] }));
500
506
  };
501
507
  exports.ListboxTextInput = ListboxTextInput;
@@ -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"}
@@ -128,7 +128,6 @@ function QuillSelectComponent({ options, value, width, onChange, label, isLoadin
128
128
  fontWeight: 600,
129
129
  }, children: label ?? nullLabel })), (0, jsx_runtime_1.jsxs)("button", { style: {
130
130
  fontFamily: theme?.fontFamily,
131
- color: theme?.primaryTextColor,
132
131
  width: '100%',
133
132
  display: 'flex',
134
133
  alignItems: 'center',
@@ -148,8 +147,8 @@ function QuillSelectComponent({ options, value, width, onChange, label, isLoadin
148
147
  minHeight: 40,
149
148
  maxHeight: 40,
150
149
  }, className: "quill-select-button", onClick: () => setShowModal((showModal) => !showModal), disabled: disabled, ref: buttonRef, children: [(0, jsx_runtime_1.jsx)("style", { children: `
151
- .quill-select-button { background: ${theme?.backgroundColor}; }
152
- .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; }
150
+ .quill-select-button { background: ${theme?.backgroundColor}; color: ${theme?.primaryTextColor}; }
151
+ .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; color: ${theme?.hoverTextColor}; }
153
152
  .quill-select-button:disabled, {
154
153
  background: ${theme?.hoverBackgroundColor};
155
154
  cursor: not-allowed;
@@ -176,7 +175,7 @@ function QuillSelectComponent({ options, value, width, onChange, label, isLoadin
176
175
  borderStyle: 'solid',
177
176
  borderColor: theme?.borderColor,
178
177
  borderRadius: 6,
179
- background: 'white',
178
+ background: theme?.backgroundColor,
180
179
  marginTop: 12,
181
180
  zIndex: z,
182
181
  padding: 6,
@@ -207,12 +206,14 @@ function QuillSelectComponent({ options, value, width, onChange, label, isLoadin
207
206
  setShowModal(false);
208
207
  }, disabled: disabled, children: [(0, jsx_runtime_1.jsx)("style", { children: `
209
208
  .quill-option {
210
- background: white;
209
+ background: ${theme?.backgroundColor};
210
+ color: ${theme?.secondaryTextColor};
211
211
  }
212
212
  .quill-option:hover {
213
- background: #F4F4F5;
213
+ background: ${theme?.hoverBackgroundColor};
214
+ color: ${theme?.hoverTextColor};
214
215
  }
215
- ` }), (0, jsx_runtime_1.jsx)("span", { style: { color: theme?.secondaryTextColor, fontWeight: 300 }, children: "Select" })] })), !isLoading ? (options.map((option) => ((0, jsx_runtime_1.jsxs)("button", { style: {
216
+ ` }), (0, jsx_runtime_1.jsx)("span", { style: { fontWeight: 300 }, children: "Select" })] })), !isLoading ? (options.map((option) => ((0, jsx_runtime_1.jsxs)("button", { style: {
216
217
  display: 'flex',
217
218
  alignItems: 'center',
218
219
  justifyContent: 'space-between',
@@ -236,10 +237,12 @@ function QuillSelectComponent({ options, value, width, onChange, label, isLoadin
236
237
  setShowModal(false);
237
238
  }, disabled: disabled, children: [(0, jsx_runtime_1.jsx)("style", { children: `
238
239
  .quill-option {
239
- background: white;
240
+ background: ${theme?.backgroundColor};
241
+ color: ${theme?.primaryTextColor};
240
242
  }
241
243
  .quill-option:hover {
242
- background: #F4F4F5;
244
+ background: ${theme?.hoverBackgroundColor};
245
+ color: ${theme?.hoverTextColor};
243
246
  }
244
247
  ` }), (0, jsx_runtime_1.jsx)("span", { style: {
245
248
  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"}