diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..06848ec
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,19 @@
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+indent_style = tab
+indent_size = 2
+trim_trailing_whitespace = true
+
+[*.md]
+trim_trailing_whitespace = false
+
+[*.php]
+indent_size = 4
+
+[*.{yml,yaml}]
+indent_size = 2
+indent_style = space
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..a803dfb
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,15 @@
+# Do not export those files in the Composer archive (lighter dependency)
+/.gitattributes export-ignore
+/.gitignore export-ignore
+/composer.lock export-ignore
+/.nvmrc export-ignore
+/.editorconfig export-ignore
+/package.json export-ignore
+/package-lock.json export-ignore
+/postcss.config.js export-ignore
+/tailwind.config.js export-ignore
+/README.md export-ignore
+/LICENSE.md export-ignore
+/docs/ export-ignore
+/scripts/ export-ignore
+/styles/ export-ignore
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0030d89..df37bda 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,17 @@
# Release Notes for Palette
+## 1.2.0 - 2022-02-07
+
+### Added
+- New `badgeCount` property to display Craft's badge count values
+- Add badge counts for primary navigation items
+
+### Updated
+- Move the Utility navigation badge count into the `badgeCount` property
+
+### Fixed
+- Exclude source files from being included in the Composer package
+
## 1.1.0 - 2022-02-07
### Added
diff --git a/composer.json b/composer.json
index d748a15..42c233b 100644
--- a/composer.json
+++ b/composer.json
@@ -2,7 +2,7 @@
"name": "trendyminds/craft-palette",
"description": "A command palette to easily jump to specific areas within Craft",
"type": "craft-plugin",
- "version": "1.1.0",
+ "version": "1.2.0",
"keywords": ["palette", "craft", "craft cms", "cmdk", "spotlight", "craft plugin"],
"license": "MIT",
"authors": [
diff --git a/scripts/palette.js b/scripts/palette.js
index 3e44450..8808ba9 100644
--- a/scripts/palette.js
+++ b/scripts/palette.js
@@ -53,18 +53,47 @@ function RenderResults() {
className={clsx(
'vtw-h-5 vtw-w-5',
active
- ? 'vtw-text-gray-800 dark:vtw-text-neutral-300'
+ ? 'vtw-text-gray-800 dark:vtw-text-neutral-200'
: 'vtw-text-gray-600 dark:vtw-text-neutral-400'
)}
>
{item.name}
- {item.subtitle && ( -- {item.subtitle} +
+ {item.name}
+ {item.subtitle && ( ++ {item.subtitle} +
+ )} ++ {item?.badgeCount} +
+r?98:r,function(){e(!0)}),ir(97 r?98:r,function(){e(!0)}),lr(97=ke.MATCHES?k=s:k>p&&(k=p),k>m&&(m=k,y=u,v=w,d=x),{rankedValue:d,rank:m,keyIndex:y,keyThreshold:v}},{rankedValue:e,rank:ke.NO_MATCH,keyIndex:-1,keyThreshold:n.threshold})}function Wg(e,t,r){return e=Ng(e,r),t=Ng(t,r),t.length>e.length?ke.NO_MATCH:e===t?ke.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?ke.EQUAL:e.startsWith(t)?ke.STARTS_WITH:e.includes(" "+t)?ke.WORD_STARTS_WITH:e.includes(t)?ke.CONTAINS:t.length===1?ke.NO_MATCH:TE(e).includes(t)?ke.ACRONYM:DE(e,t))}function TE(e){var t="",r=e.split(" ");return r.forEach(function(n){var o=n.split("-");o.forEach(function(a){t+=a.substr(0,1)})}),t}function DE(e,t){var r=0,n=0;function o(v,x,h){for(var k=h,d=x.length;kje))return xt;ut=xt-1}}return se>0?se-1:0}(0,ue,function(se){return Q[se].start},pe),re=Ke;re=ke.MATCHES?k=s:k>p&&(k=p),k>m&&(m=k,y=u,v=w,d=x),{rankedValue:d,rank:m,keyIndex:y,keyThreshold:v}},{rankedValue:e,rank:ke.NO_MATCH,keyIndex:-1,keyThreshold:n.threshold})}function Wg(e,t,r){return e=Ng(e,r),t=Ng(t,r),t.length>e.length?ke.NO_MATCH:e===t?ke.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?ke.EQUAL:e.startsWith(t)?ke.STARTS_WITH:e.includes(" "+t)?ke.WORD_STARTS_WITH:e.includes(t)?ke.CONTAINS:t.length===1?ke.NO_MATCH:TE(e).includes(t)?ke.ACRONYM:DE(e,t))}function TE(e){var t="",r=e.split(" ");return r.forEach(function(n){var o=n.split("-");o.forEach(function(a){t+=a.substr(0,1)})}),t}function DE(e,t){var r=0,n=0;function o(v,x,h){for(var k=h,d=x.length;kje))return Et;st=Et-1}}return se>0?se-1:0}(0,ue,function(se){return Q[se].start},pe),re=Ke;re