haya-select 1.0.115 → 1.0.117

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/README.md CHANGED
@@ -76,9 +76,23 @@ The callback receives the current `searchValue`, `page`, and optional `values` w
76
76
 
77
77
  If `totalCount` and `page` are provided, the options list shows pagination controls with previous/next buttons, a page range around the current page, and a "Page X of Y" label that can be clicked to enter a page number manually.
78
78
 
79
+ ## System test helpers
80
+
81
+ Browser system-test suites can import helpers from the dedicated test-helper entrypoint:
82
+
83
+ ```js
84
+ import {pickHayaSelectOption} from "haya-select/build/system-test-helpers.js"
85
+ ```
86
+
87
+ The helper entrypoint exports:
88
+
89
+ - `pickHayaSelectOption(systemTest, testID, {optionText, optionValue, search})`
90
+ - `clickVisibleHayaSelectOption(systemTest, {optionValue})`
91
+ - `expectHayaSelectCurrentOptions(systemTest, testID, expectedTexts)`
92
+
79
93
  ## Mobile options sheet
80
94
 
81
- HayaSelect opens options in a bottom sheet on mobile-sized screens by default. The sheet is used when the window width is 768px or less on web, iOS, and Android. It keeps the options list scrollable inside the sheet and places the search input at the bottom.
95
+ HayaSelect opens options in a bottom sheet on mobile-sized screens by default. The sheet is used when the window width is 768px or less on web, iOS, and Android. It keeps the options list scrollable inside the sheet and places the search input at the bottom. When pagination is enabled, the pagination controls stay fixed above the search input instead of scrolling with the options.
82
96
 
83
97
  Use `mobileOptionsMode` to override the automatic behavior:
84
98
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/select/index.jsx"],"names":[],"mappings":";;;UA2Bc,MAAM;WACN,MAAM;WACN,MAAM;;;WAKN,MAAM,GAAC,MAAM;WACb,OAAO,OAAO,EAAE,SAAS;qBACb,OAAO,OAAO,EAAE,SAAS;4BACzB,OAAO,OAAO,EAAE,SAAS;;;;;;YAGrC,OAAO,OAAO,EAAE,SAAS;;;aAOzB,KAAK,CAAC,gBAAgB,CAAC;;;;;;;;qBAUvB,MAA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