pds-dev-kit-web 0.5.15 → 0.5.19
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 +2 -2
- package/dist/index.js +2 -2
- package/dist/src/common/services/i18n/resources/en.json +49 -21
- package/dist/src/common/services/i18n/resources/es.json +50 -22
- package/dist/src/common/services/i18n/resources/index.d.ts +132 -20
- package/dist/src/common/services/i18n/resources/jp.json +50 -22
- package/dist/src/common/services/i18n/resources/ko.json +50 -22
- package/dist/src/common/styles/colorSet/UIColor.json +3 -3
- package/dist/src/common/styles/colorSet/index.d.ts +57 -57
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/desktop/components/ContextMenu/ContextMenu.js +1 -1
- package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.js +17 -40
- package/dist/src/desktop/components/DesktopTabBar/index.d.ts +1 -1
- package/dist/src/desktop/components/DesktopTabBar/index.js +2 -2
- package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.d.ts +3 -1
- package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.js +8 -3
- package/dist/src/desktop/components/UserDesktopTabBar/UserDesktopTabBar.js +11 -7
- package/dist/src/desktop/components/index.d.ts +2 -2
- package/dist/src/desktop/components/index.js +2 -2
- package/dist/src/desktop/index.d.ts +2 -2
- package/dist/src/desktop/index.js +2 -2
- package/dist/src/hybrid/components/Switch/Switch.js +1 -1
- package/dist/src/mobile/components/MobileTabBar/MobileTabBar.js +11 -7
- package/package.json +1 -1
|
@@ -1,5 +1,60 @@
|
|
|
1
1
|
declare const colorSet: {
|
|
2
|
-
readonly
|
|
2
|
+
readonly SemanticColor: {
|
|
3
|
+
blue500: string;
|
|
4
|
+
blue700: string;
|
|
5
|
+
blue300: string;
|
|
6
|
+
green700: string;
|
|
7
|
+
green500: string;
|
|
8
|
+
green300: string;
|
|
9
|
+
red500: string;
|
|
10
|
+
grey900: string;
|
|
11
|
+
grey500: string;
|
|
12
|
+
grey400: string;
|
|
13
|
+
grey100: string;
|
|
14
|
+
grey50: string;
|
|
15
|
+
white: string;
|
|
16
|
+
black: string;
|
|
17
|
+
darkblue500: string;
|
|
18
|
+
grey950: string;
|
|
19
|
+
darkgrey900: string;
|
|
20
|
+
darkgrey500: string;
|
|
21
|
+
darkgrey400: string;
|
|
22
|
+
darkgrey100: string;
|
|
23
|
+
darkgrey50: string;
|
|
24
|
+
darkred500: string;
|
|
25
|
+
darkgreen700: string;
|
|
26
|
+
orange500: string;
|
|
27
|
+
darkorange500: string;
|
|
28
|
+
opacity00: string;
|
|
29
|
+
opacity20: string;
|
|
30
|
+
opacity30: string;
|
|
31
|
+
opacity65: string;
|
|
32
|
+
darkgreen500: string;
|
|
33
|
+
grey70: string;
|
|
34
|
+
navy500: string;
|
|
35
|
+
lightgreen500: string;
|
|
36
|
+
pink500: string;
|
|
37
|
+
darkgrey70: string;
|
|
38
|
+
darknavy500: string;
|
|
39
|
+
darkpink500: string;
|
|
40
|
+
darklightgreen500: string;
|
|
41
|
+
opacity10: string;
|
|
42
|
+
grey600: string;
|
|
43
|
+
darkgrey600: string;
|
|
44
|
+
skyblue500: string;
|
|
45
|
+
skyblue300: string;
|
|
46
|
+
pink300: string;
|
|
47
|
+
lightpink500: string;
|
|
48
|
+
darkblue300: string;
|
|
49
|
+
darkblue700: string;
|
|
50
|
+
darkgreen300: string;
|
|
51
|
+
darkskyblue500: string;
|
|
52
|
+
navy100: string;
|
|
53
|
+
darknavy100: string;
|
|
54
|
+
opacity80: string;
|
|
55
|
+
opacity50: string;
|
|
56
|
+
};
|
|
57
|
+
readonly PaletteColor_Dark: {
|
|
3
58
|
sys_container_background_01: string;
|
|
4
59
|
sys_container_background_02: string;
|
|
5
60
|
sys_container_background_03: string;
|
|
@@ -126,62 +181,7 @@ declare const colorSet: {
|
|
|
126
181
|
sys_component_base_black_opacity30: string;
|
|
127
182
|
sys_area_background: string;
|
|
128
183
|
};
|
|
129
|
-
readonly
|
|
130
|
-
blue500: string;
|
|
131
|
-
blue700: string;
|
|
132
|
-
blue300: string;
|
|
133
|
-
green700: string;
|
|
134
|
-
green500: string;
|
|
135
|
-
green300: string;
|
|
136
|
-
red500: string;
|
|
137
|
-
grey900: string;
|
|
138
|
-
grey500: string;
|
|
139
|
-
grey400: string;
|
|
140
|
-
grey100: string;
|
|
141
|
-
grey50: string;
|
|
142
|
-
white: string;
|
|
143
|
-
black: string;
|
|
144
|
-
darkblue500: string;
|
|
145
|
-
grey950: string;
|
|
146
|
-
darkgrey900: string;
|
|
147
|
-
darkgrey500: string;
|
|
148
|
-
darkgrey400: string;
|
|
149
|
-
darkgrey100: string;
|
|
150
|
-
darkgrey50: string;
|
|
151
|
-
darkred500: string;
|
|
152
|
-
darkgreen700: string;
|
|
153
|
-
orange500: string;
|
|
154
|
-
darkorange500: string;
|
|
155
|
-
opacity00: string;
|
|
156
|
-
opacity20: string;
|
|
157
|
-
opacity30: string;
|
|
158
|
-
opacity65: string;
|
|
159
|
-
darkgreen500: string;
|
|
160
|
-
grey70: string;
|
|
161
|
-
navy500: string;
|
|
162
|
-
lightgreen500: string;
|
|
163
|
-
pink500: string;
|
|
164
|
-
darkgrey70: string;
|
|
165
|
-
darknavy500: string;
|
|
166
|
-
darkpink500: string;
|
|
167
|
-
darklightgreen500: string;
|
|
168
|
-
opacity10: string;
|
|
169
|
-
grey600: string;
|
|
170
|
-
darkgrey600: string;
|
|
171
|
-
skyblue500: string;
|
|
172
|
-
skyblue300: string;
|
|
173
|
-
pink300: string;
|
|
174
|
-
lightpink500: string;
|
|
175
|
-
darkblue300: string;
|
|
176
|
-
darkblue700: string;
|
|
177
|
-
darkgreen300: string;
|
|
178
|
-
darkskyblue500: string;
|
|
179
|
-
navy100: string;
|
|
180
|
-
darknavy100: string;
|
|
181
|
-
opacity80: string;
|
|
182
|
-
opacity50: string;
|
|
183
|
-
};
|
|
184
|
-
readonly PaletteColor_Dark: {
|
|
184
|
+
readonly PaletteColor_light: {
|
|
185
185
|
sys_container_background_01: string;
|
|
186
186
|
sys_container_background_02: string;
|
|
187
187
|
sys_container_background_03: string;
|
|
@@ -4,14 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
/* eslint-disable import/order */
|
|
7
|
-
var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
|
|
8
7
|
var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
|
|
9
8
|
var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
|
|
9
|
+
var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
|
|
10
10
|
var UIColor_json_1 = __importDefault(require("./UIColor.json"));
|
|
11
11
|
var colorSet = {
|
|
12
|
-
PaletteColor_light: PaletteColor_light_json_1.default,
|
|
13
12
|
SemanticColor: SemanticColor_json_1.default,
|
|
14
13
|
PaletteColor_Dark: PaletteColor_Dark_json_1.default,
|
|
14
|
+
PaletteColor_light: PaletteColor_light_json_1.default,
|
|
15
15
|
UIColor: UIColor_json_1.default
|
|
16
16
|
};
|
|
17
17
|
exports.default = colorSet;
|
|
@@ -13,7 +13,7 @@ function ContextMenu(_a) {
|
|
|
13
13
|
var children = _a.children, _b = _a.autoWidthMode, autoWidthMode = _b === void 0 ? 'none' : _b;
|
|
14
14
|
return react_1.default.createElement(S_ContextMenu, { autoWidth: autoWidthMode === 'use' }, children);
|
|
15
15
|
}
|
|
16
|
-
var S_ContextMenu = styled_components_1.default.ul(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n vertical-align: baseline;\n width: ", ";\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n vertical-align: baseline;\n width: ", ";\n"])), function (_a) {
|
|
16
|
+
var S_ContextMenu = styled_components_1.default.ul(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n position: relative;\n vertical-align: baseline;\n width: ", ";\n z-index: 3;\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n position: relative;\n vertical-align: baseline;\n width: ", ";\n z-index: 3;\n"])), function (_a) {
|
|
17
17
|
var theme = _a.theme;
|
|
18
18
|
return theme.ui_cpnt_contextmenu_base;
|
|
19
19
|
}, function (_a) {
|
|
@@ -29,7 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
var react_1 = __importDefault(require("react"));
|
|
30
30
|
var react_router_dom_1 = require("react-router-dom");
|
|
31
31
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
32
|
-
var hybrid_1 = require("../../../hybrid");
|
|
33
32
|
var TextLabel_1 = require("../TextLabel");
|
|
34
33
|
function DesktopTabBar(_a) {
|
|
35
34
|
var textArray = _a.textArray, _b = _a.styleTheme, styleTheme = _b === void 0 ? 'main' : _b;
|
|
@@ -42,7 +41,7 @@ function DesktopTabBar(_a) {
|
|
|
42
41
|
};
|
|
43
42
|
var textLabel = function (value, isSubText) {
|
|
44
43
|
if (isSubText) {
|
|
45
|
-
return (react_1.default.createElement(TextLabel_1.TextLabel, { text: value.title, styleTheme: pathname === value.path ? 'caption1Bold' : 'caption1Regular', colorTheme: pathname === value.path ? 'sysTextPrimary' : 'sysTextSecondary',
|
|
44
|
+
return (react_1.default.createElement(TextLabel_1.TextLabel, { text: value.title, styleTheme: pathname === value.path ? 'caption1Bold' : 'caption1Regular', colorTheme: pathname === value.path ? 'sysTextPrimary' : 'sysTextSecondary', btnMode: "use" }));
|
|
46
45
|
}
|
|
47
46
|
if (styleTheme === 'content') {
|
|
48
47
|
return (react_1.default.createElement(TextLabel_1.TextLabel, { text: value.title, styleTheme: pathname === value.path ? 'caption1Bold' : 'caption1Regular', colorTheme: pathname === value.path ? 'sysTextPrimary' : 'sysTextSecondary', singleLineMode: "use" }));
|
|
@@ -52,25 +51,15 @@ function DesktopTabBar(_a) {
|
|
|
52
51
|
}
|
|
53
52
|
};
|
|
54
53
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
55
|
-
react_1.default.createElement(S_TabBox,
|
|
56
|
-
textArray.map(function (value) { return (react_1.default.createElement(S_TabWrapper, { key: value.path,
|
|
54
|
+
react_1.default.createElement(S_TabBox, null,
|
|
55
|
+
textArray.map(function (value) { return (react_1.default.createElement(S_TabWrapper, { key: value.path, isActive: pathname.includes(value.path), onClick: function () {
|
|
57
56
|
handleClick(value);
|
|
58
57
|
} },
|
|
59
58
|
textLabel(value, false),
|
|
60
59
|
value.subArray && pathname.includes(value.path) && (react_1.default.createElement(S_SubTabBox, null, value.subArray.map(function (subValue) { return (react_1.default.createElement(S_SubWrapper, { key: subValue.path }, textLabel(subValue, true))); }))))); }),
|
|
61
|
-
textArray.map(function (value) { return value.subArray && pathname.includes(value.path) && react_1.default.createElement(S_SubBackground, null); }))
|
|
62
|
-
react_1.default.createElement(hybrid_1.Divider, { direction: "horizontal" })));
|
|
60
|
+
textArray.map(function (value) { return value.subArray && pathname.includes(value.path) && react_1.default.createElement(S_SubBackground, null); }))));
|
|
63
61
|
}
|
|
64
|
-
var
|
|
65
|
-
var styleTheme = _a.styleTheme;
|
|
66
|
-
switch (styleTheme) {
|
|
67
|
-
case 'content':
|
|
68
|
-
return contentStyle;
|
|
69
|
-
default:
|
|
70
|
-
return mainStyle;
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
var mainStyle = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: flex-end;\n justify-content: center;\n cursor: pointer;\n display: flex;\n height: 40px;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n padding-bottom: ", ";\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n border-bottom: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n }\n"], ["\n align-items: flex-end;\n justify-content: center;\n cursor: pointer;\n display: flex;\n height: 40px;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n padding-bottom: ", ";\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n border-bottom: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n }\n"])), function (_a) {
|
|
62
|
+
var mediumStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: flex-end;\n box-sizing: border-box;\n justify-content: center;\n cursor: pointer;\n display: flex;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n padding-bottom: ", ";\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n ", ";\n }\n"], ["\n align-items: flex-end;\n box-sizing: border-box;\n justify-content: center;\n cursor: pointer;\n display: flex;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n padding-bottom: ", ";\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n ", ";\n }\n"])), function (_a) {
|
|
74
63
|
var theme = _a.theme;
|
|
75
64
|
return theme.spacing.spacingD;
|
|
76
65
|
}, function (_a) {
|
|
@@ -79,42 +68,30 @@ var mainStyle = (0, styled_components_1.css)(templateObject_2 || (templateObject
|
|
|
79
68
|
}, function (_a) {
|
|
80
69
|
var theme = _a.theme;
|
|
81
70
|
return theme.spacing.spacingB;
|
|
82
|
-
}, function (_a) {
|
|
83
|
-
var isActive = _a.isActive, theme = _a.theme;
|
|
84
|
-
return isActive && theme.ui_cpnt_tabbar_base_area;
|
|
85
|
-
}, function (_a) {
|
|
86
|
-
var isActive = _a.isActive, theme = _a.theme;
|
|
87
|
-
return isActive && "2px solid " + theme.ui_cpnt_tabbar_border_active_indicator_primary;
|
|
88
|
-
});
|
|
89
|
-
var contentStyle = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: flex-end;\n justify-content: center;\n cursor: pointer;\n display: flex;\n height: 40px;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n padding-bottom: ", ";\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n border-bottom: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n }\n"], ["\n align-items: flex-end;\n justify-content: center;\n cursor: pointer;\n display: flex;\n height: 40px;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n padding-bottom: ", ";\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n border-bottom: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n }\n"])), function (_a) {
|
|
90
|
-
var theme = _a.theme;
|
|
91
|
-
return theme.spacing.spacingD;
|
|
92
71
|
}, function (_a) {
|
|
93
72
|
var theme = _a.theme;
|
|
94
|
-
return theme.
|
|
95
|
-
}, function (_a) {
|
|
96
|
-
var theme = _a.theme;
|
|
97
|
-
return theme.spacing.spacingB;
|
|
73
|
+
return theme.ui_cpnt_tabbar_border_active_indicator_primary;
|
|
98
74
|
}, function (_a) {
|
|
99
|
-
var isActive = _a.isActive
|
|
100
|
-
return isActive &&
|
|
101
|
-
}, function (_a) {
|
|
102
|
-
var isActive = _a.isActive, theme = _a.theme;
|
|
103
|
-
return isActive && "2px solid " + theme.ui_cpnt_tabbar_border_active_indicator;
|
|
75
|
+
var isActive = _a.isActive;
|
|
76
|
+
return !isActive && "display: none;";
|
|
104
77
|
});
|
|
105
|
-
var
|
|
78
|
+
var S_TabWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n ", "\n"], ["\n position: relative;\n ", "\n"])), mediumStyle);
|
|
79
|
+
var S_TabBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n border-bottom: 1px solid ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n padding-left: ", ";\n position: relative;\n height: 40px;\n"], ["\n background-color: ", ";\n border-bottom: 1px solid ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n padding-left: ", ";\n position: relative;\n height: 40px;\n"])), function (_a) {
|
|
106
80
|
var theme = _a.theme;
|
|
107
81
|
return theme.ui_cpnt_tabbar_base_area;
|
|
82
|
+
}, function (_a) {
|
|
83
|
+
var theme = _a.theme;
|
|
84
|
+
return theme.ui_cpnt_divider;
|
|
108
85
|
}, function (_a) {
|
|
109
86
|
var theme = _a.theme;
|
|
110
87
|
return theme.spacing.spacingE;
|
|
111
88
|
});
|
|
112
|
-
var S_SubBackground = styled_components_1.default.div(
|
|
89
|
+
var S_SubBackground = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n width: 100%;\n height: 32px;\n background-color: ", ";\n position: absolute;\n bottom: -33px;\n left: 0px;\n"], ["\n width: 100%;\n height: 32px;\n background-color: ", ";\n position: absolute;\n bottom: -33px;\n left: 0px;\n"])), function (_a) {
|
|
113
90
|
var theme = _a.theme;
|
|
114
91
|
return theme.ui_cpnt_tabbar_base_area_sub;
|
|
115
92
|
});
|
|
116
|
-
var S_SubTabBox = styled_components_1.default.div(
|
|
117
|
-
var S_SubWrapper = styled_components_1.default.div(
|
|
93
|
+
var S_SubTabBox = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n width: 100vw;\n position: absolute;\n bottom: -33px;\n left: 0px;\n height: 32px;\n display: flex;\n z-index: 1;\n"], ["\n width: 100vw;\n position: absolute;\n bottom: -33px;\n left: 0px;\n height: 32px;\n display: flex;\n z-index: 1;\n"])));
|
|
94
|
+
var S_SubWrapper = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: center;\n justify-content: center;\n cursor: pointer;\n display: flex;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n\n &:last-child {\n margin-right: 0;\n }\n"], ["\n align-items: center;\n justify-content: center;\n cursor: pointer;\n display: flex;\n margin-right: ", ";\n position: relative;\n padding: 0 ", ";\n\n &:last-child {\n margin-right: 0;\n }\n"])), function (_a) {
|
|
118
95
|
var theme = _a.theme;
|
|
119
96
|
return theme.spacing.spacingE;
|
|
120
97
|
}, function (_a) {
|
|
@@ -122,4 +99,4 @@ var S_SubWrapper = styled_components_1.default.div(templateObject_7 || (template
|
|
|
122
99
|
return theme.spacing.spacingA;
|
|
123
100
|
});
|
|
124
101
|
exports.default = DesktopTabBar;
|
|
125
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6
|
|
102
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as DesktopTabBar } from './DesktopTabBar';
|
|
@@ -3,6 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.DesktopTabBar = void 0;
|
|
7
7
|
var DesktopTabBar_1 = require("./DesktopTabBar");
|
|
8
|
-
Object.defineProperty(exports, "
|
|
8
|
+
Object.defineProperty(exports, "DesktopTabBar", { enumerable: true, get: function () { return __importDefault(DesktopTabBar_1).default; } });
|
|
@@ -19,10 +19,12 @@ export declare type EditApplyTextFieldProps = {
|
|
|
19
19
|
max?: number;
|
|
20
20
|
maxLength?: number;
|
|
21
21
|
min?: number;
|
|
22
|
+
getInputValue?: (data: string[]) => void;
|
|
22
23
|
onBlur?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
23
24
|
onChange?: (e: React.ChangeEvent<HTMLInputElement> | React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
25
|
+
onClickSubmitBtn?: (...args: any) => any;
|
|
24
26
|
onFocus?: () => void;
|
|
25
27
|
onTarget?: () => void;
|
|
26
28
|
};
|
|
27
|
-
declare function EditApplyTextField({ name, hintText, defaultText, validation, preventBlankMode, size, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, max, maxLength, min, onBlur, onChange, onFocus, onTarget }: EditApplyTextFieldProps): JSX.Element;
|
|
29
|
+
declare function EditApplyTextField({ name, hintText, defaultText, validation, preventBlankMode, size, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, max, maxLength, min, getInputValue, onBlur, onChange, onClickSubmitBtn, onFocus, onTarget }: EditApplyTextFieldProps): JSX.Element;
|
|
28
30
|
export default EditApplyTextField;
|
|
@@ -32,7 +32,7 @@ var components_1 = require("../../common/components");
|
|
|
32
32
|
var IconButton_1 = require("../IconButton");
|
|
33
33
|
function EditApplyTextField(_a) {
|
|
34
34
|
var _b;
|
|
35
|
-
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _c = _a.preventBlankMode, preventBlankMode = _c === void 0 ? 'none' : _c, _d = _a.size, size = _d === void 0 ? 'large' : _d, _e = _a.textLineType, textLineType = _e === void 0 ? 'single' : _e, _f = _a.multiRows, multiRows = _f === void 0 ? 8 : _f, _g = _a.autoMinRows, autoMinRows = _g === void 0 ? 8 : _g, autoMaxRows = _a.autoMaxRows, _h = _a.inputType, inputType = _h === void 0 ? 'text' : _h, _j = _a.state, state = _j === void 0 ? 'normal' : _j, max = _a.max, maxLength = _a.maxLength, min = _a.min, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onTarget = _a.onTarget;
|
|
35
|
+
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _c = _a.preventBlankMode, preventBlankMode = _c === void 0 ? 'none' : _c, _d = _a.size, size = _d === void 0 ? 'large' : _d, _e = _a.textLineType, textLineType = _e === void 0 ? 'single' : _e, _f = _a.multiRows, multiRows = _f === void 0 ? 8 : _f, _g = _a.autoMinRows, autoMinRows = _g === void 0 ? 8 : _g, autoMaxRows = _a.autoMaxRows, _h = _a.inputType, inputType = _h === void 0 ? 'text' : _h, _j = _a.state, state = _j === void 0 ? 'normal' : _j, max = _a.max, maxLength = _a.maxLength, min = _a.min, getInputValue = _a.getInputValue, onBlur = _a.onBlur, onChange = _a.onChange, onClickSubmitBtn = _a.onClickSubmitBtn, onFocus = _a.onFocus, onTarget = _a.onTarget;
|
|
36
36
|
var t = (0, react_i18next_1.useTranslation)('translation').t;
|
|
37
37
|
var _k = (0, react_hook_form_1.useFormContext)(), register = _k.register, setValue = _k.setValue, trigger = _k.trigger, watch = _k.watch, errors = _k.formState.errors;
|
|
38
38
|
var _l = (0, react_1.useState)(false), isFocused = _l[0], setIsFocused = _l[1];
|
|
@@ -85,13 +85,18 @@ function EditApplyTextField(_a) {
|
|
|
85
85
|
}
|
|
86
86
|
// NOTE: preventBlankMode는 input에만 적용 가능
|
|
87
87
|
// NOTE: 다른 TextField의 경우 'preventBlankMode === 'trim'일 경우에는 무조건 onBlur 시점에 적용'된다고 정의해두었지만, EditApplyTextField는 onBlur 시점에 모든 값이 초기값으로 돌리는 기획이 있기때문에 EditApplyTextField에서는 submit 버튼을 눌렀을 경우에 시행
|
|
88
|
-
if (textLineType === 'single' && preventBlankMode === 'trim') {
|
|
88
|
+
if (textLineType === 'single' && preventBlankMode === 'trim' && getInputValue) {
|
|
89
89
|
setValue(name, currentValue.replace(/^\s+|\s+$/gm, ''));
|
|
90
90
|
setPrevValue(currentValue.replace(/^\s+|\s+$/gm, ''));
|
|
91
|
+
getInputValue([name, currentValue.replace(/^\s+|\s+$/gm, '')]);
|
|
91
92
|
}
|
|
92
|
-
if (preventBlankMode !== 'trim') {
|
|
93
|
+
if (preventBlankMode !== 'trim' && getInputValue) {
|
|
93
94
|
setValue(name, currentValue);
|
|
94
95
|
setPrevValue(currentValue);
|
|
96
|
+
getInputValue([name, currentValue]);
|
|
97
|
+
}
|
|
98
|
+
if (onClickSubmitBtn) {
|
|
99
|
+
onClickSubmitBtn();
|
|
95
100
|
}
|
|
96
101
|
}
|
|
97
102
|
var handleKeyUp = function (e) {
|
|
@@ -29,7 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
var react_1 = __importDefault(require("react"));
|
|
30
30
|
var react_router_dom_1 = require("react-router-dom");
|
|
31
31
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
32
|
-
var hybrid_1 = require("../../../hybrid");
|
|
33
32
|
var TextLabel_1 = require("../TextLabel");
|
|
34
33
|
function UserDesktopTabBar(_a) {
|
|
35
34
|
var textArray = _a.textArray, _b = _a.styleTheme, styleTheme = _b === void 0 ? 'main' : _b;
|
|
@@ -44,8 +43,7 @@ function UserDesktopTabBar(_a) {
|
|
|
44
43
|
react_1.default.createElement(S_TabBar, null, textArray.map(function (value) { return (react_1.default.createElement(S_TabWrapper, { key: value.path, styleTheme: styleTheme, isActive: pathname === value.path, onClick: function () {
|
|
45
44
|
handleClick(value);
|
|
46
45
|
} },
|
|
47
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: value.title, styleTheme: pathname === value.path ? 'body2Bold' : 'body2Regular', colorTheme: pathname === value.path ? 'usrTextBrandPrimary' : 'sysTextSecondary', singleLineMode: "use" }))); }))
|
|
48
|
-
react_1.default.createElement(hybrid_1.Divider, { direction: "horizontal" })));
|
|
46
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: value.title, styleTheme: pathname === value.path ? 'body2Bold' : 'body2Regular', colorTheme: pathname === value.path ? 'usrTextBrandPrimary' : 'sysTextSecondary', singleLineMode: "use" }))); }))));
|
|
49
47
|
}
|
|
50
48
|
var S_TabWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
|
|
51
49
|
var styleTheme = _a.styleTheme;
|
|
@@ -56,19 +54,25 @@ var S_TabWrapper = styled_components_1.default.div(templateObject_1 || (template
|
|
|
56
54
|
return mainStyle;
|
|
57
55
|
}
|
|
58
56
|
});
|
|
59
|
-
var mainStyle = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n cursor: pointer;\n display: flex;\n
|
|
57
|
+
var mainStyle = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n cursor: pointer;\n display: flex;\n margin-right: ", ";\n position: relative;\n background-color: ", ";\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n ", ";\n }\n"], ["\n align-items: center;\n cursor: pointer;\n display: flex;\n margin-right: ", ";\n position: relative;\n background-color: ", ";\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n ", ";\n }\n"])), function (_a) {
|
|
60
58
|
var theme = _a.theme;
|
|
61
59
|
return theme.spacing.spacingE;
|
|
62
60
|
}, function (_a) {
|
|
63
61
|
var isActive = _a.isActive, theme = _a.theme;
|
|
64
62
|
return isActive && theme.ui_cpnt_tabbar_base_area;
|
|
65
63
|
}, function (_a) {
|
|
66
|
-
var
|
|
67
|
-
return
|
|
64
|
+
var theme = _a.theme;
|
|
65
|
+
return theme.ui_cpnt_tabbar_border_active_indicator_primary;
|
|
66
|
+
}, function (_a) {
|
|
67
|
+
var isActive = _a.isActive;
|
|
68
|
+
return !isActive && "display: none;";
|
|
68
69
|
});
|
|
69
|
-
var S_TabBar = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n
|
|
70
|
+
var S_TabBar = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n border-bottom: 1px solid ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n height: 48px;\n justify-content: center;\n"], ["\n background-color: ", ";\n border-bottom: 1px solid ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n height: 48px;\n justify-content: center;\n"])), function (_a) {
|
|
70
71
|
var theme = _a.theme;
|
|
71
72
|
return theme.ui_cpnt_tabbar_base_area;
|
|
73
|
+
}, function (_a) {
|
|
74
|
+
var theme = _a.theme;
|
|
75
|
+
return theme.ui_cpnt_divider;
|
|
72
76
|
});
|
|
73
77
|
exports.default = UserDesktopTabBar;
|
|
74
78
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -5,7 +5,7 @@ import { Chip } from './Chip';
|
|
|
5
5
|
import { ContextMenu } from './ContextMenu';
|
|
6
6
|
import { ContextMenuItem } from './ContextMenuItem';
|
|
7
7
|
import { DesktopHeaderBar } from './DesktopHeaderBar';
|
|
8
|
-
import {
|
|
8
|
+
import { DesktopTabBar } from './DesktopTabBar';
|
|
9
9
|
import { EditApplyTextField } from './EditApplyTextField';
|
|
10
10
|
import { FilterBar } from './FilterBar';
|
|
11
11
|
import { FloatingActionButton } from './FloatingActionButton';
|
|
@@ -25,4 +25,4 @@ import { UploadMainButton } from './UploadMainButton';
|
|
|
25
25
|
import { UploadTextButton } from './UploadTextButton';
|
|
26
26
|
import { UserDesktopNavBar } from './UserDesktopNavBar';
|
|
27
27
|
import { UserDesktopTabBar } from './UserDesktopTabBar';
|
|
28
|
-
export { Card, CardList, Checkbox, Chip, ContextMenu, ContextMenuItem, DesktopHeaderBar,
|
|
28
|
+
export { Card, CardList, Checkbox, Chip, ContextMenu, ContextMenuItem, DesktopHeaderBar, DesktopTabBar, EditApplyTextField, FilterBar, FloatingActionButton, Hero, IconButton, ImageSlide, MainButton, Radio, ReactionButton, Select, StatusBlock, TextButton, TextField, TextLabel, UploadIconButton, UploadMainButton, UploadTextButton, UserDesktopNavBar, UserDesktopTabBar };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserDesktopTabBar = exports.UserDesktopNavBar = exports.UploadTextButton = exports.UploadMainButton = exports.UploadIconButton = exports.TextLabel = exports.TextField = exports.TextButton = exports.StatusBlock = exports.Select = exports.ReactionButton = exports.Radio = exports.MainButton = exports.ImageSlide = exports.IconButton = exports.Hero = exports.FloatingActionButton = exports.FilterBar = exports.EditApplyTextField = exports.
|
|
3
|
+
exports.UserDesktopTabBar = exports.UserDesktopNavBar = exports.UploadTextButton = exports.UploadMainButton = exports.UploadIconButton = exports.TextLabel = exports.TextField = exports.TextButton = exports.StatusBlock = exports.Select = exports.ReactionButton = exports.Radio = exports.MainButton = exports.ImageSlide = exports.IconButton = exports.Hero = exports.FloatingActionButton = exports.FilterBar = exports.EditApplyTextField = exports.DesktopTabBar = exports.DesktopHeaderBar = exports.ContextMenuItem = exports.ContextMenu = exports.Chip = exports.Checkbox = exports.CardList = exports.Card = void 0;
|
|
4
4
|
var Card_1 = require("./Card");
|
|
5
5
|
Object.defineProperty(exports, "Card", { enumerable: true, get: function () { return Card_1.Card; } });
|
|
6
6
|
var CardList_1 = require("./CardList");
|
|
@@ -16,7 +16,7 @@ Object.defineProperty(exports, "ContextMenuItem", { enumerable: true, get: funct
|
|
|
16
16
|
var DesktopHeaderBar_1 = require("./DesktopHeaderBar");
|
|
17
17
|
Object.defineProperty(exports, "DesktopHeaderBar", { enumerable: true, get: function () { return DesktopHeaderBar_1.DesktopHeaderBar; } });
|
|
18
18
|
var DesktopTabBar_1 = require("./DesktopTabBar");
|
|
19
|
-
Object.defineProperty(exports, "
|
|
19
|
+
Object.defineProperty(exports, "DesktopTabBar", { enumerable: true, get: function () { return DesktopTabBar_1.DesktopTabBar; } });
|
|
20
20
|
var EditApplyTextField_1 = require("./EditApplyTextField");
|
|
21
21
|
Object.defineProperty(exports, "EditApplyTextField", { enumerable: true, get: function () { return EditApplyTextField_1.EditApplyTextField; } });
|
|
22
22
|
var FilterBar_1 = require("./FilterBar");
|
|
@@ -9,5 +9,5 @@ import { LayoutWT } from './layout/LayoutWT';
|
|
|
9
9
|
import { GlobalMenuContainer as WTGlobalMenuContainer } from './layout/LayoutWT/Containers';
|
|
10
10
|
import { ContainersBox as WTContainersBox } from './layout/LayoutWT/ContainersBox';
|
|
11
11
|
export { LayoutWT, WTGlobalMenuContainer, WTContainersBox };
|
|
12
|
-
import { Card as D_Card, CardList as D_CardList, Checkbox as D_Checkbox, Chip as D_Chip, ContextMenu as D_ContextMenu, ContextMenuItem as D_ContextMenuItem, DesktopHeaderBar as D_DesktopHeaderBar,
|
|
13
|
-
export { D_Card, D_CardList, D_Checkbox, D_Chip, D_ContextMenu, D_ContextMenuItem, D_DesktopHeaderBar,
|
|
12
|
+
import { Card as D_Card, CardList as D_CardList, Checkbox as D_Checkbox, Chip as D_Chip, ContextMenu as D_ContextMenu, ContextMenuItem as D_ContextMenuItem, DesktopHeaderBar as D_DesktopHeaderBar, DesktopTabBar as D_DesktopTabBar, EditApplyTextField as D_EditApplyTextField, FilterBar as D_FilterBar, FloatingActionButton as D_FloatingActionButton, Hero as D_Hero, IconButton as D_IconButton, ImageSlide as D_ImageSlide, MainButton as D_MainButton, Radio as D_Radio, ReactionButton as D_ReactionButton, Select as D_Select, StatusBlock as D_StatusBlock, TextButton as D_TextButton, TextField as D_TextField, TextLabel as D_TextLabel, UploadIconButton as D_UploadIconButton, UploadMainButton as D_UploadMainButton, UploadTextButton as D_UploadTextButton, UserDesktopNavBar as D_UserDesktopNavBar, UserDesktopTabBar as D_UserDesktopTabBar } from './components';
|
|
13
|
+
export { D_Card, D_CardList, D_Checkbox, D_Chip, D_ContextMenu, D_ContextMenuItem, D_DesktopHeaderBar, D_DesktopTabBar, D_EditApplyTextField, D_FilterBar, D_FloatingActionButton, D_Hero, D_IconButton, D_ImageSlide, D_MainButton, D_Radio, D_Select, D_ReactionButton, D_StatusBlock, D_TextButton, D_TextField, D_TextLabel, D_UploadIconButton, D_UploadMainButton, D_UploadTextButton, D_UserDesktopNavBar, D_UserDesktopTabBar };
|
|
@@ -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.D_UserDesktopTabBar = exports.D_UserDesktopNavBar = exports.D_UploadTextButton = exports.D_UploadMainButton = exports.D_UploadIconButton = exports.D_TextLabel = exports.D_TextField = exports.D_TextButton = exports.D_StatusBlock = exports.D_ReactionButton = exports.D_Select = exports.D_Radio = exports.D_MainButton = exports.D_ImageSlide = exports.D_IconButton = exports.D_Hero = exports.D_FloatingActionButton = exports.D_FilterBar = exports.D_EditApplyTextField = exports.
|
|
5
|
+
exports.D_UserDesktopTabBar = exports.D_UserDesktopNavBar = exports.D_UploadTextButton = exports.D_UploadMainButton = exports.D_UploadIconButton = exports.D_TextLabel = exports.D_TextField = exports.D_TextButton = exports.D_StatusBlock = exports.D_ReactionButton = exports.D_Select = exports.D_Radio = exports.D_MainButton = exports.D_ImageSlide = exports.D_IconButton = exports.D_Hero = exports.D_FloatingActionButton = exports.D_FilterBar = exports.D_EditApplyTextField = exports.D_DesktopTabBar = exports.D_DesktopHeaderBar = exports.D_ContextMenuItem = exports.D_ContextMenu = exports.D_Chip = exports.D_Checkbox = exports.D_CardList = exports.D_Card = exports.WTContainersBox = exports.WTGlobalMenuContainer = exports.LayoutWT = exports.WSContainersBox = exports.WSGlobalMenuContainer = exports.LayoutWS = exports.WFContainersBox = exports.LayoutWF = void 0;
|
|
6
6
|
// layoutWF
|
|
7
7
|
var LayoutWF_1 = require("./layout/LayoutWF");
|
|
8
8
|
Object.defineProperty(exports, "LayoutWF", { enumerable: true, get: function () { return LayoutWF_1.LayoutWF; } });
|
|
@@ -31,7 +31,7 @@ Object.defineProperty(exports, "D_Chip", { enumerable: true, get: function () {
|
|
|
31
31
|
Object.defineProperty(exports, "D_ContextMenu", { enumerable: true, get: function () { return components_1.ContextMenu; } });
|
|
32
32
|
Object.defineProperty(exports, "D_ContextMenuItem", { enumerable: true, get: function () { return components_1.ContextMenuItem; } });
|
|
33
33
|
Object.defineProperty(exports, "D_DesktopHeaderBar", { enumerable: true, get: function () { return components_1.DesktopHeaderBar; } });
|
|
34
|
-
Object.defineProperty(exports, "
|
|
34
|
+
Object.defineProperty(exports, "D_DesktopTabBar", { enumerable: true, get: function () { return components_1.DesktopTabBar; } });
|
|
35
35
|
Object.defineProperty(exports, "D_EditApplyTextField", { enumerable: true, get: function () { return components_1.EditApplyTextField; } });
|
|
36
36
|
Object.defineProperty(exports, "D_FilterBar", { enumerable: true, get: function () { return components_1.FilterBar; } });
|
|
37
37
|
Object.defineProperty(exports, "D_FloatingActionButton", { enumerable: true, get: function () { return components_1.FloatingActionButton; } });
|
|
@@ -47,7 +47,7 @@ function Switch(_a) {
|
|
|
47
47
|
react_1.default.createElement(S_Input, { type: "checkbox", hidden: true, id: name, checked: checked, disabled: state === 'disabled', onChange: handleChange }),
|
|
48
48
|
react_1.default.createElement(S_Label, { htmlFor: name, disabled: state === 'disabled' })));
|
|
49
49
|
}
|
|
50
|
-
var S_Switch = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
|
50
|
+
var S_Switch = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n width: 56px;\n height: 32px;\n"], ["\n position: relative;\n width: 56px;\n height: 32px;\n"])));
|
|
51
51
|
var S_Label = styled_components_1.default.label(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n width: 56px;\n height: 32px;\n border-radius: 24px;\n background: ", ";\n cursor: pointer;\n\n &::after {\n content: '';\n display: block;\n border-radius: 24px;\n width: 24px;\n height: 24px;\n margin: ", ";\n background: ", ";\n }\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n width: 56px;\n height: 32px;\n border-radius: 24px;\n background: ", ";\n cursor: pointer;\n\n &::after {\n content: '';\n display: block;\n border-radius: 24px;\n width: 24px;\n height: 24px;\n margin: ", ";\n background: ", ";\n }\n"])), function (_a) {
|
|
52
52
|
var theme = _a.theme, disabled = _a.disabled;
|
|
53
53
|
return disabled ? theme.ui_cpnt_selcontrols_base_off_disabled : theme.ui_cpnt_selcontrols_base_off;
|
|
@@ -10,7 +10,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
var react_1 = __importDefault(require("react"));
|
|
11
11
|
var react_router_dom_1 = require("react-router-dom");
|
|
12
12
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
13
|
-
var hybrid_1 = require("../../../hybrid");
|
|
14
13
|
var TextLabel_1 = require("../TextLabel");
|
|
15
14
|
function MobileTabBar(_a) {
|
|
16
15
|
var textArray = _a.textArray;
|
|
@@ -25,22 +24,27 @@ function MobileTabBar(_a) {
|
|
|
25
24
|
react_1.default.createElement(S_TabBar, null, textArray.map(function (value) { return (react_1.default.createElement(S_TabWrapper, { key: value.path, isActive: pathname === value.path, onClick: function () {
|
|
26
25
|
handleClick(value);
|
|
27
26
|
} },
|
|
28
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: value.title, styleTheme: "body2Bold", colorTheme: pathname === value.path ? 'usrTextBrandPrimary' : 'sysTextTertiary', singleLineMode: "use" }))); }))
|
|
29
|
-
react_1.default.createElement(hybrid_1.Divider, { direction: "horizontal" })));
|
|
27
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: value.title, styleTheme: "body2Bold", colorTheme: pathname === value.path ? 'usrTextBrandPrimary' : 'sysTextTertiary', singleLineMode: "use" }))); }))));
|
|
30
28
|
}
|
|
31
|
-
var S_TabWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n justify-content: center;\n cursor: pointer;\n display: flex;\n
|
|
29
|
+
var S_TabWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n justify-content: center;\n cursor: pointer;\n display: flex;\n position: relative;\n background-color: ", ";\n padding: 0 ", ";\n flex: 1;\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n ", ";\n }\n"], ["\n align-items: center;\n justify-content: center;\n cursor: pointer;\n display: flex;\n position: relative;\n background-color: ", ";\n padding: 0 ", ";\n flex: 1;\n\n &:last-child {\n margin-right: 0;\n }\n\n &::after {\n background-color: ", ";\n bottom: -1px;\n content: '';\n height: 2px;\n position: absolute;\n width: 100%;\n ", ";\n }\n"])), function (_a) {
|
|
32
30
|
var isActive = _a.isActive, theme = _a.theme;
|
|
33
31
|
return isActive && theme.ui_cpnt_tabbar_base_area;
|
|
34
32
|
}, function (_a) {
|
|
35
33
|
var theme = _a.theme;
|
|
36
34
|
return theme.spacing.spacingD;
|
|
37
35
|
}, function (_a) {
|
|
38
|
-
var
|
|
39
|
-
return
|
|
36
|
+
var theme = _a.theme;
|
|
37
|
+
return theme.ui_cpnt_tabbar_border_active_indicator_primary;
|
|
38
|
+
}, function (_a) {
|
|
39
|
+
var isActive = _a.isActive;
|
|
40
|
+
return !isActive && "display: none;";
|
|
40
41
|
});
|
|
41
|
-
var S_TabBar = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n
|
|
42
|
+
var S_TabBar = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n border-bottom: 1px solid ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n height: 48px;\n justify-content: center;\n"], ["\n background-color: ", ";\n border-bottom: 1px solid ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n height: 48px;\n justify-content: center;\n"])), function (_a) {
|
|
42
43
|
var theme = _a.theme;
|
|
43
44
|
return theme.ui_cpnt_tabbar_base_area;
|
|
45
|
+
}, function (_a) {
|
|
46
|
+
var theme = _a.theme;
|
|
47
|
+
return theme.ui_cpnt_divider;
|
|
44
48
|
});
|
|
45
49
|
exports.default = MobileTabBar;
|
|
46
50
|
var templateObject_1, templateObject_2;
|