@oxy.so/bloom 4.30.1 → 4.31.0
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/docs/adoption-matrix.mdx +4 -3
- package/docs/input-otp.mdx +22 -5
- package/lib/commonjs/input-otp/InputOtp.js +71 -18
- package/lib/commonjs/input-otp/InputOtp.js.map +1 -1
- package/lib/commonjs/input-otp/index.js +6 -0
- package/lib/commonjs/input-otp/index.js.map +1 -1
- package/lib/module/input-otp/InputOtp.js +70 -18
- package/lib/module/input-otp/InputOtp.js.map +1 -1
- package/lib/module/input-otp/index.js +1 -1
- package/lib/module/input-otp/index.js.map +1 -1
- package/lib/typescript/commonjs/input-otp/InputOtp.d.ts +4 -2
- package/lib/typescript/commonjs/input-otp/InputOtp.d.ts.map +1 -1
- package/lib/typescript/commonjs/input-otp/index.d.ts +2 -2
- package/lib/typescript/commonjs/input-otp/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/input-otp/types.d.ts +14 -2
- package/lib/typescript/commonjs/input-otp/types.d.ts.map +1 -1
- package/lib/typescript/module/input-otp/InputOtp.d.ts +4 -2
- package/lib/typescript/module/input-otp/InputOtp.d.ts.map +1 -1
- package/lib/typescript/module/input-otp/index.d.ts +2 -2
- package/lib/typescript/module/input-otp/index.d.ts.map +1 -1
- package/lib/typescript/module/input-otp/types.d.ts +14 -2
- package/lib/typescript/module/input-otp/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/support/adoption-matrix.ts +708 -0
- package/src/__tests__/support/collision-fixture-barrel.ts +20 -0
- package/src/__tests__/support/commerce-harness.tsx +97 -0
- package/src/__tests__/support/composite.ts +68 -0
- package/src/__tests__/support/constructed-style-sheets.ts +68 -0
- package/src/__tests__/support/press-host.ts +30 -0
- package/src/__tests__/support/rendered-style.ts +99 -0
- package/src/__tests__/support/unread-hook-fixture.ts +33 -0
- package/src/__tests__/support/worklet-capture-fixture.tsx +28 -0
- package/src/input-otp/InputOtp.tsx +66 -19
- package/src/input-otp/index.ts +2 -2
- package/src/input-otp/types.ts +15 -2
- package/src/theme/__tests__/__fixtures__/golden-resolved-tokens.json +9346 -0
- package/src/theme/__tests__/__fixtures__/tonal-glass-primary-failures.json +69 -0
- package/src/theme/__tests__/fixtures/color-engine-golden.json +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/input-otp/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/input-otp/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAC1D,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import type { ViewStyleProp } from '../styles';
|
|
2
|
+
/**
|
|
3
|
+
* What a box accepts. `numeric` (the default) keeps digits only;
|
|
4
|
+
* `alphanumeric` upper-cases and keeps `A`–`Z` and `0`–`9`.
|
|
5
|
+
*/
|
|
6
|
+
export type InputOtpType = 'numeric' | 'alphanumeric';
|
|
2
7
|
export interface InputOtpProps extends ViewStyleProp {
|
|
3
|
-
/** Number of
|
|
8
|
+
/** Number of boxes, default `6`. */
|
|
4
9
|
length?: number;
|
|
5
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* `numeric` (default): digits only, number pad. `alphanumeric`: letters and
|
|
12
|
+
* digits, upper-cased, on a letters keyboard with auto-capitalisation.
|
|
13
|
+
* Anything else — a dash, a space — is dropped either way, so a pasted
|
|
14
|
+
* `ABCDE-12345` fills ten boxes.
|
|
15
|
+
*/
|
|
16
|
+
type?: InputOtpType;
|
|
17
|
+
/** Controlled value. Characters the `type` does not accept are dropped and longer strings truncated to `length`. */
|
|
6
18
|
value?: string;
|
|
7
19
|
/** Initial value when uncontrolled. */
|
|
8
20
|
defaultValue?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/input-otp/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/input-otp/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,cAAc,CAAC;AAEtD,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,oHAAoH;IACpH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,yCAAyC;IACzC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,+BAA+B;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iDAAiD;IACjD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oCAAoC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Theme } from '../theme/types';
|
|
2
|
-
import type { InputOtpProps } from './types';
|
|
2
|
+
import type { InputOtpProps, InputOtpType } from './types';
|
|
3
3
|
export interface InputOtpPalette {
|
|
4
4
|
/** `background-primary-default`. */
|
|
5
5
|
background: string;
|
|
@@ -39,5 +39,7 @@ export declare function resolveInputOtpBoxPaint(palette: InputOtpPalette, { hove
|
|
|
39
39
|
color: string;
|
|
40
40
|
boxShadow: string;
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
/** The characters `type` accepts, in order; everything else is dropped. Pure. */
|
|
43
|
+
export declare function cleanInputOtpValue(raw: string, type?: InputOtpType): string;
|
|
44
|
+
export declare function InputOtp({ length, type, value, defaultValue, onChange, onComplete, invalid: invalidProp, isInvalid, isDisabled, disabled: disabledAlias, groupEvery, autoFocus, accessibilityLabel, style, testID, }: InputOtpProps): import("react/jsx-runtime").JSX.Element;
|
|
43
45
|
//# sourceMappingURL=InputOtp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputOtp.d.ts","sourceRoot":"","sources":["../../../../src/input-otp/InputOtp.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAU5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"InputOtp.d.ts","sourceRoot":"","sources":["../../../../src/input-otp/InputOtp.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAU5C,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAiD3D,MAAM,WAAW,eAAe;IAC9B,oCAAoC;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,qCAAqC;IACrC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mCAAmC;IACnC,iBAAiB,EA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EAAE,aAAa,2CAqLf"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { InputOtp } from './InputOtp';
|
|
2
|
-
export type { InputOtpProps } from './types';
|
|
1
|
+
export { InputOtp, cleanInputOtpValue } from './InputOtp';
|
|
2
|
+
export type { InputOtpProps, InputOtpType } from './types';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/input-otp/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/input-otp/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAC1D,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import type { ViewStyleProp } from '../styles';
|
|
2
|
+
/**
|
|
3
|
+
* What a box accepts. `numeric` (the default) keeps digits only;
|
|
4
|
+
* `alphanumeric` upper-cases and keeps `A`–`Z` and `0`–`9`.
|
|
5
|
+
*/
|
|
6
|
+
export type InputOtpType = 'numeric' | 'alphanumeric';
|
|
2
7
|
export interface InputOtpProps extends ViewStyleProp {
|
|
3
|
-
/** Number of
|
|
8
|
+
/** Number of boxes, default `6`. */
|
|
4
9
|
length?: number;
|
|
5
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* `numeric` (default): digits only, number pad. `alphanumeric`: letters and
|
|
12
|
+
* digits, upper-cased, on a letters keyboard with auto-capitalisation.
|
|
13
|
+
* Anything else — a dash, a space — is dropped either way, so a pasted
|
|
14
|
+
* `ABCDE-12345` fills ten boxes.
|
|
15
|
+
*/
|
|
16
|
+
type?: InputOtpType;
|
|
17
|
+
/** Controlled value. Characters the `type` does not accept are dropped and longer strings truncated to `length`. */
|
|
6
18
|
value?: string;
|
|
7
19
|
/** Initial value when uncontrolled. */
|
|
8
20
|
defaultValue?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/input-otp/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/input-otp/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,cAAc,CAAC;AAEtD,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,oHAAoH;IACpH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,yCAAyC;IACzC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,+BAA+B;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iDAAiD;IACjD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oCAAoC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|