optimized-react-component-library-xyz123 1.2.4 → 2.0.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.
- package/package.json +3 -6
- package/src/css/mobileView.css +1 -0
- package/src/css/questions.css +5 -0
- package/src/css/styles.css +120 -3
- package/src/css/e-tjanst-root.css +0 -117
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "optimized-react-component-library-xyz123",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "A modern React component library using TypeScript with React 19 support.",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -13,17 +13,14 @@
|
|
|
13
13
|
"./css/darkMode.css": "./src/css/darkMode.css",
|
|
14
14
|
"./css/mobileView.css": "./src/css/mobileView.css",
|
|
15
15
|
"./css/styles.css": "./src/css/styles.css",
|
|
16
|
-
"./css/questions.css": "./src/css/questions.css"
|
|
17
|
-
"./css/e-tjanst-root.css": "./src/css/e-tjanst-root.css"
|
|
18
|
-
|
|
16
|
+
"./css/questions.css": "./src/css/questions.css"
|
|
19
17
|
},
|
|
20
18
|
"files": [
|
|
21
19
|
"dist",
|
|
22
20
|
"src/css/darkMode.css",
|
|
23
21
|
"src/css/mobileView.css",
|
|
24
22
|
"src/css/styles.css",
|
|
25
|
-
"src/css/questions.css"
|
|
26
|
-
"src/css/e-tjanst-root.css"
|
|
23
|
+
"src/css/questions.css"
|
|
27
24
|
],
|
|
28
25
|
"scripts": {
|
|
29
26
|
"build": "tsup",
|
package/src/css/mobileView.css
CHANGED
package/src/css/questions.css
CHANGED
package/src/css/styles.css
CHANGED
|
@@ -15,6 +15,89 @@
|
|
|
15
15
|
--background-third: #414141;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
body {
|
|
19
|
+
color: var(--text);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
body,
|
|
23
|
+
#root {
|
|
24
|
+
min-height: 100vh;
|
|
25
|
+
margin: 0;
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
html {
|
|
31
|
+
font-size: 62.5%; /* 1rem = 10px */
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
body {
|
|
35
|
+
font-family: Arial;
|
|
36
|
+
font-size: 1.6rem;
|
|
37
|
+
font-weight: 400;
|
|
38
|
+
background-color: var(--background);
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
min-height: 100vh;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
body a {
|
|
45
|
+
text-decoration: underline;
|
|
46
|
+
text-underline-offset: 0.35rem;
|
|
47
|
+
line-height: 2rem;
|
|
48
|
+
display: inline-flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
color: var(--action);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
body a:hover {
|
|
54
|
+
text-decoration: underline 0.2rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
#root {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
width: 100%;
|
|
61
|
+
margin: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
main {
|
|
65
|
+
flex: 1;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
#main-content:focus:focus-visible,
|
|
69
|
+
h1:focus:focus-visible,
|
|
70
|
+
h2:focus:focus-visible,
|
|
71
|
+
#pts-form-id-error-summary:focus:focus-visible,
|
|
72
|
+
#pts-error-summary:focus:focus-visible {
|
|
73
|
+
outline: none !important;
|
|
74
|
+
border: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
h1,
|
|
78
|
+
h2,
|
|
79
|
+
h3 {
|
|
80
|
+
margin: 0;
|
|
81
|
+
margin-bottom: 3.6rem;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
h1 {
|
|
85
|
+
font-size: 2.4rem;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
h2 {
|
|
89
|
+
font-size: 2rem;
|
|
90
|
+
width: 100%;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
h3 {
|
|
94
|
+
font-size: 1.6rem;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
h4 {
|
|
98
|
+
margin: 0;
|
|
99
|
+
font-size: 1.6rem;
|
|
100
|
+
}
|
|
18
101
|
|
|
19
102
|
#main-content {
|
|
20
103
|
padding-top: 3.6rem;
|
|
@@ -25,6 +108,43 @@
|
|
|
25
108
|
width: 100%;
|
|
26
109
|
}
|
|
27
110
|
|
|
111
|
+
section {
|
|
112
|
+
display: flex;
|
|
113
|
+
flex-direction: column;
|
|
114
|
+
background-color: var(--main);
|
|
115
|
+
padding: 3.6rem;
|
|
116
|
+
margin: 1.6rem 0.8rem;
|
|
117
|
+
border-radius: 0.4rem;
|
|
118
|
+
margin-left: 0.8rem;
|
|
119
|
+
margin-right: 0.8rem;
|
|
120
|
+
margin-top: 1.6rem;
|
|
121
|
+
}
|
|
122
|
+
/* ?? Make changes in html ?? ----
|
|
123
|
+
.pts-button{
|
|
124
|
+
background-color: var(--action);
|
|
125
|
+
border: 2px solid var(--action);
|
|
126
|
+
color: var(--main);
|
|
127
|
+
padding: 8px 20px;
|
|
128
|
+
border-radius: 8px;
|
|
129
|
+
font-size: 16px;
|
|
130
|
+
cursor: pointer;
|
|
131
|
+
margin-left: 1.6rem;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.pts-button:focus,
|
|
135
|
+
.pts-button:hover{
|
|
136
|
+
background-color: var(--main);
|
|
137
|
+
border: 2px solid var(--action);
|
|
138
|
+
color: var(--action);
|
|
139
|
+
transition: 0.2s;
|
|
140
|
+
}
|
|
141
|
+
--- ?? Make changes in html ?? */
|
|
142
|
+
|
|
143
|
+
p[aria-live='assertive']:empty {
|
|
144
|
+
margin: 0;
|
|
145
|
+
padding: 0;
|
|
146
|
+
}
|
|
147
|
+
|
|
28
148
|
.pts-root-categoryDescription {
|
|
29
149
|
margin-top: 0px;
|
|
30
150
|
}
|
|
@@ -717,6 +837,3 @@ input:focus-visible:-webkit-autofill {
|
|
|
717
837
|
white-space: nowrap;
|
|
718
838
|
border: 0;
|
|
719
839
|
}
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
body {
|
|
2
|
-
color: var(--text);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
body,
|
|
6
|
-
#root {
|
|
7
|
-
min-height: 100vh;
|
|
8
|
-
margin: 0;
|
|
9
|
-
width: 100%;
|
|
10
|
-
height: 100%;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
html {
|
|
14
|
-
font-size: 62.5%; /* 1rem = 10px */
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
body {
|
|
18
|
-
font-family: Arial;
|
|
19
|
-
font-size: 1.6rem;
|
|
20
|
-
font-weight: 400;
|
|
21
|
-
background-color: var(--background);
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
min-height: 100vh;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
body a {
|
|
28
|
-
text-decoration: underline;
|
|
29
|
-
text-underline-offset: 0.35rem;
|
|
30
|
-
line-height: 2rem;
|
|
31
|
-
display: inline-flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
color: var(--action);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
body a:hover {
|
|
37
|
-
text-decoration: underline 0.2rem;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
#root {
|
|
41
|
-
display: flex;
|
|
42
|
-
flex-direction: column;
|
|
43
|
-
width: 100%;
|
|
44
|
-
margin: 0;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
main {
|
|
48
|
-
flex: 1;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
#main-content:focus:focus-visible,
|
|
52
|
-
h1:focus:focus-visible,
|
|
53
|
-
h2:focus:focus-visible,
|
|
54
|
-
#pts-form-id-error-summary:focus:focus-visible,
|
|
55
|
-
#pts-error-summary:focus:focus-visible {
|
|
56
|
-
outline: none !important;
|
|
57
|
-
border: none;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
h1,
|
|
61
|
-
h2,
|
|
62
|
-
h3 {
|
|
63
|
-
margin: 0;
|
|
64
|
-
margin-bottom: 3.6rem;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
h1 {
|
|
68
|
-
font-size: 2.4rem;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
h2 {
|
|
72
|
-
font-size: 2rem;
|
|
73
|
-
width: 100%;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
h3 {
|
|
77
|
-
font-size: 1.6rem;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
h4 {
|
|
81
|
-
margin: 0;
|
|
82
|
-
font-size: 1.6rem;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
section {
|
|
86
|
-
display: flex;
|
|
87
|
-
flex-direction: column;
|
|
88
|
-
background-color: var(--main);
|
|
89
|
-
padding: 3.6rem;
|
|
90
|
-
margin: 1.6rem 0.8rem;
|
|
91
|
-
border-radius: 0.4rem;
|
|
92
|
-
margin-left: 0.8rem;
|
|
93
|
-
margin-right: 0.8rem;
|
|
94
|
-
margin-top: 1.6rem;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
p[aria-live='assertive']:empty {
|
|
98
|
-
margin: 0;
|
|
99
|
-
padding: 0;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
fieldset {
|
|
103
|
-
border: none;
|
|
104
|
-
padding: 0;
|
|
105
|
-
margin: 0;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
@media (max-width: 750px) {
|
|
110
|
-
section {
|
|
111
|
-
margin-left: 0;
|
|
112
|
-
margin-right: 0;
|
|
113
|
-
border-radius: 0;
|
|
114
|
-
padding: 1.6rem;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|