@kystverket/styrbord 1.7.2 → 1.8.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.
@@ -17,6 +17,7 @@ export declare const WithError: {
17
17
  value?: string[] | undefined;
18
18
  required?: boolean | undefined;
19
19
  onChange?: ((nextValue: string[], currentValue: string[]) => void) | undefined;
20
+ variant?: "outline" | undefined;
20
21
  };
21
22
  };
22
23
  export declare const Controlled: StoryFn<UseCheckboxGroupProps>;
@@ -29,6 +30,7 @@ export declare const ReadOnly: {
29
30
  value?: string[] | undefined;
30
31
  required?: boolean | undefined;
31
32
  onChange?: ((nextValue: string[], currentValue: string[]) => void) | undefined;
33
+ variant?: "outline" | undefined;
32
34
  };
33
35
  render: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, UseCheckboxGroupProps>;
34
36
  };
@@ -349,6 +351,7 @@ export declare const Disabled: {
349
351
  description?: React.ReactNode;
350
352
  value?: string | number | readonly string[] | undefined;
351
353
  error?: React.ReactNode;
354
+ variant?: "outline" | undefined;
352
355
  'aria-labelledby'?: never | undefined;
353
356
  ref?: React.Ref<HTMLInputElement> | undefined;
354
357
  key?: React.Key | null | undefined;
@@ -665,6 +668,7 @@ export declare const Disabled: {
665
668
  description?: React.ReactNode;
666
669
  value?: string | number | readonly string[] | undefined;
667
670
  error?: React.ReactNode;
671
+ variant?: "outline" | undefined;
668
672
  'aria-labelledby'?: never | undefined;
669
673
  ref?: React.Ref<HTMLInputElement> | undefined;
670
674
  key?: React.Key | null | undefined;
@@ -981,6 +985,7 @@ export declare const Disabled: {
981
985
  description?: React.ReactNode;
982
986
  value?: string | number | readonly string[] | undefined;
983
987
  error?: React.ReactNode;
988
+ variant?: "outline" | undefined;
984
989
  'aria-labelledby'?: string | undefined;
985
990
  ref?: React.Ref<HTMLInputElement> | undefined;
986
991
  key?: React.Key | null | undefined;
@@ -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 {};
@@ -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 { EXPERIMENTAL_Suggestion as Suggestion } from '@digdir/designsystemet-react';
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, SuggestionProps, SuggestionSingleProps, } from '@digdir/designsystemet-react';
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';