@startupjs-ui/auto-suggest 0.1.13 → 0.1.15
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 +19 -0
- package/index.cssx.styl +6 -2
- package/index.tsx +5 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.1.15](https://github.com/startupjs/startupjs-ui/compare/v0.1.14...v0.1.15) (2026-02-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @startupjs-ui/auto-suggest
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.1.14](https://github.com/startupjs/startupjs-ui/compare/v0.1.13...v0.1.14) (2026-02-06)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* add size for AutoSuggestProps ([#8](https://github.com/startupjs/startupjs-ui/issues/8)) ([c0cd5b0](https://github.com/startupjs/startupjs-ui/commit/c0cd5b0d84513e98c0e70cbcb0a5073db334c762))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.1.13](https://github.com/startupjs/startupjs-ui/compare/v0.1.12...v0.1.13) (2026-02-03)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @startupjs-ui/auto-suggest
|
package/index.cssx.styl
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
right 0
|
|
7
7
|
bottom 0
|
|
8
8
|
|
|
9
|
-
|
|
10
9
|
.loaderCase
|
|
11
10
|
justify-content center
|
|
12
11
|
align-items center
|
|
@@ -18,7 +17,6 @@
|
|
|
18
17
|
.content
|
|
19
18
|
width 100%
|
|
20
19
|
height 100%
|
|
21
|
-
background-color var(--color-bg-main)
|
|
22
20
|
|
|
23
21
|
.contentCase
|
|
24
22
|
border-radius 1u
|
|
@@ -28,3 +26,9 @@
|
|
|
28
26
|
|
|
29
27
|
.selectMenu
|
|
30
28
|
background-color var(--AutoSuggest-itemBg)
|
|
29
|
+
|
|
30
|
+
.attachment
|
|
31
|
+
background-color var(--color-bg-main-strong)
|
|
32
|
+
radius()
|
|
33
|
+
shadow(3)
|
|
34
|
+
overflow hidden
|
package/index.tsx
CHANGED
|
@@ -54,6 +54,8 @@ export interface AutoSuggestProps {
|
|
|
54
54
|
options?: AutoSuggestOption[]
|
|
55
55
|
/** Current selected value */
|
|
56
56
|
value?: AutoSuggestValue
|
|
57
|
+
/** Size preset @default 'm' */
|
|
58
|
+
size?: 'l' | 'm' | 's'
|
|
57
59
|
/** Placeholder text @default 'Select value' */
|
|
58
60
|
placeholder?: string | number
|
|
59
61
|
/** Custom item renderer (item, index, highlightedIndex) */
|
|
@@ -103,6 +105,7 @@ function AutoSuggest ({
|
|
|
103
105
|
iconStyle,
|
|
104
106
|
options = [],
|
|
105
107
|
value,
|
|
108
|
+
size = 'm',
|
|
106
109
|
placeholder = 'Select value',
|
|
107
110
|
renderItem,
|
|
108
111
|
isLoading = false,
|
|
@@ -215,6 +218,7 @@ function AutoSuggest ({
|
|
|
215
218
|
ref=inputRef
|
|
216
219
|
style=captionStyle
|
|
217
220
|
inputStyle=inputStyle
|
|
221
|
+
size=size
|
|
218
222
|
icon=value && !disabled ? faTimes : undefined
|
|
219
223
|
iconPosition='right'
|
|
220
224
|
iconStyle=iconStyle
|
|
@@ -229,7 +233,7 @@ function AutoSuggest ({
|
|
|
229
233
|
testID=testID
|
|
230
234
|
)
|
|
231
235
|
|
|
232
|
-
AbstractPopover(
|
|
236
|
+
AbstractPopover.attachment(
|
|
233
237
|
visible=(isShow || isLoading)
|
|
234
238
|
anchorRef=inputRef
|
|
235
239
|
matchAnchorWidth=matchAnchorWidth
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startupjs-ui/auto-suggest",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"react-native": "*",
|
|
21
21
|
"startupjs": "*"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "65cbb2aab65224d324a7c9a6f44fb3190ae4bcc2"
|
|
24
24
|
}
|