@kystverket/styrbord 1.7.2 → 1.7.3
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 { EXPERIMENTAL_Suggestion as DsSuggestion, type SuggestionProps as DsSuggestionProps } from '@digdir/designsystemet-react';
|
|
2
|
+
export type SuggestionProps = {
|
|
3
|
+
label?: string;
|
|
4
|
+
required?: boolean | string;
|
|
5
|
+
optional?: boolean | string;
|
|
6
|
+
error?: string;
|
|
7
|
+
} & DsSuggestionProps;
|
|
8
|
+
declare function SuggestionRoot({ children, label, className, required, optional, error, ...props }: SuggestionProps): React.JSX.Element;
|
|
9
|
+
type SuggestionComponent = typeof SuggestionRoot & {
|
|
10
|
+
Clear: typeof DsSuggestion.Clear;
|
|
11
|
+
Empty: typeof DsSuggestion.Empty;
|
|
12
|
+
Input: typeof DsSuggestion.Input;
|
|
13
|
+
List: typeof DsSuggestion.List;
|
|
14
|
+
Option: typeof DsSuggestion.Option;
|
|
15
|
+
};
|
|
16
|
+
export declare const Suggestion: SuggestionComponent;
|
|
17
|
+
export {};
|
package/dist/src/main.d.ts
CHANGED
|
@@ -71,7 +71,8 @@ export { Avatar } from './components/designsystemet/Avatar/Avatar';
|
|
|
71
71
|
export type { AvatarProps } from './components/designsystemet/Avatar/Avatar';
|
|
72
72
|
export { IdProvider, useIdProvider } from './utils/idContext';
|
|
73
73
|
export { SlotDialog, type SlotDialogProps } from './components/kystverket/SlotDialog/SlotDialog';
|
|
74
|
-
export {
|
|
74
|
+
export { Suggestion } from './components/designsystemet/Suggestion/Suggestion';
|
|
75
|
+
export type { SuggestionProps } from './components/designsystemet/Suggestion/Suggestion';
|
|
75
76
|
export { RovingFocusItem, RovingFocusRoot, omit, useCheckboxGroup, useDebounceCallback, useIsomorphicLayoutEffect, useMediaQuery, usePagination, useRadioGroup, useSynchronizedAnimation, } from '@digdir/designsystemet-react';
|
|
76
77
|
export type { Size, UseRadioGroupProps, UseCheckboxGroupProps, UsePaginationProps, MergeRight, LabelRequired, } from '@digdir/designsystemet-react';
|
|
77
78
|
export type { BadgePositionProps, BadgeProps } from '@digdir/designsystemet-react';
|
|
@@ -126,7 +127,7 @@ export type { SkipLinkProps } from '@digdir/designsystemet-react';
|
|
|
126
127
|
export { SkipLink } from '@digdir/designsystemet-react';
|
|
127
128
|
export type { SpinnerProps } from '@digdir/designsystemet-react';
|
|
128
129
|
export { Spinner } from '@digdir/designsystemet-react';
|
|
129
|
-
export type { SuggestionClearProps, SuggestionEmptyProps, SuggestionInputProps, SuggestionItem, SuggestionListProps, SuggestionMultipleProps, SuggestionOptionProps,
|
|
130
|
+
export type { SuggestionClearProps, SuggestionEmptyProps, SuggestionInputProps, SuggestionItem, SuggestionListProps, SuggestionMultipleProps, SuggestionOptionProps, SuggestionSingleProps, } from '@digdir/designsystemet-react';
|
|
130
131
|
export { EXPERIMENTAL_Suggestion, EXPERIMENTAL_SuggestionClear, EXPERIMENTAL_SuggestionEmpty, EXPERIMENTAL_SuggestionInput, EXPERIMENTAL_SuggestionList, EXPERIMENTAL_SuggestionOption, } from '@digdir/designsystemet-react';
|
|
131
132
|
export type { SwitchProps } from '@digdir/designsystemet-react';
|
|
132
133
|
export { Switch } from '@digdir/designsystemet-react';
|