@norges-domstoler/dds-components 0.0.28 → 0.0.29

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.
@@ -1,4 +1,3 @@
1
- import { IconWrapper } from '../../helpers/IconWrapper';
2
1
  import { ButtonAppearance, ButtonPurpose, ButtonSize, IconPosition } from './Button.types';
3
2
  declare type ButtonWrapperProps = {
4
3
  appearance: ButtonAppearance;
@@ -8,16 +7,13 @@ declare type ButtonWrapperProps = {
8
7
  hasIcon: boolean;
9
8
  hasLabel: boolean;
10
9
  isLoading: boolean;
10
+ iconPosition?: IconPosition;
11
11
  };
12
12
  export declare const ButtonWrapper: import("styled-components").StyledComponent<"button", any, ButtonWrapperProps, never>;
13
- declare type IconWithTextWrapperProps = {
14
- iconPosition: IconPosition;
13
+ declare type StyledIconWrapperSpanProps = {
14
+ iconPosition?: IconPosition;
15
15
  size: ButtonSize;
16
16
  };
17
- export declare const IconWithTextWrapper: import("styled-components").StyledComponent<typeof IconWrapper, any, IconWithTextWrapperProps, never>;
18
- declare type JustIconWrapperProps = {
19
- size: ButtonSize;
20
- };
21
- export declare const JustIconWrapper: import("styled-components").StyledComponent<"span", any, JustIconWrapperProps, never>;
17
+ export declare const StyledIconWrapperSpan: import("styled-components").StyledComponent<"span", any, StyledIconWrapperSpanProps, never>;
22
18
  export declare const Label: import("styled-components").StyledComponent<"span", any, {}, never>;
23
19
  export {};
@@ -42,6 +42,18 @@ export declare const buttonTokens: {
42
42
  };
43
43
  iconWithTextMargin: string;
44
44
  };
45
+ tiny: {
46
+ justIcon: {
47
+ base: CSSObject;
48
+ };
49
+ justIconWrapper: {
50
+ base: CSSObject;
51
+ };
52
+ text: {
53
+ base: CSSObject;
54
+ };
55
+ iconWithTextMargin: string;
56
+ };
45
57
  };
46
58
  appearance: {
47
59
  filled: {
@@ -2,7 +2,7 @@ import { SvgIconTypeMap } from '@material-ui/core/SvgIcon';
2
2
  import { OverridableComponent } from '@material-ui/core/OverridableComponent';
3
3
  import React, { ButtonHTMLAttributes } from 'react';
4
4
  export declare type ButtonPurpose = 'primary' | 'secondary' | 'danger';
5
- export declare type ButtonSize = 'small' | 'medium' | 'large';
5
+ export declare type ButtonSize = 'tiny' | 'small' | 'medium' | 'large';
6
6
  export declare type ButtonAppearance = 'filled' | 'ghost' | 'rounded' | 'borderless';
7
7
  export declare type IconPosition = 'left' | 'right';
8
8
  export declare type ButtonProps = {
@@ -1,9 +1,12 @@
1
1
  import { HTMLAttributes } from 'react';
2
+ import * as CSS from 'csstype';
2
3
  export declare type CardAccordionBodyProps = {
3
4
  isExpanded?: boolean;
4
5
  headerId?: string;
6
+ paddingTop?: CSS.PaddingTopProperty<string>;
5
7
  } & HTMLAttributes<HTMLDivElement>;
6
8
  export declare const CardAccordionBody: import("react").ForwardRefExoticComponent<{
7
9
  isExpanded?: boolean | undefined;
8
10
  headerId?: string | undefined;
11
+ paddingTop?: string | undefined;
9
12
  } & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,11 +1,11 @@
1
- import { HTMLAttributes } from 'react';
1
+ import { ButtonHTMLAttributes } from 'react';
2
2
  export declare type CardAccordionHeaderProps = {
3
3
  isExpanded?: boolean;
4
4
  toggleExpanded?: () => void;
5
5
  bodyId?: string;
6
- } & HTMLAttributes<HTMLDivElement>;
6
+ } & ButtonHTMLAttributes<HTMLButtonElement>;
7
7
  export declare const CardAccordionHeader: import("react").ForwardRefExoticComponent<{
8
8
  isExpanded?: boolean | undefined;
9
9
  toggleExpanded?: (() => void) | undefined;
10
10
  bodyId?: string | undefined;
11
- } & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
11
+ } & ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
@@ -7,4 +7,11 @@ export declare const cardAccordionHeaderTokens: {
7
7
  hover: {
8
8
  base: CSSObject;
9
9
  };
10
+ chevronWrapper: {
11
+ base: CSSObject;
12
+ };
13
+ chevron: {
14
+ width: string;
15
+ height: string;
16
+ };
10
17
  };
@@ -0,0 +1,9 @@
1
+ import { CSSObject } from 'styled-components';
2
+ export declare const datepickerTokens: {
3
+ calendarIndicator: {
4
+ base: CSSObject;
5
+ focus: {
6
+ base: CSSObject;
7
+ };
8
+ };
9
+ };
@@ -1,2 +1,8 @@
1
- import { SvgChevronProps } from './AnimatedChevronUpDown.styles';
2
- export declare const AnimatedChevronUpDown: ({ isUp }: SvgChevronProps) => JSX.Element;
1
+ import * as CSS from 'csstype';
2
+ declare type SvgChevronProps = {
3
+ isUp?: boolean;
4
+ height?: CSS.HeightProperty<string>;
5
+ width?: CSS.WidthProperty<string>;
6
+ };
7
+ export declare const AnimatedChevronUpDown: ({ isUp, height, width }: SvgChevronProps) => JSX.Element;
8
+ export {};
@@ -1,7 +1,7 @@
1
- export declare type SvgChevronProps = {
1
+ export declare type StyledSvgChevronProps = {
2
2
  isUp?: boolean;
3
3
  };
4
- export declare const SvgChevron: import("styled-components").StyledComponent<"svg", any, SvgChevronProps, never>;
5
- export declare const SvgChevronlGroup: import("styled-components").StyledComponent<"g", any, SvgChevronProps, never>;
6
- export declare const SvgChevronlLeft: import("styled-components").StyledComponent<"path", any, SvgChevronProps, never>;
7
- export declare const SvgChevronlRight: import("styled-components").StyledComponent<"path", any, SvgChevronProps, never>;
4
+ export declare const SvgChevron: import("styled-components").StyledComponent<"svg", any, StyledSvgChevronProps, never>;
5
+ export declare const SvgChevronlGroup: import("styled-components").StyledComponent<"g", any, StyledSvgChevronProps, never>;
6
+ export declare const SvgChevronlLeft: import("styled-components").StyledComponent<"path", any, StyledSvgChevronProps, never>;
7
+ export declare const SvgChevronlRight: import("styled-components").StyledComponent<"path", any, StyledSvgChevronProps, never>;