pds-dev-kit-web-test 2.5.259 → 2.5.261
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/src/common/assets/icons/fill/BringToFrontArrow.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/BringToFrontArrow.js +30 -0
- package/dist/src/common/assets/icons/fill/DesktopSync.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/DesktopSync.js +30 -0
- package/dist/src/common/assets/icons/fill/MoveBackwardArrow.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/MoveBackwardArrow.js +30 -0
- package/dist/src/common/assets/icons/fill/MoveForwardArrow.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/MoveForwardArrow.js +30 -0
- package/dist/src/common/assets/icons/fill/SendToBackArrow.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/SendToBackArrow.js +30 -0
- package/dist/src/common/assets/icons/fill/index.d.ts +5 -0
- package/dist/src/common/assets/icons/fill/index.js +11 -1
- package/dist/src/common/assets/icons/line/BringToFrontArrow.d.ts +4 -0
- package/dist/src/common/assets/icons/line/BringToFrontArrow.js +30 -0
- package/dist/src/common/assets/icons/line/DesktopSync.d.ts +4 -0
- package/dist/src/common/assets/icons/line/DesktopSync.js +30 -0
- package/dist/src/common/assets/icons/line/MoveBackwardArrow.d.ts +4 -0
- package/dist/src/common/assets/icons/line/MoveBackwardArrow.js +30 -0
- package/dist/src/common/assets/icons/line/MoveForwardArrow.d.ts +4 -0
- package/dist/src/common/assets/icons/line/MoveForwardArrow.js +30 -0
- package/dist/src/common/assets/icons/line/SendToBackArrow.d.ts +4 -0
- package/dist/src/common/assets/icons/line/SendToBackArrow.js +30 -0
- package/dist/src/common/assets/icons/line/index.d.ts +5 -0
- package/dist/src/common/assets/icons/line/index.js +11 -1
- package/dist/src/common/hooks/useTooltip.js +1 -1
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +3 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +3 -1
- package/dist/src/common/styles/colorSet/SemanticColor.json +3 -1
- package/dist/src/common/styles/colorSet/UIColor.json +6 -2
- package/dist/src/common/styles/colorSet/index.d.ts +10 -0
- package/dist/src/common/styles/colorSet/ui-type.d.ts +4 -0
- package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.js +1 -1
- package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
- package/dist/src/desktop/components/Dropdown/Dropdown.js +6 -4
- package/dist/src/desktop/components/MainButton/MainButton.d.ts +1 -1
- package/dist/src/desktop/components/MainButton/MainButton.js +20 -6
- package/dist/src/desktop/components/UploadMainButton/UploadMainButton.d.ts +1 -1
- package/dist/src/desktop/components/UploadMainButton/UploadMainButton.js +21 -7
- package/dist/src/mobile/components/MainButton/MainButton.d.ts +1 -1
- package/dist/src/mobile/components/MainButton/MainButton.js +20 -6
- package/dist/src/mobile/components/UploadMainButton/UploadMainButton.d.ts +1 -1
- package/dist/src/mobile/components/UploadMainButton/UploadMainButton.js +20 -6
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +0 -3
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +1 -1
- package/dist/src/sub/DynamicLayout/components/Section/ErrorBoundary/ErrorBoundary.js +1 -12
- package/dist/src/sub/DynamicLayout/components/SectionMatcher/SectionMatcher.js +3 -5
- package/dist/src/sub/DynamicLayout/hooks/useCustomSectionShortcut/useCustomSectionShortcut.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/hooks/useCustomSectionShortcut/useCustomSectionShortcut.js +1 -6
- package/dist/src/sub/DynamicLayout/mock_samplePage.js +132 -132
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.d.ts +14038 -0
- package/dist/src/sub/DynamicLayout/pagesPreviewMock.js +35827 -0
- package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +15 -64
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +200 -731
- package/dist/src/sub/DynamicLayout/sections/{FlexGridCustomSection.d.ts → CustomSection/FlexGridCustomSection.d.ts} +5 -1
- package/dist/src/sub/DynamicLayout/sections/{FlexGridCustomSection.js → CustomSection/FlexGridCustomSection.js} +88 -44
- package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.d.ts +1 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.js +5 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +0 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +23 -25
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.d.ts +76 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +2 -16
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/types.d.ts +38 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_Box.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_BoxWithShadow.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +1 -79
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/getGoogleFonts.d.ts +4 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/getGoogleFonts.js +14 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/index.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/index.js +3 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/useGroupDrag.d.ts +22 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/useGroupDrag.js +273 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/{newUtils/group.d.ts → hooks/useGroupDrag/utils.d.ts} +1 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/{newUtils/group.js → hooks/useGroupDrag/utils.js} +1 -14
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.d.ts +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +1 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.d.ts +6 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +2 -18
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +0 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +2 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +9 -12
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/types.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/types.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +5 -3
- package/dist/src/sub/DynamicLayout/types.d.ts +1 -45
- package/dist/src/sub/SandollFontKit/utils/appendSandollTagToHead.d.ts +1 -1
- package/dist/src/sub/SandollFontKit/utils/appendSandollTagToHead.js +11 -17
- package/package.json +2 -3
- package/release-note.md +2 -3
- package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.d.ts +0 -11
- package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +0 -56
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +0 -9
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +0 -217
- package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +0 -6
- package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +0 -27
- package/dist/src/sub/DynamicLayout/CompositionRenderer/FlexGridItem.d.ts +0 -12
- package/dist/src/sub/DynamicLayout/CompositionRenderer/FlexGridItem.js +0 -75
- package/dist/src/sub/DynamicLayout/gleStyles.d.ts +0 -3
- package/dist/src/sub/DynamicLayout/gleStyles.js +0 -19
- package/dist/src/sub/DynamicLayout/mocks.d.ts +0 -1111
- package/dist/src/sub/DynamicLayout/mocks.js +0 -4775
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +0 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +0 -12
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_Backdrop.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_Backdrop.js +0 -13
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/clsx.d.ts +0 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/clsx.js +0 -33
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/fontSizeAdjustment.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/fontSizeAdjustment.js +0 -333
@@ -179,10 +179,6 @@ function Dropdown(_a) {
|
|
179
179
|
var getTextColorTheme = function () {
|
180
180
|
if (colorTheme === 'none') {
|
181
181
|
if (state === 'normal') {
|
182
|
-
var isHintTextShow = !(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;
|
183
|
-
if (isHintTextShow) {
|
184
|
-
return 'sysTextSecondary';
|
185
|
-
}
|
186
182
|
if (isFocused) {
|
187
183
|
return 'sysTextPrimary';
|
188
184
|
}
|
@@ -203,6 +199,12 @@ function Dropdown(_a) {
|
|
203
199
|
}
|
204
200
|
};
|
205
201
|
var getTextColorOverride = function () {
|
202
|
+
if (colorTheme === 'none') {
|
203
|
+
var isHintTextShow = !(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;
|
204
|
+
if (isHintTextShow) {
|
205
|
+
return 'ui_cpnt_form_text_hint';
|
206
|
+
}
|
207
|
+
}
|
206
208
|
if (colorTheme === 'dark') {
|
207
209
|
if (state === 'normal') {
|
208
210
|
var isHintTextShow = !(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;
|
@@ -11,7 +11,7 @@ export type MainButtonProps = {
|
|
11
11
|
iconMode?: 'none' | 'left' | 'right';
|
12
12
|
iconFillType?: 'fill' | 'line';
|
13
13
|
iconName?: PDSIconType;
|
14
|
-
colorTheme?: 'none' | 'line1' | 'line2' | 'line3' | 'primary1' | 'secondary1';
|
14
|
+
colorTheme?: 'none' | 'line1' | 'line2' | 'line3' | 'primary1' | 'secondary1' | 'secondary2';
|
15
15
|
type?: 'button' | 'submit';
|
16
16
|
state?: 'normal' | 'disabled';
|
17
17
|
isLoading?: boolean;
|
@@ -352,14 +352,21 @@ var secondary1Disabled = (0, styled_components_1.css)(templateObject_16 || (temp
|
|
352
352
|
var theme = _a.theme;
|
353
353
|
return theme.ui_cpnt_button_secondary_variation_base_default;
|
354
354
|
});
|
355
|
-
var
|
355
|
+
var secondary2Disabled = (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
356
|
+
var theme = _a.theme;
|
357
|
+
return theme.ui_cpnt_button_fill_base_on_sheet;
|
358
|
+
});
|
359
|
+
var secondaryDisabled = (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n background-color: ", ";\n\n ", "\n ", "\n"], ["\n background-color: ", ";\n\n ", "\n ", "\n"])), function (_a) {
|
356
360
|
var theme = _a.theme;
|
357
361
|
return theme.ui_cpnt_button_line_base_hover;
|
358
362
|
}, function (_a) {
|
359
363
|
var colorTheme = _a.colorTheme;
|
360
364
|
return colorTheme === 'secondary1' && secondary1Disabled;
|
365
|
+
}, function (_a) {
|
366
|
+
var colorTheme = _a.colorTheme;
|
367
|
+
return colorTheme === 'secondary2' && secondary2Disabled;
|
361
368
|
});
|
362
|
-
var secondary1 = (0, styled_components_1.css)(
|
369
|
+
var secondary1 = (0, styled_components_1.css)(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n background-color: ", ";\n\n &:hover:enabled {\n background-color: ", ";\n }\n\n &:active:enabled {\n background-color: ", ";\n }\n\n &::before {\n content: '';\n display: none;\n }\n\n ", "\n"], ["\n background-color: ", ";\n\n &:hover:enabled {\n background-color: ", ";\n }\n\n &:active:enabled {\n background-color: ", ";\n }\n\n &::before {\n content: '';\n display: none;\n }\n\n ", "\n"])), function (_a) {
|
363
370
|
var theme = _a.theme;
|
364
371
|
return theme.ui_cpnt_button_secondary_variation_base_default;
|
365
372
|
}, function (_a) {
|
@@ -369,7 +376,11 @@ var secondary1 = (0, styled_components_1.css)(templateObject_18 || (templateObje
|
|
369
376
|
var theme = _a.theme;
|
370
377
|
return theme.ui_cpnt_button_secondary_variation_base_pressed;
|
371
378
|
}, transitionStyle_1.ButtonTransition);
|
372
|
-
var
|
379
|
+
var secondary2 = (0, styled_components_1.css)(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
380
|
+
var theme = _a.theme;
|
381
|
+
return theme.ui_cpnt_button_fill_base_on_sheet;
|
382
|
+
});
|
383
|
+
var secondary = (0, styled_components_1.css)(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n content: '';\n border-radius: inherit;\n position: absolute;\n background-color: transparent;\n height: 100%;\n width: 100%;\n padding: 0;\n ", "\n }\n\n &:hover:enabled::before {\n background-color: ", ";\n }\n\n &:active:enabled::before {\n background-color: ", ";\n }\n\n ", "\n ", "\n ", "\n"], ["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n content: '';\n border-radius: inherit;\n position: absolute;\n background-color: transparent;\n height: 100%;\n width: 100%;\n padding: 0;\n ", "\n }\n\n &:hover:enabled::before {\n background-color: ", ";\n }\n\n &:active:enabled::before {\n background-color: ", ";\n }\n\n ", "\n ", "\n ", "\n"])), function (_a) {
|
373
384
|
var theme = _a.theme;
|
374
385
|
return theme.ui_cpnt_button_line_base_hover;
|
375
386
|
}, transitionStyle_1.ButtonTransition, function (_a) {
|
@@ -381,11 +392,14 @@ var secondary = (0, styled_components_1.css)(templateObject_19 || (templateObjec
|
|
381
392
|
}, function (_a) {
|
382
393
|
var colorTheme = _a.colorTheme;
|
383
394
|
return colorTheme === 'secondary1' && secondary1;
|
395
|
+
}, function (_a) {
|
396
|
+
var colorTheme = _a.colorTheme;
|
397
|
+
return colorTheme === 'secondary2' && secondary2;
|
384
398
|
}, function (_a) {
|
385
399
|
var state = _a.state;
|
386
400
|
return state === 'disabled' && secondaryDisabled;
|
387
401
|
});
|
388
|
-
var S_MainButton = styled_components_1.default.button(
|
402
|
+
var S_MainButton = styled_components_1.default.button(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n cursor: ", ";\n display: inline-flex;\n justify-content: center;\n\n &:focus {\n outline: none;\n }\n ", "\n ", "\n ", "\n ", ";\n\n & > div {\n ", ";\n }\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n cursor: ", ";\n display: inline-flex;\n justify-content: center;\n\n &:focus {\n outline: none;\n }\n ", "\n ", "\n ", "\n ", ";\n\n & > div {\n ", ";\n }\n"])), function (_a) {
|
389
403
|
var state = _a.state;
|
390
404
|
return (state === 'normal' ? 'pointer' : 'default');
|
391
405
|
}, function (_a) {
|
@@ -408,6 +422,6 @@ var S_MainButton = styled_components_1.default.button(templateObject_20 || (temp
|
|
408
422
|
regular: "font-weight: ".concat(theme.fontWeight.normal)
|
409
423
|
}[fontWeight];
|
410
424
|
});
|
411
|
-
var S_SubmittingMainButton = (0, styled_components_1.default)(S_MainButton)(
|
425
|
+
var S_SubmittingMainButton = (0, styled_components_1.default)(S_MainButton)(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n cursor: default;\n"], ["\n cursor: default;\n"])));
|
412
426
|
exports.default = MainButton;
|
413
|
-
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;
|
427
|
+
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;
|
@@ -11,7 +11,7 @@ type UploadMainButtonProps = {
|
|
11
11
|
iconMode?: 'none' | 'left' | 'right';
|
12
12
|
iconFillType?: 'fill' | 'line';
|
13
13
|
iconName?: PDSIconType;
|
14
|
-
colorTheme?: 'none' | 'line1' | 'line2' | 'line3' | 'primary1' | 'secondary1';
|
14
|
+
colorTheme?: 'none' | 'line1' | 'line2' | 'line3' | 'primary1' | 'secondary1' | 'secondary2';
|
15
15
|
state?: 'normal' | 'disabled';
|
16
16
|
accept?: string;
|
17
17
|
multipleMode?: 'none' | 'use';
|
@@ -322,14 +322,21 @@ var secondary1Disabled = (0, styled_components_1.css)(templateObject_16 || (temp
|
|
322
322
|
var theme = _a.theme;
|
323
323
|
return theme.ui_cpnt_button_secondary_variation_base_default;
|
324
324
|
});
|
325
|
-
var
|
325
|
+
var secondary2Disabled = (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
326
|
+
var theme = _a.theme;
|
327
|
+
return theme.ui_cpnt_button_fill_base_on_sheet;
|
328
|
+
});
|
329
|
+
var secondaryDisabled = (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n background-color: ", ";\n\n ", "\n ", "\n"], ["\n background-color: ", ";\n\n ", "\n ", "\n"])), function (_a) {
|
326
330
|
var theme = _a.theme;
|
327
331
|
return theme.ui_cpnt_button_line_base_hover;
|
328
332
|
}, function (_a) {
|
329
333
|
var colorTheme = _a.colorTheme;
|
330
334
|
return colorTheme === 'secondary1' && secondary1Disabled;
|
335
|
+
}, function (_a) {
|
336
|
+
var colorTheme = _a.colorTheme;
|
337
|
+
return colorTheme === 'secondary2' && secondary2Disabled;
|
331
338
|
});
|
332
|
-
var secondary1 = (0, styled_components_1.css)(
|
339
|
+
var secondary1 = (0, styled_components_1.css)(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n background-color: ", ";\n\n &:hover:not([disabled]) {\n background-color: ", ";\n }\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n &::before {\n content: '';\n display: none;\n }\n\n ", "\n"], ["\n background-color: ", ";\n\n &:hover:not([disabled]) {\n background-color: ", ";\n }\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n &::before {\n content: '';\n display: none;\n }\n\n ", "\n"])), function (_a) {
|
333
340
|
var theme = _a.theme;
|
334
341
|
return theme.ui_cpnt_button_secondary_variation_base_default;
|
335
342
|
}, function (_a) {
|
@@ -339,7 +346,11 @@ var secondary1 = (0, styled_components_1.css)(templateObject_18 || (templateObje
|
|
339
346
|
var theme = _a.theme;
|
340
347
|
return theme.ui_cpnt_button_secondary_variation_base_pressed;
|
341
348
|
}, transitionStyle_1.ButtonTransition);
|
342
|
-
var
|
349
|
+
var secondary2 = (0, styled_components_1.css)(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
350
|
+
var theme = _a.theme;
|
351
|
+
return theme.ui_cpnt_button_fill_base_on_sheet;
|
352
|
+
});
|
353
|
+
var secondary = (0, styled_components_1.css)(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n content: '';\n border-radius: inherit;\n position: absolute;\n background-color: transparent;\n height: 100%;\n width: 100%;\n padding: 0;\n ", "\n }\n\n &:hover:not([disabled])::before {\n background-color: ", ";\n }\n\n &:active:not([disabled])::before {\n background-color: ", ";\n }\n\n ", "\n ", "\n ", "\n"], ["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n content: '';\n border-radius: inherit;\n position: absolute;\n background-color: transparent;\n height: 100%;\n width: 100%;\n padding: 0;\n ", "\n }\n\n &:hover:not([disabled])::before {\n background-color: ", ";\n }\n\n &:active:not([disabled])::before {\n background-color: ", ";\n }\n\n ", "\n ", "\n ", "\n"])), function (_a) {
|
343
354
|
var theme = _a.theme;
|
344
355
|
return theme.ui_cpnt_button_line_base_hover;
|
345
356
|
}, transitionStyle_1.ButtonTransition, function (_a) {
|
@@ -351,11 +362,14 @@ var secondary = (0, styled_components_1.css)(templateObject_19 || (templateObjec
|
|
351
362
|
}, function (_a) {
|
352
363
|
var colorTheme = _a.colorTheme;
|
353
364
|
return colorTheme === 'secondary1' && secondary1;
|
365
|
+
}, function (_a) {
|
366
|
+
var colorTheme = _a.colorTheme;
|
367
|
+
return colorTheme === 'secondary2' && secondary2;
|
354
368
|
}, function (_a) {
|
355
369
|
var disabled = _a.disabled;
|
356
370
|
return disabled && secondaryDisabled;
|
357
371
|
});
|
358
|
-
var S_UploadMainButton = styled_components_1.default.label(
|
372
|
+
var S_UploadMainButton = styled_components_1.default.label(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n cursor: ", ";\n display: inline-flex;\n justify-content: center;\n\n & > div {\n font-weight: ", ";\n }\n\n ", "\n ", "\n ", "\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n cursor: ", ";\n display: inline-flex;\n justify-content: center;\n\n & > div {\n font-weight: ", ";\n }\n\n ", "\n ", "\n ", "\n ", ";\n"])), function (_a) {
|
359
373
|
var disabled = _a.disabled;
|
360
374
|
return (disabled ? 'default' : 'pointer');
|
361
375
|
}, function (_a) {
|
@@ -378,7 +392,7 @@ var S_UploadMainButton = styled_components_1.default.label(templateObject_20 ||
|
|
378
392
|
var responsiveMode = _a.responsiveMode;
|
379
393
|
return responsiveMode === 'use' && 'width: 100%';
|
380
394
|
});
|
381
|
-
var S_LoadingUploadMainButton = (0, styled_components_1.default)(S_UploadMainButton)(
|
382
|
-
var S_SubmittingUploadMainButton = (0, styled_components_1.default)(S_UploadMainButton)(
|
395
|
+
var S_LoadingUploadMainButton = (0, styled_components_1.default)(S_UploadMainButton)(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), styles_1.skeletonLoadingStyle);
|
396
|
+
var S_SubmittingUploadMainButton = (0, styled_components_1.default)(S_UploadMainButton)(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n cursor: default;\n"], ["\n cursor: default;\n"])));
|
383
397
|
exports.default = UploadMainButton;
|
384
|
-
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;
|
398
|
+
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;
|
@@ -11,7 +11,7 @@ export type MainButtonProps = {
|
|
11
11
|
iconMode?: 'none' | 'left' | 'right';
|
12
12
|
iconFillType?: 'fill' | 'line';
|
13
13
|
iconName?: PDSIconType;
|
14
|
-
colorTheme?: 'none' | 'line1' | 'line2' | 'line3' | 'primary1' | 'secondary1';
|
14
|
+
colorTheme?: 'none' | 'line1' | 'line2' | 'line3' | 'primary1' | 'secondary1' | 'secondary2';
|
15
15
|
type?: 'button' | 'submit';
|
16
16
|
state?: 'normal' | 'disabled';
|
17
17
|
isLoading?: boolean;
|
@@ -333,21 +333,32 @@ var secondary1Disabled = (0, styled_components_1.css)(templateObject_16 || (temp
|
|
333
333
|
var theme = _a.theme;
|
334
334
|
return theme.ui_cpnt_button_secondary_variation_base_default;
|
335
335
|
});
|
336
|
-
var
|
336
|
+
var secondary2Disabled = (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
337
|
+
var theme = _a.theme;
|
338
|
+
return theme.ui_cpnt_button_fill_base_on_sheet;
|
339
|
+
});
|
340
|
+
var secondaryDisabled = (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n background-color: ", ";\n\n ", "\n ", "\n"], ["\n background-color: ", ";\n\n ", "\n ", "\n"])), function (_a) {
|
337
341
|
var theme = _a.theme;
|
338
342
|
return theme.ui_cpnt_button_line_base_hover;
|
339
343
|
}, function (_a) {
|
340
344
|
var colorTheme = _a.colorTheme;
|
341
345
|
return colorTheme === 'secondary1' && secondary1Disabled;
|
346
|
+
}, function (_a) {
|
347
|
+
var colorTheme = _a.colorTheme;
|
348
|
+
return colorTheme === 'secondary2' && secondary2Disabled;
|
342
349
|
});
|
343
|
-
var secondary1 = (0, styled_components_1.css)(
|
350
|
+
var secondary1 = (0, styled_components_1.css)(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n background-color: ", ";\n\n &:active:enabled {\n background-color: ", ";\n }\n\n &::before {\n content: '';\n display: none;\n }\n\n ", "\n"], ["\n background-color: ", ";\n\n &:active:enabled {\n background-color: ", ";\n }\n\n &::before {\n content: '';\n display: none;\n }\n\n ", "\n"])), function (_a) {
|
344
351
|
var theme = _a.theme;
|
345
352
|
return theme.ui_cpnt_button_secondary_variation_base_default;
|
346
353
|
}, function (_a) {
|
347
354
|
var theme = _a.theme;
|
348
355
|
return theme.ui_cpnt_button_secondary_variation_base_pressed;
|
349
356
|
}, transitionStyle_1.ButtonTransition);
|
350
|
-
var
|
357
|
+
var secondary2 = (0, styled_components_1.css)(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
358
|
+
var theme = _a.theme;
|
359
|
+
return theme.ui_cpnt_button_fill_base_on_sheet;
|
360
|
+
});
|
361
|
+
var secondary = (0, styled_components_1.css)(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n content: '';\n border-radius: inherit;\n position: absolute;\n background-color: transparent;\n height: 100%;\n width: 100%;\n padding: 0;\n ", "\n }\n\n &:active:enabled::before {\n background-color: ", ";\n }\n\n ", "\n ", "\n ", "\n"], ["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n content: '';\n border-radius: inherit;\n position: absolute;\n background-color: transparent;\n height: 100%;\n width: 100%;\n padding: 0;\n ", "\n }\n\n &:active:enabled::before {\n background-color: ", ";\n }\n\n ", "\n ", "\n ", "\n"])), function (_a) {
|
351
362
|
var theme = _a.theme;
|
352
363
|
return theme.ui_cpnt_button_line_base_hover;
|
353
364
|
}, transitionStyle_1.ButtonTransition, function (_a) {
|
@@ -356,11 +367,14 @@ var secondary = (0, styled_components_1.css)(templateObject_19 || (templateObjec
|
|
356
367
|
}, function (_a) {
|
357
368
|
var colorTheme = _a.colorTheme;
|
358
369
|
return colorTheme === 'secondary1' && secondary1;
|
370
|
+
}, function (_a) {
|
371
|
+
var colorTheme = _a.colorTheme;
|
372
|
+
return colorTheme === 'secondary2' && secondary2;
|
359
373
|
}, function (_a) {
|
360
374
|
var state = _a.state;
|
361
375
|
return state === 'disabled' && secondaryDisabled;
|
362
376
|
});
|
363
|
-
var S_MainButton = styled_components_1.default.button(
|
377
|
+
var S_MainButton = styled_components_1.default.button(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n\n &:focus {\n outline: none;\n }\n\n ", "\n ", "\n ", "\n ", ";\n\n & > div {\n ", ";\n }\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n\n &:focus {\n outline: none;\n }\n\n ", "\n ", "\n ", "\n ", ";\n\n & > div {\n ", ";\n }\n"])), function (_a) {
|
364
378
|
var styleTheme = _a.styleTheme;
|
365
379
|
return styleTheme && { primary: primary, secondary: secondary }[styleTheme];
|
366
380
|
}, function (_a) {
|
@@ -380,6 +394,6 @@ var S_MainButton = styled_components_1.default.button(templateObject_20 || (temp
|
|
380
394
|
regular: "font-weight: ".concat(theme.fontWeight.normal)
|
381
395
|
}[fontWeight];
|
382
396
|
});
|
383
|
-
var S_LoadingMainButton = (0, styled_components_1.default)(S_MainButton)(
|
397
|
+
var S_LoadingMainButton = (0, styled_components_1.default)(S_MainButton)(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), styles_1.skeletonLoadingStyle);
|
384
398
|
exports.default = MainButton;
|
385
|
-
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;
|
399
|
+
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;
|
@@ -11,7 +11,7 @@ type UploadMainButtonProps = {
|
|
11
11
|
iconMode?: 'none' | 'left' | 'right';
|
12
12
|
iconFillType?: 'fill' | 'line';
|
13
13
|
iconName?: PDSIconType;
|
14
|
-
colorTheme?: 'none' | 'line1' | 'line2' | 'line3' | 'primary1' | 'secondary1';
|
14
|
+
colorTheme?: 'none' | 'line1' | 'line2' | 'line3' | 'primary1' | 'secondary1' | 'secondary2';
|
15
15
|
state?: 'normal' | 'disabled';
|
16
16
|
accept?: string;
|
17
17
|
multipleMode?: 'none' | 'use';
|
@@ -310,21 +310,32 @@ var secondary1Disabled = (0, styled_components_1.css)(templateObject_16 || (temp
|
|
310
310
|
var theme = _a.theme;
|
311
311
|
return theme.ui_cpnt_button_secondary_variation_base_default;
|
312
312
|
});
|
313
|
-
var
|
313
|
+
var secondary2Disabled = (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
314
|
+
var theme = _a.theme;
|
315
|
+
return theme.ui_cpnt_button_fill_base_on_sheet;
|
316
|
+
});
|
317
|
+
var secondaryDisabled = (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n background-color: ", ";\n\n ", "\n ", "\n"], ["\n background-color: ", ";\n\n ", "\n ", "\n"])), function (_a) {
|
314
318
|
var theme = _a.theme;
|
315
319
|
return theme.ui_cpnt_button_line_base_hover;
|
316
320
|
}, function (_a) {
|
317
321
|
var colorTheme = _a.colorTheme;
|
318
322
|
return colorTheme === 'secondary1' && secondary1Disabled;
|
323
|
+
}, function (_a) {
|
324
|
+
var colorTheme = _a.colorTheme;
|
325
|
+
return colorTheme === 'secondary2' && secondary2Disabled;
|
319
326
|
});
|
320
|
-
var secondary1 = (0, styled_components_1.css)(
|
327
|
+
var secondary1 = (0, styled_components_1.css)(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n &::before {\n content: '';\n display: none;\n }\n\n ", "\n"], ["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n &::before {\n content: '';\n display: none;\n }\n\n ", "\n"])), function (_a) {
|
321
328
|
var theme = _a.theme;
|
322
329
|
return theme.ui_cpnt_button_secondary_variation_base_default;
|
323
330
|
}, function (_a) {
|
324
331
|
var theme = _a.theme;
|
325
332
|
return theme.ui_cpnt_button_secondary_variation_base_pressed;
|
326
333
|
}, transitionStyle_1.ButtonTransition);
|
327
|
-
var
|
334
|
+
var secondary2 = (0, styled_components_1.css)(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
335
|
+
var theme = _a.theme;
|
336
|
+
return theme.ui_cpnt_button_fill_base_on_sheet;
|
337
|
+
});
|
338
|
+
var secondary = (0, styled_components_1.css)(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n content: '';\n border-radius: inherit;\n position: absolute;\n background-color: transparent;\n height: 100%;\n width: 100%;\n padding: 0;\n ", "\n }\n\n &:active:not([disabled])::before {\n background-color: ", ";\n }\n\n ", "\n ", "\n ", "\n"], ["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n content: '';\n border-radius: inherit;\n position: absolute;\n background-color: transparent;\n height: 100%;\n width: 100%;\n padding: 0;\n ", "\n }\n\n &:active:not([disabled])::before {\n background-color: ", ";\n }\n\n ", "\n ", "\n ", "\n"])), function (_a) {
|
328
339
|
var theme = _a.theme;
|
329
340
|
return theme.ui_cpnt_button_line_base_hover;
|
330
341
|
}, transitionStyle_1.ButtonTransition, function (_a) {
|
@@ -333,11 +344,14 @@ var secondary = (0, styled_components_1.css)(templateObject_19 || (templateObjec
|
|
333
344
|
}, function (_a) {
|
334
345
|
var colorTheme = _a.colorTheme;
|
335
346
|
return colorTheme === 'secondary1' && secondary1;
|
347
|
+
}, function (_a) {
|
348
|
+
var colorTheme = _a.colorTheme;
|
349
|
+
return colorTheme === 'secondary2' && secondary2;
|
336
350
|
}, function (_a) {
|
337
351
|
var disabled = _a.disabled;
|
338
352
|
return disabled && secondaryDisabled;
|
339
353
|
});
|
340
|
-
var S_UploadMainButton = styled_components_1.default.label(
|
354
|
+
var S_UploadMainButton = styled_components_1.default.label(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n\n & > div {\n font-weight: ", ";\n }\n\n ", "\n ", "\n ", "\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n\n & > div {\n font-weight: ", ";\n }\n\n ", "\n ", "\n ", "\n ", ";\n"])), function (_a) {
|
341
355
|
var theme = _a.theme, fontWeight = _a.fontWeight;
|
342
356
|
return fontWeight &&
|
343
357
|
{
|
@@ -357,6 +371,6 @@ var S_UploadMainButton = styled_components_1.default.label(templateObject_20 ||
|
|
357
371
|
var responsiveMode = _a.responsiveMode;
|
358
372
|
return responsiveMode === 'use' && 'width: 100%';
|
359
373
|
});
|
360
|
-
var S_LoadingUploadMainButton = (0, styled_components_1.default)(S_UploadMainButton)(
|
374
|
+
var S_LoadingUploadMainButton = (0, styled_components_1.default)(S_UploadMainButton)(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), styles_1.skeletonLoadingStyle);
|
361
375
|
exports.default = UploadMainButton;
|
362
|
-
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;
|
376
|
+
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/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js
CHANGED
@@ -43,9 +43,6 @@ function EditModeSectionMatcher(_a) {
|
|
43
43
|
},
|
44
44
|
selectCBInBulk: function (cbIds) {
|
45
45
|
selectedSectionRef === null || selectedSectionRef === void 0 ? void 0 : selectedSectionRef.selectCBInBulk(cbIds);
|
46
|
-
},
|
47
|
-
selectGroup: function (groupId) {
|
48
|
-
selectedSectionRef === null || selectedSectionRef === void 0 ? void 0 : selectedSectionRef.selectGroup(groupId);
|
49
46
|
}
|
50
47
|
};
|
51
48
|
}, [selectedSectionRef]);
|
@@ -74,7 +74,7 @@ function SectionBox(_a) {
|
|
74
74
|
setIsHover(false);
|
75
75
|
onClickDelayedAsync();
|
76
76
|
};
|
77
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(S_SectionBox, __assign({
|
77
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(S_SectionBox, __assign({ ref: sectionRef, onClick: onClickSectionBox, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeaveAsync, isEditing: isEditing, isIframeSection: isIframeSection }, { children: [isEditing && !hasNoChild && ((0, jsx_runtime_1.jsxs)(S_Editing, { children: [(0, jsx_runtime_1.jsx)(OverlayBorders_1.default, { zIndex: 1 }), (0, jsx_runtime_1.jsx)(TopRightAbsoluteBox, { children: (0, jsx_runtime_1.jsx)(desktop_1.D_TextLabel, { text: t('str_4657'), styleTheme: "caption1Bold", colorOverride: "ui_cpnt_textlabel_sys_black", singleLineMode: "use", customFontWeight: "bold", textAlign: "center" }) })] })), !isEditing && ((0, jsx_runtime_1.jsx)(DimmedEditOverlay, __assign({ isHover: isHover, fadeOut: fadeOut }, { children: (0, jsx_runtime_1.jsx)(S_EditButton, { children: (0, jsx_runtime_1.jsx)(desktop_1.D_TextLabel, { text: t('str_4653'), colorOverride: "ui_cpnt_textlabel_sys_black", singleLineMode: "use", customFontWeight: "bold", textAlign: "center" }) }) }))), children] })) }));
|
78
78
|
}
|
79
79
|
exports.default = SectionBox;
|
80
80
|
var TopRightAbsoluteBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n padding: 8px 10px;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 0.2s ease-out;\n z-index: 4;\n"], ["\n background-color: ", ";\n padding: 8px 10px;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 0.2s ease-out;\n z-index: 4;\n"])), function (_a) {
|
@@ -18,17 +18,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
18
18
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
19
19
|
return cooked;
|
20
20
|
};
|
21
|
-
var __assign = (this && this.__assign) || function () {
|
22
|
-
__assign = Object.assign || function(t) {
|
23
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
24
|
-
s = arguments[i];
|
25
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
26
|
-
t[p] = s[p];
|
27
|
-
}
|
28
|
-
return t;
|
29
|
-
};
|
30
|
-
return __assign.apply(this, arguments);
|
31
|
-
};
|
32
21
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
33
22
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
34
23
|
};
|
@@ -61,7 +50,7 @@ var ErrorBoundary = /** @class */ (function (_super) {
|
|
61
50
|
ErrorBoundary.prototype.render = function () {
|
62
51
|
var hasError = this.state.hasError;
|
63
52
|
if (hasError) {
|
64
|
-
return (0, jsx_runtime_1.jsx)(ErrorWrapper,
|
53
|
+
return (0, jsx_runtime_1.jsx)(ErrorWrapper, { children: "Error" });
|
65
54
|
}
|
66
55
|
var children = this.props.children;
|
67
56
|
return children;
|
@@ -21,17 +21,15 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
21
21
|
}
|
22
22
|
return t;
|
23
23
|
};
|
24
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
25
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
26
|
-
};
|
27
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
28
25
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
29
|
-
|
26
|
+
// import FlexGridCustomSection from '../../../DynamicLayout/sections/CustomSection/FlexGridCustomSection';
|
30
27
|
var sections_1 = require("../../sections");
|
31
28
|
function SectionMatcher(_a) {
|
32
29
|
var props = __rest(_a, []);
|
33
30
|
if (props.type === 'CUSTOM') {
|
34
|
-
return
|
31
|
+
// return <FlexGridCustomSection {...props} />;
|
32
|
+
return (0, jsx_runtime_1.jsx)(sections_1.CustomSection, __assign({}, props));
|
35
33
|
}
|
36
34
|
var schema = props.manifest.schema;
|
37
35
|
switch (schema) {
|
package/dist/src/sub/DynamicLayout/hooks/useCustomSectionShortcut/useCustomSectionShortcut.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export declare const CUSTOMSECTION_SHORTCUT_KEYS: string[];
|
2
|
-
export type CustomSectionShortcutType = 'BULK_SELECT' | 'COLLISION_SELECT' | 'SELECT_ALL' |
|
2
|
+
export type CustomSectionShortcutType = 'BULK_SELECT' | 'COLLISION_SELECT' | 'SELECT_ALL' | null;
|
3
3
|
declare function useCustomSectionShortcut(): {
|
4
4
|
shortcut: CustomSectionShortcutType;
|
5
5
|
};
|
package/dist/src/sub/DynamicLayout/hooks/useCustomSectionShortcut/useCustomSectionShortcut.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.CUSTOMSECTION_SHORTCUT_KEYS = void 0;
|
4
4
|
var react_1 = require("react");
|
5
|
-
exports.CUSTOMSECTION_SHORTCUT_KEYS = ['Shift', 'Meta', 'A', 'ㅁ'
|
5
|
+
exports.CUSTOMSECTION_SHORTCUT_KEYS = ['Shift', 'Meta', 'A', 'ㅁ'];
|
6
6
|
function useCustomSectionShortcut() {
|
7
7
|
var _a = (0, react_1.useState)(null), shortcut = _a[0], setShortcut = _a[1];
|
8
8
|
(0, react_1.useEffect)(function () {
|
@@ -15,11 +15,6 @@ function useCustomSectionShortcut() {
|
|
15
15
|
var isShiftOn = keys.get('Shift');
|
16
16
|
var isMetaOn = keys.get('Meta');
|
17
17
|
var isAOn = keys.get('A') || keys.get('ㅁ');
|
18
|
-
var isESC = keys.get('Escape');
|
19
|
-
if (isESC) {
|
20
|
-
setShortcut('MANUAL_BULK_BREAK');
|
21
|
-
return;
|
22
|
-
}
|
23
18
|
if (isShiftOn && isAOn) {
|
24
19
|
setShortcut('SELECT_ALL');
|
25
20
|
return;
|