odj-svelte-ui 0.1.1 → 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 +86 -35
- package/dist/_legacy/accordion/Accordion.svelte +2 -2
- package/dist/_legacy/accordion/Accordion.svelte.d.ts +1 -1
- package/dist/_legacy/avatar/Avatar.svelte +2 -2
- package/dist/_legacy/avatar/Placeholder.svelte +1 -1
- package/dist/_legacy/badge/Badge.svelte +1 -1
- package/dist/_legacy/banner/Banner.svelte +3 -3
- package/dist/_legacy/button-group/ButtonGroup.svelte +2 -2
- package/dist/_legacy/button-group/ButtonGroup.svelte.d.ts +1 -1
- package/dist/_legacy/buttons/Button.svelte +1 -1
- package/dist/_legacy/buttons/GradientButton.svelte +20 -20
- package/dist/_legacy/cards/Card.svelte +1 -1
- package/dist/_legacy/carousel/ControlButton.svelte +2 -2
- package/dist/_legacy/carousel/Slide.svelte +1 -1
- package/dist/_legacy/darkmode/DarkMode.svelte +2 -2
- package/dist/_legacy/darkmode/DarkMode.svelte.d.ts +1 -1
- package/dist/_legacy/drawer/Drawer.svelte +0 -2
- package/dist/_legacy/drawer/Drawer.svelte.d.ts +0 -2
- package/dist/_legacy/footer/Footer.svelte +1 -1
- package/dist/_legacy/forms/Fileupload.svelte +2 -2
- package/dist/_legacy/forms/Fileupload.svelte.d.ts +1 -1
- package/dist/_legacy/forms/FloatingLabelInput.svelte +4 -4
- package/dist/_legacy/forms/MultiSelect.svelte +1 -1
- package/dist/_legacy/forms/Radio.svelte +1 -1
- package/dist/_legacy/forms/Select.svelte +3 -3
- package/dist/_legacy/forms/Select.svelte.d.ts +1 -1
- package/dist/_legacy/forms/Textarea.svelte +2 -2
- package/dist/_legacy/forms/Textarea.svelte.d.ts +1 -1
- package/dist/_legacy/indicators/Indicator.svelte +1 -1
- package/dist/_legacy/list-group/ListgroupItem.svelte +2 -2
- package/dist/_legacy/list-group/ListgroupItem.svelte.d.ts +1 -1
- package/dist/_legacy/mega-menu/MegaMenu.svelte +1 -1
- package/dist/_legacy/modal/Modal.svelte +2 -2
- package/dist/_legacy/modal/Modal.svelte.d.ts +1 -1
- package/dist/_legacy/navbar/NavLi.svelte +1 -1
- package/dist/_legacy/pagination/PaginationItem.svelte +1 -1
- package/dist/_legacy/popover/Popover.svelte +1 -1
- package/dist/_legacy/rating/AdvancedRating.svelte +4 -4
- package/dist/_legacy/rating/AdvancedRating.svelte.d.ts +2 -2
- package/dist/_legacy/rating/Review.svelte +1 -1
- package/dist/_legacy/rating/ScoreRating.svelte +6 -6
- package/dist/_legacy/rating/ScoreRating.svelte.d.ts +2 -2
- package/dist/_legacy/sidebar/SidebarCta.svelte +2 -2
- package/dist/_legacy/sidebar/SidebarCta.svelte.d.ts +1 -1
- package/dist/_legacy/sidebar/SidebarWrapper.svelte +2 -2
- package/dist/_legacy/sidebar/SidebarWrapper.svelte.d.ts +1 -1
- package/dist/_legacy/skeleton/CardPlaceholder.svelte +3 -3
- package/dist/_legacy/skeleton/CardPlaceholder.svelte.d.ts +1 -1
- package/dist/_legacy/skeleton/ImagePlaceholder.svelte +1 -1
- package/dist/_legacy/skeleton/ListPlaceholder.svelte +2 -2
- package/dist/_legacy/skeleton/ListPlaceholder.svelte.d.ts +1 -1
- package/dist/_legacy/skeleton/WidgetPlaceholder.svelte +2 -2
- package/dist/_legacy/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
- package/dist/_legacy/speed-dial/SpeedDial.svelte +2 -2
- package/dist/_legacy/speed-dial/SpeedDialButton.svelte +2 -2
- package/dist/_legacy/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
- package/dist/_legacy/steps/StepIndicator.svelte +4 -4
- package/dist/_legacy/table/TableBodyRow.svelte +6 -6
- package/dist/_legacy/tabs/Tabs.svelte +2 -2
- package/dist/_legacy/timeline/ActivityItem.svelte +2 -2
- package/dist/_legacy/timeline/ActivityItem.svelte.d.ts +1 -1
- package/dist/_legacy/toast/Toast.svelte +3 -3
- package/dist/_legacy/toast/Toast.svelte.d.ts +1 -1
- package/dist/_legacy/toolbar/ToolbarButton.svelte +3 -3
- package/dist/_legacy/toolbar/ToolbarGroup.svelte +2 -2
- package/dist/_legacy/toolbar/ToolbarGroup.svelte.d.ts +1 -1
- package/dist/_legacy/typography/Mark.svelte +2 -2
- package/dist/_legacy/typography/Mark.svelte.d.ts +1 -1
- package/dist/_legacy/typography/Span.svelte +2 -2
- package/dist/_legacy/typography/Span.svelte.d.ts +1 -1
- package/dist/_legacy/utils/backdrop.js +1 -1
- package/dist/accordion/theme.js +1 -1
- package/dist/alert/Alert.svelte +2 -2
- package/dist/alert/Alert.svelte.d.ts +1 -1
- package/dist/avatar/Avatar.svelte +44 -6
- 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 +35 -5
- package/dist/avatar/type.d.ts +2 -0
- package/dist/badge/Badge.svelte +2 -2
- package/dist/badge/Badge.svelte.d.ts +1 -1
- package/dist/badge/theme.js +1 -1
- package/dist/banner/theme.js +3 -3
- package/dist/bottom-navigation/theme.d.ts +15 -15
- package/dist/buttongroup/theme.d.ts +2 -2
- package/dist/buttongroup/theme.js +1 -1
- package/dist/buttons/theme.js +46 -46
- package/dist/cards/theme.js +2 -2
- package/dist/darkmode/theme.d.ts +1 -1
- package/dist/darkmode/theme.js +1 -1
- package/dist/device-mockups/theme.d.ts +230 -230
- package/dist/drawer/theme.d.ts +20 -20
- package/dist/drawer/theme.js +1 -1
- 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 +34 -34
- package/dist/dropdown/theme.js +7 -7
- package/dist/dropdown/type.d.ts +2 -0
- package/dist/footer/theme.d.ts +55 -55
- package/dist/footer/theme.js +3 -3
- package/dist/forms/checkbox/Checkbox.svelte +34 -5
- package/dist/forms/checkbox/theme.js +27 -25
- package/dist/forms/checkbox/type.d.ts +1 -0
- package/dist/forms/dropzone/Dropzone.svelte.d.ts +9 -7
- package/dist/forms/fileupload/theme.js +1 -1
- package/dist/forms/floating-label-input/theme.js +22 -22
- package/dist/forms/input/theme.js +23 -23
- package/dist/forms/input-addon/InputAddon.svelte +1 -1
- package/dist/forms/label/Label.svelte +2 -2
- package/dist/forms/label/theme.d.ts +28 -7
- package/dist/forms/label/theme.js +4 -1
- package/dist/forms/label/type.d.ts +2 -1
- package/dist/forms/radio/Radio.svelte +4 -5
- package/dist/forms/radio/theme.d.ts +0 -56
- package/dist/forms/radio/theme.js +23 -27
- package/dist/forms/radio/type.d.ts +1 -0
- package/dist/forms/select/theme.d.ts +2 -2
- package/dist/forms/select/theme.js +4 -4
- package/dist/forms/textarea/theme.js +1 -1
- package/dist/forms/toggle/theme.js +23 -23
- package/dist/gallery/theme.d.ts +15 -15
- package/dist/indicator/theme.js +2 -2
- package/dist/list-group/theme.js +1 -1
- package/dist/mega-menu/theme.js +1 -1
- package/dist/modal/theme.js +2 -2
- package/dist/nav/Navbar.svelte +13 -11
- package/dist/nav/theme.d.ts +21 -21
- package/dist/nav/theme.js +24 -24
- package/dist/pagination/theme.js +1 -1
- package/dist/rating/Review.svelte +1 -1
- package/dist/rating/ScoreRating.svelte +2 -2
- package/dist/rating/theme.d.ts +125 -125
- package/dist/rating/theme.js +5 -5
- 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 +293 -178
- package/dist/sidebar/theme.js +28 -29
- package/dist/sidebar/type.d.ts +4 -15
- package/dist/skeleton/theme.d.ts +55 -55
- package/dist/skeleton/theme.js +11 -11
- package/dist/table/theme.js +21 -21
- package/dist/tabs/theme.js +1 -1
- package/dist/theme/Theme.svelte +0 -2
- package/dist/theme/Theme.svelte.d.ts +3 -2
- package/dist/timeline/theme.d.ts +95 -95
- package/dist/timeline/theme.js +1 -1
- package/dist/toast/theme.js +1 -1
- package/dist/toolbar/ToolbarButton.svelte +3 -3
- package/dist/toolbar/theme.d.ts +2 -2
- package/dist/toolbar/theme.js +3 -3
- package/dist/typography/img/theme.js +5 -5
- package/dist/typography/mark/theme.d.ts +1 -1
- package/dist/typography/mark/theme.js +1 -1
- package/dist/typography/span/theme.js +12 -12
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +3 -3
- package/package.json +641 -645
- package/dist/sidebar/SidebarButton.svelte +0 -21
- package/dist/sidebar/SidebarButton.svelte.d.ts +0 -10
package/dist/drawer/theme.d.ts
CHANGED
|
@@ -283,18 +283,18 @@ export declare const drawer: import("tailwind-variants").TVReturnType<{
|
|
|
283
283
|
}>, unknown, unknown, undefined>>;
|
|
284
284
|
export declare const drawerhead: import("tailwind-variants").TVReturnType<{
|
|
285
285
|
[key: string]: {
|
|
286
|
-
[key: string]: import("tailwind-
|
|
287
|
-
button?: import("tailwind-
|
|
288
|
-
base?: import("tailwind-
|
|
289
|
-
svg?: import("tailwind-
|
|
286
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
287
|
+
button?: import("tailwind-variants").ClassValue;
|
|
288
|
+
base?: import("tailwind-variants").ClassValue;
|
|
289
|
+
svg?: import("tailwind-variants").ClassValue;
|
|
290
290
|
};
|
|
291
291
|
};
|
|
292
292
|
} | {
|
|
293
293
|
[x: string]: {
|
|
294
|
-
[x: string]: import("tailwind-
|
|
295
|
-
button?: import("tailwind-
|
|
296
|
-
base?: import("tailwind-
|
|
297
|
-
svg?: import("tailwind-
|
|
294
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
295
|
+
button?: import("tailwind-variants").ClassValue;
|
|
296
|
+
base?: import("tailwind-variants").ClassValue;
|
|
297
|
+
svg?: import("tailwind-variants").ClassValue;
|
|
298
298
|
};
|
|
299
299
|
};
|
|
300
300
|
} | {}, {
|
|
@@ -303,18 +303,18 @@ export declare const drawerhead: import("tailwind-variants").TVReturnType<{
|
|
|
303
303
|
svg: string;
|
|
304
304
|
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
305
305
|
[key: string]: {
|
|
306
|
-
[key: string]: import("tailwind-
|
|
307
|
-
button?: import("tailwind-
|
|
308
|
-
base?: import("tailwind-
|
|
309
|
-
svg?: import("tailwind-
|
|
306
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
307
|
+
button?: import("tailwind-variants").ClassValue;
|
|
308
|
+
base?: import("tailwind-variants").ClassValue;
|
|
309
|
+
svg?: import("tailwind-variants").ClassValue;
|
|
310
310
|
};
|
|
311
311
|
};
|
|
312
312
|
} | {}>, {
|
|
313
313
|
[key: string]: {
|
|
314
|
-
[key: string]: import("tailwind-
|
|
315
|
-
button?: import("tailwind-
|
|
316
|
-
base?: import("tailwind-
|
|
317
|
-
svg?: import("tailwind-
|
|
314
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
315
|
+
button?: import("tailwind-variants").ClassValue;
|
|
316
|
+
base?: import("tailwind-variants").ClassValue;
|
|
317
|
+
svg?: import("tailwind-variants").ClassValue;
|
|
318
318
|
};
|
|
319
319
|
};
|
|
320
320
|
} | {}, {
|
|
@@ -327,10 +327,10 @@ export declare const drawerhead: import("tailwind-variants").TVReturnType<{
|
|
|
327
327
|
svg: string;
|
|
328
328
|
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
329
329
|
[key: string]: {
|
|
330
|
-
[key: string]: import("tailwind-
|
|
331
|
-
button?: import("tailwind-
|
|
332
|
-
base?: import("tailwind-
|
|
333
|
-
svg?: import("tailwind-
|
|
330
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
331
|
+
button?: import("tailwind-variants").ClassValue;
|
|
332
|
+
base?: import("tailwind-variants").ClassValue;
|
|
333
|
+
svg?: import("tailwind-variants").ClassValue;
|
|
334
334
|
};
|
|
335
335
|
};
|
|
336
336
|
} | {}>, unknown, unknown, undefined>>;
|
package/dist/drawer/theme.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { setContext } from "svelte";
|
|
6
6
|
import { writable } from "svelte/store";
|
|
7
7
|
|
|
8
|
-
let { children, dropdownStatus = $bindable(), closeDropdown, class: className, backdropClass, params, transition = fly, activeUrl = "", ...restProps }: Props = $props();
|
|
8
|
+
let { children, dropdownStatus = $bindable(), closeDropdown, class: className, backdropClass, params = { y: -5 }, transition = fly, activeUrl = "", lock = true, ...restProps }: Props = $props();
|
|
9
9
|
|
|
10
10
|
const { base, backdrop } = $derived(dropdown());
|
|
11
11
|
const activeUrlStore = writable("");
|
|
@@ -14,6 +14,17 @@
|
|
|
14
14
|
$effect(() => {
|
|
15
15
|
activeUrlStore.set(activeUrl ?? "");
|
|
16
16
|
});
|
|
17
|
+
|
|
18
|
+
$effect(() => {
|
|
19
|
+
if (dropdownStatus && lock) {
|
|
20
|
+
const scrollWidth = window.innerWidth - document.documentElement.clientWidth;
|
|
21
|
+
document.body.style.overflow = "hidden";
|
|
22
|
+
document.body.style.paddingRight = `${scrollWidth}px`;
|
|
23
|
+
} else if (lock) {
|
|
24
|
+
document.body.style.overflow = "";
|
|
25
|
+
document.body.style.paddingRight = "";
|
|
26
|
+
}
|
|
27
|
+
});
|
|
17
28
|
</script>
|
|
18
29
|
|
|
19
30
|
<!-- Dropdown menu -->
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
3
|
import { type DropdownLiProps as Props, dropdownli } from "./";
|
|
4
4
|
|
|
5
|
-
let { aClass, children, href, activeClass, liClass, ...restProps }: Props = $props();
|
|
5
|
+
let { aClass, children, href, activeClass, liClass, custom = false, ...restProps }: Props = $props();
|
|
6
6
|
|
|
7
7
|
const activeUrlStore = getContext("activeUrl") as { subscribe: (callback: (value: string) => void) => void };
|
|
8
8
|
let sidebarUrl = $state("");
|
|
9
9
|
activeUrlStore.subscribe((value) => {
|
|
10
|
-
// console.log('value: ', value)
|
|
11
10
|
sidebarUrl = value;
|
|
12
11
|
});
|
|
13
12
|
let active = $state(false);
|
|
@@ -23,8 +22,14 @@
|
|
|
23
22
|
<a {href} {...restProps} class={active ? activeAnchor({ class: activeClass }) : anchor({ class: aClass })}>
|
|
24
23
|
{@render children()}
|
|
25
24
|
</a>
|
|
25
|
+
{:else if custom}
|
|
26
|
+
<button {...restProps} class={active ? activeAnchor({ class: activeClass }) : anchor({ class: aClass })}>
|
|
27
|
+
{@render children()}
|
|
28
|
+
</button>
|
|
26
29
|
{:else}
|
|
27
|
-
{
|
|
30
|
+
<a {href} {...restProps} class={active ? activeAnchor({ class: activeClass }) : anchor({ class: aClass })}>
|
|
31
|
+
{@render children()}
|
|
32
|
+
</a>
|
|
28
33
|
{/if}
|
|
29
34
|
</li>
|
|
30
35
|
|
|
@@ -37,4 +42,5 @@
|
|
|
37
42
|
@props:href: any;
|
|
38
43
|
@props:activeClass: any;
|
|
39
44
|
@props:liClass: any;
|
|
45
|
+
@props:custom: boolean;
|
|
40
46
|
-->
|
|
@@ -7,6 +7,7 @@ import { type DropdownLiProps as Props } from "./";
|
|
|
7
7
|
* @props:href: any;
|
|
8
8
|
* @props:activeClass: any;
|
|
9
9
|
* @props:liClass: any;
|
|
10
|
+
* @props:custom: boolean;
|
|
10
11
|
*/
|
|
11
12
|
declare const DropdownLi: import("svelte").Component<Props, {}, "">;
|
|
12
13
|
type DropdownLi = ReturnType<typeof DropdownLi>;
|
package/dist/dropdown/theme.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export declare const dropdown: import("tailwind-variants").TVReturnType<{
|
|
2
2
|
[key: string]: {
|
|
3
|
-
[key: string]: import("tailwind-
|
|
4
|
-
base?: import("tailwind-
|
|
5
|
-
backdrop?: import("tailwind-
|
|
3
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4
|
+
base?: import("tailwind-variants").ClassValue;
|
|
5
|
+
backdrop?: import("tailwind-variants").ClassValue;
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
8
|
} | {
|
|
9
9
|
[x: string]: {
|
|
10
|
-
[x: string]: import("tailwind-
|
|
11
|
-
base?: import("tailwind-
|
|
12
|
-
backdrop?: import("tailwind-
|
|
10
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
11
|
+
base?: import("tailwind-variants").ClassValue;
|
|
12
|
+
backdrop?: import("tailwind-variants").ClassValue;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
} | {}, {
|
|
@@ -17,16 +17,16 @@ export declare const dropdown: import("tailwind-variants").TVReturnType<{
|
|
|
17
17
|
backdrop: string;
|
|
18
18
|
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
19
19
|
[key: string]: {
|
|
20
|
-
[key: string]: import("tailwind-
|
|
21
|
-
base?: import("tailwind-
|
|
22
|
-
backdrop?: import("tailwind-
|
|
20
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
21
|
+
base?: import("tailwind-variants").ClassValue;
|
|
22
|
+
backdrop?: import("tailwind-variants").ClassValue;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
} | {}>, {
|
|
26
26
|
[key: string]: {
|
|
27
|
-
[key: string]: import("tailwind-
|
|
28
|
-
base?: import("tailwind-
|
|
29
|
-
backdrop?: import("tailwind-
|
|
27
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
28
|
+
base?: import("tailwind-variants").ClassValue;
|
|
29
|
+
backdrop?: import("tailwind-variants").ClassValue;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
} | {}, {
|
|
@@ -37,27 +37,27 @@ export declare const dropdown: import("tailwind-variants").TVReturnType<{
|
|
|
37
37
|
backdrop: string;
|
|
38
38
|
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
39
39
|
[key: string]: {
|
|
40
|
-
[key: string]: import("tailwind-
|
|
41
|
-
base?: import("tailwind-
|
|
42
|
-
backdrop?: import("tailwind-
|
|
40
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
41
|
+
base?: import("tailwind-variants").ClassValue;
|
|
42
|
+
backdrop?: import("tailwind-variants").ClassValue;
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
} | {}>, unknown, unknown, undefined>>;
|
|
46
|
-
export declare const dropdowndivider: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "my-1 h-px bg-
|
|
47
|
-
export declare const dropdownHeader: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "px-4 py-3 text-sm text-
|
|
48
|
-
export declare const dropdownFooter: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "overflow-hidden rounded-b-
|
|
46
|
+
export declare const dropdowndivider: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "my-1 h-px bg-light-surface-200 dark:bg-dark-surface-600", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "my-1 h-px bg-light-surface-200 dark:bg-dark-surface-600", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
|
|
47
|
+
export declare const dropdownHeader: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "px-4 py-3 rounded-t-xl text-sm text-light-surface-900 dark:text-white", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "px-4 py-3 rounded-t-xl text-sm text-light-surface-900 dark:text-white", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
|
|
48
|
+
export declare const dropdownFooter: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "overflow-hidden rounded-b-xl", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "overflow-hidden rounded-b-xl", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
|
|
49
49
|
export declare const dropdownli: import("tailwind-variants").TVReturnType<{
|
|
50
50
|
[key: string]: {
|
|
51
|
-
[key: string]: import("tailwind-
|
|
52
|
-
anchor?: import("tailwind-
|
|
53
|
-
activeAnchor?: import("tailwind-
|
|
51
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
52
|
+
anchor?: import("tailwind-variants").ClassValue;
|
|
53
|
+
activeAnchor?: import("tailwind-variants").ClassValue;
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
} | {
|
|
57
57
|
[x: string]: {
|
|
58
|
-
[x: string]: import("tailwind-
|
|
59
|
-
anchor?: import("tailwind-
|
|
60
|
-
activeAnchor?: import("tailwind-
|
|
58
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
59
|
+
anchor?: import("tailwind-variants").ClassValue;
|
|
60
|
+
activeAnchor?: import("tailwind-variants").ClassValue;
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
63
|
} | {}, {
|
|
@@ -65,16 +65,16 @@ export declare const dropdownli: import("tailwind-variants").TVReturnType<{
|
|
|
65
65
|
activeAnchor: string;
|
|
66
66
|
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
67
67
|
[key: string]: {
|
|
68
|
-
[key: string]: import("tailwind-
|
|
69
|
-
anchor?: import("tailwind-
|
|
70
|
-
activeAnchor?: import("tailwind-
|
|
68
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
69
|
+
anchor?: import("tailwind-variants").ClassValue;
|
|
70
|
+
activeAnchor?: import("tailwind-variants").ClassValue;
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
73
|
} | {}>, {
|
|
74
74
|
[key: string]: {
|
|
75
|
-
[key: string]: import("tailwind-
|
|
76
|
-
anchor?: import("tailwind-
|
|
77
|
-
activeAnchor?: import("tailwind-
|
|
75
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
76
|
+
anchor?: import("tailwind-variants").ClassValue;
|
|
77
|
+
activeAnchor?: import("tailwind-variants").ClassValue;
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
80
|
} | {}, {
|
|
@@ -85,10 +85,10 @@ export declare const dropdownli: import("tailwind-variants").TVReturnType<{
|
|
|
85
85
|
activeAnchor: string;
|
|
86
86
|
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
87
87
|
[key: string]: {
|
|
88
|
-
[key: string]: import("tailwind-
|
|
89
|
-
anchor?: import("tailwind-
|
|
90
|
-
activeAnchor?: import("tailwind-
|
|
88
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
89
|
+
anchor?: import("tailwind-variants").ClassValue;
|
|
90
|
+
activeAnchor?: import("tailwind-variants").ClassValue;
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
93
|
} | {}>, unknown, unknown, undefined>>;
|
|
94
|
-
export declare const dropdownul: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "
|
|
94
|
+
export declare const dropdownul: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "p-1 flex flex-col", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "p-1 flex flex-col", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
|
package/dist/dropdown/theme.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
export const dropdown = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
base: "z-10 w-
|
|
4
|
+
base: "z-10 w-max mt-2 rounded-xl shadow-lg bg-white dark:bg-dark-surface-700 text-light-surface-700 dark:text-dark-surface-200 border border-light-surface-200 dark:border-dark-surface-600 divide-y divide-light-surface-100 dark:divide-dark-surface-600 overflow-hidden",
|
|
5
5
|
backdrop: "fixed top-0 start-0 w-full h-full"
|
|
6
6
|
}
|
|
7
7
|
});
|
|
8
8
|
export const dropdowndivider = tv({
|
|
9
|
-
base: "my-1 h-px bg-
|
|
9
|
+
base: "my-1 h-px bg-light-surface-200 dark:bg-dark-surface-600"
|
|
10
10
|
});
|
|
11
11
|
export const dropdownHeader = tv({
|
|
12
|
-
base: "px-4 py-3 text-sm text-
|
|
12
|
+
base: "px-4 py-3 rounded-t-xl text-sm text-light-surface-900 dark:text-white"
|
|
13
13
|
});
|
|
14
14
|
export const dropdownFooter = tv({
|
|
15
|
-
base: "overflow-hidden rounded-b-
|
|
15
|
+
base: "overflow-hidden rounded-b-xl"
|
|
16
16
|
});
|
|
17
17
|
export const dropdownli = tv({
|
|
18
18
|
slots: {
|
|
19
|
-
anchor: "
|
|
20
|
-
activeAnchor: "
|
|
19
|
+
anchor: "cursor-pointer flex flex-row gap-3 items-center py-2 px-3 rounded-lg text-sm hover:bg-light-surface-200/70 dark:hover:bg-dark-surface-600 hover:text-light-surface-900 dark:hover:text-white",
|
|
20
|
+
activeAnchor: "cursor-pointer flex flex-row gap-3 items-center py-2 px-3 rounded-lg text-sm bg-primary-700 dark:bg-primary-600 text-white dark:text-white hover:bg-primary-800 dark:hover:bg-primary-700"
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
export const dropdownul = tv({
|
|
24
|
-
base: "
|
|
24
|
+
base: "p-1 flex flex-col"
|
|
25
25
|
});
|
package/dist/dropdown/type.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ interface DropdownProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
13
13
|
params?: ParamsType;
|
|
14
14
|
transition?: TransitionFunc;
|
|
15
15
|
activeUrl?: string;
|
|
16
|
+
lock?: boolean;
|
|
16
17
|
}
|
|
17
18
|
interface DropdownDividerProps extends HTMLAttributes<HTMLDivElement> {
|
|
18
19
|
class?: string;
|
|
@@ -29,6 +30,7 @@ interface DropdownLiProps extends HTMLAnchorAttributes {
|
|
|
29
30
|
href?: string;
|
|
30
31
|
activeClass?: string;
|
|
31
32
|
liClass?: string;
|
|
33
|
+
custom?: boolean;
|
|
32
34
|
}
|
|
33
35
|
interface DropdownUlProps extends HTMLAttributes<HTMLUListElement> {
|
|
34
36
|
children: Snippet;
|
package/dist/footer/theme.d.ts
CHANGED
|
@@ -57,18 +57,18 @@ declare const footer: import("tailwind-variants").TVReturnType<{
|
|
|
57
57
|
}>, unknown, unknown, undefined>>;
|
|
58
58
|
declare const footerBrand: import("tailwind-variants").TVReturnType<{
|
|
59
59
|
[key: string]: {
|
|
60
|
-
[key: string]: import("tailwind-
|
|
61
|
-
base?: import("tailwind-
|
|
62
|
-
img?: import("tailwind-
|
|
63
|
-
span?: import("tailwind-
|
|
60
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
61
|
+
base?: import("tailwind-variants").ClassValue;
|
|
62
|
+
img?: import("tailwind-variants").ClassValue;
|
|
63
|
+
span?: import("tailwind-variants").ClassValue;
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
} | {
|
|
67
67
|
[x: string]: {
|
|
68
|
-
[x: string]: import("tailwind-
|
|
69
|
-
base?: import("tailwind-
|
|
70
|
-
img?: import("tailwind-
|
|
71
|
-
span?: import("tailwind-
|
|
68
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
69
|
+
base?: import("tailwind-variants").ClassValue;
|
|
70
|
+
img?: import("tailwind-variants").ClassValue;
|
|
71
|
+
span?: import("tailwind-variants").ClassValue;
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
74
|
} | {}, {
|
|
@@ -77,18 +77,18 @@ declare const footerBrand: import("tailwind-variants").TVReturnType<{
|
|
|
77
77
|
img: string;
|
|
78
78
|
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
79
79
|
[key: string]: {
|
|
80
|
-
[key: string]: import("tailwind-
|
|
81
|
-
base?: import("tailwind-
|
|
82
|
-
img?: import("tailwind-
|
|
83
|
-
span?: import("tailwind-
|
|
80
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
81
|
+
base?: import("tailwind-variants").ClassValue;
|
|
82
|
+
img?: import("tailwind-variants").ClassValue;
|
|
83
|
+
span?: import("tailwind-variants").ClassValue;
|
|
84
84
|
};
|
|
85
85
|
};
|
|
86
86
|
} | {}>, {
|
|
87
87
|
[key: string]: {
|
|
88
|
-
[key: string]: import("tailwind-
|
|
89
|
-
base?: import("tailwind-
|
|
90
|
-
img?: import("tailwind-
|
|
91
|
-
span?: import("tailwind-
|
|
88
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
89
|
+
base?: import("tailwind-variants").ClassValue;
|
|
90
|
+
img?: import("tailwind-variants").ClassValue;
|
|
91
|
+
span?: import("tailwind-variants").ClassValue;
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
94
|
} | {}, {
|
|
@@ -101,27 +101,27 @@ declare const footerBrand: import("tailwind-variants").TVReturnType<{
|
|
|
101
101
|
img: string;
|
|
102
102
|
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
103
103
|
[key: string]: {
|
|
104
|
-
[key: string]: import("tailwind-
|
|
105
|
-
base?: import("tailwind-
|
|
106
|
-
img?: import("tailwind-
|
|
107
|
-
span?: import("tailwind-
|
|
104
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
105
|
+
base?: import("tailwind-variants").ClassValue;
|
|
106
|
+
img?: import("tailwind-variants").ClassValue;
|
|
107
|
+
span?: import("tailwind-variants").ClassValue;
|
|
108
108
|
};
|
|
109
109
|
};
|
|
110
110
|
} | {}>, unknown, unknown, undefined>>;
|
|
111
111
|
declare const footerCopyright: import("tailwind-variants").TVReturnType<{
|
|
112
112
|
[key: string]: {
|
|
113
|
-
[key: string]: import("tailwind-
|
|
114
|
-
base?: import("tailwind-
|
|
115
|
-
link?: import("tailwind-
|
|
116
|
-
bySpan?: import("tailwind-
|
|
113
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
114
|
+
base?: import("tailwind-variants").ClassValue;
|
|
115
|
+
link?: import("tailwind-variants").ClassValue;
|
|
116
|
+
bySpan?: import("tailwind-variants").ClassValue;
|
|
117
117
|
};
|
|
118
118
|
};
|
|
119
119
|
} | {
|
|
120
120
|
[x: string]: {
|
|
121
|
-
[x: string]: import("tailwind-
|
|
122
|
-
base?: import("tailwind-
|
|
123
|
-
link?: import("tailwind-
|
|
124
|
-
bySpan?: import("tailwind-
|
|
121
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
122
|
+
base?: import("tailwind-variants").ClassValue;
|
|
123
|
+
link?: import("tailwind-variants").ClassValue;
|
|
124
|
+
bySpan?: import("tailwind-variants").ClassValue;
|
|
125
125
|
};
|
|
126
126
|
};
|
|
127
127
|
} | {}, {
|
|
@@ -130,18 +130,18 @@ declare const footerCopyright: import("tailwind-variants").TVReturnType<{
|
|
|
130
130
|
bySpan: string;
|
|
131
131
|
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
132
132
|
[key: string]: {
|
|
133
|
-
[key: string]: import("tailwind-
|
|
134
|
-
base?: import("tailwind-
|
|
135
|
-
link?: import("tailwind-
|
|
136
|
-
bySpan?: import("tailwind-
|
|
133
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
134
|
+
base?: import("tailwind-variants").ClassValue;
|
|
135
|
+
link?: import("tailwind-variants").ClassValue;
|
|
136
|
+
bySpan?: import("tailwind-variants").ClassValue;
|
|
137
137
|
};
|
|
138
138
|
};
|
|
139
139
|
} | {}>, {
|
|
140
140
|
[key: string]: {
|
|
141
|
-
[key: string]: import("tailwind-
|
|
142
|
-
base?: import("tailwind-
|
|
143
|
-
link?: import("tailwind-
|
|
144
|
-
bySpan?: import("tailwind-
|
|
141
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
142
|
+
base?: import("tailwind-variants").ClassValue;
|
|
143
|
+
link?: import("tailwind-variants").ClassValue;
|
|
144
|
+
bySpan?: import("tailwind-variants").ClassValue;
|
|
145
145
|
};
|
|
146
146
|
};
|
|
147
147
|
} | {}, {
|
|
@@ -154,10 +154,10 @@ declare const footerCopyright: import("tailwind-variants").TVReturnType<{
|
|
|
154
154
|
bySpan: string;
|
|
155
155
|
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
156
156
|
[key: string]: {
|
|
157
|
-
[key: string]: import("tailwind-
|
|
158
|
-
base?: import("tailwind-
|
|
159
|
-
link?: import("tailwind-
|
|
160
|
-
bySpan?: import("tailwind-
|
|
157
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
158
|
+
base?: import("tailwind-variants").ClassValue;
|
|
159
|
+
link?: import("tailwind-variants").ClassValue;
|
|
160
|
+
bySpan?: import("tailwind-variants").ClassValue;
|
|
161
161
|
};
|
|
162
162
|
};
|
|
163
163
|
} | {}>, unknown, unknown, undefined>>;
|
|
@@ -165,16 +165,16 @@ declare const footerIcon: import("tailwind-variants").TVReturnType<{} | {} | {},
|
|
|
165
165
|
declare const footerUl: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "text-gray-600 dark:text-gray-400", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "text-gray-600 dark:text-gray-400", import("tailwind-variants/dist/config").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
|
|
166
166
|
declare const footerLi: import("tailwind-variants").TVReturnType<{
|
|
167
167
|
[key: string]: {
|
|
168
|
-
[key: string]: import("tailwind-
|
|
169
|
-
base?: import("tailwind-
|
|
170
|
-
link?: import("tailwind-
|
|
168
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
169
|
+
base?: import("tailwind-variants").ClassValue;
|
|
170
|
+
link?: import("tailwind-variants").ClassValue;
|
|
171
171
|
};
|
|
172
172
|
};
|
|
173
173
|
} | {
|
|
174
174
|
[x: string]: {
|
|
175
|
-
[x: string]: import("tailwind-
|
|
176
|
-
base?: import("tailwind-
|
|
177
|
-
link?: import("tailwind-
|
|
175
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
176
|
+
base?: import("tailwind-variants").ClassValue;
|
|
177
|
+
link?: import("tailwind-variants").ClassValue;
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
180
|
} | {}, {
|
|
@@ -182,16 +182,16 @@ declare const footerLi: import("tailwind-variants").TVReturnType<{
|
|
|
182
182
|
link: string;
|
|
183
183
|
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
184
184
|
[key: string]: {
|
|
185
|
-
[key: string]: import("tailwind-
|
|
186
|
-
base?: import("tailwind-
|
|
187
|
-
link?: import("tailwind-
|
|
185
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
186
|
+
base?: import("tailwind-variants").ClassValue;
|
|
187
|
+
link?: import("tailwind-variants").ClassValue;
|
|
188
188
|
};
|
|
189
189
|
};
|
|
190
190
|
} | {}>, {
|
|
191
191
|
[key: string]: {
|
|
192
|
-
[key: string]: import("tailwind-
|
|
193
|
-
base?: import("tailwind-
|
|
194
|
-
link?: import("tailwind-
|
|
192
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
193
|
+
base?: import("tailwind-variants").ClassValue;
|
|
194
|
+
link?: import("tailwind-variants").ClassValue;
|
|
195
195
|
};
|
|
196
196
|
};
|
|
197
197
|
} | {}, {
|
|
@@ -202,9 +202,9 @@ declare const footerLi: import("tailwind-variants").TVReturnType<{
|
|
|
202
202
|
link: string;
|
|
203
203
|
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
204
204
|
[key: string]: {
|
|
205
|
-
[key: string]: import("tailwind-
|
|
206
|
-
base?: import("tailwind-
|
|
207
|
-
link?: import("tailwind-
|
|
205
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
206
|
+
base?: import("tailwind-variants").ClassValue;
|
|
207
|
+
link?: import("tailwind-variants").ClassValue;
|
|
208
208
|
};
|
|
209
209
|
};
|
|
210
210
|
} | {}>, unknown, unknown, undefined>>;
|
package/dist/footer/theme.js
CHANGED
|
@@ -3,11 +3,11 @@ const footer = tv({
|
|
|
3
3
|
base: "bg-white dark:bg-gray-800",
|
|
4
4
|
variants: {
|
|
5
5
|
footerType: {
|
|
6
|
-
default: "p-4 rounded-lg shadow md:flex md:items-center md:justify-between md:p-6",
|
|
6
|
+
default: "p-4 rounded-lg shadow-sm md:flex md:items-center md:justify-between md:p-6",
|
|
7
7
|
sitemap: "bg-gray-800",
|
|
8
8
|
socialmedia: "p-4 sm:p-6",
|
|
9
|
-
logo: "p-4 rounded-lg shadow md:px-6 md:py-8",
|
|
10
|
-
sticky: "fixed bottom-0 left-0 z-20 w-full p-4 bg-white border-t border-gray-200 shadow md:flex md:items-center md:justify-between md:p-6 dark:bg-gray-800 dark:border-gray-600"
|
|
9
|
+
logo: "p-4 rounded-lg shadow-sm md:px-6 md:py-8",
|
|
10
|
+
sticky: "fixed bottom-0 left-0 z-20 w-full p-4 bg-white border-t border-gray-200 shadow-sm md:flex md:items-center md:justify-between md:p-6 dark:bg-gray-800 dark:border-gray-600"
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
});
|
|
@@ -2,24 +2,53 @@
|
|
|
2
2
|
import Label from "../label/Label.svelte";
|
|
3
3
|
import { type CheckboxProps as Props, checkbox } from ".";
|
|
4
4
|
|
|
5
|
-
let { children, aria_describedby, color = "primary", custom, inline, tinted, rounded, group = $bindable([]), choices = [], checked = $bindable(false), classLabel, indeterminate, class: className, ...restProps }: Props = $props();
|
|
5
|
+
let { children, aria_describedby, color = "primary", custom, inline, tinted, rounded, group = $bindable([]), choices = [], checked = $bindable(false), classLabel, indeterminate, class: className, disabled = false, ...restProps }: Props = $props();
|
|
6
6
|
|
|
7
7
|
const { base, label } = $derived(checkbox({ color, tinted, custom, rounded, inline }));
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
|
+
<style>
|
|
11
|
+
[type="checkbox"]:checked {
|
|
12
|
+
background-image: url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");
|
|
13
|
+
background-color: currentColor;
|
|
14
|
+
border-color: transparent;
|
|
15
|
+
background-position: center;
|
|
16
|
+
background-repeat: no-repeat;
|
|
17
|
+
background-size: 0.55em 0.55em;
|
|
18
|
+
-webkit-print-color-adjust: exact;
|
|
19
|
+
print-color-adjust: exact;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.dark [type="radio"]:checked {
|
|
23
|
+
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
|
|
24
|
+
background-size: 1em 1em;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[type="checkbox"]:indeterminate {
|
|
28
|
+
background-image: url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M0.5 6h14'/%3e %3c/svg%3e");
|
|
29
|
+
background-color: currentColor;
|
|
30
|
+
border-color: transparent;
|
|
31
|
+
background-position: center;
|
|
32
|
+
background-repeat: no-repeat;
|
|
33
|
+
background-size: 0.55em 0.55em;
|
|
34
|
+
-webkit-print-color-adjust: exact;
|
|
35
|
+
print-color-adjust: exact;
|
|
36
|
+
}
|
|
37
|
+
</style>
|
|
38
|
+
|
|
10
39
|
{#if choices.length > 0}
|
|
11
40
|
{#each choices as { value, checkboxLabel }, i}
|
|
12
|
-
<Label class={label({ class: classLabel })} for={`checkbox-${i}`}>
|
|
41
|
+
<Label class={label({ class: classLabel })} for={`checkbox-${i}`} {disabled}>
|
|
13
42
|
{checkboxLabel}
|
|
14
|
-
<input id={`checkbox-${i}`} type="checkbox" {value} bind:group {...restProps} class={base({ class: className })} />
|
|
43
|
+
<input id={`checkbox-${i}`} type="checkbox" {value} bind:group {disabled} {...restProps} class={base({ class: className })} />
|
|
15
44
|
{#if children}
|
|
16
45
|
{@render children()}
|
|
17
46
|
{/if}
|
|
18
47
|
</Label>
|
|
19
48
|
{/each}
|
|
20
49
|
{:else}
|
|
21
|
-
<Label class={label({ class: classLabel })}>
|
|
22
|
-
<input type="checkbox" bind:checked aria-describedby={aria_describedby} {indeterminate} {...restProps} class={base({ class: className })} />
|
|
50
|
+
<Label class={label({ class: classLabel })} {disabled}>
|
|
51
|
+
<input type="checkbox" bind:checked aria-describedby={aria_describedby} {indeterminate} {disabled} {...restProps} class={base({ class: className })} />
|
|
23
52
|
{#if children}
|
|
24
53
|
{@render children()}
|
|
25
54
|
{/if}
|