@officesdk/design 0.1.26 → 0.1.28
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/cjs/index.d.ts +151 -2
- package/dist/components/cjs/index.js +370 -37
- package/dist/components/cjs/index.js.map +1 -1
- package/dist/components/esm/index.d.ts +151 -2
- package/dist/components/esm/index.js +372 -42
- package/dist/components/esm/index.js.map +1 -1
- package/dist/theme/cjs/index.d.ts +32 -1
- package/dist/theme/cjs/index.js +47 -10
- package/dist/theme/cjs/index.js.map +1 -1
- package/dist/theme/esm/index.d.ts +32 -1
- package/dist/theme/esm/index.js +47 -10
- package/dist/theme/esm/index.js.map +1 -1
- package/package.json +3 -2
|
@@ -3,7 +3,38 @@ import { CommonThemeConfig } from '@officesdk/editor-sdk-core/shared';
|
|
|
3
3
|
type Theme$1 = CommonThemeConfig;
|
|
4
4
|
declare const lightTheme: Theme$1;
|
|
5
5
|
|
|
6
|
+
interface ModalVariantSize {
|
|
7
|
+
maxWidth: string;
|
|
8
|
+
minWidth: string;
|
|
9
|
+
maxHeight: string;
|
|
10
|
+
minHeight: string;
|
|
11
|
+
defaultWidth: string;
|
|
12
|
+
}
|
|
13
|
+
interface ModalBaseConfig {
|
|
14
|
+
background: string;
|
|
15
|
+
border: string;
|
|
16
|
+
borderRadius: string;
|
|
17
|
+
shadow: string;
|
|
18
|
+
maskLight: string;
|
|
19
|
+
maskDark: string;
|
|
20
|
+
maskZIndex: number;
|
|
21
|
+
titleColor: string;
|
|
22
|
+
titleFontSize: string;
|
|
23
|
+
titleFontWeight: number;
|
|
24
|
+
titleLineHeight: string;
|
|
25
|
+
bodyColor: string;
|
|
26
|
+
bodyFontSize: string;
|
|
27
|
+
bodyLineHeight: string;
|
|
28
|
+
padding: string;
|
|
29
|
+
closeButtonHoverBackground: string;
|
|
30
|
+
closeButtonActiveBackground: string;
|
|
31
|
+
}
|
|
32
|
+
interface ModalConfig {
|
|
33
|
+
message: ModalBaseConfig & ModalVariantSize;
|
|
34
|
+
functional: ModalVariantSize;
|
|
35
|
+
}
|
|
36
|
+
|
|
6
37
|
type Theme = CommonThemeConfig;
|
|
7
38
|
declare const theme: Theme;
|
|
8
39
|
|
|
9
|
-
export { type Theme, lightTheme, theme };
|
|
40
|
+
export { type ModalBaseConfig, type ModalConfig, type ModalVariantSize, type Theme, lightTheme, theme };
|
package/dist/theme/cjs/index.js
CHANGED
|
@@ -428,7 +428,7 @@ var button = {
|
|
|
428
428
|
borderColorHover: "transparent",
|
|
429
429
|
borderColorActive: "transparent",
|
|
430
430
|
borderColorDisabled: "transparent",
|
|
431
|
-
fontWeight:
|
|
431
|
+
fontWeight: 400,
|
|
432
432
|
colorHover: colors.palettes.brand,
|
|
433
433
|
colorActive: colors.palettes.brand,
|
|
434
434
|
colorDisabled: colors.palettes.transparency["30"]
|
|
@@ -447,7 +447,7 @@ var button = {
|
|
|
447
447
|
borderColorHover: "transparent",
|
|
448
448
|
borderColorActive: "transparent",
|
|
449
449
|
borderColorDisabled: "transparent",
|
|
450
|
-
fontWeight:
|
|
450
|
+
fontWeight: 400,
|
|
451
451
|
colorHover: colors.palettes.blue["6"],
|
|
452
452
|
colorActive: colors.palettes.blue["6"],
|
|
453
453
|
colorDisabled: colors.palettes.transparency["30"]
|
|
@@ -466,7 +466,7 @@ var button = {
|
|
|
466
466
|
borderColorHover: "transparent",
|
|
467
467
|
borderColorActive: "transparent",
|
|
468
468
|
borderColorDisabled: "transparent",
|
|
469
|
-
fontWeight:
|
|
469
|
+
fontWeight: 400,
|
|
470
470
|
colorHover: colors.palettes.red["6"],
|
|
471
471
|
colorActive: colors.palettes.red["6"],
|
|
472
472
|
colorDisabled: colors.palettes.transparency["30"]
|
|
@@ -485,7 +485,7 @@ var button = {
|
|
|
485
485
|
borderColorHover: "transparent",
|
|
486
486
|
borderColorActive: "transparent",
|
|
487
487
|
borderColorDisabled: "transparent",
|
|
488
|
-
fontWeight:
|
|
488
|
+
fontWeight: 400,
|
|
489
489
|
colorHover: colors.palettes.blue["6"],
|
|
490
490
|
colorActive: colors.palettes.blue["6"],
|
|
491
491
|
colorDisabled: colors.palettes.transparency["60"]
|
|
@@ -547,7 +547,7 @@ var button = {
|
|
|
547
547
|
height: "40px",
|
|
548
548
|
padding: "0px 26px",
|
|
549
549
|
textPadding: "0px 6px",
|
|
550
|
-
fontSize: "
|
|
550
|
+
fontSize: "16px",
|
|
551
551
|
lineHeight: "24px",
|
|
552
552
|
borderRadius: borderRadius.small,
|
|
553
553
|
iconSize: { width: "16px", height: "16px" },
|
|
@@ -1002,7 +1002,7 @@ var tab = {
|
|
|
1002
1002
|
backgroundDisabled: "transparent",
|
|
1003
1003
|
borderColor: "transparent",
|
|
1004
1004
|
borderColorHover: "transparent",
|
|
1005
|
-
borderColorActive: colors.palettes.transparency["
|
|
1005
|
+
borderColorActive: colors.palettes.transparency["20"],
|
|
1006
1006
|
borderColorDisabled: "transparent",
|
|
1007
1007
|
color: colors.palettes.transparency["60"],
|
|
1008
1008
|
colorHover: colors.palettes.brand,
|
|
@@ -1011,15 +1011,16 @@ var tab = {
|
|
|
1011
1011
|
},
|
|
1012
1012
|
layout: {
|
|
1013
1013
|
gap: "0"
|
|
1014
|
-
}
|
|
1014
|
+
},
|
|
1015
|
+
backgroundColor: colors.palettes.gray["8"]
|
|
1015
1016
|
},
|
|
1016
1017
|
large: {
|
|
1017
|
-
height: "
|
|
1018
|
+
height: "32px",
|
|
1018
1019
|
padding: "10px 16px",
|
|
1019
1020
|
fontSize: "14px",
|
|
1020
1021
|
lineHeight: "20px",
|
|
1021
1022
|
borderRadius: "4px",
|
|
1022
|
-
fontWeight:
|
|
1023
|
+
fontWeight: 400
|
|
1023
1024
|
}
|
|
1024
1025
|
};
|
|
1025
1026
|
|
|
@@ -1394,6 +1395,41 @@ var dropdownButton = {
|
|
|
1394
1395
|
}
|
|
1395
1396
|
};
|
|
1396
1397
|
|
|
1398
|
+
// src/light/components/modal.ts
|
|
1399
|
+
var modal = {
|
|
1400
|
+
message: {
|
|
1401
|
+
background: colors.palettes.gray["0"],
|
|
1402
|
+
border: `1px solid ${colors.palettes.transparency["5"]}`,
|
|
1403
|
+
borderRadius: borderRadius.medium,
|
|
1404
|
+
shadow: boxShadow.xl,
|
|
1405
|
+
maskLight: colors.mask.light,
|
|
1406
|
+
maskDark: colors.mask.dark,
|
|
1407
|
+
maskZIndex: 1e3,
|
|
1408
|
+
titleColor: colors.palettes.gray["120"],
|
|
1409
|
+
titleFontSize: typography.title.fontSize.l,
|
|
1410
|
+
titleFontWeight: typography.title.fontWeight.semibold,
|
|
1411
|
+
titleLineHeight: typography.title.lineHeight.medium,
|
|
1412
|
+
bodyColor: colors.palettes.gray["120"],
|
|
1413
|
+
bodyFontSize: typography.paragraph.fontSize.m,
|
|
1414
|
+
bodyLineHeight: typography.paragraph.lineHeight.medium,
|
|
1415
|
+
padding: "24px",
|
|
1416
|
+
closeButtonHoverBackground: colors.palettes.transparency["5"],
|
|
1417
|
+
closeButtonActiveBackground: colors.palettes.transparency["10"],
|
|
1418
|
+
maxWidth: "400px",
|
|
1419
|
+
minWidth: "360px",
|
|
1420
|
+
maxHeight: "50vh",
|
|
1421
|
+
minHeight: "172px",
|
|
1422
|
+
defaultWidth: "400px"
|
|
1423
|
+
},
|
|
1424
|
+
functional: {
|
|
1425
|
+
maxWidth: "800px",
|
|
1426
|
+
minWidth: "400px",
|
|
1427
|
+
maxHeight: "80vh",
|
|
1428
|
+
minHeight: "380px",
|
|
1429
|
+
defaultWidth: "640px"
|
|
1430
|
+
}
|
|
1431
|
+
};
|
|
1432
|
+
|
|
1397
1433
|
// src/light/components/index.ts
|
|
1398
1434
|
var components = {
|
|
1399
1435
|
toast,
|
|
@@ -1410,7 +1446,8 @@ var components = {
|
|
|
1410
1446
|
tooltip,
|
|
1411
1447
|
toolbarButton,
|
|
1412
1448
|
menu,
|
|
1413
|
-
dropdownButton
|
|
1449
|
+
dropdownButton,
|
|
1450
|
+
modal
|
|
1414
1451
|
};
|
|
1415
1452
|
|
|
1416
1453
|
// src/light/index.ts
|