@a4ui/core 0.23.0 → 0.24.1
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/dist/{NumberInput-enx_0iVh.js → NumberInput-DcJlXNKq.js} +3 -0
- package/dist/commerce.js +44 -42
- package/dist/elements.iife.js +2 -2
- package/dist/elements.js +2047 -1842
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/ui/NumberInput.d.ts +2 -0
- package/package.json +1 -1
- package/src/commerce/FacetSidebar.tsx +2 -0
- package/src/index.ts +1 -1
- package/src/ui/NumberInput.tsx +6 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const A4UI_VERSION = "0.
|
|
1
|
+
export declare const A4UI_VERSION = "0.24.1";
|
|
2
2
|
export { cn } from './lib/cn';
|
|
3
3
|
export { useTheme, toggleTheme, setTheme, storedTheme, applyTheme, toggled, type Theme } from './lib/theme';
|
|
4
4
|
export { useEffects, isCalm, setEffects } from './lib/effects';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as p } from "./cn-B6yFEsav.js";
|
|
2
2
|
import { createSignal as z, onCleanup as q, onMount as G, For as A, createMemo as Q, Show as S, createEffect as re, createUniqueId as vr, useContext as br, createContext as xr, splitProps as ie, Index as Re, on as Ht, Switch as $r, Match as We, ErrorBoundary as yr, Suspense as wr } from "solid-js";
|
|
3
|
-
import { a as se, d as pr, C as Vt, e as Kt, f as Ut, m as X, B as _r, g as kr, h as Cr, s as Ue, i as Sr, u as Er } from "./NumberInput-
|
|
4
|
-
import { b as bf, c as xf, N as $f, R as yf, j as wf, S as pf, T as _f, k as kf, l as Cf, n as Sf, p as Ef, r as Mf, o as Tf, q as Lf } from "./NumberInput-
|
|
3
|
+
import { a as se, d as pr, C as Vt, e as Kt, f as Ut, m as X, B as _r, g as kr, h as Cr, s as Ue, i as Sr, u as Er } from "./NumberInput-DcJlXNKq.js";
|
|
4
|
+
import { b as bf, c as xf, N as $f, R as yf, j as wf, S as pf, T as _f, k as kf, l as Cf, n as Sf, p as Ef, r as Mf, o as Tf, q as Lf } from "./NumberInput-DcJlXNKq.js";
|
|
5
5
|
import { createComponent as o, memo as V, insert as s, template as v, effect as _, setAttribute as T, className as M, delegateEvents as Y, Portal as me, setStyleProperty as O, use as R, classList as qt, spread as ce, mergeProps as de, Dynamic as Gt, addEventListener as Ke, style as ue } from "solid-js/web";
|
|
6
6
|
import { Accordion as _e } from "@kobalte/core/accordion";
|
|
7
7
|
import { ChevronsLeft as Mr, ChevronLeft as Oe, ChevronRight as fe, ChevronsRight as Tr, CalendarDays as Wt, Clock as Lr, File as mt, Check as xe, X as ge, ChevronDown as qe, UploadCloud as Dr, CircleX as Jt, TriangleAlert as Zt, CircleCheck as Qt, Info as er, Copy as Ir, ChevronsUpDown as tr, ChevronsLeftRight as Ar, Inbox as Fr, Star as zr, ServerCrash as Pr, Compass as Rr, ArrowUp as Or, Plus as Br, ChevronUp as jr, Bell as Nr, GripVertical as ht, Loader2 as Yr, Satellite as Xr, Moon as Hr, Sun as Vr, Sparkles as Kr } from "lucide-solid";
|
|
@@ -7222,7 +7222,7 @@ function ff() {
|
|
|
7222
7222
|
}
|
|
7223
7223
|
Id(e && hr(e) || gt);
|
|
7224
7224
|
}
|
|
7225
|
-
const mf = "0.
|
|
7225
|
+
const mf = "0.24.1";
|
|
7226
7226
|
export {
|
|
7227
7227
|
mf as A4UI_VERSION,
|
|
7228
7228
|
du as Accordion,
|
package/dist/ui/NumberInput.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ interface NumberInputProps {
|
|
|
6
6
|
min?: number;
|
|
7
7
|
/** Upper bound; the increment trigger disables itself at this value. */
|
|
8
8
|
max?: number;
|
|
9
|
+
/** Accessible name applied to the input as its `aria-label` (no visible label is rendered). */
|
|
10
|
+
'aria-label'?: string;
|
|
9
11
|
class?: string;
|
|
10
12
|
}
|
|
11
13
|
/**
|
package/package.json
CHANGED
|
@@ -195,6 +195,7 @@ export function FacetSidebar(props: FacetSidebarProps): JSX.Element {
|
|
|
195
195
|
onChange={setMin}
|
|
196
196
|
min={price().min}
|
|
197
197
|
max={price().value[1]}
|
|
198
|
+
aria-label="Minimum price"
|
|
198
199
|
/>
|
|
199
200
|
<span class="text-sm text-muted-foreground">–</span>
|
|
200
201
|
<NumberInput
|
|
@@ -202,6 +203,7 @@ export function FacetSidebar(props: FacetSidebarProps): JSX.Element {
|
|
|
202
203
|
onChange={setMax}
|
|
203
204
|
min={price().value[0]}
|
|
204
205
|
max={price().max}
|
|
206
|
+
aria-label="Maximum price"
|
|
205
207
|
/>
|
|
206
208
|
</div>
|
|
207
209
|
</div>
|
package/src/index.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// import '@a4ui/core/styles.css'
|
|
9
9
|
// import { Button, Card, Modal } from '@a4ui/core'
|
|
10
10
|
|
|
11
|
-
export const A4UI_VERSION = '0.
|
|
11
|
+
export const A4UI_VERSION = '0.24.1'
|
|
12
12
|
|
|
13
13
|
// Helpers (src/lib) — generic, framework-level utilities.
|
|
14
14
|
export { cn } from './lib/cn'
|
package/src/ui/NumberInput.tsx
CHANGED
|
@@ -11,6 +11,8 @@ interface NumberInputProps {
|
|
|
11
11
|
min?: number
|
|
12
12
|
/** Upper bound; the increment trigger disables itself at this value. */
|
|
13
13
|
max?: number
|
|
14
|
+
/** Accessible name applied to the input as its `aria-label` (no visible label is rendered). */
|
|
15
|
+
'aria-label'?: string
|
|
14
16
|
class?: string
|
|
15
17
|
}
|
|
16
18
|
|
|
@@ -39,7 +41,10 @@ export function NumberInput(props: NumberInputProps): JSX.Element {
|
|
|
39
41
|
<KNumberField.DecrementTrigger class={cn(TRIGGER_CLASS, 'rounded-l-md')} aria-label="Decrement">
|
|
40
42
|
−
|
|
41
43
|
</KNumberField.DecrementTrigger>
|
|
42
|
-
<KNumberField.Input
|
|
44
|
+
<KNumberField.Input
|
|
45
|
+
aria-label={props['aria-label']}
|
|
46
|
+
class="w-16 border-y border-input bg-background px-3 py-2 text-center text-sm text-foreground outline-none transition-colors a4-field"
|
|
47
|
+
/>
|
|
43
48
|
<KNumberField.IncrementTrigger class={cn(TRIGGER_CLASS, 'rounded-r-md')} aria-label="Increment">
|
|
44
49
|
+
|
|
45
50
|
</KNumberField.IncrementTrigger>
|