@multiplatform.one/forms 7.84.7 → 7.85.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/dist/cjs/Button/index.cjs +2 -1
- package/dist/cjs/Button/index.native.js +2 -1
- package/dist/cjs/Button/index.native.js.map +1 -1
- package/dist/cjs/FloatingPanel/RegularPanel.cjs +11 -23
- package/dist/cjs/FloatingPanel/RegularPanel.native.js +12 -24
- package/dist/cjs/FloatingPanel/RegularPanel.native.js.map +1 -1
- package/dist/cjs/FloatingPanel/pointAnchor.cjs +1 -1
- package/dist/cjs/FloatingPanel/pointAnchor.native.js +1 -1
- package/dist/cjs/FloatingPanel/pointAnchor.native.js.map +1 -1
- package/dist/cjs/fields/OTPInput/index.cjs +9 -3
- package/dist/cjs/fields/OTPInput/index.native.js +9 -3
- package/dist/cjs/fields/OTPInput/index.native.js.map +1 -1
- package/dist/cjs/fields/OTPInput/otpCellEdge.cjs +49 -0
- package/dist/cjs/fields/OTPInput/otpCellEdge.native.js +53 -0
- package/dist/cjs/fields/OTPInput/otpCellEdge.native.js.map +1 -0
- package/dist/esm/Button/index.mjs +3 -2
- package/dist/esm/Button/index.mjs.map +1 -1
- package/dist/esm/Button/index.native.js +3 -2
- package/dist/esm/Button/index.native.js.map +1 -1
- package/dist/esm/FloatingPanel/RegularPanel.mjs +11 -23
- package/dist/esm/FloatingPanel/RegularPanel.mjs.map +1 -1
- package/dist/esm/FloatingPanel/RegularPanel.native.js +12 -24
- package/dist/esm/FloatingPanel/RegularPanel.native.js.map +1 -1
- package/dist/esm/FloatingPanel/pointAnchor.mjs +1 -1
- package/dist/esm/FloatingPanel/pointAnchor.mjs.map +1 -1
- package/dist/esm/FloatingPanel/pointAnchor.native.js +1 -1
- package/dist/esm/FloatingPanel/pointAnchor.native.js.map +1 -1
- package/dist/esm/fields/OTPInput/index.mjs +11 -5
- package/dist/esm/fields/OTPInput/index.mjs.map +1 -1
- package/dist/esm/fields/OTPInput/index.native.js +11 -5
- package/dist/esm/fields/OTPInput/index.native.js.map +1 -1
- package/dist/esm/fields/OTPInput/otpCellEdge.mjs +24 -0
- package/dist/esm/fields/OTPInput/otpCellEdge.mjs.map +1 -0
- package/dist/esm/fields/OTPInput/otpCellEdge.native.js +25 -0
- package/dist/esm/fields/OTPInput/otpCellEdge.native.js.map +1 -0
- package/dist/jsx/Button/index.mjs +3 -2
- package/dist/jsx/Button/index.mjs.map +1 -1
- package/dist/jsx/Button/index.native.js +2 -1
- package/dist/jsx/Button/index.native.js.map +1 -1
- package/dist/jsx/FloatingPanel/RegularPanel.mjs +11 -23
- package/dist/jsx/FloatingPanel/RegularPanel.mjs.map +1 -1
- package/dist/jsx/FloatingPanel/RegularPanel.native.js +12 -24
- package/dist/jsx/FloatingPanel/RegularPanel.native.js.map +1 -1
- package/dist/jsx/FloatingPanel/pointAnchor.mjs +1 -1
- package/dist/jsx/FloatingPanel/pointAnchor.mjs.map +1 -1
- package/dist/jsx/FloatingPanel/pointAnchor.native.js +1 -1
- package/dist/jsx/FloatingPanel/pointAnchor.native.js.map +1 -1
- package/dist/jsx/fields/OTPInput/index.mjs +11 -5
- package/dist/jsx/fields/OTPInput/index.mjs.map +1 -1
- package/dist/jsx/fields/OTPInput/index.native.js +9 -3
- package/dist/jsx/fields/OTPInput/index.native.js.map +1 -1
- package/dist/jsx/fields/OTPInput/otpCellEdge.mjs +24 -0
- package/dist/jsx/fields/OTPInput/otpCellEdge.mjs.map +1 -0
- package/dist/jsx/fields/OTPInput/otpCellEdge.native.js +53 -0
- package/dist/jsx/fields/OTPInput/otpCellEdge.native.js.map +1 -0
- package/package.json +8 -8
- package/src/Button/index.tsx +7 -2
- package/src/FloatingPanel/FloatingPanel.menuFace.native.spec.tsx +3 -2
- package/src/FloatingPanel/FloatingPanel.regularWidth.native.spec.tsx +10 -2
- package/src/FloatingPanel/RegularPanel.tsx +14 -19
- package/src/FloatingPanel/pointAnchor.spec.ts +14 -2
- package/src/FloatingPanel/pointAnchor.ts +8 -1
- package/src/fields/OTPInput/index.tsx +11 -9
- package/src/fields/OTPInput/otpCellEdge.spec.ts +40 -0
- package/src/fields/OTPInput/otpCellEdge.ts +21 -0
- package/types/Button/index.d.ts +2 -1
- package/types/Button/index.d.ts.map +1 -1
- package/types/FloatingPanel/RegularPanel.d.ts +5 -3
- package/types/FloatingPanel/RegularPanel.d.ts.map +1 -1
- package/types/FloatingPanel/pointAnchor.d.ts.map +1 -1
- package/types/fields/OTPInput/index.d.ts.map +1 -1
- package/types/fields/OTPInput/otpCellEdge.d.ts +12 -0
- package/types/fields/OTPInput/otpCellEdge.d.ts.map +1 -0
|
@@ -2,7 +2,7 @@ import { useTouchSurface } from "@multiplatform.one/theme";
|
|
|
2
2
|
import type { Validator } from "../../types";
|
|
3
3
|
|
|
4
4
|
import type { DeepKeys, DeepValue } from "@tanstack/form-core";
|
|
5
|
-
import {
|
|
5
|
+
import { useResolvedKnobs } from "@multiplatform.one/theme";
|
|
6
6
|
import {
|
|
7
7
|
type ClipboardEvent,
|
|
8
8
|
type ComponentProps,
|
|
@@ -30,10 +30,11 @@ import {
|
|
|
30
30
|
import type { FormFieldProps } from "../../fieldLayout";
|
|
31
31
|
import { Input as InputParts, InputContext } from "../../InputParts";
|
|
32
32
|
import { Skeleton } from "../../Skeleton";
|
|
33
|
-
import { formCommonColors
|
|
33
|
+
import { formCommonColors } from "../../shared/colorRamps";
|
|
34
34
|
import { t } from "../../shared/t";
|
|
35
35
|
import type { FieldComponentProps } from "../../types";
|
|
36
36
|
import { ensureOtpCellCss } from "./otpCellCss";
|
|
37
|
+
import { otpCellEdge } from "./otpCellEdge";
|
|
37
38
|
|
|
38
39
|
export type OTPInputProps<
|
|
39
40
|
TParentData extends Record<string, unknown> = Record<string, unknown>,
|
|
@@ -230,11 +231,12 @@ const OTPDigitInput = memo(function OTPDigitInput({
|
|
|
230
231
|
otpCellHeightPx(cellSize, hydrationTouch),
|
|
231
232
|
);
|
|
232
233
|
const isNumeric = type === "numeric";
|
|
233
|
-
const
|
|
234
|
-
|
|
235
|
-
: value
|
|
236
|
-
|
|
237
|
-
|
|
234
|
+
const cellEdge = otpCellEdge({
|
|
235
|
+
hasError: Boolean(hasError),
|
|
236
|
+
filled: Boolean(value),
|
|
237
|
+
hidden: knobProps.fieldEdge.hidden,
|
|
238
|
+
borderWidthStop: knobProps.borderWidthStop,
|
|
239
|
+
});
|
|
238
240
|
const firstCell = digitIndex === 0;
|
|
239
241
|
|
|
240
242
|
return (
|
|
@@ -256,8 +258,8 @@ const OTPDigitInput = memo(function OTPDigitInput({
|
|
|
256
258
|
// lift each cell off the page.
|
|
257
259
|
elevation={0}
|
|
258
260
|
shadowOpacity={0}
|
|
259
|
-
borderColor={
|
|
260
|
-
hoverStyle={{ borderColor:
|
|
261
|
+
borderColor={cellEdge.rest}
|
|
262
|
+
hoverStyle={{ borderColor: cellEdge.hover }}
|
|
261
263
|
// LC-40: forward `disabled` so each cell renders the washed chrome.
|
|
262
264
|
disabled={disabled}
|
|
263
265
|
// Web only: keep the Box out of the tab order. The focus handlers live
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { edgeColorAt } from "@multiplatform.one/theme";
|
|
2
|
+
import { describe, expect, it } from "vitest";
|
|
3
|
+
import { formCommonColors, formControlColors, formInputColors } from "../../shared/colorRamps";
|
|
4
|
+
import { otpCellEdge } from "./otpCellEdge";
|
|
5
|
+
|
|
6
|
+
const shown = { hasError: false, filled: false, hidden: false, borderWidthStop: "small" as const };
|
|
7
|
+
|
|
8
|
+
describe("otpCellEdge", () => {
|
|
9
|
+
it("keeps a hidden edge transparent at rest and on hover, filled or not", () => {
|
|
10
|
+
for (const filled of [false, true]) {
|
|
11
|
+
expect(otpCellEdge({ ...shown, filled, hidden: true, borderWidthStop: "none" })).toEqual({
|
|
12
|
+
rest: "transparent",
|
|
13
|
+
hover: "transparent",
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it("paints an error cell the error colour even under a hidden edge", () => {
|
|
19
|
+
for (const hidden of [false, true]) {
|
|
20
|
+
expect(otpCellEdge({ ...shown, hasError: true, hidden })).toEqual({
|
|
21
|
+
rest: formCommonColors.error,
|
|
22
|
+
hover: formCommonColors.error,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
it.each(["small", "medium", "large"] as const)(
|
|
28
|
+
"draws the base edge at the %s stop and the boundary once filled",
|
|
29
|
+
(borderWidthStop) => {
|
|
30
|
+
expect(otpCellEdge({ ...shown, borderWidthStop })).toEqual({
|
|
31
|
+
rest: edgeColorAt(formInputColors.border.base, borderWidthStop),
|
|
32
|
+
hover: formInputColors.border.hover,
|
|
33
|
+
});
|
|
34
|
+
expect(otpCellEdge({ ...shown, borderWidthStop, filled: true })).toEqual({
|
|
35
|
+
rest: formControlColors.boundary,
|
|
36
|
+
hover: formInputColors.border.hover,
|
|
37
|
+
});
|
|
38
|
+
},
|
|
39
|
+
);
|
|
40
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { edgeColorAt, type Knobs } from "@multiplatform.one/theme";
|
|
2
|
+
import { formCommonColors, formControlColors, formInputColors } from "../../shared/colorRamps";
|
|
3
|
+
|
|
4
|
+
export interface OtpCellEdgeInput {
|
|
5
|
+
readonly hasError: boolean;
|
|
6
|
+
readonly filled: boolean;
|
|
7
|
+
readonly hidden: boolean;
|
|
8
|
+
readonly borderWidthStop: Knobs["borderWidth"];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function otpCellEdge({ hasError, filled, hidden, borderWidthStop }: OtpCellEdgeInput): {
|
|
12
|
+
rest: string;
|
|
13
|
+
hover: string;
|
|
14
|
+
} {
|
|
15
|
+
if (hasError) return { rest: formCommonColors.error, hover: formCommonColors.error };
|
|
16
|
+
if (hidden) return { rest: "transparent", hover: "transparent" };
|
|
17
|
+
const rest = filled
|
|
18
|
+
? formControlColors.boundary
|
|
19
|
+
: edgeColorAt(formInputColors.border.base, borderWidthStop);
|
|
20
|
+
return { rest, hover: formInputColors.border.hover };
|
|
21
|
+
}
|
package/types/Button/index.d.ts
CHANGED
|
@@ -143,7 +143,8 @@ export interface ButtonProps extends Omit<TamaguiButtonProps, "form" | "icon" |
|
|
|
143
143
|
* plated case: a translucent material circle for a control floating over
|
|
144
144
|
* an image or video, where a bare glyph would be lost on the picture.
|
|
145
145
|
* `plate="primary"` is the overlay's one confirm (LC-260): an accent-filled
|
|
146
|
-
* circle with an on-fill glyph, the iOS 26 sheet's checkmark.
|
|
146
|
+
* circle with an on-fill glyph, the iOS 26 sheet's checkmark. In the page's
|
|
147
|
+
* top bar it is a bar glyph like back and "…" (FZ-8989).
|
|
147
148
|
*/
|
|
148
149
|
plate?: "media" | "primary";
|
|
149
150
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Button/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EASL,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Button/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EASL,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EA+BL,KAAK,gBAAgB,EACrB,KAAK,UAAU,EAEhB,MAAM,0BAA0B,CAAC;AAIlC,OAAO,EAEL,KAAK,WAAW,IAAI,kBAAkB,EAavC,MAAM,SAAS,CAAC;AAKjB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAG3C,OAAO,KAAK,EAAE,UAAU,EAAuB,MAAM,cAAc,CAAC;AAYpE,OAAO,EAAc,uBAAuB,EAAE,8BAA8B,EAAE,MAAM,eAAe,CAAC;AAOpG,OAAO,EAAE,uBAAuB,EAAE,8BAA8B,EAAE,CAAC;AAEnE;;;;;;;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R,MAAc,EACd,QAAQ,EAAE,YAAY,EACtB,UAAU,EACV,IAAI,EACJ,SAAS,EACT,KAAK,EACL,MAAM,EACN,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,cAAc,EACd,uBAAiC,EACjC,gBAAgB,EAChB,YAAwB,EACxB,MAAM,EAAE,UAAU,EAClB,iBAAiB,EAAE,qBAAqB,EACxC,GAAG,KAAK,EACT,EAAE,WAAW,2CAk6Bb;yBAv8Be,MAAM;;;iBApOb,CAAC;YAAsB,CAAC;;;;;;;AAgrCjC,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,WAAW,EACX,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,CAChE;IACC,IAAI,EAAE,WAAW,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;IACvC,kFAAkF;IAClF,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,2CAEhD;AAED,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -3,9 +3,11 @@ import type { PanelBounds, TriggerRect } from "./pointAnchor";
|
|
|
3
3
|
import type { PanelWidthMode } from "./useFloatingPanel";
|
|
4
4
|
/**
|
|
5
5
|
* A FloatingPanel at regular width (FZ-8116): over its field instead of a
|
|
6
|
-
* bottom sheet. Measured
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* bottom sheet. Measured at its natural size, then placed on the field's
|
|
7
|
+
* window rect. A search list (`fill`) hugs its rows up to
|
|
8
|
+
* `regularFillHeight` and re-measures as they change (LC-173). The field is
|
|
9
|
+
* echoed as the first row, as the web float's named close row is, and
|
|
10
|
+
* pressing it closes the panel.
|
|
9
11
|
*
|
|
10
12
|
* Only a `scrollable` panel gets a scrollport: a gesture editor (ColorPicker,
|
|
11
13
|
* DatePicker) must take its own drags (LC-83).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegularPanel.d.ts","sourceRoot":"","sources":["../../src/FloatingPanel/RegularPanel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAUjD,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD
|
|
1
|
+
{"version":3,"file":"RegularPanel.d.ts","sourceRoot":"","sources":["../../src/FloatingPanel/RegularPanel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAUjD,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,EAC3B,MAAM,EACN,MAAM,EACN,SAAS,EACT,IAAI,EACJ,SAAS,EACT,MAAM,EACN,UAAU,EACV,IAAI,EACJ,eAAe,EACf,YAAY,EACZ,QAAQ,EACR,eAAe,EACf,OAAO,EACP,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,cAAc,CAAC;IAC1B,IAAI,EAAE,SAAS,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,YAAY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SAAS,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC,GAAG,SAAS,GAAG,SAAS,EAC9E,KAAK,SAAS,SAAS,CAAC,WAAW,EAAE,KAAK,CAAC,GAAG,SAAS,CAAC,WAAW,EAAE,KAAK,CAAC,EAC3E,KAAK,EAAE,aAAa,CAAC,WAAW,EAAE,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,KAAK,CAAC,2CAuTjF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Knobs } from "@multiplatform.one/theme";
|
|
2
|
+
export interface OtpCellEdgeInput {
|
|
3
|
+
readonly hasError: boolean;
|
|
4
|
+
readonly filled: boolean;
|
|
5
|
+
readonly hidden: boolean;
|
|
6
|
+
readonly borderWidthStop: Knobs["borderWidth"];
|
|
7
|
+
}
|
|
8
|
+
export declare function otpCellEdge({ hasError, filled, hidden, borderWidthStop }: OtpCellEdgeInput): {
|
|
9
|
+
rest: string;
|
|
10
|
+
hover: string;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=otpCellEdge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otpCellEdge.d.ts","sourceRoot":"","sources":["../../../src/fields/OTPInput/otpCellEdge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAGnE,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAChD;AAED,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,EAAE,gBAAgB,GAAG;IAC5F,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAOA"}
|