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.
Files changed (29) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/src/common/assets/icons/fill/DeviceMobileNotification.d.ts +4 -0
  3. package/dist/src/common/assets/icons/fill/DeviceMobileNotification.js +30 -0
  4. package/dist/src/common/assets/icons/fill/index.d.ts +1 -0
  5. package/dist/src/common/assets/icons/fill/index.js +2 -0
  6. package/dist/src/common/assets/icons/line/DeviceMobileNotification.d.ts +4 -0
  7. package/dist/src/common/assets/icons/line/DeviceMobileNotification.js +30 -0
  8. package/dist/src/common/assets/icons/line/index.d.ts +1 -0
  9. package/dist/src/common/assets/icons/line/index.js +2 -0
  10. package/dist/src/common/index.d.ts +1 -1
  11. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +2 -1
  12. package/dist/src/common/styles/colorSet/PaletteColor_light.json +2 -1
  13. package/dist/src/common/styles/colorSet/UIColor.json +2 -1
  14. package/dist/src/common/styles/colorSet/index.d.ts +350 -347
  15. package/dist/src/common/styles/colorSet/index.js +3 -3
  16. package/dist/src/common/styles/colorSet/ui-type.d.ts +1 -0
  17. package/dist/src/common/types/components.d.ts +5 -0
  18. package/dist/src/desktop/components/Dropdown/Dropdown.d.ts +3 -2
  19. package/dist/src/desktop/components/Dropdown/Dropdown.js +121 -19
  20. package/dist/src/desktop/components/DynamicDesktopNavBar/DynamicDesktopNavBar.js +25 -6
  21. package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/UserProfile.d.ts +2 -2
  22. package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/UserProfile.js +7 -5
  23. package/dist/src/desktop/components/DynamicDesktopNavBar/templates/DynamicDesktopNavBarTemplates.d.ts +136 -1
  24. package/dist/src/desktop/components/DynamicDesktopNavBar/templates/constants.d.ts +141 -0
  25. package/dist/src/desktop/components/DynamicDesktopNavBar/templates/constants.js +141 -0
  26. package/dist/src/mobile/components/Dropdown/Dropdown.d.ts +3 -2
  27. package/dist/src/mobile/components/Dropdown/Dropdown.js +120 -18
  28. package/package.json +1 -1
  29. package/release-note.md +4 -6
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /* eslint-disable import/order */
7
7
  var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
8
8
  var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
9
- var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
10
9
  var UIColor_json_1 = __importDefault(require("./UIColor.json"));
10
+ var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
11
11
  var colorSet = {
12
12
  SemanticColor: SemanticColor_json_1.default,
13
13
  PaletteColor_Dark: PaletteColor_Dark_json_1.default,
14
- PaletteColor_light: PaletteColor_light_json_1.default,
15
- UIColor: UIColor_json_1.default
14
+ UIColor: UIColor_json_1.default,
15
+ PaletteColor_light: PaletteColor_light_json_1.default
16
16
  };
17
17
  exports.default = colorSet;
@@ -840,4 +840,5 @@ export interface UITheme {
840
840
  ui_108: string;
841
841
  ui_110: string;
842
842
  ui_contentscontainer03_background: string;
843
+ ui_contents_dimmed: string;
843
844
  }
@@ -21,6 +21,11 @@ export type ContextMenuItemValueOption = {
21
21
  export type DropdownValueOption = ContextMenuItemValueOption & {
22
22
  state?: 'normal' | 'disabled';
23
23
  };
24
+ export type DropdownGroupInfo = {
25
+ key: string;
26
+ values: DropdownValueOption['value'][];
27
+ title?: PDSTextType;
28
+ };
24
29
  export type AdminListDropdownValueOption = {
25
30
  text: DropdownValueOption['text'];
26
31
  value: DropdownValueOption['value'];
@@ -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
  hintText?: PDSTextType;
@@ -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": "desktop", 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: 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)] })));
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 S_TextLabel = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __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) {
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)(templateObject_2 || (templateObject_2 = __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) {
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)(templateObject_3 || (templateObject_3 = __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) {
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)(templateObject_4 || (templateObject_4 = __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) {
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(templateObject_5 || (templateObject_5 = __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) {
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)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
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)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
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)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
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)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
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)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
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)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
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 backgroundHoverColor = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
464
+ var backgroundHoverColor = (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,7 +474,7 @@ var backgroundHoverColor = (0, styled_components_1.css)(templateObject_12 || (te
372
474
  return theme.ui_cpnt_textfield_base_hover;
373
475
  }
374
476
  });
375
- var backgroundActiveColor = (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
477
+ var backgroundActiveColor = (0, styled_components_1.css)(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
376
478
  var colorTheme = _a.colorTheme, theme = _a.theme;
377
479
  switch (colorTheme) {
378
480
  case 'none':
@@ -385,8 +487,8 @@ var backgroundActiveColor = (0, styled_components_1.css)(templateObject_13 || (t
385
487
  return theme.ui_cpnt_textfield_base_pressed;
386
488
  }
387
489
  });
388
- var normalActionColor = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __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);
389
- var S_Select = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border: 2px solid\n ", ";\n border-radius: 14px;\n box-sizing: border-box;\n cursor: ", ";\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 cursor: ", ";\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) {
490
+ var normalActionColor = (0, styled_components_1.css)(templateObject_22 || (templateObject_22 = __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);
491
+ var S_Select = styled_components_1.default.div(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border: 2px solid\n ", ";\n border-radius: 14px;\n box-sizing: border-box;\n cursor: ", ";\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 cursor: ", ";\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) {
390
492
  var state = _a.state;
391
493
  switch (state) {
392
494
  case 'disabled':
@@ -437,9 +539,9 @@ var S_Select = styled_components_1.default.div(templateObject_15 || (templateObj
437
539
  var state = _a.state;
438
540
  return state === 'normal' && normalActionColor;
439
541
  });
440
- var S_ContextMenuWrapper = styled_components_1.default.div(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n display: block;\n position: absolute;\n\n ", ";\n"], ["\n display: block;\n position: absolute;\n\n ", ";\n"])), function (_a) {
542
+ var S_ContextMenuWrapper = styled_components_1.default.div(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n display: block;\n position: absolute;\n\n ", ";\n"], ["\n display: block;\n position: absolute;\n\n ", ";\n"])), function (_a) {
441
543
  var contextMenuPositionCss = _a.contextMenuPositionCss;
442
544
  return contextMenuPositionCss;
443
545
  });
444
546
  exports.default = Dropdown;
445
- 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;
547
+ 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, templateObject_24;
@@ -59,12 +59,25 @@ exports.BasePathContext = (0, react_1.createContext)({
59
59
  }
60
60
  });
61
61
  function DynamicDesktopNavBar(_a) {
62
- var _b = _a.isPreview, isPreview = _b === void 0 ? false : _b, template = _a.template, brandLogo = _a.brandLogo, primaryMenus = _a.primaryMenus, secondaryMenus = _a.secondaryMenus, userProfile = _a.userProfile, basePath = _a.basePath, _c = _a.colorTheme, colorTheme = _c === void 0 ? 'none' : _c;
63
- var _d = templates_1.DynamicDesktopNavBarTemplates.getTemplate(template), gridStyle = _d.gridStyle, gridTemplate = _d.gridTemplate, showSecondaryMenu = _d.showSecondaryMenu, primaryMenuOptions = _d.primaryMenuOptions, secondaryMenuOptions = _d.secondaryMenuOptions, userProfileOptions = _d.userProfileOptions;
64
- var _e = (0, react_1.useReducer)(reducer_1.default, reducer_1.defaultValue), state = _e[0], dispatch = _e[1];
62
+ var _b;
63
+ var _c = _a.isPreview, isPreview = _c === void 0 ? false : _c, template = _a.template, brandLogo = _a.brandLogo, primaryMenus = _a.primaryMenus, secondaryMenus = _a.secondaryMenus, userProfile = _a.userProfile, basePath = _a.basePath, _d = _a.colorTheme, colorTheme = _d === void 0 ? 'none' : _d;
64
+ var _e = templates_1.DynamicDesktopNavBarTemplates.getTemplate(template), gridStyle = _e.gridStyle, gridTemplate = _e.gridTemplate, showSecondaryMenu = _e.showSecondaryMenu, primaryMenuOptions = _e.primaryMenuOptions, secondaryMenuOptions = _e.secondaryMenuOptions, userProfileOptions = _e.userProfileOptions;
65
+ var _f = (0, react_1.useReducer)(reducer_1.default, reducer_1.defaultValue), state = _f[0], dispatch = _f[1];
65
66
  var location = (0, react_router_dom_1.useLocation)();
66
67
  var prevLocation = (0, hooks_1.usePrevious)(location.pathname + location.search);
67
68
  var theme = (0, styled_components_1.useTheme)();
69
+ var profileArea = (0, react_1.useRef)(null);
70
+ var userProfileAreaWidth = ((_b = profileArea === null || profileArea === void 0 ? void 0 : profileArea.current) === null || _b === void 0 ? void 0 : _b.offsetWidth) || 0;
71
+ var GRID_GAP = 24;
72
+ var gridStyleMarginLeft = "".concat(userProfileAreaWidth + GRID_GAP, "px");
73
+ var style = template === 'W1_0011' ? __assign(__assign({}, gridStyle), { marginLeft: gridStyleMarginLeft }) : gridStyle;
74
+ var isFixedWidth = template === 'W1_0006' ||
75
+ template === 'W1_0007' ||
76
+ template === 'W1_0008' ||
77
+ template === 'W1_0009' ||
78
+ template === 'W1_0010' ||
79
+ template === 'W1_0011';
80
+ var navBarHeight = '63px';
68
81
  (0, react_1.useEffect)(function () {
69
82
  var currentSearch = (0, utils_1.getSearchExceptGivenName)(location.search, 'from');
70
83
  var currentLocation = location.pathname + currentSearch;
@@ -80,18 +93,24 @@ function DynamicDesktopNavBar(_a) {
80
93
  function handleClickInternalMenuItemNav(url) {
81
94
  dispatch({ type: 'INTERNAL_CLICKED', payload: { clickedURL: url } });
82
95
  }
83
- return ((0, jsx_runtime_1.jsx)(exports.BasePathContext.Provider, __assign({ value: { basePath: basePath, activeMode: state.mode, handleClickInternalMenuItemNav: handleClickInternalMenuItemNav } }, { children: colorTheme === 'transparent' ? ((0, jsx_runtime_1.jsx)(styled_components_1.ThemeProvider, __assign({ theme: __assign(__assign(__assign({}, theme), (0, theme_1.themeByGivenTone)('DARK')), { ui_menu_background: theme.ui_menu_background_transparent, ui_menu_button_base: theme.ui_menu_button_base_transparent }) }, { children: (0, jsx_runtime_1.jsx)(S_DynamicDesktopNavBar, __assign({ "x-pds-name": "DynamicDesktopNavBar", "x-pds-element-type": "component", "x-pds-device-type": "desktop", isPreview: isPreview }, { children: (0, jsx_runtime_1.jsxs)(S_Grid, __assign({ className: "DynamicDesktopNavBarGrid", gridTemplate: gridTemplate, style: gridStyle }, { children: [(0, jsx_runtime_1.jsx)(blocks_1.BrandLogo, { to: brandLogo.href, logoSrc: brandLogo.src, fallbackText: brandLogo.text }), (0, jsx_runtime_1.jsx)(blocks_1.PrimaryMenu, { menus: slicedPrimaryMenus, showMenuAsIcon: primaryMenuOptions.showMenuAsIcon, style: primaryMenuOptions.style }), showSecondaryMenu && ((0, jsx_runtime_1.jsx)(blocks_1.SecondaryMenu, { menus: slicedSecondaryMenus, showMenuAsIcon: secondaryMenuOptions.showMenuAsIcon, style: secondaryMenuOptions.style })), (0, jsx_runtime_1.jsx)(blocks_1.UserProfile, { src: userProfile.src, to: userProfile.href, leftIconButton: userProfile.leftIconButton, overrideUserProfile: userProfile.overrideUserProfile, style: userProfileOptions.style })] })) })) }))) : ((0, jsx_runtime_1.jsx)(S_DynamicDesktopNavBar, __assign({ "x-pds-name": "DynamicDesktopNavBar", "x-pds-element-type": "component", "x-pds-device-type": "desktop", isPreview: isPreview }, { children: (0, jsx_runtime_1.jsxs)(S_Grid, __assign({ className: "DynamicDesktopNavBarGrid", gridTemplate: gridTemplate, style: gridStyle }, { children: [(0, jsx_runtime_1.jsx)(blocks_1.BrandLogo, { to: brandLogo.href, logoSrc: brandLogo.src, fallbackText: brandLogo.text }), (0, jsx_runtime_1.jsx)(blocks_1.PrimaryMenu, { menus: slicedPrimaryMenus, showMenuAsIcon: primaryMenuOptions.showMenuAsIcon, style: primaryMenuOptions.style }), showSecondaryMenu && ((0, jsx_runtime_1.jsx)(blocks_1.SecondaryMenu, { menus: slicedSecondaryMenus, showMenuAsIcon: secondaryMenuOptions.showMenuAsIcon, style: secondaryMenuOptions.style })), (0, jsx_runtime_1.jsx)(blocks_1.UserProfile, { src: userProfile.src, to: userProfile.href, leftIconButton: userProfile.leftIconButton, overrideUserProfile: userProfile.overrideUserProfile, style: userProfileOptions.style })] })) }))) })));
96
+ return ((0, jsx_runtime_1.jsx)(exports.BasePathContext.Provider, __assign({ value: { basePath: basePath, activeMode: state.mode, handleClickInternalMenuItemNav: handleClickInternalMenuItemNav } }, { children: colorTheme === 'transparent' ? ((0, jsx_runtime_1.jsx)(styled_components_1.ThemeProvider, __assign({ theme: __assign(__assign(__assign({}, theme), (0, theme_1.themeByGivenTone)('DARK')), { ui_menu_background: theme.ui_menu_background_transparent, ui_menu_button_base: theme.ui_menu_button_base_transparent }) }, { children: (0, jsx_runtime_1.jsx)(S_DynamicDesktopNavBar, __assign({ "x-pds-name": "DynamicDesktopNavBar", "x-pds-element-type": "component", "x-pds-device-type": "desktop", isFixedWidth: isFixedWidth, isPreview: isPreview, navBarHeight: navBarHeight }, { children: (0, jsx_runtime_1.jsxs)(S_Grid, __assign({ className: "DynamicDesktopNavBarGrid", gridTemplate: gridTemplate, style: style }, { children: [(0, jsx_runtime_1.jsx)(blocks_1.BrandLogo, { to: brandLogo.href, logoSrc: brandLogo.src, fallbackText: brandLogo.text }), (0, jsx_runtime_1.jsx)(blocks_1.PrimaryMenu, { menus: slicedPrimaryMenus, showMenuAsIcon: primaryMenuOptions.showMenuAsIcon, style: primaryMenuOptions.style }), showSecondaryMenu && ((0, jsx_runtime_1.jsx)(blocks_1.SecondaryMenu, { menus: slicedSecondaryMenus, showMenuAsIcon: secondaryMenuOptions.showMenuAsIcon, style: secondaryMenuOptions.style })), (0, jsx_runtime_1.jsx)(blocks_1.UserProfile, { ref: profileArea, src: userProfile.src, to: userProfile.href, leftIconButton: userProfile.leftIconButton, overrideUserProfile: userProfile.overrideUserProfile, style: userProfileOptions.style })] })) })) }))) : ((0, jsx_runtime_1.jsx)(S_DynamicDesktopNavBar, __assign({ "x-pds-name": "DynamicDesktopNavBar", "x-pds-element-type": "component", "x-pds-device-type": "desktop", isPreview: isPreview, isFixedWidth: isFixedWidth, navBarHeight: navBarHeight }, { children: (0, jsx_runtime_1.jsxs)(S_Grid, __assign({ className: "DynamicDesktopNavBarGrid", gridTemplate: gridTemplate, style: style }, { children: [(0, jsx_runtime_1.jsx)(blocks_1.BrandLogo, { to: brandLogo.href, logoSrc: brandLogo.src, fallbackText: brandLogo.text }), (0, jsx_runtime_1.jsx)(blocks_1.PrimaryMenu, { menus: slicedPrimaryMenus, showMenuAsIcon: primaryMenuOptions.showMenuAsIcon, style: primaryMenuOptions.style }), showSecondaryMenu && ((0, jsx_runtime_1.jsx)(blocks_1.SecondaryMenu, { menus: slicedSecondaryMenus, showMenuAsIcon: secondaryMenuOptions.showMenuAsIcon, style: secondaryMenuOptions.style })), (0, jsx_runtime_1.jsx)(blocks_1.UserProfile, { ref: profileArea, src: userProfile.src, to: userProfile.href, leftIconButton: userProfile.leftIconButton, overrideUserProfile: userProfile.overrideUserProfile, style: userProfileOptions.style })] })) }))) })));
84
97
  }
85
- var S_Grid = (0, styled_components_1.default)(BoxLayout_1.Grid)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n gap: 24px;\n justify-items: center;\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n align-items: center;\n gap: 24px;\n justify-items: center;\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
98
+ var S_Grid = (0, styled_components_1.default)(BoxLayout_1.Grid)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n grid-column-gap: 24px;\n justify-items: center;\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n align-items: center;\n grid-column-gap: 24px;\n justify-items: center;\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
86
99
  var theme = _a.theme;
87
100
  return theme.spacing.spacingE;
88
101
  }, function (_a) {
89
102
  var theme = _a.theme;
90
103
  return theme.spacing.spacingE;
91
104
  });
92
- var S_DynamicDesktopNavBar = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n display: flex;\n height: 63px;\n min-width: ", ";\n\n * {\n box-sizing: border-box;\n }\n\n a:active {\n pointer-events: ", ";\n }\n"], ["\n background-color: ", ";\n display: flex;\n height: 63px;\n min-width: ", ";\n\n * {\n box-sizing: border-box;\n }\n\n a:active {\n pointer-events: ", ";\n }\n"])), function (_a) {
105
+ var S_DynamicDesktopNavBar = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n display: flex;\n height: ", ";\n justify-content: ", ";\n min-width: ", ";\n\n * {\n box-sizing: border-box;\n }\n\n a:active {\n pointer-events: ", ";\n }\n"], ["\n background-color: ", ";\n display: flex;\n height: ", ";\n justify-content: ", ";\n min-width: ", ";\n\n * {\n box-sizing: border-box;\n }\n\n a:active {\n pointer-events: ", ";\n }\n"])), function (_a) {
93
106
  var theme = _a.theme;
94
107
  return theme.ui_menu_background;
108
+ }, function (_a) {
109
+ var navBarHeight = _a.navBarHeight;
110
+ return navBarHeight;
111
+ }, function (_a) {
112
+ var isFixedWidth = _a.isFixedWidth;
113
+ return isFixedWidth && 'center';
95
114
  }, function (_a) {
96
115
  var isPreview = _a.isPreview;
97
116
  return (isPreview ? '1100px' : '1200px');
@@ -7,5 +7,5 @@ type Props = {
7
7
  overrideUserProfile?: React.ReactNode;
8
8
  style?: CSSProperties;
9
9
  };
10
- declare function UserProfile({ src, to, overrideUserProfile, leftIconButton, style }: Props): JSX.Element;
11
- export default UserProfile;
10
+ declare const _default: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLDivElement>>;
11
+ export default _default;
@@ -19,14 +19,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  var jsx_runtime_1 = require("react/jsx-runtime");
22
+ var react_1 = require("react");
22
23
  var styled_components_1 = __importDefault(require("styled-components"));
23
24
  var Navigations_1 = require("../../../../common/components/Navigations");
24
25
  var hybrid_1 = require("../../../../hybrid");
25
- function UserProfile(_a) {
26
+ function UserProfile(_a, ref) {
26
27
  var src = _a.src, to = _a.to, overrideUserProfile = _a.overrideUserProfile, leftIconButton = _a.leftIconButton, style = _a.style;
27
- return ((0, jsx_runtime_1.jsx)(S_UserProfile, __assign({ style: style }, { children: overrideUserProfile ? (overrideUserProfile) : ((0, jsx_runtime_1.jsxs)(S_ImageViewWrapper, { children: [leftIconButton && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [leftIconButton, (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" })] })), (0, jsx_runtime_1.jsx)(Navigations_1.NavLink, __assign({ to: to }, { children: (0, jsx_runtime_1.jsx)(hybrid_1.ImageView, { width: 32, ratio: "1_1", scaleType: "cover", shapeType: "circular", src: src, borderMode: "use" }) }))] })) })));
28
+ return ((0, jsx_runtime_1.jsx)(S_UserProfile, __assign({ style: style, ref: ref }, { children: overrideUserProfile ? ((0, jsx_runtime_1.jsx)(S_OverrideUserProfile, { children: overrideUserProfile })) : ((0, jsx_runtime_1.jsxs)(S_ImageViewWrapper, { children: [leftIconButton && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [leftIconButton, (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" })] })), (0, jsx_runtime_1.jsx)(Navigations_1.NavLink, __assign({ to: to }, { children: (0, jsx_runtime_1.jsx)(hybrid_1.ImageView, { width: 32, ratio: "1_1", scaleType: "cover", shapeType: "circular", src: src, borderMode: "use" }) }))] })) })));
28
29
  }
29
30
  var S_UserProfile = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n grid-area: USER_PROFILE;\n justify-content: flex-end;\n"], ["\n display: flex;\n grid-area: USER_PROFILE;\n justify-content: flex-end;\n"])));
30
- var S_ImageViewWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n"], ["\n align-items: center;\n display: flex;\n"])));
31
- exports.default = UserProfile;
32
- var templateObject_1, templateObject_2;
31
+ var S_OverrideUserProfile = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: max-content;\n"], ["\n width: max-content;\n"])));
32
+ var S_ImageViewWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n"], ["\n align-items: center;\n display: flex;\n"])));
33
+ exports.default = (0, react_1.forwardRef)(UserProfile);
34
+ var templateObject_1, templateObject_2, templateObject_3;
@@ -2,7 +2,7 @@ import type { TemplateNamesType } from './types';
2
2
  declare class DynamicDesktopNavBarTemplates {
3
3
  private static data;
4
4
  private static names;
5
- static getNames(): Record<"W1_0001" | "W1_0002" | "W1_0003" | "W1_0004" | "W1_0005", "W1_0001" | "W1_0002" | "W1_0003" | "W1_0004" | "W1_0005">;
5
+ static getNames(): Record<"W1_0001" | "W1_0002" | "W1_0003" | "W1_0004" | "W1_0005" | "W1_0006" | "W1_0007" | "W1_0008" | "W1_0009" | "W1_0010" | "W1_0011", "W1_0001" | "W1_0002" | "W1_0003" | "W1_0004" | "W1_0005" | "W1_0006" | "W1_0007" | "W1_0008" | "W1_0009" | "W1_0010" | "W1_0011">;
6
6
  static getTemplate(name: TemplateNamesType): {
7
7
  gridTemplate: string;
8
8
  gridStyle: {
@@ -108,6 +108,141 @@ declare class DynamicDesktopNavBarTemplates {
108
108
  userProfileOptions: {
109
109
  style: {};
110
110
  };
111
+ } | {
112
+ gridTemplate: string;
113
+ gridStyle: {
114
+ width: string;
115
+ gridTemplateColumns: string;
116
+ };
117
+ showSecondaryMenu: boolean;
118
+ userProfileOptions: {
119
+ style: {
120
+ width: string;
121
+ };
122
+ };
123
+ primaryMenuOptions: {
124
+ showMenuAsIcon: boolean;
125
+ maxLength: number;
126
+ style: {
127
+ justifyContent: string;
128
+ };
129
+ };
130
+ secondaryMenuOptions: {
131
+ showMenuAsIcon: boolean;
132
+ maxLength: number;
133
+ style: {};
134
+ };
135
+ } | {
136
+ gridTemplate: string;
137
+ gridStyle: {
138
+ width: string;
139
+ gridTemplateColumns: string;
140
+ };
141
+ showSecondaryMenu: boolean;
142
+ primaryMenuOptions: {
143
+ showMenuAsIcon: boolean;
144
+ maxLength: number;
145
+ style: {};
146
+ };
147
+ secondaryMenuOptions: {
148
+ showMenuAsIcon: boolean;
149
+ maxLength: number;
150
+ style: {};
151
+ };
152
+ userProfileOptions: {
153
+ style: {};
154
+ };
155
+ } | {
156
+ gridTemplate: string;
157
+ gridStyle: {
158
+ width: string;
159
+ gridTemplateColumns: string;
160
+ };
161
+ showSecondaryMenu: boolean;
162
+ primaryMenuOptions: {
163
+ showMenuAsIcon: boolean;
164
+ maxLength: number;
165
+ style: {};
166
+ };
167
+ secondaryMenuOptions: {
168
+ showMenuAsIcon: boolean;
169
+ maxLength: number;
170
+ style: {};
171
+ };
172
+ userProfileOptions: {
173
+ style: {};
174
+ };
175
+ } | {
176
+ gridTemplate: string;
177
+ gridStyle: {
178
+ width: string;
179
+ gridTemplateColumns: string;
180
+ };
181
+ showSecondaryMenu: boolean;
182
+ primaryMenuOptions: {
183
+ showMenuAsIcon: boolean;
184
+ maxLength: number;
185
+ style: {
186
+ justifyContent: string;
187
+ };
188
+ };
189
+ secondaryMenuOptions: {
190
+ showMenuAsIcon: boolean;
191
+ maxLength: number;
192
+ style: {};
193
+ };
194
+ userProfileOptions: {
195
+ style: {};
196
+ };
197
+ } | {
198
+ gridTemplate: string;
199
+ gridStyle: {
200
+ width: string;
201
+ gridTemplateColumns: string;
202
+ };
203
+ showSecondaryMenu: boolean;
204
+ primaryMenuOptions: {
205
+ showMenuAsIcon: boolean;
206
+ maxLength: number;
207
+ style: {
208
+ justifyContent: string;
209
+ };
210
+ };
211
+ secondaryMenuOptions: {
212
+ showMenuAsIcon: boolean;
213
+ maxLength: number;
214
+ style: {
215
+ justifyContent: string;
216
+ };
217
+ };
218
+ userProfileOptions: {
219
+ style: {};
220
+ };
221
+ } | {
222
+ gridTemplate: string;
223
+ gridStyle: {
224
+ gridTemplateColumns: string;
225
+ };
226
+ showSecondaryMenu: boolean;
227
+ primaryMenuOptions: {
228
+ showMenuAsIcon: boolean;
229
+ maxLength: number;
230
+ style: {
231
+ justifyContent: string;
232
+ };
233
+ };
234
+ secondaryMenuOptions: {
235
+ showMenuAsIcon: boolean;
236
+ maxLength: number;
237
+ style: {
238
+ width: string;
239
+ justifyContent: string;
240
+ paddingLeft: string;
241
+ };
242
+ };
243
+ userProfileOptions: {
244
+ style: {};
245
+ };
111
246
  };
112
247
  }
113
248
  export default DynamicDesktopNavBarTemplates;