@yogiswara/honcho-editor-ui 1.0.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/dist/components/editor/HAccordionAspectRatio.d.ts +14 -0
- package/dist/components/editor/HAccordionAspectRatio.js +102 -0
- package/dist/components/editor/HAccordionColor.d.ts +12 -0
- package/dist/components/editor/HAccordionColor.js +234 -0
- package/dist/components/editor/HAccordionColorAdjustment.d.ts +31 -0
- package/dist/components/editor/HAccordionColorAdjustment.js +37 -0
- package/dist/components/editor/HAccordionDetails.d.ts +8 -0
- package/dist/components/editor/HAccordionDetails.js +133 -0
- package/dist/components/editor/HAccordionLight.d.ts +16 -0
- package/dist/components/editor/HAccordionLight.js +342 -0
- package/dist/components/editor/HAccordionPreset.d.ts +23 -0
- package/dist/components/editor/HAccordionPreset.js +59 -0
- package/dist/components/editor/HAlertBox.d.ts +7 -0
- package/dist/components/editor/HAlertBox.js +46 -0
- package/dist/components/editor/HAspectRatioMobile.d.ts +0 -0
- package/dist/components/editor/HAspectRatioMobile.js +1 -0
- package/dist/components/editor/HBulkAccordionColorAdjustment.d.ts +55 -0
- package/dist/components/editor/HBulkAccordionColorAdjustment.js +31 -0
- package/dist/components/editor/HBulkAccordionColorAdjustmentColors.d.ts +20 -0
- package/dist/components/editor/HBulkAccordionColorAdjustmentColors.js +121 -0
- package/dist/components/editor/HBulkAccordionColorAdjustmentDetails.d.ts +12 -0
- package/dist/components/editor/HBulkAccordionColorAdjustmentDetails.js +65 -0
- package/dist/components/editor/HBulkAccordionColorAdjustmentLight.d.ts +28 -0
- package/dist/components/editor/HBulkAccordionColorAdjustmentLight.js +177 -0
- package/dist/components/editor/HBulkColorAdjustmentMobile.d.ts +53 -0
- package/dist/components/editor/HBulkColorAdjustmentMobile.js +16 -0
- package/dist/components/editor/HBulkColorMobile.d.ts +20 -0
- package/dist/components/editor/HBulkColorMobile.js +121 -0
- package/dist/components/editor/HBulkDetailsMobile.d.ts +12 -0
- package/dist/components/editor/HBulkDetailsMobile.js +65 -0
- package/dist/components/editor/HBulkLightMobile.d.ts +28 -0
- package/dist/components/editor/HBulkLightMobile.js +192 -0
- package/dist/components/editor/HBulkPreset.d.ts +24 -0
- package/dist/components/editor/HBulkPreset.js +33 -0
- package/dist/components/editor/HBulkPresetMobile.d.ts +15 -0
- package/dist/components/editor/HBulkPresetMobile.js +26 -0
- package/dist/components/editor/HDialogBox.d.ts +18 -0
- package/dist/components/editor/HDialogBox.js +51 -0
- package/dist/components/editor/HDialogCopy.d.ts +40 -0
- package/dist/components/editor/HDialogCopy.js +80 -0
- package/dist/components/editor/HFooter.d.ts +12 -0
- package/dist/components/editor/HFooter.js +24 -0
- package/dist/components/editor/HHeaderEditor.d.ts +17 -0
- package/dist/components/editor/HHeaderEditor.js +27 -0
- package/dist/components/editor/HImageEditorBulkDekstop.d.ts +15 -0
- package/dist/components/editor/HImageEditorBulkDekstop.js +26 -0
- package/dist/components/editor/HImageEditorBulkMobile.d.ts +72 -0
- package/dist/components/editor/HImageEditorBulkMobile.js +81 -0
- package/dist/components/editor/HImageEditorDekstop.d.ts +15 -0
- package/dist/components/editor/HImageEditorDekstop.js +29 -0
- package/dist/components/editor/HImageEditorMobile.d.ts +47 -0
- package/dist/components/editor/HImageEditorMobile.js +91 -0
- package/dist/components/editor/HImageEditorMobileLayout.d.ts +14 -0
- package/dist/components/editor/HImageEditorMobileLayout.js +57 -0
- package/dist/components/editor/HImageEditorPage.d.ts +1 -0
- package/dist/components/editor/HImageEditorPage.js +187 -0
- package/dist/components/editor/HModalEditorDekstop.d.ts +13 -0
- package/dist/components/editor/HModalEditorDekstop.js +22 -0
- package/dist/components/editor/HModalMobile.d.ts +12 -0
- package/dist/components/editor/HModalMobile.js +7 -0
- package/dist/components/editor/HPresetOptionMenu.d.ts +11 -0
- package/dist/components/editor/HPresetOptionMenu.js +20 -0
- package/dist/components/editor/HSliderColorMobile.d.ts +12 -0
- package/dist/components/editor/HSliderColorMobile.js +222 -0
- package/dist/components/editor/HSliderDetailsMobile.d.ts +8 -0
- package/dist/components/editor/HSliderDetailsMobile.js +130 -0
- package/dist/components/editor/HSliderLightMobile.d.ts +16 -0
- package/dist/components/editor/HSliderLightMobile.js +342 -0
- package/dist/components/editor/HTabAspectRatioMobile.d.ts +0 -0
- package/dist/components/editor/HTabAspectRatioMobile.js +1 -0
- package/dist/components/editor/HTabColorAdjustmentMobile.d.ts +29 -0
- package/dist/components/editor/HTabColorAdjustmentMobile.js +16 -0
- package/dist/components/editor/HTabPresetMobile.d.ts +14 -0
- package/dist/components/editor/HTabPresetMobile.js +10 -0
- package/dist/components/editor/HTextField.d.ts +14 -0
- package/dist/components/editor/HTextField.js +51 -0
- package/dist/components/editor/HWatermarkView.d.ts +6 -0
- package/dist/components/editor/HWatermarkView.js +16 -0
- package/dist/hooks/editor/useHonchoEditor.d.ts +272 -0
- package/dist/hooks/editor/useHonchoEditor.js +1203 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +23 -0
- package/dist/lib/editor/honcho-editor.d.ts +324 -0
- package/dist/lib/editor/honcho-editor.js +825 -0
- package/dist/themes/colors.d.ts +12 -0
- package/dist/themes/colors.js +12 -0
- package/dist/themes/honchoTheme.d.ts +25 -0
- package/dist/themes/honchoTheme.js +94 -0
- package/dist/utils/isMobile.d.ts +1 -0
- package/dist/utils/isMobile.js +5 -0
- package/package.json +41 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface Colors {
|
|
2
|
+
onSurface: string;
|
|
3
|
+
surface: string;
|
|
4
|
+
onSurfaceVariant: string;
|
|
5
|
+
onSurfaceVariant1: string;
|
|
6
|
+
outlineVariant: string;
|
|
7
|
+
error: string;
|
|
8
|
+
onBackground: string;
|
|
9
|
+
background: string;
|
|
10
|
+
}
|
|
11
|
+
export default function useColors(): Colors;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default function useColors() {
|
|
2
|
+
return {
|
|
3
|
+
onSurface: "#1C1B1F",
|
|
4
|
+
surface: "#FFFFFF",
|
|
5
|
+
onSurfaceVariant: "#949494",
|
|
6
|
+
onSurfaceVariant1: "#656369",
|
|
7
|
+
outlineVariant: "#EDEDED",
|
|
8
|
+
error: "#DC362E",
|
|
9
|
+
onBackground: "#000000",
|
|
10
|
+
background: "#FFFFFF"
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface HonchoTypography {
|
|
2
|
+
displayLarge: FontStyle;
|
|
3
|
+
displayMedium: FontStyle;
|
|
4
|
+
displaySmall: FontStyle;
|
|
5
|
+
headlineLarge: FontStyle;
|
|
6
|
+
headlineMedium: FontStyle;
|
|
7
|
+
headlineSmall: FontStyle;
|
|
8
|
+
titleLarge: FontStyle;
|
|
9
|
+
titleMedium: FontStyle;
|
|
10
|
+
titleSmall: FontStyle;
|
|
11
|
+
bodyLarge: FontStyle;
|
|
12
|
+
bodyMedium: FontStyle;
|
|
13
|
+
bodySmall: FontStyle;
|
|
14
|
+
labelLarge: FontStyle;
|
|
15
|
+
labelMedium: FontStyle;
|
|
16
|
+
labelSmall: FontStyle;
|
|
17
|
+
}
|
|
18
|
+
interface FontStyle {
|
|
19
|
+
fontSize: number;
|
|
20
|
+
lineHeight: string;
|
|
21
|
+
fontWeight: number;
|
|
22
|
+
letterSpacing: string;
|
|
23
|
+
}
|
|
24
|
+
export default function useHonchoTypography(): HonchoTypography;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
export default function useHonchoTypography() {
|
|
2
|
+
return {
|
|
3
|
+
displayLarge: {
|
|
4
|
+
fontSize: 57,
|
|
5
|
+
lineHeight: "64px",
|
|
6
|
+
fontWeight: 500,
|
|
7
|
+
letterSpacing: "0px"
|
|
8
|
+
},
|
|
9
|
+
displayMedium: {
|
|
10
|
+
fontSize: 45,
|
|
11
|
+
lineHeight: "52px",
|
|
12
|
+
fontWeight: 500,
|
|
13
|
+
letterSpacing: "0px"
|
|
14
|
+
},
|
|
15
|
+
displaySmall: {
|
|
16
|
+
fontSize: 36,
|
|
17
|
+
lineHeight: "44px",
|
|
18
|
+
fontWeight: 500,
|
|
19
|
+
letterSpacing: "0px"
|
|
20
|
+
},
|
|
21
|
+
headlineLarge: {
|
|
22
|
+
fontSize: 32,
|
|
23
|
+
lineHeight: "40px",
|
|
24
|
+
fontWeight: 500,
|
|
25
|
+
letterSpacing: "0px"
|
|
26
|
+
},
|
|
27
|
+
headlineMedium: {
|
|
28
|
+
fontSize: 28,
|
|
29
|
+
lineHeight: "36px",
|
|
30
|
+
fontWeight: 500,
|
|
31
|
+
letterSpacing: "0px"
|
|
32
|
+
},
|
|
33
|
+
headlineSmall: {
|
|
34
|
+
fontSize: 24,
|
|
35
|
+
lineHeight: "32px",
|
|
36
|
+
fontWeight: 500,
|
|
37
|
+
letterSpacing: "0px"
|
|
38
|
+
},
|
|
39
|
+
titleLarge: {
|
|
40
|
+
fontSize: 18,
|
|
41
|
+
lineHeight: "24px",
|
|
42
|
+
fontWeight: 500,
|
|
43
|
+
letterSpacing: "0px"
|
|
44
|
+
},
|
|
45
|
+
titleMedium: {
|
|
46
|
+
fontSize: 16,
|
|
47
|
+
lineHeight: "24px",
|
|
48
|
+
fontWeight: 500,
|
|
49
|
+
letterSpacing: "0.15px"
|
|
50
|
+
},
|
|
51
|
+
titleSmall: {
|
|
52
|
+
fontSize: 14,
|
|
53
|
+
lineHeight: "20px",
|
|
54
|
+
fontWeight: 500,
|
|
55
|
+
letterSpacing: "0.1px"
|
|
56
|
+
},
|
|
57
|
+
bodyLarge: {
|
|
58
|
+
fontSize: 16,
|
|
59
|
+
lineHeight: "24px",
|
|
60
|
+
fontWeight: 400,
|
|
61
|
+
letterSpacing: "0.5px"
|
|
62
|
+
},
|
|
63
|
+
bodyMedium: {
|
|
64
|
+
fontSize: 14,
|
|
65
|
+
lineHeight: "20px",
|
|
66
|
+
fontWeight: 400,
|
|
67
|
+
letterSpacing: "0.25px"
|
|
68
|
+
},
|
|
69
|
+
bodySmall: {
|
|
70
|
+
fontSize: 12,
|
|
71
|
+
lineHeight: "16px",
|
|
72
|
+
fontWeight: 400,
|
|
73
|
+
letterSpacing: "0.4px"
|
|
74
|
+
},
|
|
75
|
+
labelLarge: {
|
|
76
|
+
fontSize: 16,
|
|
77
|
+
lineHeight: "24px",
|
|
78
|
+
fontWeight: 500,
|
|
79
|
+
letterSpacing: "0.1px"
|
|
80
|
+
},
|
|
81
|
+
labelMedium: {
|
|
82
|
+
fontSize: 14,
|
|
83
|
+
lineHeight: "20px",
|
|
84
|
+
fontWeight: 500,
|
|
85
|
+
letterSpacing: "0.1px"
|
|
86
|
+
},
|
|
87
|
+
labelSmall: {
|
|
88
|
+
fontSize: 12,
|
|
89
|
+
lineHeight: "16px",
|
|
90
|
+
fontWeight: 500,
|
|
91
|
+
letterSpacing: "0.1px"
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useIsMobile(): boolean;
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@yogiswara/honcho-editor-ui",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A complete UI component library for the Honcho photo editor.",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"public"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc"
|
|
14
|
+
},
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"@emotion/react": "^11.11.1",
|
|
17
|
+
"@emotion/styled": "^11.11.0",
|
|
18
|
+
"@mui/icons-material": "^5.15.0",
|
|
19
|
+
"@mui/material": "^5.15.0",
|
|
20
|
+
"next": "13.5.6",
|
|
21
|
+
"react": "^18",
|
|
22
|
+
"react-dom": "^18"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@emotion/react": "^11.11.1",
|
|
26
|
+
"@emotion/styled": "^11.11.0",
|
|
27
|
+
"@mui/icons-material": "^5.15.0",
|
|
28
|
+
"@mui/material": "^5.15.0",
|
|
29
|
+
"@types/node": "^20",
|
|
30
|
+
"@types/react": "^18",
|
|
31
|
+
"@types/react-dom": "^18",
|
|
32
|
+
"next": "13.5.6",
|
|
33
|
+
"react": "^18",
|
|
34
|
+
"react-dom": "^18",
|
|
35
|
+
"tsup": "^8.0.0",
|
|
36
|
+
"typescript": "^5"
|
|
37
|
+
},
|
|
38
|
+
"license": "ISC",
|
|
39
|
+
"keywords": [],
|
|
40
|
+
"author": ""
|
|
41
|
+
}
|