@gridui/select 1.5.0 → 2.0.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 +20 -6
- package/dist/autocomplete/autocomplete.d.ts +2 -0
- package/dist/autocomplete-suggestions/autocomplete-suggestions.d.ts +8 -0
- package/dist/combobox/combobox.d.ts +3 -1
- package/dist/index.js +56 -36
- package/dist/index.js.map +2 -2
- package/dist/select/select.d.ts +6 -0
- package/dist/select/style.d.ts +2 -1
- package/dist/shared/popup/selection-popup.d.ts +8 -0
- package/dist/shared/style.d.ts +2 -1
- package/dist/shared/types.d.ts +3 -1
- package/dist/styled.js +5 -0
- package/dist/styles.css +1060 -3
- package/dist/styles.local.css +207 -0
- package/docs/catalog.json +13 -12
- package/docs/reference/autocomplete-suggestions.md +7 -1
- package/docs/reference/autocomplete.md +14 -4
- package/docs/reference/combobox.md +20 -8
- package/docs/reference/multi-select.md +16 -2
- package/docs/reference/select.md +16 -8
- package/package.json +22 -10
|
@@ -1,7 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Select
|
|
4
|
+
* @namespace Shared_Popup
|
|
5
|
+
* @description Selection Popup
|
|
6
|
+
*/
|
|
7
|
+
import type { Density } from "@gridui/theme";
|
|
1
8
|
import * as Primitive from "@radix-ui/react-popover";
|
|
2
9
|
import type { ComponentPropsWithRef, FC, RefObject } from "react";
|
|
3
10
|
export type SelectionPopupProps = Pick<ComponentPropsWithRef<typeof Primitive.Content>, "ref" | "children" | "dir" | "role" | "aria-label"> & {
|
|
4
11
|
readonly open: boolean;
|
|
12
|
+
readonly density?: Density | undefined;
|
|
5
13
|
readonly container?: ComponentPropsWithRef<typeof Primitive.Portal>["container"];
|
|
6
14
|
readonly anchorRef?: RefObject<HTMLElement | null>;
|
|
7
15
|
readonly initialFocus?: () => void;
|
package/dist/shared/style.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* @namespace Shared
|
|
5
5
|
* @description Style
|
|
6
6
|
*/
|
|
7
|
+
import type { Density } from "@gridui/theme";
|
|
7
8
|
export declare const selectIconStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
8
9
|
export declare const selectOptionContentStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
10
|
export declare const selectOptionDescriptionStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
@@ -11,4 +12,4 @@ export declare const selectListStyles: (props?: import("class-variance-authority
|
|
|
11
12
|
export declare const selectEmptyStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
12
13
|
export declare const selectActionsStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
13
14
|
export declare const selectActionStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
14
|
-
export declare const comboboxContentStyles: (
|
|
15
|
+
export declare const comboboxContentStyles: (density: Density) => string;
|
package/dist/shared/types.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* @namespace Shared
|
|
5
5
|
* @description Types
|
|
6
6
|
*/
|
|
7
|
+
import type { Size, Density } from "@gridui/theme";
|
|
7
8
|
import type { overlayListItemStyles } from "@gridui/overlay";
|
|
8
9
|
import type { VariantProps } from "class-variance-authority";
|
|
9
10
|
import type { ReactNode } from "react";
|
|
@@ -46,6 +47,8 @@ export type SelectionAppearanceOptions = {
|
|
|
46
47
|
readonly selectionAppearance?: NonNullable<VariantProps<typeof overlayListItemStyles>["selectionAppearance"]> | undefined;
|
|
47
48
|
};
|
|
48
49
|
export interface SelectionControlOptions extends SelectionOptionSource, SelectionAppearanceOptions {
|
|
50
|
+
readonly size?: Size | undefined;
|
|
51
|
+
readonly density?: Density | undefined;
|
|
49
52
|
readonly clearLabel?: string;
|
|
50
53
|
readonly portalContainer?: HTMLElement | null;
|
|
51
54
|
readonly required?: boolean;
|
|
@@ -56,7 +59,6 @@ export interface SelectionSearchLabels {
|
|
|
56
59
|
}
|
|
57
60
|
export interface SelectionProps extends SelectionValueProps, SelectionControlOptions {
|
|
58
61
|
readonly actions?: readonly SelectAction[];
|
|
59
|
-
readonly controlSize?: "standard" | "small";
|
|
60
62
|
readonly name?: string;
|
|
61
63
|
readonly form?: string;
|
|
62
64
|
readonly disabled?: boolean;
|