optimized-react-component-library-xyz123 0.1.3 → 0.1.5
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 +9 -3
- package/src/css/darkMode.css +188 -0
- package/src/css/mobileView.css +183 -0
- package/src/css/styles.css +1124 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "optimized-react-component-library-xyz123",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "A modern React component library using TypeScript.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -9,12 +9,18 @@
|
|
|
9
9
|
"import": "./dist/index.mjs",
|
|
10
10
|
"require": "./dist/index.js"
|
|
11
11
|
},
|
|
12
|
-
"./css/global.css": "./src/css/global.css"
|
|
12
|
+
"./css/global.css": "./src/css/global.css",
|
|
13
|
+
"./css/darkMode.css": "./src/css/darkMode.css",
|
|
14
|
+
"./css/mobileView.css": "./src/css/mobileView.css",
|
|
15
|
+
"./css/styles.css": "./src/css/styles.css"
|
|
13
16
|
},
|
|
14
17
|
"types": "dist/index.d.ts",
|
|
15
18
|
"files": [
|
|
16
19
|
"dist",
|
|
17
|
-
"./src/css/global.css"
|
|
20
|
+
"./src/css/global.css",
|
|
21
|
+
"./src/css/darkMode.css",
|
|
22
|
+
"./src/css/mobileView.css",
|
|
23
|
+
"./src/css/styles.css"
|
|
18
24
|
],
|
|
19
25
|
"scripts": {
|
|
20
26
|
"build": "tsup src/index.tsx --dts --format esm,cjs --out-dir dist",
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
@media (prefers-color-scheme: dark) {
|
|
2
|
+
/* ---------- GENERAL ---------- */
|
|
3
|
+
|
|
4
|
+
body {
|
|
5
|
+
background-color: #414141;
|
|
6
|
+
color: #ffffff;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
section,
|
|
10
|
+
.pts-form-step-header {
|
|
11
|
+
background-color: #141414;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
#main-content a {
|
|
15
|
+
color: #b07cbf;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.pts-root-about {
|
|
19
|
+
color: #808080;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.pts-root-question input[type='text']:focus,
|
|
23
|
+
.pts-root-question input[type='email']:focus,
|
|
24
|
+
.pts-root-question input[type='tel']:focus {
|
|
25
|
+
border: 0.2rem solid #b07cbf;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.errorDot {
|
|
29
|
+
background-color: #d75055;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.errorText,
|
|
33
|
+
.pts-root-mandatoryAsterisk {
|
|
34
|
+
color: #d75055;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.pts-root-question-input-error-border,
|
|
38
|
+
.pts-root-question-input-error-border,
|
|
39
|
+
.pts-root-question-input-error-border {
|
|
40
|
+
border: 0.15rem solid #d75055 !important;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
button:focus-visible,
|
|
44
|
+
a:focus-visible,
|
|
45
|
+
input:focus-visible,
|
|
46
|
+
textarea:focus-visible,
|
|
47
|
+
.filePickLabel:focus-visible {
|
|
48
|
+
outline-color: #fff !important;
|
|
49
|
+
box-shadow: 0 0 0 4px #000 !important;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.using-mouse input:focus-visible,
|
|
53
|
+
.using-mouse button:focus-visible,
|
|
54
|
+
.using-mouse textarea:focus-visible,
|
|
55
|
+
.using-mouse a:focus-visible,
|
|
56
|
+
.using-mouse .filePickLabel:focus-visible {
|
|
57
|
+
box-shadow: 0 0 0 0px #000 !important;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.pts-root-question input[type='text'],
|
|
61
|
+
.pts-root-question input[type='email'],
|
|
62
|
+
.pts-root-question input[type='tel'] {
|
|
63
|
+
border: 1px solid #808080;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* ---------- SERVICE HEADLINE AND BODY ---------- */
|
|
67
|
+
|
|
68
|
+
.pts-moreinfo-list a {
|
|
69
|
+
color: #b07cbf;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.pts-moreinfo-list svg {
|
|
73
|
+
background-color: #b07cbf;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.pts-moreinfo-list svg path {
|
|
77
|
+
fill: #141414;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* ---------- STEPPER ---------- */
|
|
81
|
+
|
|
82
|
+
.pts-stepperDot {
|
|
83
|
+
background-color: #ffffff;
|
|
84
|
+
color: #141414;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.pts-stepperDotActive {
|
|
88
|
+
background-color: #f4bf56;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.pts-stepper-step:not(:last-child)::after {
|
|
92
|
+
background-color: #ffffff;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.pts-stepperDotDone,
|
|
96
|
+
.pts-stepperDotDone svg path {
|
|
97
|
+
background-color: #b07cbf;
|
|
98
|
+
stroke: #141414;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* ---------- STEPPER BUTTON ---------- */
|
|
102
|
+
|
|
103
|
+
.pts-forwardButton {
|
|
104
|
+
background-color: #ffffff;
|
|
105
|
+
border-color: #ffffff;
|
|
106
|
+
color: #6e3282;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.pts-backButton {
|
|
110
|
+
background-color: #ffffff;
|
|
111
|
+
border-color: #ffffff;
|
|
112
|
+
color: #6e3282;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.pts-backButton:focus,
|
|
116
|
+
.pts-backButton:hover,
|
|
117
|
+
.pts-forwardButton:focus,
|
|
118
|
+
.pts-forwardButton:hover,
|
|
119
|
+
.btn-upload:focus,
|
|
120
|
+
.btn-upload:hover {
|
|
121
|
+
background-color: #141414;
|
|
122
|
+
border-color: #141414;
|
|
123
|
+
color: #b07cbf;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* ---------- RADIO MULTIPLE ---------- */
|
|
127
|
+
|
|
128
|
+
.pts-radioMultiple-container input[type='radio'] {
|
|
129
|
+
border-color: #808080;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.pts-radioMultiple-container input[type='radio']:checked::before {
|
|
133
|
+
background-color: #b07cbf;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* ---------- MULTIPLE CHECKBOXES ---------- */
|
|
137
|
+
|
|
138
|
+
.pts-multipleCheckboxes-container input[type='checkbox'] {
|
|
139
|
+
background-color: #141414;
|
|
140
|
+
border-color: #808080;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.pts-multipleCheckboxes-container input[type='checkbox']:checked {
|
|
144
|
+
background-color: #b07cbf;
|
|
145
|
+
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* ---------- TEXTAREA ---------- */
|
|
149
|
+
|
|
150
|
+
.pts-textArea-container textarea {
|
|
151
|
+
border-color: #808080;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.pts-textArea-container textarea:focus {
|
|
155
|
+
border-color: #b07cbf;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/* ---------- EDIT PREVIEW LINK ---------- */
|
|
159
|
+
|
|
160
|
+
.pts-editPreviewLink-container button {
|
|
161
|
+
color: #b07cbf;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.pts-editPreviewLink-container svg path {
|
|
165
|
+
stroke: #b07cbf;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* ---------- GRANSKA ---------- */
|
|
169
|
+
|
|
170
|
+
.no-answer-preview-page {
|
|
171
|
+
color: #808080;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/* ---------- ERROR SUMMARY ---------- */
|
|
175
|
+
|
|
176
|
+
.pts-errorSummary-container {
|
|
177
|
+
border: 0.1rem solid #d75055;
|
|
178
|
+
border-left: 4rem solid #d75055;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.pts-errorSummary-container .errorDot {
|
|
182
|
+
color: #d75055;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.errorSummary-text {
|
|
186
|
+
color: #d75055 !important;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
@media (max-width: 1085px) {
|
|
2
|
+
.pts-footer-container {
|
|
3
|
+
height: auto;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
text-align: left;
|
|
6
|
+
padding: 1.6rem;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.pts-footer-logo {
|
|
10
|
+
position: static;
|
|
11
|
+
padding-left: 0;
|
|
12
|
+
margin-bottom: 1.6rem;
|
|
13
|
+
align-self: flex-start;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.pts-footer-linkList {
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.pts-footer-linkList ul {
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
gap: 1.6rem;
|
|
23
|
+
padding-top: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.pts-footer-linkList a span {
|
|
27
|
+
padding: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.pts-footer-container .pts-footer-linkList ul li:not(:last-child)::after {
|
|
31
|
+
display: none;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@media (max-width: 750px) {
|
|
36
|
+
#main-content {
|
|
37
|
+
padding-top: 1.6rem;
|
|
38
|
+
padding-bottom: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
section,
|
|
42
|
+
.pts-form-step-header {
|
|
43
|
+
margin-left: 0;
|
|
44
|
+
margin-right: 0;
|
|
45
|
+
border-radius: 0;
|
|
46
|
+
padding-bottom: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* --- ??? --- */
|
|
50
|
+
.pts-root-categoryDescription,
|
|
51
|
+
.pts-root-stepDescription {
|
|
52
|
+
margin-bottom: 1.6rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.pts-header-container {
|
|
56
|
+
justify-content: center;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.pts-skipLink-container {
|
|
60
|
+
left: 1.8rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* ---------- STEPPER ---------- */
|
|
64
|
+
|
|
65
|
+
.pts-stepper-step {
|
|
66
|
+
margin: 0;
|
|
67
|
+
position: relative;
|
|
68
|
+
flex: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.pts-stepper-step:not(:last-child)::after {
|
|
72
|
+
left: calc(50% + 3rem);
|
|
73
|
+
width: calc(33.33vw - 10rem);
|
|
74
|
+
right: auto;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.pts-shortNameInStepper {
|
|
78
|
+
display: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.pts-stepper-container {
|
|
82
|
+
justify-content: space-between;
|
|
83
|
+
height: 4.2rem;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.pts-errorSummary-container {
|
|
87
|
+
margin-bottom: 1.6rem;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.pts-stepperButtons-container {
|
|
91
|
+
margin-right: 1.6rem;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.pts-radioMultiple-container,
|
|
95
|
+
.pts-multipleCheckboxes-container {
|
|
96
|
+
padding-bottom: 1.6rem;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.pts-textArea-container textarea {
|
|
100
|
+
width: 100%;
|
|
101
|
+
box-sizing: border-box;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.pts-footer-container {
|
|
105
|
+
height: auto;
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
text-align: left;
|
|
108
|
+
padding: 1.6rem;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.pts-footer-logo {
|
|
112
|
+
position: static;
|
|
113
|
+
padding-left: 0;
|
|
114
|
+
margin-bottom: 1.6rem;
|
|
115
|
+
align-self: flex-start;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.pts-footer-linkList {
|
|
119
|
+
width: 100%;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.pts-footer-linkList ul {
|
|
123
|
+
flex-direction: column;
|
|
124
|
+
gap: 1.6rem;
|
|
125
|
+
padding-top: 0;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.pts-footer-linkList a span {
|
|
129
|
+
padding: 0;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.pts-footer-container .pts-footer-linkList ul li:not(:last-child)::after {
|
|
133
|
+
display: none;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.pts-question-preview {
|
|
137
|
+
flex-direction: column;
|
|
138
|
+
margin-bottom: 1.6rem;
|
|
139
|
+
padding-bottom: 0.8rem;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.pts-question-preview h4 {
|
|
143
|
+
margin-bottom: 1.6rem;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.pts-root-answer {
|
|
147
|
+
width: 100%;
|
|
148
|
+
margin-bottom: 0;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.stepInfoText,
|
|
152
|
+
.desciptionswithheadline {
|
|
153
|
+
margin-bottom: 3.6rem;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.pts-root-answer ul {
|
|
157
|
+
padding-left: 1.6rem;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.pts-serviceHeadlineAndBody-container {
|
|
161
|
+
margin: 0;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.pts-principleOfPublicity-container p {
|
|
165
|
+
margin-top: 0;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.pts-serviceHeadlineAndBody-container .pts-moreinfo-list a {
|
|
169
|
+
margin-top: 1.6rem;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.pts-footer-container {
|
|
173
|
+
margin-top: 1.6rem;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@media (max-width: 480px) {
|
|
178
|
+
.pts-stepper-step:not(:last-child)::after {
|
|
179
|
+
left: calc(50% + 2rem) !important;
|
|
180
|
+
width: calc(33.33vw - 7.7rem) !important;
|
|
181
|
+
right: auto !important;
|
|
182
|
+
}
|
|
183
|
+
}
|