-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #194 from huntabyte/next
- Loading branch information
Showing
739 changed files
with
20,127 additions
and
9,057 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"bits-ui": minor | ||
--- | ||
|
||
remove `arrowSize` prop from menu Root components in favor of passing it as a prop to the Arrow components |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"bits-ui": minor | ||
--- | ||
|
||
New component: Date Range Picker |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"bits-ui": minor | ||
--- | ||
|
||
feat: Calendar |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"bits-ui": minor | ||
--- | ||
|
||
Breaking change: separate floating `positioning` props into individual props and move them to content components |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"mode": "exit", | ||
"tag": "next", | ||
"initialVersions": { | ||
"bits-ui": "0.9.9" | ||
}, | ||
"changesets": [ | ||
"brave-schools-burn", | ||
"fresh-dryers-sneeze", | ||
"mighty-cobras-care", | ||
"old-dancers-allow", | ||
"spotty-beans-return" | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"bits-ui": minor | ||
--- | ||
|
||
New components: Range Calendar, Date Field, Date Range Field |
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
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
title: Calendar | ||
description: Displays dates and days of the week, facilitating date-related interactions. | ||
--- | ||
|
||
<script> | ||
import { APISection, ComponentPreview, CalendarDemo } from '@/components' | ||
export let schemas; | ||
</script> | ||
|
||
<ComponentPreview name="calendar-demo" comp="Calendar"> | ||
|
||
<CalendarDemo slot="preview" /> | ||
|
||
</ComponentPreview> | ||
|
||
## Structure | ||
|
||
```svelte | ||
<script lang="ts"> | ||
import { Calendar } from "bits-ui"; | ||
</script> | ||
<Calendar.Root let:months let:weekdays> | ||
<Calendar.Header> | ||
<Calendar.PrevButton /> | ||
<Calendar.Heading /> | ||
<Calendar.NextButton /> | ||
</Calendar.Header> | ||
{#each months as month} | ||
<Calendar.Grid> | ||
<Calendar.GridHead> | ||
<Calendar.GridRow> | ||
{#each weekdays as day} | ||
<Calendar.HeadCell> | ||
{day} | ||
</Calendar.HeadCell> | ||
{/each} | ||
</Calendar.GridRow> | ||
</Calendar.GridHead> | ||
<Calendar.GridBody> | ||
{#each month.weeks as weekDates} | ||
<Calendar.GridRow> | ||
{#each weekDates as date} | ||
<Calendar.Cell {date}> | ||
<Calendar.Date {date} month={month.value} /> | ||
</Calendar.Cell> | ||
{/each} | ||
</Calendar.GridRow> | ||
{/each} | ||
</Calendar.GridBody> | ||
</Calendar.Grid> | ||
{/each} | ||
</Calendar.Root> | ||
``` | ||
|
||
<APISection {schemas} /> |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: Date Field | ||
description: Enables users to input specific dates within a designated field. | ||
--- | ||
|
||
<script> | ||
import { APISection, ComponentPreview, DateFieldDemo } from '@/components' | ||
export let schemas; | ||
</script> | ||
|
||
<ComponentPreview name="date-field-demo" comp="Date Field"> | ||
|
||
<DateFieldDemo slot="preview" /> | ||
|
||
</ComponentPreview> | ||
|
||
## Structure | ||
|
||
```svelte | ||
<script lang="ts"> | ||
import { DateField } from "$lib"; | ||
</script> | ||
<DateField.Root> | ||
<DateField.Label>Check-in date</DateField.Label> | ||
<DateField.Input let:segments> | ||
{#each segments as { part, value }} | ||
<DateField.Segment {part}> | ||
{value} | ||
</DateField.Segment> | ||
{/each} | ||
</DateField.Input> | ||
</DateField.Root> | ||
``` | ||
|
||
<APISection {schemas} /> |
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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
--- | ||
title: Date Picker | ||
description: Facilitates the selection of dates through an input and calendar-based interface. | ||
--- | ||
|
||
<script> | ||
import { APISection, ComponentPreview, DatePickerDemo } from '@/components' | ||
export let schemas; | ||
</script> | ||
|
||
<ComponentPreview name="date-picker-demo" comp="Date Picker"> | ||
|
||
<DatePickerDemo slot="preview" /> | ||
|
||
</ComponentPreview> | ||
|
||
## Structure | ||
|
||
```svelte | ||
<script lang="ts"> | ||
import { DatePicker } from "bits-ui"; | ||
</script> | ||
<DatePicker.Root> | ||
<DatePicker.Label /> | ||
<DatePicker.Input let:segments> | ||
{#each segments as { part, value }} | ||
<DatePicker.Segment {part}> | ||
{value} | ||
</DatePicker.Segment> | ||
{/each} | ||
<DatePicker.Trigger /> | ||
</DatePicker.Input> | ||
<DatePicker.Content> | ||
<DatePicker.Calendar let:months let:weekdays> | ||
<DatePicker.Header> | ||
<DatePicker.PrevButton /> | ||
<DatePicker.Heading /> | ||
<DatePicker.NextButton /> | ||
</DatePicker.Header> | ||
{#each months as month} | ||
<DatePicker.Grid> | ||
<DatePicker.GridHead> | ||
<DatePicker.GridRow> | ||
{#each weekdays as day} | ||
<DatePicker.HeadCell> | ||
{day} | ||
</DatePicker.HeadCell> | ||
{/each} | ||
</DatePicker.GridRow> | ||
</DatePicker.GridHead> | ||
<DatePicker.GridBody> | ||
{#each month.weeks as weekDates} | ||
<DatePicker.GridRow> | ||
{#each weekDates as date} | ||
<DatePicker.Cell {date}> | ||
<DatePicker.Date {date} month={month.value} /> | ||
</DatePicker.Cell> | ||
{/each} | ||
</DatePicker.GridRow> | ||
{/each} | ||
</DatePicker.GridBody> | ||
</DatePicker.Grid> | ||
{/each} | ||
</DatePicker.Calendar> | ||
</DatePicker.Content> | ||
</DatePicker.Root> | ||
``` | ||
|
||
<APISection {schemas} /> |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: Date Range Field | ||
description: Allows users to input a range of dates within a designated field. | ||
--- | ||
|
||
<script> | ||
import { APISection, ComponentPreview, DateRangeFieldDemo } from '@/components' | ||
export let schemas; | ||
</script> | ||
|
||
<ComponentPreview name="date-range-field-demo" comp="Date Range Field"> | ||
|
||
<DateRangeFieldDemo slot="preview" /> | ||
|
||
</ComponentPreview> | ||
|
||
## Structure | ||
|
||
```svelte | ||
<script lang="ts"> | ||
import { DateField } from "$lib"; | ||
</script> | ||
<DateField.Root> | ||
<DateField.Label>Check-in date</DateField.Label> | ||
<DateField.Input let:segments> | ||
{#each segments as { part, value }} | ||
<DateField.Segment {part}> | ||
{value} | ||
</DateField.Segment> | ||
{/each} | ||
</DateField.Input> | ||
</DateField.Root> | ||
``` | ||
|
||
<APISection {schemas} /> |
Oops, something went wrong.