jfs-components 0.1.48 → 0.1.49
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 +1 -1
- package/lib/commonjs/components/Section/Section.js +3 -1
- package/lib/commonjs/design-tokens/figma-modes.generated.js +8 -7
- package/lib/commonjs/icons/registry.js +1 -1
- package/lib/module/components/Section/Section.js +3 -1
- package/lib/module/design-tokens/figma-modes.generated.js +8 -7
- package/lib/module/icons/registry.js +1 -1
- package/lib/typescript/src/components/Section/Section.d.ts +2 -1
- package/lib/typescript/src/design-tokens/figma-modes.generated.d.ts +2 -1
- package/lib/typescript/src/icons/registry.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/Section/Section.tsx +121 -156
- package/src/design-tokens/figma-modes.generated.ts +8 -7
- package/src/icons/registry.ts +1 -1
- package/D2C.md +0 -113
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,7 @@ All notable changes to this project are documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
6
6
|
|
|
7
|
-
## [0.1.48] - 2026-07-
|
|
7
|
+
## [0.1.48] - 2026-07-23
|
|
8
8
|
|
|
9
9
|
- `CompareTable` (fixed-width scroll mode) — selection cards pin above the scroll surface (`stickyCards`, default `true`); accordion section titles stick under the cards and replace each other as you scroll (`stickyAccordionTitles`, default `true`); gray table-header sticky is now opt-in (`stickyHeaders` default `false`). Selection cards are square (corner radius forced to `0`).
|
|
10
10
|
- `Accordion` — new `showHeader` / `showContent` props so hosts can split sticky titles from bodies in scroll layouts (used by `CompareTable`).
|
|
@@ -546,6 +546,7 @@ function SectionSlot({
|
|
|
546
546
|
* @param {Object} props
|
|
547
547
|
* @param {React.ReactNode} [props.navSlot] - Optional custom slot for navigation items (Figma Slot "Nav wrap")
|
|
548
548
|
* @param {React.ReactNode} [props.upiSlot] - Optional custom slot for UPI handles (Figma Slot "UPI wrap")
|
|
549
|
+
* @param {boolean} [props.upi=true] - Toggles the UPI wrap (Figma boolean property "upi")
|
|
549
550
|
* @param {Object} [props.modes={}] - Modes object passed to `getVariableByName` for all design tokens
|
|
550
551
|
* @param {Object} [props.style] - Optional container style overrides
|
|
551
552
|
* @param {string} [props.accessibilityLabel] - Accessibility label for the section
|
|
@@ -558,6 +559,7 @@ const sectionBentoUpiRowStyle = {
|
|
|
558
559
|
function SectionBento({
|
|
559
560
|
navSlot,
|
|
560
561
|
upiSlot,
|
|
562
|
+
upi = true,
|
|
561
563
|
modes = _reactUtils.EMPTY_MODES,
|
|
562
564
|
style,
|
|
563
565
|
// Same rationale as Section: accepted on the type but unused internally.
|
|
@@ -648,7 +650,7 @@ function SectionBento({
|
|
|
648
650
|
animateExtrasFromIndex: collapsedCount,
|
|
649
651
|
animateContainerLayout: true
|
|
650
652
|
} : null)
|
|
651
|
-
}), processedUpiSlot && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
653
|
+
}), upi && processedUpiSlot && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
652
654
|
style: sectionBentoUpiRowStyle,
|
|
653
655
|
children: processedUpiSlot
|
|
654
656
|
})]
|
|
@@ -69,7 +69,7 @@ const FIGMA_MODES = exports.FIGMA_MODES = {
|
|
|
69
69
|
"Calendar Glyph / Output": ["Default"],
|
|
70
70
|
"Calendar Glyph State": ["Idle", "notSaved", "saved"],
|
|
71
71
|
"Card / Output": ["Default"],
|
|
72
|
-
"Card
|
|
72
|
+
"Card Container": ["Default", "Plain"],
|
|
73
73
|
"Card Feedback / Output": ["Default"],
|
|
74
74
|
"Card Tab / output": ["Default"],
|
|
75
75
|
"Card Tab State": ["Default", "Active"],
|
|
@@ -254,6 +254,7 @@ const FIGMA_MODES = exports.FIGMA_MODES = {
|
|
|
254
254
|
"Slot gap": ["S", "M", "L", "XL", "XS"],
|
|
255
255
|
"special button": ["Default"],
|
|
256
256
|
"Spinner / Output": ["Default"],
|
|
257
|
+
"Stack Context": ["Root", "Nested"],
|
|
257
258
|
"statGroup / Output": ["Default"],
|
|
258
259
|
"StatItem / Output": ["Default"],
|
|
259
260
|
"StatItem Label Position ": ["Top", "Bottom"],
|
|
@@ -310,7 +311,7 @@ const FIGMA_COMPONENT_MODES = exports.FIGMA_COMPONENT_MODES = {
|
|
|
310
311
|
"Accordion": ["Accordion States"],
|
|
311
312
|
"AccordionCheckbox": ["Color Mode", "context 10", "Profile Card Appearance"],
|
|
312
313
|
"AccountCard": ["AppearanceBrand", "Button / Size", "Button / State", "Color Mode", "Emphasis", "Page type"],
|
|
313
|
-
"ActionFooter": ["Color Mode", "context5"],
|
|
314
|
+
"ActionFooter": ["Color Mode", "Context", "context5", "Slot gap"],
|
|
314
315
|
"ActionTile": ["AppearanceBrand", "AppearanceSystem", "Color Mode", "Context", "Emphasis", "Icon Capsule Size", "Page type", "Semantic Intent"],
|
|
315
316
|
"Additem": ["AppearanceBrand", "AppearanceSystem", "Color Mode", "Context", "Emphasis", "Icon Capsule Size", "Page type", "Semantic Intent"],
|
|
316
317
|
"AllocationComparisonChart": ["Appearance / DataViz", "Color Mode", "Emphasis / DataViz"],
|
|
@@ -328,7 +329,7 @@ const FIGMA_COMPONENT_MODES = exports.FIGMA_COMPONENT_MODES = {
|
|
|
328
329
|
"BrandChip": ["Avatar Size", "Badge Size", "Color Mode", "context 10", "Context4", "Profile Card Appearance"],
|
|
329
330
|
"BubbleChart": ["Appearance / DataViz", "Color Mode", "Context", "context 10", "Emphasis / DataViz", "Profile Card Appearance", "Text Appearance"],
|
|
330
331
|
"Button": ["AppearanceBrand", "AppearanceSystem", "Button / Size", "Button / State", "Color Mode", "Context", "context 10", "Emphasis", "Page type", "Profile Card Appearance", "Semantic Intent"],
|
|
331
|
-
"Card": ["AppearanceBrand", "AppearanceSystem", "
|
|
332
|
+
"Card": ["AppearanceBrand", "AppearanceSystem", "Card Container", "Color Mode", "Gap", "Page type", "Semantic Intent"],
|
|
332
333
|
"CardAdvisory": ["AppearanceBrand", "AppearanceSystem", "Button / Size", "Button / State", "circularProgressBar Size", "Color Mode", "Context", "context 10", "Emphasis", "Nudge padding", "Page type", "Profile Card Appearance", "Semantic Intent", "Slot gap"],
|
|
333
334
|
"CardBankAccount": ["AppearanceBrand", "AppearanceSystem", "Avatar Size", "Badge Size", "Button / Size", "Button / State", "Color Mode", "Context", "context 10", "Context4", "context5", "Emphasis", "List Item Style", "Page type", "Profile Card Appearance", "Semantic Intent", "Text Appearance", "Text Sizes", "Weight"],
|
|
334
335
|
"CardCTA": ["AppearanceBrand", "AppearanceSystem", "Avatar Size", "Badge Size", "Button / Size", "Button / State", "Color Mode", "Context", "context 10", "context 8", "Context4", "Emphasis", "Icon Capsule Size", "MediaBlock", "Page type", "Profile Card Appearance", "Semantic Intent"],
|
|
@@ -347,7 +348,7 @@ const FIGMA_COMPONENT_MODES = exports.FIGMA_COMPONENT_MODES = {
|
|
|
347
348
|
"CircularProgressBar": ["AppearanceBrand", "AppearanceSystem", "circularProgressBar Size", "Color Mode", "Emphasis", "Semantic Intent"],
|
|
348
349
|
"CircularRating": ["AppearanceBrand", "AppearanceSystem", "Button / Size", "Button / State", "Color Mode", "Context", "context 10", "Emphasis", "Nudge padding", "Page type", "Profile Card Appearance", "Semantic Intent", "Slot gap"],
|
|
349
350
|
"ClusterBubble": ["Appearance / DataViz", "Color Mode", "Context", "context 10", "Emphasis / DataViz", "Profile Card Appearance", "Text Appearance"],
|
|
350
|
-
"CompareTable": ["Accordion States", "AppearanceBrand", "Button / Size", "Button / State", "Color Mode", "Emphasis", "Page type", "Radius"
|
|
351
|
+
"CompareTable": ["Accordion States", "AppearanceBrand", "Button / Size", "Button / State", "Color Mode", "Emphasis", "Page type", "Radius"],
|
|
351
352
|
"ComparisonBar": ["AppearanceBrand", "AppearanceSystem", "Button / Size", "Button / State", "Color Mode", "Context", "context 10", "Emphasis", "Icon Capsule Size", "Page type", "Profile Card Appearance", "Radius", "Semantic Intent"],
|
|
352
353
|
"ContentSheet": ["Color Mode", "Page type"],
|
|
353
354
|
"CoverageBarComparison": ["Appearance / DataViz", "Color Mode", "Emphasis / DataViz"],
|
|
@@ -372,7 +373,7 @@ const FIGMA_COMPONENT_MODES = exports.FIGMA_COMPONENT_MODES = {
|
|
|
372
373
|
"HelloJioInput": ["AppearanceBrand", "Button / Size", "Button / State", "Color Mode", "Emphasis", "Hello Jio Input Size", "Hello Jio Input State", "Page type"],
|
|
373
374
|
"HeroSection": ["AppearanceBrand", "Button / Size", "Button / State", "Color Mode", "context 9", "context7", "Emphasis", "FormField States", "InputState", "Page type", "Status"],
|
|
374
375
|
"HoldingsCard": ["AppearanceBrand", "Color Mode"],
|
|
375
|
-
"HStack": ["Context", "Padding", "Page type", "Slot gap"],
|
|
376
|
+
"HStack": ["Context", "Padding", "Page type", "Slot gap", "Stack Context"],
|
|
376
377
|
"Icon": ["AppearanceBrand", "AppearanceSystem", "Badge Size", "Color Mode", "context 10", "Context4", "Emphasis", "Page type", "Profile Card Appearance", "Semantic Intent"],
|
|
377
378
|
"IconButton": ["AppearanceBrand", "Button / Size", "Button / State", "Color Mode", "Emphasis", "Page type"],
|
|
378
379
|
"IconCapsule": ["AppearanceBrand", "AppearanceSystem", "Color Mode", "Context", "Emphasis", "Icon Capsule Size", "Page type", "Semantic Intent"],
|
|
@@ -399,7 +400,7 @@ const FIGMA_COMPONENT_MODES = exports.FIGMA_COMPONENT_MODES = {
|
|
|
399
400
|
"PaymentFeedback": ["AppearanceBrand", "AppearanceSystem", "Color Mode", "Context", "Emphasis", "Icon Capsule Size", "Page type", "Semantic Intent"],
|
|
400
401
|
"PdpCcCard": ["AppearanceBrand", "AppearanceSystem", "Button / Size", "Button / State", "Color Mode", "Context", "context 10", "context7", "Emphasis", "Page type", "Profile Card Appearance", "Radius", "Semantic Intent"],
|
|
401
402
|
"PlanComparisonCard": ["Color Mode"],
|
|
402
|
-
"Popup": ["Color Mode", "Context", "Padding", "Page type", "Slot gap"],
|
|
403
|
+
"Popup": ["Color Mode", "Context", "Padding", "Page type", "Slot gap", "Stack Context"],
|
|
403
404
|
"PortfolioHero": ["Avatar Size", "Badge Size", "Color Mode", "context 10", "Context3", "Context4", "Profile Card Appearance"],
|
|
404
405
|
"ProductLabel": ["Avatar Size", "Badge Size", "Color Mode", "context 10", "Context4", "Profile Card Appearance"],
|
|
405
406
|
"ProductMerchandisingCard": ["AppearanceBrand", "AppearanceSystem", "Avatar Size", "Badge Size", "Button / Size", "Button / State", "Color Mode", "Context", "context 10", "Context4", "Emphasis", "Page type", "Profile Card Appearance", "Semantic Intent"],
|
|
@@ -440,7 +441,7 @@ const FIGMA_COMPONENT_MODES = exports.FIGMA_COMPONENT_MODES = {
|
|
|
440
441
|
"TransactionStatus": ["Transaction Status"],
|
|
441
442
|
"UpiHandle": ["Color Mode", "context 10", "Profile Card Appearance", "UPI Handle Image"],
|
|
442
443
|
"ValueBackMetric": ["AppearanceBrand", "AppearanceSystem", "Badge Size", "Color Mode", "Context", "context 10", "Context4", "Emphasis", "Page type", "Profile Card Appearance", "Semantic Intent", "Text Appearance", "Text Sizes", "Weight"],
|
|
443
|
-
"VStack": ["Context", "Padding", "Page type", "Slot gap"]
|
|
444
|
+
"VStack": ["Context", "Padding", "Page type", "Slot gap", "Stack Context"]
|
|
444
445
|
};
|
|
445
446
|
|
|
446
447
|
/**
|