@storybook/react-native-ui-lite 10.2.2-alpha.2 → 10.2.2-alpha.4
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/dist/index.js +386 -270
- package/package.json +4 -4
- package/src/Explorer.tsx +6 -1
- package/src/Layout.tsx +23 -4
- package/src/MobileAddonsPanel.tsx +10 -1
- package/src/MobileMenuDrawer.tsx +165 -153
- package/src/Search.tsx +2 -0
- package/src/SearchResults.tsx +10 -2
- package/src/Sidebar.tsx +14 -2
- package/src/StorybookLogo.tsx +4 -0
- package/src/Tree.tsx +25 -8
- package/src/TreeNode.tsx +3 -3
package/src/TreeNode.tsx
CHANGED
|
@@ -96,7 +96,7 @@ export const GroupNode: FC<
|
|
|
96
96
|
}, [theme.base, theme.color.primary, theme.color.ultraviolet]);
|
|
97
97
|
|
|
98
98
|
return (
|
|
99
|
-
<BranchNode isExpandable={isExpandable} {...props}>
|
|
99
|
+
<BranchNode isExpandable={isExpandable} accessibilityRole="button" {...props}>
|
|
100
100
|
<Wrapper key={`group-${props.id}-${color}`}>
|
|
101
101
|
{isExpandable && <CollapseIcon isExpanded={isExpanded} />}
|
|
102
102
|
<GroupIcon width={14} height={14} color={color} />
|
|
@@ -115,7 +115,7 @@ export const ComponentNode: FC<ComponentProps<typeof BranchNode>> = React.memo(
|
|
|
115
115
|
}, [theme.color.secondary]);
|
|
116
116
|
|
|
117
117
|
return (
|
|
118
|
-
<BranchNode isExpandable={isExpandable} {...props}>
|
|
118
|
+
<BranchNode isExpandable={isExpandable} accessibilityRole="button" {...props}>
|
|
119
119
|
{/* workaround for macos icon color bug */}
|
|
120
120
|
<Wrapper key={`component-${props.id}-${color}`}>
|
|
121
121
|
{isExpandable && <CollapseIcon isExpanded={isExpanded} />}
|
|
@@ -139,7 +139,7 @@ export const StoryNode = React.memo(
|
|
|
139
139
|
}, [props.selected, theme.color.lightest, theme.color.seafoam]);
|
|
140
140
|
|
|
141
141
|
return (
|
|
142
|
-
<LeafNode {...props} ref={ref}>
|
|
142
|
+
<LeafNode {...props} ref={ref} accessibilityRole="button">
|
|
143
143
|
<Wrapper key={`story-${props.id}-${color}`}>
|
|
144
144
|
<StoryIcon width={14} height={14} color={color} />
|
|
145
145
|
</Wrapper>
|