@stacksjs/stx 0.2.413 → 0.2.414
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/dist/appearance-bootstrap.js +1 -1
- package/dist/binding-manifest.d.ts +1 -1
- package/dist/bundle-analyzer.js +20 -20
- package/dist/chunk-020xyn9q.js +3 -0
- package/dist/chunk-04jhmfbz.js +2 -0
- package/dist/chunk-10957mcb.js +2 -0
- package/dist/chunk-1098mas0.js +2 -0
- package/dist/chunk-169n1vpx.js +12 -0
- package/dist/chunk-1b6t12hd.js +2 -0
- package/dist/chunk-1chw8xsw.js +2 -0
- package/dist/chunk-1xdzcy9d.js +14 -0
- package/dist/chunk-2ce7f416.js +2 -0
- package/dist/chunk-2gr351s0.js +7 -0
- package/dist/chunk-2mkcjw08.js +2 -0
- package/dist/chunk-2v8wztd5.js +2 -0
- package/dist/chunk-340a824p.js +2 -0
- package/dist/chunk-39g1134q.js +2 -0
- package/dist/chunk-3c74vag1.js +2 -0
- package/dist/chunk-3kthfs03.js +3 -0
- package/dist/chunk-3qn1wcdg.js +2 -0
- package/dist/chunk-3s2vnqcf.js +2 -0
- package/dist/chunk-48bwk47q.js +2 -0
- package/dist/chunk-4bjravgk.js +2 -0
- package/dist/chunk-4jjme6a5.js +2 -0
- package/dist/chunk-5g3y8kym.js +2 -0
- package/dist/chunk-5gsxpaqk.js +2 -0
- package/dist/{chunk-bwsxym3d.js → chunk-5qns2sdz.js} +17 -17
- package/dist/chunk-69mc2np8.js +2785 -0
- package/dist/chunk-6cfa3g0r.js +2 -0
- package/dist/{chunk-bjar18jd.js → chunk-6h38kkjf.js} +46 -52
- package/dist/chunk-6hc5vz20.js +3 -0
- package/dist/chunk-6q6g76vg.js +499 -0
- package/dist/{chunk-bwjxk1dw.js → chunk-6sgswrqw.js} +29 -29
- package/dist/chunk-6y8hnymb.js +2 -0
- package/dist/chunk-74j18qk0.js +930 -0
- package/dist/chunk-752hw7cd.js +4 -0
- package/dist/{chunk-kgd8kchy.js → chunk-765e1s44.js} +11 -76
- package/dist/chunk-7gkv67ky.js +4 -0
- package/dist/chunk-7z2ra0yf.js +2 -0
- package/dist/chunk-866n724v.js +2 -0
- package/dist/chunk-8nhshfz6.js +5 -0
- package/dist/chunk-92ps1xpk.js +2 -0
- package/dist/chunk-9g27ybyr.js +3 -0
- package/dist/{chunk-xq1acw1r.js → chunk-9pt8fd2n.js} +13 -13
- package/dist/{chunk-24zher49.js → chunk-9vrja6vp.js} +4 -4
- package/dist/chunk-9xrbve19.js +2 -0
- package/dist/chunk-a688m6js.js +3 -0
- package/dist/chunk-afhxw2t8.js +2 -0
- package/dist/chunk-ak1cgcah.js +5 -0
- package/dist/{chunk-4m7ajama.js → chunk-amd6ey3t.js} +14 -14
- package/dist/chunk-apg16xcn.js +2 -0
- package/dist/chunk-b52s5z0c.js +2 -0
- package/dist/chunk-b84h16er.js +61 -0
- package/dist/{chunk-hx998w7n.js → chunk-bay9s6rs.js} +13 -13
- package/dist/chunk-bmt7w2pk.js +2 -0
- package/dist/chunk-btmhj5t7.js +2 -0
- package/dist/chunk-ce1sejr3.js +3 -0
- package/dist/chunk-cg8hg6cs.js +3 -0
- package/dist/{chunk-4f9zyfdw.js → chunk-czxt605c.js} +4 -5
- package/dist/chunk-d44b9ktb.js +4 -0
- package/dist/chunk-daz5aqcf.js +24 -0
- package/dist/chunk-dgdm3hy3.js +2 -0
- package/dist/chunk-dvgv8nry.js +11 -0
- package/dist/chunk-dx7n22ed.js +2 -0
- package/dist/chunk-e57rhf65.js +3 -0
- package/dist/chunk-eed4fwps.js +3 -0
- package/dist/chunk-ej9j6k1q.js +3 -0
- package/dist/chunk-et0rr8c7.js +3 -0
- package/dist/chunk-f46qsp4m.js +4 -0
- package/dist/chunk-f6az0xj5.js +2 -0
- package/dist/{chunk-bjcsc6wx.js → chunk-fh1qrp68.js} +21 -21
- package/dist/chunk-fjs0a8h7.js +2 -0
- package/dist/chunk-fr2txj8q.js +829 -0
- package/dist/{chunk-xssw417m.js → chunk-ft4p6d28.js} +14 -14
- package/dist/chunk-fyzajkrx.js +2 -0
- package/dist/chunk-fzapbw9p.js +3 -0
- package/dist/chunk-g578mcb0.js +194 -0
- package/dist/chunk-gawrg4gb.js +216 -0
- package/dist/chunk-gw07qmjk.js +2 -0
- package/dist/chunk-h0atqq82.js +32 -0
- package/dist/chunk-h6zsqb9r.js +3 -0
- package/dist/{chunk-2snqdnk9.js → chunk-h85hrwkq.js} +13 -13
- package/dist/chunk-hbxz85wy.js +2 -0
- package/dist/chunk-hjg3ndgh.js +2 -0
- package/dist/chunk-hkxsewzk.js +2 -0
- package/dist/chunk-hrbbbtbn.js +2 -0
- package/dist/chunk-j03revz2.js +8 -0
- package/dist/chunk-j9qcrwbg.js +2 -0
- package/dist/chunk-jk4njz0w.js +2 -0
- package/dist/chunk-jmabeqfq.js +2 -0
- package/dist/chunk-jt0n43mk.js +2 -0
- package/dist/chunk-kjbv8a3m.js +2 -0
- package/dist/chunk-m1vdghnx.js +2 -0
- package/dist/chunk-m4sk62wb.js +5 -0
- package/dist/chunk-md8rqn48.js +30 -0
- package/dist/chunk-mepdnezf.js +17 -0
- package/dist/chunk-mhq0pjws.js +2 -0
- package/dist/chunk-mp6hy8g4.js +2 -0
- package/dist/chunk-ngc2wke4.js +3 -0
- package/dist/chunk-nn2vstke.js +2 -0
- package/dist/chunk-p2v2a68k.js +2 -0
- package/dist/{chunk-qn5srnj3.js → chunk-pbh4smw3.js} +16 -16
- package/dist/chunk-pdt69hpb.js +2 -0
- package/dist/chunk-pgzvyrv6.js +29 -0
- package/dist/chunk-pj1wg7jg.js +2 -0
- package/dist/chunk-pqxzp1bb.js +3 -0
- package/dist/chunk-px7fvbj6.js +3 -0
- package/dist/chunk-q4c06e8x.js +20 -0
- package/dist/chunk-q6vrb2pe.js +2 -0
- package/dist/chunk-q7qchkvk.js +2 -0
- package/dist/chunk-q9bdh4s5.js +8 -0
- package/dist/chunk-qet5gc6s.js +2033 -0
- package/dist/chunk-qz519eyp.js +2 -0
- package/dist/chunk-r3f9jcf7.js +5 -0
- package/dist/chunk-rs4v4fha.js +4 -0
- package/dist/chunk-s2x4wcrz.js +2 -0
- package/dist/chunk-s5xezjps.js +3 -0
- package/dist/chunk-scezfp0w.js +30 -0
- package/dist/chunk-sd321bn3.js +2 -0
- package/dist/{chunk-smcj3442.js → chunk-sd47dzs0.js} +79 -79
- package/dist/chunk-se7mwqd1.js +2 -0
- package/dist/chunk-shr559s7.js +3 -0
- package/dist/chunk-syaw6b75.js +2 -0
- package/dist/chunk-t4hzprsm.js +3 -0
- package/dist/{chunk-pv3d7sfn.js → chunk-t61vdbje.js} +89 -89
- package/dist/chunk-tfexmdkt.js +3 -0
- package/dist/chunk-thyt8ed8.js +6 -0
- package/dist/chunk-v091jft4.js +12 -0
- package/dist/chunk-v4vaqxrf.js +33 -0
- package/dist/chunk-vgvtnwxa.js +4 -0
- package/dist/chunk-x0q32ees.js +3 -0
- package/dist/chunk-x5bpeb4a.js +2 -0
- package/dist/chunk-x72tv2cg.js +3 -0
- package/dist/chunk-xfp7k0v8.js +64 -0
- package/dist/chunk-xtdw3692.js +6 -0
- package/dist/chunk-y1cmjvk3.js +43 -0
- package/dist/chunk-y5310237.js +311 -0
- package/dist/chunk-ya0qecph.js +27 -0
- package/dist/chunk-yazk54jr.js +8 -0
- package/dist/chunk-ydjfar14.js +2 -0
- package/dist/chunk-ym95v4nc.js +3 -0
- package/dist/chunk-ynvdvbat.js +18 -0
- package/dist/chunk-yvx1ap9b.js +3 -0
- package/dist/chunk-z0g9jvv0.js +40 -0
- package/dist/chunk-z6d0jmjb.js +2 -0
- package/dist/{chunk-8sdhs0zk.js → chunk-zhxdpzga.js} +4 -4
- package/dist/cli.js +110 -110
- package/dist/craft-entry.js +7 -7
- package/dist/craft.js +7 -7
- package/dist/database.js +2 -2
- package/dist/image-optimization/component.js +4 -4
- package/dist/media/image/component.js +5 -5
- package/dist/media/protected/component.js +2 -2
- package/dist/media/video/index.js +4 -4
- package/dist/native/bridge/protocol.d.ts +325 -0
- package/dist/native/bridge/protocol.js +219 -0
- package/dist/native/cli.d.ts +24 -0
- package/dist/native/cli.js +52 -0
- package/dist/native/compiler/bundle.d.ts +41 -0
- package/dist/native/compiler/bundle.js +90 -0
- package/dist/native/compiler/client-script.d.ts +8 -0
- package/dist/native/compiler/client-script.js +31 -0
- package/dist/native/compiler/codegen.d.ts +10 -0
- package/dist/native/compiler/codegen.js +145 -0
- package/dist/native/compiler/headwind-to-style.d.ts +395 -0
- package/dist/native/compiler/headwind-to-style.js +1163 -0
- package/dist/native/compiler/html-to-ir.d.ts +41 -0
- package/dist/native/compiler/html-to-ir.js +411 -0
- package/dist/native/compiler/icons.d.ts +220 -0
- package/dist/native/compiler/icons.js +208 -0
- package/dist/native/compiler/ir.d.ts +234 -0
- package/dist/native/compiler/ir.js +15 -0
- package/dist/native/compiler/parser.d.ts +88 -0
- package/dist/native/compiler/parser.js +753 -0
- package/dist/native/compiler/render-screen.d.ts +26 -0
- package/dist/native/compiler/render-screen.js +31 -0
- package/dist/native/components/primitives.d.ts +291 -0
- package/dist/native/components/primitives.js +22 -0
- package/dist/native/hot-reload/client.d.ts +62 -0
- package/dist/native/hot-reload/client.js +324 -0
- package/dist/native/index.d.ts +90 -0
- package/dist/native/index.js +34 -0
- package/dist/native/primitives/ActivityIndicator.stx +5 -0
- package/dist/native/primitives/Button.stx +5 -0
- package/dist/native/primitives/DatePicker.stx +5 -0
- package/dist/native/primitives/FlatList.stx +5 -0
- package/dist/native/primitives/Image.stx +5 -0
- package/dist/native/primitives/ImageBackground.stx +5 -0
- package/dist/native/primitives/KeyboardAvoidingView.stx +5 -0
- package/dist/native/primitives/Modal.stx +5 -0
- package/dist/native/primitives/Picker.stx +5 -0
- package/dist/native/primitives/Pressable.stx +5 -0
- package/dist/native/primitives/RefreshControl.stx +5 -0
- package/dist/native/primitives/SafeAreaView.stx +5 -0
- package/dist/native/primitives/ScrollView.stx +5 -0
- package/dist/native/primitives/SectionList.stx +5 -0
- package/dist/native/primitives/Slider.stx +5 -0
- package/dist/native/primitives/StatusBar.stx +5 -0
- package/dist/native/primitives/Switch.stx +5 -0
- package/dist/native/primitives/Text.stx +5 -0
- package/dist/native/primitives/TextInput.stx +5 -0
- package/dist/native/primitives/TouchableHighlight.stx +5 -0
- package/dist/native/primitives/TouchableOpacity.stx +5 -0
- package/dist/native/primitives/View.stx +5 -0
- package/dist/native/runtime/craft.d.ts +75 -0
- package/dist/native/runtime/craft.js +0 -0
- package/dist/native/runtime/entry.d.ts +1 -0
- package/dist/native/runtime/entry.js +3 -0
- package/dist/native/runtime/index.d.ts +45 -0
- package/dist/native/runtime/index.js +165 -0
- package/dist/native/runtime/native-host.d.ts +33 -0
- package/dist/native/runtime/native-host.js +184 -0
- package/dist/native/runtime/screen.d.ts +43 -0
- package/dist/native/runtime/screen.js +808 -0
- package/dist/pwa/service-worker.js +1 -1
- package/dist/pwa/workbox.js +1 -1
- package/dist/pwa.js +8 -8
- package/dist/site-url.d.ts +1 -1
- package/dist/ssg.js +53 -53
- package/dist/visual-testing.js +42 -42
- package/dist/web-components/reactive-generator.js +2 -2
- package/package.json +9 -5
- package/dist/chunk-0btmm4m2.js +0 -147
- package/dist/chunk-0c2h69k2.js +0 -4
- package/dist/chunk-0d0qeqvv.js +0 -2
- package/dist/chunk-0psndabd.js +0 -2
- package/dist/chunk-0qv8yf53.js +0 -2
- package/dist/chunk-0vkxyvsd.js +0 -2
- package/dist/chunk-0we9nw1d.js +0 -3
- package/dist/chunk-0xqdmemy.js +0 -3
- package/dist/chunk-0y46fbkx.js +0 -3
- package/dist/chunk-158wqccn.js +0 -4422
- package/dist/chunk-1cyxbb8y.js +0 -16
- package/dist/chunk-1enwnh2a.js +0 -2
- package/dist/chunk-213pzm0d.js +0 -3
- package/dist/chunk-21hzqyja.js +0 -12
- package/dist/chunk-266t58b8.js +0 -5
- package/dist/chunk-27fgag95.js +0 -4
- package/dist/chunk-2a9n102n.js +0 -2
- package/dist/chunk-2eqzrczk.js +0 -2
- package/dist/chunk-2ke37m54.js +0 -14
- package/dist/chunk-35ds08e7.js +0 -3
- package/dist/chunk-3mtwkjcg.js +0 -2
- package/dist/chunk-4xr8zwkp.js +0 -2
- package/dist/chunk-58v77x2c.js +0 -2
- package/dist/chunk-5mhq8605.js +0 -2
- package/dist/chunk-5se8xt9e.js +0 -64
- package/dist/chunk-5zh0h080.js +0 -2
- package/dist/chunk-62435225.js +0 -2
- package/dist/chunk-6kdrncsx.js +0 -30
- package/dist/chunk-6n2rr3x7.js +0 -2
- package/dist/chunk-6xk87qf2.js +0 -30
- package/dist/chunk-72rwcbp6.js +0 -3
- package/dist/chunk-76w34xne.js +0 -3
- package/dist/chunk-7ekd7zj9.js +0 -2
- package/dist/chunk-7pr3wdd5.js +0 -3
- package/dist/chunk-7rxvafwc.js +0 -24
- package/dist/chunk-7tnwfa7w.js +0 -8
- package/dist/chunk-8c5je0wf.js +0 -2
- package/dist/chunk-8dz6nyvx.js +0 -2
- package/dist/chunk-98zj3fv2.js +0 -7
- package/dist/chunk-9e8t0twa.js +0 -3
- package/dist/chunk-9fqp72ze.js +0 -5
- package/dist/chunk-anydpa34.js +0 -3
- package/dist/chunk-ay6zjq8v.js +0 -3
- package/dist/chunk-az4v4ard.js +0 -3
- package/dist/chunk-ba5erggg.js +0 -2
- package/dist/chunk-bnagrdz6.js +0 -2
- package/dist/chunk-by8wghtf.js +0 -2
- package/dist/chunk-cd7h4q51.js +0 -2
- package/dist/chunk-cjmv8hgp.js +0 -33
- package/dist/chunk-cthf912y.js +0 -2
- package/dist/chunk-cxbpmwq5.js +0 -4
- package/dist/chunk-d3sy16qn.js +0 -2
- package/dist/chunk-dh6s7mrj.js +0 -1199
- package/dist/chunk-dm2nzg7a.js +0 -2
- package/dist/chunk-e2sgcnxc.js +0 -2
- package/dist/chunk-e3b7jj74.js +0 -2
- package/dist/chunk-ec4wq2sv.js +0 -6
- package/dist/chunk-ekzg97dn.js +0 -29
- package/dist/chunk-epjt342x.js +0 -2
- package/dist/chunk-eqe26g14.js +0 -18
- package/dist/chunk-ev0v1yma.js +0 -2
- package/dist/chunk-f53psr2y.js +0 -5
- package/dist/chunk-f8p69dsg.js +0 -3
- package/dist/chunk-f95drhdb.js +0 -194
- package/dist/chunk-ff5a6hvb.js +0 -17
- package/dist/chunk-fs5fy4h8.js +0 -2
- package/dist/chunk-fzsygce3.js +0 -2
- package/dist/chunk-g465x63k.js +0 -2
- package/dist/chunk-g708ekh1.js +0 -2
- package/dist/chunk-gcr9e83g.js +0 -11
- package/dist/chunk-gdmyrsr8.js +0 -4
- package/dist/chunk-gkms2ngq.js +0 -2
- package/dist/chunk-gnfywmgs.js +0 -7
- package/dist/chunk-hpf8kq7e.js +0 -2
- package/dist/chunk-j4x3faf8.js +0 -2
- package/dist/chunk-jkavtw9f.js +0 -2
- package/dist/chunk-kg1rdena.js +0 -3
- package/dist/chunk-km91wx0v.js +0 -2
- package/dist/chunk-kmsyvaex.js +0 -8
- package/dist/chunk-mrahwn5v.js +0 -8
- package/dist/chunk-nk3czvnk.js +0 -2
- package/dist/chunk-nmw4eewb.js +0 -2
- package/dist/chunk-nq5zxrk0.js +0 -4
- package/dist/chunk-ny67c03k.js +0 -3
- package/dist/chunk-p4wdxp2c.js +0 -2
- package/dist/chunk-pcxp4r9n.js +0 -3
- package/dist/chunk-pdyeaxc1.js +0 -2
- package/dist/chunk-pf06ded4.js +0 -2
- package/dist/chunk-pfs0gpzm.js +0 -2
- package/dist/chunk-pshdwq44.js +0 -2
- package/dist/chunk-pwgv84pn.js +0 -32
- package/dist/chunk-pwsnafp3.js +0 -4367
- package/dist/chunk-q9n5swx7.js +0 -3
- package/dist/chunk-qr346wnp.js +0 -2
- package/dist/chunk-r02hke04.js +0 -2
- package/dist/chunk-ranshpyc.js +0 -3
- package/dist/chunk-rn194bhp.js +0 -20
- package/dist/chunk-rn1hgyc8.js +0 -930
- package/dist/chunk-s7z5dp70.js +0 -43
- package/dist/chunk-s8jd13nb.js +0 -3
- package/dist/chunk-sn7exv0n.js +0 -2
- package/dist/chunk-t1tdjjht.js +0 -216
- package/dist/chunk-t6qx04s8.js +0 -499
- package/dist/chunk-t6y6gyps.js +0 -2
- package/dist/chunk-tjfs7cc3.js +0 -2
- package/dist/chunk-tkyrk66a.js +0 -3
- package/dist/chunk-tntv9hvq.js +0 -2
- package/dist/chunk-v3nwkveg.js +0 -12
- package/dist/chunk-vd4cb5xr.js +0 -2
- package/dist/chunk-vkhdce50.js +0 -2
- package/dist/chunk-w183av08.js +0 -2
- package/dist/chunk-w2m02njv.js +0 -2
- package/dist/chunk-wpjrcrs5.js +0 -2
- package/dist/chunk-wqmppf6b.js +0 -3
- package/dist/chunk-wtb9fxdy.js +0 -2
- package/dist/chunk-xmzygmcz.js +0 -3
- package/dist/chunk-xsng1mtq.js +0 -3
- package/dist/chunk-xxzefj4j.js +0 -2
- package/dist/chunk-yq8x8bxq.js +0 -47
- package/dist/chunk-ytma76qe.js +0 -3
- package/dist/chunk-yw1m115e.js +0 -2
- package/dist/chunk-z64a924m.js +0 -2
- package/dist/chunk-zcz9rs6p.js +0 -3
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { STXDocument, STXNode } from './ir';
|
|
2
|
+
/**
|
|
3
|
+
* Translate stx's rendered HTML into the native view IR.
|
|
4
|
+
*
|
|
5
|
+
* The input is a rendered document or fragment, not a `.stx` template: run it
|
|
6
|
+
* through stx first so directives, server scripts and components are already
|
|
7
|
+
* resolved, with the client bindings left in place.
|
|
8
|
+
*/
|
|
9
|
+
export declare function translateHtmlToIR(html: string, options?: TranslateOptions): Promise<TranslationResult>;
|
|
10
|
+
/** The same translation, wrapped in an `STXDocument` for the renderers. */
|
|
11
|
+
export declare function translateHtmlToDocument(html: string, options?: TranslateOptions & { script?: STXDocument['script'] }): Promise<{ document: STXDocument, diagnostics: TranslationDiagnostic[] }>;
|
|
12
|
+
/**
|
|
13
|
+
* Every event name at least one renderer dispatches on.
|
|
14
|
+
*
|
|
15
|
+
* Pinned against the renderers by `html-to-ir.test.ts`: a handler mapped to a
|
|
16
|
+
* name outside this set is reported rather than quietly attached to nothing.
|
|
17
|
+
*/
|
|
18
|
+
export declare const NATIVE_EVENTS: Set<any>;
|
|
19
|
+
export declare interface TranslationDiagnostic {
|
|
20
|
+
kind: TranslationDiagnosticKind
|
|
21
|
+
tag: string
|
|
22
|
+
name?: string
|
|
23
|
+
}
|
|
24
|
+
export declare interface TranslationResult {
|
|
25
|
+
root: STXNode
|
|
26
|
+
diagnostics: TranslationDiagnostic[]
|
|
27
|
+
}
|
|
28
|
+
export declare interface TranslateOptions {
|
|
29
|
+
source?: string
|
|
30
|
+
}
|
|
31
|
+
export type TranslationDiagnosticKind = | 'unmapped-tag'
|
|
32
|
+
/** Deliberately not translated: a script, a stylesheet, an icon's path data. */
|
|
33
|
+
| 'dropped-subtree'
|
|
34
|
+
/** Inline markup inside a Text node, kept as words with its emphasis lost. */
|
|
35
|
+
| 'flattened-text'
|
|
36
|
+
/** A handler no renderer reads, so wiring it would be a no-op on the device. */
|
|
37
|
+
| 'unread-event'
|
|
38
|
+
/** An inline CSS property the IR has no field for. */
|
|
39
|
+
| 'unknown-style'
|
|
40
|
+
/** A value the IR's field cannot hold, so emitting it would brick the screen. */
|
|
41
|
+
| 'non-numeric-style';
|
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
import { compileHeadwindToStyle } from "./headwind-to-style.js";
|
|
2
|
+
import { createDocument, createNode } from "./ir.js";
|
|
3
|
+
import { mapToNativeComponent } from "./parser.js";
|
|
4
|
+
const DROP_SUBTREE = new Set(["script", "style", "head", "meta", "link", "title", "base", "noscript", "svg"]), UNWRAP = new Set(["template", "body", "html", "main", "fragment"]), BOX_ONLY = new Set(["svg"]), EVENT_NAMES = {
|
|
5
|
+
click: "onPress",
|
|
6
|
+
press: "onPress",
|
|
7
|
+
longpress: "onLongPress",
|
|
8
|
+
contextmenu: "onLongPress",
|
|
9
|
+
input: "onChangeText",
|
|
10
|
+
change: "onValueChange",
|
|
11
|
+
focus: "onFocus",
|
|
12
|
+
focusin: "onFocus",
|
|
13
|
+
blur: "onBlur",
|
|
14
|
+
focusout: "onBlur",
|
|
15
|
+
submit: "onSubmitEditing",
|
|
16
|
+
scroll: "onScroll",
|
|
17
|
+
close: "onRequestClose"
|
|
18
|
+
};
|
|
19
|
+
export const NATIVE_EVENTS = new Set([
|
|
20
|
+
"onBlur",
|
|
21
|
+
"onChangeText",
|
|
22
|
+
"onEndReached",
|
|
23
|
+
"onFocus",
|
|
24
|
+
"onLayout",
|
|
25
|
+
"onLongPress",
|
|
26
|
+
"onPress",
|
|
27
|
+
"onRequestClose",
|
|
28
|
+
"onScroll",
|
|
29
|
+
"onValueChange"
|
|
30
|
+
]);
|
|
31
|
+
const STYLE_KEYS = new Set([
|
|
32
|
+
"display",
|
|
33
|
+
"flex",
|
|
34
|
+
"flexGrow",
|
|
35
|
+
"flexShrink",
|
|
36
|
+
"flexBasis",
|
|
37
|
+
"flexDirection",
|
|
38
|
+
"flexWrap",
|
|
39
|
+
"justifyContent",
|
|
40
|
+
"alignItems",
|
|
41
|
+
"alignSelf",
|
|
42
|
+
"alignContent",
|
|
43
|
+
"position",
|
|
44
|
+
"top",
|
|
45
|
+
"right",
|
|
46
|
+
"bottom",
|
|
47
|
+
"left",
|
|
48
|
+
"zIndex",
|
|
49
|
+
"width",
|
|
50
|
+
"height",
|
|
51
|
+
"minWidth",
|
|
52
|
+
"maxWidth",
|
|
53
|
+
"minHeight",
|
|
54
|
+
"maxHeight",
|
|
55
|
+
"aspectRatio",
|
|
56
|
+
"margin",
|
|
57
|
+
"marginTop",
|
|
58
|
+
"marginRight",
|
|
59
|
+
"marginBottom",
|
|
60
|
+
"marginLeft",
|
|
61
|
+
"marginHorizontal",
|
|
62
|
+
"marginVertical",
|
|
63
|
+
"padding",
|
|
64
|
+
"paddingTop",
|
|
65
|
+
"paddingRight",
|
|
66
|
+
"paddingBottom",
|
|
67
|
+
"paddingLeft",
|
|
68
|
+
"paddingHorizontal",
|
|
69
|
+
"paddingVertical",
|
|
70
|
+
"gap",
|
|
71
|
+
"rowGap",
|
|
72
|
+
"columnGap",
|
|
73
|
+
"borderWidth",
|
|
74
|
+
"borderTopWidth",
|
|
75
|
+
"borderRightWidth",
|
|
76
|
+
"borderBottomWidth",
|
|
77
|
+
"borderLeftWidth",
|
|
78
|
+
"borderColor",
|
|
79
|
+
"borderTopColor",
|
|
80
|
+
"borderRightColor",
|
|
81
|
+
"borderBottomColor",
|
|
82
|
+
"borderLeftColor",
|
|
83
|
+
"borderRadius",
|
|
84
|
+
"borderTopLeftRadius",
|
|
85
|
+
"borderTopRightRadius",
|
|
86
|
+
"borderBottomLeftRadius",
|
|
87
|
+
"borderBottomRightRadius",
|
|
88
|
+
"borderStyle",
|
|
89
|
+
"backgroundColor",
|
|
90
|
+
"backgroundImage",
|
|
91
|
+
"opacity",
|
|
92
|
+
"shadowColor",
|
|
93
|
+
"shadowOffset",
|
|
94
|
+
"shadowOpacity",
|
|
95
|
+
"shadowRadius",
|
|
96
|
+
"elevation",
|
|
97
|
+
"color",
|
|
98
|
+
"fontSize",
|
|
99
|
+
"fontWeight",
|
|
100
|
+
"fontStyle",
|
|
101
|
+
"fontFamily",
|
|
102
|
+
"lineHeight",
|
|
103
|
+
"letterSpacing",
|
|
104
|
+
"textAlign",
|
|
105
|
+
"textDecorationLine",
|
|
106
|
+
"textDecorationColor",
|
|
107
|
+
"textTransform",
|
|
108
|
+
"resizeMode",
|
|
109
|
+
"tintColor",
|
|
110
|
+
"transform",
|
|
111
|
+
"overflow"
|
|
112
|
+
]), NUMERIC_STYLE_KEYS = new Set([
|
|
113
|
+
"flex",
|
|
114
|
+
"flexGrow",
|
|
115
|
+
"flexShrink",
|
|
116
|
+
"zIndex",
|
|
117
|
+
"aspectRatio",
|
|
118
|
+
"gap",
|
|
119
|
+
"rowGap",
|
|
120
|
+
"columnGap",
|
|
121
|
+
"borderWidth",
|
|
122
|
+
"borderTopWidth",
|
|
123
|
+
"borderRightWidth",
|
|
124
|
+
"borderBottomWidth",
|
|
125
|
+
"borderLeftWidth",
|
|
126
|
+
"borderRadius",
|
|
127
|
+
"borderTopLeftRadius",
|
|
128
|
+
"borderTopRightRadius",
|
|
129
|
+
"borderBottomLeftRadius",
|
|
130
|
+
"borderBottomRightRadius",
|
|
131
|
+
"opacity",
|
|
132
|
+
"shadowOpacity",
|
|
133
|
+
"shadowRadius",
|
|
134
|
+
"elevation",
|
|
135
|
+
"fontSize",
|
|
136
|
+
"lineHeight",
|
|
137
|
+
"letterSpacing"
|
|
138
|
+
]), DIMENSION_STYLE_KEYS = new Set([
|
|
139
|
+
"top",
|
|
140
|
+
"right",
|
|
141
|
+
"bottom",
|
|
142
|
+
"left",
|
|
143
|
+
"width",
|
|
144
|
+
"height",
|
|
145
|
+
"minWidth",
|
|
146
|
+
"maxWidth",
|
|
147
|
+
"minHeight",
|
|
148
|
+
"maxHeight",
|
|
149
|
+
"flexBasis",
|
|
150
|
+
"margin",
|
|
151
|
+
"marginTop",
|
|
152
|
+
"marginRight",
|
|
153
|
+
"marginBottom",
|
|
154
|
+
"marginLeft",
|
|
155
|
+
"marginHorizontal",
|
|
156
|
+
"marginVertical",
|
|
157
|
+
"padding",
|
|
158
|
+
"paddingTop",
|
|
159
|
+
"paddingRight",
|
|
160
|
+
"paddingBottom",
|
|
161
|
+
"paddingLeft",
|
|
162
|
+
"paddingHorizontal",
|
|
163
|
+
"paddingVertical"
|
|
164
|
+
]), NATIVE_TYPES = new Set([
|
|
165
|
+
"View",
|
|
166
|
+
"ScrollView",
|
|
167
|
+
"SafeAreaView",
|
|
168
|
+
"KeyboardAvoidingView",
|
|
169
|
+
"Text",
|
|
170
|
+
"TextInput",
|
|
171
|
+
"Button",
|
|
172
|
+
"TouchableOpacity",
|
|
173
|
+
"TouchableHighlight",
|
|
174
|
+
"Pressable",
|
|
175
|
+
"Image",
|
|
176
|
+
"ImageBackground",
|
|
177
|
+
"FlatList",
|
|
178
|
+
"SectionList",
|
|
179
|
+
"Switch",
|
|
180
|
+
"Slider",
|
|
181
|
+
"Picker",
|
|
182
|
+
"DatePicker",
|
|
183
|
+
"Modal",
|
|
184
|
+
"ActivityIndicator",
|
|
185
|
+
"StatusBar",
|
|
186
|
+
"RefreshControl"
|
|
187
|
+
]), CONTAINER_TYPES = new Set(["View", "SafeAreaView", "ScrollView", "KeyboardAvoidingView"]), ENTITIES = {
|
|
188
|
+
amp: "&",
|
|
189
|
+
lt: "<",
|
|
190
|
+
gt: ">",
|
|
191
|
+
quot: '"',
|
|
192
|
+
apos: "'",
|
|
193
|
+
nbsp: " ",
|
|
194
|
+
"#39": "'",
|
|
195
|
+
"#x27": "'"
|
|
196
|
+
};
|
|
197
|
+
function decodeEntities(text) {
|
|
198
|
+
return text.replace(/&(#x?[0-9a-f]+|\w+);/gi, (whole, name) => {
|
|
199
|
+
const direct = ENTITIES[name.toLowerCase()];
|
|
200
|
+
if (direct !== void 0)
|
|
201
|
+
return direct;
|
|
202
|
+
if (name[0] === "#") {
|
|
203
|
+
const code = name[1] === "x" || name[1] === "X" ? Number.parseInt(name.slice(2), 16) : Number.parseInt(name.slice(1), 10);
|
|
204
|
+
return Number.isFinite(code) ? String.fromCodePoint(code) : whole;
|
|
205
|
+
}
|
|
206
|
+
return whole;
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
function camelCase(property) {
|
|
210
|
+
return property.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());
|
|
211
|
+
}
|
|
212
|
+
function styleValue(raw) {
|
|
213
|
+
const pixels = /^(-?[\d.]+)px$/.exec(raw);
|
|
214
|
+
if (pixels)
|
|
215
|
+
return Number.parseFloat(pixels[1]);
|
|
216
|
+
const relative = /^(-?[\d.]+)r?em$/.exec(raw);
|
|
217
|
+
if (relative)
|
|
218
|
+
return Number.parseFloat(relative[1]) * 16;
|
|
219
|
+
if (/^-?[\d.]+$/.test(raw))
|
|
220
|
+
return Number.parseFloat(raw);
|
|
221
|
+
return raw;
|
|
222
|
+
}
|
|
223
|
+
function readAttributes(tag, attributes, diagnostics) {
|
|
224
|
+
const props = {}, events = {}, bindings = {};
|
|
225
|
+
let classes = "", inline = {};
|
|
226
|
+
for (const [rawName, value] of attributes) {
|
|
227
|
+
const name = rawName.toLowerCase();
|
|
228
|
+
if (name === "class" || name === "classname") {
|
|
229
|
+
classes = classes ? `${classes} ${value}` : value;
|
|
230
|
+
continue;
|
|
231
|
+
}
|
|
232
|
+
if (name === "style") {
|
|
233
|
+
inline = { ...inline, ...inlineStyle(tag, value, diagnostics) };
|
|
234
|
+
continue;
|
|
235
|
+
}
|
|
236
|
+
if (name.startsWith(":") || name.startsWith("x-") && name !== "x-cloak") {
|
|
237
|
+
bindings[name.startsWith(":") ? name.slice(1) : name.slice(2)] = decodeEntities(value);
|
|
238
|
+
continue;
|
|
239
|
+
}
|
|
240
|
+
if (name === "x-cloak")
|
|
241
|
+
continue;
|
|
242
|
+
if (name.startsWith("@") || name.startsWith("v-on:")) {
|
|
243
|
+
const spelling = name.startsWith("@") ? name.slice(1) : name.slice(5), [base] = spelling.split("."), native = EVENT_NAMES[base] ?? (base.startsWith("on") ? base : "");
|
|
244
|
+
if (!native || !NATIVE_EVENTS.has(native)) {
|
|
245
|
+
diagnostics.push({ kind: "unread-event", tag, name: rawName });
|
|
246
|
+
continue;
|
|
247
|
+
}
|
|
248
|
+
events[native] = decodeEntities(value);
|
|
249
|
+
continue;
|
|
250
|
+
}
|
|
251
|
+
if (name === "key") {
|
|
252
|
+
props.key = value;
|
|
253
|
+
continue;
|
|
254
|
+
}
|
|
255
|
+
try {
|
|
256
|
+
props[rawName] = JSON.parse(value);
|
|
257
|
+
} catch {
|
|
258
|
+
props[rawName] = decodeEntities(value);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
const style = { ...classes ? compileHeadwindToStyle(classes) : {}, ...inline };
|
|
262
|
+
return { props, style, events, bindings, classes };
|
|
263
|
+
}
|
|
264
|
+
function holdsString(property, value) {
|
|
265
|
+
if (NUMERIC_STYLE_KEYS.has(property))
|
|
266
|
+
return !1;
|
|
267
|
+
if (DIMENSION_STYLE_KEYS.has(property))
|
|
268
|
+
return /^-?[\d.]+%$/.test(value);
|
|
269
|
+
return !0;
|
|
270
|
+
}
|
|
271
|
+
function inlineStyle(tag, css, diagnostics) {
|
|
272
|
+
const style = {};
|
|
273
|
+
for (const declaration of css.split(";")) {
|
|
274
|
+
const colon = declaration.indexOf(":");
|
|
275
|
+
if (colon === -1)
|
|
276
|
+
continue;
|
|
277
|
+
const property = camelCase(declaration.slice(0, colon).trim().toLowerCase()), value = declaration.slice(colon + 1).trim();
|
|
278
|
+
if (!property || !value)
|
|
279
|
+
continue;
|
|
280
|
+
if (!STYLE_KEYS.has(property)) {
|
|
281
|
+
diagnostics.push({ kind: "unknown-style", tag, name: property });
|
|
282
|
+
continue;
|
|
283
|
+
}
|
|
284
|
+
const translated = styleValue(value);
|
|
285
|
+
if (typeof translated === "string" && !holdsString(property, translated)) {
|
|
286
|
+
diagnostics.push({ kind: "non-numeric-style", tag, name: property });
|
|
287
|
+
continue;
|
|
288
|
+
}
|
|
289
|
+
style[property] = translated;
|
|
290
|
+
}
|
|
291
|
+
return style;
|
|
292
|
+
}
|
|
293
|
+
function flattenText(node) {
|
|
294
|
+
return node.children.map((child) => typeof child === "string" ? child : flattenText(child)).join("").replace(/\s+/g, " ").trim();
|
|
295
|
+
}
|
|
296
|
+
function settle(frame, diagnostics) {
|
|
297
|
+
const node = frame.node, elements = node.children.filter((child) => typeof child !== "string"), text = node.children.filter((child) => typeof child === "string").join("").trim();
|
|
298
|
+
if (CONTAINER_TYPES.has(node.type) && elements.length === 0 && text) {
|
|
299
|
+
node.type = "Text";
|
|
300
|
+
node.children = [text];
|
|
301
|
+
return node;
|
|
302
|
+
}
|
|
303
|
+
if (node.type === "Text" && elements.length > 0) {
|
|
304
|
+
const flattened = flattenText(node);
|
|
305
|
+
diagnostics.push({ kind: "flattened-text", tag: frame.tag });
|
|
306
|
+
node.children = flattened ? [flattened] : [];
|
|
307
|
+
return node;
|
|
308
|
+
}
|
|
309
|
+
if (CONTAINER_TYPES.has(node.type) && elements.length > 0)
|
|
310
|
+
node.children = elements;
|
|
311
|
+
return node;
|
|
312
|
+
}
|
|
313
|
+
export async function translateHtmlToIR(html, options = {}) {
|
|
314
|
+
const diagnostics = [], roots = [], stack = [], seenUnmapped = new Set;
|
|
315
|
+
function attach(node) {
|
|
316
|
+
const parent = stack[stack.length - 1];
|
|
317
|
+
if (!parent)
|
|
318
|
+
roots.push(node);
|
|
319
|
+
else if (!parent.dropped)
|
|
320
|
+
parent.node.children.push(node);
|
|
321
|
+
}
|
|
322
|
+
function hoist(frame) {
|
|
323
|
+
const parent = stack[stack.length - 1];
|
|
324
|
+
for (const child of frame.node.children) {
|
|
325
|
+
if (typeof child === "string") {
|
|
326
|
+
if (parent && !parent.dropped)
|
|
327
|
+
parent.node.children.push(child);
|
|
328
|
+
continue;
|
|
329
|
+
}
|
|
330
|
+
if (!parent)
|
|
331
|
+
roots.push(child);
|
|
332
|
+
else if (!parent.dropped)
|
|
333
|
+
parent.node.children.push(child);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
function open(tag, attributes) {
|
|
337
|
+
const dropped = DROP_SUBTREE.has(tag) && !BOX_ONLY.has(tag), inheritedDrop = stack[stack.length - 1]?.dropped ?? !1, { props, style, events, bindings, classes } = dropped || inheritedDrop ? { props: {}, style: {}, events: {}, bindings: {}, classes: "" } : readAttributes(tag, attributes, diagnostics), declared = props["data-native"];
|
|
338
|
+
let type;
|
|
339
|
+
if (typeof declared === "string" && NATIVE_TYPES.has(declared)) {
|
|
340
|
+
type = declared;
|
|
341
|
+
delete props["data-native"];
|
|
342
|
+
} else
|
|
343
|
+
type = BOX_ONLY.has(tag) ? "View" : mapToNativeComponent(tag);
|
|
344
|
+
if (type === tag && !NATIVE_TYPES.has(type) && !DROP_SUBTREE.has(tag) && !UNWRAP.has(tag) && !seenUnmapped.has(tag)) {
|
|
345
|
+
seenUnmapped.add(tag);
|
|
346
|
+
diagnostics.push({ kind: "unmapped-tag", tag });
|
|
347
|
+
}
|
|
348
|
+
if ((dropped || BOX_ONLY.has(tag)) && !seenUnmapped.has(`drop:${tag}`)) {
|
|
349
|
+
seenUnmapped.add(`drop:${tag}`);
|
|
350
|
+
diagnostics.push({ kind: "dropped-subtree", tag });
|
|
351
|
+
}
|
|
352
|
+
const node = createNode(type, props, style, events);
|
|
353
|
+
if (classes)
|
|
354
|
+
node._classes = classes;
|
|
355
|
+
if (Object.keys(bindings).length > 0)
|
|
356
|
+
node.bindings = bindings;
|
|
357
|
+
if (typeof props.key === "string") {
|
|
358
|
+
node.key = props.key;
|
|
359
|
+
delete props.key;
|
|
360
|
+
}
|
|
361
|
+
return {
|
|
362
|
+
tag,
|
|
363
|
+
node,
|
|
364
|
+
dropped: dropped || inheritedDrop || BOX_ONLY.has(tag),
|
|
365
|
+
discard: dropped || inheritedDrop,
|
|
366
|
+
unwrap: UNWRAP.has(tag)
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
await new HTMLRewriter().on("*", {
|
|
370
|
+
element(element) {
|
|
371
|
+
const tag = element.tagName.toLowerCase(), frame = open(tag, [...element.attributes]);
|
|
372
|
+
let hasEndTag = !0;
|
|
373
|
+
try {
|
|
374
|
+
element.onEndTag(() => {
|
|
375
|
+
stack.pop();
|
|
376
|
+
if (frame.discard)
|
|
377
|
+
return;
|
|
378
|
+
if (frame.unwrap)
|
|
379
|
+
hoist(frame);
|
|
380
|
+
else
|
|
381
|
+
attach(settle(frame, diagnostics));
|
|
382
|
+
});
|
|
383
|
+
} catch {
|
|
384
|
+
hasEndTag = !1;
|
|
385
|
+
}
|
|
386
|
+
if (hasEndTag)
|
|
387
|
+
stack.push(frame);
|
|
388
|
+
else if (!frame.discard)
|
|
389
|
+
attach(frame.node);
|
|
390
|
+
},
|
|
391
|
+
text(chunk) {
|
|
392
|
+
const frame = stack[stack.length - 1];
|
|
393
|
+
if (!frame || frame.dropped)
|
|
394
|
+
return;
|
|
395
|
+
const text = decodeEntities(chunk.text).replace(/\s+/g, " ");
|
|
396
|
+
if (!text.trim())
|
|
397
|
+
return;
|
|
398
|
+
frame.node.children.push(text);
|
|
399
|
+
}
|
|
400
|
+
}).transform(new Response(html)).text();
|
|
401
|
+
if (roots.length === 0)
|
|
402
|
+
throw Error(`No element to translate in the rendered output of ${options.source ?? "unknown"}`);
|
|
403
|
+
return { root: roots.length === 1 ? roots[0] : createNode("View", {}, {}, {}, roots), diagnostics };
|
|
404
|
+
}
|
|
405
|
+
export async function translateHtmlToDocument(html, options = {}) {
|
|
406
|
+
const { root, diagnostics } = await translateHtmlToIR(html, options), script = options.script ?? { exports: {}, functions: [], code: "" };
|
|
407
|
+
return {
|
|
408
|
+
document: createDocument(root, script, { source: options.source ?? "unknown" }),
|
|
409
|
+
diagnostics
|
|
410
|
+
};
|
|
411
|
+
}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve whatever a screen wrote to an SF Symbol.
|
|
3
|
+
*
|
|
4
|
+
* Accepts `i-lucide-sun`, `lucide:sun`, a bare lucide name (`sun`, as HQ's web
|
|
5
|
+
* `<Icon name="sun">` takes it) and an SF Symbol name (anything with a dot, or
|
|
6
|
+
* passed as `symbol`), which is used as is.
|
|
7
|
+
*/
|
|
8
|
+
export declare function resolveIconName(name: string | null | undefined, asSymbol?: boolean): IconResolution;
|
|
9
|
+
/** The first Iconify class in a class list (`i-lucide-sun w-5 h-5`), if any. */
|
|
10
|
+
export declare function iconClassIn(classes: string): string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Iconify names to SF Symbols, for `<Icon>` on a native screen.
|
|
13
|
+
*
|
|
14
|
+
* A web screen draws `i-lucide-sun` from Iconify's CSS. A native screen has no
|
|
15
|
+
* CSS icons, so the compiler (and the runtime, for a class that only exists at
|
|
16
|
+
* runtime) maps the name to the SF Symbol that means the same thing, and the
|
|
17
|
+
* host draws it as a tinted `UIImageView`.
|
|
18
|
+
*
|
|
19
|
+
* The table is lucide first, because that is the collection HQ uses. Entries
|
|
20
|
+
* pick the closest symbol in meaning, not in shape: `footprints` is a run, so
|
|
21
|
+
* it is `figure.run`. Anything missing falls back to `circle` and the compiler
|
|
22
|
+
* says which name it did not know.
|
|
23
|
+
*/
|
|
24
|
+
/** The symbol drawn for a name the table does not have. */
|
|
25
|
+
export declare const FALLBACK_SYMBOL: 'circle';
|
|
26
|
+
/** lucide name (without the `i-lucide-` prefix) to SF Symbol name. */
|
|
27
|
+
export declare const LUCIDE_TO_SF: {
|
|
28
|
+
'activity': 'waveform.path.ecg';
|
|
29
|
+
'alarm-clock': 'alarm';
|
|
30
|
+
'alert-circle': 'exclamationmark.circle';
|
|
31
|
+
'alert-triangle': 'exclamationmark.triangle';
|
|
32
|
+
'archive': 'archivebox';
|
|
33
|
+
'arrow-down': 'arrow.down';
|
|
34
|
+
'arrow-left': 'arrow.left';
|
|
35
|
+
'arrow-right': 'arrow.right';
|
|
36
|
+
'arrow-up': 'arrow.up';
|
|
37
|
+
'arrow-up-right': 'arrow.up.right';
|
|
38
|
+
'at-sign': 'at';
|
|
39
|
+
'audio-lines': 'waveform';
|
|
40
|
+
'award': 'rosette';
|
|
41
|
+
'badge-check': 'checkmark.seal';
|
|
42
|
+
'bar-chart': 'chart.bar';
|
|
43
|
+
'bar-chart-2': 'chart.bar';
|
|
44
|
+
'bar-chart-3': 'chart.bar';
|
|
45
|
+
'battery': 'battery.100';
|
|
46
|
+
'bed': 'bed.double';
|
|
47
|
+
'bell': 'bell';
|
|
48
|
+
'bell-off': 'bell.slash';
|
|
49
|
+
'bike': 'figure.outdoor.cycle';
|
|
50
|
+
'bluetooth': 'antenna.radiowaves.left.and.right';
|
|
51
|
+
'book': 'book';
|
|
52
|
+
'book-open': 'book';
|
|
53
|
+
'bookmark': 'bookmark';
|
|
54
|
+
'brain': 'brain';
|
|
55
|
+
'calendar': 'calendar';
|
|
56
|
+
'calendar-check': 'calendar.badge.checkmark';
|
|
57
|
+
'calendar-clock': 'calendar.badge.clock';
|
|
58
|
+
'calendar-days': 'calendar';
|
|
59
|
+
'calendar-plus': 'calendar.badge.plus';
|
|
60
|
+
'calendar-range': 'calendar';
|
|
61
|
+
'calendar-sync': 'arrow.triangle.2.circlepath';
|
|
62
|
+
'camera': 'camera';
|
|
63
|
+
'chart-bar': 'chart.bar';
|
|
64
|
+
'chart-line': 'chart.xyaxis.line';
|
|
65
|
+
'check': 'checkmark';
|
|
66
|
+
'check-circle': 'checkmark.circle';
|
|
67
|
+
'check-circle-2': 'checkmark.circle';
|
|
68
|
+
'chevron-down': 'chevron.down';
|
|
69
|
+
'chevron-left': 'chevron.left';
|
|
70
|
+
'chevron-right': 'chevron.right';
|
|
71
|
+
'chevron-up': 'chevron.up';
|
|
72
|
+
'circle': 'circle';
|
|
73
|
+
'circle-alert': 'exclamationmark.circle';
|
|
74
|
+
'circle-check': 'checkmark.circle';
|
|
75
|
+
'circle-check-big': 'checkmark.circle';
|
|
76
|
+
'circle-help': 'questionmark.circle';
|
|
77
|
+
'circle-play': 'play.circle';
|
|
78
|
+
'circle-plus': 'plus.circle';
|
|
79
|
+
'circle-user': 'person.crop.circle';
|
|
80
|
+
'circle-x': 'xmark.circle';
|
|
81
|
+
'clapperboard': 'film';
|
|
82
|
+
'clipboard': 'clipboard';
|
|
83
|
+
'clipboard-list': 'list.clipboard';
|
|
84
|
+
'clock': 'clock';
|
|
85
|
+
'cloud': 'cloud';
|
|
86
|
+
'cloud-off': 'icloud.slash';
|
|
87
|
+
'coffee': 'cup.and.saucer';
|
|
88
|
+
'copy': 'doc.on.doc';
|
|
89
|
+
'credit-card': 'creditcard';
|
|
90
|
+
'download': 'arrow.down.circle';
|
|
91
|
+
'droplet': 'drop';
|
|
92
|
+
'droplets': 'drop';
|
|
93
|
+
'dumbbell': 'dumbbell';
|
|
94
|
+
'edit': 'pencil';
|
|
95
|
+
'external-link': 'arrow.up.right.square';
|
|
96
|
+
'eye': 'eye';
|
|
97
|
+
'eye-off': 'eye.slash';
|
|
98
|
+
'file': 'doc';
|
|
99
|
+
'file-text': 'doc.text';
|
|
100
|
+
'filter': 'line.3.horizontal.decrease';
|
|
101
|
+
'flag': 'flag';
|
|
102
|
+
'flame': 'flame';
|
|
103
|
+
'footprints': 'figure.run';
|
|
104
|
+
'gauge': 'gauge';
|
|
105
|
+
'gift': 'gift';
|
|
106
|
+
'globe': 'globe';
|
|
107
|
+
'graduation-cap': 'graduationcap';
|
|
108
|
+
'grip-vertical': 'line.3.horizontal';
|
|
109
|
+
'heart': 'heart';
|
|
110
|
+
'heart-pulse': 'heart.text.square';
|
|
111
|
+
'help-circle': 'questionmark.circle';
|
|
112
|
+
'history': 'clock.arrow.circlepath';
|
|
113
|
+
'home': 'house';
|
|
114
|
+
'house': 'house';
|
|
115
|
+
'image': 'photo';
|
|
116
|
+
'inbox': 'tray';
|
|
117
|
+
'info': 'info.circle';
|
|
118
|
+
'layers': 'square.3.layers.3d';
|
|
119
|
+
'layout-grid': 'square.grid.2x2';
|
|
120
|
+
'library': 'books.vertical';
|
|
121
|
+
'link': 'link';
|
|
122
|
+
'list': 'list.bullet';
|
|
123
|
+
'list-checks': 'checklist';
|
|
124
|
+
'loader': 'arrow.triangle.2.circlepath';
|
|
125
|
+
'loader-2': 'arrow.triangle.2.circlepath';
|
|
126
|
+
'loader-circle': 'arrow.triangle.2.circlepath';
|
|
127
|
+
'lock': 'lock';
|
|
128
|
+
'log-in': 'arrow.right.to.line';
|
|
129
|
+
'log-out': 'rectangle.portrait.and.arrow.right';
|
|
130
|
+
'mail': 'envelope';
|
|
131
|
+
'map': 'map';
|
|
132
|
+
'map-pin': 'mappin.and.ellipse';
|
|
133
|
+
'medal': 'medal';
|
|
134
|
+
'menu': 'line.3.horizontal';
|
|
135
|
+
'message-circle': 'bubble.left';
|
|
136
|
+
'message-square': 'text.bubble';
|
|
137
|
+
'message-square-quote': 'quote.bubble';
|
|
138
|
+
'mic': 'mic';
|
|
139
|
+
'minus': 'minus';
|
|
140
|
+
'moon': 'moon';
|
|
141
|
+
'more-horizontal': 'ellipsis';
|
|
142
|
+
'more-vertical': 'ellipsis';
|
|
143
|
+
'mountain': 'mountain.2';
|
|
144
|
+
'music': 'music.note';
|
|
145
|
+
'package': 'shippingbox';
|
|
146
|
+
'pause': 'pause';
|
|
147
|
+
'pause-circle': 'pause.circle';
|
|
148
|
+
'pencil': 'pencil';
|
|
149
|
+
'person-standing': 'figure.walk';
|
|
150
|
+
'phone': 'phone';
|
|
151
|
+
'play': 'play.fill';
|
|
152
|
+
'plug': 'powerplug';
|
|
153
|
+
'plus': 'plus';
|
|
154
|
+
'plus-circle': 'plus.circle';
|
|
155
|
+
'refresh-cw': 'arrow.clockwise';
|
|
156
|
+
'repeat': 'repeat';
|
|
157
|
+
'rotate-ccw': 'arrow.counterclockwise';
|
|
158
|
+
'route': 'point.topleft.down.to.point.bottomright.curvepath';
|
|
159
|
+
'ruler': 'ruler';
|
|
160
|
+
'sailboat': 'sailboat';
|
|
161
|
+
'satellite': 'antenna.radiowaves.left.and.right';
|
|
162
|
+
'save': 'square.and.arrow.down';
|
|
163
|
+
'scale': 'scalemass';
|
|
164
|
+
'search': 'magnifyingglass';
|
|
165
|
+
'send': 'paperplane';
|
|
166
|
+
'settings': 'gearshape';
|
|
167
|
+
'settings-2': 'slider.horizontal.3';
|
|
168
|
+
'share': 'square.and.arrow.up';
|
|
169
|
+
'share-2': 'square.and.arrow.up';
|
|
170
|
+
'shield': 'shield';
|
|
171
|
+
'shield-check': 'checkmark.shield';
|
|
172
|
+
'shopping-bag': 'bag';
|
|
173
|
+
'shopping-cart': 'cart';
|
|
174
|
+
'skip-back': 'backward.end';
|
|
175
|
+
'skip-forward': 'forward.end';
|
|
176
|
+
'sliders': 'slider.horizontal.3';
|
|
177
|
+
'sliders-horizontal': 'slider.horizontal.3';
|
|
178
|
+
'smartphone': 'iphone';
|
|
179
|
+
'snowflake': 'snowflake';
|
|
180
|
+
'sparkles': 'sparkles';
|
|
181
|
+
'square': 'square';
|
|
182
|
+
'star': 'star';
|
|
183
|
+
'stopwatch': 'stopwatch';
|
|
184
|
+
'store': 'storefront';
|
|
185
|
+
'sun': 'sun.max';
|
|
186
|
+
'sunrise': 'sunrise';
|
|
187
|
+
'sunset': 'sunset';
|
|
188
|
+
'tag': 'tag';
|
|
189
|
+
'target': 'scope';
|
|
190
|
+
'thermometer': 'thermometer.medium';
|
|
191
|
+
'thumbs-up': 'hand.thumbsup';
|
|
192
|
+
'timer': 'timer';
|
|
193
|
+
'trash': 'trash';
|
|
194
|
+
'trash-2': 'trash';
|
|
195
|
+
'trending-down': 'chart.line.downtrend.xyaxis';
|
|
196
|
+
'trending-up': 'chart.line.uptrend.xyaxis';
|
|
197
|
+
'trophy': 'trophy';
|
|
198
|
+
'unlink': 'personalhotspot.slash';
|
|
199
|
+
'upload': 'arrow.up.circle';
|
|
200
|
+
'user': 'person';
|
|
201
|
+
'user-plus': 'person.badge.plus';
|
|
202
|
+
'user-round': 'person';
|
|
203
|
+
'users': 'person.2';
|
|
204
|
+
'video': 'video';
|
|
205
|
+
'volume-2': 'speaker.wave.2';
|
|
206
|
+
'watch': 'applewatch';
|
|
207
|
+
'waves': 'figure.pool.swim';
|
|
208
|
+
'weight': 'scalemass';
|
|
209
|
+
'wifi': 'wifi';
|
|
210
|
+
'wifi-off': 'wifi.slash';
|
|
211
|
+
'wind': 'wind';
|
|
212
|
+
'x': 'xmark';
|
|
213
|
+
'x-circle': 'xmark.circle';
|
|
214
|
+
'zap': 'bolt'
|
|
215
|
+
};
|
|
216
|
+
export declare interface IconResolution {
|
|
217
|
+
symbol: string
|
|
218
|
+
iconify?: string
|
|
219
|
+
known: boolean
|
|
220
|
+
}
|