@norges-domstoler/dds-components 21.18.0 → 21.19.1
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/dist/index.css +76 -46
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +40 -29
- package/dist/index.d.ts +40 -29
- package/dist/index.js +494 -430
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +278 -214
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -693,6 +693,8 @@ interface PrimitiveLayoutProps {
|
|
|
693
693
|
rowGap?: ResponsiveProp<Property.RowGap | SpacingScale>;
|
|
694
694
|
/** CSS `column-gap`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
695
695
|
columnGap?: ResponsiveProp<Property.ColumnGap | SpacingScale>;
|
|
696
|
+
/** CSS `word-break`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
697
|
+
wordBreak?: ResponsiveProp<Property.WordBreak>;
|
|
696
698
|
}
|
|
697
699
|
type ResponsiveProps = PrimitiveDisplayProps & PrimitiveLayoutProps;
|
|
698
700
|
type ResponsiveStackProps = Omit<ResponsiveProps, 'display' | 'flexDirection'>;
|
|
@@ -2306,6 +2308,25 @@ declare const Typography: {
|
|
|
2306
2308
|
displayName: string;
|
|
2307
2309
|
};
|
|
2308
2310
|
|
|
2311
|
+
declare const ICON_SIZES: ["small", "medium", "large", "inherit"];
|
|
2312
|
+
type IconSize = (typeof ICON_SIZES)[number];
|
|
2313
|
+
type IconProps = BaseComponentProps<SVGSVGElement, {
|
|
2314
|
+
/**Ikonet importert fra `@norges-domstoler/dds-components`. */
|
|
2315
|
+
icon: SvgIcon;
|
|
2316
|
+
/**Størrelsen på ikonet.
|
|
2317
|
+
* @default "medium"
|
|
2318
|
+
*/
|
|
2319
|
+
iconSize?: IconSize;
|
|
2320
|
+
/**Fargen på ikonet.
|
|
2321
|
+
* @default "currentcolor"
|
|
2322
|
+
*/
|
|
2323
|
+
color?: TextColor;
|
|
2324
|
+
}, Omit<HTMLAttributes<SVGSVGElement>, 'color'>>;
|
|
2325
|
+
declare function Icon(props: IconProps): react.JSX.Element;
|
|
2326
|
+
declare namespace Icon {
|
|
2327
|
+
var displayName: string;
|
|
2328
|
+
}
|
|
2329
|
+
|
|
2309
2330
|
interface CommonInputProps {
|
|
2310
2331
|
/**Ledetekst. */
|
|
2311
2332
|
label?: string;
|
|
@@ -2326,6 +2347,10 @@ type InputProps = CommonInputProps & {
|
|
|
2326
2347
|
*/
|
|
2327
2348
|
componentSize?: InputSize;
|
|
2328
2349
|
} & Omit<ComponentPropsWithRef<'input'>, 'width' | 'height'>;
|
|
2350
|
+
interface InputIconProps {
|
|
2351
|
+
/** Ikonet som vises i komponenten. */
|
|
2352
|
+
icon?: SvgIcon;
|
|
2353
|
+
}
|
|
2329
2354
|
|
|
2330
2355
|
declare const defaultTypographyType: TypographyBodyType;
|
|
2331
2356
|
declare const defaultTypographyTypeClassName: HyphenTypographyType;
|
|
@@ -2726,6 +2751,8 @@ type DateFieldProps<T extends DateValue$1 = CalendarDate> = AriaDateFieldOptions
|
|
|
2726
2751
|
groupProps?: ReturnType<typeof useDatePicker>['groupProps'];
|
|
2727
2752
|
ref?: Ref<HTMLDivElement>;
|
|
2728
2753
|
clearable?: boolean;
|
|
2754
|
+
tipId?: string;
|
|
2755
|
+
errorMessageId?: string;
|
|
2729
2756
|
} & Pick<InputProps, 'componentSize' | 'errorMessage' | 'tip' | 'disabled' | 'style' | 'width' | 'className'>;
|
|
2730
2757
|
|
|
2731
2758
|
interface DatePickerProps extends Omit<AriaDatePickerProps<CalendarDate>, 'granularity'>, Pick<DateFieldProps<CalendarDate>, 'componentSize' | 'tip' | 'style'>, Pick<ResponsiveProps, 'width'> {
|
|
@@ -3136,12 +3163,19 @@ type InputMessageProps = BaseComponentProps<HTMLDivElement, {
|
|
|
3136
3163
|
* @default "error"
|
|
3137
3164
|
*/
|
|
3138
3165
|
messageType: InputMessageType;
|
|
3139
|
-
}
|
|
3166
|
+
} & Pick<ResponsiveProps, 'margin' | 'marginInline' | 'marginBlock'>>;
|
|
3140
3167
|
declare const InputMessage: {
|
|
3141
3168
|
({ message, messageType, id, className, htmlProps, children, ...rest }: InputMessageProps): react_jsx_runtime.JSX.Element;
|
|
3142
3169
|
displayName: string;
|
|
3143
3170
|
};
|
|
3144
|
-
|
|
3171
|
+
interface RenderInputMessageProps {
|
|
3172
|
+
tip?: string;
|
|
3173
|
+
tipId?: string;
|
|
3174
|
+
errorMessage?: string;
|
|
3175
|
+
errorMessageId?: string;
|
|
3176
|
+
noSpacing?: boolean;
|
|
3177
|
+
}
|
|
3178
|
+
declare const renderInputMessage: ({ tip, tipId, errorMessage, errorMessageId, noSpacing, }: RenderInputMessageProps) => react_jsx_runtime.JSX.Element;
|
|
3145
3179
|
|
|
3146
3180
|
type FormSummaryHeaderProps = ComponentPropsWithRef<'div'>;
|
|
3147
3181
|
declare function FormSummaryHeader({ ...props }: FormSummaryHeaderProps): react_jsx_runtime.JSX.Element;
|
|
@@ -3170,25 +3204,6 @@ declare function FormSummaryEmptyValue(): react_jsx_runtime.JSX.Element;
|
|
|
3170
3204
|
type FormSummaryErrorProps = Omit<InputMessageProps, 'messageType' | 'message'>;
|
|
3171
3205
|
declare function FormSummaryError({ ...props }: FormSummaryErrorProps): react_jsx_runtime.JSX.Element;
|
|
3172
3206
|
|
|
3173
|
-
declare const ICON_SIZES: ["small", "medium", "large", "inherit"];
|
|
3174
|
-
type IconSize = (typeof ICON_SIZES)[number];
|
|
3175
|
-
type IconProps = BaseComponentProps<SVGSVGElement, {
|
|
3176
|
-
/**Ikonet importert fra `@norges-domstoler/dds-components`. */
|
|
3177
|
-
icon: SvgIcon;
|
|
3178
|
-
/**Størrelsen på ikonet.
|
|
3179
|
-
* @default "medium"
|
|
3180
|
-
*/
|
|
3181
|
-
iconSize?: IconSize;
|
|
3182
|
-
/**Fargen på ikonet.
|
|
3183
|
-
* @default "currentcolor"
|
|
3184
|
-
*/
|
|
3185
|
-
color?: TextColor;
|
|
3186
|
-
}, Omit<HTMLAttributes<SVGSVGElement>, 'color'>>;
|
|
3187
|
-
declare function Icon(props: IconProps): react.JSX.Element;
|
|
3188
|
-
declare namespace Icon {
|
|
3189
|
-
var displayName: string;
|
|
3190
|
-
}
|
|
3191
|
-
|
|
3192
3207
|
type GlobalMessagePurpose = 'info' | 'warning' | 'danger';
|
|
3193
3208
|
type GlobalMessageProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
3194
3209
|
/**Meldingen som vises til brukeren. Brukes kun når meldingen er en `string`. */
|
|
@@ -3799,8 +3814,6 @@ type SelectProps<Option = unknown, IsMulti extends boolean = false> = {
|
|
|
3799
3814
|
* @default "medium"
|
|
3800
3815
|
*/
|
|
3801
3816
|
componentSize?: InputSize;
|
|
3802
|
-
/**Ikonet som vises i komponenten. */
|
|
3803
|
-
icon?: SvgIcon;
|
|
3804
3817
|
/**Nedtrekkslisten blir `readonly` og får readOnly styling. */
|
|
3805
3818
|
readOnly?: boolean;
|
|
3806
3819
|
/** CSS klassenavn. */
|
|
@@ -3815,7 +3828,7 @@ type SelectProps<Option = unknown, IsMulti extends boolean = false> = {
|
|
|
3815
3828
|
'data-testid'?: string;
|
|
3816
3829
|
/**Ref til komponenten. */
|
|
3817
3830
|
ref?: SelectForwardRefType<Option, IsMulti>;
|
|
3818
|
-
} & CommonInputProps & Pick<HTMLAttributes<HTMLInputElement>, 'aria-required'> & WrappedReactSelectProps<Option, IsMulti, GroupBase<Option>>;
|
|
3831
|
+
} & CommonInputProps & InputIconProps & Pick<HTMLAttributes<HTMLInputElement>, 'aria-required'> & WrappedReactSelectProps<Option, IsMulti, GroupBase<Option>>;
|
|
3819
3832
|
type SelectForwardRefType<Option, IsMulti extends boolean> = Ref<SelectInstance<Option, IsMulti, GroupBase<Option>>>;
|
|
3820
3833
|
declare function Select<Option = unknown, IsMulti extends boolean = false>({ id, label, componentSize, errorMessage, tip, 'aria-required': ariaRequired, readOnly, options, isMulti, value, icon, defaultValue, width, closeMenuOnSelect, className, style, isDisabled, isClearable, placeholder, menuPortalTarget, customOptionElement, customSingleValueElement, 'data-testid': dataTestId, onKeyDown, openMenuOnClick, ref, instanceId, afterLabelContent, ...rest }: SelectProps<Option, IsMulti>): react_jsx_runtime.JSX.Element;
|
|
3821
3834
|
declare namespace Select {
|
|
@@ -3827,8 +3840,8 @@ type NativeSelectProps = {
|
|
|
3827
3840
|
clearable?: boolean;
|
|
3828
3841
|
/** Implementerer `readOnly` oppførsel etter standard for `<input>` og setter `readOnly` styling. */
|
|
3829
3842
|
readOnly?: InputProps['readOnly'];
|
|
3830
|
-
} & CommonInputProps & Pick<InputProps, 'componentSize'> & ComponentPropsWithRef<'select'>;
|
|
3831
|
-
declare const NativeSelect: ({ ref, id, children, componentSize, label, multiple, readOnly, errorMessage, tip, required, "aria-required": ariaRequired, "aria-describedby": ariaDescribedby, width, className, style, onKeyDown, onMouseDown, clearable, afterLabelContent, onChange, ...rest }: NativeSelectProps) => react_jsx_runtime.JSX.Element;
|
|
3843
|
+
} & CommonInputProps & Pick<InputProps, 'componentSize'> & InputIconProps & ComponentPropsWithRef<'select'>;
|
|
3844
|
+
declare const NativeSelect: ({ ref, id, children, componentSize, label, multiple, readOnly, errorMessage, tip, required, "aria-required": ariaRequired, "aria-describedby": ariaDescribedby, width, className, style, onKeyDown, onMouseDown, clearable, afterLabelContent, onChange, icon, ...rest }: NativeSelectProps) => react_jsx_runtime.JSX.Element;
|
|
3832
3845
|
type NativeSelectPlaceholderProps = ComponentPropsWithRef<'option'>;
|
|
3833
3846
|
declare const NativeSelectPlaceholder: {
|
|
3834
3847
|
({ children, value, ...rest }: NativeSelectPlaceholderProps): react_jsx_runtime.JSX.Element;
|
|
@@ -4195,11 +4208,9 @@ declare const TextArea: {
|
|
|
4195
4208
|
displayName: string;
|
|
4196
4209
|
};
|
|
4197
4210
|
|
|
4198
|
-
type TextInputProps = Omit<InputProps, 'prefix'> & {
|
|
4211
|
+
type TextInputProps = Omit<InputProps, 'prefix'> & InputIconProps & {
|
|
4199
4212
|
/** Spesifiserer om tegntelleren skal vises ved bruk av `maxLength` attributt. */
|
|
4200
4213
|
withCharacterCounter?: boolean;
|
|
4201
|
-
/** Ikonet som vises i komponenten. */
|
|
4202
|
-
icon?: SvgIcon;
|
|
4203
4214
|
/**
|
|
4204
4215
|
* Prefiks som vises før inputfeltet. **OBS!** Prefiks leses ikke av skjermleser og skal derfor ikke brukes som en erstatter for en beskrivende label.
|
|
4205
4216
|
* */
|
package/dist/index.d.ts
CHANGED
|
@@ -693,6 +693,8 @@ interface PrimitiveLayoutProps {
|
|
|
693
693
|
rowGap?: ResponsiveProp<Property.RowGap | SpacingScale>;
|
|
694
694
|
/** CSS `column-gap`. Støtter standardverdier og dds spacing tokens skala, per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
695
695
|
columnGap?: ResponsiveProp<Property.ColumnGap | SpacingScale>;
|
|
696
|
+
/** CSS `word-break`. Støtter verdi per brekkpunkt eller samme for alle skjermstørrelser. */
|
|
697
|
+
wordBreak?: ResponsiveProp<Property.WordBreak>;
|
|
696
698
|
}
|
|
697
699
|
type ResponsiveProps = PrimitiveDisplayProps & PrimitiveLayoutProps;
|
|
698
700
|
type ResponsiveStackProps = Omit<ResponsiveProps, 'display' | 'flexDirection'>;
|
|
@@ -2306,6 +2308,25 @@ declare const Typography: {
|
|
|
2306
2308
|
displayName: string;
|
|
2307
2309
|
};
|
|
2308
2310
|
|
|
2311
|
+
declare const ICON_SIZES: ["small", "medium", "large", "inherit"];
|
|
2312
|
+
type IconSize = (typeof ICON_SIZES)[number];
|
|
2313
|
+
type IconProps = BaseComponentProps<SVGSVGElement, {
|
|
2314
|
+
/**Ikonet importert fra `@norges-domstoler/dds-components`. */
|
|
2315
|
+
icon: SvgIcon;
|
|
2316
|
+
/**Størrelsen på ikonet.
|
|
2317
|
+
* @default "medium"
|
|
2318
|
+
*/
|
|
2319
|
+
iconSize?: IconSize;
|
|
2320
|
+
/**Fargen på ikonet.
|
|
2321
|
+
* @default "currentcolor"
|
|
2322
|
+
*/
|
|
2323
|
+
color?: TextColor;
|
|
2324
|
+
}, Omit<HTMLAttributes<SVGSVGElement>, 'color'>>;
|
|
2325
|
+
declare function Icon(props: IconProps): react.JSX.Element;
|
|
2326
|
+
declare namespace Icon {
|
|
2327
|
+
var displayName: string;
|
|
2328
|
+
}
|
|
2329
|
+
|
|
2309
2330
|
interface CommonInputProps {
|
|
2310
2331
|
/**Ledetekst. */
|
|
2311
2332
|
label?: string;
|
|
@@ -2326,6 +2347,10 @@ type InputProps = CommonInputProps & {
|
|
|
2326
2347
|
*/
|
|
2327
2348
|
componentSize?: InputSize;
|
|
2328
2349
|
} & Omit<ComponentPropsWithRef<'input'>, 'width' | 'height'>;
|
|
2350
|
+
interface InputIconProps {
|
|
2351
|
+
/** Ikonet som vises i komponenten. */
|
|
2352
|
+
icon?: SvgIcon;
|
|
2353
|
+
}
|
|
2329
2354
|
|
|
2330
2355
|
declare const defaultTypographyType: TypographyBodyType;
|
|
2331
2356
|
declare const defaultTypographyTypeClassName: HyphenTypographyType;
|
|
@@ -2726,6 +2751,8 @@ type DateFieldProps<T extends DateValue$1 = CalendarDate> = AriaDateFieldOptions
|
|
|
2726
2751
|
groupProps?: ReturnType<typeof useDatePicker>['groupProps'];
|
|
2727
2752
|
ref?: Ref<HTMLDivElement>;
|
|
2728
2753
|
clearable?: boolean;
|
|
2754
|
+
tipId?: string;
|
|
2755
|
+
errorMessageId?: string;
|
|
2729
2756
|
} & Pick<InputProps, 'componentSize' | 'errorMessage' | 'tip' | 'disabled' | 'style' | 'width' | 'className'>;
|
|
2730
2757
|
|
|
2731
2758
|
interface DatePickerProps extends Omit<AriaDatePickerProps<CalendarDate>, 'granularity'>, Pick<DateFieldProps<CalendarDate>, 'componentSize' | 'tip' | 'style'>, Pick<ResponsiveProps, 'width'> {
|
|
@@ -3136,12 +3163,19 @@ type InputMessageProps = BaseComponentProps<HTMLDivElement, {
|
|
|
3136
3163
|
* @default "error"
|
|
3137
3164
|
*/
|
|
3138
3165
|
messageType: InputMessageType;
|
|
3139
|
-
}
|
|
3166
|
+
} & Pick<ResponsiveProps, 'margin' | 'marginInline' | 'marginBlock'>>;
|
|
3140
3167
|
declare const InputMessage: {
|
|
3141
3168
|
({ message, messageType, id, className, htmlProps, children, ...rest }: InputMessageProps): react_jsx_runtime.JSX.Element;
|
|
3142
3169
|
displayName: string;
|
|
3143
3170
|
};
|
|
3144
|
-
|
|
3171
|
+
interface RenderInputMessageProps {
|
|
3172
|
+
tip?: string;
|
|
3173
|
+
tipId?: string;
|
|
3174
|
+
errorMessage?: string;
|
|
3175
|
+
errorMessageId?: string;
|
|
3176
|
+
noSpacing?: boolean;
|
|
3177
|
+
}
|
|
3178
|
+
declare const renderInputMessage: ({ tip, tipId, errorMessage, errorMessageId, noSpacing, }: RenderInputMessageProps) => react_jsx_runtime.JSX.Element;
|
|
3145
3179
|
|
|
3146
3180
|
type FormSummaryHeaderProps = ComponentPropsWithRef<'div'>;
|
|
3147
3181
|
declare function FormSummaryHeader({ ...props }: FormSummaryHeaderProps): react_jsx_runtime.JSX.Element;
|
|
@@ -3170,25 +3204,6 @@ declare function FormSummaryEmptyValue(): react_jsx_runtime.JSX.Element;
|
|
|
3170
3204
|
type FormSummaryErrorProps = Omit<InputMessageProps, 'messageType' | 'message'>;
|
|
3171
3205
|
declare function FormSummaryError({ ...props }: FormSummaryErrorProps): react_jsx_runtime.JSX.Element;
|
|
3172
3206
|
|
|
3173
|
-
declare const ICON_SIZES: ["small", "medium", "large", "inherit"];
|
|
3174
|
-
type IconSize = (typeof ICON_SIZES)[number];
|
|
3175
|
-
type IconProps = BaseComponentProps<SVGSVGElement, {
|
|
3176
|
-
/**Ikonet importert fra `@norges-domstoler/dds-components`. */
|
|
3177
|
-
icon: SvgIcon;
|
|
3178
|
-
/**Størrelsen på ikonet.
|
|
3179
|
-
* @default "medium"
|
|
3180
|
-
*/
|
|
3181
|
-
iconSize?: IconSize;
|
|
3182
|
-
/**Fargen på ikonet.
|
|
3183
|
-
* @default "currentcolor"
|
|
3184
|
-
*/
|
|
3185
|
-
color?: TextColor;
|
|
3186
|
-
}, Omit<HTMLAttributes<SVGSVGElement>, 'color'>>;
|
|
3187
|
-
declare function Icon(props: IconProps): react.JSX.Element;
|
|
3188
|
-
declare namespace Icon {
|
|
3189
|
-
var displayName: string;
|
|
3190
|
-
}
|
|
3191
|
-
|
|
3192
3207
|
type GlobalMessagePurpose = 'info' | 'warning' | 'danger';
|
|
3193
3208
|
type GlobalMessageProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
3194
3209
|
/**Meldingen som vises til brukeren. Brukes kun når meldingen er en `string`. */
|
|
@@ -3799,8 +3814,6 @@ type SelectProps<Option = unknown, IsMulti extends boolean = false> = {
|
|
|
3799
3814
|
* @default "medium"
|
|
3800
3815
|
*/
|
|
3801
3816
|
componentSize?: InputSize;
|
|
3802
|
-
/**Ikonet som vises i komponenten. */
|
|
3803
|
-
icon?: SvgIcon;
|
|
3804
3817
|
/**Nedtrekkslisten blir `readonly` og får readOnly styling. */
|
|
3805
3818
|
readOnly?: boolean;
|
|
3806
3819
|
/** CSS klassenavn. */
|
|
@@ -3815,7 +3828,7 @@ type SelectProps<Option = unknown, IsMulti extends boolean = false> = {
|
|
|
3815
3828
|
'data-testid'?: string;
|
|
3816
3829
|
/**Ref til komponenten. */
|
|
3817
3830
|
ref?: SelectForwardRefType<Option, IsMulti>;
|
|
3818
|
-
} & CommonInputProps & Pick<HTMLAttributes<HTMLInputElement>, 'aria-required'> & WrappedReactSelectProps<Option, IsMulti, GroupBase<Option>>;
|
|
3831
|
+
} & CommonInputProps & InputIconProps & Pick<HTMLAttributes<HTMLInputElement>, 'aria-required'> & WrappedReactSelectProps<Option, IsMulti, GroupBase<Option>>;
|
|
3819
3832
|
type SelectForwardRefType<Option, IsMulti extends boolean> = Ref<SelectInstance<Option, IsMulti, GroupBase<Option>>>;
|
|
3820
3833
|
declare function Select<Option = unknown, IsMulti extends boolean = false>({ id, label, componentSize, errorMessage, tip, 'aria-required': ariaRequired, readOnly, options, isMulti, value, icon, defaultValue, width, closeMenuOnSelect, className, style, isDisabled, isClearable, placeholder, menuPortalTarget, customOptionElement, customSingleValueElement, 'data-testid': dataTestId, onKeyDown, openMenuOnClick, ref, instanceId, afterLabelContent, ...rest }: SelectProps<Option, IsMulti>): react_jsx_runtime.JSX.Element;
|
|
3821
3834
|
declare namespace Select {
|
|
@@ -3827,8 +3840,8 @@ type NativeSelectProps = {
|
|
|
3827
3840
|
clearable?: boolean;
|
|
3828
3841
|
/** Implementerer `readOnly` oppførsel etter standard for `<input>` og setter `readOnly` styling. */
|
|
3829
3842
|
readOnly?: InputProps['readOnly'];
|
|
3830
|
-
} & CommonInputProps & Pick<InputProps, 'componentSize'> & ComponentPropsWithRef<'select'>;
|
|
3831
|
-
declare const NativeSelect: ({ ref, id, children, componentSize, label, multiple, readOnly, errorMessage, tip, required, "aria-required": ariaRequired, "aria-describedby": ariaDescribedby, width, className, style, onKeyDown, onMouseDown, clearable, afterLabelContent, onChange, ...rest }: NativeSelectProps) => react_jsx_runtime.JSX.Element;
|
|
3843
|
+
} & CommonInputProps & Pick<InputProps, 'componentSize'> & InputIconProps & ComponentPropsWithRef<'select'>;
|
|
3844
|
+
declare const NativeSelect: ({ ref, id, children, componentSize, label, multiple, readOnly, errorMessage, tip, required, "aria-required": ariaRequired, "aria-describedby": ariaDescribedby, width, className, style, onKeyDown, onMouseDown, clearable, afterLabelContent, onChange, icon, ...rest }: NativeSelectProps) => react_jsx_runtime.JSX.Element;
|
|
3832
3845
|
type NativeSelectPlaceholderProps = ComponentPropsWithRef<'option'>;
|
|
3833
3846
|
declare const NativeSelectPlaceholder: {
|
|
3834
3847
|
({ children, value, ...rest }: NativeSelectPlaceholderProps): react_jsx_runtime.JSX.Element;
|
|
@@ -4195,11 +4208,9 @@ declare const TextArea: {
|
|
|
4195
4208
|
displayName: string;
|
|
4196
4209
|
};
|
|
4197
4210
|
|
|
4198
|
-
type TextInputProps = Omit<InputProps, 'prefix'> & {
|
|
4211
|
+
type TextInputProps = Omit<InputProps, 'prefix'> & InputIconProps & {
|
|
4199
4212
|
/** Spesifiserer om tegntelleren skal vises ved bruk av `maxLength` attributt. */
|
|
4200
4213
|
withCharacterCounter?: boolean;
|
|
4201
|
-
/** Ikonet som vises i komponenten. */
|
|
4202
|
-
icon?: SvgIcon;
|
|
4203
4214
|
/**
|
|
4204
4215
|
* Prefiks som vises før inputfeltet. **OBS!** Prefiks leses ikke av skjermleser og skal derfor ikke brukes som en erstatter for en beskrivende label.
|
|
4205
4216
|
* */
|