@norges-domstoler/dds-components 24.1.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.cjs +97 -77
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +12 -113
- package/dist/index.d.cts +34 -32
- package/dist/index.d.mts +34 -32
- package/dist/index.mjs +97 -77
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
|
|
|
@@ -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
|
*/
|
|
@@ -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
|
*/
|
|
@@ -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
|
*/
|
|
@@ -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
|
*/
|
|
@@ -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
|
*/
|
|
@@ -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-
|
|
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
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
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
|
|
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
|
|
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
|
|
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$
|
|
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$
|
|
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
|
-
}
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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
|
-
}
|
|
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
|
|
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
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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: (
|
|
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'>;
|
|
@@ -15869,23 +15872,23 @@ declare const FooterLogo: ({ children, hideBreakpoint, ...rest }: FooterLogoProp
|
|
|
15869
15872
|
//#endregion
|
|
15870
15873
|
//#region src/components/Footer/FooterList.d.ts
|
|
15871
15874
|
type FooterListProps = ComponentPropsWithRef<'ul'>;
|
|
15872
|
-
declare const FooterList: (
|
|
15875
|
+
declare const FooterList: (props: FooterListProps) => import("react").JSX.Element;
|
|
15873
15876
|
//#endregion
|
|
15874
15877
|
//#region src/components/Footer/FooterSocialsList.d.ts
|
|
15875
15878
|
type FooterSocialsListProps = ComponentPropsWithRef<'ul'>;
|
|
15876
|
-
declare const FooterSocialsList: (
|
|
15879
|
+
declare const FooterSocialsList: (props: FooterSocialsListProps) => import("react").JSX.Element;
|
|
15877
15880
|
//#endregion
|
|
15878
15881
|
//#region src/components/Footer/FooterSocialsGroup.d.ts
|
|
15879
15882
|
type FooterSocialsGroupProps = ComponentPropsWithRef<'div'>;
|
|
15880
|
-
declare const FooterSocialsGroup: (
|
|
15883
|
+
declare const FooterSocialsGroup: (props: FooterSocialsGroupProps) => import("react").JSX.Element;
|
|
15881
15884
|
//#endregion
|
|
15882
15885
|
//#region src/components/Footer/FooterListGroup.d.ts
|
|
15883
15886
|
type FooterListGroupProps = ComponentPropsWithRef<'div'>;
|
|
15884
|
-
declare const FooterListGroup: (
|
|
15887
|
+
declare const FooterListGroup: (props: FooterListGroupProps) => import("react").JSX.Element;
|
|
15885
15888
|
//#endregion
|
|
15886
15889
|
//#region src/components/Footer/FooterLeft.d.ts
|
|
15887
15890
|
type FooterLeftProps = ComponentPropsWithRef<'div'>;
|
|
15888
|
-
declare const FooterLeft: (
|
|
15891
|
+
declare const FooterLeft: (props: FooterLeftProps) => import("react").JSX.Element;
|
|
15889
15892
|
//#endregion
|
|
15890
15893
|
//#region src/components/FormSummary/FormSummary.d.ts
|
|
15891
15894
|
type FormSummaryProps = Pick<PaperProps, 'children' | 'htmlProps' | 'ref' | 'id' | 'style' | 'className' | 'padding' | 'paddingBlock' | 'paddingInline' | 'margin' | 'marginBlock' | 'marginInline' | 'width' | 'minWidth' | 'maxWidth'>;
|
|
@@ -16350,7 +16353,7 @@ type PaginationProps = BaseComponentProps<HTMLElement, {
|
|
|
16350
16353
|
onSelectOptionChange?: (option: PaginationOption | null) => void;
|
|
16351
16354
|
/**Brekkpunkt for små skjermer; den viser færre sideknapper og stacker delkomponentene. */
|
|
16352
16355
|
smallScreenBreakpoint?: Breakpoint;
|
|
16353
|
-
}
|
|
16356
|
+
}>;
|
|
16354
16357
|
declare const Pagination: {
|
|
16355
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;
|
|
16356
16359
|
displayName: string;
|
|
@@ -16553,14 +16556,14 @@ type SearchButtonProps = {
|
|
|
16553
16556
|
} & Pick<ButtonProps, 'loading' | 'loadingTooltip'> & ComponentPropsWithRef<'button'>;
|
|
16554
16557
|
//#endregion
|
|
16555
16558
|
//#region src/components/Search/Search.d.ts
|
|
16556
|
-
type SearchProps = Pick<InputProps, 'tip' | 'label'> & {
|
|
16559
|
+
type SearchProps = Pick<InputProps, 'tip' | 'label' | 'width'> & {
|
|
16557
16560
|
/**Størrelsen på komponenten. */
|
|
16558
16561
|
componentSize?: SearchSize;
|
|
16559
16562
|
/**Props for søkeknappen. */
|
|
16560
16563
|
buttonProps?: SearchButtonProps;
|
|
16561
16564
|
/**Om søkeikonet skal vises. */
|
|
16562
16565
|
showIcon?: boolean;
|
|
16563
|
-
} &
|
|
16566
|
+
} & Omit<ComponentPropsWithRef<'input'>, 'width' | 'height'>;
|
|
16564
16567
|
declare const Search$1: {
|
|
16565
16568
|
({ componentSize, buttonProps, showIcon, name, label, tip, id, value, width, onChange, className, style, "aria-describedby": ariaDescribedby, ref, ...rest }: SearchProps): import("react").JSX.Element;
|
|
16566
16569
|
displayName: string;
|
|
@@ -16689,7 +16692,7 @@ type RadioButtonGroupProps<T extends string | number> = BaseComponentPropsWithCh
|
|
|
16689
16692
|
value?: T | undefined;
|
|
16690
16693
|
/**Default verdi - en `<RadioButton>` med denne verdien blir forhåndsvalgt med uncontrolled state. */
|
|
16691
16694
|
defaultValue?: T | undefined;
|
|
16692
|
-
}
|
|
16695
|
+
}>;
|
|
16693
16696
|
declare const RadioButtonGroup: {
|
|
16694
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;
|
|
16695
16698
|
displayName: string;
|
|
@@ -16739,7 +16742,7 @@ type SpinnerProps = BaseComponentProps<SVGElement, {
|
|
|
16739
16742
|
* @default "Innlasting pågår"
|
|
16740
16743
|
*/
|
|
16741
16744
|
tooltip?: string;
|
|
16742
|
-
}
|
|
16745
|
+
}>;
|
|
16743
16746
|
declare function Spinner(props: SpinnerProps): import("react").JSX.Element;
|
|
16744
16747
|
declare namespace Spinner {
|
|
16745
16748
|
var displayName: string;
|
|
@@ -16918,7 +16921,7 @@ type TabsProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
|
16918
16921
|
tabContentDirection?: Direction;
|
|
16919
16922
|
/** Props for "Legg til fane"-knapp. Støtter native HTML attributter og `width`. */
|
|
16920
16923
|
addTabButtonProps?: Omit<AddTabButtonProps, 'index'>;
|
|
16921
|
-
} & Pick<ResponsiveProps, 'width'
|
|
16924
|
+
} & Pick<ResponsiveProps, 'width'>>;
|
|
16922
16925
|
declare const Tabs: {
|
|
16923
16926
|
({ id, activeTab, onChange, tabContentDirection, size, addTabButtonProps, width, children, className, style, htmlProps, ...rest }: TabsProps): import("react").JSX.Element;
|
|
16924
16927
|
displayName: string;
|
|
@@ -16943,7 +16946,7 @@ type TabProps = BaseComponentPropsWithChildren<HTMLButtonElement, {
|
|
|
16943
16946
|
* @default "1fr"
|
|
16944
16947
|
*/
|
|
16945
16948
|
width?: Properties['width'];
|
|
16946
|
-
} & PickedAttributes
|
|
16949
|
+
} & PickedAttributes>;
|
|
16947
16950
|
declare const Tab: {
|
|
16948
16951
|
({ active, icon, children, focus, setFocus, index, onClick, onKeyDown, id, className, htmlProps, style, width, ref, ...rest }: TabProps): import("react").JSX.Element;
|
|
16949
16952
|
displayName: string;
|
|
@@ -17128,7 +17131,6 @@ declare const ToggleButtonGroup: {
|
|
|
17128
17131
|
type AnchorElement = ReactElement<HTMLAttributes<HTMLElement> & {
|
|
17129
17132
|
ref: Ref<HTMLElement>;
|
|
17130
17133
|
}>;
|
|
17131
|
-
type PickedHTMLAttributes = Pick<HTMLAttributes<HTMLDivElement>, 'style' | 'onMouseLeave' | 'onMouseOver'>;
|
|
17132
17134
|
type TooltipProps = BaseComponentProps<HTMLDivElement, {
|
|
17133
17135
|
/**Innhold i tooltip. */
|
|
17134
17136
|
text: string;
|
|
@@ -17146,7 +17148,7 @@ type TooltipProps = BaseComponentProps<HTMLDivElement, {
|
|
|
17146
17148
|
tooltipId?: string;
|
|
17147
17149
|
/**Om tooltip skal alltid være i DOM, eller bli rendret først når den skal vises. */
|
|
17148
17150
|
keepMounted?: boolean;
|
|
17149
|
-
} &
|
|
17151
|
+
} & Pick<HTMLAttributes<HTMLDivElement>, 'onMouseLeave' | 'onMouseOver'>>;
|
|
17150
17152
|
declare const Tooltip: {
|
|
17151
17153
|
({ text, placement, children, tooltipId, delay, style, onMouseLeave, onMouseOver, keepMounted, id, ref, className, htmlProps, ...rest }: TooltipProps): import("react").JSX.Element;
|
|
17152
17154
|
displayName: string;
|