Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into open-in-stackblitz
Browse files Browse the repository at this point in the history
  • Loading branch information
segunadebayo committed Sep 9, 2024
2 parents 338febb + 0e7b1c1 commit bae7578
Show file tree
Hide file tree
Showing 771 changed files with 32,937 additions and 23,297 deletions.
4 changes: 3 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@
"@zag-js/shared",
"next-app",
"next-ts",
"vue-ts",
"nuxt-ts",
"solid-ts",
"nuxt-ts",
"react-19",
"preact-ts",
"svelte-ts",
"vanilla-ts",
"lit-ts",
"website"
]
}
7 changes: 0 additions & 7 deletions .changeset/odd-bees-allow.md

This file was deleted.

7 changes: 0 additions & 7 deletions .eslintignore

This file was deleted.

60 changes: 0 additions & 60 deletions .eslintrc

This file was deleted.

4 changes: 2 additions & 2 deletions .github/composite-actions/install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ description: "Sets up Node.js and runs install"
runs:
using: composite
steps:
- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
registry-url: "https://registry.npmjs.org"
cache: "pnpm"

- name: Setup Git User
shell: bash
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/pkg-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish Any Commit

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- run: pnpx pkg-pr-new publish './packages/*'
11 changes: 1 addition & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ env:
FORCE_COLOR: 2
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
HUSKY: 0

jobs:
release:
Expand Down Expand Up @@ -43,16 +44,6 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Release to dev tag
if: steps.changesets.outputs.published != 'true'
run: |
git checkout main
pnpm changeset version --snapshot dev
pnpm changeset publish --tag dev
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Slack notification
if: steps.changesets.outputs.published == 'true'
run: pnpm slack
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "examples/next-ts/pages/compositions"]
path = examples/next-ts/pages/compositions
url = [email protected]:chakra-ui/zag-plus.git
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions .husky/commit-msg
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx commitlint --edit "${1}"
3 changes: 0 additions & 3 deletions .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
9 changes: 2 additions & 7 deletions .xstate/date-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const fetchMachine = createMachine({
id: "datepicker",
initial: ctx.open ? "open" : "idle",
context: {
"isOpenControlled": false,
"isOpenControlled": false,
"isYearView": false,
"isMonthView": false,
Expand Down Expand Up @@ -90,13 +89,9 @@ const fetchMachine = createMachine({
"INPUT.FOCUS": {
actions: ["setActiveIndex"]
},
"INPUT.BLUR": [{
cond: "isOpenControlled",
actions: ["setActiveIndexToStart", "selectParsedDate", "invokeOnClose"]
}, {
target: "idle",
"INPUT.BLUR": {
actions: ["setActiveIndexToStart", "selectParsedDate"]
}],
},
"PRESET.CLICK": [{
cond: "isOpenControlled",
actions: ["setDateValue", "setFocusedDate", "invokeOnClose"]
Expand Down
7 changes: 3 additions & 4 deletions .xstate/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,21 @@ const fetchMachine = createMachine({
activities: ["trackDismissableElement", "trapFocus", "preventScroll", "hideContentBelow"],
on: {
"CONTROLLED.CLOSE": {
target: "closed",
actions: ["setFinalFocus"]
target: "closed"
},
CLOSE: [{
cond: "isOpenControlled",
actions: ["invokeOnClose"]
}, {
target: "closed",
actions: ["invokeOnClose", "setFinalFocus"]
actions: ["invokeOnClose"]
}],
TOGGLE: [{
cond: "isOpenControlled",
actions: ["invokeOnClose"]
}, {
target: "closed",
actions: ["invokeOnClose", "setFinalFocus"]
actions: ["invokeOnClose"]
}]
}
},
Expand Down
52 changes: 33 additions & 19 deletions .xstate/editable.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ const {
} = actions;
const fetchMachine = createMachine({
id: "editable",
initial: ctx.startWithEditView ? "edit" : "preview",
entry: ctx.startWithEditView ? ["focusInput"] : undefined,
initial: ctx.edit ? "edit" : "preview",
entry: ctx.edit ? ["focusInput"] : undefined,
context: {
"submitOnBlur": false
"isEditControlled": false,
"isSubmitEvent": false,
"isEditControlled": false,
"isEditControlled": false
},
on: {
SET_VALUE: {
"VALUE.SET": {
actions: "setValue"
}
},
Expand All @@ -31,34 +34,44 @@ const fetchMachine = createMachine({
// https://bugzilla.mozilla.org/show_bug.cgi?id=559561
entry: ["blurInputIfNeeded"],
on: {
EDIT: {
"CONTROLLED.EDIT": {
target: "edit",
actions: ["setPreviousValue", "focusInput"]
},
EDIT: [{
cond: "isEditControlled",
actions: ["invokeOnEdit"]
}, {
target: "edit",
actions: ["setPreviousValue", "focusInput", "invokeOnEdit"]
}
}]
}
},
edit: {
activities: ["trackInteractOutside"],
on: {
TYPE: {
actions: "setValue"
},
BLUR: [{
cond: "submitOnBlur",
"CONTROLLED.PREVIEW": [{
cond: "isSubmitEvent",
target: "preview",
actions: ["restoreFocus", "invokeOnSubmit"]
actions: ["setPreviousValue", "restoreFocus", "invokeOnSubmit"]
}, {
target: "preview",
actions: ["revertValue", "restoreFocus", "invokeOnCancel"]
}],
CANCEL: {
CANCEL: [{
cond: "isEditControlled",
actions: ["invokeOnPreview"]
}, {
target: "preview",
actions: ["revertValue", "restoreFocus", "invokeOnCancel"]
},
SUBMIT: {
actions: ["revertValue", "restoreFocus", "invokeOnCancel", "invokeOnPreview"]
}],
SUBMIT: [{
cond: "isEditControlled",
actions: ["invokeOnPreview"]
}, {
target: "preview",
actions: ["setPreviousValue", "restoreFocus", "invokeOnSubmit"]
}
actions: ["setPreviousValue", "restoreFocus", "invokeOnSubmit", "invokeOnPreview"]
}]
}
}
}
Expand All @@ -71,6 +84,7 @@ const fetchMachine = createMachine({
})
},
guards: {
"submitOnBlur": ctx => ctx["submitOnBlur"]
"isEditControlled": ctx => ctx["isEditControlled"],
"isSubmitEvent": ctx => ctx["isSubmitEvent"]
}
});
30 changes: 8 additions & 22 deletions .xstate/file-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ const {
const fetchMachine = createMachine({
id: "fileupload",
initial: "idle",
context: {
"!isWithinRange": false,
"!isWithinRange": false
},
context: {},
on: {
"FILES.SET": {
actions: ["setFilesFromEvent"]
Expand Down Expand Up @@ -45,13 +42,9 @@ const fetchMachine = createMachine({
actions: ["openFilePicker"]
},
"DROPZONE.FOCUS": "focused",
"DROPZONE.DRAG_OVER": [{
cond: "!isWithinRange",
target: "dragging",
actions: ["setInvalid"]
}, {
"DROPZONE.DRAG_OVER": {
target: "dragging"
}]
}
}
},
focused: {
Expand All @@ -63,24 +56,19 @@ const fetchMachine = createMachine({
"DROPZONE.CLICK": {
actions: ["openFilePicker"]
},
"DROPZONE.DRAG_OVER": [{
cond: "!isWithinRange",
target: "dragging",
actions: ["setInvalid"]
}, {
"DROPZONE.DRAG_OVER": {
target: "dragging"
}]
}
}
},
dragging: {
on: {
"DROPZONE.DROP": {
target: "idle",
actions: ["clearInvalid", "setFilesFromEvent", "syncInputElement"]
actions: ["setFilesFromEvent", "syncInputElement"]
},
"DROPZONE.DRAG_LEAVE": {
target: "idle",
actions: ["clearInvalid"]
target: "idle"
}
}
}
Expand All @@ -93,7 +81,5 @@ const fetchMachine = createMachine({
};
})
},
guards: {
"!isWithinRange": ctx => ctx["!isWithinRange"]
}
guards: {}
});
2 changes: 1 addition & 1 deletion .xstate/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ const fetchMachine = createMachine({
},
closed: {
tags: ["closed"],
entry: ["clearHighlightedItem", "focusTrigger", "clearAnchorPoint", "resumePointer"],
entry: ["clearHighlightedItem", "focusTrigger", "resumePointer"],
on: {
"CONTROLLED.OPEN": [{
cond: "isOpenAutoFocusEvent || isArrowDownEvent",
Expand Down
Loading

0 comments on commit bae7578

Please sign in to comment.