@oxy.so/bloom 7.23.1 → 7.24.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/button.mdx +5 -1
- package/docs/card.mdx +4 -4
- package/docs/input-otp.mdx +1 -1
- package/docs/shapes.mdx +4 -1
- package/docs/text-field.mdx +2 -2
- package/lib/commonjs/button/Button.js +2 -2
- package/lib/commonjs/button/Button.js.map +1 -1
- package/lib/commonjs/button/Button.web.js +19 -6
- package/lib/commonjs/button/Button.web.js.map +1 -1
- package/lib/commonjs/card/Card.js +1 -1
- package/lib/commonjs/card/Card.js.map +1 -1
- package/lib/commonjs/card-form/CardFormParts.js +1 -1
- package/lib/commonjs/design-tokens/shapes.js +5 -5
- package/lib/commonjs/design-tokens/shapes.js.map +1 -1
- package/lib/commonjs/design-tokens/tokens.json +5 -5
- package/lib/commonjs/input-otp/InputOtp.js +1 -1
- package/lib/commonjs/text-field/shared.js +4 -3
- package/lib/commonjs/text-field/shared.js.map +1 -1
- package/lib/module/button/Button.js +2 -2
- package/lib/module/button/Button.js.map +1 -1
- package/lib/module/button/Button.web.js +19 -6
- package/lib/module/button/Button.web.js.map +1 -1
- package/lib/module/card/Card.js +1 -1
- package/lib/module/card/Card.js.map +1 -1
- package/lib/module/card-form/CardFormParts.js +1 -1
- package/lib/module/design-tokens/shapes.js +5 -5
- package/lib/module/design-tokens/shapes.js.map +1 -1
- package/lib/module/design-tokens/tokens.json +5 -5
- package/lib/module/input-otp/InputOtp.js +1 -1
- package/lib/module/text-field/shared.js +4 -3
- package/lib/module/text-field/shared.js.map +1 -1
- package/lib/typescript/commonjs/button/Button.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/card/types.d.ts +2 -2
- package/lib/typescript/commonjs/card/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/design-tokens/shapes.d.ts +5 -5
- package/lib/typescript/commonjs/text-field/shared.d.ts +3 -3
- package/lib/typescript/commonjs/text-field/shared.d.ts.map +1 -1
- package/lib/typescript/module/button/Button.web.d.ts.map +1 -1
- package/lib/typescript/module/card/types.d.ts +2 -2
- package/lib/typescript/module/card/types.d.ts.map +1 -1
- package/lib/typescript/module/design-tokens/shapes.d.ts +5 -5
- package/lib/typescript/module/text-field/shared.d.ts +3 -3
- package/lib/typescript/module/text-field/shared.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/button/Button.tsx +4 -4
- package/src/button/Button.web.tsx +12 -5
- package/src/card/Card.tsx +1 -1
- package/src/card/types.ts +2 -2
- package/src/card-form/CardFormParts.tsx +1 -1
- package/src/design-tokens/shapes.ts +4 -4
- package/src/design-tokens/tokens.json +5 -5
- package/src/input-otp/InputOtp.tsx +1 -1
- package/src/text-field/shared.ts +4 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** Component policies. Geometry and renderers never import these tokens. */
|
|
2
2
|
export declare const SURFACE_SHAPES: {
|
|
3
3
|
readonly card: {
|
|
4
|
-
readonly radius:
|
|
5
|
-
readonly curve: "
|
|
4
|
+
readonly radius: 20;
|
|
5
|
+
readonly curve: "round";
|
|
6
6
|
};
|
|
7
7
|
readonly sidebar: {
|
|
8
8
|
readonly radius: 28;
|
|
@@ -10,18 +10,18 @@ export declare const SURFACE_SHAPES: {
|
|
|
10
10
|
};
|
|
11
11
|
readonly panel: {
|
|
12
12
|
readonly radius: 20;
|
|
13
|
-
readonly curve: "
|
|
13
|
+
readonly curve: "round";
|
|
14
14
|
};
|
|
15
15
|
readonly menu: {
|
|
16
16
|
readonly radius: 16;
|
|
17
|
-
readonly curve: "
|
|
17
|
+
readonly curve: "round";
|
|
18
18
|
};
|
|
19
19
|
readonly sheet: {
|
|
20
20
|
readonly radius: {
|
|
21
21
|
readonly topStart: 24;
|
|
22
22
|
readonly topEnd: 24;
|
|
23
23
|
};
|
|
24
|
-
readonly curve: "
|
|
24
|
+
readonly curve: "round";
|
|
25
25
|
};
|
|
26
26
|
readonly chart: {
|
|
27
27
|
readonly curve: "smooth";
|
|
@@ -12,7 +12,7 @@ import type { Theme } from '../theme/types';
|
|
|
12
12
|
* input pl 4 4
|
|
13
13
|
* text 14/20 400 14/20 400
|
|
14
14
|
* icon 20 20
|
|
15
|
-
* radius
|
|
15
|
+
* radius 12 12
|
|
16
16
|
*
|
|
17
17
|
* The shell is a FILLED surface with an inset 2px ring rather than a border:
|
|
18
18
|
* transparent at rest, `border-button-hover` on hover, `border-button-active`
|
|
@@ -35,8 +35,8 @@ export declare const TEXT_FIELD_ADDON_PADDING: Record<TextFieldSize, {
|
|
|
35
35
|
paddingLeft: number;
|
|
36
36
|
paddingRight: number;
|
|
37
37
|
}>;
|
|
38
|
-
/**
|
|
39
|
-
export declare const TEXT_FIELD_RADIUS
|
|
38
|
+
/** Shared field family corner rung. */
|
|
39
|
+
export declare const TEXT_FIELD_RADIUS: 12;
|
|
40
40
|
/** Width of the inset ring (`ring-2 ring-inset`). */
|
|
41
41
|
export declare const TEXT_FIELD_RING_WIDTH = 2;
|
|
42
42
|
/** `pl-1` on the control. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/text-field/shared.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAMxD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/text-field/shared.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAMxD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAK5C;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC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CAAE,CAgBlD;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,gBAAgB,EACzB,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,cAAc,GAC7C,MAAM,CAKR;AAED,iFAAiF;AACjF,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,gBAAgB,EACzB,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,UAAU,CAAC,GAClE,MAAM,CAIR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.web.d.ts","sourceRoot":"","sources":["../../../../src/button/Button.web.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAyB,IAAI,EAAE,MAAM,cAAc,CAAC;AAEhE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KASN,MAAM,OAAO,CAAC;AAaf,OAAO,KAAK,EAAuB,WAAW,EAAE,MAAM,SAAS,CAAC;AAEhE,YAAY,EACV,WAAW,EAAE,eAAe,EAC5B,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,SAAS,CAAC;AAuBjB;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,QAgFtB,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.web.d.ts","sourceRoot":"","sources":["../../../../src/button/Button.web.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAyB,IAAI,EAAE,MAAM,cAAc,CAAC;AAEhE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KASN,MAAM,OAAO,CAAC;AAaf,OAAO,KAAK,EAAuB,WAAW,EAAE,MAAM,SAAS,CAAC;AAEhE,YAAY,EACV,WAAW,EAAE,eAAe,EAC5B,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,SAAS,CAAC;AAuBjB;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,QAgFtB,CAAC;AA8bR,eAAO,MAAM,MAAM,qEAA2B,CAAC;AAG/C,eAAO,MAAM,aAAa,oCAAgB,WAAW,6CAEnD,CAAC;AAGH,eAAO,MAAM,eAAe,oCAAgB,WAAW,6CAErD,CAAC;AAGH,eAAO,MAAM,UAAU,oCAAgB,WAAW,6CAEhD,CAAC;AAGH,eAAO,MAAM,WAAW,oCAAgB,WAAW,6CAEjD,CAAC;AAGH,eAAO,MAAM,aAAa,oCAAgB,WAAW,6CAGnD,CAAC;AAGH,eAAO,MAAM,UAAU,oCAAgB,WAAW,6CAEhD,CAAC;AAGH,eAAO,MAAM,aAAa,oCAAgB,WAAW,6CAEnD,CAAC;AAGH;;;;GAIG;AACH,eAAO,MAAM,UAAU,qDAA6C,eAAe,6CAEjF,CAAC;AAGH,eAAO,MAAM,iBAAiB,oCAAgB,WAAW,6CAEvD,CAAC"}
|
|
@@ -28,9 +28,9 @@ export interface CardProps {
|
|
|
28
28
|
/** Preset background + border + elevation. Default `solid` with small elevation. */
|
|
29
29
|
appearance?: BloomAppearance;
|
|
30
30
|
tone?: BloomTone;
|
|
31
|
-
/** Corner rung, or panel to inherit BloomScope.panelRadius and the shared circular curve. Default radius-
|
|
31
|
+
/** Corner rung, or panel to inherit BloomScope.panelRadius and the shared circular curve. Default radius-20. */
|
|
32
32
|
radius?: CardRadius;
|
|
33
|
-
/**
|
|
33
|
+
/** Circular by default; smooth opts into platform-adaptive curves. radius-max remains circular. */
|
|
34
34
|
cornerCurve?: CornerCurve;
|
|
35
35
|
/** Clip children in an inner layer, preserving outer shadows and focus. */
|
|
36
36
|
clipContent?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/card/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EA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AAU,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** Component policies. Geometry and renderers never import these tokens. */
|
|
2
2
|
export declare const SURFACE_SHAPES: {
|
|
3
3
|
readonly card: {
|
|
4
|
-
readonly radius:
|
|
5
|
-
readonly curve: "
|
|
4
|
+
readonly radius: 20;
|
|
5
|
+
readonly curve: "round";
|
|
6
6
|
};
|
|
7
7
|
readonly sidebar: {
|
|
8
8
|
readonly radius: 28;
|
|
@@ -10,18 +10,18 @@ export declare const SURFACE_SHAPES: {
|
|
|
10
10
|
};
|
|
11
11
|
readonly panel: {
|
|
12
12
|
readonly radius: 20;
|
|
13
|
-
readonly curve: "
|
|
13
|
+
readonly curve: "round";
|
|
14
14
|
};
|
|
15
15
|
readonly menu: {
|
|
16
16
|
readonly radius: 16;
|
|
17
|
-
readonly curve: "
|
|
17
|
+
readonly curve: "round";
|
|
18
18
|
};
|
|
19
19
|
readonly sheet: {
|
|
20
20
|
readonly radius: {
|
|
21
21
|
readonly topStart: 24;
|
|
22
22
|
readonly topEnd: 24;
|
|
23
23
|
};
|
|
24
|
-
readonly curve: "
|
|
24
|
+
readonly curve: "round";
|
|
25
25
|
};
|
|
26
26
|
readonly chart: {
|
|
27
27
|
readonly curve: "smooth";
|
|
@@ -12,7 +12,7 @@ import type { Theme } from '../theme/types';
|
|
|
12
12
|
* input pl 4 4
|
|
13
13
|
* text 14/20 400 14/20 400
|
|
14
14
|
* icon 20 20
|
|
15
|
-
* radius
|
|
15
|
+
* radius 12 12
|
|
16
16
|
*
|
|
17
17
|
* The shell is a FILLED surface with an inset 2px ring rather than a border:
|
|
18
18
|
* transparent at rest, `border-button-hover` on hover, `border-button-active`
|
|
@@ -35,8 +35,8 @@ export declare const TEXT_FIELD_ADDON_PADDING: Record<TextFieldSize, {
|
|
|
35
35
|
paddingLeft: number;
|
|
36
36
|
paddingRight: number;
|
|
37
37
|
}>;
|
|
38
|
-
/**
|
|
39
|
-
export declare const TEXT_FIELD_RADIUS
|
|
38
|
+
/** Shared field family corner rung. */
|
|
39
|
+
export declare const TEXT_FIELD_RADIUS: 12;
|
|
40
40
|
/** Width of the inset ring (`ring-2 ring-inset`). */
|
|
41
41
|
export declare const TEXT_FIELD_RING_WIDTH = 2;
|
|
42
42
|
/** `pl-1` on the control. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/text-field/shared.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAMxD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/text-field/shared.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAMxD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAK5C;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC;AAEtC,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,aAAa,EAAE,iBAAiB,CAKxE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAC3C,aAAa,EACb;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAM9C,CAAC;AAEF,uCAAuC;AACvC,eAAO,MAAM,iBAAiB,IAAsB,CAAC;AACrD,qDAAqD;AACrD,eAAO,MAAM,qBAAqB,IAAI,CAAC;AACvC,6BAA6B;AAC7B,eAAO,MAAM,sBAAsB,IAAI,CAAC;AACxC,2BAA2B;AAC3B,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,wDAAwD;AACxD,eAAO,MAAM,sBAAsB,IAAI,CAAC;AACxC,4DAA4D;AAC5D,eAAO,MAAM,uBAAuB,IAAI,CAAC;AACzC,6CAA6C;AAC7C,eAAO,MAAM,oBAAoB,IAAI,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,CAAC;AAEjD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,KAAK,EACZ,OAAO,GAAE,MAAgC,GACxC,gBAAgB,CAoBlB;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,IAAI,gBAAgB,CAItD;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,2DAA2D;AAC3D,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,gBAAgB,EACzB,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,cAAc,GACtD;IAAE,eAAe,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAgBlD;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,gBAAgB,EACzB,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,cAAc,GAC7C,MAAM,CAKR;AAED,iFAAiF;AACjF,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,gBAAgB,EACzB,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,UAAU,CAAC,GAClE,MAAM,CAIR"}
|
package/package.json
CHANGED
package/src/button/Button.tsx
CHANGED
|
@@ -213,16 +213,16 @@ function ButtonContent({ loading, gap, children }: {
|
|
|
213
213
|
...(layout.columnGap !== undefined && { columnGap: layout.columnGap }),
|
|
214
214
|
};
|
|
215
215
|
return <View pointerEvents={loading ? 'none' : undefined}
|
|
216
|
-
style={[styles.content, { gap }, contentLayout, loading && { opacity: 0 }]}
|
|
217
|
-
|
|
218
|
-
accessibilityElementsHidden={loading || undefined}>
|
|
216
|
+
style={[styles.content, { gap }, contentLayout, loading && { opacity: 0 }]}>
|
|
217
|
+
{/* Preserve the original descendants as the accessible name while busy. */}
|
|
219
218
|
{children(text ?? {})}
|
|
220
219
|
</View>;
|
|
221
220
|
}
|
|
222
221
|
|
|
223
222
|
function ButtonLoading({ color, fallback }: { color?: string; fallback: string }) {
|
|
224
223
|
const { text } = useContext(ContentStyleContext);
|
|
225
|
-
return <View pointerEvents="none" style={styles.loadingOverlay}
|
|
224
|
+
return <View pointerEvents="none" style={styles.loadingOverlay}
|
|
225
|
+
accessibilityElementsHidden importantForAccessibility="no-hide-descendants">
|
|
226
226
|
<ActivityIndicator size="small" color={color ?? text?.color ?? fallback} />
|
|
227
227
|
</View>;
|
|
228
228
|
}
|
|
@@ -422,13 +422,19 @@ const ButtonWebComponent = forwardRef<View, ButtonProps>(function ButtonWebCompo
|
|
|
422
422
|
</>
|
|
423
423
|
);
|
|
424
424
|
|
|
425
|
-
// A stable
|
|
426
|
-
//
|
|
425
|
+
// A stable flex parent preserves child state and geometry across loading.
|
|
426
|
+
// Opacity hides paint while keeping the original accessible content/name.
|
|
427
|
+
// display:contents cannot apply opacity, and visibility/aria-hidden erase
|
|
428
|
+
// the name of controls whose label comes from their descendants.
|
|
427
429
|
const body = (
|
|
428
430
|
<>
|
|
429
431
|
<span
|
|
430
|
-
|
|
431
|
-
|
|
432
|
+
style={{
|
|
433
|
+
display: 'inline-flex', flexDirection: 'inherit', flexWrap: 'inherit',
|
|
434
|
+
alignItems: 'inherit', justifyContent: 'inherit', alignContent: 'inherit',
|
|
435
|
+
gap: 'inherit', alignSelf: 'stretch', flexGrow: 1, flexShrink: 1, minWidth: 0,
|
|
436
|
+
opacity: loading ? 0 : undefined, pointerEvents: loading ? 'none' : undefined,
|
|
437
|
+
}}
|
|
432
438
|
>
|
|
433
439
|
{content}
|
|
434
440
|
</span>
|
|
@@ -508,7 +514,7 @@ const ButtonWebComponent = forwardRef<View, ButtonProps>(function ButtonWebCompo
|
|
|
508
514
|
}
|
|
509
515
|
|
|
510
516
|
// `href` renders a real anchor, for a button link or an anchor `LinkButton`.
|
|
511
|
-
// A
|
|
517
|
+
// A blocked link drops navigation, while retaining its role and name.
|
|
512
518
|
if (href != null && !asChild) {
|
|
513
519
|
return (
|
|
514
520
|
<a
|
|
@@ -516,6 +522,7 @@ const ButtonWebComponent = forwardRef<View, ButtonProps>(function ButtonWebCompo
|
|
|
516
522
|
aria-hidden={hidden}
|
|
517
523
|
id={resolvedId}
|
|
518
524
|
href={isInteractionBlocked ? undefined : href}
|
|
525
|
+
role={accessibilityRole ?? 'link'}
|
|
519
526
|
target={target}
|
|
520
527
|
rel={rel}
|
|
521
528
|
className={composedClassName}
|
package/src/card/Card.tsx
CHANGED
|
@@ -96,7 +96,7 @@ const CardRootComponent = React.forwardRef<View, CardProps>(function CardRootCom
|
|
|
96
96
|
const panelShape = usePanelShape();
|
|
97
97
|
const cornerCurve = cornerCurveProp ?? (radius === 'panel' ? panelShape.curve : SURFACE_SHAPES.card.curve);
|
|
98
98
|
const explicitRadius = radius === 'panel' ? panelShape.radius : radius ? RADIUS[radius] : undefined;
|
|
99
|
-
const resolvedGeometry = resolveSurfaceGeometry(explicitRadius, style,
|
|
99
|
+
const resolvedGeometry = resolveSurfaceGeometry(explicitRadius, style, SURFACE_SHAPES.card.radius, cornerCurve);
|
|
100
100
|
const appearance = appearanceProp ?? 'solid';
|
|
101
101
|
const {tone} = useBloomAppearance({tone: toneProp}, {size: 'md', tone: 'neutral'});
|
|
102
102
|
const paint = resolveBloomColors(theme.colors, tone, appearance);
|
package/src/card/types.ts
CHANGED
|
@@ -44,9 +44,9 @@ export interface CardProps {
|
|
|
44
44
|
/** Preset background + border + elevation. Default `solid` with small elevation. */
|
|
45
45
|
appearance?: BloomAppearance;
|
|
46
46
|
tone?: BloomTone;
|
|
47
|
-
/** Corner rung, or panel to inherit BloomScope.panelRadius and the shared circular curve. Default radius-
|
|
47
|
+
/** Corner rung, or panel to inherit BloomScope.panelRadius and the shared circular curve. Default radius-20. */
|
|
48
48
|
radius?: CardRadius;
|
|
49
|
-
/**
|
|
49
|
+
/** Circular by default; smooth opts into platform-adaptive curves. radius-max remains circular. */
|
|
50
50
|
cornerCurve?: CornerCurve;
|
|
51
51
|
/** Clip children in an inner layer, preserving outer shadows and focus. */
|
|
52
52
|
clipContent?: boolean;
|
|
@@ -556,7 +556,7 @@ function CardFormCountryComponent({
|
|
|
556
556
|
label={member.name}
|
|
557
557
|
disabled={member.disabled}
|
|
558
558
|
// The trigger sits BESIDE a text box on the same line, and a pill
|
|
559
|
-
// next to a
|
|
559
|
+
// next to a smaller-radius box reads as two different controls. It is
|
|
560
560
|
// the override `SelectTrigger` documents for exactly this — a
|
|
561
561
|
// trigger embedded in another control — and it is the field's own
|
|
562
562
|
// radius, not a number picked here.
|
|
@@ -3,11 +3,11 @@ import { RADIUS } from './scales';
|
|
|
3
3
|
|
|
4
4
|
/** Component policies. Geometry and renderers never import these tokens. */
|
|
5
5
|
export const SURFACE_SHAPES = {
|
|
6
|
-
card: { radius: RADIUS['radius-
|
|
6
|
+
card: { radius: RADIUS['radius-20'], curve: 'round' },
|
|
7
7
|
sidebar: { radius: RADIUS['radius-28'], curve: 'round' },
|
|
8
|
-
panel: { radius: RADIUS['radius-20'], curve: '
|
|
9
|
-
menu: { radius: RADIUS['radius-16'], curve: '
|
|
10
|
-
sheet: { radius: { topStart: RADIUS['radius-24'], topEnd: RADIUS['radius-24'] }, curve: '
|
|
8
|
+
panel: { radius: RADIUS['radius-20'], curve: 'round' },
|
|
9
|
+
menu: { radius: RADIUS['radius-16'], curve: 'round' },
|
|
10
|
+
sheet: { radius: { topStart: RADIUS['radius-24'], topEnd: RADIUS['radius-24'] }, curve: 'round' },
|
|
11
11
|
chart: { curve: 'smooth' },
|
|
12
12
|
capsule: { curve: 'round' },
|
|
13
13
|
glass: { curve: 'smooth' },
|
|
@@ -28585,12 +28585,12 @@
|
|
|
28585
28585
|
"card": {
|
|
28586
28586
|
"$extensions": {
|
|
28587
28587
|
"so.oxy.bloom": {
|
|
28588
|
-
"curve": "
|
|
28588
|
+
"curve": "round"
|
|
28589
28589
|
}
|
|
28590
28590
|
},
|
|
28591
28591
|
"radius": {
|
|
28592
28592
|
"$type": "dimension",
|
|
28593
|
-
"$value": "
|
|
28593
|
+
"$value": "20px"
|
|
28594
28594
|
}
|
|
28595
28595
|
},
|
|
28596
28596
|
"sidebar": {
|
|
@@ -28607,7 +28607,7 @@
|
|
|
28607
28607
|
"panel": {
|
|
28608
28608
|
"$extensions": {
|
|
28609
28609
|
"so.oxy.bloom": {
|
|
28610
|
-
"curve": "
|
|
28610
|
+
"curve": "round"
|
|
28611
28611
|
}
|
|
28612
28612
|
},
|
|
28613
28613
|
"radius": {
|
|
@@ -28618,7 +28618,7 @@
|
|
|
28618
28618
|
"menu": {
|
|
28619
28619
|
"$extensions": {
|
|
28620
28620
|
"so.oxy.bloom": {
|
|
28621
|
-
"curve": "
|
|
28621
|
+
"curve": "round"
|
|
28622
28622
|
}
|
|
28623
28623
|
},
|
|
28624
28624
|
"radius": {
|
|
@@ -28629,7 +28629,7 @@
|
|
|
28629
28629
|
"sheet": {
|
|
28630
28630
|
"$extensions": {
|
|
28631
28631
|
"so.oxy.bloom": {
|
|
28632
|
-
"curve": "
|
|
28632
|
+
"curve": "round"
|
|
28633
28633
|
}
|
|
28634
28634
|
},
|
|
28635
28635
|
"radius": {
|
|
@@ -27,7 +27,7 @@ import { useFieldMembership } from '../field/membership';
|
|
|
27
27
|
/**
|
|
28
28
|
* `InputOtp`: one box per digit, side by side, behaving as ONE value.
|
|
29
29
|
*
|
|
30
|
-
* box 48 × 48, radius
|
|
30
|
+
* box 48 × 48, radius 12, 1px border, shadow-xs; narrower (never
|
|
31
31
|
* wider) when the row does not fit its container
|
|
32
32
|
* digit mono, title-3-medium 18/26 500, centred, tabular numerals
|
|
33
33
|
* gap 8 between boxes, +12 before each `groupEvery` group
|
package/src/text-field/shared.ts
CHANGED
|
@@ -8,6 +8,7 @@ import type { WebCssStyle } from '../styles/web-view-style';
|
|
|
8
8
|
import { surfaceFillOn, surfaceTextOn, useSurfaceFill } from '../styles/surface-levels';
|
|
9
9
|
import type { Theme } from '../theme/types';
|
|
10
10
|
import { useTheme } from '../theme/use-theme';
|
|
11
|
+
import { RADIUS } from '../design-tokens/scales';
|
|
11
12
|
import { TYPE_SCALE } from '../typography/scale';
|
|
12
13
|
|
|
13
14
|
/**
|
|
@@ -21,7 +22,7 @@ import { TYPE_SCALE } from '../typography/scale';
|
|
|
21
22
|
* input pl 4 4
|
|
22
23
|
* text 14/20 400 14/20 400
|
|
23
24
|
* icon 20 20
|
|
24
|
-
* radius
|
|
25
|
+
* radius 12 12
|
|
25
26
|
*
|
|
26
27
|
* The shell is a FILLED surface with an inset 2px ring rather than a border:
|
|
27
28
|
* transparent at rest, `border-button-hover` on hover, `border-button-active`
|
|
@@ -59,8 +60,8 @@ export const TEXT_FIELD_ADDON_PADDING: Record<
|
|
|
59
60
|
sm: { paddingLeft: 4, paddingRight: 6 },
|
|
60
61
|
};
|
|
61
62
|
|
|
62
|
-
/**
|
|
63
|
-
export const TEXT_FIELD_RADIUS =
|
|
63
|
+
/** Shared field family corner rung. */
|
|
64
|
+
export const TEXT_FIELD_RADIUS = RADIUS['radius-12'];
|
|
64
65
|
/** Width of the inset ring (`ring-2 ring-inset`). */
|
|
65
66
|
export const TEXT_FIELD_RING_WIDTH = 2;
|
|
66
67
|
/** `pl-1` on the control. */
|