fix: daterangepicker key
This commit is contained in:
parent
dc3106b4a4
commit
d2238bdf9b
@ -46,18 +46,18 @@
|
|||||||
{#each ['start', 'end'] as const as type (type)}
|
{#each ['start', 'end'] as const as type (type)}
|
||||||
<DateRangePicker.Input {type}>
|
<DateRangePicker.Input {type}>
|
||||||
{#snippet children({ segments })}
|
{#snippet children({ segments })}
|
||||||
{#each segments as { part, value } (value)}
|
{#each segments as seg (seg)}
|
||||||
<div class="inline-block select-none">
|
<div class="inline-block select-none">
|
||||||
{#if part === 'literal'}
|
{#if seg.part === 'literal'}
|
||||||
<DateRangePicker.Segment {part} class="text-overlay-0 p-1">
|
<DateRangePicker.Segment part={seg.part} class="text-overlay-0 p-1">
|
||||||
{value}
|
{seg.value}
|
||||||
</DateRangePicker.Segment>
|
</DateRangePicker.Segment>
|
||||||
{:else}
|
{:else}
|
||||||
<DateRangePicker.Segment
|
<DateRangePicker.Segment
|
||||||
{part}
|
part={seg.part}
|
||||||
class="aria-[valuetext=Empty]:text-overlay-0 hover:bg-surface-0 focus:bg-surface-0 focus:outline-sky rounded p-0.5 transition-all focus:outline focus:outline-offset-1"
|
class="aria-[valuetext=Empty]:text-overlay-0 hover:bg-surface-0 focus:bg-surface-0 focus:outline-sky rounded p-0.5 transition-all focus:outline focus:outline-offset-1"
|
||||||
>
|
>
|
||||||
{value}
|
{seg.value}
|
||||||
</DateRangePicker.Segment>
|
</DateRangePicker.Segment>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
@ -122,7 +122,7 @@
|
|||||||
</DateRangePicker.NextButton>
|
</DateRangePicker.NextButton>
|
||||||
</DateRangePicker.Header>
|
</DateRangePicker.Header>
|
||||||
<div class="flex flex-col space-y-4 pt-4 sm:flex-row sm:space-y-0 sm:space-x-4">
|
<div class="flex flex-col space-y-4 pt-4 sm:flex-row sm:space-y-0 sm:space-x-4">
|
||||||
{#each months as month (month)}
|
{#each months as month (month.value)}
|
||||||
<DateRangePicker.Grid class="w-full border-collapse space-y-1 select-none">
|
<DateRangePicker.Grid class="w-full border-collapse space-y-1 select-none">
|
||||||
<DateRangePicker.GridHead>
|
<DateRangePicker.GridHead>
|
||||||
<DateRangePicker.GridRow class="mb-1 flex w-full justify-between">
|
<DateRangePicker.GridRow class="mb-1 flex w-full justify-between">
|
||||||
|
@ -185,6 +185,11 @@
|
|||||||
text = ''
|
text = ''
|
||||||
git_root=$(git rev-parse --show-toplevel)
|
git_root=$(git rev-parse --show-toplevel)
|
||||||
|
|
||||||
|
if [ -n "''${1:-}" ]; then
|
||||||
|
cd "''${git_root}/client"
|
||||||
|
npm run format
|
||||||
|
fi
|
||||||
|
|
||||||
cd "''${git_root}"
|
cd "''${git_root}"
|
||||||
echo "Linting protobuf"
|
echo "Linting protobuf"
|
||||||
buf lint
|
buf lint
|
||||||
|
Loading…
x
Reference in New Issue
Block a user