pds-dev-kit-web-test 2.5.10 → 2.5.12

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.
@@ -283,7 +283,7 @@
283
283
  "sys_text_button_tooltip": "grey900",
284
284
  "sys_membership_button_base": "white/opacity20",
285
285
  "sys_membership_item_membership_base": "darkgrey50",
286
- "sys_membership_item_price_product_base": "darkgrey100",
286
+ "sys_membership_item_price_product_base": "darkgrey70",
287
287
  "sys_component_base_30": "darkgrey400",
288
288
  "sys_component_base_31": "darkgrey200",
289
289
  "sys_component_base_32": "darkgrey20",
@@ -354,5 +354,7 @@
354
354
  "sys_cpnt_sheet_base_13": "grey50",
355
355
  "sys_cpnt_sheet_base_14": "grey900",
356
356
  "sys_cpnt_white_opacity60": "white/opacity60",
357
- "sys_border_line_17": "darkgrey600"
357
+ "sys_border_line_17": "darkgrey600",
358
+ "usr_brand_primary_opacity05": "darkblue500/opacity05",
359
+ "sys_cpnt_sheet_base_15": "grey200"
358
360
  }
@@ -282,8 +282,8 @@
282
282
  "sys_button_tooltip_base": "black/opacity80",
283
283
  "sys_text_button_tooltip": "white",
284
284
  "sys_membership_button_base": "black/opacity20",
285
- "sys_membership_item_membership_base": "grey30",
286
- "sys_membership_item_price_product_base": "grey70",
285
+ "sys_membership_item_membership_base": "grey10",
286
+ "sys_membership_item_price_product_base": "grey50",
287
287
  "sys_component_base_30": "grey400",
288
288
  "sys_component_base_31": "grey200",
289
289
  "sys_component_base_32": "grey20",
@@ -354,5 +354,7 @@
354
354
  "sys_cpnt_sheet_base_13": "grey50",
355
355
  "sys_cpnt_sheet_base_14": "grey900",
356
356
  "sys_cpnt_white_opacity60": "white/opacity60",
357
- "sys_border_line_17": "black/opacity00"
357
+ "sys_border_line_17": "black/opacity00",
358
+ "usr_brand_primary_opacity05": "blue500/opacity05",
359
+ "sys_cpnt_sheet_base_15": "grey100"
358
360
  }
@@ -858,5 +858,7 @@
858
858
  "ui_120": "sys_cpnt_white_opacity60",
859
859
  "ui_121": "sys_component_base_03",
860
860
  "ui_cpnt_tooltip_base_border": "sys_border_line_17",
861
- "ui_122": "sys_widget_green_01"
861
+ "ui_122": "sys_widget_green_01",
862
+ "ui_123": "usr_brand_primary_opacity05",
863
+ "ui_124": "sys_cpnt_sheet_base_15"
862
864
  }
@@ -119,7 +119,7 @@ declare const colorSet: {
119
119
  grey300: string;
120
120
  darkgrey300: string;
121
121
  };
122
- readonly PaletteColor_light: {
122
+ readonly PaletteColor_Dark: {
123
123
  sys_container_background_01: string;
124
124
  sys_container_background_02: string;
125
125
  sys_container_background_03: string;
@@ -476,8 +476,10 @@ declare const colorSet: {
476
476
  sys_cpnt_sheet_base_14: string;
477
477
  sys_cpnt_white_opacity60: string;
478
478
  sys_border_line_17: string;
479
+ usr_brand_primary_opacity05: string;
480
+ sys_cpnt_sheet_base_15: string;
479
481
  };
480
- readonly PaletteColor_Dark: {
482
+ readonly PaletteColor_light: {
481
483
  sys_container_background_01: string;
482
484
  sys_container_background_02: string;
483
485
  sys_container_background_03: string;
@@ -834,6 +836,8 @@ declare const colorSet: {
834
836
  sys_cpnt_sheet_base_14: string;
835
837
  sys_cpnt_white_opacity60: string;
836
838
  sys_border_line_17: string;
839
+ usr_brand_primary_opacity05: string;
840
+ sys_cpnt_sheet_base_15: string;
837
841
  };
838
842
  readonly UIColor: {
839
843
  ui_cpnt_button_fill_base_primary: string;
@@ -1696,6 +1700,8 @@ declare const colorSet: {
1696
1700
  ui_121: string;
1697
1701
  ui_cpnt_tooltip_base_border: string;
1698
1702
  ui_122: string;
1703
+ ui_123: string;
1704
+ ui_124: string;
1699
1705
  };
1700
1706
  };
1701
1707
  export default colorSet;
@@ -5,13 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /* eslint-disable import/order */
7
7
  var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
8
- var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
9
8
  var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
9
+ var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
10
10
  var UIColor_json_1 = __importDefault(require("./UIColor.json"));
11
11
  var colorSet = {
12
12
  SemanticColor: SemanticColor_json_1.default,
13
- PaletteColor_light: PaletteColor_light_json_1.default,
14
13
  PaletteColor_Dark: PaletteColor_Dark_json_1.default,
14
+ PaletteColor_light: PaletteColor_light_json_1.default,
15
15
  UIColor: UIColor_json_1.default
16
16
  };
17
17
  exports.default = colorSet;
@@ -859,4 +859,6 @@ export interface UITheme {
859
859
  ui_121: string;
860
860
  ui_cpnt_tooltip_base_border: string;
861
861
  ui_122: string;
862
+ ui_123: string;
863
+ ui_124: string;
862
864
  }
@@ -41,6 +41,14 @@ type ActionHandlerPayload = {
41
41
  e?: ResizeEventType;
42
42
  node?: HTMLElement;
43
43
  };
44
+ '@CUSTOMSECTION/CB_AUTO_FIT_CONTENT': {
45
+ layout: Layout;
46
+ prev?: LayoutItem;
47
+ item?: LayoutItem;
48
+ placeholder?: LayoutItem;
49
+ e?: ResizeEventType;
50
+ node?: HTMLElement;
51
+ };
44
52
  '@CUSTOMSECTION/PLACEMENT_CHANGED': {
45
53
  layout: Layout;
46
54
  layouts: Layouts;
@@ -345,6 +345,26 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
345
345
  });
346
346
  }
347
347
  };
348
+ var onAutoFitContent = function (props) {
349
+ var prev = props.prev, item = props.item;
350
+ if (!isEditMode || !item) {
351
+ return;
352
+ }
353
+ var numberId = Number(item.i);
354
+ var isIdNumber = !Number.isNaN(numberId);
355
+ if (isLayoutPlacementSame(item, prev)) {
356
+ return;
357
+ }
358
+ if (isIdNumber) {
359
+ setSelectedCB(numberId);
360
+ }
361
+ if (sectionActionHandler && isIdNumber) {
362
+ sectionActionHandler({
363
+ type: '@CUSTOMSECTION/CB_AUTO_FIT_CONTENT',
364
+ payload: props
365
+ });
366
+ }
367
+ };
348
368
  var onClickSection = function () {
349
369
  if (!isEditMode) {
350
370
  return;
@@ -423,7 +443,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
423
443
  maxWidth: customSectionStyles.maxWidth,
424
444
  minWidth: isMobile ? GLE_MIN_WIDTH_MOBILE_PX : GLE_MIN_WIDTH_DESKTOP_PX,
425
445
  fontSize: "".concat(baseFontSize, "px")
426
- }, onLayoutChange: onLayoutChange, onDragStart: onDragStart, onDragStop: onDragStop, onResizeStop: onResizeStop, onFitToContent: onResizeStop, onWidthChange: onWidthChange, minNbRow: rows, isDraggable: isEditMode, isResizable: isEditMode }, { children: keepSimilarOrderToPreventRerender(layouts[layoutByDevice]).map(function (each, index) {
446
+ }, onLayoutChange: onLayoutChange, onDragStart: onDragStart, onDragStop: onDragStop, onResizeStop: onResizeStop, onFitToContent: onAutoFitContent, onWidthChange: onWidthChange, minNbRow: rows, isDraggable: isEditMode, isResizable: isEditMode }, { children: keepSimilarOrderToPreventRerender(layouts[layoutByDevice]).map(function (each, index) {
427
447
  var _a;
428
448
  if (each === null) {
429
449
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.5.10",
3
+ "version": "2.5.12",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",