@bagelink/vue 0.0.342 → 0.0.346

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 (43) hide show
  1. package/dist/components/Card.vue.d.ts +2 -2
  2. package/dist/components/Modal.vue.d.ts +1 -0
  3. package/dist/components/RouterWrapper.vue.d.ts.map +1 -1
  4. package/dist/components/form/BglForm.vue.d.ts +7 -1
  5. package/dist/components/form/BglForm.vue.d.ts.map +1 -1
  6. package/dist/components/form/inputs/DateInput.vue.d.ts +1 -0
  7. package/dist/components/form/inputs/RichText.vue.d.ts +20 -0
  8. package/dist/components/form/inputs/RichText.vue.d.ts.map +1 -0
  9. package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
  10. package/dist/components/form/inputs/index.d.ts +1 -1
  11. package/dist/components/form/inputs/index.d.ts.map +1 -1
  12. package/dist/components/index.d.ts +0 -2
  13. package/dist/components/index.d.ts.map +1 -1
  14. package/dist/components/layout/BottomMenu.vue.d.ts +24 -0
  15. package/dist/components/layout/BottomMenu.vue.d.ts.map +1 -0
  16. package/dist/components/layout/TabsNav.vue.d.ts.map +1 -1
  17. package/dist/components/layout/index.d.ts +1 -0
  18. package/dist/components/layout/index.d.ts.map +1 -1
  19. package/dist/index.cjs +32865 -24539
  20. package/dist/index.d.ts +1 -0
  21. package/dist/index.mjs +32866 -24540
  22. package/dist/style.css +166 -225
  23. package/dist/types/materialIcons.d.ts +1 -1
  24. package/dist/types/materialIcons.d.ts.map +1 -1
  25. package/package.json +4 -8
  26. package/src/components/RouterWrapper.vue +6 -4
  27. package/src/components/form/inputs/RichText.vue +219 -0
  28. package/src/components/form/inputs/SelectInput.vue +123 -122
  29. package/src/components/form/inputs/index.ts +1 -1
  30. package/src/components/index.ts +0 -2
  31. package/src/components/layout/BottomMenu.vue +64 -0
  32. package/src/components/layout/SidebarMenu.vue +2 -1
  33. package/src/components/layout/Tabs.vue +4 -4
  34. package/src/components/layout/TabsNav.vue +36 -14
  35. package/src/components/layout/index.ts +1 -0
  36. package/src/styles/layout.css +11 -0
  37. package/src/styles/mobilLayout.css +10 -0
  38. package/src/styles/theme.css +0 -1
  39. package/src/styles/transitions.css +4 -0
  40. package/src/types/materialIcons.ts +2067 -6
  41. package/src/components/Comments.vue +0 -268
  42. package/src/components/RTXEditor.vue +0 -151
  43. package/src/components/form/inputs/RichTextEditor.vue +0 -56
@@ -1,10 +1,10 @@
1
1
  <template>
2
- <div class="tabs grid auto-flow-columns fit-content">
3
- <button :class="{ active: isActive(tab) }" @click="selectTab(tab)" class="tab" v-for="(tab, i) in tabs" :key="i">
4
- <Icon v-if="typeof tab !== 'string' && tab.icon" :icon="tab.icon" />
5
- {{ tabLabel(tab) }}
6
- </button>
7
- </div>
2
+ <div class="grid auto-flow-columns fit-content">
3
+ <button :class="{ active: isActive(tab) }" @click="selectTab(tab)" class="bgl_tab" v-for="(tab, i) in tabs" :key="i">
4
+ <Icon v-if="typeof tab !== 'string' && tab.icon" :icon="tab.icon" />
5
+ {{ tabLabel(tab) }}
6
+ </button>
7
+ </div>
8
8
  </template>
9
9
 
10
10
  <script setup lang="ts">
@@ -22,27 +22,49 @@ const props = defineProps<{
22
22
  const { currentTab } = useTabs(props.group);
23
23
  currentTab.value = props.modelValue || typeof props.tabs[0] === 'string' ? props.tabs[0] : props.tabs[0].id;
24
24
  const selectTab = (tab: Tab) => {
25
- currentTab.value = typeof tab === 'string' ? tab : tab.id;
25
+ currentTab.value = typeof tab === 'string' ? tab : tab.id;
26
26
  };
27
27
 
28
28
  const isActive = (tab: Tab) => {
29
- if (typeof tab === 'string') return currentTab.value === tab;
30
- return currentTab.value === tab.id;
29
+ if (typeof tab === 'string') return currentTab.value === tab;
30
+ return currentTab.value === tab.id;
31
31
  };
32
32
  const tabLabel = (tab: Tab) => {
33
- if (typeof tab === 'string') return tab;
34
- return tab.label;
33
+ if (typeof tab === 'string') return tab;
34
+ return tab.label;
35
35
  };
36
36
  </script>
37
37
 
38
38
  <style scoped>
39
- .tab {
39
+ .bgl_tab {
40
40
  border: none;
41
- border-bottom: 1px solid var(--border-color);
41
+ border-bottom: 2px solid var(--border-color);
42
42
  background: transparent;
43
+ font-size: var(--input-font-size);
44
+ font-family: inherit;
45
+ cursor: pointer;
46
+ transition: var(--bgl-transition);
47
+ padding-inline-start: calc(var(--btn-padding) / 2);
48
+ padding-inline-end: calc(var(--btn-padding) / 2);
49
+ padding-bottom: calc(var(--btn-padding) / 4);
50
+
43
51
  }
44
52
 
45
- .tab.currentTab {
53
+ .bgl_tab.currentTab {
46
54
  border-bottom: 2px solid var(--primary-color);
47
55
  }
56
+
57
+ .bgl_tab.active {
58
+ color: var(--bgl-primary);
59
+ border-bottom: 2px solid var(--bgl-primary);
60
+ }
61
+
62
+ .bgl_tab:hover {
63
+ color: var(--bgl-primary);
64
+ }
65
+
66
+ .bgl_tab:active {
67
+ -webkit-filter: brightness(70%);
68
+ filter: brightness(70%);
69
+ }
48
70
  </style>
@@ -1,5 +1,6 @@
1
1
  export { default as Layout } from './Layout.vue';
2
2
  export { default as SidebarMenu } from './SidebarMenu.vue';
3
+ export { default as BottomMenu } from './BottomMenu.vue';
3
4
  export { default as Tabs } from './Tabs.vue';
4
5
  export { default as TabsNav } from './TabsNav.vue';
5
6
  export { default as TabsBody } from './TabsBody.vue';
@@ -165,6 +165,7 @@
165
165
  margin-inline-end: auto;
166
166
  width: 98%;
167
167
  }
168
+
168
169
  .w10 {
169
170
  max-width: 10px;
170
171
  }
@@ -355,6 +356,16 @@
355
356
  height: -webkit-fill-available;
356
357
  }
357
358
 
359
+ .w-auto,
360
+ .w-a {
361
+ width: auto !important;
362
+ }
363
+
364
+ .h-auto,
365
+ .h-a {
366
+ height: auto !important;
367
+ }
368
+
358
369
  .gap-0 {
359
370
  gap: 0;
360
371
  }
@@ -290,6 +290,16 @@
290
290
  height: -webkit-fill-available;
291
291
  }
292
292
 
293
+ .m_w-auto,
294
+ .m_w-a {
295
+ width: auto !important;
296
+ }
297
+
298
+ .m_h-auto,
299
+ .m_h-a {
300
+ height: auto !important;
301
+ }
302
+
293
303
  .m_gap-0 {
294
304
  gap: 0;
295
305
  }
@@ -142,7 +142,6 @@
142
142
  color: var(--bgl-primary);
143
143
  border-bottom: 2px solid var(--bgl-primary);
144
144
  }
145
-
146
145
  .router-tab:hover {
147
146
  color: var(--bgl-primary);
148
147
  }
@@ -58,10 +58,14 @@
58
58
 
59
59
  .slide-fade-enter-active {
60
60
  transition: all 0.15s ease-out;
61
+ overflow: hidden;
62
+
61
63
  }
62
64
 
63
65
  .slide-fade-leave-active {
64
66
  transition: all 0.15s ease-in;
67
+ overflow: hidden;
68
+
65
69
  }
66
70
 
67
71
  .slide-fade-enter-from {