@ldkj/web-ui 0.16.1 → 0.17.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 -21
- package/components/form/select/Select.d.ts +16 -1
- package/components/interact/popover/Popover.d.ts +3 -0
- package/index.cjs +15 -15
- package/index.js +3951 -3903
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 ldkj
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ldkj
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -28,13 +28,28 @@ export type SelectItemsProps = {
|
|
|
28
28
|
labelProps?: Omit<SelectLabelProps, "children">;
|
|
29
29
|
separatorProps?: SelectSeparatorProps;
|
|
30
30
|
};
|
|
31
|
+
type SelectRootPrimitiveProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Root>;
|
|
32
|
+
export type SelectProps = SelectRootPrimitiveProps & {
|
|
33
|
+
/**
|
|
34
|
+
* 是否在弹层打开时锁定页面滚动。
|
|
35
|
+
*
|
|
36
|
+
* 默认允许页面继续滚动;如需恢复 Radix Select 的模态行为,可设置为 `true`。
|
|
37
|
+
*/
|
|
38
|
+
lockScroll?: boolean;
|
|
39
|
+
};
|
|
31
40
|
export type SelectTriggerProps = StyledPrimitiveProps<React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>>;
|
|
32
41
|
export type SelectScrollButtonProps = StyledPrimitiveProps<React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>>;
|
|
33
42
|
export type SelectContentProps = StyledPrimitiveProps<React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>>;
|
|
34
43
|
export type SelectLabelProps = StyledPrimitiveProps<React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>>;
|
|
35
44
|
export type SelectItemProps = StyledPrimitiveProps<React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>>;
|
|
36
45
|
export type SelectSeparatorProps = StyledPrimitiveProps<React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>>;
|
|
37
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Select 根组件,默认不锁定页面滚动。
|
|
48
|
+
*/
|
|
49
|
+
declare function Select(props: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
declare namespace Select {
|
|
51
|
+
var displayName: string;
|
|
52
|
+
}
|
|
38
53
|
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
39
54
|
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
40
55
|
/**
|
|
@@ -11,6 +11,7 @@ type PopoverWrapperProps<TProps> = Omit<TProps, "className" | "style"> & {
|
|
|
11
11
|
class?: string;
|
|
12
12
|
style?: React.CSSProperties;
|
|
13
13
|
sx?: SxProps;
|
|
14
|
+
asChildWrapper?: React.ElementType;
|
|
14
15
|
};
|
|
15
16
|
export type PopoverTriggerProps = PopoverWrapperProps<RadixPopoverTriggerProps>;
|
|
16
17
|
export type PopoverCloseProps = PopoverWrapperProps<RadixPopoverCloseProps>;
|
|
@@ -30,6 +31,7 @@ declare const PopoverTrigger: React.ForwardRefExoticComponent<Omit<Omit<PopoverP
|
|
|
30
31
|
class?: string;
|
|
31
32
|
style?: React.CSSProperties;
|
|
32
33
|
sx?: SxProps;
|
|
34
|
+
asChildWrapper?: React.ElementType;
|
|
33
35
|
} & React.RefAttributes<HTMLElement>>;
|
|
34
36
|
/**
|
|
35
37
|
* Popover 锚点。
|
|
@@ -47,6 +49,7 @@ declare const PopoverClose: React.ForwardRefExoticComponent<Omit<Omit<PopoverPri
|
|
|
47
49
|
class?: string;
|
|
48
50
|
style?: React.CSSProperties;
|
|
49
51
|
sx?: SxProps;
|
|
52
|
+
asChildWrapper?: React.ElementType;
|
|
50
53
|
} & React.RefAttributes<HTMLElement>>;
|
|
51
54
|
/**
|
|
52
55
|
* PopoverContent 的属性。
|