pds-dev-kit-web 1.4.68 → 1.5.1
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/index.d.ts +6 -4
- package/dist/index.js +13 -6
- package/dist/src/desktop/components/Chip/Chip.d.ts +5 -3
- package/dist/src/desktop/components/Chip/Chip.js +7 -5
- package/dist/src/desktop/index.d.ts +2 -2
- package/dist/src/desktop/index.js +4 -1
- package/dist/src/desktop/panels/AnnotationSheet/AnnotationSheet.d.ts +57 -0
- package/dist/src/desktop/panels/AnnotationSheet/AnnotationSheet.js +134 -0
- package/dist/src/desktop/panels/AnnotationSheet/index.d.ts +1 -0
- package/dist/src/desktop/panels/AnnotationSheet/index.js +8 -0
- package/dist/src/desktop/panels/ContentSheet/ContentSheet.d.ts +57 -0
- package/dist/src/desktop/panels/ContentSheet/ContentSheet.js +134 -0
- package/dist/src/desktop/panels/ContentSheet/index.d.ts +1 -0
- package/dist/src/desktop/panels/ContentSheet/index.js +8 -0
- package/dist/src/desktop/panels/SectionSheet/SectionSheet.d.ts +57 -0
- package/dist/src/desktop/panels/SectionSheet/SectionSheet.js +134 -0
- package/dist/src/desktop/panels/SectionSheet/index.d.ts +1 -0
- package/dist/src/desktop/panels/SectionSheet/index.js +8 -0
- package/dist/src/desktop/panels/index.d.ts +4 -1
- package/dist/src/desktop/panels/index.js +7 -1
- package/dist/src/mobile/components/Chip/Chip.d.ts +5 -3
- package/dist/src/mobile/components/Chip/Chip.js +7 -5
- package/dist/src/mobile/components/FloatingActionButton/FloatingActionButton.d.ts +16 -0
- package/dist/src/mobile/components/FloatingActionButton/FloatingActionButton.js +89 -0
- package/dist/src/mobile/components/FloatingActionButton/index.d.ts +1 -0
- package/dist/src/mobile/components/FloatingActionButton/index.js +8 -0
- package/dist/src/mobile/components/index.d.ts +2 -1
- package/dist/src/mobile/components/index.js +3 -1
- package/dist/src/mobile/index.d.ts +4 -4
- package/dist/src/mobile/index.js +5 -1
- package/dist/src/mobile/panels/AnnotationSheet/AnnotationSheet.d.ts +56 -0
- package/dist/src/mobile/panels/AnnotationSheet/AnnotationSheet.js +131 -0
- package/dist/src/mobile/panels/AnnotationSheet/index.d.ts +1 -0
- package/dist/src/mobile/panels/AnnotationSheet/index.js +8 -0
- package/dist/src/mobile/panels/ContentSheet/ContentSheet.d.ts +56 -0
- package/dist/src/mobile/panels/ContentSheet/ContentSheet.js +131 -0
- package/dist/src/mobile/panels/ContentSheet/index.d.ts +1 -0
- package/dist/src/mobile/panels/ContentSheet/index.js +8 -0
- package/dist/src/mobile/panels/SectionSheet/SectionSheet.d.ts +56 -0
- package/dist/src/mobile/panels/SectionSheet/SectionSheet.js +131 -0
- package/dist/src/mobile/panels/SectionSheet/index.d.ts +1 -0
- package/dist/src/mobile/panels/SectionSheet/index.js +8 -0
- package/dist/src/mobile/panels/index.d.ts +4 -1
- package/dist/src/mobile/panels/index.js +7 -1
- package/package.json +1 -1
- package/release-note.md +6 -3
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
import { UiColors } from '../../../common';
|
|
3
|
+
declare type PaddingSpacingType = 'none' | keyof typeof paddingSpacing;
|
|
4
|
+
export declare type SectionSheetProps = {
|
|
5
|
+
width: string;
|
|
6
|
+
height: string;
|
|
7
|
+
backgroundColorTheme?: 'transparent' | 'white' | 'black' | 'base1' | 'base2' | 'base3';
|
|
8
|
+
overrideBackgroundColorKey?: UiColors;
|
|
9
|
+
borderMode?: 'none' | 'use';
|
|
10
|
+
borderWidth?: 1 | 2;
|
|
11
|
+
borderColorTheme?: 'grey' | 'blue' | 'green';
|
|
12
|
+
overrideBorderColorKey?: UiColors;
|
|
13
|
+
shapeType?: 'rectangle' | 'round';
|
|
14
|
+
radius?: 8 | 16 | 24;
|
|
15
|
+
paddingTop?: PaddingSpacingType;
|
|
16
|
+
paddingRight?: PaddingSpacingType;
|
|
17
|
+
paddingBottom?: PaddingSpacingType;
|
|
18
|
+
paddingLeft?: PaddingSpacingType;
|
|
19
|
+
overrideCSS?: CSSProperties;
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
22
|
+
};
|
|
23
|
+
export declare type StyleProps = {
|
|
24
|
+
$width?: string;
|
|
25
|
+
$height?: string;
|
|
26
|
+
$backgroundColorTheme?: 'transparent' | 'white' | 'black' | 'base1' | 'base2' | 'base3';
|
|
27
|
+
overrideBackgroundColorKey?: UiColors;
|
|
28
|
+
borderMode?: 'none' | 'use';
|
|
29
|
+
$borderWidth?: 1 | 2;
|
|
30
|
+
$borderColorTheme?: 'grey' | 'blue' | 'green';
|
|
31
|
+
overrideBorderColorKey?: UiColors;
|
|
32
|
+
shapeType?: 'rectangle' | 'round';
|
|
33
|
+
$radius?: 8 | 16 | 24;
|
|
34
|
+
paddingTop?: PaddingSpacingType;
|
|
35
|
+
paddingRight?: PaddingSpacingType;
|
|
36
|
+
paddingBottom?: PaddingSpacingType;
|
|
37
|
+
paddingLeft?: PaddingSpacingType;
|
|
38
|
+
hasOnClick?: boolean;
|
|
39
|
+
};
|
|
40
|
+
declare const paddingSpacing: {
|
|
41
|
+
readonly spacing_a: "spacingA";
|
|
42
|
+
readonly spacing_b: "spacingB";
|
|
43
|
+
readonly spacing_c: "spacingC";
|
|
44
|
+
readonly spacing_d: "spacingD";
|
|
45
|
+
readonly spacing_e: "spacingE";
|
|
46
|
+
readonly spacing_f: "spacingF";
|
|
47
|
+
readonly spacing_g: "spacingG";
|
|
48
|
+
readonly spacing_h: "spacingH";
|
|
49
|
+
readonly spacing_i: "spacingI";
|
|
50
|
+
readonly spacing_j: "spacingJ";
|
|
51
|
+
readonly spacing_k: "spacingK";
|
|
52
|
+
readonly spacing_l: "spacingL";
|
|
53
|
+
readonly spacing_m: "spacingM";
|
|
54
|
+
readonly spacing_n: "spacingN";
|
|
55
|
+
};
|
|
56
|
+
declare function SectionSheet({ width, height, backgroundColorTheme, overrideBackgroundColorKey, borderMode, borderWidth, borderColorTheme, overrideBorderColorKey, shapeType, radius, paddingTop, paddingRight, paddingBottom, paddingLeft, overrideCSS, children, onClick }: SectionSheetProps): JSX.Element;
|
|
57
|
+
export default SectionSheet;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
30
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
31
|
+
var backgroundColorTheme = {
|
|
32
|
+
transparent: 'ui_cpnt_sheet_base_03',
|
|
33
|
+
white: 'ui_cpnt_sheet_base_white',
|
|
34
|
+
black: 'ui_cpnt_sheet_base_black',
|
|
35
|
+
base1: 'ui_cpnt_sheet_base_01',
|
|
36
|
+
base2: 'ui_cpnt_sheet_base_02',
|
|
37
|
+
base3: 'ui_cpnt_sheet_base'
|
|
38
|
+
};
|
|
39
|
+
var borderColorTheme = {
|
|
40
|
+
grey: 'ui_cpnt_sheet_border_01',
|
|
41
|
+
blue: 'ui_cpnt_sheet_border_02',
|
|
42
|
+
green: 'ui_cpnt_sheet_border_03'
|
|
43
|
+
};
|
|
44
|
+
var paddingSpacing = {
|
|
45
|
+
spacing_a: 'spacingA',
|
|
46
|
+
spacing_b: 'spacingB',
|
|
47
|
+
spacing_c: 'spacingC',
|
|
48
|
+
spacing_d: 'spacingD',
|
|
49
|
+
spacing_e: 'spacingE',
|
|
50
|
+
spacing_f: 'spacingF',
|
|
51
|
+
spacing_g: 'spacingG',
|
|
52
|
+
spacing_h: 'spacingH',
|
|
53
|
+
spacing_i: 'spacingI',
|
|
54
|
+
spacing_j: 'spacingJ',
|
|
55
|
+
spacing_k: 'spacingK',
|
|
56
|
+
spacing_l: 'spacingL',
|
|
57
|
+
spacing_m: 'spacingM',
|
|
58
|
+
spacing_n: 'spacingN'
|
|
59
|
+
};
|
|
60
|
+
function SectionSheet(_a) {
|
|
61
|
+
var width = _a.width, height = _a.height, _b = _a.backgroundColorTheme, backgroundColorTheme = _b === void 0 ? 'transparent' : _b, overrideBackgroundColorKey = _a.overrideBackgroundColorKey, _c = _a.borderMode, borderMode = _c === void 0 ? 'none' : _c, _d = _a.borderWidth, borderWidth = _d === void 0 ? 1 : _d, _e = _a.borderColorTheme, borderColorTheme = _e === void 0 ? 'grey' : _e, overrideBorderColorKey = _a.overrideBorderColorKey, _f = _a.shapeType, shapeType = _f === void 0 ? 'rectangle' : _f, _g = _a.radius, radius = _g === void 0 ? 24 : _g, _h = _a.paddingTop, paddingTop = _h === void 0 ? 'spacing_e' : _h, _j = _a.paddingRight, paddingRight = _j === void 0 ? 'spacing_e' : _j, _k = _a.paddingBottom, paddingBottom = _k === void 0 ? 'spacing_e' : _k, _l = _a.paddingLeft, paddingLeft = _l === void 0 ? 'spacing_e' : _l, overrideCSS = _a.overrideCSS, children = _a.children, onClick = _a.onClick;
|
|
62
|
+
var handleClick = function (e) {
|
|
63
|
+
if (onClick) {
|
|
64
|
+
onClick(e);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
return (react_1.default.createElement(S_SectionSheet, { "$width": width, "$height": height, "$backgroundColorTheme": backgroundColorTheme, overrideBackgroundColorKey: overrideBackgroundColorKey, borderMode: borderMode, "$borderWidth": borderWidth, "$borderColorTheme": borderColorTheme, overrideBorderColorKey: overrideBorderColorKey, shapeType: shapeType, "$radius": radius, paddingTop: paddingTop, paddingRight: paddingRight, paddingBottom: paddingBottom, paddingLeft: paddingLeft, style: overrideCSS, onClick: handleClick, hasOnClick: !!onClick }, children));
|
|
68
|
+
}
|
|
69
|
+
var radiusStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: ", ";\n"], ["\n border-radius: ", ";\n"])), function (_a) {
|
|
70
|
+
var $radius = _a.$radius;
|
|
71
|
+
return $radius + "px";
|
|
72
|
+
});
|
|
73
|
+
var paddingTopStyle = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding-top: ", ";\n"], ["\n padding-top: ", ";\n"])), function (_a) {
|
|
74
|
+
var theme = _a.theme, paddingTop = _a.paddingTop;
|
|
75
|
+
return paddingTop && (paddingTop === 'none' ? 0 : theme.spacing[paddingSpacing[paddingTop]]);
|
|
76
|
+
});
|
|
77
|
+
var paddingRightStyle = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding-right: ", ";\n"], ["\n padding-right: ", ";\n"])), function (_a) {
|
|
78
|
+
var theme = _a.theme, paddingRight = _a.paddingRight;
|
|
79
|
+
return paddingRight && (paddingRight === 'none' ? 0 : theme.spacing[paddingSpacing[paddingRight]]);
|
|
80
|
+
});
|
|
81
|
+
var paddingBottomStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n padding-bottom: ", ";\n"], ["\n padding-bottom: ", ";\n"])), function (_a) {
|
|
82
|
+
var theme = _a.theme, paddingBottom = _a.paddingBottom;
|
|
83
|
+
return paddingBottom && (paddingBottom === 'none' ? 0 : theme.spacing[paddingSpacing[paddingBottom]]);
|
|
84
|
+
});
|
|
85
|
+
var paddingLeftStyle = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n padding-left: ", ";\n"], ["\n padding-left: ", ";\n"])), function (_a) {
|
|
86
|
+
var theme = _a.theme, paddingLeft = _a.paddingLeft;
|
|
87
|
+
return paddingLeft && (paddingLeft === 'none' ? 0 : theme.spacing[paddingSpacing[paddingLeft]]);
|
|
88
|
+
});
|
|
89
|
+
var advancedCSS = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background-color: ", ";\n border-color: ", ";\n"], ["\n background-color: ", ";\n border-color: ", ";\n"])), function (_a) {
|
|
90
|
+
var theme = _a.theme, overrideBackgroundColorKey = _a.overrideBackgroundColorKey;
|
|
91
|
+
return overrideBackgroundColorKey && theme[overrideBackgroundColorKey];
|
|
92
|
+
}, function (_a) {
|
|
93
|
+
var theme = _a.theme, overrideBorderColorKey = _a.overrideBorderColorKey;
|
|
94
|
+
return overrideBorderColorKey && theme[overrideBorderColorKey];
|
|
95
|
+
});
|
|
96
|
+
var S_SectionSheet = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n width: ", ";\n height: ", ";\n background-color: ", ";\n border-style: ", ";\n border-width: ", ";\n border-color: ", ";\n cursor: ", ";\n box-sizing: border-box;\n\n ", ";\n\n ", ";\n ", ";\n ", ";\n ", ";\n\n ", "\n"], ["\n width: ", ";\n height: ", ";\n background-color: ", ";\n border-style: ", ";\n border-width: ", ";\n border-color: ", ";\n cursor: ", ";\n box-sizing: border-box;\n\n ", ";\n\n ", ";\n ", ";\n ", ";\n ", ";\n\n ", "\n"])), function (_a) {
|
|
97
|
+
var $width = _a.$width;
|
|
98
|
+
return $width;
|
|
99
|
+
}, function (_a) {
|
|
100
|
+
var $height = _a.$height;
|
|
101
|
+
return $height;
|
|
102
|
+
}, function (_a) {
|
|
103
|
+
var theme = _a.theme, $backgroundColorTheme = _a.$backgroundColorTheme;
|
|
104
|
+
return $backgroundColorTheme && theme[backgroundColorTheme[$backgroundColorTheme]];
|
|
105
|
+
}, function (_a) {
|
|
106
|
+
var borderMode = _a.borderMode;
|
|
107
|
+
return (borderMode === 'use' ? 'solid' : 'none');
|
|
108
|
+
}, function (_a) {
|
|
109
|
+
var $borderWidth = _a.$borderWidth;
|
|
110
|
+
return $borderWidth + "px";
|
|
111
|
+
}, function (_a) {
|
|
112
|
+
var theme = _a.theme, $borderColorTheme = _a.$borderColorTheme;
|
|
113
|
+
return $borderColorTheme && theme[borderColorTheme[$borderColorTheme]];
|
|
114
|
+
}, function (_a) {
|
|
115
|
+
var hasOnClick = _a.hasOnClick;
|
|
116
|
+
return (hasOnClick ? 'pointer' : 'default');
|
|
117
|
+
}, function (_a) {
|
|
118
|
+
var shapeType = _a.shapeType;
|
|
119
|
+
return shapeType === 'round' && radiusStyle;
|
|
120
|
+
}, function (_a) {
|
|
121
|
+
var paddingTop = _a.paddingTop;
|
|
122
|
+
return paddingTop !== 'none' && paddingTopStyle;
|
|
123
|
+
}, function (_a) {
|
|
124
|
+
var paddingRight = _a.paddingRight;
|
|
125
|
+
return paddingRight !== 'none' && paddingRightStyle;
|
|
126
|
+
}, function (_a) {
|
|
127
|
+
var paddingBottom = _a.paddingBottom;
|
|
128
|
+
return paddingBottom !== 'none' && paddingBottomStyle;
|
|
129
|
+
}, function (_a) {
|
|
130
|
+
var paddingLeft = _a.paddingLeft;
|
|
131
|
+
return paddingLeft !== 'none' && paddingLeftStyle;
|
|
132
|
+
}, advancedCSS);
|
|
133
|
+
exports.default = SectionSheet;
|
|
134
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SectionSheet } from './SectionSheet';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SectionSheet = void 0;
|
|
7
|
+
var SectionSheet_1 = require("./SectionSheet");
|
|
8
|
+
Object.defineProperty(exports, "SectionSheet", { enumerable: true, get: function () { return __importDefault(SectionSheet_1).default; } });
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { AnnotationSheet } from './AnnotationSheet';
|
|
2
|
+
import { ContentSheet } from './ContentSheet';
|
|
1
3
|
import { DesktopBasicModal } from './DesktopBasicModal';
|
|
2
4
|
import { DesktopHeadlessModal } from './DesktopHeadlessModal';
|
|
3
|
-
|
|
5
|
+
import { SectionSheet } from './SectionSheet';
|
|
6
|
+
export { AnnotationSheet, ContentSheet, DesktopBasicModal, DesktopHeadlessModal, SectionSheet };
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DesktopHeadlessModal = exports.DesktopBasicModal = void 0;
|
|
3
|
+
exports.SectionSheet = exports.DesktopHeadlessModal = exports.DesktopBasicModal = exports.ContentSheet = exports.AnnotationSheet = void 0;
|
|
4
|
+
var AnnotationSheet_1 = require("./AnnotationSheet");
|
|
5
|
+
Object.defineProperty(exports, "AnnotationSheet", { enumerable: true, get: function () { return AnnotationSheet_1.AnnotationSheet; } });
|
|
6
|
+
var ContentSheet_1 = require("./ContentSheet");
|
|
7
|
+
Object.defineProperty(exports, "ContentSheet", { enumerable: true, get: function () { return ContentSheet_1.ContentSheet; } });
|
|
4
8
|
var DesktopBasicModal_1 = require("./DesktopBasicModal");
|
|
5
9
|
Object.defineProperty(exports, "DesktopBasicModal", { enumerable: true, get: function () { return DesktopBasicModal_1.DesktopBasicModal; } });
|
|
6
10
|
var DesktopHeadlessModal_1 = require("./DesktopHeadlessModal");
|
|
7
11
|
Object.defineProperty(exports, "DesktopHeadlessModal", { enumerable: true, get: function () { return DesktopHeadlessModal_1.DesktopHeadlessModal; } });
|
|
12
|
+
var SectionSheet_1 = require("./SectionSheet");
|
|
13
|
+
Object.defineProperty(exports, "SectionSheet", { enumerable: true, get: function () { return SectionSheet_1.SectionSheet; } });
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { FillIconNameKeys, LineIconNameKeys, PDSTextType, PDSValueOption } from '../../../common';
|
|
2
|
+
import { FillIconNameKeys, LineIconNameKeys, PDSTextType, PDSValueOption, UiColors } from '../../../common';
|
|
3
3
|
declare type DisplayType = 'category_choice' | 'filter_single' | 'filter_multi' | 'removable' | 'label' | 'time' | 'information';
|
|
4
4
|
export declare type ChipProps = {
|
|
5
5
|
displayType?: DisplayType;
|
|
6
|
+
text?: PDSTextType;
|
|
6
7
|
filterIconMode?: 'none' | 'left';
|
|
7
8
|
iconFillType?: 'line' | 'fill';
|
|
8
9
|
iconName?: FillIconNameKeys | LineIconNameKeys;
|
|
9
|
-
|
|
10
|
+
overrideTextColorKey?: UiColors;
|
|
11
|
+
overrideBackgroundColorKey?: UiColors;
|
|
10
12
|
value?: PDSValueOption['value'];
|
|
11
13
|
id?: PDSValueOption['value'];
|
|
12
14
|
onClickChip?: () => void;
|
|
@@ -16,5 +18,5 @@ export declare type ChipProps = {
|
|
|
16
18
|
/** @deprecated id 필드를 대신 사용하세요. */
|
|
17
19
|
chipId?: string | number;
|
|
18
20
|
};
|
|
19
|
-
export default function Chip({ displayType, filterIconMode, iconFillType, iconName,
|
|
21
|
+
export default function Chip({ displayType, text, filterIconMode, iconFillType, iconName, overrideTextColorKey, overrideBackgroundColorKey, value, id, onClickChip, onClickXMarkIcon, activeChipId, chipId }: ChipProps): JSX.Element;
|
|
20
22
|
export {};
|
|
@@ -32,7 +32,7 @@ var hybrid_1 = require("../../../hybrid");
|
|
|
32
32
|
var Icon_1 = require("../../../hybrid/components/Icon");
|
|
33
33
|
var TextLabel_1 = require("../TextLabel");
|
|
34
34
|
function Chip(_a) {
|
|
35
|
-
var _b = _a.displayType, displayType = _b === void 0 ? 'filter_single' : _b, _c = _a.filterIconMode, filterIconMode = _c === void 0 ? 'none' : _c, _d = _a.iconFillType, iconFillType = _d === void 0 ? 'line' : _d, iconName = _a.iconName,
|
|
35
|
+
var _b = _a.displayType, displayType = _b === void 0 ? 'filter_single' : _b, text = _a.text, _c = _a.filterIconMode, filterIconMode = _c === void 0 ? 'none' : _c, _d = _a.iconFillType, iconFillType = _d === void 0 ? 'line' : _d, iconName = _a.iconName, overrideTextColorKey = _a.overrideTextColorKey, overrideBackgroundColorKey = _a.overrideBackgroundColorKey, value = _a.value, id = _a.id, onClickChip = _a.onClickChip, onClickXMarkIcon = _a.onClickXMarkIcon, activeChipId = _a.activeChipId, chipId = _a.chipId;
|
|
36
36
|
var isActive = (0, react_1.useMemo)(function () {
|
|
37
37
|
if (activeChipId !== undefined && chipId !== undefined) {
|
|
38
38
|
return activeChipId === chipId;
|
|
@@ -65,8 +65,8 @@ function Chip(_a) {
|
|
|
65
65
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }),
|
|
66
66
|
react_1.default.createElement(Icon_1.Icon, { size: 12, fillType: "line", iconName: "ic_xmark", colorKey: "ui_cpnt_chip_fill_icon_active_01" })))));
|
|
67
67
|
case 'information':
|
|
68
|
-
return (react_1.default.createElement(S_InfoChip, { onClick: handleClickChip },
|
|
69
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption2Regular", singleLineMode: "use", colorTheme: "sysTextPrimary", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })));
|
|
68
|
+
return (react_1.default.createElement(S_InfoChip, { onClick: handleClickChip, overrideBackgroundColorKey: overrideBackgroundColorKey },
|
|
69
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption2Regular", singleLineMode: "use", colorTheme: "sysTextPrimary", colorOverride: overrideTextColorKey, ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })));
|
|
70
70
|
case 'label':
|
|
71
71
|
return (react_1.default.createElement(S_LabelChip, { onClick: handleClickChip },
|
|
72
72
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption2Bold", singleLineMode: "use", colorTheme: "sysTextTertiary", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" })));
|
|
@@ -102,8 +102,10 @@ var S_CategoryChoiceChip = styled_components_1.default.div(templateObject_1 || (
|
|
|
102
102
|
return isActive ? '' : "border: 1px solid " + theme.ui_cpnt_chip_line_border_01;
|
|
103
103
|
});
|
|
104
104
|
var S_InfoChip = styled_components_1.default.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border-radius: 12px;\n box-sizing: border-box;\n display: flex;\n height: 24px;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div {\n height: 24px;\n line-height: 24px;\n }\n"], ["\n align-items: center;\n background-color: ", ";\n border-radius: 12px;\n box-sizing: border-box;\n display: flex;\n height: 24px;\n padding-left: ", ";\n padding-right: ", ";\n\n & > div {\n height: 24px;\n line-height: 24px;\n }\n"])), function (_a) {
|
|
105
|
-
var theme = _a.theme;
|
|
106
|
-
return
|
|
105
|
+
var theme = _a.theme, overrideBackgroundColorKey = _a.overrideBackgroundColorKey;
|
|
106
|
+
return overrideBackgroundColorKey
|
|
107
|
+
? theme[overrideBackgroundColorKey]
|
|
108
|
+
: theme.ui_cpnt_chip_fill_base_inactive;
|
|
107
109
|
}, function (_a) {
|
|
108
110
|
var theme = _a.theme;
|
|
109
111
|
return theme.spacing.spacingC;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FillIconNameKeys, LineIconNameKeys, PDSTextType } from '../../../common';
|
|
3
|
+
export declare type FloatingActionButtonProps = {
|
|
4
|
+
text?: PDSTextType;
|
|
5
|
+
displayType?: 'icon_only' | 'text_only' | 'icon_text';
|
|
6
|
+
size?: 'xlarge' | 'large';
|
|
7
|
+
fontWeight?: 'bold' | 'regular';
|
|
8
|
+
iconFillType?: 'fill' | 'line';
|
|
9
|
+
iconName?: FillIconNameKeys | LineIconNameKeys;
|
|
10
|
+
colorTheme?: 'none' | 'theme1' | 'theme2' | 'theme3';
|
|
11
|
+
state?: 'normal' | 'disable';
|
|
12
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
13
|
+
onMouseDown?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
14
|
+
};
|
|
15
|
+
declare function FloatingActionButton({ text, displayType, size, fontWeight, iconFillType, iconName, colorTheme, state, onClick, onMouseDown }: FloatingActionButtonProps): JSX.Element;
|
|
16
|
+
export default FloatingActionButton;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
30
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
31
|
+
var hybrid_1 = require("../../../hybrid");
|
|
32
|
+
var TextLabel_1 = require("../TextLabel");
|
|
33
|
+
function FloatingActionButton(_a) {
|
|
34
|
+
var text = _a.text, _b = _a.displayType, displayType = _b === void 0 ? 'icon_text' : _b, _c = _a.size, size = _c === void 0 ? 'large' : _c, _d = _a.fontWeight, fontWeight = _d === void 0 ? 'bold' : _d, _e = _a.iconFillType, iconFillType = _e === void 0 ? 'line' : _e, iconName = _a.iconName, _f = _a.colorTheme, colorTheme = _f === void 0 ? 'none' : _f, _g = _a.state, state = _g === void 0 ? 'normal' : _g, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
|
|
35
|
+
var handleClick = function (e) {
|
|
36
|
+
if (onClick) {
|
|
37
|
+
onClick(e);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
var handleMouseDown = function (e) {
|
|
41
|
+
if (onMouseDown) {
|
|
42
|
+
onMouseDown(e);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
var iconColor = function () {
|
|
46
|
+
if (state === 'disable') {
|
|
47
|
+
return 'ui_cpnt_button_icon_disabled';
|
|
48
|
+
}
|
|
49
|
+
return 'ui_cpnt_button_icon_on_primary';
|
|
50
|
+
};
|
|
51
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
52
|
+
displayType === 'icon_only' && (react_1.default.createElement(S_ButtonIconOnly, { size: size, colorTheme: colorTheme, state: state, disabled: state === 'disable', onClick: handleClick, onMouseDown: handleMouseDown },
|
|
53
|
+
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' ? 20 : 24, colorKey: iconColor(), fillType: iconFillType }))),
|
|
54
|
+
displayType !== 'icon_only' && (react_1.default.createElement(S_Button, { size: size, colorTheme: colorTheme, state: state, disabled: state === 'disable', onClick: handleClick, onMouseDown: handleMouseDown },
|
|
55
|
+
displayType === 'text_only' && (react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: fontWeight === 'regular' ? 'body1Regular' : 'body1Bold', singleLineMode: "use", colorTheme: state === 'disable' ? 'sysTextTertiary' : 'usrTextBrandOnPrimary', colorOverride: state === 'disable' ? 'ui_cpnt_button_icon_darktheme_disabled' : undefined })),
|
|
56
|
+
displayType === 'icon_text' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
57
|
+
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: 20, colorKey: iconColor(), fillType: iconFillType }),
|
|
58
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }),
|
|
59
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: fontWeight === 'regular' ? 'body1Regular' : 'body1Bold', singleLineMode: "use", colorTheme: state === 'disable' ? 'sysTextTertiary' : 'usrTextBrandOnPrimary', colorOverride: state === 'disable' ? 'ui_cpnt_button_icon_darktheme_disabled' : undefined })))))));
|
|
60
|
+
}
|
|
61
|
+
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n width: 48px;\n border-radius: 24px;\n"], ["\n height: 48px;\n width: 48px;\n border-radius: 24px;\n"])));
|
|
62
|
+
var xlarge = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 64px;\n width: 64px;\n border-radius: 32px;\n"], ["\n height: 64px;\n width: 64px;\n border-radius: 32px;\n"])));
|
|
63
|
+
var disabled = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
64
|
+
var theme = _a.theme;
|
|
65
|
+
return theme.ui_cpnt_button_fill_base_disabled;
|
|
66
|
+
});
|
|
67
|
+
var floatingActionButtonStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n right: 24px;\n bottom: 24px;\n background-color: ", ";\n border: none;\n box-sizing: border-box;\n box-shadow: ", ";\n z-index: 101;\n\n &:focus {\n outline: none;\n }\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n right: 24px;\n bottom: 24px;\n background-color: ", ";\n border: none;\n box-sizing: border-box;\n box-shadow: ", ";\n z-index: 101;\n\n &:focus {\n outline: none;\n }\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"])), function (_a) {
|
|
68
|
+
var theme = _a.theme;
|
|
69
|
+
return theme.ui_cpnt_button_fill_base_primary;
|
|
70
|
+
}, function (_a) {
|
|
71
|
+
var theme = _a.theme;
|
|
72
|
+
return theme.boxShadow.elevation3;
|
|
73
|
+
}, function (_a) {
|
|
74
|
+
var theme = _a.theme;
|
|
75
|
+
return "background-image: linear-gradient(\n to top,\n " + theme.ui_cpnt_button_fill_on_base_pressed + ",\n " + theme.ui_cpnt_button_fill_on_base_pressed + "\n );";
|
|
76
|
+
}, function (_a) {
|
|
77
|
+
var state = _a.state;
|
|
78
|
+
return state === 'disable' && disabled;
|
|
79
|
+
});
|
|
80
|
+
var S_ButtonIconOnly = styled_components_1.default.button(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n padding: none;\n ", ";\n ", ";\n"], ["\n padding: none;\n ", ";\n ", ";\n"])), floatingActionButtonStyle, function (_a) {
|
|
81
|
+
var size = _a.size;
|
|
82
|
+
return size && { large: large, xlarge: xlarge }[size];
|
|
83
|
+
});
|
|
84
|
+
var S_Button = styled_components_1.default.button(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n height: 48px;\n padding: ", ";\n border-radius: 14px;\n ", ";\n"], ["\n height: 48px;\n padding: ", ";\n border-radius: 14px;\n ", ";\n"])), function (_a) {
|
|
85
|
+
var theme = _a.theme;
|
|
86
|
+
return "0 " + theme.spacing.spacingE;
|
|
87
|
+
}, floatingActionButtonStyle);
|
|
88
|
+
exports.default = FloatingActionButton;
|
|
89
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FloatingActionButton } from './FloatingActionButton';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.FloatingActionButton = void 0;
|
|
7
|
+
var FloatingActionButton_1 = require("./FloatingActionButton");
|
|
8
|
+
Object.defineProperty(exports, "FloatingActionButton", { enumerable: true, get: function () { return __importDefault(FloatingActionButton_1).default; } });
|
|
@@ -13,6 +13,7 @@ import { Chip } from './Chip';
|
|
|
13
13
|
import { ContextMenu } from './ContextMenu';
|
|
14
14
|
import { ContextMenuItem } from './ContextMenuItem';
|
|
15
15
|
import { Dropdown } from './Dropdown';
|
|
16
|
+
import { FloatingActionButton } from './FloatingActionButton';
|
|
16
17
|
import { HorizontalFormGroup } from './HorizontalFormGroup';
|
|
17
18
|
import { IconButton } from './IconButton';
|
|
18
19
|
import { ImageSlide } from './ImageSlide';
|
|
@@ -30,4 +31,4 @@ import { TextLabel } from './TextLabel';
|
|
|
30
31
|
import { UploadIconButton } from './UploadIconButton';
|
|
31
32
|
import { UploadMainButton } from './UploadMainButton';
|
|
32
33
|
import { UploadTextButton } from './UploadTextButton';
|
|
33
|
-
export { BasicChatListItem, BasicFormGroup, BasicList, BasicListItem, BlogTextField, BodyTextGroup, Card, CardList, ChatBubbleListItem, ChatList, Checkbox, Chip, ContextMenu, ContextMenuItem, Dropdown, HorizontalFormGroup, IconButton, ImageSlide, MainButton, MobileAlertDialog, MobileHeaderBar, MobileTabBar, Radio, ReactionButton, Select, StatusBlock, TextButton, TextField, TextLabel, UploadIconButton, UploadMainButton, UploadTextButton };
|
|
34
|
+
export { BasicChatListItem, BasicFormGroup, BasicList, BasicListItem, BlogTextField, BodyTextGroup, Card, CardList, ChatBubbleListItem, ChatList, Checkbox, Chip, ContextMenu, ContextMenuItem, Dropdown, FloatingActionButton, HorizontalFormGroup, IconButton, ImageSlide, MainButton, MobileAlertDialog, MobileHeaderBar, MobileTabBar, Radio, ReactionButton, Select, StatusBlock, TextButton, TextField, TextLabel, UploadIconButton, UploadMainButton, UploadTextButton };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UploadTextButton = exports.UploadMainButton = exports.UploadIconButton = exports.TextLabel = exports.TextField = exports.TextButton = exports.StatusBlock = exports.Select = exports.ReactionButton = exports.Radio = exports.MobileTabBar = exports.MobileHeaderBar = exports.MobileAlertDialog = exports.MainButton = exports.ImageSlide = exports.IconButton = exports.HorizontalFormGroup = exports.Dropdown = exports.ContextMenuItem = exports.ContextMenu = exports.Chip = exports.Checkbox = exports.ChatList = exports.ChatBubbleListItem = exports.CardList = exports.Card = exports.BodyTextGroup = exports.BlogTextField = exports.BasicListItem = exports.BasicList = exports.BasicFormGroup = exports.BasicChatListItem = void 0;
|
|
3
|
+
exports.UploadTextButton = exports.UploadMainButton = exports.UploadIconButton = exports.TextLabel = exports.TextField = exports.TextButton = exports.StatusBlock = exports.Select = exports.ReactionButton = exports.Radio = exports.MobileTabBar = exports.MobileHeaderBar = exports.MobileAlertDialog = exports.MainButton = exports.ImageSlide = exports.IconButton = exports.HorizontalFormGroup = exports.FloatingActionButton = exports.Dropdown = exports.ContextMenuItem = exports.ContextMenu = exports.Chip = exports.Checkbox = exports.ChatList = exports.ChatBubbleListItem = exports.CardList = exports.Card = exports.BodyTextGroup = exports.BlogTextField = exports.BasicListItem = exports.BasicList = exports.BasicFormGroup = exports.BasicChatListItem = void 0;
|
|
4
4
|
var BasicChatListItem_1 = require("./BasicChatListItem");
|
|
5
5
|
Object.defineProperty(exports, "BasicChatListItem", { enumerable: true, get: function () { return BasicChatListItem_1.BasicChatListItem; } });
|
|
6
6
|
var BasicFormGroup_1 = require("./BasicFormGroup");
|
|
@@ -31,6 +31,8 @@ var ContextMenuItem_1 = require("./ContextMenuItem");
|
|
|
31
31
|
Object.defineProperty(exports, "ContextMenuItem", { enumerable: true, get: function () { return ContextMenuItem_1.ContextMenuItem; } });
|
|
32
32
|
var Dropdown_1 = require("./Dropdown");
|
|
33
33
|
Object.defineProperty(exports, "Dropdown", { enumerable: true, get: function () { return Dropdown_1.Dropdown; } });
|
|
34
|
+
var FloatingActionButton_1 = require("./FloatingActionButton");
|
|
35
|
+
Object.defineProperty(exports, "FloatingActionButton", { enumerable: true, get: function () { return FloatingActionButton_1.FloatingActionButton; } });
|
|
34
36
|
var HorizontalFormGroup_1 = require("./HorizontalFormGroup");
|
|
35
37
|
Object.defineProperty(exports, "HorizontalFormGroup", { enumerable: true, get: function () { return HorizontalFormGroup_1.HorizontalFormGroup; } });
|
|
36
38
|
var IconButton_1 = require("./IconButton");
|
|
@@ -13,7 +13,7 @@ import { LayoutMS } from './layout/LayoutMS';
|
|
|
13
13
|
import { NavigationContainer as MSNavigationContainer } from './layout/LayoutMS/Containers';
|
|
14
14
|
import { ContainersBox as MSContainersBox } from './layout/LayoutMS/ContainersBox';
|
|
15
15
|
export { LayoutMS, MSNavigationContainer, MSContainersBox };
|
|
16
|
-
import { BasicChatListItem as M_BasicChatListItem, BasicFormGroup as M_BasicFormGroup, BasicList as M_BasicList, BasicListItem as M_BasicListItem, BlogTextField as M_BlogTextField, BodyTextGroup as M_BodyTextGroup, Card as M_Card, CardList as M_CardList, ChatBubbleListItem as M_ChatBubbleListItem, ChatList as M_ChatList, Checkbox as M_Checkbox, Chip as M_Chip, ContextMenu as M_ContextMenu, ContextMenuItem as M_ContextMenuItem, Dropdown as M_Dropdown, HorizontalFormGroup as M_HorizontalFormGroup, IconButton as M_IconButton, ImageSlide as M_ImageSlide, MainButton as M_MainButton, MobileAlertDialog as M_MobileAlertDialog, MobileHeaderBar as M_MobileHeaderBar, MobileTabBar as M_MobileTabBar, Radio as M_Radio, ReactionButton as M_ReactionButton, Select as M_Select, StatusBlock as M_StatusBlock, TextButton as M_TextButton, TextField as M_TextField, TextLabel as M_TextLabel, UploadIconButton as M_UploadIconButton, UploadMainButton as M_UploadMainButton, UploadTextButton as M_UploadTextButton } from './components';
|
|
17
|
-
export { M_BasicChatListItem, M_BasicFormGroup, M_BasicList, M_BasicListItem, M_BlogTextField, M_BodyTextGroup, M_Card, M_CardList, M_ChatBubbleListItem, M_ChatList, M_Checkbox, M_Chip, M_ContextMenu, M_ContextMenuItem, M_Dropdown, M_HorizontalFormGroup, M_IconButton, M_ImageSlide, M_MainButton, M_MobileAlertDialog, M_MobileHeaderBar, M_MobileTabBar, M_Radio, M_ReactionButton, M_Select, M_StatusBlock, M_TextButton, M_TextField, M_TextLabel, M_UploadIconButton, M_UploadMainButton, M_UploadTextButton };
|
|
18
|
-
import { MobileBasicModal as M_MobileBasicModal } from './panels';
|
|
19
|
-
export { M_MobileBasicModal };
|
|
16
|
+
import { BasicChatListItem as M_BasicChatListItem, BasicFormGroup as M_BasicFormGroup, BasicList as M_BasicList, BasicListItem as M_BasicListItem, BlogTextField as M_BlogTextField, BodyTextGroup as M_BodyTextGroup, Card as M_Card, CardList as M_CardList, ChatBubbleListItem as M_ChatBubbleListItem, ChatList as M_ChatList, Checkbox as M_Checkbox, Chip as M_Chip, ContextMenu as M_ContextMenu, ContextMenuItem as M_ContextMenuItem, Dropdown as M_Dropdown, FloatingActionButton as M_FloatingActionButton, HorizontalFormGroup as M_HorizontalFormGroup, IconButton as M_IconButton, ImageSlide as M_ImageSlide, MainButton as M_MainButton, MobileAlertDialog as M_MobileAlertDialog, MobileHeaderBar as M_MobileHeaderBar, MobileTabBar as M_MobileTabBar, Radio as M_Radio, ReactionButton as M_ReactionButton, Select as M_Select, StatusBlock as M_StatusBlock, TextButton as M_TextButton, TextField as M_TextField, TextLabel as M_TextLabel, UploadIconButton as M_UploadIconButton, UploadMainButton as M_UploadMainButton, UploadTextButton as M_UploadTextButton } from './components';
|
|
17
|
+
export { M_BasicChatListItem, M_BasicFormGroup, M_BasicList, M_BasicListItem, M_BlogTextField, M_BodyTextGroup, M_Card, M_CardList, M_ChatBubbleListItem, M_ChatList, M_Checkbox, M_Chip, M_ContextMenu, M_ContextMenuItem, M_Dropdown, M_FloatingActionButton, M_HorizontalFormGroup, M_IconButton, M_ImageSlide, M_MainButton, M_MobileAlertDialog, M_MobileHeaderBar, M_MobileTabBar, M_Radio, M_ReactionButton, M_Select, M_StatusBlock, M_TextButton, M_TextField, M_TextLabel, M_UploadIconButton, M_UploadMainButton, M_UploadTextButton };
|
|
18
|
+
import { AnnotationSheet as M_AnnotationSheet, ContentSheet as M_ContentSheet, MobileBasicModal as M_MobileBasicModal, SectionSheet as M_SectionSheet } from './panels';
|
|
19
|
+
export { M_AnnotationSheet, M_ContentSheet, M_MobileBasicModal, M_SectionSheet };
|
package/dist/src/mobile/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable import/order */
|
|
3
3
|
/* eslint-disable import/first */
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.M_MobileBasicModal = exports.M_UploadTextButton = exports.M_UploadMainButton = exports.M_UploadIconButton = exports.M_TextLabel = exports.M_TextField = exports.M_TextButton = exports.M_StatusBlock = exports.M_Select = exports.M_ReactionButton = exports.M_Radio = exports.M_MobileTabBar = exports.M_MobileHeaderBar = exports.M_MobileAlertDialog = exports.M_MainButton = exports.M_ImageSlide = exports.M_IconButton = exports.M_HorizontalFormGroup = exports.M_Dropdown = exports.M_ContextMenuItem = exports.M_ContextMenu = exports.M_Chip = exports.M_Checkbox = exports.M_ChatList = exports.M_ChatBubbleListItem = exports.M_CardList = exports.M_Card = exports.M_BodyTextGroup = exports.M_BlogTextField = exports.M_BasicListItem = exports.M_BasicList = exports.M_BasicFormGroup = exports.M_BasicChatListItem = exports.MSContainersBox = exports.MSNavigationContainer = exports.LayoutMS = exports.MPContainersBox = exports.MPTabContainer = exports.MPNavigationContainer = exports.LayoutMP = exports.MMContainersBox = exports.MMNavigationContainer = exports.LayoutMM = exports.MFContainersBox = exports.LayoutMF = void 0;
|
|
5
|
+
exports.M_SectionSheet = exports.M_MobileBasicModal = exports.M_ContentSheet = exports.M_AnnotationSheet = exports.M_UploadTextButton = exports.M_UploadMainButton = exports.M_UploadIconButton = exports.M_TextLabel = exports.M_TextField = exports.M_TextButton = exports.M_StatusBlock = exports.M_Select = exports.M_ReactionButton = exports.M_Radio = exports.M_MobileTabBar = exports.M_MobileHeaderBar = exports.M_MobileAlertDialog = exports.M_MainButton = exports.M_ImageSlide = exports.M_IconButton = exports.M_HorizontalFormGroup = exports.M_FloatingActionButton = exports.M_Dropdown = exports.M_ContextMenuItem = exports.M_ContextMenu = exports.M_Chip = exports.M_Checkbox = exports.M_ChatList = exports.M_ChatBubbleListItem = exports.M_CardList = exports.M_Card = exports.M_BodyTextGroup = exports.M_BlogTextField = exports.M_BasicListItem = exports.M_BasicList = exports.M_BasicFormGroup = exports.M_BasicChatListItem = exports.MSContainersBox = exports.MSNavigationContainer = exports.LayoutMS = exports.MPContainersBox = exports.MPTabContainer = exports.MPNavigationContainer = exports.LayoutMP = exports.MMContainersBox = exports.MMNavigationContainer = exports.LayoutMM = exports.MFContainersBox = exports.LayoutMF = void 0;
|
|
6
6
|
// layoutMF
|
|
7
7
|
var LayoutMF_1 = require("./layout/LayoutMF");
|
|
8
8
|
Object.defineProperty(exports, "LayoutMF", { enumerable: true, get: function () { return LayoutMF_1.LayoutMF; } });
|
|
@@ -47,6 +47,7 @@ Object.defineProperty(exports, "M_Chip", { enumerable: true, get: function () {
|
|
|
47
47
|
Object.defineProperty(exports, "M_ContextMenu", { enumerable: true, get: function () { return components_1.ContextMenu; } });
|
|
48
48
|
Object.defineProperty(exports, "M_ContextMenuItem", { enumerable: true, get: function () { return components_1.ContextMenuItem; } });
|
|
49
49
|
Object.defineProperty(exports, "M_Dropdown", { enumerable: true, get: function () { return components_1.Dropdown; } });
|
|
50
|
+
Object.defineProperty(exports, "M_FloatingActionButton", { enumerable: true, get: function () { return components_1.FloatingActionButton; } });
|
|
50
51
|
Object.defineProperty(exports, "M_HorizontalFormGroup", { enumerable: true, get: function () { return components_1.HorizontalFormGroup; } });
|
|
51
52
|
Object.defineProperty(exports, "M_IconButton", { enumerable: true, get: function () { return components_1.IconButton; } });
|
|
52
53
|
Object.defineProperty(exports, "M_ImageSlide", { enumerable: true, get: function () { return components_1.ImageSlide; } });
|
|
@@ -66,4 +67,7 @@ Object.defineProperty(exports, "M_UploadMainButton", { enumerable: true, get: fu
|
|
|
66
67
|
Object.defineProperty(exports, "M_UploadTextButton", { enumerable: true, get: function () { return components_1.UploadTextButton; } });
|
|
67
68
|
// panels
|
|
68
69
|
var panels_1 = require("./panels");
|
|
70
|
+
Object.defineProperty(exports, "M_AnnotationSheet", { enumerable: true, get: function () { return panels_1.AnnotationSheet; } });
|
|
71
|
+
Object.defineProperty(exports, "M_ContentSheet", { enumerable: true, get: function () { return panels_1.ContentSheet; } });
|
|
69
72
|
Object.defineProperty(exports, "M_MobileBasicModal", { enumerable: true, get: function () { return panels_1.MobileBasicModal; } });
|
|
73
|
+
Object.defineProperty(exports, "M_SectionSheet", { enumerable: true, get: function () { return panels_1.SectionSheet; } });
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
import { UiColors } from '../../../common';
|
|
3
|
+
declare type PaddingSpacingType = 'none' | keyof typeof paddingSpacing;
|
|
4
|
+
export declare type AnnotationSheetProps = {
|
|
5
|
+
width: string;
|
|
6
|
+
height: string;
|
|
7
|
+
backgroundColorTheme?: 'transparent' | 'white' | 'black' | 'base1' | 'base2' | 'base3';
|
|
8
|
+
overrideBackgroundColorKey?: UiColors;
|
|
9
|
+
borderMode?: 'none' | 'use';
|
|
10
|
+
borderWidth?: 1 | 2;
|
|
11
|
+
borderColorTheme?: 'grey' | 'blue' | 'green';
|
|
12
|
+
overrideBorderColorKey?: UiColors;
|
|
13
|
+
shapeType?: 'rectangle' | 'round';
|
|
14
|
+
radius?: 8 | 16 | 24;
|
|
15
|
+
paddingTop?: PaddingSpacingType;
|
|
16
|
+
paddingRight?: PaddingSpacingType;
|
|
17
|
+
paddingBottom?: PaddingSpacingType;
|
|
18
|
+
paddingLeft?: PaddingSpacingType;
|
|
19
|
+
overrideCSS?: CSSProperties;
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
22
|
+
};
|
|
23
|
+
export declare type StyleProps = {
|
|
24
|
+
$width?: string;
|
|
25
|
+
$height?: string;
|
|
26
|
+
$backgroundColorTheme?: 'transparent' | 'white' | 'black' | 'base1' | 'base2' | 'base3';
|
|
27
|
+
overrideBackgroundColorKey?: UiColors;
|
|
28
|
+
borderMode?: 'none' | 'use';
|
|
29
|
+
$borderWidth?: 1 | 2;
|
|
30
|
+
$borderColorTheme?: 'grey' | 'blue' | 'green';
|
|
31
|
+
overrideBorderColorKey?: UiColors;
|
|
32
|
+
shapeType?: 'rectangle' | 'round';
|
|
33
|
+
$radius?: 8 | 16 | 24;
|
|
34
|
+
paddingTop?: PaddingSpacingType;
|
|
35
|
+
paddingRight?: PaddingSpacingType;
|
|
36
|
+
paddingBottom?: PaddingSpacingType;
|
|
37
|
+
paddingLeft?: PaddingSpacingType;
|
|
38
|
+
};
|
|
39
|
+
declare const paddingSpacing: {
|
|
40
|
+
readonly spacing_a: "spacingA";
|
|
41
|
+
readonly spacing_b: "spacingB";
|
|
42
|
+
readonly spacing_c: "spacingC";
|
|
43
|
+
readonly spacing_d: "spacingD";
|
|
44
|
+
readonly spacing_e: "spacingE";
|
|
45
|
+
readonly spacing_f: "spacingF";
|
|
46
|
+
readonly spacing_g: "spacingG";
|
|
47
|
+
readonly spacing_h: "spacingH";
|
|
48
|
+
readonly spacing_i: "spacingI";
|
|
49
|
+
readonly spacing_j: "spacingJ";
|
|
50
|
+
readonly spacing_k: "spacingK";
|
|
51
|
+
readonly spacing_l: "spacingL";
|
|
52
|
+
readonly spacing_m: "spacingM";
|
|
53
|
+
readonly spacing_n: "spacingN";
|
|
54
|
+
};
|
|
55
|
+
declare function AnnotationSheet({ width, height, backgroundColorTheme, overrideBackgroundColorKey, borderMode, borderWidth, borderColorTheme, overrideBorderColorKey, shapeType, radius, paddingTop, paddingRight, paddingBottom, paddingLeft, overrideCSS, children, onClick }: AnnotationSheetProps): JSX.Element;
|
|
56
|
+
export default AnnotationSheet;
|