@skalfa/skalfa-app 1.0.0 → 1.0.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/.env.example +43 -43
- package/.github/workflows/publish.yml +39 -0
- package/CONTRIBUTING.md +45 -0
- package/LICENSE +21 -0
- package/README.md +91 -28
- package/app/auth/edit/page.tsx +65 -65
- package/app/auth/login/page.tsx +63 -63
- package/app/auth/me/page.tsx +58 -58
- package/app/auth/register/page.tsx +69 -69
- package/app/auth/verify/page.tsx +53 -53
- package/app/dashboard/user/page.tsx +76 -76
- package/app/layout.tsx +37 -37
- package/app/manifest.ts +25 -0
- package/app/page.tsx +13 -13
- package/barrels.json +5 -5
- package/blueprints/starter.blueprint.json +102 -102
- package/bun.lock +916 -0
- package/components/base.components/chip/Chip.component.tsx +39 -39
- package/components/base.components/document/DocumentViewer.component.tsx +163 -163
- package/components/base.components/document/ExportExcel.component.tsx +340 -340
- package/components/base.components/document/ImportExcel.component.tsx +315 -315
- package/components/base.components/document/PrintTable.component.tsx +204 -204
- package/components/base.components/document/RenderPDF.component.tsx +415 -415
- package/components/base.components/input/Checkbox.component.tsx +109 -109
- package/components/base.components/input/Input.component.tsx +332 -332
- package/components/base.components/input/InputCheckbox.component.tsx +174 -174
- package/components/base.components/input/InputCurrency.component.tsx +163 -163
- package/components/base.components/input/InputDate.component.tsx +352 -352
- package/components/base.components/input/InputDatetime.component.tsx +260 -260
- package/components/base.components/input/InputDocument.component.tsx +351 -351
- package/components/base.components/input/InputImage.component.tsx +533 -533
- package/components/base.components/input/InputMap.component.tsx +317 -317
- package/components/base.components/input/InputNumber.component.tsx +192 -192
- package/components/base.components/input/InputOtp.component.tsx +169 -169
- package/components/base.components/input/InputPassword.component.tsx +236 -236
- package/components/base.components/input/InputRadio.component.tsx +175 -175
- package/components/base.components/input/InputTime.component.tsx +275 -275
- package/components/base.components/input/InputValues.component.tsx +68 -68
- package/components/base.components/input/Radio.component.tsx +102 -102
- package/components/base.components/input/Select.component.tsx +541 -541
- package/components/base.components/modal/BottomSheet.component.tsx +245 -245
- package/components/base.components/supervision/FormSupervision.component.tsx +433 -433
- package/components/base.components/supervision/TableSupervision.component.tsx +697 -697
- package/components/base.components/table/ControlBar.component.tsx +497 -497
- package/components/base.components/table/FilterComponent.tsx +518 -518
- package/components/base.components/table/Table.component.tsx +469 -469
- package/components/base.components/typography/TypographyArticle.component.tsx +26 -26
- package/components/base.components/typography/TypographyColumn.component.tsx +20 -20
- package/components/base.components/typography/TypographyContent.component.tsx +20 -20
- package/components/base.components/typography/TypographyTips.component.tsx +20 -20
- package/components/base.components/wrap/Draggable.component.tsx +303 -303
- package/components/base.components/wrap/IDBProvider.tsx +12 -12
- package/components/base.components/wrap/Image.component.tsx +9 -9
- package/components/base.components/wrap/ShortcutProvider.tsx +57 -57
- package/components/base.components/wrap/Swipe.component.tsx +93 -93
- package/components/index.ts +2 -2
- package/contexts/AppProvider.tsx +11 -11
- package/contexts/Auth.context.tsx +64 -64
- package/contexts/Toggle.context.tsx +44 -44
- package/next.config.ts +15 -1
- package/package.json +14 -13
- package/public/204.svg +19 -19
- package/public/500.svg +39 -39
- package/public/icon-192.png +0 -0
- package/public/icon-512.png +0 -0
- package/public/images/logo-fill.png +0 -0
- package/public/images/logo-full-fill.png +0 -0
- package/public/images/logo-full.png +0 -0
- package/public/images/logo.png +0 -0
- package/schema/idb/app.schema.ts +8 -8
- package/src-tauri/Cargo.toml +14 -0
- package/src-tauri/build.rs +3 -0
- package/src-tauri/capabilities/default.json +11 -0
- package/src-tauri/icons/128x128.png +0 -0
- package/src-tauri/icons/128x128@2x.png +0 -0
- package/src-tauri/icons/32x32.png +0 -0
- package/src-tauri/icons/icon.icns +0 -0
- package/src-tauri/icons/icon.ico +0 -0
- package/src-tauri/src/main.rs +7 -0
- package/src-tauri/tauri.conf.json +36 -0
- package/styles/globals.css +231 -231
- package/styles/tailwind.safelist +68 -68
- package/utils/commands/barrels.ts +27 -27
- package/utils/commands/light.ts +21 -21
- package/utils/commands/logger.ts +42 -42
- package/utils/commands/stubs/table-blueprint.stub +12 -12
- package/utils/commands/use-pdf.ts +29 -29
package/styles/globals.css
CHANGED
|
@@ -1,231 +1,231 @@
|
|
|
1
|
-
@import "tailwindcss";
|
|
2
|
-
|
|
3
|
-
@theme {
|
|
4
|
-
--color-background: #FAFDFF;
|
|
5
|
-
--color-foreground: #575757;
|
|
6
|
-
--color-light-foreground: #9b9b9b;
|
|
7
|
-
--color-primary: #5aafff;
|
|
8
|
-
--color-light-primary: #baddfd;
|
|
9
|
-
--color-secondary: #04a9ca;
|
|
10
|
-
--color-light-secondary: #9ae9f9;
|
|
11
|
-
--color-danger: #f3777a;
|
|
12
|
-
--color-light-danger: #fececf;
|
|
13
|
-
--color-warning: #f57e2c;
|
|
14
|
-
--color-light-warning: #ffd7bc;
|
|
15
|
-
--color-success: #69c9ca;
|
|
16
|
-
--color-light-success: #9af8f9;
|
|
17
|
-
--color-disable: #c4c3c3;
|
|
18
|
-
--color-light-disable: #f4f4f4;
|
|
19
|
-
|
|
20
|
-
--animate-intro-fade: intro_fade 0.1s ease-in-out forwards;
|
|
21
|
-
@keyframes intro_fade {
|
|
22
|
-
from {
|
|
23
|
-
opacity: 0;
|
|
24
|
-
}
|
|
25
|
-
to {
|
|
26
|
-
opacity: 1;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
--animate-intro-right: intro_right 0.1s ease-in-out;
|
|
30
|
-
@keyframes intro_right {
|
|
31
|
-
from {
|
|
32
|
-
transform: translateX(100);
|
|
33
|
-
opacity: 0;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
--animate-intro-down: intro_down 0.1s ease-in-out;
|
|
37
|
-
@keyframes intro_down {
|
|
38
|
-
from {
|
|
39
|
-
transform: translateY(-100);
|
|
40
|
-
opacity: 0;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
body {
|
|
46
|
-
@apply bg-background text-foreground max-w-full overflow-x-hidden font-normal;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
* {
|
|
50
|
-
@apply transition duration-75 border-foreground/30;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@layer base {
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
@layer components {
|
|
58
|
-
.button {
|
|
59
|
-
@apply whitespace-nowrap cursor-pointer disabled:!text-disable disabled:!bg-light-disable;
|
|
60
|
-
transform: scale(1);
|
|
61
|
-
filter: brightness(0.94);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.button:disabled {
|
|
65
|
-
cursor: default;
|
|
66
|
-
pointer-events: none;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.button:hover {
|
|
70
|
-
/* transform: scale(1.02); */
|
|
71
|
-
filter: brightness(1);
|
|
72
|
-
/* box-shadow: 0 2px 5px 0 rgba(87, 87, 87, 0.15); */
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.button:active {
|
|
76
|
-
transform: scale(1);
|
|
77
|
-
filter: brightness(0.9);
|
|
78
|
-
box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, 0.25);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.button-loading {
|
|
82
|
-
border-radius: 50%;
|
|
83
|
-
display: inline-block;
|
|
84
|
-
border-top: 2.5px solid;
|
|
85
|
-
border-left: 2.5px solid;
|
|
86
|
-
border-right: 2.5px solid transparent;
|
|
87
|
-
box-sizing: border-box;
|
|
88
|
-
animation: rotation 1s linear infinite;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
@keyframes rotation {
|
|
92
|
-
0% {
|
|
93
|
-
transform: rotate(0deg);
|
|
94
|
-
}
|
|
95
|
-
100% {
|
|
96
|
-
transform: rotate(360deg);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.input {
|
|
101
|
-
@apply px-4 py-2 rounded-[6px] text-foreground bg-background w-full transition duration-150 ease-in-out focus:outline-none border border-slate-300 placeholder:font-normal placeholder:text-light-foreground focus:!border-primary disabled:opacity-60;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.input-file {
|
|
105
|
-
@apply file:-mx-3 file:-my-1 file:cursor-pointer file:overflow-hidden file:rounded-md file:border-0 file:border-solid file:border-inherit file:[margin-inline-end:0.75rem] file:bg-slate-200 file:px-3 file:py-1 file:text-slate-500;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.input-label {
|
|
109
|
-
@apply select-none text-sm text-foreground;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.input-error {
|
|
113
|
-
@apply !border-light-danger bg-light-danger/20;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.input-icon {
|
|
117
|
-
@apply absolute top-1/2 -translate-y-1/2 text-light-foreground;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.input-error-message {
|
|
121
|
-
@apply text-xs text-danger;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.input-tip {
|
|
125
|
-
@apply text-xs text-light-foreground;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.input-suggest-container {
|
|
129
|
-
@apply py-2 rounded-lg absolute left-0 w-full bg-background shadow z-30 overflow-hidden ease-in-out max-h-[200px] overflow-y-auto;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.input-suggest {
|
|
133
|
-
@apply py-1 px-4 cursor-pointer w-full list-none text-foreground hover:text-primary;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.input-values-container {
|
|
137
|
-
@apply flex gap-2 flex-nowrap w-max;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.input-values-item {
|
|
141
|
-
@apply flex text-sm px-1 pl-2 justify-between bg-white text-foreground border items-center rounded-[4px];
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.input-values-delete {
|
|
145
|
-
@apply text-xs cursor-pointer text-light-foreground pl-2 pr-1 py-1 hover:text-danger;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.input-scroll::-webkit-scrollbar {
|
|
149
|
-
width: 5px;
|
|
150
|
-
height: 5px;
|
|
151
|
-
position: fixed;
|
|
152
|
-
top: 0;
|
|
153
|
-
left: 0;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.input-scroll:hover::-webkit-scrollbar {
|
|
157
|
-
width: 5px;
|
|
158
|
-
height: 5px;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.input-scroll::-webkit-scrollbar-track {
|
|
162
|
-
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
|
|
163
|
-
border-radius: 10px;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.input-scroll::-webkit-scrollbar-thumb {
|
|
167
|
-
background: rgba(0, 0, 0, 0.1);
|
|
168
|
-
border-radius: 10px;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.input-scroll::-webkit-scrollbar-thumb:hover {
|
|
172
|
-
background: rgba(0, 0, 0, 0.1);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.modal {
|
|
176
|
-
@apply isolate fixed left-1/2 -translate-x-1/2 top-[1rem] md:top-[15vh] opacity-100 bg-white z-40;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.modal-header {
|
|
180
|
-
@apply flex justify-between items-center gap-8 px-4 pt-4;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.modal-footer {
|
|
184
|
-
@apply px-4 py-2.5 mt-4 bg-background rounded-b-[6px];
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.floating-page {
|
|
188
|
-
@apply fixed top-[1rem] right-0 bg-background lg:top-0 h-screen z-40 border-t-4 md:border-t-0 md:border-l-4 !border-primary overflow-hidden overflow-y-auto;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.toast {
|
|
192
|
-
@apply isolate fixed right-5 bottom-5 opacity-100 bg-white z-40;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.modal-backdrop {
|
|
196
|
-
@apply isolate fixed left-0 top-0 z-40 w-screen h-screen bg-light-foreground/20 backdrop-blur-[1px];
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
@layer utilities {
|
|
201
|
-
body::-webkit-scrollbar,
|
|
202
|
-
.scroll::-webkit-scrollbar {
|
|
203
|
-
@apply w-[10px] h-[10px];
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.scroll-sm::-webkit-scrollbar {
|
|
207
|
-
@apply w-[7px] h-[7px];
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.scroll-lg::-webkit-scrollbar {
|
|
211
|
-
@apply w-[14px] h-[14px];
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
body::-webkit-scrollbar-thumb,
|
|
215
|
-
.scroll::-webkit-scrollbar-thumb,
|
|
216
|
-
.scroll-sm::-webkit-scrollbar-thumb,
|
|
217
|
-
.scroll-lg::-webkit-scrollbar-thumb {
|
|
218
|
-
@apply bg-light-primary/60 cursor-pointer rounded-[3px];
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
body::-webkit-scrollbar-thumb:hover,
|
|
222
|
-
.scroll:hover::-webkit-scrollbar-thumb:hover,
|
|
223
|
-
.scroll-sm:hover::-webkit-scrollbar-thumb:hover,
|
|
224
|
-
.scroll-lg:hover::-webkit-scrollbar-thumb:hover {
|
|
225
|
-
@apply bg-primary;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
.scroll-none::-webkit-scrollbar {
|
|
229
|
-
@apply w-0 h-0;
|
|
230
|
-
}
|
|
231
|
-
}
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
|
|
3
|
+
@theme {
|
|
4
|
+
--color-background: #FAFDFF;
|
|
5
|
+
--color-foreground: #575757;
|
|
6
|
+
--color-light-foreground: #9b9b9b;
|
|
7
|
+
--color-primary: #5aafff;
|
|
8
|
+
--color-light-primary: #baddfd;
|
|
9
|
+
--color-secondary: #04a9ca;
|
|
10
|
+
--color-light-secondary: #9ae9f9;
|
|
11
|
+
--color-danger: #f3777a;
|
|
12
|
+
--color-light-danger: #fececf;
|
|
13
|
+
--color-warning: #f57e2c;
|
|
14
|
+
--color-light-warning: #ffd7bc;
|
|
15
|
+
--color-success: #69c9ca;
|
|
16
|
+
--color-light-success: #9af8f9;
|
|
17
|
+
--color-disable: #c4c3c3;
|
|
18
|
+
--color-light-disable: #f4f4f4;
|
|
19
|
+
|
|
20
|
+
--animate-intro-fade: intro_fade 0.1s ease-in-out forwards;
|
|
21
|
+
@keyframes intro_fade {
|
|
22
|
+
from {
|
|
23
|
+
opacity: 0;
|
|
24
|
+
}
|
|
25
|
+
to {
|
|
26
|
+
opacity: 1;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
--animate-intro-right: intro_right 0.1s ease-in-out;
|
|
30
|
+
@keyframes intro_right {
|
|
31
|
+
from {
|
|
32
|
+
transform: translateX(100);
|
|
33
|
+
opacity: 0;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
--animate-intro-down: intro_down 0.1s ease-in-out;
|
|
37
|
+
@keyframes intro_down {
|
|
38
|
+
from {
|
|
39
|
+
transform: translateY(-100);
|
|
40
|
+
opacity: 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
body {
|
|
46
|
+
@apply bg-background text-foreground max-w-full overflow-x-hidden font-normal;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
* {
|
|
50
|
+
@apply transition duration-75 border-foreground/30;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@layer base {
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
@layer components {
|
|
58
|
+
.button {
|
|
59
|
+
@apply whitespace-nowrap cursor-pointer disabled:!text-disable disabled:!bg-light-disable;
|
|
60
|
+
transform: scale(1);
|
|
61
|
+
filter: brightness(0.94);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.button:disabled {
|
|
65
|
+
cursor: default;
|
|
66
|
+
pointer-events: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.button:hover {
|
|
70
|
+
/* transform: scale(1.02); */
|
|
71
|
+
filter: brightness(1);
|
|
72
|
+
/* box-shadow: 0 2px 5px 0 rgba(87, 87, 87, 0.15); */
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.button:active {
|
|
76
|
+
transform: scale(1);
|
|
77
|
+
filter: brightness(0.9);
|
|
78
|
+
box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, 0.25);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.button-loading {
|
|
82
|
+
border-radius: 50%;
|
|
83
|
+
display: inline-block;
|
|
84
|
+
border-top: 2.5px solid;
|
|
85
|
+
border-left: 2.5px solid;
|
|
86
|
+
border-right: 2.5px solid transparent;
|
|
87
|
+
box-sizing: border-box;
|
|
88
|
+
animation: rotation 1s linear infinite;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@keyframes rotation {
|
|
92
|
+
0% {
|
|
93
|
+
transform: rotate(0deg);
|
|
94
|
+
}
|
|
95
|
+
100% {
|
|
96
|
+
transform: rotate(360deg);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.input {
|
|
101
|
+
@apply px-4 py-2 rounded-[6px] text-foreground bg-background w-full transition duration-150 ease-in-out focus:outline-none border border-slate-300 placeholder:font-normal placeholder:text-light-foreground focus:!border-primary disabled:opacity-60;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.input-file {
|
|
105
|
+
@apply file:-mx-3 file:-my-1 file:cursor-pointer file:overflow-hidden file:rounded-md file:border-0 file:border-solid file:border-inherit file:[margin-inline-end:0.75rem] file:bg-slate-200 file:px-3 file:py-1 file:text-slate-500;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.input-label {
|
|
109
|
+
@apply select-none text-sm text-foreground;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.input-error {
|
|
113
|
+
@apply !border-light-danger bg-light-danger/20;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.input-icon {
|
|
117
|
+
@apply absolute top-1/2 -translate-y-1/2 text-light-foreground;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.input-error-message {
|
|
121
|
+
@apply text-xs text-danger;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.input-tip {
|
|
125
|
+
@apply text-xs text-light-foreground;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.input-suggest-container {
|
|
129
|
+
@apply py-2 rounded-lg absolute left-0 w-full bg-background shadow z-30 overflow-hidden ease-in-out max-h-[200px] overflow-y-auto;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.input-suggest {
|
|
133
|
+
@apply py-1 px-4 cursor-pointer w-full list-none text-foreground hover:text-primary;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.input-values-container {
|
|
137
|
+
@apply flex gap-2 flex-nowrap w-max;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.input-values-item {
|
|
141
|
+
@apply flex text-sm px-1 pl-2 justify-between bg-white text-foreground border items-center rounded-[4px];
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.input-values-delete {
|
|
145
|
+
@apply text-xs cursor-pointer text-light-foreground pl-2 pr-1 py-1 hover:text-danger;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.input-scroll::-webkit-scrollbar {
|
|
149
|
+
width: 5px;
|
|
150
|
+
height: 5px;
|
|
151
|
+
position: fixed;
|
|
152
|
+
top: 0;
|
|
153
|
+
left: 0;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.input-scroll:hover::-webkit-scrollbar {
|
|
157
|
+
width: 5px;
|
|
158
|
+
height: 5px;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.input-scroll::-webkit-scrollbar-track {
|
|
162
|
+
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
|
|
163
|
+
border-radius: 10px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.input-scroll::-webkit-scrollbar-thumb {
|
|
167
|
+
background: rgba(0, 0, 0, 0.1);
|
|
168
|
+
border-radius: 10px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.input-scroll::-webkit-scrollbar-thumb:hover {
|
|
172
|
+
background: rgba(0, 0, 0, 0.1);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.modal {
|
|
176
|
+
@apply isolate fixed left-1/2 -translate-x-1/2 top-[1rem] md:top-[15vh] opacity-100 bg-white z-40;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.modal-header {
|
|
180
|
+
@apply flex justify-between items-center gap-8 px-4 pt-4;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.modal-footer {
|
|
184
|
+
@apply px-4 py-2.5 mt-4 bg-background rounded-b-[6px];
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.floating-page {
|
|
188
|
+
@apply fixed top-[1rem] right-0 bg-background lg:top-0 h-screen z-40 border-t-4 md:border-t-0 md:border-l-4 !border-primary overflow-hidden overflow-y-auto;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.toast {
|
|
192
|
+
@apply isolate fixed right-5 bottom-5 opacity-100 bg-white z-40;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.modal-backdrop {
|
|
196
|
+
@apply isolate fixed left-0 top-0 z-40 w-screen h-screen bg-light-foreground/20 backdrop-blur-[1px];
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@layer utilities {
|
|
201
|
+
body::-webkit-scrollbar,
|
|
202
|
+
.scroll::-webkit-scrollbar {
|
|
203
|
+
@apply w-[10px] h-[10px];
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.scroll-sm::-webkit-scrollbar {
|
|
207
|
+
@apply w-[7px] h-[7px];
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.scroll-lg::-webkit-scrollbar {
|
|
211
|
+
@apply w-[14px] h-[14px];
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
body::-webkit-scrollbar-thumb,
|
|
215
|
+
.scroll::-webkit-scrollbar-thumb,
|
|
216
|
+
.scroll-sm::-webkit-scrollbar-thumb,
|
|
217
|
+
.scroll-lg::-webkit-scrollbar-thumb {
|
|
218
|
+
@apply bg-light-primary/60 cursor-pointer rounded-[3px];
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
body::-webkit-scrollbar-thumb:hover,
|
|
222
|
+
.scroll:hover::-webkit-scrollbar-thumb:hover,
|
|
223
|
+
.scroll-sm:hover::-webkit-scrollbar-thumb:hover,
|
|
224
|
+
.scroll-lg:hover::-webkit-scrollbar-thumb:hover {
|
|
225
|
+
@apply bg-primary;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.scroll-none::-webkit-scrollbar {
|
|
229
|
+
@apply w-0 h-0;
|
|
230
|
+
}
|
|
231
|
+
}
|
package/styles/tailwind.safelist
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
----- Grid -----
|
|
2
|
-
|
|
3
|
-
col-span-1
|
|
4
|
-
col-span-2
|
|
5
|
-
col-span-3
|
|
6
|
-
col-span-4
|
|
7
|
-
col-span-5
|
|
8
|
-
col-span-6
|
|
9
|
-
col-span-7
|
|
10
|
-
col-span-8
|
|
11
|
-
col-span-9
|
|
12
|
-
col-span-10
|
|
13
|
-
col-span-11
|
|
14
|
-
col-span-12
|
|
15
|
-
|
|
16
|
-
sm:col-span-1
|
|
17
|
-
sm:col-span-2
|
|
18
|
-
sm:col-span-3
|
|
19
|
-
sm:col-span-4
|
|
20
|
-
sm:col-span-5
|
|
21
|
-
sm:col-span-6
|
|
22
|
-
sm:col-span-7
|
|
23
|
-
sm:col-span-8
|
|
24
|
-
sm:col-span-9
|
|
25
|
-
sm:col-span-10
|
|
26
|
-
sm:col-span-11
|
|
27
|
-
sm:col-span-12
|
|
28
|
-
|
|
29
|
-
md:col-span-1
|
|
30
|
-
md:col-span-2
|
|
31
|
-
md:col-span-3
|
|
32
|
-
md:col-span-4
|
|
33
|
-
md:col-span-5
|
|
34
|
-
md:col-span-6
|
|
35
|
-
md:col-span-7
|
|
36
|
-
md:col-span-8
|
|
37
|
-
md:col-span-9
|
|
38
|
-
md:col-span-10
|
|
39
|
-
md:col-span-11
|
|
40
|
-
md:col-span-12
|
|
41
|
-
|
|
42
|
-
lg:col-span-1
|
|
43
|
-
lg:col-span-2
|
|
44
|
-
lg:col-span-3
|
|
45
|
-
lg:col-span-4
|
|
46
|
-
lg:col-span-5
|
|
47
|
-
lg:col-span-6
|
|
48
|
-
lg:col-span-7
|
|
49
|
-
lg:col-span-8
|
|
50
|
-
lg:col-span-9
|
|
51
|
-
lg:col-span-10
|
|
52
|
-
lg:col-span-11
|
|
53
|
-
lg:col-span-12
|
|
54
|
-
|
|
55
|
-
xl:col-span-1
|
|
56
|
-
xl:col-span-2
|
|
57
|
-
xl:col-span-3
|
|
58
|
-
xl:col-span-4
|
|
59
|
-
xl:col-span-5
|
|
60
|
-
xl:col-span-6
|
|
61
|
-
xl:col-span-7
|
|
62
|
-
xl:col-span-8
|
|
63
|
-
xl:col-span-9
|
|
64
|
-
xl:col-span-10
|
|
65
|
-
xl:col-span-11
|
|
66
|
-
xl:col-span-12
|
|
67
|
-
|
|
68
|
-
|
|
1
|
+
----- Grid -----
|
|
2
|
+
|
|
3
|
+
col-span-1
|
|
4
|
+
col-span-2
|
|
5
|
+
col-span-3
|
|
6
|
+
col-span-4
|
|
7
|
+
col-span-5
|
|
8
|
+
col-span-6
|
|
9
|
+
col-span-7
|
|
10
|
+
col-span-8
|
|
11
|
+
col-span-9
|
|
12
|
+
col-span-10
|
|
13
|
+
col-span-11
|
|
14
|
+
col-span-12
|
|
15
|
+
|
|
16
|
+
sm:col-span-1
|
|
17
|
+
sm:col-span-2
|
|
18
|
+
sm:col-span-3
|
|
19
|
+
sm:col-span-4
|
|
20
|
+
sm:col-span-5
|
|
21
|
+
sm:col-span-6
|
|
22
|
+
sm:col-span-7
|
|
23
|
+
sm:col-span-8
|
|
24
|
+
sm:col-span-9
|
|
25
|
+
sm:col-span-10
|
|
26
|
+
sm:col-span-11
|
|
27
|
+
sm:col-span-12
|
|
28
|
+
|
|
29
|
+
md:col-span-1
|
|
30
|
+
md:col-span-2
|
|
31
|
+
md:col-span-3
|
|
32
|
+
md:col-span-4
|
|
33
|
+
md:col-span-5
|
|
34
|
+
md:col-span-6
|
|
35
|
+
md:col-span-7
|
|
36
|
+
md:col-span-8
|
|
37
|
+
md:col-span-9
|
|
38
|
+
md:col-span-10
|
|
39
|
+
md:col-span-11
|
|
40
|
+
md:col-span-12
|
|
41
|
+
|
|
42
|
+
lg:col-span-1
|
|
43
|
+
lg:col-span-2
|
|
44
|
+
lg:col-span-3
|
|
45
|
+
lg:col-span-4
|
|
46
|
+
lg:col-span-5
|
|
47
|
+
lg:col-span-6
|
|
48
|
+
lg:col-span-7
|
|
49
|
+
lg:col-span-8
|
|
50
|
+
lg:col-span-9
|
|
51
|
+
lg:col-span-10
|
|
52
|
+
lg:col-span-11
|
|
53
|
+
lg:col-span-12
|
|
54
|
+
|
|
55
|
+
xl:col-span-1
|
|
56
|
+
xl:col-span-2
|
|
57
|
+
xl:col-span-3
|
|
58
|
+
xl:col-span-4
|
|
59
|
+
xl:col-span-5
|
|
60
|
+
xl:col-span-6
|
|
61
|
+
xl:col-span-7
|
|
62
|
+
xl:col-span-8
|
|
63
|
+
xl:col-span-9
|
|
64
|
+
xl:col-span-10
|
|
65
|
+
xl:col-span-11
|
|
66
|
+
xl:col-span-12
|
|
67
|
+
|
|
68
|
+
|
|
69
69
|
right-5
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import path from "path";
|
|
2
|
-
import fs from "fs";
|
|
3
|
-
import { exec } from "child_process";
|
|
4
|
-
import { logger } from "./logger";
|
|
5
|
-
|
|
6
|
-
const rootDir = path.resolve();
|
|
7
|
-
const configText = fs.readFileSync("barrels.json", "utf8");
|
|
8
|
-
const config = JSON.parse(configText);
|
|
9
|
-
const directories: string[] = Array.isArray(config.directory) ? config.directory : [config.directory];
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
directories.forEach((dir) => {
|
|
13
|
-
const absoluteDir = path.join(rootDir, dir);
|
|
14
|
-
|
|
15
|
-
if (!fs.existsSync(absoluteDir)) {
|
|
16
|
-
logger.error(`Barrels error: ${absoluteDir} directory not found`)
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
fs.watch(absoluteDir, { recursive: true }, (_, filename) => {
|
|
21
|
-
if (filename && (filename.endsWith(".ts") || filename.endsWith(".tsx")) && filename !== "index.ts") {
|
|
22
|
-
exec("npx barrelsby -c barrels.json", { cwd: rootDir })
|
|
23
|
-
logger.info("Barrels updated " + absoluteDir + "/index.ts")
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
|
|
1
|
+
import path from "path";
|
|
2
|
+
import fs from "fs";
|
|
3
|
+
import { exec } from "child_process";
|
|
4
|
+
import { logger } from "./logger";
|
|
5
|
+
|
|
6
|
+
const rootDir = path.resolve();
|
|
7
|
+
const configText = fs.readFileSync("barrels.json", "utf8");
|
|
8
|
+
const config = JSON.parse(configText);
|
|
9
|
+
const directories: string[] = Array.isArray(config.directory) ? config.directory : [config.directory];
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
directories.forEach((dir) => {
|
|
13
|
+
const absoluteDir = path.join(rootDir, dir);
|
|
14
|
+
|
|
15
|
+
if (!fs.existsSync(absoluteDir)) {
|
|
16
|
+
logger.error(`Barrels error: ${absoluteDir} directory not found`)
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
fs.watch(absoluteDir, { recursive: true }, (_, filename) => {
|
|
21
|
+
if (filename && (filename.endsWith(".ts") || filename.endsWith(".tsx")) && filename !== "index.ts") {
|
|
22
|
+
exec("npx barrelsby -c barrels.json", { cwd: rootDir })
|
|
23
|
+
logger.info("Barrels updated " + absoluteDir + "/index.ts")
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
|
|
28
28
|
logger.start("Barrels watched " + directories.join(", "))
|