@glasshome/ui 1.3.0 → 1.5.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.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as e, A as t, B as n, C as r, D as i, E as a, G as o, K as s, M as c, O as l, Q as u, S as d, T as f, U as p, V as m, W as h, X as g, Y as _, Z as v, _ as y, a as b, at as x, b as S, c as C, d as w, et as T, f as E, g as D, h as O, i as ee, it as k, k as A, l as j, m as M, n as N, nt as P, o as F, ot as I, p as L, q as R, r as z, rt as B, s as V, t as H, tt as U, u as W, v as G, w as K, x as q, y as J, z as Y } from "./utils-B020EZLJ.js";
1
+ import { $ as e, A as t, B as n, C as r, D as i, E as a, G as o, K as s, M as c, O as l, Q as u, S as d, T as f, U as p, V as m, W as h, X as g, Y as _, Z as v, _ as y, a as b, at as x, b as S, c as C, d as w, et as T, f as E, g as D, h as O, i as ee, it as k, k as A, l as j, m as M, n as N, nt as P, o as F, ot as I, p as L, q as R, r as z, rt as B, s as V, t as H, tt as U, u as W, v as G, w as K, x as q, y as J, z as Y } from "./utils-8e8QCynI.js";
2
2
  import { createSignal as X, onCleanup as Z, onMount as Q } from "solid-js";
3
3
  //#region src/lib/use-is-mobile.ts
4
4
  var $ = 768;
@@ -39,7 +39,7 @@ export declare const buttonVariants: import("cva").CVAComponent<Omit<{
39
39
  none: string;
40
40
  };
41
41
  };
42
- defaultVariants: Omit<{}, "variant" | "size"> & {
42
+ defaultVariants: Omit<{}, "size" | "variant"> & {
43
43
  variant: "default";
44
44
  size: "default";
45
45
  };
@@ -1,6 +1,15 @@
1
1
  export type CarouselTransition = "slide" | "fade" | "wipe";
2
2
  export declare const CAROUSEL_VIEWPORT = "h-full overflow-hidden";
3
- /** Stacked modes put every slide in one grid cell; slide lays out a flex track. */
3
+ /**
4
+ * Only wipe stacks in CSS. Fade keeps embla's standard flex track, which is the
5
+ * structure its plugin is built for: embla reads each snap from the slide's
6
+ * offset along the axis, and the plugin then translates every slide back onto
7
+ * the viewport to cross-fade them. Slides sharing one grid cell share offset 0,
8
+ * so every snap collapses onto the same point and a pointer drag has no
9
+ * distance to resolve: it never changes slide. Index-driven navigation
10
+ * (autoplay, arrows, dots) survives the collapse, which is why wipe still
11
+ * advances.
12
+ */
4
13
  export declare function carouselTrack(transition: CarouselTransition, orientation?: "horizontal" | "vertical"): string;
5
14
  export declare function carouselItem(transition: CarouselTransition, orientation?: "horizontal" | "vertical"): string;
6
15
  export declare const CAROUSEL_DOTS = "flex items-center justify-center gap-2";
@@ -1,4 +1,4 @@
1
- export declare const TIER_BADGE_CLASS = "inline-flex cursor-default select-none items-center rounded-full px-2 py-0.5 font-black text-[10px] uppercase tracking-wider";
1
+ export declare const TIER_BADGE_CLASS = "inline-flex cursor-default select-none items-center rounded-full px-2 py-0.5 font-black text-[10px] tracking-wide";
2
2
  /** Optional sweep shaping. Default is the symmetric brushed look (both ends
3
3
  * `hi`, dipping to `lo` at the midpoint). The collectible/license golds are a
4
4
  * lit bevel instead: they dip early and land on a darker `end`. */
@@ -0,0 +1,8 @@
1
+ export interface ImagePickerProps {
2
+ /** Sits on the trigger so a LabeledField's <Label for> points at a real control. */
3
+ id?: string;
4
+ value: string;
5
+ onChange: (id: string) => void;
6
+ class?: string;
7
+ }
8
+ export declare function ImagePicker(props: ImagePickerProps): import("solid-js").JSX.Element;
@@ -35,6 +35,7 @@ export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLab
35
35
  export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField, } from "./form.js";
36
36
  export { HoverCard, HoverCardContent, HoverCardTrigger, } from "./hover-card.js";
37
37
  export { IconPicker, type IconPickerProps } from "./icon-picker.js";
38
+ export { ImagePicker, type ImagePickerProps } from "./image-picker.js";
38
39
  export { Input } from "./input.js";
39
40
  export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, } from "./input-group.js";
40
41
  export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, } from "./input-otp.js";
@@ -43,6 +44,9 @@ export { Kbd, KbdGroup } from "./kbd.js";
43
44
  export { Label } from "./label.js";
44
45
  export { createListReorder, dragTargetIndex, type ListReorder, type ListReorderOptions, } from "./list-reorder.js";
45
46
  export { Logo } from "./logo.js";
47
+ export { mediaIndexErrorCopy, mediaStoreErrorCopy, toMediaStoreError, } from "./media-copy.js";
48
+ export { type BrokenMedia, createBrokenMedia, imageUrl, isMediaImage, MEDIA_PAGE_SIZE, type MediaIndex, type MediaQuotaUsage, type MediaStore, MediaStoreContext, MediaStoreError, type MediaStoreErrorKind, type MediaVariant, mediaUrl, provideMediaStore, type StoredMedia, sortMediaForClearing, useMediaStore, } from "./media-store.js";
49
+ export { MediaTile, type MediaTileProps } from "./media-tile.js";
46
50
  export { NumberField } from "./number-field.js";
47
51
  export { Overlay } from "./overlay.js";
48
52
  export { PageHeader } from "./page-header.js";