@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.
- package/SectionHeader.d.ts +1 -1
- package/SectionHeader.js +19 -5
- package/SectionHeader.js.map +1 -1
- package/index.css +1 -1
- package/index.d.ts +2 -2
- package/index.mock.d.ts +1 -1
- package/index.mock.js +7 -3
- package/index.mock.js.map +1 -1
- package/package.json +4 -4
package/SectionHeader.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SectionHeaderProps } from '
|
|
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-
|
|
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(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
package/SectionHeader.js.map
CHANGED
|
@@ -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":[
|
|
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
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
1
|
+
export * from './SectionHeader';
|
|
2
|
+
export * from './types';
|
package/index.mock.d.ts
CHANGED
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(
|
|
5
|
-
|
|
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":";;
|
|
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.
|
|
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": "
|
|
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.
|
|
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": "
|
|
33
|
+
"gitHead": "f6539d7a0e7cd42dd851458db1de04a748bbee03"
|
|
34
34
|
}
|