jfs-components 0.0.26 → 0.0.28
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/Carousel/Carousel.mdx +5 -1
- package/lib/commonjs/components/HStack/HStack.js +5 -5
- package/lib/commonjs/components/HStack/HStack.mdx +5 -5
- package/lib/commonjs/components/MoneyValue/MoneyValue.mdx +1 -1
- package/lib/commonjs/design-tokens/JFS Variables-variables-full.json +1 -1
- package/lib/commonjs/design-tokens/figma-variables-resolver.js +3 -9
- package/lib/commonjs/icons/registry.js +1 -1
- package/lib/module/components/Carousel/Carousel.mdx +5 -1
- package/lib/module/components/HStack/HStack.js +5 -5
- package/lib/module/components/HStack/HStack.mdx +5 -5
- package/lib/module/components/MoneyValue/MoneyValue.mdx +1 -1
- package/lib/module/design-tokens/JFS Variables-variables-full.json +1 -1
- package/lib/module/icons/registry.js +1 -1
- package/lib/typescript/icons/registry.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/.token-metadata.json +20 -8
- package/src/components/Carousel/Carousel.mdx +5 -1
- package/src/components/HStack/HStack.mdx +5 -5
- package/src/components/HStack/HStack.tsx +5 -5
- package/src/components/MoneyValue/MoneyValue.mdx +1 -1
- package/src/design-tokens/JFS Variables-variables-full.json +1 -1
- package/src/icons/registry.ts +1 -1
|
@@ -8,7 +8,11 @@ import { View, Image, Text } from 'react-native';
|
|
|
8
8
|
|
|
9
9
|
## Available Collections and Modes
|
|
10
10
|
|
|
11
|
-
This component
|
|
11
|
+
This component uses the following design token collections. Each collection supports multiple modes that can be configured via the `modes` prop.
|
|
12
|
+
|
|
13
|
+
### peekOffset
|
|
14
|
+
- **Modes:** Medium | Small | Large | None
|
|
15
|
+
- **Default:** Medium
|
|
12
16
|
## Usage
|
|
13
17
|
|
|
14
18
|
<Canvas>
|
|
@@ -32,11 +32,11 @@ const HStack = ({
|
|
|
32
32
|
...globalModes,
|
|
33
33
|
...propModes
|
|
34
34
|
};
|
|
35
|
-
const paddingTop = (0, _figmaVariablesResolver.getVariableByName)('
|
|
36
|
-
const paddingBottom = (0, _figmaVariablesResolver.getVariableByName)('
|
|
37
|
-
const paddingLeft = (0, _figmaVariablesResolver.getVariableByName)('
|
|
38
|
-
const paddingRight = (0, _figmaVariablesResolver.getVariableByName)('
|
|
39
|
-
const gap = (0, _figmaVariablesResolver.getVariableByName)('
|
|
35
|
+
const paddingTop = (0, _figmaVariablesResolver.getVariableByName)('hStack/padding/top', modes);
|
|
36
|
+
const paddingBottom = (0, _figmaVariablesResolver.getVariableByName)('hStack/padding/bottom', modes);
|
|
37
|
+
const paddingLeft = (0, _figmaVariablesResolver.getVariableByName)('hStack/padding/left', modes);
|
|
38
|
+
const paddingRight = (0, _figmaVariablesResolver.getVariableByName)('hStack/padding/right', modes);
|
|
39
|
+
const gap = (0, _figmaVariablesResolver.getVariableByName)('hStack/gap', modes);
|
|
40
40
|
const flexWrap = typeof wrap === 'boolean' ? wrap ? 'wrap' : 'nowrap' : wrap;
|
|
41
41
|
const containerStyle = {
|
|
42
42
|
flexDirection: reverse ? 'row-reverse' : 'row',
|
|
@@ -35,10 +35,10 @@ import { HStack } from 'jfs-components';
|
|
|
35
35
|
|
|
36
36
|
This component uses the following design tokens, resolved through `getVariableByName`:
|
|
37
37
|
|
|
38
|
-
- **`
|
|
39
|
-
- **`
|
|
40
|
-
- **`
|
|
41
|
-
- **`
|
|
42
|
-
- **`
|
|
38
|
+
- **`hStack/gap`**
|
|
39
|
+
- **`hStack/padding/bottom`**
|
|
40
|
+
- **`hStack/padding/left`**
|
|
41
|
+
- **`hStack/padding/right`**
|
|
42
|
+
- **`hStack/padding/top`**
|
|
43
43
|
|
|
44
44
|
All tokens support mode-based theming through the `modes` prop.
|
|
@@ -22,7 +22,7 @@ This component uses the following design token collections. Each collection supp
|
|
|
22
22
|
- **Default:** POC
|
|
23
23
|
|
|
24
24
|
### Context3
|
|
25
|
-
- **Modes:** Default | Transaction Bubble | Balance
|
|
25
|
+
- **Modes:** Default | Transaction Bubble & Cards | Balance | Amount Input
|
|
26
26
|
- **Default:** Default
|
|
27
27
|
## Usage
|
|
28
28
|
|