tera-system-ui 0.0.38 → 0.0.40

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 (79) hide show
  1. package/dist/components/avatar/Avatar.svelte.d.ts +0 -1
  2. package/dist/components/brand-logo/BrandLogo.svelte.d.ts +0 -1
  3. package/dist/components/button/Button.svelte.d.ts +0 -1
  4. package/dist/components/combobox/Combobox.svelte.d.ts +0 -1
  5. package/dist/components/command/components/Command.svelte +2 -2
  6. package/dist/components/command/components/Command.svelte.d.ts +1 -2
  7. package/dist/components/command/components/CommandEmpty.svelte +2 -2
  8. package/dist/components/command/components/CommandEmpty.svelte.d.ts +1 -2
  9. package/dist/components/command/components/CommandGroup.svelte +3 -3
  10. package/dist/components/command/components/CommandGroup.svelte.d.ts +1 -2
  11. package/dist/components/command/components/CommandInput.svelte +4 -4
  12. package/dist/components/command/components/CommandInput.svelte.d.ts +1 -2
  13. package/dist/components/command/components/CommandItem.svelte +3 -3
  14. package/dist/components/command/components/CommandItem.svelte.d.ts +1 -2
  15. package/dist/components/command/components/CommandList.svelte +3 -3
  16. package/dist/components/command/components/CommandList.svelte.d.ts +3 -4
  17. package/dist/components/command/components/CommandLoading.svelte +1 -1
  18. package/dist/components/command/components/CommandLoading.svelte.d.ts +6 -7
  19. package/dist/components/command/components/CommandSeparator.svelte +2 -2
  20. package/dist/components/command/components/CommandSeparator.svelte.d.ts +1 -2
  21. package/dist/components/dialog/Dialog.astro +1 -1
  22. package/dist/components/dialog/Dialog.js +1 -1
  23. package/dist/components/dialog/Dialog.svelte +1 -1
  24. package/dist/components/dialog/Dialog.svelte.d.ts +0 -1
  25. package/dist/components/dialog/dialog.scss +86 -26
  26. package/dist/components/dropdown-menu/components/DropdownMenu.svelte.d.ts +0 -1
  27. package/dist/components/dropdown-menu/components/DropdownMenuGroup.svelte.d.ts +3 -4
  28. package/dist/components/dropdown-menu/components/DropdownMenuHeader.svelte.d.ts +3 -4
  29. package/dist/components/dropdown-menu/components/DropdownMenuItem.svelte +1 -1
  30. package/dist/components/dropdown-menu/components/DropdownMenuItem.svelte.d.ts +0 -1
  31. package/dist/components/dropdown-menu/components/DropdownMenuSeparator.svelte.d.ts +3 -4
  32. package/dist/components/header/Header.svelte +1 -1
  33. package/dist/components/header/Header.svelte.d.ts +0 -1
  34. package/dist/components/icons/IconArrowBigRightFilled.svelte.d.ts +0 -1
  35. package/dist/components/icons/IconBook.svelte.d.ts +0 -1
  36. package/dist/components/icons/IconBookmarkPlus.svelte.d.ts +0 -1
  37. package/dist/components/icons/IconCalculator.svelte.d.ts +0 -1
  38. package/dist/components/icons/IconCheck.svelte.d.ts +0 -1
  39. package/dist/components/icons/IconChevronDown.svelte.d.ts +0 -1
  40. package/dist/components/icons/IconCopy.svelte.d.ts +0 -1
  41. package/dist/components/icons/IconCopyCheckFilled.svelte.d.ts +0 -1
  42. package/dist/components/icons/IconHamburger.svelte.d.ts +0 -1
  43. package/dist/components/icons/IconLanguage.svelte.d.ts +0 -1
  44. package/dist/components/icons/IconLoader2.svelte.d.ts +0 -1
  45. package/dist/components/icons/IconLogout.svelte.d.ts +0 -1
  46. package/dist/components/icons/IconMoon.svelte.d.ts +0 -1
  47. package/dist/components/icons/IconPointFilled.svelte.d.ts +0 -1
  48. package/dist/components/icons/IconSearch.svelte.d.ts +0 -1
  49. package/dist/components/icons/IconSettings.svelte.d.ts +0 -1
  50. package/dist/components/icons/IconSun.svelte.d.ts +0 -1
  51. package/dist/components/icons/IconSwitchHorizontal.svelte.d.ts +0 -1
  52. package/dist/components/icons/IconSwitchVertical.svelte.d.ts +0 -1
  53. package/dist/components/icons/IconTransform.svelte.d.ts +0 -1
  54. package/dist/components/icons/IconX.svelte.d.ts +0 -1
  55. package/dist/components/input/Input.svelte.d.ts +0 -1
  56. package/dist/components/language-picker-button/LanguagePickerButton.svelte +1 -1
  57. package/dist/components/language-picker-button/LanguagePickerButton.svelte.d.ts +3 -5
  58. package/dist/components/light-dark-toggle/LightDarkToggle.svelte.d.ts +0 -1
  59. package/dist/components/popover/Popover.svelte.d.ts +0 -1
  60. package/dist/components/popover-responsive/PopoverResponsive.svelte.d.ts +0 -1
  61. package/dist/components/side-navigation/SideNavigation.svelte +2 -2
  62. package/dist/components/side-navigation/SideNavigation.svelte.d.ts +0 -1
  63. package/dist/components/side-navigation/SideNavigationItem.svelte.d.ts +4 -5
  64. package/dist/components/side-navigation/SideNavigationLayout.svelte.d.ts +2 -3
  65. package/dist/components/slider/Slider.svelte.d.ts +0 -1
  66. package/dist/components/star-rating/StarRating.js +3 -3
  67. package/dist/components/star-rating/StarRating.svelte +1 -2
  68. package/dist/components/star-rating/StarRating.svelte.d.ts +0 -1
  69. package/dist/components/tabs/components/Tabs.svelte.d.ts +0 -1
  70. package/dist/components/tabs/components/TabsContent.svelte.d.ts +4 -5
  71. package/dist/components/tabs/components/TabsItem.svelte.d.ts +4 -5
  72. package/dist/components/tabs/components/TabsList.svelte.d.ts +3 -4
  73. package/dist/components/tera-ui-context/TeraUiContext.svelte.d.ts +0 -1
  74. package/dist/components/text-area/TextArea.svelte.d.ts +0 -1
  75. package/dist/components/user-avatar-with-menu/UserAvatarWithMenu.svelte +1 -1
  76. package/dist/components/user-avatar-with-menu/UserAvatarWithMenu.svelte.d.ts +0 -1
  77. package/dist/themes/tera-ui-base.css +8 -1
  78. package/dist/themes/tw-preset.cjs +1 -1
  79. package/package.json +37 -37
@@ -1,4 +1,3 @@
1
1
  import { type AvatarProps } from "./Avatar";
2
2
  declare const Avatar: import("svelte").Component<AvatarProps, {}, "ref">;
3
- type Avatar = ReturnType<typeof Avatar>;
4
3
  export default Avatar;
@@ -1,4 +1,3 @@
1
1
  import { type BrandLogoProps } from "./BrandLogo";
2
2
  declare const BrandLogo: import("svelte").Component<BrandLogoProps, {}, "">;
3
- type BrandLogo = ReturnType<typeof BrandLogo>;
4
3
  export default BrandLogo;
@@ -2,5 +2,4 @@ import { type ButtonProps } from "./Button";
2
2
  declare const Button: import("svelte").Component<ButtonProps & {
3
3
  ref: HTMLButtonElement;
4
4
  }, {}, "ref">;
5
- type Button = ReturnType<typeof Button>;
6
5
  export default Button;
@@ -1,4 +1,3 @@
1
1
  import { type ComboboxProps } from "./Combobox";
2
2
  declare const Combobox: import("svelte").Component<ComboboxProps, {}, "">;
3
- type Combobox = ReturnType<typeof Combobox>;
4
3
  export default Combobox;
@@ -1,8 +1,8 @@
1
1
  <script lang="ts">
2
2
  import {addEventListener, executeCallbacks, srOnlyStyles, styleToString} from '../../../internal';
3
3
 
4
- import {createCommand} from '../command';
5
- import type {CommandProps} from '../types';
4
+ import {createCommand} from '../command.js';
5
+ import type {CommandProps} from '../types.js';
6
6
 
7
7
  let {
8
8
  children,
@@ -1,4 +1,3 @@
1
- import type { CommandProps } from '../types';
1
+ import type { CommandProps } from '../types.js';
2
2
  declare const Command: import("svelte").Component<CommandProps, {}, "">;
3
- type Command = ReturnType<typeof Command>;
4
3
  export default Command;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
- import {getState} from '../command';
3
- import type {EmptyProps} from '../types';
2
+ import {getState} from '../command.js';
3
+ import type {EmptyProps} from '../types.js';
4
4
  import {derived} from "svelte/store";
5
5
  import {onMount} from "svelte";
6
6
 
@@ -1,4 +1,3 @@
1
- import type { EmptyProps } from '../types';
1
+ import type { EmptyProps } from '../types.js';
2
2
  declare const CommandEmpty: import("svelte").Component<EmptyProps, {}, "">;
3
- type CommandEmpty = ReturnType<typeof CommandEmpty>;
4
3
  export default CommandEmpty;
@@ -1,8 +1,8 @@
1
1
  <script lang="ts">
2
- import {generateId} from '../../../internal';
2
+ import {generateId} from '../../../internal/index.js';
3
3
  import {derived} from 'svelte/store';
4
- import {createGroup, getCtx, getState, VALUE_ATTR} from '../command';
5
- import type {GroupProps} from '../types';
4
+ import {createGroup, getCtx, getState, VALUE_ATTR} from '../command.js';
5
+ import type {GroupProps} from '../types.js';
6
6
  import {onMount} from 'svelte';
7
7
 
8
8
  type $$Props = GroupProps;
@@ -1,4 +1,3 @@
1
- import type { GroupProps } from '../types';
1
+ import type { GroupProps } from '../types.js';
2
2
  declare const CommandGroup: import("svelte").Component<GroupProps, {}, "">;
3
- type CommandGroup = ReturnType<typeof CommandGroup>;
4
3
  export default CommandGroup;
@@ -1,9 +1,9 @@
1
1
  <script lang="ts">
2
2
  import {derived, get} from 'svelte/store';
3
- import {getCtx, getState, ITEM_SELECTOR, VALUE_ATTR} from '../command';
4
- import {isBrowser} from '../../../internal';
5
- import type {InputEvents, InputProps} from '../types';
6
- import {sleep} from '../../../internal/helpers/sleep';
3
+ import {getCtx, getState, ITEM_SELECTOR, VALUE_ATTR} from '../command.js';
4
+ import {isBrowser} from '../../../internal/index.js';
5
+ import type {InputEvents, InputProps} from '../types.js';
6
+ import {sleep} from '../../../internal/helpers/sleep.js';
7
7
  import {styles} from "../../input/Input";
8
8
  import {IconSearch} from "../../..";
9
9
 
@@ -1,8 +1,7 @@
1
1
  declare const CommandInput: import("svelte").Component<{
2
2
  el?: HTMLInputElement;
3
3
  asChild?: boolean;
4
- } & import("svelte/elements").HTMLInputAttributes & {
4
+ } & import("svelte/elements.js").HTMLInputAttributes & {
5
5
  el?: HTMLElement;
6
6
  }, {}, "value">;
7
- type CommandInput = ReturnType<typeof CommandInput>;
8
7
  export default CommandInput;
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
- import {addEventListener, executeCallbacks, generateId, isUndefined} from '../../../internal';
3
- import {getCtx, getGroup, getState, VALUE_ATTR} from '../command';
4
- import type {ItemProps} from '../types';
2
+ import {addEventListener, executeCallbacks, generateId, isUndefined} from '../../../internal/index.js';
3
+ import {getCtx, getGroup, getState, VALUE_ATTR} from '../command.js';
4
+ import type {ItemProps} from '../types.js';
5
5
  import {derived} from 'svelte/store';
6
6
  import {onMount} from "svelte";
7
7
 
@@ -1,4 +1,3 @@
1
- import type { ItemProps } from '../types';
1
+ import type { ItemProps } from '../types.js';
2
2
  declare const CommandItem: import("svelte").Component<ItemProps, {}, "">;
3
- type CommandItem = ReturnType<typeof CommandItem>;
4
3
  export default CommandItem;
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
- import {isHTMLElement} from '../../../internal';
3
- import {getCtx, getState} from '../command';
4
- import type {ListProps} from '../types';
2
+ import {isHTMLElement} from '../../../internal/index.js';
3
+ import {getCtx, getState} from '../command.js';
4
+ import type {ListProps} from '../types.js';
5
5
 
6
6
  const {ids} = getCtx();
7
7
  const commandState = getState();
@@ -1,6 +1,5 @@
1
1
  declare const CommandList: import("svelte").Component<{
2
- children: any;
3
- el: any;
4
- } & Record<string, any>, {}, "">;
5
- type CommandList = ReturnType<typeof CommandList>;
2
+ children: unknown;
3
+ el: unknown;
4
+ } & Record<string, unknown>, {}, "">;
6
5
  export default CommandList;
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import type { LoadingProps } from '../types';
2
+ import type { LoadingProps } from '../types.js';
3
3
  import type {Snippet} from "svelte";
4
4
 
5
5
  type $$Props = LoadingProps;
@@ -1,9 +1,8 @@
1
- type $$Props = LoadingProps;
2
- type $$ComponentProps = $$Props & {
3
- childrenWithProps: Snippet<[any]>;
4
- };
5
- import type { LoadingProps } from '../types';
6
1
  import type { Snippet } from "svelte";
7
- declare const CommandLoading: import("svelte").Component<$$ComponentProps, {}, "">;
8
- type CommandLoading = ReturnType<typeof CommandLoading>;
2
+ declare const CommandLoading: import("svelte").Component<{
3
+ progress?: number;
4
+ asChild?: boolean;
5
+ } & import("../../../internal/types.js").HTMLDivAttributes & {
6
+ childrenWithProps: Snippet<[any]>;
7
+ }, {}, "">;
9
8
  export default CommandLoading;
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { derived } from 'svelte/store';
3
- import { getState } from '../command';
4
- import type { SeparatorProps } from '../types';
3
+ import { getState } from '../command.js';
4
+ import type { SeparatorProps } from '../types.js';
5
5
 
6
6
  type $$Props = SeparatorProps;
7
7
 
@@ -1,4 +1,3 @@
1
- import type { SeparatorProps } from '../types';
1
+ import type { SeparatorProps } from '../types.js';
2
2
  declare const CommandSeparator: import("svelte").Component<SeparatorProps, {}, "">;
3
- type CommandSeparator = ReturnType<typeof CommandSeparator>;
4
3
  export default CommandSeparator;
@@ -39,7 +39,7 @@ const hasFooterSlot = !!Astro.slots["footer"];
39
39
  icon={true}
40
40
  client:idle
41
41
  variant="ghost"
42
- size="sm">
42
+ size="md">
43
43
  <IconX/>
44
44
  </Button>
45
45
  </form>
@@ -4,7 +4,7 @@ export const styles = tv({
4
4
  base: '',
5
5
  dialog: 'bg-transparent text-inherit',
6
6
  dialogContainer: 'py-4 rounded-container',
7
- header: 'font-bold px-4 mb-2',
7
+ header: 'font-semibold px-4 mb-2',
8
8
  body: 'px-4',
9
9
  footer: 'mt-3 px-4 flex items-center justify-end gap-2.5'
10
10
  },
@@ -84,7 +84,7 @@
84
84
  <form method="dialog">
85
85
  <Button class="absolute right-1 top-1 [&>svg]:opacity-45 [&>svg]:hover:opacity-90 z-10" icon
86
86
  variant="ghost"
87
- size="sm">
87
+ size="md">
88
88
  <IconX/>
89
89
  </Button>
90
90
  </form>
@@ -1,5 +1,4 @@
1
1
  import { type DialogProps } from "./Dialog";
2
2
  import './dialog.scss';
3
3
  declare const Dialog: import("svelte").Component<DialogProps, {}, "ref" | "open">;
4
- type Dialog = ReturnType<typeof Dialog>;
5
4
  export default Dialog;
@@ -23,6 +23,7 @@ dialog {
23
23
  width: 24rem;
24
24
  max-width: min(calc(100vw - 1rem), 24rem);
25
25
  }
26
+
26
27
  &[size="sm"] {
27
28
  width: 30rem;
28
29
  max-width: min(calc(100vw - 1rem), 30rem);
@@ -47,11 +48,15 @@ dialog {
47
48
  }
48
49
 
49
50
  dialog[open] {
50
- //@apply grid place-content-center grid-cols-1;
51
51
  @apply inline-flex;
52
52
  }
53
53
 
54
54
  dialog {
55
+ --transition-duration: 0.2s;
56
+ transform: translateY(0px);
57
+
58
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
59
+
55
60
  &[data-position="top"] {
56
61
  position: fixed;
57
62
  top: 0;
@@ -60,57 +65,112 @@ dialog {
60
65
  margin: 0;
61
66
  }
62
67
 
63
-
64
- --transition-duration: 0.2s;
65
- transform: translateY(0px);
66
-
67
68
  &, &::backdrop {
68
- transition: display var(--transition-duration) allow-discrete, overlay var(--transition-duration) allow-discrete, opacity var(--transition-duration), transform var(--transition-duration) allow-discrete,;
69
+ transition: opacity var(--transition-duration) ease-out,
70
+ transform var(--transition-duration) ease-out,
71
+ display var(--transition-duration) allow-discrete,
72
+ overlay var(--transition-duration) allow-discrete,
73
+ box-shadow var(--transition-duration) ease-out;
74
+
69
75
  opacity: 0;
76
+
77
+ will-change: transform, opacity, box-shadow;
78
+ backface-visibility: hidden;
79
+ -webkit-backface-visibility: hidden;
70
80
  }
71
81
 
82
+
72
83
  &[open] {
84
+ animation: slide-in var(--transition-duration) ease-out;
73
85
  opacity: 1;
86
+ box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24), 0 8px 16px rgba(0, 0, 0, 0.12); /* Ant Design-inspired shadow */
74
87
  &::backdrop {
75
88
  opacity: 1;
76
89
  }
90
+
91
+ &[data-position="top"] {
92
+ animation: slide-in-top var(--transition-duration) ease-out;
93
+ }
77
94
  }
78
95
 
79
96
  &:not([open]) {
80
- transform: translateX(0) translateY(-40px);
97
+ animation: slide-out var(--transition-duration) ease-out;
98
+ opacity: 0;
99
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); /* Subtle shadow for hidden state */
100
+ &::backdrop {
101
+ opacity: 0;
102
+ }
81
103
 
82
104
  &[data-position="top"] {
83
- top: 0;
84
- left: 50%;
85
- transform: translateX(-50%) translateY(-40px);
105
+ animation: slide-out-top var(--transition-duration) ease-out;
86
106
  }
107
+ }
87
108
 
109
+ }
110
+
111
+ @keyframes slide-in {
112
+ from {
113
+ transform: translateY(-40px);
88
114
  opacity: 0;
115
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
89
116
 
90
- &::backdrop {
91
- opacity: 0; /* Fade-out backdrop */
92
- }
93
117
  }
118
+ to {
119
+ transform: translateY(0);
120
+ opacity: 1;
121
+ box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24), 0 8px 16px rgba(0, 0, 0, 0.12);
94
122
 
95
- @starting-style {
96
- &[open] {
97
- transform: translateX(0) translateY(-40px);
123
+ }
124
+ }
98
125
 
99
- &[data-position="top"] {
100
- top: 0;
101
- left: 50%;
102
- transform: translateX(-50%) translateY(-40px);
103
- }
104
- }
126
+ @keyframes slide-out {
127
+ from {
128
+ transform: translateY(0);
129
+ opacity: 1;
130
+ box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24), 0 8px 16px rgba(0, 0, 0, 0.12);
131
+ }
132
+ to {
133
+ transform: translateY(-40px);
134
+ opacity: 0;
135
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
136
+ }
137
+ }
105
138
 
106
- &[open],
107
- &[open]::backdrop {
108
- opacity: 0;
109
- }
139
+ @keyframes slide-in-top {
140
+ from {
141
+ top: 0;
142
+ left: 50%;
143
+ transform: translateX(-50%) translateY(-40px);
144
+ opacity: 0;
145
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
146
+ }
147
+ to {
148
+ top: 0;
149
+ left: 50%;
150
+ transform: translateX(-50%) translateY(0.5rem);
151
+ opacity: 1;
152
+ box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24), 0 8px 16px rgba(0, 0, 0, 0.12);
110
153
  }
111
154
  }
112
155
 
156
+ @keyframes slide-out-top {
157
+ from {
158
+ top: 0;
159
+ left: 50%;
160
+ transform: translateX(-50%) translateY(0.5rem);
161
+ opacity: 1;
162
+ box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24), 0 8px 16px rgba(0, 0, 0, 0.12);
163
+ }
164
+ to {
165
+ top: 0;
166
+ left: 50%;
167
+ transform: translateX(-50%) translateY(-40px);
168
+ opacity: 0;
169
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
170
+ }
171
+ }
113
172
 
114
173
  dialog::backdrop {
115
174
  @apply backdrop-blur-[0.2rem] bg-neutral-token-13/20;
175
+ transition: opacity var(--transition-duration) ease-out;
116
176
  }
@@ -1,4 +1,3 @@
1
1
  import { type DropdownMenuProps } from "../DropdownMenu";
2
2
  declare const DropdownMenu: import("svelte").Component<DropdownMenuProps, {}, "open">;
3
- type DropdownMenu = ReturnType<typeof DropdownMenu>;
4
3
  export default DropdownMenu;
@@ -1,6 +1,5 @@
1
1
  declare const DropdownMenuGroup: import("svelte").Component<{
2
- children: any;
3
- class: any;
4
- } & Record<string, any>, {}, "">;
5
- type DropdownMenuGroup = ReturnType<typeof DropdownMenuGroup>;
2
+ children: unknown;
3
+ class: unknown;
4
+ } & Record<string, unknown>, {}, "">;
6
5
  export default DropdownMenuGroup;
@@ -1,6 +1,5 @@
1
1
  declare const DropdownMenuHeader: import("svelte").Component<{
2
- children: any;
3
- class: any;
4
- } & Record<string, any>, {}, "">;
5
- type DropdownMenuHeader = ReturnType<typeof DropdownMenuHeader>;
2
+ children: unknown;
3
+ class: unknown;
4
+ } & Record<string, unknown>, {}, "">;
6
5
  export default DropdownMenuHeader;
@@ -22,7 +22,7 @@
22
22
  {/snippet}
23
23
 
24
24
  {#if href}
25
- <a href={href}>
25
+ <a href={href} data-no-translate>
26
26
  {@render button()}
27
27
  </a>
28
28
  {:else }
@@ -1,4 +1,3 @@
1
1
  import { type DropdownMenuItemProps } from "../DropdownMenu";
2
2
  declare const DropdownMenuItem: import("svelte").Component<DropdownMenuItemProps, {}, "">;
3
- type DropdownMenuItem = ReturnType<typeof DropdownMenuItem>;
4
3
  export default DropdownMenuItem;
@@ -1,6 +1,5 @@
1
1
  declare const DropdownMenuSeparator: import("svelte").Component<{
2
- children: any;
3
- class: any;
4
- } & Record<string, any>, {}, "">;
5
- type DropdownMenuSeparator = ReturnType<typeof DropdownMenuSeparator>;
2
+ children: unknown;
3
+ class: unknown;
4
+ } & Record<string, unknown>, {}, "">;
6
5
  export default DropdownMenuSeparator;
@@ -22,7 +22,7 @@
22
22
  onclick={onHamburgerClick}>
23
23
  <IconHamburger/>
24
24
  </Button>
25
- <a href="/" class="header-brand-logo">
25
+ <a href="/" class="header-brand-logo" data-no-translate>
26
26
  <BrandLogo class="hidden md:block !h-icon-md"/>
27
27
  <BrandLogo class="md:hidden" shape="square"/>
28
28
  </a>
@@ -1,5 +1,4 @@
1
1
  import { type HeaderProps } from "./Header";
2
2
  import './header.scss';
3
3
  declare const Header: import("svelte").Component<HeaderProps, {}, "">;
4
- type Header = ReturnType<typeof Header>;
5
4
  export default Header;
@@ -1,5 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
2
  import { IconArrowBigRightFilled } from "@tabler/icons-svelte";
3
3
  declare const IconArrowBigRightFilled: import("svelte").Component<IconsProps, {}, "">;
4
- type IconArrowBigRightFilled = ReturnType<typeof IconArrowBigRightFilled>;
5
4
  export default IconArrowBigRightFilled;
@@ -1,5 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
2
  import { IconBook } from "@tabler/icons-svelte";
3
3
  declare const IconBook: import("svelte").Component<IconsProps, {}, "">;
4
- type IconBook = ReturnType<typeof IconBook>;
5
4
  export default IconBook;
@@ -1,5 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
2
  import { IconBookmarkPlus } from "@tabler/icons-svelte";
3
3
  declare const IconBookmarkPlus: import("svelte").Component<IconsProps, {}, "">;
4
- type IconBookmarkPlus = ReturnType<typeof IconBookmarkPlus>;
5
4
  export default IconBookmarkPlus;
@@ -1,5 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
2
  import { IconCalculator } from "@tabler/icons-svelte";
3
3
  declare const IconCalculator: import("svelte").Component<IconsProps, {}, "">;
4
- type IconCalculator = ReturnType<typeof IconCalculator>;
5
4
  export default IconCalculator;
@@ -1,5 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
2
  import { IconCheck } from "@tabler/icons-svelte";
3
3
  declare const IconCheck: import("svelte").Component<IconsProps, {}, "">;
4
- type IconCheck = ReturnType<typeof IconCheck>;
5
4
  export default IconCheck;
@@ -1,5 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
2
  import { IconChevronDown } from "@tabler/icons-svelte";
3
3
  declare const IconChevronDown: import("svelte").Component<IconsProps, {}, "">;
4
- type IconChevronDown = ReturnType<typeof IconChevronDown>;
5
4
  export default IconChevronDown;
@@ -1,5 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
2
  import { IconCopy } from "@tabler/icons-svelte";
3
3
  declare const IconCopy: import("svelte").Component<IconsProps, {}, "">;
4
- type IconCopy = ReturnType<typeof IconCopy>;
5
4
  export default IconCopy;
@@ -1,5 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
2
  import { IconCopyCheckFilled } from "@tabler/icons-svelte";
3
3
  declare const IconCopyCheckFilled: import("svelte").Component<IconsProps, {}, "">;
4
- type IconCopyCheckFilled = ReturnType<typeof IconCopyCheckFilled>;
5
4
  export default IconCopyCheckFilled;
@@ -1,4 +1,3 @@
1
1
  import { type IconsProps } from "./Icons";
2
2
  declare const IconHamburger: import("svelte").Component<IconsProps, {}, "">;
3
- type IconHamburger = ReturnType<typeof IconHamburger>;
4
3
  export default IconHamburger;
@@ -1,5 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
2
  import { IconLanguage } from "@tabler/icons-svelte";
3
3
  declare const IconLanguage: import("svelte").Component<IconsProps, {}, "">;
4
- type IconLanguage = ReturnType<typeof IconLanguage>;
5
4
  export default IconLanguage;
@@ -1,5 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
2
  import { IconLoader2 } from "@tabler/icons-svelte";
3
3
  declare const IconLoader2: import("svelte").Component<IconsProps, {}, "">;
4
- type IconLoader2 = ReturnType<typeof IconLoader2>;
5
4
  export default IconLoader2;
@@ -1,5 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
2
  import { IconLogout } from "@tabler/icons-svelte";
3
3
  declare const IconLogout: import("svelte").Component<IconsProps, {}, "">;
4
- type IconLogout = ReturnType<typeof IconLogout>;
5
4
  export default IconLogout;
@@ -1,4 +1,3 @@
1
1
  import { type IconsProps } from "./Icons";
2
2
  declare const IconMoon: import("svelte").Component<IconsProps, {}, "">;
3
- type IconMoon = ReturnType<typeof IconMoon>;
4
3
  export default IconMoon;
@@ -1,5 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
2
  import { IconPointFilled } from "@tabler/icons-svelte";
3
3
  declare const IconPointFilled: import("svelte").Component<IconsProps, {}, "">;
4
- type IconPointFilled = ReturnType<typeof IconPointFilled>;
5
4
  export default IconPointFilled;
@@ -1,5 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
2
  import { IconSearch } from "@tabler/icons-svelte";
3
3
  declare const IconSearch: import("svelte").Component<IconsProps, {}, "">;
4
- type IconSearch = ReturnType<typeof IconSearch>;
5
4
  export default IconSearch;
@@ -1,5 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
2
  import { IconSettings } from "@tabler/icons-svelte";
3
3
  declare const IconSettings: import("svelte").Component<IconsProps, {}, "">;
4
- type IconSettings = ReturnType<typeof IconSettings>;
5
4
  export default IconSettings;
@@ -1,4 +1,3 @@
1
1
  import { type IconsProps } from "./Icons";
2
2
  declare const IconSun: import("svelte").Component<IconsProps, {}, "">;
3
- type IconSun = ReturnType<typeof IconSun>;
4
3
  export default IconSun;
@@ -1,5 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
2
  import { IconSwitchHorizontal } from "@tabler/icons-svelte";
3
3
  declare const IconSwitchHorizontal: import("svelte").Component<IconsProps, {}, "">;
4
- type IconSwitchHorizontal = ReturnType<typeof IconSwitchHorizontal>;
5
4
  export default IconSwitchHorizontal;
@@ -1,5 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
2
  import { IconSwitchVertical } from "@tabler/icons-svelte";
3
3
  declare const IconSwitchVertical: import("svelte").Component<IconsProps, {}, "">;
4
- type IconSwitchVertical = ReturnType<typeof IconSwitchVertical>;
5
4
  export default IconSwitchVertical;
@@ -1,5 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
2
  import { IconTransform } from "@tabler/icons-svelte";
3
3
  declare const IconTransform: import("svelte").Component<IconsProps, {}, "">;
4
- type IconTransform = ReturnType<typeof IconTransform>;
5
4
  export default IconTransform;
@@ -1,5 +1,4 @@
1
1
  import { type IconsProps } from "./Icons";
2
2
  import { IconX } from "@tabler/icons-svelte";
3
3
  declare const IconX: import("svelte").Component<IconsProps, {}, "">;
4
- type IconX = ReturnType<typeof IconX>;
5
4
  export default IconX;
@@ -1,4 +1,3 @@
1
1
  import { type InputProps } from "./Input";
2
2
  declare const Input: import("svelte").Component<InputProps, {}, "ref" | "value">;
3
- type Input = ReturnType<typeof Input>;
4
3
  export default Input;
@@ -4,7 +4,7 @@
4
4
  import {Dialog} from "../dialog";
5
5
  import IconCheck from "../icons/IconCheck.svelte";
6
6
  import {getGlobalContext} from "../tera-ui-context/global-context";
7
- import * as m from '../../paraglide/messages'
7
+ import * as m from '../../paraglide/messages.js'
8
8
 
9
9
  let {
10
10
  children,
@@ -1,7 +1,5 @@
1
- type $$ComponentProps = LanguagePickerButtonProps & {
2
- onLangSelect: (langCode: string) => void;
3
- };
4
1
  import { type LanguagePickerButtonProps } from "./LanguagePickerButton";
5
- declare const LanguagePickerButton: import("svelte").Component<$$ComponentProps, {}, "">;
6
- type LanguagePickerButton = ReturnType<typeof LanguagePickerButton>;
2
+ declare const LanguagePickerButton: import("svelte").Component<LanguagePickerButtonProps & {
3
+ onLangSelect: (langCode: string) => void;
4
+ }, {}, "">;
7
5
  export default LanguagePickerButton;
@@ -1,4 +1,3 @@
1
1
  import { type LightDarkToggleProps } from "./LightDarkToggle";
2
2
  declare const LightDarkToggle: import("svelte").Component<LightDarkToggleProps, {}, "">;
3
- type LightDarkToggle = ReturnType<typeof LightDarkToggle>;
4
3
  export default LightDarkToggle;
@@ -1,4 +1,3 @@
1
1
  import { type PopoverProps } from "./Popover";
2
2
  declare const Popover: import("svelte").Component<PopoverProps, {}, "open">;
3
- type Popover = ReturnType<typeof Popover>;
4
3
  export default Popover;
@@ -8,5 +8,4 @@ declare const PopoverResponsive: import("svelte").Component<PopoverResponsivePro
8
8
  flip?: boolean;
9
9
  triggerRef?: HTMLElement;
10
10
  }, {}, "open">;
11
- type PopoverResponsive = ReturnType<typeof PopoverResponsive>;
12
11
  export default PopoverResponsive;
@@ -15,7 +15,7 @@
15
15
  import IconTransform from "../icons/IconTransform.svelte";
16
16
  import IconCalculator from "../icons/IconCalculator.svelte";
17
17
  import {LightDarkToggle} from "../light-dark-toggle";
18
- import * as m from '../../paraglide/messages'
18
+ import * as m from '../../paraglide/messages.js'
19
19
 
20
20
  import {getGlobalContext} from "../tera-ui-context/global-context";
21
21
 
@@ -53,7 +53,7 @@
53
53
  let langPath = (language === 'en' || !language) ? '' : `/${language}`
54
54
 
55
55
  function isSelected(href: string) {
56
- return sideNavHref?.startsWith(href)
56
+ return href?.startsWith(sideNavHref || '')
57
57
  }
58
58
 
59
59
 
@@ -1,4 +1,3 @@
1
1
  import { type SideNavigationProps } from "./SideNavigation";
2
2
  declare const SideNavigation: import("svelte").Component<SideNavigationProps, {}, "">;
3
- type SideNavigation = ReturnType<typeof SideNavigation>;
4
3
  export default SideNavigation;
@@ -1,8 +1,7 @@
1
1
  declare const SideNavigationItem: import("svelte").Component<{
2
- class: any;
3
- href: any;
4
- children: any;
5
- icon: any;
2
+ class: unknown;
3
+ href: unknown;
4
+ children: unknown;
5
+ icon: unknown;
6
6
  }, {}, "">;
7
- type SideNavigationItem = ReturnType<typeof SideNavigationItem>;
8
7
  export default SideNavigationItem;
@@ -1,7 +1,6 @@
1
1
  import './sidenav.scss';
2
2
  declare const SideNavigationLayout: import("svelte").Component<{
3
- children: any;
4
- language: any;
3
+ children: unknown;
4
+ language: unknown;
5
5
  }, {}, "">;
6
- type SideNavigationLayout = ReturnType<typeof SideNavigationLayout>;
7
6
  export default SideNavigationLayout;
@@ -1,4 +1,3 @@
1
1
  import { type SliderProps } from "./Slider";
2
2
  declare const Slider: import("svelte").Component<SliderProps, {}, "value">;
3
- type Slider = ReturnType<typeof Slider>;
4
3
  export default Slider;
@@ -3,9 +3,9 @@ export const styles = tv({
3
3
  base: '',
4
4
  variants: {
5
5
  size: {
6
- sm: 'h-6 px-1',
7
- md: 'h-8 px-1',
8
- lg: 'h-10 px-1'
6
+ sm: 'size-6 p-1',
7
+ md: 'size-8 p-1',
8
+ lg: 'size-10 p-1'
9
9
  }
10
10
  },
11
11
  compoundVariants: [],
@@ -1,6 +1,5 @@
1
1
  <script lang="ts">
2
2
  import {type StarRatingProps, styles} from "./StarRating";
3
- import {cn} from "../../utils/utils";
4
3
 
5
4
  let {
6
5
  children,
@@ -83,7 +82,7 @@
83
82
  fill: hsl(var(--tw---token-color-neutral-token-5));
84
83
  transition-property: all;
85
84
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
86
- transition-duration: 300ms
85
+ transition-duration: 350ms
87
86
  }
88
87
  [data-rating-icon]:first-child {
89
88
  padding-left: 0px
@@ -1,4 +1,3 @@
1
1
  import { type StarRatingProps } from "./StarRating";
2
2
  declare const StarRating: import("svelte").Component<StarRatingProps, {}, "value">;
3
- type StarRating = ReturnType<typeof StarRating>;
4
3
  export default StarRating;
@@ -1,4 +1,3 @@
1
1
  import { type TabsProps } from "../Tabs";
2
2
  declare const Tabs: import("svelte").Component<TabsProps, {}, "value">;
3
- type Tabs = ReturnType<typeof Tabs>;
4
3
  export default Tabs;
@@ -1,7 +1,6 @@
1
1
  declare const TabsContent: import("svelte").Component<{
2
- children: any;
3
- class: any;
4
- value: any;
5
- } & Record<string, any>, {}, "">;
6
- type TabsContent = ReturnType<typeof TabsContent>;
2
+ children: unknown;
3
+ class: unknown;
4
+ value: unknown;
5
+ } & Record<string, unknown>, {}, "">;
7
6
  export default TabsContent;
@@ -1,7 +1,6 @@
1
1
  declare const TabsItem: import("svelte").Component<{
2
- children: any;
3
- class: any;
4
- value: any;
5
- } & Record<string, any>, {}, "">;
6
- type TabsItem = ReturnType<typeof TabsItem>;
2
+ children: unknown;
3
+ class: unknown;
4
+ value: unknown;
5
+ } & Record<string, unknown>, {}, "">;
7
6
  export default TabsItem;
@@ -1,6 +1,5 @@
1
1
  declare const TabsList: import("svelte").Component<{
2
- children: any;
3
- class: any;
4
- } & Record<string, any>, {}, "">;
5
- type TabsList = ReturnType<typeof TabsList>;
2
+ children: unknown;
3
+ class: unknown;
4
+ } & Record<string, unknown>, {}, "">;
6
5
  export default TabsList;
@@ -1,4 +1,3 @@
1
1
  import { type TeraUiContextProps } from "./TeraUiContext";
2
2
  declare const TeraUiContext: import("svelte").Component<TeraUiContextProps, {}, "">;
3
- type TeraUiContext = ReturnType<typeof TeraUiContext>;
4
3
  export default TeraUiContext;
@@ -1,4 +1,3 @@
1
1
  import { type TextAreaProps } from "./TextArea";
2
2
  declare const TextArea: import("svelte").Component<TextAreaProps, {}, "ref" | "value">;
3
- type TextArea = ReturnType<typeof TextArea>;
4
3
  export default TextArea;
@@ -10,7 +10,7 @@
10
10
  } from "../dropdown-menu";
11
11
  import {IconLogout, IconSettings} from "../icons";
12
12
  import {extractShortUsernameFromEmail} from "../../internal/service/user.service";
13
- import * as m from '../../paraglide/messages'
13
+ import * as m from '../../paraglide/messages.js'
14
14
  let {children, user, onLogout,...props}: UserAvatarWithMenuProps = $props();
15
15
 
16
16
  let shortUserName = extractShortUsernameFromEmail(user?.email)
@@ -1,4 +1,3 @@
1
1
  import { type UserAvatarWithMenuProps } from "./UserAvatarWithMenu";
2
2
  declare const UserAvatarWithMenu: import("svelte").Component<UserAvatarWithMenuProps, {}, "">;
3
- type UserAvatarWithMenu = ReturnType<typeof UserAvatarWithMenu>;
4
3
  export default UserAvatarWithMenu;
@@ -1,8 +1,15 @@
1
- @import "scrollbar.scss"; /* Default base style */
1
+ /* Default base style */
2
2
  @tailwind base;
3
3
  @tailwind components;
4
4
  @tailwind utilities;
5
5
 
6
+ @import "scrollbar.scss";
7
+
8
+ * {
9
+ font-synthesis: none !important;
10
+ -webkit-font-smoothing: antialiased;
11
+ }
12
+
6
13
  .ripple {
7
14
  position: absolute;
8
15
  border-radius: 50%;
@@ -147,7 +147,7 @@ module.exports = {
147
147
  DEFAULT: 'hsl(var(--tw---token-color-neutral-token-5))'
148
148
  },
149
149
  transitionDuration: {
150
- "element-react": '300ms'
150
+ "element-react": '350ms'
151
151
  }
152
152
  }
153
153
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tera-system-ui",
3
- "version": "0.0.38",
3
+ "version": "0.0.40",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "npm run customPrepublish && npm run generate-index && vite build && npm run package && npm run postpublish",
@@ -63,40 +63,40 @@
63
63
  "peerDependencies": {
64
64
  "svelte": "^5.0.0"
65
65
  },
66
- "devDependencies": {
67
- "@chromatic-com/storybook": "^3.2.2",
68
- "@storybook/addon-essentials": "^8.4.4",
69
- "@storybook/addon-interactions": "^8.4.4",
70
- "@storybook/addon-links": "^8.4.4",
71
- "@storybook/addon-styling": "^1.3.7",
72
- "@storybook/addon-svelte-csf": "^5.0.0-next.11",
73
- "@storybook/addon-themes": "^8.4.4",
74
- "@storybook/addon-viewport": "^8.4.4",
75
- "@storybook/blocks": "^8.4.4",
76
- "@storybook/svelte": "^8.4.4",
77
- "@storybook/sveltekit": "^8.4.4",
78
- "@storybook/test": "^8.4.4",
79
- "@sveltejs/adapter-auto": "^3.3.1",
80
- "@sveltejs/kit": "^2.8.1",
81
- "@sveltejs/package": "^2.3.7",
82
- "@sveltejs/vite-plugin-svelte": "^4.0.1",
83
- "npx": "^10.2.2",
84
- "publint": "^0.2.12",
85
- "sass-embedded": "^1.81.0",
86
- "storybook": "^8.4.4",
87
- "svelte": "^5.2.1",
88
- "svelte-check": "^4.0.8",
89
- "tailwindcss": "^3.4.15",
90
- "typescript": "^5.6.3",
91
- "vite": "^5.4.11"
92
- },
93
- "dependencies": {
94
- "@floating-ui/dom": "^1.6.12",
95
- "@inlang/paraglide-sveltekit": "0.11.5",
96
- "@tabler/icons-svelte": "^3.22.0",
97
- "clsx": "^2.1.1",
98
- "autoprefixer": "^10.4.20",
99
- "@inlang/paraglide-js": "1.11.3",
100
- "tailwind-variants": "^0.3.0"
101
- }
66
+ "devDependencies": {
67
+ "@chromatic-com/storybook": "^3.2.2",
68
+ "@storybook/addon-essentials": "^8.4.4",
69
+ "@storybook/addon-interactions": "^8.4.4",
70
+ "@storybook/addon-links": "^8.4.4",
71
+ "@storybook/addon-styling": "^1.3.7",
72
+ "@storybook/addon-svelte-csf": "^5.0.0-next.8",
73
+ "@storybook/addon-themes": "^8.4.4",
74
+ "@storybook/addon-viewport": "^8.4.4",
75
+ "@storybook/blocks": "^8.4.4",
76
+ "@storybook/svelte": "^8.4.4",
77
+ "@storybook/sveltekit": "^8.4.4",
78
+ "@storybook/test": "^8.4.4",
79
+ "@sveltejs/adapter-auto": "^3.3.1",
80
+ "@sveltejs/kit": "^2.8.1",
81
+ "@sveltejs/package": "^2.3.7",
82
+ "@sveltejs/vite-plugin-svelte": "^4.0.1",
83
+ "npx": "^10.2.2",
84
+ "publint": "^0.2.12",
85
+ "sass-embedded": "^1.81.0",
86
+ "storybook": "^8.4.4",
87
+ "svelte": "^5.2.1",
88
+ "svelte-check": "^4.0.8",
89
+ "tailwindcss": "^3.4.15",
90
+ "typescript": "^5.6.3",
91
+ "vite": "^5.4.11"
92
+ },
93
+ "dependencies": {
94
+ "@floating-ui/dom": "^1.6.12",
95
+ "@inlang/paraglide-sveltekit": "0.11.5",
96
+ "@tabler/icons-svelte": "^3.22.0",
97
+ "clsx": "^2.1.1",
98
+ "autoprefixer": "^10.4.20",
99
+ "@inlang/paraglide-js": "1.11.3",
100
+ "tailwind-variants": "^0.3.0"
101
+ }
102
102
  }