From 1fa7192f130167da582ec988ddaf64da2ad19ecc Mon Sep 17 00:00:00 2001 From: Hunter Johnston <64506580+huntabyte@users.noreply.github.com> Date: Fri, 12 Apr 2024 19:51:09 -0400 Subject: [PATCH 01/23] chore: add plausible (#455) --- sites/docs/src/lib/components/metadata.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sites/docs/src/lib/components/metadata.svelte b/sites/docs/src/lib/components/metadata.svelte index 1df8583d7..4b3d6c971 100644 --- a/sites/docs/src/lib/components/metadata.svelte +++ b/sites/docs/src/lib/components/metadata.svelte @@ -1,4 +1,5 @@ + {/if} From 819477fa2a3f4a4a23f7455b1787ffe8916180b8 Mon Sep 17 00:00:00 2001 From: Hunter Johnston <64506580+huntabyte@users.noreply.github.com> Date: Fri, 12 Apr 2024 20:05:35 -0400 Subject: [PATCH 02/23] chore: add plausible (#456) --- sites/docs/src/lib/components/metadata.svelte | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sites/docs/src/lib/components/metadata.svelte b/sites/docs/src/lib/components/metadata.svelte index 4b3d6c971..62f4fbfe4 100644 --- a/sites/docs/src/lib/components/metadata.svelte +++ b/sites/docs/src/lib/components/metadata.svelte @@ -1,5 +1,4 @@ - {/if} + From e966830792603d54f573ac682fd02b6ede039690 Mon Sep 17 00:00:00 2001 From: Andre Morise Date: Tue, 16 Apr 2024 19:33:50 -0400 Subject: [PATCH 03/23] docs: add DateValue type reference (#462) Co-authored-by: Andre Morise --- .../src/lib/content/api-reference/calendar.ts | 15 ++++++++------- .../src/lib/content/api-reference/date-field.ts | 9 +++++---- .../src/lib/content/api-reference/date-picker.ts | 10 +++++----- .../lib/content/api-reference/date-range-field.ts | 7 ++++--- .../content/api-reference/date-range-picker.ts | 8 ++++---- .../api-reference/extended-types/date-value.ts | 6 ++++++ .../content/api-reference/extended-types/index.ts | 6 ++++++ .../lib/content/api-reference/range-calendar.ts | 13 +++++++------ 8 files changed, 45 insertions(+), 29 deletions(-) create mode 100644 sites/docs/src/lib/content/api-reference/extended-types/date-value.ts diff --git a/sites/docs/src/lib/content/api-reference/calendar.ts b/sites/docs/src/lib/content/api-reference/calendar.ts index 5902badc9..371884d3e 100644 --- a/sites/docs/src/lib/content/api-reference/calendar.ts +++ b/sites/docs/src/lib/content/api-reference/calendar.ts @@ -14,6 +14,7 @@ import type { } from "bits-ui"; import { attrsSlotProp, builderAndAttrsSlotProps, domElProps } from "./helpers.js"; import { enums, monthsSlotProp, weekdaysSlotProp } from "$lib/content/api-reference/helpers.js"; +import { dateValueProp } from "$lib/content/api-reference/extended-types/index.js"; import * as C from "$lib/content/constants.js"; import type { APISchema } from "$lib/types/index.js"; @@ -22,7 +23,7 @@ export const root: APISchema = { description: "The root calendar component which contains all other calendar components.", props: { value: { - type: "DateValue", + type: dateValueProp, description: "The selected date.", }, onValueChange: { @@ -33,7 +34,7 @@ export const root: APISchema = { description: "A function that is called when the selected date changes.", }, placeholder: { - type: "DateValue", + type: dateValueProp, description: "The placeholder date, which is used to determine what month to display when no date is selected. This updates as the user navigates the calendar, and can be used to programatically control the calendar's view.", }, @@ -95,11 +96,11 @@ export const root: APISchema = { description: "A function that returns whether or not a date is unavailable.", }, maxValue: { - type: "DateValue", + type: dateValueProp, description: "The maximum date that can be selected.", }, minValue: { - type: "DateValue", + type: dateValueProp, description: "The minimum date that can be selected.", }, locale: { @@ -164,7 +165,7 @@ export const cell: APISchema = { description: "A cell in the calendar grid.", props: { date: { - type: "DateValue", + type: dateValueProp, description: "The date for the cell.", }, ...domElProps("HTMLTableCellElement"), @@ -189,11 +190,11 @@ export const day: APISchema = { description: "A day in the calendar grid.", props: { date: { - type: "DateValue", + type: dateValueProp, description: "The date for the cell.", }, month: { - type: "DateValue", + type: dateValueProp, description: "The current month the date is being displayed in.", }, ...domElProps("HTMLDivElement"), diff --git a/sites/docs/src/lib/content/api-reference/date-field.ts b/sites/docs/src/lib/content/api-reference/date-field.ts index 82846f3e0..3536edaee 100644 --- a/sites/docs/src/lib/content/api-reference/date-field.ts +++ b/sites/docs/src/lib/content/api-reference/date-field.ts @@ -6,6 +6,7 @@ import type { } from "bits-ui"; import { builderAndAttrsSlotProps } from "./helpers.js"; import { domElProps, enums, idsSlotProp, union } from "$lib/content/api-reference/helpers.js"; +import { dateValueProp } from "$lib/content/api-reference/extended-types/index.js"; import * as C from "$lib/content/constants.js"; import type { APISchema } from "$lib/types/index.js"; @@ -14,7 +15,7 @@ export const root: APISchema = { description: "The root date field component.", props: { value: { - type: "DateValue", + type: dateValueProp, description: "The selected date.", }, onValueChange: { @@ -25,7 +26,7 @@ export const root: APISchema = { description: "A function that is called when the selected date changes.", }, placeholder: { - type: "DateValue", + type: dateValueProp, description: "The placeholder date, which is used to determine what date to start the segments from when no value exists.", }, @@ -75,11 +76,11 @@ export const root: APISchema = { "The id of your description element, if any, which will be applied to the `aria-describedby` attribute of the appropriate elements.", }, maxValue: { - type: "DateValue", + type: dateValueProp, description: "The maximum valid date that can be entered.", }, minValue: { - type: "DateValue", + type: dateValueProp, description: "The minimum valid date that can be entered.", }, locale: { diff --git a/sites/docs/src/lib/content/api-reference/date-picker.ts b/sites/docs/src/lib/content/api-reference/date-picker.ts index 88a2f82c2..57b707362 100644 --- a/sites/docs/src/lib/content/api-reference/date-picker.ts +++ b/sites/docs/src/lib/content/api-reference/date-picker.ts @@ -17,7 +17,7 @@ import { prevButton, } from "./calendar.js"; import { label, segment } from "./date-field.js"; -import { focusProp } from "./extended-types/index.js"; +import { dateValueProp, focusProp } from "./extended-types/index.js"; import { builderAndAttrsSlotProps, portalProp } from "./helpers.js"; import { content, trigger } from "./popover.js"; import type { APISchema } from "$lib/types/index.js"; @@ -36,7 +36,7 @@ const root: APISchema = { description: "The root date picker component.", props: { value: { - type: "DateValue", + type: dateValueProp, description: "The selected date.", }, onValueChange: { @@ -47,7 +47,7 @@ const root: APISchema = { description: "A function that is called when the selected date changes.", }, placeholder: { - type: "DateValue", + type: dateValueProp, description: "The placeholder date, which is used to determine what month to display when no date is selected. This updates as the user navigates the calendar, and can be used to programatically control the calendar's view.", }, @@ -109,11 +109,11 @@ const root: APISchema = { description: "A function that returns whether or not a date is unavailable.", }, maxValue: { - type: "DateValue", + type: dateValueProp, description: "The maximum date that can be selected.", }, minValue: { - type: "DateValue", + type: dateValueProp, description: "The minimum date that can be selected.", }, locale: { diff --git a/sites/docs/src/lib/content/api-reference/date-range-field.ts b/sites/docs/src/lib/content/api-reference/date-range-field.ts index 97fad6bdb..42ed55c40 100644 --- a/sites/docs/src/lib/content/api-reference/date-range-field.ts +++ b/sites/docs/src/lib/content/api-reference/date-range-field.ts @@ -6,6 +6,7 @@ import type { } from "bits-ui"; import { builderAndAttrsSlotProps } from "./helpers.js"; import { domElProps, enums, idsSlotProp, union } from "$lib/content/api-reference/helpers.js"; +import { dateValueProp } from "$lib/content/api-reference/extended-types/index.js"; import * as C from "$lib/content/constants.js"; import type { APISchema } from "$lib/types/index.js"; @@ -28,7 +29,7 @@ export const root: APISchema = { description: "A function that is called when the selected date changes.", }, placeholder: { - type: "DateValue", + type: dateValueProp, description: "The placeholder date, which is used to determine what date to start the segments from when no value exists.", }, @@ -78,11 +79,11 @@ export const root: APISchema = { "The id of your description element, if any, which will be applied to the `aria-describedby` attribute of the appropriate elements.", }, maxValue: { - type: "DateValue", + type: dateValueProp, description: "The maximum valid date that can be entered.", }, minValue: { - type: "DateValue", + type: dateValueProp, description: "The minimum valid date that can be entered.", }, locale: { diff --git a/sites/docs/src/lib/content/api-reference/date-range-picker.ts b/sites/docs/src/lib/content/api-reference/date-range-picker.ts index 89dd4d314..7f210095d 100644 --- a/sites/docs/src/lib/content/api-reference/date-range-picker.ts +++ b/sites/docs/src/lib/content/api-reference/date-range-picker.ts @@ -4,7 +4,7 @@ import type { DateRangePickerPropsWithoutHTML, } from "bits-ui"; import { label, segment } from "./date-range-field.js"; -import { focusProp } from "./extended-types/index.js"; +import { dateValueProp, focusProp } from "./extended-types/index.js"; import { builderAndAttrsSlotProps, portalProp } from "./helpers.js"; import { content, trigger } from "./popover.js"; import { @@ -50,7 +50,7 @@ const root: APISchema = { description: "A function that is called when the selected date changes.", }, placeholder: { - type: "DateValue", + type: dateValueProp, description: "The placeholder date, which is used to determine what month to display when no date is selected. This updates as the user navigates the calendar, and can be used to programatically control the calendar's view.", }, @@ -112,11 +112,11 @@ const root: APISchema = { description: "A function that returns whether or not a date is unavailable.", }, maxValue: { - type: "DateValue", + type: dateValueProp, description: "The maximum date that can be selected.", }, minValue: { - type: "DateValue", + type: dateValueProp, description: "The minimum date that can be selected.", }, locale: { diff --git a/sites/docs/src/lib/content/api-reference/extended-types/date-value.ts b/sites/docs/src/lib/content/api-reference/extended-types/date-value.ts new file mode 100644 index 000000000..6cbd77816 --- /dev/null +++ b/sites/docs/src/lib/content/api-reference/extended-types/date-value.ts @@ -0,0 +1,6 @@ +import type { DateValue } from "@internationalized/date"; + +/** + * Represents a date and/or time in a specific calendar system. + * type DateValue = CalendarDate | CalendarDateTime | ZonedDateTime; + */ diff --git a/sites/docs/src/lib/content/api-reference/extended-types/index.ts b/sites/docs/src/lib/content/api-reference/extended-types/index.ts index 61f8298f6..23a80a582 100644 --- a/sites/docs/src/lib/content/api-reference/extended-types/index.ts +++ b/sites/docs/src/lib/content/api-reference/extended-types/index.ts @@ -1,8 +1,14 @@ import rawFocusProp from "$lib/content/api-reference/extended-types/focus-target.js?raw"; import rawMonthProp from "$lib/content/api-reference/extended-types/months.js?raw"; +import rawDateValueProp from "$lib/content/api-reference/extended-types/date-value.js?raw"; import rawPageItemProp from "$lib/content/api-reference/extended-types/page-item.js?raw"; import type { PropType } from "$lib/types/index.js"; +export const dateValueProp: PropType = { + type: "DateValue", + definition: rawDateValueProp, +}; + export const monthsPropType: PropType = { type: "Month[]", definition: rawMonthProp, diff --git a/sites/docs/src/lib/content/api-reference/range-calendar.ts b/sites/docs/src/lib/content/api-reference/range-calendar.ts index aa9d9fee3..265ff9354 100644 --- a/sites/docs/src/lib/content/api-reference/range-calendar.ts +++ b/sites/docs/src/lib/content/api-reference/range-calendar.ts @@ -13,6 +13,7 @@ import type { RangeCalendarPropsWithoutHTML, } from "bits-ui"; import { builderAndAttrsSlotProps, domElProps } from "./helpers.js"; +import { dateValueProp } from "$lib/content/api-reference/extended-types/index.js"; import { attrsSlotProp, enums, @@ -42,7 +43,7 @@ export const root: APISchema = { description: "A function that is called when the selected date range changes.", }, placeholder: { - type: "DateValue", + type: dateValueProp, description: "The placeholder date, which is used to determine what month to display when no date range is selected. This updates as the user navigates the calendar, and can be used to programatically control the calendar's view.", }, @@ -104,11 +105,11 @@ export const root: APISchema = { description: "A function that returns whether or not a date is unavailable.", }, maxValue: { - type: "DateValue", + type: dateValueProp, description: "The maximum date that can be selected.", }, minValue: { - type: "DateValue", + type: dateValueProp, description: "The minimum date that can be selected.", }, locale: { @@ -192,7 +193,7 @@ export const cell: APISchema = { description: "A cell in the calendar grid.", props: { date: { - type: "DateValue", + type: dateValueProp, description: "The date for the cell.", }, ...domElProps("HTMLTableCellElement"), @@ -217,11 +218,11 @@ export const day: APISchema = { description: "A day in the calendar grid.", props: { date: { - type: "DateValue", + type: dateValueProp, description: "The date for the cell.", }, month: { - type: "DateValue", + type: dateValueProp, description: "The current month the date is being displayed in.", }, ...domElProps("HTMLDivElement"), From 7342d3f4c3007996165d52852462eefea128e4a4 Mon Sep 17 00:00:00 2001 From: Magnar Ovedal Myrtveit Date: Wed, 17 Apr 2024 19:43:00 +0200 Subject: [PATCH 04/23] Fix binding button element (#473) Co-authored-by: Hunter Johnston <64506580+huntabyte@users.noreply.github.com> --- .changeset/brown-rats-shave.md | 5 +++++ .../bits-ui/src/lib/bits/button/components/button.svelte | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/brown-rats-shave.md diff --git a/.changeset/brown-rats-shave.md b/.changeset/brown-rats-shave.md new file mode 100644 index 000000000..8164be8fb --- /dev/null +++ b/.changeset/brown-rats-shave.md @@ -0,0 +1,5 @@ +--- +"bits-ui": patch +--- + +Fix binding button element diff --git a/packages/bits-ui/src/lib/bits/button/components/button.svelte b/packages/bits-ui/src/lib/bits/button/components/button.svelte index b734df248..94bbf1169 100644 --- a/packages/bits-ui/src/lib/bits/button/components/button.svelte +++ b/packages/bits-ui/src/lib/bits/button/components/button.svelte @@ -38,6 +38,7 @@ Date: Wed, 17 Apr 2024 15:29:45 -0400 Subject: [PATCH 05/23] Version Packages (#475) Co-authored-by: github-actions[bot] --- .changeset/brown-rats-shave.md | 5 ----- packages/bits-ui/CHANGELOG.md | 6 ++++++ packages/bits-ui/package.json | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 .changeset/brown-rats-shave.md diff --git a/.changeset/brown-rats-shave.md b/.changeset/brown-rats-shave.md deleted file mode 100644 index 8164be8fb..000000000 --- a/.changeset/brown-rats-shave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"bits-ui": patch ---- - -Fix binding button element diff --git a/packages/bits-ui/CHANGELOG.md b/packages/bits-ui/CHANGELOG.md index b2d3ba14c..1acf8bf1d 100644 --- a/packages/bits-ui/CHANGELOG.md +++ b/packages/bits-ui/CHANGELOG.md @@ -1,5 +1,11 @@ # bits-ui +## 0.21.4 + +### Patch Changes + +- Fix binding button element ([#473](https://github.com/huntabyte/bits-ui/pull/473)) + ## 0.21.3 ### Patch Changes diff --git a/packages/bits-ui/package.json b/packages/bits-ui/package.json index 50aa18ebe..0ee8ace8a 100644 --- a/packages/bits-ui/package.json +++ b/packages/bits-ui/package.json @@ -1,6 +1,6 @@ { "name": "bits-ui", - "version": "0.21.3", + "version": "0.21.4", "license": "MIT", "repository": "github:huntabyte/bits-ui", "funding": "https://github.com/sponsors/huntabyte", From ba08d99ea33cb4f332235937b1197cb4e1fb6b15 Mon Sep 17 00:00:00 2001 From: Hunter Johnston <64506580+huntabyte@users.noreply.github.com> Date: Fri, 19 Apr 2024 17:23:21 -0400 Subject: [PATCH 06/23] chore: update readme (#486) --- README.md | 13 +++++++++++++ sites/docs/src/app.html | 1 + sites/docs/src/lib/components/metadata.svelte | 1 - 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8eeea1bc1..c98938b3e 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ +[![](https://dcbadge.vercel.app/api/server/fdXy3Sk8Gq?style=flat)](https://discord.gg/fdXy3Sk8Gq) + The headless components for Svelte. [Read the docs](https://bits-ui.com) @@ -41,3 +43,14 @@ Built by [@huntabyte](https://github.com/huntabyte) and [community](https://gith + +## Community + +Join the Discord server to ask questions, find collaborators, or just say hi! + + + + + Svecosystem Discord community + + diff --git a/sites/docs/src/app.html b/sites/docs/src/app.html index dab0c7940..5ac82ad6b 100644 --- a/sites/docs/src/app.html +++ b/sites/docs/src/app.html @@ -14,6 +14,7 @@ /> %sveltekit.head% + - From fe3259f4a5edf704b73fd90e23117f5f8f579b00 Mon Sep 17 00:00:00 2001 From: Hunter Johnston <64506580+huntabyte@users.noreply.github.com> Date: Fri, 19 Apr 2024 17:35:42 -0400 Subject: [PATCH 07/23] chore: issue template (#487) --- .github/ISSUE_TEMPLATE/3-bug_report.yml | 6 ++++++ .github/ISSUE_TEMPLATE/config.yml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/3-bug_report.yml b/.github/ISSUE_TEMPLATE/3-bug_report.yml index d194b282a..2d9b4ed0c 100644 --- a/.github/ISSUE_TEMPLATE/3-bug_report.yml +++ b/.github/ISSUE_TEMPLATE/3-bug_report.yml @@ -6,6 +6,12 @@ body: attributes: value: | Thanks for taking the time to fill out this bug report! + - type: markdown + attributes: + value: | + #### If you aren't sure if something is a bug or not, please do not create an issue, instead ask in one of the following channels: + - [Discussions](https://github.com/huntabyte/bits-ui/discussions/new?category=help) + - [Discord](https://discord.gg/fdXy3Sk8Gq) - type: textarea id: bug-description attributes: diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index b8593c6b6..3cbc2793a 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -4,5 +4,5 @@ contact_links: url: https://github.com/huntabyte/bits-ui/discussions/new?category=help about: If you can't get something to work the way you expect, open a question in our discussion forums. - name: Discord - url: https://hbyt.us/discord + url: https://discord.gg/fdXy3Sk8Gq about: If you need to have a back-and-forth conversation, join the Discord server. From 20593aa979716091867a87645b9d539e699be636 Mon Sep 17 00:00:00 2001 From: CokaKoala <31664583+AdrianGonz97@users.noreply.github.com> Date: Fri, 26 Apr 2024 15:12:52 -0400 Subject: [PATCH 08/23] chore: Replaced all self-closing non-void elements (#518) --- .changeset/rotten-spoons-carry.md | 5 +++++ .../components/alert-dialog-overlay.svelte | 15 ++++++++++----- .../combobox/components/combobox-arrow.svelte | 2 +- .../components/date-picker-arrow.svelte | 2 +- .../components/date-range-picker-arrow.svelte | 2 +- .../bits/dialog/components/dialog-overlay.svelte | 10 +++++----- .../components/link-preview-arrow.svelte | 2 +- .../lib/bits/menu/components/menu-arrow.svelte | 2 +- .../bits/menu/components/menu-separator.svelte | 2 +- .../bits/popover/components/popover-arrow.svelte | 2 +- .../bits/select/components/select-arrow.svelte | 2 +- .../bits/separator/components/separator.svelte | 2 +- .../bits/slider/components/slider-range.svelte | 2 +- .../bits/slider/components/slider-thumb.svelte | 2 +- .../lib/bits/slider/components/slider-tick.svelte | 2 +- .../bits/switch/components/switch-thumb.svelte | 2 +- .../bits/tooltip/components/tooltip-arrow.svelte | 2 +- .../src/tests/combobox/ComboboxTest.svelte | 2 +- .../src/tests/link-preview/LinkPreviewTest.svelte | 2 +- .../bits-ui/src/tests/popover/PopoverTest.svelte | 2 +- .../bits-ui/src/tests/select/SelectTest.svelte | 2 +- .../bits-ui/src/tests/tooltip/TooltipTest.svelte | 2 +- 22 files changed, 39 insertions(+), 29 deletions(-) create mode 100644 .changeset/rotten-spoons-carry.md diff --git a/.changeset/rotten-spoons-carry.md b/.changeset/rotten-spoons-carry.md new file mode 100644 index 000000000..d1dc285c9 --- /dev/null +++ b/.changeset/rotten-spoons-carry.md @@ -0,0 +1,5 @@ +--- +"bits-ui": patch +--- + +chore: Replaced all self-closing non-void elements diff --git a/packages/bits-ui/src/lib/bits/alert-dialog/components/alert-dialog-overlay.svelte b/packages/bits-ui/src/lib/bits/alert-dialog/components/alert-dialog-overlay.svelte index 4659db9b8..98879ac9c 100644 --- a/packages/bits-ui/src/lib/bits/alert-dialog/components/alert-dialog-overlay.svelte +++ b/packages/bits-ui/src/lib/bits/alert-dialog/components/alert-dialog-overlay.svelte @@ -39,7 +39,7 @@ transition:transition={transitionConfig} use:melt={builder} {...$$restProps} - /> + > {:else if inTransition && outTransition && $open}
+ >
{:else if inTransition && $open} -
+
{:else if outTransition && $open}
+ >
{:else if $open} -
+
{/if} diff --git a/packages/bits-ui/src/lib/bits/combobox/components/combobox-arrow.svelte b/packages/bits-ui/src/lib/bits/combobox/components/combobox-arrow.svelte index 451066703..6f6f1afa3 100644 --- a/packages/bits-ui/src/lib/bits/combobox/components/combobox-arrow.svelte +++ b/packages/bits-ui/src/lib/bits/combobox/components/combobox-arrow.svelte @@ -23,5 +23,5 @@ {#if asChild} {:else} -
+
{/if} diff --git a/packages/bits-ui/src/lib/bits/date-picker/components/date-picker-arrow.svelte b/packages/bits-ui/src/lib/bits/date-picker/components/date-picker-arrow.svelte index 79aceec62..4b860a7f6 100644 --- a/packages/bits-ui/src/lib/bits/date-picker/components/date-picker-arrow.svelte +++ b/packages/bits-ui/src/lib/bits/date-picker/components/date-picker-arrow.svelte @@ -26,5 +26,5 @@ {#if asChild} {:else} -
+
{/if} diff --git a/packages/bits-ui/src/lib/bits/date-range-picker/components/date-range-picker-arrow.svelte b/packages/bits-ui/src/lib/bits/date-range-picker/components/date-range-picker-arrow.svelte index 79aceec62..4b860a7f6 100644 --- a/packages/bits-ui/src/lib/bits/date-range-picker/components/date-range-picker-arrow.svelte +++ b/packages/bits-ui/src/lib/bits/date-range-picker/components/date-range-picker-arrow.svelte @@ -26,5 +26,5 @@ {#if asChild} {:else} -
+
{/if} diff --git a/packages/bits-ui/src/lib/bits/dialog/components/dialog-overlay.svelte b/packages/bits-ui/src/lib/bits/dialog/components/dialog-overlay.svelte index f9f401df6..2bc7aa7a0 100644 --- a/packages/bits-ui/src/lib/bits/dialog/components/dialog-overlay.svelte +++ b/packages/bits-ui/src/lib/bits/dialog/components/dialog-overlay.svelte @@ -41,7 +41,7 @@ transition:transition={transitionConfig} use:melt={builder} {...$$restProps} - /> + >
{:else if inTransition && outTransition && $open}
+ >
{:else if inTransition && $open}
+ >
{:else if outTransition && $open}
+ >
{:else if $open} -
+
{/if} diff --git a/packages/bits-ui/src/lib/bits/link-preview/components/link-preview-arrow.svelte b/packages/bits-ui/src/lib/bits/link-preview/components/link-preview-arrow.svelte index 258bb8ec2..30901253e 100644 --- a/packages/bits-ui/src/lib/bits/link-preview/components/link-preview-arrow.svelte +++ b/packages/bits-ui/src/lib/bits/link-preview/components/link-preview-arrow.svelte @@ -22,5 +22,5 @@ {#if asChild} {:else} -
+
{/if} diff --git a/packages/bits-ui/src/lib/bits/menu/components/menu-arrow.svelte b/packages/bits-ui/src/lib/bits/menu/components/menu-arrow.svelte index c1d00fa9a..e0e6448c3 100644 --- a/packages/bits-ui/src/lib/bits/menu/components/menu-arrow.svelte +++ b/packages/bits-ui/src/lib/bits/menu/components/menu-arrow.svelte @@ -23,5 +23,5 @@ {#if asChild} {:else} -
+
{/if} diff --git a/packages/bits-ui/src/lib/bits/menu/components/menu-separator.svelte b/packages/bits-ui/src/lib/bits/menu/components/menu-separator.svelte index a8e6d0985..fff5ae766 100644 --- a/packages/bits-ui/src/lib/bits/menu/components/menu-separator.svelte +++ b/packages/bits-ui/src/lib/bits/menu/components/menu-separator.svelte @@ -22,5 +22,5 @@ {#if asChild} {:else} -
+
{/if} diff --git a/packages/bits-ui/src/lib/bits/popover/components/popover-arrow.svelte b/packages/bits-ui/src/lib/bits/popover/components/popover-arrow.svelte index 451066703..6f6f1afa3 100644 --- a/packages/bits-ui/src/lib/bits/popover/components/popover-arrow.svelte +++ b/packages/bits-ui/src/lib/bits/popover/components/popover-arrow.svelte @@ -23,5 +23,5 @@ {#if asChild} {:else} -
+
{/if} diff --git a/packages/bits-ui/src/lib/bits/select/components/select-arrow.svelte b/packages/bits-ui/src/lib/bits/select/components/select-arrow.svelte index 451066703..6f6f1afa3 100644 --- a/packages/bits-ui/src/lib/bits/select/components/select-arrow.svelte +++ b/packages/bits-ui/src/lib/bits/select/components/select-arrow.svelte @@ -23,5 +23,5 @@ {#if asChild} {:else} -
+
{/if} diff --git a/packages/bits-ui/src/lib/bits/separator/components/separator.svelte b/packages/bits-ui/src/lib/bits/separator/components/separator.svelte index a227c6276..757e13fb6 100644 --- a/packages/bits-ui/src/lib/bits/separator/components/separator.svelte +++ b/packages/bits-ui/src/lib/bits/separator/components/separator.svelte @@ -28,5 +28,5 @@ {#if asChild} {:else} -
+
{/if} diff --git a/packages/bits-ui/src/lib/bits/slider/components/slider-range.svelte b/packages/bits-ui/src/lib/bits/slider/components/slider-range.svelte index c86d5f10d..5563dadff 100644 --- a/packages/bits-ui/src/lib/bits/slider/components/slider-range.svelte +++ b/packages/bits-ui/src/lib/bits/slider/components/slider-range.svelte @@ -22,5 +22,5 @@ {#if asChild} {:else} - + {/if} diff --git a/packages/bits-ui/src/lib/bits/slider/components/slider-thumb.svelte b/packages/bits-ui/src/lib/bits/slider/components/slider-thumb.svelte index d2f40a487..22fabaded 100644 --- a/packages/bits-ui/src/lib/bits/slider/components/slider-thumb.svelte +++ b/packages/bits-ui/src/lib/bits/slider/components/slider-thumb.svelte @@ -23,5 +23,5 @@ {#if asChild} {:else} - + {/if} diff --git a/packages/bits-ui/src/lib/bits/slider/components/slider-tick.svelte b/packages/bits-ui/src/lib/bits/slider/components/slider-tick.svelte index e8c922549..470681b3c 100644 --- a/packages/bits-ui/src/lib/bits/slider/components/slider-tick.svelte +++ b/packages/bits-ui/src/lib/bits/slider/components/slider-tick.svelte @@ -20,5 +20,5 @@ {#if asChild} {:else} - + {/if} diff --git a/packages/bits-ui/src/lib/bits/switch/components/switch-thumb.svelte b/packages/bits-ui/src/lib/bits/switch/components/switch-thumb.svelte index dc100bed1..3a5f40894 100644 --- a/packages/bits-ui/src/lib/bits/switch/components/switch-thumb.svelte +++ b/packages/bits-ui/src/lib/bits/switch/components/switch-thumb.svelte @@ -22,5 +22,5 @@ {#if asChild} {:else} - + {/if} diff --git a/packages/bits-ui/src/lib/bits/tooltip/components/tooltip-arrow.svelte b/packages/bits-ui/src/lib/bits/tooltip/components/tooltip-arrow.svelte index 6a0e174ab..dad1e4c04 100644 --- a/packages/bits-ui/src/lib/bits/tooltip/components/tooltip-arrow.svelte +++ b/packages/bits-ui/src/lib/bits/tooltip/components/tooltip-arrow.svelte @@ -23,5 +23,5 @@ {#if asChild} {:else} -
+
{/if} diff --git a/packages/bits-ui/src/tests/combobox/ComboboxTest.svelte b/packages/bits-ui/src/tests/combobox/ComboboxTest.svelte index ef14a4596..995543795 100644 --- a/packages/bits-ui/src/tests/combobox/ComboboxTest.svelte +++ b/packages/bits-ui/src/tests/combobox/ComboboxTest.svelte @@ -57,4 +57,4 @@ {/if} -
+
diff --git a/packages/bits-ui/src/tests/link-preview/LinkPreviewTest.svelte b/packages/bits-ui/src/tests/link-preview/LinkPreviewTest.svelte index 6c34ee5d7..4fd4e2504 100644 --- a/packages/bits-ui/src/tests/link-preview/LinkPreviewTest.svelte +++ b/packages/bits-ui/src/tests/link-preview/LinkPreviewTest.svelte @@ -22,4 +22,4 @@
outside
-
+
diff --git a/packages/bits-ui/src/tests/popover/PopoverTest.svelte b/packages/bits-ui/src/tests/popover/PopoverTest.svelte index f747528c4..613814fb3 100644 --- a/packages/bits-ui/src/tests/popover/PopoverTest.svelte +++ b/packages/bits-ui/src/tests/popover/PopoverTest.svelte @@ -19,4 +19,4 @@
outside
-
+
diff --git a/packages/bits-ui/src/tests/select/SelectTest.svelte b/packages/bits-ui/src/tests/select/SelectTest.svelte index 89fa211ae..0675bd3e3 100644 --- a/packages/bits-ui/src/tests/select/SelectTest.svelte +++ b/packages/bits-ui/src/tests/select/SelectTest.svelte @@ -50,4 +50,4 @@ {/if} -
+
diff --git a/packages/bits-ui/src/tests/tooltip/TooltipTest.svelte b/packages/bits-ui/src/tests/tooltip/TooltipTest.svelte index be49adc6b..19945f225 100644 --- a/packages/bits-ui/src/tests/tooltip/TooltipTest.svelte +++ b/packages/bits-ui/src/tests/tooltip/TooltipTest.svelte @@ -14,4 +14,4 @@
outside
-
+
From f883bb77d19626373d6f6efa4589ed67a358ca96 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 26 Apr 2024 15:14:52 -0400 Subject: [PATCH 09/23] Version Packages (#519) Co-authored-by: github-actions[bot] --- .changeset/rotten-spoons-carry.md | 5 ----- packages/bits-ui/CHANGELOG.md | 6 ++++++ packages/bits-ui/package.json | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 .changeset/rotten-spoons-carry.md diff --git a/.changeset/rotten-spoons-carry.md b/.changeset/rotten-spoons-carry.md deleted file mode 100644 index d1dc285c9..000000000 --- a/.changeset/rotten-spoons-carry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"bits-ui": patch ---- - -chore: Replaced all self-closing non-void elements diff --git a/packages/bits-ui/CHANGELOG.md b/packages/bits-ui/CHANGELOG.md index 1acf8bf1d..100ef9aeb 100644 --- a/packages/bits-ui/CHANGELOG.md +++ b/packages/bits-ui/CHANGELOG.md @@ -1,5 +1,11 @@ # bits-ui +## 0.21.5 + +### Patch Changes + +- chore: Replaced all self-closing non-void elements ([#518](https://github.com/huntabyte/bits-ui/pull/518)) + ## 0.21.4 ### Patch Changes diff --git a/packages/bits-ui/package.json b/packages/bits-ui/package.json index 0ee8ace8a..a9554098f 100644 --- a/packages/bits-ui/package.json +++ b/packages/bits-ui/package.json @@ -1,6 +1,6 @@ { "name": "bits-ui", - "version": "0.21.4", + "version": "0.21.5", "license": "MIT", "repository": "github:huntabyte/bits-ui", "funding": "https://github.com/sponsors/huntabyte", From 564b03a33b65f96e6f6b49b878f769f03b2dd804 Mon Sep 17 00:00:00 2001 From: Hunter Johnston <64506580+huntabyte@users.noreply.github.com> Date: Mon, 29 Apr 2024 19:55:13 -0400 Subject: [PATCH 10/23] chore: update peer deps to include Svelte 5 (#525) Co-authored-by: CokaKoala <31664583+AdrianGonz97@users.noreply.github.com> --- .changeset/calm-cats-enjoy.md | 5 +++++ packages/bits-ui/package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/calm-cats-enjoy.md diff --git a/.changeset/calm-cats-enjoy.md b/.changeset/calm-cats-enjoy.md new file mode 100644 index 000000000..79b48c033 --- /dev/null +++ b/.changeset/calm-cats-enjoy.md @@ -0,0 +1,5 @@ +--- +"bits-ui": patch +--- + +chore: update peer deps to include Svelte 5 diff --git a/packages/bits-ui/package.json b/packages/bits-ui/package.json index a9554098f..9b237004a 100644 --- a/packages/bits-ui/package.json +++ b/packages/bits-ui/package.json @@ -58,6 +58,6 @@ "nanoid": "^5.0.5" }, "peerDependencies": { - "svelte": "^4.0.0" + "svelte": "^4.0.0 || ^5.0.0-next.118" } } From e1c85eb0ae57036a0635e631a8dbe4b7f8302995 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 29 Apr 2024 19:56:00 -0400 Subject: [PATCH 11/23] Version Packages (#526) Co-authored-by: github-actions[bot] --- .changeset/calm-cats-enjoy.md | 5 ----- packages/bits-ui/CHANGELOG.md | 6 ++++++ packages/bits-ui/package.json | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 .changeset/calm-cats-enjoy.md diff --git a/.changeset/calm-cats-enjoy.md b/.changeset/calm-cats-enjoy.md deleted file mode 100644 index 79b48c033..000000000 --- a/.changeset/calm-cats-enjoy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"bits-ui": patch ---- - -chore: update peer deps to include Svelte 5 diff --git a/packages/bits-ui/CHANGELOG.md b/packages/bits-ui/CHANGELOG.md index 100ef9aeb..68cbdde9a 100644 --- a/packages/bits-ui/CHANGELOG.md +++ b/packages/bits-ui/CHANGELOG.md @@ -1,5 +1,11 @@ # bits-ui +## 0.21.6 + +### Patch Changes + +- chore: update peer deps to include Svelte 5 ([#525](https://github.com/huntabyte/bits-ui/pull/525)) + ## 0.21.5 ### Patch Changes diff --git a/packages/bits-ui/package.json b/packages/bits-ui/package.json index 9b237004a..94a8e413f 100644 --- a/packages/bits-ui/package.json +++ b/packages/bits-ui/package.json @@ -1,6 +1,6 @@ { "name": "bits-ui", - "version": "0.21.5", + "version": "0.21.6", "license": "MIT", "repository": "github:huntabyte/bits-ui", "funding": "https://github.com/sponsors/huntabyte", From 98d5bd071d1cb801c3f6d6db3c75f620f478176c Mon Sep 17 00:00:00 2001 From: CokaKoala <31664583+AdrianGonz97@users.noreply.github.com> Date: Wed, 1 May 2024 13:51:07 -0400 Subject: [PATCH 12/23] chore: Making it more Svelte 5 compatible (#529) --- .changeset/sixty-pens-confess.md | 5 +++++ eslint.config.js | 8 +++++++- .../src/lib/bits/button/components/button.svelte | 4 ++-- .../combobox/components/combobox-content.svelte | 2 +- .../bits/combobox/components/combobox-item.svelte | 3 +-- .../bits/dialog/components/dialog-overlay.svelte | 10 +++++----- .../components/link-preview-trigger.svelte | 6 +++--- .../bits/select/components/select-content.svelte | 2 +- .../lib/bits/select/components/select-item.svelte | 2 +- .../bits/toolbar/components/toolbar-link.svelte | 14 ++++---------- .../src/tests/alert-dialog/AlertDialogTest.svelte | 2 +- .../bits-ui/src/tests/combobox/ComboboxTest.svelte | 2 +- .../src/tests/context-menu/ContextMenuTest.svelte | 2 +- .../bits-ui/src/tests/dialog/DialogTest.svelte | 2 +- .../tests/dropdown-menu/DropdownMenuTest.svelte | 2 +- .../bits-ui/src/tests/select/SelectTest.svelte | 2 +- .../src/lib/components/api-ref/props-table.svelte | 8 ++++---- sites/docs/src/lib/components/api-section.svelte | 2 +- .../src/lib/components/component-preview.svelte | 4 ++-- .../src/lib/components/demos/calendar-demo.svelte | 2 +- .../lib/components/demos/date-picker-demo.svelte | 2 +- .../components/demos/date-range-field-demo.svelte | 2 +- .../components/demos/date-range-picker-demo.svelte | 4 ++-- .../src/lib/components/demos/popover-demo.svelte | 10 ++++++---- .../src/lib/components/demos/progress-demo.svelte | 2 +- .../components/demos/range-calendar-demo.svelte | 2 +- .../src/lib/components/icons/switch-off.svelte | 2 +- .../docs/src/lib/components/icons/switch-on.svelte | 2 +- 28 files changed, 58 insertions(+), 52 deletions(-) create mode 100644 .changeset/sixty-pens-confess.md diff --git a/.changeset/sixty-pens-confess.md b/.changeset/sixty-pens-confess.md new file mode 100644 index 000000000..d255cb400 --- /dev/null +++ b/.changeset/sixty-pens-confess.md @@ -0,0 +1,5 @@ +--- +"bits-ui": patch +--- + +chore: Updated a11y warnings for better Svelte 5 compatibility diff --git a/eslint.config.js b/eslint.config.js index cf3a7aad5..cb7add7ac 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -2,4 +2,10 @@ import config, { DEFAULT_IGNORES } from "@huntabyte/eslint-config"; const ignores = ["**/extended-types"]; -export default config({ svelte: true, ignores: [...DEFAULT_IGNORES, ...ignores] }); +export default config({ + svelte: true, + ignores: [...DEFAULT_IGNORES, ...ignores], +}).override("huntabyte:svelte:rules", { + // we ignore as it complains about the changed warning names in Svelte 5 + rules: { "svelte/no-unused-svelte-ignore": "off" }, +}); diff --git a/packages/bits-ui/src/lib/bits/button/components/button.svelte b/packages/bits-ui/src/lib/bits/button/components/button.svelte index 94bbf1169..6c72ef9d6 100644 --- a/packages/bits-ui/src/lib/bits/button/components/button.svelte +++ b/packages/bits-ui/src/lib/bits/button/components/button.svelte @@ -14,7 +14,7 @@ {#if builders && builders.length} - + {:else} - + - + {#if asChild && $open} {:else if transition && $open} diff --git a/packages/bits-ui/src/lib/bits/combobox/components/combobox-item.svelte b/packages/bits-ui/src/lib/bits/combobox/components/combobox-item.svelte index 7d8706e78..9b7940e5e 100644 --- a/packages/bits-ui/src/lib/bits/combobox/components/combobox-item.svelte +++ b/packages/bits-ui/src/lib/bits/combobox/components/combobox-item.svelte @@ -29,8 +29,7 @@ $: isSelected = $isSelectedStore(value); - - + {#if asChild} {:else} diff --git a/packages/bits-ui/src/lib/bits/dialog/components/dialog-overlay.svelte b/packages/bits-ui/src/lib/bits/dialog/components/dialog-overlay.svelte index 2bc7aa7a0..0e23d657d 100644 --- a/packages/bits-ui/src/lib/bits/dialog/components/dialog-overlay.svelte +++ b/packages/bits-ui/src/lib/bits/dialog/components/dialog-overlay.svelte @@ -34,7 +34,7 @@ {#if asChild && $open} {:else if transition && $open} - +
{:else if inTransition && outTransition && $open} - +
{:else if inTransition && $open} - +
{:else if outTransition && $open} - +
{:else if $open} - +
{/if} diff --git a/packages/bits-ui/src/lib/bits/link-preview/components/link-preview-trigger.svelte b/packages/bits-ui/src/lib/bits/link-preview/components/link-preview-trigger.svelte index 076dcfbc4..cc9245c40 100644 --- a/packages/bits-ui/src/lib/bits/link-preview/components/link-preview-trigger.svelte +++ b/packages/bits-ui/src/lib/bits/link-preview/components/link-preview-trigger.svelte @@ -30,8 +30,8 @@ {#if asChild} {:else} - + - + {/if} diff --git a/packages/bits-ui/src/lib/bits/select/components/select-content.svelte b/packages/bits-ui/src/lib/bits/select/components/select-content.svelte index 19ee888ed..bb076d81e 100644 --- a/packages/bits-ui/src/lib/bits/select/components/select-content.svelte +++ b/packages/bits-ui/src/lib/bits/select/components/select-content.svelte @@ -66,7 +66,7 @@ } - + {#if asChild && $open} {:else if transition && $open} diff --git a/packages/bits-ui/src/lib/bits/select/components/select-item.svelte b/packages/bits-ui/src/lib/bits/select/components/select-item.svelte index adba8942a..93230228b 100644 --- a/packages/bits-ui/src/lib/bits/select/components/select-item.svelte +++ b/packages/bits-ui/src/lib/bits/select/components/select-item.svelte @@ -27,7 +27,7 @@ $: isSelected = $isSelectedStore(value); - + {#if asChild} {:else} diff --git a/packages/bits-ui/src/lib/bits/toolbar/components/toolbar-link.svelte b/packages/bits-ui/src/lib/bits/toolbar/components/toolbar-link.svelte index 183bcccad..7dadc0942 100644 --- a/packages/bits-ui/src/lib/bits/toolbar/components/toolbar-link.svelte +++ b/packages/bits-ui/src/lib/bits/toolbar/components/toolbar-link.svelte @@ -25,15 +25,9 @@ {#if asChild} {:else} - - + + + - + {/if} diff --git a/packages/bits-ui/src/tests/alert-dialog/AlertDialogTest.svelte b/packages/bits-ui/src/tests/alert-dialog/AlertDialogTest.svelte index 896136029..e29d6106b 100644 --- a/packages/bits-ui/src/tests/alert-dialog/AlertDialogTest.svelte +++ b/packages/bits-ui/src/tests/alert-dialog/AlertDialogTest.svelte @@ -30,5 +30,5 @@

{open}

-
+
diff --git a/packages/bits-ui/src/tests/combobox/ComboboxTest.svelte b/packages/bits-ui/src/tests/combobox/ComboboxTest.svelte index 995543795..a3f0f2b72 100644 --- a/packages/bits-ui/src/tests/combobox/ComboboxTest.svelte +++ b/packages/bits-ui/src/tests/combobox/ComboboxTest.svelte @@ -38,7 +38,7 @@ -
+
-
+
diff --git a/packages/bits-ui/src/tests/dialog/DialogTest.svelte b/packages/bits-ui/src/tests/dialog/DialogTest.svelte index 3a22beb23..d4b22c35e 100644 --- a/packages/bits-ui/src/tests/dialog/DialogTest.svelte +++ b/packages/bits-ui/src/tests/dialog/DialogTest.svelte @@ -26,5 +26,5 @@

{open}

-
+
diff --git a/packages/bits-ui/src/tests/dropdown-menu/DropdownMenuTest.svelte b/packages/bits-ui/src/tests/dropdown-menu/DropdownMenuTest.svelte index 79604e4b7..bd6f2f747 100644 --- a/packages/bits-ui/src/tests/dropdown-menu/DropdownMenuTest.svelte +++ b/packages/bits-ui/src/tests/dropdown-menu/DropdownMenuTest.svelte @@ -93,5 +93,5 @@ -
+
diff --git a/packages/bits-ui/src/tests/select/SelectTest.svelte b/packages/bits-ui/src/tests/select/SelectTest.svelte index 0675bd3e3..b2544d4a2 100644 --- a/packages/bits-ui/src/tests/select/SelectTest.svelte +++ b/packages/bits-ui/src/tests/select/SelectTest.svelte @@ -38,7 +38,7 @@ -
+
diff --git a/sites/docs/src/lib/components/api-ref/props-table.svelte b/sites/docs/src/lib/components/api-ref/props-table.svelte index a89fd1286..2a5d101e8 100644 --- a/sites/docs/src/lib/components/api-ref/props-table.svelte +++ b/sites/docs/src/lib/components/api-ref/props-table.svelte @@ -6,7 +6,7 @@ import { parseMarkdown } from "$lib/utils/index.js"; export let props: PropObj>; - export let slot = false; + export let slotted = false; $: propData = Object.entries(props).map(([name, prop]) => { const { type, description, default: defaultVal, required } = prop as PropSchema; @@ -18,7 +18,7 @@ {slot ? "Slot" : ""} Property{slotted ? "Slot" : ""} Property Type Description @@ -42,14 +42,14 @@ {@html parseMarkdown(description)}

- {#if !slot} + {#if !slotted}
Default: {#if defaultVal} {` ${defaultVal}`} {:else} -  —— + undefined {/if} diff --git a/sites/docs/src/lib/components/api-section.svelte b/sites/docs/src/lib/components/api-section.svelte index ac4018b0d..1820d2b87 100644 --- a/sites/docs/src/lib/components/api-section.svelte +++ b/sites/docs/src/lib/components/api-section.svelte @@ -29,7 +29,7 @@ {/if} {#if schema.slotProps} - + {/if} {#if schema.dataAttributes && schema.dataAttributes.length} diff --git a/sites/docs/src/lib/components/component-preview.svelte b/sites/docs/src/lib/components/component-preview.svelte index 8343349d1..4712733cc 100644 --- a/sites/docs/src/lib/components/component-preview.svelte +++ b/sites/docs/src/lib/components/component-preview.svelte @@ -43,7 +43,7 @@ class="absolute left-0 top-0 h-8 w-full rounded-[7px] bg-background dark:bg-muted" in:send={{ key: "active" }} out:receive={{ key: "active" }} - /> + >
{/if} + >
{/if} diff --git a/sites/docs/src/lib/components/demos/calendar-demo.svelte b/sites/docs/src/lib/components/demos/calendar-demo.svelte index 485d06c9b..177ead091 100644 --- a/sites/docs/src/lib/components/demos/calendar-demo.svelte +++ b/sites/docs/src/lib/components/demos/calendar-demo.svelte @@ -57,7 +57,7 @@ > {date.day} diff --git a/sites/docs/src/lib/components/demos/date-picker-demo.svelte b/sites/docs/src/lib/components/demos/date-picker-demo.svelte index e09f1434a..699c3d67a 100644 --- a/sites/docs/src/lib/components/demos/date-picker-demo.svelte +++ b/sites/docs/src/lib/components/demos/date-picker-demo.svelte @@ -86,7 +86,7 @@ > {date.day} diff --git a/sites/docs/src/lib/components/demos/date-range-field-demo.svelte b/sites/docs/src/lib/components/demos/date-range-field-demo.svelte index 1034dd819..807e4d1c0 100644 --- a/sites/docs/src/lib/components/demos/date-range-field-demo.svelte +++ b/sites/docs/src/lib/components/demos/date-range-field-demo.svelte @@ -38,7 +38,7 @@ {/if}
{/each} -
–⁠⁠⁠⁠⁠
+ {#each segments.end as { part, value }}
{#if part === "literal"} diff --git a/sites/docs/src/lib/components/demos/date-range-picker-demo.svelte b/sites/docs/src/lib/components/demos/date-range-picker-demo.svelte index 67cd4084a..f8fdb67b4 100644 --- a/sites/docs/src/lib/components/demos/date-range-picker-demo.svelte +++ b/sites/docs/src/lib/components/demos/date-range-picker-demo.svelte @@ -36,7 +36,7 @@ {/if}
{/each} -
+ {#each segments.end as { part, value }}
{#if part === "literal"} @@ -114,7 +114,7 @@ > {date.day} diff --git a/sites/docs/src/lib/components/demos/popover-demo.svelte b/sites/docs/src/lib/components/demos/popover-demo.svelte index 1d3c96c43..322beb431 100644 --- a/sites/docs/src/lib/components/demos/popover-demo.svelte +++ b/sites/docs/src/lib/components/demos/popover-demo.svelte @@ -33,8 +33,9 @@
Width - WW
Height - HH + >
diff --git a/sites/docs/src/lib/components/demos/range-calendar-demo.svelte b/sites/docs/src/lib/components/demos/range-calendar-demo.svelte index 17ed1c705..6aee101e9 100644 --- a/sites/docs/src/lib/components/demos/range-calendar-demo.svelte +++ b/sites/docs/src/lib/components/demos/range-calendar-demo.svelte @@ -55,7 +55,7 @@ > {date.day} diff --git a/sites/docs/src/lib/components/icons/switch-off.svelte b/sites/docs/src/lib/components/icons/switch-off.svelte index 38c9ae3d0..2bf314821 100644 --- a/sites/docs/src/lib/components/icons/switch-off.svelte +++ b/sites/docs/src/lib/components/icons/switch-off.svelte @@ -3,5 +3,5 @@ > + >
diff --git a/sites/docs/src/lib/components/icons/switch-on.svelte b/sites/docs/src/lib/components/icons/switch-on.svelte index 8540aef97..334ff7a89 100644 --- a/sites/docs/src/lib/components/icons/switch-on.svelte +++ b/sites/docs/src/lib/components/icons/switch-on.svelte @@ -3,5 +3,5 @@ > + >
From 36bb2321f51be55ffb775526ad9773c263cdb531 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 1 May 2024 13:51:49 -0400 Subject: [PATCH 13/23] Version Packages (#530) Co-authored-by: github-actions[bot] --- .changeset/sixty-pens-confess.md | 5 ----- packages/bits-ui/CHANGELOG.md | 6 ++++++ packages/bits-ui/package.json | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 .changeset/sixty-pens-confess.md diff --git a/.changeset/sixty-pens-confess.md b/.changeset/sixty-pens-confess.md deleted file mode 100644 index d255cb400..000000000 --- a/.changeset/sixty-pens-confess.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"bits-ui": patch ---- - -chore: Updated a11y warnings for better Svelte 5 compatibility diff --git a/packages/bits-ui/CHANGELOG.md b/packages/bits-ui/CHANGELOG.md index 68cbdde9a..e8b4e8a31 100644 --- a/packages/bits-ui/CHANGELOG.md +++ b/packages/bits-ui/CHANGELOG.md @@ -1,5 +1,11 @@ # bits-ui +## 0.21.7 + +### Patch Changes + +- chore: Updated a11y warnings for better Svelte 5 compatibility ([#529](https://github.com/huntabyte/bits-ui/pull/529)) + ## 0.21.6 ### Patch Changes diff --git a/packages/bits-ui/package.json b/packages/bits-ui/package.json index 94a8e413f..fc3930463 100644 --- a/packages/bits-ui/package.json +++ b/packages/bits-ui/package.json @@ -1,6 +1,6 @@ { "name": "bits-ui", - "version": "0.21.6", + "version": "0.21.7", "license": "MIT", "repository": "github:huntabyte/bits-ui", "funding": "https://github.com/sponsors/huntabyte", From c71f9871d083827852e3efd8ad0f05bc0f7d8eab Mon Sep 17 00:00:00 2001 From: Abdoulaye NDOYE <46305144+NDOY3M4N@users.noreply.github.com> Date: Fri, 17 May 2024 20:08:14 +0000 Subject: [PATCH 14/23] fix: ContentProps type (#545) Co-authored-by: Hunter Johnston <64506580+huntabyte@users.noreply.github.com> --- .changeset/thick-turkeys-grab.md | 5 +++++ packages/bits-ui/src/lib/bits/floating/_types.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/thick-turkeys-grab.md diff --git a/.changeset/thick-turkeys-grab.md b/.changeset/thick-turkeys-grab.md new file mode 100644 index 000000000..b765c95dc --- /dev/null +++ b/.changeset/thick-turkeys-grab.md @@ -0,0 +1,5 @@ +--- +"bits-ui": patch +--- + +fix: ContentProps type diff --git a/packages/bits-ui/src/lib/bits/floating/_types.ts b/packages/bits-ui/src/lib/bits/floating/_types.ts index d8762c697..a801947c2 100644 --- a/packages/bits-ui/src/lib/bits/floating/_types.ts +++ b/packages/bits-ui/src/lib/bits/floating/_types.ts @@ -1,4 +1,4 @@ -import type { DOMElement, Transition, TransitionProps } from "$lib/internal/index.js"; +import type { DOMElement, Expand, Transition, TransitionProps } from "$lib/internal/index.js"; export type ArrowProps = Expand< { From 1691ef96b00d7b9047c85c3034df0ae78f30fdc3 Mon Sep 17 00:00:00 2001 From: Jeanne Mas <24734881+jeannemas@users.noreply.github.com> Date: Fri, 17 May 2024 16:10:37 -0400 Subject: [PATCH 15/23] fix: Updated ComboboxLabelProps to use HTMLLabelAttributes (#544) Co-authored-by: Hunter Johnston <64506580+huntabyte@users.noreply.github.com> --- .changeset/fresh-islands-cover.md | 5 +++++ packages/bits-ui/src/lib/bits/combobox/types.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/fresh-islands-cover.md diff --git a/.changeset/fresh-islands-cover.md b/.changeset/fresh-islands-cover.md new file mode 100644 index 000000000..392bb0d6b --- /dev/null +++ b/.changeset/fresh-islands-cover.md @@ -0,0 +1,5 @@ +--- +"bits-ui": patch +--- + +fix: Updated `ComboboxLabelProps` to use `HTMLLabelAttributes` diff --git a/packages/bits-ui/src/lib/bits/combobox/types.ts b/packages/bits-ui/src/lib/bits/combobox/types.ts index 3e996e3df..e6bae961b 100644 --- a/packages/bits-ui/src/lib/bits/combobox/types.ts +++ b/packages/bits-ui/src/lib/bits/combobox/types.ts @@ -1,4 +1,4 @@ -import type { EventHandler, HTMLInputAttributes } from "svelte/elements"; +import type { EventHandler, HTMLInputAttributes, HTMLLabelAttributes } from "svelte/elements"; import type { ComboboxOptionProps as MeltComboboxOptionProps, CreateComboboxProps as MeltComboboxProps, @@ -113,7 +113,7 @@ export type ComboboxContentProps< > = ComboboxContentPropsWithoutHTML & HTMLDivAttributes; export type ComboboxInputProps = ComboboxInputPropsWithoutHTML & HTMLInputAttributes; -export type ComboboxLabelProps = ComboboxLabelPropsWithoutHTML & HTMLDivAttributes; +export type ComboboxLabelProps = ComboboxLabelPropsWithoutHTML & HTMLLabelAttributes; export type ComboboxGroupProps = ComboboxGroupPropsWithoutHTML & HTMLDivAttributes; export type ComboboxGroupLabelProps = ComboboxGroupLabelPropsWithoutHTML & HTMLDivAttributes; From 47e0ce9bc1a62dc4d618324a0139ee8c5afdc156 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 18 May 2024 13:39:55 -0400 Subject: [PATCH 16/23] Version Packages (#548) Co-authored-by: github-actions[bot] --- .changeset/fresh-islands-cover.md | 5 ----- .changeset/thick-turkeys-grab.md | 5 ----- packages/bits-ui/CHANGELOG.md | 8 ++++++++ packages/bits-ui/package.json | 2 +- 4 files changed, 9 insertions(+), 11 deletions(-) delete mode 100644 .changeset/fresh-islands-cover.md delete mode 100644 .changeset/thick-turkeys-grab.md diff --git a/.changeset/fresh-islands-cover.md b/.changeset/fresh-islands-cover.md deleted file mode 100644 index 392bb0d6b..000000000 --- a/.changeset/fresh-islands-cover.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"bits-ui": patch ---- - -fix: Updated `ComboboxLabelProps` to use `HTMLLabelAttributes` diff --git a/.changeset/thick-turkeys-grab.md b/.changeset/thick-turkeys-grab.md deleted file mode 100644 index b765c95dc..000000000 --- a/.changeset/thick-turkeys-grab.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"bits-ui": patch ---- - -fix: ContentProps type diff --git a/packages/bits-ui/CHANGELOG.md b/packages/bits-ui/CHANGELOG.md index e8b4e8a31..c45d17448 100644 --- a/packages/bits-ui/CHANGELOG.md +++ b/packages/bits-ui/CHANGELOG.md @@ -1,5 +1,13 @@ # bits-ui +## 0.21.8 + +### Patch Changes + +- fix: Updated `ComboboxLabelProps` to use `HTMLLabelAttributes` ([#544](https://github.com/huntabyte/bits-ui/pull/544)) + +- fix: ContentProps type ([#545](https://github.com/huntabyte/bits-ui/pull/545)) + ## 0.21.7 ### Patch Changes diff --git a/packages/bits-ui/package.json b/packages/bits-ui/package.json index fc3930463..d3aa18165 100644 --- a/packages/bits-ui/package.json +++ b/packages/bits-ui/package.json @@ -1,6 +1,6 @@ { "name": "bits-ui", - "version": "0.21.7", + "version": "0.21.8", "license": "MIT", "repository": "github:huntabyte/bits-ui", "funding": "https://github.com/sponsors/huntabyte", From 46e5828ad046c1ac19c51348a88a5cba4398c879 Mon Sep 17 00:00:00 2001 From: Hunter Johnston <64506580+huntabyte@users.noreply.github.com> Date: Mon, 20 May 2024 21:28:25 -0400 Subject: [PATCH 17/23] feat: forward additional events from `