@quillsql/react 1.1.0 → 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.
Files changed (72) hide show
  1. package/lib/BarList.js +16 -15
  2. package/lib/BarList.js.map +1 -1
  3. package/lib/Chart.js +11 -11
  4. package/lib/Chart.js.map +1 -1
  5. package/lib/Context.js +1 -0
  6. package/lib/Context.js.map +1 -1
  7. package/lib/Dashboard.js +4 -3
  8. package/lib/Dashboard.js.map +1 -1
  9. package/lib/DateRangePicker/Calendar.js +7 -7
  10. package/lib/DateRangePicker/Calendar.js.map +1 -1
  11. package/lib/DateRangePicker/DateRangePicker.js +2 -1
  12. package/lib/DateRangePicker/DateRangePicker.js.map +1 -1
  13. package/lib/DateRangePicker/DateRangePickerButton.js +3 -3
  14. package/lib/DateRangePicker/DateRangePickerButton.js.map +1 -1
  15. package/lib/DateRangePicker/index.d.ts +2 -2
  16. package/lib/DateRangePicker/index.js +2 -1
  17. package/lib/DateRangePicker/index.js.map +1 -1
  18. package/lib/PieChart.js +9 -8
  19. package/lib/PieChart.js.map +1 -1
  20. package/lib/QuillProvider.js.map +1 -1
  21. package/lib/components/Dropdown/Dropdown.js +4 -4
  22. package/lib/components/Dropdown/Dropdown.js.map +1 -1
  23. package/lib/components/Dropdown/DropdownItem.js +2 -2
  24. package/lib/components/Dropdown/DropdownItem.js.map +1 -1
  25. package/lib/components/Modal/Modal.js +1 -1
  26. package/lib/components/Modal/Modal.js.map +1 -1
  27. package/lib/contexts/BaseColorContext.d.ts +1 -1
  28. package/lib/lib/colorClassNames.js +3094 -3094
  29. package/lib/lib/colorClassNames.js.map +1 -1
  30. package/lib/lib/constants.d.ts +1 -1
  31. package/lib/lib/constants.js +36 -36
  32. package/lib/lib/constants.js.map +1 -1
  33. package/lib/lib/font.js +9 -9
  34. package/lib/lib/font.js.map +1 -1
  35. package/lib/lib/hexColors.js +25 -25
  36. package/lib/lib/index.d.ts +10 -10
  37. package/lib/lib/index.js +10 -10
  38. package/lib/lib/inputTypes.d.ts +4 -4
  39. package/lib/lib/inputTypes.js +50 -31
  40. package/lib/lib/inputTypes.js.map +1 -1
  41. package/lib/lib/shape.js +49 -49
  42. package/lib/lib/shape.js.map +1 -1
  43. package/lib/lib/sizing.js +20 -20
  44. package/lib/lib/sizing.js.map +1 -1
  45. package/lib/lib/spacing.js +238 -238
  46. package/lib/lib/spacing.js.map +1 -1
  47. package/lib/styles.css +2813 -3785
  48. package/package.json +4 -2
  49. package/prefix-classnames.js +50 -0
  50. package/src/BarList.tsx +67 -46
  51. package/src/Chart.tsx +26 -21
  52. package/src/Context.tsx +1 -0
  53. package/src/Dashboard.tsx +5 -6
  54. package/src/DateRangePicker/Calendar.tsx +16 -16
  55. package/src/DateRangePicker/DateRangePicker.tsx +3 -2
  56. package/src/DateRangePicker/DateRangePickerButton.tsx +7 -7
  57. package/src/DateRangePicker/index.ts +3 -2
  58. package/src/PieChart.tsx +15 -14
  59. package/src/QuillProvider.tsx +1 -0
  60. package/src/components/Dropdown/Dropdown.tsx +6 -6
  61. package/src/components/Dropdown/DropdownItem.tsx +3 -3
  62. package/src/components/Modal/Modal.tsx +2 -2
  63. package/src/lib/colorClassNames.ts +3094 -3094
  64. package/src/lib/constants.ts +43 -37
  65. package/src/lib/font.ts +9 -9
  66. package/src/lib/hexColors.ts +25 -25
  67. package/src/lib/index.ts +10 -10
  68. package/src/lib/inputTypes.ts +54 -35
  69. package/src/lib/shape.ts +49 -49
  70. package/src/lib/sizing.ts +20 -20
  71. package/src/lib/spacing.ts +238 -238
  72. package/tailwind.config.js +0 -3
@@ -1,52 +1,58 @@
1
- import { Color, DeltaType, HorizontalPosition, Size, VerticalPosition } from "./inputTypes";
1
+ import {
2
+ Color,
3
+ DeltaType,
4
+ HorizontalPosition,
5
+ Size,
6
+ VerticalPosition,
7
+ } from './inputTypes';
2
8
 
3
9
  export const DeltaTypes: { [key: string]: DeltaType } = {
4
- Increase: "increase",
5
- ModerateIncrease: "moderateIncrease",
6
- Decrease: "decrease",
7
- ModerateDecrease: "moderateDecrease",
8
- Unchanged: "unchanged",
10
+ Increase: 'increase',
11
+ ModerateIncrease: 'moderateIncrease',
12
+ Decrease: 'decrease',
13
+ ModerateDecrease: 'moderateDecrease',
14
+ Unchanged: 'unchanged',
9
15
  };
10
16
 
11
17
  export const BaseColors: { [key: string]: Color } = {
12
- Slate: "slate",
13
- Gray: "gray",
14
- Zinc: "zinc",
15
- Neutral: "neutral",
16
- Stone: "stone",
17
- Red: "red",
18
- Orange: "orange",
19
- Amber: "amber",
20
- Yellow: "yellow",
21
- Lime: "lime",
22
- Green: "green",
23
- Emerald: "emerald",
24
- Teal: "teal",
25
- Cyan: "cyan",
26
- Sky: "sky",
27
- Blue: "blue",
28
- Indigo: "indigo",
29
- Violet: "violet",
30
- Purple: "purple",
31
- Fuchsia: "fuchsia",
32
- Pink: "pink",
33
- Rose: "rose",
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',
34
40
  };
35
41
 
36
42
  export const Sizes: { [key: string]: Size } = {
37
- XS: "xs",
38
- SM: "sm",
39
- MD: "md",
40
- LG: "lg",
41
- XL: "xl",
43
+ XS: 'xs',
44
+ SM: 'sm',
45
+ MD: 'md',
46
+ LG: 'lg',
47
+ XL: 'xl',
42
48
  };
43
49
 
44
50
  export const HorizontalPositions: { [key: string]: HorizontalPosition } = {
45
- Left: "left",
46
- Right: "right",
51
+ Left: 'left',
52
+ Right: 'right',
47
53
  };
48
54
 
49
55
  export const VerticalPositions: { [key: string]: VerticalPosition } = {
50
- Top: "top",
51
- Bottom: "bottom",
56
+ Top: 'top',
57
+ Bottom: 'bottom',
52
58
  };
package/src/lib/font.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  export const fontSize = {
2
- xs: "text-xs",
3
- sm: "text-sm",
4
- md: "text-base",
5
- lg: "text-lg",
6
- xl: "text-xl",
7
- threeXl: "text-3xl",
2
+ xs: 'qq-text-xs',
3
+ sm: 'qq-text-sm',
4
+ md: 'qq-text-base',
5
+ lg: 'qq-text-lg',
6
+ xl: 'qq-text-xl',
7
+ threeXl: 'qq-text-3xl',
8
8
  };
9
9
 
10
10
  export const fontWeight = {
11
- sm: "font-normal",
12
- md: "font-medium",
13
- lg: "font-semibold",
11
+ sm: 'qq-font-normal',
12
+ md: 'qq-font-medium',
13
+ lg: 'qq-font-semibold',
14
14
  };
@@ -1,28 +1,28 @@
1
- import { BaseColors } from "./constants";
1
+ import { BaseColors } from './constants';
2
2
 
3
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",
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
28
  };
package/src/lib/index.ts CHANGED
@@ -1,10 +1,10 @@
1
- export * from "./hexColors";
2
- export * from "./colorClassNames";
3
- export * from "./inputTypes";
4
- export * from "./constants";
5
- export * from "./shape";
6
- export * from "./sizing";
7
- export * from "./spacing";
8
- export * from "./font";
9
- export * from "./theme";
10
- export * from "./utils";
1
+ export * from './hexColors';
2
+ export * from './colorClassNames';
3
+ export * from './inputTypes';
4
+ export * from './constants';
5
+ export * from './shape';
6
+ export * from './sizing';
7
+ export * from './spacing';
8
+ export * from './font';
9
+ export * from './theme';
10
+ export * from './utils';
@@ -2,61 +2,80 @@ export type ValueFormatter = {
2
2
  (value: number): string;
3
3
  };
4
4
 
5
- const iconVariantValues = ["simple", "light", "shadow", "solid", "outlined"] as const;
5
+ const iconVariantValues = [
6
+ 'simple',
7
+ 'light',
8
+ 'shadow',
9
+ 'solid',
10
+ 'outlined',
11
+ ] as const;
6
12
 
7
13
  export type IconVariant = (typeof iconVariantValues)[number];
8
14
 
9
- export type HorizontalPosition = "left" | "right";
15
+ export type HorizontalPosition = 'left' | 'right';
10
16
 
11
- export type VerticalPosition = "top" | "bottom";
17
+ export type VerticalPosition = 'top' | 'bottom';
12
18
 
13
- export type ButtonVariant = "primary" | "secondary" | "light";
19
+ export type ButtonVariant = 'primary' | 'secondary' | 'light';
14
20
 
15
21
  const deltaTypeValues = [
16
- "increase",
17
- "moderateIncrease",
18
- "decrease",
19
- "moderateDecrease",
20
- "unchanged",
22
+ 'increase',
23
+ 'moderateIncrease',
24
+ 'decrease',
25
+ 'moderateDecrease',
26
+ 'unchanged',
21
27
  ] as const;
22
28
 
23
29
  export type DeltaType = (typeof deltaTypeValues)[number];
24
30
 
25
- const sizeValues = ["xs", "sm", "md", "lg", "xl"] as const;
31
+ const sizeValues = ['xs', 'sm', 'md', 'lg', 'xl'] as const;
26
32
 
27
33
  export type Size = (typeof sizeValues)[number];
28
34
 
29
35
  const colorValues = [
30
- "slate",
31
- "gray",
32
- "zinc",
33
- "neutral",
34
- "stone",
35
- "red",
36
- "orange",
37
- "amber",
38
- "yellow",
39
- "lime",
40
- "green",
41
- "emerald",
42
- "teal",
43
- "cyan",
44
- "sky",
45
- "blue",
46
- "indigo",
47
- "violet",
48
- "purple",
49
- "fuchsia",
50
- "pink",
51
- "rose",
36
+ 'slate',
37
+ 'gray',
38
+ 'zinc',
39
+ 'neutral',
40
+ 'stone',
41
+ 'red',
42
+ 'orange',
43
+ 'amber',
44
+ 'yellow',
45
+ 'lime',
46
+ 'green',
47
+ 'emerald',
48
+ 'teal',
49
+ 'cyan',
50
+ 'sky',
51
+ 'blue',
52
+ 'indigo',
53
+ 'violet',
54
+ 'purple',
55
+ 'fuchsia',
56
+ 'pink',
57
+ 'rose',
52
58
  ] as const;
53
59
 
54
60
  export type Color = (typeof colorValues)[number];
55
61
 
56
- const justifyContentValues = ["start", "end", "center", "between", "around", "evenly"] as const;
62
+ const justifyContentValues = [
63
+ 'start',
64
+ 'end',
65
+ 'center',
66
+ 'between',
67
+ 'around',
68
+ 'evenly',
69
+ ] as const;
57
70
  export type JustifyContent = (typeof justifyContentValues)[number];
58
71
 
59
- const alignItemsValues = ["start", "end", "center", "baseline", "stretch"] as const;
72
+ const alignItemsValues = [
73
+ 'start',
74
+ 'end',
75
+ 'center',
76
+ 'baseline',
77
+ 'stretch',
78
+ ] as const;
60
79
  export type AlignItems = (typeof alignItemsValues)[number];
61
80
 
62
- export type FlexDirection = "row" | "col" | "row-reverse" | "col-reverse";
81
+ export type FlexDirection = 'row' | 'col' | 'row-reverse' | 'col-reverse';
package/src/lib/shape.ts CHANGED
@@ -1,75 +1,75 @@
1
1
  export const borderRadius = {
2
2
  none: {
3
- left: "rounded-l-none",
4
- top: "rounded-t-none",
5
- right: "rounded-r-none",
6
- bottom: "rounded-b-none",
7
- all: "rounded-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
8
  },
9
9
  sm: {
10
- left: "rounded-l",
11
- top: "rounded-t",
12
- right: "rounded-r",
13
- bottom: "rounded-b",
14
- all: "rounded",
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
15
  },
16
16
  md: {
17
- left: "rounded-l-md",
18
- top: "rounded-t-md",
19
- right: "rounded-r-md",
20
- bottom: "rounded-b-md",
21
- all: "rounded-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
22
  },
23
23
  lg: {
24
- left: "rounded-l-lg",
25
- top: "rounded-t-lg",
26
- right: "rounded-r-lg",
27
- bottom: "rounded-b-lg",
28
- all: "rounded-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
29
  },
30
30
  full: {
31
- left: "rounded-l-full",
32
- top: "rounded-t-full",
33
- right: "rounded-r-full",
34
- bottom: "rounded-b-full",
35
- all: "rounded-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
36
  },
37
37
  };
38
38
 
39
39
  export const boxShadow = {
40
- none: "shadow-none",
41
- sm: "shadow-sm",
42
- md: "shadow",
43
- lg: "shadow-lg",
40
+ none: 'qq-shadow-none',
41
+ sm: 'qq-shadow-sm',
42
+ md: 'qq-shadow',
43
+ lg: 'qq-shadow-lg',
44
44
  };
45
45
 
46
46
  export const border = {
47
47
  none: {
48
- left: "border-l-0",
49
- top: "border-t-0",
50
- right: "border-r-0",
51
- bottom: "border-b-0",
52
- all: "border-0",
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
53
  },
54
54
  sm: {
55
- left: "border-l",
56
- top: "border-t",
57
- right: "border-r",
58
- bottom: "border-b",
59
- all: "border",
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
60
  },
61
61
  md: {
62
- left: "border-l-2",
63
- top: "border-t-2",
64
- right: "border-r-2",
65
- bottom: "border-b-2",
66
- all: "border-2",
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
67
  },
68
68
  lg: {
69
- left: "border-l-4",
70
- top: "border-t-4",
71
- right: "border-r-4",
72
- bottom: "border-b-4",
73
- all: "border-4",
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
74
  },
75
75
  };
package/src/lib/sizing.ts CHANGED
@@ -5,43 +5,43 @@ export type Sizing = {
5
5
 
6
6
  export const sizing = {
7
7
  none: {
8
- height: "h-0",
9
- width: "w-0",
8
+ height: 'qq-h-0',
9
+ width: 'qq-w-0',
10
10
  },
11
11
  threeXs: {
12
- height: "h-0.5",
13
- width: "w-0.5",
12
+ height: 'qq-h-0.5',
13
+ width: 'qq-w-0.5',
14
14
  },
15
15
  twoXs: {
16
- height: "h-1",
17
- width: "w-1",
16
+ height: 'qq-h-1',
17
+ width: 'qq-w-1',
18
18
  },
19
19
  xs: {
20
- height: "h-2",
21
- width: "w-2",
20
+ height: 'qq-h-2',
21
+ width: 'qq-w-2',
22
22
  },
23
23
  sm: {
24
- height: "h-3",
25
- width: "w-3",
24
+ height: 'qq-h-3',
25
+ width: 'qq-w-3',
26
26
  },
27
27
  md: {
28
- height: "h-4",
29
- width: "w-4",
28
+ height: 'qq-h-4',
29
+ width: 'qq-w-4',
30
30
  },
31
31
  lg: {
32
- height: "h-5",
33
- width: "w-5",
32
+ height: 'qq-h-5',
33
+ width: 'qq-w-5',
34
34
  },
35
35
  xl: {
36
- height: "h-6",
37
- width: "w-6",
36
+ height: 'qq-h-6',
37
+ width: 'qq-w-6',
38
38
  },
39
39
  twoXl: {
40
- height: "h-7",
41
- width: "w-7",
40
+ height: 'qq-h-7',
41
+ width: 'qq-w-7',
42
42
  },
43
43
  threeXl: {
44
- height: "h-9",
45
- width: "w-9",
44
+ height: 'qq-h-9',
45
+ width: 'qq-w-9',
46
46
  },
47
47
  };