@norges-domstoler/dds-components 13.10.0 → 13.10.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/README.md +0 -17
- package/dist/index.d.mts +64 -60
- package/dist/index.d.ts +64 -60
- package/dist/index.js +695 -548
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +695 -548
- package/dist/index.mjs.map +1 -1
- package/dist/styles/fontStyles.css +26 -9
- package/package.json +13 -28
package/README.md
CHANGED
|
@@ -89,23 +89,6 @@ Tilgjengelige komponenter:
|
|
|
89
89
|
- Typography
|
|
90
90
|
- VisuallyHidden
|
|
91
91
|
|
|
92
|
-
## ⏫ Release av ny versjon
|
|
93
|
-
|
|
94
|
-
Det brukes en egen workflow for release av ny versjon av `@norges-domstoler/dds-components` som kjører på publisering av ny github release. Her brukes `npm publish` for å publisere en ny versjon av pakken til npm sitt pakkeregister, hvor det nye versjonsnummeret leses fra `package.json`. For å lage en ny release gjøres følgende:
|
|
95
|
-
|
|
96
|
-
1. Versjonsnummeret i `package.json` må oppdateres manuelt med en egen commit i forkant av publisering av ny github release.
|
|
97
|
-
|
|
98
|
-
2. Lag en ny release på github med _release tag = versjonsnummer_ for best mulig oversikt, og legg ved en passende beskrivelse av hva som er nytt i denne versjonen. Publiser så releasen når alt er klart.
|
|
99
|
-
Man kan også lage en Draft-release i forkant, og publisere denne releasen når alt som skal være med er merget inn i main.
|
|
100
|
-
|
|
101
|
-
For versjonering brukes [_semantisk versjonering_](https://semver.org/) for å holde ting organisert og for å enkelt kommunisere utviklingsløpet til pakken.
|
|
102
|
-
|
|
103
|
-
### Pre-release versjoner
|
|
104
|
-
|
|
105
|
-
Hvis man ønsker å publisere en pre-release kan man følge samme flyt som vanlig release, men markere releasen som "pre-release" på Github. Da vil det publiseres en ny versjon til `next`-taggen på NPM istedenfor `latest` som i normal flyt. Pre-releases kan brukes for å publisere innhold som er ment til å være med i neste versjon, men som kan testes av konsumenter før neste release er klar.
|
|
106
|
-
|
|
107
|
-
Versjonsnummerering for pre-releases skal følge `-beta.x`, eksempelvis `5.0.0-beta.1` osv.
|
|
108
|
-
|
|
109
92
|
## ⌨️ For bidragsytere
|
|
110
93
|
|
|
111
94
|
Sjekk ut [guiden for bidragsytere](https://design.domstol.no/987b33f71/p/34c962-bidra/b/3611d5).
|
package/dist/index.d.mts
CHANGED
|
@@ -20,10 +20,10 @@ import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
|
20
20
|
|
|
21
21
|
type EmbeteType = 'jordskifterett' | 'tingrett' | 'lagmannsrett' | 'høyesterett';
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
interface OverflowMenuItemBase {
|
|
24
24
|
title: string;
|
|
25
25
|
icon?: SvgIcon;
|
|
26
|
-
}
|
|
26
|
+
}
|
|
27
27
|
type OverflowMenuButtonItem = OverflowMenuItemBase & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
28
28
|
type OverflowMenuLinkItem = OverflowMenuItemBase & AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
29
29
|
type OverflowMenuContextItem = OverflowMenuButtonItem | OverflowMenuLinkItem;
|
|
@@ -53,9 +53,9 @@ type OverflowMenuProps = BaseComponentProps<HTMLDivElement, {
|
|
|
53
53
|
offset?: number;
|
|
54
54
|
}>;
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
isOpen: boolean;
|
|
58
|
-
}
|
|
56
|
+
interface ContainerProps {
|
|
57
|
+
$isOpen: boolean;
|
|
58
|
+
}
|
|
59
59
|
declare const Container: styled_components.IStyledComponent<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContainerProps>>;
|
|
60
60
|
declare const OverflowMenuList: styled_components.IStyledComponent<"web", {
|
|
61
61
|
ref?: react.LegacyRef<HTMLUListElement> | undefined;
|
|
@@ -67,7 +67,7 @@ declare const OverflowMenuList: styled_components.IStyledComponent<"web", {
|
|
|
67
67
|
accessKey?: string | undefined;
|
|
68
68
|
autoFocus?: boolean | undefined;
|
|
69
69
|
className?: string | undefined;
|
|
70
|
-
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
70
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
71
71
|
contextMenu?: string | undefined;
|
|
72
72
|
dir?: string | undefined;
|
|
73
73
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -346,7 +346,7 @@ declare const OverflowMenu: react.ForwardRefExoticComponent<Pick<react.HTMLAttri
|
|
|
346
346
|
htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
|
|
347
347
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
348
348
|
|
|
349
|
-
|
|
349
|
+
interface OverflowMenuGroupProps {
|
|
350
350
|
/**Ekstra logikk som kjøres når `<OverflowMenu />` åpnes og lukkes. */
|
|
351
351
|
onToggle?: () => void;
|
|
352
352
|
/**Ekstra logikk som kjøres når `<OverflowMenu />` åpnes. */
|
|
@@ -357,24 +357,24 @@ type OverflowMenuGroupProps = {
|
|
|
357
357
|
children: ReactNode;
|
|
358
358
|
/**Custom id for `<OverflowMenu />`. */
|
|
359
359
|
overflowMenuId?: string;
|
|
360
|
-
}
|
|
360
|
+
}
|
|
361
361
|
declare const OverflowMenuGroup: {
|
|
362
362
|
({ children, onClose, onToggle, onOpen, overflowMenuId, }: OverflowMenuGroupProps): react_jsx_runtime.JSX.Element;
|
|
363
363
|
displayName: string;
|
|
364
364
|
};
|
|
365
365
|
|
|
366
|
-
|
|
366
|
+
interface User {
|
|
367
367
|
/**Brukerens fulle navn (for- og etternavn). */
|
|
368
368
|
name: string;
|
|
369
369
|
/**Det aktive embetet til brukeren. */
|
|
370
370
|
embete: Embete;
|
|
371
|
-
}
|
|
372
|
-
|
|
371
|
+
}
|
|
372
|
+
interface Embete {
|
|
373
373
|
/**Navnet på embetet. */
|
|
374
374
|
name: string;
|
|
375
375
|
/**Hvilken instans embetet er. */
|
|
376
376
|
type: EmbeteType;
|
|
377
|
-
}
|
|
377
|
+
}
|
|
378
378
|
|
|
379
379
|
type AppShellProps = PropsWithChildren<{
|
|
380
380
|
/**
|
|
@@ -396,7 +396,7 @@ type AppShellProps = PropsWithChildren<{
|
|
|
396
396
|
*/
|
|
397
397
|
environment?: Environment;
|
|
398
398
|
}>;
|
|
399
|
-
|
|
399
|
+
interface AppShellNavigationProps {
|
|
400
400
|
/**
|
|
401
401
|
* Interne lenker i navigasjonen.
|
|
402
402
|
*/
|
|
@@ -405,7 +405,7 @@ type AppShellNavigationProps = {
|
|
|
405
405
|
* Eksterne lenker i navigasjonen.
|
|
406
406
|
*/
|
|
407
407
|
external?: ReactElement[];
|
|
408
|
-
}
|
|
408
|
+
}
|
|
409
409
|
declare const AppShell$1: {
|
|
410
410
|
({ children, version, navigation: { internal, external }, user, userMenuItems, environment, }: AppShellProps): react_jsx_runtime.JSX.Element;
|
|
411
411
|
displayName: string;
|
|
@@ -640,17 +640,17 @@ type TextInputProps = InputProps & {
|
|
|
640
640
|
* for en beskrivende label. */
|
|
641
641
|
suffix?: string;
|
|
642
642
|
};
|
|
643
|
-
|
|
643
|
+
interface TextAffixProps {
|
|
644
644
|
readOnly?: boolean;
|
|
645
|
-
}
|
|
645
|
+
}
|
|
646
646
|
|
|
647
|
-
|
|
647
|
+
interface SelectOption<TValue = unknown> {
|
|
648
648
|
label: string | number;
|
|
649
649
|
value: TValue;
|
|
650
|
-
}
|
|
650
|
+
}
|
|
651
651
|
declare const createSelectOptions: <TValue extends string | number>(...args: TValue[]) => SelectOption<TValue>[];
|
|
652
|
-
type WrappedReactSelectProps<TOption extends
|
|
653
|
-
type SelectProps<TOption extends
|
|
652
|
+
type WrappedReactSelectProps<TOption extends SelectOption<TValue>, IsMulti extends boolean, Group extends GroupBase<TOption>, TValue = unknown> = WithRequiredIf<TOption extends SelectOption ? false : true, Props<TOption, IsMulti, Group>, 'getOptionLabel' | 'getOptionValue'>;
|
|
653
|
+
type SelectProps<TOption extends SelectOption<TValue>, IsMulti extends boolean, TValue = unknown> = {
|
|
654
654
|
/**Ledetekst for nedtrekkslisten. */
|
|
655
655
|
label?: string;
|
|
656
656
|
/**Størrelsen på komponenten. */
|
|
@@ -673,7 +673,7 @@ type SelectProps<TOption extends Record<string, unknown>, IsMulti extends boolea
|
|
|
673
673
|
customSingleValueElement?: (props: SingleValueProps<TOption, IsMulti, GroupBase<TOption>>) => JSX.Element;
|
|
674
674
|
} & Pick<HTMLAttributes<HTMLInputElement>, 'aria-required'> & WrappedReactSelectProps<TOption, IsMulti, GroupBase<TOption>>;
|
|
675
675
|
type ForwardRefType<TOption, IsMulti extends boolean> = react__default.ForwardedRef<SelectInstance<TOption, IsMulti, GroupBase<TOption>>>;
|
|
676
|
-
declare const Select: <TOption extends
|
|
676
|
+
declare const Select: <TOption extends SelectOption<TValue>, IsMulti extends boolean = false, TValue = unknown>(props: SelectProps<TOption, IsMulti, unknown>, ref: ForwardRefType<TOption, IsMulti>) => react_jsx_runtime.JSX.Element;
|
|
677
677
|
|
|
678
678
|
type GlobalMessagePurpose = 'info' | 'warning' | 'danger';
|
|
679
679
|
type GlobalMessageProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
@@ -756,19 +756,19 @@ declare const Search$1: react.ForwardRefExoticComponent<Pick<InputProps, "label"
|
|
|
756
756
|
buttonProps?: ButtonProps | undefined;
|
|
757
757
|
} & InputHTMLAttributes<HTMLInputElement> & react.RefAttributes<HTMLInputElement>>;
|
|
758
758
|
|
|
759
|
-
|
|
759
|
+
interface WeightedValue {
|
|
760
760
|
text: string;
|
|
761
761
|
relevance: number;
|
|
762
|
-
}
|
|
763
|
-
|
|
762
|
+
}
|
|
763
|
+
interface WeightedSearchData {
|
|
764
764
|
array: WeightedValue[];
|
|
765
765
|
sortFunction?: (a: WeightedValue, b: WeightedValue) => number;
|
|
766
|
-
}
|
|
767
|
-
|
|
766
|
+
}
|
|
767
|
+
interface SearchData {
|
|
768
768
|
array: string[];
|
|
769
769
|
sortFunction?: (a: string, b: string) => number;
|
|
770
|
-
}
|
|
771
|
-
|
|
770
|
+
}
|
|
771
|
+
interface SearchAutocompleteWrapperProps {
|
|
772
772
|
/**Array med data som kan søkes på og eventuelt tilhørende sorteringsfunksjon. Array kan bestå av elementer av typen `string` eller objekter med vekt og tekst.*/
|
|
773
773
|
data?: SearchData | WeightedSearchData;
|
|
774
774
|
/** Ekstra callback ved `onChange` i `<Search>`. */
|
|
@@ -783,7 +783,7 @@ type SearchAutocompleteWrapperProps = {
|
|
|
783
783
|
children?: ReactNode;
|
|
784
784
|
/**Initielle `value` i `<Search>`. */
|
|
785
785
|
value?: string;
|
|
786
|
-
}
|
|
786
|
+
}
|
|
787
787
|
declare const SearchAutocompleteWrapper: {
|
|
788
788
|
(props: SearchAutocompleteWrapperProps): react_jsx_runtime.JSX.Element;
|
|
789
789
|
displayName: string;
|
|
@@ -900,9 +900,9 @@ declare const CollapsibleRow: react.ForwardRefExoticComponent<{
|
|
|
900
900
|
|
|
901
901
|
type TableCellType = 'data' | 'head';
|
|
902
902
|
type TableCellLayout = 'left' | 'right' | 'center' | 'text and icon';
|
|
903
|
-
|
|
903
|
+
interface CollapsibleProps {
|
|
904
904
|
isCollapsibleChild?: boolean;
|
|
905
|
-
}
|
|
905
|
+
}
|
|
906
906
|
type TableCellProps = {
|
|
907
907
|
/**Type celle. Returnerer enten `<td>` eller `<th>`. */
|
|
908
908
|
type?: TableCellType;
|
|
@@ -956,12 +956,16 @@ type BreadcrumbProps = HTMLAttributes<HTMLSpanElement> | AnchorHTMLAttributes<HT
|
|
|
956
956
|
declare const Breadcrumb: react.ForwardRefExoticComponent<BreadcrumbProps & react.RefAttributes<HTMLElement>>;
|
|
957
957
|
|
|
958
958
|
type BreadcrumbsProps = BaseComponentPropsWithChildren<HTMLElement>;
|
|
959
|
-
declare const Breadcrumbs: react.ForwardRefExoticComponent<
|
|
959
|
+
declare const Breadcrumbs: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTMLElement>, "className" | "id"> & object & {
|
|
960
|
+
children?: react.ReactNode;
|
|
961
|
+
} & {
|
|
962
|
+
htmlProps?: react.HTMLAttributes<HTMLElement> | undefined;
|
|
963
|
+
} & react.RefAttributes<HTMLElement>>;
|
|
960
964
|
|
|
961
|
-
|
|
965
|
+
interface PaginationOption {
|
|
962
966
|
label: string;
|
|
963
967
|
value: number;
|
|
964
|
-
}
|
|
968
|
+
}
|
|
965
969
|
type PaginationProps = BaseComponentProps<HTMLElement, {
|
|
966
970
|
/**Totalt antall elementer å paginere. */
|
|
967
971
|
itemsAmount: number;
|
|
@@ -1104,7 +1108,7 @@ declare const DescriptionListGroup: react.ForwardRefExoticComponent<Pick<react.H
|
|
|
1104
1108
|
|
|
1105
1109
|
type SpinnerProps = BaseComponentProps<SVGElement, {
|
|
1106
1110
|
/**Farge på spinneren. */
|
|
1107
|
-
color?: TextColor | string;
|
|
1111
|
+
color?: TextColor | (string & NonNullable<unknown>);
|
|
1108
1112
|
/**Størrelse; Setter høyde og bredde på spinneren. */
|
|
1109
1113
|
size?: Property.Width<string>;
|
|
1110
1114
|
/**Tekst som vises ved hover. */
|
|
@@ -1224,10 +1228,10 @@ type ContextMenuElementProps = {
|
|
|
1224
1228
|
icon?: SvgIcon;
|
|
1225
1229
|
onClick?: () => void;
|
|
1226
1230
|
} & (AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>);
|
|
1227
|
-
|
|
1231
|
+
interface InternaHeaderUserProps {
|
|
1228
1232
|
name: string;
|
|
1229
1233
|
href?: string;
|
|
1230
|
-
}
|
|
1234
|
+
}
|
|
1231
1235
|
type InternalHeaderProps = BaseComponentProps<HTMLDivElement, {
|
|
1232
1236
|
/**Navn på applikasjonen. */
|
|
1233
1237
|
applicationName?: string;
|
|
@@ -1361,11 +1365,11 @@ declare const ModalActions: react.ForwardRefExoticComponent<ModalActionsProps &
|
|
|
1361
1365
|
|
|
1362
1366
|
type DrawerSize = 'small' | 'medium' | 'large';
|
|
1363
1367
|
type DrawerPlacement = 'left' | 'right';
|
|
1364
|
-
|
|
1368
|
+
interface WidthProps {
|
|
1365
1369
|
minWidth?: Property.MinWidth<string>;
|
|
1366
1370
|
maxWidth?: Property.MaxWidth<string>;
|
|
1367
1371
|
width?: Property.Width<string>;
|
|
1368
|
-
}
|
|
1372
|
+
}
|
|
1369
1373
|
type DrawerProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
1370
1374
|
/**Størrelsen på `<Drawer />`. */
|
|
1371
1375
|
size?: DrawerSize;
|
|
@@ -1407,7 +1411,7 @@ declare const Drawer: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<
|
|
|
1407
1411
|
htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
|
|
1408
1412
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1409
1413
|
|
|
1410
|
-
|
|
1414
|
+
interface DrawerGroupProps {
|
|
1411
1415
|
/**Barna til komponenten. */
|
|
1412
1416
|
children: ReactNode;
|
|
1413
1417
|
/**`id` til `<Drawer />`. */
|
|
@@ -1416,20 +1420,20 @@ type DrawerGroupProps = {
|
|
|
1416
1420
|
onOpen?: () => void;
|
|
1417
1421
|
/**Ekstra logikk som kjøres når `<Drawer />` lukkes. */
|
|
1418
1422
|
onClose?: () => void;
|
|
1419
|
-
}
|
|
1423
|
+
}
|
|
1420
1424
|
declare const DrawerGroup: {
|
|
1421
1425
|
({ children, drawerId, onOpen, onClose, }: DrawerGroupProps): react_jsx_runtime.JSX.Element;
|
|
1422
1426
|
displayName: string;
|
|
1423
1427
|
};
|
|
1424
1428
|
|
|
1425
|
-
|
|
1429
|
+
interface PopoverSizeProps {
|
|
1426
1430
|
width?: Property.Width<string>;
|
|
1427
1431
|
height?: Property.Height<string>;
|
|
1428
1432
|
minWidth?: Property.MinWidth<string>;
|
|
1429
1433
|
minHeight?: Property.MinHeight<string>;
|
|
1430
1434
|
maxWidth?: Property.MaxWidth<string>;
|
|
1431
1435
|
maxHeight?: Property.MaxHeight<string>;
|
|
1432
|
-
}
|
|
1436
|
+
}
|
|
1433
1437
|
type PopoverProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
1434
1438
|
/**Tittel. */
|
|
1435
1439
|
title?: string | ReactNode;
|
|
@@ -1479,7 +1483,7 @@ declare const Popover: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes
|
|
|
1479
1483
|
htmlProps?: react.HTMLAttributes<HTMLDivElement> | undefined;
|
|
1480
1484
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1481
1485
|
|
|
1482
|
-
|
|
1486
|
+
interface PopoverGroupProps {
|
|
1483
1487
|
/**Callback når det trykkes på lukkeknappen. */
|
|
1484
1488
|
onCloseButtonClick?: () => void;
|
|
1485
1489
|
/** Callback når det trykkes på anchor-elementet (trigger-elementet). */
|
|
@@ -1490,7 +1494,7 @@ type PopoverGroupProps = {
|
|
|
1490
1494
|
popoverId?: string;
|
|
1491
1495
|
/** Barna til wrapperen: anchor-element som det første og `<Popover />` so det adnre. */
|
|
1492
1496
|
children: ReactNode;
|
|
1493
|
-
}
|
|
1497
|
+
}
|
|
1494
1498
|
declare const PopoverGroup: {
|
|
1495
1499
|
({ isOpen, onCloseButtonClick, onTriggerClick, children, popoverId, }: PopoverGroupProps): react_jsx_runtime.JSX.Element;
|
|
1496
1500
|
displayName: string;
|
|
@@ -1782,7 +1786,7 @@ declare const GridChild: {
|
|
|
1782
1786
|
displayName: string;
|
|
1783
1787
|
};
|
|
1784
1788
|
|
|
1785
|
-
|
|
1789
|
+
interface BaseItemProps {
|
|
1786
1790
|
/** Om steget er valgt eller ikke. Settes av konsument. */
|
|
1787
1791
|
active?: boolean;
|
|
1788
1792
|
/** Om steget er ferdig eller ikke. Settes av konsument. */
|
|
@@ -1795,7 +1799,7 @@ type BaseItemProps = {
|
|
|
1795
1799
|
icon?: SvgIcon;
|
|
1796
1800
|
/** Indeksen til steget. NB! Denne settes automatisk av `<ProgressTracker />` og skal ikke settes manuelt. */
|
|
1797
1801
|
index?: number;
|
|
1798
|
-
}
|
|
1802
|
+
}
|
|
1799
1803
|
type ProgressTrackerItemProps = ({
|
|
1800
1804
|
/** Click-handler som gjør det mulig for bruker å klikke på steget for å navigere. Valgfri. */
|
|
1801
1805
|
onClick: (index: number) => void;
|
|
@@ -1818,7 +1822,7 @@ type ProgressTrackerComponent = ForwardRefExoticComponent<ProgressTrackerProps>
|
|
|
1818
1822
|
};
|
|
1819
1823
|
declare const ProgressTracker: ProgressTrackerComponent;
|
|
1820
1824
|
|
|
1821
|
-
|
|
1825
|
+
interface BaseInlineInputProps {
|
|
1822
1826
|
/**Spesifiserer error state. Hvis `errorMessage` ikke brukes må inputfeltet knyttes med ARIA til en feilmelding som vises andre steder i applikasjonen. */
|
|
1823
1827
|
error?: boolean;
|
|
1824
1828
|
/**Feilmelding. Setter også error state. */
|
|
@@ -1831,7 +1835,7 @@ type BaseInlineInputProps = {
|
|
|
1831
1835
|
emptiable?: boolean;
|
|
1832
1836
|
/** **OBS!** settes automatisk av forelder. Spesifiserer om komponenten er i redigeringsmodus. */
|
|
1833
1837
|
isEditing?: boolean;
|
|
1834
|
-
}
|
|
1838
|
+
}
|
|
1835
1839
|
type InlineEditProps = {
|
|
1836
1840
|
/**Callback for når verdien blir lagret. */
|
|
1837
1841
|
onSetValue?: (value: string) => void;
|
|
@@ -1898,7 +1902,7 @@ declare const StyledTextArea: styled_components.IStyledComponent<"web", styled_c
|
|
|
1898
1902
|
accessKey?: string | undefined;
|
|
1899
1903
|
autoFocus?: boolean | undefined;
|
|
1900
1904
|
className?: string | undefined;
|
|
1901
|
-
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
1905
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
1902
1906
|
contextMenu?: string | undefined;
|
|
1903
1907
|
dir?: string | undefined;
|
|
1904
1908
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -2201,7 +2205,7 @@ declare const StyledTextArea: styled_components.IStyledComponent<"web", styled_c
|
|
|
2201
2205
|
accessKey?: string | undefined;
|
|
2202
2206
|
autoFocus?: boolean | undefined;
|
|
2203
2207
|
className?: string | undefined;
|
|
2204
|
-
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
2208
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
2205
2209
|
contextMenu?: string | undefined;
|
|
2206
2210
|
dir?: string | undefined;
|
|
2207
2211
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -2466,7 +2470,7 @@ declare const TextArea: react.ForwardRefExoticComponent<_norges_domstoler_dds_fo
|
|
|
2466
2470
|
type TextAreaProps = CommonInputProps & TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
2467
2471
|
|
|
2468
2472
|
type SplitButtonPurpose = ExtractStrict<ButtonPurpose, 'primary' | 'secondary'>;
|
|
2469
|
-
|
|
2473
|
+
interface SplitButtonProps {
|
|
2470
2474
|
/**Størrelse på komponenten. */
|
|
2471
2475
|
size?: ButtonSize;
|
|
2472
2476
|
/**Props for primær handling. Samme props som for `<Button />` unntatt `size`, `purpose`, og `appearance`. */
|
|
@@ -2475,7 +2479,7 @@ type SplitButtonProps = {
|
|
|
2475
2479
|
secondaryActions: OverflowMenuButtonItem[];
|
|
2476
2480
|
/**Formål med knappen */
|
|
2477
2481
|
purpose?: SplitButtonPurpose;
|
|
2478
|
-
}
|
|
2482
|
+
}
|
|
2479
2483
|
declare const SplitButton: react.ForwardRefExoticComponent<SplitButtonProps & react.RefAttributes<HTMLDivElement>>;
|
|
2480
2484
|
|
|
2481
2485
|
declare const stackTokens: {
|
|
@@ -2545,7 +2549,7 @@ type MimeType = `image/${ImageMimeType | AnyMimeType}` | `video/${VideoMimeType
|
|
|
2545
2549
|
type Accept = MimeType | FileExtensionAccept;
|
|
2546
2550
|
type FileList = File[];
|
|
2547
2551
|
|
|
2548
|
-
|
|
2552
|
+
interface FileUploaderHookProps {
|
|
2549
2553
|
id: string | undefined;
|
|
2550
2554
|
/**Dersom komponenten skal styres internt. Utgangspunktet for filene som har blitt lastet opp. */
|
|
2551
2555
|
initialFiles: FileList | undefined;
|
|
@@ -2561,7 +2565,7 @@ type FileUploaderHookProps = {
|
|
|
2561
2565
|
maxFiles: number | undefined;
|
|
2562
2566
|
/**Feilmelding. Setter også error state. */
|
|
2563
2567
|
errorMessage: string | undefined;
|
|
2564
|
-
}
|
|
2568
|
+
}
|
|
2565
2569
|
|
|
2566
2570
|
type FileUploaderProps = {
|
|
2567
2571
|
/**Id til filopplasteren. */
|
|
@@ -2591,13 +2595,13 @@ declare namespace EmptyContent {
|
|
|
2591
2595
|
var displayName: string;
|
|
2592
2596
|
}
|
|
2593
2597
|
|
|
2594
|
-
|
|
2598
|
+
interface BackLinkProps {
|
|
2595
2599
|
label: string;
|
|
2596
2600
|
href: string;
|
|
2597
|
-
}
|
|
2601
|
+
}
|
|
2598
2602
|
declare const BackLink: react.ForwardRefExoticComponent<BackLinkProps & react.RefAttributes<HTMLElement>>;
|
|
2599
2603
|
|
|
2600
|
-
|
|
2604
|
+
interface FeedbackProps {
|
|
2601
2605
|
/**Om knappene skal være plassert under eller ved siden av teksten. */
|
|
2602
2606
|
layout?: Layout;
|
|
2603
2607
|
/**Label som er plassert over tommel opp/ned knappene */
|
|
@@ -2630,10 +2634,10 @@ type FeedbackProps = {
|
|
|
2630
2634
|
onFeedbackTextChange?: (feedbackText: string) => void;
|
|
2631
2635
|
/**Callback når bruker sender inn feedback */
|
|
2632
2636
|
onSubmit?: (rating: Rating, feedbackText: string) => void;
|
|
2633
|
-
}
|
|
2637
|
+
}
|
|
2634
2638
|
type Rating = 'positive' | 'negative';
|
|
2635
2639
|
type Layout = 'vertical' | 'horizontal';
|
|
2636
2640
|
|
|
2637
2641
|
declare const Feedback: ({ layout, ratingLabel, positiveFeedbackLabel, negativeFeedbackLabel, ratingSubmittedTitle, submittedTitle, ratingValue: ratingProp, feedbackTextValue: feedbackTextProp, thumbUpTooltip, thumbDownTooltip, feedbackTextAreaExcluded, loading, isSubmitted: isSubmittedProp, onRating, onFeedbackTextChange, onSubmit, }: FeedbackProps) => react_jsx_runtime.JSX.Element;
|
|
2638
2642
|
|
|
2639
|
-
export { AppShell, AppShellProps, BackLink, BackLinkProps, Breadcrumb, BreadcrumbProps, Breadcrumbs, BreadcrumbsProps, Button, ButtonAppearance, ButtonProps$1 as ButtonProps, ButtonPurpose, ButtonSize, Card, CardAccordion, CardAccordionBody, CardAccordionBodyProps, CardAccordionHeader, CardAccordionHeaderProps, CardAccordionProps, CardColor, CardProps, CardType, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxPickedHTMLAttributes, CheckboxProps, Chip, ChipGroup, ChipGroupProps, ChipProps, CollapsibleTable, CollapsibleTableProps, ColumnsOccupied, Container, Datepicker, DatepickerProps, DescriptionList, DescriptionListAppearance, DescriptionListDesc, DescriptionListDescProps, DescriptionListGroup, DescriptionListGroupProps, DescriptionListProps, DescriptionListTerm, DescriptionListTermProps, Divider, DividerColor, DividerProps, Drawer, DrawerGroup, DrawerGroupProps, DrawerPlacement, DrawerProps, DrawerSize, EmptyContent, EmptyContentProps, ExpandableCardProps, Feedback, FeedbackProps, FileUploader, GlobalMessage, GlobalMessageProps, GlobalMessagePurpose, Grid, GridChild, GridChildProps, GridProps, HStack, IconPosition, InfoCardProps, InlineEditInput, InlineEditInputProps, InlineEditTextArea, InlineEditTextAreaProps, InputMessage, InputMessageProps, InputMessageType, InternalHeader, InternalHeaderProps, Layout, List, ListItem, ListItemProps, ListProps, ListType, ListTypographyType, LocalMessage, LocalMessageLayout, LocalMessageProps, LocalMessagePurpose, Modal, ModalActions, ModalActionsProps, ModalBody, ModalBodyProps, ModalProps, NavigationCardProps, OverflowMenu, OverflowMenuButtonItem, OverflowMenuContextItem, OverflowMenuGroup, OverflowMenuGroupProps, OverflowMenuLinkItem, OverflowMenuList, OverflowMenuNavItem, OverflowMenuProps, Pagination, PaginationOption, PaginationProps, Popover, PopoverGroup, PopoverGroupProps, PopoverProps, PopoverSizeProps, ProgressTracker, RadioButton, RadioButtonGroup, RadioButtonGroupProps, RadioButtonProps, Rating, ScrollableContainer, ScrollableContainerProps, Scrollbar, ScrollbarProps, Search, SearchAutocompleteWrapperProps, SearchData, SearchProps, SearchSize, SearchSuggestionsProps, Select, SelectOption, SelectProps, SkipToContent, SkipToContentProps, SortOrder, Spinner, SpinnerProps, SplitButton, SplitButtonProps, SplitButtonPurpose, StackProps, StackStyleProps, StyledTextArea, Tab, TabList, TabListProps, TabPanel, TabPanelProps, TabPanels, TabPanelsProps, TabProps, Table, TableBodyProps, TableCellLayout, TableCellProps, TableCellType, TableDensity, TableFootProps, TableHeadProps, TableProps, TableRowProps, TableRowType, TableSortCellProps, Tabs, TabsProps, Tag, TagProps, TagPurpose, TextAffixProps, TextArea, TextAreaProps, TextInput, TextInputProps, ToggleBar, ToggleBarProps, ToggleBarSize, ToggleBarValue, ToggleButton, ToggleButtonGroup, ToggleButtonGroupProps, ToggleButtonProps, ToggleRadio, ToggleRadioProps, Tooltip, TooltipProps, VStack, VisuallyHidden, VisuallyHiddenProps, WeightedSearchData, WidthProps, createSelectOptions, isGridColumn, isRelativeGridColumn, scrollbarStyling };
|
|
2643
|
+
export { AppShell, type AppShellProps, BackLink, type BackLinkProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonAppearance, type ButtonProps$1 as ButtonProps, type ButtonPurpose, type ButtonSize, Card, CardAccordion, CardAccordionBody, type CardAccordionBodyProps, CardAccordionHeader, type CardAccordionHeaderProps, type CardAccordionProps, type CardColor, type CardProps, type CardType, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxPickedHTMLAttributes, type CheckboxProps, Chip, ChipGroup, type ChipGroupProps, type ChipProps, CollapsibleTable, type CollapsibleTableProps, type ColumnsOccupied, Container, Datepicker, type DatepickerProps, DescriptionList, type DescriptionListAppearance, DescriptionListDesc, type DescriptionListDescProps, DescriptionListGroup, type DescriptionListGroupProps, type DescriptionListProps, DescriptionListTerm, type DescriptionListTermProps, Divider, type DividerColor, type DividerProps, Drawer, DrawerGroup, type DrawerGroupProps, type DrawerPlacement, type DrawerProps, type DrawerSize, EmptyContent, type EmptyContentProps, type ExpandableCardProps, Feedback, type FeedbackProps, FileUploader, GlobalMessage, type GlobalMessageProps, type GlobalMessagePurpose, Grid, GridChild, type GridChildProps, type GridProps, HStack, type IconPosition, type InfoCardProps, InlineEditInput, type InlineEditInputProps, InlineEditTextArea, type InlineEditTextAreaProps, InputMessage, type InputMessageProps, type InputMessageType, InternalHeader, type InternalHeaderProps, type Layout, List, ListItem, type ListItemProps, type ListProps, type ListType, type ListTypographyType, LocalMessage, type LocalMessageLayout, type LocalMessageProps, type LocalMessagePurpose, Modal, ModalActions, type ModalActionsProps, ModalBody, type ModalBodyProps, type ModalProps, type NavigationCardProps, OverflowMenu, type OverflowMenuButtonItem, type OverflowMenuContextItem, OverflowMenuGroup, type OverflowMenuGroupProps, type OverflowMenuLinkItem, OverflowMenuList, type OverflowMenuNavItem, type OverflowMenuProps, Pagination, type PaginationOption, type PaginationProps, Popover, PopoverGroup, type PopoverGroupProps, type PopoverProps, type PopoverSizeProps, ProgressTracker, RadioButton, RadioButtonGroup, type RadioButtonGroupProps, type RadioButtonProps, type Rating, ScrollableContainer, type ScrollableContainerProps, Scrollbar, type ScrollbarProps, Search, type SearchAutocompleteWrapperProps, type SearchData, type SearchProps, type SearchSize, type SearchSuggestionsProps, Select, type SelectOption, type SelectProps, SkipToContent, type SkipToContentProps, type SortOrder, Spinner, type SpinnerProps, SplitButton, type SplitButtonProps, type SplitButtonPurpose, type StackProps, type StackStyleProps, StyledTextArea, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, TabPanels, type TabPanelsProps, type TabProps, Table, type TableBodyProps, type TableCellLayout, type TableCellProps, type TableCellType, type TableDensity, type TableFootProps, type TableHeadProps, type TableProps, type TableRowProps, type TableRowType, type TableSortCellProps, Tabs, type TabsProps, Tag, type TagProps, type TagPurpose, type TextAffixProps, TextArea, type TextAreaProps, TextInput, type TextInputProps, ToggleBar, type ToggleBarProps, type ToggleBarSize, type ToggleBarValue, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, ToggleRadio, type ToggleRadioProps, Tooltip, type TooltipProps, VStack, VisuallyHidden, type VisuallyHiddenProps, type WeightedSearchData, type WidthProps, createSelectOptions, isGridColumn, isRelativeGridColumn, scrollbarStyling };
|