@snack-uikit/search 0.9.0 → 0.10.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,27 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 0.10.1 (2024-10-31)
|
|
7
|
+
|
|
8
|
+
### Only dependencies have been changed
|
|
9
|
+
* [@snack-uikit/list@0.21.0](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/list/CHANGELOG.md)
|
|
10
|
+
* [@snack-uikit/search-private@0.4.1](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/search-private/CHANGELOG.md)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# 0.10.0 (2024-10-28)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* **FF-5782:** sass use/forward approach ([3e53869](https://github.com/cloud-ru-tech/snack-uikit/commit/3e53869ace864a7718e434b7f410c15dbd911cd5))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
6
27
|
# 0.9.0 (2024-10-28)
|
|
7
28
|
|
|
8
29
|
|
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ import { Search, SearchPrivate } from "@snack-uikit/search";
|
|
|
44
44
|
| outline | `boolean` | - | Внешний бордер |
|
|
45
45
|
| options | `BaseItem[]` | - | Элементы выпадающие в Droplist в режиме Autocomplete. На нажатие 'Space', 'Enter' или клике по элементу будет вызываться onSubmit. В режиме FieldText options отсутсвуют |
|
|
46
46
|
| autocomplete | `boolean` | - | Работа в режиме Autocomplete в значении true Работа в режиме FieldText в значении false \| undefined |
|
|
47
|
-
| ref | `
|
|
47
|
+
| ref | `LegacyRef<HTMLInputElement>` | - | Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (or call the ref with `null` if you passed a callback ref). @see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs} |
|
|
48
48
|
| key | `Key` | - | |
|
|
49
49
|
|
|
50
50
|
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Search",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.10.1",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"license": "Apache-2.0",
|
|
37
37
|
"scripts": {},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@snack-uikit/list": "0.
|
|
40
|
-
"@snack-uikit/search-private": "0.
|
|
39
|
+
"@snack-uikit/list": "0.21.0",
|
|
40
|
+
"@snack-uikit/search-private": "0.4.1",
|
|
41
41
|
"@snack-uikit/utils": "3.5.0",
|
|
42
42
|
"classnames": "2.3.2",
|
|
43
43
|
"merge-refs": "1.0.0"
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/merge-refs": "1.0.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "b7163c6f939105eb34cabec64c9e983ac7958c26"
|
|
49
49
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-search';
|
|
2
2
|
|
|
3
3
|
.wrap {
|
|
4
4
|
display: flex;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.triggerClassName {
|
|
11
|
-
--offset: #{
|
|
11
|
+
--offset: #{styles-tokens-search.$space-drop-list-drop-offset};
|
|
12
12
|
|
|
13
13
|
display: flex;
|
|
14
14
|
flex-grow: 1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-search';
|
|
2
|
+
@use "@snack-uikit/figma-tokens/build/scss/components/styles-tokens-element";
|
|
3
3
|
|
|
4
4
|
$sizes: 's', 'm', 'l';
|
|
5
5
|
|
|
@@ -12,32 +12,32 @@ $sizes: 's', 'm', 'l';
|
|
|
12
12
|
width: 100%;
|
|
13
13
|
min-width: 0;
|
|
14
14
|
|
|
15
|
-
background-color:
|
|
15
|
+
background-color: styles-tokens-search.$sys-neutral-background1-level;
|
|
16
16
|
border-color: transparent;
|
|
17
17
|
border-style: solid;
|
|
18
18
|
|
|
19
19
|
@each $size in $sizes {
|
|
20
20
|
&[data-size='#{$size}'] {
|
|
21
|
-
@include composite-var(
|
|
21
|
+
@include styles-tokens-search.composite-var(styles-tokens-search.$search, $size);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
&[data-outline] {
|
|
26
|
-
border-color:
|
|
26
|
+
border-color: styles-tokens-search.$sys-neutral-decor-default;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&:hover {
|
|
30
|
-
background-color:
|
|
31
|
-
border-color:
|
|
30
|
+
background-color: styles-tokens-search.$sys-neutral-background2-level;
|
|
31
|
+
border-color: styles-tokens-search.$sys-primary-decor-hovered;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
&:focus-within,
|
|
35
35
|
&[data-focused] {
|
|
36
|
-
@include outline-var(
|
|
36
|
+
@include styles-tokens-search.outline-var(styles-tokens-element.$container-focused-m);
|
|
37
37
|
|
|
38
|
-
background-color:
|
|
39
|
-
border-color:
|
|
40
|
-
outline-color:
|
|
38
|
+
background-color: styles-tokens-search.$sys-neutral-background2-level;
|
|
39
|
+
border-color: styles-tokens-search.$sys-primary-accent-default;
|
|
40
|
+
outline-color: styles-tokens-search.$sys-primary-decor-activated;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|