@salutejs/plasma-new-hope 0.109.0-canary.1307.10036117462.0 → 0.109.0-canary.1308.10039680195.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. package/cjs/components/Portal/Portal.js +1 -1
  2. package/cjs/components/Portal/Portal.js.map +1 -1
  3. package/cjs/components/TextArea/TextArea.js +5 -5
  4. package/cjs/components/TextArea/TextArea.js.map +1 -1
  5. package/cjs/components/Typography/Old/Subtitle/Subtitle.js +5 -2
  6. package/cjs/components/Typography/Old/Subtitle/Subtitle.js.map +1 -1
  7. package/cjs/components/Typography/Old/TypographyOld.js +5 -2
  8. package/cjs/components/Typography/Old/TypographyOld.js.map +1 -1
  9. package/cjs/components/Typography/Typography.js +5 -2
  10. package/cjs/components/Typography/Typography.js.map +1 -1
  11. package/cjs/index.css +0 -3
  12. package/cjs/index.js +0 -5
  13. package/cjs/index.js.map +1 -1
  14. package/emotion/cjs/components/Portal/Portal.js +1 -1
  15. package/emotion/cjs/components/Portal/Portal.template-doc.mdx +1 -1
  16. package/emotion/cjs/components/TextArea/TextArea.js +6 -6
  17. package/emotion/cjs/components/Typography/Old/Subtitle/Subtitle.js +5 -2
  18. package/emotion/cjs/components/Typography/Old/TypographyOld.js +5 -2
  19. package/emotion/cjs/components/Typography/Typography.js +5 -2
  20. package/emotion/cjs/index.js +0 -11
  21. package/emotion/es/components/Portal/Portal.js +1 -1
  22. package/emotion/es/components/Portal/Portal.template-doc.mdx +1 -1
  23. package/emotion/es/components/TextArea/TextArea.js +6 -6
  24. package/emotion/es/components/Typography/Old/Subtitle/Subtitle.js +5 -2
  25. package/emotion/es/components/Typography/Old/TypographyOld.js +5 -2
  26. package/emotion/es/components/Typography/Typography.js +5 -2
  27. package/emotion/es/index.js +1 -2
  28. package/es/components/Portal/Portal.js +1 -1
  29. package/es/components/Portal/Portal.js.map +1 -1
  30. package/es/components/TextArea/TextArea.js +5 -5
  31. package/es/components/TextArea/TextArea.js.map +1 -1
  32. package/es/components/Typography/Old/Subtitle/Subtitle.js +5 -2
  33. package/es/components/Typography/Old/Subtitle/Subtitle.js.map +1 -1
  34. package/es/components/Typography/Old/TypographyOld.js +5 -2
  35. package/es/components/Typography/Old/TypographyOld.js.map +1 -1
  36. package/es/components/Typography/Typography.js +5 -2
  37. package/es/components/Typography/Typography.js.map +1 -1
  38. package/es/index.css +0 -3
  39. package/es/index.js +0 -2
  40. package/es/index.js.map +1 -1
  41. package/package.json +2 -2
  42. package/styled-components/cjs/components/Portal/Portal.js +1 -1
  43. package/styled-components/cjs/components/Portal/Portal.template-doc.mdx +1 -1
  44. package/styled-components/cjs/components/TextArea/TextArea.js +5 -5
  45. package/styled-components/cjs/components/Typography/Old/Subtitle/Subtitle.js +5 -2
  46. package/styled-components/cjs/components/Typography/Old/TypographyOld.js +5 -2
  47. package/styled-components/cjs/components/Typography/Typography.js +5 -2
  48. package/styled-components/cjs/index.js +0 -11
  49. package/styled-components/es/components/Portal/Portal.js +1 -1
  50. package/styled-components/es/components/Portal/Portal.template-doc.mdx +1 -1
  51. package/styled-components/es/components/TextArea/TextArea.js +5 -5
  52. package/styled-components/es/components/Typography/Old/Subtitle/Subtitle.js +5 -2
  53. package/styled-components/es/components/Typography/Old/TypographyOld.js +5 -2
  54. package/styled-components/es/components/Typography/Typography.js +5 -2
  55. package/styled-components/es/index.js +1 -2
  56. package/types/components/Portal/Portal.d.ts +2 -6
  57. package/types/components/Portal/Portal.d.ts.map +1 -1
  58. package/types/components/Portal/index.d.ts.map +1 -1
  59. package/types/components/Typography/Body/Body.d.ts +10 -2
  60. package/types/components/Typography/Body/Body.d.ts.map +1 -1
  61. package/types/components/Typography/Dspl/Dspl.d.ts +10 -2
  62. package/types/components/Typography/Dspl/Dspl.d.ts.map +1 -1
  63. package/types/components/Typography/Heading/Heading.d.ts +10 -2
  64. package/types/components/Typography/Heading/Heading.d.ts.map +1 -1
  65. package/types/components/Typography/Old/Body/Body.d.ts +6 -2
  66. package/types/components/Typography/Old/Body/Body.d.ts.map +1 -1
  67. package/types/components/Typography/Old/Button/Button.d.ts +6 -2
  68. package/types/components/Typography/Old/Button/Button.d.ts.map +1 -1
  69. package/types/components/Typography/Old/Caption/Caption.d.ts +6 -2
  70. package/types/components/Typography/Old/Caption/Caption.d.ts.map +1 -1
  71. package/types/components/Typography/Old/Display/Display.d.ts +6 -2
  72. package/types/components/Typography/Old/Display/Display.d.ts.map +1 -1
  73. package/types/components/Typography/Old/Footnote/Footnote.d.ts +6 -2
  74. package/types/components/Typography/Old/Footnote/Footnote.d.ts.map +1 -1
  75. package/types/components/Typography/Old/Headline/Headline.d.ts +6 -2
  76. package/types/components/Typography/Old/Headline/Headline.d.ts.map +1 -1
  77. package/types/components/Typography/Old/Paragraph/Paragraph.d.ts +6 -2
  78. package/types/components/Typography/Old/Paragraph/Paragraph.d.ts.map +1 -1
  79. package/types/components/Typography/Old/ParagraphText/ParagraphText.d.ts +6 -2
  80. package/types/components/Typography/Old/ParagraphText/ParagraphText.d.ts.map +1 -1
  81. package/types/components/Typography/Old/Subtitle/Subtitle.d.ts +9 -3
  82. package/types/components/Typography/Old/Subtitle/Subtitle.d.ts.map +1 -1
  83. package/types/components/Typography/Old/TypographyOld.d.ts +6 -2
  84. package/types/components/Typography/Old/TypographyOld.d.ts.map +1 -1
  85. package/types/components/Typography/Old/Underline/Underline.d.ts +6 -2
  86. package/types/components/Typography/Old/Underline/Underline.d.ts.map +1 -1
  87. package/types/components/Typography/Text/Text.d.ts +10 -2
  88. package/types/components/Typography/Text/Text.d.ts.map +1 -1
  89. package/types/components/Typography/Typography.d.ts +3 -1
  90. package/types/components/Typography/Typography.d.ts.map +1 -1
  91. package/types/examples/typograpy/components/Old/Body/Body.d.ts +3 -1
  92. package/types/examples/typograpy/components/Old/Body/Body.d.ts.map +1 -1
  93. package/types/examples/typograpy/components/Old/Button/Button.d.ts +3 -1
  94. package/types/examples/typograpy/components/Old/Button/Button.d.ts.map +1 -1
  95. package/types/examples/typograpy/components/Old/Caption/Caption.d.ts +3 -1
  96. package/types/examples/typograpy/components/Old/Caption/Caption.d.ts.map +1 -1
  97. package/types/examples/typograpy/components/Old/Display/Display.d.ts +3 -1
  98. package/types/examples/typograpy/components/Old/Display/Display.d.ts.map +1 -1
  99. package/types/examples/typograpy/components/Old/Footnote/Footnote.d.ts +3 -1
  100. package/types/examples/typograpy/components/Old/Footnote/Footnote.d.ts.map +1 -1
  101. package/types/examples/typograpy/components/Old/Headline/Headline.d.ts +3 -1
  102. package/types/examples/typograpy/components/Old/Headline/Headline.d.ts.map +1 -1
  103. package/types/examples/typograpy/components/Old/Paragraph/Paragraph.d.ts +3 -1
  104. package/types/examples/typograpy/components/Old/Paragraph/Paragraph.d.ts.map +1 -1
  105. package/types/examples/typograpy/components/Old/Subtitle/Subtitle.d.ts +3 -1
  106. package/types/examples/typograpy/components/Old/Subtitle/Subtitle.d.ts.map +1 -1
  107. package/types/examples/typograpy/components/Old/Underline/Underline.d.ts +3 -1
  108. package/types/examples/typograpy/components/Old/Underline/Underline.d.ts.map +1 -1
  109. package/types/index.d.ts +0 -1
  110. package/types/index.d.ts.map +1 -1
  111. package/cjs/components/Price/Price.css +0 -2
  112. package/cjs/components/Price/Price.js +0 -65
  113. package/cjs/components/Price/Price.js.map +0 -1
  114. package/cjs/components/Price/Price.styles.js +0 -17
  115. package/cjs/components/Price/Price.styles.js.map +0 -1
  116. package/cjs/components/Price/Price.styles_15b4mp1.css +0 -2
  117. package/cjs/components/Price/Price.tokens.js +0 -10
  118. package/cjs/components/Price/Price.tokens.js.map +0 -1
  119. package/cjs/components/Price/utils/formatCurrency.js +0 -22
  120. package/cjs/components/Price/utils/formatCurrency.js.map +0 -1
  121. package/cjs/components/Price/variations/_view/base.js +0 -9
  122. package/cjs/components/Price/variations/_view/base.js.map +0 -1
  123. package/cjs/components/Price/variations/_view/base_x642ct.css +0 -1
  124. package/emotion/cjs/components/Price/Price.js +0 -66
  125. package/emotion/cjs/components/Price/Price.styles.js +0 -24
  126. package/emotion/cjs/components/Price/Price.template-doc.mdx +0 -24
  127. package/emotion/cjs/components/Price/Price.tokens.js +0 -9
  128. package/emotion/cjs/components/Price/Price.types.js +0 -5
  129. package/emotion/cjs/components/Price/index.js +0 -25
  130. package/emotion/cjs/components/Price/utils/formatCurrency.js +0 -21
  131. package/emotion/cjs/components/Price/variations/_view/base.js +0 -8
  132. package/emotion/cjs/components/Price/variations/_view/tokens.json +0 -1
  133. package/emotion/cjs/examples/plasma_b2c/components/Price/Price.config.js +0 -14
  134. package/emotion/cjs/examples/plasma_b2c/components/Price/Price.js +0 -17
  135. package/emotion/cjs/examples/plasma_b2c/components/Price/Price.stories.tsx +0 -38
  136. package/emotion/cjs/examples/plasma_web/components/Price/Price.config.js +0 -14
  137. package/emotion/cjs/examples/plasma_web/components/Price/Price.js +0 -17
  138. package/emotion/cjs/examples/plasma_web/components/Price/Price.stories.tsx +0 -38
  139. package/emotion/es/components/Price/Price.js +0 -58
  140. package/emotion/es/components/Price/Price.styles.js +0 -17
  141. package/emotion/es/components/Price/Price.template-doc.mdx +0 -24
  142. package/emotion/es/components/Price/Price.tokens.js +0 -3
  143. package/emotion/es/components/Price/Price.types.js +0 -1
  144. package/emotion/es/components/Price/index.js +0 -2
  145. package/emotion/es/components/Price/utils/formatCurrency.js +0 -15
  146. package/emotion/es/components/Price/variations/_view/base.js +0 -2
  147. package/emotion/es/components/Price/variations/_view/tokens.json +0 -1
  148. package/emotion/es/examples/plasma_b2c/components/Price/Price.config.js +0 -8
  149. package/emotion/es/examples/plasma_b2c/components/Price/Price.js +0 -6
  150. package/emotion/es/examples/plasma_b2c/components/Price/Price.stories.tsx +0 -38
  151. package/emotion/es/examples/plasma_web/components/Price/Price.config.js +0 -8
  152. package/emotion/es/examples/plasma_web/components/Price/Price.js +0 -6
  153. package/emotion/es/examples/plasma_web/components/Price/Price.stories.tsx +0 -38
  154. package/es/components/Price/Price.css +0 -2
  155. package/es/components/Price/Price.js +0 -60
  156. package/es/components/Price/Price.js.map +0 -1
  157. package/es/components/Price/Price.styles.js +0 -12
  158. package/es/components/Price/Price.styles.js.map +0 -1
  159. package/es/components/Price/Price.styles_15b4mp1.css +0 -2
  160. package/es/components/Price/Price.tokens.js +0 -6
  161. package/es/components/Price/Price.tokens.js.map +0 -1
  162. package/es/components/Price/utils/formatCurrency.js +0 -18
  163. package/es/components/Price/utils/formatCurrency.js.map +0 -1
  164. package/es/components/Price/variations/_view/base.js +0 -5
  165. package/es/components/Price/variations/_view/base.js.map +0 -1
  166. package/es/components/Price/variations/_view/base_x642ct.css +0 -1
  167. package/styled-components/cjs/components/Price/Price.js +0 -66
  168. package/styled-components/cjs/components/Price/Price.styles.js +0 -15
  169. package/styled-components/cjs/components/Price/Price.template-doc.mdx +0 -24
  170. package/styled-components/cjs/components/Price/Price.tokens.js +0 -9
  171. package/styled-components/cjs/components/Price/Price.types.js +0 -5
  172. package/styled-components/cjs/components/Price/index.js +0 -25
  173. package/styled-components/cjs/components/Price/utils/formatCurrency.js +0 -21
  174. package/styled-components/cjs/components/Price/variations/_view/base.js +0 -8
  175. package/styled-components/cjs/components/Price/variations/_view/tokens.json +0 -1
  176. package/styled-components/cjs/examples/plasma_b2c/components/Price/Price.config.js +0 -14
  177. package/styled-components/cjs/examples/plasma_b2c/components/Price/Price.js +0 -17
  178. package/styled-components/cjs/examples/plasma_b2c/components/Price/Price.stories.tsx +0 -38
  179. package/styled-components/cjs/examples/plasma_web/components/Price/Price.config.js +0 -14
  180. package/styled-components/cjs/examples/plasma_web/components/Price/Price.js +0 -17
  181. package/styled-components/cjs/examples/plasma_web/components/Price/Price.stories.tsx +0 -38
  182. package/styled-components/es/components/Price/Price.js +0 -58
  183. package/styled-components/es/components/Price/Price.styles.js +0 -7
  184. package/styled-components/es/components/Price/Price.template-doc.mdx +0 -24
  185. package/styled-components/es/components/Price/Price.tokens.js +0 -3
  186. package/styled-components/es/components/Price/Price.types.js +0 -1
  187. package/styled-components/es/components/Price/index.js +0 -2
  188. package/styled-components/es/components/Price/utils/formatCurrency.js +0 -15
  189. package/styled-components/es/components/Price/variations/_view/base.js +0 -2
  190. package/styled-components/es/components/Price/variations/_view/tokens.json +0 -1
  191. package/styled-components/es/examples/plasma_b2c/components/Price/Price.config.js +0 -8
  192. package/styled-components/es/examples/plasma_b2c/components/Price/Price.js +0 -6
  193. package/styled-components/es/examples/plasma_b2c/components/Price/Price.stories.tsx +0 -38
  194. package/styled-components/es/examples/plasma_web/components/Price/Price.config.js +0 -8
  195. package/styled-components/es/examples/plasma_web/components/Price/Price.js +0 -6
  196. package/styled-components/es/examples/plasma_web/components/Price/Price.stories.tsx +0 -38
  197. package/types/components/Price/Price.d.ts +0 -22
  198. package/types/components/Price/Price.d.ts.map +0 -1
  199. package/types/components/Price/Price.styles.d.ts +0 -4
  200. package/types/components/Price/Price.styles.d.ts.map +0 -1
  201. package/types/components/Price/Price.tokens.d.ts +0 -4
  202. package/types/components/Price/Price.tokens.d.ts.map +0 -1
  203. package/types/components/Price/Price.types.d.ts +0 -41
  204. package/types/components/Price/Price.types.d.ts.map +0 -1
  205. package/types/components/Price/index.d.ts +0 -3
  206. package/types/components/Price/index.d.ts.map +0 -1
  207. package/types/components/Price/utils/formatCurrency.d.ts +0 -10
  208. package/types/components/Price/utils/formatCurrency.d.ts.map +0 -1
  209. package/types/components/Price/variations/_view/base.d.ts +0 -2
  210. package/types/components/Price/variations/_view/base.d.ts.map +0 -1
  211. package/types/examples/plasma_b2c/components/Price/Price.config.d.ts +0 -9
  212. package/types/examples/plasma_b2c/components/Price/Price.config.d.ts.map +0 -1
  213. package/types/examples/plasma_b2c/components/Price/Price.d.ts +0 -6
  214. package/types/examples/plasma_b2c/components/Price/Price.d.ts.map +0 -1
  215. package/types/examples/plasma_web/components/Price/Price.config.d.ts +0 -9
  216. package/types/examples/plasma_web/components/Price/Price.config.d.ts.map +0 -1
  217. package/types/examples/plasma_web/components/Price/Price.d.ts +0 -6
  218. package/types/examples/plasma_web/components/Price/Price.d.ts.map +0 -1
@@ -1,21 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.formatCurrency = void 0;
7
- /**
8
- * Форматирование числа в цену.
9
- */
10
- var formatCurrency = exports.formatCurrency = function formatCurrency(_ref) {
11
- var value = _ref.value,
12
- locale = _ref.locale,
13
- currency = _ref.currency,
14
- minimumFractionDigits = _ref.minimumFractionDigits;
15
- var formatter = new Intl.NumberFormat(locale, {
16
- style: 'currency',
17
- currency: currency,
18
- minimumFractionDigits: minimumFractionDigits
19
- });
20
- return formatter.format(value);
21
- };
@@ -1,8 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.base = void 0;
7
- var _react = /*#__PURE__*/require("@emotion/react");
8
- var base = exports.base = /*#__PURE__*/(0, _react.css)(";label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUHJpY2UvdmFyaWF0aW9ucy9fdmlldy9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUV1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1ByaWNlL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgYDtcbiJdfQ== */"));
@@ -1,14 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.config = void 0;
7
- var config = exports.config = {
8
- defaults: {
9
- view: 'default'
10
- },
11
- variations: {
12
- view: {}
13
- }
14
- };
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Price = void 0;
7
- Object.defineProperty(exports, "priceClasses", {
8
- enumerable: true,
9
- get: function get() {
10
- return _Price.priceClasses;
11
- }
12
- });
13
- var _Price = /*#__PURE__*/require("../../../../components/Price");
14
- var _engines = /*#__PURE__*/require("../../../../engines");
15
- var _Price2 = /*#__PURE__*/require("./Price.config");
16
- var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Price.priceConfig, _Price2.config);
17
- var Price = exports.Price = /*#__PURE__*/(0, _engines.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', 'inr'];
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,14 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.config = void 0;
7
- var config = exports.config = {
8
- defaults: {
9
- view: 'default'
10
- },
11
- variations: {
12
- view: {}
13
- }
14
- };
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Price = void 0;
7
- Object.defineProperty(exports, "priceClasses", {
8
- enumerable: true,
9
- get: function get() {
10
- return _Price.priceClasses;
11
- }
12
- });
13
- var _Price = /*#__PURE__*/require("../../../../components/Price");
14
- var _engines = /*#__PURE__*/require("../../../../engines");
15
- var _Price2 = /*#__PURE__*/require("./Price.config");
16
- var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Price.priceConfig, _Price2.config);
17
- var Price = exports.Price = /*#__PURE__*/(0, _engines.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', 'inr'];
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,17 +0,0 @@
1
- import _styled from "@emotion/styled/base";
2
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
3
- import { css } from '@emotion/react';
4
- import { classes } from './Price.tokens';
5
- export var base = /*#__PURE__*/css("&.", /*#__PURE__*/String(classes.stroked), "{text-decoration:line-through;};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUHJpY2UvUHJpY2Uuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUt1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1ByaWNlL1ByaWNlLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgY2xhc3NlcyB9IGZyb20gJy4vUHJpY2UudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgJi4ke1N0cmluZyhjbGFzc2VzLnN0cm9rZWQpfSB7XG4gICAgICAgIHRleHQtZGVjb3JhdGlvbjogbGluZS10aHJvdWdoO1xuICAgIH1cbmA7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRQZXJpb2RpY2l0eSA9IHN0eWxlZC5zcGFuYFxuICAgIHBhZGRpbmctbGVmdDogMC4yNXJlbTtcbmA7XG4iXX0= */"));
6
- export var StyledPeriodicity = /*#__PURE__*/_styled("span", {
7
- target: "eklg8nc0",
8
- label: "plasma-new-hope__StyledPeriodicity"
9
- })(process.env.NODE_ENV === "production" ? {
10
- name: "dw047z",
11
- styles: "padding-left:0.25rem"
12
- } : {
13
- name: "dw047z",
14
- styles: "padding-left:0.25rem",
15
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUHJpY2UvUHJpY2Uuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVc0QyIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1ByaWNlL1ByaWNlLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgY2xhc3NlcyB9IGZyb20gJy4vUHJpY2UudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgJi4ke1N0cmluZyhjbGFzc2VzLnN0cm9rZWQpfSB7XG4gICAgICAgIHRleHQtZGVjb3JhdGlvbjogbGluZS10aHJvdWdoO1xuICAgIH1cbmA7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRQZXJpb2RpY2l0eSA9IHN0eWxlZC5zcGFuYFxuICAgIHBhZGRpbmctbGVmdDogMC4yNXJlbTtcbmA7XG4iXX0= */",
16
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
17
- });
@@ -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,3 +0,0 @@
1
- export var classes = {
2
- stroked: 'stroked'
3
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- export { priceRoot, priceConfig } from './Price';
2
- export { classes as priceClasses } from './Price.tokens';
@@ -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,2 +0,0 @@
1
- import { css } from '@emotion/react';
2
- export var base = /*#__PURE__*/css(";label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUHJpY2UvdmFyaWF0aW9ucy9fdmlldy9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUV1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1ByaWNlL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgYDtcbiJdfQ== */"));
@@ -1,8 +0,0 @@
1
- export var config = {
2
- defaults: {
3
- view: 'default'
4
- },
5
- variations: {
6
- view: {}
7
- }
8
- };
@@ -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', 'inr'];
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,8 +0,0 @@
1
- export var config = {
2
- defaults: {
3
- view: 'default'
4
- },
5
- variations: {
6
- view: {}
7
- }
8
- };
@@ -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', 'inr'];
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,2 +0,0 @@
1
- .Price_styles_15b4mp1_bvvzdh4__4d09fd16.Price_styles_15b4mp1_stroked__4d09fd16{-webkit-text-decoration:line-through;text-decoration:line-through;}
2
- .Price_styles_15b4mp1_sqvsx17__4d09fd16{padding-left:0.25rem;}
@@ -1,60 +0,0 @@
1
- import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React, { forwardRef } from 'react';
3
- import { cx } from '../../utils/index.js';
4
- import { formatCurrency } from './utils/formatCurrency.js';
5
- import { StyledPeriodicity, base } from './Price.styles.js';
6
- import { base as base$1 } from './variations/_view/base.js';
7
- import { classes } from './Price.tokens.js';
8
-
9
- var _excluded = ["children", "locale", "currency", "minimumFractionDigits", "stroked", "periodicity", "view", "className", "stroke"];
10
-
11
- /**
12
- * Компонент для отображения цены / стоимости / суммы.
13
- */
14
- var priceRoot = function priceRoot(Root) {
15
- return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
16
- var children = _ref.children,
17
- _ref$locale = _ref.locale,
18
- locale = _ref$locale === void 0 ? 'ru' : _ref$locale,
19
- _ref$currency = _ref.currency,
20
- currency = _ref$currency === void 0 ? 'rub' : _ref$currency,
21
- _ref$minimumFractionD = _ref.minimumFractionDigits,
22
- minimumFractionDigits = _ref$minimumFractionD === void 0 ? 0 : _ref$minimumFractionD,
23
- _ref$stroked = _ref.stroked,
24
- stroked = _ref$stroked === void 0 ? false : _ref$stroked,
25
- periodicity = _ref.periodicity,
26
- view = _ref.view,
27
- className = _ref.className,
28
- _ref$stroke = _ref.stroke,
29
- stroke = _ref$stroke === void 0 ? false : _ref$stroke,
30
- rest = _objectWithoutProperties(_ref, _excluded);
31
- var strokedClass = stroked || stroke ? classes.stroked : undefined;
32
- return /*#__PURE__*/React.createElement(Root, _extends({
33
- view: view,
34
- ref: outerRootRef,
35
- className: cx(strokedClass, className)
36
- }, rest), formatCurrency({
37
- value: children,
38
- locale: locale,
39
- currency: currency,
40
- minimumFractionDigits: minimumFractionDigits
41
- }), periodicity && /*#__PURE__*/React.createElement(StyledPeriodicity, null, periodicity));
42
- });
43
- };
44
- var priceConfig = {
45
- name: 'Price',
46
- tag: 'span',
47
- layout: priceRoot,
48
- base: base,
49
- variations: {
50
- view: {
51
- css: base$1
52
- }
53
- },
54
- defaults: {
55
- view: 'default'
56
- }
57
- };
58
-
59
- export { priceConfig, priceRoot };
60
- //# sourceMappingURL=Price.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Price.js","sources":["../../../src/components/Price/Price.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { RootProps } from '../../engines';\nimport { cx } from '../../utils';\n\nimport { formatCurrency } from './utils/formatCurrency';\nimport { PriceProps } from './Price.types';\nimport { base, StyledPeriodicity } from './Price.styles';\nimport { base as viewCSS } from './variations/_view/base';\nimport { classes } from './Price.tokens';\n\n/**\n * Компонент для отображения цены / стоимости / суммы.\n */\nexport const priceRoot = (Root: RootProps<HTMLSpanElement, Omit<PriceProps, 'children'>>) =>\n forwardRef<HTMLSpanElement, PriceProps>(\n (\n {\n children,\n locale = 'ru',\n currency = 'rub',\n minimumFractionDigits = 0,\n stroked = false,\n periodicity,\n view,\n className,\n stroke = false,\n ...rest\n },\n outerRootRef,\n ) => {\n const strokedClass = stroked || stroke ? classes.stroked : undefined;\n\n return (\n <Root view={view} ref={outerRootRef} className={cx(strokedClass, className)} {...rest}>\n {formatCurrency({ value: children, locale, currency, minimumFractionDigits })}\n {periodicity && <StyledPeriodicity>{periodicity}</StyledPeriodicity>}\n </Root>\n );\n },\n );\n\nexport const priceConfig = {\n name: 'Price',\n tag: 'span',\n layout: priceRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n },\n defaults: {\n view: 'default',\n },\n};\n"],"names":["priceRoot","Root","forwardRef","_ref","outerRootRef","children","_ref$locale","locale","_ref$currency","currency","_ref$minimumFractionD","minimumFractionDigits","_ref$stroked","stroked","periodicity","view","className","_ref$stroke","stroke","rest","_objectWithoutProperties","_excluded","strokedClass","classes","undefined","React","createElement","_extends","ref","cx","formatCurrency","value","StyledPeriodicity","priceConfig","name","tag","layout","base","variations","css","viewCSS","defaults"],"mappings":";;;;;;;;;;AAWA;AACA;AACA;IACaA,SAAS,GAAG,SAAZA,SAASA,CAAIC,IAA8D,EAAA;AAAA,EAAA,oBACpFC,UAAU,CACN,UAAAC,IAAA,EAaIC,YAAY,EACX;AAAA,IAAA,IAZGC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;MAAAC,WAAA,GAAAH,IAAA,CACRI,MAAM;AAANA,MAAAA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,WAAA;MAAAE,aAAA,GAAAL,IAAA,CACbM,QAAQ;AAARA,MAAAA,QAAQ,GAAAD,aAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,aAAA;MAAAE,qBAAA,GAAAP,IAAA,CAChBQ,qBAAqB;AAArBA,MAAAA,qBAAqB,GAAAD,qBAAA,KAAG,KAAA,CAAA,GAAA,CAAC,GAAAA,qBAAA;MAAAE,YAAA,GAAAT,IAAA,CACzBU,OAAO;AAAPA,MAAAA,OAAO,GAAAD,YAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,YAAA;MACfE,WAAW,GAAAX,IAAA,CAAXW,WAAW;MACXC,IAAI,GAAAZ,IAAA,CAAJY,IAAI;MACJC,SAAS,GAAAb,IAAA,CAATa,SAAS;MAAAC,WAAA,GAAAd,IAAA,CACTe,MAAM;AAANA,MAAAA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,WAAA;AACXE,MAAAA,IAAI,GAAAC,wBAAA,CAAAjB,IAAA,EAAAkB,SAAA,CAAA,CAAA;IAIX,IAAMC,YAAY,GAAGT,OAAO,IAAIK,MAAM,GAAGK,OAAO,CAACV,OAAO,GAAGW,SAAS,CAAA;AAEpE,IAAA,oBACIC,KAAA,CAAAC,aAAA,CAACzB,IAAI,EAAA0B,QAAA,CAAA;AAACZ,MAAAA,IAAI,EAAEA,IAAK;AAACa,MAAAA,GAAG,EAAExB,YAAa;AAACY,MAAAA,SAAS,EAAEa,EAAE,CAACP,YAAY,EAAEN,SAAS,CAAA;KAAOG,EAAAA,IAAI,CAChFW,EAAAA,cAAc,CAAC;AAAEC,MAAAA,KAAK,EAAE1B,QAAQ;AAAEE,MAAAA,MAAM,EAANA,MAAM;AAAEE,MAAAA,QAAQ,EAARA,QAAQ;AAAEE,MAAAA,qBAAqB,EAArBA,qBAAAA;AAAsB,KAAC,CAAC,EAC5EG,WAAW,iBAAIW,KAAA,CAAAC,aAAA,CAACM,iBAAiB,EAAA,IAAA,EAAElB,WAA+B,CACjE,CAAC,CAAA;AAEf,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAMmB,WAAW,GAAG;AACvBC,EAAAA,IAAI,EAAE,OAAO;AACbC,EAAAA,GAAG,EAAE,MAAM;AACXC,EAAAA,MAAM,EAAEpC,SAAS;AACjBqC,EAAAA,IAAI,EAAJA,IAAI;AACJC,EAAAA,UAAU,EAAE;AACRvB,IAAAA,IAAI,EAAE;AACFwB,MAAAA,GAAG,EAAEC,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACN1B,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;"}
@@ -1,12 +0,0 @@
1
- import './Price.styles_15b4mp1.css';
2
- import { styled } from '@linaria/react';
3
-
4
- var base = "bvvzdh4";
5
- var StyledPeriodicity = /*#__PURE__*/styled('span')({
6
- name: "StyledPeriodicity",
7
- "class": "sqvsx17",
8
- propsAsIs: false
9
- });
10
-
11
- export { StyledPeriodicity, base };
12
- //# sourceMappingURL=Price.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Price.styles.js","sources":["../../../src/components/Price/Price.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { css } from '@linaria/core';\n\nimport { classes } from './Price.tokens';\n\nexport const base = css`\n &.${String(classes.stroked)} {\n text-decoration: line-through;\n }\n`;\n\nexport const StyledPeriodicity = styled.span`\n padding-left: 0.25rem;\n`;\n"],"names":["base","StyledPeriodicity","styled","name","class","propsAsIs"],"mappings":";;AAKO,IAAMA,IAAI,GAIhB,UAAA;AAEM,IAAMC,iBAAiB,gBAAGC,MAAM,CAAA,MAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,mBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAEtC;;;;"}
@@ -1,2 +0,0 @@
1
- .bvvzdh4.stroked{-webkit-text-decoration:line-through;text-decoration:line-through;}
2
- .sqvsx17{padding-left:0.25rem;}
@@ -1,6 +0,0 @@
1
- var classes = {
2
- stroked: 'stroked'
3
- };
4
-
5
- export { classes };
6
- //# sourceMappingURL=Price.tokens.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Price.tokens.js","sources":["../../../src/components/Price/Price.tokens.ts"],"sourcesContent":["export const classes = {\n stroked: 'stroked',\n};\n"],"names":["classes","stroked"],"mappings":"AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,OAAO,EAAE,SAAA;AACb;;;;"}
@@ -1,18 +0,0 @@
1
- /**
2
- * Форматирование числа в цену.
3
- */
4
- 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
- };
16
-
17
- export { formatCurrency };
18
- //# sourceMappingURL=formatCurrency.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatCurrency.js","sources":["../../../../src/components/Price/utils/formatCurrency.ts"],"sourcesContent":["/**\n * Форматирование числа в цену.\n */\nexport const formatCurrency = ({\n value,\n locale,\n currency,\n minimumFractionDigits,\n}: {\n value: number;\n locale: string;\n currency: string;\n minimumFractionDigits: number;\n}): string => {\n const formatter = new Intl.NumberFormat(locale, {\n style: 'currency',\n currency,\n minimumFractionDigits,\n });\n\n return formatter.format(value);\n};\n"],"names":["formatCurrency","_ref","value","locale","currency","minimumFractionDigits","formatter","Intl","NumberFormat","style","format"],"mappings":"AAAA;AACA;AACA;IACaA,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAUb;AAAA,EAAA,IATVC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,MAAM,GAAAF,IAAA,CAANE,MAAM;IACNC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IACRC,qBAAqB,GAAAJ,IAAA,CAArBI,qBAAqB,CAAA;EAOrB,IAAMC,SAAS,GAAG,IAAIC,IAAI,CAACC,YAAY,CAACL,MAAM,EAAE;AAC5CM,IAAAA,KAAK,EAAE,UAAU;AACjBL,IAAAA,QAAQ,EAARA,QAAQ;AACRC,IAAAA,qBAAqB,EAArBA,qBAAAA;AACJ,GAAC,CAAC,CAAA;AAEF,EAAA,OAAOC,SAAS,CAACI,MAAM,CAACR,KAAK,CAAC,CAAA;AAClC;;;;"}
@@ -1,5 +0,0 @@
1
- import './base_x642ct.css';
2
- var base = "bw57nfe";
3
-
4
- export { base };
5
- //# sourceMappingURL=base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/Price/variations/_view/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nexport const base = css``;\n"],"names":["base"],"mappings":"AAEO,IAAMA,IAAI,GAAQ;;;;"}