@c-rex/components 0.1.37 → 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.
- package/README.md +73 -73
- package/package.json +250 -235
- package/src/article/article-action-bar.tsx +110 -110
- package/src/article/article-content.tsx +18 -46
- package/src/autocomplete.tsx +201 -201
- package/src/breadcrumb.tsx +124 -124
- package/src/carousel/carousel.tsx +353 -352
- package/src/check-article-lang.tsx +47 -43
- package/src/directoryNodes/directory-tree-context.tsx +388 -0
- package/src/directoryNodes/tree-of-content.tsx +68 -67
- package/src/documents/result-list.tsx +124 -127
- package/src/favorites/bookmark-button.tsx +97 -79
- package/src/favorites/favorite-button.tsx +137 -74
- package/src/footer/footer-shell.tsx +52 -0
- package/src/footer/footer.tsx +7 -0
- package/src/footer/legal-links-block.tsx +25 -0
- package/src/footer/organization-contact-block.tsx +94 -0
- package/src/footer/social-links-block.tsx +38 -0
- package/src/footer/types.ts +10 -0
- package/src/footer/vcard-footer.tsx +72 -0
- package/src/generated/client-components.tsx +1366 -1350
- package/src/generated/create-client-request.tsx +116 -113
- package/src/generated/create-server-request.tsx +70 -61
- package/src/generated/create-suggestions-request.tsx +55 -55
- package/src/generated/server-components.tsx +1056 -1056
- package/src/generated/suggestions.tsx +302 -299
- package/src/icons/file-icon.tsx +8 -8
- package/src/icons/flag-icon.tsx +15 -15
- package/src/icons/loading.tsx +11 -11
- package/src/icons/social-icon.tsx +24 -0
- package/src/info/info-card.tsx +43 -0
- package/src/info/{info-table.tsx → information-unit-metadata-grid.tsx} +157 -146
- package/src/info/shared.tsx +49 -25
- package/src/navbar/language-switcher/content-language-switch.tsx +92 -92
- package/src/navbar/language-switcher/shared.tsx +33 -33
- package/src/navbar/language-switcher/ui-language-switch.tsx +37 -38
- package/src/navbar/navbar.tsx +157 -148
- package/src/navbar/settings.tsx +62 -62
- package/src/navbar/sign-in-out-btns.tsx +35 -35
- package/src/navbar/user-menu.tsx +60 -60
- package/src/page-wrapper.tsx +54 -31
- package/src/render-article.module.css +155 -0
- package/src/render-article.tsx +75 -68
- package/src/renditions/file-download.tsx +83 -83
- package/src/renditions/html.tsx +64 -64
- package/src/renditions/image/container.tsx +54 -54
- package/src/renditions/image/rendition.tsx +55 -55
- package/src/restriction-menu/restriction-menu-container.tsx +117 -53
- package/src/restriction-menu/restriction-menu-item.tsx +155 -147
- package/src/restriction-menu/restriction-menu.tsx +341 -157
- package/src/results/dialog-filter.tsx +166 -166
- package/src/results/empty.tsx +15 -15
- package/src/results/filter-navbar.tsx +294 -261
- package/src/results/filter-sidebar/__tests__/utils.test.ts +129 -0
- package/src/results/filter-sidebar/index.tsx +270 -126
- package/src/results/filter-sidebar/utils.ts +196 -164
- package/src/results/generic/table-result-list.tsx +97 -99
- package/src/results/{table-with-images.tsx → information-unit-search-results-card-list.tsx} +125 -127
- package/src/results/{cards.tsx → information-unit-search-results-cards.tsx} +99 -99
- package/src/results/{table.tsx → information-unit-search-results-table.tsx} +104 -104
- package/src/results/pagination.tsx +81 -81
- package/src/results/summary.ts +30 -0
- package/src/results/utils.ts +54 -47
- package/src/search-input.tsx +70 -70
- package/src/share-button.tsx +49 -49
- package/src/stores/favorites-store.ts +88 -88
- package/src/stores/highlight-store.ts +15 -15
- package/src/stores/language-store.ts +14 -43
- package/src/stores/restriction-store.ts +11 -11
- package/src/stores/search-settings-store.ts +68 -64
- package/src/article/article-action-bar.analysis.md +0 -15
- package/src/article/article-action-bar.stories.tsx +0 -15
- package/src/article/article-content.analysis.md +0 -15
- package/src/article/article-content.stories.tsx +0 -21
- package/src/autocomplete.analysis.md +0 -17
- package/src/breadcrumb.analysis.md +0 -15
- package/src/carousel/carousel.analysis.md +0 -17
- package/src/check-article-lang.analysis.md +0 -15
- package/src/directoryNodes/tree-of-content.analysis.md +0 -14
- package/src/directoryNodes/tree-of-content.stories.tsx +0 -22
- package/src/documents/result-list.analysis.md +0 -14
- package/src/documents/result-list.stories.tsx +0 -19
- package/src/favorites/bookmark-button.analysis.md +0 -17
- package/src/favorites/bookmark-button.stories.tsx +0 -19
- package/src/favorites/favorite-button.analysis.md +0 -18
- package/src/favorites/favorite-button.stories.tsx +0 -22
- package/src/icons/file-icon.analysis.md +0 -14
- package/src/icons/file-icon.stories.tsx +0 -19
- package/src/icons/flag-icon.analysis.md +0 -14
- package/src/icons/flag-icon.stories.tsx +0 -25
- package/src/icons/loading.analysis.md +0 -14
- package/src/icons/loading.stories.tsx +0 -21
- package/src/info/info-table.analysis.md +0 -15
- package/src/info/shared.analysis.md +0 -14
- package/src/info/stories/info-table.stories.tsx +0 -31
- package/src/info/stories/shared.stories.tsx +0 -24
- package/src/navbar/language-switcher/content-language-switch.analysis.md +0 -15
- package/src/navbar/language-switcher/shared.analysis.md +0 -14
- package/src/navbar/language-switcher/ui-language-switch.analysis.md +0 -15
- package/src/navbar/navbar.analysis.md +0 -14
- package/src/navbar/settings.analysis.md +0 -14
- package/src/navbar/sign-in-out-btns.analysis.md +0 -14
- package/src/navbar/stories/navbar.stories.tsx +0 -31
- package/src/navbar/stories/settings.stories.tsx +0 -15
- package/src/navbar/stories/sign-in-out-btns.stories.tsx +0 -15
- package/src/navbar/stories/user-menu.stories.tsx +0 -20
- package/src/navbar/user-menu.analysis.md +0 -14
- package/src/page-wrapper.analysis.md +0 -14
- package/src/render-article.analysis.md +0 -15
- package/src/renditions/file-download.analysis.md +0 -14
- package/src/renditions/file-download.stories.tsx +0 -19
- package/src/renditions/html.analysis.md +0 -17
- package/src/renditions/html.stories.tsx +0 -19
- package/src/renditions/image/container.analysis.md +0 -15
- package/src/renditions/image/container.stories.tsx +0 -19
- package/src/renditions/image/rendition.analysis.md +0 -14
- package/src/renditions/image/rendition.stories.tsx +0 -19
- package/src/restriction-menu/restriction-menu-container.analysis.md +0 -14
- package/src/restriction-menu/restriction-menu-item.analysis.md +0 -14
- package/src/restriction-menu/restriction-menu.analysis.md +0 -17
- package/src/results/analysis/cards.analysis.md +0 -14
- package/src/results/analysis/dialog-filter.analysis.md +0 -17
- package/src/results/analysis/empty.analysis.md +0 -14
- package/src/results/analysis/filter-navbar.analysis.md +0 -16
- package/src/results/analysis/pagination.analysis.md +0 -14
- package/src/results/analysis/table-with-images.analysis.md +0 -15
- package/src/results/analysis/table.analysis.md +0 -15
- package/src/results/filter-sidebar/index.analysis.md +0 -14
- package/src/results/generic/table-result-list.analysis.md +0 -15
- package/src/results/generic/table-result-list.stories.tsx +0 -21
- package/src/results/stories/cards.stories.tsx +0 -66
- package/src/results/stories/dialog-filter.stories.tsx +0 -20
- package/src/results/stories/empty.stories.tsx +0 -25
- package/src/results/stories/filter-navbar.stories.tsx +0 -19
- package/src/results/stories/filter-sidebar.stories.tsx +0 -20
- package/src/results/stories/pagination.stories.tsx +0 -24
- package/src/results/stories/table-with-images.stories.tsx +0 -19
- package/src/results/stories/table.stories.tsx +0 -78
- package/src/search-input.analysis.md +0 -15
- package/src/share-button.analysis.md +0 -19
- package/src/stories/autocomplete.stories.tsx +0 -20
- package/src/stories/breadcrumb.stories.tsx +0 -93
- package/src/stories/check-article-lang.stories.tsx +0 -22
- package/src/stories/render-article.stories.tsx +0 -19
- package/src/stories/search-input.stories.tsx +0 -21
- package/src/stories/share-button.stories.tsx +0 -15
package/README.md
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
# C-Rex Components
|
|
2
|
-
|
|
3
|
-
A collection of reusable React components built on top of @c-rex/ui for the C-Rex application.
|
|
4
|
-
|
|
5
|
-
## Features
|
|
6
|
-
|
|
7
|
-
- Pre-built components following C-Rex design system
|
|
8
|
-
- Built with TypeScript for type safety
|
|
9
|
-
- Fully customizable and extensible
|
|
10
|
-
- Integration with C-Rex services and utilities
|
|
11
|
-
|
|
12
|
-
## Installation
|
|
13
|
-
|
|
14
|
-
This package is part of the C-Rex monorepo and comes pre-installed. If you need to install it separately:
|
|
15
|
-
|
|
16
|
-
```bash
|
|
17
|
-
npm install @c-rex/components
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## Available Components
|
|
21
|
-
|
|
22
|
-
### AppSidebar
|
|
23
|
-
A navigation sidebar component that supports:
|
|
24
|
-
- Nested menu items
|
|
25
|
-
- Loading states with skeletons
|
|
26
|
-
- Active state indicators
|
|
27
|
-
- Collapsible functionality
|
|
28
|
-
|
|
29
|
-
```tsx
|
|
30
|
-
import { AppSidebar } from '@c-rex/components';
|
|
31
|
-
|
|
32
|
-
<AppSidebar
|
|
33
|
-
data={treeData}
|
|
34
|
-
loading={false}
|
|
35
|
-
/>
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Development
|
|
39
|
-
|
|
40
|
-
### Prerequisites
|
|
41
|
-
- Node.js 18 or higher
|
|
42
|
-
- Access to @c-rex/ui package
|
|
43
|
-
- Access to @c-rex/interfaces package
|
|
44
|
-
|
|
45
|
-
### Testing
|
|
46
|
-
```bash
|
|
47
|
-
npm run test
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### Storybook
|
|
51
|
-
View and interact with components in isolation:
|
|
52
|
-
```bash
|
|
53
|
-
npm run storybook
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
## Contributing
|
|
57
|
-
|
|
58
|
-
1. Components should be built using @c-rex/ui as the foundation
|
|
59
|
-
2. Include TypeScript types
|
|
60
|
-
3. Add Storybook stories for new components
|
|
61
|
-
4. Write unit tests for component logic
|
|
62
|
-
5. Follow the existing component patterns
|
|
63
|
-
|
|
64
|
-
## Dependencies
|
|
65
|
-
|
|
66
|
-
- @c-rex/ui: Base UI components
|
|
67
|
-
- @c-rex/interfaces: Type definitions
|
|
68
|
-
- @c-rex/services: API services
|
|
69
|
-
- React 18+
|
|
70
|
-
|
|
71
|
-
## License
|
|
72
|
-
|
|
73
|
-
Internal use only - C-Rex.net
|
|
1
|
+
# C-Rex Components
|
|
2
|
+
|
|
3
|
+
A collection of reusable React components built on top of @c-rex/ui for the C-Rex application.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Pre-built components following C-Rex design system
|
|
8
|
+
- Built with TypeScript for type safety
|
|
9
|
+
- Fully customizable and extensible
|
|
10
|
+
- Integration with C-Rex services and utilities
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
This package is part of the C-Rex monorepo and comes pre-installed. If you need to install it separately:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install @c-rex/components
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Available Components
|
|
21
|
+
|
|
22
|
+
### AppSidebar
|
|
23
|
+
A navigation sidebar component that supports:
|
|
24
|
+
- Nested menu items
|
|
25
|
+
- Loading states with skeletons
|
|
26
|
+
- Active state indicators
|
|
27
|
+
- Collapsible functionality
|
|
28
|
+
|
|
29
|
+
```tsx
|
|
30
|
+
import { AppSidebar } from '@c-rex/components';
|
|
31
|
+
|
|
32
|
+
<AppSidebar
|
|
33
|
+
data={treeData}
|
|
34
|
+
loading={false}
|
|
35
|
+
/>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Development
|
|
39
|
+
|
|
40
|
+
### Prerequisites
|
|
41
|
+
- Node.js 18 or higher
|
|
42
|
+
- Access to @c-rex/ui package
|
|
43
|
+
- Access to @c-rex/interfaces package
|
|
44
|
+
|
|
45
|
+
### Testing
|
|
46
|
+
```bash
|
|
47
|
+
npm run test
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Storybook
|
|
51
|
+
View and interact with components in isolation:
|
|
52
|
+
```bash
|
|
53
|
+
npm run storybook
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Contributing
|
|
57
|
+
|
|
58
|
+
1. Components should be built using @c-rex/ui as the foundation
|
|
59
|
+
2. Include TypeScript types
|
|
60
|
+
3. Add Storybook stories for new components
|
|
61
|
+
4. Write unit tests for component logic
|
|
62
|
+
5. Follow the existing component patterns
|
|
63
|
+
|
|
64
|
+
## Dependencies
|
|
65
|
+
|
|
66
|
+
- @c-rex/ui: Base UI components
|
|
67
|
+
- @c-rex/interfaces: Type definitions
|
|
68
|
+
- @c-rex/services: API services
|
|
69
|
+
- React 18+
|
|
70
|
+
|
|
71
|
+
## License
|
|
72
|
+
|
|
73
|
+
Internal use only - C-Rex.net
|
|
74
74
|
```
|
package/package.json
CHANGED
|
@@ -1,235 +1,250 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@c-rex/components",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"files": [
|
|
5
|
-
"src"
|
|
6
|
-
],
|
|
7
|
-
"publishConfig": {
|
|
8
|
-
"access": "public"
|
|
9
|
-
},
|
|
10
|
-
"sideEffects": false,
|
|
11
|
-
"exports": {
|
|
12
|
-
"./server-components": {
|
|
13
|
-
"types": "./src/generated/server-components.tsx",
|
|
14
|
-
"import": "./src/generated/server-components.tsx"
|
|
15
|
-
},
|
|
16
|
-
"./client-components": {
|
|
17
|
-
"types": "./src/generated/client-components.tsx",
|
|
18
|
-
"import": "./src/generated/client-components.tsx"
|
|
19
|
-
},
|
|
20
|
-
"./suggestion-components": {
|
|
21
|
-
"types": "./src/generated/suggestions.tsx",
|
|
22
|
-
"import": "./src/generated/suggestions.tsx"
|
|
23
|
-
},
|
|
24
|
-
"./breadcrumb": {
|
|
25
|
-
"types": "./src/breadcrumb.tsx",
|
|
26
|
-
"import": "./src/breadcrumb.tsx"
|
|
27
|
-
},
|
|
28
|
-
"./navbar": {
|
|
29
|
-
"types": "./src/navbar/navbar.tsx",
|
|
30
|
-
"import": "./src/navbar/navbar.tsx"
|
|
31
|
-
},
|
|
32
|
-
"./page-wrapper": {
|
|
33
|
-
"types": "./src/page-wrapper.tsx",
|
|
34
|
-
"import": "./src/page-wrapper.tsx"
|
|
35
|
-
},
|
|
36
|
-
"./settings-menu": {
|
|
37
|
-
"types": "./src/navbar/settings.tsx",
|
|
38
|
-
"import": "./src/navbar/settings.tsx"
|
|
39
|
-
},
|
|
40
|
-
"./favorite-button": {
|
|
41
|
-
"types": "./src/favorites/favorite-button.tsx",
|
|
42
|
-
"import": "./src/favorites/favorite-button.tsx"
|
|
43
|
-
},
|
|
44
|
-
"./flag": {
|
|
45
|
-
"types": "./src/icons/flag-icon.tsx",
|
|
46
|
-
"import": "./src/icons/flag-icon.tsx"
|
|
47
|
-
},
|
|
48
|
-
"./loading": {
|
|
49
|
-
"types": "./src/icons/loading.tsx",
|
|
50
|
-
"import": "./src/icons/loading.tsx"
|
|
51
|
-
},
|
|
52
|
-
"./
|
|
53
|
-
"types": "./src/info/
|
|
54
|
-
"import": "./src/info/
|
|
55
|
-
},
|
|
56
|
-
"./info-card": {
|
|
57
|
-
"types": "./src/info/info-card.tsx",
|
|
58
|
-
"import": "./src/info/info-card.tsx"
|
|
59
|
-
},
|
|
60
|
-
"./check-article-lang": {
|
|
61
|
-
"types": "./src/check-article-lang.tsx",
|
|
62
|
-
"import": "./src/check-article-lang.tsx"
|
|
63
|
-
},
|
|
64
|
-
"./render-article": {
|
|
65
|
-
"types": "./src/render-article.tsx",
|
|
66
|
-
"import": "./src/render-article.tsx"
|
|
67
|
-
},
|
|
68
|
-
"./html-rendition": {
|
|
69
|
-
"types": "./src/renditions/html.tsx",
|
|
70
|
-
"import": "./src/renditions/html.tsx"
|
|
71
|
-
},
|
|
72
|
-
"./image-rendition-container": {
|
|
73
|
-
"types": "./src/renditions/container.ts",
|
|
74
|
-
"import": "./src/renditions/container.ts"
|
|
75
|
-
},
|
|
76
|
-
"./autocomplete": {
|
|
77
|
-
"types": "./src/autocomplete.tsx",
|
|
78
|
-
"import": "./src/autocomplete.tsx"
|
|
79
|
-
},
|
|
80
|
-
"./result-container": {
|
|
81
|
-
"types": "./src/result-container.tsx",
|
|
82
|
-
"import": "./src/result-container.tsx"
|
|
83
|
-
},
|
|
84
|
-
"./dialog-filter": {
|
|
85
|
-
"types": "./src/results/dialog-filter.tsx",
|
|
86
|
-
"import": "./src/results/dialog-filter.tsx"
|
|
87
|
-
},
|
|
88
|
-
"./pagination": {
|
|
89
|
-
"types": "./src/results/pagination.tsx",
|
|
90
|
-
"import": "./src/results/pagination.tsx"
|
|
91
|
-
},
|
|
92
|
-
"./cards": {
|
|
93
|
-
"types": "./src/results/cards.tsx",
|
|
94
|
-
"import": "./src/results/cards.tsx"
|
|
95
|
-
},
|
|
96
|
-
"./empty": {
|
|
97
|
-
"types": "./src/results/empty.tsx",
|
|
98
|
-
"import": "./src/results/empty.tsx"
|
|
99
|
-
},
|
|
100
|
-
"./filter-sidebar": {
|
|
101
|
-
"types": "./src/results/filter-sidebar/index.tsx",
|
|
102
|
-
"import": "./src/results/filter-sidebar/index.tsx"
|
|
103
|
-
},
|
|
104
|
-
"./filter-navbar": {
|
|
105
|
-
"types": "./src/results/filter-navbar.tsx",
|
|
106
|
-
"import": "./src/results/filter-navbar.tsx"
|
|
107
|
-
},
|
|
108
|
-
"./language-store": {
|
|
109
|
-
"types": "./src/stores/language-store.ts",
|
|
110
|
-
"import": "./src/stores/language-store.ts"
|
|
111
|
-
},
|
|
112
|
-
"./highlight-store": {
|
|
113
|
-
"types": "./src/stores/highlight-store.ts",
|
|
114
|
-
"import": "./src/stores/highlight-store.ts"
|
|
115
|
-
},
|
|
116
|
-
"./favorites-store": {
|
|
117
|
-
"types": "./src/stores/favorites-store.ts",
|
|
118
|
-
"import": "./src/stores/favorites-store.ts"
|
|
119
|
-
},
|
|
120
|
-
"./search-settings-store": {
|
|
121
|
-
"types": "./src/stores/search-settings-store.ts",
|
|
122
|
-
"import": "./src/stores/search-settings-store.ts"
|
|
123
|
-
},
|
|
124
|
-
"./article-content": {
|
|
125
|
-
"types": "./src/article/article-content.tsx",
|
|
126
|
-
"import": "./src/article/article-content.tsx"
|
|
127
|
-
},
|
|
128
|
-
"./tree-of-content": {
|
|
129
|
-
"types": "./src/directoryNodes/tree-of-content.tsx",
|
|
130
|
-
"import": "./src/directoryNodes/tree-of-content.tsx"
|
|
131
|
-
},
|
|
132
|
-
"./
|
|
133
|
-
"types": "./src/
|
|
134
|
-
"import": "./src/
|
|
135
|
-
},
|
|
136
|
-
"./
|
|
137
|
-
"types": "./src/
|
|
138
|
-
"import": "./src/
|
|
139
|
-
},
|
|
140
|
-
"./
|
|
141
|
-
"types": "./src/renditions/
|
|
142
|
-
"import": "./src/renditions/
|
|
143
|
-
},
|
|
144
|
-
"./image-
|
|
145
|
-
"types": "./src/renditions/image/
|
|
146
|
-
"import": "./src/renditions/image/
|
|
147
|
-
},
|
|
148
|
-
"./
|
|
149
|
-
"types": "./src/renditions/image/
|
|
150
|
-
"import": "./src/renditions/image/
|
|
151
|
-
},
|
|
152
|
-
"./
|
|
153
|
-
"types": "./src/
|
|
154
|
-
"import": "./src/
|
|
155
|
-
},
|
|
156
|
-
"./
|
|
157
|
-
"types": "./src/
|
|
158
|
-
"import": "./src/
|
|
159
|
-
},
|
|
160
|
-
"./
|
|
161
|
-
"types": "./src/
|
|
162
|
-
"import": "./src/
|
|
163
|
-
},
|
|
164
|
-
"./
|
|
165
|
-
"types": "./src/
|
|
166
|
-
"import": "./src/
|
|
167
|
-
},
|
|
168
|
-
"./
|
|
169
|
-
"types": "./src/
|
|
170
|
-
"import": "./src/
|
|
171
|
-
},
|
|
172
|
-
"./restriction-menu
|
|
173
|
-
"types": "./src/restriction-menu/restriction-menu
|
|
174
|
-
"import": "./src/restriction-menu/restriction-menu
|
|
175
|
-
},
|
|
176
|
-
"./
|
|
177
|
-
"types": "./src/
|
|
178
|
-
"import": "./src/
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
"
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
"
|
|
191
|
-
"
|
|
192
|
-
"
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
"@
|
|
199
|
-
"@
|
|
200
|
-
"@
|
|
201
|
-
"
|
|
202
|
-
"
|
|
203
|
-
"
|
|
204
|
-
"
|
|
205
|
-
"storybook": "^8.6.12",
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
"
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
"@
|
|
212
|
-
"
|
|
213
|
-
"
|
|
214
|
-
"
|
|
215
|
-
"
|
|
216
|
-
"
|
|
217
|
-
"
|
|
218
|
-
"
|
|
219
|
-
"
|
|
220
|
-
"
|
|
221
|
-
"
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
"
|
|
225
|
-
"
|
|
226
|
-
"
|
|
227
|
-
"
|
|
228
|
-
"
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
"
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@c-rex/components",
|
|
3
|
+
"version": "0.1.39",
|
|
4
|
+
"files": [
|
|
5
|
+
"src"
|
|
6
|
+
],
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"exports": {
|
|
12
|
+
"./server-components": {
|
|
13
|
+
"types": "./src/generated/server-components.tsx",
|
|
14
|
+
"import": "./src/generated/server-components.tsx"
|
|
15
|
+
},
|
|
16
|
+
"./client-components": {
|
|
17
|
+
"types": "./src/generated/client-components.tsx",
|
|
18
|
+
"import": "./src/generated/client-components.tsx"
|
|
19
|
+
},
|
|
20
|
+
"./suggestion-components": {
|
|
21
|
+
"types": "./src/generated/suggestions.tsx",
|
|
22
|
+
"import": "./src/generated/suggestions.tsx"
|
|
23
|
+
},
|
|
24
|
+
"./breadcrumb": {
|
|
25
|
+
"types": "./src/breadcrumb.tsx",
|
|
26
|
+
"import": "./src/breadcrumb.tsx"
|
|
27
|
+
},
|
|
28
|
+
"./navbar": {
|
|
29
|
+
"types": "./src/navbar/navbar.tsx",
|
|
30
|
+
"import": "./src/navbar/navbar.tsx"
|
|
31
|
+
},
|
|
32
|
+
"./page-wrapper": {
|
|
33
|
+
"types": "./src/page-wrapper.tsx",
|
|
34
|
+
"import": "./src/page-wrapper.tsx"
|
|
35
|
+
},
|
|
36
|
+
"./settings-menu": {
|
|
37
|
+
"types": "./src/navbar/settings.tsx",
|
|
38
|
+
"import": "./src/navbar/settings.tsx"
|
|
39
|
+
},
|
|
40
|
+
"./favorite-button": {
|
|
41
|
+
"types": "./src/favorites/favorite-button.tsx",
|
|
42
|
+
"import": "./src/favorites/favorite-button.tsx"
|
|
43
|
+
},
|
|
44
|
+
"./flag": {
|
|
45
|
+
"types": "./src/icons/flag-icon.tsx",
|
|
46
|
+
"import": "./src/icons/flag-icon.tsx"
|
|
47
|
+
},
|
|
48
|
+
"./loading": {
|
|
49
|
+
"types": "./src/icons/loading.tsx",
|
|
50
|
+
"import": "./src/icons/loading.tsx"
|
|
51
|
+
},
|
|
52
|
+
"./information-unit-metadata-grid": {
|
|
53
|
+
"types": "./src/info/information-unit-metadata-grid.tsx",
|
|
54
|
+
"import": "./src/info/information-unit-metadata-grid.tsx"
|
|
55
|
+
},
|
|
56
|
+
"./info-card": {
|
|
57
|
+
"types": "./src/info/info-card.tsx",
|
|
58
|
+
"import": "./src/info/info-card.tsx"
|
|
59
|
+
},
|
|
60
|
+
"./check-article-lang": {
|
|
61
|
+
"types": "./src/check-article-lang.tsx",
|
|
62
|
+
"import": "./src/check-article-lang.tsx"
|
|
63
|
+
},
|
|
64
|
+
"./render-article": {
|
|
65
|
+
"types": "./src/render-article.tsx",
|
|
66
|
+
"import": "./src/render-article.tsx"
|
|
67
|
+
},
|
|
68
|
+
"./html-rendition": {
|
|
69
|
+
"types": "./src/renditions/html.tsx",
|
|
70
|
+
"import": "./src/renditions/html.tsx"
|
|
71
|
+
},
|
|
72
|
+
"./image-rendition-container": {
|
|
73
|
+
"types": "./src/renditions/container.ts",
|
|
74
|
+
"import": "./src/renditions/container.ts"
|
|
75
|
+
},
|
|
76
|
+
"./autocomplete": {
|
|
77
|
+
"types": "./src/autocomplete.tsx",
|
|
78
|
+
"import": "./src/autocomplete.tsx"
|
|
79
|
+
},
|
|
80
|
+
"./result-container": {
|
|
81
|
+
"types": "./src/result-container.tsx",
|
|
82
|
+
"import": "./src/result-container.tsx"
|
|
83
|
+
},
|
|
84
|
+
"./dialog-filter": {
|
|
85
|
+
"types": "./src/results/dialog-filter.tsx",
|
|
86
|
+
"import": "./src/results/dialog-filter.tsx"
|
|
87
|
+
},
|
|
88
|
+
"./pagination": {
|
|
89
|
+
"types": "./src/results/pagination.tsx",
|
|
90
|
+
"import": "./src/results/pagination.tsx"
|
|
91
|
+
},
|
|
92
|
+
"./information-unit-search-results-cards": {
|
|
93
|
+
"types": "./src/results/information-unit-search-results-cards.tsx",
|
|
94
|
+
"import": "./src/results/information-unit-search-results-cards.tsx"
|
|
95
|
+
},
|
|
96
|
+
"./empty": {
|
|
97
|
+
"types": "./src/results/empty.tsx",
|
|
98
|
+
"import": "./src/results/empty.tsx"
|
|
99
|
+
},
|
|
100
|
+
"./filter-sidebar": {
|
|
101
|
+
"types": "./src/results/filter-sidebar/index.tsx",
|
|
102
|
+
"import": "./src/results/filter-sidebar/index.tsx"
|
|
103
|
+
},
|
|
104
|
+
"./filter-navbar": {
|
|
105
|
+
"types": "./src/results/filter-navbar.tsx",
|
|
106
|
+
"import": "./src/results/filter-navbar.tsx"
|
|
107
|
+
},
|
|
108
|
+
"./language-store": {
|
|
109
|
+
"types": "./src/stores/language-store.ts",
|
|
110
|
+
"import": "./src/stores/language-store.ts"
|
|
111
|
+
},
|
|
112
|
+
"./highlight-store": {
|
|
113
|
+
"types": "./src/stores/highlight-store.ts",
|
|
114
|
+
"import": "./src/stores/highlight-store.ts"
|
|
115
|
+
},
|
|
116
|
+
"./favorites-store": {
|
|
117
|
+
"types": "./src/stores/favorites-store.ts",
|
|
118
|
+
"import": "./src/stores/favorites-store.ts"
|
|
119
|
+
},
|
|
120
|
+
"./search-settings-store": {
|
|
121
|
+
"types": "./src/stores/search-settings-store.ts",
|
|
122
|
+
"import": "./src/stores/search-settings-store.ts"
|
|
123
|
+
},
|
|
124
|
+
"./article-content": {
|
|
125
|
+
"types": "./src/article/article-content.tsx",
|
|
126
|
+
"import": "./src/article/article-content.tsx"
|
|
127
|
+
},
|
|
128
|
+
"./tree-of-content": {
|
|
129
|
+
"types": "./src/directoryNodes/tree-of-content.tsx",
|
|
130
|
+
"import": "./src/directoryNodes/tree-of-content.tsx"
|
|
131
|
+
},
|
|
132
|
+
"./directory-tree-context": {
|
|
133
|
+
"types": "./src/directoryNodes/directory-tree-context.tsx",
|
|
134
|
+
"import": "./src/directoryNodes/directory-tree-context.tsx"
|
|
135
|
+
},
|
|
136
|
+
"./share-button": {
|
|
137
|
+
"types": "./src/share-button.tsx",
|
|
138
|
+
"import": "./src/share-button.tsx"
|
|
139
|
+
},
|
|
140
|
+
"./file-download": {
|
|
141
|
+
"types": "./src/renditions/file-download.tsx",
|
|
142
|
+
"import": "./src/renditions/file-download.tsx"
|
|
143
|
+
},
|
|
144
|
+
"./image-container": {
|
|
145
|
+
"types": "./src/renditions/image/container.tsx",
|
|
146
|
+
"import": "./src/renditions/image/container.tsx"
|
|
147
|
+
},
|
|
148
|
+
"./image-rendition": {
|
|
149
|
+
"types": "./src/renditions/image/rendition.tsx",
|
|
150
|
+
"import": "./src/renditions/image/rendition.tsx"
|
|
151
|
+
},
|
|
152
|
+
"./server-image-rendition": {
|
|
153
|
+
"types": "./src/renditions/image/server-image-rendition.tsx",
|
|
154
|
+
"import": "./src/renditions/image/server-image-rendition.tsx"
|
|
155
|
+
},
|
|
156
|
+
"./article-skeleton": {
|
|
157
|
+
"types": "./src/article/article-skeleton.tsx",
|
|
158
|
+
"import": "./src/article/article-skeleton.tsx"
|
|
159
|
+
},
|
|
160
|
+
"./documents-result-list": {
|
|
161
|
+
"types": "./src/documents/result-list.tsx",
|
|
162
|
+
"import": "./src/documents/result-list.tsx"
|
|
163
|
+
},
|
|
164
|
+
"./generic-table-result-list": {
|
|
165
|
+
"types": "./src/results/generic/table-result-list.tsx",
|
|
166
|
+
"import": "./src/results/generic/table-result-list.tsx"
|
|
167
|
+
},
|
|
168
|
+
"./carousel": {
|
|
169
|
+
"types": "./src/carousel/carousel.tsx",
|
|
170
|
+
"import": "./src/carousel/carousel.tsx"
|
|
171
|
+
},
|
|
172
|
+
"./restriction-menu": {
|
|
173
|
+
"types": "./src/restriction-menu/restriction-menu.tsx",
|
|
174
|
+
"import": "./src/restriction-menu/restriction-menu.tsx"
|
|
175
|
+
},
|
|
176
|
+
"./restriction-menu-item": {
|
|
177
|
+
"types": "./src/restriction-menu/restriction-menu-item.tsx",
|
|
178
|
+
"import": "./src/restriction-menu/restriction-menu-item.tsx"
|
|
179
|
+
},
|
|
180
|
+
"./search-input": {
|
|
181
|
+
"types": "./src/search-input.tsx",
|
|
182
|
+
"import": "./src/search-input.tsx"
|
|
183
|
+
},
|
|
184
|
+
"./footer": {
|
|
185
|
+
"types": "./src/footer/footer.tsx",
|
|
186
|
+
"import": "./src/footer/footer.tsx"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"scripts": {
|
|
190
|
+
"storybook": "storybook dev -p 6006",
|
|
191
|
+
"build-storybook": "storybook build",
|
|
192
|
+
"test:watch": "jest --watch",
|
|
193
|
+
"test": "jest",
|
|
194
|
+
"lint": "eslint .",
|
|
195
|
+
"lint:fix": "eslint . --fix"
|
|
196
|
+
},
|
|
197
|
+
"devDependencies": {
|
|
198
|
+
"@c-rex/eslint-config": "*",
|
|
199
|
+
"@c-rex/typescript-config": "*",
|
|
200
|
+
"@chromatic-com/storybook": "^3.2.6",
|
|
201
|
+
"@storybook/addon-essentials": "^8.6.12",
|
|
202
|
+
"@storybook/addon-onboarding": "^8.6.12",
|
|
203
|
+
"@storybook/blocks": "^8.6.12",
|
|
204
|
+
"@storybook/nextjs": "^8.6.12",
|
|
205
|
+
"@storybook/react": "^8.6.12",
|
|
206
|
+
"@storybook/test": "^8.6.12",
|
|
207
|
+
"@turbo/gen": "^2.4.4",
|
|
208
|
+
"@types/node": "^22.13.10",
|
|
209
|
+
"@types/jest": "^29.5.14",
|
|
210
|
+
"@types/react": "19.0.10",
|
|
211
|
+
"@types/react-dom": "19.0.4",
|
|
212
|
+
"autoprefixer": "^10.4.21",
|
|
213
|
+
"eslint": "^9.23.0",
|
|
214
|
+
"eslint-plugin-storybook": "^0.12.0",
|
|
215
|
+
"jest": "^29.7.0",
|
|
216
|
+
"postcss": "^8.5.3",
|
|
217
|
+
"storybook": "^8.6.12",
|
|
218
|
+
"style-loader": "^4.0.0",
|
|
219
|
+
"tailwindcss": "^3.4.17",
|
|
220
|
+
"ts-jest": "^29.1.2",
|
|
221
|
+
"typescript": "latest"
|
|
222
|
+
},
|
|
223
|
+
"dependencies": {
|
|
224
|
+
"@c-rex/config": "*",
|
|
225
|
+
"@c-rex/constants": "*",
|
|
226
|
+
"@c-rex/contexts": "*",
|
|
227
|
+
"@c-rex/core": "*",
|
|
228
|
+
"@c-rex/interfaces": "*",
|
|
229
|
+
"@c-rex/services": "*",
|
|
230
|
+
"@c-rex/types": "*",
|
|
231
|
+
"@c-rex/ui": "*",
|
|
232
|
+
"@c-rex/utils": "*",
|
|
233
|
+
"country-flag-icons": "^1.5.19",
|
|
234
|
+
"html-react-parser": "^5.2.6",
|
|
235
|
+
"lucide-react": "^0.511.0",
|
|
236
|
+
"next": "^14",
|
|
237
|
+
"next-intl": "^4.1.0",
|
|
238
|
+
"nuqs": "^2.4.3",
|
|
239
|
+
"react": "^18.3.1",
|
|
240
|
+
"react-dom": "^18.3.1",
|
|
241
|
+
"react-icons": "^5.5.0",
|
|
242
|
+
"tailwindcss-animate": "^1.0.7",
|
|
243
|
+
"zustand": "^5.0.8"
|
|
244
|
+
},
|
|
245
|
+
"eslintConfig": {
|
|
246
|
+
"extends": [
|
|
247
|
+
"plugin:storybook/recommended"
|
|
248
|
+
]
|
|
249
|
+
}
|
|
250
|
+
}
|