@glasshome/ui 1.31.0 → 1.32.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/README.md +1 -1
- package/SPEC.md +1 -1
- package/dist/lib/opening-release.d.ts +6 -0
- package/dist/solid/dock.d.ts +1 -1
- package/dist/solid/index.d.ts +1 -0
- package/dist/solid/index.js +2964 -2785
- package/dist/solid/menu-parts.d.ts +2 -5
- package/dist/solid/selection.d.ts +21 -0
- package/dist/solid/sliding-indicator.d.ts +1 -0
- package/package.json +1 -1
- package/src/lib/menu-classes.ts +1 -1
- package/src/lib/opening-release.ts +25 -0
- package/src/solid/area-picker.tsx +5 -9
- package/src/solid/dock.tsx +7 -6
- package/src/solid/entity-selector.tsx +4 -6
- package/src/solid/index.ts +1 -0
- package/src/solid/menu-parts.tsx +21 -58
- package/src/solid/picker-row.tsx +2 -0
- package/src/solid/select.tsx +7 -6
- package/src/solid/selection.tsx +259 -0
- package/src/solid/sliding-indicator.tsx +15 -1
- package/src/solid/tabs.tsx +5 -8
- package/src/solid/toggle-group.tsx +21 -19
- package/src/solid/toggle.tsx +1 -1
- package/src/styles/globals.css +48 -1
- package/src/styles/theme.css +11 -14
package/README.md
CHANGED
|
@@ -58,7 +58,7 @@ function DeviceCard() {
|
|
|
58
58
|
}
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
-
Component families: `Accordion` · `Alert` · `AlertDialog` · `AreaPicker` · `AspectRatio` · `Avatar` · `Badge` · `BottomSheet` · `Breadcrumb` · `Button` · `ButtonGroup` · `Card` · `Carousel` · `Charts (AreaChart, BarList, StackedBar, RangeToggle)` · `Checkbox` · `Collapsible` · `ColorSlider` · `ColorWheel` · `ContextMenu` · `CopyButton` · `CountPill` · `DataTable (TableSearchInput, TableFilterSelect, TableSortHeader, TableSkeleton, TableEmpty, TableError, TableBulkBar)` · `Dialog` · `Dock` · `DropdownMenu` · `Empty` · `EntitySelector` · `Field` · `Form` · `HeroAction` · `HoverCard` · `IconPicker` · `ImagePicker` · `Input` · `InputGroup` · `InputOTP` · `Item` · `Kbd` · `Label` · `Logo` · `MediaTile` · `NumberField` · `OptionCard` · `Overlay` · `PageHeader` · `Pagination` · `PasswordInput` · `PickerSearch` · `Popover` · `Progress` · `RadioGroup` · `Resizable` · `ResponsiveDialog` · `SchemaForm` · `ScopeIndicator` · `ScrollArea` · `SectionCard` · `Select` · `Separator` · `SettingsRow (SwitchRow, LabeledField, LabeledInput, LabeledIconPicker, RowActions, SectionAddButton, SectionEmpty)` · `Sheet` · `Skeleton` · `Slider` · `SlidingIndicator` · `Sonner (toast)` · `Spinner` · `StepIndicator` · `Switch` · `Table` · `Tabs` · `Textarea` · `TierBadge` · `Toggle` · `ToggleGroup` · `Tooltip` · `WidgetCard` · `WidgetIdentity` · `WidgetTrustBadge`
|
|
61
|
+
Component families: `Accordion` · `Alert` · `AlertDialog` · `AreaPicker` · `AspectRatio` · `Avatar` · `Badge` · `BottomSheet` · `Breadcrumb` · `Button` · `ButtonGroup` · `Card` · `Carousel` · `Charts (AreaChart, BarList, StackedBar, RangeToggle)` · `Checkbox` · `Collapsible` · `ColorSlider` · `ColorWheel` · `ContextMenu` · `CopyButton` · `CountPill` · `DataTable (TableSearchInput, TableFilterSelect, TableSortHeader, TableSkeleton, TableEmpty, TableError, TableBulkBar)` · `Dialog` · `Dock` · `DropdownMenu` · `Empty` · `EntitySelector` · `Field` · `Form` · `HeroAction` · `HoverCard` · `IconPicker` · `ImagePicker` · `Input` · `InputGroup` · `InputOTP` · `Item` · `Kbd` · `Label` · `Logo` · `MediaTile` · `NumberField` · `OptionCard` · `Overlay` · `PageHeader` · `Pagination` · `PasswordInput` · `PickerSearch` · `Popover` · `Progress` · `RadioGroup` · `Resizable` · `ResponsiveDialog` · `SchemaForm` · `ScopeIndicator` · `ScrollArea` · `SectionCard` · `Select` · `SelectionScope (SelectionHighlight)` · `Separator` · `SettingsRow (SwitchRow, LabeledField, LabeledInput, LabeledIconPicker, RowActions, SectionAddButton, SectionEmpty)` · `Sheet` · `Skeleton` · `Slider` · `SlidingIndicator (deprecated)` · `Sonner (toast)` · `Spinner` · `StepIndicator` · `Switch` · `Table` · `Tabs` · `Textarea` · `TierBadge` · `Toggle` · `ToggleGroup` · `Tooltip` · `WidgetCard` · `WidgetIdentity` · `WidgetTrustBadge`
|
|
62
62
|
|
|
63
63
|
`Badge` is glass-only: `tone` takes any CSS color (`<Badge tone="var(--success)">`); there are no solid variant badges.
|
|
64
64
|
|
package/SPEC.md
CHANGED
|
@@ -254,7 +254,7 @@ Motion is one system, not per-component flair. Four rules, all held by
|
|
|
254
254
|
opened it: a picker or menu panel unrolls out of its trigger's box
|
|
255
255
|
(`MORPH_MOTION`, `FIELD_MOTION`), a dialog rises into place (`MODAL_MOTION`),
|
|
256
256
|
a card with sub-options grows to reveal them (OptionCard's drawer), an
|
|
257
|
-
indicator slides and stretches (
|
|
257
|
+
indicator slides and stretches (SelectionScope, position bars). Nothing is
|
|
258
258
|
swapped in below or beside its origin.
|
|
259
259
|
3. **Children arrive one after another.** The rows behind a growing edge stagger
|
|
260
260
|
in (`STAGGER` = `.gh-stagger`, base 80ms, 60ms per row, capped), so a panel is
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A panel that opens on pointerdown under the pointer (an overlaid Select, a menu anchored on
|
|
3
|
+
* its trigger) would receive that press's release, and Kobalte acts on release. Only a press
|
|
4
|
+
* that starts inside the panel may act; with or without an opening animation.
|
|
5
|
+
*/
|
|
6
|
+
export declare function ignoreOpeningRelease(panel: HTMLElement): () => void;
|
package/dist/solid/dock.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ interface DockIconButtonProps extends ComponentProps<"button"> {
|
|
|
35
35
|
}> | JSX.Element;
|
|
36
36
|
label: string;
|
|
37
37
|
isActive?: boolean;
|
|
38
|
-
/**
|
|
38
|
+
/** Wears the selection highlight: the active item, or the one a drag would land on. */
|
|
39
39
|
lit?: boolean;
|
|
40
40
|
badge?: number;
|
|
41
41
|
}
|
package/dist/solid/index.d.ts
CHANGED
|
@@ -83,6 +83,7 @@ export { LabeledField, LabeledIconPicker, LabeledInput, RowActions, SectionAddBu
|
|
|
83
83
|
export { Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, } from "./sheet.js";
|
|
84
84
|
export { Skeleton } from "./skeleton.js";
|
|
85
85
|
export { Slider } from "./slider.js";
|
|
86
|
+
export { SelectionHighlight, type SelectionMarker, SelectionScope } from "./selection.js";
|
|
86
87
|
export { SlidingIndicator } from "./sliding-indicator.js";
|
|
87
88
|
export { GlassToast, Toaster, toast } from "./sonner.js";
|
|
88
89
|
export { Spinner } from "./spinner.js";
|