@amboss/design-system 3.48.6-canary.0 → 3.48.7
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/build/cjs/components/ChatMessage/ChatMessage.d.ts +46 -0
- package/build/cjs/components/ChatMessage/ChatMessage.js +1 -0
- package/build/cjs/components/ChatMessage/index.d.ts +2 -0
- package/build/cjs/components/ChatMessage/index.js +1 -0
- package/build/cjs/components/ChatResponse/ChatResponse.d.ts +50 -0
- package/build/cjs/components/ChatResponse/ChatResponse.js +1 -0
- package/build/cjs/components/ChatResponse/constants.d.ts +7 -0
- package/build/cjs/components/ChatResponse/constants.js +1 -0
- package/build/cjs/components/ChatResponse/index.d.ts +2 -0
- package/build/cjs/components/ChatResponse/index.js +1 -0
- package/build/cjs/components/Patterns/EmptyState/EmptyState.d.ts +1 -1
- package/build/cjs/components/Patterns/EmptyState/EmptyState.js +1 -1
- package/build/cjs/components/Utilities/FloatingPosition/useFloatingPosition.d.ts +52 -0
- package/build/cjs/components/Utilities/FloatingPosition/useFloatingPosition.js +1 -0
- package/build/cjs/components/Utilities/FloatingPosition/utils.d.ts +26 -0
- package/build/cjs/components/Utilities/FloatingPosition/utils.js +1 -0
- package/build/cjs/index.d.ts +2 -1
- package/build/cjs/index.js +1 -1
- package/build/cjs/web-tokens/_sizes.json +51 -51
- package/build/cjs/web-tokens/assets/icons.json +1 -1
- package/build/esm/components/ChatMessage/ChatMessage.d.ts +46 -0
- package/build/esm/components/ChatMessage/ChatMessage.js +1 -0
- package/build/esm/components/ChatMessage/index.d.ts +2 -0
- package/build/esm/components/ChatMessage/index.js +1 -0
- package/build/esm/components/ChatResponse/ChatResponse.d.ts +50 -0
- package/build/esm/components/ChatResponse/ChatResponse.js +1 -0
- package/build/esm/components/ChatResponse/constants.d.ts +7 -0
- package/build/esm/components/ChatResponse/constants.js +1 -0
- package/build/esm/components/ChatResponse/index.d.ts +2 -0
- package/build/esm/components/ChatResponse/index.js +1 -0
- package/build/esm/components/Patterns/EmptyState/EmptyState.d.ts +1 -1
- package/build/esm/components/Patterns/EmptyState/EmptyState.js +1 -1
- package/build/esm/components/Utilities/FloatingPosition/useFloatingPosition.d.ts +52 -0
- package/build/esm/components/Utilities/FloatingPosition/useFloatingPosition.js +1 -0
- package/build/esm/components/Utilities/FloatingPosition/utils.d.ts +26 -0
- package/build/esm/components/Utilities/FloatingPosition/utils.js +1 -0
- package/build/esm/index.d.ts +2 -1
- package/build/esm/index.js +1 -1
- package/build/esm/web-tokens/_sizes.json +51 -51
- package/build/esm/web-tokens/assets/icons.json +1 -1
- package/package.json +2 -2
- package/build/cjs/components/Internal/LayoutManager/-constants.d.ts +0 -9
- package/build/cjs/components/Internal/LayoutManager/-constants.js +0 -1
- package/build/cjs/components/Internal/LayoutManager/-types.d.ts +0 -181
- package/build/cjs/components/Internal/LayoutManager/-types.js +0 -1
- package/build/cjs/components/Internal/LayoutManager/Layout.d.ts +0 -28
- package/build/cjs/components/Internal/LayoutManager/Layout.js +0 -1
- package/build/cjs/components/Internal/LayoutManager/LayoutProvider.d.ts +0 -9
- package/build/cjs/components/Internal/LayoutManager/LayoutProvider.js +0 -1
- package/build/cjs/components/Internal/LayoutManager/context.d.ts +0 -12
- package/build/cjs/components/Internal/LayoutManager/context.js +0 -1
- package/build/cjs/components/Internal/LayoutManager/index.d.ts +0 -7
- package/build/cjs/components/Internal/LayoutManager/index.js +0 -1
- package/build/cjs/components/Internal/LayoutManager/persistence.d.ts +0 -6
- package/build/cjs/components/Internal/LayoutManager/persistence.js +0 -1
- package/build/cjs/components/Internal/LayoutManager/reconcile.d.ts +0 -2
- package/build/cjs/components/Internal/LayoutManager/reconcile.js +0 -1
- package/build/cjs/components/Internal/LayoutManager/reducer.d.ts +0 -5
- package/build/cjs/components/Internal/LayoutManager/reducer.js +0 -1
- package/build/cjs/components/Internal/LayoutManager/store.d.ts +0 -10
- package/build/cjs/components/Internal/LayoutManager/store.js +0 -1
- package/build/cjs/components/Internal/LayoutManager/useHostNodes.d.ts +0 -9
- package/build/cjs/components/Internal/LayoutManager/useHostNodes.js +0 -1
- package/build/cjs/components/Internal/LayoutManager/useIsMobile.d.ts +0 -5
- package/build/cjs/components/Internal/LayoutManager/useIsMobile.js +0 -1
- package/build/cjs/components/Internal/LayoutManager/useLayout.d.ts +0 -7
- package/build/cjs/components/Internal/LayoutManager/useLayout.js +0 -1
- package/build/esm/components/Internal/LayoutManager/-constants.d.ts +0 -9
- package/build/esm/components/Internal/LayoutManager/-constants.js +0 -1
- package/build/esm/components/Internal/LayoutManager/-types.d.ts +0 -181
- package/build/esm/components/Internal/LayoutManager/-types.js +0 -1
- package/build/esm/components/Internal/LayoutManager/Layout.d.ts +0 -28
- package/build/esm/components/Internal/LayoutManager/Layout.js +0 -1
- package/build/esm/components/Internal/LayoutManager/LayoutProvider.d.ts +0 -9
- package/build/esm/components/Internal/LayoutManager/LayoutProvider.js +0 -1
- package/build/esm/components/Internal/LayoutManager/context.d.ts +0 -12
- package/build/esm/components/Internal/LayoutManager/context.js +0 -1
- package/build/esm/components/Internal/LayoutManager/index.d.ts +0 -7
- package/build/esm/components/Internal/LayoutManager/index.js +0 -1
- package/build/esm/components/Internal/LayoutManager/persistence.d.ts +0 -6
- package/build/esm/components/Internal/LayoutManager/persistence.js +0 -1
- package/build/esm/components/Internal/LayoutManager/reconcile.d.ts +0 -2
- package/build/esm/components/Internal/LayoutManager/reconcile.js +0 -1
- package/build/esm/components/Internal/LayoutManager/reducer.d.ts +0 -5
- package/build/esm/components/Internal/LayoutManager/reducer.js +0 -1
- package/build/esm/components/Internal/LayoutManager/store.d.ts +0 -10
- package/build/esm/components/Internal/LayoutManager/store.js +0 -1
- package/build/esm/components/Internal/LayoutManager/useHostNodes.d.ts +0 -9
- package/build/esm/components/Internal/LayoutManager/useHostNodes.js +0 -1
- package/build/esm/components/Internal/LayoutManager/useIsMobile.d.ts +0 -5
- package/build/esm/components/Internal/LayoutManager/useIsMobile.js +0 -1
- package/build/esm/components/Internal/LayoutManager/useLayout.d.ts +0 -7
- package/build/esm/components/Internal/LayoutManager/useLayout.js +0 -1
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"value": "1024px",
|
|
38
38
|
"original": 1024,
|
|
39
39
|
"variableName": "$size-dimension-content-max-width",
|
|
40
|
-
"isUsed":
|
|
40
|
+
"isUsed": false
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"category": "size",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"value": "16px",
|
|
48
48
|
"original": 16,
|
|
49
49
|
"variableName": "$size-dimension-divider-m",
|
|
50
|
-
"isUsed":
|
|
50
|
+
"isUsed": false
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"category": "size",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"value": "24px",
|
|
58
58
|
"original": 24,
|
|
59
59
|
"variableName": "$size-dimension-divider-l",
|
|
60
|
-
"isUsed":
|
|
60
|
+
"isUsed": false
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"category": "size",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"value": "32px",
|
|
68
68
|
"original": 32,
|
|
69
69
|
"variableName": "$size-dimension-divider-xl",
|
|
70
|
-
"isUsed":
|
|
70
|
+
"isUsed": false
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"category": "size",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"value": "16px",
|
|
78
78
|
"original": 16,
|
|
79
79
|
"variableName": "$size-dimension-checkbox-s",
|
|
80
|
-
"isUsed":
|
|
80
|
+
"isUsed": false
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"category": "size",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"value": "24px",
|
|
88
88
|
"original": 24,
|
|
89
89
|
"variableName": "$size-dimension-checkbox-m",
|
|
90
|
-
"isUsed":
|
|
90
|
+
"isUsed": false
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
"category": "size",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"value": "16px",
|
|
98
98
|
"original": 16,
|
|
99
99
|
"variableName": "$size-dimension-radio-s",
|
|
100
|
-
"isUsed":
|
|
100
|
+
"isUsed": false
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"category": "size",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"value": "24px",
|
|
108
108
|
"original": 24,
|
|
109
109
|
"variableName": "$size-dimension-radio-m",
|
|
110
|
-
"isUsed":
|
|
110
|
+
"isUsed": false
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
"category": "size",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"value": "6px",
|
|
118
118
|
"original": 6,
|
|
119
119
|
"variableName": "$size-dimension-radio-point-s",
|
|
120
|
-
"isUsed":
|
|
120
|
+
"isUsed": false
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
"category": "size",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"value": "10px",
|
|
128
128
|
"original": 10,
|
|
129
129
|
"variableName": "$size-dimension-radio-point-m",
|
|
130
|
-
"isUsed":
|
|
130
|
+
"isUsed": false
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
"category": "size",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"value": "16px",
|
|
138
138
|
"original": 16,
|
|
139
139
|
"variableName": "$size-dimension-toggle-height-s",
|
|
140
|
-
"isUsed":
|
|
140
|
+
"isUsed": false
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
"category": "size",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"value": "24px",
|
|
148
148
|
"original": 24,
|
|
149
149
|
"variableName": "$size-dimension-toggle-height-m",
|
|
150
|
-
"isUsed":
|
|
150
|
+
"isUsed": false
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
"category": "size",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"value": "28px",
|
|
158
158
|
"original": 28,
|
|
159
159
|
"variableName": "$size-dimension-toggle-width-s",
|
|
160
|
-
"isUsed":
|
|
160
|
+
"isUsed": false
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
"category": "size",
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
"value": "40px",
|
|
168
168
|
"original": 40,
|
|
169
169
|
"variableName": "$size-dimension-toggle-width-m",
|
|
170
|
-
"isUsed":
|
|
170
|
+
"isUsed": false
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
"category": "size",
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
"value": "36px",
|
|
178
178
|
"original": 36,
|
|
179
179
|
"variableName": "$size-dimension-textarea-min-height-m",
|
|
180
|
-
"isUsed":
|
|
180
|
+
"isUsed": false
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
183
|
"category": "size",
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
"value": "8px",
|
|
188
188
|
"original": 8,
|
|
189
189
|
"variableName": "$size-dimension-toggle-point-s",
|
|
190
|
-
"isUsed":
|
|
190
|
+
"isUsed": false
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
"category": "size",
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
"value": "16px",
|
|
198
198
|
"original": 16,
|
|
199
199
|
"variableName": "$size-dimension-toggle-point-m",
|
|
200
|
-
"isUsed":
|
|
200
|
+
"isUsed": false
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
"category": "size",
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
"value": "32px",
|
|
208
208
|
"original": 32,
|
|
209
209
|
"variableName": "$size-dimension-toggle-button-height-m",
|
|
210
|
-
"isUsed":
|
|
210
|
+
"isUsed": false
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
"category": "size",
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
"value": "120px",
|
|
218
218
|
"original": 120,
|
|
219
219
|
"variableName": "$size-dimension-dropdown-menu-width",
|
|
220
|
-
"isUsed":
|
|
220
|
+
"isUsed": false
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
223
|
"category": "size",
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
"value": "560px",
|
|
228
228
|
"original": 560,
|
|
229
229
|
"variableName": "$size-dimension-modal-width-m",
|
|
230
|
-
"isUsed":
|
|
230
|
+
"isUsed": false
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
233
|
"category": "size",
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
"value": "720px",
|
|
238
238
|
"original": 720,
|
|
239
239
|
"variableName": "$size-dimension-modal-width-l",
|
|
240
|
-
"isUsed":
|
|
240
|
+
"isUsed": false
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
"category": "size",
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
"value": "800px",
|
|
248
248
|
"original": 800,
|
|
249
249
|
"variableName": "$size-dimension-modal-max-height-l",
|
|
250
|
-
"isUsed":
|
|
250
|
+
"isUsed": false
|
|
251
251
|
},
|
|
252
252
|
{
|
|
253
253
|
"category": "size",
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
"value": "40px",
|
|
258
258
|
"original": 40,
|
|
259
259
|
"variableName": "$size-dimension-modal-margin-l",
|
|
260
|
-
"isUsed":
|
|
260
|
+
"isUsed": false
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
"category": "size",
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
"value": "1280px",
|
|
268
268
|
"original": 1280,
|
|
269
269
|
"variableName": "$size-dimension-modal-full-screen-content-width",
|
|
270
|
-
"isUsed":
|
|
270
|
+
"isUsed": false
|
|
271
271
|
},
|
|
272
272
|
{
|
|
273
273
|
"category": "size",
|
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
"value": "1px",
|
|
278
278
|
"original": 1,
|
|
279
279
|
"variableName": "$size-dimension-media-viewer-bar-separator-width",
|
|
280
|
-
"isUsed":
|
|
280
|
+
"isUsed": false
|
|
281
281
|
},
|
|
282
282
|
{
|
|
283
283
|
"category": "size",
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
"value": "12px",
|
|
288
288
|
"original": 12,
|
|
289
289
|
"variableName": "$size-dimension-legend-key-width",
|
|
290
|
-
"isUsed":
|
|
290
|
+
"isUsed": false
|
|
291
291
|
},
|
|
292
292
|
{
|
|
293
293
|
"category": "size",
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
"value": "0px",
|
|
298
298
|
"original": 0,
|
|
299
299
|
"variableName": "$size-letter-spacing-none",
|
|
300
|
-
"isUsed":
|
|
300
|
+
"isUsed": false
|
|
301
301
|
},
|
|
302
302
|
{
|
|
303
303
|
"category": "size",
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
"value": "0.5px",
|
|
308
308
|
"original": 0.5,
|
|
309
309
|
"variableName": "$size-letter-spacing-s",
|
|
310
|
-
"isUsed":
|
|
310
|
+
"isUsed": false
|
|
311
311
|
},
|
|
312
312
|
{
|
|
313
313
|
"category": "size",
|
|
@@ -317,7 +317,7 @@
|
|
|
317
317
|
"value": "1px",
|
|
318
318
|
"original": 1,
|
|
319
319
|
"variableName": "$size-letter-spacing-m",
|
|
320
|
-
"isUsed":
|
|
320
|
+
"isUsed": false
|
|
321
321
|
},
|
|
322
322
|
{
|
|
323
323
|
"category": "size",
|
|
@@ -327,7 +327,7 @@
|
|
|
327
327
|
"value": "12px",
|
|
328
328
|
"original": 12,
|
|
329
329
|
"variableName": "$size-font-xs",
|
|
330
|
-
"isUsed":
|
|
330
|
+
"isUsed": false
|
|
331
331
|
},
|
|
332
332
|
{
|
|
333
333
|
"category": "size",
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
"value": "14px",
|
|
338
338
|
"original": 14,
|
|
339
339
|
"variableName": "$size-font-s",
|
|
340
|
-
"isUsed":
|
|
340
|
+
"isUsed": false
|
|
341
341
|
},
|
|
342
342
|
{
|
|
343
343
|
"category": "size",
|
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
"value": "16px",
|
|
348
348
|
"original": 16,
|
|
349
349
|
"variableName": "$size-font-m",
|
|
350
|
-
"isUsed":
|
|
350
|
+
"isUsed": false
|
|
351
351
|
},
|
|
352
352
|
{
|
|
353
353
|
"category": "size",
|
|
@@ -357,7 +357,7 @@
|
|
|
357
357
|
"value": "18px",
|
|
358
358
|
"original": 18,
|
|
359
359
|
"variableName": "$size-font-l",
|
|
360
|
-
"isUsed":
|
|
360
|
+
"isUsed": false
|
|
361
361
|
},
|
|
362
362
|
{
|
|
363
363
|
"category": "size",
|
|
@@ -367,7 +367,7 @@
|
|
|
367
367
|
"value": "20px",
|
|
368
368
|
"original": 20,
|
|
369
369
|
"variableName": "$size-font-xl",
|
|
370
|
-
"isUsed":
|
|
370
|
+
"isUsed": false
|
|
371
371
|
},
|
|
372
372
|
{
|
|
373
373
|
"category": "size",
|
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
"value": "24px",
|
|
378
378
|
"original": 24,
|
|
379
379
|
"variableName": "$size-font-xxl",
|
|
380
|
-
"isUsed":
|
|
380
|
+
"isUsed": false
|
|
381
381
|
},
|
|
382
382
|
{
|
|
383
383
|
"category": "size",
|
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
"value": "26px",
|
|
388
388
|
"original": 26,
|
|
389
389
|
"variableName": "$size-font-xxxl",
|
|
390
|
-
"isUsed":
|
|
390
|
+
"isUsed": false
|
|
391
391
|
},
|
|
392
392
|
{
|
|
393
393
|
"category": "size",
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
"value": "2px",
|
|
408
408
|
"original": 2,
|
|
409
409
|
"variableName": "$size-spacing-xxxs",
|
|
410
|
-
"isUsed":
|
|
410
|
+
"isUsed": false
|
|
411
411
|
},
|
|
412
412
|
{
|
|
413
413
|
"category": "size",
|
|
@@ -487,7 +487,7 @@
|
|
|
487
487
|
"value": "0px",
|
|
488
488
|
"original": 0,
|
|
489
489
|
"variableName": "$size-border-radius-none",
|
|
490
|
-
"isUsed":
|
|
490
|
+
"isUsed": false
|
|
491
491
|
},
|
|
492
492
|
{
|
|
493
493
|
"category": "size",
|
|
@@ -497,7 +497,7 @@
|
|
|
497
497
|
"value": "4px",
|
|
498
498
|
"original": 4,
|
|
499
499
|
"variableName": "$size-border-radius-xs",
|
|
500
|
-
"isUsed":
|
|
500
|
+
"isUsed": false
|
|
501
501
|
},
|
|
502
502
|
{
|
|
503
503
|
"category": "size",
|
|
@@ -507,7 +507,7 @@
|
|
|
507
507
|
"value": "8px",
|
|
508
508
|
"original": 8,
|
|
509
509
|
"variableName": "$size-border-radius-s",
|
|
510
|
-
"isUsed":
|
|
510
|
+
"isUsed": false
|
|
511
511
|
},
|
|
512
512
|
{
|
|
513
513
|
"category": "size",
|
|
@@ -517,7 +517,7 @@
|
|
|
517
517
|
"value": "12px",
|
|
518
518
|
"original": 12,
|
|
519
519
|
"variableName": "$size-border-radius-m",
|
|
520
|
-
"isUsed":
|
|
520
|
+
"isUsed": false
|
|
521
521
|
},
|
|
522
522
|
{
|
|
523
523
|
"category": "size",
|
|
@@ -527,7 +527,7 @@
|
|
|
527
527
|
"value": "16px",
|
|
528
528
|
"original": 16,
|
|
529
529
|
"variableName": "$size-border-radius-l",
|
|
530
|
-
"isUsed":
|
|
530
|
+
"isUsed": false
|
|
531
531
|
},
|
|
532
532
|
{
|
|
533
533
|
"category": "size",
|
|
@@ -537,7 +537,7 @@
|
|
|
537
537
|
"value": "24px",
|
|
538
538
|
"original": 24,
|
|
539
539
|
"variableName": "$size-border-radius-xl",
|
|
540
|
-
"isUsed":
|
|
540
|
+
"isUsed": false
|
|
541
541
|
},
|
|
542
542
|
{
|
|
543
543
|
"category": "size",
|
|
@@ -547,7 +547,7 @@
|
|
|
547
547
|
"value": "9999px",
|
|
548
548
|
"original": 9999,
|
|
549
549
|
"variableName": "$size-border-radius-full",
|
|
550
|
-
"isUsed":
|
|
550
|
+
"isUsed": false
|
|
551
551
|
},
|
|
552
552
|
{
|
|
553
553
|
"category": "size",
|
|
@@ -557,7 +557,7 @@
|
|
|
557
557
|
"value": 1.1428571429,
|
|
558
558
|
"original": 1.1428571429,
|
|
559
559
|
"variableName": "$size-line-height-xs",
|
|
560
|
-
"isUsed":
|
|
560
|
+
"isUsed": false
|
|
561
561
|
},
|
|
562
562
|
{
|
|
563
563
|
"category": "size",
|
|
@@ -567,7 +567,7 @@
|
|
|
567
567
|
"value": 1.25,
|
|
568
568
|
"original": 1.25,
|
|
569
569
|
"variableName": "$size-line-height-s",
|
|
570
|
-
"isUsed":
|
|
570
|
+
"isUsed": false
|
|
571
571
|
},
|
|
572
572
|
{
|
|
573
573
|
"category": "size",
|
|
@@ -577,7 +577,7 @@
|
|
|
577
577
|
"value": 1.3333333,
|
|
578
578
|
"original": 1.3333333,
|
|
579
579
|
"variableName": "$size-line-height-m",
|
|
580
|
-
"isUsed":
|
|
580
|
+
"isUsed": false
|
|
581
581
|
},
|
|
582
582
|
{
|
|
583
583
|
"category": "size",
|
|
@@ -587,7 +587,7 @@
|
|
|
587
587
|
"value": 1.4285714286,
|
|
588
588
|
"original": 1.4285714286,
|
|
589
589
|
"variableName": "$size-line-height-l",
|
|
590
|
-
"isUsed":
|
|
590
|
+
"isUsed": false
|
|
591
591
|
},
|
|
592
592
|
{
|
|
593
593
|
"category": "size",
|
|
@@ -597,7 +597,7 @@
|
|
|
597
597
|
"value": 1.5,
|
|
598
598
|
"original": 1.5,
|
|
599
599
|
"variableName": "$size-line-height-xl",
|
|
600
|
-
"isUsed":
|
|
600
|
+
"isUsed": false
|
|
601
601
|
},
|
|
602
602
|
{
|
|
603
603
|
"category": "size",
|
|
@@ -607,7 +607,7 @@
|
|
|
607
607
|
"value": 1.625,
|
|
608
608
|
"original": 1.625,
|
|
609
609
|
"variableName": "$size-line-height-xxl",
|
|
610
|
-
"isUsed":
|
|
610
|
+
"isUsed": false
|
|
611
611
|
},
|
|
612
612
|
{
|
|
613
613
|
"category": "size",
|
|
@@ -617,6 +617,6 @@
|
|
|
617
617
|
"value": 1.714286,
|
|
618
618
|
"original": 1.714286,
|
|
619
619
|
"variableName": "$size-line-height-xxxl",
|
|
620
|
-
"isUsed":
|
|
620
|
+
"isUsed": false
|
|
621
621
|
}
|
|
622
622
|
]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"activity": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" focusable=\"false\"><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M9 1.75a1 1 0 0 1 .95.66L15 16.96l2.05-5.91a1 1 0 0 1 .95-.66h4c.55 0 1 .43 1 .96s-.45.96-1 .96h-3.28l-2.77 7.99a1 1 0 0 1-.95.65 1 1 0 0 1-.95-.65L9 5.75l-2.05 5.9a1 1 0 0 1-.95.66H2c-.55 0-1-.43-1-.96s.45-.96 1-.96h3.28l2.77-7.98A1 1 0 0 1 9 1.75m0 0\"/></svg>",
|
|
3
3
|
"ai-chat": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"currentColor\" viewBox=\"0 0 24 24\" focusable=\"false\"><path d=\"M12.158 6.22a.376.376 0 0 1 .684 0l1.486 3.264c.038.082.105.15.187.189l3.265 1.484a.377.377 0 0 1 0 .686l-3.265 1.484a.4.4 0 0 0-.187.189l-1.486 3.263a.376.376 0 0 1-.684 0l-1.486-3.263a.4.4 0 0 0-.187-.189l-3.265-1.48a.376.376 0 0 1 0-.685l3.265-1.484a.4.4 0 0 0 .187-.189z\"/><path fill-rule=\"evenodd\" d=\"M13.166 1.002A10.42 10.42 0 0 1 23 10.889v.552l-.003.305a10.3 10.3 0 0 1-1.103 4.366v.001a10.44 10.44 0 0 1-9.336 5.775h-.002a10.3 10.3 0 0 1-4.288-.923l-5.951 1.983a1 1 0 0 1-1.265-1.264l1.983-5.953a10.3 10.3 0 0 1-.923-4.29 10.45 10.45 0 0 1 5.775-9.336 10.3 10.3 0 0 1 4.67-1.104L13.111 1zM12.553 3a8.3 8.3 0 0 0-3.768.893l-.004.002a8.45 8.45 0 0 0-4.67 7.55v.002a8.3 8.3 0 0 0 .893 3.769 1 1 0 0 1 .056.766L3.58 20.42l4.438-1.479.096-.027c.225-.05.463-.022.67.083 1.169.59 2.46.896 3.77.893h.001a8.45 8.45 0 0 0 7.55-4.67l.003-.003.208-.443A8.3 8.3 0 0 0 21 11.447v-.527A8.42 8.42 0 0 0 13.08 3z\" clip-rule=\"evenodd\"/></svg>",
|
|
4
4
|
"ai-file": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"currentColor\" viewBox=\"0 0 24 24\" focusable=\"false\"><path fill-rule=\"evenodd\" d=\"M18 1a3 3 0 0 1 3 3v7.184l-.806-1.772-.002.001A2.35 2.35 0 0 0 19 8.21V4a1 1 0 0 0-1-1h-6v6a1 1 0 0 1-1 1H5v10a1 1 0 0 0 1 1h9.084l.722 1.588v-.001q.104.225.237.413H6a3 3 0 0 1-3-3V9a1 1 0 0 1 .293-.707l7-7a1 1 0 0 1 .073-.066l.074-.056a1 1 0 0 1 .267-.128q.023-.007.047-.012l.048-.011.026-.004Q10.912 1 11 1zM6.414 8H10V4.414z\" clip-rule=\"evenodd\"/><path d=\"M17.627 10.24a.41.41 0 0 1 .746 0l1.62 3.562a.43.43 0 0 0 .205.205l3.562 1.62a.41.41 0 0 1 0 .746l-3.562 1.62a.43.43 0 0 0-.205.205l-1.62 3.562a.41.41 0 0 1-.746 0l-1.62-3.562a.43.43 0 0 0-.205-.205L12.24 16.38a.41.41 0 0 1 0-.747l3.562-1.62a.43.43 0 0 0 .205-.205z\"/></svg>",
|
|
5
|
-
"ai-sparkle": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"
|
|
5
|
+
"ai-sparkle": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" viewBox=\"0 0 24 24\" focusable=\"false\"><path fill=\"currentColor\" d=\"m15.298 9.01 5.341 2.43c.481.22.481.907 0 1.12l-5.341 2.43a.65.65 0 0 0-.308.308l-2.43 5.341c-.22.481-.907.481-1.12 0l-2.43-5.341a.65.65 0 0 0-.308-.308l-5.341-2.422c-.481-.22-.481-.907 0-1.12l5.341-2.43a.65.65 0 0 0 .308-.308l2.43-5.35c.22-.48.907-.48 1.12.001l2.43 5.341a.65.65 0 0 0 .308.308\"/></svg>",
|
|
6
6
|
"alert-circle": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" focusable=\"false\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 8v4m0 4h.01\"/></svg>",
|
|
7
7
|
"alert-octagon": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" focusable=\"false\"><path d=\"M7.86 2h8.28L22 7.86v8.28L16.14 22H7.86L2 16.14V7.86zM12 8v4m0 4h.01\"/></svg>",
|
|
8
8
|
"alert-triangle": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" viewBox=\"0 0 24 24\" focusable=\"false\"><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M9.435 3.341a3 3 0 0 1 5.13 0l.003.005 8.47 14.14.008.014a3 3 0 0 1-2.565 4.5H3.519a3 3 0 0 1-2.565-4.5l.008-.014zm1.711 1.036L2.683 18.506A1 1 0 0 0 3.536 20h16.928a1 1 0 0 0 .853-1.494L12.855 4.379l-.001-.002a1 1 0 0 0-1.708 0\" clip-rule=\"evenodd\"/><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M12 8a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0V9a1 1 0 0 1 1-1\" clip-rule=\"evenodd\"/><path fill=\"currentColor\" d=\"M11 17a1 1 0 1 1 2 0 1 1 0 0 1-2 0\"/></svg>",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amboss/design-system",
|
|
3
|
-
"version": "3.48.
|
|
3
|
+
"version": "3.48.7",
|
|
4
4
|
"description": "the design system for AMBOSS products",
|
|
5
5
|
"author": "AMBOSS",
|
|
6
6
|
"license": "ISC",
|
|
@@ -128,12 +128,12 @@
|
|
|
128
128
|
"typescript"
|
|
129
129
|
],
|
|
130
130
|
"dependencies": {
|
|
131
|
+
"@floating-ui/react-dom": "^2.1.8",
|
|
131
132
|
"@react-aria/interactions": "^3.27.0",
|
|
132
133
|
"@swc/helpers": "~0.5.17",
|
|
133
134
|
"@vitejs/plugin-react-swc": "~3.10.1",
|
|
134
135
|
"focus-trap-react": "^10.2.3",
|
|
135
136
|
"imask": "^7.4.0",
|
|
136
|
-
"react-resizable-panels": "4.11.2",
|
|
137
137
|
"runtypes": "^6.7.0",
|
|
138
138
|
"svgo": "^3.3.3"
|
|
139
139
|
},
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ColumnKey, SidePanelKey, SlotKey } from "./-types";
|
|
2
|
-
export declare const SIDE_PANELS: SidePanelKey[];
|
|
3
|
-
export declare const COLUMNS: ColumnKey[];
|
|
4
|
-
/** Left-to-right column order in the resizable row. */
|
|
5
|
-
export declare const COLUMN_ORDER: SlotKey[];
|
|
6
|
-
/** Default mobile breakpoint (px, inclusive max). Matches the DS `m` token. */
|
|
7
|
-
export declare const DEFAULT_MOBILE_BREAKPOINT = 768;
|
|
8
|
-
/** Most in-flow columns allowed at once. A 4th request demotes the sidebar. */
|
|
9
|
-
export declare const MAX_VISIBLE_COLUMNS = 3;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var target=exports,all={get COLUMNS(){return COLUMNS},get COLUMN_ORDER(){return COLUMN_ORDER},get DEFAULT_MOBILE_BREAKPOINT(){return DEFAULT_MOBILE_BREAKPOINT},get MAX_VISIBLE_COLUMNS(){return MAX_VISIBLE_COLUMNS},get SIDE_PANELS(){return SIDE_PANELS}};for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:Object.getOwnPropertyDescriptor(all,name).get});const SIDE_PANELS=["sidebar","rightPanel"],COLUMNS=["content","splitview"],COLUMN_ORDER=["sidebar","content","splitview","rightPanel"],DEFAULT_MOBILE_BREAKPOINT=768,MAX_VISIBLE_COLUMNS=3;
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import type React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* Layout type contract (DS-1355, simplified direction).
|
|
4
|
-
*
|
|
5
|
-
* Surface = compound components (`Layout.Sidebar` / `Layout.RightPanel` /
|
|
6
|
-
* `Layout.Content` / `Layout.Split` / `Layout.Float`) + one control hook
|
|
7
|
-
* (`useLayout()`). The manager owns the open/collapsed/size state; components
|
|
8
|
-
* render per that state. State engine is replaceable (see `LayoutStore`).
|
|
9
|
-
*
|
|
10
|
-
* Slots (max 4 columns, max 3 visible at once — budget enforcement deferred):
|
|
11
|
-
* sidebar | content | splitview | rightPanel
|
|
12
|
-
*/
|
|
13
|
-
/** A size: plain number = pixels; unitless string = percentage ("10%"). */
|
|
14
|
-
export type Size = number | string;
|
|
15
|
-
/** Side-panel render style (shadcn-derived, AMBOSS-renamed; `inset` dropped). */
|
|
16
|
-
export type Variant = "sidebar" | "floating";
|
|
17
|
-
export type SidePanelKey = "sidebar" | "rightPanel";
|
|
18
|
-
export type ColumnKey = "content" | "splitview";
|
|
19
|
-
export type SlotKey = SidePanelKey | ColumnKey;
|
|
20
|
-
/**
|
|
21
|
-
* Effective render mode of a slot, after the requested→effective reconciler
|
|
22
|
-
* applies the mobile rule and the 3-column budget.
|
|
23
|
-
* column — in-flow resizable column
|
|
24
|
-
* floating — detached overlay panel (desktop)
|
|
25
|
-
* sheet — full-height overlay + backdrop (mobile)
|
|
26
|
-
* hidden — not rendered
|
|
27
|
-
*/
|
|
28
|
-
export type SlotMode = "column" | "floating" | "sheet" | "hidden";
|
|
29
|
-
export type EffectiveModes = Record<SlotKey, SlotMode>;
|
|
30
|
-
/** Float anchor. */
|
|
31
|
-
export type Align = "left" | "center" | "right";
|
|
32
|
-
export type VAlign = "top" | "center" | "bottom";
|
|
33
|
-
export type SidePanelState = {
|
|
34
|
-
kind: "sidePanel";
|
|
35
|
-
/** Expanded/visible vs collapsed/off. */
|
|
36
|
-
open: boolean;
|
|
37
|
-
/** Whether it can collapse at all. */
|
|
38
|
-
collapsible: boolean;
|
|
39
|
-
/** Render style. */
|
|
40
|
-
variant: Variant;
|
|
41
|
-
/** Current size (px number or "%" string). */
|
|
42
|
-
size?: Size;
|
|
43
|
-
};
|
|
44
|
-
export type ColumnState = {
|
|
45
|
-
kind: "column";
|
|
46
|
-
/** content is always visible; splitview is toggleable. */
|
|
47
|
-
visible: boolean;
|
|
48
|
-
size?: Size;
|
|
49
|
-
};
|
|
50
|
-
export type LayoutState = {
|
|
51
|
-
sidebar: SidePanelState;
|
|
52
|
-
rightPanel: SidePanelState;
|
|
53
|
-
content: ColumnState;
|
|
54
|
-
splitview: ColumnState;
|
|
55
|
-
};
|
|
56
|
-
export type SidePanelConfig = {
|
|
57
|
-
defaultOpen?: boolean;
|
|
58
|
-
collapsible?: boolean;
|
|
59
|
-
variant?: Variant;
|
|
60
|
-
defaultSize?: Size;
|
|
61
|
-
minSize?: Size;
|
|
62
|
-
maxSize?: Size;
|
|
63
|
-
};
|
|
64
|
-
export type ColumnConfig = {
|
|
65
|
-
defaultVisible?: boolean;
|
|
66
|
-
defaultSize?: Size;
|
|
67
|
-
minSize?: Size;
|
|
68
|
-
maxSize?: Size;
|
|
69
|
-
};
|
|
70
|
-
export type LayoutConfig = {
|
|
71
|
-
sidebar?: SidePanelConfig;
|
|
72
|
-
rightPanel?: SidePanelConfig;
|
|
73
|
-
content?: ColumnConfig;
|
|
74
|
-
splitview?: ColumnConfig;
|
|
75
|
-
};
|
|
76
|
-
/** Per-slot partial patch (used by hydrate + reload persistence). */
|
|
77
|
-
export type LayoutStatePatch = {
|
|
78
|
-
sidebar?: Partial<SidePanelState>;
|
|
79
|
-
rightPanel?: Partial<SidePanelState>;
|
|
80
|
-
content?: Partial<ColumnState>;
|
|
81
|
-
splitview?: Partial<ColumnState>;
|
|
82
|
-
};
|
|
83
|
-
export type LayoutAction = {
|
|
84
|
-
type: "setOpen";
|
|
85
|
-
panel: SidePanelKey;
|
|
86
|
-
open: boolean;
|
|
87
|
-
} | {
|
|
88
|
-
type: "toggleOpen";
|
|
89
|
-
panel: SidePanelKey;
|
|
90
|
-
} | {
|
|
91
|
-
type: "setVariant";
|
|
92
|
-
panel: SidePanelKey;
|
|
93
|
-
variant: Variant;
|
|
94
|
-
} | {
|
|
95
|
-
type: "setColumnVisible";
|
|
96
|
-
column: ColumnKey;
|
|
97
|
-
visible: boolean;
|
|
98
|
-
} | {
|
|
99
|
-
type: "resize";
|
|
100
|
-
slot: SlotKey;
|
|
101
|
-
size: Size;
|
|
102
|
-
} | {
|
|
103
|
-
type: "hydrate";
|
|
104
|
-
state: LayoutStatePatch;
|
|
105
|
-
};
|
|
106
|
-
export type LayoutReducer = (state: LayoutState, action: LayoutAction) => LayoutState;
|
|
107
|
-
/**
|
|
108
|
-
* Replaceable state engine. Matches `useSyncExternalStore` + zustand/redux
|
|
109
|
-
* conventions. The manager depends only on this interface, so a zustand-backed
|
|
110
|
-
* store can be injected via `<LayoutProvider store={…}>`.
|
|
111
|
-
*/
|
|
112
|
-
export type LayoutStore = {
|
|
113
|
-
getState: () => LayoutState;
|
|
114
|
-
dispatch: (action: LayoutAction) => void;
|
|
115
|
-
subscribe: (listener: () => void) => () => void;
|
|
116
|
-
};
|
|
117
|
-
export type LayoutStorage = {
|
|
118
|
-
getItem: (key: string) => string | null;
|
|
119
|
-
setItem: (key: string, value: string) => void;
|
|
120
|
-
};
|
|
121
|
-
export type SidePanelHandle = {
|
|
122
|
-
state: SidePanelState;
|
|
123
|
-
isOpen: boolean;
|
|
124
|
-
open: () => void;
|
|
125
|
-
close: () => void;
|
|
126
|
-
toggle: () => void;
|
|
127
|
-
resize: (size: Size) => void;
|
|
128
|
-
setVariant: (variant: Variant) => void;
|
|
129
|
-
};
|
|
130
|
-
export type ColumnHandle = {
|
|
131
|
-
state: ColumnState;
|
|
132
|
-
isVisible: boolean;
|
|
133
|
-
show: () => void;
|
|
134
|
-
hide: () => void;
|
|
135
|
-
toggle: () => void;
|
|
136
|
-
resize: (size: Size) => void;
|
|
137
|
-
};
|
|
138
|
-
export type LayoutValue = {
|
|
139
|
-
state: LayoutState;
|
|
140
|
-
sidebar: SidePanelHandle;
|
|
141
|
-
rightPanel: SidePanelHandle;
|
|
142
|
-
content: ColumnHandle;
|
|
143
|
-
splitview: ColumnHandle;
|
|
144
|
-
/** True at/below the mobile breakpoint — side panels render as a sheet. */
|
|
145
|
-
isMobile: boolean;
|
|
146
|
-
/** Effective render mode per slot after the reconciler (mobile + budget). */
|
|
147
|
-
modes: EffectiveModes;
|
|
148
|
-
};
|
|
149
|
-
export type SidePanelProps = {
|
|
150
|
-
children: React.ReactNode;
|
|
151
|
-
variant?: Variant;
|
|
152
|
-
collapsible?: boolean;
|
|
153
|
-
defaultSize?: Size;
|
|
154
|
-
minSize?: Size;
|
|
155
|
-
maxSize?: Size;
|
|
156
|
-
};
|
|
157
|
-
export type ContentProps = {
|
|
158
|
-
children: React.ReactNode;
|
|
159
|
-
minSize?: Size;
|
|
160
|
-
maxSize?: Size;
|
|
161
|
-
};
|
|
162
|
-
export type SplitProps = {
|
|
163
|
-
children: React.ReactNode;
|
|
164
|
-
defaultSize?: Size;
|
|
165
|
-
minSize?: Size;
|
|
166
|
-
maxSize?: Size;
|
|
167
|
-
};
|
|
168
|
-
export type FloatProps = {
|
|
169
|
-
children: React.ReactNode;
|
|
170
|
-
align: Align;
|
|
171
|
-
valign: VAlign;
|
|
172
|
-
};
|
|
173
|
-
export type LayoutProviderProps = {
|
|
174
|
-
children: React.ReactNode;
|
|
175
|
-
config?: LayoutConfig;
|
|
176
|
-
store?: LayoutStore;
|
|
177
|
-
persistenceKey?: string;
|
|
178
|
-
storage?: LayoutStorage;
|
|
179
|
-
/** Mobile breakpoint in px (inclusive max). Defaults to the DS `m` token. */
|
|
180
|
-
mobileBreakpoint?: number;
|
|
181
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|