@iress-oss/ids-mcp-server 5.15.0 → 5.20.2
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/generated/docs/components_components-alert-docs.md +496 -0
- package/generated/docs/components_components-autocomplete-docs.md +3429 -0
- package/generated/docs/{components-autocomplete-recipes-docs.md → components_components-autocomplete-recipes-docs.md} +39 -14
- package/generated/docs/{components-badge-docs.md → components_components-badge-docs.md} +222 -30
- package/generated/docs/components_components-button-docs.md +2078 -0
- package/generated/docs/components_components-button-recipes-docs.md +37 -0
- package/generated/docs/components_components-buttongroup-docs.md +1045 -0
- package/generated/docs/components_components-card-docs.md +2290 -0
- package/generated/docs/{components-card-recipes-docs.md → components_components-card-recipes-docs.md} +132 -15
- package/generated/docs/components_components-checkbox-docs.md +1040 -0
- package/generated/docs/{components-checkboxgroup-docs.md → components_components-checkboxgroup-docs.md} +1001 -82
- package/generated/docs/{components-checkboxgroup-recipes-docs.md → components_components-checkboxgroup-recipes-docs.md} +102 -12
- package/generated/docs/{components-col-docs.md → components_components-col-docs.md} +331 -58
- package/generated/docs/components_components-combobox-docs.md +3735 -0
- package/generated/docs/{components-container-docs.md → components_components-container-docs.md} +61 -24
- package/generated/docs/{components-divider-docs.md → components_components-divider-docs.md} +83 -24
- package/generated/docs/{components-expander-docs.md → components_components-expander-docs.md} +266 -33
- package/generated/docs/components_components-field-docs.md +1369 -0
- package/generated/docs/components_components-filter-docs.md +4080 -0
- package/generated/docs/{components-form-docs.md → components_components-form-docs.md} +1556 -360
- package/generated/docs/{components-form-recipes-docs.md → components_components-form-recipes-docs.md} +277 -60
- package/generated/docs/{components-hide-docs.md → components_components-hide-docs.md} +195 -124
- package/generated/docs/components_components-icon-docs.md +1337 -0
- package/generated/docs/{components-inline-docs.md → components_components-inline-docs.md} +462 -42
- package/generated/docs/components_components-input-docs.md +1468 -0
- package/generated/docs/components_components-input-recipes-docs.md +367 -0
- package/generated/docs/components_components-inputcurrency-docs.md +432 -0
- package/generated/docs/{components-inputcurrency-recipes-docs.md → components_components-inputcurrency-recipes-docs.md} +113 -17
- package/generated/docs/components_components-label-docs.md +323 -0
- package/generated/docs/components_components-menu-docs.md +2345 -0
- package/generated/docs/components_components-menu-menuitem-docs.md +633 -0
- package/generated/docs/{components-modal-docs.md → components_components-modal-docs.md} +1640 -231
- package/generated/docs/components_components-navbar-docs.md +1847 -0
- package/generated/docs/{components-navbar-recipes-docs.md → components_components-navbar-recipes-docs.md} +721 -40
- package/generated/docs/{components-panel-docs.md → components_components-panel-docs.md} +754 -57
- package/generated/docs/components_components-placeholder-docs.md +92 -0
- package/generated/docs/components_components-popover-docs.md +1643 -0
- package/generated/docs/components_components-popover-recipes-docs.md +491 -0
- package/generated/docs/components_components-progress-docs.md +115 -0
- package/generated/docs/{components-provider-docs.md → components_components-provider-docs.md} +42 -33
- package/generated/docs/components_components-radio-docs.md +491 -0
- package/generated/docs/{components-radiogroup-docs.md → components_components-radiogroup-docs.md} +927 -75
- package/generated/docs/components_components-readonly-docs.md +263 -0
- package/generated/docs/components_components-richselect-docs.md +6521 -0
- package/generated/docs/{components-row-docs.md → components_components-row-docs.md} +353 -43
- package/generated/docs/{components-select-docs.md → components_components-select-docs.md} +719 -61
- package/generated/docs/components_components-skeleton-docs.md +480 -0
- package/generated/docs/{components-skeleton-recipes-docs.md → components_components-skeleton-recipes-docs.md} +51 -11
- package/generated/docs/{components-skiplink-docs.md → components_components-skiplink-docs.md} +53 -14
- package/generated/docs/components_components-slideout-docs.md +2293 -0
- package/generated/docs/components_components-slider-docs.md +1276 -0
- package/generated/docs/components_components-spinner-docs.md +82 -0
- package/generated/docs/{components-stack-docs.md → components_components-stack-docs.md} +223 -40
- package/generated/docs/components_components-table-docs.md +3658 -0
- package/generated/docs/components_components-tabset-docs.md +772 -0
- package/generated/docs/components_components-tabset-tab-docs.md +262 -0
- package/generated/docs/components_components-tag-docs.md +257 -0
- package/generated/docs/{components-text-docs.md → components_components-text-docs.md} +491 -51
- package/generated/docs/{components-toaster-docs.md → components_components-toaster-docs.md} +187 -85
- package/generated/docs/components_components-toaster-toast-docs.md +634 -0
- package/generated/docs/components_components-toggle-docs.md +461 -0
- package/generated/docs/{components-tooltip-docs.md → components_components-tooltip-docs.md} +286 -41
- package/generated/docs/{components-validationmessage-docs.md → components_components-validationmessage-docs.md} +230 -61
- package/generated/docs/components_contact-us-docs.md +12 -0
- package/generated/docs/{foundations-accessibility-docs.md → components_foundations-accessibility-docs.md} +11 -21
- package/generated/docs/{foundations-colours-docs.md → components_foundations-colour-030-colours.md} +8 -15
- package/generated/docs/{foundations-consistency-docs.md → components_foundations-consistency-docs.md} +12 -20
- package/generated/docs/{foundations-content-docs.md → components_foundations-content-docs.md} +6 -11
- package/generated/docs/components_foundations-introduction-docs.md +15 -0
- package/generated/docs/{foundations-principles-docs.md → components_foundations-principles-docs.md} +14 -24
- package/generated/docs/components_foundations-typography-docs.md +608 -0
- package/generated/docs/{foundations-user-experience-docs.md → components_foundations-user-experience-docs.md} +16 -26
- package/generated/docs/{foundations-visual-design-docs.md → components_foundations-visual-design-docs.md} +10 -17
- package/generated/docs/{frequently-asked-questions-docs.md → components_frequently-asked-questions-docs.md} +14 -23
- package/generated/docs/components_get-started-develop-docs.md +84 -0
- package/generated/docs/components_get-started-using-storybook-docs.md +55 -0
- package/generated/docs/components_introduction-docs.md +15 -0
- package/generated/docs/{patterns-loading-docs.md → components_patterns-loading-docs.md} +798 -153
- package/generated/docs/components_resources-changelog-docs.md +4 -0
- package/generated/docs/{resources-code-katas-docs.md → components_resources-code-katas-docs.md} +5 -9
- package/generated/docs/{resources-migration-guides-from-v4-to-v5-docs.md → components_resources-migration-guides-from-v4-to-v5-docs.md} +54 -239
- package/generated/docs/components_sandbox-docs.md +4 -0
- package/generated/docs/{versions-docs.md → components_versions-docs.md} +5 -8
- package/generated/docs/guidelines.md +484 -200
- package/generated/docs/introduction-docs.md +19 -30
- package/package.json +41 -45
- package/generated/docs/components-alert-docs.md +0 -130
- package/generated/docs/components-autocomplete-docs.md +0 -754
- package/generated/docs/components-button-docs.md +0 -362
- package/generated/docs/components-button-recipes-docs.md +0 -76
- package/generated/docs/components-buttongroup-docs.md +0 -310
- package/generated/docs/components-card-docs.md +0 -494
- package/generated/docs/components-checkbox-docs.md +0 -193
- package/generated/docs/components-combobox-docs.md +0 -1016
- package/generated/docs/components-field-docs.md +0 -675
- package/generated/docs/components-filter-docs.md +0 -1109
- package/generated/docs/components-icon-docs.md +0 -553
- package/generated/docs/components-input-docs.md +0 -335
- package/generated/docs/components-input-recipes-docs.md +0 -140
- package/generated/docs/components-inputcurrency-docs.md +0 -157
- package/generated/docs/components-label-docs.md +0 -135
- package/generated/docs/components-menu-docs.md +0 -704
- package/generated/docs/components-menu-menuitem-docs.md +0 -193
- package/generated/docs/components-navbar-docs.md +0 -291
- package/generated/docs/components-placeholder-docs.md +0 -27
- package/generated/docs/components-popover-docs.md +0 -464
- package/generated/docs/components-popover-recipes-docs.md +0 -245
- package/generated/docs/components-progress-docs.md +0 -104
- package/generated/docs/components-radio-docs.md +0 -107
- package/generated/docs/components-readonly-docs.md +0 -89
- package/generated/docs/components-richselect-docs.md +0 -2433
- package/generated/docs/components-skeleton-docs.md +0 -214
- package/generated/docs/components-slideout-docs.md +0 -538
- package/generated/docs/components-slider-docs.md +0 -346
- package/generated/docs/components-spinner-docs.md +0 -59
- package/generated/docs/components-table-ag-grid-docs.md +0 -1074
- package/generated/docs/components-table-docs.md +0 -1305
- package/generated/docs/components-tabset-docs.md +0 -341
- package/generated/docs/components-tabset-tab-docs.md +0 -86
- package/generated/docs/components-tag-docs.md +0 -115
- package/generated/docs/components-toaster-toast-docs.md +0 -157
- package/generated/docs/components-toggle-docs.md +0 -158
- package/generated/docs/contact-us-docs.md +0 -27
- package/generated/docs/extensions-editor-docs.md +0 -288
- package/generated/docs/extensions-editor-recipes-docs.md +0 -39
- package/generated/docs/foundations-introduction-docs.md +0 -17
- package/generated/docs/foundations-typography-docs.md +0 -191
- package/generated/docs/get-started-develop-docs.md +0 -209
- package/generated/docs/get-started-using-storybook-docs.md +0 -68
- package/generated/docs/resources-changelog-docs.md +0 -6
- package/generated/docs/themes-available-themes-docs.md +0 -66
- package/generated/docs/themes-introduction-docs.md +0 -121
- package/generated/docs/themes-tokens-docs.md +0 -1200
- /package/{LICENSE.txt → LICENSE} +0 -0
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
[](#menu-item)Menu Item
|
|
2
|
-
=======================
|
|
3
|
-
|
|
4
|
-
Overview
|
|
5
|
-
--------
|
|
6
|
-
|
|
7
|
-
Menu items are headings, buttons and dividers used inside an \`IressMenu\`
|
|
8
|
-
|
|
9
|
-
Menu item
|
|
10
|
-
|
|
11
|
-
Hide code
|
|
12
|
-
|
|
13
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
14
|
-
|
|
15
|
-
<IressMenuItem\>
|
|
16
|
-
Menu item
|
|
17
|
-
</IressMenuItem\>
|
|
18
|
-
|
|
19
|
-
Copy
|
|
20
|
-
|
|
21
|
-
[](#examples)Examples
|
|
22
|
-
---------------------
|
|
23
|
-
|
|
24
|
-
### [](#selected)Selected
|
|
25
|
-
|
|
26
|
-
The `IressMenuItem` can be set to selected using the `selected` prop.
|
|
27
|
-
|
|
28
|
-
**Note:** If you are using `IressMenu` with a `role` of `listbox`, you should use the `defaultSelected` or `selected` prop on the `IressMenu` to set the selected state of its `<IressMenuItem />` children, as the `selected` prop will be ignored.
|
|
29
|
-
|
|
30
|
-
Menu item
|
|
31
|
-
|
|
32
|
-
Hide code
|
|
33
|
-
|
|
34
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
35
|
-
|
|
36
|
-
<IressMenuItem selected\>
|
|
37
|
-
Menu item
|
|
38
|
-
</IressMenuItem\>
|
|
39
|
-
|
|
40
|
-
Copy
|
|
41
|
-
|
|
42
|
-
### [](#value)Value
|
|
43
|
-
|
|
44
|
-
A menu item can have a unique value set to it, used to determine its selected state in a `IressMenu` component with a `role` of `listbox`. The value is not visible to end users.
|
|
45
|
-
|
|
46
|
-
Menu item with value
|
|
47
|
-
|
|
48
|
-
Hide code
|
|
49
|
-
|
|
50
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
51
|
-
|
|
52
|
-
<IressMenu role\="listbox"\>
|
|
53
|
-
<IressMenuItem value\={9}\>
|
|
54
|
-
Menu item with value </IressMenuItem\>
|
|
55
|
-
</IressMenu\>
|
|
56
|
-
|
|
57
|
-
Copy
|
|
58
|
-
|
|
59
|
-
### [](#cantoggle)`canToggle`
|
|
60
|
-
|
|
61
|
-
When `canToggle` is set to true, the menu item can be toggled between selected and unselected states. This only works in a `IressMenu` component with a `role` of `listbox`.
|
|
62
|
-
|
|
63
|
-
Menu item with value
|
|
64
|
-
|
|
65
|
-
Hide code
|
|
66
|
-
|
|
67
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
68
|
-
|
|
69
|
-
<IressMenu role\="listbox"\>
|
|
70
|
-
<IressMenuItem
|
|
71
|
-
canToggle
|
|
72
|
-
value\={9}
|
|
73
|
-
\>
|
|
74
|
-
Menu item with value </IressMenuItem\>
|
|
75
|
-
</IressMenu\>
|
|
76
|
-
|
|
77
|
-
Copy
|
|
78
|
-
|
|
79
|
-
### [](#prepend-and-append)Prepend and append
|
|
80
|
-
|
|
81
|
-
You can prepend and append content to a menu item using the `prepend` and `append` props.
|
|
82
|
-
|
|
83
|
-
Menu itemNew
|
|
84
|
-
|
|
85
|
-
Hide code
|
|
86
|
-
|
|
87
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
88
|
-
|
|
89
|
-
<IressMenuItem
|
|
90
|
-
append\={<IressBadge mode\="success"\>New</IressBadge\>}
|
|
91
|
-
prepend\={<IressIcon name\="home" />}
|
|
92
|
-
\>
|
|
93
|
-
Menu item
|
|
94
|
-
</IressMenuItem\>
|
|
95
|
-
|
|
96
|
-
Copy
|
|
97
|
-
|
|
98
|
-
### [](#multi-select-menus)Multi-select menus
|
|
99
|
-
|
|
100
|
-
Inside a `IressMenu` with a `role` of `listbox` and the `multiSelect` prop set to true, the menu item will display with a checkbox.
|
|
101
|
-
|
|
102
|
-
Menu item with valueMenu item with value
|
|
103
|
-
|
|
104
|
-
Hide code
|
|
105
|
-
|
|
106
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
107
|
-
|
|
108
|
-
<IressMenu
|
|
109
|
-
multiSelect
|
|
110
|
-
role\="listbox"
|
|
111
|
-
\>
|
|
112
|
-
<IressMenuItem value\={9}\>
|
|
113
|
-
Menu item with value </IressMenuItem\>
|
|
114
|
-
<IressMenuItem value\={9}\>
|
|
115
|
-
Menu item with value </IressMenuItem\>
|
|
116
|
-
</IressMenu\>
|
|
117
|
-
|
|
118
|
-
Copy
|
|
119
|
-
|
|
120
|
-
### [](#divider)Divider
|
|
121
|
-
|
|
122
|
-
When `divider` is set to true, the menu item will render with a bottom border.
|
|
123
|
-
|
|
124
|
-
Menu item with divider
|
|
125
|
-
|
|
126
|
-
Hide code
|
|
127
|
-
|
|
128
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
129
|
-
|
|
130
|
-
<IressMenuItem divider\>
|
|
131
|
-
Menu item with divider
|
|
132
|
-
</IressMenuItem\>
|
|
133
|
-
|
|
134
|
-
Copy
|
|
135
|
-
|
|
136
|
-
However, it is recommended to use the `IressMenuDivider` component instead.
|
|
137
|
-
|
|
138
|
-
* * *
|
|
139
|
-
|
|
140
|
-
Hide code
|
|
141
|
-
|
|
142
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
143
|
-
|
|
144
|
-
<IressMenuDivider />
|
|
145
|
-
|
|
146
|
-
Copy
|
|
147
|
-
|
|
148
|
-
### [](#heading)Heading
|
|
149
|
-
|
|
150
|
-
You can use the `IressMenuHeading` to render a heading within a menu. By default it renders as a `h2`, but you can change it by setting the `level` prop.
|
|
151
|
-
|
|
152
|
-
Menu heading
|
|
153
|
-
------------
|
|
154
|
-
|
|
155
|
-
Hide code
|
|
156
|
-
|
|
157
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
158
|
-
|
|
159
|
-
<IressMenuHeading\>
|
|
160
|
-
Menu heading
|
|
161
|
-
</IressMenuHeading\>
|
|
162
|
-
|
|
163
|
-
Copy
|
|
164
|
-
|
|
165
|
-
### [](#text)Text
|
|
166
|
-
|
|
167
|
-
You can use the `IressMenuText` to render text within a menu. This adds styling so the appropriate padding is applied.
|
|
168
|
-
|
|
169
|
-
Menu text
|
|
170
|
-
|
|
171
|
-
Hide code
|
|
172
|
-
|
|
173
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
174
|
-
|
|
175
|
-
<IressMenuText\>
|
|
176
|
-
Menu text
|
|
177
|
-
</IressMenuText\>
|
|
178
|
-
|
|
179
|
-
Copy
|
|
180
|
-
|
|
181
|
-
On this page
|
|
182
|
-
|
|
183
|
-
* [Overview](#overview)
|
|
184
|
-
* [Props](#props)
|
|
185
|
-
* [Examples](#examples)
|
|
186
|
-
* [Selected](#selected)
|
|
187
|
-
* [Value](#value)
|
|
188
|
-
* [canToggle](#cantoggle)
|
|
189
|
-
* [Prepend and append](#prepend-and-append)
|
|
190
|
-
* [Multi-select menus](#multi-select-menus)
|
|
191
|
-
* [Divider](#divider)
|
|
192
|
-
* [Heading](#heading)
|
|
193
|
-
* [Text](#text)
|
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
[](#navbar)Navbar
|
|
2
|
-
=================
|
|
3
|
-
|
|
4
|
-
Overview
|
|
5
|
-
--------
|
|
6
|
-
|
|
7
|
-
The `IressNavbar` component defines your application’s global header. It usually contains your company logo, global navigation links, and an application heading.
|
|
8
|
-
|
|
9
|
-
A very basic navbar
|
|
10
|
-
|
|
11
|
-
Hide code
|
|
12
|
-
|
|
13
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
14
|
-
|
|
15
|
-
<IressNavbar\>
|
|
16
|
-
<IressText\>
|
|
17
|
-
A very basic navbar </IressText\>
|
|
18
|
-
</IressNavbar\>
|
|
19
|
-
|
|
20
|
-
Copy
|
|
21
|
-
|
|
22
|
-
[](#examples)Examples
|
|
23
|
-
---------------------
|
|
24
|
-
|
|
25
|
-
The `IressNavbar` component is designed to be flexible. You can set up simple navbars by using the slots and props to generate and organise your content.
|
|
26
|
-
|
|
27
|
-
If you need a complex layout that isn't covered by the slots and props, you can create custom navbars by supplying your own structure.
|
|
28
|
-
|
|
29
|
-
### [](#logos)Logos
|
|
30
|
-
|
|
31
|
-
Navbars usually contain a company logo. You can add this directly to your `IressNavbar` as an `<img>` or `<svg>` element, or via the `logoSrc` prop. Simply set the value to the URL of the image you wish to use, and the `IressNavbar` component will render the image for you.
|
|
32
|
-
|
|
33
|
-
All images should have alt text to provide context for screen reader users. If using the `logoSrc` prop, you should also set the `logoAltText` prop to ensure that your logo is accurately described.
|
|
34
|
-
|
|
35
|
-

|
|
36
|
-
|
|
37
|
-
Hide code
|
|
38
|
-
|
|
39
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
40
|
-
|
|
41
|
-
<IressNavbar logo\={<img alt\="Home" src\="assets/ids-logo.png"/>} />
|
|
42
|
-
|
|
43
|
-
Copy
|
|
44
|
-
|
|
45
|
-
### [](#fixed-positioning)Fixed positioning
|
|
46
|
-
|
|
47
|
-
Navbars can be fixed to the top of your viewport to ensure that content is always available to users; simply set the `fixed` prop to true. If the prop isn't set (or if it's set to false), the navbar will scroll off-screen when the user scrolls.
|
|
48
|
-
|
|
49
|
-
If you use the fixed prop, you'll need to add padding to the top of your content container as the `IressNavbar` will be treated as having zero height when the DOM layout is calculated. If you don't add padding, content can be hidden behind the `IressNavbar` even when the user scrolls to the top of the page.
|
|
50
|
-
|
|
51
|
-
### [](#alignment)Alignment
|
|
52
|
-
|
|
53
|
-
The `IressNavbar` allows you to set up some simple layouts via the horizontal alignment prop. You can set this to `start`, `end` or `between`.
|
|
54
|
-
|
|
55
|
-
`start` aligns the `children` slot and the `nav` slot content to the start of the `IressNavbar` (to the left for left-to-right languages).
|
|
56
|
-
|
|
57
|
-
`end` aligns the `children` slot and the `nav` slot content to the end of the `IressNavbar` (to the right for left-to-right languages).
|
|
58
|
-
|
|
59
|
-
`between` splits the `children` and `nav` slots; the `children` slot content will be at the start of the `IressNavbar`, whereas the `nav` slot content will be at end of the `IressNavbar`. If no `children` slot content is provided, the `nav` slot content will still appear at the end of the `IressNavbar`.
|
|
60
|
-
|
|
61
|
-
Vertical alignment is always set to middle, to ensure that content aligns correctly.
|
|
62
|
-
|
|
63
|
-

|
|
64
|
-
|
|
65
|
-
Align start
|
|
66
|
-
|
|
67
|
-
Nav slot content
|
|
68
|
-
|
|
69
|
-

|
|
70
|
-
|
|
71
|
-
Align between
|
|
72
|
-
|
|
73
|
-
Nav slot content
|
|
74
|
-
|
|
75
|
-

|
|
76
|
-
|
|
77
|
-
Align end
|
|
78
|
-
|
|
79
|
-
Nav slot content
|
|
80
|
-
|
|
81
|
-
Hide code
|
|
82
|
-
|
|
83
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
84
|
-
|
|
85
|
-
{
|
|
86
|
-
render: () \=> <IressStack gutter\="lg"\>
|
|
87
|
-
<IressNavbar horizontalAlign\="start" logo\={<img src\="assets/ids-logo.png" alt\="IDS logo" />} nav\={<IressText\>Nav slot content</IressText\>}\>
|
|
88
|
-
<IressText\>Align start</IressText\>
|
|
89
|
-
</IressNavbar\>
|
|
90
|
-
<IressNavbar horizontalAlign\="between" logo\={<img src\="assets/ids-logo.png" alt\="IDS logo" />} nav\={<IressText\>Nav slot content</IressText\>}\>
|
|
91
|
-
<IressText\>Align between</IressText\>
|
|
92
|
-
</IressNavbar\>
|
|
93
|
-
<IressNavbar horizontalAlign\="end" logo\={<img src\="assets/ids-logo.png" alt\="IDS logo" />} nav\={<IressText\>Nav slot content</IressText\>}\>
|
|
94
|
-
<IressText\>Align end</IressText\>
|
|
95
|
-
</IressNavbar\>
|
|
96
|
-
</IressStack\>
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
Copy
|
|
100
|
-
|
|
101
|
-
### [](#logo-slot)Logo slot
|
|
102
|
-
|
|
103
|
-
The `logo` slot, as the name suggests, is designed for logos. Use this is you want to supply your own image element or SVG. Content in the Logo slot will always appear at the start of your Navbar (to the left for left-to-right languages).
|
|
104
|
-
|
|
105
|
-

|
|
106
|
-
|
|
107
|
-
Hide code
|
|
108
|
-
|
|
109
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
110
|
-
|
|
111
|
-
<IressNavbar logo\={<img alt\="Home" src\="assets/ids-logo.png"/>} />
|
|
112
|
-
|
|
113
|
-
Copy
|
|
114
|
-
|
|
115
|
-
### [](#children-and-nav-slots)Children and nav slots
|
|
116
|
-
|
|
117
|
-
The default `children` slot is used for generic content like headings. You'll also pass in `children` content if you create a custom navbar.
|
|
118
|
-
|
|
119
|
-

|
|
120
|
-
|
|
121
|
-
Children slot content
|
|
122
|
-
=====================
|
|
123
|
-
|
|
124
|
-
Nav slot content
|
|
125
|
-
|
|
126
|
-
Hide code
|
|
127
|
-
|
|
128
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
129
|
-
|
|
130
|
-
<IressNavbar
|
|
131
|
-
logo\={<img alt\="IDS logo" src\="assets/ids-logo.png"/>}
|
|
132
|
-
nav\={<IressText\>Nav slot content</IressText\>}
|
|
133
|
-
\>
|
|
134
|
-
<IressText\>
|
|
135
|
-
<h1\>
|
|
136
|
-
Children slot content </h1\>
|
|
137
|
-
</IressText\>
|
|
138
|
-
</IressNavbar\>
|
|
139
|
-
|
|
140
|
-
Copy
|
|
141
|
-
|
|
142
|
-
The `nav` slot is for navigation content like links, and is designed to be used with the Menu component. Content in the `nav` slot will be rendered inside a `nav` element. Nav elements should be labelled to help screen reader users understand which navigation content they're interacting with. We add a default label of "primary navigation" to the `nav` element inside the `nav` slot, but you can override that with the `navLabel` prop.
|
|
143
|
-
|
|
144
|
-

|
|
145
|
-
|
|
146
|
-
[Link 1](#)[Link 2](#)[Link 3](#)
|
|
147
|
-
|
|
148
|
-
Hide code
|
|
149
|
-
|
|
150
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
151
|
-
|
|
152
|
-
<IressNavbar
|
|
153
|
-
logo\={<img alt\="IDS logo" src\="assets/ids-logo.png"/>}
|
|
154
|
-
nav\={<IressMenu layout\="inline" role\="nav"\><IressMenuItem href\="#"\>Link 1</IressMenuItem\><IressMenuItem href\="#" selected\>Link 2</IressMenuItem\><IressMenuItem href\="#"\>Link 3</IressMenuItem\></IressMenu\>}
|
|
155
|
-
/>
|
|
156
|
-
|
|
157
|
-
Copy
|
|
158
|
-
|
|
159
|
-

|
|
160
|
-
|
|
161
|
-
Default slot content
|
|
162
|
-
====================
|
|
163
|
-
|
|
164
|
-
[Link 1](#)[Link 2](#)[Link 3](#)
|
|
165
|
-
|
|
166
|
-
Hide code
|
|
167
|
-
|
|
168
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
169
|
-
|
|
170
|
-
<IressNavbar
|
|
171
|
-
logo\={<img alt\="IDS logo" src\="assets/ids-logo.png"/>}
|
|
172
|
-
nav\={<IressMenu layout\="inline" role\="nav"\><IressMenuItem href\="#"\>Link 1</IressMenuItem\><IressMenuItem href\="#" selected\>Link 2</IressMenuItem\><IressMenuItem href\="#"\>Link 3</IressMenuItem\></IressMenu\>}
|
|
173
|
-
\>
|
|
174
|
-
<IressText\>
|
|
175
|
-
<h1\>
|
|
176
|
-
Default slot content </h1\>
|
|
177
|
-
</IressText\>
|
|
178
|
-
</IressNavbar\>
|
|
179
|
-
|
|
180
|
-
Copy
|
|
181
|
-
|
|
182
|
-
### [](#simple-responsive-navbars)Simple responsive Navbars
|
|
183
|
-
|
|
184
|
-
You can use the `breakpoint` prop to create simple responsive navbars. When set, content in the `nav` slot will be hidden below that breakpoint. Instead, the `IressNavbar` will render a toggle button that can be used to show / hide the Nav slot content.
|
|
185
|
-
|
|
186
|
-
If you need more control over your navbar's responsive behaviour, you can create a custom navbar.
|
|
187
|
-
|
|
188
|
-

|
|
189
|
-
|
|
190
|
-
[Link 1](#)[Link 2](#)[Link 3](#)[Link 4](#)[Link 5](#)
|
|
191
|
-
|
|
192
|
-
Hide code
|
|
193
|
-
|
|
194
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
195
|
-
|
|
196
|
-
<IressNavbar
|
|
197
|
-
breakpoint\="sm"
|
|
198
|
-
logo\={<img alt\="IDS logo" src\="assets/ids-logo.png"/>}
|
|
199
|
-
nav\={<IressMenu layout\="inline" role\="nav"\><IressMenuItem href\="#"\>Link 1</IressMenuItem\><IressMenuItem href\="#" selected\>Link 2</IressMenuItem\><IressMenuItem href\="#"\>Link 3</IressMenuItem\><IressMenuItem href\="#"\>Link 4</IressMenuItem\><IressMenuItem href\="#"\>Link 5</IressMenuItem\></IressMenu\>}
|
|
200
|
-
/>
|
|
201
|
-
|
|
202
|
-
Copy
|
|
203
|
-
|
|
204
|
-
### [](#navbar-with-icons)Navbar with icons
|
|
205
|
-
|
|
206
|
-
Using icons in `IressButton`s and `IressMenuItem`s can add visual interest to your navbar, as well as saving space. However, if the icon is the only content (ie there's no visible text description), the meaning of the icon may not be clear to users.
|
|
207
|
-
|
|
208
|
-
To help users, you can add an `IressTooltip` around the `IressMenuItem`. This will enable users to hover or focus on the element to find out what it does.
|
|
209
|
-
|
|
210
|
-
For more information about using tooltips, see the [Tooltip Documentation](?path=/docs/components-tooltip--docs).
|
|
211
|
-
|
|
212
|
-
Iress Design System
|
|
213
|
-
===================
|
|
214
|
-
|
|
215
|
-
[](#)
|
|
216
|
-
|
|
217
|
-
[](#)
|
|
218
|
-
|
|
219
|
-
[](#)
|
|
220
|
-
|
|
221
|
-
Hide code
|
|
222
|
-
|
|
223
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
224
|
-
|
|
225
|
-
<IressNavbar
|
|
226
|
-
horizontalAlign\="between"
|
|
227
|
-
nav\={<IressMenu layout\="inline" role\="nav"\><IressTooltip align\="bottom" tooltipText\="User details"\><IressMenuItem href\="#"\><IressIcon name\="user" size\="2x"/></IressMenuItem\></IressTooltip\><IressTooltip align\="bottom" tooltipText\="Add task"\><IressMenuItem href\="#" selected\><IressIcon name\="plus" size\="2x"/></IressMenuItem\></IressTooltip\><IressTooltip align\="bottom" tooltipText\="Settings"\><IressMenuItem href\="#"\><IressIcon name\="cog" size\="2x"/></IressMenuItem\></IressTooltip\></IressMenu\>}
|
|
228
|
-
\>
|
|
229
|
-
<IressText\>
|
|
230
|
-
<h1\>
|
|
231
|
-
Iress Design System </h1\>
|
|
232
|
-
</IressText\>
|
|
233
|
-
</IressNavbar\>
|
|
234
|
-
|
|
235
|
-
Copy
|
|
236
|
-
|
|
237
|
-
### [](#fixed-navbar-focus-handling)Fixed navbar focus handling
|
|
238
|
-
|
|
239
|
-
WCAG 2.2 includes a new AA criterion designed to prevent focusable content from being hidden by other on-screen content like fixed navbars ([More details](https://www.w3.org/WAI/WCAG22/Understanding/focus-not-obscured-minimum.html)).
|
|
240
|
-
|
|
241
|
-
When `handledFocus` is set and navbar is `fixed`, navbar ensures any elements that recieve focus are not hidden by the navbar. It does this by scrolling the window enough for the focussed element to be in the visible viewport.
|
|
242
|
-
|
|
243
|
-
#### [](#skip-links)Skip links
|
|
244
|
-
|
|
245
|
-
Navbars often contain the same content across multiple pages. To make life easier for keyboard and screen reader users, it's considered good practice to use an `IressSkipLink` component alongside your navbar.
|
|
246
|
-
|
|
247
|
-
Skip links allow keyboard users to skip the navbar entirely and access the main content on the page. This means they don't have to tab through every nav link or button every time they navigate to a new screen.
|
|
248
|
-
|
|
249
|
-
You can find out more about skiplinks in the [SkipLink Documentation](?path=/docs/components-skiplink--docs).
|
|
250
|
-
|
|
251
|
-
The `IressSkipLink` should appear before your navbar to ensure it's the first content that users interact with:
|
|
252
|
-
|
|
253
|
-
\[data-radix-scroll-area-viewport\] {
|
|
254
|
-
scrollbar-width: none;
|
|
255
|
-
-ms-overflow-style: none;
|
|
256
|
-
-webkit-overflow-scrolling: touch;
|
|
257
|
-
}
|
|
258
|
-
\[data-radix-scroll-area-viewport\]::-webkit-scrollbar {
|
|
259
|
-
display: none;
|
|
260
|
-
}
|
|
261
|
-
:where(\[data-radix-scroll-area-viewport\]) {
|
|
262
|
-
display: flex;
|
|
263
|
-
flex-direction: column;
|
|
264
|
-
align-items: stretch;
|
|
265
|
-
}
|
|
266
|
-
:where(\[data-radix-scroll-area-content\]) {
|
|
267
|
-
flex-grow: 1;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
<body\>
|
|
271
|
-
<IressSkipLink targetId\="main-content" />
|
|
272
|
-
<IressNavbar\>...</IressNavbar\>
|
|
273
|
-
<main id\="main-content" tabIndex\={\-1}\>
|
|
274
|
-
... </main\>
|
|
275
|
-
</body\>
|
|
276
|
-
|
|
277
|
-
Copy
|
|
278
|
-
|
|
279
|
-
On this page
|
|
280
|
-
|
|
281
|
-
* [Overview](#overview)
|
|
282
|
-
* [Props](#props)
|
|
283
|
-
* [Examples](#examples)
|
|
284
|
-
* [Logos](#logos)
|
|
285
|
-
* [Fixed positioning](#fixed-positioning)
|
|
286
|
-
* [Alignment](#alignment)
|
|
287
|
-
* [Logo slot](#logo-slot)
|
|
288
|
-
* [Children and nav slots](#children-and-nav-slots)
|
|
289
|
-
* [Simple responsive Navbars](#simple-responsive-navbars)
|
|
290
|
-
* [Navbar with icons](#navbar-with-icons)
|
|
291
|
-
* [Fixed navbar focus handling](#fixed-navbar-focus-handling)
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
[](#placeholder)Placeholder
|
|
2
|
-
===========================
|
|
3
|
-
|
|
4
|
-
Overview
|
|
5
|
-
--------
|
|
6
|
-
|
|
7
|
-
A placeholder is a UI element that allows you to reserve space for content that has not been created yet, usually used for prototyping.
|
|
8
|
-
|
|
9
|
-
Placeholder
|
|
10
|
-
|
|
11
|
-
Hide code
|
|
12
|
-
|
|
13
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
14
|
-
|
|
15
|
-
<IressPlaceholder
|
|
16
|
-
height\="300"
|
|
17
|
-
width\="300"
|
|
18
|
-
\>
|
|
19
|
-
Placeholder
|
|
20
|
-
</IressPlaceholder\>
|
|
21
|
-
|
|
22
|
-
Copy
|
|
23
|
-
|
|
24
|
-
On this page
|
|
25
|
-
|
|
26
|
-
* [Overview](#overview)
|
|
27
|
-
* [Props](#props)
|