aidos-ui 3.0.0 → 3.0.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.
Files changed (81) hide show
  1. package/README.md +2 -2
  2. package/dist/Badge.d.ts +1 -2
  3. package/dist/BaseLink.d.ts +1 -1
  4. package/dist/BaseList.d.ts +1 -1
  5. package/dist/BaseListAddOn.d.ts +1 -1
  6. package/dist/BaseListItem.d.ts +1 -2
  7. package/dist/BaseListItem.js +3 -1
  8. package/dist/BaseListItem.js.map +1 -1
  9. package/dist/BaseView.d.ts +1 -1
  10. package/dist/Box.d.ts +1 -2
  11. package/dist/Card.d.ts +1 -1
  12. package/dist/Checkbox.d.ts +1 -2
  13. package/dist/Circle.d.ts +1 -2
  14. package/dist/Column.d.ts +1 -1
  15. package/dist/DarkMode.d.ts +2 -2
  16. package/dist/DatePicker.d.ts +1 -2
  17. package/dist/DesignBook.d.ts +1 -2
  18. package/dist/Dialog.d.ts +2 -2
  19. package/dist/Dropdown.d.ts +1 -2
  20. package/dist/FlexLayout.d.ts +1 -1
  21. package/dist/Icon.d.ts +1 -1
  22. package/dist/List.d.ts +5 -2
  23. package/dist/List.js +22 -10
  24. package/dist/List.js.map +1 -1
  25. package/dist/ListButtonItem.d.ts +1 -2
  26. package/dist/ListButtonItem.js +4 -2
  27. package/dist/ListButtonItem.js.map +1 -1
  28. package/dist/ListDivider.d.ts +1 -2
  29. package/dist/ListHeaderItem.d.ts +2 -3
  30. package/dist/ListHeaderItem.js +4 -2
  31. package/dist/ListHeaderItem.js.map +1 -1
  32. package/dist/ListItem.d.ts +1 -2
  33. package/dist/ListItem.js +3 -1
  34. package/dist/ListItem.js.map +1 -1
  35. package/dist/ListLinkItem.d.ts +1 -2
  36. package/dist/ListLinkItem.js +4 -2
  37. package/dist/ListLinkItem.js.map +1 -1
  38. package/dist/ListSpacer.d.ts +1 -2
  39. package/dist/Popover.d.ts +2 -2
  40. package/dist/ProgressBar.d.ts +1 -2
  41. package/dist/ProgressCircle.d.ts +1 -2
  42. package/dist/Providers.d.ts +1 -1
  43. package/dist/RootView.d.ts +1 -1
  44. package/dist/Router.d.ts +1 -2
  45. package/dist/RouterState.d.ts +1 -1
  46. package/dist/Row.d.ts +1 -1
  47. package/dist/StackContext.d.ts +1 -1
  48. package/dist/StaticCheckbox.d.ts +1 -2
  49. package/dist/Sublist.d.ts +3 -3
  50. package/dist/Sublist.js +2 -2
  51. package/dist/Sublist.js.map +1 -1
  52. package/dist/SubmitIconInput.d.ts +1 -2
  53. package/dist/Tabs.d.ts +1 -1
  54. package/dist/Text.d.ts +8 -8
  55. package/dist/TextInputWithState.d.ts +1 -1
  56. package/dist/TextPairing.d.ts +1 -1
  57. package/dist/Tooltip.d.ts +1 -1
  58. package/dist/jss.d.ts +2 -2
  59. package/dist/stateMachineContextFactory.d.ts +1 -1
  60. package/package.json +10 -3
  61. package/scripts/embeddings.js +93 -0
  62. package/scripts/openai_embeddings.js +100 -0
  63. package/scripts/publish.js +1 -0
  64. package/scripts/test_embeddings.js +47 -0
  65. package/src/BaseListItem.tsx +3 -2
  66. package/src/List.tsx +33 -16
  67. package/src/ListButtonItem.tsx +3 -3
  68. package/src/ListHeaderItem.tsx +3 -3
  69. package/src/ListItem.tsx +4 -2
  70. package/src/ListLinkItem.tsx +3 -3
  71. package/src/Sublist.tsx +4 -4
  72. package/src/docs/mdx.tsx +99 -0
  73. package/src/docs/pages.ts +112 -0
  74. package/src/docs/searchIndex.ts +1 -0
  75. package/src/pages/Badge.mdx +1 -1
  76. package/src/pages/Button.mdx +4 -4
  77. package/src/pages/Link.mdx +3 -3
  78. package/src/pages/List.mdx +107 -21
  79. package/src/pages/ListHeader.mdx +12 -16
  80. package/src/pages/_app.tsx +117 -240
  81. package/src/pages/index.mdx +1 -1
@@ -3,7 +3,7 @@ import { Row } from "../Row";
3
3
 
4
4
  # Badge
5
5
 
6
- This component is used to bring attention to some other element (e.g. an unread notification, an update, an important element...).
6
+ This is a simple component that can be used to bring attention to a specific part of the user interface, for example an unread notification, an update, an important element...
7
7
 
8
8
  ---
9
9
 
@@ -3,13 +3,13 @@ import { Row } from "../Row";
3
3
 
4
4
  # Button
5
5
 
6
- This component can be used for the user to take actions with a single click.
6
+ The `Button` component can be used for the user to take actions with a single click, it supports a variety of styles each of them with different semantics.
7
7
 
8
8
  ---
9
9
 
10
- ## Basic variants
10
+ ## Button variants
11
11
 
12
- The basic `Button` comes in three main variants, and a disabled style that applies to all three.
12
+ The basic `Button` comes in three main variants, each of them with a specific intent in mind. It also support a "disabled" variant, for cases where the button is not actionable.
13
13
 
14
14
  - Positive: actions that are going to create something or strongly agree
15
15
  - Secondary: actions that are less central to the user experience
@@ -34,7 +34,7 @@ The basic `Button` comes in three main variants, and a disabled style that appli
34
34
 
35
35
  ---
36
36
 
37
- ## Bare variants
37
+ ## Bare button
38
38
 
39
39
  The bare `Button` variants fulfill the same function than the basic counterparts but have a lighter style that can be more easily integrated in complex components.
40
40
 
@@ -7,9 +7,9 @@ The `Link` component looks the same as the `Button` component and the only diffe
7
7
 
8
8
  ---
9
9
 
10
- ## Basic variants
10
+ ## Link variants
11
11
 
12
- The basic `Link` comes in three main variants, and a disabled style that applies to all three.
12
+ The basic `Link` comes in three main variants, each of them with a specific intent in mind. It also support a "disabled" variant, for cases where the button is not actionable.
13
13
 
14
14
  - Positive: actions that are going to create something or strongly agree
15
15
  - Secondary: actions that are less central to the user experience
@@ -34,7 +34,7 @@ The basic `Link` comes in three main variants, and a disabled style that applies
34
34
 
35
35
  ---
36
36
 
37
- ## Bare variants
37
+ ## Bare link
38
38
 
39
39
  The bare `Link` variants fulfill the same function than the basic counterparts but have a lighter style that can be more easily integrated in complex components.
40
40
 
@@ -11,6 +11,8 @@ The `List` component is used to represent data in a list, it has several compone
11
11
 
12
12
  ## Base list
13
13
 
14
+ The default list style has round borders and high contrast background. It can opt out of the roundedness (for example it is useful to go edge-to-edge on small displays) and it also support a bare style, with much more subtle styling.
15
+
14
16
  <List ariaLabel="example">
15
17
  <ListItem
16
18
  headline="Headline"
@@ -105,20 +107,114 @@ The `List` component is used to represent data in a list, it has several compone
105
107
  </List>
106
108
  ```
107
109
 
110
+ <List carded={false} ariaLabel="example">
111
+ <ListItem
112
+ headline="Headline"
113
+ body="Body"
114
+ addOn={<Icon color="primary" icon="fa-bell" size="medium" />}
115
+ addOnPosition="start"
116
+ />
117
+ <ListButtonItem
118
+ color="positive"
119
+ headline="Positive button"
120
+ addOn={<Icon color="highlight" icon="fa-plus" size="medium" />}
121
+ addOnPosition="start"
122
+ onClick={() => {}}
123
+ />
124
+ <ListButtonItem
125
+ color="secondary"
126
+ headline="Secondary button"
127
+ addOn={<Icon color="primary" icon="fa-bicycle" size="medium" />}
128
+ addOnPosition="start"
129
+ onClick={() => {}}
130
+ />
131
+ <ListButtonItem
132
+ color="negative"
133
+ headline="Negative button"
134
+ addOn={<Icon color="negative" icon="fa-ban" size="medium" />}
135
+ addOnPosition="start"
136
+ onClick={() => {}}
137
+ />
138
+ <ListLinkItem
139
+ href="/"
140
+ color="secondary"
141
+ headline="Selected link"
142
+ selected
143
+ addOn={<Icon color="primary" icon="fa-renren" size="medium" />}
144
+ addOnPosition="start"
145
+ />
146
+ <ListLinkItem
147
+ href="/"
148
+ color="secondary"
149
+ headline="Link"
150
+ addOn={<Icon color="primary" icon="fa-renren" size="medium" />}
151
+ addOnPosition="start"
152
+ withDivider={false}
153
+ />
154
+ </List>
155
+
156
+ ```js
157
+ <List carded={false} ariaLabel="example">
158
+ <ListItem
159
+ headline="Headline"
160
+ body="Body"
161
+ addOn={<Icon color="primary" icon="fa-bell" size="medium" />}
162
+ addOnPosition="start"
163
+ />
164
+ <ListButtonItem
165
+ color="positive"
166
+ headline="Positive button"
167
+ addOn={<Icon color="highlight" icon="fa-plus" size="medium" />}
168
+ addOnPosition="start"
169
+ onClick={() => {}}
170
+ />
171
+ <ListButtonItem
172
+ color="secondary"
173
+ headline="Secondary button"
174
+ addOn={<Icon color="primary" icon="fa-bicycle" size="medium" />}
175
+ addOnPosition="start"
176
+ onClick={() => {}}
177
+ />
178
+ <ListButtonItem
179
+ color="negative"
180
+ headline="Negative button"
181
+ addOn={<Icon color="negative" icon="fa-ban" size="medium" />}
182
+ addOnPosition="start"
183
+ onClick={() => {}}
184
+ />
185
+ <ListLinkItem
186
+ href="/"
187
+ color="secondary"
188
+ headline="Selected link"
189
+ selected
190
+ addOn={<Icon color="primary" icon="fa-renren" size="medium" />}
191
+ addOnPosition="start"
192
+ />
193
+ <ListLinkItem
194
+ href="/"
195
+ color="secondary"
196
+ headline="Link"
197
+ addOn={<Icon color="primary" icon="fa-renren" size="medium" />}
198
+ addOnPosition="start"
199
+ withDivider={false}
200
+ />
201
+ </List>
202
+ ```
203
+
108
204
  ---
109
205
 
110
206
  ## Bare list
111
207
 
208
+ The bare list, like other components that support the `bare` style, is much more subtle, has less contrast and no borders. For elements that are constantly on display but may not always be necessary (for example navigation elements) it could be preferred to make the user interface cleaner and lighter.
209
+
112
210
  <List bare ariaLabel="example">
113
211
  <ListItem
114
- bare
115
212
  headline="Headline"
116
213
  body="Body"
117
214
  addOn={<Icon color="primary" icon="fa-bell" size="medium" />}
118
215
  addOnPosition="start"
119
216
  />
120
217
  <ListButtonItem
121
- bare
122
218
  color="positive"
123
219
  headline="Positive button"
124
220
  addOn={<Icon color="highlight" icon="fa-plus" size="medium" />}
@@ -126,7 +222,6 @@ The `List` component is used to represent data in a list, it has several compone
126
222
  onClick={() => {}}
127
223
  />
128
224
  <ListButtonItem
129
- bare
130
225
  color="secondary"
131
226
  headline="Secondary button"
132
227
  addOn={<Icon color="primary" icon="fa-bicycle" size="medium" />}
@@ -134,7 +229,6 @@ The `List` component is used to represent data in a list, it has several compone
134
229
  onClick={() => {}}
135
230
  />
136
231
  <ListButtonItem
137
- bare
138
232
  color="negative"
139
233
  headline="Negative button"
140
234
  addOn={<Icon color="negative" icon="fa-ban" size="medium" />}
@@ -143,7 +237,6 @@ The `List` component is used to represent data in a list, it has several compone
143
237
  />
144
238
  <ListLinkItem
145
239
  href="/"
146
- bare
147
240
  color="secondary"
148
241
  headline="Selected link"
149
242
  selected
@@ -152,7 +245,6 @@ The `List` component is used to represent data in a list, it has several compone
152
245
  />
153
246
  <ListLinkItem
154
247
  href="/"
155
- bare
156
248
  headline="Link"
157
249
  addOn={<Icon color="primary" icon="fa-renren" size="medium" />}
158
250
  addOnPosition="start"
@@ -163,14 +255,12 @@ The `List` component is used to represent data in a list, it has several compone
163
255
  ```js
164
256
  <List bare ariaLabel="example">
165
257
  <ListItem
166
- bare
167
258
  headline="Headline"
168
259
  body="Body"
169
260
  addOn={<Icon color="primary" icon="fa-bell" size="medium" />}
170
261
  addOnPosition="start"
171
262
  />
172
263
  <ListButtonItem
173
- bare
174
264
  color="positive"
175
265
  headline="Positive button"
176
266
  addOn={<Icon color="highlight" icon="fa-plus" size="medium" />}
@@ -178,7 +268,6 @@ The `List` component is used to represent data in a list, it has several compone
178
268
  onClick={() => {}}
179
269
  />
180
270
  <ListButtonItem
181
- bare
182
271
  color="secondary"
183
272
  headline="Secondary button"
184
273
  addOn={<Icon color="primary" icon="fa-bicycle" size="medium" />}
@@ -186,7 +275,6 @@ The `List` component is used to represent data in a list, it has several compone
186
275
  onClick={() => {}}
187
276
  />
188
277
  <ListButtonItem
189
- bare
190
278
  color="negative"
191
279
  headline="Negative button"
192
280
  addOn={<Icon color="negative" icon="fa-ban" size="medium" />}
@@ -195,7 +283,6 @@ The `List` component is used to represent data in a list, it has several compone
195
283
  />
196
284
  <ListLinkItem
197
285
  href="/"
198
- bare
199
286
  color="secondary"
200
287
  headline="Selected link"
201
288
  selected
@@ -204,7 +291,6 @@ The `List` component is used to represent data in a list, it has several compone
204
291
  />
205
292
  <ListLinkItem
206
293
  href="/"
207
- bare
208
294
  headline="Link"
209
295
  addOn={<Icon color="primary" icon="fa-renren" size="medium" />}
210
296
  addOnPosition="start"
@@ -218,26 +304,26 @@ The `List` component is used to represent data in a list, it has several compone
218
304
  ## Sublist
219
305
 
220
306
  <List bare ariaLabel="example">
221
- <Sublist bare label="Sublist">
222
- <ListItem bare headline="Headline 1" body="Body 1" />
223
- <ListItem bare headline="Headline 2" body="Body 2" />
224
- <ListItem bare headline="Headline 3" body="Body 3" />
307
+ <Sublist label="Sublist">
308
+ <ListItem headline="Headline 1" body="Body 1" />
309
+ <ListItem headline="Headline 2" body="Body 2" />
310
+ <ListItem headline="Headline 3" body="Body 3" />
225
311
  </Sublist>
226
312
  </List>
227
313
 
228
314
  ```js
229
315
  <List bare ariaLabel="example">
230
- <Sublist bare label="Sublist">
231
- <ListItem bare headline="Headline 1" body="Body 1" />
232
- <ListItem bare headline="Headline 2" body="Body 2" />
233
- <ListItem bare headline="Headline 3" body="Body 3" />
316
+ <Sublist label="Sublist">
317
+ <ListItem headline="Headline 1" body="Body 1" />
318
+ <ListItem headline="Headline 2" body="Body 2" />
319
+ <ListItem headline="Headline 3" body="Body 3" />
234
320
  </Sublist>
235
321
  </List>
236
322
  ```
237
323
 
238
324
  ---
239
325
 
240
- ## navigation
326
+ ## Keyboard navigation
241
327
 
242
328
  Lists support keyboard navigation by default via the `useNavigation` hook. It can be disabled by passing the prop `navigation` and tries to emulate the [grid layout spec](https://www.w3.org/WAI/ARIA/apg/patterns/grid/examples/layout-grids/):
243
329
 
@@ -50,44 +50,40 @@ import { ListHeaderItem } from "../ListHeaderItem";
50
50
  ## Bare list headers
51
51
 
52
52
  <List bare ariaLabel="example">
53
- <ListHeaderItem bare headline="Header" />
54
- <ListItem bare headline="Headline 1" body="Body 1" />
53
+ <ListHeaderItem headline="Header" />
54
+ <ListItem headline="Headline 1" body="Body 1" />
55
55
  <ListHeaderItem
56
- bare
57
56
  headline="Header"
58
57
  addOn={<Icon icon="fa-chain-broken" size="medium" color="primary" />}
59
58
  />
60
- <ListItem bare headline="Headline 2" body="Body 2" />
61
- <ListHeaderItem bare highlight headline="Header" />
62
- <ListItem bare headline="Headline 3" body="Body 3" />
59
+ <ListItem headline="Headline 2" body="Body 2" />
60
+ <ListHeaderItem highlight headline="Header" />
61
+ <ListItem headline="Headline 3" body="Body 3" />
63
62
  <ListHeaderItem
64
- bare
65
63
  highlight
66
64
  headline="Header"
67
65
  addOn={<Icon icon="fa-chain-broken" size="medium" color="highlight" />}
68
66
  />
69
- <ListItem bare withDivider={false} headline="Headline 4" body="Body 3" />
67
+ <ListItem withDivider={false} headline="Headline 4" body="Body 3" />
70
68
  </List>
71
69
 
72
70
  ```js
73
71
  <List bare ariaLabel="example">
74
- <ListHeaderItem bare headline="Header" />
75
- <ListItem bare headline="Headline 1" body="Body 1" />
72
+ <ListHeaderItem headline="Header" />
73
+ <ListItem headline="Headline 1" body="Body 1" />
76
74
  <ListHeaderItem
77
- bare
78
75
  headline="Header"
79
76
  addOn={<Icon icon="fa-chain-broken" size="medium" color="primary" />}
80
77
  />
81
- <ListItem bare headline="Headline 2" body="Body 2" />
82
- <ListHeaderItem bare highlight headline="Header" />
83
- <ListItem bare headline="Headline 3" body="Body 3" />
78
+ <ListItem headline="Headline 2" body="Body 2" />
79
+ <ListHeaderItem highlight headline="Header" />
80
+ <ListItem headline="Headline 3" body="Body 3" />
84
81
  <ListHeaderItem
85
- bare
86
82
  highlight
87
83
  headline="Header"
88
84
  addOn={<Icon icon="fa-chain-broken" size="medium" color="light" />}
89
85
  />
90
- <ListItem bare withDivider={false} headline="Headline 4" body="Body 3" />
86
+ <ListItem withDivider={false} headline="Headline 4" body="Body 3" />
91
87
  </List>
92
88
  ```
93
89