negodesign 0.0.68 → 0.0.69
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/components/core/carousel/grid/shared/ui/CarouselGridSlot.svelte +1 -1
- package/dist/components/core/carousel/shared/ui/CarouselHeader.svelte +3 -4
- package/dist/components/core/grid/data/types.d.ts +3 -0
- package/dist/components/core/grid/ui/01/Grid01.svelte +2 -1
- package/dist/components/core/grid/ui/02/Grid02.svelte +2 -1
- package/dist/components/core/grid/ui/ItemsPanel.svelte +26 -0
- package/dist/components/core/grid/ui/ItemsPanel.svelte.d.ts +7 -0
- package/dist/components/core/grid/ui/ItemsPanelCarousel.svelte +37 -0
- package/dist/components/core/grid/ui/ItemsPanelCarousel.svelte.d.ts +4 -0
- package/dist/components/core/grid/ui/{PanelGrid.svelte → ItemsPanelGrid.svelte} +11 -5
- package/dist/components/core/grid/ui/ItemsPanelGrid.svelte.d.ts +4 -0
- package/dist/components/core/grid/ui/ItemsSimpleGrid.svelte.d.ts +4 -0
- package/dist/components/core/nav/data/types.d.ts +9 -0
- package/dist/components/core/nav/ui/ComplexMenu.svelte +10 -8
- package/dist/components/core/nav/ui/shared/MenuListItem.svelte +7 -2
- package/dist/components/core/nav/ui/shared/MenuListItem.svelte.d.ts +5 -1
- package/dist/components/core/nav/ui/shared/navigation/NavigationMenuItem.svelte +3 -3
- package/dist/components/core/nav/ui/shared/navigation/NavigationMenuItemCard.svelte +12 -6
- package/dist/components/core/nav/ui/shared/navigation/NavigationMenuItemGrid.svelte +7 -2
- package/dist/components/core/nav/ui/shared/navigation/NavigationMenuItemList.svelte +5 -2
- package/dist/components/core/nav/ui/shared/navigation/NavigationMenuItems.svelte +2 -2
- package/dist/globals.css +4 -11
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/dist/components/core/grid/ui/PanelGrid.svelte.d.ts +0 -4
- package/dist/components/core/grid/ui/SimpleGrid.svelte.d.ts +0 -4
- /package/dist/components/core/grid/ui/{SimpleGrid.svelte → ItemsSimpleGrid.svelte} +0 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { useDevice } from "../../../../../../hooks/responsive.svelte";
|
|
6
6
|
import Autoplay from "embla-carousel-autoplay";
|
|
7
7
|
import type { GridProps } from "../../../../grid/data/types";
|
|
8
|
-
import SimpleGrid from "../../../../grid/ui/
|
|
8
|
+
import SimpleGrid from "../../../../grid/ui/ItemsSimpleGrid.svelte";
|
|
9
9
|
|
|
10
10
|
type Props = {
|
|
11
11
|
slotProps?: CarouselSlotProps;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
<div class="w-full flex justify-center">
|
|
26
26
|
<div
|
|
27
|
-
class="w-
|
|
27
|
+
class="w-full p-2 rounded-xl
|
|
28
28
|
{isBorder ? 'border border-gray-50 dark:border-gray-800' : ''}
|
|
29
29
|
{containerClass}"
|
|
30
30
|
>
|
|
@@ -43,9 +43,8 @@
|
|
|
43
43
|
{#if onButtonViewAll}
|
|
44
44
|
<div>
|
|
45
45
|
<Button
|
|
46
|
-
variant="
|
|
47
|
-
|
|
48
|
-
class="flex items-center gap-0.5"
|
|
46
|
+
variant="outline"
|
|
47
|
+
class="flex items-center gap-0.5 border"
|
|
49
48
|
onclick={onButtonViewAll}
|
|
50
49
|
>
|
|
51
50
|
{$t("label.view.full")}
|
|
@@ -6,14 +6,17 @@ export interface ItemGridProps {
|
|
|
6
6
|
description?: string;
|
|
7
7
|
iconClass?: string;
|
|
8
8
|
titleClass?: string;
|
|
9
|
+
itemClassName?: string;
|
|
9
10
|
descriptionClass?: string;
|
|
10
11
|
icon: string | IconSvgElement;
|
|
11
12
|
onClick?: (id: string | number) => void;
|
|
12
13
|
}
|
|
13
14
|
export interface GridProps {
|
|
14
15
|
items?: ItemGridProps[];
|
|
16
|
+
itemClassName?: string;
|
|
15
17
|
className?: string;
|
|
16
18
|
variant?: 1 | 2;
|
|
17
19
|
isLoading?: boolean;
|
|
20
|
+
selectedKey?: string | number;
|
|
18
21
|
onClick?: (id: string | number) => void;
|
|
19
22
|
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
iconClass,
|
|
13
13
|
titleClass,
|
|
14
14
|
description,
|
|
15
|
+
itemClassName,
|
|
15
16
|
descriptionClass,
|
|
16
17
|
onClick,
|
|
17
18
|
}: ItemGridProps = $props();
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
onclick={() => {
|
|
22
23
|
if (id && onClick) onClick(id);
|
|
23
24
|
}}
|
|
24
|
-
class="flex flex-col justify-center items-center gap-2
|
|
25
|
+
class="flex flex-col justify-center items-center gap-2 rounded-xl {itemClassName}"
|
|
25
26
|
>
|
|
26
27
|
<IconRenderGrid {icon} {iconClass} {isLoading} />
|
|
27
28
|
<TitleGrid {titleClass} {title} {isLoading} />
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
description,
|
|
13
13
|
iconClass,
|
|
14
14
|
titleClass,
|
|
15
|
+
itemClassName,
|
|
15
16
|
descriptionClass,
|
|
16
17
|
onClick,
|
|
17
18
|
}: ItemGridProps = $props();
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
onclick={() => {
|
|
22
23
|
if (id && onClick) onClick(id);
|
|
23
24
|
}}
|
|
24
|
-
class="flex flex-col justify-center items-center gap-2 border rounded-lg p-2 cursor-pointer
|
|
25
|
+
class="flex flex-col justify-center items-center gap-2 border rounded-lg p-2 cursor-pointer {itemClassName}"
|
|
25
26
|
>
|
|
26
27
|
<IconRenderGrid {icon} {iconClass} {isLoading} />
|
|
27
28
|
<TitleGrid {titleClass} {title} {isLoading} />
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { GridProps } from "../data/types";
|
|
3
|
+
import PanelCarousel from "./ItemsPanelCarousel.svelte";
|
|
4
|
+
import PanelGrid from "./ItemsPanelGrid.svelte";
|
|
5
|
+
|
|
6
|
+
let {
|
|
7
|
+
style = "grid",
|
|
8
|
+
onClick,
|
|
9
|
+
...restProps
|
|
10
|
+
}: GridProps & {
|
|
11
|
+
style?: "inline" | "grid";
|
|
12
|
+
} = $props();
|
|
13
|
+
|
|
14
|
+
let selectedKey = $state<string | number | undefined>("");
|
|
15
|
+
|
|
16
|
+
function selectItem(id: string | number) {
|
|
17
|
+
selectedKey = `${id}`;
|
|
18
|
+
onClick?.(id);
|
|
19
|
+
}
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
{#if style == "inline"}
|
|
23
|
+
<PanelCarousel {...restProps} {selectedKey} onClick={selectItem} />
|
|
24
|
+
{:else}
|
|
25
|
+
<PanelGrid {...restProps} {selectedKey} onClick={selectItem} />
|
|
26
|
+
{/if}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GridProps } from "../data/types";
|
|
2
|
+
type $$ComponentProps = GridProps & {
|
|
3
|
+
style?: "inline" | "grid";
|
|
4
|
+
};
|
|
5
|
+
declare const ItemsPanel: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
6
|
+
type ItemsPanel = ReturnType<typeof ItemsPanel>;
|
|
7
|
+
export default ItemsPanel;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import * as Carousel from "../../../ui/carousel/index.js";
|
|
3
|
+
import type { GridProps } from "../data/types";
|
|
4
|
+
import Grid02 from "./02/Grid02.svelte";
|
|
5
|
+
import Grid01 from "./01/Grid01.svelte";
|
|
6
|
+
|
|
7
|
+
let { variant, isLoading, items, itemClassName, onClick }: GridProps =
|
|
8
|
+
$props();
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<Carousel.Root>
|
|
12
|
+
<Carousel.Content>
|
|
13
|
+
{#if isLoading}
|
|
14
|
+
<div class="flex items-center justify-between w-full gap-1 md:gap-2">
|
|
15
|
+
{#each Array.from({ length: 10 }) as _, i (`skeleton-${i}`)}
|
|
16
|
+
<Carousel.Item class="basis-auto relative">
|
|
17
|
+
{#if variant == 2}
|
|
18
|
+
<Grid02 title={`${i}`} description="" icon="" {isLoading} />
|
|
19
|
+
{:else}
|
|
20
|
+
<Grid01 title={`${i}`} description="" icon="" {isLoading} />
|
|
21
|
+
{/if}
|
|
22
|
+
</Carousel.Item>
|
|
23
|
+
{/each}
|
|
24
|
+
</div>
|
|
25
|
+
{:else}
|
|
26
|
+
{#each items as item, i (`panel-${i}`)}
|
|
27
|
+
<Carousel.Item class="basis-auto relative">
|
|
28
|
+
{#if variant == 2}
|
|
29
|
+
<Grid02 {...item} {onClick} {itemClassName} />
|
|
30
|
+
{:else}
|
|
31
|
+
<Grid01 {...item} {onClick} {itemClassName} />
|
|
32
|
+
{/if}
|
|
33
|
+
</Carousel.Item>
|
|
34
|
+
{/each}
|
|
35
|
+
{/if}
|
|
36
|
+
</Carousel.Content>
|
|
37
|
+
</Carousel.Root>
|
|
@@ -4,7 +4,14 @@
|
|
|
4
4
|
import Grid02 from "./02/Grid02.svelte";
|
|
5
5
|
import Grid01 from "./01/Grid01.svelte";
|
|
6
6
|
|
|
7
|
-
let {
|
|
7
|
+
let {
|
|
8
|
+
variant,
|
|
9
|
+
className,
|
|
10
|
+
isLoading,
|
|
11
|
+
items,
|
|
12
|
+
itemClassName,
|
|
13
|
+
onClick,
|
|
14
|
+
}: GridProps = $props();
|
|
8
15
|
|
|
9
16
|
const styleMobile = "flex justify-between overflow-x-auto no-scrollbar";
|
|
10
17
|
|
|
@@ -14,8 +21,7 @@
|
|
|
14
21
|
<div
|
|
15
22
|
class="gap-4 my-2 {responsive.isMobile
|
|
16
23
|
? styleMobile
|
|
17
|
-
: 'grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 max-h-237.5 overflow-y-auto'}
|
|
18
|
-
{className}"
|
|
24
|
+
: 'grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 max-h-237.5 overflow-y-auto'} {className}"
|
|
19
25
|
>
|
|
20
26
|
{#if isLoading}
|
|
21
27
|
{#each Array.from({ length: responsive.isMobile ? 3 : 10 }) as it, i (i)}
|
|
@@ -28,9 +34,9 @@
|
|
|
28
34
|
{:else}
|
|
29
35
|
{#each items as item, i (i)}
|
|
30
36
|
{#if variant == 2}
|
|
31
|
-
<Grid02 {...item} {onClick} />
|
|
37
|
+
<Grid02 {...item} {onClick} {itemClassName} />
|
|
32
38
|
{:else}
|
|
33
|
-
<Grid01 {...item} {onClick} />
|
|
39
|
+
<Grid01 {...item} {onClick} {itemClassName} />
|
|
34
40
|
{/if}
|
|
35
41
|
{/each}
|
|
36
42
|
{/if}
|
|
@@ -9,9 +9,12 @@ export type ListItemProps = HTMLAttributes<HTMLAnchorElement> & {
|
|
|
9
9
|
export type NavigationMenuItemProps = {
|
|
10
10
|
label: string;
|
|
11
11
|
href?: string;
|
|
12
|
+
textClass?: string;
|
|
12
13
|
};
|
|
13
14
|
export type NavigationMenuItemCardProps = {
|
|
14
15
|
label?: string;
|
|
16
|
+
textClass?: string;
|
|
17
|
+
subTextClass?: string;
|
|
15
18
|
header?: {
|
|
16
19
|
label: string;
|
|
17
20
|
description: string;
|
|
@@ -24,14 +27,19 @@ export type NavigationMenuItemCardProps = {
|
|
|
24
27
|
};
|
|
25
28
|
export type NavigationMenuItemGridProps = {
|
|
26
29
|
label: string;
|
|
30
|
+
textClass?: string;
|
|
31
|
+
subTextClass?: string;
|
|
27
32
|
grids?: ListItemProps[];
|
|
28
33
|
};
|
|
29
34
|
export type NavigationMenuItemListProps = {
|
|
30
35
|
label: string;
|
|
36
|
+
textClass?: string;
|
|
37
|
+
subTextClass?: string;
|
|
31
38
|
list?: ListItemProps[];
|
|
32
39
|
};
|
|
33
40
|
export type NavigationMenuItemsProps = {
|
|
34
41
|
label: string;
|
|
42
|
+
textClass?: string;
|
|
35
43
|
items?: {
|
|
36
44
|
title: string;
|
|
37
45
|
href: string;
|
|
@@ -40,6 +48,7 @@ export type NavigationMenuItemsProps = {
|
|
|
40
48
|
export type ComplexMenuProps = IMenuProps & {
|
|
41
49
|
menus: (NavigationMenuItemProps | NavigationMenuItemListProps | NavigationMenuItemCardProps | NavigationMenuItemGridProps | NavigationMenuItemsProps)[];
|
|
42
50
|
textClass?: string;
|
|
51
|
+
subTextClass?: string;
|
|
43
52
|
};
|
|
44
53
|
export type MenuVarientProps = ComplexMenuProps | SimpleMenuProps;
|
|
45
54
|
export type MenuProps = IMenuProps & {
|
|
@@ -13,21 +13,23 @@
|
|
|
13
13
|
import NavigationMenuItemList from "./shared/navigation/NavigationMenuItemList.svelte";
|
|
14
14
|
import NavigationMenuItems from "./shared/navigation/NavigationMenuItems.svelte";
|
|
15
15
|
|
|
16
|
-
let { menus: links, textClass }: ComplexMenuProps = $props();
|
|
16
|
+
let { menus: links, textClass, subTextClass }: ComplexMenuProps = $props();
|
|
17
17
|
</script>
|
|
18
18
|
|
|
19
|
-
<ul
|
|
19
|
+
<ul
|
|
20
|
+
class="flex list-none flex-1 flex-wrap items-center justify-center {textClass}"
|
|
21
|
+
>
|
|
20
22
|
{#each links as link, i (i)}
|
|
21
23
|
{#if isCard(link)}
|
|
22
|
-
<NavigationMenuItemCard {...link} />
|
|
24
|
+
<NavigationMenuItemCard {...link} {textClass} {subTextClass} />
|
|
23
25
|
{:else if isGrid(link)}
|
|
24
|
-
<NavigationMenuItemGrid {...link} />
|
|
26
|
+
<NavigationMenuItemGrid {...link} {textClass} {subTextClass} />
|
|
25
27
|
{:else if isList(link)}
|
|
26
|
-
<NavigationMenuItemList {...link} />
|
|
28
|
+
<NavigationMenuItemList {...link} {textClass} {subTextClass} />
|
|
27
29
|
{:else if isItems(link)}
|
|
28
|
-
<NavigationMenuItems {...link} />
|
|
30
|
+
<NavigationMenuItems {...link} {textClass} />
|
|
29
31
|
{:else if isItem(link)}
|
|
30
|
-
<NavigationMenuItem {...link} />
|
|
32
|
+
<NavigationMenuItem {...link} {textClass} />
|
|
31
33
|
{/if}
|
|
32
34
|
{/each}
|
|
33
|
-
</ul>
|
|
35
|
+
</ul>
|
|
@@ -6,9 +6,14 @@
|
|
|
6
6
|
content,
|
|
7
7
|
href,
|
|
8
8
|
icon,
|
|
9
|
+
textClass,
|
|
10
|
+
subTextClass,
|
|
9
11
|
class: className,
|
|
10
12
|
...restProps
|
|
11
|
-
}: ListItemProps
|
|
13
|
+
}: ListItemProps & {
|
|
14
|
+
textClass?: string;
|
|
15
|
+
subTextClass?: string;
|
|
16
|
+
} = $props();
|
|
12
17
|
</script>
|
|
13
18
|
|
|
14
19
|
<li>
|
|
@@ -36,4 +41,4 @@
|
|
|
36
41
|
{content}
|
|
37
42
|
</p>
|
|
38
43
|
</a>
|
|
39
|
-
</li>
|
|
44
|
+
</li>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { ListItemProps } from "../../data/types";
|
|
2
|
-
|
|
2
|
+
type $$ComponentProps = ListItemProps & {
|
|
3
|
+
textClass?: string;
|
|
4
|
+
subTextClass?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const MenuListItem: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
3
7
|
type MenuListItem = ReturnType<typeof MenuListItem>;
|
|
4
8
|
export default MenuListItem;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { NavigationMenuItemProps } from "../../../data/types";
|
|
3
3
|
|
|
4
|
-
let { label, href }: NavigationMenuItemProps = $props();
|
|
4
|
+
let { label, href, textClass }: NavigationMenuItemProps = $props();
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<li>
|
|
8
8
|
<a
|
|
9
9
|
{href}
|
|
10
|
-
class="inline-flex h-9 w-max items-center justify-center rounded-2xl px-4.5 py-2.5 text-sm font-medium transition-all outline-none select-none hover:bg-muted focus:bg-muted focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1"
|
|
10
|
+
class="inline-flex h-9 w-max items-center justify-center rounded-2xl px-4.5 py-2.5 text-sm font-medium transition-all outline-none select-none hover:bg-muted focus:bg-muted focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 {textClass}"
|
|
11
11
|
>
|
|
12
12
|
{label}
|
|
13
13
|
</a>
|
|
14
|
-
</li>
|
|
14
|
+
</li>
|
|
@@ -3,11 +3,19 @@
|
|
|
3
3
|
import MenuListItem from "../MenuListItem.svelte";
|
|
4
4
|
import NavDropdown from "./NavDropdown.svelte";
|
|
5
5
|
|
|
6
|
-
let {
|
|
6
|
+
let {
|
|
7
|
+
label,
|
|
8
|
+
header,
|
|
9
|
+
cards: items,
|
|
10
|
+
textClass,
|
|
11
|
+
subTextClass,
|
|
12
|
+
}: NavigationMenuItemCardProps = $props();
|
|
7
13
|
</script>
|
|
8
14
|
|
|
9
15
|
{#snippet headerSnippet(label: string, description: string)}
|
|
10
|
-
<div class="mt-4 mb-2 text-lg font-medium {header?.labelClass}">
|
|
16
|
+
<div class="mt-4 mb-2 text-lg font-medium {header?.labelClass}">
|
|
17
|
+
{label}
|
|
18
|
+
</div>
|
|
11
19
|
<p
|
|
12
20
|
class="text-sm leading-tight {header?.descriptionClass ||
|
|
13
21
|
'text-muted-foreground'}"
|
|
@@ -17,9 +25,7 @@
|
|
|
17
25
|
{/snippet}
|
|
18
26
|
|
|
19
27
|
<NavDropdown label={label ?? header?.label ?? ""}>
|
|
20
|
-
<ul
|
|
21
|
-
class="grid gap-2 p-2 w-100 lg:w-125 lg:grid-cols-[.75fr_1fr]"
|
|
22
|
-
>
|
|
28
|
+
<ul class="grid gap-2 p-2 w-100 lg:w-125 lg:grid-cols-[.75fr_1fr]">
|
|
23
29
|
{#if header}
|
|
24
30
|
<li
|
|
25
31
|
class="row-span-3 relative"
|
|
@@ -45,4 +51,4 @@
|
|
|
45
51
|
{/each}
|
|
46
52
|
{/if}
|
|
47
53
|
</ul>
|
|
48
|
-
</NavDropdown>
|
|
54
|
+
</NavDropdown>
|
|
@@ -3,7 +3,12 @@
|
|
|
3
3
|
import MenuListItem from "../MenuListItem.svelte";
|
|
4
4
|
import NavDropdown from "./NavDropdown.svelte";
|
|
5
5
|
|
|
6
|
-
let {
|
|
6
|
+
let {
|
|
7
|
+
label,
|
|
8
|
+
grids: items,
|
|
9
|
+
textClass,
|
|
10
|
+
subTextClass,
|
|
11
|
+
}: NavigationMenuItemGridProps = $props();
|
|
7
12
|
|
|
8
13
|
const cols = (): string => {
|
|
9
14
|
const len = items?.length ?? 0;
|
|
@@ -23,7 +28,7 @@
|
|
|
23
28
|
class={`grid w-75 gap-2 p-2 sm:w-100 md:w-125 lg:min-w-150 max-h-75 overflow-y-auto ${gridCols}`}
|
|
24
29
|
>
|
|
25
30
|
{#each items as item, i (i)}
|
|
26
|
-
<MenuListItem {...item} />
|
|
31
|
+
<MenuListItem {...item} {textClass} {subTextClass} />
|
|
27
32
|
{/each}
|
|
28
33
|
</ul>
|
|
29
34
|
{/if}
|
|
@@ -9,7 +9,10 @@
|
|
|
9
9
|
<ul class="grid w-75 gap-4 p-2">
|
|
10
10
|
{#each list as item, i (i)}
|
|
11
11
|
<li>
|
|
12
|
-
<a
|
|
12
|
+
<a
|
|
13
|
+
href={item.href}
|
|
14
|
+
class="block rounded-xl p-2 no-underline hover:bg-muted"
|
|
15
|
+
>
|
|
13
16
|
<div class="font-medium">{item.title ?? ""}</div>
|
|
14
17
|
<div class="text-muted-foreground">
|
|
15
18
|
{item.content}
|
|
@@ -18,4 +21,4 @@
|
|
|
18
21
|
</li>
|
|
19
22
|
{/each}
|
|
20
23
|
</ul>
|
|
21
|
-
</NavDropdown>
|
|
24
|
+
</NavDropdown>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { NavigationMenuItemsProps } from "../../../data/types";
|
|
3
3
|
import NavDropdown from "./NavDropdown.svelte";
|
|
4
4
|
|
|
5
|
-
let { label, items }: NavigationMenuItemsProps = $props();
|
|
5
|
+
let { label, items, textClass }: NavigationMenuItemsProps = $props();
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<NavDropdown {label} className="hidden md:block">
|
|
@@ -18,4 +18,4 @@
|
|
|
18
18
|
</li>
|
|
19
19
|
{/each}
|
|
20
20
|
</ul>
|
|
21
|
-
</NavDropdown>
|
|
21
|
+
</NavDropdown>
|
package/dist/globals.css
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
--color-red-600: oklch(57.7% 0.245 27.325);
|
|
10
10
|
--color-red-800: oklch(44.4% 0.177 26.899);
|
|
11
11
|
--color-red-900: oklch(39.6% 0.141 25.723);
|
|
12
|
+
--color-amber-50: oklch(98.7% 0.022 95.277);
|
|
12
13
|
--color-yellow-500: oklch(79.5% 0.184 86.047);
|
|
13
14
|
--color-green-500: oklch(72.3% 0.219 149.579);
|
|
14
15
|
--color-green-600: oklch(62.7% 0.194 149.214);
|
|
@@ -1035,9 +1036,6 @@
|
|
|
1035
1036
|
.w-\[60\%\] {
|
|
1036
1037
|
width: 60%;
|
|
1037
1038
|
}
|
|
1038
|
-
.w-\[95\%\] {
|
|
1039
|
-
width: 95%;
|
|
1040
|
-
}
|
|
1041
1039
|
.w-\[100px\] {
|
|
1042
1040
|
width: 100px;
|
|
1043
1041
|
}
|
|
@@ -1701,6 +1699,9 @@
|
|
|
1701
1699
|
.bg-accent {
|
|
1702
1700
|
background-color: var(--accent);
|
|
1703
1701
|
}
|
|
1702
|
+
.bg-amber-50 {
|
|
1703
|
+
background-color: var(--color-amber-50);
|
|
1704
|
+
}
|
|
1704
1705
|
.bg-background {
|
|
1705
1706
|
background-color: var(--background);
|
|
1706
1707
|
}
|
|
@@ -3367,14 +3368,6 @@
|
|
|
3367
3368
|
.hover\:bg-neutral-800:hover {
|
|
3368
3369
|
background-color: var(--color-neutral-800);
|
|
3369
3370
|
}
|
|
3370
|
-
.hover\:bg-primary\/30:hover {
|
|
3371
|
-
background-color: var(--primary);
|
|
3372
|
-
}
|
|
3373
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
3374
|
-
.hover\:bg-primary\/30:hover {
|
|
3375
|
-
background-color: color-mix(in oklab, var(--primary) 30%, transparent);
|
|
3376
|
-
}
|
|
3377
|
-
}
|
|
3378
3371
|
.hover\:bg-primary\/80:hover {
|
|
3379
3372
|
background-color: var(--primary);
|
|
3380
3373
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -34,8 +34,8 @@ import PageLogin from "./components/pages/security/login/PageLogin.svelte";
|
|
|
34
34
|
import SearchInput from "./components/core/search/SearchInput.svelte";
|
|
35
35
|
import Footer from "./components/core/footer/ui/Footer.svelte";
|
|
36
36
|
import NegoDesign from "./components/NegoDesign.svelte";
|
|
37
|
-
import
|
|
38
|
-
import
|
|
37
|
+
import ItemsSimpleGrid from "./components/core/grid/ui/ItemsSimpleGrid.svelte";
|
|
38
|
+
import ItemsPanel from "./components/core/grid/ui/ItemsPanel.svelte";
|
|
39
39
|
/** Store reativa do idioma atual. Altere com `$locale = "pt"`. */
|
|
40
40
|
export { locale } from "./i18n";
|
|
41
41
|
/** Lista de idiomas disponíveis. Atualizado automaticamente. */
|
|
@@ -46,7 +46,7 @@ export { t } from "./i18n";
|
|
|
46
46
|
export { getMergedTranslations } from "./i18n/config";
|
|
47
47
|
/** Retorna a lista de idiomas disponíveis. */
|
|
48
48
|
export { getLocales } from "./i18n/config";
|
|
49
|
-
export { Menu,
|
|
49
|
+
export { Menu, ItemsSimpleGrid, ItemsPanel,
|
|
50
50
|
/**
|
|
51
51
|
* Componente raiz do Negodesign.
|
|
52
52
|
* Configura o tema, idioma e traduções da aplicação.
|
package/dist/index.js
CHANGED
|
@@ -34,8 +34,8 @@ import PageLogin from "./components/pages/security/login/PageLogin.svelte";
|
|
|
34
34
|
import SearchInput from "./components/core/search/SearchInput.svelte";
|
|
35
35
|
import Footer from "./components/core/footer/ui/Footer.svelte";
|
|
36
36
|
import NegoDesign from "./components/NegoDesign.svelte";
|
|
37
|
-
import
|
|
38
|
-
import
|
|
37
|
+
import ItemsSimpleGrid from "./components/core/grid/ui/ItemsSimpleGrid.svelte";
|
|
38
|
+
import ItemsPanel from "./components/core/grid/ui/ItemsPanel.svelte";
|
|
39
39
|
/** Store reativa do idioma atual. Altere com `$locale = "pt"`. */
|
|
40
40
|
export { locale } from "./i18n";
|
|
41
41
|
/** Lista de idiomas disponíveis. Atualizado automaticamente. */
|
|
@@ -46,7 +46,7 @@ export { t } from "./i18n";
|
|
|
46
46
|
export { getMergedTranslations } from "./i18n/config";
|
|
47
47
|
/** Retorna a lista de idiomas disponíveis. */
|
|
48
48
|
export { getLocales } from "./i18n/config";
|
|
49
|
-
export { Menu,
|
|
49
|
+
export { Menu, ItemsSimpleGrid, ItemsPanel,
|
|
50
50
|
/**
|
|
51
51
|
* Componente raiz do Negodesign.
|
|
52
52
|
* Configura o tema, idioma e traduções da aplicação.
|
package/package.json
CHANGED
|
File without changes
|