pds-dev-kit-web 2.2.168 → 2.2.170
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/desktop/components/BasicListItem/BasicListItem.d.ts +2 -1
- package/dist/src/desktop/components/BasicListItem/BasicListItem.js +11 -2
- package/dist/src/desktop/components/BasicListItem/Contents.d.ts +3 -1
- package/dist/src/desktop/components/BasicListItem/Contents.js +2 -2
- package/dist/src/mobile/components/BasicListItem/BasicListItem.d.ts +2 -1
- package/dist/src/mobile/components/BasicListItem/BasicListItem.js +11 -2
- package/dist/src/mobile/components/BasicListItem/Contents.d.ts +3 -1
- package/dist/src/mobile/components/BasicListItem/Contents.js +2 -2
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +1 -1
- package/package.json +1 -1
- package/release-note.md +2 -2
|
@@ -15,6 +15,7 @@ export type BasicListItemProps = {
|
|
|
15
15
|
iconFillType?: 'fill' | 'line';
|
|
16
16
|
displayType?: 'none' | 'text' | 'ibtn_text' | 'ibtn_amount1' | 'ibtn_amount2' | 'mbtn' | 'switch';
|
|
17
17
|
captionText?: PDSTextType;
|
|
18
|
+
captionTextColorTheme?: 'none' | 'active' | 'inactive';
|
|
18
19
|
iBtn1IconName?: PDSIconType;
|
|
19
20
|
iBtn1IconFillType?: 'fill' | 'line';
|
|
20
21
|
iBtn2IconName?: PDSIconType;
|
|
@@ -51,5 +52,5 @@ export type StyleProps = {
|
|
|
51
52
|
onlyLeftArea?: boolean;
|
|
52
53
|
dividerType?: 'none' | 'solid';
|
|
53
54
|
};
|
|
54
|
-
declare function BasicListItem({ selectionMode, state, titleText, titleTextColorTheme, descText, badgeMode, badgeStatus, imageIconMode, imageShapeType, imageSrc, iconName, iconFillType, displayType, captionText, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, mBtnFillType, mBtnText, mBtnState, dividerType, titleFontWeight, checkboxId, radioId, radioValue, switchName, switchState, switchStatus, spacingMode, onClick, onClickIBtn1, onClickIBtn2, onClickMBtn, onClickRadio, onClickSwitch }: BasicListItemProps): JSX.Element;
|
|
55
|
+
declare function BasicListItem({ selectionMode, state, titleText, titleTextColorTheme, descText, badgeMode, badgeStatus, imageIconMode, imageShapeType, imageSrc, iconName, iconFillType, displayType, captionText, captionTextColorTheme, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, mBtnFillType, mBtnText, mBtnState, dividerType, titleFontWeight, checkboxId, radioId, radioValue, switchName, switchState, switchStatus, spacingMode, onClick, onClickIBtn1, onClickIBtn2, onClickMBtn, onClickRadio, onClickSwitch }: BasicListItemProps): JSX.Element;
|
|
55
56
|
export default BasicListItem;
|
|
@@ -25,7 +25,7 @@ var Contents_1 = __importDefault(require("./Contents"));
|
|
|
25
25
|
var LeftBox_1 = require("./LeftBox");
|
|
26
26
|
var RightBox_1 = require("./RightBox");
|
|
27
27
|
function BasicListItem(_a) {
|
|
28
|
-
var _b = _a.selectionMode, selectionMode = _b === void 0 ? 'none' : _b, _c = _a.state, state = _c === void 0 ? 'normal' : _c, titleText = _a.titleText, _d = _a.titleTextColorTheme, titleTextColorTheme = _d === void 0 ? 'none' : _d, descText = _a.descText, _e = _a.badgeMode, badgeMode = _e === void 0 ? 'none' : _e, _f = _a.badgeStatus, badgeStatus = _f === void 0 ? 'inactive' : _f, _g = _a.imageIconMode, imageIconMode = _g === void 0 ? 'none' : _g, _h = _a.imageShapeType, imageShapeType = _h === void 0 ? 'round' : _h, imageSrc = _a.imageSrc, iconName = _a.iconName, _j = _a.iconFillType, iconFillType = _j === void 0 ? 'line' : _j, _k = _a.displayType, displayType = _k === void 0 ? 'none' : _k, captionText = _a.captionText, iBtn1IconName = _a.iBtn1IconName,
|
|
28
|
+
var _b = _a.selectionMode, selectionMode = _b === void 0 ? 'none' : _b, _c = _a.state, state = _c === void 0 ? 'normal' : _c, titleText = _a.titleText, _d = _a.titleTextColorTheme, titleTextColorTheme = _d === void 0 ? 'none' : _d, descText = _a.descText, _e = _a.badgeMode, badgeMode = _e === void 0 ? 'none' : _e, _f = _a.badgeStatus, badgeStatus = _f === void 0 ? 'inactive' : _f, _g = _a.imageIconMode, imageIconMode = _g === void 0 ? 'none' : _g, _h = _a.imageShapeType, imageShapeType = _h === void 0 ? 'round' : _h, imageSrc = _a.imageSrc, iconName = _a.iconName, _j = _a.iconFillType, iconFillType = _j === void 0 ? 'line' : _j, _k = _a.displayType, displayType = _k === void 0 ? 'none' : _k, captionText = _a.captionText, _l = _a.captionTextColorTheme, captionTextColorTheme = _l === void 0 ? 'none' : _l, iBtn1IconName = _a.iBtn1IconName, _m = _a.iBtn1IconFillType, iBtn1IconFillType = _m === void 0 ? 'line' : _m, iBtn2IconName = _a.iBtn2IconName, _o = _a.iBtn2IconFillType, iBtn2IconFillType = _o === void 0 ? 'line' : _o, _p = _a.mBtnFillType, mBtnFillType = _p === void 0 ? 'fill' : _p, mBtnText = _a.mBtnText, _q = _a.mBtnState, mBtnState = _q === void 0 ? 'normal' : _q, _r = _a.dividerType, dividerType = _r === void 0 ? 'none' : _r, _s = _a.titleFontWeight, titleFontWeight = _s === void 0 ? 'regular' : _s, checkboxId = _a.checkboxId, radioId = _a.radioId, radioValue = _a.radioValue, switchName = _a.switchName, _t = _a.switchState, switchState = _t === void 0 ? 'normal' : _t, _u = _a.switchStatus, switchStatus = _u === void 0 ? 'off' : _u, _v = _a.spacingMode, spacingMode = _v === void 0 ? 'use' : _v, onClick = _a.onClick, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onClickMBtn = _a.onClickMBtn, onClickRadio = _a.onClickRadio, onClickSwitch = _a.onClickSwitch;
|
|
29
29
|
var methods = (0, react_hook_form_1.useFormContext)();
|
|
30
30
|
var isSelected = methods === null || methods === void 0 ? void 0 : methods.watch((checkboxId === null || checkboxId === void 0 ? void 0 : checkboxId.toString()) || '');
|
|
31
31
|
var handleIBtn1Click = function (e) {
|
|
@@ -75,7 +75,16 @@ function BasicListItem(_a) {
|
|
|
75
75
|
}
|
|
76
76
|
return 'sysTextError';
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
function captionTextColor() {
|
|
79
|
+
if (state === 'disabled') {
|
|
80
|
+
return 'sysTextTertiary';
|
|
81
|
+
}
|
|
82
|
+
if (captionTextColorTheme === 'active') {
|
|
83
|
+
return 'sysTextBrandSeconVariant';
|
|
84
|
+
}
|
|
85
|
+
return 'sysTextTertiary';
|
|
86
|
+
}
|
|
87
|
+
return ((0, jsx_runtime_1.jsx)(S_BasicListItem, __assign({ "x-pds-name": "BasicListItem", "x-pds-element-type": "component", "x-pds-device-type": "desktop", state: state, 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 }), selectionMode === 'radio' && radioValue && radioId && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Radio, { id: radioId, value: radioValue, onChange: onClickRadio })), badgeMode === 'left' && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Badge, { status: badgeStatus }), imageIconMode === 'image' && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Image, { src: imageSrc, shape: imageShapeType }), imageIconMode === 'icon' && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Icon, { name: iconName, fill: iconFillType === 'fill' })), (0, jsx_runtime_1.jsxs)(Contents_1.default, { children: [(0, jsx_runtime_1.jsx)(Contents_1.default.Title, { text: titleText, colorTheme: titleTextColor(), font: titleFontWeight === 'bold' ? 'body2Bold' : 'body2Regular' }), captionText && (0, jsx_runtime_1.jsx)(Contents_1.default.Caption, { text: captionText, colorTheme: captionTextColor() })] })] })), (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, state: state })) : undefined })), displayType === 'ibtn_amount1' && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click, state: state })), 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, state: state }), (0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click, state: state })] })), displayType === 'mbtn' && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.MainButton, { text: mBtnText, fill: mBtnFillType === 'fill', state: state === 'disabled' ? 'disabled' : mBtnState, onClick: onClickMBtn })), displayType === 'switch' && switchName && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.Switch, { name: switchName, state: state === 'disabled' ? 'disabled' : switchState, status: switchStatus, onClick: onClickSwitch }))] }))] })) })));
|
|
79
88
|
}
|
|
80
89
|
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) {
|
|
81
90
|
var theme = _a.theme, isSelected = _a.isSelected, state = _a.state;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import type { TextLabelProps } from '../TextLabel/TextLabel';
|
|
2
3
|
import type { PDSTextType } from '../../../common/types';
|
|
3
4
|
type ContentsPropTypes = React.FunctionComponent & {
|
|
4
5
|
Title: React.FC<TitlePropTypes>;
|
|
@@ -6,11 +7,12 @@ type ContentsPropTypes = React.FunctionComponent & {
|
|
|
6
7
|
};
|
|
7
8
|
type TitlePropTypes = {
|
|
8
9
|
text: PDSTextType;
|
|
9
|
-
colorTheme: '
|
|
10
|
+
colorTheme: TextLabelProps['colorTheme'];
|
|
10
11
|
font: 'body2Bold' | 'body2Regular';
|
|
11
12
|
};
|
|
12
13
|
type CaptionPropTypes = {
|
|
13
14
|
text: PDSTextType;
|
|
15
|
+
colorTheme: TextLabelProps['colorTheme'];
|
|
14
16
|
};
|
|
15
17
|
declare const Contents: ContentsPropTypes;
|
|
16
18
|
export default Contents;
|
|
@@ -20,8 +20,8 @@ var Title = function (_a) {
|
|
|
20
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" }) }));
|
|
21
21
|
};
|
|
22
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" }), (0, jsx_runtime_1.jsx)(S_TextWrapper, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, colorTheme:
|
|
23
|
+
var text = _a.text, colorTheme = _a.colorTheme;
|
|
24
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_a" }), (0, jsx_runtime_1.jsx)(S_TextWrapper, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, colorTheme: colorTheme, styleTheme: "caption1Regular", textAlign: "left", singleLineMode: "use", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }) })] }));
|
|
25
25
|
};
|
|
26
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
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"])));
|
|
@@ -15,6 +15,7 @@ export type BasicListItemProps = {
|
|
|
15
15
|
iconFillType?: 'fill' | 'line';
|
|
16
16
|
displayType?: 'none' | 'text' | 'ibtn_text' | 'ibtn_amount1' | 'ibtn_amount2' | 'mbtn' | 'switch';
|
|
17
17
|
captionText?: PDSTextType;
|
|
18
|
+
captionTextColorTheme?: 'none' | 'active' | 'inactive';
|
|
18
19
|
iBtn1IconName?: PDSIconType;
|
|
19
20
|
iBtn1IconFillType?: 'fill' | 'line';
|
|
20
21
|
iBtn2IconName?: PDSIconType;
|
|
@@ -50,5 +51,5 @@ export type StyleProps = {
|
|
|
50
51
|
spacingMode?: 'none' | 'use';
|
|
51
52
|
onlyLeftArea?: boolean;
|
|
52
53
|
};
|
|
53
|
-
declare function BasicListItem({ selectionMode, state, titleText, titleTextColorTheme, descText, badgeMode, badgeStatus, imageIconMode, imageShapeType, imageSrc, iconName, iconFillType, displayType, captionText, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, mBtnFillType, mBtnText, mBtnState, dividerType, titleFontWeight, checkboxId, radioId, radioValue, switchName, switchState, switchStatus, spacingMode, onClick, onClickRadio, onClickSwitch, onClickIBtn1, onClickIBtn2, onClickMBtn }: BasicListItemProps): JSX.Element;
|
|
54
|
+
declare function BasicListItem({ selectionMode, state, titleText, titleTextColorTheme, descText, badgeMode, badgeStatus, imageIconMode, imageShapeType, imageSrc, iconName, iconFillType, displayType, captionText, captionTextColorTheme, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, mBtnFillType, mBtnText, mBtnState, dividerType, titleFontWeight, checkboxId, radioId, radioValue, switchName, switchState, switchStatus, spacingMode, onClick, onClickRadio, onClickSwitch, onClickIBtn1, onClickIBtn2, onClickMBtn }: BasicListItemProps): JSX.Element;
|
|
54
55
|
export default BasicListItem;
|
|
@@ -25,7 +25,7 @@ var Contents_1 = __importDefault(require("./Contents"));
|
|
|
25
25
|
var LeftBox_1 = require("./LeftBox");
|
|
26
26
|
var RightBox_1 = require("./RightBox");
|
|
27
27
|
function BasicListItem(_a) {
|
|
28
|
-
var _b = _a.selectionMode, selectionMode = _b === void 0 ? 'none' : _b, _c = _a.state, state = _c === void 0 ? 'normal' : _c, titleText = _a.titleText, _d = _a.titleTextColorTheme, titleTextColorTheme = _d === void 0 ? 'none' : _d, descText = _a.descText, _e = _a.badgeMode, badgeMode = _e === void 0 ? 'none' : _e, _f = _a.badgeStatus, badgeStatus = _f === void 0 ? 'inactive' : _f, _g = _a.imageIconMode, imageIconMode = _g === void 0 ? 'none' : _g, _h = _a.imageShapeType, imageShapeType = _h === void 0 ? 'round' : _h, imageSrc = _a.imageSrc, iconName = _a.iconName, _j = _a.iconFillType, iconFillType = _j === void 0 ? 'line' : _j, _k = _a.displayType, displayType = _k === void 0 ? 'none' : _k, captionText = _a.captionText, iBtn1IconName = _a.iBtn1IconName,
|
|
28
|
+
var _b = _a.selectionMode, selectionMode = _b === void 0 ? 'none' : _b, _c = _a.state, state = _c === void 0 ? 'normal' : _c, titleText = _a.titleText, _d = _a.titleTextColorTheme, titleTextColorTheme = _d === void 0 ? 'none' : _d, descText = _a.descText, _e = _a.badgeMode, badgeMode = _e === void 0 ? 'none' : _e, _f = _a.badgeStatus, badgeStatus = _f === void 0 ? 'inactive' : _f, _g = _a.imageIconMode, imageIconMode = _g === void 0 ? 'none' : _g, _h = _a.imageShapeType, imageShapeType = _h === void 0 ? 'round' : _h, imageSrc = _a.imageSrc, iconName = _a.iconName, _j = _a.iconFillType, iconFillType = _j === void 0 ? 'line' : _j, _k = _a.displayType, displayType = _k === void 0 ? 'none' : _k, captionText = _a.captionText, _l = _a.captionTextColorTheme, captionTextColorTheme = _l === void 0 ? 'none' : _l, iBtn1IconName = _a.iBtn1IconName, _m = _a.iBtn1IconFillType, iBtn1IconFillType = _m === void 0 ? 'line' : _m, iBtn2IconName = _a.iBtn2IconName, _o = _a.iBtn2IconFillType, iBtn2IconFillType = _o === void 0 ? 'line' : _o, _p = _a.mBtnFillType, mBtnFillType = _p === void 0 ? 'fill' : _p, mBtnText = _a.mBtnText, _q = _a.mBtnState, mBtnState = _q === void 0 ? 'normal' : _q, _r = _a.dividerType, dividerType = _r === void 0 ? 'none' : _r, _s = _a.titleFontWeight, titleFontWeight = _s === void 0 ? 'regular' : _s, checkboxId = _a.checkboxId, radioId = _a.radioId, radioValue = _a.radioValue, switchName = _a.switchName, _t = _a.switchState, switchState = _t === void 0 ? 'normal' : _t, _u = _a.switchStatus, switchStatus = _u === void 0 ? 'off' : _u, _v = _a.spacingMode, spacingMode = _v === void 0 ? 'use' : _v, onClick = _a.onClick, onClickRadio = _a.onClickRadio, onClickSwitch = _a.onClickSwitch, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onClickMBtn = _a.onClickMBtn;
|
|
29
29
|
var methods = (0, react_hook_form_1.useFormContext)();
|
|
30
30
|
var isSelected = methods === null || methods === void 0 ? void 0 : methods.watch((checkboxId === null || checkboxId === void 0 ? void 0 : checkboxId.toString()) || '');
|
|
31
31
|
var handleIBtn1Click = function (e) {
|
|
@@ -75,7 +75,16 @@ function BasicListItem(_a) {
|
|
|
75
75
|
}
|
|
76
76
|
return 'sysTextError';
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
function captionTextColor() {
|
|
79
|
+
if (state === 'disabled') {
|
|
80
|
+
return 'sysTextTertiary';
|
|
81
|
+
}
|
|
82
|
+
if (captionTextColorTheme === 'active') {
|
|
83
|
+
return 'sysTextBrandSeconVariant';
|
|
84
|
+
}
|
|
85
|
+
return 'sysTextTertiary';
|
|
86
|
+
}
|
|
87
|
+
return ((0, jsx_runtime_1.jsx)(S_BasicListItem, __assign({ "x-pds-name": "BasicListItem", "x-pds-element-type": "component", "x-pds-device-type": "mobile", state: state, isSelected: isSelected, onClick: handleClick, 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 }), selectionMode === 'radio' && radioValue && radioId && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Radio, { id: radioId, value: radioValue, onChange: onClickRadio })), badgeMode === 'left' && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Badge, { status: badgeStatus }), imageIconMode === 'image' && (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Image, { src: imageSrc, shape: imageShapeType }), imageIconMode === 'icon' && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Icon, { name: iconName, fill: iconFillType === 'fill' })), (0, jsx_runtime_1.jsxs)(Contents_1.default, { children: [(0, jsx_runtime_1.jsx)(Contents_1.default.Title, { text: titleText, colorTheme: titleTextColor(), font: titleFontWeight === 'bold' ? 'body2Bold' : 'body2Regular' }), captionText && (0, jsx_runtime_1.jsx)(Contents_1.default.Caption, { text: captionText, colorTheme: captionTextColor() })] })] })), (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 })) : undefined })), displayType === 'ibtn_amount1' && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click })), 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, state: state }), (0, jsx_runtime_1.jsx)(RightBox_1.RightBox.IconButton, { iconName: iBtn1IconName, fill: iBtn1IconFillType === 'fill', onClick: handleIBtn1Click, state: state })] })), displayType === 'mbtn' && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.MainButton, { text: mBtnText, fill: mBtnFillType === 'fill', state: state === 'disabled' ? 'disabled' : mBtnState, onClick: onClickMBtn })), displayType === 'switch' && switchName && ((0, jsx_runtime_1.jsx)(RightBox_1.RightBox.Switch, { name: switchName, state: state === 'disabled' ? 'disabled' : switchState, status: switchStatus, onClick: onClickSwitch }))] }))] })) })));
|
|
79
88
|
}
|
|
80
89
|
var S_BasicListItem = styled_components_1.default.li(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n padding: ", ";\n"], ["\n align-items: center;\n background-color: ", ";\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n padding: ", ";\n"])), function (_a) {
|
|
81
90
|
var theme = _a.theme, isSelected = _a.isSelected, state = _a.state;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import type { TextLabelProps } from '../TextLabel/TextLabel';
|
|
2
3
|
import type { PDSTextType } from '../../../common/types';
|
|
3
4
|
type ContentsPropTypes = React.FunctionComponent & {
|
|
4
5
|
Title: React.FC<TitlePropTypes>;
|
|
@@ -6,11 +7,12 @@ type ContentsPropTypes = React.FunctionComponent & {
|
|
|
6
7
|
};
|
|
7
8
|
type TitlePropTypes = {
|
|
8
9
|
text: PDSTextType;
|
|
9
|
-
colorTheme: '
|
|
10
|
+
colorTheme: TextLabelProps['colorTheme'];
|
|
10
11
|
font: 'body2Bold' | 'body2Regular';
|
|
11
12
|
};
|
|
12
13
|
type CaptionPropTypes = {
|
|
13
14
|
text: PDSTextType;
|
|
15
|
+
colorTheme: TextLabelProps['colorTheme'];
|
|
14
16
|
};
|
|
15
17
|
declare const Contents: ContentsPropTypes;
|
|
16
18
|
export default Contents;
|
|
@@ -20,8 +20,8 @@ var Title = function (_a) {
|
|
|
20
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" }) }));
|
|
21
21
|
};
|
|
22
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" }), (0, jsx_runtime_1.jsx)(S_TextWrapper, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, colorTheme:
|
|
23
|
+
var text = _a.text, colorTheme = _a.colorTheme;
|
|
24
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_a" }), (0, jsx_runtime_1.jsx)(S_TextWrapper, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: text, colorTheme: colorTheme, styleTheme: "caption1Regular", textAlign: "left", singleLineMode: "use", ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }) })] }));
|
|
25
25
|
};
|
|
26
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
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"])));
|
|
@@ -180,7 +180,7 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
180
180
|
return size.width * 0.0133;
|
|
181
181
|
}
|
|
182
182
|
if (size.width < 1200) {
|
|
183
|
-
return Math.max(getDefensiveFontSize(device, size.width),
|
|
183
|
+
return Math.max(getDefensiveFontSize(device, size.width), 16);
|
|
184
184
|
}
|
|
185
185
|
return 16;
|
|
186
186
|
})();
|
|
@@ -180,7 +180,7 @@ var FlexGridCustomSection = (0, react_1.forwardRef)(function CustomSection(props
|
|
|
180
180
|
return size.width * 0.0133;
|
|
181
181
|
}
|
|
182
182
|
if (size.width < 1200) {
|
|
183
|
-
return Math.max(getDefensiveFontSize(device, size.width),
|
|
183
|
+
return Math.max(getDefensiveFontSize(device, size.width), 16);
|
|
184
184
|
}
|
|
185
185
|
return 16;
|
|
186
186
|
})();
|
package/package.json
CHANGED
package/release-note.md
CHANGED