Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy 10.13.3 #2556

Merged
merged 2 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 11 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# docs

## 10.13.3

### Patch Changes

- Deploy 10.13.3
- Updated dependencies
- @heathmont/moon-core-tw@10.13.3
- @heathmont/moon-base-tw@10.13.3
- @heathmont/moon-cmdk-tw@10.13.3
- @heathmont/moon-themes-tw@10.13.3

## 10.13.2

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docs",
"version": "10.13.2",
"version": "10.13.3",
"private": true,
"type": "module",
"scripts": {
Expand All @@ -11,11 +11,11 @@
"lint": "next lint"
},
"dependencies": {
"@heathmont/moon-base-tw": "workspace:^10.13.2",
"@heathmont/moon-cmdk-tw": "workspace:^10.13.2",
"@heathmont/moon-core-tw": "workspace:^10.13.2",
"@heathmont/moon-base-tw": "workspace:^10.13.3",
"@heathmont/moon-cmdk-tw": "workspace:^10.13.3",
"@heathmont/moon-core-tw": "workspace:^10.13.3",
"@heathmont/moon-icons-tw": "9.28.6",
"@heathmont/moon-themes-tw": "workspace:^10.13.2",
"@heathmont/moon-themes-tw": "workspace:^10.13.3",
"@types/node": "20.4.9",
"@types/react": "18.2.19",
"@types/react-dom": "18.2.7",
Expand Down
11 changes: 11 additions & 0 deletions next-docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Change Log

## 10.13.3

### Patch Changes

- Deploy 10.13.3
- Updated dependencies
- @heathmont/moon-core-tw@10.13.3
- @heathmont/moon-cmdk-tw@10.13.3
- @heathmont/moon-table-tw@10.13.3
- @heathmont/moon-themes-tw@10.13.3

## 10.13.2

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions next-docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-docs",
"version": "10.13.2",
"version": "10.13.3",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -19,9 +19,9 @@
"@heathmont/moon-assets": "workspace:^10.7.1",
"@heathmont/moon-charts": "workspace:^10.7.1",
"@heathmont/moon-components": "workspace:^10.7.1",
"@heathmont/moon-cmdk-tw": "workspace:^10.13.2",
"@heathmont/moon-cmdk-tw": "workspace:^10.13.3",
"@heathmont/moon-core": "workspace:^10.7.1",
"@heathmont/moon-core-tw": "workspace:^10.13.2",
"@heathmont/moon-core-tw": "workspace:^10.13.3",
"@heathmont/moon-datepicker": "workspace:^10.7.1",
"@heathmont/moon-draggabletable": "workspace:^10.7.1",
"@heathmont/moon-icons": "workspace:^10.7.1",
Expand All @@ -30,9 +30,9 @@
"@heathmont/moon-select": "workspace:^10.7.1",
"@heathmont/moon-sidebar": "workspace:^10.7.1",
"@heathmont/moon-table": "workspace:^10.7.1",
"@heathmont/moon-table-tw": "workspace:^10.13.2",
"@heathmont/moon-table-tw": "workspace:^10.13.3",
"@heathmont/moon-themes": "workspace:^10.7.1",
"@heathmont/moon-themes-tw": "workspace:^10.13.2",
"@heathmont/moon-themes-tw": "workspace:^10.13.3",
"@heathmont/moon-utils": "workspace:^10.7.1",
"@heathmont/moon-icons-tw": "9.28.6",
"@hookform/resolvers": "3.2.0",
Expand Down
20 changes: 10 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions workspaces/base/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @heathmont/moon-base-tw

## 10.13.3

### Patch Changes

- Deploy 10.13.3

## 10.13.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion workspaces/base/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@heathmont/moon-base-tw",
"sideEffects": false,
"version": "10.13.2",
"version": "10.13.3",
"files": [
"lib"
],
Expand Down
8 changes: 8 additions & 0 deletions workspaces/cmdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @heathmont/moon-cmdk-tw

## 10.13.3

### Patch Changes

- Deploy 10.13.3
- Updated dependencies
- @heathmont/moon-core-tw@10.13.3

## 10.13.2

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions workspaces/cmdk/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@heathmont/moon-cmdk-tw",
"sideEffects": false,
"version": "10.13.2",
"version": "10.13.3",
"files": [
"lib"
],
Expand All @@ -21,7 +21,7 @@
},
"dependencies": {
"@headlessui/react": "1.7.16",
"@heathmont/moon-core-tw": "workspace:^10.13.2",
"@heathmont/moon-core-tw": "workspace:^10.13.3",
"cmdk": "0.2.0",
"tailwind-merge": "1.14.0",
"tailwindcss-radix": "2.8.0"
Expand Down
6 changes: 6 additions & 0 deletions workspaces/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @heathmont/moon-core-tw

## 10.13.3

### Patch Changes

- Deploy 10.13.3

## 10.13.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion workspaces/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@heathmont/moon-core-tw",
"sideEffects": false,
"version": "10.13.2",
"version": "10.13.3",
"files": [
"lib"
],
Expand Down
38 changes: 31 additions & 7 deletions workspaces/core/src/tagsInput/TagsInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,38 @@ const TagsInputRoot = forwardRef<HTMLSpanElement, TagsInputRootProps>(
ref
) => {
const [isFocused, setIsFocused] = useState(false);
const [isInvalid, setIsInvalid] = useState(false);

const states = {
isUppercase,
value: selected,
size: size,
disabled: disabled,
isError: isError,
isError: isError || isInvalid,
onClear: onClear,
};

const checkValidity = (event: React.FormEvent<HTMLInputElement>) => {
const target = event.target as HTMLInputElement;
const validity = target.validity;

if (!target.value.length) {
target.value = '';
setIsInvalid(validity.valueMissing);
return;
}

setIsInvalid(validity.typeMismatch ||
validity.patternMismatch ||
validity.tooLong ||
validity.tooShort ||
validity.rangeUnderflow ||
validity.rangeOverflow ||
validity.stepMismatch ||
validity.badInput ||
validity.customError);
};

return (
<TagsInputContext.Provider value={states}>
<Listbox horizontal={false}>
Expand All @@ -57,7 +80,7 @@ const TagsInputRoot = forwardRef<HTMLSpanElement, TagsInputRootProps>(
'focus:shadow-input-focus focus:outline-none',
'focus-visible::shadow-input-focus focus-visible::outline-none',
getWrapperStyle(size),
isError &&
(isError || isInvalid) &&
'shadow-input-err hover:shadow-input-err focus:shadow-input-err focus-visible:shadow-input-err',
disabled &&
'opacity-60 shadow-input focus:shadow-input hover:shadow-input cursor-not-allowed',
Expand All @@ -75,24 +98,25 @@ const TagsInputRoot = forwardRef<HTMLSpanElement, TagsInputRootProps>(
getTextSize(size)
)}
placeholder={placeholder}
error={isError}
error={isError || isInvalid}
disabled={disabled}
type={type}
onKeyDown={(e) => {
e.code === 'Enter' &&
(e.target as HTMLInputElement).value.length &&
e.code === 'Enter' && !isInvalid &&
!!(e.target as HTMLInputElement).value.length &&
onEnter &&
onEnter((e.target as HTMLInputElement).value);
e.code === 'Enter' &&
e.code === 'Enter' && !isInvalid &&
((e.target as HTMLInputElement).value = '');
e.code === 'Backspace' &&
(e.target as HTMLInputElement).value === '' &&
!(e.target as HTMLInputElement).value.length &&
selected.length !== 0 &&
onClear &&
onClear(selected.length - 1);
}}
onFocus={() => setIsFocused(true)}
onBlur={() => setIsFocused(false)}
onInput={(e) => checkValidity(e) }
/>
</span>
</Listbox>
Expand Down
8 changes: 8 additions & 0 deletions workspaces/tables/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @heathmont/moon-table-tw

## 10.13.3

### Patch Changes

- Deploy 10.13.3
- Updated dependencies
- @heathmont/moon-core-tw@10.13.3

## 10.13.2

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions workspaces/tables/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@heathmont/moon-table-tw",
"sideEffects": false,
"version": "10.13.2",
"version": "10.13.3",
"files": [
"lib"
],
Expand All @@ -20,7 +20,7 @@
"chokidar": "chokidar \"**/*.tsx\" \"**/*.ts\" -i \"lib/**/*.d.ts\" -c \"pnpm run build:code\" "
},
"dependencies": {
"@heathmont/moon-core-tw": "workspace:^10.13.2",
"@heathmont/moon-core-tw": "workspace:^10.13.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-table": "7.8.0",
Expand Down
6 changes: 6 additions & 0 deletions workspaces/themes/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @heathmont/moon-themes-tw

## 10.13.3

### Patch Changes

- Deploy 10.13.3

## 10.13.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion workspaces/themes/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@heathmont/moon-themes-tw",
"sideEffects": false,
"version": "10.13.2",
"version": "10.13.3",
"files": [
"lib"
],
Expand Down