@norges-domstoler/dds-components 24.0.0 → 24.1.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 CHANGED
@@ -1,8 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly, this file was auto-generated.
3
- */
4
-
5
- /**
3
+ *//**
6
4
  * Do not edit directly, this file was auto-generated.
7
5
  */
8
6
 
@@ -166,7 +164,7 @@
166
164
  --dds-color-surface-notification: #d83737; /* bg on a notification */
167
165
  --dds-color-surface-skeleton: #545c62; /* Used for skeleton */
168
166
  --dds-color-border-default: #77838c; /* Form components, togglebutton, secondary button, checkbox etc */
169
- --dds-color-border-strong: #ffffff; /* Form components, togglebutton, secondary button, checkbox etc */
167
+ --dds-color-border-strong: #ffffff;
170
168
  --dds-color-border-subtle: #545c62; /* Dropdown, tooltip, overflow etc */
171
169
  --dds-color-border-inverse: #acbbc6; /* Border or divider on surface.inverse */
172
170
  --dds-color-border-action-default: #589ac6; /* Used in progress tracker */
@@ -377,6 +375,7 @@
377
375
  --dds-size-height-input-small: 2.187rem; /* Brukes i input og buttons */
378
376
  --dds-size-height-input-xsmall: 1.5625rem; /* Brukes i input og buttons */
379
377
  }
378
+
380
379
  /**
381
380
  * Do not edit directly, this file was auto-generated.
382
381
  */
@@ -541,7 +540,7 @@
541
540
  --dds-color-surface-notification: #d83737; /* bg on a notification */
542
541
  --dds-color-surface-skeleton: #d6dadd; /* Used for skeleton */
543
542
  --dds-color-border-default: #77838c; /* Form components, togglebutton, secondary button, checkbox etc */
544
- --dds-color-border-strong: #0b0d0e; /* Form components, togglebutton, secondary button, checkbox etc */
543
+ --dds-color-border-strong: #0b0d0e;
545
544
  --dds-color-border-subtle: #d6dadd; /* Dropdown, tooltip, overflow etc */
546
545
  --dds-color-border-inverse: #acbbc6; /* Border or divider on surface.inverse */
547
546
  --dds-color-border-action-default: #106ead; /* Used in progress tracker */
@@ -752,6 +751,7 @@
752
751
  --dds-size-height-input-small: 2.187rem; /* Brukes i input og buttons */
753
752
  --dds-size-height-input-xsmall: 1.5625rem; /* Brukes i input og buttons */
754
753
  }
754
+
755
755
  /**
756
756
  * Do not edit directly, this file was auto-generated.
757
757
  */
@@ -916,7 +916,7 @@
916
916
  --dds-color-surface-notification: #d83737; /* bg on a notification */
917
917
  --dds-color-surface-skeleton: #545c62; /* Used for skeleton */
918
918
  --dds-color-border-default: #77838c; /* Form components, togglebutton, secondary button, checkbox etc */
919
- --dds-color-border-strong: #ffffff; /* Form components, togglebutton, secondary button, checkbox etc */
919
+ --dds-color-border-strong: #ffffff;
920
920
  --dds-color-border-subtle: #545c62; /* Dropdown, tooltip, overflow etc */
921
921
  --dds-color-border-inverse: #acbbc6; /* Border or divider on surface.inverse */
922
922
  --dds-color-border-action-default: #589ac6; /* Used in progress tracker */
@@ -1127,6 +1127,7 @@
1127
1127
  --dds-size-height-input-small: 2.5rem; /* Brukes i input og buttons */
1128
1128
  --dds-size-height-input-xsmall: 1.8125rem; /* Brukes i input og buttons */
1129
1129
  }
1130
+
1130
1131
  /**
1131
1132
  * Do not edit directly, this file was auto-generated.
1132
1133
  */
@@ -1291,7 +1292,7 @@
1291
1292
  --dds-color-surface-notification: #d83737; /* bg on a notification */
1292
1293
  --dds-color-surface-skeleton: #d6dadd; /* Used for skeleton */
1293
1294
  --dds-color-border-default: #77838c; /* Form components, togglebutton, secondary button, checkbox etc */
1294
- --dds-color-border-strong: #0b0d0e; /* Form components, togglebutton, secondary button, checkbox etc */
1295
+ --dds-color-border-strong: #0b0d0e;
1295
1296
  --dds-color-border-subtle: #d6dadd; /* Dropdown, tooltip, overflow etc */
1296
1297
  --dds-color-border-inverse: #acbbc6; /* Border or divider on surface.inverse */
1297
1298
  --dds-color-border-action-default: #106ead; /* Used in progress tracker */
@@ -1502,6 +1503,7 @@
1502
1503
  --dds-size-height-input-small: 2.5rem; /* Brukes i input og buttons */
1503
1504
  --dds-size-height-input-xsmall: 1.8125rem; /* Brukes i input og buttons */
1504
1505
  }
1506
+
1505
1507
  /**
1506
1508
  * Do not edit directly, this file was auto-generated.
1507
1509
  */
@@ -1675,7 +1677,7 @@
1675
1677
  --dds-color-border-danger: #ad2c2c; /* Tag.default, error message field */
1676
1678
  --dds-color-border-info: #5197c5; /* Tag.default */
1677
1679
  --dds-color-border-on-action: #1b1a18; /* Used on primary split button */
1678
- --dds-color-border-strong: #ffffff; /* Form components, togglebutton, secondary button, checkbox etc */
1680
+ --dds-color-border-strong: #ffffff;
1679
1681
  --dds-color-text-default: #ffffff; /* default text, heading, body. on surface.hover */
1680
1682
  --dds-color-text-medium: #e7e6e4; /* Label, etc */
1681
1683
  --dds-color-text-subtle: #cfcec9; /* Disabled or less important text */
@@ -1877,6 +1879,7 @@
1877
1879
  --dds-font-body-short-xsmall-letter-spacing: 0.01em;
1878
1880
  --dds-font-body-short-xsmall-paragraph-spacing: 1em;
1879
1881
  }
1882
+
1880
1883
  /**
1881
1884
  * Do not edit directly, this file was auto-generated.
1882
1885
  */
@@ -2050,7 +2053,7 @@
2050
2053
  --dds-color-border-danger: #d83737; /* Tag.default, error message field */
2051
2054
  --dds-color-border-info: #75b9e6; /* Tag.default */
2052
2055
  --dds-color-border-on-action: #ffffff; /* Used on primary split button */
2053
- --dds-color-border-strong: #0b0d0e; /* Form components, togglebutton, secondary button, checkbox etc */
2056
+ --dds-color-border-strong: #0b0d0e;
2054
2057
  --dds-color-text-default: #0b0d0e; /* default text, heading, body. on surface.hover */
2055
2058
  --dds-color-text-medium: #514f48; /* Label, etc */
2056
2059
  --dds-color-text-subtle: #615f56; /* Disabled or less important text */
@@ -4741,11 +4744,6 @@
4741
4744
  box-sizing: border-box;
4742
4745
  z-index: var(--dds-zindex-overflowmenu);
4743
4746
  }
4744
-
4745
- .dds-OverflowMenu-module__list {
4746
- display: flex;
4747
- flex-direction: column;
4748
- }
4749
4747
  :where(.dds-Toggle-module__label) {
4750
4748
  cursor: pointer;
4751
4749
  display: flex;
@@ -4983,8 +4981,7 @@
4983
4981
  border: 0;
4984
4982
  background-color: transparent;
4985
4983
  border-top: 1px solid;
4986
- margin-top: var(--dds-spacing-x1);
4987
- margin-bottom: var(--dds-spacing-x1);
4984
+ margin-block: var(--dds-spacing-x1);
4988
4985
  }
4989
4986
 
4990
4987
  .dds-Divider-module__divider--default {
@@ -5340,8 +5337,6 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
5340
5337
  }
5341
5338
  }
5342
5339
  .dds-DateInput-module__date-segment-container {
5343
- display: flex;
5344
- flex-direction: row;
5345
5340
  font-family: var(--dds-font-family-monospace);
5346
5341
  -webkit-user-select: none;
5347
5342
  user-select: none;
@@ -5401,18 +5396,11 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
5401
5396
 
5402
5397
  .dds-DateInput-module__popover {
5403
5398
  z-index: var(--dds-zindex-popover);
5404
- }
5405
-
5406
- .dds-DateInput-module__modal-close-button-wrapper {
5407
- display: flex;
5408
- justify-content: right;
5409
- }
5410
-
5411
- .dds-DateInput-module__calendar {
5412
- display: flex;
5413
- flex-direction: column;
5414
- gap: var(--dds-spacing-x0-25);
5415
- height: 337px;
5399
+ th,
5400
+ td {
5401
+ height: 40px;
5402
+ width: 40px;
5403
+ }
5416
5404
  }
5417
5405
 
5418
5406
  .dds-DateInput-module__calendar__header__month {
@@ -5424,25 +5412,11 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
5424
5412
  user-select: none;
5425
5413
  }
5426
5414
 
5427
- .dds-DateInput-module__calendar__grid-element {
5428
- width: 40px;
5429
- height: 40px;
5430
- }
5431
-
5432
5415
  .dds-DateInput-module__calendar__th {
5433
5416
  font-weight: normal;
5434
5417
  }
5435
5418
 
5436
- .dds-DateInput-module__calendar__week-number {
5437
- display: flex;
5438
- align-items: center;
5439
- justify-content: center;
5440
- }
5441
-
5442
5419
  .dds-DateInput-module__calendar__cell-button {
5443
- display: flex;
5444
- align-items: center;
5445
- justify-content: center;
5446
5420
  cursor: pointer;
5447
5421
  border: 1px solid;
5448
5422
  border-color: transparent;
@@ -5860,10 +5834,6 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
5860
5834
  }
5861
5835
 
5862
5836
  .dds-DescriptionList-module__desc {
5863
- margin-inline-start: 0;
5864
- align-items: center;
5865
- display: flex;
5866
- gap: var(--dds-spacing-x0-25);
5867
5837
  color: var(--dds-color-text-body);
5868
5838
  }
5869
5839
 
@@ -6420,43 +6390,6 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
6420
6390
  transition: var(--dds-focus-transition);
6421
6391
  }
6422
6392
  }
6423
- .dds-Footer-module__container {
6424
- padding-block-start: var(--dds-spacing-x3);
6425
- padding-block-end: var(--dds-spacing-x6);
6426
-
6427
- @media only screen and (min-width: 960px) {
6428
- padding-block: var(--dds-spacing-x4);
6429
- }
6430
- }
6431
-
6432
- .dds-Footer-module__left {
6433
- display: flex;
6434
- flex-direction: column;
6435
- gap: var(--dds-spacing-x4);
6436
- }
6437
-
6438
- .dds-Footer-module__list {
6439
- display: flex;
6440
- flex-direction: column;
6441
- gap: var(--dds-spacing-x1-5);
6442
- }
6443
-
6444
- .dds-Footer-module__list-group {
6445
- display: flex;
6446
- flex-direction: column;
6447
- gap: var(--dds-spacing-x1-5);
6448
- }
6449
-
6450
- .dds-Footer-module__socials-group {
6451
- display: flex;
6452
- flex-direction: column;
6453
- gap: var(--dds-spacing-x1);
6454
- }
6455
-
6456
- .dds-Footer-module__socials-list {
6457
- display: flex;
6458
- gap: var(--dds-spacing-x1-5);
6459
- }
6460
6393
  .dds-FormSummary-module__dd {
6461
6394
  display: block;
6462
6395
  }
@@ -6476,12 +6409,7 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
6476
6409
  }
6477
6410
  .dds-GlobalMessage-module__container {
6478
6411
  border-bottom: 2px solid;
6479
- display: flex;
6480
- align-items: center;
6481
- justify-content: space-between;
6482
6412
  box-sizing: border-box;
6483
- width: 100%;
6484
- padding: 0 var(--dds-spacing-x1);
6485
6413
  }
6486
6414
 
6487
6415
  .dds-GlobalMessage-module__container--info {
@@ -6511,17 +6439,6 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
6511
6439
  }
6512
6440
  }
6513
6441
 
6514
- .dds-GlobalMessage-module__content {
6515
- display: flex;
6516
- align-items: center;
6517
- padding: var(--dds-spacing-x0-75) var(--dds-spacing-x1-5)
6518
- var(--dds-spacing-x0-75) 0;
6519
- }
6520
-
6521
- .dds-GlobalMessage-module__content--closable {
6522
- padding-right: var(--dds-spacing-x0-75);
6523
- }
6524
-
6525
6442
  .dds-GlobalMessage-module__icon {
6526
6443
  margin-right: var(--dds-spacing-x0-75);
6527
6444
  }
@@ -6918,25 +6835,7 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
6918
6835
  color: var(--dds-color-text-subtle);
6919
6836
  }
6920
6837
  .dds-Popover-module__container {
6921
- position: absolute;
6922
- width: fit-content;
6923
6838
  z-index: var(--dds-zindex-popover);
6924
- padding: var(--dds-spacing-x0-75) var(--dds-spacing-x1)
6925
- var(--dds-spacing-x1-5) var(--dds-spacing-x1);
6926
- }
6927
-
6928
- .dds-Popover-module__content--closable--no-header {
6929
- margin-top: var(--dds-spacing-x2);
6930
- }
6931
-
6932
- .dds-Popover-module__header {
6933
- margin-right: var(--dds-spacing-x2);
6934
- }
6935
-
6936
- .dds-Popover-module__close-button {
6937
- position: absolute;
6938
- top: var(--dds-spacing-x0-25);
6939
- right: var(--dds-spacing-x0-25);
6940
6839
  }
6941
6840
  .dds-ProgressTracker-module__list {
6942
6841
  --dds-progress-tracker-connector-width: 1px;
package/dist/index.d.cts CHANGED
@@ -203,6 +203,7 @@ type CommonComponentProps<THTMLProps extends object, TRef extends Ref<unknown>>
203
203
  /**Ref til komponenten. */
204
204
  ref?: TRef;
205
205
  };
206
+ type HTMLAttributesFor<T extends Element> = T extends HTMLButtonElement ? React.ButtonHTMLAttributes<T> : T extends HTMLAnchorElement ? React.AnchorHTMLAttributes<T> : React.HTMLAttributes<T>;
206
207
  /**
207
208
  * Basetype for props som eksponeres til konsumenter av designsystemet.
208
209
  * - Rot: `id`, `className`, `style`, `TOtherProps`
@@ -212,9 +213,11 @@ type CommonComponentProps<THTMLProps extends object, TRef extends Ref<unknown>>
212
213
  *
213
214
  * @template TElement Element-type som genereres av komponenten.
214
215
  * @template TOtherProps Andre props komponenten skal eksponere til konsumenter.
215
- * @template THTMLAttributesProps Standard `HTMLAttributes<T>` men kan overstyres for f.eks knapper hvis man trenger en annen basetype for `htmlProps`.
216
+ * @template THTMLAttributesProps Standard `HTMLAttributes<T>`;
217
+ * settes til `ButtonHTMLAttributes<T>` hvis TElement er `HTMLButtonElement` og til `AnchorHTMLAttributes<T>` hvis TElement er `HTMLAnchorElement`.
218
+ * Kan overstyres hvis man trenger en annen basetype for `htmlProps`.
216
219
  */
217
- type BaseComponentProps<TElement extends Element, TOtherProps extends object = object, THTMLAttributesProps extends HTMLAttributes<TElement> = HTMLAttributes<TElement>> = TOtherProps & CommonComponentProps<Omit<THTMLAttributesProps, keyof HTMLRootProps | keyof TOtherProps>, Ref<TElement>>;
220
+ type BaseComponentProps<TElement extends Element, TOtherProps extends object = object, THTMLAttributesProps extends HTMLAttributesFor<TElement> = HTMLAttributesFor<TElement>> = TOtherProps & CommonComponentProps<Omit<THTMLAttributesProps, keyof HTMLRootProps | keyof TOtherProps>, Ref<TElement>>;
218
221
  /**
219
222
  * Basetype for polymorfe props som eksponeres til konsumenter av designsystemet.
220
223
  * - Rot: `id`, `className`, `style`, `TOtherProps`
@@ -233,7 +236,7 @@ type PolymorphicBaseComponentProps<E extends ElementType, TOtherProps extends ob
233
236
  /**
234
237
  * Utvidelse av {@link BaseComponentProps} med prop for `children`.
235
238
  */
236
- type BaseComponentPropsWithChildren<T extends Element, TProps extends object = object, THTMLProps extends HTMLAttributes<T> = HTMLAttributes<T>> = BaseComponentProps<T, TProps & {
239
+ type BaseComponentPropsWithChildren<T extends Element, TProps extends object = object, THTMLProps extends HTMLAttributesFor<T> = HTMLAttributesFor<T>> = BaseComponentProps<T, TProps & {
237
240
  /**Barn. */
238
241
  children?: ReactNode;
239
242
  }, THTMLProps>;
@@ -332,7 +335,7 @@ declare const BUTTON_PURPOSES: ["primary", "secondary", "tertiary", "danger"];
332
335
  type ButtonSize = (typeof BUTTON_SIZES)[number];
333
336
  type ButtonPurpose = (typeof BUTTON_PURPOSES)[number];
334
337
  type IconPosition = 'left' | 'right';
335
- type PickedHTMLAttributes$4 = Pick<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'onFocus' | 'onBlur' | 'type' | 'aria-label'>;
338
+ type PickedHTMLAttributes$3 = Pick<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'onFocus' | 'onBlur' | 'type' | 'aria-label'>;
336
339
  type ButtonProps<I extends SvgIcon = SvgIcon, T extends ElementType = 'button'> = PolymorphicBaseComponentProps<T, {
337
340
  /** Størrelsen på knappen.
338
341
  * @default "medium"
@@ -362,7 +365,7 @@ type ButtonProps<I extends SvgIcon = SvgIcon, T extends ElementType = 'button'>
362
365
  iconState?: IconStatesOf<I>;
363
366
  /**Knapp med full bredde. */
364
367
  fullWidth?: boolean;
365
- } & PickedHTMLAttributes$4>;
368
+ } & PickedHTMLAttributes$3>;
366
369
  //#endregion
367
370
  //#region ../../node_modules/.pnpm/csstype@3.2.3/node_modules/csstype/index.d.ts
368
371
  interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
@@ -14963,7 +14966,7 @@ type AnchorTypographyProps = BaseComponentPropsWithChildren<HTMLAnchorElement, {
14963
14966
  href?: string | undefined;
14964
14967
  /**nativ `target`-prop ved `typographyType='a'`. */
14965
14968
  target?: string;
14966
- }, AnchorHTMLAttributes<HTMLAnchorElement>>;
14969
+ }>;
14967
14970
  type LabelTypographyProps = BaseComponentPropsWithChildren<HTMLLabelElement, HTMLAttributes<HTMLLabelElement>>;
14968
14971
  type OtherTypographyProps = BaseComponentPropsWithChildren<HTMLElement, HTMLAttributes<HTMLElement>>;
14969
14972
  type TypographyProps = ({
@@ -15018,7 +15021,7 @@ declare const Heading: {
15018
15021
  };
15019
15022
  //#endregion
15020
15023
  //#region src/components/Typography/Label/Label.d.ts
15021
- type PickedHTMLAttributes$3 = Pick<LabelHTMLAttributes<HTMLLabelElement>, 'htmlFor'>;
15024
+ type PickedHTMLAttributes$2 = Pick<LabelHTMLAttributes<HTMLLabelElement>, 'htmlFor'>;
15022
15025
  interface BaseLabelProps {
15023
15026
  /** Om input knyttet til ledeteksten er påkrevd; påvirker styling. */
15024
15027
  showRequiredStyling?: boolean;
@@ -15027,7 +15030,7 @@ interface BaseLabelProps {
15027
15030
  /**Innhold som står etter ledeteksten (knapp med ekstra info e.l.). */
15028
15031
  afterLabelContent?: ReactNode;
15029
15032
  }
15030
- type LabelProps = BaseComponentPropsWithChildren<HTMLLabelElement, BaseLabelProps & CommonInlineTypographyProps & PickedHTMLAttributes$3>;
15033
+ type LabelProps = BaseComponentPropsWithChildren<HTMLLabelElement, BaseLabelProps & CommonInlineTypographyProps & PickedHTMLAttributes$2>;
15031
15034
  declare const Label: {
15032
15035
  ({ showRequiredStyling, readOnly, id, className, style, htmlProps, children, afterLabelContent, ...rest }: LabelProps): import("react").JSX.Element;
15033
15036
  displayName: string;
@@ -15046,7 +15049,7 @@ declare const Legend: {
15046
15049
  };
15047
15050
  //#endregion
15048
15051
  //#region src/components/Typography/Link/Link.d.ts
15049
- type PickedHTMLAttributes$2 = Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick' | 'href' | 'target'>;
15052
+ type PickedHTMLAttributes$1 = Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick' | 'href' | 'target'>;
15050
15053
  type LinkProps<T extends ElementType = 'a'> = PolymorphicBaseComponentProps<T, {
15051
15054
  /**Om lenken kan få `:visited`-styling. */
15052
15055
  withVisited?: boolean;
@@ -15061,7 +15064,7 @@ type LinkProps<T extends ElementType = 'a'> = PolymorphicBaseComponentProps<T, {
15061
15064
  * Ikon kan legges inn som barn ved siden av teksten med `<Icon>`-komponent.
15062
15065
  * */
15063
15066
  withIconStyling?: boolean;
15064
- } & CommonInlineTypographyProps & PickedHTMLAttributes$2>;
15067
+ } & CommonInlineTypographyProps & PickedHTMLAttributes$1>;
15065
15068
  declare const Link: {
15066
15069
  <T extends ElementType = "a">({ id, className, htmlProps, children, typographyType, withMargins, withVisited, style, color, as: propAs, isAnchor: propIsAnchor, withIconStyling, ...rest }: LinkProps<T>): import("react").JSX.Element;
15067
15070
  displayName: string;
@@ -15089,7 +15092,7 @@ type AccordionHeaderProps = Omit<BaseComponentPropsWithChildren<HTMLButtonElemen
15089
15092
  typographyType?: StaticTypographyType;
15090
15093
  /**Angir om teksten skal være i "bold"-format. */
15091
15094
  bold?: boolean;
15092
- }, ButtonHTMLAttributes<HTMLButtonElement>>, 'id'>;
15095
+ }>, 'id'>;
15093
15096
  declare const AccordionHeader: {
15094
15097
  ({ children, className, style, htmlProps, typographyType, bold, ...rest }: AccordionHeaderProps): import("react").JSX.Element;
15095
15098
  displayName: string;
@@ -15142,7 +15145,7 @@ declare const Breadcrumbs: {
15142
15145
  };
15143
15146
  //#endregion
15144
15147
  //#region src/components/ButtonGroup/ButtonGroup.d.ts
15145
- type PickedHTMLAttributes$1 = Pick<HTMLAttributes<HTMLDivElement>, 'role' | 'aria-label' | 'aria-labelledby'>;
15148
+ type PickedHTMLAttributes = Pick<HTMLAttributes<HTMLDivElement>, 'role' | 'aria-label' | 'aria-labelledby'>;
15146
15149
  type ButtonGroupProps = BaseComponentPropsWithChildren<HTMLDivElement, {
15147
15150
  /**Retning for gruppen.
15148
15151
  * @default "row"
@@ -15160,7 +15163,7 @@ type ButtonGroupProps = BaseComponentPropsWithChildren<HTMLDivElement, {
15160
15163
  * @default "group"
15161
15164
  */
15162
15165
  role?: AriaRole;
15163
- } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, keyof PickedHTMLAttributes$1>>;
15166
+ } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, keyof PickedHTMLAttributes>>;
15164
15167
  declare const ButtonGroup: {
15165
15168
  ({ children, id, className, style, htmlProps, direction, buttonSize, role, ...rest }: ButtonGroupProps): import("react").JSX.Element;
15166
15169
  displayName: string;
@@ -15282,7 +15285,7 @@ type CardExpandableHeaderProps = Omit<BaseComponentPropsWithChildren<HTMLButtonE
15282
15285
  typographyType?: StaticTypographyType;
15283
15286
  /**Angir om teksten skal være i "bold"-format. */
15284
15287
  bold?: boolean;
15285
- }, ButtonHTMLAttributes<HTMLButtonElement>>, 'id'>;
15288
+ }>, 'id'>;
15286
15289
  declare const CardExpandableHeader: {
15287
15290
  ({ children, className, style, htmlProps, padding, typographyType, bold, ...rest }: CardExpandableHeaderProps): import("react").JSX.Element;
15288
15291
  displayName: string;
@@ -15320,7 +15323,7 @@ type CardSelectableGroupProps<T extends string | number> = BaseComponentPropsWit
15320
15323
  value?: T | undefined;
15321
15324
  /**Default verdi - en `<CardSelectable>` med denne verdien blir forhåndsvalgt med uncontrolled state. */
15322
15325
  defaultValue?: T | undefined;
15323
- }, Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>>;
15326
+ }>;
15324
15327
  declare const CardSelectableGroup: {
15325
15328
  <T extends string | number = string>({ name, cardType, errorMessage, disabled, readOnly, value, defaultValue, children, required, onChange, id, tipId, className, style, htmlProps, ...rest }: CardSelectableGroupProps<T>): import("react").JSX.Element;
15326
15329
  displayName: string;
@@ -15566,7 +15569,7 @@ type DividerProps = BaseComponentProps<HTMLHRElement, {
15566
15569
  * @default "default"
15567
15570
  */
15568
15571
  color?: DividerColor;
15569
- }, Omit<HTMLAttributes<HTMLHRElement>, 'color'>>;
15572
+ }>;
15570
15573
  declare const Divider: ({ color, id, className, style, htmlProps, ...rest }: DividerProps) => import("react").JSX.Element;
15571
15574
  //#endregion
15572
15575
  //#region src/components/Drawer/Drawer.d.ts
@@ -15682,7 +15685,7 @@ type FavStarProps = BaseComponentPropsWithChildren<HTMLElement, {
15682
15685
  * @default "medium"
15683
15686
  */
15684
15687
  size?: ComponentSize;
15685
- }, Omit<HTMLAttributes<HTMLElement>, 'onChange'>>;
15688
+ }>;
15686
15689
  declare const FavStar: {
15687
15690
  ({ id, className, style, onChange, checked: checkedProp, defaultChecked, size, htmlProps, ...rest }: FavStarProps): import("react").JSX.Element;
15688
15691
  displayName: string;
@@ -15846,7 +15849,7 @@ declare const FileUploader: {
15846
15849
  //#endregion
15847
15850
  //#region src/components/Footer/Footer.d.ts
15848
15851
  type FooterProps = ComponentPropsWithRef<'footer'>;
15849
- declare const Footer: ({ className, ...rest }: FooterProps) => import("react").JSX.Element;
15852
+ declare const Footer: (props: FooterProps) => import("react").JSX.Element;
15850
15853
  //#endregion
15851
15854
  //#region src/components/Footer/FooterListHeader.d.ts
15852
15855
  type FooterListHeaderProps = Omit<HeadingProps, 'level' | 'withMargins'>;
@@ -15854,31 +15857,38 @@ declare const FooterListHeader: (props: FooterListHeaderProps) => import("react"
15854
15857
  //#endregion
15855
15858
  //#region src/components/Footer/FooterLogo.d.ts
15856
15859
  type HideBreakpoint = 'xs' | 'sm' | 'md';
15857
- type FooterLogoProps = ComponentPropsWithRef<'img'> & {
15860
+ type ImgLogoProps = ComponentPropsWithRef<'img'> & {
15858
15861
  /**Brekkepunkt når logoen skal skjules på mindre skjerm. */
15859
15862
  hideBreakpoint?: HideBreakpoint;
15860
15863
  };
15861
- declare const FooterLogo: ({ hideBreakpoint, ...rest }: FooterLogoProps) => import("react").JSX.Element;
15864
+ interface ChildrenLogoProps {
15865
+ /**Brekkepunkt når logoen skal skjules på mindre skjerm. */
15866
+ hideBreakpoint?: HideBreakpoint;
15867
+ /**Custom logo som ikke er HTML `<img>`. Settes istedenfor `<img>` props. */
15868
+ children: ComponentPropsWithRef<'div'>['children'];
15869
+ }
15870
+ type FooterLogoProps = ImgLogoProps | ChildrenLogoProps;
15871
+ declare const FooterLogo: ({ children, hideBreakpoint, ...rest }: FooterLogoProps) => import("react").JSX.Element;
15862
15872
  //#endregion
15863
15873
  //#region src/components/Footer/FooterList.d.ts
15864
15874
  type FooterListProps = ComponentPropsWithRef<'ul'>;
15865
- declare const FooterList: ({ className, ...rest }: FooterListProps) => import("react").JSX.Element;
15875
+ declare const FooterList: (props: FooterListProps) => import("react").JSX.Element;
15866
15876
  //#endregion
15867
15877
  //#region src/components/Footer/FooterSocialsList.d.ts
15868
15878
  type FooterSocialsListProps = ComponentPropsWithRef<'ul'>;
15869
- declare const FooterSocialsList: ({ className, ...rest }: FooterSocialsListProps) => import("react").JSX.Element;
15879
+ declare const FooterSocialsList: (props: FooterSocialsListProps) => import("react").JSX.Element;
15870
15880
  //#endregion
15871
15881
  //#region src/components/Footer/FooterSocialsGroup.d.ts
15872
15882
  type FooterSocialsGroupProps = ComponentPropsWithRef<'div'>;
15873
- declare const FooterSocialsGroup: ({ className, ...rest }: FooterSocialsGroupProps) => import("react").JSX.Element;
15883
+ declare const FooterSocialsGroup: (props: FooterSocialsGroupProps) => import("react").JSX.Element;
15874
15884
  //#endregion
15875
15885
  //#region src/components/Footer/FooterListGroup.d.ts
15876
15886
  type FooterListGroupProps = ComponentPropsWithRef<'div'>;
15877
- declare const FooterListGroup: ({ className, ...rest }: FooterListGroupProps) => import("react").JSX.Element;
15887
+ declare const FooterListGroup: (props: FooterListGroupProps) => import("react").JSX.Element;
15878
15888
  //#endregion
15879
15889
  //#region src/components/Footer/FooterLeft.d.ts
15880
15890
  type FooterLeftProps = ComponentPropsWithRef<'div'>;
15881
- declare const FooterLeft: ({ className, ...rest }: FooterLeftProps) => import("react").JSX.Element;
15891
+ declare const FooterLeft: (props: FooterLeftProps) => import("react").JSX.Element;
15882
15892
  //#endregion
15883
15893
  //#region src/components/FormSummary/FormSummary.d.ts
15884
15894
  type FormSummaryProps = Pick<PaperProps, 'children' | 'htmlProps' | 'ref' | 'id' | 'style' | 'className' | 'padding' | 'paddingBlock' | 'paddingInline' | 'margin' | 'marginBlock' | 'marginInline' | 'width' | 'minWidth' | 'maxWidth'>;
@@ -16343,7 +16353,7 @@ type PaginationProps = BaseComponentProps<HTMLElement, {
16343
16353
  onSelectOptionChange?: (option: PaginationOption | null) => void;
16344
16354
  /**Brekkpunkt for små skjermer; den viser færre sideknapper og stacker delkomponentene. */
16345
16355
  smallScreenBreakpoint?: Breakpoint;
16346
- }, Omit<HTMLAttributes<HTMLElement>, 'onChange'>>;
16356
+ }>;
16347
16357
  declare const Pagination: {
16348
16358
  ({ itemsAmount, defaultItemsPerPage, defaultActivePage, activePage: activePageProp, withPagination, withCounter, withSelect, selectOptions, smallScreenBreakpoint, onChange, onSelectOptionChange, id, className, style, htmlProps, ref, ...rest }: PaginationProps): import("react").JSX.Element | null;
16349
16359
  displayName: string;
@@ -16546,14 +16556,14 @@ type SearchButtonProps = {
16546
16556
  } & Pick<ButtonProps, 'loading' | 'loadingTooltip'> & ComponentPropsWithRef<'button'>;
16547
16557
  //#endregion
16548
16558
  //#region src/components/Search/Search.d.ts
16549
- type SearchProps = Pick<InputProps, 'tip' | 'label'> & {
16559
+ type SearchProps = Pick<InputProps, 'tip' | 'label' | 'width'> & {
16550
16560
  /**Størrelsen på komponenten. */
16551
16561
  componentSize?: SearchSize;
16552
16562
  /**Props for søkeknappen. */
16553
16563
  buttonProps?: SearchButtonProps;
16554
16564
  /**Om søkeikonet skal vises. */
16555
16565
  showIcon?: boolean;
16556
- } & Pick<InputProps, 'width'> & Omit<ComponentPropsWithRef<'input'>, 'width' | 'height'>;
16566
+ } & Omit<ComponentPropsWithRef<'input'>, 'width' | 'height'>;
16557
16567
  declare const Search$1: {
16558
16568
  ({ componentSize, buttonProps, showIcon, name, label, tip, id, value, width, onChange, className, style, "aria-describedby": ariaDescribedby, ref, ...rest }: SearchProps): import("react").JSX.Element;
16559
16569
  displayName: string;
@@ -16682,7 +16692,7 @@ type RadioButtonGroupProps<T extends string | number> = BaseComponentPropsWithCh
16682
16692
  value?: T | undefined;
16683
16693
  /**Default verdi - en `<RadioButton>` med denne verdien blir forhåndsvalgt med uncontrolled state. */
16684
16694
  defaultValue?: T | undefined;
16685
- }, Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>>;
16695
+ }>;
16686
16696
  declare const RadioButtonGroup: {
16687
16697
  <T extends string | number = string>({ name, label, groupId, errorMessage, tip, disabled, readOnly, direction, value, defaultValue, children, required, onChange, id, className, style, htmlProps, ...rest }: RadioButtonGroupProps<T>): import("react").JSX.Element;
16688
16698
  displayName: string;
@@ -16732,7 +16742,7 @@ type SpinnerProps = BaseComponentProps<SVGElement, {
16732
16742
  * @default "Innlasting pågår"
16733
16743
  */
16734
16744
  tooltip?: string;
16735
- }, Omit<HTMLAttributes<SVGSVGElement>, 'color'>>;
16745
+ }>;
16736
16746
  declare function Spinner(props: SpinnerProps): import("react").JSX.Element;
16737
16747
  declare namespace Spinner {
16738
16748
  var displayName: string;
@@ -16911,7 +16921,7 @@ type TabsProps = BaseComponentPropsWithChildren<HTMLDivElement, {
16911
16921
  tabContentDirection?: Direction;
16912
16922
  /** Props for "Legg til fane"-knapp. Støtter native HTML attributter og `width`. */
16913
16923
  addTabButtonProps?: Omit<AddTabButtonProps, 'index'>;
16914
- } & Pick<ResponsiveProps, 'width'>, Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>>;
16924
+ } & Pick<ResponsiveProps, 'width'>>;
16915
16925
  declare const Tabs: {
16916
16926
  ({ id, activeTab, onChange, tabContentDirection, size, addTabButtonProps, width, children, className, style, htmlProps, ...rest }: TabsProps): import("react").JSX.Element;
16917
16927
  displayName: string;
@@ -16936,7 +16946,7 @@ type TabProps = BaseComponentPropsWithChildren<HTMLButtonElement, {
16936
16946
  * @default "1fr"
16937
16947
  */
16938
16948
  width?: Properties['width'];
16939
- } & PickedAttributes, Omit<ButtonHTMLAttributes<HTMLButtonElement>, keyof PickedAttributes>>;
16949
+ } & PickedAttributes>;
16940
16950
  declare const Tab: {
16941
16951
  ({ active, icon, children, focus, setFocus, index, onClick, onKeyDown, id, className, htmlProps, style, width, ref, ...rest }: TabProps): import("react").JSX.Element;
16942
16952
  displayName: string;
@@ -17121,7 +17131,6 @@ declare const ToggleButtonGroup: {
17121
17131
  type AnchorElement = ReactElement<HTMLAttributes<HTMLElement> & {
17122
17132
  ref: Ref<HTMLElement>;
17123
17133
  }>;
17124
- type PickedHTMLAttributes = Pick<HTMLAttributes<HTMLDivElement>, 'style' | 'onMouseLeave' | 'onMouseOver'>;
17125
17134
  type TooltipProps = BaseComponentProps<HTMLDivElement, {
17126
17135
  /**Innhold i tooltip. */
17127
17136
  text: string;
@@ -17139,7 +17148,7 @@ type TooltipProps = BaseComponentProps<HTMLDivElement, {
17139
17148
  tooltipId?: string;
17140
17149
  /**Om tooltip skal alltid være i DOM, eller bli rendret først når den skal vises. */
17141
17150
  keepMounted?: boolean;
17142
- } & PickedHTMLAttributes, Omit<HTMLAttributes<HTMLDivElement>, 'children' | keyof PickedHTMLAttributes>>;
17151
+ } & Pick<HTMLAttributes<HTMLDivElement>, 'onMouseLeave' | 'onMouseOver'>>;
17143
17152
  declare const Tooltip: {
17144
17153
  ({ text, placement, children, tooltipId, delay, style, onMouseLeave, onMouseOver, keepMounted, id, ref, className, htmlProps, ...rest }: TooltipProps): import("react").JSX.Element;
17145
17154
  displayName: string;