ui-svelte 0.2.2 → 0.2.4

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 (36) hide show
  1. package/dist/control/Audio.svelte +8 -12
  2. package/dist/control/css/btn.css +1 -1
  3. package/dist/display/Code.svelte +28 -11
  4. package/dist/display/Code.svelte.d.ts +5 -3
  5. package/dist/display/css/card.css +0 -10
  6. package/dist/display/css/code.css +7 -1
  7. package/dist/form/ComboBox.svelte +17 -17
  8. package/dist/form/ComboBox.svelte.d.ts +2 -2
  9. package/dist/hooks/use-search.svelte.d.ts +2 -1
  10. package/dist/index.css +2 -1
  11. package/dist/index.d.ts +3 -2
  12. package/dist/index.js +3 -2
  13. package/dist/layout/AppBar.svelte +28 -1
  14. package/dist/layout/AppBar.svelte.d.ts +2 -0
  15. package/dist/layout/Footer.svelte +25 -1
  16. package/dist/layout/Footer.svelte.d.ts +1 -0
  17. package/dist/layout/Sidebar.svelte +33 -3
  18. package/dist/layout/Sidebar.svelte.d.ts +1 -0
  19. package/dist/layout/css/app-bar.css +63 -0
  20. package/dist/layout/css/bottom-bar.css +63 -0
  21. package/dist/layout/css/footer.css +63 -0
  22. package/dist/layout/css/sidebar.css +63 -0
  23. package/dist/navigation/FooterGroup.svelte +51 -0
  24. package/dist/navigation/FooterGroup.svelte.d.ts +15 -0
  25. package/dist/{layout/FooterLinks.svelte → navigation/FooterNav.svelte} +2 -2
  26. package/dist/navigation/FooterNav.svelte.d.ts +11 -0
  27. package/dist/navigation/NavMenu.svelte +2 -9
  28. package/dist/navigation/SideNav.svelte +0 -9
  29. package/dist/navigation/SideNav.svelte.d.ts +0 -1
  30. package/dist/navigation/css/footer-group.css +26 -0
  31. package/dist/{layout/css/footer-links.css → navigation/css/footer-nav.css} +3 -3
  32. package/dist/navigation/css/nav-menu.css +9 -39
  33. package/dist/navigation/css/side-nav.css +127 -66
  34. package/dist/overlay/css/modal.css +2 -2
  35. package/package.json +1 -1
  36. package/dist/layout/FooterLinks.svelte.d.ts +0 -11
@@ -1,38 +1,38 @@
1
1
  @layer components {
2
2
  .sidenav {
3
- @apply flex w-full min-w-0 flex-col gap-0.5 text-on-muted;
3
+ @apply flex w-full min-w-0 flex-col gap-0.5;
4
4
 
5
5
  .sidenav-divider {
6
6
  @apply my-2 h-px w-full bg-muted;
7
7
  }
8
8
 
9
9
  .sidenav-header {
10
- @apply flex items-center gap-2 px-3 py-3 text-sm font-bold text-on-surface;
10
+ @apply flex items-center gap-2 px-3 py-3;
11
11
  @apply mt-4 mb-1 first:mt-0;
12
12
  @apply justify-start;
13
13
 
14
14
  .icon {
15
- @apply h-5 w-5 shrink-0 text-on-surface;
15
+ @apply shrink-0;
16
16
  }
17
17
 
18
18
  .sidenav-header-content {
19
19
  @apply flex flex-1 flex-col overflow-hidden;
20
20
 
21
21
  .sidenav-header-label {
22
- @apply truncate font-bold uppercase text-xs tracking-wider text-left;
22
+ @apply text-sm truncate font-semibold tracking-wide text-left;
23
+ @apply opacity-75;
23
24
  }
24
25
 
25
26
  .sidenav-header-description {
26
- @apply truncate text-xs font-normal text-on-muted/70 text-left;
27
+ @apply truncate font-light text-left;
27
28
  }
28
29
  }
29
30
 
30
- &.sidenav-header-link {
31
- @apply cursor-pointer rounded-ui outline-none;
32
- @apply hover:bg-muted/50;
31
+ &.sidenav-header-link .sidenav-header-content {
32
+ @apply cursor-pointer;
33
33
 
34
- &.is-active {
35
- @apply bg-muted;
34
+ .sidenav-header-label {
35
+ @apply font-bold;
36
36
  }
37
37
  }
38
38
 
@@ -40,7 +40,7 @@
40
40
  @apply flex shrink-0 items-center justify-center ml-auto;
41
41
 
42
42
  .sidenav-arrow {
43
- @apply h-4 w-4 transition-transform duration-200;
43
+ @apply transition-transform duration-200;
44
44
 
45
45
  &.is-open {
46
46
  @apply rotate-90;
@@ -52,7 +52,6 @@
52
52
  .sidenav-item {
53
53
  @apply relative flex w-fit items-center gap-2 rounded-ui px-3 py-2;
54
54
  @apply cursor-pointer select-none outline-none;
55
- @apply hover:bg-muted;
56
55
 
57
56
  &.is-wide {
58
57
  @apply w-full;
@@ -60,21 +59,17 @@
60
59
 
61
60
  .sidenav-icon-wrapper {
62
61
  @apply flex shrink-0 items-center justify-center;
63
-
64
- .sidenav-icon {
65
- @apply h-5 w-5;
66
- }
67
62
  }
68
63
 
69
64
  .sidenav-content {
70
65
  @apply flex flex-1 flex-col overflow-hidden;
71
66
 
72
67
  .sidenav-label {
73
- @apply truncate font-medium text-sm;
68
+ @apply truncate font-light hover:font-semibold;
74
69
  }
75
70
 
76
71
  .sidenav-description {
77
- @apply truncate text-xs text-on-muted/70;
72
+ @apply truncate font-light;
78
73
  }
79
74
  }
80
75
 
@@ -82,7 +77,7 @@
82
77
  @apply flex shrink-0 items-center;
83
78
 
84
79
  .sidenav-status {
85
- @apply rounded-full bg-muted px-2 py-0.5 text-xs font-medium;
80
+ @apply rounded-full bg-muted px-2 py-0.5 font-medium;
86
81
  }
87
82
  }
88
83
 
@@ -90,7 +85,7 @@
90
85
  @apply flex shrink-0 items-center justify-center;
91
86
 
92
87
  .sidenav-arrow {
93
- @apply h-4 w-4 transition-transform duration-200;
88
+ @apply transition-transform duration-200;
94
89
 
95
90
  &.is-open {
96
91
  @apply rotate-90;
@@ -99,56 +94,156 @@
99
94
  }
100
95
  }
101
96
 
97
+ .sidenav-item.is-active .sidenav-label {
98
+ @apply font-semibold;
99
+ }
100
+
102
101
  &.is-sm {
103
102
  .sidenav-item {
104
- @apply gap-1.5 px-2 py-1.5 text-xs;
103
+ @apply gap-1.5 px-2 py-1.5;
105
104
 
106
105
  .sidenav-icon-wrapper .sidenav-icon {
107
106
  @apply h-4 w-4;
108
107
  }
108
+
109
+ .sidenav-content {
110
+ .sidenav-label {
111
+ @apply text-xs;
112
+ }
113
+
114
+ .sidenav-description {
115
+ @apply text-[10px];
116
+ }
117
+ }
118
+
119
+ .sidenav-status-wrapper .sidenav-status {
120
+ @apply text-[10px];
121
+ }
122
+
123
+ .sidenav-arrow-wrapper .sidenav-arrow {
124
+ @apply h-3 w-3;
125
+ }
109
126
  }
110
127
 
111
128
  .sidenav-header {
112
- @apply gap-1.5 px-2 py-1.5 text-xs;
129
+ @apply gap-1.5 px-2 py-1.5;
113
130
 
114
- .sidenav-header-icon {
131
+ .icon {
115
132
  @apply h-4 w-4;
116
133
  }
134
+
135
+ .sidenav-header-content {
136
+ .sidenav-header-label {
137
+ @apply text-xs;
138
+ }
139
+
140
+ .sidenav-header-description {
141
+ @apply text-[10px];
142
+ }
143
+ }
144
+
145
+ .sidenav-arrow-wrapper .sidenav-arrow {
146
+ @apply h-3 w-3;
147
+ }
117
148
  }
118
149
  }
119
150
 
120
151
  &.is-md {
121
152
  .sidenav-item {
122
- @apply gap-2 px-3 py-2 text-sm;
153
+ @apply gap-2 px-3 py-2;
123
154
 
124
155
  .sidenav-icon-wrapper .sidenav-icon {
125
156
  @apply h-5 w-5;
126
157
  }
158
+
159
+ .sidenav-content {
160
+ .sidenav-label {
161
+ @apply text-sm;
162
+ }
163
+
164
+ .sidenav-description {
165
+ @apply text-xs;
166
+ }
167
+ }
168
+
169
+ .sidenav-status-wrapper .sidenav-status {
170
+ @apply text-xs;
171
+ }
172
+
173
+ .sidenav-arrow-wrapper .sidenav-arrow {
174
+ @apply h-4 w-4;
175
+ }
127
176
  }
128
177
 
129
178
  .sidenav-header {
130
- @apply gap-2 px-3 py-2 text-sm;
179
+ @apply gap-2 px-3 py-2;
131
180
 
132
- .sidenav-header-icon {
181
+ .icon {
133
182
  @apply h-5 w-5;
134
183
  }
184
+
185
+ .sidenav-header-content {
186
+ .sidenav-header-label {
187
+ @apply text-sm;
188
+ }
189
+
190
+ .sidenav-header-description {
191
+ @apply text-xs;
192
+ }
193
+ }
194
+
195
+ .sidenav-arrow-wrapper .sidenav-arrow {
196
+ @apply h-4 w-4;
197
+ }
135
198
  }
136
199
  }
137
200
 
138
201
  &.is-lg {
139
202
  .sidenav-item {
140
- @apply gap-3 px-4 py-3 text-base;
203
+ @apply gap-3 px-4 py-3;
141
204
 
142
205
  .sidenav-icon-wrapper .sidenav-icon {
143
- @apply h-6 w-6;
206
+ @apply h-7 w-7;
207
+ }
208
+
209
+ .sidenav-content {
210
+ .sidenav-label {
211
+ @apply text-base;
212
+ }
213
+
214
+ .sidenav-description {
215
+ @apply text-sm;
216
+ }
217
+ }
218
+
219
+ .sidenav-status-wrapper .sidenav-status {
220
+ @apply text-sm;
221
+ }
222
+
223
+ .sidenav-arrow-wrapper .sidenav-arrow {
224
+ @apply h-5 w-5;
144
225
  }
145
226
  }
146
227
 
147
228
  .sidenav-header {
148
- @apply gap-3 px-4 py-3 text-base;
229
+ @apply gap-3 px-4 py-3;
230
+
231
+ .icon {
232
+ @apply h-7 w-7;
233
+ }
234
+
235
+ .sidenav-header-content {
236
+ .sidenav-header-label {
237
+ @apply text-base;
238
+ }
239
+
240
+ .sidenav-header-description {
241
+ @apply text-sm;
242
+ }
243
+ }
149
244
 
150
- .sidenav-header-icon {
151
- @apply h-6 w-6;
245
+ .sidenav-arrow-wrapper .sidenav-arrow {
246
+ @apply h-5 w-5;
152
247
  }
153
248
  }
154
249
  }
@@ -191,51 +286,17 @@
191
286
  }
192
287
  }
193
288
 
194
- &.sidenav-primary {
195
- .sidenav-item.is-active {
196
- @apply bg-on-primary text-primary;
197
-
198
- .sidenav-icon {
199
- @apply text-primary;
200
- }
201
- }
202
- }
203
-
204
- &.sidenav-secondary {
205
- .sidenav-item.is-active {
206
- @apply bg-on-secondary text-secondary;
207
-
208
- .sidenav-icon {
209
- @apply text-secondary;
210
- }
211
- }
212
- }
213
-
214
- &.sidenav-muted {
215
- .sidenav-item.is-active {
216
- @apply bg-muted text-on-muted;
217
-
218
- .sidenav-icon {
219
- @apply text-on-muted;
220
- }
221
- }
222
- }
223
-
224
289
  .sidenav-submenu-wrapper {
225
290
  @apply flex flex-col gap-0.5;
226
291
 
227
292
  .sidenav-submenu-trigger {
228
293
  @apply w-full cursor-pointer rounded-ui outline-none;
229
- @apply hover:bg-muted/50;
294
+ @apply hover:font-semibold;
230
295
  @apply justify-start;
231
296
  }
232
297
 
233
298
  .sidenav-submenu-content {
234
299
  @apply ml-5 flex flex-col gap-0.5 border-l border-muted pl-2;
235
-
236
- .sidenav-subitem {
237
- @apply text-sm;
238
- }
239
300
  }
240
301
  }
241
302
  }
@@ -6,7 +6,7 @@
6
6
  @apply absolute inset-0 bg-overlay;
7
7
  }
8
8
  .modal {
9
- @apply relative flex flex-col gap-4 md:gap-6 rounded-ui py-4 md:py-6 max-w-[95vw] max-h-[95vh] overflow-hidden overflow-y-auto;
9
+ @apply relative flex flex-col gap-4 md:gap-6 rounded-ui py-4 md:py-6 max-w-[95vw] max-h-[95vh];
10
10
 
11
11
  &.is-ghost {
12
12
  @apply bg-background text-on-background;
@@ -33,7 +33,7 @@
33
33
  @apply bg-on-muted text-muted;
34
34
  }
35
35
  .modal-content {
36
- @apply px-4 md:px-6;
36
+ @apply px-4 md:px-6 overflow-hidden overflow-y-auto;
37
37
  }
38
38
 
39
39
  .modal-header {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-svelte",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "author": {
5
5
  "name": "SappsDev",
6
6
  "email": "info@sappsdev.com"
@@ -1,11 +0,0 @@
1
- type FooterLink = {
2
- label: string;
3
- href: string;
4
- };
5
- type Props = {
6
- links: FooterLink[];
7
- class?: string;
8
- };
9
- declare const FooterLinks: import("svelte").Component<Props, {}, "">;
10
- type FooterLinks = ReturnType<typeof FooterLinks>;
11
- export default FooterLinks;