Skip to content

Commit

Permalink
fix: move {...$$restProps} before class
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokada committed Oct 9, 2024
1 parent 5b0798a commit 58e1e31
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 11 deletions.
5 changes: 0 additions & 5 deletions .changeset/brave-humans-type.md

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.46.23

### Patch Changes

- bug fix ([`5b0798a414d2bbcd72dc940ebf20d8448b600150`](https://github.com/themesberg/flowbite-svelte/commit/5b0798a414d2bbcd72dc940ebf20d8448b600150))

## 0.46.22

### Patch Changes
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flowbite-svelte",
"version": "0.46.22",
"version": "0.46.23",
"description": "Flowbite components for Svelte",
"main": "dist/index.js",
"packageManager": "pnpm@8.15.4",
Expand Down Expand Up @@ -245,6 +245,10 @@
"types": "./dist/datepicker/Calender.svelte.d.ts",
"svelte": "./dist/datepicker/Calender.svelte"
},
"./DateCalender.svelte": {
"types": "./dist/datepicker/DateCalender.svelte.d.ts",
"svelte": "./dist/datepicker/DateCalender.svelte"
},
"./Datepicker.svelte": {
"types": "./dist/datepicker/Datepicker.svelte.d.ts",
"svelte": "./dist/datepicker/Datepicker.svelte"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/bottom-navigation/BottomNavHeader.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
export let innerClass: $$Props['innerClass'] = 'grid max-w-xs grid-cols-3 gap-1 p-1 mx-auto my-2 bg-gray-100 rounded-lg dark:bg-gray-600';
</script>

<div class={twMerge(outerClass, $$props.classOuter)} {...$$restProps}>
<div {...$$restProps} class={twMerge(outerClass, $$props.classOuter)} >
<div class={twMerge(innerClass, $$props.classInner)} role="group">
<slot />
</div>
Expand Down
19 changes: 18 additions & 1 deletion src/lib/datepicker/DateCalender.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,21 @@
{/if}
</div>
</div>
</Modal>
</Modal>

<!--
@component
[Go to docs](https://flowbite-svelte.com/)
## Props
@prop export let currentDate: Date = new Date();
@prop export let open = false;
@prop export let locale: string = 'default';
@prop export let firstDayOfWeek: number = 0;
@prop export let showToday: boolean = true;
@prop export let showClose: boolean = true;
@prop export let dateFormat: Intl.DateTimeFormatOptions = { month: 'long', year: 'numeric' };
@prop export let dayLabelFormat: 'short' | 'narrow' | 'long' = 'short';
@prop export let customClass: string = '';
@prop export let primaryColor: Button['color'] = 'blue';
@prop export let secondaryColor: string = 'gray';
-->
17 changes: 16 additions & 1 deletion src/lib/forms/CheckboxButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,19 @@
on:change={onChange}
on:change />
<slot />
</Button>
</Button>

<!--
@component
[Go to docs](https://flowbite-svelte.com/)
## Props
@prop export let group: $$Props['group'] = [];
@prop export let value: $$Props['value'] = 'on';
@prop export let checked: $$Props['checked'] = undefined;
@prop export let inline: $$Props['inline'] = true;
@prop export let pill: $$Props['pill'] = false;
@prop export let outline: $$Props['outline'] = false;
@prop export let size: $$Props['size'] = undefined;
@prop export let color: $$Props['color'] = undefined;
@prop export let shadow: $$Props['shadow'] = false;
-->
4 changes: 2 additions & 2 deletions src/routes/component-data/Fileupload.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"slots": [],
"events": ["change", "keyup", "keydown", "keypress", "focus", "blur", "click", "mouseover", "mouseenter", "mouseleave", "paste"],
"props": [
["value", "string", "''"],
["files", "FileList | undefined", "undefined"],
["value?", "string", "''"],
["files?", "FileList | undefined", "undefined"],
["inputClass?", "string", "'border !p-0 dark:text-gray-400'"]
]
}

0 comments on commit 58e1e31

Please sign in to comment.