@carbonorm/carbonreact 1.3.0 → 2.0.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.
- package/dist/{cjs/index.css → index.cjs.css} +1 -1
- package/dist/{cjs/index.css.map → index.cjs.css.map} +1 -1
- package/dist/{cjs/index.js → index.cjs.js} +1 -1
- package/dist/index.cjs.js.map +1 -0
- package/dist/{esm/index.css → index.esm.css} +1 -1
- package/dist/{esm/index.css.map → index.esm.css.map} +1 -1
- package/dist/{esm/index.js → index.esm.js} +1 -1
- package/dist/index.esm.js.map +1 -0
- package/package.json +7 -6
- package/src/CarbonReact.tsx +18 -28
- package/src/hoc/axiosInstance.tsx +1 -1
- package/src/hoc/getStyles.tsx +4 -4
- package/src/hoc/setUrl.tsx +1 -1
- package/src/variables/C6.tsx +1168 -2651
- package/dist/cjs/index.js.map +0 -1
- package/dist/esm/CarbonReact.d.ts +0 -31
- package/dist/esm/components/Alert/Alert.d.ts +0 -24
- package/dist/esm/components/Errors/AccessDenied.d.ts +0 -4
- package/dist/esm/components/Errors/BackendThrowable.d.ts +0 -1
- package/dist/esm/components/Errors/ErrorHttpCode.d.ts +0 -5
- package/dist/esm/components/Errors/Localhost.d.ts +0 -1
- package/dist/esm/components/Errors/PageNotFound.d.ts +0 -1
- package/dist/esm/components/Loading/Loading.d.ts +0 -9
- package/dist/esm/components/Nest/Nest.d.ts +0 -49
- package/dist/esm/components/Popup/Popup.d.ts +0 -9
- package/dist/esm/hoc/GlobalHistory.d.ts +0 -6
- package/dist/esm/hoc/addValidSQL.d.ts +0 -2
- package/dist/esm/hoc/axiosInstance.d.ts +0 -5
- package/dist/esm/hoc/changed.d.ts +0 -2
- package/dist/esm/hoc/deleteRestfulObjectArrays.d.ts +0 -2
- package/dist/esm/hoc/getStyles.d.ts +0 -7
- package/dist/esm/hoc/hexToRgb.d.ts +0 -1
- package/dist/esm/hoc/isEdgeBrowser.d.ts +0 -2
- package/dist/esm/hoc/parseMultipleJson.d.ts +0 -1
- package/dist/esm/hoc/scrollIntoView.d.ts +0 -1
- package/dist/esm/hoc/setUrl.d.ts +0 -1
- package/dist/esm/hoc/updateRestfulObjectArrays.d.ts +0 -17
- package/dist/esm/hoc/uploadImage.d.ts +0 -4
- package/dist/esm/hoc/windowDimensions.d.ts +0 -4
- package/dist/esm/index.d.ts +0 -52
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/variables/C6.d.ts +0 -1008
- package/dist/esm/variables/isProduction.d.ts +0 -2
- package/src/components/Errors/Localhost.tsx +0 -38
- /package/dist/{cjs/CarbonReact.d.ts → CarbonReact.d.ts} +0 -0
- /package/dist/{cjs/components → components}/Alert/Alert.d.ts +0 -0
- /package/dist/{cjs/components → components}/Errors/AccessDenied.d.ts +0 -0
- /package/dist/{cjs/components → components}/Errors/BackendThrowable.d.ts +0 -0
- /package/dist/{cjs/components → components}/Errors/ErrorHttpCode.d.ts +0 -0
- /package/dist/{cjs/components → components}/Errors/Localhost.d.ts +0 -0
- /package/dist/{cjs/components → components}/Errors/PageNotFound.d.ts +0 -0
- /package/dist/{cjs/components → components}/Loading/Loading.d.ts +0 -0
- /package/dist/{cjs/components → components}/Nest/Nest.d.ts +0 -0
- /package/dist/{cjs/components → components}/Popup/Popup.d.ts +0 -0
- /package/dist/{cjs/hoc → hoc}/GlobalHistory.d.ts +0 -0
- /package/dist/{cjs/hoc → hoc}/addValidSQL.d.ts +0 -0
- /package/dist/{cjs/hoc → hoc}/axiosInstance.d.ts +0 -0
- /package/dist/{cjs/hoc → hoc}/changed.d.ts +0 -0
- /package/dist/{cjs/hoc → hoc}/deleteRestfulObjectArrays.d.ts +0 -0
- /package/dist/{cjs/hoc → hoc}/getStyles.d.ts +0 -0
- /package/dist/{cjs/hoc → hoc}/hexToRgb.d.ts +0 -0
- /package/dist/{cjs/hoc → hoc}/isEdgeBrowser.d.ts +0 -0
- /package/dist/{cjs/hoc → hoc}/parseMultipleJson.d.ts +0 -0
- /package/dist/{cjs/hoc → hoc}/scrollIntoView.d.ts +0 -0
- /package/dist/{cjs/hoc → hoc}/setUrl.d.ts +0 -0
- /package/dist/{cjs/hoc → hoc}/updateRestfulObjectArrays.d.ts +0 -0
- /package/dist/{cjs/hoc → hoc}/uploadImage.d.ts +0 -0
- /package/dist/{cjs/hoc → hoc}/windowDimensions.d.ts +0 -0
- /package/dist/{cjs/index.d.ts → index.d.ts} +0 -0
- /package/dist/{cjs/variables → variables}/C6.d.ts +0 -0
- /package/dist/{cjs/variables → variables}/isProduction.d.ts +0 -0
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare const range: (n: any) => number[];
|
|
3
|
-
interface iTwoD {
|
|
4
|
-
max: number;
|
|
5
|
-
x: number | null;
|
|
6
|
-
y: number | null;
|
|
7
|
-
}
|
|
8
|
-
interface iTwoDAnimated extends iTwoD {
|
|
9
|
-
ya: number;
|
|
10
|
-
xa: number;
|
|
11
|
-
}
|
|
12
|
-
type NestProps = typeof Nest.defaultProps & {
|
|
13
|
-
children?: any;
|
|
14
|
-
position: "relative" | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "-webkit-sticky" | "absolute" | "fixed" | "static" | "sticky";
|
|
15
|
-
};
|
|
16
|
-
export default class Nest extends React.Component<NestProps, {}> {
|
|
17
|
-
static defaultProps: {
|
|
18
|
-
backgroundColor: string;
|
|
19
|
-
display: string;
|
|
20
|
-
top: number;
|
|
21
|
-
left: number;
|
|
22
|
-
zIndex: number;
|
|
23
|
-
count: number;
|
|
24
|
-
opacity: number;
|
|
25
|
-
overflow: string;
|
|
26
|
-
color: string;
|
|
27
|
-
pointColor: string;
|
|
28
|
-
position: string;
|
|
29
|
-
};
|
|
30
|
-
canvas?: HTMLCanvasElement;
|
|
31
|
-
all: Array<iTwoDAnimated | iTwoD>;
|
|
32
|
-
points?: Array<iTwoDAnimated>;
|
|
33
|
-
current: iTwoD;
|
|
34
|
-
constructor(props: any);
|
|
35
|
-
canvasContext?: CanvasRenderingContext2D;
|
|
36
|
-
componentDidMount(): void;
|
|
37
|
-
randomPoints: () => {
|
|
38
|
-
x: number;
|
|
39
|
-
y: number;
|
|
40
|
-
xa: number;
|
|
41
|
-
ya: number;
|
|
42
|
-
max: number;
|
|
43
|
-
}[];
|
|
44
|
-
tid: number;
|
|
45
|
-
drawCanvas: () => void;
|
|
46
|
-
destroy(): void;
|
|
47
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
48
|
-
}
|
|
49
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface iPopupProperties {
|
|
2
|
-
open?: boolean;
|
|
3
|
-
handleClose: () => any;
|
|
4
|
-
children: any;
|
|
5
|
-
minWidth?: string;
|
|
6
|
-
maxWidth?: string;
|
|
7
|
-
}
|
|
8
|
-
export default function Popup({ open, handleClose, children, maxWidth, }: iPopupProperties): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { AxiosInstance, AxiosResponse } from "axios";
|
|
2
|
-
export declare function HandleResponseCodes(data: any): void;
|
|
3
|
-
export declare function setCookies(cookies: string[], req?: AxiosResponse | undefined): void;
|
|
4
|
-
declare const axiosInstance: AxiosInstance;
|
|
5
|
-
export default axiosInstance;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { iCarbonORMState, iRestfulObjectArrayTypes, tRestfulObjectValues } from "CarbonReact";
|
|
2
|
-
export default function deleteRestfulObjectArrays<ObjectType extends tRestfulObjectValues>(dataOrCallback: ((prev: Readonly<iCarbonORMState>) => ObjectType[]) | ObjectType[], stateKey: keyof iRestfulObjectArrayTypes, uniqueObjectId: keyof ObjectType, callback?: () => void): void;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import BootstrapStyle from "variables/bootstrap.module.css";
|
|
2
|
-
import DropInGamingStyles from "style.module.css";
|
|
3
|
-
export declare const getRootStyleValue: (property?: string) => string;
|
|
4
|
-
type tBootstrap = typeof BootstrapStyle;
|
|
5
|
-
type tDropInGaming = typeof DropInGamingStyles;
|
|
6
|
-
export default function getStyles<iCSS extends {}>(overrides?: iCSS): tBootstrap & tDropInGaming & iCSS;
|
|
7
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function (hex: any): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function parseMultipleJson(ss: string | any): any[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function ScrollIntoViewDirective(el: Element): void;
|
package/dist/esm/hoc/setUrl.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function setUrl(): void;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { iCarbonORMState, iRestfulObjectArrayTypes, tRestfulObjectValues } from "CarbonReact";
|
|
2
|
-
export declare enum eUpdateInsertMethod {
|
|
3
|
-
REPLACE = 0,
|
|
4
|
-
FIRST = 1,
|
|
5
|
-
LAST = 2
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
* merged with existing objects.uniqueObjectId || {}.
|
|
10
|
-
* @param dataOrCallback
|
|
11
|
-
* @param uniqueObjectId - the uniqueObjectId of the object to update; typically the primary key of the table.
|
|
12
|
-
* @param stateKey -
|
|
13
|
-
* @param insertUpdateOrder
|
|
14
|
-
* @param callback - if you want to do something with the updated state, you can pass a callback here. Run as the second
|
|
15
|
-
* parameter of setState.
|
|
16
|
-
*/
|
|
17
|
-
export default function updateRestfulObjectArray<ObjectType extends tRestfulObjectValues>(dataOrCallback: ((prev: Readonly<iCarbonORMState>) => ObjectType[]) | ObjectType[], stateKey: keyof iRestfulObjectArrayTypes, uniqueObjectId: keyof ObjectType, insertUpdateOrder?: eUpdateInsertMethod, callback?: () => void): void;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ChangeEvent } from "react";
|
|
2
|
-
export declare function toDataURL(src: string, fileType: string, callback: (dataUriEncoded: string) => void): Promise<void>;
|
|
3
|
-
export declare function uploadImageChange(event: ChangeEvent<HTMLInputElement>, uploadCallback: ((imageDataUri: string) => void)): void;
|
|
4
|
-
export default function uploadImage(uploadCallback: (dataUriBase64: string) => void): () => void;
|
package/dist/esm/index.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Automatically generated by barrelsby.
|
|
3
|
-
*/
|
|
4
|
-
export { default as CarbonReact } from "./CarbonReact";
|
|
5
|
-
export * from "./CarbonReact";
|
|
6
|
-
export { default as Alert } from "./components/Alert/Alert";
|
|
7
|
-
export * from "./components/Alert/Alert";
|
|
8
|
-
export { default as AccessDenied } from "./components/Errors/AccessDenied";
|
|
9
|
-
export * from "./components/Errors/AccessDenied";
|
|
10
|
-
export { default as BackendThrowable } from "./components/Errors/BackendThrowable";
|
|
11
|
-
export * from "./components/Errors/BackendThrowable";
|
|
12
|
-
export { default as ErrorHttpCode } from "./components/Errors/ErrorHttpCode";
|
|
13
|
-
export * from "./components/Errors/ErrorHttpCode";
|
|
14
|
-
export { default as Localhost } from "./components/Errors/Localhost";
|
|
15
|
-
export * from "./components/Errors/Localhost";
|
|
16
|
-
export { default as PageNotFound } from "./components/Errors/PageNotFound";
|
|
17
|
-
export * from "./components/Errors/PageNotFound";
|
|
18
|
-
export { default as Loading } from "./components/Loading/Loading";
|
|
19
|
-
export * from "./components/Loading/Loading";
|
|
20
|
-
export { default as Nest } from "./components/Nest/Nest";
|
|
21
|
-
export * from "./components/Nest/Nest";
|
|
22
|
-
export { default as Popup } from "./components/Popup/Popup";
|
|
23
|
-
export * from "./components/Popup/Popup";
|
|
24
|
-
export * from "./hoc/GlobalHistory";
|
|
25
|
-
export { default as addValidSQL } from "./hoc/addValidSQL";
|
|
26
|
-
export * from "./hoc/addValidSQL";
|
|
27
|
-
export { default as axiosInstance } from "./hoc/axiosInstance";
|
|
28
|
-
export * from "./hoc/axiosInstance";
|
|
29
|
-
export { default as changed } from "./hoc/changed";
|
|
30
|
-
export * from "./hoc/changed";
|
|
31
|
-
export { default as deleteRestfulObjectArrays } from "./hoc/deleteRestfulObjectArrays";
|
|
32
|
-
export * from "./hoc/deleteRestfulObjectArrays";
|
|
33
|
-
export { default as getStyles } from "./hoc/getStyles";
|
|
34
|
-
export * from "./hoc/getStyles";
|
|
35
|
-
export { default as hexToRgb } from "./hoc/hexToRgb";
|
|
36
|
-
export * from "./hoc/hexToRgb";
|
|
37
|
-
export { default as isEdgeBrowser } from "./hoc/isEdgeBrowser";
|
|
38
|
-
export * from "./hoc/isEdgeBrowser";
|
|
39
|
-
export * from "./hoc/parseMultipleJson";
|
|
40
|
-
export { default as scrollIntoView } from "./hoc/scrollIntoView";
|
|
41
|
-
export * from "./hoc/scrollIntoView";
|
|
42
|
-
export { default as setUrl } from "./hoc/setUrl";
|
|
43
|
-
export * from "./hoc/setUrl";
|
|
44
|
-
export { default as updateRestfulObjectArrays } from "./hoc/updateRestfulObjectArrays";
|
|
45
|
-
export * from "./hoc/updateRestfulObjectArrays";
|
|
46
|
-
export { default as uploadImage } from "./hoc/uploadImage";
|
|
47
|
-
export * from "./hoc/uploadImage";
|
|
48
|
-
export { default as windowDimensions } from "./hoc/windowDimensions";
|
|
49
|
-
export * from "./hoc/windowDimensions";
|
|
50
|
-
export * from "./variables/C6";
|
|
51
|
-
export { default as isProduction } from "./variables/isProduction";
|
|
52
|
-
export * from "./variables/isProduction";
|