jfs-components 0.1.58 → 0.1.59
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/CHANGELOG.md +4 -0
- package/lib/commonjs/components/CardFinancialCondition/CardFinancialCondition.js +11 -1
- package/lib/commonjs/icons/registry.js +1 -1
- package/lib/module/components/CardFinancialCondition/CardFinancialCondition.js +11 -1
- package/lib/module/icons/registry.js +1 -1
- package/lib/typescript/src/icons/registry.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/CardFinancialCondition/CardFinancialCondition.tsx +12 -2
- package/src/icons/registry.ts +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Auto-generated from SVG files in src/icons/
|
|
5
5
|
* DO NOT EDIT MANUALLY - Run "npm run icons:generate" to regenerate
|
|
6
6
|
*
|
|
7
|
-
* Generated: 2026-07-
|
|
7
|
+
* Generated: 2026-07-27T22:22:57.898Z
|
|
8
8
|
*/
|
|
9
9
|
export declare const iconRegistry: Record<string, {
|
|
10
10
|
path: string;
|
package/package.json
CHANGED
|
@@ -65,6 +65,15 @@ export type CardFinancialConditionProps = CardFinancialConditionBaseProps & {
|
|
|
65
65
|
accessibilityLabel?: string
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
// Match the Figma source defaults: Neutral brand, Nudge&Alert context, and
|
|
69
|
+
// no nudge padding. Caller / global modes merge on top so any key can still
|
|
70
|
+
// be overridden per-instance.
|
|
71
|
+
const COMPONENT_DEFAULT_MODES: Readonly<Record<string, string>> = Object.freeze({
|
|
72
|
+
AppearanceBrand: 'Neutral',
|
|
73
|
+
Context: 'Nudge&Alert',
|
|
74
|
+
'Nudge padding': 'None',
|
|
75
|
+
})
|
|
76
|
+
|
|
68
77
|
interface CardFinancialConditionTokens {
|
|
69
78
|
containerStyle: ViewStyle
|
|
70
79
|
headerStyle: ViewStyle
|
|
@@ -263,11 +272,12 @@ function CardFinancialCondition({
|
|
|
263
272
|
...rest
|
|
264
273
|
}: CardFinancialConditionProps) {
|
|
265
274
|
const { modes: globalModes } = useTokens()
|
|
275
|
+
// Merge order: component defaults → global theme → caller props.
|
|
266
276
|
const modes = useMemo(
|
|
267
277
|
() =>
|
|
268
278
|
globalModes === EMPTY_MODES && propModes === EMPTY_MODES
|
|
269
|
-
?
|
|
270
|
-
: { ...globalModes, ...propModes },
|
|
279
|
+
? COMPONENT_DEFAULT_MODES
|
|
280
|
+
: { ...COMPONENT_DEFAULT_MODES, ...globalModes, ...propModes },
|
|
271
281
|
[globalModes, propModes]
|
|
272
282
|
)
|
|
273
283
|
|
package/src/icons/registry.ts
CHANGED