@meduza/ui-kit-2 0.5.5 → 0.6.6
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/ChapterBlock/ChapterBlock.types.d.ts +1 -0
- package/dist/Tag/Tag.types.d.ts +1 -1
- package/dist/ui-kit-2.cjs.development.js +5 -2
- 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 +5 -2
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/ChapterBlock/ChapterBlock.module.css +7 -0
- package/src/ChapterBlock/ChapterBlock.types.ts +1 -0
- package/src/ChapterBlock/index.tsx +3 -1
- package/src/RenderBlocks/index.tsx +1 -1
- package/src/SimpleBlock/SimpleBlock.module.css +18 -0
- package/src/Tag/Tag.types.ts +1 -1
package/dist/Tag/Tag.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type TagSizes = 'small' | 'large';
|
|
3
|
-
export type TagThemes = 'dark' | 'gold' | 'gray' | 'light' | 'inherit';
|
|
3
|
+
export type TagThemes = 'dark' | 'gold' | 'gray' | 'light' | 'inherit' | 'custom';
|
|
4
4
|
export type TagStyleContexts = 'isInToolbar' | 'isInSpoiler' | 'isInDropdown';
|
|
5
5
|
export interface TagProps {
|
|
6
6
|
children: React.ReactNode | JSX.Element[] | JSX.Element;
|
|
@@ -1380,10 +1380,12 @@ const ChapterBlock = ({
|
|
|
1380
1380
|
data,
|
|
1381
1381
|
only_on: onlyOn
|
|
1382
1382
|
},
|
|
1383
|
-
styleContext
|
|
1383
|
+
styleContext,
|
|
1384
|
+
id
|
|
1384
1385
|
}) => {
|
|
1385
1386
|
return /*#__PURE__*/React.createElement("div", {
|
|
1386
1387
|
"data-testid": "chapter-block",
|
|
1388
|
+
id: id,
|
|
1387
1389
|
className: makeClassName([[styles$l.root, true], [styles$l[onlyOn], !!onlyOn]])
|
|
1388
1390
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1389
1391
|
className: makeClassName([[styles$l.subtitle, true], [styles$l[styleContext], !!styleContext && !!styles$l[styleContext]]]),
|
|
@@ -2089,7 +2091,8 @@ const RenderBlocks = ({
|
|
|
2089
2091
|
{
|
|
2090
2092
|
return /*#__PURE__*/React.createElement(ChapterBlock, {
|
|
2091
2093
|
block: block,
|
|
2092
|
-
styleContext: styleContext
|
|
2094
|
+
styleContext: styleContext,
|
|
2095
|
+
id: block.id
|
|
2093
2096
|
});
|
|
2094
2097
|
}
|
|
2095
2098
|
case 'card_title':
|