poe-svelte-ui-lib 1.99.0 → 1.101.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) hide show
  1. package/README.md +29 -4
  2. package/dist/Button/Button.svelte +3 -3
  3. package/dist/CommonSnippets.svelte +33 -26
  4. package/dist/FileAttach/FileAttach.svelte +2 -2
  5. package/dist/Graph/Graph.svelte +7 -3
  6. package/dist/IconsCatalog/climate.air-conditioning.svg +1 -0
  7. package/dist/IconsCatalog/climate.car-fan.svg +1 -0
  8. package/dist/IconsCatalog/climate.cloud-rain.svg +1 -0
  9. package/dist/IconsCatalog/climate.droplet.svg +1 -0
  10. package/dist/IconsCatalog/climate.droplets.svg +1 -0
  11. package/dist/IconsCatalog/climate.flame.svg +1 -0
  12. package/dist/IconsCatalog/climate.leaf.svg +1 -0
  13. package/dist/IconsCatalog/climate.mist.svg +1 -0
  14. package/dist/IconsCatalog/climate.moon.svg +1 -0
  15. package/dist/IconsCatalog/climate.plant.svg +1 -0
  16. package/dist/IconsCatalog/climate.seedling.svg +1 -0
  17. package/dist/IconsCatalog/climate.snowflake.svg +1 -0
  18. package/dist/IconsCatalog/climate.sun.svg +1 -0
  19. package/dist/IconsCatalog/climate.temperature-sun.svg +1 -0
  20. package/dist/IconsCatalog/climate.trees.svg +1 -0
  21. package/dist/IconsCatalog/climate.wind.svg +1 -0
  22. package/dist/IconsCatalog/electronics.cpu-2.svg +1 -0
  23. package/dist/IconsCatalog/electronics.cpu.svg +1 -0
  24. package/dist/IconsCatalog/electronics.database.svg +1 -0
  25. package/dist/IconsCatalog/electronics.device-desktop.svg +1 -0
  26. package/dist/IconsCatalog/electronics.device-gamepad.svg +1 -0
  27. package/dist/IconsCatalog/electronics.device-laptop.svg +1 -0
  28. package/dist/IconsCatalog/electronics.device-mobile.svg +1 -0
  29. package/dist/IconsCatalog/electronics.device-sd-card.svg +1 -0
  30. package/dist/IconsCatalog/electronics.device-tablet.svg +1 -0
  31. package/dist/IconsCatalog/electronics.device-tv.svg +1 -0
  32. package/dist/IconsCatalog/electronics.device-watch.svg +1 -0
  33. package/dist/IconsCatalog/electronics.keyboard.svg +1 -0
  34. package/dist/IconsCatalog/electronics.printer.svg +1 -0
  35. package/dist/IconsCatalog/electronics.server.svg +1 -0
  36. package/dist/IconsCatalog/electronics.terminal-2.svg +1 -0
  37. package/dist/IconsCatalog/electronics.usb.svg +1 -0
  38. package/dist/IconsCatalog/home.bed.svg +1 -0
  39. package/dist/IconsCatalog/home.building.svg +1 -0
  40. package/dist/IconsCatalog/home.car-garage.svg +1 -0
  41. package/dist/IconsCatalog/home.door.svg +1 -0
  42. package/dist/IconsCatalog/home.elevator.svg +1 -0
  43. package/dist/IconsCatalog/home.fence.svg +1 -0
  44. package/dist/IconsCatalog/home.fingerprint.svg +1 -0
  45. package/dist/IconsCatalog/home.fridge.svg +1 -0
  46. package/dist/IconsCatalog/home.home.svg +1 -0
  47. package/dist/IconsCatalog/home.id-badge-2.svg +1 -0
  48. package/dist/IconsCatalog/home.key.svg +1 -0
  49. package/dist/IconsCatalog/home.lock.svg +1 -0
  50. package/dist/IconsCatalog/home.shield.svg +1 -0
  51. package/dist/IconsCatalog/home.sofa.svg +1 -0
  52. package/dist/IconsCatalog/home.users.svg +1 -0
  53. package/dist/IconsCatalog/home.window.svg +1 -0
  54. package/dist/IconsCatalog/iconsLib.js +46 -56
  55. package/dist/IconsCatalog/industry.assembly.svg +1 -0
  56. package/dist/IconsCatalog/industry.barrel.svg +1 -0
  57. package/dist/IconsCatalog/industry.box.svg +1 -0
  58. package/dist/IconsCatalog/industry.building-factory.svg +1 -0
  59. package/dist/IconsCatalog/industry.crane.svg +1 -0
  60. package/dist/IconsCatalog/industry.engine.svg +1 -0
  61. package/dist/IconsCatalog/industry.fire-extinguisher.svg +1 -0
  62. package/dist/IconsCatalog/industry.forklift.svg +1 -0
  63. package/dist/IconsCatalog/industry.gas-station.svg +1 -0
  64. package/dist/IconsCatalog/industry.hammer.svg +1 -0
  65. package/dist/IconsCatalog/industry.package.svg +1 -0
  66. package/dist/IconsCatalog/industry.recycle.svg +1 -0
  67. package/dist/IconsCatalog/industry.robot.svg +1 -0
  68. package/dist/IconsCatalog/industry.tool.svg +1 -0
  69. package/dist/IconsCatalog/industry.tools.svg +1 -0
  70. package/dist/IconsCatalog/industry.wheel.svg +1 -0
  71. package/dist/IconsCatalog/light.brightness.svg +1 -0
  72. package/dist/IconsCatalog/light.building-lighthouse.svg +1 -0
  73. package/dist/IconsCatalog/light.bulb-off.svg +1 -0
  74. package/dist/IconsCatalog/light.bulb.svg +1 -0
  75. package/dist/IconsCatalog/light.candle.svg +1 -0
  76. package/dist/IconsCatalog/light.color-picker.svg +1 -0
  77. package/dist/IconsCatalog/light.color-swatch.svg +1 -0
  78. package/dist/IconsCatalog/light.contrast.svg +1 -0
  79. package/dist/IconsCatalog/light.highlight.svg +1 -0
  80. package/dist/IconsCatalog/light.lamp-2.svg +1 -0
  81. package/dist/IconsCatalog/light.lamp.svg +1 -0
  82. package/dist/IconsCatalog/light.palette.svg +1 -0
  83. package/dist/IconsCatalog/light.prism-light.svg +1 -0
  84. package/dist/IconsCatalog/light.sparkles.svg +1 -0
  85. package/dist/IconsCatalog/light.sun-high.svg +1 -0
  86. package/dist/IconsCatalog/light.traffic-lights.svg +1 -0
  87. package/dist/IconsCatalog/media.camera.svg +1 -1
  88. package/dist/IconsCatalog/media.device-audio-tape.svg +1 -0
  89. package/dist/IconsCatalog/media.device-cctv.svg +1 -0
  90. package/dist/IconsCatalog/media.device-speaker.svg +1 -0
  91. package/dist/IconsCatalog/media.headphones.svg +1 -0
  92. package/dist/IconsCatalog/media.microphone.svg +1 -0
  93. package/dist/IconsCatalog/media.movie.svg +1 -1
  94. package/dist/IconsCatalog/media.music.svg +1 -0
  95. package/dist/IconsCatalog/media.photo.svg +1 -0
  96. package/dist/IconsCatalog/media.player-play.svg +1 -0
  97. package/dist/IconsCatalog/media.player-record.svg +1 -0
  98. package/dist/IconsCatalog/media.playlist.svg +1 -0
  99. package/dist/IconsCatalog/media.radio.svg +1 -1
  100. package/dist/IconsCatalog/media.speakerphone.svg +1 -0
  101. package/dist/IconsCatalog/media.video.svg +1 -0
  102. package/dist/IconsCatalog/media.volume.svg +1 -0
  103. package/dist/IconsCatalog/network.access-point.svg +1 -0
  104. package/dist/IconsCatalog/network.antenna-bars-5.svg +1 -0
  105. package/dist/IconsCatalog/network.antenna.svg +1 -0
  106. package/dist/IconsCatalog/network.bluetooth.svg +1 -0
  107. package/dist/IconsCatalog/network.broadcast.svg +1 -0
  108. package/dist/IconsCatalog/network.cell-signal-5.svg +1 -0
  109. package/dist/IconsCatalog/network.cloud.svg +1 -0
  110. package/dist/IconsCatalog/network.link.svg +1 -0
  111. package/dist/IconsCatalog/network.mail.svg +1 -0
  112. package/dist/IconsCatalog/network.message.svg +1 -0
  113. package/dist/IconsCatalog/network.network.svg +1 -0
  114. package/dist/IconsCatalog/network.nfc.svg +1 -0
  115. package/dist/IconsCatalog/network.router.svg +1 -0
  116. package/dist/IconsCatalog/network.wifi.svg +1 -0
  117. package/dist/IconsCatalog/network.world-www.svg +1 -0
  118. package/dist/IconsCatalog/network.world.svg +1 -0
  119. package/dist/IconsCatalog/power.battery-automotive.svg +1 -0
  120. package/dist/IconsCatalog/power.battery-charging.svg +1 -0
  121. package/dist/IconsCatalog/power.battery-eco.svg +1 -0
  122. package/dist/IconsCatalog/power.battery.svg +1 -1
  123. package/dist/IconsCatalog/power.bolt.svg +1 -0
  124. package/dist/IconsCatalog/power.charging-pile.svg +1 -0
  125. package/dist/IconsCatalog/power.circuit-ground.svg +1 -0
  126. package/dist/IconsCatalog/power.circuit-motor.svg +1 -0
  127. package/dist/IconsCatalog/power.circuit-resistor.svg +1 -0
  128. package/dist/IconsCatalog/power.circuit-switch-open.svg +1 -0
  129. package/dist/IconsCatalog/power.plug-connected.svg +1 -0
  130. package/dist/IconsCatalog/power.plug.svg +1 -0
  131. package/dist/IconsCatalog/power.power.svg +1 -1
  132. package/dist/IconsCatalog/power.solar-panel.svg +1 -0
  133. package/dist/IconsCatalog/power.toggle-left.svg +1 -0
  134. package/dist/IconsCatalog/power.windmill.svg +1 -0
  135. package/dist/IconsCatalog/sensors.activity.svg +1 -0
  136. package/dist/IconsCatalog/sensors.atom.svg +1 -0
  137. package/dist/IconsCatalog/sensors.compass.svg +1 -0
  138. package/dist/IconsCatalog/sensors.dashboard.svg +1 -0
  139. package/dist/IconsCatalog/sensors.device-mobile-vibration.svg +1 -0
  140. package/dist/IconsCatalog/sensors.droplet-half-2.svg +1 -0
  141. package/dist/IconsCatalog/sensors.eye.svg +1 -0
  142. package/dist/IconsCatalog/sensors.flask.svg +1 -0
  143. package/dist/IconsCatalog/sensors.gauge.svg +1 -0
  144. package/dist/IconsCatalog/sensors.heartbeat.svg +1 -0
  145. package/dist/IconsCatalog/sensors.magnet.svg +1 -0
  146. package/dist/IconsCatalog/sensors.radioactive.svg +1 -0
  147. package/dist/IconsCatalog/sensors.ruler-measure.svg +1 -0
  148. package/dist/IconsCatalog/sensors.scale.svg +1 -0
  149. package/dist/IconsCatalog/sensors.temperature.svg +1 -0
  150. package/dist/IconsCatalog/sensors.thermometer.svg +1 -0
  151. package/dist/IconsCatalog/settings.adjustments.svg +1 -0
  152. package/dist/IconsCatalog/settings.alert-triangle.svg +1 -0
  153. package/dist/IconsCatalog/settings.bell.svg +1 -0
  154. package/dist/IconsCatalog/settings.calendar.svg +1 -0
  155. package/dist/IconsCatalog/settings.chart-bar.svg +1 -0
  156. package/dist/IconsCatalog/settings.chart-line.svg +1 -0
  157. package/dist/IconsCatalog/settings.chart-pie.svg +1 -0
  158. package/dist/IconsCatalog/settings.clock.svg +1 -0
  159. package/dist/IconsCatalog/settings.file-text.svg +1 -0
  160. package/dist/IconsCatalog/settings.folder.svg +1 -0
  161. package/dist/IconsCatalog/settings.history.svg +1 -0
  162. package/dist/IconsCatalog/settings.info-circle.svg +1 -0
  163. package/dist/IconsCatalog/settings.list.svg +1 -0
  164. package/dist/IconsCatalog/settings.report.svg +1 -0
  165. package/dist/IconsCatalog/settings.settings.svg +1 -0
  166. package/dist/IconsCatalog/settings.table.svg +1 -0
  167. package/dist/IconsCatalog/space.comet.svg +1 -0
  168. package/dist/IconsCatalog/space.meteor.svg +1 -0
  169. package/dist/IconsCatalog/space.moon-stars.svg +1 -0
  170. package/dist/IconsCatalog/space.orbit.svg +1 -0
  171. package/dist/IconsCatalog/space.parachute.svg +1 -0
  172. package/dist/IconsCatalog/space.plane-departure.svg +1 -0
  173. package/dist/IconsCatalog/space.planet.svg +1 -0
  174. package/dist/IconsCatalog/space.radar-2.svg +1 -0
  175. package/dist/IconsCatalog/space.radar.svg +1 -0
  176. package/dist/IconsCatalog/space.rocket.svg +1 -0
  177. package/dist/IconsCatalog/space.satellite.svg +1 -0
  178. package/dist/IconsCatalog/space.stars.svg +1 -0
  179. package/dist/IconsCatalog/space.target-arrow.svg +1 -0
  180. package/dist/IconsCatalog/space.telescope.svg +1 -0
  181. package/dist/IconsCatalog/space.ufo.svg +1 -0
  182. package/dist/IconsCatalog/space.world-longitude.svg +1 -0
  183. package/dist/IconsCatalog/transport.bike.svg +1 -0
  184. package/dist/IconsCatalog/transport.bus.svg +1 -0
  185. package/dist/IconsCatalog/transport.car.svg +1 -0
  186. package/dist/IconsCatalog/transport.drone.svg +1 -0
  187. package/dist/IconsCatalog/transport.gps.svg +1 -0
  188. package/dist/IconsCatalog/transport.helicopter.svg +1 -0
  189. package/dist/IconsCatalog/transport.map-pin.svg +1 -0
  190. package/dist/IconsCatalog/transport.map.svg +1 -0
  191. package/dist/IconsCatalog/transport.navigation.svg +1 -0
  192. package/dist/IconsCatalog/transport.plane.svg +1 -0
  193. package/dist/IconsCatalog/transport.route.svg +1 -0
  194. package/dist/IconsCatalog/transport.ship.svg +1 -0
  195. package/dist/IconsCatalog/transport.steering-wheel.svg +1 -0
  196. package/dist/IconsCatalog/transport.tractor.svg +1 -0
  197. package/dist/IconsCatalog/transport.train.svg +1 -0
  198. package/dist/IconsCatalog/transport.truck.svg +1 -0
  199. package/dist/IconsMatrix.svelte +68 -0
  200. package/dist/IconsMatrix.svelte.d.ts +8 -0
  201. package/dist/Input/Input.svelte +2 -2
  202. package/dist/PropsListModal.svelte +1 -1
  203. package/dist/Select/Select.svelte +3 -3
  204. package/dist/Switch/Switch.svelte +1 -1
  205. package/dist/Table/Table.svelte +4 -4
  206. package/dist/Tabs/Tabs.svelte +1 -1
  207. package/dist/VideoViewer/VideoViewer.svelte +3 -3
  208. package/dist/Widget/Widget.svelte +1 -1
  209. package/dist/WidgetDeviceInfo/WidgetDeviceInfo.svelte +4 -8
  210. package/dist/WidgetFileSystem/WidgetFileSystem.svelte +5 -8
  211. package/dist/WidgetHeader.svelte +2 -2
  212. package/dist/WidgetMap/WidgetMap.svelte +11 -18
  213. package/dist/WidgetMap/mapWrapper/MapLibre.svelte +34 -0
  214. package/dist/WidgetMap/mission/HelpText.svelte +1 -1
  215. package/dist/WidgetMap/mission/MapAgro.svelte +9 -21
  216. package/dist/WidgetMap/mission/MapRoute.svelte +5 -17
  217. package/dist/WidgetMap/mission/MissionLayers.svelte +2 -2
  218. package/dist/WidgetMap/mission/MissionSim.svelte +5 -5
  219. package/dist/WidgetPFD/WidgetPFD.svelte +7 -11
  220. package/dist/WidgetRGBStrip/WidgetRGBStrip.svelte +4 -8
  221. package/dist/WidgetStackInfo/WidgetStackInfo.svelte +5 -8
  222. package/dist/WidgetWiFi/README.md +1 -1
  223. package/dist/WidgetWiFi/WidgetWiFi.svelte +4 -8
  224. package/dist/icons.d.ts +1 -0
  225. package/dist/icons.js +466 -99
  226. package/dist/index.d.ts +3 -0
  227. package/dist/index.js +3 -0
  228. package/dist/locales/translations.js +19 -15
  229. package/dist/theme.css +73 -39
  230. package/dist/themeWatch.d.ts +2 -0
  231. package/dist/themeWatch.js +26 -0
  232. package/dist/widgetAccent.d.ts +1 -0
  233. package/dist/widgetAccent.js +2 -1
  234. package/dist/widgetCollapse.d.ts +2 -2
  235. package/dist/widgetCollapse.js +12 -7
  236. package/package.json +1 -1
  237. package/dist/IconsCatalog/account.card.svg +0 -1
  238. package/dist/IconsCatalog/account.group.svg +0 -1
  239. package/dist/IconsCatalog/account.key.svg +0 -1
  240. package/dist/IconsCatalog/account.lock.svg +0 -1
  241. package/dist/IconsCatalog/actions.debug.svg +0 -8
  242. package/dist/IconsCatalog/actions.edit.svg +0 -10
  243. package/dist/IconsCatalog/actions.hammer.svg +0 -1
  244. package/dist/IconsCatalog/actions.list.svg +0 -1
  245. package/dist/IconsCatalog/actions.save.svg +0 -6
  246. package/dist/IconsCatalog/actions.settings.svg +0 -1
  247. package/dist/IconsCatalog/actions.spanner.svg +0 -1
  248. package/dist/IconsCatalog/actions.terminal.svg +0 -1
  249. package/dist/IconsCatalog/actions.trash.svg +0 -1
  250. package/dist/IconsCatalog/connectivity.airplane.svg +0 -1
  251. package/dist/IconsCatalog/connectivity.cellular.svg +0 -8
  252. package/dist/IconsCatalog/connectivity.cloud.svg +0 -1
  253. package/dist/IconsCatalog/connectivity.compass.svg +0 -1
  254. package/dist/IconsCatalog/connectivity.globe.svg +0 -1
  255. package/dist/IconsCatalog/connectivity.link.svg +0 -2
  256. package/dist/IconsCatalog/connectivity.point.svg +0 -1
  257. package/dist/IconsCatalog/connectivity.share.svg +0 -1
  258. package/dist/IconsCatalog/connectivity.wifi.svg +0 -1
  259. package/dist/IconsCatalog/data.circlecompass.svg +0 -1
  260. package/dist/IconsCatalog/data.clock.svg +0 -1
  261. package/dist/IconsCatalog/data.control.svg +0 -1
  262. package/dist/IconsCatalog/data.graph.svg +0 -1
  263. package/dist/IconsCatalog/data.sinewave.svg +0 -1
  264. package/dist/IconsCatalog/data.speed.svg +0 -1
  265. package/dist/IconsCatalog/data.wind.svg +0 -1
  266. package/dist/IconsCatalog/devices.chip.svg +0 -1
  267. package/dist/IconsCatalog/devices.controller.svg +0 -1
  268. package/dist/IconsCatalog/devices.display.svg +0 -1
  269. package/dist/IconsCatalog/devices.fan.svg +0 -1
  270. package/dist/IconsCatalog/devices.jeck.svg +0 -1
  271. package/dist/IconsCatalog/devices.magnit.svg +0 -1
  272. package/dist/IconsCatalog/devices.memory.svg +0 -1
  273. package/dist/IconsCatalog/devices.volume.svg +0 -1
  274. package/dist/IconsCatalog/interface.aim.svg +0 -1
  275. package/dist/IconsCatalog/interface.binocular.svg +0 -1
  276. package/dist/IconsCatalog/interface.block.svg +0 -1
  277. package/dist/IconsCatalog/interface.crosshair.svg +0 -1
  278. package/dist/IconsCatalog/interface.list.svg +0 -1
  279. package/dist/IconsCatalog/interface.search.svg +0 -1
  280. package/dist/IconsCatalog/interface.zoomin.svg +0 -1
  281. package/dist/IconsCatalog/interface.zoomout.svg +0 -1
  282. package/dist/IconsCatalog/media.drone.svg +0 -1
  283. package/dist/IconsCatalog/media.sound.svg +0 -1
  284. package/dist/IconsCatalog/media.soundwaves.svg +0 -1
  285. package/dist/IconsCatalog/media.webcam.svg +0 -1
  286. package/dist/IconsCatalog/notifications.bell.svg +0 -1
  287. package/dist/IconsCatalog/notifications.bulb.svg +0 -1
  288. package/dist/IconsCatalog/notifications.flag.svg +0 -1
  289. package/dist/IconsCatalog/notifications.info.svg +0 -1
  290. package/dist/IconsCatalog/notifications.warning.svg +0 -1
  291. package/dist/IconsCatalog/power.engine.svg +0 -1
  292. package/dist/IconsCatalog/power.flash.svg +0 -1
  293. package/dist/IconsCatalog/power.onoff.svg +0 -1
package/README.md CHANGED
@@ -102,18 +102,33 @@ npm install poe-svelte-ui-lib
102
102
 
103
103
  Поверхности идут в четыре ступени: фон страницы `--bg-body`, панель `--back-color`, блок внутри панели `--container-color`, поле ввода `--field-color`. Для частых случаев есть готовые классы. `ui-panel` для блока прямо на фоне страницы, `ui-inset` для блока внутри панели.
104
104
 
105
- Текст идёт в три ступени: основной `--font-color`, вторичный `--muted-color`, подсказки `--faint-color`. Все три проходят WCAG AA (не ниже 4,5:1) на любом фоне темы. Текст не делают полупрозрачным (`opacity`), для вторичного текста берут `--muted-color`. Мельче 11px подписи не делают.
105
+ Контраст в обеих темах одинаковый, нормы WCAG 2.1 на любом фоне темы:
106
+
107
+ | Что | Порог |
108
+ |---|---|
109
+ | Основной текст `--font-color` | от 14:1 |
110
+ | Вторичный текст `--muted-color` | от 7:1 (AAA) |
111
+ | Подсказки `--faint-color` | от 4,6:1 (AA) |
112
+ | Цветной текст `--*-text`, акцент как текст `--accent-text` | от 6:1, и на своём `--*-soft` |
113
+ | Текст на заливке `--*-color` | от 4,6:1 |
114
+ | Рамки полей, переключателей и кнопок `--border-color` | от 3:1 (WCAG 1.4.11) |
115
+
116
+ Декоративные разделители `--hairline-color` под нормы не попадают: они ничего не обозначают. Палитра пересчитывается генератором в OKLCH под эти пороги, вручную оттенки не подбирают.
117
+
118
+ Текст идёт в три ступени: основной `--font-color`, вторичный `--muted-color`, подсказки `--faint-color`. Текст не делают полупрозрачным (`opacity`), для вторичного текста берут `--muted-color`. Мельче 11px подписи не делают.
106
119
 
107
120
  Цвета ролей - ровная гамма в OKLCH: красный, оранжевый, жёлтый, зелёный, голубой, синий, фиолетовый, плюс серый и розовый. Тоны идут по кругу с близким шагом (27, 58, 98, 150, 225, 262, 310), поэтому соседние цвета, например оранжевый и жёлтый или голубой и синий, хорошо различаются. В палитрах (мастер-цвет, теги) порядок такой: серый, красный, оранжевый, жёлтый, зелёный, голубой, синий, фиолетовый. У каждого цвета четыре варианта:
108
121
 
109
- - `--*-color` - заливка. Текст на ней белый, а на оранжевой и жёлтой тёмный (`--on-orange`, `--on-yellow`). Компоненты берут его из `--on-accent`, классы `bg-orange` и `bg-yellow` подставляют его сами;
122
+ - `--*-color` - заливка. Текст на ней белый, а на оранжевой, жёлтой и голубой тёмный (`--on-orange`, `--on-yellow`, `--on-cyan`). Компоненты берут его из `--on-accent`, классы `bg-orange` и `bg-yellow` подставляют его сами;
110
123
  - `--*-text` - цветной текст;
111
124
  - `--*-soft` - мягкий фон блока или строки;
112
125
  - `--*-mark` - самый яркий цвет гаммы для полос, точек, тегов и индикаторов. Для текста он не годится, жёлтый и голубой на белом не читаются.
113
126
 
114
- Акцентный цвет `--accent-color` - это синий из гаммы.
127
+ Акцентный цвет `--accent-color` - это синий из гаммы, заливка. Когда акцент нужен как текст, значок, рамка или кольцо фокуса, берут `--accent-text`: в тёмной теме заливка темна для тонкой линии. В виджете с мастер-цветом оба токена переопределяет `widgetAccentStyle`.
115
128
 
116
- Цветной текст пишут через `--red-text`, `--green-text`, `--orange-text` и так далее (классы `text-(--red-text)`), а не через `--red-color`. Заливки `--*-color` как текст плохо читаются: в тёмной теме они тёмные, а жёлтая и оранжевая слишком светлые на белом.
129
+ Цветной текст, рамки и линии пишут через `--red-text`, `--green-text`, `--orange-text` и так далее (классы `text-(--red-text)`, `border-(--red-text)`), а не через `--red-color`. Заливки `--*-color` как текст и тонкие линии плохо читаются: в тёмной теме они тёмные, а жёлтая и оранжевая слишком светлые на белом. Классы `border-*` в тёмной теме сами берут цвет метки.
130
+
131
+ Виджеты, которые рисуют цветами из JS (карта, графики), узнают тему через `isDarkTheme(el)` и следят за её сменой через `watchTheme(cb)` из `themeWatch.ts`. Тёмная тема включает `color-scheme: dark`, поэтому выпадающие списки, чекбоксы и прокрутка браузера тоже тёмные.
117
132
 
118
133
  Панели не делают полупрозрачными, на фоне они теряются. Выпадающие меню делают через `ui-panel` с тенью `--elevation-3`.
119
134
 
@@ -136,6 +151,16 @@ npm install poe-svelte-ui-lib
136
151
 
137
152
  Посмотреть всю тему разом можно на вкладке «Тема» на главной витрины. Там палитра, все компоненты с демо-данными, типографика и Markdown.
138
153
 
154
+ ## Иконки
155
+
156
+ Каталог иконок для конструктора лежит в `src/lib/IconsCatalog`. Это 12 категорий по 16 иконок. Иконки обозначают темы и подсистемы устройства, их ставят в заголовки аккордеонов и похожих блоков, поэтому стрелок, плюсов, крестиков и повторов в каталоге нет. Категории: питание и электрика, электроника, связь и сеть, датчики и измерения, климат и среда, свет, производство, транспорт и навигация, авиация и космос, медиа, дом и безопасность, настройки и данные. Порядок идёт от простого оборудования к сложному, настройки и данные в конце.
157
+
158
+ Все иконки из одного набора, [Tabler Icons](https://tabler.io/icons) (MIT): контурные, сетка 24 px, линия 1,75. Цвет берут из `currentColor`, поэтому иконка сама следует теме и мастер-цвету.
159
+
160
+ Файл называется `категория.имя.svg`, имя - как в Tabler. Скрипт `npm run UpdateIconsLib` собирает из файлов `icons.ts`: `ICONS` (иконки по категориям), `ICON_NAMES` (имена для поиска и подсказок) и `ICONS_ARRAY` (наборы состояний из папок `battery`, `bulb`, `propeller`, их переключает `Widget` по значению). Порядок категорий задан в `CATEGORY_ORDER` в `iconsLib.ts`, название категории - ключ `constructor.props.icon.<категория>` в словаре.
161
+
162
+ В конструкторе иконку выбирают в окне `IconsMatrix`: категории матрицей 4×3 (в клетке 4×4), сверху поиск по имени или категории, при наведении подсказка с именем. Иконка сохраняется в GUI как SVG, поэтому перестановка каталога не ломает сохранённые интерфейсы. Весь каталог с именами виден на вкладке «Иконки» на главной витрины, клик по иконке копирует её SVG.
163
+
139
164
  ## Языки
140
165
 
141
166
  Список языков задан в одном месте, `LANGUAGES` в `src/lib/locales/languages.ts`. Сейчас это RU, EN и ZH. Чтобы добавить язык, достаточно одной записи там. Переключатели языка во всех приложениях подхватят его сами. Пока перевода нет, показывается русский текст.
@@ -47,7 +47,7 @@
47
47
  })
48
48
 
49
49
  const roleClass = $derived.by(() => {
50
- if (disabled) return "text-(--faint-color) border border-transparent cursor-not-allowed"
50
+ if (disabled) return "text-(--muted-color) border border-transparent cursor-not-allowed"
51
51
  switch (role) {
52
52
  case "primary":
53
53
  case "destructive":
@@ -55,7 +55,7 @@
55
55
  case "secondary":
56
56
  return "text-(--font-color) border border-(--border-color) hover:bg-(--container-color)"
57
57
  default:
58
- return "text-(--accent-color) border border-transparent hover:bg-(--accent-soft)"
58
+ return "text-(--accent-text) border border-transparent hover:bg-(--accent-soft)"
59
59
  }
60
60
  })
61
61
 
@@ -92,7 +92,7 @@
92
92
  class={`${twMerge(
93
93
  `relative inline-flex w-full items-center justify-center gap-2 leading-none font-semibold text-[14px] select-none
94
94
  transition-[background-color,filter,box-shadow] duration-150
95
- focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--accent-color)
95
+ focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--accent-text)
96
96
  ${isIconOnly ? "aspect-square rounded-full p-0" : "h-8 rounded-[10px] px-4 py-2"}
97
97
  ${disabled ? "" : "cursor-pointer active:scale-[0.97]"}`,
98
98
  roleClass,
@@ -9,6 +9,7 @@
9
9
  /* Значок «нет иконки» для компактной кнопки выбора иконки */
10
10
  const ICON_PLACEHOLDER = `<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21"/></svg>`
11
11
  import TextsEditor from "./TextsEditor.svelte"
12
+ import IconsMatrix from "./IconsMatrix.svelte"
12
13
 
13
14
  let {
14
15
  snippet = "",
@@ -257,33 +258,39 @@
257
258
  <UI.Button content={{ name: initialValue.name }} componentClass="bg-blue" onClick={() => (showIconLib = true)} />
258
259
  {/if}
259
260
  {#if showIconLib}
260
- <UI.Modal bind:isOpen={showIconLib} wrapperClass="w-130">
261
- {#snippet main()}
262
- <div class="grid" style="grid-template-columns: repeat({initialValue.icons.selectArray ? 1 : 3}, minmax(0, 1fr));">
263
- {#each initialValue.icons.array as category}
264
- <div
265
- class="relative m-1.5 rounded-xl border-2 border-(--border-color) p-3 {initialValue.icons.selectArray ? 'cursor-pointer' : ''}"
266
- role="button"
267
- tabindex={null}
268
- onkeydown={null}
269
- onclick={() => (initialValue.icons.selectArray ? initialValue.updateProperty(category[1]) : {})}
270
- >
271
- <div class="absolute -top-3.5 bg-(--back-color) px-1">{$T(`constructor.props.icon.${category[0]}`)}</div>
272
- <div class="grid place-items-center gap-2" style="grid-template-columns: repeat({initialValue.icons.selectArray ? 9 : 3}, minmax(0, 1fr));">
273
- {#each category[1] as icon}
274
- <button
275
- class="h-8 w-8 cursor-pointer [&_svg]:h-full [&_svg]:max-h-full [&_svg]:w-full [&_svg]:max-w-full"
276
- onclick={() => initialValue.updateProperty(icon)}
277
- >
278
- {@html icon}
279
- </button>
261
+ {#if initialValue.icons.selectArray}
262
+ <!-- Наборы состояний: выбирается весь ряд целиком -->
263
+ <UI.Modal bind:isOpen={showIconLib} wrapperClass="w-130">
264
+ {#snippet main()}
265
+ <div class="flex flex-col gap-2">
266
+ {#each initialValue.icons.array as category (category[0])}
267
+ <button
268
+ class="flex cursor-pointer items-center gap-3 rounded-xl border border-(--border-color) p-3 hover:bg-(--container-color)"
269
+ onclick={() => initialValue.updateProperty(category[1])}
270
+ >
271
+ <span class="w-28 text-left text-sm">{$T(`constructor.props.icon.${category[0]}`)}</span>
272
+ {#each category[1] as icon, i (i)}
273
+ <span class="size-8 [&_svg]:h-full [&_svg]:w-full">{@html icon}</span>
280
274
  {/each}
281
- </div>
282
- </div>
283
- {/each}
284
- </div>
285
- {/snippet}
286
- </UI.Modal>
275
+ </button>
276
+ {/each}
277
+ </div>
278
+ {/snippet}
279
+ </UI.Modal>
280
+ {:else}
281
+ <!-- Каталог иконок матрицей 4×4: категории рамками, поиск по имени или категории -->
282
+ <UI.Modal bind:isOpen={showIconLib} title={initialValue.name} wrapperClass="w-auto">
283
+ {#snippet main()}
284
+ <IconsMatrix
285
+ selected={typeof initialValue.icon === "string" ? initialValue.icon : ""}
286
+ onPick={(svg) => {
287
+ initialValue.updateProperty(svg)
288
+ showIconLib = false
289
+ }}
290
+ />
291
+ {/snippet}
292
+ </UI.Modal>
293
+ {/if}
287
294
  {/if}
288
295
  {#if initialValue.icon}
289
296
  <UI.Button
@@ -107,11 +107,11 @@
107
107
  <div
108
108
  class={twMerge(
109
109
  `flex h-8 w-full items-center gap-3 overflow-hidden rounded-[12px] border border-dashed border-(--border-color) bg-(--field-color) px-3 text-[14px]
110
- transition-colors duration-150 ${disabled ? "opacity-45" : "hover:border-(--accent-color)"}`,
110
+ transition-colors duration-150 ${disabled ? "opacity-45" : "hover:border-(--accent-text)"}`,
111
111
  componentClass,
112
112
  )}
113
113
  >
114
- <span class="shrink-0 font-semibold whitespace-nowrap text-(--accent-color)">
114
+ <span class="shrink-0 font-semibold whitespace-nowrap text-(--accent-text)">
115
115
  {$T("constructor.props.file.select")}
116
116
  </span>
117
117
  <div class="flex min-w-0 flex-1 items-center justify-start truncate {fileName ? 'text-(--font-color)' : 'text-(--faint-color)'}">
@@ -17,6 +17,7 @@
17
17
  <script lang="ts">
18
18
  import { T } from "../locales/i18n"
19
19
  import { onMount } from "svelte"
20
+ import { watchTheme } from "../themeWatch"
20
21
  import Select from "../Select/Select.svelte"
21
22
  import type { IGraphDataObject, IGraphProps } from "../types"
22
23
 
@@ -108,8 +109,11 @@
108
109
  }
109
110
  }
110
111
 
111
- /* Вызываем инициализацию при монтировании и при изменении streamingData */
112
- onMount(initializeGraphData)
112
+ /* Вызываем инициализацию при монтировании и при изменении streamingData; при смене темы сетка и подписи перерисовываются её цветами */
113
+ onMount(() => {
114
+ initializeGraphData()
115
+ return watchTheme(() => requestAnimationFrame(drawAllGraphs))
116
+ })
113
117
  $effect(() => {
114
118
  initializeGraphData()
115
119
  })
@@ -312,7 +316,7 @@
312
316
  const { padding, graphWidth, graphHeight, minX, timeSpan, yMin, yMax, getX, getY } = computeGeometry()
313
317
 
314
318
  /* Сетка в стиле PeriodChart: пунктир цветом --faint-color темы, подписи тем же цветом без прозрачности */
315
- const gridColor = getComputedStyle(canvas).getPropertyValue("--faint-color").trim() || "#5f6774"
319
+ const gridColor = getComputedStyle(canvas).getPropertyValue("--faint-color").trim() || "#616a79"
316
320
  ctx.strokeStyle = gridColor
317
321
  ctx.fillStyle = gridColor
318
322
  ctx.lineWidth = 1
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M8 16a3 3 0 0 1 -3 3"/><path d="M16 16a3 3 0 0 0 3 3"/><path d="M12 16v4"/><path d="M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2l0 -4"/><path d="M7 13v-3a1 1 0 0 1 1 -1h8a1 1 0 0 1 1 1v3"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 12v-9l4.912 1.914a1.7 1.7 0 0 1 .428 2.925l-5.34 4.161"/><path d="M12 12h9l-1.914 4.912a1.7 1.7 0 0 1 -2.925 .428l-4.161 -5.34"/><path d="M12 12h-9l1.914 -4.912a1.7 1.7 0 0 1 2.925 -.428l4.161 5.34"/><path d="M12 12v9l-4.912 -1.914a1.7 1.7 0 0 1 -.428 -2.925l5.34 -4.161"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7"/><path d="M11 13v2m0 3v2m4 -5v2m0 3v2"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M7.502 19.423c2.602 2.105 6.395 2.105 8.996 0c2.602 -2.105 3.262 -5.708 1.566 -8.546l-4.89 -7.26c-.42 -.625 -1.287 -.803 -1.936 -.397a1.376 1.376 0 0 0 -.41 .397l-4.893 7.26c-1.695 2.838 -1.035 6.441 1.567 8.546"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M4.072 20.3a2.999 2.999 0 0 0 3.856 0a3.002 3.002 0 0 0 .67 -3.798l-2.095 -3.227a.6 .6 0 0 0 -1.005 0l-2.098 3.227a3.003 3.003 0 0 0 .671 3.798"/><path d="M16.072 20.3a2.999 2.999 0 0 0 3.856 0a3.002 3.002 0 0 0 .67 -3.798l-2.095 -3.227a.6 .6 0 0 0 -1.005 0l-2.098 3.227a3.003 3.003 0 0 0 .671 3.798"/><path d="M10.072 10.3a2.999 2.999 0 0 0 3.856 0a3.002 3.002 0 0 0 .67 -3.798l-2.095 -3.227a.6 .6 0 0 0 -1.005 0l-2.098 3.227a3.003 3.003 0 0 0 .671 3.798l.001 0"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 10.941c2.333 -3.308 .167 -7.823 -1 -8.941c0 3.395 -2.235 5.299 -3.667 6.706c-1.43 1.408 -2.333 3.294 -2.333 5.588c0 3.704 3.134 6.706 7 6.706c3.866 0 7 -3.002 7 -6.706c0 -1.712 -1.232 -4.403 -2.333 -5.588c-2.084 3.353 -3.257 3.353 -4.667 2.235"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 21c.5 -4.5 2.5 -8 7 -10"/><path d="M9 18c6.218 0 10.5 -3.288 11 -12v-2h-4.014c-9 0 -11.986 4 -12 9c0 1 0 3 2 5h3l.014 0"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 5h3m4 0h9"/><path d="M3 10h11m4 0h1"/><path d="M5 15h5m4 0h7"/><path d="M3 20h9m4 0h3"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454l0 .008"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M7 15h10v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2v-4"/><path d="M12 9a6 6 0 0 0 -6 -6h-3v2a6 6 0 0 0 6 6h3"/><path d="M12 11a6 6 0 0 1 6 -6h3v1a6 6 0 0 1 -6 6h-3"/><path d="M12 15l0 -6"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 10a6 6 0 0 0 -6 -6h-3v2a6 6 0 0 0 6 6h3"/><path d="M12 14a6 6 0 0 1 6 -6h3v1a6 6 0 0 1 -6 6h-3"/><path d="M12 20l0 -10"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M10 4l2 1l2 -1"/><path d="M12 2v6.5l3 1.72"/><path d="M17.928 6.268l.134 2.232l1.866 1.232"/><path d="M20.66 7l-5.629 3.25l.01 3.458"/><path d="M19.928 14.268l-1.866 1.232l-.134 2.232"/><path d="M20.66 17l-5.629 -3.25l-2.99 1.738"/><path d="M14 20l-2 -1l-2 1"/><path d="M12 22v-6.5l-3 -1.72"/><path d="M6.072 17.732l-.134 -2.232l-1.866 -1.232"/><path d="M3.34 17l5.629 -3.25l-.01 -3.458"/><path d="M4.072 9.732l1.866 -1.232l.134 -2.232"/><path d="M3.34 7l5.629 3.25l2.99 -1.738"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"/><path d="M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M4 13.5a4 4 0 1 0 4 0v-8.5a2 2 0 1 0 -4 0v8.5"/><path d="M4 9h4"/><path d="M13 16a4 4 0 1 0 0 -8a4.07 4.07 0 0 0 -1 .124"/><path d="M13 3v1"/><path d="M21 12h1"/><path d="M13 20v1"/><path d="M19.4 5.6l-.7 .7"/><path d="M18.7 17.7l.7 .7"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M16 5l3 3l-2 1l4 4l-3 1l4 4h-9"/><path d="M15 21l0 -3"/><path d="M8 13l-2 -2"/><path d="M8 12l2 -2"/><path d="M8 21v-13"/><path d="M5.824 16a3 3 0 0 1 -2.743 -3.69a3 3 0 0 1 .304 -4.833a3 3 0 0 1 4.615 -3.707a3 3 0 0 1 4.614 3.707a3 3 0 0 1 .305 4.833a3 3 0 0 1 -2.919 3.695h-4l-.176 -.005"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 8h8.5a2.5 2.5 0 1 0 -2.34 -3.24"/><path d="M3 12h15.5a2.5 2.5 0 1 1 -2.34 3.24"/><path d="M4 16h5.5a2.5 2.5 0 1 1 -2.34 3.24"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 6a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1l0 -12"/><path d="M8 10v-2h2m6 6v2h-2m-4 0h-2v-2m8 -4v-2h-2"/><path d="M3 10h2"/><path d="M3 14h2"/><path d="M10 3v2"/><path d="M14 3v2"/><path d="M21 10h-2"/><path d="M21 14h-2"/><path d="M14 21v-2"/><path d="M10 21v-2"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 6a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1l0 -12"/><path d="M9 9h6v6h-6l0 -6"/><path d="M3 10h2"/><path d="M3 14h2"/><path d="M10 3v2"/><path d="M14 3v2"/><path d="M21 10h-2"/><path d="M21 14h-2"/><path d="M14 21v-2"/><path d="M10 21v-2"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M4 6a8 3 0 1 0 16 0a8 3 0 1 0 -16 0"/><path d="M4 6v6a8 3 0 0 0 16 0v-6"/><path d="M4 12v6a8 3 0 0 0 16 0v-6"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 5a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-10"/><path d="M7 20h10"/><path d="M9 16v4"/><path d="M15 16v4"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M2 8a2 2 0 0 1 2 -2h16a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2l0 -8"/><path d="M6 12h4m-2 -2v4"/><path d="M15 11l0 .01"/><path d="M18 13l0 .01"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 19l18 0"/><path d="M5 7a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v8a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1l0 -8"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M6 5a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-14"/><path d="M11 4h2"/><path d="M12 17v.01"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M7 21h10a2 2 0 0 0 2 -2v-14a2 2 0 0 0 -2 -2h-6.172a2 2 0 0 0 -1.414 .586l-3.828 3.828a2 2 0 0 0 -.586 1.414v10.172a2 2 0 0 0 2 2"/><path d="M13 6v2"/><path d="M16 6v2"/><path d="M10 7v1"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 4a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v16a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1v-16"/><path d="M11 17a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 9a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2l0 -9"/><path d="M16 3l-4 4l-4 -4"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9a3 3 0 0 1 3 -3h6a3 3 0 0 1 3 3v6a3 3 0 0 1 -3 3h-6a3 3 0 0 1 -3 -3v-6"/><path d="M9 18v3h6v-3"/><path d="M9 6v-3h6v3"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M2 8a2 2 0 0 1 2 -2h16a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2l0 -8"/><path d="M6 10l0 .01"/><path d="M10 10l0 .01"/><path d="M14 10l0 .01"/><path d="M18 10l0 .01"/><path d="M6 14l0 .01"/><path d="M18 14l0 .01"/><path d="M10 14l4 .01"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M17 17h2a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-14a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h2"/><path d="M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4"/><path d="M7 15a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2l0 -4"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-2"/><path d="M3 15a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3l0 -2"/><path d="M7 8l0 .01"/><path d="M7 16l0 .01"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M8 9l3 3l-3 3"/><path d="M13 15l3 0"/><path d="M3 6a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2l0 -12"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M10 19a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M12 17v-11.5"/><path d="M7 10v3l5 3"/><path d="M12 14.5l5 -2v-2.5"/><path d="M16 10h2v-2h-2l0 2"/><path d="M6 9a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/><path d="M10 5.5h4l-2 -2.5l-2 2.5"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 9a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M22 17v-3h-20"/><path d="M2 8v9"/><path d="M12 14h10v-2a3 3 0 0 0 -3 -3h-7v5"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 21l18 0"/><path d="M9 8l1 0"/><path d="M9 12l1 0"/><path d="M9 16l1 0"/><path d="M14 8l1 0"/><path d="M14 12l1 0"/><path d="M14 16l1 0"/><path d="M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 20a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"/><path d="M15 20a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"/><path d="M5 20h-2v-6l2 -5h9l4 5h1a2 2 0 0 1 2 2v4h-2m-4 0h-6m-6 -6h15m-6 0v-5"/><path d="M3 6l9 -4l9 4"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M14 12v.01"/><path d="M3 21h18"/><path d="M6 21v-16a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v16"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 5a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1l0 -14"/><path d="M10 10l2 -2l2 2"/><path d="M10 14l2 2l2 -2"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12v4h16v-4l-16 0"/><path d="M6 16v4h4v-4m0 -4v-6l-2 -2l-2 2v6"/><path d="M14 16v4h4v-4m0 -4v-6l-2 -2l-2 2v6"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M18.9 7a8 8 0 0 1 1.1 5v1a6 6 0 0 0 .8 3"/><path d="M8 11a4 4 0 0 1 8 0v1a10 10 0 0 0 2 6"/><path d="M12 11v2a14 14 0 0 0 2.5 8"/><path d="M8 15a18 18 0 0 0 1.8 6"/><path d="M4.9 19a22 22 0 0 1 -.9 -7v-1a8 8 0 0 1 12 -6.95"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 5a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2l0 -14"/><path d="M5 10h14"/><path d="M9 13v3"/><path d="M9 6v1"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12l-2 0l9 -9l9 9l-2 0"/><path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"/><path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M7 12h3v4h-3l0 -4"/><path d="M10 6h-6a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h16a1 1 0 0 0 1 -1v-12a1 1 0 0 0 -1 -1h-6"/><path d="M10 4a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1l0 -3"/><path d="M14 16h2"/><path d="M14 12h4"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M16.555 3.843l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.643 2.643a2.877 2.877 0 0 1 -4.069 0l-.301 -.301l-6.558 6.558a2 2 0 0 1 -1.239 .578l-.175 .008h-1.172a1 1 0 0 1 -.993 -.883l-.007 -.117v-1.172a2 2 0 0 1 .467 -1.284l.119 -.13l.414 -.414h2v-2h2v-2l2.144 -2.144l-.301 -.301a2.877 2.877 0 0 1 0 -4.069l2.643 -2.643a2.877 2.877 0 0 1 4.069 0"/><path d="M15 9h.01"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6"/><path d="M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"/><path d="M8 11v-4a4 4 0 1 1 8 0v4"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3a12 12 0 0 0 8.5 3a12 12 0 0 1 -8.5 15a12 12 0 0 1 -8.5 -15a12 12 0 0 0 8.5 -3"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M4 11a2 2 0 0 1 2 2v1h12v-1a2 2 0 1 1 4 0v5a1 1 0 0 1 -1 1h-18a1 1 0 0 1 -1 -1v-5a2 2 0 0 1 2 -2"/><path d="M4 11v-3a3 3 0 0 1 3 -3h10a3 3 0 0 1 3 3v3"/><path d="M12 5v9"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 7a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"/><path d="M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/><path d="M21 21v-2a4 4 0 0 0 -3 -3.85"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3c-3.866 0 -7 3.272 -7 7v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1 -1v-10c0 -3.728 -3.134 -7 -7 -7"/><path d="M5 13l14 0"/><path d="M12 3l0 18"/></svg>
@@ -1,60 +1,50 @@
1
+ /* $lib/IconsCatalog/iconsLib.ts - сборка icons.ts из файлов каталога: «категория.имя.svg» (Tabler Icons, MIT) и папки наборов состояний (battery, bulb, propeller). Запуск: npm run UpdateIconsLib */
1
2
  import fs from "fs";
2
3
  import { join } from "path";
3
- const scanAllIcons = async () => {
4
- const dirPath = "src/lib/IconsCatalog";
5
- const files = fs.readdirSync(dirPath);
6
- const categories = {};
7
- const iconArray = {};
8
- files
9
- .filter((file) => !file.endsWith(".ts") && !file.includes("."))
10
- .forEach((dir) => {
11
- if (!iconArray[dir]) {
12
- iconArray[dir] = [];
13
- }
14
- const newDirPath = join(dirPath, dir);
15
- const arrayFiles = fs.readdirSync(newDirPath);
16
- arrayFiles.forEach((file) => {
17
- const fullPath = join(newDirPath, file);
18
- const svgContent = fs.readFileSync(fullPath, "utf8");
19
- iconArray[dir].push(svgContent);
20
- });
21
- });
22
- files
23
- .filter((file) => !file.endsWith(".ts") && file.includes("."))
24
- .forEach((file) => {
25
- const parts = file.split(".");
26
- if (parts.length < 3)
27
- return;
28
- const category = parts[0];
29
- const extension = parts[parts.length - 1];
30
- if (extension !== "svg")
31
- return;
32
- const fullPath = join(dirPath, file);
33
- const svgContent = fs.readFileSync(fullPath, "utf8");
34
- if (!categories[category]) {
35
- categories[category] = [];
36
- }
37
- categories[category].push(svgContent);
38
- });
39
- const content = `export const ICONS: [string, string[]][] = [
40
- ${Object.entries(categories)
41
- .map(([category, svgs]) => {
42
- const svgArray = svgs.map((svg) => JSON.stringify(svg)).join(",\n ");
43
- return ` [${JSON.stringify(category)}, [\n ${svgArray}\n ]]`;
44
- })
45
- .join(",\n")}
46
- ]
4
+ /* Порядок 12 категорий по 16 иконок (матрица 4×3 в пикере, в клетке сетка 4×4): темы и подсистемы устройства для заголовков аккордеонов, от простого оборудования к сложному, настройки и данные в конце */
5
+ const CATEGORY_ORDER = [
6
+ "power",
7
+ "electronics",
8
+ "network",
9
+ "sensors",
10
+ "climate",
11
+ "light",
12
+ "industry",
13
+ "transport",
14
+ "space",
15
+ "media",
16
+ "home",
17
+ "settings",
18
+ ];
19
+ const dirPath = "src/lib/IconsCatalog";
20
+ const files = fs.readdirSync(dirPath).sort();
21
+ /* Наборы состояний: папка - один набор иконок, которые виджет переключает по значению */
22
+ const stateSets = files
23
+ .filter((file) => !file.includes("."))
24
+ .map((dir) => [dir, fs.readdirSync(join(dirPath, dir)).sort().map((file) => fs.readFileSync(join(dirPath, dir, file), "utf8").trim())]);
25
+ const categories = new Map();
26
+ for (const file of files) {
27
+ const parts = file.split(".");
28
+ if (parts.length !== 3 || parts[2] !== "svg")
29
+ continue;
30
+ const [category, name] = parts;
31
+ if (!CATEGORY_ORDER.includes(category))
32
+ throw new Error(`Категория ${category} не указана в CATEGORY_ORDER`);
33
+ const entry = categories.get(category) ?? { names: [], svgs: [] };
34
+ entry.names.push(name);
35
+ entry.svgs.push(fs.readFileSync(join(dirPath, file), "utf8").trim());
36
+ categories.set(category, entry);
37
+ }
38
+ const ordered = CATEGORY_ORDER.filter((category) => categories.has(category)).map((category) => [category, categories.get(category)]);
39
+ const content = `/* $lib/icons.ts - собран из IconsCatalog скриптом npm run UpdateIconsLib, вручную не править */
40
+ /* Иконки по категориям: [категория, SVG[]], порядок категорий - CATEGORY_ORDER в iconsLib.ts */
41
+ export const ICONS: [string, string[]][] = ${JSON.stringify(ordered.map(([category, entry]) => [category, entry.svgs]), null, 2)}
47
42
 
48
- export const ICONS_ARRAY: [string, string[]][] = [
49
- ${Object.entries(iconArray)
50
- .map(([name, svgs]) => {
51
- const svgArray = svgs.map((svg) => JSON.stringify(svg)).join(",\n ");
52
- return ` [${JSON.stringify(name)}, [\n ${svgArray}\n ]]`;
53
- })
54
- .join(",\n")}
55
- ]
43
+ /* Имена иконок (Tabler) в том же порядке, что и в ICONS: для поиска в пикере и подписей на витрине */
44
+ export const ICON_NAMES: Record<string, string[]> = ${JSON.stringify(Object.fromEntries(ordered.map(([category, entry]) => [category, entry.names])), null, 2)}
45
+
46
+ /* Наборы состояний: [набор, SVG[]] */
47
+ export const ICONS_ARRAY: [string, string[]][] = ${JSON.stringify(stateSets, null, 2)}
56
48
  `;
57
- fs.writeFileSync("src/lib/icons.ts", content);
58
- console.log("icons.ts создан успешно");
59
- };
60
- scanAllIcons();
49
+ fs.writeFileSync("src/lib/icons.ts", content);
50
+ console.log(`icons.ts создан: ${ordered.reduce((sum, [, entry]) => sum + entry.svgs.length, 0)} иконок в ${ordered.length} категориях, наборов состояний ${stateSets.length}`);
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M19.875 6.27c.7 .398 1.13 1.143 1.125 1.948v7.284c0 .809 -.443 1.555 -1.158 1.948l-6.75 4.27a2.27 2.27 0 0 1 -2.184 0l-6.75 -4.27a2.23 2.23 0 0 1 -1.158 -1.948v-7.285c0 -.809 .443 -1.554 1.158 -1.947l6.75 -3.98a2.33 2.33 0 0 1 2.25 0l6.75 3.98l-.033 0"/><path d="M15.5 9.422c.312 .18 .503 .515 .5 .876v3.277c0 .364 -.197 .7 -.515 .877l-3 1.922a1 1 0 0 1 -.97 0l-3 -1.922a1 1 0 0 1 -.515 -.876v-3.278c0 -.364 .197 -.7 .514 -.877l3 -1.79c.311 -.174 .69 -.174 1 0l3 1.79h-.014l0 .001"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M7.278 4h9.444a2 2 0 0 1 1.841 1.22c.958 2.26 1.437 4.52 1.437 6.78c0 2.26 -.479 4.52 -1.437 6.78a2 2 0 0 1 -1.841 1.22h-9.444a2 2 0 0 1 -1.841 -1.22c-.958 -2.26 -1.437 -4.52 -1.437 -6.78c0 -2.26 .479 -4.52 1.437 -6.78a2 2 0 0 1 1.841 -1.22"/><path d="M14 4c.667 2.667 1 5.333 1 8s-.333 5.333 -1 8"/><path d="M10 4c-.667 2.667 -1 5.333 -1 8s.333 5.333 1 8"/><path d="M4.5 16h15"/><path d="M19.5 8h-15"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5"/><path d="M12 12l8 -4.5"/><path d="M12 12l0 9"/><path d="M12 12l-8 -4.5"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M4 21c1.147 -4.02 1.983 -8.027 2 -12h6c.017 3.973 .853 7.98 2 12"/><path d="M12.5 13h4.5c.025 2.612 .894 5.296 2 8"/><path d="M9 5a2.4 2.4 0 0 1 2 -1a2.4 2.4 0 0 1 2 1a2.4 2.4 0 0 0 2 1a2.4 2.4 0 0 0 2 -1a2.4 2.4 0 0 1 2 -1a2.4 2.4 0 0 1 2 1"/><path d="M3 21l19 0"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M6 21h6"/><path d="M9 21v-18l-6 6h18"/><path d="M9 3l10 6"/><path d="M17 9v4a2 2 0 1 1 -2 2"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 10v6"/><path d="M12 5v3"/><path d="M10 5h4"/><path d="M5 13h-2"/><path d="M6 10h2l2 -2h3.382a1 1 0 0 1 .894 .553l1.448 2.894a1 1 0 0 0 .894 .553h1.382v-2h2a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-2v-2h-3v2a1 1 0 0 1 -1 1h-3.465a1 1 0 0 1 -.832 -.445l-1.703 -2.555h-2v-6"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 7a4 4 0 0 1 4 4v9a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1v-9a4 4 0 0 1 4 -4"/><path d="M9 16h6"/><path d="M12 7v-3"/><path d="M16 5l-4 -1l4 -1"/><path d="M12 4h-3a3 3 0 0 0 -3 3"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 17a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M12 17a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M7 17l5 0"/><path d="M3 17v-6h13v6"/><path d="M5 11v-4h4"/><path d="M9 11v-6h4l3 6"/><path d="M22 15h-3v-10"/><path d="M16 13l3 0"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M14 11h1a2 2 0 0 1 2 2v3a1.5 1.5 0 0 0 3 0v-7l-3 -3"/><path d="M4 20v-14a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v14"/><path d="M3 20l12 0"/><path d="M18 7v1a1 1 0 0 0 1 1h1"/><path d="M4 11l10 0"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M11.414 10l-7.383 7.418a2.091 2.091 0 0 0 0 2.967a2.11 2.11 0 0 0 2.976 0l7.407 -7.385"/><path d="M18.121 15.293l2.586 -2.586a1 1 0 0 0 0 -1.414l-7.586 -7.586a1 1 0 0 0 -1.414 0l-2.586 2.586a1 1 0 0 0 0 1.414l7.586 7.586a1 1 0 0 0 1.414 0"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5"/><path d="M12 12l8 -4.5"/><path d="M12 12l0 9"/><path d="M12 12l-8 -4.5"/><path d="M16 5.25l-8 4.5"/></svg>