@croquiscom/pds 4.8.5 → 4.9.1
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.
- package/CHANGELOG.md +12 -0
- package/dist/components/button/Button.stories.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/page-indicator/PageIndicator.d.ts +8 -0
- package/dist/components/page-indicator/PageIndicator.stories.d.ts +6 -0
- package/dist/components/page-indicator/PageIndicatorItem.d.ts +8 -0
- package/dist/components/page-indicator/index.d.ts +1 -0
- package/dist/components/page-indicator/styles.d.ts +2 -0
- package/dist/index.es.js +5 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -12,5 +12,6 @@ export declare const StartIconWithColor: any;
|
|
|
12
12
|
export declare const EndIcon: any;
|
|
13
13
|
export declare const EndIconWithColor: any;
|
|
14
14
|
export declare const Loading: any;
|
|
15
|
+
export declare const Disabled: any;
|
|
15
16
|
export declare const FullWidth: any;
|
|
16
17
|
export declare const Focus: ComponentStory<typeof Button>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export interface PageIndicatorProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
totalPages: number;
|
|
5
|
+
currentPage: number;
|
|
6
|
+
onChangePage?: (page: number) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const PageIndicator: React.FC<PageIndicatorProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentMeta } from '@storybook/react';
|
|
3
|
+
declare const _default: ComponentMeta<React.FC<import("./PageIndicator").PageIndicatorProps>>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Base: any;
|
|
6
|
+
export declare const Disabled: any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export interface PageIndicatorItemProps extends Omit<HTMLAttributes<HTMLButtonElement>, 'onClick'> {
|
|
3
|
+
page: number;
|
|
4
|
+
isSelected?: boolean;
|
|
5
|
+
onClick?: (page: number) => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const PageIndicatorItem: React.ForwardRefExoticComponent<PageIndicatorItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PageIndicator';
|