Skip to content

Commit

Permalink
fix: svelte examples
Browse files Browse the repository at this point in the history
  • Loading branch information
segunadebayo committed Sep 9, 2024
1 parent f7c5e93 commit 18ca222
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/svelte-ts/src/routes/combobox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
const controls = useControls(comboboxControls)
let options = $state.frozen(comboboxData)
let options = $state.raw(comboboxData)
const collection = combobox.collection({
items: comboboxData,
Expand Down
8 changes: 4 additions & 4 deletions examples/svelte-ts/src/routes/timer-countdown.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@

<main class="timer">
<div {...api.getRootProps()}>
<div {...api.getSegmentProps({ type: "days" })}>{api.formattedTime.days}</div>
<div {...api.getItemProps({ type: "days" })}>{api.formattedTime.days}</div>
<div {...api.getSeparatorProps()}>:</div>
<div {...api.getSegmentProps({ type: "hours" })}>{api.formattedTime.hours}</div>
<div {...api.getItemProps({ type: "hours" })}>{api.formattedTime.hours}</div>
<div {...api.getSeparatorProps()}>:</div>
<div {...api.getSegmentProps({ type: "minutes" })}>{api.formattedTime.minutes}</div>
<div {...api.getItemProps({ type: "minutes" })}>{api.formattedTime.minutes}</div>
<div {...api.getSeparatorProps()}>:</div>
<div {...api.getSegmentProps({ type: "seconds" })}>{api.formattedTime.seconds}</div>
<div {...api.getItemProps({ type: "seconds" })}>{api.formattedTime.seconds}</div>
</div>

<div style="display:flex; gap: 4px">
Expand Down
8 changes: 4 additions & 4 deletions examples/svelte-ts/src/routes/timer-stopwatch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

<main class="timer">
<div {...api.getRootProps()}>
<div {...api.getSegmentProps({ type: "days" })}>{api.formattedTime.days}</div>
<div {...api.getItemProps({ type: "days" })}>{api.formattedTime.days}</div>
<div {...api.getSeparatorProps()}>:</div>
<div {...api.getSegmentProps({ type: "hours" })}>{api.formattedTime.hours}</div>
<div {...api.getItemProps({ type: "hours" })}>{api.formattedTime.hours}</div>
<div {...api.getSeparatorProps()}>:</div>
<div {...api.getSegmentProps({ type: "minutes" })}>{api.formattedTime.minutes}</div>
<div {...api.getItemProps({ type: "minutes" })}>{api.formattedTime.minutes}</div>
<div {...api.getSeparatorProps()}>:</div>
<div {...api.getSegmentProps({ type: "seconds" })}>{api.formattedTime.seconds}</div>
<div {...api.getItemProps({ type: "seconds" })}>{api.formattedTime.seconds}</div>
</div>

<div style="display:flex; gap: 4px">
Expand Down
1 change: 1 addition & 0 deletions packages/utilities/stringify-state/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
import formatHighlight from "json-format-highlight"

interface Dict {
Expand Down

0 comments on commit 18ca222

Please sign in to comment.