tera-system-ui 0.0.44 → 0.0.46
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/icons/IconCoin.svelte +10 -0
- package/dist/components/icons/IconCoin.svelte.d.ts +4 -0
- package/dist/components/icons/IconCoinConvert.svelte +21 -0
- package/dist/components/icons/IconCoinConvert.svelte.d.ts +3 -0
- package/dist/components/icons/index.d.ts +2 -0
- package/dist/components/icons/index.js +2 -0
- package/dist/components/side-navigation/SideNavigation.svelte +18 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/paraglide/messages/de.d.ts +1 -0
- package/dist/paraglide/messages/de.js +8 -0
- package/dist/paraglide/messages/en.d.ts +1 -0
- package/dist/paraglide/messages/en.js +8 -0
- package/dist/paraglide/messages/es.d.ts +1 -0
- package/dist/paraglide/messages/es.js +8 -0
- package/dist/paraglide/messages/fr.d.ts +1 -0
- package/dist/paraglide/messages/fr.js +8 -0
- package/dist/paraglide/messages/it.d.ts +1 -0
- package/dist/paraglide/messages/it.js +8 -0
- package/dist/paraglide/messages/pt.d.ts +1 -0
- package/dist/paraglide/messages/pt.js +8 -0
- package/dist/paraglide/messages/ru.d.ts +1 -0
- package/dist/paraglide/messages/ru.js +8 -0
- package/dist/paraglide/messages/vi.d.ts +1 -0
- package/dist/paraglide/messages/vi.js +8 -0
- package/dist/paraglide/messages.d.ts +3 -0
- package/dist/paraglide/messages.js +28 -0
- package/dist/utils/utils.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import {type IconsProps, styles} from "./Icons";
|
|
3
|
+
import {IconCoin} from "@tabler/icons-svelte";
|
|
4
|
+
|
|
5
|
+
let {children, ...props}: IconsProps = $props();
|
|
6
|
+
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<svg width="24" height="24" viewBox="0 0 24 24" class={styles({...props})} fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10
|
+
<g clip-path="url(#clip0_1_25)">
|
|
11
|
+
<path d="M2 15.9437C2 16.8238 2.17336 17.6953 2.51018 18.5085C2.847 19.3217 3.34068 20.0605 3.96304 20.6829C4.5854 21.3052 5.32425 21.7989 6.1374 22.1357C6.95055 22.4725 7.82208 22.6459 8.70223 22.6459C9.58238 22.6459 10.4539 22.4725 11.2671 22.1357C12.0802 21.7989 12.8191 21.3052 13.4414 20.6829C14.0638 20.0605 14.5575 19.3217 14.8943 18.5085C15.2311 17.6953 15.4045 16.8238 15.4045 15.9437C15.4045 15.0635 15.2311 14.192 14.8943 13.3788C14.5575 12.5657 14.0638 11.8268 13.4414 11.2045C12.8191 10.5821 12.0802 10.0884 11.2671 9.75161C10.4539 9.41479 9.58238 9.24143 8.70223 9.24143C7.82208 9.24143 6.95055 9.41479 6.1374 9.75161C5.32425 10.0884 4.5854 10.5821 3.96304 11.2045C3.34068 11.8268 2.847 12.5657 2.51018 13.3788C2.17336 14.192 2 15.0635 2 15.9437Z" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
|
|
12
|
+
<path d="M10.7874 13.7096C10.6525 13.4756 10.4565 13.2827 10.2204 13.1515C9.98423 13.0203 9.71689 12.9558 9.44693 12.9649H7.95754C7.56253 12.9649 7.1837 13.1218 6.90439 13.4011C6.62508 13.6804 6.46816 14.0593 6.46816 14.4543C6.46816 14.8493 6.62508 15.2281 6.90439 15.5074C7.1837 15.7867 7.56253 15.9437 7.95754 15.9437H9.44693C9.84194 15.9437 10.2208 16.1006 10.5001 16.3799C10.7794 16.6592 10.9363 17.038 10.9363 17.4331C10.9363 17.8281 10.7794 18.2069 10.5001 18.4862C10.2208 18.7655 9.84194 18.9224 9.44693 18.9224H7.95754C7.68759 18.9315 7.42024 18.867 7.18412 18.7359C6.948 18.6047 6.752 18.4118 6.6171 18.1777" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
|
|
13
|
+
<path d="M8.70224 12.2202V19.6671" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
|
|
14
|
+
<path d="M16 23L18.625 23C19.0891 23 19.5342 22.8156 19.8624 22.4874C20.1906 22.1592 20.375 21.7141 20.375 21.25L20.375 16M20.375 16L17.75 18.625M20.375 16L23 18.625" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
|
|
15
|
+
<path d="M7 1.25L4.75 1.25C4.35218 1.25 3.97064 1.43437 3.68934 1.76256C3.40804 2.09075 3.25 2.53587 3.25 3L3.25 8.25M3.25 8.25L5.5 5.625M3.25 8.25L1 5.625" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
|
|
16
|
+
<path d="M8.89679 8.48405C8.84468 7.60544 8.96614 6.72518 9.25422 5.89351C9.54231 5.06185 9.99139 4.29507 10.5758 3.63695C11.1602 2.97884 11.8686 2.44228 12.6603 2.05791C13.4521 1.67354 14.3119 1.44889 15.1905 1.39679C16.0691 1.34468 16.9494 1.46614 17.781 1.75423C18.6127 2.04231 19.3795 2.49139 20.0376 3.07581C20.6957 3.66024 21.2323 4.36856 21.6166 5.16035C22.001 5.95213 22.2256 6.81187 22.2777 7.69048C22.3299 8.56909 22.2084 9.44935 21.9203 10.281C21.6322 11.1127 21.1831 11.8795 20.5987 12.5376C20.0143 13.1957 19.306 13.7323 18.5142 14.1166C17.7224 14.501 16.8627 14.7256 15.984 14.7777" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
|
|
17
|
+
<path d="M17.7033 5.6355C17.2782 5.23641 16.7501 5 16.1775 5C14.773 5 13.6355 6.42288 13.6355 8.17749C13.6355 9.93211 14.773 11.355 16.1775 11.355C16.7494 11.355 17.2775 11.1186 17.7027 10.7195" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
|
|
18
|
+
<path d="M13 7.22424H15.542" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
|
|
19
|
+
<path d="M13 9.13074H15.542" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
|
|
20
|
+
</g>
|
|
21
|
+
</svg>
|
|
@@ -4,6 +4,8 @@ export { default as IconBookmarkPlus } from './IconBookmarkPlus.svelte';
|
|
|
4
4
|
export { default as IconCalculator } from './IconCalculator.svelte';
|
|
5
5
|
export { default as IconCheck } from './IconCheck.svelte';
|
|
6
6
|
export { default as IconChevronDown } from './IconChevronDown.svelte';
|
|
7
|
+
export { default as IconCoin } from './IconCoin.svelte';
|
|
8
|
+
export { default as IconCoinConvert } from './IconCoinConvert.svelte';
|
|
7
9
|
export { default as IconCopy } from './IconCopy.svelte';
|
|
8
10
|
export { default as IconCopyCheckFilled } from './IconCopyCheckFilled.svelte';
|
|
9
11
|
export { default as IconHamburger } from './IconHamburger.svelte';
|
|
@@ -4,6 +4,8 @@ export { default as IconBookmarkPlus } from './IconBookmarkPlus.svelte';
|
|
|
4
4
|
export { default as IconCalculator } from './IconCalculator.svelte';
|
|
5
5
|
export { default as IconCheck } from './IconCheck.svelte';
|
|
6
6
|
export { default as IconChevronDown } from './IconChevronDown.svelte';
|
|
7
|
+
export { default as IconCoin } from './IconCoin.svelte';
|
|
8
|
+
export { default as IconCoinConvert } from './IconCoinConvert.svelte';
|
|
7
9
|
export { default as IconCopy } from './IconCopy.svelte';
|
|
8
10
|
export { default as IconCopyCheckFilled } from './IconCopyCheckFilled.svelte';
|
|
9
11
|
export { default as IconHamburger } from './IconHamburger.svelte';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
} from "./SideNavigation";
|
|
9
9
|
import {clickOutside} from "../../actions/clickOutside"
|
|
10
10
|
import {Button} from "../button";
|
|
11
|
-
import {IconHamburger} from "../icons";
|
|
11
|
+
import {IconCoin, IconCoinConvert, IconHamburger} from "../icons";
|
|
12
12
|
import {BrandLogo} from "../brand-logo";
|
|
13
13
|
import SideNavItem from "./SideNavigationItem.svelte";
|
|
14
14
|
import IconBook from "../icons/IconBook.svelte";
|
|
@@ -52,28 +52,39 @@
|
|
|
52
52
|
|
|
53
53
|
let langPath = (language === 'en' || !language) ? '' : `/${language}`
|
|
54
54
|
|
|
55
|
-
function isSelected(href: string) {
|
|
56
|
-
return href?.startsWith(sideNavHref || '')
|
|
57
|
-
}
|
|
58
|
-
|
|
59
55
|
|
|
60
56
|
const NAV_ITEM = [
|
|
61
57
|
{
|
|
62
58
|
href: `/calculator${langPath}`,
|
|
59
|
+
exactHref: '/calculator',
|
|
63
60
|
icon: IconCalculator,
|
|
64
61
|
title: m.text_calces_scientific_calculator(),
|
|
65
62
|
},
|
|
66
63
|
{
|
|
67
64
|
href: `/convert${langPath}`,
|
|
65
|
+
exactHref: '/convert',
|
|
68
66
|
icon: IconTransform,
|
|
69
67
|
title: m.text_unit_converter(),
|
|
70
68
|
},
|
|
69
|
+
{
|
|
70
|
+
href: `/convert${langPath}/currency`,
|
|
71
|
+
exactHref: '/convert/currency',
|
|
72
|
+
icon: IconCoinConvert,
|
|
73
|
+
title: m.text_currency_converter(),
|
|
74
|
+
},
|
|
71
75
|
{
|
|
72
76
|
href: '/docs/calculator-usages/calces',
|
|
73
77
|
icon: IconBook,
|
|
74
78
|
title: m.text_calces_documentation(),
|
|
75
79
|
},
|
|
76
80
|
]
|
|
81
|
+
|
|
82
|
+
let selectedIndex = (() => {
|
|
83
|
+
return NAV_ITEM.findIndex((item, index) => {
|
|
84
|
+
return (item.exactHref ?? item.href) === sideNavHref;
|
|
85
|
+
})
|
|
86
|
+
})();
|
|
87
|
+
|
|
77
88
|
</script>
|
|
78
89
|
|
|
79
90
|
<nav class="side-nav_main-side-bar grid grid-rows-[auto_1fr_auto]"
|
|
@@ -98,8 +109,8 @@
|
|
|
98
109
|
handleHover(false)
|
|
99
110
|
}}
|
|
100
111
|
>
|
|
101
|
-
{#each NAV_ITEM as item}
|
|
102
|
-
<SideNavItem href={item.href} class={
|
|
112
|
+
{#each NAV_ITEM as item, index}
|
|
113
|
+
<SideNavItem href={item.href} class={selectedIndex === index ? 'selected' : ''}>
|
|
103
114
|
{#snippet icon()}
|
|
104
115
|
<item.icon/>
|
|
105
116
|
{/snippet}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { Command } from './components/command';
|
|
|
6
6
|
export { Dialog } from './components/dialog';
|
|
7
7
|
export { DropdownMenu, DropdownMenuItem, DropdownMenuGroup, DropdownMenuHeader, DropdownMenuSeparator } from './components/dropdown-menu';
|
|
8
8
|
export { Header } from './components/header';
|
|
9
|
-
export { IconArrowBigRightFilled, IconBook, IconBookmarkPlus, IconCalculator, IconCheck, IconChevronDown, IconCopy, IconCopyCheckFilled, IconHamburger, IconLanguage, IconLoader2, IconLogout, IconMoon, IconPointFilled, IconSearch, IconSettings, IconSun, IconSwitchHorizontal, IconSwitchVertical, IconTransform, IconX } from './components/icons';
|
|
9
|
+
export { IconArrowBigRightFilled, IconBook, IconBookmarkPlus, IconCalculator, IconCheck, IconChevronDown, IconCoin, IconCoinConvert, IconCopy, IconCopyCheckFilled, IconHamburger, IconLanguage, IconLoader2, IconLogout, IconMoon, IconPointFilled, IconSearch, IconSettings, IconSun, IconSwitchHorizontal, IconSwitchVertical, IconTransform, IconX } from './components/icons';
|
|
10
10
|
export { Input } from './components/input';
|
|
11
11
|
export { LanguagePickerButton } from './components/language-picker-button';
|
|
12
12
|
export { LightDarkToggle } from './components/light-dark-toggle';
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ export { Command } from './components/command';
|
|
|
6
6
|
export { Dialog } from './components/dialog';
|
|
7
7
|
export { DropdownMenu, DropdownMenuItem, DropdownMenuGroup, DropdownMenuHeader, DropdownMenuSeparator } from './components/dropdown-menu';
|
|
8
8
|
export { Header } from './components/header';
|
|
9
|
-
export { IconArrowBigRightFilled, IconBook, IconBookmarkPlus, IconCalculator, IconCheck, IconChevronDown, IconCopy, IconCopyCheckFilled, IconHamburger, IconLanguage, IconLoader2, IconLogout, IconMoon, IconPointFilled, IconSearch, IconSettings, IconSun, IconSwitchHorizontal, IconSwitchVertical, IconTransform, IconX } from './components/icons';
|
|
9
|
+
export { IconArrowBigRightFilled, IconBook, IconBookmarkPlus, IconCalculator, IconCheck, IconChevronDown, IconCoin, IconCoinConvert, IconCopy, IconCopyCheckFilled, IconHamburger, IconLanguage, IconLoader2, IconLogout, IconMoon, IconPointFilled, IconSearch, IconSettings, IconSun, IconSwitchHorizontal, IconSwitchVertical, IconTransform, IconX } from './components/icons';
|
|
10
10
|
export { Input } from './components/input';
|
|
11
11
|
export { LanguagePickerButton } from './components/language-picker-button';
|
|
12
12
|
export { LightDarkToggle } from './components/light-dark-toggle';
|
|
@@ -56,3 +56,11 @@ export const text_account_settings = () => `Kontoeinstellungen`
|
|
|
56
56
|
*/
|
|
57
57
|
/* @__NO_SIDE_EFFECTS__ */
|
|
58
58
|
export const text_logout = () => `Abmelden`
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @returns {string}
|
|
64
|
+
*/
|
|
65
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
66
|
+
export const text_currency_converter = () => `Währungsrechner`
|
|
@@ -56,3 +56,11 @@ export const text_account_settings = () => `Account Settings`
|
|
|
56
56
|
*/
|
|
57
57
|
/* @__NO_SIDE_EFFECTS__ */
|
|
58
58
|
export const text_logout = () => `Logout`
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @returns {string}
|
|
64
|
+
*/
|
|
65
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
66
|
+
export const text_currency_converter = () => `Currency Converter`
|
|
@@ -56,3 +56,11 @@ export const text_account_settings = () => `Configuración de la cuenta`
|
|
|
56
56
|
*/
|
|
57
57
|
/* @__NO_SIDE_EFFECTS__ */
|
|
58
58
|
export const text_logout = () => `Cerrar sesión`
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @returns {string}
|
|
64
|
+
*/
|
|
65
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
66
|
+
export const text_currency_converter = () => `Convertidor de Divisas`
|
|
@@ -56,3 +56,11 @@ export const text_account_settings = () => `Paramètres du compte`
|
|
|
56
56
|
*/
|
|
57
57
|
/* @__NO_SIDE_EFFECTS__ */
|
|
58
58
|
export const text_logout = () => `Déconnexion`
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @returns {string}
|
|
64
|
+
*/
|
|
65
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
66
|
+
export const text_currency_converter = () => `Convertisseur de Devises`
|
|
@@ -56,3 +56,11 @@ export const text_account_settings = () => `Impostazioni dell'account`
|
|
|
56
56
|
*/
|
|
57
57
|
/* @__NO_SIDE_EFFECTS__ */
|
|
58
58
|
export const text_logout = () => `Disconnettersi`
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @returns {string}
|
|
64
|
+
*/
|
|
65
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
66
|
+
export const text_currency_converter = () => `Convertitore di Valuta`
|
|
@@ -56,3 +56,11 @@ export const text_account_settings = () => `Configurações da conta`
|
|
|
56
56
|
*/
|
|
57
57
|
/* @__NO_SIDE_EFFECTS__ */
|
|
58
58
|
export const text_logout = () => `Sair`
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @returns {string}
|
|
64
|
+
*/
|
|
65
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
66
|
+
export const text_currency_converter = () => `Conversor de Moedas`
|
|
@@ -56,3 +56,11 @@ export const text_account_settings = () => `Настройки аккаунта`
|
|
|
56
56
|
*/
|
|
57
57
|
/* @__NO_SIDE_EFFECTS__ */
|
|
58
58
|
export const text_logout = () => `Выйти`
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @returns {string}
|
|
64
|
+
*/
|
|
65
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
66
|
+
export const text_currency_converter = () => `Конвертер валют`
|
|
@@ -56,3 +56,11 @@ export const text_account_settings = () => `Cài đặt tài khoản`
|
|
|
56
56
|
*/
|
|
57
57
|
/* @__NO_SIDE_EFFECTS__ */
|
|
58
58
|
export const text_logout = () => `Đăng xuất`
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @returns {string}
|
|
64
|
+
*/
|
|
65
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
66
|
+
export const text_currency_converter = () => `Bộ Chuyển Đổi Tiền Tệ`
|
|
@@ -16,3 +16,6 @@ export function text_account_settings(params?: {}, options?: {
|
|
|
16
16
|
export function text_logout(params?: {}, options?: {
|
|
17
17
|
languageTag?: "de" | "en" | "es" | "fr" | "pt" | "vi" | "ru" | "it";
|
|
18
18
|
}): string;
|
|
19
|
+
export function text_currency_converter(params?: {}, options?: {
|
|
20
|
+
languageTag?: "de" | "en" | "es" | "fr" | "pt" | "vi" | "ru" | "it";
|
|
21
|
+
}): string;
|
|
@@ -176,3 +176,31 @@ export const text_logout = (params = {}, options = {}) => {
|
|
|
176
176
|
}[options.languageTag ?? languageTag()]()
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* This message has been compiled by [inlang paraglide](https://inlang.com/m/gerre34r/library-inlang-paraglideJs).
|
|
183
|
+
*
|
|
184
|
+
* - Don't edit the message's code. Use [Sherlock (VS Code extension)](https://inlang.com/m/r7kp499g/app-inlang-ideExtension),
|
|
185
|
+
* the [web editor](https://inlang.com/m/tdozzpar/app-inlang-finkLocalizationEditor) instead, or edit the translation files manually.
|
|
186
|
+
*
|
|
187
|
+
* - The params are NonNullable<unknown> because the inlang SDK does not provide information on the type of a param (yet).
|
|
188
|
+
*
|
|
189
|
+
* @param {{}} params
|
|
190
|
+
* @param {{ languageTag?: "de" | "en" | "es" | "fr" | "pt" | "vi" | "ru" | "it" }} options
|
|
191
|
+
* @returns {string}
|
|
192
|
+
*/
|
|
193
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
194
|
+
export const text_currency_converter = (params = {}, options = {}) => {
|
|
195
|
+
return {
|
|
196
|
+
de: de.text_currency_converter,
|
|
197
|
+
en: en.text_currency_converter,
|
|
198
|
+
es: es.text_currency_converter,
|
|
199
|
+
fr: fr.text_currency_converter,
|
|
200
|
+
it: it.text_currency_converter,
|
|
201
|
+
pt: pt.text_currency_converter,
|
|
202
|
+
ru: ru.text_currency_converter,
|
|
203
|
+
vi: vi.text_currency_converter
|
|
204
|
+
}[options.languageTag ?? languageTag()]()
|
|
205
|
+
}
|
|
206
|
+
|
package/dist/utils/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type ClassValue } from "clsx";
|
|
2
2
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
3
3
|
export declare function consoleLog(...params: any[]): void;
|
|
4
|
-
export declare function observeVisibility(element: HTMLElement, callback: any): () => void;
|
|
4
|
+
export declare function observeVisibility(element: HTMLElement, callback: (isVisible: boolean, entry?: any) => void): () => void;
|