optimized-react-component-library-xyz123 2.2.6 → 2.2.7
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/dist/index.d.mts +9 -90
- package/dist/index.d.ts +9 -90
- package/dist/index.js +94 -1010
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +91 -1006
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -5
- package/src/css/darkMode.css +2 -120
- package/src/css/e-tjanst-root.css +117 -0
- package/src/css/mobileView.css +0 -96
- package/src/css/questions.css +0 -5
- package/src/css/styles.css +35 -495
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "optimized-react-component-library-xyz123",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.7",
|
|
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,14 +13,16 @@
|
|
|
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"
|
|
16
|
+
"./css/questions.css": "./src/css/questions.css",
|
|
17
|
+
"./css/e-tjanst-root.css": "./src/css/e-tjanst-root.css"
|
|
17
18
|
},
|
|
18
19
|
"files": [
|
|
19
20
|
"dist",
|
|
20
21
|
"src/css/darkMode.css",
|
|
21
22
|
"src/css/mobileView.css",
|
|
22
23
|
"src/css/styles.css",
|
|
23
|
-
"src/css/questions.css"
|
|
24
|
+
"src/css/questions.css",
|
|
25
|
+
"src/css/e-tjanst-root.css"
|
|
24
26
|
],
|
|
25
27
|
"scripts": {
|
|
26
28
|
"build": "tsup",
|
|
@@ -83,7 +85,6 @@
|
|
|
83
85
|
"date-fns": "^4.1.0",
|
|
84
86
|
"dompurify": "^3.2.6",
|
|
85
87
|
"react-bootstrap": "^2.10.10",
|
|
86
|
-
"react-dropzone": "^14.3.8"
|
|
87
|
-
"react-router-dom": "^7.13.0"
|
|
88
|
+
"react-dropzone": "^14.3.8"
|
|
88
89
|
}
|
|
89
90
|
}
|
package/src/css/darkMode.css
CHANGED
|
@@ -67,95 +67,6 @@
|
|
|
67
67
|
color: var(--dark-text);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
/*--Navigation header / menu ----*/
|
|
72
|
-
|
|
73
|
-
.pts-navigation-header-container {
|
|
74
|
-
background: var(--dark-background-second);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.pts-navigation-header-logo-container,
|
|
78
|
-
.pts-navigation-header-headline-container {
|
|
79
|
-
border-color: var(--dark-background-third)!important;
|
|
80
|
-
}
|
|
81
|
-
.pts-navigation-header-nav-container button svg path,
|
|
82
|
-
.pts-navigation-header-nav-container button svg line{
|
|
83
|
-
color: var(--dark-text);
|
|
84
|
-
fill: var(--dark-text);
|
|
85
|
-
stroke: var(--dark-text);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.pts-navigation-header-container svg path {
|
|
89
|
-
fill: var(--dark-text);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
.pts-navigation-header-nav-container,
|
|
94
|
-
.pts-navigation-header-button-label {
|
|
95
|
-
background: var(--dark-background-second);
|
|
96
|
-
color: var(--dark-text);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.pts-expand-icon svg rect{
|
|
100
|
-
fill: var(--dark-action);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
.pts-contract-icon svg rect{
|
|
105
|
-
fill: var(--dark-orientation-active);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
.pts-navigation-close-text{
|
|
110
|
-
color: var(--dark-text);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.pts-navigation-close-button{
|
|
114
|
-
background: var(--dark-main);
|
|
115
|
-
color: var(--dark-text);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.pts-navigation-close-button svg path{
|
|
119
|
-
stroke: var(--dark-text);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.pts-navigation-link-expand-button{
|
|
123
|
-
background-color: var(--dark-main);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.pts-navigation-link-expand-button svg path{
|
|
127
|
-
stroke: var(--dark-main)!important;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.pts-navigation-with-close-button,
|
|
131
|
-
.pts-navigation-menu-container,
|
|
132
|
-
.pts-navigation-button,
|
|
133
|
-
.pts-navigation-close-container,
|
|
134
|
-
.pts-sub-navigation-item,
|
|
135
|
-
.pts-sub-navigation-item a,
|
|
136
|
-
.pts-navigation-button > a {
|
|
137
|
-
background: var(--dark-main);
|
|
138
|
-
color: var(--dark-text);
|
|
139
|
-
border-color: var(--dark-background-third);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.pts-navigation-button a {
|
|
143
|
-
|
|
144
|
-
color: var(--dark-text);
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.pts-sub-navigation-container {
|
|
149
|
-
background-color: #d5b9dd;
|
|
150
|
-
border-left: var(--dark-action) 5px solid;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/*--------BREADCRUMBS------*/
|
|
154
|
-
.pts-breadcrumbs {
|
|
155
|
-
background-color: var(--dark-background-third);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
|
|
159
70
|
/*-------MAIN CONTENT-------*/
|
|
160
71
|
section,
|
|
161
72
|
.pts-form-step-header {
|
|
@@ -176,7 +87,6 @@ background-color: var(--dark-main);
|
|
|
176
87
|
.MoreInfoIcon svg {
|
|
177
88
|
background-color: var(--dark-action);
|
|
178
89
|
}
|
|
179
|
-
|
|
180
90
|
|
|
181
91
|
.pts-serviceHeadlineAndBody-container a svg path,
|
|
182
92
|
.MoreInfoIcon svg path {
|
|
@@ -251,6 +161,8 @@ background-color: var(--dark-main);
|
|
|
251
161
|
color: var(--dark-error);
|
|
252
162
|
}
|
|
253
163
|
|
|
164
|
+
.pts-root-question-input-error-border,
|
|
165
|
+
.pts-root-question-input-error-border,
|
|
254
166
|
.pts-root-question-input-error-border {
|
|
255
167
|
border: 0.15rem solid var(--dark-error) !important;
|
|
256
168
|
}
|
|
@@ -493,34 +405,4 @@ background-color: var(--dark-main);
|
|
|
493
405
|
input:-moz-autofill {
|
|
494
406
|
box-shadow: 0 0 0 1000px transparent inset !important;
|
|
495
407
|
}
|
|
496
|
-
|
|
497
|
-
/***NYTT FLYTTA?? ***/
|
|
498
|
-
.pts-standard-link-icon svg {
|
|
499
|
-
background-color: var(--dark-action);
|
|
500
|
-
}
|
|
501
|
-
.pts-standard-link svg path{
|
|
502
|
-
fill: var(--dark-main);
|
|
503
|
-
color: #000000;
|
|
504
|
-
}
|
|
505
|
-
.pts-icon-circle {
|
|
506
|
-
border: 2px solid var(--dark-action);
|
|
507
|
-
background-color: var(--dark-action);
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
.pts-collapse-content{
|
|
511
|
-
color:var(--dark-text);
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
.pts-collapse-button {
|
|
515
|
-
background-color: var(--dark-action);
|
|
516
|
-
color:var(--dark-main);
|
|
517
|
-
}
|
|
518
|
-
.pts-open-close-icon svg path{
|
|
519
|
-
fill: var(--dark-main);
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
.pts-collapse-body.open{
|
|
523
|
-
border-color: var(--dark-action);
|
|
524
|
-
background: var(--dark-main);
|
|
525
|
-
}
|
|
526
408
|
}
|
|
@@ -0,0 +1,117 @@
|
|
|
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
|
+
|
package/src/css/mobileView.css
CHANGED
|
@@ -3,101 +3,6 @@
|
|
|
3
3
|
/********************************************/
|
|
4
4
|
|
|
5
5
|
@media (max-width: 1085px) {
|
|
6
|
-
|
|
7
|
-
.pts-navigation-header-container {
|
|
8
|
-
padding:unset;
|
|
9
|
-
border-bottom: 2px solid #ddd;
|
|
10
|
-
}
|
|
11
|
-
.pts-navigation-header-content {
|
|
12
|
-
display: block;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.pts-navigation-header-logo-container {
|
|
16
|
-
padding: 1.6rem 0px;
|
|
17
|
-
width: 100%;
|
|
18
|
-
text-align: center;
|
|
19
|
-
border-bottom: 2px solid #ddd;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.pts-navigation-header-headline-container{
|
|
23
|
-
border-bottom: 2px solid #ddd;
|
|
24
|
-
height: 48px;
|
|
25
|
-
align-items: center;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.pts-site-headline,
|
|
29
|
-
.pts-navigation-header-headline-container p{
|
|
30
|
-
font-size: 1.6rem;
|
|
31
|
-
top:auto;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.pts-navigation-header-nav-container {
|
|
35
|
-
align-items: center;
|
|
36
|
-
justify-content: center;
|
|
37
|
-
height: 48px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.pts-navigation-header-nav-container button {
|
|
41
|
-
width: 100%;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
.pts-navigation-close-button {
|
|
46
|
-
align-items: center;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
margin-top: 1rem;
|
|
49
|
-
margin-bottom: 1rem;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**Navigation menu**/
|
|
53
|
-
|
|
54
|
-
.pts-navigation-menu-container {
|
|
55
|
-
top: -50px;
|
|
56
|
-
|
|
57
|
-
width: 100%;
|
|
58
|
-
max-width: unset;
|
|
59
|
-
height: 100%;
|
|
60
|
-
|
|
61
|
-
opacity: 0;
|
|
62
|
-
transform: translateY(-100%);
|
|
63
|
-
|
|
64
|
-
transition:
|
|
65
|
-
transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
|
|
66
|
-
opacity 0.25s ease;
|
|
67
|
-
|
|
68
|
-
will-change: transform, opacity;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.pts-navigation-menu-container.open {
|
|
72
|
-
position: relative;
|
|
73
|
-
transform: translateY(0);
|
|
74
|
-
opacity: 1;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.pts-navigation-close-container {
|
|
78
|
-
position: relative;
|
|
79
|
-
padding: 1px 1px;
|
|
80
|
-
height: 48px;
|
|
81
|
-
justify-content: center;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
.nav-parent-button {
|
|
86
|
-
padding-right: 5px !important;
|
|
87
|
-
border: 0px !important;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/**Breadcrumbs**/
|
|
91
|
-
.pts-breadcrumbs a,
|
|
92
|
-
.pts-crumb-label {
|
|
93
|
-
font-size: 14px;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.pts-breadcrumbs {
|
|
97
|
-
padding-left: 20px;
|
|
98
|
-
min-height: 30px;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
6
|
.pts-footer-content {
|
|
102
7
|
display: flex;
|
|
103
8
|
height: auto;
|
|
@@ -215,7 +120,6 @@
|
|
|
215
120
|
margin: 0.4rem 0;
|
|
216
121
|
}
|
|
217
122
|
|
|
218
|
-
section,
|
|
219
123
|
.pts-form-step-header {
|
|
220
124
|
margin-left: 0;
|
|
221
125
|
margin-right: 0;
|