@bagelink/vue 0.0.738 → 0.0.742

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 (67) hide show
  1. package/dist/components/AddressSaerch.vue.d.ts +7 -0
  2. package/dist/components/AddressSaerch.vue.d.ts.map +1 -0
  3. package/dist/components/AddressSearch.vue.d.ts +7 -0
  4. package/dist/components/AddressSearch.vue.d.ts.map +1 -0
  5. package/dist/components/Btn.vue.d.ts.map +1 -1
  6. package/dist/components/MapEmbed.vue.d.ts +55 -1
  7. package/dist/components/MapEmbed.vue.d.ts.map +1 -1
  8. package/dist/components/Modal.vue.d.ts.map +1 -1
  9. package/dist/components/ModalConfirm.vue.d.ts +4 -4
  10. package/dist/components/ModalConfirm.vue.d.ts.map +1 -1
  11. package/dist/components/form/inputs/PasswordInput.vue.d.ts +6 -6
  12. package/dist/components/form/inputs/PasswordInput.vue.d.ts.map +1 -1
  13. package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +1 -1
  14. package/dist/components/form/inputs/TelInput.vue.d.ts +0 -1
  15. package/dist/components/form/inputs/TelInput.vue.d.ts.map +1 -1
  16. package/dist/components/index.d.ts +1 -0
  17. package/dist/components/index.d.ts.map +1 -1
  18. package/dist/index.cjs +451 -266
  19. package/dist/index.mjs +451 -266
  20. package/dist/plugins/modal.d.ts +9 -13
  21. package/dist/plugins/modal.d.ts.map +1 -1
  22. package/dist/style.css +1238 -427
  23. package/dist/utils/index.d.ts +2 -0
  24. package/dist/utils/index.d.ts.map +1 -1
  25. package/package.json +5 -4
  26. package/src/components/AddressSearch.vue +41 -0
  27. package/src/components/Avatar.vue +1 -1
  28. package/src/components/Badge.vue +1 -1
  29. package/src/components/Btn.vue +9 -7
  30. package/src/components/Card.vue +2 -2
  31. package/src/components/ListItem.vue +1 -1
  32. package/src/components/MapEmbed.vue +143 -104
  33. package/src/components/Modal.vue +5 -2
  34. package/src/components/ModalConfirm.vue +4 -7
  35. package/src/components/NavBar.vue +9 -9
  36. package/src/components/TableSchema.vue +3 -3
  37. package/src/components/form/inputs/Checkbox.vue +1 -1
  38. package/src/components/form/inputs/DatePicker.vue +5 -5
  39. package/src/components/form/inputs/FileUpload.vue +1 -1
  40. package/src/components/form/inputs/PasswordInput.vue +9 -10
  41. package/src/components/form/inputs/RadioGroup.vue +1 -1
  42. package/src/components/form/inputs/RadioPillsInput.vue +2 -2
  43. package/src/components/form/inputs/RichText.vue +3 -3
  44. package/src/components/form/inputs/RichText2/index.vue +8 -2
  45. package/src/components/form/inputs/TableField.vue +3 -3
  46. package/src/components/form/inputs/TelInput.vue +2 -2
  47. package/src/components/form/inputs/TextInput.vue +3 -3
  48. package/src/components/form/inputs/ToggleInput.vue +1 -1
  49. package/src/components/formkit/FileUploader.vue +1 -1
  50. package/src/components/formkit/MiscFields.vue +1 -1
  51. package/src/components/formkit/Toggle.vue +4 -4
  52. package/src/components/index.ts +1 -0
  53. package/src/components/layout/BottomMenu.vue +2 -2
  54. package/src/components/layout/SidebarMenu.vue +1 -1
  55. package/src/components/layout/TabsNav.vue +1 -1
  56. package/src/components/leaflet/leaflet.css +661 -0
  57. package/src/components/lightbox/Lightbox.vue +2 -2
  58. package/src/plugins/modal.ts +44 -61
  59. package/src/styles/appearance.css +30 -0
  60. package/src/styles/bagel.css +2 -1
  61. package/src/styles/inputs.css +10 -3
  62. package/src/styles/loginCard.css +1 -1
  63. package/src/styles/modal.css +2 -2
  64. package/src/styles/scrollbar.css +1 -1
  65. package/src/styles/text.css +82 -0
  66. package/src/styles/theme.css +68 -41
  67. package/src/utils/index.ts +16 -0
@@ -97,7 +97,7 @@ const hours = Array.from({ length: 18 }, (_, index) => {
97
97
 
98
98
  .time-wrap input[type='radio']:checked + label {
99
99
  background: var(--bgl-primary);
100
- color: var(--bgl-white);
100
+ color: var(--bgl-light-text);
101
101
  }
102
102
 
103
103
  .time-wrap label:hover {
@@ -109,14 +109,14 @@ const hours = Array.from({ length: 18 }, (_, index) => {
109
109
  }
110
110
 
111
111
  .dp__theme_light {
112
- --dp-background-color: var(--bgl-white);
113
- --dp-text-color: var(--bgl-black);
112
+ --dp-background-color: var(--bgl-popup-bg);
113
+ --dp-text-color: var(--bgl-text-color);
114
114
  --dp-hover-color: var(--input-bg);
115
- --dp-hover-text-color: var(--bgl-black);
115
+ --dp-hover-text-color: var(--bgl-text-color);
116
116
  --dp-hover-icon-color: var(--bgl-primary);
117
117
  --dp-primary-color: var(--bgl-primary);
118
118
  --dp-primary-disabled-color: var(--bgl-primary);
119
- --dp-primary-text-color: var(--bgl-white);
119
+ --dp-primary-text-color: var(--bgl-light-text);
120
120
  --dp-secondary-color: var(--bgl-gray);
121
121
  --dp-border-color: transparent;
122
122
  --dp-menu-border-color: transparent;
@@ -341,7 +341,7 @@ function drop(e: DragEvent) {
341
341
  border: 1px solid var(--border-color) !important;
342
342
  border-radius: var(--input-border-radius);
343
343
  margin: 0.5rem !important;
344
- background: var(--bgl-white);
344
+ background: var(--bgl-popup-bg);
345
345
  padding: 0;
346
346
  padding-inline-end: 0.75rem;
347
347
  text-align: start;
@@ -1,14 +1,17 @@
1
1
  <script setup lang="ts">
2
2
  import { Btn, TextInput } from '@bagelink/vue'
3
3
 
4
- type TextInputT = InstanceType<typeof TextInput>
4
+ export type TextInputT = InstanceType<typeof TextInput>
5
5
 
6
- type TextInputPropT = Omit<TextInputT['$props'], (`${string}modelValue` | `ref${string}` | `onVnode${string}` | 'key')>
6
+ export type TextInputProps = Omit<
7
+ TextInputT['$props'],
8
+ (`${string}modelValue` | `ref${string}` | `onVnode${string}` | 'key' | 'type')
9
+ >
10
+ // const props =
11
+ defineProps<{ txtInputProps: TextInputProps }>()
7
12
 
8
- const props = defineProps<{ txtInputProps: TextInputPropT }>()
9
-
10
- const password = defineModel<string>('modelValue')
11
- const showPwd = defineModel<string>('showPwd', { default: false })
13
+ const password = defineModel< string>('modelValue')
14
+ const showPwd = defineModel<boolean>('showPwd', { default: false })
12
15
 
13
16
  const toggleShowPwdIcon = $computed(() => showPwd.value ? 'visibility_off' : 'visibility')
14
17
  const inputType = $computed(() => showPwd.value ? 'text' : 'password')
@@ -20,7 +23,3 @@ const inputType = $computed(() => showPwd.value ? 'text' : 'password')
20
23
  <Btn flat thin class="m-05 position-bottom-end" :icon="toggleShowPwdIcon" @click="showPwd = !showPwd" />
21
24
  </div>
22
25
  </template>
23
-
24
- <style scoped>
25
-
26
- </style>
@@ -40,7 +40,7 @@ const selectedOption = defineModel('modelValue')
40
40
  <div class="flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025">
41
41
  <img
42
42
  v-if="opt.imgSrc"
43
- class="bg-white shadow-light py-025 rounded m_w40"
43
+ class="bg-popup shadow-light py-025 rounded m_w40"
44
44
  width="60"
45
45
  :src="opt.imgSrc"
46
46
  :alt="opt.imgAlt"
@@ -84,7 +84,7 @@ onMounted(() => {
84
84
  padding-bottom: calc(var(--btn-padding) / 6);
85
85
  cursor: pointer;
86
86
  transition: var(--bgl-transition);
87
- background: var(--bgl-white);
87
+ background: var(--bgl-light-text);
88
88
  user-select: none;
89
89
  }
90
90
 
@@ -98,6 +98,6 @@ onMounted(() => {
98
98
 
99
99
  .radio-pill input:checked ~ label {
100
100
  background: var(--bgl-primary);
101
- color: var(--bgl-white);
101
+ color: var(--bgl-light-text);
102
102
  }
103
103
  </style>
@@ -276,7 +276,7 @@ onBeforeUnmount(() => editor?.destroy())
276
276
 
277
277
  .tiptap pre {
278
278
  background: #0d0d0d;
279
- color: var(--bgl-white);
279
+ color: var(--bgl-light-text);
280
280
  font-family: 'JetBrainsMono', monospace;
281
281
  padding: 0.75rem 1rem;
282
282
  border-radius: 0.5rem;
@@ -372,7 +372,7 @@ onBeforeUnmount(() => editor?.destroy())
372
372
  pointer-events: none;
373
373
  }
374
374
  .selectedCell p::selection{
375
- color: var(--bgl-black)
375
+ color: var(--bgl-popup-text)
376
376
  }
377
377
 
378
378
  .column-resize-handle {
@@ -401,7 +401,7 @@ onBeforeUnmount(() => editor?.destroy())
401
401
  cursor: col-resize;
402
402
  }
403
403
  .RichText-tools [disabled]{
404
- color: var(--bgl-black) !important;
404
+ color: var(--bgl-popup-text) !important;
405
405
  opacity: 0.3;
406
406
  }
407
407
  .RichText iframe{
@@ -137,7 +137,7 @@ function handleKeyDown(event: KeyboardEvent) {
137
137
  <div class="rich-text-editor round pt-05 px-1 pb-1">
138
138
  <Toolbar :config @action="handleToolbarAction" />
139
139
  <div class="editor-container flex flex-stretch gap-1 m_column">
140
- <div class="content-area rounded p-1 bg-white shadow-light w-100 grid">
140
+ <div class="content-area rounded p-1 shadow-light w-100 grid">
141
141
  <textarea v-if="isCodeView" v-model="contentHtml" @input="updateContent" />
142
142
  <div
143
143
  v-else
@@ -151,7 +151,7 @@ function handleKeyDown(event: KeyboardEvent) {
151
151
  @keydown="handleKeyDown"
152
152
  />
153
153
  </div>
154
- <code v-if="isSplitView" class="preview-area bg-black color-white w-100 rounded p-1">{{ contentHtml }}</code>
154
+ <code v-if="isSplitView" class="preview-area w-100 rounded p-1">{{ contentHtml }}</code>
155
155
  </div>
156
156
  </div>
157
157
  </template>
@@ -183,6 +183,9 @@ function handleKeyDown(event: KeyboardEvent) {
183
183
  .preview-area{
184
184
  font-family: "FontWithASyntaxHighlighter", monospace;
185
185
  font-palette: --myCustomPalette;
186
+ background: var(--bgl-code-bg);
187
+ color: var(--bgl-code-color)
188
+
186
189
  }
187
190
  .rich-text-editor {
188
191
  background: var(--input-bg);
@@ -194,6 +197,9 @@ function handleKeyDown(event: KeyboardEvent) {
194
197
  white-space: pre-wrap;
195
198
  outline: none;
196
199
  }
200
+ .content-area{
201
+ background: var(--bgl-richtext-color);
202
+ }
197
203
  .content-area, .preview-area{
198
204
  min-height: 200px;
199
205
  }
@@ -260,7 +260,7 @@ onMounted(() => {
260
260
 
261
261
  .table-action:hover>.bgl_icon-font {
262
262
  background: var(--bgl-red);
263
- color: var(--bgl-white);
263
+ color: var(--bgl-box-bg);
264
264
  }
265
265
 
266
266
  .table-action:active>.bgl_icon-font {
@@ -278,7 +278,7 @@ onMounted(() => {
278
278
  .table-row .bagel-input .input {
279
279
  border-radius: 0;
280
280
  background: transparent;
281
- color: var(--bgl-black);
281
+ color: var(--bgl-text-color);
282
282
  }
283
283
 
284
284
  .table-row .bagel-input textarea {
@@ -307,7 +307,7 @@ onMounted(() => {
307
307
  .sortable-chosen {
308
308
  cursor: grabbing !important;
309
309
  border-color: transparent;
310
- background: var(--bgl-white);
310
+ background: var(--bgl-box-bg);
311
311
  border-radius: 10px;
312
312
  box-shadow: 0 0 10px 0 rgb(0 0 0 /20%);
313
313
  }
@@ -102,7 +102,7 @@ const defaultInputOptions = {
102
102
  'readonly': false,
103
103
  'tabindex': 0,
104
104
  'style': '' as Raw<StyleValue>,
105
- 'placeholder': 'Enter a phone number',
105
+ // 'placeholder': 'Enter a phone number',
106
106
  }
107
107
 
108
108
  const computedDropDownOptions = $computed(() => ({
@@ -388,7 +388,7 @@ function handleInput(e: KeyboardEvent) {
388
388
  :id="id"
389
389
  v-model="phone"
390
390
  :required="required"
391
- :placeholder="computedInputOptions.placeholder"
391
+ :placeholder="props.placeholder || 'Enter a phone number'"
392
392
  :disabled="disabled"
393
393
  type="tel"
394
394
  :autocomplete="autocomplete"
@@ -158,11 +158,11 @@ onMounted(() => {
158
158
 
159
159
  .code textarea {
160
160
  font-family: 'Inconsolata', monospace;
161
- background: var(--bgl-black) !important;
162
- color: var(--bgl-white) !important;
161
+ background: var(--bgl-code-bg) !important;
162
+ color: var(--bgl-light-text) !important;
163
163
  }
164
164
  .code textarea::placeholder {
165
- color: var(--bgl-white) !important;
165
+ color: var(--bgl-light-text) !important;
166
166
  opacity: 0.3;
167
167
  }
168
168
 
@@ -77,7 +77,7 @@ onMounted(() => {
77
77
  inset-inline-start: 1px;
78
78
  bottom: 1px;
79
79
  border-radius: 50%;
80
- background: var(--bgl-white);
80
+ background: var(--bgl-box-bg);
81
81
  -webkit-transition: 0.2s;
82
82
  transition: 0.2s;
83
83
  box-shadow:0 1px 5px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
@@ -305,7 +305,7 @@ function onDrop(e: DragEvent) {
305
305
  display: flex;
306
306
  align-items: center;
307
307
  justify-content: space-between;
308
- background: var(--bgl-white);
308
+ background: var(--bgl-box-bg);
309
309
  border-radius: var(--btn-border-radius);
310
310
  width: 100%;
311
311
  color: var(--input-color);
@@ -69,6 +69,6 @@ function addToField(field: any) {
69
69
 
70
70
  .add-btn:hover::before {
71
71
  background: var(--bgl-primary);
72
- color: var(--bgl-white);
72
+ color: var(--bgl-light-text);
73
73
  }
74
74
  </style>
@@ -48,7 +48,7 @@ const inputVal = defineModel('modelValue', {
48
48
  border-radius: var(--input-border-radius);
49
49
  font-size: var(--input-font-size);
50
50
  background: var(--input-bg);
51
- color: var(--bgl-black);
51
+ color: var(--bgl-text-color);
52
52
  text-align: center;
53
53
  margin: 8px 5px;
54
54
  cursor: pointer;
@@ -65,7 +65,7 @@ const inputVal = defineModel('modelValue', {
65
65
 
66
66
  .radio-wrap input:checked:checked+label {
67
67
  background: var(--bgl-primary);
68
- color: var(--bgl-white);
68
+ color: var( --bgl-light-text);
69
69
  }
70
70
 
71
71
  .checkbox {
@@ -100,7 +100,7 @@ const inputVal = defineModel('modelValue', {
100
100
  position: absolute;
101
101
  font-family: "Material Symbols Outlined", serif;
102
102
  content: "";
103
- color: var(--bgl-white);
103
+ color: var( --bgl-light-text);
104
104
  background: transparent;
105
105
  display: flex;
106
106
  align-items: center;
@@ -134,7 +134,7 @@ const inputVal = defineModel('modelValue', {
134
134
  left: 2px;
135
135
  bottom: 2px;
136
136
  border-radius: 50%;
137
- background: var(--bgl-white);
137
+ background: var(--bgl-popup-bg);
138
138
  -webkit-transition: 0.4s;
139
139
  transition: 0.4s;
140
140
  }
@@ -23,6 +23,7 @@ export { default as Carousel } from './Carousel.vue'
23
23
  export { default as ModalConfirm } from './ModalConfirm.vue'
24
24
  export { default as MapEmbed } from './MapEmbed.vue'
25
25
  export { default as Flag } from './Flag.vue'
26
+ export { default as AddressSearch } from './AddressSearch.vue'
26
27
 
27
28
  export * from './form'
28
29
  export * from './dashboard'
@@ -40,7 +40,7 @@ defineProps<{
40
40
  <style scoped>
41
41
  .bgl_bottombar {
42
42
  background-color: var(--bgl-primary);
43
- color: var(--bgl-white);
43
+ color: var(--bgl-light-text);
44
44
  grid-template-columns: repeat(auto-fill, var(--bgl_bottombar-btn-width));
45
45
  grid-auto-flow: column;
46
46
  border-radius: 0;
@@ -62,7 +62,7 @@ defineProps<{
62
62
  }
63
63
 
64
64
  .bgl_bottombar .router-link-active {
65
- background: var(--bgl-white);
65
+ background: var(--bgl-popup-bg);
66
66
  color: var(--bgl-primary) !important;
67
67
  }
68
68
  </style>
@@ -75,7 +75,7 @@ function toggleMenu() {
75
75
  }
76
76
 
77
77
  .nav-button.router-link-active {
78
- background: var(--bgl-white) !important;
78
+ background: var(--bgl-popup-bg) !important;
79
79
  color: var(--bgl-primary);
80
80
  }
81
81
  </style>
@@ -127,7 +127,7 @@ onBeforeUnmount(() => {
127
127
  bottom: calc(var(--btn-padding) / 8);
128
128
  left: var(--indicator-left, 0);
129
129
  width: var(--indicator-width, 0);
130
- background: var(--bgl-white);
130
+ background: var(--bgl-popup-bg);
131
131
  border-radius: var(--input-border-radius);
132
132
  transition: var(--bgl-transition);
133
133
  z-index: 0;