@bagelink/vue 1.15.43 → 1.15.47

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "1.15.43",
4
+ "version": "1.15.47",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
@@ -96,7 +96,7 @@ function selectionEdgeClasses(rowIndex: number, localColIndex: number): Record<s
96
96
  <table :class="{ 'fixed-columns': isFixed, 'w-100p': !isFixed }">
97
97
  <thead class=" stickyTop">
98
98
  <tr>
99
- <th v-if="showRowNumbers" class="row-number-header bg-white" />
99
+ <th v-if="showRowNumbers" class="row-number-header" />
100
100
  <th
101
101
  v-for="col in columns"
102
102
  :key="col.key"
@@ -215,7 +215,7 @@ border-collapse: collapse;
215
215
  th, td {
216
216
  padding: 0.1rem 0.5rem;
217
217
  min-width: 80px;
218
- background: var(--bgl-white);
218
+ background: var(--bgl-box-bg);
219
219
  user-select: none;
220
220
  }
221
221
 
@@ -353,9 +353,9 @@ background: var(--bgl-primary);
353
353
  .empty-state {
354
354
  text-align: center;
355
355
  padding: 2rem 1rem;
356
- color: var(--txt-muted, #888);
356
+ color: var(--bgl-label-color, #888);
357
357
  font-size: 0.875rem;
358
- background: var(--bgl-white);
358
+ background: var(--bgl-box-bg);
359
359
  border: 1px solid var(--bgl-border-color);
360
360
  }
361
361
 
@@ -78,9 +78,10 @@ position: fixed;
78
78
  z-index: 1000;
79
79
  min-width: 250px;
80
80
  max-width: 350px;
81
- background-color: white;
81
+ background-color: var(--bgl-popup-bg);
82
+ color: var(--bgl-popup-text);
82
83
  border-radius: var(--bgl-btn-border-radius);
83
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
84
+ box-shadow: 0 2px 8px var(--bgl-shadow);
84
85
  animation: fadeIn 0.2s ease;
85
86
  transform-origin: center left;
86
87
  }
@@ -260,9 +260,10 @@ position: fixed;
260
260
  z-index: 1000;
261
261
  min-width: 250px;
262
262
  max-width: 350px;
263
- background-color: white;
263
+ background-color: var(--bgl-popup-bg);
264
+ color: var(--bgl-popup-text);
264
265
  border-radius: var(--bgl-btn-border-radius);
265
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
266
+ box-shadow: 0 2px 8px var(--bgl-shadow);
266
267
  animation: fadeIn 0.2s ease;
267
268
  transform-origin: center left;
268
269
  }
@@ -187,10 +187,10 @@ function getItemRef(i: number) {
187
187
  />
188
188
  <div v-else />
189
189
  <Btn
190
- full-width align-txt="start" class="px-025 bg-transparent color-inherit" :ripple="false"
190
+ full-width align-txt="start" class="px-025 bg-transparent color-inherit w-100p overflow-hidden" :ripple="false"
191
191
  :icon="minimizedItems[i] ? 'expand_more' : 'expand_less'" @click="toggleItem(i)"
192
192
  >
193
- <div class="flex align-items-center gap-05">
193
+ <div class="flex align-items-center gap-05 w-100p overflow-hidden">
194
194
  <img
195
195
  v-if="getItemThumbnail(items[i])"
196
196
  :src="pathKeyToURL(getItemThumbnail(items[i])!)"
@@ -202,8 +202,7 @@ function getItemRef(i: number) {
202
202
  </p>
203
203
  </div>
204
204
  </Btn>
205
-
206
- <Btn v-if="allowDelete" v-tooltip="resolveI18n(deleteTooltip || 'Delete')" flat icon="delete" thin :confirm="resolveI18n('Are you sure you want to delete this item?')" @click="deleteItem(i)" />
205
+ <Btn v-if="allowDelete" v-tooltip="resolveI18n(deleteTooltip || 'Delete')" flat icon="delete" thin :confirm="resolveI18n('Are you sure you want to delete this item?')" @click="deleteItem(i)" icon-size="0.8" />
207
206
  </div>
208
207
  <Transition name="array-collapse">
209
208
  <div v-if="!minimizedItems[i]" class="array-input-row grid align-items-center px-05">
@@ -3912,10 +3912,11 @@ pointer-events: auto;
3912
3912
  }
3913
3913
 
3914
3914
  .context-menu-content {
3915
- background: white;
3915
+ background: var(--bgl-popup-bg, white);
3916
+ color: var(--bgl-popup-text);
3916
3917
  border: 1px solid var(--bgl-border-color, #dddddd);
3917
3918
  border-radius: var(--bgl-btn-border-radius) !important;
3918
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
3919
+ box-shadow: 0 2px 8px var(--bgl-shadow, rgba(0, 0, 0, 0.15));
3919
3920
  padding: 0;
3920
3921
  min-width: 140px;
3921
3922
  max-width: 180px;
@@ -1,92 +1,77 @@
1
- .bgl-dark-mode {
2
- --bgl-primary: #1c4fe1;
3
- --bgl-primary-tint: #1c4fe180;
4
-
5
- /* --bgl-blue-tint: rgba(46, 91, 255, 20%); */
6
- /* --bgl-blue-dark: #191c30; */
7
- --bgl-blue-light: #34363b;
8
- --bgl-black: #dbdcdc;
9
- --bgl-black-tint: #7a7a7a;
10
- --bgl-white: rgb(41, 42, 45);
11
- --bgl-gray: #7f7d7d;
12
- --bgl-gray-light: #191b1c;
13
- --bgl-gray-80: #e8ecef;
14
- --bgl-gray-20: rgba(183, 183, 183, 0.2);
15
-
16
- --bgl-red: #9b403f;
17
- --bgl-red-tint: #392828;
18
-
19
- --bgl-green: #52875b;
20
- --bgl-border-color: #383a3f;
21
- --bgl-bg: #121317;
22
- --bgl-shadow: #4c577d26;
23
- --bgl-input-bg: #1d2023;
24
- --bgl-input-color: #d3d4d4;
25
- --bgl-label-color: #d3d4d480;
26
- --bgl-placeholder-color: #ccd4dd60;
27
-
28
- --bgl-hover-filter: brightness(130%);
1
+ /* ============================================================================
2
+ * Dark Mode Theme — .bgl-dark-mode
3
+ * ----------------------------------------------------------------------------
4
+ * Activated by useTheme() which toggles the `.bgl-dark-mode` class on <html>.
5
+ *
6
+ * ARCHITECTURE (semantic, NOT inversion):
7
+ * - We do NOT swap --bgl-black / --bgl-white. They keep their real meaning
8
+ * (black = dark, white = light) so colored buttons (.pair-*) that use
9
+ * `color: var(--bgl-white)` stay correct (light text on a colored fill).
10
+ * - Instead we override only the SEMANTIC tokens (surfaces, text, borders)
11
+ * with explicit dark values. Components that consume these tokens
12
+ * (--bgl-bg, --bgl-box-bg, --bgl-text-color, …) become dark automatically.
13
+ *
14
+ * Single source of truth: the dark palette below (--bgl-dm-* raw values), which
15
+ * the semantic tokens reference. If you ever need explicit opt-in dark classes
16
+ * for components that use physical colors, build them on these same tokens.
17
+ * ============================================================================ */
18
+
19
+ .bgl-dark-mode1 {
20
+ /* ---- Dark palette (raw values) ---------------------------------------- */
21
+ --bgl-dm-bg: #121317;
22
+ /* app background (deepest) */
23
+ --bgl-dm-surface: #1d2023;
24
+ /* cards, panels, inputs */
25
+ --bgl-dm-surface-2: #23262b;
26
+ /* slightly raised / hover */
27
+ --bgl-dm-text: #dbdcdc;
28
+ /* primary text */
29
+ --bgl-dm-text-muted: #9a9b9d;
30
+ /* secondary text */
31
+ --bgl-dm-border: #383a3f;
32
+ /* borders / dividers */
33
+
34
+ /* ---- Brand (slightly adjusted for dark backgrounds) ------------------- */
35
+ --bgl-primary: #4f7cff;
36
+ --bgl-primary-tint: #4f7cff33;
37
+ --bgl-primary-light: #1a2236;
38
+
39
+ /* ---- Surfaces / backgrounds ------------------------------------------ */
40
+ --bgl-bg: var(--bgl-dm-bg);
41
+ --bgl-box-bg: var(--bgl-dm-surface);
42
+ --bgl-popup-bg: var(--bgl-dm-surface);
43
+ --bgl-input-bg: var(--bgl-dm-surface);
44
+ --bgl-selected: var(--bgl-dm-surface-2);
45
+ --bgl-skeleton-bg: var(--bgl-dm-surface-2);
46
+ --bgl-skeleton-pulse: var(--bgl-dm-surface);
47
+ --bgl-gray-light: var(--bgl-dm-surface-2);
48
+
49
+ /* ---- Text ------------------------------------------------------------- */
50
+ --bgl-text-color: var(--bgl-dm-text);
51
+ --bgl-popup-text: var(--bgl-dm-text);
52
+ --bgl-input-color: var(--bgl-dm-text);
53
+ --bgl-dropdown-color: var(--bgl-dm-text);
54
+ --bgl-label-color: var(--bgl-dm-text-muted);
55
+ --bgl-placeholder-color: var(--bgl-dm-text-muted);
56
+
57
+ /* ---- Borders / shadows / scrollbar ----------------------------------- */
58
+ --bgl-border-color: var(--bgl-dm-border);
59
+ --bgl-shadow: rgba(0, 0, 0, 0.5);
60
+ --bgl-scrollbar-thumb: #4a4d52;
61
+
62
+ /* ---- Hover / active filters (lighten instead of darken) -------------- */
63
+ --bgl-hover-filter: brightness(125%);
29
64
  --bgl-active-filter: brightness(110%);
30
65
  }
31
66
 
32
- .bgl-dark-mode .input.active,
33
- .bgl-dark-mode .bagel-input input:focus-visible,
34
- .bgl-dark-mode .bagel-input select:focus-visible,
35
- .bgl-dark-mode .bagel-input textarea:focus-visible {
36
- outline: none;
37
- box-shadow: inset 0 0 10px var(--bgl-bg);
38
- }
39
-
40
- /* use this is to override the nav color */
41
- .bgl-dark-mode .nav {
42
- color: var(--bgl-black) !important;
43
- background: transparent;
44
- border-radius: 0 !important;
45
- border-inline-end: 1px solid var(--bgl-gray-tint);
46
- margin-top: 0 !important;
47
- margin-bottom: 0 !important;
48
- margin-inline-start: 0 !important;
49
- }
50
-
51
- .bgl-dark-mode .nav * {
52
- color: var(--bgl-black) !important;
53
- }
54
-
55
- .bgl-dark-mode .dropdown-project-head {
56
- background: var(--bgl-bg) !important;
57
- color: var(--bgl-white) !important;
58
- }
59
-
60
- .bgl-dark-mode .dropdown-project-body {
61
- color: var(--bgl-black-tint) !important;
62
- }
63
-
64
- /* until here */
65
-
67
+ /* Native form controls (date/time pickers) render dark glyphs that are
68
+ invisible on a dark input; invert them so they show up. */
66
69
  .bgl-dark-mode input::-webkit-calendar-picker-indicator {
67
- filter: invert(48%);
70
+ filter: invert(0.8);
68
71
  }
69
72
 
73
+ /* Text selection */
70
74
  .bgl-dark-mode ::selection {
71
- color: var(--bgl-black);
75
+ color: var(--bgl-dm-text);
72
76
  background: var(--bgl-primary-tint);
73
- }
74
-
75
- .bgl-dark-mode .whatsapp-msg {
76
- color: var(--bgl-gray-light);
77
- }
78
-
79
- .bgl-dark-mode .bgl_btn,
80
- .bgl-dark-mode .bgl_btn-icon,
81
- .bgl-dark-mode .primary-checkbox input:checked+span,
82
- .bgl-dark-mode .bgl_btn.light {
83
- color: var(--bgl-black);
84
- }
85
-
86
- .bgl-dark-mode .bagel-input.checkbox.check .slider:before {
87
- color: var(--bgl-black) !important;
88
- }
89
-
90
- .bgl-dark-mode .nav-expend {
91
- top: 67px;
92
77
  }