@liner-fe/prism 1.12.37 → 1.12.38
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.
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IconProps } from '../Icon';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
interface ListRootProps {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
value?: string;
|
|
6
|
+
onChangeValue?: (value: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export interface ItemProps {
|
|
9
|
+
value: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
icon?: IconProps;
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const List: (({ children, ...props }: ListRootProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
15
|
+
Item: ({ value, disabled, icon, onClick }: ItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
2
2
|
import { IconProps } from '../Icon';
|
|
3
3
|
import { ComponentProps, ComponentPropsWithoutRef } from 'react';
|
|
4
|
-
interface SelectProps extends ComponentPropsWithoutRef<typeof SelectPrimitive.Root> {
|
|
4
|
+
export interface SelectProps extends ComponentPropsWithoutRef<typeof SelectPrimitive.Root> {
|
|
5
5
|
id?: string;
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
label?: string;
|
|
@@ -21,4 +21,3 @@ export interface SelectItemProps {
|
|
|
21
21
|
export declare const Select: import("react").ForwardRefExoticComponent<SelectProps & import("react").RefAttributes<never>> & {
|
|
22
22
|
Item: ({ value, disabled, icon, onClick }: SelectItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
};
|
|
24
|
-
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface ContextValue {
|
|
3
|
+
value?: string;
|
|
4
|
+
onChangeValue?: (value: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const CollectionContext: import("react").Context<ContextValue | undefined>;
|
|
7
|
+
interface CollectionProviderProps {
|
|
8
|
+
value?: string;
|
|
9
|
+
onChangeValue?: (value: string) => void;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const CollectionProvider: ({ value, onChangeValue, children }: CollectionProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const useCollectionContext: () => ContextValue;
|
|
14
|
+
export {};
|
package/lib/index.mjs
CHANGED
|
@@ -7836,7 +7836,7 @@ var SelectItem = /* @__PURE__ */ __name(({ value, disabled, icon, onClick }) =>
|
|
|
7836
7836
|
onClick?.();
|
|
7837
7837
|
},
|
|
7838
7838
|
children: [
|
|
7839
|
-
/* @__PURE__ */ jsx153(SelectPrimitive.ItemText, {
|
|
7839
|
+
/* @__PURE__ */ jsx153(SelectPrimitive.ItemText, { children: /* @__PURE__ */ jsx153(Paragraph, { size: 3, type: "normal", weight: "medium", children: value }) }),
|
|
7840
7840
|
icon && /* @__PURE__ */ jsx153(SelectPrimitive.Icon, { className: style_module_default13.icon, children: /* @__PURE__ */ jsx153(Icon, { size: "xs", ...icon }) }),
|
|
7841
7841
|
/* @__PURE__ */ jsx153(SelectPrimitive.ItemIndicator, { className: style_module_default13.itemIndicator, children: /* @__PURE__ */ jsx153(Icon, { fill: false, thick: true, size: "xs", name: "check-mark", type: "brand-label-primary" }) })
|
|
7842
7842
|
]
|