@glasshome/ui 1.21.1 → 1.21.2
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.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/use-is-mobile.d.ts +3 -1
- package/dist/solid/index.d.ts +9 -9
- package/dist/solid/index.js +5431 -5424
- package/dist/{utils-CMk7R3zM.js → utils-D5blHO4O.js} +624 -622
- package/package.json +128 -126
- package/scripts/check-gallery.ts +142 -142
- package/scripts/check-pack.ts +13 -13
- package/scripts/check-structural-classes.ts +20 -20
- package/scripts/check-tokens.ts +27 -27
- package/scripts/check-ui-drift.mjs +103 -103
- package/src/index.ts +75 -80
- package/src/lib/alert-tones.ts +41 -41
- package/src/lib/anchor-placement.ts +21 -21
- package/src/lib/button-variants.ts +28 -28
- package/src/lib/card-classes.ts +9 -9
- package/src/lib/carousel-classes.ts +14 -14
- package/src/lib/glass-tone.ts +11 -11
- package/src/lib/input-classes.ts +6 -6
- package/src/lib/layers.ts +4 -4
- package/src/lib/logo-lockup.ts +8 -8
- package/src/lib/menu-classes.ts +2 -2
- package/src/lib/motion-classes.ts +8 -8
- package/src/lib/motion-window.ts +24 -24
- package/src/lib/overlay-classes.ts +6 -6
- package/src/lib/pill-classes.ts +3 -3
- package/src/lib/position-bar-classes.ts +1 -1
- package/src/lib/spotlight-geometry.ts +67 -67
- package/src/lib/thumb-classes.ts +2 -2
- package/src/lib/tier-badge.ts +16 -16
- package/src/lib/use-is-mobile.ts +17 -14
- package/src/lib/utils.ts +1 -1
- package/src/solid/accordion.tsx +41 -41
- package/src/solid/alert-dialog.tsx +95 -95
- package/src/solid/alert.tsx +88 -88
- package/src/solid/area-picker.tsx +204 -204
- package/src/solid/aspect-ratio.tsx +13 -13
- package/src/solid/avatar.tsx +27 -27
- package/src/solid/badge.tsx +49 -49
- package/src/solid/bottom-sheet/arbitration.ts +22 -22
- package/src/solid/bottom-sheet/bottom-sheet.tsx +394 -394
- package/src/solid/bottom-sheet/drag-controller.ts +201 -201
- package/src/solid/bottom-sheet/focus-trap.ts +51 -47
- package/src/solid/bottom-sheet/index.ts +12 -12
- package/src/solid/bottom-sheet/keyboard.ts +25 -25
- package/src/solid/bottom-sheet/scroll-lock.ts +46 -46
- package/src/solid/bottom-sheet/state-machine.ts +28 -28
- package/src/solid/bottom-sheet/velocity.ts +29 -29
- package/src/solid/breadcrumb.tsx +76 -76
- package/src/solid/button-group.tsx +46 -46
- package/src/solid/button.tsx +19 -19
- package/src/solid/card.tsx +67 -67
- package/src/solid/carousel.tsx +246 -246
- package/src/solid/charts.tsx +253 -253
- package/src/solid/checkbox.tsx +51 -51
- package/src/solid/collapsible.tsx +22 -22
- package/src/solid/color-disc.tsx +213 -213
- package/src/solid/color-slider.tsx +81 -81
- package/src/solid/color-wheel.tsx +61 -61
- package/src/solid/context-menu.tsx +63 -63
- package/src/solid/copy-button.tsx +31 -31
- package/src/solid/count-pill.tsx +11 -11
- package/src/solid/dashboard-preview.tsx +104 -104
- package/src/solid/data-table.tsx +228 -228
- package/src/solid/dialog-parts.tsx +127 -127
- package/src/solid/dialog.tsx +113 -113
- package/src/solid/dock-paging.ts +9 -9
- package/src/solid/dock.tsx +339 -339
- package/src/solid/docked-panel.tsx +35 -35
- package/src/solid/dropdown-menu.tsx +77 -77
- package/src/solid/empty.tsx +70 -70
- package/src/solid/entity-data.ts +38 -38
- package/src/solid/entity-selector.tsx +634 -634
- package/src/solid/field.tsx +205 -205
- package/src/solid/form.tsx +159 -159
- package/src/solid/hero-action.tsx +85 -85
- package/src/solid/hover-card.tsx +11 -11
- package/src/solid/icon-picker.tsx +401 -401
- package/src/solid/icon.tsx +101 -78
- package/src/solid/image-picker.tsx +416 -414
- package/src/solid/index.ts +265 -304
- package/src/solid/input-group.tsx +123 -123
- package/src/solid/input-otp.tsx +143 -143
- package/src/solid/input.tsx +4 -4
- package/src/solid/item.tsx +130 -130
- package/src/solid/kbd.tsx +20 -20
- package/src/solid/label.tsx +12 -12
- package/src/solid/list-reorder.ts +122 -122
- package/src/solid/logo.tsx +60 -60
- package/src/solid/media-copy.ts +21 -21
- package/src/solid/media-store.ts +56 -56
- package/src/solid/media-tile.tsx +85 -85
- package/src/solid/menu-parts.tsx +164 -164
- package/src/solid/number-field.tsx +56 -56
- package/src/solid/option-card.tsx +164 -164
- package/src/solid/ornament.tsx +43 -43
- package/src/solid/overlay.tsx +4 -4
- package/src/solid/page-header.tsx +75 -75
- package/src/solid/pagination.tsx +80 -80
- package/src/solid/password-input.tsx +51 -51
- package/src/solid/picker-row.tsx +83 -83
- package/src/solid/picker-search.tsx +65 -63
- package/src/solid/picker-trigger.tsx +59 -57
- package/src/solid/popover.tsx +54 -54
- package/src/solid/preview-tile.tsx +67 -67
- package/src/solid/progress.tsx +21 -21
- package/src/solid/radio-group.tsx +51 -51
- package/src/solid/resizable.tsx +128 -128
- package/src/solid/responsive-dialog.tsx +134 -134
- package/src/solid/schema-form.tsx +743 -743
- package/src/solid/scope-indicator.tsx +5 -5
- package/src/solid/scroll-area.tsx +16 -16
- package/src/solid/section-card.tsx +281 -281
- package/src/solid/select.tsx +101 -101
- package/src/solid/separator.tsx +25 -25
- package/src/solid/settings-row.tsx +122 -122
- package/src/solid/sheet.tsx +96 -96
- package/src/solid/skeleton.tsx +8 -8
- package/src/solid/slider.tsx +132 -132
- package/src/solid/sliding-indicator.tsx +280 -265
- package/src/solid/sonner.tsx +164 -164
- package/src/solid/spinner.tsx +12 -12
- package/src/solid/spotlight.tsx +140 -140
- package/src/solid/step-indicator.tsx +18 -18
- package/src/solid/swatch-picker.tsx +38 -38
- package/src/solid/switch.tsx +52 -52
- package/src/solid/table.tsx +63 -63
- package/src/solid/tabs.tsx +93 -93
- package/src/solid/textarea.tsx +8 -8
- package/src/solid/toggle-group.tsx +83 -83
- package/src/solid/toggle.tsx +33 -33
- package/src/solid/tooltip.tsx +16 -16
- package/src/solid/widget-card.tsx +90 -90
- package/src/solid/widget-identity.tsx +99 -99
- package/src/solid/widget-trust-badge.tsx +20 -20
- package/src/styles/globals.css +316 -319
- package/src/styles/theme.css +448 -448
- package/src/tokens/hex.ts +29 -29
- package/src/tokens/material.ts +75 -75
- package/src/tokens/presets.ts +303 -303
- package/src/tokens/readability.ts +32 -32
- package/src/tokens/theme-colors.ts +95 -95
- package/src/tokens/theme-css.ts +22 -22
- package/src/tokens/theme-recipe.ts +106 -106
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,6 @@ export { CHIP, ICON_PILL, ICON_PILL_TINT } from "./lib/pill-classes.js";
|
|
|
15
15
|
export { POSITION_BAR, POSITION_BAR_LIT } from "./lib/position-bar-classes.js";
|
|
16
16
|
export { SECTION_INNER_RADIUS, SECTION_OUTER_RADIUS, SECTION_PADDING, SECTION_ROW_CLASS, } from "./lib/section-tokens.js";
|
|
17
17
|
export { SEGMENT_ITEM } from "./lib/segment-classes.js";
|
|
18
|
-
export { THUMB_CLASS, THUMB_RAIL_BLEED, THUMB_RAIL_PAD, THUMB_SIZE
|
|
18
|
+
export { THUMB_CLASS, THUMB_RAIL_BLEED, THUMB_RAIL_PAD, THUMB_SIZE } from "./lib/thumb-classes.js";
|
|
19
19
|
export { createIsMobile, MOBILE_BREAKPOINT } from "./lib/use-is-mobile.js";
|
|
20
20
|
export { cn } from "./lib/utils.js";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, $t as t, A as n, At as r, B as i, Bt as a, C as ee, D as te, Dt as o, F as s, Ft as c, G as l, Gt as u, H as d, Ht as f, I as p, It as m, Jt as h, Kt as g, L as _, M as v, Mt as y, N as b, O as x, P as S, Pt as C, Q as w, Qt as T, R as E, Rt as D, S as O, T as k, Tt as A, U as j, V as M, Vt as N, W as P, Wt as F, X as I, Xt as L, Y as R, Yt as z, Z as B, Zt as V, _ as H, at as U, b as W, bt as G, c as K, ct as q, d as J, en as Y, et as ne, f as X, ft as Z, g as re, h as ie, i as ae, it as oe, j as se, jt as ce, k as le, kt as ue, l as de, lt as fe, m as pe, n as me, nt as he, ot as ge, p as _e, q as ve, qt as ye, r as be, rt as xe, s as Se, st as Ce, t as we, tn as Te, tt as Ee, u as De, ut as Oe, v as Q, w as ke, wt as Ae, x as je, xt as Me, y as Ne, yt as Pe, z as Fe, zt as Ie } from "./utils-
|
|
1
|
+
import { $ as e, $t as t, A as n, At as r, B as i, Bt as a, C as ee, D as te, Dt as o, F as s, Ft as c, G as l, Gt as u, H as d, Ht as f, I as p, It as m, Jt as h, Kt as g, L as _, M as v, Mt as y, N as b, O as x, P as S, Pt as C, Q as w, Qt as T, R as E, Rt as D, S as O, T as k, Tt as A, U as j, V as M, Vt as N, W as P, Wt as F, X as I, Xt as L, Y as R, Yt as z, Z as B, Zt as V, _ as H, at as U, b as W, bt as G, c as K, ct as q, d as J, en as Y, et as ne, f as X, ft as Z, g as re, h as ie, i as ae, it as oe, j as se, jt as ce, k as le, kt as ue, l as de, lt as fe, m as pe, n as me, nt as he, ot as ge, p as _e, q as ve, qt as ye, r as be, rt as xe, s as Se, st as Ce, t as we, tn as Te, tt as Ee, u as De, ut as Oe, v as Q, w as ke, wt as Ae, x as je, xt as Me, y as Ne, yt as Pe, z as Fe, zt as Ie } from "./utils-D5blHO4O.js";
|
|
2
2
|
//#region src/lib/motion-window.ts
|
|
3
3
|
var $ = 3e4;
|
|
4
4
|
function Le(e = $) {
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
import { type Accessor } from "solid-js";
|
|
1
2
|
export declare const MOBILE_BREAKPOINT = 640;
|
|
2
|
-
|
|
3
|
+
/** One reading and one listener per breakpoint for the page: a width read can force layout, so thirty dialogs mounting read it once. */
|
|
4
|
+
export declare function createIsMobile(breakpoint?: number): Accessor<boolean | undefined>;
|
package/dist/solid/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { SECTION_ROW_SURFACE } from "../lib/card-classes.js";
|
|
|
3
3
|
export { RISE_MOTION, SETTLE_MOTION, TRAVEL_MOTION } from "../lib/motion-classes.js";
|
|
4
4
|
export { OVERLAY_SURFACE } from "../lib/overlay-classes.js";
|
|
5
5
|
export { SECTION_INNER_RADIUS, SECTION_OUTER_RADIUS, SECTION_PADDING, SECTION_ROW_CLASS, } from "../lib/section-tokens.js";
|
|
6
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger
|
|
6
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./accordion.js";
|
|
7
7
|
export { Alert, AlertDescription, AlertTitle, type AlertTone } from "./alert.js";
|
|
8
8
|
export { AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "./alert-dialog.js";
|
|
9
9
|
export { AreaPicker } from "./area-picker.js";
|
|
@@ -19,8 +19,8 @@ export type { CarouselApi, CarouselTransition } from "./carousel.js";
|
|
|
19
19
|
export { Carousel, CarouselContent, CarouselDots, CarouselItem, CarouselNext, CarouselPrevious, } from "./carousel.js";
|
|
20
20
|
export { AreaChart, BarList, formatBytes, formatCompact, RangeToggle, StackedBar, } from "./charts.js";
|
|
21
21
|
export { Checkbox } from "./checkbox.js";
|
|
22
|
-
export { Collapsible, CollapsibleContent, CollapsibleTrigger
|
|
23
|
-
export { ColorDisc, kelvinToCss, TemperatureBar
|
|
22
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./collapsible.js";
|
|
23
|
+
export { ColorDisc, kelvinToCss, TemperatureBar } from "./color-disc.js";
|
|
24
24
|
export { ColorSlider } from "./color-slider.js";
|
|
25
25
|
export { ColorWheel } from "./color-wheel.js";
|
|
26
26
|
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, } from "./context-menu.js";
|
|
@@ -40,19 +40,19 @@ export { EntitySelector } from "./entity-selector.js";
|
|
|
40
40
|
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldSubGroup, FieldTitle, } from "./field.js";
|
|
41
41
|
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField, } from "./form.js";
|
|
42
42
|
export { HeroAction } from "./hero-action.js";
|
|
43
|
-
export { HoverCard, HoverCardContent, HoverCardTrigger
|
|
43
|
+
export { HoverCard, HoverCardContent, HoverCardTrigger } from "./hover-card.js";
|
|
44
44
|
export { Icon, type IconData, type IconProps, type IconSource, provideIcons } from "./icon.js";
|
|
45
45
|
export { IconPicker, type IconPickerProps } from "./icon-picker.js";
|
|
46
46
|
export { ImagePicker, type ImagePickerProps } from "./image-picker.js";
|
|
47
47
|
export { Input } from "./input.js";
|
|
48
48
|
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, } from "./input-group.js";
|
|
49
|
-
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot
|
|
49
|
+
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from "./input-otp.js";
|
|
50
50
|
export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, } from "./item.js";
|
|
51
51
|
export { Kbd, KbdGroup } from "./kbd.js";
|
|
52
52
|
export { Label } from "./label.js";
|
|
53
53
|
export { createListReorder, dragTargetIndex, type ListReorder, type ListReorderOptions, } from "./list-reorder.js";
|
|
54
54
|
export { Logo } from "./logo.js";
|
|
55
|
-
export { mediaIndexErrorCopy, mediaStoreErrorCopy, toMediaStoreError
|
|
55
|
+
export { mediaIndexErrorCopy, mediaStoreErrorCopy, toMediaStoreError } from "./media-copy.js";
|
|
56
56
|
export { type BrokenMedia, createBrokenMedia, type ImagePreset, imagePreset, imageUrl, isMediaImage, MEDIA_PAGE_SIZE, type MediaIndex, type MediaQuotaUsage, type MediaStore, MediaStoreContext, MediaStoreError, type MediaStoreErrorKind, type MediaVariant, mediaUrl, presetValue, provideMediaStore, type StoredMedia, sortMediaForClearing, useMediaStore, } from "./media-store.js";
|
|
57
57
|
export { MediaTile, type MediaTileProps } from "./media-tile.js";
|
|
58
58
|
export { NumberField } from "./number-field.js";
|
|
@@ -64,13 +64,13 @@ export { PasswordInput } from "./password-input.js";
|
|
|
64
64
|
export { PICKER_ROW_HEIGHT, PickerRow } from "./picker-row.js";
|
|
65
65
|
export { PickerSearch, type PickerSearchProps } from "./picker-search.js";
|
|
66
66
|
export { PickerTrigger, type PickerTriggerProps } from "./picker-trigger.js";
|
|
67
|
-
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger
|
|
67
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "./popover.js";
|
|
68
68
|
export { PreviewTile, PreviewTileGroup } from "./preview-tile.js";
|
|
69
69
|
export { Progress } from "./progress.js";
|
|
70
70
|
export { RadioGroup, RadioGroupItem } from "./radio-group.js";
|
|
71
|
-
export { ResizableHandle, ResizablePanel, ResizablePanelGroup
|
|
71
|
+
export { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "./resizable.js";
|
|
72
72
|
export { ResponsiveDialog, ResponsiveDialogBody, ResponsiveDialogClose, ResponsiveDialogContent, ResponsiveDialogDescription, ResponsiveDialogFooter, ResponsiveDialogHeader, ResponsiveDialogTitle, ResponsiveDialogTrigger, } from "./responsive-dialog.js";
|
|
73
|
-
export { type ExtendedJSONSchema, SCHEMA_FORM_FORM_TYPES, SchemaForm
|
|
73
|
+
export { type ExtendedJSONSchema, SCHEMA_FORM_FORM_TYPES, SchemaForm } from "./schema-form.js";
|
|
74
74
|
export { ScopeIndicator } from "./scope-indicator.js";
|
|
75
75
|
export { ScrollArea, ScrollBar } from "./scroll-area.js";
|
|
76
76
|
export { FactRow, type GlassSurface, ListRow, NOOP_GLASS, SectionCard, SectionGroup, SectionIcon, SectionLabel, SectionMeta, SectionRow, SectionRowSkeleton, SectionRowSkeletons, SectionSubtitle, SectionTitle, } from "./section-card.js";
|