@gravity-ui/page-constructor 1.20.5 → 1.21.0
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/CHANGELOG.md +7 -0
- package/build/cjs/blocks/CardLayout/CardLayout.d.ts +3 -5
- package/build/cjs/blocks/CardLayout/CardLayout.js +2 -6
- package/build/cjs/blocks/FilterBlock/FilterBlock.css +50 -0
- package/build/cjs/blocks/FilterBlock/FilterBlock.d.ts +4 -0
- package/build/cjs/blocks/FilterBlock/FilterBlock.js +48 -0
- package/build/cjs/blocks/FilterBlock/i18n/en.json +3 -0
- package/build/cjs/blocks/FilterBlock/i18n/index.d.ts +2 -0
- package/build/cjs/blocks/FilterBlock/i18n/index.js +8 -0
- package/build/cjs/blocks/FilterBlock/i18n/ru.json +3 -0
- package/build/cjs/blocks/FilterBlock/schema.d.ts +229 -0
- package/build/cjs/blocks/FilterBlock/schema.js +41 -0
- package/build/cjs/blocks/Tabs/Tabs.css +27 -18
- package/build/cjs/blocks/index.d.ts +1 -0
- package/build/cjs/blocks/index.js +3 -1
- package/build/cjs/components/Button/Button.css +4 -0
- package/build/cjs/components/ButtonTabs/ButtonTabs.css +16 -3
- package/build/cjs/components/ButtonTabs/ButtonTabs.d.ts +7 -4
- package/build/cjs/components/ButtonTabs/ButtonTabs.js +2 -6
- package/build/cjs/constructor-items.d.ts +2 -1
- package/build/cjs/constructor-items.js +1 -0
- package/build/cjs/containers/PageConstructor/PageConstructor.css +8 -0
- package/build/cjs/containers/PageConstructor/PageConstructor.js +13 -14
- package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.d.ts +3 -5
- package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +3 -3
- package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.d.ts +3 -3
- package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +4 -4
- package/build/cjs/context/innerContext/InnerContext.d.ts +4 -1
- package/build/cjs/context/innerContext/InnerContext.js +2 -0
- package/build/cjs/models/constructor-items/blocks.d.ts +26 -3
- package/build/cjs/models/constructor-items/blocks.js +1 -0
- package/build/cjs/utils/blocks.d.ts +1 -0
- package/build/cjs/utils/blocks.js +6 -1
- package/build/esm/blocks/CardLayout/CardLayout.d.ts +3 -5
- package/build/esm/blocks/CardLayout/CardLayout.js +3 -7
- package/build/esm/blocks/FilterBlock/FilterBlock.css +50 -0
- package/build/esm/blocks/FilterBlock/FilterBlock.d.ts +5 -0
- package/build/esm/blocks/FilterBlock/FilterBlock.js +46 -0
- package/build/esm/blocks/FilterBlock/i18n/en.json +3 -0
- package/build/esm/blocks/FilterBlock/i18n/index.d.ts +2 -0
- package/build/esm/blocks/FilterBlock/i18n/index.js +5 -0
- package/build/esm/blocks/FilterBlock/i18n/ru.json +3 -0
- package/build/esm/blocks/FilterBlock/schema.d.ts +229 -0
- package/build/esm/blocks/FilterBlock/schema.js +38 -0
- package/build/esm/blocks/Tabs/Tabs.css +27 -18
- package/build/esm/blocks/index.d.ts +1 -0
- package/build/esm/blocks/index.js +1 -0
- package/build/esm/components/Button/Button.css +4 -0
- package/build/esm/components/ButtonTabs/ButtonTabs.css +16 -3
- package/build/esm/components/ButtonTabs/ButtonTabs.d.ts +7 -4
- package/build/esm/components/ButtonTabs/ButtonTabs.js +2 -6
- package/build/esm/constructor-items.d.ts +2 -1
- package/build/esm/constructor-items.js +2 -1
- package/build/esm/containers/PageConstructor/PageConstructor.css +8 -0
- package/build/esm/containers/PageConstructor/PageConstructor.js +15 -16
- package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.d.ts +3 -5
- package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +3 -3
- package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.d.ts +3 -3
- package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +4 -4
- package/build/esm/context/innerContext/InnerContext.d.ts +4 -1
- package/build/esm/context/innerContext/InnerContext.js +2 -0
- package/build/esm/models/constructor-items/blocks.d.ts +26 -3
- package/build/esm/models/constructor-items/blocks.js +1 -0
- package/build/esm/utils/blocks.d.ts +1 -0
- package/build/esm/utils/blocks.js +4 -0
- package/package.json +1 -1
- package/server/models/constructor-items/blocks.d.ts +26 -3
- package/server/models/constructor-items/blocks.js +1 -0
- package/server/utils/blocks.d.ts +1 -0
- package/server/utils/blocks.js +6 -1
- package/styles/mixins.scss +62 -5
- package/styles/root.scss +10 -0
package/styles/mixins.scss
CHANGED
|
@@ -481,12 +481,69 @@ unpredictable css rules order in build */
|
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
483
|
|
|
484
|
-
@mixin
|
|
485
|
-
--yc-button-background-color:
|
|
486
|
-
--yc-button-background-color-hover:
|
|
487
|
-
|
|
484
|
+
@mixin button($color, $backgroundColor, $hoverColor: $color, $hoverBackgroundColor) {
|
|
485
|
+
--yc-button-background-color: #{$backgroundColor};
|
|
486
|
+
--yc-button-background-color-hover: #{$hoverBackgroundColor};
|
|
487
|
+
|
|
488
|
+
&,
|
|
489
|
+
&:link,
|
|
490
|
+
&:visited,
|
|
491
|
+
&:active,
|
|
492
|
+
&:focus {
|
|
493
|
+
color: $color;
|
|
494
|
+
}
|
|
488
495
|
|
|
489
496
|
&:hover {
|
|
490
|
-
color:
|
|
497
|
+
color: $hoverColor;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
@mixin monochrome-button() {
|
|
502
|
+
@include button(
|
|
503
|
+
var(--pc-monochrome-button-color),
|
|
504
|
+
var(--pc-monochrome-button-background-color),
|
|
505
|
+
$hoverBackgroundColor: var(--pc-monochrome-button-background-color-hover)
|
|
506
|
+
);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
@mixin centerable-title() {
|
|
510
|
+
&_centered {
|
|
511
|
+
text-align: center;
|
|
512
|
+
|
|
513
|
+
& > * {
|
|
514
|
+
margin: 0 auto;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
@mixin tab-panel() {
|
|
520
|
+
display: flex;
|
|
521
|
+
flex-wrap: nowrap;
|
|
522
|
+
justify-content: flex-start;
|
|
523
|
+
overflow: auto;
|
|
524
|
+
|
|
525
|
+
&_centered {
|
|
526
|
+
display: flex;
|
|
527
|
+
justify-content: center;
|
|
528
|
+
flex-wrap: wrap;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
@media (max-width: map-get($gridBreakpoints, 'md')) {
|
|
532
|
+
display: flex;
|
|
533
|
+
flex-wrap: nowrap;
|
|
534
|
+
justify-content: flex-start;
|
|
535
|
+
overflow: auto;
|
|
536
|
+
|
|
537
|
+
margin-left: -$indentL;
|
|
538
|
+
margin-right: -$indentL;
|
|
539
|
+
padding-left: $indentL;
|
|
540
|
+
padding-right: $indentL - $indentXXXS;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
@media (max-width: map-get($gridBreakpoints, 'sm')) {
|
|
544
|
+
margin-left: -$indentSM;
|
|
545
|
+
margin-right: -$indentSM;
|
|
546
|
+
padding-left: $indentSM;
|
|
547
|
+
padding-right: $indentXS;
|
|
491
548
|
}
|
|
492
549
|
}
|
package/styles/root.scss
CHANGED
|
@@ -19,6 +19,16 @@
|
|
|
19
19
|
--pc-text-header-color: var(--yc-color-text-primary);
|
|
20
20
|
--pc-media-card-meta-info-color: var(--yc-color-text-secondary);
|
|
21
21
|
|
|
22
|
+
--pc-tab-item-color: var(--yc-color-text-primary);
|
|
23
|
+
--pc-tab-item-background-color: var(--yc-color-base-generic);
|
|
24
|
+
--pc-tab-item-background-color-hover: var(--yc-color-base-generic-hover);
|
|
25
|
+
|
|
26
|
+
--pc-selected-tab-item-color: var(--pc-monochrome-button-color);
|
|
27
|
+
--pc-selected-tab-item-background-color: var(--pc-monochrome-button-background-color);
|
|
28
|
+
--pc-selected-tab-item-background-color-hover: var(
|
|
29
|
+
--pc-monochrome-button-background-color-hover
|
|
30
|
+
);
|
|
31
|
+
|
|
22
32
|
&.yc-root_theme_dark {
|
|
23
33
|
--pc-color-sfx-shadow: var(--yc-color-sfx-shadow);
|
|
24
34
|
--pc-color-line-generic-active-solid: #6c6c70;
|