@websolutespa/payload-plugin-bowl 0.0.1

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/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @websolutespa/payload-plugin-bowl
2
+
3
+ ## 0.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Added: first release.
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # @websolutespa/payload-plugin-bowl
2
+
3
+ [![npm version](https://badge.fury.io/js/%40websolutespa%2Fpayload-plugin-bowl.svg)](https://badge.fury.io/js/%40websolutespa%2Fpayload-plugin-bowl)
4
+
5
+ [![status alpha](https://img.shields.io/badge/status-alpha-red.svg)](https://shields.io/)
6
+
7
+ Bowl PayloadCms plugin of the [BOM Repository](https://github.com/websolutespa/bom) by [websolute](https://www.websolute.com/).
8
+
9
+ ---
10
+
11
+ ##### *this library is for internal usage and not production ready*
package/dist/index.css ADDED
@@ -0,0 +1,333 @@
1
+ /* src/fields/ui-languages/styles.scss */
2
+ .ui-languages {
3
+ position: sticky;
4
+ top: 90px;
5
+ z-index: 1;
6
+ padding: 10px 0;
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: space-between;
10
+ background: var(--theme-elevation-0);
11
+ border-bottom: 1px solid var(--theme-elevation-150);
12
+ margin-bottom: 1rem;
13
+ }
14
+ .ui-languages__head {
15
+ display: flex;
16
+ gap: 0.3rem;
17
+ }
18
+ .ui-languages__badge {
19
+ padding: 0.3em 0.6em;
20
+ border-radius: 3px;
21
+ background: var(--theme-elevation-100);
22
+ color: var(--theme-elevation-550);
23
+ }
24
+ .ui-languages__locales {
25
+ display: flex;
26
+ flex-wrap: wrap;
27
+ gap: 1px;
28
+ }
29
+ .ui-languages .uppercase {
30
+ text-transform: uppercase;
31
+ }
32
+ .ui-languages .btn {
33
+ display: flex;
34
+ align-items: center;
35
+ gap: 0.4em;
36
+ margin: 0;
37
+ padding: 0 0.4em;
38
+ line-height: 1;
39
+ border: 1px solid transparent;
40
+ border-radius: 4px;
41
+ }
42
+ .ui-languages .btn:hover {
43
+ border-color: var(--theme-elevation-150);
44
+ }
45
+ .ui-languages .btn:not(:hover) {
46
+ color: var(--theme-elevation-400);
47
+ }
48
+ .ui-languages .btn.active {
49
+ color: var(--theme-success-550);
50
+ }
51
+ .ui-languages .btn.active:before {
52
+ content: "";
53
+ display: block;
54
+ width: 5px;
55
+ height: 5px;
56
+ border-radius: 3px;
57
+ background: var(--theme-success-550);
58
+ }
59
+ .ui-languages .btn.empty:after {
60
+ content: "+";
61
+ display: block;
62
+ }
63
+ .ui-languages .btn__label {
64
+ text-transform: uppercase;
65
+ }
66
+ .collection-edit__sidebar::-webkit-scrollbar {
67
+ width: 0;
68
+ height: 0;
69
+ border-radius: 0;
70
+ }
71
+ .collection-edit__sidebar::-webkit-scrollbar-button {
72
+ display: none;
73
+ }
74
+ .collection-edit__sidebar::-webkit-scrollbar-button:hover {
75
+ display: none;
76
+ }
77
+ .collection-edit__sidebar::-webkit-scrollbar-thumb {
78
+ background-color: rgba(0, 0, 0, 0.4);
79
+ box-shadow: none;
80
+ border-radius: 0;
81
+ }
82
+ .collection-edit__sidebar::-webkit-scrollbar-thumb:hover {
83
+ background-color: rgba(0, 0, 0, 0.4);
84
+ }
85
+ .collection-edit__sidebar::-webkit-scrollbar-track {
86
+ background-color: transparent;
87
+ border-radius: 0;
88
+ }
89
+ .collection-edit__sidebar::-webkit-scrollbar-track:hover {
90
+ background-color: transparent;
91
+ }
92
+ .collection-edit__sidebar {
93
+ overflow-y: auto;
94
+ overflow-x: hidden;
95
+ }
96
+
97
+ /* src/fields/localized-field/styles.scss */
98
+ .btn--localize {
99
+ margin: 0;
100
+ padding: 0 0.4em;
101
+ line-height: 1;
102
+ border: 1px solid transparent;
103
+ border-radius: 4px;
104
+ }
105
+ .btn--localize:hover {
106
+ border-color: var(--theme-elevation-150);
107
+ }
108
+ .btn--localize .localized-field__locale {
109
+ display: none;
110
+ }
111
+ .btn--localize .btn__label {
112
+ display: inline-flex;
113
+ align-items: center;
114
+ gap: 0.4rem;
115
+ }
116
+ .btn--localize .btn__label svg {
117
+ fill: currentColor;
118
+ width: 14px;
119
+ height: 14px;
120
+ }
121
+ .localized-field {
122
+ padding-top: 0.4807692308rem;
123
+ padding-bottom: 0.4807692308rem;
124
+ color: var(--theme-elevation-400);
125
+ transform: translateY(-1.9230769231rem);
126
+ }
127
+ .localized-field__locale {
128
+ text-transform: uppercase;
129
+ }
130
+ .localized-field__locales {
131
+ display: flex;
132
+ flex-wrap: wrap;
133
+ gap: 1px;
134
+ margin-bottom: 1rem;
135
+ }
136
+ .localized-field__locales .btn {
137
+ display: flex;
138
+ align-items: center;
139
+ gap: 0.4em;
140
+ margin: 0;
141
+ padding: 0 0.4em;
142
+ line-height: 1;
143
+ border: 1px solid transparent;
144
+ border-radius: 4px;
145
+ }
146
+ .localized-field__locales .btn:hover {
147
+ border-color: var(--theme-elevation-150);
148
+ }
149
+ .localized-field__locales .btn:not(:hover) {
150
+ color: var(--theme-elevation-400);
151
+ }
152
+ .localized-field__locales .btn.active {
153
+ color: var(--theme-success-550);
154
+ }
155
+ .localized-field__locales .btn.active:before {
156
+ content: "";
157
+ display: block;
158
+ width: 5px;
159
+ height: 5px;
160
+ border-radius: 3px;
161
+ background: var(--theme-success-550);
162
+ }
163
+ .localized-field__locales .btn.empty:after {
164
+ content: "+";
165
+ display: block;
166
+ }
167
+ .localized-field__locales .btn__label {
168
+ text-transform: uppercase;
169
+ }
170
+ .localized-field__modal:before,
171
+ .localized-field__modal:after {
172
+ content: " ";
173
+ position: absolute;
174
+ top: 0;
175
+ right: 0;
176
+ bottom: 0;
177
+ left: 0;
178
+ pointer-events: none;
179
+ }
180
+ .localized-field__modal:before {
181
+ background: var(--theme-bg);
182
+ opacity: 0.85;
183
+ }
184
+ .localized-field__modal:after {
185
+ backdrop-filter: blur(5px);
186
+ }
187
+ .localized-field__modal .template-minimal {
188
+ display: flex;
189
+ width: 100%;
190
+ justify-content: center;
191
+ align-items: center;
192
+ padding: 1.9230769231rem;
193
+ margin-left: auto;
194
+ margin-right: auto;
195
+ min-height: 100%;
196
+ min-height: 100vh;
197
+ z-index: 1;
198
+ position: relative;
199
+ }
200
+ .localized-field__header {
201
+ width: 100%;
202
+ display: flex;
203
+ justify-content: space-between;
204
+ margin: 0 0 0.6rem 0;
205
+ }
206
+ .localized-field__header h3 {
207
+ display: flex;
208
+ gap: 0.5em;
209
+ margin: 0;
210
+ }
211
+ .localized-field__header h3 svg {
212
+ width: 1em;
213
+ height: 1em;
214
+ fill: currentColor;
215
+ }
216
+ .localized-field__main .rich-text__editor {
217
+ overflow-x: hidden;
218
+ overflow-y: auto;
219
+ max-height: max(160px, 100vh - 650px);
220
+ }
221
+ .localized-field__reference {
222
+ color: var(--theme-elevation-400);
223
+ }
224
+ .localized-field__preview {
225
+ margin: 0 0 0.6rem 0;
226
+ padding: 1em;
227
+ max-height: 150px;
228
+ overflow-x: hidden;
229
+ overflow-y: auto;
230
+ border: 2px solid var(--theme-elevation-150);
231
+ border-radius: 4px;
232
+ color: var(--theme-elevation-400);
233
+ }
234
+ .localized-field__foot {
235
+ display: flex;
236
+ gap: 2rem;
237
+ }
238
+ .localized-field__foot > .btn,
239
+ .localized-field__foot > .form-submit {
240
+ flex: 1 1 calc(50% - 1rem);
241
+ }
242
+ .localized-field__foot > .btn > .btn,
243
+ .localized-field__foot > .form-submit > .btn {
244
+ width: 100%;
245
+ }
246
+
247
+ /* src/fields/color-picker/styles.scss */
248
+ .add-color.btn {
249
+ margin: 0;
250
+ padding: 0;
251
+ border: 2px solid #fff;
252
+ }
253
+ .custom-color-picker__btn.btn {
254
+ margin: 0.4807692308rem;
255
+ }
256
+ .custom-color-picker__btn.btn:first-of-type {
257
+ margin-left: unset;
258
+ }
259
+ .custom-color-picker__input {
260
+ box-shadow: 0 2px 3px 0 rgba(0, 2, 4, 0.05), 0 10px 4px -8px rgba(0, 2, 4, 0.02);
261
+ font-family: var(--font-body);
262
+ width: 100%;
263
+ border: 1px solid var(--theme-elevation-150);
264
+ background: var(--theme-input-bg);
265
+ color: var(--theme-elevation-800);
266
+ border-radius: 0;
267
+ font-size: 1rem;
268
+ height: 3.8461538462rem;
269
+ line-height: 1.9230769231rem;
270
+ padding: 0.9615384615rem 1.4423076923rem;
271
+ -webkit-appearance: none;
272
+ }
273
+ .custom-color-picker__input:not(:disabled):hover {
274
+ box-shadow: 0 2px 3px 0 rgba(0, 2, 4, 0.13), 0 6px 4px -4px rgba(0, 2, 4, 0.1);
275
+ }
276
+ .custom-color-picker__input:not(:disabled):active,
277
+ .custom-color-picker__input:not(:disabled):focus {
278
+ box-shadow: 0 2px 3px 0 rgba(0, 2, 4, 0.16), 0 6px 4px -4px rgba(0, 2, 4, 0.13);
279
+ }
280
+ .custom-color-picker__input::-webkit-input-placeholder {
281
+ color: var(--theme-elevation-400);
282
+ font-weight: normal;
283
+ font-size: 1rem;
284
+ }
285
+ .custom-color-picker__input::-moz-placeholder {
286
+ color: var(--theme-elevation-400);
287
+ font-weight: normal;
288
+ font-size: 1rem;
289
+ }
290
+ .custom-color-picker__input:hover {
291
+ border-color: var(--theme-elevation-250);
292
+ }
293
+ .custom-color-picker__input:focus,
294
+ .custom-color-picker__input:active {
295
+ border-color: var(--theme-elevation-400);
296
+ outline: 0;
297
+ }
298
+ .custom-color-picker__input:disabled {
299
+ background: var(--theme-elevation-200);
300
+ color: var(--theme-elevation-450);
301
+ }
302
+ .custom-color-picker__input:disabled:hover {
303
+ border-color: var(--theme-elevation-150);
304
+ }
305
+ .custom-color-picker__colors {
306
+ display: flex;
307
+ flex-wrap: wrap;
308
+ list-style: none;
309
+ padding: 0;
310
+ margin: 0;
311
+ }
312
+ .chip {
313
+ border-radius: 50%;
314
+ border: 2px solid #fff;
315
+ height: 2.4038461538rem;
316
+ width: 2.4038461538rem;
317
+ margin-right: 0.9615384615rem;
318
+ box-shadow: none;
319
+ }
320
+ .chip--selected {
321
+ box-shadow: 0 0 0 2px #333333;
322
+ }
323
+ .chip--clickable {
324
+ cursor: pointer;
325
+ }
326
+
327
+ /* src/fields/debug-field/styles.scss */
328
+ .custom-text {
329
+ border: 1px solid red;
330
+ padding: 10px;
331
+ }
332
+
333
+ /* src/fields/ui-static/styles.scss */