@c-rex/components 0.1.38 → 0.1.39

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 (71) hide show
  1. package/README.md +73 -73
  2. package/package.json +250 -218
  3. package/src/article/article-action-bar.tsx +110 -110
  4. package/src/article/article-content.tsx +18 -46
  5. package/src/autocomplete.tsx +201 -201
  6. package/src/breadcrumb.tsx +124 -124
  7. package/src/carousel/carousel.tsx +353 -353
  8. package/src/check-article-lang.tsx +47 -47
  9. package/src/directoryNodes/directory-tree-context.tsx +388 -0
  10. package/src/directoryNodes/tree-of-content.tsx +68 -67
  11. package/src/documents/result-list.tsx +124 -127
  12. package/src/favorites/bookmark-button.tsx +97 -94
  13. package/src/favorites/favorite-button.tsx +137 -120
  14. package/src/footer/footer-shell.tsx +52 -0
  15. package/src/footer/footer.tsx +7 -0
  16. package/src/footer/legal-links-block.tsx +25 -0
  17. package/src/footer/organization-contact-block.tsx +94 -0
  18. package/src/footer/social-links-block.tsx +38 -0
  19. package/src/footer/types.ts +10 -0
  20. package/src/footer/vcard-footer.tsx +72 -0
  21. package/src/generated/client-components.tsx +1366 -1350
  22. package/src/generated/create-client-request.tsx +116 -113
  23. package/src/generated/create-server-request.tsx +70 -61
  24. package/src/generated/create-suggestions-request.tsx +55 -55
  25. package/src/generated/server-components.tsx +1056 -1056
  26. package/src/generated/suggestions.tsx +302 -299
  27. package/src/icons/file-icon.tsx +8 -8
  28. package/src/icons/flag-icon.tsx +15 -15
  29. package/src/icons/loading.tsx +11 -11
  30. package/src/icons/social-icon.tsx +24 -0
  31. package/src/info/info-card.tsx +43 -0
  32. package/src/info/{info-table.tsx → information-unit-metadata-grid.tsx} +157 -168
  33. package/src/info/shared.tsx +49 -25
  34. package/src/navbar/language-switcher/content-language-switch.tsx +92 -92
  35. package/src/navbar/language-switcher/shared.tsx +33 -33
  36. package/src/navbar/language-switcher/ui-language-switch.tsx +37 -37
  37. package/src/navbar/navbar.tsx +157 -152
  38. package/src/navbar/settings.tsx +62 -62
  39. package/src/navbar/sign-in-out-btns.tsx +35 -35
  40. package/src/navbar/user-menu.tsx +60 -60
  41. package/src/page-wrapper.tsx +54 -31
  42. package/src/render-article.module.css +155 -0
  43. package/src/render-article.tsx +75 -68
  44. package/src/renditions/file-download.tsx +83 -83
  45. package/src/renditions/html.tsx +64 -64
  46. package/src/renditions/image/container.tsx +54 -54
  47. package/src/renditions/image/rendition.tsx +55 -55
  48. package/src/restriction-menu/restriction-menu-container.tsx +117 -53
  49. package/src/restriction-menu/restriction-menu-item.tsx +155 -147
  50. package/src/restriction-menu/restriction-menu.tsx +341 -156
  51. package/src/results/dialog-filter.tsx +166 -166
  52. package/src/results/empty.tsx +15 -15
  53. package/src/results/filter-navbar.tsx +294 -261
  54. package/src/results/filter-sidebar/__tests__/utils.test.ts +129 -0
  55. package/src/results/filter-sidebar/index.tsx +270 -126
  56. package/src/results/filter-sidebar/utils.ts +196 -164
  57. package/src/results/generic/table-result-list.tsx +97 -99
  58. package/src/results/{table-with-images.tsx → information-unit-search-results-card-list.tsx} +125 -127
  59. package/src/results/{cards.tsx → information-unit-search-results-cards.tsx} +99 -99
  60. package/src/results/{table.tsx → information-unit-search-results-table.tsx} +104 -104
  61. package/src/results/pagination.tsx +81 -81
  62. package/src/results/summary.ts +30 -0
  63. package/src/results/utils.ts +54 -54
  64. package/src/search-input.tsx +70 -70
  65. package/src/share-button.tsx +49 -49
  66. package/src/stores/favorites-store.ts +88 -88
  67. package/src/stores/highlight-store.ts +15 -15
  68. package/src/stores/language-store.ts +14 -14
  69. package/src/stores/restriction-store.ts +11 -11
  70. package/src/stores/search-settings-store.ts +68 -64
  71. package/src/info/set-available-versions.tsx +0 -19
@@ -1,299 +1,302 @@
1
- "use client"
2
-
3
- /**
4
- * Auto-generated Suggestion Components
5
- * Source: https://staging.c-rex.net/ids/api/swagger/v1/swagger.json
6
- * Generated: 2025-12-10T19:29:03.931Z
7
- *
8
- * Each component is a wrapper around AutoComplete with a pre-configured endpoint.
9
- * Do not edit manually - changes will be overwritten.
10
- */
11
-
12
-
13
- import { AutoComplete, type AutoCompleteProps } from "../autocomplete";
14
-
15
- // Props for suggestion components (endpoint is pre-configured)
16
- type SuggestionComponentProps = Omit<AutoCompleteProps, 'endpoint'>;
17
-
18
- // Factory to create suggestion components with pre-configured endpoint
19
- function createSuggestionComponent(endpoint: string) {
20
- return function SuggestionComponent(props: SuggestionComponentProps) {
21
- return <AutoComplete {...props} endpoint={endpoint} />;
22
- };
23
- }
24
-
25
- // ============================================
26
- // Generated Suggestion Components
27
- // ============================================
28
-
29
- export const SearchSuggestions = createSuggestionComponent(
30
- 'ids/v1/Search/Suggestions'
31
- );
32
-
33
- export const AdministrativeMetadataSuggestions = createSuggestionComponent(
34
- 'AdministrativeMetadata/Suggestions'
35
- );
36
-
37
- export const AfterUsesSuggestions = createSuggestionComponent(
38
- 'AfterUses/Suggestions'
39
- );
40
-
41
- export const CollectionsSuggestions = createSuggestionComponent(
42
- 'Collections/Suggestions'
43
- );
44
-
45
- export const ComponentsSuggestions = createSuggestionComponent(
46
- 'Components/Suggestions'
47
- );
48
-
49
- export const ConceptsSuggestions = createSuggestionComponent(
50
- 'Concepts/Suggestions'
51
- );
52
-
53
- export const ConformitiesSuggestions = createSuggestionComponent(
54
- 'Conformities/Suggestions'
55
- );
56
-
57
- export const ContentLifeCycleStatusSuggestions = createSuggestionComponent(
58
- 'ContentLifeCycleStatus/Suggestions'
59
- );
60
-
61
- export const DesignAndRealizationsSuggestions = createSuggestionComponent(
62
- 'DesignAndRealizations/Suggestions'
63
- );
64
-
65
- export const DirectoryNodesSuggestions = createSuggestionComponent(
66
- 'DirectoryNodes/Suggestions'
67
- );
68
-
69
- export const DirectoryNodeTypesSuggestions = createSuggestionComponent(
70
- 'DirectoryNodeTypes/Suggestions'
71
- );
72
-
73
- export const DocumentationMetadataSuggestions = createSuggestionComponent(
74
- 'DocumentationMetadata/Suggestions'
75
- );
76
-
77
- export const DocumentsSuggestions = createSuggestionComponent(
78
- 'Documents/Suggestions'
79
- );
80
-
81
- export const DocumentTypesSuggestions = createSuggestionComponent(
82
- 'DocumentTypes/Suggestions'
83
- );
84
-
85
- export const DomainEntitiesSuggestions = createSuggestionComponent(
86
- 'DomainEntities/Suggestions'
87
- );
88
-
89
- export const DownTimesSuggestions = createSuggestionComponent(
90
- 'DownTimes/Suggestions'
91
- );
92
-
93
- export const EventsSuggestions = createSuggestionComponent(
94
- 'Events/Suggestions'
95
- );
96
-
97
- export const FormalitiesSuggestions = createSuggestionComponent(
98
- 'Formalities/Suggestions'
99
- );
100
-
101
- export const FormsSuggestions = createSuggestionComponent(
102
- 'Forms/Suggestions'
103
- );
104
-
105
- export const FragmentsSuggestions = createSuggestionComponent(
106
- 'Fragments/Suggestions'
107
- );
108
-
109
- export const FunctionalitiesSuggestions = createSuggestionComponent(
110
- 'Functionalities/Suggestions'
111
- );
112
-
113
- export const FunctionalMetadatasSuggestions = createSuggestionComponent(
114
- 'FunctionalMetadatas/Suggestions'
115
- );
116
-
117
- export const IdentitiesSuggestions = createSuggestionComponent(
118
- 'Identities/Suggestions'
119
- );
120
-
121
- export const IdentityDomainsSuggestions = createSuggestionComponent(
122
- 'IdentityDomains/Suggestions'
123
- );
124
-
125
- export const InformationObjectsSuggestions = createSuggestionComponent(
126
- 'InformationObjects/Suggestions'
127
- );
128
-
129
- export const InformationSubjectsSuggestions = createSuggestionComponent(
130
- 'InformationSubjects/Suggestions'
131
- );
132
-
133
- export const InformationTypesSuggestions = createSuggestionComponent(
134
- 'InformationTypes/Suggestions'
135
- );
136
-
137
- export const InformationUnitsSuggestions = createSuggestionComponent(
138
- 'InformationUnits/Suggestions'
139
- );
140
-
141
- export const LearningsSuggestions = createSuggestionComponent(
142
- 'Learnings/Suggestions'
143
- );
144
-
145
- export const MaintenanceIntervalsSuggestions = createSuggestionComponent(
146
- 'MaintenanceIntervals/Suggestions'
147
- );
148
-
149
- export const PackagesSuggestions = createSuggestionComponent(
150
- 'Packages/Suggestions'
151
- );
152
-
153
- export const PartiesSuggestions = createSuggestionComponent(
154
- 'Parties/Suggestions'
155
- );
156
-
157
- export const PlanningTimesSuggestions = createSuggestionComponent(
158
- 'PlanningTimes/Suggestions'
159
- );
160
-
161
- export const ProcessesSuggestions = createSuggestionComponent(
162
- 'Processes/Suggestions'
163
- );
164
-
165
- export const ProductFeaturesSuggestions = createSuggestionComponent(
166
- 'ProductFeatures/Suggestions'
167
- );
168
-
169
- export const ProductFunctionsSuggestions = createSuggestionComponent(
170
- 'ProductFunctions/Suggestions'
171
- );
172
-
173
- export const ProductLifeCyclePhasesSuggestions = createSuggestionComponent(
174
- 'ProductLifeCyclePhases/Suggestions'
175
- );
176
-
177
- export const ProductMetadataSuggestions = createSuggestionComponent(
178
- 'ProductMetadata/Suggestions'
179
- );
180
-
181
- export const ProductPropertiesSuggestions = createSuggestionComponent(
182
- 'ProductProperties/Suggestions'
183
- );
184
-
185
- export const ProductVariantsSuggestions = createSuggestionComponent(
186
- 'ProductVariants/Suggestions'
187
- );
188
-
189
- export const PuttingToUsesSuggestions = createSuggestionComponent(
190
- 'PuttingToUses/Suggestions'
191
- );
192
-
193
- export const QualificationsSuggestions = createSuggestionComponent(
194
- 'Qualifications/Suggestions'
195
- );
196
-
197
- export const ReferencesSuggestions = createSuggestionComponent(
198
- 'References/Suggestions'
199
- );
200
-
201
- export const RenditionsSuggestions = createSuggestionComponent(
202
- 'Renditions/Suggestions'
203
- );
204
-
205
- export const RolesSuggestions = createSuggestionComponent(
206
- 'Roles/Suggestions'
207
- );
208
-
209
- export const SafetiesSuggestions = createSuggestionComponent(
210
- 'Safeties/Suggestions'
211
- );
212
-
213
- export const SkillLevelsSuggestions = createSuggestionComponent(
214
- 'SkillLevels/Suggestions'
215
- );
216
-
217
- export const SuppliesSuggestions = createSuggestionComponent(
218
- 'Supplies/Suggestions'
219
- );
220
-
221
- export const TasksSuggestions = createSuggestionComponent(
222
- 'Tasks/Suggestions'
223
- );
224
-
225
- export const TechnicalDataSuggestions = createSuggestionComponent(
226
- 'TechnicalData/Suggestions'
227
- );
228
-
229
- export const TechnicalOverviewsSuggestions = createSuggestionComponent(
230
- 'TechnicalOverviews/Suggestions'
231
- );
232
-
233
- export const TopicsSuggestions = createSuggestionComponent(
234
- 'Topics/Suggestions'
235
- );
236
-
237
- export const TopicTypesSuggestions = createSuggestionComponent(
238
- 'TopicTypes/Suggestions'
239
- );
240
-
241
- export const TroubleShootingsSuggestions = createSuggestionComponent(
242
- 'TroubleShootings/Suggestions'
243
- );
244
-
245
- export const UsesSuggestions = createSuggestionComponent(
246
- 'Uses/Suggestions'
247
- );
248
-
249
- export const WarningMessagesSuggestions = createSuggestionComponent(
250
- 'WarningMessages/Suggestions'
251
- );
252
-
253
- export const WorkingTimesSuggestions = createSuggestionComponent(
254
- 'WorkingTimes/Suggestions'
255
- );
256
-
257
- export const ConsumablesSuggestions = createSuggestionComponent(
258
- 'iirdsMch/v1/Consumables/Suggestions'
259
- );
260
-
261
- export const HardwareToolsSuggestions = createSuggestionComponent(
262
- 'iirdsMch/v1/HardwareTools/Suggestions'
263
- );
264
-
265
- export const LubricantsSuggestions = createSuggestionComponent(
266
- 'iirdsMch/v1/Lubricants/Suggestions'
267
- );
268
-
269
- export const OperatingSuppliesSuggestions = createSuggestionComponent(
270
- 'iirdsMch/v1/OperatingSupplies/Suggestions'
271
- );
272
-
273
- export const SetupTimesSuggestions = createSuggestionComponent(
274
- 'iirdsMch/v1/SetupTimes/Suggestions'
275
- );
276
-
277
- export const SparePartsSuggestions = createSuggestionComponent(
278
- 'iirdsMch/v1/SpareParts/Suggestions'
279
- );
280
-
281
- export const GroupsSuggestions = createSuggestionComponent(
282
- 'vcard/v1/Groups/Suggestions'
283
- );
284
-
285
- export const IndividualsSuggestions = createSuggestionComponent(
286
- 'vcard/v1/Individuals/Suggestions'
287
- );
288
-
289
- export const LocationsSuggestions = createSuggestionComponent(
290
- 'vcard/v1/Locations/Suggestions'
291
- );
292
-
293
- export const OrganizationsSuggestions = createSuggestionComponent(
294
- 'vcard/v1/Organizations/Suggestions'
295
- );
296
-
297
- export const VCardsSuggestions = createSuggestionComponent(
298
- 'vcard/v1/VCards/Suggestions'
299
- );
1
+ /**
2
+ * Auto-generated Suggestion Components
3
+ * Source: https://staging.c-rex.net/ids/api/swagger/v1/swagger.json
4
+ * Generated: 2026-02-28T18:01:29.873Z
5
+ *
6
+ * Each component is a wrapper around AutoComplete with a pre-configured endpoint.
7
+ * Do not edit manually - changes will be overwritten.
8
+ */
9
+
10
+ "use client"
11
+
12
+ import { AutoComplete, type AutoCompleteProps } from "../autocomplete";
13
+
14
+ // Props for suggestion components (endpoint is pre-configured)
15
+ type SuggestionComponentProps = Omit<AutoCompleteProps, 'endpoint'>;
16
+
17
+ // Factory to create suggestion components with pre-configured endpoint
18
+ function createSuggestionComponent(endpoint: string) {
19
+ return function SuggestionComponent(props: SuggestionComponentProps) {
20
+ return <AutoComplete {...props} endpoint={endpoint} />;
21
+ };
22
+ }
23
+
24
+ // ============================================
25
+ // Generated Suggestion Components
26
+ // ============================================
27
+
28
+ export const CategoriesSuggestions = createSuggestionComponent(
29
+ 'crex/v1/Categories/Suggestions'
30
+ );
31
+
32
+ export const SearchSuggestions = createSuggestionComponent(
33
+ 'ids/v1/Search/Suggestions'
34
+ );
35
+
36
+ export const AdministrativeMetadataSuggestions = createSuggestionComponent(
37
+ 'iirds/v1/AdministrativeMetadata/Suggestions'
38
+ );
39
+
40
+ export const AfterUsesSuggestions = createSuggestionComponent(
41
+ 'iirds/v1/AfterUses/Suggestions'
42
+ );
43
+
44
+ export const CollectionsSuggestions = createSuggestionComponent(
45
+ 'iirds/v1/Collections/Suggestions'
46
+ );
47
+
48
+ export const ComponentsSuggestions = createSuggestionComponent(
49
+ 'iirds/v1/Components/Suggestions'
50
+ );
51
+
52
+ export const ConceptsSuggestions = createSuggestionComponent(
53
+ 'iirds/v1/Concepts/Suggestions'
54
+ );
55
+
56
+ export const ConformitiesSuggestions = createSuggestionComponent(
57
+ 'iirds/v1/Conformities/Suggestions'
58
+ );
59
+
60
+ export const ContentLifeCycleStatusSuggestions = createSuggestionComponent(
61
+ 'iirds/v1/ContentLifeCycleStatus/Suggestions'
62
+ );
63
+
64
+ export const DesignAndRealizationsSuggestions = createSuggestionComponent(
65
+ 'iirds/v1/DesignAndRealizations/Suggestions'
66
+ );
67
+
68
+ export const DirectoryNodesSuggestions = createSuggestionComponent(
69
+ 'iirds/v1/DirectoryNodes/Suggestions'
70
+ );
71
+
72
+ export const DirectoryNodeTypesSuggestions = createSuggestionComponent(
73
+ 'iirds/v1/DirectoryNodeTypes/Suggestions'
74
+ );
75
+
76
+ export const DocumentationMetadataSuggestions = createSuggestionComponent(
77
+ 'iirds/v1/DocumentationMetadata/Suggestions'
78
+ );
79
+
80
+ export const DocumentsSuggestions = createSuggestionComponent(
81
+ 'iirds/v1/Documents/Suggestions'
82
+ );
83
+
84
+ export const DocumentTypesSuggestions = createSuggestionComponent(
85
+ 'iirds/v1/DocumentTypes/Suggestions'
86
+ );
87
+
88
+ export const DomainEntitiesSuggestions = createSuggestionComponent(
89
+ 'iirds/v1/DomainEntities/Suggestions'
90
+ );
91
+
92
+ export const DownTimesSuggestions = createSuggestionComponent(
93
+ 'iirds/v1/DownTimes/Suggestions'
94
+ );
95
+
96
+ export const EventsSuggestions = createSuggestionComponent(
97
+ 'iirds/v1/Events/Suggestions'
98
+ );
99
+
100
+ export const FormalitiesSuggestions = createSuggestionComponent(
101
+ 'iirds/v1/Formalities/Suggestions'
102
+ );
103
+
104
+ export const FormsSuggestions = createSuggestionComponent(
105
+ 'iirds/v1/Forms/Suggestions'
106
+ );
107
+
108
+ export const FragmentsSuggestions = createSuggestionComponent(
109
+ 'iirds/v1/Fragments/Suggestions'
110
+ );
111
+
112
+ export const FunctionalitiesSuggestions = createSuggestionComponent(
113
+ 'iirds/v1/Functionalities/Suggestions'
114
+ );
115
+
116
+ export const FunctionalMetadatasSuggestions = createSuggestionComponent(
117
+ 'iirds/v1/FunctionalMetadatas/Suggestions'
118
+ );
119
+
120
+ export const IdentitiesSuggestions = createSuggestionComponent(
121
+ 'iirds/v1/Identities/Suggestions'
122
+ );
123
+
124
+ export const IdentityDomainsSuggestions = createSuggestionComponent(
125
+ 'iirds/v1/IdentityDomains/Suggestions'
126
+ );
127
+
128
+ export const InformationObjectsSuggestions = createSuggestionComponent(
129
+ 'iirds/v1/InformationObjects/Suggestions'
130
+ );
131
+
132
+ export const InformationSubjectsSuggestions = createSuggestionComponent(
133
+ 'iirds/v1/InformationSubjects/Suggestions'
134
+ );
135
+
136
+ export const InformationTypesSuggestions = createSuggestionComponent(
137
+ 'iirds/v1/InformationTypes/Suggestions'
138
+ );
139
+
140
+ export const InformationUnitsSuggestions = createSuggestionComponent(
141
+ 'iirds/v1/InformationUnits/Suggestions'
142
+ );
143
+
144
+ export const LearningsSuggestions = createSuggestionComponent(
145
+ 'iirds/v1/Learnings/Suggestions'
146
+ );
147
+
148
+ export const MaintenanceIntervalsSuggestions = createSuggestionComponent(
149
+ 'iirds/v1/MaintenanceIntervals/Suggestions'
150
+ );
151
+
152
+ export const PackagesSuggestions = createSuggestionComponent(
153
+ 'iirds/v1/Packages/Suggestions'
154
+ );
155
+
156
+ export const PartiesSuggestions = createSuggestionComponent(
157
+ 'iirds/v1/Parties/Suggestions'
158
+ );
159
+
160
+ export const PlanningTimesSuggestions = createSuggestionComponent(
161
+ 'iirds/v1/PlanningTimes/Suggestions'
162
+ );
163
+
164
+ export const ProcessesSuggestions = createSuggestionComponent(
165
+ 'iirds/v1/Processes/Suggestions'
166
+ );
167
+
168
+ export const ProductFeaturesSuggestions = createSuggestionComponent(
169
+ 'iirds/v1/ProductFeatures/Suggestions'
170
+ );
171
+
172
+ export const ProductFunctionsSuggestions = createSuggestionComponent(
173
+ 'iirds/v1/ProductFunctions/Suggestions'
174
+ );
175
+
176
+ export const ProductLifeCyclePhasesSuggestions = createSuggestionComponent(
177
+ 'iirds/v1/ProductLifeCyclePhases/Suggestions'
178
+ );
179
+
180
+ export const ProductMetadataSuggestions = createSuggestionComponent(
181
+ 'iirds/v1/ProductMetadata/Suggestions'
182
+ );
183
+
184
+ export const ProductPropertiesSuggestions = createSuggestionComponent(
185
+ 'iirds/v1/ProductProperties/Suggestions'
186
+ );
187
+
188
+ export const ProductVariantsSuggestions = createSuggestionComponent(
189
+ 'iirds/v1/ProductVariants/Suggestions'
190
+ );
191
+
192
+ export const PuttingToUsesSuggestions = createSuggestionComponent(
193
+ 'iirds/v1/PuttingToUses/Suggestions'
194
+ );
195
+
196
+ export const QualificationsSuggestions = createSuggestionComponent(
197
+ 'iirds/v1/Qualifications/Suggestions'
198
+ );
199
+
200
+ export const ReferencesSuggestions = createSuggestionComponent(
201
+ 'iirds/v1/References/Suggestions'
202
+ );
203
+
204
+ export const RenditionsSuggestions = createSuggestionComponent(
205
+ 'iirds/v1/Renditions/Suggestions'
206
+ );
207
+
208
+ export const RolesSuggestions = createSuggestionComponent(
209
+ 'iirds/v1/Roles/Suggestions'
210
+ );
211
+
212
+ export const SafetiesSuggestions = createSuggestionComponent(
213
+ 'iirds/v1/Safeties/Suggestions'
214
+ );
215
+
216
+ export const SkillLevelsSuggestions = createSuggestionComponent(
217
+ 'iirds/v1/SkillLevels/Suggestions'
218
+ );
219
+
220
+ export const SuppliesSuggestions = createSuggestionComponent(
221
+ 'iirds/v1/Supplies/Suggestions'
222
+ );
223
+
224
+ export const TasksSuggestions = createSuggestionComponent(
225
+ 'iirds/v1/Tasks/Suggestions'
226
+ );
227
+
228
+ export const TechnicalDataSuggestions = createSuggestionComponent(
229
+ 'iirds/v1/TechnicalData/Suggestions'
230
+ );
231
+
232
+ export const TechnicalOverviewsSuggestions = createSuggestionComponent(
233
+ 'iirds/v1/TechnicalOverviews/Suggestions'
234
+ );
235
+
236
+ export const TopicsSuggestions = createSuggestionComponent(
237
+ 'iirds/v1/Topics/Suggestions'
238
+ );
239
+
240
+ export const TopicTypesSuggestions = createSuggestionComponent(
241
+ 'iirds/v1/TopicTypes/Suggestions'
242
+ );
243
+
244
+ export const TroubleShootingsSuggestions = createSuggestionComponent(
245
+ 'iirds/v1/TroubleShootings/Suggestions'
246
+ );
247
+
248
+ export const UsesSuggestions = createSuggestionComponent(
249
+ 'iirds/v1/Uses/Suggestions'
250
+ );
251
+
252
+ export const WarningMessagesSuggestions = createSuggestionComponent(
253
+ 'iirds/v1/WarningMessages/Suggestions'
254
+ );
255
+
256
+ export const WorkingTimesSuggestions = createSuggestionComponent(
257
+ 'iirds/v1/WorkingTimes/Suggestions'
258
+ );
259
+
260
+ export const ConsumablesSuggestions = createSuggestionComponent(
261
+ 'iirdsMch/v1/Consumables/Suggestions'
262
+ );
263
+
264
+ export const HardwareToolsSuggestions = createSuggestionComponent(
265
+ 'iirdsMch/v1/HardwareTools/Suggestions'
266
+ );
267
+
268
+ export const LubricantsSuggestions = createSuggestionComponent(
269
+ 'iirdsMch/v1/Lubricants/Suggestions'
270
+ );
271
+
272
+ export const OperatingSuppliesSuggestions = createSuggestionComponent(
273
+ 'iirdsMch/v1/OperatingSupplies/Suggestions'
274
+ );
275
+
276
+ export const SetupTimesSuggestions = createSuggestionComponent(
277
+ 'iirdsMch/v1/SetupTimes/Suggestions'
278
+ );
279
+
280
+ export const SparePartsSuggestions = createSuggestionComponent(
281
+ 'iirdsMch/v1/SpareParts/Suggestions'
282
+ );
283
+
284
+ export const GroupsSuggestions = createSuggestionComponent(
285
+ 'vcard/v1/Groups/Suggestions'
286
+ );
287
+
288
+ export const IndividualsSuggestions = createSuggestionComponent(
289
+ 'vcard/v1/Individuals/Suggestions'
290
+ );
291
+
292
+ export const LocationsSuggestions = createSuggestionComponent(
293
+ 'vcard/v1/Locations/Suggestions'
294
+ );
295
+
296
+ export const OrganizationsSuggestions = createSuggestionComponent(
297
+ 'vcard/v1/Organizations/Suggestions'
298
+ );
299
+
300
+ export const VCardsSuggestions = createSuggestionComponent(
301
+ 'vcard/v1/VCards/Suggestions'
302
+ );
@@ -1,9 +1,9 @@
1
- import { PiFilePdf } from "react-icons/pi";
2
-
3
- export const FileIcon = ({ extension }: { extension: string }) => {
4
- const IconsToFileExtension: Record<string, React.ReactNode> = {
5
- "application/pdf": <PiFilePdf className="!h-5 !w-5 text-primary" />,
6
- };
7
-
8
- return IconsToFileExtension[extension] || null;
1
+ import { PiFilePdf } from "react-icons/pi";
2
+
3
+ export const FileIcon = ({ extension }: { extension: string }) => {
4
+ const IconsToFileExtension: Record<string, React.ReactNode> = {
5
+ "application/pdf": <PiFilePdf className="!h-5 !w-5 text-primary" />,
6
+ };
7
+
8
+ return IconsToFileExtension[extension] || null;
9
9
  };
@@ -1,15 +1,15 @@
1
- import React, { FC } from "react";
2
- import * as Flags from 'country-flag-icons/react/3x2';
3
-
4
- interface FlagProps {
5
- countryCode: string;
6
- }
7
- export const Flag: FC<FlagProps> = ({ countryCode }) => {
8
-
9
- type CountryCode = keyof typeof Flags;
10
- const FlagComponent = Flags[countryCode as CountryCode];
11
-
12
- if (!FlagComponent) return null;
13
-
14
- return <FlagComponent />;
15
- };
1
+ import React, { FC } from "react";
2
+ import * as Flags from 'country-flag-icons/react/3x2';
3
+
4
+ interface FlagProps {
5
+ countryCode: string;
6
+ }
7
+ export const Flag: FC<FlagProps> = ({ countryCode }) => {
8
+
9
+ type CountryCode = keyof typeof Flags;
10
+ const FlagComponent = Flags[countryCode as CountryCode];
11
+
12
+ if (!FlagComponent) return null;
13
+
14
+ return <FlagComponent />;
15
+ };