@wso2/oxygen-ui 0.23.0 → 0.24.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.
package/.ai/AGENTS.md CHANGED
@@ -24,6 +24,7 @@ function App() {
24
24
  4. **MUI X uses namespaces** - `DataGrid.DataGrid`, `DatePickers.DatePicker`, `TreeView.TreeView`
25
25
  5. **Use theme tokens** - Use `sx` prop with theme values, not hardcoded colors/spacing
26
26
  6. **Fixed labels on inputs** - Give every labelled `TextField` and `Select` `labelPlacement="top"`; never use MUI's floating label (`InputLabel` inside `FormControl`) in new code
27
+ - **`ComplexSelect` is the exception** - Pass `label` and keep the default `labelAnchor` (`inside`), which puts the label inside the field above the selected value. Do not set `labelAnchor="outside"` or `"border"` in new code
27
28
  7. **Select placeholders come from the developer** - Give every `Select` and `TextField select` a `placeholder`; ask the developer for the text instead of inventing it. Native selects (`native` or `SelectProps={{ native: true }}`) ignore `placeholder`, so put that same text in the empty option instead: `<option value="">Select a role</option>`
28
29
 
29
30
  ## Import Patterns
@@ -53,10 +54,9 @@ import { DataGrid, DatePickers, TreeView } from '@wso2/oxygen-ui';
53
54
 
54
55
  ## Available Themes
55
56
 
56
- - `OxygenTheme` - Default theme (recommended)
57
+ - `OxygenTheme` - Default theme (recommended): brand colours, Sora font and flat surfaces
57
58
  - `AcrylicOrangeTheme` - Orange accent variant
58
59
  - `AcrylicPurpleTheme` - Purple accent variant
59
- - `ChoreoLabsTheme` - Choreo Labs brand theme (Acrylic look with Choreo Labs colours and Sora font)
60
60
  - `ClassicTheme` - Traditional styling
61
61
  - `HighContrastTheme` - Accessibility-focused
62
62
  - `PaleBaseTheme` - Minimal color palette
package/.ai/components.md CHANGED
@@ -987,7 +987,7 @@ import { PageContent } from '@wso2/oxygen-ui';
987
987
 
988
988
  ## ComplexSelect
989
989
 
990
- Enhanced select component with search and multi-select capabilities.
990
+ Select with rich options: icons, avatars, two-line text, list headers and dividers. Built on the MUI `Select`, so it accepts the `Select` props. Use it for the organization and project switchers in `Header.Switchers`.
991
991
 
992
992
  ```tsx
993
993
  import { ComplexSelect } from '@wso2/oxygen-ui';
@@ -997,27 +997,34 @@ import { ComplexSelect } from '@wso2/oxygen-ui';
997
997
 
998
998
  | Prop | Type | Default | Description |
999
999
  |------|------|---------|-------------|
1000
- | `options` | `Option[]` | required | Select options |
1001
- | `value` | `string \| string[]` | - | Selected value(s) |
1002
- | `onChange` | `(value) => void` | - | Change handler |
1003
- | `multiple` | `boolean` | `false` | Enable multi-select |
1004
- | `searchable` | `boolean` | `false` | Enable search |
1000
+ | `label` | `ReactNode` | - | Field label. Names the combobox |
1001
+ | `labelAnchor` | `'inside' \| 'outside' \| 'border'` | `'inside'` | Where the label sits. Keep the default in new code; `outside` and `border` are for existing screens only |
1002
+ | `size` | `'small' \| 'medium'` | `'small'` | Field size. A theme can change it with `components.MuiComplexSelect.defaultProps.size` |
1003
+ | `value` | `unknown` | - | Selected value |
1004
+ | `onChange` | `(event) => void` | - | Change handler |
1005
+ | `children` | `ReactNode` | required | `ComplexSelect.MenuItem`, `ComplexSelect.ListHeader` and `ComplexSelect.Divider` |
1006
+
1007
+ Sub-components: `ComplexSelect.MenuItem`, `ComplexSelect.MenuItem.Icon`, `ComplexSelect.MenuItem.Avatar`, `ComplexSelect.MenuItem.Text` (`primary`, `secondary`), `ComplexSelect.ListHeader`, `ComplexSelect.Divider`.
1005
1008
 
1006
1009
  ### Usage
1007
1010
 
1008
1011
  ```tsx
1009
- <ComplexSelect
1010
- options={[
1011
- { value: 'us', label: 'United States' },
1012
- { value: 'uk', label: 'United Kingdom' },
1013
- { value: 'ca', label: 'Canada' },
1014
- ]}
1015
- value={country}
1016
- onChange={setCountry}
1017
- searchable
1018
- />
1012
+ <ComplexSelect label="Organization" value={org} onChange={(e) => setOrg(e.target.value as string)}>
1013
+ <ComplexSelect.ListHeader>Organizations</ComplexSelect.ListHeader>
1014
+ <ComplexSelect.MenuItem value="acme">
1015
+ <ComplexSelect.MenuItem.Avatar>A</ComplexSelect.MenuItem.Avatar>
1016
+ <ComplexSelect.MenuItem.Text primary="Acme Corp" secondary="Owner" />
1017
+ </ComplexSelect.MenuItem>
1018
+ </ComplexSelect>
1019
1019
  ```
1020
1020
 
1021
+ ### Label
1022
+
1023
+ - With the default `labelAnchor`, `inside`, the label sits inside the field above the selected value. The field keeps the option's icon or avatar and hides its secondary text. It is 48px tall, so it fits the 64px `Header`.
1024
+ - Pass `label` and do not set `labelAnchor`. Do not wrap it in `FormControl` or add an `InputLabel`, `FormLabel` or `labelPlacement`.
1025
+ - Without a visible label, name it with `slotProps={{ input: { 'aria-label': 'Organization' } }}`.
1026
+ - For a chain of levels in the Header, use `ContextSwitcher`, which draws each level as a `ComplexSelect` with the label inside.
1027
+
1021
1028
  ---
1022
1029
 
1023
1030
  ## NotificationBanner
package/.ai/patterns.md CHANGED
@@ -1144,7 +1144,6 @@ import {
1144
1144
  OxygenTheme,
1145
1145
  AcrylicOrangeTheme,
1146
1146
  AcrylicPurpleTheme,
1147
- ChoreoLabsTheme,
1148
1147
  ClassicTheme,
1149
1148
  HighContrastTheme,
1150
1149
  PaleBaseTheme,
@@ -1159,7 +1158,6 @@ const themes = [
1159
1158
  { key: 'default', label: 'Default', theme: OxygenTheme },
1160
1159
  { key: 'orange', label: 'Acrylic Orange', theme: AcrylicOrangeTheme },
1161
1160
  { key: 'purple', label: 'Acrylic Purple', theme: AcrylicPurpleTheme },
1162
- { key: 'choreoLabs', label: 'Choreo Labs', theme: ChoreoLabsTheme },
1163
1161
  { key: 'classic', label: 'Classic', theme: ClassicTheme },
1164
1162
  { key: 'highContrast', label: 'High Contrast', theme: HighContrastTheme },
1165
1163
  { key: 'paleBase', label: 'Pale Base', theme: PaleBaseTheme },
package/.ai/theming.md CHANGED
@@ -14,10 +14,9 @@
14
14
 
15
15
  | Theme | Import | Description |
16
16
  |-------|--------|-------------|
17
- | OxygenTheme | `OxygenTheme` | Default theme (Acrylic Base) |
17
+ | OxygenTheme | `OxygenTheme` | Default theme (brand colours, Sora font and flat surfaces) |
18
18
  | Acrylic Orange | `AcrylicOrangeTheme` | Glass-morphism effects, orange primary |
19
19
  | Acrylic Purple | `AcrylicPurpleTheme` | Glass-morphism with purple accents |
20
- | Choreo Labs | `ChoreoLabsTheme` | Choreo Labs brand theme (Acrylic look with Choreo Labs colours and Sora font) |
21
20
  | Classic | `ClassicTheme` | Standard flat design |
22
21
  | High Contrast | `HighContrastTheme` | Accessibility-focused with high contrast colors |
23
22
  | Pale Base | `PaleBaseTheme` | Minimal color palette for subtle interfaces |
@@ -29,7 +28,6 @@ import {
29
28
  OxygenTheme,
30
29
  AcrylicOrangeTheme,
31
30
  AcrylicPurpleTheme,
32
- ChoreoLabsTheme,
33
31
  ClassicTheme,
34
32
  HighContrastTheme,
35
33
  PaleBaseTheme,
@@ -67,7 +65,6 @@ import {
67
65
  OxygenTheme,
68
66
  AcrylicOrangeTheme,
69
67
  AcrylicPurpleTheme,
70
- ChoreoLabsTheme,
71
68
  ClassicTheme,
72
69
  HighContrastTheme,
73
70
  PaleBaseTheme,
@@ -80,7 +77,6 @@ import {
80
77
  { key: 'default', label: 'Default', theme: OxygenTheme },
81
78
  { key: 'orange', label: 'Acrylic Orange', theme: AcrylicOrangeTheme },
82
79
  { key: 'purple', label: 'Acrylic Purple', theme: AcrylicPurpleTheme },
83
- { key: 'choreoLabs', label: 'Choreo Labs', theme: ChoreoLabsTheme },
84
80
  { key: 'classic', label: 'Classic', theme: ClassicTheme },
85
81
  { key: 'highContrast', label: 'High Contrast', theme: HighContrastTheme },
86
82
  { key: 'paleBase', label: 'Pale Base', theme: PaleBaseTheme },
@@ -987,7 +987,7 @@ import { PageContent } from '@wso2/oxygen-ui';
987
987
 
988
988
  ## ComplexSelect
989
989
 
990
- Enhanced select component with search and multi-select capabilities.
990
+ Select with rich options: icons, avatars, two-line text, list headers and dividers. Built on the MUI `Select`, so it accepts the `Select` props. Use it for the organization and project switchers in `Header.Switchers`.
991
991
 
992
992
  ```tsx
993
993
  import { ComplexSelect } from '@wso2/oxygen-ui';
@@ -997,27 +997,34 @@ import { ComplexSelect } from '@wso2/oxygen-ui';
997
997
 
998
998
  | Prop | Type | Default | Description |
999
999
  |------|------|---------|-------------|
1000
- | `options` | `Option[]` | required | Select options |
1001
- | `value` | `string \| string[]` | - | Selected value(s) |
1002
- | `onChange` | `(value) => void` | - | Change handler |
1003
- | `multiple` | `boolean` | `false` | Enable multi-select |
1004
- | `searchable` | `boolean` | `false` | Enable search |
1000
+ | `label` | `ReactNode` | - | Field label. Names the combobox |
1001
+ | `labelAnchor` | `'inside' \| 'outside' \| 'border'` | `'inside'` | Where the label sits. Keep the default in new code; `outside` and `border` are for existing screens only |
1002
+ | `size` | `'small' \| 'medium'` | `'small'` | Field size. A theme can change it with `components.MuiComplexSelect.defaultProps.size` |
1003
+ | `value` | `unknown` | - | Selected value |
1004
+ | `onChange` | `(event) => void` | - | Change handler |
1005
+ | `children` | `ReactNode` | required | `ComplexSelect.MenuItem`, `ComplexSelect.ListHeader` and `ComplexSelect.Divider` |
1006
+
1007
+ Sub-components: `ComplexSelect.MenuItem`, `ComplexSelect.MenuItem.Icon`, `ComplexSelect.MenuItem.Avatar`, `ComplexSelect.MenuItem.Text` (`primary`, `secondary`), `ComplexSelect.ListHeader`, `ComplexSelect.Divider`.
1005
1008
 
1006
1009
  ### Usage
1007
1010
 
1008
1011
  ```tsx
1009
- <ComplexSelect
1010
- options={[
1011
- { value: 'us', label: 'United States' },
1012
- { value: 'uk', label: 'United Kingdom' },
1013
- { value: 'ca', label: 'Canada' },
1014
- ]}
1015
- value={country}
1016
- onChange={setCountry}
1017
- searchable
1018
- />
1012
+ <ComplexSelect label="Organization" value={org} onChange={(e) => setOrg(e.target.value as string)}>
1013
+ <ComplexSelect.ListHeader>Organizations</ComplexSelect.ListHeader>
1014
+ <ComplexSelect.MenuItem value="acme">
1015
+ <ComplexSelect.MenuItem.Avatar>A</ComplexSelect.MenuItem.Avatar>
1016
+ <ComplexSelect.MenuItem.Text primary="Acme Corp" secondary="Owner" />
1017
+ </ComplexSelect.MenuItem>
1018
+ </ComplexSelect>
1019
1019
  ```
1020
1020
 
1021
+ ### Label
1022
+
1023
+ - With the default `labelAnchor`, `inside`, the label sits inside the field above the selected value. The field keeps the option's icon or avatar and hides its secondary text. It is 48px tall, so it fits the 64px `Header`.
1024
+ - Pass `label` and do not set `labelAnchor`. Do not wrap it in `FormControl` or add an `InputLabel`, `FormLabel` or `labelPlacement`.
1025
+ - Without a visible label, name it with `slotProps={{ input: { 'aria-label': 'Organization' } }}`.
1026
+ - For a chain of levels in the Header, use `ContextSwitcher`, which draws each level as a `ComplexSelect` with the label inside.
1027
+
1021
1028
  ---
1022
1029
 
1023
1030
  ## NotificationBanner
@@ -1144,7 +1144,6 @@ import {
1144
1144
  OxygenTheme,
1145
1145
  AcrylicOrangeTheme,
1146
1146
  AcrylicPurpleTheme,
1147
- ChoreoLabsTheme,
1148
1147
  ClassicTheme,
1149
1148
  HighContrastTheme,
1150
1149
  PaleBaseTheme,
@@ -1159,7 +1158,6 @@ const themes = [
1159
1158
  { key: 'default', label: 'Default', theme: OxygenTheme },
1160
1159
  { key: 'orange', label: 'Acrylic Orange', theme: AcrylicOrangeTheme },
1161
1160
  { key: 'purple', label: 'Acrylic Purple', theme: AcrylicPurpleTheme },
1162
- { key: 'choreoLabs', label: 'Choreo Labs', theme: ChoreoLabsTheme },
1163
1161
  { key: 'classic', label: 'Classic', theme: ClassicTheme },
1164
1162
  { key: 'highContrast', label: 'High Contrast', theme: HighContrastTheme },
1165
1163
  { key: 'paleBase', label: 'Pale Base', theme: PaleBaseTheme },
@@ -311,8 +311,21 @@ export default App;
311
311
  </Header.Brand>
312
312
 
313
313
  <Header.Switchers>
314
- <OrganizationSwitcher />
315
- <ProjectSwitcher />
314
+ <ComplexSelect label="Organization" value={org} onChange={(e) => setOrg(e.target.value as string)}>
315
+ {organizations.map((o) => (
316
+ <ComplexSelect.MenuItem key={o.id} value={o.id}>
317
+ <ComplexSelect.MenuItem.Avatar>{o.initial}</ComplexSelect.MenuItem.Avatar>
318
+ <ComplexSelect.MenuItem.Text primary={o.name} secondary={o.role} />
319
+ </ComplexSelect.MenuItem>
320
+ ))}
321
+ </ComplexSelect>
322
+ <ComplexSelect label="Project" value={project} onChange={(e) => setProject(e.target.value as string)}>
323
+ {projects.map((p) => (
324
+ <ComplexSelect.MenuItem key={p.id} value={p.id}>
325
+ <ComplexSelect.MenuItem.Text primary={p.name} />
326
+ </ComplexSelect.MenuItem>
327
+ ))}
328
+ </ComplexSelect>
316
329
  </Header.Switchers>
317
330
 
318
331
  <Header.Spacer />
@@ -326,6 +339,8 @@ export default App;
326
339
  </Header>
327
340
  ```
328
341
 
342
+ Switchers use `ComplexSelect` with a `label` and the default `labelAnchor`, `inside`: the label sits inside the field above the selected value. Do not set `labelAnchor`; `outside` and `border` are for existing screens only, and they make the field too tall for the 64px Header. Keep the default `size` (`small`); the field is 48px tall. For a chain of levels (organization, project, component), use `ContextSwitcher` instead, which draws each level the same way. See the `oxygen-select` skill.
343
+
329
344
  ## Minimal Header (No Switchers)
330
345
 
331
346
  ```tsx
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: oxygen-select
3
- description: Use the Oxygen UI Select with a fixed label above the field instead of MUI's floating label, and a placeholder the developer provides. Use when adding or editing any Select, dropdown, or picker built on Select, or when converting FormControl + InputLabel + Select code to fixed labels.
3
+ description: Use the Oxygen UI Select with a fixed label above the field instead of MUI's floating label, and a placeholder the developer provides. Use ComplexSelect with its default inside label. Use when adding or editing any Select, ComplexSelect, dropdown, or picker built on Select, or when converting FormControl + InputLabel + Select code to fixed labels.
4
4
  ---
5
5
 
6
6
  # Fixed-Label Select
@@ -86,12 +86,43 @@ Suggestions follow these rules:
86
86
 
87
87
  ## How it behaves
88
88
 
89
- - The label renders as a `FormLabel` above the select and keeps its colour on focus and in the error state; the error shows on the field's border and in helper text. Focus shows only on the field: in the Choreo Labs theme, a text-colour border with a Cobalt ring, the same as fixed-label text fields.
89
+ - The label renders as a `FormLabel` above the select and keeps its colour on focus and in the error state; the error shows on the field's border and in helper text. Focus shows only on the field: in the default theme, a text-colour border with a Cobalt ring, the same as fixed-label text fields.
90
90
  - The label names the combobox through `labelId` (or `htmlFor` with `native`), so screen readers announce it. Do not add your own `aria-label` when a label is set.
91
91
  - `sx`, `className`, `style`, `fullWidth` and `ref` apply to the outer wrapper that holds the label and the select. `size`, `variant`, `required`, `error` and `disabled` apply to both.
92
92
  - `placeholder` shows text in the field while nothing is selected (an empty value: `''`, `null`, `undefined` or `[]`), in the secondary text colour so it meets contrast requirements. It works with a custom `renderValue`. Native selects ignore it, so give them an empty option with the developer's placeholder text instead: `<option value="">Select a role</option>`.
93
93
  - Without a `label`, the prop has no effect and the select renders as a plain MUI `Select`.
94
94
 
95
+ ## ComplexSelect: keep the label inside
96
+
97
+ `ComplexSelect` (rich options with icons, avatars and list headers, such as the organization and project switchers in `Header.Switchers`) follows a different rule from `Select`. Its label sits inside the field, above the selected value. This is the default `labelAnchor`, `inside`.
98
+
99
+ 1. Pass `label` and do not set `labelAnchor`. The default is `inside`.
100
+ 2. Do not use `labelAnchor="outside"` or `labelAnchor="border"` in new code. They are kept for existing screens only. When you edit a `ComplexSelect` that sets either, ask the developer before changing it, as the field's height changes.
101
+ 3. Do not add `labelPlacement`, `FormControl`, `InputLabel` or a `FormLabel` around it. `ComplexSelect` draws and links its own label.
102
+ 4. Do not add your own `aria-label` when a label is set. The label names the combobox.
103
+ 5. Leave `size` at its default, `small`. With the label inside, the field is 48px tall and fits the 64px `Header` with 8px above and below.
104
+ 6. For a chain of levels in the Header (organization, then project, then component), use `ContextSwitcher`, which draws each level as a `ComplexSelect` with the label inside.
105
+
106
+ ```tsx
107
+ import { ComplexSelect } from '@wso2/oxygen-ui';
108
+
109
+ <ComplexSelect label="Organization" value={org} onChange={(e) => setOrg(e.target.value as string)}>
110
+ <ComplexSelect.MenuItem value="acme">
111
+ <ComplexSelect.MenuItem.Avatar>A</ComplexSelect.MenuItem.Avatar>
112
+ <ComplexSelect.MenuItem.Text primary="Acme Corp" secondary="Owner" />
113
+ </ComplexSelect.MenuItem>
114
+ </ComplexSelect>
115
+ ```
116
+
117
+ The field shows the label, then the selected option with its icon or avatar. Secondary text appears only in the open list.
118
+
119
+ ```text
120
+ ✓ <ComplexSelect label="Organization" …> label inside, the default
121
+ ✗ <ComplexSelect label="Organization" labelAnchor="outside" …> existing screens only
122
+ ✗ <ComplexSelect label="Organization" labelAnchor="border" …> existing screens only
123
+ ✗ <ComplexSelect slotProps={{ input: { 'aria-label': 'Organization' } }} …> hidden name where a visible label fits
124
+ ```
125
+
95
126
  ## Selects with no visible label
96
127
 
97
128
  Some selects have no visible label, such as a sort or page-size picker in a toolbar. Omit `label`, give the select an accessible name, and still ask the developer for a placeholder if the select can be empty:
@@ -14,10 +14,9 @@
14
14
 
15
15
  | Theme | Import | Description |
16
16
  |-------|--------|-------------|
17
- | OxygenTheme | `OxygenTheme` | Default theme (Acrylic Base) |
17
+ | OxygenTheme | `OxygenTheme` | Default theme (brand colours, Sora font and flat surfaces) |
18
18
  | Acrylic Orange | `AcrylicOrangeTheme` | Glass-morphism effects, orange primary |
19
19
  | Acrylic Purple | `AcrylicPurpleTheme` | Glass-morphism with purple accents |
20
- | Choreo Labs | `ChoreoLabsTheme` | Choreo Labs brand theme (Acrylic look with Choreo Labs colours and Sora font) |
21
20
  | Classic | `ClassicTheme` | Standard flat design |
22
21
  | High Contrast | `HighContrastTheme` | Accessibility-focused with high contrast colors |
23
22
  | Pale Base | `PaleBaseTheme` | Minimal color palette for subtle interfaces |
@@ -29,7 +28,6 @@ import {
29
28
  OxygenTheme,
30
29
  AcrylicOrangeTheme,
31
30
  AcrylicPurpleTheme,
32
- ChoreoLabsTheme,
33
31
  ClassicTheme,
34
32
  HighContrastTheme,
35
33
  PaleBaseTheme,
@@ -67,7 +65,6 @@ import {
67
65
  OxygenTheme,
68
66
  AcrylicOrangeTheme,
69
67
  AcrylicPurpleTheme,
70
- ChoreoLabsTheme,
71
68
  ClassicTheme,
72
69
  HighContrastTheme,
73
70
  PaleBaseTheme,
@@ -80,7 +77,6 @@ import {
80
77
  { key: 'default', label: 'Default', theme: OxygenTheme },
81
78
  { key: 'orange', label: 'Acrylic Orange', theme: AcrylicOrangeTheme },
82
79
  { key: 'purple', label: 'Acrylic Purple', theme: AcrylicPurpleTheme },
83
- { key: 'choreoLabs', label: 'Choreo Labs', theme: ChoreoLabsTheme },
84
80
  { key: 'classic', label: 'Classic', theme: ClassicTheme },
85
81
  { key: 'highContrast', label: 'High Contrast', theme: HighContrastTheme },
86
82
  { key: 'paleBase', label: 'Pale Base', theme: PaleBaseTheme },
package/README.md CHANGED
@@ -12,7 +12,7 @@ yarn add @wso2/oxygen-ui @emotion/react @emotion/styled @mui/material
12
12
  pnpm add @wso2/oxygen-ui @emotion/react @emotion/styled @mui/material
13
13
  ```
14
14
 
15
- **Note:** The Inter Variable and Sora Variable (used by `ChoreoLabsTheme`) fonts are automatically bundled and loaded when you import from `@wso2/oxygen-ui`. No additional setup required!
15
+ **Note:** The Inter Variable and Sora Variable (used by the default theme) fonts are automatically bundled and loaded when you import from `@wso2/oxygen-ui`. No additional setup required!
16
16
 
17
17
  ### Peer Dependencies
18
18
 
@@ -7,14 +7,29 @@ export interface ComplexSelectProps extends Omit<SelectProps, 'children'> {
7
7
  children: ReactNode;
8
8
  /**
9
9
  * The anchor position of the label when provided.
10
- * - 'outside': Label appears above the select (default)
11
- * - 'inside': Label appears inside the select field above the selected value.
12
- * Icons are preserved but secondary text is automatically hidden for a cleaner display.
10
+ * - 'inside' (default): Label appears inside the select field above the selected value.
11
+ * Icons are preserved but secondary text is automatically hidden for a cleaner, more compact display.
12
+ * - 'outside': Label appears above the select
13
13
  * - 'border': Label appears on the border (MUI standard behavior)
14
+ * @default 'inside'
14
15
  */
15
16
  labelAnchor?: 'outside' | 'inside' | 'border';
17
+ /**
18
+ * The size of the field. Defaults to `small`, whatever the theme sets for `Select`, so
19
+ * switchers fit the Header. A theme can change it with
20
+ * `components.MuiComplexSelect.defaultProps.size`.
21
+ * @default 'small'
22
+ */
23
+ size?: SelectProps['size'];
16
24
  }
17
- export declare function ComplexSelect({ children, sx, label, labelId, labelAnchor, ...props }: ComplexSelectProps): import("react/jsx-runtime").JSX.Element;
25
+ /**
26
+ * Select with rich options: icons, avatars, two-line text, list headers and dividers.
27
+ *
28
+ * With a `label` and the default `labelAnchor` (`inside`), the label is drawn inside the field
29
+ * above the selected value and names the combobox through a visually hidden element. Without a
30
+ * label, pass a name through `slotProps.input['aria-label']`.
31
+ */
32
+ export declare function ComplexSelect(inProps: ComplexSelectProps): import("react/jsx-runtime").JSX.Element;
18
33
  interface ComplexSelectComponent {
19
34
  (props: ComplexSelectProps): ReactElement;
20
35
  ListHeader: typeof ComplexSelectListHeader;
@@ -21,12 +21,47 @@ import { FooterCopyright } from './FooterCopyright';
21
21
  import { FooterVersion } from './FooterVersion';
22
22
  import { FooterLink } from './FooterLink';
23
23
  import { FooterDivider } from './FooterDivider';
24
+ /**
25
+ * Theme tokens used in this component:
26
+ *
27
+ * Text Hierarchy:
28
+ * - `text.secondary` - Copyright text, link default color
29
+ * - `text.primary` - Link hover color
30
+ * - `text.disabled` - Version number (lowest emphasis)
31
+ *
32
+ * Background & Borders:
33
+ * - `background.paper` - Footer background
34
+ * - `divider` - Top border color
35
+ *
36
+ * Typography variants:
37
+ * - variant="caption" - Small footer text (12px default)
38
+ *
39
+ * Link component:
40
+ * - underline="hover" - Only show underline on hover
41
+ * - Custom fontSize: 12 for consistent sizing
42
+ *
43
+ * Responsive Layout:
44
+ * - flexDirection: { xs: 'column', sm: 'row' }
45
+ * - alignItems: { xs: 'flex-start', sm: 'center' }
46
+ */
47
+ /**
48
+ * `bar` is a full-width bar with a top border and a paper background, with the copyright on the left
49
+ * and the links on the right. `plain` has no background, and an inset divider set to the height of the
50
+ * sidebar's footer row so it lines up with the divider above `Sidebar.CollapseToggle`.
51
+ */
52
+ export type FooterVariant = 'bar' | 'plain';
24
53
  /**
25
54
  * Props for the Footer root component.
26
55
  */
27
56
  export interface FooterProps {
28
57
  /** Child elements (Copyright, Version, Link, Divider components) */
29
58
  children: React.ReactNode;
59
+ /**
60
+ * Look of the footer: `bar` (default), or `plain` (no bar, with an inset divider that lines up with the
61
+ * sidebar's collapse toggle divider).
62
+ * @default 'bar'
63
+ */
64
+ variant?: FooterVariant;
30
65
  /** Additional sx props */
31
66
  sx?: SxProps<Theme>;
32
67
  }
@@ -33,6 +33,13 @@ export interface LogViewerProps extends Omit<PaperProps, 'children' | 'onCopy' |
33
33
  * @default false
34
34
  */
35
35
  hideHeading?: boolean;
36
+ /**
37
+ * Keeps the funnel of a filter that sits in a column heading in view, at half strength until the
38
+ * heading is pointed at, instead of showing it only then. A filter with a value applied is always
39
+ * fully shown. It has no effect when `hideHeading` is set.
40
+ * @default false
41
+ */
42
+ alwaysShowFilterIcons?: boolean;
36
43
  /**
37
44
  * The parts of the viewer, top to bottom: usually a `LogViewer.Toolbar` and a `LogViewer.Stream`.
38
45
  * Leave it out for a viewer with just the stream.
@@ -35,6 +35,8 @@ export interface LogViewerContextValue {
35
35
  columns: LogColumn[];
36
36
  /** True when the heading row is visually hidden and its sort and filter controls are not offered. */
37
37
  hideHeading: boolean;
38
+ /** True when the funnels of the filters in the headings stay in view. */
39
+ alwaysShowFilterIcons: boolean;
38
40
  /** The filters the viewer shows. */
39
41
  filters: LogFilterDefinition[];
40
42
  /**
@@ -28,6 +28,11 @@ export interface PageContentProps extends Omit<BoxProps, 'maxWidth'> {
28
28
  * @default false
29
29
  */
30
30
  noPadding?: boolean;
31
+ /**
32
+ * Optional footer, e.g. a `Footer`. It is full width. When the content is short it sits at the bottom
33
+ * of the page content, and when the content is long it comes after the content and scrolls with it.
34
+ */
35
+ footer?: React.ReactNode;
31
36
  }
32
37
  /**
33
38
  * PageContent component - A container for page content with controllable max-width and centering
@@ -61,6 +66,14 @@ export interface PageContentProps extends Omit<BoxProps, 'maxWidth'> {
61
66
  *
62
67
  * @example
63
68
  * ```tsx
69
+ * // Footer at the bottom of the page
70
+ * <PageContent footer={<Footer>...</Footer>}>
71
+ * <YourContent />
72
+ * </PageContent>
73
+ * ```
74
+ *
75
+ * @example
76
+ * ```tsx
64
77
  * // Not centered
65
78
  * <PageContent centered={false}>
66
79
  * <YourContent />