ui-svelte 0.2.3 → 0.2.5

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 (55) hide show
  1. package/dist/assets/country-flags.d.ts +1 -0
  2. package/dist/assets/country-flags.js +1612 -0
  3. package/dist/charts/ArcChart.svelte +291 -48
  4. package/dist/charts/ArcChart.svelte.d.ts +32 -1
  5. package/dist/charts/Candlestick.svelte +663 -115
  6. package/dist/charts/Candlestick.svelte.d.ts +40 -0
  7. package/dist/charts/css/arc-chart.css +76 -6
  8. package/dist/charts/css/candlestick.css +234 -11
  9. package/dist/control/Audio.svelte +8 -12
  10. package/dist/control/Button.svelte +3 -1
  11. package/dist/control/Button.svelte.d.ts +1 -0
  12. package/dist/control/IconButton.svelte +3 -1
  13. package/dist/control/IconButton.svelte.d.ts +1 -0
  14. package/dist/control/ToggleGroup.svelte +82 -0
  15. package/dist/control/ToggleGroup.svelte.d.ts +20 -0
  16. package/dist/control/css/btn.css +1 -1
  17. package/dist/control/css/toggle-group.css +85 -0
  18. package/dist/css/base.css +23 -15
  19. package/dist/css/utilities.css +45 -0
  20. package/dist/display/AvatarGroup.svelte +59 -0
  21. package/dist/display/AvatarGroup.svelte.d.ts +17 -0
  22. package/dist/display/Code.svelte +9 -2
  23. package/dist/display/Code.svelte.d.ts +1 -0
  24. package/dist/display/Section.svelte +1 -1
  25. package/dist/display/css/avatar-group.css +46 -0
  26. package/dist/display/css/avatar.css +1 -10
  27. package/dist/display/css/card.css +0 -10
  28. package/dist/form/ComboBox.svelte.d.ts +1 -1
  29. package/dist/form/PhoneField.svelte +8 -4
  30. package/dist/form/Select.svelte.d.ts +1 -1
  31. package/dist/index.css +43 -21
  32. package/dist/index.d.ts +3 -1
  33. package/dist/index.js +3 -1
  34. package/dist/layout/AppBar.svelte +28 -1
  35. package/dist/layout/AppBar.svelte.d.ts +2 -0
  36. package/dist/layout/Footer.svelte +25 -1
  37. package/dist/layout/Footer.svelte.d.ts +1 -0
  38. package/dist/layout/Sidebar.svelte +33 -3
  39. package/dist/layout/Sidebar.svelte.d.ts +1 -0
  40. package/dist/layout/css/app-bar.css +63 -0
  41. package/dist/layout/css/bottom-bar.css +63 -0
  42. package/dist/layout/css/footer.css +63 -0
  43. package/dist/layout/css/sidebar.css +63 -0
  44. package/dist/navigation/NavMenu.svelte +3 -9
  45. package/dist/navigation/SideNav.svelte +0 -9
  46. package/dist/navigation/SideNav.svelte.d.ts +0 -1
  47. package/dist/navigation/css/footer-group.css +3 -4
  48. package/dist/navigation/css/nav-menu.css +90 -30
  49. package/dist/navigation/css/side-nav.css +127 -66
  50. package/dist/overlay/css/modal.css +2 -2
  51. package/package.json +2 -2
  52. /package/dist/{form/js → assets}/countries.d.ts +0 -0
  53. /package/dist/{form/js → assets}/countries.js +0 -0
  54. /package/dist/{form/js → assets}/phone-examples.d.ts +0 -0
  55. /package/dist/{form/js → assets}/phone-examples.js +0 -0
@@ -1,19 +1,19 @@
1
1
  @layer components {
2
2
  .navmenu {
3
- @apply flex items-center gap-1 text-on-background;
3
+ @apply flex items-center gap-1;
4
4
 
5
5
  .navmenu-item {
6
6
  @apply relative flex items-center gap-2 rounded-ui px-4 py-2;
7
7
  @apply cursor-pointer select-none outline-none;
8
8
  @apply transition-all duration-200;
9
- @apply hover:bg-muted;
10
9
 
11
10
  .navmenu-icon {
12
11
  @apply h-5 w-5 shrink-0;
13
12
  }
14
13
 
15
14
  .navmenu-label {
16
- @apply font-medium text-sm whitespace-nowrap;
15
+ @apply text-base whitespace-nowrap;
16
+ @apply font-light hover:font-semibold;
17
17
  }
18
18
 
19
19
  .navmenu-arrow {
@@ -24,8 +24,8 @@
24
24
  }
25
25
  }
26
26
 
27
- &.is-active {
28
- @apply bg-muted;
27
+ &.is-active .navmenu-label {
28
+ @apply font-semibold;
29
29
  }
30
30
  }
31
31
 
@@ -33,7 +33,11 @@
33
33
  @apply gap-0.5;
34
34
 
35
35
  .navmenu-item {
36
- @apply gap-1.5 px-3 py-1.5 text-xs;
36
+ @apply gap-1.5 px-3 py-1.5;
37
+
38
+ .navmenu-label {
39
+ @apply text-xs;
40
+ }
37
41
 
38
42
  .navmenu-icon {
39
43
  @apply h-4 w-4;
@@ -49,7 +53,11 @@
49
53
  @apply gap-1;
50
54
 
51
55
  .navmenu-item {
52
- @apply gap-2 px-4 py-2 text-sm;
56
+ @apply gap-2 px-4 py-2;
57
+
58
+ .navmenu-label {
59
+ @apply text-sm;
60
+ }
53
61
 
54
62
  .navmenu-icon {
55
63
  @apply h-5 w-5;
@@ -65,54 +73,106 @@
65
73
  @apply gap-1.5;
66
74
 
67
75
  .navmenu-item {
68
- @apply gap-2.5 px-5 py-2.5 text-base;
76
+ @apply gap-3 px-6 py-3;
77
+
78
+ .navmenu-label {
79
+ @apply text-lg;
80
+ }
69
81
 
70
82
  .navmenu-icon {
71
- @apply h-6 w-6;
83
+ @apply h-7 w-7;
72
84
  }
73
85
 
74
86
  .navmenu-arrow {
75
- @apply h-5 w-5;
87
+ @apply h-6 w-6;
76
88
  }
77
89
  }
78
90
  }
91
+ }
79
92
 
80
- &.navmenu-primary {
81
- .navmenu-item.is-active {
82
- @apply bg-on-primary text-primary;
93
+ .navmenu-popover.is-sm {
94
+ @apply gap-1 p-1.5;
83
95
 
84
- .navmenu-icon {
85
- @apply text-primary;
96
+ .navmenu-submenu-item {
97
+ @apply gap-1.5 px-2 py-1.5;
98
+
99
+ .navmenu-submenu-icon {
100
+ @apply h-4 w-4;
101
+ }
102
+
103
+ .navmenu-submenu-content {
104
+ .navmenu-submenu-label {
105
+ @apply text-xs;
106
+ }
107
+
108
+ .navmenu-submenu-description {
109
+ @apply text-[10px];
86
110
  }
87
111
  }
88
112
  }
89
113
 
90
- &.navmenu-secondary {
91
- .navmenu-item.is-active {
92
- @apply bg-on-secondary text-secondary;
114
+ .navmenu-header {
115
+ @apply px-2 py-1.5 text-[10px];
116
+ }
117
+ }
93
118
 
94
- .navmenu-icon {
95
- @apply text-secondary;
119
+ .navmenu-popover.is-md {
120
+ @apply gap-2 p-2;
121
+
122
+ .navmenu-submenu-item {
123
+ @apply gap-2 px-3 py-2;
124
+
125
+ .navmenu-submenu-icon {
126
+ @apply h-5 w-5;
127
+ }
128
+
129
+ .navmenu-submenu-content {
130
+ .navmenu-submenu-label {
131
+ @apply text-sm;
132
+ }
133
+
134
+ .navmenu-submenu-description {
135
+ @apply text-xs;
96
136
  }
97
137
  }
98
138
  }
99
139
 
100
- &.navmenu-muted {
101
- .navmenu-item.is-active {
102
- @apply bg-muted text-on-muted;
140
+ .navmenu-header {
141
+ @apply px-3 py-2 text-xs;
142
+ }
143
+ }
103
144
 
104
- .navmenu-icon {
105
- @apply text-on-muted;
145
+ .navmenu-popover.is-lg {
146
+ @apply gap-3 p-4;
147
+
148
+ .navmenu-submenu-item {
149
+ @apply gap-3 px-5 py-3;
150
+
151
+ .navmenu-submenu-icon {
152
+ @apply h-7 w-7;
153
+ }
154
+
155
+ .navmenu-submenu-content {
156
+ .navmenu-submenu-label {
157
+ @apply text-lg;
158
+ }
159
+
160
+ .navmenu-submenu-description {
161
+ @apply text-base;
106
162
  }
107
163
  }
108
164
  }
165
+
166
+ .navmenu-header {
167
+ @apply px-5 py-3 text-base;
168
+ }
109
169
  }
110
170
 
111
171
  .navmenu-popover {
112
172
  @apply flex flex-col gap-2 p-2 my-1;
113
173
  @apply bg-background text-on-background rounded-ui;
114
174
  @apply invisible opacity-0 transition-opacity duration-300 ease-in-out;
115
- @apply shadow-sm shadow-muted border border-muted;
175
+ @apply shadow-sm shadow-muted;
116
176
  position: fixed;
117
177
  z-index: 9999;
118
178
  max-height: 80vh;
@@ -134,7 +194,7 @@
134
194
  @apply flex items-center gap-2 rounded-ui px-3 py-2;
135
195
  @apply cursor-pointer select-none outline-none;
136
196
  @apply transition-all duration-200;
137
- @apply hover:bg-muted;
197
+ @apply font-light hover:font-medium;
138
198
 
139
199
  .navmenu-submenu-icon {
140
200
  @apply h-5 w-5 shrink-0;
@@ -153,7 +213,7 @@
153
213
  }
154
214
 
155
215
  &.is-active {
156
- @apply bg-muted;
216
+ @apply font-medium;
157
217
  }
158
218
  }
159
219
 
@@ -162,7 +222,7 @@
162
222
  }
163
223
 
164
224
  .navmenu-header {
165
- @apply px-3 py-2 text-xs font-semibold text-on-muted/70 uppercase tracking-wide;
225
+ @apply px-3 py-2 text-xs font-semibold uppercase tracking-wide;
166
226
  }
167
227
  }
168
- }
228
+ }
@@ -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.3",
3
+ "version": "0.2.5",
4
4
  "author": {
5
5
  "name": "SappsDev",
6
6
  "email": "info@sappsdev.com"
@@ -66,4 +66,4 @@
66
66
  "svelte": "./dist/index.js",
67
67
  "type": "module",
68
68
  "types": "./dist/index.d.ts"
69
- }
69
+ }
File without changes
File without changes
File without changes
File without changes