@salutejs/plasma-new-hope 0.324.1-canary.1988.15209032570.0 → 0.325.0-canary.1715.15255555914.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/cjs/components/Calendar/hooks/useMonths.js +3 -1
  2. package/cjs/components/Calendar/hooks/useMonths.js.map +1 -1
  3. package/cjs/components/Calendar/hooks/useQuarters.js +3 -1
  4. package/cjs/components/Calendar/hooks/useQuarters.js.map +1 -1
  5. package/cjs/components/Calendar/hooks/useYears.js +3 -1
  6. package/cjs/components/Calendar/hooks/useYears.js.map +1 -1
  7. package/cjs/components/Calendar/utils/getDateWithModification.js +28 -24
  8. package/cjs/components/Calendar/utils/getDateWithModification.js.map +1 -1
  9. package/cjs/components/Note/Note.css +35 -6
  10. package/cjs/components/Note/Note.js +17 -3
  11. package/cjs/components/Note/Note.js.map +1 -1
  12. package/cjs/components/Note/Note.styles.js +25 -2
  13. package/cjs/components/Note/Note.styles.js.map +1 -1
  14. package/cjs/components/Note/{Note.styles_178qpj9.css → Note.styles_thpfhk.css} +2 -1
  15. package/cjs/components/Note/Note.tokens.js +9 -1
  16. package/cjs/components/Note/Note.tokens.js.map +1 -1
  17. package/cjs/components/NumberFormat/NumberFormat.js +7 -2
  18. package/cjs/components/NumberFormat/NumberFormat.js.map +1 -1
  19. package/cjs/components/PaginationDots/PaginationDot.js +59 -0
  20. package/cjs/components/PaginationDots/PaginationDot.js.map +1 -0
  21. package/cjs/components/PaginationDots/PaginationDot_baul9c.css +2 -0
  22. package/cjs/components/PaginationDots/PaginationDots.js +34 -0
  23. package/cjs/components/PaginationDots/PaginationDots.js.map +1 -0
  24. package/cjs/components/PaginationDots/PaginationDots_fm2ha5.css +2 -0
  25. package/cjs/components/PaginationDots/SmartPaginationDots.css +5 -0
  26. package/cjs/components/PaginationDots/SmartPaginationDots.js +47 -0
  27. package/cjs/components/PaginationDots/SmartPaginationDots.js.map +1 -0
  28. package/cjs/components/PaginationDots/usePaginationDots.js +40 -0
  29. package/cjs/components/PaginationDots/usePaginationDots.js.map +1 -0
  30. package/cjs/index.css +14 -7
  31. package/cjs/index.js +6 -0
  32. package/cjs/index.js.map +1 -1
  33. package/emotion/cjs/components/Calendar/hooks/useMonths.js +3 -1
  34. package/emotion/cjs/components/Calendar/hooks/useQuarters.js +3 -1
  35. package/emotion/cjs/components/Calendar/hooks/useYears.js +3 -1
  36. package/emotion/cjs/components/Calendar/utils/getDateWithModification.js +28 -24
  37. package/emotion/cjs/components/Note/Note.js +17 -3
  38. package/emotion/cjs/components/Note/Note.styles.js +27 -15
  39. package/emotion/cjs/components/Note/Note.tokens.js +9 -1
  40. package/emotion/cjs/components/NumberFormat/NumberFormat.js +7 -2
  41. package/emotion/cjs/components/PaginationDots/PaginationDot.js +35 -0
  42. package/emotion/cjs/components/PaginationDots/PaginationDots.js +35 -0
  43. package/emotion/cjs/components/PaginationDots/SmartPaginationDots.js +43 -0
  44. package/emotion/cjs/components/PaginationDots/index.js +26 -0
  45. package/emotion/cjs/components/PaginationDots/usePaginationDots.js +38 -0
  46. package/emotion/cjs/examples/plasma_b2c/components/Note/Note.config.js +9 -9
  47. package/emotion/cjs/examples/plasma_b2c/components/Note/Note.stories.tsx +1 -0
  48. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +23 -22
  49. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +4 -3
  50. package/emotion/cjs/examples/plasma_web/components/Note/Note.config.js +9 -9
  51. package/emotion/cjs/examples/plasma_web/components/Note/Note.stories.tsx +1 -0
  52. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.config.js +23 -22
  53. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +5 -4
  54. package/emotion/cjs/index.js +11 -0
  55. package/emotion/es/components/Calendar/hooks/useMonths.js +3 -1
  56. package/emotion/es/components/Calendar/hooks/useQuarters.js +3 -1
  57. package/emotion/es/components/Calendar/hooks/useYears.js +3 -1
  58. package/emotion/es/components/Calendar/utils/getDateWithModification.js +28 -24
  59. package/emotion/es/components/Note/Note.js +18 -4
  60. package/emotion/es/components/Note/Note.styles.js +26 -14
  61. package/emotion/es/components/Note/Note.tokens.js +9 -1
  62. package/emotion/es/components/NumberFormat/NumberFormat.js +7 -2
  63. package/emotion/es/components/PaginationDots/PaginationDot.js +28 -0
  64. package/emotion/es/components/PaginationDots/PaginationDots.js +28 -0
  65. package/emotion/es/components/PaginationDots/SmartPaginationDots.js +36 -0
  66. package/emotion/es/components/PaginationDots/index.js +3 -0
  67. package/emotion/es/components/PaginationDots/usePaginationDots.js +32 -0
  68. package/emotion/es/examples/plasma_b2c/components/Note/Note.config.js +9 -9
  69. package/emotion/es/examples/plasma_b2c/components/Note/Note.stories.tsx +1 -0
  70. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.config.js +23 -22
  71. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +4 -3
  72. package/emotion/es/examples/plasma_web/components/Note/Note.config.js +9 -9
  73. package/emotion/es/examples/plasma_web/components/Note/Note.stories.tsx +1 -0
  74. package/emotion/es/examples/plasma_web/components/TextField/TextField.config.js +23 -22
  75. package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +5 -4
  76. package/emotion/es/index.js +2 -1
  77. package/es/components/Calendar/hooks/useMonths.js +3 -1
  78. package/es/components/Calendar/hooks/useMonths.js.map +1 -1
  79. package/es/components/Calendar/hooks/useQuarters.js +3 -1
  80. package/es/components/Calendar/hooks/useQuarters.js.map +1 -1
  81. package/es/components/Calendar/hooks/useYears.js +3 -1
  82. package/es/components/Calendar/hooks/useYears.js.map +1 -1
  83. package/es/components/Calendar/utils/getDateWithModification.js +28 -24
  84. package/es/components/Calendar/utils/getDateWithModification.js.map +1 -1
  85. package/es/components/Note/Note.css +35 -6
  86. package/es/components/Note/Note.js +18 -4
  87. package/es/components/Note/Note.js.map +1 -1
  88. package/es/components/Note/Note.styles.js +25 -3
  89. package/es/components/Note/Note.styles.js.map +1 -1
  90. package/es/components/Note/{Note.styles_178qpj9.css → Note.styles_thpfhk.css} +2 -1
  91. package/es/components/Note/Note.tokens.js +9 -1
  92. package/es/components/Note/Note.tokens.js.map +1 -1
  93. package/es/components/NumberFormat/NumberFormat.js +7 -2
  94. package/es/components/NumberFormat/NumberFormat.js.map +1 -1
  95. package/es/components/PaginationDots/PaginationDot.js +54 -0
  96. package/es/components/PaginationDots/PaginationDot.js.map +1 -0
  97. package/es/components/PaginationDots/PaginationDot_baul9c.css +2 -0
  98. package/es/components/PaginationDots/PaginationDots.js +29 -0
  99. package/es/components/PaginationDots/PaginationDots.js.map +1 -0
  100. package/es/components/PaginationDots/PaginationDots_fm2ha5.css +2 -0
  101. package/es/components/PaginationDots/SmartPaginationDots.css +5 -0
  102. package/es/components/PaginationDots/SmartPaginationDots.js +39 -0
  103. package/es/components/PaginationDots/SmartPaginationDots.js.map +1 -0
  104. package/es/components/PaginationDots/usePaginationDots.js +36 -0
  105. package/es/components/PaginationDots/usePaginationDots.js.map +1 -0
  106. package/es/index.css +14 -7
  107. package/es/index.js +3 -0
  108. package/es/index.js.map +1 -1
  109. package/package.json +2 -2
  110. package/styled-components/cjs/components/Calendar/hooks/useMonths.js +3 -1
  111. package/styled-components/cjs/components/Calendar/hooks/useQuarters.js +3 -1
  112. package/styled-components/cjs/components/Calendar/hooks/useYears.js +3 -1
  113. package/styled-components/cjs/components/Calendar/utils/getDateWithModification.js +28 -24
  114. package/styled-components/cjs/components/Note/Note.js +17 -3
  115. package/styled-components/cjs/components/Note/Note.styles.js +14 -3
  116. package/styled-components/cjs/components/Note/Note.tokens.js +9 -1
  117. package/styled-components/cjs/components/NumberFormat/NumberFormat.js +7 -2
  118. package/styled-components/cjs/components/PaginationDots/PaginationDot.js +33 -0
  119. package/styled-components/cjs/components/PaginationDots/PaginationDots.js +24 -0
  120. package/styled-components/cjs/components/PaginationDots/SmartPaginationDots.js +43 -0
  121. package/styled-components/cjs/components/PaginationDots/index.js +26 -0
  122. package/styled-components/cjs/components/PaginationDots/usePaginationDots.js +38 -0
  123. package/styled-components/cjs/examples/plasma_b2c/components/Note/Note.config.js +4 -4
  124. package/styled-components/cjs/examples/plasma_b2c/components/Note/Note.stories.tsx +1 -0
  125. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +2 -1
  126. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +4 -3
  127. package/styled-components/cjs/examples/plasma_web/components/Note/Note.config.js +4 -4
  128. package/styled-components/cjs/examples/plasma_web/components/Note/Note.stories.tsx +1 -0
  129. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.config.js +7 -6
  130. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +5 -4
  131. package/styled-components/cjs/index.js +11 -0
  132. package/styled-components/es/components/Calendar/hooks/useMonths.js +3 -1
  133. package/styled-components/es/components/Calendar/hooks/useQuarters.js +3 -1
  134. package/styled-components/es/components/Calendar/hooks/useYears.js +3 -1
  135. package/styled-components/es/components/Calendar/utils/getDateWithModification.js +28 -24
  136. package/styled-components/es/components/Note/Note.js +18 -4
  137. package/styled-components/es/components/Note/Note.styles.js +13 -2
  138. package/styled-components/es/components/Note/Note.tokens.js +9 -1
  139. package/styled-components/es/components/NumberFormat/NumberFormat.js +7 -2
  140. package/styled-components/es/components/PaginationDots/PaginationDot.js +26 -0
  141. package/styled-components/es/components/PaginationDots/PaginationDots.js +18 -0
  142. package/styled-components/es/components/PaginationDots/SmartPaginationDots.js +36 -0
  143. package/styled-components/es/components/PaginationDots/index.js +3 -0
  144. package/styled-components/es/components/PaginationDots/usePaginationDots.js +32 -0
  145. package/styled-components/es/examples/plasma_b2c/components/Note/Note.config.js +4 -4
  146. package/styled-components/es/examples/plasma_b2c/components/Note/Note.stories.tsx +1 -0
  147. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.config.js +2 -1
  148. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +4 -3
  149. package/styled-components/es/examples/plasma_web/components/Note/Note.config.js +4 -4
  150. package/styled-components/es/examples/plasma_web/components/Note/Note.stories.tsx +1 -0
  151. package/styled-components/es/examples/plasma_web/components/TextField/TextField.config.js +7 -6
  152. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +5 -4
  153. package/styled-components/es/index.js +2 -1
  154. package/types/components/Calendar/hooks/types.d.ts +7 -2
  155. package/types/components/Calendar/hooks/types.d.ts.map +1 -1
  156. package/types/components/Calendar/hooks/useMonths.d.ts +1 -1
  157. package/types/components/Calendar/hooks/useMonths.d.ts.map +1 -1
  158. package/types/components/Calendar/hooks/useQuarters.d.ts +1 -1
  159. package/types/components/Calendar/hooks/useQuarters.d.ts.map +1 -1
  160. package/types/components/Calendar/hooks/useYears.d.ts +1 -1
  161. package/types/components/Calendar/hooks/useYears.d.ts.map +1 -1
  162. package/types/components/Calendar/utils/getDateWithModification.d.ts.map +1 -1
  163. package/types/components/Note/Note.d.ts +4 -0
  164. package/types/components/Note/Note.d.ts.map +1 -1
  165. package/types/components/Note/Note.styles.d.ts +46 -1
  166. package/types/components/Note/Note.styles.d.ts.map +1 -1
  167. package/types/components/Note/Note.tokens.d.ts +8 -0
  168. package/types/components/Note/Note.tokens.d.ts.map +1 -1
  169. package/types/components/Note/Note.types.d.ts +8 -0
  170. package/types/components/Note/Note.types.d.ts.map +1 -1
  171. package/types/components/NumberFormat/NumberFormat.d.ts.map +1 -1
  172. package/types/components/PaginationDots/PaginationDot.d.ts +21 -0
  173. package/types/components/PaginationDots/PaginationDot.d.ts.map +1 -0
  174. package/types/components/PaginationDots/PaginationDots.d.ts +15 -0
  175. package/types/components/PaginationDots/PaginationDots.d.ts.map +1 -0
  176. package/types/components/PaginationDots/SmartPaginationDots.d.ts +15 -0
  177. package/types/components/PaginationDots/SmartPaginationDots.d.ts.map +1 -0
  178. package/types/components/PaginationDots/index.d.ts +6 -0
  179. package/types/components/PaginationDots/index.d.ts.map +1 -0
  180. package/types/components/PaginationDots/usePaginationDots.d.ts +14 -0
  181. package/types/components/PaginationDots/usePaginationDots.d.ts.map +1 -0
  182. package/types/index.d.ts +1 -0
  183. package/types/index.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Note.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Note/Note.styles.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,IAAI,0CAIhB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAEzB,CAAC;AAEF,eAAO,MAAM,cAAc,qKAI1B,CAAC;AAEF,eAAO,MAAM,KAAK,qKAAe,CAAC;AAClC,eAAO,MAAM,WAAW,qKAKvB,CAAC;AAEF,eAAO,MAAM,IAAI,uKAGhB,CAAC;AACF,eAAO,MAAM,UAAU,uKAOtB,CAAC"}
1
+ {"version":3,"file":"Note.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Note/Note.styles.ts"],"names":[],"mappings":";AAWA,eAAO,MAAM,IAAI,0CAIhB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAEzB,CAAC;AAEF,eAAO,MAAM,cAAc,qKAI1B,CAAC;AAEF,eAAO,MAAM,KAAK;;EAGjB,CAAC;AAEF,eAAO,MAAM,WAAW,qKAKvB,CAAC;AAEF,eAAO,MAAM,IAAI,uKAGhB,CAAC;AACF,eAAO,MAAM,UAAU,uKAOtB,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAY5B,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export declare const classes: {
2
2
  stretch: string;
3
+ closeIcon: string;
3
4
  contentAlignCenter: string;
4
5
  };
5
6
  export declare const privateTokens: {
@@ -26,11 +27,18 @@ export declare const tokens: {
26
27
  titleFontWeight: string;
27
28
  titleLetterSpacing: string;
28
29
  titleLineHeight: string;
30
+ titlePaddingRight: string;
29
31
  textFontFamily: string;
30
32
  textFontSize: string;
31
33
  textFontStyle: string;
32
34
  textFontWeight: string;
33
35
  textLetterSpacing: string;
34
36
  textLineHeight: string;
37
+ closeIconTop: string;
38
+ closeIconRight: string;
39
+ closeIconColor: string;
40
+ closeIconColorOnHover: string;
41
+ closeIconSize: string;
42
+ closeIconButtonSize: string;
35
43
  };
36
44
  //# sourceMappingURL=Note.tokens.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Note.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Note/Note.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;CAGnB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;CAIzB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;CA6BlB,CAAC"}
1
+ {"version":3,"file":"Note.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Note/Note.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;CAInB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;CAIzB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqClB,CAAC"}
@@ -37,5 +37,13 @@ export declare type NoteProps = {
37
37
  * Размер компонента.
38
38
  */
39
39
  size?: string;
40
+ /**
41
+ * Наличие крестика для закрытия
42
+ */
43
+ hasClose?: boolean;
44
+ /**
45
+ * Callback при нажатии на кнопку закрытия.
46
+ */
47
+ onCloseButtonClick?: () => void;
40
48
  } & HTMLAttributes<HTMLDivElement>;
41
49
  //# sourceMappingURL=Note.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Note.types.d.ts","sourceRoot":"","sources":["../../../src/components/Note/Note.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,oBAAY,SAAS,GAAG;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAC3C;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"Note.types.d.ts","sourceRoot":"","sources":["../../../src/components/Note/Note.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,oBAAY,SAAS,GAAG;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAC3C;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;CACnC,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NumberFormat.d.ts","sourceRoot":"","sources":["../../../src/components/NumberFormat/NumberFormat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAe,EAAE,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,KAAK,EAAE,kBAAkB,EAAc,MAAM,qBAAqB,CAAC;AAE1E,OAAO,KAAK,EAER,wBAAwB,EACxB,0BAA0B,EAC7B,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,mBAAmB;;;;;;;;;;mGAwB/B,CAAC"}
1
+ {"version":3,"file":"NumberFormat.d.ts","sourceRoot":"","sources":["../../../src/components/NumberFormat/NumberFormat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAe,EAAE,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,KAAK,EAAE,kBAAkB,EAAc,MAAM,qBAAqB,CAAC;AAE1E,OAAO,KAAK,EAER,wBAAwB,EACxB,0BAA0B,EAC7B,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,mBAAmB;;;;;;;;;;mGA2B/B,CAAC"}
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ export interface PaginationDotProps extends React.LiHTMLAttributes<HTMLLIElement> {
3
+ /**
4
+ * Элемент активен
5
+ */
6
+ isActive: boolean;
7
+ }
8
+ /**
9
+ * Элемент пагинации точками.
10
+ * Стилизованный компонент, обладающий всеми свойствами ``div``.
11
+ */
12
+ export declare const DotBase: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement> & PaginationDotProps>;
13
+ /**
14
+ * Элемент пагинации точками.
15
+ * Стилизованный компонент, обладающий всеми свойствами ``div``.
16
+ * @deprecated
17
+ */
18
+ export declare const PaginationDot: import("@linaria/react").StyledComponent<PaginationDotProps & import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement> & {
19
+ as?: import("react").ElementType<any> | undefined;
20
+ }>;
21
+ //# sourceMappingURL=PaginationDot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaginationDot.d.ts","sourceRoot":"","sources":["../../../src/components/PaginationDots/PaginationDot.tsx"],"names":[],"mappings":";AAEA,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,gBAAgB,CAAC,aAAa,CAAC;IAC7E;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED;;;GAGG;AACH,eAAO,MAAM,OAAO,iKAenB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa;;EAQzB,CAAC"}
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * Оборачивающий компонент для пагинации точками.
4
+ * Стилизованный компонент, обладающий всеми свойствами ``div``.
5
+ */
6
+ export declare const DotsBase: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLUListElement> & import("react").HTMLAttributes<HTMLUListElement> & Record<never, unknown>>;
7
+ /**
8
+ * Оборачивающий компонент для пагинации точками.
9
+ * Стилизованный компонент, обладающий всеми свойствами ``div``.
10
+ * @deprecated
11
+ */
12
+ export declare const PaginationDots: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLUListElement> & import("react").HTMLAttributes<HTMLUListElement> & Record<never, unknown> & {
13
+ as?: import("react").ElementType<any> | undefined;
14
+ }>;
15
+ //# sourceMappingURL=PaginationDots.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaginationDots.d.ts","sourceRoot":"","sources":["../../../src/components/PaginationDots/PaginationDots.tsx"],"names":[],"mappings":";AAEA;;;GAGG;AACH,eAAO,MAAM,QAAQ,yKAQpB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc;;EAAqB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { SmartPaginationDotsProps as BaseProps } from './usePaginationDots';
3
+ export interface SmartPaginationDotsProps extends BaseProps, React.HTMLAttributes<HTMLUListElement> {
4
+ /**
5
+ * Обработчик изменения индекса
6
+ */
7
+ onIndexChange?: (index: number) => void;
8
+ }
9
+ /**
10
+ * Компонент для отображения точек пагинации
11
+ * с возможностью ограничения количества видимых элементов.
12
+ * @deprecated
13
+ */
14
+ export declare const SmartPaginationDots: React.FC<SmartPaginationDotsProps>;
15
+ //# sourceMappingURL=SmartPaginationDots.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SmartPaginationDots.d.ts","sourceRoot":"","sources":["../../../src/components/PaginationDots/SmartPaginationDots.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAqB,wBAAwB,IAAI,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAI/F,MAAM,WAAW,wBAAyB,SAAQ,SAAS,EAAE,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC;IAC/F;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAgBlE,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { SmartPaginationDots } from './SmartPaginationDots';
2
+ export type { SmartPaginationDotsProps } from './SmartPaginationDots';
3
+ export { PaginationDots } from './PaginationDots';
4
+ export { PaginationDot } from './PaginationDot';
5
+ export type { PaginationDotProps } from './PaginationDot';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PaginationDots/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,14 @@
1
+ export interface SmartPaginationDotsProps {
2
+ items: Array<{
3
+ id: number | string;
4
+ }>;
5
+ index: number;
6
+ visibleItems?: number;
7
+ }
8
+ export declare const usePaginationDots: ({ items, index, visibleItems }: SmartPaginationDotsProps) => {
9
+ sliced: {
10
+ id: number | string;
11
+ }[];
12
+ activeId: string | number;
13
+ };
14
+ //# sourceMappingURL=usePaginationDots.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePaginationDots.d.ts","sourceRoot":"","sources":["../../../src/components/PaginationDots/usePaginationDots.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,wBAAwB;IACrC,KAAK,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,iBAAiB,mCAAwC,wBAAwB;;YALvE,MAAM,GAAG,MAAM;;;CAqCrC,CAAC"}
package/types/index.d.ts CHANGED
@@ -74,4 +74,5 @@ export * from './components/LinkButton';
74
74
  export * from './components/NumberFormat';
75
75
  export * from './components/Toast/ToastNew';
76
76
  export * from './components/Carousel';
77
+ export * from './components/PaginationDots';
77
78
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0B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