@digo-labs/common 0.1.9 → 0.1.11
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 +11 -0
- package/dist/app-config-helpers.d.ts +7 -0
- package/dist/auth.d.ts +1 -1
- package/dist/constants.d.ts +1 -0
- package/dist/icons.d.ts +224 -0
- package/dist/index.css +16 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2423 -2004
- package/dist/index.js.map +1 -1
- package/dist/types/websocket-types.d.ts +1 -1
- package/package.json +4 -6
- package/vite.apps.ts +0 -50
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# @digo-labs/common
|
|
2
|
+
|
|
3
|
+
Design tokens, Zod schemas, global CSS, the curated icon set, and shared utilities (`cn`, `tryCatch`, …) — the foundation every other `@digo-labs/*` package depends on.
|
|
4
|
+
|
|
5
|
+
**📖 Full documentation:** https://design.digo-labs.com/docs/guide/package-common
|
|
6
|
+
|
|
7
|
+
The Digo design-system guide is the single source of truth for this package — its full API, examples, and patterns live there. This README stays thin on purpose and points to it.
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @digo-labs/common
|
|
11
|
+
```
|
package/dist/auth.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const AUTH_PROJECTS: {
|
|
2
2
|
readonly monorepo: {
|
|
3
|
-
readonly trustedOrigins: readonly ["http://localhost
|
|
3
|
+
readonly trustedOrigins: readonly ["http://localhost:*", "http://127.0.0.1:*", "https://*.digo-labs.com"];
|
|
4
4
|
};
|
|
5
5
|
};
|
|
6
6
|
export type AuthProject = keyof typeof AUTH_PROJECTS;
|
package/dist/constants.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { CodeLanguageMetadata, ModelPayload } from './types/common-types';
|
|
|
2
2
|
export declare const BACKEND_URL = "https://api.digo-labs.com";
|
|
3
3
|
export declare const DIGO_HEADERS = "X-Digo-App";
|
|
4
4
|
export declare const DIGO_ADMIN_SECRET = "X-Admin-Secret";
|
|
5
|
+
export declare const DIGO_STORAGE_BUCKET_SUFFIX = "-digo-labs-storage";
|
|
5
6
|
export declare const WS_URL = "wss://ws.digo-labs.com";
|
|
6
7
|
export declare const AWS_DEFAULT_REGION = "us-east-1";
|
|
7
8
|
export declare const AI_MODELS: ModelPayload[];
|
package/dist/icons.d.ts
CHANGED
|
@@ -216,6 +216,10 @@ declare const CURATED_ICONS: {
|
|
|
216
216
|
category: IconCategory.Navigation;
|
|
217
217
|
icon: string;
|
|
218
218
|
};
|
|
219
|
+
squareMenu: {
|
|
220
|
+
category: IconCategory.Navigation;
|
|
221
|
+
icon: string;
|
|
222
|
+
};
|
|
219
223
|
add: {
|
|
220
224
|
category: IconCategory.Actions;
|
|
221
225
|
icon: string;
|
|
@@ -392,6 +396,22 @@ declare const CURATED_ICONS: {
|
|
|
392
396
|
category: IconCategory.Actions;
|
|
393
397
|
icon: string;
|
|
394
398
|
};
|
|
399
|
+
textSearch: {
|
|
400
|
+
category: IconCategory.Actions;
|
|
401
|
+
icon: string;
|
|
402
|
+
};
|
|
403
|
+
clipboardCopy: {
|
|
404
|
+
category: IconCategory.Actions;
|
|
405
|
+
icon: string;
|
|
406
|
+
};
|
|
407
|
+
replace: {
|
|
408
|
+
category: IconCategory.Actions;
|
|
409
|
+
icon: string;
|
|
410
|
+
};
|
|
411
|
+
searchCheck: {
|
|
412
|
+
category: IconCategory.Actions;
|
|
413
|
+
icon: string;
|
|
414
|
+
};
|
|
395
415
|
success: {
|
|
396
416
|
category: IconCategory.Status;
|
|
397
417
|
icon: string;
|
|
@@ -456,6 +476,14 @@ declare const CURATED_ICONS: {
|
|
|
456
476
|
category: IconCategory.Status;
|
|
457
477
|
icon: string;
|
|
458
478
|
};
|
|
479
|
+
loader: {
|
|
480
|
+
category: IconCategory.Status;
|
|
481
|
+
icon: string;
|
|
482
|
+
};
|
|
483
|
+
gauge: {
|
|
484
|
+
category: IconCategory.Status;
|
|
485
|
+
icon: string;
|
|
486
|
+
};
|
|
459
487
|
play: {
|
|
460
488
|
category: IconCategory.Media;
|
|
461
489
|
icon: string;
|
|
@@ -576,6 +604,14 @@ declare const CURATED_ICONS: {
|
|
|
576
604
|
category: IconCategory.Media;
|
|
577
605
|
icon: string;
|
|
578
606
|
};
|
|
607
|
+
imageUp: {
|
|
608
|
+
category: IconCategory.Media;
|
|
609
|
+
icon: string;
|
|
610
|
+
};
|
|
611
|
+
images: {
|
|
612
|
+
category: IconCategory.Media;
|
|
613
|
+
icon: string;
|
|
614
|
+
};
|
|
579
615
|
file: {
|
|
580
616
|
category: IconCategory.Files;
|
|
581
617
|
icon: string;
|
|
@@ -668,6 +704,22 @@ declare const CURATED_ICONS: {
|
|
|
668
704
|
category: IconCategory.Files;
|
|
669
705
|
icon: string;
|
|
670
706
|
};
|
|
707
|
+
fileUp: {
|
|
708
|
+
category: IconCategory.Files;
|
|
709
|
+
icon: string;
|
|
710
|
+
};
|
|
711
|
+
clipboardList: {
|
|
712
|
+
category: IconCategory.Files;
|
|
713
|
+
icon: string;
|
|
714
|
+
};
|
|
715
|
+
files: {
|
|
716
|
+
category: IconCategory.Files;
|
|
717
|
+
icon: string;
|
|
718
|
+
};
|
|
719
|
+
filePen: {
|
|
720
|
+
category: IconCategory.Files;
|
|
721
|
+
icon: string;
|
|
722
|
+
};
|
|
671
723
|
panelLeft: {
|
|
672
724
|
category: IconCategory.UI;
|
|
673
725
|
icon: string;
|
|
@@ -848,6 +900,98 @@ declare const CURATED_ICONS: {
|
|
|
848
900
|
category: IconCategory.UI;
|
|
849
901
|
icon: string;
|
|
850
902
|
};
|
|
903
|
+
textCursorInput: {
|
|
904
|
+
category: IconCategory.UI;
|
|
905
|
+
icon: string;
|
|
906
|
+
};
|
|
907
|
+
blocks: {
|
|
908
|
+
category: IconCategory.UI;
|
|
909
|
+
icon: string;
|
|
910
|
+
};
|
|
911
|
+
listTree: {
|
|
912
|
+
category: IconCategory.UI;
|
|
913
|
+
icon: string;
|
|
914
|
+
};
|
|
915
|
+
squareChevronDown: {
|
|
916
|
+
category: IconCategory.UI;
|
|
917
|
+
icon: string;
|
|
918
|
+
};
|
|
919
|
+
letterText: {
|
|
920
|
+
category: IconCategory.UI;
|
|
921
|
+
icon: string;
|
|
922
|
+
};
|
|
923
|
+
squareMousePointer: {
|
|
924
|
+
category: IconCategory.UI;
|
|
925
|
+
icon: string;
|
|
926
|
+
};
|
|
927
|
+
columns3: {
|
|
928
|
+
category: IconCategory.UI;
|
|
929
|
+
icon: string;
|
|
930
|
+
};
|
|
931
|
+
listCollapse: {
|
|
932
|
+
category: IconCategory.UI;
|
|
933
|
+
icon: string;
|
|
934
|
+
};
|
|
935
|
+
foldVertical: {
|
|
936
|
+
category: IconCategory.UI;
|
|
937
|
+
icon: string;
|
|
938
|
+
};
|
|
939
|
+
inbox: {
|
|
940
|
+
category: IconCategory.UI;
|
|
941
|
+
icon: string;
|
|
942
|
+
};
|
|
943
|
+
squareDashed: {
|
|
944
|
+
category: IconCategory.UI;
|
|
945
|
+
icon: string;
|
|
946
|
+
};
|
|
947
|
+
tableOfContents: {
|
|
948
|
+
category: IconCategory.UI;
|
|
949
|
+
icon: string;
|
|
950
|
+
};
|
|
951
|
+
grid3x3: {
|
|
952
|
+
category: IconCategory.UI;
|
|
953
|
+
icon: string;
|
|
954
|
+
};
|
|
955
|
+
fieldGroup: {
|
|
956
|
+
category: IconCategory.UI;
|
|
957
|
+
icon: string;
|
|
958
|
+
};
|
|
959
|
+
rectangleEllipsis: {
|
|
960
|
+
category: IconCategory.UI;
|
|
961
|
+
icon: string;
|
|
962
|
+
};
|
|
963
|
+
inputGroup: {
|
|
964
|
+
category: IconCategory.UI;
|
|
965
|
+
icon: string;
|
|
966
|
+
};
|
|
967
|
+
groupItems: {
|
|
968
|
+
category: IconCategory.UI;
|
|
969
|
+
icon: string;
|
|
970
|
+
};
|
|
971
|
+
separator: {
|
|
972
|
+
category: IconCategory.UI;
|
|
973
|
+
icon: string;
|
|
974
|
+
};
|
|
975
|
+
stretchHorizontal: {
|
|
976
|
+
category: IconCategory.UI;
|
|
977
|
+
icon: string;
|
|
978
|
+
};
|
|
979
|
+
squareStack: {
|
|
980
|
+
category: IconCategory.UI;
|
|
981
|
+
icon: string;
|
|
982
|
+
};
|
|
983
|
+
textCursor: {
|
|
984
|
+
category: IconCategory.UI;
|
|
985
|
+
icon: string;
|
|
986
|
+
};
|
|
987
|
+
component: {
|
|
988
|
+
category: IconCategory.UI;
|
|
989
|
+
icon: string;
|
|
990
|
+
};
|
|
991
|
+
layoutTemplate: {
|
|
992
|
+
category: IconCategory.UI;
|
|
993
|
+
icon: string;
|
|
994
|
+
};
|
|
851
995
|
google: {
|
|
852
996
|
category: IconCategory.Brands;
|
|
853
997
|
icon: string;
|
|
@@ -988,6 +1132,22 @@ declare const CURATED_ICONS: {
|
|
|
988
1132
|
category: IconCategory.Tools;
|
|
989
1133
|
icon: string;
|
|
990
1134
|
};
|
|
1135
|
+
scan: {
|
|
1136
|
+
category: IconCategory.Tools;
|
|
1137
|
+
icon: string;
|
|
1138
|
+
};
|
|
1139
|
+
aperture: {
|
|
1140
|
+
category: IconCategory.Tools;
|
|
1141
|
+
icon: string;
|
|
1142
|
+
};
|
|
1143
|
+
pencilRuler: {
|
|
1144
|
+
category: IconCategory.Tools;
|
|
1145
|
+
icon: string;
|
|
1146
|
+
};
|
|
1147
|
+
mousePointer2: {
|
|
1148
|
+
category: IconCategory.Tools;
|
|
1149
|
+
icon: string;
|
|
1150
|
+
};
|
|
991
1151
|
table: {
|
|
992
1152
|
category: IconCategory.Data;
|
|
993
1153
|
icon: string;
|
|
@@ -1048,6 +1208,10 @@ declare const CURATED_ICONS: {
|
|
|
1048
1208
|
category: IconCategory.Data;
|
|
1049
1209
|
icon: string;
|
|
1050
1210
|
};
|
|
1211
|
+
tally5: {
|
|
1212
|
+
category: IconCategory.Data;
|
|
1213
|
+
icon: string;
|
|
1214
|
+
};
|
|
1051
1215
|
chat: {
|
|
1052
1216
|
category: IconCategory.Communication;
|
|
1053
1217
|
icon: string;
|
|
@@ -1080,6 +1244,18 @@ declare const CURATED_ICONS: {
|
|
|
1080
1244
|
category: IconCategory.Communication;
|
|
1081
1245
|
icon: string;
|
|
1082
1246
|
};
|
|
1247
|
+
messageSquareMore: {
|
|
1248
|
+
category: IconCategory.Communication;
|
|
1249
|
+
icon: string;
|
|
1250
|
+
};
|
|
1251
|
+
messageCircle: {
|
|
1252
|
+
category: IconCategory.Communication;
|
|
1253
|
+
icon: string;
|
|
1254
|
+
};
|
|
1255
|
+
messagesSquare: {
|
|
1256
|
+
category: IconCategory.Communication;
|
|
1257
|
+
icon: string;
|
|
1258
|
+
};
|
|
1083
1259
|
palette: {
|
|
1084
1260
|
category: IconCategory.Design;
|
|
1085
1261
|
icon: string;
|
|
@@ -1140,6 +1316,22 @@ declare const CURATED_ICONS: {
|
|
|
1140
1316
|
category: IconCategory.Design;
|
|
1141
1317
|
icon: string;
|
|
1142
1318
|
};
|
|
1319
|
+
swatchBook: {
|
|
1320
|
+
category: IconCategory.Design;
|
|
1321
|
+
icon: string;
|
|
1322
|
+
};
|
|
1323
|
+
droplets: {
|
|
1324
|
+
category: IconCategory.Design;
|
|
1325
|
+
icon: string;
|
|
1326
|
+
};
|
|
1327
|
+
sunMedium: {
|
|
1328
|
+
category: IconCategory.Design;
|
|
1329
|
+
icon: string;
|
|
1330
|
+
};
|
|
1331
|
+
spline: {
|
|
1332
|
+
category: IconCategory.Design;
|
|
1333
|
+
icon: string;
|
|
1334
|
+
};
|
|
1143
1335
|
robot: {
|
|
1144
1336
|
category: IconCategory.AI;
|
|
1145
1337
|
icon: string;
|
|
@@ -1168,6 +1360,10 @@ declare const CURATED_ICONS: {
|
|
|
1168
1360
|
category: IconCategory.AI;
|
|
1169
1361
|
icon: string;
|
|
1170
1362
|
};
|
|
1363
|
+
botMessageSquare: {
|
|
1364
|
+
category: IconCategory.AI;
|
|
1365
|
+
icon: string;
|
|
1366
|
+
};
|
|
1171
1367
|
one: {
|
|
1172
1368
|
category: IconCategory.Numbers;
|
|
1173
1369
|
icon: string;
|
|
@@ -1524,6 +1720,34 @@ declare const CURATED_ICONS: {
|
|
|
1524
1720
|
category: IconCategory.Misc;
|
|
1525
1721
|
icon: string;
|
|
1526
1722
|
};
|
|
1723
|
+
sunMoon: {
|
|
1724
|
+
category: IconCategory.Misc;
|
|
1725
|
+
icon: string;
|
|
1726
|
+
};
|
|
1727
|
+
tvMinimal: {
|
|
1728
|
+
category: IconCategory.Misc;
|
|
1729
|
+
icon: string;
|
|
1730
|
+
};
|
|
1731
|
+
orbit: {
|
|
1732
|
+
category: IconCategory.Misc;
|
|
1733
|
+
icon: string;
|
|
1734
|
+
};
|
|
1735
|
+
gitFork: {
|
|
1736
|
+
category: IconCategory.Misc;
|
|
1737
|
+
icon: string;
|
|
1738
|
+
};
|
|
1739
|
+
bookOpenText: {
|
|
1740
|
+
category: IconCategory.Misc;
|
|
1741
|
+
icon: string;
|
|
1742
|
+
};
|
|
1743
|
+
serverOff: {
|
|
1744
|
+
category: IconCategory.Misc;
|
|
1745
|
+
icon: string;
|
|
1746
|
+
};
|
|
1747
|
+
packagePlus: {
|
|
1748
|
+
category: IconCategory.Misc;
|
|
1749
|
+
icon: string;
|
|
1750
|
+
};
|
|
1527
1751
|
};
|
|
1528
1752
|
export declare class IconHelpers {
|
|
1529
1753
|
static getIcon(name: string): string;
|
package/dist/index.css
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
@source inline("typo-1 typo-2 typo-3 typo-4 typo-5 typo-6 typo-7 typo-8 typo-9 typo-10 typo-11 typo-12 typo-13 typo-14 typo-15 typo-16 typo-17 typo-18 typo-weight-100 typo-weight-200 typo-weight-300 typo-weight-400 typo-weight-500 typo-weight-600 typo-weight-700 typo-weight-800 typo-weight-900");
|
|
6
6
|
|
|
7
7
|
@source "./index.js";
|
|
8
|
+
@source "./**/*.{ts,tsx}";
|
|
8
9
|
|
|
9
10
|
@theme static {
|
|
10
11
|
--font-code: 'geist-mono', monospace;
|
|
@@ -485,7 +486,7 @@
|
|
|
485
486
|
}
|
|
486
487
|
|
|
487
488
|
@utility cs-contrast {
|
|
488
|
-
@apply drop-shadow-[
|
|
489
|
+
@apply drop-shadow-[0_-1px_1px_#fff4];
|
|
489
490
|
}
|
|
490
491
|
|
|
491
492
|
@utility cs-popup-animation {
|
|
@@ -501,11 +502,23 @@
|
|
|
501
502
|
}
|
|
502
503
|
|
|
503
504
|
@utility cs-invalid {
|
|
504
|
-
@apply aria-invalid:ring-3 aria-invalid:ring-error-
|
|
505
|
+
@apply aria-invalid:ring-3 aria-invalid:ring-error-6 aria-invalid:border-error-9 focus-visible:aria-invalid:ring-error-4 focus-visible:aria-invalid:outline-error-9;
|
|
505
506
|
}
|
|
506
507
|
|
|
507
508
|
@utility cs-has-invalid {
|
|
508
|
-
@apply has-[[data-slot=control][aria-invalid=true]]:ring-3 has-[[data-slot=control][aria-invalid=true]]:ring-error-
|
|
509
|
+
@apply has-[[data-slot=control][aria-invalid=true]]:ring-3 has-[[data-slot=control][aria-invalid=true]]:ring-error-6 has-[[data-slot=control][aria-invalid=true]]:border-error-9 has-[[data-slot=control][aria-invalid=true]:focus-visible]:ring-error-4 has-[[data-slot=control][aria-invalid=true]:focus-visible]:outline-error-9;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
@utility cs-steps {
|
|
513
|
+
counter-reset: step;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
@utility cs-step {
|
|
517
|
+
&::before {
|
|
518
|
+
--tw-content: counter(step);
|
|
519
|
+
content: var(--tw-content);
|
|
520
|
+
counter-increment: step;
|
|
521
|
+
}
|
|
509
522
|
}
|
|
510
523
|
|
|
511
524
|
@utility cs-masonry {
|
package/dist/index.d.ts
CHANGED