@bloom-housing/ui-components 12.0.0 → 12.0.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.
@@ -1,2 +1,2 @@
1
1
  import React from "react";
2
- export declare const PhoneMask: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
2
+ export declare const PhoneMask: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
@@ -2,9 +2,10 @@ import React from "react";
2
2
  import MaskedInput from "react-text-mask";
3
3
  export var PhoneMask = React.forwardRef(function (props, ref) {
4
4
  var value = props.value, onChange = props.onChange, name = props.name, disabled = props.disabled, placeholder = props.placeholder;
5
- return (React.createElement(MaskedInput, { mask: ["(", /[1-9]/, /\d/, /\d/, ")", " ", /\d/, /\d/, /\d/, "-", /\d/, /\d/, /\d/, /\d/], className: "input", type: "tel", placeholder: placeholder || "(555) 555-5555", guide: false, id: name, value: value, name: name, disabled: disabled, onChange: function (e) {
6
- e.persist();
7
- onChange(e);
8
- }, ref: ref, "aria-labelledby": "phone-label" }));
5
+ return (React.createElement(React.Fragment, null,
6
+ React.createElement(MaskedInput, { mask: ["(", /[1-9]/, /\d/, /\d/, ")", " ", /\d/, /\d/, /\d/, "-", /\d/, /\d/, /\d/, /\d/], className: "input", type: "tel", placeholder: placeholder || "(555) 555-5555", guide: false, id: name, value: value, name: name, disabled: disabled, onChange: function (e) {
7
+ e.persist();
8
+ onChange(e);
9
+ }, ref: ref, "aria-labelledby": "phone-label" })));
9
10
  });
10
11
  //# sourceMappingURL=PhoneMask.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PhoneMask.js","sourceRoot":"","sources":["../../../src/forms/PhoneMask.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,WAAW,MAAM,iBAAiB,CAAA;AAEzC,MAAM,CAAC,IAAM,SAAS,GAAG,KAAK,CAAC,UAAU,CAAC,UA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U;IAE9D,OAAO,CACL;QACE,oBAAC,WAAW,IACV,IAAI,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,EACzF,SAAS,EAAC,OAAO,EACjB,IAAI,EAAC,KAAK,EACV,WAAW,EAAE,WAAW,IAAI,gBAAgB,EAC5C,KAAK,EAAE,KAAK,EACZ,EAAE,EAAE,IAAI,EACR,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,UAAC,CAAM;gBACf,CAAC,CAAC,OAAO,EAAE,CAAA;gBACX,QAAQ,CAAC,CAAC,CAAC,CAAA;YACb,CAAC,EACD,GAAG,EAAE,GAAG,qBACS,aAAa,GAC9B,CACD,CACJ,CAAA;AACH,CAAC,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bloom-housing/ui-components",
3
- "version": "12.0.0",
3
+ "version": "12.0.1",
4
4
  "author": "Sean Albert <sean.albert@exygy.com>",
5
5
  "description": "Shared user interface components for Bloom affordable housing system",
6
6
  "homepage": "https://github.com/bloom-housing/ui-components",
@@ -126,6 +126,7 @@
126
126
  "@types/jwt-decode": "^2.2.1",
127
127
  "@types/mdx": "^2.0.1",
128
128
  "@types/node-polyglot": "^2.4.1",
129
+ "@types/react": "^18.0.32",
129
130
  "@types/react-beautiful-dnd": "^13.1.1",
130
131
  "@types/react-dom": "^16.9.5",
131
132
  "@types/react-text-mask": "^5.4.6",
@@ -5,22 +5,24 @@ export const PhoneMask = React.forwardRef((props: any, ref: any) => {
5
5
  const { value, onChange, name, disabled, placeholder } = props
6
6
 
7
7
  return (
8
- <MaskedInput
9
- mask={["(", /[1-9]/, /\d/, /\d/, ")", " ", /\d/, /\d/, /\d/, "-", /\d/, /\d/, /\d/, /\d/]}
10
- className="input"
11
- type="tel"
12
- placeholder={placeholder || "(555) 555-5555"}
13
- guide={false}
14
- id={name}
15
- value={value}
16
- name={name}
17
- disabled={disabled}
18
- onChange={(e: any) => {
19
- e.persist()
20
- onChange(e)
21
- }}
22
- ref={ref}
23
- aria-labelledby={"phone-label"}
24
- />
8
+ <>
9
+ <MaskedInput
10
+ mask={["(", /[1-9]/, /\d/, /\d/, ")", " ", /\d/, /\d/, /\d/, "-", /\d/, /\d/, /\d/, /\d/]}
11
+ className="input"
12
+ type="tel"
13
+ placeholder={placeholder || "(555) 555-5555"}
14
+ guide={false}
15
+ id={name}
16
+ value={value}
17
+ name={name}
18
+ disabled={disabled}
19
+ onChange={(e: any) => {
20
+ e.persist()
21
+ onChange(e)
22
+ }}
23
+ ref={ref}
24
+ aria-labelledby={"phone-label"}
25
+ />
26
+ </>
25
27
  )
26
28
  })
@@ -11,7 +11,7 @@
11
11
  max-width: var(--inner-max-width);
12
12
  width: var(--inner-width);
13
13
  display: flex;
14
- justify-content: end;
14
+ justify-content: flex-end;
15
15
  margin: auto;
16
16
  padding: var(--inner-mobile-padding);
17
17
 
@@ -11,7 +11,7 @@
11
11
  border-bottom: 1px solid var(--bloom-color-gray-400);
12
12
  color: var(--text-color);
13
13
  display: flex;
14
- justify-content: start;
14
+ justify-content: flex-start;
15
15
 
16
16
  @media (min-width: $screen-md) {
17
17
  padding-top: 0;