@uni-design-system/uni-mcp 4.3.0 → 4.4.0
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/README.md +97 -44
- package/dist/{chunk-WCJS2FYS.js → chunk-252ZWTTU.js} +586 -125
- package/dist/chunk-252ZWTTU.js.map +1 -0
- package/dist/http.js +1 -1
- package/dist/server.js +1 -1
- package/dist/stdio.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-WCJS2FYS.js.map +0 -1
|
@@ -7,16 +7,16 @@ import { z } from "zod";
|
|
|
7
7
|
// src/data/uni-index.json
|
|
8
8
|
var uni_index_default = {
|
|
9
9
|
meta: {
|
|
10
|
-
version: "
|
|
11
|
-
builtAt: "2026-07-
|
|
10
|
+
version: "7.0.0",
|
|
11
|
+
builtAt: "2026-07-29T15:41:45.453Z",
|
|
12
12
|
frameworks: [
|
|
13
13
|
"angular"
|
|
14
14
|
],
|
|
15
15
|
counts: {
|
|
16
|
-
components:
|
|
17
|
-
tokens:
|
|
16
|
+
components: 71,
|
|
17
|
+
tokens: 305,
|
|
18
18
|
themes: 2,
|
|
19
|
-
examples:
|
|
19
|
+
examples: 133
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
components: [
|
|
@@ -27,7 +27,7 @@ var uni_index_default = {
|
|
|
27
27
|
summary: "",
|
|
28
28
|
description: "",
|
|
29
29
|
category: "feedback",
|
|
30
|
-
version: "
|
|
30
|
+
version: "7.0.0",
|
|
31
31
|
bindings: {
|
|
32
32
|
angular: {
|
|
33
33
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -101,7 +101,7 @@ var uni_index_default = {
|
|
|
101
101
|
summary: "",
|
|
102
102
|
description: "",
|
|
103
103
|
category: "components",
|
|
104
|
-
version: "
|
|
104
|
+
version: "7.0.0",
|
|
105
105
|
bindings: {
|
|
106
106
|
angular: {
|
|
107
107
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -158,7 +158,7 @@ var uni_index_default = {
|
|
|
158
158
|
summary: "",
|
|
159
159
|
description: "",
|
|
160
160
|
category: "components",
|
|
161
|
-
version: "
|
|
161
|
+
version: "7.0.0",
|
|
162
162
|
bindings: {
|
|
163
163
|
angular: {
|
|
164
164
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -237,7 +237,7 @@ var uni_index_default = {
|
|
|
237
237
|
summary: "",
|
|
238
238
|
description: "",
|
|
239
239
|
category: "components",
|
|
240
|
-
version: "
|
|
240
|
+
version: "7.0.0",
|
|
241
241
|
bindings: {
|
|
242
242
|
angular: {
|
|
243
243
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -270,7 +270,7 @@ var uni_index_default = {
|
|
|
270
270
|
summary: "",
|
|
271
271
|
description: "",
|
|
272
272
|
category: "primitives",
|
|
273
|
-
version: "
|
|
273
|
+
version: "7.0.0",
|
|
274
274
|
bindings: {
|
|
275
275
|
angular: {
|
|
276
276
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -351,7 +351,7 @@ var uni_index_default = {
|
|
|
351
351
|
summary: "",
|
|
352
352
|
description: "",
|
|
353
353
|
category: "feedback",
|
|
354
|
-
version: "
|
|
354
|
+
version: "7.0.0",
|
|
355
355
|
bindings: {
|
|
356
356
|
angular: {
|
|
357
357
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -432,7 +432,7 @@ var uni_index_default = {
|
|
|
432
432
|
summary: "",
|
|
433
433
|
description: "",
|
|
434
434
|
category: "directives",
|
|
435
|
-
version: "
|
|
435
|
+
version: "7.0.0",
|
|
436
436
|
bindings: {
|
|
437
437
|
angular: {
|
|
438
438
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -456,7 +456,7 @@ var uni_index_default = {
|
|
|
456
456
|
summary: "",
|
|
457
457
|
description: "",
|
|
458
458
|
category: "layout",
|
|
459
|
-
version: "
|
|
459
|
+
version: "7.0.0",
|
|
460
460
|
bindings: {
|
|
461
461
|
angular: {
|
|
462
462
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -819,7 +819,7 @@ var uni_index_default = {
|
|
|
819
819
|
summary: "",
|
|
820
820
|
description: "",
|
|
821
821
|
category: "components",
|
|
822
|
-
version: "
|
|
822
|
+
version: "7.0.0",
|
|
823
823
|
bindings: {
|
|
824
824
|
angular: {
|
|
825
825
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -888,7 +888,7 @@ var uni_index_default = {
|
|
|
888
888
|
summary: "",
|
|
889
889
|
description: "",
|
|
890
890
|
category: "primitives",
|
|
891
|
-
version: "
|
|
891
|
+
version: "7.0.0",
|
|
892
892
|
bindings: {
|
|
893
893
|
angular: {
|
|
894
894
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1031,7 +1031,7 @@ var uni_index_default = {
|
|
|
1031
1031
|
summary: "",
|
|
1032
1032
|
description: "",
|
|
1033
1033
|
category: "primitives",
|
|
1034
|
-
version: "
|
|
1034
|
+
version: "7.0.0",
|
|
1035
1035
|
bindings: {
|
|
1036
1036
|
angular: {
|
|
1037
1037
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1063,7 +1063,7 @@ var uni_index_default = {
|
|
|
1063
1063
|
summary: "",
|
|
1064
1064
|
description: "",
|
|
1065
1065
|
category: "layout",
|
|
1066
|
-
version: "
|
|
1066
|
+
version: "7.0.0",
|
|
1067
1067
|
bindings: {
|
|
1068
1068
|
angular: {
|
|
1069
1069
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1108,7 +1108,7 @@ var uni_index_default = {
|
|
|
1108
1108
|
summary: "",
|
|
1109
1109
|
description: "",
|
|
1110
1110
|
category: "layout",
|
|
1111
|
-
version: "
|
|
1111
|
+
version: "7.0.0",
|
|
1112
1112
|
bindings: {
|
|
1113
1113
|
angular: {
|
|
1114
1114
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1132,7 +1132,7 @@ var uni_index_default = {
|
|
|
1132
1132
|
summary: "",
|
|
1133
1133
|
description: "",
|
|
1134
1134
|
category: "layout",
|
|
1135
|
-
version: "
|
|
1135
|
+
version: "7.0.0",
|
|
1136
1136
|
bindings: {
|
|
1137
1137
|
angular: {
|
|
1138
1138
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1173,7 +1173,7 @@ var uni_index_default = {
|
|
|
1173
1173
|
summary: "",
|
|
1174
1174
|
description: "",
|
|
1175
1175
|
category: "layout",
|
|
1176
|
-
version: "
|
|
1176
|
+
version: "7.0.0",
|
|
1177
1177
|
bindings: {
|
|
1178
1178
|
angular: {
|
|
1179
1179
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1228,7 +1228,7 @@ var uni_index_default = {
|
|
|
1228
1228
|
summary: "",
|
|
1229
1229
|
description: "",
|
|
1230
1230
|
category: "forms",
|
|
1231
|
-
version: "
|
|
1231
|
+
version: "7.0.0",
|
|
1232
1232
|
bindings: {
|
|
1233
1233
|
angular: {
|
|
1234
1234
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1365,7 +1365,7 @@ var uni_index_default = {
|
|
|
1365
1365
|
summary: "",
|
|
1366
1366
|
description: "",
|
|
1367
1367
|
category: "feedback",
|
|
1368
|
-
version: "
|
|
1368
|
+
version: "7.0.0",
|
|
1369
1369
|
bindings: {
|
|
1370
1370
|
angular: {
|
|
1371
1371
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1412,7 +1412,7 @@ var uni_index_default = {
|
|
|
1412
1412
|
summary: "",
|
|
1413
1413
|
description: "",
|
|
1414
1414
|
category: "forms",
|
|
1415
|
-
version: "
|
|
1415
|
+
version: "7.0.0",
|
|
1416
1416
|
bindings: {
|
|
1417
1417
|
angular: {
|
|
1418
1418
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1495,7 +1495,7 @@ var uni_index_default = {
|
|
|
1495
1495
|
summary: "",
|
|
1496
1496
|
description: "",
|
|
1497
1497
|
category: "data",
|
|
1498
|
-
version: "
|
|
1498
|
+
version: "7.0.0",
|
|
1499
1499
|
bindings: {
|
|
1500
1500
|
angular: {
|
|
1501
1501
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1596,7 +1596,7 @@ var uni_index_default = {
|
|
|
1596
1596
|
summary: "",
|
|
1597
1597
|
description: "",
|
|
1598
1598
|
category: "forms",
|
|
1599
|
-
version: "
|
|
1599
|
+
version: "7.0.0",
|
|
1600
1600
|
bindings: {
|
|
1601
1601
|
angular: {
|
|
1602
1602
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1722,7 +1722,7 @@ var uni_index_default = {
|
|
|
1722
1722
|
summary: "",
|
|
1723
1723
|
description: "",
|
|
1724
1724
|
category: "feedback",
|
|
1725
|
-
version: "
|
|
1725
|
+
version: "7.0.0",
|
|
1726
1726
|
bindings: {
|
|
1727
1727
|
angular: {
|
|
1728
1728
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1800,7 +1800,7 @@ var uni_index_default = {
|
|
|
1800
1800
|
summary: "",
|
|
1801
1801
|
description: "",
|
|
1802
1802
|
category: "feedback",
|
|
1803
|
-
version: "
|
|
1803
|
+
version: "7.0.0",
|
|
1804
1804
|
bindings: {
|
|
1805
1805
|
angular: {
|
|
1806
1806
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1818,7 +1818,6 @@ var uni_index_default = {
|
|
|
1818
1818
|
kind: "input",
|
|
1819
1819
|
type: "Variant",
|
|
1820
1820
|
required: false,
|
|
1821
|
-
default: "'primary'",
|
|
1822
1821
|
description: ""
|
|
1823
1822
|
},
|
|
1824
1823
|
{
|
|
@@ -1828,6 +1827,13 @@ var uni_index_default = {
|
|
|
1828
1827
|
required: false,
|
|
1829
1828
|
description: ""
|
|
1830
1829
|
},
|
|
1830
|
+
{
|
|
1831
|
+
name: "cancelButtonVariant",
|
|
1832
|
+
kind: "input",
|
|
1833
|
+
type: "Variant",
|
|
1834
|
+
required: false,
|
|
1835
|
+
description: ""
|
|
1836
|
+
},
|
|
1831
1837
|
{
|
|
1832
1838
|
name: "disableConfirm",
|
|
1833
1839
|
kind: "input",
|
|
@@ -1840,7 +1846,6 @@ var uni_index_default = {
|
|
|
1840
1846
|
kind: "input",
|
|
1841
1847
|
type: "NullableSize",
|
|
1842
1848
|
required: false,
|
|
1843
|
-
default: "'md'",
|
|
1844
1849
|
description: ""
|
|
1845
1850
|
},
|
|
1846
1851
|
{
|
|
@@ -1848,7 +1853,6 @@ var uni_index_default = {
|
|
|
1848
1853
|
kind: "input",
|
|
1849
1854
|
type: "NullableSize",
|
|
1850
1855
|
required: false,
|
|
1851
|
-
default: "'lg'",
|
|
1852
1856
|
description: ""
|
|
1853
1857
|
},
|
|
1854
1858
|
{
|
|
@@ -1856,7 +1860,6 @@ var uni_index_default = {
|
|
|
1856
1860
|
kind: "input",
|
|
1857
1861
|
type: "JustifyContent",
|
|
1858
1862
|
required: false,
|
|
1859
|
-
default: "'center'",
|
|
1860
1863
|
description: ""
|
|
1861
1864
|
},
|
|
1862
1865
|
{
|
|
@@ -1885,7 +1888,7 @@ var uni_index_default = {
|
|
|
1885
1888
|
summary: "",
|
|
1886
1889
|
description: "",
|
|
1887
1890
|
category: "feedback",
|
|
1888
|
-
version: "
|
|
1891
|
+
version: "7.0.0",
|
|
1889
1892
|
bindings: {
|
|
1890
1893
|
angular: {
|
|
1891
1894
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1909,7 +1912,7 @@ var uni_index_default = {
|
|
|
1909
1912
|
summary: "",
|
|
1910
1913
|
description: "",
|
|
1911
1914
|
category: "layout",
|
|
1912
|
-
version: "
|
|
1915
|
+
version: "7.0.0",
|
|
1913
1916
|
bindings: {
|
|
1914
1917
|
angular: {
|
|
1915
1918
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1965,7 +1968,7 @@ var uni_index_default = {
|
|
|
1965
1968
|
summary: "",
|
|
1966
1969
|
description: "",
|
|
1967
1970
|
category: "directives",
|
|
1968
|
-
version: "
|
|
1971
|
+
version: "7.0.0",
|
|
1969
1972
|
bindings: {
|
|
1970
1973
|
angular: {
|
|
1971
1974
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1997,7 +2000,7 @@ var uni_index_default = {
|
|
|
1997
2000
|
summary: "",
|
|
1998
2001
|
description: "",
|
|
1999
2002
|
category: "components",
|
|
2000
|
-
version: "
|
|
2003
|
+
version: "7.0.0",
|
|
2001
2004
|
bindings: {
|
|
2002
2005
|
angular: {
|
|
2003
2006
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2076,7 +2079,7 @@ var uni_index_default = {
|
|
|
2076
2079
|
summary: "",
|
|
2077
2080
|
description: "",
|
|
2078
2081
|
category: "components",
|
|
2079
|
-
version: "
|
|
2082
|
+
version: "7.0.0",
|
|
2080
2083
|
bindings: {
|
|
2081
2084
|
angular: {
|
|
2082
2085
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2165,7 +2168,7 @@ var uni_index_default = {
|
|
|
2165
2168
|
summary: "",
|
|
2166
2169
|
description: "",
|
|
2167
2170
|
category: "layout",
|
|
2168
|
-
version: "
|
|
2171
|
+
version: "7.0.0",
|
|
2169
2172
|
bindings: {
|
|
2170
2173
|
angular: {
|
|
2171
2174
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2197,7 +2200,6 @@ var uni_index_default = {
|
|
|
2197
2200
|
</uni-card>
|
|
2198
2201
|
<!-- args:
|
|
2199
2202
|
{
|
|
2200
|
-
collapsed: false,
|
|
2201
2203
|
ngContent: 'Expandable Content',
|
|
2202
2204
|
}
|
|
2203
2205
|
-->`
|
|
@@ -2220,7 +2222,7 @@ var uni_index_default = {
|
|
|
2220
2222
|
summary: "",
|
|
2221
2223
|
description: "",
|
|
2222
2224
|
category: "layout",
|
|
2223
|
-
version: "
|
|
2225
|
+
version: "7.0.0",
|
|
2224
2226
|
bindings: {
|
|
2225
2227
|
angular: {
|
|
2226
2228
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2236,9 +2238,9 @@ var uni_index_default = {
|
|
|
2236
2238
|
{
|
|
2237
2239
|
name: "initCollapsed",
|
|
2238
2240
|
kind: "input",
|
|
2239
|
-
type: "
|
|
2241
|
+
type: "unknown",
|
|
2240
2242
|
required: false,
|
|
2241
|
-
default: "false",
|
|
2243
|
+
default: "false, { transform: booleanAttribute }",
|
|
2242
2244
|
description: ""
|
|
2243
2245
|
},
|
|
2244
2246
|
{
|
|
@@ -2264,7 +2266,7 @@ var uni_index_default = {
|
|
|
2264
2266
|
title: "Primary",
|
|
2265
2267
|
framework: "angular",
|
|
2266
2268
|
code: `<!-- Storybook story: Primary -->
|
|
2267
|
-
<uni-expand-area title="\${title}" padding="\${padding}" initCollapsed="
|
|
2269
|
+
<uni-expand-area title="\${title}" padding="\${padding}" [initCollapsed]="initCollapsed" #expandArea>
|
|
2268
2270
|
<button text-button (click)="expandArea.toggleExpand()" size="md" variant="ghost" symbolLeft="collapse_all">Collapse area</button>
|
|
2269
2271
|
</uni-expand-area>
|
|
2270
2272
|
<!-- args:
|
|
@@ -2291,7 +2293,7 @@ var uni_index_default = {
|
|
|
2291
2293
|
summary: "",
|
|
2292
2294
|
description: "",
|
|
2293
2295
|
category: "forms",
|
|
2294
|
-
version: "
|
|
2296
|
+
version: "7.0.0",
|
|
2295
2297
|
bindings: {
|
|
2296
2298
|
angular: {
|
|
2297
2299
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2337,7 +2339,7 @@ var uni_index_default = {
|
|
|
2337
2339
|
summary: "",
|
|
2338
2340
|
description: "",
|
|
2339
2341
|
category: "forms",
|
|
2340
|
-
version: "
|
|
2342
|
+
version: "7.0.0",
|
|
2341
2343
|
bindings: {
|
|
2342
2344
|
angular: {
|
|
2343
2345
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2495,7 +2497,7 @@ var uni_index_default = {
|
|
|
2495
2497
|
summary: "",
|
|
2496
2498
|
description: "",
|
|
2497
2499
|
category: "layout",
|
|
2498
|
-
version: "
|
|
2500
|
+
version: "7.0.0",
|
|
2499
2501
|
bindings: {
|
|
2500
2502
|
angular: {
|
|
2501
2503
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2592,7 +2594,7 @@ var uni_index_default = {
|
|
|
2592
2594
|
summary: "",
|
|
2593
2595
|
description: "",
|
|
2594
2596
|
category: "layout",
|
|
2595
|
-
version: "
|
|
2597
|
+
version: "7.0.0",
|
|
2596
2598
|
bindings: {
|
|
2597
2599
|
angular: {
|
|
2598
2600
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2624,7 +2626,7 @@ var uni_index_default = {
|
|
|
2624
2626
|
summary: "",
|
|
2625
2627
|
description: "",
|
|
2626
2628
|
category: "primitives",
|
|
2627
|
-
version: "
|
|
2629
|
+
version: "7.0.0",
|
|
2628
2630
|
bindings: {
|
|
2629
2631
|
angular: {
|
|
2630
2632
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2640,7 +2642,7 @@ var uni_index_default = {
|
|
|
2640
2642
|
{
|
|
2641
2643
|
name: "name",
|
|
2642
2644
|
kind: "input",
|
|
2643
|
-
type: "
|
|
2645
|
+
type: "IconName",
|
|
2644
2646
|
required: true,
|
|
2645
2647
|
description: ""
|
|
2646
2648
|
}
|
|
@@ -2672,7 +2674,7 @@ var uni_index_default = {
|
|
|
2672
2674
|
summary: "",
|
|
2673
2675
|
description: "",
|
|
2674
2676
|
category: "primitives",
|
|
2675
|
-
version: "
|
|
2677
|
+
version: "7.0.0",
|
|
2676
2678
|
bindings: {
|
|
2677
2679
|
angular: {
|
|
2678
2680
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2775,7 +2777,7 @@ var uni_index_default = {
|
|
|
2775
2777
|
summary: "",
|
|
2776
2778
|
description: "",
|
|
2777
2779
|
category: "forms",
|
|
2778
|
-
version: "
|
|
2780
|
+
version: "7.0.0",
|
|
2779
2781
|
bindings: {
|
|
2780
2782
|
angular: {
|
|
2781
2783
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2920,7 +2922,7 @@ var uni_index_default = {
|
|
|
2920
2922
|
summary: "",
|
|
2921
2923
|
description: "",
|
|
2922
2924
|
category: "forms",
|
|
2923
|
-
version: "
|
|
2925
|
+
version: "7.0.0",
|
|
2924
2926
|
bindings: {
|
|
2925
2927
|
angular: {
|
|
2926
2928
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2993,7 +2995,7 @@ var uni_index_default = {
|
|
|
2993
2995
|
summary: "",
|
|
2994
2996
|
description: "",
|
|
2995
2997
|
category: "components",
|
|
2996
|
-
version: "
|
|
2998
|
+
version: "7.0.0",
|
|
2997
2999
|
bindings: {
|
|
2998
3000
|
angular: {
|
|
2999
3001
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -3063,7 +3065,7 @@ var uni_index_default = {
|
|
|
3063
3065
|
summary: "",
|
|
3064
3066
|
description: "",
|
|
3065
3067
|
category: "layout",
|
|
3066
|
-
version: "
|
|
3068
|
+
version: "7.0.0",
|
|
3067
3069
|
bindings: {
|
|
3068
3070
|
angular: {
|
|
3069
3071
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -3140,7 +3142,7 @@ var uni_index_default = {
|
|
|
3140
3142
|
summary: "",
|
|
3141
3143
|
description: "",
|
|
3142
3144
|
category: "layout",
|
|
3143
|
-
version: "
|
|
3145
|
+
version: "7.0.0",
|
|
3144
3146
|
bindings: {
|
|
3145
3147
|
angular: {
|
|
3146
3148
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -3256,7 +3258,7 @@ var uni_index_default = {
|
|
|
3256
3258
|
summary: "",
|
|
3257
3259
|
description: "",
|
|
3258
3260
|
category: "forms",
|
|
3259
|
-
version: "
|
|
3261
|
+
version: "7.0.0",
|
|
3260
3262
|
bindings: {
|
|
3261
3263
|
angular: {
|
|
3262
3264
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -3344,7 +3346,7 @@ var uni_index_default = {
|
|
|
3344
3346
|
summary: "",
|
|
3345
3347
|
description: "",
|
|
3346
3348
|
category: "forms",
|
|
3347
|
-
version: "
|
|
3349
|
+
version: "7.0.0",
|
|
3348
3350
|
bindings: {
|
|
3349
3351
|
angular: {
|
|
3350
3352
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -3479,7 +3481,7 @@ var uni_index_default = {
|
|
|
3479
3481
|
summary: "",
|
|
3480
3482
|
description: "",
|
|
3481
3483
|
category: "feedback",
|
|
3482
|
-
version: "
|
|
3484
|
+
version: "7.0.0",
|
|
3483
3485
|
bindings: {
|
|
3484
3486
|
angular: {
|
|
3485
3487
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -3723,7 +3725,7 @@ var uni_index_default = {
|
|
|
3723
3725
|
summary: "",
|
|
3724
3726
|
description: "",
|
|
3725
3727
|
category: "feedback",
|
|
3726
|
-
version: "
|
|
3728
|
+
version: "7.0.0",
|
|
3727
3729
|
bindings: {
|
|
3728
3730
|
angular: {
|
|
3729
3731
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -3747,7 +3749,7 @@ var uni_index_default = {
|
|
|
3747
3749
|
summary: "",
|
|
3748
3750
|
description: "",
|
|
3749
3751
|
category: "data",
|
|
3750
|
-
version: "
|
|
3752
|
+
version: "7.0.0",
|
|
3751
3753
|
bindings: {
|
|
3752
3754
|
angular: {
|
|
3753
3755
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -3832,7 +3834,7 @@ var uni_index_default = {
|
|
|
3832
3834
|
summary: "",
|
|
3833
3835
|
description: "",
|
|
3834
3836
|
category: "layout",
|
|
3835
|
-
version: "
|
|
3837
|
+
version: "7.0.0",
|
|
3836
3838
|
bindings: {
|
|
3837
3839
|
angular: {
|
|
3838
3840
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -3881,7 +3883,7 @@ var uni_index_default = {
|
|
|
3881
3883
|
summary: "",
|
|
3882
3884
|
description: "",
|
|
3883
3885
|
category: "feedback",
|
|
3884
|
-
version: "
|
|
3886
|
+
version: "7.0.0",
|
|
3885
3887
|
bindings: {
|
|
3886
3888
|
angular: {
|
|
3887
3889
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -3945,7 +3947,7 @@ var uni_index_default = {
|
|
|
3945
3947
|
summary: "",
|
|
3946
3948
|
description: "",
|
|
3947
3949
|
category: "feedback",
|
|
3948
|
-
version: "
|
|
3950
|
+
version: "7.0.0",
|
|
3949
3951
|
bindings: {
|
|
3950
3952
|
angular: {
|
|
3951
3953
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -4001,7 +4003,7 @@ var uni_index_default = {
|
|
|
4001
4003
|
summary: "",
|
|
4002
4004
|
description: "",
|
|
4003
4005
|
category: "forms",
|
|
4004
|
-
version: "
|
|
4006
|
+
version: "7.0.0",
|
|
4005
4007
|
bindings: {
|
|
4006
4008
|
angular: {
|
|
4007
4009
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -4152,7 +4154,7 @@ var uni_index_default = {
|
|
|
4152
4154
|
summary: "",
|
|
4153
4155
|
description: "",
|
|
4154
4156
|
category: "directives",
|
|
4155
|
-
version: "
|
|
4157
|
+
version: "7.0.0",
|
|
4156
4158
|
bindings: {
|
|
4157
4159
|
angular: {
|
|
4158
4160
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -4176,7 +4178,7 @@ var uni_index_default = {
|
|
|
4176
4178
|
summary: "",
|
|
4177
4179
|
description: "",
|
|
4178
4180
|
category: "layout",
|
|
4179
|
-
version: "
|
|
4181
|
+
version: "7.0.0",
|
|
4180
4182
|
bindings: {
|
|
4181
4183
|
angular: {
|
|
4182
4184
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -4231,7 +4233,7 @@ var uni_index_default = {
|
|
|
4231
4233
|
summary: "",
|
|
4232
4234
|
description: "",
|
|
4233
4235
|
category: "layout",
|
|
4234
|
-
version: "
|
|
4236
|
+
version: "7.0.0",
|
|
4235
4237
|
bindings: {
|
|
4236
4238
|
angular: {
|
|
4237
4239
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -4378,7 +4380,7 @@ var uni_index_default = {
|
|
|
4378
4380
|
summary: "",
|
|
4379
4381
|
description: "",
|
|
4380
4382
|
category: "forms",
|
|
4381
|
-
version: "
|
|
4383
|
+
version: "7.0.0",
|
|
4382
4384
|
bindings: {
|
|
4383
4385
|
angular: {
|
|
4384
4386
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -4489,7 +4491,7 @@ var uni_index_default = {
|
|
|
4489
4491
|
summary: "",
|
|
4490
4492
|
description: "",
|
|
4491
4493
|
category: "forms",
|
|
4492
|
-
version: "
|
|
4494
|
+
version: "7.0.0",
|
|
4493
4495
|
bindings: {
|
|
4494
4496
|
angular: {
|
|
4495
4497
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -4625,7 +4627,7 @@ var uni_index_default = {
|
|
|
4625
4627
|
summary: "",
|
|
4626
4628
|
description: "",
|
|
4627
4629
|
category: "components",
|
|
4628
|
-
version: "
|
|
4630
|
+
version: "7.0.0",
|
|
4629
4631
|
bindings: {
|
|
4630
4632
|
angular: {
|
|
4631
4633
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -4721,7 +4723,7 @@ var uni_index_default = {
|
|
|
4721
4723
|
summary: "",
|
|
4722
4724
|
description: "",
|
|
4723
4725
|
category: "forms",
|
|
4724
|
-
version: "
|
|
4726
|
+
version: "7.0.0",
|
|
4725
4727
|
bindings: {
|
|
4726
4728
|
angular: {
|
|
4727
4729
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -4858,7 +4860,7 @@ var uni_index_default = {
|
|
|
4858
4860
|
summary: "",
|
|
4859
4861
|
description: "",
|
|
4860
4862
|
category: "feedback",
|
|
4861
|
-
version: "
|
|
4863
|
+
version: "7.0.0",
|
|
4862
4864
|
bindings: {
|
|
4863
4865
|
angular: {
|
|
4864
4866
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -4950,7 +4952,7 @@ var uni_index_default = {
|
|
|
4950
4952
|
summary: "",
|
|
4951
4953
|
description: "",
|
|
4952
4954
|
category: "data",
|
|
4953
|
-
version: "
|
|
4955
|
+
version: "7.0.0",
|
|
4954
4956
|
bindings: {
|
|
4955
4957
|
angular: {
|
|
4956
4958
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -5009,7 +5011,7 @@ var uni_index_default = {
|
|
|
5009
5011
|
summary: "",
|
|
5010
5012
|
description: "",
|
|
5011
5013
|
category: "layout",
|
|
5012
|
-
version: "
|
|
5014
|
+
version: "7.0.0",
|
|
5013
5015
|
bindings: {
|
|
5014
5016
|
angular: {
|
|
5015
5017
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -5064,7 +5066,7 @@ var uni_index_default = {
|
|
|
5064
5066
|
summary: "",
|
|
5065
5067
|
description: "",
|
|
5066
5068
|
category: "components",
|
|
5067
|
-
version: "
|
|
5069
|
+
version: "7.0.0",
|
|
5068
5070
|
bindings: {
|
|
5069
5071
|
angular: {
|
|
5070
5072
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -5166,7 +5168,7 @@ var uni_index_default = {
|
|
|
5166
5168
|
summary: "",
|
|
5167
5169
|
description: "",
|
|
5168
5170
|
category: "primitives",
|
|
5169
|
-
version: "
|
|
5171
|
+
version: "7.0.0",
|
|
5170
5172
|
bindings: {
|
|
5171
5173
|
angular: {
|
|
5172
5174
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -5239,7 +5241,7 @@ var uni_index_default = {
|
|
|
5239
5241
|
summary: "",
|
|
5240
5242
|
description: "",
|
|
5241
5243
|
category: "components",
|
|
5242
|
-
version: "
|
|
5244
|
+
version: "7.0.0",
|
|
5243
5245
|
bindings: {
|
|
5244
5246
|
angular: {
|
|
5245
5247
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -5279,7 +5281,7 @@ var uni_index_default = {
|
|
|
5279
5281
|
summary: "",
|
|
5280
5282
|
description: "",
|
|
5281
5283
|
category: "components",
|
|
5282
|
-
version: "
|
|
5284
|
+
version: "7.0.0",
|
|
5283
5285
|
bindings: {
|
|
5284
5286
|
angular: {
|
|
5285
5287
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -5343,7 +5345,7 @@ var uni_index_default = {
|
|
|
5343
5345
|
summary: "",
|
|
5344
5346
|
description: "",
|
|
5345
5347
|
category: "data",
|
|
5346
|
-
version: "
|
|
5348
|
+
version: "7.0.0",
|
|
5347
5349
|
bindings: {
|
|
5348
5350
|
angular: {
|
|
5349
5351
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -5410,7 +5412,7 @@ var uni_index_default = {
|
|
|
5410
5412
|
summary: "",
|
|
5411
5413
|
description: "",
|
|
5412
5414
|
category: "primitives",
|
|
5413
|
-
version: "
|
|
5415
|
+
version: "7.0.0",
|
|
5414
5416
|
bindings: {
|
|
5415
5417
|
angular: {
|
|
5416
5418
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -5512,7 +5514,7 @@ var uni_index_default = {
|
|
|
5512
5514
|
summary: "",
|
|
5513
5515
|
description: "",
|
|
5514
5516
|
category: "primitives",
|
|
5515
|
-
version: "
|
|
5517
|
+
version: "7.0.0",
|
|
5516
5518
|
bindings: {
|
|
5517
5519
|
angular: {
|
|
5518
5520
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -5642,7 +5644,7 @@ var uni_index_default = {
|
|
|
5642
5644
|
summary: "",
|
|
5643
5645
|
description: "",
|
|
5644
5646
|
category: "primitives",
|
|
5645
|
-
version: "
|
|
5647
|
+
version: "7.0.0",
|
|
5646
5648
|
bindings: {
|
|
5647
5649
|
angular: {
|
|
5648
5650
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -5665,6 +5667,64 @@ var uni_index_default = {
|
|
|
5665
5667
|
},
|
|
5666
5668
|
relatedTokens: []
|
|
5667
5669
|
},
|
|
5670
|
+
{
|
|
5671
|
+
id: "theme-switch",
|
|
5672
|
+
name: "ThemeSwitch",
|
|
5673
|
+
status: "stable",
|
|
5674
|
+
summary: "",
|
|
5675
|
+
description: "",
|
|
5676
|
+
category: "components",
|
|
5677
|
+
version: "7.0.0",
|
|
5678
|
+
bindings: {
|
|
5679
|
+
angular: {
|
|
5680
|
+
importPath: "@uni-design-system/uni-angular",
|
|
5681
|
+
selectorOrTag: "uni-theme-switch",
|
|
5682
|
+
api: [
|
|
5683
|
+
{
|
|
5684
|
+
name: "ariaLabel",
|
|
5685
|
+
kind: "input",
|
|
5686
|
+
type: "string",
|
|
5687
|
+
required: false,
|
|
5688
|
+
default: "'Theme'",
|
|
5689
|
+
description: "Accessible name for the underlying select."
|
|
5690
|
+
},
|
|
5691
|
+
{
|
|
5692
|
+
name: "themeChanged",
|
|
5693
|
+
kind: "output",
|
|
5694
|
+
type: "ThemeName",
|
|
5695
|
+
required: false,
|
|
5696
|
+
description: "Emits the selected theme key after it has been applied."
|
|
5697
|
+
}
|
|
5698
|
+
]
|
|
5699
|
+
}
|
|
5700
|
+
},
|
|
5701
|
+
examples: [
|
|
5702
|
+
{
|
|
5703
|
+
title: "Primary",
|
|
5704
|
+
framework: "angular",
|
|
5705
|
+
code: '<!-- Storybook story: Primary -->\n<div stack-layout gap="md" [width]="420">\n<uni-theme-switch></uni-theme-switch>\n<uni-card>\n <uni-card-header>Live preview</uni-card-header>\n <uni-card-content>\n <div stack-layout gap="md">\n <span uni-text typeface="body-2-long">\n Pick a theme above \u2014 every registered theme (UNI_THEMES) restyles\n this card and these buttons instantly.\n </span>\n <div row-layout gap="sm">\n <button text-button variant="primary">Primary</button>\n <button text-button variant="secondary">Secondary</button>\n <button text-button variant="warn">Danger</button>\n </div>\n </div>\n </uni-card-content>\n</uni-card>\n</div>\n<!-- args:\n{}\n-->'
|
|
5706
|
+
}
|
|
5707
|
+
],
|
|
5708
|
+
guidelines: {
|
|
5709
|
+
whenToUse: "Drop-in switcher for every theme registered via `UNI_THEMES`. Renders a `uni-select` over\n`ThemeService.themeOptions` and applies the choice through `ThemeService.selectTheme`, so the\nselection persists across reloads exactly like any other theme change. Use it wherever an app\noffers a theme choice \u2014 a settings page, an app-bar action, or a light/dark toggle backed by two\nregistered themes. Because it reads the registry from the injected `UNI_THEMES` token, adding a\nnew theme to the registry is all it takes for the switcher to offer it.",
|
|
5710
|
+
dos: [
|
|
5711
|
+
"Register every selectable theme in `UNI_THEMES`; the switcher derives its options from the registry.",
|
|
5712
|
+
'Give the control a meaningful `ariaLabel` when "Theme" is ambiguous in context (e.g. "Editor color theme").',
|
|
5713
|
+
"Use `themeChanged` for side effects like analytics or syncing a user preference to a backend."
|
|
5714
|
+
],
|
|
5715
|
+
donts: [
|
|
5716
|
+
"Don't call `ThemeService.theme.set()` alongside the switcher \u2014 bypassing `selectTheme` skips persistence and leaves the select out of sync.",
|
|
5717
|
+
"Don't hardcode theme ids in app logic; read `ThemeService.selectedThemeKey()` instead.",
|
|
5718
|
+
"Don't use it for the palette-generation workflow \u2014 that's the Theme Builder; the switcher only picks among registered themes."
|
|
5719
|
+
],
|
|
5720
|
+
accessibility: [
|
|
5721
|
+
"Built on a native `<select>` (via `uni-select`), so keyboard and screen-reader interaction come from the platform.",
|
|
5722
|
+
'Exposes `ariaLabel` (default "Theme") as the accessible name for the control.',
|
|
5723
|
+
"Theme changes restyle in place without moving focus or reloading, so context is preserved for assistive tech."
|
|
5724
|
+
]
|
|
5725
|
+
},
|
|
5726
|
+
relatedTokens: []
|
|
5727
|
+
},
|
|
5668
5728
|
{
|
|
5669
5729
|
id: "toggle",
|
|
5670
5730
|
name: "Toggle",
|
|
@@ -5672,7 +5732,7 @@ var uni_index_default = {
|
|
|
5672
5732
|
summary: "",
|
|
5673
5733
|
description: "",
|
|
5674
5734
|
category: "forms",
|
|
5675
|
-
version: "
|
|
5735
|
+
version: "7.0.0",
|
|
5676
5736
|
bindings: {
|
|
5677
5737
|
angular: {
|
|
5678
5738
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -5802,7 +5862,7 @@ var uni_index_default = {
|
|
|
5802
5862
|
summary: "",
|
|
5803
5863
|
description: "",
|
|
5804
5864
|
category: "feedback",
|
|
5805
|
-
version: "
|
|
5865
|
+
version: "7.0.0",
|
|
5806
5866
|
bindings: {
|
|
5807
5867
|
angular: {
|
|
5808
5868
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -5881,7 +5941,7 @@ var uni_index_default = {
|
|
|
5881
5941
|
summary: "",
|
|
5882
5942
|
description: "",
|
|
5883
5943
|
category: "layout",
|
|
5884
|
-
version: "
|
|
5944
|
+
version: "7.0.0",
|
|
5885
5945
|
bindings: {
|
|
5886
5946
|
angular: {
|
|
5887
5947
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -6838,13 +6898,13 @@ var uni_index_default = {
|
|
|
6838
6898
|
},
|
|
6839
6899
|
{
|
|
6840
6900
|
id: "spacing.none",
|
|
6841
|
-
value:
|
|
6901
|
+
value: 0,
|
|
6842
6902
|
type: "spacing",
|
|
6843
6903
|
kind: "style",
|
|
6844
6904
|
target: "emotion-css",
|
|
6845
6905
|
themeValues: {
|
|
6846
|
-
LightTheme:
|
|
6847
|
-
DarkTheme:
|
|
6906
|
+
LightTheme: 0,
|
|
6907
|
+
DarkTheme: 0
|
|
6848
6908
|
}
|
|
6849
6909
|
},
|
|
6850
6910
|
{
|
|
@@ -7903,6 +7963,114 @@ var uni_index_default = {
|
|
|
7903
7963
|
DarkTheme: '{"background":"rgba(255, 255, 255, 0.6)","backdropFilter":"blur(2px)"}'
|
|
7904
7964
|
}
|
|
7905
7965
|
},
|
|
7966
|
+
{
|
|
7967
|
+
id: "dialogButtons.behavior.gap",
|
|
7968
|
+
value: "md",
|
|
7969
|
+
type: "string",
|
|
7970
|
+
kind: "behavioral",
|
|
7971
|
+
target: "component-prop",
|
|
7972
|
+
appliesTo: "dialogButtons",
|
|
7973
|
+
themeValues: {
|
|
7974
|
+
LightTheme: "md",
|
|
7975
|
+
DarkTheme: "md"
|
|
7976
|
+
}
|
|
7977
|
+
},
|
|
7978
|
+
{
|
|
7979
|
+
id: "dialogButtons.behavior.padding",
|
|
7980
|
+
value: "md",
|
|
7981
|
+
type: "string",
|
|
7982
|
+
kind: "behavioral",
|
|
7983
|
+
target: "component-prop",
|
|
7984
|
+
appliesTo: "dialogButtons",
|
|
7985
|
+
themeValues: {
|
|
7986
|
+
LightTheme: "md",
|
|
7987
|
+
DarkTheme: "md"
|
|
7988
|
+
}
|
|
7989
|
+
},
|
|
7990
|
+
{
|
|
7991
|
+
id: "dialogButtons.behavior.paddingBottom",
|
|
7992
|
+
value: "lg",
|
|
7993
|
+
type: "string",
|
|
7994
|
+
kind: "behavioral",
|
|
7995
|
+
target: "component-prop",
|
|
7996
|
+
appliesTo: "dialogButtons",
|
|
7997
|
+
themeValues: {
|
|
7998
|
+
LightTheme: "lg",
|
|
7999
|
+
DarkTheme: "lg"
|
|
8000
|
+
}
|
|
8001
|
+
},
|
|
8002
|
+
{
|
|
8003
|
+
id: "dialogButtons.behavior.justifyContent",
|
|
8004
|
+
value: "center",
|
|
8005
|
+
type: "string",
|
|
8006
|
+
kind: "behavioral",
|
|
8007
|
+
target: "component-prop",
|
|
8008
|
+
appliesTo: "dialogButtons",
|
|
8009
|
+
themeValues: {
|
|
8010
|
+
LightTheme: "center",
|
|
8011
|
+
DarkTheme: "center"
|
|
8012
|
+
}
|
|
8013
|
+
},
|
|
8014
|
+
{
|
|
8015
|
+
id: "dialogButtons.behavior.confirmButtonVariant",
|
|
8016
|
+
value: "primary",
|
|
8017
|
+
type: "string",
|
|
8018
|
+
kind: "behavioral",
|
|
8019
|
+
target: "component-prop",
|
|
8020
|
+
appliesTo: "dialogButtons",
|
|
8021
|
+
themeValues: {
|
|
8022
|
+
LightTheme: "primary",
|
|
8023
|
+
DarkTheme: "primary"
|
|
8024
|
+
}
|
|
8025
|
+
},
|
|
8026
|
+
{
|
|
8027
|
+
id: "dialogButtons.behavior.cancelButtonVariant",
|
|
8028
|
+
value: "warn",
|
|
8029
|
+
type: "string",
|
|
8030
|
+
kind: "behavioral",
|
|
8031
|
+
target: "component-prop",
|
|
8032
|
+
appliesTo: "dialogButtons",
|
|
8033
|
+
themeValues: {
|
|
8034
|
+
LightTheme: "warn",
|
|
8035
|
+
DarkTheme: "warn"
|
|
8036
|
+
}
|
|
8037
|
+
},
|
|
8038
|
+
{
|
|
8039
|
+
id: "dialogButtons.behavior.buttonSize",
|
|
8040
|
+
value: "lg",
|
|
8041
|
+
type: "string",
|
|
8042
|
+
kind: "behavioral",
|
|
8043
|
+
target: "component-prop",
|
|
8044
|
+
appliesTo: "dialogButtons",
|
|
8045
|
+
themeValues: {
|
|
8046
|
+
LightTheme: "lg",
|
|
8047
|
+
DarkTheme: "lg"
|
|
8048
|
+
}
|
|
8049
|
+
},
|
|
8050
|
+
{
|
|
8051
|
+
id: "dialogButtons.behavior.stretch",
|
|
8052
|
+
value: false,
|
|
8053
|
+
type: "boolean",
|
|
8054
|
+
kind: "behavioral",
|
|
8055
|
+
target: "component-prop",
|
|
8056
|
+
appliesTo: "dialogButtons",
|
|
8057
|
+
themeValues: {
|
|
8058
|
+
LightTheme: false,
|
|
8059
|
+
DarkTheme: false
|
|
8060
|
+
}
|
|
8061
|
+
},
|
|
8062
|
+
{
|
|
8063
|
+
id: "dialogButtons.behavior.reverseOrder",
|
|
8064
|
+
value: false,
|
|
8065
|
+
type: "boolean",
|
|
8066
|
+
kind: "behavioral",
|
|
8067
|
+
target: "component-prop",
|
|
8068
|
+
appliesTo: "dialogButtons",
|
|
8069
|
+
themeValues: {
|
|
8070
|
+
LightTheme: false,
|
|
8071
|
+
DarkTheme: false
|
|
8072
|
+
}
|
|
8073
|
+
},
|
|
7906
8074
|
{
|
|
7907
8075
|
id: "dialogHeader.behavior.borderRadius",
|
|
7908
8076
|
value: "max",
|
|
@@ -9433,7 +9601,7 @@ var uni_index_default = {
|
|
|
9433
9601
|
"radius.md": "24px",
|
|
9434
9602
|
"radius.lg": "32px",
|
|
9435
9603
|
"radius.max": "999px",
|
|
9436
|
-
"spacing.none":
|
|
9604
|
+
"spacing.none": 0,
|
|
9437
9605
|
"spacing.xxs": "2px",
|
|
9438
9606
|
"spacing.xs": "4px",
|
|
9439
9607
|
"spacing.sm": "8px",
|
|
@@ -9548,6 +9716,17 @@ var uni_index_default = {
|
|
|
9548
9716
|
elevation: "dialog",
|
|
9549
9717
|
backdrop: '{"background":"rgba(255, 255, 255, 0.6)","backdropFilter":"blur(2px)"}'
|
|
9550
9718
|
},
|
|
9719
|
+
dialogButtons: {
|
|
9720
|
+
gap: "md",
|
|
9721
|
+
padding: "md",
|
|
9722
|
+
paddingBottom: "lg",
|
|
9723
|
+
justifyContent: "center",
|
|
9724
|
+
confirmButtonVariant: "primary",
|
|
9725
|
+
cancelButtonVariant: "warn",
|
|
9726
|
+
buttonSize: "lg",
|
|
9727
|
+
stretch: false,
|
|
9728
|
+
reverseOrder: false
|
|
9729
|
+
},
|
|
9551
9730
|
dialogHeader: {
|
|
9552
9731
|
borderRadius: "max",
|
|
9553
9732
|
color: "primary",
|
|
@@ -9803,7 +9982,7 @@ var uni_index_default = {
|
|
|
9803
9982
|
"radius.md": "24px",
|
|
9804
9983
|
"radius.lg": "32px",
|
|
9805
9984
|
"radius.max": "999px",
|
|
9806
|
-
"spacing.none":
|
|
9985
|
+
"spacing.none": 0,
|
|
9807
9986
|
"spacing.xxs": "2px",
|
|
9808
9987
|
"spacing.xs": "4px",
|
|
9809
9988
|
"spacing.sm": "8px",
|
|
@@ -9918,6 +10097,17 @@ var uni_index_default = {
|
|
|
9918
10097
|
elevation: "dialog",
|
|
9919
10098
|
backdrop: '{"background":"rgba(255, 255, 255, 0.6)","backdropFilter":"blur(2px)"}'
|
|
9920
10099
|
},
|
|
10100
|
+
dialogButtons: {
|
|
10101
|
+
gap: "md",
|
|
10102
|
+
padding: "md",
|
|
10103
|
+
paddingBottom: "lg",
|
|
10104
|
+
justifyContent: "center",
|
|
10105
|
+
confirmButtonVariant: "primary",
|
|
10106
|
+
cancelButtonVariant: "warn",
|
|
10107
|
+
buttonSize: "lg",
|
|
10108
|
+
stretch: false,
|
|
10109
|
+
reverseOrder: false
|
|
10110
|
+
},
|
|
9921
10111
|
dialogHeader: {
|
|
9922
10112
|
borderRadius: "max",
|
|
9923
10113
|
color: "primary",
|
|
@@ -10812,16 +11002,39 @@ var generateShadows = (colors, mode = "light") => {
|
|
|
10812
11002
|
};
|
|
10813
11003
|
};
|
|
10814
11004
|
var BaseIcons = {
|
|
10815
|
-
|
|
10816
|
-
|
|
10817
|
-
|
|
10818
|
-
|
|
10819
|
-
|
|
10820
|
-
|
|
10821
|
-
|
|
10822
|
-
|
|
10823
|
-
|
|
10824
|
-
|
|
11005
|
+
menu: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M140-254.62v-59.99h680v59.99H140ZM140-450v-60h680v60H140Zm0-195.39v-59.99h680v59.99H140Z'/%3e%3c/svg%3e",
|
|
11006
|
+
chevronUp: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='m480-541.85-184 184L253.85-400 480-626.15 706.15-400 664-357.85l-184-184Z'/%3e%3c/svg%3e",
|
|
11007
|
+
chevronDown: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M480-357.85 253.85-584 296-626.15l184 184 184-184L706.15-584 480-357.85Z'/%3e%3c/svg%3e",
|
|
11008
|
+
chevronLeft: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M560-253.85 333.85-480 560-706.15 602.15-664l-184 184 184 184L560-253.85Z'/%3e%3c/svg%3e",
|
|
11009
|
+
chevronRight: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='m517.85-480-184-184L376-706.15 602.15-480 376-253.85 333.85-296l184-184Z'/%3e%3c/svg%3e",
|
|
11010
|
+
arrowLeft: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='m294.92-450 227.85 227.85L480-180 180-480l300-300 42.77 42.15L294.92-510H780v60H294.92Z'/%3e%3c/svg%3e",
|
|
11011
|
+
arrowRight: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M665.08-450H180v-60h485.08L437.23-737.85 480-780l300 300-300 300-42.77-42.15L665.08-450Z'/%3e%3c/svg%3e",
|
|
11012
|
+
home: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M240-200h133.85v-237.69h212.3V-200H720v-360L480-740.77 240-560v360Zm-60 60v-450l300-225.77L780-590v450H526.15v-237.69h-92.3V-140H180Zm300-330.38Z'/%3e%3c/svg%3e",
|
|
11013
|
+
externalLink: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M212.31-140Q182-140 161-161q-21-21-21-51.31v-535.38Q140-778 161-799q21-21 51.31-21h252.3v60h-252.3q-4.62 0-8.46 3.85-3.85 3.84-3.85 8.46v535.38q0 4.62 3.85 8.46 3.84 3.85 8.46 3.85h535.38q4.62 0 8.46-3.85 3.85-3.84 3.85-8.46v-252.3h60v252.3Q820-182 799-161q-21 21-51.31 21H212.31Zm176.46-206.62-42.15-42.15L717.85-760H560v-60h260v260h-60v-157.85L388.77-346.62Z'/%3e%3c/svg%3e",
|
|
11014
|
+
search: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M781.69-136.92 530.46-388.16q-30 24.77-69 38.77-39 14-80.69 14-102.46 0-173.54-71.07-71.07-71.08-71.07-173.54t71.07-173.54q71.08-71.07 173.54-71.07t173.54 71.07q71.07 71.08 71.07 173.54 0 42.85-14.38 81.85-14.39 39-38.39 67.84l251.23 251.23-42.15 42.16ZM380.77-395.38q77.31 0 130.96-53.66 53.66-53.65 53.66-130.96t-53.66-130.96q-53.65-53.66-130.96-53.66t-130.96 53.66Q196.15-657.31 196.15-580t53.66 130.96q53.65 53.66 130.96 53.66Z'/%3e%3c/svg%3e",
|
|
11015
|
+
close: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M256-213.85 213.85-256l224-224-224-224L256-746.15l224 224 224-224L746.15-704l-224 224 224 224L704-213.85l-224-224-224 224Z'/%3e%3c/svg%3e",
|
|
11016
|
+
plus: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M450-450H220v-60h230v-230h60v230h230v60H510v230h-60v-230Z'/%3e%3c/svg%3e",
|
|
11017
|
+
minus: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M220-450v-60h520v60H220Z'/%3e%3c/svg%3e",
|
|
11018
|
+
more: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M480-189.23q-24.75 0-42.37-17.63Q420-224.48 420-249.23q0-24.75 17.63-42.38 17.62-17.62 42.37-17.62 24.75 0 42.37 17.62Q540-273.98 540-249.23q0 24.75-17.63 42.37-17.62 17.63-42.37 17.63ZM480-420q-24.75 0-42.37-17.63Q420-455.25 420-480q0-24.75 17.63-42.37Q455.25-540 480-540q24.75 0 42.37 17.63Q540-504.75 540-480q0 24.75-17.63 42.37Q504.75-420 480-420Zm0-230.77q-24.75 0-42.37-17.62Q420-686.02 420-710.77q0-24.75 17.63-42.37 17.62-17.63 42.37-17.63 24.75 0 42.37 17.63Q540-735.52 540-710.77q0 24.75-17.63 42.38-17.62 17.62-42.37 17.62Z'/%3e%3c/svg%3e",
|
|
11019
|
+
delete: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M292.31-140q-29.92 0-51.12-21.19Q220-182.39 220-212.31V-720h-40v-60h180v-35.38h240V-780h180v60h-40v507.69Q740-182 719-161q-21 21-51.31 21H292.31ZM680-720H280v507.69q0 5.39 3.46 8.85t8.85 3.46h375.38q4.62 0 8.46-3.85 3.85-3.84 3.85-8.46V-720ZM376.16-280h59.99v-360h-59.99v360Zm147.69 0h59.99v-360h-59.99v360ZM280-720v520-520Z'/%3e%3c/svg%3e",
|
|
11020
|
+
edit: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M200-200h50.46l409.46-409.46-50.46-50.46L200-250.46V-200Zm-60 60v-135.38l527.62-527.39q9.07-8.24 20.03-12.73 10.97-4.5 23-4.5t23.3 4.27q11.28 4.27 19.97 13.58l48.85 49.46q9.31 8.69 13.27 20 3.96 11.31 3.96 22.62 0 12.07-4.12 23.03-4.12 10.97-13.11 20.04L275.38-140H140Zm620.38-570.15-50.23-50.23 50.23 50.23Zm-126.13 75.9-24.79-25.67 50.46 50.46-25.67-24.79Z'/%3e%3c/svg%3e",
|
|
11021
|
+
download: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M480-328.46 309.23-499.23l42.16-43.38L450-444v-336h60v336l98.61-98.61 42.16 43.38L480-328.46ZM252.31-180Q222-180 201-201q-21-21-21-51.31v-108.46h60v108.46q0 4.62 3.85 8.46 3.84 3.85 8.46 3.85h455.38q4.62 0 8.46-3.85 3.85-3.84 3.85-8.46v-108.46h60v108.46Q780-222 759-201q-21 21-51.31 21H252.31Z'/%3e%3c/svg%3e",
|
|
11022
|
+
upload: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M450-328.46v-336l-98.61 98.61-42.16-43.38L480-780l170.77 170.77-42.16 43.38L510-664.46v336h-60ZM252.31-180Q222-180 201-201q-21-21-21-51.31v-108.46h60v108.46q0 4.62 3.85 8.46 3.84 3.85 8.46 3.85h455.38q4.62 0 8.46-3.85 3.85-3.84 3.85-8.46v-108.46h60v108.46Q780-222 759-201q-21 21-51.31 21H252.31Z'/%3e%3c/svg%3e",
|
|
11023
|
+
share: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M672.22-100q-44.91 0-76.26-31.41-31.34-31.41-31.34-76.28 0-6 4.15-29.16L284.31-404.31q-14.46 15-34.36 23.5t-42.64 8.5q-44.71 0-76.01-31.54Q100-435.39 100-480q0-44.61 31.3-76.15 31.3-31.54 76.01-31.54 22.74 0 42.64 8.5 19.9 8.5 34.36 23.5l284.46-167.08q-2.38-7.38-3.27-14.46-.88-7.08-.88-15.08 0-44.87 31.43-76.28Q627.49-860 672.4-860t76.25 31.44Q780-797.13 780-752.22q0 44.91-31.41 76.26-31.41 31.34-76.28 31.34-22.85 0-42.5-8.69Q610.15-662 595.69-677L311.23-509.54q2.38 7.39 3.27 14.46.88 7.08.88 15.08t-.88 15.08q-.89 7.07-3.27 14.46L595.69-283q14.46-15 34.12-23.69 19.65-8.69 42.5-8.69 44.87 0 76.28 31.43Q780-252.51 780-207.6t-31.44 76.25Q717.13-100 672.22-100Zm.09-60q20.27 0 33.98-13.71Q720-187.42 720-207.69q0-20.27-13.71-33.98-13.71-13.72-33.98-13.72-20.27 0-33.98 13.72-13.72 13.71-13.72 33.98 0 20.27 13.72 33.98Q652.04-160 672.31-160Zm-465-272.31q20.43 0 34.25-13.8 13.83-13.81 13.83-33.89t-13.83-33.89q-13.82-13.8-34.25-13.8-20.11 0-33.71 13.8Q160-500.08 160-480t13.6 33.89q13.6 13.8 33.71 13.8Zm498.88-286.02Q720-732.04 720-752.31q0-20.27-13.71-33.98Q692.58-800 672.31-800q-20.27 0-33.98 13.71-13.72 13.71-13.72 33.98 0 20.27 13.81 33.98 13.81 13.72 33.89 13.72 20.07 0 33.88-13.72Zm-33.88 510.64ZM207.69-480Zm464.62-272.31Z'/%3e%3c/svg%3e",
|
|
11024
|
+
filter: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M411.15-260v-60h137.31v60H411.15ZM256.16-450v-60h447.3v60h-447.3ZM140-640v-60h680v60H140Z'/%3e%3c/svg%3e",
|
|
11025
|
+
check: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M382-253.85 168.62-467.23 211.38-510 382-339.38 748.62-706l42.76 42.77L382-253.85Z'/%3e%3c/svg%3e",
|
|
11026
|
+
checkCircle: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='m423.23-309.85 268.92-268.92L650-620.92 423.23-394.15l-114-114L267.08-466l156.15 156.15ZM480.07-100q-78.84 0-148.21-29.92t-120.68-81.21q-51.31-51.29-81.25-120.63Q100-401.1 100-479.93q0-78.84 29.92-148.21t81.21-120.68q51.29-51.31 120.63-81.25Q401.1-860 479.93-860q78.84 0 148.21 29.92t120.68 81.21q51.31 51.29 81.25 120.63Q860-558.9 860-480.07q0 78.84-29.92 148.21t-81.21 120.68q-51.29 51.31-120.63 81.25Q558.9-100 480.07-100Zm-.07-60q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z'/%3e%3c/svg%3e",
|
|
11027
|
+
xCircle: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='m336-293.85 144-144 144 144L666.15-336l-144-144 144-144L624-666.15l-144 144-144-144L293.85-624l144 144-144 144L336-293.85ZM480.07-100q-78.84 0-148.21-29.92t-120.68-81.21q-51.31-51.29-81.25-120.63Q100-401.1 100-479.93q0-78.84 29.92-148.21t81.21-120.68q51.29-51.31 120.63-81.25Q401.1-860 479.93-860q78.84 0 148.21 29.92t120.68 81.21q51.31 51.29 81.25 120.63Q860-558.9 860-480.07q0 78.84-29.92 148.21t-81.21 120.68q-51.29 51.31-120.63 81.25Q558.9-100 480.07-100Zm-.07-60q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z'/%3e%3c/svg%3e",
|
|
11028
|
+
alertCircle: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M502.92-300.15q9.39-9.39 9.39-22.93T502.92-346q-9.38-9.38-22.92-9.38-13.54 0-22.92 9.38-9.39 9.38-9.39 22.92 0 13.54 9.39 22.93 9.38 9.38 22.92 9.38 13.54 0 22.92-9.38ZM450-436.92h60v-240h-60v240ZM480.07-100q-78.84 0-148.21-29.92t-120.68-81.21q-51.31-51.29-81.25-120.63Q100-401.1 100-479.93q0-78.84 29.92-148.21t81.21-120.68q51.29-51.31 120.63-81.25Q401.1-860 479.93-860q78.84 0 148.21 29.92t120.68 81.21q51.31 51.29 81.25 120.63Q860-558.9 860-480.07q0 78.84-29.92 148.21t-81.21 120.68q-51.29 51.31-120.63 81.25Q558.9-100 480.07-100Zm-.07-60q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z'/%3e%3c/svg%3e",
|
|
11029
|
+
info: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M450-290h60v-230h-60v230Zm52.92-307.75q9.39-9.29 9.39-23.02t-9.29-23.02q-9.29-9.28-23.02-9.28t-23.02 9.28q-9.29 9.29-9.29 23.02t9.39 23.02q9.38 9.29 22.92 9.29 13.54 0 22.92-9.29ZM480.07-100q-78.84 0-148.21-29.92t-120.68-81.21q-51.31-51.29-81.25-120.63Q100-401.1 100-479.93q0-78.84 29.92-148.21t81.21-120.68q51.29-51.31 120.63-81.25Q401.1-860 479.93-860q78.84 0 148.21 29.92t120.68 81.21q51.31 51.29 81.25 120.63Q860-558.9 860-480.07q0 78.84-29.92 148.21t-81.21 120.68q-51.29 51.31-120.63 81.25Q558.9-100 480.07-100Zm-.07-60q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z'/%3e%3c/svg%3e",
|
|
11030
|
+
warning: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M74.62-140 480-840l405.38 700H74.62ZM178-200h604L480-720 178-200Zm324.92-57.08q9.39-9.38 9.39-22.92 0-13.54-9.39-22.92-9.38-9.39-22.92-9.39-13.54 0-22.92 9.39-9.39 9.38-9.39 22.92 0 13.54 9.39 22.92 9.38 9.39 22.92 9.39 13.54 0 22.92-9.39ZM450-352.31h60v-200h-60v200ZM480-460Z'/%3e%3c/svg%3e",
|
|
11031
|
+
lock: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M252.31-100q-29.92 0-51.12-21.19Q180-142.39 180-172.31v-375.38q0-29.92 21.19-51.12Q222.39-620 252.31-620H300v-80q0-74.92 52.54-127.46Q405.08-880 480-880q74.92 0 127.46 52.54Q660-774.92 660-700v80h47.69q29.92 0 51.12 21.19Q780-577.61 780-547.69v375.38q0 29.92-21.19 51.12Q737.61-100 707.69-100H252.31Zm0-60h455.38q5.39 0 8.85-3.46t3.46-8.85v-375.38q0-5.39-3.46-8.85t-8.85-3.46H252.31q-5.39 0-8.85 3.46t-3.46 8.85v375.38q0 5.39 3.46 8.85t8.85 3.46Zm277.27-150.42Q550-330.85 550-360t-20.42-49.58Q509.15-430 480-430t-49.58 20.42Q410-389.15 410-360t20.42 49.58Q450.85-290 480-290t49.58-20.42ZM360-620h240v-80q0-50-35-85t-85-35q-50 0-85 35t-35 85v80ZM240-160v-400 400Z'/%3e%3c/svg%3e",
|
|
11032
|
+
profile: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M381.04-533.35Q340-574.38 340-632.31q0-57.92 41.04-98.96 41.04-41.04 98.96-41.04 57.92 0 98.96 41.04Q620-690.23 620-632.31q0 57.93-41.04 98.96-41.04 41.04-98.96 41.04-57.92 0-98.96-41.04ZM180-187.69v-88.93q0-29.38 15.96-54.42 15.96-25.04 42.66-38.5 59.3-29.07 119.65-43.61 60.35-14.54 121.73-14.54t121.73 14.54q60.35 14.54 119.65 43.61 26.7 13.46 42.66 38.5Q780-306 780-276.62v88.93H180Zm60-60h480v-28.93q0-12.15-7.04-22.5-7.04-10.34-19.11-16.88-51.7-25.46-105.42-38.58Q534.7-367.69 480-367.69q-54.7 0-108.43 13.11-53.72 13.12-105.42 38.58-12.07 6.54-19.11 16.88-7.04 10.35-7.04 22.5v28.93Zm296.5-328.12q23.5-23.5 23.5-56.5t-23.5-56.5q-23.5-23.5-56.5-23.5t-56.5 23.5q-23.5 23.5-23.5 56.5t23.5 56.5q23.5 23.5 56.5 23.5t56.5-23.5Zm-56.5-56.5Zm0 384.62Z'/%3e%3c/svg%3e",
|
|
11033
|
+
settings: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='m387.69-100-15.23-121.85q-16.07-5.38-32.96-15.07-16.88-9.7-30.19-20.77L196.46-210l-92.3-160 97.61-73.77q-1.38-8.92-1.96-17.92-.58-9-.58-17.93 0-8.53.58-17.34t1.96-19.27L104.16-590l92.3-159.23 112.46 47.31q14.47-11.46 30.89-20.96t32.27-15.27L387.69-860h184.62l15.23 122.23q18 6.54 32.57 15.27 14.58 8.73 29.43 20.58l114-47.31L855.84-590l-99.15 74.92q2.15 9.69 2.35 18.12.19 8.42.19 16.96 0 8.15-.39 16.58-.38 8.42-2.76 19.27L854.46-370l-92.31 160-112.61-48.08q-14.85 11.85-30.31 20.96-15.46 9.12-31.69 14.89L572.31-100H387.69ZM440-160h78.62L533-267.15q30.62-8 55.96-22.73 25.35-14.74 48.89-37.89L737.23-286l39.39-68-86.77-65.38q5-15.54 6.8-30.47 1.81-14.92 1.81-30.15 0-15.62-1.81-30.15-1.8-14.54-6.8-29.7L777.38-606 738-674l-100.54 42.38q-20.08-21.46-48.11-37.92-28.04-16.46-56.73-23.31L520-800h-79.38l-13.24 106.77q-30.61 7.23-56.53 22.15-25.93 14.93-49.47 38.46L222-674l-39.38 68L269-541.62q-5 14.24-7 29.62t-2 32.38q0 15.62 2 30.62 2 15 6.62 29.62l-86 65.38L222-286l99-42q22.77 23.38 48.69 38.31 25.93 14.92 57.31 22.92L440-160Zm40.46-200q49.92 0 84.96-35.04 35.04-35.04 35.04-84.96 0-49.92-35.04-84.96Q530.38-600 480.46-600q-50.54 0-85.27 35.04T360.46-480q0 49.92 34.73 84.96Q429.92-360 480.46-360ZM480-480Z'/%3e%3c/svg%3e",
|
|
11034
|
+
notification: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M180-204.62v-59.99h72.31v-298.47q0-80.69 49.81-142.69 49.8-62 127.88-79.31V-810q0-20.83 14.57-35.42Q459.14-860 479.95-860q20.82 0 35.43 14.58Q530-830.83 530-810v24.92q78.08 17.31 127.88 79.31 49.81 62 49.81 142.69v298.47H780v59.99H180Zm300-293.07Zm-.07 405.38q-29.85 0-51.04-21.24-21.2-21.24-21.2-51.07h144.62q0 29.93-21.26 51.12-21.26 21.19-51.12 21.19Zm-167.62-172.3h335.38v-298.47q0-69.46-49.11-118.57-49.12-49.12-118.58-49.12-69.46 0-118.58 49.12-49.11 49.11-49.11 118.57v298.47Z'/%3e%3c/svg%3e",
|
|
11035
|
+
favorite: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='m480-146.93-44.15-39.69q-99.46-90.23-164.5-155.07-65.04-64.85-103.08-115.43-38.04-50.57-53.15-92.27Q100-591.08 100-634q0-85.15 57.42-142.58Q214.85-834 300-834q52.38 0 99 24.5t81 70.27q34.38-45.77 81-70.27 46.62-24.5 99-24.5 85.15 0 142.58 57.42Q860-719.15 860-634q0 42.92-15.12 84.61-15.11 41.7-53.15 92.27-38.04 50.58-102.89 115.43Q624-276.85 524.15-186.62L480-146.93Zm0-81.07q96-86.38 158-148.08 62-61.69 98-107.19t50-80.81q14-35.3 14-69.92 0-60-40-100t-100-40q-47.38 0-87.58 26.88-40.19 26.89-63.65 74.81h-57.54q-23.85-48.31-63.85-75Q347.38-774 300-774q-59.62 0-99.81 40Q160-694 160-634q0 34.62 14 69.92 14 35.31 50 80.81t98 107q62 61.5 158 148.27Zm0-273Z'/%3e%3c/svg%3e",
|
|
11036
|
+
help: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M508.5-267.21q11.81-11.83 11.81-28.97 0-17.13-11.83-28.94-11.83-11.8-28.96-11.8-17.13 0-28.94 11.83-11.81 11.83-11.81 28.96 0 17.13 11.83 28.94 11.83 11.8 28.96 11.8 17.13 0 28.94-11.82Zm-57.27-131.41h56.31q.77-29.53 8.65-47.19 7.89-17.65 38.27-46.8 26.39-26.39 40.42-48.74 14.04-22.34 14.04-52.77 0-51.65-37.11-80.69-37.12-29.03-87.81-29.03-50.08 0-82.88 26.73-32.81 26.73-46.81 62.96l51.38 20.61q7.31-19.92 25-38.81 17.69-18.88 52.54-18.88 35.46 0 52.42 19.42 16.97 19.43 16.97 42.73 0 20.39-11.62 37.31-11.61 16.92-29.61 32.69-39.39 35.54-49.77 56.7-10.39 21.15-10.39 63.76ZM480.07-100q-78.84 0-148.21-29.92t-120.68-81.21q-51.31-51.29-81.25-120.63Q100-401.1 100-479.93q0-78.84 29.92-148.21t81.21-120.68q51.29-51.31 120.63-81.25Q401.1-860 479.93-860q78.84 0 148.21 29.92t120.68 81.21q51.31 51.29 81.25 120.63Q860-558.9 860-480.07q0 78.84-29.92 148.21t-81.21 120.68q-51.29 51.31-120.63 81.25Q558.9-100 480.07-100Zm-.07-60q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z'/%3e%3c/svg%3e",
|
|
11037
|
+
calendar: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M212.31-100Q182-100 161-121q-21-21-21-51.31v-535.38Q140-738 161-759q21-21 51.31-21h55.38v-84.61h61.54V-780h303.08v-84.61h60V-780h55.38Q778-780 799-759q21 21 21 51.31v535.38Q820-142 799-121q-21 21-51.31 21H212.31Zm0-60h535.38q4.62 0 8.46-3.85 3.85-3.84 3.85-8.46v-375.38H200v375.38q0 4.62 3.85 8.46 3.84 3.85 8.46 3.85ZM200-607.69h560v-100q0-4.62-3.85-8.46-3.84-3.85-8.46-3.85H212.31q-4.62 0-8.46 3.85-3.85 3.84-3.85 8.46v100Zm0 0V-720v112.31Zm280 210.77q-14.69 0-25.04-10.35-10.34-10.34-10.34-25.04 0-14.69 10.34-25.04 10.35-10.34 25.04-10.34t25.04 10.34q10.34 10.35 10.34 25.04 0 14.7-10.34 25.04-10.35 10.35-25.04 10.35Zm-185.04-10.35q-10.34-10.34-10.34-25.04 0-14.69 10.34-25.04 10.35-10.34 25.04-10.34t25.04 10.34q10.34 10.35 10.34 25.04 0 14.7-10.34 25.04-10.35 10.35-25.04 10.35t-25.04-10.35ZM640-396.92q-14.69 0-25.04-10.35-10.34-10.34-10.34-25.04 0-14.69 10.34-25.04 10.35-10.34 25.04-10.34t25.04 10.34q10.34 10.35 10.34 25.04 0 14.7-10.34 25.04-10.35 10.35-25.04 10.35ZM480-240q-14.69 0-25.04-10.35-10.34-10.34-10.34-25.03 0-14.7 10.34-25.04 10.35-10.35 25.04-10.35t25.04 10.35q10.34 10.34 10.34 25.04 0 14.69-10.34 25.03Q494.69-240 480-240Zm-185.04-10.35q-10.34-10.34-10.34-25.03 0-14.7 10.34-25.04 10.35-10.35 25.04-10.35t25.04 10.35q10.34 10.34 10.34 25.04 0 14.69-10.34 25.03Q334.69-240 320-240t-25.04-10.35ZM640-240q-14.69 0-25.04-10.35-10.34-10.34-10.34-25.03 0-14.7 10.34-25.04 10.35-10.35 25.04-10.35t25.04 10.35q10.34 10.34 10.34 25.04 0 14.69-10.34 25.03Q654.69-240 640-240Z'/%3e%3c/svg%3e",
|
|
10825
11038
|
spinner: "data:image/svg+xml;charset=UTF-8,%3csvg stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' %3e%3cstyle%3e .oui_spinner %7b transform-origin: center; animation: rotate_360 2s linear infinite;%7d .oui_spinner circle %7b stroke-linecap: round; animation: dash 1.5s ease-in-out infinite;%7d %40keyframes rotate_360 %7b 100%25 %7b transform: rotate(360deg);%7d %7d %40keyframes dash %7b 0%25 %7b stroke-dasharray: 0 150; stroke-dashoffset: 0;%7d 47.5%25 %7b stroke-dasharray: 42 150; stroke-dashoffset: -16;%7d 95%25, 100%25 %7b stroke-dasharray: 42 150; stroke-dashoffset: -59;%7d %7d %3c/style%3e%3cg class='oui_spinner'%3e%3ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3e%3c/circle%3e%3c/g%3e%3c/svg%3e "
|
|
10826
11039
|
};
|
|
10827
11040
|
var BaseTypography = {
|
|
@@ -10987,7 +11200,7 @@ var BaseShadows = {
|
|
|
10987
11200
|
warn: "0 0 5px rgba(255, 0, 0, 0.5), inset 0 0 5px rgba(255, 0, 0, 0.3)"
|
|
10988
11201
|
};
|
|
10989
11202
|
var BaseSpacing = {
|
|
10990
|
-
none:
|
|
11203
|
+
none: 0,
|
|
10991
11204
|
xxs: "2px",
|
|
10992
11205
|
xs: "4px",
|
|
10993
11206
|
sm: "8px",
|
|
@@ -11139,6 +11352,17 @@ var buildComponents = (c) => ({
|
|
|
11139
11352
|
backdropFilter: "blur(2px)"
|
|
11140
11353
|
}
|
|
11141
11354
|
} },
|
|
11355
|
+
dialogButtons: { options: {
|
|
11356
|
+
gap: "md",
|
|
11357
|
+
padding: "md",
|
|
11358
|
+
paddingBottom: "lg",
|
|
11359
|
+
justifyContent: "center",
|
|
11360
|
+
confirmButtonVariant: "primary",
|
|
11361
|
+
cancelButtonVariant: "warn",
|
|
11362
|
+
buttonSize: "lg",
|
|
11363
|
+
stretch: false,
|
|
11364
|
+
reverseOrder: false
|
|
11365
|
+
} },
|
|
11142
11366
|
dialogHeader: { options: {
|
|
11143
11367
|
borderRadius: "max",
|
|
11144
11368
|
color: "primary",
|
|
@@ -11737,11 +11961,22 @@ ${recordLiteral(shadows, " ")}
|
|
|
11737
11961
|
"const components = (colors: Colors): ComponentThemes => ({});",
|
|
11738
11962
|
"",
|
|
11739
11963
|
"/**",
|
|
11740
|
-
" * Icon primitives, merged over the built-in set
|
|
11741
|
-
" *
|
|
11742
|
-
" *
|
|
11743
|
-
" *
|
|
11744
|
-
|
|
11964
|
+
" * Icon primitives, merged over the built-in 34-icon set per name: reuse a",
|
|
11965
|
+
" * built-in name to reskin it, or add any new name. Define an icon ONCE here",
|
|
11966
|
+
" * and render it anywhere via `<uni-icon name='\u2026'/>` \u2014 never inline SVG in",
|
|
11967
|
+
" * components.",
|
|
11968
|
+
" *",
|
|
11969
|
+
" * Encode your own SVGs with `svgToIconUri` rather than by hand \u2014 it strips",
|
|
11970
|
+
" * fixed width/height, escapes the URI and rejects artwork that cannot",
|
|
11971
|
+
" * survive masking:",
|
|
11972
|
+
" *",
|
|
11973
|
+
" * import { svgToIconUri } from '@uni-design-system/uni-core';",
|
|
11974
|
+
" * const icons: Icons = { logo: svgToIconUri(readFileSync('logo.svg', 'utf8')) };",
|
|
11975
|
+
" *",
|
|
11976
|
+
" * Icons are masked with currentColor, so they recolor with the theme \u2014 but",
|
|
11977
|
+
" * that also means they are MONOCHROME: the mask uses the alpha channel, so a",
|
|
11978
|
+
" * multi-color mark flattens to its silhouette. Keep one grid (viewBox) across",
|
|
11979
|
+
" * your set, or the glyphs will not share an optical weight.",
|
|
11745
11980
|
" */",
|
|
11746
11981
|
"const icons: Icons = {};",
|
|
11747
11982
|
"",
|
|
@@ -11769,6 +12004,48 @@ ${recordLiteral(radii, " ")}
|
|
|
11769
12004
|
reportSummary
|
|
11770
12005
|
};
|
|
11771
12006
|
};
|
|
12007
|
+
var BLANK_PAINT = /* @__PURE__ */ new Set([
|
|
12008
|
+
"none",
|
|
12009
|
+
"transparent",
|
|
12010
|
+
"inherit",
|
|
12011
|
+
""
|
|
12012
|
+
]);
|
|
12013
|
+
function paintValues(svg) {
|
|
12014
|
+
const found = /* @__PURE__ */ new Set();
|
|
12015
|
+
for (const [, value] of svg.matchAll(/\b(?:fill|stroke)\s*=\s*["']([^"']*)["']/g)) {
|
|
12016
|
+
const paint = value.trim().toLowerCase();
|
|
12017
|
+
if (!BLANK_PAINT.has(paint)) found.add(paint);
|
|
12018
|
+
}
|
|
12019
|
+
for (const [, , value] of svg.matchAll(/\b(fill|stroke)\s*:\s*([^;"'}]+)/g)) {
|
|
12020
|
+
const paint = value.trim().toLowerCase();
|
|
12021
|
+
if (!BLANK_PAINT.has(paint)) found.add(paint);
|
|
12022
|
+
}
|
|
12023
|
+
return [...found];
|
|
12024
|
+
}
|
|
12025
|
+
function normalize(svg) {
|
|
12026
|
+
return svg.replace(/<\?xml[^>]*\?>/g, "").replace(/<!DOCTYPE[^>]*>/gi, "").replace(/<!--[\s\S]*?-->/g, "").replace(/\s(width|height)\s*=\s*["'][^"']*["']/g, "").replace(/\s+/g, " ").replace(/>\s+</g, "><").trim();
|
|
12027
|
+
}
|
|
12028
|
+
function encode(svg) {
|
|
12029
|
+
return "data:image/svg+xml," + svg.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3c").replace(/>/g, "%3e");
|
|
12030
|
+
}
|
|
12031
|
+
function svgToIconUri(svg, options = {}) {
|
|
12032
|
+
const label = options.name ? `${options.name}: ` : "";
|
|
12033
|
+
const fail = (message) => {
|
|
12034
|
+
throw new Error(`${label}${message}`);
|
|
12035
|
+
};
|
|
12036
|
+
if (typeof svg !== "string" || !svg.trim()) fail("empty SVG source");
|
|
12037
|
+
const normalized = normalize(svg);
|
|
12038
|
+
if (!/^<svg[\s>]/i.test(normalized) || !/<\/svg>$/i.test(normalized)) fail("not a complete <svg> document");
|
|
12039
|
+
if (!/\bviewBox\s*=\s*["'][^"']+["']/i.test(normalized)) fail("no viewBox \u2014 the icon could not scale to its container");
|
|
12040
|
+
if (/<image\b/i.test(normalized)) fail("contains a raster <image>; masks need vector artwork");
|
|
12041
|
+
if (/\b(?:xlink:)?href\s*=\s*["'](?!#)/i.test(normalized)) fail("references an external resource, which a masked SVG cannot load");
|
|
12042
|
+
if (!options.allowMultiColor) {
|
|
12043
|
+
const paints = paintValues(normalized);
|
|
12044
|
+
if (paints.some((p) => p.startsWith("url("))) fail("paints with a gradient or pattern \u2014 masks use the alpha channel only, so it would flatten to a silhouette. Pass { allowMultiColor: true } to accept that.");
|
|
12045
|
+
if (paints.length > 1) fail(`paints in ${paints.length} colors (${paints.join(", ")}) \u2014 masks use the alpha channel only, so it would flatten to a silhouette in currentColor. Pass { allowMultiColor: true } to accept that.`);
|
|
12046
|
+
}
|
|
12047
|
+
return encode(normalized);
|
|
12048
|
+
}
|
|
11772
12049
|
var GetBoxShadow = ({ offset, blur, opacity }) => {
|
|
11773
12050
|
return `0 ${offset}px ${blur}px rgba(0,0,0,0.${opacity})`;
|
|
11774
12051
|
};
|
|
@@ -11919,25 +12196,119 @@ ${failing.map((f) => `- ${f.mode} \`${f.foreground}\` on \`${f.background}\`: ${
|
|
|
11919
12196
|
"- **Icons**: never inline SVG in components. Define an icon ONCE in the theme file's",
|
|
11920
12197
|
" `icons` map as an inline SVG data URI \u2014 it is masked with `currentColor`, so it",
|
|
11921
12198
|
" recolors with the theme \u2014 then render it anywhere with `<uni-icon name='\u2026'/>`.",
|
|
11922
|
-
" A built-in set
|
|
12199
|
+
" A built-in set of 34 icons ships with every theme (navigation, actions, feedback,",
|
|
12200
|
+
" user/system) \u2014 check `BaseIcons` before adding one; names are flat camelCase",
|
|
12201
|
+
" (`chevronDown`, `checkCircle`, `externalLink`) and `IconName` autocompletes them.",
|
|
12202
|
+
" To add your own, encode with `svgToIconUri` from uni-core rather than hand-writing",
|
|
12203
|
+
" a data URI \u2014 it strips fixed width/height, escapes the URI, and throws on artwork",
|
|
12204
|
+
" that cannot be masked. Icons are MONOCHROME (the mask uses the alpha channel), so a",
|
|
12205
|
+
" multi-color logo flattens to a silhouette; keep one viewBox grid across the set.",
|
|
11923
12206
|
"- Never hardcode hex values in application components: style through `ThemeService`",
|
|
11924
12207
|
" accessors and semantic token names so themes stay swappable."
|
|
11925
12208
|
].join("\n");
|
|
11926
12209
|
}
|
|
11927
12210
|
|
|
12211
|
+
// src/server/icons.ts
|
|
12212
|
+
var DATA_URI = /^data:image\/svg\+xml[^,]*,/;
|
|
12213
|
+
function toCamelCase(name) {
|
|
12214
|
+
const cleaned = name.trim().replace(/\.svg$/i, "").replace(/[^A-Za-z0-9]+(.)?/g, (_, chr) => chr ? chr.toUpperCase() : "");
|
|
12215
|
+
return cleaned.charAt(0).toLowerCase() + cleaned.slice(1);
|
|
12216
|
+
}
|
|
12217
|
+
var decode = (uri) => decodeURIComponent(uri.replace(DATA_URI, ""));
|
|
12218
|
+
var viewBoxOf = (svg) => svg.match(/viewBox\s*=\s*["']([^"']+)["']/i)?.[1] ?? "unknown";
|
|
12219
|
+
var BASE_GRID = viewBoxOf(decode(BaseIcons.chevronDown));
|
|
12220
|
+
function formatIconTokens(icons) {
|
|
12221
|
+
if (!icons.length) {
|
|
12222
|
+
return "No icons supplied. Pass `icons: [{ name, svg }]` \u2014 `svg` may be raw SVG source or an already-encoded data URI.";
|
|
12223
|
+
}
|
|
12224
|
+
const encoded = [];
|
|
12225
|
+
const rejected = [];
|
|
12226
|
+
for (const { name, svg, allowMultiColor } of icons) {
|
|
12227
|
+
const tokenName = toCamelCase(name);
|
|
12228
|
+
const source = DATA_URI.test(svg.trim()) ? decode(svg.trim()) : svg;
|
|
12229
|
+
try {
|
|
12230
|
+
const uri = svgToIconUri(source, { name: tokenName, allowMultiColor });
|
|
12231
|
+
encoded.push({ name: tokenName, originalName: name, uri, viewBox: viewBoxOf(decode(uri)) });
|
|
12232
|
+
} catch (error) {
|
|
12233
|
+
const reason = error.message.replace(`${tokenName}: `, "").replace(
|
|
12234
|
+
/Pass \{ allowMultiColor: true \} to accept that\./,
|
|
12235
|
+
`Set \`allowMultiColor: true\` on \`${tokenName}\` and call again if a silhouette is intended.`
|
|
12236
|
+
);
|
|
12237
|
+
rejected.push({ name: tokenName, reason });
|
|
12238
|
+
}
|
|
12239
|
+
}
|
|
12240
|
+
const out = [];
|
|
12241
|
+
out.push(`# Icon tokens \u2014 ${encoded.length} of ${icons.length} encoded`);
|
|
12242
|
+
out.push("");
|
|
12243
|
+
if (encoded.length) {
|
|
12244
|
+
out.push("## Add to `uni-theme.ts`");
|
|
12245
|
+
out.push("");
|
|
12246
|
+
out.push("Merge these into the `icons` const. They are merged over the built-in set per");
|
|
12247
|
+
out.push('name, then rendered anywhere with `<uni-icon name="\u2026" />` \u2014 delete the inline');
|
|
12248
|
+
out.push("`<svg>` from the component.");
|
|
12249
|
+
out.push("");
|
|
12250
|
+
out.push("```ts");
|
|
12251
|
+
out.push("const icons: Icons = {");
|
|
12252
|
+
for (const { name, uri } of encoded) out.push(` ${name}: "${uri}",`);
|
|
12253
|
+
out.push("};");
|
|
12254
|
+
out.push("```");
|
|
12255
|
+
out.push("");
|
|
12256
|
+
}
|
|
12257
|
+
if (rejected.length) {
|
|
12258
|
+
out.push("## Not encoded");
|
|
12259
|
+
out.push("");
|
|
12260
|
+
out.push("These cannot render as a mask. Fix the artwork and call again.");
|
|
12261
|
+
out.push("");
|
|
12262
|
+
for (const { name, reason } of rejected) out.push(`- \`${name}\` \u2014 ${reason}`);
|
|
12263
|
+
out.push("");
|
|
12264
|
+
}
|
|
12265
|
+
const notes = [];
|
|
12266
|
+
const renamed = encoded.filter((e) => e.name !== e.originalName);
|
|
12267
|
+
if (renamed.length) {
|
|
12268
|
+
notes.push(
|
|
12269
|
+
`Renamed to the set's flat camelCase convention: ${renamed.map((e) => `\`${e.originalName}\` \u2192 \`${e.name}\``).join(", ")}.`
|
|
12270
|
+
);
|
|
12271
|
+
}
|
|
12272
|
+
const overrides = encoded.filter((e) => e.name in BaseIcons);
|
|
12273
|
+
if (overrides.length) {
|
|
12274
|
+
notes.push(
|
|
12275
|
+
`Overrides a built-in icon: ${overrides.map((e) => `\`${e.name}\``).join(", ")}. Intentional for rebranding a standard glyph; rename if you meant to add a new one.`
|
|
12276
|
+
);
|
|
12277
|
+
}
|
|
12278
|
+
const grids = [...new Set(encoded.map((e) => e.viewBox))];
|
|
12279
|
+
if (grids.length > 1) {
|
|
12280
|
+
notes.push(
|
|
12281
|
+
`Mixed viewBox grids (${grids.map((g) => `\`${g}\``).join(", ")}). Icons drawn on different grids will not share an optical weight or size. Re-export the set on one grid.`
|
|
12282
|
+
);
|
|
12283
|
+
} else if (grids.length === 1 && grids[0] !== BASE_GRID && overrides.length) {
|
|
12284
|
+
notes.push(
|
|
12285
|
+
`This set is drawn on \`${grids[0]}\` while the built-in set uses \`${BASE_GRID}\`. That is fine on its own, but a glyph overriding a built-in will sit next to un-overridden built-ins, so check they read at the same weight.`
|
|
12286
|
+
);
|
|
12287
|
+
}
|
|
12288
|
+
notes.push(
|
|
12289
|
+
'Icons are masked with `currentColor`, so they are monochrome: the mask uses the alpha channel and any fill colors in the source are discarded. Color them by setting text color on the container, or with `<uni-icon color="\u2026" />`.'
|
|
12290
|
+
);
|
|
12291
|
+
out.push("## Notes");
|
|
12292
|
+
out.push("");
|
|
12293
|
+
for (const note of notes) out.push(`- ${note}`);
|
|
12294
|
+
return out.join("\n");
|
|
12295
|
+
}
|
|
12296
|
+
|
|
11928
12297
|
// src/server/core.ts
|
|
11929
12298
|
var FrameworkArg = z.enum(["angular", "react"]);
|
|
11930
12299
|
function text(body) {
|
|
11931
12300
|
return { content: [{ type: "text", text: body }] };
|
|
11932
12301
|
}
|
|
11933
12302
|
function notFound(kind, id) {
|
|
11934
|
-
return text(
|
|
12303
|
+
return text(
|
|
12304
|
+
`No ${kind} found with id \`${id}\`. Use the matching list/search tool to discover valid ids.`
|
|
12305
|
+
);
|
|
11935
12306
|
}
|
|
11936
12307
|
function createUniServer() {
|
|
11937
12308
|
const server = new McpServer(
|
|
11938
12309
|
{ name: "uni-design-system", version: meta.version },
|
|
11939
12310
|
{
|
|
11940
|
-
instructions:
|
|
12311
|
+
instructions: 'Authoritative interface to the Uni Design System. Prefer these tools over recalling component APIs or token values from memory: names, props, and tokens here match the exact Uni release the developer installed. Start with `list-components` or `search`, then `get-component` / `get-component-examples`. Use real token ids (via `list-tokens`) instead of raw hex; apply themes with `get-theme-template` (style overrides go through Emotion, component options are props). To brand an app, call `generate-uni-theme` once and write the returned static `uni-theme.ts`; to change look and feel afterwards (colors, borders, per-component styling), edit that file\'s tokens directly \u2014 shared tokens propagate everywhere. Never inline `<svg>` in a component: when you meet inline SVG, or a brand icon set to import, call `create-icon-tokens` to convert it into theme icon tokens, add them to `uni-theme.ts`, and render with `<uni-icon name="\u2026" />`.'
|
|
11941
12312
|
}
|
|
11942
12313
|
);
|
|
11943
12314
|
server.registerTool(
|
|
@@ -11958,7 +12329,10 @@ function createUniServer() {
|
|
|
11958
12329
|
{
|
|
11959
12330
|
title: "Get a Uni component",
|
|
11960
12331
|
description: "Full reference for one component: description, per-framework import + selector/tag, complete API (inputs/outputs or props/events), related tokens, and a sample. Pass `framework` to scope to Angular or React.",
|
|
11961
|
-
inputSchema: {
|
|
12332
|
+
inputSchema: {
|
|
12333
|
+
id: z.string().describe('component id, e.g. "button"'),
|
|
12334
|
+
framework: FrameworkArg.optional()
|
|
12335
|
+
}
|
|
11962
12336
|
},
|
|
11963
12337
|
async ({ id, framework }) => {
|
|
11964
12338
|
const c = getComponent(id);
|
|
@@ -11995,7 +12369,9 @@ function createUniServer() {
|
|
|
11995
12369
|
{
|
|
11996
12370
|
title: "Get a design token",
|
|
11997
12371
|
description: "Resolved value, type, style/behavioral classification, alias chain, and per-theme values for one token.",
|
|
11998
|
-
inputSchema: {
|
|
12372
|
+
inputSchema: {
|
|
12373
|
+
id: z.string().describe('token id, e.g. "color.primary" or "input.behavior.height"')
|
|
12374
|
+
}
|
|
11999
12375
|
},
|
|
12000
12376
|
async ({ id }) => {
|
|
12001
12377
|
const t = getToken(id);
|
|
@@ -12016,7 +12392,11 @@ function createUniServer() {
|
|
|
12016
12392
|
);
|
|
12017
12393
|
server.registerTool(
|
|
12018
12394
|
"list-themes",
|
|
12019
|
-
{
|
|
12395
|
+
{
|
|
12396
|
+
title: "List theme templates",
|
|
12397
|
+
description: "Available Uni theme templates.",
|
|
12398
|
+
inputSchema: {}
|
|
12399
|
+
},
|
|
12020
12400
|
async () => text(formatThemeList(listThemes()))
|
|
12021
12401
|
);
|
|
12022
12402
|
server.registerTool(
|
|
@@ -12037,9 +12417,13 @@ function createUniServer() {
|
|
|
12037
12417
|
title: "Generate a Uni brand theme file",
|
|
12038
12418
|
description: "Generate a complete, WCAG-AA light+dark Uni theme from brand hex color(s) and return the static `uni-theme.ts` file content (write it to `src/app/uni-theme.ts`), the `UNI_THEMES` provider registration snippet, and a contrast report. The file is plain editable data and becomes the source of truth: later restyling means editing its tokens (colors, named border primitives, sparse component overrides) \u2014 not calling this tool again. Never hardcode hex in components; reference theme tokens.",
|
|
12039
12419
|
inputSchema: {
|
|
12040
|
-
brand: z.union([z.string(), z.array(z.string()).min(1).max(3)]).describe(
|
|
12420
|
+
brand: z.union([z.string(), z.array(z.string()).min(1).max(3)]).describe(
|
|
12421
|
+
'Brand hex color(s), e.g. "#0052FF". 2\u20133 colors map to primary/secondary/tertiary.'
|
|
12422
|
+
),
|
|
12041
12423
|
vibe: z.enum(["jewel", "pastel", "earth", "neutral", "florescent"]).optional().describe("Tonal character; defaults to a category inferred from the seed chroma."),
|
|
12042
|
-
scheme: z.enum(["monochromatic", "analogous", "complimentary", "splitComplimentary", "triadic"]).optional().describe(
|
|
12424
|
+
scheme: z.enum(["monochromatic", "analogous", "complimentary", "splitComplimentary", "triadic"]).optional().describe(
|
|
12425
|
+
"Hue-wheel relationship for generated roles; auto-classified for multi-color input."
|
|
12426
|
+
),
|
|
12043
12427
|
shape: z.enum(["sharp", "modern", "playful"]).optional().describe("Shape language \u2014 emits a radii override into the file."),
|
|
12044
12428
|
name: z.string().optional().describe('Theme display name, defaults to "Brand".'),
|
|
12045
12429
|
darkMode: z.boolean().optional().describe("Emit the dark theme too. Defaults to true.")
|
|
@@ -12047,6 +12431,25 @@ function createUniServer() {
|
|
|
12047
12431
|
},
|
|
12048
12432
|
async (args) => text(formatGeneratedTheme(args))
|
|
12049
12433
|
);
|
|
12434
|
+
server.registerTool(
|
|
12435
|
+
"create-icon-tokens",
|
|
12436
|
+
{
|
|
12437
|
+
title: "Convert SVGs into Uni icon tokens",
|
|
12438
|
+
description: 'Convert raw SVG source into theme icon tokens and return a paste-ready `icons` map for `uni-theme.ts`. Use this whenever an app has inline `<svg>` in a component, or a brand icon set to import: move the artwork into the theme once, then render it anywhere with `<uni-icon name="\u2026" />`. Encodes to a `currentColor`-masked data URI (identical to the built-in set), reports which names override built-ins, flags artwork that cannot be masked (multi-color, gradients, no viewBox, raster or external references), and warns when a set mixes viewBox grids. Icons are monochrome \u2014 a multi-color logo flattens to a silhouette. Safe to re-run: already-encoded data URIs pass through unchanged.',
|
|
12439
|
+
inputSchema: {
|
|
12440
|
+
icons: z.array(
|
|
12441
|
+
z.object({
|
|
12442
|
+
name: z.string().describe('Token name, e.g. "acmeLogo". Converted to flat camelCase if needed.'),
|
|
12443
|
+
svg: z.string().describe("Raw SVG source, or an already-encoded data:image/svg+xml URI."),
|
|
12444
|
+
allowMultiColor: z.boolean().optional().describe(
|
|
12445
|
+
"Accept multi-color artwork, knowing the mask flattens it to a silhouette."
|
|
12446
|
+
)
|
|
12447
|
+
})
|
|
12448
|
+
).min(1).describe("The icons to convert. Pass the whole set at once so grids can be compared.")
|
|
12449
|
+
}
|
|
12450
|
+
},
|
|
12451
|
+
async ({ icons }) => text(formatIconTokens(icons))
|
|
12452
|
+
);
|
|
12050
12453
|
server.registerTool(
|
|
12051
12454
|
"search",
|
|
12052
12455
|
{
|
|
@@ -12066,9 +12469,15 @@ function registerResources(server) {
|
|
|
12066
12469
|
server.registerResource(
|
|
12067
12470
|
"meta",
|
|
12068
12471
|
"uni://meta",
|
|
12069
|
-
{
|
|
12472
|
+
{
|
|
12473
|
+
title: "Uni index metadata",
|
|
12474
|
+
description: "Index version, Uni release, framework coverage, counts, build time.",
|
|
12475
|
+
mimeType: "application/json"
|
|
12476
|
+
},
|
|
12070
12477
|
async (uri) => ({
|
|
12071
|
-
contents: [
|
|
12478
|
+
contents: [
|
|
12479
|
+
{ uri: uri.href, mimeType: "application/json", text: JSON.stringify(meta, null, 2) }
|
|
12480
|
+
]
|
|
12072
12481
|
})
|
|
12073
12482
|
);
|
|
12074
12483
|
server.registerResource(
|
|
@@ -12078,23 +12487,47 @@ function registerResources(server) {
|
|
|
12078
12487
|
resources: listComponents().map((c) => ({ uri: `uni://components/${c.id}`, name: c.name, description: c.summary }))
|
|
12079
12488
|
})
|
|
12080
12489
|
}),
|
|
12081
|
-
{
|
|
12490
|
+
{
|
|
12491
|
+
title: "Uni component",
|
|
12492
|
+
description: "A component reference card.",
|
|
12493
|
+
mimeType: "text/markdown"
|
|
12494
|
+
},
|
|
12082
12495
|
async (uri, { id }) => {
|
|
12083
12496
|
const c = getComponent(String(id));
|
|
12084
|
-
return {
|
|
12497
|
+
return {
|
|
12498
|
+
contents: [
|
|
12499
|
+
{
|
|
12500
|
+
uri: uri.href,
|
|
12501
|
+
mimeType: "text/markdown",
|
|
12502
|
+
text: c ? formatComponent(c) : `Unknown component: ${id}`
|
|
12503
|
+
}
|
|
12504
|
+
]
|
|
12505
|
+
};
|
|
12085
12506
|
}
|
|
12086
12507
|
);
|
|
12087
12508
|
server.registerResource(
|
|
12088
12509
|
"token",
|
|
12089
12510
|
new ResourceTemplate("uni://tokens/{id}", {
|
|
12090
12511
|
list: async () => ({
|
|
12091
|
-
resources: listTokens().map((t) => ({
|
|
12512
|
+
resources: listTokens().map((t) => ({
|
|
12513
|
+
uri: `uni://tokens/${t.id}`,
|
|
12514
|
+
name: t.id,
|
|
12515
|
+
description: `${t.type} = ${t.value}`
|
|
12516
|
+
}))
|
|
12092
12517
|
})
|
|
12093
12518
|
}),
|
|
12094
12519
|
{ title: "Uni token", description: "A design token.", mimeType: "text/markdown" },
|
|
12095
12520
|
async (uri, { id }) => {
|
|
12096
12521
|
const t = getToken(String(id));
|
|
12097
|
-
return {
|
|
12522
|
+
return {
|
|
12523
|
+
contents: [
|
|
12524
|
+
{
|
|
12525
|
+
uri: uri.href,
|
|
12526
|
+
mimeType: "text/markdown",
|
|
12527
|
+
text: t ? formatToken(t) : `Unknown token: ${id}`
|
|
12528
|
+
}
|
|
12529
|
+
]
|
|
12530
|
+
};
|
|
12098
12531
|
}
|
|
12099
12532
|
);
|
|
12100
12533
|
server.registerResource(
|
|
@@ -12104,23 +12537,51 @@ function registerResources(server) {
|
|
|
12104
12537
|
resources: listThemes().map((t) => ({ uri: `uni://themes/${t.id}`, name: t.name, description: t.description }))
|
|
12105
12538
|
})
|
|
12106
12539
|
}),
|
|
12107
|
-
{
|
|
12540
|
+
{
|
|
12541
|
+
title: "Uni theme template",
|
|
12542
|
+
description: "A theme template (style + component options).",
|
|
12543
|
+
mimeType: "text/markdown"
|
|
12544
|
+
},
|
|
12108
12545
|
async (uri, { id }) => {
|
|
12109
12546
|
const t = getTheme(String(id));
|
|
12110
|
-
return {
|
|
12547
|
+
return {
|
|
12548
|
+
contents: [
|
|
12549
|
+
{
|
|
12550
|
+
uri: uri.href,
|
|
12551
|
+
mimeType: "text/markdown",
|
|
12552
|
+
text: t ? formatTheme(t) : `Unknown theme: ${id}`
|
|
12553
|
+
}
|
|
12554
|
+
]
|
|
12555
|
+
};
|
|
12111
12556
|
}
|
|
12112
12557
|
);
|
|
12113
12558
|
server.registerResource(
|
|
12114
12559
|
"guidelines",
|
|
12115
12560
|
new ResourceTemplate("uni://guidelines/{id}", {
|
|
12116
12561
|
list: async () => ({
|
|
12117
|
-
resources: listComponents().map((c) => ({
|
|
12562
|
+
resources: listComponents().map((c) => ({
|
|
12563
|
+
uri: `uni://guidelines/${c.id}`,
|
|
12564
|
+
name: `${c.name} guidelines`,
|
|
12565
|
+
description: c.summary
|
|
12566
|
+
}))
|
|
12118
12567
|
})
|
|
12119
12568
|
}),
|
|
12120
|
-
{
|
|
12569
|
+
{
|
|
12570
|
+
title: "Uni guidelines",
|
|
12571
|
+
description: "Authored usage guidance for a component.",
|
|
12572
|
+
mimeType: "text/markdown"
|
|
12573
|
+
},
|
|
12121
12574
|
async (uri, { id }) => {
|
|
12122
12575
|
const c = getComponent(String(id));
|
|
12123
|
-
return {
|
|
12576
|
+
return {
|
|
12577
|
+
contents: [
|
|
12578
|
+
{
|
|
12579
|
+
uri: uri.href,
|
|
12580
|
+
mimeType: "text/markdown",
|
|
12581
|
+
text: c ? formatGuidelines(c) : `Unknown component: ${id}`
|
|
12582
|
+
}
|
|
12583
|
+
]
|
|
12584
|
+
};
|
|
12124
12585
|
}
|
|
12125
12586
|
);
|
|
12126
12587
|
}
|
|
@@ -12129,4 +12590,4 @@ export {
|
|
|
12129
12590
|
meta,
|
|
12130
12591
|
createUniServer
|
|
12131
12592
|
};
|
|
12132
|
-
//# sourceMappingURL=chunk-
|
|
12593
|
+
//# sourceMappingURL=chunk-252ZWTTU.js.map
|