@ngrok/mantle 0.0.29 → 0.0.30

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.
@@ -1,4 +1,4 @@
1
- import type { ForwardedRef, HTMLAttributes, InputHTMLAttributes, PropsWithChildren } from "react";
1
+ import type { ForwardedRef, InputHTMLAttributes, PropsWithChildren } from "react";
2
2
  import type { WithAutoComplete, WithInputType, WithInvalid } from "./types";
3
3
  type BaseProps = WithAutoComplete & WithInputType & WithInvalid;
4
4
  /**
@@ -16,7 +16,7 @@ type InputCaptureProps = Omit<InputHTMLAttributes<HTMLInputElement>, "autoComple
16
16
  * The actual <input /> element that captures user input.
17
17
  */
18
18
  declare const InputCapture: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "autoComplete"> & WithAutoComplete & WithInputType & WithInvalid & import("react").RefAttributes<HTMLInputElement>>;
19
- type InputContainerProps = HTMLAttributes<HTMLDivElement> & BaseProps & {
19
+ type InputContainerProps = InputHTMLAttributes<HTMLInputElement> & BaseProps & {
20
20
  /**
21
21
  * @private __SECRET_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
22
22
  */
@@ -30,7 +30,7 @@ type InputContainerProps = HTMLAttributes<HTMLDivElement> & BaseProps & {
30
30
  /**
31
31
  * The container for the input element.
32
32
  */
33
- declare const InputContainer: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & WithAutoComplete & WithInputType & WithInvalid & {
33
+ declare const InputContainer: import("react").ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & WithAutoComplete & WithInputType & WithInvalid & {
34
34
  /**
35
35
  * @private __SECRET_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
36
36
  */
@@ -40,7 +40,7 @@ declare const InputContainer: import("react").ForwardRefExoticComponent<HTMLAttr
40
40
  */
41
41
  inputRef: ForwardedRef<HTMLInputElement>;
42
42
  } | undefined;
43
- } & import("react").RefAttributes<HTMLDivElement>>;
43
+ } & import("react").RefAttributes<HTMLInputElement>>;
44
44
  export { Input, InputContainer, InputCapture };
45
45
  export type { InputProps, InputCaptureProps, InputContainerProps };
46
46
  //# sourceMappingURL=input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../components/input/src/input.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGlG,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE5E,KAAK,SAAS,GAAG,gBAAgB,GAAG,aAAa,GAAG,WAAW,CAAC;AAEhE;;GAEG;AACH,KAAK,UAAU,GAAG,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,GAAG,SAAS,GAAG,iBAAiB,CAAC;AAEvH;;GAEG;AACH,QAAA,MAAM,KAAK;;oDAgBT,CAAC;AAGH,KAAK,iBAAiB,GAAG,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,GAAG,SAAS,CAAC;AAE1G;;GAEG;AACH,QAAA,MAAM,YAAY,oNAejB,CAAC;AAaF,KAAK,mBAAmB,GAAG,cAAc,CAAC,cAAc,CAAC,GACxD,SAAS,GAAG;IACX;;OAEG;IACH,SAAS,CAAC,EAAE;QACX;;WAEG;QACH,QAAQ,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAC;KACzC,CAAC;CACF,CAAC;AAEH;;GAEG;AACH,QAAA,MAAM,cAAc;IAdlB;;OAEG;;QAEF;;WAEG;kBACO,aAAa,gBAAgB,CAAC;;kDAiC1C,CAAC;AAGF,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC;AAC/C,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../components/input/src/input.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGlF,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE5E,KAAK,SAAS,GAAG,gBAAgB,GAAG,aAAa,GAAG,WAAW,CAAC;AAEhE;;GAEG;AACH,KAAK,UAAU,GAAG,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,GAAG,SAAS,GAAG,iBAAiB,CAAC;AAEvH;;GAEG;AACH,QAAA,MAAM,KAAK;;oDAgBT,CAAC;AAGH,KAAK,iBAAiB,GAAG,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,GAAG,SAAS,CAAC;AAE1G;;GAEG;AACH,QAAA,MAAM,YAAY,oNAejB,CAAC;AAaF,KAAK,mBAAmB,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GAC/D,SAAS,GAAG;IACX;;OAEG;IACH,SAAS,CAAC,EAAE;QACX;;WAEG;QACH,QAAQ,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAC;KACzC,CAAC;CACF,CAAC;AAEH;;GAEG;AACH,QAAA,MAAM,cAAc;IAdlB;;OAEG;;QAEF;;WAEG;kBACO,aAAa,gBAAgB,CAAC;;oDAsC1C,CAAC;AAGF,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC;AAC/C,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,CAAC"}
package/dist/index.js CHANGED
@@ -1031,6 +1031,7 @@ $parcel$export($fd39f83d90873c05$exports, "PasswordInput", function () { return
1031
1031
  children: children
1032
1032
  });
1033
1033
  return /*#__PURE__*/ (0, $hLlzK$jsx)($69de6bdb0e8d2083$export$b821cb5d358838ed, {
1034
+ invalid: props.invalid,
1034
1035
  className: className,
1035
1036
  children: /*#__PURE__*/ (0, $hLlzK$jsx)($69de6bdb0e8d2083$export$a000a5208d0f14c1, {
1036
1037
  ref: inputRef,
@@ -1066,13 +1067,14 @@ const $69de6bdb0e8d2083$var$InputContext = /*#__PURE__*/ (0, $hLlzK$createContex
1066
1067
  * The container for the input element.
1067
1068
  */ const $69de6bdb0e8d2083$export$b821cb5d358838ed = /*#__PURE__*/ (0, $hLlzK$forwardRef)(({ "aria-invalid": _ariaInvalid, children: children, className: className, invalid: invalid, type: type, __private: __private, style: style, ...props }, ref)=>{
1068
1069
  const ariaInvalid = _ariaInvalid !== null && _ariaInvalid !== void 0 ? _ariaInvalid : invalid;
1070
+ var _props_name;
1069
1071
  return /*#__PURE__*/ (0, $hLlzK$jsx)($69de6bdb0e8d2083$var$InputContext.Provider, {
1070
1072
  value: {
1071
1073
  "aria-invalid": _ariaInvalid,
1072
1074
  invalid: invalid,
1073
1075
  type: type,
1074
1076
  ...props,
1075
- ref: __private === null || __private === void 0 ? void 0 : __private.inputRef
1077
+ ref: ref !== null && ref !== void 0 ? ref : __private === null || __private === void 0 ? void 0 : __private.inputRef
1076
1078
  },
1077
1079
  children: /*#__PURE__*/ (0, $hLlzK$jsxs)("div", {
1078
1080
  "aria-invalid": ariaInvalid,
@@ -1081,9 +1083,22 @@ const $69de6bdb0e8d2083$var$InputContext = /*#__PURE__*/ (0, $hLlzK$createContex
1081
1083
  style: style,
1082
1084
  children: [
1083
1085
  children,
1084
- invalid && /*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$Warning), {
1086
+ invalid && /*#__PURE__*/ (0, $hLlzK$jsxs)("div", {
1085
1087
  className: "pointer-events-none order-last text-danger-600",
1086
- weight: "fill"
1088
+ children: [
1089
+ /*#__PURE__*/ (0, $hLlzK$jsxs)("span", {
1090
+ className: "sr-only",
1091
+ children: [
1092
+ "The value entered for the ",
1093
+ (_props_name = props.name) !== null && _props_name !== void 0 ? _props_name : "",
1094
+ " input has failed validation."
1095
+ ]
1096
+ }),
1097
+ /*#__PURE__*/ (0, $hLlzK$jsx)((0, $hLlzK$Warning), {
1098
+ "aria-hidden": true,
1099
+ weight: "fill"
1100
+ })
1101
+ ]
1087
1102
  })
1088
1103
  ]
1089
1104
  })