enerdot-front-system 0.0.24 → 0.0.25
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/README.md +2 -0
- package/dist/index.cjs.js +36 -36
- package/dist/index.es.js +1109 -910
- package/dist/lib/components/Chip/index.d.ts +12 -0
- package/dist/lib/components/Chip/theme.d.ts +14 -0
- package/dist/lib/components/Pagination/icons/EndIcon.d.ts +5 -0
- package/dist/lib/components/Pagination/icons/FirstIcon.d.ts +5 -0
- package/dist/lib/components/Pagination/icons/NextIcon.d.ts +5 -0
- package/dist/lib/components/Pagination/icons/PrevIcon.d.ts +5 -0
- package/dist/lib/components/Pagination/index.d.ts +9 -0
- package/dist/lib/index.d.ts +2 -0
- package/package.json +3 -3
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ChipColorTheme } from './theme';
|
|
3
|
+
export interface ChipProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
colorTheme?: keyof ChipColorTheme;
|
|
5
|
+
level?: "small" | "regular" | "large";
|
|
6
|
+
borderRadius?: "round" | "full";
|
|
7
|
+
isDot?: boolean;
|
|
8
|
+
isWhiteBg?: boolean;
|
|
9
|
+
gap?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const Chip: ({ children, level, borderRadius, colorTheme, isWhiteBg, gap, isDot, }: ChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default Chip;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type ColorObject = {
|
|
2
|
+
bgColor: string;
|
|
3
|
+
textColor: string;
|
|
4
|
+
};
|
|
5
|
+
export type ChipColorTheme = {
|
|
6
|
+
yellow: ColorObject;
|
|
7
|
+
orange: ColorObject;
|
|
8
|
+
red: ColorObject;
|
|
9
|
+
green: ColorObject;
|
|
10
|
+
primary: ColorObject;
|
|
11
|
+
gray: ColorObject;
|
|
12
|
+
};
|
|
13
|
+
export declare const colorThemes: ChipColorTheme;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface PaginationProps {
|
|
2
|
+
totalPageCount: number;
|
|
3
|
+
currentPage: number;
|
|
4
|
+
displayRangeCount?: number;
|
|
5
|
+
onChange: (page: number) => void;
|
|
6
|
+
isMoveToEndButton?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const Pagination: (props: PaginationProps) => JSX.Element;
|
|
9
|
+
export default Pagination;
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -2,11 +2,13 @@ export * from './components/Button';
|
|
|
2
2
|
export * from './components/ButtonFilter';
|
|
3
3
|
export * from './components/ButtonFilter/CustomFilter';
|
|
4
4
|
export * from './components/CheckBox';
|
|
5
|
+
export * from './components/Chip';
|
|
5
6
|
export * from './components/Divider';
|
|
6
7
|
export * from './components/IconButton';
|
|
7
8
|
export * from './components/IconWithButton';
|
|
8
9
|
export * from './components/Inputs/Input';
|
|
9
10
|
export * from './components/Inputs/SearchInput';
|
|
11
|
+
export * from './components/Pagination';
|
|
10
12
|
export * from './components/Radio/RadioButton';
|
|
11
13
|
export * from './components/Radio/RadioButtons';
|
|
12
14
|
export * from './components/Textarea';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "enerdot-front-system",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.25",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"enerdot-front-system",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"lint": "eslint .",
|
|
28
28
|
"preview": "vite preview",
|
|
29
29
|
"prepare": "rm -rf dist && tsc && vite build",
|
|
30
|
-
"add:package": "yarn add ./enerdot-front-system-v0.0.
|
|
31
|
-
"reset:package": "yarn remove enerdot-front-system && yarn cache clean && rm -rf ./enerdot-front-system-v0.0.
|
|
30
|
+
"add:package": "yarn add ./enerdot-front-system-v0.0.25.tgz",
|
|
31
|
+
"reset:package": "yarn remove enerdot-front-system && yarn cache clean && rm -rf ./enerdot-front-system-v0.0.25.tgz"
|
|
32
32
|
},
|
|
33
33
|
"exports": {
|
|
34
34
|
".": {
|