srcdev-nuxt-forms 0.0.5 → 0.0.7

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 CHANGED
@@ -1,4 +1,4 @@
1
- # Nuxt Layer Starter
1
+ # Nuxt Forms Layer
2
2
 
3
3
  Create Nuxt extendable layer with this GitHub template.
4
4
 
@@ -20,6 +20,13 @@ Running `pnpm dev` will prepare and boot `.playground` directory, which imports
20
20
 
21
21
  ## Distributing your theme
22
22
 
23
+ ### Release it
24
+ CLI Prompt assisted release and versioning
25
+
26
+ ```bash
27
+ npm run release
28
+ ```
29
+
23
30
  Your Nuxt layer is shaped exactly the same as any other Nuxt project, except you can publish it on NPM.
24
31
 
25
32
  To do so, you only have to check if `files` in `package.json` are valid, then run:
@@ -0,0 +1 @@
1
+ @import "./variables/_theme.css";
@@ -0,0 +1,25 @@
1
+ :root {
2
+ --form-bg-color: #f9f9f9; /* Background color for form */
3
+ --form-border-color: #cccccc; /* Border color for form elements */
4
+ --form-text-color: #333333; /* Text color for form elements */
5
+ --form-placeholder-color: #888888; /* Placeholder text color */
6
+ --form-focus-border-color: #0076c6; /* Border color on focus */
7
+ --form-button-bg-color: #0076c6; /* Button background color */
8
+ --form-button-text-color: #ffffff; /* Button text color */
9
+ --form-error-color: #ce0606; /* Error message color */
10
+ --form-success-color: #008000; /* Success message color */
11
+ --form-warning-color: #ffcc00; /* Warning message color */
12
+ --form-info-color: #0076c6; /* Info message color */
13
+ --form-required-color: #ce0606; /* Required field color */
14
+ --form-disabled-color: #cccccc; /* Disabled field color */
15
+ --form-disabled-bg-color: #f9f9f9; /* Disabled field background color */
16
+ --form-disabled-border-color: #cccccc; /* Disabled field border color */
17
+ --form-disabled-text-color: #999999; /* Disabled field text color */
18
+
19
+ --input-border: #121212;
20
+
21
+ --input-border-radius: 4px;
22
+
23
+ --input-border-width-thin: 1px;
24
+ --input-border-width-thick: 2px;
25
+ }
@@ -0,0 +1 @@
1
+ @import "./forms/index.css";
@@ -0,0 +1,10 @@
1
+ :root {
2
+ --colour-primary: #ff0000;
3
+ --colour-secondary: #00ff00;
4
+ --colour-tertiary: #0000ff;
5
+ --colour-quaternary: #ffff00;
6
+ --colour-quinary: #ff00ff;
7
+ --colour-senary: #00ffff;
8
+ --colour-septenary: #000000;
9
+ --colour-octonary: #ffffff;
10
+ }
@@ -0,0 +1 @@
1
+ @import "./_colours.css";
@@ -13,3 +13,11 @@
13
13
  });
14
14
 
15
15
  </script>
16
+
17
+ <style lang="css">
18
+ .input-text {
19
+ border: var(--input-border-width-thin) solid var(--input-border);
20
+ border-radius: var(--input-border-radius);
21
+ padding: 10px;
22
+ }
23
+ </style>
package/package.json CHANGED
@@ -1,23 +1,26 @@
1
1
  {
2
2
  "name": "srcdev-nuxt-forms",
3
3
  "type": "module",
4
- "version": "0.0.5",
4
+ "version": "0.0.7",
5
5
  "main": "./nuxt.config.ts",
6
6
  "files": [
7
+ "assets",
7
8
  "components"
8
9
  ],
9
10
  "scripts": {
10
- "dev": "nuxi dev .playground",
11
- "build": "nuxt build .playground",
12
- "generate": "nuxt generate .playground",
13
- "preview": "nuxt preview .playground",
11
+ "dev": "nuxi dev",
12
+ "build": "nuxt build",
13
+ "generate": "nuxt generate",
14
+ "preview": "nuxt preview",
14
15
  "lint": "eslint .",
15
- "postinstall": "nuxt prepare .playground"
16
+ "postinstall": "nuxt prepare",
17
+ "release": "release-it"
16
18
  },
17
19
  "devDependencies": {
18
20
  "@nuxt/eslint-config": "^0.3.13",
19
21
  "eslint": "^9.5.0",
20
22
  "nuxt": "^3.12.2",
23
+ "release-it": "^17.4.0",
21
24
  "typescript": "^5.5.2"
22
25
  }
23
26
  }
@@ -1,10 +0,0 @@
1
- <script setup lang="ts">
2
- const { myLayer } = useAppConfig()
3
- </script>
4
-
5
- <template>
6
- <div>
7
- <h1>Hello World!</h1>
8
- <pre>{{ myLayer }}</pre>
9
- </div>
10
- </template>