@salutejs/plasma-new-hope 0.109.0-canary.1307.10007524835.0 → 0.109.0-canary.1310.10007111729.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Portal/Portal.js +1 -1
- package/cjs/components/Portal/Portal.js.map +1 -1
- package/cjs/index.css +0 -3
- package/cjs/index.js +0 -5
- package/cjs/index.js.map +1 -1
- package/emotion/cjs/components/Breadcrumbs/README.md +78 -0
- package/emotion/cjs/components/Portal/Portal.js +1 -1
- package/emotion/cjs/components/Portal/Portal.template-doc.mdx +1 -1
- package/emotion/cjs/index.js +0 -11
- package/emotion/es/components/Breadcrumbs/README.md +78 -0
- package/emotion/es/components/Portal/Portal.js +1 -1
- package/emotion/es/components/Portal/Portal.template-doc.mdx +1 -1
- package/emotion/es/index.js +1 -2
- package/es/components/Portal/Portal.js +1 -1
- package/es/components/Portal/Portal.js.map +1 -1
- package/es/index.css +0 -3
- package/es/index.js +0 -2
- package/es/index.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/Breadcrumbs/README.md +78 -0
- package/styled-components/cjs/components/Portal/Portal.js +1 -1
- package/styled-components/cjs/components/Portal/Portal.template-doc.mdx +1 -1
- package/styled-components/cjs/index.js +0 -11
- package/styled-components/es/components/Breadcrumbs/README.md +78 -0
- package/styled-components/es/components/Portal/Portal.js +1 -1
- package/styled-components/es/components/Portal/Portal.template-doc.mdx +1 -1
- package/styled-components/es/index.js +1 -2
- package/types/components/Breadcrumbs/Breadcrumbs.types.d.ts +16 -0
- package/types/components/Breadcrumbs/Breadcrumbs.types.d.ts.map +1 -0
- package/types/components/Portal/Portal.d.ts +2 -6
- package/types/components/Portal/Portal.d.ts.map +1 -1
- package/types/components/Portal/index.d.ts.map +1 -1
- package/types/index.d.ts +0 -1
- package/types/index.d.ts.map +1 -1
- package/cjs/components/Price/Price.css +0 -2
- package/cjs/components/Price/Price.js +0 -65
- package/cjs/components/Price/Price.js.map +0 -1
- package/cjs/components/Price/Price.styles.js +0 -17
- package/cjs/components/Price/Price.styles.js.map +0 -1
- package/cjs/components/Price/Price.styles_15b4mp1.css +0 -2
- package/cjs/components/Price/Price.tokens.js +0 -10
- package/cjs/components/Price/Price.tokens.js.map +0 -1
- package/cjs/components/Price/utils/formatCurrency.js +0 -22
- package/cjs/components/Price/utils/formatCurrency.js.map +0 -1
- package/cjs/components/Price/variations/_view/base.js +0 -9
- package/cjs/components/Price/variations/_view/base.js.map +0 -1
- package/cjs/components/Price/variations/_view/base_x642ct.css +0 -1
- package/emotion/cjs/components/Price/Price.js +0 -66
- package/emotion/cjs/components/Price/Price.styles.js +0 -24
- package/emotion/cjs/components/Price/Price.template-doc.mdx +0 -24
- package/emotion/cjs/components/Price/Price.tokens.js +0 -9
- package/emotion/cjs/components/Price/index.js +0 -25
- package/emotion/cjs/components/Price/utils/formatCurrency.js +0 -21
- package/emotion/cjs/components/Price/variations/_view/base.js +0 -8
- package/emotion/cjs/components/Price/variations/_view/tokens.json +0 -1
- package/emotion/cjs/examples/plasma_b2c/components/Price/Price.config.js +0 -14
- package/emotion/cjs/examples/plasma_b2c/components/Price/Price.js +0 -17
- package/emotion/cjs/examples/plasma_b2c/components/Price/Price.stories.tsx +0 -38
- package/emotion/cjs/examples/plasma_web/components/Price/Price.config.js +0 -14
- package/emotion/cjs/examples/plasma_web/components/Price/Price.js +0 -17
- package/emotion/cjs/examples/plasma_web/components/Price/Price.stories.tsx +0 -38
- package/emotion/es/components/Price/Price.js +0 -58
- package/emotion/es/components/Price/Price.styles.js +0 -17
- package/emotion/es/components/Price/Price.template-doc.mdx +0 -24
- package/emotion/es/components/Price/Price.tokens.js +0 -3
- package/emotion/es/components/Price/index.js +0 -2
- package/emotion/es/components/Price/utils/formatCurrency.js +0 -15
- package/emotion/es/components/Price/variations/_view/base.js +0 -2
- package/emotion/es/components/Price/variations/_view/tokens.json +0 -1
- package/emotion/es/examples/plasma_b2c/components/Price/Price.config.js +0 -8
- package/emotion/es/examples/plasma_b2c/components/Price/Price.js +0 -6
- package/emotion/es/examples/plasma_b2c/components/Price/Price.stories.tsx +0 -38
- package/emotion/es/examples/plasma_web/components/Price/Price.config.js +0 -8
- package/emotion/es/examples/plasma_web/components/Price/Price.js +0 -6
- package/emotion/es/examples/plasma_web/components/Price/Price.stories.tsx +0 -38
- package/es/components/Price/Price.css +0 -2
- package/es/components/Price/Price.js +0 -60
- package/es/components/Price/Price.js.map +0 -1
- package/es/components/Price/Price.styles.js +0 -12
- package/es/components/Price/Price.styles.js.map +0 -1
- package/es/components/Price/Price.styles_15b4mp1.css +0 -2
- package/es/components/Price/Price.tokens.js +0 -6
- package/es/components/Price/Price.tokens.js.map +0 -1
- package/es/components/Price/utils/formatCurrency.js +0 -18
- package/es/components/Price/utils/formatCurrency.js.map +0 -1
- package/es/components/Price/variations/_view/base.js +0 -5
- package/es/components/Price/variations/_view/base.js.map +0 -1
- package/es/components/Price/variations/_view/base_x642ct.css +0 -1
- package/styled-components/cjs/components/Price/Price.js +0 -66
- package/styled-components/cjs/components/Price/Price.styles.js +0 -15
- package/styled-components/cjs/components/Price/Price.template-doc.mdx +0 -24
- package/styled-components/cjs/components/Price/Price.tokens.js +0 -9
- package/styled-components/cjs/components/Price/index.js +0 -25
- package/styled-components/cjs/components/Price/utils/formatCurrency.js +0 -21
- package/styled-components/cjs/components/Price/variations/_view/base.js +0 -8
- package/styled-components/cjs/components/Price/variations/_view/tokens.json +0 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Price/Price.config.js +0 -14
- package/styled-components/cjs/examples/plasma_b2c/components/Price/Price.js +0 -17
- package/styled-components/cjs/examples/plasma_b2c/components/Price/Price.stories.tsx +0 -38
- package/styled-components/cjs/examples/plasma_web/components/Price/Price.config.js +0 -14
- package/styled-components/cjs/examples/plasma_web/components/Price/Price.js +0 -17
- package/styled-components/cjs/examples/plasma_web/components/Price/Price.stories.tsx +0 -38
- package/styled-components/es/components/Price/Price.js +0 -58
- package/styled-components/es/components/Price/Price.styles.js +0 -7
- package/styled-components/es/components/Price/Price.template-doc.mdx +0 -24
- package/styled-components/es/components/Price/Price.tokens.js +0 -3
- package/styled-components/es/components/Price/index.js +0 -2
- package/styled-components/es/components/Price/utils/formatCurrency.js +0 -15
- package/styled-components/es/components/Price/variations/_view/base.js +0 -2
- package/styled-components/es/components/Price/variations/_view/tokens.json +0 -1
- package/styled-components/es/examples/plasma_b2c/components/Price/Price.config.js +0 -8
- package/styled-components/es/examples/plasma_b2c/components/Price/Price.js +0 -6
- package/styled-components/es/examples/plasma_b2c/components/Price/Price.stories.tsx +0 -38
- package/styled-components/es/examples/plasma_web/components/Price/Price.config.js +0 -8
- package/styled-components/es/examples/plasma_web/components/Price/Price.js +0 -6
- package/styled-components/es/examples/plasma_web/components/Price/Price.stories.tsx +0 -38
- package/types/components/Price/Price.d.ts +0 -22
- package/types/components/Price/Price.d.ts.map +0 -1
- package/types/components/Price/Price.styles.d.ts +0 -4
- package/types/components/Price/Price.styles.d.ts.map +0 -1
- package/types/components/Price/Price.tokens.d.ts +0 -4
- package/types/components/Price/Price.tokens.d.ts.map +0 -1
- package/types/components/Price/Price.types.d.ts +0 -41
- package/types/components/Price/Price.types.d.ts.map +0 -1
- package/types/components/Price/index.d.ts +0 -3
- package/types/components/Price/index.d.ts.map +0 -1
- package/types/components/Price/utils/formatCurrency.d.ts +0 -10
- package/types/components/Price/utils/formatCurrency.d.ts.map +0 -1
- package/types/components/Price/variations/_view/base.d.ts +0 -2
- package/types/components/Price/variations/_view/base.d.ts.map +0 -1
- package/types/examples/plasma_b2c/components/Price/Price.config.d.ts +0 -9
- package/types/examples/plasma_b2c/components/Price/Price.config.d.ts.map +0 -1
- package/types/examples/plasma_b2c/components/Price/Price.d.ts +0 -6
- package/types/examples/plasma_b2c/components/Price/Price.d.ts.map +0 -1
- package/types/examples/plasma_web/components/Price/Price.config.d.ts +0 -9
- package/types/examples/plasma_web/components/Price/Price.config.d.ts.map +0 -1
- package/types/examples/plasma_web/components/Price/Price.d.ts +0 -6
- package/types/examples/plasma_web/components/Price/Price.d.ts.map +0 -1
- /package/emotion/cjs/components/{Price/Price.types.js → Breadcrumbs/Breadcrumbs.types.js} +0 -0
- /package/emotion/es/components/{Price/Price.types.js → Breadcrumbs/Breadcrumbs.types.js} +0 -0
- /package/styled-components/cjs/components/{Price/Price.types.js → Breadcrumbs/Breadcrumbs.types.js} +0 -0
- /package/styled-components/es/components/{Price/Price.types.js → Breadcrumbs/Breadcrumbs.types.js} +0 -0
@@ -1,38 +0,0 @@
|
|
1
|
-
import React, { ComponentProps } from 'react';
|
2
|
-
import type { StoryObj, Meta } from '@storybook/react';
|
3
|
-
import { disableProps } from '@salutejs/plasma-sb-utils';
|
4
|
-
|
5
|
-
import { WithTheme } from '../../../_helpers';
|
6
|
-
|
7
|
-
import { Price } from './Price';
|
8
|
-
|
9
|
-
const currencies = ['rub', 'usd', 'eur'];
|
10
|
-
|
11
|
-
const meta: Meta<typeof Price> = {
|
12
|
-
title: 'plasma_web/Price',
|
13
|
-
decorators: [WithTheme],
|
14
|
-
argTypes: {
|
15
|
-
currency: {
|
16
|
-
options: currencies,
|
17
|
-
control: {
|
18
|
-
type: 'inline-radio',
|
19
|
-
},
|
20
|
-
},
|
21
|
-
...disableProps(['value', 'theme', 'as', 'forwardedAs']),
|
22
|
-
},
|
23
|
-
};
|
24
|
-
|
25
|
-
export default meta;
|
26
|
-
|
27
|
-
type StoryPriceProps = ComponentProps<typeof Price> & { priceLabel: number };
|
28
|
-
|
29
|
-
export const Default: StoryObj<StoryPriceProps> = {
|
30
|
-
args: {
|
31
|
-
locale: 'ru',
|
32
|
-
currency: 'rub',
|
33
|
-
stroked: false,
|
34
|
-
minimumFractionDigits: 0,
|
35
|
-
priceLabel: 12345.67,
|
36
|
-
},
|
37
|
-
render: ({ priceLabel, ...rest }) => <Price {...rest}>{priceLabel}</Price>,
|
38
|
-
};
|
@@ -1,58 +0,0 @@
|
|
1
|
-
var _excluded = ["children", "locale", "currency", "minimumFractionDigits", "stroked", "periodicity", "view", "className", "stroke"];
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
4
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
5
|
-
import React, { forwardRef } from 'react';
|
6
|
-
import { cx } from '../../utils';
|
7
|
-
import { formatCurrency } from './utils/formatCurrency';
|
8
|
-
import { base, StyledPeriodicity } from './Price.styles';
|
9
|
-
import { base as viewCSS } from './variations/_view/base';
|
10
|
-
import { classes } from './Price.tokens';
|
11
|
-
|
12
|
-
/**
|
13
|
-
* Компонент для отображения цены / стоимости / суммы.
|
14
|
-
*/
|
15
|
-
export var priceRoot = function priceRoot(Root) {
|
16
|
-
return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
|
17
|
-
var children = _ref.children,
|
18
|
-
_ref$locale = _ref.locale,
|
19
|
-
locale = _ref$locale === void 0 ? 'ru' : _ref$locale,
|
20
|
-
_ref$currency = _ref.currency,
|
21
|
-
currency = _ref$currency === void 0 ? 'rub' : _ref$currency,
|
22
|
-
_ref$minimumFractionD = _ref.minimumFractionDigits,
|
23
|
-
minimumFractionDigits = _ref$minimumFractionD === void 0 ? 0 : _ref$minimumFractionD,
|
24
|
-
_ref$stroked = _ref.stroked,
|
25
|
-
stroked = _ref$stroked === void 0 ? false : _ref$stroked,
|
26
|
-
periodicity = _ref.periodicity,
|
27
|
-
view = _ref.view,
|
28
|
-
className = _ref.className,
|
29
|
-
_ref$stroke = _ref.stroke,
|
30
|
-
stroke = _ref$stroke === void 0 ? false : _ref$stroke,
|
31
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
32
|
-
var strokedClass = stroked || stroke ? classes.stroked : undefined;
|
33
|
-
return /*#__PURE__*/React.createElement(Root, _extends({
|
34
|
-
view: view,
|
35
|
-
ref: outerRootRef,
|
36
|
-
className: cx(strokedClass, className)
|
37
|
-
}, rest), formatCurrency({
|
38
|
-
value: children,
|
39
|
-
locale: locale,
|
40
|
-
currency: currency,
|
41
|
-
minimumFractionDigits: minimumFractionDigits
|
42
|
-
}), periodicity && /*#__PURE__*/React.createElement(StyledPeriodicity, null, periodicity));
|
43
|
-
});
|
44
|
-
};
|
45
|
-
export var priceConfig = {
|
46
|
-
name: 'Price',
|
47
|
-
tag: 'span',
|
48
|
-
layout: priceRoot,
|
49
|
-
base: base,
|
50
|
-
variations: {
|
51
|
-
view: {
|
52
|
-
css: viewCSS
|
53
|
-
}
|
54
|
-
},
|
55
|
-
defaults: {
|
56
|
-
view: 'default'
|
57
|
-
}
|
58
|
-
};
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import styled from 'styled-components';
|
2
|
-
import { css } from 'styled-components';
|
3
|
-
import { classes } from './Price.tokens';
|
4
|
-
export var base = /*#__PURE__*/css(["&.", "{text-decoration:line-through;}"], /*#__PURE__*/String(classes.stroked));
|
5
|
-
export var StyledPeriodicity = /*#__PURE__*/styled.span.withConfig({
|
6
|
-
componentId: "plasma-new-hope__sc-caa7uj-0"
|
7
|
-
})(["padding-left:0.25rem;"]);
|
@@ -1,24 +0,0 @@
|
|
1
|
-
---
|
2
|
-
id: price
|
3
|
-
title: Price
|
4
|
-
---
|
5
|
-
|
6
|
-
import { PropsTable, Description } from '@site/src/components';
|
7
|
-
|
8
|
-
# Price
|
9
|
-
<Description name="Price" />
|
10
|
-
<PropsTable name="Price" exclude={['css']} />
|
11
|
-
|
12
|
-
```tsx live
|
13
|
-
import React from 'react';
|
14
|
-
import { Price } from '@salutejs/{{ package }}';
|
15
|
-
|
16
|
-
export function App() {
|
17
|
-
return (
|
18
|
-
<div style=\{{ display: 'flex', flexDirection: 'column' }}>
|
19
|
-
<Price currency="rub" minimumFractionDigits={3}>12345.67</Price>
|
20
|
-
<Price locale="en" currency="rub" minimumFractionDigits={3} stroked>12345.67</Price>
|
21
|
-
</div>
|
22
|
-
);
|
23
|
-
}
|
24
|
-
```
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Форматирование числа в цену.
|
3
|
-
*/
|
4
|
-
export var formatCurrency = function formatCurrency(_ref) {
|
5
|
-
var value = _ref.value,
|
6
|
-
locale = _ref.locale,
|
7
|
-
currency = _ref.currency,
|
8
|
-
minimumFractionDigits = _ref.minimumFractionDigits;
|
9
|
-
var formatter = new Intl.NumberFormat(locale, {
|
10
|
-
style: 'currency',
|
11
|
-
currency: currency,
|
12
|
-
minimumFractionDigits: minimumFractionDigits
|
13
|
-
});
|
14
|
-
return formatter.format(value);
|
15
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
[]
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { priceConfig } from '../../../../components/Price';
|
2
|
-
import { component, mergeConfig } from '../../../../engines';
|
3
|
-
import { config } from './Price.config';
|
4
|
-
export { priceClasses } from '../../../../components/Price';
|
5
|
-
var mergedConfig = /*#__PURE__*/mergeConfig(priceConfig, config);
|
6
|
-
export var Price = /*#__PURE__*/component(mergedConfig);
|
@@ -1,38 +0,0 @@
|
|
1
|
-
import React, { ComponentProps } from 'react';
|
2
|
-
import type { StoryObj, Meta } from '@storybook/react';
|
3
|
-
import { disableProps } from '@salutejs/plasma-sb-utils';
|
4
|
-
|
5
|
-
import { WithTheme } from '../../../_helpers';
|
6
|
-
|
7
|
-
import { Price } from './Price';
|
8
|
-
|
9
|
-
const currencies = ['rub', 'usd', 'eur'];
|
10
|
-
|
11
|
-
const meta: Meta<typeof Price> = {
|
12
|
-
title: 'plasma_b2c/Price',
|
13
|
-
decorators: [WithTheme],
|
14
|
-
argTypes: {
|
15
|
-
currency: {
|
16
|
-
options: currencies,
|
17
|
-
control: {
|
18
|
-
type: 'inline-radio',
|
19
|
-
},
|
20
|
-
},
|
21
|
-
...disableProps(['value', 'theme', 'as', 'forwardedAs']),
|
22
|
-
},
|
23
|
-
};
|
24
|
-
|
25
|
-
export default meta;
|
26
|
-
|
27
|
-
type StoryPriceProps = ComponentProps<typeof Price> & { priceLabel: number };
|
28
|
-
|
29
|
-
export const Default: StoryObj<StoryPriceProps> = {
|
30
|
-
args: {
|
31
|
-
locale: 'ru',
|
32
|
-
currency: 'rub',
|
33
|
-
stroked: false,
|
34
|
-
minimumFractionDigits: 0,
|
35
|
-
priceLabel: 12345.67,
|
36
|
-
},
|
37
|
-
render: ({ priceLabel, ...rest }) => <Price {...rest}>{priceLabel}</Price>,
|
38
|
-
};
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { priceConfig } from '../../../../components/Price';
|
2
|
-
import { component, mergeConfig } from '../../../../engines';
|
3
|
-
import { config } from './Price.config';
|
4
|
-
export { priceClasses } from '../../../../components/Price';
|
5
|
-
var mergedConfig = /*#__PURE__*/mergeConfig(priceConfig, config);
|
6
|
-
export var Price = /*#__PURE__*/component(mergedConfig);
|
@@ -1,38 +0,0 @@
|
|
1
|
-
import React, { ComponentProps } from 'react';
|
2
|
-
import type { StoryObj, Meta } from '@storybook/react';
|
3
|
-
import { disableProps } from '@salutejs/plasma-sb-utils';
|
4
|
-
|
5
|
-
import { WithTheme } from '../../../_helpers';
|
6
|
-
|
7
|
-
import { Price } from './Price';
|
8
|
-
|
9
|
-
const currencies = ['rub', 'usd', 'eur'];
|
10
|
-
|
11
|
-
const meta: Meta<typeof Price> = {
|
12
|
-
title: 'plasma_web/Price',
|
13
|
-
decorators: [WithTheme],
|
14
|
-
argTypes: {
|
15
|
-
currency: {
|
16
|
-
options: currencies,
|
17
|
-
control: {
|
18
|
-
type: 'inline-radio',
|
19
|
-
},
|
20
|
-
},
|
21
|
-
...disableProps(['value', 'theme', 'as', 'forwardedAs']),
|
22
|
-
},
|
23
|
-
};
|
24
|
-
|
25
|
-
export default meta;
|
26
|
-
|
27
|
-
type StoryPriceProps = ComponentProps<typeof Price> & { priceLabel: number };
|
28
|
-
|
29
|
-
export const Default: StoryObj<StoryPriceProps> = {
|
30
|
-
args: {
|
31
|
-
locale: 'ru',
|
32
|
-
currency: 'rub',
|
33
|
-
stroked: false,
|
34
|
-
minimumFractionDigits: 0,
|
35
|
-
priceLabel: 12345.67,
|
36
|
-
},
|
37
|
-
render: ({ priceLabel, ...rest }) => <Price {...rest}>{priceLabel}</Price>,
|
38
|
-
};
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { RootProps } from '../../engines';
|
3
|
-
import { PriceProps } from './Price.types';
|
4
|
-
/**
|
5
|
-
* Компонент для отображения цены / стоимости / суммы.
|
6
|
-
*/
|
7
|
-
export declare const priceRoot: (Root: RootProps<HTMLSpanElement, Omit<PriceProps, 'children'>>) => React.ForwardRefExoticComponent<PriceProps & React.RefAttributes<HTMLSpanElement>>;
|
8
|
-
export declare const priceConfig: {
|
9
|
-
name: string;
|
10
|
-
tag: string;
|
11
|
-
layout: (Root: RootProps<HTMLSpanElement, Omit<PriceProps, 'children'>>) => React.ForwardRefExoticComponent<PriceProps & React.RefAttributes<HTMLSpanElement>>;
|
12
|
-
base: import("@linaria/core").LinariaClassName;
|
13
|
-
variations: {
|
14
|
-
view: {
|
15
|
-
css: import("@linaria/core").LinariaClassName;
|
16
|
-
};
|
17
|
-
};
|
18
|
-
defaults: {
|
19
|
-
view: string;
|
20
|
-
};
|
21
|
-
};
|
22
|
-
//# sourceMappingURL=Price.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Price.d.ts","sourceRoot":"","sources":["../../../src/components/Price/Price.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI1C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAK3C;;GAEG;AACH,eAAO,MAAM,SAAS,SAAU,UAAU,eAAe,EAAE,KAAK,UAAU,EAAE,UAAU,CAAC,CAAC,uFA0BnF,CAAC;AAEN,eAAO,MAAM,WAAW;;;mBA5BQ,UAAU,eAAe,EAAE,KAAK,UAAU,EAAE,UAAU,CAAC,CAAC;;;;;;;;;;CAyCvF,CAAC"}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export declare const base: import("@linaria/core").LinariaClassName;
|
3
|
-
export declare const StyledPeriodicity: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
4
|
-
//# sourceMappingURL=Price.styles.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Price.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Price/Price.styles.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,IAAI,0CAIhB,CAAC;AAEF,eAAO,MAAM,iBAAiB,uKAE7B,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Price.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Price/Price.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;CAEnB,CAAC"}
|
@@ -1,41 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { AsProps } from '../../types';
|
3
|
-
export interface PriceProps extends React.HTMLAttributes<HTMLSpanElement>, AsProps {
|
4
|
-
/**
|
5
|
-
* Значение контрола.
|
6
|
-
*/
|
7
|
-
children: number;
|
8
|
-
/**
|
9
|
-
* Локаль.
|
10
|
-
* @default `ru`
|
11
|
-
*/
|
12
|
-
locale?: string;
|
13
|
-
/**
|
14
|
-
* Валюта.
|
15
|
-
* @default `rub`
|
16
|
-
*/
|
17
|
-
currency?: 'rub' | 'usd' | 'eur';
|
18
|
-
/**
|
19
|
-
* Перечеркнутый текст (старая цена, например).
|
20
|
-
* @default false
|
21
|
-
*/
|
22
|
-
stroked?: boolean;
|
23
|
-
/**
|
24
|
-
* Минимальное количество цифр после десятичного разделителя.
|
25
|
-
* @default 0
|
26
|
-
*/
|
27
|
-
minimumFractionDigits?: number;
|
28
|
-
/**
|
29
|
-
* Указывает регулярность платежа, идет после цены.
|
30
|
-
* Например - 990Р / день.
|
31
|
-
*/
|
32
|
-
periodicity?: '/ день' | '/ неделя' | '/ месяц' | '/ год' | React.ReactNode;
|
33
|
-
/**
|
34
|
-
* Перечеркнутый текст (старая цена, например).
|
35
|
-
* @deprecated
|
36
|
-
* @default false
|
37
|
-
*/
|
38
|
-
stroke?: boolean;
|
39
|
-
view?: string;
|
40
|
-
}
|
41
|
-
//# sourceMappingURL=Price.types.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Price.types.d.ts","sourceRoot":"","sources":["../../../src/components/Price/Price.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,OAAO;IAC9E;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IACjC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;OAGG;IACH,WAAW,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC;IAC5E;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Price/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Форматирование числа в цену.
|
3
|
-
*/
|
4
|
-
export declare const formatCurrency: ({ value, locale, currency, minimumFractionDigits, }: {
|
5
|
-
value: number;
|
6
|
-
locale: string;
|
7
|
-
currency: string;
|
8
|
-
minimumFractionDigits: number;
|
9
|
-
}) => string;
|
10
|
-
//# sourceMappingURL=formatCurrency.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"formatCurrency.d.ts","sourceRoot":"","sources":["../../../../src/components/Price/utils/formatCurrency.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,cAAc;WAMhB,MAAM;YACL,MAAM;cACJ,MAAM;2BACO,MAAM;MAC7B,MAQH,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Price/variations/_view/base.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,0CAAQ,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Price.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Price/Price.config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;CAOlB,CAAC"}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export { priceClasses } from '../../../../components/Price';
|
3
|
-
export declare const Price: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
|
4
|
-
view: {};
|
5
|
-
}> & import("../../../../components/Price/Price.types").PriceProps & import("react").RefAttributes<HTMLSpanElement>>;
|
6
|
-
//# sourceMappingURL=Price.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Price.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Price/Price.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAI5D,eAAO,MAAM,KAAK;;oHAA0B,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Price.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Price/Price.config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;CAOlB,CAAC"}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export { priceClasses } from '../../../../components/Price';
|
3
|
-
export declare const Price: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
|
4
|
-
view: {};
|
5
|
-
}> & import("../../../../components/Price/Price.types").PriceProps & import("react").RefAttributes<HTMLSpanElement>>;
|
6
|
-
//# sourceMappingURL=Price.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Price.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Price/Price.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAI5D,eAAO,MAAM,KAAK;;oHAA0B,CAAC"}
|
File without changes
|
File without changes
|
/package/styled-components/cjs/components/{Price/Price.types.js → Breadcrumbs/Breadcrumbs.types.js}
RENAMED
File without changes
|
/package/styled-components/es/components/{Price/Price.types.js → Breadcrumbs/Breadcrumbs.types.js}
RENAMED
File without changes
|