jfs-components 0.1.2 → 0.1.8
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 +29 -0
- package/lib/commonjs/components/AmountInput/AmountInput.js +8 -5
- package/lib/commonjs/components/BenefitCard/BenefitCard.js +231 -0
- package/lib/commonjs/components/CcCard/CcCard.js +470 -0
- package/lib/commonjs/components/Checkbox/Checkbox.js +4 -3
- package/lib/commonjs/components/CheckboxItem/CheckboxItem.js +4 -3
- package/lib/commonjs/components/CompareTable/CompareTable.js +372 -0
- package/lib/commonjs/components/ComparisonBar/ComparisonBar.js +266 -0
- package/lib/commonjs/components/DropdownInput/DropdownInput.js +35 -3
- package/lib/commonjs/components/FormField/FormField.js +4 -3
- package/lib/commonjs/components/InputSearch/InputSearch.js +6 -4
- package/lib/commonjs/components/NoteInput/NoteInput.js +6 -5
- package/lib/commonjs/components/PdpCcCard/PdpCcCard.js +273 -0
- package/lib/commonjs/components/ProductMerchandisingCard/GlassFill.js +263 -0
- package/lib/commonjs/components/ProductMerchandisingCard/GlassFill.web.js +116 -0
- package/lib/commonjs/components/ProductMerchandisingCard/ProductMerchandisingCard.js +353 -0
- package/lib/commonjs/components/ProjectionMarker/ProjectionMarker.js +161 -0
- package/lib/commonjs/components/Radio/Radio.js +5 -5
- package/lib/commonjs/components/Slider/Slider.js +473 -0
- package/lib/commonjs/components/TextInput/TextInput.js +13 -8
- package/lib/commonjs/components/TextSegment/TextSegment.js +118 -0
- package/lib/commonjs/components/index.js +63 -0
- package/lib/commonjs/design-tokens/Coin Variables-variables-full.json +1 -1
- package/lib/commonjs/design-tokens/figma-modes.generated.js +38 -9
- package/lib/commonjs/icons/registry.js +1 -1
- package/lib/commonjs/utils/react-utils.js +22 -0
- package/lib/module/components/AmountInput/AmountInput.js +6 -4
- package/lib/module/components/BenefitCard/BenefitCard.js +225 -0
- package/lib/module/components/CcCard/CcCard.js +464 -0
- package/lib/module/components/Checkbox/Checkbox.js +5 -4
- package/lib/module/components/CheckboxItem/CheckboxItem.js +5 -4
- package/lib/module/components/CompareTable/CompareTable.js +367 -0
- package/lib/module/components/ComparisonBar/ComparisonBar.js +260 -0
- package/lib/module/components/DropdownInput/DropdownInput.js +36 -4
- package/lib/module/components/FormField/FormField.js +5 -4
- package/lib/module/components/InputSearch/InputSearch.js +6 -4
- package/lib/module/components/NoteInput/NoteInput.js +7 -6
- package/lib/module/components/PdpCcCard/PdpCcCard.js +267 -0
- package/lib/module/components/ProductMerchandisingCard/GlassFill.js +257 -0
- package/lib/module/components/ProductMerchandisingCard/GlassFill.web.js +111 -0
- package/lib/module/components/ProductMerchandisingCard/ProductMerchandisingCard.js +347 -0
- package/lib/module/components/ProjectionMarker/ProjectionMarker.js +156 -0
- package/lib/module/components/Radio/Radio.js +5 -4
- package/lib/module/components/Slider/Slider.js +468 -0
- package/lib/module/components/TextInput/TextInput.js +15 -10
- package/lib/module/components/TextSegment/TextSegment.js +113 -0
- package/lib/module/components/index.js +9 -0
- package/lib/module/design-tokens/Coin Variables-variables-full.json +1 -1
- package/lib/module/design-tokens/figma-modes.generated.js +38 -9
- package/lib/module/icons/registry.js +1 -1
- package/lib/module/utils/react-utils.js +21 -0
- package/lib/typescript/src/components/AmountInput/AmountInput.d.ts +3 -2
- package/lib/typescript/src/components/BenefitCard/BenefitCard.d.ts +93 -0
- package/lib/typescript/src/components/CcCard/CcCard.d.ts +137 -0
- package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +3 -2
- package/lib/typescript/src/components/CheckboxItem/CheckboxItem.d.ts +2 -2
- package/lib/typescript/src/components/CompareTable/CompareTable.d.ts +88 -0
- package/lib/typescript/src/components/ComparisonBar/ComparisonBar.d.ts +118 -0
- package/lib/typescript/src/components/DropdownInput/DropdownInput.d.ts +20 -1
- package/lib/typescript/src/components/FormField/FormField.d.ts +2 -2
- package/lib/typescript/src/components/InputSearch/InputSearch.d.ts +23 -2
- package/lib/typescript/src/components/NoteInput/NoteInput.d.ts +19 -2
- package/lib/typescript/src/components/PdpCcCard/PdpCcCard.d.ts +84 -0
- package/lib/typescript/src/components/ProductMerchandisingCard/GlassFill.d.ts +56 -0
- package/lib/typescript/src/components/ProductMerchandisingCard/GlassFill.web.d.ts +27 -0
- package/lib/typescript/src/components/ProductMerchandisingCard/ProductMerchandisingCard.d.ts +81 -0
- package/lib/typescript/src/components/ProjectionMarker/ProjectionMarker.d.ts +82 -0
- package/lib/typescript/src/components/Radio/Radio.d.ts +3 -2
- package/lib/typescript/src/components/RadioButton/RadioButton.d.ts +2 -2
- package/lib/typescript/src/components/Slider/Slider.d.ts +99 -0
- package/lib/typescript/src/components/TextInput/TextInput.d.ts +9 -29
- package/lib/typescript/src/components/TextSegment/TextSegment.d.ts +100 -0
- package/lib/typescript/src/components/index.d.ts +10 -1
- package/lib/typescript/src/design-tokens/figma-modes.generated.d.ts +22 -2
- package/lib/typescript/src/icons/registry.d.ts +1 -1
- package/lib/typescript/src/utils/react-utils.d.ts +10 -0
- package/package.json +2 -1
- package/src/components/AmountInput/AmountInput.tsx +7 -5
- package/src/components/BenefitCard/BenefitCard.tsx +309 -0
- package/src/components/CcCard/CcCard.tsx +598 -0
- package/src/components/Checkbox/Checkbox.tsx +5 -4
- package/src/components/CheckboxItem/CheckboxItem.tsx +5 -4
- package/src/components/CompareTable/CompareTable.tsx +477 -0
- package/src/components/ComparisonBar/ComparisonBar.tsx +356 -0
- package/src/components/DropdownInput/DropdownInput.tsx +55 -3
- package/src/components/FormField/FormField.tsx +5 -4
- package/src/components/InputSearch/InputSearch.tsx +8 -5
- package/src/components/NoteInput/NoteInput.tsx +8 -6
- package/src/components/PdpCcCard/PdpCcCard.tsx +356 -0
- package/src/components/ProductMerchandisingCard/GlassFill.tsx +276 -0
- package/src/components/ProductMerchandisingCard/GlassFill.web.tsx +127 -0
- package/src/components/ProductMerchandisingCard/ProductMerchandisingCard.tsx +423 -0
- package/src/components/ProjectionMarker/ProjectionMarker.tsx +277 -0
- package/src/components/Radio/Radio.tsx +5 -4
- package/src/components/Slider/Slider.tsx +628 -0
- package/src/components/TextInput/TextInput.tsx +15 -11
- package/src/components/TextSegment/TextSegment.tsx +166 -0
- package/src/components/index.ts +10 -1
- package/src/design-tokens/Coin Variables-variables-full.json +1 -1
- package/src/design-tokens/figma-modes.generated.ts +38 -9
- package/src/icons/registry.ts +1 -1
- package/src/utils/react-utils.ts +23 -0
- package/lib/typescript/scripts/extract-component-tokens.d.ts +0 -9
- package/lib/typescript/scripts/generate-component-docs.d.ts +0 -9
- package/lib/typescript/scripts/generate-icon-registry.d.ts +0 -3
- package/lib/typescript/scripts/generate-mode-types.d.ts +0 -2
- package/lib/typescript/scripts/retype-modes.d.cts +0 -2
|
@@ -39,11 +39,12 @@ export const FIGMA_MODES = {
|
|
|
39
39
|
"Attached / Output": ["Default"],
|
|
40
40
|
"Avatar / Output": ["Default"],
|
|
41
41
|
"Avatar Group / Output": ["Default"],
|
|
42
|
-
"Avatar Size": ["L", "M", "S"],
|
|
42
|
+
"Avatar Size": ["L", "M", "S", "XS"],
|
|
43
43
|
"Avatar Type": ["Avatar", "Icon", "Text"],
|
|
44
44
|
"Axis / Output": ["Default"],
|
|
45
45
|
"Background": ["False", "True"],
|
|
46
46
|
"Badge / Output": ["Default"],
|
|
47
|
+
"Badge Size": ["Medium", "Small"],
|
|
47
48
|
"Balance / Output": ["Default"],
|
|
48
49
|
"BankAccountCard / Output": ["Default"],
|
|
49
50
|
"Benefit Card": ["Default"],
|
|
@@ -69,6 +70,7 @@ export const FIGMA_MODES = {
|
|
|
69
70
|
"cardsShared": ["Default"],
|
|
70
71
|
"Carousel / Output": ["Default"],
|
|
71
72
|
"CarouselCardAccounts / Output": ["Default"],
|
|
73
|
+
"ccCard / Output": ["Default"],
|
|
72
74
|
"checkbox / Output": ["Default"],
|
|
73
75
|
"Checkbox / Output": ["Default"],
|
|
74
76
|
"Checkbox states": ["Idle", "Hover", "Focus", "Focus Selected", "Selected Hover", "Disabled/Active", "Disabled", "Selected"],
|
|
@@ -84,7 +86,12 @@ export const FIGMA_MODES = {
|
|
|
84
86
|
"circularProgressBar / Output": ["Default"],
|
|
85
87
|
"circularProgressBar Size": ["S", "M"],
|
|
86
88
|
"clusterBubble / Output": ["Default"],
|
|
89
|
+
"coincard": ["Mode 1"],
|
|
87
90
|
"Color Mode": ["Light", "Dark"],
|
|
91
|
+
"comparetablecell": ["Mode 1"],
|
|
92
|
+
"comparetableheader": ["Mode 1"],
|
|
93
|
+
"Comparison Floating card": ["Default"],
|
|
94
|
+
"ComparisonCardItem": ["Default"],
|
|
88
95
|
"Confidence": ["High", "Medium", "Low", "None"],
|
|
89
96
|
"ContentSheet / Output": ["Default"],
|
|
90
97
|
"Context": ["Default", "Nudge&Alert", "CTACard", "ListItem"],
|
|
@@ -95,6 +102,7 @@ export const FIGMA_MODES = {
|
|
|
95
102
|
"context7": ["Default", "Card"],
|
|
96
103
|
"Contrast Context": ["on dark", "on light"],
|
|
97
104
|
"Conversation Feed / Output": ["Default"],
|
|
105
|
+
"Counter Badge / Output": ["Mode 1"],
|
|
98
106
|
"Coverage Bar Comparison / Output": ["Default"],
|
|
99
107
|
"CoverageRing / Output": ["Mode 1"],
|
|
100
108
|
"CTACard / Output": ["Default"],
|
|
@@ -123,6 +131,7 @@ export const FIGMA_MODES = {
|
|
|
123
131
|
"FullScreenModal": ["Default"],
|
|
124
132
|
"Gap": ["S", "M", "L", "None"],
|
|
125
133
|
"Gauge / Output": ["Default"],
|
|
134
|
+
"Handle Boolean": ["False", "True"],
|
|
126
135
|
"Heading / Output": ["Default"],
|
|
127
136
|
"Heading text": ["Default", "Slot"],
|
|
128
137
|
"Holdings card / Output": ["Default"],
|
|
@@ -130,7 +139,7 @@ export const FIGMA_MODES = {
|
|
|
130
139
|
"Icon / Output": ["Default"],
|
|
131
140
|
"Icon Button / Output": ["Default"],
|
|
132
141
|
"Icon Capsule / Output": ["Default"],
|
|
133
|
-
"Icon Capsule Size": ["M", "L", "S"],
|
|
142
|
+
"Icon Capsule Size": ["M", "L", "S", "XS"],
|
|
134
143
|
"Image / Output": ["Default"],
|
|
135
144
|
"Input / Output": ["Default"],
|
|
136
145
|
"Input/PINSlot States": ["Idle", "Active", "Error"],
|
|
@@ -155,6 +164,7 @@ export const FIGMA_MODES = {
|
|
|
155
164
|
"Message Direction": ["Incoming (Left)", "Outgoing (Right)"],
|
|
156
165
|
"Message Row / Output": ["Default"],
|
|
157
166
|
"MessageField / Output": ["Default"],
|
|
167
|
+
"metricdata": ["Mode 1"],
|
|
158
168
|
"MetricLegendItem / Output": ["Default"],
|
|
159
169
|
"Money Value / Output": ["Default"],
|
|
160
170
|
"MonthlyStatusGrid / Output": ["Default"],
|
|
@@ -172,15 +182,18 @@ export const FIGMA_MODES = {
|
|
|
172
182
|
"Page type": ["MainPage", "SubPage", "JioPlus"],
|
|
173
183
|
"PageHero / Output": ["Default"],
|
|
174
184
|
"PaymnetFeedback / Output": ["Default"],
|
|
185
|
+
"PDP cc card": ["Mode 1"],
|
|
175
186
|
"peekOffset": ["Medium", "Small", "Large", "None"],
|
|
176
187
|
"Placement": ["Prefix", "Suffix"],
|
|
177
188
|
"PlanComparisonCard / Output": ["Default"],
|
|
178
189
|
"Popup / Output": ["Default"],
|
|
179
190
|
"PortfolioHero / Output": ["Default"],
|
|
180
191
|
"PoweredByLabel": ["Default"],
|
|
192
|
+
"Product Merchandising card": ["Mode 1"],
|
|
181
193
|
"ProductLabel / Output": ["Default"],
|
|
182
194
|
"ProductOverview / Output": ["Default"],
|
|
183
195
|
"ProgressBadge / Output": ["Default"],
|
|
196
|
+
"ProjectionMarker": ["Mode 1"],
|
|
184
197
|
"QR code / Output": ["Idle"],
|
|
185
198
|
"Radio / Output": ["Default"],
|
|
186
199
|
"Radius": ["S", "M", "L", "None"],
|
|
@@ -198,8 +211,10 @@ export const FIGMA_MODES = {
|
|
|
198
211
|
"SegmentedControl/Segment / Output": ["Default"],
|
|
199
212
|
"SegmentedTrack / Output": ["Default"],
|
|
200
213
|
"Selectable": ["False", "True"],
|
|
214
|
+
"selectioncard": ["Mode 1"],
|
|
201
215
|
"Semantic Intent": ["Brand", "System"],
|
|
202
216
|
"Skeleton": ["Mode 1"],
|
|
217
|
+
"Slider / Output": ["Default"],
|
|
203
218
|
"Slot gap": ["S", "M", "L", "XL"],
|
|
204
219
|
"special button": ["Default"],
|
|
205
220
|
"Spinner / Output": ["Default"],
|
|
@@ -220,14 +235,19 @@ export const FIGMA_MODES = {
|
|
|
220
235
|
"SwappableAmount / Output": ["Default"],
|
|
221
236
|
"tabItem / Output": ["Default"],
|
|
222
237
|
"Tabs / Output": ["Default"],
|
|
238
|
+
"TestimonialsCard": ["Default"],
|
|
223
239
|
"Text / Output": ["Default"],
|
|
240
|
+
"Text Appearance": ["Neutral", "Primary", "Secondary", "Tertiary"],
|
|
241
|
+
"Text Sizes": ["Medium", "Small"],
|
|
224
242
|
"textInput / Output": ["Default"],
|
|
243
|
+
"TextSegment / Output": ["Default"],
|
|
225
244
|
"Thread Hero / Output": ["Default"],
|
|
226
245
|
"Title / Output": ["Default"],
|
|
227
246
|
"Title Level": ["Default", "Bold"],
|
|
228
247
|
"Toggle / Output": ["Default"],
|
|
229
248
|
"Toggle States": ["Off", "On", "Disabled Off", "Disabled On"],
|
|
230
249
|
"ToggleIconButton / Output": ["Default"],
|
|
250
|
+
"Tooltip": ["True", "False"],
|
|
231
251
|
"tooltip / Output": ["Default"],
|
|
232
252
|
"Tost Output": ["Default"],
|
|
233
253
|
"Transaction Status": ["Request", "Paid", "Declined", "Expired"],
|
|
@@ -258,29 +278,33 @@ export const FIGMA_COMPONENT_MODES: Record<string, readonly string[]> = {
|
|
|
258
278
|
"Attached": ["Color Mode"],
|
|
259
279
|
"Avatar": ["Avatar Size", "Color Mode", "Context4"],
|
|
260
280
|
"AvatarGroup": ["Avatar Size", "Context4"],
|
|
261
|
-
"Badge": ["AppearanceBrand", "
|
|
281
|
+
"Badge": ["AppearanceBrand", "Badge Size", "Color Mode", "Emphasis"],
|
|
262
282
|
"Balance": ["Color Mode", "Context3"],
|
|
283
|
+
"BenefitCard": ["AppearanceBrand", "AppearanceSystem", "Button / Size", "Button / State", "Color Mode", "Context", "Context2", "context5", "Emphasis", "List Item Style", "NavArrow Direction", "Page type", "Semantic Intent", "Text Appearance", "Text Sizes", "Weight"],
|
|
263
284
|
"BottomNav": ["Color Mode"],
|
|
264
285
|
"BottomNavItem": ["BottomNavItem / State", "Color Mode"],
|
|
265
286
|
"BrandChip": ["Avatar Size", "Color Mode", "Context4"],
|
|
266
|
-
"BubbleChart": ["Appearance / DataViz", "Color Mode", "Emphasis / DataViz"],
|
|
287
|
+
"BubbleChart": ["Appearance / DataViz", "Color Mode", "Emphasis / DataViz", "Text Appearance"],
|
|
267
288
|
"Button": ["AppearanceBrand", "AppearanceSystem", "Button / Size", "Button / State", "Color Mode", "Context", "Emphasis", "Semantic Intent"],
|
|
268
289
|
"Card": ["Color Mode", "Gap", "Page type"],
|
|
269
290
|
"CardAdvisory": ["AppearanceBrand", "AppearanceSystem", "Button / Size", "Button / State", "circularProgressBar Size", "Color Mode", "Context", "Emphasis", "Nudge padding", "Semantic Intent", "Slot gap"],
|
|
270
|
-
"CardBankAccount": ["AppearanceBrand", "AppearanceSystem", "Avatar Size", "Button / Size", "Button / State", "Color Mode", "Context", "Context4", "context5", "Emphasis", "List Item Style", "Semantic Intent", "Weight"],
|
|
271
|
-
"CardCTA": ["AppearanceBrand", "AppearanceSystem", "Button / Size", "Button / State", "Color Mode", "Context", "Emphasis", "Icon Capsule Size", "MediaBlock", "Semantic Intent"],
|
|
291
|
+
"CardBankAccount": ["AppearanceBrand", "AppearanceSystem", "Avatar Size", "Badge Size", "Button / Size", "Button / State", "Color Mode", "Context", "Context4", "context5", "Emphasis", "List Item Style", "Semantic Intent", "Text Appearance", "Text Sizes", "Weight"],
|
|
292
|
+
"CardCTA": ["AppearanceBrand", "AppearanceSystem", "Badge Size", "Button / Size", "Button / State", "Color Mode", "Context", "Emphasis", "Icon Capsule Size", "MediaBlock", "Semantic Intent"],
|
|
272
293
|
"CardFeedback": ["AppearanceBrand", "AppearanceSystem", "Color Mode"],
|
|
273
294
|
"CardFinancialCondition": ["AppearanceBrand", "AppearanceSystem", "Button / Size", "Button / State", "circularProgressBar Size", "Color Mode", "Context", "Emphasis", "Nudge padding", "Semantic Intent", "Slot gap"],
|
|
274
|
-
"CardInsight": ["Appearance / DataViz", "AppearanceBrand", "AppearanceSystem", "Button / Size", "Button / State", "Color Mode", "Context", "context7", "Emphasis", "Emphasis / DataViz", "LinearProgress Size", "Nudge padding", "Page type", "Semantic Intent", "Slot gap"],
|
|
295
|
+
"CardInsight": ["Appearance / DataViz", "AppearanceBrand", "AppearanceSystem", "Badge Size", "Button / Size", "Button / State", "Color Mode", "Context", "context7", "Emphasis", "Emphasis / DataViz", "LinearProgress Size", "Nudge padding", "Page type", "Semantic Intent", "Slot gap"],
|
|
275
296
|
"CardProviderInfo": ["AppearanceBrand", "Avatar Size", "Color Mode", "Context4"],
|
|
276
297
|
"Carousel": ["peekOffset"],
|
|
298
|
+
"CcCard": ["AppearanceBrand", "AppearanceSystem", "Avatar Size", "Badge Size", "Button / Size", "Button / State", "Color Mode", "Context", "Context2", "Context4", "context5", "context7", "Emphasis", "List Item Style", "NavArrow Direction", "Page type", "Radius", "Semantic Intent", "Text Appearance", "Text Sizes", "Weight"],
|
|
277
299
|
"Checkbox": ["Color Mode"],
|
|
278
300
|
"CheckboxGroup": ["Color Mode"],
|
|
279
301
|
"CheckboxItem": ["Color Mode"],
|
|
280
302
|
"ChipSelect": ["ChipSelect State", "Color Mode"],
|
|
281
303
|
"CircularProgressBar": ["AppearanceBrand", "AppearanceSystem", "circularProgressBar Size", "Color Mode", "Emphasis", "Semantic Intent"],
|
|
282
304
|
"CircularRating": ["AppearanceBrand", "AppearanceSystem", "Button / Size", "Button / State", "Color Mode", "Context", "Emphasis", "Nudge padding", "Semantic Intent", "Slot gap"],
|
|
283
|
-
"ClusterBubble": ["Appearance / DataViz", "Color Mode", "Emphasis / DataViz"],
|
|
305
|
+
"ClusterBubble": ["Appearance / DataViz", "Color Mode", "Emphasis / DataViz", "Text Appearance"],
|
|
306
|
+
"CompareTable": ["Accordion States", "AppearanceBrand", "Button / Size", "Button / State", "Color Mode", "Emphasis", "Radius"],
|
|
307
|
+
"ComparisonBar": ["AppearanceBrand", "AppearanceSystem", "Button / Size", "Button / State", "Color Mode", "Context", "Emphasis", "Icon Capsule Size", "Radius", "Semantic Intent"],
|
|
284
308
|
"CoverageBarComparison": ["Appearance / DataViz", "Color Mode", "Emphasis / DataViz"],
|
|
285
309
|
"CoverageRing": ["AppearanceBrand", "AppearanceSystem", "Button / Size", "Button / State", "circularProgressBar Size", "Color Mode", "Context", "Emphasis", "Semantic Intent"],
|
|
286
310
|
"DebitCard": ["DebitCard brand"],
|
|
@@ -321,11 +345,14 @@ export const FIGMA_COMPONENT_MODES: Record<string, readonly string[]> = {
|
|
|
321
345
|
"OTP": ["AppearanceBrand", "AppearanceSystem", "Button / Size", "Button / State", "Color Mode", "Context", "Emphasis", "FormField States", "Input/PINSlot States", "Semantic Intent", "Status"],
|
|
322
346
|
"PageHero": ["AppearanceBrand", "AppearanceSystem", "Button / Size", "Button / State", "Color Mode", "Context", "Emphasis", "Media / Output", "Semantic Intent"],
|
|
323
347
|
"PaymentFeedback": ["AppearanceBrand", "AppearanceSystem", "Color Mode", "Context", "Emphasis", "Icon Capsule Size", "Semantic Intent"],
|
|
348
|
+
"PdpCcCard": ["AppearanceBrand", "AppearanceSystem", "Button / Size", "Button / State", "Color Mode", "Context", "context7", "Emphasis", "Page type", "Radius", "Semantic Intent"],
|
|
324
349
|
"PlanComparisonCard": ["Color Mode"],
|
|
325
350
|
"Popup": ["Color Mode", "Context", "Padding", "Page type", "Slot gap"],
|
|
326
351
|
"PortfolioHero": ["Avatar Size", "Color Mode", "Context3", "Context4"],
|
|
327
352
|
"ProductLabel": ["Avatar Size", "Color Mode", "Context4"],
|
|
353
|
+
"ProductMerchandisingCard": ["AppearanceBrand", "AppearanceSystem", "Avatar Size", "Badge Size", "Button / Size", "Button / State", "Color Mode", "Context", "Context4", "Emphasis", "Semantic Intent"],
|
|
328
354
|
"ProductOverview": ["Avatar Size", "Color Mode", "Context4"],
|
|
355
|
+
"ProjectionMarker": ["Color Mode"],
|
|
329
356
|
"Radio": ["Color Mode"],
|
|
330
357
|
"RangeTrack": ["Appearance / DataViz", "Color Mode", "Emphasis / DataViz"],
|
|
331
358
|
"RechargeCard": ["Avatar Size", "Color Mode", "Context3", "Context4"],
|
|
@@ -334,6 +361,7 @@ export const FIGMA_COMPONENT_MODES: Record<string, readonly string[]> = {
|
|
|
334
361
|
"Section": ["AppearanceBrand", "AppearanceSystem", "Color Mode", "Context", "Context2", "context5", "Emphasis", "Icon Capsule Size", "List Item Style", "NavArrow Direction", "Padding", "Page type", "Semantic Intent", "Slot gap"],
|
|
335
362
|
"SegmentedControl": ["SegmentedControl/Segment"],
|
|
336
363
|
"SegmentedTrack": ["Appearance / DataViz", "Color Mode", "Emphasis / DataViz"],
|
|
364
|
+
"Slider": ["AppearanceBrand", "AppearanceSystem", "Color Mode", "Emphasis", "Semantic Intent", "Text Appearance", "Text Sizes", "Weight"],
|
|
337
365
|
"Slot": ["Context", "Slot gap"],
|
|
338
366
|
"StatGroup": ["Color Mode", "StatItem Label Position "],
|
|
339
367
|
"StatItem": ["StatItem Label Position "],
|
|
@@ -347,8 +375,9 @@ export const FIGMA_COMPONENT_MODES: Record<string, readonly string[]> = {
|
|
|
347
375
|
"SwappableAmount": ["AppearanceBrand", "AppearanceSystem", "Button / Size", "Button / State", "Color Mode", "Context", "Emphasis", "Semantic Intent"],
|
|
348
376
|
"TabItem": ["Color Mode"],
|
|
349
377
|
"TestimonialsCard": ["Avatar Size", "Color Mode", "Context4"],
|
|
350
|
-
"Text": ["Weight"],
|
|
378
|
+
"Text": ["Color Mode", "Text Appearance", "Text Sizes", "Weight"],
|
|
351
379
|
"TextInput": ["Color Mode", "InputState"],
|
|
380
|
+
"TextSegment": ["Color Mode", "Text Appearance", "Text Sizes", "Weight"],
|
|
352
381
|
"Title": ["Color Mode", "context7", "Page type"],
|
|
353
382
|
"Toggle": ["Color Mode", "Toggle States"],
|
|
354
383
|
"Tooltip": ["Color Mode"],
|
package/src/icons/registry.ts
CHANGED
package/src/utils/react-utils.ts
CHANGED
|
@@ -88,6 +88,29 @@ export function cloneChildrenWithModes(
|
|
|
88
88
|
return React.Children.toArray(result);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
/**
|
|
92
|
+
* Combines several refs (object refs and/or callback refs) into a single
|
|
93
|
+
* callback ref. Useful when a component needs to keep its own internal ref to a
|
|
94
|
+
* node while still honouring a ref forwarded by the consumer.
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* const inputRef = useRef<RNTextInput>(null)
|
|
98
|
+
* <RNTextInput ref={mergeRefs(inputRef, forwardedRef)} />
|
|
99
|
+
*/
|
|
100
|
+
export function mergeRefs<T>(
|
|
101
|
+
...refs: Array<React.Ref<T> | undefined | null>
|
|
102
|
+
): React.RefCallback<T> {
|
|
103
|
+
return (value: T | null) => {
|
|
104
|
+
refs.forEach((ref) => {
|
|
105
|
+
if (typeof ref === 'function') {
|
|
106
|
+
ref(value);
|
|
107
|
+
} else if (ref != null) {
|
|
108
|
+
(ref as React.MutableRefObject<T | null>).current = value;
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
91
114
|
/**
|
|
92
115
|
* Flattens React children, extracting them from Fragments.
|
|
93
116
|
* Useful for Group components that need to process individual items (e.g., for layout or styling)
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Main extraction function
|
|
3
|
-
*/
|
|
4
|
-
export function extractAllTokens(): {};
|
|
5
|
-
/**
|
|
6
|
-
* Backwards-compatible helper: just the token names for a file.
|
|
7
|
-
*/
|
|
8
|
-
export function extractTokensFromFile(filePath: any): any[];
|
|
9
|
-
//# sourceMappingURL=extract-component-tokens.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Main generation function
|
|
3
|
-
*/
|
|
4
|
-
export function generateAllDocs(): void;
|
|
5
|
-
/**
|
|
6
|
-
* Generate MDX documentation for a component
|
|
7
|
-
*/
|
|
8
|
-
export function generateMDX(componentName: any, metadata: any, componentPath: any): string;
|
|
9
|
-
//# sourceMappingURL=generate-component-docs.d.ts.map
|