pds-dev-kit-web-test 0.0.3 → 0.0.4
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 +5 -3
- package/dist/src/common/assets/icons/fill/CheckboxOn.d.ts +1 -1
- package/dist/src/common/assets/icons/fill/CheckboxOn.js +24 -2
- package/dist/src/common/assets/icons/fill/index.d.ts +1 -1
- package/dist/src/common/components/Navigations/ContextTextLabelNav.js +2 -2
- package/dist/src/common/components/Navigations/index.d.ts +2 -0
- package/dist/src/common/components/Navigations/index.js +5 -1
- package/dist/src/common/decorators/withFormProvider.js +4 -1
- package/dist/src/common/styles/colorSet/SemanticColor.json +4 -4
- package/dist/src/common/styles/colorSet/UIColor.json +9 -4
- package/dist/src/common/styles/colorSet/index.d.ts +66 -61
- package/dist/src/common/styles/colorSet/index.js +4 -4
- package/dist/src/common/styles/colorSet/ui-type.d.ts +5 -0
- package/dist/src/common/styles/theme.d.ts +2 -0
- package/dist/src/common/styles/theme.js +3 -1
- package/dist/src/common/types/components.d.ts +1 -1
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +2 -1
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +20 -5
- package/dist/src/desktop/components/AdminList/BulkActionBar.js +3 -3
- package/dist/src/desktop/components/AdminList/HeaderRow.js +1 -1
- package/dist/src/desktop/components/AdminListItem/AdminListItem.js +18 -19
- package/dist/src/desktop/components/BasicListItem/BasicListItem.d.ts +4 -1
- package/dist/src/desktop/components/BasicListItem/BasicListItem.js +5 -5
- package/dist/src/desktop/components/Chip/Chip.js +16 -19
- package/dist/src/desktop/components/ContextMenu/ContextMenu.js +1 -1
- package/dist/src/desktop/components/ContextMenuItem/ContextMenuItem.js +2 -2
- package/dist/src/desktop/components/DesktopAlertDialog/DesktopAlertDialog.js +1 -1
- package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.js +4 -4
- package/dist/src/desktop/components/DynamicDesktopNavBar/DynamicDesktopNavBar.d.ts +2 -2
- package/dist/src/desktop/components/DynamicDesktopNavBar/DynamicDesktopNavBar.js +2 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/ContextMenuNavs/ContextMenuItemNav.js +2 -2
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/ContextMenuNavs/ContextMenuNavs.js +19 -5
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/LogoNav.js +1 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/MenuItemNav.js +6 -5
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/PAppMenuItemNav.d.ts +2 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/PAppMenuItemNav.js +3 -3
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/WebMenuItemNav.d.ts +2 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/components/MenuItemNav/components/WebMenuItemNav.js +3 -3
- package/dist/src/desktop/components/DynamicDesktopNavBar/index.d.ts +1 -0
- package/dist/src/desktop/components/DynamicDesktopNavBar/index.js +3 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/templates/{MenuDesignTemplates.d.ts → DynamicDesktopNavBarTemplates.d.ts} +17 -6
- package/dist/src/desktop/components/DynamicDesktopNavBar/templates/{MenuDesignTemplates.js → DynamicDesktopNavBarTemplates.js} +10 -10
- package/dist/src/desktop/components/DynamicDesktopNavBar/templates/constants.d.ts +15 -4
- package/dist/src/desktop/components/DynamicDesktopNavBar/templates/constants.js +22 -11
- package/dist/src/desktop/components/DynamicDesktopNavBar/templates/index.d.ts +1 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/templates/index.js +3 -3
- package/dist/src/desktop/components/DynamicDesktopNavBar/types.d.ts +1 -1
- package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.js +45 -20
- package/dist/src/desktop/components/FloatingActionButton/FloatingActionButton.js +1 -1
- package/dist/src/desktop/components/HorizontalFormGroup/HorizontalFormGroup.js +5 -3
- package/dist/src/desktop/components/IconButton/IconButton.js +3 -8
- package/dist/src/desktop/components/ImageSlide/ImageSlide.js +1 -1
- package/dist/src/desktop/components/MainButton/MainButton.js +1 -1
- package/dist/src/desktop/components/ReactionButton/ReactionButton.js +1 -1
- package/dist/src/desktop/components/Select/Select.js +1 -1
- package/dist/src/desktop/components/StatusBlock/StatusBlock.js +3 -3
- package/dist/src/desktop/components/TextButton/TextButton.d.ts +1 -1
- package/dist/src/desktop/components/TextButton/TextButton.js +12 -7
- package/dist/src/desktop/components/TextLabel/TextLabel.js +2 -4
- package/dist/src/desktop/components/ToneTest/ToneTest.d.ts +3 -0
- package/dist/src/desktop/components/ToneTest/ToneTest.js +385 -0
- package/dist/src/desktop/components/ToneTest/index.d.ts +1 -0
- package/dist/src/desktop/components/ToneTest/index.js +8 -0
- package/dist/src/desktop/components/UploadIconButton/UploadIconButton.js +3 -8
- package/dist/src/desktop/components/UploadTextButton/UploadTextButton.d.ts +1 -1
- package/dist/src/desktop/components/UploadTextButton/UploadTextButton.js +2 -1
- package/dist/src/desktop/components/UserDesktopSideTab/UserDesktopSideTab.d.ts +8 -0
- package/dist/src/desktop/components/UserDesktopSideTab/UserDesktopSideTab.js +36 -0
- package/dist/src/desktop/components/UserDesktopSideTab/index.d.ts +1 -0
- package/dist/src/desktop/components/UserDesktopSideTab/index.js +8 -0
- package/dist/src/desktop/components/UserDesktopTabBar/UserDesktopTabBar.js +3 -3
- package/dist/src/desktop/components/index.d.ts +3 -4
- package/dist/src/desktop/components/index.js +4 -5
- package/dist/src/desktop/index.d.ts +4 -2
- package/dist/src/desktop/index.js +9 -4
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.js +2 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTS.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTS.js +29 -5
- package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.js +8 -4
- package/dist/src/desktop/{components → panels}/DesktopBasicModal/DesktopBasicModal.d.ts +0 -0
- package/dist/src/desktop/{components → panels}/DesktopBasicModal/DesktopBasicModal.js +6 -7
- package/dist/src/desktop/{components → panels}/DesktopBasicModal/index.d.ts +0 -0
- package/dist/src/desktop/{components → panels}/DesktopBasicModal/index.js +0 -0
- package/dist/src/desktop/{components → panels}/DesktopHeadlessModal/DesktopHeadlessModal.d.ts +3 -3
- package/dist/src/desktop/{components → panels}/DesktopHeadlessModal/DesktopHeadlessModal.js +3 -3
- package/dist/src/desktop/{components → panels}/DesktopHeadlessModal/index.d.ts +0 -0
- package/dist/src/desktop/{components → panels}/DesktopHeadlessModal/index.js +0 -0
- package/dist/src/desktop/panels/index.d.ts +3 -0
- package/dist/src/desktop/panels/index.js +7 -0
- package/dist/src/hybrid/components/Divider/Divider.js +12 -9
- package/dist/src/hybrid/components/Icon/Icon.js +3 -2
- package/dist/src/hybrid/components/Switch/Switch.d.ts +2 -2
- package/dist/src/hybrid/components/Switch/Switch.js +3 -32
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +1 -1
- package/dist/src/mobile/components/BasicListItem/BasicListItem.d.ts +4 -1
- package/dist/src/mobile/components/BasicListItem/BasicListItem.js +5 -5
- package/dist/src/mobile/components/Card/Card.js +1 -1
- package/dist/src/mobile/components/Chip/Chip.js +16 -19
- package/dist/src/mobile/components/ContextMenu/ContextMenu.js +1 -1
- package/dist/src/mobile/components/ContextMenuItem/ContextMenuItem.js +2 -2
- package/dist/src/mobile/components/Dropdown/Dropdown.js +1 -1
- package/dist/src/mobile/components/HorizontalFormGroup/HorizontalFormGroup.js +5 -3
- package/dist/src/mobile/components/IconButton/IconButton.js +3 -8
- package/dist/src/mobile/components/ImageSlide/ImageSlide.js +1 -1
- package/dist/src/mobile/components/MainButton/MainButton.js +3 -12
- package/dist/src/mobile/components/MobileAlertDialog/MobileAlertDialog.js +2 -2
- package/dist/src/mobile/components/MobileTabBar/MobileTabBar.d.ts +3 -1
- package/dist/src/mobile/components/MobileTabBar/MobileTabBar.js +23 -9
- package/dist/src/mobile/components/Radio/Radio.js +1 -1
- package/dist/src/mobile/components/ReactionButton/ReactionButton.js +2 -5
- package/dist/src/mobile/components/Select/Select.js +1 -1
- package/dist/src/mobile/components/StatusBlock/StatusBlock.js +3 -3
- package/dist/src/mobile/components/TextButton/TextButton.d.ts +1 -1
- package/dist/src/mobile/components/TextButton/TextButton.js +8 -8
- package/dist/src/mobile/components/TextLabel/TextLabel.js +2 -4
- package/dist/src/mobile/components/UploadIconButton/UploadIconButton.js +3 -8
- package/dist/src/mobile/components/UploadMainButton/UploadMainButton.js +2 -8
- package/dist/src/mobile/components/UploadTextButton/UploadTextButton.d.ts +1 -1
- package/dist/src/mobile/components/UploadTextButton/UploadTextButton.js +2 -1
- package/dist/src/mobile/components/index.d.ts +1 -2
- package/dist/src/mobile/components/index.js +1 -3
- package/dist/src/mobile/index.d.ts +4 -2
- package/dist/src/mobile/index.js +4 -2
- package/dist/src/mobile/{components → panels}/MobileBasicModal/MobileBasicModal.d.ts +0 -0
- package/dist/src/mobile/{components → panels}/MobileBasicModal/MobileBasicModal.js +6 -9
- package/dist/src/mobile/{components → panels}/MobileBasicModal/index.d.ts +0 -0
- package/dist/src/mobile/{components → panels}/MobileBasicModal/index.js +0 -0
- package/dist/src/mobile/panels/index.d.ts +2 -0
- package/dist/src/mobile/panels/index.js +5 -0
- package/package.json +1 -1
- package/release-note.md +2 -10
|
@@ -28,6 +28,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
var react_1 = __importStar(require("react"));
|
|
30
30
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
31
|
+
var hybrid_1 = require("../../../hybrid");
|
|
31
32
|
var Icon_1 = require("../../../hybrid/components/Icon");
|
|
32
33
|
var TextLabel_1 = require("../TextLabel");
|
|
33
34
|
function Chip(_a) {
|
|
@@ -56,10 +57,12 @@ function Chip(_a) {
|
|
|
56
57
|
switch (displayType) {
|
|
57
58
|
case 'category_choice':
|
|
58
59
|
return (react_1.default.createElement(S_CategoryChoiceChip, { isActive: isActive, onClick: handleClickChip },
|
|
59
|
-
|
|
60
|
-
react_1.default.createElement(Icon_1.Icon, { size: 16, fillType: "line", iconName: "ic_filter", colorKey: "ui_cpnt_chip_line_icon_01" })
|
|
60
|
+
!isActive && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
61
|
+
react_1.default.createElement(Icon_1.Icon, { size: 16, fillType: "line", iconName: "ic_filter", colorKey: "ui_cpnt_chip_line_icon_01" }),
|
|
62
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }))),
|
|
61
63
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: "caption1Regular", singleLineMode: "use", colorTheme: isActive ? 'usrTextBrandOnPrimary' : 'sysTextPrimary' }),
|
|
62
|
-
isActive && (react_1.default.createElement(
|
|
64
|
+
isActive && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
65
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }),
|
|
63
66
|
react_1.default.createElement(Icon_1.Icon, { size: 12, fillType: "line", iconName: "ic_xmark", colorKey: "ui_cpnt_chip_fill_icon_active_01" })))));
|
|
64
67
|
case 'information':
|
|
65
68
|
return (react_1.default.createElement(S_InfoChip, { onClick: handleClickChip },
|
|
@@ -85,7 +88,7 @@ function Chip(_a) {
|
|
|
85
88
|
return react_1.default.createElement(S_ChipWrapper, null, chipType());
|
|
86
89
|
}
|
|
87
90
|
exports.default = Chip;
|
|
88
|
-
var S_CategoryChoiceChip = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 16px;\n box-sizing: border-box;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n height: 32px;\n padding-left: ", ";\n padding-right: ", ";\n
|
|
91
|
+
var S_CategoryChoiceChip = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 16px;\n box-sizing: border-box;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n height: 32px;\n padding-left: ", ";\n padding-right: ", ";\n ", ";\n"], ["\n border-radius: 16px;\n box-sizing: border-box;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n height: 32px;\n padding-left: ", ";\n padding-right: ", ";\n ", ";\n"])), function (_a) {
|
|
89
92
|
var theme = _a.theme, isActive = _a.isActive;
|
|
90
93
|
return isActive ? theme.ui_cpnt_chip_fill_base_active_01 : '';
|
|
91
94
|
}, function (_a) {
|
|
@@ -98,13 +101,7 @@ var S_CategoryChoiceChip = styled_components_1.default.div(templateObject_1 || (
|
|
|
98
101
|
var theme = _a.theme, isActive = _a.isActive;
|
|
99
102
|
return isActive ? '' : "border: 1px solid " + theme.ui_cpnt_chip_line_border_01;
|
|
100
103
|
});
|
|
101
|
-
var
|
|
102
|
-
var theme = _a.theme, isActive = _a.isActive;
|
|
103
|
-
return isActive
|
|
104
|
-
? "margin-left: " + theme.spacing.spacingA + "px"
|
|
105
|
-
: "margin-right: " + theme.spacing.spacingA + "px";
|
|
106
|
-
});
|
|
107
|
-
var S_InfoChip = styled_components_1.default.span(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border-radius: 12px;\n display: flex;\n height: 24px;\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n border-radius: 12px;\n display: flex;\n height: 24px;\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|
|
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 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"])), function (_a) {
|
|
108
105
|
var theme = _a.theme;
|
|
109
106
|
return theme.ui_cpnt_chip_fill_base_inactive;
|
|
110
107
|
}, function (_a) {
|
|
@@ -114,7 +111,7 @@ var S_InfoChip = styled_components_1.default.span(templateObject_3 || (templateO
|
|
|
114
111
|
var theme = _a.theme;
|
|
115
112
|
return theme.spacing.spacingC;
|
|
116
113
|
});
|
|
117
|
-
var S_RemovableChip = styled_components_1.default.div(
|
|
114
|
+
var S_RemovableChip = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n height: 32px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n height: 32px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|
|
118
115
|
var theme = _a.theme;
|
|
119
116
|
return theme.ui_cpnt_chip_fill_base_inactive;
|
|
120
117
|
}, function (_a) {
|
|
@@ -124,11 +121,11 @@ var S_RemovableChip = styled_components_1.default.div(templateObject_4 || (templ
|
|
|
124
121
|
var theme = _a.theme;
|
|
125
122
|
return theme.spacing.spacingC;
|
|
126
123
|
});
|
|
127
|
-
var S_XIconWrapper = styled_components_1.default.div(
|
|
124
|
+
var S_XIconWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin-left: ", ";\n"], ["\n margin-left: ", ";\n"])), function (_a) {
|
|
128
125
|
var theme = _a.theme;
|
|
129
126
|
return theme.spacing.spacingB;
|
|
130
127
|
});
|
|
131
|
-
var S_FilterSingleChip = styled_components_1.default.div(
|
|
128
|
+
var S_FilterSingleChip = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 32px;\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n background-color: ", ";\n border-radius: 16px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 32px;\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|
|
132
129
|
var theme = _a.theme, isActive = _a.isActive;
|
|
133
130
|
return isActive ? theme.ui_cpnt_chip_fill_base_active_01 : theme.ui_cpnt_chip_fill_base_inactive;
|
|
134
131
|
}, function (_a) {
|
|
@@ -138,23 +135,23 @@ var S_FilterSingleChip = styled_components_1.default.div(templateObject_6 || (te
|
|
|
138
135
|
var theme = _a.theme;
|
|
139
136
|
return theme.spacing.spacingC;
|
|
140
137
|
});
|
|
141
|
-
var S_FilterIconWrapper = styled_components_1.default.div(
|
|
138
|
+
var S_FilterIconWrapper = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n margin-right: ", ";\n"], ["\n margin-right: ", ";\n"])), function (_a) {
|
|
142
139
|
var theme = _a.theme;
|
|
143
140
|
return theme.spacing.spacingA;
|
|
144
141
|
});
|
|
145
|
-
var S_LabelChip = styled_components_1.default.div(
|
|
142
|
+
var S_LabelChip = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n border: 1px solid ", ";\n border-radius: 10px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 20px;\n padding: 0 ", ";\n"], ["\n border: 1px solid ", ";\n border-radius: 10px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 20px;\n padding: 0 ", ";\n"])), function (_a) {
|
|
146
143
|
var theme = _a.theme;
|
|
147
144
|
return theme.ui_cpnt_chip_line_border_01;
|
|
148
145
|
}, function (_a) {
|
|
149
146
|
var theme = _a.theme;
|
|
150
147
|
return theme.spacing.spacingB;
|
|
151
148
|
});
|
|
152
|
-
var S_TimeChip = styled_components_1.default.div(
|
|
149
|
+
var S_TimeChip = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 10px;\n box-sizing: border-box;\n height: 20px;\n padding: 0 ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n background-color: ", ";\n border-radius: 10px;\n box-sizing: border-box;\n height: 20px;\n padding: 0 ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n"])), function (_a) {
|
|
153
150
|
var theme = _a.theme;
|
|
154
151
|
return theme.ui_cpnt_chip_base_playtime;
|
|
155
152
|
}, function (_a) {
|
|
156
153
|
var theme = _a.theme;
|
|
157
154
|
return theme.spacing.spacingB;
|
|
158
155
|
});
|
|
159
|
-
var S_ChipWrapper = styled_components_1.default.div(
|
|
160
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9
|
|
156
|
+
var S_ChipWrapper = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: inline-block;\n vertical-align: bottom;\n"], ["\n display: inline-block;\n vertical-align: bottom;\n"])));
|
|
157
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
|
@@ -13,7 +13,7 @@ function ContextMenu(_a) {
|
|
|
13
13
|
var children = _a.children, _b = _a.autoWidthMode, autoWidthMode = _b === void 0 ? 'none' : _b, maxHeight = _a.maxHeight;
|
|
14
14
|
return (react_1.default.createElement(S_ContextMenu, { autoWidth: autoWidthMode === 'use', maxHeight: maxHeight }, 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: 14px;\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 max-height: ", ";\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 14px;\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 max-height: ", ";\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: 14px;\n box-sizing: border-box;\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 max-height: ", ";\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 14px;\n box-sizing: border-box;\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 max-height: ", ";\n"])), function (_a) {
|
|
17
17
|
var theme = _a.theme;
|
|
18
18
|
return theme.ui_cpnt_contextmenu_base;
|
|
19
19
|
}, function (_a) {
|
|
@@ -47,7 +47,7 @@ function ContextMenuItem(_a) {
|
|
|
47
47
|
textColorTheme = 'sysTextPrimary';
|
|
48
48
|
}
|
|
49
49
|
if (!isSelected && state === 'normal') {
|
|
50
|
-
textColorTheme = '
|
|
50
|
+
textColorTheme = 'sysTextPrimary';
|
|
51
51
|
}
|
|
52
52
|
if (state === 'disabled') {
|
|
53
53
|
textColorTheme = 'sysTextTertiary';
|
|
@@ -67,7 +67,7 @@ var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 =
|
|
|
67
67
|
var theme = _a.theme;
|
|
68
68
|
return theme.spacing.spacingD;
|
|
69
69
|
});
|
|
70
|
-
var S_ContextMenuItem = styled_components_1.default.li(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n display: flex;\n\n ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n display: flex;\n\n ", ";\n"])), function (_a) {
|
|
70
|
+
var S_ContextMenuItem = styled_components_1.default.li(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n box-sizing: border-box;\n display: flex;\n\n ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n box-sizing: border-box;\n display: flex;\n\n ", ";\n"])), function (_a) {
|
|
71
71
|
var theme = _a.theme, selected = _a.selected;
|
|
72
72
|
return selected
|
|
73
73
|
? theme.ui_cpnt_contextmenu_menu_base_selected
|
|
@@ -233,7 +233,7 @@ var borderColor = (0, styled_components_1.css)(templateObject_10 || (templateObj
|
|
|
233
233
|
return theme.ui_cpnt_dropdown_border_normal;
|
|
234
234
|
}
|
|
235
235
|
});
|
|
236
|
-
var S_Select = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border: 2px solid\n ", ";\n border-radius: 14px;\n display: flex;\n justify-content: space-between;\n\n ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n border: 2px solid\n ", ";\n border-radius: 14px;\n display: flex;\n justify-content: space-between;\n\n ", ";\n"])), function (_a) {
|
|
236
|
+
var S_Select = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border: 2px solid\n ", ";\n border-radius: 14px;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n\n ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n border: 2px solid\n ", ";\n border-radius: 14px;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n\n ", ";\n"])), function (_a) {
|
|
237
237
|
var state = _a.state;
|
|
238
238
|
switch (state) {
|
|
239
239
|
case 'disabled':
|
|
@@ -28,21 +28,23 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
var react_1 = __importDefault(require("react"));
|
|
30
30
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
31
|
+
var hybrid_1 = require("../../../hybrid");
|
|
31
32
|
var TextLabel_1 = require("../TextLabel");
|
|
32
33
|
function HorizontalFormGroup(_a) {
|
|
33
34
|
var labelText = _a.labelText, captionText = _a.captionText, inputForm = _a.inputForm, _b = _a.labelAlignType, labelAlignType = _b === void 0 ? 'center' : _b, labelTopSpacing = _a.labelTopSpacing;
|
|
34
35
|
return (react_1.default.createElement(S_HorizontalFormGroupBox, { labelAlignType: labelAlignType },
|
|
35
36
|
react_1.default.createElement(S_LabelWrapper, { labelAlignType: labelAlignType, labelTopSpacing: labelTopSpacing }, labelAlignType === 'center' ? (react_1.default.createElement(TextLabel_1.TextLabel, { text: labelText, styleTheme: "body2Bold", ellipsisMode: "use", lineLimit: 2 })) : (react_1.default.createElement(TextLabel_1.TextLabel, { text: labelText, styleTheme: "body2Bold" }))),
|
|
36
37
|
react_1.default.createElement(S_InputFormWrapper, null, inputForm),
|
|
37
|
-
react_1.default.createElement(S_CaptionWrapper, null,
|
|
38
|
-
react_1.default.createElement(
|
|
38
|
+
captionText && (react_1.default.createElement(S_CaptionWrapper, null,
|
|
39
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b" }),
|
|
40
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: captionText, styleTheme: "caption1Regular" })))));
|
|
39
41
|
}
|
|
40
42
|
var centerArea = "\n'label inputForm'\n'. caption'";
|
|
41
43
|
var topArea = "\n'label inputForm'\n'label caption'";
|
|
42
44
|
var small = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-top: 5px;\n"], ["\n margin-top: 5px;\n"])));
|
|
43
45
|
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-top: 10px;\n"], ["\n margin-top: 10px;\n"])));
|
|
44
46
|
var large = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin-top: 14px;\n"], ["\n margin-top: 14px;\n"])));
|
|
45
|
-
var S_HorizontalFormGroupBox = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: grid;\n gap: ", ";\n grid-template-columns: 112px
|
|
47
|
+
var S_HorizontalFormGroupBox = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: grid;\n grid-column-gap: ", ";\n grid-template-columns: 112px auto;\n grid-template-rows: auto 1fr;\n grid-template-areas: ", ";\n"], ["\n display: grid;\n grid-column-gap: ", ";\n grid-template-columns: 112px auto;\n grid-template-rows: auto 1fr;\n grid-template-areas: ", ";\n"])), function (_a) {
|
|
46
48
|
var theme = _a.theme;
|
|
47
49
|
return theme.spacing.spacingB;
|
|
48
50
|
}, function (_a) {
|
|
@@ -28,7 +28,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
var react_1 = __importDefault(require("react"));
|
|
30
30
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
31
|
-
var ui_colors_1 = require("../../../common/styles/ui-colors");
|
|
32
31
|
var hybrid_1 = require("../../../hybrid");
|
|
33
32
|
function IconButton(_a) {
|
|
34
33
|
var _b = _a.fillType, fillType = _b === void 0 ? 'fill' : _b, _c = _a.shapeType, shapeType = _c === void 0 ? 'rectangle' : _c, _d = _a.baseSize, baseSize = _d === void 0 ? 'small' : _d, baseColorKey = _a.baseColorKey, borderColorKey = _a.borderColorKey, _e = _a.iconSize, iconSize = _e === void 0 ? 24 : _e, _f = _a.iconFillType, iconFillType = _f === void 0 ? 'line' : _f, iconName = _a.iconName, iconColorKey = _a.iconColorKey, _g = _a.shadow, shadow = _g === void 0 ? 'hidden' : _g, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, _j = _a.type, type = _j === void 0 ? 'button' : _j, _k = _a.state, state = _k === void 0 ? 'normal' : _k, tabIndex = _a.tabIndex, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
|
|
@@ -76,9 +75,7 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObj
|
|
|
76
75
|
});
|
|
77
76
|
var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"], ["\n background-color: ", ";\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"])), function (_a) {
|
|
78
77
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
79
|
-
return baseColorKey
|
|
80
|
-
? (0, ui_colors_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[baseColorKey]
|
|
81
|
-
: theme.ui_cpnt_button_fill_base_primary;
|
|
78
|
+
return baseColorKey ? theme[baseColorKey] : theme.ui_cpnt_button_fill_base_primary;
|
|
82
79
|
}, function (_a) {
|
|
83
80
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
84
81
|
return baseColorKey === 'ui_cpnt_button_fill_base_transparent'
|
|
@@ -100,9 +97,7 @@ var line = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 =
|
|
|
100
97
|
return theme.ui_cpnt_button_line_base_default;
|
|
101
98
|
}, function (_a) {
|
|
102
99
|
var theme = _a.theme, borderColorKey = _a.borderColorKey;
|
|
103
|
-
return borderColorKey
|
|
104
|
-
? (0, ui_colors_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[borderColorKey]
|
|
105
|
-
: theme.ui_cpnt_button_line_border_enabled;
|
|
100
|
+
return borderColorKey ? theme[borderColorKey] : theme.ui_cpnt_button_line_border_enabled;
|
|
106
101
|
}, function (_a) {
|
|
107
102
|
var colorTheme = _a.colorTheme;
|
|
108
103
|
switch (colorTheme) {
|
|
@@ -133,7 +128,7 @@ var line2ColorTheme = (0, styled_components_1.css)(templateObject_11 || (templat
|
|
|
133
128
|
var theme = _a.theme;
|
|
134
129
|
return theme.ui_cpnt_button_line_border_primary;
|
|
135
130
|
});
|
|
136
|
-
var iconButtonStyle = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n display: flex;\n justify-content: center;\n ", ";\n ", ";\n ", ";\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n display: flex;\n justify-content: center;\n ", ";\n ", ";\n ", ";\n ", ";\n"])), function (_a) {
|
|
131
|
+
var iconButtonStyle = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n ", ";\n ", ";\n ", ";\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n ", ";\n ", ";\n ", ";\n ", ";\n"])), function (_a) {
|
|
137
132
|
var shapeType = _a.shapeType;
|
|
138
133
|
return shapeType && { circular: 'border-radius: 50%', rectangle: '' }[shapeType];
|
|
139
134
|
}, function (_a) {
|
|
@@ -68,7 +68,7 @@ var S_Dot = styled_components_1.default.div(templateObject_3 || (templateObject_
|
|
|
68
68
|
return theme.ui_cpnt_imageslide_inactive;
|
|
69
69
|
});
|
|
70
70
|
});
|
|
71
|
-
var S_ImageSlideWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex-direction: column;\n height: 100%;\n justify-content: center;\n min-width: ", ";\n padding: ", ";\n width: ", ";\n\n & > .slider {\n height: auto !important;\n }\n & div:focus {\n outline: none;\n }\n"], ["\n align-items: center;\n display: flex;\n flex-direction: column;\n height: 100%;\n justify-content: center;\n min-width: ", ";\n padding: ", ";\n width: ", ";\n\n & > .slider {\n height: auto !important;\n }\n & div:focus {\n outline: none;\n }\n"])), function (_a) {
|
|
71
|
+
var S_ImageSlideWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n height: 100%;\n justify-content: center;\n min-width: ", ";\n padding: ", ";\n width: ", ";\n\n & > .slider {\n height: auto !important;\n }\n & div:focus {\n outline: none;\n }\n"], ["\n align-items: center;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n height: 100%;\n justify-content: center;\n min-width: ", ";\n padding: ", ";\n width: ", ";\n\n & > .slider {\n height: auto !important;\n }\n & div:focus {\n outline: none;\n }\n"])), function (_a) {
|
|
72
72
|
var imageWidth = _a.imageWidth;
|
|
73
73
|
return imageWidth === 'responsive' ? "calc(100% - 48px)" : imageWidth + "px";
|
|
74
74
|
}, function (_a) {
|
|
@@ -205,12 +205,9 @@ var primaryDisabled = (0, styled_components_1.css)(templateObject_13 || (templat
|
|
|
205
205
|
var theme = _a.theme;
|
|
206
206
|
return theme.ui_cpnt_button_fill_base_disabled;
|
|
207
207
|
});
|
|
208
|
-
var primary = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n\n &:
|
|
208
|
+
var primary = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n\n &:active:enabled {\n ", "\n }\n\n ", "\n"], ["\n background-color: ", ";\n border: none;\n\n &:active:enabled {\n ", "\n }\n\n ", "\n"])), function (_a) {
|
|
209
209
|
var theme = _a.theme;
|
|
210
210
|
return theme.ui_cpnt_button_fill_base_primary;
|
|
211
|
-
}, function (_a) {
|
|
212
|
-
var theme = _a.theme;
|
|
213
|
-
return "background-image: linear-gradient(\n to top,\n " + theme.ui_cpnt_button_fill_on_base_hover + ",\n " + theme.ui_cpnt_button_fill_on_base_hover + "\n );";
|
|
214
211
|
}, function (_a) {
|
|
215
212
|
var theme = _a.theme;
|
|
216
213
|
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 );";
|
|
@@ -222,12 +219,9 @@ var secondaryDisabled = (0, styled_components_1.css)(templateObject_15 || (templ
|
|
|
222
219
|
var theme = _a.theme;
|
|
223
220
|
return theme.ui_cpnt_button_line_base_hover;
|
|
224
221
|
});
|
|
225
|
-
var secondary = (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n\n &:
|
|
222
|
+
var secondary = (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n\n &:active:enabled {\n ", "\n }\n\n ", "\n"], ["\n background-color: ", ";\n border: none;\n\n &:active:enabled {\n ", "\n }\n\n ", "\n"])), function (_a) {
|
|
226
223
|
var theme = _a.theme;
|
|
227
224
|
return theme.ui_cpnt_button_line_base_hover;
|
|
228
|
-
}, function (_a) {
|
|
229
|
-
var theme = _a.theme;
|
|
230
|
-
return "background-image: linear-gradient(\n to top,\n " + theme.ui_cpnt_button_fill_on_base_hover + ",\n " + theme.ui_cpnt_button_fill_on_base_hover + "\n );";
|
|
231
225
|
}, function (_a) {
|
|
232
226
|
var theme = _a.theme;
|
|
233
227
|
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 );";
|
|
@@ -235,10 +229,7 @@ var secondary = (0, styled_components_1.css)(templateObject_16 || (templateObjec
|
|
|
235
229
|
var state = _a.state;
|
|
236
230
|
return state === 'disabled' && secondaryDisabled;
|
|
237
231
|
});
|
|
238
|
-
var S_Button = styled_components_1.default.button(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n
|
|
239
|
-
var state = _a.state;
|
|
240
|
-
return (state === 'normal' ? 'pointer' : 'default');
|
|
241
|
-
}, function (_a) {
|
|
232
|
+
var S_Button = styled_components_1.default.button(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n\n &:focus {\n outline: none;\n }\n\n ", "\n ", "\n ", "\n ", ";\n\n & > div {\n ", ";\n }\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n\n &:focus {\n outline: none;\n }\n\n ", "\n ", "\n ", "\n ", ";\n\n & > div {\n ", ";\n }\n"])), function (_a) {
|
|
242
233
|
var styleTheme = _a.styleTheme;
|
|
243
234
|
return styleTheme && { primary: primary, secondary: secondary }[styleTheme];
|
|
244
235
|
}, function (_a) {
|
|
@@ -89,7 +89,7 @@ var S_ModalOverlay = styled_components_1.default.div(templateObject_2 || (templa
|
|
|
89
89
|
var theme = _a.theme;
|
|
90
90
|
return theme.ui_cpnt_modal_dimmed;
|
|
91
91
|
});
|
|
92
|
-
var S_ModalWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 24px;\n box-shadow: ", ";\n position: fixed;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n max-height: 720px;\n width: calc(100% - 80px);\n max-width: 512px;\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 24px;\n box-shadow: ", ";\n position: fixed;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n max-height: 720px;\n width: calc(100% - 80px);\n max-width: 512px;\n"])), function (_a) {
|
|
92
|
+
var S_ModalWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 24px;\n box-sizing: border-box;\n box-shadow: ", ";\n position: fixed;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n max-height: 720px;\n width: calc(100% - 80px);\n max-width: 512px;\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 24px;\n box-sizing: border-box;\n box-shadow: ", ";\n position: fixed;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n max-height: 720px;\n width: calc(100% - 80px);\n max-width: 512px;\n"])), function (_a) {
|
|
93
93
|
var theme = _a.theme;
|
|
94
94
|
return theme.ui_cpnt_alertdialog_base;
|
|
95
95
|
}, function (_a) {
|
|
@@ -99,7 +99,7 @@ var S_ModalWrapper = styled_components_1.default.div(templateObject_3 || (templa
|
|
|
99
99
|
var theme = _a.theme;
|
|
100
100
|
return theme.boxShadow.elevation5;
|
|
101
101
|
});
|
|
102
|
-
var S_Footer = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n flex-direction: ", ";\n align-items: ", ";\n justify-content: ", ";\n
|
|
102
|
+
var S_Footer = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n flex-direction: ", ";\n align-items: ", ";\n justify-content: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n display: flex;\n flex-direction: ", ";\n align-items: ", ";\n justify-content: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|
|
103
103
|
var btnStack = _a.btnStack;
|
|
104
104
|
return (btnStack === 'side' ? 'row' : 'column-reverse');
|
|
105
105
|
}, function (_a) {
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PDSTabItemOption, PDSTextType } from '../../../common/types';
|
|
3
|
+
declare type MobileTabBarColorThemeType = 'none' | 'grey_01';
|
|
3
4
|
declare type TextObj = {
|
|
4
5
|
path: string;
|
|
5
6
|
title: PDSTextType;
|
|
6
7
|
};
|
|
7
8
|
declare type MobileTabBarProps = {
|
|
8
9
|
itemArray?: PDSTabItemOption[];
|
|
10
|
+
colorTheme?: MobileTabBarColorThemeType;
|
|
9
11
|
/** @deprecated v1.5 해당 필드 대신 itemArray를 사용하세요. */
|
|
10
12
|
textArray?: TextObj[];
|
|
11
13
|
};
|
|
12
|
-
declare function MobileTabBar({ itemArray, textArray }: MobileTabBarProps): JSX.Element;
|
|
14
|
+
declare function MobileTabBar({ itemArray, colorTheme, textArray }: MobileTabBarProps): JSX.Element;
|
|
13
15
|
export default MobileTabBar;
|
|
@@ -11,18 +11,32 @@ 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
13
|
var TextLabel_1 = require("../TextLabel");
|
|
14
|
+
var mobileTabBarThemes = {
|
|
15
|
+
none: {
|
|
16
|
+
activeTextColor: 'usrTextBrandPrimary',
|
|
17
|
+
inActiveTextColor: 'sysTextTertiary',
|
|
18
|
+
activeIndicatorBorderColor: 'ui_cpnt_tabbar_border_active_indicator_primary'
|
|
19
|
+
},
|
|
20
|
+
grey_01: {
|
|
21
|
+
activeTextColor: 'sysTextPrimary',
|
|
22
|
+
inActiveTextColor: 'sysTextTertiary',
|
|
23
|
+
activeIndicatorBorderColor: 'ui_cpnt_tabbar_border_active_indicator'
|
|
24
|
+
}
|
|
25
|
+
};
|
|
14
26
|
function MobileTabBar(_a) {
|
|
15
|
-
var itemArray = _a.itemArray, textArray = _a.textArray;
|
|
27
|
+
var itemArray = _a.itemArray, _b = _a.colorTheme, colorTheme = _b === void 0 ? 'none' : _b, textArray = _a.textArray;
|
|
16
28
|
var history = (0, react_router_dom_1.useHistory)();
|
|
17
29
|
var pathname = (0, react_router_dom_1.useLocation)().pathname;
|
|
18
30
|
if (itemArray) {
|
|
19
|
-
var handleClickTabItem_1 = function (item) {
|
|
31
|
+
var handleClickTabItem_1 = function (item, e) {
|
|
20
32
|
if (item.onClick) {
|
|
21
|
-
item.onClick();
|
|
33
|
+
item.onClick(e);
|
|
22
34
|
}
|
|
23
35
|
};
|
|
24
|
-
return (react_1.default.createElement(S_TabBar, null, itemArray.map(function (item, index) { return (react_1.default.createElement(S_TabWrapper, { key: index, isActive: item.isActive, onClick: function () { return handleClickTabItem_1(item); } },
|
|
25
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: item.title, textAlign: "center", styleTheme: "body2Bold", colorTheme: item.isActive
|
|
36
|
+
return (react_1.default.createElement(S_TabBar, null, itemArray.map(function (item, index) { return (react_1.default.createElement(S_TabWrapper, { key: index, colorTheme: colorTheme, isActive: item.isActive, onClick: function (e) { return handleClickTabItem_1(item, e); } },
|
|
37
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: item.title, textAlign: "center", styleTheme: "body2Bold", colorTheme: item.isActive
|
|
38
|
+
? mobileTabBarThemes[colorTheme].activeTextColor
|
|
39
|
+
: mobileTabBarThemes[colorTheme].inActiveTextColor, singleLineMode: "use" }))); })));
|
|
26
40
|
}
|
|
27
41
|
if (textArray) {
|
|
28
42
|
var handleClick_1 = function (value) {
|
|
@@ -30,20 +44,20 @@ function MobileTabBar(_a) {
|
|
|
30
44
|
history.push(value.path);
|
|
31
45
|
}
|
|
32
46
|
};
|
|
33
|
-
return (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 () { return handleClick_1(value); } },
|
|
47
|
+
return (react_1.default.createElement(S_TabBar, null, textArray.map(function (value) { return (react_1.default.createElement(S_TabWrapper, { key: value.path, colorTheme: colorTheme, isActive: pathname === value.path, onClick: function () { return handleClick_1(value); } },
|
|
34
48
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: value.title, textAlign: "center", styleTheme: "body2Bold", colorTheme: pathname === value.path ? 'usrTextBrandPrimary' : 'sysTextTertiary', singleLineMode: "use" }))); })));
|
|
35
49
|
}
|
|
36
50
|
return react_1.default.createElement(react_1.default.Fragment, null);
|
|
37
51
|
}
|
|
38
|
-
var S_TabWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n justify-content: center;\n
|
|
52
|
+
var S_TabWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n justify-content: center;\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 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) {
|
|
39
53
|
var isActive = _a.isActive, theme = _a.theme;
|
|
40
54
|
return isActive && theme.ui_cpnt_tabbar_base_area;
|
|
41
55
|
}, function (_a) {
|
|
42
56
|
var theme = _a.theme;
|
|
43
57
|
return theme.spacing.spacingD;
|
|
44
58
|
}, function (_a) {
|
|
45
|
-
var theme = _a.theme;
|
|
46
|
-
return theme.
|
|
59
|
+
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
60
|
+
return theme[mobileTabBarThemes[colorTheme].activeIndicatorBorderColor];
|
|
47
61
|
}, function (_a) {
|
|
48
62
|
var isActive = _a.isActive;
|
|
49
63
|
return !isActive && "display: none;";
|
|
@@ -39,7 +39,7 @@ function Radio(_a) {
|
|
|
39
39
|
: 'ui_cpnt_selcontrols_text_disabled' })),
|
|
40
40
|
react_1.default.createElement("input", { hidden: true, id: value, type: "radio", name: name, value: value, checked: checked, color: value, onChange: handleChange, disabled: state === 'disabled' })));
|
|
41
41
|
}
|
|
42
|
-
var S_Label = styled_components_1.default.label(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n
|
|
42
|
+
var S_Label = styled_components_1.default.label(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 24px;\n"], ["\n align-items: center;\n display: flex;\n height: 24px;\n"])));
|
|
43
43
|
var S_OverrideIconWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n position: relative;\n"], ["\n align-items: center;\n display: flex;\n position: relative;\n"])));
|
|
44
44
|
var S_OverrideIcon = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n left: 0;\n position: absolute;\n top: 0;\n"], ["\n left: 0;\n position: absolute;\n top: 0;\n"])));
|
|
45
45
|
var S_TextWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n padding-left: ", ";\n"], ["\n padding-left: ", ";\n"])), function (_a) {
|
|
@@ -65,7 +65,7 @@ function ReactionButton(_a) {
|
|
|
65
65
|
case status === 'default' && colorTheme === 'none':
|
|
66
66
|
return 'sysTextSecondary';
|
|
67
67
|
case status === 'select' && colorTheme === 'none':
|
|
68
|
-
return '
|
|
68
|
+
return 'usrTextBrandPrimary';
|
|
69
69
|
default:
|
|
70
70
|
return 'sysTextSecondary';
|
|
71
71
|
}
|
|
@@ -103,10 +103,7 @@ function ReactionButton(_a) {
|
|
|
103
103
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: convertFormatHelper(text), styleTheme: "body2Bold", singleLineMode: "use", colorTheme: TextLabelColorBySelect(), colorOverride: TextLabelColorByByColorTheme() }),
|
|
104
104
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" })));
|
|
105
105
|
}
|
|
106
|
-
var ReactionButtonStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: none;\n border-radius: 8px;\n display: flex;\n justify-content: center;\n padding: 0;\n height: 32px;\n
|
|
107
|
-
var theme = _a.theme;
|
|
108
|
-
return theme.ui_cpnt_reactionbutton_base_01;
|
|
109
|
-
});
|
|
106
|
+
var ReactionButtonStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: none;\n border-radius: 8px;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n padding: 0;\n height: 32px;\n"], ["\n align-items: center;\n background-color: transparent;\n border: none;\n border-radius: 8px;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n padding: 0;\n height: 32px;\n"])));
|
|
110
107
|
var S_ReactionButton = styled_components_1.default.button(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), ReactionButtonStyle);
|
|
111
108
|
exports.default = ReactionButton;
|
|
112
109
|
var templateObject_1, templateObject_2;
|
|
@@ -106,7 +106,7 @@ var S_Icon_Wrapper = styled_components_1.default.div(templateObject_7 || (templa
|
|
|
106
106
|
var theme = _a.theme;
|
|
107
107
|
return theme.spacing.spacingD;
|
|
108
108
|
});
|
|
109
|
-
var S_Select = styled_components_1.default.select(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n appearance: none;\n background-color: ", ";\n border: 2px solid ", ";\n border-radius: ", ";\n color: ", ";\n font-family: inherit;\n font-size: ", ";\n height: 100%;\n padding-left: ", ";\n width: 100%;\n\n :disabled {\n background-color: ", ";\n border: 2px solid ", ";\n color: ", ";\n opacity: 1;\n }\n\n :focus {\n border: 2px solid ", " !important;\n color: ", ";\n outline: 0 !important;\n outline-offset: 0 !important;\n }\n\n ", "\n"], ["\n appearance: none;\n background-color: ", ";\n border: 2px solid ", ";\n border-radius: ", ";\n color: ", ";\n font-family: inherit;\n font-size: ", ";\n height: 100%;\n padding-left: ", ";\n width: 100%;\n\n :disabled {\n background-color: ", ";\n border: 2px solid ", ";\n color: ", ";\n opacity: 1;\n }\n\n :focus {\n border: 2px solid ", " !important;\n color: ", ";\n outline: 0 !important;\n outline-offset: 0 !important;\n }\n\n ", "\n"])), function (_a) {
|
|
109
|
+
var S_Select = styled_components_1.default.select(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n appearance: none;\n background-color: ", ";\n border: 2px solid ", ";\n border-radius: ", ";\n box-sizing: border-box;\n color: ", ";\n font-family: inherit;\n font-size: ", ";\n height: 100%;\n padding-left: ", ";\n width: 100%;\n\n :disabled {\n background-color: ", ";\n border: 2px solid ", ";\n color: ", ";\n opacity: 1;\n }\n\n :focus {\n border: 2px solid ", " !important;\n color: ", ";\n outline: 0 !important;\n outline-offset: 0 !important;\n }\n\n ", "\n"], ["\n appearance: none;\n background-color: ", ";\n border: 2px solid ", ";\n border-radius: ", ";\n box-sizing: border-box;\n color: ", ";\n font-family: inherit;\n font-size: ", ";\n height: 100%;\n padding-left: ", ";\n width: 100%;\n\n :disabled {\n background-color: ", ";\n border: 2px solid ", ";\n color: ", ";\n opacity: 1;\n }\n\n :focus {\n border: 2px solid ", " !important;\n color: ", ";\n outline: 0 !important;\n outline-offset: 0 !important;\n }\n\n ", "\n"])), function (_a) {
|
|
110
110
|
var theme = _a.theme;
|
|
111
111
|
return theme.ui_cpnt_select_base_normal;
|
|
112
112
|
}, function (_a) {
|
|
@@ -39,9 +39,9 @@ function StatusBlock(_a) {
|
|
|
39
39
|
return (react_1.default.createElement(S_StatusBlock, { size: size, state: state, "$width": width },
|
|
40
40
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textLabelStyleThemeObj[size], textAlign: "center", singleLineMode: "use", colorTheme: "sysTextWhite" })));
|
|
41
41
|
}
|
|
42
|
-
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius:
|
|
43
|
-
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-radius:
|
|
44
|
-
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius:
|
|
42
|
+
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 14px;\n height: 48px;\n"], ["\n border-radius: 14px;\n height: 48px;\n"])));
|
|
43
|
+
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-radius: 14px;\n height: 40px;\n"], ["\n border-radius: 14px;\n height: 40px;\n"])));
|
|
44
|
+
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: 10px;\n height: 32px;\n"], ["\n border-radius: 10px;\n height: 32px;\n"])));
|
|
45
45
|
var basic = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
46
46
|
var theme = _a.theme;
|
|
47
47
|
return theme.ui_cpnt_statusblock_basic;
|
|
@@ -7,7 +7,7 @@ export declare type TextButtonProps = {
|
|
|
7
7
|
fontWeight?: 'bold' | 'regular';
|
|
8
8
|
type?: 'submit' | 'reset' | 'button';
|
|
9
9
|
state?: 'normal' | 'disabled';
|
|
10
|
-
colorTheme?: 'none' | 'red' | 'grey_01';
|
|
10
|
+
colorTheme?: 'none' | 'red' | 'grey_01' | 'white';
|
|
11
11
|
onClick?: (...args: any) => any;
|
|
12
12
|
};
|
|
13
13
|
declare function TextButton({ text, size, responsiveMode, fontWeight, type, state, colorTheme, onClick, ...rest }: TextButtonProps): JSX.Element;
|
|
@@ -61,7 +61,8 @@ var textStyle = {
|
|
|
61
61
|
var textColor = {
|
|
62
62
|
none: 'usrTextBrandPrimary',
|
|
63
63
|
red: 'sysTextError',
|
|
64
|
-
grey_01: 'sysTextPrimary'
|
|
64
|
+
grey_01: 'sysTextPrimary',
|
|
65
|
+
white: 'sysTextWhite'
|
|
65
66
|
};
|
|
66
67
|
function TextButton(_a) {
|
|
67
68
|
var text = _a.text, _b = _a.size, size = _b === void 0 ? 'large' : _b, _c = _a.responsiveMode, responsiveMode = _c === void 0 ? 'none' : _c, fontWeight = _a.fontWeight, _d = _a.type, type = _d === void 0 ? 'button' : _d, _e = _a.state, state = _e === void 0 ? 'normal' : _e, _f = _a.colorTheme, colorTheme = _f === void 0 ? 'none' : _f, onClick = _a.onClick, rest = __rest(_a, ["text", "size", "responsiveMode", "fontWeight", "type", "state", "colorTheme", "onClick"]);
|
|
@@ -70,7 +71,7 @@ function TextButton(_a) {
|
|
|
70
71
|
onClick();
|
|
71
72
|
}
|
|
72
73
|
};
|
|
73
|
-
return (react_1.default.createElement(S_Button, __assign({}, rest, { size: size, responsiveMode: responsiveMode, onClick: handleClick, type: type, fontWeight: fontWeight, disabled: state === 'disabled' }),
|
|
74
|
+
return (react_1.default.createElement(S_Button, __assign({}, rest, { size: size, responsiveMode: responsiveMode, onClick: handleClick, type: type, fontWeight: fontWeight, disabled: state === 'disabled', colorTheme: colorTheme }),
|
|
74
75
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? 'sysTextTertiary' : textColor[colorTheme], singleLineMode: "use" })));
|
|
75
76
|
}
|
|
76
77
|
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 14px;\n height: 48px;\n ", ";\n"], ["\n border-radius: 14px;\n height: 48px;\n ", ";\n"])), function (_a) {
|
|
@@ -80,12 +81,11 @@ var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 =
|
|
|
80
81
|
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-radius: 14px;\n height: 40px;\n"], ["\n border-radius: 14px;\n height: 40px;\n"])));
|
|
81
82
|
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: 10px;\n height: 32px;\n"], ["\n border-radius: 10px;\n height: 32px;\n"])));
|
|
82
83
|
var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 8px;\n height: 24px;\n"], ["\n border-radius: 8px;\n height: 24px;\n"])));
|
|
83
|
-
var S_Button = styled_components_1.default.button(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: none;\n
|
|
84
|
-
var
|
|
85
|
-
return
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
return theme.ui_cpnt_button_line_base_pressed;
|
|
84
|
+
var S_Button = styled_components_1.default.button(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n padding-left: 8px;\n padding-right: 8px;\n\n &:active:enabled {\n background-color: ", ";\n }\n\n ", ";\n\n & > div {\n ", ";\n }\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n padding-left: 8px;\n padding-right: 8px;\n\n &:active:enabled {\n background-color: ", ";\n }\n\n ", ";\n\n & > div {\n ", ";\n }\n ", ";\n"])), function (_a) {
|
|
85
|
+
var theme = _a.theme, colorTheme = _a.colorTheme;
|
|
86
|
+
return colorTheme === 'white'
|
|
87
|
+
? theme.ui_cpnt_button_white_base_pressed
|
|
88
|
+
: theme.ui_cpnt_button_line_base_pressed;
|
|
89
89
|
}, function (_a) {
|
|
90
90
|
var size = _a.size;
|
|
91
91
|
return size &&
|
|
@@ -28,7 +28,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
var react_1 = __importDefault(require("react"));
|
|
30
30
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
31
|
-
var common_1 = require("../../../common");
|
|
32
31
|
var hybrid_1 = require("../../../hybrid");
|
|
33
32
|
function TextLabel(_a) {
|
|
34
33
|
var text = _a.text, _b = _a.textAlign, textAlign = _b === void 0 ? 'left' : _b, _c = _a.styleTheme, styleTheme = _c === void 0 ? 'body2Bold' : _c, colorOverride = _a.colorOverride, _d = _a.colorTheme, colorTheme = _d === void 0 ? 'sysTextPrimary' : _d, _e = _a.singleLineMode, singleLineMode = _e === void 0 ? 'none' : _e, _f = _a.ellipsisMode, ellipsisMode = _f === void 0 ? 'none' : _f, lineLimit = _a.lineLimit, _g = _a.userSelectMode, userSelectMode = _g === void 0 ? 'none' : _g, customFontSize = _a.customFontSize, customFontWeight = _a.customFontWeight, _h = _a.textDecorationType, textDecorationType = _h === void 0 ? 'none' : _h, _j = _a.requirementMode, requirementMode = _j === void 0 ? 'none' : _j, _k = _a.bulletPointMode, bulletPointMode = _k === void 0 ? 'none' : _k, _l = _a.wordBreak, wordBreak = _l === void 0 ? 'keep_all' : _l;
|
|
@@ -256,9 +255,8 @@ var customFontStyle = (0, styled_components_1.css)(templateObject_28 || (templat
|
|
|
256
255
|
return customFontWeight === 'bold' ? theme.fontWeight.bold : theme.fontWeight.normal;
|
|
257
256
|
});
|
|
258
257
|
var colorOverrideStyle = (0, styled_components_1.css)(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
259
|
-
var colorOverride = _a.colorOverride;
|
|
260
|
-
return colorOverride &&
|
|
261
|
-
(0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[colorOverride];
|
|
258
|
+
var colorOverride = _a.colorOverride, theme = _a.theme;
|
|
259
|
+
return colorOverride && theme[colorOverride];
|
|
262
260
|
});
|
|
263
261
|
var ellipsisStyle = (0, styled_components_1.css)(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (_a) {
|
|
264
262
|
var lineLimit = _a.lineLimit;
|
|
@@ -28,7 +28,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
var react_1 = __importDefault(require("react"));
|
|
30
30
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
31
|
-
var common_1 = require("../../../common");
|
|
32
31
|
var hybrid_1 = require("../../../hybrid");
|
|
33
32
|
var types_1 = require("./types");
|
|
34
33
|
function UploadIconButton(_a) {
|
|
@@ -62,9 +61,7 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObj
|
|
|
62
61
|
});
|
|
63
62
|
var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-image: ", ";\n }\n\n ", ";\n"], ["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-image: ", ";\n }\n\n ", ";\n"])), function (_a) {
|
|
64
63
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
65
|
-
return baseColorKey
|
|
66
|
-
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[baseColorKey]
|
|
67
|
-
: theme.ui_cpnt_button_fill_base_primary;
|
|
64
|
+
return baseColorKey ? theme[baseColorKey] : theme.ui_cpnt_button_fill_base_primary;
|
|
68
65
|
}, function (_a) {
|
|
69
66
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
70
67
|
return baseColorKey === 'ui_cpnt_button_fill_base_transparent'
|
|
@@ -94,9 +91,7 @@ var line = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 =
|
|
|
94
91
|
return theme.ui_cpnt_button_line_base_default;
|
|
95
92
|
}, function (_a) {
|
|
96
93
|
var theme = _a.theme, borderColorKey = _a.borderColorKey;
|
|
97
|
-
return borderColorKey
|
|
98
|
-
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[borderColorKey]
|
|
99
|
-
: theme.ui_cpnt_button_line_border_enabled;
|
|
94
|
+
return borderColorKey ? theme[borderColorKey] : theme.ui_cpnt_button_line_border_enabled;
|
|
100
95
|
}, function (_a) {
|
|
101
96
|
var colorTheme = _a.colorTheme;
|
|
102
97
|
switch (colorTheme) {
|
|
@@ -119,7 +114,7 @@ var large = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 =
|
|
|
119
114
|
var medium = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n height: 40px;\n width: 40px;\n"], ["\n height: 40px;\n width: 40px;\n"])));
|
|
120
115
|
var small = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n height: 32px;\n width: 32px;\n"], ["\n height: 32px;\n width: 32px;\n"])));
|
|
121
116
|
var xsmall = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n height: 24px;\n width: 24px;\n"], ["\n height: 24px;\n width: 24px;\n"])));
|
|
122
|
-
var S_UploadIconButton = styled_components_1.default.label(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n border-radius: ", ";\n box-shadow: ", ";\n display: inline-flex;\n justify-content: center;\n\n ", ";\n\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n border-radius: ", ";\n box-shadow: ", ";\n display: inline-flex;\n justify-content: center;\n\n ", ";\n\n ", ";\n"])), function (_a) {
|
|
117
|
+
var S_UploadIconButton = styled_components_1.default.label(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n border-radius: ", ";\n box-sizing: border-box;\n box-shadow: ", ";\n display: inline-flex;\n justify-content: center;\n\n ", ";\n\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n border-radius: ", ";\n box-sizing: border-box;\n box-shadow: ", ";\n display: inline-flex;\n justify-content: center;\n\n ", ";\n\n ", ";\n"])), function (_a) {
|
|
123
118
|
var shapeType = _a.shapeType;
|
|
124
119
|
return shapeType === 'circular' && '50%';
|
|
125
120
|
}, function (_a) {
|