@glasshome/ui 1.42.0 → 1.44.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/SPEC.md +8 -5
- package/dist/index.js +2 -2
- package/dist/lib/anchor-placement.d.ts +4 -0
- package/dist/lib/balance-rows.d.ts +10 -4
- package/dist/lib/behavior/anchored.d.ts +16 -3
- package/dist/lib/behavior/button-root.d.ts +7 -0
- package/dist/lib/behavior/collection.d.ts +8 -0
- package/dist/lib/behavior/dismiss.d.ts +6 -4
- package/dist/lib/behavior/focus-scope.d.ts +9 -1
- package/dist/lib/behavior/hide-outside.d.ts +1 -1
- package/dist/lib/behavior/layer-stack.d.ts +3 -2
- package/dist/lib/behavior/menu.d.ts +62 -0
- package/dist/lib/behavior/modal-root.d.ts +2 -0
- package/dist/lib/behavior/range.d.ts +44 -0
- package/dist/lib/color/color.d.ts +41 -0
- package/dist/lib/color/index.d.ts +2 -0
- package/dist/lib/color/intl.d.ts +40 -0
- package/dist/lib/dock-slot-classes.d.ts +2 -0
- package/dist/lib/hold.d.ts +1 -1
- package/dist/lib/locale.d.ts +3 -0
- package/dist/lib/menu-classes.d.ts +2 -0
- package/dist/lib/motion-classes.d.ts +2 -1
- package/dist/lib/overlay-classes.d.ts +1 -0
- package/dist/lib/scroll-track.d.ts +3 -2
- package/dist/lib/section-tokens.d.ts +1 -1
- package/dist/lib/segment-classes.d.ts +2 -0
- package/dist/lib/shadow-layer.d.ts +0 -45
- package/dist/lib/toggle-set.d.ts +44 -0
- package/dist/lib/visually-hidden.d.ts +3 -0
- package/dist/solid/accordion.d.ts +35 -11
- package/dist/solid/avatar.d.ts +8 -4
- package/dist/solid/bottom-sheet/bottom-sheet.d.ts +1 -1
- package/dist/solid/button.d.ts +5 -4
- package/dist/solid/charts.d.ts +1 -1
- package/dist/solid/checkbox.d.ts +14 -4
- package/dist/solid/collapsible.d.ts +33 -5
- package/dist/solid/color-disc.d.ts +1 -1
- package/dist/solid/color-slider.d.ts +1 -1
- package/dist/solid/color-wheel.d.ts +1 -1
- package/dist/solid/context-menu.d.ts +58 -24
- package/dist/solid/data-table.d.ts +4 -2
- package/dist/solid/dialog-parts.d.ts +8 -8
- package/dist/solid/dropdown-menu.d.ts +55 -24
- package/dist/solid/empty.d.ts +1 -1
- package/dist/solid/form.d.ts +5 -6
- package/dist/solid/hover-card.d.ts +65 -9
- package/dist/solid/index.d.ts +1 -1
- package/dist/solid/index.js +7752 -13493
- package/dist/solid/input-group.d.ts +6 -6
- package/dist/solid/item.d.ts +1 -1
- package/dist/solid/menu-parts.d.ts +175 -24
- package/dist/solid/option-card.d.ts +1 -4
- package/dist/solid/picker-row.d.ts +2 -0
- package/dist/solid/popover.d.ts +77 -12
- package/dist/solid/progress.d.ts +11 -3
- package/dist/solid/radio-group.d.ts +31 -6
- package/dist/solid/responsive-dialog.d.ts +1 -1
- package/dist/solid/scroll-area.d.ts +1 -1
- package/dist/solid/section-card.d.ts +2 -3
- package/dist/solid/select.d.ts +107 -10
- package/dist/solid/selection.d.ts +10 -1
- package/dist/solid/sheet.d.ts +1 -1
- package/dist/solid/sliding-indicator.d.ts +1 -1
- package/dist/solid/sonner.d.ts +1 -1
- package/dist/solid/toggle.d.ts +11 -3
- package/dist/solid/tooltip.d.ts +22 -22
- package/dist/tokens/index.js +54 -51
- package/dist/{utils-CxAii-e9.js → utils-BbIeGt7o.js} +376 -314
- package/package.json +3 -6
- package/src/lib/anchor-placement.ts +10 -3
- package/src/lib/balance-rows.ts +115 -40
- package/src/lib/behavior/anchored.ts +41 -9
- package/src/lib/behavior/button-root.tsx +103 -0
- package/src/lib/behavior/collection.ts +56 -28
- package/src/lib/behavior/dismiss.ts +61 -21
- package/src/lib/behavior/focus-scope.ts +75 -9
- package/src/lib/behavior/hide-outside.ts +2 -2
- package/src/lib/behavior/layer-stack.ts +33 -8
- package/src/lib/behavior/menu.ts +462 -0
- package/src/lib/behavior/modal-root.tsx +24 -18
- package/src/lib/behavior/polymorphic.tsx +1 -1
- package/src/lib/behavior/presence.ts +1 -1
- package/src/lib/behavior/range.ts +212 -0
- package/src/lib/clipboard.ts +2 -3
- package/src/lib/color/color.ts +746 -0
- package/src/lib/color/index.ts +2 -0
- package/src/lib/color/intl.ts +60 -0
- package/src/lib/dock-slot-classes.ts +3 -0
- package/src/lib/hold.ts +1 -1
- package/src/lib/locale.ts +62 -0
- package/src/lib/menu-classes.ts +3 -0
- package/src/lib/motion-classes.ts +8 -9
- package/src/lib/overlay-classes.ts +1 -3
- package/src/lib/scroll-track.ts +11 -6
- package/src/lib/section-tokens.ts +1 -1
- package/src/lib/segment-classes.ts +3 -0
- package/src/lib/shadow-layer.ts +0 -118
- package/src/lib/toggle-set.ts +133 -0
- package/src/lib/visually-hidden.ts +15 -0
- package/src/solid/accordion.tsx +294 -20
- package/src/solid/area-picker.tsx +4 -4
- package/src/solid/avatar.tsx +98 -24
- package/src/solid/bottom-sheet/arbitration.ts +4 -11
- package/src/solid/bottom-sheet/bottom-sheet.tsx +4 -5
- package/src/solid/bottom-sheet/drag-controller.ts +7 -20
- package/src/solid/button.tsx +12 -6
- package/src/solid/charts.tsx +1 -1
- package/src/solid/checkbox.tsx +167 -44
- package/src/solid/collapsible.tsx +260 -12
- package/src/solid/color-disc.tsx +11 -12
- package/src/solid/color-slider.tsx +114 -47
- package/src/solid/color-wheel.tsx +137 -39
- package/src/solid/context-menu.tsx +285 -94
- package/src/solid/data-table.tsx +48 -22
- package/src/solid/dialog-parts.tsx +39 -17
- package/src/solid/dock.tsx +44 -43
- package/src/solid/dropdown-menu.tsx +252 -115
- package/src/solid/empty.tsx +1 -1
- package/src/solid/entity-selector.tsx +3 -3
- package/src/solid/face-toggle.tsx +43 -18
- package/src/solid/form.tsx +5 -6
- package/src/solid/glyph-tile.tsx +48 -21
- package/src/solid/hover-card.tsx +287 -25
- package/src/solid/icon-picker.tsx +1 -2
- package/src/solid/image-picker.tsx +2 -2
- package/src/solid/index.ts +1 -3
- package/src/solid/input-group.tsx +2 -2
- package/src/solid/item.tsx +1 -1
- package/src/solid/menu-parts.tsx +610 -155
- package/src/solid/option-card.tsx +7 -13
- package/src/solid/picker-row.tsx +5 -1
- package/src/solid/popover.tsx +423 -80
- package/src/solid/preview-tile.tsx +1 -1
- package/src/solid/progress.tsx +84 -15
- package/src/solid/radio-group.tsx +271 -34
- package/src/solid/responsive-dialog.tsx +1 -1
- package/src/solid/schema-form.tsx +1 -6
- package/src/solid/scroll-area.tsx +1 -1
- package/src/solid/section-card.tsx +3 -4
- package/src/solid/select.tsx +939 -95
- package/src/solid/selection.tsx +165 -74
- package/src/solid/sheet.tsx +1 -1
- package/src/solid/slider.tsx +115 -65
- package/src/solid/sliding-indicator.tsx +4 -16
- package/src/solid/sonner.tsx +1 -1
- package/src/solid/tabs.tsx +12 -6
- package/src/solid/term.tsx +3 -4
- package/src/solid/toggle-group.tsx +34 -101
- package/src/solid/toggle.tsx +43 -9
- package/src/solid/tooltip.tsx +24 -24
- package/src/styles/globals.css +61 -50
- package/src/styles/theme.css +12 -6
- package/src/tokens/material.ts +11 -2
|
@@ -1,12 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { type Component, type ComponentProps, type ParentComponent, type ValidComponent } from "solid-js";
|
|
2
|
+
type AccordionProps = Omit<ComponentProps<"div">, "onChange"> & {
|
|
3
|
+
as?: ValidComponent;
|
|
4
|
+
value?: string[];
|
|
5
|
+
defaultValue?: string[];
|
|
6
|
+
onChange?: (value: string[]) => void;
|
|
7
|
+
multiple?: boolean;
|
|
8
|
+
collapsible?: boolean;
|
|
9
|
+
shouldFocusWrap?: boolean;
|
|
10
|
+
};
|
|
11
|
+
type AccordionItemProps = Omit<ComponentProps<"div">, "onChange"> & {
|
|
12
|
+
as?: ValidComponent;
|
|
13
|
+
value: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
forceMount?: boolean;
|
|
16
|
+
};
|
|
17
|
+
type AccordionHeaderProps = ComponentProps<"h3"> & {
|
|
18
|
+
as?: ValidComponent;
|
|
19
|
+
};
|
|
20
|
+
type AccordionTriggerProps = ComponentProps<"button"> & {
|
|
21
|
+
as?: ValidComponent;
|
|
22
|
+
};
|
|
23
|
+
type AccordionContentProps = ComponentProps<"div"> & {
|
|
24
|
+
as?: ValidComponent;
|
|
25
|
+
};
|
|
26
|
+
declare const Accordion: Component<AccordionProps> & {
|
|
27
|
+
Root: Component<AccordionProps>;
|
|
28
|
+
Item: Component<AccordionItemProps>;
|
|
29
|
+
Header: Component<AccordionHeaderProps>;
|
|
30
|
+
Trigger: Component<AccordionTriggerProps>;
|
|
31
|
+
Content: Component<AccordionContentProps>;
|
|
32
|
+
};
|
|
33
|
+
declare const AccordionItem: Component<AccordionItemProps>;
|
|
34
|
+
declare const AccordionTrigger: ParentComponent<AccordionTriggerProps>;
|
|
35
|
+
declare const AccordionContent: ParentComponent<AccordionContentProps>;
|
|
12
36
|
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
package/dist/solid/avatar.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { Image as ImagePrimitive } from "@kobalte/core/image";
|
|
2
1
|
import { type Component, type ComponentProps } from "solid-js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
type LoadingStatus = "idle" | "loading" | "loaded" | "error";
|
|
3
|
+
type AvatarProps = ComponentProps<"span"> & {
|
|
4
|
+
fallbackDelay?: number;
|
|
5
|
+
onLoadingStatusChange?: (status: LoadingStatus) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const Avatar: Component<AvatarProps>;
|
|
8
|
+
declare const AvatarImage: Component<ComponentProps<"img">>;
|
|
9
|
+
declare const AvatarFallback: Component<ComponentProps<"span">>;
|
|
6
10
|
export { Avatar, AvatarFallback, AvatarImage };
|
|
@@ -31,5 +31,5 @@ declare const BottomSheetHeader: Component<import("../dialog-parts.js").ModalHea
|
|
|
31
31
|
declare const BottomSheetTitle: Component<ComponentProps<"h2">>;
|
|
32
32
|
declare const BottomSheetDescription: Component<ComponentProps<"p">>;
|
|
33
33
|
declare const BottomSheetClose: ParentComponent<SheetButtonProps>;
|
|
34
|
-
/** @deprecated
|
|
34
|
+
/** @deprecated The shared modal parts; removed in 2.0.0. */
|
|
35
35
|
export { BottomSheet, BottomSheetBody, BottomSheetClose, BottomSheetContent, BottomSheetDescription, BottomSheetFooter, BottomSheetHandle, BottomSheetHeader, BottomSheetOverlay, BottomSheetPortal, BottomSheetTitle, BottomSheetTrigger, };
|
package/dist/solid/button.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { Button as KobalteButton } from "@kobalte/core/button";
|
|
2
1
|
import type { VariantProps } from "cva";
|
|
3
|
-
import { type
|
|
2
|
+
import { type JSX, type ValidComponent } from "solid-js";
|
|
3
|
+
import { type ButtonRootProps } from "../lib/behavior/button-root.js";
|
|
4
4
|
import { buttonVariants } from "../lib/button-variants.js";
|
|
5
|
-
type ButtonProps =
|
|
5
|
+
type ButtonProps<T extends ValidComponent = "button"> = ButtonRootProps<T> & VariantProps<typeof buttonVariants> & {
|
|
6
6
|
/** Presses do nothing; unlike `disabled` it keeps focus, so the popover or dialog around it stays. */
|
|
7
7
|
busy?: boolean;
|
|
8
|
+
class?: string;
|
|
8
9
|
};
|
|
9
|
-
declare function Button(props: ButtonProps): JSX.Element;
|
|
10
|
+
declare function Button<T extends ValidComponent = "button">(props: ButtonProps<T>): JSX.Element;
|
|
10
11
|
declare function ButtonWell(props: {
|
|
11
12
|
icon?: string;
|
|
12
13
|
children?: JSX.Element;
|
package/dist/solid/charts.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ type StackedBarSegment = {
|
|
|
40
40
|
value: number;
|
|
41
41
|
/** CSS color driving the segment's own glass tint. */
|
|
42
42
|
tone?: string;
|
|
43
|
-
/** @deprecated
|
|
43
|
+
/** @deprecated `tone`; removed in 2.0.0. */
|
|
44
44
|
class?: string;
|
|
45
45
|
};
|
|
46
46
|
/** Segmented proportion bar (e.g. staleness fresh/aging/stale). */
|
package/dist/solid/checkbox.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type Component, type ComponentProps } from "solid-js";
|
|
1
|
+
import { type ComponentProps, type JSX } from "solid-js";
|
|
3
2
|
declare const CHECKBOX_SIZE: {
|
|
4
3
|
readonly sm: {
|
|
5
4
|
readonly box: "size-5";
|
|
@@ -13,7 +12,18 @@ declare const CHECKBOX_SIZE: {
|
|
|
13
12
|
};
|
|
14
13
|
};
|
|
15
14
|
type CheckboxSize = keyof typeof CHECKBOX_SIZE;
|
|
16
|
-
|
|
15
|
+
type CheckboxProps = Omit<ComponentProps<"div">, "onChange" | "children"> & {
|
|
16
|
+
checked?: boolean;
|
|
17
|
+
defaultChecked?: boolean;
|
|
18
|
+
onChange?: (checked: boolean) => void;
|
|
19
|
+
indeterminate?: boolean;
|
|
20
|
+
value?: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
required?: boolean;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
readOnly?: boolean;
|
|
17
25
|
size?: CheckboxSize;
|
|
18
|
-
|
|
26
|
+
children?: JSX.Element;
|
|
27
|
+
};
|
|
28
|
+
declare const Checkbox: (props: CheckboxProps) => JSX.Element;
|
|
19
29
|
export { Checkbox };
|
|
@@ -1,6 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { type Accessor, type Component, type ComponentProps, type ValidComponent } from "solid-js";
|
|
2
|
+
type CollapsibleProps = Omit<ComponentProps<"div">, "onChange"> & {
|
|
3
|
+
as?: ValidComponent;
|
|
4
|
+
open?: boolean;
|
|
5
|
+
defaultOpen?: boolean;
|
|
6
|
+
onOpenChange?: (open: boolean) => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
forceMount?: boolean;
|
|
9
|
+
};
|
|
10
|
+
type CollapsibleTriggerProps = ComponentProps<"button"> & {
|
|
11
|
+
as?: ValidComponent;
|
|
12
|
+
};
|
|
13
|
+
type CollapsibleContentProps = ComponentProps<"div"> & {
|
|
14
|
+
as?: ValidComponent;
|
|
15
|
+
};
|
|
16
|
+
type Markers = Record<"data-expanded" | "data-closed" | "data-disabled", "" | undefined>;
|
|
17
|
+
interface CollapsibleContextValue {
|
|
18
|
+
open: Accessor<boolean>;
|
|
19
|
+
disabled: Accessor<boolean>;
|
|
20
|
+
forceMount: Accessor<boolean>;
|
|
21
|
+
markers: Markers;
|
|
22
|
+
toggle: () => void;
|
|
23
|
+
defaultContentId: Accessor<string>;
|
|
24
|
+
controls: Accessor<string | undefined>;
|
|
25
|
+
registerContent: (id: string) => () => void;
|
|
26
|
+
}
|
|
27
|
+
export declare function useCollapsible(): CollapsibleContextValue;
|
|
28
|
+
export declare const CollapsibleRoot: Component<CollapsibleProps>;
|
|
29
|
+
export declare const CollapsibleTriggerRoot: Component<CollapsibleTriggerProps>;
|
|
30
|
+
export declare const CollapsibleContentRoot: Component<CollapsibleContentProps>;
|
|
31
|
+
declare const Collapsible: Component<CollapsibleProps>;
|
|
32
|
+
declare const CollapsibleTrigger: Component<CollapsibleTriggerProps>;
|
|
33
|
+
declare const CollapsibleContent: Component<CollapsibleContentProps>;
|
|
6
34
|
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Color } from "../lib/color/index.js";
|
|
2
2
|
import { type Component } from "solid-js";
|
|
3
3
|
interface ColorDiscProps {
|
|
4
4
|
/** The colour shown and moved: its hue is the direction from the centre, its saturation the distance. */
|
|
@@ -1,26 +1,60 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
declare const
|
|
1
|
+
import { type Component, type ComponentProps, type JSX, type ValidComponent } from "solid-js";
|
|
2
|
+
import { type DeprecatedMenuRootProps, type MenuCheckboxItemProps, type MenuContentProps, type MenuItemProps, type MenuLabelProps, type MenuPlacement, type MenuRadioItemProps, type MenuSubTriggerProps } from "./menu-parts.js";
|
|
3
|
+
interface ContextMenuRootProps extends DeprecatedMenuRootProps {
|
|
4
|
+
onOpenChange?: (open: boolean) => void;
|
|
5
|
+
placement?: MenuPlacement;
|
|
6
|
+
gutter?: number;
|
|
7
|
+
children?: JSX.Element;
|
|
8
|
+
}
|
|
9
|
+
type TriggerOwnProps = {
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
id?: string;
|
|
12
|
+
ref?: unknown;
|
|
13
|
+
style?: JSX.CSSProperties | string;
|
|
14
|
+
onContextMenu?: JSX.EventHandlerUnion<HTMLElement, MouseEvent>;
|
|
15
|
+
onPointerDown?: JSX.EventHandlerUnion<HTMLElement, PointerEvent>;
|
|
16
|
+
onPointerMove?: JSX.EventHandlerUnion<HTMLElement, PointerEvent>;
|
|
17
|
+
onPointerUp?: JSX.EventHandlerUnion<HTMLElement, PointerEvent>;
|
|
18
|
+
onPointerCancel?: JSX.EventHandlerUnion<HTMLElement, PointerEvent>;
|
|
19
|
+
};
|
|
20
|
+
type ContextMenuTriggerProps<T extends ValidComponent = "div"> = TriggerOwnProps & {
|
|
21
|
+
as?: T;
|
|
22
|
+
} & Omit<ComponentProps<T>, "as" | keyof TriggerOwnProps>;
|
|
23
|
+
declare function ContextMenuTrigger<T extends ValidComponent = "div">(props: ContextMenuTriggerProps<T>): JSX.Element;
|
|
24
|
+
declare const ContextMenuContent: Component<MenuContentProps>;
|
|
25
|
+
declare function ContextMenuItem<T extends ValidComponent = "div">(props: MenuItemProps<T>): JSX.Element;
|
|
26
|
+
declare function ContextMenuSubTrigger<T extends ValidComponent = "div">(props: MenuSubTriggerProps<T>): JSX.Element;
|
|
27
|
+
declare const ContextMenuSubContent: Component<MenuContentProps>;
|
|
28
|
+
declare function ContextMenuCheckboxItem<T extends ValidComponent = "div">(props: MenuCheckboxItemProps<T>): JSX.Element;
|
|
29
|
+
declare function ContextMenuRadioItem<T extends ValidComponent = "div">(props: MenuRadioItemProps<T>): JSX.Element;
|
|
30
|
+
declare const ContextMenuLabel: Component<MenuLabelProps>;
|
|
31
|
+
declare const ContextMenuSeparator: Component<ComponentProps<"hr">>;
|
|
25
32
|
declare const ContextMenuShortcut: Component<ComponentProps<"span">>;
|
|
33
|
+
declare const ContextMenuGroup: Component<import("./menu-parts.js").MenuGroupProps>;
|
|
34
|
+
declare const ContextMenuSub: Component<import("./menu-parts.js").MenuSubProps>;
|
|
35
|
+
declare const ContextMenuRadioGroup: Component<import("./menu-parts.js").MenuRadioGroupProps>;
|
|
36
|
+
declare const ContextMenu: Component<ContextMenuRootProps> & {
|
|
37
|
+
Root: Component<ContextMenuRootProps>;
|
|
38
|
+
Trigger: typeof ContextMenuTrigger;
|
|
39
|
+
Portal: Component<{
|
|
40
|
+
children?: JSX.Element;
|
|
41
|
+
mount?: Node;
|
|
42
|
+
}>;
|
|
43
|
+
Content: Component<MenuContentProps>;
|
|
44
|
+
Arrow: Component;
|
|
45
|
+
Item: typeof ContextMenuItem;
|
|
46
|
+
CheckboxItem: typeof ContextMenuCheckboxItem;
|
|
47
|
+
RadioGroup: Component<import("./menu-parts.js").MenuRadioGroupProps>;
|
|
48
|
+
RadioItem: typeof ContextMenuRadioItem;
|
|
49
|
+
Group: Component<import("./menu-parts.js").MenuGroupProps>;
|
|
50
|
+
GroupLabel: Component<MenuLabelProps>;
|
|
51
|
+
Separator: Component<JSX.HTMLAttributes<HTMLHRElement>>;
|
|
52
|
+
Sub: Component<import("./menu-parts.js").MenuSubProps>;
|
|
53
|
+
SubTrigger: typeof ContextMenuSubTrigger;
|
|
54
|
+
SubContent: Component<MenuContentProps>;
|
|
55
|
+
ItemIndicator: Component<import("./menu-parts.js").ItemIndicatorProps>;
|
|
56
|
+
Icon: Component<JSX.HTMLAttributes<HTMLSpanElement>>;
|
|
57
|
+
ItemLabel: Component<JSX.HTMLAttributes<HTMLSpanElement>>;
|
|
58
|
+
ItemDescription: Component<JSX.HTMLAttributes<HTMLSpanElement>>;
|
|
59
|
+
};
|
|
26
60
|
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, };
|
|
@@ -24,8 +24,10 @@ export declare function TableFilterSelect(props: {
|
|
|
24
24
|
options: readonly string[];
|
|
25
25
|
value: string;
|
|
26
26
|
onChange: (value: string) => void;
|
|
27
|
-
label: (value: string) =>
|
|
27
|
+
label: (value: string) => JSX.Element;
|
|
28
28
|
ariaLabel: string;
|
|
29
|
+
/** Leading icon, `prefix:name`; defaults to the filter funnel. */
|
|
30
|
+
icon?: string;
|
|
29
31
|
class?: string;
|
|
30
32
|
}): JSX.Element;
|
|
31
33
|
/** Toolbar search box: leading icon, h-9, trailing clear. Debounce in caller. */
|
|
@@ -85,7 +87,7 @@ export declare function TableError(props: {
|
|
|
85
87
|
message: JSX.Element;
|
|
86
88
|
onRetry: () => void;
|
|
87
89
|
}): JSX.Element;
|
|
88
|
-
/** The end of a long table: asks for the next page as it nears the viewport
|
|
90
|
+
/** The end of a long table: once the page scrolls, asks for the next page as it nears the viewport; or on press. */
|
|
89
91
|
export declare function TableLoadMore(props: {
|
|
90
92
|
hasMore: boolean;
|
|
91
93
|
loading?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type ButtonRootProps } from "../lib/behavior/button-root.js";
|
|
2
2
|
import { type Accessor, type Component, type ComponentProps, type JSX, type ParentComponent, type ValidComponent } from "solid-js";
|
|
3
3
|
import { type FocusOutsideEvent, type InteractOutsideEvent, type ModalPartProps, type PointerDownOutsideEvent, type ModalRole } from "../lib/behavior/modal-root.js";
|
|
4
4
|
export interface ModalRootSkinProps {
|
|
@@ -9,13 +9,13 @@ export interface ModalRootSkinProps {
|
|
|
9
9
|
modal?: boolean;
|
|
10
10
|
/** Stays mounted and dormant after it closes, so the next open shows the same nodes instead of building them. */
|
|
11
11
|
keep?: boolean;
|
|
12
|
-
/** @deprecated
|
|
12
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
13
13
|
id?: string;
|
|
14
|
-
/** @deprecated
|
|
14
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
15
15
|
forceMount?: boolean;
|
|
16
|
-
/** @deprecated
|
|
16
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
17
17
|
preventScroll?: boolean;
|
|
18
|
-
/** @deprecated
|
|
18
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
19
19
|
translations?: Record<string, string>;
|
|
20
20
|
children?: JSX.Element;
|
|
21
21
|
}
|
|
@@ -28,9 +28,9 @@ export type ModalContentProps = Omit<ComponentProps<"div">, "style" | "role"> &
|
|
|
28
28
|
onInteractOutside?: (event: InteractOutsideEvent) => void;
|
|
29
29
|
onOpenAutoFocus?: (event: Event) => void;
|
|
30
30
|
onCloseAutoFocus?: (event: Event) => void;
|
|
31
|
-
/** @deprecated
|
|
31
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
32
32
|
onFocusOutside?: (event: FocusOutsideEvent) => void;
|
|
33
|
-
/** @deprecated
|
|
33
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
34
34
|
forceMount?: boolean;
|
|
35
35
|
};
|
|
36
36
|
export interface ModalTextParts {
|
|
@@ -93,7 +93,7 @@ export type ModalHeadProps = ModalMedia & {
|
|
|
93
93
|
* hands in its own Header, Title and Description so ResponsiveDialog still
|
|
94
94
|
* switches between dialog and sheet parts at render time. */
|
|
95
95
|
export declare function createModalHead<P extends ModalHeadProps = ModalHeadProps>(Header: Component<ModalHeaderProps>, Title: Component<ComponentProps<"h2">>, Description: Component<ComponentProps<"p">>): Component<P>;
|
|
96
|
-
export type ModalDismissProps =
|
|
96
|
+
export type ModalDismissProps = ButtonRootProps<ValidComponent> & {
|
|
97
97
|
/** Presses do nothing, the dialog stays open and focus stays put; see Button. */
|
|
98
98
|
busy?: boolean;
|
|
99
99
|
};
|
|
@@ -1,26 +1,57 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
declare
|
|
21
|
-
declare const
|
|
22
|
-
declare
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import { type Component, type ComponentProps, type JSX, type ValidComponent } from "solid-js";
|
|
2
|
+
import { type ButtonRootProps } from "../lib/behavior/button-root.js";
|
|
3
|
+
import { type DeprecatedMenuRootProps, type MenuCheckboxItemProps, type MenuContentProps, type MenuItemProps, type MenuLabelProps, type MenuPlacement, type MenuRadioItemProps, type MenuSubTriggerProps } from "./menu-parts.js";
|
|
4
|
+
type AnchorRect = {
|
|
5
|
+
x?: number;
|
|
6
|
+
y?: number;
|
|
7
|
+
width?: number;
|
|
8
|
+
height?: number;
|
|
9
|
+
};
|
|
10
|
+
interface DropdownMenuRootProps extends DeprecatedMenuRootProps {
|
|
11
|
+
open?: boolean;
|
|
12
|
+
defaultOpen?: boolean;
|
|
13
|
+
onOpenChange?: (open: boolean) => void;
|
|
14
|
+
placement?: MenuPlacement;
|
|
15
|
+
gutter?: number;
|
|
16
|
+
/** The box the panel sits beside, read from the trigger; unset, the panel covers the trigger. */
|
|
17
|
+
getAnchorRect?: (anchor?: HTMLElement) => AnchorRect | undefined;
|
|
18
|
+
children?: JSX.Element;
|
|
19
|
+
}
|
|
20
|
+
declare function DropdownMenuTrigger<T extends ValidComponent = "button">(props: ButtonRootProps<T>): JSX.Element;
|
|
21
|
+
declare const DropdownMenuContent: Component<MenuContentProps>;
|
|
22
|
+
declare function DropdownMenuItem<T extends ValidComponent = "div">(props: MenuItemProps<T>): JSX.Element;
|
|
23
|
+
declare function DropdownMenuSubTrigger<T extends ValidComponent = "div">(props: MenuSubTriggerProps<T>): JSX.Element;
|
|
24
|
+
declare const DropdownMenuSubContent: Component<MenuContentProps>;
|
|
25
|
+
declare function DropdownMenuCheckboxItem<T extends ValidComponent = "div">(props: MenuCheckboxItemProps<T>): JSX.Element;
|
|
26
|
+
declare function DropdownMenuRadioItem<T extends ValidComponent = "div">(props: MenuRadioItemProps<T>): JSX.Element;
|
|
27
|
+
declare const DropdownMenuSeparator: Component<ComponentProps<"hr">>;
|
|
28
|
+
declare const DropdownMenuLabel: Component<MenuLabelProps>;
|
|
25
29
|
declare const DropdownMenuShortcut: Component<ComponentProps<"span">>;
|
|
30
|
+
declare const DropdownMenuGroup: Component<import("./menu-parts.js").MenuGroupProps>;
|
|
31
|
+
declare const DropdownMenuSub: Component<import("./menu-parts.js").MenuSubProps>;
|
|
32
|
+
declare const DropdownMenuRadioGroup: Component<import("./menu-parts.js").MenuRadioGroupProps>;
|
|
33
|
+
declare const DropdownMenu: Component<DropdownMenuRootProps> & {
|
|
34
|
+
Root: Component<DropdownMenuRootProps>;
|
|
35
|
+
Trigger: typeof DropdownMenuTrigger;
|
|
36
|
+
Portal: Component<{
|
|
37
|
+
children?: JSX.Element;
|
|
38
|
+
mount?: Node;
|
|
39
|
+
}>;
|
|
40
|
+
Content: Component<MenuContentProps>;
|
|
41
|
+
Arrow: Component;
|
|
42
|
+
Item: typeof DropdownMenuItem;
|
|
43
|
+
CheckboxItem: typeof DropdownMenuCheckboxItem;
|
|
44
|
+
RadioGroup: Component<import("./menu-parts.js").MenuRadioGroupProps>;
|
|
45
|
+
RadioItem: typeof DropdownMenuRadioItem;
|
|
46
|
+
Group: Component<import("./menu-parts.js").MenuGroupProps>;
|
|
47
|
+
GroupLabel: Component<MenuLabelProps>;
|
|
48
|
+
Separator: Component<JSX.HTMLAttributes<HTMLHRElement>>;
|
|
49
|
+
Sub: Component<import("./menu-parts.js").MenuSubProps>;
|
|
50
|
+
SubTrigger: typeof DropdownMenuSubTrigger;
|
|
51
|
+
SubContent: Component<MenuContentProps>;
|
|
52
|
+
ItemIndicator: Component<import("./menu-parts.js").ItemIndicatorProps>;
|
|
53
|
+
Icon: Component<JSX.HTMLAttributes<HTMLSpanElement>>;
|
|
54
|
+
ItemLabel: Component<JSX.HTMLAttributes<HTMLSpanElement>>;
|
|
55
|
+
ItemDescription: Component<JSX.HTMLAttributes<HTMLSpanElement>>;
|
|
56
|
+
};
|
|
26
57
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, };
|
package/dist/solid/empty.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ declare const EmptyHeader: Component<ComponentProps<"div">>;
|
|
|
4
4
|
type EmptyMediaKind = "icon";
|
|
5
5
|
declare const EmptyMedia: Component<ComponentProps<"div"> & {
|
|
6
6
|
media?: EmptyMediaKind;
|
|
7
|
-
/** @deprecated `media
|
|
7
|
+
/** @deprecated `media`; removed in 2.0.0. */
|
|
8
8
|
variant?: EmptyMediaKind | "default";
|
|
9
9
|
}>;
|
|
10
10
|
declare const EmptyTitle: Component<ComponentProps<"div">>;
|
package/dist/solid/form.d.ts
CHANGED
|
@@ -19,9 +19,9 @@ declare function useFormField(): {
|
|
|
19
19
|
declare const FormField: ParentComponent<{
|
|
20
20
|
name: string;
|
|
21
21
|
}>;
|
|
22
|
-
/** @deprecated
|
|
22
|
+
/** @deprecated `Field`; removed in 2.0.0. */
|
|
23
23
|
declare const FormItem: ParentComponent<ComponentProps<typeof Field>>;
|
|
24
|
-
/** @deprecated
|
|
24
|
+
/** @deprecated `FieldLabel`; removed in 2.0.0. */
|
|
25
25
|
declare const FormLabel: Component<ComponentProps<typeof FieldLabel>>;
|
|
26
26
|
/** @internal Lets a test assert the once-per-process warning more than once. */
|
|
27
27
|
export declare function resetFormControlWrapperWarning(): void;
|
|
@@ -32,14 +32,13 @@ export declare function resetFormControlWrapperWarning(): void;
|
|
|
32
32
|
* Passing children keeps the old wrapper shape working: a `div` carrying the
|
|
33
33
|
* same id and aria, with the children inside.
|
|
34
34
|
*
|
|
35
|
-
* @deprecated
|
|
36
|
-
* describedby land on the element a screen reader announces.
|
|
35
|
+
* @deprecated With `children`, render the control itself; removed in 2.0.0.
|
|
37
36
|
*/
|
|
38
37
|
declare const FormControl: <T extends ValidComponent = typeof Input>(props: {
|
|
39
38
|
as?: T;
|
|
40
39
|
} & ComponentProps<T>) => JSX.Element;
|
|
41
|
-
/** @deprecated
|
|
40
|
+
/** @deprecated `FieldDescription`; removed in 2.0.0. */
|
|
42
41
|
declare const FormDescription: Component<ComponentProps<typeof FieldDescription>>;
|
|
43
|
-
/** @deprecated
|
|
42
|
+
/** @deprecated `FieldError`; removed in 2.0.0. */
|
|
44
43
|
declare const FormMessage: ParentComponent<ComponentProps<typeof FieldError>>;
|
|
45
44
|
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField, };
|
|
@@ -1,11 +1,67 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { type Component, type ComponentProps, type JSX, type ValidComponent } from "solid-js";
|
|
2
|
+
import type { Align, Side } from "../lib/anchor-placement.js";
|
|
3
|
+
type Placement = Side | `${Side}-${Exclude<Align, "center">}`;
|
|
4
|
+
interface HoverCardProps {
|
|
5
|
+
open?: boolean;
|
|
6
|
+
defaultOpen?: boolean;
|
|
7
|
+
onOpenChange?: (open: boolean) => void;
|
|
8
|
+
openDelay?: number;
|
|
9
|
+
closeDelay?: number;
|
|
10
|
+
placement?: Placement;
|
|
11
|
+
gutter?: number;
|
|
12
|
+
children?: JSX.Element;
|
|
13
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
14
|
+
id?: string;
|
|
15
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
16
|
+
ignoreSafeArea?: boolean;
|
|
17
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
18
|
+
forceMount?: boolean;
|
|
19
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
20
|
+
getAnchorRect?: (anchor?: HTMLElement) => unknown;
|
|
21
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
22
|
+
shift?: number;
|
|
23
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
24
|
+
flip?: boolean | string;
|
|
25
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
26
|
+
slide?: boolean;
|
|
27
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
28
|
+
overlap?: boolean;
|
|
29
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
30
|
+
sameWidth?: boolean;
|
|
31
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
32
|
+
fitViewport?: boolean;
|
|
33
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
34
|
+
hideWhenDetached?: boolean;
|
|
35
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
36
|
+
detachedPadding?: number;
|
|
37
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
38
|
+
arrowPadding?: number;
|
|
39
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
40
|
+
overflowPadding?: number;
|
|
41
|
+
}
|
|
42
|
+
type HoverCardTriggerProps<T extends ValidComponent> = {
|
|
43
|
+
as?: T;
|
|
44
|
+
} & Omit<ComponentProps<T>, "as">;
|
|
45
|
+
declare function HoverCardTrigger<T extends ValidComponent = "a">(props: HoverCardTriggerProps<T>): JSX.Element;
|
|
46
|
+
interface HoverCardContentProps extends ComponentProps<"div"> {
|
|
47
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
48
|
+
forceMount?: boolean;
|
|
49
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
50
|
+
onEscapeKeyDown?: (event: Event) => void;
|
|
51
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
52
|
+
onPointerDownOutside?: (event: Event) => void;
|
|
53
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
54
|
+
onFocusOutside?: (event: Event) => void;
|
|
55
|
+
/** @deprecated Ignored; removed in 2.0.0. */
|
|
56
|
+
onInteractOutside?: (event: Event) => void;
|
|
57
|
+
}
|
|
58
|
+
declare const HoverCardContent: Component<HoverCardContentProps>;
|
|
59
|
+
declare const HoverCard: Component<HoverCardProps> & {
|
|
60
|
+
Trigger: typeof HoverCardTrigger;
|
|
61
|
+
Content: Component<HoverCardContentProps>;
|
|
62
|
+
Portal: Component<{
|
|
63
|
+
children?: JSX.Element;
|
|
64
|
+
}>;
|
|
65
|
+
Arrow: Component;
|
|
8
66
|
};
|
|
9
|
-
declare const HoverCardTrigger: Component<ComponentProps<typeof HoverCardPrimitive.Trigger>>;
|
|
10
|
-
declare const HoverCardContent: Component<ComponentProps<typeof HoverCardPrimitive.Content>>;
|
|
11
67
|
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
package/dist/solid/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type Color, parseColor } from "
|
|
1
|
+
export { type Color, parseColor } from "../lib/color/index.js";
|
|
2
2
|
export { SECTION_ROW_SURFACE } from "../lib/card-classes.js";
|
|
3
3
|
export { copyImage, copyText } from "../lib/clipboard.js";
|
|
4
4
|
export { createHold, HOLD_GRACE_MS, HOLD_MS, spendLongPress } from "../lib/hold.js";
|