@quillsql/react 1.1.1 → 1.1.2
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.
- package/lib/BarList.js +15 -15
- package/lib/BarList.js.map +1 -1
- package/lib/Chart.js +10 -10
- package/lib/Chart.js.map +1 -1
- package/lib/Dashboard.js +3 -3
- package/lib/Dashboard.js.map +1 -1
- package/lib/DateRangePicker/Calendar.js +7 -7
- package/lib/DateRangePicker/Calendar.js.map +1 -1
- package/lib/DateRangePicker/DateRangePicker.js +1 -1
- package/lib/DateRangePicker/DateRangePicker.js.map +1 -1
- package/lib/DateRangePicker/DateRangePickerButton.js +3 -3
- package/lib/DateRangePicker/DateRangePickerButton.js.map +1 -1
- package/lib/PieChart.js +8 -8
- package/lib/PieChart.js.map +1 -1
- package/lib/components/Dropdown/Dropdown.js +4 -4
- package/lib/components/Dropdown/Dropdown.js.map +1 -1
- package/lib/components/Dropdown/DropdownItem.js +2 -2
- package/lib/components/Dropdown/DropdownItem.js.map +1 -1
- package/lib/components/Modal/Modal.js +1 -1
- package/lib/components/Modal/Modal.js.map +1 -1
- package/lib/lib/colorClassNames.js +3094 -3094
- package/lib/lib/colorClassNames.js.map +1 -1
- package/lib/lib/constants.d.ts +1 -1
- package/lib/lib/constants.js +36 -36
- package/lib/lib/constants.js.map +1 -1
- package/lib/lib/font.js +9 -9
- package/lib/lib/font.js.map +1 -1
- package/lib/lib/hexColors.js +25 -25
- package/lib/lib/index.d.ts +10 -10
- package/lib/lib/index.js +10 -10
- package/lib/lib/inputTypes.d.ts +4 -4
- package/lib/lib/inputTypes.js +50 -31
- package/lib/lib/inputTypes.js.map +1 -1
- package/lib/lib/shape.js +49 -49
- package/lib/lib/shape.js.map +1 -1
- package/lib/lib/sizing.js +20 -20
- package/lib/lib/sizing.js.map +1 -1
- package/lib/lib/spacing.js +238 -238
- package/lib/lib/spacing.js.map +1 -1
- package/lib/styles.css +2813 -3785
- package/package.json +4 -2
- package/prefix-classnames.js +50 -0
- package/src/BarList.tsx +62 -42
- package/src/Chart.tsx +25 -19
- package/src/Dashboard.tsx +4 -4
- package/src/DateRangePicker/Calendar.tsx +16 -16
- package/src/DateRangePicker/DateRangePicker.tsx +2 -2
- package/src/DateRangePicker/DateRangePickerButton.tsx +7 -7
- package/src/PieChart.tsx +13 -13
- package/src/components/Dropdown/Dropdown.tsx +6 -6
- package/src/components/Dropdown/DropdownItem.tsx +3 -3
- package/src/components/Modal/Modal.tsx +2 -2
- package/src/lib/colorClassNames.ts +3094 -3094
- package/src/lib/constants.ts +43 -37
- package/src/lib/font.ts +9 -9
- package/src/lib/hexColors.ts +25 -25
- package/src/lib/index.ts +10 -10
- package/src/lib/inputTypes.ts +54 -35
- package/src/lib/shape.ts +49 -49
- package/src/lib/sizing.ts +20 -20
- package/src/lib/spacing.ts +238 -238
- package/tailwind.config.js +0 -3
package/src/PieChart.tsx
CHANGED
|
@@ -135,7 +135,7 @@ const ChartLegend = (categories: string[], colors: string[]) => {
|
|
|
135
135
|
// });
|
|
136
136
|
|
|
137
137
|
return (
|
|
138
|
-
<div ref={legendRef} className="flex items-center justify-end">
|
|
138
|
+
<div ref={legendRef} className="qq-flex qq-items-center qq-justify-end">
|
|
139
139
|
<Legend
|
|
140
140
|
// @ts-ignore
|
|
141
141
|
categories={categories}
|
|
@@ -387,7 +387,7 @@ export const ChartTooltipFrame = ({
|
|
|
387
387
|
}) => (
|
|
388
388
|
<div
|
|
389
389
|
// style={{ transform: 'translateX(-120px)' }}
|
|
390
|
-
className="bg-white text-sm rounded-md border shadow-lg"
|
|
390
|
+
className="qq-bg-white qq-text-sm qq-rounded-md qq-border qq-shadow-lg"
|
|
391
391
|
// className={twMerge(
|
|
392
392
|
// 'bg-white',
|
|
393
393
|
// 'font-normal',
|
|
@@ -412,8 +412,8 @@ export const ChartTooltipRow = ({
|
|
|
412
412
|
name,
|
|
413
413
|
color,
|
|
414
414
|
}: ChartTooltipRowProps) => (
|
|
415
|
-
<div className="flex items-center justify-between space-x-8">
|
|
416
|
-
<div className="flex items-center space-x-2">
|
|
415
|
+
<div className="qq-flex qq-items-center qq-justify-between qq-space-x-8">
|
|
416
|
+
<div className="qq-flex qq-items-center qq-space-x-2">
|
|
417
417
|
<span
|
|
418
418
|
style={{ background: color, borderWidth: 2, borderColor: 'white' }}
|
|
419
419
|
className={twMerge(
|
|
@@ -423,10 +423,10 @@ export const ChartTooltipRow = ({
|
|
|
423
423
|
// 'border-black',
|
|
424
424
|
// sizing.sm.height,
|
|
425
425
|
// sizing.sm.width,
|
|
426
|
-
'h-3',
|
|
427
|
-
'w-3',
|
|
428
|
-
'shadow',
|
|
429
|
-
'rounded-full'
|
|
426
|
+
'qq-h-3',
|
|
427
|
+
'qq-w-3',
|
|
428
|
+
'qq-shadow',
|
|
429
|
+
'qq-rounded-full'
|
|
430
430
|
// border.md.all,
|
|
431
431
|
// boxShadow.md
|
|
432
432
|
)}
|
|
@@ -436,16 +436,16 @@ export const ChartTooltipRow = ({
|
|
|
436
436
|
// 'font-medium tabular-nums text-right whitespace-nowrap',
|
|
437
437
|
// 'text-[#212121] !important'
|
|
438
438
|
// )}
|
|
439
|
-
className="font-medium tabular-nums text-right whitespace-nowrap text-black"
|
|
439
|
+
className="qq-font-medium qq-tabular-nums qq-text-right qq-whitespace-nowrap qq-text-black"
|
|
440
440
|
>
|
|
441
441
|
{value}
|
|
442
442
|
</p>
|
|
443
443
|
</div>
|
|
444
444
|
<p
|
|
445
445
|
className={twMerge(
|
|
446
|
-
'text-right whitespace-nowrap',
|
|
446
|
+
'qq-text-right qq-whitespace-nowrap',
|
|
447
447
|
// getColorClassNames(DEFAULT_COLOR, colorPalette.text).textColor,
|
|
448
|
-
'text-gray-500'
|
|
448
|
+
'qq-text-gray-500'
|
|
449
449
|
// fontWeight.sm
|
|
450
450
|
)}
|
|
451
451
|
>
|
|
@@ -471,7 +471,7 @@ export const DonutChartTooltip = ({
|
|
|
471
471
|
<ChartTooltipFrame>
|
|
472
472
|
<div
|
|
473
473
|
// style={{ transform: 'translateX(-120px)' }}
|
|
474
|
-
className={twMerge('px-4', 'py-2')}
|
|
474
|
+
className={twMerge('qq-px-4', 'qq-py-2')}
|
|
475
475
|
>
|
|
476
476
|
<ChartTooltipRow
|
|
477
477
|
value={valueFormatter(payloadRow.value)}
|
|
@@ -825,7 +825,7 @@ function Legend2({ payload, colors }: { payload: any; colors: string[] }) {
|
|
|
825
825
|
display: 'block',
|
|
826
826
|
maxWidth: 120,
|
|
827
827
|
}}
|
|
828
|
-
className="text-sm text-gray-600 whitespace-nowrap overflow-hidden overflow-ellipsis text-sm font-normal"
|
|
828
|
+
className="qq-text-sm qq-text-gray-600 qq-whitespace-nowrap qq-overflow-hidden qq-overflow-ellipsis qq-text-sm qq-font-normal"
|
|
829
829
|
>
|
|
830
830
|
{item.value}
|
|
831
831
|
</div>
|
|
@@ -92,7 +92,7 @@ const Dropdown = React.forwardRef<HTMLDivElement, DropdownProps>(
|
|
|
92
92
|
onKeyDown={handleKeyDown}
|
|
93
93
|
className={twMerge(
|
|
94
94
|
makeDropdownClassName('root'),
|
|
95
|
-
'relative w-full min-w-[10rem]',
|
|
95
|
+
'qq-relative qq-w-full qq-min-w-[10rem]',
|
|
96
96
|
className
|
|
97
97
|
)}
|
|
98
98
|
{...other}
|
|
@@ -101,7 +101,7 @@ const Dropdown = React.forwardRef<HTMLDivElement, DropdownProps>(
|
|
|
101
101
|
type="button"
|
|
102
102
|
className={twMerge(
|
|
103
103
|
makeDropdownClassName('button'),
|
|
104
|
-
'flex justify-between items-center w-full focus:outline-none focus:ring-2',
|
|
104
|
+
'qq-flex qq-justify-between qq-items-center qq-w-full focus:qq-outline-none focus:qq-ring-2',
|
|
105
105
|
getSelectButtonColors(hasSelection, disabled),
|
|
106
106
|
getColorClassNames(BaseColors.Blue, colorPalette.lightRing)
|
|
107
107
|
.focusRingColor,
|
|
@@ -115,12 +115,12 @@ const Dropdown = React.forwardRef<HTMLDivElement, DropdownProps>(
|
|
|
115
115
|
onClick={() => setIsFocused(!isFocused)}
|
|
116
116
|
disabled={disabled}
|
|
117
117
|
>
|
|
118
|
-
<div className="flex justify-start items-center truncate">
|
|
118
|
+
<div className="qq-flex qq-justify-start qq-items-center qq-truncate">
|
|
119
119
|
{Icon ? (
|
|
120
120
|
<Icon
|
|
121
121
|
className={twMerge(
|
|
122
122
|
makeDropdownClassName('icon'),
|
|
123
|
-
'shrink-0',
|
|
123
|
+
'qq-shrink-0',
|
|
124
124
|
sizing.lg.height,
|
|
125
125
|
sizing.lg.width,
|
|
126
126
|
getColorClassNames(DEFAULT_COLOR, colorPalette.lightText)
|
|
@@ -133,7 +133,7 @@ const Dropdown = React.forwardRef<HTMLDivElement, DropdownProps>(
|
|
|
133
133
|
<p
|
|
134
134
|
className={twMerge(
|
|
135
135
|
makeDropdownClassName('text'),
|
|
136
|
-
'whitespace-nowrap truncate',
|
|
136
|
+
'qq-whitespace-nowrap qq-truncate',
|
|
137
137
|
fontSize.sm,
|
|
138
138
|
fontWeight.md
|
|
139
139
|
)}
|
|
@@ -146,7 +146,7 @@ const Dropdown = React.forwardRef<HTMLDivElement, DropdownProps>(
|
|
|
146
146
|
<ArrowDownHeadIcon
|
|
147
147
|
className={twMerge(
|
|
148
148
|
makeDropdownClassName('arrowDownIcon'),
|
|
149
|
-
'flex-none',
|
|
149
|
+
'qq-flex-none',
|
|
150
150
|
sizing.lg.height,
|
|
151
151
|
sizing.lg.width,
|
|
152
152
|
spacing.twoXs.negativeMarginRight,
|
|
@@ -46,7 +46,7 @@ const DropdownItem = React.forwardRef<HTMLButtonElement, DropdownItemProps>(
|
|
|
46
46
|
onClick={() => handleValueChange?.(value)}
|
|
47
47
|
className={twMerge(
|
|
48
48
|
makeDropdownItemClassName('root'),
|
|
49
|
-
'flex items-center justify-start w-full truncate',
|
|
49
|
+
'qq-flex qq-items-center qq-justify-start qq-w-full qq-truncate',
|
|
50
50
|
spacing.twoXl.paddingX,
|
|
51
51
|
spacing.md.paddingY,
|
|
52
52
|
fontSize.sm,
|
|
@@ -60,7 +60,7 @@ const DropdownItem = React.forwardRef<HTMLButtonElement, DropdownItemProps>(
|
|
|
60
60
|
<Icon
|
|
61
61
|
className={twMerge(
|
|
62
62
|
makeDropdownItemClassName('icon'),
|
|
63
|
-
'flex-none',
|
|
63
|
+
'qq-flex-none',
|
|
64
64
|
sizing.lg.height,
|
|
65
65
|
sizing.lg.width,
|
|
66
66
|
spacing.lg.marginRight,
|
|
@@ -73,7 +73,7 @@ const DropdownItem = React.forwardRef<HTMLButtonElement, DropdownItemProps>(
|
|
|
73
73
|
<p
|
|
74
74
|
className={twMerge(
|
|
75
75
|
makeDropdownItemClassName('text'),
|
|
76
|
-
'text-sm whitespace-nowrap truncate'
|
|
76
|
+
'qq-text-sm qq-whitespace-nowrap qq-truncate'
|
|
77
77
|
)}
|
|
78
78
|
>
|
|
79
79
|
{text ?? value}
|
|
@@ -88,8 +88,8 @@ const Modal = React.forwardRef<HTMLDivElement, ModalProps>((props, ref) => {
|
|
|
88
88
|
<div
|
|
89
89
|
ref={mergeRefs([modalRef, ref])}
|
|
90
90
|
className={twMerge(
|
|
91
|
-
'absolute z-10 divide-y overflow-y-auto',
|
|
92
|
-
width ? '' : 'w-full',
|
|
91
|
+
'qq-absolute qq-z-10 qq-divide-y qq-overflow-y-auto',
|
|
92
|
+
width ? '' : 'qq-w-full',
|
|
93
93
|
getAbsoluteSpacing(),
|
|
94
94
|
maxHeight,
|
|
95
95
|
getColorClassNames('white').bgColor,
|