@alfalab/core-components-typography 6.0.13 → 6.0.14
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/colors.css +20 -20
- package/colors.module.css.js +1 -1
- package/cssm/text/component.js +18 -16
- package/cssm/text/component.js.map +1 -1
- package/cssm/text/index.module.css +8 -1
- package/cssm/title/common.module.css +8 -1
- package/cssm/title/component.js +14 -12
- package/cssm/title/component.js.map +1 -1
- package/esm/colors.css +20 -20
- package/esm/colors.module.css.js +1 -1
- package/esm/text/component.js +19 -17
- package/esm/text/component.js.map +1 -1
- package/esm/text/index.css +48 -41
- package/esm/text/index.module.css.js +1 -1
- package/esm/text/index.module.css.js.map +1 -1
- package/esm/title/common.css +13 -6
- package/esm/title/common.module.css.js +1 -1
- package/esm/title/common.module.css.js.map +1 -1
- package/esm/title/component.js +15 -13
- package/esm/title/component.js.map +1 -1
- package/esm/title/index.css +25 -25
- package/esm/title/index.module.css.js +1 -1
- package/esm/title-mobile/index.css +25 -25
- package/esm/title-mobile/index.module.css.js +1 -1
- package/modern/colors.css +20 -20
- package/modern/colors.module.css.js +1 -1
- package/modern/text/component.js +19 -17
- package/modern/text/component.js.map +1 -1
- package/modern/text/index.css +48 -41
- package/modern/text/index.module.css.js +1 -1
- package/modern/text/index.module.css.js.map +1 -1
- package/modern/title/common.css +13 -6
- package/modern/title/common.module.css.js +1 -1
- package/modern/title/common.module.css.js.map +1 -1
- package/modern/title/component.js +15 -13
- package/modern/title/component.js.map +1 -1
- package/modern/title/index.css +25 -25
- package/modern/title/index.module.css.js +1 -1
- package/modern/title-mobile/index.css +25 -25
- package/modern/title-mobile/index.module.css.js +1 -1
- package/moderncssm/text/component.js +19 -17
- package/moderncssm/text/component.js.map +1 -1
- package/moderncssm/text/index.module.css +10 -1
- package/moderncssm/title/common.module.css +10 -1
- package/moderncssm/title/component.js +15 -13
- package/moderncssm/title/component.js.map +1 -1
- package/package.json +5 -5
- package/src/common.module.css +10 -1
- package/src/text/component.tsx +36 -31
- package/src/title/component.tsx +35 -30
- package/text/component.js +18 -16
- package/text/component.js.map +1 -1
- package/text/index.css +48 -41
- package/text/index.module.css.js +1 -1
- package/text/index.module.css.js.map +1 -1
- package/title/common.css +13 -6
- package/title/common.module.css.js +1 -1
- package/title/common.module.css.js.map +1 -1
- package/title/component.js +14 -12
- package/title/component.js.map +1 -1
- package/title/index.css +25 -25
- package/title/index.module.css.js +1 -1
- package/title-mobile/index.css +25 -25
- package/title-mobile/index.module.css.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-typography",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.14",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"build": "rollup -c ../../tools/rollup/rollup.config.mjs --silent"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@alfalab/core-components-mq": "^6.0.
|
|
17
|
-
"@alfalab/core-components-shared": "^2.
|
|
18
|
-
"@alfalab/core-components-skeleton": "^7.0.
|
|
16
|
+
"@alfalab/core-components-mq": "^6.0.10",
|
|
17
|
+
"@alfalab/core-components-shared": "^2.4.0",
|
|
18
|
+
"@alfalab/core-components-skeleton": "^7.0.6",
|
|
19
19
|
"classnames": "^2.5.1",
|
|
20
20
|
"react-merge-refs": "^1.1.0",
|
|
21
21
|
"tslib": "^2.4.0"
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"directory": "dist"
|
|
30
30
|
},
|
|
31
31
|
"themesVersion": "15.2.1",
|
|
32
|
-
"varsVersion": "11.
|
|
32
|
+
"varsVersion": "11.5.0"
|
|
33
33
|
}
|
package/src/common.module.css
CHANGED
package/src/text/component.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { forwardRef, type HTMLAttributes } from 'react';
|
|
1
|
+
import React, { type ComponentProps, forwardRef, Fragment, type HTMLAttributes } from 'react';
|
|
2
2
|
import mergeRefs from 'react-merge-refs';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
|
|
@@ -119,39 +119,44 @@ export const Text = forwardRef<TextElementType, TextProps>(
|
|
|
119
119
|
ref,
|
|
120
120
|
) => {
|
|
121
121
|
const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);
|
|
122
|
-
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}),
|
|
127
|
-
dataTestId,
|
|
128
|
-
});
|
|
129
|
-
|
|
130
|
-
if (skeleton) {
|
|
131
|
-
return skeleton;
|
|
132
|
-
}
|
|
122
|
+
const Root = showSkeleton ? 'div' : Fragment;
|
|
123
|
+
const rootProps: ComponentProps<typeof Root> = showSkeleton
|
|
124
|
+
? { className: cn(styles.root, className) }
|
|
125
|
+
: {};
|
|
133
126
|
|
|
134
127
|
return (
|
|
135
|
-
<
|
|
136
|
-
|
|
137
|
-
{
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
128
|
+
<Root {...rootProps}>
|
|
129
|
+
<Component
|
|
130
|
+
className={cn(
|
|
131
|
+
{
|
|
132
|
+
[styles.paragraph]: Component === 'p' && !defaultMargins,
|
|
133
|
+
[styles.paragraphWithMargins]: Component === 'p' && defaultMargins,
|
|
134
|
+
[styles.monospace]: monospaceNumbers,
|
|
135
|
+
[styles[`rowLimit${rowLimit}`]]: rowLimit,
|
|
136
|
+
[styles.transparent]: showSkeleton,
|
|
137
|
+
},
|
|
138
|
+
!showSkeleton && className,
|
|
139
|
+
color && colors[color],
|
|
140
|
+
styles[view],
|
|
141
|
+
weight && styles[weight],
|
|
142
|
+
)}
|
|
143
|
+
data-test-id={dataTestId}
|
|
144
|
+
ref={mergeRefs([ref, textRef])}
|
|
145
|
+
{...restProps}
|
|
146
|
+
>
|
|
147
|
+
{children}
|
|
148
|
+
</Component>
|
|
149
|
+
{showSkeleton && (
|
|
150
|
+
<div className={styles.skeleton}>
|
|
151
|
+
{renderSkeleton({
|
|
152
|
+
wrapperClassName: cn({
|
|
153
|
+
[styles.paragraphWithMargins]: Component === 'p' && defaultMargins,
|
|
154
|
+
}),
|
|
155
|
+
dataTestId,
|
|
156
|
+
})}
|
|
157
|
+
</div>
|
|
148
158
|
)}
|
|
149
|
-
|
|
150
|
-
ref={mergeRefs([ref, textRef])}
|
|
151
|
-
{...restProps}
|
|
152
|
-
>
|
|
153
|
-
{children}
|
|
154
|
-
</Component>
|
|
159
|
+
</Root>
|
|
155
160
|
);
|
|
156
161
|
},
|
|
157
162
|
);
|
package/src/title/component.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { forwardRef, type HTMLAttributes } from 'react';
|
|
1
|
+
import React, { type ComponentProps, forwardRef, Fragment, type HTMLAttributes } from 'react';
|
|
2
2
|
import mergeRefs from 'react-merge-refs';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
|
|
@@ -112,38 +112,43 @@ export const TitleBase = forwardRef<TitleElementType, TitleProps & PrivateProps>
|
|
|
112
112
|
ref,
|
|
113
113
|
) => {
|
|
114
114
|
const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);
|
|
115
|
-
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
if (skeleton) {
|
|
122
|
-
return skeleton;
|
|
123
|
-
}
|
|
115
|
+
const Root = showSkeleton ? 'div' : Fragment;
|
|
116
|
+
const rootProps: ComponentProps<typeof Root> = showSkeleton
|
|
117
|
+
? { className: cn(commonStyles.root, className) }
|
|
118
|
+
: {};
|
|
124
119
|
|
|
125
120
|
return (
|
|
126
|
-
<
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
121
|
+
<Root {...rootProps}>
|
|
122
|
+
<Component
|
|
123
|
+
className={cn(
|
|
124
|
+
commonStyles.component,
|
|
125
|
+
styles.component,
|
|
126
|
+
!showSkeleton && className,
|
|
127
|
+
styles[`${weight === 'regular' ? 'regular-' : ''}${view}`],
|
|
128
|
+
defaultMargins && styles[`margins-${view}`],
|
|
129
|
+
color && colors[color],
|
|
130
|
+
{
|
|
131
|
+
[commonStyles[`rowLimit${rowLimit}`]]: rowLimit,
|
|
132
|
+
[commonStyles.transparent]: showSkeleton,
|
|
133
|
+
[styles.font]:
|
|
134
|
+
(isObject(font) && !font.systemCompat) || !(font === 'system'),
|
|
135
|
+
},
|
|
136
|
+
)}
|
|
137
|
+
data-test-id={dataTestId}
|
|
138
|
+
ref={mergeRefs([ref, textRef])}
|
|
139
|
+
{...restProps}
|
|
140
|
+
>
|
|
141
|
+
{children}
|
|
142
|
+
</Component>
|
|
143
|
+
{showSkeleton && (
|
|
144
|
+
<div className={commonStyles.skeleton}>
|
|
145
|
+
{renderSkeleton({
|
|
146
|
+
wrapperClassName: cn(defaultMargins && styles[`margins-${view}`]),
|
|
147
|
+
dataTestId,
|
|
148
|
+
})}
|
|
149
|
+
</div>
|
|
140
150
|
)}
|
|
141
|
-
|
|
142
|
-
ref={mergeRefs([ref, textRef])}
|
|
143
|
-
{...restProps}
|
|
144
|
-
>
|
|
145
|
-
{children}
|
|
146
|
-
</Component>
|
|
151
|
+
</Root>
|
|
147
152
|
);
|
|
148
153
|
},
|
|
149
154
|
);
|
package/text/component.js
CHANGED
|
@@ -20,22 +20,24 @@ var Text = React.forwardRef(function (_a, ref) {
|
|
|
20
20
|
var _b, _c;
|
|
21
21
|
var _d = _a.view, view = _d === void 0 ? 'primary-medium' : _d, _e = _a.tag, Component = _e === void 0 ? 'span' : _e, weight = _a.weight, _f = _a.monospaceNumbers, monospaceNumbers = _f === void 0 ? false : _f, _g = _a.defaultMargins, defaultMargins = _g === void 0 ? true : _g, color = _a.color, className = _a.className, dataTestId = _a.dataTestId, children = _a.children, rowLimit = _a.rowLimit, showSkeleton = _a.showSkeleton, skeletonProps = _a.skeletonProps; _a.font; var restProps = tslib.__rest(_a, ["view", "tag", "weight", "monospaceNumbers", "defaultMargins", "color", "className", "dataTestId", "children", "rowLimit", "showSkeleton", "skeletonProps", "font"]);
|
|
22
22
|
var _h = coreComponentsSkeleton.useSkeleton(showSkeleton, skeletonProps), renderSkeleton = _h.renderSkeleton, textRef = _h.textRef;
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
23
|
+
var Root = showSkeleton ? 'div' : React.Fragment;
|
|
24
|
+
var rootProps = showSkeleton
|
|
25
|
+
? { className: cn__default.default(index_module.root, className) }
|
|
26
|
+
: {};
|
|
27
|
+
return (React__default.default.createElement(Root, tslib.__assign({}, rootProps),
|
|
28
|
+
React__default.default.createElement(Component, tslib.__assign({ className: cn__default.default((_b = {},
|
|
29
|
+
_b[index_module.paragraph] = Component === 'p' && !defaultMargins,
|
|
30
|
+
_b[index_module.paragraphWithMargins] = Component === 'p' && defaultMargins,
|
|
31
|
+
_b[index_module.monospace] = monospaceNumbers,
|
|
32
|
+
_b[index_module["rowLimit".concat(rowLimit)]] = rowLimit,
|
|
33
|
+
_b[index_module.transparent] = showSkeleton,
|
|
34
|
+
_b), !showSkeleton && className, color && colors_module[color], index_module[view], weight && index_module[weight]), "data-test-id": dataTestId, ref: mergeRefs__default.default([ref, textRef]) }, restProps), children),
|
|
35
|
+
showSkeleton && (React__default.default.createElement("div", { className: index_module.skeleton }, renderSkeleton({
|
|
36
|
+
wrapperClassName: cn__default.default((_c = {},
|
|
37
|
+
_c[index_module.paragraphWithMargins] = Component === 'p' && defaultMargins,
|
|
38
|
+
_c)),
|
|
39
|
+
dataTestId: dataTestId,
|
|
40
|
+
})))));
|
|
39
41
|
});
|
|
40
42
|
|
|
41
43
|
exports.Text = Text;
|
package/text/component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sources":["../src/text/component.tsx"],"sourcesContent":["import React, { forwardRef, type HTMLAttributes } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { type TextSkeletonProps, useSkeleton } from '@alfalab/core-components-skeleton';\n\nimport { type Color } from '../colors';\nimport { type TextElementType } from '../types';\n\nimport colors from '../colors.module.css';\nimport styles from './index.module.css';\n\ntype NativeProps = HTMLAttributes<HTMLSpanElement>;\n\ntype TextBaseProps = {\n /**\n * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/tokens-assets-типографика--docs)\n */\n view?:\n | 'primary-large'\n | 'primary-medium'\n | 'primary-small'\n | 'secondary-large'\n | 'secondary-medium'\n | 'secondary-small'\n | 'component-primary'\n | 'component-secondary'\n | 'caps'\n | 'tagline';\n\n /**\n * Цвет текста\n */\n color?: Color;\n\n /**\n * Толщина шрифта\n */\n weight?: 'regular' | 'medium' | 'bold';\n\n /**\n * Делает цифры моноширинными\n */\n monospaceNumbers?: boolean;\n\n /**\n * HTML тег\n */\n tag?: 'span' | 'div';\n\n /**\n * Css-класс для стилизации (native prop)\n */\n className?: string;\n\n /**\n * Id компонента для тестов\n */\n dataTestId?: string;\n\n /**\n * Контент (native prop)\n */\n children?: React.ReactNode;\n\n /**\n * Добавляет отступы к тэгу 'p'\n */\n defaultMargins?: never;\n\n /**\n * Количество строк\n */\n rowLimit?: 1 | 2 | 3;\n\n /**\n * Показать скелетон\n */\n showSkeleton?: boolean;\n\n /**\n * Пропы для скелетона\n */\n skeletonProps?: TextSkeletonProps;\n\n /**\n * Шрифт текста\n *\n * @deprecated\n */\n font?: 'alfasans' | undefined | null;\n};\n\ntype TextPTagProps = Omit<TextBaseProps, 'tag' | 'defaultMargins'> & {\n tag?: 'p';\n defaultMargins?: boolean;\n};\n\nexport type TextProps = Omit<NativeProps, 'color'> & (TextBaseProps | TextPTagProps);\n\nexport const Text = forwardRef<TextElementType, TextProps>(\n (\n {\n view = 'primary-medium',\n tag: Component = 'span',\n weight,\n monospaceNumbers = false,\n defaultMargins = true,\n color,\n className,\n dataTestId,\n children,\n rowLimit,\n showSkeleton,\n skeletonProps,\n font,\n ...restProps\n },\n ref,\n ) => {\n const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);\n
|
|
1
|
+
{"version":3,"file":"component.js","sources":["../src/text/component.tsx"],"sourcesContent":["import React, { type ComponentProps, forwardRef, Fragment, type HTMLAttributes } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { type TextSkeletonProps, useSkeleton } from '@alfalab/core-components-skeleton';\n\nimport { type Color } from '../colors';\nimport { type TextElementType } from '../types';\n\nimport colors from '../colors.module.css';\nimport styles from './index.module.css';\n\ntype NativeProps = HTMLAttributes<HTMLSpanElement>;\n\ntype TextBaseProps = {\n /**\n * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/tokens-assets-типографика--docs)\n */\n view?:\n | 'primary-large'\n | 'primary-medium'\n | 'primary-small'\n | 'secondary-large'\n | 'secondary-medium'\n | 'secondary-small'\n | 'component-primary'\n | 'component-secondary'\n | 'caps'\n | 'tagline';\n\n /**\n * Цвет текста\n */\n color?: Color;\n\n /**\n * Толщина шрифта\n */\n weight?: 'regular' | 'medium' | 'bold';\n\n /**\n * Делает цифры моноширинными\n */\n monospaceNumbers?: boolean;\n\n /**\n * HTML тег\n */\n tag?: 'span' | 'div';\n\n /**\n * Css-класс для стилизации (native prop)\n */\n className?: string;\n\n /**\n * Id компонента для тестов\n */\n dataTestId?: string;\n\n /**\n * Контент (native prop)\n */\n children?: React.ReactNode;\n\n /**\n * Добавляет отступы к тэгу 'p'\n */\n defaultMargins?: never;\n\n /**\n * Количество строк\n */\n rowLimit?: 1 | 2 | 3;\n\n /**\n * Показать скелетон\n */\n showSkeleton?: boolean;\n\n /**\n * Пропы для скелетона\n */\n skeletonProps?: TextSkeletonProps;\n\n /**\n * Шрифт текста\n *\n * @deprecated\n */\n font?: 'alfasans' | undefined | null;\n};\n\ntype TextPTagProps = Omit<TextBaseProps, 'tag' | 'defaultMargins'> & {\n tag?: 'p';\n defaultMargins?: boolean;\n};\n\nexport type TextProps = Omit<NativeProps, 'color'> & (TextBaseProps | TextPTagProps);\n\nexport const Text = forwardRef<TextElementType, TextProps>(\n (\n {\n view = 'primary-medium',\n tag: Component = 'span',\n weight,\n monospaceNumbers = false,\n defaultMargins = true,\n color,\n className,\n dataTestId,\n children,\n rowLimit,\n showSkeleton,\n skeletonProps,\n font,\n ...restProps\n },\n ref,\n ) => {\n const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);\n const Root = showSkeleton ? 'div' : Fragment;\n const rootProps: ComponentProps<typeof Root> = showSkeleton\n ? { className: cn(styles.root, className) }\n : {};\n\n return (\n <Root {...rootProps}>\n <Component\n className={cn(\n {\n [styles.paragraph]: Component === 'p' && !defaultMargins,\n [styles.paragraphWithMargins]: Component === 'p' && defaultMargins,\n [styles.monospace]: monospaceNumbers,\n [styles[`rowLimit${rowLimit}`]]: rowLimit,\n [styles.transparent]: showSkeleton,\n },\n !showSkeleton && className,\n color && colors[color],\n styles[view],\n weight && styles[weight],\n )}\n data-test-id={dataTestId}\n ref={mergeRefs([ref, textRef])}\n {...restProps}\n >\n {children}\n </Component>\n {showSkeleton && (\n <div className={styles.skeleton}>\n {renderSkeleton({\n wrapperClassName: cn({\n [styles.paragraphWithMargins]: Component === 'p' && defaultMargins,\n }),\n dataTestId,\n })}\n </div>\n )}\n </Root>\n );\n },\n);\n"],"names":["forwardRef","__rest","useSkeleton","Fragment","cn","styles","React","__assign","colors","mergeRefs"],"mappings":"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"}
|
package/text/index.css
CHANGED
|
@@ -6,33 +6,40 @@
|
|
|
6
6
|
--font-family-system:
|
|
7
7
|
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
|
|
8
8
|
}
|
|
9
|
-
.
|
|
10
|
-
|
|
9
|
+
.typography__transparent_1j1xz {
|
|
10
|
+
visibility: hidden;
|
|
11
|
+
}
|
|
12
|
+
.typography__skeleton_1j1xz {
|
|
13
|
+
position: absolute;
|
|
14
|
+
inset: 0;
|
|
15
|
+
}
|
|
16
|
+
.typography__root_1j1xz {
|
|
17
|
+
position: relative;
|
|
11
18
|
}
|
|
12
19
|
:root {
|
|
13
20
|
--text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);
|
|
14
21
|
}
|
|
15
|
-
.
|
|
22
|
+
.typography__paragraph_1j1xz {
|
|
16
23
|
margin: var(--gap-0);
|
|
17
24
|
padding: var(--gap-0);
|
|
18
25
|
}
|
|
19
|
-
.
|
|
26
|
+
.typography__paragraphWithMargins_1j1xz {
|
|
20
27
|
padding: var(--gap-0);
|
|
21
28
|
margin: var(--text-paragraph-margin-bottom);
|
|
22
29
|
}
|
|
23
|
-
.
|
|
30
|
+
.typography__component_1j1xz {
|
|
24
31
|
font-size: 16px;
|
|
25
32
|
line-height: 20px;
|
|
26
33
|
font-weight: 400;
|
|
27
34
|
font-family: var(--font-family-system);
|
|
28
35
|
}
|
|
29
|
-
.
|
|
36
|
+
.typography__component_1j1xz.typography__bold_1j1xz {
|
|
30
37
|
font-weight: 700;
|
|
31
38
|
}
|
|
32
|
-
.
|
|
39
|
+
.typography__component_1j1xz.typography__medium_1j1xz {
|
|
33
40
|
font-weight: 500;
|
|
34
41
|
}
|
|
35
|
-
.
|
|
42
|
+
.typography__caps_1j1xz {
|
|
36
43
|
font-size: 12px;
|
|
37
44
|
line-height: 16px;
|
|
38
45
|
font-weight: 400;
|
|
@@ -40,13 +47,13 @@
|
|
|
40
47
|
text-transform: uppercase;
|
|
41
48
|
font-family: var(--font-family-system);
|
|
42
49
|
}
|
|
43
|
-
.
|
|
50
|
+
.typography__caps_1j1xz.typography__bold_1j1xz {
|
|
44
51
|
font-weight: 700;
|
|
45
52
|
}
|
|
46
|
-
.
|
|
53
|
+
.typography__caps_1j1xz.typography__medium_1j1xz {
|
|
47
54
|
font-weight: 500;
|
|
48
55
|
}
|
|
49
|
-
.
|
|
56
|
+
.typography__tagline_1j1xz {
|
|
50
57
|
font-size: 12px;
|
|
51
58
|
line-height: 16px;
|
|
52
59
|
font-weight: 400;
|
|
@@ -54,128 +61,128 @@
|
|
|
54
61
|
text-transform: uppercase;
|
|
55
62
|
font-family: var(--font-family-system);
|
|
56
63
|
}
|
|
57
|
-
.
|
|
64
|
+
.typography__tagline_1j1xz.typography__bold_1j1xz {
|
|
58
65
|
font-weight: 700;
|
|
59
66
|
}
|
|
60
|
-
.
|
|
67
|
+
.typography__tagline_1j1xz.typography__medium_1j1xz {
|
|
61
68
|
font-weight: 500;
|
|
62
69
|
}
|
|
63
|
-
.typography__primary-
|
|
70
|
+
.typography__primary-large_1j1xz {
|
|
64
71
|
font-size: 18px;
|
|
65
72
|
line-height: 24px;
|
|
66
73
|
font-weight: 400;
|
|
67
74
|
font-family: var(--font-family-system);
|
|
68
75
|
}
|
|
69
|
-
.typography__primary-
|
|
76
|
+
.typography__primary-large_1j1xz.typography__bold_1j1xz {
|
|
70
77
|
font-weight: 700;
|
|
71
78
|
}
|
|
72
|
-
.typography__primary-
|
|
79
|
+
.typography__primary-large_1j1xz.typography__medium_1j1xz {
|
|
73
80
|
font-weight: 500;
|
|
74
81
|
}
|
|
75
|
-
.typography__primary-
|
|
82
|
+
.typography__primary-medium_1j1xz {
|
|
76
83
|
font-size: 16px;
|
|
77
84
|
line-height: 24px;
|
|
78
85
|
font-weight: 400;
|
|
79
86
|
font-family: var(--font-family-system);
|
|
80
87
|
}
|
|
81
|
-
.typography__primary-
|
|
88
|
+
.typography__primary-medium_1j1xz.typography__bold_1j1xz {
|
|
82
89
|
font-weight: 700;
|
|
83
90
|
}
|
|
84
|
-
.typography__primary-
|
|
91
|
+
.typography__primary-medium_1j1xz.typography__medium_1j1xz {
|
|
85
92
|
font-weight: 500;
|
|
86
93
|
}
|
|
87
|
-
.typography__primary-
|
|
94
|
+
.typography__primary-small_1j1xz {
|
|
88
95
|
font-size: 14px;
|
|
89
96
|
line-height: 20px;
|
|
90
97
|
font-weight: 400;
|
|
91
98
|
font-family: var(--font-family-system);
|
|
92
99
|
}
|
|
93
|
-
.typography__primary-
|
|
100
|
+
.typography__primary-small_1j1xz.typography__bold_1j1xz {
|
|
94
101
|
font-weight: 700;
|
|
95
102
|
}
|
|
96
|
-
.typography__primary-
|
|
103
|
+
.typography__primary-small_1j1xz.typography__medium_1j1xz {
|
|
97
104
|
font-weight: 500;
|
|
98
105
|
}
|
|
99
|
-
.typography__component-
|
|
106
|
+
.typography__component-primary_1j1xz {
|
|
100
107
|
font-size: 16px;
|
|
101
108
|
line-height: 20px;
|
|
102
109
|
font-weight: 400;
|
|
103
110
|
font-family: var(--font-family-system);
|
|
104
111
|
}
|
|
105
|
-
.typography__component-
|
|
112
|
+
.typography__component-primary_1j1xz.typography__bold_1j1xz {
|
|
106
113
|
font-weight: 700;
|
|
107
114
|
}
|
|
108
|
-
.typography__component-
|
|
115
|
+
.typography__component-primary_1j1xz.typography__medium_1j1xz {
|
|
109
116
|
font-weight: 500;
|
|
110
117
|
}
|
|
111
|
-
.typography__secondary-
|
|
118
|
+
.typography__secondary-large_1j1xz {
|
|
112
119
|
font-size: 13px;
|
|
113
120
|
line-height: 16px;
|
|
114
121
|
font-weight: 400;
|
|
115
122
|
font-family: var(--font-family-system);
|
|
116
123
|
}
|
|
117
|
-
.typography__secondary-
|
|
124
|
+
.typography__secondary-large_1j1xz.typography__bold_1j1xz {
|
|
118
125
|
font-weight: 700;
|
|
119
126
|
}
|
|
120
|
-
.typography__secondary-
|
|
127
|
+
.typography__secondary-large_1j1xz.typography__medium_1j1xz {
|
|
121
128
|
font-weight: 500;
|
|
122
129
|
}
|
|
123
|
-
.typography__secondary-
|
|
130
|
+
.typography__secondary-medium_1j1xz {
|
|
124
131
|
font-size: 12px;
|
|
125
132
|
line-height: 16px;
|
|
126
133
|
font-weight: 400;
|
|
127
134
|
font-family: var(--font-family-system);
|
|
128
135
|
}
|
|
129
|
-
.typography__secondary-
|
|
136
|
+
.typography__secondary-medium_1j1xz.typography__bold_1j1xz {
|
|
130
137
|
font-weight: 700;
|
|
131
138
|
}
|
|
132
|
-
.typography__secondary-
|
|
139
|
+
.typography__secondary-medium_1j1xz.typography__medium_1j1xz {
|
|
133
140
|
font-weight: 500;
|
|
134
141
|
}
|
|
135
|
-
.typography__secondary-
|
|
142
|
+
.typography__secondary-small_1j1xz {
|
|
136
143
|
font-size: 11px;
|
|
137
144
|
line-height: 16px;
|
|
138
145
|
font-weight: 400;
|
|
139
146
|
font-family: var(--font-family-system);
|
|
140
147
|
}
|
|
141
|
-
.typography__secondary-
|
|
148
|
+
.typography__secondary-small_1j1xz.typography__bold_1j1xz {
|
|
142
149
|
font-weight: 700;
|
|
143
150
|
}
|
|
144
|
-
.typography__secondary-
|
|
151
|
+
.typography__secondary-small_1j1xz.typography__medium_1j1xz {
|
|
145
152
|
font-weight: 500;
|
|
146
153
|
}
|
|
147
|
-
.typography__component-
|
|
154
|
+
.typography__component-secondary_1j1xz {
|
|
148
155
|
font-size: 14px;
|
|
149
156
|
line-height: 18px;
|
|
150
157
|
font-weight: 400;
|
|
151
158
|
font-family: var(--font-family-system);
|
|
152
159
|
}
|
|
153
|
-
.typography__component-
|
|
160
|
+
.typography__component-secondary_1j1xz.typography__bold_1j1xz {
|
|
154
161
|
font-weight: 700;
|
|
155
162
|
}
|
|
156
|
-
.typography__component-
|
|
163
|
+
.typography__component-secondary_1j1xz.typography__medium_1j1xz {
|
|
157
164
|
font-weight: 500;
|
|
158
165
|
}
|
|
159
|
-
.
|
|
166
|
+
.typography__rowLimit1_1j1xz {
|
|
160
167
|
-webkit-line-clamp: 1;
|
|
161
168
|
display: -webkit-box;
|
|
162
169
|
-webkit-box-orient: vertical;
|
|
163
170
|
overflow: hidden;
|
|
164
171
|
word-break: break-all;
|
|
165
172
|
}
|
|
166
|
-
.
|
|
173
|
+
.typography__rowLimit2_1j1xz {
|
|
167
174
|
-webkit-line-clamp: 2;
|
|
168
175
|
display: -webkit-box;
|
|
169
176
|
-webkit-box-orient: vertical;
|
|
170
177
|
overflow: hidden;
|
|
171
178
|
}
|
|
172
|
-
.
|
|
179
|
+
.typography__rowLimit3_1j1xz {
|
|
173
180
|
-webkit-line-clamp: 3;
|
|
174
181
|
display: -webkit-box;
|
|
175
182
|
-webkit-box-orient: vertical;
|
|
176
183
|
overflow: hidden;
|
|
177
184
|
}
|
|
178
|
-
.
|
|
185
|
+
.typography__monospace_1j1xz {
|
|
179
186
|
font-feature-settings: "tnum";
|
|
180
187
|
font-variant-numeric: tabular-nums;
|
|
181
188
|
}
|
package/text/index.module.css.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"transparent":"
|
|
5
|
+
var styles = {"transparent":"typography__transparent_1j1xz","skeleton":"typography__skeleton_1j1xz","root":"typography__root_1j1xz","paragraph":"typography__paragraph_1j1xz","paragraphWithMargins":"typography__paragraphWithMargins_1j1xz","component":"typography__component_1j1xz","bold":"typography__bold_1j1xz","medium":"typography__medium_1j1xz","caps":"typography__caps_1j1xz","tagline":"typography__tagline_1j1xz","primary-large":"typography__primary-large_1j1xz","primary-medium":"typography__primary-medium_1j1xz","primary-small":"typography__primary-small_1j1xz","component-primary":"typography__component-primary_1j1xz","secondary-large":"typography__secondary-large_1j1xz","secondary-medium":"typography__secondary-medium_1j1xz","secondary-small":"typography__secondary-small_1j1xz","component-secondary":"typography__component-secondary_1j1xz","rowLimit1":"typography__rowLimit1_1j1xz","rowLimit2":"typography__rowLimit2_1j1xz","rowLimit3":"typography__rowLimit3_1j1xz","monospace":"typography__monospace_1j1xz"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.module.css.js","sources":["../src/text/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../common.module.css';\n\n:root {\n --text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);\n}\n\n.paragraph {\n margin: var(--gap-0);\n padding: var(--gap-0);\n}\n\n.paragraphWithMargins {\n padding: var(--gap-0);\n margin: var(--text-paragraph-margin-bottom);\n}\n\n@each $view in component, caps, tagline {\n .$(view) {\n @mixin paragraph_$(view);\n }\n\n .$(view).bold {\n @subtract-mixin accent_$(view), paragraph_$(view);\n }\n\n .$(view).medium {\n @subtract-mixin action_$(view), paragraph_$(view);\n }\n}\n\n@each $kind in primary, secondary {\n @each $size in large, medium, small {\n .$(kind)-$(size) {\n /* prettier-ignore */\n @mixin paragraph_$(kind)_$(size);\n }\n\n .$(kind)-$(size).bold {\n @subtract-mixin accent_$(kind)_$(size), paragraph_$(kind)_$(size);\n }\n\n .$(kind)-$(size).medium {\n @subtract-mixin action_$(kind)_$(size), paragraph_$(kind)_$(size);\n }\n }\n\n .component-$(kind) {\n @mixin paragraph_component_$(kind);\n\n &.bold {\n @subtract-mixin accent_component_$(kind), paragraph_component_$(kind);\n }\n\n &.medium {\n @subtract-mixin action_component_$(kind), paragraph_component_$(kind);\n }\n }\n}\n\n.rowLimit1 {\n @mixin row_limit 1;\n word-break: break-all;\n}\n\n.rowLimit2 {\n @mixin row_limit 2;\n}\n\n.rowLimit3 {\n @mixin row_limit 3;\n}\n\n.monospace {\n font-variant-numeric: tabular-nums;\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,aAAa,CAAC,+BAA+B,CAAC,WAAW,CAAC,6BAA6B,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,WAAW,CAAC,6BAA6B,CAAC,MAAM,CAAC,wBAAwB,CAAC,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,wBAAwB,CAAC,SAAS,CAAC,2BAA2B,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,mBAAmB,CAAC,qCAAqC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,kBAAkB,CAAC,oCAAoC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,qBAAqB,CAAC,uCAAuC,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"index.module.css.js","sources":["../src/text/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../common.module.css';\n\n:root {\n --text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);\n}\n\n.paragraph {\n margin: var(--gap-0);\n padding: var(--gap-0);\n}\n\n.paragraphWithMargins {\n padding: var(--gap-0);\n margin: var(--text-paragraph-margin-bottom);\n}\n\n@each $view in component, caps, tagline {\n .$(view) {\n @mixin paragraph_$(view);\n }\n\n .$(view).bold {\n @subtract-mixin accent_$(view), paragraph_$(view);\n }\n\n .$(view).medium {\n @subtract-mixin action_$(view), paragraph_$(view);\n }\n}\n\n@each $kind in primary, secondary {\n @each $size in large, medium, small {\n .$(kind)-$(size) {\n /* prettier-ignore */\n @mixin paragraph_$(kind)_$(size);\n }\n\n .$(kind)-$(size).bold {\n @subtract-mixin accent_$(kind)_$(size), paragraph_$(kind)_$(size);\n }\n\n .$(kind)-$(size).medium {\n @subtract-mixin action_$(kind)_$(size), paragraph_$(kind)_$(size);\n }\n }\n\n .component-$(kind) {\n @mixin paragraph_component_$(kind);\n\n &.bold {\n @subtract-mixin accent_component_$(kind), paragraph_component_$(kind);\n }\n\n &.medium {\n @subtract-mixin action_component_$(kind), paragraph_component_$(kind);\n }\n }\n}\n\n.rowLimit1 {\n @mixin row_limit 1;\n word-break: break-all;\n}\n\n.rowLimit2 {\n @mixin row_limit 2;\n}\n\n.rowLimit3 {\n @mixin row_limit 3;\n}\n\n.monospace {\n font-variant-numeric: tabular-nums;\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,aAAa,CAAC,+BAA+B,CAAC,UAAU,CAAC,4BAA4B,CAAC,MAAM,CAAC,wBAAwB,CAAC,WAAW,CAAC,6BAA6B,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,WAAW,CAAC,6BAA6B,CAAC,MAAM,CAAC,wBAAwB,CAAC,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,wBAAwB,CAAC,SAAS,CAAC,2BAA2B,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,mBAAmB,CAAC,qCAAqC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,kBAAkB,CAAC,oCAAoC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,qBAAqB,CAAC,uCAAuC,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC;;;;"}
|
package/title/common.css
CHANGED
|
@@ -1,27 +1,34 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--gap-0: 0px;
|
|
3
3
|
}
|
|
4
|
-
.
|
|
5
|
-
|
|
4
|
+
.typography__transparent_3kstk {
|
|
5
|
+
visibility: hidden;
|
|
6
6
|
}
|
|
7
|
-
.
|
|
7
|
+
.typography__skeleton_3kstk {
|
|
8
|
+
position: absolute;
|
|
9
|
+
inset: 0;
|
|
10
|
+
}
|
|
11
|
+
.typography__root_3kstk {
|
|
12
|
+
position: relative;
|
|
13
|
+
}
|
|
14
|
+
.typography__component_3kstk {
|
|
8
15
|
margin: var(--gap-0);
|
|
9
16
|
padding: var(--gap-0);
|
|
10
17
|
}
|
|
11
|
-
.
|
|
18
|
+
.typography__rowLimit1_3kstk {
|
|
12
19
|
-webkit-line-clamp: 1;
|
|
13
20
|
display: -webkit-box;
|
|
14
21
|
-webkit-box-orient: vertical;
|
|
15
22
|
overflow: hidden;
|
|
16
23
|
word-break: break-all;
|
|
17
24
|
}
|
|
18
|
-
.
|
|
25
|
+
.typography__rowLimit2_3kstk {
|
|
19
26
|
-webkit-line-clamp: 2;
|
|
20
27
|
display: -webkit-box;
|
|
21
28
|
-webkit-box-orient: vertical;
|
|
22
29
|
overflow: hidden;
|
|
23
30
|
}
|
|
24
|
-
.
|
|
31
|
+
.typography__rowLimit3_3kstk {
|
|
25
32
|
-webkit-line-clamp: 3;
|
|
26
33
|
display: -webkit-box;
|
|
27
34
|
-webkit-box-orient: vertical;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./common.css');
|
|
4
4
|
|
|
5
|
-
var commonStyles = {"transparent":"
|
|
5
|
+
var commonStyles = {"transparent":"typography__transparent_3kstk","skeleton":"typography__skeleton_3kstk","root":"typography__root_3kstk","component":"typography__component_3kstk","rowLimit1":"typography__rowLimit1_3kstk","rowLimit2":"typography__rowLimit2_3kstk","rowLimit3":"typography__rowLimit3_3kstk"};
|
|
6
6
|
|
|
7
7
|
module.exports = commonStyles;
|
|
8
8
|
//# sourceMappingURL=common.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.module.css.js","sources":["../src/title/common.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../common.module.css';\n\n.component {\n margin: var(--gap-0);\n padding: var(--gap-0);\n}\n\n.rowLimit1 {\n @mixin row_limit 1;\n word-break: break-all;\n}\n\n.rowLimit2 {\n @mixin row_limit 2;\n}\n\n.rowLimit3 {\n @mixin row_limit 3;\n}\n"],"names":[],"mappings":";;;;AAEgB,mBAAe,CAAC,aAAa,CAAC,+BAA+B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"common.module.css.js","sources":["../src/title/common.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../common.module.css';\n\n.component {\n margin: var(--gap-0);\n padding: var(--gap-0);\n}\n\n.rowLimit1 {\n @mixin row_limit 1;\n word-break: break-all;\n}\n\n.rowLimit2 {\n @mixin row_limit 2;\n}\n\n.rowLimit3 {\n @mixin row_limit 3;\n}\n"],"names":[],"mappings":";;;;AAEgB,mBAAe,CAAC,aAAa,CAAC,+BAA+B,CAAC,UAAU,CAAC,4BAA4B,CAAC,MAAM,CAAC,wBAAwB,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC;;;;"}
|
package/title/component.js
CHANGED
|
@@ -22,18 +22,20 @@ var TitleBase = React.forwardRef(function (_a, ref) {
|
|
|
22
22
|
var _b;
|
|
23
23
|
var _c = _a.tag, Component = _c === void 0 ? 'div' : _c, _d = _a.view, view = _d === void 0 ? 'medium' : _d, _e = _a.font, font = _e === void 0 ? 'styrene' : _e, platform = _a.platform, _f = _a.weight, weight = _f === void 0 ? utils.getDefaultWeight(coreComponentsShared.isObject(font) ? font.font : font, platform) : _f, _g = _a.defaultMargins, defaultMargins = _g === void 0 ? false : _g, color = _a.color, className = _a.className, dataTestId = _a.dataTestId, children = _a.children, rowLimit = _a.rowLimit, styles = _a.styles, skeletonProps = _a.skeletonProps, showSkeleton = _a.showSkeleton, restProps = tslib.__rest(_a, ["tag", "view", "font", "platform", "weight", "defaultMargins", "color", "className", "dataTestId", "children", "rowLimit", "styles", "skeletonProps", "showSkeleton"]);
|
|
24
24
|
var _h = coreComponentsSkeleton.useSkeleton(showSkeleton, skeletonProps), renderSkeleton = _h.renderSkeleton, textRef = _h.textRef;
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
25
|
+
var Root = showSkeleton ? 'div' : React.Fragment;
|
|
26
|
+
var rootProps = showSkeleton
|
|
27
|
+
? { className: cn__default.default(common_module.root, className) }
|
|
28
|
+
: {};
|
|
29
|
+
return (React__default.default.createElement(Root, tslib.__assign({}, rootProps),
|
|
30
|
+
React__default.default.createElement(Component, tslib.__assign({ className: cn__default.default(common_module.component, styles.component, !showSkeleton && className, styles["".concat(weight === 'regular' ? 'regular-' : '').concat(view)], defaultMargins && styles["margins-".concat(view)], color && colors_module[color], (_b = {},
|
|
31
|
+
_b[common_module["rowLimit".concat(rowLimit)]] = rowLimit,
|
|
32
|
+
_b[common_module.transparent] = showSkeleton,
|
|
33
|
+
_b[styles.font] = (coreComponentsShared.isObject(font) && !font.systemCompat) || !(font === 'system'),
|
|
34
|
+
_b)), "data-test-id": dataTestId, ref: mergeRefs__default.default([ref, textRef]) }, restProps), children),
|
|
35
|
+
showSkeleton && (React__default.default.createElement("div", { className: common_module.skeleton }, renderSkeleton({
|
|
36
|
+
wrapperClassName: cn__default.default(defaultMargins && styles["margins-".concat(view)]),
|
|
37
|
+
dataTestId: dataTestId,
|
|
38
|
+
})))));
|
|
37
39
|
});
|
|
38
40
|
|
|
39
41
|
exports.TitleBase = TitleBase;
|