jfs-components 0.0.51 → 0.0.53
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/lib/commonjs/components/ListItem/ListItem.js +26 -21
- package/lib/commonjs/components/Section/Section.js +1 -1
- package/lib/commonjs/design-tokens/Coin Variables-variables-full.json +1 -1
- package/lib/commonjs/icons/registry.js +1 -1
- package/lib/module/components/ListItem/ListItem.js +26 -21
- package/lib/module/components/Section/Section.js +1 -1
- package/lib/module/design-tokens/Coin Variables-variables-full.json +1 -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/ListItem/ListItem.tsx +23 -21
- package/src/components/Section/Section.tsx +1 -1
- package/src/design-tokens/Coin Variables-variables-full.json +1 -1
- 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-04-
|
|
7
|
+
* Generated: 2026-04-13T10:56:51.920Z
|
|
8
8
|
*/
|
|
9
9
|
export declare const iconRegistry: Record<string, {
|
|
10
10
|
path: string;
|
package/package.json
CHANGED
|
@@ -88,22 +88,24 @@ function ListItem({
|
|
|
88
88
|
webAccessibilityProps,
|
|
89
89
|
...rest
|
|
90
90
|
}: ListItemProps) {
|
|
91
|
+
const resolvedModes = { ...modes, "Context": "ListItem" }
|
|
92
|
+
|
|
91
93
|
// Resolve container spacing tokens
|
|
92
|
-
const gap = getVariableByName('listItem/gap',
|
|
93
|
-
const paddingTop = getVariableByName('listItem/padding/top',
|
|
94
|
-
const paddingBottom = getVariableByName('listItem/padding/bottom',
|
|
95
|
-
const paddingLeft = getVariableByName('listItem/padding/left',
|
|
96
|
-
const paddingRight = getVariableByName('listItem/padding/right',
|
|
97
|
-
const textWrapGap = getVariableByName('listItem/text wrap',
|
|
94
|
+
const gap = getVariableByName('listItem/gap', resolvedModes) ?? 8
|
|
95
|
+
const paddingTop = getVariableByName('listItem/padding/top', resolvedModes) ?? 0
|
|
96
|
+
const paddingBottom = getVariableByName('listItem/padding/bottom', resolvedModes) ?? 0
|
|
97
|
+
const paddingLeft = getVariableByName('listItem/padding/left', resolvedModes) ?? 0
|
|
98
|
+
const paddingRight = getVariableByName('listItem/padding/right', resolvedModes) ?? 0
|
|
99
|
+
const textWrapGap = getVariableByName('listItem/text wrap', resolvedModes) ?? 0
|
|
98
100
|
|
|
99
101
|
// Title typography (horizontal layout)
|
|
100
|
-
const titleColor = getVariableByName('listItem/title/color',
|
|
101
|
-
const titleFontSize = getVariableByName('listItem/title/fontSize',
|
|
102
|
-
const titleLineHeight = getVariableByName('listItem/title/lineHeight',
|
|
102
|
+
const titleColor = getVariableByName('listItem/title/color', resolvedModes) || '#0f0d0a'
|
|
103
|
+
const titleFontSize = getVariableByName('listItem/title/fontSize', resolvedModes) || 14
|
|
104
|
+
const titleLineHeight = getVariableByName('listItem/title/lineHeight', resolvedModes) || 16
|
|
103
105
|
const titleFontFamily =
|
|
104
|
-
getVariableByName('listItem/title/fontFamily',
|
|
106
|
+
getVariableByName('listItem/title/fontFamily', resolvedModes) || 'System'
|
|
105
107
|
const titleFontWeightRaw =
|
|
106
|
-
getVariableByName('listItem/title/fontWeight',
|
|
108
|
+
getVariableByName('listItem/title/fontWeight', resolvedModes) || 700
|
|
107
109
|
const titleFontWeight =
|
|
108
110
|
typeof titleFontWeightRaw === 'number'
|
|
109
111
|
? titleFontWeightRaw.toString()
|
|
@@ -111,15 +113,15 @@ function ListItem({
|
|
|
111
113
|
|
|
112
114
|
// Support text typography (used in both layouts)
|
|
113
115
|
const supportColor =
|
|
114
|
-
getVariableByName('listItem/supportText/color',
|
|
116
|
+
getVariableByName('listItem/supportText/color', resolvedModes) || '#1f1a14'
|
|
115
117
|
const supportFontSize =
|
|
116
|
-
getVariableByName('listItem/supportText/fontSize',
|
|
118
|
+
getVariableByName('listItem/supportText/fontSize', resolvedModes) || 12
|
|
117
119
|
const supportLineHeight =
|
|
118
|
-
getVariableByName('listItem/supportText/lineHeight',
|
|
120
|
+
getVariableByName('listItem/supportText/lineHeight', resolvedModes) || 14
|
|
119
121
|
const supportFontFamily =
|
|
120
|
-
getVariableByName('listItem/supportText/fontFamily',
|
|
122
|
+
getVariableByName('listItem/supportText/fontFamily', resolvedModes) || 'System'
|
|
121
123
|
const supportFontWeightRaw =
|
|
122
|
-
getVariableByName('listItem/supportText/fontWeight',
|
|
124
|
+
getVariableByName('listItem/supportText/fontWeight', resolvedModes) || 500
|
|
123
125
|
const supportFontWeight =
|
|
124
126
|
typeof supportFontWeightRaw === 'number'
|
|
125
127
|
? supportFontWeightRaw.toString()
|
|
@@ -204,7 +206,7 @@ function ListItem({
|
|
|
204
206
|
|
|
205
207
|
// Process leading slot to pass modes to children
|
|
206
208
|
const processedLeading = leading
|
|
207
|
-
? cloneChildrenWithModes(React.Children.toArray(leading),
|
|
209
|
+
? cloneChildrenWithModes(React.Children.toArray(leading), resolvedModes)
|
|
208
210
|
: []
|
|
209
211
|
// Extract single element if array has one element, otherwise use array
|
|
210
212
|
const leadingElement =
|
|
@@ -212,14 +214,14 @@ function ListItem({
|
|
|
212
214
|
? processedLeading.length === 1
|
|
213
215
|
? processedLeading[0]
|
|
214
216
|
: processedLeading
|
|
215
|
-
: <IconCapsule modes={
|
|
217
|
+
: <IconCapsule modes={resolvedModes} accessibilityLabel={undefined} />
|
|
216
218
|
|
|
217
219
|
const renderSupportContent = () => {
|
|
218
220
|
if (supportSlot) {
|
|
219
221
|
// Process supportSlot to pass modes to children
|
|
220
222
|
const processedSupportSlot = cloneChildrenWithModes(
|
|
221
223
|
React.Children.toArray(supportSlot),
|
|
222
|
-
|
|
224
|
+
resolvedModes
|
|
223
225
|
)
|
|
224
226
|
// Extract single element if array has one element, otherwise use array
|
|
225
227
|
return processedSupportSlot.length === 1
|
|
@@ -251,7 +253,7 @@ function ListItem({
|
|
|
251
253
|
// Process endSlot to pass modes to children
|
|
252
254
|
// Force Context: 'ListItem' - this value can never be overridden by external modes
|
|
253
255
|
const processedEndSlot = endSlot
|
|
254
|
-
? cloneChildrenWithModes(React.Children.toArray(endSlot),
|
|
256
|
+
? cloneChildrenWithModes(React.Children.toArray(endSlot), resolvedModes, { "Context": 'ListItem' })
|
|
255
257
|
: []
|
|
256
258
|
// Extract single element if array has one element, otherwise use array
|
|
257
259
|
const trailingContent =
|
|
@@ -284,7 +286,7 @@ function ListItem({
|
|
|
284
286
|
{trailingContent ? (
|
|
285
287
|
<View style={trailingWrapperStyle}>{trailingContent}</View>
|
|
286
288
|
) : null}
|
|
287
|
-
{navArrow && <NavArrow direction="Forward" modes={
|
|
289
|
+
{navArrow && <NavArrow direction="Forward" modes={resolvedModes} />}
|
|
288
290
|
</View>
|
|
289
291
|
)
|
|
290
292
|
|
|
@@ -69,7 +69,7 @@ function Section({
|
|
|
69
69
|
const headerPressedStyle: ViewStyle = isHeaderPressed ? { opacity: 0.85 } : {}
|
|
70
70
|
// Resolve section container tokens
|
|
71
71
|
const backgroundColor = getVariableByName('section/background/color', modes) || '#ffffff'
|
|
72
|
-
const gap = getVariableByName('
|
|
72
|
+
const gap = getVariableByName('slot/gap', modes) || 12
|
|
73
73
|
const paddingHorizontal = getVariableByName('section/padding/horizontal', modes) || 12
|
|
74
74
|
const paddingVertical = getVariableByName('section/padding/vertical', modes) || 16
|
|
75
75
|
const radius = getVariableByName('section/radius', modes) || 12
|