@salutejs/plasma-new-hope 0.197.0-canary.1588.11972699441.0 → 0.197.0-dev.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (210) hide show
  1. package/cjs/components/Calendar/CalendarBase/CalendarBase.js +1 -1
  2. package/cjs/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  3. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
  4. package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  5. package/cjs/components/Calendar/store/reducer.js +2 -2
  6. package/cjs/components/Calendar/store/reducer.js.map +1 -1
  7. package/cjs/components/Typography/Body/Body.css +1 -1
  8. package/cjs/components/Typography/Old/Button/Button.css +1 -1
  9. package/cjs/components/Typography/Old/Paragraph/Paragraph.css +1 -1
  10. package/cjs/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
  11. package/cjs/components/Typography/Old/Paragraph/Paragraph.styles.js.map +1 -1
  12. package/cjs/components/Typography/Old/Paragraph/{Paragraph.styles_f6q9s8.css → Paragraph.styles_179bahu.css} +1 -1
  13. package/cjs/components/Typography/Old/Subtitle/Subtitle.css +1 -1
  14. package/cjs/components/Typography/Old/Subtitle/Subtitle.js +1 -7
  15. package/cjs/components/Typography/Old/Subtitle/Subtitle.js.map +1 -1
  16. package/cjs/components/Typography/Old/Subtitle/Subtitle.styles.js +1 -1
  17. package/cjs/components/Typography/Old/Subtitle/Subtitle.styles.js.map +1 -1
  18. package/{es/components/Typography/Old/Subtitle/Subtitle.styles_g6d0r2.css → cjs/components/Typography/Old/Subtitle/Subtitle.styles_1plleej.css} +1 -1
  19. package/cjs/components/Typography/Old/TypographyOld.js +2 -4
  20. package/cjs/components/Typography/Old/TypographyOld.js.map +1 -1
  21. package/cjs/components/Typography/Old/TypographyOld.styles.js +1 -1
  22. package/cjs/components/Typography/Old/TypographyOld.styles.js.map +1 -1
  23. package/cjs/components/Typography/Old/{TypographyOld.styles_168abbx.css → TypographyOld.styles_17w0rtq.css} +1 -1
  24. package/cjs/components/Typography/Old/Underline/Underline.css +1 -1
  25. package/cjs/components/Typography/Old/Underline/Underline.styles.js +1 -1
  26. package/cjs/components/Typography/Old/Underline/Underline.styles.js.map +1 -1
  27. package/{es/components/Typography/Old/Underline/Underline.styles_1x2vb5e.css → cjs/components/Typography/Old/Underline/Underline.styles_vsz834.css} +1 -1
  28. package/cjs/components/Typography/Typography.js +2 -4
  29. package/cjs/components/Typography/Typography.js.map +1 -1
  30. package/cjs/components/Typography/Typography.styles.js +1 -1
  31. package/cjs/components/Typography/Typography.styles.js.map +1 -1
  32. package/cjs/components/Typography/{Typography.styles_fa07dt.css → Typography.styles_6mr47g.css} +1 -1
  33. package/cjs/components/Typography/tokens.js +0 -1
  34. package/cjs/components/Typography/tokens.js.map +1 -1
  35. package/cjs/index.css +5 -5
  36. package/emotion/cjs/components/Calendar/CalendarBase/CalendarBase.js +1 -1
  37. package/emotion/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
  38. package/emotion/cjs/components/Calendar/store/reducer.js +2 -2
  39. package/emotion/cjs/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
  40. package/emotion/cjs/components/Typography/Old/Subtitle/Subtitle.js +1 -7
  41. package/emotion/cjs/components/Typography/Old/Subtitle/Subtitle.styles.js +1 -1
  42. package/emotion/cjs/components/Typography/Old/TypographyOld.js +2 -4
  43. package/emotion/cjs/components/Typography/Old/TypographyOld.styles.js +1 -1
  44. package/emotion/cjs/components/Typography/Old/Underline/Underline.styles.js +1 -1
  45. package/emotion/cjs/components/Typography/Typography.js +2 -4
  46. package/emotion/cjs/components/Typography/Typography.styles.js +1 -1
  47. package/emotion/cjs/components/Typography/Typography.template-doc.mdx +0 -4
  48. package/emotion/cjs/components/Typography/tokens.js +0 -1
  49. package/emotion/cjs/examples/typograpy/components/Body/Body.stories.tsx +1 -9
  50. package/emotion/cjs/examples/typograpy/components/Dspl/Dspl.stories.tsx +1 -9
  51. package/emotion/cjs/examples/typograpy/components/Heading/Heading.stories.tsx +1 -9
  52. package/emotion/cjs/examples/typograpy/components/Old/Body/Body.stories.tsx +1 -9
  53. package/emotion/cjs/examples/typograpy/components/Old/Button/Button.stories.tsx +1 -9
  54. package/emotion/cjs/examples/typograpy/components/Old/Caption/Caption.stories.tsx +1 -9
  55. package/emotion/cjs/examples/typograpy/components/Old/Display/Display.stories.tsx +1 -9
  56. package/emotion/cjs/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +1 -9
  57. package/emotion/cjs/examples/typograpy/components/Old/Headline/Headline.stories.tsx +1 -9
  58. package/emotion/cjs/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +1 -9
  59. package/emotion/cjs/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +1 -11
  60. package/emotion/cjs/examples/typograpy/components/Old/Underline/Underline.stories.tsx +1 -9
  61. package/emotion/cjs/examples/typograpy/components/Text/Text.stories.tsx +1 -9
  62. package/emotion/es/components/Calendar/CalendarBase/CalendarBase.js +1 -1
  63. package/emotion/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
  64. package/emotion/es/components/Calendar/store/reducer.js +2 -2
  65. package/emotion/es/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
  66. package/emotion/es/components/Typography/Old/Subtitle/Subtitle.js +1 -7
  67. package/emotion/es/components/Typography/Old/Subtitle/Subtitle.styles.js +2 -2
  68. package/emotion/es/components/Typography/Old/TypographyOld.js +2 -4
  69. package/emotion/es/components/Typography/Old/TypographyOld.styles.js +1 -1
  70. package/emotion/es/components/Typography/Old/Underline/Underline.styles.js +1 -1
  71. package/emotion/es/components/Typography/Typography.js +2 -4
  72. package/emotion/es/components/Typography/Typography.styles.js +1 -1
  73. package/emotion/es/components/Typography/Typography.template-doc.mdx +0 -4
  74. package/emotion/es/components/Typography/tokens.js +0 -1
  75. package/emotion/es/examples/typograpy/components/Body/Body.stories.tsx +1 -9
  76. package/emotion/es/examples/typograpy/components/Dspl/Dspl.stories.tsx +1 -9
  77. package/emotion/es/examples/typograpy/components/Heading/Heading.stories.tsx +1 -9
  78. package/emotion/es/examples/typograpy/components/Old/Body/Body.stories.tsx +1 -9
  79. package/emotion/es/examples/typograpy/components/Old/Button/Button.stories.tsx +1 -9
  80. package/emotion/es/examples/typograpy/components/Old/Caption/Caption.stories.tsx +1 -9
  81. package/emotion/es/examples/typograpy/components/Old/Display/Display.stories.tsx +1 -9
  82. package/emotion/es/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +1 -9
  83. package/emotion/es/examples/typograpy/components/Old/Headline/Headline.stories.tsx +1 -9
  84. package/emotion/es/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +1 -9
  85. package/emotion/es/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +1 -11
  86. package/emotion/es/examples/typograpy/components/Old/Underline/Underline.stories.tsx +1 -9
  87. package/emotion/es/examples/typograpy/components/Text/Text.stories.tsx +1 -9
  88. package/es/components/Calendar/CalendarBase/CalendarBase.js +1 -1
  89. package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
  90. package/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
  91. package/es/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
  92. package/es/components/Calendar/store/reducer.js +2 -2
  93. package/es/components/Calendar/store/reducer.js.map +1 -1
  94. package/es/components/Typography/Body/Body.css +1 -1
  95. package/es/components/Typography/Old/Button/Button.css +1 -1
  96. package/es/components/Typography/Old/Paragraph/Paragraph.css +1 -1
  97. package/es/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
  98. package/es/components/Typography/Old/Paragraph/Paragraph.styles.js.map +1 -1
  99. package/es/components/Typography/Old/Paragraph/{Paragraph.styles_f6q9s8.css → Paragraph.styles_179bahu.css} +1 -1
  100. package/es/components/Typography/Old/Subtitle/Subtitle.css +1 -1
  101. package/es/components/Typography/Old/Subtitle/Subtitle.js +1 -7
  102. package/es/components/Typography/Old/Subtitle/Subtitle.js.map +1 -1
  103. package/es/components/Typography/Old/Subtitle/Subtitle.styles.js +1 -1
  104. package/es/components/Typography/Old/Subtitle/Subtitle.styles.js.map +1 -1
  105. package/{cjs/components/Typography/Old/Subtitle/Subtitle.styles_g6d0r2.css → es/components/Typography/Old/Subtitle/Subtitle.styles_1plleej.css} +1 -1
  106. package/es/components/Typography/Old/TypographyOld.js +2 -4
  107. package/es/components/Typography/Old/TypographyOld.js.map +1 -1
  108. package/es/components/Typography/Old/TypographyOld.styles.js +1 -1
  109. package/es/components/Typography/Old/TypographyOld.styles.js.map +1 -1
  110. package/es/components/Typography/Old/{TypographyOld.styles_168abbx.css → TypographyOld.styles_17w0rtq.css} +1 -1
  111. package/es/components/Typography/Old/Underline/Underline.css +1 -1
  112. package/es/components/Typography/Old/Underline/Underline.styles.js +1 -1
  113. package/es/components/Typography/Old/Underline/Underline.styles.js.map +1 -1
  114. package/{cjs/components/Typography/Old/Underline/Underline.styles_1x2vb5e.css → es/components/Typography/Old/Underline/Underline.styles_vsz834.css} +1 -1
  115. package/es/components/Typography/Typography.js +2 -4
  116. package/es/components/Typography/Typography.js.map +1 -1
  117. package/es/components/Typography/Typography.styles.js +1 -1
  118. package/es/components/Typography/Typography.styles.js.map +1 -1
  119. package/es/components/Typography/{Typography.styles_fa07dt.css → Typography.styles_6mr47g.css} +1 -1
  120. package/es/components/Typography/tokens.js +0 -1
  121. package/es/components/Typography/tokens.js.map +1 -1
  122. package/es/index.css +5 -5
  123. package/package.json +2 -2
  124. package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +1 -1
  125. package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
  126. package/styled-components/cjs/components/Calendar/store/reducer.js +2 -2
  127. package/styled-components/cjs/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
  128. package/styled-components/cjs/components/Typography/Old/Subtitle/Subtitle.js +1 -7
  129. package/styled-components/cjs/components/Typography/Old/Subtitle/Subtitle.styles.js +1 -1
  130. package/styled-components/cjs/components/Typography/Old/TypographyOld.js +2 -4
  131. package/styled-components/cjs/components/Typography/Old/TypographyOld.styles.js +1 -1
  132. package/styled-components/cjs/components/Typography/Old/Underline/Underline.styles.js +1 -1
  133. package/styled-components/cjs/components/Typography/Typography.js +2 -4
  134. package/styled-components/cjs/components/Typography/Typography.styles.js +1 -1
  135. package/styled-components/cjs/components/Typography/Typography.template-doc.mdx +0 -4
  136. package/styled-components/cjs/components/Typography/tokens.js +0 -1
  137. package/styled-components/cjs/examples/typograpy/components/Body/Body.stories.tsx +1 -9
  138. package/styled-components/cjs/examples/typograpy/components/Dspl/Dspl.stories.tsx +1 -9
  139. package/styled-components/cjs/examples/typograpy/components/Heading/Heading.stories.tsx +1 -9
  140. package/styled-components/cjs/examples/typograpy/components/Old/Body/Body.stories.tsx +1 -9
  141. package/styled-components/cjs/examples/typograpy/components/Old/Button/Button.stories.tsx +1 -9
  142. package/styled-components/cjs/examples/typograpy/components/Old/Caption/Caption.stories.tsx +1 -9
  143. package/styled-components/cjs/examples/typograpy/components/Old/Display/Display.stories.tsx +1 -9
  144. package/styled-components/cjs/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +1 -9
  145. package/styled-components/cjs/examples/typograpy/components/Old/Headline/Headline.stories.tsx +1 -9
  146. package/styled-components/cjs/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +1 -9
  147. package/styled-components/cjs/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +1 -11
  148. package/styled-components/cjs/examples/typograpy/components/Old/Underline/Underline.stories.tsx +1 -9
  149. package/styled-components/cjs/examples/typograpy/components/Text/Text.stories.tsx +1 -9
  150. package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +1 -1
  151. package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
  152. package/styled-components/es/components/Calendar/store/reducer.js +2 -2
  153. package/styled-components/es/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
  154. package/styled-components/es/components/Typography/Old/Subtitle/Subtitle.js +1 -7
  155. package/styled-components/es/components/Typography/Old/Subtitle/Subtitle.styles.js +2 -2
  156. package/styled-components/es/components/Typography/Old/TypographyOld.js +2 -4
  157. package/styled-components/es/components/Typography/Old/TypographyOld.styles.js +1 -1
  158. package/styled-components/es/components/Typography/Old/Underline/Underline.styles.js +1 -1
  159. package/styled-components/es/components/Typography/Typography.js +2 -4
  160. package/styled-components/es/components/Typography/Typography.styles.js +1 -1
  161. package/styled-components/es/components/Typography/Typography.template-doc.mdx +0 -4
  162. package/styled-components/es/components/Typography/tokens.js +0 -1
  163. package/styled-components/es/examples/typograpy/components/Body/Body.stories.tsx +1 -9
  164. package/styled-components/es/examples/typograpy/components/Dspl/Dspl.stories.tsx +1 -9
  165. package/styled-components/es/examples/typograpy/components/Heading/Heading.stories.tsx +1 -9
  166. package/styled-components/es/examples/typograpy/components/Old/Body/Body.stories.tsx +1 -9
  167. package/styled-components/es/examples/typograpy/components/Old/Button/Button.stories.tsx +1 -9
  168. package/styled-components/es/examples/typograpy/components/Old/Caption/Caption.stories.tsx +1 -9
  169. package/styled-components/es/examples/typograpy/components/Old/Display/Display.stories.tsx +1 -9
  170. package/styled-components/es/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +1 -9
  171. package/styled-components/es/examples/typograpy/components/Old/Headline/Headline.stories.tsx +1 -9
  172. package/styled-components/es/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +1 -9
  173. package/styled-components/es/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +1 -11
  174. package/styled-components/es/examples/typograpy/components/Old/Underline/Underline.stories.tsx +1 -9
  175. package/styled-components/es/examples/typograpy/components/Text/Text.stories.tsx +1 -9
  176. package/types/components/Calendar/store/reducer.d.ts +1 -1
  177. package/types/components/Calendar/store/reducer.d.ts.map +1 -1
  178. package/types/components/Typography/Body/Body.d.ts +0 -2
  179. package/types/components/Typography/Body/Body.d.ts.map +1 -1
  180. package/types/components/Typography/Dspl/Dspl.d.ts +0 -2
  181. package/types/components/Typography/Dspl/Dspl.d.ts.map +1 -1
  182. package/types/components/Typography/Heading/Heading.d.ts +0 -2
  183. package/types/components/Typography/Heading/Heading.d.ts.map +1 -1
  184. package/types/components/Typography/Old/Paragraph/Paragraph.styles.d.ts.map +1 -1
  185. package/types/components/Typography/Old/Subtitle/Subtitle.d.ts.map +1 -1
  186. package/types/components/Typography/Old/Subtitle/Subtitle.styles.d.ts.map +1 -1
  187. package/types/components/Typography/Old/TypographyOld.d.ts.map +1 -1
  188. package/types/components/Typography/Old/TypographyOld.styles.d.ts.map +1 -1
  189. package/types/components/Typography/Old/Underline/Underline.styles.d.ts.map +1 -1
  190. package/types/components/Typography/Text/Text.d.ts +0 -2
  191. package/types/components/Typography/Text/Text.d.ts.map +1 -1
  192. package/types/components/Typography/Typography.d.ts +0 -1
  193. package/types/components/Typography/Typography.d.ts.map +1 -1
  194. package/types/components/Typography/Typography.styles.d.ts.map +1 -1
  195. package/types/components/Typography/Typography.types.d.ts +0 -1
  196. package/types/components/Typography/Typography.types.d.ts.map +1 -1
  197. package/types/components/Typography/tokens.d.ts +0 -1
  198. package/types/components/Typography/tokens.d.ts.map +1 -1
  199. package/types/examples/plasma_b2c/components/Editable/Editable.d.ts +0 -4
  200. package/types/examples/plasma_b2c/components/Editable/Editable.d.ts.map +1 -1
  201. package/types/examples/plasma_web/components/Editable/Editable.d.ts +0 -4
  202. package/types/examples/plasma_web/components/Editable/Editable.d.ts.map +1 -1
  203. package/types/examples/typograpy/components/Body/Body.d.ts +0 -1
  204. package/types/examples/typograpy/components/Body/Body.d.ts.map +1 -1
  205. package/types/examples/typograpy/components/Dspl/Dspl.d.ts +0 -1
  206. package/types/examples/typograpy/components/Dspl/Dspl.d.ts.map +1 -1
  207. package/types/examples/typograpy/components/Heading/Heading.d.ts +0 -1
  208. package/types/examples/typograpy/components/Heading/Heading.d.ts.map +1 -1
  209. package/types/examples/typograpy/components/Text/Text.d.ts +0 -1
  210. package/types/examples/typograpy/components/Text/Text.d.ts.map +1 -1
@@ -64,7 +64,7 @@ export var calendarDoubleRoot = function calendarDoubleRoot(Root) {
64
64
  _useState8 = _slicedToArray(_useState7, 2),
65
65
  outOfRangeKey = _useState8[0],
66
66
  setOutOfRangeKey = _useState8[1];
67
- var _useReducer = useReducer(reducer, getInitialState(value, type, true)),
67
+ var _useReducer = useReducer(reducer, getInitialState(value, min, type, true)),
68
68
  _useReducer2 = _slicedToArray(_useReducer, 2),
69
69
  state = _useReducer2[0],
70
70
  dispatch = _useReducer2[1];
@@ -30,8 +30,8 @@ export var sizeMap = {
30
30
  "double": [3, 1]
31
31
  }
32
32
  };
33
- export var getInitialState = function getInitialState(value, calendarState, isDouble) {
34
- var initDate = value || new Date();
33
+ export var getInitialState = function getInitialState(value, min, calendarState, isDouble) {
34
+ var initDate = value || min || new Date();
35
35
  var date = getDateFromValue(initDate);
36
36
  var resSize = isDouble ? sizeMap[calendarState]["double"] : sizeMap[calendarState].single;
37
37
  return {
@@ -1,4 +1,4 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { classes, tokens } from '../../tokens';
3
3
  import { applyHyphens, applyHyphensNormal } from '../../../../mixins';
4
- export var base = /*#__PURE__*/css("font-family:var(", tokens.typoFontFamily, ");font-size:var(", tokens.typoFontSize, ");font-style:var(", tokens.typoFontStyle, ");letter-spacing:var(", tokens.typoFontLetterSpacing, ");line-height:var(", tokens.typoFontLineHeight, ");font-weight:var(", tokens.typoFontWeight, ");margin:0;&.", classes.typoWithNoWrap, "{white-space:nowrap;}", applyHyphensNormal, ";&.", classes.typoWithBreakWord, "{", applyHyphens, ";};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVHlwb2dyYXBoeS9PbGQvUGFyYWdyYXBoL1BhcmFncmFwaC5zdHlsZXMudHMiX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lwaGVuc307XG4gICAgfVxuYDtcbiJdfQ== */"));
4
+ export var base = /*#__PURE__*/css("font-family:var(", tokens.typoFontFamily, ");font-size:var(", tokens.typoFontSize, ");font-style:var(", tokens.typoFontStyle, ");letter-spacing:var(", tokens.typoFontLetterSpacing, ");line-height:var(", tokens.typoFontLineHeight, ");font-weight:var(", tokens.typoFontWeight, ");margin:0;", /*#__PURE__*/String(applyHyphensNormal), ";&.", /*#__PURE__*/String(classes.typoWithBreakWord), "{", /*#__PURE__*/String(applyHyphens), ";};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVHlwb2dyYXBoeS9PbGQvUGFyYWdyYXBoL1BhcmFncmFwaC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS3VCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVHlwb2dyYXBoeS9PbGQvUGFyYWdyYXBoL1BhcmFncmFwaC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IGNsYXNzZXMsIHRva2VucyB9IGZyb20gJy4uLy4uL3Rva2Vucyc7XG5pbXBvcnQgeyBhcHBseUh5cGhlbnMsIGFwcGx5SHlwaGVuc05vcm1hbCB9IGZyb20gJy4uLy4uLy4uLy4uL21peGlucyc7XG5cbmV4cG9ydCBjb25zdCBiYXNlID0gY3NzYFxuICAgIGZvbnQtZmFtaWx5OiB2YXIoJHt0b2tlbnMudHlwb0ZvbnRGYW1pbHl9KTtcbiAgICBmb250LXNpemU6IHZhcigke3Rva2Vucy50eXBvRm9udFNpemV9KTtcbiAgICBmb250LXN0eWxlOiB2YXIoJHt0b2tlbnMudHlwb0ZvbnRTdHlsZX0pO1xuICAgIGxldHRlci1zcGFjaW5nOiB2YXIoJHt0b2tlbnMudHlwb0ZvbnRMZXR0ZXJTcGFjaW5nfSk7XG4gICAgbGluZS1oZWlnaHQ6IHZhcigke3Rva2Vucy50eXBvRm9udExpbmVIZWlnaHR9KTtcbiAgICBmb250LXdlaWdodDogdmFyKCR7dG9rZW5zLnR5cG9Gb250V2VpZ2h0fSk7XG4gICAgbWFyZ2luOiAwO1xuXG4gICAgJHtTdHJpbmcoYXBwbHlIeXBoZW5zTm9ybWFsKX07XG5cbiAgICAmLiR7U3RyaW5nKGNsYXNzZXMudHlwb1dpdGhCcmVha1dvcmQpfSB7XG4gICAgICAgICR7U3RyaW5nKGFwcGx5SHlwaGVucyl9O1xuICAgIH1cbmA7XG4iXX0= */"));
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["size", "children", "color", "noWrap", "className", "style"];
2
+ var _excluded = ["size", "children", "color", "style"];
3
3
  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); }
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -11,23 +11,17 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
11
11
  import React, { forwardRef } from 'react';
12
12
  import { applySpacing } from '../../../../mixins/applySpacing';
13
13
  import { base as sizeCSS } from '../../variations/_size/base';
14
- import { classes } from '../../tokens';
15
- import { cx } from '../../../../utils';
16
14
  import { base } from './Subtitle.styles';
17
15
  export var subtitleRoot = function subtitleRoot(Root) {
18
16
  return /*#__PURE__*/forwardRef(function (props, ref) {
19
17
  var size = props.size,
20
18
  children = props.children,
21
19
  color = props.color,
22
- noWrap = props.noWrap,
23
- className = props.className,
24
20
  style = props.style,
25
21
  rest = _objectWithoutProperties(props, _excluded);
26
- var withNoWrap = noWrap ? classes.typoWithNoWrap : undefined;
27
22
  return /*#__PURE__*/React.createElement(Root, _extends({
28
23
  size: size,
29
24
  ref: ref,
30
- className: cx(withNoWrap, className),
31
25
  style: _objectSpread(_objectSpread({
32
26
  color: color
33
27
  }, style), applySpacing(rest))
@@ -1,4 +1,4 @@
1
1
  import { css } from '@emotion/react';
2
- import { classes, tokens } from '../../tokens';
2
+ import { tokens } from '../../tokens';
3
3
  import { applyHyphens } from '../../../../mixins';
4
- export var base = /*#__PURE__*/css("font-family:var(", tokens.typoFontFamily, ");font-size:var(", tokens.typoFontSize, ");font-style:var(", tokens.typoFontStyle, ");letter-spacing:var(", tokens.typoFontLetterSpacing, ");line-height:var(", tokens.typoFontLineHeight, ");font-weight:var(", tokens.typoFontWeight, ");&.", classes.typoWithNoWrap, "{white-space:nowrap;}", applyHyphens, ";;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2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
4
+ export var base = /*#__PURE__*/css("font-family:var(", tokens.typoFontFamily, ");font-size:var(", tokens.typoFontSize, ");font-style:var(", tokens.typoFontStyle, ");letter-spacing:var(", tokens.typoFontLetterSpacing, ");line-height:var(", tokens.typoFontLineHeight, ");font-weight:var(", tokens.typoFontWeight, ");", /*#__PURE__*/String(applyHyphens), ";;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVHlwb2dyYXBoeS9PbGQvU3VidGl0bGUvU3VidGl0bGUuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUt1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1R5cG9ncmFwaHkvT2xkL1N1YnRpdGxlL1N1YnRpdGxlLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgdG9rZW5zIH0gZnJvbSAnLi4vLi4vdG9rZW5zJztcbmltcG9ydCB7IGFwcGx5SHlwaGVucyB9IGZyb20gJy4uLy4uLy4uLy4uL21peGlucyc7XG5cbmV4cG9ydCBjb25zdCBiYXNlID0gY3NzYFxuICAgIGZvbnQtZmFtaWx5OiB2YXIoJHt0b2tlbnMudHlwb0ZvbnRGYW1pbHl9KTtcbiAgICBmb250LXNpemU6IHZhcigke3Rva2Vucy50eXBvRm9udFNpemV9KTtcbiAgICBmb250LXN0eWxlOiB2YXIoJHt0b2tlbnMudHlwb0ZvbnRTdHlsZX0pO1xuICAgIGxldHRlci1zcGFjaW5nOiB2YXIoJHt0b2tlbnMudHlwb0ZvbnRMZXR0ZXJTcGFjaW5nfSk7XG4gICAgbGluZS1oZWlnaHQ6IHZhcigke3Rva2Vucy50eXBvRm9udExpbmVIZWlnaHR9KTtcbiAgICBmb250LXdlaWdodDogdmFyKCR7dG9rZW5zLnR5cG9Gb250V2VpZ2h0fSk7XG5cbiAgICAke1N0cmluZyhhcHBseUh5cGhlbnMpfTtcbmA7XG4iXX0= */"));
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["size", "children", "breakWord", "noWrap", "color", "className", "style"];
2
+ var _excluded = ["size", "children", "breakWord", "color", "className", "style"];
3
3
  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); }
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -17,17 +17,15 @@ export var typographyOldRoot = function typographyOldRoot(Root) {
17
17
  var size = props.size,
18
18
  children = props.children,
19
19
  breakWord = props.breakWord,
20
- noWrap = props.noWrap,
21
20
  color = props.color,
22
21
  className = props.className,
23
22
  style = props.style,
24
23
  rest = _objectWithoutProperties(props, _excluded);
25
- var withNoWrap = noWrap ? classes.typoWithNoWrap : undefined;
26
24
  var withBreakWord = breakWord ? classes.typoWithBreakWord : undefined;
27
25
  return /*#__PURE__*/React.createElement(Root, _extends({
28
26
  size: size,
29
27
  ref: ref,
30
- className: cx(withNoWrap, withBreakWord, className),
28
+ className: cx(withBreakWord, className),
31
29
  style: _objectSpread(_objectSpread({
32
30
  color: color
33
31
  }, style), applySpacing(rest))
@@ -1,4 +1,4 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { classes, tokens } from '../tokens';
3
3
  import { applyHyphens, applyHyphensNormal } from '../../../mixins';
4
- export var base = /*#__PURE__*/css("font-family:var(", tokens.typoFontFamily, ");font-size:var(", tokens.typoFontSize, ");font-style:var(", tokens.typoFontStyle, ");letter-spacing:var(", tokens.typoFontLetterSpacing, ");line-height:var(", tokens.typoFontLineHeight, ");font-weight:var(", tokens.typoFontWeight, ");&.", classes.typoWithNoWrap, "{white-space:nowrap;}", applyHyphensNormal, ";&.", classes.typoWithBreakWord, "{", applyHyphens, ";};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVHlwb2dyYXBoeS9PbGQvVHlwb2dyYXBoeU9sZC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS3VCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVHlwb2dyYXBoeS9PbGQvVHlwb2dyYXBoeU9sZC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IGNsYXNzZXMsIHRva2VucyB9IGZyb20gJy4uL3Rva2Vucyc7XG5pbXBvcnQgeyBhcHBseUh5cGhlbnMsIGFwcGx5SHlwaGVuc05vcm1hbCB9IGZyb20gJy4uLy4uLy4uL21peGlucyc7XG5cbmV4cG9ydCBjb25zdCBiYXNlID0gY3NzYFxuICAgIGZvbnQtZmFtaWx5OiB2YXIoJHt0b2tlbnMudHlwb0ZvbnRGYW1pbHl9KTtcbiAgICBmb250LXNpemU6IHZhcigke3Rva2Vucy50eXBvRm9udFNpemV9KTtcbiAgICBmb250LXN0eWxlOiB2YXIoJHt0b2tlbnMudHlwb0ZvbnRTdHlsZX0pO1xuICAgIGxldHRlci1zcGFjaW5nOiB2YXIoJHt0b2tlbnMudHlwb0ZvbnRMZXR0ZXJTcGFjaW5nfSk7XG4gICAgbGluZS1oZWlnaHQ6IHZhcigke3Rva2Vucy50eXBvRm9udExpbmVIZWlnaHR9KTtcbiAgICBmb250LXdlaWdodDogdmFyKCR7dG9rZW5zLnR5cG9Gb250V2VpZ2h0fSk7XG5cbiAgICAmLiR7Y2xhc3Nlcy50eXBvV2l0aE5vV3JhcH0ge1xuICAgICAgICB3aGl0ZS1zcGFjZTogbm93cmFwO1xuICAgIH1cblxuICAgICR7YXBwbHlIeXBoZW5zTm9ybWFsfTtcblxuICAgICYuJHtjbGFzc2VzLnR5cG9XaXRoQnJlYWtXb3JkfSB7XG4gICAgICAgICR7YXBwbHlIeXBoZW5zfTtcbiAgICB9XG5gO1xuIl19 */"));
4
+ export var base = /*#__PURE__*/css("font-family:var(", tokens.typoFontFamily, ");font-size:var(", tokens.typoFontSize, ");font-style:var(", tokens.typoFontStyle, ");letter-spacing:var(", tokens.typoFontLetterSpacing, ");line-height:var(", tokens.typoFontLineHeight, ");font-weight:var(", tokens.typoFontWeight, ");", /*#__PURE__*/String(applyHyphensNormal), ";&.", /*#__PURE__*/String(classes.typoWithBreakWord), "{", /*#__PURE__*/String(applyHyphens), ";};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVHlwb2dyYXBoeS9PbGQvVHlwb2dyYXBoeU9sZC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS3VCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVHlwb2dyYXBoeS9PbGQvVHlwb2dyYXBoeU9sZC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IGNsYXNzZXMsIHRva2VucyB9IGZyb20gJy4uL3Rva2Vucyc7XG5pbXBvcnQgeyBhcHBseUh5cGhlbnMsIGFwcGx5SHlwaGVuc05vcm1hbCB9IGZyb20gJy4uLy4uLy4uL21peGlucyc7XG5cbmV4cG9ydCBjb25zdCBiYXNlID0gY3NzYFxuICAgIGZvbnQtZmFtaWx5OiB2YXIoJHt0b2tlbnMudHlwb0ZvbnRGYW1pbHl9KTtcbiAgICBmb250LXNpemU6IHZhcigke3Rva2Vucy50eXBvRm9udFNpemV9KTtcbiAgICBmb250LXN0eWxlOiB2YXIoJHt0b2tlbnMudHlwb0ZvbnRTdHlsZX0pO1xuICAgIGxldHRlci1zcGFjaW5nOiB2YXIoJHt0b2tlbnMudHlwb0ZvbnRMZXR0ZXJTcGFjaW5nfSk7XG4gICAgbGluZS1oZWlnaHQ6IHZhcigke3Rva2Vucy50eXBvRm9udExpbmVIZWlnaHR9KTtcbiAgICBmb250LXdlaWdodDogdmFyKCR7dG9rZW5zLnR5cG9Gb250V2VpZ2h0fSk7XG5cbiAgICAke1N0cmluZyhhcHBseUh5cGhlbnNOb3JtYWwpfTtcblxuICAgICYuJHtTdHJpbmcoY2xhc3Nlcy50eXBvV2l0aEJyZWFrV29yZCl9IHtcbiAgICAgICAgJHtTdHJpbmcoYXBwbHlIeXBoZW5zKX07XG4gICAgfVxuYDtcbiJdfQ== */"));
@@ -1,4 +1,4 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { classes, tokens } from '../../tokens';
3
3
  import { applyHyphens, applyHyphensNormal } from '../../../../mixins';
4
- export var base = /*#__PURE__*/css("font-family:var(", tokens.typoFontFamily, ");font-size:var(", tokens.typoFontSize, ");font-style:var(", tokens.typoFontStyle, ");letter-spacing:var(", tokens.typoFontLetterSpacing, ");line-height:var(", tokens.typoFontLineHeight, ");font-weight:var(", tokens.typoFontWeight, ");text-transform:uppercase;&.", classes.typoWithNoWrap, "{white-space:nowrap;}", applyHyphensNormal, ";&.", classes.typoWithBreakWord, "{", applyHyphens, ";};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVHlwb2dyYXBoeS9PbGQvVW5kZXJsaW5lL1VuZGVybGluZS5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS3VCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVHlwb2dyYXBoeS9PbGQvVW5kZXJsaW5lL1VuZGVybGluZS5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IGNsYXNzZXMsIHRva2VucyB9IGZyb20gJy4uLy4uL3Rva2Vucyc7XG5pbXBvcnQgeyBhcHBseUh5cGhlbnMsIGFwcGx5SHlwaGVuc05vcm1hbCB9IGZyb20gJy4uLy4uLy4uLy4uL21peGlucyc7XG5cbmV4cG9ydCBjb25zdCBiYXNlID0gY3NzYFxuICAgIGZvbnQtZmFtaWx5OiB2YXIoJHt0b2tlbnMudHlwb0ZvbnRGYW1pbHl9KTtcbiAgICBmb250LXNpemU6IHZhcigke3Rva2Vucy50eXBvRm9udFNpemV9KTtcbiAgICBmb250LXN0eWxlOiB2YXIoJHt0b2tlbnMudHlwb0ZvbnRTdHlsZX0pO1xuICAgIGxldHRlci1zcGFjaW5nOiB2YXIoJHt0b2tlbnMudHlwb0ZvbnRMZXR0ZXJTcGFjaW5nfSk7XG4gICAgbGluZS1oZWlnaHQ6IHZhcigke3Rva2Vucy50eXBvRm9udExpbmVIZWlnaHR9KTtcbiAgICBmb250LXdlaWdodDogdmFyKCR7dG9rZW5zLnR5cG9Gb250V2VpZ2h0fSk7XG5cbiAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xuXG4gICAgJi4ke2NsYXNzZXMudHlwb1dpdGhOb1dyYXB9IHtcbiAgICAgICAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcbiAgICB9XG5cbiAgICAke2FwcGx5SHlwaGVuc05vcm1hbH07XG5cbiAgICAmLiR7Y2xhc3Nlcy50eXBvV2l0aEJyZWFrV29yZH0ge1xuICAgICAgICAke2FwcGx5SHlwaGVuc307XG4gICAgfVxuYDtcbiJdfQ== */"));
4
+ export var base = /*#__PURE__*/css("font-family:var(", tokens.typoFontFamily, ");font-size:var(", tokens.typoFontSize, ");font-style:var(", tokens.typoFontStyle, ");letter-spacing:var(", tokens.typoFontLetterSpacing, ");line-height:var(", tokens.typoFontLineHeight, ");font-weight:var(", tokens.typoFontWeight, ");text-transform:uppercase;", /*#__PURE__*/String(applyHyphensNormal), ";&.", /*#__PURE__*/String(classes.typoWithBreakWord), "{", /*#__PURE__*/String(applyHyphens), ";};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJza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KX07XG5cbiAgICAmLiR7U3RyaW5nKGNsYXNzZXMudHlwb1dpdGhCcmVha1dvcmQpfSB7XG4gICAgICAgICR7U3RyaW5nKGFwcGx5SHlwaGVucyl9O1xuICAgIH1cbmA7XG4iXX0= */"));
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["size", "children", "breakWord", "noWrap", "bold", "color", "className", "style"];
2
+ var _excluded = ["size", "children", "breakWord", "bold", "color", "className", "style"];
3
3
  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); }
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -18,20 +18,18 @@ export var typographyRootCompose = function typographyRootCompose(defaultArgs) {
18
18
  var size = props.size,
19
19
  children = props.children,
20
20
  breakWord = props.breakWord,
21
- noWrap = props.noWrap,
22
21
  _props$bold = props.bold,
23
22
  bold = _props$bold === void 0 ? defaultArgs === null || defaultArgs === void 0 ? void 0 : defaultArgs.defaultBold : _props$bold,
24
23
  color = props.color,
25
24
  className = props.className,
26
25
  style = props.style,
27
26
  rest = _objectWithoutProperties(props, _excluded);
28
- var withNoWrap = noWrap ? classes.typoWithNoWrap : undefined;
29
27
  var withBreakWord = breakWord ? classes.typoWithBreakWord : undefined;
30
28
  var typographyBold = bold ? classes.typoBold : undefined;
31
29
  return /*#__PURE__*/React.createElement(Root, _extends({
32
30
  size: size,
33
31
  ref: ref,
34
- className: cx(withNoWrap, withBreakWord, typographyBold, className),
32
+ className: cx(withBreakWord, typographyBold, className),
35
33
  style: _objectSpread(_objectSpread({
36
34
  color: color
37
35
  }, style), applySpacing(rest)),
@@ -1,4 +1,4 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { applyHyphens, applyHyphensNormal } from '../../mixins';
3
3
  import { classes, tokens } from './tokens';
4
- export var base = /*#__PURE__*/css("font-family:var(", tokens.typoFontFamily, ");font-size:var(", tokens.typoFontSize, ");font-style:var(", tokens.typoFontStyle, ");letter-spacing:var(", tokens.typoFontLetterSpacing, ");line-height:var(", tokens.typoFontLineHeight, ");font-weight:var(", tokens.typoFontWeight, ");&.", classes.typoBold, "{font-weight:var(", tokens.typoFontWeightBold, ");}&.", classes.typoWithNoWrap, "{white-space:nowrap;}", applyHyphensNormal, ";&.", classes.typoWithBreakWord, "{", applyHyphens, ";};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVHlwb2dyYXBoeS9UeXBvZ3JhcGh5LnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9UeXBvZ3JhcGh5L1R5cG9ncmFwaHkuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBhcHBseUh5cGhlbnMsIGFwcGx5SHlwaGVuc05vcm1hbCB9IGZyb20gJy4uLy4uL21peGlucyc7XG5cbmltcG9ydCB7IGNsYXNzZXMsIHRva2VucyB9IGZyb20gJy4vdG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgZm9udC1mYW1pbHk6IHZhcigke3Rva2Vucy50eXBvRm9udEZhbWlseX0pO1xuICAgIGZvbnQtc2l6ZTogdmFyKCR7dG9rZW5zLnR5cG9Gb250U2l6ZX0pO1xuICAgIGZvbnQtc3R5bGU6IHZhcigke3Rva2Vucy50eXBvRm9udFN0eWxlfSk7XG4gICAgbGV0dGVyLXNwYWNpbmc6IHZhcigke3Rva2Vucy50eXBvRm9udExldHRlclNwYWNpbmd9KTtcbiAgICBsaW5lLWhlaWdodDogdmFyKCR7dG9rZW5zLnR5cG9Gb250TGluZUhlaWdodH0pO1xuICAgIGZvbnQtd2VpZ2h0OiB2YXIoJHt0b2tlbnMudHlwb0ZvbnRXZWlnaHR9KTtcblxuICAgICYuJHtjbGFzc2VzLnR5cG9Cb2xkfSB7XG4gICAgICAgIGZvbnQtd2VpZ2h0OiB2YXIoJHt0b2tlbnMudHlwb0ZvbnRXZWlnaHRCb2xkfSk7XG4gICAgfVxuXG4gICAgJi4ke2NsYXNzZXMudHlwb1dpdGhOb1dyYXB9IHtcbiAgICAgICAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcbiAgICB9XG5cbiAgICAke2FwcGx5SHlwaGVuc05vcm1hbH07XG5cbiAgICAmLiR7Y2xhc3Nlcy50eXBvV2l0aEJyZWFrV29yZH0ge1xuICAgICAgICAke2FwcGx5SHlwaGVuc307XG4gICAgfVxuYDtcbiJdfQ== */"));
4
+ export var base = /*#__PURE__*/css("font-family:var(", tokens.typoFontFamily, ");font-size:var(", tokens.typoFontSize, ");font-style:var(", tokens.typoFontStyle, ");letter-spacing:var(", tokens.typoFontLetterSpacing, ");line-height:var(", tokens.typoFontLineHeight, ");font-weight:var(", tokens.typoFontWeight, ");&.", /*#__PURE__*/String(classes.typoBold), "{font-weight:var(", tokens.typoFontWeightBold, ");}", /*#__PURE__*/String(applyHyphensNormal), ";&.", /*#__PURE__*/String(classes.typoWithBreakWord), "{", /*#__PURE__*/String(applyHyphens), ";};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvVHlwb2dyYXBoeS9UeXBvZ3JhcGh5LnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9UeXBvZ3JhcGh5L1R5cG9ncmFwaHkuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBhcHBseUh5cGhlbnMsIGFwcGx5SHlwaGVuc05vcm1hbCB9IGZyb20gJy4uLy4uL21peGlucyc7XG5cbmltcG9ydCB7IGNsYXNzZXMsIHRva2VucyB9IGZyb20gJy4vdG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgZm9udC1mYW1pbHk6IHZhcigke3Rva2Vucy50eXBvRm9udEZhbWlseX0pO1xuICAgIGZvbnQtc2l6ZTogdmFyKCR7dG9rZW5zLnR5cG9Gb250U2l6ZX0pO1xuICAgIGZvbnQtc3R5bGU6IHZhcigke3Rva2Vucy50eXBvRm9udFN0eWxlfSk7XG4gICAgbGV0dGVyLXNwYWNpbmc6IHZhcigke3Rva2Vucy50eXBvRm9udExldHRlclNwYWNpbmd9KTtcbiAgICBsaW5lLWhlaWdodDogdmFyKCR7dG9rZW5zLnR5cG9Gb250TGluZUhlaWdodH0pO1xuICAgIGZvbnQtd2VpZ2h0OiB2YXIoJHt0b2tlbnMudHlwb0ZvbnRXZWlnaHR9KTtcblxuICAgICYuJHtTdHJpbmcoY2xhc3Nlcy50eXBvQm9sZCl9IHtcbiAgICAgICAgZm9udC13ZWlnaHQ6IHZhcigke3Rva2Vucy50eXBvRm9udFdlaWdodEJvbGR9KTtcbiAgICB9XG5cbiAgICAke1N0cmluZyhhcHBseUh5cGhlbnNOb3JtYWwpfTtcblxuICAgICYuJHtTdHJpbmcoY2xhc3Nlcy50eXBvV2l0aEJyZWFrV29yZCl9IHtcbiAgICAgICAgJHtTdHJpbmcoYXBwbHlIeXBoZW5zKX07XG4gICAgfVxuYDtcbiJdfQ== */"));
@@ -19,10 +19,6 @@ title: Typography
19
19
  По умолчанию в типографике слова переносятся по слогам.
20
20
  Чтобы отключить данный функционал, необходимо установить свойство `breakWord` в значении `false`.
21
21
 
22
- ## Пробелы
23
- По умолчанию в типографике если текст превышает ширину элемента, то слова будут переноситься по пробелам.
24
- Чтобы запретить перенос по пробелам, необходимо установить свойство `noWrap` в значении `true`.
25
-
26
22
  ## Состав
27
23
 
28
24
  ### Hero unit
@@ -1,5 +1,4 @@
1
1
  export var classes = {
2
- typoWithNoWrap: 'with-no-wrap',
3
2
  typoWithBreakWord: 'with-break-word',
4
3
  typoBold: 'typography-bold'
5
4
  };
@@ -12,16 +12,8 @@ const meta: Meta<typeof Body> = {
12
12
  title: 'typography/Body',
13
13
  decorators: [WithTheme],
14
14
  component: Body,
15
- argTypes: {
16
- ...argTypesFromConfig(mergeConfig(bodyConfig, config)),
17
- color: {
18
- control: {
19
- type: 'color',
20
- },
21
- },
22
- },
15
+ argTypes: argTypesFromConfig(mergeConfig(bodyConfig, config)),
23
16
  args: {
24
- noWrap: false,
25
17
  breakWord: true,
26
18
  bold: false,
27
19
  },
@@ -12,16 +12,8 @@ const meta: Meta<typeof Dspl> = {
12
12
  title: 'typography/Dspl',
13
13
  decorators: [WithTheme],
14
14
  component: Dspl,
15
- argTypes: {
16
- ...argTypesFromConfig(mergeConfig(dsplConfig, config)),
17
- color: {
18
- control: {
19
- type: 'color',
20
- },
21
- },
22
- },
15
+ argTypes: argTypesFromConfig(mergeConfig(dsplConfig, config)),
23
16
  args: {
24
- noWrap: false,
25
17
  breakWord: true,
26
18
  bold: false,
27
19
  },
@@ -12,16 +12,8 @@ const meta: Meta<typeof Heading> = {
12
12
  title: 'typography/Heading',
13
13
  decorators: [WithTheme],
14
14
  component: Heading,
15
- argTypes: {
16
- ...argTypesFromConfig(mergeConfig(dsplConfig, config)),
17
- color: {
18
- control: {
19
- type: 'color',
20
- },
21
- },
22
- },
15
+ argTypes: argTypesFromConfig(mergeConfig(dsplConfig, config)),
23
16
  args: {
24
- noWrap: false,
25
17
  breakWord: true,
26
18
  bold: false,
27
19
  },
@@ -12,16 +12,8 @@ const meta: Meta<typeof OldBody> = {
12
12
  title: 'typography/Old/Body',
13
13
  decorators: [WithTheme],
14
14
  component: OldBody,
15
- argTypes: {
16
- ...argTypesFromConfig(mergeConfig(oldBodyConfig, config)),
17
- color: {
18
- control: {
19
- type: 'color',
20
- },
21
- },
22
- },
15
+ argTypes: argTypesFromConfig(mergeConfig(oldBodyConfig, config)),
23
16
  args: {
24
- noWrap: false,
25
17
  breakWord: true,
26
18
  },
27
19
  };
@@ -12,16 +12,8 @@ const meta: Meta<typeof Button> = {
12
12
  title: 'typography/Old/Button',
13
13
  decorators: [WithTheme],
14
14
  component: Button,
15
- argTypes: {
16
- ...argTypesFromConfig(mergeConfig(buttonTypographyConfig, config)),
17
- color: {
18
- control: {
19
- type: 'color',
20
- },
21
- },
22
- },
15
+ argTypes: argTypesFromConfig(mergeConfig(buttonTypographyConfig, config)),
23
16
  args: {
24
- noWrap: false,
25
17
  breakWord: true,
26
18
  },
27
19
  };
@@ -12,16 +12,8 @@ const meta: Meta<typeof Caption> = {
12
12
  title: 'typography/Old/Caption',
13
13
  decorators: [WithTheme],
14
14
  component: Caption,
15
- argTypes: {
16
- ...argTypesFromConfig(mergeConfig(captionConfig, config)),
17
- color: {
18
- control: {
19
- type: 'color',
20
- },
21
- },
22
- },
15
+ argTypes: argTypesFromConfig(mergeConfig(captionConfig, config)),
23
16
  args: {
24
- noWrap: false,
25
17
  breakWord: true,
26
18
  },
27
19
  };
@@ -12,16 +12,8 @@ const meta: Meta<typeof Display> = {
12
12
  title: 'typography/Old/Display',
13
13
  decorators: [WithTheme],
14
14
  component: Display,
15
- argTypes: {
16
- ...argTypesFromConfig(mergeConfig(displayConfig, config)),
17
- color: {
18
- control: {
19
- type: 'color',
20
- },
21
- },
22
- },
15
+ argTypes: argTypesFromConfig(mergeConfig(displayConfig, config)),
23
16
  args: {
24
- noWrap: false,
25
17
  breakWord: true,
26
18
  },
27
19
  };
@@ -12,16 +12,8 @@ const meta: Meta<typeof Footnote> = {
12
12
  title: 'typography/Old/Footnote',
13
13
  decorators: [WithTheme],
14
14
  component: Footnote,
15
- argTypes: {
16
- ...argTypesFromConfig(mergeConfig(footnoteConfig, config)),
17
- color: {
18
- control: {
19
- type: 'color',
20
- },
21
- },
22
- },
15
+ argTypes: argTypesFromConfig(mergeConfig(footnoteConfig, config)),
23
16
  args: {
24
- noWrap: false,
25
17
  breakWord: true,
26
18
  },
27
19
  };
@@ -12,16 +12,8 @@ const meta: Meta<typeof Headline> = {
12
12
  title: 'typography/Old/Headline',
13
13
  decorators: [WithTheme],
14
14
  component: Headline,
15
- argTypes: {
16
- ...argTypesFromConfig(mergeConfig(headlineConfig, config)),
17
- color: {
18
- control: {
19
- type: 'color',
20
- },
21
- },
22
- },
15
+ argTypes: argTypesFromConfig(mergeConfig(headlineConfig, config)),
23
16
  args: {
24
- noWrap: false,
25
17
  breakWord: true,
26
18
  },
27
19
  };
@@ -12,16 +12,8 @@ const meta: Meta<typeof Paragraph> = {
12
12
  title: 'typography/Old/Paragraph',
13
13
  decorators: [WithTheme],
14
14
  component: Paragraph,
15
- argTypes: {
16
- ...argTypesFromConfig(mergeConfig(paragraphConfig, config)),
17
- color: {
18
- control: {
19
- type: 'color',
20
- },
21
- },
22
- },
15
+ argTypes: argTypesFromConfig(mergeConfig(paragraphConfig, config)),
23
16
  args: {
24
- noWrap: false,
25
17
  breakWord: true,
26
18
  resetMargin: false,
27
19
  m: 2,
@@ -12,17 +12,7 @@ const meta: Meta<typeof Subtitle> = {
12
12
  title: 'typography/Old/Subtitle',
13
13
  decorators: [WithTheme],
14
14
  component: Subtitle,
15
- argTypes: {
16
- ...argTypesFromConfig(mergeConfig(subtitleConfig, config)),
17
- color: {
18
- control: {
19
- type: 'color',
20
- },
21
- },
22
- },
23
- args: {
24
- noWrap: false,
25
- },
15
+ argTypes: argTypesFromConfig(mergeConfig(subtitleConfig, config)),
26
16
  };
27
17
 
28
18
  export default meta;
@@ -12,16 +12,8 @@ const meta: Meta<typeof Underline> = {
12
12
  title: 'typography/Old/Underline',
13
13
  decorators: [WithTheme],
14
14
  component: Underline,
15
- argTypes: {
16
- ...argTypesFromConfig(mergeConfig(underlineConfig, config)),
17
- color: {
18
- control: {
19
- type: 'color',
20
- },
21
- },
22
- },
15
+ argTypes: argTypesFromConfig(mergeConfig(underlineConfig, config)),
23
16
  args: {
24
- noWrap: false,
25
17
  breakWord: true,
26
18
  },
27
19
  };
@@ -12,16 +12,8 @@ const meta: Meta<typeof Text> = {
12
12
  title: 'typography/Text',
13
13
  decorators: [WithTheme],
14
14
  component: Text,
15
- argTypes: {
16
- ...argTypesFromConfig(mergeConfig(textConfig, config)),
17
- color: {
18
- control: {
19
- type: 'color',
20
- },
21
- },
22
- },
15
+ argTypes: argTypesFromConfig(mergeConfig(textConfig, config)),
23
16
  args: {
24
- noWrap: false,
25
17
  breakWord: true,
26
18
  bold: false,
27
19
  },
@@ -62,7 +62,7 @@ var calendarBaseRoot = function calendarBaseRoot(Root) {
62
62
  _useState8 = _slicedToArray(_useState7, 2),
63
63
  outOfRangeKey = _useState8[0],
64
64
  setOutOfRangeKey = _useState8[1];
65
- var _useReducer = useReducer(reducer, getInitialState(value, type)),
65
+ var _useReducer = useReducer(reducer, getInitialState(value, min, type)),
66
66
  _useReducer2 = _slicedToArray(_useReducer, 2),
67
67
  state = _useReducer2[0],
68
68
  dispatch = _useReducer2[1];
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarBase.js","sources":["../../../../src/components/Calendar/CalendarBase/CalendarBase.tsx"],"sourcesContent":["import React, {\n useCallback,\n useMemo,\n useReducer,\n useState,\n KeyboardEvent,\n HTMLAttributes,\n forwardRef,\n useEffect,\n} from 'react';\n\nimport type { Calendar, CalendarConfigProps, DateObject } from '../Calendar.types';\nimport { getInitialState, reducer, sizeMap } from '../store/reducer';\nimport { ActionType, CalendarState } from '../store/types';\nimport { isValueUpdate } from '../utils';\nimport { useKeyNavigation, useCalendarNavigation, useCalendarDateChange } from '../hooks';\nimport { CalendarDays, CalendarHeader, CalendarMonths, CalendarQuarters, CalendarYears } from '../ui';\nimport { RootProps } from '../../../engines';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { IsOutOfRange, StyledCalendar } from './CalendarBase.styles';\n\nexport type CalendarBaseProps = Calendar & CalendarConfigProps;\n\n/**\n * Компонент календаря.\n */\nexport const calendarBaseRoot = (Root: RootProps<HTMLDivElement, HTMLAttributes<HTMLDivElement>>) =>\n forwardRef<HTMLDivElement, CalendarBaseProps>(\n (\n {\n value: externalValue,\n min,\n max,\n includeEdgeDates,\n type = 'Days',\n eventList,\n disabledList,\n eventMonthList,\n disabledMonthList,\n eventQuarterList,\n disabledQuarterList,\n eventYearList,\n disabledYearList,\n onChangeValue,\n locale = 'ru',\n ...rest\n },\n outerRootRef,\n ) => {\n const [firstValue, secondValue] = useMemo(\n () => (Array.isArray(externalValue) ? externalValue : [externalValue]),\n [externalValue],\n );\n const value = secondValue || firstValue;\n\n const [hoveredItem, setHoveredItem] = useState<DateObject | undefined>();\n const [prevType, setPrevType] = useState(type);\n const [prevValue, setPrevValue] = useState(value);\n const [outOfRangeKey, setOutOfRangeKey] = useState<number>(0);\n\n const [state, dispatch] = useReducer(reducer, getInitialState(value, type));\n\n const { date, calendarState, startYear, size } = state;\n\n const { handleNext, handlePrev } = useCalendarNavigation({\n calendarState,\n date,\n dispatch,\n });\n\n const [selectIndexes, onKeyDown, onSelectIndexes, outerRefs, isOutOfRange] = useKeyNavigation({\n size,\n calendarState,\n onNext: handleNext,\n onPrev: handlePrev,\n });\n\n const {\n handleOnChangeDay,\n handleOnChangeMonth,\n handleOnChangeQuarter,\n handleOnChangeYear,\n handleUpdateCalendarState,\n } = useCalendarDateChange({ type, onChangeValue, onSelectIndexes, dispatch });\n\n // Изменяем ключ каждый раз как пытаемся перейти на даты которые находятся за пределами min/max ограничений.\n // Это необходимо для того чтобы screen-reader корректно озвучивал уведомление aria-live=\"assertive\"\n // о том что нет доступных дат\n const handleKeyDown = useCallback(\n (event: KeyboardEvent<HTMLDivElement>) => {\n setOutOfRangeKey((previousState) => Number(!previousState));\n\n onKeyDown(event);\n },\n [onKeyDown],\n );\n\n useEffect(() => {\n if (prevType !== calendarState) {\n dispatch({\n type: ActionType.UPDATE_CALENDAR_STATE,\n payload: { calendarState, size: sizeMap[calendarState].single },\n });\n\n setPrevType(calendarState);\n }\n }, [calendarState]);\n\n useEffect(() => {\n if (!prevValue) {\n setPrevValue(value);\n }\n\n if ((value && prevValue && isValueUpdate(value, prevValue)) || (value && !prevValue)) {\n dispatch({\n type: ActionType.UPDATE_DATE,\n payload: { value },\n });\n\n setPrevValue(value);\n }\n }, [value, prevValue]);\n\n return (\n <Root ref={outerRootRef} aria-label=\"Выбор даты\" {...rest}>\n {isOutOfRange && (\n <IsOutOfRange\n key={outOfRangeKey}\n aria-atomic=\"true\"\n role=\"alert\"\n aria-live=\"assertive\"\n aria-relevant=\"additions\"\n >\n Далее нет доступных дат.\n </IsOutOfRange>\n )}\n <CalendarHeader\n size={rest.size}\n firstDate={date}\n startYear={startYear}\n type={calendarState}\n onPrev={handlePrev}\n onNext={handleNext}\n onUpdateCalendarState={handleUpdateCalendarState}\n locale={locale}\n />\n {calendarState === CalendarState.Days && (\n <CalendarDays\n value={externalValue}\n date={date}\n min={min}\n max={max}\n eventList={eventList}\n disabledList={disabledList}\n includeEdgeDates={includeEdgeDates}\n hoveredDay={hoveredItem}\n selectIndexes={selectIndexes}\n onChangeDay={handleOnChangeDay}\n onSetSelected={onSelectIndexes}\n onHoverDay={setHoveredItem}\n onKeyDown={handleKeyDown}\n outerRefs={outerRefs}\n locale={locale}\n />\n )}\n {calendarState === CalendarState.Months && (\n <CalendarMonths\n value={externalValue}\n date={date}\n min={min}\n max={max}\n eventList={eventMonthList}\n disabledList={disabledMonthList}\n hoveredMonth={hoveredItem}\n selectIndexes={selectIndexes}\n onChangeMonth={handleOnChangeMonth}\n onSetSelected={onSelectIndexes}\n onHoverMonth={setHoveredItem}\n onKeyDown={onKeyDown}\n outerRefs={outerRefs}\n locale={locale}\n />\n )}\n {calendarState === CalendarState.Quarters && (\n <CalendarQuarters\n value={externalValue}\n date={date}\n min={min}\n max={max}\n eventList={eventQuarterList}\n disabledList={disabledQuarterList}\n hoveredQuarter={hoveredItem}\n selectIndexes={selectIndexes}\n onChangeQuarter={handleOnChangeQuarter}\n onSetSelected={onSelectIndexes}\n onHoverQuarter={setHoveredItem}\n onKeyDown={onKeyDown}\n outerRefs={outerRefs}\n />\n )}\n {calendarState === CalendarState.Years && (\n <CalendarYears\n value={externalValue}\n date={date}\n startYear={startYear}\n selectIndexes={selectIndexes}\n min={min}\n max={max}\n eventList={eventYearList}\n disabledList={disabledYearList}\n hoveredYear={hoveredItem}\n onChangeYear={handleOnChangeYear}\n onSetSelected={onSelectIndexes}\n onHoverYear={setHoveredItem}\n onKeyDown={onKeyDown}\n outerRefs={outerRefs}\n />\n )}\n </Root>\n );\n },\n );\n\nexport const calendarBaseConfig = {\n name: 'CalendarBase',\n tag: 'div',\n layout: calendarBaseRoot,\n base: StyledCalendar,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'primary',\n size: 'm',\n },\n};\n"],"names":["calendarBaseRoot","Root","forwardRef","_ref","outerRootRef","externalValue","value","min","max","includeEdgeDates","_ref$type","type","eventList","disabledList","eventMonthList","disabledMonthList","eventQuarterList","disabledQuarterList","eventYearList","disabledYearList","onChangeValue","_ref$locale","locale","rest","_objectWithoutProperties","_excluded","_useMemo","useMemo","Array","isArray","_useMemo2","_slicedToArray","firstValue","secondValue","_useState","useState","_useState2","hoveredItem","setHoveredItem","_useState3","_useState4","prevType","setPrevType","_useState5","_useState6","prevValue","setPrevValue","_useState7","_useState8","outOfRangeKey","setOutOfRangeKey","_useReducer","useReducer","reducer","getInitialState","_useReducer2","state","dispatch","date","calendarState","startYear","size","_useCalendarNavigatio","useCalendarNavigation","handleNext","handlePrev","_useKeyNavigation","useKeyNavigation","onNext","onPrev","_useKeyNavigation2","selectIndexes","onKeyDown","onSelectIndexes","outerRefs","isOutOfRange","_useCalendarDateChang","useCalendarDateChange","handleOnChangeDay","handleOnChangeMonth","handleOnChangeQuarter","handleOnChangeYear","handleUpdateCalendarState","handleKeyDown","useCallback","event","previousState","Number","useEffect","ActionType","UPDATE_CALENDAR_STATE","payload","sizeMap","single","isValueUpdate","UPDATE_DATE","React","createElement","_extends","ref","IsOutOfRange","key","role","CalendarHeader","firstDate","onUpdateCalendarState","CalendarState","Days","CalendarDays","hoveredDay","onChangeDay","onSetSelected","onHoverDay","Months","CalendarMonths","hoveredMonth","onChangeMonth","onHoverMonth","Quarters","CalendarQuarters","hoveredQuarter","onChangeQuarter","onHoverQuarter","Years","CalendarYears","hoveredYear","onChangeYear","onHoverYear","calendarBaseConfig","name","tag","layout","base","StyledCalendar","variations","view","css","viewCSS","sizeCS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AAAA,IAAI,EAAEC,cAAc;AACpBC,EAAAA,UAAU,EAAE;AACRC,IAAAA,IAAI,EAAE;AACFC,MAAAA,GAAG,EAAEC,IAAAA;KACR;AACD5E,IAAAA,IAAI,EAAE;AACF2E,MAAAA,GAAG,EAAEE,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNJ,IAAAA,IAAI,EAAE,SAAS;AACf1E,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;"}
1
+ {"version":3,"file":"CalendarBase.js","sources":["../../../../src/components/Calendar/CalendarBase/CalendarBase.tsx"],"sourcesContent":["import React, {\n useCallback,\n useMemo,\n useReducer,\n useState,\n KeyboardEvent,\n HTMLAttributes,\n forwardRef,\n useEffect,\n} from 'react';\n\nimport type { Calendar, CalendarConfigProps, DateObject } from '../Calendar.types';\nimport { getInitialState, reducer, sizeMap } from '../store/reducer';\nimport { ActionType, CalendarState } from '../store/types';\nimport { isValueUpdate } from '../utils';\nimport { useKeyNavigation, useCalendarNavigation, useCalendarDateChange } from '../hooks';\nimport { CalendarDays, CalendarHeader, CalendarMonths, CalendarQuarters, CalendarYears } from '../ui';\nimport { RootProps } from '../../../engines';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { IsOutOfRange, StyledCalendar } from './CalendarBase.styles';\n\nexport type CalendarBaseProps = Calendar & CalendarConfigProps;\n\n/**\n * Компонент календаря.\n */\nexport const calendarBaseRoot = (Root: RootProps<HTMLDivElement, HTMLAttributes<HTMLDivElement>>) =>\n forwardRef<HTMLDivElement, CalendarBaseProps>(\n (\n {\n value: externalValue,\n min,\n max,\n includeEdgeDates,\n type = 'Days',\n eventList,\n disabledList,\n eventMonthList,\n disabledMonthList,\n eventQuarterList,\n disabledQuarterList,\n eventYearList,\n disabledYearList,\n onChangeValue,\n locale = 'ru',\n ...rest\n },\n outerRootRef,\n ) => {\n const [firstValue, secondValue] = useMemo(\n () => (Array.isArray(externalValue) ? externalValue : [externalValue]),\n [externalValue],\n );\n const value = secondValue || firstValue;\n\n const [hoveredItem, setHoveredItem] = useState<DateObject | undefined>();\n const [prevType, setPrevType] = useState(type);\n const [prevValue, setPrevValue] = useState(value);\n const [outOfRangeKey, setOutOfRangeKey] = useState<number>(0);\n\n const [state, dispatch] = useReducer(reducer, getInitialState(value, min, type));\n\n const { date, calendarState, startYear, size } = state;\n\n const { handleNext, handlePrev } = useCalendarNavigation({\n calendarState,\n date,\n dispatch,\n });\n\n const [selectIndexes, onKeyDown, onSelectIndexes, outerRefs, isOutOfRange] = useKeyNavigation({\n size,\n calendarState,\n onNext: handleNext,\n onPrev: handlePrev,\n });\n\n const {\n handleOnChangeDay,\n handleOnChangeMonth,\n handleOnChangeQuarter,\n handleOnChangeYear,\n handleUpdateCalendarState,\n } = useCalendarDateChange({ type, onChangeValue, onSelectIndexes, dispatch });\n\n // Изменяем ключ каждый раз как пытаемся перейти на даты которые находятся за пределами min/max ограничений.\n // Это необходимо для того чтобы screen-reader корректно озвучивал уведомление aria-live=\"assertive\"\n // о том что нет доступных дат\n const handleKeyDown = useCallback(\n (event: KeyboardEvent<HTMLDivElement>) => {\n setOutOfRangeKey((previousState) => Number(!previousState));\n\n onKeyDown(event);\n },\n [onKeyDown],\n );\n\n useEffect(() => {\n if (prevType !== calendarState) {\n dispatch({\n type: ActionType.UPDATE_CALENDAR_STATE,\n payload: { calendarState, size: sizeMap[calendarState].single },\n });\n\n setPrevType(calendarState);\n }\n }, [calendarState]);\n\n useEffect(() => {\n if (!prevValue) {\n setPrevValue(value);\n }\n\n if ((value && prevValue && isValueUpdate(value, prevValue)) || (value && !prevValue)) {\n dispatch({\n type: ActionType.UPDATE_DATE,\n payload: { value },\n });\n\n setPrevValue(value);\n }\n }, [value, prevValue]);\n\n return (\n <Root ref={outerRootRef} aria-label=\"Выбор даты\" {...rest}>\n {isOutOfRange && (\n <IsOutOfRange\n key={outOfRangeKey}\n aria-atomic=\"true\"\n role=\"alert\"\n aria-live=\"assertive\"\n aria-relevant=\"additions\"\n >\n Далее нет доступных дат.\n </IsOutOfRange>\n )}\n <CalendarHeader\n size={rest.size}\n firstDate={date}\n startYear={startYear}\n type={calendarState}\n onPrev={handlePrev}\n onNext={handleNext}\n onUpdateCalendarState={handleUpdateCalendarState}\n locale={locale}\n />\n {calendarState === CalendarState.Days && (\n <CalendarDays\n value={externalValue}\n date={date}\n min={min}\n max={max}\n eventList={eventList}\n disabledList={disabledList}\n includeEdgeDates={includeEdgeDates}\n hoveredDay={hoveredItem}\n selectIndexes={selectIndexes}\n onChangeDay={handleOnChangeDay}\n onSetSelected={onSelectIndexes}\n onHoverDay={setHoveredItem}\n onKeyDown={handleKeyDown}\n outerRefs={outerRefs}\n locale={locale}\n />\n )}\n {calendarState === CalendarState.Months && (\n <CalendarMonths\n value={externalValue}\n date={date}\n min={min}\n max={max}\n eventList={eventMonthList}\n disabledList={disabledMonthList}\n hoveredMonth={hoveredItem}\n selectIndexes={selectIndexes}\n onChangeMonth={handleOnChangeMonth}\n onSetSelected={onSelectIndexes}\n onHoverMonth={setHoveredItem}\n onKeyDown={onKeyDown}\n outerRefs={outerRefs}\n locale={locale}\n />\n )}\n {calendarState === CalendarState.Quarters && (\n <CalendarQuarters\n value={externalValue}\n date={date}\n min={min}\n max={max}\n eventList={eventQuarterList}\n disabledList={disabledQuarterList}\n hoveredQuarter={hoveredItem}\n selectIndexes={selectIndexes}\n onChangeQuarter={handleOnChangeQuarter}\n onSetSelected={onSelectIndexes}\n onHoverQuarter={setHoveredItem}\n onKeyDown={onKeyDown}\n outerRefs={outerRefs}\n />\n )}\n {calendarState === CalendarState.Years && (\n <CalendarYears\n value={externalValue}\n date={date}\n startYear={startYear}\n selectIndexes={selectIndexes}\n min={min}\n max={max}\n eventList={eventYearList}\n disabledList={disabledYearList}\n hoveredYear={hoveredItem}\n onChangeYear={handleOnChangeYear}\n onSetSelected={onSelectIndexes}\n onHoverYear={setHoveredItem}\n onKeyDown={onKeyDown}\n outerRefs={outerRefs}\n />\n )}\n </Root>\n );\n },\n );\n\nexport const calendarBaseConfig = {\n name: 'CalendarBase',\n tag: 'div',\n layout: calendarBaseRoot,\n base: StyledCalendar,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n },\n defaults: {\n view: 'primary',\n size: 'm',\n },\n};\n"],"names":["calendarBaseRoot","Root","forwardRef","_ref","outerRootRef","externalValue","value","min","max","includeEdgeDates","_ref$type","type","eventList","disabledList","eventMonthList","disabledMonthList","eventQuarterList","disabledQuarterList","eventYearList","disabledYearList","onChangeValue","_ref$locale","locale","rest","_objectWithoutProperties","_excluded","_useMemo","useMemo","Array","isArray","_useMemo2","_slicedToArray","firstValue","secondValue","_useState","useState","_useState2","hoveredItem","setHoveredItem","_useState3","_useState4","prevType","setPrevType","_useState5","_useState6","prevValue","setPrevValue","_useState7","_useState8","outOfRangeKey","setOutOfRangeKey","_useReducer","useReducer","reducer","getInitialState","_useReducer2","state","dispatch","date","calendarState","startYear","size","_useCalendarNavigatio","useCalendarNavigation","handleNext","handlePrev","_useKeyNavigation","useKeyNavigation","onNext","onPrev","_useKeyNavigation2","selectIndexes","onKeyDown","onSelectIndexes","outerRefs","isOutOfRange","_useCalendarDateChang","useCalendarDateChange","handleOnChangeDay","handleOnChangeMonth","handleOnChangeQuarter","handleOnChangeYear","handleUpdateCalendarState","handleKeyDown","useCallback","event","previousState","Number","useEffect","ActionType","UPDATE_CALENDAR_STATE","payload","sizeMap","single","isValueUpdate","UPDATE_DATE","React","createElement","_extends","ref","IsOutOfRange","key","role","CalendarHeader","firstDate","onUpdateCalendarState","CalendarState","Days","CalendarDays","hoveredDay","onChangeDay","onSetSelected","onHoverDay","Months","CalendarMonths","hoveredMonth","onChangeMonth","onHoverMonth","Quarters","CalendarQuarters","hoveredQuarter","onChangeQuarter","onHoverQuarter","Years","CalendarYears","hoveredYear","onChangeYear","onHoverYear","calendarBaseConfig","name","tag","layout","base","StyledCalendar","variations","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MAAM,EAAEnI,gBAAgB;AACxBoI,EAAAA,IAAI,EAAEC,cAAc;AACpBC,EAAAA,UAAU,EAAE;AACRC,IAAAA,IAAI,EAAE;AACFC,MAAAA,GAAG,EAAEC,IAAAA;KACR;AACD5E,IAAAA,IAAI,EAAE;AACF2E,MAAAA,GAAG,EAAEE,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNJ,IAAAA,IAAI,EAAE,SAAS;AACf1E,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;"}
@@ -65,7 +65,7 @@ var calendarDoubleRoot = function calendarDoubleRoot(Root) {
65
65
  _useState8 = _slicedToArray(_useState7, 2),
66
66
  outOfRangeKey = _useState8[0],
67
67
  setOutOfRangeKey = _useState8[1];
68
- var _useReducer = useReducer(reducer, getInitialState(value, type, true)),
68
+ var _useReducer = useReducer(reducer, getInitialState(value, min, type, true)),
69
69
  _useReducer2 = _slicedToArray(_useReducer, 2),
70
70
  state = _useReducer2[0],
71
71
  dispatch = _useReducer2[1];