@bagelink/vue 0.0.142 → 0.0.147

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.
Files changed (52) hide show
  1. package/dist/components/form/inputs/ColorPicker.vue.d.ts +45 -0
  2. package/dist/components/form/inputs/ColorPicker.vue.d.ts.map +1 -0
  3. package/dist/components/form/inputs/DynamicLinkField.vue.d.ts +56 -0
  4. package/dist/components/form/inputs/DynamicLinkField.vue.d.ts.map +1 -0
  5. package/dist/components/form/inputs/PlainText.vue.d.ts +47 -0
  6. package/dist/components/form/inputs/PlainText.vue.d.ts.map +1 -0
  7. package/dist/components/form/inputs/TextArea.vue.d.ts +57 -0
  8. package/dist/components/form/inputs/TextArea.vue.d.ts.map +1 -0
  9. package/dist/components/form/inputs/index.d.ts +5 -0
  10. package/dist/components/form/inputs/index.d.ts.map +1 -1
  11. package/dist/index.cjs +674 -405
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.mjs +674 -405
  14. package/dist/style.css +1399 -55
  15. package/package.json +1 -1
  16. package/src/components/form/inputs/DynamicLinkField.vue +0 -2
  17. package/src/components/form/inputs/index.ts +5 -0
  18. package/src/index.ts +1 -0
  19. package/src/styles/bagel.css +37 -0
  20. package/src/styles/buttons.css +56 -0
  21. package/src/styles/fonts/Ploni/ploni-black.eot +0 -0
  22. package/src/styles/fonts/Ploni/ploni-black.woff +0 -0
  23. package/src/styles/fonts/Ploni/ploni-black.woff2 +0 -0
  24. package/src/styles/fonts/Ploni/ploni-bold.eot +0 -0
  25. package/src/styles/fonts/Ploni/ploni-bold.woff +0 -0
  26. package/src/styles/fonts/Ploni/ploni-bold.woff2 +0 -0
  27. package/src/styles/fonts/Ploni/ploni-demibold.eot +0 -0
  28. package/src/styles/fonts/Ploni/ploni-demibold.woff +0 -0
  29. package/src/styles/fonts/Ploni/ploni-demibold.woff2 +0 -0
  30. package/src/styles/fonts/Ploni/ploni-light.eot +0 -0
  31. package/src/styles/fonts/Ploni/ploni-light.woff +0 -0
  32. package/src/styles/fonts/Ploni/ploni-light.woff2 +0 -0
  33. package/src/styles/fonts/Ploni/ploni-medium.eot +0 -0
  34. package/src/styles/fonts/Ploni/ploni-medium.woff +0 -0
  35. package/src/styles/fonts/Ploni/ploni-medium.woff2 +0 -0
  36. package/src/styles/fonts/Ploni/ploni-regular.eot +0 -0
  37. package/src/styles/fonts/Ploni/ploni-regular.woff +0 -0
  38. package/src/styles/fonts/Ploni/ploni-regular.woff2 +0 -0
  39. package/src/styles/fonts/Ploni/ploni-ultrabold.eot +0 -0
  40. package/src/styles/fonts/Ploni/ploni-ultrabold.woff +0 -0
  41. package/src/styles/fonts/Ploni/ploni-ultrabold.woff2 +0 -0
  42. package/src/styles/fonts/Ploni/ploni-ultralight.eot +0 -0
  43. package/src/styles/fonts/Ploni/ploni-ultralight.woff +0 -0
  44. package/src/styles/fonts/Ploni/ploni-ultralight.woff2 +0 -0
  45. package/src/styles/fonts/Ploni.css +71 -0
  46. package/src/styles/inputs.css +315 -0
  47. package/src/styles/layout.css +268 -0
  48. package/src/styles/modal.css +55 -54
  49. package/src/styles/scrollbar.css +18 -0
  50. package/src/styles/text.css +35 -0
  51. package/src/styles/theme.css +736 -0
  52. package/src/styles/transitions.css +47 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.142",
4
+ "version": "0.0.147",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -96,8 +96,6 @@ interface ListItem {
96
96
  description?: string;
97
97
  }
98
98
 
99
- const initialized = ref(false);
100
-
101
99
  async function initList(e: Event) {
102
100
  await getLinkOptions(getElValue(e));
103
101
  showList.value = true;
@@ -15,3 +15,8 @@ export { default as RichTextEditor } from './RichTextEditor.vue';
15
15
  export { default as TableField } from './TableField.vue';
16
16
  export { default as DurationInput } from './DurationInput.vue';
17
17
  export { default as TextInput } from './TextInput.vue';
18
+ export { default as TextArea } from './TextArea.vue';
19
+ export { default as Checkbox } from './Checkbox.vue';
20
+ export { default as ColorPicker } from './ColorPicker.vue';
21
+ export { default as DynamicLinkField } from './DynamicLinkField.vue';
22
+ export { default as PlainText } from './PlainText.vue';
package/src/index.ts CHANGED
@@ -5,3 +5,4 @@ export { ModalPlugin, useModal } from './plugins/modal';
5
5
  export * from './utils';
6
6
  export * from './types';
7
7
  export * from './components';
8
+ import './styles/bagel.css';
@@ -0,0 +1,37 @@
1
+ @import "layout.css";
2
+ @import "inputs.css";
3
+ @import "buttons.css";
4
+ @import "text.css";
5
+ @import "scrollbar.css";
6
+ @import "theme.css";
7
+ @import "transitions.css";
8
+ @import "./fonts/Ploni.css";
9
+
10
+ :root {
11
+ --transition: all 0.2s cubic-bezier(0.1, 0.5, 0.33, 1);
12
+ --transition-ease: cubic-bezier(0.1, 0.5, 0.33, 1);
13
+ }
14
+
15
+ body {
16
+ width: 100vw;
17
+ height: 100vh;
18
+ padding: 0;
19
+ margin: 0;
20
+ }
21
+
22
+ @media (min-width: 992px) {}
23
+
24
+ @media screen and (max-width: 910px) {
25
+
26
+ body {
27
+ min-height: 100vh;
28
+ min-height: -webkit-fill-available;
29
+ height: -webkit-fill-available;
30
+
31
+ }
32
+
33
+ html {
34
+ height: -webkit-fill-available;
35
+
36
+ }
37
+ }
@@ -0,0 +1,56 @@
1
+ button,
2
+ .btn,
3
+ .btn-txt,
4
+ .btn-icon {
5
+ font-family: inherit;
6
+ white-space: nowrap;
7
+ cursor: pointer;
8
+ box-sizing: border-box;
9
+ user-select: none;
10
+ border: none;
11
+ transition: var(--bgl-transition);
12
+ border-radius: var(--btn-border-radius);
13
+ line-height: var(--btn-height);
14
+ font-size: var(--input-font-size);
15
+ display: inline-block;
16
+ height: var(--btn-height);
17
+ padding: 0
18
+ }
19
+
20
+ .btn-close {
21
+ margin-top: -20px;
22
+ margin-inline-end: -20px;
23
+ margin-inline-start: auto;
24
+ margin-bottom: 15px;
25
+ transition: var(--bgl-transition);
26
+ height: 30px;
27
+ width: 30px;
28
+ opacity: 0.6;
29
+ cursor: pointer;
30
+ border-radius: 100%;
31
+ outline: 2px solid transparent;
32
+ display: flex;
33
+ align-items: center;
34
+ justify-content: center;
35
+ }
36
+
37
+ .btn-close:hover {
38
+ background: var(--bgl-gray-light);
39
+ opacity: 1;
40
+ }
41
+
42
+ .btn-close:active {
43
+ background: var(--bgl-gray);
44
+ }
45
+
46
+ .btn-close::before {
47
+ content: "close";
48
+ font-family: "Material Symbols Outlined", serif;
49
+ }
50
+
51
+
52
+ @media screen and (max-width: 910px) {
53
+ .btn {
54
+ padding: 0 20px;
55
+ }
56
+ }
@@ -0,0 +1,71 @@
1
+ @font-face {
2
+ font-family: 'Ploni';
3
+ font-style: normal;
4
+ font-weight: 200;
5
+ font-stretch: 100%;
6
+ font-display: swap;
7
+ src: url(./Ploni/ploni-ultralight.woff2) format('woff2'), url(./Ploni/ploni-ultralight.woff) format('woff'), url(./Ploni/ploni-ultralight.eot) format('eot')
8
+ }
9
+
10
+ @font-face {
11
+ font-family: 'Ploni';
12
+ font-style: normal;
13
+ font-weight: 300;
14
+ font-stretch: 100%;
15
+ font-display: swap;
16
+ src: url(./Ploni/ploni-light.woff2) format('woff2'), url(./Ploni/ploni-light.woff) format('woff'), url(./Ploni/ploni-light.eot) format('eot')
17
+ }
18
+
19
+ @font-face {
20
+ font-family: 'Ploni';
21
+ font-style: normal;
22
+ font-weight: 400;
23
+ font-stretch: 100%;
24
+ font-display: swap;
25
+ src: url(./Ploni/ploni-regular.woff2) format('woff2'), url(./Ploni/ploni-regular.woff) format('woff'), url(./Ploni/ploni-regular.eot) format('eot')
26
+ }
27
+
28
+ @font-face {
29
+ font-family: 'Ploni';
30
+ font-style: normal;
31
+ font-weight: 500;
32
+ font-stretch: 100%;
33
+ font-display: swap;
34
+ src: url(./Ploni/ploni-medium.woff2) format('woff2'), url(./Ploni/ploni-medium.woff) format('woff'), url(./Ploni/ploni-medium.eot) format('eot')
35
+ }
36
+
37
+ @font-face {
38
+ font-family: 'Ploni';
39
+ font-style: normal;
40
+ font-weight: 600;
41
+ font-stretch: 100%;
42
+ font-display: swap;
43
+ src: url(./Ploni/ploni-demibold.woff2) format('woff2'), url(./Ploni/ploni-demibold.woff) format('woff'), url(./Ploni/ploni-demibold.eot) format('eot')
44
+ }
45
+
46
+ @font-face {
47
+ font-family: 'Ploni';
48
+ font-style: normal;
49
+ font-weight: 700;
50
+ font-stretch: 100%;
51
+ font-display: swap;
52
+ src: url(./Ploni/ploni-bold.woff2) format('woff2'), url(./Ploni/ploni-bold.woff) format('woff'), url(./Ploni/ploni-bold.eot) format('eot')
53
+ }
54
+
55
+ @font-face {
56
+ font-family: 'Ploni';
57
+ font-style: normal;
58
+ font-weight: 800;
59
+ font-stretch: 100%;
60
+ font-display: swap;
61
+ src: url(./Ploni/ploni-ultrabold.woff2) format('woff2'), url(./Ploni/ploni-ultrabold.woff) format('woff'), url(./Ploni/ploni-ultrabold.eot) format('eot')
62
+ }
63
+
64
+ @font-face {
65
+ font-family: 'Ploni';
66
+ font-style: normal;
67
+ font-weight: 900;
68
+ font-stretch: 100%;
69
+ font-display: swap;
70
+ src: url(./Ploni/ploni-black.woff2) format('woff2'), url(./Ploni/ploni-black.woff) format('woff'), url(./Ploni/ploni-black.eot) format('eot')
71
+ }
@@ -0,0 +1,315 @@
1
+ input,
2
+ textarea,
3
+ select {
4
+ font-family: inherit;
5
+ width: 100%;
6
+ }
7
+
8
+ .bagel-input {
9
+ position: relative;
10
+ display: flex;
11
+ flex-direction: column;
12
+ text-align: start;
13
+ margin-bottom: 0.5rem;
14
+ width: 100%;
15
+ }
16
+
17
+ .bagel-input label {
18
+ display: block;
19
+ font-size: var(--input-font-size);
20
+ margin-bottom: 2px;
21
+ line-height: 1.3;
22
+ color: var(--input-color);
23
+ }
24
+
25
+ .bagel-input input,
26
+ .bagel-input select,
27
+ .custom-select .input {
28
+ height: var(--input-height);
29
+ font-size: var(--input-font-size);
30
+ }
31
+
32
+ .bagel-input input,
33
+ .bagel-input textarea,
34
+ .bagel-input select,
35
+ .custom-select .input {
36
+ background: var(--input-bg);
37
+ border: none;
38
+ padding: 0.7rem;
39
+ border-radius: var(--input-border-radius);
40
+ color: var(--input-color);
41
+ min-width: calc(var(--input-height) * 3);
42
+ width: 100%;
43
+ }
44
+
45
+ .bagel-input.search-wrap {
46
+ display: flex;
47
+ flex-direction: row;
48
+ align-items: center;
49
+ }
50
+
51
+ .bagel-input.search-wrap input {
52
+ padding-inline-end: 2rem;
53
+ }
54
+
55
+ .bagel-input.search-wrap .icon-font {
56
+ margin-inline-start: -1.75rem;
57
+ }
58
+
59
+ .bagel-input select {
60
+ height: var(--input-height);
61
+ }
62
+
63
+ .bagel-input textarea {
64
+ resize: vertical;
65
+ min-height: calc(var(--input-height) * 3);
66
+ line-height: 1.5;
67
+ }
68
+
69
+ .bagel-input.wider input {
70
+ min-width: 320px;
71
+ }
72
+
73
+ .bagel-input input[type='radio'] {
74
+ padding: 0;
75
+ width: fit-content;
76
+ }
77
+
78
+ .bagel-input input:focus-visible,
79
+ .bagel-input select:focus-visible,
80
+ .bagel-input textarea:focus-visible,
81
+ .input.active {
82
+ outline: none;
83
+ box-shadow: inset 0 0 10px #00000012;
84
+ }
85
+
86
+ .bagel-input:focus-within label {
87
+ color: var(--bgl-blue);
88
+ }
89
+
90
+ .bagel-input:focus-within label {
91
+ color: var(--bgl-blue);
92
+ }
93
+
94
+ .bagel-input select.no-edit,
95
+ .bagel-input input.no-edit,
96
+ .bagel-input textarea.no-edit,
97
+ .bagel-input .switch.no-edit {
98
+ pointer-events: none;
99
+ outline: none;
100
+ }
101
+
102
+ input[type='number']::-webkit-inner-spin-button,
103
+ input[type='number']::-webkit-outer-spin-button {
104
+ -webkit-appearance: none;
105
+ }
106
+
107
+ label.active {
108
+ color: var(--bgl-blue);
109
+ }
110
+
111
+ .inline-80 {
112
+ display: inline-block;
113
+ width: 80%;
114
+ }
115
+
116
+ .inline-20 {
117
+ display: inline-block;
118
+ width: 20%;
119
+ }
120
+
121
+ .inline-10 {
122
+ display: inline-block;
123
+ width: 20%;
124
+ }
125
+
126
+ .inline-50 {
127
+ display: inline-block;
128
+ width: 49%;
129
+ margin: 0 0.5%;
130
+ }
131
+
132
+ button.formkit-input {
133
+ background: var(--bgl-blue);
134
+ color: var(--bgl-white);
135
+ border: none;
136
+ padding: 0 1.5rem;
137
+ border-radius: var(--input-border-radius);
138
+ font-size: var(--input-font-size);
139
+ font-weight: 500;
140
+ cursor: pointer;
141
+ transition: all 0.2s ease-in-out;
142
+ margin-top: 0.5rem;
143
+ }
144
+
145
+ button.formkit-input:hover {
146
+ filter: var(--bgl-hover-filter);
147
+ }
148
+
149
+ button.formkit-input:active {
150
+ filter: var(--bgl-active-filter);
151
+ }
152
+
153
+ .formkit-messages {
154
+ list-style-type: none;
155
+ padding: 0;
156
+ color: var(--bgl-red);
157
+ margin: none;
158
+ font-size: 0.7rem;
159
+ position: absolute;
160
+ right: 0;
161
+ top: -10px;
162
+ }
163
+
164
+ .formkit-outer {
165
+ position: relative;
166
+ display: flex;
167
+ flex-direction: column;
168
+ text-align: start;
169
+ margin-bottom: 0.5rem;
170
+ width: 100%;
171
+ }
172
+
173
+ .formkit-outer .formkit-help {
174
+ font-size: 0.8rem;
175
+ color: var(--input-color);
176
+ margin-top: 0.5rem;
177
+ font-weight: 300;
178
+ }
179
+
180
+ .formkit-outer label {
181
+ display: block;
182
+ font-size: var(--input-font-size);
183
+ margin-bottom: 2px;
184
+ line-height: 1.3;
185
+ color: var(--input-color);
186
+ }
187
+
188
+ .formkit-outer input,
189
+ .formkit-outer select,
190
+ .custom-select .input {
191
+ height: var(--input-height);
192
+ font-size: var(--input-font-size);
193
+ }
194
+
195
+ .formkit-outer input,
196
+ .formkit-outer textarea,
197
+ .formkit-outer select,
198
+ .custom-select .input {
199
+ background: var(--input-bg);
200
+ border: none;
201
+ padding: 0.7rem;
202
+ border-radius: var(--input-border-radius);
203
+ color: var(--input-color);
204
+ min-width: calc(var(--input-height) * 3);
205
+ width: 100%;
206
+ }
207
+
208
+ .formkit-outer.search-wrap {
209
+ display: flex;
210
+ flex-direction: row;
211
+ align-items: center;
212
+ }
213
+
214
+ .formkit-outer.search-wrap input {
215
+ padding-inline-end: 2rem;
216
+ }
217
+
218
+ .formkit-outer.search-wrap .icon-font {
219
+ margin-inline-start: -1.75rem;
220
+ }
221
+
222
+ .formkit-outer select {
223
+ height: var(--input-height);
224
+ appearance: none;
225
+ background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
226
+ background-repeat: no-repeat;
227
+ background-position: right 1rem center;
228
+ background-size: 1.2em;
229
+ }
230
+
231
+ [dir=rtl] .formkit-outer select {
232
+ background-position: left 1rem center;
233
+ }
234
+
235
+ .formkit-outer textarea {
236
+ resize: vertical;
237
+ min-height: calc(var(--input-height) * 3);
238
+ line-height: 1.5;
239
+ }
240
+
241
+ .formkit-outer.wider input {
242
+ min-width: 320px;
243
+ }
244
+
245
+ .formkit-outer input[type='radio'] {
246
+ padding: 0;
247
+ width: fit-content;
248
+ }
249
+
250
+ .formkit-outer input:focus-visible,
251
+ .formkit-outer select:focus-visible,
252
+ .formkit-outer textarea:focus-visible,
253
+ .input.active {
254
+ outline: none;
255
+ box-shadow: inset 0 0 10px #00000012;
256
+ }
257
+
258
+ .formkit-outer:focus-within label {
259
+ color: var(--bgl-blue);
260
+ }
261
+
262
+ .formkit-outer:focus-within label {
263
+ color: var(--bgl-blue);
264
+ }
265
+
266
+ .formkit-outer select.no-edit,
267
+ .formkit-outer input.no-edit,
268
+ .formkit-outer textarea.no-edit,
269
+ .formkit-outer .switch.no-edit {
270
+ pointer-events: none;
271
+ outline: none;
272
+ }
273
+
274
+ input[type='number']::-webkit-inner-spin-button,
275
+ input[type='number']::-webkit-outer-spin-button {
276
+ -webkit-appearance: none;
277
+ }
278
+
279
+ label.active {
280
+ color: var(--bgl-blue);
281
+ }
282
+
283
+ .label-count-0 label {
284
+ display: none;
285
+ }
286
+
287
+ .label-count-0 button.btn.btn-txt {
288
+ /* background: var(--bgl-blue-light); */
289
+ margin-right: 5px;
290
+ }
291
+
292
+ .label-count-0 button.btn.btn-txt:hover {
293
+ background: var(--bgl-hover-filter);
294
+ }
295
+
296
+ .formkit-outer.label-count-0 {
297
+ display: none;
298
+ }
299
+
300
+ @media screen and (max-width: 910px) {
301
+ .bagel-input.wider input {
302
+ min-width: 120px;
303
+ }
304
+
305
+ .formkit-outer.wider input {
306
+ min-width: 120px;
307
+ }
308
+
309
+ .bagel-input label,
310
+ .formkit-outer label {
311
+ font-size: calc(var(--input-font-size) / 1.1);
312
+ line-height: 1.2;
313
+
314
+ }
315
+ }