tera-system-ui 0.0.20 → 0.0.22

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 (91) hide show
  1. package/dist/components/avatar/Avatar.d.ts +82 -0
  2. package/dist/components/avatar/Avatar.js +35 -0
  3. package/dist/components/avatar/Avatar.svelte +43 -0
  4. package/dist/components/avatar/Avatar.svelte.d.ts +3 -0
  5. package/dist/components/avatar/index.d.ts +1 -0
  6. package/dist/components/avatar/index.js +1 -0
  7. package/dist/components/brand-logo/BrandLogo.svelte +31 -31
  8. package/dist/components/button/Button.svelte +49 -49
  9. package/dist/components/combobox/Combobox.svelte +8 -8
  10. package/dist/components/command/command.scss +72 -72
  11. package/dist/components/command/components/Command.svelte +120 -120
  12. package/dist/components/command/components/CommandEmpty.svelte +30 -30
  13. package/dist/components/command/components/CommandGroup.svelte +110 -110
  14. package/dist/components/command/components/CommandInput.svelte +92 -92
  15. package/dist/components/command/components/CommandItem.svelte +110 -110
  16. package/dist/components/command/components/CommandList.svelte +56 -56
  17. package/dist/components/command/components/CommandLoading.svelte +28 -28
  18. package/dist/components/command/components/CommandSeparator.svelte +21 -21
  19. package/dist/components/dialog/Dialog.astro +63 -63
  20. package/dist/components/dialog/Dialog.svelte +109 -109
  21. package/dist/components/dialog/dialog.scss +115 -115
  22. package/dist/components/dropdown-menu/DropdownMenu.d.ts +22 -0
  23. package/dist/components/dropdown-menu/DropdownMenu.js +15 -0
  24. package/dist/components/dropdown-menu/components/DropdownMenu.svelte +34 -0
  25. package/dist/components/dropdown-menu/components/DropdownMenu.svelte.d.ts +3 -0
  26. package/dist/components/dropdown-menu/components/DropdownMenuGroup.svelte +12 -0
  27. package/dist/components/dropdown-menu/components/DropdownMenuGroup.svelte.d.ts +5 -0
  28. package/dist/components/dropdown-menu/components/DropdownMenuHeader.svelte +12 -0
  29. package/dist/components/dropdown-menu/components/DropdownMenuHeader.svelte.d.ts +5 -0
  30. package/dist/components/dropdown-menu/components/DropdownMenuItem.svelte +30 -0
  31. package/dist/components/dropdown-menu/components/DropdownMenuItem.svelte.d.ts +3 -0
  32. package/dist/components/dropdown-menu/components/DropdownMenuSeparator.svelte +11 -0
  33. package/dist/components/dropdown-menu/components/DropdownMenuSeparator.svelte.d.ts +5 -0
  34. package/dist/components/dropdown-menu/index.d.ts +5 -0
  35. package/dist/components/dropdown-menu/index.js +5 -0
  36. package/dist/components/header/Header.svelte +36 -36
  37. package/dist/components/header/header.scss +19 -19
  38. package/dist/components/icons/IconArrowBigRightFilled.svelte +10 -10
  39. package/dist/components/icons/IconBook.svelte +10 -10
  40. package/dist/components/icons/IconBookmarkPlus.svelte +10 -10
  41. package/dist/components/icons/IconCalculator.svelte +10 -10
  42. package/dist/components/icons/IconCheck.svelte +10 -10
  43. package/dist/components/icons/IconChevronDown.svelte +10 -10
  44. package/dist/components/icons/IconCopy.svelte +10 -10
  45. package/dist/components/icons/IconCopyCheckFilled.svelte +10 -10
  46. package/dist/components/icons/IconHamburger.svelte +10 -10
  47. package/dist/components/icons/IconLanguage.svelte +10 -10
  48. package/dist/components/icons/IconLoader2.svelte +10 -10
  49. package/dist/components/icons/IconLogout.svelte +10 -0
  50. package/dist/components/icons/IconLogout.svelte.d.ts +4 -0
  51. package/dist/components/icons/IconMoon.svelte +10 -10
  52. package/dist/components/icons/IconPointFilled.svelte +10 -10
  53. package/dist/components/icons/IconSearch.svelte +10 -10
  54. package/dist/components/icons/IconSettings.svelte +10 -0
  55. package/dist/components/icons/IconSettings.svelte.d.ts +4 -0
  56. package/dist/components/icons/IconSun.svelte +10 -10
  57. package/dist/components/icons/IconSwitchHorizontal.svelte +10 -10
  58. package/dist/components/icons/IconSwitchVertical.svelte +10 -10
  59. package/dist/components/icons/IconTransform.svelte +10 -10
  60. package/dist/components/icons/IconX.svelte +10 -10
  61. package/dist/components/icons/index.d.ts +2 -0
  62. package/dist/components/icons/index.js +2 -0
  63. package/dist/components/input/Input.svelte +24 -24
  64. package/dist/components/language-picker-button/LanguagePickerButton.svelte +109 -109
  65. package/dist/components/light-dark-toggle/LightDarkToggle.svelte +36 -36
  66. package/dist/components/popover/Popover.svelte +159 -137
  67. package/dist/components/popover-responsive/PopoverResponsive.svelte +87 -87
  68. package/dist/components/side-navigation/SideNavigation.svelte +114 -114
  69. package/dist/components/side-navigation/SideNavigationItem.svelte +17 -17
  70. package/dist/components/side-navigation/SideNavigationLayout.svelte +19 -19
  71. package/dist/components/side-navigation/sidenav.scss +149 -149
  72. package/dist/components/tera-ui-context/TeraUiContext.d.ts +1 -0
  73. package/dist/components/tera-ui-context/TeraUiContext.svelte +28 -28
  74. package/dist/components/user-avatar-with-menu/UserAvatarWithMenu.d.ts +11 -0
  75. package/dist/components/user-avatar-with-menu/UserAvatarWithMenu.js +7 -0
  76. package/dist/components/user-avatar-with-menu/UserAvatarWithMenu.svelte +68 -0
  77. package/dist/components/user-avatar-with-menu/UserAvatarWithMenu.svelte.d.ts +3 -0
  78. package/dist/components/user-avatar-with-menu/index.d.ts +1 -0
  79. package/dist/components/user-avatar-with-menu/index.js +1 -0
  80. package/dist/index.d.ts +4 -1
  81. package/dist/index.js +4 -1
  82. package/dist/internal/service/user.service.d.ts +2 -0
  83. package/dist/internal/service/user.service.js +20 -0
  84. package/dist/themes/scrollbar.scss +37 -37
  85. package/dist/themes/tera-ui-base.css +210 -210
  86. package/dist/themes/tw-preset.cjs +153 -153
  87. package/dist/types/user-data.d.ts +31 -0
  88. package/dist/types/user-data.js +1 -0
  89. package/package.json +98 -96
  90. package/scripts/add-component-template.js +120 -120
  91. package/scripts/generate-ts-index.js +138 -136
@@ -0,0 +1,11 @@
1
+ import { type VariantProps } from "tailwind-variants";
2
+ import type { UserData } from "../../types/user-data";
3
+ export declare const styles: import("tailwind-variants").TVReturnType<{}, undefined, "", import("tailwind-variants/dist/config").TVConfig<{}, {}>, {}, undefined, import("tailwind-variants").TVReturnType<{}, undefined, "", import("tailwind-variants/dist/config").TVConfig<{}, {}>, unknown, unknown, undefined>>;
4
+ type UserAvatarWithMenuVariants = VariantProps<typeof styles>;
5
+ export interface UserAvatarWithMenuProps extends UserAvatarWithMenuVariants {
6
+ children?: any;
7
+ class?: string;
8
+ user?: UserData;
9
+ onLogout?: () => void;
10
+ }
11
+ export {};
@@ -0,0 +1,7 @@
1
+ import { tv } from "tailwind-variants";
2
+ export const styles = tv({
3
+ base: '',
4
+ variants: {},
5
+ compoundVariants: [],
6
+ defaultVariants: {},
7
+ });
@@ -0,0 +1,68 @@
1
+ <script lang="ts">
2
+ import {type UserAvatarWithMenuProps} from "./UserAvatarWithMenu";
3
+ import {Avatar} from "../avatar";
4
+ import {
5
+ DropdownMenu,
6
+ DropdownMenuGroup,
7
+ DropdownMenuHeader,
8
+ DropdownMenuItem,
9
+ DropdownMenuSeparator
10
+ } from "../dropdown-menu";
11
+ import {IconLogout, IconSettings} from "../icons";
12
+ import {extractShortUsernameFromEmail} from "../../internal/service/user.service";
13
+
14
+ let {children, user, onLogout,...props}: UserAvatarWithMenuProps = $props();
15
+
16
+ let shortUserName = extractShortUsernameFromEmail(user.email)
17
+ let triggerRef = $state()
18
+ let open = $state(true)
19
+ </script>
20
+
21
+
22
+ {#if user}
23
+ <button bind:this={triggerRef}>
24
+ <Avatar
25
+ userUid={user.userUid}
26
+ >
27
+ {shortUserName}
28
+ </Avatar>
29
+ </button>
30
+
31
+ <DropdownMenu
32
+ bind:open
33
+ triggerRef={triggerRef}
34
+ class="!min-w-[14rem]"
35
+ >
36
+ <DropdownMenuHeader>
37
+ <div class="grid grid-cols-[auto,1fr] gap-2 overflow-hidden break-all items-center">
38
+ <Avatar border={false}
39
+ size="lg"
40
+ userUid={user.userUid}
41
+ >
42
+ {shortUserName}
43
+ </Avatar>
44
+ {#if user.email}
45
+ {user.email}
46
+ {/if}
47
+ </div>
48
+
49
+ </DropdownMenuHeader>
50
+ <DropdownMenuSeparator/>
51
+
52
+ <DropdownMenuGroup>
53
+ <DropdownMenuItem
54
+ href="/account-settings"
55
+ >
56
+ <IconSettings/>
57
+ Account Settings
58
+ </DropdownMenuItem>
59
+ </DropdownMenuGroup>
60
+ <DropdownMenuSeparator/>
61
+ <DropdownMenuGroup>
62
+ <DropdownMenuItem onclick={onLogout}>
63
+ <IconLogout/>
64
+ Logout
65
+ </DropdownMenuItem>
66
+ </DropdownMenuGroup>
67
+ </DropdownMenu>
68
+ {/if}
@@ -0,0 +1,3 @@
1
+ import { type UserAvatarWithMenuProps } from "./UserAvatarWithMenu";
2
+ declare const UserAvatarWithMenu: import("svelte").Component<UserAvatarWithMenuProps, {}, "">;
3
+ export default UserAvatarWithMenu;
@@ -0,0 +1 @@
1
+ export { default as UserAvatarWithMenu } from './UserAvatarWithMenu.svelte';
@@ -0,0 +1 @@
1
+ export { default as UserAvatarWithMenu } from './UserAvatarWithMenu.svelte';
package/dist/index.d.ts CHANGED
@@ -1,10 +1,12 @@
1
+ export { Avatar } from './components/avatar';
1
2
  export { BrandLogo } from './components/brand-logo';
2
3
  export { Button } from './components/button';
3
4
  export { Combobox } from './components/combobox';
4
5
  export { Command } from './components/command';
5
6
  export { Dialog, DialogAstro } from './components/dialog';
7
+ export { DropdownMenu, DropdownMenuItem, DropdownMenuGroup, DropdownMenuHeader, DropdownMenuSeparator } from './components/dropdown-menu';
6
8
  export { Header } from './components/header';
7
- export { IconArrowBigRightFilled, IconBook, IconBookmarkPlus, IconCalculator, IconCheck, IconChevronDown, IconCopy, IconCopyCheckFilled, IconHamburger, IconLanguage, IconLoader2, IconMoon, IconPointFilled, IconSearch, IconSun, IconSwitchHorizontal, IconSwitchVertical, IconTransform, IconX } from './components/icons';
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';
8
10
  export { Input } from './components/input';
9
11
  export { LanguagePickerButton } from './components/language-picker-button';
10
12
  export { LightDarkToggle } from './components/light-dark-toggle';
@@ -12,3 +14,4 @@ export { Popover } from './components/popover';
12
14
  export { PopoverResponsive } from './components/popover-responsive';
13
15
  export { SideNavigation, SideNavigationLayout, toggleSideNavigation } from './components/side-navigation';
14
16
  export { TeraUiContext } from './components/tera-ui-context';
17
+ export { UserAvatarWithMenu } from './components/user-avatar-with-menu';
package/dist/index.js CHANGED
@@ -1,10 +1,12 @@
1
+ export { Avatar } from './components/avatar';
1
2
  export { BrandLogo } from './components/brand-logo';
2
3
  export { Button } from './components/button';
3
4
  export { Combobox } from './components/combobox';
4
5
  export { Command } from './components/command';
5
6
  export { Dialog, DialogAstro } from './components/dialog';
7
+ export { DropdownMenu, DropdownMenuItem, DropdownMenuGroup, DropdownMenuHeader, DropdownMenuSeparator } from './components/dropdown-menu';
6
8
  export { Header } from './components/header';
7
- export { IconArrowBigRightFilled, IconBook, IconBookmarkPlus, IconCalculator, IconCheck, IconChevronDown, IconCopy, IconCopyCheckFilled, IconHamburger, IconLanguage, IconLoader2, IconMoon, IconPointFilled, IconSearch, IconSun, IconSwitchHorizontal, IconSwitchVertical, IconTransform, IconX } from './components/icons';
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';
8
10
  export { Input } from './components/input';
9
11
  export { LanguagePickerButton } from './components/language-picker-button';
10
12
  export { LightDarkToggle } from './components/light-dark-toggle';
@@ -12,3 +14,4 @@ export { Popover } from './components/popover';
12
14
  export { PopoverResponsive } from './components/popover-responsive';
13
15
  export { SideNavigation, SideNavigationLayout, toggleSideNavigation } from './components/side-navigation';
14
16
  export { TeraUiContext } from './components/tera-ui-context';
17
+ export { UserAvatarWithMenu } from './components/user-avatar-with-menu';
@@ -0,0 +1,2 @@
1
+ export declare function extractShortUsernameFromEmail(email: string): string;
2
+ export declare function getUserAvatarUrl(userUid: string): string;
@@ -0,0 +1,20 @@
1
+ import { getGlobalContext } from "../../components/tera-ui-context/global-context";
2
+ export function extractShortUsernameFromEmail(email) {
3
+ if (!email || typeof email !== 'string') {
4
+ return '?';
5
+ }
6
+ // Extract the part before the '@' symbol
7
+ const usernamePart = email.split('@')[0];
8
+ // Replace any non-alphanumeric characters with a space and trim extra spaces
9
+ const cleanUsername = usernamePart.replace(/[^a-zA-Z0-9]/g, ' ').trim();
10
+ // Split the username into words and create an initialism
11
+ const words = cleanUsername.split(' ');
12
+ let shortForm = words.map(word => word[0]).join('');
13
+ // Ensure the result is between 1 to 4 characters
14
+ shortForm = shortForm.slice(0, 4).toUpperCase();
15
+ return shortForm || '?';
16
+ }
17
+ export function getUserAvatarUrl(userUid) {
18
+ let baseUrl = `${getGlobalContext().apiUrl || 'https://hoidap.xyz/api/v1'}/users`;
19
+ return `${baseUrl}/avatar/${encodeURI(userUid)}`;
20
+ }
@@ -1,37 +1,37 @@
1
- /* Light mode scrollbar styles */
2
- ::-webkit-scrollbar {
3
- width: 8px;
4
- height: 8px;
5
- }
6
-
7
- ::-webkit-scrollbar-track {
8
- background: transparent; /* Transparent track */
9
- }
10
-
11
- ::-webkit-scrollbar-thumb {
12
- background-color: rgba(0, 0, 0, 0.2); /* Light mode: dark thumb */
13
- border-radius: 10px;
14
- }
15
-
16
- ::-webkit-scrollbar-thumb:hover {
17
- background-color: rgba(0, 0, 0, 0.4); /* Darker thumb on hover */
18
- }
19
-
20
- /* Dark mode scrollbar styles */
21
- .dark ::-webkit-scrollbar-thumb {
22
- background-color: rgba(255, 255, 255, 0.2); /* Dark mode: light thumb */
23
- }
24
-
25
- .dark ::-webkit-scrollbar-thumb:hover {
26
- background-color: rgba(255, 255, 255, 0.4); /* Lighter thumb on hover */
27
- }
28
-
29
- /* Firefox scrollbar styling */
30
- * {
31
- scrollbar-width: thin;
32
- scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
33
- }
34
-
35
- html.dark, .dark * {
36
- scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
37
- }
1
+ /* Light mode scrollbar styles */
2
+ ::-webkit-scrollbar {
3
+ width: 8px;
4
+ height: 8px;
5
+ }
6
+
7
+ ::-webkit-scrollbar-track {
8
+ background: transparent; /* Transparent track */
9
+ }
10
+
11
+ ::-webkit-scrollbar-thumb {
12
+ background-color: rgba(0, 0, 0, 0.2); /* Light mode: dark thumb */
13
+ border-radius: 10px;
14
+ }
15
+
16
+ ::-webkit-scrollbar-thumb:hover {
17
+ background-color: rgba(0, 0, 0, 0.4); /* Darker thumb on hover */
18
+ }
19
+
20
+ /* Dark mode scrollbar styles */
21
+ .dark ::-webkit-scrollbar-thumb {
22
+ background-color: rgba(255, 255, 255, 0.2); /* Dark mode: light thumb */
23
+ }
24
+
25
+ .dark ::-webkit-scrollbar-thumb:hover {
26
+ background-color: rgba(255, 255, 255, 0.4); /* Lighter thumb on hover */
27
+ }
28
+
29
+ /* Firefox scrollbar styling */
30
+ * {
31
+ scrollbar-width: thin;
32
+ scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
33
+ }
34
+
35
+ html.dark, .dark * {
36
+ scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
37
+ }
@@ -1,210 +1,210 @@
1
- /* Default base style */
2
- @tailwind base;
3
- @tailwind components;
4
- @tailwind utilities;
5
-
6
- @import "scrollbar.scss";
7
-
8
- .ripple {
9
- position: absolute;
10
- border-radius: 50%;
11
- transform: scale(0);
12
- animation: ripple-animation 1s ease-out;
13
- pointer-events: none;
14
- }
15
-
16
- @keyframes ripple-animation {
17
- to {
18
- transform: scale(4);
19
- opacity: 0;
20
- }
21
- }
22
-
23
- body {
24
- background: theme(colors.neutral.token.1);
25
- color: theme(colors.neutral.token.13);
26
- }
27
-
28
-
29
-
30
- @layer components {
31
- .border,
32
- .border-r,
33
- .border-l,
34
- .border-t,
35
- .border-b,
36
- .border-x,
37
- .border-y {
38
- border-color: theme(colors.neutral.token.5);
39
- }
40
- }
41
-
42
-
43
- @layer utilities {
44
- /* Hide scrollbar for Chrome, Safari and Opera */
45
- .hide-scrollbar::-webkit-scrollbar {
46
- display: none !important;
47
- }
48
- /* Hide scrollbar for IE, Edge and Firefox */
49
- .hide-scrollbar {
50
- -ms-overflow-style: none !important; /* IE and Edge */
51
- scrollbar-width: none !important; /* Firefox */
52
- }
53
-
54
- .skeleton {
55
- @apply animate-pulse bg-neutral-token-4 rounded h-4 w-full;
56
- }
57
- }
58
-
59
-
60
-
61
-
62
- :root {
63
- --border-radius-base: 0.25rem;
64
- --border-radius-container: 0.5rem;
65
- --tw---alias-color-primary-50: 215 90 96;
66
- --tw---alias-color-primary-100: 217 91 87;
67
- --tw---alias-color-primary-200: 217 91 82;
68
- --tw---alias-color-primary-300: 217 91 73;
69
- --tw---alias-color-primary-400: 217 91 68;
70
- --tw---alias-color-primary-500: 217 91 60;
71
- --tw---alias-color-primary-600: 217 73 55;
72
- --tw---alias-color-primary-700: 217 61 43;
73
- --tw---alias-color-primary-800: 217 62 33;
74
- --tw---alias-color-primary-900: 217 61 25;
75
- --tw---alias-color-error-50: 0 81 96;
76
- --tw---alias-color-error-100: 0 84 88;
77
- --tw---alias-color-error-200: 0 85 82;
78
- --tw---alias-color-error-300: 0 84 73;
79
- --tw---alias-color-error-400: 0 84 68;
80
- --tw---alias-color-error-500: 0 84 60;
81
- --tw---alias-color-error-600: 0 67 55;
82
- --tw---alias-color-error-700: 0 56 43;
83
- --tw---alias-color-error-800: 0 56 33;
84
- --tw---alias-color-error-900: 0 55 25;
85
- --tw---alias-color-success-50: 143 57 95;
86
- --tw---alias-color-success-100: 142 59 83;
87
- --tw---alias-color-success-200: 142 58 75;
88
- --tw---alias-color-success-300: 142 58 63;
89
- --tw---alias-color-success-400: 142 59 56;
90
- --tw---alias-color-success-500: 142 71 45;
91
- --tw---alias-color-success-600: 142 70 41;
92
- --tw---alias-color-success-700: 142 71 32;
93
- --tw---alias-color-success-800: 142 70 25;
94
- --tw---alias-color-success-900: 142 71 19;
95
- --tw---alias-color-neutral-1: 0 0 100;
96
- --tw---alias-color-neutral-2: 0 0 99;
97
- --tw---alias-color-neutral-3: 0 0 96;
98
- --tw---alias-color-neutral-4: 0 0 94;
99
- --tw---alias-color-neutral-5: 0 0 85;
100
- --tw---alias-color-neutral-6: 0 0 75;
101
- --tw---alias-color-neutral-7: 0 0 55;
102
- --tw---alias-color-neutral-8: 0 0 35;
103
- --tw---alias-color-neutral-9: 0 0 27;
104
- --tw---alias-color-neutral-10: 0 0 15;
105
- --tw---alias-color-neutral-11: 0 0 12;
106
- --tw---alias-color-neutral-12: 0 0 8;
107
- --tw---alias-color-neutral-13: 0 0 0;
108
- --tw---alias-color-warning-50: 25 92 95;
109
- --tw---alias-color-warning-100: 25 95 85;
110
- --tw---alias-color-warning-200: 25 95 78;
111
- --tw---alias-color-warning-300: 24 95 69;
112
- --tw---alias-color-warning-400: 25 95 63;
113
- --tw---alias-color-warning-500: 25 95 53;
114
- --tw---alias-color-warning-600: 25 84 48;
115
- --tw---alias-color-warning-700: 25 83 38;
116
- --tw---alias-color-warning-800: 24 84 29;
117
- --tw---alias-color-warning-900: 24 84 22;
118
- --tw---alias-color-information-50: 215 90 96;
119
- --tw---alias-color-information-100: 217 91 87;
120
- --tw---alias-color-information-200: 217 91 82;
121
- --tw---alias-color-information-300: 217 91 73;
122
- --tw---alias-color-information-400: 217 91 68;
123
- --tw---alias-color-information-500: 217 91 60;
124
- --tw---alias-color-information-600: 217 73 55;
125
- --tw---alias-color-information-700: 217 61 43;
126
- --tw---alias-color-information-800: 217 62 33;
127
- --tw---alias-color-information-900: 217 61 25;
128
- --tw---alias-color-secondary-50: 330 80 96;
129
- --tw---alias-color-secondary-100: 331 81 88;
130
- --tw---alias-color-secondary-200: 330 81 82;
131
- --tw---alias-color-secondary-300: 330 81 73;
132
- --tw---alias-color-secondary-400: 331 81 68;
133
- --tw---alias-color-secondary-500: 330 81 60;
134
- --tw---alias-color-secondary-600: 331 65 55;
135
- --tw---alias-color-secondary-700: 330 53 43;
136
- --tw---alias-color-secondary-800: 331 53 33;
137
- --tw---alias-color-secondary-900: 330 53 25;
138
- --tw---alias-color-brand-500: 212 100 47;
139
- --tw---token-color-brand-token-5: 212 100 47;
140
- --tw---token-color-neutral-token-1: 0 0 100;
141
- --tw---token-color-neutral-token-2: 0 0 99;
142
- --tw---token-color-neutral-token-3: 0 0 96;
143
- --tw---token-color-neutral-token-4: 0 0 94;
144
- --tw---token-color-neutral-token-5: 0 0 85;
145
- --tw---token-color-neutral-token-6: 0 0 75;
146
- --tw---token-color-neutral-token-7: 0 0 55;
147
- --tw---token-color-neutral-token-8: 0 0 35;
148
- --tw---token-color-neutral-token-9: 0 0 27;
149
- --tw---token-color-neutral-token-10: 0 0 15;
150
- --tw---token-color-neutral-token-11: 0 0 12;
151
- --tw---token-color-neutral-token-12: 0 0 8;
152
- --tw---token-color-neutral-token-13: 0 0 0;
153
- --tw---token-color-primary-token-1: 215 90 96;
154
- --tw---token-color-primary-token-2: 217 91 87;
155
- --tw---token-color-primary-token-3: 217 91 82;
156
- --tw---token-color-primary-token-4: 217 91 73;
157
- --tw---token-color-primary-token-5: 217 91 68;
158
- --tw---token-color-primary-token-6: 217 91 60;
159
- --tw---token-color-primary-token-7: 217 73 55;
160
- --tw---token-color-primary-token-8: 217 61 43;
161
- --tw---token-color-primary-token-9: 217 62 33;
162
- --tw---token-color-primary-token-10: 217 61 25;
163
- }
164
-
165
-
166
-
167
- :root.dark {
168
- --tw---token-color-brand-token-5: 212 100 47;
169
- --tw---token-color-neutral-token-1: 0 0 0;
170
- --tw---token-color-neutral-token-2: 0 0 8;
171
- --tw---token-color-neutral-token-3: 0 0 12;
172
- --tw---token-color-neutral-token-4: 0 0 15;
173
- --tw---token-color-neutral-token-5: 0 0 27;
174
- --tw---token-color-neutral-token-6: 0 0 35;
175
- --tw---token-color-neutral-token-7: 0 0 55;
176
- --tw---token-color-neutral-token-8: 0 0 75;
177
- --tw---token-color-neutral-token-9: 0 0 85;
178
- --tw---token-color-neutral-token-10: 0 0 94;
179
- --tw---token-color-neutral-token-11: 0 0 96;
180
- --tw---token-color-neutral-token-12: 0 0 99;
181
- --tw---token-color-neutral-token-13: 0 0 100;
182
- --tw---token-color-primary-token-1: 217 61 25;
183
- --tw---token-color-primary-token-2: 217 62 33;
184
- --tw---token-color-primary-token-3: 217 61 43;
185
- --tw---token-color-primary-token-4: 217 73 55;
186
- --tw---token-color-primary-token-5: 217 91 60;
187
- --tw---token-color-primary-token-6: 217 91 68;
188
- --tw---token-color-primary-token-7: 217 91 73;
189
- --tw---token-color-primary-token-8: 217 91 82;
190
- --tw---token-color-primary-token-9: 217 91 87;
191
- --tw---token-color-primary-token-10: 215 90 96;
192
- }
193
-
194
-
195
-
196
- /* Base responsive variable */
197
- :root {
198
- --header-height: 3rem;
199
- }
200
-
201
- @media (min-width: theme(screens.md)) {
202
- :root {
203
- --header-height: 3.5rem;
204
- }
205
- }
206
-
207
- @media (min-width: theme(screens.lg)) {
208
- :root {
209
- }
210
- }
1
+ /* Default base style */
2
+ @tailwind base;
3
+ @tailwind components;
4
+ @tailwind utilities;
5
+
6
+ @import "scrollbar.scss";
7
+
8
+ .ripple {
9
+ position: absolute;
10
+ border-radius: 50%;
11
+ transform: scale(0);
12
+ animation: ripple-animation 1s ease-out;
13
+ pointer-events: none;
14
+ }
15
+
16
+ @keyframes ripple-animation {
17
+ to {
18
+ transform: scale(4);
19
+ opacity: 0;
20
+ }
21
+ }
22
+
23
+ body {
24
+ background: theme(colors.neutral.token.1);
25
+ color: theme(colors.neutral.token.13);
26
+ }
27
+
28
+
29
+
30
+ @layer components {
31
+ .border,
32
+ .border-r,
33
+ .border-l,
34
+ .border-t,
35
+ .border-b,
36
+ .border-x,
37
+ .border-y {
38
+ border-color: theme(colors.neutral.token.5);
39
+ }
40
+ }
41
+
42
+
43
+ @layer utilities {
44
+ /* Hide scrollbar for Chrome, Safari and Opera */
45
+ .hide-scrollbar::-webkit-scrollbar {
46
+ display: none !important;
47
+ }
48
+ /* Hide scrollbar for IE, Edge and Firefox */
49
+ .hide-scrollbar {
50
+ -ms-overflow-style: none !important; /* IE and Edge */
51
+ scrollbar-width: none !important; /* Firefox */
52
+ }
53
+
54
+ .skeleton {
55
+ @apply animate-pulse bg-neutral-token-4 rounded h-4 w-full;
56
+ }
57
+ }
58
+
59
+
60
+
61
+
62
+ :root {
63
+ --border-radius-base: 0.25rem;
64
+ --border-radius-container: 0.5rem;
65
+ --tw---alias-color-primary-50: 215 90 96;
66
+ --tw---alias-color-primary-100: 217 91 87;
67
+ --tw---alias-color-primary-200: 217 91 82;
68
+ --tw---alias-color-primary-300: 217 91 73;
69
+ --tw---alias-color-primary-400: 217 91 68;
70
+ --tw---alias-color-primary-500: 217 91 60;
71
+ --tw---alias-color-primary-600: 217 73 55;
72
+ --tw---alias-color-primary-700: 217 61 43;
73
+ --tw---alias-color-primary-800: 217 62 33;
74
+ --tw---alias-color-primary-900: 217 61 25;
75
+ --tw---alias-color-error-50: 0 81 96;
76
+ --tw---alias-color-error-100: 0 84 88;
77
+ --tw---alias-color-error-200: 0 85 82;
78
+ --tw---alias-color-error-300: 0 84 73;
79
+ --tw---alias-color-error-400: 0 84 68;
80
+ --tw---alias-color-error-500: 0 84 60;
81
+ --tw---alias-color-error-600: 0 67 55;
82
+ --tw---alias-color-error-700: 0 56 43;
83
+ --tw---alias-color-error-800: 0 56 33;
84
+ --tw---alias-color-error-900: 0 55 25;
85
+ --tw---alias-color-success-50: 143 57 95;
86
+ --tw---alias-color-success-100: 142 59 83;
87
+ --tw---alias-color-success-200: 142 58 75;
88
+ --tw---alias-color-success-300: 142 58 63;
89
+ --tw---alias-color-success-400: 142 59 56;
90
+ --tw---alias-color-success-500: 142 71 45;
91
+ --tw---alias-color-success-600: 142 70 41;
92
+ --tw---alias-color-success-700: 142 71 32;
93
+ --tw---alias-color-success-800: 142 70 25;
94
+ --tw---alias-color-success-900: 142 71 19;
95
+ --tw---alias-color-neutral-1: 0 0 100;
96
+ --tw---alias-color-neutral-2: 0 0 99;
97
+ --tw---alias-color-neutral-3: 0 0 96;
98
+ --tw---alias-color-neutral-4: 0 0 94;
99
+ --tw---alias-color-neutral-5: 0 0 85;
100
+ --tw---alias-color-neutral-6: 0 0 75;
101
+ --tw---alias-color-neutral-7: 0 0 55;
102
+ --tw---alias-color-neutral-8: 0 0 35;
103
+ --tw---alias-color-neutral-9: 0 0 27;
104
+ --tw---alias-color-neutral-10: 0 0 15;
105
+ --tw---alias-color-neutral-11: 0 0 12;
106
+ --tw---alias-color-neutral-12: 0 0 8;
107
+ --tw---alias-color-neutral-13: 0 0 0;
108
+ --tw---alias-color-warning-50: 25 92 95;
109
+ --tw---alias-color-warning-100: 25 95 85;
110
+ --tw---alias-color-warning-200: 25 95 78;
111
+ --tw---alias-color-warning-300: 24 95 69;
112
+ --tw---alias-color-warning-400: 25 95 63;
113
+ --tw---alias-color-warning-500: 25 95 53;
114
+ --tw---alias-color-warning-600: 25 84 48;
115
+ --tw---alias-color-warning-700: 25 83 38;
116
+ --tw---alias-color-warning-800: 24 84 29;
117
+ --tw---alias-color-warning-900: 24 84 22;
118
+ --tw---alias-color-information-50: 215 90 96;
119
+ --tw---alias-color-information-100: 217 91 87;
120
+ --tw---alias-color-information-200: 217 91 82;
121
+ --tw---alias-color-information-300: 217 91 73;
122
+ --tw---alias-color-information-400: 217 91 68;
123
+ --tw---alias-color-information-500: 217 91 60;
124
+ --tw---alias-color-information-600: 217 73 55;
125
+ --tw---alias-color-information-700: 217 61 43;
126
+ --tw---alias-color-information-800: 217 62 33;
127
+ --tw---alias-color-information-900: 217 61 25;
128
+ --tw---alias-color-secondary-50: 330 80 96;
129
+ --tw---alias-color-secondary-100: 331 81 88;
130
+ --tw---alias-color-secondary-200: 330 81 82;
131
+ --tw---alias-color-secondary-300: 330 81 73;
132
+ --tw---alias-color-secondary-400: 331 81 68;
133
+ --tw---alias-color-secondary-500: 330 81 60;
134
+ --tw---alias-color-secondary-600: 331 65 55;
135
+ --tw---alias-color-secondary-700: 330 53 43;
136
+ --tw---alias-color-secondary-800: 331 53 33;
137
+ --tw---alias-color-secondary-900: 330 53 25;
138
+ --tw---alias-color-brand-500: 212 100 47;
139
+ --tw---token-color-brand-token-5: 212 100 47;
140
+ --tw---token-color-neutral-token-1: 0 0 100;
141
+ --tw---token-color-neutral-token-2: 0 0 99;
142
+ --tw---token-color-neutral-token-3: 0 0 96;
143
+ --tw---token-color-neutral-token-4: 0 0 94;
144
+ --tw---token-color-neutral-token-5: 0 0 85;
145
+ --tw---token-color-neutral-token-6: 0 0 75;
146
+ --tw---token-color-neutral-token-7: 0 0 55;
147
+ --tw---token-color-neutral-token-8: 0 0 35;
148
+ --tw---token-color-neutral-token-9: 0 0 27;
149
+ --tw---token-color-neutral-token-10: 0 0 15;
150
+ --tw---token-color-neutral-token-11: 0 0 12;
151
+ --tw---token-color-neutral-token-12: 0 0 8;
152
+ --tw---token-color-neutral-token-13: 0 0 0;
153
+ --tw---token-color-primary-token-1: 215 90 96;
154
+ --tw---token-color-primary-token-2: 217 91 87;
155
+ --tw---token-color-primary-token-3: 217 91 82;
156
+ --tw---token-color-primary-token-4: 217 91 73;
157
+ --tw---token-color-primary-token-5: 217 91 68;
158
+ --tw---token-color-primary-token-6: 217 91 60;
159
+ --tw---token-color-primary-token-7: 217 73 55;
160
+ --tw---token-color-primary-token-8: 217 61 43;
161
+ --tw---token-color-primary-token-9: 217 62 33;
162
+ --tw---token-color-primary-token-10: 217 61 25;
163
+ }
164
+
165
+
166
+
167
+ :root.dark {
168
+ --tw---token-color-brand-token-5: 212 100 47;
169
+ --tw---token-color-neutral-token-1: 0 0 0;
170
+ --tw---token-color-neutral-token-2: 0 0 8;
171
+ --tw---token-color-neutral-token-3: 0 0 12;
172
+ --tw---token-color-neutral-token-4: 0 0 15;
173
+ --tw---token-color-neutral-token-5: 0 0 27;
174
+ --tw---token-color-neutral-token-6: 0 0 35;
175
+ --tw---token-color-neutral-token-7: 0 0 55;
176
+ --tw---token-color-neutral-token-8: 0 0 75;
177
+ --tw---token-color-neutral-token-9: 0 0 85;
178
+ --tw---token-color-neutral-token-10: 0 0 94;
179
+ --tw---token-color-neutral-token-11: 0 0 96;
180
+ --tw---token-color-neutral-token-12: 0 0 99;
181
+ --tw---token-color-neutral-token-13: 0 0 100;
182
+ --tw---token-color-primary-token-1: 217 61 25;
183
+ --tw---token-color-primary-token-2: 217 62 33;
184
+ --tw---token-color-primary-token-3: 217 61 43;
185
+ --tw---token-color-primary-token-4: 217 73 55;
186
+ --tw---token-color-primary-token-5: 217 91 60;
187
+ --tw---token-color-primary-token-6: 217 91 68;
188
+ --tw---token-color-primary-token-7: 217 91 73;
189
+ --tw---token-color-primary-token-8: 217 91 82;
190
+ --tw---token-color-primary-token-9: 217 91 87;
191
+ --tw---token-color-primary-token-10: 215 90 96;
192
+ }
193
+
194
+
195
+
196
+ /* Base responsive variable */
197
+ :root {
198
+ --header-height: 3rem;
199
+ }
200
+
201
+ @media (min-width: theme(screens.md)) {
202
+ :root {
203
+ --header-height: 3.5rem;
204
+ }
205
+ }
206
+
207
+ @media (min-width: theme(screens.lg)) {
208
+ :root {
209
+ }
210
+ }