pds-dev-kit-web 2.1.5 → 2.1.7

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.
Files changed (44) hide show
  1. package/README.md +2 -2
  2. package/dist/index.d.ts +2 -2
  3. package/dist/src/common/index.d.ts +1 -1
  4. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +6 -5
  5. package/dist/src/common/styles/colorSet/PaletteColor_light.json +6 -5
  6. package/dist/src/common/styles/colorSet/SemanticColor.json +3 -1
  7. package/dist/src/common/styles/colorSet/UIColor.json +2 -1
  8. package/dist/src/common/styles/colorSet/index.d.ts +326 -321
  9. package/dist/src/common/styles/colorSet/index.js +2 -2
  10. package/dist/src/common/styles/colorSet/ui-type.d.ts +1 -0
  11. package/dist/src/common/types/components.d.ts +8 -1
  12. package/dist/src/desktop/components/AdminList/AdminList.d.ts +13 -13
  13. package/dist/src/desktop/components/AdminList/BulkActionBar.d.ts +13 -13
  14. package/dist/src/desktop/components/AdminListHeader/AdminListHeader.d.ts +4 -4
  15. package/dist/src/desktop/components/AdminListHeader/HeaderBar.d.ts +4 -4
  16. package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +11 -4
  17. package/dist/src/desktop/components/ContextMenuItem/ContextMenuItem.d.ts +4 -4
  18. package/dist/src/desktop/components/ContextMenuItem/ContextMenuItem.js +1 -1
  19. package/dist/src/desktop/components/IconButton/IconButton.d.ts +1 -1
  20. package/dist/src/desktop/components/IconButton/IconButton.js +19 -14
  21. package/dist/src/desktop/components/SegmentedButtonGroup/SegmentedButtonGroup.d.ts +1 -0
  22. package/dist/src/desktop/components/SegmentedButtonGroup/SegmentedButtonGroup.js +6 -3
  23. package/dist/src/desktop/components/Slider/Slider.js +1 -1
  24. package/dist/src/desktop/components/TextField/TextField.d.ts +2 -1
  25. package/dist/src/desktop/components/TextField/TextField.js +5 -5
  26. package/dist/src/desktop/components/TextLabel/TextLabel.js +6 -18
  27. package/dist/src/desktop/components/UploadIconButton/UploadIconButton.d.ts +1 -1
  28. package/dist/src/desktop/components/UploadIconButton/UploadIconButton.js +18 -13
  29. package/dist/src/mobile/components/BasicButtonGroup/BasicButtonGroup.js +11 -4
  30. package/dist/src/mobile/components/ContextMenuItem/ContextMenuItem.d.ts +4 -4
  31. package/dist/src/mobile/components/ContextMenuItem/ContextMenuItem.js +2 -4
  32. package/dist/src/mobile/components/IconButton/IconButton.d.ts +1 -1
  33. package/dist/src/mobile/components/IconButton/IconButton.js +11 -6
  34. package/dist/src/mobile/components/SegmentedButtonGroup/SegmentedButtonGroup.d.ts +1 -0
  35. package/dist/src/mobile/components/SegmentedButtonGroup/SegmentedButtonGroup.js +6 -3
  36. package/dist/src/mobile/components/TextField/TextField.d.ts +2 -1
  37. package/dist/src/mobile/components/TextField/TextField.js +5 -5
  38. package/dist/src/mobile/components/UploadIconButton/UploadIconButton.d.ts +1 -1
  39. package/dist/src/mobile/components/UploadIconButton/UploadIconButton.js +10 -5
  40. package/dist/src/sub/AdminList/AdminListHeader/AdminListHeader.d.ts +4 -4
  41. package/dist/src/sub/AdminList/AdminListHeader/HeaderBar.d.ts +4 -4
  42. package/dist/src/sub/AdminList/BulkActionBar/BulkActionBar.d.ts +13 -13
  43. package/package.json +1 -1
  44. package/release-note.md +19 -8
@@ -39,7 +39,7 @@ var components_1 = require("../../../hybrid/components");
39
39
  var styled_components_1 = __importStar(require("styled-components"));
40
40
  var TextLabel_1 = require("../TextLabel");
41
41
  function ContextMenuItem(_a) {
42
- var option = _a.option, _b = _a.size, size = _b === void 0 ? 'small' : _b, _c = _a.isSelected, isSelected = _c === void 0 ? false : _c, _d = _a.state, state = _d === void 0 ? 'normal' : _d, displayType = _a.displayType, onClick = _a.onClick, text = _a.text, value = _a.value;
42
+ var option = _a.option, _b = _a.size, size = _b === void 0 ? 'small' : _b, _c = _a.isSelected, isSelected = _c === void 0 ? false : _c, _d = _a.state, state = _d === void 0 ? 'normal' : _d, _e = _a.displayType, displayType = _e === void 0 ? 'text_only' : _e, onClick = _a.onClick, text = _a.text, value = _a.value;
43
43
  var handleClick = function () {
44
44
  if (state === 'disabled') {
45
45
  return;
@@ -67,9 +67,7 @@ function ContextMenuItem(_a) {
67
67
  }
68
68
  return 'ui_cpnt_dropdown_display_icon_normal';
69
69
  };
70
- return ((0, jsx_runtime_1.jsxs)(S_ContextMenuItem, __assign({ "x-pds-name": "ContextMenuItem", "x-pds-element-type": "component", "x-pds-device-type": "mobile", size: size, onClick: handleClick, selected: isSelected, displayType: displayType }, { children: [(displayType === 'icon_only' || displayType === 'icon_text') &&
71
- option &&
72
- 'iconName' in option && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { size: size === 'small' ? 20 : 24, iconName: option.iconName, fillType: option.iconFillType, colorKey: getIconColorKey() }, void 0) }, void 0)), (displayType === 'text_only' || displayType === 'icon_text') && (option === null || option === void 0 ? void 0 : option.text) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: option.text || text, styleTheme: "form2Regular", singleLineMode: "use", colorTheme: textColorTheme, ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }, void 0)] }, void 0))] }), void 0));
70
+ return ((0, jsx_runtime_1.jsxs)(S_ContextMenuItem, __assign({ "x-pds-name": "ContextMenuItem", "x-pds-element-type": "component", "x-pds-device-type": "mobile", size: size, onClick: handleClick, selected: isSelected, displayType: displayType }, { children: [(displayType === 'icon_only' || displayType === 'icon_text') && (option === null || option === void 0 ? void 0 : option.iconName) && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { size: size === 'small' ? 20 : 24, iconName: option.iconName, fillType: option.iconFillType, colorKey: getIconColorKey() }, void 0) }, void 0)), (displayType === 'text_only' || displayType === 'icon_text') && (option === null || option === void 0 ? void 0 : option.text) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: option.text || text, styleTheme: "form2Regular", singleLineMode: "use", colorTheme: textColorTheme, ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }, void 0)] }, void 0))] }), void 0));
73
71
  }
74
72
  var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n padding: 0 ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"], ["\n height: 48px;\n padding: 0 ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"])), function (_a) {
75
73
  var theme = _a.theme;
@@ -2,7 +2,7 @@
2
2
  import type { FillIconNameKeys, LineIconNameKeys, UiColors } from '../../../common';
3
3
  export declare type IconButtonProps = {
4
4
  fillType?: 'fill' | 'line';
5
- shapeType?: 'circular' | 'rectangle';
5
+ shapeType?: 'circular' | 'rectangle' | 'round';
6
6
  baseSize?: 'xxlarge' | 'large' | 'medium' | 'small' | 'xsmall';
7
7
  baseColorKey?: UiColors;
8
8
  borderColorKey?: UiColors;
@@ -128,17 +128,22 @@ var large = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 =
128
128
  var medium = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n height: 40px;\n width: 40px;\n"], ["\n height: 40px;\n width: 40px;\n"])));
129
129
  var small = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n height: 32px;\n width: 32px;\n"], ["\n height: 32px;\n width: 32px;\n"])));
130
130
  var xsmall = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n height: 24px;\n width: 24px;\n"], ["\n height: 24px;\n width: 24px;\n"])));
131
- var line1ColorTheme = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n border-color: ", ";\n"], ["\n border-color: ", ";\n"])), function (_a) {
131
+ var roundStyle = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n border-radius: ", ";\n"], ["\n border-radius: ", ";\n"])), function (_a) {
132
+ var baseSize = _a.baseSize;
133
+ return baseSize &&
134
+ { xxlarge: '24px', large: '14px', medium: '12px', small: '10px', xsmall: '8px' }[baseSize];
135
+ });
136
+ var line1ColorTheme = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n border-color: ", ";\n"], ["\n border-color: ", ";\n"])), function (_a) {
132
137
  var theme = _a.theme;
133
138
  return theme.ui_cpnt_button_line_border_error;
134
139
  });
135
- var line2ColorTheme = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n border-color: ", ";\n"], ["\n border-color: ", ";\n"])), function (_a) {
140
+ var line2ColorTheme = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n border-color: ", ";\n"], ["\n border-color: ", ";\n"])), function (_a) {
136
141
  var theme = _a.theme;
137
142
  return theme.ui_cpnt_button_line_border_primary;
138
143
  });
139
- var iconButtonStyle = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n ", ";\n ", ";\n ", ";\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n ", ";\n ", ";\n ", ";\n ", ";\n"])), function (_a) {
144
+ var iconButtonStyle = (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n ", ";\n ", ";\n ", ";\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n ", ";\n ", ";\n ", ";\n ", ";\n"])), function (_a) {
140
145
  var shapeType = _a.shapeType;
141
- return shapeType && { circular: 'border-radius: 50%', rectangle: '' }[shapeType];
146
+ return shapeType && { circular: 'border-radius: 50%', rectangle: '', round: roundStyle }[shapeType];
142
147
  }, function (_a) {
143
148
  var theme = _a.theme, shadow = _a.shadow;
144
149
  return shadow === 'visible' && "box-shadow: " + theme.boxShadow.elevation2;
@@ -160,6 +165,6 @@ var iconButtonStyle = (0, styled_components_1.css)(templateObject_12 || (templat
160
165
  xsmall: xsmall
161
166
  }[baseSize];
162
167
  });
163
- var S_IconButton = styled_components_1.default.button(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), iconButtonStyle);
168
+ var S_IconButton = styled_components_1.default.button(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), iconButtonStyle);
164
169
  exports.default = IconButton;
165
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13;
170
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14;
@@ -4,6 +4,7 @@ declare type SegmentedButtonGroupValueOption = Pick<PDSValueOption, 'value'> & {
4
4
  iconName: FillIconNameKeys | LineIconNameKeys;
5
5
  iconFillType?: 'fill' | 'line';
6
6
  state?: 'normal' | 'disabled';
7
+ iconColorTheme?: 'none' | 'red';
7
8
  };
8
9
  export declare type SegmentedButtonGroupProps = {
9
10
  size?: 'large' | 'medium' | 'small';
@@ -55,18 +55,21 @@ function SegmentedButtonGroup(_a) {
55
55
  }
56
56
  return value === currentButtonValue;
57
57
  };
58
- var getIconColorKey = function (isSelected, isDisabled) {
58
+ var getIconColorKey = function (isSelected, isDisabled, iconColorTheme) {
59
59
  if (isDisabled) {
60
60
  return 'ui_cpnt_button_icon_disabled';
61
61
  }
62
62
  if (isSelected) {
63
63
  return 'ui_cpnt_button_icon_white';
64
64
  }
65
+ if (iconColorTheme === 'red') {
66
+ return 'ui_cpnt_button_icon_error';
67
+ }
65
68
  return 'ui_cpnt_button_icon_enabled';
66
69
  };
67
70
  return ((0, jsx_runtime_1.jsx)(S_SegmentedButtonGroupGroups, __assign({ "x-pds-name": "SegmentedButtonGroup", "x-pds-element-type": "component", "x-pds-device-type": "mobile", selectedType: selectedType }, { children: valueArray.map(function (_a) {
68
- var currentButtonValue = _a.value, iconName = _a.iconName, _b = _a.iconFillType, iconFillType = _b === void 0 ? 'line' : _b, _c = _a.state, buttonState = _c === void 0 ? 'normal' : _c;
69
- return ((0, jsx_runtime_1.jsx)(S_BasicButton, __assign({ size: size, onClick: function () { return handleClick(currentButtonValue); }, onMouseDown: function () { return handleMouseDown(currentButtonValue); }, disabled: state === 'disabled' || buttonState === 'disabled', selectedType: selectedType, isSelected: checkSelection(currentButtonValue) }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'small' ? 20 : 24, iconFillType: iconFillType, colorKey: getIconColorKey(checkSelection(currentButtonValue), state === 'disabled' || buttonState === 'disabled') }, void 0) }), String(currentButtonValue)));
71
+ var currentButtonValue = _a.value, iconName = _a.iconName, _b = _a.iconFillType, iconFillType = _b === void 0 ? 'line' : _b, _c = _a.iconColorTheme, iconColorTheme = _c === void 0 ? 'none' : _c, _d = _a.state, buttonState = _d === void 0 ? 'normal' : _d;
72
+ return ((0, jsx_runtime_1.jsx)(S_BasicButton, __assign({ size: size, onClick: function () { return handleClick(currentButtonValue); }, onMouseDown: function () { return handleMouseDown(currentButtonValue); }, disabled: state === 'disabled' || buttonState === 'disabled', selectedType: selectedType, isSelected: checkSelection(currentButtonValue) }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'small' ? 20 : 24, iconFillType: iconFillType, colorKey: getIconColorKey(checkSelection(currentButtonValue), state === 'disabled' || buttonState === 'disabled', iconColorTheme) }, void 0) }), String(currentButtonValue)));
70
73
  }) }), void 0));
71
74
  }
72
75
  var S_SegmentedButtonGroupGroups = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: max-content;\n\n & > button:not(:last-child) {\n margin-right: ", ";\n }\n"], ["\n width: max-content;\n\n & > button:not(:last-child) {\n margin-right: ", ";\n }\n"])), function (_a) {
@@ -34,6 +34,7 @@ export declare type TextFieldProps = {
34
34
  autoComplete?: string;
35
35
  numberStepperMode?: 'none' | 'use';
36
36
  numberStep?: number;
37
+ deleteBtnMode?: 'none' | 'use';
37
38
  onBlur?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
38
39
  onChange?: (e: React.ChangeEvent<HTMLInputElement> | React.ChangeEvent<HTMLTextAreaElement>) => void;
39
40
  onClickIBtn1?: () => void;
@@ -43,5 +44,5 @@ export declare type TextFieldProps = {
43
44
  onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLTextAreaElement>) => void;
44
45
  onTarget?: () => void;
45
46
  };
46
- declare function TextField({ name, hintText, defaultText, textAlign, prefixText, suffixText, validation, validationPoint, preventBlankMode, enterSubmitMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, colorTheme, max, maxLength, min, customWidth, autoComplete, numberStepperMode, numberStep, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onKeyDown, onTarget }: TextFieldProps): JSX.Element;
47
+ declare function TextField({ name, hintText, defaultText, textAlign, prefixText, suffixText, validation, validationPoint, preventBlankMode, enterSubmitMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, colorTheme, max, maxLength, min, customWidth, autoComplete, numberStepperMode, numberStep, deleteBtnMode, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onKeyDown, onTarget }: TextFieldProps): JSX.Element;
47
48
  export default TextField;
@@ -46,7 +46,7 @@ var IconButton_1 = require("../IconButton");
46
46
  var TextLabel_1 = require("../TextLabel");
47
47
  function TextField(_a) {
48
48
  var _b;
49
- var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, _c = _a.textAlign, textAlign = _c === void 0 ? 'left' : _c, prefixText = _a.prefixText, suffixText = _a.suffixText, validation = _a.validation, _d = _a.validationPoint, validationPoint = _d === void 0 ? 'onBlur' : _d, _e = _a.preventBlankMode, preventBlankMode = _e === void 0 ? 'none' : _e, _f = _a.enterSubmitMode, enterSubmitMode = _f === void 0 ? 'none' : _f, _g = _a.size, size = _g === void 0 ? 'large' : _g, _h = _a.responsiveMode, responsiveMode = _h === void 0 ? 'none' : _h, _j = _a.textLineType, textLineType = _j === void 0 ? 'single' : _j, _k = _a.multiRows, multiRows = _k === void 0 ? 8 : _k, _l = _a.autoMinRows, autoMinRows = _l === void 0 ? 8 : _l, autoMaxRows = _a.autoMaxRows, _m = _a.inputType, inputType = _m === void 0 ? 'text' : _m, _o = _a.state, state = _o === void 0 ? 'normal' : _o, iBtn1IconName = _a.iBtn1IconName, _p = _a.iBtn1IconFillType, iBtn1IconFillType = _p === void 0 ? 'line' : _p, iBtn2IconName = _a.iBtn2IconName, _q = _a.iBtn2IconFillType, iBtn2IconFillType = _q === void 0 ? 'line' : _q, _r = _a.colorTheme, colorTheme = _r === void 0 ? 'none' : _r, max = _a.max, maxLength = _a.maxLength, min = _a.min, customWidth = _a.customWidth, _s = _a.autoComplete, autoComplete = _s === void 0 ? 'on' : _s, _t = _a.numberStepperMode, numberStepperMode = _t === void 0 ? 'none' : _t, numberStep = _a.numberStep, onBlur = _a.onBlur, onChange = _a.onChange, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onFocus = _a.onFocus, onKeyUp = _a.onKeyUp, onKeyDown = _a.onKeyDown, onTarget = _a.onTarget;
49
+ var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, _c = _a.textAlign, textAlign = _c === void 0 ? 'left' : _c, prefixText = _a.prefixText, suffixText = _a.suffixText, validation = _a.validation, _d = _a.validationPoint, validationPoint = _d === void 0 ? 'onBlur' : _d, _e = _a.preventBlankMode, preventBlankMode = _e === void 0 ? 'none' : _e, _f = _a.enterSubmitMode, enterSubmitMode = _f === void 0 ? 'none' : _f, _g = _a.size, size = _g === void 0 ? 'large' : _g, _h = _a.responsiveMode, responsiveMode = _h === void 0 ? 'none' : _h, _j = _a.textLineType, textLineType = _j === void 0 ? 'single' : _j, _k = _a.multiRows, multiRows = _k === void 0 ? 8 : _k, _l = _a.autoMinRows, autoMinRows = _l === void 0 ? 8 : _l, autoMaxRows = _a.autoMaxRows, _m = _a.inputType, inputType = _m === void 0 ? 'text' : _m, _o = _a.state, state = _o === void 0 ? 'normal' : _o, iBtn1IconName = _a.iBtn1IconName, _p = _a.iBtn1IconFillType, iBtn1IconFillType = _p === void 0 ? 'line' : _p, iBtn2IconName = _a.iBtn2IconName, _q = _a.iBtn2IconFillType, iBtn2IconFillType = _q === void 0 ? 'line' : _q, _r = _a.colorTheme, colorTheme = _r === void 0 ? 'none' : _r, max = _a.max, maxLength = _a.maxLength, min = _a.min, customWidth = _a.customWidth, _s = _a.autoComplete, autoComplete = _s === void 0 ? 'on' : _s, _t = _a.numberStepperMode, numberStepperMode = _t === void 0 ? 'none' : _t, numberStep = _a.numberStep, _u = _a.deleteBtnMode, deleteBtnMode = _u === void 0 ? 'use' : _u, onBlur = _a.onBlur, onChange = _a.onChange, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onFocus = _a.onFocus, onKeyUp = _a.onKeyUp, onKeyDown = _a.onKeyDown, onTarget = _a.onTarget;
50
50
  var basicThemeIconColors = {
51
51
  normal: 'ui_cpnt_button_icon_default',
52
52
  read_only: 'ui_cpnt_button_icon_default',
@@ -62,9 +62,9 @@ function TextField(_a) {
62
62
  read_only: 'ui_cpnt_textfield_icon_colortheme_transparent_readonly',
63
63
  disabled: 'ui_cpnt_textfield_icon_colortheme_transparent_disabled'
64
64
  };
65
- var _u = (0, react_1.useState)(false), isFocused = _u[0], setIsFocused = _u[1];
66
- var _v = (0, react_hook_form_1.useFormContext)(), register = _v.register, trigger = _v.trigger, errors = _v.formState.errors;
67
- var _w = register(name, validation), validateOnChange = _w.onChange, validateOnBlur = _w.onBlur;
65
+ var _v = (0, react_1.useState)(false), isFocused = _v[0], setIsFocused = _v[1];
66
+ var _w = (0, react_hook_form_1.useFormContext)(), register = _w.register, trigger = _w.trigger, errors = _w.formState.errors;
67
+ var _x = register(name, validation), validateOnChange = _x.onChange, validateOnBlur = _x.onBlur;
68
68
  var isError = Object.keys(errors).some(function (error) { return error === name; });
69
69
  var handleClickIBtn1 = function () {
70
70
  if (onClickIBtn1) {
@@ -136,7 +136,7 @@ function TextField(_a) {
136
136
  break;
137
137
  }
138
138
  }
139
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [prefixText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: prefixText, styleTheme: "caption1Bold", colorTheme: "sysTextTertiary", singleLineMode: "use" }, void 0), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0)] }, void 0)), (0, jsx_runtime_1.jsx)(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, textAlign: inputType === 'number' && numberStepperMode === 'use' ? 'right' : textAlign, validation: validation, preventBlankMode: preventBlankMode, enterSubmitMode: enterSubmitMode, textLineType: "single", inputType: inputType, state: state, colorTheme: colorTheme, min: min, max: max, maxLength: maxLength, textSize: "form2", textWeight: "normal", deleteIconMode: "use", deleteIconSize: size === 'large' || size === 'rlarge' ? 20 : 16, deleteIconColor: deleteIconColor, isFocused: isFocused, autoComplete: autoComplete, stepperMode: inputType === 'number' && numberStepperMode === 'use' ? 'use' : 'none', innerSpinButtonSize: size === 'small' ? 12 : 16, step: numberStep, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown }, void 0), (0, jsx_runtime_1.jsxs)(S_RightBox, { children: [suffixText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: suffixText, styleTheme: "caption1Bold", colorTheme: "sysTextTertiary", textAlign: "right", singleLineMode: "use" }, void 0), size === 'large' ? ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0)) : ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }, void 0))] }, void 0)), iBtn2IconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: iBtn2IconName, baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: size === 'large' || size === 'rlarge' ? 20 : 16, iconColorKey: colorTheme &&
139
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [prefixText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: prefixText, styleTheme: "caption1Bold", colorTheme: "sysTextTertiary", singleLineMode: "use" }, void 0), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0)] }, void 0)), (0, jsx_runtime_1.jsx)(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, textAlign: inputType === 'number' && numberStepperMode === 'use' ? 'right' : textAlign, validation: validation, preventBlankMode: preventBlankMode, enterSubmitMode: enterSubmitMode, textLineType: "single", inputType: inputType, state: state, colorTheme: colorTheme, min: min, max: max, maxLength: maxLength, textSize: "form2", textWeight: "normal", deleteIconMode: deleteBtnMode, deleteIconSize: size === 'large' || size === 'rlarge' ? 20 : 16, deleteIconColor: deleteIconColor, isFocused: isFocused, autoComplete: autoComplete, stepperMode: inputType === 'number' && numberStepperMode === 'use' ? 'use' : 'none', innerSpinButtonSize: size === 'small' ? 12 : 16, step: numberStep, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown }, void 0), (0, jsx_runtime_1.jsxs)(S_RightBox, { children: [suffixText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: suffixText, styleTheme: "caption1Bold", colorTheme: "sysTextTertiary", textAlign: "right", singleLineMode: "use" }, void 0), size === 'large' ? ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0)) : ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }, void 0))] }, void 0)), iBtn2IconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: iBtn2IconName, baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: size === 'large' || size === 'rlarge' ? 20 : 16, iconColorKey: colorTheme &&
140
140
  {
141
141
  none: basicThemeIconColors[state],
142
142
  dark: darkThemeIconColors[state],
@@ -2,7 +2,7 @@
2
2
  import type { FillIconNameKeys, LineIconNameKeys, UiColors } from '../../../common';
3
3
  export declare type UploadIconButtonProps = {
4
4
  fillType?: 'fill' | 'line';
5
- shapeType?: 'circular' | 'rectangle';
5
+ shapeType?: 'circular' | 'rectangle' | 'round';
6
6
  baseSize?: 'xxlarge' | 'large' | 'medium' | 'small' | 'xsmall';
7
7
  baseColorKey?: UiColors;
8
8
  borderColorKey?: UiColors;
@@ -122,12 +122,17 @@ var large = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 =
122
122
  var medium = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n height: 40px;\n width: 40px;\n"], ["\n height: 40px;\n width: 40px;\n"])));
123
123
  var small = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n height: 32px;\n width: 32px;\n"], ["\n height: 32px;\n width: 32px;\n"])));
124
124
  var xsmall = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n height: 24px;\n width: 24px;\n"], ["\n height: 24px;\n width: 24px;\n"])));
125
- var S_UploadIconButton = styled_components_1.default.label(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n border-radius: ", ";\n box-shadow: ", ";\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n\n ", ";\n\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n border-radius: ", ";\n box-shadow: ", ";\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n\n ", ";\n\n ", ";\n"])), function (_a) {
126
- var shapeType = _a.shapeType;
127
- return shapeType === 'circular' && '50%';
128
- }, function (_a) {
125
+ var roundStyle = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n border-radius: ", ";\n"], ["\n border-radius: ", ";\n"])), function (_a) {
126
+ var baseSize = _a.baseSize;
127
+ return baseSize &&
128
+ { xxlarge: '24px', large: '14px', medium: '12px', small: '10px', xsmall: '8px' }[baseSize];
129
+ });
130
+ var S_UploadIconButton = styled_components_1.default.label(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-shadow: ", ";\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n ", ";\n\n ", ";\n\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-shadow: ", ";\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n ", ";\n\n ", ";\n\n ", ";\n"])), function (_a) {
129
131
  var theme = _a.theme, shadow = _a.shadow;
130
132
  return shadow === 'visible' && theme.boxShadow.elevation2;
133
+ }, function (_a) {
134
+ var shapeType = _a.shapeType;
135
+ return shapeType && { circular: 'border-radius: 50%', rectangle: '', round: roundStyle }[shapeType];
131
136
  }, function (_a) {
132
137
  var fillType = _a.fillType;
133
138
  return fillType &&
@@ -147,4 +152,4 @@ var S_UploadIconButton = styled_components_1.default.label(templateObject_12 ||
147
152
  }[baseSize];
148
153
  });
149
154
  exports.default = UploadIconButton;
150
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12;
155
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { PDSTextType, PDSValueOption } from '../../../common/types';
2
+ import type { PDSTextType, AdminListDropdownValueOption } from '../../../common/types';
3
3
  declare type Props = {
4
4
  headerBarSize?: 'regular' | 'small';
5
5
  headerBarTitleText?: PDSTextType;
@@ -7,9 +7,9 @@ declare type Props = {
7
7
  currentPage?: number;
8
8
  totalPage?: number;
9
9
  contentText?: PDSTextType;
10
- dropdownTextArray?: PDSValueOption[];
11
- dropdownDefaultValue?: PDSValueOption;
12
- onChangeCount?: (option: PDSValueOption) => void;
10
+ dropdownTextArray?: AdminListDropdownValueOption[];
11
+ dropdownDefaultValue?: AdminListDropdownValueOption;
12
+ onChangeCount?: (option: AdminListDropdownValueOption) => void;
13
13
  onClickNextBtn?: () => void;
14
14
  onClickPrevBtn?: () => void;
15
15
  };
@@ -1,14 +1,14 @@
1
1
  /// <reference types="react" />
2
- import type { PDSTextType, PDSValueOption } from '../../../common/types';
2
+ import type { PDSTextType, AdminListDropdownValueOption } from '../../../common/types';
3
3
  declare type Props = {
4
4
  titleText?: PDSTextType;
5
5
  tooltipText?: PDSTextType;
6
6
  size?: 'regular' | 'small';
7
7
  currentPage?: number;
8
8
  totalPage?: number;
9
- dropdownTextArray: PDSValueOption[];
10
- dropdownDefaultValue?: PDSValueOption;
11
- onChangeDropdown?: (option: PDSValueOption) => void;
9
+ dropdownTextArray: AdminListDropdownValueOption[];
10
+ dropdownDefaultValue?: AdminListDropdownValueOption;
11
+ onChangeDropdown?: (option: AdminListDropdownValueOption) => void;
12
12
  onClickIBtn1?: () => void;
13
13
  onClickIBtn2?: () => void;
14
14
  };
@@ -1,27 +1,27 @@
1
1
  /// <reference types="react" />
2
- import type { PDSTextType, PDSValueOption } from '../../../common/types';
2
+ import type { PDSTextType, AdminListDropdownValueOption } from '../../../common/types';
3
3
  declare type Props = {
4
4
  itemCount?: number;
5
5
  dropdownMode?: 'none' | 'dropdown_amount1' | 'dropdown_amount2' | 'dropdown_amount3';
6
- dropdown1Value?: PDSValueOption;
7
- dropdown2Value?: PDSValueOption;
8
- dropdown3Value?: PDSValueOption;
9
- dropdown1DefaultText?: PDSValueOption;
10
- dropdown2DefaultText?: PDSValueOption;
11
- dropdown3DefaultText?: PDSValueOption;
6
+ dropdown1Value?: AdminListDropdownValueOption;
7
+ dropdown2Value?: AdminListDropdownValueOption;
8
+ dropdown3Value?: AdminListDropdownValueOption;
9
+ dropdown1DefaultText?: AdminListDropdownValueOption;
10
+ dropdown2DefaultText?: AdminListDropdownValueOption;
11
+ dropdown3DefaultText?: AdminListDropdownValueOption;
12
12
  dropdown1HintText?: PDSTextType;
13
13
  dropdown2HintText?: PDSTextType;
14
14
  dropdown3HintText?: PDSTextType;
15
- dropdown1ValueArray?: PDSValueOption[];
16
- dropdown2ValueArray?: PDSValueOption[];
17
- dropdown3ValueArray?: PDSValueOption[];
15
+ dropdown1ValueArray?: AdminListDropdownValueOption[];
16
+ dropdown2ValueArray?: AdminListDropdownValueOption[];
17
+ dropdown3ValueArray?: AdminListDropdownValueOption[];
18
18
  tBtnMode?: 'none' | 'tbtn_amount1' | 'tbtn_amount2' | 'tbtn_amount3';
19
19
  tBtn1Text?: PDSTextType;
20
20
  tBtn2Text?: PDSTextType;
21
21
  tBtn3Text?: PDSTextType;
22
- onChangeDropdown1?: (value: PDSValueOption) => void;
23
- onChangeDropdown2?: (value: PDSValueOption) => void;
24
- onChangeDropdown3?: (value: PDSValueOption) => void;
22
+ onChangeDropdown1?: (value: AdminListDropdownValueOption) => void;
23
+ onChangeDropdown2?: (value: AdminListDropdownValueOption) => void;
24
+ onChangeDropdown3?: (value: AdminListDropdownValueOption) => void;
25
25
  onClickTBtn1?: () => void;
26
26
  onClickTBtn2?: () => void;
27
27
  onClickTBtn3?: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "2.1.5",
3
+ "version": "2.1.7",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,10 +1,21 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v2.1.5]
3
- ## urgent|https://design.storybook.publ.biz/
2
+ ## [v2.1.7]
3
+ ## daily|https://design.storybook.publ.biz/
4
4
 
5
- ### sub
6
- * DynamicLayout
7
- * FullscreenIframSection
8
- * multiPurposeUrl에 빈문자열이 올 경우 about:blank 가 입력되도록 수정(FullscreenIframSection이 재귀적으로 생성되는 이슈 해결)
9
- ### Color
10
- * 컬러 키 값 23.07.12 15시 17분 기준 싱크
5
+ ### Components
6
+ * BasicButtonGroup
7
+ * valueArray에 iconColorTheme='none' | 'red' 추가
8
+ * ContextMenuItem
9
+ * displayType prop에 default value 지정
10
+ * SegmentedButtonGroup
11
+ * iconColorTheme='red' 추가
12
+ * IconButton
13
+ * shapeType prop에 round option 추가
14
+ * UploadIconButton
15
+ * shapeType prop에 round option 추가
16
+ * TextField
17
+ * deleteBtnMode추가
18
+ * TextLabel
19
+ * tooltip 디자인 변경(통일성 위해)
20
+ * D_Slider
21
+ * x-pds-device-type을 mobile에서 desktop으로 변경