@dracor/react 1.1.0 → 1.2.1

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 (37) hide show
  1. package/README.md +22 -0
  2. package/dist/Theme.d.ts +1 -1
  3. package/dist/components/ApiDoc/ApiDoc.d.ts +1 -1
  4. package/dist/components/AuthorInfo/AuthorInfo.d.ts +1 -1
  5. package/dist/components/Authors/Authors.d.ts +1 -1
  6. package/dist/components/Commit/Commit.d.ts +1 -1
  7. package/dist/components/DebouncedInput/DebouncedInput.d.ts +1 -1
  8. package/dist/components/DocPage/DocPage.d.ts +1 -1
  9. package/dist/components/DownloadButton/DownloadButton.d.ts +1 -1
  10. package/dist/components/IdCopy/IdCopy.d.ts +1 -1
  11. package/dist/components/IdLink/IdLink.d.ts +1 -1
  12. package/dist/components/LanguageMenu/LanguageMenu.d.ts +1 -1
  13. package/dist/components/Navigation/NavBar.d.ts +1 -1
  14. package/dist/components/Navigation/NavItem.d.ts +1 -1
  15. package/dist/components/Navigation/NavMenu.d.ts +1 -1
  16. package/dist/components/TEIText/TEIText.d.ts +1 -1
  17. package/dist/components/Table/Table.d.ts +2 -2
  18. package/dist/components/Tabs/Tabs.d.ts +1 -1
  19. package/dist/components/Years/Years.d.ts +1 -1
  20. package/dist/components/icons/Bibtex.d.ts +1 -1
  21. package/dist/components/icons/Csv.d.ts +1 -1
  22. package/dist/components/icons/Dracor.d.ts +1 -1
  23. package/dist/components/icons/Ein.d.ts +1 -1
  24. package/dist/components/icons/Gexf.d.ts +1 -1
  25. package/dist/components/icons/Graphml.d.ts +1 -1
  26. package/dist/components/icons/Json.d.ts +1 -1
  27. package/dist/components/icons/Rdf.d.ts +1 -1
  28. package/dist/components/icons/Ris.d.ts +1 -1
  29. package/dist/components/icons/Tei.d.ts +1 -1
  30. package/dist/components/icons/Txt.d.ts +1 -1
  31. package/dist/einakter-gh.d.ts +1 -1
  32. package/dist/index.es.js +1077 -1546
  33. package/dist/index.es.js.map +1 -1
  34. package/dist/index.umd.js +5 -10
  35. package/dist/index.umd.js.map +1 -1
  36. package/package.json +33 -31
  37. package/src/dracor.css +65 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dracor/react",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "description": "DraCor react component library",
5
5
  "repository": "https://github.com/dracor-org/dracor-react",
6
6
  "homepage": "https://github.com/dracor-org/dracor-react#readme",
@@ -28,56 +28,57 @@
28
28
  "react-markdown": "^10.1.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@chromatic-com/storybook": "^5.0.1",
31
+ "@chromatic-com/storybook": "^5.2.1",
32
32
  "@eslint/js": "^10.0.1",
33
33
  "@fortawesome/fontawesome-svg-core": "^7.2.0",
34
34
  "@fortawesome/free-brands-svg-icons": "^7.2.0",
35
35
  "@fortawesome/free-solid-svg-icons": "^7.2.0",
36
- "@fortawesome/react-fontawesome": "^3.2.0",
37
- "@headlessui/react": "^2.2.9",
38
- "@storybook/addon-docs": "^10.2.16",
39
- "@storybook/addon-links": "^10.2.16",
40
- "@storybook/addon-vitest": "10.2.16",
41
- "@storybook/builder-vite": "^10.2.16",
42
- "@storybook/react-vite": "^10.2.16",
36
+ "@fortawesome/react-fontawesome": "^3.3.1",
37
+ "@headlessui/react": "^2.2.10",
38
+ "@storybook/addon-docs": "^10.4.2",
39
+ "@storybook/addon-links": "^10.4.2",
40
+ "@storybook/addon-vitest": "10.4.2",
41
+ "@storybook/builder-vite": "^10.4.2",
42
+ "@storybook/react-vite": "^10.4.2",
43
43
  "@svgr/cli": "^8.1.0",
44
- "@tailwindcss/vite": "^4.2.1",
45
- "@tanstack/react-router": "^1.166.2",
44
+ "@tailwindcss/vite": "^4.3.0",
45
+ "@tanstack/react-router": "^1.170.15",
46
46
  "@tanstack/react-table": "^8.21.3",
47
47
  "@testing-library/jest-dom": "^6.9.1",
48
48
  "@testing-library/react": "^16.3.2",
49
+ "@testing-library/user-event": "^14.6.1",
49
50
  "@types/jest": "^30.0.0",
50
- "@types/react": "^19.2.14",
51
+ "@types/react": "^19.2.17",
51
52
  "@types/react-copy-to-clipboard": "^5.0.7",
52
53
  "@types/react-dom": "^19.2.3",
53
54
  "@types/swagger-ui-react": "^5.18.0",
54
- "@vitejs/plugin-react": "^5.1.4",
55
- "@vitest/browser": "^4.0.18",
56
- "@vitest/browser-playwright": "^4.0.18",
57
- "@vitest/coverage-v8": "^4.0.18",
55
+ "@vitejs/plugin-react": "^6.0.2",
56
+ "@vitest/browser": "^4.1.8",
57
+ "@vitest/browser-playwright": "^4.1.8",
58
+ "@vitest/coverage-v8": "^4.1.8",
58
59
  "CETEIcean": "^1.9.5",
59
- "eslint": "^10.0.2",
60
- "eslint-plugin-react-hooks": "^7.0.1",
60
+ "eslint": "^10.4.1",
61
+ "eslint-plugin-react-hooks": "^7.1.1",
61
62
  "eslint-plugin-react-refresh": "^0.5.2",
62
- "eslint-plugin-storybook": "^10.2.16",
63
- "globals": "^17.4.0",
64
- "jsdom": "^28.1.0",
65
- "playwright": "^1.58.2",
66
- "prettier": "^3.8.1",
67
- "react": "^19.2.4",
63
+ "eslint-plugin-storybook": "^10.4.2",
64
+ "globals": "^17.6.0",
65
+ "jsdom": "^29.1.1",
66
+ "playwright": "^1.60.0",
67
+ "prettier": "^3.8.3",
68
+ "react": "^19.2.7",
68
69
  "react-copy-to-clipboard": "^5.1.0",
69
- "react-dom": "^19.2.4",
70
+ "react-dom": "^19.2.7",
70
71
  "rehype-raw": "^7.0.0",
71
72
  "remark-gfm": "^4.0.1",
72
- "storybook": "^10.2.16",
73
- "swagger-ui-react": "^5.32.0",
74
- "tailwindcss": "^4.2.1",
73
+ "storybook": "^10.4.2",
74
+ "swagger-ui-react": "^5.32.6",
75
+ "tailwindcss": "^4.3.0",
75
76
  "typescript": "~5.9.3",
76
77
  "typescript-eslint": "^8.56.1",
77
78
  "unified": "^11.0.5",
78
- "vite": "^7.3.1",
79
- "vite-plugin-dts": "^4.5.4",
80
- "vitest": "^4.0.18"
79
+ "vite": "^8.0.16",
80
+ "vite-plugin-dts": "^5.0.2",
81
+ "vitest": "^4.1.8"
81
82
  },
82
83
  "peerDependencies": {
83
84
  "@fortawesome/fontawesome-svg-core": "^7.2.0",
@@ -106,6 +107,7 @@
106
107
  "lint": "eslint .",
107
108
  "preview": "vite preview",
108
109
  "test": "vitest",
110
+ "coverage": "vitest run --coverage",
109
111
  "storybook": "storybook dev -p 6006",
110
112
  "build-storybook": "storybook build",
111
113
  "generate-icon-components": "svgr --typescript --jsx-runtime automatic --ignore-existing --out-dir src/components/icons src/icons",
package/src/dracor.css CHANGED
@@ -144,4 +144,69 @@
144
144
  margin-top: var(--spacing-8);
145
145
  margin-bottom: var(--spacing-4);
146
146
  }
147
+
148
+ tei-castGroup {
149
+ display: block;
150
+ }
151
+ tei-castItem {
152
+ display: list-item;
153
+ }
154
+ tei-castList {
155
+ list-style-type: none;
156
+ margin-top: 1em;
157
+ margin-bottom: 1em;
158
+ }
159
+ tei-castgroup {
160
+ position: relative;
161
+ width: fit-content;
162
+ display: grid;
163
+ grid-template-columns: auto;
164
+ }
165
+ tei-castgroup tei-castitem {
166
+ grid-column: 1 / 2;
167
+ }
168
+ tei-castgroup > tei-castgroup {
169
+ grid-column: 1 / 2;
170
+ }
171
+ tei-castgroup > tei-roledesc {
172
+ position: relative;
173
+ grid-area: 999 / 2 / -1 / -1;
174
+ top: 0;
175
+ height: 100%;
176
+ width: max-content;
177
+ display: flex;
178
+ align-items: center;
179
+ margin-left: 2.4em;
180
+ }
181
+ tei-castgroup::before {
182
+ content: '';
183
+ position: relative;
184
+ grid-area: 999 / 2 / -1 / -1;
185
+ display: block;
186
+ width: 13px;
187
+ height: calc(100% - 1rem);
188
+ top: 0.5rem;
189
+ right: -0.4em;
190
+ border-top: 2px solid black;
191
+ border-bottom: 2px solid black;
192
+ border-right: 2px solid black;
193
+ border-top-right-radius: 0.5rem;
194
+ border-bottom-right-radius: 0.5rem;
195
+ }
196
+ tei-castgroup::after {
197
+ content: '';
198
+ position: relative;
199
+ grid-area: 999 / 2 / -1 / -1;
200
+ right: -1.3em;
201
+ height: calc(50% + 1px);
202
+ width: 0.7em;
203
+ border-bottom: 2px solid black;
204
+ }
205
+ tei-castlist > tei-head {
206
+ font-weight: bold;
207
+ margin-bottom: 0.5em;
208
+ }
209
+ tei-role {
210
+ font-variant: small-caps;
211
+ }
147
212
  }