odj-svelte-ui 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/avatar/Avatar.svelte +43 -5
- package/dist/avatar/Avatar.svelte.d.ts +3 -1
- package/dist/avatar/index.d.ts +2 -2
- package/dist/avatar/index.js +2 -2
- package/dist/avatar/theme.d.ts +144 -3
- package/dist/avatar/theme.js +34 -4
- package/dist/avatar/type.d.ts +2 -0
- package/dist/dropdown/Dropdown.svelte +12 -1
- package/dist/dropdown/DropdownLi.svelte +9 -3
- package/dist/dropdown/DropdownLi.svelte.d.ts +1 -0
- package/dist/dropdown/theme.d.ts +4 -4
- package/dist/dropdown/theme.js +7 -7
- package/dist/dropdown/type.d.ts +2 -0
- package/dist/forms/checkbox/Checkbox.svelte +34 -5
- package/dist/forms/checkbox/theme.js +26 -24
- package/dist/forms/checkbox/type.d.ts +1 -0
- package/dist/forms/toggle/theme.js +22 -22
- package/dist/nav/Navbar.svelte +13 -11
- package/dist/nav/theme.d.ts +6 -6
- package/dist/nav/theme.js +20 -20
- package/dist/sidebar/Sidebar.svelte +9 -54
- package/dist/sidebar/Sidebar.svelte.d.ts +0 -7
- package/dist/sidebar/SidebarGroup.svelte +8 -5
- package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -2
- package/dist/sidebar/SidebarItem.svelte +1 -1
- package/dist/sidebar/index.d.ts +3 -4
- package/dist/sidebar/index.js +2 -3
- package/dist/sidebar/theme.d.ts +223 -108
- package/dist/sidebar/theme.js +27 -28
- package/dist/sidebar/type.d.ts +4 -15
- package/dist/theme/Theme.svelte +0 -2
- package/package.json +1 -5
- package/dist/sidebar/SidebarButton.svelte +0 -21
- package/dist/sidebar/SidebarButton.svelte.d.ts +0 -10
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "odj-svelte-ui",
|
|
3
3
|
"author": "orbitadajogatina",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"description": "This is a fork from Flowbite Svelte 5 with Runes. I just made some changes that fits better my taste.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -436,10 +436,6 @@
|
|
|
436
436
|
"types": "./dist/sidebar/SidebarBrand.svelte.d.ts",
|
|
437
437
|
"svelte": "./dist/sidebar/SidebarBrand.svelte"
|
|
438
438
|
},
|
|
439
|
-
"./SidebarButton.svelte": {
|
|
440
|
-
"types": "./dist/sidebar/SidebarButton.svelte.d.ts",
|
|
441
|
-
"svelte": "./dist/sidebar/SidebarButton.svelte"
|
|
442
|
-
},
|
|
443
439
|
"./SidebarCta.svelte": {
|
|
444
440
|
"types": "./dist/sidebar/SidebarCta.svelte.d.ts",
|
|
445
441
|
"svelte": "./dist/sidebar/SidebarCta.svelte"
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { type SidebarButtonProps as Props, sidebarbutton } from ".";
|
|
3
|
-
let { breakpoint = "md", class: className, ...restProps }: Props = $props();
|
|
4
|
-
|
|
5
|
-
const base = $derived(sidebarbutton({ breakpoint, className }));
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
|
-
<button {...restProps} type="button" class={base}>
|
|
9
|
-
<span class="sr-only">Open sidebar</span>
|
|
10
|
-
<svg class="h-6 w-6" aria-hidden="true" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
11
|
-
<path clip-rule="evenodd" fill-rule="evenodd" d="M2 4.75A.75.75 0 012.75 4h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 4.75zm0 10.5a.75.75 0 01.75-.75h7.5a.75.75 0 010 1.5h-7.5a.75.75 0 01-.75-.75zM2 10a.75.75 0 01.75-.75h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 10z"></path>
|
|
12
|
-
</svg>
|
|
13
|
-
</button>
|
|
14
|
-
|
|
15
|
-
<!--
|
|
16
|
-
@component
|
|
17
|
-
[Go to docs](https://svelte-5-ui-lib.codewithshin.com/)
|
|
18
|
-
## Props
|
|
19
|
-
@props: breakpoint: any = "md";
|
|
20
|
-
@props:class: string;
|
|
21
|
-
-->
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type SidebarButtonProps as Props } from ".";
|
|
2
|
-
/**
|
|
3
|
-
* [Go to docs](https://svelte-5-ui-lib.codewithshin.com/)
|
|
4
|
-
* ## Props
|
|
5
|
-
* @props: breakpoint: any = "md";
|
|
6
|
-
* @props:class: string;
|
|
7
|
-
*/
|
|
8
|
-
declare const SidebarButton: import("svelte").Component<Props, {}, "">;
|
|
9
|
-
type SidebarButton = ReturnType<typeof SidebarButton>;
|
|
10
|
-
export default SidebarButton;
|