@eldrajs/ui 0.2.3 → 0.2.4
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/CHANGELOG.md
CHANGED
|
@@ -89,6 +89,7 @@ Release-please writes the generated notes from commit messages and does not repl
|
|
|
89
89
|
|
|
90
90
|
### Fixed
|
|
91
91
|
|
|
92
|
+
- **`Textarea` hydrates without a mismatch.** It rendered `rows="3"` on the server, where `field-sizing` cannot be detected, and no `rows` in a browser that supports it, so every server-rendered page with a `Textarea` logged a hydration mismatch. It now renders `rows="3"` everywhere; `field-sizing: content` ignores it, so the box sizes as before.
|
|
92
93
|
- **`Image` with a `zoom` above 1 is sharp.** Under `fit: 'cover'` (the default) it multiplies every length in its effective `sizes` (the prop, else `media.sizes`) by the zoom, so the browser picks a `srcset` candidate for the magnified crop rather than for the frame, whose variant was up to `zoom` times too narrow. Write `sizes` for the frame as before; `fit: 'contain'` and a zoom of 1 leave it unchanged. See `docs/images.md`, "An art-directed crop".
|
|
93
94
|
- **A weight utility beside a type style now applies.** Most `text-*` type styles set the `font` shorthand, which Tailwind cannot place in its property order and so emits after every `font-*` weight utility: `text-body font-medium` rendered at 400. The type styles now set longhands and read their weight as `var(--tw-font-weight, <token>)`, so the weight utility wins in any order, a consumer's `classes` weight override included. Visible changes, each now the weight the component asks for: `NavMenu`'s bar entries and panel labels (500) and panel overview link (600); `Breadcrumb`'s current page (500) and ellipsis (600); `Rating`'s value, `Toast`'s action, `EditorPlaceholder`'s label, the search results' **See all** row, a selected single-`Select` option and a warning/danger option meta, `FilterPanel`'s checked colour and list labels (600); `SearchModal`'s **Cancel** and a selected `MultiSelect` option (500). `tabular-nums` beside a type style is no longer reset either: `QuantityStepper`'s value, `RadioGroup`'s card meta, the compact `Pagination` and the `CurrencyInput`/`UnitInput`/`RangeSlider` fields now print tabular figures. `LoadMore`'s button drops a `font-medium` the shorthand used to hide, so it stays at the outline button's 600.
|
|
94
95
|
- **`cx` merges the kit's own theme keys.** `shadow-float` and the `narrow`/`content`/`wide`/`tablet`/`two-col` container widths (`w-*`, `min-w-*`, `max-w-*`, `basis-*`) were unknown to `tailwind-merge`, so `cx('shadow-md', 'shadow-float')` kept both and a `classes` override landed beside the default instead of replacing it.
|
|
@@ -8605,8 +8605,8 @@ var Textarea_default = /* @__PURE__ */ defineComponent({
|
|
|
8605
8605
|
* `rem` string passed as a prop; not attempted here.
|
|
8606
8606
|
*/
|
|
8607
8607
|
const fieldSizingSupported = supportsFieldSizing();
|
|
8608
|
-
/**
|
|
8609
|
-
const rowsFallback = ref(
|
|
8608
|
+
/** The same `rows` on the server and in every browser, so hydration matches; `field-sizing: content` ignores it. */
|
|
8609
|
+
const rowsFallback = ref(MIN_ROWS);
|
|
8610
8610
|
/**
|
|
8611
8611
|
* The measured fallback (spec "Textarea" → Variants): "Elsewhere, set the height to the scroll
|
|
8612
8612
|
* height on input, clamped to 16rem." `rows` is what is actually adjustable on a native
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as useEldraUiLocale, A as FIELD_BASE, B as formatCurrency, C as filterNumericBeforeInput, D as stripMask, E as defaultCharacterMeaning, F as FIELD_SIZE, G as useSlotPresence, H as formatUnit, I as createNumberFormat, J as DEFAULT_UI_LOCALE, K as useHeadingTag, L as currencyFractionDigits, M as FIELD_DISABLED, N as FIELD_LIVE, O as CurrencyInput_default, P as FIELD_SEARCH_APPEARANCE, Q as useEldraUiCurrency, R as currencySymbol, S as VisuallyHidden_default, T as applyMask, U as localeSeparators, V as formatNumber, W as parseLocaleNumber, X as provideEldraUiCurrency, Y as LOCALE_KEY, Z as provideEldraUiLocale, _ as normalizeText, _t as useControllableModel, a as claimShortcut, at as FieldError_default, bt as cx, c as SearchResultsPanel_default, ct as Button_default, d as MultiSelect_default, dt as FORM_LAYOUT_KEY, et as TAG_FILL, f as usePopover, ft as FORM_SUBMITTING_KEY, g as matchRange, gt as enUS, h as useFloating, ht as useMessages, i as SearchBar_default, it as CheckboxGroup_default, j as FIELD_CLEAR_BUTTON, k as UnitInput_default, l as RadioGroup_default, lt as Spinner_default, m as useTeleportTarget, mt as provideEldraUiMessages, n as Textarea_default, nt as TAG_SHAPE, o as ownsShortcut, ot as Checkbox_default, p as useOverlay, pt as MESSAGES_KEY, q as CURRENCY_KEY, r as Select_default, rt as tagPadding, s as releaseShortcut, st as FIELD_KEY, t as VariantPicker_default, tt as TAG_REMOVE_BUTTON, u as QuantityStepper_default, ut as Icon_default, v as useListbox, vt as joinIds, w as Input_default, x as Switch_default, xt as partClass, y as FormLayout_default, yt as useUiId, z as defaultUnitFormat } from "./VariantPicker-
|
|
1
|
+
import { $ as useEldraUiLocale, A as FIELD_BASE, B as formatCurrency, C as filterNumericBeforeInput, D as stripMask, E as defaultCharacterMeaning, F as FIELD_SIZE, G as useSlotPresence, H as formatUnit, I as createNumberFormat, J as DEFAULT_UI_LOCALE, K as useHeadingTag, L as currencyFractionDigits, M as FIELD_DISABLED, N as FIELD_LIVE, O as CurrencyInput_default, P as FIELD_SEARCH_APPEARANCE, Q as useEldraUiCurrency, R as currencySymbol, S as VisuallyHidden_default, T as applyMask, U as localeSeparators, V as formatNumber, W as parseLocaleNumber, X as provideEldraUiCurrency, Y as LOCALE_KEY, Z as provideEldraUiLocale, _ as normalizeText, _t as useControllableModel, a as claimShortcut, at as FieldError_default, bt as cx, c as SearchResultsPanel_default, ct as Button_default, d as MultiSelect_default, dt as FORM_LAYOUT_KEY, et as TAG_FILL, f as usePopover, ft as FORM_SUBMITTING_KEY, g as matchRange, gt as enUS, h as useFloating, ht as useMessages, i as SearchBar_default, it as CheckboxGroup_default, j as FIELD_CLEAR_BUTTON, k as UnitInput_default, l as RadioGroup_default, lt as Spinner_default, m as useTeleportTarget, mt as provideEldraUiMessages, n as Textarea_default, nt as TAG_SHAPE, o as ownsShortcut, ot as Checkbox_default, p as useOverlay, pt as MESSAGES_KEY, q as CURRENCY_KEY, r as Select_default, rt as tagPadding, s as releaseShortcut, st as FIELD_KEY, t as VariantPicker_default, tt as TAG_REMOVE_BUTTON, u as QuantityStepper_default, ut as Icon_default, v as useListbox, vt as joinIds, w as Input_default, x as Switch_default, xt as partClass, y as FormLayout_default, yt as useUiId, z as defaultUnitFormat } from "./VariantPicker-CWnrUgIt.js";
|
|
2
2
|
import { Comment, Fragment, Teleport, Text, Transition, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, inject, isRef, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, onUnmounted, onUpdated, openBlock, provide, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRef, toValue, unref, useAttrs, useId, useSlots, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
3
3
|
import { dateTimeFormat } from "@eldrajs/sdk/format/date";
|
|
4
4
|
//#region src/components/accordion/context.ts
|
package/dist/vee-validate.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as CurrencyInput_default, b as focusInvalid, d as MultiSelect_default, ht as useMessages, i as SearchBar_default, it as CheckboxGroup_default, k as UnitInput_default, l as RadioGroup_default, n as Textarea_default, ot as Checkbox_default, r as Select_default, st as FIELD_KEY, t as VariantPicker_default, u as QuantityStepper_default, w as Input_default, x as Switch_default, y as FormLayout_default, yt as useUiId } from "./VariantPicker-
|
|
1
|
+
import { O as CurrencyInput_default, b as focusInvalid, d as MultiSelect_default, ht as useMessages, i as SearchBar_default, it as CheckboxGroup_default, k as UnitInput_default, l as RadioGroup_default, n as Textarea_default, ot as Checkbox_default, r as Select_default, st as FIELD_KEY, t as VariantPicker_default, u as QuantityStepper_default, w as Input_default, x as Switch_default, y as FormLayout_default, yt as useUiId } from "./VariantPicker-CWnrUgIt.js";
|
|
2
2
|
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createSlots, createTextVNode, defineComponent, guardReactiveProps, inject, isRef, mergeProps, nextTick, normalizeClass, normalizeProps, onMounted, onScopeDispose, openBlock, provide, ref, renderList, renderSlot, toDisplayString, unref, watch, withCtx } from "vue";
|
|
3
3
|
import { FormContextKey, useField, useForm } from "vee-validate";
|
|
4
4
|
//#region src/vee-validate/context.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eldrajs/ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
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",
|