@lundal/zed-solid 0.0.5 → 0.0.6

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/dist/TextBox.d.ts CHANGED
@@ -5,6 +5,7 @@ export type TextBoxProps = {
5
5
  id: string;
6
6
  invalid: boolean;
7
7
  errorId: string | undefined;
8
+ autocomplete?: string;
8
9
  hidden?: boolean;
9
10
  value: string;
10
11
  onChange: (value: string) => void;
package/dist/index.js CHANGED
@@ -922,13 +922,14 @@ function TextBox(props) {
922
922
  const _el$ = _tmpl$();
923
923
  _el$.$$input = (e) => props.onChange(e.target.value);
924
924
  createRenderEffect((_p$) => {
925
- const _v$ = mergeClasses("z-textbox", props.class), _v$2 = props.style, _v$3 = props.hidden ? "password" : "text", _v$4 = props.id, _v$5 = props.invalid, _v$6 = props.errorId;
925
+ const _v$ = mergeClasses("z-textbox", props.class), _v$2 = props.style, _v$3 = props.autocomplete ?? "off", _v$4 = props.hidden ? "password" : "text", _v$5 = props.id, _v$6 = props.invalid, _v$7 = props.errorId;
926
926
  _v$ !== _p$._v$ && className(_el$, _p$._v$ = _v$);
927
927
  _p$._v$2 = style(_el$, _v$2, _p$._v$2);
928
- _v$3 !== _p$._v$3 && setAttribute(_el$, "type", _p$._v$3 = _v$3);
929
- _v$4 !== _p$._v$4 && setAttribute(_el$, "id", _p$._v$4 = _v$4);
930
- _v$5 !== _p$._v$5 && setAttribute(_el$, "aria-invalid", _p$._v$5 = _v$5);
931
- _v$6 !== _p$._v$6 && setAttribute(_el$, "aria-errormessage", _p$._v$6 = _v$6);
928
+ _v$3 !== _p$._v$3 && setAttribute(_el$, "autocomplete", _p$._v$3 = _v$3);
929
+ _v$4 !== _p$._v$4 && setAttribute(_el$, "type", _p$._v$4 = _v$4);
930
+ _v$5 !== _p$._v$5 && setAttribute(_el$, "id", _p$._v$5 = _v$5);
931
+ _v$6 !== _p$._v$6 && setAttribute(_el$, "aria-invalid", _p$._v$6 = _v$6);
932
+ _v$7 !== _p$._v$7 && setAttribute(_el$, "aria-errormessage", _p$._v$7 = _v$7);
932
933
  return _p$;
933
934
  }, {
934
935
  _v$: void 0,
@@ -936,7 +937,8 @@ function TextBox(props) {
936
937
  _v$3: void 0,
937
938
  _v$4: void 0,
938
939
  _v$5: void 0,
939
- _v$6: void 0
940
+ _v$6: void 0,
941
+ _v$7: void 0
940
942
  });
941
943
  createRenderEffect(() => _el$.value = props.value);
942
944
  return _el$;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lundal/zed-solid",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "license": "LGPL-3.0-or-later",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",