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/sidebar/theme.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
export const sidebar = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
base: "top-0 left-0 z-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
backdrop: "fixed top-0 start-0 z-40 w-full h-full"
|
|
4
|
+
base: "top-0 left-0 z-10 min-w-full",
|
|
5
|
+
div: "overflow-y-auto p-2 rounded-lg bg-light-surface-100 dark:bg-dark-surface-800",
|
|
6
|
+
active: "cursor-pointer flex items-center p-2 rounded-lg text-base font-normal text-light-surface-900 dark:text-white bg-light-surface-300 dark:bg-dark-surface-700 hover:bg-light-surface-300/50 dark:hover:bg-dark-surface-600",
|
|
7
|
+
nonactive: "cursor-pointer flex items-center p-2 rounded-lg text-base font-normal text-light-surface-700 dark:text-dark-surface-400 hover:bg-light-surface-300/50 dark:hover:bg-dark-surface-600 hover:text-light-surface-800 dark:hover:text-dark-surface-200"
|
|
9
8
|
},
|
|
10
9
|
variants: {
|
|
11
10
|
position: {
|
|
@@ -13,44 +12,44 @@ export const sidebar = tv({
|
|
|
13
12
|
absolute: { base: "absolute" },
|
|
14
13
|
static: { base: "static" }
|
|
15
14
|
},
|
|
16
|
-
isOpen: {
|
|
17
|
-
true: "block",
|
|
18
|
-
false: "hidden"
|
|
19
|
-
},
|
|
20
15
|
breakpoint: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
backdrop: {
|
|
28
|
-
true: { backdrop: "bg-gray-900 bg-opacity-75" }
|
|
16
|
+
none: { base: "min-w-64 h-full", div: "h-full sm:rounded-none" },
|
|
17
|
+
sm: { base: "sm:min-w-64 sm:h-full", div: "sm:h-full sm:rounded-none" },
|
|
18
|
+
md: { base: "md:min-w-64 md:h-full", div: "md:h-full md:rounded-none" },
|
|
19
|
+
lg: { base: "lg:min-w-64 lg:h-full", div: "lg:h-full lg:rounded-none" },
|
|
20
|
+
xl: { base: "xl:min-w-64 xl:h-full", div: "xl:h-full xl:rounded-none" },
|
|
21
|
+
"2xl": { base: "2xl:min-w-64 2xl:h-full", div: "2xl:h-full 2xl:rounded-none" }
|
|
29
22
|
}
|
|
30
23
|
}
|
|
31
24
|
});
|
|
32
|
-
export const
|
|
33
|
-
|
|
25
|
+
export const sidebargroup = tv({
|
|
26
|
+
slots: {
|
|
27
|
+
base: "flex flex-row gap-2"
|
|
28
|
+
},
|
|
34
29
|
variants: {
|
|
35
30
|
breakpoint: {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
31
|
+
none: { base: "flex-col" },
|
|
32
|
+
sm: { base: "sm:flex-col" },
|
|
33
|
+
md: { base: "md:flex-col" },
|
|
34
|
+
lg: { base: "lg:flex-col" },
|
|
35
|
+
xl: { base: "xl:flex-col" },
|
|
36
|
+
"2xl": { base: "2xl:flex-col" }
|
|
37
|
+
},
|
|
38
|
+
border: {
|
|
39
|
+
true: "pt-4 mt-4 border-t border-light-surface-200 dark:border-dark-surface-700"
|
|
41
40
|
}
|
|
42
41
|
}
|
|
43
42
|
});
|
|
44
43
|
export const sidebarcta = tv({
|
|
45
44
|
slots: {
|
|
46
|
-
base: "p-4 mt-
|
|
45
|
+
base: "p-4 mt-2 bg-primary-50 rounded-lg dark:bg-primary-900",
|
|
47
46
|
div: "flex items-center mb-3",
|
|
48
|
-
span: "bg-primary-100 text-primary-800 text-sm font-semibold me-2 px-2.5 py-0.5 rounded dark:bg-primary-200 dark:text-primary-900"
|
|
47
|
+
span: "bg-primary-100 text-primary-800 text-sm font-semibold me-2 px-2.5 py-0.5 rounded-sm dark:bg-primary-200 dark:text-primary-900"
|
|
49
48
|
}
|
|
50
49
|
});
|
|
51
50
|
export const sitebarbrand = tv({
|
|
52
51
|
slots: {
|
|
53
|
-
base: "flex items-center
|
|
52
|
+
base: "flex items-center px-2 my-2",
|
|
54
53
|
img: "h-6 me-3 sm:h-7",
|
|
55
54
|
span: "self-center text-xl font-semibold whitespace-nowrap dark:text-white"
|
|
56
55
|
}
|
|
@@ -58,9 +57,9 @@ export const sitebarbrand = tv({
|
|
|
58
57
|
export const sidebardropdownwrapper = tv({
|
|
59
58
|
slots: {
|
|
60
59
|
base: "",
|
|
61
|
-
btn: "flex items-center
|
|
60
|
+
btn: "group w-full cursor-pointer flex items-center p-2 rounded-lg text-base font-normal text-light-surface-700 dark:text-dark-surface-400 hover:bg-light-surface-300/50 dark:hover:bg-dark-surface-600 hover:text-light-surface-800 dark:hover:text-dark-surface-200",
|
|
62
61
|
span: "flex-1 ms-3 text-left whitespace-nowrap",
|
|
63
|
-
svg: "h-3 w-3 text-
|
|
62
|
+
svg: "h-3 w-3 text-light-surface-700 dark:text-dark-surface-400 group-hover:text-light-surface-800 dark:group-hover:text-dark-surface-200",
|
|
64
63
|
ul: "py-2 space-y-2"
|
|
65
64
|
}
|
|
66
65
|
});
|
package/dist/sidebar/type.d.ts
CHANGED
|
@@ -3,36 +3,26 @@ import type { Snippet } from "svelte";
|
|
|
3
3
|
import type { HTMLAttributes, HTMLButtonAttributes, HTMLAnchorAttributes } from "svelte/elements";
|
|
4
4
|
import type { TransitionFunc, ParamsType } from "../types";
|
|
5
5
|
type SidebarCtxType = {
|
|
6
|
-
closeSidebar?: () => void;
|
|
7
6
|
activeClass?: string;
|
|
8
7
|
nonActiveClass?: string;
|
|
9
8
|
isSingle?: boolean;
|
|
10
9
|
selected?: Writable<object>;
|
|
11
10
|
activeUrl?: string;
|
|
11
|
+
breakpoint?: BreakpointType;
|
|
12
12
|
};
|
|
13
|
-
type BreakpointType = "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
13
|
+
type BreakpointType = "sm" | "md" | "lg" | "xl" | "2xl" | "none" | undefined;
|
|
14
14
|
type PosisionType = "fixed" | "absolute" | "static" | undefined;
|
|
15
15
|
interface SidebarProps extends HTMLAttributes<HTMLElement> {
|
|
16
16
|
children: Snippet;
|
|
17
|
-
isOpen?: boolean;
|
|
18
|
-
closeSidebar?: () => void;
|
|
19
|
-
activateClickOutside?: boolean;
|
|
20
17
|
isSingle?: boolean;
|
|
21
18
|
breakpoint?: BreakpointType;
|
|
22
19
|
position?: PosisionType;
|
|
23
|
-
ariaLabel?: string;
|
|
24
20
|
divClass?: string;
|
|
21
|
+
ariaLabel?: string;
|
|
25
22
|
nonActiveClass?: string;
|
|
26
23
|
activeClass?: string;
|
|
27
|
-
params?: ParamsType;
|
|
28
|
-
transition?: TransitionFunc;
|
|
29
|
-
backdrop?: boolean;
|
|
30
|
-
backdropClass?: string;
|
|
31
24
|
activeUrl?: string;
|
|
32
25
|
}
|
|
33
|
-
interface SidebarButtonProps extends HTMLButtonAttributes {
|
|
34
|
-
breakpoint?: BreakpointType;
|
|
35
|
-
}
|
|
36
26
|
interface SidebarCtaProps extends HTMLAttributes<HTMLDivElement> {
|
|
37
27
|
children: Snippet;
|
|
38
28
|
icon?: Snippet;
|
|
@@ -69,7 +59,6 @@ interface SidebarDropdownWrapperProps extends HTMLButtonAttributes {
|
|
|
69
59
|
}
|
|
70
60
|
interface SidebarGroupProps extends HTMLAttributes<HTMLUListElement> {
|
|
71
61
|
children: Snippet;
|
|
72
|
-
borderClass?: string;
|
|
73
62
|
border?: boolean;
|
|
74
63
|
}
|
|
75
64
|
interface SidebarItemProps extends HTMLAnchorAttributes {
|
|
@@ -82,4 +71,4 @@ interface SidebarItemProps extends HTMLAnchorAttributes {
|
|
|
82
71
|
aClass?: string;
|
|
83
72
|
active?: boolean;
|
|
84
73
|
}
|
|
85
|
-
export type { SidebarProps, SidebarDropdownWrapperProps, SidebarGroupProps, SidebarItemProps, SidebarCtxType,
|
|
74
|
+
export type { SidebarProps, SidebarDropdownWrapperProps, SidebarGroupProps, SidebarItemProps, SidebarCtxType, SidebarCtaProps, SidebarBrandProps, BreakpointType, PosisionType };
|
package/dist/skeleton/theme.d.ts
CHANGED
|
@@ -812,22 +812,22 @@ declare const skeleton: import("tailwind-variants").TVReturnType<{
|
|
|
812
812
|
}>, unknown, unknown, undefined>>;
|
|
813
813
|
declare const testimonialPlaceholder: import("tailwind-variants").TVReturnType<{
|
|
814
814
|
[key: string]: {
|
|
815
|
-
[key: string]: import("tailwind-
|
|
816
|
-
svg?: import("tailwind-
|
|
817
|
-
wrapper?: import("tailwind-
|
|
818
|
-
line1?: import("tailwind-
|
|
819
|
-
line2?: import("tailwind-
|
|
820
|
-
subContent?: import("tailwind-
|
|
815
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
816
|
+
svg?: import("tailwind-variants").ClassValue;
|
|
817
|
+
wrapper?: import("tailwind-variants").ClassValue;
|
|
818
|
+
line1?: import("tailwind-variants").ClassValue;
|
|
819
|
+
line2?: import("tailwind-variants").ClassValue;
|
|
820
|
+
subContent?: import("tailwind-variants").ClassValue;
|
|
821
821
|
};
|
|
822
822
|
};
|
|
823
823
|
} | {
|
|
824
824
|
[x: string]: {
|
|
825
|
-
[x: string]: import("tailwind-
|
|
826
|
-
svg?: import("tailwind-
|
|
827
|
-
wrapper?: import("tailwind-
|
|
828
|
-
line1?: import("tailwind-
|
|
829
|
-
line2?: import("tailwind-
|
|
830
|
-
subContent?: import("tailwind-
|
|
825
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
826
|
+
svg?: import("tailwind-variants").ClassValue;
|
|
827
|
+
wrapper?: import("tailwind-variants").ClassValue;
|
|
828
|
+
line1?: import("tailwind-variants").ClassValue;
|
|
829
|
+
line2?: import("tailwind-variants").ClassValue;
|
|
830
|
+
subContent?: import("tailwind-variants").ClassValue;
|
|
831
831
|
};
|
|
832
832
|
};
|
|
833
833
|
} | {}, {
|
|
@@ -838,22 +838,22 @@ declare const testimonialPlaceholder: import("tailwind-variants").TVReturnType<{
|
|
|
838
838
|
subContent: string;
|
|
839
839
|
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
840
840
|
[key: string]: {
|
|
841
|
-
[key: string]: import("tailwind-
|
|
842
|
-
svg?: import("tailwind-
|
|
843
|
-
wrapper?: import("tailwind-
|
|
844
|
-
line1?: import("tailwind-
|
|
845
|
-
line2?: import("tailwind-
|
|
846
|
-
subContent?: import("tailwind-
|
|
841
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
842
|
+
svg?: import("tailwind-variants").ClassValue;
|
|
843
|
+
wrapper?: import("tailwind-variants").ClassValue;
|
|
844
|
+
line1?: import("tailwind-variants").ClassValue;
|
|
845
|
+
line2?: import("tailwind-variants").ClassValue;
|
|
846
|
+
subContent?: import("tailwind-variants").ClassValue;
|
|
847
847
|
};
|
|
848
848
|
};
|
|
849
849
|
} | {}>, {
|
|
850
850
|
[key: string]: {
|
|
851
|
-
[key: string]: import("tailwind-
|
|
852
|
-
svg?: import("tailwind-
|
|
853
|
-
wrapper?: import("tailwind-
|
|
854
|
-
line1?: import("tailwind-
|
|
855
|
-
line2?: import("tailwind-
|
|
856
|
-
subContent?: import("tailwind-
|
|
851
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
852
|
+
svg?: import("tailwind-variants").ClassValue;
|
|
853
|
+
wrapper?: import("tailwind-variants").ClassValue;
|
|
854
|
+
line1?: import("tailwind-variants").ClassValue;
|
|
855
|
+
line2?: import("tailwind-variants").ClassValue;
|
|
856
|
+
subContent?: import("tailwind-variants").ClassValue;
|
|
857
857
|
};
|
|
858
858
|
};
|
|
859
859
|
} | {}, {
|
|
@@ -870,12 +870,12 @@ declare const testimonialPlaceholder: import("tailwind-variants").TVReturnType<{
|
|
|
870
870
|
subContent: string;
|
|
871
871
|
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
872
872
|
[key: string]: {
|
|
873
|
-
[key: string]: import("tailwind-
|
|
874
|
-
svg?: import("tailwind-
|
|
875
|
-
wrapper?: import("tailwind-
|
|
876
|
-
line1?: import("tailwind-
|
|
877
|
-
line2?: import("tailwind-
|
|
878
|
-
subContent?: import("tailwind-
|
|
873
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
874
|
+
svg?: import("tailwind-variants").ClassValue;
|
|
875
|
+
wrapper?: import("tailwind-variants").ClassValue;
|
|
876
|
+
line1?: import("tailwind-variants").ClassValue;
|
|
877
|
+
line2?: import("tailwind-variants").ClassValue;
|
|
878
|
+
subContent?: import("tailwind-variants").ClassValue;
|
|
879
879
|
};
|
|
880
880
|
};
|
|
881
881
|
} | {}>, unknown, unknown, undefined>>;
|
|
@@ -1080,20 +1080,20 @@ declare const videoPlaceholder: import("tailwind-variants").TVReturnType<{
|
|
|
1080
1080
|
}>, unknown, unknown, undefined>>;
|
|
1081
1081
|
declare const widgetPlaceholder: import("tailwind-variants").TVReturnType<{
|
|
1082
1082
|
[key: string]: {
|
|
1083
|
-
[key: string]: import("tailwind-
|
|
1084
|
-
base?: import("tailwind-
|
|
1085
|
-
wrapper?: import("tailwind-
|
|
1086
|
-
hLine?: import("tailwind-
|
|
1087
|
-
vLine?: import("tailwind-
|
|
1083
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
1084
|
+
base?: import("tailwind-variants").ClassValue;
|
|
1085
|
+
wrapper?: import("tailwind-variants").ClassValue;
|
|
1086
|
+
hLine?: import("tailwind-variants").ClassValue;
|
|
1087
|
+
vLine?: import("tailwind-variants").ClassValue;
|
|
1088
1088
|
};
|
|
1089
1089
|
};
|
|
1090
1090
|
} | {
|
|
1091
1091
|
[x: string]: {
|
|
1092
|
-
[x: string]: import("tailwind-
|
|
1093
|
-
base?: import("tailwind-
|
|
1094
|
-
wrapper?: import("tailwind-
|
|
1095
|
-
hLine?: import("tailwind-
|
|
1096
|
-
vLine?: import("tailwind-
|
|
1092
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
1093
|
+
base?: import("tailwind-variants").ClassValue;
|
|
1094
|
+
wrapper?: import("tailwind-variants").ClassValue;
|
|
1095
|
+
hLine?: import("tailwind-variants").ClassValue;
|
|
1096
|
+
vLine?: import("tailwind-variants").ClassValue;
|
|
1097
1097
|
};
|
|
1098
1098
|
};
|
|
1099
1099
|
} | {}, {
|
|
@@ -1103,20 +1103,20 @@ declare const widgetPlaceholder: import("tailwind-variants").TVReturnType<{
|
|
|
1103
1103
|
vLine: string;
|
|
1104
1104
|
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
1105
1105
|
[key: string]: {
|
|
1106
|
-
[key: string]: import("tailwind-
|
|
1107
|
-
base?: import("tailwind-
|
|
1108
|
-
wrapper?: import("tailwind-
|
|
1109
|
-
hLine?: import("tailwind-
|
|
1110
|
-
vLine?: import("tailwind-
|
|
1106
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
1107
|
+
base?: import("tailwind-variants").ClassValue;
|
|
1108
|
+
wrapper?: import("tailwind-variants").ClassValue;
|
|
1109
|
+
hLine?: import("tailwind-variants").ClassValue;
|
|
1110
|
+
vLine?: import("tailwind-variants").ClassValue;
|
|
1111
1111
|
};
|
|
1112
1112
|
};
|
|
1113
1113
|
} | {}>, {
|
|
1114
1114
|
[key: string]: {
|
|
1115
|
-
[key: string]: import("tailwind-
|
|
1116
|
-
base?: import("tailwind-
|
|
1117
|
-
wrapper?: import("tailwind-
|
|
1118
|
-
hLine?: import("tailwind-
|
|
1119
|
-
vLine?: import("tailwind-
|
|
1115
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
1116
|
+
base?: import("tailwind-variants").ClassValue;
|
|
1117
|
+
wrapper?: import("tailwind-variants").ClassValue;
|
|
1118
|
+
hLine?: import("tailwind-variants").ClassValue;
|
|
1119
|
+
vLine?: import("tailwind-variants").ClassValue;
|
|
1120
1120
|
};
|
|
1121
1121
|
};
|
|
1122
1122
|
} | {}, {
|
|
@@ -1131,11 +1131,11 @@ declare const widgetPlaceholder: import("tailwind-variants").TVReturnType<{
|
|
|
1131
1131
|
vLine: string;
|
|
1132
1132
|
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
1133
1133
|
[key: string]: {
|
|
1134
|
-
[key: string]: import("tailwind-
|
|
1135
|
-
base?: import("tailwind-
|
|
1136
|
-
wrapper?: import("tailwind-
|
|
1137
|
-
hLine?: import("tailwind-
|
|
1138
|
-
vLine?: import("tailwind-
|
|
1134
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
1135
|
+
base?: import("tailwind-variants").ClassValue;
|
|
1136
|
+
wrapper?: import("tailwind-variants").ClassValue;
|
|
1137
|
+
hLine?: import("tailwind-variants").ClassValue;
|
|
1138
|
+
vLine?: import("tailwind-variants").ClassValue;
|
|
1139
1139
|
};
|
|
1140
1140
|
};
|
|
1141
1141
|
} | {}>, unknown, unknown, undefined>>;
|
package/dist/skeleton/theme.js
CHANGED
|
@@ -2,8 +2,8 @@ import { tv } from "tailwind-variants";
|
|
|
2
2
|
// card placeholder
|
|
3
3
|
const cardPlaceholder = tv({
|
|
4
4
|
slots: {
|
|
5
|
-
base: "p-4 rounded border border-gray-200 shadow animate-pulse md:p-6 dark:border-gray-700",
|
|
6
|
-
imageArea: "mb-4 flex h-48 items-center justify-center rounded bg-gray-300 dark:bg-gray-700",
|
|
5
|
+
base: "p-4 rounded-sm border border-gray-200 shadow-sm animate-pulse md:p-6 dark:border-gray-700",
|
|
6
|
+
imageArea: "mb-4 flex h-48 items-center justify-center rounded-sm bg-gray-300 dark:bg-gray-700",
|
|
7
7
|
imageIcon: "text-gray-200 dark:text-gray-600",
|
|
8
8
|
line: "rounded-full bg-gray-200 dark:bg-gray-700",
|
|
9
9
|
footerArea: "mt-4 flex items-center space-x-3 rtl:space-x-reverse"
|
|
@@ -22,7 +22,7 @@ const cardPlaceholder = tv({
|
|
|
22
22
|
const imagePlaceholder = tv({
|
|
23
23
|
slots: {
|
|
24
24
|
base: "space-y-8 animate-pulse md:space-y-0 md:space-x-8 rtl:space-x-reverse md:flex md:items-center",
|
|
25
|
-
image: "flex w-full items-center justify-center rounded bg-gray-300 sm:w-96 dark:bg-gray-700",
|
|
25
|
+
image: "flex w-full items-center justify-center rounded-sm bg-gray-300 sm:w-96 dark:bg-gray-700",
|
|
26
26
|
svg: "text-gray-200",
|
|
27
27
|
content: "w-full",
|
|
28
28
|
line: "rounded-full bg-gray-200 dark:bg-gray-700"
|
|
@@ -48,12 +48,12 @@ const imagePlaceholder = tv({
|
|
|
48
48
|
line: "rounded-none"
|
|
49
49
|
},
|
|
50
50
|
sm: {
|
|
51
|
-
image: "rounded-
|
|
52
|
-
line: "rounded-
|
|
51
|
+
image: "rounded-xs",
|
|
52
|
+
line: "rounded-xs"
|
|
53
53
|
},
|
|
54
54
|
md: {
|
|
55
|
-
image: "rounded",
|
|
56
|
-
line: "rounded"
|
|
55
|
+
image: "rounded-sm",
|
|
56
|
+
line: "rounded-sm"
|
|
57
57
|
},
|
|
58
58
|
lg: {
|
|
59
59
|
image: "rounded-lg",
|
|
@@ -69,7 +69,7 @@ const imagePlaceholder = tv({
|
|
|
69
69
|
// ListPlaceholder
|
|
70
70
|
const listPlaceholder = tv({
|
|
71
71
|
slots: {
|
|
72
|
-
base: "p-4 space-y-4 max-w-md rounded border border-gray-200 divide-y divide-gray-200 shadow animate-pulse dark:divide-gray-700 md:p-6 dark:border-gray-700",
|
|
72
|
+
base: "p-4 space-y-4 max-w-md rounded-sm border border-gray-200 divide-y divide-gray-200 shadow-sm animate-pulse dark:divide-gray-700 md:p-6 dark:border-gray-700",
|
|
73
73
|
item: "flex items-center justify-between",
|
|
74
74
|
itemContent: "",
|
|
75
75
|
itemTitle: "mb-2.5 h-2.5 w-24 rounded-full bg-gray-300 dark:bg-gray-600",
|
|
@@ -94,8 +94,8 @@ const listPlaceholder = tv({
|
|
|
94
94
|
},
|
|
95
95
|
rounded: {
|
|
96
96
|
none: { base: "rounded-none" },
|
|
97
|
-
sm: { base: "rounded-
|
|
98
|
-
md: { base: "rounded" },
|
|
97
|
+
sm: { base: "rounded-xs" },
|
|
98
|
+
md: { base: "rounded-sm" },
|
|
99
99
|
lg: { base: "rounded-lg" },
|
|
100
100
|
full: { base: "rounded-full p-8 md:p-16" }
|
|
101
101
|
}
|
|
@@ -171,7 +171,7 @@ const videoPlaceholder = tv({
|
|
|
171
171
|
// WidgetPlaceholder
|
|
172
172
|
const widgetPlaceholder = tv({
|
|
173
173
|
slots: {
|
|
174
|
-
base: "p-4 max-w-sm rounded border border-gray-200 shadow animate-pulse md:p-6 dark:border-gray-700",
|
|
174
|
+
base: "p-4 max-w-sm rounded-sm border border-gray-200 shadow-sm animate-pulse md:p-6 dark:border-gray-700",
|
|
175
175
|
wrapper: "mt-4 flex items-baseline space-x-6 rtl:space-x-reverse",
|
|
176
176
|
hLine: "rounded-full bg-gray-200 dark:bg-gray-700",
|
|
177
177
|
vLine: "w-full rounded-t-lg bg-gray-200 dark:bg-gray-700"
|
package/dist/table/theme.js
CHANGED
|
@@ -179,108 +179,108 @@ export const tablebodyrow = tv({
|
|
|
179
179
|
{
|
|
180
180
|
striped: true,
|
|
181
181
|
color: "default",
|
|
182
|
-
class: "odd:bg-white even:bg-gray-50 odd:
|
|
182
|
+
class: "odd:bg-white even:bg-gray-50 dark:odd:bg-gray-800 dark:even:bg-gray-700"
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
185
|
striped: true,
|
|
186
186
|
color: "primary",
|
|
187
|
-
class: "odd:bg-primary-500 even:bg-primary-600 odd:
|
|
187
|
+
class: "odd:bg-primary-500 even:bg-primary-600 dark:odd:bg-primary-500 dark:even:bg-primary-600"
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
190
|
striped: true,
|
|
191
191
|
color: "secondary",
|
|
192
|
-
class: "odd:bg-secondary-500 even:bg-secondary-600 odd:
|
|
192
|
+
class: "odd:bg-secondary-500 even:bg-secondary-600 dark:odd:bg-secondary-500 dark:even:bg-secondary-600"
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
195
|
striped: true,
|
|
196
196
|
color: "gray",
|
|
197
|
-
class: "odd:bg-gray-500 even:bg-gray-600 odd:
|
|
197
|
+
class: "odd:bg-gray-500 even:bg-gray-600 dark:odd:bg-gray-500 dark:even:bg-gray-600"
|
|
198
198
|
},
|
|
199
199
|
// default, primary, secondary, gray, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, rose
|
|
200
200
|
{
|
|
201
201
|
striped: true,
|
|
202
202
|
color: "red",
|
|
203
|
-
class: "odd:bg-red-500 even:bg-red-600 odd:
|
|
203
|
+
class: "odd:bg-red-500 even:bg-red-600 dark:odd:bg-red-500 dark:even:bg-red-600"
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
206
|
striped: true,
|
|
207
207
|
color: "orange",
|
|
208
|
-
class: "odd:bg-orange-500 even:bg-orange-600 odd:
|
|
208
|
+
class: "odd:bg-orange-500 even:bg-orange-600 dark:odd:bg-orange-500 dark:even:bg-orange-600"
|
|
209
209
|
},
|
|
210
210
|
{
|
|
211
211
|
striped: true,
|
|
212
212
|
color: "amber",
|
|
213
|
-
class: "odd:bg-amber-500 even:bg-amber-600 odd:
|
|
213
|
+
class: "odd:bg-amber-500 even:bg-amber-600 dark:odd:bg-amber-500 dark:even:bg-amber-600"
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
216
|
striped: true,
|
|
217
217
|
color: "yellow",
|
|
218
|
-
class: "odd:bg-yellow-500 even:bg-yellow-600 odd:
|
|
218
|
+
class: "odd:bg-yellow-500 even:bg-yellow-600 dark:odd:bg-yellow-500 dark:even:bg-yellow-600"
|
|
219
219
|
},
|
|
220
220
|
{
|
|
221
221
|
striped: true,
|
|
222
222
|
color: "lime",
|
|
223
|
-
class: "odd:bg-lime-500 even:bg-lime-600 odd:
|
|
223
|
+
class: "odd:bg-lime-500 even:bg-lime-600 dark:odd:bg-lime-500 dark:even:bg-lime-600"
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
226
|
striped: true,
|
|
227
227
|
color: "green",
|
|
228
|
-
class: "odd:bg-green-500 even:bg-green-600 odd:
|
|
228
|
+
class: "odd:bg-green-500 even:bg-green-600 dark:odd:bg-green-500 dark:even:bg-green-600"
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
231
|
striped: true,
|
|
232
232
|
color: "emerald",
|
|
233
|
-
class: "odd:bg-emerald-500 even:bg-emerald-600 odd:
|
|
233
|
+
class: "odd:bg-emerald-500 even:bg-emerald-600 dark:odd:bg-emerald-500 dark:even:bg-emerald-600"
|
|
234
234
|
},
|
|
235
235
|
{
|
|
236
236
|
striped: true,
|
|
237
237
|
color: "teal",
|
|
238
|
-
class: "odd:bg-teal-500 even:bg-teal-600 odd:
|
|
238
|
+
class: "odd:bg-teal-500 even:bg-teal-600 dark:odd:bg-teal-500 dark:even:bg-teal-600"
|
|
239
239
|
},
|
|
240
240
|
{
|
|
241
241
|
striped: true,
|
|
242
242
|
color: "cyan",
|
|
243
|
-
class: "odd:bg-cyan-500 even:bg-cyan-600 odd:
|
|
243
|
+
class: "odd:bg-cyan-500 even:bg-cyan-600 dark:odd:bg-cyan-500 dark:even:bg-cyan-600"
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
246
|
striped: true,
|
|
247
247
|
color: "sky",
|
|
248
|
-
class: "odd:bg-sky-500 even:bg-sky-600 odd:
|
|
248
|
+
class: "odd:bg-sky-500 even:bg-sky-600 dark:odd:bg-sky-500 dark:even:bg-sky-600"
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
251
|
striped: true,
|
|
252
252
|
color: "blue",
|
|
253
|
-
class: "odd:bg-blue-500 even:bg-blue-600 odd:
|
|
253
|
+
class: "odd:bg-blue-500 even:bg-blue-600 dark:odd:bg-blue-500 dark:even:bg-blue-600"
|
|
254
254
|
},
|
|
255
255
|
{
|
|
256
256
|
striped: true,
|
|
257
257
|
color: "indigo",
|
|
258
|
-
class: "odd:bg-indigo-500 even:bg-indigo-600 odd:
|
|
258
|
+
class: "odd:bg-indigo-500 even:bg-indigo-600 dark:odd:bg-indigo-500 dark:even:bg-indigo-600"
|
|
259
259
|
},
|
|
260
260
|
{
|
|
261
261
|
striped: true,
|
|
262
262
|
color: "violet",
|
|
263
|
-
class: "odd:bg-violet-500 even:bg-violet-600 odd:
|
|
263
|
+
class: "odd:bg-violet-500 even:bg-violet-600 dark:odd:bg-violet-500 dark:even:bg-violet-600"
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
266
|
striped: true,
|
|
267
267
|
color: "purple",
|
|
268
|
-
class: "odd:bg-purple-500 even:bg-purple-600 odd:
|
|
268
|
+
class: "odd:bg-purple-500 even:bg-purple-600 dark:odd:bg-purple-500 dark:even:bg-purple-600"
|
|
269
269
|
},
|
|
270
270
|
{
|
|
271
271
|
striped: true,
|
|
272
272
|
color: "fuchsia",
|
|
273
|
-
class: "odd:bg-fuchsia-500 even:bg-fuchsia-600 odd:
|
|
273
|
+
class: "odd:bg-fuchsia-500 even:bg-fuchsia-600 dark:odd:bg-fuchsia-500 dark:even:bg-fuchsia-600"
|
|
274
274
|
},
|
|
275
275
|
{
|
|
276
276
|
striped: true,
|
|
277
277
|
color: "pink",
|
|
278
|
-
class: "odd:bg-pink-500 even:bg-pink-600 odd:
|
|
278
|
+
class: "odd:bg-pink-500 even:bg-pink-600 dark:odd:bg-pink-500 dark:even:bg-pink-600"
|
|
279
279
|
},
|
|
280
280
|
{
|
|
281
281
|
striped: true,
|
|
282
282
|
color: "rose",
|
|
283
|
-
class: "odd:bg-rose-500 even:bg-rose-600 odd:
|
|
283
|
+
class: "odd:bg-rose-500 even:bg-rose-600 dark:odd:bg-rose-500 dark:even:bg-rose-600"
|
|
284
284
|
}
|
|
285
285
|
]
|
|
286
286
|
});
|
package/dist/tabs/theme.js
CHANGED
|
@@ -24,7 +24,7 @@ export const tabs = tv({
|
|
|
24
24
|
base: "-mb-px relative",
|
|
25
25
|
active: "text-primary-600 dark:text-primary-500 bg-transparent hover:border-light-surface-300 border-b-2 border-transparent",
|
|
26
26
|
inactive: "hover:text-light-surface-700 dark:hover:text-dark-surface-300 text-light-surface-500 dark:text-dark-surface-400 bg-transparent hover:border-light-surface-300 border-b-2 border-transparent",
|
|
27
|
-
slider: "absolute bottom-0 transition-all duration-200 border-b-2 border-primary-600 dark:border-primary-500
|
|
27
|
+
slider: "absolute bottom-0 transition-all duration-200 border-b-2 border-primary-600 dark:border-primary-500 m-0! z-10"
|
|
28
28
|
},
|
|
29
29
|
none: {
|
|
30
30
|
active: "dark:bg-dark-surface-800 dark:text-primary-500",
|
package/dist/theme/Theme.svelte
CHANGED
|
@@ -61,7 +61,6 @@
|
|
|
61
61
|
review,
|
|
62
62
|
scorerating,
|
|
63
63
|
sidebar,
|
|
64
|
-
sidebarbutton,
|
|
65
64
|
sidebarcta,
|
|
66
65
|
sitebarbrand,
|
|
67
66
|
sidebardropdownwrapper,
|
|
@@ -216,7 +215,6 @@
|
|
|
216
215
|
review,
|
|
217
216
|
scorerating,
|
|
218
217
|
sidebar,
|
|
219
|
-
sidebarbutton,
|
|
220
218
|
sidebarcta,
|
|
221
219
|
sitebarbrand,
|
|
222
220
|
sidebardropdownwrapper,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type Snippet } from "svelte";
|
|
2
|
-
|
|
2
|
+
interface Props {
|
|
3
3
|
children: Snippet;
|
|
4
4
|
theme?: Record<string, any>;
|
|
5
|
-
}
|
|
5
|
+
}
|
|
6
|
+
declare const Theme: import("svelte").Component<Props, {}, "">;
|
|
6
7
|
type Theme = ReturnType<typeof Theme>;
|
|
7
8
|
export default Theme;
|