@vio-live/web-sdk 0.7.0 → 0.8.0

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.
@@ -69,6 +69,8 @@ var VioTokens = {
69
69
  sm: "2px",
70
70
  md: "4px",
71
71
  lg: "8px",
72
+ /** Sheet/drawer corners — the largest surface radius in the checkout. */
73
+ xl: "16px",
72
74
  full: "9999px"
73
75
  }
74
76
  };
@@ -117,6 +119,7 @@ var VIO_TOKENS_CSS = `
117
119
  --vio-radius-sm: ${VioTokens.radius.sm};
118
120
  --vio-radius-md: ${VioTokens.radius.md};
119
121
  --vio-radius-lg: ${VioTokens.radius.lg};
122
+ --vio-radius-xl: ${VioTokens.radius.xl};
120
123
  }
121
124
  `;
122
125
  function injectTokens() {
@@ -140,7 +143,15 @@ var THEME_KEY_TO_CSS_VAR = {
140
143
  colorBorder: "--vio-color-border",
141
144
  colorBorderDefault: "--vio-color-border-default",
142
145
  fontSerif: "--vio-font-serif",
143
- fontSans: "--vio-font-sans"
146
+ fontSans: "--vio-font-sans",
147
+ radiusSm: "--vio-radius-sm",
148
+ radiusMd: "--vio-radius-md",
149
+ radiusLg: "--vio-radius-lg",
150
+ radiusXl: "--vio-radius-xl",
151
+ spaceSm: "--vio-space-sm",
152
+ spaceMd: "--vio-space-md",
153
+ spaceLg: "--vio-space-lg",
154
+ spaceXl: "--vio-space-xl"
144
155
  };
145
156
  function applyVioTheme(overrides, target = typeof document !== "undefined" ? document.documentElement : null) {
146
157
  if (!target) return;
@@ -2920,7 +2931,7 @@ var _VioCheckout = class _VioCheckout extends LitElement {
2920
2931
  max-height: 88vh;
2921
2932
  max-width: 460px;
2922
2933
  margin: 0 auto;
2923
- border-radius: 16px 16px 0 0;
2934
+ border-radius: var(--vio-radius-xl, 16px) var(--vio-radius-xl, 16px) 0 0;
2924
2935
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
2925
2936
  }
2926
2937
  .modal.as-drawer .handle {
@@ -2934,7 +2945,7 @@ var _VioCheckout = class _VioCheckout extends LitElement {
2934
2945
  width: 40px;
2935
2946
  height: 4px;
2936
2947
  background: var(--vio-color-border, #e5e5e5);
2937
- border-radius: 2px;
2948
+ border-radius: var(--vio-radius-sm, 2px);
2938
2949
  }
2939
2950
 
2940
2951
  /* Express (Apple Pay-style): right-side drawer, like the cart. Slides in
@@ -2971,7 +2982,7 @@ var _VioCheckout = class _VioCheckout extends LitElement {
2971
2982
  max-width: none;
2972
2983
  height: 92vh;
2973
2984
  transform: translateY(100%);
2974
- border-radius: 16px 16px 0 0;
2985
+ border-radius: var(--vio-radius-xl, 16px) var(--vio-radius-xl, 16px) 0 0;
2975
2986
  }
2976
2987
  :host([open]) .modal.as-side { transform: translateY(0); }
2977
2988
  }
@@ -2986,7 +2997,7 @@ var _VioCheckout = class _VioCheckout extends LitElement {
2986
2997
  max-width: 440px;
2987
2998
  height: auto;
2988
2999
  max-height: 88vh;
2989
- border-radius: 16px;
3000
+ border-radius: var(--vio-radius-xl, 16px);
2990
3001
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.4);
2991
3002
  transform: translate(-50%, -50%) scale(0.96);
2992
3003
  opacity: 0;
@@ -3002,7 +3013,7 @@ var _VioCheckout = class _VioCheckout extends LitElement {
3002
3013
  left: 0;
3003
3014
  width: 100%;
3004
3015
  max-width: none;
3005
- border-radius: 16px 16px 0 0;
3016
+ border-radius: var(--vio-radius-xl, 16px) var(--vio-radius-xl, 16px) 0 0;
3006
3017
  transform: translateY(100%) scale(1);
3007
3018
  opacity: 1;
3008
3019
  }
@@ -3016,7 +3027,7 @@ var _VioCheckout = class _VioCheckout extends LitElement {
3016
3027
  .modal {
3017
3028
  top: auto;
3018
3029
  height: 92vh;
3019
- border-radius: 16px 16px 0 0;
3030
+ border-radius: var(--vio-radius-xl, 16px) var(--vio-radius-xl, 16px) 0 0;
3020
3031
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
3021
3032
  }
3022
3033
  .handle {
@@ -3030,7 +3041,7 @@ var _VioCheckout = class _VioCheckout extends LitElement {
3030
3041
  width: 40px;
3031
3042
  height: 4px;
3032
3043
  background: var(--vio-color-border, #e5e5e5);
3033
- border-radius: 2px;
3044
+ border-radius: var(--vio-radius-sm, 2px);
3034
3045
  }
3035
3046
  }
3036
3047
 
@@ -3186,7 +3197,7 @@ var _VioCheckout = class _VioCheckout extends LitElement {
3186
3197
  flex: 1 1 auto;
3187
3198
  padding: 8px 12px;
3188
3199
  border: 1px solid var(--vio-color-border, #ddd);
3189
- border-radius: 8px;
3200
+ border-radius: var(--vio-radius-lg, 8px);
3190
3201
  background: #fff;
3191
3202
  font-size: 13px;
3192
3203
  cursor: pointer;
@@ -3210,7 +3221,7 @@ var _VioCheckout = class _VioCheckout extends LitElement {
3210
3221
  .ship-opt {
3211
3222
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
3212
3223
  padding: 12px 14px; border: 1px solid var(--vio-color-border, #ddd);
3213
- border-radius: 10px; background: #fff; cursor: pointer; font-family: inherit;
3224
+ border-radius: var(--vio-radius-lg, 8px); background: #fff; cursor: pointer; font-family: inherit;
3214
3225
  text-align: left;
3215
3226
  }
3216
3227
  .ship-opt.active {
@@ -3227,7 +3238,7 @@ var _VioCheckout = class _VioCheckout extends LitElement {
3227
3238
  padding: 12px 16px;
3228
3239
  background: #fdecea;
3229
3240
  border: 1px solid var(--vio-color-accent, #c14a3b);
3230
- border-radius: 8px;
3241
+ border-radius: var(--vio-radius-lg, 8px);
3231
3242
  font-size: 13px;
3232
3243
  color: var(--vio-color-accent, #c14a3b);
3233
3244
  text-align: center;
@@ -3237,7 +3248,7 @@ var _VioCheckout = class _VioCheckout extends LitElement {
3237
3248
  padding: 12px 16px;
3238
3249
  background: #f4f4f2;
3239
3250
  border: 1px solid var(--vio-color-border, #ddd);
3240
- border-radius: 8px;
3251
+ border-radius: var(--vio-radius-lg, 8px);
3241
3252
  font-size: 13px;
3242
3253
  color: var(--vio-color-text, #1a1a1a);
3243
3254
  text-align: center;
@@ -4714,5 +4725,5 @@ function registerVioElements() {
4714
4725
  }
4715
4726
 
4716
4727
  export { VioCart, VioCheckout, VioProduct, VioProductCarousel, VioProductDetail, VioTokens, applyVioTheme, registerVioElements };
4717
- //# sourceMappingURL=chunk-GPMDZSC2.js.map
4718
- //# sourceMappingURL=chunk-GPMDZSC2.js.map
4728
+ //# sourceMappingURL=chunk-YNKOGPTE.js.map
4729
+ //# sourceMappingURL=chunk-YNKOGPTE.js.map