@plusscommunities/pluss-feature-builder-web-d 1.0.7 → 1.0.9-beta.3
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.cjs.js → index.js} +3803 -3504
- package/dist/index.js.map +1 -0
- package/package.json +20 -27
- package/.babelrc +0 -4
- package/rollup.config.js +0 -69
- package/src/actions/featureBuilderStringsActions.js +0 -88
- package/src/actions/featureDefinitionsIndex.js +0 -258
- package/src/actions/formActions.js +0 -301
- package/src/actions/index.js +0 -12
- package/src/actions/listingActions.js +0 -352
- package/src/actions/wizardActions.js +0 -228
- package/src/components/ActivityCardExample.jsx +0 -86
- package/src/components/ActivityCardExample.module.css +0 -130
- package/src/components/BackgroundLoader.jsx +0 -33
- package/src/components/BackgroundLoader.module.css +0 -46
- package/src/components/BaseFieldConfig.jsx +0 -305
- package/src/components/BaseFieldConfig.module.css +0 -42
- package/src/components/CenteredContainer.jsx +0 -29
- package/src/components/CenteredContainer.module.css +0 -171
- package/src/components/DeleteConfirmationPopup.jsx +0 -95
- package/src/components/DeleteConfirmationPopup.module.css +0 -12
- package/src/components/ErrorBoundary.jsx +0 -134
- package/src/components/ErrorBoundary.module.css +0 -77
- package/src/components/ErrorMessage.jsx +0 -85
- package/src/components/ErrorMessage.module.css +0 -116
- package/src/components/ExampleDisplay.jsx +0 -26
- package/src/components/ExampleDisplay.module.css +0 -3
- package/src/components/FeatureBuilderSidebar.jsx +0 -84
- package/src/components/FeatureBuilderSuccessPopup.jsx +0 -49
- package/src/components/FeatureBuilderSuccessPopup.module.css +0 -41
- package/src/components/FeatureBuilderWelcomePopup.jsx +0 -51
- package/src/components/FeatureBuilderWelcomePopup.module.css +0 -21
- package/src/components/FeatureListingCard.jsx +0 -104
- package/src/components/FeatureListingCard.module.css +0 -62
- package/src/components/Fields.jsx +0 -423
- package/src/components/Fields.module.css +0 -159
- package/src/components/IconLoader.jsx +0 -153
- package/src/components/IconLoader.module.css +0 -92
- package/src/components/IconSelector.jsx +0 -111
- package/src/components/IconSelector.module.css +0 -197
- package/src/components/ListingEditor.jsx +0 -405
- package/src/components/ListingEditor.module.css +0 -14
- package/src/components/ListingSuccessPopup.jsx +0 -52
- package/src/components/LoadingScreen.jsx +0 -54
- package/src/components/LoadingScreen.module.css +0 -103
- package/src/components/LoadingState.jsx +0 -40
- package/src/components/LoadingState.module.css +0 -18
- package/src/components/PreviewFull.js +0 -24
- package/src/components/PreviewFull.module.css +0 -11
- package/src/components/PreviewGrid.js +0 -14
- package/src/components/PreviewWidget.js +0 -27
- package/src/components/PreviewWidget.module.css +0 -15
- package/src/components/SidebarLayout.jsx +0 -252
- package/src/components/SidebarLayout.module.css +0 -71
- package/src/components/SkeletonLoader.jsx +0 -128
- package/src/components/SkeletonLoader.module.css +0 -295
- package/src/components/SortButtonGroup.jsx +0 -34
- package/src/components/SortButtonGroup.module.css +0 -51
- package/src/components/ToastContainer.jsx +0 -98
- package/src/components/ToastContainer.module.css +0 -156
- package/src/components/ToggleSwitch.js +0 -40
- package/src/components/ToggleSwitch.module.css +0 -48
- package/src/components/TwoColumnInput.jsx +0 -29
- package/src/components/TwoColumnInput.module.css +0 -32
- package/src/components/ViewFull.js +0 -139
- package/src/components/ViewFull.module.css +0 -71
- package/src/components/ViewWidget.js +0 -62
- package/src/components/ViewWidget.module.css +0 -28
- package/src/components/iconCategories.js +0 -135
- package/src/components/iconImports.js +0 -409
- package/src/components/index.js +0 -59
- package/src/components/listing/FileListItem.jsx +0 -86
- package/src/components/listing/GalleryDisplay.jsx +0 -330
- package/src/components/listing/GalleryDisplay.module.css +0 -309
- package/src/components/listing/ListingCTAInput.jsx +0 -82
- package/src/components/listing/ListingDescriptionInput.jsx +0 -73
- package/src/components/listing/ListingField.jsx +0 -101
- package/src/components/listing/ListingField.module.css +0 -106
- package/src/components/listing/ListingFileInput.jsx +0 -273
- package/src/components/listing/ListingFileInput.module.css +0 -189
- package/src/components/listing/ListingForm.jsx +0 -90
- package/src/components/listing/ListingForm.module.css +0 -38
- package/src/components/listing/ListingGalleryInput.jsx +0 -239
- package/src/components/listing/ListingGalleryInput.module.css +0 -132
- package/src/components/listing/ListingImageInput.jsx +0 -153
- package/src/components/listing/ListingTextInput.jsx +0 -72
- package/src/feature.config.js +0 -130
- package/src/helper/index.js +0 -135
- package/src/hooks/useFeatureDefinitionLoader.js +0 -66
- 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 +0 -38
- package/src/pages/CreateListingPage.jsx +0 -49
- package/src/pages/EditListingPage.jsx +0 -58
- package/src/reducers/featureBuilderReducer.js +0 -739
- package/src/screens/CreateListing.module.css +0 -45
- package/src/screens/Form.module.css +0 -744
- package/src/screens/FormFieldsStep.jsx +0 -626
- package/src/screens/FormLayoutStep.jsx +0 -405
- package/src/screens/FormOverviewStep.jsx +0 -389
- package/src/screens/ListingScreen.jsx +0 -477
- package/src/screens/ListingScreen.module.css +0 -333
- package/src/selectors/featureBuilderSelectors.js +0 -533
- package/src/types/index.js +0 -91
- package/src/utils/textUtils.js +0 -89
- package/src/validators/galleryValidators.js +0 -345
- package/src/values.config.a.js +0 -49
- package/src/values.config.b.js +0 -49
- package/src/values.config.c.js +0 -49
- package/src/values.config.d.js +0 -49
- package/src/values.config.default.js +0 -49
- package/src/values.config.js +0 -49
- package/src/webapi/featureDefinitionActions.js +0 -0
- package/src/webapi/featuresActions.js +0 -90
- package/src/webapi/helper.js +0 -4
- package/src/webapi/index.js +0 -12
- package/src/webapi/listingActions.js +0 -176
|
@@ -1,333 +0,0 @@
|
|
|
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
|
-
}
|