@redapollos/storm-form 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
package/.babelrc ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "presets": ["@babel/preset-env", "@babel/preset-react"],
3
+ "plugins": ["@babel/plugin-transform-modules-commonjs"]
4
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _logo = _interopRequireDefault(require("/logo.svg"));
8
+ require("../App.css");
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ function StormForm() {
11
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("a", {
12
+ href: "https://rainstormtech.com",
13
+ target: "_blank"
14
+ }, /*#__PURE__*/React.createElement("img", {
15
+ src: _logo["default"],
16
+ className: "logo",
17
+ alt: "logo"
18
+ }))), /*#__PURE__*/React.createElement("h1", null, "Storm Form"));
19
+ }
20
+ var _default = exports["default"] = StormForm;
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _StormForm = _interopRequireDefault(require("./components/StormForm"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ var _default = exports["default"] = _StormForm["default"];
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@redapollos/storm-form",
3
3
  "private": false,
4
- "version": "0.0.3",
4
+ "version": "0.0.5",
5
5
  "description": "A form library for StormCMS",
6
6
  "author": "redapollos",
7
7
  "type": "module",
8
- "main": "src/index.js",
8
+ "main": "dist/index.js",
9
9
  "scripts": {
10
10
  "dev": "vite",
11
- "build": "vite build",
11
+ "build": "babel src --out-dir dist",
12
12
  "lint": "eslint .",
13
13
  "preview": "vite preview"
14
14
  },
@@ -17,6 +17,10 @@
17
17
  "react-dom": "^18.3.1"
18
18
  },
19
19
  "devDependencies": {
20
+ "@babel/cli": "^7.26.4",
21
+ "@babel/core": "^7.26.0",
22
+ "@babel/preset-env": "^7.26.0",
23
+ "@babel/preset-react": "^7.26.3",
20
24
  "@eslint/js": "^9.17.0",
21
25
  "@types/react": "^18.3.18",
22
26
  "@types/react-dom": "^18.3.5",
package/eslint.config.js DELETED
@@ -1,38 +0,0 @@
1
- import js from '@eslint/js'
2
- import globals from 'globals'
3
- import react from 'eslint-plugin-react'
4
- import reactHooks from 'eslint-plugin-react-hooks'
5
- import reactRefresh from 'eslint-plugin-react-refresh'
6
-
7
- export default [
8
- { ignores: ['dist'] },
9
- {
10
- files: ['**/*.{js,jsx}'],
11
- languageOptions: {
12
- ecmaVersion: 2020,
13
- globals: globals.browser,
14
- parserOptions: {
15
- ecmaVersion: 'latest',
16
- ecmaFeatures: { jsx: true },
17
- sourceType: 'module',
18
- },
19
- },
20
- settings: { react: { version: '18.3' } },
21
- plugins: {
22
- react,
23
- 'react-hooks': reactHooks,
24
- 'react-refresh': reactRefresh,
25
- },
26
- rules: {
27
- ...js.configs.recommended.rules,
28
- ...react.configs.recommended.rules,
29
- ...react.configs['jsx-runtime'].rules,
30
- ...reactHooks.configs.recommended.rules,
31
- 'react/jsx-no-target-blank': 'off',
32
- 'react-refresh/only-export-components': [
33
- 'warn',
34
- { allowConstantExport: true },
35
- ],
36
- },
37
- },
38
- ]
package/src/App.css DELETED
@@ -1,42 +0,0 @@
1
- #root {
2
- max-width: 1280px;
3
- margin: 0 auto;
4
- padding: 2rem;
5
- text-align: center;
6
- }
7
-
8
- .logo {
9
- height: 6em;
10
- padding: 1.5em;
11
- will-change: filter;
12
- transition: filter 300ms;
13
- }
14
- .logo:hover {
15
- filter: drop-shadow(0 0 2em #646cffaa);
16
- }
17
- .logo.react:hover {
18
- filter: drop-shadow(0 0 2em #61dafbaa);
19
- }
20
-
21
- @keyframes logo-spin {
22
- from {
23
- transform: rotate(0deg);
24
- }
25
- to {
26
- transform: rotate(360deg);
27
- }
28
- }
29
-
30
- @media (prefers-reduced-motion: no-preference) {
31
- a:nth-of-type(2) .logo {
32
- animation: logo-spin infinite 20s linear;
33
- }
34
- }
35
-
36
- .card {
37
- padding: 2em;
38
- }
39
-
40
- .read-the-docs {
41
- color: #888;
42
- }
@@ -1,17 +0,0 @@
1
- import logo from "/logo.svg";
2
- import "../App.css";
3
-
4
- function StormForm() {
5
- return (
6
- <>
7
- <div>
8
- <a href="https://rainstormtech.com" target="_blank">
9
- <img src={logo} className="logo" alt="logo" />
10
- </a>
11
- </div>
12
- <h1>Storm Form</h1>
13
- </>
14
- );
15
- }
16
-
17
- export default StormForm;
package/src/index.js DELETED
@@ -1,2 +0,0 @@
1
- import StormForm from "./components/StormForm";
2
- export default StormForm;
package/vite.config.js DELETED
@@ -1,7 +0,0 @@
1
- import { defineConfig } from 'vite'
2
- import react from '@vitejs/plugin-react'
3
-
4
- // https://vite.dev/config/
5
- export default defineConfig({
6
- plugins: [react()],
7
- })