cft-builder 0.2.2 → 0.2.4

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.
@@ -1,7 +1,7 @@
1
1
  var Ml = Object.defineProperty;
2
2
  var Dl = (n, t, e) => t in n ? Ml(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
3
  var T = (n, t, e) => (Dl(n, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { d as ti, i as Rr, a as Hi, b as Ul, e as Br, M as Pl, S as ei, U as si, g as ni, c as ri, f as fr, h as zs, j as $i, k as Vs, l as dr, m as jl, n as Hl, o as Fi, p as $l, q as Fl, r as zl, s as Kl, t as ii, u as Gl, v as Vl, w as Ft, x as zi, y as xe } from "./main-c4Fu9-qQ.js";
4
+ import { d as ti, i as Rr, a as Hi, b as Ul, e as Br, M as Pl, S as ei, U as si, g as ni, c as ri, f as fr, h as zs, j as $i, k as Vs, l as dr, m as jl, n as Hl, o as Fi, p as $l, q as Fl, r as zl, s as Kl, t as ii, u as Gl, v as Vl, w as Ft, x as zi, y as xe } from "./main-CJSNC00I.js";
5
5
  function Ki(n) {
6
6
  return n;
7
7
  }
@@ -0,0 +1,350 @@
1
+ .sideBar {
2
+ flex: 0 0 1;
3
+ width: 200px;
4
+ padding: 10px;
5
+ height: 100vh;
6
+ }
7
+ .sideBarItem {
8
+ border-radius: 3px;
9
+ height: 30px;
10
+ padding: 10px;
11
+ margin-top: 10px;
12
+ }
13
+ .page {
14
+ flex: 1 1 auto;
15
+ /* padding: 0 20px;
16
+ margin: 20px;
17
+ */
18
+ }
19
+ .component {
20
+ min-height: 60px;
21
+ padding: 0px;
22
+ }
23
+ .form-builder-column {
24
+ flex: 1 1 100%;
25
+ padding: 0px;
26
+ max-width: 100vw;
27
+ }
28
+ .form-builder-columns {
29
+ display: flex;
30
+ padding: 0px 0;
31
+ /* position: relative;
32
+ max-width: 800px;
33
+ overflow-y: auto;
34
+ */
35
+ }
36
+ .columnContainer {
37
+ display: flex;
38
+ }
39
+ .base {
40
+ padding: 0.5rem 0rem;
41
+ /* cursor: move;
42
+ */
43
+ }
44
+ .row {
45
+ padding: 0;
46
+ }
47
+ .trashDropZone {
48
+ position: relative;
49
+ text-align: center;
50
+ padding: 20px 0;
51
+ margin: 0 auto;
52
+ width: 100px;
53
+ height: 100px;
54
+ display: flex;
55
+ align-items: center;
56
+ justify-content: center;
57
+ }
58
+ .pageContainer {
59
+ display: flex;
60
+ flex: 1;
61
+ flex-direction: column;
62
+ margin-bottom: 100px;
63
+ }
64
+ .builder-component {
65
+ border: 1px dotted #fff;
66
+ }
67
+ .country-select-builder-component {
68
+ height: 35px;
69
+ }
70
+ .PhoneInputInput {
71
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
72
+ font-size: 1rem;
73
+ background: rgba(255, 255, 255, 0.05);
74
+ padding: 0.429rem 0.571rem;
75
+ border: 1px solid transparent;
76
+ transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
77
+ appearance: none;
78
+ border-radius: 6px;
79
+ }
80
+ .p-rating-item {
81
+ margin-right: 8px;
82
+ }
83
+ .big-cursor {
84
+ position: absolute;
85
+ width: 50px;
86
+ height: 50px;
87
+ border-radius: 50px;
88
+ background: #ffa3a3;
89
+ transform: translate(-50%, -50%);
90
+ }
91
+ [contenteditable]:focus {
92
+ outline: 1px dashed var(--primary-color);
93
+ padding: 5px;
94
+ }
95
+ .builder-input-label-edit:hover {
96
+ border: var(--primary-color) dashed 1px;
97
+ padding: 5px;
98
+ }
99
+ .field-form-builder {
100
+ position: relative;
101
+ }
102
+ .field-form-builder .builder-element-quick-options {
103
+ display: inline-flex !important;
104
+ z-index: 999;
105
+ top: -10px;
106
+ background-color: #fff;
107
+ padding: 10px;
108
+ border-radius: 12px;
109
+ position: absolute;
110
+ left: 50%;
111
+ transform: translate(-50%);
112
+ border-style: dashed;
113
+ border-color: var(--primary-color);
114
+ border-width: 0.5px;
115
+ opacity: 1;
116
+ transition: visibility 0s, opacity 0.3s linear;
117
+ }
118
+ .field-radiobutton .builder-radio-option-settings {
119
+ display: none !important;
120
+ }
121
+ .field-radiobutton:hover .builder-radio-option-settings {
122
+ display: inline-block !important;
123
+ }
124
+ .field-checkbox .builder-radio-option-settings {
125
+ display: none !important;
126
+ }
127
+ .field-checkbox:hover .builder-radio-option-settings {
128
+ display: inline-block !important;
129
+ }
130
+ .bg-dark {
131
+ background-color: var(--primary-color);
132
+ color: #fff;
133
+ }
134
+ .radioConditionalFieldContainer {
135
+ min-height: 300px;
136
+ border: 1px dotted #4caf50;
137
+ }
138
+ .dropZone {
139
+ flex: 0 0 auto;
140
+ height: 0px;
141
+ transition: 200ms all;
142
+ }
143
+ .dropZoneAdvance {
144
+ height: 20px;
145
+ }
146
+ .dropZoneBasic {
147
+ height: 30px;
148
+ }
149
+ .dropZone:nth-of-type(2n) {
150
+ display: none;
151
+ }
152
+ .dropZone.horizontalDrag {
153
+ width: 15px;
154
+ height: auto;
155
+ }
156
+ .dropZone.active.horizontalDrag {
157
+ width: 40px;
158
+ height: auto;
159
+ }
160
+ .dropZone:not(.horizontalDrag).isLast {
161
+ flex: 1 1 auto;
162
+ }
163
+ .dropZone.active, .trashDropZone.active {
164
+ background: var(--primary-color);
165
+ opacity: 0.25;
166
+ transition: 600ms all;
167
+ height: 30px;
168
+ margin-bottom: 10px;
169
+ }
170
+ .drop-here {
171
+ flex: 1;
172
+ display: flex;
173
+ flex-direction: column;
174
+ align-items: center;
175
+ border-width: 2px;
176
+ border-radius: 2px;
177
+ border-color: #eee;
178
+ border-style: dashed;
179
+ background-color: var(--surface-400);
180
+ opacity: 0.5;
181
+ color: #bdbdbd;
182
+ outline: none;
183
+ transition: 600ms all;
184
+ justify-content: center;
185
+ }
186
+ .drop-here.active, .drop-here:focus {
187
+ border-color: #2196f3;
188
+ }
189
+ .drop-here.disabled {
190
+ opacity: 0.6;
191
+ }
192
+ .pdf-component {
193
+ position: relative;
194
+ }
195
+ .component-block-item {
196
+ position: relative;
197
+ }
198
+ .elementDrag-icon {
199
+ display: none;
200
+ z-index: 99;
201
+ position: absolute;
202
+ right: 0;
203
+ top: 0;
204
+ margin-top: -10px;
205
+ margin-right: -10px;
206
+ background-color: var(--primary-color);
207
+ color: white;
208
+ padding: 10px;
209
+ border-radius: 100px;
210
+ }
211
+ .pdf-setting-speed-dial .p-speeddial-action {
212
+ color: #000 !important;
213
+ }
214
+ .setting-control-block {
215
+ display: none;
216
+ position: absolute;
217
+ top: 27px;
218
+ right: -10px;
219
+ }
220
+ .p-speeddial-list {
221
+ flex-direction: row;
222
+ margin-left: -159px;
223
+ }
224
+ .field-form-builder-not-preview:hover .elementDrag-icon {
225
+ display: inline;
226
+ }
227
+ .field-form-builder-not-preview:hover .setting-control-block {
228
+ display: inline;
229
+ }
230
+ .builder-element-wrapper:hover {
231
+ border: var(--primary-color) dashed 0.5px;
232
+ }
233
+ .pdf-setting-speed-dial {
234
+ display: block;
235
+ }
236
+ .pdf-setting-speed-dial button {
237
+ width: 2rem !important;
238
+ height: 2rem !important;
239
+ }
240
+ .button-spacing {
241
+ margin-top: 10px;
242
+ }
243
+ .dropzone-tooltip {
244
+ display: none;
245
+ }
246
+ .drop-here .dropzone-tooltip {
247
+ display: block;
248
+ }
249
+ .drop-here-last {
250
+ height: 800px !important;
251
+ }
252
+ /* Chrome, Safari, Opera */
253
+ @-webkit-keyframes animate1 {
254
+ 0% {
255
+ background-color: red;
256
+ }
257
+ 25% {
258
+ background-color: yellow;
259
+ }
260
+ 50% {
261
+ background-color: blue;
262
+ }
263
+ 100% {
264
+ background-color: green;
265
+ }
266
+ }
267
+ /* Standard syntax */
268
+ @keyframes animate1 {
269
+ 0% {
270
+ background-color: #fff;
271
+ }
272
+ 25% {
273
+ background-color: #e4efc7;
274
+ }
275
+ 50% {
276
+ background-color: #d0e1a3;
277
+ }
278
+ 100% {
279
+ background-color: #c8e188;
280
+ }
281
+ }
282
+ .new-field {
283
+ background-color: #c8e188;
284
+ -webkit-animation-name: animate1;
285
+ /* Chrome, Safari, Opera */
286
+ -webkit-animation-duration: 7s;
287
+ /* Chrome, Safari, Opera */
288
+ animation-name: animate1;
289
+ animation-duration: 7s;
290
+ box-shadow: 10px;
291
+ transition: 100ms all;
292
+ }
293
+ .emoji {
294
+ --emoji-rows: 5;
295
+ /* display: inline-grid;
296
+ max-width: 900px;
297
+ */
298
+ display: grid;
299
+ grid-auto-rows: 1fr;
300
+ /* gap: 1em;
301
+ */
302
+ grid-template-columns: repeat(var(--emoji-rows), minmax(0, 1fr));
303
+ }
304
+ @media only screen and (max-width: 680px) {
305
+ .emoji {
306
+ grid-template-columns: minmax(0, 400px);
307
+ justify-content: center;
308
+ }
309
+ }
310
+ .emoji label {
311
+ border: 1px solid var(--primary-color) !important;
312
+ /* border-radius: 5px;
313
+ */
314
+ }
315
+ .emoji input {
316
+ max-width: 250px;
317
+ position: fixed;
318
+ opacity: 0;
319
+ pointer-events: none;
320
+ }
321
+ .emoji span {
322
+ /* border-radius: 5px;
323
+ */
324
+ display: flex;
325
+ justify-content: center;
326
+ align-items: center;
327
+ text-align: center;
328
+ box-sizing: border-box;
329
+ width: 100%;
330
+ height: 100%;
331
+ padding: 10px;
332
+ background: #dcdcdc 0;
333
+ transition: background 0.2s ease-in-out;
334
+ }
335
+ .emoji input:checked + span {
336
+ outline: var(--primary-color) auto 1px;
337
+ background: var(--primary-color) !important;
338
+ color: #fff;
339
+ }
340
+ .emoji input:focus + span {
341
+ /* outline: -webkit-focus-ring-color auto 1px;
342
+ */
343
+ background: var(--primary-color);
344
+ }
345
+ .emoji span:hover {
346
+ background: var(--primary-color);
347
+ color: #fff;
348
+ }
349
+ /* outline: #0F8BFD auto 0.5px;
350
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cft-builder",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"