@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.
- package/cjs/components/Cell/Cell.css +1 -1
- package/cjs/components/Cell/Cell.styles.js +1 -1
- package/cjs/components/Cell/Cell.styles.js.map +1 -1
- package/cjs/components/Cell/variations/_view/base.js +1 -1
- package/cjs/components/Cell/variations/_view/base.js.map +1 -1
- package/cjs/components/Cell/variations/_view/{base_13f5j4a.css → base_pir0qf.css} +1 -1
- package/cjs/components/Pagination/Pagination.js +14 -13
- package/cjs/components/Pagination/Pagination.js.map +1 -1
- package/cjs/index.css +1 -1
- package/es/components/Cell/Cell.css +1 -1
- package/es/components/Cell/Cell.styles.js +1 -1
- package/es/components/Cell/Cell.styles.js.map +1 -1
- package/es/components/Cell/variations/_view/base.js +1 -1
- package/es/components/Cell/variations/_view/base.js.map +1 -1
- package/es/components/Cell/variations/_view/{base_13f5j4a.css → base_pir0qf.css} +1 -1
- package/es/components/Pagination/Pagination.js +15 -14
- package/es/components/Pagination/Pagination.js.map +1 -1
- package/es/index.css +1 -1
- package/package.json +4 -4
- package/styled-components/cjs/components/Cell/Cell.styles.js +1 -1
- package/styled-components/cjs/components/Cell/variations/_view/base.js +1 -1
- package/styled-components/cjs/components/Pagination/Pagination.js +14 -13
- package/styled-components/cjs/examples/plasma_b2c/components/Cell/Cell.stories.tsx +7 -7
- package/styled-components/cjs/examples/plasma_b2c/components/Pagination/Pagination.config.js +4 -4
- package/styled-components/cjs/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +14 -7
- package/styled-components/cjs/examples/plasma_web/components/Cell/Cell.stories.tsx +6 -6
- package/styled-components/cjs/examples/plasma_web/components/Pagination/Pagination.config.js +4 -4
- package/styled-components/cjs/examples/plasma_web/components/Pagination/Pagination.stories.tsx +14 -7
- package/styled-components/es/components/Cell/Cell.styles.js +1 -1
- package/styled-components/es/components/Cell/variations/_view/base.js +1 -1
- package/styled-components/es/components/Pagination/Pagination.js +14 -13
- package/styled-components/es/examples/plasma_b2c/components/Cell/Cell.stories.tsx +7 -7
- package/styled-components/es/examples/plasma_b2c/components/Pagination/Pagination.config.js +4 -4
- package/styled-components/es/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +14 -7
- package/styled-components/es/examples/plasma_web/components/Cell/Cell.stories.tsx +6 -6
- package/styled-components/es/examples/plasma_web/components/Pagination/Pagination.config.js +4 -4
- package/styled-components/es/examples/plasma_web/components/Pagination/Pagination.stories.tsx +14 -7
- package/types/components/Cell/Cell.styles.d.ts.map +1 -1
- package/types/components/Pagination/Pagination.d.ts.map +1 -1
package/styled-components/es/examples/plasma_web/components/Pagination/Pagination.stories.tsx
CHANGED
@@ -53,7 +53,7 @@ type Story = StoryObj<typeof Pagination>;
|
|
53
53
|
|
54
54
|
export const Default: Story = {
|
55
55
|
args: {
|
56
|
-
count:
|
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
|
76
|
-
(page: number
|
77
|
-
setPerPageValue(perPage);
|
75
|
+
const handleChangePage = useCallback(
|
76
|
+
(page: number) => {
|
78
77
|
setPageValue(page);
|
79
78
|
},
|
80
|
-
[pageValue,
|
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
|
-
|
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:
|
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,
|
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,
|
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"}
|