@norges-domstoler/dds-components 21.17.0 → 21.17.2

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.d.mts CHANGED
@@ -451,7 +451,7 @@ interface CommonComponentProps<THTMLProps extends object, TRef extends Ref<unkno
451
451
  * @template TOtherProps Andre props komponenten skal eksponere til konsumenter.
452
452
  * @template THTMLAttributesProps Standard `HTMLAttributes<T>` men kan overstyres for f.eks knapper hvis man trenger en annen basetype for `htmlProps`.
453
453
  */
454
- type BaseComponentProps<TElement extends Element, TOtherProps extends object = object, THTMLAttributesProps extends HTMLAttributes<TElement> = HTMLAttributes<TElement>> = Omit<THTMLAttributesProps, 'id' | 'className'> & TOtherProps & CommonComponentProps<THTMLAttributesProps, Ref<TElement>>;
454
+ type BaseComponentProps<TElement extends Element, TOtherProps extends object = object, THTMLAttributesProps extends HTMLAttributes<TElement> = HTMLAttributes<TElement>> = Omit<THTMLAttributesProps, 'id' | 'className' | keyof TOtherProps> & TOtherProps & CommonComponentProps<THTMLAttributesProps, Ref<TElement>>;
455
455
  /**
456
456
  * Basetype for polymorfe props som eksponeres til konsumenter av designsystemet.
457
457
  * Lager en intersection-type med props som sendes inn og `id` og `htmlProps`
@@ -462,7 +462,7 @@ type BaseComponentProps<TElement extends Element, TOtherProps extends object = o
462
462
  * @template TOtherProps Andre props komponenten skal eksponere til konsumenter.
463
463
  * @template TComponentProps Standard `ComponentPropsWithoutRef<E>` som kan overstyres hvis man trenger en annen basetype for `htmlProps`, f.eks. for å støtte ofte brukte attributter på roten.
464
464
  */
465
- type PolymorphicBaseComponentProps<E extends ElementType, TOtherProps extends object = object, TComponentProps extends object = ComponentPropsWithoutRef<E>> = Omit<TComponentProps, 'id' | 'className' | 'style' | 'ref'> & TOtherProps & CommonComponentProps<TComponentProps, ComponentPropsWithRef<E>['ref']> & {
465
+ type PolymorphicBaseComponentProps<E extends ElementType, TOtherProps extends object = object, TComponentProps extends object = ComponentPropsWithoutRef<E>> = Omit<TComponentProps, 'id' | 'className' | 'style' | 'ref' | keyof TOtherProps> & TOtherProps & CommonComponentProps<TComponentProps, ComponentPropsWithRef<E>['ref']> & {
466
466
  /**HTML- eller React-element som returneres. */
467
467
  as?: E;
468
468
  /**Inline style. */
@@ -2325,7 +2325,7 @@ type InputProps = CommonInputProps & {
2325
2325
  * @default "medium"
2326
2326
  */
2327
2327
  componentSize?: InputSize;
2328
- } & Omit<ComponentPropsWithRef<'input'>, 'width'>;
2328
+ } & Omit<ComponentPropsWithRef<'input'>, 'width' | 'height'>;
2329
2329
 
2330
2330
  declare const defaultTypographyType: TypographyBodyType;
2331
2331
  declare const defaultTypographyTypeClassName: HyphenTypographyType;
@@ -3695,7 +3695,7 @@ type SearchProps = Pick<InputProps, 'tip' | 'label'> & {
3695
3695
  buttonProps?: SearchButtonProps;
3696
3696
  /**Om søkeikonet skal vises. */
3697
3697
  showIcon?: boolean;
3698
- } & Pick<InputProps, 'width'> & Omit<ComponentPropsWithRef<'input'>, 'width'>;
3698
+ } & Pick<InputProps, 'width'> & Omit<ComponentPropsWithRef<'input'>, 'width' | 'height'>;
3699
3699
  declare const Search$1: {
3700
3700
  ({ componentSize, buttonProps, showIcon, name, label, tip, id, value, width, onChange, className, style, "aria-describedby": ariaDescribedby, ref, ...rest }: SearchProps): react_jsx_runtime.JSX.Element;
3701
3701
  displayName: string;
package/dist/index.d.ts CHANGED
@@ -451,7 +451,7 @@ interface CommonComponentProps<THTMLProps extends object, TRef extends Ref<unkno
451
451
  * @template TOtherProps Andre props komponenten skal eksponere til konsumenter.
452
452
  * @template THTMLAttributesProps Standard `HTMLAttributes<T>` men kan overstyres for f.eks knapper hvis man trenger en annen basetype for `htmlProps`.
453
453
  */
454
- type BaseComponentProps<TElement extends Element, TOtherProps extends object = object, THTMLAttributesProps extends HTMLAttributes<TElement> = HTMLAttributes<TElement>> = Omit<THTMLAttributesProps, 'id' | 'className'> & TOtherProps & CommonComponentProps<THTMLAttributesProps, Ref<TElement>>;
454
+ type BaseComponentProps<TElement extends Element, TOtherProps extends object = object, THTMLAttributesProps extends HTMLAttributes<TElement> = HTMLAttributes<TElement>> = Omit<THTMLAttributesProps, 'id' | 'className' | keyof TOtherProps> & TOtherProps & CommonComponentProps<THTMLAttributesProps, Ref<TElement>>;
455
455
  /**
456
456
  * Basetype for polymorfe props som eksponeres til konsumenter av designsystemet.
457
457
  * Lager en intersection-type med props som sendes inn og `id` og `htmlProps`
@@ -462,7 +462,7 @@ type BaseComponentProps<TElement extends Element, TOtherProps extends object = o
462
462
  * @template TOtherProps Andre props komponenten skal eksponere til konsumenter.
463
463
  * @template TComponentProps Standard `ComponentPropsWithoutRef<E>` som kan overstyres hvis man trenger en annen basetype for `htmlProps`, f.eks. for å støtte ofte brukte attributter på roten.
464
464
  */
465
- type PolymorphicBaseComponentProps<E extends ElementType, TOtherProps extends object = object, TComponentProps extends object = ComponentPropsWithoutRef<E>> = Omit<TComponentProps, 'id' | 'className' | 'style' | 'ref'> & TOtherProps & CommonComponentProps<TComponentProps, ComponentPropsWithRef<E>['ref']> & {
465
+ type PolymorphicBaseComponentProps<E extends ElementType, TOtherProps extends object = object, TComponentProps extends object = ComponentPropsWithoutRef<E>> = Omit<TComponentProps, 'id' | 'className' | 'style' | 'ref' | keyof TOtherProps> & TOtherProps & CommonComponentProps<TComponentProps, ComponentPropsWithRef<E>['ref']> & {
466
466
  /**HTML- eller React-element som returneres. */
467
467
  as?: E;
468
468
  /**Inline style. */
@@ -2325,7 +2325,7 @@ type InputProps = CommonInputProps & {
2325
2325
  * @default "medium"
2326
2326
  */
2327
2327
  componentSize?: InputSize;
2328
- } & Omit<ComponentPropsWithRef<'input'>, 'width'>;
2328
+ } & Omit<ComponentPropsWithRef<'input'>, 'width' | 'height'>;
2329
2329
 
2330
2330
  declare const defaultTypographyType: TypographyBodyType;
2331
2331
  declare const defaultTypographyTypeClassName: HyphenTypographyType;
@@ -3695,7 +3695,7 @@ type SearchProps = Pick<InputProps, 'tip' | 'label'> & {
3695
3695
  buttonProps?: SearchButtonProps;
3696
3696
  /**Om søkeikonet skal vises. */
3697
3697
  showIcon?: boolean;
3698
- } & Pick<InputProps, 'width'> & Omit<ComponentPropsWithRef<'input'>, 'width'>;
3698
+ } & Pick<InputProps, 'width'> & Omit<ComponentPropsWithRef<'input'>, 'width' | 'height'>;
3699
3699
  declare const Search$1: {
3700
3700
  ({ componentSize, buttonProps, showIcon, name, label, tip, id, value, width, onChange, className, style, "aria-describedby": ariaDescribedby, ref, ...rest }: SearchProps): react_jsx_runtime.JSX.Element;
3701
3701
  displayName: string;