@oxy.so/bloom 23.9.0 → 23.10.0

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 (91) hide show
  1. package/docs/bloom-lang-spec.mdx +730 -0
  2. package/docs/bloom-language-classnames.mdx +6 -6
  3. package/docs/bloom-language-codemod.mdx +10 -0
  4. package/docs/bloom-language-for-agents.mdx +20 -4
  5. package/docs/bloom-language-from-jsx.mdx +1 -0
  6. package/docs/bloom-language-getting-started.mdx +2 -1
  7. package/docs/bloom-language-modifiers.mdx +28 -16
  8. package/docs/bloom-language-nodes.mdx +1301 -440
  9. package/docs/bloom-language-tokens.mdx +2 -0
  10. package/docs/bloom-language-tour.mdx +54 -9
  11. package/docs/bloom-language.mdx +142 -33
  12. package/docs/task-catalog.json +1 -1
  13. package/docs/task-catalog.mdx +1 -1
  14. package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js +18 -10
  15. package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js.map +1 -1
  16. package/lib/commonjs/agent-avatar/VectorStaticPortrait.js +102 -77
  17. package/lib/commonjs/agent-avatar/VectorStaticPortrait.js.map +1 -1
  18. package/lib/commonjs/agent-avatar/vector-halo.js +57 -0
  19. package/lib/commonjs/agent-avatar/vector-halo.js.map +1 -0
  20. package/lib/commonjs/avatar/Avatar.js +65 -62
  21. package/lib/commonjs/avatar/Avatar.js.map +1 -1
  22. package/lib/commonjs/avatar/CharacterFace.js +50 -45
  23. package/lib/commonjs/avatar/CharacterFace.js.map +1 -1
  24. package/lib/commonjs/avatar-group/AvatarGroupBase.js +311 -244
  25. package/lib/commonjs/avatar-group/AvatarGroupBase.js.map +1 -1
  26. package/lib/commonjs/data-table/DataTable.js +10 -11
  27. package/lib/commonjs/data-table/DataTable.js.map +1 -1
  28. package/lib/commonjs/image/BloomImage.js +3 -0
  29. package/lib/commonjs/image/BloomImage.js.map +1 -1
  30. package/lib/commonjs/stat-bar/StatBar.js +41 -43
  31. package/lib/commonjs/stat-bar/StatBar.js.map +1 -1
  32. package/lib/module/agent-avatar/VectorCharacterAvatar.js +18 -10
  33. package/lib/module/agent-avatar/VectorCharacterAvatar.js.map +1 -1
  34. package/lib/module/agent-avatar/VectorStaticPortrait.js +103 -78
  35. package/lib/module/agent-avatar/VectorStaticPortrait.js.map +1 -1
  36. package/lib/module/agent-avatar/vector-halo.js +52 -0
  37. package/lib/module/agent-avatar/vector-halo.js.map +1 -0
  38. package/lib/module/avatar/Avatar.js +65 -62
  39. package/lib/module/avatar/Avatar.js.map +1 -1
  40. package/lib/module/avatar/CharacterFace.js +50 -45
  41. package/lib/module/avatar/CharacterFace.js.map +1 -1
  42. package/lib/module/avatar-group/AvatarGroupBase.js +311 -244
  43. package/lib/module/avatar-group/AvatarGroupBase.js.map +1 -1
  44. package/lib/module/data-table/DataTable.js +10 -11
  45. package/lib/module/data-table/DataTable.js.map +1 -1
  46. package/lib/module/image/BloomImage.js +3 -0
  47. package/lib/module/image/BloomImage.js.map +1 -1
  48. package/lib/module/stat-bar/StatBar.js +41 -43
  49. package/lib/module/stat-bar/StatBar.js.map +1 -1
  50. package/lib/typescript/commonjs/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
  51. package/lib/typescript/commonjs/agent-avatar/VectorStaticPortrait.d.ts +2 -2
  52. package/lib/typescript/commonjs/agent-avatar/VectorStaticPortrait.d.ts.map +1 -1
  53. package/lib/typescript/commonjs/agent-avatar/types.d.ts +6 -0
  54. package/lib/typescript/commonjs/agent-avatar/types.d.ts.map +1 -1
  55. package/lib/typescript/commonjs/agent-avatar/vector-halo.d.ts +32 -0
  56. package/lib/typescript/commonjs/agent-avatar/vector-halo.d.ts.map +1 -0
  57. package/lib/typescript/commonjs/avatar/Avatar.d.ts.map +1 -1
  58. package/lib/typescript/commonjs/avatar/CharacterFace.d.ts +4 -1
  59. package/lib/typescript/commonjs/avatar/CharacterFace.d.ts.map +1 -1
  60. package/lib/typescript/commonjs/avatar/types.d.ts +9 -0
  61. package/lib/typescript/commonjs/avatar/types.d.ts.map +1 -1
  62. package/lib/typescript/commonjs/avatar-group/AvatarGroupBase.d.ts.map +1 -1
  63. package/lib/typescript/commonjs/data-table/DataTable.d.ts.map +1 -1
  64. package/lib/typescript/commonjs/image/BloomImage.d.ts.map +1 -1
  65. package/lib/typescript/module/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
  66. package/lib/typescript/module/agent-avatar/VectorStaticPortrait.d.ts +2 -2
  67. package/lib/typescript/module/agent-avatar/VectorStaticPortrait.d.ts.map +1 -1
  68. package/lib/typescript/module/agent-avatar/types.d.ts +6 -0
  69. package/lib/typescript/module/agent-avatar/types.d.ts.map +1 -1
  70. package/lib/typescript/module/agent-avatar/vector-halo.d.ts +32 -0
  71. package/lib/typescript/module/agent-avatar/vector-halo.d.ts.map +1 -0
  72. package/lib/typescript/module/avatar/Avatar.d.ts.map +1 -1
  73. package/lib/typescript/module/avatar/CharacterFace.d.ts +4 -1
  74. package/lib/typescript/module/avatar/CharacterFace.d.ts.map +1 -1
  75. package/lib/typescript/module/avatar/types.d.ts +9 -0
  76. package/lib/typescript/module/avatar/types.d.ts.map +1 -1
  77. package/lib/typescript/module/avatar-group/AvatarGroupBase.d.ts.map +1 -1
  78. package/lib/typescript/module/data-table/DataTable.d.ts.map +1 -1
  79. package/lib/typescript/module/image/BloomImage.d.ts.map +1 -1
  80. package/package.json +1 -1
  81. package/src/agent-avatar/VectorCharacterAvatar.tsx +26 -7
  82. package/src/agent-avatar/VectorStaticPortrait.tsx +18 -5
  83. package/src/agent-avatar/types.ts +6 -0
  84. package/src/agent-avatar/vector-halo.ts +52 -0
  85. package/src/avatar/Avatar.tsx +2 -0
  86. package/src/avatar/CharacterFace.tsx +6 -0
  87. package/src/avatar/types.ts +6 -0
  88. package/src/avatar-group/AvatarGroupBase.tsx +36 -4
  89. package/src/data-table/DataTable.tsx +8 -10
  90. package/src/image/BloomImage.tsx +3 -0
  91. package/src/stat-bar/StatBar.tsx +14 -14
@@ -24,10 +24,10 @@ Alia `841e8843a`, Allo `ba28b38`, Astro `8ae8386`, Atlas `037990e`, Authenticato
24
24
 
25
25
  | | Utilities | Uses | Share of uses |
26
26
  | --- | ---: | ---: | ---: |
27
- | Maps to a modifier and a token | 1087 | 47344 | 88.1% |
27
+ | Maps to a modifier and a token | 1090 | 47358 | 88.2% |
28
28
  | Expressed by the view’s structure | 48 | 3426 | 6.4% |
29
- | Redundant in the language | 30 | 420 | 0.8% |
30
- | Needs a named token (raw value) | 259 | 609 | 1.1% |
29
+ | Redundant in the language | 28 | 407 | 0.8% |
30
+ | Needs a named token (raw value) | 258 | 608 | 1.1% |
31
31
  | An app’s own token (a brand colour) | 30 | 76 | 0.1% |
32
32
  | Maps to the motion layer | 13 | 236 | 0.4% |
33
33
  | Needs a modifier the language lacks | 26 | 63 | 0.1% |
@@ -48,7 +48,7 @@ condition: `web:` 365 (`when('web')`), `active:` 332 (`when('pressed')`), `md:`
48
48
  | font | 37 | 10.5px (8), 23px (5), 34px (4), 48px / 48px (2), 11.5px (2), 13.5px (2), 15.5px (2), 21px (2), 29px (2), 28px / 34px (2), 60px / 60px (1), 19px (1) |
49
49
  | corner | 29 | 23px (6), 5px (5), 13px (3), 27px (3), 25px (2), 26px (2), 3px (2), 9px (2), 19px (1), 30px (1), 35px (1), 32px (1) |
50
50
  | shadow | 16 | shadow-shop-s (10), shadow-shop-m (2), shadow-dropdown (1), shadow-foreground/10 (1), shadow-foreground/20 (1), shadow-l (1) |
51
- | zIndex | 6 | 10000 (1), 1000 (1), 2000 (1), 2001 (1), 80 (1), 9998 (1) |
51
+ | zIndex | 5 | 10000 (1), 2000 (1), 2001 (1), 80 (1), 9998 (1) |
52
52
  | rotation | 1 | -12° (1) |
53
53
  | weight | 1 | 900 (1) |
54
54
  | scale | 1 | 1.01 (1) |
@@ -480,6 +480,7 @@ when the fill is a role's colour.
480
480
  | `border-l-2` | .border(role, 'thick', 'left') | 7 | 5 |
481
481
  | `gap-space-20` | .spacing('xl') | 7 | 3 |
482
482
  | `h-[30px]` | .frame({ height: '30' }) | 7 | 3 |
483
+ | `h-auto` | .frame({ height: 'auto' }) | 7 | 4 |
483
484
  | `justify-start` | .justify('start') | 7 | 5 |
484
485
  | `line-through` | .strikethrough() | 7 | 3 |
485
486
  | `max-h-96` | .frame({ maxHeight: '384' }) | 7 | 5 |
@@ -526,6 +527,7 @@ when the fill is a role's colour.
526
527
  | `text-black` | .foreground('black') | 6 | 2 |
527
528
  | `text-foreground/80` | .foreground('foreground/80') | 6 | 3 |
528
529
  | `w-4` | .frame({ width: 'lg' }) | 6 | 6 |
530
+ | `w-auto` | .frame({ width: 'auto' }) | 6 | 3 |
529
531
  | `-mt-3` | .margin('top', '-md') | 5 | 3 |
530
532
  | `bg-fill-secondary` | .background('mutedFill') | 5 | 2 |
531
533
  | `bg-foreground/10` | .background('foreground/10') | 5 | 3 |
@@ -773,9 +775,7 @@ when the fill is a role's colour.
773
775
  | `font-sans` | the family is Bloom’s: Text takes it from its font | 25 | 4 |
774
776
  | `font-bloom-mono` | the family is Bloom’s: Text takes it from its font | 20 | 2 |
775
777
  | `shadow-none` | a view has no shadow unless it says so | 17 | 4 |
776
- | `h-auto` | a view’s size is its content’s unless a frame says otherwise | 7 | 4 |
777
778
  | `inline-block` | display: views are boxes | 6 | 2 |
778
- | `w-auto` | a view’s size is its content’s unless a frame says otherwise | 6 | 3 |
779
779
  | `border-b-0` | no border is the default | 3 | 2 |
780
780
  | `border-r-0` | no border is the default | 3 | 2 |
781
781
 
@@ -36,6 +36,9 @@ is `toElement`'s second argument, a child's `.id()`).
36
36
  | a style's `borderRadius` (and each corner's own, `borderTopLeftRadius`…`borderBottomEndRadius`), `zIndex`, `aspectRatio`, `overflow: 'visible'`, `inset` | `.corner(token)` (`.corner(token, side)` for one corner: `top-left`, `bottom-trailing`…) and `.zIndex(token)` of the exact value (a named rung over a numeric token; a radius of 999 is `full`, in a style and in a class (`rounded-[999px]`), which draws alike on any box under 1998pt), `.aspectRatio(ratio)`; `overflow: 'visible'` (and the class `overflow-visible`) is `.clipped(false)`, written out as the app wrote it, over a clip the view would otherwise have (a ScrollView's, an earlier style's); `inset` is its four edges; a value that is no token stays a reason |
37
37
  | `hitSlop` on a view, a pressable or a text | `.hitSlop(token)` for one slop (a number of a hit slop token, `8` is `'md'`, or Bloom's `tokens.hitSlop.md`); an object of static sides is a call per pair of equal opposite sides, or per side, only the sides it names (`{ top: 8, bottom: 8 }` is `.hitSlop('vertical', 'md')`, a 0 side `'none'`); a side that is no token, or a slop set at runtime, is a reason |
38
38
  | Bloom `Text` (`@oxy.so/bloom/typography`), its `variant` and `numberOfLines` | `Text(…runs)`, `.font()` / `.weight()`, `.lines()` |
39
+ | a Text's `onPress` or `onLongPress` (a span's too) | `.onPress()` / `.onLongPress()` on the `Text` or the span |
40
+ | an element inside a Text the codemod does not convert (a router's `Link`, an app's component) | an element run, `Embed(element)`, drawn as it is inside the line; one that converts as anything but a span of the Text (a Bloom `Text` inside React Native's) stays a reason (`text-child`) |
41
+ | an `asChild` element (expo-router's `Link asChild`) around one text, embedded | `Embed((render) => <Link … asChild>{render(Text(…))}</Link>)`: the element hands the text's host its props, as it did the JSX child. Outside a language view the child stays JSX (`as-child`): a root there would take the props in place of its host and drop them |
39
42
  | Bloom's typography components (`Muted`, `H2`, `Small`…), without a `className` | `Text(…runs).textStyle('muted')` |
40
43
  | a Bloom component with a rule (`src/components.ts`, below) | its node, prop by prop |
41
44
  | React Native `Text` | `RawText(…runs)`: React Native's own Text, only what its chain names, in the platform face when it names no family |
@@ -378,6 +381,13 @@ A View's or a Pressable's `pointerEvents` is `.allowsHitTesting()`: `none`
378
381
  `false`, `box-none` `'children'`, `box-only` `'self'`, and values chosen by a
379
382
  plain condition that choice, `undefined` none and `auto` `true`
380
383
  (`split ? 'box-none' : undefined` is `.allowsHitTesting(split ? 'children' : undefined)`).
384
+ A `pointerEvents` in a style is drawn where the JSX's is: a StyleSheet's
385
+ style is compiled by react-native-web into the prop's classes, so it is
386
+ `.allowsHitTesting()` alike; an inline object or a module style constant
387
+ writes `box-none` and `box-only` as CSS the browser drops, so it is
388
+ `.when('native', (v) => v.allowsHitTesting('children'))` (or `'self'`). An
389
+ inline `none` or `auto` stays JSX: the browser keeps it, and what is inside
390
+ inherits it rather than taking the prop's rule.
381
391
 
382
392
  A theme colour at an opacity, Bloom's `withAlpha(colors.primary, 0.1)` or
383
393
  `tokenAlpha(tokens.primary, 0.1)` of a `useTheme()` or `useColorTokens()` read,
@@ -42,11 +42,21 @@ the `check` blocks); the full lists are in the generated reference:
42
42
 
43
43
  ## Imports
44
44
 
45
+ The root, `@oxy.so/bloom-language`, is the language: its layout, text, media and navigation views,
46
+ modifiers and values. Each family of nodes is an entry of its own, `@oxy.so/bloom-language/<family>`
47
+ (`/inputs`, `/list`, `/containers`, `/overlays`, `/chart-cards`…), so an app's bundle carries only the
48
+ families it imports. The reference names each node's module ([nodes](bloom-language-nodes.mdx)); the
49
+ codemod writes these imports.
50
+
45
51
  ```ts
46
52
  import { view, HStack, VStack, ZStack, Spacer, Group, Text, Icon, Image, Button, Avatar, Badge,
47
- Card, ListItem, List, VirtualList, ScrollView, TextField, Toggle, Picker, Option, Segmented, Field,
48
- Alert, Dialog, Popover, GlassGroup, regular, clear, defineTokens, defineModifier, defineEnvironment,
49
- useEnvironment, useNamespace, useMotionValue, animate, toast, Embed, toElement } from '@oxy.so/bloom-language';
53
+ ScrollView, regular, clear, defineTokens, defineModifier, defineEnvironment, useEnvironment,
54
+ useNamespace, useMotionValue, animate, toast, Embed, toElement } from '@oxy.so/bloom-language';
55
+ import { Card } from '@oxy.so/bloom-language/containers';
56
+ import { GlassGroup } from '@oxy.so/bloom-language/glass-group';
57
+ import { TextField, Toggle, Picker, Option, Segmented, Field } from '@oxy.so/bloom-language/inputs';
58
+ import { ListItem, List, VirtualList } from '@oxy.so/bloom-language/list';
59
+ import { Alert, Dialog, Popover } from '@oxy.so/bloom-language/overlays';
50
60
  import { layout, screen, Stack, TabView, Sheet, AppLayout, navigate } from '@oxy.so/bloom-language/router';
51
61
  import { entity, list, source, action, useEntity, useList } from '@oxy.so/bloom-data';
52
62
  ```
@@ -55,7 +65,9 @@ import { entity, list, source, action, useEntity, useList } from '@oxy.so/bloom-
55
65
 
56
66
  ```tsx check
57
67
  import { useState } from 'react';
58
- import { Button, Field, HStack, Icon, ListItem, ScrollView, Spacer, Text, TextField, Toggle, VStack } from '@oxy.so/bloom-language';
68
+ import { Button, HStack, Icon, ScrollView, Spacer, Text, VStack } from '@oxy.so/bloom-language';
69
+ import { Field, TextField, Toggle } from '@oxy.so/bloom-language/inputs';
70
+ import { ListItem } from '@oxy.so/bloom-language/list';
59
71
  import { navigate, screen } from '@oxy.so/bloom-language/router';
60
72
  import { RiAddLine } from '@oxy.so/bloom/icons/RiAddLine';
61
73
 
@@ -106,6 +118,10 @@ export default screen(function Items() {
106
118
  | `TextField(value, …)` | `TextField([value, setValue], …)` | a binding, not a value |
107
119
  | `<Pressable>` around a node | `.onPress(fn)` | presses are modifiers |
108
120
  | `.onPress(() => router.push('/x'))` | `.onPress(navigate('/x'))` | the panel-aware navigator |
121
+ | `<Link asChild>` around a span in a text | `Embed((render) => <Link href={h} asChild>{render(Text(…))}</Link>)` as a run | the Link hands the span's host its href and press |
122
+ | `.plainRun((t) => Text(...linkify(t)))` | `.plainRun(linkify)` returning strings and spans | runs, no extra span around the prose |
123
+ | `<Screen>` in one branch of a `screen()`, a call surface in another | `CallScreen(…).ownScreen()` in that branch, `null` for nothing | `screen()` draws a Screen around every other branch |
124
+ | `cond ? list : <Provider value={v}>{list}</Provider>` | `.provider(cond ? undefined : Provider, { value: v })` on the root | a screen's providers are modifiers |
109
125
  | `.when('hover', …)` | `.when('hovered', …)` | condition names |
110
126
  | `.when('md', v => v.onPress(…))` | handlers outside `when()` | variants change style only |
111
127
  | `.opacity('half')` on a glass | no opacity on glass | a material is never faded |
@@ -85,6 +85,7 @@ export const PersonRow = view(function PersonRow({ person, onOpen }: { person: P
85
85
  | `bg-card`, `text-muted-foreground`, `bg-primary/10` | `.background('card')`, `.foreground('muted')`, `.background('primary/10')` |
86
86
  | `rounded-xl`, `rounded-full` | `.corner('xl')`, `.corner('infinite')` |
87
87
  | `border border-border` | `.border('border', 'thin')` |
88
+ | `border` with no colour class, `style={{ borderWidth: 1 }}` with no `borderColor` | `.border(undefined, 'thin')`: the width alone, in the platform's default colour (black natively, react-native-web's own on the web) |
88
89
  | `shadow-sm` | Tailwind's shadow by its exact box-shadow (the table's token); Bloom's elevation `.shadow('s' \| 'm' \| 'floating')` in new code |
89
90
  | `opacity-60` | `.opacity('60')` |
90
91
  | `absolute top-2 right-2` | `.position({ top: 'sm', right: 'sm' })` |
@@ -186,7 +186,8 @@ tree. Inside JSX, `toElement(node)` draws a language node.
186
186
  ```tsx check
187
187
  // app/(app)/index.tsx
188
188
  import { useState } from 'react';
189
- import { Button, Field, Text, TextField, Toggle, HStack, Spacer, VStack } from '@oxy.so/bloom-language';
189
+ import { Button, Text, HStack, Spacer, VStack } from '@oxy.so/bloom-language';
190
+ import { Field, TextField, Toggle } from '@oxy.so/bloom-language/inputs';
190
191
  import { screen } from '@oxy.so/bloom-language/router';
191
192
 
192
193
  export default screen(function Welcome() {
@@ -7,13 +7,13 @@ description: Every modifier of the Bloom language: its parameters and their toke
7
7
 
8
8
  # Bloom language modifiers
9
9
 
10
- Every modifier the language has (667). Each lists its parameters as the spec types them (a token set, an object of tokens, or a free value such as a string, a callback or a binding), its TypeScript signature where the package declares it, and which nodes take it. A token set links to its values in [the tokens reference](bloom-language-tokens.mdx). How modifiers combine (order is nesting, the environment, variants) is in [the tour](bloom-language-tour.mdx#modifiers-and-order).
10
+ Every modifier the language has (668). Each lists its parameters as the spec types them (a token set, an object of tokens, or a free value such as a string, a callback or a binding), its TypeScript signature where the package declares it, and which nodes take it. A token set links to its values in [the tokens reference](bloom-language-tokens.mdx). How modifiers combine (order is nesting, the environment, variants) is in [the tour](bloom-language-tour.mdx#modifiers-and-order).
11
11
 
12
12
  ## Universal modifiers
13
13
 
14
14
  Every node takes these, except the 65 nodes that take only their own ([menuItem](bloom-language-nodes.mdx#menuitem), [menuSubmenu](bloom-language-nodes.mdx#menusubmenu), [menuSection](bloom-language-nodes.mdx#menusection), [alert](bloom-language-nodes.mdx#alert), [dialog](bloom-language-nodes.mdx#dialog), [popover](bloom-language-nodes.mdx#popover), [connectionStatus](bloom-language-nodes.mdx#connectionstatus), [menuContent](bloom-language-nodes.mdx#menucontent), [menuActions](bloom-language-nodes.mdx#menuactions), [header](bloom-language-nodes.mdx#header), [bottomBar](bloom-language-nodes.mdx#bottombar), [tab](bloom-language-nodes.mdx#tab), [cardTitle](bloom-language-nodes.mdx#cardtitle), [cardDescription](bloom-language-nodes.mdx#carddescription), [groupedSectionItem](bloom-language-nodes.mdx#groupedsectionitem), [tabItem](bloom-language-nodes.mdx#tabitem), [errorBoundary](bloom-language-nodes.mdx#errorboundary), [group](bloom-language-nodes.mdx#group), [appLayout](bloom-language-nodes.mdx#applayout), [navStack](bloom-language-nodes.mdx#navstack), [route](bloom-language-nodes.mdx#route), [tabView](bloom-language-nodes.mdx#tabview), [option](bloom-language-nodes.mdx#option), [optionGroup](bloom-language-nodes.mdx#optiongroup), [groupedSectionIcon](bloom-language-nodes.mdx#groupedsectionicon), [groupedSectionDivider](bloom-language-nodes.mdx#groupedsectiondivider), [groupedSectionCollapse](bloom-language-nodes.mdx#groupedsectioncollapse), [bottomSheet](bloom-language-nodes.mdx#bottomsheet), [sidebar](bloom-language-nodes.mdx#sidebar), [navItem](bloom-language-nodes.mdx#navitem), [treeSection](bloom-language-nodes.mdx#treesection), [treeFolder](bloom-language-nodes.mdx#treefolder), [treeItem](bloom-language-nodes.mdx#treeitem), [rail](bloom-language-nodes.mdx#rail), [railItem](bloom-language-nodes.mdx#railitem), [command](bloom-language-nodes.mdx#command), [commandItem](bloom-language-nodes.mdx#commanditem), [commandGroup](bloom-language-nodes.mdx#commandgroup), [settings](bloom-language-nodes.mdx#settings), [settingsGroup](bloom-language-nodes.mdx#settingsgroup), [settingsItem](bloom-language-nodes.mdx#settingsitem), [panel](bloom-language-nodes.mdx#panel), [destination](bloom-language-nodes.mdx#destination), [toolbarView](bloom-language-nodes.mdx#toolbarview), [stickySection](bloom-language-nodes.mdx#stickysection), [pageFooter](bloom-language-nodes.mdx#pagefooter), [autoHideBar](bloom-language-nodes.mdx#autohidebar), [resizeHandle](bloom-language-nodes.mdx#resizehandle), [sidebarMode](bloom-language-nodes.mdx#sidebarmode), [settingsTextField](bloom-language-nodes.mdx#settingstextfield), [settingsDateField](bloom-language-nodes.mdx#settingsdatefield), [fact](bloom-language-nodes.mdx#fact), [videoPlayback](bloom-language-nodes.mdx#videoplayback), [videoViewability](bloom-language-nodes.mdx#videoviewability), [videoViewabilityScope](bloom-language-nodes.mdx#videoviewabilityscope), [menubarMenu](bloom-language-nodes.mdx#menubarmenu), [mediaFlightLayer](bloom-language-nodes.mdx#mediaflightlayer), [avatarFlightLayer](bloom-language-nodes.mdx#avatarflightlayer), [gallery](bloom-language-nodes.mdx#gallery), [dataColumn](bloom-language-nodes.mdx#datacolumn), [sortableChip](bloom-language-nodes.mdx#sortablechip), [viewport](bloom-language-nodes.mdx#viewport), [toolbarGroup](bloom-language-nodes.mdx#toolbargroup), [toolbarSpacer](bloom-language-nodes.mdx#toolbarspacer), [confirmationDialog](bloom-language-nodes.mdx#confirmationdialog)):
15
15
 
16
- [`.padding()`](#padding), [`.safeAreaPadding()`](#safeareapadding), [`.frame()`](#frame), [`.aspectRatio()`](#aspectratio), [`.grow()`](#grow), [`.shrink()`](#shrink), [`.alignSelf()`](#alignself), [`.position()`](#position), [`.sticky()`](#sticky), [`.cursor()`](#cursor), [`.offset()`](#offset), [`.zIndex()`](#zindex), [`.hidden()`](#hidden), [`.basis()`](#basis), [`.flex()`](#flex), [`.margin()`](#margin), [`.scale()`](#scale), [`.allowsHitTesting()`](#allowshittesting), [`.accessibilityOnly()`](#accessibilityonly), [`.background()`](#background), [`.overlay()`](#overlay), [`.border()`](#border), [`.borderStyle()`](#borderstyle), [`.ring()`](#ring), [`.corner()`](#corner), [`.cornerCurve()`](#cornercurve), [`.clipped()`](#clipped), [`.opacity()`](#opacity), [`.shadow()`](#shadow), [`.glass()`](#glass), [`.blur()`](#blur), [`.foreground()`](#foreground), [`.font()`](#font), [`.weight()`](#weight), [`.leading()`](#leading), [`.tracking()`](#tracking), [`.onPress()`](#onpress), [`.onLongPress()`](#onlongpress), [`.onHover()`](#onhover), [`.hoverGroup()`](#hovergroup), [`.pressScale()`](#pressscale), [`.pressFade()`](#pressfade), [`.label()`](#label), [`.hint()`](#hint), [`.role()`](#role), [`.accessibilityState()`](#accessibilitystate), [`.accessibilityValue()`](#accessibilityvalue), [`.liveRegion()`](#liveregion), [`.accessibilityHidden()`](#accessibilityhidden), [`.accessibilityElement()`](#accessibilityelement), [`.focusable()`](#focusable), [`.collapsable()`](#collapsable), [`.hitSlop()`](#hitslop), [`.testID()`](#testid), [`.ref()`](#ref), [`.onLayout()`](#onlayout), [`.badge()`](#badge), [`.id()`](#id), [`.title()`](#title), [`.titleDisplay()`](#titledisplay), [`.subtitle()`](#subtitle), [`.header()`](#header), [`.toolbar()`](#toolbar), [`.toolbarLeading()`](#toolbarleading), [`.onBack()`](#onback), [`.backLabel()`](#backlabel), [`.headingLevel()`](#headinglevel), [`.footer()`](#footer), [`.sheet()`](#sheet), [`.alert()`](#alert), [`.dialog()`](#dialog), [`.popover()`](#popover), [`.onReselect()`](#onreselect), [`.when()`](#when), [`.rotation()`](#rotation), [`.animation()`](#animation), [`.animatesColors()`](#animatescolors), [`.transition()`](#transition), [`.keyframes()`](#keyframes), [`.repeatForever()`](#repeatforever), [`.delay()`](#delay), [`.anchor()`](#anchor), [`.matchedGeometry()`](#matchedgeometry), [`.drag()`](#drag), [`.swipe()`](#swipe), [`.pinch()`](#pinch), [`.onDoubleTap()`](#ondoubletap), [`.screenKind()`](#screenkind), [`.screenScroll()`](#screenscroll), [`.documentScroll()`](#documentscroll), [`.headerPlacement()`](#headerplacement), [`.scrollEdge()`](#scrolledge), [`.underlay()`](#underlay), [`.floatingAction()`](#floatingaction), [`.contentClearance()`](#contentclearance), [`.navigationScope()`](#navigationscope), [`.colorPreset()`](#colorpreset), [`.seed()`](#seed), [`.screenActive()`](#screenactive), [`.replacesBottomBar()`](#replacesbottombar), [`.screenBackground()`](#screenbackground), [`.reselectTop()`](#reselecttop), [`.initialHeaderHeight()`](#initialheaderheight), [`.initialFooterHeight()`](#initialfooterheight), [`.colorScope()`](#colorscope), [`.keyboardAvoiding()`](#keyboardavoiding), [`.provider()`](#provider), [`.fullScreenCover()`](#fullscreencover), [`.glassID()`](#glassid), [`.glassUnion()`](#glassunion), [`.glassTransition()`](#glasstransition), [`.inContent()`](#incontent), [`.disabled()`](#disabled), [`.environment()`](#environment), [`.controlSize()`](#controlsize), [`.buttonStyle()`](#buttonstyle), [`.modifier()`](#modifier), [`.confirmationDialog()`](#confirmationdialog), [`.phases()`](#phases)
16
+ [`.padding()`](#padding), [`.safeAreaPadding()`](#safeareapadding), [`.frame()`](#frame), [`.aspectRatio()`](#aspectratio), [`.grow()`](#grow), [`.shrink()`](#shrink), [`.alignSelf()`](#alignself), [`.position()`](#position), [`.sticky()`](#sticky), [`.cursor()`](#cursor), [`.offset()`](#offset), [`.zIndex()`](#zindex), [`.hidden()`](#hidden), [`.basis()`](#basis), [`.flex()`](#flex), [`.margin()`](#margin), [`.scale()`](#scale), [`.allowsHitTesting()`](#allowshittesting), [`.accessibilityOnly()`](#accessibilityonly), [`.background()`](#background), [`.overlay()`](#overlay), [`.border()`](#border), [`.borderStyle()`](#borderstyle), [`.ring()`](#ring), [`.corner()`](#corner), [`.cornerCurve()`](#cornercurve), [`.clipped()`](#clipped), [`.opacity()`](#opacity), [`.shadow()`](#shadow), [`.glass()`](#glass), [`.blur()`](#blur), [`.foreground()`](#foreground), [`.font()`](#font), [`.weight()`](#weight), [`.leading()`](#leading), [`.tracking()`](#tracking), [`.onPress()`](#onpress), [`.onLongPress()`](#onlongpress), [`.onHover()`](#onhover), [`.hoverGroup()`](#hovergroup), [`.pressScale()`](#pressscale), [`.pressFade()`](#pressfade), [`.label()`](#label), [`.hint()`](#hint), [`.role()`](#role), [`.accessibilityState()`](#accessibilitystate), [`.accessibilityValue()`](#accessibilityvalue), [`.liveRegion()`](#liveregion), [`.accessibilityHidden()`](#accessibilityhidden), [`.accessibilityElement()`](#accessibilityelement), [`.focusable()`](#focusable), [`.collapsable()`](#collapsable), [`.hitSlop()`](#hitslop), [`.testID()`](#testid), [`.ref()`](#ref), [`.onLayout()`](#onlayout), [`.badge()`](#badge), [`.id()`](#id), [`.title()`](#title), [`.titleDisplay()`](#titledisplay), [`.subtitle()`](#subtitle), [`.header()`](#header), [`.toolbar()`](#toolbar), [`.toolbarLeading()`](#toolbarleading), [`.onBack()`](#onback), [`.backLabel()`](#backlabel), [`.headingLevel()`](#headinglevel), [`.footer()`](#footer), [`.sheet()`](#sheet), [`.alert()`](#alert), [`.dialog()`](#dialog), [`.popover()`](#popover), [`.onReselect()`](#onreselect), [`.when()`](#when), [`.rotation()`](#rotation), [`.animation()`](#animation), [`.animatesColors()`](#animatescolors), [`.transition()`](#transition), [`.keyframes()`](#keyframes), [`.repeatForever()`](#repeatforever), [`.delay()`](#delay), [`.anchor()`](#anchor), [`.matchedGeometry()`](#matchedgeometry), [`.drag()`](#drag), [`.swipe()`](#swipe), [`.pinch()`](#pinch), [`.onDoubleTap()`](#ondoubletap), [`.screenKind()`](#screenkind), [`.screenScroll()`](#screenscroll), [`.documentScroll()`](#documentscroll), [`.headerPlacement()`](#headerplacement), [`.scrollEdge()`](#scrolledge), [`.underlay()`](#underlay), [`.floatingAction()`](#floatingaction), [`.contentClearance()`](#contentclearance), [`.navigationScope()`](#navigationscope), [`.colorPreset()`](#colorpreset), [`.seed()`](#seed), [`.screenActive()`](#screenactive), [`.replacesBottomBar()`](#replacesbottombar), [`.screenBackground()`](#screenbackground), [`.reselectTop()`](#reselecttop), [`.initialHeaderHeight()`](#initialheaderheight), [`.initialFooterHeight()`](#initialfooterheight), [`.colorScope()`](#colorscope), [`.keyboardAvoiding()`](#keyboardavoiding), [`.provider()`](#provider), [`.ownScreen()`](#ownscreen), [`.fullScreenCover()`](#fullscreencover), [`.glassID()`](#glassid), [`.glassUnion()`](#glassunion), [`.glassTransition()`](#glasstransition), [`.inContent()`](#incontent), [`.disabled()`](#disabled), [`.environment()`](#environment), [`.controlSize()`](#controlsize), [`.buttonStyle()`](#buttonstyle), [`.modifier()`](#modifier), [`.confirmationDialog()`](#confirmationdialog), [`.phases()`](#phases)
17
17
 
18
18
  ## Modifiers
19
19
 
@@ -45,7 +45,7 @@ Padded by the device's safe area on those sides (all by default), as SwiftUI's `
45
45
  - Signature: `.frame(value: FrameSpec)`
46
46
  - Taken by: every node (universal), and [dialog](bloom-language-nodes.mdx#dialog), [popover](bloom-language-nodes.mdx#popover), [groupedSectionItem](bloom-language-nodes.mdx#groupedsectionitem), [tabItem](bloom-language-nodes.mdx#tabitem), [errorBoundary](bloom-language-nodes.mdx#errorboundary)
47
47
  - Varies under `.when(condition, v => v…)` ([variants](bloom-language-tour.mdx#variants)).
48
- - `frame` tokens: 70, listed under [length](bloom-language-tokens.mdx#length)
48
+ - `frame` tokens: 71, listed under [length](bloom-language-tokens.mdx#length)
49
49
 
50
50
  ### `grow`
51
51
 
@@ -118,7 +118,7 @@ Pinned to its parent's edges, out of the stack's flow (absolute): each edge give
118
118
 
119
119
  ### `offset`
120
120
 
121
- Drawn shifted from where it is laid out (`x` right, `y` down); its siblings keep their places.
121
+ Drawn shifted from where it is laid out (`x` right, `y` down); its siblings keep their places. A space token, points computed at render (`.offset({ y: nudge })`), or a `MotionValue`.
122
122
 
123
123
  - Parameters: `{ x, y }`, each [padding](bloom-language-tokens.mdx#padding)
124
124
  - Signature: `.offset(value: OffsetSpec)`
@@ -134,7 +134,7 @@ Its stacking level among its siblings: Bloom's `base`, `raised`, `floating`, `dr
134
134
  - Signature: `.zIndex(value: ZIndexValue)`
135
135
  - Taken by: every node (universal)
136
136
  - Varies under `.when(condition, v => v…)` ([variants](bloom-language-tour.mdx#variants)).
137
- - `zIndex` tokens: `'base'`, `'raised'`, `'floating'`, `'dropdown'`, `'auto'`, `'-1'`, `'2'`, `'3'`, `'4'`, `'5'`, `'6'`, `'7'`, `'20'`, `'30'`, `'50'`, `'60'`
137
+ - `zIndex` tokens: `'base'`, `'raised'`, `'floating'`, `'dropdown'`, `'auto'`, `'-1'`, `'2'`, `'3'`, `'4'`, `'5'`, `'6'`, `'7'`, `'20'`, `'30'`, `'50'`, `'60'`, `'1000'`
138
138
 
139
139
  ### `hidden`
140
140
 
@@ -154,7 +154,7 @@ Its length along its parent's axis before free space is shared (`flex-basis`): a
154
154
  - Taken by: every node (universal), and [dataColumn](bloom-language-nodes.mdx#datacolumn)
155
155
  - Narrower on: [dataColumn](bloom-language-nodes.mdx#datacolumn) ([space](bloom-language-tokens.mdx#space))
156
156
  - Varies under `.when(condition, v => v…)` ([variants](bloom-language-tour.mdx#variants)).
157
- - `length` tokens: 70, listed under [length](bloom-language-tokens.mdx#length)
157
+ - `length` tokens: 71, listed under [length](bloom-language-tokens.mdx#length)
158
158
 
159
159
  ### `flex`
160
160
 
@@ -257,8 +257,10 @@ Its own place across its parent's axis, over the parent's `align`.
257
257
 
258
258
  ### `border`
259
259
 
260
+ A border: a colour role (or a role at an opacity, or an app colour), a width (`hairline` by default) and an edge (`all` by default). A colour of `undefined` writes the width alone, so the line keeps the platform's default colour (black natively, react-native-web's own on the web), as a style with a `borderWidth` and no `borderColor` does: `.border(subscribed ? 'border' : undefined, 'thin')`.
261
+
260
262
  - Parameters: [color](bloom-language-tokens.mdx#color); [borderWidth](bloom-language-tokens.mdx#borderwidth) (optional); [borderEdge](bloom-language-tokens.mdx#borderedge) (optional)
261
- - Signature: `.border(value: InkToken, width?: BorderWidthName, edge?: BorderEdge)`
263
+ - Signature: `.border(value: InkToken | undefined, width?: BorderWidthName, edge?: BorderEdge)`
262
264
  - Taken by: every node (universal), and [groupedSectionItem](bloom-language-nodes.mdx#groupedsectionitem), [errorBoundary](bloom-language-nodes.mdx#errorboundary)
263
265
  - Varies under `.when(condition, v => v…)` ([variants](bloom-language-tour.mdx#variants)).
264
266
  - `color` tokens: `'foreground'`, `'muted'`, `'textTertiary'`, `'primary'`, `'primaryText'`, `'onPrimary'`, `'secondary'`, `'onSecondary'`, `'tertiary'`, `'onTertiary'`, `'background'`, `'surface'`, `'popover'`, `'border'`, `'input'`, `'success'`, `'successText'`, `'warning'`, `'warningText'`, `'error'`, `'info'`, `'mutedFill'`, `'card'`, `'destructive'`, `'white'`, `'black'`, `'transparent'`, `'onSurface'`, `'accent'`, `'errorText'`, `'infoText'`, `'surfaceFill'`
@@ -749,7 +751,7 @@ The side or bottom panel's own frame (Bloom's `panelStyle`): a bottom dialog kep
749
751
  - Parameters: `{ width, height, minWidth, minHeight, maxWidth, maxHeight }`, each [length](bloom-language-tokens.mdx#length)
750
752
  - Signature: `.panelFrame(value: FrameSpec)`
751
753
  - Taken by: [dialog](bloom-language-nodes.mdx#dialog)
752
- - `frame` tokens: 70, listed under [length](bloom-language-tokens.mdx#length)
754
+ - `frame` tokens: 71, listed under [length](bloom-language-tokens.mdx#length)
753
755
 
754
756
  ### `ringColor`
755
757
 
@@ -889,8 +891,10 @@ The pointer's shape over the view, on the web (CSS's `cursor`: `grab` over a row
889
891
 
890
892
  ### `role`
891
893
 
894
+ What the view is to assistive technology (`accessibilityRole`, or a web role as React Native's `role`). `undefined` is none, a role chosen at render that may be none (`.role(href ? 'link' : undefined)`): a pressable with `.pressScale()`, a button by default, then names itself nothing, as Bloom's `PressableScale` with `accessibilityRole={undefined}` does.
895
+
892
896
  - Parameters: [role](bloom-language-tokens.mdx#role)
893
- - Signature: `.role(value: Role)`
897
+ - Signature: `.role(value: Role | undefined)`
894
898
  - Taken by: every node (universal)
895
899
  - `role` tokens: `'button'`, `'link'`, `'header'`, `'image'`, `'text'`, `'none'`, `'checkbox'`, `'radio'`, `'tab'`, `'radiogroup'`, `'tablist'`, `'list'`, `'alert'`, `'progressbar'`, `'imagebutton'`, `'summary'`, `'option'`, `'listbox'`
896
900
 
@@ -3095,10 +3099,18 @@ The screen kept above the keyboard: React Native's `KeyboardAvoidingView` around
3095
3099
 
3096
3100
  ### `provider`
3097
3101
 
3098
- A provider around the screen (a React component that draws its children: Bloom's `HeaderDockProvider`, an app's own context the screen's header and content share). Each of these three wraps what the root's modifiers before it drew, in chain order, as SwiftUI's modifiers do: the last one is outermost.
3102
+ A provider around the screen (a React component that draws its children: Bloom's `HeaderDockProvider`, an app's own context the screen's header and content share), with the props it takes besides its children. `undefined` draws none: a provider only some people get (`supervised ? undefined : AskProvider`), the screen drawn again inside it when that changes, as JSX that wraps an element in a branch is. Each of these three wraps what the root's modifiers before it drew, in chain order, as SwiftUI's modifiers do: the last one is outermost.
3099
3103
 
3100
- - Parameters: a value
3101
- - Signature: `.provider(component: ScreenProvider)`
3104
+ - Parameters: a value; a value (optional)
3105
+ - Signature: `.provider(component: ScreenProvider | undefined)` or `.provider(component: ComponentType<P & { children?: ReactNode }> | undefined, props: P)`
3106
+ - Taken by: every node (universal), and [group](bloom-language-nodes.mdx#group)
3107
+
3108
+ ### `ownScreen`
3109
+
3110
+ The root is a full-screen surface of its own (Bloom's `CallScreen` or `IncomingCallScreen`, a story viewer): a `screen()` branch that returns it draws it as it is, with no Bloom `Screen` around it, as a route that returns that surface in JSX does. Its screen chrome (title, header, footer, floating action) is the Screen's and is not drawn; its sheets, colour scope, keyboard avoidance and providers are. Another branch of the same body can still be a Screen (a call route's no-call notice), and a branch that returns `null` draws nothing. `true` by default.
3111
+
3112
+ - Parameters: a value (optional)
3113
+ - Signature: `.ownScreen(value?: boolean)`
3102
3114
  - Taken by: every node (universal), and [group](bloom-language-nodes.mdx#group)
3103
3115
 
3104
3116
  ### `scrollbar`
@@ -4730,18 +4742,18 @@ The trigger's text (Bloom's `Schedule a meeting` by default).
4730
4742
 
4731
4743
  ### `plainRun`
4732
4744
 
4733
- A view of your own for each plain run (mentions, tags); not inside links or code.
4745
+ Runs of your own for each plain run (mentions, tags), not inside links or code: one run or several, strings beside spans, as a `Text` takes them.
4734
4746
 
4735
4747
  - Parameters: a value
4736
- - Signature: `.plainRun(value: (text: string) => Child)`
4748
+ - Signature: `.plainRun(value: (text: string) => TextRuns)`
4737
4749
  - Taken by: [inlineMarkdown](bloom-language-nodes.mdx#inlinemarkdown)
4738
4750
 
4739
4751
  ### `linkView`
4740
4752
 
4741
- A link of your own; `undefined` keeps Bloom's.
4753
+ A link of your own, as runs of the text; `undefined` keeps Bloom's.
4742
4754
 
4743
4755
  - Parameters: a value
4744
- - Signature: `.linkView(value: (link: InlineMarkdownLink) => Child | undefined)`
4756
+ - Signature: `.linkView(value: (link: InlineMarkdownLink) => TextRuns)`
4745
4757
  - Taken by: [inlineMarkdown](bloom-language-nodes.mdx#inlinemarkdown)
4746
4758
 
4747
4759
  ### `cell`