@hh.ru/magritte-ui-section-header 1.1.9 → 1.1.11

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.
@@ -1,2 +1,2 @@
1
- import { SectionHeaderProps } from '@hh.ru/magritte-ui-section-header/types';
1
+ import { SectionHeaderProps } from './types';
2
2
  export declare const SectionHeader: import("react").ForwardRefExoticComponent<SectionHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
package/SectionHeader.js CHANGED
@@ -4,12 +4,26 @@ import { forwardRef } from 'react';
4
4
  import classnames from 'classnames';
5
5
  import { Text } from '@hh.ru/magritte-ui-typography';
6
6
 
7
- var styles = {"section-header":"magritte-section-header___4Qnhz_1-1-9","sectionHeader":"magritte-section-header___4Qnhz_1-1-9"};
7
+ var styles = {"section-header":"magritte-section-header___4Qnhz_1-1-11","sectionHeader":"magritte-section-header___4Qnhz_1-1-11"};
8
8
 
9
- const SectionHeader = forwardRef(({ children, className, link, padding, style, ...props }, ref) => {
10
- return (jsxs("div", { ...props, className: classnames(className, styles.sectionHeader), ref: ref, style: { ...style, '--padding': `${padding}px` }, children: [jsx(Text, { ellipsis: true, style: "secondary", typography: "label-2-regular", children: children }), link] }));
11
- });
12
- SectionHeader.displayName = 'SectionHeader';
9
+ const SectionHeader = forwardRef(
10
+ ({ children, className, link, padding, style, ...props }, ref) => {
11
+ return /* @__PURE__ */ jsxs(
12
+ "div",
13
+ {
14
+ ...props,
15
+ className: classnames(className, styles.sectionHeader),
16
+ ref,
17
+ style: { ...style, "--padding": `${padding}px` },
18
+ children: [
19
+ /* @__PURE__ */ jsx(Text, { ellipsis: true, style: "secondary", typography: "label-2-regular", children }),
20
+ link
21
+ ]
22
+ }
23
+ );
24
+ }
25
+ );
26
+ SectionHeader.displayName = "SectionHeader";
13
27
 
14
28
  export { SectionHeader };
15
29
  //# sourceMappingURL=SectionHeader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SectionHeader.js","sources":["src/SectionHeader.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport classnames from 'classnames';\n\nimport { SectionHeaderProps } from '@hh.ru/magritte-ui-section-header/types';\nimport { Text } from '@hh.ru/magritte-ui-typography';\n\nimport styles from './section-header.less';\n\nexport const SectionHeader = forwardRef<HTMLDivElement, SectionHeaderProps>(\n ({ children, className, link, padding, style, ...props }, ref) => {\n return (\n <div\n {...props}\n className={classnames(className, styles.sectionHeader)}\n ref={ref}\n style={{ ...style, '--padding': `${padding}px` } as React.CSSProperties}\n >\n <Text ellipsis style=\"secondary\" typography=\"label-2-regular\">\n {children}\n </Text>\n {link}\n </div>\n );\n }\n);\n\nSectionHeader.displayName = 'SectionHeader';\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;AAQa,MAAA,aAAa,GAAG,UAAU,CACnC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAI;IAC7D,QACIA,iBACQ,KAAK,EACT,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,MAAM,CAAC,aAAa,CAAC,EACtD,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,WAAW,EAAE,CAAA,EAAG,OAAO,CAAA,EAAA,CAAI,EAAyB,EAAA,QAAA,EAAA,CAEvEC,IAAC,IAAI,EAAA,EAAC,QAAQ,EAAA,IAAA,EAAC,KAAK,EAAC,WAAW,EAAC,UAAU,EAAC,iBAAiB,EACxD,QAAA,EAAA,QAAQ,GACN,EACN,IAAI,CACH,EAAA,CAAA,EACR;AACN,CAAC,EACH;AAEF,aAAa,CAAC,WAAW,GAAG,eAAe;;;;"}
1
+ {"version":3,"file":"SectionHeader.js","sources":["src/SectionHeader.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport classnames from 'classnames';\n\nimport { SectionHeaderProps } from '@hh.ru/magritte-ui-section-header/types';\nimport { Text } from '@hh.ru/magritte-ui-typography';\n\nimport styles from './section-header.less';\n\nexport const SectionHeader = forwardRef<HTMLDivElement, SectionHeaderProps>(\n ({ children, className, link, padding, style, ...props }, ref) => {\n return (\n <div\n {...props}\n className={classnames(className, styles.sectionHeader)}\n ref={ref}\n style={{ ...style, '--padding': `${padding}px` } as React.CSSProperties}\n >\n <Text ellipsis style=\"secondary\" typography=\"label-2-regular\">\n {children}\n </Text>\n {link}\n </div>\n );\n }\n);\n\nSectionHeader.displayName = 'SectionHeader';\n"],"names":[],"mappings":";;;;;;;AAQO,MAAM,aAAgB,GAAA,UAAA;AAAA,EACzB,CAAC,EAAE,QAAA,EAAU,SAAW,EAAA,IAAA,EAAM,SAAS,KAAO,EAAA,GAAG,KAAM,EAAA,EAAG,GAAQ,KAAA;AAC9D,IACI,uBAAA,IAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACI,GAAG,KAAA;AAAA,QACJ,SAAW,EAAA,UAAA,CAAW,SAAW,EAAA,MAAA,CAAO,aAAa,CAAA;AAAA,QACrD,GAAA;AAAA,QACA,OAAO,EAAE,GAAG,OAAO,WAAa,EAAA,CAAA,EAAG,OAAO,CAAK,EAAA,CAAA,EAAA;AAAA,QAE/C,QAAA,EAAA;AAAA,0BAAA,GAAA,CAAC,QAAK,QAAQ,EAAA,IAAA,EAAC,OAAM,WAAY,EAAA,UAAA,EAAW,mBACvC,QACL,EAAA,CAAA;AAAA,UACC,IAAA;AAAA,SAAA;AAAA,OAAA;AAAA,KACL,CAAA;AAAA,GAER;AACJ,EAAA;AAEA,aAAA,CAAc,WAAc,GAAA,eAAA;;;;"}
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- .magritte-section-header___4Qnhz_1-1-9{
1
+ .magritte-section-header___4Qnhz_1-1-11{
2
2
  display:flex;
3
3
  gap:8px;
4
4
  justify-content:space-between;
package/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from '@hh.ru/magritte-ui-section-header/SectionHeader';
2
- export * from '@hh.ru/magritte-ui-section-header/types';
1
+ export * from './SectionHeader';
2
+ export * from './types';
package/index.mock.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { ForwardRefExoticComponent } from 'react';
2
- export * from '@hh.ru/magritte-ui-section-header/types';
2
+ export * from './types';
3
3
  export declare const SectionHeader: ForwardRefExoticComponent<Record<string, unknown>>;
package/index.mock.js CHANGED
@@ -1,9 +1,13 @@
1
1
  import './index.css';
2
2
  import { mockComponent } from '@hh.ru/magritte-ui-mock-component';
3
3
 
4
- const SectionHeader = mockComponent('SectionHeader', undefined, {
5
- withChildren: true,
6
- });
4
+ const SectionHeader = mockComponent(
5
+ "SectionHeader",
6
+ void 0,
7
+ {
8
+ withChildren: true
9
+ }
10
+ );
7
11
 
8
12
  export { SectionHeader };
9
13
  //# sourceMappingURL=index.mock.js.map
package/index.mock.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.mock.js","sources":["src/index.mock.ts"],"sourcesContent":["import { ForwardRefExoticComponent } from 'react';\n\nimport { mockComponent } from '@hh.ru/magritte-ui-mock-component';\n\nexport * from '@hh.ru/magritte-ui-section-header/types';\n\nexport const SectionHeader: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent(\n 'SectionHeader',\n undefined,\n {\n withChildren: true,\n }\n);\n"],"names":[],"mappings":";;MAMa,aAAa,GAAuD,aAAa,CAC1F,eAAe,EACf,SAAS,EACT;AACI,IAAA,YAAY,EAAE,IAAI;AACrB,CAAA;;;;"}
1
+ {"version":3,"file":"index.mock.js","sources":["src/index.mock.ts"],"sourcesContent":["import { ForwardRefExoticComponent } from 'react';\n\nimport { mockComponent } from '@hh.ru/magritte-ui-mock-component';\n\nexport * from '@hh.ru/magritte-ui-section-header/types';\n\nexport const SectionHeader: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent(\n 'SectionHeader',\n undefined,\n {\n withChildren: true,\n }\n);\n"],"names":[],"mappings":";;AAMO,MAAM,aAAoE,GAAA,aAAA;AAAA,EAC7E,eAAA;AAAA,EACA,KAAA,CAAA;AAAA,EACA;AAAA,IACI,YAAc,EAAA,IAAA;AAAA,GAClB;AACJ;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-section-header",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -19,9 +19,9 @@
19
19
  "watch": "yarn root:watch $(pwd)"
20
20
  },
21
21
  "dependencies": {
22
- "@hh.ru/magritte-design-tokens": "25.1.1",
22
+ "@hh.ru/magritte-design-tokens": "26.0.1",
23
23
  "@hh.ru/magritte-ui-mock-component": "1.1.8",
24
- "@hh.ru/magritte-ui-typography": "5.3.14"
24
+ "@hh.ru/magritte-ui-typography": "5.3.16"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "classnames": ">=2.3.2",
@@ -30,5 +30,5 @@
30
30
  "publishConfig": {
31
31
  "access": "public"
32
32
  },
33
- "gitHead": "46d606980abbb523a41afba452c0a852ee902864"
33
+ "gitHead": "f6539d7a0e7cd42dd851458db1de04a748bbee03"
34
34
  }