@sima-land/ui-nucleons 45.0.0-alpha.23 → 45.0.0-alpha.25

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/alert/alert.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AlertProps } from './types';
2
2
  /**
3
- * Алерт - небольше модальное окно, блокирующее работу с основным интерфейсом до тех пор, пока оно не будет закрыто.
3
+ * Алерт - небольшое модальное окно, блокирующее работу с основным интерфейсом до тех пор, пока оно не будет закрыто.
4
4
  * Обычно используется для подтверждения действия или выбора действия из списка.
5
5
  * @param props Свойства.
6
6
  * @return Элемент.
package/alert/alert.js CHANGED
@@ -16,7 +16,7 @@ const bind_1 = __importDefault(require("classnames/bind"));
16
16
  const alert_m_scss_1 = __importDefault(require("./alert.m.scss"));
17
17
  const cx = bind_1.default.bind(alert_m_scss_1.default);
18
18
  /**
19
- * Алерт - небольше модальное окно, блокирующее работу с основным интерфейсом до тех пор, пока оно не будет закрыто.
19
+ * Алерт - небольшое модальное окно, блокирующее работу с основным интерфейсом до тех пор, пока оно не будет закрыто.
20
20
  * Обычно используется для подтверждения действия или выбора действия из списка.
21
21
  * @param props Свойства.
22
22
  * @return Элемент.
package/chip/chip.m.scss CHANGED
@@ -22,6 +22,9 @@
22
22
  padding: 0 12px;
23
23
  background: var(--chip-background);
24
24
  color: var(--chip-color);
25
+ transition:
26
+ background 100ms ease-in,
27
+ color 100ms ease-in;
25
28
  &:focus-visible {
26
29
  @include utils.focus-visible-style;
27
30
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sima-land/ui-nucleons",
3
3
  "type": "commonjs",
4
- "version": "45.0.0-alpha.23",
4
+ "version": "45.0.0-alpha.25",
5
5
  "repository": "ssh://git@github.com:sima-land/ui-nucleons.git",
6
6
  "author": "www.sima-land.ru team",
7
7
  "license": "Apache-2.0",
@@ -73,5 +73,90 @@
73
73
  "@sima-land/ui-quarks": "^5.0.0",
74
74
  "react": "^17.0 || ^18.0",
75
75
  "react-dom": "^17.0 || ^18.0"
76
+ },
77
+ "exports": {
78
+ "./breakpoints.scss": "./breakpoints.scss",
79
+ "./colors.scss": "./colors.scss",
80
+ "./gradients.scss": "./gradients.scss",
81
+ "./shadows.scss": "./shadows.scss",
82
+ "./utils.scss": "./utils.scss",
83
+ "./_internal/custom-scrollbar": "./_internal/custom-scrollbar/index.js",
84
+ "./_internal/lifecycle": "./_internal/lifecycle/index.js",
85
+ "./_internal/page-scroll-lock": "./_internal/page-scroll-lock/index.js",
86
+ "./alert": "./alert/index.js",
87
+ "./arrow-button": "./arrow-button/index.js",
88
+ "./autocomplete": "./autocomplete/index.js",
89
+ "./avatar": "./avatar/index.js",
90
+ "./base-input": "./base-input/index.js",
91
+ "./bottom-bar": "./bottom-bar/index.js",
92
+ "./bottom-bar/bottom-bar-util.scss": "./bottom-bar/bottom-bar-util.scss",
93
+ "./box": "./box/index.js",
94
+ "./button": "./button/index.js",
95
+ "./button/button-util.scss": "./button/button-util.scss",
96
+ "./carousel": "./carousel/index.js",
97
+ "./checkbox": "./checkbox/index.js",
98
+ "./chip": "./chip/index.js",
99
+ "./chip/chip-util.scss": "./chip/chip-util.scss",
100
+ "./clean-buttons": "./clean-buttons/index.js",
101
+ "./clean-buttons/clean-buttons-util.scss": "./clean-buttons/clean-buttons-util.scss",
102
+ "./colors": "./colors/index.js",
103
+ "./context": "./context/index.js",
104
+ "./dot-nav": "./dot-nav/index.js",
105
+ "./dropdown-item": "./dropdown-item/index.js",
106
+ "./dropdown": "./dropdown/index.js",
107
+ "./expandable": "./expandable/index.js",
108
+ "./field-block": "./field-block/index.js",
109
+ "./file-icon": "./file-icon/index.js",
110
+ "./gradients": "./gradients/index.js",
111
+ "./group-overflow": "./group-overflow/index.js",
112
+ "./helpers": "./helpers/index.js",
113
+ "./hint": "./hint/index.js",
114
+ "./hooks": "./hooks/index.js",
115
+ "./hooks/use-intersection/test-utils": "./hooks/use-intersection/test-utils.js",
116
+ "./info-text": "./info-text/index.js",
117
+ "./input": "./input/index.js",
118
+ "./layout": "./layout/index.js",
119
+ "./link": "./link/index.js",
120
+ "./link/link-util.scss": "./link/link-util.scss",
121
+ "./masked-input": "./masked-input/index.js",
122
+ "./modal-overlay": "./modal-overlay/index.js",
123
+ "./modal-overlay/modal-overlay-util.scss": "./modal-overlay/modal-overlay-util.scss",
124
+ "./modal": "./modal/index.js",
125
+ "./modal/modal-util.scss": "./modal/modal-util.scss",
126
+ "./no-index": "./no-index/index.js",
127
+ "./pagination": "./pagination/index.js",
128
+ "./panel": "./panel/index.js",
129
+ "./phone-input": "./phone-input/index.js",
130
+ "./plate": "./plate/index.js",
131
+ "./popup": "./popup/index.js",
132
+ "./portal": "./portal/index.js",
133
+ "./price": "./price/index.js",
134
+ "./radio-button": "./radio-button/index.js",
135
+ "./range": "./range/index.js",
136
+ "./rating": "./rating/index.js",
137
+ "./select": "./select/index.js",
138
+ "./side-page": "./side-page/index.js",
139
+ "./side-page/side-page-util.scss": "./side-page/side-page-util.scss",
140
+ "./skeleton": "./skeleton/index.js",
141
+ "./spinner": "./spinner/index.js",
142
+ "./stepper": "./stepper/index.js",
143
+ "./stroked-svg": "./stroked-svg/index.js",
144
+ "./styling": "./styling/index.js",
145
+ "./super-ellipse-clip-path": "./super-ellipse-clip-path/index.js",
146
+ "./switcher-row": "./switcher-row/index.js",
147
+ "./tabs": "./tabs/index.js",
148
+ "./test-utils": "./test-utils/index.js",
149
+ "./text-button": "./text-button/index.js",
150
+ "./text": "./text/index.js",
151
+ "./textarea": "./textarea/index.js",
152
+ "./timer": "./timer/index.js",
153
+ "./toggle": "./toggle/index.js",
154
+ "./top-bar": "./top-bar/index.js",
155
+ "./top-bar/top-bar-util.scss": "./top-bar/top-bar-util.scss",
156
+ "./touch-slider": "./touch-slider/index.js",
157
+ "./types": "./types/index.js",
158
+ "./unknown-content": "./unknown-content/index.js",
159
+ "./upload-area": "./upload-area/index.js",
160
+ "./upload-area/upload-area-util.scss": "./upload-area/upload-area-util.scss"
76
161
  }
77
162
  }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- # Внутренние компоненты
2
-
3
- Компоненты из этого каталога не должны использоваться за пределами данной библиотеки.
4
-
5
- Ломающие изменения содержимого данного каталога не влияют на мажорность релиза.
@@ -1,55 +0,0 @@
1
- # useIntersection: утилиты для тестирования
2
-
3
- Утилиты для unit-тестирования (Jest) компонентов, использующих хук `useIntersection`
4
-
5
- #### Пример компонента
6
-
7
- ```jsx
8
- import { useIntersection } from '@sima-land/ui-nucleons/hooks';
9
-
10
- function TestComponent() {
11
- const ref = useRef(null);
12
- const [viewing, setViewing] = useState(false);
13
-
14
- useIntersection(ref, entry => {
15
- setViewing(entry.isIntersecting);
16
- });
17
-
18
- return (
19
- <div ref={ref} data-testid='test-target'>
20
- {viewing ? 'On screen' : 'Off screen'}
21
- </div>
22
- );
23
- }
24
- ```
25
-
26
- #### Пример тестов
27
-
28
- ```jsx
29
- import { IntersectionMock } from '@sima-land/ui-nucleons/hooks/use-intersection/test-utils';
30
-
31
- const intersectionMock = new IntersectionMock();
32
-
33
- beforeAll(() => {
34
- intersectionMock.apply();
35
- });
36
-
37
- afterAll(() => {
38
- intersectionMock.restore();
39
- });
40
-
41
- it('test component', () => {
42
- const { asFragment, getByTestId } = render(<TestComponent />);
43
- const target = getByTestId('test-target');
44
-
45
- expect(asFragment().textContent).toContain('Off screen');
46
-
47
- intersectionMock.changeElementState({
48
- target,
49
- isIntersecting: true,
50
- intersectionRatio: 0,
51
- });
52
-
53
- expect(asFragment().textContent).toContain('On screen');
54
- });
55
- ```
package/types.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
File without changes