@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 +1 -1
- package/dist/lib/button-variants.d.ts +1 -1
- package/dist/lib/carousel-classes.d.ts +10 -1
- package/dist/lib/tier-badge.d.ts +1 -1
- package/dist/solid/image-picker.d.ts +8 -0
- package/dist/solid/index.d.ts +4 -0
- package/dist/solid/index.js +4205 -3608
- package/dist/solid/item.d.ts +1 -1
- package/dist/solid/media-copy.d.ts +4 -0
- package/dist/solid/media-store.d.ts +55 -0
- package/dist/solid/media-tile.d.ts +15 -0
- package/dist/solid/popover.d.ts +5 -1
- package/dist/solid/responsive-dialog.d.ts +5 -1
- package/dist/solid/schema-form.d.ts +1 -1
- package/dist/solid/toggle.d.ts +1 -1
- package/dist/solid/widget-identity.d.ts +5 -0
- package/dist/{utils-B020EZLJ.js → utils-8e8QCynI.js} +6 -2
- package/package.json +5 -2
- package/src/lib/carousel-classes.ts +18 -7
- package/src/lib/tier-badge.ts +1 -1
- package/src/styles/globals.css +1 -1
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-
|
|
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;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
export type CarouselTransition = "slide" | "fade" | "wipe";
|
|
2
2
|
export declare const CAROUSEL_VIEWPORT = "h-full overflow-hidden";
|
|
3
|
-
/**
|
|
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";
|
package/dist/lib/tier-badge.d.ts
CHANGED
|
@@ -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]
|
|
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;
|
package/dist/solid/index.d.ts
CHANGED
|
@@ -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";
|