-
-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0991f55
commit f2c7800
Showing
8 changed files
with
212 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
import { createScope } from "@zag-js/dom-query" | ||
import type { MachineContext as Ctx } from "./progress.types" | ||
import type { Scope } from "@zag-js/core" | ||
|
||
export const dom = createScope({ | ||
getRootId: (ctx: Ctx) => ctx.ids?.root ?? `progress-${ctx.id}`, | ||
getTrackId: (ctx: Ctx) => ctx.ids?.track ?? `progress-${ctx.id}-track`, | ||
getLabelId: (ctx: Ctx) => ctx.ids?.label ?? `progress-${ctx.id}-label`, | ||
getCircleId: (ctx: Ctx) => ctx.ids?.circle ?? `progress-${ctx.id}-circle`, | ||
}) | ||
export const getRootId = (ctx: Scope) => ctx.ids?.root ?? `progress-${ctx.id}` | ||
export const getTrackId = (ctx: Scope) => ctx.ids?.track ?? `progress-${ctx.id}-track` | ||
export const getLabelId = (ctx: Scope) => ctx.ids?.label ?? `progress-${ctx.id}-label` | ||
export const getCircleId = (ctx: Scope) => ctx.ids?.circle ?? `progress-${ctx.id}-circle` |
Oops, something went wrong.