jfs-components 0.0.28 → 0.0.30
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/VStack/VStack.js +5 -5
- package/lib/commonjs/components/VStack/VStack.mdx +6 -6
- package/lib/commonjs/icons/registry.js +1 -1
- package/lib/module/components/VStack/VStack.js +5 -5
- package/lib/module/components/VStack/VStack.mdx +6 -6
- package/lib/module/design-tokens/figma-variables-resolver.js +2 -2
- package/lib/module/design-tokens/figma-variables-resolver.js.map +2 -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/VStack/VStack.mdx +6 -6
- package/src/components/VStack/VStack.tsx +5 -5
- package/src/icons/registry.ts +1 -1
|
@@ -32,11 +32,11 @@ const VStack = ({
|
|
|
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)('vStack/padding/top', modes);
|
|
36
|
+
const paddingBottom = (0, _figmaVariablesResolver.getVariableByName)('vStack/padding/bottom', modes);
|
|
37
|
+
const paddingLeft = (0, _figmaVariablesResolver.getVariableByName)('vStack/padding/left', modes);
|
|
38
|
+
const paddingRight = (0, _figmaVariablesResolver.getVariableByName)('vStack/padding/right', modes);
|
|
39
|
+
const gap = (0, _figmaVariablesResolver.getVariableByName)('vStack/gap', modes);
|
|
40
40
|
const flexWrap = typeof wrap === 'boolean' ? wrap ? 'wrap' : 'nowrap' : wrap;
|
|
41
41
|
const containerStyle = {
|
|
42
42
|
flexDirection: reverse ? 'column-reverse' : 'column',
|
|
@@ -17,7 +17,7 @@ This component does not use any design token collections with multiple modes.
|
|
|
17
17
|
```tsx
|
|
18
18
|
import { VStack } from 'jfs-components';
|
|
19
19
|
|
|
20
|
-
<VStack alignHorizontal="center" modes={{ '
|
|
20
|
+
<VStack alignHorizontal="center" modes={{ 'vStack/gap': 16 }}>
|
|
21
21
|
<View>Item 1</View>
|
|
22
22
|
<View>Item 2</View>
|
|
23
23
|
</VStack>
|
|
@@ -35,10 +35,10 @@ import { VStack } 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
|
+
- **`vStack/gap`**
|
|
39
|
+
- **`vStack/padding/bottom`**
|
|
40
|
+
- **`vStack/padding/left`**
|
|
41
|
+
- **`vStack/padding/right`**
|
|
42
|
+
- **`vStack/padding/top`**
|
|
43
43
|
|
|
44
44
|
All tokens support mode-based theming through the `modes` prop.
|