@jsswift/ui 1.0.44 → 1.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/src/css/base.css CHANGED
@@ -339,7 +339,7 @@
339
339
 
340
340
  --cms-font-size: 14px;
341
341
  --cms-font-weight: 400;
342
- --cms-font-family: "Nunito", sans-serif;
342
+ --cms-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
343
343
  --set-icon-size: calc(var(--cms-font-size) + 4px);
344
344
 
345
345
  --cms-font-size-xxs: 6px;
@@ -474,144 +474,9 @@
474
474
  --cms-ring: rgba(139, 92, 246, 0.45);
475
475
  }
476
476
 
477
- /* FONTS */
478
- @font-face {
479
- font-family: "Nunito";
480
- src: url("../fonts/Nunito-ExtraLight.ttf") format("truetype");
481
- font-weight: 200;
482
- font-style: normal;
483
- font-display: swap;
484
- }
485
-
486
- @font-face {
487
- font-family: "Nunito";
488
- src: url("../fonts/Nunito-ExtraLightItalic.ttf") format("truetype");
489
- font-weight: 200;
490
- font-style: italic;
491
- font-display: swap;
492
- }
493
-
494
- @font-face {
495
- font-family: "Nunito";
496
- src: url("../fonts/Nunito-Light.ttf") format("truetype");
497
- font-weight: 300;
498
- font-style: normal;
499
- font-display: swap;
500
- }
501
-
502
- @font-face {
503
- font-family: "Nunito";
504
- src: url("../fonts/Nunito-LightItalic.ttf") format("truetype");
505
- font-weight: 300;
506
- font-style: italic;
507
- font-display: swap;
508
- }
509
-
510
- @font-face {
511
- font-family: "Nunito";
512
- src: url("../fonts/Nunito-Regular.ttf") format("truetype");
513
- font-weight: 400;
514
- font-style: normal;
515
- font-display: swap;
516
- }
517
-
518
- @font-face {
519
- font-family: "Nunito";
520
- src: url("../fonts/Nunito-Italic.ttf") format("truetype");
521
- font-weight: 400;
522
- font-style: italic;
523
- font-display: swap;
524
- }
525
-
526
- @font-face {
527
- font-family: "Nunito";
528
- src: url("../fonts/Nunito-Medium.ttf") format("truetype");
529
- font-weight: 500;
530
- font-style: normal;
531
- font-display: swap;
532
- }
533
-
534
- @font-face {
535
- font-family: "Nunito";
536
- src: url("../fonts/Nunito-MediumItalic.ttf") format("truetype");
537
- font-weight: 500;
538
- font-style: italic;
539
- font-display: swap;
540
- }
541
-
542
- @font-face {
543
- font-family: "Nunito";
544
- src: url("../fonts/Nunito-SemiBold.ttf") format("truetype");
545
- font-weight: 600;
546
- font-style: normal;
547
- font-display: swap;
548
- }
549
-
550
- @font-face {
551
- font-family: "Nunito";
552
- src: url("../fonts/Nunito-SemiBoldItalic.ttf") format("truetype");
553
- font-weight: 600;
554
- font-style: italic;
555
- font-display: swap;
556
- }
557
-
558
- @font-face {
559
- font-family: "Nunito";
560
- src: url("../fonts/Nunito-Bold.ttf") format("truetype");
561
- font-weight: 700;
562
- font-style: normal;
563
- font-display: swap;
564
- }
565
-
566
- @font-face {
567
- font-family: "Nunito";
568
- src: url("../fonts/Nunito-BoldItalic.ttf") format("truetype");
569
- font-weight: 700;
570
- font-style: italic;
571
- font-display: swap;
572
- }
573
-
574
- @font-face {
575
- font-family: "Nunito";
576
- src: url("../fonts/Nunito-ExtraBold.ttf") format("truetype");
577
- font-weight: 800;
578
- font-style: normal;
579
- font-display: swap;
580
- }
581
-
582
- @font-face {
583
- font-family: "Nunito";
584
- src: url("../fonts/Nunito-ExtraBoldItalic.ttf") format("truetype");
585
- font-weight: 800;
586
- font-style: italic;
587
- font-display: swap;
588
- }
589
-
590
- @font-face {
591
- font-family: "Nunito";
592
- src: url("../fonts/Nunito-Black.ttf") format("truetype");
593
- font-weight: 900;
594
- font-style: normal;
595
- font-display: swap;
596
- }
597
-
598
- @font-face {
599
- font-family: "Nunito";
600
- src: url("../fonts/Nunito-BlackItalic.ttf") format("truetype");
601
- font-weight: 900;
602
- font-style: italic;
603
- font-display: swap;
604
- }
605
-
606
- @font-face {
607
- font-family: 'Material Symbols Outlined';
608
- font-style: normal;
609
- font-weight: 100 700;
610
- src: url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v311/kJEhBvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oFsLjBuVY.woff2) format('woff2');
611
- }
612
477
 
613
478
  :root {
614
- --cms-font: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
479
+ --cms-font: var(--cms-font-family);
615
480
  }
616
481
 
617
482
  *,
@@ -0,0 +1,7 @@
1
+ @font-face {
2
+ font-family: 'Material Symbols Outlined';
3
+ font-style: normal;
4
+ font-weight: 100 700;
5
+ src: url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v311/kJEhBvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oFsLjBuVY.woff2) format('woff2');
6
+ }
7
+
@@ -0,0 +1,134 @@
1
+ /* FONTS */
2
+ @font-face {
3
+ font-family: "Nunito";
4
+ src: url("../fonts/Nunito-ExtraLight.ttf") format("truetype");
5
+ font-weight: 200;
6
+ font-style: normal;
7
+ font-display: swap;
8
+ }
9
+
10
+ @font-face {
11
+ font-family: "Nunito";
12
+ src: url("../fonts/Nunito-ExtraLightItalic.ttf") format("truetype");
13
+ font-weight: 200;
14
+ font-style: italic;
15
+ font-display: swap;
16
+ }
17
+
18
+ @font-face {
19
+ font-family: "Nunito";
20
+ src: url("../fonts/Nunito-Light.ttf") format("truetype");
21
+ font-weight: 300;
22
+ font-style: normal;
23
+ font-display: swap;
24
+ }
25
+
26
+ @font-face {
27
+ font-family: "Nunito";
28
+ src: url("../fonts/Nunito-LightItalic.ttf") format("truetype");
29
+ font-weight: 300;
30
+ font-style: italic;
31
+ font-display: swap;
32
+ }
33
+
34
+ @font-face {
35
+ font-family: "Nunito";
36
+ src: url("../fonts/Nunito-Regular.ttf") format("truetype");
37
+ font-weight: 400;
38
+ font-style: normal;
39
+ font-display: swap;
40
+ }
41
+
42
+ @font-face {
43
+ font-family: "Nunito";
44
+ src: url("../fonts/Nunito-Italic.ttf") format("truetype");
45
+ font-weight: 400;
46
+ font-style: italic;
47
+ font-display: swap;
48
+ }
49
+
50
+ @font-face {
51
+ font-family: "Nunito";
52
+ src: url("../fonts/Nunito-Medium.ttf") format("truetype");
53
+ font-weight: 500;
54
+ font-style: normal;
55
+ font-display: swap;
56
+ }
57
+
58
+ @font-face {
59
+ font-family: "Nunito";
60
+ src: url("../fonts/Nunito-MediumItalic.ttf") format("truetype");
61
+ font-weight: 500;
62
+ font-style: italic;
63
+ font-display: swap;
64
+ }
65
+
66
+ @font-face {
67
+ font-family: "Nunito";
68
+ src: url("../fonts/Nunito-SemiBold.ttf") format("truetype");
69
+ font-weight: 600;
70
+ font-style: normal;
71
+ font-display: swap;
72
+ }
73
+
74
+ @font-face {
75
+ font-family: "Nunito";
76
+ src: url("../fonts/Nunito-SemiBoldItalic.ttf") format("truetype");
77
+ font-weight: 600;
78
+ font-style: italic;
79
+ font-display: swap;
80
+ }
81
+
82
+ @font-face {
83
+ font-family: "Nunito";
84
+ src: url("../fonts/Nunito-Bold.ttf") format("truetype");
85
+ font-weight: 700;
86
+ font-style: normal;
87
+ font-display: swap;
88
+ }
89
+
90
+ @font-face {
91
+ font-family: "Nunito";
92
+ src: url("../fonts/Nunito-BoldItalic.ttf") format("truetype");
93
+ font-weight: 700;
94
+ font-style: italic;
95
+ font-display: swap;
96
+ }
97
+
98
+ @font-face {
99
+ font-family: "Nunito";
100
+ src: url("../fonts/Nunito-ExtraBold.ttf") format("truetype");
101
+ font-weight: 800;
102
+ font-style: normal;
103
+ font-display: swap;
104
+ }
105
+
106
+ @font-face {
107
+ font-family: "Nunito";
108
+ src: url("../fonts/Nunito-ExtraBoldItalic.ttf") format("truetype");
109
+ font-weight: 800;
110
+ font-style: italic;
111
+ font-display: swap;
112
+ }
113
+
114
+ @font-face {
115
+ font-family: "Nunito";
116
+ src: url("../fonts/Nunito-Black.ttf") format("truetype");
117
+ font-weight: 900;
118
+ font-style: normal;
119
+ font-display: swap;
120
+ }
121
+
122
+ @font-face {
123
+ font-family: "Nunito";
124
+ src: url("../fonts/Nunito-BlackItalic.ttf") format("truetype");
125
+ font-weight: 900;
126
+ font-style: italic;
127
+ font-display: swap;
128
+ }
129
+
130
+
131
+ :root {
132
+ --cms-font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
133
+ --cms-font: var(--cms-font-family);
134
+ }
package/src/modules.json CHANGED
@@ -42,15 +42,6 @@
42
42
  "utility functions usate dai componenti"
43
43
  ]
44
44
  },
45
- {
46
- "file": "05-meta-shared.js",
47
- "status": "deferred",
48
- "scope": [
49
- "UI.meta shared helpers",
50
- "meta normalization",
51
- "doc/dev helpers"
52
- ]
53
- },
54
45
  {
55
46
  "file": "10-primitives-layout.js",
56
47
  "status": "migrated",
@@ -69,27 +60,46 @@
69
60
  {
70
61
  "file": "20-display-content.js",
71
62
  "status": "migrated",
72
- "scope": ["Icon", "Badge", "Avatar", "Chip"]
63
+ "scope": [
64
+ "Icon",
65
+ "Badge",
66
+ "Avatar",
67
+ "Chip"
68
+ ]
73
69
  },
74
70
  {
75
71
  "file": "21-list-content.js",
76
72
  "status": "migrated",
77
- "scope": ["List", "Item", "Separator"]
73
+ "scope": [
74
+ "List",
75
+ "Item",
76
+ "Separator"
77
+ ]
78
78
  },
79
79
  {
80
80
  "file": "22-banner-content.js",
81
81
  "status": "migrated",
82
- "scope": ["Banner"]
82
+ "scope": [
83
+ "Banner"
84
+ ]
83
85
  },
84
86
  {
85
87
  "file": "23-tooltip.js",
86
88
  "status": "migrated",
87
- "scope": ["Tooltip"]
89
+ "scope": [
90
+ "Tooltip"
91
+ ]
88
92
  },
89
93
  {
90
94
  "file": "30-form-core.js",
91
95
  "status": "merged-into-10-primitives-layout.js",
92
- "scope": ["FormField", "InputRaw", "Input", "Textarea", "Select"]
96
+ "scope": [
97
+ "FormField",
98
+ "InputRaw",
99
+ "Input",
100
+ "Textarea",
101
+ "Select"
102
+ ]
93
103
  },
94
104
  {
95
105
  "file": "31-form-advanced.js",
@@ -108,17 +118,29 @@
108
118
  {
109
119
  "file": "40-navigation.js",
110
120
  "status": "partial",
111
- "scope": ["Tabs", "RouteTab", "Breadcrumbs", "Pagination"]
121
+ "scope": [
122
+ "Tabs",
123
+ "RouteTab",
124
+ "Breadcrumbs",
125
+ "Pagination"
126
+ ]
112
127
  },
113
128
  {
114
129
  "file": "41-tab-panel.js",
115
130
  "status": "migrated",
116
- "scope": ["TabPanel"]
131
+ "scope": [
132
+ "TabPanel"
133
+ ]
117
134
  },
118
135
  {
119
136
  "file": "50-feedback.js",
120
137
  "status": "partial",
121
- "scope": ["Spinner", "Progress", "LoadingBar", "Notify"]
138
+ "scope": [
139
+ "Spinner",
140
+ "Progress",
141
+ "LoadingBar",
142
+ "Notify"
143
+ ]
122
144
  },
123
145
  {
124
146
  "file": "51-feedback-service.js",
@@ -133,7 +155,13 @@
133
155
  {
134
156
  "file": "60-shell-app.js",
135
157
  "status": "migrated",
136
- "scope": ["Header", "Drawer", "Page", "AppShell", "Parallax"]
158
+ "scope": [
159
+ "Header",
160
+ "Drawer",
161
+ "Page",
162
+ "AppShell",
163
+ "Parallax"
164
+ ]
137
165
  },
138
166
  {
139
167
  "file": "61-form-service.js",
@@ -151,25 +179,33 @@
151
179
  {
152
180
  "file": "70-dialog.js",
153
181
  "status": "migrated",
154
- "scope": ["Dialog"]
182
+ "scope": [
183
+ "Dialog"
184
+ ]
155
185
  },
156
186
  {
157
187
  "file": "80-data.js",
158
188
  "status": "migrated",
159
- "scope": ["Table"]
189
+ "scope": [
190
+ "Table"
191
+ ]
160
192
  },
161
193
  {
162
194
  "file": "71-menu-overlays.js",
163
195
  "status": "migrated",
164
- "scope": ["Menu", "Popover", "ContextMenu", "bundle footer"]
196
+ "scope": [
197
+ "Menu",
198
+ "Popover",
199
+ "ContextMenu",
200
+ "bundle footer"
201
+ ]
165
202
  },
166
203
  {
167
204
  "file": "90-services-meta.js",
168
205
  "status": "merged-into-51-feedback-service.js-and-61-form-service.js",
169
206
  "scope": [
170
207
  "notify service wiring",
171
- "dialog helpers",
172
- "UI.meta registrations"
208
+ "dialog helpers"
173
209
  ]
174
210
  }
175
211
  ]
package/src/tabler.js ADDED
@@ -0,0 +1,7 @@
1
+ // Optional Tabler sprite: import after the JSswift runtime.
2
+ const runtime = globalThis.JSswift;
3
+ if (!runtime) throw new Error("Load JSswift before importing the optional Tabler sprite");
4
+ const spriteUrl = new URL('./img/svg/tabler-icons-sprite.svg', import.meta.url).href;
5
+ runtime.config ||= {};
6
+ runtime.config.iconSpriteUrl = spriteUrl;
7
+ export default spriteUrl;