tycho-components 0.37.1 → 0.37.2

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.
@@ -1,2 +1,3 @@
1
+ import './style.scss';
1
2
  import { PageRenderViewProps } from './types';
2
3
  export default function PageRenderView({ elements, selectedTier, corpus, displayTags, showLineNumbers, highlightSentenceUid, activeTokenKey, selectedTokenKeys, tokenSelectionKey, getDisplayValue, getTokenStyle, getTokenClassName, isTokenEdited, getParticipantName, getParticipantColor, onTokenClick, onTokenHover, onParticipantHover, wrapToken, renderTokenSuffix, }: PageRenderViewProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import cx from 'classnames';
3
+ import './style.scss';
3
4
  import collapseElementsForTier from './collapseElementsForTier';
4
5
  import isTokenRefVisible, { tokenRefToToken } from './tokenUtils';
5
6
  import { PageRenderElementType, } from './types';
@@ -0,0 +1,109 @@
1
+ .page-render-elements {
2
+ display: flex;
3
+ flex-flow: wrap;
4
+
5
+ .line-break {
6
+ width: 100%;
7
+ margin: 2px 0;
8
+ background-color: transparent;
9
+ border: none;
10
+
11
+ + .line-break {
12
+ margin: var(--spacing-100) 0;
13
+ }
14
+ }
15
+
16
+ .line-break-number {
17
+ position: relative;
18
+ left: calc(-1 * var(--spacing-150));
19
+ top: var(--spacing-075);
20
+ font-size: 0.7em;
21
+ }
22
+
23
+ .mark {
24
+ font-family: 'Georgia', serif;
25
+ cursor: pointer;
26
+ @include body-xmedium-1;
27
+ display: inline-flex;
28
+ height: var(--spacing-300);
29
+ padding: 0 var(--spacing-050);
30
+ margin-bottom: var(--spacing-050);
31
+ width: auto;
32
+ background-color: var(--layer-semantic-warning);
33
+ line-height: var(--spacing-300);
34
+
35
+ &.selected {
36
+ background-color: var(--layer-semantic-danger);
37
+ color: var(--text-primary);
38
+ }
39
+ }
40
+
41
+ .token {
42
+ font-family: 'Georgia', serif;
43
+ cursor: pointer;
44
+ @include body-xmedium-1;
45
+ display: inline-flex;
46
+ align-items: center;
47
+ height: var(--spacing-300);
48
+ line-height: var(--spacing-300);
49
+ min-height: 0;
50
+ padding: 0 var(--spacing-050);
51
+ margin-bottom: var(--spacing-050);
52
+ width: auto;
53
+
54
+ sup {
55
+ font-size: var(--spacing-150);
56
+ line-height: 0;
57
+ vertical-align: super;
58
+ margin-bottom: var(--spacing-100);
59
+ }
60
+
61
+ &.highlight {
62
+ background-color: var(--layer-semantic-warning);
63
+ }
64
+
65
+ &.edited {
66
+ border-bottom: 1px dashed var(--text-on-color-accent);
67
+ }
68
+
69
+ &.review {
70
+ background-color: color-mix(
71
+ in srgb,
72
+ var(--semantic-danger-70) 50%,
73
+ transparent
74
+ );
75
+ }
76
+
77
+ &.inconsistency {
78
+ border-bottom: 2px dashed var(--semantic-danger-70);
79
+ }
80
+
81
+ &.ignore {
82
+ opacity: 0.6;
83
+ }
84
+
85
+ &.comment {
86
+ border-bottom: 2px dashed var(--semantic-success-60);
87
+ }
88
+
89
+ &.selected {
90
+ background-color: var(--layer-semantic-danger);
91
+ color: var(--text-primary);
92
+ }
93
+
94
+ &.participant {
95
+ border-bottom-width: 1px;
96
+ border-bottom-style: solid;
97
+ }
98
+ }
99
+
100
+ .participant {
101
+ margin-right: var(--spacing-100);
102
+ border-radius: var(--radius-200);
103
+ padding: 0 var(--spacing-100);
104
+ background-color: var(--layer-hover-2);
105
+ border: 1px dashed var(--text-placeholder);
106
+ cursor: pointer;
107
+ height: var(--spacing-300);
108
+ }
109
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tycho-components",
3
3
  "private": false,
4
- "version": "0.37.1",
4
+ "version": "0.37.2",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {