@tangible/ui 0.2.33 → 0.2.34

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.
@@ -0,0 +1,120 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg">
2
+ <symbol id="tui-system-alert-circle-fill" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16m-1-7V7h2v6zm0 2v2h2v-2z" clip-rule="evenodd"/></symbol>
3
+ <symbol id="tui-system-alert-circle-outline" viewBox="0 0 24 24"><path d="M13 17h-2v-2h2zm0-4h-2V7h2z"/><path fill-rule="evenodd" d="M12 4a8 8 0 1 1 0 16 8 8 0 0 1 0-16m0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13" clip-rule="evenodd"/></symbol>
4
+ <symbol id="tui-system-alert-triangle" viewBox="0 0 24 24"><g><path d="M13 17h-2v-2h2zM13 14h-2V9h2z"/><path fill-rule="evenodd" d="M10.475 4.431c.67-1.189 2.382-1.189 3.05 0l7.29 12.96C21.473 18.558 20.63 20 19.29 20H4.71c-1.338 0-2.181-1.442-1.525-2.609zm1.743.736a.25.25 0 0 0-.435 0l-7.29 12.96a.25.25 0 0 0 .217.373h14.58a.25.25 0 0 0 .218-.373z" clip-rule="evenodd"/></g></symbol>
5
+ <symbol id="tui-system-arrow-clockwise" viewBox="0 0 24 24"><path d="m19.306 9.495-5.27.258-.073-1.498 2.93-.144a6.25 6.25 0 1 0 1.144 5.507l1.449.388a7.75 7.75 0 1 1-1.69-7.15l-.01-2.853 1.5-.005z"/></symbol>
6
+ <symbol id="tui-system-arrow-counterclockwise" viewBox="0 0 24 24"><path d="m4.43 9.495 5.27.258.073-1.498-2.93-.144a6.25 6.25 0 1 1-1.144 5.507l-1.45.388a7.75 7.75 0 1 0 1.69-7.15l.01-2.853-1.5-.005z"/></symbol>
7
+ <symbol id="tui-system-arrow-down" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m6.47 14.53 1.06-1.06 3.72 3.72V4h1.5v13.19l3.72-3.72 1.06 1.06L12 20.06z" clip-rule="evenodd"/></symbol>
8
+ <symbol id="tui-system-arrow-left" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m9.47 6.47 1.06 1.06-3.72 3.72H20v1.5H6.81l3.72 3.72-1.06 1.06L3.94 12z" clip-rule="evenodd"/></symbol>
9
+ <symbol id="tui-system-arrow-right" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m14.53 17.53-1.06-1.06 3.72-3.72H4v-1.5h13.19l-3.72-3.72 1.06-1.06L20.06 12z" clip-rule="evenodd"/></symbol>
10
+ <symbol id="tui-system-arrow-up" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m17.53 9.47-1.06 1.06-3.72-3.72V20h-1.5V6.81l-3.72 3.72-1.06-1.06L12 3.94z" clip-rule="evenodd"/></symbol>
11
+ <symbol id="tui-system-attachment" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M10.5 3.75A2.25 2.25 0 0 0 8.25 6v10.5a3.75 3.75 0 1 0 7.5 0V7h1.5v9.5a5.25 5.25 0 1 1-10.5 0V6a3.75 3.75 0 1 1 7.5 0v10a2.25 2.25 0 0 1-4.5 0V7h1.5v9a.75.75 0 0 0 1.5 0V6a2.25 2.25 0 0 0-2.25-2.25" clip-rule="evenodd"/></symbol>
12
+ <symbol id="tui-system-bell-unread" viewBox="0 0 24 24"><path d="M13.969 4.39A5.1 5.1 0 0 0 12 4C9.2 4 7 6.2 7 9v2.5c0 1.353-.17 2.367-.976 3A3 3 0 0 1 5 15v1h14v-1c-.422-.124-.758-.291-1.024-.5-.806-.633-.976-1.647-.976-3V11a4 4 0 0 1-1.5-.29v.79c0 .93.066 1.98.515 2.897l.053.103H7.932l.053-.103c.449-.917.515-1.967.515-2.897V9c0-1.972 1.528-3.5 3.5-3.5.43 0 .838.072 1.214.206.167-.488.425-.933.755-1.316m-3.961 13.618q.001-.265.065-.508h3.854A1.996 1.996 0 0 1 12 20a1.99 1.99 0 0 1-1.992-1.992"/><path d="M19.5 7a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0"/></symbol>
13
+ <symbol id="tui-system-bell" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M17 11.5c0 1.353.17 2.367.976 3 .267.209.602.376 1.024.5v1H5v-1a3 3 0 0 0 1.024-.5c.806-.633.976-1.647.976-3V9c0-2.8 2.2-5 5-5s5 2.2 5 5zM15.5 9v2.5c0 .93.066 1.98.515 2.897l.053.103H7.932l.053-.103c.449-.917.515-1.967.515-2.897V9c0-1.972 1.528-3.5 3.5-3.5s3.5 1.528 3.5 3.5m-5.492 9.008q.001-.265.065-.508h3.854A1.996 1.996 0 0 1 12 20c-1.1 0-1.992-.892-1.992-1.992" clip-rule="evenodd"/></symbol>
14
+ <symbol id="tui-system-bolt-fill" viewBox="0 0 24 24"><path d="M13.522 11h3.487c.416 0 .79.26.91.647a.95.95 0 0 1-.25 1.106l-8.007 7a1 1 0 0 1-1.58-1.147L10.489 13H6.973a.995.995 0 0 1-.909-.647 1 1 0 0 1 .278-1.106l8.005-7a1.002 1.002 0 0 1 1.58 1.147z"/></symbol>
15
+ <symbol id="tui-system-bolt-outline" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m11.675 11.5 2.007-4.678-5.35 4.678zm.66 1-2.008 4.68 5.352-4.68zm-5.993-1.253a1 1 0 0 0-.278 1.106c.147.388.52.647.909.647h3.515l-2.405 5.606a1 1 0 0 0 1.58 1.147l8.006-7a.95.95 0 0 0 .25-1.106.94.94 0 0 0-.91-.647h-3.487l2.405-5.606a1.002 1.002 0 0 0-1.58-1.147z" clip-rule="evenodd"/></symbol>
16
+ <symbol id="tui-system-bolt-plus-fill" viewBox="0 0 24 24"><path d="M13.522 11h3.487c.416 0 .79.26.91.647a.95.95 0 0 1-.25 1.106l-.603.527a4.5 4.5 0 0 0-5.957 5.208l-1.447 1.265a1 1 0 0 1-1.58-1.147L10.489 13H6.973a.995.995 0 0 1-.909-.647 1 1 0 0 1 .278-1.106l8.005-7a1.002 1.002 0 0 1 1.58 1.147z"/><path fill-rule="evenodd" d="M15.5 21a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7m2.5-3.5a.577.577 0 0 1-.577.577h-1.346v1.346a.577.577 0 1 1-1.154 0v-1.346h-1.346a.577.577 0 0 1 0-1.154h1.346v-1.346a.577.577 0 1 1 1.154 0v1.346h1.346c.32 0 .577.258.577.577" clip-rule="evenodd"/></symbol>
17
+ <symbol id="tui-system-bolt-plus-outline" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12.335 12.5h3.344l-.593.519q.204-.02.414-.019c.55 0 1.078.099 1.566.28l.603-.527a.95.95 0 0 0 .25-1.106.94.94 0 0 0-.91-.647h-3.487l2.405-5.606a1.002 1.002 0 0 0-1.58-1.147l-8.005 7a1 1 0 0 0-.278 1.106c.147.388.52.647.909.647h3.515l-2.405 5.606a1 1 0 0 0 1.58 1.147l1.446-1.265a4.5 4.5 0 0 1 .004-1.996l-.786.687zm-.66-1H8.33l5.35-4.678z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M19 17.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0m-1.577.577a.577.577 0 0 0 0-1.154h-1.346v-1.346a.577.577 0 1 0-1.154 0v1.346h-1.346a.577.577 0 1 0 0 1.154h1.346v1.346a.577.577 0 1 0 1.154 0v-1.346z" clip-rule="evenodd"/></symbol>
18
+ <symbol id="tui-system-building" viewBox="0 0 24 24"><g><path d="M9 11.75H7v-1.5h2zM12 11.75h-2v-1.5h2zM9 8.75H7v-1.5h2zM12 8.75h-2v-1.5h2zM17.5 16.75H16v-1.5h1.5zM17.5 13.75H16v-1.5h1.5z"/><path fill-rule="evenodd" d="M13.204 4.01A2 2 0 0 1 15 6v3h3a2 2 0 0 1 2 2v7l-.01.204a2 2 0 0 1-1.786 1.785L18 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h7zM6 5.5a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h1V15a1 1 0 0 1 .897-.995L8 14h3l.102.005A1 1 0 0 1 12 15v3.5h1.5V6a.5.5 0 0 0-.5-.5zm2.5 13h2v-3h-2zm6.5 0h3a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5h-3z" clip-rule="evenodd"/></g></symbol>
19
+ <symbol id="tui-system-chart" viewBox="0 0 24 24"><g><path d="M5.75 20h-1.5v-5h1.5zM9.25 20h-1.5v-9h1.5zM12.75 20h-1.5v-6h1.5zM16.25 20h-1.5v-8h1.5zM19.75 20h-1.5V9h1.5zM20.443 4.604l-8.018 5.881L8.438 6.5 4.461 9.592l-.922-1.184 4.5-3.5.524-.406 4.013 4.014 6.98-5.12z"/></g></symbol>
20
+ <symbol id="tui-system-check-circle-fill" viewBox="0 0 24 24"><path d="M12 4a8 8 0 1 1 0 16 8 8 0 0 1 0-16m-1.065 9.775-2.262-2.271-.976.97 3.234 3.248 5.745-5.72-.972-.976z"/></symbol>
21
+ <symbol id="tui-system-check-circle-outline" viewBox="0 0 24 24"><path d="m16.676 10.002-5.745 5.72-3.234-3.247.976-.971 2.262 2.271 4.77-4.749z"/><path fill-rule="evenodd" d="M12 4a8 8 0 1 1 0 16 8 8 0 0 1 0-16m0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13" clip-rule="evenodd"/></symbol>
22
+ <symbol id="tui-system-check-small" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m17.93 7.978-7.2 9.681-4.515-3.358.895-1.204 3.312 2.463 6.303-8.477z" clip-rule="evenodd"/></symbol>
23
+ <symbol id="tui-system-check" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M10.687 16.567 18.14 3.99l1.72 1.02-8.547 14.423-7.382-5.111 1.138-1.644z" clip-rule="evenodd"/></symbol>
24
+ <symbol id="tui-system-checklist" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20 7.75h-8.89v-1.5H20zm0 5h-8.89v-1.5H20zM6 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2m0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4m0 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2m0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4" clip-rule="evenodd"/><path fill-rule="evenodd" d="M6 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2m0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4" clip-rule="evenodd"/><path d="M20 17.75h-8.89v-1.5H20z"/><path fill-rule="evenodd" d="M8.85 4.821 5.872 8.83 3.554 7.1l.896-1.202 1.115.831 2.083-2.802z" clip-rule="evenodd"/></symbol>
25
+ <symbol id="tui-system-chevron-down-small" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m15.99 10.889-3.988 3.418-3.988-3.418.976-1.139 3.012 2.582 3.012-2.582z" clip-rule="evenodd"/></symbol>
26
+ <symbol id="tui-system-chevron-down" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M18.005 10.555 12 16.013l-6.004-5.458 1.009-1.11L12 13.986l4.996-4.541z" clip-rule="evenodd"/></symbol>
27
+ <symbol id="tui-system-chevron-left-double" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M10.313 17.002 5.765 12l4.548-5.001.924.84L7.455 12l3.781 4.162Zm7 0L12.765 12l4.548-5.001.924.84L14.455 12l3.781 4.162Z" clip-rule="evenodd"/></symbol>
28
+ <symbol id="tui-system-chevron-left-small" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m13.142 16.017-3.419-3.988 3.419-3.988 1.138.976-2.581 3.012 2.581 3.012z" clip-rule="evenodd"/></symbol>
29
+ <symbol id="tui-system-chevron-left" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M13.445 18.005 7.986 12l5.459-6.004 1.11 1.009L10.014 12l4.54 4.996z" clip-rule="evenodd"/></symbol>
30
+ <symbol id="tui-system-chevron-right-double" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M6.687 17.002 11.235 12 6.687 6.999l-.924.84L9.545 12l-3.781 4.162Zm7 0L18.235 12l-4.548-5.001-.924.84L16.545 12l-3.781 4.162Z" clip-rule="evenodd"/></symbol>
31
+ <symbol id="tui-system-chevron-right-small" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m10.862 8.04 3.418 3.989-3.418 3.988-1.139-.976 2.582-3.012-2.582-3.012z" clip-rule="evenodd"/></symbol>
32
+ <symbol id="tui-system-chevron-right" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M10.555 5.996 16.013 12l-5.458 6.005-1.11-1.01L13.986 12 9.445 7.005z" clip-rule="evenodd"/></symbol>
33
+ <symbol id="tui-system-chevron-up-small" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m8.014 13.168 3.988-3.418 3.988 3.418-.976 1.14-3.012-2.582-3.012 2.581z" clip-rule="evenodd"/></symbol>
34
+ <symbol id="tui-system-chevron-up" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M5.996 13.445 12 7.986l6.005 5.459-1.01 1.11L12 10.014l-4.995 4.54z" clip-rule="evenodd"/></symbol>
35
+ <symbol id="tui-system-circle-fill" viewBox="0 0 24 24"><path d="M12 4a8 8 0 1 1 0 16 8 8 0 0 1 0-16"/></symbol>
36
+ <symbol id="tui-system-circle-outline" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 4a8 8 0 1 1 0 16 8 8 0 0 1 0-16m0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13" clip-rule="evenodd"/></symbol>
37
+ <symbol id="tui-system-circle-small-fill" viewBox="0 0 24 24"><path d="M12 16a4 4 0 1 0 0-8 4 4 0 0 0 0 8"/></symbol>
38
+ <symbol id="tui-system-circle-small-outline" viewBox="0 0 24 24"><path d="M14.5 12a2.5 2.5 0 1 0-2.5 2.5V16a4 4 0 1 1 0-8 4 4 0 0 1 0 8v-1.5a2.5 2.5 0 0 0 2.5-2.5"/></symbol>
39
+ <symbol id="tui-system-close-circle-fill" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0m-4.995 4.066L12 13.06l-3.005 3.005-1.06-1.06L10.94 12 7.934 8.995l1.06-1.06L12 10.94l3.005-3.006 1.06 1.061L13.062 12l3.005 3.005z" clip-rule="evenodd"/></symbol>
40
+ <symbol id="tui-system-close-circle-outline" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 18.5a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13m8-6.5a8 8 0 1 1-16 0 8 8 0 0 1 16 0" clip-rule="evenodd"/><path d="m12 13.06 3.005 3.006 1.06-1.06L13.062 12l3.005-3.005-1.06-1.06L12 10.94 8.995 7.934l-1.061 1.06L10.939 12l-3.005 3.005 1.06 1.061z"/></symbol>
41
+ <symbol id="tui-system-close-small" viewBox="0 0 24 24"><path d="m12 13.06 3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.94 12l-3.712 3.712 1.06 1.061z"/></symbol>
42
+ <symbol id="tui-system-close" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m12 12.868-6.462 6.655-1.076-1.046 6.493-6.685-6.089-6.27 1.077-1.045L12 10.715l6.057-6.238 1.076 1.045-6.088 6.27 6.493 6.685-1.076 1.046z" clip-rule="evenodd"/></symbol>
43
+ <symbol id="tui-system-cloud-check" viewBox="0 0 24 24"><path d="M12.5 5.7c1.297 0 2.456.44 3.31 1.173l-.877 1.185A3.53 3.53 0 0 0 12.6 7.2c-1.5 0-2.8.9-3.2 2.2l-.3 1.1H7.8c-1.2 0-2.2 1.2-2.2 2.4s1 2.3 2.2 2.3h9c.9 0 1.7-.8 1.8-1.8 0-.884-.58-1.672-1.359-1.794l.903-1.216c1.078.535 1.837 1.625 1.756 2.91 0 1.8-1.4 3.3-3.2 3.3h-9c-2 0-3.7-1.7-3.7-3.8S5.7 9 7.7 9h.2c.5-1.9 2.4-3.3 4.6-3.3"/><path d="m19.607 6.447-5.814 7.82-3.714-2.761.896-1.203 2.508 1.865 4.92-6.615z"/></symbol>
44
+ <symbol id="tui-system-cloud" viewBox="0 0 24 24"><path d="M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8s1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2m-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8"/></symbol>
45
+ <symbol id="tui-system-cog" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M10.29 4.836A1 1 0 0 1 11.275 4h1.306a1 1 0 0 1 .986.836l.244 1.466c.788.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 0 1 1.217.437l.653 1.13a1 1 0 0 1-.23 1.273l-1.148.944a6 6 0 0 1 0 2.435l1.148.946a1 1 0 0 1 .23 1.272l-.652 1.13a1 1 0 0 1-1.217.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 0 1-.986.836h-1.306a1 1 0 0 1-.987-.836l-.244-1.466a6 6 0 0 1-2.108-1.218l-1.394.522a1 1 0 0 1-1.217-.436l-.652-1.131a1 1 0 0 1 .23-1.272l1.148-.946a6 6 0 0 1 0-2.435l-1.147-.944a1 1 0 0 1-.23-1.272l.652-1.131a1 1 0 0 1 1.217-.437l1.393.522a6 6 0 0 1 2.108-1.218zM14.928 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0" clip-rule="evenodd"/></symbol>
46
+ <symbol id="tui-system-copy" viewBox="0 0 24 24"><path d="M17 10.25h-7v1.5h7zm-7 2.5h7v1.5h-7zm7 2.5h-7v1.5h7z"/><path fill-rule="evenodd" d="M17 6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h1v1a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-1zm1 2.5a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H9a.5.5 0 0 1-.5-.5V9a.5.5 0 0 1 .5-.5zm-12 7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 .5.5v1H9a2 2 0 0 0-2 2v6.5z" clip-rule="evenodd"/></symbol>
47
+ <symbol id="tui-system-credit-card" viewBox="0 0 24 24"><g><path d="M8.5 13a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3"/><path fill-rule="evenodd" d="M18 5a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zM5.5 17a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5v-6h-13zM6 6.5a.5.5 0 0 0-.5.5v1h13V7a.5.5 0 0 0-.5-.5z" clip-rule="evenodd"/></g></symbol>
48
+ <symbol id="tui-system-custom-function" viewBox="0 0 24 24"><path d="M20.41 4.641a1.5 1.5 0 0 0-2.12 0l-1.48 1.48 2.12 2.122 1.48-1.48a1.5 1.5 0 0 0 0-2.122M18.223 8.95l-2.12-2.121-3.683 3.682-1.623-1.623a3.5 3.5 0 0 0-4.473-4.474l1.53 1.53a1.5 1.5 0 1 1-2.122 2.121l-1.53-1.53a3.5 3.5 0 0 0 4.474 4.474l1.623 1.623-4.112 4.111-1.064 3.186 3.186-1.064 4.111-4.112 4.735 4.735a1.5 1.5 0 1 0 2.12-2.122l-4.734-4.734z"/></symbol>
49
+ <symbol id="tui-system-download" viewBox="0 0 24 24"><path d="M5.5 9a.5.5 0 0 1 .5-.5h3V7H6a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.75A1.75 1.75 0 0 0 18.25 7H15v1.5h3.25a.25.25 0 0 1 .25.25V18a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5z"/><path d="M12 17.004 7.002 12.56l.996-1.122 3.252 2.89V4h1.5v10.33l3.252-2.89.996 1.12z"/></symbol>
50
+ <symbol id="tui-system-drag" viewBox="0 0 24 24"><path d="M10 5H8v2h2zm0 6H8v2h2zm-2 6h2v2H8zm8-12h-2v2h2zm-2 6h2v2h-2zm2 6h-2v2h2z"/></symbol>
51
+ <symbol id="tui-system-duplicate" viewBox="0 0 24 24"><path d="M14.25 12.75H17v1.5h-2.75V17h-1.5v-2.75H10v-1.5h2.75V10h1.5z"/><path fill-rule="evenodd" d="M17 7h1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2v-1H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2zm-2-1.5H6a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h1V9a2 2 0 0 1 2-2h6.5V6a.5.5 0 0 0-.5-.5m-6 3h9a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H9a.5.5 0 0 1-.5-.5V9a.5.5 0 0 1 .5-.5" clip-rule="evenodd"/></symbol>
52
+ <symbol id="tui-system-edit-small" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M18.168 9.14 14.924 6l-7.621 7.726L6 18.136l4.527-1.251z" clip-rule="evenodd"/></symbol>
53
+ <symbol id="tui-system-edit" viewBox="0 0 24 24"><path d="M19.864 4.304a2 2 0 0 0-2.733.732l-.635 1.1 3.464 2 .636-1.1a2 2 0 0 0-.732-2.732m-.746 5.292-3.464-2-4.903 8.49.062 3.893 3.402-1.892zM4 5.25h9v1.5H4zm7 4H4v1.5h7zm-7 4h5v1.5H4zm5 4H4v1.5h5z"/></symbol>
54
+ <symbol id="tui-system-ellipsis-h" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M5 11h2v2H5zm6 0h2v2h-2zm6 0h2v2h-2z" clip-rule="evenodd"/></symbol>
55
+ <symbol id="tui-system-ellipsis-v" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M11 19v-2h2v2zm0-6v-2h2v2zm0-6V5h2v2z" clip-rule="evenodd"/></symbol>
56
+ <symbol id="tui-system-envelope" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zm2-.5h14a.5.5 0 0 1 .5.5v.938L12 13.563 4.5 7.937V7a.5.5 0 0 1 .5-.5m-.5 3.312V17a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5V9.813L12 15.437z" clip-rule="evenodd"/></symbol>
57
+ <symbol id="tui-system-external-link" viewBox="0 0 24 24"><path d="M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5z"/><path d="M6.5 5.5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5z"/></symbol>
58
+ <symbol id="tui-system-folder" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9.37 4.01a2 2 0 0 1 1.216.576l.828.828A2 2 0 0 0 12.828 6H18a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h3.172zM5.5 10.75V18a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5v-7.25zM6 5.5a.5.5 0 0 0-.5.5v3.25h13V8a.5.5 0 0 0-.5-.5h-5.172a3.5 3.5 0 0 1-2.474-1.025l-.829-.829a.5.5 0 0 0-.353-.146z" clip-rule="evenodd"/></symbol>
59
+ <symbol id="tui-system-funnel" viewBox="0 0 24 24"><path d="M10 17.5h4V16h-4zM6 6v1.5h12V6zm2 6.5h8V11H8z"/></symbol>
60
+ <symbol id="tui-system-globe" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3.25 12a8.75 8.75 0 1 1 17.5 0 8.75 8.75 0 0 1-17.5 0m2.267-3.25A7.27 7.27 0 0 1 10 5.03a8 8 0 0 0-1.19 1.875 11 11 0 0 0-.657 1.845zm-.554 1.5a7.3 7.3 0 0 0 0 3.5h2.9a13.5 13.5 0 0 1 0-3.5zm4.415 0q-.127.841-.128 1.75.001.909.128 1.75h5.244q.127-.841.128-1.75-.001-.909-.128-1.75zm6.759 0a13.5 13.5 0 0 1 0 3.5h2.9a7.3 7.3 0 0 0 0-3.5zm2.346-1.5h-2.636a11 11 0 0 0-.656-1.845A8 8 0 0 0 14 5.03a7.27 7.27 0 0 1 4.483 3.721m-4.194 0H9.711q.195-.647.458-1.211c.495-1.063 1.139-1.847 1.831-2.306.692.46 1.335 1.243 1.83 2.306q.264.563.46 1.211m-8.772 6.5h2.636a10.7 10.7 0 0 0 .7 1.938A8 8 0 0 0 10 18.97a7.27 7.27 0 0 1-4.483-3.721m8.772 0H9.711q.209.692.495 1.29c.491 1.024 1.12 1.78 1.794 2.227.692-.46 1.336-1.243 1.83-2.306a9 9 0 0 0 .46-1.211m.902 1.845c.265-.57.486-1.188.656-1.845h2.636A7.27 7.27 0 0 1 14 18.97a8.2 8.2 0 0 0 1.19-1.875" clip-rule="evenodd"/></symbol>
61
+ <symbol id="tui-system-handle-alt" viewBox="0 0 24 24"><path d="M5 16v-2h2v2zm6 0v-2h2v2zm6 0v-2h2v2zM5 10V8h2v2zm6 0V8h2v2zm6 0V8h2v2z"/></symbol>
62
+ <symbol id="tui-system-handle" viewBox="0 0 24 24"><path d="M7 16.5h10V15H7zm0-9V9h10V7.5z"/></symbol>
63
+ <symbol id="tui-system-help-circle-fill" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 4a8 8 0 1 1 0 16 8 8 0 0 1 0-16m-.75 11v1.5h1.5V15zM12 7.25a3 3 0 0 0-3 3h1.5a1.5 1.5 0 1 1 1.667 1.491c-.465.052-.917.438-.917 1.009V14h1.5v-.849A2.997 2.997 0 0 0 12 7.25" clip-rule="evenodd"/></symbol>
64
+ <symbol id="tui-system-help" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 4.75a7.25 7.25 0 1 0 0 14.5 7.25 7.25 0 0 0 0-14.5M3.25 12a8.75 8.75 0 1 1 17.5 0 8.75 8.75 0 0 1-17.5 0M9 10.25a3 3 0 1 1 3.75 2.905V14h-1.5v-1.25c0-.57.452-.958.917-1.01a1.5 1.5 0 1 0-1.667-1.49zm2.25 6.25V15h1.5v1.5z" clip-rule="evenodd"/></symbol>
65
+ <symbol id="tui-system-hide" viewBox="0 0 24 24"><path d="M4.67 10.664s-2.09 1.11-2.917 1.582l.494.87 1.608-.914.002.002c.343.502.86 1.17 1.563 1.84.347.33.742.663 1.185.976L5.57 16.744l.858.515 1.02-1.701a9.1 9.1 0 0 0 4.05 1.18V19h1v-2.263a9.1 9.1 0 0 0 4.052-1.18l1.02 1.7.858-.514-1.034-1.723a10.6 10.6 0 0 0 1.184-.977 11.6 11.6 0 0 0 1.563-1.839l.002-.003 1.609.914.494-.87c-1.75-.994-2.918-1.58-2.918-1.58l-.003.005-.017.031-.077.138a8 8 0 0 1-.328.52 10 10 0 0 1-1.36 1.598c-1.218 1.16-3.042 2.293-5.545 2.293-2.502 0-4.326-1.132-5.545-2.293a10 10 0 0 1-1.359-1.599 8 8 0 0 1-.422-.689z"/></symbol>
66
+ <symbol id="tui-system-highlight" viewBox="0 0 24 24"><path d="M14 18.5V20H6v-1.5zm.567-4.626a1.5 1.5 0 0 1-.346.237l-2.825 1.397L10.5 17h-3l1.731-2.742-.203-3.145a1.5 1.5 0 0 1 .033-.418zm3.979-9.25a1.25 1.25 0 0 1 .457 1.708l-3.625 6.279L9.75 9.36l3.625-6.279a1.25 1.25 0 0 1 1.707-.457z"/></symbol>
67
+ <symbol id="tui-system-home-fill" viewBox="0 0 24 24"><g><path d="M10.683 4.153c.754-.66 1.88-.66 2.634 0l6 5.25A2 2 0 0 1 20 10.908V18a2 2 0 0 1-2 2h-3v-6a1 1 0 0 0-.898-.995L14 13h-4a1 1 0 0 0-1 1v6H6a2 2 0 0 1-2-2v-7.092a2 2 0 0 1 .683-1.505z"/><path d="M13.5 14.5V20h-3v-5.5z"/></g></symbol>
68
+ <symbol id="tui-system-home-outline" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M10.683 4.153c.754-.66 1.88-.66 2.634 0l6 5.25A2 2 0 0 1 20 10.908V18a2 2 0 0 1-2 2H6a2 2 0 0 1-1.99-1.796L4 18v-7.092a2 2 0 0 1 .683-1.505zm1.646 1.129a.5.5 0 0 0-.658 0l-6 5.25a.5.5 0 0 0-.171.376V18a.5.5 0 0 0 .5.5h3V14a1 1 0 0 1 1-1h4l.102.005A1 1 0 0 1 15 14v4.5h3a.5.5 0 0 0 .5-.5v-7.092a.5.5 0 0 0-.17-.377zM10.5 18.5h3v-4h-3z" clip-rule="evenodd"/></symbol>
69
+ <symbol id="tui-system-image" viewBox="0 0 24 24"><g fill-rule="evenodd" clip-rule="evenodd"><path d="M14.5 7.25a2.25 2.25 0 1 1 0 4.5 2.25 2.25 0 0 1 0-4.5m0 1.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5"/><path d="M18 4c1.105 0 2 1.024 2 2.286v11.428C20 18.976 19.105 20 18 20H6q-.096 0-.19-.012-.023-.002-.044-.006a2 2 0 0 1-.144-.025l-.048-.01a2 2 0 0 1-.125-.037q-.03-.009-.06-.02a2 2 0 0 1-.155-.065l-.063-.033a2 2 0 0 1-.316-.205l-.069-.06a2 2 0 0 1-.119-.112l-.06-.062-.08-.097-.027-.033-.08-.11-.02-.032c-.25-.382-.4-.854-.4-1.367V6.286C4 5.024 4.895 4 6 4zm-8.613 7.842a.5.5 0 0 0-.774 0L5.5 15.646v2.068c0 .278.1.497.215.629.113.129.217.157.285.157h8.834zM6 5.5c-.068 0-.172.028-.285.157a.96.96 0 0 0-.215.63v6.99l1.952-2.385a2 2 0 0 1 3.096 0l6.225 7.608H18c.068 0 .172-.028.285-.157a.96.96 0 0 0 .215-.63V6.287c0-.278-.1-.496-.215-.629-.113-.129-.217-.157-.285-.157z"/></g></symbol>
70
+ <symbol id="tui-system-inbox" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-.5h12a.5.5 0 0 1 .5.5v7H14a2 2 0 1 1-4 0H5.5V6a.5.5 0 0 1 .5-.5m-.5 9V18a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5v-3.5h-3.337a3.5 3.5 0 0 1-6.326 0z" clip-rule="evenodd"/></symbol>
71
+ <symbol id="tui-system-info" viewBox="0 0 24 24"><path d="M13 11v6h-2v-6zm0-2V7h-2v2z"/><path fill-rule="evenodd" d="M3.25 12a8.75 8.75 0 1 1 17.5 0 8.75 8.75 0 0 1-17.5 0M12 4.75a7.25 7.25 0 1 0 0 14.5 7.25 7.25 0 0 0 0-14.5" clip-rule="evenodd"/></symbol>
72
+ <symbol id="tui-system-key" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9 13.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M9 16a4 4 0 0 0 3.8-2.75H15V16h2.5v-2.75H19v-2.5h-6.2A4.002 4.002 0 0 0 5 12a4 4 0 0 0 4 4" clip-rule="evenodd"/></symbol>
73
+ <symbol id="tui-system-link" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M10.083 17.639H8.444a5.194 5.194 0 1 1 0-10.389h1.64v1.5h-1.64a3.694 3.694 0 0 0 0 7.389h1.64zM13.917 7.25h1.639a5.194 5.194 0 0 1 0 10.39h-1.64v-1.5h1.64a3.694 3.694 0 0 0 0-7.39h-1.64zm-4.584 6.084h5.334v-1.5H9.333z" clip-rule="evenodd"/></symbol>
74
+ <symbol id="tui-system-lock-fill" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M18 9a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h1.25V7a4.75 4.75 0 0 1 9.5 0v2zm-2.75 0V7a3.25 3.25 0 0 0-6.5 0v2zM12 13a1 1 0 0 0-1 1v1a1 1 0 1 0 2 0v-1a1 1 0 0 0-1-1" clip-rule="evenodd"/></symbol>
75
+ <symbol id="tui-system-lock-outline" viewBox="0 0 24 24"><path d="M12 13a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1"/><path fill-rule="evenodd" d="M18 9a2 2 0 0 1 2 2v7l-.01.204A2 2 0 0 1 18 20H6a2 2 0 0 1-1.99-1.796L4 18v-7a2 2 0 0 1 2-2h1.25V7a4.75 4.75 0 0 1 9.5 0v2zm-2.75 0V7a3.25 3.25 0 0 0-6.5 0v2zM6 10.5a.5.5 0 0 0-.5.5v7a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5z" clip-rule="evenodd"/></symbol>
76
+ <symbol id="tui-system-lock-small" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 6.25A2.75 2.75 0 0 0 9.25 9v2H9a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-.25V9A2.75 2.75 0 0 0 12 6.25M13.25 11V9a1.25 1.25 0 1 0-2.5 0v2z" clip-rule="evenodd"/></symbol>
77
+ <symbol id="tui-system-log-out" viewBox="0 0 24 24"><g><path d="M10.5 4a2 2 0 0 1 2 2v3H11V6a.5.5 0 0 0-.5-.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h4.75a.25.25 0 0 0 .25-.25V15h1.5v3.25A1.75 1.75 0 0 1 10.75 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z"/><path d="m21.004 12-4.443 4.998-1.121-.996 2.89-3.252H9v-1.5h9.33l-2.89-3.252 1.12-.996z"/></g></symbol>
78
+ <symbol id="tui-system-loop" viewBox="0 0 24 24"><path d="m6 6.477 4.007-4.007 1.06 1.06-2.22 2.22h5.19a2.75 2.75 0 0 1 2.75 2.75v3.667h-1.5V8.5c0-.69-.56-1.25-1.25-1.25h-5.3l2.354 2.578-1.108 1.011zM17.074 17.69l-4.007 4.007-1.06-1.06 2.22-2.22h-5.19a2.75 2.75 0 0 1-2.75-2.75V12h1.5v3.667c0 .69.56 1.25 1.25 1.25h5.3l-2.354-2.578 1.108-1.011z"/></symbol>
79
+ <symbol id="tui-system-minus-circle-fill" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0m-11.998.75h7.996v-1.5H8.002z" clip-rule="evenodd"/></symbol>
80
+ <symbol id="tui-system-minus-circle-outline" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 18.5a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13m8-6.5a8 8 0 1 1-16 0 8 8 0 0 1 16 0" clip-rule="evenodd"/><path fill-rule="evenodd" d="M15.998 12.75H8.002v-1.5h7.996z" clip-rule="evenodd"/></symbol>
81
+ <symbol id="tui-system-minus" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M17 13H7v-1.5h10z" clip-rule="evenodd"/></symbol>
82
+ <symbol id="tui-system-moon-fill" viewBox="0 0 24 24"><path d="M10.75 8a6.25 6.25 0 0 0 8.03 5.991.75.75 0 0 1 .911.99 8.25 8.25 0 1 1-8.91-11.141.75.75 0 0 1 .765 1.11A6.2 6.2 0 0 0 10.75 8"/></symbol>
83
+ <symbol id="tui-system-moon-outline" viewBox="0 0 24 24"><path d="M9.25 8c0-.805.123-1.58.352-2.31A6.752 6.752 0 0 0 12 18.75a6.74 6.74 0 0 0 5.627-3.027A7.75 7.75 0 0 1 9.25 8m1.5 0a6.25 6.25 0 0 0 8.03 5.991.75.75 0 0 1 .911.99 8.25 8.25 0 1 1-8.91-11.141.75.75 0 0 1 .765 1.11A6.2 6.2 0 0 0 10.75 8"/></symbol>
84
+ <symbol id="tui-system-nest" viewBox="0 0 24 24"><path d="m17.787 14.69-4.007 4.007-1.06-1.06 2.22-2.22H9.75A2.75 2.75 0 0 1 7 12.667V5h1.5v7.667c0 .69.56 1.25 1.25 1.25h5.3l-2.354-2.578 1.108-1.011z"/></symbol>
85
+ <symbol id="tui-system-paste" viewBox="0 0 24 24"><path d="M17 10.75h-5v1.5h5zm-5 2.5h5v1.5h-5zm5 2.5h-5v1.5h5z"/><path fill-rule="evenodd" d="M6 4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3v1a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V6a2 2 0 0 0-2-2zm3 6v5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h1v1.25h7V5.5h1a.5.5 0 0 1 .5.5v2H11a2 2 0 0 0-2 2m9-.5h-7a.5.5 0 0 0-.5.5v8a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-8a.5.5 0 0 0-.5-.5" clip-rule="evenodd"/></symbol>
86
+ <symbol id="tui-system-pin-small" viewBox="0 0 24 24"><path d="M10.97 10.159a3.38 3.38 0 0 0-2.857.955l1.724 1.723-2.836 2.913L7 17h1.25l2.913-2.837 1.723 1.723a3.4 3.4 0 0 0 .606-.825c.33-.63.446-1.343.35-2.032L17 10.695 13.305 7z"/></symbol>
87
+ <symbol id="tui-system-pin" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M7.138 8.765a6 6 0 0 1 3.614-.62l4.15-5.617 6.57 6.57-5.617 4.15a6 6 0 0 1-.771 3.886q-.378.642-.927 1.195l-3.713-3.713-5.692 5.693h-1.06v-1.061l5.692-5.692L5.67 9.843a6 6 0 0 1 1.467-1.078m7.935-3.944 4.106 4.105-4.933 3.647.124.884c.122.87-.01 1.766-.394 2.57l-6.003-6.003a4.5 4.5 0 0 1 2.57-.394l.884.124z" clip-rule="evenodd"/></symbol>
88
+ <symbol id="tui-system-plus-circle-fill" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 4a8 8 0 1 1 0 16 8 8 0 0 1 0-16m-.75 4v3.25H8.002v1.5h3.248v3.245h1.5V12.75h3.248v-1.5H12.75V8z" clip-rule="evenodd"/></symbol>
89
+ <symbol id="tui-system-plus-circle-outline" viewBox="0 0 24 24"><path d="M12.75 11.25h3.248v1.5H12.75v3.245l-1.5.001V12.75H8.002v-1.5h3.248V8.001L12.75 8z"/><path fill-rule="evenodd" d="M12 4a8 8 0 1 1 0 16 8 8 0 0 1 0-16m0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13" clip-rule="evenodd"/></symbol>
90
+ <symbol id="tui-system-plus-small" viewBox="0 0 24 24"><path d="M11.25 12.75V16h1.5v-3.25H16v-1.5h-3.25V8h-1.5v3.25H8v1.5z"/></symbol>
91
+ <symbol id="tui-system-plus" viewBox="0 0 24 24"><path d="M11.25 12.75V18h1.5v-5.25H18v-1.5h-5.25V6h-1.5v5.25H6v1.5z"/></symbol>
92
+ <symbol id="tui-system-question-mark" viewBox="0 0 24 24"><path d="M12 17a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m0-13.306a5 5 0 0 1 1 9.9V15h-2v-2.056c0-.706.564-1.217 1.188-1.256A3 3 0 1 0 9 8.695H7a5 5 0 0 1 5-5"/></symbol>
93
+ <symbol id="tui-system-recurring" viewBox="0 0 24 24"><path d="M11.592 5.763a6.25 6.25 0 0 1 6.135 3.733l-2.572-.542-.31 1.468 5.162 1.088 1.378-5.322-1.453-.376-.81 3.131a7.75 7.75 0 1 0-.41 6.932l-1.299-.75a6.25 6.25 0 1 1-5.821-9.362"/><path d="M12 7.25a.75.75 0 0 1 .75.75v3.598l2.666 1.778a.75.75 0 0 1-.832 1.248l-2.986-1.991a.8.8 0 0 1-.232-.232.75.75 0 0 1-.116-.401V8a.75.75 0 0 1 .75-.75"/></symbol>
94
+ <symbol id="tui-system-redo" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m17.33 10.75-2.89-3.252 1.121-.996 4.47 5.028-4.5 4.5-1.06-1.06 2.719-2.72H8.003c-.602 0-.994.202-1.28.498-.309.319-.538.792-.696 1.383-.286 1.072-.28 2.296-.275 3.108v.261h-1.5v-.246c-.006-.792-.016-2.226.326-3.51.192-.722.513-1.467 1.067-2.04.576-.594 1.36-.954 2.358-.954z" clip-rule="evenodd"/></symbol>
95
+ <symbol id="tui-system-reverse" viewBox="0 0 24 24"><path d="m14.474 4.53 2.72 2.72H6.003v1.5h11.191l-2.72 2.72 1.061 1.06L20.065 8l-4.53-4.53zM9.53 19.47l-2.72-2.72h11.192v-1.5H6.811l2.72-2.72-1.061-1.06L3.94 16l4.53 4.53z"/></symbol>
96
+ <symbol id="tui-system-search" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M19 11a6 6 0 0 1-9.68 4.74l-3.79 3.79-1.06-1.06 3.79-3.79A6 6 0 1 1 19 11m-1.5 0a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0" clip-rule="evenodd"/></symbol>
97
+ <symbol id="tui-system-send" viewBox="0 0 24 24"><path d="M6.332 5.748c-1.03-.426-2.06.607-1.632 1.636l1.702 3.93 7.481.575c.123.01.123.19 0 .2l-7.483.575-1.7 3.909c-.429 1.029.602 2.062 1.632 1.636l12.265-5.076c1.03-.426 1.03-1.884 0-2.31z"/></symbol>
98
+ <symbol id="tui-system-settings" viewBox="0 0 24 24"><path d="M7.114 8.5H4V7h3.114a2.501 2.501 0 0 1 4.772 0H20v1.5h-8.114a2.501 2.501 0 0 1-4.772 0M4 17h8.115a2.501 2.501 0 0 0 4.77 0H20v-1.5h-3.114a2.501 2.501 0 0 0-4.771 0H4z"/></symbol>
99
+ <symbol id="tui-system-show" viewBox="0 0 24 24"><path d="m4 13 .67.336.003-.005.017-.032.077-.138c.07-.122.18-.302.328-.52.298-.435.75-1.017 1.36-1.598C7.672 9.883 9.496 8.75 12 8.75c2.502 0 4.326 1.132 5.545 2.293.61.581 1.061 1.163 1.359 1.599a8 8 0 0 1 .422.689l.003.005L20 13l.671-.336-.001-.003-.003-.005-.008-.015-.027-.052-.1-.18a10 10 0 0 0-.389-.613c-.343-.502-.86-1.17-1.563-1.84C17.173 8.619 14.997 7.25 12 7.25S6.827 8.618 5.42 9.957a11.6 11.6 0 0 0-1.562 1.839 10 10 0 0 0-.516.845l-.008.015-.003.005v.002s-.001.002.67.337m8 3a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7"/></symbol>
100
+ <symbol id="tui-system-sidebar-collapse" viewBox="0 0 24 24"><path d="M4 18.75h11v-1.5H4zM12.94 12l5.53 5.53 1.06-1.06L15.06 12l4.47-4.47-1.06-1.06zM4 14.75h7v-1.5H4zM4 10.75h7v-1.5H4zM4 6.75h11v-1.5H4z"/></symbol>
101
+ <symbol id="tui-system-sidebar-expand" viewBox="0 0 24 24"><path d="M20 18.75H9v-1.5h11zM11.06 12l-5.53 5.53-1.06-1.06L8.94 12 4.47 7.53l1.06-1.06zM20 14.75h-7v-1.5h7zM20 10.75h-7v-1.5h7zM20 6.75H9v-1.5h11z"/></symbol>
102
+ <symbol id="tui-system-star-fill" viewBox="0 0 24 24"><path d="M11.776 4.454a.25.25 0 0 1 .448 0l2.07 4.192a.25.25 0 0 0 .187.137l4.626.672a.25.25 0 0 1 .139.427l-3.347 3.262a.25.25 0 0 0-.072.222l.79 4.607a.25.25 0 0 1-.363.264l-4.138-2.176a.25.25 0 0 0-.232 0l-4.138 2.175a.25.25 0 0 1-.362-.263l.79-4.607a.25.25 0 0 0-.072-.222L4.754 9.882a.25.25 0 0 1 .139-.427l4.626-.672a.25.25 0 0 0 .188-.137z"/></symbol>
103
+ <symbol id="tui-system-star-half" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9.519 8.783a.25.25 0 0 0 .188-.137l2.069-4.192a.25.25 0 0 1 .448 0l2.07 4.192a.25.25 0 0 0 .187.137l4.626.672a.25.25 0 0 1 .139.427l-3.347 3.262a.25.25 0 0 0-.072.222l.79 4.607a.25.25 0 0 1-.363.264l-4.138-2.176a.25.25 0 0 0-.232 0l-4.138 2.175a.25.25 0 0 1-.362-.263l.79-4.607a.25.25 0 0 0-.072-.222L4.754 9.882a.25.25 0 0 1 .139-.427zM12 14.533c.28 0 .56.067.815.2l1.895.997-.362-2.11a1.75 1.75 0 0 1 .503-1.55l1.534-1.495-2.12-.308a1.75 1.75 0 0 1-1.317-.957L12 7.39z" clip-rule="evenodd"/></symbol>
104
+ <symbol id="tui-system-star-outline" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M11.186 14.734a1.75 1.75 0 0 1 1.629 0l1.895.996-.362-2.11a1.75 1.75 0 0 1 .503-1.55l1.534-1.495-2.12-.308.216-1.484 4.626.672a.25.25 0 0 1 .139.427l-3.347 3.262a.25.25 0 0 0-.072.222l.79 4.607a.25.25 0 0 1-.363.264l-4.138-2.176a.25.25 0 0 0-.232 0l-4.138 2.175a.25.25 0 0 1-.362-.263l.79-4.607a.25.25 0 0 0-.072-.222L4.754 9.882a.25.25 0 0 1 .139-.427l4.626-.672.216 1.484-2.12.308L9.15 12.07c.412.402.6.982.503 1.55l-.362 2.11zM9.707 8.645a.25.25 0 0 1-.188.137l.216 1.484a1.75 1.75 0 0 0 1.317-.957L12 7.39l.948 1.92a1.75 1.75 0 0 0 1.318.957l.215-1.484a.25.25 0 0 1-.188-.137l-2.069-4.192a.25.25 0 0 0-.448 0z" clip-rule="evenodd"/></symbol>
105
+ <symbol id="tui-system-store" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20 9h-1v11H5V9H4V4h16zM6.5 18.5H9V14h6v4.5h2.5V9h-11zm4 0h3v-3h-3zm-5-11h3.25v-2H5.5zm4.75 0h3.5v-2h-3.5zm5 0h3.25v-2h-3.25z" clip-rule="evenodd"/></symbol>
106
+ <symbol id="tui-system-sun-fill" viewBox="0 0 24 24"><g><path d="M12 17.25a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 1 .75-.75M15.73 15.719a.75.75 0 0 1 1.061 0l1.414 1.414a.75.75 0 0 1-1.06 1.06L15.73 16.78a.75.75 0 0 1 0-1.06M7.238 15.709a.75.75 0 0 1 1.06 1.06l-1.413 1.415a.75.75 0 0 1-1.06-1.061zM12.193 8.255a3.73 3.73 0 0 1 2.582 1.224 3.8 3.8 0 0 1 .806 1.406 3.73 3.73 0 0 1 .093 1.87 3.73 3.73 0 0 1-.899 1.766 3.8 3.8 0 0 1-.988.777 3.73 3.73 0 0 1-2.17.432 3.7 3.7 0 0 1-.907-.207 3.751 3.751 0 0 1 1.483-7.268M6.005 11.245a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5zM20.005 11.245a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5zM5.831 5.82a.75.75 0 0 1 1.06 0l1.415 1.413a.75.75 0 0 1-1.06 1.061L5.83 6.88a.75.75 0 0 1 0-1.06M17.138 5.81a.75.75 0 0 1 1.06 1.06l-1.414 1.414a.75.75 0 0 1-1.06-1.06zM12 3.25a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0V4a.75.75 0 0 1 .75-.75"/></g></symbol>
107
+ <symbol id="tui-system-sun-outline" viewBox="0 0 24 24"><g><path d="M12 17.25a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 1 .75-.75M15.73 15.719a.75.75 0 0 1 1.06 0l1.415 1.414a.75.75 0 1 1-1.06 1.06L15.73 16.78a.75.75 0 0 1 0-1.06M7.238 15.709a.75.75 0 1 1 1.06 1.06l-1.413 1.415a.75.75 0 0 1-1.061-1.061z"/><path fill-rule="evenodd" d="M12 8.25a3.75 3.75 0 1 1 0 7.5 3.75 3.75 0 0 1 0-7.5m0 1.5a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5" clip-rule="evenodd"/><path d="M6.005 11.245a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5zM20.005 11.245a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5zM5.83 5.82a.75.75 0 0 1 1.061 0l1.415 1.413a.75.75 0 1 1-1.061 1.061L5.831 6.88a.75.75 0 0 1 0-1.06M17.138 5.81a.75.75 0 1 1 1.06 1.06l-1.414 1.414a.75.75 0 0 1-1.06-1.06zM12 3.25a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0V4a.75.75 0 0 1 .75-.75"/></g></symbol>
108
+ <symbol id="tui-system-tool" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m13.862 7.492 2.26-2.26a4 4 0 0 0-5.208 4.804l-5.328 5.328a2 2 0 1 0 2.828 2.828l5.328-5.328a4 4 0 0 0 4.804-5.208l-2.26 2.26-1.912-.512zm-7.216 9.64a.5.5 0 1 1 .708-.707.5.5 0 0 1-.708.707" clip-rule="evenodd"/></symbol>
109
+ <symbol id="tui-system-trash" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 3.714A2.286 2.286 0 0 0 9.714 6H4v1.5h1.385l1.772 10.962a2 2 0 0 0 1.974 1.68h5.738a2 2 0 0 0 1.974-1.68L18.615 7.5H20V6h-5.714A2.286 2.286 0 0 0 12 3.714M6.905 7.5h10.19l-1.733 10.723a.5.5 0 0 1-.493.42H9.13a.5.5 0 0 1-.493-.42z" clip-rule="evenodd"/></symbol>
110
+ <symbol id="tui-system-undo" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m6.67 10.75 2.89-3.252-1.121-.996-4.47 5.028 4.5 4.5 1.06-1.06-2.719-2.72h9.187c.602 0 .994.202 1.28.498.309.319.538.792.696 1.383.286 1.072.28 2.296.275 3.108v.261h1.5v-.246c.006-.792.016-2.226-.326-3.51-.192-.722-.513-1.467-1.067-2.04-.576-.594-1.36-.954-2.358-.954z" clip-rule="evenodd"/></symbol>
111
+ <symbol id="tui-system-unlink" viewBox="0 0 24 24"><path d="m14.835 7.25 1.62-3.543-.91-.416-3.905 8.543H9v1.5h1.954l-1.282 2.805H8.445a3.694 3.694 0 0 1 0-7.389h1.639v-1.5h-1.64a5.194 5.194 0 1 0 0 10.39h.542l-1.44 3.151.909.416 5.694-12.456h1.407a3.694 3.694 0 1 1 0 7.389h-1.64v1.5h1.64a5.194 5.194 0 1 0 0-10.39z"/></symbol>
112
+ <symbol id="tui-system-unlock-fill" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M18 9a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h8.25V7a4.75 4.75 0 1 1 9.5 0v2h-1.5V7a3.25 3.25 0 0 0-6.5 0v2zm-6 4a1 1 0 0 0-1 1v1a1 1 0 1 0 2 0v-1a1 1 0 0 0-1-1" clip-rule="evenodd"/></symbol>
113
+ <symbol id="tui-system-unlock-outline" viewBox="0 0 24 24"><path d="M12 13a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1"/><path fill-rule="evenodd" d="M18 9a2 2 0 0 1 2 2v7l-.01.204A2 2 0 0 1 18 20H6a2 2 0 0 1-1.99-1.796L4 18v-7a2 2 0 0 1 2-2h8.25V7a4.75 4.75 0 1 1 9.5 0v2h-1.5V7a3.25 3.25 0 0 0-6.5 0v2zM6 10.5a.5.5 0 0 0-.5.5v7a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5z" clip-rule="evenodd"/></symbol>
114
+ <symbol id="tui-system-upload" viewBox="0 0 24 24"><g><path d="M5.5 18a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5v-4.25H20V18a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4.25h1.5z"/><path d="m16.998 8.44-.996 1.12-3.252-2.89V17h-1.5V6.67L7.998 9.56l-.996-1.12L12 3.995z"/></g></symbol>
115
+ <symbol id="tui-system-user-circle-fill" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M7.05 18.286a5.001 5.001 0 0 1 9.9 0 8 8 0 1 0-9.899 0M15 10a3 3 0 1 1-6 0 3 3 0 0 1 6 0" clip-rule="evenodd"/></symbol>
116
+ <symbol id="tui-system-user-circle-outline" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M7.05 18.286a8 8 0 1 1 9.9-12.571 8 8 0 0 1-9.898 12.57m8.177-.643A6.47 6.47 0 0 1 12 18.5a6.47 6.47 0 0 1-3.227-.857 3.5 3.5 0 0 1 6.454 0m1.23-.912a5 5 0 0 0-8.914 0 6.5 6.5 0 1 1 8.914 0" clip-rule="evenodd"/><path fill-rule="evenodd" d="M12 11.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0 1.5a3 3 0 1 0 0-6 3 3 0 0 0 0 6" clip-rule="evenodd"/></symbol>
117
+ <symbol id="tui-system-users" viewBox="0 0 24 24"><g><path d="M8 15.25A4.75 4.75 0 0 1 12.75 20h-1.5a3.25 3.25 0 0 0-6.5 0h-1.5A4.75 4.75 0 0 1 8 15.25M16 12.25A4.75 4.75 0 0 1 20.75 17h-1.5a3.25 3.25 0 0 0-5.788-2.031l-1.17-.938A4.74 4.74 0 0 1 16 12.25"/><path fill-rule="evenodd" d="M8 7a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7m0 1.5a2 2 0 1 0 0 4 2 2 0 0 0 0-4M16 4a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7m0 1.5a2 2 0 1 0 0 4 2 2 0 0 0 0-4" clip-rule="evenodd"/></g></symbol>
118
+ <symbol id="tui-system-view-off" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M19.778 4.222 4.222 19.778l-1.06-1.06 2.942-2.944C4.035 14.067 3 12 3 12s3-6 9-6c1.204 0 2.286.243 3.248.63l3.47-3.469zM12 7.5c-2.462 0-4.353 1.224-5.69 2.56A12 12 0 0 0 4.742 12q.033.052.07.105c.334.502.835 1.17 1.5 1.835q.396.397.858.769l1.534-1.534a3.5 3.5 0 0 1 4.472-4.472l.896-.896A7.2 7.2 0 0 0 12 7.5" clip-rule="evenodd"/><path d="M17.897 8.224C19.965 9.932 21 12 21 12s-3 6-9 6a8.7 8.7 0 0 1-3.249-.63l1.176-1.177A7.1 7.1 0 0 0 12 16.5c2.462 0 4.353-1.224 5.69-2.56A12 12 0 0 0 19.258 12l-.07-.105a12 12 0 0 0-1.5-1.835 11 11 0 0 0-.859-.77z"/><path d="M15.297 10.823a3.5 3.5 0 0 1-4.474 4.474z"/></symbol>
119
+ <symbol id="tui-system-view" viewBox="0 0 24 24"><path d="M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7"/><path fill-rule="evenodd" d="M12 6c6 0 9 6 9 6s-3 6-9 6-9-6-9-6 3-6 9-6m-7.259 6 .07-.105a12 12 0 0 1 1.5-1.834C7.647 8.724 9.538 7.5 12 7.5s4.353 1.224 5.69 2.56A12 12 0 0 1 19.258 12l-.07.105a12 12 0 0 1-1.5 1.834C16.353 15.276 14.462 16.5 12 16.5s-4.353-1.224-5.69-2.56A12 12 0 0 1 4.742 12" clip-rule="evenodd"/></symbol>
120
+ </svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangible/ui",
3
- "version": "0.2.33",
3
+ "version": "0.2.34",
4
4
  "description": "Tangible Design System",
5
5
  "type": "module",
6
6
  "main": "./components/index.js",
@@ -55,6 +55,14 @@
55
55
  "types": "./icons/registry.d.ts"
56
56
  },
57
57
  "./icons/manifest": "./icons/manifest.json",
58
+ "./icons/sprite": {
59
+ "import": "./icons/sprite.js",
60
+ "types": "./icons/sprite.d.ts"
61
+ },
62
+ "./icons/sprite-registry": {
63
+ "import": "./icons/sprite-registry.js",
64
+ "types": "./icons/sprite-registry.d.ts"
65
+ },
58
66
  "./icons/*": "./icons/*",
59
67
  "./manifest.json": "./tui-manifest.json",
60
68
  "./skill": "./skills/building-with-tui/SKILL.md",
@@ -190,13 +190,61 @@ plugins: [new webpack.NormalModuleReplacementPlugin(/icons\/registry\.js$/, path
190
190
  ```
191
191
 
192
192
  TUI's own icons (chevrons, close, check, …) are imported directly from 0.2.30, so
193
- they never need listing. A name you use but forget to list renders an empty `<span data-tui-icon-missing="…">` and a
193
+ they never need listing. To find the names your code passes, search for every `<set>/<name>` string
194
+ literal, single- or double-quoted, not just `icon=`: Button takes `leftIconName`/`rightIconName`, and names also arrive
195
+ through `icon` fields in data (NavMenu items, Tabs, StepList), e.g.
196
+ `rg -o "['\"](system|lms|cred|reaction|player|membersync)/[a-z0-9-]+" src | sort -u`. A name you use but forget to list renders an empty `<span data-tui-icon-missing="…">` and a
194
197
  dev-mode warning. Or skip names altogether: every icon prop also takes the component itself,
195
198
  `<IconButton icon={Trash} label="Delete" />`, which never touches the registry.
196
199
  Import each icon from the set that owns its file: the `lms/info`, `lms/help-circle-fill` and
197
200
  `lms/question-mark` aliases live in `system`. The alias is verified on Vite production builds; the
198
201
  webpack line is the equivalent, untested.
199
202
 
203
+ **Or deliver icons as a sprite (opt-in through 0.2.x; it becomes the default at 1.0).** Alias the
204
+ registry to `@tangible/ui/icons/sprite-registry.js` instead, the same way. Every name then renders
205
+ `<svg><use href="#tui-system-check"/></svg>`, and the icon shapes leave your JavaScript. The page has
206
+ to contain the symbols, one set at a time (`system` is 10 kB gzipped; the others 2–5 kB each).
207
+
208
+ In WordPress, print them with the page: no fetch, no flash of empty icons. `node_modules` doesn't
209
+ ship in a plugin zip, so copy `sprite.php` and the `<set>.svg` files from
210
+ `node_modules/@tangible/ui/icons/` into your build output first:
211
+
212
+ ```php
213
+ require_once __DIR__ . '/assets/tui-icons/sprite.php';
214
+ add_action('admin_footer', fn () => tangible_ui_print_icon_sprite(['system']));
215
+ ```
216
+
217
+ Elsewhere, insert them from JavaScript before rendering icons. Don't `await` it: icons fill in when
218
+ their set lands, and it never rejects (it resolves with `{ loaded, failed }`), so a CDN blip can't
219
+ stop the app from rendering:
220
+
221
+ ```ts
222
+ import { injectIconSprite } from '@tangible/ui/icons/sprite';
223
+ // Vite: pass the files as ?url imports, since the dev server can't serve them from a pre-bundled dep
224
+ import systemUrl from '@tangible/ui/icons/system.svg?url';
225
+ void injectIconSprite({ sets: ['system'], spriteUrl: () => systemUrl });
226
+ ```
227
+
228
+ - Sets already in the page are skipped, so calling it from every entry point is safe. Without
229
+ `spriteUrl` it loads the file next to the module, which `vite build` emits as an asset; that
230
+ default fails in Vite's dev server, and webpack and esbuild are untested, so pass `spriteUrl`.
231
+ - It fetches the file rather than referencing it, so it works from a CDN and from a single-file
232
+ bundle's `data:` URL, where a plain `<use href="system.svg#…">` doesn't (`<use>` takes only
233
+ same-origin files, and Chrome blocks `data:` URLs there). Only SVG shapes are kept from the
234
+ response, but serve the files yourself or from a host you trust.
235
+ - An iframe is its own document: for the WordPress block editor canvas, call it with
236
+ `document: iframe.contentDocument`. A sprite printed in `admin_footer` doesn't reach the canvas.
237
+ - Several plugins can bundle different TUI versions. Both paths use the newest copy's symbols, so a
238
+ newer plugin's icons aren't missing from an older plugin's sprite.
239
+ - Add `<link rel="preload" href="…/system.svg" as="fetch" crossorigin>` to start the fetch with the
240
+ HTML.
241
+ - A name whose symbol isn't in the page renders empty. Under Vite in development its `<svg>` gets
242
+ `data-tui-icon-missing="<name>"` and the console says which set to load (the check reads
243
+ `import.meta.env.DEV`, so it doesn't run under webpack or esbuild).
244
+ - The alias matches TUI's own `…/icons/registry.js` imports. Code that imports the bare
245
+ `@tangible/ui/icons` specifier itself needs that specifier aliased too.
246
+ - Icon components you pass directly (`icon={Trash}`) and TUI's own icons stay inline in either mode.
247
+
200
248
  **6. A standalone app that owns the whole page can add the app base sheet.** For Vite/React apps,
201
249
  not plugin frontends:
202
250
 
@@ -562,7 +610,7 @@ synthesise a second toggle. For a second control that toggles the same item (an
562
610
  ## Component names, and what isn't there
563
611
 
564
612
  46 components. If you are hunting for a name: **Alert → `Notice`**, **Menu → `Dropdown`**,
565
- **Table → `DataTable`**, **Pagination → `Pager`**, **Drawer → `Sidebar`** (drawer mode), **Nav menu / sidebar links / top nav bar → `NavMenu`** (inside `Sidebar.Nav` or your `<nav>`; `asChild` for router links, `current` for `aria-current`; `orientation="horizontal"` for a bar whose items open flyouts, `flyoutTrigger="hover"` to also open on mouse hover; `suffix` for a row badge/count — a `Chip`, with visually hidden context for bare numbers, never interactive; row states restyle via `--tui-nav-menu-item-*`, per level via `--tui-nav-menu-{sub,bar,flyout}-item-*` — set `bar-item-*` for a dark header so flyout rows keep the panel's colours; don't hand-roll menus with `role="menu"`),
613
+ **Table → `DataTable`**, **Pagination → `Pager`**, **Drawer / side sheet / off-canvas panel → `Sidebar`** (`<Sidebar drawer open onClose position="left">`: a modal dialog with a focus trap, Escape and backdrop dismissal; `initialFocusSelector` or `data-autofocus` picks where focus lands on open; don't dock a `Modal` to an edge), **Nav menu / sidebar links / top nav bar → `NavMenu`** (inside `Sidebar.Nav` or your `<nav>`; `asChild` for router links, `current` for `aria-current`; `orientation="horizontal"` for a bar whose items open flyouts, `flyoutTrigger="hover"` to also open on mouse hover; `suffix` for a row badge/count — a `Chip`, with visually hidden context for bare numbers, never interactive; row states restyle via `--tui-nav-menu-item-*`, per level via `--tui-nav-menu-{sub,bar,flyout}-item-*` — set `bar-item-*` for a dark header so flyout rows keep the panel's colours; don't hand-roll menus with `role="menu"`),
566
614
  **Badge → `Chip`** or `ContentIndicator`, **Spinner → `Progress`** or `Button loading`,
567
615
  **ConfirmDialog / AlertDialog → `Modal role="alertdialog"`** (needs both `aria-labelledby` and
568
616
  `aria-describedby`; the backdrop stops dismissing by default, Escape still cancels; put the actions in
package/tui-manifest.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.2.33",
3
- "generated": "2026-10-25T19:41:05.565Z",
2
+ "version": "0.2.34",
3
+ "generated": "2026-10-26T16:33:48.776Z",
4
4
  "components": {
5
5
  "Accordion": {
6
6
  "props": {
@@ -3399,6 +3399,11 @@
3399
3399
  "type": "() => void",
3400
3400
  "required": true,
3401
3401
  "description": "Callback to close the drawer. Required when `drawer={true}`.\nCalled when ESC is pressed or backdrop is clicked.\nOmitting this in drawer mode means the user cannot dismiss the overlay,\nwhich is a WCAG 2.1.1 (Keyboard) failure."
3402
+ },
3403
+ "initialFocusSelector": {
3404
+ "type": "string",
3405
+ "required": false,
3406
+ "description": "CSS selector, matched inside the drawer when it opens, for the element\nthat takes focus: say, the current lesson in a long outline, so keyboard\nand screen reader users start where they are. Escape still closes and the\nclose button is a Shift+Tab away. Don't point it at a destructive action.\n\nThe target must be able to take focus (a control, a link, or anything\nwith `tabindex`, -1 included) and be rendered at open. Otherwise a dev\nwarning fires and focus goes to the default: an element marked\n`data-autofocus`, else the first control. It's read once, when the drawer\nopens; changing it while open doesn't move focus.\n\nSame prop as `Modal`'s, but the default differs: Modal skips its own close\nbutton, while a drawer has none, so its first control is often your\nHeader's close button. That's what this prop is for."
3402
3407
  }
3403
3408
  },
3404
3409
  "cssTokens": [
@@ -1,4 +1,4 @@
1
- export { FOCUSABLE_SELECTOR, isTabbable, getTabbable, getInitialFocus } from './tabbable';
1
+ export { FOCUSABLE_SELECTOR, isTabbable, isFocusTarget, findFocusTarget, getTabbable, getInitialFocus } from './tabbable';
2
2
  /**
3
3
  * Options for the focus trap hook.
4
4
  */
@@ -1,6 +1,6 @@
1
1
  import { useEffect } from 'react';
2
2
  import { getTabbable } from './tabbable.js';
3
- export { FOCUSABLE_SELECTOR, isTabbable, getTabbable, getInitialFocus } from './tabbable.js';
3
+ export { FOCUSABLE_SELECTOR, isTabbable, isFocusTarget, findFocusTarget, getTabbable, getInitialFocus } from './tabbable.js';
4
4
  /**
5
5
  * Traps focus within a container element.
6
6
  * Tab and Shift+Tab cycle through focusable elements inside the container.
@@ -0,0 +1,15 @@
1
+ import { type ComponentType, type SVGProps } from 'react';
2
+ type IconComponent = ComponentType<SVGProps<SVGSVGElement>>;
3
+ /**
4
+ * An icon that references a sprite symbol: what every entry of the generated
5
+ * sprite registry is. Lives in utils, which the package doesn't expose, so it
6
+ * stays internal.
7
+ *
8
+ * In development (Vite's `import.meta.env.DEV`), once the document's sprites
9
+ * have settled it checks the symbol exists, marking the `<svg>` with
10
+ * `data-tui-icon-missing="<name>"` (the registry name, as `Icon` does) and
11
+ * warning once per name. A sprite inserted later re-runs the check and clears
12
+ * the mark.
13
+ */
14
+ export declare function spriteIcon(id: string, viewBox: string, name: string): IconComponent;
15
+ export {};
@@ -0,0 +1,66 @@
1
+ import { createElement, useEffect, useRef } from 'react';
2
+ import { isDev } from './is-dev.js';
3
+ import { composeRefs } from './compose-refs.js';
4
+ import { SPRITE_EVENT, spritesSettled } from '../icons/sprite.js';
5
+ const warned = new Set();
6
+ /**
7
+ * An icon that references a sprite symbol: what every entry of the generated
8
+ * sprite registry is. Lives in utils, which the package doesn't expose, so it
9
+ * stays internal.
10
+ *
11
+ * In development (Vite's `import.meta.env.DEV`), once the document's sprites
12
+ * have settled it checks the symbol exists, marking the `<svg>` with
13
+ * `data-tui-icon-missing="<name>"` (the registry name, as `Icon` does) and
14
+ * warning once per name. A sprite inserted later re-runs the check and clears
15
+ * the mark.
16
+ */
17
+ export function spriteIcon(id, viewBox, name) {
18
+ function SpriteIcon(props) {
19
+ const own = useRef(null);
20
+ useEffect(() => {
21
+ if (!isDev())
22
+ return;
23
+ const svg = own.current;
24
+ if (!svg)
25
+ return;
26
+ const doc = svg.ownerDocument;
27
+ let live = true;
28
+ const check = () => {
29
+ if (!live)
30
+ return false;
31
+ const found = !!doc.getElementById(id);
32
+ if (found)
33
+ svg.removeAttribute('data-tui-icon-missing');
34
+ else
35
+ svg.setAttribute('data-tui-icon-missing', name);
36
+ return found;
37
+ };
38
+ void spritesSettled(doc).then(() => {
39
+ if (check() || !live || warned.has(name))
40
+ return;
41
+ warned.add(name);
42
+ console.warn(`[Icon] "${name}" has no sprite symbol (#${id}) in the page. Print the sprite on the ` +
43
+ `server (icons/sprite.php) or call injectIconSprite() with the "${name.split('/')[0]}" set.`);
44
+ });
45
+ doc.addEventListener(SPRITE_EVENT, check);
46
+ return () => {
47
+ live = false;
48
+ doc.removeEventListener(SPRITE_EVENT, check);
49
+ };
50
+ }, []);
51
+ // React 19 passes a consumer's ref as a prop; keep it alongside ours.
52
+ // (React 18's types also allow a string ref, which a function component never receives.)
53
+ const ref = props.ref ? composeRefs(own, props.ref) : own;
54
+ return createElement('svg', {
55
+ xmlns: 'http://www.w3.org/2000/svg',
56
+ viewBox,
57
+ width: '1em',
58
+ height: '1em',
59
+ fill: 'currentColor',
60
+ ...props,
61
+ ref,
62
+ }, createElement('use', { href: `#${id}` }));
63
+ }
64
+ SpriteIcon.displayName = `SpriteIcon(${name})`;
65
+ return SpriteIcon;
66
+ }
@@ -11,6 +11,22 @@ export declare const FOCUSABLE_SELECTOR: string;
11
11
  * edge lets Tab walk straight out of the dialog, so filter them here.
12
12
  */
13
13
  export declare function isTabbable(el: HTMLElement, container?: HTMLElement): boolean;
14
+ /**
15
+ * Whether `el` can take focus programmatically: a focusable element, or one
16
+ * with any `tabindex` (including -1), that isn't disabled, inert or hidden.
17
+ * For an explicitly named initial-focus target, where `.focus()` on anything
18
+ * else silently does nothing and leaves focus outside the dialog.
19
+ */
20
+ export declare function isFocusTarget(el: HTMLElement, container?: HTMLElement): boolean;
21
+ /**
22
+ * The element `selector` names inside `container`, if it can take focus.
23
+ * Otherwise `null` and why, for a dev warning. A malformed selector doesn't
24
+ * throw: it would do so mid-effect and leave the dialog without focus.
25
+ */
26
+ export declare function findFocusTarget(container: HTMLElement, selector: string): {
27
+ target: HTMLElement | null;
28
+ problem?: string;
29
+ };
14
30
  /** The focusable elements in `container` that can actually take focus, in DOM order. */
15
31
  export declare function getTabbable(container: HTMLElement): HTMLElement[];
16
32
  /**
package/utils/tabbable.js CHANGED
@@ -43,6 +43,35 @@ export function isTabbable(el, container) {
43
43
  }
44
44
  return true;
45
45
  }
46
+ /**
47
+ * Whether `el` can take focus programmatically: a focusable element, or one
48
+ * with any `tabindex` (including -1), that isn't disabled, inert or hidden.
49
+ * For an explicitly named initial-focus target, where `.focus()` on anything
50
+ * else silently does nothing and leaves focus outside the dialog.
51
+ */
52
+ export function isFocusTarget(el, container) {
53
+ return (el.matches(FOCUSABLE_SELECTOR) || el.hasAttribute('tabindex')) && isTabbable(el, container);
54
+ }
55
+ /**
56
+ * The element `selector` names inside `container`, if it can take focus.
57
+ * Otherwise `null` and why, for a dev warning. A malformed selector doesn't
58
+ * throw: it would do so mid-effect and leave the dialog without focus.
59
+ */
60
+ export function findFocusTarget(container, selector) {
61
+ let match;
62
+ try {
63
+ match = container.querySelector(selector);
64
+ }
65
+ catch {
66
+ return { target: null, problem: 'is not a valid selector' };
67
+ }
68
+ if (!match)
69
+ return { target: null, problem: 'did not match any element' };
70
+ if (!isFocusTarget(match, container)) {
71
+ return { target: null, problem: 'matched an element that cannot take focus' };
72
+ }
73
+ return { target: match };
74
+ }
46
75
  /** The focusable elements in `container` that can actually take focus, in DOM order. */
47
76
  export function getTabbable(container) {
48
77
  return Array.from(container.querySelectorAll(FOCUSABLE_SELECTOR)).filter((n) => isTabbable(n, container));
@@ -60,9 +89,9 @@ export function getTabbable(container) {
60
89
  */
61
90
  export function getInitialFocus(container, preferredSelector, { lastResort } = {}) {
62
91
  if (preferredSelector) {
63
- const preferred = container.querySelector(preferredSelector);
64
- if (preferred)
65
- return preferred;
92
+ const { target } = findFocusTarget(container, preferredSelector);
93
+ if (target)
94
+ return target;
66
95
  }
67
96
  // [data-autofocus] first, then DOM order, skipping anything that can't take focus.
68
97
  const tabbable = getTabbable(container);
@@ -1 +1 @@
1
- (()=>{var j=Object.defineProperty;var z=(e,t)=>{for(var n in t)j(e,n,{get:t[n],enumerable:!0})};var D={};z(D,{MODAL_CLOSE_EVENT:()=>V,MODAL_OPEN_EVENT:()=>L,close:()=>p,init:()=>H,open:()=>X});var K=["[data-autofocus]","a[href]","area[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","iframe","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])','[tabindex]:not([tabindex="-1"])'].join(",");function h(e,t){if(e.matches(":disabled")||e.closest("[inert]"))return!1;if(typeof e.checkVisibility=="function")return e.checkVisibility({visibilityProperty:!0});for(let n=e;n&&n!==t;n=n.parentElement){if(n.hidden)return!1;let o=getComputedStyle(n);if(o.display==="none"||n===e&&o.visibility==="hidden")return!1}return!0}function x(e){return Array.from(e.querySelectorAll(K)).filter(t=>h(t,e))}var $="tui-modal-open",b="tuiScrollLock";function C(){return Number(document.body.dataset[b]??0)||0}function k(){document.body.dataset[b]=String(C()+1),document.body.classList.add($)}function w(){let e=C()-1;if(e>0){document.body.dataset[b]=String(e);return}delete document.body.dataset[b],document.body.classList.remove($)}var g="data-tui-modal-open",u="data-tui-modal-close",Y="data-tui-modal-backdrop",M="data-tui-modal-src",_="data-tui-modal-restore-focus",J=".tui-modal__close",Q=":scope > .tui-modal__dialog",Z="iframe, object, embed, audio, video",ee=1e3,L="tui-modal-open",V="tui-modal-close",f=new WeakMap,m=new WeakMap,O=new WeakSet,y=null,E=null,P=0;function s(e){console.warn(`[TUI modal] ${e}`)}function c(e){let t=e.getAttribute("data-state");return t==="open"||t==="closing"}function T(e){return e.querySelector(Q)}function N(e){return e.matches(":disabled")||e.closest('[aria-disabled="true"]')!==null}function G(e){if(typeof e!="string")return e;let t=document.getElementById(e);return t instanceof HTMLDialogElement?t:(s(t?`#${e} is a <${t.tagName.toLowerCase()}>, not a <dialog>. The modal must be a <dialog> element.`:`No element with id "${e}".`),null)}function B(e){return e.split(/\s+/).filter(t=>t&&!document.getElementById(t))}function te(e){if(O.has(e))return;O.add(e);let t=`<dialog id="${e.id}">`,n=e.getAttribute("aria-labelledby"),o=e.getAttribute("aria-describedby");if(n){let r=B(n);r.length&&s(`${t} has aria-labelledby="${n}", but nothing has the id ${r.map(a=>`"${a}"`).join(", ")}, so the dialog has no name. Give the heading that id.`)}else e.hasAttribute("aria-label")||s(`${t} has no accessible name. Point aria-labelledby at its visible heading (WCAG 4.1.2).`);o&&B(o).length&&s(`${t} has aria-describedby="${o}", but not every id in it exists.`),e.getAttribute("role")==="alertdialog"&&!o&&s(`${t} is role="alertdialog" without aria-describedby. Point it at the message, or screen readers announce the heading and nothing about what is being confirmed.`),T(e)||s(`${t} has no .tui-modal__dialog box as its child. The box is the visible dialog; without it the backdrop can't be told apart and backdrop clicks are ignored.`),e.querySelector(`[${u}], form[method="dialog"]`)||Array.from(document.querySelectorAll(`[${u}]`)).some(r=>r.getAttribute(u)===e.id)||s(`${t} has no close control. Touch screen-reader users have no Escape key; add a button with ${u}.`)}function ne(e){let t=e.getAttribute(Y);return t==="dismiss"?!0:t==="static"?!1:e.getAttribute("role")!=="alertdialog"}function R(e){let t=getComputedStyle(e),n=r=>{let a=parseFloat(r);return Number.isNaN(a)?0:r.trim().endsWith("ms")?a:a*1e3},o=t.transitionDuration.split(","),i=t.transitionDelay.split(",");return Math.max(0,...o.map((r,a)=>n(r)+n(i[a%i.length]??"")))}function oe(e){let t=T(e),n=Math.min(ee,Math.max(R(e),t?R(t):0));return n>0?new Promise(o=>setTimeout(o,n)):Promise.resolve()}function ie(e){let t=e.querySelector("[autofocus], [data-autofocus]");if(t&&h(t,e))return t;let n=x(e).filter(o=>!o.matches(Z));return n.find(o=>!o.matches(J))??n[0]??e}function X(e,t){let n=G(e);if(!n)return!1;if(n.getAttribute("data-state")==="closing")return m.delete(n),t&&f.set(n,t),n.setAttribute("data-state","open"),v(n,L,{opener:f.get(n)??null}),!0;if(n.open&&c(n))return!0;c(n)&&A(n),n.open&&(s(`<dialog id="${n.id}"> was already open, not as a modal. Drop the open attribute from the markup.`),n.close()),te(n);try{n.showModal()}catch(l){return s(`<dialog id="${n.id}"> couldn't open: ${l.message}`),!1}k();let o=document.activeElement,i=t??(o instanceof HTMLElement&&o!==document.body?o:null);f.set(n,i);for(let l of n.querySelectorAll(`[${M}]`))l.hasAttribute("src")||l.setAttribute("src",l.getAttribute(M)??"");let r=T(n)??n,a=ie(r);return a===r&&!r.hasAttribute("tabindex")&&(r.tabIndex=-1),a.focus(),n.offsetWidth,n.setAttribute("data-state","open"),v(n,L,{opener:i}),!0}function p(e){let t=G(e);if(!t?.open)return Promise.resolve();if(!c(t))return t.close(),Promise.resolve();let n=m.get(t);if(n)return n;t.setAttribute("data-state","closing");let o=oe(t).then(()=>{m.get(t)===o&&(t.close(),A(t))});return m.set(t,o),o}function v(e,t,n){e.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:n}))}function A(e){if(!c(e))return;e.setAttribute("data-state","closed"),m.delete(e);for(let n of e.querySelectorAll("audio, video"))n.paused||n.pause();for(let n of e.querySelectorAll(`[${M}][src]`)){n.removeAttribute("src");let o=n.parentNode,i=n.nextSibling;n.remove(),o?.insertBefore(n,i)}w();let t=f.get(e)??null;f.delete(e),re(e,t),v(e,V,{opener:t,returnValue:e.returnValue})}function re(e,t){let n=e.getAttribute(_),o=[n?document.getElementById(n):null,t,...Array.from(document.querySelectorAll(`[${g}]`)).filter(i=>i.getAttribute(g)===e.id)];for(let i of o)if(!(!i?.isConnected||i===document.body)&&(i.focus(),document.activeElement===i))return;!t&&!n||s(`Focus had nowhere to return when <dialog id="${e.id}"> closed: its trigger is gone or can't take focus, so focus fell to <body> (WCAG 2.4.3). Set ${_}="<id>" on the dialog to name an element that will still be there.`)}function ae(e){return e.matches('a[href], input[type="submit"]')?!0:e instanceof HTMLButtonElement&&e.type==="submit"&&e.form!==null}function I(e){y=e.target,E=null}function q(e){E=e.target}function U(e){let t=y,n=E;y=E=null;let o=e.target;if(!(o instanceof Element))return;let i=o.closest(`[${g}]`);if(i){if(N(i))return;e.preventDefault(),X(i.getAttribute(g)??"",i);return}let r=o.closest(`[${u}]`);if(r){if(N(r))return;let l=r.getAttribute(u)||r.closest("dialog");if(!l){s(`A [${u}] control is outside any <dialog>. Give it the dialog's id as its value.`);return}ae(r)||e.preventDefault(),p(l);return}o instanceof HTMLDialogElement&&c(o)&&t===o&&n===o&&T(o)!==null&&ne(o)&&!se(o,e)&&p(o)}function se(e,t){let{clientWidth:n,clientHeight:o}=e;return n>0&&t.offsetX>=n||o>0&&t.offsetY>=o}function W(e){let t=e.target;!(t instanceof HTMLDialogElement)||!c(t)||e.cancelable&&(e.preventDefault(),p(t))}function F(e){let t=e.target;t instanceof HTMLDialogElement&&!t.open&&A(t)}function H(){P++===0&&(document.addEventListener("pointerdown",I,!0),document.addEventListener("pointerup",q,!0),document.addEventListener("click",U),document.addEventListener("cancel",W,!0),document.addEventListener("close",F,!0));let e=!1;return()=>{e||(e=!0,!(--P>0)&&(document.removeEventListener("pointerdown",I,!0),document.removeEventListener("pointerup",q,!0),document.removeEventListener("click",U),document.removeEventListener("cancel",W,!0),document.removeEventListener("close",F,!0)))}}var S=Symbol.for("tangible-ui/vanilla/modal"),d=globalThis;d[S]||(d[S]=D,H());d.TangibleUI=d.TangibleUI||{};d.TangibleUI.modal=d[S];})();
1
+ (()=>{var j=Object.defineProperty;var z=(e,t)=>{for(var n in t)j(e,n,{get:t[n],enumerable:!0})};var D={};z(D,{MODAL_CLOSE_EVENT:()=>V,MODAL_OPEN_EVENT:()=>L,close:()=>p,init:()=>H,open:()=>X});var K=["[data-autofocus]","a[href]","area[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","iframe","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])','[tabindex]:not([tabindex="-1"])'].join(",");function h(e,t){if(e.matches(":disabled")||e.closest("[inert]"))return!1;if(typeof e.checkVisibility=="function")return e.checkVisibility({visibilityProperty:!0});for(let n=e;n&&n!==t;n=n.parentElement){if(n.hidden)return!1;let o=getComputedStyle(n);if(o.display==="none"||n===e&&o.visibility==="hidden")return!1}return!0}function x(e){return Array.from(e.querySelectorAll(K)).filter(t=>h(t,e))}var $="tui-modal-open",b="tuiScrollLock";function k(){return Number(document.body.dataset[b]??0)||0}function C(){document.body.dataset[b]=String(k()+1),document.body.classList.add($)}function w(){let e=k()-1;if(e>0){document.body.dataset[b]=String(e);return}delete document.body.dataset[b],document.body.classList.remove($)}var g="data-tui-modal-open",u="data-tui-modal-close",Y="data-tui-modal-backdrop",M="data-tui-modal-src",_="data-tui-modal-restore-focus",J=".tui-modal__close",Q=":scope > .tui-modal__dialog",Z="iframe, object, embed, audio, video",ee=1e3,L="tui-modal-open",V="tui-modal-close",m=new WeakMap,f=new WeakMap,O=new WeakSet,y=null,E=null,P=0;function l(e){console.warn(`[TUI modal] ${e}`)}function c(e){let t=e.getAttribute("data-state");return t==="open"||t==="closing"}function T(e){return e.querySelector(Q)}function N(e){return e.matches(":disabled")||e.closest('[aria-disabled="true"]')!==null}function G(e){if(typeof e!="string")return e;let t=document.getElementById(e);return t instanceof HTMLDialogElement?t:(l(t?`#${e} is a <${t.tagName.toLowerCase()}>, not a <dialog>. The modal must be a <dialog> element.`:`No element with id "${e}".`),null)}function B(e){return e.split(/\s+/).filter(t=>t&&!document.getElementById(t))}function te(e){if(O.has(e))return;O.add(e);let t=`<dialog id="${e.id}">`,n=e.getAttribute("aria-labelledby"),o=e.getAttribute("aria-describedby");if(n){let r=B(n);r.length&&l(`${t} has aria-labelledby="${n}", but nothing has the id ${r.map(a=>`"${a}"`).join(", ")}, so the dialog has no name. Give the heading that id.`)}else e.hasAttribute("aria-label")||l(`${t} has no accessible name. Point aria-labelledby at its visible heading (WCAG 4.1.2).`);o&&B(o).length&&l(`${t} has aria-describedby="${o}", but not every id in it exists.`),e.getAttribute("role")==="alertdialog"&&!o&&l(`${t} is role="alertdialog" without aria-describedby. Point it at the message, or screen readers announce the heading and nothing about what is being confirmed.`),T(e)||l(`${t} has no .tui-modal__dialog box as its child. The box is the visible dialog; without it the backdrop can't be told apart and backdrop clicks are ignored.`),e.querySelector(`[${u}], form[method="dialog"]`)||Array.from(document.querySelectorAll(`[${u}]`)).some(r=>r.getAttribute(u)===e.id)||l(`${t} has no close control. Touch screen-reader users have no Escape key; add a button with ${u}.`)}function ne(e){let t=e.getAttribute(Y);return t==="dismiss"?!0:t==="static"?!1:e.getAttribute("role")!=="alertdialog"}function R(e){let t=getComputedStyle(e),n=r=>{let a=parseFloat(r);return Number.isNaN(a)?0:r.trim().endsWith("ms")?a:a*1e3},o=t.transitionDuration.split(","),i=t.transitionDelay.split(",");return Math.max(0,...o.map((r,a)=>n(r)+n(i[a%i.length]??"")))}function oe(e){let t=T(e),n=Math.min(ee,Math.max(R(e),t?R(t):0));return n>0?new Promise(o=>setTimeout(o,n)):Promise.resolve()}function ie(e){let t=e.querySelector("[autofocus], [data-autofocus]");if(t&&h(t,e))return t;let n=x(e).filter(o=>!o.matches(Z));return n.find(o=>!o.matches(J))??n[0]??e}function X(e,t){let n=G(e);if(!n)return!1;if(n.getAttribute("data-state")==="closing")return f.delete(n),t&&m.set(n,t),n.setAttribute("data-state","open"),v(n,L,{opener:m.get(n)??null}),!0;if(n.open&&c(n))return!0;c(n)&&A(n),n.open&&(l(`<dialog id="${n.id}"> was already open, not as a modal. Drop the open attribute from the markup.`),n.close()),te(n);try{n.showModal()}catch(s){return l(`<dialog id="${n.id}"> couldn't open: ${s.message}`),!1}C();let o=document.activeElement,i=t??(o instanceof HTMLElement&&o!==document.body?o:null);m.set(n,i);for(let s of n.querySelectorAll(`[${M}]`))s.hasAttribute("src")||s.setAttribute("src",s.getAttribute(M)??"");let r=T(n)??n,a=ie(r);return a===r&&!r.hasAttribute("tabindex")&&(r.tabIndex=-1),a.focus(),n.offsetWidth,n.setAttribute("data-state","open"),v(n,L,{opener:i}),!0}function p(e){let t=G(e);if(!t?.open)return Promise.resolve();if(!c(t))return t.close(),Promise.resolve();let n=f.get(t);if(n)return n;t.setAttribute("data-state","closing");let o=oe(t).then(()=>{f.get(t)===o&&(t.close(),A(t))});return f.set(t,o),o}function v(e,t,n){e.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:n}))}function A(e){if(!c(e))return;e.setAttribute("data-state","closed"),f.delete(e);for(let n of e.querySelectorAll("audio, video"))n.paused||n.pause();for(let n of e.querySelectorAll(`[${M}][src]`)){n.removeAttribute("src");let o=n.parentNode,i=n.nextSibling;n.remove(),o?.insertBefore(n,i)}w();let t=m.get(e)??null;m.delete(e),re(e,t),v(e,V,{opener:t,returnValue:e.returnValue})}function re(e,t){let n=e.getAttribute(_),o=[n?document.getElementById(n):null,t,...Array.from(document.querySelectorAll(`[${g}]`)).filter(i=>i.getAttribute(g)===e.id)];for(let i of o)if(!(!i?.isConnected||i===document.body)&&(i.focus(),document.activeElement===i))return;!t&&!n||l(`Focus had nowhere to return when <dialog id="${e.id}"> closed: its trigger is gone or can't take focus, so focus fell to <body> (WCAG 2.4.3). Set ${_}="<id>" on the dialog to name an element that will still be there.`)}function ae(e){return e.matches('a[href], input[type="submit"]')?!0:e instanceof HTMLButtonElement&&e.type==="submit"&&e.form!==null}function I(e){y=e.target,E=null}function q(e){E=e.target}function F(e){let t=y,n=E;y=E=null;let o=e.target;if(!(o instanceof Element))return;let i=o.closest(`[${g}]`);if(i){if(N(i))return;e.preventDefault(),X(i.getAttribute(g)??"",i);return}let r=o.closest(`[${u}]`);if(r){if(N(r))return;let s=r.getAttribute(u)||r.closest("dialog");if(!s){l(`A [${u}] control is outside any <dialog>. Give it the dialog's id as its value.`);return}ae(r)||e.preventDefault(),p(s);return}o instanceof HTMLDialogElement&&c(o)&&t===o&&n===o&&T(o)!==null&&ne(o)&&!le(o,e)&&p(o)}function le(e,t){let{clientWidth:n,clientHeight:o}=e;return n>0&&t.offsetX>=n||o>0&&t.offsetY>=o}function U(e){let t=e.target;!(t instanceof HTMLDialogElement)||!c(t)||e.cancelable&&(e.preventDefault(),p(t))}function W(e){let t=e.target;t instanceof HTMLDialogElement&&!t.open&&A(t)}function H(){P++===0&&(document.addEventListener("pointerdown",I,!0),document.addEventListener("pointerup",q,!0),document.addEventListener("click",F),document.addEventListener("cancel",U,!0),document.addEventListener("close",W,!0));let e=!1;return()=>{e||(e=!0,!(--P>0)&&(document.removeEventListener("pointerdown",I,!0),document.removeEventListener("pointerup",q,!0),document.removeEventListener("click",F),document.removeEventListener("cancel",U,!0),document.removeEventListener("close",W,!0)))}}var S=Symbol.for("tangible-ui/vanilla/modal"),d=globalThis;d[S]||(d[S]=D,H());d.TangibleUI=d.TangibleUI||{};d.TangibleUI.modal=d[S];})();