@plusscommunities/pluss-feature-builder-web-d 1.0.2-beta.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/.babelrc +4 -0
- package/dist/index.cjs.js +7792 -0
- package/package.json +54 -0
- package/rollup.config.js +68 -0
- package/src/actions/featureBuilderStringsActions.js +88 -0
- package/src/actions/featureDefinitionsIndex.js +258 -0
- package/src/actions/formActions.js +311 -0
- package/src/actions/index.js +12 -0
- package/src/actions/listingActions.js +350 -0
- package/src/actions/wizardActions.js +240 -0
- package/src/components/ActivityCardExample.jsx +86 -0
- package/src/components/ActivityCardExample.module.css +130 -0
- package/src/components/BackgroundLoader.jsx +33 -0
- package/src/components/BackgroundLoader.module.css +46 -0
- package/src/components/BaseFieldConfig.jsx +305 -0
- package/src/components/BaseFieldConfig.module.css +42 -0
- package/src/components/CenteredContainer.jsx +29 -0
- package/src/components/CenteredContainer.module.css +171 -0
- package/src/components/DeleteConfirmationPopup.jsx +95 -0
- package/src/components/DeleteConfirmationPopup.module.css +12 -0
- package/src/components/ErrorBoundary.jsx +134 -0
- package/src/components/ErrorBoundary.module.css +77 -0
- package/src/components/ErrorMessage.jsx +85 -0
- package/src/components/ErrorMessage.module.css +116 -0
- package/src/components/ExampleDisplay.jsx +26 -0
- package/src/components/ExampleDisplay.module.css +3 -0
- package/src/components/FeatureBuilderSidebar.jsx +84 -0
- package/src/components/FeatureBuilderSuccessPopup.jsx +55 -0
- package/src/components/FeatureBuilderSuccessPopup.module.css +43 -0
- package/src/components/FeatureBuilderWelcomePopup.jsx +51 -0
- package/src/components/FeatureBuilderWelcomePopup.module.css +21 -0
- package/src/components/FeatureListingCard.jsx +104 -0
- package/src/components/FeatureListingCard.module.css +62 -0
- package/src/components/Fields.jsx +460 -0
- package/src/components/Fields.module.css +159 -0
- package/src/components/IconLoader.jsx +153 -0
- package/src/components/IconLoader.module.css +92 -0
- package/src/components/IconSelector.jsx +112 -0
- package/src/components/IconSelector.module.css +197 -0
- package/src/components/ListingEditor.jsx +406 -0
- package/src/components/ListingEditor.module.css +14 -0
- package/src/components/ListingSuccessPopup.jsx +52 -0
- package/src/components/LoadingScreen.jsx +54 -0
- package/src/components/LoadingScreen.module.css +103 -0
- package/src/components/LoadingState.jsx +40 -0
- package/src/components/LoadingState.module.css +18 -0
- package/src/components/PreviewFull.js +24 -0
- package/src/components/PreviewFull.module.css +11 -0
- package/src/components/PreviewGrid.js +14 -0
- package/src/components/PreviewWidget.js +27 -0
- package/src/components/PreviewWidget.module.css +15 -0
- package/src/components/SidebarLayout.jsx +292 -0
- package/src/components/SidebarLayout.module.css +145 -0
- package/src/components/SkeletonLoader.jsx +128 -0
- package/src/components/SkeletonLoader.module.css +295 -0
- package/src/components/SortButtonGroup.jsx +34 -0
- package/src/components/SortButtonGroup.module.css +51 -0
- package/src/components/ToastContainer.jsx +98 -0
- package/src/components/ToastContainer.module.css +156 -0
- package/src/components/ToggleSwitch.js +40 -0
- package/src/components/ToggleSwitch.module.css +48 -0
- package/src/components/TwoColumnInput.jsx +29 -0
- package/src/components/TwoColumnInput.module.css +32 -0
- package/src/components/ViewFull.js +139 -0
- package/src/components/ViewFull.module.css +71 -0
- package/src/components/ViewWidget.js +62 -0
- package/src/components/ViewWidget.module.css +28 -0
- package/src/components/iconCategories.js +135 -0
- package/src/components/iconImports.js +409 -0
- package/src/components/index.js +61 -0
- package/src/components/listing/FileListItem.jsx +86 -0
- package/src/components/listing/GalleryDisplay.jsx +331 -0
- package/src/components/listing/GalleryDisplay.module.css +309 -0
- package/src/components/listing/ListingCTAInput.jsx +82 -0
- package/src/components/listing/ListingDescriptionInput.jsx +73 -0
- package/src/components/listing/ListingField.jsx +101 -0
- package/src/components/listing/ListingField.module.css +106 -0
- package/src/components/listing/ListingFileInput.jsx +255 -0
- package/src/components/listing/ListingFileInput.module.css +192 -0
- package/src/components/listing/ListingForm.jsx +90 -0
- package/src/components/listing/ListingForm.module.css +38 -0
- package/src/components/listing/ListingGalleryInput.jsx +236 -0
- package/src/components/listing/ListingGalleryInput.module.css +131 -0
- package/src/components/listing/ListingImageInput.jsx +153 -0
- package/src/components/listing/ListingTextInput.jsx +72 -0
- package/src/feature.config.js +130 -0
- package/src/helper/index.js +135 -0
- package/src/hooks/useFeatureDefinitionLoader.js +62 -0
- package/src/images/full.png +0 -0
- package/src/images/fullNoTitle.png +0 -0
- package/src/images/previewWidget.png +0 -0
- package/src/images/widget.png +0 -0
- package/src/index.js +38 -0
- package/src/pages/CreateListingPage.jsx +49 -0
- package/src/pages/EditListingPage.jsx +58 -0
- package/src/reducers/featureBuilderReducer.js +744 -0
- package/src/screens/CreateListing.module.css +45 -0
- package/src/screens/Form.module.css +734 -0
- package/src/screens/FormFieldsStep.jsx +689 -0
- package/src/screens/FormLayoutStep.jsx +445 -0
- package/src/screens/FormOverviewStep.jsx +396 -0
- package/src/screens/ListingScreen.jsx +478 -0
- package/src/screens/ListingScreen.module.css +333 -0
- package/src/selectors/featureBuilderSelectors.js +529 -0
- package/src/types/index.js +91 -0
- package/src/utils/textUtils.js +89 -0
- package/src/validators/galleryValidators.js +345 -0
- package/src/values.config.a.js +49 -0
- package/src/values.config.b.js +49 -0
- package/src/values.config.c.js +49 -0
- package/src/values.config.d.js +49 -0
- package/src/values.config.js +49 -0
- package/src/webapi/featureDefinitionActions.js +0 -0
- package/src/webapi/featuresActions.js +90 -0
- package/src/webapi/helper.js +4 -0
- package/src/webapi/index.js +12 -0
- package/src/webapi/listingActions.js +176 -0
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
/* ListingScreen CSS Module */
|
|
2
|
+
|
|
3
|
+
/* Block - centered container similar to SidebarLayout */
|
|
4
|
+
.root {
|
|
5
|
+
background-color: var(--bg-white);
|
|
6
|
+
min-height: 400px;
|
|
7
|
+
width: 100%;
|
|
8
|
+
flex: 1;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
max-width: 960px;
|
|
12
|
+
margin: 0 auto;
|
|
13
|
+
padding: 32px 32px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Header Styles */
|
|
17
|
+
.header {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
margin-bottom: 24px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.headerText {
|
|
24
|
+
flex: 1;
|
|
25
|
+
margin-bottom: 16px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.headerText h1.text-h1 {
|
|
29
|
+
letter-spacing: -0.02em;
|
|
30
|
+
margin-bottom: 0.5rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.headerText p.text-h2 {
|
|
34
|
+
/* Override global h2 styles for this specific use case */
|
|
35
|
+
font-size: var(--font-size-base);
|
|
36
|
+
font-weight: normal;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.headerActions {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
gap: 16px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.message {
|
|
47
|
+
padding: 8px 12px;
|
|
48
|
+
border-radius: 4px;
|
|
49
|
+
margin-bottom: 16px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.message--success {
|
|
53
|
+
background-color: #d4edda;
|
|
54
|
+
color: #155724;
|
|
55
|
+
border: 1px solid #c3e6cb;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.message--error {
|
|
59
|
+
background-color: #f8d7da;
|
|
60
|
+
color: #721c24;
|
|
61
|
+
border: 1px solid #f5c6cb;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.empty {
|
|
65
|
+
padding: 20px;
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
flex-flow: column nowrap;
|
|
69
|
+
gap: 2rem;
|
|
70
|
+
margin: 20px 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.emptyActions {
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
align-items: center;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
gap: 12px;
|
|
79
|
+
width: 100%;
|
|
80
|
+
max-width: 300px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.emptyPrimaryButton {
|
|
84
|
+
justify-content: center;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.emptySecondaryButton {
|
|
88
|
+
justify-content: center;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.empty p {
|
|
92
|
+
font-style: italic;
|
|
93
|
+
color: gray;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.emptyStateContainer {
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
align-items: center;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
text-align: center;
|
|
102
|
+
padding: 80px 20px;
|
|
103
|
+
min-height: 400px;
|
|
104
|
+
background-color: #ffffff;
|
|
105
|
+
border-radius: 8px;
|
|
106
|
+
border: 2px dashed var(--linegrey, #e0e0e0);
|
|
107
|
+
margin-top: 16px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.emptyStateImage {
|
|
111
|
+
width: 120px;
|
|
112
|
+
height: 120px;
|
|
113
|
+
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236c757d"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 14H8v-2h4v2zm3-4H8v-2h7v2zm0-4H8V7h7v2z"/></svg>');
|
|
114
|
+
background-repeat: no-repeat;
|
|
115
|
+
background-position: center;
|
|
116
|
+
background-size: contain;
|
|
117
|
+
margin-bottom: 24px;
|
|
118
|
+
opacity: 0.6;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.emptyStateTitle {
|
|
122
|
+
color: #181c4a;
|
|
123
|
+
margin-bottom: 12px;
|
|
124
|
+
font-weight: 600;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.emptyStateDescription {
|
|
128
|
+
color: #6c757d;
|
|
129
|
+
margin-bottom: 32px;
|
|
130
|
+
max-width: 480px;
|
|
131
|
+
line-height: 1.6;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.emptyStateButton {
|
|
135
|
+
min-width: 200px;
|
|
136
|
+
padding: 12px 24px;
|
|
137
|
+
font-weight: 600;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.emptyState {
|
|
141
|
+
text-align: center;
|
|
142
|
+
padding: 40px 20px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.emptyText {
|
|
146
|
+
color: #6c757d;
|
|
147
|
+
margin-top: 16px;
|
|
148
|
+
font-size: var(--font-size-base);
|
|
149
|
+
line-height: 1.5;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* Table specific styles */
|
|
153
|
+
.root :global(.table-id) {
|
|
154
|
+
font-family: "Source Sans Pro", sans-serif;
|
|
155
|
+
font-weight: 500;
|
|
156
|
+
color: #5a5a6e;
|
|
157
|
+
font-size: var(--font-size-xs);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.root :global(.table-TitleColumn) span {
|
|
161
|
+
color: #181c4a;
|
|
162
|
+
text-decoration: none;
|
|
163
|
+
transition: color 0.2s ease-in-out;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.root :global(.table-TitleColumn) span:hover {
|
|
167
|
+
color: #5c90df;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.root :global(.table-options) {
|
|
171
|
+
display: flex;
|
|
172
|
+
align-items: center;
|
|
173
|
+
justify-content: flex-end;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.root :global(.table-options) span {
|
|
177
|
+
opacity: 0.8;
|
|
178
|
+
transition:
|
|
179
|
+
opacity 0.2s ease-in-out,
|
|
180
|
+
color 0.2s ease-in-out;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.root :global(.table-options) span:hover {
|
|
184
|
+
opacity: 1;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/* Search container */
|
|
188
|
+
.searchContainer {
|
|
189
|
+
margin-top: 20px;
|
|
190
|
+
margin-bottom: 10px;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/* Title link styling */
|
|
194
|
+
.titleContainer {
|
|
195
|
+
display: flex;
|
|
196
|
+
align-items: center;
|
|
197
|
+
gap: 8px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.titleLink {
|
|
201
|
+
cursor: pointer;
|
|
202
|
+
color: #181c4a;
|
|
203
|
+
text-decoration: none;
|
|
204
|
+
transition: color 0.2s ease-in-out;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.titleLink:hover {
|
|
208
|
+
color: #5c90df;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/* Deleted tag styling */
|
|
212
|
+
.deletedTag {
|
|
213
|
+
background-color: #6c757d;
|
|
214
|
+
color: white;
|
|
215
|
+
font-size: var(--font-size-xs);
|
|
216
|
+
padding: 2px 6px;
|
|
217
|
+
border-radius: 3px;
|
|
218
|
+
font-weight: 500;
|
|
219
|
+
text-transform: uppercase;
|
|
220
|
+
letter-spacing: 0.5px;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/* Actions container and icons */
|
|
224
|
+
.actions {
|
|
225
|
+
display: flex;
|
|
226
|
+
align-items: center;
|
|
227
|
+
gap: 8px;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.actionIcon {
|
|
231
|
+
font-size: var(--font-size-xl);
|
|
232
|
+
padding: 5px;
|
|
233
|
+
cursor: pointer;
|
|
234
|
+
color: #5c90df;
|
|
235
|
+
opacity: 0.8;
|
|
236
|
+
transition: opacity 0.2s ease-in-out;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.actionIcon:hover {
|
|
240
|
+
opacity: 1;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* Sort section */
|
|
244
|
+
.sortSection {
|
|
245
|
+
display: flex;
|
|
246
|
+
align-items: center;
|
|
247
|
+
gap: 8px;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/* Toggle container */
|
|
251
|
+
.toggleContainer {
|
|
252
|
+
display: flex;
|
|
253
|
+
align-items: center;
|
|
254
|
+
gap: 8px;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/* Loading container */
|
|
258
|
+
.loadingContainer {
|
|
259
|
+
padding: 2rem;
|
|
260
|
+
text-align: center;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/* Table column widths */
|
|
264
|
+
.dateColumn {
|
|
265
|
+
width: 120px;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.actionsColumn {
|
|
269
|
+
width: 0;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/* Deleted item styling */
|
|
273
|
+
.row--deleted {
|
|
274
|
+
opacity: 0.6;
|
|
275
|
+
background-color: #f8f9fa;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.title--deleted {
|
|
279
|
+
text-decoration: line-through;
|
|
280
|
+
color: #6c757d;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.restoreButton {
|
|
284
|
+
background-color: #28a745;
|
|
285
|
+
color: white;
|
|
286
|
+
padding: 6px 12px;
|
|
287
|
+
border-radius: 4px;
|
|
288
|
+
font-weight: bold;
|
|
289
|
+
border: none;
|
|
290
|
+
cursor: pointer;
|
|
291
|
+
font-size: var(--font-size-sm);
|
|
292
|
+
transition: background-color 0.2s ease-in-out;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.restoreButton:hover {
|
|
296
|
+
background-color: #218838;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.restoreButtonSecondary {
|
|
300
|
+
background-color: transparent;
|
|
301
|
+
color: #5c90df;
|
|
302
|
+
padding: 6px 12px;
|
|
303
|
+
border-radius: 4px;
|
|
304
|
+
font-weight: 500;
|
|
305
|
+
border: 1px solid #5c90df;
|
|
306
|
+
cursor: pointer;
|
|
307
|
+
font-size: var(--font-size-sm);
|
|
308
|
+
transition: all 0.2s ease-in-out;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.restoreButtonSecondary:hover {
|
|
312
|
+
background-color: #5c90df;
|
|
313
|
+
color: white;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/* Ensure proper table spacing */
|
|
317
|
+
.root :global(.plussTable) {
|
|
318
|
+
margin-top: 16px;
|
|
319
|
+
min-width: 100%;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/* Responsive adjustments for centered layout */
|
|
323
|
+
@media (max-width: 768px) {
|
|
324
|
+
.root {
|
|
325
|
+
padding: 1.5rem 1.5rem 2.5rem 1.5rem; /* Slightly reduced but still adequate */
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
@media (max-width: 480px) {
|
|
330
|
+
.root {
|
|
331
|
+
padding: 1rem 1rem 2rem 1rem; /* Maintain padding on small screens */
|
|
332
|
+
}
|
|
333
|
+
}
|