@proyecto-viviana/solidaria-components 0.2.5 → 0.3.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/LICENSE +21 -0
- package/README.md +39 -272
- package/dist/ActionBar.d.ts +79 -0
- package/dist/ActionBar.d.ts.map +1 -0
- package/dist/ActionGroup.d.ts +74 -0
- package/dist/ActionGroup.d.ts.map +1 -0
- package/dist/Alert.d.ts +70 -0
- package/dist/Alert.d.ts.map +1 -0
- package/dist/Autocomplete.d.ts +5 -5
- package/dist/Autocomplete.d.ts.map +1 -1
- package/dist/Breadcrumbs.d.ts +27 -8
- package/dist/Breadcrumbs.d.ts.map +1 -1
- package/dist/Button.d.ts +28 -5
- package/dist/Button.d.ts.map +1 -1
- package/dist/Calendar.d.ts +51 -7
- package/dist/Calendar.d.ts.map +1 -1
- package/dist/Checkbox.d.ts +33 -8
- package/dist/Checkbox.d.ts.map +1 -1
- package/dist/Collection.d.ts +130 -0
- package/dist/Collection.d.ts.map +1 -0
- package/dist/Color.d.ts +210 -9
- package/dist/Color.d.ts.map +1 -1
- package/dist/ColorEditor.d.ts +42 -0
- package/dist/ColorEditor.d.ts.map +1 -0
- package/dist/ComboBox.d.ts +146 -16
- package/dist/ComboBox.d.ts.map +1 -1
- package/dist/ContextualHelpTrigger.d.ts +40 -0
- package/dist/ContextualHelpTrigger.d.ts.map +1 -0
- package/dist/DateField.d.ts +35 -8
- package/dist/DateField.d.ts.map +1 -1
- package/dist/DatePicker.d.ts +101 -5
- package/dist/DatePicker.d.ts.map +1 -1
- package/dist/DateRangePickerContext.d.ts +30 -0
- package/dist/DateRangePickerContext.d.ts.map +1 -0
- package/dist/Dialog.d.ts +5 -5
- package/dist/Dialog.d.ts.map +1 -1
- package/dist/Disclosure.d.ts +25 -5
- package/dist/Disclosure.d.ts.map +1 -1
- package/dist/DragAndDrop.d.ts +80 -0
- package/dist/DragAndDrop.d.ts.map +1 -0
- package/dist/DragPreview.d.ts +14 -0
- package/dist/DragPreview.d.ts.map +1 -0
- package/dist/DropZone.d.ts +27 -0
- package/dist/DropZone.d.ts.map +1 -0
- package/dist/FieldError.d.ts +27 -0
- package/dist/FieldError.d.ts.map +1 -0
- package/dist/FileTrigger.d.ts +26 -0
- package/dist/FileTrigger.d.ts.map +1 -0
- package/dist/Focusable.d.ts +27 -0
- package/dist/Focusable.d.ts.map +1 -0
- package/dist/Form.d.ts +41 -0
- package/dist/Form.d.ts.map +1 -0
- package/dist/GridList.d.ts +69 -10
- package/dist/GridList.d.ts.map +1 -1
- package/dist/HiddenDateInput.d.ts +26 -0
- package/dist/HiddenDateInput.d.ts.map +1 -0
- package/dist/HiddenTimeInput.d.ts +25 -0
- package/dist/HiddenTimeInput.d.ts.map +1 -0
- package/dist/Icon.d.ts +57 -0
- package/dist/Icon.d.ts.map +1 -0
- package/dist/Keyboard.d.ts +13 -0
- package/dist/Keyboard.d.ts.map +1 -0
- package/dist/Landmark.d.ts +3 -3
- package/dist/Landmark.d.ts.map +1 -1
- package/dist/Link.d.ts +10 -4
- package/dist/Link.d.ts.map +1 -1
- package/dist/ListBox.d.ts +73 -11
- package/dist/ListBox.d.ts.map +1 -1
- package/dist/ListDropTargetDelegate.d.ts +38 -0
- package/dist/ListDropTargetDelegate.d.ts.map +1 -0
- package/dist/Menu.d.ts +79 -10
- package/dist/Menu.d.ts.map +1 -1
- package/dist/Meter.d.ts +4 -4
- package/dist/Meter.d.ts.map +1 -1
- package/dist/Modal.d.ts +6 -4
- package/dist/Modal.d.ts.map +1 -1
- package/dist/NumberField.d.ts +10 -12
- package/dist/NumberField.d.ts.map +1 -1
- package/dist/Popover.d.ts +32 -7
- package/dist/Popover.d.ts.map +1 -1
- package/dist/Pressable.d.ts +27 -0
- package/dist/Pressable.d.ts.map +1 -0
- package/dist/ProgressBar.d.ts +6 -4
- package/dist/ProgressBar.d.ts.map +1 -1
- package/dist/RadioGroup.d.ts +43 -9
- package/dist/RadioGroup.d.ts.map +1 -1
- package/dist/RangeCalendar.d.ts +39 -7
- package/dist/RangeCalendar.d.ts.map +1 -1
- package/dist/RouterProvider.d.ts +75 -0
- package/dist/RouterProvider.d.ts.map +1 -0
- package/dist/SearchField.d.ts +23 -21
- package/dist/SearchField.d.ts.map +1 -1
- package/dist/Select.d.ts +48 -7
- package/dist/Select.d.ts.map +1 -1
- package/dist/SelectionIndicator.d.ts +30 -0
- package/dist/SelectionIndicator.d.ts.map +1 -0
- package/dist/Separator.d.ts +9 -3
- package/dist/Separator.d.ts.map +1 -1
- package/dist/SharedElementTransition.d.ts +41 -0
- package/dist/SharedElementTransition.d.ts.map +1 -0
- package/dist/Slider.d.ts +15 -8
- package/dist/Slider.d.ts.map +1 -1
- package/dist/StepList.d.ts +90 -0
- package/dist/StepList.d.ts.map +1 -0
- package/dist/Switch.d.ts +11 -5
- package/dist/Switch.d.ts.map +1 -1
- package/dist/Table.d.ts +222 -19
- package/dist/Table.d.ts.map +1 -1
- package/dist/Tabs.d.ts +47 -10
- package/dist/Tabs.d.ts.map +1 -1
- package/dist/TagGroup.d.ts +22 -10
- package/dist/TagGroup.d.ts.map +1 -1
- package/dist/Text.d.ts +10 -0
- package/dist/Text.d.ts.map +1 -0
- package/dist/TextField.d.ts +19 -11
- package/dist/TextField.d.ts.map +1 -1
- package/dist/TimeField.d.ts +32 -7
- package/dist/TimeField.d.ts.map +1 -1
- package/dist/Toast.d.ts +29 -14
- package/dist/Toast.d.ts.map +1 -1
- package/dist/ToggleButton.d.ts +36 -0
- package/dist/ToggleButton.d.ts.map +1 -0
- package/dist/ToggleButtonGroup.d.ts +33 -0
- package/dist/ToggleButtonGroup.d.ts.map +1 -0
- package/dist/Toolbar.d.ts +7 -3
- package/dist/Toolbar.d.ts.map +1 -1
- package/dist/Tooltip.d.ts +58 -7
- package/dist/Tooltip.d.ts.map +1 -1
- package/dist/Tree.d.ts +102 -11
- package/dist/Tree.d.ts.map +1 -1
- package/dist/Virtualizer.d.ts +61 -0
- package/dist/Virtualizer.d.ts.map +1 -0
- package/dist/VirtualizerLayouts.d.ts +82 -0
- package/dist/VirtualizerLayouts.d.ts.map +1 -0
- package/dist/VisuallyHidden.d.ts +4 -2
- package/dist/VisuallyHidden.d.ts.map +1 -1
- package/dist/contexts.d.ts +6 -1
- package/dist/contexts.d.ts.map +1 -1
- package/dist/index.d.ts +73 -39
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23342 -10644
- package/dist/index.js.map +1 -7
- package/dist/index.jsx +18110 -0
- package/dist/index.jsx.map +1 -0
- package/dist/useDragAndDrop.d.ts +93 -0
- package/dist/useDragAndDrop.d.ts.map +1 -0
- package/dist/utils.d.ts +8 -2
- package/dist/utils.d.ts.map +1 -1
- package/dist/virtualizer/Layout.d.ts +79 -0
- package/dist/virtualizer/Layout.d.ts.map +1 -0
- package/package.json +33 -32
- package/src/ActionBar.tsx +251 -0
- package/src/ActionGroup.tsx +277 -0
- package/src/Alert.tsx +152 -0
- package/src/Autocomplete.tsx +39 -44
- package/src/Breadcrumbs.tsx +227 -72
- package/src/Button.tsx +315 -74
- package/src/Calendar.tsx +347 -141
- package/src/Checkbox.tsx +414 -123
- package/src/Collection.tsx +350 -0
- package/src/Color.tsx +1325 -284
- package/src/ColorEditor.tsx +213 -0
- package/src/ComboBox.tsx +644 -245
- package/src/ContextualHelpTrigger.tsx +195 -0
- package/src/DateField.tsx +274 -106
- package/src/DatePicker.tsx +892 -111
- package/src/DateRangePickerContext.tsx +44 -0
- package/src/Dialog.tsx +173 -104
- package/src/Disclosure.tsx +158 -105
- package/src/DragAndDrop.tsx +340 -0
- package/src/DragPreview.tsx +47 -0
- package/src/DropZone.tsx +233 -0
- package/src/FieldError.tsx +89 -0
- package/src/FileTrigger.tsx +83 -0
- package/src/Focusable.tsx +103 -0
- package/src/Form.tsx +140 -0
- package/src/GridList.tsx +542 -128
- package/src/HiddenDateInput.tsx +153 -0
- package/src/HiddenTimeInput.tsx +133 -0
- package/src/Icon.tsx +133 -0
- package/src/Keyboard.tsx +26 -0
- package/src/Landmark.tsx +37 -63
- package/src/Link.tsx +132 -69
- package/src/ListBox.tsx +656 -106
- package/src/ListDropTargetDelegate.ts +283 -0
- package/src/Menu.tsx +1234 -132
- package/src/Meter.tsx +44 -58
- package/src/Modal.tsx +262 -166
- package/src/NumberField.tsx +267 -151
- package/src/Popover.tsx +452 -343
- package/src/Pressable.tsx +108 -0
- package/src/ProgressBar.tsx +54 -59
- package/src/RadioGroup.tsx +533 -121
- package/src/RangeCalendar.tsx +249 -150
- package/src/RouterProvider.tsx +223 -0
- package/src/SearchField.tsx +460 -133
- package/src/Select.tsx +804 -233
- package/src/SelectionIndicator.tsx +108 -0
- package/src/Separator.tsx +47 -49
- package/src/SharedElementTransition.tsx +264 -0
- package/src/Slider.tsx +148 -98
- package/src/StepList.tsx +272 -0
- package/src/Switch.tsx +93 -46
- package/src/Table.tsx +1551 -225
- package/src/Tabs.tsx +377 -123
- package/src/TagGroup.tsx +233 -135
- package/src/Text.tsx +18 -0
- package/src/TextField.tsx +413 -86
- package/src/TimeField.tsx +232 -222
- package/src/Toast.tsx +306 -160
- package/src/ToggleButton.tsx +169 -0
- package/src/ToggleButtonGroup.tsx +141 -0
- package/src/Toolbar.tsx +61 -70
- package/src/Tooltip.tsx +473 -116
- package/src/Tree.tsx +1514 -175
- package/src/Virtualizer.tsx +730 -0
- package/src/VirtualizerLayouts.ts +280 -0
- package/src/VisuallyHidden.tsx +32 -38
- package/src/contexts.ts +29 -36
- package/src/index.ts +972 -620
- package/src/useDragAndDrop.ts +367 -0
- package/src/utils.tsx +69 -50
- package/src/virtualizer/Layout.ts +192 -0
- package/dist/index.ssr.js +0 -9785
- package/dist/index.ssr.js.map +0 -7
package/dist/Breadcrumbs.d.ts
CHANGED
|
@@ -4,26 +4,33 @@
|
|
|
4
4
|
* A pre-wired headless breadcrumbs component that combines aria hooks.
|
|
5
5
|
* Port of react-aria-components Breadcrumbs.
|
|
6
6
|
*/
|
|
7
|
-
import { type JSX } from
|
|
8
|
-
import { type AriaBreadcrumbsProps, type AriaBreadcrumbItemProps } from
|
|
9
|
-
import { type RenderChildren, type ClassNameOrFunction, type StyleOrFunction, type SlotProps } from
|
|
7
|
+
import { type Accessor, type JSX } from "solid-js";
|
|
8
|
+
import { type AriaBreadcrumbsProps, type AriaBreadcrumbItemProps } from "@proyecto-viviana/solidaria";
|
|
9
|
+
import { type RenderChildren, type ClassNameOrFunction, type StyleOrFunction, type SlotProps } from "./utils";
|
|
10
|
+
type RefLike<T> = ((el: T) => void) | {
|
|
11
|
+
current?: T | null;
|
|
12
|
+
} | undefined;
|
|
10
13
|
export interface BreadcrumbsRenderProps {
|
|
11
14
|
/** Whether the breadcrumbs are disabled. */
|
|
12
15
|
isDisabled: boolean;
|
|
13
16
|
}
|
|
14
|
-
export interface BreadcrumbsProps<T> extends Omit<AriaBreadcrumbsProps,
|
|
17
|
+
export interface BreadcrumbsProps<T> extends Omit<AriaBreadcrumbsProps, "isDisabled">, SlotProps {
|
|
15
18
|
/** The items to render in the breadcrumbs. */
|
|
16
19
|
items?: T[];
|
|
17
20
|
/** Function to get the key from an item. */
|
|
18
21
|
getKey?: (item: T) => string | number;
|
|
19
22
|
/** Whether the breadcrumbs are disabled. */
|
|
20
23
|
isDisabled?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
|
|
24
|
+
/** Handler called when a breadcrumb item is activated. */
|
|
25
|
+
onAction?: (key: string | number) => void;
|
|
26
|
+
/** The children of the component, or a render function for collection items. */
|
|
27
|
+
children?: JSX.Element | ((item: T) => JSX.Element);
|
|
23
28
|
/** The CSS className for the element. */
|
|
24
29
|
class?: ClassNameOrFunction<BreadcrumbsRenderProps>;
|
|
25
30
|
/** The inline style for the element. */
|
|
26
31
|
style?: StyleOrFunction<BreadcrumbsRenderProps>;
|
|
32
|
+
/** Ref for the navigation element. */
|
|
33
|
+
ref?: RefLike<HTMLElement>;
|
|
27
34
|
}
|
|
28
35
|
export interface BreadcrumbItemRenderProps {
|
|
29
36
|
/** Whether this is the current/last item. */
|
|
@@ -39,7 +46,7 @@ export interface BreadcrumbItemRenderProps {
|
|
|
39
46
|
/** Whether the item is hovered. */
|
|
40
47
|
isHovered: boolean;
|
|
41
48
|
}
|
|
42
|
-
export interface BreadcrumbItemProps extends Omit<AriaBreadcrumbItemProps,
|
|
49
|
+
export interface BreadcrumbItemProps extends Omit<AriaBreadcrumbItemProps, "isDisabled">, SlotProps {
|
|
43
50
|
/** The children of the breadcrumb item. */
|
|
44
51
|
children?: RenderChildren<BreadcrumbItemRenderProps>;
|
|
45
52
|
/** The CSS className for the element. */
|
|
@@ -48,11 +55,23 @@ export interface BreadcrumbItemProps extends Omit<AriaBreadcrumbItemProps, 'isDi
|
|
|
48
55
|
style?: StyleOrFunction<BreadcrumbItemRenderProps>;
|
|
49
56
|
/** Whether this item is disabled. */
|
|
50
57
|
isDisabled?: boolean;
|
|
58
|
+
/** Ref for the breadcrumb item element. */
|
|
59
|
+
ref?: RefLike<HTMLElement>;
|
|
51
60
|
}
|
|
52
61
|
interface BreadcrumbsContextValue {
|
|
53
|
-
isDisabled: boolean
|
|
62
|
+
isDisabled: Accessor<boolean>;
|
|
63
|
+
onAction?: (key: string | number) => void;
|
|
64
|
+
registerStaticItem?: () => number;
|
|
65
|
+
staticItemCount?: Accessor<number>;
|
|
66
|
+
resetStaticItems?: () => void;
|
|
67
|
+
setStaticItemCount?: (count: number) => void;
|
|
54
68
|
}
|
|
55
69
|
export declare const BreadcrumbsContext: import("solid-js").Context<BreadcrumbsContextValue | null>;
|
|
70
|
+
interface BreadcrumbItemContextValue {
|
|
71
|
+
itemKey: string | number | null;
|
|
72
|
+
isLast: Accessor<boolean>;
|
|
73
|
+
}
|
|
74
|
+
export declare const BreadcrumbItemContext: import("solid-js").Context<BreadcrumbItemContextValue | null>;
|
|
56
75
|
/**
|
|
57
76
|
* Breadcrumbs show hierarchy and navigational context for a user's location within an application.
|
|
58
77
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../src/Breadcrumbs.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,GAAG,
|
|
1
|
+
{"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../src/Breadcrumbs.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,GAAG,EAST,MAAM,UAAU,CAAC;AAElB,OAAO,EAML,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAE7B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,SAAS,EAGf,MAAM,SAAS,CAAC;AAEjB,KAAK,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,IAAI,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,CAAA;CAAE,GAAG,SAAS,CAAC;AAczE,MAAM,WAAW,sBAAsB;IACrC,4CAA4C;IAC5C,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,oBAAoB,EAAE,YAAY,CAAC,EAAE,SAAS;IAC9F,8CAA8C;IAC9C,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC;IACZ,4CAA4C;IAC5C,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,GAAG,MAAM,CAAC;IACtC,4CAA4C;IAC5C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAC1C,gFAAgF;IAChF,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,GA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,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C;AAED,eAAO,MAAM,kBAAkB,4DAAsD,CAAC;AAEtF,UAAU,0BAA0B;IAClC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAChC,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;CAC3B;AAED,eAAO,MAAM,qBAAqB,+DAAyD,CAAC;AAO5F;;GAEG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,OAAO,CA6GtE;yBA7Ge,WAAW;;;AAgI3B;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,GAAG,CAAC,OAAO,CAyJtE"}
|
package/dist/Button.d.ts
CHANGED
|
@@ -4,9 +4,12 @@
|
|
|
4
4
|
* A pre-wired headless button that combines state + aria hooks.
|
|
5
5
|
* Port of react-aria-components/src/Button.tsx
|
|
6
6
|
*/
|
|
7
|
-
import { type JSX } from
|
|
8
|
-
import { type AriaButtonProps } from
|
|
9
|
-
import { type RenderChildren, type ClassNameOrFunction, type StyleOrFunction, type SlotProps } from
|
|
7
|
+
import { type JSX } from "solid-js";
|
|
8
|
+
import { type AriaButtonProps, type HoverEvent } from "@proyecto-viviana/solidaria";
|
|
9
|
+
import { type RenderChildren, type ClassNameOrFunction, type StyleOrFunction, type SlotProps } from "./utils";
|
|
10
|
+
type RefLike<T> = ((el: T) => void) | {
|
|
11
|
+
current?: T | null;
|
|
12
|
+
} | undefined;
|
|
10
13
|
export interface ButtonRenderProps {
|
|
11
14
|
/** Whether the button is currently hovered with a mouse. */
|
|
12
15
|
isHovered: boolean;
|
|
@@ -18,16 +21,35 @@ export interface ButtonRenderProps {
|
|
|
18
21
|
isFocusVisible: boolean;
|
|
19
22
|
/** Whether the button is disabled. */
|
|
20
23
|
isDisabled: boolean;
|
|
24
|
+
/** Whether the button is currently in a pending state. */
|
|
25
|
+
isPending: boolean;
|
|
21
26
|
}
|
|
22
|
-
export interface ButtonProps extends Omit<AriaButtonProps,
|
|
27
|
+
export interface ButtonProps extends Omit<AriaButtonProps, "children">, SlotProps {
|
|
23
28
|
/** The children of the component. A function may be provided to receive render props. */
|
|
24
29
|
children?: RenderChildren<ButtonRenderProps>;
|
|
25
30
|
/** The CSS className for the element. */
|
|
26
31
|
class?: ClassNameOrFunction<ButtonRenderProps>;
|
|
27
32
|
/** The inline style for the element. */
|
|
28
33
|
style?: StyleOrFunction<ButtonRenderProps>;
|
|
34
|
+
/** Custom renderer for the outer button element. */
|
|
35
|
+
render?: (props: JSX.ButtonHTMLAttributes<HTMLButtonElement>, renderProps: ButtonRenderProps) => JSX.Element;
|
|
36
|
+
/** Ref for the underlying button element. */
|
|
37
|
+
ref?: RefLike<HTMLButtonElement>;
|
|
38
|
+
/** Whether the button is in a pending state. */
|
|
39
|
+
isPending?: boolean;
|
|
40
|
+
/** Keeps pending buttons focusable by using aria-disabled without a native disabled attribute. */
|
|
41
|
+
isPendingFocusable?: boolean;
|
|
42
|
+
/** Handler called when hover starts. */
|
|
43
|
+
onHoverStart?: (e: HoverEvent) => void;
|
|
44
|
+
/** Handler called when hover ends. */
|
|
45
|
+
onHoverEnd?: (e: HoverEvent) => void;
|
|
46
|
+
/** Handler called when hover state changes. */
|
|
47
|
+
onHoverChange?: (isHovered: boolean) => void;
|
|
29
48
|
}
|
|
30
|
-
export
|
|
49
|
+
export interface ButtonContextValue extends ButtonProps {
|
|
50
|
+
slots?: Record<string, ButtonProps>;
|
|
51
|
+
}
|
|
52
|
+
export declare const ButtonContext: import("solid-js").Context<ButtonContextValue | null>;
|
|
31
53
|
/**
|
|
32
54
|
* A button allows a user to perform an action.
|
|
33
55
|
*
|
|
@@ -46,4 +68,5 @@ export declare const ButtonContext: import("solid-js").Context<ButtonProps | nul
|
|
|
46
68
|
* ```
|
|
47
69
|
*/
|
|
48
70
|
export declare function Button(props: ButtonProps): JSX.Element;
|
|
71
|
+
export {};
|
|
49
72
|
//# sourceMappingURL=Button.d.ts.map
|
package/dist/Button.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../src/Button.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,GAAG,
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../src/Button.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,GAAG,EAOT,MAAM,UAAU,CAAC;AAClB,OAAO,EAOL,KAAK,eAAe,EACpB,KAAK,UAAU,EAEhB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,SAAS,EAGf,MAAM,SAAS,CAAC;AAIjB,KAAK,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,IAAI,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,CAAA;CAAE,GAAG,SAAS,CAAC;AA6DzE,MAAM,WAAW,iBAAiB;IAChC,4DAA4D;IAC5D,SAAS,EAAE,OAAO,CAAC;IACnB,0DAA0D;IAC1D,SAAS,EAAE,OAAO,CAAC;IACnB,qEAAqE;IACrE,SAAS,EAAE,OAAO,CAAC;IACnB,8CAA8C;IAC9C,cAAc,EAAE,OAAO,CAAC;IACxB,sCAAsC;IACtC,UAAU,EAAE,OAAO,CAAC;IACpB,0DAA0D;IAC1D,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,EAAE,SAAS;IAC/E,yFAAyF;IACzF,QAAQ,CAAC,EAAE,cAAc,CAAC,iBAAiB,CAAC,CAAC;IAC7C,yCAAyC;IACzC,KAAK,CAAC,EAAE,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;IAC/C,wCAAwC;IACxC,KAAK,CAAC,EAAE,eAAe,CAAC,iBAAiB,CAAC,CAAC;IAC3C,oDAAoD;IACpD,MAAM,CAAC,EAAE,CACP,KAAK,EAAE,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAClD,WAAW,EAAE,iBAAiB,KAC3B,GAAG,CAAC,OAAO,CAAC;IACjB,6CAA6C;IAC7C,GAAG,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACjC,gDAAgD;IAChD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kGAAkG;IAClG,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,wCAAwC;IACxC,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACvC,sCAAsC;IACtC,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACrC,+CAA+C;IAC/C,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CAC9C;AAED,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;CACrC;AAED,eAAO,MAAM,aAAa,uDAAiD,CAAC;AAE5E;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,GAAG,GAAG,CAAC,OAAO,CA2TtD"}
|
package/dist/Calendar.d.ts
CHANGED
|
@@ -4,17 +4,22 @@
|
|
|
4
4
|
* Pre-wired headless calendar component that combines aria hooks.
|
|
5
5
|
* Port of react-aria-components/src/Calendar.tsx
|
|
6
6
|
*/
|
|
7
|
-
import { type JSX } from
|
|
8
|
-
import { type AriaCalendarProps, type AriaCalendarGridProps } from
|
|
9
|
-
import { type CalendarState, type CalendarStateProps, type CalendarDate, type DateValue } from
|
|
10
|
-
import { type RenderChildren, type ClassNameOrFunction, type StyleOrFunction, type SlotProps } from
|
|
7
|
+
import { type JSX } from "solid-js";
|
|
8
|
+
import { type AriaCalendarProps, type AriaCalendarGridProps } from "@proyecto-viviana/solidaria";
|
|
9
|
+
import { type CalendarState, type CalendarStateProps, type CalendarDate, type DateValue } from "@proyecto-viviana/solid-stately";
|
|
10
|
+
import { type RenderChildren, type ClassNameOrFunction, type StyleOrFunction, type SlotProps } from "./utils";
|
|
11
|
+
type RefLike<T> = ((el: T) => void) | {
|
|
12
|
+
current?: T | null;
|
|
13
|
+
} | undefined;
|
|
11
14
|
export interface CalendarRenderProps {
|
|
12
15
|
/** Whether the calendar is disabled. */
|
|
13
16
|
isDisabled: boolean;
|
|
14
17
|
/** Whether the calendar is read-only. */
|
|
15
18
|
isReadOnly: boolean;
|
|
19
|
+
/** Whether the current selection is invalid. */
|
|
20
|
+
isInvalid: boolean;
|
|
16
21
|
}
|
|
17
|
-
export interface CalendarProps<T extends DateValue = DateValue> extends Omit<AriaCalendarProps,
|
|
22
|
+
export interface CalendarProps<T extends DateValue = DateValue> extends Omit<AriaCalendarProps, "id" | "isDisabled" | "isReadOnly">, Omit<CalendarStateProps<T>, "locale">, SlotProps {
|
|
18
23
|
/** The children of the component. */
|
|
19
24
|
children?: JSX.Element;
|
|
20
25
|
/** The CSS className for the element. */
|
|
@@ -23,18 +28,22 @@ export interface CalendarProps<T extends DateValue = DateValue> extends Omit<Ari
|
|
|
23
28
|
style?: StyleOrFunction<CalendarRenderProps>;
|
|
24
29
|
/** The locale to use for formatting. */
|
|
25
30
|
locale?: string;
|
|
31
|
+
/** Ref for the calendar root element. */
|
|
32
|
+
ref?: RefLike<HTMLDivElement>;
|
|
26
33
|
}
|
|
27
34
|
export interface CalendarGridRenderProps {
|
|
28
35
|
/** Whether the grid is disabled. */
|
|
29
36
|
isDisabled: boolean;
|
|
30
37
|
}
|
|
31
|
-
export interface CalendarGridProps extends Omit<AriaCalendarGridProps,
|
|
38
|
+
export interface CalendarGridProps extends Omit<AriaCalendarGridProps, "startDate" | "endDate">, SlotProps {
|
|
32
39
|
/** The children of the component (render function receiving weeks). */
|
|
33
40
|
children?: (date: CalendarDate) => JSX.Element;
|
|
34
41
|
/** The CSS className for the element. */
|
|
35
42
|
class?: ClassNameOrFunction<CalendarGridRenderProps>;
|
|
36
43
|
/** The inline style for the element. */
|
|
37
44
|
style?: StyleOrFunction<CalendarGridRenderProps>;
|
|
45
|
+
/** Class name for weekday header cells. */
|
|
46
|
+
headerCellClass?: string;
|
|
38
47
|
/** Number of weeks to offset from the start. */
|
|
39
48
|
offset?: {
|
|
40
49
|
months?: number;
|
|
@@ -45,16 +54,30 @@ export interface CalendarCellRenderProps {
|
|
|
45
54
|
isSelected: boolean;
|
|
46
55
|
/** Whether the cell is focused. */
|
|
47
56
|
isFocused: boolean;
|
|
57
|
+
/** Whether the cell should display a keyboard focus ring. */
|
|
58
|
+
isFocusVisible: boolean;
|
|
48
59
|
/** Whether the cell is disabled. */
|
|
49
60
|
isDisabled: boolean;
|
|
50
61
|
/** Whether the cell is unavailable. */
|
|
51
62
|
isUnavailable: boolean;
|
|
63
|
+
/** Whether the cell is part of an invalid selection. */
|
|
64
|
+
isInvalid: boolean;
|
|
52
65
|
/** Whether the cell is outside the visible month. */
|
|
53
66
|
isOutsideMonth: boolean;
|
|
54
67
|
/** Whether the cell represents today. */
|
|
55
68
|
isToday: boolean;
|
|
56
69
|
/** Whether the cell is pressed. */
|
|
57
70
|
isPressed: boolean;
|
|
71
|
+
/** Whether the cell is hovered. */
|
|
72
|
+
isHovered: boolean;
|
|
73
|
+
/** Whether the cell is the first day slot in its row. */
|
|
74
|
+
isFirstChild: boolean;
|
|
75
|
+
/** Whether the cell is the last day slot in its row. */
|
|
76
|
+
isLastChild: boolean;
|
|
77
|
+
/** Whether the cell is in the first rendered week row. */
|
|
78
|
+
isFirstWeek: boolean;
|
|
79
|
+
/** Whether the cell is in the last rendered week row. */
|
|
80
|
+
isLastWeek: boolean;
|
|
58
81
|
/** The formatted date string. */
|
|
59
82
|
formattedDate: string;
|
|
60
83
|
}
|
|
@@ -67,6 +90,10 @@ export interface CalendarCellProps extends SlotProps {
|
|
|
67
90
|
class?: ClassNameOrFunction<CalendarCellRenderProps>;
|
|
68
91
|
/** The inline style for the element. */
|
|
69
92
|
style?: StyleOrFunction<CalendarCellRenderProps>;
|
|
93
|
+
/** Class name for the table cell wrapper. */
|
|
94
|
+
cellClass?: ClassNameOrFunction<CalendarCellRenderProps>;
|
|
95
|
+
/** Inline style for the table cell wrapper. */
|
|
96
|
+
cellStyle?: StyleOrFunction<CalendarCellRenderProps>;
|
|
70
97
|
}
|
|
71
98
|
export interface CalendarHeaderCellProps extends SlotProps {
|
|
72
99
|
/** The children of the component. */
|
|
@@ -76,6 +103,16 @@ export interface CalendarHeaderCellProps extends SlotProps {
|
|
|
76
103
|
/** The inline style for the element. */
|
|
77
104
|
style?: JSX.CSSProperties;
|
|
78
105
|
}
|
|
106
|
+
export interface CalendarGridHeaderProps extends SlotProps {
|
|
107
|
+
children?: JSX.Element;
|
|
108
|
+
class?: string;
|
|
109
|
+
style?: JSX.CSSProperties;
|
|
110
|
+
}
|
|
111
|
+
export interface CalendarGridBodyProps extends SlotProps {
|
|
112
|
+
children?: JSX.Element;
|
|
113
|
+
class?: string;
|
|
114
|
+
style?: JSX.CSSProperties;
|
|
115
|
+
}
|
|
79
116
|
export declare const CalendarContext: import("solid-js").Context<CalendarState<DateValue> | null>;
|
|
80
117
|
export declare function useCalendarContext(): CalendarState<DateValue>;
|
|
81
118
|
/**
|
|
@@ -97,6 +134,10 @@ export declare function useCalendarContext(): CalendarState<DateValue>;
|
|
|
97
134
|
*/
|
|
98
135
|
export declare function Calendar<T extends DateValue = CalendarDate>(props: CalendarProps<T>): JSX.Element;
|
|
99
136
|
export interface CalendarHeadingProps extends SlotProps {
|
|
137
|
+
/** The children of the component. */
|
|
138
|
+
children?: RenderChildren<{
|
|
139
|
+
title: string;
|
|
140
|
+
}>;
|
|
100
141
|
/** The CSS className for the element. */
|
|
101
142
|
class?: string;
|
|
102
143
|
/** The inline style for the element. */
|
|
@@ -108,7 +149,7 @@ export interface CalendarHeadingProps extends SlotProps {
|
|
|
108
149
|
export declare function CalendarHeading(props: CalendarHeadingProps): JSX.Element;
|
|
109
150
|
export interface CalendarButtonProps extends SlotProps {
|
|
110
151
|
/** The slot for this button (previous or next). */
|
|
111
|
-
slot?:
|
|
152
|
+
slot?: "previous" | "next";
|
|
112
153
|
/** The children of the component. */
|
|
113
154
|
children?: JSX.Element;
|
|
114
155
|
/** The CSS className for the element. */
|
|
@@ -126,6 +167,9 @@ export declare function CalendarButton(props: CalendarButtonProps): JSX.Element;
|
|
|
126
167
|
* Displays a grid of calendar cells.
|
|
127
168
|
*/
|
|
128
169
|
export declare function CalendarGrid(props: CalendarGridProps): JSX.Element;
|
|
170
|
+
export declare function CalendarGridHeader(props: CalendarGridHeaderProps): JSX.Element;
|
|
171
|
+
export declare function CalendarGridBody(props: CalendarGridBodyProps): JSX.Element;
|
|
172
|
+
export declare function CalendarHeaderCell(props: CalendarHeaderCellProps): JSX.Element;
|
|
129
173
|
/**
|
|
130
174
|
* A cell in the calendar grid representing a single day.
|
|
131
175
|
*/
|
package/dist/Calendar.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../src/Calendar.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,GAAG,
|
|
1
|
+
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../src/Calendar.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,GAAG,EAUT,MAAM,UAAU,CAAC;AAElB,OAAO,EAKL,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC3B,MAAM,6BAA6B,CAA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GED
|
@@ -4,10 +4,13 @@
|
|
|
4
4
|
* Pre-wired headless checkbox components that combine state + aria hooks.
|
|
5
5
|
* Port of react-aria-components/src/Checkbox.tsx
|
|
6
6
|
*/
|
|
7
|
-
import { type JSX
|
|
8
|
-
import { type AriaCheckboxProps, type AriaCheckboxGroupProps } from
|
|
9
|
-
import { type CheckboxGroupState } from
|
|
10
|
-
import { type RenderChildren, type ClassNameOrFunction, type StyleOrFunction, type SlotProps } from
|
|
7
|
+
import { type JSX } from "solid-js";
|
|
8
|
+
import { type AriaCheckboxProps, type AriaCheckboxGroupProps } from "@proyecto-viviana/solidaria";
|
|
9
|
+
import { type CheckboxGroupState } from "@proyecto-viviana/solid-stately";
|
|
10
|
+
import { type RenderChildren, type ClassNameOrFunction, type StyleOrFunction, type SlotProps } from "./utils";
|
|
11
|
+
type RefLike<T> = ((el: T) => void) | {
|
|
12
|
+
current?: T | null;
|
|
13
|
+
} | undefined;
|
|
11
14
|
export interface CheckboxGroupRenderProps {
|
|
12
15
|
/** Whether the checkbox group is disabled. */
|
|
13
16
|
isDisabled: boolean;
|
|
@@ -42,27 +45,48 @@ export interface CheckboxRenderProps {
|
|
|
42
45
|
/** Whether the checkbox is required. */
|
|
43
46
|
isRequired: boolean;
|
|
44
47
|
}
|
|
45
|
-
export interface CheckboxGroupProps extends Omit<AriaCheckboxGroupProps,
|
|
48
|
+
export interface CheckboxGroupProps extends Omit<AriaCheckboxGroupProps, "children" | "label">, SlotProps {
|
|
46
49
|
/** The children of the component. A function may be provided to receive render props. */
|
|
47
50
|
children?: RenderChildren<CheckboxGroupRenderProps>;
|
|
48
51
|
/** The CSS className for the element. */
|
|
49
52
|
class?: ClassNameOrFunction<CheckboxGroupRenderProps>;
|
|
50
53
|
/** The inline style for the element. */
|
|
51
54
|
style?: StyleOrFunction<CheckboxGroupRenderProps>;
|
|
55
|
+
/** Ref for the checkbox group root element. */
|
|
56
|
+
ref?: RefLike<HTMLDivElement>;
|
|
52
57
|
}
|
|
53
|
-
export interface CheckboxProps extends Omit<AriaCheckboxProps,
|
|
58
|
+
export interface CheckboxProps extends Omit<AriaCheckboxProps, "children">, SlotProps {
|
|
54
59
|
/** The children of the component. A function may be provided to receive render props. */
|
|
55
60
|
children?: RenderChildren<CheckboxRenderProps>;
|
|
56
61
|
/** The CSS className for the element. */
|
|
57
62
|
class?: ClassNameOrFunction<CheckboxRenderProps>;
|
|
58
63
|
/** The inline style for the element. */
|
|
59
64
|
style?: StyleOrFunction<CheckboxRenderProps>;
|
|
65
|
+
/** Custom renderer for the outer label element. */
|
|
66
|
+
render?: (props: JSX.LabelHTMLAttributes<HTMLLabelElement>, renderProps: CheckboxRenderProps) => JSX.Element;
|
|
67
|
+
/** Ref for the outer label element. */
|
|
68
|
+
ref?: RefLike<HTMLLabelElement>;
|
|
69
|
+
/** Ref for the underlying input element. */
|
|
70
|
+
inputRef?: RefLike<HTMLInputElement>;
|
|
60
71
|
/** Whether the checkbox is indeterminate. */
|
|
61
72
|
isIndeterminate?: boolean;
|
|
73
|
+
/** A description for the checkbox. */
|
|
74
|
+
description?: JSX.Element;
|
|
75
|
+
/** An error message for the checkbox. */
|
|
76
|
+
errorMessage?: JSX.Element;
|
|
77
|
+
/** Handler called when hover starts. */
|
|
78
|
+
onHoverStart?: () => void;
|
|
79
|
+
/** Handler called when hover ends. */
|
|
80
|
+
onHoverEnd?: () => void;
|
|
81
|
+
/** Handler called when hover state changes. */
|
|
82
|
+
onHoverChange?: (isHovered: boolean) => void;
|
|
62
83
|
}
|
|
63
84
|
export declare const CheckboxGroupContext: import("solid-js").Context<CheckboxGroupProps | null>;
|
|
64
85
|
export declare const CheckboxGroupStateContext: import("solid-js").Context<CheckboxGroupState | null>;
|
|
65
|
-
export
|
|
86
|
+
export interface CheckboxContextValue extends CheckboxProps {
|
|
87
|
+
slots?: Record<string, CheckboxProps>;
|
|
88
|
+
}
|
|
89
|
+
export declare const CheckboxContext: import("solid-js").Context<CheckboxContextValue | null>;
|
|
66
90
|
/**
|
|
67
91
|
* A checkbox group allows a user to select multiple items from a list of options.
|
|
68
92
|
*
|
|
@@ -74,7 +98,7 @@ export declare const CheckboxContext: import("solid-js").Context<CheckboxProps |
|
|
|
74
98
|
* </CheckboxGroup>
|
|
75
99
|
* ```
|
|
76
100
|
*/
|
|
77
|
-
export declare function CheckboxGroup(props:
|
|
101
|
+
export declare function CheckboxGroup(props: CheckboxGroupProps): JSX.Element;
|
|
78
102
|
/**
|
|
79
103
|
* A checkbox allows a user to select multiple items from a list of individual items,
|
|
80
104
|
* or to mark one individual item as selected.
|
|
@@ -94,4 +118,5 @@ export declare function CheckboxGroup(props: ParentProps<CheckboxGroupProps>): J
|
|
|
94
118
|
* ```
|
|
95
119
|
*/
|
|
96
120
|
export declare function Checkbox(props: CheckboxProps): JSX.Element;
|
|
121
|
+
export {};
|
|
97
122
|
//# sourceMappingURL=Checkbox.d.ts.map
|
package/dist/Checkbox.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../src/Checkbox.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,GAAG,
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../src/Checkbox.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,GAAG,EAST,MAAM,UAAU,CAAC;AAClB,OAAO,EAOL,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC5B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,SAAS,EAGf,MAAM,SAAS,CAAC;AAGjB,KAAK,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,IAAI,CAAC,GAAG;IAA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AK,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAwIpE;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,GAAG,CAAC,OAAO,CA4T1D"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Collection composition primitives for solidaria-components.
|
|
3
|
+
*
|
|
4
|
+
* Foundational parity layer for React Spectrum-style composition:
|
|
5
|
+
* Section / Header / Group.
|
|
6
|
+
*/
|
|
7
|
+
import { type JSX } from "solid-js";
|
|
8
|
+
import type { Key } from "@proyecto-viviana/solid-stately";
|
|
9
|
+
import type { DragTypes, DropOperation, DropTarget } from "@proyecto-viviana/solid-stately";
|
|
10
|
+
import { createLeafComponent, createBranchComponent, type CollectionProps as AriaCollectionProps, type CollectionBuilderProps as AriaCollectionBuilderProps } from "@proyecto-viviana/solidaria";
|
|
11
|
+
import { type ClassNameOrFunction, type StyleOrFunction, type SlotProps } from "./utils";
|
|
12
|
+
export interface CollectionPrimitiveRenderProps {
|
|
13
|
+
/** Whether the primitive has visible children content. */
|
|
14
|
+
hasChildren: boolean;
|
|
15
|
+
}
|
|
16
|
+
type RefLike<T> = ((el: T) => void) | {
|
|
17
|
+
current?: T | null;
|
|
18
|
+
} | undefined;
|
|
19
|
+
export interface CollectionDropTargetDelegate {
|
|
20
|
+
getDropTargetFromPoint(x: number, y: number, isValidDropTarget: (target: DropTarget) => boolean): DropTarget | null;
|
|
21
|
+
getDropOperation(target: DropTarget, types: DragTypes, allowedOperations: DropOperation[]): DropOperation;
|
|
22
|
+
getKeyboardNavigationTarget?(target: DropTarget | null, direction: "next" | "previous", isValidDropTarget: (target: DropTarget) => boolean): DropTarget | null;
|
|
23
|
+
getKeyboardPageNavigationTarget?(target: DropTarget | null, direction: "next" | "previous", isValidDropTarget: (target: DropTarget) => boolean): DropTarget | null;
|
|
24
|
+
}
|
|
25
|
+
export interface CollectionRendererContextValue<T> {
|
|
26
|
+
/** Render function used by collection parents to render each item node. */
|
|
27
|
+
renderItem: (item: T) => JSX.Element;
|
|
28
|
+
/** Whether collection rendering is currently virtualized. */
|
|
29
|
+
isVirtualized?: boolean;
|
|
30
|
+
/** Optional layout delegate used by virtualized renderers. */
|
|
31
|
+
layoutDelegate?: unknown;
|
|
32
|
+
/** Optional drop target delegate used by DnD-aware collection paths. */
|
|
33
|
+
dropTargetDelegate?: CollectionDropTargetDelegate;
|
|
34
|
+
/** Optional drop indicator renderer for DnD-aware collection paths. */
|
|
35
|
+
renderDropIndicator?: (index: number, position: "before" | "after" | "on") => JSX.Element | undefined;
|
|
36
|
+
}
|
|
37
|
+
export type CollectionEntry<T> = T | CollectionSection<T>;
|
|
38
|
+
export interface CollectionSection<T> {
|
|
39
|
+
/** Optional unique key for the section wrapper. */
|
|
40
|
+
key?: Key;
|
|
41
|
+
/** Optional section header title. */
|
|
42
|
+
title?: JSX.Element;
|
|
43
|
+
/** Optional aria-label for section grouping. */
|
|
44
|
+
"aria-label"?: string;
|
|
45
|
+
/** Items contained in the section. */
|
|
46
|
+
items: T[];
|
|
47
|
+
}
|
|
48
|
+
export interface SectionProps extends SlotProps {
|
|
49
|
+
/** Section contents, usually Header + Group/items. */
|
|
50
|
+
children?: JSX.Element;
|
|
51
|
+
/** Ref for the section element. */
|
|
52
|
+
ref?: RefLike<HTMLDivElement>;
|
|
53
|
+
/** The CSS className for the element. */
|
|
54
|
+
class?: ClassNameOrFunction<CollectionPrimitiveRenderProps>;
|
|
55
|
+
/** The inline style for the element. */
|
|
56
|
+
style?: StyleOrFunction<CollectionPrimitiveRenderProps>;
|
|
57
|
+
}
|
|
58
|
+
export interface HeaderProps extends SlotProps {
|
|
59
|
+
/** Header contents, usually section title text. */
|
|
60
|
+
children?: JSX.Element;
|
|
61
|
+
/** Optional heading level when rendered as a heading role. */
|
|
62
|
+
"aria-level"?: number;
|
|
63
|
+
/** The CSS className for the element. */
|
|
64
|
+
class?: ClassNameOrFunction<CollectionPrimitiveRenderProps>;
|
|
65
|
+
/** The inline style for the element. */
|
|
66
|
+
style?: StyleOrFunction<CollectionPrimitiveRenderProps>;
|
|
67
|
+
}
|
|
68
|
+
export interface GroupProps extends SlotProps {
|
|
69
|
+
/** Group contents, usually section items. */
|
|
70
|
+
children?: JSX.Element;
|
|
71
|
+
/** The CSS className for the element. */
|
|
72
|
+
class?: ClassNameOrFunction<CollectionPrimitiveRenderProps>;
|
|
73
|
+
/** The inline style for the element. */
|
|
74
|
+
style?: StyleOrFunction<CollectionPrimitiveRenderProps>;
|
|
75
|
+
}
|
|
76
|
+
interface SectionContextValue {
|
|
77
|
+
name: string;
|
|
78
|
+
render: (props: SectionProps, className?: string) => JSX.Element;
|
|
79
|
+
}
|
|
80
|
+
export interface CollectionBranchProps<T> {
|
|
81
|
+
collection: Iterable<T>;
|
|
82
|
+
parent?: unknown;
|
|
83
|
+
renderDropIndicator?: (target: {
|
|
84
|
+
type: "item";
|
|
85
|
+
key: Key;
|
|
86
|
+
dropPosition: "before" | "after" | "on";
|
|
87
|
+
}) => JSX.Element | undefined;
|
|
88
|
+
}
|
|
89
|
+
export interface CollectionRootProps<T> {
|
|
90
|
+
collection: Iterable<T>;
|
|
91
|
+
persistedKeys?: Set<Key> | null;
|
|
92
|
+
renderDropIndicator?: (target: {
|
|
93
|
+
type: "item";
|
|
94
|
+
key: Key;
|
|
95
|
+
dropPosition: "before" | "after" | "on";
|
|
96
|
+
}) => JSX.Element | undefined;
|
|
97
|
+
}
|
|
98
|
+
export interface CollectionRenderer<T = unknown> {
|
|
99
|
+
isVirtualized?: boolean;
|
|
100
|
+
layoutDelegate?: unknown;
|
|
101
|
+
dropTargetDelegate?: CollectionDropTargetDelegate;
|
|
102
|
+
CollectionRoot: (props: CollectionRootProps<T>) => JSX.Element;
|
|
103
|
+
CollectionBranch: (props: CollectionBranchProps<T>) => JSX.Element;
|
|
104
|
+
}
|
|
105
|
+
export declare const CollectionRendererContext: import("solid-js").Context<CollectionRendererContextValue<unknown> | null>;
|
|
106
|
+
export declare const SelectableCollectionContext: import("solid-js").Context<CollectionRendererContextValue<unknown> | null>;
|
|
107
|
+
export declare const SectionContext: import("solid-js").Context<SectionContextValue | null>;
|
|
108
|
+
export declare const GroupContext: import("solid-js").Context<Partial<GroupProps> | null>;
|
|
109
|
+
export declare const HeaderContext: import("solid-js").Context<Partial<HeaderProps> | null>;
|
|
110
|
+
export declare const HeadingContext: import("solid-js").Context<Partial<HeaderProps> | null>;
|
|
111
|
+
export declare function useCollectionRenderer<T>(): CollectionRendererContextValue<T> | null;
|
|
112
|
+
export declare function isCollectionSection<T>(entry: CollectionEntry<T>): entry is CollectionSection<T>;
|
|
113
|
+
export declare function flattenCollectionEntries<T>(entries: CollectionEntry<T>[]): T[];
|
|
114
|
+
export declare const DefaultCollectionRenderer: CollectionRenderer<unknown>;
|
|
115
|
+
export declare function CollectionBuilder<T>(props: AriaCollectionBuilderProps<T>): unknown;
|
|
116
|
+
export declare function Collection<T>(props: AriaCollectionProps<T>): unknown;
|
|
117
|
+
export { createLeafComponent, createBranchComponent };
|
|
118
|
+
/**
|
|
119
|
+
* A semantic section wrapper for grouped collection content.
|
|
120
|
+
*/
|
|
121
|
+
export declare function Section(props: SectionProps): JSX.Element;
|
|
122
|
+
/**
|
|
123
|
+
* A header/title primitive for collection sections.
|
|
124
|
+
*/
|
|
125
|
+
export declare function Header(props: HeaderProps): JSX.Element;
|
|
126
|
+
/**
|
|
127
|
+
* A grouping primitive for section item containers.
|
|
128
|
+
*/
|
|
129
|
+
export declare function Group(props: GroupProps): JSX.Element;
|
|
130
|
+
//# sourceMappingURL=Collection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Collection.d.ts","sourceRoot":"","sources":["../src/Collection.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,GAAG,EAA0D,MAAM,UAAU,CAAC;AAC5F,OAAO,KAAK,EAAE,GAAG,EAAE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