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.
Files changed (167) hide show
  1. package/README.md +86 -35
  2. package/dist/_legacy/accordion/Accordion.svelte +2 -2
  3. package/dist/_legacy/accordion/Accordion.svelte.d.ts +1 -1
  4. package/dist/_legacy/avatar/Avatar.svelte +2 -2
  5. package/dist/_legacy/avatar/Placeholder.svelte +1 -1
  6. package/dist/_legacy/badge/Badge.svelte +1 -1
  7. package/dist/_legacy/banner/Banner.svelte +3 -3
  8. package/dist/_legacy/button-group/ButtonGroup.svelte +2 -2
  9. package/dist/_legacy/button-group/ButtonGroup.svelte.d.ts +1 -1
  10. package/dist/_legacy/buttons/Button.svelte +1 -1
  11. package/dist/_legacy/buttons/GradientButton.svelte +20 -20
  12. package/dist/_legacy/cards/Card.svelte +1 -1
  13. package/dist/_legacy/carousel/ControlButton.svelte +2 -2
  14. package/dist/_legacy/carousel/Slide.svelte +1 -1
  15. package/dist/_legacy/darkmode/DarkMode.svelte +2 -2
  16. package/dist/_legacy/darkmode/DarkMode.svelte.d.ts +1 -1
  17. package/dist/_legacy/drawer/Drawer.svelte +0 -2
  18. package/dist/_legacy/drawer/Drawer.svelte.d.ts +0 -2
  19. package/dist/_legacy/footer/Footer.svelte +1 -1
  20. package/dist/_legacy/forms/Fileupload.svelte +2 -2
  21. package/dist/_legacy/forms/Fileupload.svelte.d.ts +1 -1
  22. package/dist/_legacy/forms/FloatingLabelInput.svelte +4 -4
  23. package/dist/_legacy/forms/MultiSelect.svelte +1 -1
  24. package/dist/_legacy/forms/Radio.svelte +1 -1
  25. package/dist/_legacy/forms/Select.svelte +3 -3
  26. package/dist/_legacy/forms/Select.svelte.d.ts +1 -1
  27. package/dist/_legacy/forms/Textarea.svelte +2 -2
  28. package/dist/_legacy/forms/Textarea.svelte.d.ts +1 -1
  29. package/dist/_legacy/indicators/Indicator.svelte +1 -1
  30. package/dist/_legacy/list-group/ListgroupItem.svelte +2 -2
  31. package/dist/_legacy/list-group/ListgroupItem.svelte.d.ts +1 -1
  32. package/dist/_legacy/mega-menu/MegaMenu.svelte +1 -1
  33. package/dist/_legacy/modal/Modal.svelte +2 -2
  34. package/dist/_legacy/modal/Modal.svelte.d.ts +1 -1
  35. package/dist/_legacy/navbar/NavLi.svelte +1 -1
  36. package/dist/_legacy/pagination/PaginationItem.svelte +1 -1
  37. package/dist/_legacy/popover/Popover.svelte +1 -1
  38. package/dist/_legacy/rating/AdvancedRating.svelte +4 -4
  39. package/dist/_legacy/rating/AdvancedRating.svelte.d.ts +2 -2
  40. package/dist/_legacy/rating/Review.svelte +1 -1
  41. package/dist/_legacy/rating/ScoreRating.svelte +6 -6
  42. package/dist/_legacy/rating/ScoreRating.svelte.d.ts +2 -2
  43. package/dist/_legacy/sidebar/SidebarCta.svelte +2 -2
  44. package/dist/_legacy/sidebar/SidebarCta.svelte.d.ts +1 -1
  45. package/dist/_legacy/sidebar/SidebarWrapper.svelte +2 -2
  46. package/dist/_legacy/sidebar/SidebarWrapper.svelte.d.ts +1 -1
  47. package/dist/_legacy/skeleton/CardPlaceholder.svelte +3 -3
  48. package/dist/_legacy/skeleton/CardPlaceholder.svelte.d.ts +1 -1
  49. package/dist/_legacy/skeleton/ImagePlaceholder.svelte +1 -1
  50. package/dist/_legacy/skeleton/ListPlaceholder.svelte +2 -2
  51. package/dist/_legacy/skeleton/ListPlaceholder.svelte.d.ts +1 -1
  52. package/dist/_legacy/skeleton/WidgetPlaceholder.svelte +2 -2
  53. package/dist/_legacy/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
  54. package/dist/_legacy/speed-dial/SpeedDial.svelte +2 -2
  55. package/dist/_legacy/speed-dial/SpeedDialButton.svelte +2 -2
  56. package/dist/_legacy/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
  57. package/dist/_legacy/steps/StepIndicator.svelte +4 -4
  58. package/dist/_legacy/table/TableBodyRow.svelte +6 -6
  59. package/dist/_legacy/tabs/Tabs.svelte +2 -2
  60. package/dist/_legacy/timeline/ActivityItem.svelte +2 -2
  61. package/dist/_legacy/timeline/ActivityItem.svelte.d.ts +1 -1
  62. package/dist/_legacy/toast/Toast.svelte +3 -3
  63. package/dist/_legacy/toast/Toast.svelte.d.ts +1 -1
  64. package/dist/_legacy/toolbar/ToolbarButton.svelte +3 -3
  65. package/dist/_legacy/toolbar/ToolbarGroup.svelte +2 -2
  66. package/dist/_legacy/toolbar/ToolbarGroup.svelte.d.ts +1 -1
  67. package/dist/_legacy/typography/Mark.svelte +2 -2
  68. package/dist/_legacy/typography/Mark.svelte.d.ts +1 -1
  69. package/dist/_legacy/typography/Span.svelte +2 -2
  70. package/dist/_legacy/typography/Span.svelte.d.ts +1 -1
  71. package/dist/_legacy/utils/backdrop.js +1 -1
  72. package/dist/accordion/theme.js +1 -1
  73. package/dist/alert/Alert.svelte +2 -2
  74. package/dist/alert/Alert.svelte.d.ts +1 -1
  75. package/dist/avatar/Avatar.svelte +44 -6
  76. package/dist/avatar/Avatar.svelte.d.ts +3 -1
  77. package/dist/avatar/index.d.ts +2 -2
  78. package/dist/avatar/index.js +2 -2
  79. package/dist/avatar/theme.d.ts +144 -3
  80. package/dist/avatar/theme.js +35 -5
  81. package/dist/avatar/type.d.ts +2 -0
  82. package/dist/badge/Badge.svelte +2 -2
  83. package/dist/badge/Badge.svelte.d.ts +1 -1
  84. package/dist/badge/theme.js +1 -1
  85. package/dist/banner/theme.js +3 -3
  86. package/dist/bottom-navigation/theme.d.ts +15 -15
  87. package/dist/buttongroup/theme.d.ts +2 -2
  88. package/dist/buttongroup/theme.js +1 -1
  89. package/dist/buttons/theme.js +46 -46
  90. package/dist/cards/theme.js +2 -2
  91. package/dist/darkmode/theme.d.ts +1 -1
  92. package/dist/darkmode/theme.js +1 -1
  93. package/dist/device-mockups/theme.d.ts +230 -230
  94. package/dist/drawer/theme.d.ts +20 -20
  95. package/dist/drawer/theme.js +1 -1
  96. package/dist/dropdown/Dropdown.svelte +12 -1
  97. package/dist/dropdown/DropdownLi.svelte +9 -3
  98. package/dist/dropdown/DropdownLi.svelte.d.ts +1 -0
  99. package/dist/dropdown/theme.d.ts +34 -34
  100. package/dist/dropdown/theme.js +7 -7
  101. package/dist/dropdown/type.d.ts +2 -0
  102. package/dist/footer/theme.d.ts +55 -55
  103. package/dist/footer/theme.js +3 -3
  104. package/dist/forms/checkbox/Checkbox.svelte +34 -5
  105. package/dist/forms/checkbox/theme.js +27 -25
  106. package/dist/forms/checkbox/type.d.ts +1 -0
  107. package/dist/forms/dropzone/Dropzone.svelte.d.ts +9 -7
  108. package/dist/forms/fileupload/theme.js +1 -1
  109. package/dist/forms/floating-label-input/theme.js +22 -22
  110. package/dist/forms/input/theme.js +23 -23
  111. package/dist/forms/input-addon/InputAddon.svelte +1 -1
  112. package/dist/forms/label/Label.svelte +2 -2
  113. package/dist/forms/label/theme.d.ts +28 -7
  114. package/dist/forms/label/theme.js +4 -1
  115. package/dist/forms/label/type.d.ts +2 -1
  116. package/dist/forms/radio/Radio.svelte +4 -5
  117. package/dist/forms/radio/theme.d.ts +0 -56
  118. package/dist/forms/radio/theme.js +23 -27
  119. package/dist/forms/radio/type.d.ts +1 -0
  120. package/dist/forms/select/theme.d.ts +2 -2
  121. package/dist/forms/select/theme.js +4 -4
  122. package/dist/forms/textarea/theme.js +1 -1
  123. package/dist/forms/toggle/theme.js +23 -23
  124. package/dist/gallery/theme.d.ts +15 -15
  125. package/dist/indicator/theme.js +2 -2
  126. package/dist/list-group/theme.js +1 -1
  127. package/dist/mega-menu/theme.js +1 -1
  128. package/dist/modal/theme.js +2 -2
  129. package/dist/nav/Navbar.svelte +13 -11
  130. package/dist/nav/theme.d.ts +21 -21
  131. package/dist/nav/theme.js +24 -24
  132. package/dist/pagination/theme.js +1 -1
  133. package/dist/rating/Review.svelte +1 -1
  134. package/dist/rating/ScoreRating.svelte +2 -2
  135. package/dist/rating/theme.d.ts +125 -125
  136. package/dist/rating/theme.js +5 -5
  137. package/dist/sidebar/Sidebar.svelte +9 -54
  138. package/dist/sidebar/Sidebar.svelte.d.ts +0 -7
  139. package/dist/sidebar/SidebarGroup.svelte +8 -5
  140. package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -2
  141. package/dist/sidebar/SidebarItem.svelte +1 -1
  142. package/dist/sidebar/index.d.ts +3 -4
  143. package/dist/sidebar/index.js +2 -3
  144. package/dist/sidebar/theme.d.ts +293 -178
  145. package/dist/sidebar/theme.js +28 -29
  146. package/dist/sidebar/type.d.ts +4 -15
  147. package/dist/skeleton/theme.d.ts +55 -55
  148. package/dist/skeleton/theme.js +11 -11
  149. package/dist/table/theme.js +21 -21
  150. package/dist/tabs/theme.js +1 -1
  151. package/dist/theme/Theme.svelte +0 -2
  152. package/dist/theme/Theme.svelte.d.ts +3 -2
  153. package/dist/timeline/theme.d.ts +95 -95
  154. package/dist/timeline/theme.js +1 -1
  155. package/dist/toast/theme.js +1 -1
  156. package/dist/toolbar/ToolbarButton.svelte +3 -3
  157. package/dist/toolbar/theme.d.ts +2 -2
  158. package/dist/toolbar/theme.js +3 -3
  159. package/dist/typography/img/theme.js +5 -5
  160. package/dist/typography/mark/theme.d.ts +1 -1
  161. package/dist/typography/mark/theme.js +1 -1
  162. package/dist/typography/span/theme.js +12 -12
  163. package/dist/utils/index.d.ts +2 -2
  164. package/dist/utils/index.js +3 -3
  165. package/package.json +641 -645
  166. package/dist/sidebar/SidebarButton.svelte +0 -21
  167. package/dist/sidebar/SidebarButton.svelte.d.ts +0 -10
@@ -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-50 w-64 transition-transform bg-gray-50 dark:bg-gray-800",
5
- active: "flex items-center text-base font-normal text-gray-900 bg-gray-200 dark:bg-gray-700 rounded dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700",
6
- nonactive: "flex items-center text-base font-normal text-gray-900 rounded dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700",
7
- div: "overflow-y-auto h-full px-3 py-4 overflow-y-auto bg-gray-50 dark:bg-gray-800",
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
- sm: { base: "sm:block" },
22
- md: { base: "md:block" },
23
- lg: { base: "lg:block" },
24
- xl: { base: "xl:block" },
25
- "2xl": { base: "2xl:block" }
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 sidebarbutton = tv({
33
- base: "inline-flex items-center p-2 mt-2 ms-3 text-sm text-gray-500 rounded-lg hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600",
25
+ export const sidebargroup = tv({
26
+ slots: {
27
+ base: "flex flex-row gap-2"
28
+ },
34
29
  variants: {
35
30
  breakpoint: {
36
- sm: "sm:hidden",
37
- md: "md:hidden",
38
- lg: "lg:hidden",
39
- xl: "xl:hidden",
40
- "2xl": "2xl:hidden"
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-6 bg-primary-50 rounded-lg dark:bg-primary-900",
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 ps-2.5 mb-5",
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 w-full text-base font-normal text-gray-900 rounded transition duration-75 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700",
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-gray-800 dark:text-white",
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
  });
@@ -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, SidebarButtonProps, SidebarCtaProps, SidebarBrandProps, BreakpointType, PosisionType };
74
+ export type { SidebarProps, SidebarDropdownWrapperProps, SidebarGroupProps, SidebarItemProps, SidebarCtxType, SidebarCtaProps, SidebarBrandProps, BreakpointType, PosisionType };
@@ -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-merge").ClassNameValue | {
816
- svg?: import("tailwind-merge").ClassNameValue;
817
- wrapper?: import("tailwind-merge").ClassNameValue;
818
- line1?: import("tailwind-merge").ClassNameValue;
819
- line2?: import("tailwind-merge").ClassNameValue;
820
- subContent?: import("tailwind-merge").ClassNameValue;
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-merge").ClassNameValue | {
826
- svg?: import("tailwind-merge").ClassNameValue;
827
- wrapper?: import("tailwind-merge").ClassNameValue;
828
- line1?: import("tailwind-merge").ClassNameValue;
829
- line2?: import("tailwind-merge").ClassNameValue;
830
- subContent?: import("tailwind-merge").ClassNameValue;
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-merge").ClassNameValue | {
842
- svg?: import("tailwind-merge").ClassNameValue;
843
- wrapper?: import("tailwind-merge").ClassNameValue;
844
- line1?: import("tailwind-merge").ClassNameValue;
845
- line2?: import("tailwind-merge").ClassNameValue;
846
- subContent?: import("tailwind-merge").ClassNameValue;
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-merge").ClassNameValue | {
852
- svg?: import("tailwind-merge").ClassNameValue;
853
- wrapper?: import("tailwind-merge").ClassNameValue;
854
- line1?: import("tailwind-merge").ClassNameValue;
855
- line2?: import("tailwind-merge").ClassNameValue;
856
- subContent?: import("tailwind-merge").ClassNameValue;
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-merge").ClassNameValue | {
874
- svg?: import("tailwind-merge").ClassNameValue;
875
- wrapper?: import("tailwind-merge").ClassNameValue;
876
- line1?: import("tailwind-merge").ClassNameValue;
877
- line2?: import("tailwind-merge").ClassNameValue;
878
- subContent?: import("tailwind-merge").ClassNameValue;
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-merge").ClassNameValue | {
1084
- base?: import("tailwind-merge").ClassNameValue;
1085
- wrapper?: import("tailwind-merge").ClassNameValue;
1086
- hLine?: import("tailwind-merge").ClassNameValue;
1087
- vLine?: import("tailwind-merge").ClassNameValue;
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-merge").ClassNameValue | {
1093
- base?: import("tailwind-merge").ClassNameValue;
1094
- wrapper?: import("tailwind-merge").ClassNameValue;
1095
- hLine?: import("tailwind-merge").ClassNameValue;
1096
- vLine?: import("tailwind-merge").ClassNameValue;
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-merge").ClassNameValue | {
1107
- base?: import("tailwind-merge").ClassNameValue;
1108
- wrapper?: import("tailwind-merge").ClassNameValue;
1109
- hLine?: import("tailwind-merge").ClassNameValue;
1110
- vLine?: import("tailwind-merge").ClassNameValue;
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-merge").ClassNameValue | {
1116
- base?: import("tailwind-merge").ClassNameValue;
1117
- wrapper?: import("tailwind-merge").ClassNameValue;
1118
- hLine?: import("tailwind-merge").ClassNameValue;
1119
- vLine?: import("tailwind-merge").ClassNameValue;
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-merge").ClassNameValue | {
1135
- base?: import("tailwind-merge").ClassNameValue;
1136
- wrapper?: import("tailwind-merge").ClassNameValue;
1137
- hLine?: import("tailwind-merge").ClassNameValue;
1138
- vLine?: import("tailwind-merge").ClassNameValue;
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>>;
@@ -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-sm",
52
- line: "rounded-sm"
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-sm" },
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"
@@ -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:dark:bg-gray-800 even:dark:bg-gray-700"
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:dark:bg-primary-500 even:dark:bg-primary-600"
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:dark:bg-secondary-500 even:dark:bg-secondary-600"
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:dark:bg-gray-500 even:dark:bg-gray-600"
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:dark:bg-red-500 even:dark:bg-red-600"
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:dark:bg-orange-500 even:dark:bg-orange-600"
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:dark:bg-amber-500 even:dark:bg-amber-600"
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:dark:bg-yellow-500 even:dark:bg-yellow-600"
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:dark:bg-lime-500 even:dark:bg-lime-600"
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:dark:bg-green-500 even:dark:bg-green-600"
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:dark:bg-emerald-500 even:dark:bg-emerald-600"
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:dark:bg-teal-500 even:dark:bg-teal-600"
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:dark:bg-cyan-500 even:dark:bg-cyan-600"
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:dark:bg-sky-500 even:dark:bg-sky-600"
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:dark:bg-blue-500 even:dark:bg-blue-600"
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:dark:bg-indigo-500 even:dark:bg-indigo-600"
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:dark:bg-violet-500 even:dark:bg-violet-600"
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:dark:bg-purple-500 even:dark:bg-purple-600"
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:dark:bg-fuchsia-500 even:dark:bg-fuchsia-600"
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:dark:bg-pink-500 even:dark:bg-pink-600"
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:dark:bg-rose-500 even:dark:bg-rose-600"
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
  });
@@ -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 !m-0 z-10"
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",
@@ -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
- declare const Theme: import("svelte").Component<{
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;