@motifx-community/ui 0.1.0-beta.18 → 0.1.0-beta.20

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 (228) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/dist/components/form/MxForm.d.ts +3 -0
  3. package/dist/components/form/form-props.d.ts +7 -0
  4. package/dist/components/formlayout/FormLayout.d.ts +21 -6
  5. package/dist/components/formlayout/form-item.d.ts +4 -3
  6. package/dist/components/formlayout/form-layout-props.d.ts +9 -5
  7. package/dist/components/formlayout/form-tab.d.ts +2 -1
  8. package/dist/components/layout/DockPanel.d.ts +16 -6
  9. package/dist/components/layout/Grid.d.ts +35 -25
  10. package/dist/components/layout/GroupBox.d.ts +14 -4
  11. package/dist/components/layout/Panel.d.ts +12 -2
  12. package/dist/components/layout/SplitContainer.d.ts +18 -6
  13. package/dist/components/layout/Stack.d.ts +29 -17
  14. package/dist/components/layout/dock-child-props.d.ts +7 -6
  15. package/dist/components/layout/dock-panel-props.d.ts +3 -2
  16. package/dist/components/layout/grid-cell.d.ts +7 -5
  17. package/dist/components/layout/grid-props.d.ts +17 -12
  18. package/dist/components/layout/group-box-props.d.ts +3 -2
  19. package/dist/components/layout/panel-props.d.ts +2 -1
  20. package/dist/components/layout/split-container-props.d.ts +9 -5
  21. package/dist/components/layout/stack-child-props.d.ts +3 -2
  22. package/dist/components/layout/stack-props.d.ts +8 -7
  23. package/dist/components/tabs/Tab.d.ts +6 -0
  24. package/dist/components/tabs/Tabs.d.ts +5 -0
  25. package/dist/components/tabs/tab-props.d.ts +7 -1
  26. package/dist/components/tabs/tabs-props.d.ts +6 -0
  27. package/dist/core/responsive.d.ts +52 -0
  28. package/dist/generated/tokens.d.ts +20 -0
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.js +487 -110
  31. package/dist/index.js.map +1 -1
  32. package/dist/styles.css +114 -5
  33. package/dist/tokens/index.d.ts +40 -0
  34. package/dist/tokens/index.js +20 -0
  35. package/dist/tokens/index.js.map +1 -1
  36. package/docs/accordion.md +1 -1
  37. package/docs/actionsheet.md +1 -1
  38. package/docs/appbar.md +1 -1
  39. package/docs/appmenu-api.md +1 -1
  40. package/docs/appmenu-programmatic.md +1 -1
  41. package/docs/appmenu-search.md +1 -1
  42. package/docs/appmenu.md +1 -1
  43. package/docs/avatar.md +1 -1
  44. package/docs/badge.md +1 -1
  45. package/docs/bar-gauge-angles.md +1 -1
  46. package/docs/bar-gauge-data.md +1 -1
  47. package/docs/bar-gauge-labels.md +1 -1
  48. package/docs/bar-gauge.md +1 -1
  49. package/docs/barcode.md +1 -1
  50. package/docs/bottomnavigation.md +1 -1
  51. package/docs/bottomsheet.md +1 -1
  52. package/docs/breadcrumb.md +1 -1
  53. package/docs/button.md +1 -1
  54. package/docs/buttongroup.md +1 -1
  55. package/docs/buttons.md +1 -1
  56. package/docs/calendar.md +1 -1
  57. package/docs/card.md +33 -2
  58. package/docs/chart-bars.md +1 -1
  59. package/docs/chart-candles.md +1 -1
  60. package/docs/chart-funnel.md +1 -1
  61. package/docs/chart-heatmap.md +1 -1
  62. package/docs/chart-lines.md +1 -1
  63. package/docs/chart-live.md +1 -1
  64. package/docs/chart-pie.md +1 -1
  65. package/docs/chart-radar.md +1 -1
  66. package/docs/chart-ranges.md +1 -1
  67. package/docs/chart-references.md +1 -1
  68. package/docs/chart-scatter.md +1 -1
  69. package/docs/chart-waterfall.md +1 -1
  70. package/docs/chart-zoom.md +1 -1
  71. package/docs/chart.md +1 -1
  72. package/docs/chat.md +1 -1
  73. package/docs/checkbox.md +1 -1
  74. package/docs/chip.md +1 -1
  75. package/docs/choice.md +1 -1
  76. package/docs/colorbox.md +1 -1
  77. package/docs/combobox.md +1 -1
  78. package/docs/commands.md +1 -1
  79. package/docs/control.md +1 -1
  80. package/docs/data.md +1 -1
  81. package/docs/datagrid-api.md +1 -1
  82. package/docs/datagrid-bands.md +1 -1
  83. package/docs/datagrid-drag-select.md +1 -1
  84. package/docs/datagrid-drag.md +1 -1
  85. package/docs/datagrid-editing.md +1 -1
  86. package/docs/datagrid-filtering.md +1 -1
  87. package/docs/datagrid-forms.md +1 -1
  88. package/docs/datagrid-grouping.md +1 -1
  89. package/docs/datagrid-layout.md +1 -1
  90. package/docs/datagrid-lookups.md +1 -1
  91. package/docs/datagrid-master-detail.md +1 -1
  92. package/docs/datagrid-scrolling.md +1 -1
  93. package/docs/datagrid-selection.md +1 -1
  94. package/docs/datagrid.md +1 -1
  95. package/docs/datebox.md +1 -1
  96. package/docs/daterangebox.md +1 -1
  97. package/docs/diagram-api.md +1 -1
  98. package/docs/diagram-commands.md +1 -1
  99. package/docs/diagram-connections.md +1 -1
  100. package/docs/diagram-custom-nodes.md +1 -1
  101. package/docs/diagram-designer.md +1 -1
  102. package/docs/diagram-editing.md +1 -1
  103. package/docs/diagram-flow.md +1 -1
  104. package/docs/diagram-keyboard.md +1 -1
  105. package/docs/diagram-layout.md +1 -1
  106. package/docs/diagram-nodes.md +1 -1
  107. package/docs/diagram-tables.md +1 -1
  108. package/docs/diagram.md +1 -1
  109. package/docs/display.md +1 -1
  110. package/docs/draggable.md +1 -1
  111. package/docs/drawer.md +1 -1
  112. package/docs/dropdown.md +1 -1
  113. package/docs/editors.md +1 -1
  114. package/docs/expressioneditor.md +1 -1
  115. package/docs/expressions.md +1 -1
  116. package/docs/feedback.md +1 -1
  117. package/docs/fileuploader.md +1 -1
  118. package/docs/filterbuilder.md +1 -1
  119. package/docs/formlayout-schema.md +1 -1
  120. package/docs/formlayout.md +52 -6
  121. package/docs/foundations.md +1 -1
  122. package/docs/gallery.md +1 -1
  123. package/docs/gauge-base.md +1 -1
  124. package/docs/gauge-circular.md +1 -1
  125. package/docs/gauge-dashboards.md +1 -1
  126. package/docs/gauge-linear.md +1 -1
  127. package/docs/gauge-markers.md +1 -1
  128. package/docs/gauge-marks.md +1 -1
  129. package/docs/gauge-ranges.md +1 -1
  130. package/docs/gauge-scales.md +1 -1
  131. package/docs/gauge.md +1 -1
  132. package/docs/home.md +1 -1
  133. package/docs/keyboard.md +1 -1
  134. package/docs/language.md +1 -1
  135. package/docs/layout.md +102 -29
  136. package/docs/listbox.md +1 -1
  137. package/docs/loadpanel.md +1 -1
  138. package/docs/lookup.md +1 -1
  139. package/docs/markdown.md +1 -1
  140. package/docs/menus-api.md +1 -1
  141. package/docs/menus-context.md +1 -1
  142. package/docs/menus-customization.md +1 -1
  143. package/docs/menus-merging.md +1 -1
  144. package/docs/menus-programmatic.md +1 -1
  145. package/docs/menus.md +1 -1
  146. package/docs/multiview.md +1 -1
  147. package/docs/navigation.md +1 -1
  148. package/docs/numberbox.md +1 -1
  149. package/docs/otpinput.md +1 -1
  150. package/docs/pagination.md +1 -1
  151. package/docs/pivotgrid-api.md +1 -1
  152. package/docs/pivotgrid-chart.md +1 -1
  153. package/docs/pivotgrid-drilldown.md +1 -1
  154. package/docs/pivotgrid-export.md +1 -1
  155. package/docs/pivotgrid-fields.md +1 -1
  156. package/docs/pivotgrid-keyboard.md +1 -1
  157. package/docs/pivotgrid-layout.md +1 -1
  158. package/docs/pivotgrid-panel.md +1 -1
  159. package/docs/pivotgrid-remote.md +1 -1
  160. package/docs/pivotgrid-sorting.md +1 -1
  161. package/docs/pivotgrid-state.md +1 -1
  162. package/docs/pivotgrid-summaries.md +1 -1
  163. package/docs/pivotgrid.md +1 -1
  164. package/docs/popover.md +1 -1
  165. package/docs/progress.md +1 -1
  166. package/docs/qrcode.md +1 -1
  167. package/docs/radiogroup.md +1 -1
  168. package/docs/rating.md +1 -1
  169. package/docs/resizable.md +1 -1
  170. package/docs/ribbonmenu-api.md +1 -1
  171. package/docs/ribbonmenu-commands.md +1 -1
  172. package/docs/ribbonmenu-customization.md +1 -1
  173. package/docs/ribbonmenu-display.md +1 -1
  174. package/docs/ribbonmenu-layouts.md +1 -1
  175. package/docs/ribbonmenu-programmatic.md +1 -1
  176. package/docs/ribbonmenu.md +1 -1
  177. package/docs/scheduler-agenda.md +1 -1
  178. package/docs/scheduler-big-data.md +1 -1
  179. package/docs/scheduler-editing.md +1 -1
  180. package/docs/scheduler-form.md +1 -1
  181. package/docs/scheduler-icalendar.md +1 -1
  182. package/docs/scheduler-mobile.md +1 -1
  183. package/docs/scheduler-recurrence.md +1 -1
  184. package/docs/scheduler-resources.md +1 -1
  185. package/docs/scheduler-timeline.md +1 -1
  186. package/docs/scheduler.md +1 -1
  187. package/docs/scrollview.md +1 -1
  188. package/docs/shortcuteditor.md +1 -1
  189. package/docs/showcase-flowstudio.md +1 -1
  190. package/docs/showcase-home.md +1 -1
  191. package/docs/showcase-mail.md +1 -1
  192. package/docs/showcase.md +1 -1
  193. package/docs/signature.md +1 -1
  194. package/docs/skeleton.md +1 -1
  195. package/docs/slider.md +1 -1
  196. package/docs/sortable.md +1 -1
  197. package/docs/sparkline.md +1 -1
  198. package/docs/speeddial.md +1 -1
  199. package/docs/splitter.md +1 -1
  200. package/docs/stepper.md +1 -1
  201. package/docs/switch.md +1 -1
  202. package/docs/tabdocs-dock.md +1 -1
  203. package/docs/tabdocs-drag.md +1 -1
  204. package/docs/tabdocs-menus.md +1 -1
  205. package/docs/tabdocs-mobile.md +1 -1
  206. package/docs/tabdocs-tabs.md +1 -1
  207. package/docs/tabdocs-windows.md +1 -1
  208. package/docs/tabdocs-workspace.md +1 -1
  209. package/docs/tabdocs.md +1 -1
  210. package/docs/tabs.md +58 -1
  211. package/docs/tagbox.md +1 -1
  212. package/docs/textarea.md +1 -1
  213. package/docs/textbox.md +1 -1
  214. package/docs/tileview.md +1 -1
  215. package/docs/timeline.md +1 -1
  216. package/docs/toast.md +1 -1
  217. package/docs/tokens.md +9 -1
  218. package/docs/toolbar-api.md +1 -1
  219. package/docs/toolbar-customization.md +1 -1
  220. package/docs/toolbar.md +1 -1
  221. package/docs/tooltip.md +1 -1
  222. package/docs/treeview.md +2 -2
  223. package/docs/validationsummary.md +1 -1
  224. package/docs/window.md +45 -1
  225. package/docs/wizard.md +1 -1
  226. package/llms-full.txt +485 -226
  227. package/llms.txt +1 -1
  228. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  # Diagram: Connections
2
2
 
3
- > Diagram · @motifx-community/ui 0.1.0-beta.18
3
+ > Diagram · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  Connections run from an output of a node to an input of another. The user draws them from the ports and moves their ends, and the diagram holds every connection to its rules.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Diagram: Custom nodes
2
2
 
3
- > Diagram · @motifx-community/ui 0.1.0-beta.18
3
+ > Diagram · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  A node of the app’s own is a node kind: the node names it in `kind`, and the diagram’s `kinds` says what the nodes of that kind hold, which ports they have, how they look and how large they are. These recipes build kinds step by step, from a card that shows data to nodes with controls, ports of their own and content made without JSX.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Diagram: Build your own flow designer
2
2
 
3
- > Diagram · @motifx-community/ui 0.1.0-beta.18
3
+ > Diagram · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  A small flow designer, from a kind of step to a run of the flow: its card, the form of its settings, the data it reads from the steps before it, the checks, the definition a server reads, and the run. The designer is on this page with its code, and each section below takes one piece of it.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Diagram: Moving and selecting
2
2
 
3
- > Diagram · @motifx-community/ui 0.1.0-beta.18
3
+ > Diagram · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  The user moves, selects and deletes nodes and connections with the pointer and the keys, and the diagram writes every change to the app’s objects.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Diagram: Flow nodes
2
2
 
3
- > Diagram · @motifx-community/ui 0.1.0-beta.18
3
+ > Diagram · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  The pieces of a flow designer: the card, a kind of node to start one’s own from, ports with labels, the status a run shows on each node, and the connections of a node and the nodes at their other ends, for an app that walks the flow.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Diagram: Keyboard and accessibility
2
2
 
3
- > Diagram · @motifx-community/ui 0.1.0-beta.18
3
+ > Diagram · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  Everything can be done with the keys, and a screen reader hears the diagram, its nodes and what the user does.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Diagram: Layout, map and export
2
2
 
3
- > Diagram · @motifx-community/ui 0.1.0-beta.18
3
+ > Diagram · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  Placing the nodes automatically, a map of the whole diagram, saving and loading, and images of the diagram.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Diagram: Nodes and styles
2
2
 
3
- > Diagram · @motifx-community/ui 0.1.0-beta.18
3
+ > Diagram · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  What a node holds and how it looks: kinds of node of the app’s own with any control of the kit inside, groups, lanes and notes, resizing, and the app’s own classes and styles on top of the design tokens.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Diagram: Tables and classes
2
2
 
3
- > Diagram · @motifx-community/ui 0.1.0-beta.18
3
+ > Diagram · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  Table (entity relationship) and class diagrams with the built-in `table` and `class` kinds, the marks their connections end with, and texts at the ends of a connection.
6
6
 
package/docs/diagram.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Diagram
2
2
 
3
- > Diagram · @motifx-community/ui 0.1.0-beta.18
3
+ > Diagram · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  Nodes and the connections between them on a surface that the user pans and zooms. The user draws connections between the ports of nodes and moves their ends. The diagram is only the surface: toolbars and menus belong to the app, which uses the diagram’s methods.
6
6
 
package/docs/display.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Display
2
2
 
3
- > Display · @motifx-community/ui 0.1.0-beta.18
3
+ > Display · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  Display components present content: people, counts and labels, cards, pictures, tiles, events in time, codes to scan, and placeholders while content loads.
6
6
 
package/docs/draggable.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Draggable and DropTarget
2
2
 
3
- > Navigation · @motifx-community/ui 0.1.0-beta.18
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  Makes any content movable with the pointer, touch or the arrow keys, optionally along one axis, inside a boundary, by a handle or as a copy. `DropTarget` defines areas that accept it. To reorder items in a list, see [Sortable](sortable.md).
6
6
 
package/docs/drawer.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Drawer
2
2
 
3
- > Navigation · @motifx-community/ui 0.1.0-beta.18
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  A panel that slides in from an edge of the page or a container, either over the content or pushing it aside. Users can swipe it in from the edge and back out, and Escape, the scrim and the browser's back action close it.
6
6
 
package/docs/dropdown.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # DropDown
2
2
 
3
- > Choice · @motifx-community/ui 0.1.0-beta.18
3
+ > Choice · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  Selects one item from a list. The field shows the selected item, and the list opens below it on click or from the keyboard. The list can be searched, grouped and customized, and it stays fast with thousands of items.
6
6
 
package/docs/editors.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Editors
2
2
 
3
- > Editors · @motifx-community/ui 0.1.0-beta.18
3
+ > Editors · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  Editors take values: text, numbers, dates and times, ranges, colors, ratings, codes, files and signatures. They share one field model, so a label, help text, validation and binding work the same in all of them.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # ExpressionEditor
2
2
 
3
- > Editors · @motifx-community/ui 0.1.0-beta.18
3
+ > Editors · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  A field for an expression of the data layer, or for a template with expressions in it. The text is colored as it is typed, its problems are underlined where they are, the words that may be written at the caret come in a list, and the call the caret is in shows its parameters. It has the label, help text and validation common to all fields.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Expression language
2
2
 
3
- > Data · @motifx-community/ui 0.1.0-beta.18
3
+ > Data · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  The data package carries a small expression language for the conditions, values and texts an application computes from data: the condition of a rule, the value a flow writes into a step, the body of a message. An expression changes nothing and reaches nothing by itself — it reads only the names it is given and their own fields, the moment and the time zone come from the evaluation, and limits stop runaway work — so the same expression with the same values always gives the same result, in the browser and on a server. It is checked against a schema as it is written, and it travels as text with a plain JSON tree.
6
6
 
package/docs/feedback.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Feedback
2
2
 
3
- > Feedback · @motifx-community/ui 0.1.0-beta.18
3
+ > Feedback · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  Feedback components tell the reader what is happening: how far a task has come, that something is loading, what a control does, and what has just happened.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # FileUploader
2
2
 
3
- > Editors · @motifx-community/ui 0.1.0-beta.18
3
+ > Editors · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  Lets users select files with a button or drop them on the box. Files are listed with their size and status, and can upload automatically, on a button click or programmatically, with progress, cancel, retry and remove for each file. Files that exceed the limits are listed with the reason.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # FilterBuilder
2
2
 
3
- > Data · @motifx-community/ui 0.1.0-beta.18
3
+ > Data · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  Lets users build a filter visually, using groups joined by And, Or, Not And or Not Or, and conditions made of a field, an operation and a value. Its value is a data layer filter expression, so it works directly with in-memory rows and every adapter. DataGrid opens it from the filter panel, and you can also use it on its own for reports or saved searches.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # FormLayout: From a schema
2
2
 
3
- > Navigation · @motifx-community/ui 0.1.0-beta.18
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  A form can be made from a schema of its data object: a field for each property, with the editor its type, values and format call for, its title as the label and its description as the help text. The same schema checks the value in the form, in the application and on a server, with the data layer's `jsonSchema`, a subset of JSON Schema.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # FormLayout
2
2
 
3
- > Navigation · @motifx-community/ui 0.1.0-beta.18
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  Arranges the fields of a data object on a grid. Each field gets an editor, chosen by name or by the type of its value, with two-way binding to the object. Groups, column spans and buttons organize the layout, and submitting the form validates every field first.
6
6
 
@@ -89,6 +89,51 @@ A group with a `field` edits the object in that field of the data: its items are
89
89
  { group: 'Address', field: 'address', columns: 2, items: [{ field: 'city', label: 'City' }, { field: 'zip', label: 'Zip' }] }
90
90
  ```
91
91
 
92
+ ## Responsive forms
93
+
94
+ `columns`, `minColumnWidth`, `labelMode`, an item's `colSpan` and a group's or a tab's `columns` also take values per breakpoint of the room the form is laid out in: `columns={{ xs: 1, md: 2, lg: 3 }}`, `labelMode={{ xs: 'top', lg: 'side' }}`. A value holds from its breakpoint up to the next one given. The breakpoints and how they are measured are those of the [layout containers](layout.md#responsive).
95
+
96
+ `minColumnWidth` lays out as many columns as fit, each at least that wide, without measuring anything: with `columns` given, never more than that many.
97
+
98
+ ```tsx
99
+ import { createSignal, reactive } from '@motifx/core';
100
+ import { FormLayout, Panel, Slider, Stack, type FormItem } from '@motifx-community/ui';
101
+
102
+ /**
103
+ * A form laid out by the room it is in: drag the width (wider than the page's column, it scrolls sideways). It goes from
104
+ * one column with the labels on top to three columns with the labels beside the boxes, and the note takes the whole
105
+ * row until there is room for it beside the others.
106
+ */
107
+ export default function ResponsiveForm() {
108
+ const s = reactive({ width: 900 });
109
+ const order = reactive({ customer: 'Ada Lovelace', email: '', phone: '', city: 'İstanbul', zip: '', note: '' });
110
+ const form = createSignal<FormLayout<typeof order> | null>(null);
111
+
112
+ const items: FormItem[] = [
113
+ { field: 'customer', label: 'Customer' },
114
+ { field: 'email', label: 'Email', editor: 'email' },
115
+ { field: 'phone', label: 'Phone' },
116
+ { field: 'city', label: 'City' },
117
+ { field: 'zip', label: 'Zip code' },
118
+ { field: 'note', label: 'Note', colSpan: { xs: 'all', lg: 1 } },
119
+ ];
120
+
121
+ return (
122
+ <>
123
+ <Stack orientation="horizontal" wrap align="center" gap="md">
124
+ <Slider label="Width" x-model={() => s.width} min={320} max={1200} step={10} style="inline-size: 16rem" />
125
+ <output class="form-breakpoint">{() => `${s.width} px, the form at ${form.value?.breakpoint ?? '…'}`}</output>
126
+ </Stack>
127
+ <Panel scrollable="horizontal" text="Responsive form" style="inline-size: 100%">
128
+ <Panel variant="outline" padding="sm" class="form-responsive" style={() => `inline-size: ${s.width}px`}>
129
+ <FormLayout data={order} items={items} columns={{ xs: 1, md: 2, lg: 3 }} labelMode={{ xs: 'top', lg: 'side' }} ref={(f: FormLayout<typeof order>) => (form.value = f)} />
130
+ </Panel>
131
+ </Panel>
132
+ </>
133
+ );
134
+ }
135
+ ```
136
+
92
137
  ## From a schema
93
138
 
94
139
  `schemaItems` makes the items from a schema of the data object, and the same schema checks the value: see [FormLayout: From a schema](formlayout-schema.md).
@@ -101,9 +146,9 @@ A group with a `field` edits the object in that field of the data: its items are
101
146
  | --- | --- | --- | --- |
102
147
  | `data` | `Bind<T \| null>` | — | The object the editors display and change. |
103
148
  | `items` | `Bind<readonly FormItem[]>` | `[]` | The form items. A function is tracked. |
104
- | `columns` | `Bind<number>` | `1` | The number of grid columns. |
105
- | `minColumnWidth` | `Bind<string>` | — | As many columns as fit, each at least this wide. |
106
- | `labelMode` | `Bind<FieldLabelMode>` | `'top'` | Passed to every editor. |
149
+ | `columns` | `Bind<Responsive<number>>` | `1` | The number of grid columns. See [Responsive forms](#responsive). |
150
+ | `minColumnWidth` | `Bind<Responsive<string>>` | — | As many columns as fit, each at least this wide, and no more than `columns` when it is given. |
151
+ | `labelMode` | `Bind<Responsive<FieldLabelMode>>` | `'top'` | Passed to every editor. |
107
152
  | `readOnly` | `Bind<boolean>` | `false` | Makes every editor read-only. |
108
153
  | `onValidSubmit(e) / onInvalidSubmit(e)` | | | Occurs when the form is submitted and valid (`{ data, event }`) or submitted and invalid (`{ valid, invalid }`). |
109
154
 
@@ -113,8 +158,8 @@ A group with a `field` edits the object in that field of the data: its items are
113
158
  | --- | --- |
114
159
  | `field, label, editor, editorProps` | The property, its label, its editor and the editor's props. |
115
160
  | `required, rules, helpText, enabled, readOnly, visible` | Passed to the editor, each as a value or a function. `visible` hides the item. |
116
- | `colSpan` | The number of columns it spans. Use `'all'` for the whole row. |
117
- | `group, items, columns` | A labeled group with its own columns. With a `field`, its items edit the object in that field. |
161
+ | `colSpan` | The number of columns it spans. Use `'all'` for the whole row. Also per breakpoint: `{ xs: 'all', md: 1 }`. |
162
+ | `group, items, columns` | A labeled group with its own columns, also per breakpoint. With a `field`, its items edit the object in that field. |
118
163
  | `button` | Button props. `submit: true` submits the form. |
119
164
  | `template` | Any component created for this item. |
120
165
 
@@ -127,6 +172,7 @@ A group with a `field` edits the object in that field of the data: its items are
127
172
  | `refresh()` | Your data object and items can be plain or reactive, and the form reads them as they are. After changing them in place, call `refresh()`. Every editor re-reads its value, items re-read their text and states, and added or removed items redraw the form. |
128
173
  | `refreshField(field)` | Re-reads one field of the data object after it has been changed in place. |
129
174
  | `validationGroup, isValid` | The validation group of the fields. |
175
+ | `breakpoint` | The breakpoint of the room the form is laid out in, by which its values per breakpoint are picked. |
130
176
  | `FormLayout.editors` | The editors registered by name. |
131
177
 
132
178
  ## Feedback
@@ -1,6 +1,6 @@
1
1
  # Foundations
2
2
 
3
- > Foundations · @motifx-community/ui 0.1.0-beta.18
3
+ > Foundations · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  The foundations are what every control of the kit shares: the Control base with its properties, keyboard and focus, and the language of the texts and formats.
6
6
 
package/docs/gallery.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Gallery
2
2
 
3
- > Display · @motifx-community/ui 0.1.0-beta.18
3
+ > Display · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  Displays a horizontal set of slides, one or several at a time. Users navigate with the side buttons, the indicator dots, swipe gestures or the arrow keys, and it can run as an automatic slideshow. A slide can be an image with a caption or any other content.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Gauge: Base value
2
2
 
3
- > Gauges · @motifx-community/ui 0.1.0-beta.18
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  The fill starts at the start of the scale, or at a base value inside it. A scale with values on both sides of a target then fills from the target, either way.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Gauge: Circular
2
2
 
3
- > Gauges · @motifx-community/ui 0.1.0-beta.18
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  A circular gauge shows its value on an arc or a whole circle, with the value written in the middle. It reads best for one value whose scale the reader knows, such as a speed or a share.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Gauge: Dashboards
2
2
 
3
- > Gauges · @motifx-community/ui 0.1.0-beta.18
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  Gauges of different kinds put together, all following the same values. Each gauge keeps its own scale, so readers compare values by their meaning, not by size alone.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Gauge: Linear
2
2
 
3
- > Gauges · @motifx-community/ui 0.1.0-beta.18
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  A linear gauge shows its value on a straight bar, across or upright. Bars fit in narrow places, line up in lists, and compare well side by side.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Gauge: Markers
2
2
 
3
- > Gauges · @motifx-community/ui 0.1.0-beta.18
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  A marker points at the value: a needle from the middle of an arc, a shape on or beside the track, or a callout that writes the value.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Gauge: Marks
2
2
 
3
- > Gauges · @motifx-community/ui 0.1.0-beta.18
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  Marks show other values on the scale besides the gauge's own, such as a target, a limit, or the lowest and highest expected.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Gauge: Ranges
2
2
 
3
- > Gauges · @motifx-community/ui 0.1.0-beta.18
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  Ranges give stretches of the scale a meaning, such as normal, high and critical. They show as a band beside the track, and the fill takes the color of the range its value is in.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Gauge: Scales
2
2
 
3
- > Gauges · @motifx-community/ui 0.1.0-beta.18
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  The scale tells the reader how to read the value: its ends, ticks with their values, or nothing at all.
6
6
 
package/docs/gauge.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Gauge
2
2
 
3
- > Gauges · @motifx-community/ui 0.1.0-beta.18
3
+ > Gauges · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  Shows a value against its scale, as an arc, a circle or a straight bar. Ranges give stretches of the scale a meaning, markers and marks point at values, and every part takes its look from the design language.
6
6
 
package/docs/home.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @motifx-community/ui
2
2
 
3
- > Get started · @motifx-community/ui 0.1.0-beta.18
3
+ > Get started · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  Components for MotifJS: objects you create when you need them, show anywhere and dispose when you are done, drawn from the MotifJS design system's tokens.
6
6
 
package/docs/keyboard.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Keyboard and focus
2
2
 
3
- > Foundations · @motifx-community/ui 0.1.0-beta.18
3
+ > Foundations · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  Every control follows the same rules for Tab order, the active control of a container, focus handling, `&File` access keys and application-wide shortcuts.
6
6
 
package/docs/language.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Language
2
2
 
3
- > Foundations · @motifx-community/ui 0.1.0-beta.18
3
+ > Foundations · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  `uiLocale` controls the strings that controls display, the locale used for dates and numbers, and the text direction. The kit has one `uiLocale`, and each language pack is loaded on demand.
6
6
 
package/docs/layout.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # Layout
2
2
 
3
- > Navigation · @motifx-community/ui 0.1.0-beta.18
3
+ > Navigation · @motifx-community/ui 0.1.0-beta.20
4
4
 
5
5
  Container controls for arranging other controls: `Stack` (a row or column), `Grid` (rows and columns), `Panel` (a plain box that can scroll), `GroupBox` (a titled frame), `DockPanel` (children docked to its edges) and `SplitContainer` (two panes with a splitter). All of them are controls, so they can disable and hide their content, and they lay out children added at any time.
6
6
 
7
7
  ## Import
8
8
 
9
9
  ```tsx
10
- import { Stack, Grid, Panel, GroupBox, DockPanel, SplitContainer, type LayoutSpace } from '@motifx-community/ui';
10
+ import { Stack, Grid, Panel, GroupBox, DockPanel, SplitContainer, type LayoutSpace, type Responsive } from '@motifx-community/ui';
11
11
  ```
12
12
 
13
13
  ## Declarative and programmatic
@@ -399,6 +399,78 @@ export default function NestedSplit() {
399
399
  }
400
400
  ```
401
401
 
402
+ ## Responsive layouts
403
+
404
+ Every layout prop of `Stack`, `Grid`, `DockPanel`, `Panel` and `GroupBox`, the `orientation`, `firstMinSize` and `secondMinSize` of `SplitContainer`, and the children's `grow`, cells, `dock` and anchors also take values per breakpoint: `columns={{ xs: 1, md: 2, xl: 4 }}`. A value holds from its breakpoint up to the next one given, and below the narrowest one given the default applies. A plain value works as before.
405
+
406
+ The breakpoint is that of the room the container is laid out in, its parent's content box, not the window: a layout in a narrow pane, a split or a window changes even on a wide screen, and a sidebar docked at the side of a wide page still counts as wide. The widths are the design system's `breakpoint` scale, through the `layout.breakpoint.sm`, `md`, `lg` and `xl` tokens, which a theme can change. Only a container given a value per breakpoint follows its width, with the size observer; its first frame already uses the window's width, and `breakpoint` tells the one it is at.
407
+
408
+ | Breakpoint | Width | Typically |
409
+ | --- | --- | --- |
410
+ | `xs` | Narrower than 560 px | A phone held upright. |
411
+ | `sm` | 560 px and wider | A large phone, a narrow pane. |
412
+ | `md` | 768 px and wider | A tablet held upright. |
413
+ | `lg` | 1024 px and wider | A tablet on its side, a small desktop. |
414
+ | `xl` | 1440 px and wider | A wide desktop. |
415
+
416
+ ```tsx
417
+ import { createSignal, reactive } from '@motifx/core';
418
+ import { Button, DockPanel, Grid, Panel, Slider, Stack } from '@motifx-community/ui';
419
+
420
+ /**
421
+ * A page laid out by its own width, not the window's: drag the width (wider than the page's column, it scrolls sideways).
422
+ * The folders move from the side to the top, the cards go from three columns to one, the first card spans the row in
423
+ * between, and the gaps narrow.
424
+ */
425
+ export default function ResponsiveLayout() {
426
+ const s = reactive({ width: 1000 });
427
+ const cards = createSignal<Grid | null>(null);
428
+
429
+ return (
430
+ <>
431
+ <Stack orientation="horizontal" wrap align="center" gap="md">
432
+ <Slider label="Width" x-model={() => s.width} min={320} max={1200} step={10} style="inline-size: 16rem" />
433
+ <output class="layout-breakpoint">{() => `${s.width} px, the cards at ${cards.value?.breakpoint ?? '…'}`}</output>
434
+ </Stack>
435
+ <Panel scrollable="horizontal" text="Responsive page" style="inline-size: 100%">
436
+ <Panel variant="outline" class="layout-responsive" style={() => `inline-size: ${s.width}px`}>
437
+ <DockPanel gap={{ xs: 'xs', md: 'sm' }} padding="sm">
438
+ <Stack dock={{ xs: 'top', md: 'start' }} orientation={{ xs: 'horizontal', md: 'vertical' }} wrap={{ xs: true, md: false }} gap="xs" role="group" aria-label="Folders">
439
+ <Button text="Inbox" size="sm" variant="outline" />
440
+ <Button text="Drafts" size="sm" variant="outline" />
441
+ <Button text="Sent" size="sm" variant="outline" />
442
+ <Button text="Archive" size="sm" variant="outline" />
443
+ </Stack>
444
+ <Grid columns={{ xs: 1, sm: 2, lg: 3 }} gap={{ xs: 'xs', md: 'sm' }} ref={(grid: Grid) => (cards.value = grid)}>
445
+ <Panel variant="card" padding="sm" columnSpan={{ xs: 1, sm: 2, lg: 1 }}>
446
+ <strong>Orders</strong>
447
+ <p>128 this week, 12 waiting to ship.</p>
448
+ </Panel>
449
+ <Panel variant="card" padding="sm">
450
+ <strong>Returns</strong>
451
+ <p>4 open, 2 of them waiting for the parcel.</p>
452
+ </Panel>
453
+ <Panel variant="card" padding="sm">
454
+ <strong>Reviews</strong>
455
+ <p>31 new, the average is 4.6 stars.</p>
456
+ </Panel>
457
+ <Panel variant="card" padding="sm">
458
+ <strong>Stock</strong>
459
+ <p>6 products are below their reorder level.</p>
460
+ </Panel>
461
+ <Panel variant="card" padding="sm">
462
+ <strong>Support</strong>
463
+ <p>9 tickets open, the oldest is 2 days old.</p>
464
+ </Panel>
465
+ </Grid>
466
+ </DockPanel>
467
+ </Panel>
468
+ </Panel>
469
+ </>
470
+ );
471
+ }
472
+ ```
473
+
402
474
  ## Keyboard
403
475
 
404
476
  | Key | Description |
@@ -479,27 +551,27 @@ Every container also has the properties shared by `Control`: `enabled` and `disa
479
551
 
480
552
  | Prop | Type | Default | Description |
481
553
  | --- | --- | --- | --- |
482
- | `orientation` | `Bind<'horizontal' \| 'vertical'>` | `'vertical'` | `horizontal` follows the reading direction. |
483
- | `gap` | `Bind<LayoutSpace>` | `layout.gap` | The space between children. |
484
- | `padding` | `Bind<LayoutSpace>` | — | The space inside the edges. |
485
- | `align` | `Bind<LayoutAlign>` | `'stretch'` | Alignment across the direction: `start`, `center`, `end`, `stretch` or `baseline`. |
486
- | `justify` | `Bind<StackJustify>` | `'start'` | Alignment along the direction: `start`, `center`, `end`, `space-between`, `space-around` or `space-evenly`. |
487
- | `wrap` | `Bind<boolean>` | `false` | Moves children that do not fit to a new line. |
488
- | `reverse` | `Bind<boolean>` | `false` | Lays out children from the opposite end. The Tab order stays in document order. |
554
+ | `orientation` | `Bind<Responsive<'horizontal' \| 'vertical'>>` | `'vertical'` | `horizontal` follows the reading direction. |
555
+ | `gap` | `Bind<Responsive<LayoutSpace>>` | `layout.gap` | The space between children. |
556
+ | `padding` | `Bind<Responsive<LayoutSpace>>` | — | The space inside the edges. |
557
+ | `align` | `Bind<Responsive<LayoutAlign>>` | `'stretch'` | Alignment across the direction: `start`, `center`, `end`, `stretch` or `baseline`. |
558
+ | `justify` | `Bind<Responsive<StackJustify>>` | `'start'` | Alignment along the direction: `start`, `center`, `end`, `space-between`, `space-around` or `space-evenly`. |
559
+ | `wrap` | `Bind<Responsive<boolean>>` | `false` | Moves children that do not fit to a new line. |
560
+ | `reverse` | `Bind<Responsive<boolean>>` | `false` | Lays out children from the opposite end. The Tab order stays in document order. |
489
561
  | `inline` | `Bind<boolean>` | `false` | Flows within a line of text, as wide as its children. |
490
562
 
491
563
  ### Grid props
492
564
 
493
565
  | Prop | Type | Default | Description |
494
566
  | --- | --- | --- | --- |
495
- | `columns, rows` | `Bind<GridTracks>` | One column | See Tracks. |
496
- | `gap` | `Bind<LayoutSpace>` | `layout.gap` | The gap between rows and columns. |
497
- | `rowGap, columnGap` | `Bind<LayoutSpace>` | `gap` | The gap in one direction only. |
498
- | `padding` | `Bind<LayoutSpace>` | — | The space inside the edges. |
499
- | `autoRows, autoColumns` | `Bind<number \| string>` | `'auto'` | The size of implicit tracks. A number is in pixels. |
500
- | `flow` | `Bind<GridFlow>` | `'row'` | How children without a position fill the grid: `row`, `column`, `row dense` or `column dense`. |
501
- | `align` | `Bind<LayoutAlign>` | `'stretch'` | The vertical alignment of children in their cells. |
502
- | `justify` | `Bind<GridJustify>` | `'stretch'` | The horizontal alignment of children in their cells. |
567
+ | `columns, rows` | `Bind<Responsive<GridTracks>>` | One column | See Tracks. |
568
+ | `gap` | `Bind<Responsive<LayoutSpace>>` | `layout.gap` | The gap between rows and columns. |
569
+ | `rowGap, columnGap` | `Bind<Responsive<LayoutSpace>>` | `gap` | The gap in one direction only. |
570
+ | `padding` | `Bind<Responsive<LayoutSpace>>` | — | The space inside the edges. |
571
+ | `autoRows, autoColumns` | `Bind<Responsive<number \| string>>` | `'auto'` | The size of implicit tracks. A number is in pixels. |
572
+ | `flow` | `Bind<Responsive<GridFlow>>` | `'row'` | How children without a position fill the grid: `row`, `column`, `row dense` or `column dense`. |
573
+ | `align` | `Bind<Responsive<LayoutAlign>>` | `'stretch'` | The vertical alignment of children in their cells. |
574
+ | `justify` | `Bind<Responsive<GridJustify>>` | `'stretch'` | The horizontal alignment of children in their cells. |
503
575
  | `inline` | `Bind<boolean>` | `false` | Flows within a line of text. |
504
576
 
505
577
  ### Panel props
@@ -507,7 +579,7 @@ Every container also has the properties shared by `Control`: `enabled` and `disa
507
579
  | Prop | Type | Default | Description |
508
580
  | --- | --- | --- | --- |
509
581
  | `scrollable` | `Bind<boolean \| 'vertical' \| 'horizontal' \| 'both'>` | `false` | Scrolls its content. It then becomes a Tab stop, so the keyboard can scroll it. |
510
- | `padding` | `Bind<LayoutSpace>` | — | The space inside the edges. |
582
+ | `padding` | `Bind<Responsive<LayoutSpace>>` | — | The space inside the edges. |
511
583
  | `variant` | `Bind<PanelVariant>` | `'plain'` | `plain`, `outline` (a border) or `card` (a card surface). |
512
584
  | `text` | `Bind<string>` | `''` | Names the panel, which makes it a region landmark with that name. |
513
585
 
@@ -518,25 +590,25 @@ Every container also has the properties shared by `Control`: `enabled` and `disa
518
590
  | `title` | `Bind<string>` | `''` | The legend. `&Address` makes Alt+A move focus to the first control inside. This is the same property as `text`. |
519
591
  | `collapsible` | `Bind<boolean>` | `false` | Makes the title a button that shows and hides the content. |
520
592
  | `collapsed` | `Bind<boolean>` | `false` | Hides the content (with `collapsible`). |
521
- | `padding` | `Bind<LayoutSpace>` | `layout.group-box.padding` | The space inside the frame. |
522
- | `gap` | `Bind<LayoutSpace>` | `layout.group-box.gap` | The space between children, which stack in a column. |
593
+ | `padding` | `Bind<Responsive<LayoutSpace>>` | `layout.group-box.padding` | The space inside the frame. |
594
+ | `gap` | `Bind<Responsive<LayoutSpace>>` | `layout.group-box.gap` | The space between children, which stack in a column. |
523
595
  | `variant` | `Bind<GroupBoxVariant>` | `'outline'` | `outline` (a frame with the title on its edge) or `plain` (the title above the content). |
524
596
 
525
597
  ### DockPanel props
526
598
 
527
599
  | Prop | Type | Default | Description |
528
600
  | --- | --- | --- | --- |
529
- | `gap` | `Bind<LayoutSpace>` | — | The space between a docked child and the remaining area. |
530
- | `padding` | `Bind<LayoutSpace>` | — | The space inside the edges. |
601
+ | `gap` | `Bind<Responsive<LayoutSpace>>` | — | The space between a docked child and the remaining area. |
602
+ | `padding` | `Bind<Responsive<LayoutSpace>>` | — | The space inside the edges. |
531
603
 
532
604
  ### SplitContainer props
533
605
 
534
606
  | Prop | Type | Default | Description |
535
607
  | --- | --- | --- | --- |
536
- | `orientation` | `Bind<'horizontal' \| 'vertical'>` | `'horizontal'` | `horizontal` places the panes side by side, as in Stack, and `vertical` stacks them. |
608
+ | `orientation` | `Bind<Responsive<'horizontal' \| 'vertical'>>` | `'horizontal'` | `horizontal` places the panes side by side, as in Stack, and `vertical` stacks them. |
537
609
  | `position` | `Bind<SplitPosition>` | `'50%'` | The size of the pane that keeps its size (the first pane with `fixedPanel="none"`), in pixels, as a share, or as a CSS length. `x-model` binds it. |
538
610
  | `fixedPanel` | `Bind<'none' \| 'first' \| 'second'>` | `'none'` | The pane that keeps its size when the container is resized. With `none`, both grow and the position is kept as a share. |
539
- | `firstMinSize, secondMinSize` | `Bind<number>` | `0` | The minimum size of each pane, in pixels. |
611
+ | `firstMinSize, secondMinSize` | `Bind<Responsive<number>>` | `0` | The minimum size of each pane, in pixels. When the room cannot hold both, the panes share it in their proportion. |
540
612
  | `collapsed` | `Bind<'none' \| 'first' \| 'second'>` | `'none'` | The collapsed pane. The other pane takes all the space. |
541
613
  | `resizable` | `Bind<boolean>` | `true` | Lets the pointer and keyboard move the splitter. |
542
614
  | `collapsible` | `Bind<boolean>` | `true` | Enter and a double-click collapse and restore the first pane. |
@@ -547,11 +619,11 @@ Every container also has the properties shared by `Control`: `enabled` and `disa
547
619
 
548
620
  | Prop | Used by | Type | Description |
549
621
  | --- | --- | --- | --- |
550
- | `grow` | Stack | `Bind<boolean \| number>` | Takes the free space along the direction. Numbers share it proportionally. |
551
- | `row, column` | Grid | `Bind<number \| string>` | The starting line, counted from 1. A string is passed to CSS as is (`-1`). |
552
- | `rowSpan, columnSpan` | Grid | `Bind<number>` | The number of tracks it spans. |
553
- | `dock` | DockPanel | `Bind<Dock>` | `top`, `bottom`, `start`, `end`, `fill` (the default) or `float`. |
554
- | `left, top, right, bottom` | DockPanel | `Bind<number \| string>` | The anchors of a `float` child. A number is in pixels, and `left` plus `right` stretches it. |
622
+ | `grow` | Stack | `Bind<Responsive<boolean \| number>>` | Takes the free space along the direction. Numbers share it proportionally. |
623
+ | `row, column` | Grid | `Bind<Responsive<number \| string>>` | The starting line, counted from 1. A string is passed to CSS as is (`-1`). |
624
+ | `rowSpan, columnSpan` | Grid | `Bind<Responsive<number>>` | The number of tracks it spans. |
625
+ | `dock` | DockPanel | `Bind<Responsive<Dock>>` | `top`, `bottom`, `start`, `end`, `fill` (the default) or `float`. |
626
+ | `left, top, right, bottom` | DockPanel | `Bind<Responsive<number \| string>>` | The anchors of a `float` child. A number is in pixels, and `left` plus `right` stretches it. |
555
627
 
556
628
  ### Properties
557
629
 
@@ -562,6 +634,7 @@ Every container also has the properties shared by `Control`: `enabled` and `disa
562
634
  | `SplitContainer.splitterPart` | read-only | The `role="separator"` part. |
563
635
  | `SplitContainer.value` | read/write | Maps to `position` for `x-model`. |
564
636
  | `GroupBox.legendPart` | read-only | The `<legend>` part. |
637
+ | `breakpoint` | read-only | The breakpoint of the room the container is laid out in (`xs`, `sm`, `md`, `lg` or `xl`), by which its values per breakpoint are picked. See [Responsive layouts](#responsive). |
565
638
 
566
639
  ### Methods
567
640