@quillsql/react 1.1.9 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/lib/DateRangePicker/Calendar.js +1 -1
  2. package/lib/DateRangePicker/Calendar.js.map +1 -1
  3. package/lib/DateRangePicker/dateRangePickerUtils.d.ts +1 -2
  4. package/lib/DateRangePicker/dateRangePickerUtils.js +4 -4
  5. package/lib/DateRangePicker/dateRangePickerUtils.js.map +1 -1
  6. package/lib/PieChart.d.ts +0 -7
  7. package/lib/PieChart.js +0 -75
  8. package/lib/PieChart.js.map +1 -1
  9. package/lib/components/selectUtils.js.map +1 -1
  10. package/lib/contexts/BaseColorContext.d.ts +1 -1
  11. package/lib/contexts/BaseColorContext.js +1 -2
  12. package/lib/contexts/BaseColorContext.js.map +1 -1
  13. package/lib/lib/index.d.ts +0 -7
  14. package/lib/lib/index.js +0 -7
  15. package/lib/lib/index.js.map +1 -1
  16. package/lib/lib/utils.d.ts +1 -4
  17. package/lib/lib/utils.js +4 -33
  18. package/lib/lib/utils.js.map +1 -1
  19. package/package.json +1 -1
  20. package/src/Chart.tsx +4 -1
  21. package/src/Context.tsx +3 -1
  22. package/src/Dashboard.tsx +4 -1
  23. package/src/DateRangePicker/Calendar.tsx +1 -3
  24. package/src/DateRangePicker/DateRangePickerButton.tsx +4 -0
  25. package/src/DateRangePicker/dateRangePickerUtils.tsx +1 -7
  26. package/src/PieChart.tsx +0 -77
  27. package/src/QuillProvider.tsx +2 -0
  28. package/src/components/selectUtils.ts +0 -8
  29. package/src/contexts/BaseColorContext.tsx +1 -4
  30. package/src/hooks/useQuill.ts +4 -1
  31. package/src/lib/index.ts +0 -7
  32. package/src/lib/utils.tsx +8 -43
  33. package/example/README.md +0 -46
  34. package/example/package-lock.json +0 -11222
  35. package/example/package.json +0 -43
  36. package/example/public/favicon.ico +0 -0
  37. package/example/public/index.html +0 -43
  38. package/example/public/logo192.png +0 -0
  39. package/example/public/logo512.png +0 -0
  40. package/example/public/manifest.json +0 -25
  41. package/example/public/robots.txt +0 -3
  42. package/example/src/App.css +0 -38
  43. package/example/src/App.test.tsx +0 -9
  44. package/example/src/App.tsx +0 -48
  45. package/example/src/index.css +0 -13
  46. package/example/src/index.tsx +0 -19
  47. package/example/src/logo.svg +0 -1
  48. package/example/src/react-app-env.d.ts +0 -1
  49. package/example/src/reportWebVitals.ts +0 -15
  50. package/example/src/setupTests.ts +0 -5
  51. package/example/tsconfig.json +0 -26
  52. package/src/lib/colorClassNames.ts +0 -3191
  53. package/src/lib/constants.ts +0 -58
  54. package/src/lib/hexColors.ts +0 -28
  55. package/src/lib/shape.ts +0 -75
  56. package/src/lib/sizing.ts +0 -47
  57. package/src/lib/spacing.ts +0 -264
  58. package/src/lib/theme.ts +0 -49
@@ -1,58 +0,0 @@
1
- import {
2
- Color,
3
- DeltaType,
4
- HorizontalPosition,
5
- Size,
6
- VerticalPosition,
7
- } from './inputTypes';
8
-
9
- export const DeltaTypes: { [key: string]: DeltaType } = {
10
- Increase: 'increase',
11
- ModerateIncrease: 'moderateIncrease',
12
- Decrease: 'decrease',
13
- ModerateDecrease: 'moderateDecrease',
14
- Unchanged: 'unchanged',
15
- };
16
-
17
- export const BaseColors: { [key: string]: Color } = {
18
- Slate: 'slate',
19
- Gray: 'gray',
20
- Zinc: 'zinc',
21
- Neutral: 'neutral',
22
- Stone: 'stone',
23
- Red: 'red',
24
- Orange: 'orange',
25
- Amber: 'amber',
26
- Yellow: 'yellow',
27
- Lime: 'lime',
28
- Green: 'green',
29
- Emerald: 'emerald',
30
- Teal: 'teal',
31
- Cyan: 'cyan',
32
- Sky: 'sky',
33
- Blue: 'blue',
34
- Indigo: 'indigo',
35
- Violet: 'violet',
36
- Purple: 'purple',
37
- Fuchsia: 'fuchsia',
38
- Pink: 'pink',
39
- Rose: 'rose',
40
- };
41
-
42
- export const Sizes: { [key: string]: Size } = {
43
- XS: 'xs',
44
- SM: 'sm',
45
- MD: 'md',
46
- LG: 'lg',
47
- XL: 'xl',
48
- };
49
-
50
- export const HorizontalPositions: { [key: string]: HorizontalPosition } = {
51
- Left: 'left',
52
- Right: 'right',
53
- };
54
-
55
- export const VerticalPositions: { [key: string]: VerticalPosition } = {
56
- Top: 'top',
57
- Bottom: 'bottom',
58
- };
@@ -1,28 +0,0 @@
1
- import { BaseColors } from './constants';
2
-
3
- export const hexColors: { [color: string]: string } = {
4
- [BaseColors.Slate]: '#64748b',
5
- [BaseColors.Gray]: '#6b7280',
6
- [BaseColors.Zinc]: '#71717a',
7
- [BaseColors.Neutral]: '#737373',
8
- [BaseColors.Stone]: '#78716c',
9
- [BaseColors.Red]: '#ef4444',
10
- [BaseColors.Orange]: '#f97316',
11
- [BaseColors.Amber]: '#f59e0b',
12
- [BaseColors.Yellow]: '#eab308',
13
- [BaseColors.Lime]: '#84cc16',
14
- [BaseColors.Green]: '#22c55e',
15
- [BaseColors.Emerald]: '#10b981',
16
- [BaseColors.Teal]: '#14b8a6',
17
- [BaseColors.Cyan]: '#06b6d4',
18
- [BaseColors.Sky]: '#0ea5e9',
19
- [BaseColors.Blue]: '#3b82f6',
20
- [BaseColors.Indigo]: '#6366f1',
21
- [BaseColors.Violet]: '#8b5cf6',
22
- [BaseColors.Purple]: '#a855f7',
23
- [BaseColors.Fuchsia]: '#d946ef',
24
- [BaseColors.Pink]: '#ec4899',
25
- [BaseColors.Rose]: '#f43f5e',
26
- [BaseColors.Black]: '#000000',
27
- [BaseColors.White]: '#ffffff',
28
- };
package/src/lib/shape.ts DELETED
@@ -1,75 +0,0 @@
1
- export const borderRadius = {
2
- none: {
3
- left: 'qq-rounded-l-none',
4
- top: 'qq-rounded-t-none',
5
- right: 'qq-rounded-r-none',
6
- bottom: 'qq-rounded-b-none',
7
- all: 'qq-rounded-none',
8
- },
9
- sm: {
10
- left: 'qq-rounded-l',
11
- top: 'qq-rounded-t',
12
- right: 'qq-rounded-r',
13
- bottom: 'qq-rounded-b',
14
- all: 'qq-rounded',
15
- },
16
- md: {
17
- left: 'qq-rounded-l-md',
18
- top: 'qq-rounded-t-md',
19
- right: 'qq-rounded-r-md',
20
- bottom: 'qq-rounded-b-md',
21
- all: 'qq-rounded-md',
22
- },
23
- lg: {
24
- left: 'qq-rounded-l-lg',
25
- top: 'qq-rounded-t-lg',
26
- right: 'qq-rounded-r-lg',
27
- bottom: 'qq-rounded-b-lg',
28
- all: 'qq-rounded-lg',
29
- },
30
- full: {
31
- left: 'qq-rounded-l-full',
32
- top: 'qq-rounded-t-full',
33
- right: 'qq-rounded-r-full',
34
- bottom: 'qq-rounded-b-full',
35
- all: 'qq-rounded-full',
36
- },
37
- };
38
-
39
- export const boxShadow = {
40
- none: 'qq-shadow-none',
41
- sm: 'qq-shadow-sm',
42
- md: 'qq-shadow',
43
- lg: 'qq-shadow-lg',
44
- };
45
-
46
- export const border = {
47
- none: {
48
- left: 'qq-border-l-0',
49
- top: 'qq-border-t-0',
50
- right: 'qq-border-r-0',
51
- bottom: 'qq-border-b-0',
52
- all: 'qq-border-0',
53
- },
54
- sm: {
55
- left: 'qq-border-l',
56
- top: 'qq-border-t',
57
- right: 'qq-border-r',
58
- bottom: 'qq-border-b',
59
- all: 'qq-border',
60
- },
61
- md: {
62
- left: 'qq-border-l-2',
63
- top: 'qq-border-t-2',
64
- right: 'qq-border-r-2',
65
- bottom: 'qq-border-b-2',
66
- all: 'qq-border-2',
67
- },
68
- lg: {
69
- left: 'qq-border-l-4',
70
- top: 'qq-border-t-4',
71
- right: 'qq-border-r-4',
72
- bottom: 'qq-border-b-4',
73
- all: 'qq-border-4',
74
- },
75
- };
package/src/lib/sizing.ts DELETED
@@ -1,47 +0,0 @@
1
- export type Sizing = {
2
- height: string;
3
- width: string;
4
- };
5
-
6
- export const sizing = {
7
- none: {
8
- height: 'qq-h-0',
9
- width: 'qq-w-0',
10
- },
11
- threeXs: {
12
- height: 'qq-h-0.5',
13
- width: 'qq-w-0.5',
14
- },
15
- twoXs: {
16
- height: 'qq-h-1',
17
- width: 'qq-w-1',
18
- },
19
- xs: {
20
- height: 'qq-h-2',
21
- width: 'qq-w-2',
22
- },
23
- sm: {
24
- height: 'qq-h-3',
25
- width: 'qq-w-3',
26
- },
27
- md: {
28
- height: 'qq-h-4',
29
- width: 'qq-w-4',
30
- },
31
- lg: {
32
- height: 'qq-h-5',
33
- width: 'qq-w-5',
34
- },
35
- xl: {
36
- height: 'qq-h-6',
37
- width: 'qq-w-6',
38
- },
39
- twoXl: {
40
- height: 'qq-h-7',
41
- width: 'qq-w-7',
42
- },
43
- threeXl: {
44
- height: 'qq-h-9',
45
- width: 'qq-w-9',
46
- },
47
- };
@@ -1,264 +0,0 @@
1
- export const spacing = {
2
- none: {
3
- paddingLeft: 'qq-pl-0',
4
- paddingTop: 'qq-pt-0',
5
- paddingRight: 'qq-pr-0',
6
- paddingBottom: 'qq-pb-0',
7
- paddingX: 'qq-px-0',
8
- paddingY: 'qq-py-0',
9
- paddingAll: 'qq-p-0',
10
- marginLeft: 'qq-ml-0',
11
- marginTop: 'qq-mt-0',
12
- marginRight: 'qq-mr-0',
13
- marginBottom: 'qq-mb-0',
14
- negativeMarginLeft: '-qq-ml-0',
15
- negativeMarginRight: '-qq-mr-0',
16
- negativeMarginTop: '-qq-mt-0',
17
- negativeMarginBottom: '-qq-mb-0',
18
- left: 'qq-left-0',
19
- right: 'qq-right-0',
20
- top: 'qq-top-0',
21
- bottom: 'qq-bottom-0',
22
- spaceX: 'qq-space-x-0',
23
- },
24
- px: {
25
- paddingLeft: 'qq-pl-px',
26
- paddingTop: 'qq-pt-px',
27
- paddingRight: 'qq-pr-px',
28
- paddingBottom: 'qq-pb-px',
29
- paddingX: 'qq-px-px',
30
- paddingY: 'qq-py-px',
31
- paddingAll: 'qq-p-px',
32
- marginLeft: 'qq-ml-px',
33
- marginTop: 'qq-mt-px',
34
- marginRight: 'qq-mr-px',
35
- marginBottom: 'qq-mb-px',
36
- negativeMarginLeft: '-qq-ml-px',
37
- negativeMarginRight: '-qq-mr-px',
38
- negativeMarginTop: '-qq-mt-px',
39
- negativeMarginBottom: '-qq-mb-px',
40
- left: 'qq-left-px',
41
- right: 'qq-right-px',
42
- top: 'qq-top-px',
43
- bottom: 'qq-bottom-px',
44
- spaceX: 'qq-space-x-px',
45
- },
46
- threeXs: {
47
- paddingLeft: 'qq-pl-0.5',
48
- paddingTop: 'qq-pt-0.5',
49
- paddingRight: 'qq-pr-0.5',
50
- paddingBottom: 'qq-pb-0.5',
51
- paddingX: 'qq-px-0.5',
52
- paddingY: 'qq-py-0.5',
53
- paddingAll: 'qq-p-0.5',
54
- marginLeft: 'qq-ml-0.5',
55
- marginTop: 'qq-mt-0.5',
56
- marginRight: 'qq-mr-0.5',
57
- marginBottom: 'qq-mb-0.5',
58
- negativeMarginLeft: '-qq-ml-0.5',
59
- negativeMarginRight: '-qq-mr-0.5',
60
- negativeMarginTop: '-qq-mt-0.5',
61
- negativeMarginBottom: '-qq-mb-0.5',
62
- left: 'qq-left-0.5',
63
- right: 'qq-right-0.5',
64
- top: 'qq-top-0.5',
65
- bottom: 'qq-bottom-0.5',
66
- spaceX: 'qq-space-x-0.5',
67
- },
68
- twoXs: {
69
- paddingLeft: 'qq-pl-1',
70
- paddingTop: 'qq-pt-1',
71
- paddingRight: 'qq-pr-1',
72
- paddingBottom: 'qq-pb-1',
73
- paddingX: 'qq-px-1',
74
- paddingY: 'qq-py-1',
75
- paddingAll: 'qq-p-1',
76
- marginLeft: 'qq-ml-1',
77
- marginTop: 'qq-mt-1',
78
- marginRight: 'qq-mr-1',
79
- marginBottom: 'qq-mb-1',
80
- negativeMarginLeft: '-qq-ml-1',
81
- negativeMarginRight: '-qq-mr-1',
82
- left: 'qq-left-1',
83
- right: 'qq-right-1',
84
- top: 'qq-top-1',
85
- bottom: 'qq-bottom-1',
86
- spaceX: 'qq-space-x-1',
87
- },
88
- xs: {
89
- paddingLeft: 'qq-pl-1.5',
90
- paddingTop: 'qq-pt-1.5',
91
- paddingRight: 'qq-pr-1.5',
92
- paddingBottom: 'qq-pb-1.5',
93
- paddingX: 'qq-px-1.5',
94
- paddingY: 'qq-py-1.5',
95
- paddingAll: 'qq-p-1.5',
96
- marginLeft: 'qq-ml-1.5',
97
- marginTop: 'qq-mt-1.5',
98
- marginRight: 'qq-mr-1.5',
99
- marginBottom: 'qq-mb-1.5',
100
- negativeMarginLeft: '-qq-ml-1.5',
101
- negativeMarginRight: '-qq-mr-1.5',
102
- negativeMarginTop: '-qq-mt-1.5',
103
- negativeMarginBottom: '-qq-mb-1.5',
104
- left: 'qq-left-1.5',
105
- right: 'qq-right-1.5',
106
- top: 'qq-top-1.5',
107
- bottom: 'qq-bottom-1.5',
108
- spaceX: 'qq-space-x-1.5',
109
- },
110
- sm: {
111
- paddingLeft: 'qq-pl-2',
112
- paddingTop: 'qq-pt-2',
113
- paddingRight: 'qq-pr-2',
114
- paddingBottom: 'qq-pb-2',
115
- paddingX: 'qq-px-2',
116
- paddingY: 'qq-py-2',
117
- paddingAll: 'qq-p-2',
118
- marginLeft: 'qq-ml-2',
119
- marginTop: 'qq-mt-2',
120
- marginRight: 'qq-mr-2',
121
- marginBottom: 'qq-mb-2',
122
- negativeMarginLeft: '-qq-ml-2',
123
- negativeMarginRight: '-qq-mr-2',
124
- negativeMarginTop: '-qq-mt-2',
125
- negativeMarginBottom: '-qq-mb-2',
126
- left: 'qq-left-2',
127
- right: 'qq-right-2',
128
- top: 'qq-left-2',
129
- bottom: 'qq-bottom-2',
130
- spaceX: 'qq-space-x-2',
131
- },
132
- md: {
133
- paddingLeft: 'qq-pl-2.5',
134
- paddingTop: 'qq-pt-2.5',
135
- paddingRight: 'qq-pr-2.5',
136
- paddingBottom: 'qq-pb-2.5',
137
- paddingX: 'qq-px-2.5',
138
- paddingY: 'qq-py-2.5',
139
- paddingAll: 'qq-p-2.5',
140
- marginLeft: 'qq-ml-2.5',
141
- marginTop: 'qq-mt-2.5',
142
- marginRight: 'qq-mr-2.5',
143
- marginBottom: 'qq-mb-2.5',
144
- negativeMarginLeft: '-qq-ml-2.5',
145
- negativeMarginRight: '-qq-mr-2.5',
146
- negativeMarginTop: '-qq-mt-2.5',
147
- negativeMarginBottom: '-qq-mb-2.5',
148
- left: 'qq-left-2.5',
149
- right: 'qq-right-2.5',
150
- top: 'qq-top-2.5',
151
- bottom: 'qq-bottom-2.5',
152
- spaceX: 'qq-space-x-2.5',
153
- },
154
- lg: {
155
- paddingLeft: 'qq-pl-3',
156
- paddingTop: 'qq-pt-3',
157
- paddingRight: 'qq-pr-3',
158
- paddingBottom: 'qq-pb-3',
159
- paddingX: 'qq-px-3',
160
- paddingY: 'qq-py-3',
161
- paddingAll: 'qq-p-3',
162
- marginLeft: 'qq-ml-3',
163
- marginTop: 'qq-mt-3',
164
- marginRight: 'qq-mr-3',
165
- marginBottom: 'qq-mb-3',
166
- negativeMarginLeft: '-qq-ml-3',
167
- negativeMarginRight: '-qq-mr-3',
168
- negativeMarginTop: '-qq-mt-3',
169
- negativeMarginBottom: '-qq-mb-3',
170
- left: 'qq-left-3',
171
- right: 'qq-right-3',
172
- top: 'qq-top-3',
173
- bottom: 'qq-bottom-3',
174
- spaceX: 'qq-space-x-3',
175
- },
176
- xl: {
177
- paddingLeft: 'qq-pl-3.5',
178
- paddingTop: 'qq-pt-3.5',
179
- paddingRight: 'qq-pr-3.5',
180
- paddingBottom: 'qq-pb-3.5',
181
- paddingX: 'qq-px-3.5',
182
- paddingY: 'qq-py-3.5',
183
- paddingAll: 'qq-p-3.5',
184
- marginLeft: 'qq-ml-3.5',
185
- marginTop: 'qq-mt-3.5',
186
- marginRight: 'qq-mr-3.5',
187
- marginBottom: 'qq-mb-3.5',
188
- negativeMarginLeft: '-qq-ml-3.5',
189
- negativeMarginRight: '-qq-mr-3.5',
190
- negativeMarginTop: '-qq-mt-3.5',
191
- negativeMarginBottom: '-qq-mb-3.5',
192
- left: 'qq-left-3.5',
193
- right: 'qq-right-3.5',
194
- top: 'qq-top-3.5',
195
- bottom: 'qq-bottom-3.5',
196
- spaceX: 'qq-space-x-3.5',
197
- },
198
- twoXl: {
199
- paddingLeft: 'qq-pl-4',
200
- paddingTop: 'qq-pt-4',
201
- paddingRight: 'qq-pr-4',
202
- paddingBottom: 'qq-pb-4',
203
- paddingX: 'qq-px-4',
204
- paddingY: 'qq-py-4',
205
- paddingAll: 'qq-p-4',
206
- marginLeft: 'qq-ml-4',
207
- marginTop: 'qq-mt-4',
208
- marginRight: 'qq-mr-4',
209
- marginBottom: 'qq-mb-4',
210
- negativeMarginLeft: '-qq-ml-4',
211
- negativeMarginRight: '-qq-mr-4',
212
- negativeMarginTop: '-qq-mt-4',
213
- negativeMarginBottom: '-qq-mb-4',
214
- left: 'qq-left-4',
215
- right: 'qq-right-4',
216
- top: 'qq-top-4',
217
- bottom: 'qq-bottom-4',
218
- spaceX: 'qq-space-x-4',
219
- },
220
- threeXl: {
221
- paddingLeft: 'qq-pl-6',
222
- paddingTop: 'qq-pt-6',
223
- paddingRight: 'qq-pr-6',
224
- paddingBottom: 'qq-pb-6',
225
- paddingX: 'qq-px-6',
226
- paddingY: 'qq-py-6',
227
- paddingAll: 'qq-p-6',
228
- marginLeft: 'qq-ml-6',
229
- marginTop: 'qq-mt-6',
230
- marginRight: 'qq-mr-6',
231
- marginBottom: 'qq-mb-6',
232
- negativeMarginLeft: '-qq-ml-6',
233
- negativeMarginRight: '-qq-mr-6',
234
- negativeMarginTop: '-qq-mt-6',
235
- negativeMarginBottom: '-qq-mb-6',
236
- left: 'qq-left-6',
237
- right: 'qq-right-6',
238
- top: 'qq-top-6',
239
- bottom: 'qq-bottom-6',
240
- spaceX: 'qq-space-x-6',
241
- },
242
- fourXl: {
243
- paddingLeft: 'qq-pl-8',
244
- paddingTop: 'qq-pt-8',
245
- paddingRight: 'qq-pr-8',
246
- paddingBottom: 'qq-pb-8',
247
- paddingX: 'qq-px-8',
248
- paddingY: 'qq-py-8',
249
- paddingAll: 'qq-p-8',
250
- marginLeft: 'qq-ml-8',
251
- marginTop: 'qq-mt-8',
252
- marginRight: 'qq-mr-8',
253
- marginBottom: 'qq-mb-8',
254
- negativeMarginLeft: '-qq-ml-8',
255
- negativeMarginRight: '-qq-mr-8',
256
- negativeMarginTop: '-qq-mt-8',
257
- negativeMarginBottom: '-qq-mb-8',
258
- left: 'qq-left-8',
259
- right: 'qq-right-8',
260
- top: 'qq-top-8',
261
- bottom: 'qq-bottom-8',
262
- spaceX: 'qq-space-x-8',
263
- },
264
- };
package/src/lib/theme.ts DELETED
@@ -1,49 +0,0 @@
1
- import { BaseColors } from "./constants";
2
- import { Color } from "./inputTypes";
3
-
4
- export const DEFAULT_COLOR: Color = "gray";
5
- export const WHITE = "white";
6
- export const TRANSPARENT = "transparent";
7
-
8
- export const colorPalette = {
9
- canvasBackground: 50,
10
- lightBackground: 100,
11
- background: 500,
12
- darkBackground: 600,
13
- darkestBackground: 800,
14
- lightBorder: 200,
15
- border: 500,
16
- darkBorder: 700,
17
- lightRing: 200,
18
- ring: 300,
19
- lightText: 400,
20
- text: 500,
21
- darkText: 700,
22
- darkestText: 900,
23
- icon: 500,
24
- };
25
-
26
- export const themeColorRange: Color[] = [
27
- BaseColors.Cyan,
28
- BaseColors.Sky,
29
- BaseColors.Blue,
30
- BaseColors.Indigo,
31
- BaseColors.Violet,
32
- BaseColors.Purple,
33
- BaseColors.Fuchsia,
34
- BaseColors.Slate,
35
- BaseColors.Gray,
36
- BaseColors.Zinc,
37
- BaseColors.Neutral,
38
- BaseColors.Stone,
39
- BaseColors.Red,
40
- BaseColors.Orange,
41
- BaseColors.Amber,
42
- BaseColors.Yellow,
43
- BaseColors.Lime,
44
- BaseColors.Green,
45
- BaseColors.Emerald,
46
- BaseColors.Teal,
47
- BaseColors.Pink,
48
- BaseColors.Rose,
49
- ];