pds-dev-kit-web 1.9.23 → 1.9.25
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/src/common/styles/colorSet/UIColor.json +2 -1
- package/dist/src/common/styles/colorSet/index.d.ts +3 -2
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/styles/colorSet/ui-type.d.ts +1 -0
- package/dist/src/desktop/components/AdminList/AdminList.js +1 -1
- package/dist/src/desktop/components/BasicListItem/BasicListItem.d.ts +1 -0
- package/dist/src/desktop/components/BasicListItem/BasicListItem.js +10 -99
- package/dist/src/desktop/components/BasicListItem/Contents.d.ts +16 -0
- package/dist/src/desktop/components/BasicListItem/Contents.js +31 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/Badge.d.ts +7 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/Badge.js +27 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/Checkbox.d.ts +6 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/Checkbox.js +19 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/Icon.d.ts +8 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/Icon.js +19 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/Image.d.ts +8 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/Image.js +9 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/LeftBox.d.ts +17 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/LeftBox.js +42 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/Radio.d.ts +9 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/Radio.js +13 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/index.d.ts +2 -0
- package/dist/src/desktop/components/BasicListItem/LeftBox/index.js +8 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/Description.d.ts +8 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/Description.js +10 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.d.ts +9 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.js +19 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/MainButton.d.ts +9 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/MainButton.js +10 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/RightBox.d.ts +15 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/RightBox.js +40 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/Switch.d.ts +10 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/Switch.js +19 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/index.d.ts +2 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/index.js +8 -0
- package/dist/src/desktop/components/Radio/Radio.js +2 -2
- package/dist/src/mobile/components/BasicListItem/BasicListItem.d.ts +1 -0
- package/dist/src/mobile/components/BasicListItem/BasicListItem.js +10 -99
- package/dist/src/mobile/components/BasicListItem/Contents.d.ts +16 -0
- package/dist/src/mobile/components/BasicListItem/Contents.js +31 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/Badge.d.ts +7 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/Badge.js +27 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/Checkbox.d.ts +6 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/Checkbox.js +19 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/Icon.d.ts +8 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/Icon.js +19 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/Image.d.ts +8 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/Image.js +9 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/LeftBox.d.ts +17 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/LeftBox.js +42 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/Radio.d.ts +9 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/Radio.js +13 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/index.d.ts +2 -0
- package/dist/src/mobile/components/BasicListItem/LeftBox/index.js +8 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/Description.d.ts +8 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/Description.js +10 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.d.ts +9 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.js +19 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/MainButton.d.ts +9 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/MainButton.js +10 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/RightBox.d.ts +15 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/RightBox.js +40 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/Switch.d.ts +10 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/Switch.js +19 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/index.d.ts +2 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/index.js +8 -0
- package/package.json +4 -2
- package/release-note.md +8 -8
|
@@ -743,5 +743,6 @@
|
|
|
743
743
|
"ui_94": "sys_storyboard_card_base_red01",
|
|
744
744
|
"ui_95": "sys_storyboard_card_base_green01",
|
|
745
745
|
"ui_cpnt_icon_sys_brandsecondary_variant": "sys_brand_secondary_variant",
|
|
746
|
-
"ui_96": "sys_component_base_10"
|
|
746
|
+
"ui_96": "sys_component_base_10",
|
|
747
|
+
"ui_97": "sys_component_base_black"
|
|
747
748
|
}
|
|
@@ -102,7 +102,7 @@ declare const colorSet: {
|
|
|
102
102
|
blue30: string;
|
|
103
103
|
red30: string;
|
|
104
104
|
};
|
|
105
|
-
readonly
|
|
105
|
+
readonly PaletteColor_Dark: {
|
|
106
106
|
sys_container_background_01: string;
|
|
107
107
|
sys_container_background_02: string;
|
|
108
108
|
sys_container_background_03: string;
|
|
@@ -384,7 +384,7 @@ declare const colorSet: {
|
|
|
384
384
|
sys_storyboard_card_base_green01: string;
|
|
385
385
|
sys_brand_secondary_variant: string;
|
|
386
386
|
};
|
|
387
|
-
readonly
|
|
387
|
+
readonly PaletteColor_light: {
|
|
388
388
|
sys_container_background_01: string;
|
|
389
389
|
sys_container_background_02: string;
|
|
390
390
|
sys_container_background_03: string;
|
|
@@ -1412,6 +1412,7 @@ declare const colorSet: {
|
|
|
1412
1412
|
ui_95: string;
|
|
1413
1413
|
ui_cpnt_icon_sys_brandsecondary_variant: string;
|
|
1414
1414
|
ui_96: string;
|
|
1415
|
+
ui_97: string;
|
|
1415
1416
|
};
|
|
1416
1417
|
};
|
|
1417
1418
|
export default colorSet;
|
|
@@ -5,13 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
/* eslint-disable import/order */
|
|
7
7
|
var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
|
|
8
|
-
var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.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
12
|
SemanticColor: SemanticColor_json_1.default,
|
|
13
|
-
PaletteColor_light: PaletteColor_light_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;
|
|
@@ -72,7 +72,7 @@ function AdminList(_a) {
|
|
|
72
72
|
}
|
|
73
73
|
if (!selectedIds.length) {
|
|
74
74
|
checkboxMethods.reset();
|
|
75
|
-
selectAllMethods.
|
|
75
|
+
selectAllMethods.setValue(headerRowCheckboxName, false);
|
|
76
76
|
if (maintainIds === null || maintainIds === void 0 ? void 0 : maintainIds.length) {
|
|
77
77
|
setIsBulkActionBarOpen(true);
|
|
78
78
|
maintainIds.forEach(function (id) { return checkboxMethods.setValue(id.toString(), true); });
|
|
@@ -46,6 +46,7 @@ export declare type StyleProps = {
|
|
|
46
46
|
hasOnClick?: boolean;
|
|
47
47
|
spacingMode?: 'none' | 'use';
|
|
48
48
|
onlyLeftArea?: boolean;
|
|
49
|
+
dividerType?: 'none' | 'solid';
|
|
49
50
|
};
|
|
50
51
|
declare function BasicListItem({ selectionMode, titleText, titleTextColorTheme, descText, badgeMode, badgeStatus, imageIconMode, imageShapeType, imageSrc, iconName, iconFillType, displayType, captionText, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, mBtnFillType, mBtnText, dividerType, titleFontWeight, checkboxId, radioId, radioValue, switchName, switchState, switchStatus, spacingMode, onClick, onClickIBtn1, onClickIBtn2, onClickMBtn, onClickRadio, onClickSwitch }: BasicListItemProps): JSX.Element;
|
|
51
52
|
export default BasicListItem;
|
|
@@ -21,51 +21,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
21
21
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
22
22
|
var react_hook_form_1 = require("react-hook-form");
|
|
23
23
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var MainButton_1 = require("../MainButton");
|
|
28
|
-
var Radio_1 = require("../Radio");
|
|
29
|
-
var TextLabel_1 = require("../TextLabel");
|
|
24
|
+
var Contents_1 = __importDefault(require("./Contents"));
|
|
25
|
+
var LeftBox_1 = require("./LeftBox");
|
|
26
|
+
var RightBox_1 = require("./RightBox");
|
|
30
27
|
function BasicListItem(_a) {
|
|
31
28
|
var _b = _a.selectionMode, selectionMode = _b === void 0 ? 'none' : _b, titleText = _a.titleText, _c = _a.titleTextColorTheme, titleTextColorTheme = _c === void 0 ? 'none' : _c, descText = _a.descText, _d = _a.badgeMode, badgeMode = _d === void 0 ? 'none' : _d, _e = _a.badgeStatus, badgeStatus = _e === void 0 ? 'inactive' : _e, _f = _a.imageIconMode, imageIconMode = _f === void 0 ? 'none' : _f, _g = _a.imageShapeType, imageShapeType = _g === void 0 ? 'round' : _g, imageSrc = _a.imageSrc, iconName = _a.iconName, _h = _a.iconFillType, iconFillType = _h === void 0 ? 'line' : _h, _j = _a.displayType, displayType = _j === void 0 ? 'none' : _j, captionText = _a.captionText, iBtn1IconName = _a.iBtn1IconName, _k = _a.iBtn1IconFillType, iBtn1IconFillType = _k === void 0 ? 'line' : _k, iBtn2IconName = _a.iBtn2IconName, _l = _a.iBtn2IconFillType, iBtn2IconFillType = _l === void 0 ? 'line' : _l, _m = _a.mBtnFillType, mBtnFillType = _m === void 0 ? 'fill' : _m, mBtnText = _a.mBtnText, _o = _a.dividerType, dividerType = _o === void 0 ? 'none' : _o, _p = _a.titleFontWeight, titleFontWeight = _p === void 0 ? 'regular' : _p, checkboxId = _a.checkboxId, radioId = _a.radioId, radioValue = _a.radioValue, switchName = _a.switchName, _q = _a.switchState, switchState = _q === void 0 ? 'normal' : _q, _r = _a.switchStatus, switchStatus = _r === void 0 ? 'off' : _r, _s = _a.spacingMode, spacingMode = _s === void 0 ? 'use' : _s, onClick = _a.onClick, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onClickMBtn = _a.onClickMBtn, onClickRadio = _a.onClickRadio, onClickSwitch = _a.onClickSwitch;
|
|
32
29
|
var methods = (0, react_hook_form_1.useFormContext)();
|
|
33
30
|
var isSelected = methods === null || methods === void 0 ? void 0 : methods.watch((checkboxId === null || checkboxId === void 0 ? void 0 : checkboxId.toString()) || '');
|
|
34
|
-
var onlyLeftArea = displayType === 'none';
|
|
35
|
-
var handleCheckBoxClick = function (e) {
|
|
36
|
-
e.preventDefault();
|
|
37
|
-
if (!checkboxId) {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
var checkedStatus = methods.getValues(checkboxId.toString());
|
|
41
|
-
methods.setValue(checkboxId.toString(), !checkedStatus);
|
|
42
|
-
};
|
|
43
|
-
var handleMBtnClick = function () {
|
|
44
|
-
if (onClickMBtn) {
|
|
45
|
-
onClickMBtn();
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
31
|
var handleIBtn1Click = function (e) {
|
|
49
32
|
e.stopPropagation();
|
|
50
33
|
if (onClickIBtn1) {
|
|
51
34
|
onClickIBtn1();
|
|
52
35
|
}
|
|
53
36
|
};
|
|
54
|
-
var handleIBtn2Click = function () {
|
|
55
|
-
if (onClickIBtn2) {
|
|
56
|
-
onClickIBtn2();
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
var handleSwitchClick = function () {
|
|
60
|
-
if (onClickSwitch) {
|
|
61
|
-
onClickSwitch();
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
var handleRadioClick = function (e) {
|
|
65
|
-
if (onClickRadio) {
|
|
66
|
-
onClickRadio(e.target.value);
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
37
|
var handleClick = function (e) {
|
|
70
38
|
switch (selectionMode) {
|
|
71
39
|
case 'radio': {
|
|
@@ -96,38 +64,7 @@ function BasicListItem(_a) {
|
|
|
96
64
|
}
|
|
97
65
|
}
|
|
98
66
|
};
|
|
99
|
-
|
|
100
|
-
if (spacingMode !== value || selectionMode !== value) {
|
|
101
|
-
return true;
|
|
102
|
-
}
|
|
103
|
-
return false;
|
|
104
|
-
};
|
|
105
|
-
var isImageIconLeftSpacingChecker = function (value) {
|
|
106
|
-
if (selectionMode !== value ||
|
|
107
|
-
badgeMode !== value ||
|
|
108
|
-
(selectionMode === value && badgeMode === value && spacingMode !== value)) {
|
|
109
|
-
return true;
|
|
110
|
-
}
|
|
111
|
-
return false;
|
|
112
|
-
};
|
|
113
|
-
var isTextLabelLeftSpacingChecker = function (value) {
|
|
114
|
-
if (selectionMode !== value ||
|
|
115
|
-
badgeMode !== value ||
|
|
116
|
-
imageIconMode !== value ||
|
|
117
|
-
(selectionMode && badgeMode && imageIconMode && spacingMode) !== value) {
|
|
118
|
-
return true;
|
|
119
|
-
}
|
|
120
|
-
return false;
|
|
121
|
-
};
|
|
122
|
-
var isRightSpacingChecker = function (value) {
|
|
123
|
-
if (spacingMode === value) {
|
|
124
|
-
return false;
|
|
125
|
-
}
|
|
126
|
-
return true;
|
|
127
|
-
};
|
|
128
|
-
return ((0, jsx_runtime_1.jsxs)(S_BasicListItem, __assign({ "x-pds-name": "BasicListItem", "x-pds-element-type": "component", "x-pds-device-type": "desktop", displayType: displayType, selectionMode: selectionMode, isSelected: isSelected, onClick: handleClick, hasOnClick: !!onClick, spacingMode: spacingMode }, { children: [(0, jsx_runtime_1.jsxs)(S_BasicListItemBox, __assign({ imageIconMode: imageIconMode, captionText: captionText, spacingMode: spacingMode }, { children: [(0, jsx_runtime_1.jsxs)(S_LeftBox, __assign({ onlyLeftArea: onlyLeftArea }, { children: [selectionMode !== 'none' && ((0, jsx_runtime_1.jsxs)(S_SelectionBoxWrapper, __assign({ selectionMode: selectionMode }, { children: [selectionMode === 'check' && checkboxId && ((0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { name: checkboxId.toString(), state: "normal", onChange: handleCheckBoxClick }, void 0)), selectionMode === 'radio' && radioValue && radioId && ((0, jsx_runtime_1.jsx)(Radio_1.Radio, { name: radioId, value: radioValue, onChange: handleRadioClick, checked: radioId === radioValue }, void 0))] }), void 0)), badgeMode === 'left' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isBadgeLeftSpacingChecker('none') && ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)), (0, jsx_runtime_1.jsx)(S_Badge, { badgeStatus: badgeStatus }, void 0)] }, void 0)), imageIconMode === 'image' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isImageIconLeftSpacingChecker('none') && ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)), (0, jsx_runtime_1.jsx)(hybrid_1.ImageView, { width: 40, height: 40, src: imageSrc, scaleType: "cover", shapeType: imageShapeType }, void 0)] }, void 0)), imageIconMode === 'icon' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isImageIconLeftSpacingChecker('none') && ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)), (0, jsx_runtime_1.jsx)(S_IconWrapper, { children: (0, jsx_runtime_1.jsx)(hybrid_1.Icon, { iconName: iconName, fillType: iconFillType, size: 24, colorKey: "ui_cpnt_list_icon_02" }, void 0) }, void 0)] }, void 0)), isTextLabelLeftSpacingChecker('none') && ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)), (0, jsx_runtime_1.jsxs)(S_TextBox, { children: [(0, jsx_runtime_1.jsx)(S_TextWrapper, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: titleText, colorTheme: titleTextColorTheme === 'none' ? 'sysTextPrimary' : 'sysTextError', styleTheme: titleFontWeight === 'bold' ? 'body2Bold' : 'body2Regular', singleLineMode: "use", ellipsisMode: "use", lineLimit: 1 }, void 0) }, void 0), captionText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a" }, void 0), (0, jsx_runtime_1.jsx)(S_TextWrapper, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: captionText, colorTheme: "sysTextTertiary", styleTheme: "caption1Regular", textAlign: "left", singleLineMode: "use", ellipsisMode: "use", lineLimit: 1 }, void 0) }, void 0)] }, void 0))] }, void 0)] }), void 0), (0, jsx_runtime_1.jsxs)(S_RightBox, __assign({ displayType: displayType }, { children: [(displayType === 'text' || displayType === 'ibtn_text') && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: descText, colorTheme: "sysTextSecondary", styleTheme: "caption1Regular", textAlign: "right", singleLineMode: "use", ellipsisMode: "use", lineLimit: 1 }, void 0), isRightSpacingChecker('none') && (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)] }, void 0)), (displayType === 'ibtn_amount1' ||
|
|
129
|
-
displayType === 'ibtn_amount2' ||
|
|
130
|
-
displayType === 'ibtn_text') && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [displayType === 'ibtn_amount2' && ((0, jsx_runtime_1.jsx)(S_IconWrapper, { children: iBtn2IconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: iBtn2IconName, iconFillType: iBtn2IconFillType, baseSize: "medium", iconSize: 20, shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: handleIBtn2Click, iconColorKey: "ui_cpnt_button_icon_default" }, void 0)) }, void 0)), (0, jsx_runtime_1.jsx)(S_IconWrapper, { children: iBtn1IconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: iBtn1IconName, iconFillType: iBtn1IconFillType, baseSize: "medium", iconSize: 20, shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: handleIBtn1Click, iconColorKey: "ui_cpnt_button_icon_default" }, void 0)) }, void 0)] }, void 0)), displayType === 'mbtn' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(MainButton_1.MainButton, { text: mBtnText, fillType: mBtnFillType, size: "small", onClick: handleMBtnClick }, void 0), isRightSpacingChecker('none') && (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)] }, void 0)), displayType === 'switch' && switchName && ((0, jsx_runtime_1.jsxs)(S_SwitchWrapper, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Switch, { name: switchName, onClick: handleSwitchClick, state: switchState, status: switchStatus }, void 0), isRightSpacingChecker('none') && (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)] }, void 0))] }), void 0)] }), void 0), (0, jsx_runtime_1.jsx)(S_DividerWrapper, __assign({ spacingMode: spacingMode }, { children: dividerType === 'solid' && (0, jsx_runtime_1.jsx)(hybrid_1.Divider, { direction: "horizontal", displayType: "line" }, void 0) }), void 0)] }), void 0));
|
|
67
|
+
return ((0, jsx_runtime_1.jsx)(S_BasicListItem, __assign({ "x-pds-name": "BasicListItem", "x-pds-element-type": "component", "x-pds-device-type": "desktop", displayType: displayType, selectionMode: selectionMode, isSelected: isSelected, onClick: handleClick, hasOnClick: !!onClick, spacingMode: spacingMode }, { children: (0, jsx_runtime_1.jsxs)(S_BasicListItemBox, __assign({ imageIconMode: imageIconMode, captionText: captionText, spacingMode: spacingMode, dividerType: dividerType }, { children: [(0, jsx_runtime_1.jsxs)(LeftBox_1.LeftBox, __assign({ hasRightBox: displayType !== 'none' }, { children: [selectionMode === 'check' && checkboxId && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Checkbox, { id: checkboxId }, void 0), selectionMode === 'radio' && radioValue && radioId && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Radio, { id: radioId, value: radioValue, onChange: onClickRadio }, void 0)), badgeMode === 'left' && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Badge, { status: badgeStatus }, void 0), imageIconMode === 'image' && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Image, { src: imageSrc, shape: imageShapeType }, void 0), imageIconMode === 'icon' && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Icon, { name: iconName, fill: iconFillType === 'fill' }, void 0)), (0, jsx_runtime_1.jsxs)(Contents_1.default, { children: [(0, jsx_runtime_1.jsx)(Contents_1.default.Title, { text: titleText, colorTheme: titleTextColorTheme === 'none' ? 'sysTextPrimary' : 'sysTextError', font: titleFontWeight === 'bold' ? 'body2Bold' : 'body2Regular' }, void 0), (0, jsx_runtime_1.jsx)(Contents_1.default.Caption, { text: captionText }, void 0)] }, void 0)] }), void 0), (0, jsx_runtime_1.jsxs)(RightBox_1.RightBox, __assign({ hasFixedHeight: displayType === 'text' }, { children: [(displayType === 'text' || displayType === 'ibtn_text') && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.Description, { text: descText, icon: displayType === 'ibtn_text' ? ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click }, void 0)) : undefined }, void 0)), displayType === 'ibtn_amount1' && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click }, void 0)), displayType === 'ibtn_amount2' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn2IconName, fill: iBtn2IconFillType === 'fill', onClick: onClickIBtn2 }, void 0), (0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click }, void 0)] }, void 0)), displayType === 'mbtn' && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.MainButton, { text: mBtnText, fill: mBtnFillType === 'fill', onClick: onClickMBtn }, void 0)), displayType === 'switch' && switchName && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.Switch, { name: switchName, state: switchState, status: switchStatus, onClick: onClickSwitch }, void 0))] }), void 0)] }), void 0) }), void 0));
|
|
131
68
|
}
|
|
132
69
|
var S_BasicListItem = styled_components_1.default.li(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n cursor: ", ";\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n padding: ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n cursor: ", ";\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n padding: ", ";\n"])), function (_a) {
|
|
133
70
|
var theme = _a.theme, isSelected = _a.isSelected;
|
|
@@ -145,40 +82,14 @@ var S_BasicListItem = styled_components_1.default.li(templateObject_1 || (templa
|
|
|
145
82
|
return 'default';
|
|
146
83
|
}, function (_a) {
|
|
147
84
|
var spacingMode = _a.spacingMode, theme = _a.theme;
|
|
148
|
-
return spacingMode === 'use' && "0 " + theme.spacing.
|
|
85
|
+
return spacingMode === 'use' && "0 " + theme.spacing.spacingE;
|
|
149
86
|
});
|
|
150
|
-
var S_BasicListItemBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n
|
|
87
|
+
var S_BasicListItemBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n border-bottom: ", ";\n display: flex;\n height: ", ";\n width: 100%;\n"], ["\n align-items: center;\n border-bottom: ", ";\n display: flex;\n height: ", ";\n width: 100%;\n"])), function (_a) {
|
|
88
|
+
var dividerType = _a.dividerType, theme = _a.theme;
|
|
89
|
+
return dividerType === 'solid' && "1px solid " + theme.ui_cpnt_divider;
|
|
90
|
+
}, function (_a) {
|
|
151
91
|
var imageIconMode = _a.imageIconMode, captionText = _a.captionText;
|
|
152
92
|
return imageIconMode === 'image' || captionText ? '80px' : '56px';
|
|
153
|
-
}, function (_a) {
|
|
154
|
-
var spacingMode = _a.spacingMode, theme = _a.theme;
|
|
155
|
-
return spacingMode === 'use' && "0 " + theme.spacing.spacingC;
|
|
156
|
-
});
|
|
157
|
-
var S_LeftBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex: ", ";\n width: 100%;\n"], ["\n align-items: center;\n display: flex;\n flex: ", ";\n width: 100%;\n"])), function (_a) {
|
|
158
|
-
var onlyLeftArea = _a.onlyLeftArea;
|
|
159
|
-
return (onlyLeftArea ? 'auto' : 7);
|
|
160
|
-
});
|
|
161
|
-
var S_SelectionBoxWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 40px;\n justify-content: center;\n width: 40px;\n"], ["\n align-items: center;\n display: flex;\n height: 40px;\n justify-content: center;\n width: 40px;\n"])));
|
|
162
|
-
var S_IconWrapper = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n justify-content: center;\n"], ["\n align-items: center;\n display: flex;\n justify-content: center;\n"])));
|
|
163
|
-
var S_TextBox = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n"], ["\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n"])));
|
|
164
|
-
var S_TextWrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n justify-content: center;\n"], ["\n justify-content: center;\n"])));
|
|
165
|
-
var S_Badge = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 8px;\n height: 8px;\n min-width: 8px;\n"], ["\n background-color: ", ";\n border-radius: 8px;\n height: 8px;\n min-width: 8px;\n"])), function (_a) {
|
|
166
|
-
var badgeStatus = _a.badgeStatus, theme = _a.theme;
|
|
167
|
-
return badgeStatus &&
|
|
168
|
-
{
|
|
169
|
-
cancel: "" + theme.ui_cpnt_list_badge_cancel,
|
|
170
|
-
active: "" + theme.ui_cpnt_list_badge_active_primary,
|
|
171
|
-
inactive: "" + theme.ui_cpnt_list_badge_disabled
|
|
172
|
-
}[badgeStatus];
|
|
173
|
-
});
|
|
174
|
-
var S_RightBox = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex: 3;\n height: ", ";\n justify-content: flex-end;\n"], ["\n align-items: center;\n display: flex;\n flex: 3;\n height: ", ";\n justify-content: flex-end;\n"])), function (_a) {
|
|
175
|
-
var displayType = _a.displayType;
|
|
176
|
-
return (displayType === 'text' ? '40px' : 'auto');
|
|
177
|
-
});
|
|
178
|
-
var S_SwitchWrapper = styled_components_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n min-height: 32px;\n min-width: 68px;\n position: relative;\n right: 0;\n"], ["\n display: flex;\n justify-content: flex-end;\n min-height: 32px;\n min-width: 68px;\n position: relative;\n right: 0;\n"])));
|
|
179
|
-
var S_DividerWrapper = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n width: ", ";\n"], ["\n width: ", ";\n"])), function (_a) {
|
|
180
|
-
var spacingMode = _a.spacingMode;
|
|
181
|
-
return (spacingMode !== 'none' ? 'calc(100% - 24px)' : '100%');
|
|
182
93
|
});
|
|
183
94
|
exports.default = BasicListItem;
|
|
184
|
-
var templateObject_1, templateObject_2
|
|
95
|
+
var templateObject_1, templateObject_2;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { PDSTextType } from '../../../common/types';
|
|
3
|
+
declare type ContentsPropTypes = React.FunctionComponent & {
|
|
4
|
+
Title: React.FC<TitlePropTypes>;
|
|
5
|
+
Caption: React.FC<CaptionPropTypes>;
|
|
6
|
+
};
|
|
7
|
+
declare type TitlePropTypes = {
|
|
8
|
+
text: PDSTextType;
|
|
9
|
+
colorTheme: 'sysTextPrimary' | 'sysTextSecondary' | 'sysTextTertiary' | 'sysTextWhite' | 'sysTextBlack' | 'sysTextError' | 'sysTextWarning' | 'sysTextBrandPrimary' | 'sysTextBrandSeconVariant' | 'usrTextBrandPrimary' | 'usrTextBrandSeconVariant' | 'usrTextBrandOnPrimary';
|
|
10
|
+
font: 'body2Bold' | 'body2Regular';
|
|
11
|
+
};
|
|
12
|
+
declare type CaptionPropTypes = {
|
|
13
|
+
text: PDSTextType;
|
|
14
|
+
};
|
|
15
|
+
declare const Contents: ContentsPropTypes;
|
|
16
|
+
export default Contents;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
+
var components_1 = require("../../../hybrid/components");
|
|
12
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
13
|
+
var TextLabel_1 = require("../TextLabel");
|
|
14
|
+
var Contents = function (_a) {
|
|
15
|
+
var children = _a.children;
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)(S_TextBox, { children: children }, void 0));
|
|
17
|
+
};
|
|
18
|
+
var Title = function (_a) {
|
|
19
|
+
var text = _a.text, colorTheme = _a.colorTheme, font = _a.font;
|
|
20
|
+
return ((0, jsx_runtime_1.jsx)(S_TextWrapper, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, colorTheme: colorTheme, styleTheme: font, singleLineMode: "use", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }, void 0) }, void 0));
|
|
21
|
+
};
|
|
22
|
+
var Caption = function (_a) {
|
|
23
|
+
var text = _a.text;
|
|
24
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_a" }, void 0), (0, jsx_runtime_1.jsx)(S_TextWrapper, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, colorTheme: "sysTextTertiary", styleTheme: "caption1Regular", textAlign: "left", singleLineMode: "use", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }, void 0) }, void 0)] }, void 0));
|
|
25
|
+
};
|
|
26
|
+
var S_TextBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n"], ["\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n"])));
|
|
27
|
+
var S_TextWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n justify-content: center;\n width: 100%;\n"], ["\n justify-content: center;\n width: 100%;\n"])));
|
|
28
|
+
Contents.Title = Title;
|
|
29
|
+
Contents.Caption = Caption;
|
|
30
|
+
exports.default = Contents;
|
|
31
|
+
var templateObject_1, templateObject_2;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
+
var components_1 = require("../../../../hybrid/components");
|
|
12
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
13
|
+
var Badge = function (_a) {
|
|
14
|
+
var status = _a.status;
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(S_Badge, { status: status }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)] }, void 0));
|
|
16
|
+
};
|
|
17
|
+
var S_Badge = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 8px;\n height: 8px;\n min-width: 8px;\n"], ["\n background-color: ", ";\n border-radius: 8px;\n height: 8px;\n min-width: 8px;\n"])), function (_a) {
|
|
18
|
+
var status = _a.status, theme = _a.theme;
|
|
19
|
+
return status &&
|
|
20
|
+
{
|
|
21
|
+
cancel: "" + theme.ui_cpnt_list_badge_cancel,
|
|
22
|
+
active: "" + theme.ui_cpnt_list_badge_active_primary,
|
|
23
|
+
inactive: "" + theme.ui_cpnt_list_badge_disabled
|
|
24
|
+
}[status];
|
|
25
|
+
});
|
|
26
|
+
exports.default = Badge;
|
|
27
|
+
var templateObject_1;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
var react_hook_form_1 = require("react-hook-form");
|
|
5
|
+
var components_1 = require("../../../../hybrid/components");
|
|
6
|
+
var Checkbox_1 = require("../../Checkbox");
|
|
7
|
+
var Checkbox = function (_a) {
|
|
8
|
+
var id = _a.id;
|
|
9
|
+
var methods = (0, react_hook_form_1.useFormContext)();
|
|
10
|
+
var handleCheckboxClick = function (e) {
|
|
11
|
+
e.preventDefault();
|
|
12
|
+
if (!id)
|
|
13
|
+
return;
|
|
14
|
+
var checkedStatus = methods.getValues(id.toString());
|
|
15
|
+
methods.setValue(id.toString(), !checkedStatus);
|
|
16
|
+
};
|
|
17
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { name: id.toString(), state: "normal", onChange: handleCheckboxClick }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_e", spacingType: "width" }, void 0)] }, void 0));
|
|
18
|
+
};
|
|
19
|
+
exports.default = Checkbox;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
+
var components_1 = require("../../../../hybrid/components");
|
|
12
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
13
|
+
var Icon = function (_a) {
|
|
14
|
+
var name = _a.name, fill = _a.fill;
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(S_IconWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: name, fillType: fill ? 'fill' : 'line', size: 24, colorKey: "ui_cpnt_list_icon_02" }, void 0) }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)] }, void 0));
|
|
16
|
+
};
|
|
17
|
+
var S_IconWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n justify-content: center;\n"], ["\n align-items: center;\n display: flex;\n justify-content: center;\n"])));
|
|
18
|
+
exports.default = Icon;
|
|
19
|
+
var templateObject_1;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BasicListItemProps } from '../BasicListItem';
|
|
3
|
+
export declare type ImagePropTypes = {
|
|
4
|
+
src: BasicListItemProps['imageSrc'];
|
|
5
|
+
shape: BasicListItemProps['imageShapeType'];
|
|
6
|
+
};
|
|
7
|
+
declare const Image: React.FC<ImagePropTypes>;
|
|
8
|
+
export default Image;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
var components_1 = require("../../../../hybrid/components");
|
|
5
|
+
var Image = function (_a) {
|
|
6
|
+
var src = _a.src, shape = _a.shape;
|
|
7
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.ImageView, { width: 40, height: 40, src: src, scaleType: "cover", shapeType: shape }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)] }, void 0));
|
|
8
|
+
};
|
|
9
|
+
exports.default = Image;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BadgePropTypes } from './Badge';
|
|
3
|
+
import type { CheckboxPropTypes } from './Checkbox';
|
|
4
|
+
import type { IconPropTypes } from './Icon';
|
|
5
|
+
import type { ImagePropTypes } from './Image';
|
|
6
|
+
import type { RadioPropTypes } from './Radio';
|
|
7
|
+
declare type LeftBoxPropTypes = React.FunctionComponent<{
|
|
8
|
+
hasRightBox: boolean;
|
|
9
|
+
}> & {
|
|
10
|
+
Checkbox: React.FC<CheckboxPropTypes>;
|
|
11
|
+
Radio: React.FC<RadioPropTypes>;
|
|
12
|
+
Badge: React.FC<BadgePropTypes>;
|
|
13
|
+
Image: React.FC<ImagePropTypes>;
|
|
14
|
+
Icon: React.FC<IconPropTypes>;
|
|
15
|
+
};
|
|
16
|
+
declare const LeftBox: LeftBoxPropTypes;
|
|
17
|
+
export default LeftBox;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
22
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
23
|
+
var Badge_1 = __importDefault(require("./Badge"));
|
|
24
|
+
var Checkbox_1 = __importDefault(require("./Checkbox"));
|
|
25
|
+
var Icon_1 = __importDefault(require("./Icon"));
|
|
26
|
+
var Image_1 = __importDefault(require("./Image"));
|
|
27
|
+
var Radio_1 = __importDefault(require("./Radio"));
|
|
28
|
+
var LeftBox = function (_a) {
|
|
29
|
+
var children = _a.children, hasRightBox = _a.hasRightBox;
|
|
30
|
+
return ((0, jsx_runtime_1.jsx)(S_LeftBox, __assign({ hasRightBox: hasRightBox }, { children: children }), void 0));
|
|
31
|
+
};
|
|
32
|
+
var S_LeftBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex: ", ";\n width: 100%;\n"], ["\n align-items: center;\n display: flex;\n flex: ", ";\n width: 100%;\n"])), function (_a) {
|
|
33
|
+
var hasRightBox = _a.hasRightBox;
|
|
34
|
+
return (hasRightBox ? 7 : 'auto');
|
|
35
|
+
});
|
|
36
|
+
LeftBox.Checkbox = Checkbox_1.default;
|
|
37
|
+
LeftBox.Radio = Radio_1.default;
|
|
38
|
+
LeftBox.Badge = Badge_1.default;
|
|
39
|
+
LeftBox.Image = Image_1.default;
|
|
40
|
+
LeftBox.Icon = Icon_1.default;
|
|
41
|
+
exports.default = LeftBox;
|
|
42
|
+
var templateObject_1;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BasicListItemProps } from '../BasicListItem';
|
|
3
|
+
export declare type RadioPropTypes = {
|
|
4
|
+
id: string;
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: BasicListItemProps['onClickRadio'];
|
|
7
|
+
};
|
|
8
|
+
declare const Radio: React.FC<RadioPropTypes>;
|
|
9
|
+
export default Radio;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
var components_1 = require("../../../../hybrid/components");
|
|
5
|
+
var Radio_1 = require("../../Radio");
|
|
6
|
+
var Radio = function (_a) {
|
|
7
|
+
var id = _a.id, value = _a.value, onChange = _a.onChange;
|
|
8
|
+
var handleRadioClick = function (e) {
|
|
9
|
+
onChange && onChange(e.target.value);
|
|
10
|
+
};
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Radio_1.Radio, { name: id, value: value, onChange: handleRadioClick, checked: id === value }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)] }, void 0));
|
|
12
|
+
};
|
|
13
|
+
exports.default = Radio;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.LeftBox = void 0;
|
|
7
|
+
var LeftBox_1 = __importDefault(require("./LeftBox"));
|
|
8
|
+
exports.LeftBox = LeftBox_1.default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { PDSTextType } from '../../../../common/types';
|
|
3
|
+
export declare type DescriptionPropTypes = {
|
|
4
|
+
text: PDSTextType;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
declare const Description: React.FC<DescriptionPropTypes>;
|
|
8
|
+
export default Description;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
var components_1 = require("../../../../hybrid/components");
|
|
5
|
+
var TextLabel_1 = require("../../TextLabel");
|
|
6
|
+
var Description = function (_a) {
|
|
7
|
+
var text = _a.text, icon = _a.icon;
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, colorTheme: "sysTextSecondary", styleTheme: "caption1Regular", textAlign: "right", singleLineMode: "use", ellipsisMode: "use", lineLimit: 1 }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0), icon && icon] }, void 0));
|
|
9
|
+
};
|
|
10
|
+
exports.default = Description;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BasicListItemProps } from '../BasicListItem';
|
|
3
|
+
export declare type IconButtonPropTypes = {
|
|
4
|
+
iconName: BasicListItemProps['iBtn2IconName'];
|
|
5
|
+
fill: boolean;
|
|
6
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
7
|
+
};
|
|
8
|
+
declare const IconButton: React.FC<IconButtonPropTypes>;
|
|
9
|
+
export default IconButton;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
+
var IconButton_1 = require("../../IconButton");
|
|
13
|
+
var IconButton = function (_a) {
|
|
14
|
+
var iconName = _a.iconName, fill = _a.fill, onClick = _a.onClick;
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)(S_IconWrapper, { children: iconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: iconName, iconFillType: fill ? 'fill' : 'line', baseSize: "medium", iconSize: 20, shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: onClick, iconColorKey: "ui_cpnt_button_icon_default" }, void 0)) }, void 0));
|
|
16
|
+
};
|
|
17
|
+
var S_IconWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n justify-content: center;\n"], ["\n align-items: center;\n display: flex;\n justify-content: center;\n"])));
|
|
18
|
+
exports.default = IconButton;
|
|
19
|
+
var templateObject_1;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BasicListItemProps } from '../BasicListItem';
|
|
3
|
+
export declare type MainButtonPropTypes = {
|
|
4
|
+
text: BasicListItemProps['mBtnText'];
|
|
5
|
+
fill: boolean;
|
|
6
|
+
onClick: BasicListItemProps['onClickMBtn'];
|
|
7
|
+
};
|
|
8
|
+
declare const MainButton: React.FC<MainButtonPropTypes>;
|
|
9
|
+
export default MainButton;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
var components_1 = require("../../../../hybrid/components");
|
|
5
|
+
var MainButton_1 = require("../../MainButton");
|
|
6
|
+
var MainButton = function (_a) {
|
|
7
|
+
var text = _a.text, fill = _a.fill, onClick = _a.onClick;
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(MainButton_1.MainButton, { text: text, fillType: fill ? 'fill' : 'line', size: "small", onClick: onClick }, void 0), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_c", spacingType: "width" }, void 0)] }, void 0));
|
|
9
|
+
};
|
|
10
|
+
exports.default = MainButton;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { DescriptionPropTypes } from './Description';
|
|
3
|
+
import type { IconButtonPropTypes } from './IconButton';
|
|
4
|
+
import type { MainButtonPropTypes } from './MainButton';
|
|
5
|
+
import type { SwitchPropTypes } from './Switch';
|
|
6
|
+
declare type RightBoxPropTypes = React.FunctionComponent<{
|
|
7
|
+
hasFixedHeight: boolean;
|
|
8
|
+
}> & {
|
|
9
|
+
Description: React.FC<DescriptionPropTypes>;
|
|
10
|
+
IconButton: React.FC<IconButtonPropTypes>;
|
|
11
|
+
MainButton: React.FC<MainButtonPropTypes>;
|
|
12
|
+
Switch: React.FC<SwitchPropTypes>;
|
|
13
|
+
};
|
|
14
|
+
declare const RightBox: RightBoxPropTypes;
|
|
15
|
+
export default RightBox;
|