@eldrajs/ui 0.2.2 → 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 +5 -0
- package/README.md +45 -9
- package/dist/{VariantPicker-CqDAtSju.js → VariantPicker-CWnrUgIt.js} +2 -2
- package/dist/components/drawer/Drawer.vue.d.ts +5 -3
- package/dist/components/image/Image.vue.d.ts +8 -6
- package/dist/components/image/types.d.ts +20 -3
- package/dist/components/nav-menu/NavMenu.vue.d.ts +16 -12
- package/dist/components/nav-menu/NavMenuPanel.vue.d.ts +6 -11
- package/dist/components/nav-menu/types.d.ts +26 -1
- package/dist/components.css +17 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +350 -212
- package/dist/style.css +17 -0
- package/dist/utils/ratio.d.ts +3 -2
- package/dist/utils/sizes.d.ts +2 -0
- package/dist/vee-validate.js +1 -1
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -2791,6 +2791,10 @@
|
|
|
2791
2791
|
padding-block: var(--spacing-3);
|
|
2792
2792
|
}
|
|
2793
2793
|
|
|
2794
|
+
.py-3\.5 {
|
|
2795
|
+
padding-block: calc(var(--spacing) * 3.5);
|
|
2796
|
+
}
|
|
2797
|
+
|
|
2794
2798
|
.py-4 {
|
|
2795
2799
|
padding-block: var(--spacing-4);
|
|
2796
2800
|
}
|
|
@@ -2931,6 +2935,10 @@
|
|
|
2931
2935
|
padding-top: var(--spacing-4);
|
|
2932
2936
|
}
|
|
2933
2937
|
|
|
2938
|
+
.pt-5 {
|
|
2939
|
+
padding-top: var(--spacing-5);
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2934
2942
|
.pt-6 {
|
|
2935
2943
|
padding-top: var(--spacing-6);
|
|
2936
2944
|
}
|
|
@@ -4242,6 +4250,10 @@
|
|
|
4242
4250
|
background-color: var(--color-overlay);
|
|
4243
4251
|
}
|
|
4244
4252
|
|
|
4253
|
+
.backdrop\:bg-transparent::backdrop {
|
|
4254
|
+
background-color: #0000;
|
|
4255
|
+
}
|
|
4256
|
+
|
|
4245
4257
|
.before\:absolute:before {
|
|
4246
4258
|
content: var(--tw-content);
|
|
4247
4259
|
position: absolute;
|
|
@@ -4282,6 +4294,11 @@
|
|
|
4282
4294
|
inset: 0;
|
|
4283
4295
|
}
|
|
4284
4296
|
|
|
4297
|
+
.last\:border-b-0:last-child {
|
|
4298
|
+
border-bottom-style: var(--tw-border-style);
|
|
4299
|
+
border-bottom-width: 0;
|
|
4300
|
+
}
|
|
4301
|
+
|
|
4285
4302
|
.open\:block:is([open], :popover-open, :open) {
|
|
4286
4303
|
display: block;
|
|
4287
4304
|
}
|
package/dist/utils/ratio.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ import { ImageMedia, ImageRatio } from '../components/image/types.js';
|
|
|
3
3
|
* The frame's `aspect-ratio` CSS value (spec "Image" → Properties, `ratio` row: "`auto` uses the
|
|
4
4
|
* image's own ratio, or 4:3 when empty").
|
|
5
5
|
*
|
|
6
|
-
* - A fixed preset always wins outright — its own literal `w / h` ratio, whatever `media` is
|
|
6
|
+
* - A fixed preset always wins outright — its own literal `w / h` ratio, whatever `media` is; so
|
|
7
|
+
* does a number, which is the width ÷ height itself.
|
|
7
8
|
* - `auto` with a `media.width`/`height` pair uses the image's own intrinsic ratio, computed here
|
|
8
9
|
* rather than left to the browser's native `aspect-ratio: auto` resolution: that keyword only
|
|
9
10
|
* sizes a *replaced* element (the `<img>` itself) from its intrinsic size, but the frame that
|
|
@@ -15,4 +16,4 @@ import { ImageMedia, ImageRatio } from '../components/image/types.js';
|
|
|
15
16
|
* is nothing to precompute, so the frame's height tracks its content the way a plain image would.
|
|
16
17
|
* - `auto` with no `media` at all falls back to 4:3 (the spec's own fallback for an empty frame).
|
|
17
18
|
*/
|
|
18
|
-
export declare function frameAspectRatio(ratio: ImageRatio, media: Pick<ImageMedia, 'width' | 'height'> | null | undefined): string;
|
|
19
|
+
export declare function frameAspectRatio(ratio: ImageRatio | number, media: Pick<ImageMedia, 'width' | 'height'> | null | undefined): string;
|
package/dist/utils/sizes.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
/** Multiplies every length in an `<img sizes>` list by `zoom`, keeping its media conditions. */
|
|
2
2
|
export declare function zoomSizes(sizes: string, zoom: number): string;
|
|
3
|
+
/** Puts every entry of an `<img sizes>` list under `condition` as well as its own condition. */
|
|
4
|
+
export declare function scopeSizes(sizes: string, condition: string): string;
|
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",
|