@stubber/form-fields 1.0.8 → 1.0.10
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 +21 -5
- package/dist/fields/components/Checkbox.svelte +1 -13
- package/dist/fields/components/Email.svelte +1 -1
- package/dist/fields/components/Note.svelte +3 -1
- package/dist/fields/components/Number.svelte +1 -1
- package/dist/fields/components/Text.svelte +4 -2
- package/package.json +11 -1
package/README.md
CHANGED
|
@@ -306,8 +306,24 @@ The dependencies prop is used by certain fields that only function with third pa
|
|
|
306
306
|
|
|
307
307
|
# Publishing
|
|
308
308
|
|
|
309
|
-
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
309
|
+
We use [semantic-release](https://github.com/semantic-release/semantic-release) to automate the versioning and package publishing process. To publish a new version of the package, follow these steps:
|
|
310
|
+
|
|
311
|
+
Simply make a commit with a message that follows the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification, and push it to the master branch. The commit message should include a type (feat, fix, chore, etc.) and an optional scope.
|
|
312
|
+
|
|
313
|
+
For example:
|
|
314
|
+
|
|
315
|
+
```bash
|
|
316
|
+
# will create a new major release.
|
|
317
|
+
breaking: change button color to red
|
|
318
|
+
feat!: add new button component
|
|
319
|
+
|
|
320
|
+
# will create a new minor release.
|
|
321
|
+
feat: add new button component
|
|
322
|
+
|
|
323
|
+
# will create a new patch release.
|
|
324
|
+
fix: fix button color
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
See default ruleset [here](https://github.com/semantic-release/commit-analyzer/blob/master/lib/default-release-rules.js)
|
|
328
|
+
|
|
329
|
+
# force-publish
|
|
@@ -77,19 +77,7 @@
|
|
|
77
77
|
{#if $internal}
|
|
78
78
|
<div class="flex flex-col w-full {!isValid ? `text-danger-500` : `text-surface-900`}">
|
|
79
79
|
<div class="flex space-x-3 relative my-1 items-center">
|
|
80
|
-
<Checkbox
|
|
81
|
-
on:keydown={(e) => {
|
|
82
|
-
if (e.key === "Enter") {
|
|
83
|
-
e.preventDefault();
|
|
84
|
-
}
|
|
85
|
-
}}
|
|
86
|
-
type="checkbox"
|
|
87
|
-
id="input_{state_key}"
|
|
88
|
-
placeholder={label}
|
|
89
|
-
name={state_key}
|
|
90
|
-
bind:checked={$internal.checked}
|
|
91
|
-
/>
|
|
92
|
-
|
|
80
|
+
<Checkbox id="input_{state_key}" name={state_key} bind:checked={$internal.checked} />
|
|
93
81
|
<Label for="input_{state_key}" class="block {hide_label ? 'hidden' : ''}">
|
|
94
82
|
{label}
|
|
95
83
|
</Label>
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
type="text"
|
|
112
112
|
id="input_{state_key}"
|
|
113
113
|
placeholder={label}
|
|
114
|
-
class="block w-full
|
|
114
|
+
class="block w-full placeholder:opacity-30 {!isValid
|
|
115
115
|
? 'ring-danger-500'
|
|
116
116
|
: 'ring-surface-300 focus:ring-primary-400'} focus:outline-none placeholder:text-surface-400 focus:ring-2 focus:ring-inset"
|
|
117
117
|
name={state_key}
|
|
@@ -80,7 +80,9 @@
|
|
|
80
80
|
rows="3"
|
|
81
81
|
id="input_{state_key}"
|
|
82
82
|
placeholder={label}
|
|
83
|
-
class="block w-full {!isValid
|
|
83
|
+
class="block w-full placeholder:opacity-30 {!isValid
|
|
84
|
+
? 'ring-danger-500'
|
|
85
|
+
: 'ring-surface-300 '} "
|
|
84
86
|
name={state_key}
|
|
85
87
|
bind:value={$internal.raw}
|
|
86
88
|
/>
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
type="number"
|
|
103
103
|
id="input_{state_key}"
|
|
104
104
|
placeholder={label}
|
|
105
|
-
class="block w-full {!isValid
|
|
105
|
+
class="block w-full placeholder:opacity-30 {!isValid
|
|
106
106
|
? 'ring-danger-500'
|
|
107
107
|
: 'ring-surface-300 focus:ring-primary-400'} "
|
|
108
108
|
name={state_key}
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
</script>
|
|
80
80
|
|
|
81
81
|
{#if $internal}
|
|
82
|
-
<div class="flex flex-col w-full
|
|
82
|
+
<div class="flex flex-col w-full my-2">
|
|
83
83
|
<Label for="input_{state_key}" class="block py-2 {hide_label ? 'hidden' : ''}">
|
|
84
84
|
{label}
|
|
85
85
|
</Label>
|
|
@@ -93,7 +93,9 @@
|
|
|
93
93
|
type="text"
|
|
94
94
|
id="input_{state_key}"
|
|
95
95
|
placeholder={label}
|
|
96
|
-
class="block w-full
|
|
96
|
+
class="block w-full placeholder:opacity-30 {!isValid
|
|
97
|
+
? 'ring-danger-500'
|
|
98
|
+
: 'ring-surface-300 '} "
|
|
97
99
|
name={state_key}
|
|
98
100
|
bind:value={$internal.raw}
|
|
99
101
|
/>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stubber/form-fields",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "An automatic form builder based on field specifications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -85,5 +85,15 @@
|
|
|
85
85
|
"svelte-preprocess",
|
|
86
86
|
"@parcel/watcher"
|
|
87
87
|
]
|
|
88
|
+
},
|
|
89
|
+
"release": {
|
|
90
|
+
"branches": [
|
|
91
|
+
"master"
|
|
92
|
+
],
|
|
93
|
+
"plugins": [
|
|
94
|
+
"@semantic-release/commit-analyzer",
|
|
95
|
+
"@semantic-release/release-notes-generator",
|
|
96
|
+
"@semantic-release/npm"
|
|
97
|
+
]
|
|
88
98
|
}
|
|
89
99
|
}
|