@salutejs/plasma-new-hope 0.325.0-canary.1954.15210668888.0 → 0.325.0-canary.1970.15211531960.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 (228) hide show
  1. package/cjs/components/PaginationDots/PaginationDot.js +59 -0
  2. package/cjs/components/PaginationDots/PaginationDot.js.map +1 -0
  3. package/cjs/components/PaginationDots/PaginationDot_baul9c.css +2 -0
  4. package/cjs/components/PaginationDots/PaginationDots.js +34 -0
  5. package/cjs/components/PaginationDots/PaginationDots.js.map +1 -0
  6. package/cjs/components/PaginationDots/PaginationDots_fm2ha5.css +2 -0
  7. package/cjs/components/PaginationDots/SmartPaginationDots.css +5 -0
  8. package/cjs/components/PaginationDots/SmartPaginationDots.js +47 -0
  9. package/cjs/components/PaginationDots/SmartPaginationDots.js.map +1 -0
  10. package/cjs/components/PaginationDots/usePaginationDots.js +40 -0
  11. package/cjs/components/PaginationDots/usePaginationDots.js.map +1 -0
  12. package/cjs/index.css +6 -5
  13. package/cjs/index.js +6 -8
  14. package/cjs/index.js.map +1 -1
  15. package/emotion/cjs/components/PaginationDots/PaginationDot.js +35 -0
  16. package/emotion/cjs/components/PaginationDots/PaginationDots.js +35 -0
  17. package/emotion/cjs/components/PaginationDots/SmartPaginationDots.js +43 -0
  18. package/emotion/cjs/components/PaginationDots/index.js +26 -0
  19. package/emotion/cjs/components/PaginationDots/usePaginationDots.js +38 -0
  20. package/emotion/cjs/index.js +11 -11
  21. package/emotion/es/components/PaginationDots/PaginationDot.js +28 -0
  22. package/emotion/es/components/PaginationDots/PaginationDots.js +28 -0
  23. package/emotion/es/components/PaginationDots/SmartPaginationDots.js +36 -0
  24. package/emotion/es/components/PaginationDots/index.js +3 -0
  25. package/emotion/es/components/PaginationDots/usePaginationDots.js +32 -0
  26. package/emotion/es/index.js +1 -2
  27. package/es/components/PaginationDots/PaginationDot.js +54 -0
  28. package/es/components/PaginationDots/PaginationDot.js.map +1 -0
  29. package/es/components/PaginationDots/PaginationDot_baul9c.css +2 -0
  30. package/es/components/PaginationDots/PaginationDots.js +29 -0
  31. package/es/components/PaginationDots/PaginationDots.js.map +1 -0
  32. package/es/components/PaginationDots/PaginationDots_fm2ha5.css +2 -0
  33. package/es/components/PaginationDots/SmartPaginationDots.css +5 -0
  34. package/es/components/PaginationDots/SmartPaginationDots.js +39 -0
  35. package/es/components/PaginationDots/SmartPaginationDots.js.map +1 -0
  36. package/es/components/PaginationDots/usePaginationDots.js +36 -0
  37. package/es/components/PaginationDots/usePaginationDots.js.map +1 -0
  38. package/es/index.css +6 -5
  39. package/es/index.js +3 -3
  40. package/package.json +2 -2
  41. package/styled-components/cjs/components/PaginationDots/PaginationDot.js +33 -0
  42. package/styled-components/cjs/components/PaginationDots/PaginationDots.js +24 -0
  43. package/styled-components/cjs/components/PaginationDots/SmartPaginationDots.js +43 -0
  44. package/styled-components/cjs/components/PaginationDots/index.js +26 -0
  45. package/styled-components/cjs/components/PaginationDots/usePaginationDots.js +38 -0
  46. package/styled-components/cjs/index.js +11 -11
  47. package/styled-components/es/components/PaginationDots/PaginationDot.js +26 -0
  48. package/styled-components/es/components/PaginationDots/PaginationDots.js +18 -0
  49. package/styled-components/es/components/PaginationDots/SmartPaginationDots.js +36 -0
  50. package/styled-components/es/components/PaginationDots/index.js +3 -0
  51. package/styled-components/es/components/PaginationDots/usePaginationDots.js +32 -0
  52. package/styled-components/es/index.js +1 -2
  53. package/types/components/PaginationDots/PaginationDot.d.ts +21 -0
  54. package/types/components/PaginationDots/PaginationDot.d.ts.map +1 -0
  55. package/types/components/PaginationDots/PaginationDots.d.ts +15 -0
  56. package/types/components/PaginationDots/PaginationDots.d.ts.map +1 -0
  57. package/types/components/PaginationDots/SmartPaginationDots.d.ts +15 -0
  58. package/types/components/PaginationDots/SmartPaginationDots.d.ts.map +1 -0
  59. package/types/components/PaginationDots/index.d.ts +6 -0
  60. package/types/components/PaginationDots/index.d.ts.map +1 -0
  61. package/types/components/PaginationDots/usePaginationDots.d.ts +14 -0
  62. package/types/components/PaginationDots/usePaginationDots.d.ts.map +1 -0
  63. package/types/index.d.ts +1 -2
  64. package/types/index.d.ts.map +1 -1
  65. package/cjs/components/List/List.css +0 -1
  66. package/cjs/components/List/List.js +0 -63
  67. package/cjs/components/List/List.js.map +0 -1
  68. package/cjs/components/List/List.styles.js +0 -9
  69. package/cjs/components/List/List.styles.js.map +0 -1
  70. package/cjs/components/List/List.styles_9yg2yl.css +0 -1
  71. package/cjs/components/List/List.tokens.js +0 -41
  72. package/cjs/components/List/List.tokens.js.map +0 -1
  73. package/cjs/components/List/ui/ListItem.css +0 -18
  74. package/cjs/components/List/ui/ListItem.js +0 -27
  75. package/cjs/components/List/ui/ListItem.js.map +0 -1
  76. package/cjs/components/List/ui/ListItem.styles.js +0 -28
  77. package/cjs/components/List/ui/ListItem.styles.js.map +0 -1
  78. package/cjs/components/List/ui/ListItem.styles_1eo5k14.css +0 -2
  79. package/cjs/components/List/variations/_disabled/base.js +0 -9
  80. package/cjs/components/List/variations/_disabled/base.js.map +0 -1
  81. package/cjs/components/List/variations/_disabled/base_x642ct.css +0 -1
  82. package/cjs/components/List/variations/_size/base.js +0 -9
  83. package/cjs/components/List/variations/_size/base.js.map +0 -1
  84. package/cjs/components/List/variations/_size/base_x642ct.css +0 -1
  85. package/cjs/components/List/variations/_variant/base.js +0 -9
  86. package/cjs/components/List/variations/_variant/base.js.map +0 -1
  87. package/cjs/components/List/variations/_variant/base_x642ct.css +0 -1
  88. package/cjs/components/List/variations/_view/base.js +0 -9
  89. package/cjs/components/List/variations/_view/base.js.map +0 -1
  90. package/cjs/components/List/variations/_view/base_x642ct.css +0 -1
  91. package/emotion/cjs/components/List/List.js +0 -59
  92. package/emotion/cjs/components/List/List.styles.js +0 -9
  93. package/emotion/cjs/components/List/List.tokens.js +0 -39
  94. package/emotion/cjs/components/List/List.types.js +0 -5
  95. package/emotion/cjs/components/List/index.js +0 -38
  96. package/emotion/cjs/components/List/ui/ListItem.js +0 -24
  97. package/emotion/cjs/components/List/ui/ListItem.styles.js +0 -21
  98. package/emotion/cjs/components/List/ui/ListItem.types.js +0 -5
  99. package/emotion/cjs/components/List/variations/_disabled/base.js +0 -8
  100. package/emotion/cjs/components/List/variations/_disabled/tokens.json +0 -1
  101. package/emotion/cjs/components/List/variations/_size/base.js +0 -8
  102. package/emotion/cjs/components/List/variations/_size/tokens.json +0 -1
  103. package/emotion/cjs/components/List/variations/_variant/base.js +0 -8
  104. package/emotion/cjs/components/List/variations/_variant/tokens.json +0 -1
  105. package/emotion/cjs/components/List/variations/_view/base.js +0 -8
  106. package/emotion/cjs/components/List/variations/_view/tokens.json +0 -1
  107. package/emotion/cjs/examples/plasma_b2c/components/List/List.config.js +0 -34
  108. package/emotion/cjs/examples/plasma_b2c/components/List/List.js +0 -12
  109. package/emotion/cjs/examples/plasma_b2c/components/List/List.stories.tsx +0 -60
  110. package/emotion/cjs/examples/plasma_web/components/List/List.config.js +0 -34
  111. package/emotion/cjs/examples/plasma_web/components/List/List.js +0 -12
  112. package/emotion/cjs/examples/plasma_web/components/List/List.stories.tsx +0 -60
  113. package/emotion/es/components/List/List.js +0 -50
  114. package/emotion/es/components/List/List.styles.js +0 -3
  115. package/emotion/es/components/List/List.tokens.js +0 -33
  116. package/emotion/es/components/List/List.types.js +0 -1
  117. package/emotion/es/components/List/index.js +0 -3
  118. package/emotion/es/components/List/ui/ListItem.js +0 -17
  119. package/emotion/es/components/List/ui/ListItem.styles.js +0 -14
  120. package/emotion/es/components/List/ui/ListItem.types.js +0 -1
  121. package/emotion/es/components/List/variations/_disabled/base.js +0 -2
  122. package/emotion/es/components/List/variations/_disabled/tokens.json +0 -1
  123. package/emotion/es/components/List/variations/_size/base.js +0 -2
  124. package/emotion/es/components/List/variations/_size/tokens.json +0 -1
  125. package/emotion/es/components/List/variations/_variant/base.js +0 -2
  126. package/emotion/es/components/List/variations/_variant/tokens.json +0 -1
  127. package/emotion/es/components/List/variations/_view/base.js +0 -2
  128. package/emotion/es/components/List/variations/_view/tokens.json +0 -1
  129. package/emotion/es/examples/plasma_b2c/components/List/List.config.js +0 -28
  130. package/emotion/es/examples/plasma_b2c/components/List/List.js +0 -6
  131. package/emotion/es/examples/plasma_b2c/components/List/List.stories.tsx +0 -60
  132. package/emotion/es/examples/plasma_web/components/List/List.config.js +0 -28
  133. package/emotion/es/examples/plasma_web/components/List/List.js +0 -6
  134. package/emotion/es/examples/plasma_web/components/List/List.stories.tsx +0 -60
  135. package/es/components/List/List.css +0 -1
  136. package/es/components/List/List.js +0 -54
  137. package/es/components/List/List.js.map +0 -1
  138. package/es/components/List/List.styles.js +0 -5
  139. package/es/components/List/List.styles.js.map +0 -1
  140. package/es/components/List/List.styles_9yg2yl.css +0 -1
  141. package/es/components/List/List.tokens.js +0 -36
  142. package/es/components/List/List.tokens.js.map +0 -1
  143. package/es/components/List/ui/ListItem.css +0 -18
  144. package/es/components/List/ui/ListItem.js +0 -19
  145. package/es/components/List/ui/ListItem.js.map +0 -1
  146. package/es/components/List/ui/ListItem.styles.js +0 -23
  147. package/es/components/List/ui/ListItem.styles.js.map +0 -1
  148. package/es/components/List/ui/ListItem.styles_1eo5k14.css +0 -2
  149. package/es/components/List/variations/_disabled/base.js +0 -5
  150. package/es/components/List/variations/_disabled/base.js.map +0 -1
  151. package/es/components/List/variations/_disabled/base_x642ct.css +0 -1
  152. package/es/components/List/variations/_size/base.js +0 -5
  153. package/es/components/List/variations/_size/base.js.map +0 -1
  154. package/es/components/List/variations/_size/base_x642ct.css +0 -1
  155. package/es/components/List/variations/_variant/base.js +0 -5
  156. package/es/components/List/variations/_variant/base.js.map +0 -1
  157. package/es/components/List/variations/_variant/base_x642ct.css +0 -1
  158. package/es/components/List/variations/_view/base.js +0 -5
  159. package/es/components/List/variations/_view/base.js.map +0 -1
  160. package/es/components/List/variations/_view/base_x642ct.css +0 -1
  161. package/styled-components/cjs/components/List/List.js +0 -59
  162. package/styled-components/cjs/components/List/List.styles.js +0 -9
  163. package/styled-components/cjs/components/List/List.tokens.js +0 -39
  164. package/styled-components/cjs/components/List/List.types.js +0 -5
  165. package/styled-components/cjs/components/List/index.js +0 -38
  166. package/styled-components/cjs/components/List/ui/ListItem.js +0 -24
  167. package/styled-components/cjs/components/List/ui/ListItem.styles.js +0 -19
  168. package/styled-components/cjs/components/List/ui/ListItem.types.js +0 -5
  169. package/styled-components/cjs/components/List/variations/_disabled/base.js +0 -8
  170. package/styled-components/cjs/components/List/variations/_disabled/tokens.json +0 -1
  171. package/styled-components/cjs/components/List/variations/_size/base.js +0 -8
  172. package/styled-components/cjs/components/List/variations/_size/tokens.json +0 -1
  173. package/styled-components/cjs/components/List/variations/_variant/base.js +0 -8
  174. package/styled-components/cjs/components/List/variations/_variant/tokens.json +0 -1
  175. package/styled-components/cjs/components/List/variations/_view/base.js +0 -8
  176. package/styled-components/cjs/components/List/variations/_view/tokens.json +0 -1
  177. package/styled-components/cjs/examples/plasma_b2c/components/List/List.config.js +0 -34
  178. package/styled-components/cjs/examples/plasma_b2c/components/List/List.js +0 -12
  179. package/styled-components/cjs/examples/plasma_b2c/components/List/List.stories.tsx +0 -60
  180. package/styled-components/cjs/examples/plasma_web/components/List/List.config.js +0 -34
  181. package/styled-components/cjs/examples/plasma_web/components/List/List.js +0 -12
  182. package/styled-components/cjs/examples/plasma_web/components/List/List.stories.tsx +0 -60
  183. package/styled-components/es/components/List/List.js +0 -50
  184. package/styled-components/es/components/List/List.styles.js +0 -3
  185. package/styled-components/es/components/List/List.tokens.js +0 -33
  186. package/styled-components/es/components/List/List.types.js +0 -1
  187. package/styled-components/es/components/List/index.js +0 -3
  188. package/styled-components/es/components/List/ui/ListItem.js +0 -17
  189. package/styled-components/es/components/List/ui/ListItem.styles.js +0 -12
  190. package/styled-components/es/components/List/ui/ListItem.types.js +0 -1
  191. package/styled-components/es/components/List/variations/_disabled/base.js +0 -2
  192. package/styled-components/es/components/List/variations/_disabled/tokens.json +0 -1
  193. package/styled-components/es/components/List/variations/_size/base.js +0 -2
  194. package/styled-components/es/components/List/variations/_size/tokens.json +0 -1
  195. package/styled-components/es/components/List/variations/_variant/base.js +0 -2
  196. package/styled-components/es/components/List/variations/_variant/tokens.json +0 -1
  197. package/styled-components/es/components/List/variations/_view/base.js +0 -2
  198. package/styled-components/es/components/List/variations/_view/tokens.json +0 -1
  199. package/styled-components/es/examples/plasma_b2c/components/List/List.config.js +0 -28
  200. package/styled-components/es/examples/plasma_b2c/components/List/List.js +0 -6
  201. package/styled-components/es/examples/plasma_b2c/components/List/List.stories.tsx +0 -60
  202. package/styled-components/es/examples/plasma_web/components/List/List.config.js +0 -28
  203. package/styled-components/es/examples/plasma_web/components/List/List.js +0 -6
  204. package/styled-components/es/examples/plasma_web/components/List/List.stories.tsx +0 -60
  205. package/types/components/List/List.d.ts +0 -43
  206. package/types/components/List/List.d.ts.map +0 -1
  207. package/types/components/List/List.styles.d.ts +0 -2
  208. package/types/components/List/List.styles.d.ts.map +0 -1
  209. package/types/components/List/List.tokens.d.ts +0 -34
  210. package/types/components/List/List.tokens.d.ts.map +0 -1
  211. package/types/components/List/List.types.d.ts +0 -24
  212. package/types/components/List/List.types.d.ts.map +0 -1
  213. package/types/components/List/index.d.ts +0 -5
  214. package/types/components/List/index.d.ts.map +0 -1
  215. package/types/components/List/ui/ListItem.d.ts +0 -4
  216. package/types/components/List/ui/ListItem.d.ts.map +0 -1
  217. package/types/components/List/ui/ListItem.styles.d.ts +0 -36
  218. package/types/components/List/ui/ListItem.styles.d.ts.map +0 -1
  219. package/types/components/List/ui/ListItem.types.d.ts +0 -15
  220. package/types/components/List/ui/ListItem.types.d.ts.map +0 -1
  221. package/types/components/List/variations/_disabled/base.d.ts +0 -2
  222. package/types/components/List/variations/_disabled/base.d.ts.map +0 -1
  223. package/types/components/List/variations/_size/base.d.ts +0 -2
  224. package/types/components/List/variations/_size/base.d.ts.map +0 -1
  225. package/types/components/List/variations/_variant/base.d.ts +0 -2
  226. package/types/components/List/variations/_variant/base.d.ts.map +0 -1
  227. package/types/components/List/variations/_view/base.d.ts +0 -2
  228. package/types/components/List/variations/_view/base.d.ts.map +0 -1
@@ -0,0 +1,36 @@
1
+ var _excluded = ["items", "index", "visibleItems", "onIndexChange"];
2
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
+ import React from 'react';
5
+ import { usePaginationDots } from "./usePaginationDots";
6
+ import { PaginationDots } from "./PaginationDots";
7
+ import { PaginationDot } from "./PaginationDot";
8
+ /**
9
+ * Компонент для отображения точек пагинации
10
+ * с возможностью ограничения количества видимых элементов.
11
+ * @deprecated
12
+ */
13
+ export var SmartPaginationDots = function SmartPaginationDots(_ref) {
14
+ var items = _ref.items,
15
+ index = _ref.index,
16
+ visibleItems = _ref.visibleItems,
17
+ onIndexChange = _ref.onIndexChange,
18
+ rest = _objectWithoutProperties(_ref, _excluded);
19
+ var _usePaginationDots = usePaginationDots({
20
+ items: items,
21
+ index: index,
22
+ visibleItems: visibleItems
23
+ }),
24
+ sliced = _usePaginationDots.sliced,
25
+ activeId = _usePaginationDots.activeId;
26
+ return /*#__PURE__*/React.createElement(PaginationDots, rest, sliced.map(function (_ref2, i) {
27
+ var id = _ref2.id;
28
+ return /*#__PURE__*/React.createElement(PaginationDot, {
29
+ key: "item:".concat(i),
30
+ isActive: id === activeId,
31
+ onClick: function onClick() {
32
+ return onIndexChange === null || onIndexChange === void 0 ? void 0 : onIndexChange(i);
33
+ }
34
+ });
35
+ }));
36
+ };
@@ -0,0 +1,3 @@
1
+ export { SmartPaginationDots } from "./SmartPaginationDots";
2
+ export { PaginationDots } from "./PaginationDots";
3
+ export { PaginationDot } from "./PaginationDot";
@@ -0,0 +1,32 @@
1
+ import { useRef } from 'react';
2
+ export var usePaginationDots = function usePaginationDots(_ref) {
3
+ var items = _ref.items,
4
+ index = _ref.index,
5
+ _ref$visibleItems = _ref.visibleItems,
6
+ visibleItems = _ref$visibleItems === void 0 ? 7 : _ref$visibleItems;
7
+ var activeId = items[index].id;
8
+ var prevIndex = useRef(null);
9
+ var direction = 0;
10
+ if (prevIndex.current !== null) {
11
+ direction = index > prevIndex.current ? 1 : -1;
12
+ }
13
+ var start;
14
+ var end;
15
+ if (direction === 1) {
16
+ end = Math.min(Math.max(index + 2, visibleItems), items.length);
17
+ start = Math.max(end - visibleItems, 0);
18
+ } else if (direction === -1) {
19
+ start = Math.min(Math.max(index - 1, 0), items.length - visibleItems);
20
+ end = start + visibleItems;
21
+ } else {
22
+ start = Math.max(index - Math.floor(visibleItems / 2), 0);
23
+ end = Math.min(start + visibleItems, items.length);
24
+ start = end - visibleItems;
25
+ }
26
+ var sliced = items.slice(start, end);
27
+ prevIndex.current = index;
28
+ return {
29
+ sliced: sliced,
30
+ activeId: activeId
31
+ };
32
+ };
@@ -72,9 +72,8 @@ export * from "./components/Tree";
72
72
  export * from "./components/Rating";
73
73
  export * from "./components/Note";
74
74
  export * from "./components/Table";
75
- export * from "./components/List";
76
75
  export * from "./components/LinkButton";
77
76
  export * from "./components/NumberFormat";
78
77
  export * from "./components/Toast/ToastNew";
79
78
  export * from "./components/Carousel";
80
- export * from "./components/List";
79
+ export * from "./components/PaginationDots";
@@ -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
@@ -70,10 +70,9 @@ export * from './components/Tree';
70
70
  export * from './components/Rating';
71
71
  export * from './components/Note';
72
72
  export * from './components/Table';
73
- export * from './components/List';
74
73
  export * from './components/LinkButton';
75
74
  export * from './components/NumberFormat';
76
75
  export * from './components/Toast/ToastNew';
77
76
  export * from './components/Carousel';
78
- export * from './components/List';
77
+ export * from './components/PaginationDots';
79
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,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC"}
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,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC"}
@@ -1 +0,0 @@
1
- .List_styles_9yg2yl_bmg9h6q__9d5ed4ad{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--plasma-list-gap);-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;height:auto;width:100%;list-style-type:none;padding:0;margin:0;}
@@ -1,63 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var React = require('react');
6
- var index = require('../../utils/index.js');
7
- var List_styles = require('./List.styles.js');
8
- var List_tokens = require('./List.tokens.js');
9
- var base$2 = require('./variations/_variant/base.js');
10
- var base = require('./variations/_view/base.js');
11
- var base$1 = require('./variations/_size/base.js');
12
- var base$3 = require('./variations/_disabled/base.js');
13
-
14
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
15
-
16
- var React__default = /*#__PURE__*/_interopDefault(React);
17
-
18
- var listRoot = function listRoot(Root) {
19
- return /*#__PURE__*/React.forwardRef(function (_ref, outerRootRef) {
20
- var size = _ref.size,
21
- view = _ref.view,
22
- variant = _ref.variant,
23
- disabled = _ref.disabled,
24
- className = _ref.className,
25
- children = _ref.children;
26
- return /*#__PURE__*/React__default.default.createElement(Root, {
27
- ref: outerRootRef,
28
- size: size,
29
- view: view,
30
- variant: variant,
31
- disabled: disabled,
32
- className: index.cx(List_tokens.classes.listRoot, className)
33
- }, children);
34
- });
35
- };
36
- var listConfig = {
37
- name: 'List',
38
- tag: 'ul',
39
- layout: listRoot,
40
- base: List_styles.base,
41
- variations: {
42
- view: {
43
- css: base.base
44
- },
45
- size: {
46
- css: base$1.base
47
- },
48
- variant: {
49
- css: base$2.base
50
- },
51
- disabled: {
52
- css: base$3.base
53
- }
54
- },
55
- defaults: {
56
- view: 'default',
57
- size: 'm'
58
- }
59
- };
60
-
61
- exports.listConfig = listConfig;
62
- exports.listRoot = listRoot;
63
- //# sourceMappingURL=List.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"List.js","sources":["../../../src/components/List/List.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { RootProps } from '../../engines';\nimport { cx } from '../../utils';\n\nimport type { ListProps } from './List.types';\nimport { base } from './List.styles';\nimport { classes } from './List.tokens';\nimport { base as variantCSS } from './variations/_variant/base';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\n\nexport const listRoot = (Root: RootProps<HTMLDivElement, ListProps>) =>\n forwardRef<HTMLDivElement, ListProps>(({ size, view, variant, disabled, className, children }, outerRootRef) => {\n return (\n <Root\n ref={outerRootRef}\n size={size}\n view={view}\n variant={variant}\n disabled={disabled}\n className={cx(classes.listRoot, className)}\n >\n {children}\n </Root>\n );\n });\n\nexport const listConfig = {\n name: 'List',\n tag: 'ul',\n layout: listRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n variant: {\n css: variantCSS,\n },\n disabled: {\n css: disabledCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n },\n};\n"],"names":["listRoot","Root","forwardRef","_ref","outerRootRef","size","view","variant","disabled","className","children","React","createElement","ref","cx","classes","listConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","variantCSS","disabledCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;IAaaA,QAAQ,GAAG,SAAXA,QAAQA,CAAIC,IAA0C,EAAA;AAAA,EAAA,oBAC/DC,gBAAU,CAA4B,UAAAC,IAAA,EAAyDC,YAAY,EAAK;AAAA,IAAA,IAAvEC,IAAI,GAAAF,IAAA,CAAJE,IAAI;MAAEC,IAAI,GAAAH,IAAA,CAAJG,IAAI;MAAEC,OAAO,GAAAJ,IAAA,CAAPI,OAAO;MAAEC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;MAAEC,SAAS,GAAAN,IAAA,CAATM,SAAS;MAAEC,QAAQ,GAAAP,IAAA,CAARO,QAAQ,CAAA;AACvF,IAAA,oBACIC,sBAAA,CAAAC,aAAA,CAACX,IAAI,EAAA;AACDY,MAAAA,GAAG,EAAET,YAAa;AAClBC,MAAAA,IAAI,EAAEA,IAAK;AACXC,MAAAA,IAAI,EAAEA,IAAK;AACXC,MAAAA,OAAO,EAAEA,OAAQ;AACjBC,MAAAA,QAAQ,EAAEA,QAAS;AACnBC,MAAAA,SAAS,EAAEK,QAAE,CAACC,mBAAO,CAACf,QAAQ,EAAES,SAAS,CAAA;AAAE,KAAA,EAE1CC,QACC,CAAC,CAAA;AAEf,GAAC,CAAC,CAAA;AAAA,EAAA;AAEC,IAAMM,UAAU,GAAG;AACtBC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,GAAG,EAAE,IAAI;AACTC,EAAAA,MAAM,EAAEnB,QAAQ;AAChBoB,EAAAA,IAAI,EAAJA,gBAAI;AACJC,EAAAA,UAAU,EAAE;AACRf,IAAAA,IAAI,EAAE;AACFgB,MAAAA,GAAG,EAAEC,SAAAA;KACR;AACDlB,IAAAA,IAAI,EAAE;AACFiB,MAAAA,GAAG,EAAEE,WAAAA;KACR;AACDjB,IAAAA,OAAO,EAAE;AACLe,MAAAA,GAAG,EAAEG,WAAAA;KACR;AACDjB,IAAAA,QAAQ,EAAE;AACNc,MAAAA,GAAG,EAAEI,WAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNrB,IAAAA,IAAI,EAAE,SAAS;AACfD,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;;"}
@@ -1,9 +0,0 @@
1
- require('./List.styles_9yg2yl.css');
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- var base = "bmg9h6q";
7
-
8
- exports.base = base;
9
- //# sourceMappingURL=List.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"List.styles.js","sources":["../../../src/components/List/List.styles.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from './List.tokens';\n\nexport const base = css`\n display: flex;\n flex-direction: column;\n gap: var(${tokens.listGap});\n align-items: stretch;\n height: auto;\n width: 100%;\n list-style-type: none;\n padding: 0;\n margin: 0;\n`;\n"],"names":["base"],"mappings":";;;;AAIO,IAAMA,IAAI,GAUhB;;;;"}
@@ -1 +0,0 @@
1
- .bmg9h6q{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--plasma-list-gap);-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;height:auto;width:100%;list-style-type:none;padding:0;margin:0;}
@@ -1,41 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var classes = {
6
- listRoot: 'list-root',
7
- listItem: 'list-item',
8
- filledStretching: 'list-stretching-filled',
9
- fixedStretching: 'list-stretching-fixed'
10
- };
11
- var tokens = {
12
- listGap: '--plasma-list-gap',
13
- listWidth: '--plasma-list-width',
14
- listItemBackground: '--plasma-list-item-background',
15
- listItemBackgroundHover: '--plasma-list-item-background-hover',
16
- listItemBorderRadius: '--plasma-list-item-border-radius',
17
- listItemPaddingLeft: '--plasma-list-item-padding-left',
18
- listItemPaddingRight: '--plasma-list-item-padding-right',
19
- listItemPaddingTop: '--plasma-list-item-padding-top',
20
- listItemPaddingBottom: '--plasma-list-item-padding-bottom',
21
- listItemBorderColor: '--plasma-list-item-border-color',
22
- listItemBorderColorHover: '--plasma-list-item-border-color-hover',
23
- listItemBorderWidth: '--plasma-list-item-border-width',
24
- listItemIconLeftColor: '--plasma-list-item-color-icon-left',
25
- listItemIconRightColor: '--plasma-list-item-color-icon-right',
26
- listItemGap: '--plasma-list-item-gap',
27
- listItemVariantDifference: '--plasma-list-item-variant-difference',
28
- listItemColor: '--plasma-list-item-color',
29
- listItemColorHover: '--plasma-list-item-color-hover',
30
- listItemFontFamily: '--plasma-list-item-font-family',
31
- listItemFontSize: '--plasma-list-item-font-size',
32
- listItemFontStyle: '--plasma-list-item-font-style',
33
- listItemFontWeight: '--plasma-list-item-font-weight',
34
- listItemLetterSpacing: '--plasma-list-item-letter-spacing',
35
- listItemLineHeight: '--plasma-list-item-line-height',
36
- listDisabledOpacity: '--plasma-list-disabled-opacity'
37
- };
38
-
39
- exports.classes = classes;
40
- exports.tokens = tokens;
41
- //# sourceMappingURL=List.tokens.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"List.tokens.js","sources":["../../../src/components/List/List.tokens.ts"],"sourcesContent":["export const classes = {\n listRoot: 'list-root',\n listItem: 'list-item',\n filledStretching: 'list-stretching-filled',\n fixedStretching: 'list-stretching-fixed',\n};\n\nexport const tokens = {\n listGap: '--plasma-list-gap',\n listWidth: '--plasma-list-width',\n\n listItemBackground: '--plasma-list-item-background',\n listItemBackgroundHover: '--plasma-list-item-background-hover',\n listItemBorderRadius: '--plasma-list-item-border-radius',\n listItemPaddingLeft: '--plasma-list-item-padding-left',\n listItemPaddingRight: '--plasma-list-item-padding-right',\n listItemPaddingTop: '--plasma-list-item-padding-top',\n listItemPaddingBottom: '--plasma-list-item-padding-bottom',\n listItemBorderColor: '--plasma-list-item-border-color',\n listItemBorderColorHover: '--plasma-list-item-border-color-hover',\n listItemBorderWidth: '--plasma-list-item-border-width',\n listItemIconLeftColor: '--plasma-list-item-color-icon-left',\n listItemIconRightColor: '--plasma-list-item-color-icon-right',\n listItemGap: '--plasma-list-item-gap',\n listItemVariantDifference: '--plasma-list-item-variant-difference',\n\n listItemColor: '--plasma-list-item-color',\n listItemColorHover: '--plasma-list-item-color-hover',\n listItemFontFamily: '--plasma-list-item-font-family',\n listItemFontSize: '--plasma-list-item-font-size',\n listItemFontStyle: '--plasma-list-item-font-style',\n listItemFontWeight: '--plasma-list-item-font-weight',\n listItemLetterSpacing: '--plasma-list-item-letter-spacing',\n listItemLineHeight: '--plasma-list-item-line-height',\n\n listDisabledOpacity: '--plasma-list-disabled-opacity',\n};\n"],"names":["classes","listRoot","listItem","filledStretching","fixedStretching","tokens","listGap","listWidth","listItemBackground","listItemBackgroundHover","listItemBorderRadius","listItemPaddingLeft","listItemPaddingRight","listItemPaddingTop","listItemPaddingBottom","listItemBorderColor","listItemBorderColorHover","listItemBorderWidth","listItemIconLeftColor","listItemIconRightColor","listItemGap","listItemVariantDifference","listItemColor","listItemColorHover","listItemFontFamily","listItemFontSize","listItemFontStyle","listItemFontWeight","listItemLetterSpacing","listItemLineHeight","listDisabledOpacity"],"mappings":";;;;AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,QAAQ,EAAE,WAAW;AACrBC,EAAAA,QAAQ,EAAE,WAAW;AACrBC,EAAAA,gBAAgB,EAAE,wBAAwB;AAC1CC,EAAAA,eAAe,EAAE,uBAAA;AACrB,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,OAAO,EAAE,mBAAmB;AAC5BC,EAAAA,SAAS,EAAE,qBAAqB;AAEhCC,EAAAA,kBAAkB,EAAE,+BAA+B;AACnDC,EAAAA,uBAAuB,EAAE,qCAAqC;AAC9DC,EAAAA,oBAAoB,EAAE,kCAAkC;AACxDC,EAAAA,mBAAmB,EAAE,iCAAiC;AACtDC,EAAAA,oBAAoB,EAAE,kCAAkC;AACxDC,EAAAA,kBAAkB,EAAE,gCAAgC;AACpDC,EAAAA,qBAAqB,EAAE,mCAAmC;AAC1DC,EAAAA,mBAAmB,EAAE,iCAAiC;AACtDC,EAAAA,wBAAwB,EAAE,uCAAuC;AACjEC,EAAAA,mBAAmB,EAAE,iCAAiC;AACtDC,EAAAA,qBAAqB,EAAE,oCAAoC;AAC3DC,EAAAA,sBAAsB,EAAE,qCAAqC;AAC7DC,EAAAA,WAAW,EAAE,wBAAwB;AACrCC,EAAAA,yBAAyB,EAAE,uCAAuC;AAElEC,EAAAA,aAAa,EAAE,0BAA0B;AACzCC,EAAAA,kBAAkB,EAAE,gCAAgC;AACpDC,EAAAA,kBAAkB,EAAE,gCAAgC;AACpDC,EAAAA,gBAAgB,EAAE,8BAA8B;AAChDC,EAAAA,iBAAiB,EAAE,+BAA+B;AAClDC,EAAAA,kBAAkB,EAAE,gCAAgC;AACpDC,EAAAA,qBAAqB,EAAE,mCAAmC;AAC1DC,EAAAA,kBAAkB,EAAE,gCAAgC;AAEpDC,EAAAA,mBAAmB,EAAE,gCAAA;AACzB;;;;;"}
@@ -1,18 +0,0 @@
1
- .CellTextboxLabel_styles_1x97zqi_supiagz__b05150dd{color:var(--plasma-cell-label-color);font-size:var(--plasma-cell-label-font-size);font-weight:var(--plasma-cell-label-font-weight);font-family:var(--plasma-cell-label-font-family);font-style:var(--plasma-cell-label-font-style);line-height:var(--plasma-cell-label-line-height);-webkit-letter-spacing:var(--plasma-cell-label-letter-spacing);-moz-letter-spacing:var(--plasma-cell-label-letter-spacing);-ms-letter-spacing:var(--plasma-cell-label-letter-spacing);letter-spacing:var(--plasma-cell-label-letter-spacing);}
2
-
3
- .CellTextboxTitle_styles_jogov7_s16psy9b__edbbb199{color:var(--plasma-cell-title-color);font-size:var(--plasma-cell-title-font-size);font-weight:var(--plasma-cell-title-font-weight);font-family:var(--plasma-cell-title-font-family);font-style:var(--plasma-cell-title-font-style);line-height:var(--plasma-cell-title-line-height);-webkit-letter-spacing:var(--plasma-cell-title-letter-spacing);-moz-letter-spacing:var(--plasma-cell-title-letter-spacing);-ms-letter-spacing:var(--plasma-cell-title-letter-spacing);letter-spacing:var(--plasma-cell-title-letter-spacing);}
4
-
5
- .CellTextboxSubtitle_styles_n7i06q_s1bdz4u4__8e9f9a5a{color:var(--plasma-cell-subtitle-color);font-size:var(--plasma-cell-subtitle-font-size);font-weight:var(--plasma-cell-subtitle-font-weight);font-family:var(--plasma-cell-subtitle-font-family);font-style:var(--plasma-cell-subtitle-font-style);line-height:var(--plasma-cell-subtitle-line-height);-webkit-letter-spacing:var(--plasma-cell-subtitle-letter-spacing);-moz-letter-spacing:var(--plasma-cell-subtitle-letter-spacing);-ms-letter-spacing:var(--plasma-cell-subtitle-letter-spacing);letter-spacing:var(--plasma-cell-subtitle-letter-spacing);}
6
-
7
- .Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_cellStretchingFixed__a35afa10{width:var(--plasma-cell-width);}.Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_cellStretchingFilled__a35afa10{width:100%;}.Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_cellStretchingAuto__a35afa10{width:auto;}
8
- .Cell_styles_1lali49_c1e5qbb3__a35afa10{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:auto;-ms-flex:auto;flex:auto;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;gap:var(--plasma-cell-gap);height:auto;}
9
- .Cell_styles_1lali49_cdgokyj__a35afa10{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:auto;}
10
- .Cell_styles_1lali49_c1k87ec1__a35afa10{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:var(--c1k87ec1-0);-webkit-box-align:var(--c1k87ec1-0);-ms-flex-align:var(--c1k87ec1-0);align-items:var(--c1k87ec1-0);}
11
- .Cell_styles_1lali49_c1spqh22__a35afa10{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:var(--c1spqh22-0);-webkit-box-align:var(--c1spqh22-0);-ms-flex-align:var(--c1spqh22-0);align-items:var(--c1spqh22-0);text-align:right;}
12
-
13
- .base_pir0qf_b1sr9i7l__baa3f156{color:var(--plasma-cell-color);background-color:var(--plasma-cell-background-color);width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;gap:var(--plasma-cell-gap);}.base_pir0qf_b1sr9i7l__baa3f156:focus{outline:0 none;}
14
-
15
- .CellTextbox_styles_rgpies_cz0uqdu__c842929b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--plasma-cell-textbox-gap);}
16
-
17
- .ListItem_styles_1eo5k14_c15dpad4__135d0b75{--plasma-cell-width:100%;--plasma-cell-padding:0rem;--plasma-cell-padding-left-content:0rem;--plasma-cell-padding-content:0rem;--plasma-cell-padding-right-content:0rem;--plasma-cell-textbox-gap:0rem;--plasma-cell-gap:var(--plasma-list-item-gap);--plasma-cell-color:var(--plasma-list-item-color);--plasma-cell-background-color:transparent;}
18
- .ListItem_styles_1eo5k14_s17e6by7__135d0b75{padding:calc(var(--plasma-list-item-padding-top) - var(--plasma-list-item-variant-difference)) var(--plasma-list-item-padding-right) calc(var(--plasma-list-item-padding-bottom) - var(--plasma-list-item-variant-difference)) var(--plasma-list-item-padding-left);border-radius:var(--plasma-list-item-border-radius);background:var(--plasma-list-item-background);border:var(--plasma-list-item-border-width) solid var(--plasma-list-item-border-color);box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--plasma-list-item-color);font-size:var(--plasma-list-item-font-size);font-weight:var(--plasma-list-item-font-weight);font-family:var(--plasma-list-item-font-family);font-style:var(--plasma-list-item-font-style);line-height:var(--plasma-list-item-line-height);-webkit-letter-spacing:var(--plasma-list-item-letter-spacing);-moz-letter-spacing:var(--plasma-list-item-letter-spacing);-ms-letter-spacing:var(--plasma-list-item-letter-spacing);letter-spacing:var(--plasma-list-item-letter-spacing);}.ListItem_styles_1eo5k14_s17e6by7__135d0b75:hover{background:var(--plasma-list-item-background-hover);border-color:var(--plasma-list-item-border-color-hover);color:var(--plasma-list-item-color-hover);}.ListItem_styles_1eo5k14_s17e6by7__135d0b75[disabled]{cursor:not-allowed;opacity:var(--plasma-list-disabled-opacity);}
@@ -1,27 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
6
- var React = require('react');
7
- var ListItem_styles = require('./ListItem.styles.js');
8
-
9
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
-
11
- var React__default = /*#__PURE__*/_interopDefault(React);
12
-
13
- var _excluded = ["children", "contentRight", "disabled"];
14
- var ListItem = function ListItem(_ref) {
15
- var children = _ref.children,
16
- contentRight = _ref.contentRight,
17
- disabled = _ref.disabled,
18
- rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
19
- return /*#__PURE__*/React__default.default.createElement(ListItem_styles.StyledListItem, _rollupPluginBabelHelpers.extends({
20
- disabled: disabled
21
- }, rest), /*#__PURE__*/React__default.default.createElement(ListItem_styles.CellItem, {
22
- contentRight: contentRight
23
- }, children));
24
- };
25
-
26
- exports.ListItem = ListItem;
27
- //# sourceMappingURL=ListItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ListItem.js","sources":["../../../../src/components/List/ui/ListItem.tsx"],"sourcesContent":["import React, { HTMLAttributes } from 'react';\n\nimport { StyledListItem, CellItem } from './ListItem.styles';\nimport { ListItemProps } from './ListItem.types';\n\nexport const ListItem: React.FC<HTMLAttributes<HTMLLIElement> & ListItemProps> = ({\n children,\n contentRight,\n disabled,\n ...rest\n}) => {\n return (\n <StyledListItem disabled={disabled} {...rest}>\n <CellItem contentRight={contentRight}>{children}</CellItem>\n </StyledListItem>\n );\n};\n"],"names":["ListItem","_ref","children","contentRight","disabled","rest","_objectWithoutProperties","_excluded","React","createElement","StyledListItem","_extends","CellItem"],"mappings":";;;;;;;;;;;;;IAKaA,QAAiE,GAAG,SAApEA,QAAiEA,CAAAC,IAAA,EAKxE;AAAA,EAAA,IAJFC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IACRC,YAAY,GAAAF,IAAA,CAAZE,YAAY;IACZC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;AACLC,IAAAA,IAAI,GAAAC,iDAAA,CAAAL,IAAA,EAAAM,SAAA,CAAA,CAAA;AAEP,EAAA,oBACIC,sBAAA,CAAAC,aAAA,CAACC,8BAAc,EAAAC,iCAAA,CAAA;AAACP,IAAAA,QAAQ,EAAEA,QAAAA;AAAS,GAAA,EAAKC,IAAI,CACxCG,eAAAA,sBAAA,CAAAC,aAAA,CAACG,wBAAQ,EAAA;AAACT,IAAAA,YAAY,EAAEA,YAAAA;GAAeD,EAAAA,QAAmB,CAC9C,CAAC,CAAA;AAEzB;;;;"}
@@ -1,28 +0,0 @@
1
- require('./ListItem.styles_1eo5k14.css');
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- var react = require('@linaria/react');
7
- var common = require('../../../engines/common.js');
8
- var Cell$1 = require('../../Cell/Cell.js');
9
-
10
- var mergedCellConfig = /*#__PURE__*/common.mergeConfig(Cell$1.cellConfig);
11
- var Cell = /*#__PURE__*/common.component(mergedCellConfig);
12
- var _exp = function _exp() {
13
- return Cell;
14
- };
15
- var CellItem = /*#__PURE__*/react.styled(_exp())({
16
- name: "CellItem",
17
- "class": "c15dpad4",
18
- propsAsIs: true
19
- });
20
- var StyledListItem = /*#__PURE__*/react.styled('li')({
21
- name: "StyledListItem",
22
- "class": "s17e6by7",
23
- propsAsIs: false
24
- });
25
-
26
- exports.CellItem = CellItem;
27
- exports.StyledListItem = StyledListItem;
28
- //# sourceMappingURL=ListItem.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ListItem.styles.js","sources":["../../../../src/components/List/ui/ListItem.styles.tsx"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { tokens } from '../List.tokens';\nimport { cellConfig, cellTokens } from '../../Cell';\nimport { component, mergeConfig } from '../../../engines';\n\nconst mergedCellConfig = mergeConfig(cellConfig);\nconst Cell = component(mergedCellConfig);\n\nexport const CellItem = styled(Cell)`\n ${cellTokens.cellWidth}: 100%;\n\n ${cellTokens.cellPadding}: 0rem;\n ${cellTokens.cellPaddingLeftContent}: 0rem;\n ${cellTokens.cellPaddingContent}: 0rem;\n ${cellTokens.cellPaddingRightContent}: 0rem;\n\n ${cellTokens.cellTextboxGap}: 0rem;\n ${cellTokens.cellGap}: var(${tokens.listItemGap});\n ${cellTokens.cellColor}: var(${tokens.listItemColor});\n ${cellTokens.cellBackgroundColor}: transparent;\n`;\n\nexport const StyledListItem = styled.li<{ disabled?: boolean }>`\n padding: calc(var(${tokens.listItemPaddingTop}) - var(${tokens.listItemVariantDifference}))\n var(${tokens.listItemPaddingRight})\n calc(var(${tokens.listItemPaddingBottom}) - var(${tokens.listItemVariantDifference}))\n var(${tokens.listItemPaddingLeft});\n border-radius: var(${tokens.listItemBorderRadius});\n background: var(${tokens.listItemBackground});\n border: var(${tokens.listItemBorderWidth}) solid var(${tokens.listItemBorderColor});\n\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n color: var(${tokens.listItemColor});\n font-size: var(${tokens.listItemFontSize});\n font-weight: var(${tokens.listItemFontWeight});\n font-family: var(${tokens.listItemFontFamily});\n font-style: var(${tokens.listItemFontStyle});\n line-height: var(${tokens.listItemLineHeight});\n letter-spacing: var(${tokens.listItemLetterSpacing});\n\n &:hover {\n background: var(${tokens.listItemBackgroundHover});\n border-color: var(${tokens.listItemBorderColorHover});\n color: var(${tokens.listItemColorHover});\n }\n\n &[disabled] {\n cursor: not-allowed;\n opacity: var(${tokens.listDisabledOpacity});\n }\n`;\n"],"names":["mergedCellConfig","mergeConfig","cellConfig","Cell","component","_exp","CellItem","styled","name","class","propsAsIs","StyledListItem"],"mappings":";;;;;;;;AAMA,IAAMA,gBAAgB,gBAAGC,kBAAW,CAACC,iBAAU,CAAC,CAAA;AAChD,IAAMC,IAAI,gBAAGC,gBAAS,CAACJ,gBAAgB,CAAC,CAAA;AAAC,IAAAK,IAAA,GANvBA,SAMuBA,IAAAA,GAAA;AAAA,EAAA,OAEVF,IAAI,CAAA;AAAA,CAAA,CAAA;AAA5B,IAAMG,QAAQ,gBAAGC,YAAM,CAAAF,IAAA,EAAA,CAAA,CAAA;AAAAG,EAAAA,IAAA,EAAA,UAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CAY7B,EAAA;AAEM,IAAMC,cAAc,gBAAGJ,YAAM,CAAA,IAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,gBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAgCnC;;;;;"}
@@ -1,2 +0,0 @@
1
- .c15dpad4{--plasma-cell-width:100%;--plasma-cell-padding:0rem;--plasma-cell-padding-left-content:0rem;--plasma-cell-padding-content:0rem;--plasma-cell-padding-right-content:0rem;--plasma-cell-textbox-gap:0rem;--plasma-cell-gap:var(--plasma-list-item-gap);--plasma-cell-color:var(--plasma-list-item-color);--plasma-cell-background-color:transparent;}
2
- .s17e6by7{padding:calc(var(--plasma-list-item-padding-top) - var(--plasma-list-item-variant-difference)) var(--plasma-list-item-padding-right) calc(var(--plasma-list-item-padding-bottom) - var(--plasma-list-item-variant-difference)) var(--plasma-list-item-padding-left);border-radius:var(--plasma-list-item-border-radius);background:var(--plasma-list-item-background);border:var(--plasma-list-item-border-width) solid var(--plasma-list-item-border-color);box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--plasma-list-item-color);font-size:var(--plasma-list-item-font-size);font-weight:var(--plasma-list-item-font-weight);font-family:var(--plasma-list-item-font-family);font-style:var(--plasma-list-item-font-style);line-height:var(--plasma-list-item-line-height);-webkit-letter-spacing:var(--plasma-list-item-letter-spacing);-moz-letter-spacing:var(--plasma-list-item-letter-spacing);-ms-letter-spacing:var(--plasma-list-item-letter-spacing);letter-spacing:var(--plasma-list-item-letter-spacing);}.s17e6by7:hover{background:var(--plasma-list-item-background-hover);border-color:var(--plasma-list-item-border-color-hover);color:var(--plasma-list-item-color-hover);}.s17e6by7[disabled]{cursor:not-allowed;opacity:var(--plasma-list-disabled-opacity);}
@@ -1,9 +0,0 @@
1
- require('./base_x642ct.css');
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- var base = "b1ybuwod";
7
-
8
- exports.base = base;
9
- //# sourceMappingURL=base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/List/variations/_disabled/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nexport const base = css``;\n"],"names":["base"],"mappings":";;;;AAEO,IAAMA,IAAI,GAAQ;;;;"}
@@ -1,9 +0,0 @@
1
- require('./base_x642ct.css');
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- var base = "b1vinxbx";
7
-
8
- exports.base = base;
9
- //# sourceMappingURL=base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/List/variations/_size/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nexport const base = css``;\n"],"names":["base"],"mappings":";;;;AAEO,IAAMA,IAAI,GAAQ;;;;"}
@@ -1,9 +0,0 @@
1
- require('./base_x642ct.css');
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- var base = "b15qo6xu";
7
-
8
- exports.base = base;
9
- //# sourceMappingURL=base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/List/variations/_variant/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nexport const base = css``;\n"],"names":["base"],"mappings":";;;;AAEO,IAAMA,IAAI,GAAQ;;;;"}
@@ -1,9 +0,0 @@
1
- require('./base_x642ct.css');
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- var base = "bpv2gh8";
7
-
8
- exports.base = base;
9
- //# sourceMappingURL=base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/List/variations/_view/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nexport const base = css``;\n"],"names":["base"],"mappings":";;;;AAEO,IAAMA,IAAI,GAAQ;;;;"}
@@ -1,59 +0,0 @@
1
- "use strict";
2
-
3
- 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); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.listRoot = exports.listConfig = void 0;
8
- var _react = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("react"));
9
- var _utils = /*#__PURE__*/require("../../utils");
10
- var _List = /*#__PURE__*/require("./List.styles");
11
- var _List2 = /*#__PURE__*/require("./List.tokens");
12
- var _base = /*#__PURE__*/require("./variations/_variant/base");
13
- var _base2 = /*#__PURE__*/require("./variations/_view/base");
14
- var _base3 = /*#__PURE__*/require("./variations/_size/base");
15
- var _base4 = /*#__PURE__*/require("./variations/_disabled/base");
16
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
17
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
18
- var listRoot = exports.listRoot = function listRoot(Root) {
19
- return /*#__PURE__*/(0, _react.forwardRef)(function (_ref, outerRootRef) {
20
- var size = _ref.size,
21
- view = _ref.view,
22
- variant = _ref.variant,
23
- disabled = _ref.disabled,
24
- className = _ref.className,
25
- children = _ref.children;
26
- return /*#__PURE__*/_react["default"].createElement(Root, {
27
- ref: outerRootRef,
28
- size: size,
29
- view: view,
30
- variant: variant,
31
- disabled: disabled,
32
- className: (0, _utils.cx)(_List2.classes.listRoot, className)
33
- }, children);
34
- });
35
- };
36
- var listConfig = exports.listConfig = {
37
- name: 'List',
38
- tag: 'ul',
39
- layout: listRoot,
40
- base: _List.base,
41
- variations: {
42
- view: {
43
- css: _base2.base
44
- },
45
- size: {
46
- css: _base3.base
47
- },
48
- variant: {
49
- css: _base.base
50
- },
51
- disabled: {
52
- css: _base4.base
53
- }
54
- },
55
- defaults: {
56
- view: 'default',
57
- size: 'm'
58
- }
59
- };
@@ -1,9 +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 _List = /*#__PURE__*/require("./List.tokens");
9
- var base = exports.base = /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:column;gap:var(", _List.tokens.listGap, ");align-items:stretch;height:auto;width:100%;list-style-type:none;padding:0;margin:0;;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTGlzdC9MaXN0LnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9MaXN0L0xpc3Quc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyB0b2tlbnMgfSBmcm9tICcuL0xpc3QudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgZGlzcGxheTogZmxleDtcbiAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgIGdhcDogdmFyKCR7dG9rZW5zLmxpc3RHYXB9KTtcbiAgICBhbGlnbi1pdGVtczogc3RyZXRjaDtcbiAgICBoZWlnaHQ6IGF1dG87XG4gICAgd2lkdGg6IDEwMCU7XG4gICAgbGlzdC1zdHlsZS10eXBlOiBub25lO1xuICAgIHBhZGRpbmc6IDA7XG4gICAgbWFyZ2luOiAwO1xuYDtcbiJdfQ== */"));