Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
900cbae
add: initial docs for currency and unit inputs
chrisladams Feb 28, 2024
3026917
Merge branch 'master' into feature/currency
chrisladams Feb 28, 2024
883298d
fix: updates to currency examples
chrisladams Mar 4, 2024
550fa3d
docs: adds examples for option groups
Apr 25, 2024
4461b1f
docs: removes ungrouped options from citiesByState
Apr 25, 2024
20f2255
docs: adds changelog for FormKit Pro v.0.123.1
Apr 25, 2024
76c2478
docs: Adds changelog for FormKit Pro v0.123.2
Apr 26, 2024
c920369
docs: adds changelog for FormKit Pro v0.123.3
Apr 26, 2024
bcc828b
docs: adds changelog for FormKit Pro v0.123.4
Apr 26, 2024
52d8bce
docs: Adds changelog for FormKit Pro v0.123.5
Apr 26, 2024
b4cf017
docs: adds changelog for FormKit Pro v0.123.6
Apr 27, 2024
7d1c21f
docs: adds new bronze sponsor logo
devoidofgenius May 1, 2024
a5621db
docs: correct resizing placed on wrong logo
devoidofgenius May 1, 2024
8d812e0
docs:removes old sponsors from community page
devoidofgenius May 2, 2024
cc1ddbd
docs: removes unit docs for now
May 6, 2024
6d3d633
Merge branch 'master' into feature/currency-with-no-unit
May 7, 2024
08f5c98
docs: updates currency docs
May 7, 2024
675832a
docs: updates currency docs
May 7, 2024
d4ffaac
docs:
May 7, 2024
760b7b0
docs: updates currency docs, adds changelog for FormKit Pro v0.124.0
May 7, 2024
2652ef8
docs: removes currency example from docs
May 7, 2024
73263d2
docs: adds changelog for FormKit Pro v.0.124.1
May 7, 2024
d2b0092
docs: adds docs for FormKit Pro v0.124.2
May 7, 2024
5943f97
docs: adds changelog for FormKit Pro v0.125.0
May 8, 2024
055edc0
docs: removes reverse mask example
May 8, 2024
acc5532
docs: adds changelog for FormKit Pro v0.125.1
May 9, 2024
059279f
docs: adds keyboard interactions table to currency input
May 10, 2024
aa4eefc
docs: makes slight edit to keyboard interactions for currency input
May 10, 2024
c658cbf
docs: adds more pro changelogs
andrew-boyd May 10, 2024
33b2cb0
docs: adds changelog for FormKit Pro v0.125.4
May 10, 2024
216a6c5
feat: 1.6.3 changelog
justin-schroeder May 14, 2024
dc0ab8a
docs: updates pro changelog and adds colorpicker alpha example
andrew-boyd May 14, 2024
f11bfc7
chore: fix heading level in changelog
andrew-boyd May 14, 2024
c3f4a1b
docs: adds changelog for pro
andrew-boyd May 14, 2024
60e92e4
docs: adds changelog for formkit pro v0.125.7
May 14, 2024
51d94c0
chore: fix typo in changelog
andrew-boyd May 21, 2024
59bfa39
docs: updates changelogs
andrew-boyd May 21, 2024
ad5b7b1
docs: adds changelog for FormKit Pro v0.126.0, adds to transferlist docs
May 24, 2024
1c42f6d
docs: fixes type in v0.126.0 changelog
May 24, 2024
0ba695e
docs: adds changelog for FormKit Pro v0.126.1
May 24, 2024
4e90c06
docs: adds changelog for FormKit Pro v0.126.2
May 24, 2024
1902fa2
docs: adds changelog for FormKit Pro v0.126.3
May 24, 2024
327f43b
docs: adds 1.6.4 to changelog
justin-schroeder May 28, 2024
94953d7
docs: adds changelog for FormKit Pro v0.126.4
May 28, 2024
f2ef2d3
docs: 1.6.5 changelog:
justin-schroeder May 28, 2024
1bbf456
docs: adds changelog for FormKit Pro v0.126.5
Jun 3, 2024
45afde8
docs: adds changelog for FormKit Pro v0.126.6 and updates emoji in Fo…
Jun 3, 2024
5c3d572
docs: adds changelog for FormKit Pro v0.126.7
Jun 5, 2024
de9a696
fix: adds changelog for FormKit pro v0.126.8
Jun 5, 2024
d5dc278
docs: adjusts version number of FormKit Pro v0.126.9 changelog
Jun 5, 2024
93fc420
Fix typo
nhedger Jun 7, 2024
b042a99
Merge pull request #139 from nhedger/patch-1
justin-schroeder Jun 7, 2024
79cbeba
docs: adds changelog for FormKit Pro v0.126.10
Jun 10, 2024
def0f1b
docs: adds changelog for FormKit Pro v0.126.11
Jun 13, 2024
7d66d28
docs: adds changelog for FormKit Pro v0.126.12
Jul 1, 2024
fc1a785
docs: adds changelog for FormKit Pro v0.126.13
Jul 11, 2024
64d7210
docs: adds changelog for FormKit Pro v0.126.14
Jul 29, 2024
d644351
Address typos and punctuation issues on custom-inputs page
kswedberg Jul 31, 2024
659e0cd
Merge pull request #142 from kswedberg/custom-inputs-page
justin-schroeder Jul 31, 2024
54c5cc8
Fix it's → its
kswedberg Jul 31, 2024
4cfa2a8
docs: adds changelog for FormKit Pro v0.126.15
Aug 1, 2024
103ce65
docs: adds changelog for FormKit Pro v0.126.16
Aug 1, 2024
849fbaa
Merge branch 'formkit:master' into inputs-meta
kswedberg Aug 10, 2024
10d66e7
docs: adds docs for unit input
Aug 20, 2024
ebd99b0
fixes typo
Aug 20, 2024
cb4d762
docs: adds changelog for FormKit Pro v0.127.0
Aug 20, 2024
ac8269f
removes erroneous changelog items
Aug 20, 2024
37a0e45
docs: adds examples to unit docs
Aug 21, 2024
af5835a
docs: adds prop for unitDisplay
Aug 21, 2024
ee6a4df
docs: adds pre tag to unit example
Aug 21, 2024
6267439
docs: adds labels to unit examples
Aug 21, 2024
e32a449
docs: adds another pre tag wrap to value in unit example
Aug 21, 2024
4f66cfd
docs: adjusts latest pro changelog by adding link
Aug 21, 2024
4ea039e
docs: adds changelog for FormKit Pro v0.127.1 and unitless example
Sep 11, 2024
c593245
feat: adds 1.6.6 changelog
justin-schroeder Sep 12, 2024
42b018d
fix: changelog
justin-schroeder Sep 12, 2024
140f0df
Fix typos and a handful of punctuation issues
kswedberg Sep 13, 2024
28bc718
fix
justin-schroeder Sep 13, 2024
9486275
docs: adds changelog for FormKit Pro v0.127.2
Sep 13, 2024
5fd79e3
chore: updates changelog
justin-schroeder Sep 18, 2024
215d421
feat: adds new validation rule examples
justin-schroeder Sep 18, 2024
88e8cfc
fix: restores custom rule docs
justin-schroeder Sep 26, 2024
bf9ebd8
Merge pull request #144 from kswedberg/install-fixes
justin-schroeder Sep 26, 2024
65ddf17
Merge pull request #143 from kswedberg/inputs-meta
justin-schroeder Sep 26, 2024
80a482b
docs: adds changelog for FormKit Pro v0.127.3
Oct 2, 2024
3c57119
feat: changelog
justin-schroeder Oct 2, 2024
718de18
chore: add mast to sponsor page
luan-nk-nguyen Oct 4, 2024
b69eb51
chore: adjust size of Mast logo
luan-nk-nguyen Oct 4, 2024
5baf7cd
docs: adds changelog for formkit pro 0.127.5
Oct 8, 2024
999089a
Update the documentation for the FormKitSchema for nuxt
leamsigc Oct 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
630 changes: 630 additions & 0 deletions .examples/_data/citiesByState.js

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions .examples/autocomplete-pro/autocomplete-option-groups.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<script setup>
import citiesByState from './citiesByState.js'
</script>

<template>
<FormKit type="form" #default="{ value }" :actions="false">
<FormKit
type="autocomplete"
name="most_populous_cities"
label="Choose your favorite countries"
placeholder="New York, Los Angeles..."
:options="citiesByState"
multiple
popover
/>
<pre wrap>{{ value }}</pre>
</FormKit>
</template>

<style></style>
16 changes: 16 additions & 0 deletions .examples/colorpicker/alpha.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<template>
<FormKit type="form" #default="{ value }" :actions="false">
<!-- %partial% -->
<FormKit
type="colorpicker"
name="color"
value="rgba(255, 0, 0, 0.5)"
alpha="false"
popover
value-format="rgba"
/>
<!-- %partial% -->

<pre wrap>{{ value }}</pre>
</FormKit>
</template>
21 changes: 21 additions & 0 deletions .examples/currency/currency-default.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<script setup>
import { ref } from 'vue'
const value = ref(false)
</script>

<template>
<!--
FormKit forms auto-collect values of children inputs.
Wrap the example in a form so we can display the form values.
-->
<FormKit type="form" #default="{ value }" :actions="false">
<!-- %partial%::html:: -->
<FormKit
type="currency"
name="currency"
value="12345678.90"
/>
<!-- %partial%::html:: -->
<pre wrap>{{ value }}</pre>
</FormKit>
</template>
28 changes: 28 additions & 0 deletions .examples/currency/currency-props-explore.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<script setup>
import { ref } from 'vue'
const value = ref(false)
</script>

<template>
<!--
FormKit forms auto-collect values of children inputs.
Wrap the example in a form so we can display the form values.
-->
<FormKit type="form" #default="{ value }" :actions="false">
<!-- %partial%::html:: -->
<FormKit
type="currency"
name="currency"
min="-10"
max="1000"
step="0.0001"
currency="USD"
displayLocale="en-US"
decimals="4"
minDecimals="2"
value="123.1234"
/>
<!-- %partial%::html:: -->
<pre wrap>{{ value }}</pre>
</FormKit>
</template>
47 changes: 47 additions & 0 deletions .examples/currency/currency-simple-locale.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<script setup>
import { ref } from 'vue'
const value = ref(false)
</script>

<template>
<!--
FormKit forms auto-collect values of children inputs.
Wrap the example in a form so we can display the form values.
-->
<FormKit type="form" #default="{ value }" :actions="false">
<!-- %partial%::html:: -->
<FormKit
type="currency"
currency="USD"
display-locale="en"
name="usd"
value="12345678.90"
/>

<FormKit
type="currency"
currency="EUR"
display-locale="de"
name="eur"
value="12345678.90"
/>

<FormKit
type="currency"
currency="INR"
display-locale="en-IN"
name="inr"
value="12345678.90"
/>

<FormKit
type="currency"
currency="CNY"
display-locale="zh-CN"
name="cny"
value="12345678.90"
/>
<!-- %partial%::html:: -->
<pre wrap>{{ value }}</pre>
</FormKit>
</template>
20 changes: 20 additions & 0 deletions .examples/dropdown/dropdown-option-groups.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<script setup>
import citiesByState from './citiesByState.js'
</script>

<template>
<FormKit type="form" #default="{ value }" :actions="false">
<FormKit
type="dropdown"
name="most_populous_cities"
label="Choose your favorite countries"
placeholder="New York, Los Angeles..."
:options="citiesByState"
multiple
popover
/>
<pre wrap>{{ value }}</pre>
</FormKit>
</template>

<style></style>
18 changes: 18 additions & 0 deletions .examples/rule-date-after-node/rule-date-after-node.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<template>
<FormKit type="group">
<FormKit
type="date"
name="startDate"
label="Start Date"
help="Select a start date"
/>
<FormKit
type="date"
name="endDate"
label="End Date"
validation="date_after_node:startDate"
validation-label="End Date"
:help="`Select an end date after the start date`"
/>
</FormKit>
</template>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<template>
<FormKit
type="date"
label="Select a date after or equal to 2020-01-01"
validation="date_after_or_equal:2020-01-01"
validation-label="Date"
help="The selected date must be after or equal to 2020-01-01"
/>
</template>
18 changes: 18 additions & 0 deletions .examples/rule-date-before-node/rule-date-before-node.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<template>
<FormKit type="group">
<FormKit
type="date"
name="startDate"
label="Start Date"
help="Select a start date"
/>
<FormKit
type="date"
name="endDate"
label="End Date"
validation="date_before_node:startDate"
validation-label="End Date"
:help="`Select an end date before the start date`"
/>
</FormKit>
</template>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<template>
<FormKit
type="date"
label="Select a date before or equal to 2020-01-01"
validation="date_before_or_equal:2020-01-01"
validation-label="Date"
help="The selected date must be before 2020-01-01"
/>
</template>
19 changes: 19 additions & 0 deletions .examples/taglist/taglist-option-groups.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<script setup>
import citiesByState from './citiesByState.js'
</script>

<template>
<FormKit type="form" #default="{ value }" :actions="false">
<FormKit
type="taglist"
name="most_populous_cities"
label="Choose your favorite countries"
placeholder="New York, Los Angeles..."
:options="citiesByState"
multiple
/>
<pre wrap>{{ value }}</pre>
</FormKit>
</template>

<style></style>
27 changes: 27 additions & 0 deletions .examples/unit/unit-decimals.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<script setup>
const initialValues = {
input_1: 100,
input_2: 100,
}
</script>

<template>
<FormKit type="form" :actions="false" :value="initialValues">
<!-- %partial%::html:: -->
<FormKit
type="unit"
unit="liter"
name="input_1"
label="5 decimals allowed"
decimals="5"
/>
<FormKit
type="unit"
unit="liter"
name="input_2"
label="Minimum of 2 decimals"
min-decimals="2"
/>
<!-- %partial%::html:: -->
</FormKit>
</template>
36 changes: 36 additions & 0 deletions .examples/unit/unit-display.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<script setup>
const initialValues = {
narrow: 100,
short: 100,
long: 100,
empty: 100,
}
</script>

<template>
<FormKit type="form" :actions="false" :value="initialValues">
<!-- %partial%::html:: -->
<FormKit
type="unit"
unit="kilogram"
name="narrow"
unit-display="narrow"
label="Narrow"
/>
<FormKit
type="unit"
unit="kilogram"
name="short"
unit-display="short"
label="Short"
/>
<FormKit
type="unit"
unit="kilogram"
name="long"
unit-display="long"
label="Long"
/>
<!-- %partial%::html:: -->
</FormKit>
</template>
35 changes: 35 additions & 0 deletions .examples/unit/unit-locale.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<script setup>
const initialValues = {
input_1: 100,
input_2: 100,
input_3: 100,
}
</script>

<template>
<FormKit type="form" :actions="false" :value="initialValues">
<!-- %partial%::html:: -->
<FormKit
type="unit"
unit="kilogram"
name="input_1"
unit-display="long"
display-locale="en-US"
/>
<FormKit
type="unit"
unit="kilogram"
name="input_2"
unit-display="long"
display-locale="de-DE"
/>
<FormKit
type="unit"
unit="kilogram"
name="input_3"
unit-display="long"
display-locale="zh-CN"
/>
<!-- %partial%::html:: -->
</FormKit>
</template>
27 changes: 27 additions & 0 deletions .examples/unit/unit-min-max.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<script setup>
const initialValues = {
input_1: 100,
input_2: 0,
}
</script>

<template>
<FormKit type="form" :actions="false" :value="initialValues">
<!-- %partial%::html:: -->
<FormKit
type="unit"
unit="millisecond"
name="input_1"
label="Min of 100"
min="100"
/>
<FormKit
type="unit"
unit="millisecond"
name="input_2"
label="Max of 100"
max="100"
/>
<!-- %partial%::html:: -->
</FormKit>
</template>
19 changes: 19 additions & 0 deletions .examples/unit/unit-step.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<script setup>
const initialValues = {
input_1: 0,
}
</script>

<template>
<FormKit type="form" :actions="false" :value="initialValues">
<!-- %partial%::html:: -->
<FormKit
type="unit"
unit="centimeter"
name="input_1"
label="Step of 100"
step="100"
/>
<!-- %partial%::html:: -->
</FormKit>
</template>
Loading