@rt-tools/ui-kit 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rt-tools/ui-kit",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Yauheni Krumin",
6
6
  "type": "module",
Binary file
@@ -266,7 +266,12 @@ $side-menu: (
266
266
  // Component-local elevation token for the slide-out sub-menu drawer.
267
267
  --rt-side-menu-sub-content-shadow: 14px 0 28px rgb(0 0 0 / 25%), 10px 0 10px rgb(0 0 0 / 22%);
268
268
 
269
- position: relative;
269
+ // Расположение шторки оставлено за Material: `absolute` с растяжкой по верху и низу, а
270
+ // место под боковую шторку оно освобождает отступом на содержимом контейнера. Стоявший
271
+ // здесь `relative` возвращал шторку в поток, она вставала над содержимым, и контейнер
272
+ // получал вдвое большую высоту прокрутки. Прокручивать его хватало одного
273
+ // `scrollIntoView` на активном пункте подменю: панель уезжала вверх на ширину рельсы и
274
+ // обратно не возвращалась.
270
275
  width: max(var(--rt-side-menu-sub-menu-width), var(--rt-side-menu-sub-menu-dragged-width, 0px));
271
276
  min-width: max(var(--rt-side-menu-sub-menu-width), var(--rt-side-menu-sub-menu-dragged-width, 0px));
272
277
  height: 100%;
@@ -579,10 +579,22 @@ declare namespace IRtUiConfig {
579
579
  */
580
580
  appearance?: MatFormFieldAppearance;
581
581
  }
582
+ /** Per-instance-overridable defaults for the aside curtain. */
583
+ interface Aside {
584
+ /**
585
+ * Whether Esc closes an open curtain.
586
+ *
587
+ * The kit default is `false`: the key is pressed to lift a hint or to leave a field, and
588
+ * the whole panel closed together with what was entered. An application that needs the
589
+ * former behaviour names it here once instead of naming it at every call.
590
+ */
591
+ closeOnEscape?: boolean;
592
+ }
582
593
  /** Component-level settings. Each entry overrides `global` for that component only. */
583
594
  interface Components {
584
595
  button?: Button;
585
596
  dynamicSelectors?: DynamicSelectors;
597
+ aside?: Aside;
586
598
  }
587
599
  interface Config {
588
600
  global?: Global;
Binary file