@meduza/ui-kit-2 0.1.62 → 0.1.65
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/ui-kit-2.cjs.development.js +6 -8
- package/dist/ui-kit-2.cjs.development.js.map +1 -1
- package/dist/ui-kit-2.cjs.production.min.js +1 -1
- package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
- package/dist/ui-kit-2.esm.js +6 -8
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit.css +1126 -1080
- package/package.json +1 -1
- package/src/BookmarkButton/BookmarkButton.css +50 -0
- package/src/DotsOnImage/index.tsx +1 -3
- package/src/DotsOnImage/mock.json +50 -115
- package/src/EmbedBlock/EmbedBlock.module.css +1 -1
- package/src/ListBlock/ListBlock.module.css +5 -5
- package/src/MediaCaption/MediaCaption.module.css +13 -9
- package/src/QuoteBlock/QuoteBlock.module.css +6 -6
- package/src/SimpleBlock/FootnoteLink.css +16 -10
- package/src/SimpleBlock/SimpleBlock.module.css +51 -40
- package/src/SimpleBlock/SimpleBlock.stories.tsx +3 -3
- package/src/SimpleTitle/index.tsx +2 -2
- package/src/SourceBlock/SourceBlock.module.css +15 -0
- package/src/SourceBlock/SourceBlock.stories.tsx +3 -3
- package/src/SvgSymbol/SvgSymbol.stories.module.css +28 -12
- package/src/SvgSymbol/SvgSymbol.stories.tsx +3 -3
- package/src/Toolbar/Toolbar.module.css +2 -1
- package/src/Toolbar/Toolbar.stories.tsx +4 -3
- package/src/ToolbarButton/ToolbarButton.module.css +8 -0
- package/src/ToolbarButton/ToolbarButton.stories.tsx +7 -3
- package/src/_storybook/PreviewWrapper/PreviewWrapper.module.css +6 -3
- package/src/vars-games.css +63 -0
package/dist/ui-kit-2.esm.js
CHANGED
|
@@ -642,9 +642,7 @@ var DotsOnImage = function DotsOnImage(_ref) {
|
|
|
642
642
|
ratio = _useState[0],
|
|
643
643
|
setRatio = _useState[1];
|
|
644
644
|
|
|
645
|
-
var _useInView = useInView(
|
|
646
|
-
threshold: 0.5
|
|
647
|
-
}),
|
|
645
|
+
var _useInView = useInView(),
|
|
648
646
|
ref = _useInView[0],
|
|
649
647
|
inView = _useInView[1],
|
|
650
648
|
entry = _useInView[2];
|
|
@@ -1002,7 +1000,7 @@ var Dropdown = function Dropdown(_ref2) {
|
|
|
1002
1000
|
}, children);
|
|
1003
1001
|
};
|
|
1004
1002
|
|
|
1005
|
-
var toolbarStyles = {"root":"Toolbar-module_root__2HF2r","list":"Toolbar-module_list__1n5ny","item":"Toolbar-module_item__36x7d","isInTopbar":"Toolbar-module_isInTopbar__223iP","center":"Toolbar-module_center__3_H8M","game":"Toolbar-module_game__5-jY_","gameSurvey":"Toolbar-module_gameSurvey__1hQEz","dark":"Toolbar-module_dark__2Ejc9"};
|
|
1003
|
+
var toolbarStyles = {"root":"Toolbar-module_root__2HF2r","list":"Toolbar-module_list__1n5ny","item":"Toolbar-module_item__36x7d","isInTopbar":"Toolbar-module_isInTopbar__223iP","center":"Toolbar-module_center__3_H8M","game":"Toolbar-module_game__5-jY_","gameSurvey":"Toolbar-module_gameSurvey__1hQEz","isDark":"Toolbar-module_isDark__k1U0i","dark":"Toolbar-module_dark__2Ejc9"};
|
|
1006
1004
|
|
|
1007
1005
|
var Toolbar = function Toolbar(_ref) {
|
|
1008
1006
|
var children = _ref.children,
|
|
@@ -1482,7 +1480,7 @@ var SimpleTitle = function SimpleTitle(_ref) {
|
|
|
1482
1480
|
classNames = makeStyleContext(classNames, styleContext, styles$l);
|
|
1483
1481
|
}
|
|
1484
1482
|
|
|
1485
|
-
return React.createElement("
|
|
1483
|
+
return React.createElement("h1", {
|
|
1486
1484
|
"data-testid": "simple-title",
|
|
1487
1485
|
className: makeClassName(classNames)
|
|
1488
1486
|
}, first);
|
|
@@ -1512,7 +1510,7 @@ var RichTitle = function RichTitle(_ref) {
|
|
|
1512
1510
|
}, first, second && React.createElement("span", null, " ", second));
|
|
1513
1511
|
};
|
|
1514
1512
|
|
|
1515
|
-
var styles$n = {"p":"SimpleBlock-module_p__Q3azD","h2":"SimpleBlock-module_h2__S0LRs","h3":"SimpleBlock-module_h3__2Kv7Y","h4":"SimpleBlock-module_h4__2TJO3","lead":"SimpleBlock-module_lead__35nXx","lead_hr":"SimpleBlock-module_lead_hr__1yD5v","context_p":"SimpleBlock-module_context_p__33saY","blockquote":"SimpleBlock-module_blockquote__pwpcX","game":"SimpleBlock-module_game__2sjgl","slide":"SimpleBlock-module_slide__Aqgfu","dark":"SimpleBlock-module_dark__1J_ov","isInIntro":"SimpleBlock-module_isInIntro__DfutD","center":"SimpleBlock-module_center__2rjif","isInImportantLead":"SimpleBlock-module_isInImportantLead__3VGzT","isInAnswer":"SimpleBlock-module_isInAnswer__3aX6X","mobile":"SimpleBlock-module_mobile__Ckgek","desktop":"SimpleBlock-module_desktop__2se2o"};
|
|
1513
|
+
var styles$n = {"p":"SimpleBlock-module_p__Q3azD","h2":"SimpleBlock-module_h2__S0LRs","h3":"SimpleBlock-module_h3__2Kv7Y","h4":"SimpleBlock-module_h4__2TJO3","lead":"SimpleBlock-module_lead__35nXx","lead_hr":"SimpleBlock-module_lead_hr__1yD5v","context_p":"SimpleBlock-module_context_p__33saY","blockquote":"SimpleBlock-module_blockquote__pwpcX","game":"SimpleBlock-module_game__2sjgl","slide":"SimpleBlock-module_slide__Aqgfu","dark":"SimpleBlock-module_dark__1J_ov","isInIntro":"SimpleBlock-module_isInIntro__DfutD","center":"SimpleBlock-module_center__2rjif","isInImportantLead":"SimpleBlock-module_isInImportantLead__3VGzT","isInAnswer":"SimpleBlock-module_isInAnswer__3aX6X","mobile":"SimpleBlock-module_mobile__Ckgek","desktop":"SimpleBlock-module_desktop__2se2o","isDark":"SimpleBlock-module_isDark__22q5s"};
|
|
1516
1514
|
|
|
1517
1515
|
var SimpleBlock = function SimpleBlock(_ref) {
|
|
1518
1516
|
var _ref$block = _ref.block,
|
|
@@ -1617,7 +1615,7 @@ var RelatedBlock = function RelatedBlock(_ref) {
|
|
|
1617
1615
|
})));
|
|
1618
1616
|
};
|
|
1619
1617
|
|
|
1620
|
-
var styles$q = {"root":"SourceBlock-module_root__1P3XD","text":"SourceBlock-module_text__Si4vm","origin":"SourceBlock-module_origin__l3JbO","center":"SourceBlock-module_center__3P93B","mobile":"SourceBlock-module_mobile__2gw4S","desktop":"SourceBlock-module_desktop__DecT6"};
|
|
1618
|
+
var styles$q = {"root":"SourceBlock-module_root__1P3XD","text":"SourceBlock-module_text__Si4vm","origin":"SourceBlock-module_origin__l3JbO","center":"SourceBlock-module_center__3P93B","mobile":"SourceBlock-module_mobile__2gw4S","desktop":"SourceBlock-module_desktop__DecT6","isDark":"SourceBlock-module_isDark__3hEEp"};
|
|
1621
1619
|
|
|
1622
1620
|
var SourceBlock = function SourceBlock(_ref) {
|
|
1623
1621
|
var _ref$block = _ref.block,
|
|
@@ -2528,7 +2526,7 @@ var RawHtmlBlock = function RawHtmlBlock(_ref) {
|
|
|
2528
2526
|
}
|
|
2529
2527
|
};
|
|
2530
2528
|
|
|
2531
|
-
var styles$B = {"root":"ToolbarButton-module_root__xN-fq","dark":"ToolbarButton-module_dark__GrIOr","bookmark":"ToolbarButton-module_bookmark__3369b","isActive":"ToolbarButton-module_isActive__3NLAE","text":"ToolbarButton-module_text__32m6s"};
|
|
2529
|
+
var styles$B = {"root":"ToolbarButton-module_root__xN-fq","isDark":"ToolbarButton-module_isDark__2q5U7","dark":"ToolbarButton-module_dark__GrIOr","bookmark":"ToolbarButton-module_bookmark__3369b","isActive":"ToolbarButton-module_isActive__3NLAE","text":"ToolbarButton-module_text__32m6s"};
|
|
2532
2530
|
|
|
2533
2531
|
var ToolbarButton = function ToolbarButton(_ref) {
|
|
2534
2532
|
var children = _ref.children,
|