@salutejs/plasma-new-hope 0.69.0-canary.1148.8535928735.0 → 0.69.0-canary.1148.8538859580.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/cjs/components/Cell/Cell.css +1 -1
  2. package/cjs/components/Cell/Cell.styles.js +1 -1
  3. package/cjs/components/Cell/Cell.styles.js.map +1 -1
  4. package/cjs/components/Cell/variations/_view/base.js +1 -1
  5. package/cjs/components/Cell/variations/_view/base.js.map +1 -1
  6. package/cjs/components/Cell/variations/_view/{base_13f5j4a.css → base_pir0qf.css} +1 -1
  7. package/cjs/components/Pagination/Pagination.js +14 -13
  8. package/cjs/components/Pagination/Pagination.js.map +1 -1
  9. package/cjs/index.css +1 -1
  10. package/es/components/Cell/Cell.css +1 -1
  11. package/es/components/Cell/Cell.styles.js +1 -1
  12. package/es/components/Cell/Cell.styles.js.map +1 -1
  13. package/es/components/Cell/variations/_view/base.js +1 -1
  14. package/es/components/Cell/variations/_view/base.js.map +1 -1
  15. package/es/components/Cell/variations/_view/{base_13f5j4a.css → base_pir0qf.css} +1 -1
  16. package/es/components/Pagination/Pagination.js +15 -14
  17. package/es/components/Pagination/Pagination.js.map +1 -1
  18. package/es/index.css +1 -1
  19. package/package.json +4 -4
  20. package/styled-components/cjs/components/Cell/Cell.styles.js +1 -1
  21. package/styled-components/cjs/components/Cell/variations/_view/base.js +1 -1
  22. package/styled-components/cjs/components/Pagination/Pagination.js +14 -13
  23. package/styled-components/cjs/examples/plasma_b2c/components/Cell/Cell.stories.tsx +7 -7
  24. package/styled-components/cjs/examples/plasma_b2c/components/Pagination/Pagination.config.js +4 -4
  25. package/styled-components/cjs/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +14 -7
  26. package/styled-components/cjs/examples/plasma_web/components/Cell/Cell.stories.tsx +6 -6
  27. package/styled-components/cjs/examples/plasma_web/components/Pagination/Pagination.config.js +4 -4
  28. package/styled-components/cjs/examples/plasma_web/components/Pagination/Pagination.stories.tsx +14 -7
  29. package/styled-components/es/components/Cell/Cell.styles.js +1 -1
  30. package/styled-components/es/components/Cell/variations/_view/base.js +1 -1
  31. package/styled-components/es/components/Pagination/Pagination.js +14 -13
  32. package/styled-components/es/examples/plasma_b2c/components/Cell/Cell.stories.tsx +7 -7
  33. package/styled-components/es/examples/plasma_b2c/components/Pagination/Pagination.config.js +4 -4
  34. package/styled-components/es/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +14 -7
  35. package/styled-components/es/examples/plasma_web/components/Cell/Cell.stories.tsx +6 -6
  36. package/styled-components/es/examples/plasma_web/components/Pagination/Pagination.config.js +4 -4
  37. package/styled-components/es/examples/plasma_web/components/Pagination/Pagination.stories.tsx +14 -7
  38. package/types/components/Cell/Cell.styles.d.ts.map +1 -1
  39. package/types/components/Pagination/Pagination.d.ts.map +1 -1
@@ -53,7 +53,7 @@ type Story = StoryObj<typeof Pagination>;
53
53
 
54
54
  export const Default: Story = {
55
55
  args: {
56
- count: 20,
56
+ count: 2000,
57
57
  value: 1,
58
58
  slots: 9,
59
59
  type: 'default',
@@ -72,12 +72,18 @@ const PaginationContent = (agrs) => {
72
72
  const [pageValue, setPageValue] = useState(agrs.value);
73
73
  const [perPageValue, setPerPageValue] = useState(agrs.perPage);
74
74
 
75
- const handleChange = useCallback(
76
- (page: number, perPage: number) => {
77
- setPerPageValue(perPage);
75
+ const handleChangePage = useCallback(
76
+ (page: number) => {
78
77
  setPageValue(page);
79
78
  },
80
- [pageValue, perPageValue, setPageValue, setPerPageValue],
79
+ [pageValue, setPageValue],
80
+ );
81
+
82
+ const handleChangePerpage = useCallback(
83
+ (perPage: number) => {
84
+ setPerPageValue(perPage);
85
+ },
86
+ [perPageValue, setPerPageValue],
81
87
  );
82
88
 
83
89
  return (
@@ -104,7 +110,8 @@ const PaginationContent = (agrs) => {
104
110
  Next
105
111
  </Button>
106
112
  }
107
- onChangeValue={handleChange}
113
+ onChangePageValue={handleChangePage}
114
+ onChangePerPageValue={handleChangePerpage}
108
115
  />
109
116
  </>
110
117
  );
@@ -112,7 +119,7 @@ const PaginationContent = (agrs) => {
112
119
 
113
120
  export const Content: Story = {
114
121
  args: {
115
- count: 20,
122
+ count: 2000,
116
123
  value: 1,
117
124
  slots: 9,
118
125
  type: 'default',
@@ -1 +1 @@
1
- {"version":3,"file":"Cell.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Cell/Cell.styles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAS9C,eAAO,MAAM,IAAI,0CAUhB,CAAC;AAEF,eAAO,MAAM,kBAAkB,oEAM9B,CAAC;AAEF,eAAO,MAAM,WAAW,oEAIvB,CAAC;AAEF,eAAO,MAAM,QAAQ;WAAuB,SAAS;SAGpD,CAAC;AAEF,eAAO,MAAM,SAAS;WAAuB,SAAS;SAIrD,CAAC"}
1
+ {"version":3,"file":"Cell.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Cell/Cell.styles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAS9C,eAAO,MAAM,IAAI,0CAUhB,CAAC;AAEF,eAAO,MAAM,kBAAkB,oEAO9B,CAAC;AAEF,eAAO,MAAM,WAAW,oEAIvB,CAAC;AAEF,eAAO,MAAM,QAAQ;WAAuB,SAAS;SAGpD,CAAC;AAEF,eAAO,MAAM,SAAS;WAAuB,SAAS;SAIrD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAG/D,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAW1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAS1D,eAAO,MAAM,cAAc,SAAU,UAAU,cAAc,EAAE,eAAe,CAAC,2FAiK1E,CAAC;AAEN,eAAO,MAAM,gBAAgB;;;mBAnKQ,UAAU,cAAc,EAAE,eAAe,CAAC;;;;;;;;;;;;;;;;;CAuL9E,CAAC"}
1
+ {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAG/D,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAW1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAS1D,eAAO,MAAM,cAAc,SAAU,UAAU,cAAc,EAAE,eAAe,CAAC,2FAoK1E,CAAC;AAEN,eAAO,MAAM,gBAAgB;;;mBAtKQ,UAAU,cAAc,EAAE,eAAe,CAAC;;;;;;;;;;;;;;;;;CA0L9E,CAAC"}