@bagelink/vue 1.15.535 → 1.15.539

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.535",
4
+ "version": "1.15.539",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
@@ -280,7 +280,7 @@ onMounted(initializeCountry)
280
280
  <label>
281
281
  <span v-if="label || (underlined && placeholder)" class="label-text">{{ resolveI18n(label) || resolveI18n(placeholder) }}<span v-if="required"> *</span></span>
282
282
  <div
283
- dir="ltr" class="flex gap-05 tel-input" tabindex="-1" aria-label="Country Code Selector"
283
+ dir="ltr" class="flex gap-025 tel-input" tabindex="-1" aria-label="Country Code Selector"
284
284
  aria-haspopup="listbox" :aria-expanded="open"
285
285
  >
286
286
  <Dropdown
@@ -288,7 +288,7 @@ onMounted(initializeCountry)
288
288
  @show="focusSearchInput"
289
289
  >
290
290
  <template #trigger>
291
- <span class="flex gap-05 country-code-display" @click="open = !open">
291
+ <span class="flex gap-025 country-code-display" @click="open = !open">
292
292
  <Icon v-if="!disableDropdown" :icon="open ? 'collapse_all' : 'expand_all'" />
293
293
  <Flag v-if="activeCountryCode" :country="activeCountryCode" />
294
294
  <span v-if="activeCountry" class="dial-code">+{{ activeCountry.dialCode }}</span>
@@ -400,12 +400,14 @@ box-shadow: none !important;
400
400
  .country-code-display {
401
401
  align-items: center;
402
402
  white-space: nowrap;
403
+
403
404
  }
404
405
 
405
406
  .valid-check {
406
407
  flex-shrink: 0;
407
408
  margin-inline-end: 0.4rem;
408
409
  font-size: 1rem;
410
+ margin-inline-start: -15%;
409
411
  }
410
412
 
411
413
  .dial-code {
@@ -431,6 +433,7 @@ text-align: left;
431
433
 
432
434
  .national-number-input {
433
435
  margin-left: 4px;
436
+ padding-inline: 0;
434
437
  }
435
438
 
436
439
  .national-number-input:focus,
@@ -485,9 +485,9 @@ defineExpose({ formData, currentKey, nextKey, isTerminal, progress, completedKey
485
485
  >
486
486
  <div class="ffp-nav flex flex-center gap-1">
487
487
  <Btn
488
- class="ffp-nav-btn"
488
+ class="ffp-nav-btn icon-rtl-180"
489
489
  flat
490
- icon="arrow_back"
490
+ icon="chevron_left"
491
491
  :value="$t?.('multiStep.previous') ?? 'Back'"
492
492
  :disabled="!canGoBack"
493
493
  @click="onBack"
@@ -513,8 +513,8 @@ defineExpose({ formData, currentKey, nextKey, isTerminal, progress, completedKey
513
513
  </Btn>
514
514
  <Btn
515
515
  v-else
516
- class="ffp-nav-btn"
517
- icon-end="arrow_forward"
516
+ class="ffp-nav-btn icon-rtl-180"
517
+ icon-end="chevron_right"
518
518
  :value="$t?.('multiStep.next') ?? 'Next'"
519
519
  :disabled="submitting"
520
520
  @click="onPrimary"
package/vite.config.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { resolve } from 'node:path'
2
+ import { writeFileSync } from 'node:fs'
2
3
  // import { fileURLToPath, URL } from 'node:url'
3
4
  import vue from '@vitejs/plugin-vue'
4
5
  import { defineConfig, type Plugin } from 'vite'
@@ -39,6 +40,19 @@ function composeCssEntries(): Plugin {
39
40
  }
40
41
  }
41
42
 
43
+ function declarationCompatibilityShims(): Plugin {
44
+ return {
45
+ name: 'bagelink-declaration-compatibility-shims',
46
+ closeBundle() {
47
+ // Bun/TypeScript ESM resolution does not resolve `./components` in
48
+ // dist/index.d.ts to dist/components/index.d.ts. Keep the source
49
+ // barrel unchanged and provide the flat declaration target.
50
+ const target = resolve(import.meta.dirname, 'dist/components.d.ts')
51
+ writeFileSync(target, "export * from './components/index';\n")
52
+ },
53
+ }
54
+ }
55
+
42
56
  export default defineConfig({
43
57
  plugins: [
44
58
  tsconfigPaths({ root: indexDir, }),
@@ -48,6 +62,7 @@ export default defineConfig({
48
62
  copyDtsFiles: true,
49
63
  }),
50
64
  composeCssEntries(),
65
+ declarationCompatibilityShims(),
51
66
  ],
52
67
  resolve: {
53
68
  alias: {