@colisweb/rescript-toolkit 2.34.0 → 2.36.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": "@colisweb/rescript-toolkit",
3
- "version": "2.34.0",
3
+ "version": "2.36.1",
4
4
  "scripts": {
5
5
  "clean": "rescript clean",
6
6
  "build": "rescript build",
@@ -100,6 +100,7 @@ module Make = (StateLenses: Config) => {
100
100
  ~inputRightAddon=?,
101
101
  ~errorClassName=?,
102
102
  ~optionalMessage: option<React.element>=?,
103
+ ~autoComplete=?,
103
104
  ) => {
104
105
  let (showPassword, setShowPassword) = React.useState(() => false)
105
106
  let isPasswordType = type_->Option.mapWithDefault(false, type_ => type_ === "password")
@@ -139,6 +140,7 @@ module Make = (StateLenses: Config) => {
139
140
  }}
140
141
  <div className={cx(["flex flex-row", inputContainerClassName])}>
141
142
  <Toolkit__Ui.TextInput
143
+ ?autoComplete
142
144
  className={cx([
143
145
  inputClassName,
144
146
  inputRightAddon->Option.isSome || isPasswordType ? "rounded-r-none" : "",
@@ -43,3 +43,7 @@ module ControlledAccordionMultiple = {
43
43
  ~readOnly: option<bool>=?,
44
44
  ) => React.element = "Accordion"
45
45
  }
46
+
47
+ type accordionContext = {isExpanded: bool, index: int}
48
+ @module("@reach/accordion")
49
+ external useAccordionItemContext: unit => accordionContext = "useAccordionItemContext"