urfu-ui-kit-react 1.11.6 → 1.11.8

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,17 @@
1
+ /**
2
+ * Отмечает на `<html>`, чем человек сейчас управляет интерфейсом:
3
+ * `data-input-mode="keyboard"` или `data-input-mode="pointer"`.
4
+ *
5
+ * Зачем. Подсветка фокуса нужна тому, кто идёт по странице клавиатурой, и мешает
6
+ * тому, кто просто кликнул в поле мышью. Штатный `:focus-visible` эту разницу
7
+ * различает у кнопок и ссылок, но НЕ у текстовых полей: там браузер показывает
8
+ * фокус всегда, включая клик, — потому что в поле можно печатать. Атрибут даёт
9
+ * стилям то, чего не хватает CSS: способ ввода.
10
+ *
11
+ * Используется в стилях кита так:
12
+ * html[data-input-mode="keyboard"] .u-input:focus { …подсветка… }
13
+ *
14
+ * Слушатели пассивные, на `document`, вешаются один раз за загрузку страницы.
15
+ */
16
+ export declare function installInputModeTracking(): void;
17
+ //# sourceMappingURL=inputMode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inputMode.d.ts","sourceRoot":"","sources":["../../src/utils/inputMode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,wBAAgB,wBAAwB,IAAI,IAAI,CAyB/C"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "UrFU UI-Kit for React Web",
4
4
  "license": "UNLICENSED",
5
5
  "private": false,
6
- "version": "1.11.6",
6
+ "version": "1.11.8",
7
7
  "type": "module",
8
8
  "main": "dist/urfu-ui-kit-react",
9
9
  "types": "dist/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "date-fns": "^3.6.0",
30
30
  "react-datepicker": "^7.4.0",
31
- "urfu-ui-kit-vanilla": "^2.7.6"
31
+ "urfu-ui-kit-vanilla": "^2.7.8"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@chromatic-com/storybook": "^1.3.3",