pds-dev-kit-web 2.2.88 → 2.2.89
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/assets/icons/image/index.d.ts +202 -0
- package/dist/src/common/assets/icons/image/index.js +205 -0
- package/dist/src/common/index.d.ts +1 -1
- package/dist/src/common/types/components.d.ts +4 -4
- package/dist/src/common/types/icon.d.ts +8 -3
- package/dist/src/common/types/icon.js +10 -0
- package/dist/src/desktop/components/BasicListItem/BasicListItem.d.ts +4 -4
- package/dist/src/desktop/components/ChatList/ChatList.d.ts +8 -8
- package/dist/src/desktop/components/ChatList/ChatTextField.d.ts +5 -5
- package/dist/src/desktop/components/ChatList/Footer.d.ts +5 -5
- package/dist/src/desktop/components/Chip/Chip.d.ts +2 -2
- package/dist/src/desktop/components/DesktopHeaderBar/DesktopHeaderBar.d.ts +2 -2
- package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.d.ts +2 -2
- package/dist/src/desktop/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
- package/dist/src/desktop/components/IconButton/IconButton.d.ts +2 -2
- package/dist/src/desktop/components/MainButton/MainButton.d.ts +2 -2
- package/dist/src/desktop/components/PageTitleTextGroup/CompoundButton.d.ts +2 -2
- package/dist/src/desktop/components/PageTitleTextGroup/PageTitleTextGroup.d.ts +2 -2
- package/dist/src/desktop/components/TextField/TextField.d.ts +3 -3
- package/dist/src/desktop/components/UploadIconButton/UploadIconButton.d.ts +2 -2
- package/dist/src/desktop/components/UploadMainButton/UploadMainButton.d.ts +2 -2
- package/dist/src/hybrid/components/Icon/Icon.d.ts +4 -3
- package/dist/src/hybrid/components/Icon/Icon.js +14 -4
- package/dist/src/mobile/components/BasicListItem/BasicListItem.d.ts +4 -4
- package/dist/src/mobile/components/ChatList/ChatList.d.ts +8 -8
- package/dist/src/mobile/components/ChatList/ChatTextField.d.ts +5 -5
- package/dist/src/mobile/components/ChatList/Footer.d.ts +5 -5
- package/dist/src/mobile/components/Chip/Chip.d.ts +2 -2
- package/dist/src/mobile/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
- package/dist/src/mobile/components/IconButton/IconButton.d.ts +2 -2
- package/dist/src/mobile/components/MainButton/MainButton.d.ts +2 -2
- package/dist/src/mobile/components/MobileHeaderBar/MobileHeaderBar.d.ts +3 -3
- package/dist/src/mobile/components/TextField/TextField.d.ts +3 -3
- package/dist/src/mobile/components/UploadIconButton/UploadIconButton.d.ts +2 -2
- package/dist/src/mobile/components/UploadMainButton/UploadMainButton.d.ts +2 -2
- package/dist/src/sub/AdminList/ToolBar/ToolBar.d.ts +4 -4
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/MainButton/MainButton.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/mobile/IconButton/IconButton.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/mobile/MainButton/MainButton.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/desktop/MembershipSectionItem.d.ts +3 -3
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/components/mobile/MembershipSectionItem.d.ts +3 -3
- package/package.json +1 -1
- package/release-note.md +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, PDSTextType, PDSValueOption, UiColors } from '../../../common';
|
|
3
3
|
type DisplayType = 'category_choice' | 'filter_single' | 'filter_multi' | 'removable' | 'label' | 'time' | 'information';
|
|
4
4
|
export type ChipProps = {
|
|
5
5
|
displayType?: DisplayType;
|
|
6
6
|
text?: PDSTextType;
|
|
7
7
|
filterIconMode?: 'none' | 'left';
|
|
8
8
|
iconFillType?: 'line' | 'fill';
|
|
9
|
-
iconName?:
|
|
9
|
+
iconName?: PDSIconType;
|
|
10
10
|
overrideTextColorKey?: UiColors;
|
|
11
11
|
overrideBackgroundColorKey?: UiColors;
|
|
12
12
|
value?: PDSValueOption['value'];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, PDSTextType } from '../../../common';
|
|
3
3
|
type DesktopHeaderBarProps = {
|
|
4
4
|
text?: PDSTextType;
|
|
5
5
|
size?: 'xlarge' | 'large';
|
|
6
6
|
leftDisplayType?: 'text' | 'icon' | 'back';
|
|
7
|
-
iconName?:
|
|
7
|
+
iconName?: PDSIconType;
|
|
8
8
|
leftBtn2Mode?: 'none' | 'mbtn' | 'tbtn';
|
|
9
9
|
leftBtn2Text?: PDSTextType;
|
|
10
10
|
rightBtnMode?: 'none' | 'close' | 'mbtn' | 'mbtn_fill' | 'help_window';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, PDSTabItemOption, PDSTextType } from '../../../common/types';
|
|
3
3
|
type ItemArray = PDSTabItemOption & {
|
|
4
4
|
subArray?: PDSTabItemOption[];
|
|
5
5
|
iconMode?: 'none' | 'use';
|
|
6
|
-
iconName?:
|
|
6
|
+
iconName?: PDSIconType;
|
|
7
7
|
iconFillType?: 'line' | 'fill';
|
|
8
8
|
};
|
|
9
9
|
type TextObj = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, PDSTextType } from '../../../common';
|
|
3
3
|
export type FloatingActionButtonProps = {
|
|
4
4
|
text?: PDSTextType;
|
|
5
5
|
displayType?: 'icon_only' | 'text_only' | 'icon_text';
|
|
6
6
|
size?: 'xlarge' | 'large';
|
|
7
7
|
fontWeight?: 'bold' | 'regular';
|
|
8
8
|
iconFillType?: 'fill' | 'line';
|
|
9
|
-
iconName?:
|
|
9
|
+
iconName?: PDSIconType;
|
|
10
10
|
colorTheme?: 'none' | 'theme1' | 'theme2' | 'theme3';
|
|
11
11
|
state?: 'normal' | 'disabled';
|
|
12
12
|
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, PDSTextType, UiColors } from '../../../common';
|
|
3
3
|
import type { IconCaseTooltipPositionType } from '../../../common/types/systemUI';
|
|
4
4
|
export type IconButtonProps = {
|
|
5
5
|
tooltipText?: PDSTextType;
|
|
@@ -12,7 +12,7 @@ export type IconButtonProps = {
|
|
|
12
12
|
borderColorKey?: UiColors;
|
|
13
13
|
iconSize?: 12 | 16 | 20 | 24 | 32 | 48 | 72;
|
|
14
14
|
iconFillType?: 'fill' | 'line';
|
|
15
|
-
iconName:
|
|
15
|
+
iconName: PDSIconType;
|
|
16
16
|
iconColorKey?: UiColors;
|
|
17
17
|
shadow?: 'hidden' | 'visible';
|
|
18
18
|
colorTheme?: 'none' | 'line1' | 'line2';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, PDSTextType } from '../../../common';
|
|
3
3
|
export type MainButtonProps = {
|
|
4
4
|
text?: PDSTextType;
|
|
5
5
|
shapeType?: 'round' | 'rectangle';
|
|
@@ -10,7 +10,7 @@ export type MainButtonProps = {
|
|
|
10
10
|
fontWeight?: 'bold' | 'regular';
|
|
11
11
|
iconMode?: 'none' | 'left' | 'right';
|
|
12
12
|
iconFillType?: 'fill' | 'line';
|
|
13
|
-
iconName?:
|
|
13
|
+
iconName?: PDSIconType;
|
|
14
14
|
colorTheme?: 'none' | 'line1' | 'line2' | 'line3' | 'primary1' | 'secondary1';
|
|
15
15
|
type?: 'button' | 'submit';
|
|
16
16
|
state?: 'normal' | 'disabled';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, PDSTextType } from '../../../common';
|
|
3
3
|
type Props = {
|
|
4
|
-
iconName?:
|
|
4
|
+
iconName?: PDSIconType;
|
|
5
5
|
iconFillType?: 'fill' | 'line';
|
|
6
6
|
titleText: PDSTextType;
|
|
7
7
|
contentText: PDSTextType;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, PDSTextType } from '../../../common';
|
|
3
3
|
type PageTitleTextGroupProps = {
|
|
4
4
|
titleText: PDSTextType;
|
|
5
5
|
tooltipText?: PDSTextType;
|
|
6
|
-
compoundBtnIconName?:
|
|
6
|
+
compoundBtnIconName?: PDSIconType;
|
|
7
7
|
compoundBtnIconFillType?: 'fill' | 'line';
|
|
8
8
|
compoundBtnTitleText?: PDSTextType;
|
|
9
9
|
compoundBtnContentText?: PDSTextType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Path } from 'react-hook-form';
|
|
3
|
-
import type {
|
|
3
|
+
import type { IFormValues, PDSTextType, UiColors, PDSIconType } from '../../../common';
|
|
4
4
|
export type TextFieldProps = {
|
|
5
5
|
name: Path<IFormValues>;
|
|
6
6
|
hintText?: PDSTextType;
|
|
@@ -22,8 +22,8 @@ export type TextFieldProps = {
|
|
|
22
22
|
autoMaxRows?: number;
|
|
23
23
|
inputType?: string;
|
|
24
24
|
state?: 'normal' | 'read_only' | 'disabled';
|
|
25
|
-
iBtn1IconName?:
|
|
26
|
-
iBtn2IconName?:
|
|
25
|
+
iBtn1IconName?: PDSIconType;
|
|
26
|
+
iBtn2IconName?: PDSIconType;
|
|
27
27
|
iBtn1IconFillType?: 'line' | 'fill';
|
|
28
28
|
iBtn2IconFillType?: 'line' | 'fill';
|
|
29
29
|
overrideIBtn1IconColorKey?: UiColors;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, PDSTextType, UiColors } from '../../../common';
|
|
3
3
|
import type { IconCaseTooltipPositionType } from '../../../common/types/systemUI';
|
|
4
4
|
export type UploadIconButtonProps = {
|
|
5
5
|
fillType?: 'fill' | 'line';
|
|
@@ -9,7 +9,7 @@ export type UploadIconButtonProps = {
|
|
|
9
9
|
borderColorKey?: UiColors;
|
|
10
10
|
iconSize?: 12 | 16 | 20 | 24 | 32 | 48 | 72;
|
|
11
11
|
iconFillType?: 'fill' | 'line';
|
|
12
|
-
iconName:
|
|
12
|
+
iconName: PDSIconType;
|
|
13
13
|
iconColorKey?: UiColors;
|
|
14
14
|
shadow?: 'hidden' | 'visible';
|
|
15
15
|
colorTheme?: 'none' | 'line1' | 'line2';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, PDSTextType } from '../../../common';
|
|
3
3
|
type UploadMainButtonProps = {
|
|
4
4
|
text?: PDSTextType;
|
|
5
5
|
shapeType?: 'round' | 'rectangle';
|
|
@@ -10,7 +10,7 @@ type UploadMainButtonProps = {
|
|
|
10
10
|
fontWeight?: 'bold' | 'regular';
|
|
11
11
|
iconMode?: 'none' | 'left' | 'right';
|
|
12
12
|
iconFillType?: 'fill' | 'line';
|
|
13
|
-
iconName?:
|
|
13
|
+
iconName?: PDSIconType;
|
|
14
14
|
colorTheme?: 'none' | 'line1' | 'line2' | 'line3' | 'primary1' | 'secondary1';
|
|
15
15
|
state?: 'normal' | 'disabled';
|
|
16
16
|
accept?: string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, UiColors } from '../../../common';
|
|
3
|
+
type FillType = 'line' | 'fill';
|
|
3
4
|
export type IconProps = {
|
|
4
|
-
iconName?:
|
|
5
|
+
iconName?: PDSIconType;
|
|
5
6
|
size?: 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | 72;
|
|
6
7
|
colorKey?: UiColors;
|
|
7
|
-
fillType?:
|
|
8
|
+
fillType?: FillType;
|
|
8
9
|
} & Record<string, any>;
|
|
9
10
|
declare const Icon: ({ iconName, size, colorKey, fillType }: IconProps) => JSX.Element;
|
|
10
11
|
export default Icon;
|
|
@@ -6,15 +6,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
var styled_components_1 = require("styled-components");
|
|
8
8
|
var fill_1 = __importDefault(require("../../../common/assets/icons/fill"));
|
|
9
|
+
var image_1 = require("../../../common/assets/icons/image");
|
|
9
10
|
var line_1 = __importDefault(require("../../../common/assets/icons/line"));
|
|
11
|
+
var icon_1 = require("../../../common/types/icon");
|
|
10
12
|
var Icon = function (_a) {
|
|
11
13
|
var _b = _a.iconName, iconName = _b === void 0 ? 'ic_unavailable' : _b, _c = _a.size, size = _c === void 0 ? 24 : _c, _d = _a.colorKey, colorKey = _d === void 0 ? 'ui_cpnt_icon_sys_grey_01' : _d, _e = _a.fillType, fillType = _e === void 0 ? 'line' : _e;
|
|
12
14
|
var theme = (0, styled_components_1.useTheme)();
|
|
13
15
|
var isFixedSize = iconName.includes('_20') || iconName.includes('_32') || iconName.includes('_40');
|
|
14
16
|
var DefaultIcon = line_1.default.ic_unavailable;
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
: fill_1.default[iconName] || line_1.default[iconName]
|
|
18
|
-
|
|
17
|
+
var svgIcons = {
|
|
18
|
+
line: line_1.default[iconName] || fill_1.default[iconName],
|
|
19
|
+
fill: fill_1.default[iconName] || line_1.default[iconName]
|
|
20
|
+
};
|
|
21
|
+
var SelectedSVGIcon = svgIcons[fillType];
|
|
22
|
+
if (icon_1.imageIconKeys.includes(iconName)) {
|
|
23
|
+
return ((0, jsx_runtime_1.jsx)("img", { "x-pds-name": "Icon", "x-pds-element-type": "component", "x-pds-device-type": "hybrid", src: image_1.imageIconSrcSet[iconName], width: size, height: size }));
|
|
24
|
+
}
|
|
25
|
+
if (icon_1.fillIconkeys.includes(iconName) || icon_1.lineIconkeys.includes(iconName)) {
|
|
26
|
+
return SelectedSVGIcon ? ((0, jsx_runtime_1.jsx)(SelectedSVGIcon, { "x-pds-name": "Icon", "x-pds-element-type": "component", "x-pds-device-type": "hybrid", color: theme[colorKey], size: size, style: isFixedSize ? undefined : { minWidth: size, minHeight: size } })) : ((0, jsx_runtime_1.jsx)(DefaultIcon, { "x-pds-name": "Icon", "x-pds-element-type": "component", "x-pds-device-type": "hybrid", color: theme[colorKey], size: size, style: isFixedSize ? undefined : { minWidth: size, minHeight: size } }));
|
|
27
|
+
}
|
|
28
|
+
return SelectedSVGIcon ? ((0, jsx_runtime_1.jsx)(SelectedSVGIcon, { "x-pds-name": "Icon", "x-pds-element-type": "component", "x-pds-device-type": "hybrid", color: theme[colorKey], size: size, style: isFixedSize ? undefined : { minWidth: size, minHeight: size } })) : ((0, jsx_runtime_1.jsx)(DefaultIcon, { "x-pds-name": "Icon", "x-pds-element-type": "component", "x-pds-device-type": "hybrid", color: theme[colorKey], size: size, style: isFixedSize ? undefined : { minWidth: size, minHeight: size } }));
|
|
19
29
|
};
|
|
20
30
|
exports.default = Icon;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, PDSTextType } from '../../../common';
|
|
3
3
|
export type BasicListItemProps = {
|
|
4
4
|
selectionMode?: 'none' | 'check' | 'radio';
|
|
5
5
|
titleText: PDSTextType;
|
|
@@ -10,13 +10,13 @@ export type BasicListItemProps = {
|
|
|
10
10
|
imageIconMode?: 'none' | 'image' | 'icon';
|
|
11
11
|
imageShapeType?: 'round' | 'circular' | 'rectangle';
|
|
12
12
|
imageSrc?: string;
|
|
13
|
-
iconName?:
|
|
13
|
+
iconName?: PDSIconType;
|
|
14
14
|
iconFillType?: 'fill' | 'line';
|
|
15
15
|
displayType?: 'none' | 'text' | 'ibtn_text' | 'ibtn_amount1' | 'ibtn_amount2' | 'mbtn' | 'switch';
|
|
16
16
|
captionText?: PDSTextType;
|
|
17
|
-
iBtn1IconName?:
|
|
17
|
+
iBtn1IconName?: PDSIconType;
|
|
18
18
|
iBtn1IconFillType?: 'fill' | 'line';
|
|
19
|
-
iBtn2IconName?:
|
|
19
|
+
iBtn2IconName?: PDSIconType;
|
|
20
20
|
iBtn2IconFillType?: 'fill' | 'line';
|
|
21
21
|
mBtnFillType?: 'fill' | 'line';
|
|
22
22
|
mBtnText?: PDSTextType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, PDSTextType } from '../../../common';
|
|
3
3
|
export type Props = {
|
|
4
4
|
colorTheme?: 'solid' | 'translucent' | 'transparent';
|
|
5
5
|
headerMode?: 'none' | 'use';
|
|
@@ -9,11 +9,11 @@ export type Props = {
|
|
|
9
9
|
onClickCaptionText?: () => void;
|
|
10
10
|
titleStyleTheme?: 'headingBold' | 'subTitleBold';
|
|
11
11
|
headerDisplayType?: 'none' | 'ibtn1' | 'ibtn2' | 'ibtn3';
|
|
12
|
-
headerIBtn1IconName?:
|
|
12
|
+
headerIBtn1IconName?: PDSIconType;
|
|
13
13
|
headerIBtn1IconFillType?: 'line' | 'fill';
|
|
14
|
-
headerIBtn2IconName?:
|
|
14
|
+
headerIBtn2IconName?: PDSIconType;
|
|
15
15
|
headerIBtn2IconFillType?: 'line' | 'fill';
|
|
16
|
-
headerIBtn3IconName?:
|
|
16
|
+
headerIBtn3IconName?: PDSIconType;
|
|
17
17
|
headerIBtn3IconFillType?: 'line' | 'fill';
|
|
18
18
|
children?: React.ReactNode;
|
|
19
19
|
bodyChildren?: React.ReactNode;
|
|
@@ -26,20 +26,20 @@ export type Props = {
|
|
|
26
26
|
submitIBtnState?: 'disabled' | 'normal';
|
|
27
27
|
bodyMBtnText?: PDSTextType;
|
|
28
28
|
bodySpacingMode?: 'none' | 'use';
|
|
29
|
-
submitIBtnIconName?:
|
|
29
|
+
submitIBtnIconName?: PDSIconType;
|
|
30
30
|
submitIBtnIconFillType?: 'fill' | 'line';
|
|
31
31
|
footerIBtn1State?: 'disabled' | 'normal';
|
|
32
|
-
footerIBtn1IconName?:
|
|
32
|
+
footerIBtn1IconName?: PDSIconType;
|
|
33
33
|
footerIBtn1IconFillType?: 'fill' | 'line';
|
|
34
34
|
footerIBtn1Type?: 'button' | 'upload';
|
|
35
35
|
onClickFooterIBtn1?: (e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
36
36
|
footerIBtn2State?: 'disabled' | 'normal';
|
|
37
|
-
footerIBtn2IconName?:
|
|
37
|
+
footerIBtn2IconName?: PDSIconType;
|
|
38
38
|
footerIBtn2IconFillType?: 'fill' | 'line';
|
|
39
39
|
footerIBtn2Type?: 'button' | 'upload';
|
|
40
40
|
onClickFooterIBtn2?: (e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
41
41
|
footerIBtn3State?: 'disabled' | 'normal';
|
|
42
|
-
footerIBtn3IconName?:
|
|
42
|
+
footerIBtn3IconName?: PDSIconType;
|
|
43
43
|
footerIBtn3IconFillType?: 'fill' | 'line';
|
|
44
44
|
footerIBtn3Type?: 'button' | 'upload';
|
|
45
45
|
footerIBtn3Accept?: string;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType } from '../../../common';
|
|
3
3
|
import type { Props as ChatListProps } from './ChatList';
|
|
4
4
|
type Props = Pick<ChatListProps, 'textFieldDefaultText' | 'textFieldHintText' | 'textFieldState' | 'textFieldMaxLength' | 'footerIBtn3Accept' | 'colorTheme'> & {
|
|
5
5
|
isSubmitBtnActive?: boolean;
|
|
6
|
-
submitIBtnIconName?:
|
|
6
|
+
submitIBtnIconName?: PDSIconType;
|
|
7
7
|
submitIBtnIconFillType?: 'fill' | 'line';
|
|
8
8
|
footerIBtn1State?: 'disabled' | 'normal';
|
|
9
|
-
footerIBtn1IconName?:
|
|
9
|
+
footerIBtn1IconName?: PDSIconType;
|
|
10
10
|
footerIBtn1IconFillType?: 'fill' | 'line';
|
|
11
11
|
footerIBtn1Type?: 'button' | 'upload';
|
|
12
12
|
onClickFooterIBtn1?: (e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
13
13
|
footerIBtn2State?: 'disabled' | 'normal';
|
|
14
|
-
footerIBtn2IconName?:
|
|
14
|
+
footerIBtn2IconName?: PDSIconType;
|
|
15
15
|
footerIBtn2IconFillType?: 'fill' | 'line';
|
|
16
16
|
footerIBtn2Type?: 'button' | 'upload';
|
|
17
17
|
onClickFooterIBtn2?: (e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
18
18
|
footerIBtn3State?: 'disabled' | 'normal';
|
|
19
|
-
footerIBtn3IconName?:
|
|
19
|
+
footerIBtn3IconName?: PDSIconType;
|
|
20
20
|
footerIBtn3IconFillType?: 'fill' | 'line';
|
|
21
21
|
footerIBtn3Type?: 'button' | 'upload';
|
|
22
22
|
onClickFooterIBtn3?: (e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType } from '../../../common';
|
|
3
3
|
import type { Props as ChatListProps } from './ChatList';
|
|
4
4
|
type Props = Pick<ChatListProps, 'footerChildren' | 'textFieldDefaultText' | 'textFieldHintText' | 'textFieldState' | 'textFieldMaxLength' | 'footerIBtn3Accept' | 'colorTheme'> & {
|
|
5
5
|
isSubmitBtnActive: boolean;
|
|
6
|
-
submitIBtnIconName?:
|
|
6
|
+
submitIBtnIconName?: PDSIconType;
|
|
7
7
|
submitIBtnIconFillType?: 'fill' | 'line';
|
|
8
8
|
footerIBtn1State?: 'disabled' | 'normal';
|
|
9
|
-
footerIBtn1IconName?:
|
|
9
|
+
footerIBtn1IconName?: PDSIconType;
|
|
10
10
|
footerIBtn1IconFillType?: 'fill' | 'line';
|
|
11
11
|
footerIBtn1Type?: 'button' | 'upload';
|
|
12
12
|
onClickFooterIBtn1?: (e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
13
13
|
footerIBtn2State?: 'disabled' | 'normal';
|
|
14
|
-
footerIBtn2IconName?:
|
|
14
|
+
footerIBtn2IconName?: PDSIconType;
|
|
15
15
|
footerIBtn2IconFillType?: 'fill' | 'line';
|
|
16
16
|
footerIBtn2Type?: 'button' | 'upload';
|
|
17
17
|
onClickFooterIBtn2?: (e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
18
18
|
footerIBtn3State?: 'disabled' | 'normal';
|
|
19
|
-
footerIBtn3IconName?:
|
|
19
|
+
footerIBtn3IconName?: PDSIconType;
|
|
20
20
|
footerIBtn3IconFillType?: 'fill' | 'line';
|
|
21
21
|
footerIBtn3Type?: 'button' | 'upload';
|
|
22
22
|
onClickFooterIBtn3?: (e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, PDSTextType, PDSValueOption, UiColors } from '../../../common';
|
|
3
3
|
type DisplayType = 'category_choice' | 'filter_single' | 'filter_multi' | 'removable' | 'label' | 'time' | 'information';
|
|
4
4
|
export type ChipProps = {
|
|
5
5
|
displayType?: DisplayType;
|
|
6
6
|
text?: PDSTextType;
|
|
7
7
|
filterIconMode?: 'none' | 'left';
|
|
8
8
|
iconFillType?: 'line' | 'fill';
|
|
9
|
-
iconName?:
|
|
9
|
+
iconName?: PDSIconType;
|
|
10
10
|
overrideTextColorKey?: UiColors;
|
|
11
11
|
overrideBackgroundColorKey?: UiColors;
|
|
12
12
|
value?: PDSValueOption['value'];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, PDSTextType } from '../../../common';
|
|
3
3
|
export type FloatingActionButtonProps = {
|
|
4
4
|
text?: PDSTextType;
|
|
5
5
|
displayType?: 'icon_only' | 'text_only' | 'icon_text';
|
|
6
6
|
size?: 'xlarge' | 'large';
|
|
7
7
|
fontWeight?: 'bold' | 'regular';
|
|
8
8
|
iconFillType?: 'fill' | 'line';
|
|
9
|
-
iconName?:
|
|
9
|
+
iconName?: PDSIconType;
|
|
10
10
|
colorTheme?: 'none' | 'theme1' | 'theme2' | 'theme3';
|
|
11
11
|
state?: 'normal' | 'disable';
|
|
12
12
|
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, UiColors } from '../../../common';
|
|
3
3
|
export type IconButtonProps = {
|
|
4
4
|
fillType?: 'fill' | 'line';
|
|
5
5
|
shapeType?: 'circular' | 'rectangle' | 'round';
|
|
@@ -8,7 +8,7 @@ export type IconButtonProps = {
|
|
|
8
8
|
borderColorKey?: UiColors;
|
|
9
9
|
iconSize?: 12 | 16 | 20 | 24 | 32 | 48 | 72;
|
|
10
10
|
iconFillType?: 'fill' | 'line';
|
|
11
|
-
iconName:
|
|
11
|
+
iconName: PDSIconType;
|
|
12
12
|
iconColorKey?: UiColors;
|
|
13
13
|
shadow?: 'hidden' | 'visible';
|
|
14
14
|
colorTheme?: 'none' | 'line1' | 'line2';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, PDSTextType } from '../../../common';
|
|
3
3
|
export type MainButtonProps = {
|
|
4
4
|
text?: PDSTextType;
|
|
5
5
|
shapeType?: 'round' | 'rectangle';
|
|
@@ -10,7 +10,7 @@ export type MainButtonProps = {
|
|
|
10
10
|
fontWeight?: 'bold' | 'regular';
|
|
11
11
|
iconMode?: 'none' | 'left' | 'right';
|
|
12
12
|
iconFillType?: 'fill' | 'line';
|
|
13
|
-
iconName?:
|
|
13
|
+
iconName?: PDSIconType;
|
|
14
14
|
colorTheme?: 'none' | 'line1' | 'line2' | 'line3' | 'primary1' | 'secondary1';
|
|
15
15
|
type?: 'button' | 'submit';
|
|
16
16
|
state?: 'normal' | 'disabled';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, PDSTextType, UiColors } from '../../../common';
|
|
3
3
|
type Props = {
|
|
4
4
|
titleType?: 'text' | 'profile' | 'image';
|
|
5
5
|
titleText?: PDSTextType;
|
|
6
6
|
captionText?: PDSTextType;
|
|
7
7
|
leftBtnMode?: 'none' | 'back' | 'menu' | 'close';
|
|
8
8
|
displayType?: 'none' | 'ibtn_amount1' | 'ibtn_amount2';
|
|
9
|
-
iBtn1IconName?:
|
|
9
|
+
iBtn1IconName?: PDSIconType;
|
|
10
10
|
iBtn1IconFillType?: 'fill' | 'line';
|
|
11
11
|
iBtn1IconColorKey?: UiColors;
|
|
12
|
-
iBtn2IconName?:
|
|
12
|
+
iBtn2IconName?: PDSIconType;
|
|
13
13
|
iBtn2IconFillType?: 'fill' | 'line';
|
|
14
14
|
iBtn2IconColorKey?: UiColors;
|
|
15
15
|
dividerMode?: 'none' | 'solid';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Path } from 'react-hook-form';
|
|
3
|
-
import type {
|
|
3
|
+
import type { IFormValues, PDSIconType, PDSTextType, UiColors } from '../../../common';
|
|
4
4
|
export type TextFieldProps = {
|
|
5
5
|
name: Path<IFormValues>;
|
|
6
6
|
hintText?: PDSTextType;
|
|
@@ -22,8 +22,8 @@ export type TextFieldProps = {
|
|
|
22
22
|
autoMaxRows?: number;
|
|
23
23
|
inputType?: string;
|
|
24
24
|
state?: 'normal' | 'read_only' | 'disabled';
|
|
25
|
-
iBtn1IconName?:
|
|
26
|
-
iBtn2IconName?:
|
|
25
|
+
iBtn1IconName?: PDSIconType;
|
|
26
|
+
iBtn2IconName?: PDSIconType;
|
|
27
27
|
iBtn1IconFillType?: 'line' | 'fill';
|
|
28
28
|
iBtn2IconFillType?: 'line' | 'fill';
|
|
29
29
|
overrideIBtn1IconColorKey?: UiColors;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, UiColors } from '../../../common';
|
|
3
3
|
export type UploadIconButtonProps = {
|
|
4
4
|
fillType?: 'fill' | 'line';
|
|
5
5
|
shapeType?: 'circular' | 'rectangle' | 'round';
|
|
@@ -8,7 +8,7 @@ export type UploadIconButtonProps = {
|
|
|
8
8
|
borderColorKey?: UiColors;
|
|
9
9
|
iconSize?: 12 | 16 | 20 | 24 | 32 | 48 | 72;
|
|
10
10
|
iconFillType?: 'fill' | 'line';
|
|
11
|
-
iconName:
|
|
11
|
+
iconName: PDSIconType;
|
|
12
12
|
iconColorKey?: UiColors;
|
|
13
13
|
shadow?: 'hidden' | 'visible';
|
|
14
14
|
colorTheme?: 'none' | 'line1' | 'line2';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, PDSTextType } from '../../../common';
|
|
3
3
|
type UploadMainButtonProps = {
|
|
4
4
|
text?: PDSTextType;
|
|
5
5
|
shapeType?: 'round' | 'rectangle';
|
|
@@ -10,7 +10,7 @@ type UploadMainButtonProps = {
|
|
|
10
10
|
fontWeight?: 'bold' | 'regular';
|
|
11
11
|
iconMode?: 'none' | 'left' | 'right';
|
|
12
12
|
iconFillType?: 'fill' | 'line';
|
|
13
|
-
iconName?:
|
|
13
|
+
iconName?: PDSIconType;
|
|
14
14
|
colorTheme?: 'none' | 'line1' | 'line2' | 'line3' | 'primary1' | 'secondary1';
|
|
15
15
|
state?: 'normal' | 'disabled';
|
|
16
16
|
accept?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { DropdownValueOption,
|
|
2
|
+
import type { DropdownValueOption, PDSIconType, PDSTextType, PDSValueOption } from '../../../common/types';
|
|
3
3
|
type Props = {
|
|
4
4
|
searchFieldHintText?: PDSTextType;
|
|
5
5
|
searchFieldDefaultText?: PDSTextType;
|
|
@@ -14,11 +14,11 @@ type Props = {
|
|
|
14
14
|
dropdownWidth?: string;
|
|
15
15
|
chipMode?: 'none' | 'use';
|
|
16
16
|
iBtnMode?: 'none' | 'iBtn_amount1' | 'iBtn_amount2' | 'iBtn_amount3';
|
|
17
|
-
iBtn1IconName?:
|
|
17
|
+
iBtn1IconName?: PDSIconType;
|
|
18
18
|
iBtn1IconFillType?: 'fill' | 'line';
|
|
19
|
-
iBtn2IconName?:
|
|
19
|
+
iBtn2IconName?: PDSIconType;
|
|
20
20
|
iBtn2IconFillType?: 'fill' | 'line';
|
|
21
|
-
iBtn3IconName?:
|
|
21
|
+
iBtn3IconName?: PDSIconType;
|
|
22
22
|
iBtn3IconFillType?: 'fill' | 'line';
|
|
23
23
|
onChangeDropdown?: (option: DropdownValueOption) => void;
|
|
24
24
|
onClickChip?: (option: PDSValueOption) => void;
|
package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, UiColors } from '../../common';
|
|
3
3
|
export type IconButtonProps = {
|
|
4
4
|
fillType?: 'fill' | 'line';
|
|
5
5
|
shapeType?: 'circular' | 'rectangle';
|
|
@@ -8,7 +8,7 @@ export type IconButtonProps = {
|
|
|
8
8
|
borderColorKey?: UiColors;
|
|
9
9
|
iconSize?: 12 | 16 | 20 | 24 | 48 | 72;
|
|
10
10
|
iconFillType?: 'fill' | 'line';
|
|
11
|
-
iconName:
|
|
11
|
+
iconName: PDSIconType;
|
|
12
12
|
iconColorKey?: UiColors;
|
|
13
13
|
shadow?: 'hidden' | 'visible';
|
|
14
14
|
colorTheme?: 'none' | 'line1' | 'line2';
|
package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/MainButton/MainButton.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, PDSTextType } from '../../common';
|
|
3
3
|
export type MainButtonProps = {
|
|
4
4
|
text?: PDSTextType;
|
|
5
5
|
shapeType?: 'round' | 'rectangle';
|
|
@@ -10,7 +10,7 @@ export type MainButtonProps = {
|
|
|
10
10
|
fontWeight?: 'bold' | 'regular';
|
|
11
11
|
iconMode?: 'none' | 'left' | 'right';
|
|
12
12
|
iconFillType?: 'fill' | 'line';
|
|
13
|
-
iconName?:
|
|
13
|
+
iconName?: PDSIconType;
|
|
14
14
|
colorTheme?: 'none' | 'line1' | 'line2' | 'line3';
|
|
15
15
|
type?: 'button' | 'submit';
|
|
16
16
|
state?: 'normal' | 'disabled';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, UiColors } from '../../common';
|
|
3
3
|
export type IconProps = {
|
|
4
|
-
iconName?:
|
|
4
|
+
iconName?: PDSIconType;
|
|
5
5
|
size?: 12 | 16 | 20 | 24 | 32 | 48 | 56 | 64 | 72;
|
|
6
6
|
colorKey?: UiColors;
|
|
7
7
|
fillType?: 'line' | 'fill';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType, UiColors } from '../../common';
|
|
3
3
|
export type IconButtonProps = {
|
|
4
4
|
fillType?: 'fill' | 'line';
|
|
5
5
|
shapeType?: 'circular' | 'rectangle';
|
|
@@ -8,7 +8,7 @@ export type IconButtonProps = {
|
|
|
8
8
|
borderColorKey?: UiColors;
|
|
9
9
|
iconSize?: 12 | 16 | 20 | 24 | 48 | 72;
|
|
10
10
|
iconFillType?: 'fill' | 'line';
|
|
11
|
-
iconName:
|
|
11
|
+
iconName: PDSIconType;
|
|
12
12
|
iconColorKey?: UiColors;
|
|
13
13
|
shadow?: 'hidden' | 'visible';
|
|
14
14
|
colorTheme?: 'none' | 'line1' | 'line2';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSTextType, PDSIconType } from '../../common';
|
|
3
3
|
export type MainButtonProps = {
|
|
4
4
|
text?: PDSTextType;
|
|
5
5
|
shapeType?: 'round' | 'rectangle';
|
|
@@ -10,7 +10,7 @@ export type MainButtonProps = {
|
|
|
10
10
|
fontWeight?: 'bold' | 'regular';
|
|
11
11
|
iconMode?: 'none' | 'left' | 'right';
|
|
12
12
|
iconFillType?: 'fill' | 'line';
|
|
13
|
-
iconName?:
|
|
13
|
+
iconName?: PDSIconType;
|
|
14
14
|
colorTheme?: 'none' | 'line1' | 'line2' | 'line3';
|
|
15
15
|
type?: 'button' | 'submit';
|
|
16
16
|
state?: 'normal' | 'disabled';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { PDSIconType } from '../../../../../DynamicLayout/components/pdsOriginal/common';
|
|
3
3
|
import type { TextLabelProps } from '../../../../../DynamicLayout/components/pdsOriginal/desktop/TextLabel/TextLabel';
|
|
4
4
|
import type { IItemButton, IItemDescription, IItemTitle, IMembershipCardTemplate } from '../../../../../DynamicLayout/types';
|
|
5
5
|
declare function MembershipSectionItem(): JSX.Element;
|
|
@@ -23,7 +23,7 @@ type IconButtonProps = {
|
|
|
23
23
|
iconButtonBorderColor: string;
|
|
24
24
|
iconButtonDisabledBackgroundColor: string;
|
|
25
25
|
isDisabled?: boolean;
|
|
26
|
-
iconName:
|
|
26
|
+
iconName: PDSIconType;
|
|
27
27
|
state?: 'normal' | 'disabled';
|
|
28
28
|
onClick?: (value?: number | string) => void;
|
|
29
29
|
};
|
|
@@ -32,7 +32,7 @@ type MembershipCardProps = {
|
|
|
32
32
|
};
|
|
33
33
|
type ColorOverrideIconProps = {
|
|
34
34
|
iconColor: string;
|
|
35
|
-
iconName:
|
|
35
|
+
iconName: PDSIconType;
|
|
36
36
|
};
|
|
37
37
|
type XlargeMainButtonProps = {
|
|
38
38
|
buttonTextColor?: string;
|