@bagelink/vue 0.0.473 → 0.0.475

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/dist/index.cjs CHANGED
@@ -5536,8 +5536,8 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
5536
5536
  },
5537
5537
  setup(__props) {
5538
5538
  vue.useCssVars((_ctx) => ({
5539
- "62a40850": computedBackgroundColor.value,
5540
- "2a1924b3": cumputedTextColor.value
5539
+ "3607ab92": computedBackgroundColor.value,
5540
+ "7910b026": cumputedTextColor.value
5541
5541
  }));
5542
5542
  const props2 = __props;
5543
5543
  const slots = vue.useSlots();
@@ -5573,10 +5573,16 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
5573
5573
  "blue": getThemeColors({})
5574
5574
  };
5575
5575
  const cumputedTextColor = vue.computed(
5576
- () => themes[computedTheme.value].color || computedDefaultColors.value.color
5576
+ () => {
5577
+ var _a2;
5578
+ return ((_a2 = themes[computedTheme.value]) == null ? void 0 : _a2.color) || computedDefaultColors.value.color;
5579
+ }
5577
5580
  );
5578
5581
  const computedBackgroundColor = vue.computed(
5579
- () => themes[computedTheme.value].backgroundColor || computedDefaultColors.value.backgroundColor
5582
+ () => {
5583
+ var _a2;
5584
+ return ((_a2 = themes[computedTheme.value]) == null ? void 0 : _a2.backgroundColor) || computedDefaultColors.value.backgroundColor;
5585
+ }
5580
5586
  );
5581
5587
  return (_ctx, _cache) => {
5582
5588
  return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.to ? "router-link" : _ctx.is), {
@@ -5615,7 +5621,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
5615
5621
  };
5616
5622
  }
5617
5623
  });
5618
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-6f01c073"]]);
5624
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-51ee7ea7"]]);
5619
5625
  const _hoisted_1$F = {
5620
5626
  key: 0,
5621
5627
  class: "tool-bar"
package/dist/index.mjs CHANGED
@@ -5534,8 +5534,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
5534
5534
  },
5535
5535
  setup(__props) {
5536
5536
  useCssVars((_ctx) => ({
5537
- "62a40850": computedBackgroundColor.value,
5538
- "2a1924b3": cumputedTextColor.value
5537
+ "3607ab92": computedBackgroundColor.value,
5538
+ "7910b026": cumputedTextColor.value
5539
5539
  }));
5540
5540
  const props2 = __props;
5541
5541
  const slots = useSlots();
@@ -5571,10 +5571,16 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
5571
5571
  "blue": getThemeColors({})
5572
5572
  };
5573
5573
  const cumputedTextColor = computed(
5574
- () => themes[computedTheme.value].color || computedDefaultColors.value.color
5574
+ () => {
5575
+ var _a2;
5576
+ return ((_a2 = themes[computedTheme.value]) == null ? void 0 : _a2.color) || computedDefaultColors.value.color;
5577
+ }
5575
5578
  );
5576
5579
  const computedBackgroundColor = computed(
5577
- () => themes[computedTheme.value].backgroundColor || computedDefaultColors.value.backgroundColor
5580
+ () => {
5581
+ var _a2;
5582
+ return ((_a2 = themes[computedTheme.value]) == null ? void 0 : _a2.backgroundColor) || computedDefaultColors.value.backgroundColor;
5583
+ }
5578
5584
  );
5579
5585
  return (_ctx, _cache) => {
5580
5586
  return openBlock(), createBlock(resolveDynamicComponent(_ctx.to ? "router-link" : _ctx.is), {
@@ -5613,7 +5619,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
5613
5619
  };
5614
5620
  }
5615
5621
  });
5616
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-6f01c073"]]);
5622
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-51ee7ea7"]]);
5617
5623
  const _hoisted_1$F = {
5618
5624
  key: 0,
5619
5625
  class: "tool-bar"
package/dist/style.css CHANGED
@@ -248,19 +248,19 @@
248
248
  }
249
249
  }
250
250
 
251
- a[data-v-6f01c073] {
251
+ a[data-v-51ee7ea7] {
252
252
  text-decoration: none;
253
253
  }
254
- .loading[data-v-6f01c073] {
254
+ .loading[data-v-51ee7ea7] {
255
255
  border: 1px solid var(--bgl-white);
256
256
  border-bottom: 2px solid var(--bgl-white);
257
- animation: spin-6f01c073 1s linear infinite;
257
+ animation: spin-51ee7ea7 1s linear infinite;
258
258
  border-radius: 100px;
259
259
  width: 1rem;
260
260
  height: 1rem;
261
261
  margin: auto;
262
262
  }
263
- @keyframes spin-6f01c073 {
263
+ @keyframes spin-51ee7ea7 {
264
264
  0% {
265
265
  transform: rotate(0deg);
266
266
  }
@@ -268,7 +268,7 @@ a[data-v-6f01c073] {
268
268
  transform: rotate(360deg);
269
269
  }
270
270
  }
271
- .bgl_btn-icon[data-v-6f01c073] {
271
+ .bgl_btn-icon[data-v-51ee7ea7] {
272
272
  height: var(--btn-height);
273
273
  width: var(--btn-height);
274
274
  border-radius: 100%;
@@ -278,101 +278,101 @@ a[data-v-6f01c073] {
278
278
  flex-shrink: 0;
279
279
  transition: var(--bgl-transition);
280
280
  }
281
- .bgl_btn[data-v-6f01c073] {
281
+ .bgl_btn[data-v-51ee7ea7] {
282
282
  padding-left: var(--btn-padding);
283
283
  padding-right: var(--btn-padding);
284
284
  transition: var(--bgl-transition);
285
285
  text-decoration: none;
286
286
  }
287
- .bgl_btn[disabled="true"][data-v-6f01c073] {
287
+ .bgl_btn[disabled="true"][data-v-51ee7ea7] {
288
288
  opacity: 0.5;
289
289
  cursor: not-allowed;
290
290
  }
291
- .bgl_btn-flex[data-v-6f01c073] {
291
+ .bgl_btn-flex[data-v-51ee7ea7] {
292
292
  display: flex;
293
293
  align-items: center;
294
294
  gap: 0.5rem;
295
295
  justify-content: center;
296
296
  }
297
- .bgl_btn .bgl_.bgl_icon-font[data-v-6f01c073] {
297
+ .bgl_btn .bgl_.bgl_icon-font[data-v-51ee7ea7] {
298
298
  font-size: calc(var(--input-font-size) * 1.3);
299
299
  }
300
- .bgl_btn[data-v-6f01c073],
301
- .bgl_btn-icon[data-v-6f01c073] {
302
- background-color: var(--62a40850);
303
- color: var(--2a1924b3);
300
+ .bgl_btn[data-v-51ee7ea7],
301
+ .bgl_btn-icon[data-v-51ee7ea7] {
302
+ background-color: var(--3607ab92);
303
+ color: var(--7910b026);
304
304
  }
305
- .bgl_btn[data-v-6f01c073]:hover,
306
- .bgl_btn-icon[data-v-6f01c073]:hover {
305
+ .bgl_btn[data-v-51ee7ea7]:hover,
306
+ .bgl_btn-icon[data-v-51ee7ea7]:hover {
307
307
  filter: var(--bgl-hover-filter);
308
308
  }
309
- .bgl_btn[data-v-6f01c073]:active,
310
- .bgl_btn-icon[data-v-6f01c073]:active {
309
+ .bgl_btn[data-v-51ee7ea7]:active,
310
+ .bgl_btn-icon[data-v-51ee7ea7]:active {
311
311
  filter: var(--bgl-active-filter);
312
312
  }
313
- .bgl_btn.bgl_flatBtn[data-v-6f01c073] {
313
+ .bgl_btn.bgl_flatBtn[data-v-51ee7ea7] {
314
314
  padding-left: var(--btn-padding);
315
315
  padding-right: var(--btn-padding);
316
316
  background: transparent;
317
317
  }
318
- .bgl_btn-icon.bgl_flatBtn[data-v-6f01c073] {
318
+ .bgl_btn-icon.bgl_flatBtn[data-v-51ee7ea7] {
319
319
  background: transparent;
320
320
  }
321
- .bgl_btn.bgl_flatBtn[data-v-6f01c073]:hover,
322
- .bgl_btn-icon.bgl_flatBtn[data-v-6f01c073]:hover {
321
+ .bgl_btn.bgl_flatBtn[data-v-51ee7ea7]:hover,
322
+ .bgl_btn-icon.bgl_flatBtn[data-v-51ee7ea7]:hover {
323
323
  filter: var(--bgl-active-filter);
324
324
  }
325
- .bgl_btn.bgl_flatBtn[data-v-6f01c073]:active,
326
- .bgl_btn-icon.bgl_flatBtn[data-v-6f01c073]:active {
325
+ .bgl_btn.bgl_flatBtn[data-v-51ee7ea7]:active,
326
+ .bgl_btn-icon.bgl_flatBtn[data-v-51ee7ea7]:active {
327
327
  background: var(--bgl-gray);
328
328
  filter: var(--bgl-hover-filter);
329
329
  }
330
- .bgl_btn.bgl_flatBtn.red[data-v-6f01c073],
331
- .bgl_btn-icon.bgl_flatBtn.red[data-v-6f01c073] {
330
+ .bgl_btn.bgl_flatBtn.red[data-v-51ee7ea7],
331
+ .bgl_btn-icon.bgl_flatBtn.red[data-v-51ee7ea7] {
332
332
  color: var(--bgl-red);
333
333
  }
334
- .bgl_btn.bgl_flatBtn.white[data-v-6f01c073],
335
- .bgl_btn-icon.bgl_flatBtn.white[data-v-6f01c073] {
334
+ .bgl_btn.bgl_flatBtn.white[data-v-51ee7ea7],
335
+ .bgl_btn-icon.bgl_flatBtn.white[data-v-51ee7ea7] {
336
336
  color: var(--bgl-white);
337
337
  }
338
- .bgl_btn.bgl_flatBtn.light[data-v-6f01c073],
339
- .bgl_btn-icon.bgl_flatBtn.light[data-v-6f01c073] {
338
+ .bgl_btn.bgl_flatBtn.light[data-v-51ee7ea7],
339
+ .bgl_btn-icon.bgl_flatBtn.light[data-v-51ee7ea7] {
340
340
  color: var(--bgl-primary-tint);
341
341
  }
342
- .bgl_btn.bgl_flatBtn.black[data-v-6f01c073],
343
- .bgl_btn-icon.bgl_flatBtn.black[data-v-6f01c073] {
342
+ .bgl_btn.bgl_flatBtn.black[data-v-51ee7ea7],
343
+ .bgl_btn-icon.bgl_flatBtn.black[data-v-51ee7ea7] {
344
344
  color: var(--bgl-black);
345
345
  }
346
- .bgl_btn.bgl_flatBtn.gray[data-v-6f01c073],
347
- .bgl_btn-icon.bgl_flatBtn.gray[data-v-6f01c073] {
346
+ .bgl_btn.bgl_flatBtn.gray[data-v-51ee7ea7],
347
+ .bgl_btn-icon.bgl_flatBtn.gray[data-v-51ee7ea7] {
348
348
  color: var(--bgl-gray);
349
349
  }
350
- .bgl_btn.thin[data-v-6f01c073] {
350
+ .bgl_btn.thin[data-v-51ee7ea7] {
351
351
  padding-left: calc(var(--btn-padding) / 2);
352
352
  padding-right: calc(var(--btn-padding) / 2);
353
353
  }
354
- .bgl_btn.round[data-v-6f01c073] {
354
+ .bgl_btn.round[data-v-51ee7ea7] {
355
355
  border-radius: calc(var(--btn-border-radius) * 2);
356
356
  }
357
- .bgl_btn-icon.thin[data-v-6f01c073] {
357
+ .bgl_btn-icon.thin[data-v-51ee7ea7] {
358
358
  height: calc(var(--btn-height) / 1.5);
359
359
  width: calc(var(--btn-height) / 1.5);
360
360
  line-height: 1;
361
361
  }
362
- [dir="rtl"] .bgl_.bgl_icon-font[data-v-6f01c073] {
362
+ [dir="rtl"] .bgl_.bgl_icon-font[data-v-51ee7ea7] {
363
363
  transform: rotateY(180deg);
364
364
  }
365
- .bgl_btn-border[data-v-6f01c073] {
366
- outline: 1px solid var(--62a40850);
367
- color: var(--62a40850);
365
+ .bgl_btn-border[data-v-51ee7ea7] {
366
+ outline: 1px solid var(--3607ab92);
367
+ color: var(--3607ab92);
368
368
  background: transparent;
369
369
  }
370
- .bgl_btn-border[data-v-6f01c073]:hover {
370
+ .bgl_btn-border[data-v-51ee7ea7]:hover {
371
371
  color: var(--bgl-white);
372
- background: var(--62a40850);
372
+ background: var(--3607ab92);
373
373
  filter: brightness(100%);
374
374
  }
375
- .bgl_btn-border[data-v-6f01c073]:active {
375
+ .bgl_btn-border[data-v-51ee7ea7]:active {
376
376
  filter: brightness(80%);
377
377
  }
378
378
  .bg-dark {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.473",
4
+ "version": "0.0.475",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -62,7 +62,7 @@ function getThemeColors(theme: Partial<typeof computedDefaultColors>): typeof co
62
62
  })
63
63
  }
64
64
 
65
- const themes: { [key in ThemeType]: typeof computedDefaultColors } = {
65
+ const themes: Partial<{ [key in ThemeType]: typeof computedDefaultColors }> = {
66
66
  'red': getThemeColors({ backgroundColor: 'var(--bgl-red)' }),
67
67
  'white': getThemeColors({ backgroundColor: 'var(--bgl-white)' }),
68
68
  'black': getThemeColors({ backgroundColor: 'var(--bgl-black)' }),
@@ -75,11 +75,11 @@ const themes: { [key in ThemeType]: typeof computedDefaultColors } = {
75
75
  }
76
76
 
77
77
  const cumputedTextColor = $computed(
78
- () => (themes[computedTheme as Partial<ThemeType>].color || computedDefaultColors.color),
78
+ () => (themes[computedTheme as ThemeType]?.color || computedDefaultColors.color),
79
79
  )
80
80
 
81
81
  const computedBackgroundColor = $computed(
82
- () => (themes[computedTheme as Partial<ThemeType>].backgroundColor || computedDefaultColors.backgroundColor),
82
+ () => (themes[computedTheme as ThemeType]?.backgroundColor || computedDefaultColors.backgroundColor),
83
83
  )
84
84
  </script>
85
85