pds-dev-kit-web 2.2.31 → 2.2.33
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/index.d.ts +2 -2
- package/dist/src/common/assets/icons/fill/DeviceMobileNotification.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/DeviceMobileNotification.js +30 -0
- package/dist/src/common/assets/icons/fill/index.d.ts +1 -0
- package/dist/src/common/assets/icons/fill/index.js +2 -0
- package/dist/src/common/assets/icons/line/DeviceMobileNotification.d.ts +4 -0
- package/dist/src/common/assets/icons/line/DeviceMobileNotification.js +30 -0
- package/dist/src/common/assets/icons/line/index.d.ts +1 -0
- package/dist/src/common/assets/icons/line/index.js +2 -0
- package/dist/src/common/index.d.ts +1 -1
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +2 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +2 -1
- package/dist/src/common/styles/colorSet/UIColor.json +2 -1
- package/dist/src/common/styles/colorSet/index.d.ts +350 -347
- package/dist/src/common/styles/colorSet/index.js +3 -3
- package/dist/src/common/styles/colorSet/ui-type.d.ts +1 -0
- package/dist/src/common/types/components.d.ts +5 -0
- package/dist/src/desktop/components/Dropdown/Dropdown.d.ts +3 -2
- package/dist/src/desktop/components/Dropdown/Dropdown.js +121 -19
- package/dist/src/desktop/components/DynamicDesktopNavBar/DynamicDesktopNavBar.js +25 -6
- package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/UserProfile.d.ts +2 -2
- package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/UserProfile.js +7 -5
- package/dist/src/desktop/components/DynamicDesktopNavBar/templates/DynamicDesktopNavBarTemplates.d.ts +136 -1
- package/dist/src/desktop/components/DynamicDesktopNavBar/templates/constants.d.ts +141 -0
- package/dist/src/desktop/components/DynamicDesktopNavBar/templates/constants.js +141 -0
- package/dist/src/mobile/components/Dropdown/Dropdown.d.ts +3 -2
- package/dist/src/mobile/components/Dropdown/Dropdown.js +120 -18
- package/package.json +1 -1
- package/release-note.md +4 -6
|
@@ -109,4 +109,145 @@ export declare const TEMPLATES_DATA: {
|
|
|
109
109
|
style: {};
|
|
110
110
|
};
|
|
111
111
|
};
|
|
112
|
+
W1_0006: {
|
|
113
|
+
gridTemplate: string;
|
|
114
|
+
gridStyle: {
|
|
115
|
+
width: string;
|
|
116
|
+
gridTemplateColumns: string;
|
|
117
|
+
};
|
|
118
|
+
showSecondaryMenu: boolean;
|
|
119
|
+
userProfileOptions: {
|
|
120
|
+
style: {
|
|
121
|
+
width: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
primaryMenuOptions: {
|
|
125
|
+
showMenuAsIcon: boolean;
|
|
126
|
+
maxLength: number;
|
|
127
|
+
style: {
|
|
128
|
+
justifyContent: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
secondaryMenuOptions: {
|
|
132
|
+
showMenuAsIcon: boolean;
|
|
133
|
+
maxLength: number;
|
|
134
|
+
style: {};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
W1_0007: {
|
|
138
|
+
gridTemplate: string;
|
|
139
|
+
gridStyle: {
|
|
140
|
+
width: string;
|
|
141
|
+
gridTemplateColumns: string;
|
|
142
|
+
};
|
|
143
|
+
showSecondaryMenu: boolean;
|
|
144
|
+
primaryMenuOptions: {
|
|
145
|
+
showMenuAsIcon: boolean;
|
|
146
|
+
maxLength: number;
|
|
147
|
+
style: {};
|
|
148
|
+
};
|
|
149
|
+
secondaryMenuOptions: {
|
|
150
|
+
showMenuAsIcon: boolean;
|
|
151
|
+
maxLength: number;
|
|
152
|
+
style: {};
|
|
153
|
+
};
|
|
154
|
+
userProfileOptions: {
|
|
155
|
+
style: {};
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
W1_0008: {
|
|
159
|
+
gridTemplate: string;
|
|
160
|
+
gridStyle: {
|
|
161
|
+
width: string;
|
|
162
|
+
gridTemplateColumns: string;
|
|
163
|
+
};
|
|
164
|
+
showSecondaryMenu: boolean;
|
|
165
|
+
primaryMenuOptions: {
|
|
166
|
+
showMenuAsIcon: boolean;
|
|
167
|
+
maxLength: number;
|
|
168
|
+
style: {};
|
|
169
|
+
};
|
|
170
|
+
secondaryMenuOptions: {
|
|
171
|
+
showMenuAsIcon: boolean;
|
|
172
|
+
maxLength: number;
|
|
173
|
+
style: {};
|
|
174
|
+
};
|
|
175
|
+
userProfileOptions: {
|
|
176
|
+
style: {};
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
W1_0009: {
|
|
180
|
+
gridTemplate: string;
|
|
181
|
+
gridStyle: {
|
|
182
|
+
width: string;
|
|
183
|
+
gridTemplateColumns: string;
|
|
184
|
+
};
|
|
185
|
+
showSecondaryMenu: boolean;
|
|
186
|
+
primaryMenuOptions: {
|
|
187
|
+
showMenuAsIcon: boolean;
|
|
188
|
+
maxLength: number;
|
|
189
|
+
style: {
|
|
190
|
+
justifyContent: string;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
secondaryMenuOptions: {
|
|
194
|
+
showMenuAsIcon: boolean;
|
|
195
|
+
maxLength: number;
|
|
196
|
+
style: {};
|
|
197
|
+
};
|
|
198
|
+
userProfileOptions: {
|
|
199
|
+
style: {};
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
W1_0010: {
|
|
203
|
+
gridTemplate: string;
|
|
204
|
+
gridStyle: {
|
|
205
|
+
width: string;
|
|
206
|
+
gridTemplateColumns: string;
|
|
207
|
+
};
|
|
208
|
+
showSecondaryMenu: boolean;
|
|
209
|
+
primaryMenuOptions: {
|
|
210
|
+
showMenuAsIcon: boolean;
|
|
211
|
+
maxLength: number;
|
|
212
|
+
style: {
|
|
213
|
+
justifyContent: string;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
secondaryMenuOptions: {
|
|
217
|
+
showMenuAsIcon: boolean;
|
|
218
|
+
maxLength: number;
|
|
219
|
+
style: {
|
|
220
|
+
justifyContent: string;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
userProfileOptions: {
|
|
224
|
+
style: {};
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
W1_0011: {
|
|
228
|
+
gridTemplate: string;
|
|
229
|
+
gridStyle: {
|
|
230
|
+
gridTemplateColumns: string;
|
|
231
|
+
};
|
|
232
|
+
showSecondaryMenu: boolean;
|
|
233
|
+
primaryMenuOptions: {
|
|
234
|
+
showMenuAsIcon: boolean;
|
|
235
|
+
maxLength: number;
|
|
236
|
+
style: {
|
|
237
|
+
justifyContent: string;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
secondaryMenuOptions: {
|
|
241
|
+
showMenuAsIcon: boolean;
|
|
242
|
+
maxLength: number;
|
|
243
|
+
style: {
|
|
244
|
+
width: string;
|
|
245
|
+
justifyContent: string;
|
|
246
|
+
paddingLeft: string;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
userProfileOptions: {
|
|
250
|
+
style: {};
|
|
251
|
+
};
|
|
252
|
+
};
|
|
112
253
|
};
|
|
@@ -111,5 +111,146 @@ exports.TEMPLATES_DATA = {
|
|
|
111
111
|
userProfileOptions: {
|
|
112
112
|
style: {}
|
|
113
113
|
}
|
|
114
|
+
},
|
|
115
|
+
W1_0006: {
|
|
116
|
+
gridTemplate: 'BRAND_LOGO PRIMARY_MENU USER_PROFILE',
|
|
117
|
+
gridStyle: {
|
|
118
|
+
width: '1400px',
|
|
119
|
+
gridTemplateColumns: 'max-content auto max-content'
|
|
120
|
+
},
|
|
121
|
+
showSecondaryMenu: false,
|
|
122
|
+
userProfileOptions: {
|
|
123
|
+
style: {
|
|
124
|
+
width: '180px'
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
primaryMenuOptions: {
|
|
128
|
+
showMenuAsIcon: false,
|
|
129
|
+
maxLength: 99,
|
|
130
|
+
style: {
|
|
131
|
+
justifyContent: 'center'
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
secondaryMenuOptions: {
|
|
135
|
+
showMenuAsIcon: false,
|
|
136
|
+
maxLength: 0,
|
|
137
|
+
style: {}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
W1_0007: {
|
|
141
|
+
gridTemplate: 'BRAND_LOGO PRIMARY_MENU USER_PROFILE',
|
|
142
|
+
gridStyle: {
|
|
143
|
+
width: '1400px',
|
|
144
|
+
gridTemplateColumns: 'max-content auto max-content'
|
|
145
|
+
},
|
|
146
|
+
showSecondaryMenu: false,
|
|
147
|
+
primaryMenuOptions: {
|
|
148
|
+
showMenuAsIcon: false,
|
|
149
|
+
maxLength: 99,
|
|
150
|
+
style: {}
|
|
151
|
+
},
|
|
152
|
+
secondaryMenuOptions: {
|
|
153
|
+
showMenuAsIcon: false,
|
|
154
|
+
maxLength: 0,
|
|
155
|
+
style: {}
|
|
156
|
+
},
|
|
157
|
+
userProfileOptions: {
|
|
158
|
+
style: {}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
W1_0008: {
|
|
162
|
+
gridTemplate: 'BRAND_LOGO PRIMARY_MENU SECONDARY_MENU USER_PROFILE',
|
|
163
|
+
gridStyle: {
|
|
164
|
+
width: '1400px',
|
|
165
|
+
gridTemplateColumns: 'max-content auto max-content max-content'
|
|
166
|
+
},
|
|
167
|
+
showSecondaryMenu: true,
|
|
168
|
+
primaryMenuOptions: {
|
|
169
|
+
showMenuAsIcon: false,
|
|
170
|
+
maxLength: 99,
|
|
171
|
+
style: {}
|
|
172
|
+
},
|
|
173
|
+
secondaryMenuOptions: {
|
|
174
|
+
showMenuAsIcon: true,
|
|
175
|
+
maxLength: 3,
|
|
176
|
+
style: {}
|
|
177
|
+
},
|
|
178
|
+
userProfileOptions: {
|
|
179
|
+
style: {}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
W1_0009: {
|
|
183
|
+
gridTemplate: 'BRAND_LOGO PRIMARY_MENU USER_PROFILE',
|
|
184
|
+
gridStyle: {
|
|
185
|
+
width: '1400px',
|
|
186
|
+
gridTemplateColumns: 'max-content auto max-content'
|
|
187
|
+
},
|
|
188
|
+
showSecondaryMenu: false,
|
|
189
|
+
primaryMenuOptions: {
|
|
190
|
+
showMenuAsIcon: false,
|
|
191
|
+
maxLength: 5,
|
|
192
|
+
style: {
|
|
193
|
+
justifyContent: 'flex-end'
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
secondaryMenuOptions: {
|
|
197
|
+
showMenuAsIcon: false,
|
|
198
|
+
maxLength: 0,
|
|
199
|
+
style: {}
|
|
200
|
+
},
|
|
201
|
+
userProfileOptions: {
|
|
202
|
+
style: {}
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
W1_0010: {
|
|
206
|
+
gridTemplate: 'BRAND_LOGO PRIMARY_MENU SECONDARY_MENU USER_PROFILE',
|
|
207
|
+
gridStyle: {
|
|
208
|
+
width: '1400px',
|
|
209
|
+
gridTemplateColumns: 'max-content auto max-content max-content'
|
|
210
|
+
},
|
|
211
|
+
showSecondaryMenu: true,
|
|
212
|
+
primaryMenuOptions: {
|
|
213
|
+
showMenuAsIcon: false,
|
|
214
|
+
maxLength: 99,
|
|
215
|
+
style: {
|
|
216
|
+
justifyContent: 'flex-end'
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
secondaryMenuOptions: {
|
|
220
|
+
showMenuAsIcon: true,
|
|
221
|
+
maxLength: 3,
|
|
222
|
+
style: {
|
|
223
|
+
justifyContent: 'flex-end'
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
userProfileOptions: {
|
|
227
|
+
style: {}
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
W1_0011: {
|
|
231
|
+
gridTemplate: 'PRIMARY_MENU BRAND_LOGO SECONDARY_MENU USER_PROFILE',
|
|
232
|
+
gridStyle: {
|
|
233
|
+
gridTemplateColumns: '1fr 180px 1fr min-content'
|
|
234
|
+
},
|
|
235
|
+
showSecondaryMenu: true,
|
|
236
|
+
primaryMenuOptions: {
|
|
237
|
+
showMenuAsIcon: false,
|
|
238
|
+
maxLength: 3,
|
|
239
|
+
style: {
|
|
240
|
+
justifyContent: 'right'
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
secondaryMenuOptions: {
|
|
244
|
+
showMenuAsIcon: false,
|
|
245
|
+
maxLength: 2,
|
|
246
|
+
style: {
|
|
247
|
+
width: '100%',
|
|
248
|
+
justifyContent: 'left',
|
|
249
|
+
paddingLeft: '32px'
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
userProfileOptions: {
|
|
253
|
+
style: {}
|
|
254
|
+
}
|
|
114
255
|
}
|
|
115
256
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { PDSTextType } from '../../../common';
|
|
3
|
-
import type { DropdownValueOption } from '../../../common/types';
|
|
3
|
+
import type { DropdownGroupInfo, DropdownValueOption } from '../../../common/types';
|
|
4
4
|
type Props = {
|
|
5
5
|
colorTheme?: 'none' | 'dark' | 'white';
|
|
6
6
|
defaultValue?: DropdownValueOption;
|
|
@@ -14,7 +14,8 @@ type Props = {
|
|
|
14
14
|
customWidth?: string;
|
|
15
15
|
displayType?: 'text_only' | 'icon_only' | 'icon_text';
|
|
16
16
|
fontWeight?: 'bold' | 'regular';
|
|
17
|
+
groupInfoArray?: DropdownGroupInfo[];
|
|
17
18
|
onChange?: (option: DropdownValueOption) => void;
|
|
18
19
|
};
|
|
19
|
-
declare function Dropdown({ colorTheme, value, defaultValue, hintText, maxHeightItemNumber, responsiveMode, size, state, valueArray, customWidth, displayType, fontWeight, onChange }: Props): JSX.Element;
|
|
20
|
+
declare function Dropdown({ colorTheme, value, defaultValue, hintText, maxHeightItemNumber, responsiveMode, size, state, valueArray, customWidth, displayType, fontWeight, groupInfoArray, onChange }: Props): JSX.Element;
|
|
20
21
|
export default Dropdown;
|
|
@@ -57,7 +57,7 @@ function Dropdown(_a) {
|
|
|
57
57
|
// selectionMode = 'single',
|
|
58
58
|
_e = _a.size,
|
|
59
59
|
// selectionMode = 'single',
|
|
60
|
-
size = _e === void 0 ? 'large' : _e, _f = _a.state, state = _f === void 0 ? 'normal' : _f, valueArray = _a.valueArray, customWidth = _a.customWidth, _g = _a.displayType, displayType = _g === void 0 ? 'text_only' : _g, _h = _a.fontWeight, fontWeight = _h === void 0 ? 'regular' : _h, onChange = _a.onChange;
|
|
60
|
+
size = _e === void 0 ? 'large' : _e, _f = _a.state, state = _f === void 0 ? 'normal' : _f, valueArray = _a.valueArray, customWidth = _a.customWidth, _g = _a.displayType, displayType = _g === void 0 ? 'text_only' : _g, _h = _a.fontWeight, fontWeight = _h === void 0 ? 'regular' : _h, groupInfoArray = _a.groupInfoArray, onChange = _a.onChange;
|
|
61
61
|
var _j = (0, react_1.useState)(false), isFocused = _j[0], setIsFocused = _j[1];
|
|
62
62
|
var _k = (0, react_1.useState)(null), selectedValue = _k[0], setSelectedValue = _k[1];
|
|
63
63
|
var _l = (0, react_1.useState)(null), contextMenuSizeOffset = _l[0], setContextMenuSizeOffset = _l[1];
|
|
@@ -238,10 +238,112 @@ function Dropdown(_a) {
|
|
|
238
238
|
var LARGE_HEIGHT = 48;
|
|
239
239
|
return LARGE_HEIGHT * maxHeightItemNumber;
|
|
240
240
|
}, [size, maxHeightItemNumber]);
|
|
241
|
+
var resultByGroup = {};
|
|
242
|
+
if (groupInfoArray) {
|
|
243
|
+
groupInfoArray.forEach(function (groupInfo) {
|
|
244
|
+
var _a;
|
|
245
|
+
var currentGroupResult = [];
|
|
246
|
+
(_a = groupInfo.values) === null || _a === void 0 ? void 0 : _a.forEach(function (value) {
|
|
247
|
+
var matchingObject = valueArray.find(function (item) { return item.value === value; });
|
|
248
|
+
if (matchingObject) {
|
|
249
|
+
currentGroupResult.push(matchingObject);
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
resultByGroup[groupInfo.key] = currentGroupResult;
|
|
253
|
+
});
|
|
254
|
+
}
|
|
241
255
|
return ((0, jsx_runtime_1.jsxs)(S_Dropdown, __assign({ "x-pds-name": "Dropdown", "x-pds-element-type": "component", "x-pds-device-type": "mobile", className: "container", ref: dropdownRef, size: size, tabIndex: 0, onBlur: handleBlur, responsiveMode: responsiveMode, customWidth: customWidth, displayType: displayType }, { children: [(0, jsx_runtime_1.jsxs)(S_Select, __assign({ size: size, onClick: handleClick, isFocused: isFocused, state: state, colorTheme: colorTheme, responsiveMode: responsiveMode, customWidth: customWidth, displayType: displayType }, { children: [(0, jsx_runtime_1.jsxs)(S_TextLabel, __assign({ size: size, responsiveMode: responsiveMode, displayType: displayType }, { children: [(displayType === 'icon_only' || displayType === 'icon_text') && (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.iconName) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: size === 'small' ? 20 : 24, iconName: selectedValue.iconName, fillType: selectedValue.iconFillType, colorKey: getIconColorKey() }), displayType === 'icon_text' && (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" })] })), (displayType === 'text_only' || displayType === 'icon_text') && ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.text) || (value === null || value === void 0 ? void 0 : value.text) || (defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.text) || hintText, styleTheme: fontWeight === 'bold' ? 'form2Bold' : 'form2Regular', singleLineMode: "use", colorTheme: getTextColorTheme(), colorOverride: getTextColorOverride(), ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }))] })), (0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, fillType: "line", iconName: isFocused ? 'ic_arrow_up' : 'ic_arrow_down', colorKey: getArrowIconColorKey() })] })), isFocused &&
|
|
242
|
-
(0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(S_ContextMenuWrapper, __assign({ ref: contextMenuRef, contextMenuPositionCss: contextMenuPositionCss }, { children: (0, jsx_runtime_1.jsx)(ContextMenu_1.ContextMenu, __assign({ autoWidthMode: "use", maxHeight: maxHeight, customWidth: getCustomWidth() }, { children:
|
|
256
|
+
(0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(S_ContextMenuWrapper, __assign({ ref: contextMenuRef, contextMenuPositionCss: contextMenuPositionCss }, { children: (0, jsx_runtime_1.jsx)(ContextMenu_1.ContextMenu, __assign({ autoWidthMode: "use", maxHeight: maxHeight, customWidth: getCustomWidth() }, { children: groupInfoArray
|
|
257
|
+
? Object.keys(resultByGroup).map(function (key) {
|
|
258
|
+
var _a, _b, _c;
|
|
259
|
+
return ((0, jsx_runtime_1.jsxs)(S_Group, __assign({ size: size, hasGroupTitle: Boolean((_a = groupInfoArray.find(function (groupInfo) { return groupInfo.key === key; })) === null || _a === void 0 ? void 0 : _a.title) }, { children: [((_b = groupInfoArray.find(function (groupInfo) { return groupInfo.key === key; })) === null || _b === void 0 ? void 0 : _b.title) && ((0, jsx_runtime_1.jsx)(S_Wrapper, __assign({ size: size }, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: (_c = groupInfoArray.find(function (groupInfo) { return groupInfo.key === key; })) === null || _c === void 0 ? void 0 : _c.title, colorTheme: "sysTextSecondary", styleTheme: "caption1Bold", letterSpacing: "0.15em" }) }))), resultByGroup[key].map(function (el) { return ((0, jsx_runtime_1.jsx)("div", __assign({ onMouseDown: function () { return handleClickOption(el); } }, { children: (0, jsx_runtime_1.jsx)(ContextMenuItem_1.ContextMenuItem, { option: el, size: size, isSelected: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.value) === el.value, state: el.state, displayType: displayType }) }), el.value)); })] }), key));
|
|
260
|
+
})
|
|
261
|
+
: valueArray.map(function (el) { return ((0, jsx_runtime_1.jsx)("div", __assign({ onMouseDown: function () { return handleClickOption(el); } }, { children: (0, jsx_runtime_1.jsx)(ContextMenuItem_1.ContextMenuItem, { option: el, size: size, isSelected: (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.value) === el.value, state: el.state, displayType: displayType }) }), el.value)); }) })) })), document.body)] })));
|
|
243
262
|
}
|
|
244
|
-
var
|
|
263
|
+
var largeGroupTitle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|
|
264
|
+
var theme = _a.theme;
|
|
265
|
+
return theme.spacing.spacingE;
|
|
266
|
+
}, function (_a) {
|
|
267
|
+
var theme = _a.theme;
|
|
268
|
+
return theme.spacing.spacingE;
|
|
269
|
+
});
|
|
270
|
+
var mediumGroupTitle = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|
|
271
|
+
var theme = _a.theme;
|
|
272
|
+
return theme.spacing.spacingD;
|
|
273
|
+
}, function (_a) {
|
|
274
|
+
var theme = _a.theme;
|
|
275
|
+
return theme.spacing.spacingD;
|
|
276
|
+
});
|
|
277
|
+
var smallGroupTitle = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|
|
278
|
+
var theme = _a.theme;
|
|
279
|
+
return theme.spacing.spacingD;
|
|
280
|
+
}, function (_a) {
|
|
281
|
+
var theme = _a.theme;
|
|
282
|
+
return theme.spacing.spacingD;
|
|
283
|
+
});
|
|
284
|
+
var largeGroupDivider = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n left: ", ";\n right: ", ";\n"], ["\n left: ", ";\n right: ", ";\n"])), function (_a) {
|
|
285
|
+
var theme = _a.theme;
|
|
286
|
+
return theme.spacing.spacingE;
|
|
287
|
+
}, function (_a) {
|
|
288
|
+
var theme = _a.theme;
|
|
289
|
+
return theme.spacing.spacingE;
|
|
290
|
+
});
|
|
291
|
+
var mediumGroupDivider = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n left: ", ";\n right: ", ";\n"], ["\n left: ", ";\n right: ", ";\n"])), function (_a) {
|
|
292
|
+
var theme = _a.theme;
|
|
293
|
+
return theme.spacing.spacingD;
|
|
294
|
+
}, function (_a) {
|
|
295
|
+
var theme = _a.theme;
|
|
296
|
+
return theme.spacing.spacingD;
|
|
297
|
+
});
|
|
298
|
+
var smallGroupDivider = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n left: ", ";\n right: ", ";\n"], ["\n left: ", ";\n right: ", ";\n"])), function (_a) {
|
|
299
|
+
var theme = _a.theme;
|
|
300
|
+
return theme.spacing.spacingD;
|
|
301
|
+
}, function (_a) {
|
|
302
|
+
var theme = _a.theme;
|
|
303
|
+
return theme.spacing.spacingD;
|
|
304
|
+
});
|
|
305
|
+
var S_Group = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n position: relative;\n\n &:not(:last-child) {\n padding-bottom: ", ";\n }\n\n &:not(:first-child) {\n padding-top: ", ";\n ", ";\n\n &:after {\n background-color: ", ";\n content: '';\n height: 1px;\n position: absolute;\n top: 0;\n\n ", ";\n }\n }\n"], ["\n position: relative;\n\n &:not(:last-child) {\n padding-bottom: ", ";\n }\n\n &:not(:first-child) {\n padding-top: ", ";\n ", ";\n\n &:after {\n background-color: ", ";\n content: '';\n height: 1px;\n position: absolute;\n top: 0;\n\n ", ";\n }\n }\n"])), function (_a) {
|
|
306
|
+
var theme = _a.theme;
|
|
307
|
+
return theme.spacing.spacingB;
|
|
308
|
+
}, function (_a) {
|
|
309
|
+
var theme = _a.theme;
|
|
310
|
+
return theme.spacing.spacingA;
|
|
311
|
+
}, function (_a) {
|
|
312
|
+
var theme = _a.theme, hasGroupTitle = _a.hasGroupTitle;
|
|
313
|
+
return hasGroupTitle
|
|
314
|
+
? "padding-top: ".concat(theme.spacing.spacingA)
|
|
315
|
+
: "padding-top: ".concat(theme.spacing.spacingB);
|
|
316
|
+
}, function (_a) {
|
|
317
|
+
var theme = _a.theme;
|
|
318
|
+
return theme.ui_cpnt_divider;
|
|
319
|
+
}, function (_a) {
|
|
320
|
+
var size = _a.size;
|
|
321
|
+
return size &&
|
|
322
|
+
{
|
|
323
|
+
large: largeGroupDivider,
|
|
324
|
+
medium: mediumGroupDivider,
|
|
325
|
+
small: smallGroupDivider
|
|
326
|
+
}[size];
|
|
327
|
+
});
|
|
328
|
+
var S_Wrapper = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n padding-bottom: ", ";\n\n ", ":first-child & {\n padding-top: ", ";\n }\n\n ", ":not(:first-child) > & {\n padding-top: ", ";\n }\n\n ", ";\n"], ["\n padding-bottom: ", ";\n\n ", ":first-child & {\n padding-top: ", ";\n }\n\n ", ":not(:first-child) > & {\n padding-top: ", ";\n }\n\n ", ";\n"])), function (_a) {
|
|
329
|
+
var theme = _a.theme;
|
|
330
|
+
return theme.spacing.spacingC;
|
|
331
|
+
}, S_Group, function (_a) {
|
|
332
|
+
var theme = _a.theme;
|
|
333
|
+
return theme.spacing.spacingA;
|
|
334
|
+
}, S_Group, function (_a) {
|
|
335
|
+
var theme = _a.theme;
|
|
336
|
+
return theme.spacing.spacingC;
|
|
337
|
+
}, function (_a) {
|
|
338
|
+
var size = _a.size;
|
|
339
|
+
return size &&
|
|
340
|
+
{
|
|
341
|
+
large: largeGroupTitle,
|
|
342
|
+
medium: mediumGroupTitle,
|
|
343
|
+
small: smallGroupTitle
|
|
344
|
+
}[size];
|
|
345
|
+
});
|
|
346
|
+
var S_TextLabel = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n padding-right: ", ";\n\n ", ";\n"], ["\n align-items: center;\n display: flex;\n padding-right: ", ";\n\n ", ";\n"])), function (_a) {
|
|
245
347
|
var theme = _a.theme;
|
|
246
348
|
return theme.spacing.spacingB;
|
|
247
349
|
}, function (_a) {
|
|
@@ -253,7 +355,7 @@ var S_TextLabel = styled_components_1.default.div(templateObject_1 || (templateO
|
|
|
253
355
|
small: small
|
|
254
356
|
}[size];
|
|
255
357
|
});
|
|
256
|
-
var large = (0, styled_components_1.css)(
|
|
358
|
+
var large = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n height: 48px;\n width: ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"], ["\n height: 48px;\n width: ", ";\n\n & > div {\n height: 48px;\n line-height: 48px;\n }\n"])), function (_a) {
|
|
257
359
|
var displayType = _a.displayType, responsiveMode = _a.responsiveMode;
|
|
258
360
|
if (responsiveMode === 'use') {
|
|
259
361
|
return '100%';
|
|
@@ -263,7 +365,7 @@ var large = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 =
|
|
|
263
365
|
}
|
|
264
366
|
return '432px';
|
|
265
367
|
});
|
|
266
|
-
var medium = (0, styled_components_1.css)(
|
|
368
|
+
var medium = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n border-radius: 12px;\n height: 40px;\n width: ", ";\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"], ["\n border-radius: 12px;\n height: 40px;\n width: ", ";\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"])), function (_a) {
|
|
267
369
|
var displayType = _a.displayType, responsiveMode = _a.responsiveMode;
|
|
268
370
|
if (responsiveMode === 'use') {
|
|
269
371
|
return '100%';
|
|
@@ -273,7 +375,7 @@ var medium = (0, styled_components_1.css)(templateObject_3 || (templateObject_3
|
|
|
273
375
|
}
|
|
274
376
|
return '188px';
|
|
275
377
|
});
|
|
276
|
-
var small = (0, styled_components_1.css)(
|
|
378
|
+
var small = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n border-radius: 10px;\n height: 32px;\n width: ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n border-radius: 10px;\n height: 32px;\n width: ", ";\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"])), function (_a) {
|
|
277
379
|
var displayType = _a.displayType, responsiveMode = _a.responsiveMode;
|
|
278
380
|
if (responsiveMode === 'use') {
|
|
279
381
|
return '100%';
|
|
@@ -283,7 +385,7 @@ var small = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 =
|
|
|
283
385
|
}
|
|
284
386
|
return '188px';
|
|
285
387
|
});
|
|
286
|
-
var S_Dropdown = styled_components_1.default.div(
|
|
388
|
+
var S_Dropdown = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n display: inline-block;\n outline: none;\n position: relative;\n\n ", ";\n\n ", "\n"], ["\n display: inline-block;\n outline: none;\n position: relative;\n\n ", ";\n\n ", "\n"])), function (_a) {
|
|
287
389
|
var size = _a.size;
|
|
288
390
|
return size &&
|
|
289
391
|
{
|
|
@@ -295,7 +397,7 @@ var S_Dropdown = styled_components_1.default.div(templateObject_5 || (templateOb
|
|
|
295
397
|
var customWidth = _a.customWidth;
|
|
296
398
|
return customWidth && "width: ".concat(customWidth, ";");
|
|
297
399
|
});
|
|
298
|
-
var colorThemeBackgroundReadOnly = (0, styled_components_1.css)(
|
|
400
|
+
var colorThemeBackgroundReadOnly = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
299
401
|
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
300
402
|
switch (colorTheme) {
|
|
301
403
|
case 'dark':
|
|
@@ -306,7 +408,7 @@ var colorThemeBackgroundReadOnly = (0, styled_components_1.css)(templateObject_6
|
|
|
306
408
|
return theme.ui_cpnt_dropdown_base_disabled;
|
|
307
409
|
}
|
|
308
410
|
});
|
|
309
|
-
var colorThemeBackgroundDisabled = (0, styled_components_1.css)(
|
|
411
|
+
var colorThemeBackgroundDisabled = (0, styled_components_1.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
310
412
|
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
311
413
|
switch (colorTheme) {
|
|
312
414
|
case 'dark':
|
|
@@ -317,7 +419,7 @@ var colorThemeBackgroundDisabled = (0, styled_components_1.css)(templateObject_7
|
|
|
317
419
|
return theme.ui_cpnt_dropdown_base_disabled;
|
|
318
420
|
}
|
|
319
421
|
});
|
|
320
|
-
var colorThemeBackgroundNormal = (0, styled_components_1.css)(
|
|
422
|
+
var colorThemeBackgroundNormal = (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
321
423
|
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
322
424
|
switch (colorTheme) {
|
|
323
425
|
case 'dark':
|
|
@@ -328,7 +430,7 @@ var colorThemeBackgroundNormal = (0, styled_components_1.css)(templateObject_8 |
|
|
|
328
430
|
return theme.ui_cpnt_dropdown_base_normal;
|
|
329
431
|
}
|
|
330
432
|
});
|
|
331
|
-
var colorThemeBorderWhite = (0, styled_components_1.css)(
|
|
433
|
+
var colorThemeBorderWhite = (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
332
434
|
var state = _a.state, theme = _a.theme;
|
|
333
435
|
switch (state) {
|
|
334
436
|
case 'disabled':
|
|
@@ -338,7 +440,7 @@ var colorThemeBorderWhite = (0, styled_components_1.css)(templateObject_9 || (te
|
|
|
338
440
|
return theme.ui_cpnt_dropdown_border_white_normal;
|
|
339
441
|
}
|
|
340
442
|
});
|
|
341
|
-
var colorThemeBorderDark = (0, styled_components_1.css)(
|
|
443
|
+
var colorThemeBorderDark = (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
342
444
|
var state = _a.state, theme = _a.theme;
|
|
343
445
|
switch (state) {
|
|
344
446
|
case 'disabled':
|
|
@@ -348,7 +450,7 @@ var colorThemeBorderDark = (0, styled_components_1.css)(templateObject_10 || (te
|
|
|
348
450
|
return theme.ui_cpnt_dropdown_border_darktheme_normal;
|
|
349
451
|
}
|
|
350
452
|
});
|
|
351
|
-
var borderColor = (0, styled_components_1.css)(
|
|
453
|
+
var borderColor = (0, styled_components_1.css)(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
352
454
|
var state = _a.state, theme = _a.theme;
|
|
353
455
|
switch (state) {
|
|
354
456
|
case 'disabled':
|
|
@@ -359,7 +461,7 @@ var borderColor = (0, styled_components_1.css)(templateObject_11 || (templateObj
|
|
|
359
461
|
return theme.ui_cpnt_dropdown_border_normal;
|
|
360
462
|
}
|
|
361
463
|
});
|
|
362
|
-
var backgroundActiveColor = (0, styled_components_1.css)(
|
|
464
|
+
var backgroundActiveColor = (0, styled_components_1.css)(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
363
465
|
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
364
466
|
switch (colorTheme) {
|
|
365
467
|
case 'none':
|
|
@@ -372,8 +474,8 @@ var backgroundActiveColor = (0, styled_components_1.css)(templateObject_12 || (t
|
|
|
372
474
|
return theme.ui_cpnt_textfield_base_pressed;
|
|
373
475
|
}
|
|
374
476
|
});
|
|
375
|
-
var normalActionColor = (0, styled_components_1.css)(
|
|
376
|
-
var S_Select = styled_components_1.default.div(
|
|
477
|
+
var normalActionColor = (0, styled_components_1.css)(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n &:active {\n background-color: ", ";\n }\n"], ["\n &:active {\n background-color: ", ";\n }\n"])), backgroundActiveColor);
|
|
478
|
+
var S_Select = styled_components_1.default.div(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border: 2px solid\n ", ";\n border-radius: 14px;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n padding-left: ", ";\n padding-right: ", ";\n\n ", ";\n\n ", "\n\n ", "\n\n ", "\n"], ["\n align-items: center;\n background-color: ", ";\n border: 2px solid\n ", ";\n border-radius: 14px;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n padding-left: ", ";\n padding-right: ", ";\n\n ", ";\n\n ", "\n\n ", "\n\n ", "\n"])), function (_a) {
|
|
377
479
|
var state = _a.state;
|
|
378
480
|
switch (state) {
|
|
379
481
|
case 'disabled':
|
|
@@ -414,9 +516,9 @@ var S_Select = styled_components_1.default.div(templateObject_14 || (templateObj
|
|
|
414
516
|
var state = _a.state;
|
|
415
517
|
return state === 'normal' && normalActionColor;
|
|
416
518
|
});
|
|
417
|
-
var S_ContextMenuWrapper = styled_components_1.default.div(
|
|
519
|
+
var S_ContextMenuWrapper = styled_components_1.default.div(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n display: block;\n position: absolute;\n\n ", ";\n"], ["\n display: block;\n position: absolute;\n\n ", ";\n"])), function (_a) {
|
|
418
520
|
var contextMenuPositionCss = _a.contextMenuPositionCss;
|
|
419
521
|
return contextMenuPositionCss;
|
|
420
522
|
});
|
|
421
523
|
exports.default = Dropdown;
|
|
422
|
-
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;
|
|
524
|
+
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, templateObject_20, templateObject_21, templateObject_22, templateObject_23;
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
# PDS-DEV-KIT-WEB Release Notes
|
|
2
|
-
## [v2.2.
|
|
3
|
-
##
|
|
2
|
+
## [v2.2.33]
|
|
3
|
+
## daily|https://design.storybook.publ.biz/
|
|
4
4
|
|
|
5
5
|
### Component
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* ic_video_play_circle
|
|
9
|
-
* ic_pages
|
|
6
|
+
* DynamicDesktopNavBar
|
|
7
|
+
* 1단 템플릿 중앙 고정형 추가
|