flowbite-svelte 0.30.5 → 0.30.6
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/dist/navbar/NavLi.svelte
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
<script>import classNames from 'classnames';
|
|
2
|
+
import { getContext } from 'svelte';
|
|
2
3
|
export let href = '';
|
|
3
4
|
export let active = false;
|
|
4
|
-
export let activeClass =
|
|
5
|
-
export let nonActiveClass =
|
|
5
|
+
export let activeClass = undefined;
|
|
6
|
+
export let nonActiveClass = undefined;
|
|
7
|
+
const context = getContext('navbar');
|
|
6
8
|
let liClass;
|
|
7
|
-
$: liClass = classNames('block py-2 pr-4 pl-3 md:p-0 rounded md:border-0', active ? activeClass : nonActiveClass, $$props.class);
|
|
9
|
+
$: liClass = classNames('block py-2 pr-4 pl-3 md:p-0 rounded md:border-0', active ? activeClass ?? context.activeClass : nonActiveClass ?? context.nonActiveClass, $$props.class);
|
|
8
10
|
</script>
|
|
9
11
|
|
|
10
12
|
<li>
|
package/dist/navbar/NavUl.svelte
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
|
+
<script context="module">export {};
|
|
2
|
+
</script>
|
|
3
|
+
|
|
1
4
|
<script>import classNames from 'classnames';
|
|
2
5
|
import { slide } from 'svelte/transition';
|
|
3
6
|
import { quintOut } from 'svelte/easing';
|
|
4
7
|
import Frame from '../utils/Frame.svelte';
|
|
8
|
+
import { setContext } from 'svelte';
|
|
5
9
|
export let divClass = 'w-full md:block md:w-auto';
|
|
6
10
|
export let ulClass = 'flex flex-col p-4 mt-4 md:flex-row md:space-x-8 md:mt-0 md:text-sm md:font-medium';
|
|
7
11
|
export let hidden = true;
|
|
8
12
|
export let slideParams = { delay: 250, duration: 500, easing: quintOut };
|
|
13
|
+
export let activeClass = 'text-white bg-blue-700 md:bg-transparent md:text-blue-700 md:dark:text-white dark:bg-blue-600 md:dark:bg-transparent';
|
|
14
|
+
export let nonActiveClass = 'text-gray-700 hover:bg-gray-100 md:hover:bg-transparent md:border-0 md:hover:text-blue-700 dark:text-gray-400 md:dark:hover:text-white dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent';
|
|
15
|
+
setContext('navbar', { activeClass, nonActiveClass });
|
|
9
16
|
let _divClass;
|
|
10
17
|
$: _divClass = classNames(divClass, $$props.class);
|
|
11
18
|
let _ulClass;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
export type NavbarLiType = {
|
|
3
|
+
activeClass: string;
|
|
4
|
+
nonActiveClass: string;
|
|
5
|
+
};
|
|
2
6
|
import { type SlideParams } from 'svelte/transition';
|
|
3
7
|
declare const __propDef: {
|
|
4
8
|
props: {
|
|
@@ -7,6 +11,8 @@ declare const __propDef: {
|
|
|
7
11
|
ulClass?: string | undefined;
|
|
8
12
|
hidden?: boolean | undefined;
|
|
9
13
|
slideParams?: SlideParams | undefined;
|
|
14
|
+
activeClass?: string | undefined;
|
|
15
|
+
nonActiveClass?: string | undefined;
|
|
10
16
|
};
|
|
11
17
|
events: {
|
|
12
18
|
[evt: string]: CustomEvent<any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.6",
|
|
4
4
|
"description": "Flowbite components for Svelte",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Shinichi Okada",
|
|
@@ -128,10 +128,48 @@
|
|
|
128
128
|
"svelte": "./dist/index.js",
|
|
129
129
|
"types": "./dist/index.d.ts",
|
|
130
130
|
"contributors": [
|
|
131
|
-
"Zoltán Szőgyényi <zoltan@themesberg.com>",
|
|
132
|
-
"Robert Tanislav <robert@themesberg.com>",
|
|
133
|
-
"Victor Cordos <victor@themesberg.com>",
|
|
134
131
|
"Shinichi Okada <okada.shin@gmail.com>",
|
|
135
|
-
"Jakub Jagielka <jjagielka@gmail.com>"
|
|
132
|
+
"Jakub Jagielka <jjagielka@gmail.com>",
|
|
133
|
+
"olivier <orefalo@gmail.com>",
|
|
134
|
+
"Junjae Lee <ejj612o@gmail.com>",
|
|
135
|
+
"Zhi Nie <ryanzhinie@gmail.com>",
|
|
136
|
+
"edde746 <86283021+edde746@users.noreply.github.com>",
|
|
137
|
+
"Christoph Sturm <me@christophsturm.com>",
|
|
138
|
+
"Frail Bongat <frail.bongat@gmail.com>",
|
|
139
|
+
"Hetarth Shah <80420115+Hetarth02@users.noreply.github.com>",
|
|
140
|
+
"Roger Lucas <rogeriolucas@gmail.com>",
|
|
141
|
+
"Alessio Gravili <70709113+AlessioGr@users.noreply.github.com>",
|
|
142
|
+
"Gus Hogg-Blake <gus@gushogg-blake.com>",
|
|
143
|
+
"Shuang Wu <seanwu1105@gmail.com>",
|
|
144
|
+
"mikerowe81 <mikerowe81@gmail.com>",
|
|
145
|
+
"Garrett Suhm <garrett@bigroadadventure.com>",
|
|
146
|
+
"Oliver Weber <ow@uix.io>",
|
|
147
|
+
"Olivier Refalo <orefalo@gmail.com>",
|
|
148
|
+
"Yassine Zeriouh <y@zeriouh.io>",
|
|
149
|
+
"Zoltán Szőgyényi <zoltan.szogyenyi@gmail.com>",
|
|
150
|
+
"nobody0 <nobodyrrd@gmail.com>",
|
|
151
|
+
"Alex Miller <codex.nz@gmail.com>",
|
|
152
|
+
"Bernhard Richter <bernhard.richter@gmail.com>",
|
|
153
|
+
"ByteDream <63594396+ByteDream@users.noreply.github.com>",
|
|
154
|
+
"CBB <38453357+CrystalBallBe@users.noreply.github.com>",
|
|
155
|
+
"Carsten Lebek <59960385+carstenlebek@users.noreply.github.com>",
|
|
156
|
+
"Daniel Hughes <2237515+dan-hughes@users.noreply.github.com>",
|
|
157
|
+
"Feynman Liang <feynmanliang@users.noreply.github.com>",
|
|
158
|
+
"Hetarth Shah <hetarth02@gmail.com>",
|
|
159
|
+
"Hirtol <55356909+Hirtol@users.noreply.github.com>",
|
|
160
|
+
"James Scott-Brown <james@jamesscottbrown.com>",
|
|
161
|
+
"Maarten <90111831+mjoosten42@users.noreply.github.com>",
|
|
162
|
+
"Michael Adams <mtadams42@gmail.com>",
|
|
163
|
+
"Mr. Mendez <56850299+JustMrMendez@users.noreply.github.com>",
|
|
164
|
+
"Navtoj Chahal <github@navtoj.com>",
|
|
165
|
+
"Niklas Haug <54448642+niklashaug@users.noreply.github.com>",
|
|
166
|
+
"Pevey <7490308+pevey@users.noreply.github.com>",
|
|
167
|
+
"Pierre <pierre-H@users.noreply.github.com>",
|
|
168
|
+
"Sumanth Chinthagunta <xmlking@gmail.com>",
|
|
169
|
+
"Thomas <51747351+andocodes@users.noreply.github.com>",
|
|
170
|
+
"Tyler Miller <tyler.rw.miller@protonmail.com>",
|
|
171
|
+
"Zoltán Szőgyényi <zoltan@themesberg.com>",
|
|
172
|
+
"ciril.tr <ciroman@gmail.com>",
|
|
173
|
+
"jakobsturm <jakob@sturm.li>"
|
|
136
174
|
]
|
|
137
175
|
}
|