tera-system-ui 0.0.50 → 0.0.53
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/actions/clickOutside.js +1 -1
- package/dist/components/fonts/TeraFontSansSerif.astro +0 -1
- package/dist/components/fonts/TeraFontSansSerif.svelte +0 -1
- package/dist/components/fonts/TeraFontSansSerif.svelte.d.ts +0 -1
- package/dist/components/side-navigation/SideNavigationLayout.svelte +2 -0
- package/dist/components/side-navigation/sidenav.scss +116 -107
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ export function clickOutside(node, data) {
|
|
|
13
13
|
document.addEventListener('click', handleClick, true);
|
|
14
14
|
return {
|
|
15
15
|
destroy() {
|
|
16
|
-
document.
|
|
16
|
+
document.addEventListener('click', handleClick, true);
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import '@fontsource-variable/open-sans';
|
|
2
|
-
import '@fontsource-variable/open-sans/wght-italic.css';
|
|
3
2
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
4
3
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
5
4
|
$$bindings?: Bindings;
|
|
@@ -1,149 +1,158 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
--sidebar-width: 0;
|
|
3
|
+
--sidebar-transition-duration: 0.2s;
|
|
4
|
+
--sidebar-main-margin-left: 0;
|
|
5
|
+
--sidebar-border-width: 0;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.side-nav_main-layout {
|
|
9
|
-
|
|
9
|
+
transition: padding-left var(--sidebar-transition-duration);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.side-nav_main-side-bar {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
width: var(--sidebar-width);
|
|
16
|
-
overflow-x: hidden;
|
|
17
|
-
border-right: var(--sidebar-border-width) solid theme('colors.neutral.token.5');
|
|
18
|
-
height: 100dvh;
|
|
19
|
-
position: fixed;
|
|
20
|
-
top: 0;
|
|
21
|
-
left: 0;
|
|
22
|
-
bottom: 0;
|
|
23
|
-
|
|
24
|
-
transition: width var(--sidebar-transition-duration);
|
|
25
|
-
background: theme('colors.neutral.token.1');
|
|
26
|
-
|
|
27
|
-
ul {
|
|
13
|
+
container-type: inline-size;
|
|
14
|
+
z-index: 50;
|
|
28
15
|
width: var(--sidebar-width);
|
|
16
|
+
overflow-x: hidden;
|
|
17
|
+
border-right: var(--sidebar-border-width) solid theme('colors.neutral.token.5');
|
|
18
|
+
height: 100dvh;
|
|
19
|
+
position: fixed;
|
|
20
|
+
top: 0;
|
|
21
|
+
left: 0;
|
|
22
|
+
bottom: 0;
|
|
23
|
+
|
|
29
24
|
transition: width var(--sidebar-transition-duration);
|
|
30
|
-
|
|
25
|
+
background: theme('colors.neutral.token.1');
|
|
31
26
|
|
|
27
|
+
ul {
|
|
28
|
+
width: var(--sidebar-width);
|
|
29
|
+
transition: width var(--sidebar-transition-duration);
|
|
30
|
+
}
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
|
|
35
34
|
.sm-hidden {
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
opacity: 0;
|
|
36
|
+
transition: opacity var(--sidebar-transition-duration);
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
@container (min-width: 3rem) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
.sm-hidden {
|
|
41
|
+
opacity: 1;
|
|
42
|
+
}
|
|
44
43
|
}
|
|
45
44
|
|
|
46
45
|
.side-nav_main-content {
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
margin-left: var(--sidebar-main-margin-left);
|
|
47
|
+
transition: margin-left var(--sidebar-transition-duration);
|
|
49
48
|
}
|
|
50
49
|
|
|
50
|
+
.side-nav-backdrop {
|
|
51
|
+
//display: none;
|
|
52
|
+
z-index: -1;
|
|
53
|
+
position: fixed;
|
|
54
|
+
opacity: 0;
|
|
55
|
+
left: 0;
|
|
56
|
+
transition: opacity var(--sidebar-transition-duration),
|
|
57
|
+
left var(--sidebar-transition-duration);
|
|
58
|
+
|
|
59
|
+
}
|
|
51
60
|
|
|
52
61
|
.side-nav_main-layout {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
62
|
+
&[data-side-nav-state="expand"], &[data-side-nav-temporary-expand="true"] {
|
|
63
|
+
--sidebar-width: 16.5rem;
|
|
64
|
+
--sidebar-border-width: 1px;
|
|
65
|
+
|
|
66
|
+
.header-brand-logo {
|
|
67
|
+
display: none;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&[data-side-nav-state="expand"] {
|
|
72
|
+
.side-nav-backdrop {
|
|
73
|
+
display: block;
|
|
74
|
+
top: 0;
|
|
75
|
+
bottom: 0;
|
|
76
|
+
right: 0;
|
|
77
|
+
left: var(--sidebar-width);
|
|
78
|
+
z-index: 100;
|
|
79
|
+
@apply bg-neutral-token-12/30 backdrop-blur-sm;
|
|
80
|
+
//background: yellow;
|
|
81
|
+
opacity: 1;
|
|
82
|
+
}
|
|
58
83
|
}
|
|
59
|
-
}
|
|
60
84
|
}
|
|
61
85
|
|
|
62
86
|
@media (min-width: theme('screens.md')) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
87
|
+
:root {
|
|
88
|
+
--sidebar-main-margin-left: 3rem;
|
|
89
|
+
--sidebar-border-width: 1px;
|
|
90
|
+
--sidebar-width: 3rem;
|
|
91
|
+
}
|
|
68
92
|
}
|
|
69
93
|
|
|
70
94
|
@media (min-width: theme('screens.xl')) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
.header-brand-logo {
|
|
76
|
-
display: none;
|
|
77
|
-
}
|
|
78
|
-
.side-nav_main-layout {
|
|
79
|
-
&[data-side-nav-state="compact"] {
|
|
80
|
-
--sidebar-main-margin-left: 3rem;
|
|
81
|
-
--sidebar-width: 3rem;
|
|
82
|
-
.header-brand-logo {
|
|
83
|
-
display: block;
|
|
84
|
-
}
|
|
95
|
+
:root {
|
|
96
|
+
--sidebar-main-margin-left: var(--sidebar-width);
|
|
97
|
+
--sidebar-width: 16.5rem;
|
|
85
98
|
}
|
|
99
|
+
.header-brand-logo {
|
|
100
|
+
display: none;
|
|
101
|
+
}
|
|
102
|
+
.side-nav_main-layout {
|
|
103
|
+
&[data-side-nav-state="compact"] {
|
|
104
|
+
--sidebar-main-margin-left: 3rem;
|
|
105
|
+
--sidebar-width: 3rem;
|
|
106
|
+
|
|
107
|
+
.header-brand-logo {
|
|
108
|
+
display: block;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
86
111
|
|
|
87
|
-
|
|
88
|
-
|
|
112
|
+
&[data-side-nav-temporary-expand="true"] {
|
|
113
|
+
--sidebar-width: 16.5rem;
|
|
89
114
|
|
|
115
|
+
}
|
|
90
116
|
}
|
|
91
|
-
}
|
|
92
117
|
}
|
|
93
118
|
|
|
94
119
|
|
|
95
120
|
.side-nav_item {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
121
|
+
color: theme('colors.neutral.token.13');
|
|
122
|
+
|
|
123
|
+
a {
|
|
124
|
+
display: flex;
|
|
125
|
+
gap: 0.5rem;
|
|
126
|
+
align-items: center;
|
|
127
|
+
width: 100%;
|
|
128
|
+
position: relative;
|
|
129
|
+
white-space: nowrap;
|
|
130
|
+
@apply px-3 py-3 font-semibold;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
svg {
|
|
134
|
+
&.icon {
|
|
135
|
+
min-width: 24px;
|
|
136
|
+
}
|
|
111
137
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
138
|
+
|
|
139
|
+
&.selected a {
|
|
140
|
+
color: theme('colors.neutral.token.1');
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&.selected {
|
|
144
|
+
a::after {
|
|
145
|
+
content: '';
|
|
146
|
+
position: absolute;
|
|
147
|
+
inset-inline: 0.25rem;
|
|
148
|
+
inset-block: 0.2rem;
|
|
149
|
+
background: theme('colors.neutral.token.11');
|
|
150
|
+
border-radius: theme('borderRadius.DEFAULT');
|
|
151
|
+
z-index: 0;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&:hover {
|
|
156
|
+
background-color: theme('colors.neutral.token.3');
|
|
129
157
|
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
//&.selected {
|
|
133
|
-
// a::after {
|
|
134
|
-
// content: '';
|
|
135
|
-
// position: absolute;
|
|
136
|
-
// left: 0;
|
|
137
|
-
// top: 0;
|
|
138
|
-
// bottom: 0;
|
|
139
|
-
// width: 4px;
|
|
140
|
-
// height: 100%;
|
|
141
|
-
// background: theme('colors.primary.token.4');
|
|
142
|
-
// border-radius: 4px 0 0 4px;
|
|
143
|
-
// }
|
|
144
|
-
//}
|
|
145
|
-
|
|
146
|
-
&:hover {
|
|
147
|
-
background-color: theme('colors.neutral.token.3');
|
|
148
|
-
}
|
|
149
158
|
}
|