@norges-domstoler/dds-components 5.3.0 → 5.3.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.
Files changed (38) hide show
  1. package/dist/cjs/components/InternalHeader/InternalHeader.styles.d.ts +1 -1
  2. package/dist/cjs/components/InternalHeader/InternalHeader.tokens.d.ts +39 -27
  3. package/dist/cjs/components/OverflowMenu/OverflowMenu.tokens.d.ts +25 -10
  4. package/dist/cjs/components/Tooltip/Tooltip.d.ts +1 -1
  5. package/dist/cjs/index.js +876 -979
  6. package/dist/components/Card/CardAccordion/CardAccordion.js +3 -8
  7. package/dist/components/Checkbox/Checkbox.js +3 -7
  8. package/dist/components/Checkbox/CheckboxGroup.js +3 -7
  9. package/dist/components/Datepicker/Datepicker.js +3 -7
  10. package/dist/components/Drawer/Drawer.js +3 -7
  11. package/dist/components/Drawer/DrawerGroup.js +7 -12
  12. package/dist/components/InternalHeader/InternalHeader.js +2 -2
  13. package/dist/components/InternalHeader/InternalHeader.styles.d.ts +1 -1
  14. package/dist/components/InternalHeader/InternalHeader.styles.js +17 -11
  15. package/dist/components/InternalHeader/InternalHeader.tokens.d.ts +39 -27
  16. package/dist/components/InternalHeader/InternalHeader.tokens.js +48 -80
  17. package/dist/components/InternalHeader/NavigationItem.js +4 -2
  18. package/dist/components/Modal/Modal.js +3 -9
  19. package/dist/components/OverflowMenu/OverflowMenu.js +5 -3
  20. package/dist/components/OverflowMenu/OverflowMenu.tokens.d.ts +25 -10
  21. package/dist/components/OverflowMenu/OverflowMenu.tokens.js +33 -45
  22. package/dist/components/OverflowMenu/OverflowMenuGroup.js +3 -7
  23. package/dist/components/OverflowMenu/OverflowMenuItem.js +7 -3
  24. package/dist/components/Popover/PopoverGroup.js +3 -7
  25. package/dist/components/RadioButton/RadioButton.js +3 -8
  26. package/dist/components/RadioButton/RadioButtonGroup.js +3 -6
  27. package/dist/components/Search/Search.js +3 -7
  28. package/dist/components/Select/Select.js +3 -7
  29. package/dist/components/Spinner/Spinner.js +3 -8
  30. package/dist/components/Tabs/TabList.js +2 -5
  31. package/dist/components/Tabs/Tabs.js +11 -13
  32. package/dist/components/TextInput/CharCounter.js +3 -7
  33. package/dist/components/TextInput/TextInput.js +3 -6
  34. package/dist/components/ToggleButton/ToggleButton.js +3 -7
  35. package/dist/components/ToggleButton/ToggleButtonGroup.js +3 -7
  36. package/dist/components/Tooltip/Tooltip.d.ts +1 -1
  37. package/dist/components/Tooltip/Tooltip.js +10 -14
  38. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { InternalHeaderProps } from './InternalHeader.types';
2
- export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const OuterContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
3
  declare type BannerProps = {
4
4
  hasContextMenu?: boolean;
5
5
  };
@@ -1,40 +1,52 @@
1
- import { CSSObject } from 'styled-components';
2
1
  export declare const internalHeaderTokens: {
3
- wrapper: {
4
- base: CSSObject;
2
+ navLink: {
3
+ base: {
4
+ color: string;
5
+ textDecoration: string;
6
+ backgroundColor: string;
7
+ padding: string;
8
+ font: {
9
+ lineHeight: any;
10
+ fontSize: string;
11
+ letterSpacing: any;
12
+ fontFamily: any;
13
+ fontWeight: any;
14
+ fontStyle: any;
15
+ };
16
+ };
17
+ hover: {
18
+ color: string;
19
+ };
20
+ active: {
21
+ color: string;
22
+ };
23
+ current: {
24
+ color: string;
25
+ backgroundColor: string;
26
+ };
27
+ };
28
+ outerContainer: {
29
+ backgroundColor: string;
5
30
  };
6
31
  applicationNameWrapper: {
7
- base: CSSObject;
32
+ padding: string;
8
33
  };
9
34
  lovisaWrapper: {
10
- base: CSSObject;
35
+ padding: string;
36
+ borderRight: string;
11
37
  };
12
38
  banner: {
13
- base: CSSObject;
14
- contextMenuSpacing: string;
15
- };
16
- bannerLeft: {
17
- base: CSSObject;
39
+ borderBottom: string;
40
+ paddingRight: string;
41
+ hasContextMenu: {
42
+ paddingRight: string;
43
+ };
18
44
  };
19
45
  navigation: {
20
- base: CSSObject;
21
- };
22
- navigationLink: {
23
- base: CSSObject;
24
- hover: {
25
- base: CSSObject;
26
- };
27
- active: {
28
- base: CSSObject;
29
- };
30
- focus: {
31
- base: CSSObject;
32
- };
33
- current: {
34
- base: CSSObject;
35
- };
46
+ borderBottom: string;
36
47
  };
37
48
  contextGroup: {
38
- base: CSSObject;
49
+ right: string;
50
+ top: string;
39
51
  };
40
52
  };
@@ -1,22 +1,37 @@
1
- import { CSSObject } from 'styled-components';
2
1
  export declare const overflowMenuTokens: {
3
2
  container: {
4
- base: CSSObject;
3
+ border: string;
4
+ backgroundColor: string;
5
+ borderRadius: string;
5
6
  };
6
- link: {
7
- base: CSSObject;
8
- active: {
9
- base: CSSObject;
7
+ element: {
8
+ base: {
9
+ color: string;
10
+ textDecoration: string;
11
+ backgroundColor: string;
12
+ padding: string;
13
+ gap: string;
14
+ font: {
15
+ lineHeight: any;
16
+ fontSize: string;
17
+ letterSpacing: any;
18
+ fontFamily: any;
19
+ fontWeight: any;
20
+ fontStyle: any;
21
+ };
10
22
  };
23
+ };
24
+ link: {
11
25
  hover: {
12
- base: CSSObject;
26
+ color: string;
13
27
  };
14
- focus: {
15
- base: CSSObject;
28
+ active: {
29
+ color: string;
16
30
  };
17
31
  };
18
32
  divider: {
19
- base: CSSObject;
33
+ marginRight: string;
34
+ marginLeft: string;
20
35
  };
21
36
  offset: number;
22
37
  };
@@ -16,7 +16,7 @@ export declare type TooltipProps = BaseComponentProps<HTMLDivElement, {
16
16
  tooltipId?: string;
17
17
  } & PickedHTMLAttributes, Omit<HTMLAttributes<HTMLDivElement>, 'children' | keyof PickedHTMLAttributes>>;
18
18
  export declare const Tooltip: React.ForwardRefExoticComponent<{
19
- htmlProps?: Omit<React.HTMLAttributes<HTMLDivElement>, "style" | "onMouseLeave" | "onMouseOver" | "children"> | undefined;
19
+ htmlProps?: Omit<React.HTMLAttributes<HTMLDivElement>, "style" | "onMouseLeave" | "onMouseOver" | "children"> | undefined; /**`id` for tooltip. */
20
20
  } & Pick<Omit<React.HTMLAttributes<HTMLDivElement>, "style" | "onMouseLeave" | "onMouseOver" | "children">, "className" | "id"> & {
21
21
  /**Innhold i tooltip. */
22
22
  text: string;