diff --git a/.examples/_data/citiesByState.js b/.examples/_data/citiesByState.js new file mode 100644 index 00000000..55cb98c8 --- /dev/null +++ b/.examples/_data/citiesByState.js @@ -0,0 +1,630 @@ +export default [ + { + group: 'Alabama', + options: [ + { label: 'Birmingham', population: 209880, value: 'Birmingham, Alabama' }, + { label: 'Montgomery', population: 198218, value: 'Montgomery, Alabama' }, + { label: 'Mobile', population: 189572, value: 'Mobile, Alabama' }, + ], + }, + { + group: 'Alaska', + options: [ + { label: 'Anchorage', population: 291247, value: 'Anchorage, Alaska' }, + { label: 'Fairbanks', population: 31516, value: 'Fairbanks, Alaska' }, + { label: 'Juneau', population: 32113, value: 'Juneau, Alaska' }, + ], + }, + { + group: 'Arizona', + options: [ + { label: 'Phoenix', population: 1445632, value: 'Phoenix, Arizona' }, + { label: 'Tucson', population: 548073, value: 'Tucson, Arizona' }, + { label: 'Mesa', population: 518012, value: 'Mesa, Arizona' }, + ], + }, + { + group: 'Arkansas', + options: [ + { + label: 'Little Rock', + population: 197312, + value: 'Little Rock, Arkansas', + }, + { label: 'Fort Smith', population: 87818, value: 'Fort Smith, Arkansas' }, + { + label: 'Fayetteville', + population: 87016, + value: 'Fayetteville, Arkansas', + }, + ], + }, + { + group: 'California', + options: [ + { + label: 'Los Angeles', + population: 3976322, + value: 'Los Angeles, California', + }, + { + label: 'San Diego', + population: 1394928, + value: 'San Diego, California', + }, + { label: 'San Jose', population: 1026654, value: 'San Jose, California' }, + ], + }, + { + group: 'Colorado', + options: [ + { label: 'Denver', population: 693060, value: 'Denver, Colorado' }, + { + label: 'Colorado Springs', + population: 478221, + value: 'Colorado Springs, Colorado', + }, + { label: 'Aurora', population: 366623, value: 'Aurora, Colorado' }, + ], + }, + { + group: 'Connecticut', + options: [ + { + label: 'Bridgeport', + population: 148654, + value: 'Bridgeport, Connecticut', + }, + { + label: 'New Haven', + population: 130250, + value: 'New Haven, Connecticut', + }, + { label: 'Hartford', population: 123243, value: 'Hartford, Connecticut' }, + ], + }, + { + group: 'Delaware', + options: [ + { label: 'Wilmington', population: 70676, value: 'Wilmington, Delaware' }, + { label: 'Dover', population: 38458, value: 'Dover, Delaware' }, + { label: 'Newark', population: 33387, value: 'Newark, Delaware' }, + ], + }, + { + group: 'Florida', + options: [ + { + label: 'Jacksonville', + population: 892062, + value: 'Jacksonville, Florida', + }, + { label: 'Miami', population: 470914, value: 'Miami, Florida' }, + { label: 'Tampa', population: 399700, value: 'Tampa, Florida' }, + ], + }, + { + group: 'Georgia', + options: [ + { label: 'Atlanta', population: 498044, value: 'Atlanta, Georgia' }, + { label: 'Augusta', population: 197166, value: 'Augusta, Georgia' }, + { label: 'Columbus', population: 195769, value: 'Columbus, Georgia' }, + ], + }, + { + group: 'Hawaii', + options: [ + { label: 'Honolulu', population: 374658, value: 'Honolulu, Hawaii' }, + { + label: 'East Honolulu', + population: 49105, + value: 'East Honolulu, Hawaii', + }, + { label: 'Pearl City', population: 47698, value: 'Pearl City, Hawaii' }, + ], + }, + { + group: 'Idaho', + options: [ + { label: 'Boise', population: 228959, value: 'Boise, Idaho' }, + { label: 'Meridian', population: 106804, value: 'Meridian, Idaho' }, + { label: 'Nampa', population: 106475, value: 'Nampa, Idaho' }, + ], + }, + { + group: 'Illinois', + options: [ + { label: 'Chicago', population: 2705994, value: 'Chicago, Illinois' }, + { label: 'Aurora', population: 199602, value: 'Aurora, Illinois' }, + { label: 'Rockford', population: 147051, value: 'Rockford, Illinois' }, + ], + }, + { + group: 'Indiana', + options: [ + { + label: 'Indianapolis', + population: 867125, + value: 'Indianapolis, Indiana', + }, + { label: 'Fort Wayne', population: 270402, value: 'Fort Wayne, Indiana' }, + { label: 'Evansville', population: 118930, value: 'Evansville, Indiana' }, + ], + }, + { + group: 'Iowa', + options: [ + { label: 'Des Moines', population: 214778, value: 'Des Moines, Iowa' }, + { + label: 'Cedar Rapids', + population: 132228, + value: 'Cedar Rapids, Iowa', + }, + { label: 'Davenport', population: 101532, value: 'Davenport, Iowa' }, + ], + }, + { + group: 'Kansas', + options: [ + { label: 'Wichita', population: 389938, value: 'Wichita, Kansas' }, + { + label: 'Overland Park', + population: 195494, + value: 'Overland Park, Kansas', + }, + { + label: 'Kansas City', + population: 152960, + value: 'Kansas City, Kansas', + }, + ], + }, + { + group: 'Kentucky', + options: [ + { + label: 'Louisville', + population: 615366, + value: 'Louisville, Kentucky', + }, + { label: 'Lexington', population: 314488, value: 'Lexington, Kentucky' }, + { + label: 'Bowling Green', + population: 70846, + value: 'Bowling Green, Kentucky', + }, + ], + }, + { + group: 'Louisiana', + options: [ + { + label: 'New Orleans', + population: 393292, + value: 'New Orleans, Louisiana', + }, + { + label: 'Baton Rouge', + population: 227715, + value: 'Baton Rouge, Louisiana', + }, + { + label: 'Shreveport', + population: 194920, + value: 'Shreveport, Louisiana', + }, + ], + }, + { + group: 'Maine', + options: [ + { label: 'Portland', population: 66591, value: 'Portland, Maine' }, + { label: 'Lewiston', population: 36136, value: 'Lewiston, Maine' }, + { label: 'Bangor', population: 31666, value: 'Bangor, Maine' }, + ], + }, + { + group: 'Maryland', + options: [ + { label: 'Baltimore', population: 611648, value: 'Baltimore, Maryland' }, + { label: 'Columbia', population: 105162, value: 'Columbia, Maryland' }, + { label: 'Germantown', population: 90601, value: 'Germantown, Maryland' }, + ], + }, + { + group: 'Massachusetts', + options: [ + { label: 'Boston', population: 694583, value: 'Boston, Massachusetts' }, + { + label: 'Worcester', + population: 185877, + value: 'Worcester, Massachusetts', + }, + { + label: 'Springfield', + population: 154341, + value: 'Springfield, Massachusetts', + }, + ], + }, + { + group: 'Michigan', + options: [ + { label: 'Detroit', population: 673104, value: 'Detroit, Michigan' }, + { + label: 'Grand Rapids', + population: 200217, + value: 'Grand Rapids, Michigan', + }, + { label: 'Warren', population: 134587, value: 'Warren, Michigan' }, + ], + }, + { + group: 'Minnesota', + options: [ + { + label: 'Minneapolis', + population: 422331, + value: 'Minneapolis, Minnesota', + }, + { + label: 'Saint Paul', + population: 306621, + value: 'Saint Paul, Minnesota', + }, + { label: 'Rochester', population: 118935, value: 'Rochester, Minnesota' }, + ], + }, + { + group: 'Mississippi', + options: [ + { label: 'Jackson', population: 153701, value: 'Jackson, Mississippi' }, + { label: 'Gulfport', population: 71496, value: 'Gulfport, Mississippi' }, + { + label: 'Southaven', + population: 54418, + value: 'Southaven, Mississippi', + }, + ], + }, + { + group: 'Missouri', + options: [ + { + label: 'Kansas City', + population: 488943, + value: 'Kansas City, Missouri', + }, + { + label: 'Saint Louis', + population: 302838, + value: 'Saint Louis, Missouri', + }, + { + label: 'Springfield', + population: 167376, + value: 'Springfield, Missouri', + }, + ], + }, + { + group: 'Montana', + options: [ + { label: 'Billings', population: 110263, value: 'Billings, Montana' }, + { label: 'Missoula', population: 74727, value: 'Missoula, Montana' }, + { + label: 'Great Falls', + population: 58402, + value: 'Great Falls, Montana', + }, + ], + }, + { + group: 'Nebraska', + options: [ + { label: 'Omaha', population: 478192, value: 'Omaha, Nebraska' }, + { label: 'Lincoln', population: 287401, value: 'Lincoln, Nebraska' }, + { label: 'Bellevue', population: 54734, value: 'Bellevue, Nebraska' }, + ], + }, + { + group: 'Nevada', + options: [ + { label: 'Las Vegas', population: 635628, value: 'Las Vegas, Nevada' }, + { label: 'Henderson', population: 320189, value: 'Henderson, Nevada' }, + { label: 'Reno', population: 255601, value: 'Reno, Nevada' }, + ], + }, + { + group: 'New Hampshire', + options: [ + { + label: 'Manchester', + population: 112525, + value: 'Manchester, New Hampshire', + }, + { label: 'Nashua', population: 89536, value: 'Nashua, New Hampshire' }, + { label: 'Concord', population: 43172, value: 'Concord, New Hampshire' }, + ], + }, + { + group: 'New Jersey', + options: [ + { label: 'Newark', population: 282011, value: 'Newark, New Jersey' }, + { + label: 'Jersey City', + population: 265549, + value: 'Jersey City, New Jersey', + }, + { label: 'Paterson', population: 145948, value: 'Paterson, New Jersey' }, + ], + }, + { + group: 'New Mexico', + options: [ + { + label: 'Albuquerque', + population: 560218, + value: 'Albuquerque, New Mexico', + }, + { + label: 'Las Cruces', + population: 102512, + value: 'Las Cruces, New Mexico', + }, + { + label: 'Rio Rancho', + population: 99710, + value: 'Rio Rancho, New Mexico', + }, + ], + }, + { + group: 'New York', + options: [ + { + label: 'New York City', + population: 8175133, + value: 'New York City, New York', + }, + { label: 'Buffalo', population: 261310, value: 'Buffalo, New York' }, + { label: 'Rochester', population: 210565, value: 'Rochester, New York' }, + ], + }, + { + group: 'North Carolina', + options: [ + { + label: 'Charlotte', + population: 731424, + value: 'Charlotte, North Carolina', + }, + { + label: 'Raleigh', + population: 474069, + value: 'Raleigh, North Carolina', + }, + { + label: 'Greensboro', + population: 299035, + value: 'Greensboro, North Carolina', + }, + ], + }, + { + group: 'North Dakota', + options: [ + { label: 'Fargo', population: 113658, value: 'Fargo, North Dakota' }, + { label: 'Bismarck', population: 61272, value: 'Bismarck, North Dakota' }, + { + label: 'Grand Forks', + population: 56791, + value: 'Grand Forks, North Dakota', + }, + ], + }, + { + group: 'Ohio', + options: [ + { label: 'Columbus', population: 822553, value: 'Columbus, Ohio' }, + { label: 'Cleveland', population: 396815, value: 'Cleveland, Ohio' }, + { label: 'Cincinnati', population: 296943, value: 'Cincinnati, Ohio' }, + ], + }, + { + group: 'Oklahoma', + options: [ + { + label: 'Oklahoma City', + population: 649021, + value: 'Oklahoma City, Oklahoma', + }, + { label: 'Tulsa', population: 403505, value: 'Tulsa, Oklahoma' }, + { label: 'Norman', population: 110925, value: 'Norman, Oklahoma' }, + ], + }, + { + group: 'Oregon', + options: [ + { label: 'Portland', population: 647805, value: 'Portland, Oregon' }, + { label: 'Salem', population: 154637, value: 'Salem, Oregon' }, + { label: 'Eugene', population: 156185, value: 'Eugene, Oregon' }, + ], + }, + { + group: 'Pennsylvania', + options: [ + { + label: 'Philadelphia', + population: 1584138, + value: 'Philadelphia, Pennsylvania', + }, + { + label: 'Pittsburgh', + population: 303625, + value: 'Pittsburgh, Pennsylvania', + }, + { + label: 'Allentown', + population: 120207, + value: 'Allentown, Pennsylvania', + }, + ], + }, + { + group: 'Rhode Island', + options: [ + { + label: 'Providence', + population: 179883, + value: 'Providence, Rhode Island', + }, + { label: 'Warwick', population: 82039, value: 'Warwick, Rhode Island' }, + { label: 'Cranston', population: 80566, value: 'Cranston, Rhode Island' }, + ], + }, + { + group: 'South Carolina', + options: [ + { + label: 'Charleston', + population: 130113, + value: 'Charleston, South Carolina', + }, + { + label: 'Columbia', + population: 129272, + value: 'Columbia, South Carolina', + }, + { + label: 'North Charleston', + population: 115382, + value: 'North Charleston, South Carolina', + }, + ], + }, + { + group: 'South Dakota', + options: [ + { + label: 'Sioux Falls', + population: 153888, + value: 'Sioux Falls, South Dakota', + }, + { + label: 'Rapid City', + population: 69030, + value: 'Rapid City, South Dakota', + }, + { label: 'Aberdeen', population: 28489, value: 'Aberdeen, South Dakota' }, + ], + }, + { + group: 'Tennessee', + options: [ + { label: 'Nashville', population: 689447, value: 'Nashville, Tennessee' }, + { label: 'Memphis', population: 650618, value: 'Memphis, Tennessee' }, + { label: 'Knoxville', population: 186239, value: 'Knoxville, Tennessee' }, + ], + }, + { + group: 'Texas', + options: [ + { label: 'Houston', population: 2320268, value: 'Houston, Texas' }, + { + label: 'San Antonio', + population: 1547253, + value: 'San Antonio, Texas', + }, + { label: 'Dallas', population: 1317929, value: 'Dallas, Texas' }, + ], + }, + { + group: 'Utah', + options: [ + { + label: 'Salt Lake City', + population: 200567, + value: 'Salt Lake City, Utah', + }, + { + label: 'West Valley City', + population: 135248, + value: 'West Valley City, Utah', + }, + { label: 'Provo', population: 115264, value: 'Provo, Utah' }, + ], + }, + { + group: 'Vermont', + options: [ + { label: 'Burlington', population: 42284, value: 'Burlington, Vermont' }, + { + label: 'South Burlington', + population: 18998, + value: 'South Burlington, Vermont', + }, + { label: 'Essex', population: 21291, value: 'Essex, Vermont' }, + ], + }, + { + group: 'Virginia', + options: [ + { + label: 'Virginia Beach', + population: 450435, + value: 'Virginia Beach, Virginia', + }, + { label: 'Norfolk', population: 242742, value: 'Norfolk, Virginia' }, + { + label: 'Chesapeake', + population: 240397, + value: 'Chesapeake, Virginia', + }, + ], + }, + { + group: 'Washington', + options: [ + { label: 'Seattle', population: 744955, value: 'Seattle, Washington' }, + { label: 'Spokane', population: 219190, value: 'Spokane, Washington' }, + { label: 'Tacoma', population: 217827, value: 'Tacoma, Washington' }, + ], + }, + { + group: 'West Virginia', + options: [ + { + label: 'Charleston', + population: 51400, + value: 'Charleston, West Virginia', + }, + { + label: 'Huntington', + population: 46413, + value: 'Huntington, West Virginia', + }, + { + label: 'Morgantown', + population: 30505, + value: 'Morgantown, West Virginia', + }, + ], + }, + { + group: 'Wisconsin', + options: [ + { label: 'Milwaukee', population: 594833, value: 'Milwaukee, Wisconsin' }, + { label: 'Madison', population: 233209, value: 'Madison, Wisconsin' }, + { label: 'Green Bay', population: 104578, value: 'Green Bay, Wisconsin' }, + ], + }, + { + group: 'Wyoming', + options: [ + { label: 'Cheyenne', population: 59466, value: 'Cheyenne, Wyoming' }, + { label: 'Casper', population: 57913, value: 'Casper, Wyoming' }, + { label: 'Laramie', population: 32959, value: 'Laramie, Wyoming' }, + ], + }, +] diff --git a/.examples/autocomplete-pro/autocomplete-option-groups.vue b/.examples/autocomplete-pro/autocomplete-option-groups.vue new file mode 100644 index 00000000..e85eaa7b --- /dev/null +++ b/.examples/autocomplete-pro/autocomplete-option-groups.vue @@ -0,0 +1,20 @@ + + + + + diff --git a/.examples/colorpicker/alpha.vue b/.examples/colorpicker/alpha.vue new file mode 100644 index 00000000..059777cb --- /dev/null +++ b/.examples/colorpicker/alpha.vue @@ -0,0 +1,16 @@ + diff --git a/.examples/currency/currency-default.vue b/.examples/currency/currency-default.vue new file mode 100644 index 00000000..f960ada3 --- /dev/null +++ b/.examples/currency/currency-default.vue @@ -0,0 +1,21 @@ + + + diff --git a/.examples/currency/currency-props-explore.vue b/.examples/currency/currency-props-explore.vue new file mode 100644 index 00000000..02923306 --- /dev/null +++ b/.examples/currency/currency-props-explore.vue @@ -0,0 +1,28 @@ + + + diff --git a/.examples/currency/currency-simple-locale.vue b/.examples/currency/currency-simple-locale.vue new file mode 100644 index 00000000..15fecbe3 --- /dev/null +++ b/.examples/currency/currency-simple-locale.vue @@ -0,0 +1,47 @@ + + + diff --git a/.examples/dropdown/dropdown-option-groups.vue b/.examples/dropdown/dropdown-option-groups.vue new file mode 100644 index 00000000..0eee1743 --- /dev/null +++ b/.examples/dropdown/dropdown-option-groups.vue @@ -0,0 +1,20 @@ + + + + + diff --git a/.examples/rule-date-after-node/rule-date-after-node.vue b/.examples/rule-date-after-node/rule-date-after-node.vue new file mode 100644 index 00000000..c7e6c649 --- /dev/null +++ b/.examples/rule-date-after-node/rule-date-after-node.vue @@ -0,0 +1,18 @@ + diff --git a/.examples/rule-date-after-or-equal/rule-date-after-or-equal.vue b/.examples/rule-date-after-or-equal/rule-date-after-or-equal.vue new file mode 100644 index 00000000..e84fc3a0 --- /dev/null +++ b/.examples/rule-date-after-or-equal/rule-date-after-or-equal.vue @@ -0,0 +1,9 @@ + diff --git a/.examples/rule-date-before-node/rule-date-before-node.vue b/.examples/rule-date-before-node/rule-date-before-node.vue new file mode 100644 index 00000000..d6962b33 --- /dev/null +++ b/.examples/rule-date-before-node/rule-date-before-node.vue @@ -0,0 +1,18 @@ + diff --git a/.examples/rule-date-before-or-equal/rule-date-before-or-equal.vue b/.examples/rule-date-before-or-equal/rule-date-before-or-equal.vue new file mode 100644 index 00000000..ffa96999 --- /dev/null +++ b/.examples/rule-date-before-or-equal/rule-date-before-or-equal.vue @@ -0,0 +1,9 @@ + diff --git a/.examples/taglist/taglist-option-groups.vue b/.examples/taglist/taglist-option-groups.vue new file mode 100644 index 00000000..fa9fd6c6 --- /dev/null +++ b/.examples/taglist/taglist-option-groups.vue @@ -0,0 +1,19 @@ + + + + + diff --git a/.examples/unit/unit-decimals.vue b/.examples/unit/unit-decimals.vue new file mode 100644 index 00000000..7ca25f4f --- /dev/null +++ b/.examples/unit/unit-decimals.vue @@ -0,0 +1,27 @@ + + + diff --git a/.examples/unit/unit-display.vue b/.examples/unit/unit-display.vue new file mode 100644 index 00000000..144494de --- /dev/null +++ b/.examples/unit/unit-display.vue @@ -0,0 +1,36 @@ + + + diff --git a/.examples/unit/unit-locale.vue b/.examples/unit/unit-locale.vue new file mode 100644 index 00000000..84308fb0 --- /dev/null +++ b/.examples/unit/unit-locale.vue @@ -0,0 +1,35 @@ + + + diff --git a/.examples/unit/unit-min-max.vue b/.examples/unit/unit-min-max.vue new file mode 100644 index 00000000..d7a49c65 --- /dev/null +++ b/.examples/unit/unit-min-max.vue @@ -0,0 +1,27 @@ + + + diff --git a/.examples/unit/unit-step.vue b/.examples/unit/unit-step.vue new file mode 100644 index 00000000..b0a65e9d --- /dev/null +++ b/.examples/unit/unit-step.vue @@ -0,0 +1,19 @@ + + + diff --git a/.examples/unit/unit-value-format.vue b/.examples/unit/unit-value-format.vue new file mode 100644 index 00000000..7bf3d0e4 --- /dev/null +++ b/.examples/unit/unit-value-format.vue @@ -0,0 +1,32 @@ + + + diff --git a/.examples/unit/unit.vue b/.examples/unit/unit.vue new file mode 100644 index 00000000..fc3ea11c --- /dev/null +++ b/.examples/unit/unit.vue @@ -0,0 +1,52 @@ + + + diff --git a/.examples/unit/unitless.vue b/.examples/unit/unitless.vue new file mode 100644 index 00000000..57e2933a --- /dev/null +++ b/.examples/unit/unitless.vue @@ -0,0 +1,6 @@ + diff --git a/.examples/unit/value-unit.vue b/.examples/unit/value-unit.vue new file mode 100644 index 00000000..3342cdb1 --- /dev/null +++ b/.examples/unit/value-unit.vue @@ -0,0 +1,12 @@ + diff --git a/_install/astro.md b/_install/astro.md index 12547643..9955e1a0 100644 --- a/_install/astro.md +++ b/_install/astro.md @@ -40,7 +40,7 @@ label: "Vue Components" Astro does not let you use FormKit directly inside Astro files, so you should create a wrapper around your forms. :: -Now you can add FormKit to your Astro Vue components, so that you can create a component inside the components folder: +Now you can add FormKit to your Astro Vue components by creating a component inside the components folder: ```html