@taiv/ui 1.0.1 → 1.1.0
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/README.md +23 -1
- package/dist/components/Data/Chart.d.ts +32 -0
- package/dist/components/Data/Chart.d.ts.map +1 -0
- package/dist/components/Data/Chart.js +97 -0
- package/dist/components/Data/PieChart.d.ts +24 -0
- package/dist/components/Data/PieChart.d.ts.map +1 -0
- package/dist/components/Data/PieChart.js +61 -0
- package/dist/components/Data/StatsCard.d.ts +17 -0
- package/dist/components/Data/StatsCard.d.ts.map +1 -0
- package/dist/components/Data/StatsCard.js +38 -0
- package/dist/components/Data/shared/dataFormats.d.ts +35 -0
- package/dist/components/Data/shared/dataFormats.d.ts.map +1 -0
- package/dist/components/Data/shared/dataFormats.js +25 -0
- package/dist/components/Info/Badge.d.ts +1 -0
- package/dist/components/Info/Badge.d.ts.map +1 -0
- package/dist/components/Info/Badge.js +1 -0
- package/dist/components/Info/InfoCard.d.ts +9 -0
- package/dist/components/Info/InfoCard.d.ts.map +1 -0
- package/dist/components/Info/InfoCard.js +18 -0
- package/dist/components/Info/Modals/Modal.d.ts.map +1 -1
- package/dist/components/Info/Modals/Modal.js +1 -0
- package/dist/components/Info/Tooltips/InfoTooltip.d.ts +4 -2
- package/dist/components/Info/Tooltips/InfoTooltip.d.ts.map +1 -1
- package/dist/components/Info/Tooltips/InfoTooltip.js +2 -2
- package/dist/components/Info/Tooltips/Tooltip.d.ts +1 -1
- package/dist/components/Info/Tooltips/Tooltip.d.ts.map +1 -1
- package/dist/components/Info/Tooltips/Tooltip.js +1 -1
- package/dist/components/Inputs/Buttons/Button.d.ts +2 -1
- package/dist/components/Inputs/Buttons/Button.d.ts.map +1 -1
- package/dist/components/Inputs/Buttons/Button.js +12 -2
- package/dist/components/Inputs/Buttons/shared/variants.d.ts +50 -0
- package/dist/components/Inputs/Buttons/shared/variants.d.ts.map +1 -1
- package/dist/components/Inputs/Buttons/shared/variants.js +50 -0
- package/dist/components/Inputs/DatePickers/DatePicker.d.ts +12 -0
- package/dist/components/Inputs/DatePickers/DatePicker.d.ts.map +1 -0
- package/dist/components/Inputs/DatePickers/DatePicker.js +35 -0
- package/dist/components/Layout/AutoGrid.d.ts +8 -0
- package/dist/components/Layout/AutoGrid.d.ts.map +1 -0
- package/dist/components/Layout/AutoGrid.js +6 -0
- package/dist/components/Layout/Card.d.ts +8 -0
- package/dist/components/Layout/Card.d.ts.map +1 -0
- package/dist/components/Layout/Card.js +16 -0
- package/dist/components/Layout/Grid.d.ts +10 -0
- package/dist/components/Layout/Grid.d.ts.map +1 -0
- package/dist/components/Layout/Grid.js +9 -0
- package/dist/components/Layout/SectionCard.d.ts +11 -0
- package/dist/components/Layout/SectionCard.d.ts.map +1 -0
- package/dist/components/Layout/SectionCard.js +12 -0
- package/dist/components/Layout/Tabs.d.ts +17 -0
- package/dist/components/Layout/Tabs.d.ts.map +1 -0
- package/dist/components/Layout/Tabs.js +48 -0
- package/dist/components/Misc/IconBadge.d.ts +8 -0
- package/dist/components/Misc/IconBadge.d.ts.map +1 -0
- package/dist/components/Misc/IconBadge.js +29 -0
- package/dist/components/Typography/Fraction.d.ts +10 -0
- package/dist/components/Typography/Fraction.d.ts.map +1 -0
- package/dist/components/Typography/Fraction.js +7 -0
- package/dist/components/Typography/Text.d.ts.map +1 -1
- package/dist/components/Typography/Text.js +10 -2
- package/dist/components/index.d.ts +44 -37
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +44 -37
- package/dist/constants/colors.d.ts +97 -11
- package/dist/constants/colors.d.ts.map +1 -1
- package/dist/constants/colors.js +35 -19
- package/dist/hooks/index.d.ts +5 -5
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +5 -5
- package/dist/{components/Info/Modals/ConfirmationModal.d.ts → hooks/useConfirmationModal.d.ts} +2 -2
- package/dist/hooks/useConfirmationModal.d.ts.map +1 -0
- package/dist/{components/Info/Modals/ConfirmationModal.js → hooks/useConfirmationModal.js} +7 -7
- package/dist/{components/Misc/Copy.d.ts → hooks/useCopy.d.ts} +1 -1
- package/dist/hooks/useCopy.d.ts.map +1 -0
- package/dist/{components/Misc/Copy.js → hooks/useCopy.js} +1 -1
- package/dist/{components/Info/Modals/InfoModal.d.ts → hooks/useInfoModal.d.ts} +2 -2
- package/dist/hooks/useInfoModal.d.ts.map +1 -0
- package/dist/{components/Info/Modals/InfoModal.js → hooks/useInfoModal.js} +6 -6
- package/dist/{components/Misc/MediaQuery.d.ts → hooks/useMediaQuery.d.ts} +1 -1
- package/dist/hooks/useMediaQuery.d.ts.map +1 -0
- package/dist/{components/Info/Notifications/Notifications.d.ts → hooks/useNotifications.d.ts} +2 -2
- package/dist/hooks/useNotifications.d.ts.map +1 -0
- package/dist/{components/Info/Notifications/Notifications.js → hooks/useNotifications.js} +1 -1
- package/package.json +21 -6
- package/dist/components/Info/Modals/ConfirmationModal.d.ts.map +0 -1
- package/dist/components/Info/Modals/InfoModal.d.ts.map +0 -1
- package/dist/components/Info/Notifications/Notifications.d.ts.map +0 -1
- package/dist/components/Misc/Copy.d.ts.map +0 -1
- package/dist/components/Misc/MediaQuery.d.ts.map +0 -1
- /package/dist/{components/Misc/MediaQuery.js → hooks/useMediaQuery.js} +0 -0
package/dist/components/index.js
CHANGED
|
@@ -1,43 +1,50 @@
|
|
|
1
1
|
//Data
|
|
2
|
-
export { CheckboxTable } from
|
|
3
|
-
export {
|
|
2
|
+
export { CheckboxTable } from './Data/CheckboxTable';
|
|
3
|
+
export { Chart } from './Data/Chart';
|
|
4
|
+
export { PieChart } from './Data/PieChart';
|
|
5
|
+
export { RemovableItemList } from './Data/RemovableItemList';
|
|
6
|
+
export { StatsCard } from './Data/StatsCard';
|
|
4
7
|
//Info
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export { InfoTooltip } from "./Info/Tooltips/InfoTooltip";
|
|
12
|
-
export { Tooltip } from "./Info/Tooltips/Tooltip";
|
|
8
|
+
export { Modal } from './Info/Modals/Modal';
|
|
9
|
+
export { ModalProvider } from './Info/Modals/ModalProvider';
|
|
10
|
+
export { NotificationProvider } from './Info/Notifications/NotificationProvider';
|
|
11
|
+
export { Tooltip } from './Info/Tooltips/Tooltip';
|
|
12
|
+
export { InfoTooltip } from './Info/Tooltips/InfoTooltip';
|
|
13
|
+
export { InfoCard } from './Info/InfoCard';
|
|
13
14
|
//Inputs
|
|
14
|
-
export { AutoComplete } from
|
|
15
|
-
export { Button } from
|
|
16
|
-
export { UnstyledButton } from
|
|
17
|
-
export { Checkbox } from
|
|
18
|
-
export { Toggle } from
|
|
19
|
-
export { FontSelect } from
|
|
20
|
-
export { MultiSelect } from
|
|
21
|
-
export { SearchBar } from
|
|
22
|
-
export { Select } from
|
|
23
|
-
export { Slider } from
|
|
24
|
-
export { VolumeSlider } from
|
|
25
|
-
export { TextArea } from
|
|
26
|
-
export { TextInput } from
|
|
27
|
-
export { PasswordInput } from
|
|
15
|
+
export { AutoComplete } from './Inputs/TextInputs/AutoComplete';
|
|
16
|
+
export { Button } from './Inputs/Buttons/Button';
|
|
17
|
+
export { UnstyledButton } from './Inputs/Buttons/UnstyledButton';
|
|
18
|
+
export { Checkbox } from './Inputs/Controls/Checkbox';
|
|
19
|
+
export { Toggle } from './Inputs/Controls/Toggle';
|
|
20
|
+
export { FontSelect } from './Inputs/Dropdowns/FontSelect';
|
|
21
|
+
export { MultiSelect } from './Inputs/Dropdowns/MultiSelect';
|
|
22
|
+
export { SearchBar } from './Inputs/TextInputs/SearchBar';
|
|
23
|
+
export { Select } from './Inputs/Dropdowns/Select';
|
|
24
|
+
export { Slider } from './Inputs/Sliders/Slider';
|
|
25
|
+
export { VolumeSlider } from './Inputs/Sliders/VolumeSlider';
|
|
26
|
+
export { TextArea } from './Inputs/TextInputs/TextArea';
|
|
27
|
+
export { TextInput } from './Inputs/TextInputs/TextInput';
|
|
28
|
+
export { PasswordInput } from './Inputs/TextInputs/PasswordInput';
|
|
29
|
+
export { DatePicker } from './Inputs/DatePickers/DatePicker';
|
|
28
30
|
//Layout
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
31
|
+
export { AutoGrid } from './Layout/AutoGrid';
|
|
32
|
+
export { Grid } from './Layout/Grid';
|
|
33
|
+
export { Box } from './Layout/Box';
|
|
34
|
+
export { Center } from './Layout/Center';
|
|
35
|
+
export { Divider } from './Layout/Divider';
|
|
36
|
+
export { Frame } from './Layout/Frame';
|
|
37
|
+
export { Group } from './Layout/Group';
|
|
38
|
+
export { Loader } from './Layout/Loader';
|
|
39
|
+
export { Stack } from './Layout/Stack';
|
|
40
|
+
export { Card } from './Layout/Card';
|
|
41
|
+
export { SectionCard } from './Layout/SectionCard';
|
|
42
|
+
export { Tabs } from './Layout/Tabs';
|
|
36
43
|
//Typography
|
|
37
|
-
export { CollapsibleText } from
|
|
38
|
-
export { Text } from
|
|
39
|
-
export { Title } from
|
|
44
|
+
export { CollapsibleText } from './Typography/CollapsibleText';
|
|
45
|
+
export { Text } from './Typography/Text';
|
|
46
|
+
export { Title } from './Typography/Title';
|
|
47
|
+
export { Fraction } from './Typography/Fraction';
|
|
40
48
|
//Misc
|
|
41
|
-
export { Transition } from
|
|
42
|
-
export {
|
|
43
|
-
export { useMediaQuery } from "./Misc/MediaQuery";
|
|
49
|
+
export { Transition } from './Misc/Transition';
|
|
50
|
+
export { IconBadge } from './Misc/IconBadge';
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
export declare const gray: {
|
|
2
|
+
readonly 25: "#F8FAFC";
|
|
3
|
+
readonly 50: "#EDEDED";
|
|
4
|
+
readonly 100: "#D9D9D9";
|
|
5
|
+
readonly 200: "#6D6D6D";
|
|
6
|
+
readonly 300: "#3F3F3F";
|
|
7
|
+
};
|
|
1
8
|
export declare const neutral: {
|
|
2
9
|
readonly 25: "#F8FAFC";
|
|
3
10
|
readonly 50: "#EDEDED";
|
|
@@ -5,6 +12,13 @@ export declare const neutral: {
|
|
|
5
12
|
readonly 200: "#6D6D6D";
|
|
6
13
|
readonly 300: "#3F3F3F";
|
|
7
14
|
};
|
|
15
|
+
export declare const blue: {
|
|
16
|
+
readonly 25: "#EEFAFF";
|
|
17
|
+
readonly 50: "#BDEAFF";
|
|
18
|
+
readonly 100: "#74D4FF";
|
|
19
|
+
readonly 200: "#00A6F4";
|
|
20
|
+
readonly 300: "#0081CE";
|
|
21
|
+
};
|
|
8
22
|
export declare const primary: {
|
|
9
23
|
readonly 25: "#EEFAFF";
|
|
10
24
|
readonly 50: "#BDEAFF";
|
|
@@ -12,30 +26,58 @@ export declare const primary: {
|
|
|
12
26
|
readonly 200: "#00A6F4";
|
|
13
27
|
readonly 300: "#0081CE";
|
|
14
28
|
};
|
|
15
|
-
export declare const
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
29
|
+
export declare const green: {
|
|
30
|
+
readonly 25: "#E6F4E7";
|
|
31
|
+
readonly 50: "#E6F4E7";
|
|
32
|
+
readonly 100: "#00C951";
|
|
33
|
+
readonly 200: "#00A63E";
|
|
34
|
+
readonly 300: "#008236";
|
|
20
35
|
};
|
|
21
36
|
export declare const success: {
|
|
37
|
+
readonly 25: "#E6F4E7";
|
|
22
38
|
readonly 50: "#E6F4E7";
|
|
23
39
|
readonly 100: "#00C951";
|
|
24
40
|
readonly 200: "#00A63E";
|
|
25
41
|
readonly 300: "#008236";
|
|
26
42
|
};
|
|
43
|
+
export declare const yellow: {
|
|
44
|
+
readonly 25: "#FFF3E0";
|
|
45
|
+
readonly 50: "#FFE5B4";
|
|
46
|
+
readonly 100: "#FE9A00";
|
|
47
|
+
readonly 200: "#E17100";
|
|
48
|
+
readonly 300: "#973C00";
|
|
49
|
+
};
|
|
27
50
|
export declare const warning: {
|
|
51
|
+
readonly 25: "#FFF3E0";
|
|
28
52
|
readonly 50: "#FFE5B4";
|
|
29
53
|
readonly 100: "#FE9A00";
|
|
30
54
|
readonly 200: "#E17100";
|
|
31
55
|
readonly 300: "#973C00";
|
|
32
56
|
};
|
|
57
|
+
export declare const red: {
|
|
58
|
+
readonly 25: "#FFE5E6";
|
|
59
|
+
readonly 50: "#FFD7D9";
|
|
60
|
+
readonly 100: "#FB2C36";
|
|
61
|
+
readonly 200: "#C10007";
|
|
62
|
+
readonly 300: "#9F0712";
|
|
63
|
+
};
|
|
33
64
|
export declare const error: {
|
|
65
|
+
readonly 25: "#FFE5E6";
|
|
34
66
|
readonly 50: "#FFD7D9";
|
|
35
67
|
readonly 100: "#FB2C36";
|
|
36
68
|
readonly 200: "#C10007";
|
|
37
69
|
readonly 300: "#9F0712";
|
|
38
70
|
};
|
|
71
|
+
export declare const purple: {
|
|
72
|
+
readonly 50: "#EFEAFF";
|
|
73
|
+
readonly 100: "#D6C8FF";
|
|
74
|
+
readonly 200: "#7D63C8";
|
|
75
|
+
};
|
|
76
|
+
export declare const salmon: {
|
|
77
|
+
readonly 50: "#FFEAE6";
|
|
78
|
+
readonly 100: "#FFD1C7";
|
|
79
|
+
readonly 200: "#FF806F";
|
|
80
|
+
};
|
|
39
81
|
export declare const colors: {
|
|
40
82
|
readonly neutral: {
|
|
41
83
|
readonly 25: "#F8FAFC";
|
|
@@ -51,29 +93,73 @@ export declare const colors: {
|
|
|
51
93
|
readonly 200: "#00A6F4";
|
|
52
94
|
readonly 300: "#0081CE";
|
|
53
95
|
};
|
|
54
|
-
readonly secondary: {
|
|
55
|
-
readonly 50: "#E8F5E9";
|
|
56
|
-
readonly 100: "#C8E6C9";
|
|
57
|
-
readonly 200: "#81C784";
|
|
58
|
-
readonly 300: "#4CAF50";
|
|
59
|
-
};
|
|
60
96
|
readonly success: {
|
|
97
|
+
readonly 25: "#E6F4E7";
|
|
61
98
|
readonly 50: "#E6F4E7";
|
|
62
99
|
readonly 100: "#00C951";
|
|
63
100
|
readonly 200: "#00A63E";
|
|
64
101
|
readonly 300: "#008236";
|
|
65
102
|
};
|
|
66
103
|
readonly warning: {
|
|
104
|
+
readonly 25: "#FFF3E0";
|
|
67
105
|
readonly 50: "#FFE5B4";
|
|
68
106
|
readonly 100: "#FE9A00";
|
|
69
107
|
readonly 200: "#E17100";
|
|
70
108
|
readonly 300: "#973C00";
|
|
71
109
|
};
|
|
72
110
|
readonly error: {
|
|
111
|
+
readonly 25: "#FFE5E6";
|
|
73
112
|
readonly 50: "#FFD7D9";
|
|
74
113
|
readonly 100: "#FB2C36";
|
|
75
114
|
readonly 200: "#C10007";
|
|
76
115
|
readonly 300: "#9F0712";
|
|
77
116
|
};
|
|
78
117
|
};
|
|
118
|
+
export declare const palettes: {
|
|
119
|
+
readonly blue: {
|
|
120
|
+
readonly 25: "#EEFAFF";
|
|
121
|
+
readonly 50: "#BDEAFF";
|
|
122
|
+
readonly 100: "#74D4FF";
|
|
123
|
+
readonly 200: "#00A6F4";
|
|
124
|
+
readonly 300: "#0081CE";
|
|
125
|
+
};
|
|
126
|
+
readonly green: {
|
|
127
|
+
readonly 25: "#E6F4E7";
|
|
128
|
+
readonly 50: "#E6F4E7";
|
|
129
|
+
readonly 100: "#00C951";
|
|
130
|
+
readonly 200: "#00A63E";
|
|
131
|
+
readonly 300: "#008236";
|
|
132
|
+
};
|
|
133
|
+
readonly yellow: {
|
|
134
|
+
readonly 25: "#FFF3E0";
|
|
135
|
+
readonly 50: "#FFE5B4";
|
|
136
|
+
readonly 100: "#FE9A00";
|
|
137
|
+
readonly 200: "#E17100";
|
|
138
|
+
readonly 300: "#973C00";
|
|
139
|
+
};
|
|
140
|
+
readonly red: {
|
|
141
|
+
readonly 25: "#FFE5E6";
|
|
142
|
+
readonly 50: "#FFD7D9";
|
|
143
|
+
readonly 100: "#FB2C36";
|
|
144
|
+
readonly 200: "#C10007";
|
|
145
|
+
readonly 300: "#9F0712";
|
|
146
|
+
};
|
|
147
|
+
readonly purple: {
|
|
148
|
+
readonly 50: "#EFEAFF";
|
|
149
|
+
readonly 100: "#D6C8FF";
|
|
150
|
+
readonly 200: "#7D63C8";
|
|
151
|
+
};
|
|
152
|
+
readonly salmon: {
|
|
153
|
+
readonly 50: "#FFEAE6";
|
|
154
|
+
readonly 100: "#FFD1C7";
|
|
155
|
+
readonly 200: "#FF806F";
|
|
156
|
+
};
|
|
157
|
+
readonly gray: {
|
|
158
|
+
readonly 25: "#F8FAFC";
|
|
159
|
+
readonly 50: "#EDEDED";
|
|
160
|
+
readonly 100: "#D9D9D9";
|
|
161
|
+
readonly 200: "#6D6D6D";
|
|
162
|
+
readonly 300: "#3F3F3F";
|
|
163
|
+
};
|
|
164
|
+
};
|
|
79
165
|
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/constants/colors.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO;;;;;;
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/constants/colors.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI;;;;;;CAMP,CAAC;AACX,eAAO,MAAM,OAAO;;;;;;CAAO,CAAC;AAE5B,eAAO,MAAM,IAAI;;;;;;CAMP,CAAC;AACX,eAAO,MAAM,OAAO;;;;;;CAAO,CAAC;AAE5B,eAAO,MAAM,KAAK;;;;;;CAMR,CAAC;AACX,eAAO,MAAM,OAAO;;;;;;CAAQ,CAAC;AAE7B,eAAO,MAAM,MAAM;;;;;;CAMT,CAAC;AACX,eAAO,MAAM,OAAO;;;;;;CAAS,CAAC;AAE9B,eAAO,MAAM,GAAG;;;;;;CAMN,CAAC;AACX,eAAO,MAAM,KAAK;;;;;;CAAM,CAAC;AAGzB,eAAO,MAAM,MAAM;;;;CAIT,CAAC;AAEX,eAAO,MAAM,MAAM;;;;CAIT,CAAC;AAGX,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMT,CAAC;AAGX,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQX,CAAC"}
|
package/dist/constants/colors.js
CHANGED
|
@@ -1,53 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
export const neutral = {
|
|
1
|
+
export const gray = {
|
|
3
2
|
25: '#F8FAFC',
|
|
4
3
|
50: '#EDEDED',
|
|
5
4
|
100: '#D9D9D9',
|
|
6
5
|
200: '#6D6D6D',
|
|
7
6
|
300: '#3F3F3F',
|
|
8
7
|
};
|
|
9
|
-
|
|
10
|
-
export const
|
|
8
|
+
export const neutral = gray;
|
|
9
|
+
export const blue = {
|
|
11
10
|
25: '#EEFAFF',
|
|
12
11
|
50: '#BDEAFF',
|
|
13
12
|
100: '#74D4FF',
|
|
14
13
|
200: '#00A6F4',
|
|
15
14
|
300: '#0081CE',
|
|
16
15
|
};
|
|
17
|
-
|
|
18
|
-
export const
|
|
19
|
-
|
|
20
|
-
100: '#C8E6C9',
|
|
21
|
-
200: '#81C784',
|
|
22
|
-
300: '#4CAF50',
|
|
23
|
-
};
|
|
24
|
-
// Success Colors - Greens
|
|
25
|
-
export const success = {
|
|
16
|
+
export const primary = blue;
|
|
17
|
+
export const green = {
|
|
18
|
+
25: '#E6F4E7',
|
|
26
19
|
50: '#E6F4E7',
|
|
27
20
|
100: '#00C951',
|
|
28
21
|
200: '#00A63E',
|
|
29
22
|
300: '#008236',
|
|
30
23
|
};
|
|
31
|
-
|
|
32
|
-
export const
|
|
24
|
+
export const success = green;
|
|
25
|
+
export const yellow = {
|
|
26
|
+
25: '#FFF3E0',
|
|
33
27
|
50: '#FFE5B4',
|
|
34
28
|
100: '#FE9A00',
|
|
35
29
|
200: '#E17100',
|
|
36
30
|
300: '#973C00',
|
|
37
31
|
};
|
|
38
|
-
|
|
39
|
-
export const
|
|
32
|
+
export const warning = yellow;
|
|
33
|
+
export const red = {
|
|
34
|
+
25: '#FFE5E6',
|
|
40
35
|
50: '#FFD7D9',
|
|
41
36
|
100: '#FB2C36',
|
|
42
37
|
200: '#C10007',
|
|
43
38
|
300: '#9F0712',
|
|
44
39
|
};
|
|
45
|
-
|
|
40
|
+
export const error = red;
|
|
41
|
+
// Purple Colors
|
|
42
|
+
export const purple = {
|
|
43
|
+
50: '#EFEAFF',
|
|
44
|
+
100: '#D6C8FF',
|
|
45
|
+
200: '#7D63C8',
|
|
46
|
+
};
|
|
47
|
+
export const salmon = {
|
|
48
|
+
50: '#FFEAE6',
|
|
49
|
+
100: '#FFD1C7',
|
|
50
|
+
200: '#FF806F',
|
|
51
|
+
};
|
|
52
|
+
// Semantic/functional color exports - for use in UI, actions, states, etc.
|
|
46
53
|
export const colors = {
|
|
47
54
|
neutral,
|
|
48
55
|
primary,
|
|
49
|
-
secondary,
|
|
50
56
|
success,
|
|
51
57
|
warning,
|
|
52
58
|
error,
|
|
53
59
|
};
|
|
60
|
+
// Color palette exports - for purely aesthetic purpose, i.e. icons, backgrounds, etc.
|
|
61
|
+
export const palettes = {
|
|
62
|
+
blue,
|
|
63
|
+
green,
|
|
64
|
+
yellow,
|
|
65
|
+
red,
|
|
66
|
+
purple,
|
|
67
|
+
salmon,
|
|
68
|
+
gray,
|
|
69
|
+
};
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { useCopy } from '
|
|
2
|
-
export { useMediaQuery } from '
|
|
3
|
-
export { useNotifications } from '
|
|
4
|
-
export { useConfirmationModal } from '
|
|
5
|
-
export { useInfoModal } from '
|
|
1
|
+
export { useCopy } from './useCopy';
|
|
2
|
+
export { useMediaQuery } from './useMediaQuery';
|
|
3
|
+
export { useNotifications } from './useNotifications';
|
|
4
|
+
export { useConfirmationModal } from './useConfirmationModal';
|
|
5
|
+
export { useInfoModal } from './useInfoModal';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { useCopy } from '
|
|
2
|
-
export { useMediaQuery } from '
|
|
3
|
-
export { useNotifications } from '
|
|
4
|
-
export { useConfirmationModal } from '
|
|
5
|
-
export { useInfoModal } from '
|
|
1
|
+
export { useCopy } from './useCopy';
|
|
2
|
+
export { useMediaQuery } from './useMediaQuery';
|
|
3
|
+
export { useNotifications } from './useNotifications';
|
|
4
|
+
export { useConfirmationModal } from './useConfirmationModal';
|
|
5
|
+
export { useInfoModal } from './useInfoModal';
|
package/dist/{components/Info/Modals/ConfirmationModal.d.ts → hooks/useConfirmationModal.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modalVariants } from '
|
|
2
|
+
import { modalVariants } from '../components/Info/Modals/variants';
|
|
3
3
|
export declare const useConfirmationModal: () => {
|
|
4
4
|
show: (options: {
|
|
5
5
|
variant?: Exclude<keyof typeof modalVariants, "error">;
|
|
@@ -15,4 +15,4 @@ export declare const useConfirmationModal: () => {
|
|
|
15
15
|
close: (modalId: string) => void;
|
|
16
16
|
closeAll: () => void;
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=
|
|
18
|
+
//# sourceMappingURL=useConfirmationModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConfirmationModal.d.ts","sourceRoot":"","sources":["../../src/hooks/useConfirmationModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAInE,eAAO,MAAM,oBAAoB;oBACR;QACrB,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,OAAO,aAAa,EAAE,OAAO,CAAC,CAAC;QACvD,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;QACvB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;QACtB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KACxB;qBAkGuB,MAAM;;CAa/B,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { modals } from '@mantine/modals';
|
|
3
|
-
import { neutral } from '
|
|
4
|
-
import { Title } from '
|
|
5
|
-
import { Stack } from '
|
|
6
|
-
import { Center } from '
|
|
7
|
-
import { modalVariants } from '
|
|
8
|
-
import { Button } from '
|
|
9
|
-
import { Group } from '
|
|
3
|
+
import { neutral } from '../constants/colors';
|
|
4
|
+
import { Title } from '../components/Typography/Title';
|
|
5
|
+
import { Stack } from '../components/Layout/Stack';
|
|
6
|
+
import { Center } from '../components/Layout/Center';
|
|
7
|
+
import { modalVariants } from '../components/Info/Modals/variants';
|
|
8
|
+
import { Button } from '../components/Inputs/Buttons/Button';
|
|
9
|
+
import { Group } from '../components/Layout/Group';
|
|
10
10
|
export const useConfirmationModal = () => {
|
|
11
11
|
const show = (options) => {
|
|
12
12
|
const { variant = 'confirm', title, message, confirmLabel, cancelLabel, icon, onConfirm, onCancel, size = '40rem', } = options;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCopy.d.ts","sourceRoot":"","sources":["../../src/hooks/useCopy.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO;oBAIK;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QACjC,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;KAC9B;CAmBF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useClipboard } from '@mantine/hooks';
|
|
2
|
-
import { useNotifications } from '
|
|
2
|
+
import { useNotifications } from './useNotifications';
|
|
3
3
|
export const useCopy = () => {
|
|
4
4
|
const clipboard = useClipboard();
|
|
5
5
|
const notifications = useNotifications();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modalVariants } from '
|
|
2
|
+
import { modalVariants } from '../components/Info/Modals/variants';
|
|
3
3
|
export declare const useInfoModal: () => {
|
|
4
4
|
show: (options: {
|
|
5
5
|
variant?: keyof typeof modalVariants;
|
|
@@ -12,4 +12,4 @@ export declare const useInfoModal: () => {
|
|
|
12
12
|
close: (modalId: string) => void;
|
|
13
13
|
closeAll: () => void;
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=
|
|
15
|
+
//# sourceMappingURL=useInfoModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInfoModal.d.ts","sourceRoot":"","sources":["../../src/hooks/useInfoModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAGnE,eAAO,MAAM,YAAY;oBACA;QACrB,OAAO,CAAC,EAAE,MAAM,OAAO,aAAa,CAAC;QACrC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;QACvB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KACxB;qBA8EuB,MAAM;;CAa/B,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { modals } from '@mantine/modals';
|
|
3
|
-
import { neutral } from '
|
|
4
|
-
import { Title } from '
|
|
5
|
-
import { Stack } from '
|
|
6
|
-
import { Center } from '
|
|
7
|
-
import { modalVariants } from '
|
|
8
|
-
import { Button } from '
|
|
3
|
+
import { neutral } from '../constants/colors';
|
|
4
|
+
import { Title } from '../components/Typography/Title';
|
|
5
|
+
import { Stack } from '../components/Layout/Stack';
|
|
6
|
+
import { Center } from '../components/Layout/Center';
|
|
7
|
+
import { modalVariants } from '../components/Info/Modals/variants';
|
|
8
|
+
import { Button } from '../components/Inputs/Buttons/Button';
|
|
9
9
|
export const useInfoModal = () => {
|
|
10
10
|
const show = (options) => {
|
|
11
11
|
const { variant = 'info', title, message, icon, onConfirm, size = '35rem' } = options;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMediaQuery.d.ts","sourceRoot":"","sources":["../../src/hooks/useMediaQuery.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEvE,eAAO,MAAM,aAAa,6BAAuB,CAAC"}
|
package/dist/{components/Info/Notifications/Notifications.d.ts → hooks/useNotifications.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { componentVariants } from '
|
|
1
|
+
import { componentVariants } from '../components/Info/Notifications/variants';
|
|
2
2
|
export declare const useNotifications: () => {
|
|
3
3
|
show: (options: {
|
|
4
4
|
variant?: keyof typeof componentVariants;
|
|
@@ -13,4 +13,4 @@ export declare const useNotifications: () => {
|
|
|
13
13
|
}) => string;
|
|
14
14
|
hide: (id: string) => Promise<void>;
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=
|
|
16
|
+
//# sourceMappingURL=useNotifications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNotifications.d.ts","sourceRoot":"","sources":["../../src/hooks/useNotifications.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAE9E,eAAO,MAAM,gBAAgB;oBAMJ;QACrB,OAAO,CAAC,EAAE,MAAM,OAAO,iBAAiB,CAAC;QACzC,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,EAAE,CAAC,EAAE,MAAM,CAAC;KACb;;2BAmB6B;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;eA7BzC,MAAM;CAiD/B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { notifications as mantineNotifications } from '@mantine/notifications';
|
|
2
|
-
import { componentVariants } from '
|
|
2
|
+
import { componentVariants } from '../components/Info/Notifications/variants';
|
|
3
3
|
export const useNotifications = () => {
|
|
4
4
|
const hide = async (id) => {
|
|
5
5
|
mantineNotifications.hide(id);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiv/ui",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"author": "Taiv",
|
|
5
5
|
"description": "Taiv's web UI Toolkit built on Mantine v6",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -14,11 +14,15 @@
|
|
|
14
14
|
"clean": "rm -rf dist"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@
|
|
17
|
+
"@emotion/react": "^11.14.0",
|
|
18
18
|
"@mantine/core": "^6.0.0",
|
|
19
|
+
"@mantine/dates": "^6.0.22",
|
|
19
20
|
"@mantine/hooks": "^6.0.0",
|
|
20
21
|
"@mantine/modals": "^6.0.0",
|
|
21
|
-
"@mantine/notifications": "^6.0.0"
|
|
22
|
+
"@mantine/notifications": "^6.0.0",
|
|
23
|
+
"@tabler/icons-react": "^2.47.0",
|
|
24
|
+
"dayjs": "^1.11.18",
|
|
25
|
+
"recharts": "^3.1.2"
|
|
22
26
|
},
|
|
23
27
|
"peerDependencies": {
|
|
24
28
|
"react": "^17.0.0",
|
|
@@ -30,9 +34,20 @@
|
|
|
30
34
|
"typescript": "^5.0.2"
|
|
31
35
|
},
|
|
32
36
|
"exports": {
|
|
33
|
-
".": "./dist/index.js",
|
|
34
|
-
"./core": "./dist/components/index.js",
|
|
37
|
+
".": "./dist/components/index.js",
|
|
35
38
|
"./hooks": "./dist/hooks/index.js",
|
|
36
39
|
"./constants": "./dist/constants/index.js"
|
|
40
|
+
},
|
|
41
|
+
"overrides": {
|
|
42
|
+
"@reduxjs/toolkit": {
|
|
43
|
+
".": "^1.9.7",
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"react": "17.0.2"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"react-redux": {
|
|
49
|
+
".": "^8.1.3",
|
|
50
|
+
"react": "17.0.2"
|
|
51
|
+
}
|
|
37
52
|
}
|
|
38
|
-
}
|
|
53
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Info/Modals/ConfirmationModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,eAAO,MAAM,oBAAoB;oBACR;QACrB,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,OAAO,aAAa,EAAE,OAAO,CAAC,CAAC;QACvD,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;QACvB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;QACtB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KACxB;qBAkGuB,MAAM;;CAa/B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InfoModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Info/Modals/InfoModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAG3C,eAAO,MAAM,YAAY;oBACA;QACrB,OAAO,CAAC,EAAE,MAAM,OAAO,aAAa,CAAC;QACrC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;QACvB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KACxB;qBA8EuB,MAAM;;CAa/B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Notifications.d.ts","sourceRoot":"","sources":["../../../../src/components/Info/Notifications/Notifications.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,eAAO,MAAM,gBAAgB;oBAMJ;QACrB,OAAO,CAAC,EAAE,MAAM,OAAO,iBAAiB,CAAC;QACzC,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,EAAE,CAAC,EAAE,MAAM,CAAC;KACb;;2BAmB6B;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;eA7BzC,MAAM;CAiD/B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Copy.d.ts","sourceRoot":"","sources":["../../../src/components/Misc/Copy.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO;oBAIK;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QACjC,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;KAC9B;CAmBF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MediaQuery.d.ts","sourceRoot":"","sources":["../../../src/components/Misc/MediaQuery.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEvE,eAAO,MAAM,aAAa,6BAAuB,CAAC"}
|
|
File without changes
|