@refrakt-md/lumina 0.5.0 → 0.5.1
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/base.css +2 -0
- package/contracts/structures.json +43 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +2 -0
- package/dist/config.js.map +1 -1
- package/dist/icons.d.ts +3 -0
- package/dist/icons.d.ts.map +1 -0
- package/dist/icons.js +86 -0
- package/dist/icons.js.map +1 -0
- package/index.css +1 -0
- package/package.json +5 -5
- package/styles/elements/code.css +40 -0
- package/styles/layouts/blog.css +15 -3
- package/styles/layouts/default.css +15 -3
- package/styles/layouts/docs.css +18 -6
- package/styles/layouts/mobile.css +1 -1
- package/styles/runes/feature.css +10 -0
- package/styles/runes/palette.css +5 -0
- package/styles/runes/preview.css +2 -1
- package/styles/runes/spacing.css +5 -0
- package/styles/runes/steps.css +14 -2
- package/styles/runes/typography.css +13 -0
- package/dist/lib/engine.d.ts +0 -13
- package/dist/lib/engine.d.ts.map +0 -1
- package/dist/lib/engine.js +0 -218
- package/dist/lib/engine.js.map +0 -1
- package/dist/lib/helpers.d.ts +0 -14
- package/dist/lib/helpers.d.ts.map +0 -1
- package/dist/lib/helpers.js +0 -26
- package/dist/lib/helpers.js.map +0 -1
- package/dist/lib/types.d.ts +0 -74
- package/dist/lib/types.d.ts.map +0 -1
- package/dist/lib/types.js +0 -2
- package/dist/lib/types.js.map +0 -1
package/base.css
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"block": "accordion-item",
|
|
16
16
|
"root": ".rf-accordion-item",
|
|
17
17
|
"dataRune": "accordionitem",
|
|
18
|
+
"parent": "Accordion",
|
|
18
19
|
"childOrder": [
|
|
19
20
|
"{content}"
|
|
20
21
|
],
|
|
@@ -121,6 +122,7 @@
|
|
|
121
122
|
"block": "breadcrumb-item",
|
|
122
123
|
"root": ".rf-breadcrumb-item",
|
|
123
124
|
"dataRune": "breadcrumbitem",
|
|
125
|
+
"parent": "Breadcrumb",
|
|
124
126
|
"childOrder": [
|
|
125
127
|
"{content}"
|
|
126
128
|
]
|
|
@@ -153,6 +155,7 @@
|
|
|
153
155
|
"block": "timeline-entry",
|
|
154
156
|
"root": ".rf-timeline-entry",
|
|
155
157
|
"dataRune": "timelineentry",
|
|
158
|
+
"parent": "Timeline",
|
|
156
159
|
"childOrder": [
|
|
157
160
|
"{content}"
|
|
158
161
|
]
|
|
@@ -169,6 +172,7 @@
|
|
|
169
172
|
"block": "changelog-release",
|
|
170
173
|
"root": ".rf-changelog-release",
|
|
171
174
|
"dataRune": "changelogrelease",
|
|
175
|
+
"parent": "Changelog",
|
|
172
176
|
"childOrder": [
|
|
173
177
|
"{content}"
|
|
174
178
|
]
|
|
@@ -269,6 +273,7 @@
|
|
|
269
273
|
"block": "cast-member",
|
|
270
274
|
"root": ".rf-cast-member",
|
|
271
275
|
"dataRune": "castmember",
|
|
276
|
+
"parent": "Cast",
|
|
272
277
|
"childOrder": [
|
|
273
278
|
"{content}"
|
|
274
279
|
]
|
|
@@ -341,6 +346,7 @@
|
|
|
341
346
|
"block": "recipe-ingredient",
|
|
342
347
|
"root": ".rf-recipe-ingredient",
|
|
343
348
|
"dataRune": "recipeingredient",
|
|
349
|
+
"parent": "Recipe",
|
|
344
350
|
"childOrder": [
|
|
345
351
|
"{content}"
|
|
346
352
|
]
|
|
@@ -357,6 +363,7 @@
|
|
|
357
363
|
"block": "tier",
|
|
358
364
|
"root": ".rf-tier",
|
|
359
365
|
"dataRune": "tier",
|
|
366
|
+
"parent": "Pricing",
|
|
360
367
|
"childOrder": [
|
|
361
368
|
"{content}"
|
|
362
369
|
]
|
|
@@ -365,6 +372,7 @@
|
|
|
365
372
|
"block": "tier",
|
|
366
373
|
"root": ".rf-tier",
|
|
367
374
|
"dataRune": "featuredtier",
|
|
375
|
+
"parent": "Pricing",
|
|
368
376
|
"childOrder": [
|
|
369
377
|
"{content}"
|
|
370
378
|
],
|
|
@@ -409,6 +417,7 @@
|
|
|
409
417
|
"block": "feature-definition",
|
|
410
418
|
"root": ".rf-feature-definition",
|
|
411
419
|
"dataRune": "featuredefinition",
|
|
420
|
+
"parent": "Feature",
|
|
412
421
|
"childOrder": [
|
|
413
422
|
"{content}"
|
|
414
423
|
]
|
|
@@ -425,6 +434,7 @@
|
|
|
425
434
|
"block": "step",
|
|
426
435
|
"root": ".rf-step",
|
|
427
436
|
"dataRune": "step",
|
|
437
|
+
"parent": "Steps",
|
|
428
438
|
"childOrder": [
|
|
429
439
|
"{content}"
|
|
430
440
|
],
|
|
@@ -453,6 +463,7 @@
|
|
|
453
463
|
"block": "nav-group",
|
|
454
464
|
"root": ".rf-nav-group",
|
|
455
465
|
"dataRune": "navgroup",
|
|
466
|
+
"parent": "Nav",
|
|
456
467
|
"childOrder": [
|
|
457
468
|
"{content}"
|
|
458
469
|
]
|
|
@@ -461,6 +472,7 @@
|
|
|
461
472
|
"block": "nav-item",
|
|
462
473
|
"root": ".rf-nav-item",
|
|
463
474
|
"dataRune": "navitem",
|
|
475
|
+
"parent": "Nav",
|
|
464
476
|
"childOrder": [
|
|
465
477
|
"{content}"
|
|
466
478
|
]
|
|
@@ -559,6 +571,7 @@
|
|
|
559
571
|
"block": "music-recording",
|
|
560
572
|
"root": ".rf-music-recording",
|
|
561
573
|
"dataRune": "musicrecording",
|
|
574
|
+
"parent": "MusicPlaylist",
|
|
562
575
|
"childOrder": [
|
|
563
576
|
"{content}"
|
|
564
577
|
]
|
|
@@ -715,6 +728,7 @@
|
|
|
715
728
|
"block": "conversation-message",
|
|
716
729
|
"root": ".rf-conversation-message",
|
|
717
730
|
"dataRune": "conversationmessage",
|
|
731
|
+
"parent": "Conversation",
|
|
718
732
|
"childOrder": [
|
|
719
733
|
"{content}"
|
|
720
734
|
],
|
|
@@ -747,6 +761,7 @@
|
|
|
747
761
|
"block": "annotate-note",
|
|
748
762
|
"root": ".rf-annotate-note",
|
|
749
763
|
"dataRune": "annotatenote",
|
|
764
|
+
"parent": "Annotate",
|
|
750
765
|
"childOrder": [
|
|
751
766
|
"{content}"
|
|
752
767
|
]
|
|
@@ -780,6 +795,7 @@
|
|
|
780
795
|
"block": "storyboard-panel",
|
|
781
796
|
"root": ".rf-storyboard-panel",
|
|
782
797
|
"dataRune": "storyboardpanel",
|
|
798
|
+
"parent": "Storyboard",
|
|
783
799
|
"childOrder": [
|
|
784
800
|
"{content}"
|
|
785
801
|
]
|
|
@@ -814,6 +830,7 @@
|
|
|
814
830
|
"block": "bento-cell",
|
|
815
831
|
"root": ".rf-bento-cell",
|
|
816
832
|
"dataRune": "bentocell",
|
|
833
|
+
"parent": "Bento",
|
|
817
834
|
"childOrder": [
|
|
818
835
|
"{content}"
|
|
819
836
|
],
|
|
@@ -845,6 +862,7 @@
|
|
|
845
862
|
"block": "comparison-column",
|
|
846
863
|
"root": ".rf-comparison-column",
|
|
847
864
|
"dataRune": "comparisoncolumn",
|
|
865
|
+
"parent": "Comparison",
|
|
848
866
|
"childOrder": [
|
|
849
867
|
"{content}"
|
|
850
868
|
]
|
|
@@ -853,6 +871,7 @@
|
|
|
853
871
|
"block": "comparison-row",
|
|
854
872
|
"root": ".rf-comparison-row",
|
|
855
873
|
"dataRune": "comparisonrow",
|
|
874
|
+
"parent": "Comparison",
|
|
856
875
|
"childOrder": [
|
|
857
876
|
"{content}"
|
|
858
877
|
],
|
|
@@ -922,6 +941,7 @@
|
|
|
922
941
|
"block": "tab",
|
|
923
942
|
"root": ".rf-tab",
|
|
924
943
|
"dataRune": "tab",
|
|
944
|
+
"parent": "TabGroup",
|
|
925
945
|
"childOrder": [
|
|
926
946
|
"{content}"
|
|
927
947
|
]
|
|
@@ -1005,6 +1025,7 @@
|
|
|
1005
1025
|
"block": "form-field",
|
|
1006
1026
|
"root": ".rf-form-field",
|
|
1007
1027
|
"dataRune": "formfield",
|
|
1028
|
+
"parent": "Form",
|
|
1008
1029
|
"childOrder": [
|
|
1009
1030
|
"{content}"
|
|
1010
1031
|
],
|
|
@@ -1036,6 +1057,7 @@
|
|
|
1036
1057
|
"block": "reveal-step",
|
|
1037
1058
|
"root": ".rf-reveal-step",
|
|
1038
1059
|
"dataRune": "revealstep",
|
|
1060
|
+
"parent": "Reveal",
|
|
1039
1061
|
"childOrder": [
|
|
1040
1062
|
"{content}"
|
|
1041
1063
|
]
|
|
@@ -1074,6 +1096,7 @@
|
|
|
1074
1096
|
"block": "map-pin",
|
|
1075
1097
|
"root": ".rf-map-pin",
|
|
1076
1098
|
"dataRune": "mappin",
|
|
1099
|
+
"parent": "Map",
|
|
1077
1100
|
"childOrder": [
|
|
1078
1101
|
"{content}"
|
|
1079
1102
|
]
|
|
@@ -1205,6 +1228,7 @@
|
|
|
1205
1228
|
"block": "symbol-group",
|
|
1206
1229
|
"root": ".rf-symbol-group",
|
|
1207
1230
|
"dataRune": "symbolgroup",
|
|
1231
|
+
"parent": "Symbol",
|
|
1208
1232
|
"childOrder": [
|
|
1209
1233
|
"{content}"
|
|
1210
1234
|
]
|
|
@@ -1213,6 +1237,7 @@
|
|
|
1213
1237
|
"block": "symbol-member",
|
|
1214
1238
|
"root": ".rf-symbol-member",
|
|
1215
1239
|
"dataRune": "symbolmember",
|
|
1240
|
+
"parent": "Symbol",
|
|
1216
1241
|
"childOrder": [
|
|
1217
1242
|
"{content}"
|
|
1218
1243
|
]
|
|
@@ -1253,6 +1278,12 @@
|
|
|
1253
1278
|
"classPattern": ".rf-palette--{value}",
|
|
1254
1279
|
"dataAttribute": "data-columns"
|
|
1255
1280
|
}
|
|
1281
|
+
},
|
|
1282
|
+
"contextModifiers": {
|
|
1283
|
+
"DesignContext": {
|
|
1284
|
+
"suffix": "in-design-context",
|
|
1285
|
+
"selector": ".rf-palette--in-design-context"
|
|
1286
|
+
}
|
|
1256
1287
|
}
|
|
1257
1288
|
},
|
|
1258
1289
|
"Typography": {
|
|
@@ -1283,6 +1314,12 @@
|
|
|
1283
1314
|
"classPattern": ".rf-typography--{value}",
|
|
1284
1315
|
"dataAttribute": "data-show-charset"
|
|
1285
1316
|
}
|
|
1317
|
+
},
|
|
1318
|
+
"contextModifiers": {
|
|
1319
|
+
"DesignContext": {
|
|
1320
|
+
"suffix": "in-design-context",
|
|
1321
|
+
"selector": ".rf-typography--in-design-context"
|
|
1322
|
+
}
|
|
1286
1323
|
}
|
|
1287
1324
|
},
|
|
1288
1325
|
"Spacing": {
|
|
@@ -1298,6 +1335,12 @@
|
|
|
1298
1335
|
"classPattern": ".rf-spacing--{value}",
|
|
1299
1336
|
"dataAttribute": "data-title"
|
|
1300
1337
|
}
|
|
1338
|
+
},
|
|
1339
|
+
"contextModifiers": {
|
|
1340
|
+
"DesignContext": {
|
|
1341
|
+
"suffix": "in-design-context",
|
|
1342
|
+
"selector": ".rf-spacing--in-design-context"
|
|
1343
|
+
}
|
|
1301
1344
|
}
|
|
1302
1345
|
},
|
|
1303
1346
|
"DesignContext": {
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAGA,+DAA+D;AAC/D,eAAO,MAAM,YAAY,8CAUvB,CAAC"}
|
package/dist/config.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { baseConfig, mergeThemeConfig } from '@refrakt-md/theme-base';
|
|
2
|
+
import { icons as lucideIcons } from './icons.js';
|
|
2
3
|
/** Lumina theme configuration — extends base with icon SVGs */
|
|
3
4
|
export const luminaConfig = mergeThemeConfig(baseConfig, {
|
|
4
5
|
icons: {
|
|
@@ -8,6 +9,7 @@ export const luminaConfig = mergeThemeConfig(baseConfig, {
|
|
|
8
9
|
caution: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="15" y1="9" x2="9" y2="15"/><line x1="9" y1="9" x2="15" y2="15"/></svg>',
|
|
9
10
|
check: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>',
|
|
10
11
|
},
|
|
12
|
+
global: lucideIcons,
|
|
11
13
|
},
|
|
12
14
|
});
|
|
13
15
|
//# sourceMappingURL=config.js.map
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,YAAY,CAAC;AAElD,+DAA+D;AAC/D,MAAM,CAAC,MAAM,YAAY,GAAG,gBAAgB,CAAC,UAAU,EAAE;IACxD,KAAK,EAAE;QACN,IAAI,EAAE;YACL,IAAI,EAAE,4SAA4S;YAClT,OAAO,EAAE,iXAAiX;YAC1X,OAAO,EAAE,uSAAuS;YAChT,KAAK,EAAE,qRAAqR;SAC5R;QACD,MAAM,EAAE,WAAW;KACnB;CACD,CAAC,CAAC"}
|
package/dist/icons.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../src/icons.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,eAAO,MAAM,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAmFxC,CAAC"}
|
package/dist/icons.js
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/** Curated Lucide icon subset (MIT licensed, https://lucide.dev). */
|
|
2
|
+
export const icons = {
|
|
3
|
+
'arrow-right': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M5 12h14" /> <path d="m12 5 7 7-7 7" /> </svg>',
|
|
4
|
+
'arrow-left': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="m12 19-7-7 7-7" /> <path d="M19 12H5" /> </svg>',
|
|
5
|
+
'arrow-up': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="m5 12 7-7 7 7" /> <path d="M12 19V5" /> </svg>',
|
|
6
|
+
'arrow-down': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M12 5v14" /> <path d="m19 12-7 7-7-7" /> </svg>',
|
|
7
|
+
'download': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M12 15V3" /> <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" /> <path d="m7 10 5 5 5-5" /> </svg>',
|
|
8
|
+
'upload': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M12 3v12" /> <path d="m17 8-5-5-5 5" /> <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" /> </svg>',
|
|
9
|
+
'share': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M12 2v13" /> <path d="m16 6-4-4-4 4" /> <path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8" /> </svg>',
|
|
10
|
+
'link': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" /> <path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" /> </svg>',
|
|
11
|
+
'external-link': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M15 3h6v6" /> <path d="M10 14 21 3" /> <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" /> </svg>',
|
|
12
|
+
'search': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="m21 21-4.34-4.34" /> <circle cx="11" cy="11" r="8" /> </svg>',
|
|
13
|
+
'settings': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" /> <circle cx="12" cy="12" r="3" /> </svg>',
|
|
14
|
+
'plus': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M5 12h14" /> <path d="M12 5v14" /> </svg>',
|
|
15
|
+
'minus': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M5 12h14" /> </svg>',
|
|
16
|
+
'check': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M20 6 9 17l-5-5" /> </svg>',
|
|
17
|
+
'x': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M18 6 6 18" /> <path d="m6 6 12 12" /> </svg>',
|
|
18
|
+
'copy': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <rect width="14" height="14" x="8" y="8" rx="2" ry="2" /> <path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" /> </svg>',
|
|
19
|
+
'edit': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" /> <path d="M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z" /> </svg>',
|
|
20
|
+
'trash-2': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M10 11v6" /> <path d="M14 11v6" /> <path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" /> <path d="M3 6h18" /> <path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" /> </svg>',
|
|
21
|
+
'refresh-cw': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" /> <path d="M21 3v5h-5" /> <path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" /> <path d="M8 16H3v5" /> </svg>',
|
|
22
|
+
'filter': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z" /> </svg>',
|
|
23
|
+
'arrow-up-down': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="m21 16-4 4-4-4" /> <path d="M17 20V4" /> <path d="m3 8 4-4 4 4" /> <path d="M7 4v16" /> </svg>',
|
|
24
|
+
'book-open': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M12 7v14" /> <path d="M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z" /> </svg>',
|
|
25
|
+
'file-text': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <path d="M10 9H8" /> <path d="M16 13H8" /> <path d="M16 17H8" /> </svg>',
|
|
26
|
+
'folder': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" /> </svg>',
|
|
27
|
+
'image': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <rect width="18" height="18" x="3" y="3" rx="2" ry="2" /> <circle cx="9" cy="9" r="2" /> <path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" /> </svg>',
|
|
28
|
+
'video': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5" /> <rect x="2" y="6" width="14" height="12" rx="2" /> </svg>',
|
|
29
|
+
'camera': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z" /> <circle cx="12" cy="13" r="3" /> </svg>',
|
|
30
|
+
'code': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="m16 18 6-6-6-6" /> <path d="m8 6-6 6 6 6" /> </svg>',
|
|
31
|
+
'terminal': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M12 19h8" /> <path d="m4 17 6-6-6-6" /> </svg>',
|
|
32
|
+
'database': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <ellipse cx="12" cy="5" rx="9" ry="3" /> <path d="M3 5V19A9 3 0 0 0 21 19V5" /> <path d="M3 12A9 3 0 0 0 21 12" /> </svg>',
|
|
33
|
+
'server': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <rect width="20" height="8" x="2" y="2" rx="2" ry="2" /> <rect width="20" height="8" x="2" y="14" rx="2" ry="2" /> <line x1="6" x2="6.01" y1="6" y2="6" /> <line x1="6" x2="6.01" y1="18" y2="18" /> </svg>',
|
|
34
|
+
'cloud': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z" /> </svg>',
|
|
35
|
+
'cpu': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M12 20v2" /> <path d="M12 2v2" /> <path d="M17 20v2" /> <path d="M17 2v2" /> <path d="M2 12h2" /> <path d="M2 17h2" /> <path d="M2 7h2" /> <path d="M20 12h2" /> <path d="M20 17h2" /> <path d="M20 7h2" /> <path d="M7 20v2" /> <path d="M7 2v2" /> <rect x="4" y="4" width="16" height="16" rx="2" /> <rect x="8" y="8" width="8" height="8" rx="1" /> </svg>',
|
|
36
|
+
'monitor': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <rect width="20" height="14" x="2" y="3" rx="2" /> <line x1="8" x2="16" y1="21" y2="21" /> <line x1="12" x2="12" y1="17" y2="21" /> </svg>',
|
|
37
|
+
'smartphone': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <rect width="14" height="20" x="5" y="2" rx="2" ry="2" /> <path d="M12 18h.01" /> </svg>',
|
|
38
|
+
'globe': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="12" cy="12" r="10" /> <path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" /> <path d="M2 12h20" /> </svg>',
|
|
39
|
+
'map-pin': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0" /> <circle cx="12" cy="10" r="3" /> </svg>',
|
|
40
|
+
'home': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8" /> <path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" /> </svg>',
|
|
41
|
+
'building': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M12 10h.01" /> <path d="M12 14h.01" /> <path d="M12 6h.01" /> <path d="M16 10h.01" /> <path d="M16 14h.01" /> <path d="M16 6h.01" /> <path d="M8 10h.01" /> <path d="M8 14h.01" /> <path d="M8 6h.01" /> <path d="M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3" /> <rect x="4" y="2" width="16" height="20" rx="2" /> </svg>',
|
|
42
|
+
'key': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4" /> <path d="m21 2-9.6 9.6" /> <circle cx="7.5" cy="15.5" r="5.5" /> </svg>',
|
|
43
|
+
'lock': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <rect width="18" height="11" x="3" y="11" rx="2" ry="2" /> <path d="M7 11V7a5 5 0 0 1 10 0v4" /> </svg>',
|
|
44
|
+
'unlock': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <rect width="18" height="11" x="3" y="11" rx="2" ry="2" /> <path d="M7 11V7a5 5 0 0 1 9.9-1" /> </svg>',
|
|
45
|
+
'mail': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7" /> <rect x="2" y="4" width="20" height="16" rx="2" /> </svg>',
|
|
46
|
+
'phone': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384" /> </svg>',
|
|
47
|
+
'bell': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M10.268 21a2 2 0 0 0 3.464 0" /> <path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326" /> </svg>',
|
|
48
|
+
'calendar': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M8 2v4" /> <path d="M16 2v4" /> <rect width="18" height="18" x="3" y="4" rx="2" /> <path d="M3 10h18" /> </svg>',
|
|
49
|
+
'clock': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="12" cy="12" r="10" /> <path d="M12 6v6l4 2" /> </svg>',
|
|
50
|
+
'flag': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528" /> </svg>',
|
|
51
|
+
'bookmark': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z" /> </svg>',
|
|
52
|
+
'star': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z" /> </svg>',
|
|
53
|
+
'heart': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5" /> </svg>',
|
|
54
|
+
'info': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="12" cy="12" r="10" /> <path d="M12 16v-4" /> <path d="M12 8h.01" /> </svg>',
|
|
55
|
+
'alert-triangle': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" /> <path d="M12 9v4" /> <path d="M12 17h.01" /> </svg>',
|
|
56
|
+
'alert-circle': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="12" cy="12" r="10" /> <line x1="12" x2="12" y1="8" y2="12" /> <line x1="12" x2="12.01" y1="16" y2="16" /> </svg>',
|
|
57
|
+
'check-circle': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M21.801 10A10 10 0 1 1 17 3.335" /> <path d="m9 11 3 3L22 4" /> </svg>',
|
|
58
|
+
'x-circle': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="12" cy="12" r="10" /> <path d="m15 9-6 6" /> <path d="m9 9 6 6" /> </svg>',
|
|
59
|
+
'help-circle': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="12" cy="12" r="10" /> <path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" /> <path d="M12 17h.01" /> </svg>',
|
|
60
|
+
'shield': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" /> </svg>',
|
|
61
|
+
'shield-check': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" /> <path d="m9 12 2 2 4-4" /> </svg>',
|
|
62
|
+
'eye': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" /> <circle cx="12" cy="12" r="3" /> </svg>',
|
|
63
|
+
'eye-off': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" /> <path d="M14.084 14.158a3 3 0 0 1-4.242-4.242" /> <path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" /> <path d="m2 2 20 20" /> </svg>',
|
|
64
|
+
'thumbs-up': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z" /> <path d="M7 10v12" /> </svg>',
|
|
65
|
+
'thumbs-down': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z" /> <path d="M17 14V2" /> </svg>',
|
|
66
|
+
'dollar-sign': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <line x1="12" x2="12" y1="2" y2="22" /> <path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6" /> </svg>',
|
|
67
|
+
'credit-card': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <rect width="20" height="14" x="2" y="5" rx="2" /> <line x1="2" x2="22" y1="10" y2="10" /> </svg>',
|
|
68
|
+
'shopping-cart': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="8" cy="21" r="1" /> <circle cx="19" cy="21" r="1" /> <path d="M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12" /> </svg>',
|
|
69
|
+
'package': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z" /> <path d="M12 22V12" /> <polyline points="3.29 7 12 12 20.71 7" /> <path d="m7.5 4.27 9 5.15" /> </svg>',
|
|
70
|
+
'truck': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2" /> <path d="M15 18H9" /> <path d="M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14" /> <circle cx="17" cy="18" r="2" /> <circle cx="7" cy="18" r="2" /> </svg>',
|
|
71
|
+
'briefcase': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16" /> <rect width="20" height="14" x="2" y="6" rx="2" /> </svg>',
|
|
72
|
+
'target': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="12" cy="12" r="10" /> <circle cx="12" cy="12" r="6" /> <circle cx="12" cy="12" r="2" /> </svg>',
|
|
73
|
+
'trending-up': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M16 7h6v6" /> <path d="m22 7-8.5 8.5-5-5L2 17" /> </svg>',
|
|
74
|
+
'bar-chart-2': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M5 21v-6" /> <path d="M12 21V3" /> <path d="M19 21V9" /> </svg>',
|
|
75
|
+
'users': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" /> <path d="M16 3.128a4 4 0 0 1 0 7.744" /> <path d="M22 21v-2a4 4 0 0 0-3-3.87" /> <circle cx="9" cy="7" r="4" /> </svg>',
|
|
76
|
+
'user': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" /> <circle cx="12" cy="7" r="4" /> </svg>',
|
|
77
|
+
'zap': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z" /> </svg>',
|
|
78
|
+
'rocket': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5" /> <path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09" /> <path d="M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z" /> <path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05" /> </svg>',
|
|
79
|
+
'sparkles': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z" /> <path d="M20 2v4" /> <path d="M22 4h-4" /> <circle cx="4" cy="20" r="2" /> </svg>',
|
|
80
|
+
'lightbulb': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5" /> <path d="M9 18h6" /> <path d="M10 22h4" /> </svg>',
|
|
81
|
+
'puzzle': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z" /> </svg>',
|
|
82
|
+
'layers': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z" /> <path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12" /> <path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17" /> </svg>',
|
|
83
|
+
'layout': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <rect width="18" height="18" x="3" y="3" rx="2" /> <path d="M3 9h18" /> <path d="M9 21V9" /> </svg>',
|
|
84
|
+
'palette': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z" /> <circle cx="13.5" cy="6.5" r=".5" fill="currentColor" /> <circle cx="17.5" cy="10.5" r=".5" fill="currentColor" /> <circle cx="6.5" cy="12.5" r=".5" fill="currentColor" /> <circle cx="8.5" cy="7.5" r=".5" fill="currentColor" /> </svg>',
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.js","sourceRoot":"","sources":["../src/icons.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,MAAM,CAAC,MAAM,KAAK,GAA2B;IAC5C,aAAa,EAAE,gPAAgP;IAC/P,YAAY,EAAE,iPAAiP;IAC/P,UAAU,EAAE,gPAAgP;IAC5P,YAAY,EAAE,iPAAiP;IAC/P,UAAU,EAAE,uSAAuS;IACnT,QAAQ,EAA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O,EAAE,kWAAkW;IAC3W,MAAM,EAAE,+QAA+Q;IACvR,gBAAgB,EAAE,kUAAkU;IACpV,cAAc,EAAE,qTAAqT;IACrU,cAAc,EAAE,wQAAwQ;IACxR,UAAU,EAAE,8QAA8Q;IAC1R,aAAa,EAAE,2SAA2S;IAC1T,QAAQ,EAAE,+WAA+W;IACzX,cAAc,EAAE,0YAA0Y;IAC1Z,KAAK,EAAE,mVAAmV;IAC1V,SAAS,EAAE,+dAA+d;IAC1e,WAAW,EAAE,2XAA2X;IACxY,aAAa,EAAE,0XAA0X;IACzY,aAAa,EAAE,sSAAsS;IACrT,aAAa,EAAE,0RAA0R;IACzS,eAAe,EAAE,8VAA8V;IAC/W,SAAS,EAAE,qaAAqa;IAChb,OAAO,EAAE,0bAA0b;IACnc,WAAW,EAAE,0SAA0S;IACvT,QAAQ,EAAE,mSAAmS;IAC7S,aAAa,EAAE,0PAA0P;IACzQ,aAAa,EAAE,iQAAiQ;IAChR,OAAO,EAAE,sWAAsW;IAC/W,MAAM,EAAE,sRAAsR;IAC9R,KAAK,EAAE,wWAAwW;IAC/W,QAAQ,EAAE,wfAAwf;IAClgB,UAAU,EAAE,8hBAA8hB;IAC1iB,WAAW,EAAE,4VAA4V;IACzW,QAAQ,EAAE,0pBAA0pB;IACpqB,QAAQ,EAAE,ueAAue;IACjf,QAAQ,EAAE,4RAA4R;IACtS,SAAS,EAAE,giBAAgiB;CAC3iB,CAAC"}
|
package/index.css
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refrakt-md/lumina",
|
|
3
3
|
"description": "Lumina theme for refrakt.md — design tokens, CSS, identity transform, and framework adapters",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"build": "tsc"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@refrakt-md/theme-base": "0.5.
|
|
50
|
-
"@refrakt-md/transform": "0.5.
|
|
51
|
-
"@refrakt-md/types": "0.5.
|
|
52
|
-
"@refrakt-md/svelte": "0.5.
|
|
49
|
+
"@refrakt-md/theme-base": "0.5.1",
|
|
50
|
+
"@refrakt-md/transform": "0.5.1",
|
|
51
|
+
"@refrakt-md/types": "0.5.1",
|
|
52
|
+
"@refrakt-md/svelte": "0.5.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"svelte": "^5.0.0",
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* Code wrapper — behavior-injected copy button for code blocks */
|
|
2
|
+
.rf-code-wrapper {
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.rf-code-wrapper > pre {
|
|
7
|
+
margin: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.rf-copy-btn {
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: 0.5rem;
|
|
13
|
+
right: 0.5rem;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
width: 2rem;
|
|
18
|
+
height: 2rem;
|
|
19
|
+
border: none;
|
|
20
|
+
border-radius: var(--rf-radius-sm);
|
|
21
|
+
background: transparent;
|
|
22
|
+
color: var(--rf-color-code-text, #e2e8f0);
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
opacity: 0;
|
|
25
|
+
transition: opacity 150ms ease, background-color 150ms ease;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.rf-code-wrapper:hover .rf-copy-btn {
|
|
29
|
+
opacity: 0.6;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.rf-copy-btn:hover {
|
|
33
|
+
opacity: 1 !important;
|
|
34
|
+
background: rgba(255, 255, 255, 0.1);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.rf-copy-btn--copied {
|
|
38
|
+
opacity: 1 !important;
|
|
39
|
+
color: var(--rf-color-success, #4ade80);
|
|
40
|
+
}
|
package/styles/layouts/blog.css
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
10
|
justify-content: space-between;
|
|
11
|
-
padding:
|
|
11
|
+
padding: 1.125rem 1.5rem;
|
|
12
12
|
}
|
|
13
13
|
.rf-blog-header p {
|
|
14
14
|
margin: 0;
|
|
@@ -22,9 +22,16 @@
|
|
|
22
22
|
.rf-blog-header a:hover {
|
|
23
23
|
text-decoration: none;
|
|
24
24
|
}
|
|
25
|
+
.rf-blog-header p:first-child a {
|
|
26
|
+
display: inline-flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: 0.5rem;
|
|
29
|
+
font-weight: 600;
|
|
30
|
+
font-size: 1.2rem;
|
|
31
|
+
letter-spacing: -0.02em;
|
|
32
|
+
}
|
|
25
33
|
.rf-blog-header img {
|
|
26
|
-
|
|
27
|
-
height: 1.5rem;
|
|
34
|
+
height: 2rem;
|
|
28
35
|
width: auto;
|
|
29
36
|
}
|
|
30
37
|
.rf-blog-header__inner p ~ p {
|
|
@@ -37,6 +44,11 @@
|
|
|
37
44
|
.rf-blog-header__inner p ~ p a:hover {
|
|
38
45
|
color: var(--rf-color-text);
|
|
39
46
|
}
|
|
47
|
+
.rf-blog-header__inner p ~ p a svg {
|
|
48
|
+
width: 1.1rem;
|
|
49
|
+
height: 1.1rem;
|
|
50
|
+
vertical-align: -0.15em;
|
|
51
|
+
}
|
|
40
52
|
|
|
41
53
|
/* ---- Layout container ---- */
|
|
42
54
|
.rf-blog {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
justify-content: space-between;
|
|
9
|
-
padding:
|
|
9
|
+
padding: 1.125rem 1.5rem;
|
|
10
10
|
}
|
|
11
11
|
.rf-header p {
|
|
12
12
|
margin: 0;
|
|
@@ -20,9 +20,16 @@
|
|
|
20
20
|
.rf-header a:hover {
|
|
21
21
|
text-decoration: none;
|
|
22
22
|
}
|
|
23
|
+
.rf-header p:first-child a {
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: 0.5rem;
|
|
27
|
+
font-weight: 600;
|
|
28
|
+
font-size: 1.2rem;
|
|
29
|
+
letter-spacing: -0.02em;
|
|
30
|
+
}
|
|
23
31
|
.rf-header img {
|
|
24
|
-
|
|
25
|
-
height: 1.5rem;
|
|
32
|
+
height: 2rem;
|
|
26
33
|
width: auto;
|
|
27
34
|
}
|
|
28
35
|
.rf-header__inner p ~ p {
|
|
@@ -35,6 +42,11 @@
|
|
|
35
42
|
.rf-header__inner p ~ p a:hover {
|
|
36
43
|
color: var(--rf-color-text);
|
|
37
44
|
}
|
|
45
|
+
.rf-header__inner p ~ p a svg {
|
|
46
|
+
width: 1.1rem;
|
|
47
|
+
height: 1.1rem;
|
|
48
|
+
vertical-align: -0.15em;
|
|
49
|
+
}
|
|
38
50
|
.rf-page-content {
|
|
39
51
|
padding-top: 2.5rem;
|
|
40
52
|
padding-bottom: 4rem;
|
package/styles/layouts/docs.css
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
display: flex;
|
|
15
15
|
align-items: center;
|
|
16
16
|
justify-content: space-between;
|
|
17
|
-
padding:
|
|
17
|
+
padding: 1.125rem 1.5rem;
|
|
18
18
|
}
|
|
19
19
|
.rf-docs-header p {
|
|
20
20
|
margin: 0;
|
|
@@ -28,9 +28,16 @@
|
|
|
28
28
|
.rf-docs-header a:hover {
|
|
29
29
|
text-decoration: none;
|
|
30
30
|
}
|
|
31
|
+
.rf-docs-header p:first-child a {
|
|
32
|
+
display: inline-flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
gap: 0.5rem;
|
|
35
|
+
font-weight: 600;
|
|
36
|
+
font-size: 1.2rem;
|
|
37
|
+
letter-spacing: -0.02em;
|
|
38
|
+
}
|
|
31
39
|
.rf-docs-header img {
|
|
32
|
-
|
|
33
|
-
height: 1.5rem;
|
|
40
|
+
height: 2rem;
|
|
34
41
|
width: auto;
|
|
35
42
|
}
|
|
36
43
|
.rf-docs-header__inner p ~ p {
|
|
@@ -43,12 +50,17 @@
|
|
|
43
50
|
.rf-docs-header__inner p ~ p a:hover {
|
|
44
51
|
color: var(--rf-color-text);
|
|
45
52
|
}
|
|
53
|
+
.rf-docs-header__inner p ~ p a svg {
|
|
54
|
+
width: 1.1rem;
|
|
55
|
+
height: 1.1rem;
|
|
56
|
+
vertical-align: -0.15em;
|
|
57
|
+
}
|
|
46
58
|
|
|
47
59
|
/* ---- Fixed sidebar ---- */
|
|
48
60
|
.rf-docs-sidebar {
|
|
49
61
|
position: fixed;
|
|
50
62
|
left: 0;
|
|
51
|
-
top:
|
|
63
|
+
top: 4.125rem;
|
|
52
64
|
bottom: 0;
|
|
53
65
|
width: 240px;
|
|
54
66
|
overflow-y: auto;
|
|
@@ -63,7 +75,7 @@
|
|
|
63
75
|
|
|
64
76
|
/* ---- Content area ---- */
|
|
65
77
|
.rf-docs-content {
|
|
66
|
-
padding-top:
|
|
78
|
+
padding-top: 5.75rem;
|
|
67
79
|
padding-bottom: 4rem;
|
|
68
80
|
container-type: inline-size;
|
|
69
81
|
}
|
|
@@ -130,7 +142,7 @@
|
|
|
130
142
|
display: flex;
|
|
131
143
|
}
|
|
132
144
|
.rf-mobile-panel--nav {
|
|
133
|
-
top:
|
|
145
|
+
top: 6.25rem;
|
|
134
146
|
}
|
|
135
147
|
.rf-docs-sidebar {
|
|
136
148
|
display: none;
|
package/styles/runes/feature.css
CHANGED
|
@@ -51,6 +51,16 @@
|
|
|
51
51
|
letter-spacing: -0.01em;
|
|
52
52
|
color: var(--rf-color-text);
|
|
53
53
|
}
|
|
54
|
+
.rf-feature-definition dt:has(> .rf-icon) {
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
}
|
|
58
|
+
.rf-feature-definition dt > .rf-icon {
|
|
59
|
+
width: 1.5rem;
|
|
60
|
+
height: 1.5rem;
|
|
61
|
+
margin-bottom: 0.5rem;
|
|
62
|
+
color: var(--rf-color-accent);
|
|
63
|
+
}
|
|
54
64
|
.rf-feature-definition dd {
|
|
55
65
|
margin: 0;
|
|
56
66
|
color: var(--rf-color-muted);
|
package/styles/runes/palette.css
CHANGED
package/styles/runes/preview.css
CHANGED
package/styles/runes/spacing.css
CHANGED
package/styles/runes/steps.css
CHANGED
|
@@ -30,22 +30,34 @@
|
|
|
30
30
|
top: 0;
|
|
31
31
|
width: 1.875rem;
|
|
32
32
|
height: 1.875rem;
|
|
33
|
-
background: var(--rf-color-
|
|
34
|
-
color:
|
|
33
|
+
background: var(--rf-color-border);
|
|
34
|
+
color: var(--rf-color-muted);
|
|
35
35
|
border-radius: var(--rf-radius-full);
|
|
36
36
|
display: flex;
|
|
37
37
|
align-items: center;
|
|
38
38
|
justify-content: center;
|
|
39
39
|
font-weight: 650;
|
|
40
40
|
font-size: 0.8rem;
|
|
41
|
+
font-variant-numeric: tabular-nums;
|
|
41
42
|
box-shadow: 0 0 0 4px var(--rf-color-bg);
|
|
42
43
|
}
|
|
44
|
+
.rf-step h1,
|
|
45
|
+
.rf-step h2,
|
|
43
46
|
.rf-step h3,
|
|
47
|
+
.rf-step h4,
|
|
48
|
+
.rf-step h5,
|
|
49
|
+
.rf-step h6,
|
|
44
50
|
.rf-step strong {
|
|
45
51
|
display: block;
|
|
46
52
|
margin-top: 0;
|
|
47
53
|
margin-bottom: 0.375rem;
|
|
48
54
|
}
|
|
55
|
+
.rf-step pre {
|
|
56
|
+
margin-top: 0;
|
|
57
|
+
}
|
|
58
|
+
.rf-step > p:first-of-type {
|
|
59
|
+
margin-top: 0;
|
|
60
|
+
}
|
|
49
61
|
.rf-step p {
|
|
50
62
|
color: var(--rf-color-muted);
|
|
51
63
|
font-size: 0.925rem;
|
|
@@ -89,3 +89,16 @@
|
|
|
89
89
|
word-break: break-all;
|
|
90
90
|
color: var(--rf-color-text-muted, #6b7280);
|
|
91
91
|
}
|
|
92
|
+
|
|
93
|
+
/* Context-aware: no outer border when inside design-context (parent already has one) */
|
|
94
|
+
.rf-typography--in-design-context {
|
|
95
|
+
margin: 0;
|
|
96
|
+
}
|
|
97
|
+
.rf-typography--in-design-context .rf-typography__specimen {
|
|
98
|
+
border: none;
|
|
99
|
+
border-radius: 0;
|
|
100
|
+
padding: 0;
|
|
101
|
+
}
|
|
102
|
+
.rf-typography--in-design-context .rf-typography__specimen + .rf-typography__specimen {
|
|
103
|
+
padding-top: 1.5rem;
|
|
104
|
+
}
|
package/dist/lib/engine.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ThemeConfig, RendererNode } from './types.js';
|
|
2
|
-
/**
|
|
3
|
-
* Create an identity transform function from a theme configuration.
|
|
4
|
-
*
|
|
5
|
-
* The returned function walks the serialized tag tree and enhances it:
|
|
6
|
-
* - Adds BEM classes based on the rune config
|
|
7
|
-
* - Reads and consumes meta tags for variant info
|
|
8
|
-
* - Auto-labels children by tag name (e.g., summary → data-name="header")
|
|
9
|
-
* - Injects structural elements (headers, icons, titles) from config
|
|
10
|
-
* - Recurses into children for nested runes
|
|
11
|
-
*/
|
|
12
|
-
export declare function createTransform(config: ThemeConfig): (tree: RendererNode) => RendererNode;
|
|
13
|
-
//# sourceMappingURL=engine.d.ts.map
|
package/dist/lib/engine.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../src/lib/engine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAA6C,YAAY,EAAE,MAAM,YAAY,CAAC;AAkBvG;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,WAAW,UAGjB,YAAY,KAAG,YAAY,CAgB5D"}
|
package/dist/lib/engine.js
DELETED
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
import { isTag, makeTag, readMeta } from './helpers.js';
|
|
2
|
-
/** Pure text transforms for metaText values */
|
|
3
|
-
const transforms = {
|
|
4
|
-
duration(iso) {
|
|
5
|
-
const m = iso.match(/PT(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?/);
|
|
6
|
-
if (!m)
|
|
7
|
-
return iso;
|
|
8
|
-
const parts = [];
|
|
9
|
-
if (m[1])
|
|
10
|
-
parts.push(`${m[1]}h`);
|
|
11
|
-
if (m[2])
|
|
12
|
-
parts.push(`${m[2]}m`);
|
|
13
|
-
if (m[3])
|
|
14
|
-
parts.push(`${m[3]}s`);
|
|
15
|
-
return parts.join(' ') || iso;
|
|
16
|
-
},
|
|
17
|
-
uppercase: (s) => s.toUpperCase(),
|
|
18
|
-
capitalize: (s) => s.charAt(0).toUpperCase() + s.slice(1),
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Create an identity transform function from a theme configuration.
|
|
22
|
-
*
|
|
23
|
-
* The returned function walks the serialized tag tree and enhances it:
|
|
24
|
-
* - Adds BEM classes based on the rune config
|
|
25
|
-
* - Reads and consumes meta tags for variant info
|
|
26
|
-
* - Auto-labels children by tag name (e.g., summary → data-name="header")
|
|
27
|
-
* - Injects structural elements (headers, icons, titles) from config
|
|
28
|
-
* - Recurses into children for nested runes
|
|
29
|
-
*/
|
|
30
|
-
export function createTransform(config) {
|
|
31
|
-
const { prefix, runes, icons = {} } = config;
|
|
32
|
-
function identityTransform(tree) {
|
|
33
|
-
if (tree === null || tree === undefined)
|
|
34
|
-
return tree;
|
|
35
|
-
if (typeof tree === 'string' || typeof tree === 'number')
|
|
36
|
-
return tree;
|
|
37
|
-
if (Array.isArray(tree))
|
|
38
|
-
return tree.map(identityTransform);
|
|
39
|
-
if (!isTag(tree))
|
|
40
|
-
return tree;
|
|
41
|
-
const typeof_ = tree.attributes?.typeof;
|
|
42
|
-
if (typeof_ && typeof_ in runes) {
|
|
43
|
-
return transformRune(tree, runes[typeof_], prefix, icons, identityTransform);
|
|
44
|
-
}
|
|
45
|
-
// Recurse into children even for non-rune tags
|
|
46
|
-
return { ...tree, children: tree.children.map(identityTransform) };
|
|
47
|
-
}
|
|
48
|
-
return identityTransform;
|
|
49
|
-
}
|
|
50
|
-
/** Apply BEM classes and structural enhancements to a rune tag */
|
|
51
|
-
function transformRune(tag, config, prefix, icons, recurse) {
|
|
52
|
-
const block = `${prefix}-${config.block}`;
|
|
53
|
-
// 1. Read modifiers from meta tags, collecting resolved values
|
|
54
|
-
const modifierClasses = [];
|
|
55
|
-
const modifierValues = {};
|
|
56
|
-
if (config.modifiers) {
|
|
57
|
-
for (const [name, mod] of Object.entries(config.modifiers)) {
|
|
58
|
-
const value = mod.source === 'meta'
|
|
59
|
-
? readMeta(tag, name, mod.default)
|
|
60
|
-
: tag.attributes[name] ?? mod.default;
|
|
61
|
-
if (value) {
|
|
62
|
-
modifierValues[name] = value;
|
|
63
|
-
modifierClasses.push(`${block}--${value}`);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
// 2. Store modifier values as data attributes (so components can read them even after meta removal)
|
|
68
|
-
const modDataAttrs = {};
|
|
69
|
-
for (const [name, value] of Object.entries(modifierValues)) {
|
|
70
|
-
const kebab = name.replace(/([A-Z])/g, '-$1').toLowerCase();
|
|
71
|
-
modDataAttrs[`data-${kebab}`] = value;
|
|
72
|
-
}
|
|
73
|
-
// 3. Build the class string
|
|
74
|
-
const existingClass = tag.attributes.class || '';
|
|
75
|
-
const bemClass = [block, ...modifierClasses, existingClass].filter(Boolean).join(' ');
|
|
76
|
-
// 4. Auto-label children by tag name or property attribute
|
|
77
|
-
let children = tag.children;
|
|
78
|
-
if (config.autoLabel) {
|
|
79
|
-
children = children.map(child => {
|
|
80
|
-
if (!isTag(child))
|
|
81
|
-
return child;
|
|
82
|
-
const label = config.autoLabel[child.name] ?? config.autoLabel[child.attributes?.property];
|
|
83
|
-
if (label && !child.attributes['data-name']) {
|
|
84
|
-
return { ...child, attributes: { ...child.attributes, 'data-name': label } };
|
|
85
|
-
}
|
|
86
|
-
return child;
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
// 5. Inject structural elements from config
|
|
90
|
-
if (config.structure) {
|
|
91
|
-
const prepend = [];
|
|
92
|
-
const append = [];
|
|
93
|
-
for (const [name, entry] of Object.entries(config.structure)) {
|
|
94
|
-
const element = buildStructureElement(entry, name, modifierValues, icons);
|
|
95
|
-
if (!element)
|
|
96
|
-
continue;
|
|
97
|
-
if (entry.before) {
|
|
98
|
-
prepend.push(element);
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
append.push(element);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
if (config.contentWrapper) {
|
|
105
|
-
const wrapped = makeTag(config.contentWrapper.tag, { 'data-name': config.contentWrapper.ref }, children);
|
|
106
|
-
children = [...prepend, wrapped, ...append];
|
|
107
|
-
}
|
|
108
|
-
else if (prepend.length || append.length) {
|
|
109
|
-
children = [...prepend, ...children, ...append];
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
else if (config.contentWrapper) {
|
|
113
|
-
const wrapped = makeTag(config.contentWrapper.tag, { 'data-name': config.contentWrapper.ref }, children);
|
|
114
|
-
children = [wrapped];
|
|
115
|
-
}
|
|
116
|
-
// 6. Apply BEM element classes to data-name children (recursively for structural elements)
|
|
117
|
-
const enhancedChildren = children.map(child => {
|
|
118
|
-
if (!isTag(child))
|
|
119
|
-
return recurse(child);
|
|
120
|
-
return applyBemClasses(child, block, recurse);
|
|
121
|
-
});
|
|
122
|
-
// 7. Remove consumed meta tags
|
|
123
|
-
const filteredChildren = enhancedChildren.filter(child => {
|
|
124
|
-
if (!isTag(child))
|
|
125
|
-
return true;
|
|
126
|
-
const c = child;
|
|
127
|
-
if (c.name !== 'meta' || !c.attributes.property)
|
|
128
|
-
return true;
|
|
129
|
-
return !config.modifiers || !(c.attributes.property in config.modifiers);
|
|
130
|
-
});
|
|
131
|
-
return {
|
|
132
|
-
...tag,
|
|
133
|
-
attributes: {
|
|
134
|
-
...tag.attributes,
|
|
135
|
-
...modDataAttrs,
|
|
136
|
-
class: bemClass,
|
|
137
|
-
...(config.rootAttributes || {}),
|
|
138
|
-
},
|
|
139
|
-
children: filteredChildren,
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
/** Recursively apply BEM element classes to data-name elements within a rune's children */
|
|
143
|
-
function applyBemClasses(child, block, recurse) {
|
|
144
|
-
const dataName = child.attributes['data-name'];
|
|
145
|
-
if (dataName) {
|
|
146
|
-
const elementClass = `${block}__${dataName}`;
|
|
147
|
-
const childExistingClass = child.attributes.class || '';
|
|
148
|
-
// Recursively apply BEM to nested data-name children (e.g., icon/title inside header)
|
|
149
|
-
const nestedChildren = child.children.map(c => {
|
|
150
|
-
if (!isTag(c))
|
|
151
|
-
return c;
|
|
152
|
-
return applyBemClasses(c, block, recurse);
|
|
153
|
-
});
|
|
154
|
-
return recurse({
|
|
155
|
-
...child,
|
|
156
|
-
attributes: {
|
|
157
|
-
...child.attributes,
|
|
158
|
-
class: [elementClass, childExistingClass].filter(Boolean).join(' '),
|
|
159
|
-
},
|
|
160
|
-
children: nestedChildren,
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
return recurse(child);
|
|
164
|
-
}
|
|
165
|
-
/** Build a structural element from a StructureEntry config. Returns null if condition is not met. */
|
|
166
|
-
function buildStructureElement(entry, name, modifierValues, icons) {
|
|
167
|
-
// Conditional injection
|
|
168
|
-
if (entry.condition && !modifierValues[entry.condition])
|
|
169
|
-
return null;
|
|
170
|
-
if (entry.conditionAny && !entry.conditionAny.some(k => modifierValues[k]))
|
|
171
|
-
return null;
|
|
172
|
-
const dataName = entry.ref ?? name;
|
|
173
|
-
// Resolve extra attributes
|
|
174
|
-
const extraAttrs = {};
|
|
175
|
-
if (entry.attrs) {
|
|
176
|
-
for (const [key, val] of Object.entries(entry.attrs)) {
|
|
177
|
-
if (typeof val === 'string') {
|
|
178
|
-
extraAttrs[key] = val;
|
|
179
|
-
}
|
|
180
|
-
else {
|
|
181
|
-
extraAttrs[key] = modifierValues[val.fromModifier] ?? '';
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
const baseAttrs = { 'data-name': dataName, ...extraAttrs };
|
|
186
|
-
// Icon entry: create empty element, CSS displays icon via mask-image
|
|
187
|
-
if (entry.icon) {
|
|
188
|
-
return makeTag(entry.tag, baseAttrs, []);
|
|
189
|
-
}
|
|
190
|
-
// Meta text injection: use resolved modifier value as text content
|
|
191
|
-
if (entry.metaText) {
|
|
192
|
-
let text = modifierValues[entry.metaText] ?? '';
|
|
193
|
-
if (entry.transform && transforms[entry.transform]) {
|
|
194
|
-
text = transforms[entry.transform](text);
|
|
195
|
-
}
|
|
196
|
-
if (entry.textPrefix)
|
|
197
|
-
text = entry.textPrefix + text;
|
|
198
|
-
if (entry.textSuffix)
|
|
199
|
-
text = text + entry.textSuffix;
|
|
200
|
-
return makeTag(entry.tag, baseAttrs, [text]);
|
|
201
|
-
}
|
|
202
|
-
// Process children recursively
|
|
203
|
-
const elementChildren = [];
|
|
204
|
-
if (entry.children) {
|
|
205
|
-
for (const child of entry.children) {
|
|
206
|
-
if (typeof child === 'string') {
|
|
207
|
-
elementChildren.push(child);
|
|
208
|
-
}
|
|
209
|
-
else {
|
|
210
|
-
const built = buildStructureElement(child, child.ref ?? '', modifierValues, icons);
|
|
211
|
-
if (built)
|
|
212
|
-
elementChildren.push(built);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
return makeTag(entry.tag, baseAttrs, elementChildren);
|
|
217
|
-
}
|
|
218
|
-
//# sourceMappingURL=engine.js.map
|
package/dist/lib/engine.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"engine.js","sourceRoot":"","sources":["../../src/lib/engine.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,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CAAC,IAAI,CAAC,CAAC,CAAC;IAC9C,CAAC;IAED,+BAA+B;IAC/B,MAAM,eAAe,GAAmB,EAAE,CAAC;IAC3C,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;QACpB,KAAK,MAAM,KAAK,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;YACpC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;gBAC/B,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC7B,CAAC;iBAAM,CAAC;gBACP,MAAM,KAAK,GAAG,qBAAqB,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,IAAI,EAAE,EAAE,cAAc,EAAE,KAAK,CAAC,CAAC;gBACnF,IAAI,KAAK;oBAAE,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACxC,CAAC;QACF,CAAC;IACF,CAAC;IAED,OAAO,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,SAAS,EAAE,eAAe,CAAC,CAAC;AACvD,CAAC"}
|
package/dist/lib/helpers.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { SerializedTag, RendererNode } from './types.js';
|
|
2
|
-
/** Type guard: is this node a serialized tag? */
|
|
3
|
-
export declare function isTag(node: RendererNode): node is SerializedTag;
|
|
4
|
-
/** Create a serialized tag node */
|
|
5
|
-
export declare function makeTag(name: string, attributes?: Record<string, any>, children?: RendererNode[]): SerializedTag;
|
|
6
|
-
/** Find a meta tag child by its property attribute */
|
|
7
|
-
export declare function findMeta(tag: SerializedTag, property: string): SerializedTag | undefined;
|
|
8
|
-
/** Find a child tag by its data-name attribute */
|
|
9
|
-
export declare function findByDataName(tag: SerializedTag, name: string): SerializedTag | undefined;
|
|
10
|
-
/** Get all children that are NOT meta tags */
|
|
11
|
-
export declare function nonMetaChildren(tag: SerializedTag): RendererNode[];
|
|
12
|
-
/** Read a meta tag's content value, with optional default */
|
|
13
|
-
export declare function readMeta(tag: SerializedTag, property: string, defaultValue?: string): string | undefined;
|
|
14
|
-
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/lib/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE9D,iDAAiD;AACjD,wBAAgB,KAAK,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI,IAAI,aAAa,CAE/D;AAED,mCAAmC;AACnC,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,QAAQ,GAAE,YAAY,EAAO,GAAG,aAAa,CAExH;AAED,sDAAsD;AACtD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAIxF;AAED,kDAAkD;AAClD,wBAAgB,cAAc,CAAC,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAI1F;AAED,8CAA8C;AAC9C,wBAAgB,eAAe,CAAC,GAAG,EAAE,aAAa,GAAG,YAAY,EAAE,CAElE;AAED,6DAA6D;AAC7D,wBAAgB,QAAQ,CAAC,GAAG,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGxG"}
|
package/dist/lib/helpers.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/** Type guard: is this node a serialized tag? */
|
|
2
|
-
export function isTag(node) {
|
|
3
|
-
return typeof node === 'object' && node !== null && !Array.isArray(node) && node.$$mdtype === 'Tag';
|
|
4
|
-
}
|
|
5
|
-
/** Create a serialized tag node */
|
|
6
|
-
export function makeTag(name, attributes = {}, children = []) {
|
|
7
|
-
return { $$mdtype: 'Tag', name, attributes, children };
|
|
8
|
-
}
|
|
9
|
-
/** Find a meta tag child by its property attribute */
|
|
10
|
-
export function findMeta(tag, property) {
|
|
11
|
-
return tag.children.find((c) => isTag(c) && c.name === 'meta' && c.attributes.property === property);
|
|
12
|
-
}
|
|
13
|
-
/** Find a child tag by its data-name attribute */
|
|
14
|
-
export function findByDataName(tag, name) {
|
|
15
|
-
return tag.children.find((c) => isTag(c) && c.attributes['data-name'] === name);
|
|
16
|
-
}
|
|
17
|
-
/** Get all children that are NOT meta tags */
|
|
18
|
-
export function nonMetaChildren(tag) {
|
|
19
|
-
return tag.children.filter(c => !(isTag(c) && c.name === 'meta'));
|
|
20
|
-
}
|
|
21
|
-
/** Read a meta tag's content value, with optional default */
|
|
22
|
-
export function readMeta(tag, property, defaultValue) {
|
|
23
|
-
const meta = findMeta(tag, property);
|
|
24
|
-
return meta?.attributes.content ?? defaultValue;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=helpers.js.map
|
package/dist/lib/helpers.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/lib/helpers.ts"],"names":[],"mappings":"AAEA,iDAAiD;AACjD,MAAM,UAAU,KAAK,CAAC,IAAkB;IACvC,OAAO,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAK,IAAY,CAAC,QAAQ,KAAK,KAAK,CAAC;AAC9G,CAAC;AAED,mCAAmC;AACnC,MAAM,UAAU,OAAO,CAAC,IAAY,EAAE,aAAkC,EAAE,EAAE,WAA2B,EAAE;IACxG,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC;AACxD,CAAC;AAED,sDAAsD;AACtD,MAAM,UAAU,QAAQ,CAAC,GAAkB,EAAE,QAAgB;IAC5D,OAAO,GAAG,CAAC,QAAQ,CAAC,IAAI,CACvB,CAAC,CAAC,EAAsB,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,MAAM,IAAI,CAAC,CAAC,UAAU,CAAC,QAAQ,KAAK,QAAQ,CAC9F,CAAC;AACH,CAAC;AAED,kDAAkD;AAClD,MAAM,UAAU,cAAc,CAAC,GAAkB,EAAE,IAAY;IAC9D,OAAO,GAAG,CAAC,QAAQ,CAAC,IAAI,CACvB,CAAC,CAAC,EAAsB,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CACzE,CAAC;AACH,CAAC;AAED,8CAA8C;AAC9C,MAAM,UAAU,eAAe,CAAC,GAAkB;IACjD,OAAO,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC;AACnE,CAAC;AAED,6DAA6D;AAC7D,MAAM,UAAU,QAAQ,CAAC,GAAkB,EAAE,QAAgB,EAAE,YAAqB;IACnF,MAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IACrC,OAAO,IAAI,EAAE,UAAU,CAAC,OAAO,IAAI,YAAY,CAAC;AACjD,CAAC"}
|
package/dist/lib/types.d.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/** A serialized Markdoc Tag (plain object, not a class instance) */
|
|
2
|
-
export interface SerializedTag {
|
|
3
|
-
$$mdtype: 'Tag';
|
|
4
|
-
name: string;
|
|
5
|
-
attributes: Record<string, any>;
|
|
6
|
-
children: RendererNode[];
|
|
7
|
-
}
|
|
8
|
-
export type RendererNode = SerializedTag | string | number | null | undefined | RendererNode[];
|
|
9
|
-
/** Configuration for a single rune's identity transform */
|
|
10
|
-
export interface RuneConfig {
|
|
11
|
-
/** BEM block name (without prefix). E.g., 'hint' → .rf-hint */
|
|
12
|
-
block: string;
|
|
13
|
-
/** Modifier sources — maps modifier name to where to read it from */
|
|
14
|
-
modifiers?: Record<string, {
|
|
15
|
-
/** Where to read the modifier value */
|
|
16
|
-
source: 'meta' | 'attribute';
|
|
17
|
-
/** Default value if not found */
|
|
18
|
-
default?: string;
|
|
19
|
-
}>;
|
|
20
|
-
/** Structural overrides — additional elements to inject (keyed by data-name) */
|
|
21
|
-
structure?: Record<string, StructureEntry>;
|
|
22
|
-
/** Auto-label children by tag name → data-name. E.g., { summary: 'header' } */
|
|
23
|
-
autoLabel?: Record<string, string>;
|
|
24
|
-
/** Extra attributes to add to the root element */
|
|
25
|
-
rootAttributes?: Record<string, string>;
|
|
26
|
-
/** Wrap content children (non-structural) in this element */
|
|
27
|
-
contentWrapper?: {
|
|
28
|
-
tag: string;
|
|
29
|
-
ref: string;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
export interface StructureEntry {
|
|
33
|
-
/** HTML tag name */
|
|
34
|
-
tag: string;
|
|
35
|
-
/** Sets data-name on the element (overrides the structure key) */
|
|
36
|
-
ref?: string;
|
|
37
|
-
/** Child structure entries or content directives */
|
|
38
|
-
children?: (string | StructureEntry)[];
|
|
39
|
-
/** Insert before existing children */
|
|
40
|
-
before?: boolean;
|
|
41
|
-
/** Inject an SVG icon from config.icons[group][resolvedVariantValue] */
|
|
42
|
-
icon?: {
|
|
43
|
-
group: string;
|
|
44
|
-
variant: string;
|
|
45
|
-
};
|
|
46
|
-
/** Inject text from a resolved modifier value */
|
|
47
|
-
metaText?: string;
|
|
48
|
-
/** Only inject if the named modifier has a truthy resolved value */
|
|
49
|
-
condition?: string;
|
|
50
|
-
/** Only inject if ANY of the named modifiers has a truthy value */
|
|
51
|
-
conditionAny?: string[];
|
|
52
|
-
/** Extra attributes. String values are literal; objects reference modifiers */
|
|
53
|
-
attrs?: Record<string, string | {
|
|
54
|
-
fromModifier: string;
|
|
55
|
-
}>;
|
|
56
|
-
/** Transform applied to metaText value before injection */
|
|
57
|
-
transform?: 'duration' | 'uppercase' | 'capitalize';
|
|
58
|
-
/** Static text prepended to metaText value */
|
|
59
|
-
textPrefix?: string;
|
|
60
|
-
/** Static text appended to metaText value */
|
|
61
|
-
textSuffix?: string;
|
|
62
|
-
}
|
|
63
|
-
/** Top-level theme configuration */
|
|
64
|
-
export interface ThemeConfig {
|
|
65
|
-
/** BEM prefix. E.g., 'rf' → .rf-hint */
|
|
66
|
-
prefix: string;
|
|
67
|
-
/** CSS custom property prefix. E.g., '--rf' → --rf-color-text */
|
|
68
|
-
tokenPrefix: string;
|
|
69
|
-
/** Icon SVGs organized by rune and variant */
|
|
70
|
-
icons: Record<string, Record<string, string>>;
|
|
71
|
-
/** Per-rune transform configuration */
|
|
72
|
-
runes: Record<string, RuneConfig>;
|
|
73
|
-
}
|
|
74
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/lib/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,MAAM,WAAW,aAAa;IAC7B,QAAQ,EAAE,KAAK,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChC,QAAQ,EAAE,YAAY,EAAE,CAAC;CACzB;AAED,MAAM,MAAM,YAAY,GAAG,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,YAAY,EAAE,CAAC;AAE/F,2DAA2D;AAC3D,MAAM,WAAW,UAAU;IAC1B,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAC;IAEd,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAC1B,uCAAuC;QACvC,MAAM,EAAE,MAAM,GAAG,WAAW,CAAC;QAC7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AAC,EAAE,MAAM,CAAC;CACpB;AAED,oCAAoC;AACpC,MAAM,WAAW,WAAW;IAC3B,wCAAwC;IACxC,MAAM,EAAE,MAAM,CAAC;IAEf,iEAAiE;IACjE,WAAW,EAAE,MAAM,CAAC;IAEpB,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAE9C,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CAClC"}
|
package/dist/lib/types.js
DELETED
package/dist/lib/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":""}
|