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.
- package/dist/components/avatar/Avatar.svelte.d.ts +0 -1
- package/dist/components/brand-logo/BrandLogo.svelte.d.ts +0 -1
- package/dist/components/button/Button.svelte.d.ts +0 -1
- package/dist/components/combobox/Combobox.svelte.d.ts +0 -1
- package/dist/components/command/components/Command.svelte +2 -2
- package/dist/components/command/components/Command.svelte.d.ts +1 -2
- package/dist/components/command/components/CommandEmpty.svelte +2 -2
- package/dist/components/command/components/CommandEmpty.svelte.d.ts +1 -2
- package/dist/components/command/components/CommandGroup.svelte +3 -3
- package/dist/components/command/components/CommandGroup.svelte.d.ts +1 -2
- package/dist/components/command/components/CommandInput.svelte +4 -4
- package/dist/components/command/components/CommandInput.svelte.d.ts +1 -2
- package/dist/components/command/components/CommandItem.svelte +3 -3
- package/dist/components/command/components/CommandItem.svelte.d.ts +1 -2
- package/dist/components/command/components/CommandList.svelte +3 -3
- package/dist/components/command/components/CommandList.svelte.d.ts +3 -4
- package/dist/components/command/components/CommandLoading.svelte +1 -1
- package/dist/components/command/components/CommandLoading.svelte.d.ts +6 -7
- package/dist/components/command/components/CommandSeparator.svelte +2 -2
- package/dist/components/command/components/CommandSeparator.svelte.d.ts +1 -2
- package/dist/components/dialog/Dialog.astro +1 -1
- package/dist/components/dialog/Dialog.js +1 -1
- package/dist/components/dialog/Dialog.svelte +1 -1
- package/dist/components/dialog/Dialog.svelte.d.ts +0 -1
- package/dist/components/dialog/dialog.scss +86 -26
- package/dist/components/dropdown-menu/components/DropdownMenu.svelte.d.ts +0 -1
- package/dist/components/dropdown-menu/components/DropdownMenuGroup.svelte.d.ts +3 -4
- package/dist/components/dropdown-menu/components/DropdownMenuHeader.svelte.d.ts +3 -4
- package/dist/components/dropdown-menu/components/DropdownMenuItem.svelte +1 -1
- package/dist/components/dropdown-menu/components/DropdownMenuItem.svelte.d.ts +0 -1
- package/dist/components/dropdown-menu/components/DropdownMenuSeparator.svelte.d.ts +3 -4
- package/dist/components/header/Header.svelte +1 -1
- package/dist/components/header/Header.svelte.d.ts +0 -1
- package/dist/components/icons/IconArrowBigRightFilled.svelte.d.ts +0 -1
- package/dist/components/icons/IconBook.svelte.d.ts +0 -1
- package/dist/components/icons/IconBookmarkPlus.svelte.d.ts +0 -1
- package/dist/components/icons/IconCalculator.svelte.d.ts +0 -1
- package/dist/components/icons/IconCheck.svelte.d.ts +0 -1
- package/dist/components/icons/IconChevronDown.svelte.d.ts +0 -1
- package/dist/components/icons/IconCopy.svelte.d.ts +0 -1
- package/dist/components/icons/IconCopyCheckFilled.svelte.d.ts +0 -1
- package/dist/components/icons/IconHamburger.svelte.d.ts +0 -1
- package/dist/components/icons/IconLanguage.svelte.d.ts +0 -1
- package/dist/components/icons/IconLoader2.svelte.d.ts +0 -1
- package/dist/components/icons/IconLogout.svelte.d.ts +0 -1
- package/dist/components/icons/IconMoon.svelte.d.ts +0 -1
- package/dist/components/icons/IconPointFilled.svelte.d.ts +0 -1
- package/dist/components/icons/IconSearch.svelte.d.ts +0 -1
- package/dist/components/icons/IconSettings.svelte.d.ts +0 -1
- package/dist/components/icons/IconSun.svelte.d.ts +0 -1
- package/dist/components/icons/IconSwitchHorizontal.svelte.d.ts +0 -1
- package/dist/components/icons/IconSwitchVertical.svelte.d.ts +0 -1
- package/dist/components/icons/IconTransform.svelte.d.ts +0 -1
- package/dist/components/icons/IconX.svelte.d.ts +0 -1
- package/dist/components/input/Input.svelte.d.ts +0 -1
- package/dist/components/language-picker-button/LanguagePickerButton.svelte +1 -1
- package/dist/components/language-picker-button/LanguagePickerButton.svelte.d.ts +3 -5
- package/dist/components/light-dark-toggle/LightDarkToggle.svelte.d.ts +0 -1
- package/dist/components/popover/Popover.svelte.d.ts +0 -1
- package/dist/components/popover-responsive/PopoverResponsive.svelte.d.ts +0 -1
- package/dist/components/side-navigation/SideNavigation.svelte +2 -2
- package/dist/components/side-navigation/SideNavigation.svelte.d.ts +0 -1
- package/dist/components/side-navigation/SideNavigationItem.svelte.d.ts +4 -5
- package/dist/components/side-navigation/SideNavigationLayout.svelte.d.ts +2 -3
- package/dist/components/slider/Slider.svelte.d.ts +0 -1
- package/dist/components/star-rating/StarRating.js +3 -3
- package/dist/components/star-rating/StarRating.svelte +1 -2
- package/dist/components/star-rating/StarRating.svelte.d.ts +0 -1
- package/dist/components/tabs/components/Tabs.svelte.d.ts +0 -1
- package/dist/components/tabs/components/TabsContent.svelte.d.ts +4 -5
- package/dist/components/tabs/components/TabsItem.svelte.d.ts +4 -5
- package/dist/components/tabs/components/TabsList.svelte.d.ts +3 -4
- package/dist/components/tera-ui-context/TeraUiContext.svelte.d.ts +0 -1
- package/dist/components/text-area/TextArea.svelte.d.ts +0 -1
- package/dist/components/user-avatar-with-menu/UserAvatarWithMenu.svelte +1 -1
- package/dist/components/user-avatar-with-menu/UserAvatarWithMenu.svelte.d.ts +0 -1
- package/dist/themes/tera-ui-base.css +8 -1
- package/dist/themes/tw-preset.cjs +1 -1
- package/package.json +37 -37
|
@@ -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,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,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,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,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:
|
|
3
|
-
el:
|
|
4
|
-
} & Record<string,
|
|
5
|
-
type CommandList = ReturnType<typeof CommandList>;
|
|
2
|
+
children: unknown;
|
|
3
|
+
el: unknown;
|
|
4
|
+
} & Record<string, unknown>, {}, "">;
|
|
6
5
|
export default CommandList;
|
|
@@ -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
|
|
8
|
-
|
|
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;
|
|
@@ -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-
|
|
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
|
},
|
|
@@ -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:
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
96
|
-
|
|
97
|
-
transform: translateX(0) translateY(-40px);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
98
125
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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,6 +1,5 @@
|
|
|
1
1
|
declare const DropdownMenuGroup: import("svelte").Component<{
|
|
2
|
-
children:
|
|
3
|
-
class:
|
|
4
|
-
} & Record<string,
|
|
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:
|
|
3
|
-
class:
|
|
4
|
-
} & Record<string,
|
|
5
|
-
type DropdownMenuHeader = ReturnType<typeof DropdownMenuHeader>;
|
|
2
|
+
children: unknown;
|
|
3
|
+
class: unknown;
|
|
4
|
+
} & Record<string, unknown>, {}, "">;
|
|
6
5
|
export default DropdownMenuHeader;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
declare const DropdownMenuSeparator: import("svelte").Component<{
|
|
2
|
-
children:
|
|
3
|
-
class:
|
|
4
|
-
} & Record<string,
|
|
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 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 { 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 { 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 { 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,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 { 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;
|
|
@@ -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
|
|
6
|
-
|
|
2
|
+
declare const LanguagePickerButton: import("svelte").Component<LanguagePickerButtonProps & {
|
|
3
|
+
onLangSelect: (langCode: string) => void;
|
|
4
|
+
}, {}, "">;
|
|
7
5
|
export default LanguagePickerButton;
|
|
@@ -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
|
|
56
|
+
return href?.startsWith(sideNavHref || '')
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
declare const SideNavigationItem: import("svelte").Component<{
|
|
2
|
-
class:
|
|
3
|
-
href:
|
|
4
|
-
children:
|
|
5
|
-
icon:
|
|
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:
|
|
4
|
-
language:
|
|
3
|
+
children: unknown;
|
|
4
|
+
language: unknown;
|
|
5
5
|
}, {}, "">;
|
|
6
|
-
type SideNavigationLayout = ReturnType<typeof SideNavigationLayout>;
|
|
7
6
|
export default SideNavigationLayout;
|
|
@@ -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:
|
|
85
|
+
transition-duration: 350ms
|
|
87
86
|
}
|
|
88
87
|
[data-rating-icon]:first-child {
|
|
89
88
|
padding-left: 0px
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
declare const TabsContent: import("svelte").Component<{
|
|
2
|
-
children:
|
|
3
|
-
class:
|
|
4
|
-
value:
|
|
5
|
-
} & Record<string,
|
|
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:
|
|
3
|
-
class:
|
|
4
|
-
value:
|
|
5
|
-
} & Record<string,
|
|
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:
|
|
3
|
-
class:
|
|
4
|
-
} & Record<string,
|
|
5
|
-
type TabsList = ReturnType<typeof TabsList>;
|
|
2
|
+
children: unknown;
|
|
3
|
+
class: unknown;
|
|
4
|
+
} & Record<string, unknown>, {}, "">;
|
|
6
5
|
export default TabsList;
|
|
@@ -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,8 +1,15 @@
|
|
|
1
|
-
|
|
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%;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tera-system-ui",
|
|
3
|
-
"version": "0.0.
|
|
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
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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
|
}
|