@digo-labs/common 0.1.16 → 0.1.18
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/dist/common-helpers.d.ts +4 -1
- package/dist/glyphs.d.ts +29 -0
- package/dist/icons.d.ts +8 -0
- package/dist/images.d.ts +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +131 -77
- package/dist/index.js.map +1 -1
- package/dist/schemas/primitives.d.ts +2 -0
- package/dist/types/common-types.d.ts +8 -0
- package/package.json +1 -1
package/dist/common-helpers.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { ImagePayload, Result, Time } from './';
|
|
1
|
+
import { FilePayload, ImagePayload, Result, Time } from './';
|
|
2
2
|
export declare class CommonHelpers {
|
|
3
|
+
static isImagePayload(file: FilePayload): boolean;
|
|
4
|
+
static getFileExtensionLabel(file: FilePayload): string;
|
|
5
|
+
static getFileSizeLabel(file: FilePayload): string;
|
|
3
6
|
static copyToClipboard(text: string): void;
|
|
4
7
|
static removeBackground(image: ImagePayload): Promise<ImagePayload>;
|
|
5
8
|
static getTimeFormatted(seconds: number): Time;
|
package/dist/glyphs.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const BRICK_GLYPH_VIEWBOX = "0 0 72 72";
|
|
2
|
+
export declare const AWS_GLYPHS: {
|
|
3
|
+
scaleOne: string;
|
|
4
|
+
scaleTwo: string;
|
|
5
|
+
scaleThree: string;
|
|
6
|
+
connectOne: string;
|
|
7
|
+
connectTwo: string;
|
|
8
|
+
connectThree: string;
|
|
9
|
+
sparkOne: string;
|
|
10
|
+
sparkTwo: string;
|
|
11
|
+
sparkThree: string;
|
|
12
|
+
pivotOne: string;
|
|
13
|
+
pivotTwo: string;
|
|
14
|
+
pivotThree: string;
|
|
15
|
+
};
|
|
16
|
+
export type AwsGlyph = keyof typeof AWS_GLYPHS;
|
|
17
|
+
export declare const AWS_ARROW_PATH = "M273.5,143.7c-32.9,24.3-80.7,37.2-121.8,37.2c-57.6,0-109.5-21.3-148.7-56.7c-3.1-2.8-0.3-6.6,3.4-4.4c42.4,24.6,94.7,39.5,148.8,39.5c36.5,0,76.6-7.6,113.5-23.2C274.2,133.6,278.9,139.7,273.5,143.7z M287.2,128.1c-4.2-5.4-27.8-2.6-38.5-1.3c-3.2,0.4-3.7-2.4-0.8-4.5c18.8-13.2,49.7-9.4,53.3-5c3.6,4.5-1,35.4-18.6,50.2c-2.7,2.3-5.3,1.1-4.1-1.9C282.5,155.7,291.4,133.4,287.2,128.1z";
|
|
18
|
+
export declare const AWS_COLORS: {
|
|
19
|
+
orange: string;
|
|
20
|
+
yellow: string;
|
|
21
|
+
pink: string;
|
|
22
|
+
purple: string;
|
|
23
|
+
blue: string;
|
|
24
|
+
green: string;
|
|
25
|
+
white: string;
|
|
26
|
+
black: string;
|
|
27
|
+
};
|
|
28
|
+
export type AwsColor = keyof typeof AWS_COLORS;
|
|
29
|
+
export declare function getAwsColor(hex: string): AwsColor;
|
package/dist/icons.d.ts
CHANGED
|
@@ -1016,6 +1016,10 @@ declare const CURATED_ICONS: {
|
|
|
1016
1016
|
category: IconCategory.Brands;
|
|
1017
1017
|
icon: string;
|
|
1018
1018
|
};
|
|
1019
|
+
aws: {
|
|
1020
|
+
category: IconCategory.Brands;
|
|
1021
|
+
icon: string;
|
|
1022
|
+
};
|
|
1019
1023
|
gemini: {
|
|
1020
1024
|
category: IconCategory.Brands;
|
|
1021
1025
|
icon: string;
|
|
@@ -1256,6 +1260,10 @@ declare const CURATED_ICONS: {
|
|
|
1256
1260
|
category: IconCategory.Communication;
|
|
1257
1261
|
icon: string;
|
|
1258
1262
|
};
|
|
1263
|
+
messageCircleMore: {
|
|
1264
|
+
category: IconCategory.Communication;
|
|
1265
|
+
icon: string;
|
|
1266
|
+
};
|
|
1259
1267
|
messagesSquare: {
|
|
1260
1268
|
category: IconCategory.Communication;
|
|
1261
1269
|
icon: string;
|
package/dist/images.d.ts
CHANGED