@bagelink/vue 1.20.80 → 1.20.83

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.20.80",
4
+ "version": "1.20.83",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
@@ -63,7 +63,7 @@
63
63
  "@types/signature_pad": "^4.0.0",
64
64
  "vue": "^3.5.43",
65
65
  "vue-component-type-helpers": "^2.2.12",
66
- "@bagelink/sdk": "1.20.80"
66
+ "@bagelink/sdk": "1.20.83"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "@bagelink/sdk": "*",
@@ -12,7 +12,7 @@ const props = defineProps<{
12
12
  color?: string
13
13
  /** Size of each digit box (sets --otp-input-width & --otp-input-height). Accepts any CSS length (e.g. "2.5rem", "40px"). Default: 3rem. */
14
14
  size?: string
15
- /** Digit box size below 910px (sets --otp-input-mobile-width & --otp-input-mobile-height). Falls back to `size` when omitted. */
15
+ /** Optional mobile-only size below 910px (sets --otp-input-mobile-width & --otp-input-mobile-height). When omitted, mobile uses the desktop size. */
16
16
  mobileSize?: string
17
17
  } & BagelInputShellProps>()
18
18
 
@@ -208,10 +208,10 @@ outline-offset: var(--otp-input-outline-offset);
208
208
  --otp-input-gap: 5px;
209
209
  --otp-input-bg: var(--bgl-gray-light);
210
210
  --otp-input-color: var(--bgl-otp-digit-color, inherit);
211
- --otp-input-mobile-width: var(--bgl-otp-digit-mobile-size, var(--otp-input-width));
212
- --otp-input-mobile-height: var(--bgl-otp-digit-mobile-size, var(--otp-input-height));
213
- --otp-input-mobile-font-size: calc(var(--otp-input-mobile-height) * 0.8);
214
- --otp-input-mobile-padding: 0.25rem;
211
+ /* Mobile vars are intentionally unset by default — the media query falls
212
+ back to the desktop vars (and the previous 0.25rem padding). Set
213
+ --otp-input-mobile-* (or the mobileSize prop) only when you need a
214
+ mobile-specific override. */
215
215
  }
216
216
 
217
217
  .otp-input.frame .digit-box {
@@ -238,10 +238,10 @@ outline-offset: -1px;
238
238
 
239
239
  @media screen and (max-width: 910px) {
240
240
  .digit-box {
241
- width: var(--otp-input-mobile-width);
242
- height: var(--otp-input-mobile-height);
243
- font-size: var(--otp-input-mobile-font-size);
244
- padding: var(--otp-input-mobile-padding);
241
+ width: var(--otp-input-mobile-width, var(--bgl-otp-digit-mobile-size, var(--otp-input-width)));
242
+ height: var(--otp-input-mobile-height, var(--bgl-otp-digit-mobile-size, var(--otp-input-height)));
243
+ font-size: var(--otp-input-mobile-font-size, var(--otp-input-font-size));
244
+ padding: var(--otp-input-mobile-padding, 0.25rem);
245
245
  }
246
246
  }
247
247