@eldrajs/ui 0.3.21 → 0.3.22

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.
@@ -1,7 +1,7 @@
1
- import { d as useEldraUiLocale } from "../useOptionList-UMUMayec.js";
1
+ import { d as useEldraUiLocale } from "../useOptionList-DuAKag8J.js";
2
2
  import { r as useMessages } from "../useMessages-D8bTGX7c.js";
3
- import { a as useControlProps, n as FIELD_ONLY, o as useFieldControl, r as FIELD_VALIDATION_DEFAULTS } from "../useFieldControl-BnO3B37W.js";
4
- import { r as phoneRule, t as PhoneInput_default } from "../PhoneInput-f6wxvduD.js";
3
+ import { a as useControlProps, n as FIELD_ONLY, o as useFieldControl, r as FIELD_VALIDATION_DEFAULTS } from "../useFieldControl-D_h1RWyU.js";
4
+ import { r as phoneRule, t as PhoneInput_default } from "../PhoneInput-D_z9MuDw.js";
5
5
  import { computed, createBlock, createSlots, defineComponent, guardReactiveProps, isRef, mergeDefaults, mergeProps, normalizeProps, openBlock, reactive, ref, renderList, renderSlot, toRefs, unref, withCtx } from "vue";
6
6
  // src/phone/vee-validate/FieldPhoneInput.vue
7
7
  var FieldPhoneInput_default = /* @__PURE__ */ defineComponent({
package/dist/phone.js CHANGED
@@ -1,3 +1,3 @@
1
- import { a as parsePhone, c as phoneExample, i as isValidPhone, n as phoneCountryName, o as phoneCallingCode, r as phoneRule, s as phoneCountries, t as PhoneInput_default } from "./PhoneInput-f6wxvduD.js";
1
+ import { a as parsePhone, c as phoneExample, i as isValidPhone, n as phoneCountryName, o as phoneCallingCode, r as phoneRule, s as phoneCountries, t as PhoneInput_default } from "./PhoneInput-D_z9MuDw.js";
2
2
  import { n as preloadCountryFlags } from "./CountryFlag-DOa8lOHp.js";
3
3
  export { PhoneInput_default as PhoneInput, isValidPhone, parsePhone, phoneCallingCode, phoneCountries, phoneCountryName, phoneExample, phoneRule, preloadCountryFlags as preloadPhoneFlags };
package/dist/style.css CHANGED
@@ -972,6 +972,10 @@
972
972
  field-sizing: content;
973
973
  }
974
974
 
975
+ .eldra\:aspect-\(--eldra-nav-menu-card-aspect\) {
976
+ aspect-ratio: var(--eldra-nav-menu-card-aspect);
977
+ }
978
+
975
979
  .eldra\:aspect-square {
976
980
  aspect-ratio: 1;
977
981
  }
@@ -1175,6 +1179,10 @@
1175
1179
  height: 1em;
1176
1180
  }
1177
1181
 
1182
+ .eldra\:h-\[calc\(100dvh-var\(--eldra-nav-menu-drawer-top\,0px\)\)\] {
1183
+ height: calc(100dvh - var(--eldra-nav-menu-drawer-top, 0px));
1184
+ }
1185
+
1178
1186
  .eldra\:h-auto {
1179
1187
  height: auto;
1180
1188
  }
@@ -1550,6 +1558,11 @@
1550
1558
  translate: var(--tw-translate-x) var(--tw-translate-y);
1551
1559
  }
1552
1560
 
1561
+ .eldra\:-translate-y-1 {
1562
+ --tw-translate-y: calc(var(--eldra-space-1) * -1);
1563
+ translate: var(--tw-translate-x) var(--tw-translate-y);
1564
+ }
1565
+
1553
1566
  .eldra\:-translate-y-1\/2 {
1554
1567
  --tw-translate-y: calc(calc(1 / 2 * 100%) * -1);
1555
1568
  translate: var(--tw-translate-x) var(--tw-translate-y);
@@ -1673,6 +1686,10 @@
1673
1686
  animation: eldra-lightbox-in var(--eldra-duration-slow) var(--eldra-ease-out);
1674
1687
  }
1675
1688
 
1689
+ .eldra\:animate-eldra-menu-in {
1690
+ animation: eldra-menu-in var(--eldra-duration-base) var(--eldra-ease-out);
1691
+ }
1692
+
1676
1693
  .eldra\:animate-eldra-spin {
1677
1694
  animation: .7s linear infinite eldra-spin;
1678
1695
  }
@@ -3846,6 +3863,12 @@
3846
3863
  filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
3847
3864
  }
3848
3865
 
3866
+ .eldra\:transition-\[opacity\,translate\,clip-path\] {
3867
+ transition-property: opacity, translate, clip-path;
3868
+ transition-timing-function: var(--tw-ease, var(--eldra-default-transition-timing-function));
3869
+ transition-duration: var(--tw-duration, var(--eldra-default-transition-duration));
3870
+ }
3871
+
3849
3872
  .eldra\:transition-\[rotate\] {
3850
3873
  transition-property: rotate;
3851
3874
  transition-timing-function: var(--tw-ease, var(--eldra-default-transition-timing-function));
@@ -3989,6 +4012,14 @@
3989
4012
  --eldra-radio-card-selected-color: var(--eldra-color-danger);
3990
4013
  }
3991
4014
 
4015
+ .eldra\:\[clip-path\:inset\(0\)\] {
4016
+ clip-path: inset(0);
4017
+ }
4018
+
4019
+ .eldra\:\[clip-path\:inset\(0_0_65\%_0\)\] {
4020
+ clip-path: inset(0 0 65%);
4021
+ }
4022
+
3992
4023
  .eldra\:eldra-rating-half {
3993
4024
  clip-path: inset(0 50% 0 0);
3994
4025
  }
@@ -5225,6 +5256,20 @@
5225
5256
  }
5226
5257
  }
5227
5258
 
5259
+ @keyframes eldra-menu-in {
5260
+ from {
5261
+ opacity: 0;
5262
+ clip-path: inset(0 -3rem 65%);
5263
+ transform: translateY(-.25rem);
5264
+ }
5265
+
5266
+ to {
5267
+ opacity: 1;
5268
+ clip-path: inset(0 -3rem -3rem);
5269
+ transform: none;
5270
+ }
5271
+ }
5272
+
5228
5273
  [data-section-bg="none"] + [data-section-bg="none"], [data-section-bg="surface"] + [data-section-bg="surface"], [data-section-bg="surface-strong"] + [data-section-bg="surface-strong"], [data-section-bg="primary"] + [data-section-bg="primary"], [data-section-bg="accent"] + [data-section-bg="accent"] {
5229
5274
  padding-top: 0;
5230
5275
  }
@@ -1,4 +1,4 @@
1
- import { $ as FIELD_KEY, rt as useUiId } from "./useOptionList-UMUMayec.js";
1
+ import { $ as FIELD_KEY, rt as useUiId } from "./useOptionList-DuAKag8J.js";
2
2
  import { computed, inject, onMounted, onScopeDispose, shallowRef, watch } from "vue";
3
3
  import { FormContextKey, useField, validate } from "vee-validate";
4
4
  // src/vee-validate/context.ts
@@ -269,6 +269,7 @@ var kitMerge = extendTailwindMerge({
269
269
  "animate-eldra-spin",
270
270
  "animate-eldra-pulse",
271
271
  "animate-eldra-popover-in",
272
+ "animate-eldra-menu-in",
272
273
  "animate-eldra-dialog-in",
273
274
  "animate-eldra-dialog-in-reduced",
274
275
  "animate-eldra-drawer-in-right",
@@ -1292,6 +1292,29 @@
1292
1292
  transform-origin: var(--eldra-popover-origin, top left);
1293
1293
  }
1294
1294
 
1295
+ /* A `NavMenu` panel's entrance, a full-width mega sheet and a dropdown alike: its top third shows
1296
+ at once and the rest unrolls downward as it fades in and drops 0.25rem into place, over
1297
+ `duration-base` with `ease-out`. Showing the top at once keeps the panel attached to the bar from
1298
+ the first frame, and the short unroll reads as the panel opening rather than arriving. Tried and
1299
+ dropped (WS-1277): the popover entrance, whose growth from a corner read as the panel sliding in
1300
+ from the left; a full unroll, heavy; a fade with a slight scale, flat. The clip reaches 3rem past
1301
+ the sides and bottom so the shadow is never cut off. Reduced motion is the duration token's. */
1302
+ @keyframes eldra-menu-in {
1303
+ from {
1304
+ opacity: 0;
1305
+ transform: translateY(-0.25rem);
1306
+ clip-path: inset(0 -3rem 65% -3rem);
1307
+ }
1308
+ to {
1309
+ opacity: 1;
1310
+ transform: none;
1311
+ clip-path: inset(0 -3rem -3rem -3rem);
1312
+ }
1313
+ }
1314
+ @utility animate-eldra-menu-in {
1315
+ animation: eldra-menu-in var(--eldra-duration-base) var(--eldra-ease-out);
1316
+ }
1317
+
1295
1318
  /* --- Tooltip ---------------------------------------------------------------------------------- */
1296
1319
 
1297
1320
  /* Spec "Tooltip" -> Sizes: "0.8125rem / 1.4, weight 500, one line (no wrap)". The size and line
@@ -1,6 +1,6 @@
1
- import { $ as Autocomplete_default, E as UnitInput_default, G as Checkbox_default, S as Switch_default, T as CurrencyInput_default, W as CheckboxGroup_default, b as FormLayout_default, c as RadioGroup_default, et as Input_default, n as Textarea_default, r as SearchBar_default, t as VariantPicker_default, v as QuantityStepper_default, w as Select_default, x as focusInvalid, y as MultiSelect_default } from "./VariantPicker-CCci26If.js";
1
+ import { $ as Autocomplete_default, E as UnitInput_default, G as Checkbox_default, S as Switch_default, T as CurrencyInput_default, W as CheckboxGroup_default, b as FormLayout_default, c as RadioGroup_default, et as Input_default, n as Textarea_default, r as SearchBar_default, t as VariantPicker_default, v as QuantityStepper_default, w as Select_default, x as focusInvalid, y as MultiSelect_default } from "./VariantPicker-DgDBOM-w.js";
2
2
  import { r as useMessages } from "./useMessages-D8bTGX7c.js";
3
- import { a as useControlProps, c as FIELD_ANCHORS_KEY, i as FIELD_VALIDATION_PROPS, l as FIELD_MESSAGES_KEY, n as FIELD_ONLY, o as useFieldControl, r as FIELD_VALIDATION_DEFAULTS, s as API_ERRORS_KEY, t as FIELD_CHOICE_VALIDATION_DEFAULTS } from "./useFieldControl-BnO3B37W.js";
3
+ import { a as useControlProps, c as FIELD_ANCHORS_KEY, i as FIELD_VALIDATION_PROPS, l as FIELD_MESSAGES_KEY, n as FIELD_ONLY, o as useFieldControl, r as FIELD_VALIDATION_DEFAULTS, s as API_ERRORS_KEY, t as FIELD_CHOICE_VALIDATION_DEFAULTS } from "./useFieldControl-D_h1RWyU.js";
4
4
  import { r as useEldraScope } from "./useEldraScope-BDbGzt7R.js";
5
5
  import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createSlots, createTextVNode, defineComponent, guardReactiveProps, isRef, mergeDefaults, mergeProps, nextTick, normalizeClass, normalizeProps, onMounted, openBlock, provide, ref, renderList, renderSlot, toDisplayString, unref, watch, withCtx } from "vue";
6
6
  import { useForm } from "vee-validate";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eldrajs/ui",
3
- "version": "0.3.21",
3
+ "version": "0.3.22",
4
4
  "description": "Accessible Vue 3 core components for Eldra storefronts: buttons, forms, selects, cards, overlays and navigation, themed through CSS design tokens.",
5
5
  "keywords": [
6
6
  "accessible",
@@ -77,7 +77,7 @@
77
77
  "dependencies": {
78
78
  "@floating-ui/vue": "^1.1.5",
79
79
  "tailwind-merge": "^3.0.0",
80
- "@eldrajs/sdk": "^0.5.4"
80
+ "@eldrajs/sdk": "^0.5.5"
81
81
  },
82
82
  "devDependencies": {
83
83
  "@playwright/test": "1.62.1",