srcdev-nuxt-forms 0.0.14 → 0.0.16

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.
@@ -0,0 +1,22 @@
1
+ <template>
2
+ <div>
3
+ <input type="text" class="input-text" v-model="formValue" />
4
+ </div>
5
+ </template>
6
+ <script setup lang="ts">
7
+ console.log('InputText component loaded')
8
+
9
+ const formValue = ref('')
10
+
11
+ watchEffect(() => {
12
+ console.log('Form value changed to: ', formValue.value)
13
+ })
14
+ </script>
15
+
16
+ <style lang="css">
17
+ .input-text {
18
+ border: var(--input-border-width-thin) solid var(--input-border);
19
+ border-radius: var(--input-border-radius);
20
+ padding: 10px;
21
+ }
22
+ </style>
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "srcdev-nuxt-forms",
3
3
  "type": "module",
4
- "version": "0.0.14",
4
+ "version": "0.0.16",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
+ "reinstall": "rm -rf node_modules && npm install",
7
8
  "dev": "nuxi dev",
8
9
  "build": "nuxt build",
9
10
  "generate": "nuxt generate",
package/pages/index.vue CHANGED
@@ -5,19 +5,20 @@
5
5
  <div>
6
6
  <h1>Sample form page</h1>
7
7
 
8
- <FormWrapper width="medium">
8
+ <FormsUiFormWrapper width="medium">
9
9
  <template #default>
10
10
  <form>
11
11
  <p>Form content</p>
12
- <InputField width="wide" :has-gutter="true">
12
+ <FormsUiField width="wide" :has-gutter="true">
13
13
  <template #default>
14
14
  <p>Input text</p>
15
- <InputText />
15
+ <FormsInputTextCore />
16
+ <InputTextCore />
16
17
  </template>
17
- </InputField>
18
+ </FormsUiField>
18
19
  </form>
19
20
  </template>
20
- </FormWrapper>
21
+ </FormsUiFormWrapper>
21
22
  </div>
22
23
  </template>
23
24
  </NuxtLayout>