@meduza/ui-kit-2 0.5.5 → 0.6.1

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.
@@ -4,4 +4,5 @@ export interface ChapterBlockProps {
4
4
  only_on?: string;
5
5
  };
6
6
  styleContext?: string;
7
+ id?: string;
7
8
  }
@@ -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':