@oxy.so/bloom 22.1.8 → 22.1.10

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.
Files changed (39) hide show
  1. package/docs/list.mdx +5 -3
  2. package/docs/task-catalog.json +1 -1
  3. package/docs/task-catalog.mdx +1 -1
  4. package/lib/commonjs/list/ListItemBase.js +9 -9
  5. package/lib/commonjs/list/ListItemBase.js.map +1 -1
  6. package/lib/commonjs/list/list-style.js +5 -1
  7. package/lib/commonjs/list/list-style.js.map +1 -1
  8. package/lib/commonjs/sidebar/SidebarFolder.js +1 -1
  9. package/lib/commonjs/sidebar/SidebarFolder.js.map +1 -1
  10. package/lib/commonjs/sidebar/SidebarItem.js +1 -1
  11. package/lib/commonjs/sidebar/SidebarItem.js.map +1 -1
  12. package/lib/commonjs/sidebar/SidebarTreeSection.js +1 -1
  13. package/lib/commonjs/sidebar/SidebarTreeSection.js.map +1 -1
  14. package/lib/module/list/ListItemBase.js +10 -10
  15. package/lib/module/list/ListItemBase.js.map +1 -1
  16. package/lib/module/list/list-style.js +4 -0
  17. package/lib/module/list/list-style.js.map +1 -1
  18. package/lib/module/sidebar/SidebarFolder.js +2 -2
  19. package/lib/module/sidebar/SidebarFolder.js.map +1 -1
  20. package/lib/module/sidebar/SidebarItem.js +1 -1
  21. package/lib/module/sidebar/SidebarItem.js.map +1 -1
  22. package/lib/module/sidebar/SidebarTreeSection.js +2 -2
  23. package/lib/module/sidebar/SidebarTreeSection.js.map +1 -1
  24. package/lib/typescript/commonjs/list/ListItemBase.d.ts.map +1 -1
  25. package/lib/typescript/commonjs/list/list-style.d.ts +4 -0
  26. package/lib/typescript/commonjs/list/list-style.d.ts.map +1 -1
  27. package/lib/typescript/commonjs/sidebar/SidebarTreeSection.d.ts +1 -1
  28. package/lib/typescript/commonjs/sidebar/SidebarTreeSection.d.ts.map +1 -1
  29. package/lib/typescript/module/list/ListItemBase.d.ts.map +1 -1
  30. package/lib/typescript/module/list/list-style.d.ts +4 -0
  31. package/lib/typescript/module/list/list-style.d.ts.map +1 -1
  32. package/lib/typescript/module/sidebar/SidebarTreeSection.d.ts +1 -1
  33. package/lib/typescript/module/sidebar/SidebarTreeSection.d.ts.map +1 -1
  34. package/package.json +1 -1
  35. package/src/list/ListItemBase.tsx +19 -10
  36. package/src/list/list-style.ts +4 -0
  37. package/src/sidebar/SidebarFolder.tsx +2 -2
  38. package/src/sidebar/SidebarItem.tsx +1 -1
  39. package/src/sidebar/SidebarTreeSection.tsx +2 -2
@@ -5,7 +5,7 @@ import { borderRadius } from '../styles/tokens';
5
5
  import Svg, { Path } from 'react-native-svg';
6
6
 
7
7
  import { ListItem } from '../list';
8
- import { LIST_ROW_INSET, LIST_ROW_MIN_HEIGHT } from '../list/list-style';
8
+ import { LIST_ROW_COMPACT_INSET, LIST_ROW_MIN_HEIGHT } from '../list/list-style';
9
9
  import { Collapsible } from '../collapsible';
10
10
  import { DropZone } from '../drop-zone';
11
11
  import { useControllableState } from '../hooks/use-controllable-state';
@@ -98,7 +98,7 @@ export function SidebarTreeRow({
98
98
  flexDirection: 'row',
99
99
  alignItems: 'center',
100
100
  width: '100%',
101
- paddingInlineStart: folder ? 36 - LIST_ROW_INSET : 0,
101
+ paddingInlineStart: folder ? 36 - LIST_ROW_COMPACT_INSET : 0,
102
102
  backgroundColor: lit ? palette.selected : 'transparent',
103
103
  borderRadius: borderRadius.full,
104
104
  }}
@@ -104,7 +104,7 @@ const SidebarItemComponent: React.FC<SidebarItemProps> = ({
104
104
  // small sidebar's label fits without inheriting the larger collapsed square.
105
105
  // This stays a minimum so larger system fonts can grow without clipping.
106
106
  height: collapsed ? metrics.row.square : undefined,
107
- minHeight: collapsed ? metrics.row.square : metrics.row.minHeight,
107
+ minHeight: collapsed ? metrics.row.square : Math.max(metrics.row.square, metrics.row.minHeight),
108
108
  paddingLeft: metrics.row.padding,
109
109
  paddingRight: metrics.row.padding,
110
110
  paddingTop: metrics.row.paddingVertical,
@@ -1,5 +1,5 @@
1
1
  import { ListItem } from '../list';
2
- import { LIST_ROW_INSET } from '../list/list-style';
2
+ import { LIST_ROW_COMPACT_INSET } from '../list/list-style';
3
3
  import React, { memo, useCallback, useEffect, useRef, type ComponentRef } from 'react';
4
4
  import {
5
5
  Pressable,
@@ -52,7 +52,7 @@ export const TREE_INDENT = 16;
52
52
  * Where a top-level row's content starts (its disclosure, glyph, avatar or label), and so where
53
53
  * the section's label and status start: one edge from the title down.
54
54
  */
55
- export const TREE_INSET = LIST_ROW_INSET;
55
+ export const TREE_INSET = LIST_ROW_COMPACT_INSET;
56
56
  /** Where a row's `actions` end: the section's own `actions` end there too. */
57
57
  const TREE_ACTIONS_INSET = 4;
58
58
  /** Long enough that a press opens the row and a swipe still scrolls the sidebar. */