kelt-ui-kit-react 0.1.0 → 0.1.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/dist/App.d.ts +3 -0
- package/dist/App.js +18 -0
- package/dist/App.test.d.ts +1 -0
- package/dist/App.test.js +8 -0
- package/dist/expand/expand.d.ts +1 -0
- package/dist/expand/expand.js +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/reportWebVitals.d.ts +3 -0
- package/dist/reportWebVitals.js +13 -0
- package/dist/setupTests.d.ts +1 -0
- package/dist/setupTests.js +5 -0
- package/package.json +6 -2
- package/tsconfig.json +5 -2
package/dist/App.d.ts
ADDED
package/dist/App.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import logo from './logo.svg';
|
|
14
|
+
import './App.css';
|
|
15
|
+
function App() {
|
|
16
|
+
return (_jsx("div", __assign({ className: "App" }, { children: _jsxs("header", __assign({ className: "App-header" }, { children: [_jsx("img", { src: logo, className: "App-logo", alt: "logo" }), _jsxs("p", { children: ["Edit ", _jsx("code", { children: "src/App.tsx" }), " and save to reload."] }), _jsx("a", __assign({ className: "App-link", href: "https://reactjs.org", target: "_blank", rel: "noopener noreferrer" }, { children: "Learn React" }))] })) })));
|
|
17
|
+
}
|
|
18
|
+
export default App;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/App.test.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { render, screen } from '@testing-library/react';
|
|
3
|
+
import App from './App';
|
|
4
|
+
test('renders learn react link', function () {
|
|
5
|
+
render(_jsx(App, {}));
|
|
6
|
+
var linkElement = screen.getByText(/learn react/i);
|
|
7
|
+
expect(linkElement).toBeInTheDocument();
|
|
8
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Expand: () => import("react/jsx-runtime").JSX.Element;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Expand } from './expand/expand';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Expand } from './expand/expand';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var reportWebVitals = function (onPerfEntry) {
|
|
2
|
+
if (onPerfEntry && onPerfEntry instanceof Function) {
|
|
3
|
+
import('web-vitals').then(function (_a) {
|
|
4
|
+
var getCLS = _a.getCLS, getFID = _a.getFID, getFCP = _a.getFCP, getLCP = _a.getLCP, getTTFB = _a.getTTFB;
|
|
5
|
+
getCLS(onPerfEntry);
|
|
6
|
+
getFID(onPerfEntry);
|
|
7
|
+
getFCP(onPerfEntry);
|
|
8
|
+
getLCP(onPerfEntry);
|
|
9
|
+
getTTFB(onPerfEntry);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
export default reportWebVitals;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
package/package.json
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kelt-ui-kit-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"private": false,
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
5
7
|
"dependencies": {
|
|
6
8
|
"@testing-library/jest-dom": "^5.17.0",
|
|
7
9
|
"@testing-library/react": "^13.4.0",
|
|
@@ -13,7 +15,6 @@
|
|
|
13
15
|
"react": "^18.3.1",
|
|
14
16
|
"react-dom": "^18.3.1",
|
|
15
17
|
"react-scripts": "5.0.1",
|
|
16
|
-
"typescript": "^4.9.5",
|
|
17
18
|
"web-vitals": "^2.1.4"
|
|
18
19
|
},
|
|
19
20
|
"scripts": {
|
|
@@ -39,5 +40,8 @@
|
|
|
39
40
|
"last 1 firefox version",
|
|
40
41
|
"last 1 safari version"
|
|
41
42
|
]
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"typescript": "^4.9.5"
|
|
42
46
|
}
|
|
43
47
|
}
|
package/tsconfig.json
CHANGED
|
@@ -17,12 +17,15 @@
|
|
|
17
17
|
"moduleResolution": "node",
|
|
18
18
|
"resolveJsonModule": true,
|
|
19
19
|
"isolatedModules": true,
|
|
20
|
-
"noEmit": true,
|
|
21
20
|
"jsx": "react-jsx",
|
|
22
21
|
"outDir": "./dist",
|
|
22
|
+
"rootDir": "./src",
|
|
23
23
|
"declaration": true,
|
|
24
24
|
},
|
|
25
25
|
"include": [
|
|
26
|
-
|
|
26
|
+
"src/**/*"
|
|
27
|
+
],
|
|
28
|
+
"exclude": [
|
|
29
|
+
"node_modules"
|
|
27
30
|
]
|
|
28
31
|
}
|