@exegia/corpora-ui 0.25.0 → 0.27.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.
Files changed (48) hide show
  1. package/dist-lib/components/blocks/shell/animated-panel-provider.d.ts +1 -1
  2. package/dist-lib/components/blocks/shell/shell-layout.d.ts +1 -1
  3. package/dist-lib/components/blocks/shell/type.d.ts +21 -1
  4. package/dist-lib/components/icons/__tests__/icons.test.d.ts +1 -0
  5. package/dist-lib/components/icons/file-badge-cfm.d.ts +7 -0
  6. package/dist-lib/components/icons/file-badge-corpus.d.ts +7 -0
  7. package/dist-lib/components/icons/file-badge-pdf.d.ts +7 -0
  8. package/dist-lib/components/icons/file-badge-tei.d.ts +7 -0
  9. package/dist-lib/components/icons/file-badge-tf.d.ts +7 -0
  10. package/dist-lib/components/icons/file-badge-txt.d.ts +7 -0
  11. package/dist-lib/components/icons/file-badge-xml.d.ts +7 -0
  12. package/dist-lib/components/icons/file-wordmark-cfm.d.ts +7 -0
  13. package/dist-lib/components/icons/file-wordmark-corpus.d.ts +7 -0
  14. package/dist-lib/components/icons/file-wordmark-pdf.d.ts +7 -0
  15. package/dist-lib/components/icons/file-wordmark-tei.d.ts +7 -0
  16. package/dist-lib/components/icons/file-wordmark-tf.d.ts +7 -0
  17. package/dist-lib/components/icons/file-wordmark-txt.d.ts +7 -0
  18. package/dist-lib/components/icons/file-wordmark-xml.d.ts +7 -0
  19. package/dist-lib/components/icons/index.d.ts +15 -0
  20. package/dist-lib/components/icons/types.d.ts +7 -0
  21. package/dist-lib/index.d.ts +1 -0
  22. package/dist-lib/index.js +9134 -1920
  23. package/dist-lib/index.js.map +1 -1
  24. package/package.json +1 -1
  25. package/src/components/blocks/shell/__tests__/shell-layout.test.tsx +65 -0
  26. package/src/components/blocks/shell/animated-panel-provider.tsx +2 -0
  27. package/src/components/blocks/shell/shell-layout.tsx +28 -16
  28. package/src/components/blocks/shell/type.ts +22 -0
  29. package/src/components/blocks/shell/use-shell-panels.ts +30 -1
  30. package/src/components/icons/README.md +91 -0
  31. package/src/components/icons/__tests__/icons.test.tsx +58 -0
  32. package/src/components/icons/file-badge-cfm.tsx +615 -0
  33. package/src/components/icons/file-badge-corpus.tsx +604 -0
  34. package/src/components/icons/file-badge-pdf.tsx +570 -0
  35. package/src/components/icons/file-badge-tei.tsx +524 -0
  36. package/src/components/icons/file-badge-tf.tsx +620 -0
  37. package/src/components/icons/file-badge-txt.tsx +607 -0
  38. package/src/components/icons/file-badge-xml.tsx +576 -0
  39. package/src/components/icons/file-wordmark-cfm.tsx +424 -0
  40. package/src/components/icons/file-wordmark-corpus.tsx +454 -0
  41. package/src/components/icons/file-wordmark-pdf.tsx +470 -0
  42. package/src/components/icons/file-wordmark-tei.tsx +424 -0
  43. package/src/components/icons/file-wordmark-tf.tsx +406 -0
  44. package/src/components/icons/file-wordmark-txt.tsx +421 -0
  45. package/src/components/icons/file-wordmark-xml.tsx +424 -0
  46. package/src/components/icons/index.ts +16 -0
  47. package/src/components/icons/types.ts +8 -0
  48. package/src/index.ts +3 -0
@@ -0,0 +1,421 @@
1
+ import type { FileIconProps } from "./types"
2
+
3
+ /**
4
+ * TXT file icon — wordmark variant.
5
+ * Light/dark artwork layers switch on Tailwind's `dark` variant.
6
+ */
7
+ export function FileWordmarkTxt({
8
+ size = 64,
9
+ title = "TXT file",
10
+ className,
11
+ ...props
12
+ }: FileIconProps) {
13
+ return (
14
+ <svg
15
+ viewBox="0 -48 1024 1114"
16
+ width={size}
17
+ height={size}
18
+ role={title ? "img" : "presentation"}
19
+ aria-label={title ?? undefined}
20
+ aria-hidden={title ? undefined : true}
21
+ className={className}
22
+ xmlns="http://www.w3.org/2000/svg"
23
+ {...props}
24
+ >
25
+ <g data-theme-layer="light" className="dark:hidden">
26
+ <defs>
27
+ <linearGradient
28
+ x1="17.6604798%"
29
+ y1="0%"
30
+ x2="49.177195%"
31
+ y2="97.4557292%"
32
+ id="txt-wordmark-l-linearGradient-2"
33
+ >
34
+ <stop stopColor="#FBFAFF" offset="0%"></stop>
35
+ <stop stopColor="#E8E7F0" offset="100%"></stop>
36
+ </linearGradient>
37
+ <path
38
+ d="M332,12 L557.393952,12 C613.901876,12 642.155838,12 664.135334,22.0470049 C686.11483,32.0940098 704.602278,53.4598851 741.577175,96.1916357 L853.580372,225.633315 C884.253388,261.082006 899.589896,278.806351 906.574274,297.524519 C913.558651,316.242686 913.581362,339.681124 913.626783,386.558 L914.017631,789.931634 C914.119069,894.620332 914.169788,946.964682 881.683622,979.482341 C849.197455,1012 796.853082,1012 692.164334,1012 L332,1012 C227.348196,1012 175.022295,1012 142.511147,979.488853 C110,946.977705 110,894.651804 110,790 L110,234 C110,129.348196 110,77.0222946 142.511147,44.5111473 C175.022295,12 227.348196,12 332,12 Z"
39
+ id="txt-wordmark-l-path-3"
40
+ ></path>
41
+ <filter
42
+ x="-50%"
43
+ y="-50%"
44
+ width="200%"
45
+ height="200%"
46
+ filterUnits="objectBoundingBox"
47
+ id="txt-wordmark-l-filter-4"
48
+ >
49
+ <feOffset
50
+ dx="12"
51
+ dy="-3"
52
+ in="SourceAlpha"
53
+ result="shadowOffsetOuter1"
54
+ ></feOffset>
55
+ <feGaussianBlur
56
+ stdDeviation="28.5"
57
+ in="shadowOffsetOuter1"
58
+ result="shadowBlurOuter1"
59
+ ></feGaussianBlur>
60
+ <feColorMatrix
61
+ values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"
62
+ type="matrix"
63
+ in="shadowBlurOuter1"
64
+ ></feColorMatrix>
65
+ </filter>
66
+ <filter
67
+ x="-50%"
68
+ y="-50%"
69
+ width="200%"
70
+ height="200%"
71
+ filterUnits="objectBoundingBox"
72
+ id="txt-wordmark-l-filter-5"
73
+ >
74
+ <feGaussianBlur
75
+ stdDeviation="4"
76
+ in="SourceAlpha"
77
+ result="shadowBlurInner1"
78
+ ></feGaussianBlur>
79
+ <feOffset
80
+ dx="-10"
81
+ dy="14"
82
+ in="shadowBlurInner1"
83
+ result="shadowOffsetInner1"
84
+ ></feOffset>
85
+ <feComposite
86
+ in="shadowOffsetInner1"
87
+ in2="SourceAlpha"
88
+ operator="arithmetic"
89
+ k2="-1"
90
+ k3="1"
91
+ result="shadowInnerInner1"
92
+ ></feComposite>
93
+ <feColorMatrix
94
+ values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"
95
+ type="matrix"
96
+ in="shadowInnerInner1"
97
+ result="shadowMatrixInner1"
98
+ ></feColorMatrix>
99
+ <feGaussianBlur
100
+ stdDeviation="4"
101
+ in="SourceAlpha"
102
+ result="shadowBlurInner2"
103
+ ></feGaussianBlur>
104
+ <feOffset
105
+ dx="4"
106
+ dy="-10"
107
+ in="shadowBlurInner2"
108
+ result="shadowOffsetInner2"
109
+ ></feOffset>
110
+ <feComposite
111
+ in="shadowOffsetInner2"
112
+ in2="SourceAlpha"
113
+ operator="arithmetic"
114
+ k2="-1"
115
+ k3="1"
116
+ result="shadowInnerInner2"
117
+ ></feComposite>
118
+ <feColorMatrix
119
+ values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"
120
+ type="matrix"
121
+ in="shadowInnerInner2"
122
+ result="shadowMatrixInner2"
123
+ ></feColorMatrix>
124
+ <feMerge>
125
+ <feMergeNode in="shadowMatrixInner1"></feMergeNode>
126
+ <feMergeNode in="shadowMatrixInner2"></feMergeNode>
127
+ </feMerge>
128
+ </filter>
129
+ <filter
130
+ x="-50%"
131
+ y="-50%"
132
+ width="200%"
133
+ height="200%"
134
+ filterUnits="objectBoundingBox"
135
+ id="txt-wordmark-l-filter-6"
136
+ >
137
+ <feOffset
138
+ dx="0"
139
+ dy="5"
140
+ in="SourceAlpha"
141
+ result="shadowOffsetOuter1"
142
+ ></feOffset>
143
+ <feGaussianBlur
144
+ stdDeviation="3.5"
145
+ in="shadowOffsetOuter1"
146
+ result="shadowBlurOuter1"
147
+ ></feGaussianBlur>
148
+ <feColorMatrix
149
+ values="0 0 0 0 0.0889199747 0 0 0 0 0.0889199747 0 0 0 0 0.0889199747 0 0 0 0.03 0"
150
+ type="matrix"
151
+ in="shadowBlurOuter1"
152
+ result="shadowMatrixOuter1"
153
+ ></feColorMatrix>
154
+ <feMerge>
155
+ <feMergeNode in="shadowMatrixOuter1"></feMergeNode>
156
+ <feMergeNode in="SourceGraphic"></feMergeNode>
157
+ </feMerge>
158
+ </filter>
159
+ <linearGradient
160
+ x1="50%"
161
+ y1="0%"
162
+ x2="50%"
163
+ y2="100%"
164
+ id="txt-wordmark-l-linearGradient-7"
165
+ >
166
+ <stop stopColor="#4B008F" offset="0%"></stop>
167
+ <stop stopColor="#080043" offset="61.8567708%"></stop>
168
+ </linearGradient>
169
+ <g id="txt-wordmark-l-text-9">
170
+ <g transform="translate(340.5, 721.762)">
171
+ <defs>
172
+ <g>
173
+ <g id="txt-wordmark-l-lbl-glyph0-1">
174
+ <path d="M 25.453125 0.890625 C 34.890625 0.890625 41.46875 -6.234375 41.46875 -15.125 C 41.46875 -23.859375 34.890625 -30.96875 25.453125 -30.96875 C 15.84375 -30.96875 9.25 -23.859375 9.25 -15.125 C 9.25 -6.234375 15.84375 0.890625 25.453125 0.890625 Z M 25.453125 0.890625 " />
175
+ </g>
176
+ <g id="txt-wordmark-l-lbl-glyph0-2">
177
+ <path d="M 37.203125 0 L 64.96875 0 L 64.96875 -100.390625 L 98.609375 -100.390625 L 98.609375 -125.484375 L 3.5625 -125.484375 L 3.5625 -100.390625 L 37.203125 -100.390625 Z M 37.203125 0 " />
178
+ </g>
179
+ <g id="txt-wordmark-l-lbl-glyph0-3">
180
+ <path d="M 95.765625 0 L 126.5625 0 L 86.515625 -66.390625 L 121.390625 -125.484375 L 89.71875 -125.484375 L 64.265625 -80.984375 L 38.625 -125.484375 L 6.9375 -125.484375 L 42.015625 -66.390625 L 1.78125 0 L 32.75 0 L 64.265625 -53.21875 Z M 95.765625 0 " />
181
+ </g>
182
+ </g>
183
+ </defs>
184
+ <g>
185
+ <g>
186
+ <use
187
+ href="#txt-wordmark-l-lbl-glyph0-1"
188
+ x="0.303066"
189
+ y="162"
190
+ />
191
+ <use
192
+ href="#txt-wordmark-l-lbl-glyph0-2"
193
+ x="24.226266"
194
+ y="162"
195
+ />
196
+ </g>
197
+ <g>
198
+ <use
199
+ href="#txt-wordmark-l-lbl-glyph0-3"
200
+ x="121.663466"
201
+ y="162"
202
+ />
203
+ </g>
204
+ <g>
205
+ <use
206
+ href="#txt-wordmark-l-lbl-glyph0-2"
207
+ x="245.266666"
208
+ y="162"
209
+ />
210
+ </g>
211
+ </g>
212
+ </g>
213
+ </g>
214
+ <filter
215
+ x="-50%"
216
+ y="-50%"
217
+ width="200%"
218
+ height="200%"
219
+ filterUnits="objectBoundingBox"
220
+ id="txt-wordmark-l-filter-10"
221
+ >
222
+ <feMorphology
223
+ radius="0.5"
224
+ operator="dilate"
225
+ in="SourceAlpha"
226
+ result="shadowSpreadOuter1"
227
+ ></feMorphology>
228
+ <feOffset
229
+ dx="-3"
230
+ dy="3"
231
+ in="shadowSpreadOuter1"
232
+ result="shadowOffsetOuter1"
233
+ ></feOffset>
234
+ <feColorMatrix
235
+ values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0501685049 0"
236
+ type="matrix"
237
+ in="shadowOffsetOuter1"
238
+ ></feColorMatrix>
239
+ </filter>
240
+ </defs>
241
+ <g stroke="none" fill="none">
242
+ <g>
243
+ <use
244
+ fill="black"
245
+ filter="url(#txt-wordmark-l-filter-4)"
246
+ href="#txt-wordmark-l-path-3"
247
+ ></use>
248
+ <use
249
+ fill="url(#txt-wordmark-l-linearGradient-2)"
250
+ fillRule="evenodd"
251
+ href="#txt-wordmark-l-path-3"
252
+ ></use>
253
+ <use
254
+ fill="black"
255
+ filter="url(#txt-wordmark-l-filter-5)"
256
+ href="#txt-wordmark-l-path-3"
257
+ ></use>
258
+ </g>
259
+ <g
260
+ filter="url(#txt-wordmark-l-filter-6)"
261
+ opacity="0.13"
262
+ fillRule="evenodd"
263
+ transform="translate(256.5027, 305.518)"
264
+ >
265
+ <path
266
+ d="M304.544551,0.447520067 C319.125735,0.47109626 330.927008,12.3105936 330.903467,26.8917774 C330.879856,41.4729613 319.040358,53.2742341 304.459175,53.2506931 L27.7029447,52.8031731 C13.1217608,52.7795969 1.32048809,40.9400996 1.34402902,26.3589157 C1.36764048,11.7777318 13.2071378,-0.0235409293 27.7883217,1.01746264e-13 L304.544551,0.447520067 Z"
267
+ fill="url(#txt-wordmark-l-linearGradient-7)"
268
+ fillRule="nonzero"
269
+ ></path>
270
+ <path
271
+ d="M509,164.674408 C509,179.255611 497.1796,191.076012 482.598397,191.076012 L27.296573,191.076012 C12.7153701,191.076012 0.894969607,179.255611 0.894969607,164.674408 C0.894969607,150.093206 12.7153701,138.272805 27.296573,138.272805 L482.598397,138.272805 C497.1796,138.272805 509,150.093206 509,164.674408 Z"
272
+ fill="url(#txt-wordmark-l-linearGradient-7)"
273
+ fillRule="nonzero"
274
+ ></path>
275
+ <path
276
+ d="M508.552515,304.737062 C508.552515,319.318265 496.732115,331.138666 482.150912,331.138666 L26.8490882,331.138666 C12.2678853,331.138666 0.447484804,319.318265 0.447484804,304.737062 C0.447484804,290.15586 12.2678853,278.335459 26.8490882,278.335459 L482.150912,278.335459 C496.732115,278.335459 508.552515,290.15586 508.552515,304.737062 Z"
277
+ fill="url(#txt-wordmark-l-linearGradient-7)"
278
+ fillRule="nonzero"
279
+ ></path>
280
+ </g>
281
+ <g fill="#1A1A1A">
282
+ <use
283
+ filter="url(#txt-wordmark-l-filter-10)"
284
+ href="#txt-wordmark-l-text-9"
285
+ ></use>
286
+ <use href="#txt-wordmark-l-text-9"></use>
287
+ </g>
288
+ </g>
289
+ </g>
290
+ <g data-theme-layer="dark" className="hidden dark:inline">
291
+ <defs>
292
+ <linearGradient
293
+ x1="25.9355099%"
294
+ y1="0%"
295
+ x2="63.5613444%"
296
+ y2="91.834983%"
297
+ id="txt-wordmark-d-linearGradient-2"
298
+ >
299
+ <stop
300
+ stopColor="#2A2A2A"
301
+ stopOpacity="0.980392157"
302
+ offset="0%"
303
+ ></stop>
304
+ <stop stopColor="#050505" offset="100%"></stop>
305
+ </linearGradient>
306
+ <filter
307
+ x="-50%"
308
+ y="-50%"
309
+ width="200%"
310
+ height="200%"
311
+ filterUnits="objectBoundingBox"
312
+ id="txt-wordmark-d-filter-5"
313
+ >
314
+ <feGaussianBlur
315
+ stdDeviation="4"
316
+ in="SourceAlpha"
317
+ result="shadowBlurInner1"
318
+ ></feGaussianBlur>
319
+ <feOffset
320
+ dx="-10"
321
+ dy="14"
322
+ in="shadowBlurInner1"
323
+ result="shadowOffsetInner1"
324
+ ></feOffset>
325
+ <feComposite
326
+ in="shadowOffsetInner1"
327
+ in2="SourceAlpha"
328
+ operator="arithmetic"
329
+ k2="-1"
330
+ k3="1"
331
+ result="shadowInnerInner1"
332
+ ></feComposite>
333
+ <feColorMatrix
334
+ values="0 0 0 0 0.194256757 0 0 0 0 0.194256757 0 0 0 0 0.194256757 0 0 0 1 0"
335
+ type="matrix"
336
+ in="shadowInnerInner1"
337
+ result="shadowMatrixInner1"
338
+ ></feColorMatrix>
339
+ <feGaussianBlur
340
+ stdDeviation="4"
341
+ in="SourceAlpha"
342
+ result="shadowBlurInner2"
343
+ ></feGaussianBlur>
344
+ <feOffset
345
+ dx="4"
346
+ dy="-10"
347
+ in="shadowBlurInner2"
348
+ result="shadowOffsetInner2"
349
+ ></feOffset>
350
+ <feComposite
351
+ in="shadowOffsetInner2"
352
+ in2="SourceAlpha"
353
+ operator="arithmetic"
354
+ k2="-1"
355
+ k3="1"
356
+ result="shadowInnerInner2"
357
+ ></feComposite>
358
+ <feColorMatrix
359
+ values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"
360
+ type="matrix"
361
+ in="shadowInnerInner2"
362
+ result="shadowMatrixInner2"
363
+ ></feColorMatrix>
364
+ <feMerge>
365
+ <feMergeNode in="shadowMatrixInner1"></feMergeNode>
366
+ <feMergeNode in="shadowMatrixInner2"></feMergeNode>
367
+ </feMerge>
368
+ </filter>
369
+ </defs>
370
+ <g stroke="none" fill="none">
371
+ <g>
372
+ <use
373
+ fill="black"
374
+ filter="url(#txt-wordmark-l-filter-4)"
375
+ href="#txt-wordmark-l-path-3"
376
+ ></use>
377
+ <use
378
+ fill="url(#txt-wordmark-d-linearGradient-2)"
379
+ fillRule="evenodd"
380
+ href="#txt-wordmark-l-path-3"
381
+ ></use>
382
+ <use
383
+ fill="black"
384
+ filter="url(#txt-wordmark-d-filter-5)"
385
+ href="#txt-wordmark-l-path-3"
386
+ ></use>
387
+ </g>
388
+ <g
389
+ filter="url(#txt-wordmark-l-filter-6)"
390
+ opacity="0.13"
391
+ fillRule="evenodd"
392
+ transform="translate(256.5027, 305.518)"
393
+ fill="#B2B2B2"
394
+ >
395
+ <path
396
+ d="M304.544551,0.447520067 C319.125735,0.47109626 330.927008,12.3105936 330.903467,26.8917774 C330.879856,41.4729613 319.040358,53.2742341 304.459175,53.2506931 L27.7029447,52.8031731 C13.1217608,52.7795969 1.32048809,40.9400996 1.34402902,26.3589157 C1.36764048,11.7777318 13.2071378,-0.0235409293 27.7883217,1.01746264e-13 L304.544551,0.447520067 Z"
397
+ fillRule="nonzero"
398
+ ></path>
399
+ <path
400
+ d="M509,164.674408 C509,179.255611 497.1796,191.076012 482.598397,191.076012 L27.296573,191.076012 C12.7153701,191.076012 0.894969607,179.255611 0.894969607,164.674408 C0.894969607,150.093206 12.7153701,138.272805 27.296573,138.272805 L482.598397,138.272805 C497.1796,138.272805 509,150.093206 509,164.674408 Z"
401
+ fillRule="nonzero"
402
+ ></path>
403
+ <path
404
+ d="M508.552515,304.737062 C508.552515,319.318265 496.732115,331.138666 482.150912,331.138666 L26.8490882,331.138666 C12.2678853,331.138666 0.447484804,319.318265 0.447484804,304.737062 C0.447484804,290.15586 12.2678853,278.335459 26.8490882,278.335459 L482.150912,278.335459 C496.732115,278.335459 508.552515,290.15586 508.552515,304.737062 Z"
405
+ fillRule="nonzero"
406
+ ></path>
407
+ </g>
408
+ <g fill="#E8E8E8">
409
+ <use
410
+ filter="url(#txt-wordmark-l-filter-10)"
411
+ href="#txt-wordmark-l-text-9"
412
+ ></use>
413
+ <use href="#txt-wordmark-l-text-9"></use>
414
+ </g>
415
+ </g>
416
+ </g>
417
+ </svg>
418
+ )
419
+ }
420
+
421
+ export default FileWordmarkTxt