pds-dev-kit-web-test 0.1.6 → 0.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 (43) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +8 -1
  3. package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +1 -1
  4. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/ContentsContainer.d.ts +3 -2
  5. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/ContentsContainer.js +2 -2
  6. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSA.d.ts +3 -2
  7. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSA.js +2 -2
  8. package/dist/src/mobile/layout/LayoutMS/ContainersBox/ContainersBox.d.ts +3 -2
  9. package/dist/src/mobile/layout/LayoutMS/ContainersBox/ContainersBox.js +2 -2
  10. package/dist/src/sub/AdminList/AdminList/AdminList.d.ts +47 -0
  11. package/dist/src/sub/AdminList/AdminList/AdminList.js +224 -0
  12. package/dist/src/sub/AdminList/AdminList/HeaderRow.d.ts +30 -0
  13. package/dist/src/sub/AdminList/AdminList/HeaderRow.js +84 -0
  14. package/dist/src/sub/AdminList/AdminList/index.d.ts +1 -0
  15. package/dist/src/sub/AdminList/AdminList/index.js +8 -0
  16. package/dist/src/sub/AdminList/AdminListHeader/AdminListHeader.d.ts +18 -0
  17. package/dist/src/sub/AdminList/AdminListHeader/AdminListHeader.js +60 -0
  18. package/dist/src/sub/AdminList/AdminListHeader/HeaderBar.d.ts +17 -0
  19. package/dist/src/sub/AdminList/AdminListHeader/HeaderBar.js +85 -0
  20. package/dist/src/sub/AdminList/AdminListHeader/index.d.ts +1 -0
  21. package/dist/src/sub/AdminList/AdminListHeader/index.js +8 -0
  22. package/dist/src/sub/AdminList/AdminListItem/AdminListItem.d.ts +57 -0
  23. package/dist/src/sub/AdminList/AdminListItem/AdminListItem.js +263 -0
  24. package/dist/src/sub/AdminList/AdminListItem/index.d.ts +1 -0
  25. package/dist/src/sub/AdminList/AdminListItem/index.js +8 -0
  26. package/dist/src/sub/AdminList/BulkActionBar/BulkActionBar.d.ts +31 -0
  27. package/dist/src/sub/AdminList/BulkActionBar/BulkActionBar.js +31 -0
  28. package/dist/src/sub/AdminList/BulkActionBar/index.d.ts +1 -0
  29. package/dist/src/sub/AdminList/BulkActionBar/index.js +8 -0
  30. package/dist/src/sub/AdminList/ToolBar/ChipList.d.ts +9 -0
  31. package/dist/src/sub/AdminList/ToolBar/ChipList.js +29 -0
  32. package/dist/src/sub/AdminList/ToolBar/SearchField.d.ts +15 -0
  33. package/dist/src/sub/AdminList/ToolBar/SearchField.js +266 -0
  34. package/dist/src/sub/AdminList/ToolBar/ToolBar.d.ts +26 -0
  35. package/dist/src/sub/AdminList/ToolBar/ToolBar.js +85 -0
  36. package/dist/src/sub/AdminList/ToolBar/index.d.ts +1 -0
  37. package/dist/src/sub/AdminList/ToolBar/index.js +8 -0
  38. package/dist/src/sub/AdminList/index.d.ts +5 -0
  39. package/dist/src/sub/AdminList/index.js +13 -0
  40. package/dist/src/sub/index.d.ts +1 -0
  41. package/dist/src/sub/index.js +11 -1
  42. package/package.json +1 -1
  43. package/release-note.md +4 -6
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ var jsx_runtime_1 = require("react/jsx-runtime");
11
+ require("react");
12
+ var styled_components_1 = __importDefault(require("styled-components"));
13
+ require("../../../common");
14
+ var components_1 = require("../../../desktop/components");
15
+ function ChipList(_a) {
16
+ var textArray = _a.textArray, value = _a.value, onClickChip = _a.onClickChip;
17
+ return ((0, jsx_runtime_1.jsx)(S_FilterChipListBox, { children: (0, jsx_runtime_1.jsx)(S_ChipBox, { children: textArray.map(function (option) { return ((0, jsx_runtime_1.jsx)(S_ChipWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.Chip, { displayType: "filter_single", text: option.text, value: value === null || value === void 0 ? void 0 : value.value, id: option.value, onClickChip: function () { return onClickChip && onClickChip(option); } }, void 0) }, option.value)); }) }, void 0) }, void 0));
18
+ }
19
+ var S_FilterChipListBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"], ["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"])));
20
+ var S_ChipBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n margin-right: ", ";\n"], ["\n display: flex;\n flex-wrap: wrap;\n margin-right: ", ";\n"])), function (_a) {
21
+ var theme = _a.theme;
22
+ return theme.spacing.spacingE;
23
+ });
24
+ var S_ChipWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding-right: ", ";\n\n &:last-child {\n padding-right: 0;\n }\n"], ["\n padding-right: ", ";\n\n &:last-child {\n padding-right: 0;\n }\n"])), function (_a) {
25
+ var theme = _a.theme;
26
+ return theme.spacing.spacingB;
27
+ });
28
+ exports.default = ChipList;
29
+ var templateObject_1, templateObject_2, templateObject_3;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { PDSTextType } from '../../../common';
3
+ declare type Props = {
4
+ name: string;
5
+ hintText?: PDSTextType;
6
+ defaultText?: PDSTextType;
7
+ responsiveMode?: 'none' | 'use';
8
+ size?: 'small' | 'medium' | 'large';
9
+ customWidth?: string;
10
+ onTarget?: () => void;
11
+ onClickArrowIBtn?: () => void;
12
+ onClickSearchIBtn?: (value: string) => void;
13
+ };
14
+ declare function SearchField({ name, hintText, defaultText, responsiveMode, size, customWidth, onTarget, onClickArrowIBtn, onClickSearchIBtn }: Props): JSX.Element;
15
+ export default SearchField;
@@ -0,0 +1,266 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ var jsx_runtime_1 = require("react/jsx-runtime");
38
+ var react_1 = require("react");
39
+ var react_hook_form_1 = require("react-hook-form");
40
+ var styled_components_1 = __importStar(require("styled-components"));
41
+ require("../../../common");
42
+ var transitionStyle_1 = require("../../../common/styles/movement/transitionStyle");
43
+ var components_1 = require("../../../desktop/common/components");
44
+ var components_2 = require("../../../desktop/components");
45
+ var hybrid_1 = require("../../../hybrid");
46
+ function SearchField(_a) {
47
+ var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, _b = _a.responsiveMode, responsiveMode = _b === void 0 ? 'none' : _b, _c = _a.size, size = _c === void 0 ? 'medium' : _c, customWidth = _a.customWidth, onTarget = _a.onTarget, onClickArrowIBtn = _a.onClickArrowIBtn, onClickSearchIBtn = _a.onClickSearchIBtn;
48
+ var _d = (0, react_1.useState)(false), isFocused = _d[0], setIsFocused = _d[1];
49
+ var textFieldBaseRef = (0, react_1.useRef)(null);
50
+ var _e = (0, react_hook_form_1.useFormContext)(), register = _e.register, getValues = _e.getValues, trigger = _e.trigger;
51
+ var validateOnBlur = register(name).onBlur;
52
+ var handleFocus = function () {
53
+ setIsFocused(true);
54
+ };
55
+ var handleArrowIBtnClick = function () {
56
+ if (onClickArrowIBtn) {
57
+ onClickArrowIBtn();
58
+ }
59
+ };
60
+ var handleSearchIBtnClick = function () {
61
+ var searchValue = getValues(name);
62
+ if (onClickSearchIBtn) {
63
+ onClickSearchIBtn(searchValue);
64
+ }
65
+ };
66
+ var handleBlur = function (e) {
67
+ validateOnBlur(e);
68
+ setIsFocused(false);
69
+ trigger(name);
70
+ };
71
+ var handleTarget = function () {
72
+ if (onTarget) {
73
+ onTarget();
74
+ }
75
+ };
76
+ return ((0, jsx_runtime_1.jsx)(S_SearchFieldBox, __assign({ "x-pds-name": "SearchField", "x-pds-element-type": "component", "x-pds-device-type": "desktop", size: size, responsiveMode: responsiveMode, customWidth: customWidth }, { children: (0, jsx_runtime_1.jsxs)(S_SearchFieldWrapper, __assign({ size: size, textLineType: "single", isFocused: isFocused, state: "normal", colorTheme: "none", responsiveMode: responsiveMode, customWidth: customWidth }, { children: [(0, jsx_runtime_1.jsx)(components_2.IconButton, { baseSize: "medium", iconSize: 20, iconName: "ic_arrow_left", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: handleArrowIBtnClick }, void 0), (0, jsx_runtime_1.jsx)(components_1.TextFieldBase, { inputRef: textFieldBaseRef, name: name, size: size, hintText: hintText, defaultText: defaultText, enterSubmitMode: "use", textLineType: "single", textSize: "form2", textWeight: "normal", textPadding: "0 0 0 8px", deleteIconMode: "use", deleteIconSize: size === 'large' ? 20 : 16, deleteIconColor: "ui_cpnt_button_icon_disabled", isFocused: isFocused, onFocus: handleFocus, onBlur: handleBlur, onTarget: handleTarget, onChange: register('searchField').onChange }, void 0), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(components_2.IconButton, { baseSize: "medium", iconSize: 20, iconName: "ic_search", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: handleSearchIBtnClick }, void 0)] }), void 0) }), void 0));
77
+ }
78
+ var S_SearchFieldBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n ", ";\n ", "\n"], ["\n ", ";\n ", ";\n ", "\n"])), function (_a) {
79
+ var size = _a.size;
80
+ return size &&
81
+ {
82
+ small: 'width: 188px;',
83
+ medium: 'width: 188px;',
84
+ large: 'width: 432px;'
85
+ }[size];
86
+ }, function (_a) {
87
+ var responsiveMode = _a.responsiveMode;
88
+ return responsiveMode === 'use' && 'width: 100%';
89
+ }, function (_a) {
90
+ var customWidth = _a.customWidth;
91
+ return customWidth && "width: " + customWidth + ";";
92
+ });
93
+ var multi = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: auto;\n padding: 14px;\n"], ["\n height: auto;\n padding: 14px;\n"])));
94
+ var auto = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: auto;\n padding-bottom: ", "px;\n padding-top: ", "px;\n"], ["\n height: auto;\n padding-bottom: ", "px;\n padding-top: ", "px;\n"])), function (_a) {
95
+ var theme = _a.theme;
96
+ return (46 -
97
+ Number(theme.desktopFontSize.form2.substring(0, 2)) * Number(theme.desktopLineHeight.form2)) /
98
+ 2;
99
+ }, function (_a) {
100
+ var theme = _a.theme;
101
+ return (46 -
102
+ Number(theme.desktopFontSize.form2.substring(0, 2)) * Number(theme.desktopLineHeight.form2)) /
103
+ 2;
104
+ });
105
+ var small = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 10px;\n height: 32px;\n padding-right: ", ";\n width: 188px;\n"], ["\n border-radius: 10px;\n height: 32px;\n padding-right: ", ";\n width: 188px;\n"])), function (_a) {
106
+ var theme = _a.theme;
107
+ return theme.spacing.spacingB;
108
+ });
109
+ var medium = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: 40px;\n padding-right: ", ";\n width: 188px;\n"], ["\n height: 40px;\n padding-right: ", ";\n width: 188px;\n"])), function (_a) {
110
+ var theme = _a.theme;
111
+ return theme.spacing.spacingB;
112
+ });
113
+ var large = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n height: 48px;\n padding-right: ", ";\n width: 432px;\n ", "\n ", "\n"], ["\n height: 48px;\n padding-right: ", ";\n width: 432px;\n ", "\n ", "\n"])), function (_a) {
114
+ var theme = _a.theme;
115
+ return theme.spacing.spacingB;
116
+ }, function (_a) {
117
+ var textLineType = _a.textLineType;
118
+ return textLineType === 'multi' && multi;
119
+ }, function (_a) {
120
+ var textLineType = _a.textLineType;
121
+ return textLineType === 'auto' && auto;
122
+ });
123
+ var normal = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px\n ", ";\n"], ["\n background-color: ", ";\n border: solid 2px\n ", ";\n"])), function (_a) {
124
+ var theme = _a.theme;
125
+ return theme.ui_cpnt_textfield_base_normal;
126
+ }, function (_a) {
127
+ var theme = _a.theme, isError = _a.isError, isFocused = _a.isFocused;
128
+ if (isError)
129
+ return theme.ui_cpnt_textfield_border_error;
130
+ if (isFocused)
131
+ return theme.ui_cpnt_textfield_border_focus;
132
+ return theme.ui_cpnt_textfield_border_normal;
133
+ });
134
+ var read_only = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px ", ";\n"], ["\n background-color: ", ";\n border: solid 2px ", ";\n"])), function (_a) {
135
+ var theme = _a.theme;
136
+ return theme.ui_cpnt_textfield_base_disabled;
137
+ }, function (_a) {
138
+ var theme = _a.theme;
139
+ return theme.ui_cpnt_textfield_border_disabled;
140
+ });
141
+ var disabled = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px ", ";\n"], ["\n background-color: ", ";\n border: solid 2px ", ";\n"])), function (_a) {
142
+ var theme = _a.theme;
143
+ return theme.ui_cpnt_textfield_base_disabled;
144
+ }, function (_a) {
145
+ var theme = _a.theme;
146
+ return theme.ui_cpnt_textfield_border_disabled;
147
+ });
148
+ var dark_normal = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px\n ", ";\n"], ["\n background-color: ", ";\n border: solid 2px\n ", ";\n"])), function (_a) {
149
+ var theme = _a.theme;
150
+ return theme.ui_cpnt_textfield_base_darktheme_normal;
151
+ }, function (_a) {
152
+ var theme = _a.theme, isError = _a.isError, isFocused = _a.isFocused;
153
+ if (isError)
154
+ return theme.ui_cpnt_textfield_border_darktheme_error;
155
+ if (isFocused)
156
+ return theme.ui_cpnt_textfield_border_darktheme_focus;
157
+ return theme.ui_cpnt_textfield_border_darktheme_normal;
158
+ });
159
+ var dark_read_only = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px ", ";\n"], ["\n background-color: ", ";\n border: solid 2px ", ";\n"])), function (_a) {
160
+ var theme = _a.theme;
161
+ return theme.ui_cpnt_textfield_base_darktheme_disabled;
162
+ }, function (_a) {
163
+ var theme = _a.theme;
164
+ return theme.ui_cpnt_textfield_border_darktheme_normal;
165
+ });
166
+ var dark_disabled = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px ", ";\n"], ["\n background-color: ", ";\n border: solid 2px ", ";\n"])), function (_a) {
167
+ var theme = _a.theme;
168
+ return theme.ui_cpnt_textfield_base_darktheme_disabled;
169
+ }, function (_a) {
170
+ var theme = _a.theme;
171
+ return theme.ui_cpnt_textfield_border_darktheme_normal;
172
+ });
173
+ var transparent_normal = (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px\n ", ";\n"], ["\n background-color: ", ";\n border: solid 2px\n ", ";\n"])), function (_a) {
174
+ var theme = _a.theme;
175
+ return theme.ui_cpnt_textfield_base_colortheme_transparent_normal;
176
+ }, function (_a) {
177
+ var theme = _a.theme, isError = _a.isError, isFocused = _a.isFocused;
178
+ if (isError)
179
+ return theme.ui_cpnt_textfield_border_colortheme_transparent_error;
180
+ if (isFocused)
181
+ return theme.ui_cpnt_textfield_border_colortheme_transparent_focus;
182
+ return theme.ui_cpnt_textfield_border_colortheme_transparent_normal;
183
+ });
184
+ var transparent_read_only = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px ", ";\n"], ["\n background-color: ", ";\n border: solid 2px ", ";\n"])), function (_a) {
185
+ var theme = _a.theme;
186
+ return theme.ui_cpnt_textfield_base_colortheme_transparent_readonly;
187
+ }, function (_a) {
188
+ var theme = _a.theme;
189
+ return theme.ui_cpnt_textfield_border_colortheme_transparent_readonly;
190
+ });
191
+ var transparent_disabled = (0, styled_components_1.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 2px ", ";\n"], ["\n background-color: ", ";\n border: solid 2px ", ";\n"])), function (_a) {
192
+ var theme = _a.theme;
193
+ return theme.ui_cpnt_textfield_base_colortheme_transparent_disabled;
194
+ }, function (_a) {
195
+ var theme = _a.theme;
196
+ return theme.ui_cpnt_textfield_border_colortheme_transparent_disabled;
197
+ });
198
+ var backgroundHoverColor = (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
199
+ var colorTheme = _a.colorTheme, theme = _a.theme;
200
+ switch (colorTheme) {
201
+ case 'none':
202
+ return theme.ui_cpnt_textfield_base_hover;
203
+ case 'dark':
204
+ return theme.ui_cpnt_textfield_base_hover_darktheme;
205
+ case 'transparent':
206
+ return theme.ui_cpnt_textfield_base_hover_transparent;
207
+ default:
208
+ return theme.ui_cpnt_textfield_base_hover;
209
+ }
210
+ });
211
+ var backgroundActiveColor = (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
212
+ var colorTheme = _a.colorTheme, theme = _a.theme;
213
+ switch (colorTheme) {
214
+ case 'none':
215
+ return theme.ui_cpnt_textfield_base_pressed;
216
+ case 'dark':
217
+ return theme.ui_cpnt_textfield_base_pressed_darktheme;
218
+ case 'transparent':
219
+ return theme.ui_cpnt_textfield_base_pressed_transparent;
220
+ default:
221
+ return theme.ui_cpnt_textfield_base_pressed;
222
+ }
223
+ });
224
+ var normalActionColor = (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n"], ["\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n"])), backgroundHoverColor, backgroundActiveColor);
225
+ var S_SearchFieldWrapper = styled_components_1.default.div(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n align-items: center;\n border-radius: 14px;\n box-sizing: border-box;\n cursor: ", ";\n display: flex;\n ", ";\n ", ";\n\n ", "\n\n ", "\n\n ", ";\n ", "\n"], ["\n align-items: center;\n border-radius: 14px;\n box-sizing: border-box;\n cursor: ", ";\n display: flex;\n ", ";\n ", ";\n\n ", "\n\n ", "\n\n ", ";\n ", "\n"])), function (_a) {
226
+ var state = _a.state;
227
+ return (state === 'disabled' ? 'not-allowed' : 'text');
228
+ }, function (_a) {
229
+ var size = _a.size;
230
+ return size &&
231
+ {
232
+ small: small,
233
+ medium: medium,
234
+ large: large
235
+ }[size];
236
+ }, function (_a) {
237
+ var state = _a.state, colorTheme = _a.colorTheme;
238
+ if (state) {
239
+ switch (colorTheme) {
240
+ case 'none': {
241
+ return { normal: normal, read_only: read_only, disabled: disabled }[state];
242
+ }
243
+ case 'dark': {
244
+ return { normal: dark_normal, read_only: dark_read_only, disabled: dark_disabled }[state];
245
+ }
246
+ case 'transparent': {
247
+ return {
248
+ normal: transparent_normal,
249
+ read_only: transparent_read_only,
250
+ disabled: transparent_disabled
251
+ }[state];
252
+ }
253
+ }
254
+ }
255
+ }, transitionStyle_1.InputTransition, function (_a) {
256
+ var state = _a.state;
257
+ return state === 'normal' && normalActionColor;
258
+ }, function (_a) {
259
+ var responsiveMode = _a.responsiveMode;
260
+ return responsiveMode === 'use' && 'width: 100%';
261
+ }, function (_a) {
262
+ var customWidth = _a.customWidth;
263
+ return customWidth && "width: " + customWidth + ";";
264
+ });
265
+ exports.default = SearchField;
266
+ 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, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19;
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ import { FillIconNameKeys, LineIconNameKeys, PDSTextType, PDSValueOption } from '../../../common';
3
+ declare type Props = {
4
+ searchFieldHintText?: PDSTextType;
5
+ searchFieldDefaultText?: PDSTextType;
6
+ chipTextArray?: PDSValueOption[];
7
+ chipValue?: PDSValueOption;
8
+ searchMode?: 'none' | 'use';
9
+ chipMode?: 'none' | 'use';
10
+ iBtnMode?: 'none' | 'iBtn_amount1' | 'iBtn_amount2' | 'iBtn_amount3';
11
+ iBtn1IconName?: FillIconNameKeys | LineIconNameKeys;
12
+ iBtn1IconFillType?: 'fill' | 'line';
13
+ iBtn2IconName?: FillIconNameKeys | LineIconNameKeys;
14
+ iBtn2IconFillType?: 'fill' | 'line';
15
+ iBtn3IconName?: FillIconNameKeys | LineIconNameKeys;
16
+ iBtn3IconFillType?: 'fill' | 'line';
17
+ onClickChip?: (option: PDSValueOption) => void;
18
+ onClickSearchFieldResetIBtn?: () => void;
19
+ onClickSearchIBtn?: (value: string) => void;
20
+ onEnterKeyDown?: (value: string) => void;
21
+ onClickIBtn1?: () => void;
22
+ onClickIBtn2?: () => void;
23
+ onClickIBtn3?: () => void;
24
+ };
25
+ declare function ToolBar({ searchFieldHintText, searchFieldDefaultText, chipTextArray, chipValue, searchMode, chipMode, iBtnMode, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, iBtn3IconName, iBtn3IconFillType, onClickChip, onClickSearchFieldResetIBtn, onClickSearchIBtn, onEnterKeyDown, onClickIBtn1, onClickIBtn2, onClickIBtn3 }: Props): JSX.Element;
26
+ export default ToolBar;
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ var __importDefault = (this && this.__importDefault) || function (mod) {
18
+ return (mod && mod.__esModule) ? mod : { "default": mod };
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ var jsx_runtime_1 = require("react/jsx-runtime");
22
+ var react_1 = require("react");
23
+ var react_hook_form_1 = require("react-hook-form");
24
+ var styled_components_1 = __importDefault(require("styled-components"));
25
+ var common_1 = require("../../../common");
26
+ var components_1 = require("../../../desktop/components");
27
+ var hybrid_1 = require("../../../hybrid");
28
+ var ChipList_1 = __importDefault(require("./ChipList"));
29
+ var SearchField_1 = __importDefault(require("./SearchField"));
30
+ function ToolBar(_a) {
31
+ var searchFieldHintText = _a.searchFieldHintText, searchFieldDefaultText = _a.searchFieldDefaultText, chipTextArray = _a.chipTextArray, chipValue = _a.chipValue, _b = _a.searchMode, searchMode = _b === void 0 ? 'none' : _b, _c = _a.chipMode, chipMode = _c === void 0 ? 'none' : _c, _d = _a.iBtnMode, iBtnMode = _d === void 0 ? 'none' : _d, iBtn1IconName = _a.iBtn1IconName, _e = _a.iBtn1IconFillType, iBtn1IconFillType = _e === void 0 ? 'line' : _e, iBtn2IconName = _a.iBtn2IconName, _f = _a.iBtn2IconFillType, iBtn2IconFillType = _f === void 0 ? 'line' : _f, iBtn3IconName = _a.iBtn3IconName, _g = _a.iBtn3IconFillType, iBtn3IconFillType = _g === void 0 ? 'line' : _g, onClickChip = _a.onClickChip, onClickSearchFieldResetIBtn = _a.onClickSearchFieldResetIBtn, onClickSearchIBtn = _a.onClickSearchIBtn, onEnterKeyDown = _a.onEnterKeyDown, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onClickIBtn3 = _a.onClickIBtn3;
32
+ var _h = (0, react_1.useState)(!!searchFieldDefaultText), isShowSearchField = _h[0], setIsShowSearchField = _h[1];
33
+ var methods = (0, react_hook_form_1.useForm)();
34
+ var reset = methods.reset, handleSubmit = methods.handleSubmit;
35
+ var onSubmit = function (_a) {
36
+ var searchField = _a.searchField;
37
+ if (onEnterKeyDown) {
38
+ onEnterKeyDown(searchField);
39
+ }
40
+ };
41
+ var handleArrowIBtnClick = function () {
42
+ setIsShowSearchField(false);
43
+ reset();
44
+ if (onClickSearchFieldResetIBtn) {
45
+ onClickSearchFieldResetIBtn();
46
+ }
47
+ };
48
+ var handleSearchIBtnClick = function (value) {
49
+ if (onClickSearchIBtn) {
50
+ onClickSearchIBtn(value);
51
+ }
52
+ };
53
+ var handleSearchFieldShowIBtnClick = function () {
54
+ setIsShowSearchField(function (prev) { return !prev; });
55
+ };
56
+ var handleChipClick = function (option) {
57
+ if (onClickChip) {
58
+ onClickChip(option);
59
+ }
60
+ };
61
+ var handleIBtn1Click = function () {
62
+ if (onClickIBtn1) {
63
+ onClickIBtn1();
64
+ }
65
+ };
66
+ var handleIBtn2Click = function () {
67
+ if (onClickIBtn2) {
68
+ onClickIBtn2();
69
+ }
70
+ };
71
+ var handleIBtn3Click = function () {
72
+ if (onClickIBtn3) {
73
+ onClickIBtn3();
74
+ }
75
+ };
76
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(S_ToolBarBox, { children: [(0, jsx_runtime_1.jsx)(S_FilterBox, { children: isShowSearchField ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: searchMode === 'use' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_e", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(react_hook_form_1.FormProvider, __assign({}, methods, { children: (0, jsx_runtime_1.jsx)(common_1.Form, __assign({ onSubmit: handleSubmit(onSubmit) }, { children: (0, jsx_runtime_1.jsx)(SearchField_1.default, { name: "searchField", hintText: searchFieldHintText, defaultText: searchFieldDefaultText, onClickArrowIBtn: handleArrowIBtnClick, onClickSearchIBtn: handleSearchIBtnClick, customWidth: "424px" }, void 0) }), void 0) }), void 0)] }, void 0)) }, void 0)) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [searchMode === 'use' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(components_1.IconButton, { fillType: "fill", baseSize: "small", iconSize: 24, shapeType: "rectangle", iconName: "ic_search", iconFillType: "fill", iconColorKey: "ui_cpnt_list_icon_01", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: handleSearchFieldShowIBtnClick }, void 0)] }, void 0)), chipMode === 'use' && chipTextArray && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(ChipList_1.default, { textArray: chipTextArray, value: chipValue, onClickChip: handleChipClick }, void 0)] }, void 0))] }, void 0)) }, void 0), (0, jsx_runtime_1.jsx)(S_IconButtonBox, { children: iBtnMode !== 'none' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [iBtnMode === 'iBtn_amount3' && iBtn3IconName && ((0, jsx_runtime_1.jsx)(components_1.IconButton, { fillType: "fill", baseSize: "medium", iconSize: 24, shapeType: "rectangle", iconName: iBtn3IconName, iconFillType: iBtn3IconFillType, iconColorKey: "ui_cpnt_list_icon_01", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: handleIBtn3Click }, void 0)), (iBtnMode === 'iBtn_amount2' || iBtnMode === 'iBtn_amount3') && iBtn2IconName && ((0, jsx_runtime_1.jsx)(components_1.IconButton, { fillType: "fill", baseSize: "medium", iconSize: 24, shapeType: "rectangle", iconName: iBtn2IconName, iconFillType: iBtn2IconFillType, iconColorKey: "ui_cpnt_list_icon_01", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: handleIBtn2Click }, void 0)), iBtn1IconName && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.IconButton, { fillType: "fill", baseSize: "medium", iconSize: 24, shapeType: "rectangle", iconName: iBtn1IconName, iconFillType: iBtn1IconFillType, iconColorKey: "ui_cpnt_list_icon_01", baseColorKey: "ui_cpnt_button_fill_base_transparent", onClick: handleIBtn1Click }, void 0), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_d", spacingType: "width" }, void 0)] }, void 0))] }, void 0)) }, void 0)] }, void 0), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_d" }, void 0)] }, void 0));
77
+ }
78
+ var S_ToolBarBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: 40px;\n"], ["\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: 40px;\n"])));
79
+ var S_FilterBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
80
+ var S_IconButtonBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n\n & > :not(:first-child) {\n margin-left: ", ";\n }\n"], ["\n display: flex;\n\n & > :not(:first-child) {\n margin-left: ", ";\n }\n"])), function (_a) {
81
+ var theme = _a.theme;
82
+ return theme.spacing.spacingB;
83
+ });
84
+ exports.default = ToolBar;
85
+ var templateObject_1, templateObject_2, templateObject_3;
@@ -0,0 +1 @@
1
+ export { default as ToolBar } from './ToolBar';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ToolBar = void 0;
7
+ var ToolBar_1 = require("./ToolBar");
8
+ Object.defineProperty(exports, "ToolBar", { enumerable: true, get: function () { return __importDefault(ToolBar_1).default; } });
@@ -0,0 +1,5 @@
1
+ export { AdminList } from './AdminList';
2
+ export { AdminListHeader } from './AdminListHeader';
3
+ export { AdminListItem } from './AdminListItem';
4
+ export { BulkActionBar } from './BulkActionBar';
5
+ export { ToolBar } from './ToolBar';
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ToolBar = exports.BulkActionBar = exports.AdminListItem = exports.AdminListHeader = exports.AdminList = void 0;
4
+ var AdminList_1 = require("./AdminList");
5
+ Object.defineProperty(exports, "AdminList", { enumerable: true, get: function () { return AdminList_1.AdminList; } });
6
+ var AdminListHeader_1 = require("./AdminListHeader");
7
+ Object.defineProperty(exports, "AdminListHeader", { enumerable: true, get: function () { return AdminListHeader_1.AdminListHeader; } });
8
+ var AdminListItem_1 = require("./AdminListItem");
9
+ Object.defineProperty(exports, "AdminListItem", { enumerable: true, get: function () { return AdminListItem_1.AdminListItem; } });
10
+ var BulkActionBar_1 = require("./BulkActionBar");
11
+ Object.defineProperty(exports, "BulkActionBar", { enumerable: true, get: function () { return BulkActionBar_1.BulkActionBar; } });
12
+ var ToolBar_1 = require("./ToolBar");
13
+ Object.defineProperty(exports, "ToolBar", { enumerable: true, get: function () { return ToolBar_1.ToolBar; } });
@@ -1 +1,2 @@
1
1
  export { DynamicLayout } from './DynamicLayout';
2
+ export * from './AdminList';
@@ -1,6 +1,16 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
2
12
  Object.defineProperty(exports, "__esModule", { value: true });
3
13
  exports.DynamicLayout = void 0;
4
- // NOTE: 이름은 변경될 수 있습니다.
5
14
  var DynamicLayout_1 = require("./DynamicLayout");
6
15
  Object.defineProperty(exports, "DynamicLayout", { enumerable: true, get: function () { return DynamicLayout_1.DynamicLayout; } });
16
+ __exportStar(require("./AdminList"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,7 +1,5 @@
1
1
  # PDS-DEV-KIT-WEB-TEST Release Notes
2
- ## [v0.1.6]
3
- ## 기준 pds-dev-kit-web 버전 @1.9.18
4
-
5
- ### Package
6
- * 패키지화를 시킬시 스토리 파일이 포함되지 않도록 조치
7
- * npmignore 수정
2
+ ## [v0.1.7]
3
+ ## 기준 pds-dev-kit-web 버전 @1.9.19
4
+ ### sub
5
+ * AdminList 추가