srcdev-nuxt-forms 0.0.17 → 0.0.18

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/nuxt.config.ts CHANGED
@@ -7,8 +7,8 @@ export default defineNuxtConfig({
7
7
  css: [resolve('./assets/styles/main.css')],
8
8
  components: [
9
9
  {
10
- path: '~/components',
11
- pathPrefix: true,
10
+ path: './components',
11
+ pathPrefix: false,
12
12
  },
13
13
  ],
14
14
  })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "srcdev-nuxt-forms",
3
3
  "type": "module",
4
- "version": "0.0.17",
4
+ "version": "0.0.18",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "reinstall": "rm -rf node_modules && npm install",
package/pages/index.vue CHANGED
@@ -5,19 +5,19 @@
5
5
  <div>
6
6
  <h1>Sample form page</h1>
7
7
 
8
- <FormsUiFormWrapper width="medium">
8
+ <FormWrapper width="medium">
9
9
  <template #default>
10
10
  <form>
11
11
  <p>Form content</p>
12
- <FormsUiFormField width="wide" :has-gutter="true">
12
+ <FormField width="wide" :has-gutter="true">
13
13
  <template #default>
14
14
  <p>Input text</p>
15
- <FormsInputTextCore />
15
+ <InputTextCore />
16
16
  </template>
17
- </FormsUiFormField>
17
+ </FormField>
18
18
  </form>
19
19
  </template>
20
- </FormsUiFormWrapper>
20
+ </FormWrapper>
21
21
  </div>
22
22
  </template>
23
23
  </NuxtLayout>